PageSourceSearch

https://tegernseer-kaffeeroesterei.de/cdn/shopifycloud/checkout-we…/c1/page-BelowTheFoldContent.Djbc3WLD.js

js tegernseer-kaffeeroesterei.de collected 2026-09-26 10:02:52 UTC 23,670 bytes, 1 lines download raw bytes

1import{u as e,A as R,e as Y,_ as ne,g as te,S as F,p as Ce,l as ae,f as b,Q as Se,i as d,k as T,h as H,q as E,s as je}from"./esnext-vendor.B9Da21W6.js";import{eZ as Ke,e_ as We,e$ as Xe,B,cZ as _e,cV as Ye,cT as Qe,cU as qe,b7 as ke,p as oe,k as y,U as K,Y as Je,cW as se,cX as Ze,cL as en,L as re,j as W,l as I,W as Pe,f0 as nn,G as tn,a as an,aR as on,aP as sn,aQ as rn,P as cn,cv as ln,b as O,f1 as un,e3 as dn,f2 as hn,bp as mn,f as pn,_ as we,d as gn,f3 as yn,n as fn,a3 as vn,dM as bn,K as de,M as he,m as Cn,H as Sn,el as _n}from"./hydrate.DZ4YTm7p.js";import{an as Ae,T as Ee,S as C,b4 as X,f0 as xe,f1 as kn,ay as Pn,am as Me,bH as wn,ag as An,a4 as En,ak as me}from"./addresses-is-address-empty.Bn2lNY_L.js";import{C as xn}from"./Captcha.kpGPI4W4.js";import{u as Mn,S as Rn,P as In,L as Bn,R as pe}from"./RememberMeSection.Cvwu6d1U.js";import{M as Tn}from"./MarketsProDisclaimer.BqGHM17j.js";import{MobileOrderSummary as Ln}from"./component-MobileOrderSummary.DnA-T0m-.js";import{P as Fn}from"./PayButtonSection.C-faiTG_.js";import{u as Un,b as ge,G as Dn,T as ie}from"./useAddressMutationsWithNegotiation.qYbyFTyH.js";import{a as Hn,b as On,H as Nn}from"./StickyPayButton-StickyPayButton.module.C7bJOHW4.js";import{a as zn,W as Gn,P as Vn}from"./PaymentOptionSelector.D-08K5CC.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 ye,P as nt}from"./OnePage.B6rwcJvn.js";import{E as tt,F as at,G as ot,u as st,a as it,g as rt,h as ct,V as lt,b as ut}from"./components-PaymentMethodProgressionHost.DtGKVVH3.js";import{P as dt}from"./PaymentErrorBanner.DceAStMH.js";import{p as ht,b as mt}from"./app.DbSrjjlA.js";import{a as pt,b as gt}from"./payment-usePaymentExemptionReason.B4VABxaE.js";import{P as fe}from"./hooks-useWalletsTimeout.CS-oFfve.js";import{b as J,S as yt,c as ft}from"./Section.BlBY023l.js";import{S as vt}from"./Section-SectionStyleOverride.hMiKajvE.js";import{S as bt}from"./Switch.jEKUIqPZ.js";import{O as Ct}from"./hooks-useShopPayProgressIntercepts.C0rljcs-.js";import{u as St}from"./PaymentButtons.MV6WHZES.js";import{r as _t}from"./components-VatNumberValidationField.DDyS8GP9.js";import{u as kt}from"./hooks-useShopPayExternalAppContext.DWwMuRnz.js";import"./graphql-PaymentSessionMutation.CAXCwUvV.js";import"./hooks-useReplaceShopPayInHistory.DPpLejwu.js";import"./ShopPayCaptcha.DPBCCrUk.js";import"./PaymentIcon.CIva5Q4J.js";import"./hooks-useShowShopPayOptin.Br0M25ky.js";import"./AddressPresenter.BIgrto4P.js";import"./Checkbox.DQyvbr9E.js";import"./TransitionHeight.CV2XV0NY.js";import"./hooks-useShouldRevealCustomization.D_kH_Ics.js";import"./styles-floating-layer.module.BCoSmdvP.js";import"./utils-useViolationsHandler.BE3Ij9oJ.js";import"./ShopPayLogo.C-Gy2CdB.js";import"./shared-shop-theme.DIHIQUEd.js";import"./useShopPayButtonClassName.FG1djxr9.js";import"./PayButton-helpers.Cc_ffyKs.js";import"./cross-border-hooks.xPE4TSQ5.js";import"./shared-buyer-consent.B_gDyRCR.js";import"./cvv-cvvBridge.B-VIACTq.js";import"./negotiated-findSelectedDeliveryMethod.DuEyfwut.js";import"./shop-pay-installments-monorail.BAOukcZ1.js";import"./amazon-pay-useAmazonPayPaymentLine.Ju006AId.js";import"./PaymentLine.ClzCacf5.js";import"./localization-index.1YNaS8kx.js";import"./Theme-ThemeOverride.DZIcf8ya.js";import"./IncentiveBadge.DborNHa8.js";import"./Choice.DSKmQsTS.js";import"./hooks-useUpdateCheckoutAddress.DUYbpduS.js";import"./helpers-derivations.Dug6X2_v.js";import"./redemption-promotions.DicFJEgz.js";import"./shop-pay-normalizeBuyerDetails.CCnGCeBZ.js";import"./proposal-delegated-payment-instrument.Gc2rhfd3.js";import"./Popover.BScgzCsS.js";import"./hooks-payment-button.CEm7ZXVs.js";import"./hooks-useGeneralPaymentErrorMessage.EV5zhNz-.js";import"./BillingAddressSelector.DB4kH3hG.js";import"./BillingAddressForm.pnsu7UK8.js";import"./components-RedirectionNotice.module.CsVdFi0g.js";import"./PhoneField.C0TeiZrn.js";import"./hooks-useSuppressShopPayModalOnLoad.DFOLDSdS.js";import"./ChangeCompanyLocationLink.r3PUjspg.js";import"./hooks-useStableHostMethodsReferences.DObnt9s8.js";import"./hooks-usePreselectSpi.zcfP7GH7.js";import"./checkout-as-guest-amazon-pay.BDkrfUVE.js";import"./Middot.Dbfct-go.js";import"./EstimatedDeliveryContent.BuJLi-Ww.js";import"./ShippingMethodRateLabel.DAtbOh1H.js";import"./shipping-methods-consolidated-included.BE_t6ovz.js";import"./ShippingLines.DZaI5-k3.js";import"./PendingShipping.CnPQOmzL.js";import"./ShipmentBreakdown.Da0Xa8EW.js";import"./MerchandiseModal.BtS8T15h.js";import"./ShippingMethodSelector.DcVyvGiN.js";import"./TextArea.C1mMoZ65.js";import"./SubscriptionPriceBreakdown.ChspO5Cv.js";import"./StockProblems-StockProblemsLineItemList.BhXfh82f.js";import"./hooks-useShopPayNewSignupLoginExperiment.vaE9WYHy.js";import"./stopwatch.CfKlh48v.js";import"./hooks-useForceShopPayUrl.BFRInJvm.js";import"./AutocompleteField-hooks.RGAAfjBE.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}
1=Ae(),o=tt(),i=R(null),a=R(null),r=R(!1),u=R(!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>0)||!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 Rt(){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=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(),Rt();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=!X(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"),M=Y(!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(Xn,{}),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:M,renderVaultingAgreementInline:!1,afterPaymentSelector:e(d,{when:U,children:e(Nn,{})})}),e(d,{when:u,children:e(Rn,{})}),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})}),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(()=>Yn(n,t));return e(In,{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 Re({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 M=await o.setTrackingConsent({analytics:g,marketing:S});a.user.shopAccountUuid.value===h&&(M.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(Re,{})}),_=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=Y(!1),k=R(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),M=R(_);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(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=R(null),o=R(n),i=R(!1),a=R(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(Re,{})})})}),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,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)||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||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(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 Go=Se(function({onReady:t,showMobileOrderSummary:s,showVaultedStateMarketingDisclosureBelowPayment:o,phoneMarketingPlacement:i,isSectionCustomized:a,showVaultedStateMarketingDisclosureOnMobile:r,expressCheckoutSlot:u,showVaultedCardConsentSpacing:c}){const l=gn(),g=yn(),m=An(),S=St(),{checkout:p,embed:k,i18n:v,mobileCheckoutSdk:A,source:f,shop:P,shopPay:x}=C(),U=fn(),_=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"&&f.type!=="shopPayExternal"&&x.user.shopAccountUuid.value!==""&&!X(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(Bn,{localizationExtension:G,index:$e})})]})})}),e(d,{when:()=>h.value&&!X(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&&!X(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(Tn,{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(xn,{})}),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:()=>!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{Go 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.