PageSourceSearch

https://littlefootmatcha.com/cdn/shopifycloud/checkout-web/assets/c1/page-BelowTheFoldContent.ghWfk312.js

js littlefootmatcha.com collected 2026-09-29 00:12:57 UTC 23,750 bytes, 1 lines download raw bytes

1import{u as e,A as I,e as Y,_ as ne,g as te,S as F,o as Ce,l as ae,f as b,Q as Se,i as d,k as T,h as H,q as E,p as je}from"./esnext-vendor.DDpcaSqU.js";import{f6 as Ke,f7 as We,f8 as Xe,B,d9 as _e,d2 as Ye,d3 as Qe,d4 as qe,bf as ke,s as oe,k as f,U as K,a0 as Je,d5 as se,d6 as Ze,cT as en,L as re,i as W,l as R,W as Pe,f9 as nn,G as tn,a as an,aX as on,aV as sn,aW as rn,P as cn,cD as ln,b as O,fa as un,ed as dn,fb as hn,bx as mn,e as pn,a3 as we,c as gn,fc as fn,q as yn,a5 as vn,e7 as bn,O as de,Q as he,n as Cn,H as Sn,et as _n}from"./hydrate.BcfGVx0L.js";import{a$ as Ae,W as Ee,T as C,bb as X,f0 as xe,f1 as kn,ax as Pn,an as Me,bO as wn,ah as An,a5 as En,al as me}from"./utilities-previous.Cnwy8G2v.js";import{C as xn}from"./Captcha.FpS8EQr6.js";import{u as Mn,S as In,P as Rn,L as Bn,R as pe}from"./RememberMeSection.BYeMmxbw.js";import{M as Tn}from"./hooks-useShopPayNewSignupLoginExperiment.DrmS3FLj.js";import{MobileOrderSummary as Ln}from"./component-MobileOrderSummary.BDntaiIY.js";import{P as Fn}from"./PayButtonSection.DnKXdf2M.js";import{u as Un,b as ge,G as Dn,T as ie}from"./useAddressMutationsWithNegotiation.BIr_RXis.js";import{a as Hn,b as On,H as Nn}from"./StickyPayButton-StickyPayButton.module.Df_TeLYl.js";import{a as zn,W as Gn,P as Vn}from"./PaymentOptionSelector.CthkuMM5.js";import{f as $n,g as jn,h as Kn,j as Wn,L as Xn,k as Yn,l as Qn,m as qn,n as Jn,o as Zn,U as et,V as fe,P as nt}from"./OnePage.BGDrupdB.js";import{F as tt,G as at,H as ot,u as st,a as it,b as rt,g as ct,V as lt,e as ut}from"./components-PaymentMethodProgressionHost.6RPZ-76L.js";import{P as dt}from"./PaymentErrorBanner.CtzH3JZS.js";import{p as ht,b as mt}from"./app.DdDscdWN.js";import{a as pt,b as gt}from"./payment-usePaymentExemptionReason.emSKnIpm.js";import{P as ye}from"./hooks-useWalletsTimeout.ByRalZ9t.js";import{b as J,c as ft,S as yt}from"./Section.J2ZFesxe.js";import{S as vt}from"./Section-SectionStyleOverride.CdNufRZ0.js";import{S as bt}from"./Switch.Bbq5KJxf.js";import{O as Ct}from"./hooks-useShopPayProgressIntercepts.DJVsS6aH.js";import{u as St}from"./PaymentButtons.DF7tbJ-4.js";import{r as _t}from"./components-VatNumberValidationField.DqFc8B_9.js";import{u as kt}from"./hooks-useShopPayExternalAppContext.R6pnDxYu.js";import"./graphql-PaymentSessionMutation.C-nDEOnn.js";import"./shared-permissions.B59tuyWB.js";import"./ShopPayCaptcha.D1P4QA8k.js";import"./ChangeCompanyLocationLink.DXURX0D_.js";import"./BillingAddressForm.B1Xpg2b3.js";import"./FormLayout.UkTBTXMZ.js";import"./amazon-pay-useAmazonPayPaymentLine.X7jqQiq6.js";import"./PhoneField.rAEISard.js";import"./hooks-useSuppressShopPayModalOnLoad.Cvo-K0z2.js";import"./Popover.ZkMcWGfE.js";import"./utilities-stable-ref.dCtJn23l.js";import"./Choice.D9vYH2mX.js";import"./Checkbox.CdJzVizb.js";import"./stopwatch.B56VZk5r.js";import"./CalloutHeader.DC7jgv42.js";import"./TransitionHeight.Bhh9D1te.js";import"./hooks-useShouldRevealCustomization.djt7DCHB.js";import"./styles-floating-layer.module.CZ3-lUNr.js";import"./utils-useViolationsHandler.DYEnoPXY.js";import"./ShopPayLogo.D2iKuiAK.js";import"./shared-shop-theme.BKb8cP_L.js";import"./useShopPayButtonClassName.C6ri8rG_.js";import"./shop-pay-experiments.BdHRV-Vf.js";import"./PayButton-helpers.DGMbMyz3.js";import"./Monorail-monorailMetric-wallets.D__Peh7l.js";import"./cvv-cvvBridge.CLYVr7ZJ.js";import"./negotiated-findSelectedDeliveryMethod.C8W7wTVp.js";import"./shop-pay-installments-monorail.B1-OWrOB.js";import"./PaymentIcon.-ypvsmSq.js";import"./PaymentLine.HSjRrKhm.js";import"./localization-index.C3Jg94aR.js";import"./Theme-ThemeOverride.CSLUDabY.js";import"./crypto-constants.Ca3tBkwm.js";import"./hooks-useUpdateCheckoutAddress.C4NXzSJo.js";import"./helpers-derivations.K4r9DEFp.js";import"./redemption-promotions.8MPSgIef.js";import"./shop-pay-normalizeBuyerDetails.CDJVtFmS.js";import"./helpers-isSwitchAccountBootRequest.C3tmXnb7.js";import"./helpers-installmentsNotSupportedForAddress.BnHLRwvm.js";import"./hooks-payment-button.D9pamPKR.js";import"./hooks-useGeneralPaymentErrorMessage.DLzmknw2.js";import"./BillingAddressSelector.CcWBqd3Y.js";import"./hooks-useStableHostMethodsReferences.CidTc5Dm.js";import"./hooks-usePreselectSpi.DawjANz2.js";import"./checkout-as-guest-amazon-pay.DVQDcxt_.js";import"./cross-border-hooks.BVR78hJy.js";import"./Middot.D2IL0UWw.js";import"./EstimatedDeliveryContent.DhMNjS2y.js";import"./ShippingMethodRateLabel.D5IEFYQ5.js";import"./shipping-methods-consolidated-included.Cuff-UKu.js";import"./ShippingLines.NY3LUGeY.js";import"./PendingShipping.D432iDGV.js";import"./ShipmentBreakdown.BDcVtteK.js";import"./MerchandiseModal.BklvgDzs.js";import"./ShippingMethodSelector.-a4_WS5F.js";import"./TextArea.CCo8tV-a.js";import"./SubscriptionPriceBreakdown.CM5nh0C1.js";import"./components-RedirectionNotice.module.CrRh0Cus.js";import"./StockProblems-StockProblemsLineItemList.CuwJUXzV.js";import"./hooks-useForceShopPayUrl.JfumpHY0.js";import"./AutocompleteField-hooks.By5FDG3b.js";function Pt(){const n=Ke();return $n({ineligibilityReasonLabel:n}),e(zn,{ineligibilityReason:n})}const wt="x4UOe",At="SGLj7",Et="_2hShs",Z={Slot:wt,ClippingSlot:At,Content:Et};function xt({selectorShowsTiles:n,children:t}){const{buyerHasActedSignal:s}=Ae(),o=tt(),i=I(null),a=I(null),r=I(!1),u=I(!1),c=Y(null);u.current=n.value&&s.value,ne(()=>{const g=a.current;if(!g||typeof MutationObserver>"u")return;const m=new MutationObserver(S=>{if(!g.hasChildNodes()){r.current=!1,c.value=null;return}!S.some(k=>k.addedNodes.length>
10)||!u.current||!ht()||(r.current=!0,c.value={from:mt(),withMotion:o.loaded})});return m.observe(g,{childList:!0,subtree:!0}),()=>m.disconnect()},[c,o]),ne(()=>{if(r.current){r.current=!1;for(const g of[i.current,a.current])for(const m of g?.getAnimations?.()??[])m.cancel(),m.play()}});const l=c.value!==null&&c.value.withMotion;return e("div",{ref:i,className:te(Z.Slot,l&&Z.ClippingSlot,l&&ot),children:e("div",{ref:a,className:te(Z.Content,l&&at[c.value?.from??"end"]),children:t})})}const Mt=n=>e(B,{children:n});function ve({customizations:n,selectorShowsTiles:t}){return n.length===0?null:e(F,{children:n.map(s=>s.kind==="uiExtension"?e(xt,{selectorShowsTiles:t,children:e(We,{extension:s.extension,render:Mt})},s.extension.id):e(Xe,{field:s.field},s.field.key))})}function It(){const{payment:n,directPaymentFieldsFilled:t}=Ae(),{paymentLines:s,directPaymentErrors:o}=Ee(),i=jn();Ce(()=>{const a=i.value||Bt(o);n.value=Rt(s.value,t.value)&&!a})}function Rt(n,t){return n.some(s=>s.method.type==="direct"?!!s.method.sessionId||t:!0)}function Bt(n){return Object.keys(n).filter(t=>t!=="paymentMethodIdentifier").some(t=>n[t].value!=null)}function Tt(){const{checkout:n}=C(),{displayedPaymentMethods:t}=st({experienceType:"list"}),s=ae(it(t)),o=_e(),i=Ye(),a=rt(),r=pt();return b(()=>{const u=ct(n.identity,r.value)!==null||a.value.freeOrder||a.value.giftCard||a.value.storeCredit||a.value.redeemables,c=!i.value&&(o.value==="inContext"||o.value==="afterPayment");return n.configuration.visibility.showStoreCreditRedemption.value&&!u&&s.value.mode==="singlePaymentMethodCreditCard"&&c})}const Lt=Se(function(){const{checkout:t,i18n:s,source:o,shop:i}=C(),{acceptTipPayments:a,discountCodesEnabled:r}=i,u=Mn(),c=Qe(),l=r&&c.value;Un(),It();const g=_e(),m=Tt(),S=b(()=>t.configuration.visibility.showStoreCreditRedemption.value&&!m.value),p=qe().value,k=ke(),v=b(()=>Ut({identity:t.identity})),A=k?.tippingPaymentAllowed??!0,y=!X(o)&&a&&A&&t.configuration.visibility.showTips,P=Hn();Kn();const x=b(()=>t.installments.isSupported.value&&!P),U=On(),w=Wn({showTips:y,billingFormPosition:g.value}),_=oe("purchase.checkout.payment-method-list.render-before"),h=oe("purchase.checkout.payment-method-list.render-after"),M=Y(!1);return e(en,{target:"cart.paymentLines[0]",children:e(f,{accessibilityRole:"group",accessibilityLabelledBy:"payment",gap:"base",children:[e(Ft,{}),e(K,{customizations:_}),e(dt,{}),e(Xn,{}),e(d,{when:S,children:e(ge,{})}),e(d,{when:x,children:e(Pt,{})}),e(Je,{children:e(f,{gap:"large-300",children:[e(Gn,{dynamicPaymentExtensions:w.shift()||[],children:[e(Vn,{selectorShowsTiles:M,renderVaultingAgreementInline:!1,afterPaymentSelector:e(d,{when:U,children:e(Nn,{})})}),e(d,{when:u,children:e(In,{})}),e(ve,{customizations:h,selectorShowsTiles:M}),e(ve,{customizations:w.shift()||[],selectorShowsTiles:M}),e(d,{when:v,children:e(Dn,{})})]}),e(d,{when:m,children:e(ge,{})}),p&&e(lt,{}),e(d,{when:t.configuration.visibility.showPurchaseOrderNumberField,children:e(ut,{showHeading:!1})}),y&&e(F,{children:[e(se,{sectionId:"tips",children:e(ie,{})}),e(K,{customizations:w.shift()||[]})]}),e(K,{customizations:w.flat()}),l&&e(Ze,{targetSelector:'input[name="reductions"]',icon:"discount",label:s.translate("order_summary.discount_discovery.add_code")})]})})]})})});function Ft(){const{router:n}=C(),t="payment",s=b(()=>Yn(n,t));return e(Rn,{headingId:t,autoFocus:s.value})}function Ut({identity:n}){switch(n.current.value){case"guest":case"customerAccount":case"shopPay":return!0;default:return!1}}const Dt="https://www.shopify.com/legal/cookies",Ht="https://help.shop.app/en/shop/shopping/ads-personalization";function Q({href:n,children:t,onClick:s}){return e(re,{tone:"monochrome",href:n,onClick:s,children:t})}Q.displayName="CookiesLink";function Ie({onClick:n}){const{i18n:t}=C();return e(Q,{href:Dt,onClick:n,children:t.translate("user_consent.policy")})}function Ot({onClick:n}){const{i18n:t}=C();return e(Q,{href:Ht,onClick:n,children:t.translate("user_consent.detailed_view.learn_about_ads")})}function ee({title:n,description:t,checked:s,onChange:o,disabled:i,badgeLabel:a}){return e(f,{gap:"small-200",children:[e(f,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(R,{type:"strong",children:n}),a?e(nn,{color:"subdued",children:a}):null]}),e(tn,{gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gap:"base",alignItems:"start",children:[e(R,{children:t}),e(bt,{checked:s,onChange:o,disabled:i,accessibilityLabel:n})]})]})}function Nt({open:n,onClose:t,onConsentSaved:s}){const{consentManager:o,i18n:i,shopPay:a}=C(),r=a.user.shopAccountUuid,u=r.value,c=o.trackingConsentSelection?.value,l=c!==void 0,[g,m]=T(!1),[S,p]=T(!1),[k,v]=T(!1),[A,y]=T(null),[P,x]=T(!1);H(()=>
1{if(!n)return;const h=o.trackingConsentSelection?.peek();m(h?.analytics??!1),p(h?.marketing??!1),v(!1),y(null),x(!1)},[o,u,n]),H(()=>{!n||k||!c||(m(c.analytics),p(c.marketing))},[k,n,c]);const U=E(async()=>{if(P||!l)return;const h=r.value;x(!0),y(null);const M=await o.setTrackingConsent({analytics:g,marketing:S});a.user.shopAccountUuid.value===h&&(M.success?(s?.(),t()):y(i.translate("user_consent.error_saving_consent")),x(!1))},[g,o,i,l,P,S,s,t,a,r]),w=i.translate("user_consent.detailed_view.description",{cookie_policy_href:e(Ie,{})}),_=e(B,{inlineSize:"@media (inline-size >= small) auto, 100%",children:e(W,{variant:"primary",onClick:U,inlineSize:"fill",loading:P||!l,disabled:P||!l,children:e(B,{minInlineSize:"100px",inlineAlignment:"center",children:e(R,{children:i.translate("user_consent.detailed_view.save")})})})});return e(Ct,{heading:i.translate("user_consent.title"),accessibilityLabel:i.translate("user_consent.manage"),open:n,onHide:t,primaryAction:_,children:e(f,{gap:"base",children:[e(f,{gap:"small-200",children:[A&&e(Pe,{tone:"critical",children:A}),e(R,{children:w})]}),e(f,{gap:"base",children:[e(ee,{title:i.translate("user_consent.detailed_view.necessary"),description:i.translate("user_consent.detailed_view.necessary_description"),checked:!0,disabled:!0,badgeLabel:i.translate("user_consent.detailed_view.required")}),e(ee,{title:i.translate("user_consent.detailed_view.analytics"),description:i.translate("user_consent.detailed_view.analytics_description"),checked:g,onChange:h=>{m(h),v(!0)},disabled:P||!l}),e(ee,{title:i.translate("user_consent.detailed_view.advertising"),description:i.translate("user_consent.detailed_view.advertising_description",{learn_about_ads_href:e(Ot,{})}),checked:S,onChange:h=>{p(h),v(!0)},disabled:P||!l})]})]})})}function zt(){const{consentManager:n,i18n:t,observability:s,shop:o,shopPay:i}=C(),a=i.user.shopAccountUuid,[r,u]=T(!1),[c,l]=T(null),g=o.hasFlagEnabled(xe),[m,S]=T(a.value),p=Y(!1),k=I(void 0);H(()=>{m!==a.value&&(S(a.value),p.value=!1,l(null))},[p,m,a.value]);const v=E(()=>{l(null),u(!0)},[]),A=E(()=>{u(!1)},[]),y=E(()=>{p.value=!0},[p]),P=E(async()=>{const L=a.value;l(null);const D=await n.acceptAll();if(i.user.shopAccountUuid.value===L){if(!D.success){l(t.translate("user_consent.error_saving_consent"));return}y()}},[y,t,i,a,n]),x=E(async()=>{const L=a.value;l(null);const D=await n.rejectAll();if(i.user.shopAccountUuid.value===L){if(!D.success){l(t.translate("user_consent.error_saving_consent"));return}y()}},[y,t,i,a,n]),U=y,w=m===a.value,_=g&&w&&(n.shouldShowBanner.value||p.value),h=Gt(_,w),M=I(_);H(()=>{const L=!M.current&&_;if(M.current=_,!!L)return an({content:t.translate("user_consent.title")})},[t,_]),H(()=>{!w||k.current===a.value||(k.current=a.value,s.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:_}}))},[w,_,a.value,s]);const V=e(f,{gap:"small-300",children:[c&&e(Pe,{tone:"critical",children:c}),e(d,{when:p,fallback:e(Vt,{onAcceptAll:P,onManageCookiesClick:v,onRejectAll:x}),children:e($t,{onManageCookiesClick:v})})]}),z=e(Nt,{open:r,onClose:A,onConsentSaved:U});if(!_)return null;const q=e(B,{ref:h,background:"subdued",borderRadius:"large",padding:"base",children:e(f,{gap:"base",accessibilityRole:"group",accessibilityLabel:t.translate("user_consent.title"),children:V})});return e(F,{children:[q,z]})}function Gt(n,t){const s=I(null),o=I(n),i=I(!1),a=I(null);if(o.current&&!n&&typeof document<"u"){const r=s.current,u=document.activeElement,c=r&&u instanceof HTMLElement&&r.contains(u),l=r&&on(r);i.current=!!c,a.current=c&&l?sn(l):null}return o.current=n,ne(()=>{if(!i.current||!t)return;i.current=!1;const r=n?s.current&&rn(s.current):a.current;a.current=null,r?.isConnected&&document.activeElement===document.body&&r.focus({preventScroll:!0})},[t,n]),s}function Vt({onManageCookiesClick:n,onAcceptAll:t,onRejectAll:s}){const{i18n:o}=C(),[i,a]=T(null),r=i!==null,u=E(async()=>{r||(a("accept"),await t(),a(null))},[r,t]),c=E(async()=>{r||(a("reject"),await s(),a(null))},[r,s]);return e(f,{gap:"base",children:[e(R,{type:"strong",children:o.translate("user_consent.accelerated_view.title")}),e(cn,{children:e(R,{children:o.translate("user_consent.accelerated_view.description",{cookie_policy_href:e(Ie,{})})})}),e(f,{direction:"inline",gap:"small-200",children:[e(W,{inlineAlignment:"center",onClick:u,size:"small",variant:"secondary",loading:i==="accept",disabled:r,children:o.translate("user_consent.accelerated_view.accept_all")}),e(W,{inlineAlignment:"center",onClick:c,size:"small",variant:"secondary",loading:i==="reject",disabled:r,children:o.translate("user_consent.accelerated_view.reject_all")}),e(W,{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 $t({onManageCookiesClick:n}){const{i18n:t}=C();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}=C();return e(Q,{onClick:n,children:t.translate("user_consent.manage")})}const Kt=({i18n:n,incentives:t,formattedTotalAmount:s})=>{if(!t||t.length===0)return;const o=t.find(Re),i=t.find(Be),a=o?.displayName;if(o&&a&&i){const r=n.formatCurrency(o.expectedAmount.amount,{currency:o.expectedAmount.currencyCode}),u=n.formatCurrency(i.cashbackAmount.amount,{currency:i.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:a,offerAmount:u})}}if(o&&a&&!i){const r=n.formatCurrency(o.expectedAmount.amount,{currency:o.expectedAmount.currencyCode}),u=o.remainingRewardLimit?.amount===o.expectedAmount.amount;return{title:n.translate("shop_cash.reward_banner_title_with_promotion_attribution",{formattedAmount:r,promotionDisplayName:a}),description:u?n.translate("shop_cash.reward_banner_description_max"):void 0}}},Wt=n=>n.__typename==="ShopCashCheckoutCashbackIncentive",Re=n=>Wt(n)&&n.expectedAmount.amount>0,Xt=n=>n.__typename==="ShopCashCheckoutFlatAmountCashbackIncentive",Be=n=>Xt(n)&&n.minimumOrderValueSatisfied,Yt="F7fwo",Qt="VnjPc",qt="gXkBh",Jt="iJGCf",j={ShopCashCashbackBanner:Yt,ShopCashCashbackBannerText:Qt,ShopCashCashbackBannerLight:qt,ShopCashCashbackBannerDark:Jt},N="https://cdn.shopify.com/shop-assets/static_uploads/shop-cash/",Zt=`${N}checkout_banner_coin_light.png`,ea=`${N}checkout_banner_coin_light_2x.png`,na=`${N}checkout_banner_coin_light_4x.png`,ta=`${N}checkout_banner_coin_dark.png`,aa=`${N}checkout_banner_coin_dark_2x.png`,oa=`${N}checkout_banner_coin_dark_4x.png`,sa=({expectedAmount:n,incentives:t,i18n:s,darkMode:o,incentivePresentation:i})=>{const a=n!=null&&n.amount!==0,r=a?s.formatCurrency(n.amount,{currency:n.currencyCode}):"",u=a?Kt({i18n:s,incentives:t,formattedTotalAmount:r}):void 0,c=a?u?.title??s.translate("shop_cash.rewards_banner_title",{formattedAmount:r}):"",l=u?.description,g=l?`${c} ${l}`:c,m=a&&(t?.some(A=>Be(A)||Re(A))??!1);if(Qn(i,"cashbackBanner",m?g:void 0),!a)return null;const S=o?ta:Zt,p=o?aa:ea,k=o?oa:na,v=te(j.ShopCashCashbackBanner,o?j.ShopCashCashbackBannerDark:j.ShopCashCashbackBannerLight);return e(f,{direction:"inline",alignItems:"center",gap:"small-300",className:v,borderRadius:"large",children:[e(ln,{src:S,srcSet:`${S} 1x, ${p} 2x, ${k} 4x`,aspectRatio:"auto"}),l?e(f,{direction:"block",gap:"none",className:j.ShopCashCashbackBannerText,children:[e(R,{children:c}),e(R,{type:"small",children:l})]}):e(R,{children:c})]})};function ia(){const{i18n:n}=C(),t=qn(),{isEarningCashback:s,cashback:o,incentivePresentation:i}=gt();return!s||!o?null:e(B,{children:[e(O,{blockSize:"large-200"}),e(sa,{expectedAmount:o.expectedAmount,incentives:o.incentives,i18n:n,darkMode:t,incentivePresentation:i})]})}function ra(){const{embed:n,router:t}=C(),s=t.currentUrl.value,{label:o}=un(),i=dn({clearPii:!0}),a=hn(),{isAppLayout:r}=mn(),{progressing:u}=pn(),{setEditorShopPay:c}=_t(),l=E(()=>
1{if(c){c(!1);return}u.value||i()},[c,u,i]);return a||n?.isCheckoutKit()||!(r||kn(s.search))?e(re,{onClick:l,textDecoration:"none",children:o}):null}const ca=n=>Pn()?n.bridge.iframeClosed():window.close();function la(){const n=kt();return E(()=>{ca(n)},[n])}function ua(){const n=la(),t=Me(),s=we({base:!0,small:!1}),o=wn()&&(t.value?s??!1:!0),{i18n:i,shop:{name:a},shopPay:r}=C();if(!r.visibility.showReturnToStore||!o)return null;const u=i.translate("shop_pay_external.return_to_store",{shopName:a});return e(f,{alignItems:"center",children:[e(O,{blockSize:"base"}),e(re,{onClick:n,children:u})]})}function be(){const{checkout:{identity:n},source:t,shopPay:s,mobileCheckoutSdk:o}=C(),{visibility:{showCheckoutAsGuestFeature:i}}=s;if(n.current.value!=="shopPay"||!i)return null;const a=t.type==="shopPayExternal"?e(ua,{}):e(ra,{}),r=o.variant.isPartner();return e(F,{children:[e(O,{blockSize:"large-100"}),e(B,{inlineAlignment:"center",children:a}),r?e(O,{blockSize:"base"}):e(B,{display:"@media (inline-size >= small) auto, none",children:e(O,{blockSize:"base"})})]})}const $o=Se(function({onReady:t,showMobileOrderSummary:s,showVaultedStateMarketingDisclosureBelowPayment:o,phoneMarketingPlacement:i,isSectionCustomized:a,showVaultedStateMarketingDisclosureOnMobile:r,expressCheckoutSlot:u,showVaultedCardConsentSpacing:c}){const l=gn(),g=fn(),m=An(),S=St(),{checkout:p,embed:k,i18n:v,mobileCheckoutSdk:A,source:y,shop:P,shopPay:x}=C(),U=yn(),_=En().managedByMarketsPro,h=ae(we({base:!0,medium:!1})),M=Me(),V=vn(),z=b(()=>V.configurationSignal.value.main.spacing),q=b(()=>{const{position:G}=V.configurationSignal.value.reductions;return x.visibility.shouldRenderFloatingShopPayButton?"none":G==="base"?"large-200":s.value&&z.value!=null?me(z.value)??"base":"base"}),{localizationExtensions:L}=Ee(),D=b(()=>L.value.length>0),Te=b(()=>c?.value&&!D.value?"large-200":"none"),Le=da(h),Fe=b(()=>o.value&&!r.value&&(!h.value||!a.value)),Ue=b(()=>i.value==="belowPayment"),De=ke(),He=ae(De?.tippingPaymentAllowed??!0),ce=b(()=>l.value.payment&&P.acceptTipPayments&&He.value&&p.configuration.visibility.showTips),Oe=bn(),le=A.variant.isPartner(),Ne=b(()=>P.hasFlagEnabled(xe)&&p.identity.current.value==="shopPay"&&y.type!=="shopPayExternal"&&x.user.shopAccountUuid.value!==""&&!X(y)),ue=e(d,{when:Ne,children:e(zt,{})}),ze=b(()=>U.value.currentDetour?.type==="thankYou"?"Checkout::ThankYou::Dynamic::Render":"Checkout::Dynamic::Render"),Ge=oe(ze.value,"ORDER_SUMMARY4"),Ve=b(()=>u.value!=="wallets"&&!!_.value),$=Jn();return H(()=>{const G=setTimeout(t,0);return()=>clearTimeout(G)},[t]),e(F,{children:e(J,{min:"medium",accessibilityLabel:v.translate("payment.title"),hideDivider:!0,children:[e(d,{when:()=>!l.value.payment,children:e(F,{children:[e(de,{section:"payment",children:e(he,{section:"payment",children:e(J,{max:"medium",accessibilityLabel:v.translate("payment.title"),children:e(Lt,{})})})}),e(d,{when:p.configuration.visibility.showCashRedemption,children:e(Zn,{})}),e(et,{})]})}),e(d,{when:D,children:e(ft,{accessibilityLabel:v.translate("localized_fields.additional_information.title"),children:e(f,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:[e(Cn,{level:2,children:v.translate("localized_fields.additional_information.title")}),e(je,{each:L,children:(G,$e)=>e(Bn,{localizationExtension:G,index:$e})})]})})}),e(d,{when:()=>h.value&&!X(y)&&ce.value,children:e(B,{display:"@media (inline-size >= medium) none, auto",children:[e(se,{sectionId:"tips",children:e(ie,{renderInSection:h})}),e(d,{when:()=>!k?.isFlagshipPartner,children:e(yt,{spacing:me(z.value)})})]})}),e(d,{when:()=>h.value&&g.value&&$.value.length,children:e(fe,{extensions:$,hideDivider:"whenEmpty"})}),e(de,{section:"summary",children:e(he,{section:"summary",children:e("div",{ref:Le,children:[e(vt,{target:"mobileOrderSummary",children:e(J,{max:"medium",hideDivider:!0,children:[e(d,{when:()=>h.value===!0,children:e(pe,{})}),e(nt,{showEmailMarketingOptIn:Fe,showPhoneMarketingOptIn:Ue,paddingBlockStart:Te}),e(d,{when:s,children:e(Ln,{})}),e(f,{gap:q.value,"data-testid":"onepage-pay-button-cluster",children:[e(f,{gap:"base",children:[e(d,{when:()=>!h.value&&!X(y)&&ce.value,children:e(B,{display:"@media (inline-size >= medium) auto, none",children:e(se,{sectionId:"tips",children:[e(d,{when:()=>!a.value,children:e(O,{blockSize:"large-300"})}),e(ie,{})]})})}),e(d,{when:()=>!h.value&&g.value&&$.value.length>0,children:e(fe,{extensions:$})}),e(d,{when:Ve,children:e(f,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:e(Tn,{textProps:{color:"subdued",size:"small"}})})})]}),e(d,{when:()=>h.value!==!0,children:e(pe,{})}),e(f,{gap:"large-200",children:[e(d,{when:S,children:e(xn,{})}),e(d,{when:m,children:e(ye,{placement:"above-pay-button"})}),e(Fn,{buttonHidden:Oe}),e(d,{when:m,children:e(ye,{placement:"default"})}),e(d,{when:()=>!M.value||h.value,children:e(Sn,{above:"medium",children:e(K,{customizations:Ge,gap:"large-200"})})})]})]}),e(d,{when:p.configuration.visibility.showShopCashRewardsBanner,children:e(ia,{})}),le?null:e(F,{children:[e(be,{}),ue]})]})}),le?e(F,{children:[e(be,{}),ue]}):null]})})})]})})});function da(n){const{setTriggerNode:t}=_n("chat"),s=Y(null);return Ce(()=>{t(n.value?s.value:null)}),E(o=>{s.value=o},[s])}export{$o as default,da 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.