@zonos/elements 1.3.85 → 1.3.86
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-fc426d98.js → cart-c5152dfc.js} +37 -21
- package/dist/cjs/{createCustomEvent-354c8e63.js → createCustomEvent-557f8120.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-1fe5ed0c.js → paypal-922c7e45.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +8 -8
- 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/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +3 -3
- package/dist/collection/components/store/checkout/cart.js +22 -12
- package/dist/collection/components/store/checkout/stripe.js +15 -9
- package/dist/collection/types/generated/graphql.frontend.types.js +5 -5
- package/dist/esm/{cart-6c44367a.js → cart-9d7e0950.js} +37 -21
- package/dist/esm/{createCustomEvent-ec15a4a7.js → createCustomEvent-e93c38eb.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-a562a640.js → paypal-6c55d504.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_12.entry.js +8 -8
- 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-6c44367a.js → cart-9d7e0950.js} +1 -1
- package/dist/esm-es5/{createCustomEvent-ec15a4a7.js → createCustomEvent-e93c38eb.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-a562a640.js → paypal-6c55d504.js} +1 -1
- package/dist/esm-es5/zonos-address_7.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 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/store/checkout/cart.d.ts +7 -3
- package/dist/types/types/generated/graphql.frontend.types.d.ts +28 -29
- package/dist/types/types/generated/graphql.frontend.types.ts +43 -44
- package/dist/types/types/generated/graphql.internal.types.d.ts +3 -3
- package/dist/types/types/generated/graphql.internal.types.ts +3 -3
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-95241447.entry.js → p-04781437.entry.js} +1 -1
- package/dist/zonos-elements/{p-01604d44.entry.js → p-077a6d1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-1eb59b7c.system.entry.js → p-0c2c5edf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-710ac059.js → p-1161bb85.js} +1 -1
- package/dist/zonos-elements/{p-76013796.system.entry.js → p-217e862c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ebde561.system.entry.js → p-21becaac.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ee8b5e53.js → p-28f00b59.js} +1 -1
- package/dist/zonos-elements/{p-a858a304.entry.js → p-2ee020dd.entry.js} +1 -1
- package/dist/zonos-elements/{p-e78c2429.entry.js → p-3c6503d0.entry.js} +1 -1
- package/dist/zonos-elements/{p-35b6b151.system.entry.js → p-423aa2cd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c37b99dd.system.entry.js → p-5348f8f4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b7fa35e.system.js → p-5bdfdced.system.js} +1 -1
- package/dist/zonos-elements/{p-64b67900.entry.js → p-5f51136c.entry.js} +1 -1
- package/dist/zonos-elements/{p-08fee913.system.js → p-8161254a.system.js} +1 -1
- package/dist/zonos-elements/{p-cbb742ab.js → p-82034a27.js} +1 -1
- package/dist/zonos-elements/{p-3b3cb2a4.entry.js → p-84adf4cf.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ba198b3.entry.js → p-8e210b51.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9645c27.system.js → p-9821d158.system.js} +2 -2
- package/dist/zonos-elements/p-af49128f.entry.js +1 -0
- package/dist/zonos-elements/{p-092961f1.system.js → p-baccbe8c.system.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-51e2df70.entry.js → p-cdbd5532.entry.js} +1 -1
- package/dist/zonos-elements/{p-63a33354.system.entry.js → p-de99079d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-133595ff.system.entry.js → p-ed846c78.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d7b341e3.system.entry.js → p-f00bb583.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5316c2c.entry.js → p-f2860f7d.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b4a5b9b.system.entry.js → p-f45d19ab.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fa36817b.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-a26a8ca5.system.entry.js +0 -1
- package/dist/zonos-elements/p-de6c2a4a.entry.js +0 -1
|
@@ -9295,13 +9295,16 @@ const stripeStorePrefetchLandedCost = async (params) => {
|
|
|
9295
9295
|
if (subtotals) {
|
|
9296
9296
|
// prefetch landed cost will not update shipping and taxes since we haven't selected shipping method yet
|
|
9297
9297
|
cartStoreApplySubtotals({
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9298
|
+
method: (matchLandedCost === null || matchLandedCost === void 0 ? void 0 : matchLandedCost.landedCost.method) || 'DDP',
|
|
9299
|
+
subtotals: {
|
|
9300
|
+
adjustments: subtotals.adjustments,
|
|
9301
|
+
exchangeRate: subtotals.exchangeRate,
|
|
9302
|
+
items: subtotals.items,
|
|
9303
|
+
landedCostTotal: subtotals.landedCostTotal,
|
|
9304
|
+
presentmentCurrencyCode: subtotals.presentmentCurrencyCode,
|
|
9305
|
+
shipping: subtotals.shipping,
|
|
9306
|
+
total: subtotals.total,
|
|
9307
|
+
},
|
|
9305
9308
|
});
|
|
9306
9309
|
}
|
|
9307
9310
|
}
|
|
@@ -9459,7 +9462,7 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
9459
9462
|
* @returns {boolean} whether or not the checkout session is successfully created
|
|
9460
9463
|
*/
|
|
9461
9464
|
const stripeStoreInitCheckoutSession = async () => {
|
|
9462
|
-
var _a;
|
|
9465
|
+
var _a, _b;
|
|
9463
9466
|
const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
|
|
9464
9467
|
if (!total || !localizationStore.targetCurrency) {
|
|
9465
9468
|
logError('Failed to create checkout session - invalid total or currency');
|
|
@@ -9487,7 +9490,10 @@ const stripeStoreInitCheckoutSession = async () => {
|
|
|
9487
9490
|
// update cart store with updated information
|
|
9488
9491
|
cartStoreSetCheckoutSession(result);
|
|
9489
9492
|
stripeStore.clientSecret = result.clientSecret;
|
|
9490
|
-
cartStoreApplySubtotals(
|
|
9493
|
+
cartStoreApplySubtotals({
|
|
9494
|
+
method: ((_b = result.landedCost) === null || _b === void 0 ? void 0 : _b.method) || 'DDP',
|
|
9495
|
+
subtotals: Object.assign(Object.assign({}, result.subtotals), { landedCostTotal: 0, shipping: 0, total: result.subtotals.items }),
|
|
9496
|
+
});
|
|
9491
9497
|
log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
|
|
9492
9498
|
log('done-init-checkout-session');
|
|
9493
9499
|
return true;
|
|
@@ -9654,8 +9660,8 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
|
9654
9660
|
checkoutTimeoutInterval: null,
|
|
9655
9661
|
currency: 'USD',
|
|
9656
9662
|
doneSteps: [],
|
|
9657
|
-
dutiesTaxesFees:
|
|
9658
|
-
dutiesTaxesFeesEstimate:
|
|
9663
|
+
dutiesTaxesFees: null,
|
|
9664
|
+
dutiesTaxesFeesEstimate: null,
|
|
9659
9665
|
error: null,
|
|
9660
9666
|
exchangeRate: null,
|
|
9661
9667
|
externalConfirmationPageURL: null,
|
|
@@ -9779,15 +9785,16 @@ const cartStoreUpdateToErrorState = ({ messages, title, }) => {
|
|
|
9779
9785
|
title,
|
|
9780
9786
|
};
|
|
9781
9787
|
};
|
|
9782
|
-
const cartStoreApplySubtotals = (subtotals,
|
|
9788
|
+
const cartStoreApplySubtotals = ({ dutiesTaxesFeesEstimate, method, subtotals, }) => {
|
|
9783
9789
|
// update exchange rate so we can use it to display cart items
|
|
9784
9790
|
cartStore.exchangeRate = subtotals.exchangeRate;
|
|
9785
9791
|
cartStore.adjustmentTotal = subtotals.adjustments;
|
|
9786
|
-
cartStore.dutiesTaxesFees =
|
|
9792
|
+
cartStore.dutiesTaxesFees =
|
|
9793
|
+
method === 'DAP' ? null : subtotals.landedCostTotal;
|
|
9787
9794
|
cartStore.subtotal = subtotals.items;
|
|
9788
9795
|
cartStore.total = subtotals.total;
|
|
9789
9796
|
cartStore.currency = subtotals.presentmentCurrencyCode;
|
|
9790
|
-
cartStore.dutiesTaxesFeesEstimate = dutiesTaxesFeesEstimate ||
|
|
9797
|
+
cartStore.dutiesTaxesFeesEstimate = dutiesTaxesFeesEstimate || null;
|
|
9791
9798
|
};
|
|
9792
9799
|
/**
|
|
9793
9800
|
* Detect if there are any items in cart that are not restricted and have positive amount, exclude negative amount items
|
|
@@ -9811,10 +9818,15 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
9811
9818
|
}
|
|
9812
9819
|
};
|
|
9813
9820
|
const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, }) => {
|
|
9821
|
+
var _a;
|
|
9814
9822
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
9815
9823
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
9816
9824
|
const subtotals = cartStore.selectedLandedCost.subtotals;
|
|
9817
|
-
cartStoreApplySubtotals(
|
|
9825
|
+
cartStoreApplySubtotals({
|
|
9826
|
+
dutiesTaxesFeesEstimate,
|
|
9827
|
+
method: cartStore.landedCostMethod,
|
|
9828
|
+
subtotals,
|
|
9829
|
+
});
|
|
9818
9830
|
log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
|
|
9819
9831
|
}
|
|
9820
9832
|
// update checkout session
|
|
@@ -9845,7 +9857,10 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
|
|
|
9845
9857
|
if (!landedCostId) {
|
|
9846
9858
|
// This is when we first open the checkout modal and we just want to get info from the old cart session.
|
|
9847
9859
|
// use subtotals from checkout session to update cart total
|
|
9848
|
-
cartStoreApplySubtotals(
|
|
9860
|
+
cartStoreApplySubtotals({
|
|
9861
|
+
method: ((_a = json.checkoutSessionUpdate.landedCost) === null || _a === void 0 ? void 0 : _a.method) || 'DDP',
|
|
9862
|
+
subtotals: json.checkoutSessionUpdate.subtotals,
|
|
9863
|
+
});
|
|
9849
9864
|
log('Exchange rate updated for cart items (checkout session update)', 'info', cartStore.exchangeRate);
|
|
9850
9865
|
}
|
|
9851
9866
|
cartStoreSetCheckoutSession(json.checkoutSessionUpdate);
|
|
@@ -9870,12 +9885,13 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption, lan
|
|
|
9870
9885
|
// do nothing if we can't find landed cost for selected shipping option
|
|
9871
9886
|
return false;
|
|
9872
9887
|
}
|
|
9873
|
-
// If the quote is DAP,
|
|
9874
|
-
const
|
|
9875
|
-
|
|
9876
|
-
const
|
|
9888
|
+
// If the quote is DAP, then convert manually.
|
|
9889
|
+
const landedCostAmount = ((_b = selectedLandedCost.landedCost.amountSubtotals) === null || _b === void 0 ? void 0 : _b.landedCostTotal) || 0;
|
|
9890
|
+
// Convert using checkout presentment exchange rate
|
|
9891
|
+
const exchangeRate = selectedLandedCost.subtotals.exchangeRate.rate;
|
|
9892
|
+
const dutiesTaxesFeesEstimate = landedCostAmount * exchangeRate;
|
|
9877
9893
|
if (dutiesTaxesFeesEstimate) {
|
|
9878
|
-
log(`DAP quote, using estimate
|
|
9894
|
+
log(`DAP quote, using estimate: ${dutiesTaxesFeesEstimate}`, 'info');
|
|
9879
9895
|
}
|
|
9880
9896
|
cartStore.landedCostMethod = selectedLandedCost.landedCost.method || 'DDP';
|
|
9881
9897
|
// update shipping value and dutiesTaxFees on selectedShippingOption change
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as cartStore, l as localizationStore } from './cart-
|
|
1
|
+
import { d as cartStore, l as localizationStore } from './cart-9d7e0950.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-0dc7a947.js';
|
|
3
3
|
import { h as handleFetch } from './handleFetch-0133265e.js';
|
|
4
4
|
|
package/dist/esm/index.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.86.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.') ||
|
|
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
|
|
|
278
278
|
}
|
|
279
279
|
return null;
|
|
280
280
|
})();
|
|
281
|
-
const ZONOS_URL = "https://v1.3.
|
|
282
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
283
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
284
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
281
|
+
const ZONOS_URL = "https://v1.3.86.js.zonos.com";
|
|
282
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.86";
|
|
283
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.86";
|
|
284
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.86";
|
|
285
285
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
286
286
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
287
287
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
296
296
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
297
297
|
Zonos._paypalMockResponse = null;
|
|
298
298
|
Zonos.isBigCommerce = false;
|
|
299
|
-
Zonos.releaseDate = "
|
|
299
|
+
Zonos.releaseDate = "1728763184534";
|
|
300
300
|
Zonos.isLegacyCheckout = false;
|
|
301
301
|
/**
|
|
302
302
|
* By default, the package will load from npm
|
|
@@ -304,7 +304,7 @@ Zonos.isLegacyCheckout = false;
|
|
|
304
304
|
Zonos.isNpm = true;
|
|
305
305
|
Zonos.zonosQaUrl = null;
|
|
306
306
|
Zonos.zonosQaUrlApi = null;
|
|
307
|
-
Zonos.version = `v${"1.3.
|
|
307
|
+
Zonos.version = `v${"1.3.86"}`;
|
|
308
308
|
Zonos.modeAlerted = false;
|
|
309
309
|
Zonos.cartData = null;
|
|
310
310
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-0dc7a947.js';
|
|
2
|
-
import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-9d7e0950.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-0133265e.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-b3afa948.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { j as stripeStore, l as localizationStore, D as DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, t as translate } from './cart-
|
|
2
|
+
import { j as stripeStore, l as localizationStore, D as DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, t as translate } from './cart-9d7e0950.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError } from './handleFetch-0133265e.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, t as translate, F as currencyFormat, G as cartStoreHasOneEligibleItem, H as stripeStoreApplyPromoCode, I as stripeStoreRemovePromoCode, v as stripeStoreReset, j as stripeStore, J as stripeStoreRetrievePayment, K as stripeStoreMessageBasedOnStatus, L as stripeStoreResetPromoCode, l as localizationStore, M as stripeStoreTranslateAddressToLatin, N as cartStoreUpdateSelectedShippingOption, O as cartStoreGetShippingTransitInfo, P as sortServiceLevelOptionsByAmount } from './cart-
|
|
2
|
+
import { d as cartStore, t as translate, F as currencyFormat, G as cartStoreHasOneEligibleItem, H as stripeStoreApplyPromoCode, I as stripeStoreRemovePromoCode, v as stripeStoreReset, j as stripeStore, J as stripeStoreRetrievePayment, K as stripeStoreMessageBasedOnStatus, L as stripeStoreResetPromoCode, l as localizationStore, M as stripeStoreTranslateAddressToLatin, N as cartStoreUpdateSelectedShippingOption, O as cartStoreGetShippingTransitInfo, P as sortServiceLevelOptionsByAmount } from './cart-9d7e0950.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-6c55d504.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.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-e93c38eb.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-cff1e39b.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog } from './handleFetch-0133265e.js';
|
|
9
9
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
@@ -168,14 +168,14 @@ const ZonosCartSubtotal = class {
|
|
|
168
168
|
};
|
|
169
169
|
const renderLandedCost = () => {
|
|
170
170
|
if (cartStore.landedCostMethod === 'DAP') {
|
|
171
|
-
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), cartStore.dutiesTaxesFeesEstimate
|
|
171
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), cartStore.dutiesTaxesFeesEstimate !== null
|
|
172
172
|
? `${translate('Estimated')} ${currencyFormat({
|
|
173
173
|
amount: cartStore.dutiesTaxesFeesEstimate,
|
|
174
174
|
currency: cartStore.currency,
|
|
175
175
|
})}`
|
|
176
176
|
: '-'), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("div", { class: "zonos--cart-duty-tax-price" }, translate('Due at delivery')))));
|
|
177
177
|
}
|
|
178
|
-
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('Nothing due at the door'))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees
|
|
178
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('Nothing due at the door'))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees !== null
|
|
179
179
|
? currencyFormat({
|
|
180
180
|
amount: cartStore.dutiesTaxesFees,
|
|
181
181
|
currency: cartStore.currency,
|
|
@@ -1224,13 +1224,13 @@ const ZonosShipping = class {
|
|
|
1224
1224
|
if (this.showErrorBanner) {
|
|
1225
1225
|
this.showErrorBanner = !this.handleValidate();
|
|
1226
1226
|
}
|
|
1227
|
-
return (h(Host, { key: 'e376545666893a373bca1591083a868892804fb1', class: "zonos--shipping zonos--elements" }, h("div", { key: 'f8901d3d8fbeb6a285a7a33b9cea940476413c68', class: "zonos--group" }, h("zonos-text", { key: '83e02010c5e11647064ebf28468def163dd3395a', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!allServiceLevels.length && (h("zonos-banner", { key: 'e65f0ce2e968612bd7c1efeca8309e69a03a8c65', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: 'cdae794614c6879477e96de435d5c4e59f469fe9', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !allServiceLevels.length ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }),
|
|
1228
|
-
|
|
1227
|
+
return (h(Host, { key: 'e376545666893a373bca1591083a868892804fb1', class: "zonos--shipping zonos--elements" }, h("div", { key: 'f8901d3d8fbeb6a285a7a33b9cea940476413c68', class: "zonos--group" }, h("zonos-text", { key: '83e02010c5e11647064ebf28468def163dd3395a', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!allServiceLevels.length && (h("zonos-banner", { key: 'e65f0ce2e968612bd7c1efeca8309e69a03a8c65', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: 'cdae794614c6879477e96de435d5c4e59f469fe9', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !allServiceLevels.length ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
|
|
1228
|
+
!!this.serviceLevelsDAP.length && (h("button", { class: classes([
|
|
1229
1229
|
'zonos--shipping-options-collapse-trigger',
|
|
1230
1230
|
this.collapsedDAPOptions && 'collapsed',
|
|
1231
1231
|
]), onClick: () => {
|
|
1232
1232
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
1233
|
-
} }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '
|
|
1233
|
+
} }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '2dded1f7168a16ed6432ea0b147b8ec78fd774a6', class: "zonos--group-btn" }, h("zonos-button", { key: '54c05db9336209c34a7c7c518bbdf859e97b51f1', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
1234
1234
|
// use primary type when on mobile mode
|
|
1235
1235
|
variant: this.submitBtnType }, translate('Go to payment'))))));
|
|
1236
1236
|
}
|
|
@@ -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, D as DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, o as cartStoreSetCheckoutSession, p as stripeStorePrefetchLandedCost, q as cartStoreNextStep, r as stripeStoreHandleInventoryCheck, u as stripeStoreConfirmPayment, v as stripeStoreReset, w as localizationStoreOnUpdate } from './cart-
|
|
3
|
-
import { s as submitGtag, p as paypalInitScript } from './paypal-
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, D as DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, o as cartStoreSetCheckoutSession, p as stripeStorePrefetchLandedCost, q as cartStoreNextStep, r as stripeStoreHandleInventoryCheck, u as stripeStoreConfirmPayment, v as stripeStoreReset, w as localizationStoreOnUpdate } from './cart-9d7e0950.js';
|
|
3
|
+
import { s as submitGtag, p as paypalInitScript } from './paypal-6c55d504.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
|
|
5
|
-
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-
|
|
5
|
+
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-e93c38eb.js';
|
|
6
6
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
7
7
|
import { l as log, a as logError, s as sendErrorLog, b as allLogs } from './handleFetch-0133265e.js';
|
|
8
8
|
import { c as classes } from './classes-0d95c529.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { x as isValidSelector, j as stripeStore, y as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { x as isValidSelector, j as stripeStore, y as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-9d7e0950.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-0133265e.js';
|
|
5
5
|
import './isDarkColor-b3afa948.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-9d7e0950.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-0133265e.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-9d7e0950.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-b3afa948.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { t as translate, l as localizationStore, F as currencyFormat } from './cart-
|
|
2
|
+
import { t as translate, l as localizationStore, F as currencyFormat } from './cart-9d7e0950.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
|
|
3
|
-
import { l as localizationStore, x as isValidSelector, t as translate, z as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, E as currencyConvert, F as currencyFormat } from './cart-
|
|
3
|
+
import { l as localizationStore, x as isValidSelector, t as translate, z as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, E as currencyConvert, F as currencyFormat } from './cart-9d7e0950.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-0133265e.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 { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-9d7e0950.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-0133265e.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { j as stripeStore } from './cart-
|
|
4
|
+
import { j as stripeStore } from './cart-9d7e0950.js';
|
|
5
5
|
import { a as logError, l as log } from './handleFetch-0133265e.js';
|
|
6
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
6
|
+
import { d as paypalStoreInitButtons } from './paypal-6c55d504.js';
|
|
7
7
|
import './isDarkColor-b3afa948.js';
|
|
8
8
|
import './getBorderRadius-cff1e39b.js';
|
|
9
9
|
|