@zonos/elements 1.3.60 → 1.3.62
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-9318a592.js → cart-dee65a87.js} +5 -4
- package/dist/cjs/{createCustomEvent-22ab3823.js → createCustomEvent-b19ee73d.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-c4c5c59c.js → paypal-d4a21b6a.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
- package/dist/cjs/zonos-badge_13.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -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-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/cjs/zonos-notification_3.cjs.entry.js +2 -2
- package/dist/collection/components/store/checkout/cart.js +2 -3
- package/dist/collection/components/utils/hello/getZCountryUrlParam.js +3 -1
- package/dist/esm/{cart-9e089cda.js → cart-a875cea7.js} +5 -4
- package/dist/esm/{createCustomEvent-a7cec0a2.js → createCustomEvent-0ff4506c.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-34af4a06.js → paypal-1eab776e.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +1 -1
- package/dist/esm/zonos-badge_13.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +3 -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-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/zonos-notification_3.entry.js +2 -2
- package/dist/esm-es5/{cart-9e089cda.js → cart-a875cea7.js} +1 -1
- package/dist/esm-es5/{createCustomEvent-a7cec0a2.js → createCustomEvent-0ff4506c.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-34af4a06.js → paypal-1eab776e.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_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-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/esm-es5/zonos-notification_3.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/types/components/store/checkout/cart.d.ts +4 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-5aeab723.js → p-0864b21c.js} +2 -2
- package/dist/zonos-elements/{p-3924ca23.entry.js → p-15b5200b.entry.js} +1 -1
- package/dist/zonos-elements/{p-e7e0755f.system.js → p-27f40576.system.js} +1 -1
- package/dist/zonos-elements/{p-aa8fd7d9.system.entry.js → p-396fd3eb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8edfcbf0.system.entry.js → p-3fbb3f57.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b9a4320.system.js → p-3fd2ef71.system.js} +1 -1
- package/dist/zonos-elements/{p-8d4e78b1.js → p-4a8753ca.js} +1 -1
- package/dist/zonos-elements/{p-2eeb7fc4.system.entry.js → p-5ab7d154.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b3ab9695.system.entry.js → p-5e5045a6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a86d5244.system.entry.js → p-6c05299c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-73e01294.entry.js → p-756d4068.entry.js} +1 -1
- package/dist/zonos-elements/{p-97a99ee5.system.js → p-7c0b5743.system.js} +1 -1
- package/dist/zonos-elements/{p-722bcca3.system.entry.js → p-81ca4089.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bcb129de.system.entry.js → p-8a259a5c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3c1c14c.system.entry.js → p-8d59de18.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e9390710.entry.js → p-944ef745.entry.js} +1 -1
- package/dist/zonos-elements/{p-61bf769f.entry.js → p-9c50823c.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cd7b878.entry.js → p-9fed08ac.entry.js} +1 -1
- package/dist/zonos-elements/{p-2c81d7c0.entry.js → p-a170d7cc.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b951ff8.system.entry.js → p-b1386fff.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe943837.js → p-b7ff0fb5.js} +1 -1
- package/dist/zonos-elements/{p-1ea34c87.system.js → p-bf53c6aa.system.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-5eb27803.entry.js → p-e04581f4.entry.js} +1 -1
- package/dist/zonos-elements/{p-1dcccfc4.entry.js → p-e58e5939.entry.js} +1 -1
- package/dist/zonos-elements/{p-d5bd2da0.system.entry.js → p-e89289ba.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b227910d.entry.js → p-ec4c219a.entry.js} +1 -1
- package/dist/zonos-elements/{p-acae065f.entry.js → p-fbeef2f8.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
|
@@ -7274,7 +7274,9 @@ const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
|
|
|
7274
7274
|
const getZCountryUrlParam = (urlParams) => {
|
|
7275
7275
|
const urlSearchParams = new URLSearchParams(urlParams || window.location.search);
|
|
7276
7276
|
const zCountry = urlSearchParams.get('zCountry');
|
|
7277
|
-
|
|
7277
|
+
// Fallback to legacy 'country'
|
|
7278
|
+
const fallback = urlSearchParams.get('country');
|
|
7279
|
+
return zCountry || fallback;
|
|
7278
7280
|
};
|
|
7279
7281
|
|
|
7280
7282
|
const getLocalization = async () => {
|
|
@@ -8850,7 +8852,6 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
8850
8852
|
cartStore.checkoutSessionId = checkoutSession.id;
|
|
8851
8853
|
};
|
|
8852
8854
|
const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, itemsAmount, landedCostId, }) => {
|
|
8853
|
-
var _a;
|
|
8854
8855
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
8855
8856
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
8856
8857
|
const subtotals = cartStore.selectedLandedCost.subtotals;
|
|
@@ -8858,7 +8859,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
|
|
|
8858
8859
|
handleFetch.log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
|
|
8859
8860
|
}
|
|
8860
8861
|
// update checkout session
|
|
8861
|
-
if (!
|
|
8862
|
+
if (!cartStore.checkoutSessionId) {
|
|
8862
8863
|
handleFetch.logError('Could not update cart total without checkout session id');
|
|
8863
8864
|
return false;
|
|
8864
8865
|
}
|
|
@@ -8866,7 +8867,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
|
|
|
8866
8867
|
adjustmentAmount,
|
|
8867
8868
|
cartId,
|
|
8868
8869
|
currency,
|
|
8869
|
-
id: cartStore.
|
|
8870
|
+
id: cartStore.checkoutSessionId,
|
|
8870
8871
|
itemsAmount,
|
|
8871
8872
|
landedCostId,
|
|
8872
8873
|
presentmentCountryCode: localizationStore.selectedCountryCode,
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -96,7 +96,7 @@ const getZonosQaUrl = () => {
|
|
|
96
96
|
return null;
|
|
97
97
|
}
|
|
98
98
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
99
|
-
const cdnUrl = "https://v1.3.
|
|
99
|
+
const cdnUrl = "https://v1.3.62.js.zonos.com";
|
|
100
100
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
101
101
|
if (!qaUrl &&
|
|
102
102
|
(cdnUrl.includes('test.') ||
|
|
@@ -280,10 +280,10 @@ const zonosLoadUrl = (() => {
|
|
|
280
280
|
}
|
|
281
281
|
return null;
|
|
282
282
|
})();
|
|
283
|
-
const ZONOS_URL = "https://v1.3.
|
|
284
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
285
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
286
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
283
|
+
const ZONOS_URL = "https://v1.3.62.js.zonos.com";
|
|
284
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.62";
|
|
285
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.62";
|
|
286
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.62";
|
|
287
287
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
288
288
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
289
289
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -298,14 +298,14 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
298
298
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
299
299
|
Zonos._paypalMockResponse = null;
|
|
300
300
|
Zonos.isBigCommerce = false;
|
|
301
|
-
Zonos.releaseDate = "
|
|
301
|
+
Zonos.releaseDate = "1727822744968";
|
|
302
302
|
Zonos.isLegacyCheckout = false;
|
|
303
303
|
/**
|
|
304
304
|
* By default, the package will load from npm
|
|
305
305
|
*/
|
|
306
306
|
Zonos.isNpm = true;
|
|
307
307
|
Zonos.zonosQaUrl = null;
|
|
308
|
-
Zonos.version = `v${"1.3.
|
|
308
|
+
Zonos.version = `v${"1.3.62"}`;
|
|
309
309
|
Zonos.modeAlerted = false;
|
|
310
310
|
Zonos.cartData = null;
|
|
311
311
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-dee65a87.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-c0e07666.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-5efc8367.js');
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-dee65a87.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-c0e07666.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
9
|
-
const paypal = require('./paypal-
|
|
10
|
-
const createCustomEvent = require('./createCustomEvent-
|
|
8
|
+
const cart = require('./cart-dee65a87.js');
|
|
9
|
+
const paypal = require('./paypal-d4a21b6a.js');
|
|
10
|
+
const createCustomEvent = require('./createCustomEvent-b19ee73d.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-5a64574c.js');
|
|
12
12
|
const handleFetch = require('./handleFetch-c0e07666.js');
|
|
13
13
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
6
|
+
const cart = require('./cart-dee65a87.js');
|
|
7
|
+
const paypal = require('./paypal-d4a21b6a.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
9
|
-
const createCustomEvent = require('./createCustomEvent-
|
|
9
|
+
const createCustomEvent = require('./createCustomEvent-b19ee73d.js');
|
|
10
10
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-c0e07666.js');
|
|
12
12
|
const classes = require('./classes-b7918f56.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-dee65a87.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-c0e07666.js');
|
|
9
9
|
require('./isDarkColor-5efc8367.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-dee65a87.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-c0e07666.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-dee65a87.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-5efc8367.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-dee65a87.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-a4395972.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-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-dee65a87.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-c0e07666.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-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-dee65a87.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-c0e07666.js');
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-a4395972.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-dee65a87.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-c0e07666.js');
|
|
10
|
-
const paypal = require('./paypal-
|
|
10
|
+
const paypal = require('./paypal-d4a21b6a.js');
|
|
11
11
|
require('./isDarkColor-5efc8367.js');
|
|
12
12
|
require('./getBorderRadius-5a64574c.js');
|
|
13
13
|
|
|
@@ -151,7 +151,6 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
151
151
|
cartStore.checkoutSessionId = checkoutSession.id;
|
|
152
152
|
};
|
|
153
153
|
const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, itemsAmount, landedCostId, }) => {
|
|
154
|
-
var _a;
|
|
155
154
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
156
155
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
157
156
|
const subtotals = cartStore.selectedLandedCost.subtotals;
|
|
@@ -159,7 +158,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
|
|
|
159
158
|
log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
|
|
160
159
|
}
|
|
161
160
|
// update checkout session
|
|
162
|
-
if (!
|
|
161
|
+
if (!cartStore.checkoutSessionId) {
|
|
163
162
|
logError('Could not update cart total without checkout session id');
|
|
164
163
|
return false;
|
|
165
164
|
}
|
|
@@ -167,7 +166,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
|
|
|
167
166
|
adjustmentAmount,
|
|
168
167
|
cartId,
|
|
169
168
|
currency,
|
|
170
|
-
id: cartStore.
|
|
169
|
+
id: cartStore.checkoutSessionId,
|
|
171
170
|
itemsAmount,
|
|
172
171
|
landedCostId,
|
|
173
172
|
presentmentCountryCode: localizationStore.selectedCountryCode,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export const getZCountryUrlParam = (urlParams) => {
|
|
2
2
|
const urlSearchParams = new URLSearchParams(urlParams || window.location.search);
|
|
3
3
|
const zCountry = urlSearchParams.get('zCountry');
|
|
4
|
-
|
|
4
|
+
// Fallback to legacy 'country'
|
|
5
|
+
const fallback = urlSearchParams.get('country');
|
|
6
|
+
return zCountry || fallback;
|
|
5
7
|
};
|
|
@@ -7272,7 +7272,9 @@ const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
|
|
|
7272
7272
|
const getZCountryUrlParam = (urlParams) => {
|
|
7273
7273
|
const urlSearchParams = new URLSearchParams(urlParams || window.location.search);
|
|
7274
7274
|
const zCountry = urlSearchParams.get('zCountry');
|
|
7275
|
-
|
|
7275
|
+
// Fallback to legacy 'country'
|
|
7276
|
+
const fallback = urlSearchParams.get('country');
|
|
7277
|
+
return zCountry || fallback;
|
|
7276
7278
|
};
|
|
7277
7279
|
|
|
7278
7280
|
const getLocalization = async () => {
|
|
@@ -8848,7 +8850,6 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
8848
8850
|
cartStore.checkoutSessionId = checkoutSession.id;
|
|
8849
8851
|
};
|
|
8850
8852
|
const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, itemsAmount, landedCostId, }) => {
|
|
8851
|
-
var _a;
|
|
8852
8853
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
8853
8854
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
8854
8855
|
const subtotals = cartStore.selectedLandedCost.subtotals;
|
|
@@ -8856,7 +8857,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
|
|
|
8856
8857
|
log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
|
|
8857
8858
|
}
|
|
8858
8859
|
// update checkout session
|
|
8859
|
-
if (!
|
|
8860
|
+
if (!cartStore.checkoutSessionId) {
|
|
8860
8861
|
logError('Could not update cart total without checkout session id');
|
|
8861
8862
|
return false;
|
|
8862
8863
|
}
|
|
@@ -8864,7 +8865,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
|
|
|
8864
8865
|
adjustmentAmount,
|
|
8865
8866
|
cartId,
|
|
8866
8867
|
currency,
|
|
8867
|
-
id: cartStore.
|
|
8868
|
+
id: cartStore.checkoutSessionId,
|
|
8868
8869
|
itemsAmount,
|
|
8869
8870
|
landedCostId,
|
|
8870
8871
|
presentmentCountryCode: localizationStore.selectedCountryCode,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as cartStore, l as localizationStore } from './cart-
|
|
1
|
+
import { d as cartStore, l as localizationStore } from './cart-a875cea7.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-0dc7a947.js';
|
|
3
3
|
import { h as handleFetch } from './handleFetch-613fbc00.js';
|
|
4
4
|
|
package/dist/esm/index.js
CHANGED
|
@@ -93,7 +93,7 @@ const getZonosQaUrl = () => {
|
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
95
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
96
|
-
const cdnUrl = "https://v1.3.
|
|
96
|
+
const cdnUrl = "https://v1.3.62.js.zonos.com";
|
|
97
97
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
98
98
|
if (!qaUrl &&
|
|
99
99
|
(cdnUrl.includes('test.') ||
|
|
@@ -277,10 +277,10 @@ const zonosLoadUrl = (() => {
|
|
|
277
277
|
}
|
|
278
278
|
return null;
|
|
279
279
|
})();
|
|
280
|
-
const ZONOS_URL = "https://v1.3.
|
|
281
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
282
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
283
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
280
|
+
const ZONOS_URL = "https://v1.3.62.js.zonos.com";
|
|
281
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.62";
|
|
282
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.62";
|
|
283
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.62";
|
|
284
284
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
285
285
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
286
286
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -295,14 +295,14 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
295
295
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
296
296
|
Zonos._paypalMockResponse = null;
|
|
297
297
|
Zonos.isBigCommerce = false;
|
|
298
|
-
Zonos.releaseDate = "
|
|
298
|
+
Zonos.releaseDate = "1727822744968";
|
|
299
299
|
Zonos.isLegacyCheckout = false;
|
|
300
300
|
/**
|
|
301
301
|
* By default, the package will load from npm
|
|
302
302
|
*/
|
|
303
303
|
Zonos.isNpm = true;
|
|
304
304
|
Zonos.zonosQaUrl = null;
|
|
305
|
-
Zonos.version = `v${"1.3.
|
|
305
|
+
Zonos.version = `v${"1.3.62"}`;
|
|
306
306
|
Zonos.modeAlerted = false;
|
|
307
307
|
Zonos.cartData = null;
|
|
308
308
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-0dc7a947.js';
|
|
2
|
-
import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-a875cea7.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-613fbc00.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-b3afa948.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-86b8247e.js';
|
|
2
|
-
import { j as stripeStore, l as localizationStore, t as translate } from './cart-
|
|
2
|
+
import { j as stripeStore, l as localizationStore, t as translate } from './cart-a875cea7.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError } from './handleFetch-613fbc00.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getAssetPath, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
|
|
2
2
|
import { d as zonosStoreFontFamily, z as zonosStore, g as getZonosStoreTheme } from './zonosStore-0dc7a947.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { d as cartStore, E as currencyFormat, F as cartStoreHasOneEligibleItem, t as translate, v as stripeStoreReset, j as stripeStore, G as stripeStoreRetrievePayment, H as stripeStoreMessageBasedOnStatus, l as localizationStore, I as stripeStoreTranslateAddressToLatin, J as cartStoreUpdateSelectedShippingOption, K as cartStoreGetShippingTransitInfo } from './cart-
|
|
5
|
-
import { s as submitGtag, a as paypalStore, b as paypalStoreReset, c as paypalStoreHasPaypalEnabled, i as isContrastColor } from './paypal-
|
|
6
|
-
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-
|
|
4
|
+
import { d as cartStore, E as currencyFormat, F as cartStoreHasOneEligibleItem, t as translate, v as stripeStoreReset, j as stripeStore, G as stripeStoreRetrievePayment, H as stripeStoreMessageBasedOnStatus, l as localizationStore, I as stripeStoreTranslateAddressToLatin, J as cartStoreUpdateSelectedShippingOption, K as cartStoreGetShippingTransitInfo } from './cart-a875cea7.js';
|
|
5
|
+
import { s as submitGtag, a as paypalStore, b as paypalStoreReset, c as paypalStoreHasPaypalEnabled, i as isContrastColor } from './paypal-1eab776e.js';
|
|
6
|
+
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-0ff4506c.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-cff1e39b.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog } from './handleFetch-613fbc00.js';
|
|
9
9
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as cartStoreSetCheckoutSession, p as stripeStorePrefetchLandedCost, q as cartStoreNextStep, r as stripeStoreHandleInventoryCheck, u as stripeStoreConfirmPayment, v as stripeStoreReset, w as localizationStoreOnUpdate } from './cart-
|
|
3
|
-
import { s as submitGtag, p as paypalInitScript } from './paypal-
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as cartStoreSetCheckoutSession, p as stripeStorePrefetchLandedCost, q as cartStoreNextStep, r as stripeStoreHandleInventoryCheck, u as stripeStoreConfirmPayment, v as stripeStoreReset, w as localizationStoreOnUpdate } from './cart-a875cea7.js';
|
|
3
|
+
import { s as submitGtag, p as paypalInitScript } from './paypal-1eab776e.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
|
|
5
|
-
import { c as createCustomEvent, t as trackConversionEvent, g as getIsTestMode } from './createCustomEvent-
|
|
5
|
+
import { c as createCustomEvent, t as trackConversionEvent, g as getIsTestMode } from './createCustomEvent-0ff4506c.js';
|
|
6
6
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
7
7
|
import { l as log, a as logError, s as sendErrorLog } from './handleFetch-613fbc00.js';
|
|
8
8
|
import { c as classes } from './classes-0d95c529.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { x as isValidSelector, j as stripeStore, y as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { x as isValidSelector, j as stripeStore, y as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-a875cea7.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-613fbc00.js';
|
|
5
5
|
import './isDarkColor-b3afa948.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-a875cea7.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-613fbc00.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-a875cea7.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-b3afa948.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { t as translate, l as localizationStore, E as currencyFormat } from './cart-
|
|
2
|
+
import { t as translate, l as localizationStore, E as currencyFormat } from './cart-a875cea7.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-0dc7a947.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-86b8247e.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-0dc7a947.js';
|
|
3
|
-
import { l as localizationStore, x as isValidSelector, t as translate, z as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-
|
|
3
|
+
import { l as localizationStore, x as isValidSelector, t as translate, z as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-a875cea7.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-613fbc00.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-86b8247e.js';
|
|
2
|
-
import { L as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { L as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-a875cea7.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-613fbc00.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { j as stripeStore } from './cart-
|
|
4
|
+
import { j as stripeStore } from './cart-a875cea7.js';
|
|
5
5
|
import { a as logError, l as log } from './handleFetch-613fbc00.js';
|
|
6
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
6
|
+
import { d as paypalStoreInitButtons } from './paypal-1eab776e.js';
|
|
7
7
|
import './isDarkColor-b3afa948.js';
|
|
8
8
|
import './getBorderRadius-cff1e39b.js';
|
|
9
9
|
|