@zonos/elements 1.3.137 → 1.3.138
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-dea3242e.js → cart-efd80d55.js} +6 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-729f9ed3.js → paypal-50e03778.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +6 -4
- package/dist/cjs/zonos-checkout.cjs.entry.js +2 -2
- 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-shipping/zonos-shipping.js +4 -2
- package/dist/collection/components/store/checkout/cart.js +1 -0
- package/dist/collection/components/store/checkout/stripe.js +5 -1
- package/dist/esm/{cart-c15cb7dd.js → cart-f0bf7202.js} +6 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-de439a93.js → paypal-65d40ba3.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +6 -4
- package/dist/esm/zonos-checkout.entry.js +2 -2
- 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-c15cb7dd.js → cart-f0bf7202.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-de439a93.js → paypal-65d40ba3.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/scripts/index.d.ts +15 -3
- 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 +1 -0
- package/dist/types/components/utils/api/calculateLandedCost.d.ts +2 -2
- package/dist/types/components/utils/api/calculateLandedCostNormalized.d.ts +2 -2
- package/dist/types/components/utils/api/cartCalculateLandedCost.d.ts +2 -2
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +3 -7
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +21 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-afa5c13c.js → p-09636917.js} +1 -1
- package/dist/zonos-elements/{p-2de631c4.system.entry.js → p-128b1b70.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-910c1247.system.entry.js → p-1af0a800.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0867e94a.entry.js → p-37a127fc.entry.js} +1 -1
- package/dist/zonos-elements/{p-1af38265.system.js → p-4628832d.system.js} +1 -1
- package/dist/zonos-elements/{p-374680fd.system.entry.js → p-47efac28.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5d35e84.entry.js → p-4ab4ba81.entry.js} +1 -1
- package/dist/zonos-elements/{p-765ddab5.system.entry.js → p-52a5bd4c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-611842b5.entry.js → p-58983c97.entry.js} +1 -1
- package/dist/zonos-elements/{p-35ccf9d8.system.entry.js → p-59d0f69b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e9b39df1.system.js → p-6e24b0cf.system.js} +1 -1
- package/dist/zonos-elements/{p-1faa4294.system.entry.js → p-7b34be6e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-938b2b70.js → p-845ad2b8.js} +1 -1
- package/dist/zonos-elements/{p-56e63659.entry.js → p-8880d648.entry.js} +1 -1
- package/dist/zonos-elements/{p-7838aa96.entry.js → p-8e25910c.entry.js} +1 -1
- package/dist/zonos-elements/{p-51f8719d.entry.js → p-b088f65a.entry.js} +1 -1
- package/dist/zonos-elements/{p-940e327f.system.entry.js → p-b6005449.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3039f460.system.entry.js → p-ba26fc96.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4aecf7fc.entry.js → p-bad5200e.entry.js} +1 -1
- package/dist/zonos-elements/{p-c710bde9.system.entry.js → p-c48e735d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-43ac026b.entry.js → p-c5bff157.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-77b2acf4.entry.js → p-c9c4e557.entry.js} +1 -1
- package/dist/zonos-elements/{p-7eceaa3a.system.entry.js → p-d2a77699.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c08bf7d.system.js → p-e309e4a3.system.js} +1 -1
- package/dist/zonos-elements/{p-cb6baa14.entry.js → p-f0ce4d90.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
|
@@ -10079,11 +10079,15 @@ const isPrefetchInfoOutdated = () => {
|
|
|
10079
10079
|
!cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
|
|
10080
10080
|
};
|
|
10081
10081
|
const stripeCalculateLandedCost = async () => {
|
|
10082
|
+
var _a;
|
|
10082
10083
|
const abortController = new AbortController();
|
|
10083
10084
|
stripeStore.fetchingLandedCostAbortController = abortController;
|
|
10084
10085
|
// Reset cart items to non-restricted state and restricted item list
|
|
10085
10086
|
cartStoreResetCartItems();
|
|
10086
|
-
const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
10087
|
+
const { checkoutSessionWorkflow, errors, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
10088
|
+
// update the error message with customized error message that rule is applying to and disabled shippment rating if there is any
|
|
10089
|
+
cartStore.customQuotingError =
|
|
10090
|
+
((_a = errors === null || errors === void 0 ? void 0 : errors.find(error => { var _a; return ((_a = error.extensions) === null || _a === void 0 ? void 0 : _a.ruleMessageType) === 'CUSTOM'; })) === null || _a === void 0 ? void 0 : _a.message) || null;
|
|
10087
10091
|
cartStore.shippingData = sortServiceLevelOptionsByAmount((shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || []);
|
|
10088
10092
|
// check and update cart items with restrictions
|
|
10089
10093
|
cartStoreCheckItemRestrictions(itemCreateWorkflow);
|
|
@@ -10652,6 +10656,7 @@ const { onChange, reset, state: cartStore, } = zonosStore.createStore(() => ({
|
|
|
10652
10656
|
checkoutSessionTimeoutShow: false,
|
|
10653
10657
|
checkoutTimeoutInterval: null,
|
|
10654
10658
|
currency: 'USD',
|
|
10659
|
+
customQuotingError: null,
|
|
10655
10660
|
displayBaseCurrency: false,
|
|
10656
10661
|
dutiesTaxesFees: null,
|
|
10657
10662
|
dutiesTaxesFeesEstimate: null,
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -127,7 +127,7 @@ const getZonosQaUrl = () => {
|
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
129
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
130
|
-
const cdnUrl = "https://v1.3.
|
|
130
|
+
const cdnUrl = "https://v1.3.138.js.zonos.com";
|
|
131
131
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
132
132
|
if (!qaUrl &&
|
|
133
133
|
(cdnUrl.includes('test.') ||
|
|
@@ -311,10 +311,10 @@ const zonosLoadUrl = (() => {
|
|
|
311
311
|
}
|
|
312
312
|
return null;
|
|
313
313
|
})();
|
|
314
|
-
const ZONOS_URL = "https://v1.3.
|
|
315
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
316
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
317
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
314
|
+
const ZONOS_URL = "https://v1.3.138.js.zonos.com";
|
|
315
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.138";
|
|
316
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.138";
|
|
317
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.138";
|
|
318
318
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
319
319
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
320
320
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -329,7 +329,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
329
329
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
330
330
|
Zonos._paypalMockResponse = null;
|
|
331
331
|
Zonos.isBigCommerce = false;
|
|
332
|
-
Zonos.releaseDate = "
|
|
332
|
+
Zonos.releaseDate = "1733759888389";
|
|
333
333
|
Zonos.isLegacyCheckout = false;
|
|
334
334
|
Zonos.domain = typeof window !== 'undefined'
|
|
335
335
|
? // domain that embeds the iframe
|
|
@@ -345,7 +345,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
345
345
|
Zonos.isNpm = true;
|
|
346
346
|
Zonos.zonosQaUrl = null;
|
|
347
347
|
Zonos.zonosQaUrlApi = null;
|
|
348
|
-
Zonos.version = `v${"1.3.
|
|
348
|
+
Zonos.version = `v${"1.3.138"}`;
|
|
349
349
|
Zonos.modeAlerted = false;
|
|
350
350
|
Zonos.cartData = null;
|
|
351
351
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-efd80d55.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-dd6d723b.js');
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
@@ -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-efd80d55.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-50e03778.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
|
|
@@ -2459,13 +2459,15 @@ const ZonosShipping = class {
|
|
|
2459
2459
|
if (this.showErrorBanner) {
|
|
2460
2460
|
this.showErrorBanner = !this.handleValidate();
|
|
2461
2461
|
}
|
|
2462
|
-
return (index.h(index.Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, index.h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, index.h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.
|
|
2462
|
+
return (index.h(index.Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, index.h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, index.h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.cartStore.customQuotingError
|
|
2463
|
+
? cart.cartStore.customQuotingError
|
|
2464
|
+
: cart.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" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
|
|
2463
2465
|
!!this.serviceLevelsDAP.length && (index.h("button", { class: classes.classes([
|
|
2464
2466
|
'zonos--shipping-options-collapse-trigger',
|
|
2465
2467
|
this.collapsedDAPOptions && 'collapsed',
|
|
2466
2468
|
]), onClick: () => {
|
|
2467
2469
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
2468
|
-
} }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '
|
|
2470
|
+
} }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: 'e4edb741bd79d0d5b14385d52a6d110016f9de9e', class: "zonos--group-btn" }, index.h("zonos-button", { key: '6e747d6e499bf322f959af36ff6b784f7fb9a92b', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
2469
2471
|
// use primary type when on mobile mode
|
|
2470
2472
|
variant: this.submitBtnType }, cart.translate('Go to payment'))))));
|
|
2471
2473
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
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-efd80d55.js');
|
|
7
|
+
const paypal = require('./paypal-50e03778.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
9
9
|
require('./isDarkColor-dd6d723b.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-4a90f091.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-dd6d723b.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-efd80d55.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-4a90f091.js');
|
|
@@ -6,9 +6,9 @@ const index = require('./index-d56e0a8b.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
|
|
9
|
-
const cart = require('./cart-
|
|
9
|
+
const cart = require('./cart-efd80d55.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
11
|
-
const paypal = require('./paypal-
|
|
11
|
+
const paypal = require('./paypal-50e03778.js');
|
|
12
12
|
require('./isDarkColor-dd6d723b.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)}";
|
|
@@ -169,13 +169,15 @@ export class ZonosShipping {
|
|
|
169
169
|
if (this.showErrorBanner) {
|
|
170
170
|
this.showErrorBanner = !this.handleValidate();
|
|
171
171
|
}
|
|
172
|
-
return (h(Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle:
|
|
172
|
+
return (h(Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle: cartStore.customQuotingError
|
|
173
|
+
? cartStore.customQuotingError
|
|
174
|
+
: 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 &&
|
|
173
175
|
!!this.serviceLevelsDAP.length && (h("button", { class: classes([
|
|
174
176
|
'zonos--shipping-options-collapse-trigger',
|
|
175
177
|
this.collapsedDAPOptions && 'collapsed',
|
|
176
178
|
]), onClick: () => {
|
|
177
179
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
178
|
-
} }, 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: '
|
|
180
|
+
} }, 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: 'e4edb741bd79d0d5b14385d52a6d110016f9de9e', class: "zonos--group-btn" }, h("zonos-button", { key: '6e747d6e499bf322f959af36ff6b784f7fb9a92b', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
179
181
|
// use primary type when on mobile mode
|
|
180
182
|
variant: this.submitBtnType }, translate('Go to payment'))))));
|
|
181
183
|
}
|
|
@@ -12,6 +12,7 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
|
12
12
|
checkoutSessionTimeoutShow: false,
|
|
13
13
|
checkoutTimeoutInterval: null,
|
|
14
14
|
currency: 'USD',
|
|
15
|
+
customQuotingError: null,
|
|
15
16
|
displayBaseCurrency: false,
|
|
16
17
|
dutiesTaxesFees: null,
|
|
17
18
|
dutiesTaxesFeesEstimate: null,
|
|
@@ -171,11 +171,15 @@ const isPrefetchInfoOutdated = () => {
|
|
|
171
171
|
!cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
|
|
172
172
|
};
|
|
173
173
|
const stripeCalculateLandedCost = async () => {
|
|
174
|
+
var _a;
|
|
174
175
|
const abortController = new AbortController();
|
|
175
176
|
stripeStore.fetchingLandedCostAbortController = abortController;
|
|
176
177
|
// Reset cart items to non-restricted state and restricted item list
|
|
177
178
|
cartStoreResetCartItems();
|
|
178
|
-
const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
179
|
+
const { checkoutSessionWorkflow, errors, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
180
|
+
// update the error message with customized error message that rule is applying to and disabled shippment rating if there is any
|
|
181
|
+
cartStore.customQuotingError =
|
|
182
|
+
((_a = errors === null || errors === void 0 ? void 0 : errors.find(error => { var _a; return ((_a = error.extensions) === null || _a === void 0 ? void 0 : _a.ruleMessageType) === 'CUSTOM'; })) === null || _a === void 0 ? void 0 : _a.message) || null;
|
|
179
183
|
cartStore.shippingData = sortServiceLevelOptionsByAmount((shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || []);
|
|
180
184
|
// check and update cart items with restrictions
|
|
181
185
|
cartStoreCheckItemRestrictions(itemCreateWorkflow);
|
|
@@ -10077,11 +10077,15 @@ const isPrefetchInfoOutdated = () => {
|
|
|
10077
10077
|
!cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
|
|
10078
10078
|
};
|
|
10079
10079
|
const stripeCalculateLandedCost = async () => {
|
|
10080
|
+
var _a;
|
|
10080
10081
|
const abortController = new AbortController();
|
|
10081
10082
|
stripeStore.fetchingLandedCostAbortController = abortController;
|
|
10082
10083
|
// Reset cart items to non-restricted state and restricted item list
|
|
10083
10084
|
cartStoreResetCartItems();
|
|
10084
|
-
const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
10085
|
+
const { checkoutSessionWorkflow, errors, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
10086
|
+
// update the error message with customized error message that rule is applying to and disabled shippment rating if there is any
|
|
10087
|
+
cartStore.customQuotingError =
|
|
10088
|
+
((_a = errors === null || errors === void 0 ? void 0 : errors.find(error => { var _a; return ((_a = error.extensions) === null || _a === void 0 ? void 0 : _a.ruleMessageType) === 'CUSTOM'; })) === null || _a === void 0 ? void 0 : _a.message) || null;
|
|
10085
10089
|
cartStore.shippingData = sortServiceLevelOptionsByAmount((shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || []);
|
|
10086
10090
|
// check and update cart items with restrictions
|
|
10087
10091
|
cartStoreCheckItemRestrictions(itemCreateWorkflow);
|
|
@@ -10650,6 +10654,7 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
|
10650
10654
|
checkoutSessionTimeoutShow: false,
|
|
10651
10655
|
checkoutTimeoutInterval: null,
|
|
10652
10656
|
currency: 'USD',
|
|
10657
|
+
customQuotingError: null,
|
|
10653
10658
|
displayBaseCurrency: false,
|
|
10654
10659
|
dutiesTaxesFees: null,
|
|
10655
10660
|
dutiesTaxesFeesEstimate: null,
|
package/dist/esm/index.js
CHANGED
|
@@ -124,7 +124,7 @@ const getZonosQaUrl = () => {
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
127
|
-
const cdnUrl = "https://v1.3.
|
|
127
|
+
const cdnUrl = "https://v1.3.138.js.zonos.com";
|
|
128
128
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
129
129
|
if (!qaUrl &&
|
|
130
130
|
(cdnUrl.includes('test.') ||
|
|
@@ -308,10 +308,10 @@ const zonosLoadUrl = (() => {
|
|
|
308
308
|
}
|
|
309
309
|
return null;
|
|
310
310
|
})();
|
|
311
|
-
const ZONOS_URL = "https://v1.3.
|
|
312
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
313
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
314
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
311
|
+
const ZONOS_URL = "https://v1.3.138.js.zonos.com";
|
|
312
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.138";
|
|
313
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.138";
|
|
314
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.138";
|
|
315
315
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
316
316
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
317
317
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -326,7 +326,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
326
326
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
327
327
|
Zonos._paypalMockResponse = null;
|
|
328
328
|
Zonos.isBigCommerce = false;
|
|
329
|
-
Zonos.releaseDate = "
|
|
329
|
+
Zonos.releaseDate = "1733759888389";
|
|
330
330
|
Zonos.isLegacyCheckout = false;
|
|
331
331
|
Zonos.domain = typeof window !== 'undefined'
|
|
332
332
|
? // domain that embeds the iframe
|
|
@@ -342,7 +342,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
342
342
|
Zonos.isNpm = true;
|
|
343
343
|
Zonos.zonosQaUrl = null;
|
|
344
344
|
Zonos.zonosQaUrlApi = null;
|
|
345
|
-
Zonos.version = `v${"1.3.
|
|
345
|
+
Zonos.version = `v${"1.3.138"}`;
|
|
346
346
|
Zonos.modeAlerted = false;
|
|
347
347
|
Zonos.cartData = null;
|
|
348
348
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-c493c4fe.js';
|
|
2
|
-
import { e as cartStore, x as stripeStoreHandleInventoryCheck, q as translate, w as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { e as cartStore, x as stripeStoreHandleInventoryCheck, q as translate, w as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-f0bf7202.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-22cb914b.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-c6924924.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 { f as stripeStore, S as getFallbackDefaultCountryCode, l as localizationStore, q as translate } from './cart-
|
|
2
|
+
import { f as stripeStore, S as getFallbackDefaultCountryCode, l as localizationStore, q as translate } from './cart-f0bf7202.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError, l as log } from './handleFetch-22cb914b.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { e as cartStore, I as currencyFormat, q as translate, J as cartStoreHasOneEligibleItem, K as stripeStoreApplyPromoCode, L as stripeStoreRemovePromoCode, A as stripeStoreReset, f as stripeStore, d as stripeStoreRetrievePayment, t as trackConversionEvent, M as stripeStoreResetPromoCode, N as stripeStoreMessageBasedOnStatus, l as localizationStore, O as stripeStoreTranslateAddressToLatin, P as cartStoreUpdateSelectedShippingOption, Q as cartStoreGetShippingTransitInfo, R as sortServiceLevelOptionsByAmount } from './cart-
|
|
2
|
+
import { e as cartStore, I as currencyFormat, q as translate, J as cartStoreHasOneEligibleItem, K as stripeStoreApplyPromoCode, L as stripeStoreRemovePromoCode, A as stripeStoreReset, f as stripeStore, d as stripeStoreRetrievePayment, t as trackConversionEvent, M as stripeStoreResetPromoCode, N as stripeStoreMessageBasedOnStatus, l as localizationStore, O as stripeStoreTranslateAddressToLatin, P as cartStoreUpdateSelectedShippingOption, Q as cartStoreGetShippingTransitInfo, R as sortServiceLevelOptionsByAmount } from './cart-f0bf7202.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-
|
|
4
|
+
import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-65d40ba3.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
|
|
6
6
|
import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
|
|
@@ -2455,13 +2455,15 @@ const ZonosShipping = class {
|
|
|
2455
2455
|
if (this.showErrorBanner) {
|
|
2456
2456
|
this.showErrorBanner = !this.handleValidate();
|
|
2457
2457
|
}
|
|
2458
|
-
return (h(Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle:
|
|
2458
|
+
return (h(Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle: cartStore.customQuotingError
|
|
2459
|
+
? cartStore.customQuotingError
|
|
2460
|
+
: 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 &&
|
|
2459
2461
|
!!this.serviceLevelsDAP.length && (h("button", { class: classes([
|
|
2460
2462
|
'zonos--shipping-options-collapse-trigger',
|
|
2461
2463
|
this.collapsedDAPOptions && 'collapsed',
|
|
2462
2464
|
]), onClick: () => {
|
|
2463
2465
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
2464
|
-
} }, 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: '
|
|
2466
|
+
} }, 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: 'e4edb741bd79d0d5b14385d52a6d110016f9de9e', class: "zonos--group-btn" }, h("zonos-button", { key: '6e747d6e499bf322f959af36ff6b784f7fb9a92b', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
2465
2467
|
// use primary type when on mobile mode
|
|
2466
2468
|
variant: this.submitBtnType }, translate('Go to payment'))))));
|
|
2467
2469
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as cartStoreStartCheckoutInterval, t as trackConversionEvent, o as getCheckoutSessionBody, p as cartStoreUpdateToErrorState, q as translate, r as getZCountryUrlParam, u as cartStoreSetCheckoutSession, v as stripeStorePrefetchLandedCost, w as cartStoreNextStep, x as stripeStoreHandleInventoryCheck, y as stripeStoreConfirmPayment, z as stripeStoreHandleInventoryRefund, A as stripeStoreReset, B as localizationStoreOnUpdate } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a 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 stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as cartStoreStartCheckoutInterval, t as trackConversionEvent, o as getCheckoutSessionBody, p as cartStoreUpdateToErrorState, q as translate, r as getZCountryUrlParam, u as cartStoreSetCheckoutSession, v as stripeStorePrefetchLandedCost, w as cartStoreNextStep, x as stripeStoreHandleInventoryCheck, y as stripeStoreConfirmPayment, z as stripeStoreHandleInventoryRefund, A as stripeStoreReset, B as localizationStoreOnUpdate } from './cart-f0bf7202.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-65d40ba3.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-c493c4fe.js';
|
|
5
5
|
import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-22cb914b.js';
|
|
6
6
|
import { g as getIsTestMode, c as createCustomEvent } from './createCustomEvent-31a792d3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { C as isValidSelector, f as stripeStore, D as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { C as isValidSelector, f as stripeStore, D as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-f0bf7202.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
|
|
4
4
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-22cb914b.js';
|
|
5
5
|
import './isDarkColor-c6924924.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-f0bf7202.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-22cb914b.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, q as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, q as translate, l as localizationStore } from './cart-f0bf7202.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-c6924924.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 { q as translate, l as localizationStore, I as currencyFormat } from './cart-
|
|
2
|
+
import { q as translate, l as localizationStore, I as currencyFormat } from './cart-f0bf7202.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-c493c4fe.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-c493c4fe.js';
|
|
3
|
-
import { l as localizationStore, C as isValidSelector, q as translate, r as getZCountryUrlParam, E as setZCountryUrlParam, F as currencyDisplay, G as currencyConvertAndFormat, H as currencyConvert, I as currencyFormat } from './cart-
|
|
3
|
+
import { l as localizationStore, C as isValidSelector, q as translate, r as getZCountryUrlParam, E as setZCountryUrlParam, F as currencyDisplay, G as currencyConvertAndFormat, H as currencyConvert, I as currencyFormat } from './cart-f0bf7202.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-22cb914b.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 { T as localizationStoreUpdateSelectedLocale, q as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { T as localizationStoreUpdateSelectedLocale, q as translate, l as localizationStore } from './cart-f0bf7202.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-22cb914b.js';
|
|
@@ -2,9 +2,9 @@ import { r as registerInstance, h, H as Host, d as getElement, c as createEvent
|
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
|
|
5
|
-
import { f as stripeStore } from './cart-
|
|
5
|
+
import { f as stripeStore } from './cart-f0bf7202.js';
|
|
6
6
|
import { a as logError, l as log } from './handleFetch-22cb914b.js';
|
|
7
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
7
|
+
import { d as paypalStoreInitButtons } from './paypal-65d40ba3.js';
|
|
8
8
|
import './isDarkColor-c6924924.js';
|
|
9
9
|
|
|
10
10
|
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)}";
|