1import{aa as e,mB as t,aJ as a,aK as n}from"./4c290a1e.D9lE9kmU.js";import{R as s}from"./e477f96c.dvrL9dgG.js";const o="f_9cacaad2",r="f_34c3590e",i="f_a6c1475a",u="f_1523b7d6";function d(a){const{purchasingCompany:n,billingCountries:s,countryDetails:o,editFormat:r,...i}=a;if(!n)return!1;if(!o||!r)return!0;const u=e(n.location.billingAddress);return 0===t(u,"billing",{...i,countryDetails:o,fallbackCountry:o,editFormat:r,availableCountries:s,isMobilePhoneFieldVisible:!1}).size}function l({address:e,isDisabled:t,addressSettings:a,shopUserPhone:n}){return{id:e.id,address:c({address:e.address,addressSettings:a,fallbackPhone:n}),default:e.userPreferred,disabled:t?.(e)??!1}}function c({address:e,addressSettings:t,fallbackPhone:a}){const n=t?.isRequired("phone",{countryCode:e.countryCode,useMerchantSettings:!0})?a:void 0;return{district:void 0,subdistrict:void 0,...e,phone:e.phone||n}}function y(e,t){return!e.countryCode||!t.supportedCountries.includes(e.countryCode)}function h({checkout:e,i18n:t},{nextPageLabel:a,shouldOverrideLabel:n,isRedirectMethod:s}){return"shopPay"===e.identity.current.value&&s?t.translate("payment_ux.continue_to_payment"):n?t.translate("general.pay_now_button_label"):a}function p({identity:e},{paymentRequiredMethod:t,managedByMarketsPro:a,isCryptoPayment:o}){return"shopPay"===e.current.value&&(n({managedByMarketsPro:a})&&"IDEAL"===t||void 0!==t&&s.has(t)&&!o)}function b({identity:e},{isPartnerSdkEnabled:t,isAppLayout:a}){return"shopPay"===e.current.value&&!t&&a}function m({i18n:e},t){return t?e.formatCurrency(t.amount,{currency:t.currencyCode,form:"short"}):null}function f({i18n:e,mobileCheckoutSdk:t,embed:a},{isAppLayout:n,paymentDue:s,buttonLabel:o}){return t.enabled&&t.variant.isStandard()||a?.isCheckoutKit()?null:n&&s&&o===e.translate("general.pay_now_button_label")?m({i18n:e},s):null}function P({checkout:e,mobileCheckoutSdk:t,shopPay:n,embed:s}){return"shopPay"!==e.identity.current.value?"dynamic":t.enabled||s?.isCheckoutKit()||a(n.app.config)?"static":"dynamic"}function k({identity:e},{showPayWithPayPal:t,showApplePay:a,showPayWithGooglePay:n,isEmbeddedCheckout:s,shouldRenderCheckoutProtocolButton:o,isInstallmentsSupported:r,isInstallmentsSelected:i,isInstallmentsUkHoldoutTreatment:u}){const d="shopPay"===e.current.value;return d&&r&&i&&!u?"installments":d&&o?"checkoutProtocol":t&&!d?"payPal":a?"applePay":n&&!d?"googlePay":!d&&s?"embedded":"default"}export{r as F,i as a,p as b,h as c,f as d,y as e,m as f,P as g,o as h,d as i,u as j,b as k,k as s,l as t,c 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.