@zonos/elements 1.3.109 → 1.3.111

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/{CheckoutConfig-c97f0f83.js → CheckoutConfig-5d7cf0c0.js} +19 -2
  2. package/dist/cjs/{cart-d25b699a.js → cart-a3eab220.js} +235 -75
  3. package/dist/cjs/createCustomEvent-3e982e57.js +16 -0
  4. package/dist/cjs/index.cjs.js +8 -8
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{paypal-fd423375.js → paypal-ca479c4b.js} +1 -1
  7. package/dist/cjs/zonos-address_7.cjs.entry.js +9 -9
  8. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-card.cjs.entry.js +4 -4
  11. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +126 -104
  12. package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
  13. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -9
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  20. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  27. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +3 -0
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +108 -86
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -2
  34. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  35. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  36. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  37. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  38. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  39. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  40. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  41. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  42. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  43. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  44. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  45. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  46. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  47. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  48. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  49. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  50. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  51. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  52. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  53. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  54. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  55. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  56. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  57. package/dist/collection/components/main/zonos-controller.js +1 -1
  58. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  59. package/dist/collection/components/store/checkout/stripe.js +11 -1
  60. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -3
  61. package/dist/collection/components/store/translationStore/strings.base.js +9 -3
  62. package/dist/collection/components/store/translationStore/strings.chinese.js +10 -4
  63. package/dist/collection/components/store/translationStore/strings.danish.js +10 -4
  64. package/dist/collection/components/store/translationStore/strings.dutch.js +10 -4
  65. package/dist/collection/components/store/translationStore/strings.french.js +9 -3
  66. package/dist/collection/components/store/translationStore/strings.german.js +10 -4
  67. package/dist/collection/components/store/translationStore/strings.hebrew.js +10 -4
  68. package/dist/collection/components/store/translationStore/strings.indonesian.js +10 -4
  69. package/dist/collection/components/store/translationStore/strings.italian.js +10 -4
  70. package/dist/collection/components/store/translationStore/strings.japanese.js +10 -4
  71. package/dist/collection/components/store/translationStore/strings.korean.js +10 -4
  72. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -3
  73. package/dist/collection/components/store/translationStore/strings.polish.js +9 -3
  74. package/dist/collection/components/store/translationStore/strings.portuguese.js +10 -4
  75. package/dist/collection/components/store/translationStore/strings.russian.js +10 -4
  76. package/dist/collection/components/store/translationStore/strings.spanish.js +10 -4
  77. package/dist/collection/components/store/translationStore/strings.swedish.js +10 -4
  78. package/dist/collection/components/store/translationStore/strings.turkish.js +10 -4
  79. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -3
  80. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  81. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  82. package/dist/collection/components/stripe/zonos-payment/zonos-payment.css +3 -0
  83. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  84. package/dist/collection/scripts/cart/_getIsValidCartId.js +15 -0
  85. package/dist/collection/scripts/cart/_setupCartData.js +4 -2
  86. package/dist/esm/{CheckoutConfig-4d2a508c.js → CheckoutConfig-32f33d8b.js} +19 -2
  87. package/dist/esm/{cart-911ba5dd.js → cart-163f4dd9.js} +235 -76
  88. package/dist/esm/createCustomEvent-31a792d3.js +13 -0
  89. package/dist/esm/index.js +9 -9
  90. package/dist/esm/loader.js +1 -1
  91. package/dist/esm/{paypal-04a10fc2.js → paypal-77e8eef2.js} +1 -1
  92. package/dist/esm/zonos-address_7.entry.js +9 -9
  93. package/dist/esm/zonos-badge.entry.js +3 -3
  94. package/dist/esm/zonos-button_3.entry.js +3 -3
  95. package/dist/esm/zonos-card.entry.js +4 -4
  96. package/dist/esm/zonos-cart-items_13.entry.js +125 -103
  97. package/dist/esm/zonos-checkout.entry.js +6 -6
  98. package/dist/esm/zonos-collapse.entry.js +2 -2
  99. package/dist/esm/zonos-component.entry.js +1 -1
  100. package/dist/esm/zonos-controller.entry.js +2 -2
  101. package/dist/esm/zonos-country-flag.entry.js +1 -1
  102. package/dist/esm/zonos-country-select_4.entry.js +9 -9
  103. package/dist/esm/zonos-elements.js +1 -1
  104. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  105. package/dist/esm/zonos-hello.entry.js +1 -1
  106. package/dist/esm/zonos-input.entry.js +4 -4
  107. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  108. package/dist/esm/zonos-link.entry.js +1 -1
  109. package/dist/esm/zonos-logo.entry.js +2 -2
  110. package/dist/esm/zonos-notification_3.entry.js +5 -5
  111. package/dist/esm/zonos-toggle.entry.js +2 -2
  112. package/dist/esm/zonos-tooltip.entry.js +2 -2
  113. package/dist/esm/zonos-v-stack.entry.js +2 -2
  114. package/dist/esm-es5/CheckoutConfig-32f33d8b.js +1 -0
  115. package/dist/esm-es5/cart-163f4dd9.js +1 -0
  116. package/dist/esm-es5/createCustomEvent-31a792d3.js +1 -0
  117. package/dist/esm-es5/index.js +1 -1
  118. package/dist/esm-es5/loader.js +1 -1
  119. package/dist/esm-es5/{paypal-04a10fc2.js → paypal-77e8eef2.js} +1 -1
  120. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  121. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  122. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  123. package/dist/esm-es5/zonos-card.entry.js +1 -1
  124. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  125. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  126. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  127. package/dist/esm-es5/zonos-component.entry.js +1 -1
  128. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  129. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  130. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  131. package/dist/esm-es5/zonos-elements.js +1 -1
  132. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  133. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  134. package/dist/esm-es5/zonos-input.entry.js +1 -1
  135. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  136. package/dist/esm-es5/zonos-link.entry.js +1 -1
  137. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  138. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  139. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  140. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  141. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  142. package/dist/scripts/index.d.ts +0 -5
  143. package/dist/scripts/index.js +1 -1
  144. package/dist/scripts/loadZonos.js +1 -1
  145. package/dist/scripts/zonos.js +1 -1
  146. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +0 -1
  147. package/dist/types/components/store/checkout/stripe.d.ts +6 -0
  148. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -3
  149. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -3
  150. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -3
  151. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -3
  152. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -3
  153. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -3
  154. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -3
  155. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -3
  156. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -3
  157. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -3
  158. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -3
  159. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -3
  160. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -3
  161. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -3
  162. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -3
  163. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -3
  164. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -3
  165. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -3
  166. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -3
  167. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -3
  168. package/dist/types/components/store/translationStore.d.ts +1 -1
  169. package/dist/types/scripts/cart/_getIsValidCartId.d.ts +4 -0
  170. package/dist/types/types/checkout/CheckoutConfig.d.ts +0 -5
  171. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  172. package/dist/zonos-elements/index.esm.js +1 -1
  173. package/dist/zonos-elements/{p-58832515.entry.js → p-019028d5.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-939d363c.system.entry.js → p-02b1e030.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-ba3d2965.entry.js → p-06e3c94f.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-123cabaa.system.entry.js → p-0810568b.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-2a1475a4.system.entry.js → p-0a8b6b4a.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-eaf09ccb.entry.js → p-0ad85ec6.entry.js} +1 -1
  179. package/dist/zonos-elements/p-110ee9ab.entry.js +1 -0
  180. package/dist/zonos-elements/{p-1e1397fe.entry.js → p-124f5c21.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-796dbada.entry.js → p-1605dd48.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-ee14ba06.system.entry.js → p-189aa06e.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-b8850092.entry.js → p-1a0e138c.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-32c29205.system.entry.js → p-1c1ab3c8.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-1a9a51bf.entry.js → p-1c7e19f7.entry.js} +1 -1
  186. package/dist/zonos-elements/p-1dcaf64f.js +17 -0
  187. package/dist/zonos-elements/{p-6927d227.system.entry.js → p-2a0c4426.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-84d38e0c.entry.js → p-31acf417.entry.js} +1 -1
  189. package/dist/zonos-elements/p-33b57fab.system.js +1 -0
  190. package/dist/zonos-elements/{p-bfd73737.system.entry.js → p-3c90f724.system.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-ff7b0d6b.system.entry.js → p-42b0fca8.system.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-9f89f828.system.entry.js → p-42d9d3af.system.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-ae7526a2.system.entry.js → p-442a308c.system.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-24813754.system.entry.js → p-46a71949.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-e880ab28.system.js → p-49135023.system.js} +1 -1
  196. package/dist/zonos-elements/p-56d405d0.js +1 -0
  197. package/dist/zonos-elements/{p-8b0feb0e.entry.js → p-58e6386b.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-9d678aea.system.js → p-5929ba9e.system.js} +1 -1
  199. package/dist/zonos-elements/p-5a011a47.system.js +1 -0
  200. package/dist/zonos-elements/p-605473a3.entry.js +1 -0
  201. package/dist/zonos-elements/p-64372f93.system.js +1 -0
  202. package/dist/zonos-elements/p-7b999a40.js +1 -0
  203. package/dist/zonos-elements/{p-8632c8f1.entry.js → p-8acdac29.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-adbcf21c.entry.js → p-8cafdbc9.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-c4b5f123.entry.js → p-8e6bbf2c.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-76a4a647.system.entry.js → p-8e85c28f.system.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-45323a2f.system.entry.js → p-932cbdd7.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-1d15c126.entry.js → p-9d7a79e3.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-c9e8f159.system.entry.js → p-a45bd823.system.entry.js} +1 -1
  210. package/dist/zonos-elements/p-a828799f.system.entry.js +1 -0
  211. package/dist/zonos-elements/{p-b7f627ec.system.entry.js → p-ab9af87d.system.entry.js} +1 -1
  212. package/dist/zonos-elements/p-abc6b881.system.entry.js +1 -0
  213. package/dist/zonos-elements/{p-71fe8da9.entry.js → p-b34ccbfd.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-d6de8661.entry.js → p-bcfc229f.entry.js} +1 -1
  215. package/dist/zonos-elements/p-c44f27be.js +1 -0
  216. package/dist/zonos-elements/{p-36eaad7e.entry.js → p-c598b3c5.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-4eb3e354.entry.js → p-c652212b.entry.js} +1 -1
  218. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  219. package/dist/zonos-elements/{p-489029d9.system.entry.js → p-d3c1ad61.system.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-e5d1d031.system.entry.js → p-d8a45014.system.entry.js} +1 -1
  221. package/dist/zonos-elements/p-ddcbf41d.entry.js +1 -0
  222. package/dist/zonos-elements/{p-1b1f2e33.system.entry.js → p-e4a69ce9.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-0962536e.system.entry.js → p-e5e63927.system.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-4069df3c.entry.js → p-f20b3656.entry.js} +1 -1
  225. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/cjs/createCustomEvent-4ea7b6dc.js +0 -51
  228. package/dist/esm/createCustomEvent-6ba5bcde.js +0 -47
  229. package/dist/esm-es5/CheckoutConfig-4d2a508c.js +0 -1
  230. package/dist/esm-es5/cart-911ba5dd.js +0 -1
  231. package/dist/esm-es5/createCustomEvent-6ba5bcde.js +0 -1
  232. package/dist/zonos-elements/p-018a4b36.js +0 -1
  233. package/dist/zonos-elements/p-27188a22.system.entry.js +0 -1
  234. package/dist/zonos-elements/p-272121e2.js +0 -1
  235. package/dist/zonos-elements/p-39c09f18.system.entry.js +0 -1
  236. package/dist/zonos-elements/p-60303c84.js +0 -1
  237. package/dist/zonos-elements/p-631570f0.system.js +0 -1
  238. package/dist/zonos-elements/p-64f0fcce.system.js +0 -1
  239. package/dist/zonos-elements/p-8d98fed0.entry.js +0 -1
  240. package/dist/zonos-elements/p-a0af6dc1.entry.js +0 -1
  241. package/dist/zonos-elements/p-e2fa7600.entry.js +0 -1
  242. package/dist/zonos-elements/p-e9771827.system.js +0 -1
  243. package/dist/zonos-elements/p-ef9d6106.js +0 -17
@@ -1 +1 @@
1
- import{r as o,h as s,H as n,d as t,c as a}from"./p-5b7da777.js";import{d as e}from"./p-a24da794.js";import{c as i}from"./p-b4b7f705.js";import{j as p}from"./p-60303c84.js";import{a as c,l as m}from"./p-970fa103.js";import{d as l}from"./p-ef9d6106.js";import"./p-032159ed.js";import"./p-e559d12d.js";const r=class{constructor(s){o(this,s),this.notificationArray=[]}async showNotification(o){const s=`id-${Math.random().toString(36).substring(2,9)}`,n=Object.assign(Object.assign({},o),{id:s,timeout:o.timeout||5e3,transitionClass:"",type:o.type||"success"});this.notificationArray=[...this.notificationArray,n],setTimeout((()=>{this.updateTransitionClass({id:s,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(s)}),n.timeout)}updateTransitionClass({id:o,transitionClass:s}){this.notificationArray=this.notificationArray.map((n=>n.id===o?Object.assign(Object.assign({},n),{transitionClass:s}):n))}removeNotification(o){this.updateTransitionClass({id:o,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((s=>s.id!==o))}),300)}render(){return s(n,{key:"17c08c90c6c1dfade4e43451c196127a0f53429e",class:i(["zonos--elements zonos--notification"]),style:{"--font-family":e()}},s("div",{key:"6624419d86a5c7518539069dbc5c9d7c08262c75",class:"zonos--notification-items"},this.notificationArray.map((o=>s("div",{"aria-hidden":"true",class:i(["zonos--notification-item",o.type,o.transitionClass]),key:o.id,onClick:()=>{this.removeNotification(o.id)}},s("zonos-text",{textColor:"gray-0"},o.message))))))}};r.style=":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)}";const y=class{constructor(s){o(this,s),this.titleText=void 0,this.stripe=p.stripe,this.stripeElements=p.stripeElements}watchInitStripe(){if(!this.stripeElements)return;const o=p.stripePaymentElement||this.stripeElements.create("payment",{layout:"tabs"}),s=this.el.querySelector(".zonos--payment-component");s?(o.mount(s),o.on("change",(o=>{p.stripePaymentEventData=o})),p.stripePaymentElement=o):c("Cannot find container element for paymentElement")}componentDidLoad(){this.watchInitStripe()}render(){return s(n,{key:"b0f902ab028fc148e5ac2e6b6620844aa88329f0",class:"zonos--payment zonos--elements"},this.titleText&&s("zonos-text",{key:"826ddc56d763a6064e4ba5bd331853950d68a8b5",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"4f987cfa5d2d1d2b0db48f435f9119095b1a7373",class:"zonos--payment-component"}),s("div",{key:"bbdfdeee14b9a919b896bbe525763d850739cb4a",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}static get watchers(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}}};y.style=".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}";const h=class{constructor(s){o(this,s),this.paypalSessionDone=a(this,"paypalSessionDone",7),this.paypalSessionFail=a(this,"paypalSessionFail",7)}async loadPaypal(){if(!window.Zonos.paypal)return void m("Paypal is not available");const o=l({onPaypalFail:()=>{m("onPaypalFail"),this.paypalSessionFail.emit()},onPaypalSessionDone:({orderId:o})=>{m("onPaypalSessionDone","info",{orderId:o}),this.paypalSessionDone.emit({orderId:o})}});if(!(null==o?void 0:o.length))return void m("There are no paypal buttons available");const s=this.el.querySelector(".zonos--payment-paypal-container");s?o.forEach((async o=>{await o.render(s)})):m("Cannot find container element for paypal buttons")}componentDidLoad(){this.loadPaypal()}render(){return s(n,{key:"23a85e68d356392c530adc7d006cbe4ffc5ff87c",class:"zonos--paypal-payment zonos--elements"},s("div",{key:"1488f9507505eaea91141c09265295acff6ca085",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}};h.style=".sc-zonos-paypal-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-paypal-payment-h *.sc-zonos-paypal-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-paypal-payment-h img.sc-zonos-paypal-payment{max-width:100%}.sc-zonos-paypal-payment-h dl.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h dd.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h1.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h2.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h3.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h4.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h5.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h6.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h hr.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h figure.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h p.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h pre.sc-zonos-paypal-payment{margin:0}.sc-zonos-paypal-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-paypal-payment-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}";export{r as zonos_notification,y as zonos_payment,h as zonos_paypal_payment}
1
+ import{r as o,h as s,H as n,d as t,c as a}from"./p-5b7da777.js";import{d as e}from"./p-a24da794.js";import{c as i}from"./p-b4b7f705.js";import{j as p}from"./p-c44f27be.js";import{a as c,l as m}from"./p-970fa103.js";import{d as y}from"./p-1dcaf64f.js";import"./p-032159ed.js";import"./p-e559d12d.js";const l=class{constructor(s){o(this,s),this.notificationArray=[]}async showNotification(o){const s=`id-${Math.random().toString(36).substring(2,9)}`,n=Object.assign(Object.assign({},o),{id:s,timeout:o.timeout||5e3,transitionClass:"",type:o.type||"success"});this.notificationArray=[...this.notificationArray,n],setTimeout((()=>{this.updateTransitionClass({id:s,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(s)}),n.timeout)}updateTransitionClass({id:o,transitionClass:s}){this.notificationArray=this.notificationArray.map((n=>n.id===o?Object.assign(Object.assign({},n),{transitionClass:s}):n))}removeNotification(o){this.updateTransitionClass({id:o,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((s=>s.id!==o))}),300)}render(){return s(n,{key:"17c08c90c6c1dfade4e43451c196127a0f53429e",class:i(["zonos--elements zonos--notification"]),style:{"--font-family":e()}},s("div",{key:"6624419d86a5c7518539069dbc5c9d7c08262c75",class:"zonos--notification-items"},this.notificationArray.map((o=>s("div",{"aria-hidden":"true",class:i(["zonos--notification-item",o.type,o.transitionClass]),key:o.id,onClick:()=>{this.removeNotification(o.id)}},s("zonos-text",{textColor:"gray-0"},o.message))))))}};l.style=":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)}";const r=class{constructor(s){o(this,s),this.titleText=void 0,this.stripe=p.stripe,this.stripeElements=p.stripeElements}watchInitStripe(){if(!this.stripeElements)return;const o=p.stripePaymentElement||this.stripeElements.create("payment",{layout:"tabs"}),s=this.el.querySelector(".zonos--payment-component");s?(o.mount(s),o.on("change",(o=>{p.stripePaymentEventData=o})),p.stripePaymentElement=o):c("Cannot find container element for paymentElement")}componentDidLoad(){this.watchInitStripe()}render(){return s(n,{key:"7bab752dbac3a51f765e59355575801637ad8dd7",class:"zonos--payment zonos--elements"},this.titleText&&s("zonos-text",{key:"755920aa1202842860391c3c6fe133878cbe84df",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"5224e2a003581bb1456d7eb05f443cee4c35fd76",class:"zonos--payment-component"}),s("div",{key:"58ff4898fbb318e6220611fdac63c6e58ef33aaf",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}static get watchers(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}}};r.style=".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}.sc-zonos-payment-h .zonos--payment-component.sc-zonos-payment{margin-bottom:4px}";const h=class{constructor(s){o(this,s),this.paypalSessionDone=a(this,"paypalSessionDone",7),this.paypalSessionFail=a(this,"paypalSessionFail",7)}async loadPaypal(){if(!window.Zonos.paypal)return void m("Paypal is not available");const o=y({onPaypalFail:()=>{m("onPaypalFail"),this.paypalSessionFail.emit()},onPaypalSessionDone:({orderId:o})=>{m("onPaypalSessionDone","info",{orderId:o}),this.paypalSessionDone.emit({orderId:o})}});if(!(null==o?void 0:o.length))return void m("There are no paypal buttons available");const s=this.el.querySelector(".zonos--payment-paypal-container");s?o.forEach((async o=>{await o.render(s)})):m("Cannot find container element for paypal buttons")}componentDidLoad(){this.loadPaypal()}render(){return s(n,{key:"7be3c38f702c8fb105c54e652774f69fbbcfd34c",class:"zonos--paypal-payment zonos--elements"},s("div",{key:"6845b53c2a5d1f2637f3ae9d867d2c6de48ab1b5",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}};h.style=".sc-zonos-paypal-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-paypal-payment-h *.sc-zonos-paypal-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-paypal-payment-h img.sc-zonos-paypal-payment{max-width:100%}.sc-zonos-paypal-payment-h dl.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h dd.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h1.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h2.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h3.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h4.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h5.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h6.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h hr.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h figure.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h p.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h pre.sc-zonos-paypal-payment{margin:0}.sc-zonos-paypal-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-paypal-payment-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}";export{l as zonos_notification,r as zonos_payment,h as zonos_paypal_payment}