PageSourceSearch

https://rosummit.org/assets/tickets_.thank-you-DoLQiVET.js

js rosummit.org collected 2026-10-08 09:20:25 UTC 2,446 bytes, 1 lines download raw bytes

1import{bx as h,r as a,j as e,N as p,L as f,K as b,F as j}from"./index-DqAv76bN.js";function w(){const{order:o,session:r}=h.useSearch(),[m,s]=a.useState("loading"),[t,x]=a.useState(null),u=a.useRef(Date.now());return a.useEffect(()=>{if(!o||!r){s("missing");return}let i,n=!1;const c=async()=>{try{const d=await fetch(`/api/public/checkout?order=${encodeURIComponent(o)}&session=${encodeURIComponent(r)}`);if(n)return;if(!d.ok){s("missing");return}const l=await d.json();if(!l.order){s("missing");return}x(l.order),s("ok"),l.order.status==="pending"&&Date.now()-u.current<6e4&&(i=window.setTimeout(c,3e3))}catch{n||s("missing")}};return c(),()=>{n=!0,i&&window.clearTimeout(i)}},[o,r]),e.jsxs("div",{className:"min-h-screen bg-midnight text-summit-white summit-bg-flat",children:[e.jsx(p,{}),e.jsxs("main",{className:"mx-auto w-full max-w-2xl px-4 pb-24 pt-12 sm:pt-16",children:[m==="loading"&&e.jsx("p",{className:"text-sm text-summit-muted",children:"Loading your order…"}),m==="missing"&&e.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"We could not find that order"}),e.jsx("p",{className:"mt-3 text-sm text-summit-white/70",children:"If you just paid, please check your inbox for the confirmation email."}),e.jsx(f,{to:"/tickets",className:"mt-5 inline-flex min-h-[44px] items-center rounded-md border border-white/20 px-5 text-sm font-semibold hover:border-cobalt",children:"Back to tickets"})]}),m==="ok"&&t&&e.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] p-6",children:[t.status==="pending"?e.jsx("h1",{className:"text-2xl font-bold",children:"Payment received, confirming…"}):e.jsx("h1",{className:"text-2xl font-bold",children:"Thank you — you're in"}),e.jsx("p",{className:"mt-3 text-sm text-summit-white/80",children:t.ticket_name}),e.jsx("ul",{className:"mt-4 space-y-1 text-sm text-summit-white/80",children:t.attendees.map((i,n)=>e.jsx("li",{children:i},n))}),e.jsxs("p",{className:"mt-4 text-sm font-semibold",children:["Total paid: ",b(t.total_cents)]}),t.status!=="pending"&&e.jsx("p",{className:"mt-3 text-sm text-summit-white/70",children:"Your tickets are in your inbox."}),e.jsxs("p",{className:"mt-5 text-xs text-summit-muted",children:["Questions: ",e.jsx("a",{className:"underline",href:"mailto:[email protected]",children:"[email protected]"})]})]})]}),e.jsx(j,{})]})}export{w as component};

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.