@zonos/elements 1.3.85 → 1.3.87
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-120d68f9.js} +38 -23
- package/dist/cjs/{createCustomEvent-354c8e63.js → createCustomEvent-ed9156dc.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-1fe5ed0c.js → paypal-875cfaf1.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 +16 -11
- package/dist/collection/types/generated/graphql.frontend.types.js +5 -5
- package/dist/esm/{cart-6c44367a.js → cart-9f1caabf.js} +38 -23
- package/dist/esm/{createCustomEvent-ec15a4a7.js → createCustomEvent-464c49c0.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-a562a640.js → paypal-fb449438.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-9f1caabf.js} +1 -1
- package/dist/esm-es5/{createCustomEvent-ec15a4a7.js → createCustomEvent-464c49c0.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-a562a640.js → paypal-fb449438.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/index.esm.js +1 -1
- package/dist/zonos-elements/{p-1eb59b7c.system.entry.js → p-0b01b9b1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ba198b3.entry.js → p-253cbdae.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9645c27.system.js → p-294026a0.system.js} +1 -1
- package/dist/zonos-elements/{p-63a33354.system.entry.js → p-35577bd8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b4a5b9b.system.entry.js → p-3d521899.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4412b94b.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d7b341e3.system.entry.js → p-49a3a2a5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-35b6b151.system.entry.js → p-5bef550e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-76013796.system.entry.js → p-69bb9b53.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b7fa35e.system.js → p-6c380fa8.system.js} +1 -1
- package/dist/zonos-elements/{p-b5316c2c.entry.js → p-72513d54.entry.js} +1 -1
- package/dist/zonos-elements/p-7f21c1c4.entry.js +1 -0
- package/dist/zonos-elements/{p-a858a304.entry.js → p-7fce2a19.entry.js} +1 -1
- package/dist/zonos-elements/{p-092961f1.system.js → p-89d2a27b.system.js} +1 -1
- package/dist/zonos-elements/{p-01604d44.entry.js → p-92f1cf70.entry.js} +1 -1
- package/dist/zonos-elements/{p-133595ff.system.entry.js → p-94589f18.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3b3cb2a4.entry.js → p-9f36076f.entry.js} +1 -1
- package/dist/zonos-elements/{p-51e2df70.entry.js → p-a7b6fd9c.entry.js} +1 -1
- package/dist/zonos-elements/{p-95241447.entry.js → p-b58f4433.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ebde561.system.entry.js → p-c0a7750c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-ee8b5e53.js → p-cb9ff4df.js} +1 -1
- package/dist/zonos-elements/{p-64b67900.entry.js → p-d33a87fc.entry.js} +1 -1
- package/dist/zonos-elements/{p-08fee913.system.js → p-d7cf2a25.system.js} +1 -1
- package/dist/zonos-elements/{p-cbb742ab.js → p-d81f35bf.js} +2 -2
- package/dist/zonos-elements/{p-c37b99dd.system.entry.js → p-e05eed8e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e78c2429.entry.js → p-e6129027.entry.js} +1 -1
- package/dist/zonos-elements/{p-710ac059.js → p-f7ec6999.js} +1 -1
- 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
|
}
|
|
@@ -9422,7 +9425,7 @@ const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybo
|
|
|
9422
9425
|
};
|
|
9423
9426
|
};
|
|
9424
9427
|
const stripeStoreConfirmPayment = async () => {
|
|
9425
|
-
var _a, _b
|
|
9428
|
+
var _a, _b;
|
|
9426
9429
|
const stripePaymentReady = !!((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
|
|
9427
9430
|
const stripeElements = stripeStore.stripeElements;
|
|
9428
9431
|
const stripe = stripeStore.stripe;
|
|
@@ -9433,7 +9436,6 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
9433
9436
|
if (stripe && stripeElements && stripePaymentReady && stripeClientSecret) {
|
|
9434
9437
|
const { error } = await stripe.confirmPayment({
|
|
9435
9438
|
confirmParams: {
|
|
9436
|
-
receipt_email: (_d = (_c = stripeStore.stripeLinkEventData) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.email,
|
|
9437
9439
|
return_url: window.location.href,
|
|
9438
9440
|
},
|
|
9439
9441
|
elements: stripeElements,
|
|
@@ -9459,7 +9461,7 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
9459
9461
|
* @returns {boolean} whether or not the checkout session is successfully created
|
|
9460
9462
|
*/
|
|
9461
9463
|
const stripeStoreInitCheckoutSession = async () => {
|
|
9462
|
-
var _a;
|
|
9464
|
+
var _a, _b;
|
|
9463
9465
|
const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
|
|
9464
9466
|
if (!total || !localizationStore.targetCurrency) {
|
|
9465
9467
|
logError('Failed to create checkout session - invalid total or currency');
|
|
@@ -9487,7 +9489,10 @@ const stripeStoreInitCheckoutSession = async () => {
|
|
|
9487
9489
|
// update cart store with updated information
|
|
9488
9490
|
cartStoreSetCheckoutSession(result);
|
|
9489
9491
|
stripeStore.clientSecret = result.clientSecret;
|
|
9490
|
-
cartStoreApplySubtotals(
|
|
9492
|
+
cartStoreApplySubtotals({
|
|
9493
|
+
method: ((_b = result.landedCost) === null || _b === void 0 ? void 0 : _b.method) || 'DDP',
|
|
9494
|
+
subtotals: Object.assign(Object.assign({}, result.subtotals), { landedCostTotal: 0, shipping: 0, total: result.subtotals.items }),
|
|
9495
|
+
});
|
|
9491
9496
|
log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
|
|
9492
9497
|
log('done-init-checkout-session');
|
|
9493
9498
|
return true;
|
|
@@ -9654,8 +9659,8 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
|
9654
9659
|
checkoutTimeoutInterval: null,
|
|
9655
9660
|
currency: 'USD',
|
|
9656
9661
|
doneSteps: [],
|
|
9657
|
-
dutiesTaxesFees:
|
|
9658
|
-
dutiesTaxesFeesEstimate:
|
|
9662
|
+
dutiesTaxesFees: null,
|
|
9663
|
+
dutiesTaxesFeesEstimate: null,
|
|
9659
9664
|
error: null,
|
|
9660
9665
|
exchangeRate: null,
|
|
9661
9666
|
externalConfirmationPageURL: null,
|
|
@@ -9779,15 +9784,16 @@ const cartStoreUpdateToErrorState = ({ messages, title, }) => {
|
|
|
9779
9784
|
title,
|
|
9780
9785
|
};
|
|
9781
9786
|
};
|
|
9782
|
-
const cartStoreApplySubtotals = (subtotals,
|
|
9787
|
+
const cartStoreApplySubtotals = ({ dutiesTaxesFeesEstimate, method, subtotals, }) => {
|
|
9783
9788
|
// update exchange rate so we can use it to display cart items
|
|
9784
9789
|
cartStore.exchangeRate = subtotals.exchangeRate;
|
|
9785
9790
|
cartStore.adjustmentTotal = subtotals.adjustments;
|
|
9786
|
-
cartStore.dutiesTaxesFees =
|
|
9791
|
+
cartStore.dutiesTaxesFees =
|
|
9792
|
+
method === 'DAP' ? null : subtotals.landedCostTotal;
|
|
9787
9793
|
cartStore.subtotal = subtotals.items;
|
|
9788
9794
|
cartStore.total = subtotals.total;
|
|
9789
9795
|
cartStore.currency = subtotals.presentmentCurrencyCode;
|
|
9790
|
-
cartStore.dutiesTaxesFeesEstimate = dutiesTaxesFeesEstimate ||
|
|
9796
|
+
cartStore.dutiesTaxesFeesEstimate = dutiesTaxesFeesEstimate || null;
|
|
9791
9797
|
};
|
|
9792
9798
|
/**
|
|
9793
9799
|
* Detect if there are any items in cart that are not restricted and have positive amount, exclude negative amount items
|
|
@@ -9811,10 +9817,15 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
9811
9817
|
}
|
|
9812
9818
|
};
|
|
9813
9819
|
const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, }) => {
|
|
9820
|
+
var _a;
|
|
9814
9821
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
9815
9822
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
9816
9823
|
const subtotals = cartStore.selectedLandedCost.subtotals;
|
|
9817
|
-
cartStoreApplySubtotals(
|
|
9824
|
+
cartStoreApplySubtotals({
|
|
9825
|
+
dutiesTaxesFeesEstimate,
|
|
9826
|
+
method: cartStore.landedCostMethod,
|
|
9827
|
+
subtotals,
|
|
9828
|
+
});
|
|
9818
9829
|
log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
|
|
9819
9830
|
}
|
|
9820
9831
|
// update checkout session
|
|
@@ -9845,7 +9856,10 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
|
|
|
9845
9856
|
if (!landedCostId) {
|
|
9846
9857
|
// This is when we first open the checkout modal and we just want to get info from the old cart session.
|
|
9847
9858
|
// use subtotals from checkout session to update cart total
|
|
9848
|
-
cartStoreApplySubtotals(
|
|
9859
|
+
cartStoreApplySubtotals({
|
|
9860
|
+
method: ((_a = json.checkoutSessionUpdate.landedCost) === null || _a === void 0 ? void 0 : _a.method) || 'DDP',
|
|
9861
|
+
subtotals: json.checkoutSessionUpdate.subtotals,
|
|
9862
|
+
});
|
|
9849
9863
|
log('Exchange rate updated for cart items (checkout session update)', 'info', cartStore.exchangeRate);
|
|
9850
9864
|
}
|
|
9851
9865
|
cartStoreSetCheckoutSession(json.checkoutSessionUpdate);
|
|
@@ -9870,12 +9884,13 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption, lan
|
|
|
9870
9884
|
// do nothing if we can't find landed cost for selected shipping option
|
|
9871
9885
|
return false;
|
|
9872
9886
|
}
|
|
9873
|
-
// If the quote is DAP,
|
|
9874
|
-
const
|
|
9875
|
-
|
|
9876
|
-
const
|
|
9887
|
+
// If the quote is DAP, then convert manually.
|
|
9888
|
+
const landedCostAmount = ((_b = selectedLandedCost.landedCost.amountSubtotals) === null || _b === void 0 ? void 0 : _b.landedCostTotal) || 0;
|
|
9889
|
+
// Convert using checkout presentment exchange rate
|
|
9890
|
+
const exchangeRate = selectedLandedCost.subtotals.exchangeRate.rate;
|
|
9891
|
+
const dutiesTaxesFeesEstimate = landedCostAmount * exchangeRate;
|
|
9877
9892
|
if (dutiesTaxesFeesEstimate) {
|
|
9878
|
-
log(`DAP quote, using estimate
|
|
9893
|
+
log(`DAP quote, using estimate: ${dutiesTaxesFeesEstimate}`, 'info');
|
|
9879
9894
|
}
|
|
9880
9895
|
cartStore.landedCostMethod = selectedLandedCost.landedCost.method || 'DDP';
|
|
9881
9896
|
// 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-9f1caabf.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.87.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.87.js.zonos.com";
|
|
282
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.87";
|
|
283
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.87";
|
|
284
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.87";
|
|
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 = "1728918962245";
|
|
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.87"}`;
|
|
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-9f1caabf.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-9f1caabf.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-9f1caabf.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-fb449438.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-464c49c0.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-9f1caabf.js';
|
|
3
|
+
import { s as submitGtag, p as paypalInitScript } from './paypal-fb449438.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-464c49c0.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-9f1caabf.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-9f1caabf.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-9f1caabf.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-9f1caabf.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-9f1caabf.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-9f1caabf.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-9f1caabf.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-fb449438.js';
|
|
7
7
|
import './isDarkColor-b3afa948.js';
|
|
8
8
|
import './getBorderRadius-cff1e39b.js';
|
|
9
9
|
|