@zonos/elements 1.3.31 → 1.3.33

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 (243) hide show
  1. package/dist/cjs/{cart-62ff7ee7.js → cart-11b47252.js} +463 -43
  2. package/dist/cjs/index.cjs.js +12 -5
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{submitGtag-a5f8eaab.js → submitGtag-3a1d091e.js} +4 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +11 -11
  6. package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
  7. package/dist/cjs/zonos-button_3.cjs.entry.js +6 -3
  8. package/dist/cjs/zonos-card.cjs.entry.js +47 -0
  9. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +53 -36
  10. package/dist/cjs/zonos-checkout.cjs.entry.js +21 -11
  11. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-controller.cjs.entry.js +3 -2
  13. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-country-select_3.cjs.entry.js +7 -7
  15. package/dist/cjs/zonos-elements.cjs.js +1 -1
  16. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  18. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  19. package/dist/cjs/{zonos-card_2.cjs.entry.js → zonos-language-select_2.cjs.entry.js} +23 -29
  20. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-notification_2.cjs.entry.js +123 -0
  23. package/dist/cjs/zonos-v-stack.cjs.entry.js +25 -0
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +15 -4
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +16 -15
  26. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  27. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/assets/CheckmarkLineIcon.svg +1 -0
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/assets/RemoveLineIcon.svg +1 -0
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +8 -0
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +20 -4
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +9 -0
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +20 -7
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
  35. package/dist/collection/components/common/zonos-badge/zonos-badge.css +10 -0
  36. package/dist/collection/components/common/zonos-badge/zonos-badge.js +6 -6
  37. package/dist/collection/components/common/zonos-button/zonos-button.js +28 -4
  38. package/dist/collection/components/common/zonos-card/zonos-card.css +3 -1
  39. package/dist/collection/components/common/zonos-card/zonos-card.js +61 -3
  40. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  41. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  42. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  43. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  44. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  45. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  46. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  47. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  48. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  49. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  50. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  51. package/dist/collection/components/common/zonos-notification/zonos-notification.css +1 -1
  52. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  53. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  54. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  55. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  56. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  57. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  59. package/dist/collection/components/main/zonos-controller.js +2 -1
  60. package/dist/collection/components/store/checkout/stripe.js +0 -1
  61. package/dist/collection/components/store/hello/localization.js +3 -2
  62. package/dist/collection/components/store/translationStore/strings.arabic.js +23 -2
  63. package/dist/collection/components/store/translationStore/strings.base.js +23 -2
  64. package/dist/collection/components/store/translationStore/strings.chinese.js +23 -2
  65. package/dist/collection/components/store/translationStore/strings.danish.js +23 -2
  66. package/dist/collection/components/store/translationStore/strings.dutch.js +23 -2
  67. package/dist/collection/components/store/translationStore/strings.french.js +23 -2
  68. package/dist/collection/components/store/translationStore/strings.german.js +23 -2
  69. package/dist/collection/components/store/translationStore/strings.hebrew.js +23 -2
  70. package/dist/collection/components/store/translationStore/strings.indonesian.js +23 -2
  71. package/dist/collection/components/store/translationStore/strings.italian.js +23 -2
  72. package/dist/collection/components/store/translationStore/strings.japanese.js +23 -2
  73. package/dist/collection/components/store/translationStore/strings.korean.js +23 -2
  74. package/dist/collection/components/store/translationStore/strings.norwegian.js +23 -2
  75. package/dist/collection/components/store/translationStore/strings.polish.js +23 -2
  76. package/dist/collection/components/store/translationStore/strings.portuguese.js +23 -2
  77. package/dist/collection/components/store/translationStore/strings.russian.js +23 -2
  78. package/dist/collection/components/store/translationStore/strings.spanish.js +23 -2
  79. package/dist/collection/components/store/translationStore/strings.swedish.js +23 -2
  80. package/dist/collection/components/store/translationStore/strings.turkish.js +23 -2
  81. package/dist/collection/components/store/translationStore/strings.vietnamese.js +23 -2
  82. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  83. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  84. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  85. package/dist/collection/components/utils/checkout/getIsTestMode.js +1 -0
  86. package/dist/collection/scripts/_zonosBase.js +8 -1
  87. package/dist/esm/{cart-b96aaa4f.js → cart-22ba08ec.js} +463 -43
  88. package/dist/esm/index.js +12 -5
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm/{submitGtag-6e271d76.js → submitGtag-1435eec8.js} +4 -2
  91. package/dist/esm/zonos-address_8.entry.js +11 -11
  92. package/dist/esm/zonos-badge_2.entry.js +6 -6
  93. package/dist/esm/zonos-button_3.entry.js +6 -3
  94. package/dist/esm/zonos-card.entry.js +43 -0
  95. package/dist/esm/zonos-cart-items_12.entry.js +53 -36
  96. package/dist/esm/zonos-checkout.entry.js +21 -11
  97. package/dist/esm/zonos-component.entry.js +1 -1
  98. package/dist/esm/zonos-controller.entry.js +3 -2
  99. package/dist/esm/zonos-country-flag.entry.js +1 -1
  100. package/dist/esm/zonos-country-select_3.entry.js +7 -7
  101. package/dist/esm/zonos-elements.js +1 -1
  102. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  103. package/dist/esm/zonos-hello.entry.js +1 -1
  104. package/dist/esm/zonos-input.entry.js +4 -4
  105. package/dist/esm/zonos-language-select_2.entry.js +56 -0
  106. package/dist/esm/zonos-link.entry.js +1 -1
  107. package/dist/esm/zonos-logo.entry.js +2 -2
  108. package/dist/esm/zonos-notification_2.entry.js +118 -0
  109. package/dist/esm/zonos-v-stack.entry.js +21 -0
  110. package/dist/esm-es5/cart-22ba08ec.js +1 -0
  111. package/dist/esm-es5/index.js +1 -1
  112. package/dist/esm-es5/loader.js +1 -1
  113. package/dist/esm-es5/submitGtag-1435eec8.js +1 -0
  114. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  115. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  116. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  117. package/dist/esm-es5/zonos-card.entry.js +1 -0
  118. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  119. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  120. package/dist/esm-es5/zonos-component.entry.js +1 -1
  121. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  122. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  123. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  124. package/dist/esm-es5/zonos-elements.js +1 -1
  125. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  126. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  127. package/dist/esm-es5/zonos-input.entry.js +1 -1
  128. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -0
  129. package/dist/esm-es5/zonos-link.entry.js +1 -1
  130. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  131. package/dist/esm-es5/zonos-notification_2.entry.js +1 -0
  132. package/dist/esm-es5/zonos-v-stack.entry.js +1 -0
  133. package/dist/scripts/index.d.ts +39 -6
  134. package/dist/scripts/index.js +1 -1
  135. package/dist/scripts/loadZonos.js +1 -1
  136. package/dist/scripts/zonos.js +1 -1
  137. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  138. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +1 -0
  139. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -0
  140. package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +2 -2
  141. package/dist/types/components/common/zonos-button/zonos-button.d.ts +6 -1
  142. package/dist/types/components/common/zonos-card/zonos-card.d.ts +10 -0
  143. package/dist/types/components/store/translationStore/strings.arabic.d.ts +22 -1
  144. package/dist/types/components/store/translationStore/strings.base.d.ts +22 -1
  145. package/dist/types/components/store/translationStore/strings.chinese.d.ts +22 -1
  146. package/dist/types/components/store/translationStore/strings.danish.d.ts +22 -1
  147. package/dist/types/components/store/translationStore/strings.dutch.d.ts +22 -1
  148. package/dist/types/components/store/translationStore/strings.french.d.ts +22 -1
  149. package/dist/types/components/store/translationStore/strings.german.d.ts +22 -1
  150. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +22 -1
  151. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +22 -1
  152. package/dist/types/components/store/translationStore/strings.italian.d.ts +22 -1
  153. package/dist/types/components/store/translationStore/strings.japanese.d.ts +22 -1
  154. package/dist/types/components/store/translationStore/strings.korean.d.ts +22 -1
  155. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +22 -1
  156. package/dist/types/components/store/translationStore/strings.polish.d.ts +22 -1
  157. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +22 -1
  158. package/dist/types/components/store/translationStore/strings.russian.d.ts +22 -1
  159. package/dist/types/components/store/translationStore/strings.spanish.d.ts +22 -1
  160. package/dist/types/components/store/translationStore/strings.swedish.d.ts +22 -1
  161. package/dist/types/components/store/translationStore/strings.turkish.d.ts +22 -1
  162. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +22 -1
  163. package/dist/types/components/store/translationStore.d.ts +1 -1
  164. package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -0
  165. package/dist/types/components.d.ts +36 -6
  166. package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
  167. package/dist/zonos-elements/index.esm.js +1 -1
  168. package/dist/zonos-elements/p-11672829.js +1 -0
  169. package/dist/zonos-elements/p-22882fd6.entry.js +1 -0
  170. package/dist/zonos-elements/{p-b208fec6.system.entry.js → p-28e6963b.system.entry.js} +1 -1
  171. package/dist/zonos-elements/p-2a45c837.system.entry.js +1 -0
  172. package/dist/zonos-elements/{p-c4e38b85.entry.js → p-3523c3b4.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-692816a7.entry.js → p-35604380.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-78a839b8.entry.js → p-36bb4360.entry.js} +1 -1
  175. package/dist/zonos-elements/p-3b95a9a3.entry.js +1 -0
  176. package/dist/zonos-elements/p-450eb8ff.system.js +1 -0
  177. package/dist/zonos-elements/p-478357b0.system.entry.js +1 -0
  178. package/dist/zonos-elements/p-56152835.system.entry.js +1 -0
  179. package/dist/zonos-elements/{p-6cb9812b.entry.js → p-63a27875.entry.js} +1 -1
  180. package/dist/zonos-elements/p-6c3390b7.entry.js +1 -0
  181. package/dist/zonos-elements/{p-9c32b924.entry.js → p-6f589755.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-a90393e0.system.entry.js → p-71882ac9.system.entry.js} +1 -1
  183. package/dist/zonos-elements/p-74bd6150.entry.js +1 -0
  184. package/dist/zonos-elements/{p-9b0aa65c.system.js → p-7624013b.system.js} +1 -1
  185. package/dist/zonos-elements/p-84997f2e.js +1 -0
  186. package/dist/zonos-elements/{p-2cb880e7.system.entry.js → p-88129ef9.system.entry.js} +1 -1
  187. package/dist/zonos-elements/p-95d52a24.system.entry.js +1 -0
  188. package/dist/zonos-elements/{p-dda78e8e.system.entry.js → p-966ab4e7.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-3dc59d89.system.entry.js → p-9de374a7.system.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-666d1605.system.entry.js → p-a0b17e0b.system.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-7664dec5.entry.js → p-b5825bb7.entry.js} +1 -1
  192. package/dist/zonos-elements/p-b8a4b345.system.entry.js +1 -0
  193. package/dist/zonos-elements/{p-13454044.system.entry.js → p-b903af96.system.entry.js} +1 -1
  194. package/dist/zonos-elements/p-c21802e9.entry.js +1 -0
  195. package/dist/zonos-elements/{p-d4724ac8.entry.js → p-c3619b3d.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-9cdfb51b.system.entry.js → p-cdb53aaf.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-941a01be.system.entry.js → p-d2992457.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-2701e08c.entry.js → p-d8c1eb99.entry.js} +1 -1
  199. package/dist/zonos-elements/p-da2e5289.system.entry.js +1 -0
  200. package/dist/zonos-elements/p-dafa2b79.system.js +1 -0
  201. package/dist/zonos-elements/p-ddb1cfe2.entry.js +1 -0
  202. package/dist/zonos-elements/{p-d8027710.system.entry.js → p-dec21ca2.system.entry.js} +1 -1
  203. package/dist/zonos-elements/p-e09df465.entry.js +1 -0
  204. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  205. package/dist/zonos-elements/p-e3c014ae.entry.js +1 -0
  206. package/dist/zonos-elements/{p-10b9a681.system.entry.js → p-eb566457.system.entry.js} +1 -1
  207. package/dist/zonos-elements/p-ed333de6.system.entry.js +1 -0
  208. package/dist/zonos-elements/{p-725c2d57.entry.js → p-fa7e2a01.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-4a0cf47b.entry.js → p-fe296307.entry.js} +1 -1
  210. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  211. package/package.json +1 -1
  212. package/dist/cjs/zonos-notification.cjs.entry.js +0 -72
  213. package/dist/cjs/zonos-payment.cjs.entry.js +0 -58
  214. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +0 -45
  215. package/dist/esm/zonos-card_2.entry.js +0 -62
  216. package/dist/esm/zonos-notification.entry.js +0 -68
  217. package/dist/esm/zonos-payment.entry.js +0 -54
  218. package/dist/esm/zonos-select-dialog-header_2.entry.js +0 -40
  219. package/dist/esm-es5/cart-b96aaa4f.js +0 -1
  220. package/dist/esm-es5/submitGtag-6e271d76.js +0 -1
  221. package/dist/esm-es5/zonos-card_2.entry.js +0 -1
  222. package/dist/esm-es5/zonos-notification.entry.js +0 -1
  223. package/dist/esm-es5/zonos-payment.entry.js +0 -1
  224. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +0 -1
  225. package/dist/zonos-elements/p-087c83a5.system.entry.js +0 -1
  226. package/dist/zonos-elements/p-1a40aaf4.system.js +0 -1
  227. package/dist/zonos-elements/p-2613b5d3.system.entry.js +0 -1
  228. package/dist/zonos-elements/p-27d648c3.system.entry.js +0 -1
  229. package/dist/zonos-elements/p-4e01d1ab.system.entry.js +0 -1
  230. package/dist/zonos-elements/p-5441b729.entry.js +0 -1
  231. package/dist/zonos-elements/p-5857ad65.entry.js +0 -1
  232. package/dist/zonos-elements/p-5d53f9a4.js +0 -1
  233. package/dist/zonos-elements/p-75ba695c.entry.js +0 -1
  234. package/dist/zonos-elements/p-89664e49.system.js +0 -1
  235. package/dist/zonos-elements/p-8c9e7980.entry.js +0 -1
  236. package/dist/zonos-elements/p-8f8baabf.system.entry.js +0 -1
  237. package/dist/zonos-elements/p-9f7c0472.entry.js +0 -1
  238. package/dist/zonos-elements/p-acfb9be6.system.entry.js +0 -1
  239. package/dist/zonos-elements/p-b468f941.js +0 -1
  240. package/dist/zonos-elements/p-bb5a9eaa.entry.js +0 -1
  241. package/dist/zonos-elements/p-be2b32f5.entry.js +0 -1
  242. package/dist/zonos-elements/p-c63a7dde.entry.js +0 -1
  243. package/dist/zonos-elements/p-f38fd0d9.system.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-3b46f3c3.js';
2
- import { l as localizationStore, B as currencyFormat, t as translate } from './cart-b96aaa4f.js';
2
+ import { l as localizationStore, B as currencyFormat, t as translate } from './cart-22ba08ec.js';
3
3
  import { z as zonosStore } from './zonosStore-ba9e541e.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
@@ -213,18 +213,18 @@ const ZonosHelloDialog = class {
213
213
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
214
214
  const currentPage = this.getCurrentPageEnum();
215
215
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
216
- return (h(Host, { key: '1194b1466981cf8ba04d726eff3ba34b19510258', class: "zonos--elements" }, h("div", { key: 'ffea099f72ff3f42ddbd5b5947a5b8ca0f3d206d', "aria-hidden": "true", class: classes([
216
+ return (h(Host, { key: 'af2c46bcc413205d644a2b94ee2ff568d3d004f2', class: "zonos--elements" }, h("div", { key: '67a563de9e702e370d057ee3cc45bc0c14feedc5', "aria-hidden": "true", class: classes([
217
217
  'zonos--hello-dialog',
218
218
  animateLeft && 'zonos--hello-dialog-animate-from-left',
219
219
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
220
220
  !!this.mobileLocationOverride &&
221
221
  'zonos--hello-dialog-mobile-override',
222
222
  this.isOpen && 'zonos--hello-dialog-open',
223
- ]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '7396d7cd91c69f77d5f2f4ae9a088b1a763c6988' }, h("div", { key: 'aedfda83797a58fc2a0432a89503cbc7774d5c8b', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '0c9ad53d902ce7c45cdf9192dbe8ea7f9f46f7d4', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '9a359684275e946fc26bdc6ea7b8a371bf49dea5', spacing: 24 }, h("zonos-country-flag", { key: 'ca230fb4426ecb39febb0972d9a6ce15435c4e1d', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '17bbc6a70143a9165b8f088b5b2ea1e6e69622ed', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '33c66273d9fd8330ee4cf2bfcdf5b454a89e0ae0', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '57cfdcd587ab62fad99016a389771d3a169ad297', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '28b9b9e7967e81ca50bc4d0cfe45c9545a8b9dde', spacing: 8 }, this.restrictedItems.map(item => {
223
+ ]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '412a8d2f4c01e4ff216feb92a979be5987bcd8c7' }, h("div", { key: 'b2921acfc77c6a402a14256a6f1c28607f6533e7', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'aa623c0533a5f852dab7f0f98d6dc26f62ef899a', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '4fdac9331a5b2506a5ca1c7c1b6bfecf822bfcd9', spacing: 24 }, h("zonos-country-flag", { key: '57afef45e0bebe9bdfa715306f6ec2c30aca8dc1', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '954b970c82fd631efadbd9c916e8bad78f0e1321', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'cde98a9636e6150d6cab009970938a0cf61bc05a', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'b63fc79317f23854737c1f2dd2cbde38f3841f2a', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: 'e115a03222d2271b358c3f1ae3feb938bafcdbef', spacing: 8 }, this.restrictedItems.map(item => {
224
224
  var _a;
225
225
  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)))));
226
- }), h("zonos-card", { key: '94ef9064b4e523c3f0fc9cd50142da36f003006d', spacing: "12px" }, h("zonos-v-stack", { key: '01b3550b5b080d106eaecedf78b13275e01ae159', spacing: 12 }, h("div", { key: '19b1ba3e12dab87250d3ad19a5dc8e13b6f871d6', class: "zonos--flex-message" }, h("zonos-icon", { key: '9773bf4ad57752437a367c2093de0737693bf588', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '4c75d971f37db399e6f4332a6c92b53758629b6b' }, dutyDeMinimisMessage)), h("div", { key: '52640f51d3664582d7bb3c26f2d2d17d82ad856e', class: "zonos--flex-message" }, h("zonos-icon", { key: '9afe9273e6b19aada01018152a64973449b87094', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'b2481af13570471cc2907c48b54c7039ec31e92c' }, taxDeMinimisMessage)), additionalInformation === null || additionalInformation === void 0 ? void 0 :
227
- 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: 'a6b2d31ee922db13cf9987a823e99d6088c392b0', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '21d187502c3f0ccef0c351f09aa943566228944f' }, h("zonos-country-select", { key: '3dbd522e8a5004c2a1ed766ba92c9d0387f845d8', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '686d8bba48fefd49bf2bf15dc295fb79b9cd5299' }, h("zonos-language-select", { key: '22ba1b42ec7ba1808fd806ad3529a377d34b4ac8', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
226
+ }), h("zonos-card", { key: '6f5ef13c8ce1171b99c148f43f491ced8f29cd57', spacing: "12px" }, h("zonos-v-stack", { key: '816a373a6dcf69976279af51f09d136f18c6b4a8', spacing: 12 }, h("div", { key: '51fc31937cb4885c7a98ee5fbc0755a00158f172', class: "zonos--flex-message" }, h("zonos-icon", { key: 'bc659d649b3a7f046225270870e7ae31597027f4', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: 'e63ce2eb6f381718ca26962c7429f266bf8cf8d9' }, dutyDeMinimisMessage)), h("div", { key: '6f49eac81be52709ad8f35c04cccd7d2fec03b7a', class: "zonos--flex-message" }, h("zonos-icon", { key: 'd95f29c3c42480c89a34e831740cfdbb3d64c058', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'c226092fef030070af3af1d45debab989fb4f1b7' }, taxDeMinimisMessage)), additionalInformation === null || additionalInformation === void 0 ? void 0 :
227
+ 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: '32739e817940a937b59380197934ced91f2afc50', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'be58e393680370837ae35d5d4f85f77cf9620db2' }, h("zonos-country-select", { key: 'bc5c7e086513a44f817e5769acf2ca382b01fcc4', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '7cbee089b9661602bb23e5e2821030d04891f18a' }, h("zonos-language-select", { key: '55d654b2b339cfd83e3fe9814d914a382a891af3', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
228
228
  }
229
229
  static get assetsDirs() { return ["assets"]; }
230
230
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-3b46f3c3.js';
2
2
  import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-ba9e541e.js';
3
- import { r as handleFetch, l as localizationStore, u as isValidSelector, t as translate, w as getZCountryUrlParam, x as setZCountryUrlParam, y as currencyDisplay, z as currencyConvertAndFormat, A as currencyConvert, B as currencyFormat } from './cart-b96aaa4f.js';
3
+ import { r as handleFetch, l as localizationStore, u as isValidSelector, t as translate, w as getZCountryUrlParam, x as setZCountryUrlParam, y as currencyDisplay, z as currencyConvertAndFormat, A as currencyConvert, B as currencyFormat } from './cart-22ba08ec.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { a as logError, l as log } from './logError-c456c092.js';
6
6
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
@@ -23,17 +23,17 @@ const ZonosInput = class {
23
23
  this.inputChange.emit(newValue);
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: 'f2bf9e34ef694f026eceed1327603659bbd4c5a4', class: classes([
26
+ return (h(Host, { key: 'f4b7ad75b2aebce3bc05a482fe20fee290a3a4e7', class: classes([
27
27
  'zonos--input zonos--elements',
28
28
  this.inputSize,
29
29
  this.isError && 'has-error',
30
30
  ]), style: {
31
31
  '--border-radius': getBorderRadius(),
32
32
  '--font-family': zonosStoreFontFamily(),
33
- } }, h("div", { key: '0fe9066fc683f6a683c494209fa29b10c0076dc5', class: classes([
33
+ } }, h("div", { key: '356e16c11c1cd9edf137f69978ebaa3eb2c28d4e', class: classes([
34
34
  'zonos--label-wrapper',
35
35
  this.isDisabled && 'disabled',
36
- ]) }, h("input", { key: 'f185418ddc6a83e829a9d2dd44a021288f00d4d5', class: classes([
36
+ ]) }, h("input", { key: '71659072bd58942efebb88be65ced18ad29be8ab', class: classes([
37
37
  'zonos--floated-input',
38
38
  !!this.inputLabel && 'has-label',
39
39
  this.inputValue && 'has-content',
@@ -41,7 +41,7 @@ const ZonosInput = class {
41
41
  ]), disabled: this.isDisabled, onInput: e => {
42
42
  const input = e.target;
43
43
  this.inputChange.emit(input.value);
44
- }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '3d4ab801e27af15d819b17db226f0d5f719ac903', class: "zonos--floated-label", "data-label": this.inputLabel }))));
44
+ }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: 'b84c60836fc969c23aedc314c67337e8e87f2ab6', class: "zonos--floated-label", "data-label": this.inputLabel }))));
45
45
  }
46
46
  get el() { return getElement(this); }
47
47
  static get watchers() { return {
@@ -0,0 +1,56 @@
1
+ import { r as registerInstance, h, H as Host } from './index-3b46f3c3.js';
2
+ import { H as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-22ba08ec.js';
3
+ import { d as zonosStoreFontFamily } from './zonosStore-ba9e541e.js';
4
+ import { l as languages } from './ILanguage-cd6acb72.js';
5
+ import './logError-c456c092.js';
6
+ import './isDarkColor-f8324c10.js';
7
+ import './getBorderRadius-947c24de.js';
8
+
9
+ const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
10
+ <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"/>
11
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>
12
+ </svg>
13
+ `;
14
+
15
+ const zonosLanguageSelectCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";
16
+ const ZonosLanguageSelectStyle0 = zonosLanguageSelectCss;
17
+
18
+ const ZonosLanguageSelect = class {
19
+ constructor(hostRef) {
20
+ registerInstance(this, hostRef);
21
+ this.languageSelected = (languageCode) => {
22
+ // mutate the selected language code in store
23
+ void localizationStoreUpdateSelectedLocale(languageCode);
24
+ this.handleOnClose();
25
+ };
26
+ this.handleOnClose = () => { };
27
+ }
28
+ render() {
29
+ const { selectedLocale } = localizationStore;
30
+ return (h(Host, { key: '6682af3d631bac1a8d3783418c30364ff7694792', class: "zonos--elements", style: {
31
+ '--font-family': zonosStoreFontFamily(),
32
+ } }, h("div", { key: '9f7e60bc5c4e9d1c0cc31afcbbaec444a7da630e', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: 'f790ef85eeb0bed05773d98793437ab4d6e64c8d', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '7385a1134b21ae4b39947483ee643da021e6c54c', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
33
+ }
34
+ };
35
+ ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
36
+
37
+ const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
38
+
39
+ const zonosSelectDialogHeaderCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";
40
+ const ZonosSelectDialogHeaderStyle0 = zonosSelectDialogHeaderCss;
41
+
42
+ const ZonosSelectDialogHeader = class {
43
+ constructor(hostRef) {
44
+ registerInstance(this, hostRef);
45
+ this.handleOnClose = () => { };
46
+ this.label = '';
47
+ }
48
+ render() {
49
+ return (h(Host, { key: '21cd3c3e35baf172ecad7f47a76810e8f39bdeff', class: "zonos--elements", style: {
50
+ '--font-family': zonosStoreFontFamily(),
51
+ } }, h("zonos-v-stack", { key: '0470633326b6fca9b45a8be67e0d77819561f634', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '8713cbf368658af22bb88825d32175117d47c95b', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '2f94e9f6139570398897ca55934c5244df7f82e8', type: "boldLabel" }, this.label), h("zonos-button", { key: 'c247dabcc8f487a4cc5a814fb1aa4d9a68fa4ba3', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '26727e634ec09a3b9e3912ada3b920a87a1ba4d0' }))));
52
+ }
53
+ };
54
+ ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
55
+
56
+ export { ZonosLanguageSelect as zonos_language_select, ZonosSelectDialogHeader as zonos_select_dialog_header };
@@ -12,7 +12,7 @@ const ZonosLink = class {
12
12
  this.linkTitle = undefined;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: 'a148ed9b4d285cd39b63da348dcfcc11f4973f04', class: "zonos--elements" }, h("a", { key: '121b299148c4227c0b500ecb6ded03470476aa90', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: 'cf6637f399d3c069bd6ea3d0f3a900fd0740afc5' }))));
15
+ return (h(Host, { key: 'bba0da02c0dee468bd0cacd268f339f7ec4f1008', class: "zonos--elements" }, h("a", { key: '19515197e397b2b24237e77d3e89de75382c14e1', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '63d597a3091e954c9302e461030646b38ee2396e' }))));
16
16
  }
17
17
  };
18
18
  ZonosLink.style = ZonosLinkStyle0;
@@ -15,11 +15,11 @@ const ZonosLogo = class {
15
15
  const filterColor = this.theme === 'DARK'
16
16
  ? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
17
17
  : 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
18
- return (h(Host, { key: 'c790c72d413c586a873c5046a1aee797c1f0af36', class: classes(['zonos--elements zonos--logo']), style: {
18
+ return (h(Host, { key: '08ef20244bc204125a7a308efed42cd7fc86c885', class: classes(['zonos--elements zonos--logo']), style: {
19
19
  '--filter-color': filterColor,
20
20
  '--font-family': zonosStoreFontFamily(),
21
21
  '--width': this.width,
22
- } }, h("img", { key: '68efd2097a0d8488308de0b50bef30cc67deb6fa', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
22
+ } }, h("img", { key: '9202f0619fa3874a19ca3050477719b19592d82a', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
23
23
  }
24
24
  static get assetsDirs() { return ["assets"]; }
25
25
  };
@@ -0,0 +1,118 @@
1
+ import { r as registerInstance, h, H as Host, d as getElement } from './index-3b46f3c3.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-ba9e541e.js';
3
+ import { c as classes } from './classes-0d95c529.js';
4
+ import { h as stripeStore } from './cart-22ba08ec.js';
5
+ import { a as logError } from './logError-c456c092.js';
6
+ import './isDarkColor-f8324c10.js';
7
+ import './getBorderRadius-947c24de.js';
8
+
9
+ const zonosNotificationCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--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)}";
10
+ const ZonosNotificationStyle0 = zonosNotificationCss;
11
+
12
+ const ZonosNotification = class {
13
+ constructor(hostRef) {
14
+ registerInstance(this, hostRef);
15
+ this.notificationArray = [];
16
+ }
17
+ /**
18
+ * Show a notification
19
+ */
20
+ async showNotification(notification) {
21
+ // random generate id
22
+ const id = `id-${Math.random().toString(36).substring(2, 9)}`;
23
+ const notificationItem = Object.assign(Object.assign({}, notification), { id, timeout: notification.timeout || 5000, transitionClass: '', type: notification.type || 'success' });
24
+ this.notificationArray = [...this.notificationArray, notificationItem];
25
+ setTimeout(() => {
26
+ this.updateTransitionClass({
27
+ id,
28
+ transitionClass: 'show',
29
+ });
30
+ }, 50);
31
+ setTimeout(() => {
32
+ this.removeNotification(id);
33
+ }, notificationItem.timeout);
34
+ }
35
+ updateTransitionClass({ id, transitionClass, }) {
36
+ this.notificationArray = this.notificationArray.map(notification => {
37
+ if (notification.id === id) {
38
+ return Object.assign(Object.assign({}, notification), { transitionClass });
39
+ }
40
+ return notification;
41
+ });
42
+ }
43
+ /**
44
+ * Remove a notification
45
+ */
46
+ removeNotification(id) {
47
+ // add hide class before removing the item 100ms to trigger animation
48
+ this.updateTransitionClass({
49
+ id,
50
+ transitionClass: '',
51
+ });
52
+ setTimeout(() => {
53
+ this.notificationArray = this.notificationArray.filter(notification => notification.id !== id);
54
+ }, 300);
55
+ }
56
+ render() {
57
+ return (h(Host, { key: '17c08c90c6c1dfade4e43451c196127a0f53429e', class: classes(['zonos--elements zonos--notification']), style: {
58
+ '--font-family': zonosStoreFontFamily(),
59
+ } }, h("div", { key: '6624419d86a5c7518539069dbc5c9d7c08262c75', class: "zonos--notification-items" }, this.notificationArray.map(notification => {
60
+ return (h("div", { "aria-hidden": "true", class: classes([
61
+ 'zonos--notification-item',
62
+ notification.type,
63
+ notification.transitionClass,
64
+ ]), key: notification.id, onClick: () => {
65
+ this.removeNotification(notification.id);
66
+ } }, h("zonos-text", { textColor: "gray-0" }, notification.message)));
67
+ }))));
68
+ }
69
+ };
70
+ ZonosNotification.style = ZonosNotificationStyle0;
71
+
72
+ const zonosPaymentCss = ".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:16px}";
73
+ const ZonosPaymentStyle0 = zonosPaymentCss;
74
+
75
+ const ZonosPayment = class {
76
+ constructor(hostRef) {
77
+ registerInstance(this, hostRef);
78
+ this.titleText = undefined;
79
+ this.stripe = stripeStore.stripe;
80
+ this.stripeElements = stripeStore.stripeElements;
81
+ }
82
+ watchInitStripe() {
83
+ if (!this.stripeElements) {
84
+ return;
85
+ }
86
+ // Create and mount the Authentication Element in ${type} mode
87
+ const paymentElement = stripeStore.stripePaymentElement ||
88
+ this.stripeElements.create('payment', {
89
+ layout: 'tabs',
90
+ });
91
+ const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
92
+ if (!paymentElementContainer) {
93
+ logError('Cannot find container element for paymentElement');
94
+ return;
95
+ }
96
+ paymentElement.mount(paymentElementContainer);
97
+ paymentElement.on('change', event => {
98
+ stripeStore.stripePaymentEventData = event;
99
+ });
100
+ stripeStore.stripePaymentElement = paymentElement;
101
+ }
102
+ componentDidLoad() {
103
+ // @Watch doesn't get trigger on initial load
104
+ this.watchInitStripe();
105
+ }
106
+ render() {
107
+ // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
108
+ return (h(Host, { key: '870d7a4cb6132332368d356488c5eedd1dea16f3', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '7aef62f6daae0c5b59caa685c4255fb78eebc1be', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '073976bceadf5f8efa78d0b1f6098e94bfa3d1a6', class: "zonos--payment-component" })));
109
+ }
110
+ get el() { return getElement(this); }
111
+ static get watchers() { return {
112
+ "stripeElements": ["watchInitStripe"],
113
+ "stripe": ["watchInitStripe"]
114
+ }; }
115
+ };
116
+ ZonosPayment.style = ZonosPaymentStyle0;
117
+
118
+ export { ZonosNotification as zonos_notification, ZonosPayment as zonos_payment };
@@ -0,0 +1,21 @@
1
+ import { r as registerInstance, h, H as Host } from './index-3b46f3c3.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-ba9e541e.js';
3
+ import { c as classes } from './classes-0d95c529.js';
4
+
5
+ const zonosVStackCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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}";
6
+ const ZonosVStackStyle0 = zonosVStackCss;
7
+
8
+ const VStack = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.spacing = 24;
12
+ }
13
+ render() {
14
+ return (h(Host, { key: '8cdee94089af0eac57784a7914e169f363472577', style: {
15
+ '--font-family': zonosStoreFontFamily(),
16
+ } }, h("div", { key: 'd60da826d77b4cf7e5349b75927fc746f0053ddd', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '97b0e8232cbac73938225e1310712c1607997073' }))));
17
+ }
18
+ };
19
+ VStack.style = ZonosVStackStyle0;
20
+
21
+ export { VStack as zonos_v_stack };