1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8776],{91993:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/merch/thank-you",function(){return r(12343)}])},77123:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var s=r(85893);r(67294);var n=r(60426);let a=e=>{let{children:t,className:r,as:a="h2"}=e;return(0,s.jsx)(a,{className:(0,n.cn)("text-charcoal-900 text-center text-pretty text-2xl/[1.1] font-medium tracking-tight sm:text-3xl/[1.05] md:text-4xl/[1.05] lg:text-5xl/[1.05]",r),children:t})}},91223:function(e,t,r){"use strict";r.d(t,{G:function(){return a}});var s=r(85893);r(67294);var n=r(60426);let a=e=>{let{children:t,className:r,as:a="h2"}=e;return(0,s.jsx)(a,{className:(0,n.cn)("text-center text-pretty text-xl/[1.6] font-light text-charcoal-900",r),children:t})}},12343:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return f}});var s=r(85893),n=r(41664),a=r.n(n),c=r(67294),l=r(7376),i=r(77123),d=r(91223),o=r(86968),x=r(72129),m=r(95797),h=r(61941),u=r(67587),f=!0;function _(e){let{creditedCents:t,balance:r}=e,{t:n,fmt:a}=(0,u._T)();return(0,s.jsxs)("div",{className:"mt-4 inline-flex w-full items-center gap-2.5 rounded-lg border border-emerald-200 bg-emerald-50 px-4 py-3",children:[(0,s.jsx)("span",{className:"text-base",children:"â¨"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"text-[13px] font-medium text-emerald-800",children:[n("you_earned_prefix")," ",(0,s.jsx)("strong",{children:a(t)})," ",n("you_earned_suffix")]}),(0,s.jsxs)("div",{className:"font-mono text-[10.5px] text-emerald-700 mt-0.5",children:[n("new_balance")," \xb7 ",a(Math.round(100*r))]})]})]})}t.default=()=>{let[e,t]=(0,c.useState)(null),r=(0,h.yj)(),{t:n}=(0,u._T)(),f=(0,c.useRef)(!1),[p,j]=(0,c.useState)(0);return(0,c.useEffect)(()=>{try{let e=window.localStorage.getItem("adverfly_merch_last_order");e&&t(JSON.parse(e))}catch(e){}},[]),(0,c.useEffect)(()=>{if(!e||f.current)return;let t="adverfly_merch_credited_".concat(e.id);if(window.localStorage.getItem(t)){f.current=!0;return}let s=(0,h.oj)(e.total);s>0&&(r.earn(s,e.total,n("cashback_tx_description",{id:e.id.slice(-8)})),j(s)),window.localStorage.setItem(t,"1"),f.current=!0},[e,r]),(0,s.jsxs)(x.V,{children:[(0,s.jsx)(l.H,{noIndex:!0,title:"Thank you â Adverfly Merch",description:"Order confirmation."}),(0,s.jsx)("section",{className:"px-6 py-20 sm:py-28",children:(0,s.jsxs)("div",{className:"mx-auto flex max-w-xl flex-col items-center gap-5 rounded-2xl border border-gray-200 bg-white p-10 text-center",children:[(0,s.jsx)("div",{className:"font-mono text-xs uppercase tracking-wide text-gray-500",children:e?"".concat(n("order_prefix")).c
1oncat(e.id.slice(-8)):n("order_confirmed")}),(0,s.jsx)(i.O,{children:n("thanks_heading")}),(0,s.jsx)(d.G,{children:n("thanks_subtitle")}),e&&(0,s.jsxs)("div",{className:"mt-4 w-full text-left",children:[(0,s.jsxs)("div",{className:"overflow-hidden rounded-lg border border-gray-200",children:[e.items.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-baseline justify-between border-b border-gray-100 px-4 py-3 last:border-b-0",children:[(0,s.jsxs)("div",{className:"text-sm text-charcoal-900",children:[e.name,e.size?" \xb7 ".concat(e.size):"",(0,s.jsxs)("span",{className:"text-zinc-500",children:[" \xd7 ",e.qty]})]}),(0,s.jsx)("div",{className:"font-mono text-sm text-charcoal-900",children:(0,m.T4)(e.price*e.qty)})]},t)),(0,s.jsxs)("div",{className:"flex items-baseline justify-between bg-gray-50 px-4 py-3",children:[(0,s.jsx)("div",{className:"text-sm font-medium text-charcoal-900",children:n("total")}),(0,s.jsx)("div",{className:"font-mono text-sm text-charcoal-900",children:(0,m.T4)(e.total)})]})]}),p>0&&(0,s.jsx)(_,{creditedCents:p,balance:r.balance})]}),(0,s.jsxs)("div",{className:"mt-4 flex gap-3",children:[(0,s.jsx)(o.z,{as:a(),href:"/merch/shop",variant:"secondary",children:n("continue_shopping")}),(0,s.jsx)(o.z,{as:a(),href:"/",variant:"primary",children:n("back_to_home")})]})]})})]})}}},function(e){e.O(0,[3714,4420,8388,8705,5675,1978,8270,4359,7419,2647,967,9463,2129,2888,9774,179],function(){return e(e.s=91993)}),_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.