@zonos/elements 1.3.42 → 1.3.44

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 (136) hide show
  1. package/dist/cjs/{cart-99a1ed87.js → cart-89b4f62d.js} +412 -59
  2. package/dist/cjs/index.cjs.js +6 -6
  3. package/dist/cjs/{paypal-5509a76f.js → paypal-1a1882c4.js} +1 -1
  4. package/dist/cjs/{sendErrorLog-21996939.js → sendErrorLog-a966a8c1.js} +1 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +3 -3
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +43 -9
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +42 -8
  16. package/dist/collection/components/store/hello/localization.js +12 -19
  17. package/dist/collection/components/store/translationStore/strings.arabic.js +20 -2
  18. package/dist/collection/components/store/translationStore/strings.base.js +20 -2
  19. package/dist/collection/components/store/translationStore/strings.chinese.js +20 -2
  20. package/dist/collection/components/store/translationStore/strings.danish.js +20 -2
  21. package/dist/collection/components/store/translationStore/strings.dutch.js +20 -2
  22. package/dist/collection/components/store/translationStore/strings.french.js +20 -2
  23. package/dist/collection/components/store/translationStore/strings.german.js +20 -2
  24. package/dist/collection/components/store/translationStore/strings.hebrew.js +20 -2
  25. package/dist/collection/components/store/translationStore/strings.indonesian.js +20 -2
  26. package/dist/collection/components/store/translationStore/strings.italian.js +20 -2
  27. package/dist/collection/components/store/translationStore/strings.japanese.js +20 -2
  28. package/dist/collection/components/store/translationStore/strings.korean.js +20 -2
  29. package/dist/collection/components/store/translationStore/strings.norwegian.js +20 -2
  30. package/dist/collection/components/store/translationStore/strings.polish.js +20 -2
  31. package/dist/collection/components/store/translationStore/strings.portuguese.js +20 -2
  32. package/dist/collection/components/store/translationStore/strings.russian.js +20 -2
  33. package/dist/collection/components/store/translationStore/strings.spanish.js +20 -2
  34. package/dist/collection/components/store/translationStore/strings.swedish.js +20 -2
  35. package/dist/collection/components/store/translationStore/strings.turkish.js +20 -2
  36. package/dist/collection/components/store/translationStore/strings.vietnamese.js +20 -2
  37. package/dist/collection/types/generated/graphql.customer.types.js +19 -10
  38. package/dist/esm/{cart-bc217300.js → cart-9f40efd7.js} +412 -59
  39. package/dist/esm/index.js +6 -6
  40. package/dist/esm/{paypal-fa96e7c3.js → paypal-f4bb6ce7.js} +1 -1
  41. package/dist/esm/{sendErrorLog-c40b553a.js → sendErrorLog-aea606c0.js} +1 -1
  42. package/dist/esm/zonos-address_8.entry.js +1 -1
  43. package/dist/esm/zonos-cart-items_12.entry.js +3 -3
  44. package/dist/esm/zonos-checkout.entry.js +3 -3
  45. package/dist/esm/zonos-controller.entry.js +1 -1
  46. package/dist/esm/zonos-country-flag.entry.js +1 -1
  47. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  48. package/dist/esm/zonos-hello-dialog.entry.js +43 -9
  49. package/dist/esm/zonos-hello.entry.js +1 -1
  50. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  51. package/dist/esm/zonos-notification_3.entry.js +2 -2
  52. package/dist/esm-es5/cart-9f40efd7.js +1 -0
  53. package/dist/esm-es5/index.js +1 -1
  54. package/dist/esm-es5/{paypal-fa96e7c3.js → paypal-f4bb6ce7.js} +1 -1
  55. package/dist/esm-es5/{sendErrorLog-c40b553a.js → sendErrorLog-aea606c0.js} +1 -1
  56. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  57. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  58. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  59. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  60. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  61. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  62. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  63. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  64. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  65. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  66. package/dist/scripts/index.d.ts +1 -18
  67. package/dist/scripts/index.js +1 -1
  68. package/dist/scripts/loadZonos.js +1 -1
  69. package/dist/scripts/zonos.js +1 -1
  70. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +1 -0
  71. package/dist/types/components/store/hello/localization.d.ts +2 -2
  72. package/dist/types/components/store/translationStore/strings.arabic.d.ts +19 -1
  73. package/dist/types/components/store/translationStore/strings.base.d.ts +19 -1
  74. package/dist/types/components/store/translationStore/strings.chinese.d.ts +19 -1
  75. package/dist/types/components/store/translationStore/strings.danish.d.ts +19 -1
  76. package/dist/types/components/store/translationStore/strings.dutch.d.ts +19 -1
  77. package/dist/types/components/store/translationStore/strings.french.d.ts +19 -1
  78. package/dist/types/components/store/translationStore/strings.german.d.ts +19 -1
  79. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +19 -1
  80. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +19 -1
  81. package/dist/types/components/store/translationStore/strings.italian.d.ts +19 -1
  82. package/dist/types/components/store/translationStore/strings.japanese.d.ts +19 -1
  83. package/dist/types/components/store/translationStore/strings.korean.d.ts +19 -1
  84. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +19 -1
  85. package/dist/types/components/store/translationStore/strings.polish.d.ts +19 -1
  86. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +19 -1
  87. package/dist/types/components/store/translationStore/strings.russian.d.ts +19 -1
  88. package/dist/types/components/store/translationStore/strings.spanish.d.ts +19 -1
  89. package/dist/types/components/store/translationStore/strings.swedish.d.ts +19 -1
  90. package/dist/types/components/store/translationStore/strings.turkish.d.ts +19 -1
  91. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +19 -1
  92. package/dist/types/components/store/translationStore.d.ts +1 -1
  93. package/dist/types/components/utils/api/getInclusivePricing.d.ts +2 -4
  94. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  95. package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
  96. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
  97. package/dist/types/types/ICountryJson.d.ts +1 -19
  98. package/dist/types/types/generated/graphql.customer.types.d.ts +45 -13
  99. package/dist/types/types/generated/graphql.customer.types.ts +47 -18
  100. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  101. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  102. package/dist/zonos-elements/index.esm.js +1 -1
  103. package/dist/zonos-elements/{p-a0581551.system.js → p-0641784b.system.js} +1 -1
  104. package/dist/zonos-elements/{p-a9ae78e3.entry.js → p-09988f34.entry.js} +1 -1
  105. package/dist/zonos-elements/{p-7d67bbb8.system.entry.js → p-0bfe455c.system.entry.js} +1 -1
  106. package/dist/zonos-elements/{p-2cc469c3.entry.js → p-21d07dda.entry.js} +1 -1
  107. package/dist/zonos-elements/{p-a8a94872.system.js → p-29f4cce5.system.js} +1 -1
  108. package/dist/zonos-elements/{p-23748211.system.entry.js → p-2d01b8e6.system.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-211e3529.system.entry.js → p-2e12d178.system.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-1041cbd0.js → p-3490d40f.js} +1 -1
  111. package/dist/zonos-elements/{p-d27489bb.system.entry.js → p-37c9fdd2.system.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-35679ed2.system.entry.js → p-4204ccf9.system.entry.js} +1 -1
  113. package/dist/zonos-elements/p-43d3cafd.system.js +1 -0
  114. package/dist/zonos-elements/{p-558486eb.entry.js → p-567b457b.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-16dd23e1.entry.js → p-578f42c1.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-7338ea95.system.entry.js → p-5845029a.system.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-668fb530.system.js → p-6f759c76.system.js} +1 -1
  118. package/dist/zonos-elements/{p-fc2676e3.entry.js → p-744180f1.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-23fd4673.entry.js → p-76291114.entry.js} +1 -1
  120. package/dist/zonos-elements/p-7b8099ed.js +1 -0
  121. package/dist/zonos-elements/p-8618e185.entry.js +1 -0
  122. package/dist/zonos-elements/{p-c0aec0ca.system.entry.js → p-8630168f.system.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-5230520c.entry.js → p-8bf1af28.entry.js} +1 -1
  124. package/dist/zonos-elements/{p-29ed14b8.entry.js → p-9aef3a35.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-3b1ea7c8.system.entry.js → p-acf9a97e.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-73c56565.system.entry.js → p-aee29731.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-f59666e6.system.entry.js → p-c10099bd.system.entry.js} +1 -1
  128. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  129. package/dist/zonos-elements/{p-7a902328.entry.js → p-c7952400.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-f97ffbfb.js → p-d99e58f2.js} +1 -1
  131. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  132. package/package.json +9 -2
  133. package/dist/esm-es5/cart-bc217300.js +0 -1
  134. package/dist/zonos-elements/p-68bb8de4.entry.js +0 -1
  135. package/dist/zonos-elements/p-90f517f5.js +0 -1
  136. package/dist/zonos-elements/p-98a0fda1.system.js +0 -1
package/dist/esm/index.js CHANGED
@@ -90,7 +90,7 @@ const getZonosQaUrl = () => {
90
90
  return null;
91
91
  }
92
92
  const qaUrl = extractZonosQaUrl(window.location.href);
93
- const cdnUrl = "https://v1.3.42.js.zonos.com";
93
+ const cdnUrl = "https://v1.3.44.js.zonos.com";
94
94
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
95
95
  if (!qaUrl && cdnUrl.includes('test.')) {
96
96
  return cdnUrl;
@@ -260,10 +260,10 @@ const zonosLoadUrl = (() => {
260
260
  }
261
261
  return null;
262
262
  })();
263
- const ZONOS_URL = "https://v1.3.42.js.zonos.com";
264
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.42";
265
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.42";
266
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.42";
263
+ const ZONOS_URL = "https://v1.3.44.js.zonos.com";
264
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.44";
265
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.44";
266
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.44";
267
267
  const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
268
268
  const INTER_FONT_URL = 'https://rsms.me';
269
269
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
@@ -284,7 +284,7 @@ Zonos.isBigCommerce = false;
284
284
  */
285
285
  Zonos.isNpm = true;
286
286
  Zonos.zonosQaUrl = null;
287
- Zonos.version = `v${"1.3.42"}`;
287
+ Zonos.version = `v${"1.3.44"}`;
288
288
  Zonos.modeAlerted = false;
289
289
  Zonos.tempCartData = null;
290
290
  Zonos.paypal = null;
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-8fc9ceb2.js';
2
- import { w as handleFetch, d as cartStore, q as stripeStoreHandleInventoryCheck, t as translate, p as cartStoreNextStep, h as cartStoreClearCheckoutInterval, x as jsonParse } from './cart-bc217300.js';
2
+ import { w as handleFetch, d as cartStore, q as stripeStoreHandleInventoryCheck, t as translate, p as cartStoreNextStep, h as cartStoreClearCheckoutInterval, x as jsonParse } from './cart-9f40efd7.js';
3
3
  import { t as tinycolor } from './isDarkColor-3119e351.js';
4
4
  import { l as log, a as logError } from './logError-c456c092.js';
5
5
 
@@ -1,4 +1,4 @@
1
- import { w as handleFetch, d as cartStore, l as localizationStore } from './cart-bc217300.js';
1
+ import { w as handleFetch, d as cartStore, l as localizationStore } from './cart-9f40efd7.js';
2
2
  import { z as zonosStore } from './zonosStore-8fc9ceb2.js';
3
3
 
4
4
  const trackConversionEvent = async (eventName, metadata) => {
@@ -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, t as translate } from './cart-bc217300.js';
2
+ import { j as stripeStore, l as localizationStore, t as translate } from './cart-9f40efd7.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
4
  import { a as logError } from './logError-c456c092.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, F as currencyFormat, G as cartStoreHasOneEligibleItem, t as translate, w as handleFetch, u as stripeStoreReset, j as stripeStore, H as stripeStoreRetrievePayment, I as stripeStoreMessageBasedOnStatus, l as localizationStore, J as stripeStoreTranslateAddressToLatin, K as cartStoreUpdateSelectedShippingOption, L as cartStoreGetShippingTransitInfo } from './cart-bc217300.js';
2
+ import { d as cartStore, F as currencyFormat, G as cartStoreHasOneEligibleItem, t as translate, w as handleFetch, u as stripeStoreReset, j as stripeStore, H as stripeStoreRetrievePayment, I as stripeStoreMessageBasedOnStatus, l as localizationStore, J as stripeStoreTranslateAddressToLatin, K as cartStoreUpdateSelectedShippingOption, L as cartStoreGetShippingTransitInfo } from './cart-9f40efd7.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-fa96e7c3.js';
4
+ import { s as submitGtag, a as paypalStore, b as paypalStoreReset, c as paypalStoreHasPaypalEnabled, i as isContrastColor } from './paypal-f4bb6ce7.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
6
- import { t as trackConversionEvent, s as sendErrorLog, c as createCustomEvent, g as getIsTestMode } from './sendErrorLog-c40b553a.js';
6
+ import { t as trackConversionEvent, s as sendErrorLog, c as createCustomEvent, g as getIsTestMode } from './sendErrorLog-aea606c0.js';
7
7
  import { g as getBorderRadius } from './getBorderRadius-3ba98361.js';
8
8
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
9
9
  import { l as languages } from './ILanguage-cd6acb72.js';
@@ -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, o as stripeStorePrefetchLandedCost, p as cartStoreNextStep, q as stripeStoreHandleInventoryCheck, r as stripeStoreConfirmPayment, u as stripeStoreReset, v as localizationStoreOnUpdate } from './cart-bc217300.js';
3
- import { s as submitGtag, p as paypalInitScript } from './paypal-fa96e7c3.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, o as stripeStorePrefetchLandedCost, p as cartStoreNextStep, q as stripeStoreHandleInventoryCheck, r as stripeStoreConfirmPayment, u as stripeStoreReset, v as localizationStoreOnUpdate } from './cart-9f40efd7.js';
3
+ import { s as submitGtag, p as paypalInitScript } from './paypal-f4bb6ce7.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-8fc9ceb2.js';
5
- import { c as createCustomEvent, s as sendErrorLog, t as trackConversionEvent, g as getIsTestMode } from './sendErrorLog-c40b553a.js';
5
+ import { c as createCustomEvent, s as sendErrorLog, t as trackConversionEvent, g as getIsTestMode } from './sendErrorLog-aea606c0.js';
6
6
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
7
7
  import { l as log, a as logError } from './logError-c456c092.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 { w as handleFetch, y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-bc217300.js';
2
+ import { w as handleFetch, y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-9f40efd7.js';
3
3
  import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
4
4
  import { a as logError, l as log } from './logError-c456c092.js';
5
5
  import './isDarkColor-3119e351.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-bc217300.js';
2
+ import { l as localizationStore } from './cart-9f40efd7.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './logError-c456c092.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-bc217300.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-9f40efd7.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
5
  import { i as isDarkColor } from './isDarkColor-3119e351.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-bc217300.js';
2
+ import { t as translate, l as localizationStore, F as currencyFormat } from './cart-9f40efd7.js';
3
3
  import { z as zonosStore } from './zonosStore-8fc9ceb2.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
@@ -58,7 +58,6 @@ const dutyTaxMessage_AU_lowValueGST = `${translate('The low-value GST law passed
58
58
  href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
59
59
  text: translate('Learn more.'),
60
60
  })}`;
61
- const inclusivePriceMessage = translate('Product prices already include duties, taxes, and fees. No additional duties or taxes will be added at checkout, with rare exceptions.');
62
61
  const ZonosHelloDialog = class {
63
62
  constructor(hostRef) {
64
63
  registerInstance(this, hostRef);
@@ -96,7 +95,8 @@ const ZonosHelloDialog = class {
96
95
  return (_a = localizationStore.countryLandedCost) === null || _a === void 0 ? void 0 : _a.hasTaxId;
97
96
  };
98
97
  this.hasInclusivePrices = () => {
99
- return localizationStore.hasInclusivePrices;
98
+ var _a;
99
+ return ((_a = localizationStore.inclusivePricing) === null || _a === void 0 ? void 0 : _a.status) === 'ENABLED';
100
100
  };
101
101
  /**
102
102
  * Some countries don't have threshold. So we need to show generic message for them
@@ -149,7 +149,7 @@ const ZonosHelloDialog = class {
149
149
  ];
150
150
  };
151
151
  this.getAustraliaDutyTaxMessage = (landedCost) => {
152
- if (localizationStore.hasInclusivePrices) {
152
+ if (this.hasInclusivePrices()) {
153
153
  return [dutyTaxMessage_AU_lowValueGST];
154
154
  }
155
155
  return [
@@ -160,7 +160,7 @@ const ZonosHelloDialog = class {
160
160
  ];
161
161
  };
162
162
  this.getNewZealandDutyTaxMessge = (landedCost) => {
163
- if (localizationStore.hasInclusivePrices) {
163
+ if (this.hasInclusivePrices()) {
164
164
  return null;
165
165
  }
166
166
  return [
@@ -170,6 +170,39 @@ const ZonosHelloDialog = class {
170
170
  }),
171
171
  ];
172
172
  };
173
+ this.getInclusivePriceMessage = () => {
174
+ const setting = localizationStore.inclusivePricing;
175
+ if ((setting === null || setting === void 0 ? void 0 : setting.status) !== 'ENABLED') {
176
+ return null;
177
+ }
178
+ if (setting.duty.status === 'INCLUDED' &&
179
+ setting.tax.status === 'INCLUDED' &&
180
+ setting.fee.status === 'INCLUDED') {
181
+ return translate('Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.');
182
+ }
183
+ if (setting.duty.status === 'INCLUDED' &&
184
+ setting.tax.status === 'INCLUDED') {
185
+ return translate('Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.');
186
+ }
187
+ if (setting.duty.status === 'INCLUDED' &&
188
+ setting.fee.status === 'INCLUDED') {
189
+ return translate('Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.');
190
+ }
191
+ if (setting.tax.status === 'INCLUDED' &&
192
+ setting.fee.status === 'INCLUDED') {
193
+ return translate('Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions.');
194
+ }
195
+ if (setting.duty.status === 'INCLUDED') {
196
+ return translate('Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.');
197
+ }
198
+ if (setting.tax.status === 'INCLUDED') {
199
+ return translate('Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions.');
200
+ }
201
+ if (setting.fee.status === 'INCLUDED') {
202
+ return translate('Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.');
203
+ }
204
+ return null;
205
+ };
173
206
  /**
174
207
  * Get additional duty tax message if selected country has tax id
175
208
  */
@@ -216,6 +249,7 @@ const ZonosHelloDialog = class {
216
249
  var _a;
217
250
  const { selectedCountryCode } = localizationStore;
218
251
  const hasInclusivePrices = this.hasInclusivePrices();
252
+ const inclusivePriceMessage = this.getInclusivePriceMessage();
219
253
  // If deminimis is undefined or null, assume it's $0
220
254
  const dutyDeMinimisMessage = this.getDutyMessage();
221
255
  // If deminimis is undefined or null, assume it's $0
@@ -234,18 +268,18 @@ const ZonosHelloDialog = class {
234
268
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
235
269
  const currentPage = this.getCurrentPageEnum();
236
270
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
237
- return (h(Host, { key: '7dec47839d142b9d3580dffda8b8eea28af9974f', class: "zonos--elements" }, h("div", { key: 'ea71e8885de2be45be5a2dcc9dbe44ef99261102', class: classes([
271
+ return (h(Host, { key: 'df052224c778ebfceeef7c827fa3da0e8a2f3dc9', class: "zonos--elements" }, h("div", { key: '0ecff6a07d24a72fb4f200cce82ab09e40b48baf', class: classes([
238
272
  'zonos--hello-dialog',
239
273
  animateLeft && 'zonos--hello-dialog-animate-from-left',
240
274
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
241
275
  !!this.mobileLocationOverride &&
242
276
  'zonos--hello-dialog-mobile-override',
243
277
  this.isOpen && 'zonos--hello-dialog-open',
244
- ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '2e66e1610e534de2fd4f4f5bce29e899f6c65877' }, h("div", { key: '598ffd431b5fcab10f7a7cb3c453fd959abdd881', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '68998e9634998a6b6d244540776c2bc18fb54c27', 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: '660c8ae672b70185a046280d9e27b3fce8ad3e00', spacing: 24 }, h("zonos-country-flag", { key: '46f9733add5cf8038944e2c7c48a14f6f39f831a', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'e0571eae7cfd1a6555b16dd3ac450a8545095231', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'fffa08e2519973aafc2813246b7df2f9e4895a0d', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'ef78eead5a3fd2ce7ad881deb6472ca70e18032d', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: 'cd2632bb7a2655a240715601c32df6c807c283a1', spacing: 8 }, this.restrictedItems.map(item => {
278
+ ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'b2939d49930c8a34288a884582eb849a492080ff' }, h("div", { key: 'f1a22291d7865d57d37cbcd3c8f70c4aea57ed39', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'ee3794826efc9fed856f0a320cf6428a428b4ea4', 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: '3d2ff0b68268c97e385eb3cf7fcc34454d2ed3b5', spacing: 24 }, h("zonos-country-flag", { key: 'e09645ac583e59354d11b3c194d4d3f6d4780c55', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '42017a698c1678b90c8c7bbece5d623d0800e37b', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'ac30b7683dcc65773159832eadad8542d1d1bda8', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '58cc0e8c51774c339b0fc735e4e98917ed614c8a', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '0b3a3b2bf981ed72654506cc31f07edf6268b0a4', spacing: 8 }, this.restrictedItems.map(item => {
245
279
  var _a;
246
280
  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)))));
247
- }), h("zonos-card", { key: 'ad5f69b84e2fd80864a6772216aa28b6558f12c4', spacing: "12px" }, h("zonos-v-stack", { key: '86b8c89c17b9b1348bf56c9a6fa2be3de11cb841', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
248
- additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '2dc162a5dc40d781009379ef8276ebcd38a26494', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'a86eaaa8536432db2d4e63c3d3b4122349edeba6' }, h("zonos-country-select", { key: '2d0ec209c2500763b1656f07f8685818ee329e1e', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'd1c7f801e301635028dd2f6a478a93d72fc968f7' }, h("zonos-language-select", { key: '95e40b3c1e44d437d466fbc704c7e95ebdf8ec3c', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
281
+ }), h("zonos-card", { key: '196a593b167fc979bf0a2bef7f266ad3778f6ca0', spacing: "12px" }, h("zonos-v-stack", { key: '94925c753ddfdd1a659580f7f78f8d6626cdcdaa', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
282
+ additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '540006185ce1d28d610052801dcf9281773c5504', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '886c371fdfa8c9c15188ef9d6cbb637162fb0d27' }, h("zonos-country-select", { key: '1365bee67831b64637e5c481f239c557f2649694', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '44929f0c23627970b1706f6e8c76e51022201379' }, h("zonos-language-select", { key: '86b9f68c84da77f9e1af51dcb7d512eb6b289a27', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
249
283
  }
250
284
  static get assetsDirs() { return ["assets"]; }
251
285
  static get watchers() { return {
@@ -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-8fc9ceb2.js';
3
- import { w as handleFetch, l as localizationStore, y as isValidSelector, t as translate, A as getZCountryUrlParam, B as setZCountryUrlParam, C as currencyDisplay, D as currencyConvertAndFormat, E as currencyConvert, F as currencyFormat } from './cart-bc217300.js';
3
+ import { w as handleFetch, l as localizationStore, y as isValidSelector, t as translate, A as getZCountryUrlParam, B as setZCountryUrlParam, C as currencyDisplay, D as currencyConvertAndFormat, E as currencyConvert, F as currencyFormat } from './cart-9f40efd7.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { a as logError, l as log } from './logError-c456c092.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 { M as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-bc217300.js';
2
+ import { M as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-9f40efd7.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-8fc9ceb2.js';
4
4
  import { l as languages } from './ILanguage-cd6acb72.js';
5
5
  import './logError-c456c092.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-8fc9ceb2.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { j as stripeStore } from './cart-bc217300.js';
4
+ import { j as stripeStore } from './cart-9f40efd7.js';
5
5
  import { a as logError, l as log } from './logError-c456c092.js';
6
- import { d as paypalStoreInitButtons } from './paypal-fa96e7c3.js';
6
+ import { d as paypalStoreInitButtons } from './paypal-f4bb6ce7.js';
7
7
  import './isDarkColor-3119e351.js';
8
8
  import './getBorderRadius-3ba98361.js';
9
9