1import{u as e,g as n,o as t,_ as a,m as i,S as s,p as r,s as o,k as c,N as l,w as d,z as u,h as m,q as h,H as p}from"./2c1ab0fe.XVnTovwp.js";import{f5 as f,f6 as b,f7 as v,b as g,dF as y,d4 as _,dk as j,Q as k,R as w,n as C,S,U as A,h as x,dl as P,dm as z,c_ as M,L as R,B as T,i as L,a8 as E,aC as I,aa as D,z as O,b8 as B,b6 as N,b7 as F,f as $,cI as U,d as H,f8 as V,eg as G,f9 as J,bJ as Y,r as K,o as Q,dH as q,fa as W,j as X,am as Z,ec as ee,ae as ne,af as te,H as ae,$ as ie,p as se}from"./164ad2e3.hrg71Gqs.js";import{a as re,j as oe,C as ce,ex as le,ak as de,a8 as ue,bg as me,a3 as he,a6 as pe,a4 as fe}from"./f67abd2c.DYpmk7mw.js";import{C as be}from"./b3389d5c.BkpZshM_.js";import{u as ve,S as ge,P as ye,L as _e,R as je}from"./73a9b0a0.DZ9Y4BR6.js";import{M as ke}from"./0b8657b8.C9VzKoSX.js";import{P as we}from"./fc21c11a.C6QyArma.js";import{u as Ce,e as Se,G as Ae,T as xe}from"./f3fe2775.DhB4E-te.js";import{a as Pe,H as ze}from"./0e9ee714.D3-i9G06.js";import{a as Me,W as Re,P as Te}from"./c10167e6.Ozvdd-Fq.js";import{f as Le,g as Ee,h as Ie,L as De,j as Oe,k as Be,l as Ne,m as Fe,n as $e,U as Ue,V as He,P as Ve}from"./f8706cb6.CCuHlB1I.js";import{y as Ge,z as Je,E as Ye,u as Ke,a as Qe,b as qe,g as We,V as Xe,e as Ze}from"./86720dbb.IevNfB5Y.js";import{a as en}from"./01973ac7.Dzv797oi.js";import{c as nn,e as tn}from"./app.Bke-0Cv3.js";import{a as an,b as sn}from"./bf513f9c.CtAeu42z.js";import{P as rn}from"./e3e348f2.OsWjRUHE.js";import{b as on,c as cn,S as ln}from"./dfca5da5.DaUPQuNF.js";import{S as dn}from"./79974aab.Di299gsN.js";import{S as un}from"./39921a74.Do1iqQQq.js";import{O as mn}from"./7a8217fd.Caa0VLP0.js";import{MobileOrderSummary as hn}from"./d2e6a587.BexYxUnC.js";import{u as pn}from"./e129c76e.D6yRAZT7.js";import{v as fn}from"./dffdfb34.DaTw_R4-.js";import{a as bn}from"./24773686.DHVsBc9s.js";import"./d0bb51ec.Bel_y502.js";import"./60a453ce.Al5ISuVm.js";import"./e12db40c.D-IRYT_x.js";import"./9dba8418.C8BcPjk_.js";import"./81e109b1.DOkM2TK2.js";import"./0e67bd3b.DpcbzdW8.js";import"./74835653.CqvY5rnV.js";import"./3ca8ef7e.CxOwQQjW.js";import"./2495faa4.BfsiRcE8.js";import"./a9fa9fda.DndAb0hJ.js";import"./ca3e798e.DB3SxkCu.js";import"./47b970b2.B0ETP_eT.js";import"./22345fd4.DGbyKJ7j.js";import"./064f6ac1.CIMGQtoa.js";import"./efa0389a.BZq4PXzm.js";import"./4b1c22b7.D2BMozDL.js";import"./e0989459.BtLMUvsr.js";import"./cdfd59e6.B2F-5Hhr.js";import"./e477f96c.h1Qwi61E.js";import"./1ed8f5e3.DNUS73wi.js";import"./7ee73f43.DiwfQ4hU.js";import"./cb5cf153._TKKuh50.js";import"./cb38e5c2.DhFQnkXU.js";import"./1f5e7811.C2FDfyfw.js";import"./0c0ad074.DA2s017X.js";import"./d25d1b95.BK5nRVN2.js";import"./ccdf3592.CUuo0Zrv.js";import"./6f2620f5.k6Q_3Ov6.js";import"./87bfafec.CxwEzGHg.js";import"./434e3b0a.B1BBnK_d.js";import"./55098bf1.B0Ycelf6.js";import"./ac5a19ff.C1LksOgD.js";import"./598fef4e.w_MKrvcK.js";import"./e77f7fe0.DoOL59j8.js";import"./a422df8c.5gfasMpQ.js";import"./cc6ff67d.BrToxuCX.js";import"./08a3b809.D2TiFyOY.js";import"./e39bc11c.8KP_WUjj.js";import"./cf29e63b.Ys3W-wRm.js";import"./71b60e0a.DfPLdYsH.js";import"./ec391382.DcBj_H0N.js";import"./58314944.DulCe-h4.js";import"./b9c0319a.CnqmcDFb.js";import"./65f3d4da.Bb3QiqCm.js";import"./f1968089.C2bDJU-A.js";import"./17e57de1.xgvFRsfl.js";import"./a25deb9a.DX96HOu0.js";import"./945a08d6.CKST5h-A.js";import"./7bc8057b.BnPFuxf4.js";import"./2b89a178.BdhJmmWU.js";import"./b684bff6.CBjxjafd.js";import"./17425706.3FohBTmU.js";import"./6fb6f9d8.CR8dVXT7.js";import"./1444e6bd.EEUHuG1U.js";import"./ed9f2238.Dt1fgOnT.js";import"./78ab3dd0.ee4p6MaY.js";import"./910cd6e2.zkestoDh.js";import"./347b440c.B1Q_ELRi.js";import"./9ce08e25.yvYyG5Hw.js";import"./181d38d3.ClN40Nx_.js";import"./792bb671.B3OvVnSg.js";import"./dae24aab.C7mdClmp.js";import"./d6447d9e.B1NgDA52.js";import"./f49d4216.DnUYR-Hk.js";import"./f51e663e.Bl-KttLW.js";import"./21cc90a2.DHzOO82q.js";import"./64de7b49.Cc4kocRg.js";import"./8e79be58.44bHmOQB.js";import"./90e26f5f.BiKQp8JJ.js";import"./31cc568e.95lmLO5k.js";import"./2fdb3dd3.2t-ogH1O.js";import"./ca5e9c49.CwU78fMC.js";
1import"./f3e117aa.C6YjGO2G.js";import"./1d34c07e.h4dJAaCz.js";import"./7b0c98ea.DNl6VXr2.js";import"./f692f62f.rsCL6xsk.js";import"./9babe369.DIEG_YEx.js";import"./71ae3d5c.DAFuGUTz.js";import"./8599b02a.CZRACGSm.js";import"./d4ea2faa.C62bzcKj.js";import"./fe885b80.DpX5ei01.js";import"./f78726c8.I0TzrQ_b.js";import"./d22d2b80.aQu_QseN.js";function vn(){const n=f();return Le({ineligibilityReasonLabel:n}),e(Me,{ineligibilityReason:n})}function gn({selectorShowsTiles:s,children:r}){const{checkout:{negotiator:o}}=re(),{buyerHasActedSignal:c}=o.context,l=Ge(),d=n(null),u=n(null),m=n(!1),h=oe(s.value&&c.value),p=t(null);a(()=>{const e=u.current;if(!e||"undefined"==typeof MutationObserver)return;const n=new MutationObserver(n=>{if(!e.hasChildNodes())return m.current=!1,void(p.value=null);n.some(e=>e.addedNodes.length>0)&&h.current&&nn()&&(m.current=!0,p.value={from:tn(),withMotion:l.loaded})});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[p,h,l]),a(()=>{if(m.current){m.current=!1;for(const e of[d.current,u.current])for(const n of e?.getAnimations?.()??[])n.cancel(),n.play()}});const f=null!==p.value&&p.value.withMotion;return e("div",{ref:d,className:i("x4UOe",f&&"SGLj7",f&&Ye),children:e("div",{ref:u,className:i("_2hShs",f&&Je[p.value?.from??"end"]),children:r})})}const yn=n=>e(g,{children:n});function _n({customizations:n,selectorShowsTiles:t}){return 0===n.length?null:e(s,{children:n.map(n=>"uiExtension"===n.kind?e(gn,{selectorShowsTiles:t,children:e(b,{extension:n.extension,render:yn})},n.extension.id):e(v,{field:n.field},n.field.key))})}const jn=l(function(){const{checkout:n,i18n:a,source:i,shop:l}=re(),{acceptTipPayments:u,discountCodesEnabled:m}=l,h=ve(),p=j(),f=m&&p.value;Ce(),function(){const{checkout:{negotiator:e}}=re(),{payment:n,directPaymentFieldsFilled:t}=e.context,{paymentLines:a,directPaymentErrors:i}=e.parts,s=Ee();r(()=>{const e=s.value||(r=i,Object.keys(r).filter(e=>"paymentMethodIdentifier"!==e).some(e=>null!=r[e].value));var r,o,c;n.value=(o=a.value,c=t.value,o.some(e=>"direct"!==e.method.type||Boolean(e.method.sessionId)||c)&&!e)})}();const b=y(),v=function(){const{checkout:e}=re(),{displayedPaymentMethods:n}=Ke({experienceType:"list"}),t=o(Qe(n)),a=y(),i=_(),s=qe(),r=an();return c(()=>{const n=null!==We(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),R=k().value,T=w(),L=c(()=>function({identity:e}){switch(e.current.value){case"guest":case"customerAccount":case"shopPay":return!0;default:return!1}}({identity:n.identity})),E=T?.tippingPaymentAllowed??!0,I=!ce(i)&&u&&E&&n.configuration.visibility.showTips,D=c(()=>n.installments.isSupported.value),O=Pe(),B=Ie({showTips:I,billingFormPosition:b.value}),N=C("purchase.checkout.payment-method-list.render-before"),F=C("purchase.checkout.payment-method-list.render-after"),$=t(!1);return e(M,{target:"cart.paymentLines[0]",children:e(S,{accessibilityRole:"group",accessibilityLabelledBy:"payment",gap:"base",children:[e(kn,{}),e(A,{customizations:N}),e(en,{}),e(De,{}),e(d,{when:g,children:e(Se,{})}),e(d,{when:D,children:e(vn,{})}),e(x,{children:e(S,{gap:"large-300",children:[e(Re,{dynamicPaymentExtensions:B.shift()||[],children:[e(Te,{selectorShowsTiles:$,renderVaultingAgreementInline:!1,afterPaymentSelector:e(d,{when:O,children:e(ze,{})})}),e(d,{when:h,children:e(ge,{})}),e(_n,{customizations:F,selectorShowsTiles:$}),e(_n,{customizations:B.shift()||[],selectorShowsTiles:$}),e(d,{when:L,children:e(Ae,{})})]}),e(d,{when:v,children:e(Se,{})}),R&&e(Xe,{}),e(d,{when:n.configuration.visibility.showPurchaseOrderNumberField,children:e(Ze,{showHeading:!1})}),I&&e(s,{children:[e(P,{sectionId:"tips",children:e(xe,{})}),e(A,{customizations:B.shift()||[]})]}),e(A,{customizations:B.flat()}),f&&e(z,{targetSelector:'input[name="reductions"]',icon:"discount",label:a.translate("order_summary.discount_discovery.add_code")})]})})]})})});function kn(){const{router:n}=re(),t="payment",a=c(()=>Oe(n,t));return e(ye,{headingId:t,autoFocus:a.value})}function wn({href:n,children:t,onClick:a}){return e(R,{tone:"monochrome",href:n,onClick:a,children:t})}function Cn({onClick:n}){const{i18n:t}=re();return e(wn,{href:"https://www.shopify.com/legal/cookies",onClick:n,children:t.translate("user_consent.policy")})}function Sn({onClick:n}){const{i18n:t}=re();return e(wn,{href:"https://help.shop.app/en/shop/shopping/ads-personalization",onClick:n,children:t.translate("user_consent.detailed_view.learn_about_ads")})}function An({title:n,description:t,checked:a,onChange:i,disabled:s,badgeLabel:r}){const o=e(L,{children:t});return e(S,{gap:"small-200",children:[e(S,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(L,{type:"strong",children:n}),r?e(I,{color:"subdued",children:r}):null]}),e(D,{gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gap:"base",alignItems:"start",children:[o,e(un,{checked:a,onChange:i,disabled:s,accessibilityLabel:n})]})]})}function xn({open:n,onClose:t,onConsentSaved:a}){const{consentManager:i,i18n:s,shopPay:r}=re(),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),[j,k]=u(null),[w,C]=u(!1);m(()=>{if(!n)return;const e=i.trackingConsentSelection?.peek();f(e?.analytics??!1),v(e?.marketing??!1),_(!1),k(null),C(!1)},[i,c,n]),m(()=>{n&&!y&&l&&(f(l.analytics),v(l.marketing))},[y,n,l]);const A=h(async()=>
1{if(w||!d)return;const e=o.value;C(!0),k(null);const n=await i.setTrackingConsent({analytics:p,marketing:b});r.user.shopAccountUuid.value===e&&(n.success?(a?.(),t()):k(s.translate("user_consent.error_saving_consent")),C(!1))},[p,i,s,d,w,b,a,t,r,o]),x=s.translate("user_consent.detailed_view.description",{cookie_policy_href:e(Cn,{})}),P=e(g,{inlineSize:"@media (inline-size >= small) auto, 100%",children:e(T,{variant:"primary",onClick:A,inlineSize:"fill",loading:w||!d,disabled:w||!d,children:e(g,{minInlineSize:"100px",inlineAlignment:"center",children:e(L,{children:s.translate("user_consent.detailed_view.save")})})})});return e(mn,{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:[j&&e(E,{tone:"critical",children:j}),e(L,{children:x})]}),e(S,{gap:"base",children:[e(An,{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(An,{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:w||!d}),e(An,{title:s.translate("user_consent.detailed_view.advertising"),description:s.translate("user_consent.detailed_view.advertising_description",{learn_about_ads_href:e(Sn,{})}),checked:b,onChange:e=>{v(e),_(!0)},disabled:w||!d})]})]})})}function Pn(){const{consentManager:i,i18n:r,observability:o,shopPay:c}=re(),l=c.user.shopAccountUuid,[p,f]=u(!1),[b,v]=u(null),[y,_]=u(l.value),j=t(!1),k=n(void 0);m(()=>{y!==l.value&&(_(l.value),j.value=!1,v(null))},[j,y,l.value]);const w=h(()=>{v(null),f(!0)},[]),C=h(()=>{f(!1)},[]),A=h(()=>{j.value=!0},[j]),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,R=M&&(i.shouldShowBanner.value||j.value),T=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&&B(e);r.current=Boolean(t),o.current=t&&a?N(a):null}return s.current=e,a(()=>{if(!r.current||!t)return;r.current=!1;const n=e?i.current&&F(i.current):o.current;o.current=null,n?.isConnected&&document.activeElement===document.body&&n.focus({preventScroll:!0})},[t,e]),i}(R,M),L=n(R);m(()=>{const e=!L.current&&R;if(L.current=R,e)return O({content:r.translate("user_consent.title")})},[r,R]),m(()=>{M&&k.current!==l.value&&(k.current=l.value,o.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:R}}))},[M,R,l.value,o]);const I=e(S,{gap:"small-300",children:[b&&e(E,{tone:"critical",children:b}),e(d,{when:j,fallback:e(zn,{onAcceptAll:x,onManageCookiesClick:w,onRejectAll:P}),children:e(Mn,{onManageCookiesClick:w})})]}),D=e(xn,{open:p,onClose:C,onConsentSaved:z});if(!R)return null;const $=e(g,{ref:T,background:"subdued",borderRadius:"large",padding:"base",children:e(S,{gap:"base",accessibilityRole:"group",accessibilityLabel:r.translate("user_consent.title"),children:I})});return e(s,{children:[$,D]})}function zn({onManageCookiesClick:n,onAcceptAll:t,onRejectAll:a}){const{i18n:i}=re(),[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(L,{type:"strong",children:i.translate("user_consent.accelerated_view.title")}),e($,{children:e(L,{children:i.translate("user_consent.accelerated_view.description",{cookie_policy_href:e(Cn,{})})})}),e(S,{direction:"inline",gap:"small-200",children:[e(T,{inlineAlignment:"center",onClick:c,size:"small",variant:"secondary",loading:"accept"===s,disabled:o,children:i.translate("user_consent.accelerated_view.accept_all")}),e(T,{inlineAlignment:"center",onClick:l,size:"small",variant:"secondary",loading:"reject"===s,disabled:o,children:i.translate("user_consent.accelerated_view.reject_all")}),e(T,{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 Mn({onManageCookiesClick:n}){const{i18n:t}=re();return e(g,{autoFocus:!0,children:e(L,{children:t.translate("user_consent.accelerated_view.consent_collected",{manage_cookies_href:e(Rn,{onManageCookiesClick:n})})})})}function Rn({onManageCookiesClick:n}){const{i18n:t}=re();return e(wn,{onClick:n,children:t.translate("user_consent.manage")})}wn.displayName="CookiesLink";const Tn=e=>(e=>"ShopCashCheckoutCashbackIncentive"===e.__typename)(e)&&e.expectedAmount.amount>0,Ln=e=>(e=>"ShopCashCheckoutFlatAmountCashbackIncentive"===e.__typename)(e)&&e.minimumOrderValueSatisfied,En="https://cdn.shopify.com/shop-assets/static_uploads/shop-cash/",In=`${En}checkout_banner_coin_light.png`,Dn=`${En}checkout_banner_coin_light_2x.png`,On=`${En}checkout_banner_coin_light_4x.png`,Bn=`${En}checkout_banner_coin_dark.png`,Nn=`${En}checkout_banner_coin_dark_2x.png`,Fn=`${En}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(Tn),i=n.find(Ln),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=>Ln(e)||Tn(e))??!1);if(Be(r,"cashbackBanner",h?m:void 0),!o)return null;const p=s?Bn:In,f=s?Nn:Dn,b=s?Fn: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(L,{children:d}),e(L,{type:"small",children:u})]}):e(L,{children:d})]})};function Un(){const{i18n:n}=re(),t=Ne(),{isEarningCashback:a,cashback:i,incentivePresentation:s}=sn();return a&&i?e(g,{children:[e(H,{blockSize:"large-200"}),e($n,{expectedAmount:i.expectedAmount,incentives:i.incentives,i18n:n,darkMode:t,incentivePresentation:s})]}):null}function Hn(){const{embed:n,router:t}=re(),a=t.currentUrl.value,{label:i}=V(),s=G({clearPii:!0}),r=J(),{isAppLayout:o}=Y(),{progressing:c}=K(),{setEditorShopPay:l}=fn(),d=h(()=>{l?l(!1):c.value||s()},[l,c,s]);return r||n?.isCheckoutKit()||!o&&!le(a.search)?e(R,{onClick:d,textDecoration:"none",children:i}):null}function Vn(){const n=function(){const e=bn(),n=h(()=>{(e=>{de()?e.bridge.iframeClosed():window.close()})(e)},[e]);return n}(),t=ue(),a=Q({base:!0,small:!1}),i=me()&&(!t.value||(a??!1)),{i18n:s,shop:{name:r},shopPay:o}=re();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(H,{blockSize:"base"}),e(R,{onClick:n,children:c})]})}function Gn(){const{checkout:{identity:n},source:t,shopPay:a,mobileCheckoutSdk:i}
1=re(),{visibility:{showCheckoutAsGuestFeature:r}}=a;if("shopPay"!==n.current.value||!r)return null;const o="shopPayExternal"===t.type?e(Vn,{}):e(Hn,{}),c=i.variant.isPartner();return e(s,{children:[e(H,{blockSize:"large-100"}),e(g,{inlineAlignment:"center",children:o}),c?e(H,{blockSize:"base"}):e(g,{display:"@media (inline-size >= small) auto, none",children:e(H,{blockSize:"base"})})]})}const Jn=l(function({onReady:n,includeContactInVaultedExtensions:t,showMobileOrderSummary:a,showVaultedStateMarketingDisclosureBelowPayment:i,phoneMarketingPlacement:r,isSectionCustomized:l,showVaultedStateMarketingDisclosureOnMobile:u,expressCheckoutSlot:h,showVaultedCardConsentSpacing:f}){const b=q(),v=W(),y=he(),_=pn(),{checkout:j,embed:k,i18n:x,mobileCheckoutSdk:z,source:M,shop:R,shopPay:T}=re(),L=X(),E=j.negotiator.current.fields.managedByMarketsPro,I=o(Q({base:!0,medium:!1})),D=ue(),O=Z(),B=c(()=>O.configurationSignal.value.main.spacing),N=c(()=>{const{position:e}=O.configurationSignal.value.reductions;return T.visibility.shouldRenderFloatingShopPayButton?"none":"base"===e?"large-200":a.value&&null!=B.value?pe(B.value)??"base":"base"}),{localizationExtensions:F}=j.negotiator.parts,$=c(()=>F.value.length>0),U=c(()=>f?.value&&!$.value?"large-200":"none"),V=Yn(I),G=c(()=>i.value&&!u.value&&(!I.value||!l.value)),J=c(()=>"belowPayment"===r.value),Y=w(),K=o(Y?.tippingPaymentAllowed??!0),se=c(()=>b.value.payment&&R.acceptTipPayments&&K.value&&j.configuration.visibility.showTips),oe=ee(),le=z.variant.isPartner(),de=c(()=>"shopPay"===j.identity.current.value&&"shopPayExternal"!==M.type&&""!==T.user.shopAccountUuid.value&&!ce(M)),me=e(d,{when:de,children:e(Pn,{})}),ve=c(()=>"thankYou"===L.value.currentDetour?.type?"Checkout::ThankYou::Dynamic::Render":"Checkout::Dynamic::Render"),ge=C(ve.value,"ORDER_SUMMARY4"),ye=c(()=>"wallets"!==h.value&&Boolean(E.value)),Ce=Fe({includeContact:t}),Se=c(()=>!I.value&&!ce(M)&&se.value),Ae=c(()=>!I.value&&v.value&&Ce.value.length>0),Pe=c(()=>Se.value||Ae.value||ye.value);m(()=>{const e=setTimeout(n,0);return()=>clearTimeout(e)},[n]);const ze=R.hasFlagEnabled(fe),Me=e(d,{when:a,children:e(hn,{})}),Re=e(S,{gap:"base",children:[e(d,{when:Se,children:e(g,{display:"@media (inline-size >= medium) auto, none",children:e(P,{sectionId:"tips",children:[e(d,{when:()=>!l.value,children:e(H,{blockSize:"large-300"})}),e(xe,{})]})})}),e(d,{when:Ae,children:e(He,{extensions:Ce})}),e(d,{when:ye,children:e(S,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:e(ke,{textProps:{color:"subdued",size:"small"}})})})]});return e(s,{children:e(on,{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(on,{max:"medium",accessibilityLabel:x.translate("payment.title"),children:e(jn,{})})})}),e(d,{when:j.configuration.visibility.showCashRedemption,children:e($e,{})}),e(Ue,{})]})}),e(d,{when:$,children:e(cn,{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:F,children:(n,t)=>e(_e,{localizationExtension:n,index:t})})]})})}),e(d,{when:()=>I.value&&!ce(M)&&se.value,children:e(g,{display:"@media (inline-size >= medium) none, auto",children:[e(P,{sectionId:"tips",children:e(xe,{renderInSection:I})}),e(d,{when:()=>!k?.isFlagshipPartner,children:e(ln,{spacing:pe(B.value)})})]})}),e(d,{when:()=>I.value&&v.value&&Ce.value.length,children:e(He,{extensions:Ce,hideDivider:"whenEmpty"})}),e(ne,{section:"summary",children:e(te,{section:"summary",children:e("div",{ref:V,children:[e(dn,{target:"mobileOrderSummary",children:e(on,{max:"medium",hideDivider:!0,children:[e(d,{when:()=>!0===I.value,children:e(je,{})}),e(Ve,{showEmailMarketingOptIn:G,showPhoneMarketingOptIn:J,paddingBlockStart:U}),!ze&&Me,e(S,{gap:N.value,"data-testid":"onepage-pay-button-cluster",children:[ze?e(s,{children:[Me,e(d,{when:Pe,children:Re})]}):Re,e(d,{when:()=>!0!==I.value,children:e(je,{})}),e(S,{gap:"large-200",children:[e(d,{when:_,children:e(be,{})}),e(d,{when:y,children:e(rn,{placement:"above-pay-button"})}),e(we,{buttonHidden:oe}),e(d,{when:y,children:e(rn,{placement:"default"})}),e(d,{when:()=>!D.value||I.value,children:e(ie,{above:"medium",children:e(A,{customizations:ge,gap:"large-200"})})})]})]}),e(d,{when:j.configuration.visibility.showShopCashRewardsBanner,children:e(Un,{})}),le?null:e(s,{children:[e(Gn,{}),me]})]})}),le?e(s,{children:[e(Gn,{}),me]}):null]})})})]})})});function Yn(e){const{setTriggerNode:n}=se("chat"),a=t(null);return r(()=>{n(e.value?a.value:null)}),h(e=>{a.value=e},[a])}export{Jn as default,Yn 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.