PageSourceSearch

https://aguademadre.co.uk/cdn/shopifycloud/checkout-web/assets/c1/7aefefff.xStqsVa6.js

js aguademadre.co.uk collected 2026-10-07 13:11:45 UTC 23,134 bytes, 1 lines download raw bytes

1import{u as e,z as n,h as t,q as i,o as a,g as s,S as r,_ as o,w as c,m as l,p as d,s as u,k as m,N as p,H as h}from"./2c1ab0fe.Bywc2Brn.js";import{L as f,B as b,b as v,j as g,S as y,a9 as _,aD as j,ab as k,A as w,d as C,b9 as S,b7 as A,b8 as x,f as P,cK as z,f5 as M,f6 as R,f7 as T,dH as L,d6 as I,dm as E,R as D,V as B,o as N,U as O,i as F,dn as V,dp as U,cZ as $,f8 as H,eg as J,f9 as K,bK as G,v as W,p as q,dJ as X,fa as Y,k as Z,an as Q,ec as ee,af as ne,ag as te,H as ie,a0 as ae,q as se}from"./164ad2e3.DZSd7pLX.js";import{c as re,n as oe,J as ce,ew as le,aH as de,ag as ue,bJ as me,ab as pe,ae as he,ac as fe}from"./4b4bc88f.C26USmk8.js";import{C as be}from"./b3389d5c.DbStXD7Y.js";import{u as ve,S as ge,P as ye,L as _e,R as je}from"./73a9b0a0.CBuXJYB6.js";import{M as ke}from"./0b8657b8.D3afZApm.js";import{P as we}from"./fc21c11a.BTdpkxz4.js";import{P as Ce}from"./e3e348f2.D2E-Dtt_.js";import{b as Se,c as Ae,S as xe}from"./dfca5da5.DO4nAhLG.js";import{S as Pe}from"./79974aab.DaZOEwGE.js";import{f as ze,g as Me,h as Re,j as Te,k as Le,L as Ie,l as Ee,m as De,n as Be,U as Ne,V as Oe,P as Fe}from"./f8706cb6.CJ1blgWt.js";import{u as Ve,e as Ue,G as $e,T as He}from"./f3fe2775.D_uXSICt.js";import{S as Je}from"./39921a74.DYnLAd5t.js";import{O as Ke}from"./7a8217fd.CFcj7rrg.js";import{MobileOrderSummary as Ge}from"./d2e6a587.D_77Lmvs.js";import{b as We,a as qe}from"./bf513f9c.CCBvccYL.js";import{u as Xe}from"./e129c76e.pkv8K8Le.js";import{a as Ye,H as Ze}from"./0e9ee714.BN1p7a14.js";import{a as Qe}from"./01973ac7.BOddeAem.js";import{a as en,W as nn,P as tn}from"./c10167e6.CAXyM0MS.js";import{y as an,z as sn,E as rn,u as on,a as cn,b as ln,g as dn,V as un,e as mn}from"./86720dbb.BFQbmiIX.js";import{a as pn,b as hn}from"./app.DRs7v1W8.js";import{v as fn}from"./dffdfb34.DLQCxWEB.js";import{a as bn}from"./24773686.CaAVXUiT.js";import"./d0bb51ec.-Od_3rgw.js";import"./f67abd2c.vvptRNe9.js";import"./60a453ce.Bo_pHupz.js";import"./e12db40c.J_ouQ898.js";import"./9dba8418.BzGnZlrB.js";import"./81e109b1.DOkM2TK2.js";import"./0e67bd3b.D7tZwHwl.js";import"./74835653.B5dvKhsY.js";import"./3ca8ef7e.C6ifrex0.js";import"./2495faa4.D3uf12cS.js";import"./a9fa9fda.DRbzGEJQ.js";import"./ca3e798e.Dc9DtEXz.js";import"./47b970b2.DjolDw47.js";import"./22345fd4.9vcjBj8J.js";import"./064f6ac1.Bjr6-mBf.js";import"./efa0389a.D_AJL692.js";import"./4b1c22b7.BoKf5l9E.js";import"./e0989459.q3_RlbRd.js";import"./cdfd59e6.XnOLrtop.js";import"./e477f96c.C6fFzpZx.js";import"./1ed8f5e3.CzhdrJHY.js";import"./7ee73f43.D11Matm5.js";import"./cb5cf153.DnU9t5IG.js";import"./cb38e5c2.BhWVCtRR.js";import"./1f5e7811.BFK0fqzB.js";import"./0c0ad074.RCwQbH01.js";import"./ccdf3592.DMzipudw.js";import"./87bfafec.CxwEzGHg.js";import"./434e3b0a.B1BBnK_d.js";import"./55098bf1.DXcUuNz_.js";import"./71ae3d5c.CT21Fulh.js";import"./dae24aab.DshQXsWO.js";import"./e77f7fe0.ucQ926NO.js";import"./598fef4e.0s9DNJyq.js";import"./a25deb9a.G9iQXgws.js";import"./945a08d6.VZGO8GHT.js";import"./58314944.QPymRmnD.js";import"./7bc8057b.DOprJdrT.js";import"./d25d1b95.BKchO7Wj.js";import"./c6c0cbda.BKcpNz6B.js";import"./f1968089.D7rMVkBA.js";import"./2b89a178.DH7Z9hRP.js";import"./b684bff6.DCTHrC-i.js";import"./a422df8c.1bXGQc8C.js";import"./17425706.CtaKzzog.js";import"./cf29e63b.Dir5vp_T.js";import"./6fb6f9d8.Dzf9eTaT.js";import"./1444e6bd.nTYcj6dN.js";import"./ed9f2238.DPytesKr.js";import"./78ab3dd0.hruEgq0z.js";import"./910cd6e2.CdoCkmtO.js";import"./347b440c.C1_1cjnS.js";import"./9ce08e25.Olf3Esll.js";import"./181d38d3.CJ-3Gmk5.js";import"./792bb671.B3OvVnSg.js";import"./d6447d9e.ylld8O85.js";import"./f49d4216.CZ2qzbQ0.js";import"./f51e663e.B3qk_wNP.js";import"./21cc90a2.DHzOO82q.js";import"./64de7b49.B8PyHxU4.js";import"./8e79be58.CIzdvtZ5.js";import"./90e26f5f.DF9vA_2V.js";import"./31cc568e.95lmLO5k.js";import"./65f3d4da.Bb3QiqCm.js";import"./2fdb3dd3.BBVlyDMF.js";import"./ca5e9c49.sV1ZKOq5.js";
1import"./f3e117aa.CUlWDYgU.js";import"./7b0c98ea.wJBUDVvK.js";import"./ac5a19ff.DOcg_gPh.js";import"./cc6ff67d.DxXH8xOm.js";import"./08a3b809.BkK7NqSp.js";import"./e39bc11c.BUjAFMkx.js";import"./8599b02a.CvNpIvqP.js";import"./d4ea2faa.DFrX4G1p.js";import"./fe885b80.4u7Ja5rL.js";import"./f78726c8.BaX6C3hQ.js";import"./71b60e0a.DfPLdYsH.js";import"./ec391382.Cdv-WKBN.js";import"./b9c0319a.CPvnjp6u.js";import"./17e57de1.B_nQLFIZ.js";import"./f692f62f.CtV13pmW.js";import"./9babe369.D342A3FZ.js";import"./d22d2b80.B6f-Nstb.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(Je,{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(Ke,{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)},[]),L=i(()=>{z.value=!0},[z]),I=i(async()=>{const e=h.value;j(null);const n=await l.acceptAll();p.user.shopAccountUuid.value===e&&(n.success?L():j(d.translate("user_consent.error_saving_consent")))},[L,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?L():j(d.translate("user_consent.error_saving_consent")))},[L,d,p,h,l]),D=L,B=k===h.value,N=B&&(l.shouldShowBanner.value||z.value),O=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}(N,B),F=s(N);t(()=>{const e=!F.current&&N;if(F.current=N,e)return w({content:d.translate("user_consent.title")})},[d,N]),t(()=>{B&&M.current!==h.value&&(M.current=h.value,m.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:N}}))},[B,N,h.value,m]);const V=e(y,{gap:"small-300",children:[g&&e(_,{tone:"critical",children:g}),e(c,{when:z,fallback:e(wn,{onAcceptAll:I,onManageCookiesClick:R,onRejectAll:E}),children:e(Cn,{onManageCookiesClick:R})})]}),U=e(jn,{open:f,onClose:T,onConsentSaved:D});if(!N)return null;const $=e(v,{ref:O,background:"subdued",borderRadius:"large",padding:"base",children:e(y,{gap:"base",accessibilityRole:"group",accessibilityLabel:d.translate("user_consent.title"),children:V})}),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`,Ln=`${Pn}checkout_banner_coin_dark_2x.png`,In=`${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?Ln:Mn,b=a?In: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 Dn(){const{i18n:n}=re(),t=Me(),{isEarningCashback:i,cashback:a,incentivePresentation:s}=We();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(en,{ineligibilityReason:n})}function Nn({selectorShowsTiles:n,children:t}){const{checkout:{negotiator:i}}=re(),{buyerHasActedSignal:r}=i.context,c=an(),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&&rn),children:e("div",{ref:u,className:l("eRezU",f&&sn[h.value?.from??"end"]),children:t})})}const On=n=>e(v,{children:n});function Fn({customizations:n,selectorShowsTiles:t}){return 0===n.length?null:e(r,{children:n.map(n=>"uiExtension"===n.kind?e(Nn,{selectorShowsTiles:t,children:e(R,{extension:n.extension,render:On})},n.extension.id):e(T,{field:n.field},n.field.key))})}const Vn=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;Ve(),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=L(),v=function(){const{checkout:e}=re(),{displayedPaymentMethods:n}=on({experienceType:"list"}),t=u(cn(n)),i=L(),a=I(),s=ln(),r=qe();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),_=D().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=Ye(),x=Le({showTips:C,billingFormPosition:b.value}),P=N("purchase.checkout.payment-method-list.render-before"),z=N("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(O,{customizations:P}),e(Qe,{}),e(Ie,{}),e(c,{when:g,children:e(Ue,{})}),e(c,{when:S,children:e(Bn,{})}),e(F,{children:e(y,{gap:"large-300",children:[e(nn,{dynamicPaymentExtensions:x.shift()||[],children:[e(tn,{selectorShowsTiles:M,renderVaultingAgreementInline:!1,afterPaymentSelector:e(c,{when:A,children:e(Ze,{})})}),e(c,{when:p,children:e(ge,{})}),e(Fn,{customizations:z,selectorShowsTiles:M}),e(Fn,{customizations:x.shift()||[],selectorShowsTiles:M}),e(c,{when:k,children:e($e,{})})]}),e(c,{when:v,children:e(Ue,{})}),_&&e(un,{}),e(c,{when:n.configuration.visibility.showPurchaseOrderNumberField,children:e(mn,{showHeading:!1})}),C&&e(r,{children:[e(V,{sectionId:"tips",children:e(He,{})}),e(O,{customizations:x.shift()||[]})]}),e(O,{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=J({clearPii:!0}),o=K(),{isAppLayout:c}=G(),{progressing:l}=W(),{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=q({base:!0,small:!1}),s=me()&&(!t.value||(a??!1)),{i18n:r,shop:{name:o},shopPay:c}=re();if(!c.visibility.showReturnToStore)return null;if(!s)return null;const l=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:l})]})}function Jn(){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 Kn=p(function({onReady:n,includeContactInVaultedExtensions:i,showMobileOrderSummary:a,showVaultedStateMarketingDisclosureBelowPayment:s,phoneMarketingPlacement:o,isSectionCustomized:l,showVaultedStateMarketingDisclosureOnMobile:d,expressCheckoutSlot:p,showVaultedCardConsentSpacing:f}){const b=X(),g=Y(),_=pe(),j=Xe(),{checkout:k,embed:w,i18n:S,mobileCheckoutSdk:A,source:x,shop:P,shopPay:z}=re(),M=Z(),R=k.negotiator.current.fields.managedByMarketsPro,T=u(q({base:!0,medium:!1})),L=ue(),I=Q(),E=m(()=>I.configurationSignal.value.main.spacing),D=m(()=>{const{position:e}=I.configurationSignal.value.reductions;return z.visibility.shouldRenderFloatingShopPayButton?"none":"base"===e?"large-200":a.value&&null!=E.value?he(E.value)??"base":"base"}),{localizationExtensions:F}=k.negotiator.parts,U=m(()=>F.value.length>0),$=m(()=>f?.value&&!U.value?"large-200":"none"),H=Gn(T),J=m(()=>s.value&&!d.value&&(!T.value||!l.value)),K=m(()=>"belowPayment"===o.value),G=B(),W=u(G?.tippingPaymentAllowed??!0),se=m(()=>b.value.payment&&P.acceptTipPayments&&W.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=N(ve.value,"ORDER_SUMMARY4"),ye=m(()=>"wallets"!==p.value&&Boolean(R.value)),ze=De({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 Le=P.hasFlagEnabled(fe),Ie=e(c,{when:a,children:e(Ge,{})}),Ee=e(y,{gap:"base",children:[e(c,{when:Me,children:e(v,{display:"@media (inline-size >= medium) auto, none",children:e(V,{sectionId:"tips",children:[e(c,{when:()=>!l.value,children:e(C,{blockSize:"large-300"})}),e(He,{})]})})}),e(c,{when:Re,children:e(Oe,{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(Vn,{})})})}),e(c,{when:k.configuration.visibility.showCashRedemption,children:e(Be,{})}),e(Ne,{})]})}),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:F,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(V,{sectionId:"tips",children:e(He,{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(Oe,{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(Fe,{showEmailMarketingOptIn:J,showPhoneMarketingOptIn:K,paddingBlockStart:$}),!Le&&Ie,e(y,{gap:D.value,"data-testid":"onepage-pay-button-cluster",children:[Le?e(r,{children:[Ie,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:()=>!L.value||T.value,children:e(ae,{above:"medium",children:e(O,{customizations:ge,gap:"large-200"})})})]})]}),e(c,{when:k.configuration.visibility.showShopCashRewardsBanner,children:e(Dn,{})}),le?null:e(r,{children:[e(Jn,{}),me]})]})}),le?e(r,{children:[e(Jn,{}),me]}):null]})})})]})})});function Gn(e){const{setTriggerNode:n}=se("chat"),t=a(null);return d(()=>{n(e.value?t.value:null)}),i(e=>{t.value=e},[t])}export{Kn as default,Gn 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.