1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7166],{24868:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/thankspage",function(){return r(31541)}])},30061:(e,t,r)=>{"use strict";r.d(t,{o:()=>p});var n=r(42969),a=r(59860),s=r(37876),i=r(37159),o=r(2247),c=["axis"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var p=(0,i.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});p.displayName="Center";var d={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,o.R)(function(e,t){var r=e.axis,n=(0,a.A)(e,c);return(0,s.jsx)(i.B.div,u(u({ref:t,__css:d[void 0===r?"both":r]},n),{},{position:"absolute"}))})},31541:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>m,default:()=>j});var n=r(63857),a=r(60180),s=r.n(a),i=r(25437),o=r(30061),c=r(79442),l=r(1967),u=r(89099),p=r(14232),d=r(37548),f=r(23709),b=r(43455),h=r(19185),g=r(40304),x=r(91094),y=r(37876),m=!0;let j=function(){var e=(0,h.wV)().user,t=(0,u.useRouter)(),r=t.query,a=r.orderId,m=r.eventTitle,j=(r.eventId,r.userEmail),O=r.paymentId,v=Array.isArray(a)?a[0]:a,w=Array.isArray(m)?m[0]:m,k=Array.isArray(j)?j[0]:j,A=Array.isArray(O)?O[0]:O,P=(0,p.useState)(null),S=P[0],_=P[1],E=(0,p.useState)(v),D=E[0],I=E[1];(0,p.useEffect)(function(){console.log("Thanks page viewed:",{orderId:v,eventTitle:w,userEmail:k,paymentId:A,userId:null==e?void 0:e.id})},[v,w,A,k,e]),(0,p.useEffect)(function(){if(A){var e,r,a=!1,i=(e=(0,n.A)(s().mark(function e(){var n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.A.payment.getPaymentStatus(A);case 3:if(n=e.sent.data,!a){e.next=7;break}return e.abrupt("return");case 7:if(_(n.status),I(function(e){var t;return e||(null==n||null==(t=n.targetRef)?void 0:t.id)}),"failed"!==n.status&&"cancelled"!==n.status){e.next=12;break}return t.replace("/failpage?paymentId=".concat(A)),e.abrupt("return");case 12:"completed"!==n.status&&(r=setTimeout(i,2e3)),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),r=setTimeout(i,3e3);case 18:case"end":return e.stop()}},e,null,[[0,15]])})),function(){return e.apply(this,arguments)});return i(),function(){a=!0,r&&clearTimeout(r)}}},[A,t]);var N=S&&"completed"!==S;return(0,y.jsx)(b.Y,{content:{},children:(0,y.jsx)(i.a,{bg:"bgPrimary",minH:"100vh",display:"flex",alignItems:"center",justifyContent:"center",px:4,py:12,children:(0,y.jsxs)(i.a,{maxW:"480px",w:"100%",borderRadius:"28px",border:"1px solid",borderColor:"blackAlpha.100",bg:x.Q.card,p:{base:6,sm:9},textAlign:"center",boxShadow:"0 24px 60px -32px rgba(10,10,10,.35)",children:[(0,y.jsx)(o.o,{mx:"auto",w:"64px",h:"64px",borderRadius:"full",bg:N?"bgPrimary":x.Q.lime,color:N?"textColor.main":x.Q.inkOnAccent,mb:5,children:(0,y.jsx)(g.In,{name:N?"hourglass":"checkmarkDone",width:"30px",height:"30px",color:N?x.Q.ink:x.Q.inkOnAccent})}),(0,y.jsx)(c.D,{as:"h1",fontFamily:"Onest",fontSize:{base:"26px",sm:"30px"},fontWeight:900,letterSpacing:"-0.8px",color:"textColor.main",children:(0,y.jsx)(d.sA,{id:"thankspage.title",defaultMessage:"Thank You for Your Order!"})}),(0,y.jsx)(l.E,{mt:3,fontSize:"14.5px",lineHeight:"1.6",color:"contentSecondary",children:N?(0,y.jsx)(d.sA,{id:"thankspage.processing",defaultMessage:"Your payment is being finalized. This page will update automatically."}):(0,y.jsx)(d.sA,{id:"thankspage.subtitle",defaultMessage:"Your order has been successfully processed."})}),(w||D||v)&&(0,y.jsxs)(i.a,{mt:4,borderRadius:"16px",bg:"bgPrimary",p:4,textAlign:"left",fontSize:"13px",children:[w&&(0,y.jsx)(l.E,{fontWeight:700,children:(0,y.jsx)(d.sA,{id:"thankspage.eventTitle",defaultMessage:"Event: {title}",values:{title:w}})}),(D||v)&&(0,y.jsx)(l.E,{mt:+!!w,color:"contentSecondary",children:(0,y.jsx)(d.sA,{id:"thankspage.orderId",defaultMessage:"Order ID: {id}",values:{id:D||v}})})]}),(0,y.jsx)(l.E,{mt:4,fontSize:"13px",color:"contentSecondary",children:(0,y.jsx)(d.sA,{id:"thankspage.confirmation",defaultMessage:"A confirmation email has been sent to your email address."})}),(0,y.jsx)(i.a,{as:"button",type:"button",mt:6,w:"100%",onClick:function(){return e?t.push("/account/orders"):window.location.href="/"},bg:x.Q.inkSurface,color:"white",borderRadius:"full",py:3.5,fontSize:"14px",fontWeight:800,_hover:{filter:"brightness(1.1)"},children:e?(0,y.jsx)(d.sA,{id:"thankspage.viewOrdersButton",defaultMessage:"View My Orders"}):(0,y.jsx)(d.sA,{id:"thankspage.continueButton",defaultMessage:"Continue"})})]})})})}},45105:(e,t,r)=>{e.exports=r(70432)},79442:(e,t,r)=>{"use strict";r.d(t,{D:()=>b});var n=r(42969),a=r(59860),s=r(37876),i=r(29185),o=r(75255),c=r(2247),l=r(3104),u=r(37159),p=["className"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var b=(0,c.R)(function(e,t){var r=(0,l.V)("Heading",e),n=(0,i.M)(e),c=(n.className,(0,a.A)(n,p));return(0,s.jsx)(u.B.h2,f(f({ref:t,className:(0,o.cx)("chakra-heading",e.className)},c),{},{__css:r}))});b.displayName="Heading"}},e=>{e.O(0,[3455,636,6593,8792],()=>e(e.s=24868)),_N_E=e.O()}]);
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.