@zonos/elements 1.3.16-alpha.0 → 1.3.16
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-db549f04.js → cart-d25723e7.js} +2 -1
- package/dist/cjs/{submitGtag-fd8acad5.js → submitGtag-484eaf9d.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_9.cjs.entry.js +8 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +13 -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_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -16
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +6 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +12 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +20 -20
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +7 -15
- package/dist/collection/components/store/hello/localization.js +2 -2
- package/dist/components/stripe.js +2 -2
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/zonos-checkout-finish2.js +7 -4
- package/dist/components/zonos-checkout.js +12 -1
- package/dist/components/zonos-controller.js +1 -1
- package/dist/components/zonos-customer-info2.js +1 -1
- package/dist/components/zonos-hello-dialog-footer2.js +1 -1
- package/dist/components/zonos-hello-dialog2.js +8 -16
- package/dist/components/zonos-hello.js +1 -1
- package/dist/components/zonos-language-select2.js +1 -1
- package/dist/components/zonos-shipping2.js +1 -1
- package/dist/esm/{cart-462e89a6.js → cart-02f5c2ea.js} +2 -2
- package/dist/esm/{submitGtag-ac7c3c89.js → submitGtag-ba38e1ac.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +1 -1
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_9.entry.js +8 -5
- package/dist/esm/zonos-checkout.entry.js +13 -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_3.entry.js +2 -2
- package/dist/esm/zonos-hello-dialog.entry.js +8 -16
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/{cart-462e89a6.js → cart-02f5c2ea.js} +1 -1
- package/dist/esm-es5/{submitGtag-ac7c3c89.js → submitGtag-ba38e1ac.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_9.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_3.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-payment.entry.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
- package/dist/types/components/store/hello/localization.d.ts +2 -2
- package/dist/types/types/checkout/CheckoutConfig.d.ts +4 -1
- package/dist/zonos-elements/{p-a6d7ac46.js → p-0265da6f.js} +1 -1
- package/dist/zonos-elements/p-0267a969.entry.js +1 -0
- package/dist/zonos-elements/p-154aaf95.system.js +1 -1
- package/dist/zonos-elements/{p-df192668.system.js → p-168e5b5f.system.js} +1 -1
- package/dist/zonos-elements/p-1b8082dd.entry.js +1 -0
- package/dist/zonos-elements/{p-04df7975.entry.js → p-1ba4cf64.entry.js} +1 -1
- package/dist/zonos-elements/{p-726e2268.system.entry.js → p-239cc943.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dbdebdae.entry.js → p-246133d3.entry.js} +1 -1
- package/dist/zonos-elements/{p-df24d548.system.entry.js → p-47e00966.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-34d0ef7a.system.entry.js → p-532995a4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-54a32fd7.entry.js +1 -0
- package/dist/zonos-elements/{p-5f9c066d.system.entry.js → p-572a4de2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-baee62a4.entry.js → p-57adc7f8.entry.js} +1 -1
- package/dist/zonos-elements/p-5d13795a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ab7ac0db.system.entry.js → p-5e33aab7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-94d6af4b.system.entry.js → p-6dec476d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e1b2b610.entry.js → p-6ece23b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-11f1b78c.entry.js → p-905d842b.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d993965.js → p-981bf71a.js} +1 -1
- package/dist/zonos-elements/{p-9ea84657.system.entry.js → p-9da0562e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3d8667a7.entry.js → p-cf0f8e32.entry.js} +1 -1
- package/dist/zonos-elements/{p-578f0aad.system.js → p-e0e66004.system.js} +1 -1
- package/dist/zonos-elements/p-ed7d251d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a6eeb4bd.system.entry.js → p-f124e659.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df64afdd.entry.js → p-f99eb5e7.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.css +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-5120a57c.entry.js +0 -1
- package/dist/zonos-elements/p-6e9b72e4.entry.js +0 -1
- package/dist/zonos-elements/p-9b8ae241.entry.js +0 -1
- package/dist/zonos-elements/p-ca71b681.system.entry.js +0 -1
- package/dist/zonos-elements/p-fd5d2fc3.system.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-e063389c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { D as currencyFormat, t as translate, l as localizationStore } from './cart-02f5c2ea.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-33ff08ff.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
@@ -75,13 +75,9 @@ const ZonosHelloDialog = class {
|
|
|
75
75
|
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
76
76
|
? currencyFormat(countryLandedCost.dutyDeminimus)
|
|
77
77
|
: null;
|
|
78
|
-
// If Canada, use 40 CAD (courier duty de minimis)
|
|
79
|
-
const dutyDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
80
|
-
? currencyFormat(40)
|
|
81
|
-
: dutyDeminimis;
|
|
82
78
|
// If deminimis is undefined or null, assume it's $0
|
|
83
|
-
return
|
|
84
|
-
? `${translate('Spend')} ${
|
|
79
|
+
return dutyDeminimis
|
|
80
|
+
? `${translate('Spend')} ${dutyDeminimis} ${translate('duty free')}`
|
|
85
81
|
: translate('Duties will apply to all orders');
|
|
86
82
|
};
|
|
87
83
|
this.getTaxMessage = () => {
|
|
@@ -90,12 +86,8 @@ const ZonosHelloDialog = class {
|
|
|
90
86
|
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
91
87
|
? currencyFormat(countryLandedCost.vatTaxDeminimus)
|
|
92
88
|
: null;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
? currencyFormat(150)
|
|
96
|
-
: taxDeminimis;
|
|
97
|
-
return taxDeminimisToUse
|
|
98
|
-
? `${translate('Spend')} ${taxDeminimisToUse} ${translate('tax free')}`
|
|
89
|
+
return taxDeminimis
|
|
90
|
+
? `${translate('Spend')} ${taxDeminimis} ${translate('tax free')}`
|
|
99
91
|
: translate('Taxes will apply to all orders');
|
|
100
92
|
};
|
|
101
93
|
this.getUkDutyTaxMessage = (landedCost) => {
|
|
@@ -182,17 +174,17 @@ const ZonosHelloDialog = class {
|
|
|
182
174
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
183
175
|
const currentPage = this.getCurrentPageEnum();
|
|
184
176
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
185
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: 'e54181bd2c3eb1c77d5dad36c5426f4e9ddee766', class: "zonos--elements" }, h("div", { key: '3960f91898ed2409018cbac487491f38ab0b0c5e', "aria-hidden": "true", class: classes([
|
|
186
178
|
'zonos--hello-dialog',
|
|
187
179
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
188
180
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
189
181
|
!!this.mobileLocationOverride &&
|
|
190
182
|
'zonos--hello-dialog-mobile-override',
|
|
191
183
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
192
|
-
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
184
|
+
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '69c9b9ebe1cdde7a43773eeabfa07e9bb842df14' }, h("div", { key: 'fcad53ed6962a775ec1cb325636db397f34f62b2', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '018c3ce79334f35d6f7c04143b2a1f14c068405f', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '38e19b5e803f0fcd89adf54e95f40549c93ea511', spacing: 24 }, h("zonos-country-flag", { key: '01ea29a0de53d00c9eb49e29fb8680da92656db4', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '7a1dd895a58fdf4e008164828e6ee7bae96723ab', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'a1c334ba3f4e7a15de6f14d17440faae44a26498', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'dad722c938d002eaa223ef847c86bafbe1815bdc', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '1b1d7d1e3ee671fecba8ec2731ffb0f4356af1e7', spacing: 8 }, this.restrictedItems.map(item => {
|
|
193
185
|
var _a;
|
|
194
186
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
195
|
-
}), h("zonos-card", { key: '
|
|
187
|
+
}), h("zonos-card", { key: '0bef1474f44e1a60c48845562f455bfb214bcc80', spacing: "12px" }, h("zonos-v-stack", { key: '5d65f0de1641b30119463da8b42622805fef4f9b', spacing: 12 }, h("div", { key: 'f752d5a9738490220fd4c98615bc7416d38cc2d1', class: "zonos--flex-message" }, h("zonos-icon", { key: '7a9ac42800b0d35a18cc13bd611d79acd20244cf', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '3d31748fcd4c718326ff62ea2e97088d8ab1ed3e' }, dutyDeMinimisMessage)), h("div", { key: '699d72e9efc630452bf947be8f0e44ca09819cfe', class: "zonos--flex-message" }, h("zonos-icon", { key: 'e997263930e53e22c3a4e8dd5f20e1ee3cd695e4', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'e1c2a5ee2718a5446a63c2b8d547848e262817f0' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: '8522ab846d9733fb8ffd3b9873e8b9650aa63b58', class: "zonos--flex-message" }, h("zonos-icon", { key: '20cb281304b9839fe7f30685949af2aa3af9721d', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: '9347d34c8fbfd9bf04ba2b6d79186263b524c2a8' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: 'a6980cae6e361ae1f5b00ec4827127422adee301', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'be7793fb262c395ae96fa6acfe0c14fbf062b1c9' }, h("zonos-country-select", { key: '2224aade7391512826b4b9c46bd826f013945f83', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '006ac0317c9a7911c1e48f7c30f66b3e8882f6d6' }, h("zonos-language-select", { key: '1577f733b5556e7683b6c74dc111e99c77ba0649', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
196
188
|
}
|
|
197
189
|
static get assetsDirs() { return ["assets"]; }
|
|
198
190
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-e063389c.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-33ff08ff.js';
|
|
3
|
-
import {
|
|
3
|
+
import { v as handleFetch, d as logError, l as localizationStore, w as isValidSelector, t as translate, y as getZCountryUrlParam, z as setZCountryUrlParam, a as log, A as currencyDisplay, B as currencyConvertAndFormat, C as currencyConvert, D as currencyFormat } from './cart-02f5c2ea.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
6
6
|
import './isDarkColor-7f62035a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-e063389c.js';
|
|
2
|
-
import { k as stripeStore, d as logError } from './cart-
|
|
2
|
+
import { k as stripeStore, d as logError } from './cart-02f5c2ea.js';
|
|
3
3
|
import './zonosStore-33ff08ff.js';
|
|
4
4
|
import './isDarkColor-7f62035a.js';
|
|
5
5
|
import './getBorderRadius-567f1786.js';
|