1import{u as e,l as n,q as t,_ as a,v as i,S as s,C as r,z as o,t as c,N as l,w as d,x as u,m,s as h,F as p}from"./2c1ab0fe.GMbxnz74.js";import{f9 as f,fa as b,fb as v,B as g,dA as y,d1 as _,de as k,d as w,f as j,w as C,c as S,U as A,a3 as x,df as P,dg as z,cX as M,L as T,l as L,o as R,W as I,fc as E,J as D,a as F,aX as N,aV as O,aW as B,P as V,cC as U,b as $,fd as H,ee as G,fe as W,bu as X,i as q,a6 as J,dC as K,ff as Y,e as Q,a8 as Z,e8 as ee,V as ne,X as te,H as ae,n as ie,et as se}from"./164ad2e3.BmqNdq2P.js";import{aZ as re,W as oe,S as ce,b6 as le,eV as de,au as ue,ak as me,bH as he,ab as pe,T as fe,ai as be,ac as ve}from"./4c290a1e.2OXqqQwu.js";import{C as ge}from"./a535174a.Yxr5rpZ6.js";import{u as ye,S as _e,P as ke,L as we,R as je}from"./73a9b0a0.CQfFMcRa.js";import{M as Ce}from"./ccdf3592.CPmKJLin.js";import{P as Se}from"./fc21c11a.B6d5Pp4f.js";import{u as Ae,e as xe,G as Pe,T as ze}from"./f3fe2775.ChzXrCys.js";import{a as Me,H as Te}from"./0e9ee714.CmOp6ueK.js";import{a as Le,W as Re,P as Ie}from"./c10167e6.CsoyrtBa.js";import{f as Ee,g as De,h as Fe,L as Ne,j as Oe,k as Be,l as Ve,m as Ue,n as $e,U as He,V as Ge,P as We}from"./f8706cb6.CoirY056.js";import{y as Xe,z as qe,E as Je,u as Ke,a as Ye,b as Qe,g as Ze,V as en,e as nn}from"./86720dbb.Ct5aj3SV.js";import{P as tn}from"./01973ac7.CfaArRQd.js";import{p as an,b as sn}from"./app.iZwEIta_.js";import{a as rn,b as on}from"./87bfafec.Beljf8If.js";import{P as cn}from"./e3e348f2.DoE2sBpq.js";import{b as ln,c as dn,S as un}from"./dfca5da5.Fvk36gmC.js";import{S as mn}from"./79974aab.Cq6Neu5K.js";import{S as hn}from"./39921a74.CFM70_Q1.js";import{O as pn}from"./7a8217fd.DRC5-yl-.js";import{MobileOrderSummary as fn}from"./d2e6a587.UnCj4dqr.js";import{u as bn}from"./4ea44c06.CMZnl2AU.js";import{v as vn}from"./dffdfb34.Dpoh_xX8.js";import{u as gn}from"./0a7dffce.BIRsKacx.js";import"./9f047e05.Bp-gLL-x.js";import"./5fda1420.C7SyMXTh.js";import"./60a453ce.fEeMtJEq.js";import"./21cc90a2.BYvnDDaS.js";import"./bb728e1c.D-ELh9cQ.js";import"./5fd968f2.BZrBHkqx.js";import"./91319467.DppLddIz.js";import"./0e67bd3b.DOcRijTT.js";import"./74835653.BSuX4rG5.js";import"./31cc568e.udVq2alB.js";import"./29034f35.B7Z7JU9E.js";import"./ac5a19ff.DlwW5UC8.js";import"./47b970b2.B-hNfQZG.js";import"./0727407f.C7yJLDwL.js";import"./064f6ac1.DqrP83xw.js";import"./53bbdad9.Z4N3tZKQ.js";import"./efa0389a.BaeWUwuC.js";import"./e0989459.CCPu1541.js";import"./1ed8f5e3.DkmKdCgD.js";import"./7ee73f43.BrOKc0ZE.js";import"./cb5cf153.C5Ippw9f.js";import"./cb38e5c2.Di0VF2ns.js";import"./0c0ad074.BYdsTJAo.js";import"./945a08d6.CQ6Hfz3C.js";import"./e477f96c.C25EBhFr.js";import"./55098bf1.8h6_nu_5.js";import"./598fef4e.DTBD4kzt.js";import"./e77f7fe0.Cq2mLjfT.js";import"./a422df8c.Dcy8n41E.js";import"./cc6ff67d.BpIrWxUy.js";import"./08a3b809.C53JtSED.js";import"./bff2ff9b.dZiLBpKk.js";import"./e39bc11c.mSpfzD2E.js";import"./cf29e63b.B2McWB3h.js";import"./ec391382.D2dArcp8.js";import"./58314944.ZUK41gg1.js";import"./b9c0319a.6uFzHo90.js";import"./f1968089.BT5yIsbK.js";import"./3a819064.D5LTh6Qs.js";import"./6720fa5f.DvQHpC_1.js";import"./2b89a178.BBNEoYrD.js";import"./b684bff6.9cHCtOaB.js";import"./ed9f2238.OL0ogUQT.js";import"./910cd6e2.B2dUNATe.js";import"./347b440c.BOPV79c3.js";import"./d5d34b3b.KVrpsmYg.js";import"./181d38d3.CU4WuTr-.js";import"./d6447d9e.so38cQCJ.js";import"./f49d4216.BpQn4XLS.js";import"./f51e663e.0jgrFL1L.js";import"./64de7b49.3gNLw9g0.js";import"./8e79be58.DxsDx_ZB.js";import"./90e26f5f.BU9IB2gY.js";import"./2fdb3dd3.DcIdY-nh.js";import"./ca5e9c49.DpiukyMw.js";
1import"./f3e117aa.C9fUOXJv.js";import"./a25deb9a.clFimxdI.js";import"./7b0c98ea.DbgJLP1v.js";import"./7114e006.CeS-dcri.js";import"./f692f62f.DHgy7Fzw.js";import"./d22d2b80.Ctm_-AEm.js";function yn(){const n=f();return Ee({ineligibilityReasonLabel:n}),e(Le,{ineligibilityReason:n})}function _n({selectorShowsTiles:s,children:r}){const{buyerHasActedSignal:o}=re(),c=Xe(),l=n(null),d=n(null),u=n(!1),m=n(!1),h=t(null);m.current=s.value&&o.value,a(()=>{const e=d.current;if(!e||"undefined"==typeof MutationObserver)return;const n=new MutationObserver(n=>{if(!e.hasChildNodes())return u.current=!1,void(h.value=null);n.some(e=>e.addedNodes.length>0)&&m.current&&an()&&(u.current=!0,h.value={from:sn(),withMotion:c.loaded})});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[h,c]),a(()=>{if(u.current){u.current=!1;for(const e of[l.current,d.current])for(const n of e?.getAnimations?.()??[])n.cancel(),n.play()}});const p=null!==h.value&&h.value.withMotion;return e("div",{ref:l,className:i("x4UOe",p&&"SGLj7",p&&Je),children:e("div",{ref:d,className:i("_2hShs",p&&qe[h.value?.from??"end"]),children:r})})}const kn=n=>e(g,{children:n});function wn({customizations:n,selectorShowsTiles:t}){return 0===n.length?null:e(s,{children:n.map(n=>"uiExtension"===n.kind?e(_n,{selectorShowsTiles:t,children:e(b,{extension:n.extension,render:kn})},n.extension.id):e(v,{field:n.field},n.field.key))})}const jn=l(function(){const{checkout:n,i18n:a,source:i,shop:l}=ce(),{acceptTipPayments:u,discountCodesEnabled:m}=l,h=ye(),p=k(),f=m&&p.value;Ae(),function(){const{payment:e,directPaymentFieldsFilled:n}=re(),{paymentLines:t,directPaymentErrors:a}=oe(),i=De();r(()=>{const s=i.value||(r=a,Object.keys(r).filter(e=>"paymentMethodIdentifier"!==e).some(e=>null!=r[e].value));var r,o,c;e.value=(o=t.value,c=n.value,o.some(e=>"direct"!==e.method.type||Boolean(e.method.sessionId)||c)&&!s)})}();const b=y(),v=function(){const{checkout:e}=ce(),{displayedPaymentMethods:n}=Ke({experienceType:"list"}),t=o(Ye(n)),a=y(),i=_(),s=Qe(),r=rn();return c(()=>{const n=null!==Ze(e.identity,r.value)||s.value.freeOrder||s.value.giftCard||s.value.storeCredit||s.value.redeemables,o=!i.value&&("inContext"===a.value||"afterPayment"===a.value);return e.configuration.visibility.showStoreCreditRedemption.value&&!n&&"singlePaymentMethodCreditCard"===t.value.mode&&o})}(),g=c(()=>n.configuration.visibility.showStoreCreditRedemption.value&&!v.value),T=w().value,L=j(),R=c(()=>function({identity:e}){switch(e.current.value){case"guest":case"customerAccount":case"shopPay":return!0;default:return!1}}({identity:n.identity})),I=L?.tippingPaymentAllowed??!0,E=!le(i)&&u&&I&&n.configuration.visibility.showTips,D=c(()=>n.installments.isSupported.value),F=Me(),N=Fe({showTips:E,billingFormPosition:b.value}),O=C("purchase.checkout.payment-method-list.render-before"),B=C("purchase.checkout.payment-method-list.render-after"),V=t(!1);return e(M,{target:"cart.paymentLines[0]",children:e(S,{accessibilityRole:"group",accessibilityLabelledBy:"payment",gap:"base",children:[e(Cn,{}),e(A,{customizations:O}),e(tn,{}),e(Ne,{}),e(d,{when:g,children:e(xe,{})}),e(d,{when:D,children:e(yn,{})}),e(x,{children:e(S,{gap:"large-300",children:[e(Re,{dynamicPaymentExtensions:N.shift()||[],children:[e(Ie,{selectorShowsTiles:V,renderVaultingAgreementInline:!1,afterPaymentSelector:e(d,{when:F,children:e(Te,{})})}),e(d,{when:h,children:e(_e,{})}),e(wn,{customizations:B,selectorShowsTiles:V}),e(wn,{customizations:N.shift()||[],selectorShowsTiles:V}),e(d,{when:R,children:e(Pe,{})})]}),e(d,{when:v,children:e(xe,{})}),T&&e(en,{}),e(d,{when:n.configuration.visibility.showPurchaseOrderNumberField,children:e(nn,{showHeading:!1})}),E&&e(s,{children:[e(P,{sectionId:"tips",children:e(ze,{})}),e(A,{customizations:N.shift()||[]})]}),e(A,{customizations:N.flat()}),f&&e(z,{targetSelector:'input[name="reductions"]',icon:"discount",label:a.translate("order_summary.discount_discovery.add_code")})]})})]})})});function Cn(){const{router:n}=ce(),t="payment",a=c(()=>Oe(n,t));return e(ke,{headingId:t,autoFocus:a.value})}function Sn({href:n,children:t,onClick:a}){return e(T,{tone:"monochrome",href:n,onClick:a,children:t})}function An({onClick:n}){const{i18n:t}=ce();return e(Sn,{href:"https://www.shopify.com/legal/cookies",onClick:n,children:t.translate("user_consent.policy")})}function xn({onClick:n}){const{i18n:t}=ce();return e(Sn,{href:"https://help.shop.app/en/shop/shopping/ads-personalization",onClick:n,children:t.translate("user_consent.detailed_view.learn_about_ads")})}function Pn({title:n,description:t,checked:a,onChange:i,disabled:s,badgeLabel:r}
1){const o=e(R,{children:t});return e(S,{gap:"small-200",children:[e(S,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(R,{type:"strong",children:n}),r?e(E,{color:"subdued",children:r}):null]}),e(D,{gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gap:"base",alignItems:"start",children:[o,e(hn,{checked:a,onChange:i,disabled:s,accessibilityLabel:n})]})]})}function zn({open:n,onClose:t,onConsentSaved:a}){const{consentManager:i,i18n:s,shopPay:r}=ce(),o=r.user.shopAccountUuid,c=o.value,l=i.trackingConsentSelection?.value,d=void 0!==l,[p,f]=u(!1),[b,v]=u(!1),[y,_]=u(!1),[k,w]=u(null),[j,C]=u(!1);m(()=>{if(!n)return;const e=i.trackingConsentSelection?.peek();f(e?.analytics??!1),v(e?.marketing??!1),_(!1),w(null),C(!1)},[i,c,n]),m(()=>{n&&!y&&l&&(f(l.analytics),v(l.marketing))},[y,n,l]);const A=h(async()=>{if(j||!d)return;const e=o.value;C(!0),w(null);const n=await i.setTrackingConsent({analytics:p,marketing:b});r.user.shopAccountUuid.value===e&&(n.success?(a?.(),t()):w(s.translate("user_consent.error_saving_consent")),C(!1))},[p,i,s,d,j,b,a,t,r,o]),x=s.translate("user_consent.detailed_view.description",{cookie_policy_href:e(An,{})}),P=e(g,{inlineSize:"@media (inline-size >= small) auto, 100%",children:e(L,{variant:"primary",onClick:A,inlineSize:"fill",loading:j||!d,disabled:j||!d,children:e(g,{minInlineSize:"100px",inlineAlignment:"center",children:e(R,{children:s.translate("user_consent.detailed_view.save")})})})});return e(pn,{heading:s.translate("user_consent.title"),accessibilityLabel:s.translate("user_consent.manage"),open:n,onHide:t,primaryAction:P,children:e(S,{gap:"base",children:[e(S,{gap:"small-200",children:[k&&e(I,{tone:"critical",children:k}),e(R,{children:x})]}),e(S,{gap:"base",children:[e(Pn,{title:s.translate("user_consent.detailed_view.necessary"),description:s.translate("user_consent.detailed_view.necessary_description"),checked:!0,disabled:!0,badgeLabel:s.translate("user_consent.detailed_view.required")}),e(Pn,{title:s.translate("user_consent.detailed_view.analytics"),description:s.translate("user_consent.detailed_view.analytics_description"),checked:p,onChange:e=>{f(e),_(!0)},disabled:j||!d}),e(Pn,{title:s.translate("user_consent.detailed_view.advertising"),description:s.translate("user_consent.detailed_view.advertising_description",{learn_about_ads_href:e(xn,{})}),checked:b,onChange:e=>{v(e),_(!0)},disabled:j||!d})]})]})})}function Mn(){const{consentManager:i,i18n:r,observability:o,shopPay:c}=ce(),l=c.user.shopAccountUuid,[p,f]=u(!1),[b,v]=u(null),[y,_]=u(l.value),k=t(!1),w=n(void 0);m(()=>{y!==l.value&&(_(l.value),k.value=!1,v(null))},[k,y,l.value]);const j=h(()=>{v(null),f(!0)},[]),C=h(()=>{f(!1)},[]),A=h(()=>{k.value=!0},[k]),x=h(async()=>{const e=l.value;v(null);const n=await i.acceptAll();c.user.shopAccountUuid.value===e&&(n.success?A():v(r.translate("user_consent.error_saving_consent")))},[A,r,c,l,i]),P=h(async()=>{const e=l.value;v(null);const n=await i.rejectAll();c.user.shopAccountUuid.value===e&&(n.success?A():v(r.translate("user_consent.error_saving_consent")))},[A,r,c,l,i]),z=A,M=y===l.value,T=M&&(i.shouldShowBanner.value||k.value),L=function(e,t){const i=n(null),s=n(e),r=n(!1),o=n(null);if(s.current&&!e&&"undefined"!=typeof document){const e=i.current,n=document.activeElement,t=e&&n instanceof HTMLElement&&e.contains(n),a=e&&N(e);r.current=Boolean(t),o.current=t&&a?O(a):null}return s.current=e,a(()=>{if(!r.current||!t)return;r.current=!1;const n=e?i.current&&B(i.current):o.current;o.current=null,n?.isConnected&&document.activeElement===document.body&&n.focus({preventScroll:!0})},[t,e]),i}(T,M),R=n(T);m(()=>{const e=!R.current&&T;if(R.current=T,e)return F({content:r.translate("user_consent.title")})},[r,T]),m(()=>{M&&w.current!==l.value&&(w.current=l.value,o.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:T}}))},[M,T,l.value,o]);const E=e(S,{gap:"small-300",children:[b&&e(I,{tone:"critical",children:b}),e(d,{when:k,fallback:e(Tn,{onAcceptAll:x,onManageCookiesClick:j,onRejectAll:P}),children:e(Ln,{onManageCookiesClick:j})})]}),D=e(zn,{open:p,onClose:C,onConsentSaved:z});if(!T)return null;const V=e(g,{ref:L,background:"subdued",borderRadius:"large",padding:"base",children:e(S,{gap:"base",accessibilityRole:"group",accessibilityLabel:r.translate("user_consent.title"),children:E})});return e(s,{children:[V,D]})}function Tn({onManageCookiesClick:n,onAcceptAll:t,onRejectAll:a}){const{i18n:i}=ce(),[s,r]=u(null),o=null!==s,c=h(async()=>{o||(r("accept"),await t(),r(null))},[o,t]),l=h(async()=>{o||(r("reject"),await a(),r(null))},[o,a]);return e(S,{gap:"base",children:[e(R,{type:"strong",children:i.translate("user_consent.accelerated_view.title")}),e(V,{children:e(R,{children:i.translate("user_consent.accelerated_view.description",{cookie_policy_href:e(An,{})})})}),e(S,{direction:"inline",gap:"small-200",children:[e(L,{inlineAlignment:"center",onClick:c,size:"small",variant:"secondary",loading:"accept"===s,disabled:o,children:i.translate("user_consent.accelerated_view.accept_all")}),e(L,{inlineAlignment:"center",onClick:l,size:"small",variant:"secondary",loading:"reject"===s,disabled:o,children:i.translate("user_consent.accelerated_view.reject_all")}),e(L,{inlineAlignment:"center",onClick:n,size:"small",variant:"plain",textDecoration:"none",disabled:o,accessibilityLabel:i.translate("user_consent.manage"),children:i.translate("user_consent.accelerated_view.manage")})]})]})}function Ln({onManageCookiesClick:n}){const{i18n:t}=ce();return e(g,{autoFocus:!0,children:e(R,{children:t.translate("user_consent.accelerated_view.consent_collected",{manage_cookies_href:e(Rn,{onManageCookiesClick:n})})})})}function Rn({onManageCookiesClick:n}){const{i18n:t}=ce();return e(Sn,{onClick:n,children:t.translate("user_consent.manage")})}Sn.displayName="CookiesLink";const In=e=>(e=>"ShopCashCheckoutCashbackIncentive"===e.__typename)(e)&&e.expectedAmount.amount>0,En=e=>(e=>"ShopCashCheckoutFlatAmountCashbackIncentive"===e.__typename)(e)&&e.minimumOrderValueSatisfied,Dn="https://cdn.shopify.com/shop-assets/static_uploads/shop-cash/",Fn=`${Dn}checkout_banner_coin_light.png`,Nn=`${Dn}checkout_banner_coin_light_2x.png`,On=`${Dn}checkout_banner_coin_light_4x.png`,Bn=`${Dn}checkout_banner_coin_dark.png`,Vn=`${Dn}checkout_banner_coin_dark_2x.png`,Un=`${Dn}checkout_banner_coin_dark_4x.png`,$n=({expectedAmount:n,incentives:t,i18n:a,darkMode:s,incentivePresentation:r})=>{const o=null!=n&&0!==n.amount,c=o?a.formatCurrency(n.amount,{currency:n.currencyCode}):"",l=o?(({i18n:e,incentives:n,formattedTotalAmount:t})=>
1{if(!n||0===n.length)return;const a=n.find(In),i=n.find(En),s=a?.displayName;if(a&&s&&i){const n=e.formatCurrency(a.expectedAmount.amount,{currency:a.expectedAmount.currencyCode}),r=e.formatCurrency(i.cashbackAmount.amount,{currency:i.cashbackAmount.currencyCode});return{title:e.translate("shop_cash.rewards_banner_title",{formattedAmount:t}),description:e.translate("shop_cash.reward_banner_description_combined_rewards",{promotionAmount:n,promotionDisplayName:s,offerAmount:r})}}if(a&&s&&!i){const n=e.formatCurrency(a.expectedAmount.amount,{currency:a.expectedAmount.currencyCode}),t=a.remainingRewardLimit?.amount===a.expectedAmount.amount;return{title:e.translate("shop_cash.reward_banner_title_with_promotion_attribution",{formattedAmount:n,promotionDisplayName:s}),description:t?e.translate("shop_cash.reward_banner_description_max"):void 0}}})({i18n:a,incentives:t,formattedTotalAmount:c}):void 0,d=o?l?.title??a.translate("shop_cash.rewards_banner_title",{formattedAmount:c}):"",u=l?.description,m=u?`${d} ${u}`:d,h=o&&(t?.some(e=>En(e)||In(e))??!1);if(Be(r,"cashbackBanner",h?m:void 0),!o)return null;const p=s?Bn:Fn,f=s?Vn:Nn,b=s?Un:On,v=i("F7fwo",s?"iJGCf":"gXkBh");return e(S,{direction:"inline",alignItems:"center",gap:"small-300",className:v,borderRadius:"large",children:[e(U,{src:p,srcSet:`${p} 1x, ${f} 2x, ${b} 4x`,aspectRatio:"auto"}),u?e(S,{direction:"block",gap:"none",className:"VnjPc",children:[e(R,{children:d}),e(R,{type:"small",children:u})]}):e(R,{children:d})]})};function Hn(){const{i18n:n}=ce(),t=Ve(),{isEarningCashback:a,cashback:i,incentivePresentation:s}=on();return a&&i?e(g,{children:[e($,{blockSize:"large-200"}),e($n,{expectedAmount:i.expectedAmount,incentives:i.incentives,i18n:n,darkMode:t,incentivePresentation:s})]}):null}function Gn(){const{embed:n,router:t}=ce(),a=t.currentUrl.value,{label:i}=H(),s=G({clearPii:!0}),r=W(),{isAppLayout:o}=X(),{progressing:c}=q(),{setEditorShopPay:l}=vn(),d=h(()=>{l?l(!1):c.value||s()},[l,c,s]);return r||n?.isCheckoutKit()||!o&&!de(a.search)?e(T,{onClick:d,textDecoration:"none",children:i}):null}function Wn(){const n=function(){const e=gn(),n=h(()=>{(e=>{ue()?e.bridge.iframeClosed():window.close()})(e)},[e]);return n}(),t=me(),a=J({base:!0,small:!1}),i=he()&&(!t.value||(a??!1)),{i18n:s,shop:{name:r},shopPay:o}=ce();if(!o.visibility.showReturnToStore)return null;if(!i)return null;const c=s.translate("shop_pay_external.return_to_store",{shopName:r});return e(S,{alignItems:"center",children:[e($,{blockSize:"base"}),e(T,{onClick:n,children:c})]})}function Xn(){const{checkout:{identity:n},source:t,shopPay:a,mobileCheckoutSdk:i}=ce(),{visibility:{showCheckoutAsGuestFeature:r}}=a;if("shopPay"!==n.current.value||!r)return null;const o="shopPayExternal"===t.type?e(Wn,{}):e(Gn,{}),c=i.variant.isPartner();return e(s,{children:[e($,{blockSize:"large-100"}),e(g,{inlineAlignment:"center",children:o}),c?e($,{blockSize:"base"}):e(g,{display:"@media (inline-size >= small) auto, none",children:e($,{blockSize:"base"})})]})}const qn=l(function({onReady:n,includeContactInVaultedExtensions:t,showMobileOrderSummary:a,showVaultedStateMarketingDisclosureBelowPayment:i,phoneMarketingPlacement:r,isSectionCustomized:l,showVaultedStateMarketingDisclosureOnMobile:u,expressCheckoutSlot:h,showVaultedCardConsentSpacing:f}){const b=K(),v=Y(),y=pe(),_=bn(),{checkout:k,embed:w,i18n:x,mobileCheckoutSdk:z,source:M,shop:T,shopPay:L}=ce(),R=Q(),I=fe().managedByMarketsPro,E=o(J({base:!0,medium:!1})),D=me(),F=Z(),N=c(()=>F.configurationSignal.value.main.spacing),O=c(()=>{const{position:e}=F.configurationSignal.value.reductions;return L.visibility.shouldRenderFloatingShopPayButton?"none":"base"===e?"large-200":a.value&&null!=N.value?be(N.value)??"base":"base"}),{localizationExtensions:B}=oe(),V=c(()=>B.value.length>0),U=c(()=>f?.value&&!V.value?"large-200":"none"),H=Jn(E),G=c(()=>i.value&&!u.value&&(!E.value||!l.value)),W=c(()=>"belowPayment"===r.value),X=j(),q=o(X?.tippingPaymentAllowed??!0),se=c(()=>b.value.payment&&T.acceptTipPayments&&q.value&&k.configuration.visibility.showTips),re=ee(),de=z.variant.isPartner(),ue=c(()=>"shopPay"===k.identity.current.value&&"shopPayExternal"!==M.type&&""!==L.user.shopAccountUuid.value&&!le(M)),he=e(d,{when:ue,children:e(Mn,{})}),ye=c(()=>"thankYou"===R.value.currentDetour?.type?"Checkout::ThankYou::Dynamic::Render":"Checkout::Dynamic::Render"),_e=C(ye.value,"ORDER_SUMMARY4"),ke=c(()=>"wallets"!==h.value&&Boolean(I.value)),Ae=Ue({includeContact:t}),xe=c(()=>!E.value&&!le(M)&&se.value),Pe=c(()=>!E.value&&v.value&&Ae.value.length>0),Me=c(()=>xe.value||Pe.value||ke.value);m(()=>{const e=setTimeout(n,0);return()=>clearTimeout(e)},[n]);const Te=T.hasFlagEnabled(ve),Le=e(d,{when:a,children:e(fn,{})}),Re=e(S,{gap:"base",children:[e(d,{when:xe,children:e(g,{display:"@media (inline-size >= medium) auto, none",children:e(P,{sectionId:"tips",children:[e(d,{when:()=>!l.value,children:e($,{blockSize:"large-300"})}),e(ze,{})]})})}),e(d,{when:Pe,children:e(Ge,{extensions:Ae})}),e(d,{when:ke,children:e(S,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:e(Ce,{textProps:{color:"subdued",size:"small"}})})})]});return e(s,{children:e(ln,{min:"medium",accessibilityLabel:x.translate("payment.title"),hideDivider:!0,children:[e(d,{when:()=>!b.value.payment,children:e(s,{children:[e(ne,{section:"payment",children:e(te,{section:"payment",children:e(ln,{max:"medium",accessibilityLabel:x.translate("payment.title"),children:e(jn,{})})})}),e(d,{when:k.configuration.visibility.showCashRedemption,children:e($e,{})}),e(He,{})]})}),e(d,{when:V,children:e(dn,{accessibilityLabel:x.translate("localized_fields.additional_information.title"),children:e(S,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:[e(ae,{level:2,children:x.translate("localized_fields.additional_information.title")}),e(p,{each:B,children:(n,t)=>e(we,{localizationExtension:n,index:t})})]})})}),e(d,{when:()=>E.value&&!le(M)&&se.value,children:e(g,{display:"@media (inline-size >= medium) none, auto",children:[e(P,{sectionId:"tips",children:e(ze,{renderInSection:E})}),e(d,{when:()=>!w?.isFlagshipPartner,children:e(un,{spacing:be(N.value)})})]})}),e(d,{when:()=>E.value&&v.value&&Ae.value.length,children:e(Ge,{extensions:Ae,hideDivider:"whenEmpty"})}),e(ne,{section:"summary",children:e(te,{section:"summary",children:e("div",{ref:H,children:[e(mn,{target:"mobileOrderSummary",children:e(ln,{max:"medium",hideDivider:!0,children:[e(d,{when:()=>!0===E.value,children:e(je,{})}),e(We,{showEmailMarketingOptIn:G,showPhoneMarketingOptIn:W,paddingBlockStart:U}),!Te&&Le,e(S,{gap:O.value,"data-testid":"onepage-pay-button-cluster",children:[Te?e(s,{children:[Le,e(d,{when:Me,children:Re})]}):Re,e(d,{when:()=>!0!==E.value,children:e(je,{})}),e(S,{gap:"large-200",children:[e(d,{when:_,children:e(ge,{})}),e(d,{when:y,children:e(cn,{placement:"above-pay-button"})}),e(Se,{buttonHidden:re}),e(d,{when:y,children:e(cn,{placement:"default"})}),e(d,{when:()=>!D.value||E.value,children:e(ie,{above:"medium",children:e(A,{customizations:_e,gap:"large-200"})})})]})]}),e(d,{when:k.configuration.visibility.showShopCashRewardsBanner,children:e(Hn,{})}),de?null:e(s,{children:[e(Xn,{}),he]})]})}),de?e(s,{children:[e(Xn,{}),he]}):null]})})})]})})});function Jn(e){const{setTriggerNode:n}=se("chat"),a=t(null);return r(()=>{n(e.value?a.value:null)}),h(e=>{a.value=e},[a])}export{qn as default,Jn as useChatHideTriggerRef};
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.