@zonos/elements 1.3.50 → 1.3.51
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-688d674d.js → cart-546d1602.js} +7 -2
- package/dist/cjs/{createCustomEvent-01bacaea.js → createCustomEvent-9b91480b.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-ce1516ba.js → paypal-83f49f9a.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_12.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/utils/api/triggerBuildLandedCost.js +2 -2
- package/dist/collection/components/utils/handleFetch.js +6 -1
- package/dist/esm/{cart-4f300fcb.js → cart-51529af2.js} +7 -2
- package/dist/esm/{createCustomEvent-c5ed9070.js → createCustomEvent-b8bbdf5e.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-70caf283.js → paypal-905325d0.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +1 -1
- package/dist/esm/zonos-cart-items_12.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-4f300fcb.js → cart-51529af2.js} +1 -1
- package/dist/esm-es5/{createCustomEvent-c5ed9070.js → createCustomEvent-b8bbdf5e.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-70caf283.js → paypal-905325d0.js} +1 -1
- package/dist/esm-es5/zonos-address_8.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-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/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-d1cd0a5f.system.entry.js → p-00100b17.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-595d406e.entry.js → p-101c41bf.entry.js} +1 -1
- package/dist/zonos-elements/{p-322600aa.system.entry.js → p-1828a4ff.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-31905b60.system.js → p-2c323311.system.js} +1 -1
- package/dist/zonos-elements/{p-d709ad28.system.entry.js → p-3c4eec63.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5beccdce.system.entry.js → p-47945026.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-40d52dd6.system.entry.js → p-496e040f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-27f2e8af.system.entry.js → p-4e77ed65.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4849604d.entry.js → p-58d9803d.entry.js} +1 -1
- package/dist/zonos-elements/{p-e7e73693.system.entry.js → p-59e85369.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe198a6c.entry.js → p-5e56828a.entry.js} +1 -1
- package/dist/zonos-elements/{p-22e8d4ad.system.entry.js → p-6b42fa1b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ec31cd17.system.entry.js → p-8473f99a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1f2db2ff.entry.js → p-8b8ef484.entry.js} +1 -1
- package/dist/zonos-elements/{p-480a6094.entry.js → p-9a0401fd.entry.js} +1 -1
- package/dist/zonos-elements/{p-1719bedd.entry.js → p-9e976332.entry.js} +1 -1
- package/dist/zonos-elements/{p-124e3426.js → p-aa5d669b.js} +1 -1
- package/dist/zonos-elements/{p-8af4a9e7.system.entry.js → p-b1a8b874.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-00f219bd.entry.js → p-b57d24f2.entry.js} +1 -1
- package/dist/zonos-elements/{p-4452dddc.entry.js → p-ba0289f9.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-ceb8b836.system.js → p-c89859cf.system.js} +2 -2
- package/dist/zonos-elements/p-c8a3303b.js +1 -0
- package/dist/zonos-elements/{p-a67578ae.entry.js → p-cc7a4fca.entry.js} +1 -1
- package/dist/zonos-elements/{p-2018969a.js → p-d413cd13.js} +1 -1
- package/dist/zonos-elements/{p-81540fd6.system.js → p-e758ec31.system.js} +1 -1
- package/dist/zonos-elements/{p-6ab615e6.system.js → p-fcfde531.system.js} +1 -1
- package/dist/zonos-elements/{p-89b1f4a5.entry.js → p-ffd76226.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +2 -1
- package/dist/zonos-elements/p-05dff37f.js +0 -1
|
@@ -7365,8 +7365,13 @@ const handleRequest = async ({ basePathType, options, path, }) => {
|
|
|
7365
7365
|
};
|
|
7366
7366
|
}
|
|
7367
7367
|
};
|
|
7368
|
-
const handleRequestWithFallback = async ({ basePathType, options, path, }) => {
|
|
7368
|
+
const handleRequestWithFallback = async ({ basePathType: _basePathType, options, path, }) => {
|
|
7369
7369
|
var _a, _b;
|
|
7370
|
+
// use vercel API if the path is `/api/bigcommerce`
|
|
7371
|
+
const isBigcommerceEndpoint = path.startsWith('/api/bigcommerce');
|
|
7372
|
+
const basePathType = isBigcommerceEndpoint
|
|
7373
|
+
? 'vercel'
|
|
7374
|
+
: _basePathType;
|
|
7370
7375
|
const _c = await handleRequest({
|
|
7371
7376
|
basePathType,
|
|
7372
7377
|
options,
|
|
@@ -8109,7 +8114,7 @@ const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
8109
8114
|
checkoutSessionId: data.checkoutSessionId,
|
|
8110
8115
|
contact: data.contact,
|
|
8111
8116
|
shippingAddress: data.shippingAddress,
|
|
8112
|
-
zonosApiRoute:
|
|
8117
|
+
zonosApiRoute: fallbackApiList['vercel'],
|
|
8113
8118
|
});
|
|
8114
8119
|
if (!landedCost || ((_a = landedCost.errors) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
8115
8120
|
throw new Error(`Failed to build landed cost: ${((_c = (_b = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) || 'Unknown error'}`);
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
|
|
|
94
94
|
return null;
|
|
95
95
|
}
|
|
96
96
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
97
|
-
const cdnUrl = "https://v1.3.
|
|
97
|
+
const cdnUrl = "https://v1.3.51.js.zonos.com";
|
|
98
98
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
99
99
|
if (!qaUrl &&
|
|
100
100
|
(cdnUrl.includes('test.') ||
|
|
@@ -268,10 +268,10 @@ const zonosLoadUrl = (() => {
|
|
|
268
268
|
}
|
|
269
269
|
return null;
|
|
270
270
|
})();
|
|
271
|
-
const ZONOS_URL = "https://v1.3.
|
|
272
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
273
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
274
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
271
|
+
const ZONOS_URL = "https://v1.3.51.js.zonos.com";
|
|
272
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.51";
|
|
273
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.51";
|
|
274
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.51";
|
|
275
275
|
const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
|
|
276
276
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
277
277
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
@@ -287,13 +287,13 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
287
287
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
288
288
|
Zonos._paypalMockResponse = null;
|
|
289
289
|
Zonos.isBigCommerce = false;
|
|
290
|
-
Zonos.releaseDate = "
|
|
290
|
+
Zonos.releaseDate = "1726523859808";
|
|
291
291
|
/**
|
|
292
292
|
* By default, the package will load from npm
|
|
293
293
|
*/
|
|
294
294
|
Zonos.isNpm = true;
|
|
295
295
|
Zonos.zonosQaUrl = null;
|
|
296
|
-
Zonos.version = `v${"1.3.
|
|
296
|
+
Zonos.version = `v${"1.3.51"}`;
|
|
297
297
|
Zonos.modeAlerted = false;
|
|
298
298
|
Zonos.tempCartData = null;
|
|
299
299
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-546d1602.js');
|
|
5
5
|
const isDarkColor = require('./isDarkColor-7a056d05.js');
|
|
6
6
|
const logError = require('./logError-4e2f2020.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-546d1602.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const logError = require('./logError-4e2f2020.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
@@ -3,11 +3,11 @@
|
|
|
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-546d1602.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-83f49f9a.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
10
|
-
const createCustomEvent = require('./createCustomEvent-
|
|
10
|
+
const createCustomEvent = require('./createCustomEvent-9b91480b.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-a6a3b35e.js');
|
|
12
12
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
13
13
|
const ILanguage = require('./ILanguage-98b04442.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-546d1602.js');
|
|
7
|
+
const paypal = require('./paypal-83f49f9a.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
9
|
-
const createCustomEvent = require('./createCustomEvent-
|
|
9
|
+
const createCustomEvent = require('./createCustomEvent-9b91480b.js');
|
|
10
10
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
11
11
|
const logError = require('./logError-4e2f2020.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-546d1602.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
8
8
|
const logError = require('./logError-4e2f2020.js');
|
|
9
9
|
require('./isDarkColor-7a056d05.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-546d1602.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./logError-4e2f2020.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-546d1602.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-7a056d05.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-546d1602.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-67139f0e.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-67139f0e.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-546d1602.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const logError = require('./logError-4e2f2020.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-546d1602.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./logError-4e2f2020.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-67139f0e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-546d1602.js');
|
|
9
9
|
const logError = require('./logError-4e2f2020.js');
|
|
10
|
-
const paypal = require('./paypal-
|
|
10
|
+
const paypal = require('./paypal-83f49f9a.js');
|
|
11
11
|
require('./isDarkColor-7a056d05.js');
|
|
12
12
|
require('./getBorderRadius-a6a3b35e.js');
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { prepCalculateLandedCost } from "./prepCalculateLandedCost";
|
|
2
|
-
import {
|
|
2
|
+
import { fallbackApiList } from "../getNextFallbackApi";
|
|
3
3
|
import { handleFetch } from "../handleFetch";
|
|
4
4
|
export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
5
5
|
var _a, _b, _c, _d;
|
|
@@ -10,7 +10,7 @@ export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
10
10
|
checkoutSessionId: data.checkoutSessionId,
|
|
11
11
|
contact: data.contact,
|
|
12
12
|
shippingAddress: data.shippingAddress,
|
|
13
|
-
zonosApiRoute:
|
|
13
|
+
zonosApiRoute: fallbackApiList['vercel'],
|
|
14
14
|
});
|
|
15
15
|
if (!landedCost || ((_a = landedCost.errors) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
16
16
|
throw new Error(`Failed to build landed cost: ${((_c = (_b = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) || 'Unknown error'}`);
|
|
@@ -117,8 +117,13 @@ const handleRequest = async ({ basePathType, options, path, }) => {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
const handleRequestWithFallback = async ({ basePathType, options, path, }) => {
|
|
120
|
+
const handleRequestWithFallback = async ({ basePathType: _basePathType, options, path, }) => {
|
|
121
121
|
var _a, _b;
|
|
122
|
+
// use vercel API if the path is `/api/bigcommerce`
|
|
123
|
+
const isBigcommerceEndpoint = path.startsWith('/api/bigcommerce');
|
|
124
|
+
const basePathType = isBigcommerceEndpoint
|
|
125
|
+
? 'vercel'
|
|
126
|
+
: _basePathType;
|
|
122
127
|
const _c = await handleRequest({
|
|
123
128
|
basePathType,
|
|
124
129
|
options,
|
|
@@ -7363,8 +7363,13 @@ const handleRequest = async ({ basePathType, options, path, }) => {
|
|
|
7363
7363
|
};
|
|
7364
7364
|
}
|
|
7365
7365
|
};
|
|
7366
|
-
const handleRequestWithFallback = async ({ basePathType, options, path, }) => {
|
|
7366
|
+
const handleRequestWithFallback = async ({ basePathType: _basePathType, options, path, }) => {
|
|
7367
7367
|
var _a, _b;
|
|
7368
|
+
// use vercel API if the path is `/api/bigcommerce`
|
|
7369
|
+
const isBigcommerceEndpoint = path.startsWith('/api/bigcommerce');
|
|
7370
|
+
const basePathType = isBigcommerceEndpoint
|
|
7371
|
+
? 'vercel'
|
|
7372
|
+
: _basePathType;
|
|
7368
7373
|
const _c = await handleRequest({
|
|
7369
7374
|
basePathType,
|
|
7370
7375
|
options,
|
|
@@ -8107,7 +8112,7 @@ const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
8107
8112
|
checkoutSessionId: data.checkoutSessionId,
|
|
8108
8113
|
contact: data.contact,
|
|
8109
8114
|
shippingAddress: data.shippingAddress,
|
|
8110
|
-
zonosApiRoute:
|
|
8115
|
+
zonosApiRoute: fallbackApiList['vercel'],
|
|
8111
8116
|
});
|
|
8112
8117
|
if (!landedCost || ((_a = landedCost.errors) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
8113
8118
|
throw new Error(`Failed to build landed cost: ${((_c = (_b = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) || 'Unknown error'}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as handleFetch, e as cartStore, l as localizationStore } from './cart-
|
|
1
|
+
import { x as handleFetch, e as cartStore, l as localizationStore } from './cart-51529af2.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-473f4654.js';
|
|
3
3
|
|
|
4
4
|
const trackConversionEvent = async (eventName, metadata) => {
|
package/dist/esm/index.js
CHANGED
|
@@ -90,7 +90,7 @@ const getZonosQaUrl = () => {
|
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
92
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
93
|
-
const cdnUrl = "https://v1.3.
|
|
93
|
+
const cdnUrl = "https://v1.3.51.js.zonos.com";
|
|
94
94
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
95
95
|
if (!qaUrl &&
|
|
96
96
|
(cdnUrl.includes('test.') ||
|
|
@@ -264,10 +264,10 @@ const zonosLoadUrl = (() => {
|
|
|
264
264
|
}
|
|
265
265
|
return null;
|
|
266
266
|
})();
|
|
267
|
-
const ZONOS_URL = "https://v1.3.
|
|
268
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
269
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
270
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
267
|
+
const ZONOS_URL = "https://v1.3.51.js.zonos.com";
|
|
268
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.51";
|
|
269
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.51";
|
|
270
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.51";
|
|
271
271
|
const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
|
|
272
272
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
273
273
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
@@ -283,13 +283,13 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
283
283
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
284
284
|
Zonos._paypalMockResponse = null;
|
|
285
285
|
Zonos.isBigCommerce = false;
|
|
286
|
-
Zonos.releaseDate = "
|
|
286
|
+
Zonos.releaseDate = "1726523859808";
|
|
287
287
|
/**
|
|
288
288
|
* By default, the package will load from npm
|
|
289
289
|
*/
|
|
290
290
|
Zonos.isNpm = true;
|
|
291
291
|
Zonos.zonosQaUrl = null;
|
|
292
|
-
Zonos.version = `v${"1.3.
|
|
292
|
+
Zonos.version = `v${"1.3.51"}`;
|
|
293
293
|
Zonos.modeAlerted = false;
|
|
294
294
|
Zonos.tempCartData = null;
|
|
295
295
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-473f4654.js';
|
|
2
|
-
import { x as handleFetch, e as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, j as cartStoreClearCheckoutInterval, y as jsonParse } from './cart-
|
|
2
|
+
import { x as handleFetch, e as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, j as cartStoreClearCheckoutInterval, y as jsonParse } from './cart-51529af2.js';
|
|
3
3
|
import { t as tinycolor } from './isDarkColor-c927f77d.js';
|
|
4
4
|
import { l as log, a as logError } from './logError-c456c092.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 { k as stripeStore, l as localizationStore, t as translate } from './cart-
|
|
2
|
+
import { k as stripeStore, l as localizationStore, t as translate } from './cart-51529af2.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError } from './logError-c456c092.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { e as cartStore, G as currencyFormat, H as cartStoreHasOneEligibleItem, t as translate, x as handleFetch, v as stripeStoreReset, c as sendErrorLog, k as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, l as localizationStore, K as stripeStoreTranslateAddressToLatin, L as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo } from './cart-
|
|
2
|
+
import { e as cartStore, G as currencyFormat, H as cartStoreHasOneEligibleItem, t as translate, x as handleFetch, v as stripeStoreReset, c as sendErrorLog, k as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, l as localizationStore, K as stripeStoreTranslateAddressToLatin, L as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo } from './cart-51529af2.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, a as paypalStore, b as paypalStoreReset, c as paypalStoreHasPaypalEnabled, i as isContrastColor } from './paypal-
|
|
4
|
+
import { s as submitGtag, a as paypalStore, b as paypalStoreReset, c as paypalStoreHasPaypalEnabled, i as isContrastColor } from './paypal-905325d0.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-473f4654.js';
|
|
6
|
-
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-
|
|
6
|
+
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-b8bbdf5e.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-23398fc6.js';
|
|
8
8
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
9
9
|
import { l as languages } from './ILanguage-cd6acb72.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 sendErrorLog, d as stripeStoreSaveDomesticShippingSession, i as initStripeElements, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStore, m as stripeStoreInitCheckoutSession, n as cartStoreStartCheckoutInterval, o as cartStoreUpdateToErrorState, t as translate, 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 sendErrorLog, d as stripeStoreSaveDomesticShippingSession, i as initStripeElements, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStore, m as stripeStoreInitCheckoutSession, n as cartStoreStartCheckoutInterval, o as cartStoreUpdateToErrorState, t as translate, p as stripeStorePrefetchLandedCost, q as cartStoreNextStep, r as stripeStoreHandleInventoryCheck, u as stripeStoreConfirmPayment, v as stripeStoreReset, w as localizationStoreOnUpdate } from './cart-51529af2.js';
|
|
3
|
+
import { s as submitGtag, p as paypalInitScript } from './paypal-905325d0.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-473f4654.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-b8bbdf5e.js';
|
|
6
6
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
7
7
|
import { l as log, a as logError } from './logError-c456c092.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 handleFetch, z as isValidSelector, k as stripeStore, A as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { x as handleFetch, z as isValidSelector, k as stripeStore, A as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-51529af2.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-473f4654.js';
|
|
4
4
|
import { a as logError, l as log } from './logError-c456c092.js';
|
|
5
5
|
import './isDarkColor-c927f77d.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-51529af2.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-473f4654.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './logError-c456c092.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-51529af2.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-473f4654.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-c927f77d.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, G as currencyFormat } from './cart-
|
|
2
|
+
import { t as translate, l as localizationStore, G as currencyFormat } from './cart-51529af2.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-473f4654.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-473f4654.js';
|
|
3
|
-
import { x as handleFetch, l as localizationStore, z as isValidSelector, t as translate, B as getZCountryUrlParam, C as setZCountryUrlParam, D as currencyDisplay, E as currencyConvertAndFormat, F as currencyConvert, G as currencyFormat } from './cart-
|
|
3
|
+
import { x as handleFetch, l as localizationStore, z as isValidSelector, t as translate, B as getZCountryUrlParam, C as setZCountryUrlParam, D as currencyDisplay, E as currencyConvertAndFormat, F as currencyConvert, G as currencyFormat } from './cart-51529af2.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { a as logError, l as log } from './logError-c456c092.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 { N as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { N as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-51529af2.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-473f4654.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './logError-c456c092.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-473f4654.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { k as stripeStore } from './cart-
|
|
4
|
+
import { k as stripeStore } from './cart-51529af2.js';
|
|
5
5
|
import { a as logError, l as log } from './logError-c456c092.js';
|
|
6
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
6
|
+
import { d as paypalStoreInitButtons } from './paypal-905325d0.js';
|
|
7
7
|
import './isDarkColor-c927f77d.js';
|
|
8
8
|
import './getBorderRadius-23398fc6.js';
|
|
9
9
|
|