@zonos/elements 1.3.205 → 1.3.206

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 (125) hide show
  1. package/dist/cjs/{cart-193af95a.js → cart-3d961c6e.js} +1 -1
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/{localization-88da0959.js → localization-ff33875b.js} +420 -181
  4. package/dist/cjs/{paypal-8525404c.js → paypal-dee5c109.js} +2 -2
  5. package/dist/cjs/zonos-address_11.cjs.entry.js +2 -2
  6. package/dist/cjs/zonos-cart-items_14.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 +2 -2
  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-empty-state-payment_4.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +82 -24
  13. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  15. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +81 -23
  16. package/dist/collection/components/store/translationStore/strings.arabic.js +21 -9
  17. package/dist/collection/components/store/translationStore/strings.base.js +21 -10
  18. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -9
  19. package/dist/collection/components/store/translationStore/strings.danish.js +21 -9
  20. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -9
  21. package/dist/collection/components/store/translationStore/strings.french.js +21 -9
  22. package/dist/collection/components/store/translationStore/strings.german.js +21 -9
  23. package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -9
  24. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -9
  25. package/dist/collection/components/store/translationStore/strings.italian.js +21 -9
  26. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -9
  27. package/dist/collection/components/store/translationStore/strings.korean.js +21 -9
  28. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -9
  29. package/dist/collection/components/store/translationStore/strings.polish.js +21 -9
  30. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -9
  31. package/dist/collection/components/store/translationStore/strings.russian.js +21 -9
  32. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -9
  33. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -9
  34. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -9
  35. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -9
  36. package/dist/esm/{cart-a921e0b7.js → cart-5835676d.js} +1 -1
  37. package/dist/esm/index.js +7 -7
  38. package/dist/esm/{localization-a2b8f9ed.js → localization-4c7f64e8.js} +420 -181
  39. package/dist/esm/{paypal-67d51f03.js → paypal-b4f106be.js} +2 -2
  40. package/dist/esm/zonos-address_11.entry.js +2 -2
  41. package/dist/esm/zonos-cart-items_14.entry.js +3 -3
  42. package/dist/esm/zonos-checkout.entry.js +3 -3
  43. package/dist/esm/zonos-controller.entry.js +2 -2
  44. package/dist/esm/zonos-country-flag.entry.js +1 -1
  45. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  46. package/dist/esm/zonos-empty-state-payment_4.entry.js +3 -3
  47. package/dist/esm/zonos-hello-dialog.entry.js +82 -24
  48. package/dist/esm/zonos-hello.entry.js +1 -1
  49. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  50. package/dist/esm-es5/{cart-a921e0b7.js → cart-5835676d.js} +1 -1
  51. package/dist/esm-es5/index.js +1 -1
  52. package/dist/esm-es5/localization-4c7f64e8.js +1 -0
  53. package/dist/esm-es5/{paypal-67d51f03.js → paypal-b4f106be.js} +1 -1
  54. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  55. package/dist/esm-es5/zonos-cart-items_14.entry.js +1 -1
  56. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  57. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  58. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  59. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  60. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  61. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  62. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  63. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  64. package/dist/scripts/index.js +1 -1
  65. package/dist/scripts/loadZonos.js +1 -1
  66. package/dist/scripts/zonos.js +1 -1
  67. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +3 -0
  68. package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -6
  69. package/dist/types/components/store/translationStore/strings.base.d.ts +18 -6
  70. package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -6
  71. package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -6
  72. package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -6
  73. package/dist/types/components/store/translationStore/strings.french.d.ts +18 -6
  74. package/dist/types/components/store/translationStore/strings.german.d.ts +18 -6
  75. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -6
  76. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -6
  77. package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -6
  78. package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -6
  79. package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -6
  80. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -6
  81. package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -6
  82. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -6
  83. package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -6
  84. package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -6
  85. package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -6
  86. package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -6
  87. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -6
  88. package/dist/types/types/index.d.ts +1 -0
  89. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  90. package/dist/zonos-elements/index.esm.js +1 -1
  91. package/dist/zonos-elements/{p-16e858f9.entry.js → p-051e0e48.entry.js} +1 -1
  92. package/dist/zonos-elements/{p-8debefec.system.entry.js → p-265af369.system.entry.js} +1 -1
  93. package/dist/zonos-elements/p-30778fde.system.entry.js +1 -0
  94. package/dist/zonos-elements/{p-ebe08e44.entry.js → p-3505e4c4.entry.js} +1 -1
  95. package/dist/zonos-elements/{p-6d467dfb.entry.js → p-3a50124e.entry.js} +1 -1
  96. package/dist/zonos-elements/p-3ee44728.system.js +1 -1
  97. package/dist/zonos-elements/p-41c1d7c4.entry.js +1 -0
  98. package/dist/zonos-elements/{p-87e807b4.entry.js → p-42a9557f.entry.js} +1 -1
  99. package/dist/zonos-elements/{p-90c185ac.entry.js → p-47e2cd31.entry.js} +1 -1
  100. package/dist/zonos-elements/{p-d649fb9a.system.entry.js → p-4cb8b87f.system.entry.js} +1 -1
  101. package/dist/zonos-elements/p-4e9c8f9e.system.js +1 -0
  102. package/dist/zonos-elements/{p-05a91fe6.entry.js → p-5616b304.entry.js} +1 -1
  103. package/dist/zonos-elements/{p-dfe7d1dd.js → p-658936c9.js} +2 -2
  104. package/dist/zonos-elements/{p-be53e893.system.js → p-666164d9.system.js} +1 -1
  105. package/dist/zonos-elements/{p-28fcd277.system.js → p-91c996d3.system.js} +1 -1
  106. package/dist/zonos-elements/{p-f98276ed.entry.js → p-a2b55d11.entry.js} +1 -1
  107. package/dist/zonos-elements/{p-3c921768.system.entry.js → p-aafcd40f.system.entry.js} +1 -1
  108. package/dist/zonos-elements/{p-0d7af8be.system.entry.js → p-abe218ab.system.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-dd0f8f06.system.entry.js → p-ba027b70.system.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-91fc6911.entry.js → p-bab19e2a.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-5fbaa153.system.entry.js → p-c4e0f49a.system.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-69577745.system.js → p-d5f7f7e6.system.js} +1 -1
  113. package/dist/zonos-elements/{p-dcbd57df.entry.js → p-dbd23bea.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-20ac92e1.system.entry.js → p-ea88baa9.system.entry.js} +1 -1
  115. package/dist/zonos-elements/p-edcfb3a3.js +1 -0
  116. package/dist/zonos-elements/{p-4329f616.system.entry.js → p-f4d741de.system.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-ee7a661d.system.entry.js → p-f8bfc320.system.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-8e000d8d.js → p-f9664811.js} +1 -1
  119. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  120. package/package.json +1 -1
  121. package/dist/esm-es5/localization-a2b8f9ed.js +0 -1
  122. package/dist/zonos-elements/p-0d2df4d2.system.js +0 -1
  123. package/dist/zonos-elements/p-43b72ad6.system.entry.js +0 -1
  124. package/dist/zonos-elements/p-8609e956.js +0 -1
  125. package/dist/zonos-elements/p-e0ebbefe.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-1e015fa5.js';
2
- import { t as trackConversionEvent, z as validateCheckoutSession, c as stripeStore, e as cartStore, v as stripeStoreHandleInventoryCheck, r as cartStoreNextStep, j as cartStoreClearCheckoutInterval } from './cart-a921e0b7.js';
3
- import { t as translate, s as storageStore } from './localization-a2b8f9ed.js';
2
+ import { t as trackConversionEvent, z as validateCheckoutSession, c as stripeStore, e as cartStore, v as stripeStoreHandleInventoryCheck, r as cartStoreNextStep, j as cartStoreClearCheckoutInterval } from './cart-5835676d.js';
3
+ import { t as translate, s as storageStore } from './localization-4c7f64e8.js';
4
4
  import { h as handleFetch, l as log, b as logError, j as jsonParse } from './handleFetch-621e45bc.js';
5
5
  import { t as tinycolor } from './isDarkColor-d8bb8659.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-5ea9f81d.js';
2
- import { c as stripeStore, t as trackConversionEvent, e as cartStore } from './cart-a921e0b7.js';
3
- import { s as storageStore, n as storageStoreOnChange, o as getFallbackDefaultCountryCode, t as translate, l as localizationStore } from './localization-a2b8f9ed.js';
2
+ import { c as stripeStore, t as trackConversionEvent, e as cartStore } from './cart-5835676d.js';
3
+ import { s as storageStore, n as storageStoreOnChange, o as getFallbackDefaultCountryCode, t as translate, l as localizationStore } from './localization-4c7f64e8.js';
4
4
  import { z as zonosStore, d as zonosStoreFontFamily, f as isObject_1 } from './zonosStore-1e015fa5.js';
5
5
  import { b as logError, l as log, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
6
6
  import { s as shouldRenderTaxIdInput, i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-5ea9f81d.js';
2
- import { e as cartStore, A as cartStoreHasOneEligibleItem, B as stripeStoreApplyPromoCode, C as stripeStoreRemovePromoCode, c as stripeStore, y as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, D as stripeStoreResetPromoCode, E as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, F as stripeStoreTranslateAddressToLatin, G as cartStoreUpdateSelectedShippingOption, H as cartStoreGetShippingTransitInfo, I as sortServiceLevelOptionsByAmount, J as cartStoreGetMethod } from './cart-a921e0b7.js';
3
- import { d as currencyFormat, t as translate, s as storageStore, l as localizationStore } from './localization-a2b8f9ed.js';
2
+ import { e as cartStore, A as cartStoreHasOneEligibleItem, B as stripeStoreApplyPromoCode, C as stripeStoreRemovePromoCode, c as stripeStore, y as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, D as stripeStoreResetPromoCode, E as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, F as stripeStoreTranslateAddressToLatin, G as cartStoreUpdateSelectedShippingOption, H as cartStoreGetShippingTransitInfo, I as sortServiceLevelOptionsByAmount, J as cartStoreGetMethod } from './cart-5835676d.js';
3
+ import { d as currencyFormat, t as translate, s as storageStore, l as localizationStore } from './localization-4c7f64e8.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-67d51f03.js';
5
+ import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-b4f106be.js';
6
6
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
7
7
  import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, g as getIsTestMode, d as allLogs, i as isCheckoutMobile, b as logError, a as getIsStagingMode } from './handleFetch-621e45bc.js';
8
8
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, F as Fragment } from './index-5ea9f81d.js';
2
- import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreCleanupDomesticShippingSession, b as stripeStoreSaveDomesticShippingSession, c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset } from './cart-a921e0b7.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-67d51f03.js';
4
- import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-a2b8f9ed.js';
2
+ import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreCleanupDomesticShippingSession, b as stripeStoreSaveDomesticShippingSession, c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset } from './cart-5835676d.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-b4f106be.js';
4
+ import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-4c7f64e8.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-1e015fa5.js';
6
6
  import { h as handleFetch, l as log, b as logError, s as sendErrorLog, c as getElapsedTime, d as allLogs, e as getAdditionalLogMetadata, g as getIsTestMode, j as jsonParse, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
7
7
  import { c as classes } from './classes-0d95c529.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-5ea9f81d.js';
2
- import { c as stripeStore } from './cart-a921e0b7.js';
3
- import { i as isValidSelector, e as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-a2b8f9ed.js';
2
+ import { c as stripeStore } from './cart-5835676d.js';
3
+ import { i as isValidSelector, e as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-4c7f64e8.js';
4
4
  import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
5
5
  import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
6
6
  import { h as handleFetch, b as logError, l as log } from './handleFetch-621e45bc.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-5ea9f81d.js';
2
- import { l as localizationStore } from './localization-a2b8f9ed.js';
2
+ import { l as localizationStore } from './localization-4c7f64e8.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-621e45bc.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-5ea9f81d.js';
2
- import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-a2b8f9ed.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-4c7f64e8.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
5
  import { i as isDarkColor } from './isDarkColor-d8bb8659.js';
@@ -2,10 +2,10 @@ import { r as registerInstance, h, H as Host, d as getElement, c as createEvent
2
2
  import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import { g as getBorderRadius } from './getBorderRadius-b18c924f.js';
5
- import { c as stripeStore, t as trackConversionEvent } from './cart-a921e0b7.js';
6
- import { s as storageStore } from './localization-a2b8f9ed.js';
5
+ import { c as stripeStore, t as trackConversionEvent } from './cart-5835676d.js';
6
+ import { s as storageStore } from './localization-4c7f64e8.js';
7
7
  import { b as logError, l as log } from './handleFetch-621e45bc.js';
8
- import { d as paypalStoreInitButtons } from './paypal-67d51f03.js';
8
+ import { d as paypalStoreInitButtons } from './paypal-b4f106be.js';
9
9
  import './VarianceTest-fef2d958.js';
10
10
  import './isDarkColor-d8bb8659.js';
11
11
 
@@ -1,9 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-5ea9f81d.js';
2
- import { t as translate, l as localizationStore, d as currencyFormat } from './localization-a2b8f9ed.js';
2
+ import { l as localizationStore, d as currencyFormat, t as translate } from './localization-4c7f64e8.js';
3
3
  import { z as zonosStore } from './zonosStore-1e015fa5.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
6
6
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
7
+ import { e as euCountryCodes } from './TaxId-50d72254.js';
7
8
  import './handleFetch-621e45bc.js';
8
9
  import './VarianceTest-fef2d958.js';
9
10
 
@@ -53,10 +54,6 @@ const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="
53
54
  const zonosHelloDialogCss = ":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 .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";
54
55
  const ZonosHelloDialogStyle0 = zonosHelloDialogCss;
55
56
 
56
- const dutyTaxMessage_AU_lowValueGST = `${translate('The low-value GST law passed July 1st, 2018 applies to this retailer.')} ${wrapStringWithLink({
57
- href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
58
- text: translate('Learn more.'),
59
- })}`;
60
57
  const ZonosHelloDialog = class {
61
58
  constructor(hostRef) {
62
59
  registerInstance(this, hostRef);
@@ -122,18 +119,25 @@ const ZonosHelloDialog = class {
122
119
  if (!countryCode || !this.hasTaxId()) {
123
120
  return false;
124
121
  }
125
- return ['AU'].includes(countryCode);
122
+ const countryCodes = [
123
+ 'AU',
124
+ 'NZ',
125
+ 'GB',
126
+ 'NO',
127
+ 'SG',
128
+ ...euCountryCodes,
129
+ ];
130
+ return countryCodes.includes(countryCode);
126
131
  };
127
132
  this.getDutyMessage = () => {
128
- const { countryLandedCost } = localizationStore;
133
+ const countryLandedCost = localizationStore.countryLandedCost;
129
134
  // Our Robby API spells deminimis wrong here
130
135
  const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
131
136
  ? currencyFormat({ amount: countryLandedCost.dutyDeminimus })
132
137
  : null;
133
138
  // If deminimis is undefined or null, assume it's $0
134
- return dutyDeminimis &&
135
- !this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
136
- ? translate('Spend [threshold] duty free.', {
139
+ return dutyDeminimis
140
+ ? translate('Spend up to [threshold] duty free.', {
137
141
  threshold: dutyDeminimis,
138
142
  })
139
143
  : translate('Duties will apply to all orders.');
@@ -146,15 +150,31 @@ const ZonosHelloDialog = class {
146
150
  : null;
147
151
  return taxDeminimis &&
148
152
  !this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
149
- ? translate('Spend [threshold] tax free.', {
153
+ ? translate('Spend up to [threshold] tax free.', {
150
154
  threshold: taxDeminimis,
151
155
  })
152
156
  : translate('Taxes will apply to all orders.');
153
157
  };
158
+ this.getEuDutyTaxMessage = (landedCost) => {
159
+ return [
160
+ `${translate('Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
161
+ percentage: `${landedCost.vatTaxRate * 100}%`,
162
+ })} ${wrapStringWithLink({
163
+ href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
164
+ text: translate('Learn more.'),
165
+ })}`,
166
+ ];
167
+ };
154
168
  this.getUkDutyTaxMessage = (landedCost) => {
155
169
  if (landedCost.allowLowValueOrders) {
156
- // show nothing if low value orders are allowed
157
- return null;
170
+ return [
171
+ `${translate('Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
172
+ percentage: `${landedCost.vatTaxRate * 100}%`,
173
+ })} ${wrapStringWithLink({
174
+ href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
175
+ text: translate('Learn more.'),
176
+ })}`,
177
+ ];
158
178
  }
159
179
  const dutyDeminimis = landedCost.dutyDeminimus;
160
180
  return [
@@ -166,13 +186,15 @@ const ZonosHelloDialog = class {
166
186
  };
167
187
  this.getAustraliaDutyTaxMessage = (landedCost) => {
168
188
  if (this.hasInclusivePrices()) {
169
- return [dutyTaxMessage_AU_lowValueGST];
189
+ return [];
170
190
  }
171
191
  return [
172
- translate('Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.', {
192
+ `${translate('Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
173
193
  percentage: `${landedCost.vatTaxRate * 100}%`,
174
- }),
175
- dutyTaxMessage_AU_lowValueGST,
194
+ })} ${wrapStringWithLink({
195
+ href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
196
+ text: translate('Learn more.'),
197
+ })}`,
176
198
  ];
177
199
  };
178
200
  this.getNewZealandDutyTaxMessge = (landedCost) => {
@@ -180,10 +202,38 @@ const ZonosHelloDialog = class {
180
202
  return null;
181
203
  }
182
204
  return [
183
- translate('[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.', {
205
+ `${translate('Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
184
206
  percentage: `${landedCost.vatTaxRate * 100}%`,
185
- threshold: currencyFormat({ amount: landedCost.vatTaxDeminimus }),
186
- }),
207
+ })} ${wrapStringWithLink({
208
+ href: 'https://zonos.com/docs/guides/country-guides/new-zealand/new-zealand-import-taxes',
209
+ text: translate('Learn more.'),
210
+ })}`,
211
+ ];
212
+ };
213
+ this.getNorwayDutyTaxMessage = (landedCost) => {
214
+ if (this.hasInclusivePrices()) {
215
+ return null;
216
+ }
217
+ return [
218
+ `${translate('Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
219
+ percentage: `${landedCost.vatTaxRate * 100}%`,
220
+ })} ${wrapStringWithLink({
221
+ href: 'https://zonos.com/docs/guides/country-guides/norway-voec-scheme',
222
+ text: translate('Learn more.'),
223
+ })}`,
224
+ ];
225
+ };
226
+ this.getSingaporeDutyTaxMessage = (landedCost) => {
227
+ if (this.hasInclusivePrices()) {
228
+ return null;
229
+ }
230
+ return [
231
+ `${translate('Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
232
+ percentage: `${landedCost.vatTaxRate * 100}%`,
233
+ })} ${wrapStringWithLink({
234
+ href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/singapore-gst-settings',
235
+ text: translate('Learn more.'),
236
+ })}`,
187
237
  ];
188
238
  };
189
239
  this.getInclusivePriceMessage = () => {
@@ -237,7 +287,15 @@ const ZonosHelloDialog = class {
237
287
  return this.getAustraliaDutyTaxMessage(localizationStore.countryLandedCost);
238
288
  case 'NZ':
239
289
  return this.getNewZealandDutyTaxMessge(localizationStore.countryLandedCost);
290
+ case 'NO':
291
+ return this.getNorwayDutyTaxMessage(localizationStore.countryLandedCost);
292
+ case 'SG':
293
+ return this.getSingaporeDutyTaxMessage(localizationStore.countryLandedCost);
240
294
  default:
295
+ // show EU duty tax message if country is in EU
296
+ if (euCountryCodes.includes(localizationStore.countryLandedCost.countryCode)) {
297
+ return this.getEuDutyTaxMessage(localizationStore.countryLandedCost);
298
+ }
241
299
  // show nothing
242
300
  return null;
243
301
  }
@@ -275,18 +333,18 @@ const ZonosHelloDialog = class {
275
333
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
276
334
  const currentPage = this.getCurrentPageEnum();
277
335
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
278
- return (h(Host, { key: '7b6752f327fdefb40d272d30d50a5fd208ff69a6', class: "zonos--elements" }, h("div", { key: 'b03b78ddfb3a0d6cedb156161fd82ebe45926773', class: classes([
336
+ return (h(Host, { key: '0830447fd72c987521c1790936f64948c28e368a', class: "zonos--elements" }, h("div", { key: '945b144257ac98cd3e18484b5df7c656967ed4bb', class: classes([
279
337
  'zonos--hello-dialog',
280
338
  animateLeft && 'zonos--hello-dialog-animate-from-left',
281
339
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
282
340
  !!this.mobileLocationOverride &&
283
341
  'zonos--hello-dialog-mobile-override',
284
342
  this.isOpen && 'zonos--hello-dialog-open',
285
- ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '367b5a0158679001cb3004d5d965a518cdc3b8ce' }, h("div", { key: '01dd9b2df5b20e61764274a6405118a7b42019f3', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'ed49fe9a95fd6ace11669ee194d90eaae951d938', 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: '23d391b8f4a13a1b077333f7ac788306dbeb98d6', spacing: 24 }, h("zonos-country-flag", { key: '24c6682b66fe5aa5061bab0b260d6c6fed724f52', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'fcb2717fa3403337b507f64adb557bd300841a41', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '013fbda529816a2a1f22fc9d524d087fd69145c8', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '2134a015a6e22f6e02db8935150055b04620eed8', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '67030faaca46fea72230037b594eb3d0abb18acb', spacing: 8 }, this.restrictedItems.map(item => {
343
+ ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'd4281bee820f6f1c0128a27a68637d9cf14bb9df' }, h("div", { key: '2eb86efbcf9a69fcad628fff00d6f4834026f720', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '54c1db50880af58304586091a2c96b63d21939b9', 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: '4814c176342c0a81379e499c9e9c9fff2611ca30', spacing: 24 }, h("zonos-country-flag", { key: 'a96e2f98b8d34d9c9b85e7b1989e6c29a9efb319', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'bdfcfa7d339c007df770101d8a63433d40be6ce2', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '7bebb2baef3b43444325b8755d9de41f7617a30a', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'cc5e7c2dda01e545a1d85bbbb1e5cab53ab27574', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: 'dbd3743ea89e59796b8f0a7c90eb4bf2564212ad', spacing: 8 }, this.restrictedItems.map(item => {
286
344
  var _a;
287
345
  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)))));
288
- }), h("zonos-card", { key: '21d50e218fd560e137b68e6d2a16edf118d18148', spacing: "12px" }, h("zonos-v-stack", { key: '70c333afd352aee4a92b47b58c267ec5c6ff122c', 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 :
289
- 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: '7fa2a3e7646668c37ad2026dcfe0d59d6fd350b8', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '9a59a41f8ffbef2361ada0d5390708232c829026' }, h("zonos-country-select", { key: '3f10795b4eb5695e9848e2c69611f1a4953f5370', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'c4aa8b2d533e6735a587fc8c7eb217f52e1fc5c9' }, h("zonos-language-select", { key: 'eb75fbe3e7de95b0459d559ac7ee233b77873545', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
346
+ }), h("zonos-card", { key: '428f00f603d782b9496d40049571e3ea9dad57ba', spacing: "12px" }, h("zonos-v-stack", { key: '1433a878c9782cb57cbe85d83bdbe090d0e5d610', 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 icon", content: ImportIcon }), h("zonos-text", { "aria-label": "Duty de minimis message" }, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis icon", content: MoneyIcon }), h("zonos-text", { "aria-label": "Tax de minimis message" }, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
347
+ additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '09e8b05e240cd995e16c0f736df6ef66d9fff511', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '1ed01c7f23d1b1f5a1e95d39e614e748ea407d6f' }, h("zonos-country-select", { key: 'b8c249f2e9f902e444b22371e9581be7ab34f07a', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'cc6066e1e0eba08130342cef80ecdcd8c2e53e49' }, h("zonos-language-select", { key: 'c803df7ce92321f72d48a39eddcf1bbd3e279738', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
290
348
  }
291
349
  static get assetsDirs() { return ["assets"]; }
292
350
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-5ea9f81d.js';
2
2
  import { d as debounce_1 } from './debounce-eaee3a94.js';
3
- import { l as localizationStore, i as isValidSelector, t as translate, g as getZCountryUrlParam, h as setZCountryUrlParam, j as currencyDisplay, k as currencyConvertAndFormat, m as currencyConvert, d as currencyFormat } from './localization-a2b8f9ed.js';
3
+ import { l as localizationStore, i as isValidSelector, t as translate, g as getZCountryUrlParam, h as setZCountryUrlParam, j as currencyDisplay, k as currencyConvertAndFormat, m as currencyConvert, d as currencyFormat } from './localization-4c7f64e8.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-1e015fa5.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { h as handleFetch, b as logError, l as log } from './handleFetch-621e45bc.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-5ea9f81d.js';
2
- import { p as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-a2b8f9ed.js';
2
+ import { p as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-4c7f64e8.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
4
4
  import { l as languages } from './ILanguage-cd6acb72.js';
5
5
  import './handleFetch-621e45bc.js';