@zonos/elements 1.3.18-alpha.1 → 1.3.18-alpha.2

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 (266) hide show
  1. package/dist/cjs/{cart-95209ae8.js → cart-941a31dd.js} +255 -5
  2. package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
  3. package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
  4. package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{submitGtag-9d60f3bb.js → submitGtag-9210b4fe.js} +2 -2
  7. package/dist/cjs/zonos-address_8.cjs.entry.js +22 -11
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +7 -7
  12. package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +112 -6
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +34 -8
  14. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-country-select_3.cjs.entry.js +11 -11
  18. package/dist/cjs/zonos-elements.cjs.js +2 -2
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
  20. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  21. package/dist/cjs/zonos-input.cjs.entry.js +7 -7
  22. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
  26. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  29. package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
  30. package/dist/collection/collection-manifest.json +1 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +42 -5
  32. package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
  33. package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
  34. package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  35. package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
  36. package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
  37. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
  38. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
  39. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  40. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  41. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
  42. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
  43. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  44. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  45. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  46. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  47. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  48. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  49. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  50. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  51. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  52. package/dist/collection/components/main/zonos-controller.js +3 -3
  53. package/dist/collection/components/store/hello/localization.js +12 -2
  54. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  55. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  56. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  57. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  58. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  59. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  60. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  61. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  62. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  63. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  64. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  65. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  66. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  67. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  68. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  69. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  70. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  71. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  72. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  73. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  74. package/dist/collection/components/store/zonosStore.js +1 -0
  75. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  76. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  77. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  78. package/dist/collection/scripts/zonosBase.js +2 -1
  79. package/dist/components/stripe.js +12 -2
  80. package/dist/components/translationStore.js +240 -0
  81. package/dist/components/zonos-address2.js +1 -1
  82. package/dist/components/zonos-button2.js +20 -8
  83. package/dist/components/zonos-checkout.js +70 -37
  84. package/dist/components/zonos-component.js +1 -1
  85. package/dist/components/zonos-confirm-dialog.d.ts +11 -0
  86. package/dist/components/zonos-confirm-dialog.js +6 -0
  87. package/dist/components/zonos-confirm-dialog2.js +161 -0
  88. package/dist/components/zonos-controller.js +1 -1
  89. package/dist/components/zonos-country-select2.js +2 -2
  90. package/dist/components/zonos-custom-message2.js +2 -2
  91. package/dist/components/zonos-dialog2.js +17 -5
  92. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  93. package/dist/components/zonos-hello-dialog2.js +3 -3
  94. package/dist/components/zonos-input2.js +4 -4
  95. package/dist/components/zonos-language-select2.js +2 -2
  96. package/dist/components/zonos-link-authentication2.js +1 -1
  97. package/dist/components/zonos-logo.js +2 -2
  98. package/dist/components/zonos-payment2.js +1 -1
  99. package/dist/components/zonos-select-dialog-header2.js +2 -2
  100. package/dist/components/zonos-tooltip2.js +2 -2
  101. package/dist/components/zonos-v-stack2.js +2 -2
  102. package/dist/components/zonosStore.js +1 -0
  103. package/dist/esm/{cart-6448e883.js → cart-cc593c2b.js} +255 -5
  104. package/dist/esm/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  105. package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
  106. package/dist/esm/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/{submitGtag-b7d369cd.js → submitGtag-e50f903f.js} +2 -2
  109. package/dist/esm/zonos-address_8.entry.js +22 -11
  110. package/dist/esm/zonos-badge_2.entry.js +4 -4
  111. package/dist/esm/zonos-banner.entry.js +2 -2
  112. package/dist/esm/zonos-button_3.entry.js +22 -11
  113. package/dist/esm/zonos-card_2.entry.js +7 -7
  114. package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_11.entry.js} +112 -7
  115. package/dist/esm/zonos-checkout.entry.js +34 -8
  116. package/dist/esm/zonos-component.entry.js +2 -2
  117. package/dist/esm/zonos-controller.entry.js +6 -6
  118. package/dist/esm/zonos-country-flag.entry.js +5 -5
  119. package/dist/esm/zonos-country-select_3.entry.js +11 -11
  120. package/dist/esm/zonos-elements.js +3 -3
  121. package/dist/esm/zonos-hello-dialog.entry.js +8 -8
  122. package/dist/esm/zonos-hello.entry.js +5 -5
  123. package/dist/esm/zonos-input.entry.js +7 -7
  124. package/dist/esm/zonos-link.entry.js +1 -1
  125. package/dist/esm/zonos-logo.entry.js +4 -4
  126. package/dist/esm/zonos-notification.entry.js +2 -2
  127. package/dist/esm/zonos-payment.entry.js +6 -6
  128. package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
  129. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  130. package/dist/esm/zonos-text.entry.js +2 -2
  131. package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
  132. package/dist/esm-es5/cart-cc593c2b.js +1 -0
  133. package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  134. package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
  135. package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  136. package/dist/esm-es5/loader.js +1 -1
  137. package/dist/esm-es5/{submitGtag-b7d369cd.js → submitGtag-e50f903f.js} +1 -1
  138. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  139. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  140. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  141. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  142. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  143. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
  144. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  145. package/dist/esm-es5/zonos-component.entry.js +1 -1
  146. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  147. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  148. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  149. package/dist/esm-es5/zonos-elements.js +1 -1
  150. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  151. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  152. package/dist/esm-es5/zonos-input.entry.js +1 -1
  153. package/dist/esm-es5/zonos-link.entry.js +1 -1
  154. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  155. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  156. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  157. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  158. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  159. package/dist/esm-es5/zonos-text.entry.js +1 -1
  160. package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
  161. package/dist/scripts/loadZonos.js +1 -1
  162. package/dist/scripts/zonos.js +1 -1
  163. package/dist/scripts/zonosBase.js +1 -1
  164. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +11 -1
  165. package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
  166. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
  167. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
  168. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  169. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  170. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  171. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  172. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  173. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  174. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  175. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  176. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  177. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  178. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  179. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  180. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  181. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  182. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  183. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  184. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  185. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  186. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  187. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  188. package/dist/types/components/store/translationStore.d.ts +1 -1
  189. package/dist/types/components/store/zonosStore.d.ts +4 -0
  190. package/dist/types/components.d.ts +142 -5
  191. package/dist/types/scripts/zonosBase.d.ts +15 -1
  192. package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
  193. package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  194. package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
  195. package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
  196. package/dist/zonos-elements/{p-d7acc81c.entry.js → p-020a9b86.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-6ea746b9.entry.js → p-04030a48.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-dbee6587.entry.js → p-0e892292.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-7f48fafe.entry.js → p-0fac99e7.entry.js} +1 -1
  201. package/dist/zonos-elements/p-1795c760.system.entry.js +1 -0
  202. package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
  203. package/dist/zonos-elements/{p-c1f4bb4a.entry.js → p-24ac1c6f.entry.js} +1 -1
  204. package/dist/zonos-elements/p-26a60a6e.entry.js +1 -0
  205. package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
  209. package/dist/zonos-elements/p-32744531.entry.js +1 -0
  210. package/dist/zonos-elements/{p-58f8cee7.system.entry.js → p-35ac375a.system.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-e0706108.system.entry.js → p-3bc88c3c.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-3e26d7b3.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-61100d2e.system.entry.js → p-4caaaaeb.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
  216. package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-3be2e469.entry.js → p-5e783394.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
  219. package/dist/zonos-elements/{p-beca252d.entry.js → p-6366e7e3.entry.js} +1 -1
  220. package/dist/zonos-elements/p-693b9985.js +1 -0
  221. package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-0759a84d.system.entry.js → p-7c8ee4b9.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-345503b7.entry.js → p-80ea85b8.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
  227. package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
  228. package/dist/zonos-elements/p-8da16d53.system.js +1 -0
  229. package/dist/zonos-elements/p-96b8c9ba.system.entry.js +1 -0
  230. package/dist/zonos-elements/{p-70c35519.system.entry.js → p-98a0b694.system.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-fd49d864.entry.js → p-9aab3ad7.entry.js} +1 -1
  232. package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-83fecb2a.entry.js → p-9e9c318b.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-0ee61fba.system.entry.js → p-b98cdf39.system.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-ff403840.entry.js → p-c20e5430.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
  239. package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-d0bc8902.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
  241. package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +1 -0
  242. package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
  243. package/dist/zonos-elements/p-dd0fd351.entry.js +1 -0
  244. package/dist/zonos-elements/p-e015cb0e.js +1 -0
  245. package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
  246. package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-e13bfbda.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-2fc561ac.system.entry.js → p-e1fbd05d.system.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-7cc730b0.js → p-e553dd19.js} +1 -1
  249. package/dist/zonos-elements/p-e6fa0ebc.system.js +1 -0
  250. package/dist/zonos-elements/{p-c64eefdd.system.entry.js → p-f6546bf4.system.entry.js} +1 -1
  251. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  252. package/dist/zonos-elements/zonos-elements.js +1 -1
  253. package/package.json +2 -2
  254. package/dist/esm-es5/cart-6448e883.js +0 -1
  255. package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
  256. package/dist/zonos-elements/p-154aaf95.system.js +0 -1
  257. package/dist/zonos-elements/p-47c75f81.system.entry.js +0 -1
  258. package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
  259. package/dist/zonos-elements/p-7b19cd96.entry.js +0 -1
  260. package/dist/zonos-elements/p-9c575a18.system.entry.js +0 -1
  261. package/dist/zonos-elements/p-aaf1e517.system.js +0 -1
  262. package/dist/zonos-elements/p-aff5f4ca.js +0 -1
  263. package/dist/zonos-elements/p-ca621143.entry.js +0 -1
  264. package/dist/zonos-elements/p-e3335228.entry.js +0 -1
  265. package/dist/zonos-elements/p-ef9cbb66.system.js +0 -1
  266. package/dist/zonos-elements/p-f1962041.js +0 -1
@@ -138,7 +138,7 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
138
138
  }
139
139
  render() {
140
140
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
141
- return (h(Host, { key: 'f45a7bbe9d6b5ffac15671a862b3ad4f2eb4a87b', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'a9119e6e0c4e5c81a7d17ebe4d6bec925404a3dd', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '7dc12043c6e75ebabd646490c390bafdc2cd4a1d', class: "zonos--address-component" })));
141
+ return (h(Host, { key: '77cf6085adb67da95283000b857a9252215c71cd', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '30aff37f04ef04ce4c062d52c78286b362469894', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '599e73e5d3f88cba12a7fc72abc3e575eb3eb777', class: "zonos--address-component" })));
142
142
  }
143
143
  get el() { return this; }
144
144
  static get watchers() { return {
@@ -33,7 +33,7 @@ const styles = (props) => {
33
33
  }, {});
34
34
  };
35
35
 
36
- const zonosButtonCss = ":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-inline-flexbox;display:inline-flex;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--color, var(--zonos-elements-gray-1200));margin:1px;}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--zonos-elements-gray-0));color:var(--color, var(--zonos-elements-gray-1200));outline:1px solid var(--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--zonos-elements-gray-500);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";
36
+ const zonosButtonCss = ":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-inline-flexbox;display:inline-flex;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--color, var(--zonos-elements-gray-1200));margin:1px;}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--zonos-elements-gray-0));color:var(--color, var(--zonos-elements-gray-1200));outline:1px solid var(--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--zonos-elements-gray-500);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";
37
37
  const ZonosButtonStyle0 = zonosButtonCss;
38
38
 
39
39
  const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends HTMLElement {
@@ -47,6 +47,7 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
47
47
  this.handleSlotChange = () => {
48
48
  this.hasContent = true;
49
49
  };
50
+ this.getColorVarProperty = (color) => color.replace('var(', '').replace(')', '');
50
51
  this.buttonColor = undefined;
51
52
  this.backgroundColor = undefined;
52
53
  this.borderStyle = undefined;
@@ -56,6 +57,7 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
56
57
  this.size = 'sm';
57
58
  this.variant = 'standard';
58
59
  this.noBackground = false;
60
+ this.withBoxShadow = false;
59
61
  this.noPaddingLeft = false;
60
62
  this.noPaddingRight = false;
61
63
  this.loading = false;
@@ -85,15 +87,22 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
85
87
  * So need to re-assign the variant prop with the default value if the value is `undefined` here.
86
88
  */
87
89
  const variant = this.variant || 'standard';
90
+ // use the variable if it's a color variable, otherwise use the color
91
+ const backgroundColor = this.backgroundColor && isColorVariable(this.backgroundColor)
92
+ ? `var(--zonos-elements-${this.backgroundColor})`
93
+ : this.backgroundColor;
88
94
  // use override background if it exists, otherwise use color from setting
89
- const overrideBackground = this.backgroundColor || zonosStore.appearance.colorSecondary;
95
+ const overrideBackground = backgroundColor || zonosStore.appearance.colorSecondary;
90
96
  // only set theme for button to change text color if variant is standard and override background is set
91
97
  const buttonTheme = variant === 'standard' ? getButtonTheme(overrideBackground) : undefined;
92
98
  const borderStyle = getBorderRadius({
93
99
  overrideBorderStyle: this.borderStyle,
94
100
  });
95
- const backgroundActualColor = isColorVariable(overrideBackground) && overrideBackground
96
- ? window.getComputedStyle(this.ele).getPropertyValue(overrideBackground)
101
+ const backgroundActualColor = overrideBackground &&
102
+ isColorVariable(this.getColorVarProperty(overrideBackground))
103
+ ? window
104
+ .getComputedStyle(this.ele)
105
+ .getPropertyValue(this.getColorVarProperty(overrideBackground))
97
106
  : overrideBackground;
98
107
  // use the variable if it's a color variable, otherwise use the color
99
108
  const color = this.buttonColor && isColorVariable(this.buttonColor)
@@ -108,32 +117,34 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
108
117
  const spinnerColor = backgroundActualColor && isDarkColor(backgroundActualColor)
109
118
  ? 'white'
110
119
  : 'black';
111
- return (h(Host, { key: 'f5fd039f9ceeacae2448a09228bacc1bd6476be7', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
120
+ return (h(Host, { key: '6e361b1a80fd43a72a99a8201ca5d7cb86404656', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
112
121
  '--background-color': overrideBackground,
113
122
  '--border-radius': borderStyle,
114
123
  '--color': contrastColor,
115
124
  '--font-family': zonosStoreFontFamily(),
116
- }) }, h("button", { key: 'bcd3c7bf52464dd1e7485cdac6b0e3defbf63af3', class: classes([
125
+ }) }, h("button", { key: 'fd4335b2d9bfe74b509f1355fa620dc4c53f58c6', class: classes([
117
126
  this.hasIcon && 'has-icon',
118
127
  this.hasContent && 'has-content',
119
128
  this.noBackground && 'no-background',
120
129
  this.noPaddingLeft && 'no-padding-left',
121
130
  this.noPaddingRight && 'no-padding-right',
122
131
  this.iconRight && 'icon-right',
132
+ this.withBoxShadow && 'with-box-shadow',
123
133
  variant,
124
134
  this.size,
125
135
  // only override background if variant is set to standard
126
136
  overrideBackground &&
127
137
  variant === 'standard' &&
128
138
  'override-background',
129
- ]), disabled: disabled }, this.loading && (h("div", { key: 'ea73d8c4b4973f3a8ed6e5b85c2236c0f20b4c6f', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'cdbe444e0aee0e64facd757a1b5ebd74208359e0', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'e7a46cced38d7916873e5dea8aff4c33e137cdf6', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
139
+ ]), disabled: disabled }, this.loading && (h("div", { key: '7b37a1d30604de0d9e1f5d07bf6034724dcd8875', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'e4e3cbda9ae02c2ac9a7c17767bda93076ea67ad', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'e9b7287f2c4d9143f04103fe43d3f4dfd669341e', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
130
140
  }
141
+ static get delegatesFocus() { return true; }
131
142
  get ele() { return this; }
132
143
  static get watchers() { return {
133
144
  "icon": ["iconChangeHandler"]
134
145
  }; }
135
146
  static get style() { return ZonosButtonStyle0; }
136
- }, [1, "zonos-button", {
147
+ }, [17, "zonos-button", {
137
148
  "buttonColor": [1, "button-color"],
138
149
  "backgroundColor": [1, "background-color"],
139
150
  "borderStyle": [1, "border-style"],
@@ -143,6 +154,7 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
143
154
  "size": [1],
144
155
  "variant": [1],
145
156
  "noBackground": [4, "no-background"],
157
+ "withBoxShadow": [4, "with-box-shadow"],
146
158
  "noPaddingLeft": [4, "no-padding-left"],
147
159
  "noPaddingRight": [4, "no-padding-right"],
148
160
  "loading": [4],
@@ -4,27 +4,28 @@ import { a as translate } from './translationStore.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore.js';
5
5
  import { t as trackConversionEvent } from './trackConversionEvent.js';
6
6
  import { i as isCheckoutMobile } from './isCheckoutMobile.js';
7
- import { c as createCustomEvent, s as sendErrorLog, d as defineCustomElement$n } from './zonos-checkout-finish2.js';
7
+ import { c as createCustomEvent, s as sendErrorLog, d as defineCustomElement$o } from './zonos-checkout-finish2.js';
8
8
  import { c as classes } from './classes.js';
9
9
  import { g as getBorderRadius } from './getBorderRadius.js';
10
10
  import { i as isDarkColor } from './isDarkColor.js';
11
11
  import { s as submitGtag } from './submitGtag.js';
12
- import { R as RemoveIcon, d as defineCustomElement$w } from './zonos-address-update-dialog2.js';
13
- import { d as defineCustomElement$z } from './zonos-address2.js';
14
- import { d as defineCustomElement$y } from './zonos-address-display2.js';
15
- import { d as defineCustomElement$x } from './zonos-address-form2.js';
16
- import { d as defineCustomElement$v } from './zonos-badge2.js';
17
- import { d as defineCustomElement$u } from './zonos-banner2.js';
18
- import { d as defineCustomElement$t } from './zonos-button2.js';
19
- import { d as defineCustomElement$s } from './zonos-card2.js';
20
- import { d as defineCustomElement$r } from './zonos-cart-items2.js';
21
- import { d as defineCustomElement$q } from './zonos-cart-restricted-items2.js';
22
- import { d as defineCustomElement$p } from './zonos-cart-subtotal2.js';
23
- import { d as defineCustomElement$o } from './zonos-checkbox2.js';
24
- import { d as defineCustomElement$m } from './zonos-checkout-footer2.js';
25
- import { d as defineCustomElement$l } from './zonos-checkout-payment2.js';
26
- import { d as defineCustomElement$k } from './zonos-checkout-progress-tabs2.js';
27
- import { d as defineCustomElement$j } from './zonos-collapse2.js';
12
+ import { R as RemoveIcon, d as defineCustomElement$x } from './zonos-address-update-dialog2.js';
13
+ import { d as defineCustomElement$A } from './zonos-address2.js';
14
+ import { d as defineCustomElement$z } from './zonos-address-display2.js';
15
+ import { d as defineCustomElement$y } from './zonos-address-form2.js';
16
+ import { d as defineCustomElement$w } from './zonos-badge2.js';
17
+ import { d as defineCustomElement$v } from './zonos-banner2.js';
18
+ import { d as defineCustomElement$u } from './zonos-button2.js';
19
+ import { d as defineCustomElement$t } from './zonos-card2.js';
20
+ import { d as defineCustomElement$s } from './zonos-cart-items2.js';
21
+ import { d as defineCustomElement$r } from './zonos-cart-restricted-items2.js';
22
+ import { d as defineCustomElement$q } from './zonos-cart-subtotal2.js';
23
+ import { d as defineCustomElement$p } from './zonos-checkbox2.js';
24
+ import { d as defineCustomElement$n } from './zonos-checkout-footer2.js';
25
+ import { d as defineCustomElement$m } from './zonos-checkout-payment2.js';
26
+ import { d as defineCustomElement$l } from './zonos-checkout-progress-tabs2.js';
27
+ import { d as defineCustomElement$k } from './zonos-collapse2.js';
28
+ import { d as defineCustomElement$j } from './zonos-confirm-dialog2.js';
28
29
  import { d as defineCustomElement$i } from './zonos-country-flag2.js';
29
30
  import { d as defineCustomElement$h } from './zonos-custom-message2.js';
30
31
  import { d as defineCustomElement$g } from './zonos-customer-info2.js';
@@ -369,6 +370,7 @@ const ZonosCheckout$1 = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout ext
369
370
  this.domesticRedirectedBtnSelector = '#zonos--domestic-redirected-checkout-button';
370
371
  this.legacyCheckoutHiddenBtnSelector = '#legacy-checkout-hidden-button';
371
372
  this.isLegacyCheckout = false;
373
+ this.confirmDialogOpen = false;
372
374
  }
373
375
  /**
374
376
  * Init cart info handler event
@@ -377,10 +379,27 @@ const ZonosCheckout$1 = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout ext
377
379
  const cartItems = e.detail;
378
380
  void cartStoreUpdateItems(cartItems);
379
381
  }
382
+ async handleKeyPress(e) {
383
+ if (e.key === 'Escape') {
384
+ void this.closeDialogHandler();
385
+ }
386
+ }
380
387
  /**
381
388
  * Close dialog action
382
389
  */
383
- async closeDialogHandler() {
390
+ async closeDialogHandler(props) {
391
+ var _a, _b;
392
+ if (!this.open) {
393
+ // Do nothing if the checkout is not even open
394
+ return;
395
+ }
396
+ // Only proceed when user select confirmed.
397
+ if (!(props === null || props === void 0 ? void 0 : props.confirmed)) {
398
+ this.confirmDialogOpen = true;
399
+ return;
400
+ }
401
+ // Close the confirm dialog
402
+ this.confirmDialogOpen = false;
384
403
  submitGtag('zonos-checkout-close');
385
404
  this.open = this.forceDialogOpen || false;
386
405
  if (!this.preview && cartStore.step === 'finish') {
@@ -391,6 +410,10 @@ const ZonosCheckout$1 = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout ext
391
410
  cartStore.step = 'customer-info';
392
411
  // reset the tab item, so that user needs to click on Continue button to re-quote the landed cost if needed.
393
412
  cartStoreResetTabItems();
413
+ /**
414
+ * Trigger callback when the checkout is closed
415
+ */
416
+ (_b = (_a = zonosStore.checkoutSettings).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
394
417
  }
395
418
  async buildCartAndInit() {
396
419
  // if tempCartUUID is provided, use it instead of buildCartDetail
@@ -795,7 +818,11 @@ const ZonosCheckout$1 = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout ext
795
818
  hasFooter && 'has-footer',
796
819
  this.preview && 'preview',
797
820
  this.isMobile && 'mobile',
798
- ]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent()))));
821
+ ]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-confirm-dialog", { dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
822
+ this.confirmDialogOpen = false;
823
+ },
824
+ // Mark user selected confirm to close the dialog
825
+ onConfirmClicked: () => this.closeDialogHandler({ confirmed: true }) })));
799
826
  }
800
827
  static get assetsDirs() { return ["assets"]; }
801
828
  static get watchers() { return {
@@ -821,10 +848,11 @@ const ZonosCheckout$1 = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout ext
821
848
  "domesticRedirectedBtnSelector": [32],
822
849
  "legacyCheckoutHiddenBtnSelector": [32],
823
850
  "isLegacyCheckout": [32],
851
+ "confirmDialogOpen": [32],
824
852
  "closeDialogHandler": [64],
825
853
  "init": [64],
826
854
  "setToFinishStep": [64]
827
- }, [[16, "zonos--init-cart-info", "initCartInfoHandler"], [9, "resize", "handleWindowResize"]], {
855
+ }, [[16, "zonos--init-cart-info", "initCartInfoHandler"], [4, "keydown", "handleKeyPress"], [9, "resize", "handleWindowResize"]], {
828
856
  "appearanceSettingsOverride": ["appearanceSettingsOverrideChanged", "handleAppearanceSettingsOverrideChange"],
829
857
  "mobile": ["handleMobileChange"]
830
858
  }]);
@@ -832,7 +860,7 @@ function defineCustomElement$1() {
832
860
  if (typeof customElements === "undefined") {
833
861
  return;
834
862
  }
835
- const components = ["zonos-checkout", "zonos-address", "zonos-address-display", "zonos-address-form", "zonos-address-update-dialog", "zonos-badge", "zonos-banner", "zonos-button", "zonos-card", "zonos-cart-items", "zonos-cart-restricted-items", "zonos-cart-subtotal", "zonos-checkbox", "zonos-checkout-finish", "zonos-checkout-footer", "zonos-checkout-payment", "zonos-checkout-progress-tabs", "zonos-collapse", "zonos-country-flag", "zonos-custom-message", "zonos-customer-info", "zonos-dialog", "zonos-icon", "zonos-input", "zonos-language-select", "zonos-link-authentication", "zonos-payment", "zonos-review", "zonos-select-dialog-header", "zonos-shipping", "zonos-shipping-rich-radio", "zonos-spinner", "zonos-text", "zonos-tooltip", "zonos-v-stack"];
863
+ const components = ["zonos-checkout", "zonos-address", "zonos-address-display", "zonos-address-form", "zonos-address-update-dialog", "zonos-badge", "zonos-banner", "zonos-button", "zonos-card", "zonos-cart-items", "zonos-cart-restricted-items", "zonos-cart-subtotal", "zonos-checkbox", "zonos-checkout-finish", "zonos-checkout-footer", "zonos-checkout-payment", "zonos-checkout-progress-tabs", "zonos-collapse", "zonos-confirm-dialog", "zonos-country-flag", "zonos-custom-message", "zonos-customer-info", "zonos-dialog", "zonos-icon", "zonos-input", "zonos-language-select", "zonos-link-authentication", "zonos-payment", "zonos-review", "zonos-select-dialog-header", "zonos-shipping", "zonos-shipping-rich-radio", "zonos-spinner", "zonos-text", "zonos-tooltip", "zonos-v-stack"];
836
864
  components.forEach(tagName => { switch (tagName) {
837
865
  case "zonos-checkout":
838
866
  if (!customElements.get(tagName)) {
@@ -841,85 +869,90 @@ function defineCustomElement$1() {
841
869
  break;
842
870
  case "zonos-address":
843
871
  if (!customElements.get(tagName)) {
844
- defineCustomElement$z();
872
+ defineCustomElement$A();
845
873
  }
846
874
  break;
847
875
  case "zonos-address-display":
848
876
  if (!customElements.get(tagName)) {
849
- defineCustomElement$y();
877
+ defineCustomElement$z();
850
878
  }
851
879
  break;
852
880
  case "zonos-address-form":
853
881
  if (!customElements.get(tagName)) {
854
- defineCustomElement$x();
882
+ defineCustomElement$y();
855
883
  }
856
884
  break;
857
885
  case "zonos-address-update-dialog":
858
886
  if (!customElements.get(tagName)) {
859
- defineCustomElement$w();
887
+ defineCustomElement$x();
860
888
  }
861
889
  break;
862
890
  case "zonos-badge":
863
891
  if (!customElements.get(tagName)) {
864
- defineCustomElement$v();
892
+ defineCustomElement$w();
865
893
  }
866
894
  break;
867
895
  case "zonos-banner":
868
896
  if (!customElements.get(tagName)) {
869
- defineCustomElement$u();
897
+ defineCustomElement$v();
870
898
  }
871
899
  break;
872
900
  case "zonos-button":
873
901
  if (!customElements.get(tagName)) {
874
- defineCustomElement$t();
902
+ defineCustomElement$u();
875
903
  }
876
904
  break;
877
905
  case "zonos-card":
878
906
  if (!customElements.get(tagName)) {
879
- defineCustomElement$s();
907
+ defineCustomElement$t();
880
908
  }
881
909
  break;
882
910
  case "zonos-cart-items":
883
911
  if (!customElements.get(tagName)) {
884
- defineCustomElement$r();
912
+ defineCustomElement$s();
885
913
  }
886
914
  break;
887
915
  case "zonos-cart-restricted-items":
888
916
  if (!customElements.get(tagName)) {
889
- defineCustomElement$q();
917
+ defineCustomElement$r();
890
918
  }
891
919
  break;
892
920
  case "zonos-cart-subtotal":
893
921
  if (!customElements.get(tagName)) {
894
- defineCustomElement$p();
922
+ defineCustomElement$q();
895
923
  }
896
924
  break;
897
925
  case "zonos-checkbox":
898
926
  if (!customElements.get(tagName)) {
899
- defineCustomElement$o();
927
+ defineCustomElement$p();
900
928
  }
901
929
  break;
902
930
  case "zonos-checkout-finish":
903
931
  if (!customElements.get(tagName)) {
904
- defineCustomElement$n();
932
+ defineCustomElement$o();
905
933
  }
906
934
  break;
907
935
  case "zonos-checkout-footer":
908
936
  if (!customElements.get(tagName)) {
909
- defineCustomElement$m();
937
+ defineCustomElement$n();
910
938
  }
911
939
  break;
912
940
  case "zonos-checkout-payment":
913
941
  if (!customElements.get(tagName)) {
914
- defineCustomElement$l();
942
+ defineCustomElement$m();
915
943
  }
916
944
  break;
917
945
  case "zonos-checkout-progress-tabs":
918
946
  if (!customElements.get(tagName)) {
919
- defineCustomElement$k();
947
+ defineCustomElement$l();
920
948
  }
921
949
  break;
922
950
  case "zonos-collapse":
951
+ if (!customElements.get(tagName)) {
952
+ defineCustomElement$k();
953
+ }
954
+ break;
955
+ case "zonos-confirm-dialog":
923
956
  if (!customElements.get(tagName)) {
924
957
  defineCustomElement$j();
925
958
  }
@@ -20,7 +20,7 @@ const ZonosComponent$1 = /*@__PURE__*/ proxyCustomElement(class ZonosComponent e
20
20
  return format(this.first, this.middle, this.last);
21
21
  }
22
22
  render() {
23
- return h("div", { key: '589c084e9acc84525aa5db6036d13741ed656e26' }, "Hello, World! I'm ", this.getText());
23
+ return h("div", { key: 'b51f2edddb50f8f6a868da28c73218fe6955d2e5' }, "Hello, World! I'm ", this.getText());
24
24
  }
25
25
  static get style() { return ZonosComponentStyle0; }
26
26
  }, [1, "zonos-component", {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ZonosConfirmDialog extends Components.ZonosConfirmDialog, HTMLElement {}
4
+ export const ZonosConfirmDialog: {
5
+ prototype: ZonosConfirmDialog;
6
+ new (): ZonosConfirmDialog;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { Z as ZonosConfirmDialog$1, d as defineCustomElement$1 } from './zonos-confirm-dialog2.js';
2
+
3
+ const ZonosConfirmDialog = ZonosConfirmDialog$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { ZonosConfirmDialog, defineCustomElement };
@@ -0,0 +1,161 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { a as translate } from './translationStore.js';
3
+ import { g as getZonosStoreTheme, a as zonosStoreFontFamily, z as zonosStore } from './zonosStore.js';
4
+ import { c as classes } from './classes.js';
5
+ import { g as getBorderRadius } from './getBorderRadius.js';
6
+ import { d as defineCustomElement$4 } from './zonos-button2.js';
7
+ import { d as defineCustomElement$3 } from './zonos-icon2.js';
8
+ import { d as defineCustomElement$2 } from './zonos-spinner2.js';
9
+ import { d as defineCustomElement$1 } from './zonos-text2.js';
10
+
11
+ const ExclamationMarkDuotoneIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">
12
+ <path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-400)"></path>
13
+ <path d="M12.75 9a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V9Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>
14
+ </svg>`;
15
+
16
+ const HelpDuotoneIcon = `<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">
17
+ <path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-400)"></path>
18
+ <path d="M10.25 10.25a1.75 1.75 0 1 1 2.431 1.613c-.616.26-1.431.885-1.431 1.887a.75.75 0 0 0 1.5 0c0-.053.02-.128.108-.228.092-.104.236-.205.408-.278A3.25 3.25 0 1 0 8.75 10.25a.75.75 0 0 0 1.5 0Zm2.5 5.75a.75.75 0 0 0-1.5 0v.25a.75.75 0 0 0 1.5 0V16Z" fill="currentColor"></path>
19
+ </svg>`;
20
+
21
+ const WarningDuotoneIcon = `<svg color="var(--zonos-elements-orange-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">
22
+ <path d="M14.46 5.492c-1.014-2.027-3.906-2.027-4.92 0L4.276 16.02c-.914 1.83.416 3.98 2.46 3.98h10.528c2.044 0 3.374-2.151 2.46-3.98L14.46 5.492Z" data-is-secondary-color="true" fill="var(--zonos-elements-orange-400)"></path>
23
+ <path d="M12.75 10a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V10Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>
24
+ </svg>`;
25
+
26
+ const zonosConfirmDialogCss = ":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--backdrop,:host .zonos--confirm-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:opacity 0.3s, visibility 0.3s;transition:opacity 0.3s, visibility 0.3s}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--confirm-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color)}:host .zonos--confirm-dialog{position:relative;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;width:350px;border-radius:var(--border-radius, 10px);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;gap:24px}:host .icon-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:40px;width:40px;border-radius:50%;background:var(--zonos-elements-blue-100)}:host .warn .icon-wrapper{background:var(--zonos-elements-orange-100)}:host .danger .icon-wrapper{background:var(--zonos-elements-red-100)}:host .footer{display:-ms-flexbox;display:flex;width:100%;gap:8px}:host .footer zonos-button{-ms-flex:1;flex:1}:host .content{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .content zonos-text{text-align:center}:host(.open) .zonos--confirm-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:10003;opacity:0.65}:host(.open) .zonos--confirm-layout{opacity:1;z-index:10004;-webkit-transform:scale(1);transform:scale(1)}";
27
+ const ZonosConfirmDialogStyle0 = zonosConfirmDialogCss;
28
+
29
+ const ZonosConfirmDialog = /*@__PURE__*/ proxyCustomElement(class ZonosConfirmDialog extends HTMLElement {
30
+ constructor() {
31
+ super();
32
+ this.__registerHost();
33
+ this.__attachShadow();
34
+ this.confirmClicked = createEvent(this, "confirmClicked", 7);
35
+ this.cancelClicked = createEvent(this, "cancelClicked", 7);
36
+ this.clickOutsideDialogHandler = (event) => {
37
+ if (event.target === event.currentTarget && !this.noClickOutside) {
38
+ this.closeDialogHandler();
39
+ }
40
+ };
41
+ this.dialogTitle = translate('Are you sure?');
42
+ this.dialogIntent = 'info';
43
+ this.dialogSubtitle = '';
44
+ this.submitBtnColor = undefined;
45
+ this.dialogConfirmBtnText = undefined;
46
+ this.dialogCancelBtnText = undefined;
47
+ this.isMobile = false;
48
+ this.dialogOpen = false;
49
+ this.noClickOutside = false;
50
+ }
51
+ handleKeyDown(ev) {
52
+ if (ev.key === 'Escape') {
53
+ this.closeDialogHandler();
54
+ }
55
+ }
56
+ focusDialog() {
57
+ if (this.dialogOpen) {
58
+ setTimeout(() => {
59
+ var _a, _b;
60
+ // Focus on a non tabable element (tabIndex=-1), so we will be able to tab to other tabable elements
61
+ (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.zonos--backdrop')) === null || _b === void 0 ? void 0 : _b.focus();
62
+ }, 100);
63
+ }
64
+ }
65
+ confirmDialogHandler() {
66
+ // Only do the action if the dialog is open
67
+ if (!this.dialogOpen) {
68
+ return;
69
+ }
70
+ // Emit confirm event
71
+ this.confirmClicked.emit();
72
+ }
73
+ closeDialogHandler() {
74
+ // Only do the action if the dialog is open
75
+ if (!this.dialogOpen) {
76
+ return;
77
+ }
78
+ // Emit cancel event
79
+ this.cancelClicked.emit();
80
+ }
81
+ renderIcon() {
82
+ switch (this.dialogIntent) {
83
+ case 'info':
84
+ return (h("zonos-icon", { content: HelpDuotoneIcon, iconColor: 'blue-800' }));
85
+ case 'danger':
86
+ return (h("zonos-icon", { content: ExclamationMarkDuotoneIcon, iconColor: 'red-800' }));
87
+ case 'warn':
88
+ return (h("zonos-icon", { content: WarningDuotoneIcon, iconColor: 'orange-800' }));
89
+ }
90
+ }
91
+ getButtonConfirmVariant() {
92
+ switch (this.dialogIntent) {
93
+ case 'warn':
94
+ return 'warning';
95
+ case 'danger':
96
+ return 'danger';
97
+ default:
98
+ return 'primary';
99
+ }
100
+ }
101
+ render() {
102
+ this.focusDialog();
103
+ const borderStyle = getBorderRadius();
104
+ // Get theme for the update dialog, inherit from the theme, no from this component theme
105
+ const theme = getZonosStoreTheme(zonosStore.appearance.theme);
106
+ return (h(Host, { key: '9adab1c77e8087cfbb92a52e66d12f1b1917bf7e', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-theme": theme, style: {
107
+ '--border-radius': borderStyle,
108
+ '--font-family': zonosStoreFontFamily(),
109
+ } }, h("div", { key: 'c5b40120ff7b3c4684eb65fb5ef6f8ffa157f98f', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'c7cf4d2839cb42a064b4303bdefdfe4fed116b2a', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '30256495401f4967371e923055dfe9efed8cb6b7', class: "zonos--confirm-dialog", onBlur: () => {
110
+ this.focusDialog();
111
+ } }, h("div", { key: '6121ab29b80d233f9ca47aaf66725fe91ae6827c', class: "wrapper" }, h("div", { key: '8fbb75eca3ee163b57c60159d5c5374382f3fa33', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '56376add713778af1df087c0f9f4b8d90065caa2', class: "content" }, h("div", { key: '4f31ad7d42127c5350a64b86ae12fde42a350422', class: "title" }, h("zonos-text", { key: '7a5dc82d3f2250c1b3a3403e116736cedcf63f51', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '87b04af2b1984a8cf205b6fa0acf0320f56342e7', class: "subtitle" }, h("zonos-text", { key: '53d0157655b1d8193a0f698e41442b676d9e0ca6', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '4b410f4a4079a25549bef228c3b9a81a64fe20e2', class: "footer" }, h("zonos-button", { key: '5a8ffb99756bd142605c564df381bfb9e72d5d78', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText), h("zonos-button", { key: '61c2b8272202f316ec09441ab64428c557073c9d', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
112
+ }
113
+ static get assetsDirs() { return ["assets"]; }
114
+ get el() { return this; }
115
+ static get style() { return ZonosConfirmDialogStyle0; }
116
+ }, [1, "zonos-confirm-dialog", {
117
+ "dialogTitle": [1, "dialog-title"],
118
+ "dialogIntent": [1, "dialog-intent"],
119
+ "dialogSubtitle": [1, "dialog-subtitle"],
120
+ "submitBtnColor": [1, "submit-btn-color"],
121
+ "dialogConfirmBtnText": [1, "dialog-confirm-btn-text"],
122
+ "dialogCancelBtnText": [1, "dialog-cancel-btn-text"],
123
+ "isMobile": [4, "is-mobile"],
124
+ "dialogOpen": [4, "dialog-open"],
125
+ "noClickOutside": [4, "no-click-outside"]
126
+ }, [[4, "keydown", "handleKeyDown"]]]);
127
+ function defineCustomElement() {
128
+ if (typeof customElements === "undefined") {
129
+ return;
130
+ }
131
+ const components = ["zonos-confirm-dialog", "zonos-button", "zonos-icon", "zonos-spinner", "zonos-text"];
132
+ components.forEach(tagName => { switch (tagName) {
133
+ case "zonos-confirm-dialog":
134
+ if (!customElements.get(tagName)) {
135
+ customElements.define(tagName, ZonosConfirmDialog);
136
+ }
137
+ break;
138
+ case "zonos-button":
139
+ if (!customElements.get(tagName)) {
140
+ defineCustomElement$4();
141
+ }
142
+ break;
143
+ case "zonos-icon":
144
+ if (!customElements.get(tagName)) {
145
+ defineCustomElement$3();
146
+ }
147
+ break;
148
+ case "zonos-spinner":
149
+ if (!customElements.get(tagName)) {
150
+ defineCustomElement$2();
151
+ }
152
+ break;
153
+ case "zonos-text":
154
+ if (!customElements.get(tagName)) {
155
+ defineCustomElement$1();
156
+ }
157
+ break;
158
+ } });
159
+ }
160
+
161
+ export { ZonosConfirmDialog as Z, defineCustomElement as d };
@@ -265,7 +265,7 @@ const ZonosController$1 = /*@__PURE__*/ proxyCustomElement(class ZonosController
265
265
  zonosStore.organizationName = organizationName;
266
266
  }
267
267
  render() {
268
- return h(Host, { key: 'c607814c97ec998ef3e56ccdb28ef0369daf9ff3', class: "zonos--elements" });
268
+ return h(Host, { key: '129317aa410d96319846670a1aaae29490993b19', class: "zonos--elements" });
269
269
  }
270
270
  static get style() { return ZonosControllerStyle0; }
271
271
  }, [1, "zonos-controller", {
@@ -1829,9 +1829,9 @@ const ZonosCountrySelect = /*@__PURE__*/ proxyCustomElement(class ZonosCountrySe
1829
1829
  const filteredCountries = this.inputValue
1830
1830
  ? fuseObject.map(country => country.item)
1831
1831
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
1832
- return (h(Host, { key: '1b37f326e23e3afaba1428cc23add2e5c425f0b9', class: "zonos--elements", style: {
1832
+ return (h(Host, { key: '67675ff9b37f110026ced223509104eb8ad805c0', class: "zonos--elements", style: {
1833
1833
  '--font-family': zonosStoreFontFamily(),
1834
- } }, h("div", { key: '966ab933f1bcd754e64fc43dc2013f6cde0f043b', class: "zonos--country-select" }, h("zonos-v-stack", { key: '77d6412871658e9fc8e59df130d3b95df68c5e0b', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '17d0413090d9637aa17234d19a3549b9828a3a86', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: '08aa6bd77273095d0b1753c6b423a283b638cc69', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'e1e770226aa2ad9c74681d8291797ff676217f09', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
1834
+ } }, h("div", { key: '83d69dde89f0fafadf344ca0be017f43c468f154', class: "zonos--country-select" }, h("zonos-v-stack", { key: '8262345817217ba3f27ecf433ff56712b8018ae7', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '80ef94a9a2b1d7bdd835a9b31b09663f28b0532a', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: 'd3151d1287ee98b697e35f1f755694b250f089a3', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'f98ff12368e49125f7fc2409f84bcbaef2143809', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
1835
1835
  }
1836
1836
  get ele() { return this; }
1837
1837
  static get style() { return ZonosCountrySelectStyle0; }
@@ -31,9 +31,9 @@ const ZonosCustomMessage = /*@__PURE__*/ proxyCustomElement(class ZonosCustomMes
31
31
  }
32
32
  render() {
33
33
  const messageWithLinks = formatStringWithLinks(this.message);
34
- return (h(Host, { key: 'c2cec226eb9236205d0c4b234bb393e4663d982f', class: "zonos--elements", style: {
34
+ return (h(Host, { key: '7d3c45852c97272a3606321dad09c6433dfc664c', class: "zonos--elements", style: {
35
35
  '--font-family': zonosStoreFontFamily(),
36
- } }, this.message && (h("zonos-card", { key: '51814b00b14061891914753a950b6a3dc852c0f0', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '4f7298eb552d9f0e1b6ded333c298df3d4fbbee2', class: "zonos--flex-message" }, h("zonos-icon", { key: '0a1fb171e1365a845e1e0855466058ced6c57f12', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'dd714a4f1fd3e1ebe55586c5c8c6941928eb2862', innerHTML: messageWithLinks }))))));
36
+ } }, this.message && (h("zonos-card", { key: '53b64b2faea9d06fd66365f80efe3b9d26aab5b6', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '2bfc437f100084a1e661bf823e20be72a0ab616d', class: "zonos--flex-message" }, h("zonos-icon", { key: '5c0f5da248ddb25a69a3db46b85e8e0e4d481101', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'aabbcc00b1b50d29a3e6f48938b50c7b64d250dc', innerHTML: messageWithLinks }))))));
37
37
  }
38
38
  static get style() { return ZonosCustomMessageStyle0; }
39
39
  }, [1, "zonos-custom-message", {