PageSourceSearch

https://store.somafm.com/cdn/shopifycloud/checkout-web/assets/c1/page-BelowTheFoldContent.pNE1V8do.js

js somafm.com collected 2026-09-24 08:48:43 UTC 23,907 bytes, 1 lines download raw bytes

1import{u as e,A as x,e as Q,_ as ne,g as te,S as F,p as Se,l as ae,f as P,Q as _e,i as d,k as L,h as O,q as A,s as $e}from"./esnext-vendor.D7ldIee_.js";import{eB as je,eC as Ke,eD as We,B as T,cU as ke,cQ as Xe,cO as Ye,cP as Qe,ba as Pe,s as se,k as y,U as W,$ as qe,cR as oe,cS as Je,cH as Ze,L as re,i as X,l as M,W as we,eE as en,G as nn,a as tn,aU as an,aS as sn,aT as on,P as rn,cs as cn,b as H,bo as ln,a1 as Ae,d as un,eF as dn,a6 as hn,dq as mn,O as he,Q as me,n as pn,H as yn,d_ as gn}from"./hydrate.ByRIsqvd.js";import{an as Ee,O as ce,N as b,b2 as Y,f1 as xe,f2 as fn,dN as vn,f3 as bn,a0 as Cn,f4 as Sn,az as _n,aB as kn,am as Me,bN as Pn,ae as wn,aa as An,$ as En,ak as pe}from"./addresses-is-address-empty.-MuOhIyI.js";import{C as xn}from"./Captcha.BbYqxwBL.js";import{u as Mn,S as Tn,P as Rn,L as In,R as ye}from"./RememberMeSection.BOf68zmB.js";import{M as Bn}from"./MarketsProDisclaimer.wV7aMZTc.js";import{MobileOrderSummary as Ln}from"./component-MobileOrderSummary.B6nUs1j_.js";import{P as Fn}from"./PayButtonSection.Dud2wYv0.js";import{u as Un,b as ge,G as Dn,T as ie}from"./useAddressMutationsWithNegotiation.Bu1iJp6d.js";import{a as On,b as Hn,H as Nn}from"./StickyPayButton-StickyPayButton.module.DrkNxyTx.js";import{a as zn,W as Gn,P as Vn}from"./PaymentOptionSelector.LuuQe4at.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.JtsOe4gf.js";import{E as tt,F as at,G as st,u as ot,a as it,g as rt,h as ct,V as lt,b as ut}from"./components-PaymentMethodProgressionHost.BgOpCmhs.js";import{P as dt}from"./PaymentErrorBanner.BNtKSHks.js";import{v as Te}from"./app.A60-IfPs.js";import{a as ht,b as mt}from"./payment-usePaymentExemptionReason.Q4GfCwuW.js";import{P as ve}from"./hooks-useWalletsTimeout.DIL_pXhM.js";import{b as J,S as pt,c as yt}from"./Section.DIJn7eYY.js";import{S as gt}from"./Section-SectionStyleOverride.Dli5IR65.js";import{S as ft}from"./Switch.aKF4dNrP.js";import{O as vt}from"./hooks-useShopPayProgressIntercepts.CnlV9rdf.js";import{u as bt}from"./PaymentButtons.ey0T5OXw.js";import{r as Ct}from"./components-DeliveryTransition.BjmsXjx9.js";import"./constants.DowbVE6J.js";import"./hooks-useReplaceShopPayInHistory.Cz4PqGkk.js";import"./ShopPayCaptcha.DpdjijF2.js";import"./PaymentIcon.Ddd-WnG2.js";import"./stopwatch.wWgdKLTI.js";import"./components-RedirectionNotice.module.CqgkZHXB.js";import"./Checkbox.Cby2hWUV.js";import"./hooks-useCanChangeCompanyLocation.Bk004VMP.js";import"./TransitionHeight.C0wKTnZA.js";import"./hooks-useShouldRevealCustomization.C_GYHzzt.js";import"./styles-floating-layer.module.CcHB2ksN.js";import"./utils-useViolationsHandler.BKoPz2bB.js";import"./ShopPayLogo.Dh-KQvuu.js";import"./shared-shop-theme.BJKdwdMa.js";import"./useShopPayButtonClassName.DeL41vx0.js";import"./apple-pay-errors.CcNuwNMC.js";import"./graphql-PaymentSessionMutation.CK_JkOwG.js";import"./shop-pay-ProgressIntercepts.wTCQvlrM.js";import"./ImpressionEventCapture.CIEEzh6Z.js";import"./hooks-useHasOrdersFromMultipleShops.PKFq4ktR.js";import"./PaymentLine.DhO8cHCS.js";import"./hooks-useUnauthenticatedErrorModal.CzvtLqeY.js";import"./localization-index.DBksi22x.js";import"./Theme-ThemeOverride.4AonMthy.js";import"./IncentiveBadge.D66zssvS.js";import"./Choice.Dywz6_Fr.js";import"./hooks-useUpdateCheckoutAddress.4zyjtqEx.js";import"./utilities-shopCashMoney.B9eyOzz9.js";import"./shop-pay-normalizeBuyerDetails.BcEhgoK7.js";import"./context-CheckoutSheetProtocolClient.CNLSBD5p.js";import"./checkout-updaters-helpers.DKDxNKY0.js";import"./Popover.BNecjV8x.js";import"./hooks-payment-button.D5UAY6lK.js";import"./hooks-useGeneralPaymentErrorMessage.CXe06B2R.js";import"./BillingAddressSelector.CyVrY0kP.js";import"./BillingAddressForm.DHpCPcqC.js";import"./hooks-useSuppressShopPayModalOnLoad.CI5bzdLE.js";import"./PhoneField.BapDvZfY.js";import"./ChangeCompanyLocationLink.Ba8IeUdU.js";import"./shop-pay-installments-monorail.cv2DVyY3.js";import"./Monorail-monorailMetric-wallets.C3kHkAxp.js";import"./hooks-useStableHostMethodsReferences.C4W1cetV.js";import"./hooks-usePreselectSpi.B308gMMr.js";import"./hooks-useAvailableShopPromotionDiscounts.DRFdQEEP.js";import"./mobile-checkout-sdk-MobileCheckoutSdkClient.CVSnUTrf.js";import"./shipping-methods-grouping.DDWlTvqo.js";import"./Middot.BwhErQgI.js";import"./EstimatedDeliveryContent.P3UYo-F2.js";import"./ShippingMethodRateLabel.DfFHFGoZ.js";import"./shipping-methods-consolidated-included.CmQthVU7.js";import"./ShippingLines.C3cNVVcP.js";import"./PendingShipping.TwutGJMj.js";import"./ShipmentBreakdown.BCHd0lNF.js";import"./MerchandiseModal.QhgBWo-v.js";import"./ShippingMethodSelector.KipCTTDv.js";import"./TextArea.wcLwM1i3.js";import"./SubscriptionPriceBreakdown.0rp4tSej.js";import"./StockProblems-StockProblemsLineItemList.Di56mnXD.js";import"./models-ShopPayBuyerDetails.model.CahX79UU.js";import"./hooks-useForceShopPayUrl.MIxsBkT_.js";import"./AutocompleteField-hooks.YzxHOgXJ.js";function St(){const n=je();return $n({ineligibilityReasonLabel:n}),e(zn,{ineligibilityReason:n})}function _t(){return Te.inflightTransitionTypes.some(n=>n==="payment-details-slide-start"||n==="payment-details-slide-end")}function kt(){return Te.inflightTransitionTypes.includes("payment-details-slide-start")?"start":"end"}const Pt="x4UOe",wt="SGLj7",At="_2hShs",Z={Slot:Pt,ClippingSlot:wt,Content:At};function Et({selectorShowsTiles:n,children:t}){const{buyerHasActedSignal:o}=Ee(),s=tt(),i=x(null),a=x(null),r=x(!1),u=x(!1),c=Q(null);
1u.current=n.value&&o.value,ne(()=>{const p=a.current;if(!p||typeof MutationObserver>"u")return;const m=new MutationObserver(g=>{if(!p.hasChildNodes()){r.current=!1,c.value=null;return}!g.some(v=>v.addedNodes.length>0)||!u.current||!_t()||(r.current=!0,c.value={from:kt(),withMotion:s.loaded})});return m.observe(p,{childList:!0,subtree:!0}),()=>m.disconnect()},[c,s]),ne(()=>{if(r.current){r.current=!1;for(const p of[i.current,a.current])for(const m of p?.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&&st),children:e("div",{ref:a,className:te(Z.Content,l&&at[c.value?.from??"end"]),children:t})})}const xt=n=>e(T,{children:n});function be({customizations:n,selectorShowsTiles:t}){return n.length===0?null:e(F,{children:n.map(o=>o.kind==="uiExtension"?e(Et,{selectorShowsTiles:t,children:e(Ke,{extension:o.extension,render:xt})},o.extension.id):e(We,{field:o.field},o.field.key))})}function Mt(){const{payment:n,directPaymentFieldsFilled:t}=Ee(),{paymentLines:o,directPaymentErrors:s}=ce(),i=jn();Se(()=>{const a=i.value||Rt(s);n.value=Tt(o.value,t.value)&&!a})}function Tt(n,t){return n.some(o=>o.method.type==="direct"?!!o.method.sessionId||t:!0)}function Rt(n){return Object.keys(n).filter(t=>t!=="paymentMethodIdentifier").some(t=>n[t].value!=null)}function It(){const{checkout:n}=b(),{displayedPaymentMethods:t}=ot({experienceType:"list"}),o=ae(it(t)),s=ke(),i=Xe(),a=rt(),r=ht();return P(()=>{const u=ct(n.identity,r.value)!==null||a.value.freeOrder||a.value.giftCard||a.value.storeCredit||a.value.redeemables,c=!i.value&&(s.value==="inContext"||s.value==="afterPayment");return n.configuration.visibility.showStoreCreditRedemption.value&&!u&&o.value.mode==="singlePaymentMethodCreditCard"&&c})}const Bt=_e(function(){const{checkout:t,i18n:o,source:s,shop:i}=b(),{acceptTipPayments:a,discountCodesEnabled:r}=i,u=Mn(),c=Ye(),l=r&&c.value;Un(),Mt();const p=ke(),m=It(),g=P(()=>t.configuration.visibility.showStoreCreditRedemption.value&&!m.value),f=Qe().value,v=ce().paymentLines.value.some(z=>z.method.type==="direct"),w=Pe(),C=P(()=>Ft({identity:t.identity})),S=w?.tippingPaymentAllowed??!0,_=!Y(s)&&a&&S&&t.configuration.visibility.showTips,R=On();Kn();const D=P(()=>t.installments.isSupported.value&&!R),E=Hn(),h=Wn({showTips:_,billingFormPosition:p.value}),k=se("purchase.checkout.payment-method-list.render-before"),I=se("purchase.checkout.payment-method-list.render-after"),B=Q(!1);return e(Ze,{target:"cart.paymentLines[0]",children:e(y,{accessibilityRole:"group",accessibilityLabelledBy:"payment",gap:"base",children:[e(Lt,{}),e(W,{customizations:k}),e(dt,{}),e(Xn,{}),e(d,{when:g,children:e(ge,{})}),e(d,{when:D,children:e(St,{})}),e(qe,{children:e(y,{gap:"large-300",children:[e(Gn,{dynamicPaymentExtensions:h.shift()||[],children:[e(Vn,{selectorShowsTiles:B,afterPaymentSelector:e(d,{when:E,children:e(Nn,{})})}),e(d,{when:u,children:e(Tn,{})}),e(be,{customizations:I,selectorShowsTiles:B}),e(be,{customizations:h.shift()||[],selectorShowsTiles:B}),e(d,{when:C,children:e(Dn,{})})]}),e(d,{when:m,children:e(ge,{})}),f&&!v&&e(lt,{}),e(d,{when:t.configuration.visibility.showPurchaseOrderNumberField,children:e(ut,{showHeading:!1})}
1),_&&e(F,{children:[e(oe,{sectionId:"tips",children:e(ie,{})}),e(W,{customizations:h.shift()||[]})]}),e(W,{customizations:h.flat()}),l&&e(Je,{targetSelector:'input[name="reductions"]',icon:"discount",label:o.translate("order_summary.discount_discovery.add_code")})]})})]})})});function Lt(){const{router:n}=b(),t="payment",o=P(()=>Yn(n,t));return e(Rn,{headingId:t,autoFocus:o.value})}function Ft({identity:n}){switch(n.current.value){case"guest":case"customerAccount":case"shopPay":return!0;default:return!1}}const Ut="https://www.shopify.com/legal/cookies",Dt="https://help.shop.app/en/shop/shopping/ads-personalization";function q({href:n,children:t,onClick:o}){return e(re,{tone:"monochrome",href:n,onClick:o,children:t})}q.displayName="CookiesLink";function Re({onClick:n}){const{i18n:t}=b();return e(q,{href:Ut,onClick:n,children:t.translate("user_consent.policy")})}function Ot({onClick:n}){const{i18n:t}=b();return e(q,{href:Dt,onClick:n,children:t.translate("user_consent.detailed_view.learn_about_ads")})}function ee({title:n,description:t,checked:o,onChange:s,disabled:i,badgeLabel:a}){return e(y,{gap:"small-200",children:[e(y,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(M,{type:"strong",children:n}),a?e(en,{color:"subdued",children:a}):null]}),e(nn,{gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gap:"base",alignItems:"start",children:[e(M,{children:t}),e(ft,{checked:o,onChange:s,disabled:i,accessibilityLabel:n})]})]})}function Ht({open:n,onClose:t,onConsentSaved:o}){const{consentManager:s,i18n:i,shopPay:a}=b(),r=a.user.shopAccountUuid,u=r.value,c=s.trackingConsentSelection?.value,l=c!==void 0,[p,m]=L(!1),[g,f]=L(!1),[v,w]=L(!1),[C,S]=L(null),[_,R]=L(!1);O(()=>{if(!n)return;const k=s.trackingConsentSelection?.peek();m(k?.analytics??!1),f(k?.marketing??!1),w(!1),S(null),R(!1)}
1,[s,u,n]),O(()=>{!n||v||!c||(m(c.analytics),f(c.marketing))},[v,n,c]);const D=A(async()=>{if(_||!l)return;const k=r.value;R(!0),S(null);const I=await s.setTrackingConsent({analytics:p,marketing:g});a.user.shopAccountUuid.value===k&&(I.success?(o?.(),t()):S(i.translate("user_consent.error_saving_consent")),R(!1))},[p,s,i,l,_,g,o,t,a,r]),E=i.translate("user_consent.detailed_view.description",{cookie_policy_href:e(Re,{})}),h=e(T,{inlineSize:"@media (inline-size >= small) auto, 100%",children:e(X,{variant:"primary",onClick:D,inlineSize:"fill",loading:_||!l,disabled:_||!l,children:e(T,{minInlineSize:"100px",inlineAlignment:"center",children:e(M,{children:i.translate("user_consent.detailed_view.save")})})})});return e(vt,{heading:i.translate("user_consent.title"),accessibilityLabel:i.translate("user_consent.manage"),open:n,onHide:t,primaryAction:h,children:e(y,{gap:"base",children:[e(y,{gap:"small-200",children:[C&&e(we,{tone:"critical",children:C}),e(M,{children:E})]}),e(y,{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:p,onChange:k=>{m(k),w(!0)},disabled:_||!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:g,onChange:k=>{f(k),w(!0)},disabled:_||!l})]})]})})}function Nt(){const{consentManager:n,i18n:t,observability:o,shop:s,shopPay:i}=b(),a=i.user.shopAccountUuid,[r,u]=L(!1),[c,l]=L(null),p=s.hasFlagEnabled(xe),[m,g]=L(a.value),f=Q(!1),v=x(void 0);O(()=>{m!==a.value&&(g(a.value),f.value=!1,l(null))},[f,m,a.value]);const w=A(()=>{l(null),u(!0)},[]),C=A(()=>{u(!1)},[]),S=A(()=>{f.value=!0},[f]),_=A(async()=>{const U=a.value;l(null);const G=await n.acceptAll();if(i.user.shopAccountUuid.value===U){if(!G.success){l(t.translate("user_consent.error_saving_consent"));return}S()}},[S,t,i,a,n]),R=A(async()=>{const U=a.value;l(null);const G=await n.rejectAll();if(i.user.shopAccountUuid.value===U){if(!G.success){l(t.translate("user_consent.error_saving_consent"));return}S()}},[S,t,i,a,n]),D=S,E=m===a.value,h=p&&E&&(n.shouldShowBanner.value||f.value),k=zt(h,E),I=x(h);O(()=>{const U=!I.current&&h;if(I.current=h,!!U)return tn({content:t.translate("user_consent.title")})},[t,h]),O(()=>{!E||v.current===a.value||(v.current=a.value,o.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:h}}))},[E,h,a.value,o]);const B=e(y,{gap:"small-300",children:[c&&e(we,{tone:"critical",children:c}),e(d,{when:f,fallback:e(Gt,{onAcceptAll:_,onManageCookiesClick:w,onRejectAll:R}),children:e(Vt,{onManageCookiesClick:w})})]}),z=e(Ht,{open:r,onClose:C,onConsentSaved:D});if(!h)return null;const $=e(T,{ref:k,background:"subdued",borderRadius:"large",padding:"base",children:e(y,{gap:"base",accessibilityRole:"group",accessibilityLabel:t.translate("user_consent.title"),children:B})});return e(F,{children:[$,z]})}function zt(n,t){const o=x(null),s=x(n),i=x(!1),a=x(null);if(s.current&&!n&&typeof document<"u"){const r=o.current,u=document.activeElement,c=r&&u instanceof HTMLElement&&r.contains(u),l=r&&an(r);i.current=!!c,a.current=c&&l?sn(l):null}return s.current=n,ne(()=>{if(!i.current||!t)return;i.current=!1;const r=n?o.current&&on(o.current):a.current;a.current=null,r?.isConnected&&document.activeElement===document.body&&r.focus({preventScroll:!0})},[t,n]),o}function Gt({onManageCookiesClick:n,onAcceptAll:t,onRejectAll:o}){const{i18n:s}=b(),[i,a]=L(null),r=i!==null,u=A(async()=>{r||(a("accept"),await t(),a(null))},[r,t]),c=A(async()=>{r||(a("reject"),await o(),a(null))},[r,o]);return e(y,{gap:"base",children:[e(M,{type:"strong",children:s.translate("user_consent.accelerated_view.title")}),e(rn,{children:e(M,{children:s.translate("user_consent.accelerated_view.description",{cookie_policy_href:e(Re,{})})})}),e(y,{direction:"inline",gap:"small-200",children:[e(X,{inlineAlignment:"center",onClick:u,size:"small",variant:"secondary",loading:i==="accept",disabled:r,children:s.translate("user_consent.accelerated_view.accept_all")}),e(X,{inlineAlignment:"center",onClick:c,size:"small",variant:"secondary",loading:i==="reject",disabled:r,children:s.translate("user_consent.accelerated_view.reject_all")}),e(X,{inlineAlignment:"center",onClick:n,size:"small",variant:"plain",textDecoration:"none",disabled:r,accessibilityLabel:s.translate("user_consent.manage"),children:s.translate("user_consent.accelerated_view.manage")})]})]})}function Vt({onManageCookiesClick:n}){const{i18n:t}=b();return e(T,{autoFocus:!0,children:e(M,{children:t.translate("user_consent.accelerated_view.consent_collected",{manage_cookies_href:e($t,{onManageCookiesClick:n})})})})}function $t({onManageCookiesClick:n}){const{i18n:t}=b();return e(q,{onClick:n,children:t.translate("user_consent.manage")})}const jt=({i18n:n,incentives:t,formattedTotalAmount:o})=>{if(!t||t.length===0)return;const s=t.find(Ie),i=t.find(Be),a=s?.displayName;if(s&&a&&i){const r=n.formatCurrency(s.expectedAmount.amount,{currency:s.expectedAmount.currencyCode}),u=n.formatCurrency(i.cashbackAmount.amount,{currency:i.cashbackAmount.currencyCode});return{title:n.translate("shop_cash.rewards_banner_title",{formattedAmount:o}),description:n.translate("shop_cash.reward_banner_description_combined_rewards",{promotionAmount:r,promotionDisplayName:a,offerAmount:u})}}if(s&&a&&!i){const r=n.formatCurrency(s.expectedAmount.amount,{currency:s.expectedAmount.currencyCode}),u=s.remainingRewardLimit?.amount===s.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}}},Kt=n=>n.__typename==="ShopCashCheckoutCashbackIncentive",Ie=n=>Kt(n)&&n.expectedAmount.amount>0,Wt=n=>n.__typename==="ShopCashCheckoutFlatAmountCashbackIncentive",Be=n=>Wt(n)&&n.minimumOrderValueSatisfied,Xt="F7fwo",Yt="VnjPc",Qt="gXkBh",qt="iJGCf",K={ShopCashCashbackBanner:Xt,ShopCashCashbackBannerText:Yt,ShopCashCashbackBannerLight:Qt,ShopCashCashbackBannerDark:qt},N="https://cdn.shopify.com/shop-assets/static_uploads/shop-cash/",Jt=`${N}checkout_banner_coin_light.png`,Zt=`${N}checkout_banner_coin_light_2x.png`,ea=`${N}checkout_banner_coin_light_4x.png`,na=`${N}checkout_banner_coin_dark.png`,ta=`${N}checkout_banner_coin_dark_2x.png`,aa=`${N}checkout_banner_coin_dark_4x.png`,sa=({expectedAmount:n,incentives:t,i18n:o,darkMode:s,incentivePresentation:i})=>{const a=n!=null&&n.amount!==0,r=a?o.formatCurrency(n.amount,{currency:n.currencyCode}):"",u=a?jt({i18n:o,incentives:t,formattedTotalAmount:r}):void 0,c=a?u?.title??o.translate("shop_cash.rewards_banner_title",{formattedAmount:r}):"",l=u?.description,p=l?`${c} ${l}`:c,m=a&&(t?.some(C=>Be(C)||Ie(C))??!1);if(Qn(i,"cashbackBanner",m?p:void 0),!a)return null;const g=s?na:Jt,f=s?ta:Zt,v=s?aa:ea,w=te(K.ShopCashCashbackBanner,s?K.ShopCashCashbackBannerDark:K.ShopCashCashbackBannerLight);return e(y,{direction:"inline",alignItems:"center",gap:"small-300",className:w,borderRadius:"large",children:[e(cn,{src:g,srcSet:`${g} 1x, ${f} 2x, ${v} 4x`,aspectRatio:"auto"}),l?e(y,{direction:"block",gap:"none",className:K.ShopCashCashbackBannerText,children:[e(M,{children:c}),e(M,{type:"small",children:l})]}):e(M,{children:c})]})};function oa(){const{i18n:n}=b(),t=qn(),{isEarningCashback:o,cashback:s,incentivePresentation:i}=mt();return!o||!s?null:e(T,{children:[e(H,{blockSize:"large-200"}),e(sa,{expectedAmount:s.expectedAmount,incentives:s.incentives,i18n:n,darkMode:t,incentivePresentation:i})]})}function ia(){const{embed:n,router:t}=b(),o=t.currentUrl.value,{label:s}=fn(),i=vn({clearPii:!0}),a=bn(),{isAppLayout:r}=ln(),{progressing:u}=Cn(),{setEditorShopPay:c}=Ct(),l=A(()=>{if(c){c(!1);return}u.value||i()},[c,u,i]);return a||n?.isCheckoutKit()||!(r||Sn(o.search))?e(re,{onClick:l,textDecoration:"none",children:s}):null}const ra=n=>_n()?n.bridge.iframeClosed():window.close();function ca(){const n=kn();return A(()=>{ra(n)},[n])}function la(){const n=ca(),t=Me(),o=Ae({base:!0,small:!1}),s=Pn()&&(t.value?o??!1:!0),{i18n:i,shop:{name:a},shopPay:r}=b();if(!r.visibility.showReturnToStore||!s)return null;const u=i.translate("shop_pay_external.return_to_store",{shopName:a});return e(y,{alignItems:"center",children:[e(H,{blockSize:"base"}),e(re,{onClick:n,children:u})]})}function Ce(){const{checkout:{identity:n},source:t,shopPay:o,mobileCheckoutSdk:s}=b(),{visibility:{showCheckoutAsGuestFeature:i}}=o;if(n.current.value!=="shopPay"||!i)return null;const a=t.type==="shopPayExternal"?e(la,{}):e(ia,{}),r=s.variant.isPartner();return e(F,{children:[e(H,{blockSize:"large-100"}),e(T,{inlineAlignment:"center",children:a}),r?e(H,{blockSize:"base"}):e(T,{display:"@media (inline-size >= small) auto, none",children:e(H,{blockSize:"base"})})]})}const zs=_e(function({onReady:t,showMobileOrderSummary:o,showVaultedStateMarketingDisclosureBelowPayment:s,phoneMarketingPlacement:i,isSectionCustomized:a,showVaultedStateMarketingDisclosureOnMobile:r,expressCheckoutSlot:u}
1){const c=un(),l=dn(),p=wn(),m=bt(),{checkout:g,embed:f,i18n:v,mobileCheckoutSdk:w,source:C,shop:S,shopPay:_}=b(),R=An(),E=En().managedByMarketsPro,h=ae(Ae({base:!0,medium:!1})),k=Me(),I=hn(),B=P(()=>I.configurationSignal.value.main.spacing),z=P(()=>{const{position:V}=I.configurationSignal.value.reductions;return _.visibility.shouldRenderFloatingShopPayButton?"none":V==="base"?"large-200":o.value&&B.value!=null?pe(B.value)??"base":"base"}),{localizationExtensions:$}=ce(),U=P(()=>$.value.length>0),G=ua(h),Le=P(()=>s.value&&!r.value&&(!h.value||!a.value)),Fe=P(()=>i.value==="belowPayment"),Ue=Pe(),De=ae(Ue?.tippingPaymentAllowed??!0),le=P(()=>c.value.payment&&S.acceptTipPayments&&De.value&&g.configuration.visibility.showTips),Oe=mn(),ue=w.variant.isPartner(),He=P(()=>S.hasFlagEnabled(xe)&&g.identity.current.value==="shopPay"&&C.type!=="shopPayExternal"&&_.user.shopAccountUuid.value!==""&&!Y(C)),de=e(d,{when:He,children:e(Nt,{})}),Ne=P(()=>R.value.currentDetour?.type==="thankYou"?"Checkout::ThankYou::Dynamic::Render":"Checkout::Dynamic::Render"),ze=se(Ne.value,"ORDER_SUMMARY4"),Ge=P(()=>u.value!=="wallets"&&!!E.value),j=Jn();return O(()=>{const V=setTimeout(t,0);return()=>clearTimeout(V)},[t]),e(F,{children:e(J,{min:"medium",accessibilityLabel:v.translate("payment.title"),hideDivider:!0,children:[e(d,{when:()=>!c.value.payment,children:e(F,{children:[e(he,{section:"payment",children:e(me,{section:"payment",children:e(J,{max:"medium",accessibilityLabel:v.translate("payment.title"),children:e(Bt,{})})})}),e(d,{when:g.configuration.visibility.showCashRedemption,children:e(Zn,{})}),e(et,{})]})}),e(d,{when:U,children:e(pt,{accessibilityLabel:v.translate("localized_fields.additional_information.title"),children:e(y,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:[e(pn,{level:2,children:v.translate("localized_fields.additional_information.title")}),e($e,{each:$,children:(V,Ve)=>e(In,{localizationExtension:V,index:Ve})})]})})}),e(d,{when:()=>h.value&&!Y(C)&&le.value,children:e(T,{display:"@media (inline-size >
1= medium) none, auto",children:[e(oe,{sectionId:"tips",children:e(ie,{renderInSection:h})}),e(d,{when:()=>!f?.isFlagshipPartner,children:e(yt,{spacing:pe(B.value)})})]})}),e(d,{when:()=>h.value&&l.value&&j.value.length,children:e(fe,{extensions:j,hideDivider:"whenEmpty"})}),e(he,{section:"summary",children:e(me,{section:"summary",children:e("div",{ref:G,children:[e(gt,{target:"mobileOrderSummary",children:e(J,{max:"medium",hideDivider:!0,children:[e(d,{when:()=>h.value===!0,children:e(ye,{})}),e(nt,{showEmailMarketingOptIn:Le,showPhoneMarketingOptIn:Fe}),e(d,{when:o,children:e(Ln,{})}),e(y,{gap:z.value,"data-testid":"onepage-pay-button-cluster",children:[e(y,{gap:"base",children:[e(d,{when:()=>!h.value&&!Y(C)&&le.value,children:e(T,{display:"@media (inline-size >= medium) auto, none",children:e(oe,{sectionId:"tips",children:[e(d,{when:()=>!a.value,children:e(H,{blockSize:"large-300"})}),e(ie,{})]})})}),e(d,{when:()=>!h.value&&l.value&&j.value.length>0,children:e(fe,{extensions:j})}),e(d,{when:Ge,children:e(y,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:e(Bn,{textProps:{color:"subdued",size:"small"}})})})]}),e(d,{when:()=>h.value!==!0,children:e(ye,{})}),e(y,{gap:"large-200",children:[e(d,{when:m,children:e(xn,{})}),e(d,{when:p,children:e(ve,{placement:"above-pay-button"})}),e(Fn,{buttonHidden:Oe}),e(d,{when:p,children:e(ve,{placement:"default"})}),e(d,{when:()=>!k.value||h.value,children:e(yn,{above:"medium",children:e(W,{customizations:ze,gap:"large-200"})})})]})]}),e(d,{when:g.configuration.visibility.showShopCashRewardsBanner,children:e(oa,{})}),ue?null:e(F,{children:[e(Ce,{}),de]})]})}),ue?e(F,{children:[e(Ce,{}),de]}):null]})})})]})})});function ua(n){const{setTriggerNode:t}=gn("chat"),o=Q(null);return Se(()=>{t(n.value?o.value:null)}),A(s=>{o.value=s},[o])}export{zs as default,ua 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.