1import{r as o,a9 as h,t as f,aa as g,ab as y,a0 as b,a7 as l,j as e,ac as v,W as P,ad as w,U as d}from"./index-dQdTyjMz.js";import{A as S}from"./arrow-left-uVZRO6Ia.js";const j="/manus-storage/ANSCWORDMARKWHITE@4x_9a416f93.webp",c="[email protected]";function A(){const r=o.useMemo(()=>new URLSearchParams(window.location.search),[]),s=h()||"",i=r.get("reference")?.trim()||"",m=r.get("status")?.trim()||void 0,n=/^[A-Za-z0-9_-]{24,128}$/.test(s)&&/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i),t=f.payment.returnStatus.useQuery({token:s,reference:i,redirectStatus:m},{enabled:n,retry:1,refetchInterval:x=>x.state.data?.state==="pending"?3e3:!1});o.useEffect(()=>{t.data?.state==="verified"&&g({token:s,placement:t.data.placement,amount:t.data.amount,currency:t.data.currency,source:t.data.source})},[t.data,s]);const u=!n||t.isError?"unable_to_verify":t.isLoading?"checking":t.data?.state||"pending",a={checking:{icon:l,label:"Reading the return signal",title:"Weâre checking your HitPay confirmation.",body:"Keep this page open for a moment while Astro Northstar waits for the signed payment confirmation.",tone:"text-[#c4b5fd]"},pending:{icon:l,label:"Confirmation in transit",title:"Your payment is still being verified.",body:"HitPay has returned you to Astro Northstar, but the signed confirmation has not yet matched this browser session. Save your receipt; access support can verify it if needed.",tone:"text-[#c4b5fd]"},verified:{icon:b,label:"Payment verified",title:"Your 15-year observation file is on its way.",body:"Astro Northstar has matched a signed HitPay confirmation to this checkout session. Keep your receipt while the recording and bonus access instructions are prepared for delivery.",tone:"text-emerald-300"},unable_to_verify:{icon:y,label:"Verification needs attention",title:"We couldnât verify this return automatically.",body:"No payment has been marked complete from this page. Save your HitPay receipt and contact support with the payment reference so the team can verify the order safely.",tone:"text-rose-300"}}[u],p=a.icon;return e.jsxs("main",{"data-loc":"client/src/pages/PaymentSuccess.tsx:88",className:"relative flex min-h-screen items-center overflow-hidden bg-[#050508] px-4 py-14 text-white sm:px-6",children:[e.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:89",className:"absolute inset-0 bg-[radial-gradient(circle_at_72%_18%,rgba(139,92,246,0.18),transparent_34%),linear-gradient(180deg,#07060b,#050508)]"}),e.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:90",className:"star-noise absolute inset-0 opacity-40","aria-hidden":"true"}),e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:91",className:"relative mx-auto w-full max-w-3xl border border-white/12 bg-[#0a0810]/92 p-6 shadow-[0_36px_120px_rgba(0,0,0,0.72)] backdrop-blur-xl sm:p-10 lg:p-12",children:[e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:92",className:"flex items-center justify-between gap-6 border-b border-white/10 pb-6",children:[e.jsx("img",{"data-loc":"client/src/pages/PaymentSuccess.tsx:93",src:j,alt:"Astro Northstar Collective",className:"h-auto w-[220px] max-w-[65%]"}),e.jsx("span",{"data-loc":"client/src/pages/PaymentSuccess.tsx:94",className:"flex size-11 items-center justify-center rounded-full border border-white/12 bg-white/[0.03] text-[#bda9ff]",children:e.jsx(v,{"data-loc":"client/src/pages/PaymentSuccess.tsx:95",className:"size-5","aria-hidden":"true"})})]}),e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:99",role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:[a.label,": ",a.title]}),e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:107",className:"py-10 sm:py-12",children:[e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:108",className:`flex items-center gap-2 text-[0.64rem] font-extrabold uppercase tracking-[0.2em] ${a.tone}`,children:[e.jsx(p,{"data-loc":"client/src/pages/PaymentSuccess.tsx:109",className:"size-4","aria-hidden":"true"}),a.label]}),e.jsx("h1",{"data-loc":"client/src/pages/PaymentSuccess.tsx:112",className:"mt-5 max-w-2xl font-display text-[clamp(2.8rem,7vw,5.4rem)] font-medium leading-[0.92] tracking-[-0.04em]",children:a.title}),e.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:115",className:"mt-6 max-w-2xl text-[0.98rem] leading-7 text-white/55",children:a.body}),e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:119",className:"mt-8 grid gap-3 border-y border-white/10 py-6 sm:grid-cols-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:120",className:"flex items-start gap-3",children:[e.jsx(P,{"data-loc":"client/src/pages/PaymentSuccess.tsx:121",className:"mt-0.5 size-4 shrink-0 text-[#bda9ff]","aria-hidden":"true"}),e.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:122",className:"text-xs leading-5 text-white/48",children:"Keep your HitPay receipt and payment reference for access, invoice, or refund support."})]}),e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:124",className:"flex items-start gap-3",children:[e.jsx(w,{"data-loc":"client/src/pages/PaymentSuccess.tsx:125",className:"mt-0.5 size-4 shrink-0 text-[#bda9ff]","aria-hidden":"true"}),e.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:126",className:"text-xs leading-5 text-white/48",children:"Access instructions are sent through the contact details supplied with the order."})]})]}),e.jsxs("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:130",className:"mt-6 text-xs leading-5 text-white/42",children:["Need help or a VAT invoice? Email ",e.jsx("a",{"data-loc":"client/src/pages/PaymentSuccess.tsx:131",className:"rounded-sm font-bold text-[#c4b5fd] underline decoration-[#8B5CF6]/55 underline-offset-4 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#a78bfa] focus-visible:ring-offset-4 focus-visible:ring-offset-[#0a0810]",href:`mailto:${c}?subject=HitPay%20order%20support`,children:c})," with your receipt reference, purchaser name, and billing details."]})]}),e.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:135",className:"flex flex-col gap-3 border-t border-white/10 pt-6 sm:flex-row",children:[e.jsx(d,{"data-loc":"client/src/pages/PaymentSuccess.tsx:136",asChild:!0,className:"h-auto min-h-12 rounded-full bg-[#8B5CF6] px-6 py-3 text-[0.7rem] font-extrabold uppercase tracking-[0.12em] text-white hover:bg-[#9f7aea]",children:e.jsxs("a",{"data-loc":"client/src/pages/PaymentSuccess.tsx:137",href:"/",children:[e.jsx(S,{"data-loc":"client/src/pages/PaymentSuccess.tsx:137",className:"mr-1 size-4"})," Return to the forecast"]})}),e.jsx(d,{"data-loc":"client/src/pages/PaymentSuccess.tsx:139",asChild:!0,variant:"outline",className:"h-auto min-h-12 rounded-full border-white/14 bg-white/[0.025] px-6 py-3 text-[0.7rem] font-extrabold uppercase tracking-[0.12em] text-white hover:border-[#a
178bfa]/45 hover:bg-[#8B5CF6]/10",children:e.jsx("a",{"data-loc":"client/src/pages/PaymentSuccess.tsx:140",href:`mailto:${c}?subject=HitPay%20payment%20verification`,children:"Contact order support"})})]})]})]})}export{A 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.