1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7234],{8349:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(e,t,n)=>{var r;let i="annual"===t||"one-time"===t?e.annualPrice:e.monthlyPrice;return{item_id:(null==e||null==(r=e.id)?void 0:r.toString())||null,item_name:null==e?void 0:e.name,item_variant:t,currency:n,price:parseFloat(i),quantity:1}}},13087:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[siteSlug]/gift/redeem/complete",function(){return n(26674)}])},26674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>x,default:()=>A});var r=n(37876),i=n(14232),a=n(50774),l=n(8349),s=n(40880),c=n(89099),d=n(4309),u=n(77585),o=n(88876),p=n(67685),_=n(37036),m=n(81249),h=n(20884),g=n(41704),f=n(86663),y=n.n(f);let v=async(e,t)=>{try{let n=new URLSearchParams({siteSlug:e,sessionId:t});return(await fetch("/api/checkout/verify?".concat(n.toString()))).json()}catch(t){(0,s.v)(t,{siteSlug:e})}return null};var x=!0;let A=e=>{let{globalData:t}=e,{siteTitle:n,publisherCurrency:s,confirmationMessageSettings:f}=t,{query:{siteSlug:x,session_id:A}}=(0,c.useRouter)(),{userData:j,updateUserData:w}=(0,d.u)(),{hydrated:k,productCart:N,productInterval:S}=j,b=(0,u.A)(),T=(0,o.A)("gift_redeemed"),{giftRedemptionMessage:C}=f||{},[P,W]=(0,i.useState)(!1),[I,O]=(0,i.useState)(!1),F=!!A&&!I;return(0,i.useEffect)(()=>{if(window.location){if(k&&A&&x){let e=Array.isArray(x)?x[0]:x,t=Array.isArray(A)?A[0]:A;v(e,t).then(async e=>{if((null==e?void 0:e.status)==="success"){var n;W(!0),await (0,a.Jv)("checkout",{sessionId:t,redirect:!1});let r=await (0,a.Ht)(),i=null==r||null==(n=r.customer)?void 0:n.id;W(!1);let c=N?(0,l.A)(N,S,s):{currency:s||"USD",price:0};T({currency:c.currency,value:0,transaction_id:e.subscriptionId||t,items:N?[c]:[]}),w({customerId:i,productCart:null,productInterval:p.IX.Annual,entitlements:(null==N?void 0:N.entitlements)||[],pendingOrder:!0,pendingOrderFetchTime:Date.now()+1e4,pendingOrderFetchAttempts:0,validated:!0,verified:!0,status:_._.Paying,gift:{recipient:null,code:null}}),b(null),O(!0)}});return}if(k&&!A&&N&&N.entitlements){let e=(0,l.A)(N,S,s);T({currency:e.currency,value:parseFloat(e.price.toString()),transaction_id:N.id.toString(),items:[e]}),w({productCart:null,productInterval:p.IX.Annual,entitlements:N.entitlements,pendingOrder:!0,pendingOrderFetchTime:Date.now()+1e4,pendingOrderFetchAttempts:0,gift:{recipient:null,code:null}}),b(null),O(!0)}}},[k,A,x,w,b]),(0,r.jsx)(m.A,{...t,title:"".concat(n," | Gift Complete"),footerTheme:"simple",hideAds:!0,children:(0,r.jsxs)("div",{className:y().pageWrapperComplete,children:[(0,r.jsx)("h1",{className:y().pageTitle,children:"Thank you!"}),(0,r.jsxs)("div",{className:y().inner,children:[(0,r.jsx)("h2",{className:y().pageSubtitle,children:"Your ".concat(n," gift redemption process is complete.")}),F?P?(0,r.jsx)("p",{children:"Setting up your account..."}):(0,r.jsx)("p",{children:"Verifying your gift redemption..."}):(0,r.jsxs)(r.Fragment,{children:[C?(0,r.jsx)(g.A,{tag:"div",className:y().confirmationMessage,html:C,allowedTags:["a","em","div","li","ol","p","strong","ul"]}):(0,r.jsx)("p",{children:"If your gift subscription came with any additional perks, stay tuned to your inbox for details within the next couple of hours."}),(0,r.jsx)("nav",{"aria-label":"New subscription menu",children:(0,r.jsxs)("ul",{className:y().navList,children:[(0,r.jsx)("li",{children:(0,r.jsx)(h.A,{href:"/",className:y().link,children:"Check out the homepage"})}),(0,r.jsx)("li",{children:(0,r.jsx)(h.A,{href:"/account#payment",className:y().link,children:"Add a payment method"})}),(0,r.jsx)("li",{children:(0,r.jsx)(h.A,{href:"/account",className:y().link,children:"Personalize your account settings"})})]})})]})]})]})})}},86663:e=>{e.exports={pageWrapper:"redeem_pageWrapper__5BoIL",pageWrapperComplete:"redeem_pageWrapperComplete__6sa__",pageTitle:"redeem_pageTitle__SWHWH",pageSubtitle:"redeem_pageSubtitle__9GQ_l",paymentBtn:"redeem_paymentBtn__5fVJp",backLink:"redeem_backLink__xyWh_",form:"redeem_form__m934T",inputWrapper:"redeem_inputWrapper___zxwH",labelText:"redeem_labelText__BGRtm",input:"redeem_input__ayTXe",productDetails:"redeem_productDetails__HS5XB",finePrint:"redeem_finePrint__4vCeY",f
1inePrintCentered:"redeem_finePrintCentered__nWpOX redeem_finePrint__4vCeY",navList:"redeem_navList__k_6cd",inner:"redeem_inner__nbx71",confirmationMessage:"redeem_confirmationMessage__vkcN_"}}},e=>{e.O(0,[1596,6071,1249,636,6593,8792],()=>e(e.s=13087)),_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.