@zonos/elements 1.3.163 → 1.3.164
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-934a8aef.js → cart-51536404.js} +7 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-dddeb76e.js → paypal-d15299be.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +4 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- 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-empty-state-payment_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -1
- package/dist/collection/components/store/hello/localization.js +7 -1
- package/dist/esm/{cart-41bdd9fb.js → cart-c98b72a5.js} +7 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-c81fb5ee.js → paypal-64f0e379.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +4 -3
- package/dist/esm/zonos-controller.entry.js +1 -1
- 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-empty-state-payment_4.entry.js +2 -2
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/{cart-41bdd9fb.js → cart-c98b72a5.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-c81fb5ee.js → paypal-64f0e379.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.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-empty-state-payment_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-language-select_2.entry.js +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-28a062f3.entry.js → p-000602f9.entry.js} +1 -1
- package/dist/zonos-elements/{p-a9a29cf6.system.js → p-0376ca85.system.js} +1 -1
- package/dist/zonos-elements/{p-d9940c47.system.entry.js → p-054a2257.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e300d1ed.entry.js → p-0b05bea8.entry.js} +1 -1
- package/dist/zonos-elements/{p-22e190af.entry.js → p-0dfd0b45.entry.js} +1 -1
- package/dist/zonos-elements/{p-23021792.js → p-1a17b3ef.js} +1 -1
- package/dist/zonos-elements/{p-7c536f5a.system.entry.js → p-25d32c05.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-daa0dcb4.system.entry.js → p-32059b2a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a23fb562.system.entry.js → p-323097dc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-15d4d606.system.js → p-41447a72.system.js} +1 -1
- package/dist/zonos-elements/{p-7cb5e4b8.entry.js → p-42d6ec3b.entry.js} +1 -1
- package/dist/zonos-elements/{p-0cee00ae.system.js → p-449e5921.system.js} +1 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
- package/dist/zonos-elements/{p-9cbe0e06.system.entry.js → p-582c2da5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e611b266.system.entry.js → p-63c6d77e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2f6bbd3b.entry.js → p-717a54c5.entry.js} +1 -1
- package/dist/zonos-elements/{p-bbc11b58.entry.js → p-8d520fcc.entry.js} +1 -1
- package/dist/zonos-elements/{p-fb7b12af.entry.js → p-a82b1632.entry.js} +1 -1
- package/dist/zonos-elements/{p-a0efb02e.js → p-ae156715.js} +1 -1
- package/dist/zonos-elements/{p-e6bbea1e.system.entry.js → p-b74441b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6bbdc759.system.entry.js → p-b8ef4465.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f06559c1.entry.js → p-c5ee0895.entry.js} +1 -1
- package/dist/zonos-elements/{p-52bfe2bc.system.entry.js → p-c7def16c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-983c8c5f.entry.js → p-d8a738ff.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b76c844.system.entry.js → p-fab63f6b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fb7e3be0.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-1921fe51.entry.js +0 -1
|
@@ -10205,11 +10205,17 @@ const addInternationalHideClass = () => {
|
|
|
10205
10205
|
document.body.classList.remove('z-intl');
|
|
10206
10206
|
}
|
|
10207
10207
|
};
|
|
10208
|
+
const getValidCountryCode = (countryCode) => {
|
|
10209
|
+
if (countryCode === 'UK') {
|
|
10210
|
+
return 'GB';
|
|
10211
|
+
}
|
|
10212
|
+
return countryCode;
|
|
10213
|
+
};
|
|
10208
10214
|
const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
10209
10215
|
var _a, _b;
|
|
10210
10216
|
handleFetch.log(`Updating selected country code to ${newSelectedCountryCode}`);
|
|
10211
10217
|
const isFirstTime = !localizationStore.selectedCountryCode;
|
|
10212
|
-
localizationStore.selectedCountryCode = newSelectedCountryCode;
|
|
10218
|
+
localizationStore.selectedCountryCode = getValidCountryCode(newSelectedCountryCode);
|
|
10213
10219
|
const { selectedCountryCode, shippingZoneCountries } = localizationStore;
|
|
10214
10220
|
const isShippableCountry = !!shippingZoneCountries &&
|
|
10215
10221
|
!!selectedCountryCode &&
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -129,7 +129,7 @@ const getZonosQaUrl = () => {
|
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
131
131
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
132
|
-
const cdnUrl = "https://v1.3.
|
|
132
|
+
const cdnUrl = "https://v1.3.164.js.zonos.com";
|
|
133
133
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
134
134
|
if (!qaUrl &&
|
|
135
135
|
(cdnUrl.includes('test.') ||
|
|
@@ -313,10 +313,10 @@ const zonosLoadUrl = (() => {
|
|
|
313
313
|
}
|
|
314
314
|
return null;
|
|
315
315
|
})();
|
|
316
|
-
const ZONOS_URL = "https://v1.3.
|
|
317
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
318
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
319
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
316
|
+
const ZONOS_URL = "https://v1.3.164.js.zonos.com";
|
|
317
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.164";
|
|
318
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.164";
|
|
319
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.164";
|
|
320
320
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
321
321
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
322
322
|
class Zonos {
|
|
@@ -330,7 +330,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
330
330
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
331
331
|
Zonos._paypalMockResponse = null;
|
|
332
332
|
Zonos.isBigCommerce = false;
|
|
333
|
-
Zonos.releaseDate = "
|
|
333
|
+
Zonos.releaseDate = "1740526031270";
|
|
334
334
|
Zonos.isLegacyCheckout = false;
|
|
335
335
|
Zonos.domain = typeof window !== 'undefined'
|
|
336
336
|
? // domain that embeds the iframe
|
|
@@ -346,7 +346,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
346
346
|
Zonos.isNpm = true;
|
|
347
347
|
Zonos.zonosQaUrl = null;
|
|
348
348
|
Zonos.zonosQaUrlApi = null;
|
|
349
|
-
Zonos.version = `v${"1.3.
|
|
349
|
+
Zonos.version = `v${"1.3.164"}`;
|
|
350
350
|
Zonos.modeAlerted = false;
|
|
351
351
|
Zonos.cartData = null;
|
|
352
352
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-51536404.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-08d92ed7.js');
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-d15299be.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
11
11
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
|
+
const paypal = require('./paypal-d15299be.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
10
10
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
@@ -809,6 +809,7 @@ const ZonosCheckout = class {
|
|
|
809
809
|
const phone = address.customerPhone || '';
|
|
810
810
|
const postal_code = address.customerZip || '';
|
|
811
811
|
const state = address.customerState || '';
|
|
812
|
+
const countryCode = country === 'UK' ? 'GB' : country;
|
|
812
813
|
/**
|
|
813
814
|
* If one of the value is null, no need to preset the default address.
|
|
814
815
|
* City and state are optional (they are not always provided for example Puerto Rico)
|
|
@@ -827,7 +828,7 @@ const ZonosCheckout = class {
|
|
|
827
828
|
this.defaultAddressParams = {
|
|
828
829
|
address: {
|
|
829
830
|
city: city || '',
|
|
830
|
-
country,
|
|
831
|
+
country: countryCode,
|
|
831
832
|
line1,
|
|
832
833
|
line2,
|
|
833
834
|
postal_code,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
9
9
|
require('./isDarkColor-08d92ed7.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-3673a0c2.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-08d92ed7.js');
|
|
@@ -6,9 +6,9 @@ const index = require('./index-2f90486e.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-d184b623.js');
|
|
9
|
-
const cart = require('./cart-
|
|
9
|
+
const cart = require('./cart-51536404.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
11
|
-
const paypal = require('./paypal-
|
|
11
|
+
const paypal = require('./paypal-d15299be.js');
|
|
12
12
|
require('./isDarkColor-08d92ed7.js');
|
|
13
13
|
|
|
14
14
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-51536404.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-51536404.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-7975e4b6.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-3673a0c2.js');
|
|
@@ -600,6 +600,7 @@ export class ZonosCheckout {
|
|
|
600
600
|
const phone = address.customerPhone || '';
|
|
601
601
|
const postal_code = address.customerZip || '';
|
|
602
602
|
const state = address.customerState || '';
|
|
603
|
+
const countryCode = country === 'UK' ? 'GB' : country;
|
|
603
604
|
/**
|
|
604
605
|
* If one of the value is null, no need to preset the default address.
|
|
605
606
|
* City and state are optional (they are not always provided for example Puerto Rico)
|
|
@@ -618,7 +619,7 @@ export class ZonosCheckout {
|
|
|
618
619
|
this.defaultAddressParams = {
|
|
619
620
|
address: {
|
|
620
621
|
city: city || '',
|
|
621
|
-
country,
|
|
622
|
+
country: countryCode,
|
|
622
623
|
line1,
|
|
623
624
|
line2,
|
|
624
625
|
postal_code,
|
|
@@ -127,11 +127,17 @@ const addInternationalHideClass = () => {
|
|
|
127
127
|
document.body.classList.remove('z-intl');
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
+
const getValidCountryCode = (countryCode) => {
|
|
131
|
+
if (countryCode === 'UK') {
|
|
132
|
+
return 'GB';
|
|
133
|
+
}
|
|
134
|
+
return countryCode;
|
|
135
|
+
};
|
|
130
136
|
const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
131
137
|
var _a, _b;
|
|
132
138
|
log(`Updating selected country code to ${newSelectedCountryCode}`);
|
|
133
139
|
const isFirstTime = !localizationStore.selectedCountryCode;
|
|
134
|
-
localizationStore.selectedCountryCode = newSelectedCountryCode;
|
|
140
|
+
localizationStore.selectedCountryCode = getValidCountryCode(newSelectedCountryCode);
|
|
135
141
|
const { selectedCountryCode, shippingZoneCountries } = localizationStore;
|
|
136
142
|
const isShippableCountry = !!shippingZoneCountries &&
|
|
137
143
|
!!selectedCountryCode &&
|
|
@@ -10203,11 +10203,17 @@ const addInternationalHideClass = () => {
|
|
|
10203
10203
|
document.body.classList.remove('z-intl');
|
|
10204
10204
|
}
|
|
10205
10205
|
};
|
|
10206
|
+
const getValidCountryCode = (countryCode) => {
|
|
10207
|
+
if (countryCode === 'UK') {
|
|
10208
|
+
return 'GB';
|
|
10209
|
+
}
|
|
10210
|
+
return countryCode;
|
|
10211
|
+
};
|
|
10206
10212
|
const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
10207
10213
|
var _a, _b;
|
|
10208
10214
|
log(`Updating selected country code to ${newSelectedCountryCode}`);
|
|
10209
10215
|
const isFirstTime = !localizationStore.selectedCountryCode;
|
|
10210
|
-
localizationStore.selectedCountryCode = newSelectedCountryCode;
|
|
10216
|
+
localizationStore.selectedCountryCode = getValidCountryCode(newSelectedCountryCode);
|
|
10211
10217
|
const { selectedCountryCode, shippingZoneCountries } = localizationStore;
|
|
10212
10218
|
const isShippableCountry = !!shippingZoneCountries &&
|
|
10213
10219
|
!!selectedCountryCode &&
|
package/dist/esm/index.js
CHANGED
|
@@ -126,7 +126,7 @@ const getZonosQaUrl = () => {
|
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
128
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
129
|
-
const cdnUrl = "https://v1.3.
|
|
129
|
+
const cdnUrl = "https://v1.3.164.js.zonos.com";
|
|
130
130
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
131
131
|
if (!qaUrl &&
|
|
132
132
|
(cdnUrl.includes('test.') ||
|
|
@@ -310,10 +310,10 @@ const zonosLoadUrl = (() => {
|
|
|
310
310
|
}
|
|
311
311
|
return null;
|
|
312
312
|
})();
|
|
313
|
-
const ZONOS_URL = "https://v1.3.
|
|
314
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
315
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
316
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
313
|
+
const ZONOS_URL = "https://v1.3.164.js.zonos.com";
|
|
314
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.164";
|
|
315
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.164";
|
|
316
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.164";
|
|
317
317
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
318
318
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
319
319
|
class Zonos {
|
|
@@ -327,7 +327,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
327
327
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
328
328
|
Zonos._paypalMockResponse = null;
|
|
329
329
|
Zonos.isBigCommerce = false;
|
|
330
|
-
Zonos.releaseDate = "
|
|
330
|
+
Zonos.releaseDate = "1740526031270";
|
|
331
331
|
Zonos.isLegacyCheckout = false;
|
|
332
332
|
Zonos.domain = typeof window !== 'undefined'
|
|
333
333
|
? // domain that embeds the iframe
|
|
@@ -343,7 +343,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
343
343
|
Zonos.isNpm = true;
|
|
344
344
|
Zonos.zonosQaUrl = null;
|
|
345
345
|
Zonos.zonosQaUrlApi = null;
|
|
346
|
-
Zonos.version = `v${"1.3.
|
|
346
|
+
Zonos.version = `v${"1.3.164"}`;
|
|
347
347
|
Zonos.modeAlerted = false;
|
|
348
348
|
Zonos.cartData = null;
|
|
349
349
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-71d7e02f.js';
|
|
2
|
-
import { F as validateCheckoutSession, f as stripeStore, e as cartStore, z as stripeStoreHandleInventoryCheck, r as translate, x as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { F as validateCheckoutSession, f as stripeStore, e as cartStore, z as stripeStoreHandleInventoryCheck, r as translate, x as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-c98b72a5.js';
|
|
3
3
|
import { h as handleFetch, l as log, b as logError, j as jsonParse } from './handleFetch-b4633675.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-2f59d721.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-d82f06f2.js';
|
|
2
|
-
import { f as stripeStore, V as getFallbackDefaultCountryCode, l as localizationStore, r as translate, e as cartStore } from './cart-
|
|
2
|
+
import { f as stripeStore, V as getFallbackDefaultCountryCode, l as localizationStore, r as translate, e as cartStore } from './cart-c98b72a5.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { b as logError, l as log } from './handleFetch-b4633675.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-d82f06f2.js';
|
|
2
|
-
import { e as cartStore, E as currencyFormat, r as translate, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, f as stripeStore, C as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, l as localizationStore, x as cartStoreNextStep, R as stripeStoreTranslateAddressToLatin, S as cartStoreUpdateSelectedShippingOption, T as cartStoreGetShippingTransitInfo, U as sortServiceLevelOptionsByAmount } from './cart-
|
|
2
|
+
import { e as cartStore, E as currencyFormat, r as translate, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, f as stripeStore, C as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, l as localizationStore, x as cartStoreNextStep, R as stripeStoreTranslateAddressToLatin, S as cartStoreUpdateSelectedShippingOption, T as cartStoreGetShippingTransitInfo, U as sortServiceLevelOptionsByAmount } from './cart-c98b72a5.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-
|
|
4
|
+
import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-64f0e379.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-71d7e02f.js';
|
|
6
6
|
import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, g as getIsTestMode, d as allLogs, b as logError, a as getIsStagingMode } from './handleFetch-b4633675.js';
|
|
7
7
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-d82f06f2.js';
|
|
2
|
-
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as stripeStoreGetPaymentIntent, o as cartStoreStartCheckoutInterval, t as trackConversionEvent, p as getCheckoutSessionBody, q as cartStoreUpdateToErrorState, r as translate, u as getZCountryUrlParam, v as cartStoreSetCheckoutSession, w as stripeStorePrefetchLandedCost, x as cartStoreNextStep, y as stripeStoreUpdateCheckoutSessionBaseCurrency, z as stripeStoreHandleInventoryCheck, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as localizationStoreOnUpdate, E as currencyFormat } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as stripeStoreGetPaymentIntent, o as cartStoreStartCheckoutInterval, t as trackConversionEvent, p as getCheckoutSessionBody, q as cartStoreUpdateToErrorState, r as translate, u as getZCountryUrlParam, v as cartStoreSetCheckoutSession, w as stripeStorePrefetchLandedCost, x as cartStoreNextStep, y as stripeStoreUpdateCheckoutSessionBaseCurrency, z as stripeStoreHandleInventoryCheck, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as localizationStoreOnUpdate, E as currencyFormat } from './cart-c98b72a5.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-64f0e379.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-71d7e02f.js';
|
|
5
5
|
import { h as handleFetch, l as log, b as logError, s as sendErrorLog, c as getElapsedTime, d as allLogs, g as getIsTestMode, j as jsonParse, a as getIsStagingMode } from './handleFetch-b4633675.js';
|
|
6
6
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
@@ -805,6 +805,7 @@ const ZonosCheckout = class {
|
|
|
805
805
|
const phone = address.customerPhone || '';
|
|
806
806
|
const postal_code = address.customerZip || '';
|
|
807
807
|
const state = address.customerState || '';
|
|
808
|
+
const countryCode = country === 'UK' ? 'GB' : country;
|
|
808
809
|
/**
|
|
809
810
|
* If one of the value is null, no need to preset the default address.
|
|
810
811
|
* City and state are optional (they are not always provided for example Puerto Rico)
|
|
@@ -823,7 +824,7 @@ const ZonosCheckout = class {
|
|
|
823
824
|
this.defaultAddressParams = {
|
|
824
825
|
address: {
|
|
825
826
|
city: city || '',
|
|
826
|
-
country,
|
|
827
|
+
country: countryCode,
|
|
827
828
|
line1,
|
|
828
829
|
line2,
|
|
829
830
|
postal_code,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-d82f06f2.js';
|
|
2
|
-
import { G as isValidSelector, f as stripeStore, H as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { G as isValidSelector, f as stripeStore, H as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-c98b72a5.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-71d7e02f.js';
|
|
4
4
|
import { h as handleFetch, b as logError, l as log } from './handleFetch-b4633675.js';
|
|
5
5
|
import './isDarkColor-2f59d721.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-d82f06f2.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-c98b72a5.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-71d7e02f.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-b4633675.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-d82f06f2.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, r as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, r as translate, l as localizationStore } from './cart-c98b72a5.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-71d7e02f.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-2f59d721.js';
|
|
@@ -2,9 +2,9 @@ import { r as registerInstance, h, H as Host, d as getElement, c as createEvent
|
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-71d7e02f.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-740610fb.js';
|
|
5
|
-
import { f as stripeStore } from './cart-
|
|
5
|
+
import { f as stripeStore } from './cart-c98b72a5.js';
|
|
6
6
|
import { b as logError, l as log } from './handleFetch-b4633675.js';
|
|
7
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
7
|
+
import { d as paypalStoreInitButtons } from './paypal-64f0e379.js';
|
|
8
8
|
import './isDarkColor-2f59d721.js';
|
|
9
9
|
|
|
10
10
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-d82f06f2.js';
|
|
2
|
-
import { r as translate, l as localizationStore, E as currencyFormat } from './cart-
|
|
2
|
+
import { r as translate, l as localizationStore, E as currencyFormat } from './cart-c98b72a5.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-71d7e02f.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-d82f06f2.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-71d7e02f.js';
|
|
3
|
-
import { l as localizationStore, G as isValidSelector, r as translate, u as getZCountryUrlParam, I as setZCountryUrlParam, J as currencyDisplay, K as currencyConvertAndFormat, L as currencyConvert, E as currencyFormat } from './cart-
|
|
3
|
+
import { l as localizationStore, G as isValidSelector, r as translate, u as getZCountryUrlParam, I as setZCountryUrlParam, J as currencyDisplay, K as currencyConvertAndFormat, L as currencyConvert, E as currencyFormat } from './cart-c98b72a5.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { h as handleFetch, b as logError, l as log } from './handleFetch-b4633675.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-d82f06f2.js';
|
|
2
|
-
import { W as localizationStoreUpdateSelectedLocale, r as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { W as localizationStoreUpdateSelectedLocale, r as translate, l as localizationStore } from './cart-c98b72a5.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-71d7e02f.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-b4633675.js';
|