PageSourceSearch

https://archieverse.ai/assets/PublicSharePage-KNbYHEGY.js

js archieverse.ai collected 2026-10-05 16:24:25 UTC 2,587 bytes, 1 lines download raw bytes

1import{r as s,o3 as d,a$ as h,k as e,l as p}from"./index-BrmzuBV8.js";import{P as x}from"./PublicShareContent-DO8e1cB2.js";import"./Explore3DButton-CyAnZPs-.js";import"./ExploreShell-CT8smMse.js";import"./box-Do4WQa5D.js";import"./lock-heK_jRJs.js";const m="This link is not available. It may have expired or been turned off by the person who shared it.";function w({token:t}){const[r,l]=s.useState(null),[o,n]=s.useState("loading");s.useEffect(()=>{d()},[]),h({title:r?.title??"Shared with Archie",description:"A read-only share made with Archie.",path:`/s/${t}`,noindex:!0,image:r?`https://archieverse.ai/api/public-shares/t/${t}/card.png`:void 0}),s.useEffect(()=>{const i=new AbortController;return fetch("/api/public-shares/open",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({token:t}),signal:i.signal,credentials:"omit",referrerPolicy:"no-referrer",cache:"no-store"}).then(async a=>{if(!a.ok)throw new Error("Unavailable");return a.json()}).then(a=>{l(a.content),n("ready")}).catch(()=>{i.signal.aborted||n("unavailable")}),()=>i.abort()},[t]);const c=r?.kind==="pre_valuation"?"/pre-valuation":"/builder";return e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsx("header",{className:"border-b border-border",children:e.jsxs("div",{className:"mx-auto flex max-w-6xl items-center gap-3 px-5 py-5",children:[e.jsx("img",{src:p,alt:"",className:"h-8 w-auto"}),e.jsx("span",{className:"font-mono text-xs uppercase tracking-widest",children:"Made with Archie"})]})}),e.jsxs("main",{className:"mx-auto max-w-6xl px-5 py-12 sm:py-20",children:[o==="loading"?e.jsx("p",{role:"status",children:"Loading shared page..."}):o==="unavailable"?e.jsx("p",{role:"alert",className:"py-16 font-serif text-2xl",children:m}):r&&e.jsx(x,{content:r,token:t}),e.jsxs("section",{className:"mt-20 border-t border-border py-12 text-center",children:[e.jsx("h2",{className:"font-serif text-3xl",children:"Make yours with Archie"}),e.jsxs("div",{className:"mt-6 flex justify-center gap-5",children:[e.jsx("a",{className:"border border-primary bg-primary px-6 py-3 text-primary-foreground",href:"/join",children:"Make yours with Archie"}),e.jsxs("a",{className:"border border-border px-6 py-3",href:`/${c.slice(1)}`,children:["Explore ",r?.kind==="pre_valuation"?"pre-valuation":"the builder"]})]})]})]}),e.jsx("footer",{className:"border-t border-border px-5 py-6 text-center font-mono text-xs text-muted-foreground",children:r?`This link expires ${new Date(r.expiresAt).toLocaleDateString()}.`:"Made with Archie"})]})}export{w as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.