PageSourceSearch

https://glowaura.co/cdn/shopifycloud/checkout-web/assets/c1/909cc5d6.YVAuXVSA.js

js glowaura.co collected 2026-10-08 08:05:54 UTC 173,335 bytes, 1 lines download raw bytes

1import{z as e,u as n,S as t,g as a,h as i,o as r,T as o,y as l,q as s,k as c,m as d,_ as u,ao as h,I as p,t as m,s as _,w as y,H as g,a6 as f,D as b,aA as v,X as k,x as w,aF as C,Q as S,a7 as x,a8 as P,n as I,p as L}from"./2c1ab0fe.B2yRRyAW.js";import{w as T,B as M,S as A,a1 as N,j as E,cG as R,ai as D,ab as B,bG as O,d3 as z,f as F,H as q,i as U,cN as H,gF as j,k as W,a2 as $,ar as V,I as Y,L as K,b as G,ao as Q,dL as Z,dw as J,cQ as X,au as ee,cD as ne,a9 as te,cL as ae,aU as ie,aF as re,eV as oe,hC as le,hD as se,aC as ce,a3 as de,c7 as ue,K as he,E as pe,G as me,bM as _e,hE as ye,cl as ge,aj as fe,d as be,o as ve,U as ke,fb as we,e as Ce,gr as Se,hF as xe,aw as Pe,y as Ie,r as Le,hG as Te,hH as Me,hI as Ae,hJ as Ne,gA as Ee,hK as Re,hL as De,hM as Be,hN as Oe,hO as ze,s as Fe,be as qe,M as Ue,bB as He,a0 as je,hP as We,eM as $e,hQ as Ve,l as Ye,X as Ke,A as Ge,bP as Qe,c as Ze,cj as Je,cH as Xe,hR as en,hS as nn,hT as tn,eb as an,af as rn,ag as on,aH as ln,aT as sn,hU as cn,bm as dn,cB as un,bL as hn,hV as pn,hW as mn}from"./164ad2e3.-hfWY9cN.js";import{v as _n,c as yn,ac as gn,ju as fn,jv as bn,bl as vn,e2 as kn,au as wn,ar as Cn,aP as Sn,jw as xn,z as Pn,aG as In,aJ as Ln,c2 as Tn,d9 as Mn,jx as An,bN as Nn,jy as En,d3 as Rn,L as Dn,dV as Bn,dW as On,y as zn,jz as Fn,cq as qn,jA as Un,cB as Hn,aq as jn,jB as Wn,aR as $n,dy as Vn,aQ as Yn,cD as Kn,dk as Gn,T as Qn,jC as Zn,b8 as Jn,cA as Xn,jD as et,aM as nt,e8 as tt,d$ as at,at as it,jE as rt,cb as ot,b$ as lt,jF as st,jG as ct,jH as dt,bJ as ut,ag as ht,jI as pt,jJ as mt,en as _t,p as yt,jK as gt,d2 as ft,J as bt,n as vt,aF as kt,hT as wt,iT as Ct}from"./4b4bc88f.JFrEI7LU.js";import{a as St,u as xt}from"./e0989459.bnt6Bm9T.js";import{E as Pt}from"./137622f3.C92Jcg0T.js";import{d as It,c as Lt,P as Tt,a as Mt,b as At}from"./0a30a815.Cf_n7BVP.js";import{S as Nt,T as Et}from"./79974aab.Du4uYIZv.js";import{T as Rt}from"./7e8cd205.CVODtlUD.js";import{u as Dt}from"./9f047e05.D-yqdheF.js";import{u as Bt,S as Ot,a as zt}from"./71ae3d5c.BTocP6cf.js";import{b as Ft,i as qt,s as Ut,a as Ht,c as jt}from"./181d38d3.T13hkdEm.js";import{d as Wt,b as $t,g as Vt}from"./64de7b49.BpfyYV-0.js";import{P as Yt}from"./598fef4e.C__a6xIj.js";import{P as Kt}from"./30074413.BMm7CBR8.js";import{A as Gt}from"./4b1c22b7.BOiV_1od.js";import{r as Qt}from"./dae24aab.xiAL8T3Q.js";import{S as Zt}from"./6fb6f9d8.D5bv4loK.js";import{P as Jt}from"./47b970b2.B55cGlxq.js";import{v as Xt,b as ea,a as na}from"./1f5e7811.PrD3cLrR.js";import{u as ta}from"./22345fd4.CQJ0n-1P.js";import{l as aa,m as ia,r as ra,S as oa,M as la,R as sa,n as ca,c as da,o as ua,h as ha,a as pa,p as ma,I as _a,f as ya,g as ga,j as fa,k as ba,q as va,P as ka,s as wa,C as Ca,t as Sa}from"./c57e39e6.DKzurOYx.js";import{g as xa,a as Pa,b as Ia,R as La}from"./e77f7fe0.B1UY2cg5.js";import{R as Ta,a as Ma,L as Aa}from"./03fde911.CapGavQb.js";import{P as Na,M as Ea,c as Ra,m as Da,t as Ba,b as Oa}from"./be176b00.C8NX_IPD.js";import{d as za,b as Fa,i as qa,u as Ua,E as Ha,S as ja,B as Wa}from"./347b440c.b4pdpzx1.js";import{i as $a,b as Va,c as Ya,d as Ka}from"./0e4087ec.C61RjYJw.js";import{e as Ga}from"./2495faa4.B5RDSEV2.js";import{r as Qa}from"./9ce08e25.q3KqAteP.js";import{C as Za}from"./d6972375.jFp4LQIH.js";import{u as Ja}from"./f78726c8.90HJ76iF.js";import{P as Xa}from"./064f6ac1.CZOb24JP.js";import{I as ei}from"./17e57de1.d8zWzF56.js";import{I as ni}from"./55098bf1.OVeEjE2R.js";import{S as ti,P as ai}from"./cb38e5c2.6itoXFFb.js";import{S as ii}from"./9f3d9f8c.BgKcLET0.js";import{u as ri}from"./app.C_W8kcQ4.js";import{D as oi,B as li}from"./8d3a12c3.Bdh6O0rg.js";import{S as si,a as ci}from"./f51e663e.DTa726QN.js";import{S as di}from"./1444e6bd.m8JEnfnf.js";import{a as ui}from"./0c0ad074.BoVClIit.js";import{h as hi}from"./60a453ce.aSs2kW8G.js";import{T as pi}from"./7b0c98ea.DsQmemn7.js";import{u as mi}from"./945a08d6.zhlWcV3z.js";import{v as _i}from"./2210eadb.DF0gIp_2.js";import"./d0bb51ec.CiN57OqX.js";import"./f67abd2c.Boj0gJpa.js";import"./e12db40c.ZpKYxNRe.js";import"./9dba8418.BqWu-Ch9.js";import"./5fda1420.BwaRlU2R.js";import"./a9fa9fda.DtwHg2w5.js";import"./ca3e798e.j1SNghYW.js";import"./81e109b1.DOkM2TK2.js";import"./f36e5f3f.BB0m5pdO.js";import"./4aab4b34.djos3AbN.js";const yi={id:"0c62c3aaedf84bd307e1134828e5fcc88a47d83c453c97544a6cc8711e6444af",type:"mutation",name:"SubscribeForShippingUpdates",source:""};
1class gi extends Error{constructor(){super(...arguments),this.name="SubscribeForShippingUpdateError"}}function fi(){const{checkout:e}=yn(),n=St(),t=T(),a=t?.isRedacted??!1,i=Boolean(n?.shopAppEligible),r=Boolean(n?.shopAppQrCodeKillswitch);return!a&&i&&!r&&!e.configuration.isUniversalCheckoutFinalizer}function bi(){const e=T();if(e?.orderIdentity?.id)return Number(_n(e.orderIdentity.id))}var vi=(e=>(e[e.DisplayButton=0]="DisplayButton",e[e.DisplayForm=1]="DisplayForm",e))(vi||{});function ki({children:e,open:a,label:i,onClick:r,icon:o}){return a?n(t,{children:e}):n(A,{direction:"inline",gap:"base",children:n(M,{onClick:r,"aria-expanded":!1,children:n(A,{direction:"inline",gap:"small-200",alignItems:"center",children:[n(N,{type:o}),n(E,{children:i})]})})})}const wi=({label:e,onInputValueChange:t,error:r,value:o})=>{const l=a();return i(()=>{l.current?.focus()},[r]),n(Pt,{id:"email",name:"email",label:e,ref:l,onInput:t,required:!0,error:r,value:o})},Ci=({onHandleSubmit:t,isFormSubmitting:a,subscriptionErrorMessage:s})=>{const c=r(""),{i18n:d}=yn(),u=c.value,h=o(()=>l(void 0),[s]),p=h.value,[m,_]=e(!1),y=d.translate("thank_you.order_updates_submit_subscription"),g=o(()=>({state:{email:c},errors:{email:h}}),[c,h]);return i(()=>{m||(p||s)&&(h.value=p||s)},[m,p,s,h]),n(z,{target:"order.deliveryUpdates",children:n(R,{...g,children:n(D,{onSubmit:()=>{_(!1),/@/.test(u)?(h.value=void 0,t(u)):h.value=d.translate("field_errors.email_invalid")},implicitSubmit:y,children:n(A,{gap:"small-300",children:[n(B,{gap:"small-400 small-200",gridTemplateColumns:"minmax(0, 50%) minmax(auto, max-content)",gridAutoColumns:"1fr",gridTemplateRows:"minmax(auto, max-content)",gridAutoRows:"minmax(auto, max-content)",children:[n(wi,{label:d.translate("contact.email_label"),value:u,error:Boolean(p),onInputValueChange:e=>{h.value=void 0,_(!0),c.value=e}}),n(M,{variant:"primary",type:"submit",loading:a,children:y})]}),p?n(O,{controlID:"email",children:p}):null]})})})})},Si=()=>{const{i18n:a,checkout:{negotiator:r}}=yn(),{value:o}=r.current.fields.contactInfo,{submitSubscribeForShippingUpdate:l,status:c,error:d}=function(){const{client:n,observability:t,graphql:{coreGraphql:a}}=yn(),i=n.unstable_getSerialization("sessionToken"),[r,o]=e(),[l,s]=e("idle"),c=T(),d=c?.orderIdentity?.id;return{submitSubscribeForShippingUpdate:async function(e){if(s("loading"),o(void 0),!i||!d)return s("failed"),o("SUBSCRIPTION_FAILED"),void t.error(new gi("Missing sessionToken or orderId"));const{data:n}=await a.mutate(yi,{variables:{sessionToken:i,orderId:d,email:e}});if(n){const{__typename:e}=n?.subscribeForShippingUpdates;switch(e){case"SubscribeForShippingUpdatesSuccess":return void s("subscribed");case"SubscribeForShippingUpdatesFailure":return s("failed"),void o(n?.subscribeForShippingUpdates.code);default:s("idle"),t.error(new gi("Undefined subscribeForShippingUpdates type"))}}},status:l,error:r}}(),[u,h]=e(vi.DisplayButton),[p,m]=e(!0),_=e=>{e&&l(e)},y=s(e=>{switch(e){case"SUBSCRIPTION_FAILED":return a.translate("thank_you.order_updates_subscribe_to_email_notifications_failed");case"EMAIL_ALREADY_EXISTS":return a.translate("thank_you.order_updates_subscribe_to_email_notifications_email_already_exists");case"INVALID_REQUEST_INPUT":case"INVALID_EMAIL":return a.translate("field_errors.email_invalid")}},[a])(d);i(()=>{m("subscribed"!==c)},[c,d]);const g={subTitle:a.translate("thank_you.order_status_updates_with_email"),fieldLabel:a.translate("thank_you.order_updates_subscribe_to_email_notifications")};return n(t,{children:[n(F,{children:g.subTitle}),p&&n(A,{gap:"base",padding:"base none none none",children:n(ki,{label:g.fieldLabel,open:u===vi.DisplayForm,icon:"email",onClick:()=>{o?.email?_(o.email):h(vi.DisplayForm)},children:n(Ci,{onHandleSubmit:_,isFormSubmitting:"loading"===c,subscriptionErrorMessage:y})})})]})},xi=()=>{const{i18n:e,shop:t}=yn(),a=t.hasFlagEnabled(gn),i=e.translate("thank_you.order_updates_title");return n(U,{accessibilityLabel:i,colorLayer:a?void 0:"control",children:n(A,{gap:"small-200",children:[n(q,{children:i}),n(Si,{})]})})};function Pi(){const{checkout:{negotiator:e}}=yn(),{deliveryNext:n}=e.current.fields,t=function(){const{checkout:{negotiator:e}}=yn(),{deliveryNext:n,deliveryExpectations:t}=e.current.fields;return c(()=>{const e=n.value,a=t.value,i="filled"===e?.status,r="filled"===a?.status,o=i&&e.lines.some(e=>"ONE_TIME_PURCHASE"===e.type&&"available"===e.status&&e.methods.some(e=>e?.brandedPromise)),l=i?new Set(e.lines.filter(e=>"available"===e.status).map(e=>"available"===e.status?e.selectedDeliveryMethodHandle:null)):null,s=r&&a.deliveryExpectationLine
1s.some(({brandedPromise:e,deliveryStrategyHandle:n})=>e&&l?.has(n)),c=o||s,d=r&&a.deliveryExpectationLines.some(({brandedPromise:e,deliveryExpectationPresentmentTitle:n})=>!e&&n?.short&&n?.long);return Boolean(c||d)})}(),a=W(),i=Wt(),r=bn();return c(()=>{const e=vn(n.value),o=$(a.value.currentDetour),l=r.value.length>=kn,{oneTimePurchaseLines:s,subscriptionLines:c}=V(wn(n.value).filter(Cn)),{groups:d,nonShippableCount:u}=Ft(s),h="filled"===n.value?.status&&d.length+u===1;return e&&l&&!h||h&&c.length>=2||i.value||t.value&&o})}const Ii=()=>{const{userEvents:e,checkout:n,shop:{myshopifyDomain:t,id:a},source:{checkoutSessionIdentifier:i="checkout_identifier_undefined"}}=yn(),r=n.configuration.layout.isOnePage.value,l=Number(_n(a)),c=r?"checkout_one_redesign":"checkout_one",d=o(()=>({checkoutToken:i,shopId:l,checkoutVersion:c,shopifyDomain:t}),[i,c,t,l]);return{track:s((n,t,a)=>{var i,r;e.monorailEvent({schemaId:n,payload:(i=a?.omit??[],r={...d,...t},0===i.length?r:Object.keys(r).reduce((e,n)=>i.includes(n)?e:{...e,[n]:r[n]},{}))})},[d,e])}};function Li(){return function(){if("undefined"!=typeof window&&window.shopAppExperimentFlags)return window.shopAppExperimentFlags.sort((e,n)=>e.name<n.name?-1:1).map(e=>{return`${e.name}=${n=e.group,{control:"c",treatment:"t"}[n]||n}:r`;var n}).join(",")}()}function Ti(e){const n=Sn(),t=bi(),{track:a}=Ii(),i=Li();return{track:s(r=>{t&&a("order_status_page_interaction/4.0",{interactionType:e,interactionValue:r,orderId:t,pageviewToken:n.value.defaultAttributes?.microSessionId??"",sessionToken:n.value.defaultAttributes?.visitToken??"",experimentFlags:i},{omit:["shopifyDomain"]})},[i,e,a,t,n])}}function Mi(){const e=T()?.paymentDetails,{track:t}=Ti("follow_link"),{i18n:a,source:i,shop:{contactEmail:r},checkout:{negotiator:o}}
1=yn(),l=o.current.fields.paymentLines,s="simulated"===i.type,d=c(()=>{const n=l.value?.lines,t=(n?xn(n):void 0)?.cost;if(t)return a.formatCurrency(t.amount,{form:"short",currency:t.currencyCode});const i=Number.parseFloat(e?.paymentAmount??""),r=e?.paymentCurrency;return Number.isFinite(i)&&r?a.formatCurrency(i,{form:"short",currency:r}):0}),u=c(()=>a.translate("payment.pending_payment.multibanco.buyer_action_info",{amount_due:d.value})),h=e?.buyerActionInfo;return n(A,{gap:"base",children:n(A,{gap:"small-200",children:[n(q,{children:u}),n(A,{direction:"inline",gap:"base",children:n(Y,{children:a.translate("payment.pending_payment.multibanco.instruction_html",{contact_us:n(K,{href:s?void 0:`mailto:${r}`,onClick:s?void 0:()=>t("contact_us"),children:a.translate("thank_you.contact_us")})})})}),n(B,{gridTemplateColumns:"@media (inline-size >= small) 'repeat(3, minmax(0, 1fr))', 'minmax(0, 1fr)'",gridAutoColumns:"@media (inline-size >= small) 'repeat(3, minmax(0, 1fr))', 'minmax(0, 1fr)'",gridTemplateRows:"minmax(auto, max-content)",gridAutoRows:"minmax(auto, max-content)",gap:"small-200",children:[n(U,{children:n(A,{gap:"base",children:[n(A,{gap:"small-200",children:n(q,{children:a.translate("payment.pending_payment.multibanco.entity")})}),n(A,{gap:"small-200",children:n(E,{children:h?.entity})})]})}),n(U,{children:n(A,{gap:"base",children:[n(A,{gap:"small-200",children:n(q,{children:a.translate("payment.pending_payment.multibanco.reference")})}),n(A,{gap:"small-200",children:n(E,{children:h?.reference})})]})}),n(U,{children:n(A,{gap:"base",children:[n(A,{gap:"small-200",children:n(q,{children:a.translate("payment.pending_payment.multibanco.amount")})}),n(A,{gap:"small-200",children:n(E,{children:d})})]})})]})]})})}function Ai(){const{i18n:e,shop:t}=yn(),a=T()?.paymentDetails?.buyerActionInfo,i=t.hasFlagEnabled(gn);return"MultibancoBuyerActionInfo"!==a?.__typename?null:n(U,{accessibilityLabel:e.translate("thank_you.customer_information_title"),colorLayer:i?void 0:"control",children:n(Mi,{})})}function Ni(e){return Boolean(e?.label&&e?.text)}function Ei(e,n){const t=e.amount;if(null!=t?.amount&&t.currencyCode)return{accessibleAmount:n.formatCurrency(t.amount,{form:"name",currency:t.currencyCode}),value:`${n.formatCurrency(t.amount,{form:"short",currency:t.currencyCode})} ${t.currencyCode}`}}function Ri(e,n){if(!e)return;const t=new Date(e);return{date:n.formatDate(t,{month:"short",day:"numeric",year:"numeric"}),time:n.formatDate(t,{hour:"numeric",minute:"2-digit"})}}function Di(e){if("expired"===e.status)return!0;if(!e.expiresAt)return!1;const n=new Date(e.expiresAt).getTime();return Number.isFinite(n)&&n<=Date.now()}const Bi={familymart:"familymart",lawson:"lawson",ministop:"ministop",seicomart:"seicomart"},Oi="Asia/Tokyo";function zi(e){return Boolean(e?.label&&e?.text)}function Fi(e){return e.key??e.label??"konbini"}function qi({detail:e,id:a}){const{i18n:i}=yn(),o=r(!1),l=i.translate("payment.lpm.konbini.voucher.code_copied");return n(t,{children:[n(Z,{id:a,name:a,label:e.label,value:e.text,readOnly:!0,accessoryEnd:n(M,{variant:"tertiary",size:"small",onClick:async()=>{try{await J(e.text),o.value=!0}catch{o.value=!1}},accessibilityLabel:o.value?l:i.translate("payment.lpm.konbini.voucher.copy_code",{label:e.label}),children:n(N,{type:o.value?"check":"clipboard"})})}),n("p",{role:"status","aria-live":"polite",className:Pn({screenReaders:"only"}),children:o.value?l:""})]})}function Ui({instructionSet:e,open:t,onToggle:a}){const i=Fi(e),r=e.label??i,o=(e.details??[]).filter(zi),l=(e.steps??[]).filter(Boolean),s=`konbini-chain-${i}-instructions`;return n("div",{id:`konbini-chain-${i}`,className:d("Bedu9",t&&"RExUg"),children:[n(Kt,{accessibilityRole:"expandableControl",accessibilityLabel:r,controlId:s,expanded:t,onPress:a,className:"Xaalv",padding:"base",children:n(B,{gridTemplateColumns:"auto minmax(0, 1fr) auto",gap:"small-300",alignItems:"center",children:[n(Yt,{type:Bi[i]??"konbini",active:!0,accessibilityVisibility:"hidden"}),n(E,{type:"strong",children:r}),n(N,{type:t?"chevronUp":"chevronDown",size:"small"})]})}),n("div",{className:"_8A0Cd",children:n(B,{id:s,gridTemplateRows:t?"minmax(0, 1fr)":"minmax(0, 0fr)",children:n("div",{className:"JIcdC",children:n(G,{inert:!t,padding:"base",paddingBlockStart:"none",children:n(A,{gap:"base",children:[n(B,{gridTemplateColumns:o.length>1?"minmax(0, 1fr) minmax(0, 1fr)":"1fr",gap:"small-400",children:o.map((e,t)=>n(qi,{detail:e,id:`konbini-${i}-code-${t}`},e.label))}),l.length>0?n("ol",{className:"CMO8N",children:l.map(e=>n("li",{className:"Bgyek",children:n(E,{color:"subdued",size:"base",children:e})},`${i}-${e}`))}):null]})})})})})]})}function Hi({amount:e,expired:t}){const{i18n:a}=yn();return t?n(q,{level:1,children:a.translate("payment.lpm.konbini.voucher.expired_title")}):e?n(q,{level:1,children:[n(E,{accessibilityVisibility:"exclusive",children:a.translate("payment.lpm.konbini.voucher.pay",{amount:e.accessibleAmou
1nt})}),n(E,{accessibilityVisibility:"hidden",size:"extraLarge",children:a.translate("payment.lpm.konbini.voucher.pay",{amount:e.value})})]}):null}function ji({expiryDate:e,expired:t}){const{i18n:a}=yn();if(!e)return null;const i=n(E,{color:"subdued",size:"base",type:"strong",children:e});return n(E,{color:"subdued",size:"base",children:t?a.translate("payment.lpm.konbini.voucher.expired",{date:i}):a.translate("payment.lpm.konbini.voucher.expires_at",{date:i})})}function Wi({paymentInstructions:e}){const{i18n:t}=yn(),a=(e.instructionSets??[]).filter(e=>(e.details??[]).some(zi)),i=r(null);if(0===a.length)return null;const o=function(e,n){const t=e.amount;if(null!=t?.amount&&t.currencyCode)return{accessibleAmount:n.formatCurrency(t.amount,{form:"name",currency:t.currencyCode}),value:`${n.formatCurrency(t.amount,{form:"short",currency:t.currencyCode})} ${t.currencyCode}`}}(e,t),l=Di(e),s=function(e,n){if(!e)return;const t=new Date(e),a=n.formatDate(t,{month:"short",day:"numeric",year:"numeric",timeZone:Oi}),i=n.formatDate(t,{hour:"numeric",minute:"2-digit",hour12:!0,timeZone:Oi});return n.translate("payment.lpm.konbini.voucher.expiry_date_time",{date:a,time:i})}(e.expiresAt,t),c=t.translate("payment.lpm.konbini.voucher.label");return n(Q,{children:n(A,{gap:"none",children:[n(G,{accessibilityLabel:c,accessibilityRole:"section",background:"base",colorLayer:"control",border:"base",borderRadius:l?"large":"large large none none",padding:"large-100",inlineSize:"100%",children:n(A,{gap:"base",children:[n(A,{gap:"small-300",children:[n(B,{alignItems:"start",gap:"base",gridTemplateColumns:"minmax(0, 1fr) auto",children:[n(Hi,{amount:o,expired:l}),n(Yt,{type:"konbini",active:!0,accessibilityVisibility:"hidden"})]}),l?null:n(E,{color:"subdued",size:"base",children:t.translate("payment.lpm.konbini.voucher.choose_outlet")}),n(ji,{expiryDate:s,expired:l})]}),l?null:n("div",{className:"TNF54",role:"group","aria-label":c,children:a.map(e=>{const t=Fi(e);return n(Ui,{instructionSet:e,open:i.value===t,onToggle:()=>{i.value=i.value===t?null:t}},t)})})]})}),l?null:n(G,{className:"JuwoV",padding:"base",paddingInline:"large-100",children:n(E,{color:"subdued",size:"base",children:t.translate("payment.lpm.konbini.voucher.keep_receipt")})})]})})}function $i({details:e}){const{i18n:t}=yn();return n(A,{gap:"small-500",children:e.map(e=>n(G,{borderRadius:"base",className:"Gltpp",inlineSize:"100%",children:n(E,{type:"small",color:"subdued",children:t.translate("payment.pending_payment.multibanco.labelled_code",{label:e.label,code:e.text})})},e.label))})}function Vi({step:e,expiry:t}){const{i18n:a}=yn();return e?n(A,{gap:"none",children:[n(E,{color:"subdued",size:"base",children:e}),t?n(E,{color:"subdued",size:"base",children:a.translate("payment.pending_payment.multibanco.expires_at",{date:n(E,{color:"subdued",size:"base",type:"strong",children:t})})}):null]}):null}function Yi({expiry:e}){const{i18n:t}=yn();return e?n(E,{color:"subdued",size:"base",children:t.translate("payment.pending_payment.multibanco.expired",{date:n(E,{color:"subdued",size:"base",type:"strong",children:e})})}):null}function Ki({amount:e,expired:t}){const{i18n:a}=yn();return t?n(q,{level:1,children:a.translate("payment.pending_payment.multibanco.expired_title")}):e?n(q,{level:1,children:[n(E,{accessibilityVisibility:"exclusive",children:a.translate("payment.pending_payment.multibanco.pay",{amount:e.accessibleAmount})}),n(E,{accessibilityVisibility:"hidden",size:"extraLarge",children:a.translate("payment.pending_payment.multibanco.pay",{amount:e.value})})]}):null}function Gi({paymentInstructions:e}){const{i18n:t}=yn(),a=e.instructionSets?.find(({key:e})=>"multibanco"===e);if(!a)return null;const i=function(e){return e.details?.filter(Ni)??[]}(a);if(0===i.length)return null;const r=Ei(e,t),o=Di(e),l=Ri(e.expiresAt,t),s=l?t.translate("payment.pending_payment.multibanco.expiry_date_time",l):void 0,c=t.translate("payment.pending_payment.multibanco.label");return n(Q,{children:n(G,{accessibilityLabel:c,accessibilityRole:"section",background:"base",colorLayer:"control",border:"base",borderRadius:"large",padding:"large-100",inlineSize:"100%",children:n(A,{gap:"small-200",children:[n(B,{alignItems:"start",ga
1p:"base",gridTemplateColumns:"minmax(0, 1fr) auto",children:[n(Ki,{amount:r,expired:o}),n(Yt,{type:"multibanco",active:!0,accessibilityVisibility:"hidden"})]}),o?n(Yi,{expiry:s}):n(Vi,{step:a.steps?.[0],expiry:s}),n($i,{details:i})]})})})}const Qi=/Shop App\/[^/]+\/iOS\//;function Zi({passUrl:e}){const{client:t,i18n:a}=yn();return e&&function(e){const n=In(e);return"iOS"===n||"Mac OS"===n||Qi.test(e)}(t.userAgent)?n(G,{className:"chT5l",paddingBlockStart:"large-100",children:n(B,{justifyItems:"center",children:n(K,{href:e,children:n(X,{src:"/cdn/shopifycloud/checkout-web/assets/c1/assets/add-to-apple-wallet.c2C6mOjH.svg",alt:a.translate("payment.pending_payment.apple_wallet.badge_alt"),className:"_8CGB7",inlineSize:"auto"})})})}):null}function Ji(e){return 8*Math.round(e/8)}function Xi(e,n){try{const t=new URL(e);return t.searchParams.set("width",n.toString()),t.toString()}catch{return e}}function er(e){const n=a(null),t=a(e),i=a(null),o=a(0),l=r(e),s=r(!1);return u(()=>{o.current+=1,t.current=e,i.current=null,l.value=e,s.value=!1},[e,s,l]),u(()=>{const a=n.current;if(!e||!a)return;const r="undefined"!=typeof ResizeObserver;let c,d=!1;const u=n=>{const a=Ji(n);if(a<=0)return;const r=t.current;if(r&&function(e,n){const t=function(e){try{const n=Number(new URL(e).searchParams.get("width"));return Number.isFinite(n)&&n>0?Ji(n):void 0}catch{return}}(e);return null!=t&&Math.abs(t-n)<8}(r,a))return o.current+=1,i.current=null,s.value=!1,void(c&&(clearTimeout(c),c=void 0));if(i.current===a)return void(s.value=!0);i.current=a;const u=o.current+1;o.current=u,s.value=!0,c&&clearTimeout(c),c=setTimeout(()=>((n,a)=>{const r=Xi(e,n),c=new window.Image;c.onload=()=>{d||a!==o.current||(t.current=r,i.current=null,l.value=r,s.value=!1)},c.onerror=()=>{d||a!==o.current||(i.current=null,s.value=!1)},c.src=r})(a,u),200)},h=()=>{u(a.getBoundingClientRect().width)};if(h(),!r)return window.addEventListener("resize",h),()=>{d=!0,c&&clearTimeout(c),window.removeEventListener("resize",h)};const p=new ResizeObserver(([e])=>{e&&u(e.contentRect.width)});return p.observe(a),()=>{d=!0,c&&clearTimeout(c),p.disconnect()}},[e,s,l]),{containerRef:n,imageUrl:l,isLoading:s}}function nr({imageUrl:e,altText:t,height:a,printWidth:i=510}){const{containerRef:r,imageUrl:o,isLoading:l}=er(e),s=o.value||e,c=Xi(e,i);return n(G,{ref:r,inlineSize:"100%",blockSize:a,children:n(G,{inlineSize:"100%",blockSize:"100%",position:"relative",children:[n("picture",{className:"TBsba",children:[n("source",{media:"print",srcSet:c}),n(X,{src:s,alt:t,className:"PITIE",inlineSize:"auto",objectFit:"contain"})]}),l.value?n("div",{"aria-hidden":"true",className:"Fmqjk",children:n(ee,{contentDisplay:"block",inlineSize:"100%",blockSize:"100%",delay:!1})}):null]})})}function tr({barcode:e,detail:t}){if(!e?.imageUrl)return null;const a=t?`${t.label}: ${t.text}`:"";return n(G,{inlineSize:"100%",maxInlineSize:"510px",children:n(nr,{imageUrl:e.imageUrl,altText:e.altText||a,height:"67.5px"})})}function ar({step:e,expiry:t}){const{i18n:a}=yn();return e?n(A,{gap:"none",children:[n(E,{color:"subdued",size:"base",children:e}),t?n(E,{color:"subdued",size:"base",children:a.translate("payment.pending_payment.oxxo.expires_at",{date:n(E,{color:"subdued",size:"base",type:"strong",children:t})})}):null]}):null}function ir({detail:e}){const{i18n:t}=yn(),a=t.translate("payment.pending_payment.oxxo.reference_number");return n(G,{borderRadius:"base",className:"OVcKI",inlineSize:"100%",children:n(E,{type:"small",color:"subdued",children:[a," ",e.text]})})}function rr({paymentInstructions:e}){const{i18n:t}=yn(),a=e.instructionSets?.find(({key:e})=>"oxxo"===e);if(!a)return null;const i=Ei(e,t),r=a.details?.find(Ni),o=a.steps?.[0],l=Ri(e.expiresAt,t),s=l?t.translate("payment.pending_payment.oxxo.expiry_date_time",l):void 0,c=t.translate("payment.pending_payment.oxxo.label");return n(Q,{children:n(G,{accessibilityLabel:c,accessibilityRole:"section",background:"base",colorLayer:"control",border:"base",borderRadius:"large",padding:"large-100",inlineSize:"100%",children:n(A,{gap:"small-200",children:[n(B,{alignItems:"start",ga
1p:"base",gridTemplateColumns:"minmax(0, 1fr) auto",children:[i?n(q,{level:1,children:[n(E,{accessibilityVisibility:"exclusive",children:t.translate("payment.pending_payment.oxxo.pay",{amount:i.accessibleAmount})}),n(E,{accessibilityVisibility:"hidden",size:"extraLarge",children:t.translate("payment.pending_payment.oxxo.pay",{amount:i.value})})]}):null,n(Yt,{type:"oxxo",active:!0,accessibilityVisibility:"hidden"})]}),n(ar,{step:o,expiry:s}),n(A,{gap:"none",children:[n(tr,{barcode:a.barcode,detail:r}),r?n(ir,{detail:r}):null,n(Zi,{passUrl:a.appleWalletPassUrl})]})]})})})}function or({paymentInstructions:e}){switch(e.method?.toLowerCase()){case"multibanco":return n(Gi,{paymentInstructions:e});case"oxxo":return n(rr,{paymentInstructions:e});case"konbini":return n(Wi,{paymentInstructions:e});default:return null}}function lr(){const e=T()?.paymentDetails,t=e?.buyerActionInfo?.paymentInstructions;return t?n(or,{paymentInstructions:t}):null}function sr(){const{i18n:e}=yn(),{track:a}=Ti("follow_link");return n(t,{children:n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",alignItems:"end",alignContent:"end",children:[n(E,{children:e.translate("completed_with_shop_pay.text",{shopPay:n(Zt,{inline:!0,color:"branded",size:"xsmall"})})}),n(K,{target:"_blank",href:"https://shop.app/pay",onClick:()=>a("learn_more_pay"),children:e.translate("completed_with_shop_pay.learn_more")})]})})}function cr(){const{i18n:e}=yn();return n(E,{size:"small",color:"subdued",children:n(Y,{children:e.translate("shop_pay_remember_me.terms_and_privacy_html",{privacy_href:n(ur,{}),terms_href:n(dr,{})})})})}function dr(){const{i18n:e}=yn();return n(t,{children:n(K,{target:"_blank",href:"https://shop.app/terms-of-service",tone:"monochrome",accessibilityLabel:e.translate("shop_pay_remember_me.new_window_disclaimer"),children:[e.translate("shop_pay_remember_me.terms_of_service"),n(N,{type:"external",size:"small",display:"inline"})]})})}function ur(){const{i18n:e}=yn();return n(t,{children:n(K,{target:"_blank",href:"https://www.shopify.com/legal/privacy/app-users",tone:"monochrome",accessibilityLabel:e.translate("shop_pay_remember_me.new_window_disclaimer"),children:[e.translate("shop_pay_remember_me.privacy_policy"),n(N,{type:"external",size:"small",display:"inline"})]})})}function hr({field:e="phone",link:a}){const{i18n:i}=yn();return n(t,{children:[n(E,{color:"subdued",children:n(Y,{children:["phone"===e?i.translate("shop_pay_remember_me.description_html"):i.translate("shop_pay_remember_me.email_description_html")," ",a]})}),n(cr,{})]})}function pr(){const{checkout:{negotiator:e}}=yn(),{shopPayArtifact:n}=e.current.fields;return c(()=>Boolean(n.value?.optIn))}class mr extends Error{constructor(){super(...arguments),this.name="OptInFetchError"}}function _r(){const{track:a}=Ti("follow_link"),{i18n:o,userEvents:l,source:d,checkout:u,shop:h}=yn(),{hasOptedIn:p,loading:m,errorBannerContent:_,handleSave:y,showPhoneField:g,phoneNumber:f,setPhoneNumber:b,email:v,setEmail:k,inputError:w,handleInput:C,countryCode:S}=function(){const{userEvents:n,source:t,checkout:a,shop:i,i18n:r,url:o,shop:{checkoutPublicAccessToken:l},source:{checkoutSessionIdentifier:c}}=yn(),d=pr(),{value:u}=a.negotiator.current.fields.shippingAddress,{value:h}=a.negotiator.current.fields.contactInfo,[p,m]=e(d.peek()),[_,y]=e(!1),[g,f]=e(u?.phone||h?.phone||""),[b,v]=e(h?.email??""),[k,w]=e(),[C,S]=e(),x=!h?.phone,{validatePhoneNumber:P}=ta(),I=s(e=>{const n=Xt(e,r.translate("field_errors.email_blank")),t=ea(e,r.translate("field_errors.email_invalid"));return n||t},[r]),L=s(()=>{k&&w(void 0)},[k]);return{hasOptedIn:p,loading:_,errorBannerContent:C,handleSave:s(async()=>{if(S(void 0),x){const e=!g.includes("+");if(!P(g,e?u?.countryCode:void 0))return void w(r.translate("field_errors.thank_you_remember_me_phone_invalid"))}else{const e=I(b);if(e)return void w(e)}n.monorailEvent({schemaId:"shopify_pay_user_optin_ui_interaction/3.2",payload:{...Ln(t,a,i),action:x?"update_phone_input":"update_email_input",phoneNumber:g,email:b,source:"thank_you_page",trigger:"manual"}});try{y(!0);const e=await fetch(o.shopPayOptin(c),{method:"POST",body:JSON.stringify({checkout:{vault_phone:g,vault_email:b,is_checkout_one:!0}}),headers:{"Content-Type":"application/json","X-Shopify-Checkout-Version":"2025-03-18",accept:"application/json",authorization:`Basic ${l}`}});if(200===e.status){const{success:n}=await e.json();return void(n?m(!0):S(r.translate("shop_pay_remember_me.errors.optin_retry")))}throw new mr("Opt in request didn't succeed")}catch{w(r.translate("shop_pay_remember_me.errors.optin"))}finally{y(!1)}},[n,t,a,i,o,c,l,g,b,x,u?.countryCode,P,I,r]),showPhoneField:x,phoneNumber:g,setPhoneNumber:f,email:b,setEmail:v,inputError:k,handleInput:L,countryCode:u?.countryCode||""}}
1(),x=r(p),{value:P}=u.negotiator.current.fields.deliveryNext,{value:I}=ne(),L=!vn(P)||I?{borderWidth:"base none none none",background:"subdued",padding:"base",borderRadius:"none none base base"}:{borderWidth:"base",background:"base",padding:"base",borderRadius:"base"},T=u.negotiator.parts.shippingAddress,N=c(()=>T.value.oneTimeUse?o.translate("thank_you.opt_in_payment_only_welcome_message_html",{shopify_pay:n(Zt,{inline:!0,color:"branded",size:"xsmall"})}):o.translate("thank_you.opt_in_welcome_message_html",{shopify_pay:n(Zt,{inline:!0,color:"branded",size:"xsmall"})})),E=c(()=>T.value.oneTimeUse?o.translate("shop_pay_remember_me.payment_information_only_label"):o.translate("shop_pay_remember_me.label")),R=n(t,{children:E});i(()=>{l.monorailEvent({schemaId:"shopify_pay_user_optin_ui_impression/1.0",payload:{...Ln(d,u,h),source:"thank_you_page",elementType:"remember_me_box"}})},[l,d,u,h]);const D=n(K,{target:"_blank",href:"https://shop.app/pay",onClick:()=>{a("learn_more_pay")},children:o.translate("shop_pay_remember_me.learn_more")});return n(G,{...L,children:p?n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",alignItems:"end",alignContent:"end",children:[n(Y,{children:N}),D]}):n(A,{gap:"base",children:[_?n(te,{tone:"critical",children:_}):null,n(A,{direction:"inline",gap:"base",children:n(ae,{checked:x.value,onChange:()=>{const e=!x.value;l.monorailEvent({schemaId:"shopify_pay_user_optin_ui_interaction/3.2",payload:{...Ln(d,u,h),action:e?"click_remember_me_box":"unclick_remember_me_box",phoneNumber:f,email:v,source:"thank_you_page",trigger:"manual"}}),x.value=e},label:R})}),n(ie,{open:x.value,id:"thankYouRememberMe",children:n(A,{gap:"base",children:[n(G,{padding:"small-200 none none none",children:n(A,{gap:"small-300",children:[n(B,{gap:"small-400 base",gridTemplateColumns:"minmax(auto, max-content) minmax(auto, max-content)",gridAutoColumns:"1fr",gridTemplateRows:"minmax(auto, max-content)",gridAutoRows:"minmax(auto, max-content)",children:[g?n(Jt,{id:"phone",disabled:m,countryCode:S,label:o.translate("shop_pay_remember_me.mobile_phone_number"),icon:"mobile",value:f,error:Boolean(w),onChange:b,onInput:C}):n(Pt,{disabled:m,id:"email",name:"email",label:o.translate("shop_pay_remember_me.email_label"),value:v,error:Boolean(w),onChange:k,onInput:C,required:!1}),n(M,{variant:"primary",onClick:y,loading:m,children:o.translate("shop_pay_remember_me.save")})]}),w?n(O,{controlID:g?"phone":"email",children:w}):null]})}),n(hr,{field:g?"phone":"email",link:D})]})})]})})}const yr=5e3,gr=t=>{const{duration:a=yr,onClose:r,text:o,subText:l,actionText:s,handleAction:c,id:d,variant:u="default"}=t,[h,p]=e(!1);i(()=>{p(!0);const e=setTimeout(()=>{if(0!==a){p(!1);const e=setTimeout(()=>{r(d)},300);return()=>clearTimeout(e)}},a);return()=>clearTimeout(e)},[a,d,r]);const m=aa("error"===u?"text-poppy-d1":"text-black");return n("div",{className:aa("z-max mx-auto flex w-85 transform items-center justify-start gap-x-3 rounded-md border-[0.5px] border-solid border-grayscale-l2l px-4 py-3 text-white shadow-lg transition-transform duration-300 ease-in-out sm_bottom-0 sm_max-w-none sm_rounded-none",h?"translate-y-0":"translate-y-94","error"===u?"bg-poppy-l2":"bg-white"),"data-testid":"shop-toast-element",children:["error"!==u&&n(ia,{className:"size-8 flex-shrink-0 text-purple-primary"}),n("div",{className:"flex flex-col overflow-hidden",children:[n("div",{className:aa("font-sans text-body-title-small",m),children:o}),l&&n("div",{className:aa("truncate font-sans text-caption",m),children:l})]}),s&&c&&n("button",{type:"button","aria-label":s,className:aa("ml-auto h-8 w-fit max-w-[40%] rounded-sm100 px-3 font-sans text-button-medium","error"===u?"bg-poppy-d1 text-white":"bg-grayscale-l5 text-black"),"data-testid":"toast-action-button",onClick:c,children:s})]})},fr=()=>{const{instanceId:t}=ca(),{trackPageImpression:a}=da(),[i,r]=e([]),{recordCounter:l}=ua(),c=s(e=>{r(n=>n.filter(n=>n.id!==e))},[]),d=s(e=>{r(n=>[...n,e])},[]),u=o(()=>({renderToast:({detail:e})=>{e.flow&&l("shop_js_toast_rendered",{attributes:{flow:e.flow,variant:e.variant||"default"}}),a({allowDuplicates:!0,analyticsTraceId:e.analyticsTraceId,flow:e.flow,page:"RENDER_TOAST"}),d(e)}}),[d,l,a]);return ha(u),h(n(ma,{instanceId:t,type:"toast",variant:"default",children:n("div",{className:"fixed inset-x-0 bottom-8 z-max mx-auto flex flex-col items-center gap-3",children:i.map(e=>n(gr,{...e,onClose:c},e.id))})}),pa.body)},br={id:"520f926255e48c24cf1b0e497a7dfa36db1b5b10f628941f45c629153aa67e5f",type:"query",name:"PendingPayEscrowReceipt",source:""},vr=re(({graphql:{coreGraphql:e}},{receiptId:n,retries:t,sessionToken:a,skip:i})=>{const r=l(1),o=l(!i.peek()),s=e.query(br,{variables:()=>({receiptId:n.value,sessionToken:a.value}),skip:()=>i.value}),c=p(()=>
1{return e=s.data.value,n=s.error.value,Boolean("ProcessedReceipt"===e?.receipt?.__typename&&e?.receipt?.shopAppLinksAndResources?.hasPendingPayEscrow)&&!n;var e,n});let d=!0;function u(){!d||r.peek()>=t||(d=!1,setTimeout(()=>{s.loading.peek()||s.refetch(),r.value++,d=!0,r.peek()<t?u():o.value=!1},1e3))}return m(function(){c.value&&(o.value=!1,d=!1)}),m(function(){s.loading.value||o.value&&u()}),{attempts:p(()=>r.value),error:s.error,loading:p(()=>o.value),pendingPayEscrow:c}});function kr(){const e=St();return Boolean(e?.payEscrowMayExist)}const wr=({email:e,text:t})=>{customElements.get("shop-toast-manager")||ra(({element:e,...t})=>n(sa,{element:e,featureName:"ShopToastManager",children:n(oa,{children:n(la,{children:n(fr,{...t})})})}),{methods:["renderToast"],name:"shop-toast-manager",props:{},shadow:"open"});const a=document.createElement("shop-toast-manager");document.body.appendChild(a),a.renderToast({flow:"thank_you_page_escrow",text:t,subText:e})};function Cr(){const{i18n:e,checkout:{negotiator:t}}=yn(),a=t.current.fields.buyerIdentity.value?.purchasingCompany;return a?n(A,{gap:"small-200",children:[n(q,{children:e.translate("thank_you.company_location_section_title")}),n(A,{children:[n(F,{children:a.company.name}),n(F,{children:a.location.name})]})]}):null}function Sr({lines:e}){return e.length>0?n(A,{children:e.map(e=>n(F,{children:e},e))}):null}function xr(){const{i18n:e,checkout:{negotiator:t}}=yn(),a=t.current.fields.deliveryNext,i=c(()=>Mn(a.value).find(({method:e})=>"PICK_UP"===e.methodType)?.method.pickupLocation);return n(y,{when:i,children:t=>n(A,{gap:"small-200",children:[n(q,{children:e.translate("thank_you.pick_up_in_store_marker.shipping")}),n(Gt,{address:t.address,multiline:!0})]})})}class Pr extends Error{constructor(){super(...arguments),this.name="PaymentMethodError"}}function Ir({children:e}){return n("bdi",{children:e})}function Lr({label:e,fallback:a}){return e?n(Ir,{children:e}):n(t,{children:a})}function Tr({amount:e}){return e?n(E,{children:[" · ",e]}):null}function Mr({variant:e,icon:t,label:a,amount:i}){return"rollup"===e?n(Pa,{icon:t,details:a,amount:i}):n(A,{direction:"inline",alignItems:"center",gap:"small-200",children:[t,n(F,{children:[a,n(Tr,{amount:i})]})]})}function Ar({cost:e,method:a,variant:i="default",showAmount:r=!0}){const{shop:o,i18n:l,observability:s,checkout:{negotiator:c}}=yn(),{value:d}=c.current.fields.paymentMethods,{value:u}=c.current.fields.paymentFlexibilityPaymentTermsTemplate,h=oe(),p=T(),m=p?.paymentDetails,_=p?.paymentExtensionBrand,y=Or({paymentDetails:m}),g=o.hasFlagEnabled(An),f=Boolean(Nn().value?.amount),b=u&&!f,v=r&&e&&!b?l.formatCurrency(e.amount,{currency:e.currencyCode,form:"explicit"}):void 0;switch(a.type){case"direct":case Dn.CreditCard:return n(Nr,{method:a,amount:v,variant:i,installmentInfo:e&&m?.installmentDetails?{cost:e,installmentDetails:m.installmentDetails}:null});case Dn.PayPal:return n(Er,{amount:v,variant:i});case"wallet":{if("PAYPAL_EXPRESS"===a.name)return n(Er,{amount:v,variant:i});if("SHOPIFY_INSTALLMENTS"===a.name)return n(Rr,{variant:i,walletContent:a.walletContent});if("SHOP_PAY"===a.name)return n(Dr,{amount:v,variant:i,paymentDetails:m,walletContent:a.walletContent,paymentExtensionBrand:_,installmentInfo:e&&m?.installmentDetails?{cost:e,installmentDetails:m.installmentDetails}:null});const t=e=>{switch(e){case"APPLE_PAY":return l.translate("brand.apple_pay");case"GOOGLE_PAY":return l.translate("brand.google_pay");default:return s.error(new Pr(`Unknown wallet payment method for label: ${e}`)),null}},r=(e=>{switch(e){case"APPLE_PAY":return n(Yt,{type:"apple-pay"});case"GOOGLE_PAY":return n(Yt,{type:"google-pay"});default:return s.error(new Pr(`Unknown wallet payment method for icon: ${e}`)),null}})(a.name),o=t(a.name);return n(Mr,{variant:i,icon:r,label:"rollup"===i?Br(m)??o:n(Lr,{label:y({displayBrandLabel:!0}),fallback:o}),amount:v})}case"shopWallet":return n(Dr,{amount:v,variant:i,paymentDetails:m});case"walletsPlatformPaymentMethod":return"rollup"===i?n(Mr,{variant:i,icon:n(Yt,{type:a.name}),label:m?.paymentDescriptor?n(Ir,{children:m.paymentDescriptor}):Br(m),amount:v}):n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",alignItems:"center",alignContent:"center",gap:"small-300",children:[n(Yt,{type:a.name}),n(F,{children:[n(Lr,{label:m?.paymentDescriptor??y({displayBrandLabel:!0})}),n(Tr,{amount:v})]})]});case"local":{const e=d?.find(e=>"local"===e.type&&e.name===a.name),t=e?.displayName||a.name;return n(Mr,{variant:i,icon:n(Yt,{type:a.name}),label:t,amount:v})}case"paymentOnDelivery":return n(Mr,{variant:i,icon:n(Yt,{type:"cash"}),label:l.translate("payment_gateway.cash_on_delivery_label"),amount:v});case"manualPayment":case"customManualPayment":return n(Mr,{variant:i,icon:n(Yt,{type:"cash"}),label:a.name,amount:v});case"deferred":{if(h.value)return null;const e=l.translate("payment_gateway.deferred_payment_label"),a="FIXED"===u?.type?void 0:u;return n(A,"rollup"===i?{gap:"small-400",children:[n(Mr,{variant:i,label:e,amount:v}),a?n(F,{children:a.translatedName}):null]}:{children:a?n(t,{children:[n(F,{children:a.translatedName}),n(F,{children:e})]}):n(F,{children:[e,n(Tr,{amount:v})]})})}
1case"giftCard":{if(g)return null;const e=Rn(a).toUpperCase();return n(Mr,{variant:i,icon:n(Yt,{type:"gift-card"}),label:n(Ir,{children:l.translate("payment.masked_digits_label",{last_digits:e})}),amount:v})}case"redeemable":if("STORE_CREDIT"===a.redemptionSource)return n(Mr,{variant:i,icon:n(Yt,{type:"store-credit"}),label:l.translate("payment.store_credit.label"),amount:v});if("SHOP_CASH"===a.redemptionSource){const e=a.redemptionContent;return"ZERO_BALANCE_OFFER"===e?.redemptionPaymentOptionKind?null:e?.details?.length?e.details.map(e=>{if(!En.includes(e.redemptionType))return null;const t=r&&e.destinationAmount&&!b?l.formatCurrency(parseFloat(e.destinationAmount.amount),{currency:e.destinationAmount.currencyCode,form:"short"}):void 0;return"SHOP_CASH_BALANCE"===e.redemptionType?n(Mr,{variant:i,icon:n(Yt,{type:"shop-cash"}),label:l.translate("order_summary.shop_cash_title"),amount:t},e.redemptionType):null}):n(Mr,{variant:i,icon:n(Yt,{type:"shop-cash"}),label:l.translate("order_summary.shop_cash_title"),amount:v})}if("CUSTOM"===a.redemptionSource){const e=a.redemptionContent,t=e?le(e)?.toUpperCase():"";return n(Mr,{variant:i,icon:n(Yt,{type:"gift-card"}),label:n(Ir,{children:l.translate("payment.ends_with_label",{last_digits:t||""})}),amount:v})}return null;case"offsite":case"customOnsite":{const e=m?.paymentIcon,t=Boolean(_)||!e||["generic","usdc"].includes(e)?qr(_,l):a.name;return n(Mr,{variant:i,icon:n(Yt,{type:_||e||"generic"}),label:t,amount:v})}case"bank":{const t=n(Yt,{type:xa(a.bankName??"")}),o=n(Ir,{children:l.translate("payment.masked_digits_label",{last_digits:a.lastDigits??""})});if("rollup"===i)return n(A,{gap:"small-400",children:[n(Mr,{variant:i,icon:t,label:o,amount:v}),n(E,{children:a.bankName})]});const s=" · ",c=r&&e?.amount?l.formatCurrency(e.amount,{currency:e.currencyCode,form:"short"}):null;return n(A,{gap:"small-400",children:[n(E,{children:a.bankName}),n(A,{direction:"inline",alignItems:"center",gap:"small-200",children:[t,n(F,{children:[o,a.lastDigits&&c?s:null,c]})]})]})}default:return null}}function Nr({method:e,amount:t,variant:a,installmentInfo:i}){const{i18n:r,checkout:{negotiator:o}}=yn(),l=o.current.fields.buyerIdentity.value?.purchasingCompany,s=o.current.fields.paymentFlexibilityPaymentTermsTemplate,d=oe(),u=c(()=>s.value&&!d.value?s.value.translatedName:void 0),h=e.brand??"generic",p="direct"===e.type?e.creditCardLastFourDigits:e.displayLastDigits,m="MAESTRO"===h?r.translate("payment_gateway.debit_card_label"):r.translate("payment_gateway.credit_card_label"),_=Bn(h)?On(h):null,g="rollup"===a&&Boolean(_&&p),f=(()=>{const e=i?.installmentDetails?.count,n=i?.cost;if(!e||!n)return null;const t=se(n.amount,e);return r.translate("payment.msi_installment_plan",{amount:r.formatCurrency(t,{currency:n.currencyCode,form:"explicit"}),num_payments:e})})(),b=n(y,{when:u,children:e=>n(F,{children:e})});return n(A,{gap:"small-400",children:["rollup"===a?null:b,n(Mr,{variant:a,icon:n(Yt,{type:h,accessibilityVisibility:g?"hidden":void 0}),label:p?(v=p,"rollup"===a?n(Ia,{brandLabel:_,lastDigits:v}):n(Ir,{children:r.translate("payment.masked_digits_label",{last_digits:v})})):m,amount:t}),"rollup"===a?b:null,f?n(E,{color:"subdued",children:f}):null,"direct"===e.type&&e.vaultingAgreement?n(A,{direction:"inline",alignItems:"center",gap:"small-400",children:[n(N,{size:"small",type:"check"}),n(E,{color:"subdued",children:l?r.translate("payment.card_vaulted_company_location"):r.translate("payment.payment_method_saved")})]}):null]});var v}function Er({amount:e,variant:t}){const{i18n:a}=yn();return n(Mr,{variant:t,icon:n(Yt,{type:"paypal"}),label:a.translate("brand.paypal"),amount:e})}function Rr({variant:e,walletContent:t}){const{i18n:a}=yn(),i=St(),r=t?.creditCardBrand,o=t?.creditCardLastFourDigits,l=r&&Bn(r)?On(r):null,s="rollup"===e&&Boolean(l&&o),c=r?n(Yt,{type:r,accessibilityVisibility:s?"hidden":void 0}):n(Zt,{color:"branded",size:"xsmall"}),d="rollup"===e?o?n(Ia,{brandLabel:l,lastDigits:o}):null:n(Ir,{children:o&&a.translate("payment.masked_digits_label",{last_digits:o})});return n(A,{gap:"small-300",children:[n(Mr,{variant:e,icon:c,label:d}),n(F,{children:a.translate("shop_pay_remember_me.installments.paid_in_installments")}
1),i?n(F,{children:n(K,{target:"_blank",href:i.shopInstallmentsViewSchedules,children:a.translate("shop_pay_remember_me.installments.view_schedule")})}):null]})}function Dr({amount:e,variant:t,paymentDetails:a,walletContent:i,paymentExtensionBrand:r,installmentInfo:o}){const l=Or({paymentDetails:a}),{i18n:s,checkout:{negotiator:c}}=yn(),{value:d}=c.current.fields.managedByMarketsPro,u=zn({managedByMarketsPro:d}),h=(()=>{const e=o?.installmentDetails?.count,n=o?.cost;if(!e||!n)return null;const t=se(n.amount,e);return s.translate("payment.msi_installment_plan",{amount:s.formatCurrency(t,{currency:n.currencyCode,form:"explicit"}),num_payments:e})})();if(r)return n(Mr,{variant:t,icon:n(Yt,{type:r}),label:qr(r,s),amount:e});if(a?.paymentCardBrand){const i="rollup"===t&&Boolean(Fr(a)&&a.creditCardLastFourDigits);return n(A,{gap:"small-400",children:[n(Mr,{variant:t,icon:n(Yt,{type:a.paymentCardBrand,accessibilityVisibility:i?"hidden":void 0}),label:"rollup"===t?Br(a):n(Lr,{label:l({displayBrandLabel:!1})}),amount:e}),h?n(E,{color:"subdued",children:h}):null]})}if(u&&"IDEAL"===i?.paymentMethod)return n(Mr,{variant:t,icon:n(Yt,{type:"ideal"}),label:s.translate("payment.ideal_label"),amount:e});const p=s.translate("payment_gateway.shop_pay.name");return n(A,{gap:"small-400",children:[n(Mr,{variant:t,icon:n(Yt,{type:"shop-pay"}),label:"rollup"===t?Br(a)??p:n(Lr,{label:l({displayBrandLabel:!0}),fallback:p}),amount:e}),h?n(E,{color:"subdued",children:h}):null]})}function Br(e){const t=e?.creditCardLastFourDigits;return t?n(Ia,{brandLabel:Fr(e)??null,lastDigits:t}):null}function Or({paymentDetails:e}){const{i18n:n}=yn();return s(({displayBrandLabel:t})=>{if(!e||!e.creditCardLastFourDigits)return null;const a=Fr(e),i=n.translate("payment.masked_digits_label",{last_digits:e.creditCardLastFourDigits});return a&&t?`${a} ${i}`:i},[e,n])}const zr={AMERICAN_EXPRESS:"AMEX",CARTESBANCAIRES:"CARTES_BANCAIRES",MASTER:"MASTERCARD"};function Fr(e){const n=e?.paymentCardBrand;if(!n)return;const t=zr[n]??n;return Bn(t)?On(t):void 0}function qr(e,n){switch(e){case"alipay":return n.translate("payment.alipay_label");case"bancontact":return n.translate("payment.bancontact_label");case"blik":return n.translate("payment.blik_label");case"bizum":return n.translate("payment.bizum_label");case"eps":return n.translate("payment.eps_label");case"grabpay":return n.translate("payment.grabpay_label");case"ideal":return n.translate("payment.ideal_label");case"mobilepay":return n.translate("payment.mobilepay_label");case"oxxo":return n.translate("payment.oxxo_label");case"mb":return n.translate("payment.multibanco_label");case"mbway":return n.translate("payment.mb_way_label");case"paynow":return n.translate("payment.paynow_label");case"pay_pay":return n.translate("payment.paypay_label");case"przelewy24":return n.translate("payment.przelewy24_label");case"satispay":return n.translate("payment.satispay_label");case"scalapay":return n.translate("payment.scalapay_label");case"swish":return n.translate("payment.swish_label");case"twint":return n.translate("payment.twint_label");case"usdc":return n.translate("payment.usdc_label");case"vipps":return n.translate("payment.vipps_label");case"wechatpay":return n.translate("payment.wechat_pay_label");case null:case void 0:return"";default:return e}}function Ur(){const e=T();return e?.completedRemoteCheckouts}const Hr="unknown";function jr({variant:e}){const{i18n:a,shop:{name:i,remoteShopsConfigMap:r},checkout:{negotiator:o}}=yn(),l=o.current.fields.paymentLines,s=_(Ur()),d=c(()=>{if(!s.value?.length)return;const e=[],n=new Map([[Hr,{method:null,items:[]}]]);return l.value?.lines.forEach(e=>{const t=Wr(e.method);n.set(t,{method:e.method,items:[{shopName:i,cost:e.cost,textKey:`local-${t}`}]})}),s.value.forEach(t=>{const{status:i,shopId:o}=t,l=r?.get(o)?.name||a.translate("thank_you.thank_you_from_other_store");"failed"!==i?t.remotePurchaseOrder.paymentLines?.forEach(e=>{const{cost:a,method:i}=e;if(i){const e=Wr(i);n.has(e)||n.set(e,{method:i,items:[]}),n.get(e)?.items.push({shopName:l,cost:a,textKey:`${e}-${t.checkoutSessionToken}`})}else n.get(Hr)?.items.push({shopName:l,cost:a,textKey:`${Hr}-${t.checkoutSessionToken}`})}):e.push({textKey:`failed-${o}`,remoteShopName:l})}),{failedCheckouts:e,groupedPayments:Array.from(n.entries()).map(([e,{method:n,items:t}])=>({key:e,method:n,items:t}))}}),u=c(()=>d.value?.groupedPayments??[]),h=c(()=>d.value?.failedCheckouts??[]);return n(y,{when:d,children:n(A,{gap:"small-400",children:[n(g,{each:u,getKey:e=>e.key,children:({method:i,items:r})=>i?n(A,{gap:"small-400",children:[n(Ar,{cost:void 0,method:i,variant:e}),n(A,{gap:"small-400",children:r.map(({cost:e,shopName:i,textKey:r})=>n(E,{children:[i,e&&n(t,{children:[" · ",a.formatCurrency(e.amount,{currency:e.currencyCode,form:"explicit"})]})]},r))})]}):r.map(({shopName:e,textKey:t})=>n(E,{children:e},t))}),n(g,{each:h,getKey:e=>e.textKey,children:({remoteShopName:e})=>n(E,{children:[e," · ",a.translate("thank_you.payment_method_not_charged")]})})]})})}function Wr(e){const n=[Fn(e)];return"brand"in e&&e.brand&&n.push(e.brand),"creditCardLastFourDigits"in e&&e.credit
1CardLastFourDigits&&n.push(e.creditCardLastFourDigits),"displayLastDigits"in e&&n.push(e.displayLastDigits),"code"in e&&n.push(e.code.slice(-4)),"wallet"===e.type&&e.walletContent&&("lastDigits"in e.walletContent&&e.walletContent.lastDigits&&n.push(e.walletContent.lastDigits),"creditCardLastFourDigits"in e.walletContent&&e.walletContent?.creditCardLastFourDigits&&n.push(e.walletContent.creditCardLastFourDigits)),n.join("-")}function $r(){const{i18n:e,shop:n,checkout:{negotiator:t}}=yn(),{deliveryNext:a,remoteMerchandiseDetails:i}=t.current.fields,r=n.hasFlagEnabled(qn),o=_(Ur()),l=c(()=>Boolean(o.value?.some(e=>"submitted"===e.status))),s=c(()=>{const e=a.value;return Boolean(e&&"unavailable"!==e.status)}),d=c(()=>{const e=a.value;return Boolean(e&&"unavailable"!==e.status&&Un(e.lines))}),u=$t(),h=Pi(),p=c(()=>{const e=a.value;if(!e||"unavailable"===e.status)return[];const t=r&&e.lines.some(e=>e.targetMerchandiseLines?.some(e=>e.properties.some(e=>"_shopify_non_subscription_item"===e.name))),i=Ga(e.lines).filter(e=>!t||"SUBSCRIPTION"!==e.type);if(!n.marketDrivenShippingEnabled||!h.value)return i;const o=i.filter(e=>"SUBSCRIPTION"===e.type&&"available"===e.status),l=new Set(o);return[...i.filter(e=>!l.has(e)),...za(o)]}),m=c(()=>{const e=new Set(p.value.map(({type:e})=>e));return e.size>1&&e.has("SUBSCRIPTION")}),y=c(()=>p.value.filter(e=>"ONE_TIME_PURCHASE"===e.type&&"available"===e.status)),g=c(()=>{const e=i.value,t=y.value;return Fa(t,t.map(e=>({line:e,method:Hn(e)})),(t,a)=>Qa({line:t,method:a,localShopId:n.id,marketDrivenShippingEnabled:n.marketDrivenShippingEnabled,remoteShopsConfigMap:n.remoteShopsConfigMap,remoteMerchandiseDetails:e}))}),f=c(()=>!(n.marketDrivenShippingEnabled&&qa(y.value))),b=c(()=>{const e=[],n=new Map;return jn(p.value).forEach((t,a)=>{const i=Hn(t);if(!i)return;const r="ONE_TIME_PURCHASE"===t.type&&"available"===t.status&&qt({line:t,method:i}),o=t.id??`index-${a}`,l=r?Ut(i,o):void 0,s=void 0===l?void 0:n.get(l);if(s)return s.groupLines.push(t),void s.groupMethods.push(i);const c={key:l??`line:${o}`,deliveryLine:t,selectedDeliveryMethod:i,groupLines:[t],groupMethods:[i]};e.push(c),void 0!==l&&n.set(l,c)}),e});return{hasAvailableDelivery:s,lines:c(()=>{const t=m.value,a=l.value,r=i.value,o=g.value,s=d.value,{showShipmentBreakdown:c,selectedDeliveryMethod:h}=u.value;return b.value.map(({key:i,deliveryLine:l,selectedDeliveryMethod:d,groupLines:u,groupMethods:p})=>{const m=a?Wn({deliveryLine:l,remoteMerchandiseDetails:r,remoteShopsConfigMap:n.remoteShopsConfigMap,localShopId:n.id,localShopName:n.name}).shopName:(n=>"ONE_TIME_PURCHASE"!==n.type?e.translate("shipping.shipping_method_recurring_shipments_group_title.other"):t?e.translate("shipping.shipping_method_first_shipment_group_title",{count:1}):void 0)(l),_=p.find(e=>!o.has(e)),y="ONE_TIME_PURCHASE"!==l.type,g=!s||y||"available"!==l.status||$a(l)?void 0:l.availableOn,f=c&&h?.handle===d.handle?Vt(h):[],b=y?function(e){const n=de(e.map(e=>({...e,targetMerchandiseLines:[...e.targetMerchandiseLines]})));return n.some(({flatRateGroupId:e})=>e)?n:[]}(d.priceBreakdown??[]):f,v=b.length>1?b.map(({targetMerchandiseLines:e})=>e):[];return{key:i,selectedDeliveryMethod:d,priceMethod:y?d:_??Ht(d),merchandiseLines:ce(u.flatMap(e=>e.targetMerchandiseLines??[])),title:void 0===m?d.title:`${m} · ${d.title}`,hasTitlePrefix:void 0!==m,availableOn:g,packages:v}})}),showPrices:f}}const Vr=re(({checkout:e},{freeCheckout:n,isSplitShipAndPickup:t,shippableDeliveryLines:a,showSplitShippingGroups:i})=>{const{billingAddress:r,buyerIdentity:o,deliveryNext:l,paymentLines:s}=e.negotiator.current.fields,c=p(()=>s.value?.lines??[]),d=p(()=>{const n=e.latestReceipt.value;return"processed"===n?.status?n:void 0}),u=p(()=>Boolean(d.value?.completedRemoteCheckouts?.length)),h=p(()=>o.value?.purchasingCompany),m=p(()=>r.value??h.value?.location.billingAddress),_=p(()=>$n(l.value)),y=p(()=>Vn(l.value)),g=p(()=>!y.value&&!_.value),f=p(()=>!i.value),b=p(()=>Boolean(a.value.shippableDeliveryLines?.length)),v=p(()=>!i.value||t.value),k=p(()=>{const t=c.value;return Boolean(!n.value&&t.length||u.value||Yn({checkout:e})&&t.length)});return{customerBillingAddress:m,hasOnlyLocalPaymentLines:p(()=>!u.value&&c.value.length>0),hasRemoteMerchandise:u,isForLocalPickup:_,isPickupPoint:y,isSplitShipAndPickup:t,paymentLines:c,processedReceipt:d,purchasingCompany:h,renderAsCard:v,shippingRequired:b,showPaymentMethod:k,showShippingMethods:f,showShippingSummary:g,showSplitShippingGroups:i}});function Yr(){return Tn(Vr,{freeCheckout:Kn(),isSplitShipAndPickup:ne(),shippableDeliveryLines:ue(),showSplitShippingGroups:Pi()})}function Kr(){const{i18n:e,checkout:{negotiator:a}}=yn(),{shippingAddress:i}=a.current.fields,{customerBillingAddress:r,hasOnlyLocalPaymentLines:o,hasRemoteMerchandise:l,isForLocalPickup:s,isPickupPoint:d,isSplitShipAndPickup:u,paymentLines:h,purchasingCompany:
1p,shippingRequired:m,showPaymentMethod:_,showShippingSummary:g}=Yr(),{lines:f}=$r(),b=c(()=>!u.value),v=c(()=>m.value?i.value:void 0),k=c(()=>f.value.length>0&&(m.value||l.value)),w=c(()=>{const e=r.value,n=g.value||u.value?v.value:void 0;if(!(!e||n&&Gn(n,e,["phone"])))return e});return n(t,{children:[n(q,{visibility:"hidden",children:e.translate("thank_you.customer_information_title")}),n(Q,{children:n(Ta,{renderAsCard:!0,children:[n(y,{when:p,children:e=>n(Gr,{purchasingCompany:e})}),n(y,{when:b,children:[n(y,{when:s,children:n(Jr,{})}),n(y,{when:d,children:n(Xr,{})}),n(y,{when:g,children:[n(y,{when:v,children:t=>n(Qr,{label:e.translate("shipping.shipping_address_title"),address:t,hiddenFields:["phone"]})}),n(y,{when:k,children:n(no,{lines:f})})]})]}),n(y,{when:_,children:n(to,{hasOnlyLocalPaymentLines:o,hasRemoteMerchandise:l,paymentLines:h})}),n(y,{when:w,children:t=>n(Qr,{label:e.translate("billing.billing_address_title"),address:t})})]})})]})}function Gr({purchasingCompany:e}){const{i18n:t}=yn();return n(La,{label:t.translate("company_location.location_title"),primaryContent:n("bdi",{children:e.company.name}),secondaryContent:n("bdi",{children:e.location.name})})}function Qr({label:e,address:t,hiddenFields:a}){const{i18n:i}=yn(),r=n(Zr,{address:t,hiddenFields:[...a??[],"firstName","lastName"]}),o=i.formatName(t.firstName,t.lastName,!0)||t.firstName||t.lastName;return n(La,{label:e,primaryContent:o?n("bdi",{children:o}):r,secondaryContent:o?r:void 0})}function Zr({address:e,hiddenFields:a}){const i=pe(e,{hiddenFields:a,countryFormat:"short"});return null==i?n(me,{}):n(E,{type:"address",children:i.map((e,a)=>n(t,{children:[a>0&&", ",n("bdi",{children:e})]},a))})}function Jr(){const{i18n:e,checkout:{negotiator:t}}=yn(),{deliveryNext:a}=t.current.fields,i=c(()=>Mn(a.value).find(({method:e})=>"PICK_UP"===e.methodType)?.method.pickupLocation);return n(y,{when:i,children:({address:t,name:a})=>n(La,{label:e.translate("thank_you.pick_up_in_store_marker.shipping"),primaryContent:a?n(Aa,{pickupLocationName:a}):n(Gt,{address:t,hiddenFields:["phone"]}),secondaryContent:a?n(Ma,{address:t,pickupLocationName:a}):void 0})})}function Xr(){const{checkout:{negotiator:e}}=yn(),{deliveryNext:t,shippingAddress:a}=e.current.fields,i=c(()=>{const e=Mn(t.value).find(({method:e})=>"PICKUP_POINT"===e.methodType)?.method.pickupLocation,n=a.value??e?.address;return n?{address:n,location:e}:void 0});return n(y,{when:i,children:({address:e,location:t})=>n(eo,{address:e,location:t})})}function eo({address:e,location:t}){const{i18n:a}=yn(),i=n(Zr,{address:e,hiddenFields:["firstName","lastName"]}),r=t?.name,o="PickupPointLocation"===t?.type&&t.carrierCode?n(Na,{pickupLocation:t}):null;return n(La,{label:a.translate("pickup_point.title"),primaryContent:r?n("bdi",{children:r}):i,secondaryContent:r||o?n(A,{gap:"small-500",children:[r?i:null,o]}):void 0})}function no({lines:e}){const{i18n:t}=yn(),{deliveryExpectationLines:a}=Ua(),{rollup:{secondaryContent:{typography:{color:i}={}}={}}={}}=he(),r=t.translate("shipping.title"),o=c(()=>Va(Ya(e.value)).flatMap(e=>{const n=Ka(t,e);return e.items.map(e=>({line:e,availability:n}))})),[l,...s]=o.value;if(!l)return null;const d=({hasTitlePrefix:e,selectedDeliveryMethod:n,title:a})=>e?a:_e({deliveryMethod:n,localDelivery:"LOCAL"===n.methodType?t.translate("shipping.local_delivery"):void 0}),u=e=>n(ja,{methodTitle:d(e)}),h=({line:{selectedDeliveryMethod:e},availability:t})=>{const r=i??"base",o=n(Ha,{deliveryMethod:e,deliveryExpectationLine:a?.find(({deliveryStrategyHandle:n})=>n===e.handle),paragraphColor:r,hideDescription:!0});return t?n(A,{gap:"none",children:[n(F,{color:r,children:t}),o]}):o};return 0===s.length?n(La,{label:r,primaryContent:u(l.line),secondaryContent:h(l)}):n(La,{label:r,compactContent:n(A,{gap:"small-200",children:n(g,{each:o,getKey:({line:e})=>e.key,children:e=>n(A,{gap:"none",children:[u(e.line),h(e)]})})})})}function to({hasOnlyLocalPaymentLines:e,hasRemoteMerchandise:t,paymentLines:a}){const{i18n:i}=yn(),r=Nn(),o=c(()=>a.value.length>1||Boolean(r.value?.amount));return n(La,{label:i.translate("payment.title"),primaryContent:n(A,{gap:"small-200",children:[n(y,{when:e,children:n(g,{each:a,getKey:({method:e,cost:n})=>`${Fn(e)}-${n?.amount}`,children:({method:e,cost:t})=>n(Ar,{cost:t,method:e,variant:"rollup",showAmount:o.value})})}),n(y,{when:t,children:n(jr,{variant:"rollup"})})]})})}function ao(){const{i18n:e,checkout:{negotiator:t}}=yn(),{shippingAddress:a,deliveryNext:i}=t.current.fields,r=c(()=>Mn(i.value).find(({method:e})=>"PICKUP_POINT"===e.methodType)?.method.pickupLocation),o=c(()=>{const e=r.value,n=a.value??e?.address;if(n)return e?.name?{...n,lastName:e.name}:n}),l=c(()=>{const e=r.value;return"PickupPointLocation"===e?.type&&e.carrierCode?e:void 0});return n(y,{when:o,children:t=>n(A,{gap:"small-200",children:[n(q,{children:e.translate("pickup_point.title")}),n(Gt,{address:t,multiline:!0,hiddenFields:["firstName"]}),n(y,{when:l,children:e=>n(Na,{pickupLocation:e})})]})})}function io({completedRemoteCheckouts:e}){const t=Pi().value,{i18n:a,shop:{name:i,remoteShopsConfigMap:r}}=yn(),o=ye(e);if(!o.length)return null;const l=o.map(e=>{const t=`${r?.get(e.shopId)?.name||a.translate("thank_you.thank_you_from_other_store")} · `;return n(F,{children:[t,e.title]},e.handle)});if(t){const e=`${i} · ${a.translate("shipping.split_shipping_multiple_shipment_label")}`;return n(A,{gap:"small-200",children:[n(E,{color:"subdued",children:a.translate("thank_you.shipping_method_title")}),e,l]})}return n(A,{gap:"small-200",children:[n(q,{children:a.translate("thank_you.shipping_method_title")}),l]})}function ro({shippingRequired:e=!0}={}){const{i18n:t,checkout:{negotiator:a}}=yn(),i=a.current.fields.shippingAddress,r=Pi();return e?n(y,{when:i,children:e=>n(A,{gap:"small-200",children:[n(y,{when:r,fallback:n(q,{children:t.translate("thank_you.shipping_address_title")}),children:n(E,{color:"subdued",children:t.translate("thank_you.shipping_address_title")})}),n(Gt,{address:e,multiline:!0})]})}):null}function oo(){const{i18n:e}=yn(),{hasAvailableDelivery:t,lines:a}=$r();return n(y,{when:t,children:n(A,{gap:"small-200",children:[n(q,{children:e.translate("thank_you.shipping_method_title")}),n(g,{each:a,getKey:({key:e})=>e,children:({title:e})=>n(F,{children:e})})]})})}function lo({shippingRequired:e,showMethods:a}){const i=Ur();return e||i?.length?n(t,a?{children:[n(ro,{shippingRequired:e}),n(oo,{})]}:{children:[n(ro,{shippingRequired:e}),i?.length?n(io,{completedRemoteCheckouts:i}):null]}):null}function so({message:e,loading:t}){return t?n(ee,{children:n(ge,{lines:1,size:"base"})}):e?n(E,{children:e}):null}function co({message:e,loading:t,completedWithShopPay:a}){return n(A,{gap:"small-300",children:[n(fe,{}),n(be,{blockSize:"small-500"}),e||t?n(so,{message:e,loading:t}):null,a?n(sr,{}):null]})}function uo(){const{checkout:e,i18n:t,shop:a}=yn(),i=Yr(),{paymentLines:r,processedReceipt:o}=i,l=function(){const e=_(xt()),n=pr(),t=_(kr());return c(()=>Boolean((e.value||n.value)&&!t.value))}(),s=W(),d=c(()=>"thankYou"===s.value.currentDetour?.type?"Checkout::ThankYou::CustomerInformation::RenderAfter":"Checkout::CustomerInformation::RenderAfter"),u=_(ve(d.value)),h=t.translate("thank_you.customer_information_title"),p=!a.hasFlagEnabled(Qn),m=c(()=>{const e=o.value?.shopAppLinksAndResources;return e?{...e}:void 0}),g=c(()=>o.value?.isRedacted??!1),f=e.configuration.isUniversalCheckoutFinalizer,b=c(()=>{const n=e.rememberMe.response.value,t=e.rememberMe.status.value,a=Boolean(n?.data),i=r.value.some(({method:e,cost:n})=>n?.amount&&"wallet"===e.type&&["SHOP_PAY","SHOPIFY_INSTALLMENTS"].includes(e.name)),o=p?m.value?.shopPayOrder:Boolean(i),l=Boolean(o||a),s=a||"loading"===t;if(!g.value&&!f&&(l||s))return{completedWithShopPay:l,loading:"loading"===t,message:n?.data}}),v=c(()=>!g.value&&!f&&l.value),k=n(y,{when:v,children:n(_r,{})});return f?n(ho,{customizations:u,rememberMe:k,sectionTitle:h,shopMessaging:b}):n(po,{customizations:u,isRedacted:g,orderDetailsVisibility:i,rememberMe:k,sectionTitle:h,shopMessaging:b})}function ho({customizations:e,rememberMe:a,sectionTitle:i,shopMessaging:r}){const o=c(()=>Boolean(r.value?.completedWithShopPay)),l=c(()=>{const e=r.value;return e?.message||e?.loading?e:void 0}),s=c(()=>Boolean(l.value)||e.value.length>0);return n(mo,{sectionTitle:i,renderAsCard:!0,afterStack:n(t,{children:[n(y,{when:o,children:n(G,{borderWidth:"base none none none",background:"subdued",padding:"base",borderRadius:"none none base base",children:n(sr,{})})}),a]}),padded:!1,children:[n(Kr,{}),n(y,{when:s,children:n(A,{gap:"base",padding:"base",children:[n(y,{when:l,children:({loading:e,message:t})=>n(co,{message:t,loading:e})}),n(fo,{customizations:e})]})})]})}function po({customizations:e,isRedacted:a,orderDetailsVisibility:i,rememberMe:r,sectionTitle:o,shopMessaging:l}){const{i18n:s,shop:d,url:u,mobileCheckoutSdk:h,source:p,embed:m,checkout:{negotiator:_,configuration:f}}=yn(),{buyerIdentity:b,contactInfo:v}=_.current.fields,{customerBillingAddress:k,hasOnlyLocalPaymentLines:w,hasRemoteMerchandise:C,isForLocalPickup:S,isPickupPoint:x,isSplitShipAndPickup:P,paymentLines:I,purchasingCompany:L,renderAsCard:T,shippingRequired:M,showPaymentMethod:N,showShippingMethods:R,showShippingSummary:D}=i,O=s.translate("thank_you.contact_information_title"),z=s.translate("thank_you.payment_method_title"),F=s.translate("thank_you.billing_address_title"),H=s.translate("thank_you.view_business_customer_account"),j="draftOrder"===p.type,W=Boolean(m)||h.enabled,$=c(()=>Boolean(b.value?.customerProfile)),V=c(()=>{const e=b.value,n=v.value;return[e?.purchasingCompany?e.customerProfile?.fullName:void 0,n?.email??n?.phone].filter(e=>Boolean(e))}),Y=c(()=>d.hasStorefront&&f.allowRedirectToStorefront&&!j&&$.value),G=c(()=>Boolean(d.loginLinkVisible)&&(Y.value||Boolean(L.value)&&!W)),Q=c(()=>!P.value),Z=c(()=>!P.value&&N.value||Boolean(k.value)),J=c(()=>!a.value),X=()=>n(y,{when:N,children:n(A,{gap:"small-200",children:[n(y,{when:T,fallback:n(E,{color:"subdued",children:z}),children:n(q,{children:z})}),n(y,{when:w,children:n(A,{gap:"small-200",children:n(g,{each:I,getKey:({method:e,cost:n})=>`${Fn(e)}-${n?.amount}`,children:({method:e,cost:t})=>n(Ar,{cost:t,method:e})})})}),n(y,{when:C,children:n(jr,{})})]})});return n(mo,{sectionTitle:o,renderAsCard:T,afterStack:r,children:[n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",justifyContent:"end",justifyItems:"end",children:[n(q,{children:o}),n(y,{when:G,children:n(K,{href:u.account(),children:H})})]}),n(B,{gridTemplateColumns:"@media (inline-size >= small) 'repeat(2, minmax(0, 1fr))', 'minmax(0, 1fr)'",gridAutoColumns:"@media (inline-size >= small) 'repeat(2, minmax(0, 1fr))', 'minmax(0, 1fr)'",gridTemplateRows:"minmax(auto, max-content)",gridAutoRows:"minmax(auto, max-content)",gap:"large-100",children:[n(U,{children:n(_o,{renderAsCard:T,children:[n(y,{when:J,children:n(yo,{contactInformationLine
1s:V,renderAsCard:T,title:O})}),n(y,{when:L,children:n(Cr,{})}),n(y,{when:P,fallback:n(t,{children:[n(y,{when:S,children:n(xr,{})}),n(y,{when:x,children:n(ao,{})}),n(y,{when:D,children:n(go,{shippingRequired:M,showMethods:R})})]}),children:X()})]})}),n(y,{when:Z,children:n(U,{children:n(_o,{renderAsCard:T,children:[n(y,{when:Q,children:X()}),n(y,{when:k,children:e=>n(A,{gap:"small-200",children:[n(y,{when:T,fallback:n(E,{color:"subdued",children:F}),children:n(q,{children:F})}),n(Gt,{address:e,multiline:!0})]})})]})})})]}),n(y,{when:l,children:({completedWithShopPay:e,loading:t,message:a})=>n(co,{message:a,loading:t,completedWithShopPay:e})}),n(fo,{customizations:e})]})}function mo({afterStack:e,children:t,padded:a=!0,renderAsCard:i,sectionTitle:r}){const{shop:o}=yn(),l=o.hasFlagEnabled(gn),s=Qt(i);return n(Nt,{target:s?"edgeToEdgeCard":"plain",children:n(U,{accessibilityLabel:r,colorLayer:s&&!l?"control":void 0,children:[a?n(A,{gap:"base",padding:s?"base":"base none",children:t}):t,e]})})}function _o({children:e,renderAsCard:t}){return n(A,{gap:t.value?"base":"large-100",children:e})}function yo({contactInformationLines:e,renderAsCard:t,title:a}){return n(A,{gap:"small-200",children:[n(y,{when:t,fallback:n(E,{color:"subdued",children:a}),children:n(q,{children:a})}),n(Sr,{lines:e.value})]})}function go({shippingRequired:e,showMethods:t}){return n(lo,{shippingRequired:e.value,showMethods:t.value})}function fo({customizations:e}){return n(ke,{customizations:e.value})}function bo(){const{i18n:e,shop:t,checkout:{negotiator:a}}=yn(),i=t.hasFlagEnabled(gn),r=a.current.fields.contactInfo,o=Zn(),l=c(()=>r.value?.email?e.translate("thank_you.gift_card_email_title",{count:o.value}):e.translate("thank_you.gift_card_text_title",{count:o.value})),s=c(()=>r.value?.email?e.translate("thank_you.gift_card_confirmation_by_email_typ",{count:o.value}):e.translate("thank_you.gift_card_confirmation_by_text_typ",{count:o.value}));return n(U,{accessibilityLabel:l.value,colorLayer:i?void 0:"control",children:n(A,{gap:"base",children:[n(q,{children:l}),n(F,{children:n(Y,{children:s})})]})})}const vo={MapCardColumn:"yKYyD",Map:"fdga0",MapWrapper:"pyji4",MobileHeadingCard:"_6uTjZ",MapCard:"_83SjS","Map-small":"_7BqJd","Map-base":"o4nKg","Map-large":"sM8Ik","Map-fullyRounded":"_15qOA",Decoration:"RfPDK"};function ko({hasIllustrationSlot:e,illustration:t,decoration:a,children:i}){const{pending:r}=we();if(!e)return n(U,{accessibilityRole:"presentation",className:Ce.ThankYouEntranceHeading,colorLayer:"control",children:n(A,{gap:"small-300",children:i})});const o=Boolean(t);return n(G,{className:vo.MapCardColumn,children:n(Se,{style:o?{...r,padding:"none"}:void 0,children:n(U,{accessibilityRole:"presentation",className:d(Ce.ThankYouEntranceHeading,o&&vo.MapCard),colorLayer:"control",children:[n(G,{className:o?vo.MapWrapper:void 0,children:o?n(G,{className:d(vo.Map,vo[`Map-${r?.cornerRadius??"none"}`]),overflow:"hidden",position:"relative",children:t}):null}),n(Se,{style:r,children:n(U,{accessibilityRole:"presentation",className:o?vo.MobileHeadingCard:void 0,colorLayer:"control",children:[o&&a?n(A,{alignItems:"center",className:vo.Decoration,children:a}):null,n(A,{gap:"small-300",children:i})]})})]})})})}const wo={ProductMapMarker:"_1hWL4",ProductMapMarkerRedesigned:"HKCNK","ProductMapMarker-borderColorBase":"Kv2J9","ProductMapMarker-borderColorCustom":"Wv7wJ","ProductMapMarker-badgeToneBase":"WtS0D","ProductMapMarker-badgeToneAccent":"GgkBH",ProductMapMarkerCards:"l8QVy",ProductMapMarkerRise:"_2rg9b",ProductMapMarkerPin:"pJQCE",ProductMapMarkerPinBody:"_35R1C",ProductMapMarkerPinGlyph:"_9uLa0",ProductMapMarkerLabel:"_1w8la",ProductMapMarkerLabelEnter:"xQXew",ProductMapMarkerCard:"gj4N0",ProductMapMarkerCardFanEnter:"egELg",ProductMapMarkerCardEnter:"VImf6",ProductMapMarkerCardPrimary:"_9CuNx",ProductMapMarkerCardShadowReveal:"O8Seo",ProductMapMarkerCardPointer:"xfVBV",ProductMapMarkerCheckmark:"_01CKh",ProductMapMarkerCheckmarkEnter:"KQs71",ProductMapMarkerCheckmarkSvg:"Ic4fS",ProductMapMarkerCheckmarkPath:"IMQvT",ProductMapMarkerCheckmarkPathDraw:"_7hUKC",ProductMapMarkerCards2:"QZR8x"};function Co({children:e,products:t,variant:a="pin"}){const i=xe(),r=t.slice(0,5),{merchandiseThumbnail:{borderColor:o="base",badge:{background:l}={}}={}}=he(),s=l&&"base"!==l?"accent":"base";return n("div",{className:d(wo.ProductMapMarker,i&&wo.ProductMapMarkerRedesigned,wo[f("ProductMapMarker-borderColor",o)],wo[f("ProductMapMarker-badgeTone",s)]),children:[r.length>0?n("div",{"aria-hidden":"true",className:d(wo.ProductMapMarkerCards,2===r.length&&wo.ProductMapMarkerCards2),children:r.map((e,t)=>n("div",{className:d(wo.ProductMapMarkerCard,0===t&&wo.ProductMapMarkerCardPrimary,0===t&&"pin"===a&&wo.ProductMapMarkerCardPointer),children:[n(Pe,{src:e.src}),0===t&&n("span",{className:wo.ProductMapMarkerCheckmark,children:n("svg",{"aria-hidden":"true",className:wo.ProductMapMarkerCheckmarkSvg,focu
1sable:"false",viewBox:i?"0 0 14 14":"0 0 75 75",children:n("path",{className:wo.ProductMapMarkerCheckmarkPath,d:i?"m1.5 7.097 3.596 3.602c.104.105.156.157.216.175a.25.25 0 0 0 .16-.004c.059-.022.108-.077.206-.188L12.5 3":"M20 39 L32 50 L56 25",fill:"none",pathLength:"1"})})})]},e.key))}):n(So,{}),null==e?null:n(G,{background:"base",borderRadius:"fullyRounded",boxShadow:"base",className:wo.ProductMapMarkerLabel,colorLayer:i?"base":void 0,minBlockSize:"26px",overflow:"hidden",paddingBlock:i?"small-400":void 0,paddingBlockStart:i?void 0:"small-400",paddingInline:i?"small-100":"small-200",children:n(B,{alignItems:"center",columnGap:i?"small-500":"small-400",gridAutoFlow:"column",children:e})})]})}function So(){return n("svg",{"aria-hidden":"true",className:wo.ProductMapMarkerPin,focusable:"false",width:"48",height:"57",viewBox:"0 0 48 57",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("path",{className:wo.ProductMapMarkerPinBody,d:"M7.02944 7.02944C16.402 -2.34315 31.598 -2.34315 40.9706 7.02944C50.3431 16.402 50.3431 31.598 40.9706 40.9706L26.1665 55.7747C24.97 56.9712 23.03 56.9712 21.8335 55.7747L7.02944 40.9706C-2.34315 31.598 -2.34315 16.402 7.02944 7.02944Z"}),n("path",{className:wo.ProductMapMarkerPinGlyph,clipRule:"evenodd",d:"M24 11.832C30.7191 11.8321 36.166 17.2794 36.1664 23.9985C36.1664 30.7179 30.7194 36.1648 24 36.1649C17.2806 36.1648 11.8335 30.7179 11.8335 23.9985C11.834 17.2795 17.2809 11.8321 24 11.832ZM29.7483 19.6037C29.2536 19.1915 28.5173 19.2586 28.1046 19.7526L22.6617 26.2832L19.8149 23.5063C19.3539 23.0565 18.6152 23.0655 18.1651 23.526C17.7154 23.9872 17.7253 24.7259 18.1864 25.1758L21.3173 28.2307C21.4104 28.3216 21.5315 28.4409 21.6469 28.536C21.7723 28.6393 21.9738 28.7869 22.2546 28.8672C22.61 28.9687 22.99 28.9485 23.3331 28.811C23.6038 28.7022 23.7903 28.5361 23.9043 28.4206C24.0094 28.314 24.1173 28.1817 24.2005 28.0818L29.8971 21.2474C30.3088 20.7526 30.2425 20.0161 29.7483 19.6037Z",fillRule:"evenodd"})]})}const xo="/cdn/shopifycloud/checkout-web/assets/c1/assets/envelope-back.WGaOiGZK.svg";function Po(){const e=r(!1);return n(G,{accessibilityVisibility:"hidden",className:"RD9ar",position:"relative",children:e.value?null:n(G,{className:"gqvOI",children:n(G,{onErrorCapture:()=>{e.value=!0},children:[n(X,{inlineSize:"auto",alt:"",className:"_2XYJT",src:xo}),n(X,{inlineSize:"auto",alt:"",className:"P6ATR",src:xo}),n(X,{inlineSize:"auto",alt:"",className:"frRVO",src:xo}),n(X,{inlineSize:"auto",alt:"",className:"hnSkm",src:"/cdn/shopifycloud/checkout-web/assets/c1/assets/envelope-front.CLJhijiu.svg"})]})})})}function Io({active:e,children:t,products:a,map:i}){const{shop:o}=yn(),l=o.hasFlagEnabled(gn),s=r(new Set),[c]=a.filter(({src:e})=>e&&!s.value.has(e)),u=e&&c,h=e&&!c,p=u?n(G,{accessibilityVisibility:"hidden",className:"H9KlQ",background:"subdued",overflow:"hidden",position:"relative",children:[n(X,{alt:"",className:"k3nMX",inlineSize:"auto",objectFit:"cover",src:c.src}),n(Co,{products:[c],variant:"thumbnail"})]}):i;return n("div",{onErrorCapture:function(e){if(!(e.target instanceof HTMLImageElement))return;const n=e.target.getAttribute("src");n&&(s.value=new Set([...s.value,n]))},children:n(B,{children:[h?n(U,{accessibilityRole:"presentation",className:d("sv7SI",Ce.ThankYouEntranceStatus),colorLayer:l?void 0:"control",overflow:"hidden",children:n(G,{background:"subdued",className:"fF5mZ",overflow:"hidden",position:"absolute"})}):null,n(A,{alignItems:h?"center":void 0,className:"oMEEK",padding:h?"base":void 0,paddingBlockStart:h?"large-300":void 0,children:[h?n(A,{alignItems:"center",className:d("f453c",Ce.ThankYouEntranceStatus),children:n(Po,{})}):null,n(G,{inlineSize:"100%",children:n(Nt,{target:"card",children:n(ko,{hasIllustrationSlot:!0,illustration:p,decoration:u?n(Po,{}):void 0,children:t})})})]})]})})}function Lo(e,{legacyRepresentProductsAsFees:n=!1,remoteMerchandiseDetails:t}={}){const a=e?.length?e.map(e=>({giftCard:e.giftCard,key:e.stableId,legacyFee:e.legacyFee,quantity:e.quantity,requiresShipping:e.requiresShipping,src:e.image?.two})):function(e){const n=e?.mergedBuyerProposalMerchandise;return"PurchaseOrderMerchandiseTerms"!==n?.__typename?[]:n.merchandiseLines.map(e=>
1({giftCard:e.merchandise.giftCard,key:e.stableId,legacyFee:"legacyFee"in e&&!0===e.legacyFee,quantity:e.quantity.items,requiresShipping:e.merchandise.requiresShipping,src:e.merchandise.image?.two}))}(t);return a.filter(({quantity:e,legacyFee:t})=>e>0&&!(n&&t)).map(({giftCard:e,key:n,requiresShipping:t,src:a})=>({giftCard:e,key:n,requiresShipping:t,src:a}))}function To(){const{i18n:e,checkout:a}=yn(),i=_(T()),{contactInfo:r,deliveryNext:o,merchandiseLines:l,legacyRepresentProductsAsFees:s,remoteMerchandiseDetails:d}=a.negotiator.current.fields,u=Jn(),h=Ja(),p=c(()=>{const n=i.value;if(!n)return{};const t=n.completedRemoteCheckouts?.length?null:n.orderIdentity.buyerIdentifier,c=Xn(o.value),p=r.value?.email,m=r.value?.phone,_=Lo(l.value?.lines,{legacyRepresentProductsAsFees:s.value,remoteMerchandiseDetails:d.value}),y=!a.isShippingRequired.value&&_.length>0&&_.every(({requiresShipping:e})=>!e);return function({confirmationNumber:e,email:n,hasMultipleOrders:t,i18n:a,isBuyerActionRequired:i,isCheckoutToDraft:r,isDigitalOnly:o,isPickupOnly:l,isRedacted:s,phone:c,purchaseOrderNumber:d}){const u=e?a.translate("order_summary.confirmation_number_label",{confirmation_number:e}):void 0,h=d?a.translate("thank_you.purchase_order_number_title",{purchase_order_number:d}):void 0,p=[u,h].filter(Boolean).join(" • ");if(r)return{identifier:h};if(s||i||l)return{identifier:p||void 0};const m=d&&p||void 0,_=d?null:e,y=n||c;return y?t?{identifier:m,message:n?a.translate("thank_you.order_confirmation_destination.multi_store_email",{email:n}):a.translate("thank_you.order_confirmation_destination.multi_store_phone",{phone:y})}:o?{identifier:m,message:_?a.translate("thank_you.order_confirmation_destination.digital_order",{confirmation_number:_,email_or_phone:y}):a.translate("thank_you.order_confirmation_destination.digital_order_without_number",{email_or_phone:y})}:{identifier:m,message:_?a.translate("thank_you.order_confirmation_destination.order",{confirmation_number:_,email_or_phone:y}):a.translate("thank_you.order_confirmation_destination.order_without_number",{email_or_phone:y})}:{identifier:m,message:_?a.translate("thank_you.order_confirmation_destination.missing_contact",{confirmation_number:_}):a.translate("thank_you.thank_you_confirmed_order_with_missing")}}({confirmationNumber:t,email:p,hasMultipleOrders:h.value,i18n:e,isBuyerActionRequired:"BUYER_ACTION_REQUIRED"===n.paymentDetails?.financialPendingReason,isCheckoutToDraft:u.value,isDigitalOnly:y,isPickupOnly:et(c),isRedacted:Boolean(n.isRedacted),phone:m,purchaseOrderNumber:n.purchaseOrderNumber})}),m=c(()=>p.value.identifier),g=c(()=>p.value.message);return n(t,{children:[n(y,{when:m,children:e=>n(F,{color:"subdued",textAlign:"center",children:e})}),n(y,{when:g,children:e=>n(F,{color:"subdued",textAlign:"center",children:e})})]})}function Mo(e){const{map:a,digitalProducts:i}=e,r="map"in e,{i18n:o,checkout:l}=yn(),s=_(T()),{buyerIdentity:d,shippingAddress:u,billingAddress:h}=l.negotiator.current.fields,p=Jn(),m=Ur(),g=m?.some(e=>"failed"===e.status),f=xe(),b=Ie(),v=c(()=>!b||"settled"===l.thankYouEntrance.phase.value),k=c(()=>{const e=d.value?.purchasingCompany,n=d.value?.customerProfile,{firstName:t,lastName:a}=e&&n?{firstName:n.firstName??void 0,lastName:n.lastName??void 0}:((...e)=>{const n=e.find(e=>e?.firstName&&e?.lastName)||e.find(e=>e?.lastName);return n?{firstName:n.firstName,lastName:n.lastName}:{}})(h.value,u.value),i=s.value?.isRedacted?null:o.formatName(t,a);return i?o.translate("thank_you.page_title",{display_name:i}):o.translate("thank_you.page_title_no_name")}),w=c(()=>{const e=s.value?.orderIdentity.buyerIdentifier||null,n=Boolean(s.value?.completedRemoteCheckouts?.length);return p.value||!e||n?null:o.translate("order_summary.confirmation_number_label",{confirmation_number:`${e}`})}),C=c(()=>{const e=s.value?.purchaseOrderNumber;return e?o.translate("thank_you.purchase_order_number_title",{purchase_order_number:e}):null}),S=c(()=>Boolean(w.value)||Boolean(C.value));if(g)return null;const x=n(q,{level:1,autoFocus:v.value,textAlign:f?"center":void 0,children:k}),P=n(y,{when:S,children:()=>n(F,{color:"subdued",children:[n(y,{when:w,children:e=>n(t,{children:[e,n(y,{when:C,children:" • "})]})}),C]})});return f?"digitalProducts"in e?n(Io,{active:void 0!==i,products:i??[],map:a,children:[x,n(To,{})]}):n(Nt,{target:"card",children:n(ko,{hasIllustrationSlot:r,illustration:a,children:[x,n(To,{})]})}):n(Za,{status:"success",children:[P,x]})}const Ao=e=>e.reduce((e,n)=>e+(n.quantity??0),0);function No({confirmedShops:e,failedShops:t}){const{i18n:a}=yn(),i=o(()=>Ao(e),[e]),r=i+o(()=>Ao(t),[t]);return n(q,{children:a.translate("thank_you.confirmed_items_count",{confirmed_count:i,total_count:r})})}function Eo({thumbnailUrl:e,thumbnailAlt:t,primaryText:a,secondaryText:i,orderAmount:r,checkoutUrl:o,buttonText:l}){const{i18n:s}=yn(),c=r?s.formatCurrency(r.amount,{currency:r.currencyCode,form:"short"}):void 0;return n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[n(Pe,{alt:t,size:"small",src:e}),n(A,{gap:"base",children:[n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[n(A,{children:[a,i&&n(E,{color:"subdued",children:i})]}),c?n(E,{type:"strong",children:c}):null]}),o&&l&&n(G,{inlineSize:"@media (inline-size >= extraSmall) fit-content, 100%",children:n(M,{variant:"secondary",size:"small",onClick:()=>window.open(o,"_blank"),inlineSize:"fill",children:n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"small-400",alignItems:"center",alignContent:"center",children:[n(E,{children:l}),n(N,{type:"external",size:"small"})]})})})]})]})}function Ro({image:e,quantity:t,title:a,subtitle:i,totalPrice:r}){const{i18n:o}=yn();return n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[n(G,{children:n(Pe,{alt:e?.altText,size:"base",src:e?.url,totalItems:t})}),n(G,{blockAlignment:"center",children:n(A,{children:[n(E,{children:a}),i&&n(E,{color:"subdued",children:i})]})}),r?n(G,{blockAlignment:"center",children:n(E,{children:o.formatCurrency(r.amount,{currency:r.currencyCode,form:"short"})})}):null]})}function Do({deliveryLines:e,merchandiseItems:t}){const{i18n:a}=yn(),i=Boolean(e&&e.length>=kn);if(!(i||t&&t.length))return null;if(i){const i=[];
1return e?.forEach(e=>{if(!Cn(e))return;const n=e.methods.find(n=>n.handle===e.selectedDeliveryMethodHandle);n&&i.push({line:e,selectedMethod:n})}),i.length?n(A,{gap:"large-200",children:i.map(({line:e,selectedMethod:i},r)=>n(A,{gap:"base",children:[n(A,{children:[n(A,{direction:"inline",gap:"small-400",children:[n(E,{type:"strong",children:a.translate("shipping.split_shipping_shipment_number",{number:r+1})}),n(E,{children:"·"}),n(E,{children:i.title})]}),n(E,{color:"subdued",children:i.deliveryPromisePresentmentTitle?.long})]}),e.targetMerchandiseLines?.map(e=>{const a=t?.find(n=>n.id===e.stableId);return a?n(Ro,{image:a.image,quantity:a.quantity,title:a.title,subtitle:a.subtitle,totalPrice:a.totalPrice},e.id):null})]},e.id||r))}):null}return n(A,{gap:"base",children:t?.map(e=>n(Ro,{image:e.image,quantity:e.quantity,title:e.title,subtitle:e.subtitle,totalPrice:e.totalPrice},e.id))})}const Bo=Fe("ShopOrderSummaryTooltip");function Oo({details:e}){const{i18n:a,shop:i}=yn(),r=e.shopId===i.id,o=Le(void 0,Bo),l=Boolean("deliveryLines"in e&&e.deliveryLines&&e.deliveryLines.length>=kn);return n(ze,{title:a.translate("order_summary.cost_table_title"),children:[e.subtotal&&n(Te,{children:[n(Me,{children:n(A,{direction:"inline",gap:"small-400",children:[n(E,{children:a.translate("order_summary.subtotal_label")}),e.quantity&&n(t,{children:[n(E,{children:"·"}),n(E,{children:a.translate("thank_you.thank_you_item_label",{count:e.quantity})})]})]})}),n(Ae,{children:n(E,{children:a.formatCurrency(e.subtotal.amount,{currency:e.subtotal.currencyCode,form:"short"})})})]}),r&&n(Ne,{disableTooltip:!0}),"shippingTotal"in e&&e.shippingTotal&&n(Te,{children:[n(Me,{children:n(A,{direction:"inline",gap:"small-400",children:[n(E,{children:a.translate("order_summary.shipping_label")}),e.deliveryMethodHandle&&!l&&n(t,{children:[n(E,{children:"·"}),n(E,{children:e.deliveryMethodHandle})]})]})}),n(Ae,{children:n(E,{letterCase:0===e.shippingTotal.amount?"uppercase":void 0,children:0===e.shippingTotal.amount?a.translate("order_summary.free_shipping_total_label"):a.formatCurrency(e.shippingTotal.amount,{currency:e.shippingTotal.currencyCode,form:"short"})})})]}),"estimatedTaxes"in e&&e.estimatedTaxes&&n(Te,{children:[n(Me,{children:n(A,{direction:"inline",gap:"small-300",alignItems:"center",children:[n(E,{children:a.translate("order_summary.estimated_taxes_label")}),n(N,{type:"question-circle",size:"small",interestFor:o,accessibilityLabel:a.translate("tooltip.accessibility_label_context",{context:a.translate("order_summary.estimated_taxes_label")})}),n(Ee,{id:o,children:a.translate("order_summary.estimated_taxes_finalization_tooltip_content")})]})}),n(Ae,{children:n(E,{children:a.formatCurrency(e.estimatedTaxes.amount,{currency:e.estimatedTaxes.currencyCode,form:"short"})})})]}),r&&n(Re,{}),r&&n(De,{}),r&&n(Be,{disableTooltip:!0}),"checkoutTotal"in e&&e.checkoutTotal&&n(Te,{children:[n(Me,{children:n(q,{level:1,children:a.translate("order_summary.total_label")})}),n(Ae,{children:n(q,{level:1,children:a.formatCurrency(e.checkoutTotal.amount,{currency:e.checkoutTotal.currencyCode,form:"short"})})})]}),r&&n(Oe,{})]})}function zo({details:e,open:t,onClose:a,onAfterHide:i}){const{i18n:r}=yn();return n(Ue,{id:`order-modal-${e.shopId}`,open:t,onHide:a,onAfterHide:i,heading:e.shopName?r.translate("thank_you.thank_you_from_shop",{shop_name:e.shopName}):r.translate("thank_you.thank_you_from_other_store"),size:"base",children:n(qe,{children:n(A,{gap:"base",children:[n(U,{children:n(Do,{deliveryLines:"deliveryLines"in e?e.deliveryLines:void 0,merchandiseItems:e.merchandiseItems})}),n(fe,{}),n(U,{children:n(Oo,{details:e})}),"orderConfirmationNumber"in e&&e.orderConfirmationNumber&&n(E,{color:"subdued",children:r.translate("order_summary.confirmation_number_label",{confirmation_number:e.orderConfirmationNumber})}),"trackingUrl"in e&&e.trackingUrl&&n(M,{variant:"primary",size:"base",inlineSize:"fill",onClick:e.trackingUrl?()=>window.open(e.trackingUrl,"_blank"):void 0,children:n(A,{direction:"inline",gap:"small-200",alignItems:"center",children:[n(E,{children:r.translate("thank_you.track_your_order_link_text")}),n(N,{type:"external",size:"small"})]})})]})})})}function Fo(){const{checkout:{negotiator:e}}=yn(),n=e.current.fields.contactInfo;return c(()=>{const e=n.value;return{confirmWithEmail:null!=e?.email&&e?.email.length>0,confirmWithPhone:null!=e?.phone&&e?.phone.length>0}})}function qo({itemCount:e}){const{i18n:t}=yn(),{confirmWithEmail:a,confirmWithPhone:i}=Fo().value,r=e>1,o=a?r?t.translate("thank_you.thank_you_confirmed_with_email_description.multi_store"):t.translate("thank_you.thank_you_confirmed_with_email_description.single_store"):i?r?t.translate("thank_you.thank_you_confirmed_with_phone_description.multi_store"):t.translate("thank_you.thank_you_confirmed_with_phone_description.single_store"):void 0;return n(te,{tone:"info",iconHidden:!0,heading:t.translate("thank_you.confirmed"),children:n(F,{children:o})})}function Uo({itemCount:e}){const{i18n:t}=yn();return n(te,{tone:"critical",heading:t.translate("thank_you.thank_you_unconfirmed_items_heading",{count:e}),children:n(F,{children:t.translate("thank_you.thank_you_unconfirmed_items_description",{count:e})})})}function Ho({status:e,detailsList:a}){const i=r(null),o=r(!1),{shop:l,i18n:s}
1=yn(),c=l.hasFlagEnabled(gn),d=Boolean(Ur()?.some(e=>"failed"===e.status));if(!a.length)return null;const u="confirmed"===e,h=a.find(e=>e.shopId===i.value);return n(t,{children:[n(U,{overflow:"hidden",colorLayer:c?void 0:"control",children:n(A,{gap:"base",children:[n(jo,{isConfirmed:u,hasFailedRemoteCheckouts:d,detailsList:a}),a.map((e,t)=>{const r=t===a.length-1;return n(A,{gap:"base",children:[n(Eo,{primaryText:n(A,{direction:"inline",gap:"small-400",children:[n(K,{textDecoration:"none",onClick:()=>{i.value=e.shopId,o.value=!0},children:s.translate("thank_you.thank_you_item_label",{count:e.quantity??0})}),n(E,{children:He}),n(E,{children:e.shopName||s.translate("thank_you.thank_you_from_other_store")})]}),secondaryText:Wo({details:e,i18n:s}),orderAmount:e.checkoutTotal,thumbnailUrl:e.merchandiseItems?.[0]?.image?.url,thumbnailAlt:e.merchandiseItems?.[0]?.image?.altText,..."failed"===e.status?Vo({details:e,i18n:s}):$o({details:e,i18n:s})}),!r&&n(je,{below:"small",children:n(fe,{direction:"inline",borderWidth:"base"})})]},e.shopId)})]})}),h&&n(zo,{open:o.value,onClose:()=>o.value=!1,onAfterHide:()=>i.value=null,details:h})]})}function jo({isConfirmed:e,hasFailedRemoteCheckouts:t,detailsList:a}){if(e)return t?n(qo,{itemCount:a.length}):null;const i=a.filter(e=>"failed"===e.status).reduce((e,n)=>e+(n.quantity||0),0);return n(Uo,{itemCount:i})}function Wo({details:e,i18n:n}){return"failed"===e.status?n.translate("payment_errors.generic_error"):"orderConfirmationNumber"in e&&e.orderConfirmationNumber?n.translate("order_summary.confirmation_number_label",{confirmation_number:e.orderConfirmationNumber}):void 0}function $o({details:e,i18n:n}){return{buttonText:e.shopName?n.translate("thank_you.checkout_on_remote_shop_link_text",{remoteShopName:e.shopName}):n.translate("thank_you.checkout_on_another_store")}}function Vo({details:e,i18n:n}){return{checkoutUrl:e.recoveryUrl,buttonText:e.shopName?n.translate("thank_you.checkout_on_remote_shop_link_text",{remoteShopName:e.shopName}):n.translate("thank_you.checkout_on_another_store")}}function Yo(e){return e?.length?e.reduce((e,n)=>e+n.quantity,0):0}function Ko(e){if(e?.length)return e.reduce((e,n)=>n.lineAmount?{amount:(e?.amount||0)+n.lineAmount.amount,currencyCode:n.lineAmount.currencyCode}:e,void 0)}function Go(e){return e.map(({stableId:e,title:n,productTitle:t,image:a,quantity:i,price:r})=>({id:e,title:t,subtitle:n||void 0,image:a?{url:a.url,altText:a.altText||void 0}:void 0,quantity:i,totalPrice:r})).filter(e=>null!==e)}function Qo(){const{confirmedShops:e,failedShops:t}=function(){const e=Ur(),{shop:{name:n,id:t,brandSettings:a,remoteShopsConfigMap:i},checkout:{negotiator:r}}=yn(),{totalLineQuantities:l}=$e(),s=function(){const e=T(),n=nt(),t=Nn();return c(()=>{const a=e?.purchaseOrder.paymentDue,i=e?.checkoutTotal;return tt({paymentDue:a,checkoutTotal:i,orderDeposit:t.value,hasFixedSellingPlan:n.value})})}(),d=T(),u=Ve(),h=r.current.fields.taxes.value,{value:p}=at("ONE_TIME_PURCHASE"),m=it(p),_=bn(),y=function(){const e=bn();return c(()=>{const n=e.value.filter(Cn),t=n[0];if(!t)return;const a=t.methods[0];if(!a)throw new We("Missing delivery method at index 0 for local shipping total");return{amount:n.reduce((e,n)=>{const t=n.methods.find(({handle:e})=>e===n.selectedDeliveryMethodHandle);return e+(t?.costAfterDiscounts.amount??0)},0),currencyCode:a.costAfterDiscounts.currencyCode}})}();return o(()=>{const r=[],o=[];if(!e?.length)return{confirmedShops:[],failedShops:[]};if(l&&l>0){const e=u.map(({stableId:e,title:n,subtitle:t,image:a,quantity:i,totalPrice:r})=>e?{id:e,title:n,subtitle:t||void 0,image:a?.url?{url:a.url,altText:a.altText||void 0}:void 0,quantity:i,totalPrice:r}:null).filter(e=>null!==e)||[],i=h&&"available_total"===h.status?h.totalTax:void 0,o={shopId:t,shopName:n,shopLogo:a?.squareLogo?.url,quantity:l,checkoutTotal:s.value,merchandiseItems:e,subtotal:d?.subtotal,estimatedTaxes:i,shippingTotal:y.value,deliveryMethodHandle:m?.title,orderConfirmationNumber:d?.orderIdentity?.buyerIdentifier||void 0,trackingUrl:d?.orderStatusPageUrl||void 0,deliveryLines:_.value,status:"confirmed"};r.push(o)}
1return e?.length&&e.forEach(e=>{if("submitted"===e.status){const{orderIdentity:{buyerIdentifier:n},orderStatusPageUrl:t,remotePurchaseOrder:{merchandiseLines:a,deliveryLines:o,checkoutTotal:l,subtotalBeforeTaxesAndShipping:s,tax:c}}=e,d={shopId:e.shopId,shopName:i?.get(e.shopId)?.name,shopLogo:i?.get(e.shopId)?.brandSettings?.squareLogo?.url,quantity:Yo(a),checkoutTotal:l,subtotal:s,estimatedTaxes:c,shippingTotal:Ko(o),merchandiseItems:Go(a)||[],deliveryMethodHandle:o?.[0]?.title,orderConfirmationNumber:n||void 0,trackingUrl:t||void 0,status:"confirmed"};r.push(d)}if("failed"===e.status){const{recoveryUrl:n,merchandiseLines:t,checkoutTotal:a,subtotalBeforeTaxesAndShipping:r,tax:l}=e,s={shopId:e.shopId,shopName:i?.get(e.shopId)?.name,shopLogo:i?.get(e.shopId)?.brandSettings?.squareLogo?.url,quantity:Yo(t),checkoutTotal:a,subtotal:r,estimatedTaxes:l,merchandiseItems:Go(t)||[],recoveryUrl:n,status:"failed"};o.push(s)}}),{confirmedShops:r,failedShops:o}},[e,t,n,l,s.value,d,a?.squareLogo?.url,i,u,h,m,_.value,y.value])}(),a=Boolean(t?.length),i=Boolean(e?.length);return i||a?n(A,{gap:"base",children:[a?n(No,{confirmedShops:e,failedShops:t}):null,i?n(Ho,{status:"confirmed",detailsList:e}):null,a?n(Ho,{status:"failed",detailsList:t}):null]}):null}const Zo=()=>{const{i18n:e}=yn();return n(A,{padding:"base",children:n(q,{children:e.translate("thank_you.offers.title")})})},Jo=(e,n=ga)=>{if("https://shop.app"!==e.origin)return;if(void 0===e.data)return;if("redirect"!==e.data.type)return;const t=e.data.redirect_to;if(void 0===t)return;const a=new URL(t);"https://shop.app"==`${a.protocol}//${a.hostname}`&&(void 0!==e.data.open_in_new_tab&&!0===e.data.open_in_new_tab&&"function"==typeof n.open?n.open(t,"_blank","noopener,noreferrer"):n.location.href=t)},Xo=({shopId:e,personalizeAds:t,placement:r,checkoutToken:o,orderId:l,hideButtons:s,hideHeader:c,accentColor:d,darkMode:u})=>{const h=a(null);i(()=>{const e=setTimeout(()=>{h.current?.iframeRef?.current&&(h.current.iframeRef.current.style.height="0px")},2e3);return ga.addEventListener("message",Jo),ga.addEventListener("message",n=>{"https://shop.app"===n.origin&&clearTimeout(e)}),()=>{ga.removeEventListener("message",Jo),clearTimeout(e)}},[]);const{authorizeUrl:p}=fa({avoidPayAltDomain:!0,avoidSdkSession:!0,analyticsContext:"shopCashOffers",proxy:!0,locale:void 0,flow:"shop_cash_offers",redirectType:"iframe",responseType:"code",clientId:"",shopId:e,personalizeAds:t,placement:r,checkoutToken:o,orderId:l,hideButtons:s,hideHeader:c,accentColor:d,darkMode:u});return n(ba,{proxy:!0,insideModal:!1,ref:h,src:p,scrolling:"no",variant:"default"})};function el(e,n){if(null==e)return;const t=e.control?.background??n;return null==t||ot(t)?e.base?.background:t}function nl(e){return void 0!==e&&e.getYiqPerceivedBrightness()>=.65}const tl=new URL("https://shop.app"),al=String(!0),il="thank_you",rl="100%",ol=b(({shopId:e,personalizeAds:t,preview:r,orderId:o,checkoutSessionIdentifier:l,setHeight:s},c)=>{const d=String(t),u=function(){const{shop:e}=yn(),n=e.hasFlagEnabled(rt),{colors:{global:t,schemes:a={}}}=he(),{main:i}=Ye(),r=a[i.colorScheme??"scheme1"],o=i.section?.colorScheme?a[i.section.colorScheme]:void 0,l=n?el(o,t?.control)??el(r,t?.control)??el(a.scheme1,t?.control):el(r),s=void 0===l?n:nl(l),c=t?.accent;return{...s?null:{dark_mode:"true"},...void 0!==c&&s!==nl(c)?{accent_color:c.toRgb()}:null}}(),{i18n:h,observability:p,url:m}=yn(),_=a(null),y=a(null),g=()=>{const e=_.current?.shadowRoot?.querySelector("iframe");return e??y.current},f=Boolean(o)||r;if(i(()=>{const e={type:f?"iframe":"shop-js-iframe"};p.counter({name:"shop_ads_2p_rail_render_started",value:1,attributes:e}),p.log("shop_ads_2p_rail_render_started","shop_ads_2p_rail_render_started",{...e})},[f,p]),i(()=>{const e=e=>{if(e.origin!==tl.origin)return;const n=e?.data?.type,t=e?.data?.redirect_to;if("resize_iframe"===n){let n=e?.data?.height;const t=e?.data?.width;if("number"==typeof n&&"number"==typeof t){n=n>0?n:0,s(n);const e={type:n>0?"with_content":"without_content"};p.counter({name:"shop_ads_2p_rail_resize",value:1,attributes:e}),p.log("shop_ads_2p_rail_resize","shop_ads_2p_rail_resize",{height:n,width:t,...e});const a=g();a&&(a.style.height=`${n}px`,a.style.width=rl)}}else if(f&&"redirect"===n&&void 0!==t){const n=new URL(t);n.origin!==tl.origin&&n.origin!==new URL(m.storefront()).origin||(void 0!==e.data.open_in_new_tab&&!0===e.data.open_in_new_tab?window.open(t,"_blank","noopener,noreferrer"):window.location.assign(t))}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[f,s,p,m]),v(c,()=>({iframeElement:g}),[]),f){const t=(b={shop_id:String(e),placement:il,hide_header:al,personalize_ads:d,merchant_url:m.storefront(),...r?{preview:String(r)}:null,...o?{order_id:String(o)}:null,...l?{checkout_token:l}:null,...u},`${new URL("https://shop.app/offers-compact").toString()}?${new URLSearchParams(b).toString()}`.toString());return n("iframe",{ref:y,id:"offers",title:h.translate("thank_you.offers.title"),src:t,width:rl,height:"211px",scrolling:"no"})}return"undefined"==typeof window||"undefined"==typeof customElements||customElements.get("shop-cash-offers")||ra(({element:e,...t})=>n(sa,{element:e,featureName:"ShopCashOffers",children:n(oa,{children:n(la,{children:n(_a,{children:n(ya,{children:n(Xo,{...t})})})})})}),{name:"shop-cash-offers",props:{shopId:"number",personalizeAds:"boolean",placement:"string",orderId:"number",checkoutToken:"string",hideButtons:"boolean",hideHeader:"boolean",accentColor:"string",darkMode:"boolean"},shadow:"open"}),n("shop-cash-offers",{"shop-id":e,"personalize-ads":d,"hide-header":al,"dark-mode":u.dark_mode,"accent-color":u.accent_color,placement:il,"order-id":o,"checkout-token":l,ref:_});var b});function ll({preview:t}){const{shop:i,source:{checkoutSessionIdentifier:r},consentManager:o}=yn(),{id:l}=i,s=parseInt(_n(l),10),c=o.saleOfDataAllowed.value&&o.marketingAllowed.value,[d,u]=e(),h=i.hasFlagEnabled(gn),p=T(),m=p?.orderIdentity.id?lt(p.orderIdentity.id):void 0,_=a(null);return n(U,{colorLayer:h?void 0:"control",display:0===d?"none":"block",children:[n(Zo,{}),n(ol,{checkoutSessionIdentifier:r,orderId:m,personalizeAds:c,shopI
1d:s,ref:_,setHeight:u,preview:t})]})}const sl=(e,n)=>{try{const t=new URL(e.replace(/\/$/,""));return Object.entries(n).forEach(([e,n])=>{t.searchParams.append(e,n)}),t.toString()}catch{return e}},cl=/^(e_[0-9a-f]{32})_(.+?)(?:_osp)?$/;function dl(e){return e.clientHandle===st?e.variant:null}function ul(){const{shop:e,environment:n,observability:t}=yn(),i=a(new Map),r=n.services.serverShopApp.url;return s(({deepLink:n,source:a})=>{if(!e.hasFlagEnabled(ct))return Promise.resolve();if(!n)return Promise.resolve();const o=i.current.get(n);if(o)return o;const l=async function(e,n,t,a){!function(e,n){e.counter({name:"deferred_deep_link_capture_attempt",value:1,attributes:{source:n}})}(n,a);const i=new AbortController,r=performance.now(),o=setTimeout(()=>i.abort(),5e3);let l="network";try{l=await async function(e,n,t){const a=new URL("/deferred-deep-links",e),i=await fetch(a,{method:"POST",credentials:"omit",keepalive:!0,headers:{"Content-Type":"application/json"},signal:t,body:JSON.stringify({deepLink:n})});if(202!==i.status)return`http_${i.status}`;try{const e=await i.json();return null!==e&&"object"==typeof e&&"accepted"in e&&!0===e.accepted?"accepted":"invalid_response"}catch(r){if(t.aborted)throw r;return"invalid_response"}}(e,t,i.signal)}catch{l=i.signal.aborted?"timeout":"network"}finally{clearTimeout(o),function(e,n,t,a){const i={source:n,success:"accepted"===t,status:t};e.histogram({name:"deferred_deep_link_capture_duration",value:a,unit:"ms",attributes:i})}(n,a,l,Math.round(performance.now()-r))}}(r,t,n,a).finally(()=>{i.current.delete(n)});return i.current.set(n,l),l},[e,r,t])}const hl=102,pl=e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 318 350",...e,children:n("path",{d:"M9.267 33.017C37.148 13.574 77.319 0 120.113 0c114.074 0 197.039 77.132 197.039 182.787 0 98.501-
171.299 167.213-170.479 167.213C61.764 350 .848 292.972.848 216.482c0-51.855 31.182-90.1 75.205-104.994l35.641 60.274c-23.975 11.006-33.018 27.221-33.018 47.307 0 33.017 27.881 56.404 68.052 56.404 49.269 0 88.156-38.905 88.156-91.402 0-61.577-48.608-108.223-114.716-108.223a132.56 132.56 0 0 0-73.243 21.388z"})});function ml({color:e="branded",containerSize:t=32,iconSize:a=20,backgroundColor:i="white",overlay:r=!1}){const o="branded"===e?ti.toRgb():e;return n("div",{className:d("gTxFI",r?"kfcrU":""),style:{backgroundColor:i,height:t,width:t,borderRadius:"10px"},children:n(pl,{"aria-hidden":"true",style:{fill:o},height:a,width:a})})}const _l="iIHiG",yl=Fe("tracking-delivered-gradient-");function gl(){return n("svg",{"aria-hidden":"true",viewBox:"0 0 40 40",children:[n("circle",{cx:"20",cy:"20",fill:"#000",r:"20"}),n("path",{className:"Iiyyo",d:"m12.25 20.5 5 5 10.5-12",fill:"none",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3.25"})]})}function fl(){const e=Le(void 0,yl);return n("svg",{"aria-hidden":"true",viewBox:"0 0 40 40",children:[n("defs",{children:n("linearGradient",{id:e,x1:"0",x2:"1",children:[n("stop",{offset:"0",stopColor:"#3ccd7f"}),n("stop",{offset:"1",stopColor:"#56bc39"})]})}),n("circle",{cx:"20",cy:"20",fill:`url(#${e})`,r:"20"}),n("path",{clipRule:"evenodd",d:"M12.5914 21.8064 12.5926 21.8055 12.5944 21.8042 12.6 21.8001 12.6185 21.7863C12.6341 21.7746 12.6562 21.758 12.6844 21.7365 12.7406 21.6937 12.8211 21.6316 12.9223 21.5514 13.1245 21.3909 13.4102 21.1574 13.7514 20.8594 14.4326 20.2647 15.3426 19.407 16.2553 18.3551 18.0477 16.2895 20 13.3052 20 10 20 5.58172 16.4183 2 12 2 7.58172 2 4 5.58172 4 10c0 3.3052 1.95225 6.2895 3.74471 8.3551.91273 1.0519 1.82269 1.9096 2.50389 2.5043.3412.298.6269.5315.8291.692.1012.0802.1817.1423.2379.1851.0282.0215.0503.0381.0659.0498l.0185.0138.0056.0041.0025.0018c.352.2582.8313.2585 1.1833.0004ZM11.9978 12.5A2.5 2.5 0 1 0 11.9978 7.5a2.5 2.5 0 0 0 0 5Z",fill:"white",fillRule:"evenodd",transform:"translate(8 8)"})]})}function bl({animate:e=!0}={}){return n("div",{"aria-hidden":"true",className:d("_3nOgQ",e&&"NmBBp"),children:n("div",{className:"_0wOrq",children:[n("span",{className:"I6KnV"}),n("span",{className:"e1FkT"}),n("span",{className:"Ww91E"}),n("span",{className:"sCXu3",children:[n("span",{className:d(_l,"oacnN"),children:n(gl,{})}),n("span",{className:d(_l,"_2i0qK")}),n("span",{className:d(_l,"xjUvL")}),n("span",{className:d(_l,"_8Slfk"),children:n(fl,{})})]})]})})}const vl=e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 393 63",...e,children:[n("path",{fill:"currentColor",d:"M57.69 28.063q.963 0 1.827.357a4.1 4.1 0 0 1 1.527 1.095q.672.74 1.054 1.901.382 1.154.382 2.781v.017q0 2.016-.581 3.453-.581 1.435-1.669 2.208-1.079.763-2.581.763-1.104 0-1.992-.398a4.1 4.1 0 0 1-1.461-1.112 3.9 3.9 0 0 1-.772-1.627l-.017-.092h2.1l.034.083q.157.415.448.73.299.316.714.49.423.167.946.167.945 0 1.544-.556.605-.566.905-1.503a7.7 7.7 0 0 0 .348-2.092q.009-.124.009-.24v-.241l-.374-2q0-.681-.315-1.238a2.4 2.4 0 0 0-.855-.88 2.27 2.27 0 0 0-1.204-.323 2.3 2.3 0 0 0-1.187.315q-.54.315-.863.864a2.3 2.3 0 0 0-.324 1.212v.016q0 .697.307 1.237.307.531.838.838.532.308 1.212.308t1.22-.3.856-.83.315-1.203v-.017h.498v2.208h-.29a2.9 2.9 0 0 1-.64.88q-.422.407-1.046.656-.613.249-1.444.249-1.146 0-2.025-.515a3.73 3.73 0 0 1-1.386-1.41q-.498-.898-.498-2.026v-.017q0-1.22.564-2.166a4 4 0 0 1 1.577-1.494q1.013-.549 2.3-.548m8.559 10.666a1.3 1.3 0 0 1-.947-.373 1.28 1.28 0 0 1-.373-.93q0-.555.373-.93.382-.381.947-.382.572 0 .946.382.373.375.373.93 0 .547-.373.93-.375.373-.946.373m0-6.159a1.3 1.3 0 0 1-.947-.373 1.28 1.28 0 0 1-.373-.93q0-.555.373-.93.382-.381.947-.382.572 0 .946.382.373.375.373.93 0 .547-.373.93-.375.373-.946.373m9.579 7.77v-2.3h-5.86v-1.75l.946-1.619a155 155 0 0 1 1.959-3.22q.497-.798.987-1.57.498-.78.996-1.518h3.014v7.91h1.618v1.768H77.87v2.3zm-3.868-4.018h3.9v-6.25h-.124q-.365.564-.755 1.162-.382.597-.772 1.22t-.772 1.253q-.381.622-.755 1.254-.374.623-.722 1.236zm12.484 4.018v-9.87h-.15l-2.98 2.1v-2.009l3.13-2.2h2.133V40.34z"}),n("rect",{width:24,height:12,x:334,y:28.5,stroke:"currentColor",opacity:.35,rx:3.8}),n("path",{fill:"currentColor",d:"M359.5 32.781v4.076a2.21 2.21 0 0 0 1.328-2.038c0-.89-.523-1.693-1.328-2.038",opacity:.4}),n("rect",{width:21,height:9,x:335.5,y:30,fill:"currentColor",rx:2.5}),n("path",{fill:"currentColor",fillRule:"evenodd",d:"M317.771 31.104c2.487 0 4.879.922 6.681 2.576a.355.355 0 0 0 .487-.004l1.297-1.263a.34.34 0 0 0 .105-.248.34.34 0 0 0-.108-.246c-4.731-4.375-12.195-4.375-16.926 0a.35.35 0 0 0-.108.246c0 .093.037.182.105.248l1.298 1.263c.133.13.35.131.486.004 1.803-1.654 4.195-2.576 6.683-2.576m-.004 4.22c1.357 0 2.666.512 3.672 1.436a.344.344 0 0 0 .484-.006l1.287-1.32a.367.367 0 0 0-.005-.519 7.9 7.9 0 0 0-10.873 0 .367.367 0 0 0-.005.52l1.287 1.319a.34.34 0 0 0 .483.006 5.43 5.43 0 0 1 3.67-1.436m2.525 2.794a.4.4 0 0 1-.103.28l-2.177 2.455a.32.32 0 0 1-.241.113.32.32 0 0 1-.242-.113l-2.177-2.455a.4.4 0 0 1-.102-.28.4.4 0 0 1 .113-.276c1.39-1.314 3.426-1.314 4.816 0 .07.07.111.17.113.276M301.7 29.682c0-.633-.478-1.146-1.067-1.146h-1.066c-.589 0-1.067.513-1.067 1.146v9.934c0 .633.478 1.146 1.067 1.146h1.066c.589 0 1.067-.513 1.067-1.146zm-7.434 1.3h1.067c.589 0 1.066.525 1.066 1.173v7.434c0 .648-.477 1.173-1.066 1.173h-1.06
17c-.589 0-1.067-.525-1.067-1.173v-7.434c0-.648.478-1.174 1.067-1.174m-4.332 2.648h-1.067c-.589 0-1.066.532-1.066 1.189v4.755c0 .656.477 1.188 1.066 1.188h1.067c.589 0 1.067-.532 1.067-1.188v-4.755c0-.657-.478-1.189-1.067-1.189m-5.301 2.445h-1.066c-.589 0-1.067.525-1.067 1.172v2.344c0 .647.478 1.171 1.067 1.171h1.066c.589 0 1.067-.524 1.067-1.171v-2.344c0-.647-.478-1.172-1.067-1.172",clipRule:"evenodd"})]}),kl=e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 175 175",...e,children:[n("path",{fill:"#5433EB",d:"M0 0h174.329v174.329H0z"}),n("path",{fill:"#fff",d:"M39.025 84.09c-5.091-1.102-7.36-1.533-7.36-3.49 0-1.84 1.536-2.756 4.606-2.756 2.7 0 4.673 1.177 6.126 3.482.11.178.335.24.52.143l5.729-2.886a.4.4 0 0 0 .164-.561c-2.378-4.111-6.77-6.361-12.553-6.361-7.6 0-12.327 3.734-12.327 9.672 0 6.306 5.749 7.9 10.847 9.001 5.098 1.102 7.373 1.532 7.373 3.489s-1.658 2.88-4.968 2.88c-3.056 0-5.324-1.396-6.695-4.105a.4.4 0 0 0-.541-.177l-5.715 2.825a.406.406 0 0 0-.178.547c2.268 4.548 6.92 7.107 13.136 7.107 7.914 0 12.697-3.674 12.697-9.796s-5.776-7.9-10.868-9.001zm30.698-12.43c-3.248 0-6.119 1.15-8.181 3.195a.202.202 0 0 1-.343-.144V61.653a.4.4 0 0 0-.404-.403h-7.168a.4.4 0 0 0-.404.403v40.528a.4.4 0 0 0 .404.404h7.168a.4.4 0 0 0 .404-.404V84.404c0-3.434 2.638-6.067 6.194-6.067s6.133 2.578 6.133 6.067v17.777a.4.4 0 0 0 .404.404h7.168a.4.4 0 0 0 .404-.404V84.404c0-7.47-4.906-12.737-11.779-12.737zm26.34-1.155c-3.892 0-7.551 1.183-10.169 2.9a.403.403 0 0 0-.13.54l3.16 5.383c.116.192.362.26.554.144a12.6 12.6 0 0 1 6.585-1.806c6.256 0 10.854 4.405 10.854 10.226 0 4.96-3.68 8.633-8.346 8.633-3.803 0-6.441-2.21-6.441-5.329 0-1.785.76-3.25 2.74-4.282a.396.396 0 0 0 .158-.56l-2.98-5.035a.4.4 0 0 0-.487-.171c-3.995 1.477-6.797 5.034-6.797 9.809 0 7.223 5.763 12.613 13.8 12.613 9.388 0 16.137-6.491 16.137-15.8 0-9.98-7.852-17.272-18.652-17.272zm39.593 1.095c-3.625 0-6.859 1.333-9.223 3.686a.2.2 0 0 1-.343-.144v-2.831a.4.4 0 0 0-.404-.404h-6.983a.4.4 0 0 0-.404.404v40.466a.4.4 0 0 0 .404.403h7.168a.4.4 0 0 0 .404-.403v-13.27c0-.178.212-.267.343-.15 2.357 2.188 5.475 3.467 9.045 3.467 8.407 0 14.965-6.792 14.965-15.616s-6.565-15.616-14.965-15.616zm-1.35 24.37c-4.783 0-8.408-3.796-8.408-8.816s3.618-8.817 8.408-8.817 8.401 3.734 8.401 8.817c0 5.082-3.563 8.817-8.408 8.817z"})]});function wl(e,n){return new Intl.DateTimeFormat(n,{hour:"numeric",minute:"2-digit"}).formatToParts(e).filter(({type:e})=>"dayPeriod"!==e).map(({value:e})=>e).join("").trim()}function Cl({animate:e=!0,title:t,body:a,time:i,now:r}={}){const{i18n:o}=yn(),l=r?wl(r,o.locale):"",s=r?function(e){const n=new Date(e),t=e.getHours(),a=t>=20?"tomorrow":"today";return t>=20||t<9?(t>=20&&n.setDate(n.getDate()+1),n.setHours(9,0,0,0)):n.setHours(n.getHours()+1,0,0,0),{day:a,time:n}}(r):void 0,c=s?wl(s.time,o.locale):"";let u="";return"today"===s?.day?u=o.translate("thank_you.qr_code.phone_banner.body_today",{time:c}):s&&(u=o.translate("thank_you.qr_code.phone_banner.body_tomorrow",{time:c})),n("div",{"aria-hidden":"true",className:d("RqWCL",e&&"vcF4y"),children:n("div",{className:"Z7YHY",children:[n("div",{className:"U17Bl",children:[n(vl,{"aria-hidden":"true"}),n("span",{className:"XiB25",dir:"auto",children:l}),n("span",{className:"rRjrG"})]}),n("div",{className:"nm5oZ",children:[n("span",{className:"pXsW1",children:n(kl,{"aria-hidden":"true",width:28,height:28})}),n("span",{className:"XAh5C",children:[n("strong",{dir:"auto",children:t??o.translate("thank_you.qr_code.phone_banner.title")}),n("span",{dir:"auto",children:a??u})]}),n("span",{className:"rjvR4",dir:"auto",children:i??o.translate("thank_you.qr_code.phone_banner.time")})]})]})})}const Sl=[dt.Bar,dt.Phone];function xl(e){return Sl.includes(e??"")}function Pl({treatment:e,isReady:t=!0,now:a}){return n("div","phone"===e?{"aria-hidden":"true",className:d("HLHdp",t&&"E1A3F"),children:n(Cl,{animate:t,now:a})}:{"aria-hidden":"true",className:"_2gHo1",children:n(B,{accessibilityVisibility:"hidden",gridTemplateRows:t?"1fr":"0fr",overflow:"hidden",children:n(bl,{animate:t})})})}function Il({link:e,deferredDeepLinkUrl:t,label:o,message:l,installCampaign:c,styledQrCode:u,onQrCodeInteraction:h}){const{i18n:p,observability:m}=yn(),_=ul(),y=xe(),g=r(!1),f=a(null),b=a(0),v=r(!1),k=r(!1),w=Ke(),C=!g.value,S=k.value,x=g.value&&S,P=c?dl(c):void 0,I=xl(P),L=l?.title,T=l?.subtitle,N=s(()=>{h?.()},[h]),E=s(()=>{g.value=!0,null!==f.current&&(m.histogram({name:"qr_code_load_time",value:Math.round(performance.now()-f.current),unit:"ms",attributes:{page:"thank_you"}}),f.current=null)},[m,g]),R=P===dt.Phone,D=function(e){const n=r(void 0);return i(()=>
1{if(!e)return;let t;const a=()=>{n.value=new Date},i=6e4-Date.now()%6e4;a();const r=window.setTimeout(()=>{a(),t=window.setInterval(a,6e4)},i);return()=>{window.clearTimeout(r),void 0!==t&&window.clearInterval(t)}},[e,n]),n.value}(R),O=s(()=>{_({deepLink:t,source:"DESKTOP"}).catch(()=>{}),k.value=!0,b.current+=1,g.value||null!==f.current||(f.current=performance.now())},[k,g,t,_]),z=s(()=>{k.value=!1,v.value=!1},[v,k]);return i(()=>{if(S&&L)return Ge({content:L})},[S,L]),i(()=>{w&&x&&(v.value=!0)},[v,w,x]),n(G,{children:n(ni,{impressionType:"download_shop_button",impressionFeatures:["desktop","qr_code"],children:n(M,{inlineSize:y?"fill":void 0,onClick:N,overlay:n(Et,{theme:{popover:{cornerRadius:20}},children:n(Xa,{keepMounted:!0,padding:"none",positionArea:"inline-end",onHide:z,onShow:O,children:n(G,{className:d("_3ne1k",I&&"WYqsK",u&&"_5eMgt"),children:n(G,{padding:"none",className:d("smgwg",I&&"UIp5B",R&&"v7JCj"),children:n(A,{gap:"none",className:"cnARA",children:[n(B,{gridTemplateColumns:"auto minmax(0, 1fr)",columnGap:"none",children:[n(B,{gridTemplateColumns:"1fr",children:[C?n(G,{className:"eB1Wk",children:n(ee,{contentDisplay:"block",inlineSize:"100%",blockSize:"100%"})}):null,n(G,{className:d("Ipunz",x&&"F0OjS"),padding:"none",onTransitionEnd:e=>{S&&!v.value&&"filter"===e.propertyName&&(v.value=!0)},children:[u?n("img",{src:e,height:hl,width:hl,alt:p.translate("thank_you.qr_code.iframe_title"),"aria-hidden":C,onLoad:E}):n(ei,{src:e,height:hl,width:hl,title:p.translate("thank_you.qr_code.iframe_title"),"aria-hidden":C,onLoad:E}),u?null:n(ml,{overlay:!0})]})]}),n(G,{children:n(B,{gridTemplateColumns:"1fr",blockSize:"100%",children:n(G,{className:"JN61f",children:n(A,{gap:"none",className:d("IATLg",I&&"fBsi6"),children:[n(G,{className:d(I&&"JwOzi"),children:L?n(q,{level:3,children:L}):null}),T?n(F,{children:n(Y,{children:T})}):null]})})})})]}),I?n(Pl,{isReady:v.value,treatment:P,now:D},b.current):null]})})})})}),children:o})})})}const Ll="order_status_page";class Tl extends Error{constructor(){super(...arguments),this.name="ShopMobileClipboardInteractionError"}}function Ml({label:e,link:t,deferredDeepLinkUrl:a,onClipboardInteraction:i}){const r=St(),o=Sn(),{observability:l,mobileCheckoutSdk:s,embed:c}=yn(),d=ul(),u=xe(),h=s.variant.isStandard()||c?.isCheckoutKit();if(!r)return null;const p=r?.mobileUrlAttributionPayload,m=o.value.defaultAttributes?.visitToken;return n(G,{children:n(ni,{impressionType:"download_shop_button",impressionFeatures:["mobile"],children:n(M,{inlineSize:u?"@media (inline-size >= medium) auto, fill":void 0,onClick:async()=>{d({deepLink:a,source:"MOBILE"}).catch(()=>{});try{const t=(e=p,(n=m)?`${e},${n},${Ll}`:`${e},,${Ll}`);await J(t)}catch(r){r instanceof Error&&l.error(new Tl(r.message,{cause:r}))}finally{i?.();const e=function(e,n){const t=new URL(e);return n&&t.searchParams.set("sid",n),h&&t.searchParams.set("open_externally","true"),t.toString()}(t,m);window.location.href=e}var e,n},children:e})})})}function Al({label:e,message:t,mobileLinkToShop:a,desktopLinkToShop:i,deferredDeepLinkUrl:r,styledQrCode:o,installCampaign:l,onClipboardInteraction:s,onQrCodeInteraction:c}){return ut()?n(Ml,{label:e,deferredDeepLinkUrl:r,link:a,onClipboardInteraction:s}):n(Il,{label:e,deferredDeepLinkUrl:r,link:i,message:t,styledQrCode:o,installCampaign:l,onQrCodeInteraction:c})}const Nl="installments_order";function El(){const{i18n:e}=yn(),t=St(),{track:a}=Ti("shop_pay_installments_highlight_button");if(i(()=>{t&&a("shop_button_rendered")},[t,a]),!t)return null;const{shopInstallmentsMobileUrl:r,qrCodeUrl:o}=t,l={title:e.translate("installments.installments_highlight_qr_flow_modal.title"),subtitle:e.translate("installments.installments_highlight_qr_flow_modal.subtitle")},s=sl(r,{utm_content:Nl}),c=sl(o,{link_provider:"open.shop.app",utm_content:Nl});return n(Al,{label:e.translate("installments.installments_highlight_shop_button_get_reminders"),message:l,desktopLinkToShop:c,mobileLinkToShop:s,onClipboardInteraction:()=>{a("arrive")},onQrCodeInteraction:()=>{a("arrive_show_qr_code")}})}function Rl(){const{i18n:e,shop:t}=yn(),a=t.hasFlagEnabled(gn),i=e.translate("installments.installments_highlight_headline");return n(U,{accessibilityLabel:i,colorLayer:a?void 0:"control",children:n(A,{gap:"large-200",children:[n(q,{children:i}),n(A,{gap:"base",children:[n(F,{children:n(Y,{children:e.translate("installments.installments_highlight_copy")})}),n(El,{})]})]})})}function Dl({shipmentGroups:e,title:t,subtitle:a,subtitleIcon:i,address:r,addressHeading:o,modalHeader:l}){const{shop:s}=yn(),c=s.hasFlagEnabled(gn);return n(U,{overflow:"hidden",colorLayer:c?void 0:"control",children:n(A,{gap:"base",children:[n(A,{gap:"small-200",children:[n(q,{level:2,children:t}),a&&n(A,{direction:"inline",gap:"small-400",alignItems:"center",children:[i&&n(N,{type:i}),n(E,{color:"subdued",children:a})]})]}),e.map((e,t)=>n(ii,{merchandiseLines:e.merchandiseLines,deliveryMethod:e.deliveryMethod,deliveryMethodHandle:e.deliveryMethod.handle,modalHeader:l(t),showPrice:!1,showPriceInModal:!0,showDeliveryIcon:!1,choiceListContext:!1,isNotFirstLine:t>0,showDivider:!1,subtitle:"PickupInStoreLocation"===e.deliveryMethod.pickupLocation?.type?e.deliveryMethod.pickupLocation.instructions:void 0},e.id)),r&&n(A,{gap:"small-200",children:[n(q,{level:3,children:o}),n(Gt,{address:r,multiline:!0})]})]})})}function Bl(){const e=yn(),{deliveryNext:t}="processed"===e.checkout.latestReceipt.value?.status?e.checkout.latestReceipt.value.purchaseOrder??{}:{};if(!t)return null;const a=function(e){return"filled"!==e.status?[]:e.lines.filter(Cn).flatMap(e=>{const n=it(e);return n?[{id:e.id??ri(),line:e,selectedMethod:n}]:[]})}(t).filter(({line:e})=>"ONE_TIME_PURCHASE"===e.type),i=function(e,{i18n:n}){const t=e.filter(({selectedMethod:e})=>"PICK_UP"===e.methodType),[a]=t;if(a)return{shipmentGroups:t.map(({id:e,line:n,selectedMethod:t})=>({id:e,deliveryMethod:t,merchandiseLines:(n.targetMerchandiseLines??[]).filter(e=>e.requiresShipping)})),title:n.translate("delivery_options.pickup"),subtitle:n.translate("split_delivery.separate_pickup_email_notice"),address:a.selectedMethod.pickupLocation?.address,addressHeading:n.translate("thank_you.pick_up_in_store_marker.shipping"),modalHeader:()=>n.translate("delivery_options.pickup")}}(a,e),r=function(e,{checkout:n,i18n:t,shop:a}){const{shippingAddress:i}="processed"===n.latestReceipt.value?.status?n.latestReceipt.value.purchaseOrder:{},r=e.filter(({selectedMethod:e})=>"SHIPPING"===e.methodType);if(0===r.length)return;const o=r.map(({line:e,selectedMethod:n})=>({line:e,method:n})),l=a.marketDrivenShippingEnabled?Fa(r.map(({line:e})=>e),o):new Set,s=new Map;r.forEach((e,n)=>{const t=Ut(e.selectedMethod,e.line.id??`index-${n}`);s.has(t)||s.set(t,e)});const c=jt(o).flatMap(({key:e,methods:n,merchandiseLines:t})=>{const a=s.get(e),i=n[0];if(!a||!i)return[];const r=n.find(e=>!l.has(e))??Ht(i);return[{id:a.id,deliveryMethod:r,merchandiseLines:t.filter(e=>e.requiresShipping)}]}),d=c.length;return{shipmentGroups:c,title:t.translate("order_summary.shipping_label"),subtitle:d>1?t.translate("shipping.split_shipping_multiple_shipment_notice_one_time_purchase",{quantity:d}):void 0,subtitleIcon:"truck",address:i,addressHeading:t.translate("thank_you.shipping_address_title"),modalHeader:e=>1===d?t.translate("order_summary.shipping_label"):t.translate("shipping.split_shipping_merchandise_shipment_number",{number:e+1,total:d})}}(a,e);return n(A,{gap:"base",children:[i&&n(Dl,{...i}),r&&n(Dl,{...r})]})}function Ol(){const{i18n:e,shop:t,checkout:{negotiator:a}}=yn(),i=t.hasFlagEnabled(gn),r=e.translate("shipping.shipping_method_title"),o=a.current.fields.deliveryNext,l=$t(),s=Wt(),d=W(),u=c(()=>{const e=o.value;if("filled"!==e?.status)return[];const n=Ga(e.lines).filter(Cn);return jn(n)}),h=c(()=>u.value.filter(({type:e})=>"ONE_TIME_PURCHASE"===e)),p=c(()=>Ft(h.value).groups),m=c(()=>p.value.length),_=c(()=>u.value.filter(({type:e})=>"SUBSCRIPTION"===e)),g=c(()=>_.value.length>0),f=c(()=>u.value.map(({methods:e})=>e[0]?.handle)),b=c(()=>e.translate("shipping.shipping_method_first_shipment_group_title",{count:m.value})),v=c(()=>
1g.value&&!l.value.showShipmentBreakdown&&!$(d.value.currentDetour)),k=c(()=>g.value||s.value?e.translate("shipping.split_shipping_multiple_shipment_notice"):m.value>1?e.translate("shipping.split_shipping_multiple_shipment_notice_one_time_purchase",{quantity:m.value}):void 0),w=t.marketDrivenShippingEnabled&&qa(h.value);return n(y,{when:()=>"filled"===o.value?.status,children:()=>n(Nt,{target:"plain",children:n(U,{accessibilityLabel:r,children:n(A,{gap:"base",padding:"small-300 none none none",children:[n(A,{gap:"small-400",children:[n(q,{level:2,children:r}),n(y,{when:()=>l.value.showShipmentBreakdown,fallback:n(zl,{multipleShipmentsHeading:k}),children:n(si,{})})]}),n(A,{gap:"large-200",children:[n(A,{gap:"small-200",children:[n(y,{when:v,children:()=>n(q,{level:3,children:b.value})}),n(Nt,{target:"edgeToEdgeCard",children:n(U,{accessibilityRole:"presentation",colorLayer:i?void 0:"control",children:n(oi,{deliveryLines:u.value,selectedDeliveryMethodHandles:f.value,choiceListContext:!1,showGroupPrices:!w,shipmentGroups:p.value})})})]}),n(ci,{subscriptionLines:_.value})]})]})})})})}function zl({multipleShipmentsHeading:e}){return n(y,{when:e,children:e=>n(A,{direction:"inline",gap:"small-400",alignItems:"center",children:[n(N,{type:"truck"}),n(E,{color:"subdued",children:e})]})})}function Fl(e){return e.some(e=>"_shopify_buyer_membership_key"===e.key&&"buy_with_prime"===e.value)}function ql({coordinates:e,location:t}){const{i18n:a}=yn(),i=new URL("https://www.google.com/maps/dir/");return i.searchParams.set("api","1"),i.searchParams.set("destination",`${e.latitude},${e.longitude}`),n(K,{href:i.href,display:"block",target:"_blank",tone:"monochrome",textDecoration:"none",accessibilityLabel:a.translate("thank_you.pickup_map_marker.directions_link_accessibility_label",{location:t}),children:n(B,{alignItems:"center",columnGap:"small-400",gridTemplateColumns:"minmax(0, 1fr) auto",minBlockSize:"28px",paddingBlock:"small-400",paddingInline:"small-200",children:[n(Qe,{children:n(E,{type:"small",color:"subdued",children:a.translate("thank_you.pickup_map_marker.callout",{location:n(E,{type:"strong",children:t})})})}),n(N,{type:"external",size:"small-100"})]})})}function Ul({children:e,logoUrl:t}){const a=r(),i=t&&a.value!==t;return n(G,{position:"absolute",insetBlock:"0px 0px",insetInline:"0px 0px",className:"KtZGb",children:[n(G,{accessibilityVisibility:"hidden",background:"base",borderRadius:"large",boxShadow:"base",padding:"small-400",position:"absolute",className:"PSy3F",children:[n(B,{alignItems:"center",justifyItems:"center",blockSize:"100%",children:i?n(X,{src:t,alt:"",aspectRatio:"1",objectFit:"contain",className:"_0WT9v",disableGlobalBranding:!0,onError:()=>{a.value=t}},t):n(N,{type:"store",size:"large-100"})}),n("svg",{"aria-hidden":"true",focusable:"false",width:"20",height:"10",viewBox:"0 0 20 10",className:"A7zgQ",children:n("path",{d:"M0 0h20c-3 0-4 1-6 3l-2 2c-1 1-3 1-4 0L6 3C4 1 3 0 0 0Z"})})]}),n(G,{background:"base",borderRadius:"fullyRounded",boxShadow:"base",minBlockSize:"28px",position:"absolute",className:"tNSyn",children:e})]})}const Hl=k(void 0);function jl(){return w(Hl)}const Wl="nH4ja",$l="550 / 200",Vl="2 / 1";function Yl(e){const t=ht(),a=e.native||e.reveal||e.prepareReveal;return n(y,{when:t,fallback:n(ee,{contentDisplay:"block",aspectRatio:a?$l:Vl}),children:n(Kl,{...e},e.src)})}function Kl({src:e,title:t,overlayTitle:a,overlayLabel:i,overlayPosition:o="aboveMarker",overlay:l,onError:s,onLoad:c,native:u=!1,reveal:h=!1,prepareReveal:p=h}){const m=r(),_=m.value===e,y=h&&_,g=u||h||p,f=!g||_;let b;return y?b="k3H5T":p&&!y?b="d0mBH":g&&!_&&(b="_1WW5M"),n(G,{position:"relative",onLoadCapture:function(n){n.target instanceof HTMLImageElement&&n.target.getAttribute("src")===e&&(m.value=e)},className:d("Q3L2z",Boolean(l)&&"wpbKf",g&&"_82Z1e"),children:[y?n(G,{accessibilityVisibility:"hidden",className:"LyLiP",position:"absolute",children:n(X,{alt:"",className:"vGAm4",inlineSize:"auto",objectFit:"cover",src:e})}):null,n(X,{src:e,alt:t??"Map",className:b,loading:"lazy",aspectRatio:g?$l:Vl,objectFit:g?void 0:"cover",onError:s?()=>s():void 0,onLoad:c?()=>c():void 0}),g&&!_?n(G,{position:"absolute",insetBlock:"0px 0px",insetInline:"0px 0px",children:n(ee,{contentDisplay:"block",aspectRatio:$l,delay:!1})}):null,f&&i?n("div",{"aria-hidden":"true",className:d("_1H07Y",{[Wl]:"center"===o}),children:n(A,{gap:"small-500",alignItems:"center",children:[a?n(E,{color:"subdued",type:"small",children:a}):null,n(E,{type:"strong",children:i})]})}):null,f?l:null]})}function Gl({children:e,marker:t,products:a,background:i="subdued"}){const o=r(new Set),l=a.filter(({src:e})=>e&&!o.value.has(e)),s="product"===i?l[0]?.src:void 0;return n(G,{background:"subdued",className:"QiTzJ",inlineSize:"100%",onErrorCapture:function(e){if(!(e.target instanceof HTMLImageElement))return;const n=e.target.getAttribute("src");
1n&&(o.value=new Set([...o.value,n]))},overflow:"hidden",position:"relative",children:[s?n(X,{alt:"",className:"BsmDF",inlineSize:"auto",objectFit:"cover",src:s}):null,t??n(Co,{products:l,children:e})]})}function Ql(e){const{observability:n}=yn(),t=a(new Set),i=s((a,i,r,o="none")=>{if(!e)return;const l=[e.receiptKey,e.statusCard,a,i,r].join("|");t.current.has(l)||(t.current.add(l),n.counter({name:"thank_you_map_presentation",value:1,attributes:{event:a,status_card:e.statusCard,delivery_method_type:e.deliveryMethodType,layout:e.layout,map_path:i,core_visibility:e.coreVisibility,failure_reason:o}}))},[e,n]);return{recordStaticAttempt:s(e=>i("static_attempted","static",e),[i]),recordStaticLoaded:s(e=>i("static_loaded","static",e),[i]),recordStaticFailed:s(e=>i("static_failed","static",e,"static_error"),[i]),recordInteractiveRendered:s(()=>i("interactive_rendered","interactive","interactive"),[i]),recordInteractiveFailed:s(e=>i("interactive_failed","interactive","interactive",e),[i]),recordNoMap:s(()=>i("no_map","none","none"),[i])}}function Zl(e){return e?"VISIBLE"===e.mapVisibility?"visible":"hidden":"unavailable"}function Jl(e){return e?.orderStatusPageUrl??e?.confirmationPage?.url??e?.id??"unavailable"}function Xl(e){return e?"redesigned":"classic"}function es(e){switch(e){case"SHIPPING":return"shipping";case"LOCAL":return"local";case"PICK_UP":return"pick_up";case"PICKUP_POINT":return"pickup_point";case"NONE":return"none";default:return"unknown"}}function ns({title:e,markerTitle:a,markerLabel:r,fallbackTitle:o=a,products:l,marker:s,overlayPosition:c,failedSources:d,telemetry:u,...h}){const p=function(){yn();const e=na({live:!0}),n=T();return function(e,n){return e?n?e.dark:e.light:null}(n?.mapUrl,e)}(),{checkout:m}=yn(),_=xe(),y=_,g=y&&"pending"!==m.thankYouEntrance.phase.value,{recordStaticAttempt:f,recordStaticLoaded:b,recordStaticFailed:v,recordInteractiveRendered:k,recordInteractiveFailed:w}=Ql(u),C=p?d.value.has(p):d.value.size>0;i(()=>{p&&!C&&f(p)},[C,f,p]);const S=n(t,{children:[n(E,{color:"subdued",children:o}),n(Qe,{children:n(E,{type:"strong",children:n("bdi",{children:r})})})]});return C?n(Gl,{products:l??[],background:l?"product":"subdued",marker:s,children:S}):p?n(Yl,{src:p,native:_,reveal:g,prepareReveal:y,title:e,overlayTitle:l||s?void 0:a,overlayLabel:l||s?void 0:r,overlayPosition:c,overlay:s??(l?n(Co,{products:l,children:S}):void 0),onError:function(){d.value=new Set([...d.value,p]),p?v(p):w("sandbox_error")},onLoad:()=>b(p)},p):n(Ea,{...h,title:e,onLoadFailure:e=>{d.value=new Set([...d.value,null]),w(e)},onRendered:k})}function ts(){const{checkout:e,shop:n}=yn(),{acceptEmailMarketing:t,buyerIdentity:a,contactInfo:i}=e.negotiator.current.fields;return c(()=>!a.value?.purchasingCompany&&void 0!==i.value?.email&&"OFF"!==n.emailMarketing&&!t.value&&"processed"===e.latestReceipt.value?.status&&e.latestReceipt.value.eligibleForMarketingOptIn)}const as={Root:"CGD68",VisualLabel:"MPVYO",Layer:"_3MQvk",Phrase:"_8PSDP",Token:"fWnnD",IntroToken:"_1IOC2",ShopButtonAnimationCharOut:"bDnw9",FinalToken:"lK5x7",ShopButtonAnimationCharIn:"c0CTL",IconSpacer:"_4davv",ShopLogoSpacer:"_38oLJ",ShopLogoTrailingSpacer:"wXlya",Icon:"oXdcI",BellIcon:"hOZAu",ShopButtonAnimationBellRing:"_2Vr9X",BellIconAfterSwap:"kyDmS",ShopLogoToken:"ogNqn",ShopLogo:"aAfSd",StaticLabel:"kujmI",StaticShopLogoWrapper:"q19KC",AccessibleLabel:"_6rZN2",Delay0:"E1DyI",Delay1:"gRzAZ",Delay2:"EHhRv",Delay3:"KaI2p",Delay4:"taDzR",Delay5:"gvU7N",Delay6:"w7U7g",Delay7:"Cl5Kz",Delay8:"Dh152",Delay9:"TjYGl",Delay10:"EzlVD",Delay11:"JcEQU",Delay12:"HEqog",Delay13:"OaqG3",Delay14:"xHfD9",Delay15:"Qhbfd",Delay16:"_1C9SL",Delay17:"jvrs3",Delay18:"ayiZt",Delay19:"JVpja",Delay20:"y2YPD",Delay21:"t0uAF",Delay22:"rLm9q",Delay23:"PXe2R",Delay24:"_63ITw"};function is({intro:a,final:r,accessibleLabel:o,staticLabel:l}){const{i18n:s}=yn(),{locale:c,localeDirection:u}=s,h=e=>"rtl"===u&&C(e)?"rtl":"ltr",[p,m]=e(!1);i(()=>{m(!0)},[]);const _=(e,a)=>{const i=os(e.textBefore,c,p),r=e.icon?1:0,o=r+i.length,l=e.hasShopLogo?os(e.textAfter??"",c,p):[],s=JSON.stringify([r,i,l]);return n("span",{className:as.Layer,children:n("span",{className:as.Phrase,dir:h(e.textBefore+(e.textAfter??"")),children:[e.icon?n(t,{children:[n("span",{className:d(as.Token,a,as.Delay0),children:e.icon}),n("span",{className:as.IconSpacer})]}):null,ls(i,a,r),e.hasShopLogo?n(t,{children:[n("span",{className:as.ShopLogoSpacer}),n("span",{className:d(as.Token,a,as.ShopLogoToken,as[ss(o)]),children:n(di,{className:as.ShopLogo,"aria-hidden":"true"})},`shop-logo-${s}`),l.length>0?n(t,{children:[n("span",{className:as.ShopLogoTrailingSpacer}),ls(l,a,o+1)]}):null]}):null]})})};return n("span",{className:as.Root,children:[n("span",{className:as.VisualLabel,"aria-hidden":"true",children:[_(a,as.IntroToken),_(r,as.FinalToken)]}),n("span",{className:as.StaticLabel,dir:h(o),"data-testid":"static-label","aria-hidden":"true",children:l}),n("span",{className:as.AccessibleLabel,children:o})]})}const rs=/^(ar|fa|ur|he|iw|hi|th)\b/i;function os(e,n,t){const a=e.match(/\s+|\S+/gu)??[];
1if(!t||rs.test(n)||"function"!=typeof Intl.Segmenter)return a;let i;try{i=new Intl.Segmenter(n,{granularity:"grapheme"})}catch{return a}return a.flatMap(e=>/^\s+$/u.test(e)?[e]:Array.from(i.segment(e),e=>e.segment))}function ls(e,t,a){return e.map((e,i)=>{const r=i+a;return n("span",{className:d(as.Token,t,as[ss(r)]),children:e.replaceAll(" "," ")},`${r}-${e}`)})}function ss(e){return`Delay${Math.min(e,24)}`}function cs(){return n(A,{direction:"inline",alignItems:"center",className:as.StaticShopLogoWrapper,children:n(di,{className:as.ShopLogo,"aria-hidden":"true"})})}function ds({ringsAfterSwap:e=!1}){return n("svg",{className:d(as.Icon,e?as.BellIconAfterSwap:as.BellIcon),viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:n("path",{fill:"currentColor",d:"M8.00016 1.5C10.4655 1.50006 12.5234 3.3978 12.8439 5.90137L13.4718 10.8096C13.5286 11.2533 13.3853 11.6709 13.1173 11.9805L13.1203 12H13.1007C12.8276 12.305 12.4309 12.5 11.9836 12.5H10.8908C10.3479 13.6581 9.2848 14.4999 8.00016 14.5C6.71553 14.5 5.6524 13.6581 5.10953 12.5H4.01578C3.56841 12.4998 3.17155 12.3052 2.8986 12H2.88004L2.88199 11.9814C2.61413 11.6719 2.47168 11.2533 2.52848 10.8096L3.15641 5.90137C3.47688 3.3978 5.53483 1.50006 8.00016 1.5ZM6.25504 12.5C6.68857 13.1293 7.32689 13.5 8.00016 13.5C8.67344 13.5 9.31174 13.1293 9.74527 12.5H6.25504Z"})})}const us={delivery:"delivery_order",pickup:"pickup_order"};function hs(e){const[n,t=""]=e.split("\0");return{textBefore:n,textAfter:t}}class ps extends Error{constructor(){super(...arguments),this.name="PickupInstallCampaignAssignmentError"}}function ms({className:e,variant:t="delivery"}={}){const{checkout:{negotiator:a},i18n:r,observability:o,shop:l}=yn(),s=xe(),c=T(),u=St(),h=(f=u?.mobileUrl,function(e){if(!e)return{clientHandle:null,variant:null};let n;try{n=new URL(e).searchParams.get("utm_campaign")}catch{return{clientHandle:null,variant:null}}if(!n)return{clientHandle:null,variant:null};const t=cl.exec(n),[,a,i]=t??[];return void 0===a||void 0===i?{clientHandle:null,variant:null}:{clientHandle:a,variant:i}}(f)),p={...hs(r.translate("app_promotions.animated_shop_button.final",{shop:"\0"})),hasShopLogo:!0},m={intro:{icon:n(ds,{}),textBefore:r.translate("app_promotions.animated_shop_button.intro.value_props")},final:p,accessibleLabel:r.translate("app_promotions.animated_shop_button.final",{shop:"Shop"}),staticLabel:r.translate("app_promotions.animated_shop_button.final",{shop:n(cs,{})})},_={intro:p,final:{icon:n(ds,{ringsAfterSwap:!0}),...hs(r.translate("app_promotions.animated_shop_button.get_notified",{shop:"\0"})),hasShopLogo:!0},accessibleLabel:r.translate("app_promotions.animated_shop_button.get_notified",{shop:"Shop"}),staticLabel:r.translate("app_promotions.animated_shop_button.get_notified",{shop:n(cs,{})})},{track:y}=Ti("order_updates"),g=ui();var f;i(()=>{u&&y("shop_button_rendered")},[u,y]);const b="pickup"===t&&h.clientHandle===st&&null!==h.variant;if(i(()=>{b&&o.error(new ps("Pickup order received an install campaign assignment"),{severity:"warning",metadata:{installCampaign:{clientHandle:h.clientHandle,variant:h.variant}}})},[b,h.clientHandle,h.variant,o]),!u)return null;const{mobileUrl:v,orderTrackingMobileUrl:k,qrCodeUrl:w,buyerHasOrderTrackingPush:C,orderTrackingPushCtaVariant:S}=u,x="pickup"!==t&&!0!==C&&"treatment"===S,P={shop:n("span",{className:"ggkpn",children:n(di,{className:"jNjME","aria-label":"Shop"})})};let I,L;if("pickup"===t)I=r.translate("app_promotions.track_pickup_with_shop_logo",P),L={title:r.translate("thank_you.qr_code.pickup_title"),subtitle:r.translate("thank_you.qr_code.pickup_description")};else{I=!0===C?r.translate("app_promotions.order_updates_track_order_logo",P):n(is,x?{..._}:{...m});const e=dl(h);L=e===dt.LegacyCopy||xl(e)?{title:r.translate("thank_you.qr_code.legacy_shipping_title"),subtitle:r.translate("thank_you.qr_code.legacy_shipping_description")}:{title:r.translate("thank_you.qr_code.shipping_title"),subtitle:r.translate("thank_you.qr_code.shipping_description")}}const A=sl(x&&k?k:v,{utm_content:us[t]}),N=sl(function(e){const n=new URL(e);return n.pathname="/qr/u/download.svg",n.toString()}(w),{link_provider:"open.shop.app",utm_content:us[t],qr_secure_deferred:"true",qr_style:"rounded",qr_error_correction_level:"m",qr_branded_center:"true","qr_branded_center_options[padding]":"0.08"}),E=n(Al,{label:I,message:L,mobileLinkToShop:A,deferredDeepLinkUrl:k?sl(k,{utm_content:us[t]}):void 0,desktopLinkToShop:N,styledQrCode:!0,installCampaign:"pickup"===t?void 0:h,onClipboardInteraction:()=>{y("arrive")},onQrCodeInteraction:()=>{y("arrive_show_qr_code")}}
1),R=Boolean(l.loginLinkVisible)&&(l.hasStorefront||Boolean(a.current.fields.buyerIdentity.value?.purchasingCompany)),D=s&&R?c?.orderStatusPageUrl||((O=l.customerAccountProfileUrl)?new URL("orders",O).href:void 0):void 0;var O;return n("div",{className:d("mnuHb",D?void 0:g,e,s&&"LOmaT"),children:D?n(B,{gridTemplateColumns:"@media (inline-size >= medium) 'repeat(2, minmax(0, 1fr))', 'minmax(0, 1fr)'",gap:"base",children:[n("div",{className:g,children:E}),n(M,{className:"ZHLC1",inlineSize:"fill",variant:"secondary",href:D,children:r.translate("thank_you.manage_order_label")})]}):E})}function _s({i18n:e,confirmWithEmail:n,confirmWithPhone:t,isPickupOnly:a,financialPendingReason:i,pendingOrderConfirmationMessage:r}){return i.isBuyerActionRequired||i.isProviderActionRequired?r:n?e.translate("thank_you.fulfillment_card.payment_pending_email"):t?e.translate("thank_you.fulfillment_card.payment_pending_phone"):a?r:null}function ys({i18n:e,confirmWithEmail:n,confirmWithPhone:t,showsShopOrderUpdates:a}){return n?a?e.translate("thank_you.fulfillment_card.ready_for_pickup_email_with_shop"):e.translate("thank_you.thank_you_confirmed_order_with_email_pick_up"):t?a?e.translate("thank_you.fulfillment_card.ready_for_pickup_phone_with_shop"):e.translate("thank_you.thank_you_confirmed_order_with_phone_pick_up"):e.translate("thank_you.thank_you_confirmed_order_with_missing")}function gs(){const e=T(),n=e?.paymentDetails?.financialPendingReason;return{financialPendingReason:n,isBuyerActionRequired:"BUYER_ACTION_REQUIRED"===n,isProviderActionRequired:["NETWORK_ACTION_REQUIRED","PARTNER_ACTION_REQUIRED","SLOW_COMPLETION_CONFIRMATION","SLOW_COMPLETION_PAYMENT"].includes(n??"")}}const fs=({isPickup:e}={isPickup:!1})=>{const{i18n:n}=yn(),t=Fo(),a=_(gs()),i=_(e),r=n.translate("thank_you.thank_you_title_payments_app_pending_buyer_action_required"),o=n.translate("thank_you.thank_you_title_payments_app_pending_default");return c(()=>{const{confirmWithEmail:e,confirmWithPhone:n}=t.value,r=a.value;return{pendingOrderConfirmationTitle:l(r),pendingOrderConfirmationMessage:s({confirmWithEmail:e,confirmWithPhone:n,isPickup:i.value,financialPendingReason:r}),isOrderPendingStatus:Boolean(r.financialPendingReason)}});function l(e){return e.isBuyerActionRequired?r:o}function s({confirmWithEmail:e,confirmWithPhone:t,isPickup:a,financialPendingReason:i}){return i.isBuyerActionRequired?function({confirmWithEmail:e,confirmWithPhone:t,isPickup:a}){return a?function({confirmWithEmail:e,confirmWithPhone:t}){return e&&t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_email_and_phone_pick_up"):e?n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_email_pick_up"):t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_phone_pick_up"):n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_missing_pick_up")}({confirmWithEmail:e,confirmWithPhone:t}):e&&t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_email_and_phone"):e?n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_email"):t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_phone"):n.translate("thank_you.thank_you_payments_app_pending_payment_description_buyer_action_required_with_missing")}({confirmWithEmail:e,confirmWithPhone:t,isPickup:a}):i.isProviderActionRequired?n.translate("thank_you.thank_you_payments_app_pending_payment_description_provider_action_required_default"):function({confirmWithEmail:e,confirmWithPhone:t,isPickup:a}){return a?function({confirmWithEmail:e,confirmWithPhone:t}){return e&&t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_email_and_phone_pick_up"):e?n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_email_pick_up"):t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_phone_pick_up"):n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_missing_pick_up")}({confirmWithEmail:e,confirmWithPhone:t}):e&&t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_email_and_phone"):e?n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_email"):t?n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_phone"):n.translate("thank_you.thank_you_payments_app_pending_payment_description_default_with_missing")}({confirmWithEmail:e,confirmWithPhone:t,isPickup:a})}},bs={id:"766f1a73f6f5729d8de999514e11f6d1a0015979328b3a23a3ffe084b071b5ed",type:"mutation",name:"EmailMarketingOptIn",source:""};function vs({optInState:e}){const{i18n:t}=yn();let a,i;return"loading"===e.value?(a=n(Ze,{size:"small"}),i=t.translate("marketing.accept_marketing_checkbox_label")):"opt_in_pending"===e.value?(a=n(N,{type:"email",size:"small"}),i=t.translate("marketing.pending_accept_marketing_checkbox_label")):(a=n(N,{type:"check",size:"small"}),i=t.translate("marketing.post_accept_marketing_checkbox_label")),n(A,{direction:"inline",gap:"base",alignItems:"center",children:[a,i]})}function ks({colorLayer:e}){const{track:t}=Ii(),{client:a,i18n:o,observability:l,userEvents:s,shop:{id:c,myshopifyDomain:d},source:u,checkout:h,graphql:{coreGraphql:p}}=yn(),m=r("not_opted_in"),_=Sn(),g=h.negotiator.current.fields.buyerIdentity.value?.customerProfile,f=T(),b=a.unstable_getSerialization("sessionToken"),v="simulated"===u.type,k=h.configuration.layout.isOnePage.value;return i(()=>{t("thank_you_page_email_consent_page_view/4.0",{page:"thank_you",customerId:g?.id?Number(_n(g.id)):void 0,orderId:lt(f?.orderIdentity.id),sessionToken:_?.value?.defaultAttributes?.visitToken,uniqueToken:_?.value?.defaultAttributes?.uniqToken})},[g?.id,f,t,_?.value?.defaultAttributes?.uniqToken,_?.value?.defaultAttributes?.visitToken]),n(G,{borderWidth:"base none none none",background:"subdued",padding:"base",colorLayer:e,children:n(y,{when:()=>"not_opted_in"===m.value,fallback:n(vs,{optInState:m}),children:n(ae,{id:"marketing_opt_in",name:"marketing_opt_in",onChange:async function(e){if(v)return void(m.value="opted_in");if(!e)return;const n=Number(_n(c));s.monorailEvent({schemaId:"checkout_email_marketing_optin_ui_interaction/1.0",payload:{checkoutToken:u.checkoutSessionIdentifier||u.sourceId,shopId:Number.isNaN(n)?0:n,shopifyDomain:d,action:"click_email_opt_in",origin:"thank_you_page",checkoutVersion:k?"checkout_one_redesign":"checkout_one"}}),m.value="loading";const{data:t,error:a}=await p.mutate(bs,{variables:{orderId:f.orderIdentity.id,sessionInput
1:{sessionToken:b}}});if(a)return m.value="not_opted_in",void(a instanceof S||l.error(a));const i=t?.subscribeToMarketing.__typename;"MarketingOptInFailure"===i&&"ALREADY_SUBSCRIBED"!==t?.subscribeToMarketing.code?m.value="not_opted_in":"MarketingOptInFailure"===i&&"ALREADY_SUBSCRIBED"===t?.subscribeToMarketing.code?m.value="opted_in":"MarketingOptInSuccess"===i&&(m.value=t?.subscribeToMarketing.pending?"opt_in_pending":"opted_in")},label:o.translate("marketing.accept_marketing_checkbox_label")})})})}function ws({children:e}){return"string"!=typeof e?null:n(t,{children:e.split("\n").filter(Boolean).map(e=>n(F,{children:e},e))})}const Cs=({deliveryInformation:e,paymentInstructions:a})=>{const{i18n:i}=yn(),{confirmWithEmail:r,confirmWithPhone:o}=Fo().value,{isOrderPendingStatus:l,pendingOrderConfirmationMessage:s}=fs().value,c=Ja().value,d=fi(),u=St()?.buyerHasOrderTrackingPush,h=a&&a.length>0;return n(A,{gap:"small-300",children:[h?null:n(F,{children:(l?s:r&&o?c?i.translate("thank_you.thank_you_confirmed_with_email_and_phone_description.multi_store"):i.translate("thank_you.thank_you_confirmed_with_email_and_phone_description.single_store"):r?c?i.translate("thank_you.thank_you_confirmed_with_email_description.multi_store"):d&&!0===u?i.translate("thank_you.thank_you_confirmed_with_shop_updates_description"):i.translate("thank_you.thank_you_confirmed_with_email_description.single_store"):o?c?i.translate("thank_you.thank_you_confirmed_with_phone_description.multi_store"):i.translate("thank_you.thank_you_confirmed_with_phone_description.single_store"):void 0)||i.translate("thank_you.thank_you_confirmed_order_with_missing")}),e?n(F,{children:e?n(t,{children:[n(E,{type:"strong",children:i.translate("thank_you.delivery_information_label")})," ",n(Y,{children:e})]}):null}):null,h?n(A,{gap:"base",children:a.map(e=>n(ws,{children:e},e))}):null]})};function Ss({deliveryInformation:e,paymentInstructions:t,shopPromise:a,showsShopOrderUpdates:i}){const{i18n:r,checkout:o}=yn(),l=Xn(o.negotiator.current.fields.deliveryNext.value),s=et(l),c=l?.some(({methodType:e})=>"PICKUP_POINT"===e)??!1,{confirmWithEmail:d,confirmWithPhone:u}=Fo().value,{isOrderPendingStatus:h,pendingOrderConfirmationMessage:p}=fs({isPickup:c}).value,m=gs(),_=Boolean(t?.length),y=_?null:h?_s({i18n:r,confirmWithEmail:d,confirmWithPhone:u,financialPendingReason:m,pendingOrderConfirmationMessage:p,isPickupOnly:s}):c&&(s||d||u)?ys({i18n:r,confirmWithEmail:d,confirmWithPhone:u,showsShopOrderUpdates:i}):null,g=h?void 0:a;return g||y||e||_?n(A,{gap:"small-300",children:[g?n(xs,{shopPromise:g}):null,y?n(F,{color:"subdued",textAlign:"center",children:y}):null,e?n(F,{color:"subdued",textAlign:"center",children:[n(E,{type:"strong",children:r.translate("thank_you.delivery_information_label")})," ",n(Y,{children:e})]}):null,_?n(A,{gap:"base",children:t?.map(e=>n(ws,{children:e},e))}):null]}):null}function xs({shopPromise:e}){const{i18n:t}=yn(),a=x.toArray(t.translate("thank_you.fulfillment_card.backed_by",{logo:n(Wa,{brandedPromise:e})}));return n(A,{direction:"inline",gap:"small-400",alignItems:"center",justifyContent:"center",children:a.map(e=>"string"==typeof e||"number"==typeof e?n(E,{color:"subdued",children:e},e):e)})}function Ps({shippingAddress:e,deliveryInformation:a,deliveryMethodType:l,paymentInstructions:s,isBuyWithPrime:d,legacyRepresentProductsAsFees:u,merchandiseLines:h,remoteMerchandiseDetails:p,afterHeading:m}){const{shop:_,i18n:g,checkout:f}=yn(),b=jl(),v=_.hasFlagEnabled(gn),k=xe(),{track:w}=Ti("map"),C=na({live:!0}),S=_.hasFlagEnabled(pt)?C?Ba:Oa:C?Da:[],x=Pi().value,{pendingOrderConfirmationTitle:P,isOrderPendingStatus:I}=fs().value,L=ts(),M=Ja().value,N=fi()&&!M,{deliveryNext:E}=f.negotiator.current.fields,{deliveryExpectationLines:R}=Ua(),D=Je(),B=Mn(E.value),O=k&&!M?function(e){const n=(e??[]).filter(({quantity:e,requiresShipping:n})=>e>0&&n).map(e=>e.sellingPlan?.subscriptionDetails),[t]=n;if(t&&!n.some(e=>e?.deliveryInterval!==t.deliveryInterval||e?.deliveryIntervalCount!==t.deliveryIntervalCount))return t}(h):void 0,z=O?D(O.deliveryInterval,O.deliveryIntervalCount):"",F=!k||M||z||d||"SHIPPING"!==l||!B.every(({method:e})=>"SHIPPING"===e.methodType)?void 0:function(e,n){if(0===e.length)return;const t=e.map(e=>n.find(n=>n.deliveryStrategyHandle===e&&n.deliveryExpectationPresentmentTitle?.short)).filter(e=>void 0!==e);if(t.length!==e.length)return;const[a]=t,i=a?.deliveryExpectationPresentmentTitle?.short,r=t.every(e=>e.deliveryExpectationPresentmentTitle?.short===i);if(!i||!r)return;const o=t.every(e=>"shop_promise"===e.brandedPromise?.handle);return{date:i,shopPromise:o?a?.brandedPromise??void 0:void 0}}(B.map(({method:e})=>e.handle),R??[]),H=I?P:M?g.translate("thank_you.confirmed_orders_title"):z?g.translate("thank_you.fulfillment_card.subscription_delivery_frequency",{delivery_frequency:z}):F?F.shopPromise?F.date:g.translate("thank_you.fulfillment_card.estimated_delivery",{date:F.date}):g.translate("thank_you.thank_you_title"),j=Xe(e,{countryFormat:"explicit",hiddenFields:["address1","address2","company","firstName","lastName","phone","postalCode","countryCode"]}),W=k&&_.hasFlagEnabled(mt)&&"SHIPPING"===l,$=T(),V=$?.pickupMap,Y="pickupPoint"===V?.location.kind?V.location:null,K="CARRIER"===V?.marker&&null!=Y,Q=$?.completedRemoteCheckouts?.some(e=>"submitted"===e.status&&(e.remotePurchaseOrder.deliveryLines?.length??0)>
11)??!1,Z=$?.isRedacted??!1,J=c(()=>!Z&&L.value),X=r(new Set),ee=o(()=>({statusCard:"delivery",deliveryMethodType:es(l),layout:Xl(k),coreVisibility:Zl($),receiptKey:Jl($)}),[l,k,$]),{recordNoMap:ne}=Ql(ee),te="VISIBLE"===$?.mapVisibility,ae=o(()=>te?V&&Y?{label:Y.name,position:{lat:V.coordinates.latitude,lng:V.coordinates.longitude}}:e?.coordinates&&j?{label:j,position:{lat:e.coordinates.latitude,lng:e.coordinates.longitude}}:null:null,[e,j,te,Y,V]),ie=o(()=>W?function(e,{legacyRepresentProductsAsFees:n=!1,remoteMerchandiseDetails:t}={}){const a=Lo(e,{legacyRepresentProductsAsFees:n,remoteMerchandiseDetails:t}),i=[];for(const r of a)if(r.requiresShipping&&!r.giftCard&&r.src&&(i.push({key:r.key,src:r.src}),5===i.length))break;return i}(h,{legacyRepresentProductsAsFees:u,remoteMerchandiseDetails:p}):[],[W,u,h,p]),re=!x&&!M&&!Q,oe=W&&re,le=Lo(h,{legacyRepresentProductsAsFees:u,remoteMerchandiseDetails:p}),se=k&&re&&!Z&&!f.isShippingRequired.value&&le.length>0&&le.every(({requiresShipping:e})=>!e),ce=Y?g.translate("thank_you.pick_up_in_store_marker.shipping"):g.translate("thank_you.marker.shipping"),de=o(()=>ae?[{type:"destination",title:ce,headerDisabled:!0,...ae}]:[],[ae,ce]),ue=Boolean(te&&(Y||e?.coordinates));i(()=>{ue||ne()},[ue,ne]);let he=null;if(ae&&!se){const e=K&&V&&Y?n(Ul,{logoUrl:Ra(Y),children:n(ql,{coordinates:V.coordinates,location:Y.name})}):void 0,t=Y?g.translate("thank_you.pickup_map_marker.callout",{location:ae.label}):g.translate("thank_you.shipping_address_map_title",{address:ae.label});he=n(ns,{failedSources:X,title:t,markerTitle:ce,markerLabel:ae.label,fallbackTitle:Y?ce:g.translate("shipping.shipping_address_title"),products:oe?ie:void 0,marker:e,overlayPosition:Y?"center":"aboveMarker",telemetry:ee,options:{mapOptions:{center:ae.position,styles:S}},markers:de,handleClick:()=>w("click"),handleDoubleClick:()=>w("dblclick"),handleDragEnd:()=>w("dragend"),handleZoomChanged:()=>w("zoom_changed")})}const pe=null===he?"none":"base",me=he&&b?n(G,{ref:b,children:he}):he,_e=n(t,k?{children:[n(q,{textAlign:"center",children:H}),n(Ss,{deliveryInformation:a,paymentInstructions:s,shopPromise:F?.shopPromise,showsShopOrderUpdates:N})]}:{children:[n(q,{children:H}),n(Cs,{deliveryInformation:a,paymentInstructions:s})]}),ye=N?n(ms,{variant:"delivery"}):null,ge=n(t,{children:[n(A,{gap:"base",borderWidth:k?void 0:`${pe} none none none`,padding:"base",children:[k?n(A,{gap:"small-300",children:_e}):_e,ye]}),d&&!x&&n(A,{gap:"base",borderWidth:k?void 0:`${pe} none none none`,padding:"base",children:n(li,{})}),n(y,{when:J,children:n(ks,{colorLayer:v?void 0:"control"})})]});return k?n(t,{children:[n(Mo,{map:me,digitalProducts:se?le.flatMap(({key:e,src:n})=>n?[{key:e,src:n}]:[]):void 0}),m,n(U,{accessibilityLabel:H,colorLayer:v?void 0:"control",overflow:"hidden",children:ge})]}):n(U,{accessibilityLabel:H,colorLayer:v?void 0:"control",overflow:"hidden",className:Ce.ThankYouEntranceStatus,children:[me,ge]})}const Is=k(null);function Ls({activeStep:e,children:t}){const a=x.toArray(t).map(e=>P(e)?e.props.id:void 0),i=a.join("|"),r=o(()=>({steps:a.reduce((n,t,i)=>(n[t]={active:e?e===t:0===i,completed:a.indexOf(e)>a.indexOf(t)},n),{})}),[e,i]);return n(Is.Provider,{value:r,children:n("ol",{className:"_1ojciyd1 _1ojciyd0 _1fragemqt _1fragemsm _1fragemp0 _1fragemuf _1fragem11h _1fragemzk",role:"list",children:t})})}var Ts="_4xihkw2";function Ms({children:e,description:a,icon:i,iconTone:r,id:o,label:l,state:s,stateHidden:c=!0}){const{steps:u}=function(){const e=w(Is);if(null===e)throw new _t("<Step />  must be used inside of an <ProgressTracker />");return e}(),h=0===Object.keys(u).indexOf(o),{[o]:{active:p,completed:m}}=u,_=d("_4xihkw1 _4xihkw0 _1fragem64",m&&Ts);return n(t,{children:[!h&&n(Es,{active:p,completed:m}),n("li",{className:_,"aria-current":p,children:[n(As,{active:p,completed:m,type:i,tone:r}),n(Ns,{active:p,completed:m,description:a,label:l,state:s,stateHidden:c}),e]})]})}function As({active:e,tone:t="accent",type:a,completed:i}){const r=d("_4xihkw4",e&&"_4xihkw3",i&&Ts);
1return n("div",{className:r,children:n(N,{type:a,tone:e||i?t:void 0})})}function Ns({active:e,completed:a,description:i,label:r,state:o,stateHidden:l}){const s=d("_4xihkw5",(e||a)&&Ts);return n(t,{children:[n("div",{className:s,children:[l?n(E,{accessibilityVisibility:"exclusive",children:o}):n(F,{children:o}),n(F,{children:n(E,{type:e||a?"strong":"generic",children:r})})]}),(e||a)&&i&&n(F,{type:"small",color:"subdued",children:i})]})}function Es({active:e,completed:t}){const a=d("_4xihkw6",(e||t)&&Ts);return n("li",{className:a,"aria-hidden":!0})}function Rs({activeStep:e="inReview"}){const{i18n:t,shop:a}=yn(),i=a.hasFlagEnabled(gn)?void 0:"control";if(xe())return n(U,{colorLayer:i,children:n(A,{gap:"small-300",padding:"base",children:[n(q,{textAlign:"center",children:t.translate("thank_you.thank_you_title_review")}),n(F,{color:"subdued",textAlign:"center",children:t.translate("thank_you.thank_you_confirmed_order_with_draft")})]})});const r=t.formatDate(new Date,{month:"long",day:"2-digit",timeZone:a.timeZone}),o=[{id:"submitted",date:r,label:t.translate("thank_you.breadcrumbs_submitted"),state:t.translate("thank_you.breadcrumbs_submitted"),icon:"arrow-right"},{id:"inReview",date:r,label:t.translate("thank_you.breadcrumbs_in_review"),state:t.translate("thank_you.breadcrumbs_in_review"),icon:"note"},{id:"confirmed",label:t.translate("thank_you.breadcrumbs_confirmed"),state:t.translate("thank_you.breadcrumbs_confirmed"),icon:"check"}];return n(U,{colorLayer:i,children:[n(A,{gap:"base",padding:"base",children:n(Ls,{activeStep:e,children:o.map(e=>n(Ms,{description:e.date,icon:e.icon,id:e.id,label:e.label,state:e.state},e.id))})}),n(fe,{}),n(A,{gap:"base",padding:"base",children:[n(q,{children:t.translate("thank_you.thank_you_title_review")}),n(F,{children:t.translate("thank_you.thank_you_confirmed_order_with_draft")})]})]})}function Ds({paymentInstructions:e,afterHeading:a}){const{value:l}=ne(),{shop:s,i18n:d,checkout:{negotiator:u}}=yn(),h=jl(),p=s.hasFlagEnabled(gn),m=xe(),_=u.current.fields.deliveryNext,g=yt(_.value,"ONE_TIME_PURCHASE",!0),f=T(),b=f?.pickupMap,v="MERCHANT"===b?.marker,k=("available"===g?.status?g.methods.find(e=>"PICK_UP"===e.methodType&&e.handle===g.selectedDeliveryMethodHandle)?.pickupLocation:void 0)??("available"===g?.status?g.methods.find(e=>"PICK_UP"===e.methodType)?.pickupLocation:void 0),w=("inStore"===b?.location.kind?b.location:void 0)??k,{confirmWithEmail:C,confirmWithPhone:S}=Fo().value,{isOrderPendingStatus:x,pendingOrderConfirmationTitle:P,pendingOrderConfirmationMessage:I}=fs({isPickup:!0}).value,L=gs(),M=na({live:!0}),N=s.hasFlagEnabled(pt),E=N?M?Ba:Oa:M?Da:[],{track:R}=Ti("map"),D=r(new Set),B=o(()=>({statusCard:"pickup",deliveryMethodType:"pick_up",layout:Xl(m),coreVisibility:Zl(f),receiptKey:Jl(f)}),[m,f]),{recordNoMap:O}=Ql(B),z=Ja().value,H=fi()&&!z,j=Xe(w?.address,{hiddenFields:["address1","address2","company","firstName","lastName","phone","postalCode","countryCode"]}),W=function(){if(x)return P;if(m&&z)return d.translate("thank_you.confirmed_orders_title");const e="PickupInStoreLocation"===k?.type?k.instructions?.trim():void 0;return m&&!l&&e?e:d.translate("thank_you.thank_you_title")}(),$=f?.isRedacted??!1,V=ts(),Y=c(()=>!$&&V.value),K=d.translate("thank_you.pick_up_in_store_marker.shipping"),Q=w?.name||(m?w?.address?.address1:j),Z=b?.coordinates??w?.address?.coordinates,J=m?"VISIBLE"===f?.mapVisibility&&(null!=b||"PRECISE"===w?.address?.coordinates?.accuracy):!s.hasFlagEnabled(gt)&&Boolean(Z);i(()=>{J&&Z||O()},[J,Z,O]);let X=null;if(J&&Z){const e=v?n(ql,{coordinates:Z,location:Q??""}):null,t=v?n(Ul,{logoUrl:s.brandSettings?.squareLogo?.url,children:e}):void 0,a=d.translate("thank_you.pickup_map_marker.callout",{location:Q??j});X=n(ns,{failedSources:D,title:a,markerTitle:K,markerLabel:Q,marker:t,overlayPosition:N?"center":"aboveMarker",telemetry:B,options:{mapOptions:{styles:E}},markers:function(){const e=Z;return e?[{type:"destination",title:K,position:{lat:e.latitude,lng:e.longitude},label:Q,headerDisabled:!0}]:[]}(),handleDragEnd:()=>R("dragend")})}const ee=X?n(G,{borderWidth:m?void 0:"none none base none",ref:h,children:X}):null,te=m?x?_s({i18n:d,confirmWithEmail:C,confirmWithPhone:S,financialPendingReason:L,pendingOrderConfirmationMessage:I,isPickupOnly:!l}):l||z&&(C||S)?null:ys({i18n:d,confirmWithEmail:C,confirmWithPhone:S,showsShopOrderUpdates:H}):x?I:l?C&&S?d.translate("thank_you.thank_you_confirmed_with_email_and_phone_description.single_store"):C?d.translate("thank_you.thank_you_confirmed_with_email_description.single_store"):S?d.translate("thank_you.thank_you_confirmed_with_phone_description.single_store"):d.translate("thank_you.thank_you_confirmed_order_with_missing"):C&&S?d.translate("thank_you.thank_you_confirmed_order_with_email_and_phone_pick_up"):C?d.translate("thank_you.thank_you_confirmed_order_with_email_pick_up"):S?d.translate("thank_you.thank_you_confirmed_order_with_phone_pick_up"):d.translate("thank_you.thank_you_confirmed_order_with_missing"),ae=n(t,{children:[n(q,{textAlign:m?"center":void 0,children:W}),te?n(F,{color:m?"subdued":void 0,textAlign:m?"center":void 0,children:te}):null]}),ie=H?n(ms,{variant:l?"delivery":"pickup"}):null,re=n(t,{children:[n(A,{gap:"base",padding:"base",children:[m?n(A,{gap:"small-300",children:ae}):ae,e&&e.length>0&&n(A,{gap:"base",children:[n(fe,{direction:"inline"}),e.map(e=>n(ws,{children:e},e))]}),ie]}),n(y,{when:Y,children:n(ks,{colorLayer:p?void 0:"control"})})]});return m?n(t,{children:[n(Mo,{map:ee}),a,n(U,{accessibilityLabel:W,colorLayer:p?void 0:"control",overflow:"hidden",children:re})]}):n(U,{accessibilityLabel:W,colorLayer:p?void 0:"control",className:Ce.ThankYouEntranceStatus,children:[ee,re]})}function Bs({afterHeading:e}){const a=xe(),{checkout:{negotiator:i}}=yn(),{value:r}=i.current.fields.paymentLines,{value:o}=i.current.fields.shippingAddress,{value:l}=at("ONE_TIME_PURCHASE"),{value:s}=i.current.fields.customAttributes,{value:c}=i.current.fields.legacyRepresentProductsAsFees,{value:d}=i.current.fields.remoteMerchandiseDetails,u=it(l),h=Jn(),{value:p}=ne(),m=Ur()?.some(e=>"failed"===e.status);if(m)return n(t,{children:e});if(h.value)return n(t,{children:[a?n(Mo,{}):null,e,n(Rs,{})]});const _=r?.lines.map(({method:e,specialInstructions:n})=>"paymentOnDelivery"===e.type||"customManualPayment"===e.type||"manualPayment"===e.type?n??e.paymentInstructions:null).filter(
1Boolean),y="LOCAL"===u?.methodType?u.description:void 0;return p||"PICK_UP"===u?.methodType?n(Ds,{paymentInstructions:_,afterHeading:e}):n(Ps,{shippingAddress:o,legacyRepresentProductsAsFees:c,merchandiseLines:i.current.fields.merchandiseLines.value?.lines,remoteMerchandiseDetails:d,paymentInstructions:_,deliveryInformation:y,deliveryMethodType:u?.methodType,isBuyWithPrime:Fl(s??[]),afterHeading:e})}const Os={merchant:{disc:ft.color.global.brand,stroke:ft.color.global.brandText},shopPay:{disc:ti.toRgb(),stroke:ai.Grayscale.White.toRgb()}};function zs({afterProgress:e=!1,appearance:t,centerOnScreen:r=!1,confirmation:o,mode:l,morphOffset:s,onDrawn:c,onRevealed:u,onSettled:h,registerMark:p,status:m}){const _=s??{x:0,y:0},y=function(e){const n=a(null);return i(()=>{const t=n.current;if(!e||!t||"undefined"==typeof IntersectionObserver)return;const a="_4uF4s",i=[document.documentElement,document.body];for(const e of i)e.classList.add(a);const r=new IntersectionObserver(([e])=>{if(!e?.isIntersecting)return;const n=e.boundingClientRect.bottom-e.intersectionRect.bottom;t.style.setProperty("--offscreen-block-end",`${n}px`)},{threshold:Array.from({length:101},(e,n)=>n/100)});return r.observe(t),()=>{r.disconnect();for(const e of i)e.classList.remove(a)}},[e]),n}(r),g="running"===m,f="traveling"===l,b=Os[t];return n("div",{ref:y,className:d("YJl7u",Ce.ThankYouInterstitialOverlay,e&&"ZfTNA",g&&"uLAX9",f&&"_7WsZL"),role:"status","aria-hidden":"waiting-for-progress"===m||void 0,"aria-label":o,children:[n(E,{accessibilityVisibility:"exclusive",children:o}),n("div",{className:"c8ul9","aria-hidden":"true",onAnimationStart:g?u:void 0,onAnimationEnd:g&&f?h:void 0}),n("div",{className:d("u4C5k",g&&"_7aqRc"),ref:p,onAnimationEnd:g&&!f?e=>{e.target===e.currentTarget&&h()}:void 0,style:{"--morph-x":`${_.x}px`,"--morph-y":`${_.y}px`,"--thank-you-interstitial-disc-color":b.disc,"--thank-you-interstitial-stroke-color":b.stroke},"aria-hidden":"true",children:n("div",{className:"ClmAw",children:n("svg",{className:"Qj47z",viewBox:"0 0 56 56",focusable:"false","aria-hidden":"true",onAnimationStart:g&&f?e=>{e.target===e.currentTarget&&c()}:void 0,children:[n("circle",{className:"_5BoFR",cx:28,cy:28,r:26.5,pathLength:"1"}),n("g",{transform:"scale(0.7466666666666667)",children:n("path",{className:"oRqov",d:"M 6 40.1 C 7.1 34.6 11.5 31.9 16.5 33 C 19.2 33.6 21.8 36.5 24.1 38.8 L 34.8 49.6 L 52.2 26.8"})})]})})})]})}function Fs({children:e}){const{i18n:o,checkout:l}=yn(),c=function(){const{checkout:e,client:n,router:t}=yn(),o=e.thankYouEntrance,l=Ie(),c=H(),d=en().value,h=function(){const e=Jn(),{financialPendingReason:n}=gs(),t=Ur()?.some(e=>"failed"===e.status);return!e.value&&!n&&!t}(),p=Ja().value,m=Ke(),_=h&&!p,y=t.currentUrl.value.normalizedPath,g=hi(n.initialRequest.url.pathname).endsWith(y),f=a(l&&_&&!c&&!d&&!g).current,b=o.progress?.phase.value,v="loading"===b||"completing"===b,k=r(f?v?"waiting-for-progress":"waiting-for-hydration":"complete"),w=k.value,C=r("centered"),S=o.isRevealing.value,x=r(null),P=a(null),L=a(null),{lock:T,unlock:M}=nn(),A=m||!_,N=s(()=>{I(()=>{k.value="complete",o.skip()})},[o,k]),E=s(()=>{I(()=>{o.settle(),N()})},[o,N]),R=s(()=>{"running"===k.value&&o.reveal()},[o,k]);u(()=>{o.progress?.complete()},[o]),i(()=>{f?A?E():("waiting-for-hydration"===k.value||"waiting-for-progress"===k.value&&!v)&&(k.value="running"):o.skip()},[o,v,E,f,A,k]),i(()=>{if(!f||"running"!==w)return;const e=window.setTimeout(E,3e3);return()=>window.clearTimeout(e)},[w,E,f]),i(()=>{if(!S)return;const e=window.setTimeout(E,2e3);return()=>{window.clearTimeout(e),E()}},[S,E]),i(()=>{if(f&&"running"===w)return window.scrollTo(0,0),T(),M},[w,T,f,M]);const D=s(()=>{const e=P.current,n=L.current;if(!e||!n)return;const t=e.getBoundingClientRect(),a=n.getBoundingClientRect();x.value={x:t.left+t.width/2-(a.left+a.width/2),y:t.top+t.height/2-(a.top+a.height/2)}},[x]),B=s(e=>{P.current=e,"waiting-for-progress"!==k.value&&"waiting-for-hydration"!==k.value||(C.value=e&&window.matchMedia("(max-width: 749px)").matches?"traveling":"centered"),D()},[D,C,k]),O=s(e=>{L.current=e,D()},[D]);return{isAfterProgress:"complete"===b,isContentHidden:"pending"===o.phase.value&&f,isEntranceRevealing:S,mode:C.value,morphOffset:x.value,onDrawn:D,onEntranceSettled:E,onRevealed:R,onSettled:N,registerMapTarget:B,registerMark:O,shouldAnimate:f,status:k.value}}(),h=(p=T(),p?.shopAppLinksAndResources.shopPayOrder?"shopPay":"merchant");var p;if(!c.shouldAnimate)return n(t,{children:e});const m="complete"===c.status?null:n(zs,{afterProgress:c.isAfterProgress,appearance:h,centerOnScreen:l.configuration.isUniversalCheckoutFinalizer,confirmation:`${o.translate("thank_you.thank_you_title")}`,mode:c.mode,morphOffset:c.morphOffset,onDrawn:c.onDrawn,onRevealed:c.onRevealed,onSettled:c.onSettled,registerMark:c.registerMark,status:c.status});return n(Hl.Provider,{value:c.registerMapTarget,children:["running"===c.status?n(tn,{children:n("div",{children:m})}):m,n(G,{className:d("DFff4",c.isContentHidden&&"_3UsL1",c.isEntranceRevealing&&
1Ce.ThankYouEntrance),inert:c.isContentHidden,children:e}),c.isEntranceRevealing?n("span",{className:Ce.ThankYouEntranceBeat,"aria-hidden":"true",onAnimationEnd:c.onEntranceSettled}):null]})}const qs=Fe("ThankYouOrderSummaryContent");function Us({className:e}){const{checkout:t,i18n:a,source:i}=yn(),{value:r}=t.negotiator.current.fields.merchandiseLines,{open:o,setOpen:l}=an(),s=Le(void 0,qs),c=`${s}-heading`,d=a.translate("order_summary.title"),u=ve("Checkout::ThankYou::Dynamic::Render","ORDER_SUMMARY1"),h=ve("Checkout::ThankYou::CartLineDetails::RenderAfter"),p=ve("Checkout::ThankYou::CartLines::RenderAfter"),m=ve("Checkout::ThankYou::Dynamic::Render","ORDER_SUMMARY2"),_=ve("Checkout::ThankYou::Dynamic::Render","ORDER_SUMMARY3"),y=mi([...u,...h,...p,...m,..._]);L(()=>{l(y.value)});const g=t.proposal.facts.merchandiseLines??[],f=bt(i)?g:r?.lines||[],{totalLineQuantities:b=0,totalLineQuantitiesFact:v=0}=$e(),k=a.translate("order_summary.number_items",{count:bt(i)?v:b}),w=o.value,C=t.configuration.visibility.showAside;return n(G,{className:e,display:C?"@media (inline-size >= medium) none, auto":"auto",children:n(U,{accessibilityLabelledBy:c,colorLayer:"control",padding:"base",children:[n(q,{id:c,level:2,visibility:"hidden",children:d}),n(rn,{section:"top_summary",children:n(on,{section:"top_summary",children:n(pi,{children:[n(ln,{"aria-controls":s,"aria-expanded":w,"data-event-name":w?"order_summary_hide":"order_summary_show",inlineSize:"100%",onClick:()=>{l(!o.peek())},children:n(B,{alignItems:"center",gap:"small-200",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content) minmax(auto, max-content)",children:[n(E,w?{size:"large",type:"strong",children:d}:{children:[n("span",{className:Pn({screenReaders:"only"}),children:d})," ",k]}),!w&&n(A,{direction:"inline",alignItems:"center",gap:"small-200",children:[n(sn,{variant:"fan-legacy",size:"small",merchandise:f,useImageAltTexts:!1,sortByPrice:!0}),n(cn,{})]}),n(N,{type:w?"chevron-up":"chevron-down",size:"small-200"})]})}),w?n("div",{id:s,children:n(G,{paddingBlockStart:"large-200",children:n(dn,{skipWrappingSection:!0,hideAccessibilityTitle:!0})})},"thank-you-order-summary-open"):n("div",{id:s},"thank-you-order-summary-closed")]})})})]})})}const Hs={};let js=null;const Ws={"aria-label":"Shop",style:{fill:ti.toRgb(),width:44,height:17}},$s=({loading:e,onSignInCompleted:t,fetchAttempts:a=1})=>{const{i18n:r,shop:o,checkout:{negotiator:l}}=yn(),s=Pi().value,c=r.translate("thank_you.verify_shop_account_title"),{track:d}=Ti("pay_escrow"),{value:u}=l.current.fields.contactInfo,h=!s,p=o.hasFlagEnabled(gn);return i(()=>{d(e&&a>=1?"verify_button_blurred_rendered":"verify_button_rendered")},[e,d,a]),n(Nt,{target:h?"card":"plain",children:n(U,{accessibilityLabel:c,colorLayer:h&&!p?"control":void 0,children:n(A,e?{padding:h?void 0:"base none",gap:"base",children:[n(ee,{blockSize:"22px",inlineSize:"120px"}),n(ee,{blockSize:"16px",inlineSize:"100%"}),n(ee,{blockSize:"16px",inlineSize:"100%"})]}:{padding:h?void 0:"base none",gap:"large-200",children:[n(B,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",justifyContent:"end",justifyItems:"end",alignItems:"center",alignContent:"center",children:[n(q,{level:2,children:c}),n(di,{...Ws})]}),n(F,{color:"subdued",children:r.translate("thank_you.verify_shop_account_message")}),n(M,{id:"verify-account-button",variant:"secondary",onClick:()=>{d("verify_button_clicked"),((e,n)=>{const t=Sa({...e,analyticsTraceId:(js||(js=_i()),js),uxMode:"windoid"});if(!t)return void console.warn?.("Failed to build authorize URL due to incorrect parameters",e);let a=null;a=((e,n,t="SignInWithShop")=>{const a=(()=>{const e=void 0===ga.screenLeft?ga.screenX:ga.screenLeft,n=void 0===ga.screenTop?ga.screenY:ga.screenTop;let t,a;t=ga.innerWidth?ga.innerWidth:pa.documentElement.clientWidth?pa.documentElement.clientWidth:screen.width,a=ga.innerHeight?ga.innerHeight:pa.documentElement.clientHeight?pa.documentElement.clientHeight:screen.height;const i=Math.max(1,t/ga.screen.availWidth);return{height:554/i,left:(t-365)/2/i+e,top:(a-554)/2/i+n,width:365/i}
1})();Hs[t]?.();const i=ga.open(e,"SignInWithShop",`popup,width=${a.width},height=${a.height},top=${a.top},left=${a.left}`),r=e=>{va({allowedOrigins:[ka,wa,Ca,ga.location.origin],event:e,source:i})&&n(e)},o=()=>(e=>{e?.close()})(i);n(new MessageEvent("message",{data:{type:"windoidopened"}}));const l=setInterval(()=>{i?.closed&&(n(new MessageEvent("message",{data:{type:"windoidclosed"}})),clearInterval(l))},200);return["beforeunload","unload","pagehide"].forEach(e=>{ga.addEventListener(e,o,{once:!0})}),ga.addEventListener("message",r),Hs[t]=()=>{["beforeunload","unload","pagehide"].forEach(e=>{ga.removeEventListener(e,o)}),ga.removeEventListener("message",r),clearInterval(l)},i})(t,e=>{switch(e.data.type){case"completed":n.onComplete?.(e.data),a?.close();break;case"error":n.onError?.(e.data),a?.close();break;case"windoidopened":n.onWindoidOpen?.()}})})({loginHint:u?.email??"",codeChallenge:"test-code-challenge",codeChallengeMethod:"S256",flow:"thank_you_page_escrow",prompt:"login",proxy:!0,responseType:"code"},{onComplete:t})},children:r.translate("thank_you.verify_shop_account_cta")})]})})})};function Vs(e){return e instanceof HTMLAnchorElement&&e.hasAttribute("href")}const Ys={id:"ebcee8be9e6c7c28fbd55d8183745df83661612f69510c509fb5bd01a8b778e2",type:"query",name:"PublisherSettings",source:""},Ks=re(({graphql:{coreGraphql:e}},{skip:n})=>{const t=e.query(Ys,{skip:()=>n.value});return{adsPublisherSettingsTypEnabled:p(()=>t.data.value?.shop?.adsPublisherSettingsTypEnabled??!1),draftAdsPublisherSettingsTypEnabled:p(()=>t.data.value?.shop?.draftAdsPublisherSettingsTypEnabled??!1),error:t.error,loading:t.loading}}),Gs=["CA","US"],Qs=["en","de","fr","es"];function Zs(e){return Qs.some(n=>e===n||e.startsWith(`${n}-`))}const Js=/Shop App\/|FBAN|FBAV|FB_IAB|Instagram|musical_ly|Bytedance|TikTok|Snapchat|Line\/|MicroMessenger|Pinterest|Twitter\/|LinkedInApp|GSA\/|;\s?wv/,Xs=/Shop App\/[^/]+\/(iOS|Android)\//;function ec(e){return Xs.exec(e)?.[1]??In(e)}function nc(){const{i18n:r,url:l,shop:u,source:h,checkout:p,embed:m,router:g}=yn(),{contactEmail:f,hasStorefront:b,externalDomain:v,previewReturnUrl:k,partner
1StorefrontUrl:w}=u,{handleSetIsVerifiedShopAccount:C,status:S,isVerifiedShopAccount:x,fetchAttempts:P}=function(){const{i18n:n}=yn(),{track:t}=Ti("pay_escrow"),{isVerifiedShopAccount:a,setIsVerifiedShopAccount:r,loading:o,status:l,fetchAttempts:c}=function(){const{client:n}=yn(),t=n.unstable_getSerialization("sessionToken"),a=T()?.id,i=kr(),[r,o]=e(!i),{attempts:l,loading:s,pendingPayEscrow:c}=Tn(vr,{receiptId:_(a),retries:5,sessionToken:_(t),skip:_(!i||!a||!t)}),d={status:"verified_user",isVerifiedShopAccount:r,setIsVerifiedShopAccount:o,loading:s.value,fetchAttempts:l.peek()};return i?s.value?{...d,status:"fetching_status"}:{...d,status:c.value?"split_user":"verified_user"}:d}();i(()=>{a||"verified_user"!==l||o||(t("verify_button_removed"),r(!0))},[a,l,o,t,r]);const d=s(e=>{const{email:a}=e;a&&(t("verify_action_completed"),wr({email:a,text:n.translate("thank_you.verify_shop_account_confirmation")})),r(!0)},[t,r,n]);return{status:l,isVerifiedShopAccount:a,loading:o,handleSetIsVerifiedShopAccount:d,fetchAttempts:c}}(),I=p.negotiator.current.fields.buyerIdentity.value?.purchasingCompany,L=hn().value,{track:N}=Ti("follow_link"),E="simulated"===h.type,R=Boolean(m?.isFlagshipPartner),D=T(),B=D?.paymentDetails?.buyerActionInfo,O=wt(),z=function(){const{checkout:{negotiator:e}}=yn(),n=e.current.fields.paymentLines,t=St();return c(()=>!!n.value&&n.value.lines.some(({method:e})=>"wallet"===e.type&&"SHOPIFY_INSTALLMENTS"===e.name)&&Boolean(t?.installmentsHighlightEligible))}(),q=function(){const{checkout:{negotiator:e}}=yn(),{buyerIdentity:n,contactInfo:t}=e.current.fields,a=fn(),i=j(),r=T(),o=r?.isRedacted??!1;return c(()=>!o&&i.value&&!t?.value?.email&&!n?.value?.purchasingCompany&&!a.value)}(),U=Pi(),$=ne(),{currentDetour:V}=W().value,Q=pn().value,Z=xe(),J=Z&&Q&&mn({embedder:m?.embedder,isThankYouDetour:"thankYou"===V?.type,normalizedPath:g.currentUrl.value.normalizedPath}),{main:{section:X}}=Ye(),ee=function(){const{i18n:e,checkout:{negotiator:n}}=yn(),{billingAddress:t,shippingAddress:a}=n.current.fields,{geolocation:i}=un(),r=_(H()),o=Gs.includes(i.country.code),l=c(()=>(a.value??t.value)?.countryCode??""),s=c(()=>Gs.includes(l.value)&&o),d=c(()=>!(r.value||Zs(e.locale)&&s.value)),{adsPublisherSettingsTypEnabled:u,draftAdsPublisherSettingsTypEnabled:h,loading:p}=Tn(Ks,{skip:d});return c(()=>d.value&&!r.value||p.value?{shouldRender:!1,preview:!1}:function({inEditor:e,adsPublisherSettingsTypEnabled:n,draftAdsPublisherSettingsTypEnabled:t,isAllowedLocale:a,isAllowedCountry:i}){return e?{preview:!0,shouldRender:t}:{preview:!1,shouldRender:n&&a&&i}}({adsPublisherSettingsTypEnabled:u.value,draftAdsPublisherSettingsTypEnabled:h.value,isAllowedLocale:Zs(e.locale),isAllowedCountry:s.value,inEditor:r.value}))}(),te=p.configuration.layout.isOnePage.value,ae=p.configuration.isUniversalCheckoutFinalizer,ie=u.hasFlagEnabled(gn),re=!ie&&Ct(X);Dt("thank-you");const{track:oe}=function({showVerifyShopAccountButton:e}){const n=bi(),t=St(),a=Sn(),{track:i}=Ii(),r=Li();return{track:s(()=>{if(!n||!t)return;const{buyerHasShopApp:o,buyerHasShopPay:l,shopPayOrder:s,orderUpdateOptions:c}=t,d=c.filter(e=>"arrive"!==e).join(",");i("order_status_page_view/4.2",{page:"thank_you",orderId:n,isShopPayOrder:s,userHasShop:o,userHasPay:l,shippingUpdateOptions:d,experimentFlags:r,pageviewToken:a.value.defaultAttributes?.microSessionId??"",sessionToken:a.value.defaultAttributes?.visitToken??"",showVerifyShopAccountButton:e},{omit:["shopifyDomain","checkoutToken"]})},[r,n,t,e,i,a])}}({showVerifyShopAccountButton:"split_user"===S});Bt({stage:void 0===D?Ot.Usable:Ot.Complete,id:"ThankYou"}),zt("ThankYou"),i(()=>{oe()},[oe]);const le=ve("Checkout::ThankYou::Dynamic::Render","ORDER_STATUS1"),se=ve("Checkout::ThankYou::Dynamic::Render","ORDER_STATUS2"),ce=ve("Checkout::ThankYou::Dynamic::Render","ORDER_STATUS3"),{header:{logo:de}}=Ye(),ue=o(()=>!b&&v?`https://${v}`:E?l.storefront():k||(de?.link?de.link:w||(h.headerLogoUrl?h.headerLogoUrl:b&&l.storefront()?l.storefront():void 0)),[E,de?.link,h.headerLogoUrl,b,l,v,k,w]);!function(e,n=!0){const{router:t}=yn(),a=H();i(()=>
1{if(n&&e&&!a){window.history&&(window.history.replaceState(null,document.title,window.location.href),window.history.pushState(null,document.title,window.location.href));const n=()=>{document.hidden||(window.location.href=e)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}}},[n,e,t,a])}(ue,b&&!L&&!ae),function(){const{checkout:e}=yn(),n=e.configuration.isUniversalCheckoutFinalizer;i(()=>{if(!n)return;const e=e=>{e.composedPath().some(Vs)&&e.preventDefault()};return document.addEventListener("click",e,!0),document.addEventListener("auxclick",e,!0),()=>{document.removeEventListener("click",e,!0),document.removeEventListener("auxclick",e,!0)}},[n])}(),function(e,n=!1){const{observability:t,checkout:{negotiator:r}}=yn(),l=vt(e),c=vt(n),d=a(0),u=a(),h=a(!1),p=a(0),m=a(null);0===d.current&&(d.current=Date.now());const{contactInfo:_,merchandiseLines:y}=r.current.fields;void 0===u.current&&(u.current=Boolean(_.peek()?.email||_.peek()?.phone||y.peek()?.lines?.length));const g=o(()=>{const e="undefined"==typeof navigator?"":navigator.userAgent;return{is_in_app_webview:(n=e,Js.test(n)),browser_family:kt(e).name,os_family:ec(e)};var n},[]),f=s(()=>{null!=m.current||"visible"!==document.visibilityState||c.current||null==l.current||(m.current=Date.now())},[l,c]),b=s(()=>{null!=m.current&&(p.current+=Date.now()-m.current,m.current=null)},[]),v=s(()=>p.current+(null==m.current?0:Date.now()-m.current),[]);i(()=>{f();const e=()=>{"visible"===document.visibilityState?f():b(),t.log("typ_visibility_changed","Thank You Page visibility changed",{...g,receipt_masked:c.current,visibility_state:document.visibilityState,receipt_loaded:null!=l.current,ms_since_mount:Date.now()-d.current,visible_ms_with_receipt:v()},{exportImmediately:!0})},n=e=>{b();const n=null!=l.current,a=c.current,i=v();t.log("typ_pagehide","Thank You Page hidden",{...g,receipt_masked:a,persisted:e.persisted,receipt_loaded:n,ms_since_mount:Date.now()-d.current,visible_ms_with_receipt:i},{exportImmediately:!0}),t.histogram({name:"thank_you_page_visible_ms_with_receipt",value:i,attributes:{receiptLoaded:n,receiptMasked:a},exportImmediately:!0})};return document.addEventListener("visibilitychange",e),window.addEventListener("pagehide",n),()=>{b(),document.removeEventListener("visibilitychange",e),window.removeEventListener("pagehide",n)}},[t,f,b,v,g,l,c]),i(()=>{if(h.current||null==e)return;h.current=!0,f();const n=Date.now()-d.current,a=u.current??!1;t.log("typ_receipt_rendered","Thank You Page rendered with order receipt",{...g,receipt_masked:c.current,order_details_at_mount:a,ms_to_receipt:n,visibility_state:document.visibilityState},{exportImmediately:!0,requiresKeepalive:!0}),t.histogram({name:"thank_you_page_ms_to_receipt",value:n,attributes:{orderDetailsAtMount:a,isInAppWebview:g.is_in_app_webview},exportImmediately:!0,requiresKeepalive:!0})},[t,e,c,f,g])}(D,R),function(e){const{observability:n,checkout:t}=yn(),r=a(!1);i(()=>{r.current||(r.current=!0,n.counter({name:"thank_you_page_rendered",value:1,attributes:{shopPay:"shopPay"===t.identity.current.value,checkoutDesign:t.configuration.layout.isOnePage.value?"ONE_STEP":"THREE_STEP",typType:"c1",visibility_state:document.visibilityState,receiptLoaded:null!=e}}))},[t,t.identity,n,e])}(D);const he=n(t,{children:[n(ke,{customizations:le}),B&&n(lr,{})]}),pe=n(t,{children:[n(Rt,{children:r.translate("thank_you.title")}),n(A,{gap:"@media (inline-size >= medium) large-500, large-300",children:[!Z&&n(Mo,{}),n(tc,{resetSectionStyle:ie,children:[n(Nt,{target:"card",children:n(It,{grouped:!0,children:[!Z&&he,n(Nt,{target:"edgeToEdgeCard",children:n(Bs,{afterHeading:Z?n(Nt,{target:"card",children:he}):void 0})}),J&&n(Us,{className:"CvWdC"}),n(Qo,{}),n(y,{when:$,children:n(Bl,{})}),!ae&&ee.value.shouldRender&&n(Nt,{target:"edgeToEdgeCard",children:n(ll,{preview:ee.value.preview})}),n(y,{when:q,children:n(xi,{})}),!ae&&n(y,{when:z,children:n(Rl,{})}),n(y,{when:O,children:n(bo,{})}),B&&n(Ai,{}),n("div",{className:"CNQuA",children:n(ke,{customizations:se})}),n(y,{when:()=>U.value&&!$.value,children:n(Ol,{})}),x||ae?null:n($s,{onSignInCompleted:C,loading:"fetching_status"===S,fetchAttempts:P}),n(uo,{}),n(ke,{customizations:ce})]})}),n(Lt,{children:[!I&&!L&&p.configuration.allowRedirectToStorefront&&n(Tt,{children:n(M,{variant:"primary",size:"large",inlineSize:"fill",href:ue,onClick:E?void 0:()=>N("continue_shopping"),children:r.translate("thank_you.return_to_store_link_label")})}),!ae&&n(Mt,{children:n(F,{textAlign:"center",children:n(Y,{children:r.translate("thank_you.contact_us_html",{contact_us:n(K,{href:E?void 0:`mailto:${f}`,onClick:E?void 0:()=>N("contact_us"),children:r.translate("thank_you.contact_us")})})})})})]})]})]})]}),me=te?n(G,{className:d("_4Qmfj",re&&"PXaZz"),padding:"@media (inline-size >= extraSmall) small-300 none, (inline-size >= medium) none, "+(re?"small-300 none":"none"),children:pe}):pe;return n(Fs,{children:me})}function tc({children:e,resetSectionStyle:t}){const a=n(At,{children:e});return t?n(qe,{children:a}):a}export{nc 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.