@zonos/elements 1.3.127 → 1.3.129
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/{CheckoutConfig-8e3cdcb3.js → CheckoutConfig-62479cef.js} +1 -1
- package/dist/cjs/{cart-3bdaf092.js → cart-ba8cca00.js} +22 -3
- package/dist/cjs/{handleFetch-fa0ce321.js → handleFetch-a8dfb07c.js} +1 -1
- package/dist/cjs/index.cjs.js +15 -9
- package/dist/cjs/{paypal-2f48ab8d.js → paypal-441c3f79.js} +2 -2
- package/dist/cjs/zonos-address_7.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +6 -9
- package/dist/cjs/zonos-checkout.cjs.entry.js +7 -8
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-notification_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +21 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +3 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -4
- package/dist/collection/components/common/zonos-text/zonos-text.css +6 -6
- package/dist/collection/components/common/zonos-text/zonos-text.js +20 -2
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +17 -2
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +4 -0
- package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +0 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
- package/dist/collection/scripts/_zonosBase.js +6 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +5 -0
- package/dist/collection/types/generated/graphql.internal.types.js +39 -0
- package/dist/esm/{CheckoutConfig-101b97e6.js → CheckoutConfig-5da839fa.js} +1 -1
- package/dist/esm/{cart-519f08e3.js → cart-01b5bf4a.js} +22 -3
- package/dist/esm/{handleFetch-da1a9c5d.js → handleFetch-40fc3562.js} +1 -1
- package/dist/esm/index.js +16 -10
- package/dist/esm/{paypal-d0a05eda.js → paypal-4c094b25.js} +2 -2
- package/dist/esm/zonos-address_7.entry.js +2 -2
- package/dist/esm/zonos-cart-items_13.entry.js +6 -9
- package/dist/esm/zonos-checkout.entry.js +7 -8
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +2 -2
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +21 -3
- package/dist/esm-es5/{CheckoutConfig-101b97e6.js → CheckoutConfig-5da839fa.js} +1 -1
- package/dist/esm-es5/{cart-519f08e3.js → cart-01b5bf4a.js} +1 -1
- package/dist/esm-es5/handleFetch-40fc3562.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-d0a05eda.js → paypal-4c094b25.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-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/esm-es5/zonos-text.entry.js +1 -1
- package/dist/scripts/index.d.ts +13 -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/stripe.d.ts +1 -0
- package/dist/types/components/store/zonosStore.d.ts +7 -1
- package/dist/types/scripts/_zonosBase.d.ts +2 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +23 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +33 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +44 -0
- package/dist/types/types/generated/graphql.internal.types.ts +57 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-eca920dc.system.entry.js → p-08948e65.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0cfb97ae.js +1 -0
- package/dist/zonos-elements/p-0e8613be.entry.js +1 -0
- package/dist/zonos-elements/{p-0cb426b8.entry.js → p-0f465aa6.entry.js} +1 -1
- package/dist/zonos-elements/{p-f962fc6a.system.entry.js → p-10aef679.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2db962f9.system.entry.js → p-17a5550a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-26172f0d.entry.js +1 -0
- package/dist/zonos-elements/{p-8df3d5d0.system.entry.js → p-2bb86f3d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2faa3104.system.entry.js +1 -0
- package/dist/zonos-elements/p-4d4ea5dc.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ea8663b7.entry.js → p-55a3db7d.entry.js} +1 -1
- package/dist/zonos-elements/{p-f7d56ce5.system.js → p-582cdd52.system.js} +1 -1
- package/dist/zonos-elements/{p-d9dceba1.system.js → p-5e22a288.system.js} +1 -1
- package/dist/zonos-elements/{p-9833f37d.system.entry.js → p-5ee9685e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-60b0025b.system.js +1 -0
- package/dist/zonos-elements/p-6305e92c.system.js +1 -0
- package/dist/zonos-elements/{p-3dbfe639.entry.js → p-700c5732.entry.js} +1 -1
- package/dist/zonos-elements/{p-e2cda105.system.entry.js → p-7312d038.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7c7feadb.system.entry.js +1 -0
- package/dist/zonos-elements/{p-167b7fa8.system.entry.js → p-8390f23d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d6f1b6fa.system.entry.js → p-8612f8d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-723c9d4d.entry.js → p-91e111c4.entry.js} +1 -1
- package/dist/zonos-elements/{p-2402e12c.js → p-94146bc9.js} +1 -1
- package/dist/zonos-elements/p-9b0cbd91.entry.js +1 -0
- package/dist/zonos-elements/{p-f50f48da.entry.js → p-9d057d1d.entry.js} +1 -1
- package/dist/zonos-elements/{p-00ff4f4a.js → p-a9069f68.js} +1 -1
- package/dist/zonos-elements/{p-a3b195e9.js → p-b7cfbfc1.js} +1 -1
- package/dist/zonos-elements/p-c562de4a.entry.js +1 -0
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-abbfde44.system.js → p-c93c9524.system.js} +2 -2
- package/dist/zonos-elements/{p-76d03238.entry.js → p-ce391c90.entry.js} +1 -1
- package/dist/zonos-elements/{p-efffbaec.entry.js → p-d6f8309b.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/handleFetch-da1a9c5d.js +0 -1
- package/dist/zonos-elements/p-0fa85ff9.system.js +0 -1
- package/dist/zonos-elements/p-1ed1ce99.system.js +0 -1
- package/dist/zonos-elements/p-61380d53.system.entry.js +0 -1
- package/dist/zonos-elements/p-685e395e.entry.js +0 -1
- package/dist/zonos-elements/p-6a2bed3e.system.entry.js +0 -1
- package/dist/zonos-elements/p-7769b60c.js +0 -1
- package/dist/zonos-elements/p-a7eaa9ad.entry.js +0 -1
- package/dist/zonos-elements/p-bc9987f2.system.entry.js +0 -1
- package/dist/zonos-elements/p-bf2f9095.entry.js +0 -1
- package/dist/zonos-elements/p-cf7a5119.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
4
|
-
const handleFetch = require('./handleFetch-
|
|
4
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
5
5
|
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
6
6
|
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
7
7
|
|
|
@@ -9210,6 +9210,7 @@ const getTranslatedAddress = ({ currentAddress, translatedAddress, }) => {
|
|
|
9210
9210
|
*/
|
|
9211
9211
|
const prepCartCalculateLandedCost = (cartId) => {
|
|
9212
9212
|
var _a;
|
|
9213
|
+
const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
|
|
9213
9214
|
// maybe we don't need email now for prefetch the landed cost
|
|
9214
9215
|
const stripeLinkData = stripeStore.stripeLinkEventData;
|
|
9215
9216
|
const stripeAddressData = stripeStore.stripeAddressEventData;
|
|
@@ -9260,6 +9261,7 @@ const prepCartCalculateLandedCost = (cartId) => {
|
|
|
9260
9261
|
lastName: shippingLastName,
|
|
9261
9262
|
phone: translatedShippingAddress.phone,
|
|
9262
9263
|
},
|
|
9264
|
+
isTest: !!isE2ETest,
|
|
9263
9265
|
landedCostAdjustments: cartStore.promoCode
|
|
9264
9266
|
? [
|
|
9265
9267
|
{
|
|
@@ -9282,6 +9284,7 @@ const prepCartCalculateLandedCost = (cartId) => {
|
|
|
9282
9284
|
};
|
|
9283
9285
|
};
|
|
9284
9286
|
const prepCalculateLandedCost = () => {
|
|
9287
|
+
const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
|
|
9285
9288
|
// maybe we don't need email now for prefetch the landed cost
|
|
9286
9289
|
const stripeLinkData = stripeStore.stripeLinkEventData;
|
|
9287
9290
|
const stripeAddressData = stripeStore.stripeAddressEventData;
|
|
@@ -9342,6 +9345,7 @@ const prepCalculateLandedCost = () => {
|
|
|
9342
9345
|
lastName: shippingLastName,
|
|
9343
9346
|
phone: translatedShippingAddress.phone,
|
|
9344
9347
|
},
|
|
9348
|
+
isTest: isE2ETest,
|
|
9345
9349
|
items: cartStore.items,
|
|
9346
9350
|
landedCostAdjustments: adjustments,
|
|
9347
9351
|
shippingAddress: {
|
|
@@ -9860,6 +9864,7 @@ const stripeCalculateLandedCost = async () => {
|
|
|
9860
9864
|
};
|
|
9861
9865
|
const stripeStorePrefetchLandedCost = async (params) => {
|
|
9862
9866
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9867
|
+
const retries = (params === null || params === void 0 ? void 0 : params.retries) || 0;
|
|
9863
9868
|
const applyingPromocode = !!(params === null || params === void 0 ? void 0 : params.applyingPromocode);
|
|
9864
9869
|
const stripeAddressReady = !!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete);
|
|
9865
9870
|
const stripeLinkReady = !!((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete);
|
|
@@ -9879,7 +9884,16 @@ const stripeStorePrefetchLandedCost = async (params) => {
|
|
|
9879
9884
|
!stripeBillingAddressReady) {
|
|
9880
9885
|
return;
|
|
9881
9886
|
}
|
|
9882
|
-
|
|
9887
|
+
// If there is retries, stop loading for a moment and then showing the spinner again (this is just so customer can see that checkout is doing something and not stuck)
|
|
9888
|
+
if (retries) {
|
|
9889
|
+
stripeStore.isFetchingLandedCost = false;
|
|
9890
|
+
setTimeout(() => {
|
|
9891
|
+
stripeStore.isFetchingLandedCost = true;
|
|
9892
|
+
}, 300);
|
|
9893
|
+
}
|
|
9894
|
+
else {
|
|
9895
|
+
stripeStore.isFetchingLandedCost = true;
|
|
9896
|
+
}
|
|
9883
9897
|
if (stripeStore.stripeAddressEventData) {
|
|
9884
9898
|
stripeStore.stripeAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeAddressEventData);
|
|
9885
9899
|
}
|
|
@@ -9918,9 +9932,14 @@ const stripeStorePrefetchLandedCost = async (params) => {
|
|
|
9918
9932
|
if (err instanceof Error &&
|
|
9919
9933
|
err.message &&
|
|
9920
9934
|
!excludeErrors.includes(err.message)) {
|
|
9935
|
+
if (retries < 1) {
|
|
9936
|
+
// retry fetching landed cost one more time
|
|
9937
|
+
await stripeStorePrefetchLandedCost(Object.assign(Object.assign({}, params), { retries: (retries || 0) + 1 }));
|
|
9938
|
+
return;
|
|
9939
|
+
}
|
|
9921
9940
|
const shipToAddress = (_h = stripeStore.stripeAddressUsedWhenFetchingLC) === null || _h === void 0 ? void 0 : _h.value;
|
|
9922
9941
|
void handleFetch.sendErrorLog({
|
|
9923
|
-
endpoint:
|
|
9942
|
+
endpoint: `Failed to fetch landed cost (${retries} retries)`,
|
|
9924
9943
|
errors: [err.message],
|
|
9925
9944
|
metadata: {
|
|
9926
9945
|
cartId: window.Zonos.cartId,
|
|
@@ -141,7 +141,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseError
|
|
|
141
141
|
endpoint,
|
|
142
142
|
errors,
|
|
143
143
|
href: window.location.href,
|
|
144
|
-
metadata: Object.assign({ userAgent: userAgentData && userAgentData.brands.length > 0
|
|
144
|
+
metadata: Object.assign({ domain: window.Zonos.domain, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
145
145
|
? userAgentData
|
|
146
146
|
: window.navigator.userAgent }, metadata),
|
|
147
147
|
};
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const handleFetch = require('./handleFetch-
|
|
6
|
-
const CheckoutConfig = require('./CheckoutConfig-
|
|
5
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
6
|
+
const CheckoutConfig = require('./CheckoutConfig-62479cef.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Get the load version and url based on the loadScriptSrc and version
|
|
@@ -97,7 +97,7 @@ const getZonosQaUrl = () => {
|
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
99
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
100
|
-
const cdnUrl = "https://v1.3.
|
|
100
|
+
const cdnUrl = "https://v1.3.129.js.zonos.com";
|
|
101
101
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
102
102
|
if (!qaUrl &&
|
|
103
103
|
(cdnUrl.includes('test.') ||
|
|
@@ -281,10 +281,10 @@ const zonosLoadUrl = (() => {
|
|
|
281
281
|
}
|
|
282
282
|
return null;
|
|
283
283
|
})();
|
|
284
|
-
const ZONOS_URL = "https://v1.3.
|
|
285
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
286
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
287
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
284
|
+
const ZONOS_URL = "https://v1.3.129.js.zonos.com";
|
|
285
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.129";
|
|
286
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.129";
|
|
287
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.129";
|
|
288
288
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
289
289
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
290
290
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -299,8 +299,14 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
299
299
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
300
300
|
Zonos._paypalMockResponse = null;
|
|
301
301
|
Zonos.isBigCommerce = false;
|
|
302
|
-
Zonos.releaseDate = "
|
|
302
|
+
Zonos.releaseDate = "1731519234165";
|
|
303
303
|
Zonos.isLegacyCheckout = false;
|
|
304
|
+
Zonos.domain = typeof window !== 'undefined'
|
|
305
|
+
? // domain that embeds the iframe
|
|
306
|
+
(window.location != window.parent.location && document.referrer) ||
|
|
307
|
+
// current domain
|
|
308
|
+
document.location.hostname
|
|
309
|
+
: '';
|
|
304
310
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
305
311
|
window.location.search.includes('zonosShowBaseForeign');
|
|
306
312
|
/**
|
|
@@ -309,7 +315,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
309
315
|
Zonos.isNpm = true;
|
|
310
316
|
Zonos.zonosQaUrl = null;
|
|
311
317
|
Zonos.zonosQaUrlApi = null;
|
|
312
|
-
Zonos.version = `v${"1.3.
|
|
318
|
+
Zonos.version = `v${"1.3.129"}`;
|
|
313
319
|
Zonos.modeAlerted = false;
|
|
314
320
|
Zonos.cartData = null;
|
|
315
321
|
Zonos.paypal = null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
4
|
-
const cart = require('./cart-
|
|
5
|
-
const handleFetch = require('./handleFetch-
|
|
4
|
+
const cart = require('./cart-ba8cca00.js');
|
|
5
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
7
7
|
|
|
8
8
|
/*!
|
|
@@ -3,9 +3,9 @@
|
|
|
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-ba8cca00.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
|
-
const handleFetch = require('./handleFetch-
|
|
8
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
10
10
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
11
11
|
const classes = require('./classes-b7918f56.js');
|
|
@@ -3,13 +3,13 @@
|
|
|
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-ba8cca00.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-441c3f79.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
12
|
-
const handleFetch = require('./handleFetch-
|
|
12
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
13
13
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
14
14
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
15
15
|
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
@@ -1389,7 +1389,6 @@ const ZonosCheckoutFinish = class {
|
|
|
1389
1389
|
metadata: {
|
|
1390
1390
|
allLogs: handleFetch.allLogs,
|
|
1391
1391
|
checkoutSessionId: cart.cartStore.checkoutSessionId || '',
|
|
1392
|
-
domain: window.location.hostname,
|
|
1393
1392
|
orderId: order.id,
|
|
1394
1393
|
storeId: zonosStore.zonosStore.storeId,
|
|
1395
1394
|
},
|
|
@@ -1404,7 +1403,6 @@ const ZonosCheckoutFinish = class {
|
|
|
1404
1403
|
metadata: {
|
|
1405
1404
|
allLogs: handleFetch.allLogs,
|
|
1406
1405
|
checkoutSessionId: cart.cartStore.checkoutSessionId || '',
|
|
1407
|
-
domain: window.location.hostname,
|
|
1408
1406
|
orderId: order.id,
|
|
1409
1407
|
storeId: zonosStore.zonosStore.storeId,
|
|
1410
1408
|
},
|
|
@@ -1424,7 +1422,6 @@ const ZonosCheckoutFinish = class {
|
|
|
1424
1422
|
metadata: {
|
|
1425
1423
|
allLogs: handleFetch.allLogs,
|
|
1426
1424
|
checkoutSessionId: cart.cartStore.checkoutSessionId || '',
|
|
1427
|
-
domain: window.location.hostname,
|
|
1428
1425
|
storeId: zonosStore.zonosStore.storeId,
|
|
1429
1426
|
},
|
|
1430
1427
|
});
|
|
@@ -1566,12 +1563,12 @@ const ZonosCheckoutFinish = class {
|
|
|
1566
1563
|
}
|
|
1567
1564
|
render() {
|
|
1568
1565
|
const isTestMode = createCustomEvent.getIsTestMode();
|
|
1569
|
-
return (index.h(index.Host, { key: '
|
|
1566
|
+
return (index.h(index.Host, { key: '09ad6462aeafdfa1be8b0f0e34159aa74934b85c', class: "zonos--checkout-finish zonos--elements", style: {
|
|
1570
1567
|
'--zonos--border-radius': getBorderRadius.getBorderRadius({
|
|
1571
1568
|
overrideBorderStyle: this.borderRadius,
|
|
1572
1569
|
}),
|
|
1573
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
1574
|
-
this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '
|
|
1570
|
+
} }, !this.isLoading && (index.h("div", { key: '81df3ec5804d346938cd0052232446500805e5dd', class: "zonos--finish-details" }, index.h("div", { key: '49f0b91cd04f2f6e1291de3c542cec6ed1f3c0a9', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '398e803727b65d2dd7da40bb37e25702f69009d6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '75ee45470ceca25057259916c76dd227f62b7276', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), !window.Zonos.isLegacyCheckout &&
|
|
1571
|
+
this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: 'cd792a9dd314e291d0957e0859e3b0e088cf1767', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: 'b54c583f058c23b2b5001179acac0c98780b1ded', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '2405f70c3143725d51d6f6a5e5a440350aeb9b80', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'c977d79e45170cce70695006de1274ef7cc39df4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
|
|
1575
1572
|
}
|
|
1576
1573
|
static get assetsDirs() { return ["assets"]; }
|
|
1577
1574
|
};
|
|
@@ -3,17 +3,17 @@
|
|
|
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-ba8cca00.js');
|
|
7
|
+
const paypal = require('./paypal-441c3f79.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
9
|
-
const handleFetch = require('./handleFetch-
|
|
9
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
11
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
12
12
|
const classes = require('./classes-b7918f56.js');
|
|
13
13
|
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
14
14
|
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
15
15
|
const styles = require('./styles-d1e64fb9.js');
|
|
16
|
-
const CheckoutConfig = require('./CheckoutConfig-
|
|
16
|
+
const CheckoutConfig = require('./CheckoutConfig-62479cef.js');
|
|
17
17
|
const RemoveIcon = require('./RemoveIcon-081ac073.js');
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -155,7 +155,6 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
|
|
|
155
155
|
JSON.stringify(Object.entries(shippingAddress)),
|
|
156
156
|
],
|
|
157
157
|
metadata: {
|
|
158
|
-
domain: window.location.hostname,
|
|
159
158
|
storeId: zonosStore.zonosStore.storeId,
|
|
160
159
|
},
|
|
161
160
|
});
|
|
@@ -604,12 +603,12 @@ const ZonosCheckout = class {
|
|
|
604
603
|
const postal_code = getParam('customerZip') || '';
|
|
605
604
|
const state = getParam('customerState') || '';
|
|
606
605
|
/**
|
|
607
|
-
* If one of the value is null, no need to preset the default address
|
|
606
|
+
* If one of the value is null, no need to preset the default address.
|
|
607
|
+
* City and state are optional (they are not always provided for example Puerto Rico)
|
|
608
608
|
**/
|
|
609
|
-
if (!line1 ||
|
|
609
|
+
if (!line1 || !name || !phone || !country) {
|
|
610
610
|
handleFetch.log('Missing required query params so it can not be prefilled', 'info', [
|
|
611
611
|
!line1 && 'line1',
|
|
612
|
-
!city && 'city',
|
|
613
612
|
!name && 'name',
|
|
614
613
|
!phone && 'phone',
|
|
615
614
|
!country && 'country',
|
|
@@ -3,9 +3,9 @@
|
|
|
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-ba8cca00.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
8
|
-
const handleFetch = require('./handleFetch-
|
|
8
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
9
9
|
require('./isDarkColor-d206c6fa.js');
|
|
10
10
|
require('./getBorderRadius-61ed5601.js');
|
|
11
11
|
|
|
@@ -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-
|
|
6
|
+
const cart = require('./cart-ba8cca00.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
require('./handleFetch-
|
|
9
|
+
require('./handleFetch-a8dfb07c.js');
|
|
10
10
|
require('./isDarkColor-d206c6fa.js');
|
|
11
11
|
require('./getBorderRadius-61ed5601.js');
|
|
12
12
|
|
|
@@ -3,12 +3,12 @@
|
|
|
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-ba8cca00.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
10
10
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
11
|
-
require('./handleFetch-
|
|
11
|
+
require('./handleFetch-a8dfb07c.js');
|
|
12
12
|
require('./getBorderRadius-61ed5601.js');
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -3,12 +3,12 @@
|
|
|
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-ba8cca00.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
|
-
require('./handleFetch-
|
|
11
|
+
require('./handleFetch-a8dfb07c.js');
|
|
12
12
|
require('./isDarkColor-d206c6fa.js');
|
|
13
13
|
require('./getBorderRadius-61ed5601.js');
|
|
14
14
|
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-ba8cca00.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const handleFetch = require('./handleFetch-
|
|
9
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
11
|
require('./isDarkColor-d206c6fa.js');
|
|
12
12
|
require('./getBorderRadius-61ed5601.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-
|
|
6
|
+
const cart = require('./cart-ba8cca00.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
|
-
require('./handleFetch-
|
|
9
|
+
require('./handleFetch-a8dfb07c.js');
|
|
10
10
|
require('./isDarkColor-d206c6fa.js');
|
|
11
11
|
require('./getBorderRadius-61ed5601.js');
|
|
12
12
|
|
|
@@ -6,9 +6,9 @@ const index = require('./index-d56e0a8b.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
9
|
-
const cart = require('./cart-
|
|
10
|
-
const handleFetch = require('./handleFetch-
|
|
11
|
-
const paypal = require('./paypal-
|
|
9
|
+
const cart = require('./cart-ba8cca00.js');
|
|
10
|
+
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
11
|
+
const paypal = require('./paypal-441c3f79.js');
|
|
12
12
|
require('./isDarkColor-d206c6fa.js');
|
|
13
13
|
|
|
14
14
|
const zonosNotificationCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
|
|
@@ -108,7 +108,7 @@ const textOptions = {
|
|
|
108
108
|
},
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
const zonosTextCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{color:var(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos-elements-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos-elements-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos-elements-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos-elements-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos-elements-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos-elements-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";
|
|
111
|
+
const zonosTextCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{color:var(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl))}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl))}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl))}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos--font-size-l, var(--zonos-elements-font-size-l))}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos--font-size-s, var(--zonos-elements-font-size-s))}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos--font-size-xs, var(--zonos-elements-font-size-xs))}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";
|
|
112
112
|
const ZonosTextStyle0 = zonosTextCss;
|
|
113
113
|
|
|
114
114
|
const ZonosText = class {
|
|
@@ -156,8 +156,26 @@ const ZonosText = class {
|
|
|
156
156
|
]), style: styles.styles({
|
|
157
157
|
'--zonos--color': actualTextColor,
|
|
158
158
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
159
|
-
'--zonos--font-size-
|
|
160
|
-
? `${zonosStore.zonosStore.appearance.
|
|
159
|
+
'--zonos--font-size-2xl': zonosStore.zonosStore.appearance.fontSize2XL
|
|
160
|
+
? `${zonosStore.zonosStore.appearance.fontSize2XL}px`
|
|
161
|
+
: undefined,
|
|
162
|
+
'--zonos--font-size-3xl': zonosStore.zonosStore.appearance.fontSize3XL
|
|
163
|
+
? `${zonosStore.zonosStore.appearance.fontSize3XL}px`
|
|
164
|
+
: undefined,
|
|
165
|
+
'--zonos--font-size-base': zonosStore.zonosStore.appearance.fontSizeBase
|
|
166
|
+
? `${zonosStore.zonosStore.appearance.fontSizeBase}px`
|
|
167
|
+
: undefined,
|
|
168
|
+
'--zonos--font-size-l': zonosStore.zonosStore.appearance.fontSizeL
|
|
169
|
+
? `${zonosStore.zonosStore.appearance.fontSizeL}px`
|
|
170
|
+
: undefined,
|
|
171
|
+
'--zonos--font-size-s': zonosStore.zonosStore.appearance.fontSizeS
|
|
172
|
+
? `${zonosStore.zonosStore.appearance.fontSizeS}px`
|
|
173
|
+
: undefined,
|
|
174
|
+
'--zonos--font-size-xl': zonosStore.zonosStore.appearance.fontSizeXL
|
|
175
|
+
? `${zonosStore.zonosStore.appearance.fontSizeXL}px`
|
|
176
|
+
: undefined,
|
|
177
|
+
'--zonos--font-size-xs': zonosStore.zonosStore.appearance.fontSizeXS
|
|
178
|
+
? `${zonosStore.zonosStore.appearance.fontSizeXS}px`
|
|
161
179
|
: undefined,
|
|
162
180
|
}) }, renderText()));
|
|
163
181
|
}
|
|
@@ -150,7 +150,6 @@ export class ZonosCheckoutFinish {
|
|
|
150
150
|
metadata: {
|
|
151
151
|
allLogs,
|
|
152
152
|
checkoutSessionId: cartStore.checkoutSessionId || '',
|
|
153
|
-
domain: window.location.hostname,
|
|
154
153
|
orderId: order.id,
|
|
155
154
|
storeId: zonosStore.storeId,
|
|
156
155
|
},
|
|
@@ -165,7 +164,6 @@ export class ZonosCheckoutFinish {
|
|
|
165
164
|
metadata: {
|
|
166
165
|
allLogs,
|
|
167
166
|
checkoutSessionId: cartStore.checkoutSessionId || '',
|
|
168
|
-
domain: window.location.hostname,
|
|
169
167
|
orderId: order.id,
|
|
170
168
|
storeId: zonosStore.storeId,
|
|
171
169
|
},
|
|
@@ -185,7 +183,6 @@ export class ZonosCheckoutFinish {
|
|
|
185
183
|
metadata: {
|
|
186
184
|
allLogs,
|
|
187
185
|
checkoutSessionId: cartStore.checkoutSessionId || '',
|
|
188
|
-
domain: window.location.hostname,
|
|
189
186
|
storeId: zonosStore.storeId,
|
|
190
187
|
},
|
|
191
188
|
});
|
|
@@ -327,12 +324,12 @@ export class ZonosCheckoutFinish {
|
|
|
327
324
|
}
|
|
328
325
|
render() {
|
|
329
326
|
const isTestMode = getIsTestMode();
|
|
330
|
-
return (h(Host, { key: '
|
|
327
|
+
return (h(Host, { key: '09ad6462aeafdfa1be8b0f0e34159aa74934b85c', class: "zonos--checkout-finish zonos--elements", style: {
|
|
331
328
|
'--zonos--border-radius': getBorderRadius({
|
|
332
329
|
overrideBorderStyle: this.borderRadius,
|
|
333
330
|
}),
|
|
334
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
335
|
-
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '
|
|
331
|
+
} }, !this.isLoading && (h("div", { key: '81df3ec5804d346938cd0052232446500805e5dd', class: "zonos--finish-details" }, h("div", { key: '49f0b91cd04f2f6e1291de3c542cec6ed1f3c0a9', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '398e803727b65d2dd7da40bb37e25702f69009d6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '75ee45470ceca25057259916c76dd227f62b7276', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), !window.Zonos.isLegacyCheckout &&
|
|
332
|
+
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'cd792a9dd314e291d0957e0859e3b0e088cf1767', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'b54c583f058c23b2b5001179acac0c98780b1ded', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '2405f70c3143725d51d6f6a5e5a440350aeb9b80', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'c977d79e45170cce70695006de1274ef7cc39df4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
|
|
336
333
|
}
|
|
337
334
|
static get is() { return "zonos-checkout-finish"; }
|
|
338
335
|
static get encapsulation() { return "shadow"; }
|
|
@@ -391,12 +391,12 @@ export class ZonosCheckout {
|
|
|
391
391
|
const postal_code = getParam('customerZip') || '';
|
|
392
392
|
const state = getParam('customerState') || '';
|
|
393
393
|
/**
|
|
394
|
-
* If one of the value is null, no need to preset the default address
|
|
394
|
+
* If one of the value is null, no need to preset the default address.
|
|
395
|
+
* City and state are optional (they are not always provided for example Puerto Rico)
|
|
395
396
|
**/
|
|
396
|
-
if (!line1 ||
|
|
397
|
+
if (!line1 || !name || !phone || !country) {
|
|
397
398
|
log('Missing required query params so it can not be prefilled', 'info', [
|
|
398
399
|
!line1 && 'line1',
|
|
399
|
-
!city && 'city',
|
|
400
400
|
!name && 'name',
|
|
401
401
|
!phone && 'phone',
|
|
402
402
|
!country && 'country',
|
|
@@ -783,7 +783,7 @@ export class ZonosCheckout {
|
|
|
783
783
|
"mutable": false,
|
|
784
784
|
"complexType": {
|
|
785
785
|
"original": "Partial<AppearanceConfig>",
|
|
786
|
-
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined;
|
|
786
|
+
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined; fontSize2XL?: number | undefined; fontSize3XL?: number | undefined; fontSizeBase?: number | undefined; fontSizeInputLabel?: number | undefined; fontSizeInputValue?: number | undefined; fontSizeL?: number | undefined; fontSizeS?: number | undefined; fontSizeXL?: number | undefined; fontSizeXS?: number | undefined; logoUrl?: string | undefined; style?: ElementsUiStyle | undefined; theme?: ElementsUiTheme | undefined; zonosAttribution?: ZonosAttribution | null | undefined; }",
|
|
787
787
|
"references": {
|
|
788
788
|
"Partial": {
|
|
789
789
|
"location": "global",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
:host(.zonos--text-size-3xl) > *, :host(.zonos--text-size-3xl) {
|
|
39
|
-
font-size: var(--zonos-elements-font-size-3xl);
|
|
39
|
+
font-size: var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
:host(.zonos--text-size-2xl) > *, :host(.zonos--text-size-2xl) {
|
|
43
|
-
font-size: var(--zonos-elements-font-size-2xl);
|
|
43
|
+
font-size: var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
:host(.zonos--text-size-xl) > *, :host(.zonos--text-size-xl) {
|
|
47
|
-
font-size: var(--zonos-elements-font-size-xl);
|
|
47
|
+
font-size: var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
:host(.zonos--text-size-l) > *, :host(.zonos--text-size-l) {
|
|
51
|
-
font-size: var(--zonos-elements-font-size-l);
|
|
51
|
+
font-size: var(--zonos--font-size-l, var(--zonos-elements-font-size-l));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
:host(.zonos--text-size-base) > *, :host(.zonos--text-size-base) {
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
:host(.zonos--text-size-s) > *, :host(.zonos--text-size-s) {
|
|
59
|
-
font-size: var(--zonos-elements-font-size-s);
|
|
59
|
+
font-size: var(--zonos--font-size-s, var(--zonos-elements-font-size-s));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
:host(.zonos--text-size-xs) > *, :host(.zonos--text-size-xs) {
|
|
63
|
-
font-size: var(--zonos-elements-font-size-xs);
|
|
63
|
+
font-size: var(--zonos--font-size-xs, var(--zonos-elements-font-size-xs));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
:host(.zonos--text-weight-900) > *, :host(.zonos--text-weight-900) {
|
|
@@ -48,8 +48,26 @@ export class ZonosText {
|
|
|
48
48
|
]), style: styles({
|
|
49
49
|
'--zonos--color': actualTextColor,
|
|
50
50
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
51
|
-
'--zonos--font-size-
|
|
52
|
-
? `${zonosStore.appearance.
|
|
51
|
+
'--zonos--font-size-2xl': zonosStore.appearance.fontSize2XL
|
|
52
|
+
? `${zonosStore.appearance.fontSize2XL}px`
|
|
53
|
+
: undefined,
|
|
54
|
+
'--zonos--font-size-3xl': zonosStore.appearance.fontSize3XL
|
|
55
|
+
? `${zonosStore.appearance.fontSize3XL}px`
|
|
56
|
+
: undefined,
|
|
57
|
+
'--zonos--font-size-base': zonosStore.appearance.fontSizeBase
|
|
58
|
+
? `${zonosStore.appearance.fontSizeBase}px`
|
|
59
|
+
: undefined,
|
|
60
|
+
'--zonos--font-size-l': zonosStore.appearance.fontSizeL
|
|
61
|
+
? `${zonosStore.appearance.fontSizeL}px`
|
|
62
|
+
: undefined,
|
|
63
|
+
'--zonos--font-size-s': zonosStore.appearance.fontSizeS
|
|
64
|
+
? `${zonosStore.appearance.fontSizeS}px`
|
|
65
|
+
: undefined,
|
|
66
|
+
'--zonos--font-size-xl': zonosStore.appearance.fontSizeXL
|
|
67
|
+
? `${zonosStore.appearance.fontSizeXL}px`
|
|
68
|
+
: undefined,
|
|
69
|
+
'--zonos--font-size-xs': zonosStore.appearance.fontSizeXS
|
|
70
|
+
? `${zonosStore.appearance.fontSizeXS}px`
|
|
53
71
|
: undefined,
|
|
54
72
|
}) }, renderText()));
|
|
55
73
|
}
|
|
@@ -451,7 +451,7 @@ export class ZonosHello {
|
|
|
451
451
|
"mutable": false,
|
|
452
452
|
"complexType": {
|
|
453
453
|
"original": "Partial<AppearanceConfig>",
|
|
454
|
-
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined;
|
|
454
|
+
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined; fontSize2XL?: number | undefined; fontSize3XL?: number | undefined; fontSizeBase?: number | undefined; fontSizeInputLabel?: number | undefined; fontSizeInputValue?: number | undefined; fontSizeL?: number | undefined; fontSizeS?: number | undefined; fontSizeXL?: number | undefined; fontSizeXS?: number | undefined; logoUrl?: string | undefined; style?: ElementsUiStyle | undefined; theme?: ElementsUiTheme | undefined; zonosAttribution?: ZonosAttribution | null | undefined; }",
|
|
455
455
|
"references": {
|
|
456
456
|
"Partial": {
|
|
457
457
|
"location": "global",
|
|
@@ -41,7 +41,7 @@ export class ZonosHelloDialogFooter {
|
|
|
41
41
|
"mutable": false,
|
|
42
42
|
"complexType": {
|
|
43
43
|
"original": "Partial<AppearanceConfig>",
|
|
44
|
-
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined;
|
|
44
|
+
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined; fontSize2XL?: number | undefined; fontSize3XL?: number | undefined; fontSizeBase?: number | undefined; fontSizeInputLabel?: number | undefined; fontSizeInputValue?: number | undefined; fontSizeL?: number | undefined; fontSizeS?: number | undefined; fontSizeXL?: number | undefined; fontSizeXS?: number | undefined; logoUrl?: string | undefined; style?: ElementsUiStyle | undefined; theme?: ElementsUiTheme | undefined; zonosAttribution?: ZonosAttribution | null | undefined; }",
|
|
45
45
|
"references": {
|
|
46
46
|
"Partial": {
|
|
47
47
|
"location": "global",
|
|
@@ -348,7 +348,7 @@ export class ZonosHelloDialog {
|
|
|
348
348
|
"mutable": false,
|
|
349
349
|
"complexType": {
|
|
350
350
|
"original": "Partial<AppearanceConfig>",
|
|
351
|
-
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined;
|
|
351
|
+
"resolved": "undefined | { colorPrimary?: string | undefined; colorSecondary?: string | undefined; fontFamily?: string | undefined; fontSize2XL?: number | undefined; fontSize3XL?: number | undefined; fontSizeBase?: number | undefined; fontSizeInputLabel?: number | undefined; fontSizeInputValue?: number | undefined; fontSizeL?: number | undefined; fontSizeS?: number | undefined; fontSizeXL?: number | undefined; fontSizeXS?: number | undefined; logoUrl?: string | undefined; style?: ElementsUiStyle | undefined; theme?: ElementsUiTheme | undefined; zonosAttribution?: ZonosAttribution | null | undefined; }",
|
|
352
352
|
"references": {
|
|
353
353
|
"Partial": {
|
|
354
354
|
"location": "global",
|