@zonos/elements 1.3.43 → 1.3.44
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-558e4d21.js → cart-89b4f62d.js} +7 -14
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{paypal-276d8f92.js → paypal-1a1882c4.js} +1 -1
- package/dist/cjs/{sendErrorLog-f914a34b.js → sendErrorLog-a966a8c1.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/store/hello/localization.js +7 -14
- package/dist/esm/{cart-c62e41b5.js → cart-9f40efd7.js} +7 -14
- package/dist/esm/index.js +6 -6
- package/dist/esm/{paypal-28d21865.js → paypal-f4bb6ce7.js} +1 -1
- package/dist/esm/{sendErrorLog-af1cd4bd.js → sendErrorLog-aea606c0.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-c62e41b5.js → cart-9f40efd7.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-28d21865.js → paypal-f4bb6ce7.js} +1 -1
- package/dist/esm-es5/{sendErrorLog-af1cd4bd.js → sendErrorLog-aea606c0.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.d.ts +1 -18
- 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/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/types/ICountryJson.d.ts +1 -19
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-e88d33a6.system.js → p-0641784b.system.js} +1 -1
- package/dist/zonos-elements/{p-ceb9be2b.entry.js → p-09988f34.entry.js} +1 -1
- package/dist/zonos-elements/{p-4d5cafb1.system.entry.js → p-0bfe455c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-622cd68a.entry.js → p-21d07dda.entry.js} +1 -1
- package/dist/zonos-elements/{p-7ab0cfbf.system.js → p-29f4cce5.system.js} +1 -1
- package/dist/zonos-elements/{p-eadd9525.system.entry.js → p-2d01b8e6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-01961795.system.entry.js → p-2e12d178.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c887765b.js → p-3490d40f.js} +1 -1
- package/dist/zonos-elements/{p-387bc4f0.system.entry.js → p-37c9fdd2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-89c9cd2d.system.entry.js → p-4204ccf9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e9ca72b.system.js → p-43d3cafd.system.js} +1 -1
- package/dist/zonos-elements/{p-8855805d.entry.js → p-567b457b.entry.js} +1 -1
- package/dist/zonos-elements/{p-21b38377.entry.js → p-578f42c1.entry.js} +1 -1
- package/dist/zonos-elements/{p-437fd543.system.entry.js → p-5845029a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0edd8829.system.js → p-6f759c76.system.js} +1 -1
- package/dist/zonos-elements/{p-71815183.entry.js → p-744180f1.entry.js} +1 -1
- package/dist/zonos-elements/{p-695fdbca.entry.js → p-76291114.entry.js} +1 -1
- package/dist/zonos-elements/{p-e68503df.js → p-7b8099ed.js} +1 -1
- package/dist/zonos-elements/{p-75a6d31d.entry.js → p-8618e185.entry.js} +1 -1
- package/dist/zonos-elements/{p-d027eef2.system.entry.js → p-8630168f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2a655e55.entry.js → p-8bf1af28.entry.js} +1 -1
- package/dist/zonos-elements/{p-f97d6d55.entry.js → p-9aef3a35.entry.js} +1 -1
- package/dist/zonos-elements/{p-6a3e8101.system.entry.js → p-acf9a97e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3754f86b.system.entry.js → p-aee29731.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-77de5f08.system.entry.js → p-c10099bd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-4fb3cbad.entry.js → p-c7952400.entry.js} +1 -1
- package/dist/zonos-elements/{p-dba42d88.js → p-d99e58f2.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
|
@@ -7767,28 +7767,21 @@ const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
|
7767
7767
|
}
|
|
7768
7768
|
};
|
|
7769
7769
|
const initHelloCountryList = (allCountries) => {
|
|
7770
|
-
const
|
|
7770
|
+
const showCountryList = zonosStore.zonosStore.helloSettings.showCountryList;
|
|
7771
7771
|
const hellCountryList = localizationStore.shippingZoneCountries;
|
|
7772
|
-
if (!
|
|
7772
|
+
if (!showCountryList || showCountryList === 'ONLY_SHIPPABLE') {
|
|
7773
7773
|
// just use the shipping zone countries
|
|
7774
7774
|
localizationStore.helloCountryList = hellCountryList;
|
|
7775
7775
|
return;
|
|
7776
7776
|
}
|
|
7777
|
-
if (
|
|
7778
|
-
|
|
7779
|
-
localizationStore.helloCountryList = Object.entries(allCountries || {}).reduce((current, [countryCode, countryInfo]) => {
|
|
7780
|
-
const isActive = countryInfo.active;
|
|
7781
|
-
if (!isActive) {
|
|
7782
|
-
return current;
|
|
7783
|
-
}
|
|
7784
|
-
return Object.assign(Object.assign({}, current), { [countryCode]: countryInfo });
|
|
7785
|
-
}, {});
|
|
7777
|
+
if (showCountryList === 'ALL') {
|
|
7778
|
+
localizationStore.helloCountryList = allCountries;
|
|
7786
7779
|
return;
|
|
7787
7780
|
}
|
|
7788
7781
|
// get all active countries in the showCountryList
|
|
7789
|
-
localizationStore.helloCountryList =
|
|
7782
|
+
localizationStore.helloCountryList = showCountryList.reduce((acc, countryCode) => {
|
|
7790
7783
|
const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
|
|
7791
|
-
return countryInfo
|
|
7784
|
+
return countryInfo
|
|
7792
7785
|
? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
7793
7786
|
}, {});
|
|
7794
7787
|
};
|
|
@@ -7798,7 +7791,7 @@ const initLocalizationStore = async () => {
|
|
|
7798
7791
|
// Filter countries to only include countries in the shipping zone
|
|
7799
7792
|
const filteredCountries = shippingZoneCountries === null || shippingZoneCountries === void 0 ? void 0 : shippingZoneCountries.reduce((acc, countryCode) => {
|
|
7800
7793
|
const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
|
|
7801
|
-
return countryInfo
|
|
7794
|
+
return countryInfo
|
|
7802
7795
|
? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
7803
7796
|
}, {});
|
|
7804
7797
|
localizationStore.shippingZoneCountries = filteredCountries || null;
|
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.44.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 && cdnUrl.includes('test.')) {
|
|
100
100
|
return cdnUrl;
|
|
@@ -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.44.js.zonos.com";
|
|
268
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.44";
|
|
269
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.44";
|
|
270
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.44";
|
|
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';
|
|
@@ -288,7 +288,7 @@ Zonos.isBigCommerce = false;
|
|
|
288
288
|
*/
|
|
289
289
|
Zonos.isNpm = true;
|
|
290
290
|
Zonos.zonosQaUrl = null;
|
|
291
|
-
Zonos.version = `v${"1.3.
|
|
291
|
+
Zonos.version = `v${"1.3.44"}`;
|
|
292
292
|
Zonos.modeAlerted = false;
|
|
293
293
|
Zonos.tempCartData = null;
|
|
294
294
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-56401fdb.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-89b4f62d.js');
|
|
5
5
|
const isDarkColor = require('./isDarkColor-4eb96a1e.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-89b4f62d.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-89b4f62d.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-1a1882c4.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-56401fdb.js');
|
|
10
|
-
const sendErrorLog = require('./sendErrorLog-
|
|
10
|
+
const sendErrorLog = require('./sendErrorLog-a966a8c1.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-4413e191.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-89b4f62d.js');
|
|
7
|
+
const paypal = require('./paypal-1a1882c4.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-56401fdb.js');
|
|
9
|
-
const sendErrorLog = require('./sendErrorLog-
|
|
9
|
+
const sendErrorLog = require('./sendErrorLog-a966a8c1.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-89b4f62d.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-56401fdb.js');
|
|
8
8
|
const logError = require('./logError-4e2f2020.js');
|
|
9
9
|
require('./isDarkColor-4eb96a1e.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-89b4f62d.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-56401fdb.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-89b4f62d.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-56401fdb.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-4eb96a1e.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-89b4f62d.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-56401fdb.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-56401fdb.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-89b4f62d.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-89b4f62d.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-56401fdb.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-56401fdb.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-89b4f62d.js');
|
|
9
9
|
const logError = require('./logError-4e2f2020.js');
|
|
10
|
-
const paypal = require('./paypal-
|
|
10
|
+
const paypal = require('./paypal-1a1882c4.js');
|
|
11
11
|
require('./isDarkColor-4eb96a1e.js');
|
|
12
12
|
require('./getBorderRadius-4413e191.js');
|
|
13
13
|
|
|
@@ -145,28 +145,21 @@ const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
const initHelloCountryList = (allCountries) => {
|
|
148
|
-
const
|
|
148
|
+
const showCountryList = zonosStore.helloSettings.showCountryList;
|
|
149
149
|
const hellCountryList = localizationStore.shippingZoneCountries;
|
|
150
|
-
if (!
|
|
150
|
+
if (!showCountryList || showCountryList === 'ONLY_SHIPPABLE') {
|
|
151
151
|
// just use the shipping zone countries
|
|
152
152
|
localizationStore.helloCountryList = hellCountryList;
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
localizationStore.helloCountryList = Object.entries(allCountries || {}).reduce((current, [countryCode, countryInfo]) => {
|
|
158
|
-
const isActive = countryInfo.active;
|
|
159
|
-
if (!isActive) {
|
|
160
|
-
return current;
|
|
161
|
-
}
|
|
162
|
-
return Object.assign(Object.assign({}, current), { [countryCode]: countryInfo });
|
|
163
|
-
}, {});
|
|
155
|
+
if (showCountryList === 'ALL') {
|
|
156
|
+
localizationStore.helloCountryList = allCountries;
|
|
164
157
|
return;
|
|
165
158
|
}
|
|
166
159
|
// get all active countries in the showCountryList
|
|
167
|
-
localizationStore.helloCountryList =
|
|
160
|
+
localizationStore.helloCountryList = showCountryList.reduce((acc, countryCode) => {
|
|
168
161
|
const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
|
|
169
|
-
return countryInfo
|
|
162
|
+
return countryInfo
|
|
170
163
|
? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
171
164
|
}, {});
|
|
172
165
|
};
|
|
@@ -176,7 +169,7 @@ const initLocalizationStore = async () => {
|
|
|
176
169
|
// Filter countries to only include countries in the shipping zone
|
|
177
170
|
const filteredCountries = shippingZoneCountries === null || shippingZoneCountries === void 0 ? void 0 : shippingZoneCountries.reduce((acc, countryCode) => {
|
|
178
171
|
const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
|
|
179
|
-
return countryInfo
|
|
172
|
+
return countryInfo
|
|
180
173
|
? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
181
174
|
}, {});
|
|
182
175
|
localizationStore.shippingZoneCountries = filteredCountries || null;
|
|
@@ -7765,28 +7765,21 @@ const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
|
7765
7765
|
}
|
|
7766
7766
|
};
|
|
7767
7767
|
const initHelloCountryList = (allCountries) => {
|
|
7768
|
-
const
|
|
7768
|
+
const showCountryList = zonosStore.helloSettings.showCountryList;
|
|
7769
7769
|
const hellCountryList = localizationStore.shippingZoneCountries;
|
|
7770
|
-
if (!
|
|
7770
|
+
if (!showCountryList || showCountryList === 'ONLY_SHIPPABLE') {
|
|
7771
7771
|
// just use the shipping zone countries
|
|
7772
7772
|
localizationStore.helloCountryList = hellCountryList;
|
|
7773
7773
|
return;
|
|
7774
7774
|
}
|
|
7775
|
-
if (
|
|
7776
|
-
|
|
7777
|
-
localizationStore.helloCountryList = Object.entries(allCountries || {}).reduce((current, [countryCode, countryInfo]) => {
|
|
7778
|
-
const isActive = countryInfo.active;
|
|
7779
|
-
if (!isActive) {
|
|
7780
|
-
return current;
|
|
7781
|
-
}
|
|
7782
|
-
return Object.assign(Object.assign({}, current), { [countryCode]: countryInfo });
|
|
7783
|
-
}, {});
|
|
7775
|
+
if (showCountryList === 'ALL') {
|
|
7776
|
+
localizationStore.helloCountryList = allCountries;
|
|
7784
7777
|
return;
|
|
7785
7778
|
}
|
|
7786
7779
|
// get all active countries in the showCountryList
|
|
7787
|
-
localizationStore.helloCountryList =
|
|
7780
|
+
localizationStore.helloCountryList = showCountryList.reduce((acc, countryCode) => {
|
|
7788
7781
|
const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
|
|
7789
|
-
return countryInfo
|
|
7782
|
+
return countryInfo
|
|
7790
7783
|
? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
7791
7784
|
}, {});
|
|
7792
7785
|
};
|
|
@@ -7796,7 +7789,7 @@ const initLocalizationStore = async () => {
|
|
|
7796
7789
|
// Filter countries to only include countries in the shipping zone
|
|
7797
7790
|
const filteredCountries = shippingZoneCountries === null || shippingZoneCountries === void 0 ? void 0 : shippingZoneCountries.reduce((acc, countryCode) => {
|
|
7798
7791
|
const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
|
|
7799
|
-
return countryInfo
|
|
7792
|
+
return countryInfo
|
|
7800
7793
|
? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
7801
7794
|
}, {});
|
|
7802
7795
|
localizationStore.shippingZoneCountries = filteredCountries || null;
|
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.44.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 && cdnUrl.includes('test.')) {
|
|
96
96
|
return cdnUrl;
|
|
@@ -260,10 +260,10 @@ const zonosLoadUrl = (() => {
|
|
|
260
260
|
}
|
|
261
261
|
return null;
|
|
262
262
|
})();
|
|
263
|
-
const ZONOS_URL = "https://v1.3.
|
|
264
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
265
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
266
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
263
|
+
const ZONOS_URL = "https://v1.3.44.js.zonos.com";
|
|
264
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.44";
|
|
265
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.44";
|
|
266
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.44";
|
|
267
267
|
const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
|
|
268
268
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
269
269
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
@@ -284,7 +284,7 @@ Zonos.isBigCommerce = false;
|
|
|
284
284
|
*/
|
|
285
285
|
Zonos.isNpm = true;
|
|
286
286
|
Zonos.zonosQaUrl = null;
|
|
287
|
-
Zonos.version = `v${"1.3.
|
|
287
|
+
Zonos.version = `v${"1.3.44"}`;
|
|
288
288
|
Zonos.modeAlerted = false;
|
|
289
289
|
Zonos.tempCartData = null;
|
|
290
290
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-8fc9ceb2.js';
|
|
2
|
-
import { w as handleFetch, d as cartStore, q as stripeStoreHandleInventoryCheck, t as translate, p as cartStoreNextStep, h as cartStoreClearCheckoutInterval, x as jsonParse } from './cart-
|
|
2
|
+
import { w as handleFetch, d as cartStore, q as stripeStoreHandleInventoryCheck, t as translate, p as cartStoreNextStep, h as cartStoreClearCheckoutInterval, x as jsonParse } from './cart-9f40efd7.js';
|
|
3
3
|
import { t as tinycolor } from './isDarkColor-3119e351.js';
|
|
4
4
|
import { l as log, a as logError } from './logError-c456c092.js';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as handleFetch, d as cartStore, l as localizationStore } from './cart-
|
|
1
|
+
import { w as handleFetch, d as cartStore, l as localizationStore } from './cart-9f40efd7.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-8fc9ceb2.js';
|
|
3
3
|
|
|
4
4
|
const trackConversionEvent = async (eventName, metadata) => {
|
|
@@ -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-9f40efd7.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 { d as cartStore, F as currencyFormat, G as cartStoreHasOneEligibleItem, t as translate, w as handleFetch, u as stripeStoreReset, j as stripeStore, H as stripeStoreRetrievePayment, I as stripeStoreMessageBasedOnStatus, l as localizationStore, J as stripeStoreTranslateAddressToLatin, K as cartStoreUpdateSelectedShippingOption, L as cartStoreGetShippingTransitInfo } from './cart-
|
|
2
|
+
import { d as cartStore, F as currencyFormat, G as cartStoreHasOneEligibleItem, t as translate, w as handleFetch, u as stripeStoreReset, j as stripeStore, H as stripeStoreRetrievePayment, I as stripeStoreMessageBasedOnStatus, l as localizationStore, J as stripeStoreTranslateAddressToLatin, K as cartStoreUpdateSelectedShippingOption, L as cartStoreGetShippingTransitInfo } from './cart-9f40efd7.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-f4bb6ce7.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
|
|
6
|
-
import { t as trackConversionEvent, s as sendErrorLog, c as createCustomEvent, g as getIsTestMode } from './sendErrorLog-
|
|
6
|
+
import { t as trackConversionEvent, s as sendErrorLog, c as createCustomEvent, g as getIsTestMode } from './sendErrorLog-aea606c0.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-3ba98361.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 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 stripeStorePrefetchLandedCost, p as cartStoreNextStep, q as stripeStoreHandleInventoryCheck, r as stripeStoreConfirmPayment, u as stripeStoreReset, v 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 stripeStorePrefetchLandedCost, p as cartStoreNextStep, q as stripeStoreHandleInventoryCheck, r as stripeStoreConfirmPayment, u as stripeStoreReset, v as localizationStoreOnUpdate } from './cart-9f40efd7.js';
|
|
3
|
+
import { s as submitGtag, p as paypalInitScript } from './paypal-f4bb6ce7.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-8fc9ceb2.js';
|
|
5
|
-
import { c as createCustomEvent, s as sendErrorLog, t as trackConversionEvent, g as getIsTestMode } from './sendErrorLog-
|
|
5
|
+
import { c as createCustomEvent, s as sendErrorLog, t as trackConversionEvent, g as getIsTestMode } from './sendErrorLog-aea606c0.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 { w as handleFetch, y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { w as handleFetch, y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-9f40efd7.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
|
|
4
4
|
import { a as logError, l as log } from './logError-c456c092.js';
|
|
5
5
|
import './isDarkColor-3119e351.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-9f40efd7.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.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-9f40efd7.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-3119e351.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, F as currencyFormat } from './cart-
|
|
2
|
+
import { t as translate, l as localizationStore, F as currencyFormat } from './cart-9f40efd7.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-8fc9ceb2.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-8fc9ceb2.js';
|
|
3
|
-
import { w as handleFetch, l as localizationStore, y as isValidSelector, t as translate, A as getZCountryUrlParam, B as setZCountryUrlParam, C as currencyDisplay, D as currencyConvertAndFormat, E as currencyConvert, F as currencyFormat } from './cart-
|
|
3
|
+
import { w as handleFetch, l as localizationStore, y as isValidSelector, t as translate, A as getZCountryUrlParam, B as setZCountryUrlParam, C as currencyDisplay, D as currencyConvertAndFormat, E as currencyConvert, F as currencyFormat } from './cart-9f40efd7.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 { M as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { M as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-9f40efd7.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.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-8fc9ceb2.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-9f40efd7.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-f4bb6ce7.js';
|
|
7
7
|
import './isDarkColor-3119e351.js';
|
|
8
8
|
import './getBorderRadius-3ba98361.js';
|
|
9
9
|
|