PageSourceSearch

https://kisskiss.eu/cdn/shopifycloud/checkout-web/assets/c1/7aefefff.CKGwXfaV.js

js kisskiss.eu collected 2026-10-09 17:08:56 UTC 23,330 bytes, 1 lines download raw bytes

1import{u as e,C as n,h as t,q as i,o as a,g as s,S as r,_ as o,z as c,m as l,p as d,s as u,k as m,N as p,J as h}from"./2c1ab0fe.qpvfywqb.js";import{L as f,B as b,b as v,j as g,S as y,a9 as _,aI as j,ab as k,A as w,d as C,be as S,bc as A,bd as x,f as P,cS as z,fa as M,fb as R,fc as T,dP as I,ds as L,dr as E,R as N,V as B,o as O,U as D,i as V,dt as F,du as U,d5 as $,fd as H,em as q,fe as G,bL as J,v as X,p as Y,dR as W,ff as K,k as Q,an as Z,ei as ee,af as ne,ag as te,H as ie,a0 as ae,q as se}from"./164ad2e3.DcJn775M.js";import{e as re,p as oe,J as ce,eC as le,aM as de,al as ue,bx as me,ab as pe,aj as he,ac as fe}from"./4b4bc88f.DkycdxSK.js";import{C as be}from"./b3389d5c.AQoeX8aG.js";import{u as ve,S as ge,P as ye,L as _e,R as je}from"./73a9b0a0.B8dxuTLG.js";import{M as ke}from"./0b8657b8.CeR0nGry.js";import{P as we}from"./fc21c11a.CvREKW2p.js";import{P as Ce}from"./e3e348f2.qdNJPs68.js";import{b as Se,c as Ae,S as xe}from"./dfca5da5.cHkNyCYM.js";import{S as Pe}from"./79974aab.Cl0DLekt.js";import{f as ze,g as Me,h as Re,j as Te,k as Ie,L as Le,l as Ee,m as Ne,n as Be,U as Oe,V as De,P as Ve}from"./f8706cb6.PbccX-7u.js";import{S as Fe}from"./39921a74.C0GzP1-7.js";import{O as Ue,u as $e}from"./7a8217fd.BSo0j5mC.js";import{MobileOrderSummary as He}from"./d2e6a587.D5dE5VhU.js";import{b as qe,a as Ge}from"./bf513f9c.DfVLzm1y.js";import{u as Je,e as Xe,G as Ye,T as We}from"./6bfea526.WQUqRMom.js";import{u as Ke}from"./e129c76e.83DznIAr.js";import{a as Qe,H as Ze}from"./0e9ee714.Cnsf3p8Q.js";import{a as en}from"./01973ac7.CzRJWXtH.js";import{a as nn,W as tn,P as an}from"./c10167e6.BM-faetc.js";import{y as sn,z as rn,E as on,u as cn,b as ln,g as dn,V as un,a as mn}from"./86720dbb.CVGIgA6H.js";import{a as pn,b as hn}from"./app.DH8n-1bp.js";import{r as fn}from"./dffdfb34.DKxh4eql.js";import{a as bn}from"./24773686.NjNSWG1C.js";import"./d0bb51ec.CWfbNPnY.js";import"./f67abd2c.CNaB0QaR.js";import"./e12db40c.DhbHW8sF.js";import"./9dba8418.4R19B40l.js";import"./60a453ce.DBFo6PRx.js";import"./25604ae0.56pfEpxV.js";import"./dada7e07.DLvpJNXh.js";import"./81e109b1.DOkM2TK2.js";import"./0e67bd3b.BulkkgyN.js";import"./74835653.Cr7sKbVy.js";import"./3ca8ef7e.DgXbCH_R.js";import"./2495faa4.DgGNI16D.js";import"./a9fa9fda.BO9gwssW.js";import"./ca3e798e.XLlup-KR.js";import"./47b970b2.Bc5Vmfq5.js";import"./22345fd4.Bc95vVsB.js";import"./064f6ac1.BoVb1opw.js";import"./efa0389a.BiVLFqoF.js";import"./4b1c22b7.zkM5jsqa.js";import"./e0989459.E2HGFiMB.js";import"./cdfd59e6.C61oFvbb.js";import"./e477f96c.Bg2MTFPd.js";import"./1ed8f5e3.DIMgWfc5.js";import"./7ee73f43.DRXbjRuN.js";import"./cb5cf153.CNHN3NCG.js";import"./cb38e5c2.k1ouuKLe.js";import"./1f5e7811.DBGnR3_R.js";import"./0c0ad074.BuZ9_cdp.js";import"./ccdf3592.DmQuNZVR.js";import"./434e3b0a.oup8Ur0H.js";import"./87bfafec.CxwEzGHg.js";import"./051149c8.lHD9iIAq.js";import"./55098bf1.CjSE9kMx.js";import"./71ae3d5c.ChDO3fdz.js";import"./dae24aab.LuzlJRmB.js";import"./e77f7fe0.Bl46DOUC.js";import"./598fef4e.C71uub5O.js";import"./a25deb9a.B5l1rGH9.js";import"./945a08d6.DPoKhjkl.js";import"./58314944.CL_6FNuP.js";import"./7bc8057b.Cjs5rQ1q.js";import"./d25d1b95.CoPrVoCi.js";import"./f1968089.BiyF2g2x.js";import"./2b89a178.DlMzn79y.js";import"./b684bff6.Do6MtAvQ.js";import"./a422df8c.CDURsRjM.js";import"./17425706.DtdfKQJ3.js";import"./cf29e63b.B0brOI65.js";import"./6fb6f9d8.BoDxvz0l.js";import"./1444e6bd.DTqbRn9m.js";import"./ed9f2238.Brwxl8Yi.js";import"./78ab3dd0.DsAxQUAi.js";import"./910cd6e2.D9laAOO_.js";import"./347b440c.xpK15B3S.js";import"./9ce08e25.dSvNrRyM.js";import"./181d38d3.C21ZO0gV.js";import"./792bb671.B3OvVnSg.js";import"./d6447d9e.yVMcZZjx.js";import"./f49d4216.Che8BnjU.js";import"./f51e663e.D3CveQI2.js";import"./21cc90a2.DHzOO82q.js";import"./64de7b49.BnCPa5-S.js";import"./8e79be58.4pj59tZ-.js";import"./90e26f5f.Ac9ME8KB.js";import"./31cc568e.95lmLO5k.js";import"./65f3d4da.Bb3QiqCm.js";import"./2fdb3dd3.BI5ol3i8.js";import"./ca5e9c49.BzUOvyL4.js";
1import"./f3e117aa.CgyApM5y.js";import"./1d34c07e.h4dJAaCz.js";import"./7b0c98ea.B8saOsP6.js";import"./8599b02a.D6crYzGJ.js";import"./ac5a19ff.C1i8fdUP.js";import"./cc6ff67d.RYXq9KZi.js";import"./08a3b809.BKNVX2Vm.js";import"./e39bc11c.CaER5qTM.js";import"./d4ea2faa.Bh5JwQU0.js";import"./fe885b80.BxcRVx2R.js";import"./f78726c8.CFtLd10H.js";import"./71b60e0a.DfPLdYsH.js";import"./ec391382.CmRYZq9D.js";import"./b9c0319a.8x5xdIiw.js";import"./17e57de1.lSRGFmhc.js";import"./f692f62f.0aS5Pgyt.js";import"./9babe369.DN4Uiit5.js";import"./89e2d30a.C7YQuTRu.js";import"./d22d2b80.BRIhtVxA.js";import"./f58f39d8.z0CUAjnp.js";import"./e03065ab.V1fBuv4e.js";function vn({href:n,children:t,onClick:i}){return e(f,{tone:"monochrome",href:n,onClick:i,children:t})}function gn({onClick:n}){const{i18n:t}=re();return e(vn,{href:"https://www.shopify.com/legal/cookies",onClick:n,children:t.translate("user_consent.policy")})}function yn({onClick:n}){const{i18n:t}=re();return e(vn,{href:"https://help.shop.app/en/shop/shopping/ads-personalization",onClick:n,children:t.translate("user_consent.detailed_view.learn_about_ads")})}function _n({title:n,description:t,checked:i,onChange:a,disabled:s,badgeLabel:r}){const o=e(g,{children:t});return e(y,{gap:"small-200",children:[e(y,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(g,{type:"strong",children:n}),r?e(j,{color:"subdued",children:r}):null]}),e(k,{gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gap:"base",alignItems:"start",children:[o,e(Fe,{checked:i,onChange:a,disabled:s,accessibilityLabel:n})]})]})}function jn({open:a,onClose:s,onConsentSaved:r}){const{consentManager:o,i18n:c,shopPay:l}=re(),d=l.user.shopAccountUuid,u=d.value,m=o.trackingConsentSelection?.value,p=void 0!==m,[h,f]=n(!1),[j,k]=n(!1),[w,C]=n(!1),[S,A]=n(null),[x,P]=n(!1);t(()=>{if(!a)return;const e=o.trackingConsentSelection?.peek();f(e?.analytics??!1),k(e?.marketing??!1),C(!1),A(null),P(!1)},[o,u,a]),t(()=>{a&&!w&&m&&(f(m.analytics),k(m.marketing))},[w,a,m]);const z=i(async()=>{if(x||!p)return;const e=d.value;P(!0),A(null);const n=await o.setTrackingConsent({analytics:h,marketing:j});l.user.shopAccountUuid.value===e&&(n.success?(r?.(),s()):A(c.translate("user_consent.error_saving_consent")),P(!1))},[h,o,c,p,x,j,r,s,l,d]),M=c.translate("user_consent.detailed_view.description",{cookie_policy_href:e(gn,{})}),R=e(v,{inlineSize:"@media (inline-size >= small) auto, 100%",children:e(b,{variant:"primary",onClick:z,inlineSize:"fill",loading:x||!p,disabled:x||!p,children:e(v,{minInlineSize:"100px",inlineAlignment:"center",children:e(g,{children:c.translate("user_consent.detailed_view.save")})})})});return e(Ue,{heading:c.translate("user_consent.title"),accessibilityLabel:c.translate("user_consent.manage"),open:a,onHide:s,primaryAction:R,children:e(y,{gap:"base",children:[e(y,{gap:"small-200",children:[S&&e(_,{tone:"critical",children:S}),e(g,{children:M})]}),e(y,{gap:"base",children:[e(_n,{title:c.translate("user_consent.detailed_view.necessary"),description:c.translate("user_consent.detailed_view.necessary_description"),checked:!0,disabled:!0,badgeLabel:c.translate("user_consent.detailed_view.required")}),e(_n,{title:c.translate("user_consent.detailed_view.analytics"),description:c.translate("user_consent.detailed_view.analytics_description"),checked:h,onChange:e=>{f(e),C(!0)},disabled:x||!p}),e(_n,{title:c.translate("user_consent.detailed_view.advertising"),description:c.translate("user_consent.detailed_view.advertising_description",{learn_about_ads_href:e(yn,{})}),checked:j,onChange:e=>{k(e),C(!0)},disabled:x||!p})]})]})})}function kn(){const{consentManager:l,i18n:d,mobileCheckoutSdk:u,observability:m,shopPay:p}=re(),h=p.user.shopAccountUuid,[f,b]=n(!1),[g,j]=n(null),[k,P]=n(h.value),z=a(!1),M=s(void 0);t(()=>{k!==h.value&&(P(h.value),z.value=!1,j(null))},[z,k,h.value]);const R=i(()=>{j(null),b(!0)},[]),T=i(()=>{b(!1)},[]),I=i(()=>{z.value=!0},[z]),L=i(async()=>{const e=h.value;j(null);const n=await l.acceptAll();p.user.shopAccountUuid.value===e&&(n.success?I():j(d.translate("user_consent.error_saving_consent")))},[I,d,p,h,l]),E=i(async()=>{const e=h.value;j(null);const n=await l.rejectAll();p.user.shopAccountUuid.value===e&&(n.success?I():j(d.translate("user_consent.error_saving_consent")))},[I,d,p,h,l]),N=I,B=k===h.value,O=B&&(l.shouldShowBanner.value||z.value),D=function(e,n){const t=s(null),i=s(e),a=s(!1),r=s(null);if(i.current&&!e&&"undefined"!=typeof document){const e=t.current,n=document.activeElement,i=e&&n instanceof HTMLElement&&e.contains(n),s=e&&S(e);a.current=Boolean(i),r.current=i&&s?A(s):null}return i.current=e,o(()=>
1{if(!a.current||!n)return;a.current=!1;const i=e?t.current&&x(t.current):r.current;r.current=null,i?.isConnected&&document.activeElement===document.body&&i.focus({preventScroll:!0})},[n,e]),t}(O,B),V=s(O);t(()=>{const e=!V.current&&O;if(V.current=O,e)return w({content:d.translate("user_consent.title")})},[d,O]),t(()=>{B&&M.current!==h.value&&(M.current=h.value,m.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:O}}))},[B,O,h.value,m]);const F=e(y,{gap:"small-300",children:[g&&e(_,{tone:"critical",children:g}),e(c,{when:z,fallback:e(wn,{onAcceptAll:L,onManageCookiesClick:R,onRejectAll:E}),children:e(Cn,{onManageCookiesClick:R})})]}),U=e(jn,{open:f,onClose:T,onConsentSaved:N});if(!O)return null;const $=e(v,{ref:D,background:"subdued",borderRadius:"large",padding:"base",children:e(y,{gap:"base",accessibilityRole:"group",accessibilityLabel:d.translate("user_consent.title"),children:F})}),H=u.variant.isPartner();return e(r,{children:[!H&&e(v,{display:"@media (inline-size >= small) none, auto",children:e(C,{blockSize:"base"})}),$,U]})}function wn({onManageCookiesClick:t,onAcceptAll:a,onRejectAll:s}){const{i18n:r}=re(),[o,c]=n(null),l=null!==o,d=i(async()=>{l||(c("accept"),await a(),c(null))},[l,a]),u=i(async()=>{l||(c("reject"),await s(),c(null))},[l,s]);return e(y,{gap:"base",children:[e(g,{type:"strong",children:r.translate("user_consent.accelerated_view.title")}),e(P,{children:e(g,{children:r.translate("user_consent.accelerated_view.description",{cookie_policy_href:e(gn,{})})})}),e(y,{direction:"inline",gap:"small-200",children:[e(b,{inlineAlignment:"center",onClick:d,size:"small",variant:"secondary",loading:"accept"===o,disabled:l,children:r.translate("user_consent.accelerated_view.accept_all")}),e(b,{inlineAlignment:"center",onClick:u,size:"small",variant:"secondary",loading:"reject"===o,disabled:l,children:r.translate("user_consent.accelerated_view.reject_all")}),e(b,{inlineAlignment:"center",onClick:t,size:"small",variant:"plain",textDecoration:"none",disabled:l,accessibilityLabel:r.translate("user_consent.manage"),children:r.translate("user_consent.accelerated_view.manage")})]})]})}function Cn({onManageCookiesClick:n}){const{i18n:t}=re();return e(v,{autoFocus:!0,children:e(g,{children:t.translate("user_consent.accelerated_view.consent_collected",{manage_cookies_href:e(Sn,{onManageCookiesClick:n})})})})}function Sn({onManageCookiesClick:n}){const{i18n:t}=re();return e(vn,{onClick:n,children:t.translate("user_consent.manage")})}vn.displayName="CookiesLink";const An=e=>(e=>"ShopCashCheckoutCashbackIncentive"===e.__typename)(e)&&e.expectedAmount.amount>0,xn=e=>(e=>"ShopCashCheckoutFlatAmountCashbackIncentive"===e.__typename)(e)&&e.minimumOrderValueSatisfied,Pn="https://cdn.shopify.com/shop-assets/static_uploads/shop-cash/",zn=`${Pn}checkout_banner_coin_light.png`,Mn=`${Pn}checkout_banner_coin_light_2x.png`,Rn=`${Pn}checkout_banner_coin_light_4x.png`,Tn=`${Pn}checkout_banner_coin_dark.png`,In=`${Pn}checkout_banner_coin_dark_2x.png`,Ln=`${Pn}checkout_banner_coin_dark_4x.png`,En=({expectedAmount:n,incentives:t,i18n:i,darkMode:a,incentivePresentation:s})=>{const r=null!=n&&0!==n.amount,o=r?i.formatCurrency(n.amount,{currency:n.currencyCode}):"",c=r?(({i18n:e,incentives:n,formattedTotalAmount:t})=>{if(!n||0===n.length)return;const i=n.find(An),a=n.find(xn),s=i?.displayName;if(i&&s&&a){const n=e.formatCurrency(i.expectedAmount.amount,{currency:i.expectedAmount.currencyCode}),r=e.formatCurrency(a.cashbackAmount.amount,{currency:a.cashbackAmount.currencyCode});return{title:e.translate("shop_cash.rewards_banner_title",{formattedAmount:t}),description:e.translate("shop_cash.reward_banner_description_combined_rewards",{promotionAmount:n,promotionDisplayName:s,offerAmount:r})}}if(i&&s&&!a){const n=e.formatCurrency(i.expectedAmount.amount,{currency:i.expectedAmount.currencyCode}),t=i.remainingRewardLimit?.amount===i.expectedAmount.amount;return{title:e.translate("shop_cash.reward_banner_title_with_promotion_attribution",{formattedAmount:n,promotionDisplayName:s}),description:t?e.translate("shop_cash.reward_banner_description_max"):void 0}}})({i18n:i,incentives:t,formattedTotalAmount:o}):void 0,d=r?c?.title??i.translate("shop_cash.rewards_banner_title",{formattedAmount:o}):"",u=c?.description,m=u?`${d} ${u}`:d,p=r&&(t?.some(e=>xn(e)||An(e))??!1);if(ze(s,"cashbackBanner",p?m:void 0),!r)return null;const h=a?Tn:zn,f=a?In:Mn,b=a?Ln:Rn,v=l("F7fwo",a?"iJGCf":"gXkBh");return e(y,{direction:"inline",alignItems:"center",gap:"small-300",className:v,borderRadius:"large",children:[e(z,{src:h,srcSet:`${h} 1x, ${f} 2x, ${b} 4x`,aspectRatio:"auto"}),u?e(y,{direction:"block",gap:"none",className:"VnjPc",children:[e(g,{children:d}),e(g,{type:"small",children:u})]}):e(g,{children:d})]})};function Nn(){const{i18n:n}=re(),t=Me(),{isEarningCashback:i,cashback:a,incentivePresentation:s}=qe();return i&&a?e(v,{children:[e(C,{blockSize:"large-200"}),e(En,{expectedAmount:a.expectedAmount,incentives:a.incentives,i18n:n,darkMode:t,incentivePresentation:s})]}):null}function Bn(){const n=M();return Re({ineligibilityReasonLabel:n}),e(nn,{ineligibilityReason:n})}function On({selectorShowsTiles:n,children:t}){const{checkout:{negotiator:i}}=re(),{buyerHasActedSignal:r}=i.context,c=sn(),d=s(null),u=s(null),m=s(!1),p=oe(n.value&&r.value),h=a(null);o(()=>{const e=u.current;if(!e||"undefined"==typeof MutationObserver)return;const n=new MutationObserver(n=>{if(!e.hasChildNodes())return m.current=!1,void(h.value=null);n.some(e=>e.addedNodes.length>0)&&p.current&&pn()&&(m.current=!0,h.value={from:hn(),withMotion:c.loaded})});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[h,p,c]),o(()=>
1{if(m.current){m.current=!1;for(const e of[d.current,u.current])for(const n of e?.getAnimations?.()??[])n.cancel(),n.play()}});const f=null!==h.value&&h.value.withMotion;return e("div",{ref:d,className:l("ISVtv",f&&"p8IP4",f&&on),children:e("div",{ref:u,className:l("eRezU",f&&rn[h.value?.from??"end"]),children:t})})}const Dn=n=>e(v,{children:n});function Vn({customizations:n,selectorShowsTiles:t}){return 0===n.length?null:e(r,{children:n.map(n=>"uiExtension"===n.kind?e(On,{selectorShowsTiles:t,children:e(R,{extension:n.extension,render:Dn})},n.extension.id):e(T,{field:n.field},n.field.key))})}const Fn=p(function(){const{checkout:n,i18n:t,source:i,shop:s}=re(),{acceptTipPayments:o,discountCodesEnabled:l}=s,p=ve(),h=E(),f=l&&h.value;Je(),function(){const{checkout:{negotiator:e}}=re(),{payment:n,directPaymentFieldsFilled:t}=e.context,{paymentLines:i,directPaymentErrors:a}=e.parts,s=Te();d(()=>{const e=s.value||(r=a,Object.keys(r).filter(e=>"paymentMethodIdentifier"!==e).some(e=>null!=r[e].value));var r,o,c;n.value=(o=i.value,c=t.value,o.some(e=>"direct"!==e.method.type||Boolean(e.method.sessionId)||c)&&!e)})}();const b=I(),v=function(){const{checkout:e}=re(),{displayedPaymentMethods:n}=cn({experienceType:"list"}),t=u(ln(n)),i=I(),a=L(),s=$e(),r=Ge();return m(()=>{const n=null!==dn(e.identity,r.value)||s.value.freeOrder||s.value.giftCard||s.value.storeCredit||s.value.redeemables,o=!a.value&&("inContext"===i.value||"afterPayment"===i.value);return e.configuration.visibility.showStoreCreditRedemption.value&&!n&&"singlePaymentMethodCreditCard"===t.value.mode&&o})}(),g=m(()=>n.configuration.visibility.showStoreCreditRedemption.value&&!v.value),_=N().value,j=B(),k=m(()=>function({identity:e}){switch(e.current.value){case"guest":case"customerAccount":case"shopPay":return!0;default:return!1}}({identity:n.identity})),w=j?.tippingPaymentAllowed??!0,C=!ce(i)&&o&&w&&n.configuration.visibility.showTips,S=m(()=>n.installments.isSupported.value),A=Qe(),x=Ie({showTips:C,billingFormPosition:b.value}),P=O("purchase.checkout.payment-method-list.render-before"),z=O("purchase.checkout.payment-method-list.render-after"),M=a(!1);return e($,{target:"cart.paymentLines[0]",children:e(y,{accessibilityRole:"group",accessibilityLabelledBy:"payment",gap:"base",children:[e(Un,{}),e(D,{customizations:P}),e(en,{}),e(Le,{}),e(c,{when:g,children:e(Xe,{})}),e(c,{when:S,children:e(Bn,{})}),e(V,{children:e(y,{gap:"large-300",children:[e(tn,{dynamicPaymentExtensions:x.shift()||[],children:[e(an,{selectorShowsTiles:M,renderVaultingAgreementInline:!1,afterPaymentSelector:e(c,{when:A,children:e(Ze,{})})}),e(c,{when:p,children:e(ge,{})}),e(Vn,{customizations:z,selectorShowsTiles:M}),e(Vn,{customizations:x.shift()||[],selectorShowsTiles:M}),e(c,{when:k,children:e(Ye,{})})]}),e(c,{when:v,children:e(Xe,{})}),_&&e(un,{}),e(c,{when:n.configuration.visibility.showPurchaseOrderNumberField,children:e(mn,{showHeading:!1})}),C&&e(r,{children:[e(F,{sectionId:"tips",children:e(We,{})}),e(D,{customizations:x.shift()||[]})]}),e(D,{customizations:x.flat()}),f&&e(U,{targetSelector:'input[name="reductions"]',icon:"discount",label:t.translate("order_summary.discount_discovery.add_code")})]})})]})})});function Un(){const{router:n}=re(),t="payment",i=m(()=>Ee(n,t));return e(ye,{headingId:t,autoFocus:i.value})}function $n(){const{embed:n,router:t}=re(),a=t.currentUrl.value,{label:s}=H(),r=q({clearPii:!0}),o=G(),{isAppLayout:c}=J(),{progressing:l}=X(),{setEditorShopPay:d}=fn(),u=i(()=>{d?d(!1):l.value||r()},[d,l,r]);return o||n?.isCheckoutKit()||!c&&!le(a.search)?e(f,{onClick:u,textDecoration:"none",children:s}):null}function Hn(){const n=function(){const e=bn(),n=i(()=>{(e=>{de()?e.bridge.iframeClosed():window.close()})(e)},[e]);return n}(),t=ue(),a=Y({base:!0,small:!1}),{client:s,i18n:r,shop:{name:o},shopPay:c}=re(),l=me(s)&&(!t.value||(a??!1));if(!c.visibility.showReturnToStore)return null;if(!l)return null;const d=r.translate("shop_pay_external.return_to_store",{shopName:o});return e(y,{alignItems:"center",children:[e(C,{blockSize:"base"}),e(f,{onClick:n,children:d})]})}function qn(){const{checkout:{identity:n},source:t,shopPay:i,mobileCheckoutSdk:a}=re(),{visibility:{showCheckoutAsGuestFeature:s}}=i;if("shopPay"!==n.current.value||!s)return null;const o="shopPayExternal"===t.type?e(Hn,{}):e($n,{}),c=a.variant.isPartner();return e(r,{children:[e(C,{blockSize:"large-100"}),e(v,{inlineAlignment:"center",children:o}),c?e(C,{blockSize:"base"}):e(v,{display:"@media (inline-size >= small) auto, none",children:e(C,{blockSize:"base"})})]})}const Gn=p(function({onReady:n,includeContactInVaultedExtensions:i,showMobileOrderSummary:a,showVaultedStateMarketingDisclosureBelowPayment:s,phoneMarketingPlacement:o,isSectionCustomized:l,showVaultedStateMarketingDisclosureOnMobile:d,expressCheckoutSlot:p,showVaultedCardConsentSpacing:f}){const b=W(),g=K(),_=pe(),j=Ke(),{checkout:k,embed:w,i18n:S,mobileCheckoutSdk:A,source:x,shop:P,shopPay:z}=re(),M=Q(),R=k.negotiator.current.fields.managedByMarketsPro,T=u(Y({base:!0,medium:!1})),I=ue(),L=Z(),E=m(()=>L.configurationSignal.value.main.spacing),N=m(()=>{const{position:e}=L.configurationSignal.value.reductions;return z.visibility.shouldRenderFloatingShopPayButton?"none":"base"===e?"large-200":a.value&&null!=E.value?he(E.value)??"base":"base"}),{localizationExtensions:V}=k.negotiator.parts,U=m(()=>V.value.length>0),$=m(()=>f?.value&&!U.value?"large-200":"none"),H=Jn(T),q=m(()=>s.value&&!d.value&&(!T.value||!l.value)),G=m(()=>"belowPayment"===o.value),J=B(),X=u(J?.tippingPaymentAllowed??!0),se=m(()=>b.value.payment&&P.acceptTipPayments&&X.value&&k.configuration.visibility.showTips),oe=ee(),le=A.variant.isPartner(),de=m(()=>"shopPay"===k.identity.current.value&&"shopPayExternal"!==x.type&&""!==z.user.shopAccountUuid.value&&!ce(
1x)),me=e(c,{when:de,children:e(kn,{})}),ve=m(()=>"thankYou"===M.value.currentDetour?.type?"Checkout::ThankYou::Dynamic::Render":"Checkout::Dynamic::Render"),ge=O(ve.value,"ORDER_SUMMARY4"),ye=m(()=>"wallets"!==p.value&&Boolean(R.value)),ze=Ne({includeContact:i}),Me=m(()=>!T.value&&!ce(x)&&se.value),Re=m(()=>!T.value&&g.value&&ze.value.length>0),Te=m(()=>Me.value||Re.value||ye.value);t(()=>{const e=setTimeout(n,0);return()=>clearTimeout(e)},[n]);const Ie=P.hasFlagEnabled(fe),Le=e(c,{when:a,children:e(He,{})}),Ee=e(y,{gap:"base",children:[e(c,{when:Me,children:e(v,{display:"@media (inline-size >= medium) auto, none",children:e(F,{sectionId:"tips",children:[e(c,{when:()=>!l.value,children:e(C,{blockSize:"large-300"})}),e(We,{})]})})}),e(c,{when:Re,children:e(De,{extensions:ze})}),e(c,{when:ye,children:e(y,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:e(ke,{textProps:{color:"subdued",size:"small"}})})})]});return e(r,{children:e(Se,{min:"medium",accessibilityLabel:S.translate("payment.title"),hideDivider:!0,children:[e(c,{when:()=>!b.value.payment,children:e(r,{children:[e(ne,{section:"payment",children:e(te,{section:"payment",children:e(Se,{max:"medium",accessibilityLabel:S.translate("payment.title"),children:e(Fn,{})})})}),e(c,{when:k.configuration.visibility.showCashRedemption,children:e(Be,{})}),e(Oe,{})]})}),e(c,{when:U,children:e(Ae,{accessibilityLabel:S.translate("localized_fields.additional_information.title"),children:e(y,{gap:"base",padding:"@media (inline-size >= medium) large-400 none none none, none",children:[e(ie,{level:2,children:S.translate("localized_fields.additional_information.title")}),e(h,{each:V,children:(n,t)=>e(_e,{localizationExtension:n,index:t})})]})})}),e(c,{when:()=>T.value&&!ce(x)&&se.value,children:e(v,{display:"@media (inline-size >= medium) none, auto",children:[e(F,{sectionId:"tips",children:e(We,{renderInSection:T})}),e(c,{when:()=>!w?.isFlagshipPartner,children:e(xe,{spacing:he(E.value)})})]})}),e(c,{when:()=>T.value&&g.value&&ze.value.length,children:e(De,{extensions:ze,hideDivider:"whenEmpty"})}),e(ne,{section:"summary",children:e(te,{section:"summary",children:e("div",{ref:H,children:[e(Pe,{target:"mobileOrderSummary",children:e(Se,{max:"medium",hideDivider:!0,children:[e(c,{when:()=>!0===T.value,children:e(je,{})}),e(Ve,{showEmailMarketingOptIn:q,showPhoneMarketingOptIn:G,paddingBlockStart:$}),!Ie&&Le,e(y,{gap:N.value,"data-testid":"onepage-pay-button-cluster",children:[Ie?e(r,{children:[Le,e(c,{when:Te,children:Ee})]}):Ee,e(c,{when:()=>!0!==T.value,children:e(je,{})}),e(y,{gap:"large-200",children:[e(c,{when:j,children:e(be,{})}),e(c,{when:_,children:e(Ce,{placement:"above-pay-button"})}),e(we,{buttonHidden:oe}),e(c,{when:_,children:e(Ce,{placement:"default"})}),e(c,{when:()=>!I.value||T.value,children:e(ae,{above:"medium",children:e(D,{customizations:ge,gap:"large-200"})})})]})]}),e(c,{when:k.configuration.visibility.showShopCashRewardsBanner,children:e(Nn,{})}),le?null:e(r,{children:[e(qn,{}),me]})]})}),le?e(r,{children:[e(qn,{}),me]}):null]})})})]})})});function Jn(e){const{setTriggerNode:n}=se("chat"),t=a(null);return d(()=>{n(e.value?t.value:null)}),i(e=>{t.value=e},[t])}export{Gn as default,Jn 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.