PageSourceSearch

https://www.abbeytheatre.co.uk/assets/PaymentSuccess-DV-x_8Q1.js

js abbeytheatre.co.uk collected 2026-09-25 08:04:10 UTC 2,185 bytes, 1 lines download raw bytes

1import{l as m,p as x,r as c,ak as f,s as h,bb as g,bc as j,j as e,S as y,H as p,C as b,e as k,a as v,B as w,K as N,F as C}from"./index-tvAeWDDu.js";import{C as I}from"./circle-check-big-DYODkrpt.js";function R(){const a=m(),[i]=x(),[l,u]=c.useState(5),{clearCart:o}=f(),n=i.get("session_id");return c.useEffect(()=>{o(),localStorage.removeItem("activeReservation"),localStorage.removeItem("pendingReservation"),localStorage.removeItem("pendingSeatsToRestore");const t=setInterval(()=>{u(s=>s<=1?(clearInterval(t),a("/my-tickets"),0):s-1)},1e3);return()=>clearInterval(t)},[o,a]),c.useEffect(()=>{if(!n)return;let t=!1;return(async()=>{try{const{data:s,error:d}=await h.functions.invoke("get-order-summary",{body:{sessionId:n}});if(t||d)return;const r=s?.order;if(!r?.orderId||g(r.orderId))return;j({orderId:r.orderId,totalValue:r.totalValue,currency:r.currency||"GBP",items:r.items||[]})}catch(s){console.warn("Purchase tracking unavailable:",s)}})(),()=>{t=!0}},[n]),e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(y,{title:"Payment successful",description:"Your Abbey Theatre tickets are confirmed.",noIndex:!0}),e.jsx(p,{}),e.jsx("main",{className:"flex-1 container mx-auto max-w-2xl px-4 py-16 flex items-center justify-center",children:e.jsx(b,{className:"w-full",children:e.jsxs(k,{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx("div",{className:"w-20 h-20 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center mb-6",children:e.jsx(I,{className:"h-12 w-12 text-green-600 dark:text-green-400"})}),e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Payment Successful!"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"Thank you for your purchase. Your tickets are now confirmed."}),e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-8",children:[e.jsx(v,{className:"h-4 w-4 animate-spin"}),e.jsxs("span",{children:["Redirecting to your tickets in ",l," seconds..."]})]}),e.jsxs(w,{onClick:()=>a("/my-tickets"),size:"lg",children:[e.jsx(N,{className:"h-4 w-4 mr-2"}),"View My Tickets Now"]})]})})}),e.jsx(C,{})]})}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.