PageSourceSearch

https://dilmir.com/cdn/shopifycloud/checkout-web/assets/c1/7aefefff.B20O4Xjg.js

js dilmir.com collected 2026-10-08 23:51:31 UTC 23,103 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 h,H as p}from"./2c1ab0fe.Bf8FS-kA.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,ba as S,b8 as A,b9 as P,f as x,cQ as z,fc as M,fd as R,fe as T,dP as L,dq as I,dp as E,R as B,V as D,o as N,U as F,i as O,dr as V,ds as U,d3 as $,ff as H,eo as J,fg as Y,bM as q,v as G,p as K,dR as Q,fh as W,k as X,an as Z,ek as ee,af as ne,ag as te,H as ie,a0 as ae,q as se}from"./164ad2e3.D0nOfU9-.js";import{c as re,n as oe,J as ce,ex as le,aH as de,ag as ue,bJ as me,a7 as he,ae as pe,a8 as fe}from"./4b4bc88f.DcJe9bVW.js";import{C as be}from"./b3389d5c.CfctyB83.js";import{u as ve,S as ge,P as ye,L as _e,R as je}from"./73a9b0a0.BDi-HnGV.js";import{M as ke}from"./0b8657b8.D1jsqafr.js";import{P as we}from"./fc21c11a.6lLQT9fk.js";import{P as Ce}from"./e3e348f2.BgMrBibQ.js";import{b as Se,c as Ae,S as Pe}from"./dfca5da5.DfWeVy9W.js";import{S as xe}from"./79974aab.D3Nz6hz7.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 Be,n as De,U as Ne,V as Fe,P as Oe}from"./f8706cb6.BQ7x6HtO.js";import{S as Ve}from"./39921a74.Xl1RsruW.js";import{O as Ue}from"./7a8217fd.CEN_aCN9.js";import{MobileOrderSummary as $e}from"./d2e6a587.BzbGa9xA.js";import{b as He,a as Je}from"./bf513f9c.BX9hBPrT.js";import{u as Ye,e as qe,G as Ge,T as Ke}from"./6bfea526.B5GUEyb-.js";import{u as Qe}from"./e129c76e.B7-qOHjq.js";import{a as We,H as Xe}from"./0e9ee714.C6OaTmEH.js";import{a as Ze}from"./01973ac7.D9PAWMXi.js";import{a as en,W as nn,P as tn}from"./c10167e6.Cc_eg-js.js";import{z as an,E as sn,F as rn,u as on,b as cn,f as ln,g as dn,V as un,a as mn}from"./86720dbb.CeAI6sBI.js";import{a as hn,b as pn}from"./app.C_ntWzAC.js";import{v as fn}from"./dffdfb34.QpUPx3Le.js";import{a as bn}from"./24773686.CjazS6o8.js";import"./d0bb51ec.CL_3Kdjr.js";import"./f67abd2c.CMIDVCe_.js";import"./60a453ce.0K3_0kXS.js";import"./e12db40c.B4InVJ1F.js";import"./9dba8418.CZTcH8_l.js";import"./81e109b1.DOkM2TK2.js";import"./0e67bd3b.Dil4tpl_.js";import"./74835653.C_weFRW1.js";import"./3ca8ef7e.C6XOR-ST.js";import"./2495faa4.DwUvctcv.js";import"./a9fa9fda.ChMkqhXw.js";import"./ca3e798e.Dc6mNaNz.js";import"./47b970b2.Dc6LZ4kt.js";import"./22345fd4.v5I5uNqg.js";import"./064f6ac1.CkTWd7ab.js";import"./efa0389a.WJQGJ9HI.js";import"./4b1c22b7.BASQngy4.js";import"./e0989459.-cJI74wm.js";import"./cdfd59e6.D-38Fsy6.js";import"./e477f96c.Co1Z012K.js";import"./1ed8f5e3.C6sGDuqU.js";import"./7ee73f43.7F2yvS-3.js";import"./cb5cf153.BfPXsWmE.js";import"./cb38e5c2.D2iCQLyH.js";import"./1f5e7811.DFFUAkDV.js";import"./0c0ad074.DK6S_RlH.js";import"./ccdf3592.DwF6-jXW.js";import"./434e3b0a.oup8Ur0H.js";import"./87bfafec.CxwEzGHg.js";import"./55098bf1.BWRIbi3t.js";import"./71ae3d5c.BGylAywU.js";import"./dae24aab.CuEJarRZ.js";import"./e77f7fe0.EoNDLyBl.js";import"./598fef4e.DelGI2ri.js";import"./a25deb9a.BUpRVthI.js";import"./945a08d6.BFlsC9SP.js";import"./58314944.Dze0G8W1.js";import"./7bc8057b.geQ3BD_t.js";import"./d25d1b95.9jazcINI.js";import"./c6c0cbda.BXj5YQC9.js";import"./f1968089.BXC-WPWh.js";import"./2b89a178.Bm_naKYd.js";import"./b684bff6.8OTNC0Bz.js";import"./a422df8c.C_n6Vcf8.js";import"./17425706.BvRhKi49.js";import"./cf29e63b.BinfTolV.js";import"./6fb6f9d8.CV8O7B_n.js";import"./1444e6bd.KejVbUCp.js";import"./ed9f2238.B7NkSzZF.js";import"./78ab3dd0.CrM-OED9.js";import"./910cd6e2.D9eiDwTE.js";import"./347b440c.SeAcXxcL.js";import"./9ce08e25.SbAKfAes.js";import"./181d38d3.B-Rn_aAW.js";import"./792bb671.B3OvVnSg.js";import"./d6447d9e.D6Lfu7sN.js";import"./f49d4216.Ce3hB4jL.js";import"./f51e663e.D2xOVNHx.js";import"./64de7b49.CoyEsjAj.js";import"./8e79be58.BLmAAEWw.js";import"./90e26f5f.C4W9k3qI.js";import"./31cc568e.95lmLO5k.js";import"./65f3d4da.Bb3QiqCm.js";import"./2fdb3dd3.iDdsTYio.js";import"./ca5e9c49.DNC1C3VF.js";
1import"./f3e117aa.xf43tvbp.js";import"./7b0c98ea.DPccnftV.js";import"./8599b02a.B7SA4xfN.js";import"./ac5a19ff.z0QySLm7.js";import"./cc6ff67d.CEUXuJKJ.js";import"./08a3b809.L9SK5hyj.js";import"./e39bc11c.BZmT2SRz.js";import"./d4ea2faa.BWjkOEd3.js";import"./fe885b80.Dj9dQ3oE.js";import"./f78726c8.B-9Rxer-.js";import"./71b60e0a.DfPLdYsH.js";import"./ec391382.Din5hsBJ.js";import"./b9c0319a.BqVgxqpx.js";import"./17e57de1.Dh6ifiWc.js";import"./f692f62f.DfPNgFdL.js";import"./9babe369.Bsq76oiT.js";import"./d22d2b80.CcmCyqZ9.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(Ve,{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,h=void 0!==m,[p,f]=n(!1),[j,k]=n(!1),[w,C]=n(!1),[S,A]=n(null),[P,x]=n(!1);t(()=>{if(!a)return;const e=o.trackingConsentSelection?.peek();f(e?.analytics??!1),k(e?.marketing??!1),C(!1),A(null),x(!1)},[o,u,a]),t(()=>{a&&!w&&m&&(f(m.analytics),k(m.marketing))},[w,a,m]);const z=i(async()=>{if(P||!h)return;const e=d.value;x(!0),A(null);const n=await o.setTrackingConsent({analytics:p,marketing:j});l.user.shopAccountUuid.value===e&&(n.success?(r?.(),s()):A(c.translate("user_consent.error_saving_consent")),x(!1))},[p,o,c,h,P,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:P||!h,disabled:P||!h,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:p,onChange:e=>{f(e),C(!0)},disabled:P||!h}),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:P||!h})]})]})})}function kn(){const{consentManager:l,i18n:d,mobileCheckoutSdk:u,observability:m,shopPay:h}=re(),p=h.user.shopAccountUuid,[f,b]=n(!1),[g,j]=n(null),[k,x]=n(p.value),z=a(!1),M=s(void 0);t(()=>{k!==p.value&&(x(p.value),z.value=!1,j(null))},[z,k,p.value]);const R=i(()=>{j(null),b(!0)},[]),T=i(()=>{b(!1)},[]),L=i(()=>{z.value=!0},[z]),I=i(async()=>{const e=p.value;j(null);const n=await l.acceptAll();h.user.shopAccountUuid.value===e&&(n.success?L():j(d.translate("user_consent.error_saving_consent")))},[L,d,h,p,l]),E=i(async()=>{const e=p.value;j(null);const n=await l.rejectAll();h.user.shopAccountUuid.value===e&&(n.success?L():j(d.translate("user_consent.error_saving_consent")))},[L,d,h,p,l]),B=L,D=k===p.value,N=D&&(l.shouldShowBanner.value||z.value),F=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&&P(t.current):r.current;r.current=null,i?.isConnected&&document.activeElement===document.body&&i.focus({preventScroll:!0})},[n,e]),t}(N,D),O=s(N);t(()=>{const e=!O.current&&N;if(O.current=N,e)return w({content:d.translate("user_consent.title")})},[d,N]),t(()=>{D&&M.current!==p.value&&(M.current=p.value,m.counter({name:"inline_user_consent_shown",value:1,attributes:{shown:N}}))},[D,N,p.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:B});if(!N)return null;const $=e(v,{ref:F,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(x,{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,Pn=e=>(e=>"ShopCashCheckoutFlatAmountCashbackIncentive"===e.__typename)(e)&&e.minimumOrderValueSatisfied,xn="https://cdn.shopify.com/shop-assets/static_uploads/shop-cash/",zn=`${xn}checkout_banner_coin_light.png`,Mn=`${xn}checkout_banner_coin_light_2x.png`,Rn=`${xn}checkout_banner_coin_light_4x.png`,Tn=`${xn}checkout_banner_coin_dark.png`,Ln=`${xn}checkout_banner_coin_dark_2x.png`,In=`${xn}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(Pn),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,h=r&&(t?.some(e=>Pn(e)||An(e))??!1);if(ze(s,"cashbackBanner",h?m:void 0),!r)return null;const p=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:p,srcSet:`${p} 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 Bn(){const{i18n:n}=re(),t=Me(),{isEarningCashback:i,cashback:a,incentivePresentation:s}=He();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 Dn(){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),h=oe(n.value&&r.value),p=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(p.value=null);n.some(e=>e.addedNodes.length>0)&&h.current&&hn()&&(m.current=!0,p.value={from:pn(),withMotion:c.loaded})});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[p,h,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!==p.value&&p.value.withMotion;return e("div",{ref:d,className:l("ISVtv",f&&"p8IP4",f&&rn),children:e("div",{ref:u,className:l("eRezU",f&&sn[p.value?.from??"end"]),children:t})})}const Fn=n=>e(v,{children:n});function On({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:Fn})},n.extension.id):e(T,{field:n.field},n.field.key))})}const Vn=h(function(){const{checkout:n,i18n:t,source:i,shop:s}=re(),{acceptTipPayments:o,discountCodesEnabled:l}=s,h=ve(),p=E(),f=l&&p.value;Ye(),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=Je();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),_=B().value,j=D(),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=We(),P=Le({showTips:C,billingFormPosition:b.value}),x=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(F,{customizations:x}),e(Ze,{}),e(Ie,{}),e(c,{when:g,children:e(qe,{})}),e(c,{when:S,children:e(Dn,{})}),e(O,{children:e(y,{gap:"large-300",children:[e(nn,{dynamicPaymentExtensions:P.shift()||[],children:[e(tn,{selectorShowsTiles:M,renderVaultingAgreementInline:!1,afterPaymentSelector:e(c,{when:A,children:e(Xe,{})})}),e(c,{when:h,children:e(ge,{})}),e(On,{customizations:z,selectorShowsTiles:M}),e(On,{customizations:P.shift()||[],selectorShowsTiles:M}),e(c,{when:k,children:e(Ge,{})})]}),e(c,{when:v,children:e(qe,{})}),_&&e(un,{}),e(c,{when:n.configuration.visibility.showPurchaseOrderNumberField,children:e(mn,{showHeading:!1})}),C&&e(r,{children:[e(V,{sectionId:"tips",children:e(Ke,{})}),e(F,{customizations:P.shift()||[]})]}),e(F,{customizations:P.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=Y(),{isAppLayout:c}=q(),{progressing:l}=G(),{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=K({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 Yn=h(function({onReady:n,includeContactInVaultedExtensions:i,showMobileOrderSummary:a,showVaultedStateMarketingDisclosureBelowPayment:s,phoneMarketingPlacement:o,isSectionCustomized:l,showVaultedStateMarketingDisclosureOnMobile:d,expressCheckoutSlot:h,showVaultedCardConsentSpacing:f}){const b=Q(),g=W(),_=he(),j=Qe(),{checkout:k,embed:w,i18n:S,mobileCheckoutSdk:A,source:P,shop:x,shopPay:z}=re(),M=X(),R=k.negotiator.current.fields.managedByMarketsPro,T=u(K({base:!0,medium:!1})),L=ue(),I=Z(),E=m(()=>I.configurationSignal.value.main.spacing),B=m(()=>{const{position:e}=I.configurationSignal.value.reductions;return z.visibility.shouldRenderFloatingShopPayButton?"none":"base"===e?"large-200":a.value&&null!=E.value?pe(E.value)??"base":"base"}),{localizationExtensions:O}=k.negotiator.parts,U=m(()=>O.value.length>0),$=m(()=>f?.value&&!U.value?"large-200":"none"),H=qn(T),J=m(()=>s.value&&!d.value&&(!T.value||!l.value)),Y=m(()=>"belowPayment"===o.value),q=D(),G=u(q?.tippingPaymentAllowed??!0),se=m(()=>b.value.payment&&x.acceptTipPayments&&G.value&&k.configuration.visibility.showTips),oe=ee(),le=A.variant.isPartner(),de=m(()=>"shopPay"===k.identity.current.value&&"shopPayExternal"!==P.type&&""!==z.user.shopAccountUuid.value&&!ce(P)),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"!==h.value&&Boolean(R.value)),ze=Be({includeContact:i}),Me=m(()=>!T.value&&!ce(P)&&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=x.hasFlagEnabled(fe),Ie=e(c,{when:a,children:e($e,{})}),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(Ke,{})]})})}),e(c,{when:Re,children:e(Fe,{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(De,{})}),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(p,{each:O,children:(n,t)=>e(_e,{localizationExtension:n,index:t})})]})})}),e(c,{when:()=>T.value&&!ce(P)&&se.value,children:e(v,{display:"@media (inline-size >= medium) none, auto",children:[e(V,{sectionId:"tips",children:e(Ke,{renderInSection:T})}),e(c,{when:()=>!w?.isFlagshipPartner,children:e(Pe,{spacing:pe(E.value)})})]})}),e(c,{when:()=>T.value&&g.value&&ze.value.length,children:e(Fe,{extensions:ze,hideDivider:"whenEmpty"})}),e(ne,{section:"summary",children:e(te,{section:"summary",children:e("div",{ref:H,children:[e(xe,{target:"mobileOrderSummary",children:e(Se,{max:"medium",hideDivider:!0,children:[e(c,{when:()=>!0===T.value,children:e(je,{})}),e(Oe,{showEmailMarketingOptIn:J,showPhoneMarketingOptIn:Y,paddingBlockStart:$}),!Le&&Ie,e(y,{gap:B.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(F,{customizations:ge,gap:"large-200"})})})]})]}),e(c,{when:k.configuration.visibility.showShopCashRewardsBanner,children:e(Bn,{})}),le?null:e(r,{children:[e(Jn,{}),me]})]})}),le?e(r,{children:[e(Jn,{}),me]}):null]})})})]})})});function qn(e){const{setTriggerNode:n}=se("chat"),t=a(null);return d(()=>{n(e.value?t.value:null)}),i(e=>{t.value=e},[t])}export{Yn as default,qn 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.