1import{$ as o,a0 as m,r as i,j as e}from"./index-DxRcEN3x.js";import{L as c}from"./loader-circle-B-72ul8t.js";import{C as l}from"./circle-x-Bud998uo.js";import{C as d}from"./circle-check-ByM_JFMy.js";function u(n){const r=new Date(n);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("en-US",{timeZone:"America/New_York",weekday:"long",month:"long",day:"numeric",year:"numeric"})}function g(){const[,n]=o("/confirm/:token"),r=n?.token??"",s=m(),a=i.useRef(!1);i.useEffect(()=>{a.current||!r||(a.current=!0,s.mutate({token:r}))},[r,s]);const t=s.data;return e.jsx("div",{className:"mx-auto flex min-h-[60vh] max-w-xl flex-col items-center justify-center px-4 py-16 text-center",children:s.isPending||s.isIdle?e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"h-10 w-10 animate-spin text-primary"}),e.jsx("p",{className:"mt-4 text-muted-foreground",children:"Confirmingâ¦"})]}):s.isError||!t?e.jsxs(e.Fragment,{children:[e.jsx(l,{className:"h-12 w-12 text-destructive"}),e.jsx("h1",{className:"mt-4 font-display text-2xl font-black uppercase tracking-tight",children:"Link not valid"}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:"This confirmation link is invalid or has expired. If you think this is a mistake, reply to the email you received."})]}):e.jsxs(e.Fragment,{children:[e.jsx(d,{className:"h-12 w-12 text-emerald-600"}),e.jsx("h1",{className:"mt-4 font-display text-2xl font-black uppercase tracking-tight",children:"You're confirmed!"}),e.jsxs("p",{className:"mt-2 text-muted-foreground",children:["Thanks",t.openerFirstName?`, ${t.openerFirstName}`:"","! We've got you down for"," ",e.jsx("span",{className:"font-semibold text-foreground",children:t.venue})," ","in"," ",e.jsx("span",{className:"font-semibold text-foreground",children:t.city}),t.date?e.jsxs(e.Fragment,{children:[" ","on"," ",e.jsx("span",{className:"font-semibold text-foreground",children:u(t.date)})]}):null,". See you there!"]})]})})}export{g 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.