@zonos/elements 1.3.269 → 1.3.272
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-87fbbb5a.js → cart-f1374a56.js} +1 -1
- package/dist/cjs/{hasInclusivePrice-c86ed1f5.js → hasInclusivePrice-2f1232e3.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-952f32c4.js → invoice-3760bec0.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-1cb21c59.js → isCollectMobileTablet-d5c1a9ea.js} +2 -2
- package/dist/cjs/{localization-a969f224.js → localization-503c8477.js} +131 -3
- package/dist/cjs/{paypal-cfe1e8e9.js → paypal-5e9b8224.js} +2 -2
- package/dist/cjs/{placeTestOrder-613878fb.js → placeTestOrder-d1be2c8e.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-5a333d29.js → renderCheckoutCurrency-4486b06e.js} +2 -2
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_5.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +117 -7
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +4 -1
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/euWithdrawalRate.js +40 -0
- package/dist/collection/components/store/hello/localization.js +3 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
- package/dist/collection/components/store/translationStore/strings.base.js +6 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
- package/dist/collection/components/store/translationStore/strings.french.js +6 -0
- package/dist/collection/components/store/translationStore/strings.german.js +6 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
- package/dist/collection/components/utils/checkout/euWithdrawalNotice.js +74 -0
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +6 -2
- package/dist/collection/types/generated/graphql.internal.types.js +315 -182
- package/dist/esm/{cart-663ef7d5.js → cart-1415dcf0.js} +1 -1
- package/dist/esm/{hasInclusivePrice-f8bd057d.js → hasInclusivePrice-a3b0f71c.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-db7211a6.js → invoice-117efa2c.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-24c912b1.js → isCollectMobileTablet-2c62fdaa.js} +2 -2
- package/dist/esm/{localization-dc19e8bb.js → localization-29723d89.js} +130 -4
- package/dist/esm/{paypal-cdbe69ef.js → paypal-cb5559d4.js} +2 -2
- package/dist/esm/{placeTestOrder-ba67e208.js → placeTestOrder-443376eb.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-fb1cbd28.js → renderCheckoutCurrency-8390b5bf.js} +2 -2
- package/dist/esm/zonos-address-display_8.entry.js +2 -2
- package/dist/esm/zonos-address_4.entry.js +2 -2
- package/dist/esm/zonos-card_5.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +118 -8
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
- package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
- package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-policy-consent_2.entry.js +3 -3
- package/dist/esm-es5/{cart-663ef7d5.js → cart-1415dcf0.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-f8bd057d.js → hasInclusivePrice-a3b0f71c.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-db7211a6.js → invoice-117efa2c.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-24c912b1.js → isCollectMobileTablet-2c62fdaa.js} +1 -1
- package/dist/esm-es5/localization-29723d89.js +1 -0
- package/dist/esm-es5/{paypal-cdbe69ef.js → paypal-cb5559d4.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-ba67e208.js → placeTestOrder-443376eb.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-fb1cbd28.js → renderCheckoutCurrency-8390b5bf.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
- package/dist/scripts/index.d.ts +38 -3
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/store/checkout/euWithdrawalRate.d.ts +19 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
- package/dist/types/components/utils/checkout/euWithdrawalNotice.d.ts +9 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +8 -3
- package/dist/types/types/checkout/CheckoutConfig.d.ts +10 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +396 -218
- package/dist/types/types/generated/graphql.internal.types.ts +508 -258
- package/dist/types/types/utils/ZonosSettings.d.ts +9 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0fa932e6.system.js +1 -0
- package/dist/zonos-elements/{p-680da401.entry.js → p-15c2dfea.entry.js} +1 -1
- package/dist/zonos-elements/{p-d932973f.system.js → p-17c7a727.system.js} +1 -1
- package/dist/zonos-elements/{p-09d32e53.system.entry.js → p-18c9565b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-24aa6708.js +1 -0
- package/dist/zonos-elements/{p-a237429e.entry.js → p-2585034d.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/p-2cda42d5.system.js +1 -0
- package/dist/zonos-elements/{p-513e8278.entry.js → p-2d1055d5.entry.js} +1 -1
- package/dist/zonos-elements/{p-f5684fc2.system.js → p-318e704a.system.js} +1 -1
- package/dist/zonos-elements/{p-699276f2.system.js → p-3b600b89.system.js} +1 -1
- package/dist/zonos-elements/{p-9092f655.entry.js → p-3efe0875.entry.js} +1 -1
- package/dist/zonos-elements/{p-c62293d5.system.entry.js → p-48f3e2d2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-488c1af1.entry.js → p-4c94cfd3.entry.js} +1 -1
- package/dist/zonos-elements/{p-243dda5f.js → p-53b65b80.js} +1 -1
- package/dist/zonos-elements/{p-be64a52e.entry.js → p-53be08c8.entry.js} +1 -1
- package/dist/zonos-elements/{p-0581cfc9.system.entry.js → p-54a9c772.system.entry.js} +1 -1
- package/dist/zonos-elements/p-58521b25.js +1 -0
- package/dist/zonos-elements/{p-48ec0b61.system.entry.js → p-5bd47a30.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-57b55808.entry.js → p-60f0ff42.entry.js} +1 -1
- package/dist/zonos-elements/{p-ba127f51.entry.js → p-6609467e.entry.js} +1 -1
- package/dist/zonos-elements/{p-9ea67d63.system.entry.js → p-6b87101d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f0bdb87.system.entry.js → p-73730eb9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-82ce355d.system.entry.js → p-7536cf94.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-263d14da.system.entry.js → p-792fce17.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7ce6b8f7.system.entry.js +1 -0
- package/dist/zonos-elements/{p-4af88255.entry.js → p-7d859914.entry.js} +1 -1
- package/dist/zonos-elements/{p-accccb9c.entry.js → p-831bcfb6.entry.js} +1 -1
- package/dist/zonos-elements/{p-0daed059.system.entry.js → p-9259e19b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-93324ee5.entry.js +1 -0
- package/dist/zonos-elements/p-99ef86c3.js +1 -0
- package/dist/zonos-elements/{p-9a509268.entry.js → p-a956e28f.entry.js} +1 -1
- package/dist/zonos-elements/{p-bbef037c.js → p-aa3a7538.js} +1 -1
- package/dist/zonos-elements/{p-c4ef873a.system.entry.js → p-aafc2155.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9377b5c2.entry.js → p-b1b7d786.entry.js} +1 -1
- package/dist/zonos-elements/{p-84d4f04d.entry.js → p-b375372e.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f817a47.system.js → p-b453ae2b.system.js} +1 -1
- package/dist/zonos-elements/{p-049fc407.entry.js → p-bd2daace.entry.js} +1 -1
- package/dist/zonos-elements/{p-9799193c.entry.js → p-c16c7978.entry.js} +1 -1
- package/dist/zonos-elements/{p-44147850.js → p-c425d3d9.js} +1 -1
- package/dist/zonos-elements/{p-fc270539.system.entry.js → p-c45df586.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c935390d.js +1 -0
- package/dist/zonos-elements/{p-1bde60d5.system.entry.js → p-ccc8d669.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd5444b0.js → p-cdea0f7d.js} +1 -1
- package/dist/zonos-elements/{p-8a24701c.system.entry.js → p-d2ba9e3c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c2023a08.system.js → p-e77dd304.system.js} +1 -1
- package/dist/zonos-elements/{p-57c3c68f.entry.js → p-ea91600a.entry.js} +1 -1
- package/dist/zonos-elements/{p-882fb843.system.entry.js → p-eb254a96.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7662d32a.system.js → p-eb77dd11.system.js} +1 -1
- package/dist/zonos-elements/{p-858103a0.entry.js → p-ee00f232.entry.js} +1 -1
- package/dist/zonos-elements/{p-b0ed0fe7.system.entry.js → p-f4be6ce5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df0c8fb6.system.entry.js → p-f5d9e5e5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-71528303.system.entry.js → p-f98cdb98.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fd849c69.system.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/localization-dc19e8bb.js +0 -1
- package/dist/zonos-elements/p-097d7819.js +0 -1
- package/dist/zonos-elements/p-2be4335f.js +0 -1
- package/dist/zonos-elements/p-33a37c42.system.entry.js +0 -1
- package/dist/zonos-elements/p-4b6e367d.system.js +0 -1
- package/dist/zonos-elements/p-56711a61.js +0 -1
- package/dist/zonos-elements/p-a3a79b2f.system.js +0 -1
- package/dist/zonos-elements/p-c5caf47b.system.js +0 -1
- package/dist/zonos-elements/p-d437bc28.js +0 -1
- package/dist/zonos-elements/p-e05e5825.entry.js +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, e as getAssetPath, h, a as Host, F as Fragment, d as createEvent, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { d as cartStore, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, b as stripeStore, F as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, R as storeCreditStore, S as storeCreditStoreReset, z as storeCreditStoreCoversFullAmount, v as isPolicyConsentRequired, E as policyConsentStore, J as stripeStoreRecordPolicyConsent, u as cartStoreNextStep, T as stripeStoreTranslateAddressToLatin, U as extractName, G as cartStoreOnChange, V as stripeStoreAsyncAddressUpdate, L as cartStoreUpdateSelectedShippingOption, W as cartStoreGetShippingTransitInfo, X as cartStoreGetMethod, Y as sortServiceLevelOptionsByAmount } from './cart-
|
|
3
|
-
import { t as translate, l as localizationStore, s as storageStore, e as localizationStoreOnChange } from './localization-
|
|
4
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
2
|
+
import { d as cartStore, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, b as stripeStore, F as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, R as storeCreditStore, S as storeCreditStoreReset, z as storeCreditStoreCoversFullAmount, v as isPolicyConsentRequired, E as policyConsentStore, J as stripeStoreRecordPolicyConsent, u as cartStoreNextStep, T as stripeStoreTranslateAddressToLatin, U as extractName, G as cartStoreOnChange, V as stripeStoreAsyncAddressUpdate, L as cartStoreUpdateSelectedShippingOption, W as cartStoreGetShippingTransitInfo, X as cartStoreGetMethod, Y as sortServiceLevelOptionsByAmount } from './cart-1415dcf0.js';
|
|
3
|
+
import { t as translate, l as localizationStore, s as storageStore, u as getExchangeRate, v as numberFormat, e as localizationStoreOnChange } from './localization-29723d89.js';
|
|
4
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-8390b5bf.js';
|
|
5
5
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
|
-
import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
8
|
-
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-
|
|
9
|
-
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-
|
|
7
|
+
import { z as zonosStore, c as createStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
8
|
+
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-a3b0f71c.js';
|
|
9
|
+
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-cb5559d4.js';
|
|
10
10
|
import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
11
11
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
12
12
|
import { g as getBorderRadius } from './getBorderRadius-d23f47a6.js';
|
|
13
13
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
14
14
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
15
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
15
|
+
import { p as placeTestOrder } from './placeTestOrder-443376eb.js';
|
|
16
16
|
import { i as isDarkColor } from './isDarkColor-566f04c5.js';
|
|
17
17
|
import { g as getContrastColor } from './getContrastColor-f0bd5b65.js';
|
|
18
18
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
@@ -1065,6 +1065,114 @@ const ZonosCheckoutFooter = class {
|
|
|
1065
1065
|
};
|
|
1066
1066
|
ZonosCheckoutFooter.style = ZonosCheckoutFooterStyle0;
|
|
1067
1067
|
|
|
1068
|
+
/**
|
|
1069
|
+
* Caches live "configured currency → presentment currency" rates used to convert
|
|
1070
|
+
* the EU withdrawal return-shipping cap into the currency the buyer actually pays
|
|
1071
|
+
* in. A @stencil/store so that, when a lazily-fetched rate resolves, components
|
|
1072
|
+
* rendering the notice re-render and pick up the converted amount. Keyed by
|
|
1073
|
+
* `${sourceCurrency}_${targetCurrency}`; a null value means the lookup failed.
|
|
1074
|
+
*/
|
|
1075
|
+
const { state: euWithdrawalRateStore } = createStore({ crossRates: {} });
|
|
1076
|
+
// Tracks in-flight rate lookups so the same pair isn't fetched on every render.
|
|
1077
|
+
const inFlightRateKeys = new Set();
|
|
1078
|
+
const euWithdrawalCrossRateKey = (sourceCurrency, targetCurrency) => `${sourceCurrency}_${targetCurrency}`;
|
|
1079
|
+
/**
|
|
1080
|
+
* Lazily fetch the current configured→presentment rate (fire-and-forget). Guarded
|
|
1081
|
+
* so each pair is fetched at most once; the result lands in the reactive store,
|
|
1082
|
+
* which triggers a re-render that then shows the presentment estimate.
|
|
1083
|
+
*/
|
|
1084
|
+
const ensureEuWithdrawalCrossRate = (sourceCurrency, targetCurrency, shipToCountry) => {
|
|
1085
|
+
const key = euWithdrawalCrossRateKey(sourceCurrency, targetCurrency);
|
|
1086
|
+
if (inFlightRateKeys.has(key) ||
|
|
1087
|
+
euWithdrawalRateStore.crossRates[key] !== undefined) {
|
|
1088
|
+
return;
|
|
1089
|
+
}
|
|
1090
|
+
inFlightRateKeys.add(key);
|
|
1091
|
+
void getExchangeRate({
|
|
1092
|
+
country: shipToCountry,
|
|
1093
|
+
isGuaranteed: false,
|
|
1094
|
+
sourceCurrency,
|
|
1095
|
+
targetCurrency,
|
|
1096
|
+
})
|
|
1097
|
+
.then(({ exchangeRate }) => {
|
|
1098
|
+
var _a;
|
|
1099
|
+
euWithdrawalRateStore.crossRates = Object.assign(Object.assign({}, euWithdrawalRateStore.crossRates), { [key]: (_a = exchangeRate === null || exchangeRate === void 0 ? void 0 : exchangeRate.rate) !== null && _a !== void 0 ? _a : null });
|
|
1100
|
+
})
|
|
1101
|
+
.finally(() => {
|
|
1102
|
+
inFlightRateKeys.delete(key);
|
|
1103
|
+
});
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Returns the cap converted into the presentment currency, or null when it can't
|
|
1108
|
+
* be determined yet (rate still loading or unavailable).
|
|
1109
|
+
*
|
|
1110
|
+
* - When the cap currency is the merchant's native/base currency, reuse the
|
|
1111
|
+
* checkout session's base→presentment rate (no extra request).
|
|
1112
|
+
* - Otherwise fetch the current cap-currency→presentment rate on demand.
|
|
1113
|
+
*/
|
|
1114
|
+
const getPresentmentAmount = (maximum, configuredCurrency, presentmentCurrency, shipToCountry) => {
|
|
1115
|
+
var _a, _b;
|
|
1116
|
+
const baseCurrency = (_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.sourceCurrencyCode;
|
|
1117
|
+
const sessionRate = (_b = cartStore.exchangeRate) === null || _b === void 0 ? void 0 : _b.rate;
|
|
1118
|
+
if (configuredCurrency === baseCurrency && sessionRate) {
|
|
1119
|
+
return maximum * sessionRate;
|
|
1120
|
+
}
|
|
1121
|
+
const liveRate = euWithdrawalRateStore.crossRates[euWithdrawalCrossRateKey(configuredCurrency, presentmentCurrency)];
|
|
1122
|
+
if (liveRate === undefined) {
|
|
1123
|
+
ensureEuWithdrawalCrossRate(configuredCurrency, presentmentCurrency, shipToCountry);
|
|
1124
|
+
return null;
|
|
1125
|
+
}
|
|
1126
|
+
return liveRate === null ? null : maximum * liveRate;
|
|
1127
|
+
};
|
|
1128
|
+
const formatInCurrency = (amount, currency) => `${numberFormat({ amount, currency, targetFormat: null })} ${currency}`;
|
|
1129
|
+
/**
|
|
1130
|
+
* Formats the cap for the buyer, e.g. "100 USD (~125 CAD)" — the merchant's
|
|
1131
|
+
* configured amount/currency, plus the estimated amount the buyer will actually
|
|
1132
|
+
* pay in their presentment currency. When the cap is already in the presentment
|
|
1133
|
+
* currency, or the presentment estimate isn't available yet, only the configured
|
|
1134
|
+
* amount is shown.
|
|
1135
|
+
*/
|
|
1136
|
+
const formatMaximum = (maximum, configuredCurrency, shipToCountry) => {
|
|
1137
|
+
const configured = formatInCurrency(maximum, configuredCurrency);
|
|
1138
|
+
const presentmentCurrency = cartStore.currency;
|
|
1139
|
+
if (configuredCurrency === presentmentCurrency) {
|
|
1140
|
+
return configured;
|
|
1141
|
+
}
|
|
1142
|
+
const presentmentAmount = getPresentmentAmount(maximum, configuredCurrency, presentmentCurrency, shipToCountry);
|
|
1143
|
+
if (presentmentAmount == null) {
|
|
1144
|
+
return configured;
|
|
1145
|
+
}
|
|
1146
|
+
return `${configured} (~${formatInCurrency(presentmentAmount, presentmentCurrency)})`;
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* Returns the localized EU withdrawal notice text to render above the Pay button,
|
|
1150
|
+
* or null when it shouldn't be shown. The notice appears only when the merchant
|
|
1151
|
+
* has opted in (status ENABLED) and the buyer is shipping to a country flagged by
|
|
1152
|
+
* the API as affected by the regulation (`genericSettings.withdrawalCountryEnabled`).
|
|
1153
|
+
* When a maximum return-shipping cap is configured the copy includes the amount;
|
|
1154
|
+
* otherwise it uses the no-maximum variant.
|
|
1155
|
+
*/
|
|
1156
|
+
const getEuWithdrawalNoticeText = (shipToCountry) => {
|
|
1157
|
+
var _a, _b;
|
|
1158
|
+
const policy = (_a = zonosStore.checkoutSettings.merchantPolicyLinks) === null || _a === void 0 ? void 0 : _a.euWithdrawalPolicy;
|
|
1159
|
+
if (!policy || policy.status !== 'ENABLED') {
|
|
1160
|
+
return null;
|
|
1161
|
+
}
|
|
1162
|
+
// The affected-country list is API-controlled (not hardcoded), so an absent or
|
|
1163
|
+
// empty list shows the notice for no country.
|
|
1164
|
+
const enabledCountries = (_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.withdrawalCountryEnabled;
|
|
1165
|
+
if (!shipToCountry ||
|
|
1166
|
+
!(enabledCountries === null || enabledCountries === void 0 ? void 0 : enabledCountries.some(country => country === shipToCountry))) {
|
|
1167
|
+
return null;
|
|
1168
|
+
}
|
|
1169
|
+
const maximum = policy.maximumReturnShippingEstimate;
|
|
1170
|
+
if (maximum == null) {
|
|
1171
|
+
return translate('If you later choose to exercise your right to withdrawal, you will be responsible for any associated return shipping costs.');
|
|
1172
|
+
}
|
|
1173
|
+
return translate('If you later choose to exercise your right to withdrawal, you will be responsible for any associated return shipping costs, up to a maximum [amount].', { amount: formatMaximum(maximum, policy.currencyCode, shipToCountry) });
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1068
1176
|
const CheckmarkLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M15.342 10.21a.75.75 0 0 0-1.184-.92l-2.978 3.829-1.4-1.4a.75.75 0 1 0-1.06 1.061l1.8 1.8a1 1 0 0 0 1.496-.093l3.326-4.277Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>`;
|
|
1069
1177
|
|
|
1070
1178
|
const RemoveLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>`;
|
|
@@ -1259,6 +1367,7 @@ const ZonosCheckoutPayment = class {
|
|
|
1259
1367
|
const isPaypalTabSelected = ((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.value.type) === 'external_paypal';
|
|
1260
1368
|
const storeCreditCoversFullOrder = storeCreditStoreCoversFullAmount();
|
|
1261
1369
|
const renderPayment = () => {
|
|
1370
|
+
var _a;
|
|
1262
1371
|
if (isStagingMode) {
|
|
1263
1372
|
const { colorPrimary } = zonosStore.appearance;
|
|
1264
1373
|
const themeBasedColor = colorPrimary && isDarkColor(colorPrimary) ? 'DARK' : 'LIGHT';
|
|
@@ -1272,10 +1381,11 @@ const ZonosCheckoutPayment = class {
|
|
|
1272
1381
|
// use primary type when on mobile mode
|
|
1273
1382
|
variant: this.submitBtnType }, translate('Place test order')))));
|
|
1274
1383
|
}
|
|
1384
|
+
const euWithdrawalNoticeText = getEuWithdrawalNoticeText((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country);
|
|
1275
1385
|
return (h(Fragment, null, this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), this.hasStripePaymentError && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, stripeStore.customErrorMessage ||
|
|
1276
1386
|
translate("We couldn't complete your payment. Please verify the payment details and try again."))), paypalStore.paypalErrorMessage && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, paypalStore.paypalErrorMessage)), cartStore.customerAuthenticationToken &&
|
|
1277
1387
|
storeCreditStore.availableBalance != null &&
|
|
1278
|
-
storeCreditStore.availableBalance > 0 && (h("zonos-store-credit", null)), storeCreditCoversFullOrder ? (h("zonos-banner", { intent: "info" }, translate('Store credit covers your full order'))) : (h("zonos-payment", null)), h("zonos-policy-consent", null), h("div", { class: "zonos--group-btn" }, (!isPaypalTabSelected || storeCreditCoversFullOrder) && (h(Fragment, null, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, isDisabled: this.continueLoading &&
|
|
1388
|
+
storeCreditStore.availableBalance > 0 && (h("zonos-store-credit", null)), storeCreditCoversFullOrder ? (h("zonos-banner", { intent: "info" }, translate('Store credit covers your full order'))) : (h("zonos-payment", null)), h("zonos-policy-consent", null), euWithdrawalNoticeText && (h("zonos-banner", { class: "zonos--eu-withdrawal-notice", intent: "info" }, euWithdrawalNoticeText)), h("div", { class: "zonos--group-btn" }, (!isPaypalTabSelected || storeCreditCoversFullOrder) && (h(Fragment, null, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, isDisabled: this.continueLoading &&
|
|
1279
1389
|
stripeStore.checkoutSettlementCurrency === 'USD', loading: this.continueLoading &&
|
|
1280
1390
|
stripeStore.checkoutSettlementCurrency !== 'USD', onClick: async () => {
|
|
1281
1391
|
if (!cartStore.checkoutSession) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, p as policyConsentStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as isPolicyConsentRequired, w as stripeStoreUpdateCheckoutSessionBaseCurrency, x as stripeStoreHandleInventoryCheck, y as storeCreditStoreApplyCredit, z as storeCreditStoreCoversFullAmount, A as validateCheckoutSession, B as storeCreditStoreCreateOrder, C as stripeStoreConfirmPayment, D as stripeStoreHandleInventoryRefund, E as policyConsentStore, F as stripeStoreReset, G as cartStoreOnChange, H as stripeStoreOnChange, I as storeCreditStoreGetEffectiveAmount } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitAnalytics, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { f as filterValidTests, a as fetchCheckoutId, b as fetchBigCommerceCheckout, i as isBigCommerceCustomerLoggedIn, l as localizationStore, c as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, d as storageStoreSetEnabledVariantTestKeys, t as translate, e as localizationStoreOnChange, h as currencyFormat } from './localization-
|
|
2
|
+
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, p as policyConsentStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as isPolicyConsentRequired, w as stripeStoreUpdateCheckoutSessionBaseCurrency, x as stripeStoreHandleInventoryCheck, y as storeCreditStoreApplyCredit, z as storeCreditStoreCoversFullAmount, A as validateCheckoutSession, B as storeCreditStoreCreateOrder, C as stripeStoreConfirmPayment, D as stripeStoreHandleInventoryRefund, E as policyConsentStore, F as stripeStoreReset, G as cartStoreOnChange, H as stripeStoreOnChange, I as storeCreditStoreGetEffectiveAmount } from './cart-1415dcf0.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitAnalytics, a as paypalStore, b as paypalInitScript } from './paypal-cb5559d4.js';
|
|
4
|
+
import { f as filterValidTests, a as fetchCheckoutId, b as fetchBigCommerceCheckout, i as isBigCommerceCustomerLoggedIn, l as localizationStore, c as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, d as storageStoreSetEnabledVariantTestKeys, t as translate, e as localizationStoreOnChange, h as currencyFormat } from './localization-29723d89.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-8e19daff.js';
|
|
6
6
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
7
7
|
import { h as handleFetch, g as getIsTestMode, j as jsonParse, l as logError, b as getAdditionalLogMetadata, s as sendErrorLog, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, e as getAssetPath, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { d as cartStore } from './cart-
|
|
2
|
+
import { d as cartStore } from './cart-1415dcf0.js';
|
|
3
3
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
|
|
4
4
|
import { f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
7
|
-
import './localization-
|
|
7
|
+
import './localization-29723d89.js';
|
|
8
8
|
import './handleFetch-a844cac1.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-566f04c5.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, F as stripeStoreReset, Q as stripeStoreMessageBasedOnStatus, d as cartStore, u as cartStoreNextStep, G as cartStoreOnChange } from './cart-
|
|
3
|
-
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { t as translate, s as storageStore, l as localizationStore,
|
|
2
|
+
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, F as stripeStoreReset, Q as stripeStoreMessageBasedOnStatus, d as cartStore, u as cartStoreNextStep, G as cartStoreOnChange } from './cart-1415dcf0.js';
|
|
3
|
+
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-cb5559d4.js';
|
|
4
|
+
import { t as translate, s as storageStore, l as localizationStore, x as translationStoreOnChange } from './localization-29723d89.js';
|
|
5
5
|
import { z as zonosStore } from './zonosStore-8e19daff.js';
|
|
6
6
|
import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
8
8
|
import { g as getBorderRadius } from './getBorderRadius-d23f47a6.js';
|
|
9
9
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
10
|
-
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-
|
|
10
|
+
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-2c62fdaa.js';
|
|
11
11
|
import { c as classes } from './classes-0d95c529.js';
|
|
12
12
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
13
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
14
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
13
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-8390b5bf.js';
|
|
14
|
+
import { p as placeTestOrder } from './placeTestOrder-443376eb.js';
|
|
15
15
|
import { r as renderFallback } from './renderFallback-b250f4e9.js';
|
|
16
16
|
import './isDarkColor-566f04c5.js';
|
|
17
17
|
import './isContrastColor-fbddacb6.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, F as Fragment } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, w as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-
|
|
3
|
-
import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-
|
|
4
|
-
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-
|
|
5
|
-
import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-
|
|
2
|
+
import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, w as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-1415dcf0.js';
|
|
3
|
+
import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-2c62fdaa.js';
|
|
4
|
+
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-cb5559d4.js';
|
|
5
|
+
import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-29723d89.js';
|
|
6
6
|
import { z as zonosStore } from './zonosStore-8e19daff.js';
|
|
7
7
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore } from './cart-
|
|
3
|
-
import { j as getOverridenZCountry, k as isValidSelector, m as initLocalizationStore, s as storageStore, c as localizationStoreUpdateSelectedCountryCode } from './localization-
|
|
2
|
+
import { b as stripeStore } from './cart-1415dcf0.js';
|
|
3
|
+
import { j as getOverridenZCountry, k as isValidSelector, m as initLocalizationStore, s as storageStore, c as localizationStoreUpdateSelectedCountryCode } from './localization-29723d89.js';
|
|
4
4
|
import { z as zonosStore, e as zonosStoreInitSetting, f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
5
5
|
import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
|
|
6
6
|
import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { l as localizationStore } from './localization-
|
|
2
|
+
import { l as localizationStore } from './localization-29723d89.js';
|
|
3
3
|
import { f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-a844cac1.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { c as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-
|
|
2
|
+
import { c as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-29723d89.js';
|
|
3
3
|
import { f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-566f04c5.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { l as localizationStore, t as translate, h as currencyFormat } from './localization-
|
|
2
|
+
import { l as localizationStore, t as translate, h as currencyFormat } from './localization-29723d89.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-8e19daff.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
6
|
-
import { h as hasInclusivePrice, T as TAXES_KEY, D as DUTY_KEY } from './hasInclusivePrice-
|
|
6
|
+
import { h as hasInclusivePrice, T as TAXES_KEY, D as DUTY_KEY } from './hasInclusivePrice-a3b0f71c.js';
|
|
7
7
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
8
8
|
import { e as euCountryCodes } from './TaxId-50d72254.js';
|
|
9
9
|
import './handleFetch-a844cac1.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
2
|
import { d as debounce_1 } from './debounce-58e4ff3e.js';
|
|
3
|
-
import { l as localizationStore, k as isValidSelector, t as translate, g as getZCountryUrlParam, n as setZCountryUrlParam, o as currencyDisplay, p as currencyConvertAndFormat, q as currencyConvert, h as currencyFormat, r as shouldShowHelloWidget } from './localization-
|
|
3
|
+
import { l as localizationStore, k as isValidSelector, t as translate, g as getZCountryUrlParam, n as setZCountryUrlParam, o as currencyDisplay, p as currencyConvertAndFormat, q as currencyConvert, h as currencyFormat, r as shouldShowHelloWidget } from './localization-29723d89.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-8e19daff.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { d as cartStore } from './cart-
|
|
3
|
-
import { t as translate } from './localization-
|
|
4
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
2
|
+
import { d as cartStore } from './cart-1415dcf0.js';
|
|
3
|
+
import { t as translate } from './localization-29723d89.js';
|
|
4
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-8390b5bf.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
|
-
import { c as invoiceStore } from './invoice-
|
|
6
|
+
import { c as invoiceStore } from './invoice-117efa2c.js';
|
|
7
7
|
import { r as renderFallback } from './renderFallback-b250f4e9.js';
|
|
8
8
|
import './zonosStore-8e19daff.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, F as stripeStoreReset, Q as stripeStoreMessageBasedOnStatus, d as cartStore, u as cartStoreNextStep, G as cartStoreOnChange } from './cart-
|
|
3
|
-
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { t as translate, s as storageStore, l as localizationStore } from './localization-
|
|
2
|
+
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, F as stripeStoreReset, Q as stripeStoreMessageBasedOnStatus, d as cartStore, u as cartStoreNextStep, G as cartStoreOnChange } from './cart-1415dcf0.js';
|
|
3
|
+
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-cb5559d4.js';
|
|
4
|
+
import { t as translate, s as storageStore, l as localizationStore } from './localization-29723d89.js';
|
|
5
5
|
import { z as zonosStore } from './zonosStore-8e19daff.js';
|
|
6
6
|
import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
@@ -10,9 +10,9 @@ import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
|
10
10
|
import { i as isInvoiceMobile, a as isInvoiceTablet } from './isInvoiceMobileTablet-1f7b614e.js';
|
|
11
11
|
import { c as classes } from './classes-0d95c529.js';
|
|
12
12
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
13
|
-
import { c as invoiceStore } from './invoice-
|
|
14
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
15
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
13
|
+
import { c as invoiceStore } from './invoice-117efa2c.js';
|
|
14
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-8390b5bf.js';
|
|
15
|
+
import { p as placeTestOrder } from './placeTestOrder-443376eb.js';
|
|
16
16
|
import { r as renderFallback } from './renderFallback-b250f4e9.js';
|
|
17
17
|
import './isDarkColor-566f04c5.js';
|
|
18
18
|
import './isContrastColor-fbddacb6.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, F as Fragment } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, w as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-
|
|
3
|
-
import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-
|
|
4
|
-
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-
|
|
5
|
-
import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-
|
|
2
|
+
import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, w as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-1415dcf0.js';
|
|
3
|
+
import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-117efa2c.js';
|
|
4
|
+
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-cb5559d4.js';
|
|
5
|
+
import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-29723d89.js';
|
|
6
6
|
import { z as zonosStore } from './zonosStore-8e19daff.js';
|
|
7
7
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import {
|
|
2
|
+
import { A as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-29723d89.js';
|
|
3
3
|
import { f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-a844cac1.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { Z as getEnabledPolicies, E as policyConsentStore, _ as storeCreditStoreSetEnabled, $ as storeCreditStoreSetUseFullBalance, a0 as cartStoreUpdateStoreCredit, R as storeCreditStore, a1 as storeCreditStoreSetAmount, a2 as storeCreditStoreRefreshBalance, I as storeCreditStoreGetEffectiveAmount } from './cart-
|
|
3
|
-
import { l as localizationStore, t as translate } from './localization-
|
|
2
|
+
import { Z as getEnabledPolicies, E as policyConsentStore, _ as storeCreditStoreSetEnabled, $ as storeCreditStoreSetUseFullBalance, a0 as cartStoreUpdateStoreCredit, R as storeCreditStore, a1 as storeCreditStoreSetAmount, a2 as storeCreditStoreRefreshBalance, I as storeCreditStoreGetEffectiveAmount } from './cart-1415dcf0.js';
|
|
3
|
+
import { l as localizationStore, t as translate } from './localization-29723d89.js';
|
|
4
4
|
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
5
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
5
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-8390b5bf.js';
|
|
6
6
|
import { g as getBorderRadius } from './getBorderRadius-d23f47a6.js';
|
|
7
7
|
import './VarianceTest-572cecf5.js';
|
|
8
8
|
import './handleFetch-a844cac1.js';
|