const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["7aefefff.DqGJvO_Y.js","630ba094.L_X-5TXi.js","6ec9a0fa.rdcQt2v8.js","f025431a.BlsbPO0-.js","4509beb0.BguNH--m.js","app.BAntcNCf.js","assets/app.CGRs8DQS.css","assets/deferred-boot.Drpcgh6C.css","928dbd30.BIHpBIaB.js","77821758.CIHBOvKY.js","assets/6e3faf45e1x0e0212c9.ct4xfivv.css","82d59f8f.CMkmnfJF.js","a8202753.DJdQDh63.js","assets/6e3faf45e1.Du9dByaI.css","83f74304.Bpuuq40R.js","0e3247a0.Csj0q_SF.js","1dbf806c.BIm0vljQ.js","4618373b.CjXafxDy.js","486c3fda.B832TPZj.js","assets/a50c8864f4.DiwHZivn.css","a56386a6.BSB-hdod.js","assets/966e3f4d79.gzvCNwz_.css","77d9e668.B6Nt2tia.js","faece749.BI3CiyQ-.js","assets/69c8bed031.BEvzDDvy.css","e1177f6f.BdwRWO6B.js","e59ed41d.DGtOZi_Z.js","674595ba.CBCkPO6g.js","173d1fdf.ANJvZbGg.js","0d85278a.CTy9dP2P.js","assets/d4951797f3.UDCqXpbq.css","16138b9e.CcOfuQrQ.js","assets/df684aa9a8.CIs_ZowJ.css","b01c110b.h_AlXdR4.js","2c7267bc.DG2jhNnF.js","c7b92b97.keF148le.js","19286c78.BbePfvbV.js","a45fed45.Dr0zbZ6C.js","c328865d.BCB1O5to.js","f1384cc2.BX1JbjgR.js","cb6adac5.Bl30j75Z.js","assets/90ea855f49.uZEuHncj.css","f1754c88.Brd5q1On.js","5d731017.BIuS-T4U.js","f00fed33.B3oCNX4A.js","4205169c.D52g_3ca.js","1befea5c.DNUfNYYr.js","assets/e8404cbaefx27591707.B68J3GgF.css","9a493f3d.BU4_4NVs.js","402b40d8.CQI88cKn.js","542b75cf.C-_S3LI1.js","74e5a557.CRSHWf3c.js","assets/7aa3c6599b.C5b9n-0_.css","f4d0afee.CBQgxqHw.js","0b704646.CbhE_p2Q.js","a7ef2c81.CBBwqFGx.js","assets/5a34f22f1a.D7MQTDGO.css","e72406f8.DClzWn5a.js","b71b03d1.DywjAYcQ.js","assets/04c08e5c0e.CuRoM9zv.css","3839d836.ZUu6Htkj.js","a012ee00.DGMTQ2uR.js","assets/500596e378xe1c30c9c.CyQZvZOO.css","bdb60128.SdcL5BFE.js","0be192b6.rG-iHLkS.js","a0df1226.DHvu_Rh0.js","c0466e46.CWfEHHSq.js","5d5cabdf.3d9fziXo.js","8efef14b.DyOdR0xl.js","c1adaf81.Cx57sSL5.js","21162507.ZBi71-Xy.js","139f607b.DLDe3-j_.js","5f1fce8b.e4QsuNYD.js","bace9a08.CgQzfzYE.js","8e2be3f2.Bh1x-mv_.js","2d034bf2.By3DdEAJ.js","972590c9.CpJmBxDc.js","bc751930.Dh3XXtum.js","c380a132.OvVw1Mw3.js","94493b3a.vK857dUR.js","assets/5caf6ce603.87JMHPUK.css","99cd9b25.CvuiVsTL.js","842452fd.C9q1ncxB.js","a70a5b74.D12_E3V6.js","2692118b.BQ5RAfJh.js","assets/04e578408ax6d8a6990.eanpcn-r.css","c4303b96.BMKrSP28.js","7ee3a05c.CyndcFun.js","assets/04e578408ax11e90a44.CbGDlw5K.css","0d8691fc.CcC1Ez3p.js","b0923a20.Dd0Hbsmk.js","assets/d34ebf45edx11e90a44.btyKOfco.css","7e9c6d7c.C77BdEi9.js","assets/bde15ff106x11e90a44.ak5YUtDE.css","ea392d18.D7Zb8HR-.js","b2ef26e8.DM1tmxzK.js","0f5b1987.BrdnjeT6.js","9e5d8eb8.LM7m9FaB.js","17f6d6d8.CEv0kVLp.js","assets/7188aae948xccd7bc85.CW2HhXMu.css","assets/256cc32287.B1YSPUDc.css","99bfe9cf.CW3QHIvp.js","dfb65aab.DQZiXk4b.js","assets/d455ee2f96x670d76d4.BbxB_6wt.css","3c46c6f5.CYS3rjSc.js","assets/d455ee2f96x03fe6ed3.CVKcAbIN.css","e29daa9a.GYMR20KQ.js","b2371320.Bz-Xtw3M.js","a735741f.TmL7D-O5.js","assets/d455ee2f96xd17a0c7b.BULdn7yC.css","assets/d455ee2f96x11e90a44.DqwdjT1Z.css","5a1effbb.kKDKeey4.js","67e8c664.ByAbJtL3.js","70565d02.Xm4DhHHO.js","045c921f.CIVgwHWR.js","assets/343ea67e0bx11e90a44.s-Kd_X2E.css","4bb32466.BUEK88nz.js","ed37d3c3.BSYzaRvO.js","30df5a02.DqQMKMCs.js","e32a8416._vyIvrX9.js","eb0f242a.DWYM7CpL.js","109c16d9.BY7dYu7s.js","assets/401ac968b4x11e90a44.JBO5WNhc.css","assets/81ca749d51x11e90a44.DrWvAMMF.css","676eb8e9.BJRgZq8A.js","05f561d4.SbQnI_7k.js","69f8f26d.CYRBSZ7i.js","121bd940.CVLb0LrK.js","assets/81ca749d51.DRJckcGa.css"])))=>i.map(i=>d[i]); import{n as e}from"./f025431a.BlsbPO0-.js";import{Ft as a,It as n,Jt as t,Pt as i,Wt as l,Xt as r,bt as o,ct as s,ft as u,jt as d,nn as c,ot as v,pt as h,yt as p}from"./630ba094.L_X-5TXi.js";import{f as m}from"./app.BAntcNCf.js";import{$b as g,Ad as y,Bp as f,Cn as w,Dp as b,E as S,EE as C,Gg as k,Hv as D,Kc as V,Kg as P,Lv as _,O_ as E,Op as R,Qp as I,SC as M,Sp as j,T as A,Tw as x,UA as B,Uf as O,Uv as z,V as F,XD as T,Xd as N,Xg as G,Yc as L,Yf as U,_ as q,_p as Y,al as H,dk as K,ec as W,iA as X,il as J,ip as Q,jO as $,kp as Z,l_ as ee,lv as ae,m as ne,om as te,pl as ie,rl as le,rp as re,ss as oe,th as se,tj as ue,uy as de,vt as ce,w as ve,xD as he,xO as pe,xy as me,zC as ge}from"./6ec9a0fa.rdcQt2v8.js";import{o as ye}from"./0f5b1987.BrdnjeT6.js";import{r as fe}from"./2c7267bc.DG2jhNnF.js";import{t as we}from"./b71b03d1.DywjAYcQ.js";import{d as be,l as Se}from"./928dbd30.BIHpBIaB.js";import{i as Ce}from"./77d9e668.B6Nt2tia.js";import{t as ke}from"./dfb65aab.DQZiXk4b.js";import{t as De}from"./2f5db8a5.Cc2kNiF_.js";import{t as Ve}from"./c0466e46.CWfEHHSq.js";import{t as Pe}from"./8d7e1337.D1SAQfdV.js";import{i as _e,r as Ee}from"./ee4d5c67.YGTDljOG.js";import{s as Re}from"./5bf177e7.B_wRNeOH.js";import{K as Ie,b as Me,i as je,l as Ae,m as xe,n as Be,p as Oe,r as ze,s as Fe,t as Te,u as Ne,x as Ge,y as Le}from"./6b0dea54.DGBaaT4P.js";import{n as Ue,t as qe}from"./83f74304.Bpuuq40R.js";import{n as Ye}from"./0e3247a0.Csj0q_SF.js";import{a as He,n as Ke,o as We,r as Xe,s as Je}from"./674595ba.CBCkPO6g.js";import{E as Qe,O as $e,T as Ze,_ as ea,a as aa,b as na,c as ta,d as ia,f as la,g as ra,h as oa,i as sa,l as ua,m as da,n as ca,o as va,p as ha,r as pa,s as ma,t as ga,u as ya,v as fa,w as wa}from"./55432860.DYRo1Lwt.js";import{n as ba}from"./7edfee1d.BSxTCqWo.js";import{r as Sa}from"./6a8181a5.jkrKx0VI.js";import{t as Ca}from"./0d85278a.CTy9dP2P.js";import{i as ka,n as Da,r as Va}from"./b01c110b.h_AlXdR4.js";import{t as Pa}from"./f00fed33.B3oCNX4A.js";import{I as _a,n as Ea,s as Ra,t as Ia}from"./4205169c.D52g_3ca.js";import{a as Ma,i as ja,l as Aa,n as xa,r as Ba,s as Oa}from"./74e5a557.CRSHWf3c.js";import{t as za}from"./a222330e.Ch4B5FuS.js";import{t as Fa}from"./f0b3b291.CkAZTD3Z.js";import{n as Ta,t as Na}from"./a012ee00.DGMTQ2uR.js";import{n as Ga,t as La}from"./72fde58e.DeV72Q9K.js";import{t as Ua}from"./71b36506.Dv-VdQCy.js";function qa({singleDeliveryGroup:e,renderExtensionSlot:a}){const{i18n:n,router:t,checkout:{negotiator:l}}=pe(),{deliveryNext:r}=l.current.fields,o=Re(),{hasMultipleDeliveryGroups:s,onlyDeliveryGroupType:u}=e,{customizationsBefore:d,customizationsAfter:c}=Ee({hasMultipleDeliveryGroups:s,targeted:!1}).value,v=i(()=>g(r.value,!0)||o.value.showShipmentBreakdown).value,m=v?"small-400":"base",y=e=>p(O,{padding:v?"small-400 none":void 0,children:e}),w={groupType:u&&Pe(u),includeDeliverySelectionGroups:!1},b="shippingMethod",S=i(()=>Ra(t,b));return p(k,{gap:m,children:[p(f,{id:b,level:2,autoFocus:S.value,children:n.translate("shipping.shipping_method_title")}),p(ue,{children:[p(h,{when:()=>o.value.showShipmentBreakdown,children:p(we,{children:[p(za,{}),p(Y,{blockSize:"small-200"})]})}),Pa("shipping.shipping_method_notice",n)?p(U,{children:n.translate("shipping.shipping_method_notice")}):null,p(Z,{customizations:d,options:w,render:y}),a?.("purchase.checkout.shipping-option-list.render-before",{options:w,render:y,targeted:!1,hasMultipleDeliveryGroups:s}),p(we,{children:[p(wa,{renderExtensionSlot:a}),p(ba.Preload,{})]}),p(Z,{customizations:c,options:w,render:y}),a?.("purchase.checkout.shipping-option-list.render-after",{options:w,render:y,targeted:!1,hasMultipleDeliveryGroups:s})]})]})}function Ya(){const{checkout:e,i18n:a}=pe(),n=e.addressManager.shipping.value,t=ke("shipping"),{shouldGateCrossBorder:i,crossBorderGate:l}=De(),o=n.addresses.value.find(({id:e})=>e!==n.selectedAddress.value?.id),s=r(()=>{if(!o)return;const e=()=>t.selectAddress(o.id,{source:"select-saved-address-link"}),a=o.address.countryCode;a&&i(a)?l(e):e()},[t,o,i,l]);return o?p($,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",justifyContent:"start",justifyItems:"start",children:p(P,{id:"save_shipping_information",textDecoration:"none",onClick:s,children:a.translate("customer_account.saved_address_option_link")})}):null}function Ha(e){ra();const a=u(I()),n=i(()=>a.value?.options.value.some(e=>"PICKUP_POINT"===e.id)??!1),t=Ie();return p(k,{gap:"large-300",children:[p(h,{when:n,children:p(Ae.Prefetch,{})}),p(Ne,{}),p(Me,{name:"delivery-methods",children:p(Ka,{...e})}),p(h,{when:t,children:p(Oe,{})})]})}function Ka({shippingAddress:e,storePickup:a,pickupPoint:n,renderShippingMethods:t}){const l=S(),o=_e().value,{i18n:s,checkout:{wallets:u,identity:d,negotiator:v}}=pe(),m=y(),{optionalDuties:g}=v.current.fields,{shippingAddress:w}=v.parts,b=ee("Checkout::DeliveryAddress::RenderBefore"),C=ee("purchase.checkout.delivery-address.render-after"),D=_(),V=te(),P=r(({shipping:e})=>{u.activeSession.value||v.negotiate({withResultHandling:!0,fieldsToResolve:["deliveryNext"],silenceViolations:["non-delivery-address",...de],runListenersOnError:!0}),e.value=!0,D("sectionComplete",{section:"deliveryAddress",timestamp:new Date}),V({type:"section_complete",section:"deliveryAddress"})},[u,v,D,V]),E=r(({shipping:e})=>{e.value=!1},[]),R=ka(),I=i(()=>R.value.isDelivery),M=Ie(),j=i(()=>"split"===l.value),A=p(oe,{sectionId:"localPickup",children:p(k,{gap:"small",children:[p(h,{when:j,children:p(f,{level:2,children:s.translate("delivery_options.pickup")})}),p(je,{...a})]})}),x=p(oe,{sectionId:"shipping",children:[p(O,{children:p(k,{gap:"base",children:[p(h,{when:j,children:p(f,{level:2,children:s.translate("delivery_options.ship_to_address")})}),p(h,{when:m,children:p(U,{color:"subdued",children:s.translate("shipping.shipping_used_as_billing_notice")})}),p(h,{when:j,children:p(h,{when:M,children:p(G,{border:"base",padding:"base",borderRadius:"large",children:p(xe,{selectedDeliveryMethodType:"SHIPPING"})})})}),p(Z,{customizations:b}),e?.renderExtensionSlot?.("purchase.checkout.delivery-address.render-before",{}),p(k,{gap:"large-300",children:[p(Ce,{children:p(ye,{onValid:P,onInvalid:E,children:p($e,{children:[Wa({identity:d})&&p(Ya,{}),p(Le,{}),p(h,{when:I,children:p(Va,{})}),p(Be,{})]})})}),p(Z,{customizations:C}),e?.renderExtensionSlot?.("purchase.checkout.delivery-address.render-after",{}),t?t(o):p(qa,{singleDeliveryGroup:o})]})]})}),p(h,{when:()=>g.value?.refuseDutiesPermitted,children:p(O,{accessibilityLabel:s.translate("shipping.duties_and_taxes_title"),children:p(k,{gap:"base",children:[p(f,{level:2,children:s.translate("shipping.duties_and_taxes_title")}),p(Fa,{})]})})})]}),B=i(()=>"pickup-point"===l.value),z=i(()=>"store-pickup"===l.value),F=p(h,{when:()=>B.value||z.value,fallback:x,children:p(h,{when:B,fallback:A,children:p(oe,{sectionId:"pickupPoints",children:p(Ae,{...n})})})});return p(c,{children:[p(h,{when:j,fallback:F,children:p(k,{gap:"large-300",children:[A,x]})}),p(ze,{address:w})]})}function Wa({identity:e}){return"customerAccount"===e.current.value}var Xa=o(function(e){const a=ee("Checkout::Dynamic::Render","DELIVERY1");return p(ea,{children:[p(Ha,{...e}),p(Z,{customizations:a})]})});function Ja({active:e,ready:a}){const{i18n:n}=pe(),t=e.value&&!a.value?n.translate("general.loading"):null;return p(G,{accessibilityRole:"status",accessibilityVisibility:"exclusive",children:t})}var Qa=v({displayName:"BelowTheFoldContent",renderLoading:function(){return p(G,{"aria-busy":!0,padding:"large-200 none",children:p(k,{gap:"base",children:[p(b,{inlineSize:"large"}),p(b,{inlineSize:"base"}),p(R,{contentDisplay:"block",blockSize:"48px"})]})})},load:()=>s(()=>m(()=>import("./7aefefff.DqGJvO_Y.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128]))),renderError:D});function $a({children:e,fillAvailableBlockSize:a,ready:n,submitRef:t}){const{checkout:{identity:i}}=pe(),l=r(()=>{t.current?.()},[t]);return p(re,{disabled:!n.value,onSubmit:l,contentsClassName:a?"ifz7X":void 0,children:e},i.current.value)}function Za(){const{checkout:{wallets:e,negotiator:a}}=pe(),l=va(),o=_(),s=t(!1),u=i(()=>a.current.fields.allViolations.value?.some(e=>x.has(e.code))),d=i(()=>!u.value&&l.value.hasViolation&&l.value.lineItems.length>0),c=i(()=>{const a=l.value;return d.value?s.current=!0:s.current&&!a.loading&&0===a.lineItems.length&&(s.current=!1),!e.activeSession.value&&s.current&&a.lineItems.length>0?a:void 0});n(()=>{d.value&&o("inventoryPriceChange",{element:{tagName:"modal"},timestamp:new Date,visible:!0})});const v=r(()=>{s.current=!1,l.value.updateProposal()},[l]);return p(h,{when:c,children:e=>p(ta,{loading:e.loading,lineItems:e.lineItems,onClose:v})})}function en(){const{checkout:e,embed:a,shopPay:n}=pe(),t=be(),l=Se(),r=H(),o="webview-rendered"===n.config.isReferral,s=a?.isFlagshipPartner??!1,u=i(()=>r.value.contact&&e.configuration.showContactInformation||r.value.delivery||r.value.payment).value,d=t.value,v=d||l.value||o;return u&&v?p(c,{children:[d?p(Ga,{}):null,l.value?p(La,{isVaultedReview:!0}):null,o?p(aa,{}):null,v&&!s?p(Y,{blockSize:"base"}):null]}):null}function an(){const{i18n:e}=pe(),{availableDeliveryMethodsLoading:a,progressiveShippingRatesLoading:n}=Qe(),{selectedDeliveryMethod:i}=Ze({onChange:()=>{},prerequisitesLoading:a||a&&!n}),r=i?e.translate("order_summary.updated_shipping_method",{shipping_method:i.title}):void 0,o=t(r);return l(()=>{const e=o.current;if(o.current=r,r&&r!==e)return B({content:r})},[r]),null}function nn(){return E("ONE_TIME_PURCHASE")?p(an,{}):null}function tn({includeContact:e=!0}={}){const a=H(),n=u(ee("Checkout::Dynamic::Render","INFORMATION1")),l=u(ee("Checkout::Dynamic::Render","INFORMATION2")),r=u(ee("Checkout::Dynamic::Render","DELIVERY1")),o=u(ee("Checkout::Dynamic::Render","DELIVERY2")),s=u(ee("Checkout::Dynamic::Render","PAYMENT1")),d=u(ee("Checkout::Dynamic::Render","PAYMENT2")),c=u(ee("Checkout::Dynamic::Render","PAYMENT3")),v=t();return i(()=>{const t=a.value,i=[];t.contact&&("boolean"==typeof e?e:e.value)&&i.push(...n.value,...l.value),t.delivery&&i.push(...r.value,...o.value),t.payment&&i.push(...s.value,...d.value,...c.value);const u=v.current;return u&&(p=i,(h=u).length===p.length&&h.every((e,a)=>{const n=p[a];return void 0!==n&&T(e)===T(n)}))?u:(v.current=i,i);var h,p})}function ln({showEmailMarketingOptIn:e,showPhoneMarketingOptIn:a,aboveFoldSpacing:n,paddingBlockStart:t,children:l}){const r=ka(),o=i(()=>a?.value??r.value.isRoot),s=i(()=>e.value||o.value),u=i(()=>e.value&&o.value),d=i(()=>u.value?n?"small-200":"base":"none"),c=i(()=>n?"large-200 none large-200 none":`${t?.value??"none"} none base none`);return p(h,{when:s,fallback:l,children:()=>p(N,{target:"cart.buyerIdentity",children:p(k,{gap:n?"small-200":"base",padding:c.value,children:[p(k,{gap:d.value,children:[p(h,{when:e,children:p(Da,{origin:"payment_page"})}),p(h,{when:o,children:p(Va,{})})]}),l]})})})}function rn({extensions:e,hideDivider:a="always"}){const n=_a(),t=Ea();return n(p(We,{...t,hideDivider:a,className:d("Ek5jR",t.className),children:p(Z,{customizations:Ca(e),render:e=>e})}))}function on({isGuestPartialVaultedDelivery:e,isSectionStyleUnificationEnabled:a,children:n}){const t=i(()=>!e.value);return a?p(Ue,{target:e.value?"edgeToEdge":"vaulted",children:n}):p(qe,{target:"vaulted",condition:t,children:n})}function sn({arrangement:e,children:a}){const{checkout:n,i18n:t,source:l}=pe(),{vaultedSections:r,isSectionStyleUnificationEnabled:o,isUniversalCheckoutEmbed:s,summaryBeforeDetails:u,isMobileForLayout:d,isSectionCustomized:v,isVaultedSectionCustomized:m,isVaultedMultiGroup:g,isGuestPartialVaultedDelivery:y,wrapVaultedWithinSection:f,showStandaloneContact:b,showStandaloneUnvaultedContact:S,showStandaloneShopPayRequiredEmail:C,hasVaultedContentBesidesContact:D,showContactSection:V,showVaultedSectionStyleOverride:P,showUnifiedVaultedSectionStyleOverride:_,showVaultedAdjacentDelivery:E,showPartialVaultedDeliverySection:R,hasVaultedAdjacentContact:I,hasVaultedAdjacentDeliverySelector:M,deliverySelectorInRollup:j,showVaultedHsaToggle:A,showSummaryAfterDetails:x,showVaultedStateMarketingDisclosureAbovePayment:B,showVaultedStateMarketingDisclosureOnMobile:O,phoneMarketingPlacement:F,showVaultedCardConsentSpacing:T,afterContactExtensions:N,showAfterContactVaultedExtensions:L,vaultedExtensions:U,showDynamicVaultedExtensions:q}=e,Y=i(()=>z(n.negotiator.parts.deliveryLines.value)),H=i(()=>n.negotiator.current.fields.buyerIdentity.value?.customerProfile),K=i(()=>n.configuration.visibility.showEmailMarketing&&!ge(l)&&B.value&&!H.value?.acceptsEmailMarketing),W=i(()=>!f.value&&r.value.delivery&&n.isShippingRequired.value),X=p(h,{when:W,children:p(Fe,{})}),J=i(()=>r.value.delivery&&Y.value.includes("PICK_UP")&&!j.value),Q=i(()=>Boolean(I.value||J.value||(E.value||R.value)&&M.value)),$=i(()=>s&&Q.value),Z=i(()=>s?u&&"unlessFollowed":v.value),ee=i(()=>!b.value&&v.value&&(K.value||"abovePayment"===F.value)),ae=i(()=>!b.value&&(K.value||O.value)),ne=i(()=>"abovePayment"===F.value),te=i(()=>b.value?r.value.delivery&&n.isShippingRequired.value?t.translate("shipping.delivery_title"):t.translate("payment.title"):t.translate("contact.contact_method_title")),ie=i(()=>!(g.value&&r.value.contact)&&(!C.value||D.value)&&(m.value||v.value&&!r.value.contact)),le=i(()=>r.value.payment&&!O.value&&!x.value),re=i(()=>!o&&P.value),oe=i(()=>_.value&&V.value),se=i(()=>!s&&g.value&&_.value),ue=i(()=>s?u&&"unlessFollowed":m.value||oe.value),de=i(()=>T.value||A.value||ee.value||O.value||m.value&&!v.value&&d.value||le.value&&(d.value||u)),ce=i(()=>A.value||le.value||!r.value.payment&&r.value.delivery&&!d.value&&!L.value||r.value.payment&&O.value);return p(c,{children:[p(qe,{target:"vaulted",condition:_,children:p(Xe,{hideDivider:ce,condition:V,accessibilityLabel:te.value,after:p(h,{when:V,children:X}),children:p(qe,{target:"vaulted",condition:re,children:[p(ga,{showDelivery:E,insideVaultedCard:oe}),p(Xe,{condition:ie,hideDivider:de,accessibilityLabel:te.value,after:p(h,{when:()=>!V.value,children:X}),children:p(k,{children:[p(h,{when:()=>!r.value.contact&&!S.value,children:a}),p(h,{when:()=>!f.value,children:p(pa,{hideLastDivider:ue,splitGroupsOnCards:se,showTopDivider:$,stripBlockEndPadding:n.configuration.isUniversalCheckoutFinalizer&&"unlessFollowed"})})]})}),p(h,{when:g,children:p(Je,{})})]})})}),p(h,{when:A,children:p(Ia,{children:p(G,{paddingBlockStart:"small-300",paddingBlockEnd:"base",children:p(Oa,{})})})}),p(h,{when:()=>(!b.value||ne.value)&&(v.value||O.value),children:p(w,{section:"contact",children:p(Ia,{spaceStart:!1,children:p(ln,{aboveFoldSpacing:!0,showEmailMarketingOptIn:ae,showPhoneMarketingOptIn:ne})})})}),p(h,{when:L,children:p(w,{section:"contact",children:p(rn,{extensions:N,hideDivider:"whenEmpty"})})}),p(h,{when:R,children:p(h,{when:n.isShippingRequired,children:p(on,{isGuestPartialVaultedDelivery:y,isSectionStyleUnificationEnabled:o,children:[p(ca,{}),p(He,{condition:f,after:p(h,{when:()=>r.value.delivery,children:p(Fe,{})}),accessibilityLabel:t.translate("shipping.delivery_title"),children:p(pa,{hideLastDivider:Z,showTopDivider:$,stripBlockEndPadding:n.configuration.isUniversalCheckoutFinalizer&&"unlessFollowed"})})]})})}),p(h,{when:q,children:p(rn,{extensions:U,hideDivider:"whenEmpty"})})]})}var un=[ja.Button,Ba.Button,xa.StickyFooter,Ma.Wrapper],dn=o(function({showForm:e=!0}){const a=ee("Checkout::Contact::RenderAfter"),n=ee("Checkout::Dynamic::Render","INFORMATION1"),t=ee("Checkout::Dynamic::Render","INFORMATION2");return p(c,{children:[n.length?p(c,{children:p(Z,{customizations:n,gap:"base",marginBlockEnd:"large300"})}):null,e?p(Ve,{impressionType:"contact",impressionFeatures:[],children:[p(fa,{}),a.length?p(c,{children:p(Z,{customizations:a,marginBlockStart:"base"})}):null,t.length?p(c,{children:p(Z,{customizations:t,gap:"large-200",marginBlockStart:"large300"})}):null]}):p(c,{children:[a.length?p(c,{children:p(Z,{customizations:a,marginBlockStart:"base"})}):null,t.length?p(c,{children:p(Z,{customizations:t,gap:"large-200",marginBlockStart:"large300"})}):null]})]})}),cn=e({default:()=>fn,loadEngineMainRegion:()=>pn,onePageCriticalStyleClassNames:()=>hn}),vn="undefined"==typeof window?void 0:performance.now();"undefined"!=typeof window&&Qa.preload();var hn=un;function pn(){return la.load()}var mn=o(function(){return ua(),ya(),null}),gn=o(function(){return ne(),null});function yn(){const{checkout:{configuration:e}}=pe(),a=i(()=>e.layout.extensionPlacements.value.aside.filter(({target:e})=>"purchase.checkout.cart-line-item.render-after"===e).map(({node:e})=>e)),n=Ua(a.value),t=ve(),l=i(()=>"hidden"!==t.value);return p(We,{hideDivider:l,children:p(ce,{renderItemExtension:n})})}var fn=o(function({children:e}){const{checkout:n,embed:r,environment:o,i18n:s,observability:d,shop:c,source:v}=pe(),m="VISIBLE"===n.configuration.headerText?.visibility,g=i(()=>({root:n.configuration.layout.mainRoot.value})),y=a(),f=i(()=>y.value===g.value),b=i(()=>{const e=g.value;return()=>{if(g.value!==e)return;const a=void 0===y.value;y.value=e,a&&void 0!==vn&&d.histogram({name:"one_page_below_fold_content_ready",value:Math.round(performance.now()-vn),unit:"ms",attributes:{buildId:o.commitSha}})}}),S=t(),D=C(),P=function(){const{checkout:e,embed:a,shop:n,shopPay:t,source:l}=pe(),r=C(),o=n.hasFlagEnabled(he),s="google"===a?.embedder,d=H(),c=Aa(),v=i(()=>d.value.payment&&c.value),h=u(I()),p=le(),m=i(()=>s&&p.value),g=V(),y=i(()=>d.value.contact&&e.configuration.showContactInformation||d.value.delivery&&e.isShippingRequired.value||d.value.payment),f=i(()=>d.value.delivery&&e.isShippingRequired.value||d.value.payment),w=i(()=>g.value&&y.value),b=ae(),S=fe(),k=i(()=>ie({configuration:e.configuration,identity:e.identity,shop:n,shopPay:t,embed:a,vaultedSections:d.value,isShippingRequired:e.isShippingRequired.value,hasSellingPlan:b.value,phoneCountryCode:S.value})),D=i(()=>"standalone-form"===k.value),P=i(()=>"standalone-vaulted"===k.value),_=i(()=>"vaulted-adjacent"===k.value),E=i(()=>D.value||P.value),R=u(X({base:!0,medium:!1})),A=i(()=>!r.value||(R.value??!1)),x=u(ee("Checkout::Contact::RenderAfter")),B=na(),{section:O}=se(e).main.value,z=u(j(O)),F=J(),T=i(()=>"shopPay"===e.identity.current.value||d.value.payment||!z.value?"belowPayment":"abovePayment"),N=i(()=>!E.value&&B.value&&"belowPayment"===T.value),G=i(()=>!E.value&&B.value&&"abovePayment"===T.value),L=i(()=>F.value&&d.value.payment&&N.value&&A.value),U=ka(),q=i(()=>U.value.isRoot?"belowPayment"!==T.value||A.value&&z.value?"abovePayment":"belowPayment":"none"),Y=i(()=>"guest"===e.identity.current.value&&d.value.delivery||"businessCustomer"===e.identity.current.value&&!d.value.delivery&&d.value.payment),K=i(()=>"guest"===e.identity.current.value?Y.value&&!(d.value.contact&&d.value.payment):Y.value),W=i(()=>!K.value&&e.isShippingRequired.value),Q=i(()=>_.value||P.value),$=sa(),Z=i(()=>Boolean(!ge(l)&&d.value.delivery&&null!=h.value&&!$.value)),ne=i(()=>Boolean(W.value&&Z.value&&!Q.value)),te=M(a?.embedder),re="beforeDetails"===e.configuration.orderSummary?.placement,oe=i(()=>"guest"===e.identity.current.value&&d.value.delivery&&!d.value.contact),ue=i(()=>r.value&&d.value.contact&&!E.value&&x.value.length>0),de=i(()=>!E.value),ce=tn({includeContact:de}),ve=i(()=>r.value&&!p.value&&ce.value.length>0),me=Na(),ye=i(()=>!z.value&&!w.value&&(!P.value||f.value)),we=i(()=>y.value&&!oe.value),be=i(()=>o&&we.value),Se=i(()=>!te&&be.value&&ye.value&&!Y.value&&d.value.payment&&(!e.isShippingRequired.value||d.value.delivery));return{vaultedSections:d,isSectionStyleUnificationEnabled:o,isUniversalCheckoutEmbed:te,summaryBeforeDetails:re,isMobileForLayout:A,isSectionCustomized:z,isVaultedSectionCustomized:F,isVaultedMultiGroup:w,isGuestPartialVaultedDelivery:oe,wrapVaultedWithinSection:Y,showStandaloneContact:E,showStandaloneUnvaultedContact:D,showStandaloneShopPayRequiredEmail:P,hasVaultedContentBesidesContact:f,showContactSection:ye,showVaultedSectionStyleOverride:we,showUnifiedVaultedSectionStyleOverride:be,showVaultedAdjacentDelivery:W,showPartialVaultedDeliverySection:K,hasVaultedAdjacentContact:Q,hasVaultedAdjacentDeliverySelector:Z,deliverySelectorInRollup:$,isVaultedAdjacentDeliveryFirstVisibleSection:ne,showVaultedHsaToggle:v,showFlexibleVaultedSpacing:m,showSummaryAfterDetails:me,showVaultedStateMarketingDisclosureBelowPayment:N,showVaultedStateMarketingDisclosureAbovePayment:G,showVaultedStateMarketingDisclosureOnMobile:L,phoneMarketingPlacement:q,showVaultedCardConsentSpacing:i(()=>Se.value&&!A.value&&(N.value||"belowPayment"===q.value)&&!v.value&&!ue.value&&!ve.value&&!m.value),afterContactExtensions:x,showAfterContactVaultedExtensions:ue,includeContactInVaultedExtensions:de,vaultedExtensions:ce,showDynamicVaultedExtensions:ve}}(),{vaultedSections:_,summaryBeforeDetails:E,isSectionCustomized:R,showStandaloneContact:x,isVaultedAdjacentDeliveryFirstVisibleSection:B,showFlexibleVaultedSpacing:O,showSummaryAfterDetails:z,showVaultedStateMarketingDisclosureBelowPayment:T,showVaultedStateMarketingDisclosureOnMobile:U,phoneMarketingPlacement:Y,showVaultedCardConsentSpacing:$,includeContactInVaultedExtensions:Z}=P,ne=A(),te=i(()=>_.value.payment&&ne.value);!function(){const{observability:e,checkout:{negotiator:a,isShippingRequired:n}}=pe();l(()=>{const t=a.current.fields.buyerIdentity.value,i=a.parts.shippingAddress.value,l=a.parts.billingAddress.value,r=a.current.fields.allViolations.value??[];if(me(r)||ma(r))return;const o=n.value?i.countryCode:l.countryCode,s=t?.countryCode;s&&o!==s&&(e.log("country_code_alignment_mismatch_detected","[EnsureBackAndFrontEndCountryCodeAlignment] There was a mismatch between the preselected and the buyerIdentity countryCode on checkout load.",{selectedCountryCode:o,buyerIdentityCountryCode:s,buyerIdentity:JSON.stringify(t,(e,a)=>void 0===a?null:a)}),a.negotiate({withResultHandling:!0,silenceViolations:["all"]}))},[])}();const{lineItems:{priority:re="base"}}=K(),ue=Boolean(n.configuration.orderSummary?.showStoreHeader),de=Ta(),ce=i(()=>E&&(ue||de.value)),ve=i(()=>!ue&&D.value&&ce.value),ye=Boolean(r?.isFlagshipPartner)&&"high"===re;return p(da,{children:[p(mn,{}),p(k,{blockSize:O.value?"100%":void 0,gap:"@media (inline-size >= extraSmall) large-200, none",children:[ge(v)?p(k,{gap:"base",padding:"@media (inline-size >= extraSmall) none, large-200 large-200 none large-200",children:p(q,{})}):null,p(L,{section:"toast"}),p(h,{when:()=>!ye&&!ce.value,children:p(L,{section:"top"})}),p(Ja,{active:D,ready:f}),p($a,{fillAvailableBlockSize:O.value,ready:f,submitRef:S,children:p(ia,{onReady:b.value,submitRef:S,children:[p(h,{when:ve,children:p(F,{})}),p(h,{when:()=>E&&(ue||ve.value)&&!B.value,children:p(Q,{accessibilityRole:"presentation"})}),m&&p(G,{padding:"none none large-100 none",children:p(oa,{})}),"high"===re&&p(G,{display:"@media (inline-size >= medium) none, auto",children:p(Ue,{target:"lineItems",children:p(yn,{})})}),p(h,{when:()=>ye&&!ce.value,children:p(L,{section:"top"})}),p(Ge,{}),p(en,{}),p(ha,{}),p(h,{when:x,children:()=>p(We,{accessibilityLabel:s.translate("contact.contact_method_title"),children:p(W,{section:"contact",children:p(w,{section:"contact",children:p(dn,{showForm:n.configuration.showContactInformation})})})})}),p(sn,{arrangement:P,children:p(W,{section:"contact",children:p(w,{section:"contact",children:p(dn,{showForm:n.configuration.showContactInformation})})})}),p(h,{when:()=>!_.value.delivery&&!ge(v)&&n.isShippingRequired.value,children:p(N,{target:"cart.deliveryGroups[0].deliveryAddress",children:p(W,{section:"delivery",children:p(w,{section:"delivery",children:p(oe,{sectionId:"delivery",children:[p(Xa,{}),p(Ke,{})]})})})})}),p(h,{when:te,children:p(Ye.Prefetch,{})}),p(h,{when:O,children:p(G,{className:"xoG3V","data-testid":"onepage-vaulted-spacing"})}),p(h,{when:D,children:p(Qa,{onReady:b.value,onePageFormSubmitRef:S,includeContactInVaultedExtensions:Z,showMobileOrderSummary:z,showVaultedStateMarketingDisclosureBelowPayment:T,phoneMarketingPlacement:Y,isSectionCustomized:R,showVaultedStateMarketingDisclosureOnMobile:U,showVaultedCardConsentSpacing:$})})]})}),p(h,{when:c.postPurchase.enabled,children:p(Sa,{})})]}),p(Za,{}),p(h,{when:n.isShippingRequired,children:p(nn,{})}),p(Te,{id:"OnePage"}),p(gn,{}),e]})});export{Xa as a,fn as default,tn as i,pn as loadEngineMainRegion,ln as n,qa as o,hn as onePageCriticalStyleClassNames,rn as r,cn as t};