PageSourceSearch

https://shop.cookiesforkidscancer.org/cdn/shopifycloud/checkout-web/assets/c1/PayButton-helpers.Xs3mcmMx.js

js cookiesforkidscancer.org collected 2026-09-24 19:21:46 UTC 2,494 bytes, 1 lines download raw bytes

1import{al as c,mT as d,kw as f,aW as y,aX as p}from"./addresses-is-address-empty.ZJ1ThpFy.js";import{R as b}from"./graphql-PaymentSessionMutation.KqKA7ogg.js";function C(t){const{purchasingCompany:e,billingCountries:n,countryDetails:r,...a}=t;if(!e)return!1;if(!r)return!0;const o=c(e.location.billingAddress);return d(o,"billing",{...a,countryDetails:r,fallbackCountry:r,editFormat:f({country:r,mode:null}),availableCountries:n,isMobilePhoneFieldVisible:!1}).size===0}function v({address:t,isDisabled:e,addressSettings:n,shopUserPhone:r}){return{id:t.id,address:h({address:t.address,addressSettings:n,fallbackPhone:r}),default:t.userPreferred,disabled:e?.(t)??!1}}function h({address:t,addressSettings:e,fallbackPhone:n}){const r=e?.isRequired("phone",{countryCode:t.countryCode,useMerchantSettings:!0})?n:void 0;return{district:void 0,subdistrict:void 0,...t,phone:t.phone||r}}function A(t,e){return!t.countryCode||!e.supportedCountries.includes(t.countryCode)}function _({checkout:t,i18n:e},{nextPageLabel:n,shouldOverrideLabel:r,isRedirectMethod:a}){return t.identity.current.value==="shopPay"&&a?e.translate("payment_ux.continue_to_payment"):r?e.translate("general.pay_now_button_label"):n}function S({identity:t},{paymentRequiredMethod:e,managedByMarketsPro:n,isCryptoPayment:r}){return t.current.value!=="shopPay"?!1:p({managedByMarketsPro:n})&&e==="IDEAL"||e!==void 0&&b.has(e)&&!r}function F({identity:t},{isPartnerSdkEnabled:e,isAppLayout:n}){return t.current.value==="shopPay"&&!e&&n}function P({i18n:t},e){return e?t.formatCurrency(e.amount,{currency:e.currencyCode,form:"short"}):null}function E({i18n:t,mobileCheckoutSdk:e,embed:n},{isAppLayout:r,paymentDue:a,buttonLabel:o}){return e.enabled&&e.variant.isStandard()||n?.isCheckoutKit()?null:r&&a&&o===t.translate("general.pay_now_button_label")?P({i18n:t},a):null}function k({checkout:t,mobileCheckoutSdk:e,shopPay:n,embed:r}){return t.identity.current.value!=="shopPay"?"dynamic":e.enabled||r?.isCheckoutKit()||y(n.app.config)?"static":"dynamic"}function R({identity:t},{showPayWithPayPal:e,showApplePay:n,showPayWithGooglePay:r,isEmbeddedCheckout:a,shouldRenderCheckoutProtocolButton:o,isInstallmentsSupported:u,isInstallmentsSelected:s,isInstallmentsUkHoldoutTreatment:l}){const i=t.current.value==="shopPay";return i&&u&&s&&!l?"installments":i&&o?"checkoutProtocol":e&&!i?"payPal":n?"applePay":r&&!i?"googlePay":!i&&a?"embedded":"default"}export{S as a,_ as b,E as c,A as d,F as e,P as f,k as g,C as i,R as s,v as t,h as w};

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.