@zonos/elements 1.3.16-alpha.0 → 1.3.17

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.
Files changed (92) hide show
  1. package/dist/cjs/{cart-db549f04.js → cart-d25723e7.js} +2 -1
  2. package/dist/cjs/{submitGtag-fd8acad5.js → submitGtag-484eaf9d.js} +1 -1
  3. package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
  4. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  5. package/dist/cjs/zonos-cart-items_9.cjs.entry.js +8 -5
  6. package/dist/cjs/zonos-checkout.cjs.entry.js +13 -2
  7. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  8. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-select_3.cjs.entry.js +2 -2
  10. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -16
  11. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
  13. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +6 -3
  14. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +12 -1
  15. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +20 -20
  16. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +7 -15
  17. package/dist/collection/components/store/hello/localization.js +2 -2
  18. package/dist/collection/scripts/zonosBase.js +2 -5
  19. package/dist/components/stripe.js +2 -2
  20. package/dist/components/trackConversionEvent.js +1 -1
  21. package/dist/components/zonos-checkout-finish2.js +7 -4
  22. package/dist/components/zonos-checkout.js +12 -1
  23. package/dist/components/zonos-controller.js +1 -1
  24. package/dist/components/zonos-customer-info2.js +1 -1
  25. package/dist/components/zonos-hello-dialog-footer2.js +1 -1
  26. package/dist/components/zonos-hello-dialog2.js +8 -16
  27. package/dist/components/zonos-hello.js +1 -1
  28. package/dist/components/zonos-language-select2.js +1 -1
  29. package/dist/components/zonos-shipping2.js +1 -1
  30. package/dist/esm/{cart-462e89a6.js → cart-02f5c2ea.js} +2 -2
  31. package/dist/esm/{submitGtag-ac7c3c89.js → submitGtag-ba38e1ac.js} +1 -1
  32. package/dist/esm/zonos-address_8.entry.js +1 -1
  33. package/dist/esm/zonos-card_2.entry.js +1 -1
  34. package/dist/esm/zonos-cart-items_9.entry.js +8 -5
  35. package/dist/esm/zonos-checkout.entry.js +13 -2
  36. package/dist/esm/zonos-controller.entry.js +1 -1
  37. package/dist/esm/zonos-country-flag.entry.js +1 -1
  38. package/dist/esm/zonos-country-select_3.entry.js +2 -2
  39. package/dist/esm/zonos-hello-dialog.entry.js +8 -16
  40. package/dist/esm/zonos-hello.entry.js +1 -1
  41. package/dist/esm/zonos-payment.entry.js +1 -1
  42. package/dist/esm-es5/{cart-462e89a6.js → cart-02f5c2ea.js} +1 -1
  43. package/dist/esm-es5/{submitGtag-ac7c3c89.js → submitGtag-ba38e1ac.js} +1 -1
  44. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  45. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  46. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
  47. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  48. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  49. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  50. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  51. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  52. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  53. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  54. package/dist/scripts/loadZonos.js +1 -1
  55. package/dist/scripts/zonos.js +1 -1
  56. package/dist/scripts/zonosBase.js +1 -1
  57. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
  58. package/dist/types/components/store/hello/localization.d.ts +2 -2
  59. package/dist/types/types/checkout/CheckoutConfig.d.ts +4 -1
  60. package/dist/zonos-elements/{p-a6d7ac46.js → p-0265da6f.js} +1 -1
  61. package/dist/zonos-elements/p-0267a969.entry.js +1 -0
  62. package/dist/zonos-elements/p-154aaf95.system.js +1 -1
  63. package/dist/zonos-elements/{p-df192668.system.js → p-168e5b5f.system.js} +1 -1
  64. package/dist/zonos-elements/p-1b8082dd.entry.js +1 -0
  65. package/dist/zonos-elements/{p-04df7975.entry.js → p-1ba4cf64.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-726e2268.system.entry.js → p-239cc943.system.entry.js} +1 -1
  67. package/dist/zonos-elements/{p-dbdebdae.entry.js → p-246133d3.entry.js} +1 -1
  68. package/dist/zonos-elements/{p-df24d548.system.entry.js → p-47e00966.system.entry.js} +1 -1
  69. package/dist/zonos-elements/{p-34d0ef7a.system.entry.js → p-532995a4.system.entry.js} +1 -1
  70. package/dist/zonos-elements/p-54a32fd7.entry.js +1 -0
  71. package/dist/zonos-elements/{p-5f9c066d.system.entry.js → p-572a4de2.system.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-baee62a4.entry.js → p-57adc7f8.entry.js} +1 -1
  73. package/dist/zonos-elements/p-5d13795a.system.entry.js +1 -0
  74. package/dist/zonos-elements/{p-ab7ac0db.system.entry.js → p-5e33aab7.system.entry.js} +1 -1
  75. package/dist/zonos-elements/{p-94d6af4b.system.entry.js → p-6dec476d.system.entry.js} +1 -1
  76. package/dist/zonos-elements/{p-e1b2b610.entry.js → p-6ece23b9.entry.js} +1 -1
  77. package/dist/zonos-elements/{p-11f1b78c.entry.js → p-905d842b.entry.js} +1 -1
  78. package/dist/zonos-elements/{p-5d993965.js → p-981bf71a.js} +1 -1
  79. package/dist/zonos-elements/{p-9ea84657.system.entry.js → p-9da0562e.system.entry.js} +1 -1
  80. package/dist/zonos-elements/{p-3d8667a7.entry.js → p-cf0f8e32.entry.js} +1 -1
  81. package/dist/zonos-elements/{p-578f0aad.system.js → p-e0e66004.system.js} +1 -1
  82. package/dist/zonos-elements/p-ed7d251d.system.entry.js +1 -0
  83. package/dist/zonos-elements/{p-a6eeb4bd.system.entry.js → p-f124e659.system.entry.js} +1 -1
  84. package/dist/zonos-elements/{p-df64afdd.entry.js → p-f99eb5e7.entry.js} +1 -1
  85. package/dist/zonos-elements/zonos-elements.css +1 -1
  86. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  87. package/package.json +1 -1
  88. package/dist/zonos-elements/p-5120a57c.entry.js +0 -1
  89. package/dist/zonos-elements/p-6e9b72e4.entry.js +0 -1
  90. package/dist/zonos-elements/p-9b8ae241.entry.js +0 -1
  91. package/dist/zonos-elements/p-ca71b681.system.entry.js +0 -1
  92. 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 { C as currencyFormat, l as localizationStore, t as translate } from './cart-462e89a6.js';
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 dutyDeminimisToUse
84
- ? `${translate('Spend')} ${dutyDeminimisToUse} ${translate('duty free')}`
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
- // If Canada, use 150 CAD (courier tax de minimis)
94
- const taxDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
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: '7e8de73755369d6e94a502ad580f051fa6c8da6d', class: "zonos--elements" }, h("div", { key: '1680bee2115bd6b9c21cf7288aac99343a106fc6', "aria-hidden": "true", class: classes([
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: '878dfde3a7df3cb257a3344a7d45b5d09f06abdd' }, h("div", { key: '167f9ad860c1d8acf36bde0ebf718d3e7e37a1e5', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '5aa8eeb4b01fb2282b881377ba4bf11cd7caa623', 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: 'aee8f07760b9f68abd57476683cf2b450a20e09e', spacing: 24 }, h("zonos-country-flag", { key: 'd71c48fb777ef4a7e15d419e4902ba1b0f4ca212', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'a00c00aaf92c76c1e7e207fb301c3e5002a83407', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '77c763fa74510d3a182a4f6f1b4f48eab6498573', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '3d3a634aee3b4277460de8f977a901ae29f5baac', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '85237fae85ab07206bcdfff86de4cfae928fb730', spacing: 8 }, this.restrictedItems.map(item => {
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: '7538d03f14fe518406f2a16afff5e08460fbbc37', spacing: "12px" }, h("zonos-v-stack", { key: 'e8e7d5dd2765b70b38e22028a0cd084a826bafbd', spacing: 12 }, h("div", { key: '0822cd8d0023b2dbf2f99e957d0cd7c0ddab5d30', class: "zonos--flex-message" }, h("zonos-icon", { key: '098699a08612c6bccd07a32597f4cb69b111ddbd', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '28e26206a7a4eb7604030f3612265e0b623f17a5' }, dutyDeMinimisMessage)), h("div", { key: '2128d439fa2bdf1304979b8f4a1c4e438d11cced', class: "zonos--flex-message" }, h("zonos-icon", { key: 'd1fa307f787d7f8f36b31e13208761fd841603fe', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'b29a178d243d8b0300adef157a03e8f80e8d6590' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: '2c764bc1c8eb74f6ea036c6bab4ac7ba12753531', class: "zonos--flex-message" }, h("zonos-icon", { key: '91277f65b642b8e79a04839f7fbf3f1886d3585b', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: 'cabce597179bdf0a92334e0e72297661c9d6cd67' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '6582cdaa19e7252b4c6401c1a69bd9df7b690b3c', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'f10d4c707e32dd77888292cbfec2bf4fe71f4467' }, h("zonos-country-select", { key: '5f09ef49c781096248104eb77845b783aa3d6d56', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '8985543a50da7be63ddfbf40a01e5a6af3e9d7b9' }, h("zonos-language-select", { key: '9b2197ea5b765a5d15a02522a14e959100254669', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
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 { u as handleFetch, d as logError, l as localizationStore, v as isValidSelector, t as translate, x as getZCountryUrlParam, y as setZCountryUrlParam, a as log, z as currencyDisplay, A as currencyConvertAndFormat, B as currencyConvert, C as currencyFormat } from './cart-462e89a6.js';
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-462e89a6.js';
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';