@zonos/elements 1.3.230 → 1.3.231

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 (233) hide show
  1. package/dist/cjs/{cart-ad82a680.js → cart-9b519566.js} +6 -2
  2. package/dist/cjs/hasInclusivePrice-12605be9.js +24 -0
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{localization-31e3dfe3.js → localization-38af974b.js} +118 -30
  5. package/dist/cjs/{paypal-88b5e878.js → paypal-e8fa2302.js} +3 -3
  6. package/dist/cjs/{placeTestOrder-6aefbf9c.js → placeTestOrder-6388881f.js} +11 -7
  7. package/dist/cjs/{renderFallback-87c908ad.js → renderFallback-bb2c4bce.js} +2 -2
  8. package/dist/cjs/{translationStore-b8b25e9d.js → translationStore-f2d5eae9.js} +420 -360
  9. package/dist/cjs/zonos-address_11.cjs.entry.js +21 -5
  10. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +73 -13
  11. package/dist/cjs/zonos-checkout.cjs.entry.js +8 -5
  12. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +3 -3
  13. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
  15. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-controller.cjs.entry.js +12 -5
  17. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -6
  19. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +4 -4
  20. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +55 -45
  21. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  23. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +68 -7
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +2 -1
  26. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -4
  27. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +54 -43
  28. package/dist/collection/components/main/zonos-controller.js +5 -2
  29. package/dist/collection/components/store/hello/localization.js +47 -16
  30. package/dist/collection/components/store/translationStore/strings.arabic.js +21 -18
  31. package/dist/collection/components/store/translationStore/strings.base.js +21 -18
  32. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -18
  33. package/dist/collection/components/store/translationStore/strings.danish.js +21 -18
  34. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -18
  35. package/dist/collection/components/store/translationStore/strings.french.js +21 -18
  36. package/dist/collection/components/store/translationStore/strings.german.js +21 -18
  37. package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -18
  38. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -18
  39. package/dist/collection/components/store/translationStore/strings.italian.js +21 -18
  40. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -18
  41. package/dist/collection/components/store/translationStore/strings.korean.js +21 -18
  42. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -18
  43. package/dist/collection/components/store/translationStore/strings.polish.js +21 -18
  44. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -18
  45. package/dist/collection/components/store/translationStore/strings.russian.js +21 -18
  46. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -18
  47. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -18
  48. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -18
  49. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -18
  50. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +18 -2
  51. package/dist/collection/components/utils/api/{getInclusivePricing.js → getInclusivePriceConfigurations.js} +1 -1
  52. package/dist/collection/components/utils/api/getLocalization.js +2 -5
  53. package/dist/collection/components/utils/api/getZonosSettings.js +5 -0
  54. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +6 -0
  55. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -5
  56. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +4 -1
  57. package/dist/collection/components/utils/getOverridenZCountry.js +11 -0
  58. package/dist/collection/components/utils/hasInclusivePrice.js +10 -0
  59. package/dist/collection/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.js +10 -0
  60. package/dist/collection/components/utils/hello/currencyConversion/applyInclusivePrice.js +39 -0
  61. package/dist/collection/components/utils/hello/currencyConversion/calculateInclusivePrice.js +32 -0
  62. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +11 -6
  63. package/dist/collection/constants/key.js +9 -0
  64. package/dist/collection/types/InclusivePricing.js +1 -0
  65. package/dist/collection/types/generated/graphql.internal.types.js +87 -3
  66. package/dist/collection/types/index.js +1 -0
  67. package/dist/collection/utils/performBlurCurrency.js +38 -5
  68. package/dist/esm/{cart-c74f9aaa.js → cart-bc0e1598.js} +6 -2
  69. package/dist/esm/hasInclusivePrice-706cc09d.js +20 -0
  70. package/dist/esm/index.js +7 -7
  71. package/dist/esm/{localization-106476cb.js → localization-53f67640.js} +117 -31
  72. package/dist/esm/{paypal-bf3a2bdd.js → paypal-3a6a048d.js} +3 -3
  73. package/dist/esm/{placeTestOrder-891295e8.js → placeTestOrder-917731cf.js} +11 -7
  74. package/dist/esm/{renderFallback-ce0e238a.js → renderFallback-cd0e40d9.js} +2 -2
  75. package/dist/esm/{translationStore-766b7521.js → translationStore-d241dcf7.js} +420 -360
  76. package/dist/esm/zonos-address_11.entry.js +21 -5
  77. package/dist/esm/zonos-cart-items_13.entry.js +73 -13
  78. package/dist/esm/zonos-checkout.entry.js +8 -5
  79. package/dist/esm/zonos-collect-cart-items_3.entry.js +3 -3
  80. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  81. package/dist/esm/zonos-collect.entry.js +5 -5
  82. package/dist/esm/zonos-confirm-dialog_2.entry.js +1 -1
  83. package/dist/esm/zonos-controller.entry.js +12 -5
  84. package/dist/esm/zonos-country-flag.entry.js +2 -2
  85. package/dist/esm/zonos-country-select_4.entry.js +9 -6
  86. package/dist/esm/zonos-empty-state-payment_4.entry.js +4 -4
  87. package/dist/esm/zonos-hello-dialog.entry.js +55 -45
  88. package/dist/esm/zonos-hello.entry.js +2 -2
  89. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  90. package/dist/esm-es5/cart-bc0e1598.js +1 -0
  91. package/dist/esm-es5/hasInclusivePrice-706cc09d.js +1 -0
  92. package/dist/esm-es5/index.js +1 -1
  93. package/dist/esm-es5/localization-53f67640.js +1 -0
  94. package/dist/esm-es5/{paypal-bf3a2bdd.js → paypal-3a6a048d.js} +1 -1
  95. package/dist/esm-es5/placeTestOrder-917731cf.js +1 -0
  96. package/dist/esm-es5/{renderFallback-ce0e238a.js → renderFallback-cd0e40d9.js} +1 -1
  97. package/dist/esm-es5/translationStore-d241dcf7.js +1 -0
  98. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  99. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  100. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  101. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  102. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  103. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  104. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -1
  105. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  106. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  107. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  108. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  109. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  110. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  111. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  112. package/dist/scripts/blurCurrencyOnInit.js +1 -1
  113. package/dist/scripts/index.d.ts +31 -6
  114. package/dist/scripts/index.js +1 -1
  115. package/dist/scripts/loadZonos.js +1 -1
  116. package/dist/scripts/zonos.js +1 -1
  117. package/dist/types/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.d.ts +2 -0
  118. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +1 -1
  119. package/dist/types/components/store/checkout/cart.d.ts +3 -0
  120. package/dist/types/components/store/hello/localization.d.ts +14 -3
  121. package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -15
  122. package/dist/types/components/store/translationStore/strings.base.d.ts +18 -15
  123. package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -15
  124. package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -15
  125. package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -15
  126. package/dist/types/components/store/translationStore/strings.french.d.ts +18 -15
  127. package/dist/types/components/store/translationStore/strings.german.d.ts +18 -15
  128. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -15
  129. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -15
  130. package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -15
  131. package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -15
  132. package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -15
  133. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -15
  134. package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -15
  135. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -15
  136. package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -15
  137. package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -15
  138. package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -15
  139. package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -15
  140. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -15
  141. package/dist/types/components/utils/api/getInclusivePriceConfigurations.d.ts +2 -0
  142. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  143. package/dist/types/components/utils/getOverridenZCountry.d.ts +5 -0
  144. package/dist/types/components/utils/hasInclusivePrice.d.ts +1 -0
  145. package/dist/types/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.d.ts +1 -0
  146. package/dist/types/components/utils/hello/currencyConversion/applyInclusivePrice.d.ts +1 -0
  147. package/dist/types/components/utils/hello/currencyConversion/calculateInclusivePrice.d.ts +27 -0
  148. package/dist/types/constants/key.d.ts +9 -0
  149. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
  150. package/dist/types/types/InclusivePricing.d.ts +13 -0
  151. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +1 -0
  152. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +2 -0
  153. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  154. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  155. package/dist/types/types/generated/graphql.internal.types.d.ts +184 -51
  156. package/dist/types/types/generated/graphql.internal.types.ts +221 -50
  157. package/dist/types/types/index.d.ts +1 -0
  158. package/dist/types/types/utils/ZonosSettings.d.ts +2 -0
  159. package/dist/types/utils/performBlurCurrency.d.ts +12 -0
  160. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  161. package/dist/zonos-elements/index.esm.js +1 -1
  162. package/dist/zonos-elements/{p-c89e9d56.system.js → p-0047fecf.system.js} +1 -1
  163. package/dist/zonos-elements/{p-bd373de0.system.entry.js → p-0bc8e55c.system.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-964a4d85.js → p-2008df67.js} +1 -1
  165. package/dist/zonos-elements/{p-2db90c99.system.entry.js → p-22338b4a.system.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-38f2f63f.system.entry.js → p-2eaa5013.system.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-288f5a5b.system.entry.js → p-304bdbc2.system.entry.js} +1 -1
  168. package/dist/zonos-elements/p-30981f80.entry.js +1 -0
  169. package/dist/zonos-elements/p-3a242dfc.system.js +1 -0
  170. package/dist/zonos-elements/{p-5608ac9d.entry.js → p-3eda5c2c.entry.js} +1 -1
  171. package/dist/zonos-elements/p-3f0ca5f9.js +1 -0
  172. package/dist/zonos-elements/{p-23f6a2fb.system.entry.js → p-3f35b8b1.system.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-de984173.system.js → p-419c292c.system.js} +1 -1
  174. package/dist/zonos-elements/{p-7a97e1cf.system.entry.js → p-4697f061.system.entry.js} +1 -1
  175. package/dist/zonos-elements/p-4f5be8f0.entry.js +1 -0
  176. package/dist/zonos-elements/p-516a9666.system.js +1 -0
  177. package/dist/zonos-elements/p-55c6ff14.system.entry.js +1 -0
  178. package/dist/zonos-elements/p-6d563f33.system.entry.js +1 -0
  179. package/dist/zonos-elements/{p-caebc1f8.system.js → p-7730879e.system.js} +1 -1
  180. package/dist/zonos-elements/p-7920d79c.system.js +1 -0
  181. package/dist/zonos-elements/p-7c96a585.js +1 -0
  182. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  183. package/dist/zonos-elements/{p-2b84039a.entry.js → p-91fa43ef.entry.js} +1 -1
  184. package/dist/zonos-elements/p-9a444a82.system.entry.js +1 -0
  185. package/dist/zonos-elements/p-9bdad585.system.entry.js +1 -0
  186. package/dist/zonos-elements/p-abc0fb80.js +1 -0
  187. package/dist/zonos-elements/{p-b0a75761.entry.js → p-ac26a931.entry.js} +1 -1
  188. package/dist/zonos-elements/p-bb707dfd.system.js +1 -0
  189. package/dist/zonos-elements/{p-10894d36.entry.js → p-bc963b03.entry.js} +1 -1
  190. package/dist/zonos-elements/p-c0e080e3.js +1 -0
  191. package/dist/zonos-elements/p-c20429ea.entry.js +1 -0
  192. package/dist/zonos-elements/p-c28da00e.entry.js +1 -0
  193. package/dist/zonos-elements/p-c9be03e0.entry.js +1 -0
  194. package/dist/zonos-elements/{p-6c8e4f01.system.entry.js → p-cb70de13.system.entry.js} +1 -1
  195. package/dist/zonos-elements/p-cec35a21.entry.js +1 -0
  196. package/dist/zonos-elements/{p-cf56b990.entry.js → p-d15cd138.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-6f1024de.system.entry.js → p-d852d6da.system.entry.js} +1 -1
  198. package/dist/zonos-elements/p-d9486c57.entry.js +1 -0
  199. package/dist/zonos-elements/p-db73c11a.entry.js +1 -0
  200. package/dist/zonos-elements/{p-203c7fda.js → p-e27a9450.js} +1 -1
  201. package/dist/zonos-elements/{p-258570ce.entry.js → p-ede9e968.entry.js} +1 -1
  202. package/dist/zonos-elements/p-ee8fcde6.js +1 -0
  203. package/dist/zonos-elements/p-f688d7a4.system.js +1 -0
  204. package/dist/zonos-elements/{p-236e0144.system.entry.js → p-ff1722d0.system.entry.js} +1 -1
  205. package/dist/zonos-elements/p-ff522088.system.entry.js +1 -0
  206. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  207. package/package.json +3 -3
  208. package/dist/esm-es5/cart-c74f9aaa.js +0 -1
  209. package/dist/esm-es5/localization-106476cb.js +0 -1
  210. package/dist/esm-es5/placeTestOrder-891295e8.js +0 -1
  211. package/dist/esm-es5/translationStore-766b7521.js +0 -1
  212. package/dist/types/components/utils/api/getInclusivePricing.d.ts +0 -6
  213. package/dist/zonos-elements/p-053a042e.entry.js +0 -1
  214. package/dist/zonos-elements/p-1d15662c.js +0 -1
  215. package/dist/zonos-elements/p-21b251f0.system.entry.js +0 -1
  216. package/dist/zonos-elements/p-225a61c4.system.entry.js +0 -1
  217. package/dist/zonos-elements/p-462f8857.entry.js +0 -1
  218. package/dist/zonos-elements/p-57ee34aa.system.entry.js +0 -1
  219. package/dist/zonos-elements/p-595668d7.system.js +0 -1
  220. package/dist/zonos-elements/p-62803534.entry.js +0 -1
  221. package/dist/zonos-elements/p-6497ce22.entry.js +0 -1
  222. package/dist/zonos-elements/p-65db3219.entry.js +0 -1
  223. package/dist/zonos-elements/p-783e7fa7.entry.js +0 -1
  224. package/dist/zonos-elements/p-9972941a.entry.js +0 -1
  225. package/dist/zonos-elements/p-ad7be556.system.entry.js +0 -1
  226. package/dist/zonos-elements/p-b4fe3604.system.js +0 -1
  227. package/dist/zonos-elements/p-b8293509.js +0 -1
  228. package/dist/zonos-elements/p-c3c3cd98.js +0 -1
  229. package/dist/zonos-elements/p-c6d0e87d.system.entry.js +0 -1
  230. package/dist/zonos-elements/p-cdaf52f4.system.js +0 -1
  231. package/dist/zonos-elements/p-cef1e888.system.js +0 -1
  232. package/dist/zonos-elements/p-eea0d8af.js +0 -1
  233. package/dist/zonos-elements/p-f4085c23.entry.js +0 -1
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1c710d00.js');
6
6
  const debounce$1 = require('./debounce-2c9f3f1e.js');
7
7
  const zonosStore = require('./zonosStore-5d489c65.js');
8
- const cart = require('./cart-ad82a680.js');
9
- const localization = require('./localization-31e3dfe3.js');
10
- const translationStore = require('./translationStore-b8b25e9d.js');
8
+ const cart = require('./cart-9b519566.js');
9
+ const localization = require('./localization-38af974b.js');
10
+ const translationStore = require('./translationStore-f2d5eae9.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
12
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
13
13
  const classes = require('./classes-b7918f56.js');
@@ -1897,7 +1897,7 @@ const validateEmailValue = (value) => {
1897
1897
  const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:16px}.sc-zonos-link-authentication-h .zonos--input-invalid.sc-zonos-link-authentication{border:2px solid var(--zonos-elements-red-600);border-radius:var(--zonos--border-radius)}";
1898
1898
  const ZonosLinkAuthenticationStyle0 = zonosLinkAuthenticationCss;
1899
1899
 
1900
- const MAX_RETRIES_INITIALIZE_LINK = 11;
1900
+ const MAX_RETRIES_INITIALIZE_LINK = 31;
1901
1901
  const ZonosLinkAuthentication = class {
1902
1902
  constructor(hostRef) {
1903
1903
  index.registerInstance(this, hostRef);
@@ -1973,6 +1973,22 @@ const ZonosLinkAuthentication = class {
1973
1973
  });
1974
1974
  cart.stripeStore.stripeLinkElement = linkAuthenticationElement;
1975
1975
  this.retriesInitializeLink = 0;
1976
+ // 10 seconds
1977
+ if (this.retriesInitializeLink > 11) {
1978
+ VarianceTest.log('Stripe link element initialized', 'info', {
1979
+ retriesInitializeLink: this.retriesInitializeLink,
1980
+ stripe: this.stripe,
1981
+ });
1982
+ void handleFetch.sendErrorLog({
1983
+ endpoint: 'stripe-link-authentication-init-long-running',
1984
+ errors: [
1985
+ 'Stripe link element initialized after 20 retries - 10 seconds',
1986
+ ],
1987
+ metadata: {
1988
+ retriesInitializeLink: this.retriesInitializeLink,
1989
+ },
1990
+ });
1991
+ }
1976
1992
  }
1977
1993
  catch (error) {
1978
1994
  if (error instanceof Error) {
@@ -1987,7 +2003,7 @@ const ZonosLinkAuthentication = class {
1987
2003
  endpoint: 'stripe-link-authentication-init-error',
1988
2004
  errors: [error.message],
1989
2005
  metadata: {
1990
- clientSecret: this.clientSecret,
2006
+ retriesInitializeLink: this.retriesInitializeLink,
1991
2007
  },
1992
2008
  });
1993
2009
  }
@@ -3,14 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
7
- const translationStore = require('./translationStore-b8b25e9d.js');
8
- const placeTestOrder = require('./placeTestOrder-6aefbf9c.js');
6
+ const cart = require('./cart-9b519566.js');
7
+ const translationStore = require('./translationStore-f2d5eae9.js');
8
+ const placeTestOrder = require('./placeTestOrder-6388881f.js');
9
9
  const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
+ const localization = require('./localization-38af974b.js');
11
12
  const zonosStore = require('./zonosStore-5d489c65.js');
12
- const paypal = require('./paypal-88b5e878.js');
13
- const localization = require('./localization-31e3dfe3.js');
13
+ const hasInclusivePrice = require('./hasInclusivePrice-12605be9.js');
14
+ const paypal = require('./paypal-e8fa2302.js');
14
15
  const handleFetch = require('./handleFetch-954f30e1.js');
15
16
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
16
17
  const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
@@ -152,12 +153,43 @@ const ZonosCartSubtotal = class {
152
153
  * Loading state for apply promo code button
153
154
  */
154
155
  this.loading = false;
156
+ this.getInclusivePriceType = () => {
157
+ var _a, _b;
158
+ const inclusivePriceConfiguration = localization.localizationStore.inclusivePricingConfigurations.find(Boolean);
159
+ const dutyInclusive = ((_a = inclusivePriceConfiguration === null || inclusivePriceConfiguration === void 0 ? void 0 : inclusivePriceConfiguration.configurations[hasInclusivePrice.DUTY_KEY]) === null || _a === void 0 ? void 0 : _a.status) ===
160
+ 'ENABLED';
161
+ const taxInclusive = ((_b = inclusivePriceConfiguration === null || inclusivePriceConfiguration === void 0 ? void 0 : inclusivePriceConfiguration.configurations[hasInclusivePrice.TAXES_KEY]) === null || _b === void 0 ? void 0 : _b.status) ===
162
+ 'ENABLED';
163
+ if (dutyInclusive && taxInclusive) {
164
+ return 'DUTY_TAX_AND_FEE';
165
+ }
166
+ // Fee would also be included with duty if it's inclusive
167
+ if (dutyInclusive) {
168
+ return 'DUTY_AND_FEE';
169
+ }
170
+ if (taxInclusive) {
171
+ return 'TAX';
172
+ }
173
+ return null;
174
+ };
175
+ this.getCartSubtotalSubtitle = () => {
176
+ const inclusivePriceType = this.getInclusivePriceType();
177
+ if (inclusivePriceType === 'DUTY_AND_FEE') {
178
+ return (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Duties and fees included')));
179
+ }
180
+ if (inclusivePriceType === 'TAX') {
181
+ return (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Taxes included')));
182
+ }
183
+ return null;
184
+ };
155
185
  }
156
186
  render() {
157
187
  var _a, _b, _c, _d, _e;
188
+ // Since now we are prefetching the landed cost, we need to not show the total that includes the landed cost and shipping
189
+ const cartTotal = cart.cartStore.step === 'customer-info' ? cart.cartStore.subtotal : cart.cartStore.total;
158
190
  const showDutyTaxesInfo = cart.cartStore.step === 'payment' || cart.cartStore.step === 'shipping';
159
191
  // Show 0 for subtotal and total when all items are restricted
160
- const total = cart.cartStoreHasOneEligibleItem() ? cart.cartStore.total : 0;
192
+ const total = cart.cartStoreHasOneEligibleItem() ? cartTotal : 0;
161
193
  // Total is in target currency, devide by target rate to get base currency
162
194
  const subtotal = cart.cartStoreHasOneEligibleItem() ? cart.cartStore.subtotal : 0;
163
195
  const shouldRenderPromoInput =
@@ -183,16 +215,43 @@ const ZonosCartSubtotal = class {
183
215
  this.loading = false;
184
216
  };
185
217
  const renderShippingInfo = () => {
186
- if (!cart.cartStore.selectedShippingOption) {
218
+ if (!cart.cartStore.selectedShippingOption ||
219
+ // Should not show shipping info at customer info step
220
+ cart.cartStore.step === 'customer-info') {
187
221
  return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Shipping')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('No shipping method selected'))));
188
222
  }
189
223
  return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.cartStore.selectedShippingOption.displayName), cart.cartStore.selectedShippingOptionTransitTime && (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, cart.cartStore.selectedShippingOptionTransitTime))));
190
224
  };
191
225
  const renderLandedCost = () => {
192
226
  var _a, _b, _c;
227
+ // At the moment, inclusive price only support for US merchant
228
+ if (hasInclusivePrice.hasInclusivePrice()) {
229
+ const inclusivePriceType = this.getInclusivePriceType();
230
+ // This should not happen, put it here to exclude null from the type
231
+ if (!inclusivePriceType) {
232
+ return null;
233
+ }
234
+ if (inclusivePriceType === 'TAX') {
235
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Nothing due at the door'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
236
+ ? placeTestOrder.renderCheckoutCurrency({
237
+ amount: cart.cartStore.dutiesTaxesFees,
238
+ isForeign: true,
239
+ })
240
+ : '-'))));
241
+ }
242
+ if (inclusivePriceType === 'DUTY_AND_FEE') {
243
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Taxes'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
244
+ ? placeTestOrder.renderCheckoutCurrency({
245
+ amount: cart.cartStore.dutiesTaxesFees,
246
+ isForeign: true,
247
+ })
248
+ : '-'))));
249
+ }
250
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('The purchase price covers duties, taxes and fees.'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, "-"))));
251
+ }
193
252
  // Domestic US doesn't have duty applied, just taxes and fees
194
253
  if ((_b = (_a = zonosStore.zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.domesticCountries) === null || _b === void 0 ? void 0 : _b.includes(((_c = cart.stripeStore.stripeAddressEventData) === null || _c === void 0 ? void 0 : _c.value.address.country) || 'US')) {
195
- return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Taxes and fees'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null ||
254
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Taxes and fees'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null ||
196
255
  cart.cartStore.dutiesTaxesFeesEstimate !== null
197
256
  ? placeTestOrder.renderCheckoutCurrency({
198
257
  amount: cart.cartStore.dutiesTaxesFees ||
@@ -203,23 +262,23 @@ const ZonosCartSubtotal = class {
203
262
  : '-'))));
204
263
  }
205
264
  if (cart.cartStore.landedCostMethod === 'DAP') {
206
- return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), cart.cartStore.dutiesTaxesFeesEstimate !== null
265
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), cart.cartStore.dutiesTaxesFeesEstimate !== null
207
266
  ? `${translationStore.translate('Estimated [amount]', {
208
267
  amount: placeTestOrder.renderCheckoutCurrency({
209
268
  amount: cart.cartStore.dutiesTaxesFeesEstimate,
210
269
  isForeign: true,
211
270
  }),
212
271
  })}`
213
- : '-'), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, translationStore.translate('Due at delivery')))));
272
+ : '-'), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, translationStore.translate('Due at delivery')))));
214
273
  }
215
- return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Nothing due at the door'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
274
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Nothing due at the door'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
216
275
  ? placeTestOrder.renderCheckoutCurrency({
217
276
  amount: cart.cartStore.dutiesTaxesFees,
218
277
  isForeign: true,
219
278
  })
220
279
  : '-'))));
221
280
  };
222
- return (index.h(index.Host, { class: "zonos--cart-subtotal zonos--elements" }, index.h("table", { class: "zonos--cart-table" }, index.h("tr", { class: "zonos--row zonos--cart-subtotal" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { type: "semiBoldLabel" }, translationStore.translate('Cart subtotal'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, placeTestOrder.renderCheckoutCurrency({
281
+ return (index.h(index.Host, { class: "zonos--cart-subtotal zonos--elements" }, index.h("table", { class: "zonos--cart-table" }, index.h("tr", { class: "zonos--row zonos--cart-subtotal" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { type: "semiBoldLabel" }, translationStore.translate('Cart subtotal')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, this.getCartSubtotalSubtitle())), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, placeTestOrder.renderCheckoutCurrency({
223
282
  amount: subtotal,
224
283
  isForeign: true,
225
284
  })))), index.h("tr", { class: "zonos--row zonos--cart-shipping" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, renderShippingInfo()), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cart.cartStore.shipping
@@ -1624,7 +1683,8 @@ const ZonosReview = class {
1624
1683
  this.isMobile = handleFetch.isCheckoutMobile(this.mobile);
1625
1684
  }
1626
1685
  render() {
1627
- const total = cart.cartStoreHasOneEligibleItem() ? cart.cartStore.total : 0;
1686
+ const cartTotal = cart.cartStore.step === 'customer-info' ? cart.cartStore.subtotal : cart.cartStore.total;
1687
+ const total = cart.cartStoreHasOneEligibleItem() ? cartTotal : 0;
1628
1688
  const titleTextType = this.isMobile ? 'boldSubheader' : 'semiBoldLabel';
1629
1689
  const totalTextType = this.isMobile
1630
1690
  ? 'boldSubheader'
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
7
- const paypal = require('./paypal-88b5e878.js');
8
- const localization = require('./localization-31e3dfe3.js');
9
- const translationStore = require('./translationStore-b8b25e9d.js');
6
+ const cart = require('./cart-9b519566.js');
7
+ const paypal = require('./paypal-e8fa2302.js');
8
+ const localization = require('./localization-38af974b.js');
9
+ const translationStore = require('./translationStore-f2d5eae9.js');
10
10
  const zonosStore = require('./zonosStore-5d489c65.js');
11
11
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
12
12
  const handleFetch = require('./handleFetch-954f30e1.js');
@@ -163,7 +163,10 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
163
163
  return;
164
164
  }
165
165
  // update the country code in localization store and check if it's shippable
166
- localization.localizationStoreUpdateSelectedCountryCode(shippingCountry);
166
+ localization.localizationStoreUpdateSelectedCountryCode({
167
+ isInitializing: false,
168
+ newSelectedCountryCode: shippingCountry,
169
+ });
167
170
  // do nothing if the country is still domestic
168
171
  if (!isShippableCountry(false)) {
169
172
  // cleanup the domestic shipping session if it's domestic because we will open the intl checkout after redirecting
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
6
+ const cart = require('./cart-9b519566.js');
7
7
  const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
8
8
  const zonosStore = require('./zonosStore-5d489c65.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
10
  const styles = require('./styles-d1e64fb9.js');
11
- require('./localization-31e3dfe3.js');
11
+ require('./localization-38af974b.js');
12
12
  require('./handleFetch-954f30e1.js');
13
13
  require('./VarianceTest-bec00ea8.js');
14
- require('./translationStore-b8b25e9d.js');
14
+ require('./translationStore-f2d5eae9.js');
15
15
  require('./isDarkColor-994c38e4.js');
16
16
  require('./getBorderRadius-c7d9f676.js');
17
17
 
@@ -3,19 +3,19 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
7
- const paypal = require('./paypal-88b5e878.js');
8
- const localization = require('./localization-31e3dfe3.js');
9
- const translationStore = require('./translationStore-b8b25e9d.js');
6
+ const cart = require('./cart-9b519566.js');
7
+ const paypal = require('./paypal-e8fa2302.js');
8
+ const localization = require('./localization-38af974b.js');
9
+ const translationStore = require('./translationStore-f2d5eae9.js');
10
10
  const zonosStore = require('./zonosStore-5d489c65.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
12
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
13
13
  const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
14
14
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
15
- const renderFallback = require('./renderFallback-87c908ad.js');
15
+ const renderFallback = require('./renderFallback-bb2c4bce.js');
16
16
  const classes = require('./classes-b7918f56.js');
17
17
  const ILanguage = require('./ILanguage-98b04442.js');
18
- const placeTestOrder = require('./placeTestOrder-6aefbf9c.js');
18
+ const placeTestOrder = require('./placeTestOrder-6388881f.js');
19
19
  require('./isDarkColor-994c38e4.js');
20
20
 
21
21
  const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
7
- const renderFallback = require('./renderFallback-87c908ad.js');
8
- const paypal = require('./paypal-88b5e878.js');
9
- const localization = require('./localization-31e3dfe3.js');
10
- const translationStore = require('./translationStore-b8b25e9d.js');
6
+ const cart = require('./cart-9b519566.js');
7
+ const renderFallback = require('./renderFallback-bb2c4bce.js');
8
+ const paypal = require('./paypal-e8fa2302.js');
9
+ const localization = require('./localization-38af974b.js');
10
+ const translationStore = require('./translationStore-f2d5eae9.js');
11
11
  const zonosStore = require('./zonosStore-5d489c65.js');
12
12
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
13
13
  const handleFetch = require('./handleFetch-954f30e1.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const translationStore = require('./translationStore-b8b25e9d.js');
6
+ const translationStore = require('./translationStore-f2d5eae9.js');
7
7
  const zonosStore = require('./zonosStore-5d489c65.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
7
- const localization = require('./localization-31e3dfe3.js');
6
+ const cart = require('./cart-9b519566.js');
7
+ const localization = require('./localization-38af974b.js');
8
8
  const zonosStore = require('./zonosStore-5d489c65.js');
9
9
  const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
12
- require('./translationStore-b8b25e9d.js');
12
+ require('./translationStore-f2d5eae9.js');
13
13
  require('./isDarkColor-994c38e4.js');
14
14
  require('./getBorderRadius-c7d9f676.js');
15
15
 
@@ -27,6 +27,10 @@ const getZonosSettings = async () => {
27
27
  if (overrideSettings.overrideShouldEnabledCustomAddress) {
28
28
  params.set('overrideShouldEnabledCustomAddress', overrideSettings.overrideShouldEnabledCustomAddress);
29
29
  }
30
+ const zCountry = localization.getOverridenZCountry();
31
+ if (zCountry) {
32
+ params.set('zCountry', zCountry);
33
+ }
30
34
  const { errors, json, zonosMode } = await handleFetch.handleFetch(`/api/zonos-elements/zonos-settings?${params.toString()}`);
31
35
  if (errors.length) {
32
36
  handleFetch.logError(`Error occurred when getting zonos settings. If this is not an unauthorized error, it will use user settings or default settings`);
@@ -676,7 +680,10 @@ const ZonosController = class {
676
680
  */
677
681
  async overrideCountry(countryCode) {
678
682
  VarianceTest.log(`Override country code to ${countryCode}`);
679
- void localization.localizationStoreUpdateSelectedCountryCode(countryCode);
683
+ void localization.localizationStoreUpdateSelectedCountryCode({
684
+ isInitializing: false,
685
+ newSelectedCountryCode: countryCode,
686
+ });
680
687
  }
681
688
  /**
682
689
  * Get appearance from setting
@@ -691,7 +698,7 @@ const ZonosController = class {
691
698
  zonosStore.zonosStore.organizationName = organizationName;
692
699
  }
693
700
  render() {
694
- return index.h(index.Host, { key: '9554e2f66703eea438104c61265d0e6571d07741', class: "zonos--elements" });
701
+ return index.h(index.Host, { key: 'c3c33e5e4422b4b05f68fc876a23eb30c9b0f11d', class: "zonos--elements" });
695
702
  }
696
703
  };
697
704
  ZonosController.style = ZonosControllerStyle0;
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const localization = require('./localization-31e3dfe3.js');
6
+ const localization = require('./localization-38af974b.js');
7
7
  const zonosStore = require('./zonosStore-5d489c65.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-954f30e1.js');
10
10
  require('./VarianceTest-bec00ea8.js');
11
- require('./translationStore-b8b25e9d.js');
11
+ require('./translationStore-f2d5eae9.js');
12
12
 
13
13
  const zonosCountryFlagCss = ":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{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
14
14
  const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c710d00.js');
6
- const localization = require('./localization-31e3dfe3.js');
7
- const translationStore = require('./translationStore-b8b25e9d.js');
6
+ const localization = require('./localization-38af974b.js');
7
+ const translationStore = require('./translationStore-f2d5eae9.js');
8
8
  const zonosStore = require('./zonosStore-5d489c65.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
10
10
  const isDarkColor = require('./isDarkColor-994c38e4.js');
@@ -1826,7 +1826,10 @@ const ZonosCountrySelect = class {
1826
1826
  this.inputValue = '';
1827
1827
  this.countrySelected = (countryCode) => {
1828
1828
  // mutate the selected country code in store
1829
- void localization.localizationStoreUpdateSelectedCountryCode(countryCode);
1829
+ void localization.localizationStoreUpdateSelectedCountryCode({
1830
+ isInitializing: false,
1831
+ newSelectedCountryCode: countryCode,
1832
+ });
1830
1833
  this.handleOnClose();
1831
1834
  };
1832
1835
  this.handleInputChange = (event) => {
@@ -1859,13 +1862,13 @@ const ZonosCountrySelect = class {
1859
1862
  ? fuseObject.map(country => country.item)
1860
1863
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
1861
1864
  const isEmpty = !filteredCountries.length;
1862
- return (index.h(index.Host, { key: '87e346925730bb4ce7a5a0da35bbffe9fa209e79', class: "zonos--elements", style: {
1865
+ return (index.h(index.Host, { key: '4bdbe0a40e52745510cf5c51826375eb46d6c85a', class: "zonos--elements", style: {
1863
1866
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
1864
- } }, index.h("div", { key: '557543582175b50bcd5e9e0e9362ecc85f0b0ec0', class: "zonos--country-select" }, index.h("zonos-v-stack", { key: '3e03b4624abfc1b2239560a62dd33659c30c7d26', class: "zonos--country-select-header", spacing: 8 }, index.h("zonos-select-dialog-header", { key: '9664de32cbfb119eb0b3658b71f31039f4d0e064', handleOnClose: () => this.handleOnClose(), label: translationStore.translate('Select a country') }, index.h("input", { key: 'c5f28d334194471298bacc218f36dd7d56f57c1e', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translationStore.translate('Search countries'), ref: el => {
1867
+ } }, index.h("div", { key: '82492f3baa43f2691fa9457fdde52fcc6d6b153e', class: "zonos--country-select" }, index.h("zonos-v-stack", { key: '56fa5efa199d1f83f8042b9280295d0e08c9d045', class: "zonos--country-select-header", spacing: 8 }, index.h("zonos-select-dialog-header", { key: '3b84b57f1b80152fcb0c4049672796c87744517a', handleOnClose: () => this.handleOnClose(), label: translationStore.translate('Select a country') }, index.h("input", { key: '68b9b5af5dbdf20d47e39c45b3c64df772afb56f', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translationStore.translate('Search countries'), ref: el => {
1865
1868
  if (el) {
1866
1869
  this.inputRef = el;
1867
1870
  }
1868
- }, type: "text", value: this.inputValue }))), index.h("div", { key: '9f623511c7a1576961e527071c10672f3b800359', class: "zonos--country-select-content" }, isEmpty && (index.h("zonos-text", { key: '3c37b29f38ce48ea953df2faf0ab9e349a8e538c', class: "no-country", textColor: "gray-800" }, translationStore.translate('No countries found'))), index.h("zonos-virtual-scroll", { key: 'ebab93c3379e93fcbde6cd634174f981c06bff42', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index$1 => {
1871
+ }, type: "text", value: this.inputValue }))), index.h("div", { key: '365e7ae9464070080182bb4b83f232d0952eb9c8', class: "zonos--country-select-content" }, isEmpty && (index.h("zonos-text", { key: '025ae5379da4ef222c39544bee3b009bc3a3c7a4', class: "no-country", textColor: "gray-800" }, translationStore.translate('No countries found'))), index.h("zonos-virtual-scroll", { key: '3ae131cb44d63bd239e3c90cbfcaf8535817c663', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index$1 => {
1869
1872
  const country = filteredCountries[index$1];
1870
1873
  if (!country) {
1871
1874
  return null;
@@ -6,12 +6,12 @@ const index = require('./index-1c710d00.js');
6
6
  const zonosStore = require('./zonosStore-5d489c65.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
9
- const cart = require('./cart-ad82a680.js');
10
- const localization = require('./localization-31e3dfe3.js');
9
+ const cart = require('./cart-9b519566.js');
10
+ const localization = require('./localization-38af974b.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
- const paypal = require('./paypal-88b5e878.js');
12
+ const paypal = require('./paypal-e8fa2302.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
- require('./translationStore-b8b25e9d.js');
14
+ require('./translationStore-f2d5eae9.js');
15
15
  require('./isDarkColor-994c38e4.js');
16
16
 
17
17
  const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">