1import{v as u,m as d,r as i,j as e}from"./react-vendor-Q2BSRknM.js";import{C as x,B as p,a8 as c,s as l}from"./index-BgCZMvjj.js";import{o as f}from"./lucide-Ckh7y__x.js";import"./capacitor-DSpR9wll.js";import"./ui-radix-DzQ_orwq.js";import"./supabase-DoZmW4Yf.js";import"./query-BLOP9k_M.js";import"./date-utils-DaNoSKVa.js";function E(){const{shareCode:s}=u(),t=d(),[a,o]=i.useState(null);return i.useEffect(()=>{let n=!1;return(async()=>{if(!s){o("Missing share code.");return}const{data:r,error:m}=await l.from("pickem_shared_picks").select("user_id").eq("share_code",s).maybeSingle();if(!n){if(m||!(r!=null&&r.user_id)){o("This shared link could not be found.");return}l.rpc,t(`/u/${r.user_id}`,{replace:!0})}})(),()=>{n=!0}},[s,t]),a?e.jsx("div",{className:"container mx-auto p-4 max-w-4xl",children:e.jsxs(x,{className:"p-8 text-center",children:[e.jsx(f,{className:"h-16 w-16 mx-auto text-muted-foreground/30 mb-4"}),e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Profile Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:a}),e.jsx(p,{onClick:()=>t("/pickem"),variant:"outline",children:"Go to Pick 'Em"})]})}):e.jsxs("div",{className:"container mx-auto p-4 max-w-4xl space-y-4",children:[e.jsx(c,{className:"h-12 w-48"}),e.jsx(c,{className:"h-32 w-full rounded-xl"})]})}export{E 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.