PageSourceSearch

https://eliteweddingsandeventswithcara.com/assets/ExhibitorBookingSuccess-BaK3Shsh.js

js eliteweddingsandeventswithcara.com collected 2026-09-30 06:37:12 UTC 2,987 bytes, 1 lines download raw bytes

1import{o as h,r as n,j as e,J as m,N as j,C as g,d as u,m as f,i as p,B as b,z as N,Y as w,s as v}from"./index-DaxYHL_c.js";import{C}from"./circle-alert-BSao5Pkh.js";const y=()=>{const[c]=h(),r=c.get("session_id"),[l,a]=n.useState(!0),[i,o]=n.useState(null),[s,d]=n.useState(null);return n.useEffect(()=>{(async()=>{if(!r){o("No payment reference was found."),a(!1);return}const{data:t,error:x}=await v.functions.invoke("confirm-exhibitor-payment",{body:{sessionId:r}});x||!(t!=null&&t.paid)?o("We couldn't confirm your payment automatically. If you have been charged, please email [email protected] and we'll sort it straight away."):d(t.booking),a(!1)})()},[r]),e.jsxs(e.Fragment,{children:[e.jsxs(m,{children:[e.jsx("title",{children:"Booking Confirmed | Elite Weddings & Events"}),e.jsx("meta",{name:"robots",content:"noindex"})]}),e.jsx(j,{}),e.jsx("main",{className:"min-h-screen bg-gradient-to-b from-background to-muted/30 py-16",children:e.jsx("div",{className:"container max-w-2xl mx-auto px-4",children:e.jsx(g,{children:e.jsx(u,{className:"pt-12 pb-10 text-center",children:l?e.jsxs(e.Fragment,{children:[e.jsx(f,{className:"w-8 h-8 animate-spin text-primary mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"Confirming your payment…"})]}):i?e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"w-12 h-12 text-destructive mx-auto mb-4"}),e.jsx("h1",{className:"font-display text-2xl mb-3",children:"Something went wrong"}),e.jsx("p",{className:"text-muted-foreground",children:i})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(p,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"font-display text-3xl mb-3",children:"Your space is confirmed"}),e.jsxs("p",{className:"text-muted-foreground mb-6",children:["Thank you — payment received in full. We've emailed your paid invoice and the booking terms to ",s==null?void 0:s.email,"."]}),e.jsx("div",{className:"bg-muted/50 rounded-lg p-5 text-left inline-block",children:e.jsxs("p",{className:"text-sm leading-7",children:[e.jsx("strong",{children:"Reference:"})," ",s==null?void 0:s.reference,e.jsx("br",{}),e.jsx("strong",{children:"Showcase:"})," ",s==null?void 0:s.showName,e.jsx("br",{}),e.jsx("strong",{children:"Venue:"})," ",s==null?void 0:s.venue,e.jsx("br",{}),e.jsx("strong",{children:"Date:"})," ",s==null?void 0:s.dateLabel," · ",s==null?void 0:s.timeLabel,e.jsx("br",{}),e.jsx("strong",{children:"Set-up:"})," ",(s==null?void 0:s.setupLabel)??"Setup from 10am",e.jsx("br",{}),e.jsx("strong",{children:"Category:"})," ",s==null?void 0:s.category,e.jsx("br",{}),e.jsx("strong",{children:"Paid:"})," £",Number((s==null?void 0:s.amountPaid)??0).toFixed(2)]})}),e.jsx("div",{className:"mt-8",children:e.jsx(b,{asChild:!0,children:e.jsx(N,{to:"/supplier-dashboard",children:"Back to my dashboard"})})})]})})})})}),e.jsx(w,{})]})};export{y 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.