1import{j as e}from"./app-C1iegf7Q.js";import{b as n,f as o}from"./inertia-BpyZy4w-.js";import{B as l}from"./button-BE4q1_FS.js";import{C as m}from"./card-B-nADP2d.js";import{f as d}from"./fb-pixel-CcanCdrL.js";import{C as h}from"./circle-check-big-AJlsIacq.js";/* empty css */import"./index-CGXdj8xB.js";import"./utils-BiuKVCuu.js";import"./createLucideIcon-wqc1LSWg.js";const u={credit_topup:{title:"Top-up added",message:"Your Document Reviews are ready to use for document analysis, reassessments, and other AI actions.",primaryAction:{label:"Back to my assessments",href:"/tools/global-talent/my"},secondaryAction:{label:"Go to dashboard",href:"/dashboard"}},tool_purchase:{title:"Payment successful!",message:"You now have access to the tool. Your results will be ready shortly.",primaryAction:{label:"Back to my assessments",href:"/tools/global-talent/my"},secondaryAction:{label:"Go to dashboard",href:"/dashboard"}},event_ticket:{title:"Payment successful!",message:"You will receive a confirmation email shortly with all the details.",primaryAction:{label:"View my events",href:"/events/my/registrations"},secondaryAction:{label:"Browse more events",href:"/events"}},subscription:{title:"Welcome to Borderless Membership!",message:"Your membership is active. You now have access to all premium tools, monthly Application Packs, Document Reviews, and AI Visa Assessments.",primaryAction:{label:"Go to dashboard",href:"/dashboard"}}},f={title:"Payment successful!",message:"Your payment has been processed. You will receive a confirmation email shortly.",primaryAction:{label:"Go to dashboard",href:"/dashboard"}};function C({eventData:a,paymentType:r,returnUrl:t}){n.useEffect(()=>{if(a&&d.purchase(a),t){const c=setTimeout(()=>o.visit(t),2e3);return()=>clearTimeout(c)}},[]);const s=r&&u[r]||f,i=t?{label:"Continue where you left off",href:t}:s.primaryAction;return e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:e.jsxs(m,{className:"max-w-md w-full p-8 text-center",children:[e.jsx("div",{className:"mb-6",children:e.jsx(h,{className:"h-16 w-16 text-green-600 mx-auto"})}),e.jsx("h1",{className:"text-2xl font-bold mb-3",children:s.title}),e.jsx("p",{className:"text-muted-foreground mb-8",children:s.message}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(l,{className:"w-full",onClick:()=>o.visit(i.href),children:i.label}),s.secondaryAction&&e.jsx(l,{variant:"outline",className:"w-full",onClick:()=>o.visit(s.secondaryAction.href),children:s.secondaryAction.label})]})]})})}export{C 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.