@zonos/elements 1.3.227 → 1.3.229

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 (176) hide show
  1. package/dist/cjs/{cart-af017ac3.js → cart-ad82a680.js} +2 -2
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{localization-21030292.js → localization-31e3dfe3.js} +1 -1
  5. package/dist/cjs/{paypal-2b22f0f5.js → paypal-88b5e878.js} +3 -3
  6. package/dist/cjs/{placeTestOrder-9cde1ca4.js → placeTestOrder-6aefbf9c.js} +2 -2
  7. package/dist/cjs/{renderFallback-9300dbaf.js → renderFallback-87c908ad.js} +2 -2
  8. package/dist/cjs/{translationStore-ce2c700d.js → translationStore-b8b25e9d.js} +240 -0
  9. package/dist/cjs/zonos-address_11.cjs.entry.js +3 -3
  10. package/dist/cjs/{zonos-cart-items_12.cjs.entry.js → zonos-cart-items_13.cjs.entry.js} +23 -5
  11. package/dist/cjs/zonos-checkout.cjs.entry.js +27 -15
  12. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +3 -3
  13. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
  15. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  17. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-country-select_4.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-elements.cjs.js +1 -1
  20. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +4 -4
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  23. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +26 -13
  25. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  26. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  27. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  28. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  29. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  30. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  31. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  32. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  33. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  34. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  35. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  36. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  37. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  38. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  39. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  40. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  41. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  42. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  43. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  44. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  45. package/dist/esm/{cart-11b87221.js → cart-c74f9aaa.js} +3 -3
  46. package/dist/esm/index.js +7 -7
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/{localization-9320a65d.js → localization-106476cb.js} +1 -1
  49. package/dist/esm/{paypal-338a4350.js → paypal-bf3a2bdd.js} +3 -3
  50. package/dist/esm/{placeTestOrder-d28f33c2.js → placeTestOrder-891295e8.js} +2 -2
  51. package/dist/esm/{renderFallback-28ef3364.js → renderFallback-ce0e238a.js} +2 -2
  52. package/dist/esm/{translationStore-7eebaa41.js → translationStore-766b7521.js} +240 -0
  53. package/dist/esm/zonos-address_11.entry.js +3 -3
  54. package/dist/esm/{zonos-cart-items_12.entry.js → zonos-cart-items_13.entry.js} +23 -6
  55. package/dist/esm/zonos-checkout.entry.js +28 -16
  56. package/dist/esm/zonos-collect-cart-items_3.entry.js +3 -3
  57. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  58. package/dist/esm/zonos-collect.entry.js +5 -5
  59. package/dist/esm/zonos-confirm-dialog_2.entry.js +1 -1
  60. package/dist/esm/zonos-controller.entry.js +3 -3
  61. package/dist/esm/zonos-country-flag.entry.js +2 -2
  62. package/dist/esm/zonos-country-select_4.entry.js +2 -2
  63. package/dist/esm/zonos-elements.js +1 -1
  64. package/dist/esm/zonos-empty-state-payment_4.entry.js +4 -4
  65. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  66. package/dist/esm/zonos-hello.entry.js +2 -2
  67. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  68. package/dist/esm-es5/{cart-11b87221.js → cart-c74f9aaa.js} +1 -1
  69. package/dist/esm-es5/index.js +1 -1
  70. package/dist/esm-es5/loader.js +1 -1
  71. package/dist/esm-es5/{localization-9320a65d.js → localization-106476cb.js} +1 -1
  72. package/dist/esm-es5/{paypal-338a4350.js → paypal-bf3a2bdd.js} +1 -1
  73. package/dist/esm-es5/placeTestOrder-891295e8.js +1 -0
  74. package/dist/esm-es5/{renderFallback-28ef3364.js → renderFallback-ce0e238a.js} +1 -1
  75. package/dist/esm-es5/translationStore-766b7521.js +1 -0
  76. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  77. package/dist/esm-es5/{zonos-cart-items_12.entry.js → zonos-cart-items_13.entry.js} +1 -1
  78. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  79. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  80. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  81. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  82. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -1
  83. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  84. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  85. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  86. package/dist/esm-es5/zonos-elements.js +1 -1
  87. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  88. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  89. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  90. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  91. package/dist/scripts/index.d.ts +10 -0
  92. package/dist/scripts/index.js +1 -1
  93. package/dist/scripts/loadZonos.js +1 -1
  94. package/dist/scripts/zonos.js +1 -1
  95. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +5 -4
  96. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  97. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  98. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  99. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  100. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  101. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  102. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  103. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  104. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  105. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  106. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  107. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  108. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  109. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  110. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  111. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  112. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  113. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  114. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  115. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  116. package/dist/types/types/generated/graphql.internal.types.d.ts +21 -0
  117. package/dist/types/types/generated/graphql.internal.types.ts +7 -0
  118. package/dist/types/types/utils/ZonosSettings.d.ts +4 -0
  119. package/dist/zonos-elements/index.esm.js +1 -1
  120. package/dist/zonos-elements/{p-19305aa8.entry.js → p-053a042e.entry.js} +1 -1
  121. package/dist/zonos-elements/p-0d3767ec.entry.js +1 -0
  122. package/dist/zonos-elements/{p-4ce3489a.entry.js → p-10894d36.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-1c5ba523.js → p-1d15662c.js} +1 -1
  124. package/dist/zonos-elements/{p-0260fd13.js → p-203c7fda.js} +1 -1
  125. package/dist/zonos-elements/{p-e00e5d64.system.entry.js → p-21b251f0.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-2657f099.system.entry.js → p-225a61c4.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-4004c838.system.entry.js → p-236e0144.system.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-9e03a145.system.entry.js → p-23f6a2fb.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-bfc0fc85.system.entry.js → p-288f5a5b.system.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-1ef793d0.entry.js → p-2b84039a.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-04c1dc63.system.entry.js → p-2db90c99.system.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-ba334962.system.entry.js → p-3d2925c5.system.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-ae3e4f2b.entry.js → p-462f8857.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-1868a283.entry.js → p-5608ac9d.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-0b6a3a09.system.entry.js → p-57ee34aa.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-d531b524.system.js → p-595668d7.system.js} +1 -1
  137. package/dist/zonos-elements/{p-67787bd4.entry.js → p-62803534.entry.js} +1 -1
  138. package/dist/zonos-elements/p-6497ce22.entry.js +1 -0
  139. package/dist/zonos-elements/{p-6092af05.entry.js → p-65db3219.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-7cee0e68.system.entry.js → p-6c8e4f01.system.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-1b9cc0e2.system.entry.js → p-6f1024de.system.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-0a92e3fd.entry.js → p-76f924b3.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-375994d1.system.entry.js → p-7a97e1cf.system.entry.js} +1 -1
  144. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  145. package/dist/zonos-elements/p-94853366.system.entry.js +1 -0
  146. package/dist/zonos-elements/{p-4dfe97ad.js → p-964a4d85.js} +2 -2
  147. package/dist/zonos-elements/{p-2616ba72.entry.js → p-9972941a.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-290715a7.system.js → p-9c728733.system.js} +1 -1
  149. package/dist/zonos-elements/{p-bcf11c99.system.entry.js → p-ad7be556.system.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-cb0e6468.entry.js → p-b0a75761.entry.js} +1 -1
  151. package/dist/zonos-elements/p-b4fe3604.system.js +1 -0
  152. package/dist/zonos-elements/p-b8293509.js +1 -0
  153. package/dist/zonos-elements/{p-873b6185.system.entry.js → p-bd373de0.system.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-7eb8e2d4.js → p-c3c3cd98.js} +1 -1
  155. package/dist/zonos-elements/{p-0ec82d78.system.js → p-c89e9d56.system.js} +1 -1
  156. package/dist/zonos-elements/{p-725605f6.system.js → p-cdaf52f4.system.js} +1 -1
  157. package/dist/zonos-elements/{p-b5b3f908.system.js → p-cef1e888.system.js} +1 -1
  158. package/dist/zonos-elements/{p-e60b988c.entry.js → p-cf56b990.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-112c6453.system.js → p-de984173.system.js} +1 -1
  160. package/dist/zonos-elements/p-eea0d8af.js +1 -0
  161. package/dist/zonos-elements/{p-252fa1da.entry.js → p-f4085c23.entry.js} +1 -1
  162. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  163. package/package.json +1 -1
  164. package/dist/cjs/zonos-link.cjs.entry.js +0 -24
  165. package/dist/esm/zonos-link.entry.js +0 -20
  166. package/dist/esm-es5/placeTestOrder-d28f33c2.js +0 -1
  167. package/dist/esm-es5/translationStore-7eebaa41.js +0 -1
  168. package/dist/esm-es5/zonos-link.entry.js +0 -1
  169. package/dist/zonos-elements/p-02667a58.entry.js +0 -1
  170. package/dist/zonos-elements/p-0d82e1fd.entry.js +0 -1
  171. package/dist/zonos-elements/p-182da73f.system.js +0 -1
  172. package/dist/zonos-elements/p-5c43ecdf.system.entry.js +0 -1
  173. package/dist/zonos-elements/p-820ad058.js +0 -1
  174. package/dist/zonos-elements/p-a800965d.system.entry.js +0 -1
  175. package/dist/zonos-elements/p-cc599cd9.entry.js +0 -1
  176. package/dist/zonos-elements/p-d42b5113.js +0 -1
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-55a03023.js";var 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)}";var ZonosLinkStyle0=zonosLinkCss;var ZonosLink=function(){function o(o){registerInstance(this,o);this.href=""}o.prototype.render=function(){return h(Host,{key:"7c6ecf4d61e7dfb56491e58814478c906423473b",class:"zonos--elements"},h("a",{key:"05bc59fb4940fa48d37a10cfe9df3c495d60785f",href:this.href,rel:this.rel,target:this.target,title:this.linkTitle},h("slot",{key:"07b51a0a95cd5a7b392bb5efef96c8e4dd4bb9b3"})))};return o}();ZonosLink.style=ZonosLinkStyle0;export{ZonosLink as zonos_link};
@@ -1 +0,0 @@
1
- import{r as o,h as t,H as s}from"./p-b30c2ad9.js";const e=class{constructor(t){o(this,t),this.href=""}render(){return t(s,{key:"7c6ecf4d61e7dfb56491e58814478c906423473b",class:"zonos--elements"},t("a",{key:"05bc59fb4940fa48d37a10cfe9df3c495d60785f",href:this.href,rel:this.rel,target:this.target,title:this.linkTitle},t("slot",{key:"07b51a0a95cd5a7b392bb5efef96c8e4dd4bb9b3"})))}};e.style=":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)}";export{e as zonos_link}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as s,a as n,c as a}from"./p-b30c2ad9.js";import{f as e}from"./p-7af39c98.js";import{c as i}from"./p-b4b7f705.js";import{g as r}from"./p-0ffd710e.js";import{c as p,t as h}from"./p-1c5ba523.js";import{s as l}from"./p-7eb8e2d4.js";import{l as c}from"./p-41dd1cb8.js";import{d as y,e as m}from"./p-4dfe97ad.js";import{l as d}from"./p-0a377722.js";import"./p-d42b5113.js";import"./p-e688e493.js";const f=class{constructor(o){t(this,o),this.theme="LIGHT"}render(){return this.el.shadowRoot?(this.el.shadowRoot.innerHTML="DARK"===this.theme?'<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">\n<mask id="mask0_3739_19124" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="536" height="200">\n<rect width="536" height="200" fill="url(#paint0_radial_3739_19124)"/>\n</mask>\n<g mask="url(#mask0_3739_19124)">\n<rect x="0.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="126.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="252.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="378.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="504.5" y="0.5" width="31" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect y="96" width="124" height="8" rx="4" fill="white" fill-opacity="0.08"/>\n<rect x="0.5" y="112.5" width="535" height="39" rx="7.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="0.5" y="160.5" width="263" height="39" rx="7.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="272.5" y="160.5" width="263" height="39" rx="7.5" stroke="white" stroke-opacity="0.08"/>\n</g>\n<defs>\n<radialGradient id="paint0_radial_3739_19124" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(268 100) rotate(90) scale(100 268)">\n<stop offset="0.25" stop-color="white" stop-opacity="0"/>\n<stop offset="0.75" stop-color="white"/>\n</radialGradient>\n</defs>\n</svg>\n':'<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">\n<mask id="mask0_3739_19125" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="536" height="200">\n<rect width="536" height="200" fill="url(#paint0_radial_3739_19125)"/>\n</mask>\n<g mask="url(#mask0_3739_19125)">\n<rect x="0.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="126.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="252.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="378.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="504.5" y="0.5" width="31" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect y="96" width="124" height="8" rx="4" fill="black" fill-opacity="0.08"/>\n<rect x="0.5" y="112.5" width="535" height="39" rx="7.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="0.5" y="160.5" width="263" height="39" rx="7.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="272.5" y="160.5" width="263" height="39" rx="7.5" stroke="black" stroke-opacity="0.08"/>\n</g>\n<defs>\n<radialGradient id="paint0_radial_3739_19125" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(268 100) rotate(90) scale(100 268)">\n<stop offset="0.25" stop-color="white" stop-opacity="0"/>\n<stop offset="0.75" stop-color="white"/>\n</radialGradient>\n</defs>\n</svg>\n',o(s,{class:"zonos--elements",style:{"--zonos--font-family":e(),"--zonos--height":"100%","--zonos--width":"100%"}},o("zonos-text",{type:"semiBoldLabel"},this.emptyStateText))):null}get el(){return n(this)}};f.style=":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;position:relative}:host zonos-text{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host svg{width:var(--zonos--width);height:var(--zonos--height)}";const z=class{constructor(o){t(this,o),this.notificationArray=[]}async showNotification(t){const o=`id-${Math.random().toString(36).substring(2,9)}`,s=Object.assign(Object.assign({},t),{id:o,timeout:t.timeout||5e3,transitionClass:"",type:t.type||"success"});this.notificationArray=[...this.notificationArray,s],setTimeout((()=>{this.updateTransitionClass({id:o,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(o)}),s.timeout)}updateTransitionClass({id:t,transitionClass:o}){this.notificationArray=this.notificationArray.map((s=>s.id===t?Object.assign(Object.assign({},s),{transitionClass:o}):s))}removeNotification(t){this.updateTransitionClass({id:t,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((o=>o.id!==t))}),300)}render(){return o(s,{key:"6a790a39afc037ae56f8a53dc89c3fa899b2d659",class:i(["zonos--elements zonos--notification"]),style:{"--zonos--border-radius":r(),"--zonos--font-family":e()}},o("div",{key:"32245a784f2322fb69a65b491648a30a84b0b3d3",class:"zonos--notification-items"},this.notificationArray.map((t=>o("div",{"aria-hidden":"true",class:i(["zonos--notification-item",t.type,t.transitionClass]),key:t.id,onClick:()=>{this.removeNotification(t.id)}},o("zonos-text",{textColor:"gray-0"},t.message))))))}};z.style=":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)}";const g=class{constructor(o){t(this,o),this.stripe=p.stripe,this.stripeElements=p.stripeElements,this.isPaymentInfoFilled=!1,this.trackingSent=!1}watchIsPaymentInfoFilled(){var t;this.isPaymentInfoFilled&&!this.trackingSent&&(h({checkoutSessionId:l.checkoutSessionId,eventName:"checkout_paymentInfoFilled",metadata:{paymentMethod:null===(t=p.stripePaymentEventData)||void 0===t?void 0:t.value.type}}),this.trackingSent=!0)}watchInitStripe(){var t;if(!this.stripeElements)return;const o=p.stripePaymentElement||this.stripeElements.create("payment",{defaultValues:{billingDetails:{address:{country:null===(t=p.stripeAddressEventData)||void 0===t?void 0:t.value.address.country}}},layout:"tabs"}),s=this.el.querySelector(".zonos--payment-component");s?(o.mount(s),o.on("change",(t=>{t.complete&&(this.isPaymentInfoFilled=!0),p.stripePaymentEventData=t})),p.stripePaymentElement=o):c("Cannot find container element for paymentElement")}componentDidLoad(){this.watchInitStripe()}render(){return o(s,{key:"c0b27f25785a9f6de2705e16d97f1bf5f7bcb0a4",class:"zonos--payment zonos--elements"},this.titleText&&o("zonos-text",{key:"1cfdb16f94a5219882da9da013a6e2de6a6b3c3f",class:"zonos--title",type:"semiBoldLabel"},this.titleText),o("div",{key:"bb5ac07b4c32f2469f4825426160542d9729d332",class:"zonos--payment-component"}),o("div",{key:"34f805b56fa151e8a3102361df9fb8b3e636dc75",class:"zonos--payment-paypal-container"}))}get el(){return n(this)}static get watchers(){return{isPaymentInfoFilled:["watchIsPaymentInfoFilled"],stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}}};g.style=".sc-zonos-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--zonos--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 x=class{constructor(o){t(this,o),this.paypalSessionDone=a(this,"paypalSessionDone",7),this.paypalSessionFail=a(this,"paypalSessionFail",7),this.storeUnsubscribeList=[]}async loadPaypal(){if(!window.Zonos.paypal)return void d("Paypal is not available");const t=y({onPaypalFail:()=>{d("onPaypalFail"),this.paypalSessionFail.emit()},onPaypalSessionDone:({orderId:t})=>{d("onPaypalSessionDone","info",{orderId:t}),this.paypalSessionDone.emit({orderId:t})}});if(!(null==t?void 0:t.length))return void d("There are no paypal buttons available");const o=this.el.querySelector(".zonos--payment-paypal-container");o?t.forEach((async t=>{await t.render(o)})):d("Cannot find container element for paypal buttons")}componentWillLoad(){this.storeUnsubscribeList=[m("paypal",this.loadPaypal.bind(this))]}componentDidLoad(){this.loadPaypal()}disconnectedCallback(){this.storeUnsubscribeList.forEach((t=>t()))}render(){return o(s,{key:"bcf11ef0ceab1d847c237ec26ec604440983c16f",class:"zonos--paypal-payment zonos--elements"},o("div",{key:"ce5033f39b2e9644e30fc1e0e35f64e5d9b9730d",class:"zonos--payment-paypal-container"}))}get el(){return n(this)}};x.style=".sc-zonos-paypal-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-paypal-payment-h *.sc-zonos-paypal-payment{font-family:var(--zonos--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{f as zonos_empty_state_payment,z as zonos_notification,g as zonos_payment,x as zonos_paypal_payment}