@zonos/elements 1.3.140 → 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 (232) 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 +38 -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/scripts/_zonosBase.js +29 -0
  52. package/dist/collection/types/stripe/Apperance.js +0 -58
  53. package/dist/esm/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
  54. package/dist/esm/{cart-709f053f.js → cart-cf87ec6f.js} +7 -7
  55. package/dist/esm/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
  56. package/dist/esm/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +5 -5
  57. package/dist/esm/{index-86b8247e.js → index-986b5ff2.js} +42 -8
  58. package/dist/esm/index.js +39 -10
  59. package/dist/esm/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
  60. package/dist/esm/loader.js +2 -2
  61. package/dist/esm/{paypal-77a60c44.js → paypal-b7124cc4.js} +5 -5
  62. package/dist/esm/zonos-address_7.entry.js +6 -6
  63. package/dist/esm/zonos-badge.entry.js +2 -2
  64. package/dist/esm/zonos-banner.entry.js +2 -2
  65. package/dist/esm/zonos-button_3.entry.js +4 -4
  66. package/dist/esm/zonos-card.entry.js +3 -3
  67. package/dist/esm/zonos-cart-items_13.entry.js +10 -10
  68. package/dist/esm/zonos-checkout.entry.js +9 -9
  69. package/dist/esm/zonos-collapse.entry.js +2 -2
  70. package/dist/esm/zonos-component.entry.js +1 -1
  71. package/dist/esm/zonos-controller.entry.js +6 -6
  72. package/dist/esm/zonos-country-flag.entry.js +6 -6
  73. package/dist/esm/zonos-country-select_4.entry.js +6 -6
  74. package/dist/esm/zonos-elements.js +3 -3
  75. package/dist/esm/zonos-hello-dialog.entry.js +7 -7
  76. package/dist/esm/zonos-hello.entry.js +6 -6
  77. package/dist/esm/zonos-input.entry.js +3 -3
  78. package/dist/esm/zonos-language-select_2.entry.js +6 -6
  79. package/dist/esm/zonos-link.entry.js +1 -1
  80. package/dist/esm/zonos-logo.entry.js +2 -2
  81. package/dist/esm/zonos-notification_3.entry.js +7 -7
  82. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  83. package/dist/esm/zonos-text.entry.js +2 -2
  84. package/dist/esm/zonos-toggle.entry.js +2 -2
  85. package/dist/esm/zonos-tooltip.entry.js +1 -1
  86. package/dist/esm/zonos-v-stack.entry.js +2 -2
  87. package/dist/esm/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
  88. package/dist/esm-es5/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
  89. package/dist/esm-es5/{cart-709f053f.js → cart-cf87ec6f.js} +1 -1
  90. package/dist/esm-es5/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
  91. package/dist/esm-es5/index-986b5ff2.js +2 -0
  92. package/dist/esm-es5/index.js +1 -1
  93. package/dist/esm-es5/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
  94. package/dist/esm-es5/loader.js +1 -1
  95. package/dist/esm-es5/{paypal-77a60c44.js → paypal-b7124cc4.js} +1 -1
  96. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  97. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  98. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  99. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  100. package/dist/esm-es5/zonos-card.entry.js +1 -1
  101. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  102. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  103. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  104. package/dist/esm-es5/zonos-component.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-elements.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-input.entry.js +1 -1
  112. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  113. package/dist/esm-es5/zonos-link.entry.js +1 -1
  114. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  115. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  116. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  117. package/dist/esm-es5/zonos-text.entry.js +1 -1
  118. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  119. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  120. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  121. package/dist/esm-es5/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
  122. package/dist/scripts/index.d.ts +5 -9
  123. package/dist/scripts/index.js +1 -1
  124. package/dist/scripts/loadZonos.js +1 -1
  125. package/dist/scripts/zonos.js +1 -1
  126. package/dist/types/components/store/checkout/cart.d.ts +2 -3
  127. package/dist/types/components/store/checkout/stripe.d.ts +2 -2
  128. package/dist/types/components/store/hello/localization.d.ts +0 -1
  129. package/dist/types/components/store/translationStore.d.ts +1 -1
  130. package/dist/types/components/store/zonosStore.d.ts +1 -1
  131. package/dist/types/components/utils/api/checkItemRestrictions.d.ts +3 -3
  132. package/dist/types/components/utils/api/getLocaleMessages.d.ts +3 -3
  133. package/dist/types/components/utils/changeDeepProperty.d.ts +2 -2
  134. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +2 -1
  135. package/dist/types/components/utils/createCustomEvent.d.ts +3 -3
  136. package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +3 -3
  137. package/dist/types/components/utils/hello/getCurrentHelloLocalePage.d.ts +1 -1
  138. package/dist/types/components/utils/hello/initHello.d.ts +2 -2
  139. package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
  140. package/dist/types/components.d.ts +2 -2
  141. package/dist/types/environment.d.ts +2 -2
  142. package/dist/types/scripts/_stripe.d.ts +1 -1
  143. package/dist/types/scripts/_zonosBase.d.ts +1 -0
  144. package/dist/types/stencil-public-runtime.d.ts +6 -0
  145. package/dist/types/styles/stripe/defaultVariable.d.ts +1 -1
  146. package/dist/types/types/global.d.ts +0 -5
  147. package/dist/types/types/stripe/Apperance.d.ts +1 -2
  148. package/dist/types/utils/formattedUrl.d.ts +1 -1
  149. package/dist/zonos-elements/index.esm.js +1 -1
  150. package/dist/zonos-elements/{p-e205ef1c.system.entry.js → p-0197a9bf.system.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-be2feba6.entry.js → p-076388d3.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-0c027d2e.entry.js → p-0920500d.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-87ed2e17.system.entry.js → p-0b5f4ca7.system.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-a58731ec.system.js → p-0cda2818.system.js} +1 -1
  155. package/dist/zonos-elements/p-0d2cf216.entry.js +1 -0
  156. package/dist/zonos-elements/{p-3dd503fd.system.entry.js → p-0e54432c.system.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-b7307c61.js → p-1460f917.js} +1 -1
  158. package/dist/zonos-elements/{p-9589bd08.entry.js → p-1e3ea4ae.entry.js} +1 -1
  159. package/dist/zonos-elements/p-21b538ea.system.js +1 -0
  160. package/dist/zonos-elements/{p-22d69480.system.entry.js → p-232963d3.system.entry.js} +1 -1
  161. package/dist/zonos-elements/p-272052bd.system.entry.js +1 -0
  162. package/dist/zonos-elements/{p-0fc96872.system.entry.js → p-2761ad55.system.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-bc8b22ad.entry.js → p-28295342.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-b9efc660.entry.js → p-2949faf3.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-04a6a167.entry.js → p-2b8cddb7.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-ad1d6ea2.entry.js → p-2c19f5e2.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-f07c01c5.system.entry.js → p-2cfc00b8.system.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-289ded20.system.entry.js → p-2d514c1d.system.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-1c4ff7b2.system.entry.js → p-2e152517.system.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-4319600a.system.entry.js → p-33e1d25e.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-10efff62.system.js → p-36dfc7ac.system.js} +1 -1
  172. package/dist/zonos-elements/{p-7a60deef.system.entry.js → p-381874b0.system.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-00d4bff1.entry.js → p-39cac2c1.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-64a04391.system.entry.js → p-3cb4468f.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-b832ec52.entry.js → p-3cf30d83.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-afffdfc2.js → p-3d82e70e.js} +1 -1
  177. package/dist/zonos-elements/{p-9b59704a.entry.js → p-44dd4269.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-edc16f69.js → p-4b685549.js} +1 -1
  179. package/dist/zonos-elements/{p-ad4bc6a2.entry.js → p-545c05ce.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-8368a79e.entry.js → p-58a09715.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-d35376d3.js → p-6271e108.js} +2 -2
  182. package/dist/zonos-elements/{p-5c32689e.entry.js → p-65069140.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-8f9affb3.system.entry.js → p-673b4402.system.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-5b90dd6d.entry.js → p-675f60b4.entry.js} +1 -1
  185. package/dist/zonos-elements/p-680d3694.js +2 -0
  186. package/dist/zonos-elements/{p-f2867195.entry.js → p-68d79b58.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-896d62a4.system.entry.js → p-6b490b0a.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-d633ced9.entry.js → p-72256333.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-10d6fe23.js → p-766dd01f.js} +1 -1
  190. package/dist/zonos-elements/{p-7ef573f0.entry.js → p-7c5c0a85.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-bb418544.system.js → p-7c643376.system.js} +1 -1
  192. package/dist/zonos-elements/p-866bb93e.system.js +1 -0
  193. package/dist/zonos-elements/{p-f8ca3e71.entry.js → p-8c487480.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-fce202ab.entry.js → p-9306a835.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-ffe4a999.system.entry.js → p-983f23a1.system.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-35b8dcde.entry.js → p-9b720cf4.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-cd1fd09e.entry.js → p-9dec2b74.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-ee1e1d94.system.entry.js → p-a13d5957.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-dc09df19.system.entry.js → p-a2bce31d.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-cf72603f.system.entry.js → p-a8bd492d.system.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-d10ffd69.js → p-b0174a8f.js} +1 -1
  202. package/dist/zonos-elements/{p-fd061229.system.js → p-b50667b6.system.js} +1 -1
  203. package/dist/zonos-elements/{p-46a5ec52.system.js → p-c0164a3c.system.js} +1 -1
  204. package/dist/zonos-elements/{p-6b0aa1bb.system.js → p-c1b098de.system.js} +1 -1
  205. package/dist/zonos-elements/{p-010f5797.system.entry.js → p-d198421b.system.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-7acf6802.entry.js → p-d381288e.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-896ab1ed.system.entry.js → p-d5a3851d.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-25c7e4fa.system.entry.js → p-ded984d9.system.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-0aee2e4c.system.entry.js → p-e6554a6f.system.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-c78dd680.system.js → p-e9964a5a.system.js} +1 -1
  211. package/dist/zonos-elements/{p-461624ce.system.entry.js → p-ebdd9b64.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-01ad5be8.system.entry.js → p-f295030e.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-3a26cae5.entry.js → p-fc4658a6.entry.js} +1 -1
  214. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  215. package/dist/zonos-elements/zonos-elements.js +1 -1
  216. package/package.json +68 -67
  217. package/dist/collection/__mocks__/vercel-app/loadZonos.js +0 -492
  218. package/dist/collection/__mocks__/vercel-app/localization.js +0 -1
  219. package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +0 -1
  220. package/dist/collection/__mocks__/zonos-url/index.js +0 -1
  221. package/dist/collection/__mocks__/zonos-url/loadZonos.js +0 -492
  222. package/dist/collection/__mocks__/zonos-url/localization.js +0 -2899
  223. package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +0 -1
  224. package/dist/esm-es5/index-86b8247e.js +0 -2
  225. package/dist/zonos-elements/p-26b24d0b.system.js +0 -1
  226. package/dist/zonos-elements/p-49e4ca08.system.entry.js +0 -1
  227. package/dist/zonos-elements/p-5b7da777.js +0 -2
  228. package/dist/zonos-elements/p-6b6cd6c3.system.js +0 -1
  229. package/dist/zonos-elements/p-e6c31531.entry.js +0 -1
  230. /package/dist/esm-es5/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +0 -0
  231. /package/dist/zonos-elements/{p-860e46ab.js → p-a5b294d7.js} +0 -0
  232. /package/dist/zonos-elements/{p-febc72e7.system.js → p-bfcfd29b.system.js} +0 -0
@@ -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 {
@@ -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 zonosStore = require('./zonosStore-293bb3ba.js');
7
- const cart = require('./cart-e1b59d03.js');
5
+ const index = require('./index-b678ce0c.js');
6
+ const zonosStore = require('./zonosStore-8971eb65.js');
7
+ const cart = require('./cart-199b0751.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- const handleFetch = require('./handleFetch-4a90f091.js');
9
+ const handleFetch = require('./handleFetch-864d3c53.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
- require('./isDarkColor-dd6d723b.js');
12
- require('./getBorderRadius-f72d8edf.js');
11
+ require('./isDarkColor-434d71dd.js');
12
+ require('./getBorderRadius-f97c99ad.js');
13
13
 
14
14
  var root = zonosStore._root;
15
15
 
@@ -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 zonosInputCss = ":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{margin:1px;}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}";
11
11
  const ZonosInputStyle0 = zonosInputCss;
@@ -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 ILanguage = require('./ILanguage-98b04442.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 GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
14
14
  <path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
@@ -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
  const zonosLinkCss = ":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:inline-block}:host a{padding-bottom:2px;color:var(--zonos-elements-primary);-webkit-box-shadow:none;box-shadow:none;text-decoration:none;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word}:host a:link,:host a:visited{color:var(--zonos-elements-primary);-webkit-transition:all 150ms ease-in-out;transition:all 150ms ease-in-out}:host a:hover,:host a:active{color:var(--zonos-elements-primary);-webkit-box-shadow:0 1px 0 var(--zonos-elements-primary);box-shadow:0 1px 0 var(--zonos-elements-primary)}";
8
8
  const ZonosLinkStyle0 = zonosLinkCss;
@@ -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 zonosLogoCss = ":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 img{-webkit-filter:var(--zonos--filter-color);filter:var(--zonos--filter-color);width:var(--zonos--width)}";
@@ -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 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');
9
- const cart = require('./cart-e1b59d03.js');
10
- const handleFetch = require('./handleFetch-4a90f091.js');
11
- const paypal = require('./paypal-86cc51e4.js');
12
- require('./isDarkColor-dd6d723b.js');
8
+ const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
9
+ const cart = require('./cart-199b0751.js');
10
+ const handleFetch = require('./handleFetch-864d3c53.js');
11
+ const paypal = require('./paypal-4f1ee604.js');
12
+ require('./isDarkColor-434d71dd.js');
13
13
 
14
14
  const zonosNotificationCss = ":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-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
15
15
  const ZonosNotificationStyle0 = zonosNotificationCss;
@@ -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
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
10
10
 
11
11
  const zonosShippingRichRadioCss = ":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-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--zonos--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
@@ -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
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
9
9
  const styles = require('./styles-d1e64fb9.js');
@@ -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 zonosToggleCss = ":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 .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
@@ -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 classes = require('./classes-b7918f56.js');
7
7
 
8
8
  const zonosTooltipCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:12px;background-color:var(--zonos-elements-gray-1000);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--zonos-elements-radius-4);z-index:100;-webkit-box-shadow:var(--zonos-elements-v3-shadow-large);box-shadow:var(--zonos-elements-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
@@ -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 zonosVStackCss = ":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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-d56e0a8b.js');
3
+ const index = require('./index-b678ce0c.js');
4
4
 
5
5
  const appendToMap = (map, propName, value) => {
6
6
  const items = map.get(propName);
@@ -53,8 +53,8 @@
53
53
  ],
54
54
  "compiler": {
55
55
  "name": "@stencil/core",
56
- "version": "4.19.2",
57
- "typescriptVersion": "5.4.5"
56
+ "version": "4.22.3",
57
+ "typescriptVersion": "5.5.4"
58
58
  },
59
59
  "collections": [],
60
60
  "bundles": []
@@ -161,7 +161,7 @@ export class ZonosCheckoutFinish {
161
161
  void sendErrorLog({
162
162
  endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
163
163
  errors: [
164
- `Order found but legacy order number doesn’t exist after ${maxRetries} attempts`,
164
+ `Order found but legacy order number doesn't exist after ${maxRetries} attempts`,
165
165
  ],
166
166
  metadata: {
167
167
  allLogs,
@@ -702,7 +702,7 @@ export class ZonosCheckout {
702
702
  cartStore.inventoryCheckErrorMessage =
703
703
  await stripeStoreHandleInventoryCheck();
704
704
  }
705
- catch (err) {
705
+ catch (_a) {
706
706
  // If user provide callback and it throw an exception, default to this message and stop the payment.
707
707
  cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
708
708
  }
@@ -1147,7 +1147,7 @@ export class ZonosCheckout {
1147
1147
  },
1148
1148
  "setToFinishStep": {
1149
1149
  "complexType": {
1150
- "signature": "(forcePaymentStatus?: PaymentIntent['status']) => Promise<void>",
1150
+ "signature": "(forcePaymentStatus?: PaymentIntent[\"status\"]) => Promise<void>",
1151
1151
  "parameters": [{
1152
1152
  "name": "forcePaymentStatus",
1153
1153
  "type": "Status | undefined",
@@ -13,7 +13,7 @@ export class ZonosCurrencyToggle {
13
13
  const { exchangeRate } = cartStore;
14
14
  const options = exchangeRate &&
15
15
  exchangeRate.sourceCurrencyCode !== exchangeRate.targetCurrencyCode
16
- ? ([
16
+ ? [
17
17
  {
18
18
  label: exchangeRate.sourceCurrencyCode,
19
19
  value: exchangeRate.sourceCurrencyCode,
@@ -22,7 +22,7 @@ export class ZonosCurrencyToggle {
22
22
  label: exchangeRate.targetCurrencyCode,
23
23
  value: exchangeRate.targetCurrencyCode,
24
24
  },
25
- ])
25
+ ]
26
26
  : [];
27
27
  // If there is only one currency, don't show the toggle
28
28
  if (!options.length) {
@@ -172,7 +172,7 @@ export class ZonosCheckoutProgressTabs {
172
172
  },
173
173
  "setTabSelected": {
174
174
  "complexType": {
175
- "signature": "(tabValue: TabItem['value']) => Promise<void>",
175
+ "signature": "(tabValue: TabItem[\"value\"]) => Promise<void>",
176
176
  "parameters": [{
177
177
  "name": "tabValue",
178
178
  "type": "\"customer-info\" | \"shipping\" | \"payment\"",
@@ -243,7 +243,7 @@ export class ZonosHelloDialog {
243
243
  var _a;
244
244
  return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
245
245
  }), h("zonos-card", { key: 'e3a98411ec2be35dfbe3e9a2a5945851697da7ad', spacing: "12px" }, h("zonos-v-stack", { key: '09cd2bbbb94e819a272f3ef415bb9ace37111f04', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
246
- additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '443975bc6a4355f49cde5513aa494f700e1eee98', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'a55ed373839ed80b449b9f6271ea19cf15124843' }, h("zonos-country-select", { key: 'e8fa0c5c6f36ebe67b84f692ad10a9a84305eba5', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '7bd9d8836c876049d190aaa1bbf3ddea04139090' }, h("zonos-language-select", { key: '15002ebf92828cd52881f30ddb639f704d074462', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
246
+ additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '87b8ee464cc4aee3c811fa302f34126b29125565', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'b1841bad3ab471b0d6f148389e08d79907ca19e6' }, h("zonos-country-select", { key: '8571131dd95b34476e2bf165ad7a369c5b45bd0c', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '0a30a4dff4b45cdd87413688381d66624f8de3aa' }, h("zonos-language-select", { key: '4ddeb41556e241dcc234d91d402014218f91281a', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
247
247
  }
248
248
  static get is() { return "zonos-hello-dialog"; }
249
249
  static get encapsulation() { return "shadow"; }
@@ -93,7 +93,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
93
93
  cartStore.inventoryCheckErrorMessage =
94
94
  await stripeStoreHandleInventoryCheck();
95
95
  }
96
- catch (err) {
96
+ catch (_a) {
97
97
  // If user provide callback and it throw an exception, default to this message and stop the payment.
98
98
  cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
99
99
  }
@@ -9,7 +9,7 @@ export const getCountries = async () => {
9
9
  }
10
10
  return json;
11
11
  }
12
- catch (error) {
12
+ catch (_a) {
13
13
  return null;
14
14
  }
15
15
  };
@@ -19,7 +19,7 @@ export const getLocalization = async () => {
19
19
  locale: json.locale,
20
20
  };
21
21
  }
22
- catch (error) {
22
+ catch (_a) {
23
23
  return { country: null, locale: null };
24
24
  }
25
25
  };
@@ -40,7 +40,7 @@ const encodeString = (text) => {
40
40
  const encodedString = btoa(text).replace(/=/g, '');
41
41
  return encodedString;
42
42
  }
43
- catch (error) {
43
+ catch (_a) {
44
44
  // return the reverse string if the encoding failed
45
45
  return text
46
46
  .replace(/[^A-Za-z0-9]/g, '')
@@ -115,7 +115,7 @@ const handleRequest = async ({ basePathType, options, path, }) => {
115
115
  zonosMode,
116
116
  };
117
117
  }
118
- catch (e) {
118
+ catch (_a) {
119
119
  const message = 'Unknown error';
120
120
  return {
121
121
  baseUrl,
@@ -9,7 +9,7 @@ export const isValidSelector = (selector) => {
9
9
  // this will error out if the selector is invalid in the DOM
10
10
  document.createDocumentFragment().querySelector(selector);
11
11
  }
12
- catch (e) {
12
+ catch (_a) {
13
13
  return false;
14
14
  }
15
15
  return true;
@@ -5,7 +5,7 @@ export const jsonParse = (_data) => {
5
5
  const json = JSON.parse(_data);
6
6
  return json;
7
7
  }
8
- catch (_error) {
8
+ catch (_a) {
9
9
  return null;
10
10
  }
11
11
  }
@@ -17,7 +17,7 @@ const prepInfo = (info) => {
17
17
  const infoToJson = JSON.stringify(info);
18
18
  return infoToJson;
19
19
  }
20
- catch (e1) {
20
+ catch (_a) {
21
21
  if (info && typeof info.toString === 'function') {
22
22
  const infoToString = info.toString();
23
23
  return infoToString;
@@ -37,7 +37,7 @@ export const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostRelea
37
37
  method: 'POST',
38
38
  });
39
39
  }
40
- catch (_err) {
40
+ catch (_a) {
41
41
  const nextFallbackApi = getNextFallbackApiType();
42
42
  if (!nextFallbackApi) {
43
43
  return;
@@ -64,7 +64,7 @@ const envClient = {
64
64
  NEXT_PUBLIC_ZONOS_ROUTE_URL: z.string(),
65
65
  NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: z.string(),
66
66
  };
67
- const envClientSchema = z.object(envClient);
67
+ const _envClientSchema = z.object(envClient);
68
68
  export const env = createEnv({
69
69
  skipValidation,
70
70
  // eslint-disable-next-line sort-keys/sort-keys-fix
@@ -135,6 +135,8 @@ Zonos.init = async (params) => {
135
135
  document.body.appendChild(hiddenButton);
136
136
  }
137
137
  log('init zonos');
138
+ // inject custom script for hosted checkout if can find it in metadata
139
+ _a.injectCustomScriptForHostedCheckout();
138
140
  // inject zonos cdn
139
141
  _a.injectZonosCdn();
140
142
  // inject css for zonos elements
@@ -154,6 +156,33 @@ Zonos.init = async (params) => {
154
156
  });
155
157
  _a.doneInit = true;
156
158
  };
159
+ Zonos.injectCustomScriptForHostedCheckout = () => {
160
+ const cartData = _a.cartData;
161
+ const metadata = (cartData === null || cartData === void 0 ? void 0 : cartData.metadata) || [];
162
+ const headerScript = metadata.find(meta => meta.key === 'customHeaderScript');
163
+ const footerScript = metadata.find(meta => meta.key === 'customFooterScript');
164
+ // Only inject the script if checkout is on Zonos hosted checkout and custom script is available
165
+ if (!window.Zonos.isLegacyCheckout || (!headerScript && !footerScript)) {
166
+ log('Skip injecting custom script for hosted checkout', 'info', {
167
+ footerScript,
168
+ headerScript,
169
+ isLegacyCheckout: window.Zonos.isLegacyCheckout,
170
+ });
171
+ return;
172
+ }
173
+ if (headerScript) {
174
+ log('Injecting custom header script');
175
+ const script = document.createElement('script');
176
+ script.textContent = headerScript.value;
177
+ document.head.appendChild(script);
178
+ }
179
+ if (footerScript) {
180
+ log('Injecting custom footer script');
181
+ const script = document.createElement('script');
182
+ script.textContent = footerScript.value;
183
+ document.body.appendChild(script);
184
+ }
185
+ };
157
186
  Zonos.displayCurrency = () => {
158
187
  const zonosHello = document.querySelector('zonos-hello');
159
188
  if (zonosHello) {
@@ -1,59 +1 @@
1
- const supportedPropertyNames = [
2
- '-moz-osx-font-smoothing',
3
- '-webkit-font-smoothing',
4
- '-webkit-text-fill-color',
5
- 'backgroundColor',
6
- 'border',
7
- 'borderBottom',
8
- 'borderBottomColor',
9
- 'borderBottomLeftRadius',
10
- 'borderBottomRightRadius',
11
- 'borderBottomStyle',
12
- 'borderBottomWidth',
13
- 'borderColor',
14
- 'borderLeft',
15
- 'borderLeftColor',
16
- 'borderLeftStyle',
17
- 'borderLeftWidth',
18
- 'borderRadius',
19
- 'borderRight',
20
- 'borderRightColor',
21
- 'borderRightStyle',
22
- 'borderRightWidth',
23
- 'borderStyle',
24
- 'borderTop',
25
- 'borderTopColor',
26
- 'borderTopLeftRadius',
27
- 'borderTopRightRadius',
28
- 'borderTopStyle',
29
- 'borderTopWidth',
30
- 'borderWidth',
31
- 'boxShadow',
32
- 'color',
33
- 'fill',
34
- 'fontFamily',
35
- 'fontSize',
36
- 'fontVariant',
37
- 'fontVariation',
38
- 'fontWeight',
39
- 'letterSpacing',
40
- 'lineHeight',
41
- 'margin',
42
- 'marginBottom',
43
- 'marginLeft',
44
- 'marginRight',
45
- 'marginTop',
46
- 'opacity',
47
- 'outline',
48
- 'outlineOffset',
49
- 'padding',
50
- 'paddingBottom',
51
- 'paddingLeft',
52
- 'paddingRight',
53
- 'paddingTop',
54
- 'textDecoration',
55
- 'textShadow',
56
- 'textTransform',
57
- 'transition',
58
- ];
59
1
  export {};
@@ -1,4 +1,4 @@
1
- import { h as handleFetch, l as log, a as logError } from './handleFetch-22cb914b.js';
1
+ import { h as handleFetch, l as log, a as logError } from './handleFetch-badf4543.js';
2
2
 
3
3
  const getTempCartById = async ({ cartId, retries, }) => {
4
4
  const urlParams = new URLSearchParams(window.location.search);
@@ -1,7 +1,7 @@
1
- import { c as createStore, z as zonosStore } from './zonosStore-c493c4fe.js';
2
- import { h as handleFetch, a as logError, l as log, f as fallbackApiList, s as sendErrorLog, b as allLogs, j as jsonParse } from './handleFetch-22cb914b.js';
3
- import { i as isDarkColor } from './isDarkColor-c6924924.js';
4
- import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
1
+ import { c as createStore, z as zonosStore } from './zonosStore-708637e7.js';
2
+ import { h as handleFetch, a as logError, l as log, f as fallbackApiList, s as sendErrorLog, b as allLogs, j as jsonParse } from './handleFetch-badf4543.js';
3
+ import { i as isDarkColor } from './isDarkColor-4915739f.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
5
5
 
6
6
  const stringsArabic = {
7
7
  ' (Duties due at door)': {
@@ -8981,7 +8981,7 @@ const getCountries = async () => {
8981
8981
  }
8982
8982
  return json;
8983
8983
  }
8984
- catch (error) {
8984
+ catch (_a) {
8985
8985
  return null;
8986
8986
  }
8987
8987
  };
@@ -9108,7 +9108,7 @@ const getLocalization = async () => {
9108
9108
  locale: json.locale,
9109
9109
  };
9110
9110
  }
9111
- catch (error) {
9111
+ catch (_a) {
9112
9112
  return { country: null, locale: null };
9113
9113
  }
9114
9114
  };
@@ -9231,7 +9231,7 @@ const isValidSelector = (selector) => {
9231
9231
  // this will error out if the selector is invalid in the DOM
9232
9232
  document.createDocumentFragment().querySelector(selector);
9233
9233
  }
9234
- catch (e) {
9234
+ catch (_a) {
9235
9235
  return false;
9236
9236
  }
9237
9237
  return true;
@@ -1,4 +1,4 @@
1
- import { z as zonosStore } from './zonosStore-c493c4fe.js';
1
+ import { z as zonosStore } from './zonosStore-708637e7.js';
2
2
 
3
3
  /**
4
4
  * Get the border radius for the elements based on the style
@@ -17,7 +17,7 @@ const prepInfo = (info) => {
17
17
  const infoToJson = JSON.stringify(info);
18
18
  return infoToJson;
19
19
  }
20
- catch (e1) {
20
+ catch (_a) {
21
21
  if (info && typeof info.toString === 'function') {
22
22
  const infoToString = info.toString();
23
23
  return infoToString;
@@ -109,7 +109,7 @@ const jsonParse = (_data) => {
109
109
  const json = JSON.parse(_data);
110
110
  return json;
111
111
  }
112
- catch (_error) {
112
+ catch (_a) {
113
113
  return null;
114
114
  }
115
115
  }
@@ -153,7 +153,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseError
153
153
  method: 'POST',
154
154
  });
155
155
  }
156
- catch (_err) {
156
+ catch (_a) {
157
157
  const nextFallbackApi = getNextFallbackApiType();
158
158
  if (!nextFallbackApi) {
159
159
  return;
@@ -203,7 +203,7 @@ const encodeString = (text) => {
203
203
  const encodedString = btoa(text).replace(/=/g, '');
204
204
  return encodedString;
205
205
  }
206
- catch (error) {
206
+ catch (_a) {
207
207
  // return the reverse string if the encoding failed
208
208
  return text
209
209
  .replace(/[^A-Za-z0-9]/g, '')
@@ -278,7 +278,7 @@ const handleRequest = async ({ basePathType, options, path, }) => {
278
278
  zonosMode,
279
279
  };
280
280
  }
281
- catch (e) {
281
+ catch (_a) {
282
282
  const message = 'Unknown error';
283
283
  return {
284
284
  baseUrl,