PageSourceSearch

https://darkseas.ai/assets/payment-success-BgeOl13q.js

js darkseas.ai collected 2026-10-05 13:03:35 UTC 2,671 bytes, 1 lines download raw bytes

1import{r as i,a as m,j as t,L as n,d}from"./index-e36cu1Gb.js";import{N as p}from"./navbar-DLVpELef.js";import{F as u}from"./footer-BzMSKsRi.js";import{B as c}from"./button-DJtkHGwR.js";import{C as x}from"./circle-check-big-BNL0XpLH.js";import"./index-DQrCsJ0n.js";import"./Combination-CF3kkSB0.js";import"./refresh-cw-4dQh-zVE.js";import"./trending-up-DMG65buK.js";import"./upload-D_eEUWmP.js";import"./users-D5FuoePP.js";import"./user-C3I6Uscx.js";function R(){const[l,a]=i.useState(!0),{toast:o}=m();return i.useEffect(()=>{(async()=>{try{const s=sessionStorage.getItem("checkoutData");if(!s){a(!1);return}const r=JSON.parse(s);if(r.itemType==="workshop"&&r.registrationData){const e=r.registrationData;await d("POST",`/api/workshops/${e.workshopId}/register`,{firstName:e.firstName,lastName:e.lastName,email:e.email,company:e.company})}sessionStorage.removeItem("checkoutData")}catch(s){console.error("Error processing workshop registration:",s),o({title:"Registration Error",description:"Payment was successful, but there was an issue completing your registration. Please contact support.",variant:"destructive"})}finally{a(!1)}})()},[o]),t.jsxs("div",{className:"min-h-screen bg-background text-foreground ocean-bg",children:[t.jsx(p,{}),t.jsx("main",{className:"pt-32 pb-20",children:t.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-2xl",children:t.jsx("div",{className:"glass-card p-8 lg:p-12 rounded-2xl text-center",children:l?t.jsxs("div",{className:"py-8",children:[t.jsx("div",{className:"animate-spin w-12 h-12 border-4 border-primary border-t-transparent rounded-full mx-auto mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"Completing your registration..."})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(x,{className:"w-12 h-12 text-primary"})}),t.jsx("h1",{className:"text-3xl lg:text-4xl font-display font-bold mb-4","data-testid":"text-success-title",children:"Payment Successful!"}),t.jsx("p",{className:"text-lg text-muted-foreground mb-8","data-testid":"text-success-description",children:"Thank you for your purchase. You'll receive a confirmation email shortly with all the details."}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsx(n,{href:"/","data-testid":"link-home",children:t.jsx(c,{size:"lg",className:"glow-button bg-primary text-primary-foreground",children:"Back to Home"})}),t.jsx(n,{href:"/contact","data-testid":"link-contact",children:t.jsx(c,{size:"lg",variant:"outline",children:"Contact Us"})})]})]})})})}),t.jsx(u,{})]})}export{R 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.