1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6988e95d-9aa2-4a5a-8303-6a1c3cd3e71b",e._sentryDebugIdIdentifier="sentry-dbid-6988e95d-9aa2-4a5a-8303-6a1c3cd3e71b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9770],{15413:(e,t,A)=>{"use strict";A.d(t,{N:()=>h,P:()=>_});var n=A(68503),r=A(34557),s=A(58574),a=A(22855),i=A(2023),l=A(73281),o=A(5676);let d={e_ticket_3_months:{durationMonths:3},e_ticket:{durationMonths:12}},c="giftPurchaseId";function u(e){if(null===e)return void window.sessionStorage.removeItem(c);window.sessionStorage.setItem(c,e)}function h(){return window.sessionStorage.getItem(c)?String(window.sessionStorage.getItem(c)):null}function _(e){let{stripeProducts:t}=e;(0,n.useEffect)(()=>{u(null)},[]);let A=(0,a.Ay$)(),c=(0,i.A)(),h=(0,s.a)(),_=function(e){let{data:t}=(0,r.A)();return e.flatMap(e=>{var A;let n=d[e.id],r=null==(A=e.prices)?void 0:A.find(e=>e.currency===(null==t?void 0:t.currencyCode));return void 0===n||void 0===r?[]:[{id:e.id,price:r,durationMonths:n.durationMonths,savingsPercent:5*Math.floor(Math.round(100-r.amount/r.amountUndiscounted*100)/5)}]})}(t),[p,g]=(0,n.useState)("e_ticket"),f=(0,n.useCallback)(async()=>{let e=_.find(e=>e.id===p);try{var t,n;if(void 0===e)throw Error("Product with id ".concat(p," not found"));let{setupProductPurchase:r}=await A.setupProductPurchase({input:{priceId:e.price.id,successUrl:(0,o.Lo)("/thank-you")}});(null==r||null==(t=r.result)?void 0:t.purchaseId)&&u(r.result.purchaseId),(null==r||null==(n=r.result)?void 0:n.url)&&(window.location.href=r.result.url)}catch(e){h({title:c("error_page_generic__title"),text:c("error_page_generic__message"),type:"error"}),(0,l.C)(e)}},[_,A,p,h,c]);return{products:_,selectedId:p,onSubmit:f,onChangeId:g}}},17641:(e,t,A)=>{"use strict";A.r(t),A.d(t,{__N_SSG:()=>j,default:()=>I});var n=A(19911),r=A(38416),s=A(24874),a=A.n(s),i=A(24902),l=A(68503),o=A(74598),d=A(56443),c=A(6465),u=A(32234),h=A(87354),_=A(26264),p=A(15730),g=A(15413),f=A(22855),x=A(2023),m=A(95430),y=A(92002),v=A(71085),w=A(25276),j=!0;function I(){var e,t,A,s;let c=(0,f.Ay$)(),j=(0,x.A)(),{currentUser:I,isLoading:b}=(0,p.A)(),k=(0,g.N)(),{data:N,isLoading:B,error:C}=(0,w.u)(k,()=>c.productPurchaseStatus({purchaseId:k}),{revalidateOnFocus:!1,revalidateOnReconnect:!1});return(0,l.useEffect)(()=>{var e,t,A;if(!(null==N?void 0:N.productPurchaseStatus)||b)return;let{purchaseId:n,purchasePrice:r,purchaseCurrency:s}=N.productPurchaseStatus,a="giftPurchaseWasTracked";if(n&&window.sessionStorage.getItem(a)===n)return;let i=null==N||null==(A=N.productPurchaseStatus)||null==(t=A.products)||null==(e=t[0])?void 0:e.id;n&&r&&s&&i&&((0,m.sx)({eventName:"GiftPurchase",purchaseId:n,purchasePrice:r,currency:(0,y.l_)(s),itemId:i,userId:null==I?void 0:I.id,userEmail:null==I?void 0:I.email}),window.sessionStorage.setItem(a,n))},[N,b,null==I?void 0:I.id,null==I?void 0:I.email]),(0,n.jsxs)(u.A,{testId:"thank-you-page",children:[(0,n.jsx)(d.A,{title:j("gift_code_purchase_thank_you_page__page_title"),noindex:!0,nofollow:!0}),(0,n.jsx)(h.A,{children:(0,n.jsxs)(l.Fragment,{children:[B&&(0,n.jsx)(_.F,{}),(C||null===k)&&(0,n.jsx)("div",{className:"col-span-full flex h-full items-center justify-center",children:(0,n.jsx)(o.q,{title:j("gift_code_purchase_thank_you_page__loading_error"),message:null==C||null==(A=C.response)||null==(t=A.errors)||null==(e=t[0])?void 0:e.message,action:"homepage"})}),!B&&N&&(null==(s=N.productPurchaseStatus)?void 0:s.status)=="complete"&&(0,n.jsxs)("div",{className:"my-10 flex flex-col gap-14",children:[(0,n.jsxs)("div",{className:"fancy-border mx-auto flex w-full max-w-2xl flex-col gap-8 rounded-2xl p-10",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(a(),{src:i.A,alt:"",className:"mx-auto",height:222,width:112,loader:v.KN}),(0,n.jsx)("div",{className:"mx-auto h-px max-w-72 shimmer-silver"})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)("h1",{className:"mx-auto max-w-96 text-center typo-title-3 text-balance text-text-primary",children:j("gift_code_purchase_thank_you_page__title")}),(0,n.jsx)("hr",{className:"shimmer-divider"}),(0,n.jsx)("p",{className:"pt-8 text-center typo-body-2 text-text-tertiary",children:j("gift_code_purchase_thank_you_page__note")})]})]}),(0,n.jsxs)("div",{className:"mx-auto flex flex-col gap-6 px-6 text-center",children:[(0,n.jsx)("p",{className:"typo-caption-1 text-text-tertiary",children:j("gift_code_purchase_thank_you_page__contact_support")}),(0,n.jsx)(r.g,{variant:"link",href:new URL(j("gift_code_purchase_thank_you_page__support_address")).href,chevron:"right",children:j("gift_code_purchase_thank_you_page__contact_us")})]})]})]})})]})}I.hideNavigation=!0,I.headerComponent=c.P},24902:(e,t,A)=>{"use strict";A.d(t,{A:()=>n});let n={src:"/_next/static/media/gift-card-design-0.87b01e97.avif",height:2192,width:1138,blurDataURL:"data:image/avif;base64,AAAAHGZ0eXBhdmlmAAAAAG1pZjFhdmlmbWlhZgAAAXBtZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAADRpbG9jAAAAAERAAAIAAQAAAAABlAABAAAAAAAAACMAAgAAAAABtwABAAAAAAAAABsAAAA4aWluZgAAAAAAAgAAABVpbmZlAgAAAAABAABhdjAxAAAAABVpbmZlAgAAAAACAABhdjAxAAAAAA5waXRtAAAAAAABAAAAr2lwcnAAAACKaXBjbwAAAAxhdjFDgSACAAAAABRpc3BlAAAAAAAAAAQAAAAIAAAAEHBpeGkAAAAAAwgICAAAAAxhdj
1FDgQAcAAAAAA5waXhpAAAAAAEIAAAAOGF1eEMAAAAAdXJuOm1wZWc6bXBlZ0I6Y2ljcDpzeXN0ZW1zOmF1eGlsaWFyeTphbHBoYQAAAAAdaXBtYQAAAAAAAAACAAEDgQIDAAIEhAIFhgAAABppcmVmAAAAAAAAAA5hdXhsAAIAAQABAAAARm1kYXQSAAoIOAS+0gIaDSAyFRpCYuTlFFFBQAAAkDWPl9FpfEh+rhIACgUYBL7CoDIQGMA00QDtj2vS1eYu9IwoeA==",blurWidth:4,blurHeight:8}},26264:(e,t,A)=>{"use strict";A.d(t,{A:()=>o,F:()=>l});var n=A(19911),r=A(20347),s=A(99197),a=A.n(s);let i=e=>(0,n.jsx)("div",{...e,"data-sentry-component":"Spinner","data-sentry-source-file":"spinner.tsx",children:(0,n.jsx)("svg",{viewBox:"25 25 50 50",className:a().svg,"data-sentry-element":"svg","data-sentry-source-file":"spinner.tsx",children:(0,n.jsx)("circle",{cx:"50",cy:"50",r:"20",fill:"none",stroke:"rgba(255, 255, 255, 1)",strokeWidth:"4","data-sentry-element":"circle","data-sentry-source-file":"spinner.tsx"})})}),l=e=>(0,n.jsx)(r.A,{...e,"data-sentry-element":"ContainerGrid","data-sentry-component":"ContainerSpinner","data-sentry-source-file":"spinner.tsx",children:(0,n.jsx)("div",{className:"col-span-full flex items-center justify-center",children:(0,n.jsx)(i,{className:"size-12 md:size-16","data-sentry-element":"Spinner","data-sentry-source-file":"spinner.tsx"})})}),o=i},34557:(e,t,A)=>{"use strict";A.d(t,{A:()=>i});var n=A(22855),r=A(92002),s=A(25276);async function a(e){let{geoinfo:t}=await e.geoinfo();if(t)return{countryCode:t.countryCode.toUpperCase(),currencyCode:(0,r.l_)(t.currencyCode)}}function i(){let e=(0,n.Ay$)();return(0,s.u)("geoinfo",()=>a(e),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!0})}},49553:(e,t,A)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/thank-you",function(){return A(17641)}])},99197:e=>{e.exports={svg:"spinner_svg__HIvCF",rotate:"spinner_rotate__UGVkR",dash:"spinner_dash__q3_Ys",color:"spinner_color__6o9nd"}}},e=>{e.O(0,[636,8974,8792],()=>e(e.s=49553)),_N_E=e.O()}]); 2//# sourceMappingURL=thank-you-e7954ff95d5d6447.js.map
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.