1import{q as f}from"./esnext-vendor.DDpcaSqU.js";import{T as p,I as m,mI as y,aT as h,aU as v}from"./utilities-previous.Cnwy8G2v.js";import{b as i,f as E,h as P,i as g}from"./Monorail-monorailMetric-wallets.D__Peh7l.js";function T(e){const t=d(e);return f((n,r=i.Express)=>{const a=r===i.Express,o=E(a,n);t({event:o,walletType:r})},[t])}function C(e){const t=d(e);return f((n,r=i.Express)=>{const a=r===i.Express,o=g(a,n);t({event:o,walletType:r})},[t])}function d(e){const{userEvents:t,shop:{id:n}}=p();return f(({event:r,ttl:a,walletType:o,eventSubtype:c})=>{const l=parseInt(m(n),10),u=P({walletName:e,shopId:l,eventName:r,walletType:o,ttl:a,eventSubtype:c});u&&t.monorailEvent(u)},[t,n,e])}function I({checkout:e,i18n:t},{nextPageLabel:n,shouldOverrideLabel:r,isRedirectMethod:a}){return e.identity.current.value==="shopPay"&&a?t.translate("payment_ux.continue_to_payment"):r?t.translate("general.pay_now_button_label"):n}function x({identity:e},{paymentRequiredMethod:t,managedByMarketsPro:n,isCryptoPayment:r}){return e.current.value!=="shopPay"?!1:v({managedByMarketsPro:n})&&t==="IDEAL"||t!==void 0&&y.has(t)&&!r}function M({identity:e},{isPartnerSdkEnabled:t,isAppLayout:n}){return e.current.value==="shopPay"&&!t&&n}function b({i18n:e},t){return t?e.formatCurrency(t.amount,{currency:t.currencyCode,form:"short"}):null}function S({i18n:e,mobileCheckoutSdk:t,embed:n},{isAppLayout:r,paymentDue:a,buttonLabel:o}){return t.enabled&&t.variant.isStandard()||n?.isCheckoutKit()?null:r&&a&&o===e.translate("general.pay_now_button_label")?b({i18n:e},a):null}function B({checkout:e,mobileCheckoutSdk:t,shopPay:n,embed:r}){return e.identity.current.value!=="shopPay"?"dynamic":t.enabled||r?.isCheckoutKit()||h(n.app.config)?"static":"dynamic"}function N({identity:e},{showPayWithPayPal:t,showApplePay:n,showPayWithGooglePay:r,isEmbeddedCheckout:a,shouldRenderCheckoutProtocolButton:o,isInstallmentsSupported:c,isInstallmentsSelected:l,isInstallmentsUkHoldoutTreatment:u}){const s=e.current.value==="shopPay";return s&&c&&l&&!u?"installments":s&&o?"checkoutProtocol":t&&!s?"payPal":n?"applePay":r&&!s?"googlePay":!s&&a?"embedded":"default"}export{T as a,x as b,I as c,S as d,C as e,b as f,B as g,M as h,N as s,d as u};
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.