@zonos/elements 1.3.141 → 1.3.142

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 (230) hide show
  1. package/dist/cjs/{CheckoutConfig-165db6b6.js → CheckoutConfig-eaaf62a1.js} +1 -1
  2. package/dist/cjs/{cart-e1b59d03.js → cart-199b0751.js} +7 -7
  3. package/dist/cjs/{getBorderRadius-f72d8edf.js → getBorderRadius-f97c99ad.js} +1 -1
  4. package/dist/cjs/{handleFetch-4a90f091.js → handleFetch-864d3c53.js} +5 -5
  5. package/dist/cjs/{index-d56e0a8b.js → index-b678ce0c.js} +42 -8
  6. package/dist/cjs/index.cjs.js +9 -9
  7. package/dist/cjs/{isDarkColor-dd6d723b.js → isDarkColor-434d71dd.js} +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{paypal-86cc51e4.js → paypal-4f1ee604.js} +5 -5
  10. package/dist/cjs/zonos-address_7.cjs.entry.js +6 -6
  11. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
  14. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  15. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +10 -10
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +9 -9
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  19. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  20. package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
  21. package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
  22. package/dist/cjs/zonos-elements.cjs.js +2 -2
  23. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
  24. package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  26. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  29. package/dist/cjs/zonos-notification_3.cjs.entry.js +7 -7
  30. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  31. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  33. package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
  34. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  35. package/dist/cjs/{zonosStore-293bb3ba.js → zonosStore-8971eb65.js} +1 -1
  36. package/dist/collection/collection-manifest.json +2 -2
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-currency-toggle/zonos-currency-toggle.js +2 -2
  40. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +1 -1
  41. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +1 -1
  42. package/dist/collection/components/store/checkout/paypal.js +1 -1
  43. package/dist/collection/components/utils/api/getCountries.js +1 -1
  44. package/dist/collection/components/utils/api/getLocalization.js +1 -1
  45. package/dist/collection/components/utils/handleFetch.js +2 -2
  46. package/dist/collection/components/utils/isValidSelector.js +1 -1
  47. package/dist/collection/components/utils/jsonParse.js +1 -1
  48. package/dist/collection/components/utils/logging/log.js +1 -1
  49. package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
  50. package/dist/collection/environment.js +1 -1
  51. package/dist/collection/types/stripe/Apperance.js +0 -58
  52. package/dist/esm/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
  53. package/dist/esm/{cart-709f053f.js → cart-cf87ec6f.js} +7 -7
  54. package/dist/esm/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
  55. package/dist/esm/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +5 -5
  56. package/dist/esm/{index-86b8247e.js → index-986b5ff2.js} +42 -8
  57. package/dist/esm/index.js +10 -10
  58. package/dist/esm/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
  59. package/dist/esm/loader.js +2 -2
  60. package/dist/esm/{paypal-77a60c44.js → paypal-b7124cc4.js} +5 -5
  61. package/dist/esm/zonos-address_7.entry.js +6 -6
  62. package/dist/esm/zonos-badge.entry.js +2 -2
  63. package/dist/esm/zonos-banner.entry.js +2 -2
  64. package/dist/esm/zonos-button_3.entry.js +4 -4
  65. package/dist/esm/zonos-card.entry.js +3 -3
  66. package/dist/esm/zonos-cart-items_13.entry.js +10 -10
  67. package/dist/esm/zonos-checkout.entry.js +9 -9
  68. package/dist/esm/zonos-collapse.entry.js +2 -2
  69. package/dist/esm/zonos-component.entry.js +1 -1
  70. package/dist/esm/zonos-controller.entry.js +6 -6
  71. package/dist/esm/zonos-country-flag.entry.js +6 -6
  72. package/dist/esm/zonos-country-select_4.entry.js +6 -6
  73. package/dist/esm/zonos-elements.js +3 -3
  74. package/dist/esm/zonos-hello-dialog.entry.js +7 -7
  75. package/dist/esm/zonos-hello.entry.js +6 -6
  76. package/dist/esm/zonos-input.entry.js +3 -3
  77. package/dist/esm/zonos-language-select_2.entry.js +6 -6
  78. package/dist/esm/zonos-link.entry.js +1 -1
  79. package/dist/esm/zonos-logo.entry.js +2 -2
  80. package/dist/esm/zonos-notification_3.entry.js +7 -7
  81. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  82. package/dist/esm/zonos-text.entry.js +2 -2
  83. package/dist/esm/zonos-toggle.entry.js +2 -2
  84. package/dist/esm/zonos-tooltip.entry.js +1 -1
  85. package/dist/esm/zonos-v-stack.entry.js +2 -2
  86. package/dist/esm/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
  87. package/dist/esm-es5/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
  88. package/dist/esm-es5/{cart-709f053f.js → cart-cf87ec6f.js} +1 -1
  89. package/dist/esm-es5/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
  90. package/dist/esm-es5/index-986b5ff2.js +2 -0
  91. package/dist/esm-es5/index.js +1 -1
  92. package/dist/esm-es5/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
  93. package/dist/esm-es5/loader.js +1 -1
  94. package/dist/esm-es5/{paypal-77a60c44.js → paypal-b7124cc4.js} +1 -1
  95. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  96. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  97. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  98. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  99. package/dist/esm-es5/zonos-card.entry.js +1 -1
  100. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  101. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  102. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  103. package/dist/esm-es5/zonos-component.entry.js +1 -1
  104. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  105. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  106. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  107. package/dist/esm-es5/zonos-elements.js +1 -1
  108. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  109. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  110. package/dist/esm-es5/zonos-input.entry.js +1 -1
  111. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  112. package/dist/esm-es5/zonos-link.entry.js +1 -1
  113. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  114. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  115. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  116. package/dist/esm-es5/zonos-text.entry.js +1 -1
  117. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  118. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  119. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  120. package/dist/esm-es5/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
  121. package/dist/scripts/index.d.ts +4 -9
  122. package/dist/scripts/index.js +1 -1
  123. package/dist/scripts/loadZonos.js +1 -1
  124. package/dist/scripts/zonos.js +1 -1
  125. package/dist/types/components/store/checkout/cart.d.ts +2 -3
  126. package/dist/types/components/store/checkout/stripe.d.ts +2 -2
  127. package/dist/types/components/store/hello/localization.d.ts +0 -1
  128. package/dist/types/components/store/translationStore.d.ts +1 -1
  129. package/dist/types/components/store/zonosStore.d.ts +1 -1
  130. package/dist/types/components/utils/api/checkItemRestrictions.d.ts +3 -3
  131. package/dist/types/components/utils/api/getLocaleMessages.d.ts +3 -3
  132. package/dist/types/components/utils/changeDeepProperty.d.ts +2 -2
  133. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +2 -1
  134. package/dist/types/components/utils/createCustomEvent.d.ts +3 -3
  135. package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +3 -3
  136. package/dist/types/components/utils/hello/getCurrentHelloLocalePage.d.ts +1 -1
  137. package/dist/types/components/utils/hello/initHello.d.ts +2 -2
  138. package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
  139. package/dist/types/components.d.ts +2 -2
  140. package/dist/types/environment.d.ts +2 -2
  141. package/dist/types/scripts/_stripe.d.ts +1 -1
  142. package/dist/types/stencil-public-runtime.d.ts +6 -0
  143. package/dist/types/styles/stripe/defaultVariable.d.ts +1 -1
  144. package/dist/types/types/global.d.ts +0 -5
  145. package/dist/types/types/stripe/Apperance.d.ts +1 -2
  146. package/dist/types/utils/formattedUrl.d.ts +1 -1
  147. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  148. package/dist/zonos-elements/index.esm.js +1 -1
  149. package/dist/zonos-elements/{p-e205ef1c.system.entry.js → p-0197a9bf.system.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-be2feba6.entry.js → p-076388d3.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-0c027d2e.entry.js → p-0920500d.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-87ed2e17.system.entry.js → p-0b5f4ca7.system.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-a58731ec.system.js → p-0cda2818.system.js} +1 -1
  154. package/dist/zonos-elements/p-0d2cf216.entry.js +1 -0
  155. package/dist/zonos-elements/{p-3dd503fd.system.entry.js → p-0e54432c.system.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-b7307c61.js → p-1460f917.js} +1 -1
  157. package/dist/zonos-elements/{p-9589bd08.entry.js → p-1e3ea4ae.entry.js} +1 -1
  158. package/dist/zonos-elements/p-21b538ea.system.js +1 -0
  159. package/dist/zonos-elements/{p-22d69480.system.entry.js → p-232963d3.system.entry.js} +1 -1
  160. package/dist/zonos-elements/p-272052bd.system.entry.js +1 -0
  161. package/dist/zonos-elements/{p-0fc96872.system.entry.js → p-2761ad55.system.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-bc8b22ad.entry.js → p-28295342.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-b9efc660.entry.js → p-2949faf3.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-04a6a167.entry.js → p-2b8cddb7.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-ad1d6ea2.entry.js → p-2c19f5e2.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-f07c01c5.system.entry.js → p-2cfc00b8.system.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-289ded20.system.entry.js → p-2d514c1d.system.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-1c4ff7b2.system.entry.js → p-2e152517.system.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-4319600a.system.entry.js → p-33e1d25e.system.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-10efff62.system.js → p-36dfc7ac.system.js} +1 -1
  171. package/dist/zonos-elements/{p-7a60deef.system.entry.js → p-381874b0.system.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-00d4bff1.entry.js → p-39cac2c1.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-64a04391.system.entry.js → p-3cb4468f.system.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-b832ec52.entry.js → p-3cf30d83.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-afffdfc2.js → p-3d82e70e.js} +1 -1
  176. package/dist/zonos-elements/{p-9b59704a.entry.js → p-44dd4269.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-edc16f69.js → p-4b685549.js} +1 -1
  178. package/dist/zonos-elements/{p-ad4bc6a2.entry.js → p-545c05ce.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-8368a79e.entry.js → p-58a09715.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-d35376d3.js → p-6271e108.js} +2 -2
  181. package/dist/zonos-elements/{p-5c32689e.entry.js → p-65069140.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-8f9affb3.system.entry.js → p-673b4402.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-5b90dd6d.entry.js → p-675f60b4.entry.js} +1 -1
  184. package/dist/zonos-elements/p-680d3694.js +2 -0
  185. package/dist/zonos-elements/{p-f2867195.entry.js → p-68d79b58.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-896d62a4.system.entry.js → p-6b490b0a.system.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-d633ced9.entry.js → p-72256333.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-10d6fe23.js → p-766dd01f.js} +1 -1
  189. package/dist/zonos-elements/{p-7ef573f0.entry.js → p-7c5c0a85.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-bb418544.system.js → p-7c643376.system.js} +1 -1
  191. package/dist/zonos-elements/{p-f8e8b50e.system.js → p-866bb93e.system.js} +1 -1
  192. package/dist/zonos-elements/{p-f8ca3e71.entry.js → p-8c487480.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-fce202ab.entry.js → p-9306a835.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-ffe4a999.system.entry.js → p-983f23a1.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-35b8dcde.entry.js → p-9b720cf4.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-cd1fd09e.entry.js → p-9dec2b74.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-ee1e1d94.system.entry.js → p-a13d5957.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-dc09df19.system.entry.js → p-a2bce31d.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-cf72603f.system.entry.js → p-a8bd492d.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-d10ffd69.js → p-b0174a8f.js} +1 -1
  201. package/dist/zonos-elements/{p-fd061229.system.js → p-b50667b6.system.js} +1 -1
  202. package/dist/zonos-elements/{p-46a5ec52.system.js → p-c0164a3c.system.js} +1 -1
  203. package/dist/zonos-elements/{p-6b0aa1bb.system.js → p-c1b098de.system.js} +1 -1
  204. package/dist/zonos-elements/{p-010f5797.system.entry.js → p-d198421b.system.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-7acf6802.entry.js → p-d381288e.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-896ab1ed.system.entry.js → p-d5a3851d.system.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-25c7e4fa.system.entry.js → p-ded984d9.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-0aee2e4c.system.entry.js → p-e6554a6f.system.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-c78dd680.system.js → p-e9964a5a.system.js} +1 -1
  210. package/dist/zonos-elements/{p-461624ce.system.entry.js → p-ebdd9b64.system.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-01ad5be8.system.entry.js → p-f295030e.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-3a26cae5.entry.js → p-fc4658a6.entry.js} +1 -1
  213. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  214. package/dist/zonos-elements/zonos-elements.js +1 -1
  215. package/package.json +68 -67
  216. package/dist/collection/__mocks__/vercel-app/loadZonos.js +0 -492
  217. package/dist/collection/__mocks__/vercel-app/localization.js +0 -1
  218. package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +0 -1
  219. package/dist/collection/__mocks__/zonos-url/index.js +0 -1
  220. package/dist/collection/__mocks__/zonos-url/loadZonos.js +0 -492
  221. package/dist/collection/__mocks__/zonos-url/localization.js +0 -2899
  222. package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +0 -1
  223. package/dist/esm-es5/index-86b8247e.js +0 -2
  224. package/dist/zonos-elements/p-49e4ca08.system.entry.js +0 -1
  225. package/dist/zonos-elements/p-5b7da777.js +0 -2
  226. package/dist/zonos-elements/p-6b6cd6c3.system.js +0 -1
  227. package/dist/zonos-elements/p-e6c31531.entry.js +0 -1
  228. /package/dist/esm-es5/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +0 -0
  229. /package/dist/zonos-elements/{p-860e46ab.js → p-a5b294d7.js} +0 -0
  230. /package/dist/zonos-elements/{p-febc72e7.system.js → p-bfcfd29b.system.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const handleFetch = require('./handleFetch-4a90f091.js');
3
+ const handleFetch = require('./handleFetch-864d3c53.js');
4
4
 
5
5
  const getTempCartById = async ({ cartId, retries, }) => {
6
6
  const urlParams = new URLSearchParams(window.location.search);
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-293bb3ba.js');
4
- const handleFetch = require('./handleFetch-4a90f091.js');
5
- const isDarkColor = require('./isDarkColor-dd6d723b.js');
6
- const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
3
+ const zonosStore = require('./zonosStore-8971eb65.js');
4
+ const handleFetch = require('./handleFetch-864d3c53.js');
5
+ const isDarkColor = require('./isDarkColor-434d71dd.js');
6
+ const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
7
7
 
8
8
  const stringsArabic = {
9
9
  ' (Duties due at door)': {
@@ -8983,7 +8983,7 @@ const getCountries = async () => {
8983
8983
  }
8984
8984
  return json;
8985
8985
  }
8986
- catch (error) {
8986
+ catch (_a) {
8987
8987
  return null;
8988
8988
  }
8989
8989
  };
@@ -9110,7 +9110,7 @@ const getLocalization = async () => {
9110
9110
  locale: json.locale,
9111
9111
  };
9112
9112
  }
9113
- catch (error) {
9113
+ catch (_a) {
9114
9114
  return { country: null, locale: null };
9115
9115
  }
9116
9116
  };
@@ -9233,7 +9233,7 @@ const isValidSelector = (selector) => {
9233
9233
  // this will error out if the selector is invalid in the DOM
9234
9234
  document.createDocumentFragment().querySelector(selector);
9235
9235
  }
9236
- catch (e) {
9236
+ catch (_a) {
9237
9237
  return false;
9238
9238
  }
9239
9239
  return true;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-293bb3ba.js');
3
+ const zonosStore = require('./zonosStore-8971eb65.js');
4
4
 
5
5
  /**
6
6
  * Get the border radius for the elements based on the style
@@ -19,7 +19,7 @@ const prepInfo = (info) => {
19
19
  const infoToJson = JSON.stringify(info);
20
20
  return infoToJson;
21
21
  }
22
- catch (e1) {
22
+ catch (_a) {
23
23
  if (info && typeof info.toString === 'function') {
24
24
  const infoToString = info.toString();
25
25
  return infoToString;
@@ -111,7 +111,7 @@ const jsonParse = (_data) => {
111
111
  const json = JSON.parse(_data);
112
112
  return json;
113
113
  }
114
- catch (_error) {
114
+ catch (_a) {
115
115
  return null;
116
116
  }
117
117
  }
@@ -155,7 +155,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseError
155
155
  method: 'POST',
156
156
  });
157
157
  }
158
- catch (_err) {
158
+ catch (_a) {
159
159
  const nextFallbackApi = getNextFallbackApiType();
160
160
  if (!nextFallbackApi) {
161
161
  return;
@@ -205,7 +205,7 @@ const encodeString = (text) => {
205
205
  const encodedString = btoa(text).replace(/=/g, '');
206
206
  return encodedString;
207
207
  }
208
- catch (error) {
208
+ catch (_a) {
209
209
  // return the reverse string if the encoding failed
210
210
  return text
211
211
  .replace(/[^A-Za-z0-9]/g, '')
@@ -280,7 +280,7 @@ const handleRequest = async ({ basePathType, options, path, }) => {
280
280
  zonosMode,
281
281
  };
282
282
  }
283
- catch (e) {
283
+ catch (_a) {
284
284
  const message = 'Unknown error';
285
285
  return {
286
286
  baseUrl,
@@ -24,7 +24,7 @@ const NAMESPACE = 'zonos-elements';
24
24
  const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -416,7 +416,31 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
416
416
  if (nonce != null) {
417
417
  styleElm.setAttribute("nonce", nonce);
418
418
  }
419
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
419
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
420
+ if (styleContainerNode.nodeName === "HEAD") {
421
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
422
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
423
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
424
+ } else if ("host" in styleContainerNode) {
425
+ if (supportsConstructableStylesheets) {
426
+ const stylesheet = new CSSStyleSheet();
427
+ stylesheet.replaceSync(style);
428
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
429
+ } else {
430
+ const existingStyleContainer = styleContainerNode.querySelector("style");
431
+ if (existingStyleContainer) {
432
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
433
+ } else {
434
+ styleContainerNode.prepend(styleElm);
435
+ }
436
+ }
437
+ } else {
438
+ styleContainerNode.append(styleElm);
439
+ }
440
+ }
441
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
442
+ styleContainerNode.insertBefore(styleElm, null);
443
+ }
420
444
  }
421
445
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
422
446
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -439,7 +463,7 @@ var attachStyles = (hostRef) => {
439
463
  const scopeId2 = addStyle(
440
464
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
441
465
  cmpMeta);
442
- if (flags & 10 /* needsScopedEncapsulation */) {
466
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
443
467
  elm["s-sc"] = scopeId2;
444
468
  elm.classList.add(scopeId2 + "-h");
445
469
  if (flags & 2 /* scopedCssEncapsulation */) {
@@ -511,7 +535,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
511
535
  if (memberName === "list") {
512
536
  isProp = false;
513
537
  } else if (oldValue == null || elm[memberName] != n) {
514
- elm[memberName] = n;
538
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
539
+ elm[memberName] = n;
540
+ } else {
541
+ elm.setAttribute(memberName, n);
542
+ }
515
543
  }
516
544
  } else {
517
545
  elm[memberName] = newValue;
@@ -591,7 +619,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
591
619
  {
592
620
  updateElement(null, newVNode2, isSvgMode);
593
621
  }
594
- if (isDef(scopeId) && elm["s-si"] !== scopeId) {
622
+ const rootNode = elm.getRootNode();
623
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
624
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
595
625
  elm.classList.add(elm["s-si"] = scopeId);
596
626
  }
597
627
  {
@@ -759,7 +789,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
759
789
  elm.textContent = "";
760
790
  }
761
791
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
762
- } else if (oldChildren !== null) {
792
+ } else if (
793
+ // don't do this on initial render as it can cause non-hydrated content to be removed
794
+ !isInitialRender && BUILD.updatable && oldChildren !== null
795
+ ) {
763
796
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
764
797
  }
765
798
  if (isSvgMode && tag === "svg") {
@@ -799,7 +832,7 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
799
832
  if (element && parent && element.nodeType === 1 /* ElementNode */) {
800
833
  const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
801
834
  if (scopeIds.size) {
802
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
835
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
803
836
  if (element["s-ol"] || iterateChildNodes) {
804
837
  for (const childNode of Array.from(element.childNodes)) {
805
838
  updateElementScopeIds(childNode, element, true);
@@ -1088,7 +1121,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1088
1121
  if (this.hasOwnProperty(propName)) {
1089
1122
  newValue = this[propName];
1090
1123
  delete this[propName];
1091
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1124
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1125
+ this[propName] == newValue) {
1092
1126
  return;
1093
1127
  } else if (propName == null) {
1094
1128
  const hostRef = getHostRef(this);
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const handleFetch = require('./handleFetch-4a90f091.js');
6
- const CheckoutConfig = require('./CheckoutConfig-165db6b6.js');
5
+ const handleFetch = require('./handleFetch-864d3c53.js');
6
+ const CheckoutConfig = require('./CheckoutConfig-eaaf62a1.js');
7
7
 
8
8
  /**
9
9
  * Get the load version and url based on the loadScriptSrc and version
@@ -127,7 +127,7 @@ const getZonosQaUrl = () => {
127
127
  return null;
128
128
  }
129
129
  const qaUrl = extractZonosQaUrl(window.location.href);
130
- const cdnUrl = "https://v1.3.141.js.zonos.com";
130
+ const cdnUrl = "https://v1.3.142.js.zonos.com";
131
131
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
132
132
  if (!qaUrl &&
133
133
  (cdnUrl.includes('test.') ||
@@ -311,10 +311,10 @@ const zonosLoadUrl = (() => {
311
311
  }
312
312
  return null;
313
313
  })();
314
- const ZONOS_URL = "https://v1.3.141.js.zonos.com";
315
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.141";
316
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.141";
317
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.141";
314
+ const ZONOS_URL = "https://v1.3.142.js.zonos.com";
315
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.142";
316
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.142";
317
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.142";
318
318
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
319
319
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
320
320
  class Zonos {
@@ -328,7 +328,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
328
328
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
329
329
  Zonos._paypalMockResponse = null;
330
330
  Zonos.isBigCommerce = false;
331
- Zonos.releaseDate = "1734130586435";
331
+ Zonos.releaseDate = "1734472646609";
332
332
  Zonos.isLegacyCheckout = false;
333
333
  Zonos.domain = typeof window !== 'undefined'
334
334
  ? // domain that embeds the iframe
@@ -344,7 +344,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
344
344
  Zonos.isNpm = true;
345
345
  Zonos.zonosQaUrl = null;
346
346
  Zonos.zonosQaUrlApi = null;
347
- Zonos.version = `v${"1.3.141"}`;
347
+ Zonos.version = `v${"1.3.142"}`;
348
348
  Zonos.modeAlerted = false;
349
349
  Zonos.cartData = null;
350
350
  Zonos.paypal = null;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-293bb3ba.js');
3
+ const zonosStore = require('./zonosStore-8971eb65.js');
4
4
 
5
5
  var tinycolor$1 = {exports: {}};
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
5
+ const index = require('./index-b678ce0c.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-293bb3ba.js');
4
- const cart = require('./cart-e1b59d03.js');
5
- const handleFetch = require('./handleFetch-4a90f091.js');
6
- const isDarkColor = require('./isDarkColor-dd6d723b.js');
3
+ const zonosStore = require('./zonosStore-8971eb65.js');
4
+ const cart = require('./cart-199b0751.js');
5
+ const handleFetch = require('./handleFetch-864d3c53.js');
6
+ const isDarkColor = require('./isDarkColor-434d71dd.js');
7
7
 
8
8
  /*!
9
9
  * paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
@@ -327,7 +327,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
327
327
  cart.cartStore.inventoryCheckErrorMessage =
328
328
  await cart.stripeStoreHandleInventoryCheck();
329
329
  }
330
- catch (err) {
330
+ catch (_a) {
331
331
  // If user provide callback and it throw an exception, default to this message and stop the payment.
332
332
  cart.cartStore.inventoryCheckErrorMessage = cart.translate('Unable to check inventory. Please try again.');
333
333
  }
@@ -2,16 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-e1b59d03.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const cart = require('./cart-199b0751.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
- const handleFetch = require('./handleFetch-4a90f091.js');
8
+ const handleFetch = require('./handleFetch-864d3c53.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
- const zonosStore = require('./zonosStore-293bb3ba.js');
10
+ const zonosStore = require('./zonosStore-8971eb65.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
12
  const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
13
- const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
14
- const isDarkColor = require('./isDarkColor-dd6d723b.js');
13
+ const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
14
+ const isDarkColor = require('./isDarkColor-434d71dd.js');
15
15
 
16
16
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
17
17
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const zonosStore = require('./zonosStore-8971eb65.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const zonosStore = require('./zonosStore-8971eb65.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBannerCss = ":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{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const zonosStore = require('./zonosStore-8971eb65.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
8
+ const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
9
9
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
10
- const isDarkColor = require('./isDarkColor-dd6d723b.js');
10
+ const isDarkColor = require('./isDarkColor-434d71dd.js');
11
11
  const styles = require('./styles-d1e64fb9.js');
12
12
 
13
13
  /**
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const zonosStore = require('./zonosStore-8971eb65.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
8
+ const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
9
9
 
10
10
  const zonosCardCss = ":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
11
11
  const ZonosCardStyle0 = zonosCardCss;
@@ -2,17 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-e1b59d03.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const cart = require('./cart-199b0751.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-86cc51e4.js');
9
- const zonosStore = require('./zonosStore-293bb3ba.js');
8
+ const paypal = require('./paypal-4f1ee604.js');
9
+ const zonosStore = require('./zonosStore-8971eb65.js');
10
10
  const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
- const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
12
- const handleFetch = require('./handleFetch-4a90f091.js');
11
+ const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
12
+ const handleFetch = require('./handleFetch-864d3c53.js');
13
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
14
14
  const ILanguage = require('./ILanguage-98b04442.js');
15
- const isDarkColor = require('./isDarkColor-dd6d723b.js');
15
+ const isDarkColor = require('./isDarkColor-434d71dd.js');
16
16
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
17
17
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
18
18
 
@@ -1415,7 +1415,7 @@ const ZonosCheckoutFinish = class {
1415
1415
  void handleFetch.sendErrorLog({
1416
1416
  endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
1417
1417
  errors: [
1418
- `Order found but legacy order number doesn’t exist after ${maxRetries} attempts`,
1418
+ `Order found but legacy order number doesn't exist after ${maxRetries} attempts`,
1419
1419
  ],
1420
1420
  metadata: {
1421
1421
  allLogs: handleFetch.allLogs,
@@ -2014,7 +2014,7 @@ const ZonosCurrencyToggle = class {
2014
2014
  const { exchangeRate } = cart.cartStore;
2015
2015
  const options = exchangeRate &&
2016
2016
  exchangeRate.sourceCurrencyCode !== exchangeRate.targetCurrencyCode
2017
- ? ([
2017
+ ? [
2018
2018
  {
2019
2019
  label: exchangeRate.sourceCurrencyCode,
2020
2020
  value: exchangeRate.sourceCurrencyCode,
@@ -2023,7 +2023,7 @@ const ZonosCurrencyToggle = class {
2023
2023
  label: exchangeRate.targetCurrencyCode,
2024
2024
  value: exchangeRate.targetCurrencyCode,
2025
2025
  },
2026
- ])
2026
+ ]
2027
2027
  : [];
2028
2028
  // If there is only one currency, don't show the toggle
2029
2029
  if (!options.length) {
@@ -2,18 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-e1b59d03.js');
7
- const paypal = require('./paypal-86cc51e4.js');
8
- const zonosStore = require('./zonosStore-293bb3ba.js');
9
- const handleFetch = require('./handleFetch-4a90f091.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const cart = require('./cart-199b0751.js');
7
+ const paypal = require('./paypal-4f1ee604.js');
8
+ const zonosStore = require('./zonosStore-8971eb65.js');
9
+ const handleFetch = require('./handleFetch-864d3c53.js');
10
10
  const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
11
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
12
12
  const classes = require('./classes-b7918f56.js');
13
- const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
14
- const isDarkColor = require('./isDarkColor-dd6d723b.js');
13
+ const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
14
+ const isDarkColor = require('./isDarkColor-434d71dd.js');
15
15
  const styles = require('./styles-d1e64fb9.js');
16
- const CheckoutConfig = require('./CheckoutConfig-165db6b6.js');
16
+ const CheckoutConfig = require('./CheckoutConfig-eaaf62a1.js');
17
17
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
18
18
 
19
19
  /**
@@ -913,7 +913,7 @@ const ZonosCheckout = class {
913
913
  cart.cartStore.inventoryCheckErrorMessage =
914
914
  await cart.stripeStoreHandleInventoryCheck();
915
915
  }
916
- catch (err) {
916
+ catch (_a) {
917
917
  // If user provide callback and it throw an exception, default to this message and stop the payment.
918
918
  cart.cartStore.inventoryCheckErrorMessage = cart.translate('Unable to check inventory. Please try again.');
919
919
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const zonosStore = require('./zonosStore-8971eb65.js');
7
7
 
8
8
  const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
9
9
  const ZonosCollapseStyle0 = zonosCollapseCss;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
5
+ const index = require('./index-b678ce0c.js');
6
6
 
7
7
  function format(first, middle, last) {
8
8
  return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-e1b59d03.js');
7
- const zonosStore = require('./zonosStore-293bb3ba.js');
8
- const handleFetch = require('./handleFetch-4a90f091.js');
9
- require('./isDarkColor-dd6d723b.js');
10
- require('./getBorderRadius-f72d8edf.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const cart = require('./cart-199b0751.js');
7
+ const zonosStore = require('./zonosStore-8971eb65.js');
8
+ const handleFetch = require('./handleFetch-864d3c53.js');
9
+ require('./isDarkColor-434d71dd.js');
10
+ require('./getBorderRadius-f97c99ad.js');
11
11
 
12
12
  const getZonosSettings = async () => {
13
13
  const { errors, json, zonosMode } = await handleFetch.handleFetch('/api/zonos-elements/zonos-settings');
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-e1b59d03.js');
7
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const cart = require('./cart-199b0751.js');
7
+ const zonosStore = require('./zonosStore-8971eb65.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- require('./handleFetch-4a90f091.js');
10
- require('./isDarkColor-dd6d723b.js');
11
- require('./getBorderRadius-f72d8edf.js');
9
+ require('./handleFetch-864d3c53.js');
10
+ require('./isDarkColor-434d71dd.js');
11
+ require('./getBorderRadius-f97c99ad.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;
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-e1b59d03.js');
7
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const cart = require('./cart-199b0751.js');
7
+ const zonosStore = require('./zonosStore-8971eb65.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
- const isDarkColor = require('./isDarkColor-dd6d723b.js');
9
+ const isDarkColor = require('./isDarkColor-434d71dd.js');
10
10
  const ILanguage = require('./ILanguage-98b04442.js');
11
- require('./handleFetch-4a90f091.js');
12
- require('./getBorderRadius-f72d8edf.js');
11
+ require('./handleFetch-864d3c53.js');
12
+ require('./getBorderRadius-f97c99ad.js');
13
13
 
14
14
  /**
15
15
  * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
5
+ const index = require('./index-b678ce0c.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('zonos-elements.cjs.js', document.baseURI).href));
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-e1b59d03.js');
7
- const zonosStore = require('./zonosStore-293bb3ba.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const cart = require('./cart-199b0751.js');
7
+ const zonosStore = require('./zonosStore-8971eb65.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
- require('./handleFetch-4a90f091.js');
12
- require('./isDarkColor-dd6d723b.js');
13
- require('./getBorderRadius-f72d8edf.js');
11
+ require('./handleFetch-864d3c53.js');
12
+ require('./isDarkColor-434d71dd.js');
13
+ require('./getBorderRadius-f97c99ad.js');
14
14
 
15
15
  const getHasMoreSpaceAbove = (ref) => {
16
16
  const componentRect = ref.getBoundingClientRect();
@@ -283,7 +283,7 @@ const ZonosHelloDialog = class {
283
283
  var _a;
284
284
  return item && (index.h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (index.h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
285
285
  }), index.h("zonos-card", { key: 'e3a98411ec2be35dfbe3e9a2a5945851697da7ad', spacing: "12px" }, index.h("zonos-v-stack", { key: '09cd2bbbb94e819a272f3ef415bb9ace37111f04', spacing: 12 }, hasInclusivePrices ? (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), index.h("zonos-text", null, inclusivePriceMessage))) : (index.h(index.Fragment, null, index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), index.h("zonos-text", null, dutyDeMinimisMessage)), index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), index.h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
286
- additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), index.h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '443975bc6a4355f49cde5513aa494f700e1eee98', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (index.h("div", { key: 'a55ed373839ed80b449b9f6271ea19cf15124843' }, index.h("zonos-country-select", { key: 'e8fa0c5c6f36ebe67b84f692ad10a9a84305eba5', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (index.h("div", { key: '7bd9d8836c876049d190aaa1bbf3ddea04139090' }, index.h("zonos-language-select", { key: '15002ebf92828cd52881f30ddb639f704d074462', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
286
+ additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), index.h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '87b8ee464cc4aee3c811fa302f34126b29125565', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (index.h("div", { key: 'b1841bad3ab471b0d6f148389e08d79907ca19e6' }, index.h("zonos-country-select", { key: '8571131dd95b34476e2bf165ad7a369c5b45bd0c', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (index.h("div", { key: '0a30a4dff4b45cdd87413688381d66624f8de3aa' }, index.h("zonos-language-select", { key: '4ddeb41556e241dcc234d91d402014218f91281a', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
287
287
  }
288
288
  static get assetsDirs() { return ["assets"]; }
289
289
  static get watchers() { return {