PageSourceSearch

https://finediapercakes.com/cdn/shopifycloud/checkout-web/assets/c1/7aefefff.XxYqRVKH.js

js finediapercakes.com collected 2026-10-01 14:08:00 UTC 22,796 bytes, 1 lines download raw bytes

1import{u as e,A as M,e as W,_ as Z,g as ee,S as T,o as Ae,l as ne,f as y,Q as Ee,i as d,k as L,h as O,q as E,p as qe}from"./2c1ab0fe.DYQSH7bT.js";import{f6 as Je,f7 as Ze,f8 as en,B,dh as xe,c$ as nn,dc as tn,d as on,f as Ie,p as te,c as p,U as $,_ as an,dd as oe,de as sn,cR as rn,L as se,l as j,n as R,W as Me,f9 as cn,y as ln,a as un,aS as dn,aQ as hn,aR as mn,P as pn,cy as gn,b as N,fa as yn,eb as fn,fb as vn,bq as bn,h as Cn,a1 as Re,dj as Sn,fc as _n,e as kn,a3 as Pn,e7 as wn,N as fe,O as ve,H as An,m as En,er as xn}from"./164ad2e3.BcELPLd1.js";import{aT as Be,Q as Te,O as _,b0 as K,eM as In,ao as Mn,ae as Le,bC as Rn,a8 as Bn,P as Tn,ac as be,a9 as Ln}from"./4c290a1e.CvCmFIo_.js";import{C as Fn}from"./a535174a.BPvHEO74.js";import{u as Un,S as Dn,P as On,L as Nn,R as Ce}from"./73a9b0a0.CobHmndN.js";import{M as Hn}from"./0b8657b8.IcKXrEvA.js";import{P as zn}from"./fc21c11a.DgmbO3cX.js";import{u as Gn,e as Se,G as Vn,T as ae}from"./f3fe2775.SlC-pEkv.js";import{a as $n,b as jn,H as Kn}from"./0e9ee714.Bk6O58rJ.js";import{a as Wn,W as Xn,P as Yn}from"./c10167e6.LgKZaKfi.js";import{f as Qn,g as qn,h as Jn,j as Zn,L as et,k as nt,l as tt,m as ot,n as at,o as st,U as it,V as _e,P as rt}from"./f8706cb6.Dfnzx8T1.js";import{y as ct,z as lt,E as ut,u as dt,a as ht,b as mt,g as pt,V as gt,e as yt}from"./86720dbb.DuHz2hK5.js";import{P as ft}from"./01973ac7.DlFbhkwy.js";import{c as vt,d as bt}from"./app.Bvc4uxd4.js";import{a as Ct,b as St}from"./87bfafec.AzsVYqml.js";import{P as ke}from"./e3e348f2.FEGbJPeA.js";import{b as Q,c as _t,S as kt}from"./dfca5da5.BMZJqAAB.js";import{S as Pt}from"./79974aab.KcVh1plL.js";import{S as wt}from"./39921a74.BJI6Ssr2.js";import{O as At}from"./7a8217fd.C3eL-rUQ.js";import{MobileOrderSummary as Et}from"./d2e6a587.D-F63Xsc.js";import{u as xt}from"./4ea44c06.N5QgRtJ_.js";import{v as It}from"./dffdfb34.BNZkEl3G.js";import{u as Mt}from"./0a7dffce.BF-zuF6E.js";import"./65f3d4da.CPQqj7Ry.js";import"./60a453ce.BJZuodLH.js";import"./bb728e1c.D4AahLMP.js";import"./5fd968f2.YnDAFSZP.js";import"./0e67bd3b.BTHw0Yme.js";import"./74835653.CCeFHMk_.js";import"./3ca8ef7e.CTrhvMhs.js";import"./ac5a19ff.B7MskK0_.js";import"./47b970b2.DH4wP8_H.js";import"./29034f35.C0bk1Hps.js";import"./064f6ac1.D2j0Zkq2.js";import"./53bbdad9.C7Msysac.js";import"./efa0389a.BYXr6FgY.js";import"./e0989459.D1AftLKc.js";import"./31cc568e.C3-mS8Wp.js";import"./8599b02a.CeEg7uRS.js";import"./5587f402.CeT4RdJn.js";import"./1ed8f5e3.CGU5IASn.js";import"./7ee73f43.BxY_mhR4.js";import"./cb5cf153.BL4J94IG.js";import"./0c0ad074.C6n2uAo_.js";import"./945a08d6.DhShENgr.js";import"./bff2ff9b.Dejs-bBN.js";import"./ccdf3592.DEIwKw5E.js";import"./e477f96c.D3jKwuzH.js";import"./aea3fb03.DlSWgrqP.js";import"./55098bf1.CUHQxMJB.js";import"./598fef4e.CNrSJxwe.js";import"./e77f7fe0.C05OWWqx.js";import"./a422df8c.CcpK1iW2.js";import"./cc6ff67d.BF2NsnIm.js";import"./08a3b809.Bq-zVo5U.js";import"./e39bc11c.DnPwITUP.js";import"./cf29e63b.CpsbSy7t.js";import"./ec391382.BFIAqvUW.js";import"./58314944.BHyxOsdf.js";import"./b9c0319a.BOA-tgMf.js";import"./f1968089.QvFI_vI_.js";import"./3a819064.zwYHd_Yo.js";import"./6720fa5f.CBKt-zoe.js";import"./2b89a178.BooaKIEd.js";import"./b684bff6.CXxRln-r.js";import"./ed9f2238.CAW-Gk0L.js";import"./910cd6e2.Dk_1lZU8.js";import"./347b440c.DGDg8p-S.js";import"./d5d34b3b.y3tJ0fOc.js";import"./181d38d3.BgIC_TY2.js";import"./d6447d9e.DuZ8mMT3.js";import"./f49d4216.B2c0ey-R.js";import"./f51e663e.wy4ppBMI.js";import"./64de7b49.D1DDpyTT.js";import"./8e79be58.CmCgUsB_.js";import"./90e26f5f.DJRE8zgu.js";import"./2fdb3dd3.SvLAczDE.js";import"./ca5e9c49.CRSUYPwQ.js";
1import"./f3e117aa.CdQBrPvO.js";import"./a25deb9a.CAfvS0fR.js";import"./7b0c98ea.CDh_PR5a.js";import"./7114e006.D0I_yO7g.js";import"./f692f62f.BQRo2nQx.js";import"./f78726c8.CLlB5yjH.js";import"./cb8fcd45.c_ESjgQZ.js";import"./d22d2b80.qLRsU0no.js";function Rt(){const n=Je();return Qn({ineligibilityReasonLabel:n}),e(Wn,{ineligibilityReason:n})}const Bt="x4UOe",Tt="SGLj7",Lt="_2hShs",q={Slot:Bt,ClippingSlot:Tt,Content:Lt};function Ft({selectorShowsTiles:n,children:t}){const{buyerHasActedSignal:s}=Be(),o=ct(),a=M(null),i=M(null),r=M(!1),l=M(!1),c=W(null);l.current=n.value&&s.value,Z(()=>{const m=i.current;if(!m||typeof MutationObserver>"u")return;const h=new MutationObserver(f=>{if(!m.hasChildNodes()){r.current=!1,c.value=null;return}!f.some(v=>v.addedNodes.length>0)||!l.current||!vt()||(r.current=!0,c.value={from:bt(),withMotion:o.loaded})});return h.observe(m,{childList:!0,subtree:!0}),()=>h.disconnect()},[c,o]),Z(()=>{if(r.current){r.current=!1;for(const m of[a.current,i.current])for(const h of m?.getAnimations?.()??[])h.cancel(),h.play()}});const u=c.value!==null&&c.value.withMotion;return e("div",{ref:a,className:ee(q.Slot,u&&q.ClippingSlot,u&&ut),children:e("div",{ref:i,className:ee(q.Content,u&&lt[c.value?.from??"end"]),children:t})})}const Ut=n=>e(B,{children:n});function Pe({customizations:n,selectorShowsTiles:t}){return n.length===0?null:e(T,{children:n.map(s=>s.kind==="uiExtension"?e(Ft,{selectorShowsTiles:t,children:e(Ze,{extension:s.extension,render:Ut})},s.extension.id):e(en,{field:s.field},s.field.key))})}function Dt(){const{payment:n,directPaymentFieldsFilled:t}=Be(),{paymentLines:s,directPaymentErrors:o}=Te(),a=qn();Ae(()=>{const i=a.value||Nt(o);n.value=Ot(s.value,t.value)&&!i})}function Ot(n,t){return n.some(s=>s.method.type==="direct"?!!s.method.sessionId||t:!0)}function Nt(n){return Object.keys(n).filter(t=>t!=="paymentMethodIdentifier").some(t=>n[t].value!=null)}function Ht(){const{checkout:n}=_(),{displayedPaymentMethods:t}=dt({experienceType:"list"}),s=ne(ht(t)),o=xe(),a=nn(),i=mt(),r=Ct();return y(()=>{const l=pt(n.identity,r.value)!==null||i.value.freeOrder||i.value.giftCard||i.value.storeCredit||i.value.redeemables,c=!a.value&&(o.value==="inContext"||o.value==="afterPayment");return n.configuration.visibility.showStoreCreditRedemption.value&&!l&&s.value.mode==="singlePaymentMethodCreditCard"&&c})}const zt=Ee(function(){const{checkout:t,i18n:s,source:o,shop:a}=_(),{acceptTipPayments:i,discountCodesEnabled:r}=a,l=Un(),c=tn(),u=r&&c.value;Gn(),Dt();const m=xe(),h=Ht(),f=y(()=>t.configuration.visibility.showStoreCreditRedemption.value&&!h.value),w=on().value,v=Ie(),b=y(()=>Vt({identity:t.identity})),k=v?.tippingPaymentAllowed??!0,x=!K(o)&&i&&k&&t.configuration.visibility.showTips,C=$n();Jn();const A=y(()=>t.installments.isSupported.value&&!C),S=jn(),I=Zn({showTips:x,billingFormPosition:m.value}),U=te("purchase.checkout.payment-method-list.render-before"),P=te("purchase.checkout.payment-method-list.render-after"),g=W(!1);return e(rn,{target:"cart.paymentLines[0]",children:e(p,{accessibilityRole:"group",accessibilityLabelledBy:"payment",gap:"base",children:[e(Gt,{}),e($,{customizations:U}),e(ft,{}),e(et,{}),e(d,{when:f,children:e(Se,{})}),e(d,{when:A,children:e(Rt,{})}),e(an,{children:e(p,{gap:"large-300",children:[e(Xn,{dynamicPaymentExtensions:I.shift()||[],children:[e(Yn,{selectorShowsTiles:g,renderVaultingAgreementInline:!1,afterPaymentSelector:e(d,{when:S,children:e(Kn,{})})}),e(d,{when:l,children:e(Dn,{})}),e(Pe,{customizations:P,selectorShowsTiles:g}),e(Pe,{customizations:I.shift()||[],selectorShowsTiles:g}),e(d,{when:b,children:e(Vn,{})})]}),e(d,{when:h,children:e(Se,{})}),w&&e(gt,{}),e(d,{when:t.configuration.visibility.showPurchaseOrderNumberField,children:e(yt,{showHeading:!1})}
1),x&&e(T,{children:[e(oe,{sectionId:"tips",children:e(ae,{})}),e($,{customizations:I.shift()||[]})]}),e($,{customizations:I.flat()}),u&&e(sn,{targetSelector:'input[name="reductions"]',icon:"discount",label:s.translate("order_summary.discount_discovery.add_code")})]})})]})})});function Gt(){const{router:n}=_(),t="payment",s=y(()=>nt(n,t));return e(On,{headingId:t,autoFocus:s.value})}function Vt({identity:n}){switch(n.current.value){case"guest":case"customerAccount":case"shopPay":return!0;default:return!1}}const $t="https://www.shopify.com/legal/cookies",jt="https://help.shop.app/en/shop/shopping/ads-personalization";function X({href:n,children:t,onClick:s}){return e(se,{tone:"monochrome",href:n,onClick:s,children:t})}X.displayName="CookiesLink";function Fe({onClick:n}){const{i18n:t}=_();return e(X,{href:$t,onClick:n,children:t.translate("user_consent.policy")})}function Kt({onClick:n}){const{i18n:t}=_();return e(X,{href:jt,onClick:n,children:t.translate("user_consent.detailed_view.learn_about_ads")})}function J({title:n,description:t,checked:s,onChange:o,disabled:a,badgeLabel:i}){return e(p,{gap:"small-200",children:[e(p,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(R,{type:"strong",children:n}),i?e(cn,{color:"subdued",children:i}):null]}),e(ln,{gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gap:"base",alignItems:"start",children:[e(R,{children:t}),e(wt,{checked:s,onChange:o,disabled:a,accessibilityLabel:n})]})]})}function Wt({open:n,onClose:t,onConsentSaved:s}){const{consentManager:o,i18n:a,shopPay:i}=_(),r=i.user.shopAccountUuid,l=r.value,c=o.trackingConsentSelection?.value,u=c!==void 0,[m,h]=L(!1),[f,w]=L(!1),[v,b]=L(!1),[k,x]=L(null),[C,A]=L(!1);O(()=>{if(!n)return;const P=o.trackingConsentSelection?.peek();h(P?.analytics??!1),w(P?.marketing??!1),b(!1),x(null),A(!1)},[o,l,n]),O(()=>{!n||v||!c||(h(c.analytics),w(c.marketing))},[v,n,c]);const S=E(async()=>{if(C||!u)return;const P=r.value;A(!0),x(null);const g=await o.setTrackingConsent({analytics:m,marketing:f});i.user.shopAccountUuid.value===P&&(g.success?(s?.(),t()):x(a.translate("user_consent.error_saving_consent")),A(!1))},[m,o,a,u,C,f,s,t,i,r]),I=a.translate("user_consent.detailed_view.description",{cookie_policy_href:e(Fe,{})}),U=e(B,{inlineSize:"@media (inline-size >= small) auto, 100%",children:e(j,{variant:"primary",onClick:S,inlineSize:"fill",loading:C||!u,disabled:C||!u,children:e(B,{minInlineSize:"100px",inlineAlignment:"center",children:e(R,{children:a.translate("user_consent.detailed_view.save")})})})});return e(At,{heading:a.translate("user_consent.title"),accessibilityLabel:a.translate("user_consent.manage"),open:n,onHide:t,primaryAction:U,children:e(p,{gap:"base",children:[e(p,{gap:"small-200",children:[k&&e(Me,{tone:"critical",children:k}),e(R,{children:I})]}),e(p,{gap:"base",children:[e(J,{title:a.translate("user_consent.detailed_view.necessary"),description:a.translate("user_consent.detailed_view.necessary_description"),checked:!0,disabled:!0,badgeLabel:a.translate("user_consent.detailed_view.required")}),e(J,{title:a.translate("user_consent.detailed_view.analytics"),description:a.translate("user_consent.detailed_view.analytics_description"),checked:m,onChange:P=>{h(P),b(!0)},disabled:C||!u}),e(J,{title:a.translate("user_consent.detailed_view.advertising"),description:a.translate("user_consent.detailed_view.advertising_description",{learn_about_ads_href:e(Kt,{})}),checked:f,onChange:P=>{w(P),b(!0)},disabled:C||!u})]})]})})}function Xt(){const{consentManager:n,i18n:t,observability:s,shopPay:o}=_(),a=o.user.shopAccountUuid,[i,r]=L(!1),[l,c]=L(null),[u,m]=L(a.value),h=W(!1),f=M(void 0);O(()=>{u!==a.value&&(m(a.value),h.value=!1,c(null))},[h,u,a.value]);const w=E(()=>{c(null),r(!0)},[]),v=E(()=>{r(!1)},[]),b=E(()=>{h.value=!0},[h]),k=E(async()=>{const F=a.value;c(null);const D=await n.acceptAll();if(o.user.shopAccountUuid.value===F){if(!D.success){c(t.translate("user_consent.error_saving_consent"));return}b()}},[b,t,o,a,n]),x=E(async()=>{const F=a.value;c(null);const D=await n.rejectAll();if(o.user.shopAccountUuid.value===F){if(!D.success){c(t.translate("user_consent.error_saving_consent"));return}b()}},[b,t,o,a,n]),C=b,A=u===a.value,S=A&&(n.shouldShowBanner.value||h.value),I=Yt(S,A),U=M(S);O(()=>{const F=!U.current&&S;if(U.current=S,!!F)return un({content:t.translate("user_consent.title")})},[t,S]),O(()=>{!A||f.current===a.value||(f.current=a.value,s.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:S}}))},[A,S,a.value,s]);const P=e(p,{gap:"small-300",children:[l&&e(Me,{tone:"critical",children:l}),e(d,{when:h,fallback:e(Qt,{onAcceptAll:k,onManageCookiesClick:w,onRejectAll:x}),children:e(qt,{onManageCookiesClick:w})})]}),g=e(Wt,{open:i,onClose:v,onConsentSaved:C}
1);if(!S)return null;const Y=e(B,{ref:I,background:"subdued",borderRadius:"large",padding:"base",children:e(p,{gap:"base",accessibilityRole:"group",accessibilityLabel:t.translate("user_consent.title"),children:P})});return e(T,{children:[Y,g]})}function Yt(n,t){const s=M(null),o=M(n),a=M(!1),i=M(null);if(o.current&&!n&&typeof document<"u"){const r=s.current,l=document.activeElement,c=r&&l instanceof HTMLElement&&r.contains(l),u=r&&dn(r);a.current=!!c,i.current=c&&u?hn(u):null}return o.current=n,Z(()=>{if(!a.current||!t)return;a.current=!1;const r=n?s.current&&mn(s.current):i.current;i.current=null,r?.isConnected&&document.activeElement===document.body&&r.focus({preventScroll:!0})},[t,n]),s}function Qt({onManageCookiesClick:n,onAcceptAll:t,onRejectAll:s}){const{i18n:o}=_(),[a,i]=L(null),r=a!==null,l=E(async()=>{r||(i("accept"),await t(),i(null))},[r,t]),c=E(async()=>{r||(i("reject"),await s(),i(null))},[r,s]);return e(p,{gap:"base",children:[e(R,{type:"strong",children:o.translate("user_consent.accelerated_view.title")}),e(pn,{children:e(R,{children:o.translate("user_consent.accelerated_view.description",{cookie_policy_href:e(Fe,{})})})}),e(p,{direction:"inline",gap:"small-200",children:[e(j,{inlineAlignment:"center",onClick:l,size:"small",variant:"secondary",loading:a==="accept",disabled:r,children:o.translate("user_consent.accelerated_view.accept_all")}),e(j,{inlineAlignment:"center",onClick:c,size:"small",variant:"secondary",loading:a==="reject",disabled:r,children:o.translate("user_consent.accelerated_view.reject_all")}),e(j,{inlineAlignment:"center",onClick:n,size:"small",variant:"plain",textDecoration:"none",disabled:r,accessibilityLabel:o.translate("user_consent.manage"),children:o.translate("user_consent.accelerated_view.manage")})]})]})}function qt({onManageCookiesClick:n}){const{i18n:t}=_();return e(B,{autoFocus:!0,children:e(R,{children:t.translate("user_consent.accelerated_view.consent_collected",{manage_cookies_href:e(Jt,{onManageCookiesClick:n})})})})}function Jt({onManageCookiesClick:n}){const{i18n:t}=_();return e(X,{onClick:n,children:t.translate("user_consent.manage")})}const Zt=({i18n:n,incentives:t,formattedTotalAmount:s})=>{if(!t||t.length===0)return;const o=t.find(Ue),a=t.find(De),i=o?.displayName;if(o&&i&&a){const r=n.formatCurrency(o.expectedAmount.amount,{currency:o.expectedAmount.currencyCode}),l=n.formatCurrency(a.cashbackAmount.amount,{currency:a.cashbackAmount.currencyCode});return{title:n.translate("shop_cash.rewards_banner_title",{formattedAmount:s}),description:n.translate("shop_cash.reward_banner_description_combined_rewards",{promotionAmount:r,promotionDisplayName:i,offerAmount:l})}}if(o&&i&&!a){const r=n.formatCurrency(o.expectedAmount.amount,{currency:o.expectedAmount.currencyCode}),l=o.remainingRewardLimit?.amount===o.expectedAmount.amount;return{title:n.translate("shop_cash.reward_banner_title_with_promotion_attribution",{formattedAmount:r,promotionDisplayName:i}),description:l?n.translate("shop_cash.reward_banner_description_max"):void 0}}},eo=n=>n.__typename==="ShopCashCheckoutCashbackIncentive",Ue=n=>eo(n)&&n.expectedAmount.amount>0,no=n=>n.__typename==="ShopCashCheckoutFlatAmountCashbackIncentive",De=n=>no(n)&&n.minimumOrderValueSatisfied,to="F7fwo",oo="VnjPc",ao="gXkBh",so="iJGCf",V={ShopCashCashbackBanner:to,ShopCashCashbackBannerText:oo,ShopCashCashbackBannerLight:ao,ShopCashCashbackBannerDark:so},H="https://cdn.shopify.com/shop-assets/static_uploads/shop-cash/",io=`${H}checkout_banner_coin_light.png`,ro=`${H}checkout_banner_coin_light_2x.png`,co=`${H}checkout_banner_coin_light_4x.png`,lo=`${H}checkout_banner_coin_dark.png`,uo=`${H}checkout_banner_coin_dark_2x.png`,ho=`${H}checkout_banner_coin_dark_4x.png`,mo=({expectedAmount:n,incentives:t,i18n:s,darkMode:o,incentivePresentation:a})=>{const i=n!=null&&n.amount!==0,r=i?s.formatCurrency(n.amount,{currency:n.currencyCode}):"",l=i?Zt({i18n:s,incentives:t,formattedTotalAmount:r}):void 0,c=i?l?.title??s.translate("shop_cash.rewards_banner_title",{formattedAmount:r}):"",u=l?.description,m=u?`${c} ${u}`:c,h=i&&(t?.some(k=>De(k)||Ue(k))??!1);if(tt(a,"cashbackBanner",h?m:void 0),!i)return null;const f=o?lo:io,w=o?uo:ro,v=o?ho:co,b=ee(V.ShopCashCashbackBanner,o?V.ShopCashCashbackBannerDark:V.ShopCashCashbackBannerLight);return e(p,{direction:"inline",alignItems:"center",gap:"small-300",className:b,borderRadius:"large",children:[e(gn,{src:f,srcSet:`${f} 1x, ${w} 2x, ${v} 4x`,aspectRatio:"auto"}),u?e(p,{direction:"block",gap:"none",className:V.ShopCashCashbackBannerText,children:[e(R,{children:c}),e(R,{type:"small",children:u})]}):e(R,{children:c})]})};function po(){const{i18n:n}=_(),t=ot(),{isEarningCashback:s,cashback:o,incentivePresentation:a}=St();return!s||!o?null:e(B,{children:[e(N,{blockSize:"large-200"}),e(mo,{expectedAmount:o.expectedAmount,incentives:o.incentives,i18n:n,darkMode:t,incentivePresentation:a})]})}function go(){const{embed:n,router:t}=_(),s=t.currentUrl.value,{label:o}=yn(),a=fn({clearPii:!0}),i=vn(),{isAppLayout:r}=bn(),{progressing:l}=Cn(),{setEditorShopPay:c}=It(),u=E(()=>
1{if(c){c(!1);return}l.value||a()},[c,l,a]);return i||n?.isCheckoutKit()||!(r||In(s.search))?e(se,{onClick:u,textDecoration:"none",children:o}):null}const yo=n=>Mn()?n.bridge.iframeClosed():window.close();function fo(){const n=Mt();return E(()=>{yo(n)},[n])}function vo(){const n=fo(),t=Le(),s=Re({base:!0,small:!1}),o=Rn()&&(t.value?s??!1:!0),{i18n:a,shop:{name:i},shopPay:r}=_();if(!r.visibility.showReturnToStore||!o)return null;const l=a.translate("shop_pay_external.return_to_store",{shopName:i});return e(p,{alignItems:"center",children:[e(N,{blockSize:"base"}),e(se,{onClick:n,children:l})]})}function we(){const{checkout:{identity:n},source:t,shopPay:s,mobileCheckoutSdk:o}=_(),{visibility:{showCheckoutAsGuestFeature:a}}=s;if(n.current.value!=="shopPay"||!a)return null;const i=t.type==="shopPayExternal"?e(vo,{}):e(go,{}),r=o.variant.isPartner();return e(T,{children:[e(N,{blockSize:"large-100"}),e(B,{inlineAlignment:"center",children:i}),r?e(N,{blockSize:"base"}):e(B,{display:"@media (inline-size >= small) auto, none",children:e(N,{blockSize:"base"})})]})}const Za=Ee(function({onReady:t,includeContactInVaultedExtensions:s,showMobileOrderSummary:o,showVaultedStateMarketingDisclosureBelowPayment:a,phoneMarketingPlacement:i,isSectionCustomized:r,showVaultedStateMarketingDisclosureOnMobile:l,expressCheckoutSlot:c,showVaultedCardConsentSpacing:u}){const m=Sn(),h=_n(),f=Bn(),w=xt(),{checkout:v,embed:b,i18n:k,mobileCheckoutSdk:x,source:C,shop:A,shopPay:S}=_(),I=kn(),P=Tn().managedByMarketsPro,g=ne(Re({base:!0,medium:!1})),Y=Le(),F=Pn(),D=y(()=>F.configurationSignal.value.main.spacing),Oe=y(()=>{const{position:z}=F.configurationSignal.value.reductions;return S.visibility.shouldRenderFloatingShopPayButton?"none":z==="base"?"large-200":o.value&&D.value!=null?be(D.value)??"base":"base"}),{localizationExtensions:ie}=Te(),re=y(()=>ie.value.length>0),Ne=y(()=>u?.value&&!re.value?"large-200":"none"),He=bo(g),ze=y(()=>a.value&&!l.value&&(!g.value||!r.value)),Ge=y(()=>i.value==="belowPayment"),Ve=Ie(),$e=ne(Ve?.tippingPaymentAllowed??!0),ce=y(()=>m.value.payment&&A.acceptTipPayments&&$e.value&&v.configuration.visibility.showTips),je=wn(),le=x.variant.isPartner(),Ke=y(()=>v.identity.current.value==="shopPay"&&C.type!=="shopPayExternal"&&S.user.shopAccountUuid.value!==""&&!K(C)),ue=e(d,{when:Ke,children:e(Xt,{})}),We=y(()=>I.value.currentDetour?.type==="thankYou"?"Checkout::ThankYou::Dynamic::Render":"Checkout::Dynamic::Render"),Xe=te(We.value,"ORDER_SUMMARY4"),de=y(()=>c.value!=="wallets"&&!!P.value),G=at({includeContact:s}),he=y(()=>!g.value&&!K(C)&&ce.value),me=y(()=>!g.value&&h.value&&G.value.length>0),Ye=y(()=>he.value||me.value||de.value);O(()=>{const z=setTimeout(t,0);return()=>clearTimeout(z)},[t]);const pe=A.hasFlagEnabled(Ln),ge=e(d,{when:o,children:e(Et,{})}),ye=e(p,{gap:"base",children:[e(d,{when:he,children:e(B,{display:"@media (inline-size >= medium) auto, none",children:e(oe,{sectionId:"tips",children:[e(d,{when:()=>!r.value,children:e(N,{blockSize:"large-300"})}),e(ae,{})]})})}),e(d,{when:me,children:e(_e,{extensions:G})}),e(d,{when:de,children:e(p,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:e(Hn,{textProps:{color:"subdued",size:"small"}})})})]});return e(T,{children:e(Q,{min:"medium",accessibilityLabel:k.translate("payment.title"),hideDivider:!0,children:[e(d,{when:()=>!m.value.payment,children:e(T,{children:[e(fe,{section:"payment",children:e(ve,{section:"payment",children:e(Q,{max:"medium",accessibilityLabel:k.translate("payment.title"),children:e(zt,{})})})}),e(d,{when:v.configuration.visibility.showCashRedemption,children:e(st,{})}),e(it,{})]})}),e(d,{when:re,children:e(_t,{accessibilityLabel:k.translate("localized_fields.additional_information.title"),children:e(p,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:[e(An,{level:2,children:k.translate("localized_fields.additional_information.title")}),e(qe,{each:ie,children:(z,Qe)=>e(Nn,{localizationExtension:z,index:Qe})})]})})}),e(d,{when:()=>g.value&&!K(C)&&ce.value,children:e(B,{display:"@media (inline-size >
1= medium) none, auto",children:[e(oe,{sectionId:"tips",children:e(ae,{renderInSection:g})}),e(d,{when:()=>!b?.isFlagshipPartner,children:e(kt,{spacing:be(D.value)})})]})}),e(d,{when:()=>g.value&&h.value&&G.value.length,children:e(_e,{extensions:G,hideDivider:"whenEmpty"})}),e(fe,{section:"summary",children:e(ve,{section:"summary",children:e("div",{ref:He,children:[e(Pt,{target:"mobileOrderSummary",children:e(Q,{max:"medium",hideDivider:!0,children:[e(d,{when:()=>g.value===!0,children:e(Ce,{})}),e(rt,{showEmailMarketingOptIn:ze,showPhoneMarketingOptIn:Ge,paddingBlockStart:Ne}),!pe&&ge,e(p,{gap:Oe.value,"data-testid":"onepage-pay-button-cluster",children:[pe?e(T,{children:[ge,e(d,{when:Ye,children:ye})]}):ye,e(d,{when:()=>g.value!==!0,children:e(Ce,{})}),e(p,{gap:"large-200",children:[e(d,{when:w,children:e(Fn,{})}),e(d,{when:f,children:e(ke,{placement:"above-pay-button"})}),e(zn,{buttonHidden:je}),e(d,{when:f,children:e(ke,{placement:"default"})}),e(d,{when:()=>!Y.value||g.value,children:e(En,{above:"medium",children:e($,{customizations:Xe,gap:"large-200"})})})]})]}),e(d,{when:v.configuration.visibility.showShopCashRewardsBanner,children:e(po,{})}),le?null:e(T,{children:[e(we,{}),ue]})]})}),le?e(T,{children:[e(we,{}),ue]}):null]})})})]})})});function bo(n){const{setTriggerNode:t}=xn("chat"),s=W(null);return Ae(()=>{t(n.value?s.value:null)}),E(o=>{s.value=o},[s])}export{Za as default,bo 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.