PageSourceSearch

https://chromehorsesociety.com/cdn/shopifycloud/checkout-web/assets/c1/page-BelowTheFoldContent.DxaDqNii.js

js chromehorsesociety.com collected 2026-09-29 09:40:11 UTC 23,753 bytes, 1 lines download raw bytes

1import{u as e,A as M,e as X,_ 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.7EcvH7tF.js";import{e$ as Ke,f0 as We,f1 as Ye,B,d4 as _e,cZ as Xe,c_ as Qe,c$ as qe,ba as ke,p as oe,k as y,U as K,$ as Je,d0 as se,d1 as Ze,cP as en,L as re,j as W,l as I,W as Pe,f2 as nn,y as tn,a as an,aS as on,aQ as sn,aR as rn,P as cn,cy as ln,b as O,f3 as un,e8 as dn,f4 as hn,bs as mn,f as pn,a1 as we,d as gn,f5 as yn,n as fn,a3 as vn,e2 as bn,N as de,O as he,m as Cn,R as Sn,H as _n,en as kn}from"./hydrate.CvWSYK3c.js";import{aY as Ae,S as Ee,Q as C,b7 as Y,eV as xe,eW as Pn,au as wn,ak as Re,bL as An,ae as En,a2 as xn,ai as me}from"./utilities-previous.BNOUhCqt.js";import{C as Rn}from"./Captcha.uTxdGdBM.js";import{u as Mn,S as In,P as Bn,L as Tn,R as pe}from"./RememberMeSection.Cc1eum9k.js";import{MobileOrderSummary as Ln}from"./component-MobileOrderSummary.BWejTkiU.js";import{P as Fn}from"./PayButtonSection.B7nuOluw.js";import{u as Un,b as ge,G as Dn,T as ie}from"./useAddressMutationsWithNegotiation.Y6hONWOn.js";import{a as Hn,b as On,H as Nn}from"./StickyPayButton-StickyPayButton.module.B93VtsR9.js";import{a as zn,W as Gn,P as Vn}from"./PaymentOptionSelector.DcYpeqhI.js";import{f as $n,g as jn,h as Kn,j as Wn,L as Yn,k as Xn,l as Qn,m as qn,n as Jn,o as Zn,U as et,V as ye,P as nt}from"./OnePage.BZYE_-Ld.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.BLIoZXHg.js";import{P as dt}from"./PaymentErrorBanner.CWfF0M8f.js";import{c as ht,d as mt}from"./app.9pOKhaB_.js";import{a as pt,b as gt}from"./payment-usePaymentExemptionReason.MJlv_Ay4.js";import{P as fe}from"./hooks-useWalletsTimeout.CvRsT5TD.js";import{b as J,c as yt,S as ft}from"./Section.DsxTs_3v.js";import{S as vt}from"./hooks-usePickupPoints.Dc_AUzii.js";import{S as bt}from"./Switch.D-WpCwGP.js";import{O as Ct}from"./hooks-useShopPayProgressIntercepts.Dx6SGyxo.js";import{u as St}from"./PaymentButtons.Bku8TORf.js";import{r as _t}from"./components-VatNumberValidationField.B3PhNjwY.js";import{u as kt}from"./hooks-useShopPayExternalAppContext.DJNBHtP3.js";import"./shared-negotiation-input-redeemable.nWvx5Mgl.js";import"./shared-permissions.FyWsJaGm.js";import"./ShopPayCaptcha.BRfpdziH.js";import"./amazon-pay-useAmazonPayPaymentLine.Dzl9q1le.js";import"./ChangeCompanyLocationLink.D2yMha9m.js";import"./BillingAddressForm.BLCoRu_E.js";import"./localization-index.8vJFxOS9.js";import"./components-RedirectionNotice.module.wDj6pdp6.js";import"./PhoneField.z-nvF4Oi.js";import"./hooks-useSuppressShopPayModalOnLoad.C3rujIgw.js";import"./Popover.snh8_-Id.js";import"./business-customer-constants.D2XM6iUD.js";import"./AddressPresenter.mAxMJOkn.js";import"./Choice.CmWf9O2o.js";import"./utilities-publishMessage.BFG4jKHA.js";import"./Checkbox.BcOmMA-W.js";import"./hooks-useShowShopPayOptin.COfgoH5j.js";import"./TransitionHeight.BQH3tbCb.js";import"./hooks-useShouldRevealCustomization.xDutk-8T.js";import"./styles-floating-layer.module.DAWBGW8s.js";import"./addresses-is-address-empty.ChTbY4tb.js";import"./utils-useViolationsHandler.D3XJ_35V.js";import"./ShopPayLogo.Cv8_PxcC.js";import"./useShopPayButtonClassName.D12YSXlR.js";import"./PayButton-helpers.0kfxXOqw.js";import"./graphql-PaymentSessionMutation.BHouiau8.js";import"./helpers-credit-card-disabled.Cg-Vgf-8.js";import"./checkout-as-guest-amazon-pay.8gnTMI4a.js";import"./ImpressionEventCapture.DHoHQcSz.js";import"./PaymentIcon.BEzHtnxO.js";import"./PaymentLine.DHJD0fA7.js";import"./Theme-ThemeOverride.aZ96ki1T.js";import"./crypto-constants.wrSwcTv4.js";import"./hooks-useUpdateCheckoutAddress.4MSJT9xw.js";import"./helpers-derivations.BE31Cdos.js";import"./shop-pay-normalizeBuyerDetails.UNB2OauO.js";import"./redemption-promotions.BGj0zZCl.js";import"./helpers-setAddressErrors.Dkvp0qf9.js";import"./hooks-payment-button.B5qLPYk5.js";import"./hooks-useGeneralPaymentErrorMessage.4RHEltgi.js";import"./BillingAddressSelector.C_ogBXhv.js";import"./shop-pay-installments-monorail.B28AmH4_.js";import"./hooks-useStableHostMethodsReferences.D9BLwpf-.js";import"./redemption-constants.B8quHqkP.js";import"./hooks-usePreselectSpi.Cm2EMKw1.js";import"./Middot.DJAPsIjl.js";import"./EstimatedDeliveryContent.Dh3d0XR_.js";import"./ShippingMethodRateLabel.CL24HyOG.js";import"./shipping-methods-consolidated-included.DDT-wwsl.js";import"./ShippingLines.H3FgFIWg.js";import"./PendingShipping.7OdN0MKO.js";import"./ShipmentBreakdown.D5mGyOOV.js";import"./MerchandiseModal.B9gHbOGQ.js";import"./ShippingMethodSelector.Nw6_VW9z.js";import"./TextArea.k18KcL9r.js";import"./SubscriptionPriceBreakdown.D0cJvdjn.js";import"./StockProblems-StockProblemsLineItemList.BObOvIcg.js";import"./hooks-useShopPayNewSignupLoginExperiment.Cks6ggXa.js";import"./Page.iFMNx-gv.js";import"./hooks-useWalletsMonorailTrack.D-8b2KUL.js";import"./hooks-useForceShopPayUrl.Bj-sC8MR.js";import"./AutocompleteField-hooks.B3HDb4t8.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=M(null),a=M(null),r=M(!1),u=M(!1),c=X(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 Rt=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:Rt})},s.extension.id):e(Ye,{field:s.field},s.field.key))})}function Mt(){const{payment:n,directPaymentFieldsFilled:t}=Ae(),{paymentLines:s,directPaymentErrors:o}=Ee(),i=jn();Ce(()=>{const a=i.value||Bt(o);n.value=It(s.value,t.value)&&!a})}function It(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=Xe(),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(),Mt();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,f=!Y(o)&&a&&A&&t.configuration.visibility.showTips,P=Hn();Kn();const x=b(()=>t.installments.isSupported.value&&!P),U=On(),w=Wn({showTips:f,billingFormPosition:g.value}),_=oe("purchase.checkout.payment-method-list.render-before"),h=oe("purchase.checkout.payment-method-list.render-after"),R=X(!1);return e(en,{target:"cart.paymentLines[0]",children:e(y,{accessibilityRole:"group",accessibilityLabelledBy:"payment",gap:"base",children:[e(Ft,{}),e(K,{customizations:_}),e(dt,{}),e(Yn,{}),e(d,{when:S,children:e(ge,{})}),e(d,{when:x,children:e(Pt,{})}),e(Je,{children:e(y,{gap:"large-300",children:[e(Gn,{dynamicPaymentExtensions:w.shift()||[],children:[e(Vn,{selectorShowsTiles:R,renderVaultingAgreementInline:!1,afterPaymentSelector:e(d,{when:U,children:e(Nn,{})})}),e(d,{when:u,children:e(In,{})}),e(ve,{customizations:h,selectorShowsTiles:R}),e(ve,{customizations:w.shift()||[],selectorShowsTiles:R}),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})}),f&&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(()=>Xn(n,t));return e(Bn,{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 Me({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(y,{gap:"small-200",children:[e(y,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(I,{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(I,{
1children: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,f]=T(null),[P,x]=T(!1);H(()=>{if(!n)return;const h=o.trackingConsentSelection?.peek();m(h?.analytics??!1),p(h?.marketing??!1),v(!1),f(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),f(null);const R=await o.setTrackingConsent({analytics:g,marketing:S});a.user.shopAccountUuid.value===h&&(R.success?(s?.(),t()):f(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(Me,{})}),_=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(I,{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(y,{gap:"base",children:[e(y,{gap:"small-200",children:[A&&e(Pe,{tone:"critical",children:A}),e(I,{children:w})]}),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: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=X(!1),k=M(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)},[]),f=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}f()}},[f,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}f()}},[f,t,i,a,n]),U=f,w=m===a.value,_=g&&w&&(n.shouldShowBanner.value||p.value),h=Gt(_,w),R=M(_);H(()=>{const L=!R.current&&_;if(R.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(y,{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(y,{gap:"base",accessibilityRole:"group",accessibilityLabel:t.translate("user_consent.title"),children:V})});return e(F,{children:[q,z]})}function Gt(n,t){const s=M(null),o=M(n),i=M(!1),a=M(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(y,{gap:"base",children:[e(I,{type:"strong",children:o.translate("user_consent.accelerated_view.title")}),e(cn,{children:e(I,{children:o.translate("user_consent.accelerated_view.description",{cookie_policy_href:e(Me,{})})})}),e(y,{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(I,{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(Ie),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",Ie=n=>Wt(n)&&n.expectedAmount.amount>0,Yt=n=>n.__typename==="ShopCashCheckoutFlatAmountCashbackIncentive",Be=n=>Yt(n)&&n.minimumOrderValueSatisfied,Xt="F7fwo",Qt="VnjPc",qt="gXkBh",Jt="iJGCf",j={ShopCashCashbackBanner:Xt,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)||Ie(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(y,{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(y,{direction:"block",gap:"none",className:j.ShopCashCashbackBannerText,children:[e(I,{
1children:c}),e(I,{type:"small",children:l})]}):e(I,{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(()=>{if(c){c(!1);return}u.value||i()},[c,u,i]);return a||n?.isCheckoutKit()||!(r||Pn(s.search))?e(re,{onClick:l,textDecoration:"none",children:o}):null}const ca=n=>wn()?n.bridge.iframeClosed():window.close();function la(){const n=kt();return E(()=>{ca(n)},[n])}function ua(){const n=la(),t=Re(),s=we({base:!0,small:!1}),o=An()&&(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(y,{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=yn(),m=En(),S=St(),{checkout:p,embed:k,i18n:v,mobileCheckoutSdk:A,source:f,shop:P,shopPay:x}=C(),U=fn(),_=xn().managedByMarketsPro,h=ae(we({base:!0,medium:!1})),R=Re(),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"&&f.type!=="shopPayExternal"&&x.user.shopAccountUuid.value!==""&&!Y(f)),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(yt,{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(Cn,{level:2,children:v.translate("localized_fields.additional_information.title")}),e(je,{each:L,children:(G,$e)=>e(Tn,{localizationExtension:G,index:$e})})]})})}),e(d,{when:()=>h.value&&!Y(f)&&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(ft,{spacing:me(z.value)})})]})}),e(d,{when:()=>h.value&&g.value&&$.value.length,children:e(ye,{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(y,{gap:q.value,"data-testid":"onepage-pay-button-cluster",children:[e(y,{gap:"base",children:[e(d,{when:()=>!h.value&&!Y(f)&&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(ye,{extensions:$})}),e(d,{when:Ve,children:e(y,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:e(Sn,{textProps:{color:"subdued",size:"small"}})})})]}),e(d,{when:()=>h.value!==!0,children:e(pe,{})}),e(y,{gap:"large-200",children:[e(d,{when:S,children:e(Rn,{})}),e(d,{when:m,children:e(fe,{placement:"above-pay-button"})}),e(Fn,{buttonHidden:Oe}),e(d,{when:m,children:e(fe,{placement:"default"})}),e(d,{when:()=>!R.value||h.value,children:e(_n,{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}=kn("chat"),s=X(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.