@zonos/elements 1.3.257 → 1.3.259

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 (180) hide show
  1. package/dist/cjs/{cart-cd0a054b.js → cart-c618fd5b.js} +1 -1
  2. package/dist/cjs/{hasInclusivePrice-3650109c.js → hasInclusivePrice-58a9f15d.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{invoice-1cea739b.js → invoice-c9cb6683.js} +2 -2
  5. package/dist/cjs/{isCollectMobileTablet-65c71740.js → isCollectMobileTablet-93a5194a.js} +2 -2
  6. package/dist/cjs/{localization-adaab93f.js → localization-5994d4de.js} +25 -3
  7. package/dist/cjs/{paypal-326d7bc5.js → paypal-091e089e.js} +2 -2
  8. package/dist/cjs/{placeTestOrder-53f2fe97.js → placeTestOrder-b07f8edb.js} +2 -2
  9. package/dist/cjs/{renderCheckoutCurrency-cf2e3b93.js → renderCheckoutCurrency-7876a1d4.js} +2 -2
  10. package/dist/cjs/zonos-address-display_8.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-card_5.cjs.entry.js +3 -3
  13. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +442 -17
  15. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
  16. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  17. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +45 -12
  22. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  26. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +72 -0
  29. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +43 -10
  30. package/dist/collection/components/store/hello/localization.js +25 -3
  31. package/dist/collection/components/utils/checkout/bigcommerceStorefrontApi.js +6 -0
  32. package/dist/collection/components/utils/checkout/buildBigcommerceLoginUrl.js +65 -0
  33. package/dist/collection/components/utils/checkout/checkBigCommerceBypassCustomerGroup.js +12 -7
  34. package/dist/collection/components/utils/checkout/checkBigCommerceForceLogin.js +116 -0
  35. package/dist/collection/components/utils/checkout/fetchBigCommerceCheckoutSettings.js +92 -0
  36. package/dist/collection/components/utils/checkout/fixBigCommerceLoginCreateAccountLink.js +53 -0
  37. package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +40 -7
  38. package/dist/collection/types/checkout/api/BigCommerceCheckoutSettings.js +1 -0
  39. package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
  40. package/dist/collection/types/generated/graphql.internal.types.js +39 -0
  41. package/dist/collection/types/index.js +1 -0
  42. package/dist/esm/{cart-4cd47a1b.js → cart-76fb528f.js} +1 -1
  43. package/dist/esm/{hasInclusivePrice-7a3dc4c3.js → hasInclusivePrice-275b1048.js} +1 -1
  44. package/dist/esm/index.js +7 -7
  45. package/dist/esm/{invoice-03ff7bbb.js → invoice-9efcb941.js} +2 -2
  46. package/dist/esm/{isCollectMobileTablet-9eb77c9a.js → isCollectMobileTablet-a7e5b909.js} +2 -2
  47. package/dist/esm/{localization-79e08480.js → localization-76ce3e29.js} +25 -3
  48. package/dist/esm/{paypal-67c86683.js → paypal-75c5c66d.js} +2 -2
  49. package/dist/esm/{placeTestOrder-e81fff15.js → placeTestOrder-22633bf2.js} +2 -2
  50. package/dist/esm/{renderCheckoutCurrency-1fc00db4.js → renderCheckoutCurrency-d27b0082.js} +2 -2
  51. package/dist/esm/zonos-address-display_8.entry.js +2 -2
  52. package/dist/esm/zonos-address_4.entry.js +2 -2
  53. package/dist/esm/zonos-card_5.entry.js +3 -3
  54. package/dist/esm/zonos-cart-items_12.entry.js +6 -6
  55. package/dist/esm/zonos-checkout.entry.js +443 -18
  56. package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
  57. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  58. package/dist/esm/zonos-collect.entry.js +4 -4
  59. package/dist/esm/zonos-controller.entry.js +2 -2
  60. package/dist/esm/zonos-country-flag.entry.js +1 -1
  61. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  62. package/dist/esm/zonos-hello-dialog.entry.js +45 -12
  63. package/dist/esm/zonos-hello.entry.js +1 -1
  64. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  65. package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
  66. package/dist/esm/zonos-invoice.entry.js +4 -4
  67. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  68. package/dist/esm/zonos-store-credit.entry.js +3 -3
  69. package/dist/esm-es5/{cart-4cd47a1b.js → cart-76fb528f.js} +1 -1
  70. package/dist/esm-es5/{hasInclusivePrice-7a3dc4c3.js → hasInclusivePrice-275b1048.js} +1 -1
  71. package/dist/esm-es5/index.js +1 -1
  72. package/dist/esm-es5/{invoice-03ff7bbb.js → invoice-9efcb941.js} +1 -1
  73. package/dist/esm-es5/{isCollectMobileTablet-9eb77c9a.js → isCollectMobileTablet-a7e5b909.js} +1 -1
  74. package/dist/esm-es5/{localization-79e08480.js → localization-76ce3e29.js} +1 -1
  75. package/dist/esm-es5/{paypal-67c86683.js → paypal-75c5c66d.js} +2 -2
  76. package/dist/esm-es5/{placeTestOrder-e81fff15.js → placeTestOrder-22633bf2.js} +1 -1
  77. package/dist/esm-es5/{renderCheckoutCurrency-1fc00db4.js → renderCheckoutCurrency-d27b0082.js} +1 -1
  78. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  79. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  80. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  81. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  82. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  83. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  84. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  85. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  86. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  87. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  88. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  89. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  90. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  91. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  92. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  93. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  94. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  95. package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
  96. package/dist/scripts/index.d.ts +21 -5
  97. package/dist/scripts/index.js +1 -1
  98. package/dist/scripts/loadZonos.js +1 -1
  99. package/dist/scripts/zonos.js +1 -1
  100. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +16 -0
  101. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +6 -0
  102. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  103. package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +6 -0
  104. package/dist/types/components/utils/checkout/buildBigcommerceLoginUrl.d.ts +27 -0
  105. package/dist/types/components/utils/checkout/checkBigCommerceBypassCustomerGroup.d.ts +12 -0
  106. package/dist/types/components/utils/checkout/checkBigCommerceForceLogin.d.ts +50 -0
  107. package/dist/types/components/utils/checkout/fetchBigCommerceCheckoutSettings.d.ts +18 -0
  108. package/dist/types/components/utils/checkout/fixBigCommerceLoginCreateAccountLink.d.ts +17 -0
  109. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +6 -5
  110. package/dist/types/types/checkout/CheckoutConfig.d.ts +9 -0
  111. package/dist/types/types/checkout/api/BigCommerceCheckoutSettings.d.ts +12 -0
  112. package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -1
  113. package/dist/types/types/generated/graphql.frontend.types.ts +3 -1
  114. package/dist/types/types/generated/graphql.internal.types.d.ts +58 -9
  115. package/dist/types/types/generated/graphql.internal.types.ts +69 -9
  116. package/dist/types/types/index.d.ts +1 -0
  117. package/dist/zonos-elements/index.esm.js +1 -1
  118. package/dist/zonos-elements/{p-aa3e3438.system.entry.js → p-055c8d6c.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-ce2fd652.entry.js → p-0a9741f7.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-3fc43187.system.entry.js → p-10da499b.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-2c1c6d60.system.entry.js → p-14d35979.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-271eebd3.system.js → p-1523f6a8.system.js} +1 -1
  123. package/dist/zonos-elements/{p-c585d169.entry.js → p-1661f938.entry.js} +1 -1
  124. package/dist/zonos-elements/{p-3092ec40.system.entry.js → p-1e9e284e.system.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-7559c494.js → p-1ebb59a3.js} +1 -1
  126. package/dist/zonos-elements/{p-4e2262e8.js → p-24f41959.js} +1 -1
  127. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  128. package/dist/zonos-elements/{p-0ca6ee9b.entry.js → p-29d16ad0.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-0f4822cc.system.entry.js → p-2b2b1c8c.system.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-91eeccaa.entry.js → p-2d854a75.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-a90c977a.system.js → p-2ec799e4.system.js} +1 -1
  132. package/dist/zonos-elements/{p-d0690cdc.system.js → p-3600280d.system.js} +1 -1
  133. package/dist/zonos-elements/p-3ee8496e.js +1 -0
  134. package/dist/zonos-elements/{p-21519ebe.entry.js → p-425f747b.entry.js} +1 -1
  135. package/dist/zonos-elements/p-439dc620.system.entry.js +1 -0
  136. package/dist/zonos-elements/{p-9f3aab4e.system.entry.js → p-4b138a6e.system.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-7aeb496e.entry.js → p-5262f6e8.entry.js} +1 -1
  138. package/dist/zonos-elements/{p-b53856bf.system.js → p-567abb43.system.js} +1 -1
  139. package/dist/zonos-elements/{p-9d435f12.system.entry.js → p-5fa3d1c8.system.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-e9f36d6b.system.entry.js → p-6cf8fe49.system.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-8adc0a13.system.js → p-6d36b307.system.js} +1 -1
  142. package/dist/zonos-elements/{p-380143db.entry.js → p-6e50f6f5.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-80ba5f70.entry.js → p-7157a5a3.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-3675766a.entry.js → p-788c6839.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-a7b0345b.entry.js → p-791e13e7.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-e173fbd1.system.entry.js → p-8585c761.system.entry.js} +1 -1
  147. package/dist/zonos-elements/p-868a8667.js +1 -0
  148. package/dist/zonos-elements/{p-c2139758.entry.js → p-9460919d.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-6b83ac7f.entry.js → p-99d92a84.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-0740f8a4.system.entry.js → p-9a9c9441.system.entry.js} +1 -1
  151. package/dist/zonos-elements/p-9cbac993.entry.js +1 -0
  152. package/dist/zonos-elements/{p-a60544cc.entry.js → p-9cff66a7.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-b3824361.entry.js → p-a0f6910c.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-7caa75bb.js → p-a18adf27.js} +1 -1
  155. package/dist/zonos-elements/{p-8b35e475.system.entry.js → p-a4b6865d.system.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-c23e2501.system.entry.js → p-a89096d6.system.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-e3f9779a.system.entry.js → p-afca19b0.system.entry.js} +1 -1
  158. package/dist/zonos-elements/{p-429c1d0c.entry.js → p-afdb4445.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-4a84387a.system.entry.js → p-b34f1336.system.entry.js} +1 -1
  160. package/dist/zonos-elements/{p-5818f4a7.entry.js → p-bba9af4c.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-e62342c3.js → p-bd938f80.js} +1 -1
  162. package/dist/zonos-elements/{p-8ed0fad5.js → p-bdb3f7a2.js} +2 -2
  163. package/dist/zonos-elements/p-c85e988d.system.js +1 -0
  164. package/dist/zonos-elements/{p-e5f5b086.system.js → p-cc645667.system.js} +1 -1
  165. package/dist/zonos-elements/p-d13120f6.entry.js +1 -0
  166. package/dist/zonos-elements/{p-e80832cb.system.entry.js → p-e5f48239.system.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-22bb7836.system.js → p-e6168c82.system.js} +1 -1
  168. package/dist/zonos-elements/{p-e56f5954.system.js → p-e8a68ce7.system.js} +1 -1
  169. package/dist/zonos-elements/p-ed03b7fd.js +1 -0
  170. package/dist/zonos-elements/{p-b414b484.system.entry.js → p-edb0306c.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-e6feafc1.system.entry.js → p-f4e54f09.system.entry.js} +1 -1
  172. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  173. package/package.json +1 -1
  174. package/dist/zonos-elements/p-0e83d193.js +0 -1
  175. package/dist/zonos-elements/p-6bcbe651.js +0 -1
  176. package/dist/zonos-elements/p-7cbbf483.system.js +0 -1
  177. package/dist/zonos-elements/p-ac7b93c9.js +0 -1
  178. package/dist/zonos-elements/p-da7e1143.system.entry.js +0 -1
  179. package/dist/zonos-elements/p-ddb27b4a.entry.js +0 -1
  180. package/dist/zonos-elements/p-fed19033.entry.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, a as Host, F as Fragment } from './index-cfd394c8.js';
2
- import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, A as stripeStoreConfirmPayment, E as stripeStoreOnChange, C as stripeStoreReset, f as cartStoreReset } from './cart-4cd47a1b.js';
3
- import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-9eb77c9a.js';
4
- import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-67c86683.js';
5
- import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-79e08480.js';
2
+ import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, A as stripeStoreConfirmPayment, E as stripeStoreOnChange, C as stripeStoreReset, f as cartStoreReset } from './cart-76fb528f.js';
3
+ import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-a7e5b909.js';
4
+ import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-75c5c66d.js';
5
+ import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-76ce3e29.js';
6
6
  import { z as zonosStore } from './zonosStore-f1d45eac.js';
7
7
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
8
8
  import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, d as createEvent, h, a as Host } from './index-cfd394c8.js';
2
- import { b as stripeStore } from './cart-4cd47a1b.js';
3
- import { e as getOverridenZCountry, i as isValidSelector, h as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-79e08480.js';
2
+ import { b as stripeStore } from './cart-76fb528f.js';
3
+ import { e as getOverridenZCountry, i as isValidSelector, h as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-76ce3e29.js';
4
4
  import { z as zonosStore, e as zonosStoreInitSetting, f as zonosStoreFontFamily } from './zonosStore-f1d45eac.js';
5
5
  import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
6
6
  import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { l as localizationStore } from './localization-79e08480.js';
2
+ import { l as localizationStore } from './localization-76ce3e29.js';
3
3
  import { f as zonosStoreFontFamily } from './zonosStore-f1d45eac.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-a844cac1.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-79e08480.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-76ce3e29.js';
3
3
  import { f as zonosStoreFontFamily } from './zonosStore-f1d45eac.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
5
  import { i as isDarkColor } from './isDarkColor-8092a9fb.js';
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host } from './index-cfd394c8.js';
2
- import { l as localizationStore, t as translate, d as currencyFormat } from './localization-79e08480.js';
2
+ import { l as localizationStore, t as translate, d as currencyFormat } from './localization-76ce3e29.js';
3
3
  import { z as zonosStore } from './zonosStore-f1d45eac.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
6
- import { h as hasInclusivePrice, T as TAXES_KEY, D as DUTY_KEY } from './hasInclusivePrice-7a3dc4c3.js';
6
+ import { h as hasInclusivePrice, T as TAXES_KEY, D as DUTY_KEY } from './hasInclusivePrice-275b1048.js';
7
7
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
8
8
  import { e as euCountryCodes } from './TaxId-50d72254.js';
9
9
  import './handleFetch-a844cac1.js';
@@ -108,6 +108,17 @@ const ZonosHelloDialog = class {
108
108
  var _a;
109
109
  return (_a = localizationStore.countryLandedCost) === null || _a === void 0 ? void 0 : _a.hasTaxId;
110
110
  };
111
+ /**
112
+ * Selected country is configured as a domestic country for the merchant,
113
+ * meaning the order ships within the merchant's origin country and no
114
+ * duty will be assessed on it.
115
+ */
116
+ this.isDomesticCountry = () => {
117
+ var _a, _b;
118
+ const { selectedCountryCode } = localizationStore;
119
+ return (!!selectedCountryCode &&
120
+ !!((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.domesticCountries) === null || _b === void 0 ? void 0 : _b.includes(selectedCountryCode)));
121
+ };
111
122
  /**
112
123
  * Some countries don't have threshold. So we need to show generic message for them
113
124
  */
@@ -127,6 +138,11 @@ const ZonosHelloDialog = class {
127
138
  return countryCodes.includes(countryCode);
128
139
  };
129
140
  this.getDutyMessage = () => {
141
+ // Domestic orders stay within the merchant's origin country, so no
142
+ // duty is ever assessed — skip the de minimis message.
143
+ if (this.isDomesticCountry()) {
144
+ return null;
145
+ }
130
146
  const countryLandedCost = localizationStore.countryLandedCost;
131
147
  // For GB, if the store doesn't allow low value orders, we would like to tell shopper that duties will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
132
148
  if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
@@ -146,6 +162,11 @@ const ZonosHelloDialog = class {
146
162
  };
147
163
  this.getTaxMessage = () => {
148
164
  const { countryLandedCost } = localizationStore;
165
+ // Domestic orders stay within the merchant's origin country, so no
166
+ // import tax is ever assessed — skip the de minimis message.
167
+ if (this.isDomesticCountry()) {
168
+ return null;
169
+ }
149
170
  // For GB, if the store doesn't allow low value orders, we would like to tell shopper that taxes will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
150
171
  if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
151
172
  (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode) === 'GB') {
@@ -273,12 +294,7 @@ const ZonosHelloDialog = class {
273
294
  }
274
295
  return null;
275
296
  };
276
- this.renderHelloMessage = () => {
277
- // If deminimis is undefined or null, assume it's $0
278
- const dutyDeMinimisMessage = this.getDutyMessage();
279
- // If deminimis is undefined or null, assume it's $0
280
- const taxDeMinimisMessage = this.getTaxMessage();
281
- const inclusivePriceMessage = this.getInclusivePriceMessage();
297
+ this.renderHelloMessage = ({ dutyDeMinimisMessage, inclusivePriceMessage, taxDeMinimisMessage, }) => {
282
298
  if (hasInclusivePrice() && inclusivePriceMessage) {
283
299
  switch (inclusivePriceMessage.inclusiveType) {
284
300
  case 'DUTIES_FEES': {
@@ -302,6 +318,11 @@ const ZonosHelloDialog = class {
302
318
  if (!localizationStore.countryLandedCost) {
303
319
  return null;
304
320
  }
321
+ // Domestic orders aren't subject to the foreign import-tax regimes these
322
+ // additional messages describe (e.g., UK/EU IOSS, AU/NZ/SG GST).
323
+ if (this.isDomesticCountry()) {
324
+ return null;
325
+ }
305
326
  // only show the message if the store has a tax id for selected country
306
327
  if (!this.hasTaxId()) {
307
328
  return null;
@@ -353,18 +374,30 @@ const ZonosHelloDialog = class {
353
374
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
354
375
  const currentPage = this.getCurrentPageEnum();
355
376
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
356
- return (h(Host, { key: '9012938ffc3ab002bac78479cbcf4063526cf562', class: "zonos--elements" }, h("div", { key: 'ec6c5429694e4d18abf240c5de950b0da33ca846', class: classes([
377
+ // If deminimis is undefined or null, assume it's $0
378
+ const dutyDeMinimisMessage = this.getDutyMessage();
379
+ // If deminimis is undefined or null, assume it's $0
380
+ const taxDeMinimisMessage = this.getTaxMessage();
381
+ const inclusivePriceMessage = this.getInclusivePriceMessage();
382
+ return (h(Host, { key: '910b2b5600107a097fa4cdc77ec487e03fe6a8d2', class: "zonos--elements" }, h("div", { key: 'edf1d9b554807db1c973a1ccdb6e20a647c24204', class: classes([
357
383
  'zonos--hello-dialog',
358
384
  animateLeft && 'zonos--hello-dialog-animate-from-left',
359
385
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
360
386
  !!this.mobileLocationOverride &&
361
387
  'zonos--hello-dialog-mobile-override',
362
388
  this.isOpen && 'zonos--hello-dialog-open',
363
- ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'cb64ca4f4474e06f728eec751f3c7c7fae578d26' }, h("div", { key: 'c062c2482ef59df6ef60e7ccfb1716cc0cf2a19d', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'c36de505068bd2c4b520a20ca7110a7bd46e749d', 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: '85d246bab229099324507799eb8f771795ea92e0', spacing: 24 }, h("zonos-country-flag", { key: '602b68614bdee4120900ed184941adc4ffa40619', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '3994f7ec81cfe691f6b5f8ce83391922966a7700', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '48c7e9bf22dd30eb089b7b25a99d908dbed5966f', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'd590b3ed499b456134720ef73a965a5a552da80f', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '8bce397c8522031d46b8e6efc38986af5645c3ee', spacing: 8 }, this.restrictedItems.map(item => {
389
+ ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'f5316102d12d07e1a3c701ad641995413ee445b2' }, h("div", { key: 'c11cc7e8d11f733c82435a531d7d8595b0237eae', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'a2aa2802331e9ed5c40d877fcb7ffb0cebd318c5', 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: 'f6df6e6562b8ddebb0e910d669a6a263114f6407', spacing: 24 }, h("zonos-country-flag", { key: '71c320b3364deee7c545284a2fc639cef3a3ba27', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '9603247163d334db33fe00428190fafdd6ef6c42', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'aad7fd909092a9fad15ce88a3f43ad5115bca1f9', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'c3c9c5d5f9e1000b2b6c6aebc73f18c6653f9de2', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: 'c34b1b9debb507ce6f230bd13b493a14af12e880', spacing: 8 }, this.restrictedItems.map(item => {
364
390
  var _a;
365
391
  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)))));
366
- }), h("zonos-card", { key: '0772e7dc4499423f3a379a2cfc0b28dd23ec137e', spacing: "12px" }, h("zonos-v-stack", { key: 'ea421af6bc847eaece471f557d2d0ee1815d14bf', spacing: 12 }, this.renderHelloMessage(), additionalInformation === null || additionalInformation === void 0 ? void 0 :
367
- 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: '6eed9e71407e1351053abd4a2e1b4aae75b12044', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'cb9d77a61c481100fe21714bec8d062ffaa8f974' }, h("zonos-country-select", { key: 'd76ad3cdc005561e19d64502d4c2f02173929c22', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'f9bbf877aba822b04676039d07ebb752d07fd362' }, h("zonos-language-select", { key: '3d96dd6902003adf96a2ce73f0405e112a04b380', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
392
+ }), (dutyDeMinimisMessage ||
393
+ taxDeMinimisMessage ||
394
+ inclusivePriceMessage ||
395
+ !!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: '5dc5af9af7263333433b8a0382a30ccf9f28056d', spacing: "12px" }, h("zonos-v-stack", { key: '725669eaca664abc90f5ec8181c3b81c05cc3b52', spacing: 12 }, this.renderHelloMessage({
396
+ dutyDeMinimisMessage,
397
+ inclusivePriceMessage,
398
+ taxDeMinimisMessage,
399
+ }), additionalInformation === null || additionalInformation === void 0 ? void 0 :
400
+ 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: '077adfd58b2d7d95d5f352a09783089a1e91c99f', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '8c2dd5d73a649eebf1517a9b359d3ecc93b12620' }, h("zonos-country-select", { key: 'e2f64c73efe1e931808fdfe6aa5f8545d6f39c93', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '0b9ba684ac67fa652a34e6fbad8e966970f391ce' }, h("zonos-language-select", { key: '2e03e02459b0f31bc69376bc154ed8bb2d96ef56', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
368
401
  }
369
402
  static get assetsDirs() { return ["assets"]; }
370
403
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
2
  import { d as debounce_1 } from './debounce-8faafc9f.js';
3
- import { l as localizationStore, i as isValidSelector, t as translate, g as getZCountryUrlParam, j as setZCountryUrlParam, k as currencyDisplay, m as currencyConvertAndFormat, n as currencyConvert, d as currencyFormat } from './localization-79e08480.js';
3
+ import { l as localizationStore, i as isValidSelector, t as translate, g as getZCountryUrlParam, j as setZCountryUrlParam, k as currencyDisplay, m as currencyConvertAndFormat, n as currencyConvert, d as currencyFormat } from './localization-76ce3e29.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-f1d45eac.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
2
- import { d as cartStore } from './cart-4cd47a1b.js';
3
- import { t as translate } from './localization-79e08480.js';
4
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-1fc00db4.js';
2
+ import { d as cartStore } from './cart-76fb528f.js';
3
+ import { t as translate } from './localization-76ce3e29.js';
4
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-d27b0082.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
- import { c as invoiceStore } from './invoice-03ff7bbb.js';
6
+ import { c as invoiceStore } from './invoice-9efcb941.js';
7
7
  import { r as renderFallback } from './renderFallback-b250f4e9.js';
8
8
  import './zonosStore-f1d45eac.js';
9
9
  import './VarianceTest-572cecf5.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, C as stripeStoreReset, M as stripeStoreMessageBasedOnStatus, d as cartStore, r as cartStoreNextStep, D as cartStoreOnChange } from './cart-4cd47a1b.js';
3
- import { c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-67c86683.js';
4
- import { t as translate, s as storageStore, l as localizationStore } from './localization-79e08480.js';
2
+ import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, C as stripeStoreReset, M as stripeStoreMessageBasedOnStatus, d as cartStore, r as cartStoreNextStep, D as cartStoreOnChange } from './cart-76fb528f.js';
3
+ import { c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-75c5c66d.js';
4
+ import { t as translate, s as storageStore, l as localizationStore } from './localization-76ce3e29.js';
5
5
  import { z as zonosStore } from './zonosStore-f1d45eac.js';
6
6
  import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
7
7
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
@@ -11,9 +11,9 @@ import { s as submitGtag } from './submitGtag-543058f9.js';
11
11
  import { i as isInvoiceMobile, a as isInvoiceTablet } from './isInvoiceMobileTablet-1f7b614e.js';
12
12
  import { c as classes } from './classes-0d95c529.js';
13
13
  import { l as languages } from './ILanguage-cd6acb72.js';
14
- import { c as invoiceStore } from './invoice-03ff7bbb.js';
15
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-1fc00db4.js';
16
- import { p as placeTestOrder } from './placeTestOrder-e81fff15.js';
14
+ import { c as invoiceStore } from './invoice-9efcb941.js';
15
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-d27b0082.js';
16
+ import { p as placeTestOrder } from './placeTestOrder-22633bf2.js';
17
17
  import { r as renderFallback } from './renderFallback-b250f4e9.js';
18
18
  import './isDarkColor-8092a9fb.js';
19
19
  import './isContrastColor-f9e65e70.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, a as Host, F as Fragment } from './index-cfd394c8.js';
2
- import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, A as stripeStoreConfirmPayment, E as stripeStoreOnChange, C as stripeStoreReset, f as cartStoreReset } from './cart-4cd47a1b.js';
3
- import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-03ff7bbb.js';
4
- import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-67c86683.js';
5
- import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-79e08480.js';
2
+ import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, A as stripeStoreConfirmPayment, E as stripeStoreOnChange, C as stripeStoreReset, f as cartStoreReset } from './cart-76fb528f.js';
3
+ import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-9efcb941.js';
4
+ import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-75c5c66d.js';
5
+ import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-76ce3e29.js';
6
6
  import { z as zonosStore } from './zonosStore-f1d45eac.js';
7
7
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
8
8
  import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
2
- import { u as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-79e08480.js';
2
+ import { u as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-76ce3e29.js';
3
3
  import { f as zonosStoreFontFamily } from './zonosStore-f1d45eac.js';
4
4
  import { l as languages } from './ILanguage-cd6acb72.js';
5
5
  import './handleFetch-a844cac1.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { V as storeCreditStoreSetEnabled, W as storeCreditStoreSetUseFullBalance, X as cartStoreUpdateStoreCredit, N as storeCreditStore, Y as storeCreditStoreSetAmount, Z as storeCreditStoreRefreshBalance, F as storeCreditStoreGetEffectiveAmount } from './cart-4cd47a1b.js';
3
- import { t as translate } from './localization-79e08480.js';
2
+ import { V as storeCreditStoreSetEnabled, W as storeCreditStoreSetUseFullBalance, X as cartStoreUpdateStoreCredit, N as storeCreditStore, Y as storeCreditStoreSetAmount, Z as storeCreditStoreRefreshBalance, F as storeCreditStoreGetEffectiveAmount } from './cart-76fb528f.js';
3
+ import { t as translate } from './localization-76ce3e29.js';
4
4
  import { f as zonosStoreFontFamily, z as zonosStore } from './zonosStore-f1d45eac.js';
5
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-1fc00db4.js';
5
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-d27b0082.js';
6
6
  import { g as getBorderRadius } from './getBorderRadius-66de1b16.js';
7
7
  import './VarianceTest-572cecf5.js';
8
8
  import './handleFetch-a844cac1.js';