https://www.bombombooks.com.br/cdn/shopifycloud/checkout-web/assets/c1/PayButton-helpers.Cc_ffyKs.js
1import{q as f}from"./esnext-vendor.B9Da21W6.js";import{S as p,H as m,aR as y,aS as v}from"./addresses-is-address-empty.Bn2lNY_L.js";import{b as i,i as E,j as h,k as P}from"./cross-border-hooks.xPE4TSQ5.js";import{R as g}from"./shared-buyer-consent.B_gDyRCR.js";function S(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 T(e){const t=d(e);return f((n,r=i.Express)=>{const a=r===i.Express,o=P(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=h({walletName:e,shopId:l,eventName:r,walletType:o,ttl:a,eventSubtype:c});u&&t.monorailEvent(u)},[t,n,e])}function x({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 M({identity:e},{paymentRequiredMethod:t,managedByMarketsPro:n,isCryptoPayment:r}){return e.current.value!=="shopPay"?!1:v({managedByMarketsPro:n})&&t==="IDEAL"||t!==void 0&&g.has(t)&&!r}function I({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 B({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 N({checkout:e,mobileCheckoutSdk:t,shopPay:n,embed:r}){return e.identity.current.value!=="shopPay"?"dynamic":t.enabled||r?.isCheckoutKit()||y(n.app.config)?"static":"dynamic"}function R({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{S as a,M as b,x as c,B as d,T as e,b as f,N as g,I as h,R 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.