1import{as as p,X as y,b as t,j as e}from"./main-CVkrIurh.js";function x(){const c=p.useLoaderData(),o=y(),[i,l]=t.useState(0),[s,n]=t.useState(!1),a=c.status==="invalid",r=i>=20;return t.useEffect(()=>{if(a||r)return;const d=window.setTimeout(async()=>{try{await o.invalidate()}finally{l(u=>u+1)}},3e3);return()=>window.clearTimeout(d)},[o,a,r,i]),e.jsx("main",{className:"mx-auto w-full max-w-2xl px-4 py-10 sm:px-6",children:e.jsxs("section",{className:"rounded-xl p-6",style:{background:"var(--color-background-100)",border:"1px solid var(--color-border)"},children:[e.jsxs("div",{role:"status","aria-live":"polite",children:[e.jsx("h1",{className:"text-heading-24 mb-3",style:{color:"var(--color-gray-1000)"},children:a?"Checkout link unavailable":r?"Your order link is on its way":"Opening your orderâ¦"}),e.jsx("p",{className:"text-copy-14 mb-6",style:{color:"var(--color-gray-700)"},children:a?"Use the private order link in your delivery email, or contact us if you need help.":r?"Confirmation is taking a little longer. We will email your private order link once your payment and files are ready. You can check again below.":"We are confirming your payment and preparing your download link. Your order will open automatically when it is ready."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[!a&&r&&e.jsx("button",{type:"button",disabled:s,className:"text-label-13 rounded-md px-4 py-2.5 transition-colors hover:opacity-80 focus-visible:ring-2 disabled:opacity-50",style:{background:"var(--color-gray-100)",color:"var(--color-gray-1000)",border:"1px solid var(--color-border)"},onClick:async()=>{n(!0);try{await o.invalidate(),l(0)}finally{n(!1)}},children:s?"Checkingâ¦":"Check again"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-label-13 underline underline-offset-4 hover:opacity-80 focus-visible:ring-2",style:{color:"var(--color-gray-1000)"},children:"Contact support"})]})]})})}export{x 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.