var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); import{bt as we,bT as dn,aj as X,T as B,am as ye,c2 as un,ji as hn,bY as pn,q as T,a as e,jj as mn,ej as gn,jk as yn,a5 as Oe,a2 as ne,d as G,x as j,i as fn,jl as vn,al as Sn,jm as Pn,dE as Cn,aa as Pe,jn as bn,j as Be,y as se,a6 as C,a1 as O,af as m,aX as je,b9 as Mn,jo as kn,jp as ze,bC as An,jq as En,fA as _n,gd as xe,bp as H,eX as te,eS as v,jr as Dn,a9 as S,ae as b,js as In,aN as me,jt as wn,fS as xn,eP as N,bs as Re,fK as Ue,d4 as Ge,b0 as fe,ju as Rn,jv as Vn,jw as Tn,at as Ln,s as Ce,eG as Ye,bA as On,jx as Bn,g as ve,br as jn,jy as Fn,aV as Nn,b7 as Hn,jz as zn,cN as Un,hG as Gn,bE as qe,cO as Yn,cR as qn,ag as Ee,gi as Wn,aC as $n,cS as Kn,cT as Jn,cP as We,cQ as Xn,hJ as Qn,jA as Zn,jB as es,cX as ns,cY as Fe,cW as ss,cZ as Ne,jC as ts,bh as is,c_ as as,hL as os,hM as rs,hK as $e,hI as cs,hS as ls,dM as be,jD as ds,cA as us,cy as hs,jE as Me,jF as ps,jG as Ke,jH as ms,a0 as gs,ai as ys,aP as fs,jI as vs,fW as Ss,bR as Ps,dj as Cs,jJ as bs,dq as Ms,jK as ks,jL as Je,jM as As,fb as _e,gI as Es,jN as _s,jO as Ds,d7 as Is,gR as ws,S as ee,fr as xs,jP as Rs,Y as Vs,fp as ge,N as Y,M as Se,fq as Ts,fX as Ls,jQ as Os,I as Bs,J as js,d5 as Fs,G as Ns,jR as Hs,dn as zs,fk as Us,jS as Ae,fo as Gs,b2 as Ys,R as qs}from"./app.CyNm_mbA.js";import{D as Ws,S as $s,u as Ks,E as Js,a as Xs,P as Qs}from"./DeliveryMethodSelectorSection.U0Ra-6Ap.js";import{R as Xe,L as Zs}from"./LocalizationExtensionField.CFaxu0zK.js";import{S as et}from"./ShipmentBreakdown.GL-BzAW4.js";import{R as nt,P as st}from"./PayButtonSection.JI80Ia82.js";import tt from"./component-ShopPayVerificationSwitch.DCqgNBmm.js";import"./useEditorShopPayNavigation.BVg1Px8l.js";import"./VaultedPayment.sK89ssbF.js";import"./ShopPayOptInDisclaimer.BXnsnOZ_.js";import"./MerchandiseModal.C2VMfUme.js";import"./StackedMerchandisePreview.DP2T7r69.js";import"./useSubscribeMessenger.B_VBweu-.js";import"./index.B8ybL4PD.js";function Qe(s){return s.some(n=>n.code==="MERCHANDISE_EXPECTED_PRICE_MISMATCH")}function it(){const{value:s}=we(),n=Qe(s??[]),{loading:o,value:i}=dn(),a=X().merchandiseLines.value,t=B(()=>i?.lines??[],[i]),[c,h]=ye(a),l=B(()=>un(c,t,s,hn).map(({proposed:d,negotiated:u})=>({line:d??u,problem:{type:pn.PriceChange,negotiatedPrice:u?.itemPrice,proposedPrice:d?.itemPrice}})),[c,t,s]),g=T(()=>{l.length>0&&h(t)},[l,t,h]);return{hasViolation:n,loading:o,lineItems:l,updateProposal:g}}function at({filteredAvailableDeliveryAddresses:s,selectedAddressId:n,handleChange:o}){const i=B(()=>s?new Map(s.map(t=>[t.id,t.address])):new Map,[s]),a=B(()=>new Map,[]);return e(gn.Provider,{value:!0,children:e(mn,{id:"modal_shipping_address",addressType:"shipping",selectedId:n,onChange:o,choices:a,ephemeralAddressChoices:i})})}function ot({shippingAddress:s}){const{nameLine:n,primary:o,secondary:i}=yn({address:s}),a=`${n}, ${o}`;return e(G,{padding:"large100",background:"subdued",borderRadius:"base",children:e(Oe,{tone:"accent",children:[e(ne,{children:e(Oe,{type:"strong",children:a})}),e(ne,{children:i})]})})}function rt(){const s=j(),n=X(),o=n.mustSelectProvidedAddress.value,i=n.availableDeliveryAddresses.value,[a]=fn(),{setSelectedAddress:t,selectedAddress:c}=vn(),h=Sn(),l=h?Pn(h):!1,{record:g}=Cn(),{name:d}=Pe(),[u]=bn(),[p,k]=ye(c?.id),r=B(()=>o?i:i?.filter(y=>!a.find(V=>Be(V.address,y.address))),[a,i,o]),P=B(()=>a?.some(y=>c?Be(y.address,c.address):!1),[c,a]),f=r?.length===0,M=i&&i.length>=1&&!f&&!P,x=a?.length>=1,R=!!(!o&&M&&x&&!l),[D,A]=ye(R);se(()=>{D&&g({schemaId:"shopify_pay_payment_page_ui_impression/2.0",payload:{elementText:r?.length===1?"single_address":"multiple_addresses",elementType:"shop_pay_merchant_set_address_modal",shopAccountUuid:u}})},[D]);const E=T(y=>{g({schemaId:"shopify_pay_payment_page_ui_interaction/1.1",payload:{action:y}})},[g]),I=T(()=>{E("shop_pay_proposed_address_modal_continue");const y=r?.find(V=>V.id===p);t(y,"shipping_address"),A(!1)},[r,p,t,E]),_=T(()=>{E("shop_pay_proposed_address_modal_use_saved_address");const y=kn(a);y&&t(y,"shipping_address"),A(!1)},[t,a,E]),w=B(()=>r?new Map(r.map(y=>[y.id,y])):new Map,[r]),q=T(y=>{const V=w.get(y);k(V.id)},[w,k]),Q=r?.length===1?e(ot,{shippingAddress:r[0].address}):e(at,{filteredAvailableDeliveryAddresses:r,selectedAddressId:p,handleChange:q});return e(Mn,{size:"large",open:D,heading:s("shop_pay.review_address_modal.title","Review address"),onHide:I,children:[e(C,{children:s("shop_pay.review_address_modal.subtitle",{count:r?.length||0,merchant:d},{one:"This order will be shipped to the address provided by %{merchant}.",other:"This order will be shipped to an address provided by %{merchant}. Select a shipping address."})}),e(O,{spacing:"base"}),Q,e(O,{spacing:"large200"}),e(m,{spacing:"small400",children:[e(je,{variant:"primary",inlineSize:"fill",onClick:I,children:s("shop_pay.review_address_modal.continue","Continue with this address")}),e(je,{inlineSize:"fill",onClick:_,children:s("shop_pay.review_address_modal.use_saved_address","Use a different address")})]})]})}function ct(){const{acceptTipPayments:s}=Pe(),{shopifyInstallments:n}=ze();An();const o=En(),i=_n(),a=xe(),{Tips:t,PurchaseOrderNumberField:c,GiftCardRedemption:h,StoreCreditRedemption:l,Installments:g,PaymentMethodSelector:d}=H(),{isOrderEditCheckout:u}=te(),p=a?.tippingPaymentAllowed??!0,k=!u&&s&&p,r=v({shopPay:k&&!n(),default:k}),P=Dn({showTips:r,billingFormPosition:o}),f=S("purchase.checkout.payment-method-list.render-before"),M=S("purchase.checkout.payment-method-list.render-after");return e(Re,{target:"cart.paymentLines[0]",children:e(m,{children:[e(lt,{}),e(b,{extensions:f}),e(In,{}),e(l,{}),e(g,{}),e(me,{children:[e(m,{spacing:"large400",children:[e(wn,{dynamicPaymentExtensions:P.shift()||[],children:[e(d,{}),e(b,{extensions:M}),e(b,{extensions:P.shift()||[]}),e(h,{})]}),i&&e(xn,{}),e(c,{showHeading:!1})]}),r&&e(C,{children:[e(N,{sectionId:"tips",children:e(t,{})}),e(b,{extensions:P.shift()||[]})]}),e(Xe,{})]}),e(b,{extensions:P.flat()})]})})}function lt(){const s=j(),n=Ue(),o="payment",i=Ge().currentUrl.hash===`#${o}`,a=n?`${s("payment.billing_must_match_shipping_notice","Your payment method’s billing address must match the shipping address.")} `:"",t=s("payment.card_security_notice","All transactions are secure and encrypted.");return e(m,{spacing:"small400",children:[e(fe,{id:o,level:1,autoFocus:i,children:s("payment.title","Payment")}),e(ne,{color:"subdued",children:a+t})]})}function dt(){const s=j(),{availableDeliveryMethodsLoading:n,progressiveShippingRatesLoading:o}=Vn(),i=n&&!o,{selectedDeliveryMethod:a}=Tn({onChange:()=>{},prerequisitesLoading:n||i}),t=a?s("order_summary.updated_shipping_method",{shipping_method:a.title},"Updated shipping method: %{shipping_method}"):void 0;return se(()=>{if(t)return Ln({content:t})},[t]),null}function ut(){return Rn("ONE_TIME_PURCHASE")?e(dt,{}):null}function ht(){const{negotiate:s}=Ce(),n=Ye(),o=X(),i=o.shippingAddress.value,a=o.billingAddress.value,t=On(),{value:c=[]}=we(),h=Bn(c),l=Qe(c),{shippingRequired:g}=ve(),d=g?i.countryCode:a.countryCode,u=n?.value?.countryCode,p=JSON.stringify(n?.value,(k,r)=>r===void 0?null:r);se(()=>{h||l||u&&d!==u&&(t.counter({name:"country_code_mismatch",value:1}),t.log("[EnsureBackAndFrontEndCountryCodeAlignment] There was a mismatch between the preselected and the buyerIdentity countryCode on checkout load.",{selectedCountryCode:d,buyerIdentityCountryCode:u,buyerIdentity:p}),s({silenceViolations:["all"],progression:!1}))},[])}function pt({showSmsMarketingOptIn:s=!1}){const n=S("Checkout::Contact::RenderAfter"),o=S("Checkout::Dynamic::Render","INFORMATION1"),i=S("Checkout::Dynamic::Render","INFORMATION2"),{ContactForm:a}=H();return e(C,{children:[o.length?e(C,{children:e(b,{extensions:o,spacing:"base",marginBlockEnd:"large300"})}):null,e(jn,{impressionType:"contact",impressionFeatures:[],children:[e(a,{showSmsMarketingOptIn:s}),n.length?e(C,{children:e(b,{extensions:n,marginBlockStart:"base"})}):null,i.length?e(C,{children:e(b,{extensions:i,spacing:"large200",marginBlockStart:"large300"})}):null]})]})}function mt(){const s=j(),{setSelectedAddress:n,addresses:o}=Fn("shipping"),i=T(()=>{o.length>0&&n(o[0])},[o,n]);return o.length===0?null:e(Hn,{inlineAlignment:"start",children:e(Nn,{id:"save_shipping_information",textDecoration:"none",onClick:i,children:s("customer_account.saved_address_option_link","Use a saved address")})})}function gt({showSmsMarketingOptIn:s=!1}){return zn(),e(m,{spacing:"large300",children:[e(Ws,{}),e(yt,{showSmsMarketingOptIn:s})]})}function yt({showSmsMarketingOptIn:s}){const n=Un(),{method:o}=Gn(),i=j(),{activeWalletSessionSignal:a}=qe(),{value:t}=Yn(),c=qn(),h=Ee(Wn),{showShipmentBreakdown:l}=$n(),g=S("Checkout::DeliveryAddress::RenderBefore"),d=S("purchase.checkout.delivery-address.render-after"),{hasMultipleDeliveryGroups:u,onlyDeliveryGroupType:p}=Kn(),{extensionsBefore:k,extensionsAfter:r}=Jn({hasMultipleDeliveryGroups:u,targeted:!1}),P=c||l,f=We(),M=Xn(),{negotiate:x}=Ce(),R=T(({shipping:w})=>{a.peek()||x({include:[],fieldsToResolve:["deliveryNext"],silenceViolations:["non-delivery-address"],runListenersOnError:!0}),w.value=!0,f("sectionComplete",{section:"deliveryAddress",timestamp:new Date}),M({type:"section_complete",section:"deliveryAddress"})},[a,x,f,M]),D=T(({shipping:w})=>{w.value=!1},[]),A=w=>e(me,{padding:P?"small-400 none":void 0,children:w}),E=s?e($e,{}):null,I="shippingMethod",_=Ge().currentUrl.hash===`#${I}`;switch(o){case"PICKUP_POINT":return e(C,{children:[e(N,{sectionId:"pickupPoints",children:e(rs,{})}),E]});case"PICK_UP":return e(C,{children:[e(N,{sectionId:"localPickup",children:e(os,{})}),E]});default:return e(N,{sectionId:"shipping",children:[e(me,{accessibilityLabel:i("delivery_options.shipping_address","Shipping address"),children:e(m,{spacing:"base",children:[e(b,{extensions:g}),e(m,{spacing:"large300",children:[e(Qn,{children:e(Zn,{onValid:R,onInvalid:D,children:e(es,{children:[e(mt,{}),e($s,{}),E]})})}),e(b,{extensions:d}),e(m,{spacing:P?"small400":"base",children:[e(fe,{id:I,level:h?1:2,autoFocus:_,children:i("shipping.shipping_method_title","Shipping method")}),e(ns,{children:[l?e(Fe,{children:[e(et,{}),e(O,{spacing:"small200"})]}):null,ss("shipping.shipping_method_notice",n)?e(ne,{children:i("shipping.shipping_method_notice"," ")}):null,e(b,{extensions:k,options:{groupType:p&&Ne(p),includeDeliverySelectionGroups:!1},render:A}),e(Fe,{children:[e(ts,{}),e(is.Preload,{})]}),e(b,{extensions:r,options:{groupType:p&&Ne(p),includeDeliverySelectionGroups:!1},render:A})]})]})]})]})}),t?.refuseDutiesPermitted&&e(me,{accessibilityLabel:i("shipping.duties_and_taxes_title","Duties and taxes"),children:e(m,{spacing:"base",children:[e(fe,{level:2,children:i("shipping.duties_and_taxes_title","Duties and taxes")}),e(as,{})]})})]})}}function ft({showSmsMarketingOptIn:s=!1}){const n=j(),o=Ue(),{DeliveryHeading:i}=H(),a=S("Checkout::Dynamic::Render","DELIVERY1");return e(be,{children:e(m,{children:[e(m,{spacing:"small400",children:[e(i,{}),o&&e(ne,{color:"subdued",children:n("shipping.shipping_used_as_billing_notice","This will also be used as your billing address for this order.")})]}),e(cs,{}),e(ls,{children:e(gt,{showSmsMarketingOptIn:s})}),e(b,{extensions:a})]})})}function vt(){const s=X(),n=s.email.value,o=s.phone.value,i=j(),{isOrderEditCheckout:a}=te(),t=ds(),[c,h]=ye(!1),l=v({customerAccount:n&&typeof n=="string"&&t,default:!1}),{VaultedContact:g}=H(),d=v({businessCustomer:!1,shopPay:!1,default:!0}),u=l&&e(tt,{email:n,open:c,showPopover:p=>{h(p)}});if(a&&d){const p=n||o;return e(C,{children:[e(us,{id:"contact",label:i("contact.contact_method_title","Contact"),summary:p?e("p",{children:p}):e(hs,{})}),u]})}return e(C,{children:[e(g,{emailAddress:n}),u]})}const St="ILN3z",pe={DivideChildren:St,"DivideChildren--no-initial-divider":"TiyE2","DivideChildren--no-final-divider":"wyrwY","DivideChildren--final-mobile-divider":"_8S1mj"};function He({hideLastDivider:s}){const n=Me(),{negotiate:o}=Ce(),{isOrderEditCheckout:i}=te(),{shippingRequired:a}=ve(),{shippingRequired:t}=ve(),c=i&&t,h=ps(),{VaultedPayment:l,ReviewNotice:g,VaultedDelivery:d,VaultedBillingAddress:u,VaultedCashRedemption:p}=H(),k=Ke(),r=ms(),P=v({guest:!0,default:!1}),f=v({businessCustomer:n.payment,guest:!0,default:!1}),M=v({amazonPay:!0,buyWithPrime:!0,payPal:!0,googlePay:!0,shopPay:!0,default:!1}),x=v({businessCustomer:!0,default:!1}),R=n.delivery&&(a||c&&i),D=v({businessCustomer:!a||h,default:!1}),A=[...n.contact?[e(vt,{},"contact")]:[],...R?[e(d,{},"delivery")]:[],...I()];if(se(()=>{A.length>0&&o({silenceViolations:["all"]})},[]),A.length===0)return null;return e(G,{...{},children:[r?e(nt,{}):null,r&&M?e(gs,{below:"large",children:e(O,{})}):null,k&&e(g,{}),e("div",{className:ys({[pe.DivideChildren]:!0,[pe["DivideChildren--no-final-divider"]]:s||f===!0,[pe["DivideChildren--no-initial-divider"]]:P,[pe["DivideChildren--final-mobile-divider"]]:x}),children:A})]});function I(){if(i)return n.payment?[e(l,{},"payment")]:[];const _=[];return D&&_.push(e(u,{},"businessCustomerBilling")),n.payment&&(_.push(e(l,{},"payment")),_.push(e(p,{},"cashRedemption")),n.billing&&!D&&_.push(e(u,{},"billingAddress"))),_}}function Ze({includeContactAfterExtensions:s}={includeContactAfterExtensions:!1}){const n=Me(),o=S("Checkout::Contact::RenderAfter"),i=S("Checkout::Dynamic::Render","INFORMATION1"),a=S("Checkout::Dynamic::Render","INFORMATION2"),t=S("Checkout::Dynamic::Render","DELIVERY1"),c=S("Checkout::Dynamic::Render","DELIVERY2"),h=S("Checkout::Dynamic::Render","PAYMENT1"),l=S("Checkout::Dynamic::Render","PAYMENT2"),g=S("Checkout::Dynamic::Render","PAYMENT3");return B(()=>{let d=[];return n.contact&&(d=[...s?o:[],...i,...a]),n.delivery&&(d=[...d,...t,...c]),n.payment&&(d=[...d,...h,...l,...g]),d},[n,s,o,i,a,t,c,h,l,g])}function Ot({children:s}){const n=fs(),o=X().email.value,{progress:i}=Ce(),{shippingRequired:a}=ve(),t=Me(),[c]=vs(),{postPurchaseEnabled:h}=Ss(),l=j(),g=Ps(),d=Cs(),{isOrderEditCheckout:u}=te(),{emailMarketing:p,smsMarketing:k}=Pe(),r=it(),P=We(),f=Ke(),M=p!=="OFF",x=bs(),R=xe(),D=Ms(),{value:A}=Ye(),E=Ee(ks),I=Je(),{value:_}=we(),q=!_?.some(ln=>As.has(ln.code))&&r.hasViolation&&r.lineItems.length>0;ht(),se(()=>{q&&P("inventoryPriceChange",{element:{tagName:"modal"},timestamp:new Date,visible:!0})},[q,P]);const Q=T(()=>{r.updateProposal()},[r]),y=_e({base:!0,medium:!1}),V=_e({base:!1,small:!0}),z=Es(),ie=v({guest:z,customerAccount:z,sdkCartHints:z,externalVault:z,default:!1}),ae=S("Checkout::Contact::RenderAfter"),oe=v({shopPay:g&&!!(y&&!V),default:!1}),W=v({shopPay:M,default:M&&t.contact}),ke=v({shopPay:rt,default:C}),re=E&&!_s(A?.countryCode),ce=v({businessCustomer:!1,sdkCartHints:!!(M&&t.contact&&o),default:W&&!D&&!re&&!u}),U=v({shopPay:"belowPayment",default:t.payment?"belowPayment":"abovePayment"});let $=v({shopPay:!1,businessCustomer:!1,default:k!=="OFF"});R&&!R.smsMarketingEnabled&&($=!1);const Z=a&&!t.delivery?"delivery":t.contact?"root":"contact",le=ce&&U==="belowPayment",de=ce&&U==="abovePayment",L=le&&(y??!1),K=!u&&de&&!d?.acceptsEmailMarketing,J=!u&&$&&Z==="root"&&!d?.acceptsSmsMarketing,en=v({sdkCartHints:C,default:be}),ue=v({guest:t.delivery,businessCustomer:!t.delivery&&t.payment,default:!1}),nn=v({guest:ue&&!(t.contact&&t.payment),businessCustomer:ue,default:!1}),he=t.contact&&!(t.delivery&&t.payment)&&ae.length>0&&(K||J||y)?ae:void 0,{PriceChangeModal:sn,SignUpContact:tn}=H(),{walletPaymentMethods:an}=qe(),on=Ks(an),rn=Ee(Ds),Le=Ze({includeContactAfterExtensions:he===void 0}),{main:{section:cn}}=Is(),F=ws(cn);return e(C,{children:[s,e(m,{spacing:ee.default("none").when({viewportInlineSize:{min:"extraSmall"}},"large200"),children:[u?e(m,{padding:ee.default(["large200","large200","none","large200"]).when({viewportInlineSize:{min:"extraSmall"}},"none"),children:e(xs,{})}):null,e(Rs,{section:"top"}),e(Vs,{onSubmit:()=>i(void 0,{skipToCompletion:f}),children:[e("div",{ref:on,children:e(ge,{hideDivider:t.payment&&!L,condition:!F,accessibilityLabel:l("contact.contact_method_title","Contact"),children:[ie&&e(C,{children:[e(ge,{condition:F,hideDivider:!0,padding:oe?"none large-200 large-200 large-200":void 0,children:e(m,{spacing:"none",children:e(N,{sectionId:"expressCheckout",children:e(Y,{section:"expressCheckout",children:e(Js,{})})})})}),e(Xs,{})]}),e(ge,{condition:F,padding:!ie&&oe?"none large-200 large-200 large-200":void 0,accessibilityLabel:l("contact.contact_method_title","Contact"),children:e(m,{spacing:"none",children:[!t.contact&&e(Se,{section:"contact",children:e(Y,{section:"contact",children:e(pt,{showSmsMarketingOptIn:!u&&$&&Z==="contact"})})}),!ue&&e(He,{hideLastDivider:F}),x&&e(Xe,{variant:"minimal"}),!F&&e(Y,{section:"contact",children:e(De,{renderAsVaulted:!0,showMarketingDisclosure:K||L,showSmsMarketingOptIn:J&&U!=="belowPayment",afterContactExtensions:he})})]})})]})}),e(tn,{}),F&&e(Y,{section:"contact",children:e(De,{showMarketingDisclosure:K,showSmsMarketingOptIn:J&&U!=="belowPayment",afterContactExtensions:he})}),nn&&a&&e(Ts,{condition:ue,accessibilityLabel:l("shipping.delivery_title","Delivery"),children:e(He,{hideLastDivider:F})}),!I&&Le.length?e(Ie,{extensions:Le,hideDivider:"whenEmpty"}):null,!t.delivery&&a&&e(Re,{target:"cart.deliveryGroups[0].deliveryAddress",children:e(Se,{section:"delivery",children:e(Y,{section:"delivery",children:e(N,{sectionId:"delivery",children:e(ft,{showSmsMarketingOptIn:!u&&$&&Z==="delivery"})})})})}),n&&e(Pt,{showVaultedStateMarketingDisclosureBelowPayment:le,showVaultedStateMarketingDisclosureOnMobile:L,showPartialVaultedStateSmsMarketingOptIn:J&&U==="belowPayment",isSectionCustomized:F,VaultedStateMarketingDisclosureWrapper:en,includeContactAfterExtensions:he===void 0})]},c),h&&e(Ls,{})]}),e(Os,{}),q&&e(sn,{loading:r.loading,lineItems:r.lineItems,onClose:Q}),a&&e(ut,{}),rn&&e(ke,{}),e(Qs,{id:"OnePage"})]})}function Pt({showVaultedStateMarketingDisclosureBelowPayment:s,showVaultedStateMarketingDisclosureOnMobile:n,isSectionCustomized:o,VaultedStateMarketingDisclosureWrapper:i,showPartialVaultedStateSmsMarketingOptIn:a,includeContactAfterExtensions:t}){const c=j(),h=Me(),l=Je(),g=Bs(),d=js(),{acceptTipPayments:u}=Pe(),{currentDetour:p}=Fs(),k=Ns(),r=v({shopPay:!h.payment,default:!1}),{isOrderEditCheckout:P}=te(),f=_e({base:!0,medium:!1}),M=X().localizationExtensions.value,x=M.length>0,R=ee.default("block").when({viewportInlineSize:{min:"medium"}},"none"),D=ee.default("none").when({viewportInlineSize:{min:"medium"}},"block"),A=ee.default("none").when({viewportInlineSize:{min:"small"}},"block"),{shopifyInstallments:E}=ze(),{setChatHideTriggerNode:I}=Hs(),_=T(L=>{I(f&&L?L:null)},[f,I]),w=s&&!f,Q=xe()?.tippingPaymentAllowed??!0,y=h.payment&&u&&Q,V=v({shopPay:y&&!E(),default:y}),z=zs().isPartner(),ie=B(()=>p?.type==="thankYou"?"Checkout::ThankYou::Dynamic::Render":"Checkout::Dynamic::Render",[p?.type]),ae=S(ie,"ORDER_SUMMARY4"),oe=!!k.value,W=Ze({includeContactAfterExtensions:t}),ke=Us(),{Tips:re,Rewards:ce,CashRedemption:U,Captcha:Ve,MarketingDisclosure:$,BillingSection:Te,PurchaseOptionsAgreement:Z,MobileOrderSummary:le,CheckoutAsGuest:de}=H();return e(C,{children:e(Ae,{min:"medium",accessibilityLabel:c("payment.title","Payment"),hideDivider:!0,children:[ke?e(Gs,{}):null,!h.payment&&e(Se,{section:"payment",children:e(Y,{section:"payment",children:e(Ae,{max:"medium",accessibilityLabel:c("payment.title","Payment"),children:e(ct,{})})})}),!h.payment&&e(U,{}),x&&e(be,{accessibilityLabel:c("localized_fields.additional_information.title","Additional information"),children:e(m,{padding:f?"none":["large400","none","none","none"],children:[e(fe,{level:2,children:c("localized_fields.additional_information.title","Additional information")}),M.map((L,K)=>{const J=`${L.value.key}${K}`;return e(Zs,{localizationExtension:L,index:K},J)})]})}),n&&o&&e(i,{children:e($,{})}),!P&&V&&e(G,{display:R,children:e(N,{sectionId:"tips",children:e(re,{renderInSection:f})})}),f&&l&&W.length?e(Ie,{extensions:W,hideDivider:"whenEmpty"}):null,e(Se,{section:"summary",children:e(Y,{section:"summary",children:e("div",{ref:_,children:[e(Ae,{max:"medium",hideDivider:!0,children:[e(le,{}),e(m,{spacing:"large400",children:[e(m,{spacing:"base",children:[w&&r&&e(m,{spacing:"none",children:[e(O,{spacing:"base"}),e(Ys,{})]}),e(De,{renderAsVaulted:!0,showMarketingDisclosure:w,showSmsMarketingOptIn:a,children:e(Te,{})}),!P&&V&&e(G,{display:D,children:e(N,{sectionId:"tips",children:e(re,{})})}),!f&&l&&W.length?e(Ie,{extensions:W}):null,oe&&e(m,{padding:f?"none":["large400","none","none","none"],children:e(qs,{textProps:{color:"subdued",size:"small"}})})]}),e(m,{spacing:"large200",children:[d&&e(Ve,{}),e(st,{}),g&&e(Z,{}),f&&e(b,{extensions:ae,spacing:"large200"})]})]}),e(ce,{}),!z&&e(C,{children:[e(O,{spacing:"large100"}),e(G,{inlineAlignment:"center",children:e(de,{})}),e(G,{display:A,children:e(O,{spacing:"base"})})]})]}),z&&e(C,{children:[e(O,{spacing:"large100"}),e(G,{inlineAlignment:"center",children:e(de,{})}),e(O,{spacing:"base"})]})]})})})]})})}function De({showMarketingDisclosure:s,showSmsMarketingOptIn:n,afterContactExtensions:o,renderAsVaulted:i,children:a}){const{MarketingDisclosure:t}=H();return!s&&!n&&!o?a:e(Re,{target:"cart.buyerIdentity",children:e(ge,{condition:!i,children:e(m,{spacing:i?"base":void 0,padding:i?["base","none","none","none"]:void 0,children:[(s||n)&&e(m,{spacing:s&&n?"base":"none",children:[s&&e(t,{}),n&&e($e,{})]}),o&&e(b,{extensions:o}),a]})})})}function Ie({extensions:s,hideDivider:n="always"}){return e(be,{hideDivider:n,children:e(b,{spacing:"base",extensions:s})})}export{De as PartialVaultedMarketingConsentMarkup,Ie as VaultedExtensionsSection,Ot as default}; }