@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
@@ -1 +1 @@
1
- (function(){"use strict";const e=(e,t,...o)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...o));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(r=s.contentWindow)||void 0===r?void 0:r.window.console)||window.console;switch(t){case"warn":i.warn(e,...o);break;case"info":i.info(e,...o);break;case"error":i.error(e,...o);break;default:i.groupCollapsed(e,...o),i.trace(),i.groupEnd()}},t=(t,...o)=>{e(t,"error",...o)},o="https://js.stripe.com/v3",n=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&n.test(o.src))return o}return null})();l&&e?console.warn(r):l||(l=(e=>{const n=document.createElement("script");n.src=`${o}`;const r=document.head||document.body;return r?(r.appendChild(n),n):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==l||l.addEventListener("load",(()=>{window.Stripe?s(window.Stripe):i(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{i(new Error("Failed to load Stripe.js"))}))}catch(e){return void i(e)}else s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),n=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:n,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?t:null})()||"https://v1.3.18-alpha.1.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.18-alpha.1",m="https://rsms.me",p="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest=!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.18-alpha.1",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,storeId:i,zonosApiKey:l})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),l?(d.zonosApiKey=l,d.storeId=i,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s},zonosApiKey:l}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:o})=>{if(o){const n=document.querySelectorAll(o),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},y.injectController=({config:o,zonosApiKey:n})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=o.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=o,s.zonosApiKey=n,s.addEventListener("stripeInitEvent",(async o=>{const{detail:n}=o;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((o=>((e,t,o)=>{if(null===e)return null;const n=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(n,o),n})(o,e,t)))})(n.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):t("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const n=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=o,r.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",r.setAttribute("data-lazy","no"),r.onerror=()=>{t(`Failed to load ${r.src}`)},r.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var t,o,n,r,s,i;const l=null===(i=null===(s=null===(r=null===(n=null===(o=null===(t=e.exception)||void 0===t?void 0:t.values)||void 0===o?void 0:o[0])||void 0===n?void 0:n.stacktrace)||void 0===r?void 0:r.frames)||void 0===s?void 0:s[0])||void 0===i?void 0:i.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:()=>.01})},n.appendChild(r)},y.injectScript=({fallBackDomain:o,isModule:n,scriptDomain:r,theRestUrl:s})=>{const i=`${r}/${s}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(o&&d.injectScript({isModule:n,scriptDomain:o,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:o,stylesheetDomain:n,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${n}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(n);s?(o&&s&&d.injectStylesheet({stylesheetDomain:o,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${m}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&!h.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=m,t.appendChild(o);const n=document.createElement("link");n.rel="stylesheet",n.href=`${m}/inter/inter.css`,t.appendChild(n),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var o;e(`[FONT] injecting ${t}`);const n=null===(o=t.match(/family=(.*?):/))||void 0===o?void 0:o[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${p}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=p,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${n} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${n} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=y)})();
1
+ (function(){"use strict";const e=(e,t,...o)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...o));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(r=s.contentWindow)||void 0===r?void 0:r.window.console)||window.console;switch(t){case"warn":i.warn(e,...o);break;case"info":i.info(e,...o);break;case"error":i.error(e,...o);break;default:i.groupCollapsed(e,...o),i.trace(),i.groupEnd()}},t=(t,...o)=>{e(t,"error",...o)},o="https://js.stripe.com/v3",n=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&n.test(o.src))return o}return null})();l&&e?console.warn(r):l||(l=(e=>{const n=document.createElement("script");n.src=`${o}`;const r=document.head||document.body;return r?(r.appendChild(n),n):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==l||l.addEventListener("load",(()=>{window.Stripe?s(window.Stripe):i(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{i(new Error("Failed to load Stripe.js"))}))}catch(e){return void i(e)}else s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),n=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:n,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?t:null})()||"https://v1.3.18-alpha.2.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.18-alpha.2",m="https://rsms.me",p="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest=!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.18-alpha.2",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i,storeId:l,zonosApiKey:c})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),c?(d.zonosApiKey=c,d.storeId=l,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i},zonosApiKey:c}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:o})=>{if(o){const n=document.querySelectorAll(o),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},y.injectController=({config:o,zonosApiKey:n})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=o.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=o,s.zonosApiKey=n,s.addEventListener("stripeInitEvent",(async o=>{const{detail:n}=o;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((o=>((e,t,o)=>{if(null===e)return null;const n=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(n,o),n})(o,e,t)))})(n.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):t("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const n=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=o,r.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",r.setAttribute("data-lazy","no"),r.onerror=()=>{t(`Failed to load ${r.src}`)},r.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var t,o,n,r,s,i;const l=null===(i=null===(s=null===(r=null===(n=null===(o=null===(t=e.exception)||void 0===t?void 0:t.values)||void 0===o?void 0:o[0])||void 0===n?void 0:n.stacktrace)||void 0===r?void 0:r.frames)||void 0===s?void 0:s[0])||void 0===i?void 0:i.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:()=>.01})},n.appendChild(r)},y.injectScript=({fallBackDomain:o,isModule:n,scriptDomain:r,theRestUrl:s})=>{const i=`${r}/${s}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(o&&d.injectScript({isModule:n,scriptDomain:o,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:o,stylesheetDomain:n,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${n}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(n);s?(o&&s&&d.injectStylesheet({stylesheetDomain:o,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${m}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&!h.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=m,t.appendChild(o);const n=document.createElement("link");n.rel="stylesheet",n.href=`${m}/inter/inter.css`,t.appendChild(n),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var o;e(`[FONT] injecting ${t}`);const n=null===(o=t.match(/family=(.*?):/))||void 0===o?void 0:o[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${p}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=p,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${n} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${n} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=y)})();
@@ -1 +1 @@
1
- (function(){"use strict";const e=(e,t,...o)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...o));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(r=s.contentWindow)||void 0===r?void 0:r.window.console)||window.console;switch(t){case"warn":i.warn(e,...o);break;case"info":i.info(e,...o);break;case"error":i.error(e,...o);break;default:i.groupCollapsed(e,...o),i.trace(),i.groupEnd()}},t=(t,...o)=>{e(t,"error",...o)},o="https://js.stripe.com/v3",n=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&n.test(o.src))return o}return null})();l&&e?console.warn(r):l||(l=(e=>{const n=document.createElement("script");n.src=`${o}`;const r=document.head||document.body;return r?(r.appendChild(n),n):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==l||l.addEventListener("load",(()=>{window.Stripe?s(window.Stripe):i(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{i(new Error("Failed to load Stripe.js"))}))}catch(e){return void i(e)}else s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),n=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:n,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?t:null})()||"https://v1.3.18-alpha.1.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.18-alpha.1",m="https://rsms.me",p="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest=!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.18-alpha.1",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,storeId:i,zonosApiKey:l})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),l?(d.zonosApiKey=l,d.storeId=i,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s},zonosApiKey:l}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:o})=>{if(o){const n=document.querySelectorAll(o),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},y.injectController=({config:o,zonosApiKey:n})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=o.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=o,s.zonosApiKey=n,s.addEventListener("stripeInitEvent",(async o=>{const{detail:n}=o;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((o=>((e,t,o)=>{if(null===e)return null;const n=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(n,o),n})(o,e,t)))})(n.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):t("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const n=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=o,r.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",r.setAttribute("data-lazy","no"),r.onerror=()=>{t(`Failed to load ${r.src}`)},r.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var t,o,n,r,s,i;const l=null===(i=null===(s=null===(r=null===(n=null===(o=null===(t=e.exception)||void 0===t?void 0:t.values)||void 0===o?void 0:o[0])||void 0===n?void 0:n.stacktrace)||void 0===r?void 0:r.frames)||void 0===s?void 0:s[0])||void 0===i?void 0:i.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:()=>.01})},n.appendChild(r)},y.injectScript=({fallBackDomain:o,isModule:n,scriptDomain:r,theRestUrl:s})=>{const i=`${r}/${s}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(o&&d.injectScript({isModule:n,scriptDomain:o,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:o,stylesheetDomain:n,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${n}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(n);s?(o&&s&&d.injectStylesheet({stylesheetDomain:o,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${m}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&!h.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=m,t.appendChild(o);const n=document.createElement("link");n.rel="stylesheet",n.href=`${m}/inter/inter.css`,t.appendChild(n),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var o;e(`[FONT] injecting ${t}`);const n=null===(o=t.match(/family=(.*?):/))||void 0===o?void 0:o[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${p}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=p,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${n} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${n} font injected!`)},exports.Zonos=y})();
1
+ (function(){"use strict";const e=(e,t,...o)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...o));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(r=s.contentWindow)||void 0===r?void 0:r.window.console)||window.console;switch(t){case"warn":i.warn(e,...o);break;case"info":i.info(e,...o);break;case"error":i.error(e,...o);break;default:i.groupCollapsed(e,...o),i.trace(),i.groupEnd()}},t=(t,...o)=>{e(t,"error",...o)},o="https://js.stripe.com/v3",n=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&n.test(o.src))return o}return null})();l&&e?console.warn(r):l||(l=(e=>{const n=document.createElement("script");n.src=`${o}`;const r=document.head||document.body;return r?(r.appendChild(n),n):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==l||l.addEventListener("load",(()=>{window.Stripe?s(window.Stripe):i(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{i(new Error("Failed to load Stripe.js"))}))}catch(e){return void i(e)}else s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),n=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:n,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?t:null})()||"https://v1.3.18-alpha.2.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.18-alpha.2",m="https://rsms.me",p="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest=!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.18-alpha.2",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i,storeId:l,zonosApiKey:c})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),c?(d.zonosApiKey=c,d.storeId=l,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i},zonosApiKey:c}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:o})=>{if(o){const n=document.querySelectorAll(o),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},y.injectController=({config:o,zonosApiKey:n})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=o.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=o,s.zonosApiKey=n,s.addEventListener("stripeInitEvent",(async o=>{const{detail:n}=o;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((o=>((e,t,o)=>{if(null===e)return null;const n=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(n,o),n})(o,e,t)))})(n.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):t("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const n=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=o,r.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",r.setAttribute("data-lazy","no"),r.onerror=()=>{t(`Failed to load ${r.src}`)},r.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var t,o,n,r,s,i;const l=null===(i=null===(s=null===(r=null===(n=null===(o=null===(t=e.exception)||void 0===t?void 0:t.values)||void 0===o?void 0:o[0])||void 0===n?void 0:n.stacktrace)||void 0===r?void 0:r.frames)||void 0===s?void 0:s[0])||void 0===i?void 0:i.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:()=>.01})},n.appendChild(r)},y.injectScript=({fallBackDomain:o,isModule:n,scriptDomain:r,theRestUrl:s})=>{const i=`${r}/${s}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(o&&d.injectScript({isModule:n,scriptDomain:o,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:o,stylesheetDomain:n,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${n}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(n);s?(o&&s&&d.injectStylesheet({stylesheetDomain:o,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${m}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&!h.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=m,t.appendChild(o);const n=document.createElement("link");n.rel="stylesheet",n.href=`${m}/inter/inter.css`,t.appendChild(n),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var o;e(`[FONT] injecting ${t}`);const n=null===(o=t.match(/family=(.*?):/))||void 0===o?void 0:o[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${p}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=p,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${n} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${n} font injected!`)},exports.Zonos=y})();
@@ -55,14 +55,24 @@ export declare class ZonosCheckout {
55
55
  domesticRedirectedBtnSelector: string;
56
56
  legacyCheckoutHiddenBtnSelector: string;
57
57
  isLegacyCheckout: boolean;
58
+ /**
59
+ * Confirm dialog open state
60
+ */
61
+ confirmDialogOpen: boolean;
58
62
  /**
59
63
  * Init cart info handler event
60
64
  */
61
65
  initCartInfoHandler(e: CustomEvent<CartItem[]>): Promise<void>;
66
+ handleKeyPress(e: KeyboardEvent): Promise<void>;
62
67
  /**
63
68
  * Close dialog action
64
69
  */
65
- closeDialogHandler(): Promise<void>;
70
+ closeDialogHandler(props?: {
71
+ /**
72
+ * @param confirmed - clicked confirmed on the confirm dialog to close the checkout
73
+ */
74
+ confirmed: boolean;
75
+ }): Promise<void>;
66
76
  private applyStripeTheme;
67
77
  private buildCartAndInit;
68
78
  private attachCheckout;
@@ -47,7 +47,8 @@ export declare class ZonosButton {
47
47
  size: 'sm' | 'md' | 'lg';
48
48
  /**
49
49
  * The variance of the button
50
- * **NOTE**: If the button `variant` is set to 'standard', backgroundColor will be disregarded
50
+ * @note If the button `variant` is set to 'standard', backgroundColor will be disregarded
51
+ * @default standard
51
52
  */
52
53
  variant: 'primary' | 'success' | 'subtle' | 'outline' | 'standard' | 'danger' | 'warning';
53
54
  /**
@@ -55,6 +56,10 @@ export declare class ZonosButton {
55
56
  * @default false
56
57
  */
57
58
  noBackground: boolean;
59
+ /**
60
+ * Whether or not the button has a box shadow
61
+ */
62
+ withBoxShadow: boolean;
58
63
  /**
59
64
  * Whether or not the button has a left padding
60
65
  */
@@ -88,6 +93,7 @@ export declare class ZonosButton {
88
93
  * Detect if the button has an content
89
94
  */
90
95
  private handleSlotChange;
96
+ private getColorVarProperty;
91
97
  componentWillLoad(): void;
92
98
  render(): any;
93
99
  }
@@ -0,0 +1,60 @@
1
+ import { type EventEmitter } from '../../../stencil-public-runtime';
2
+ export declare class ZonosConfirmDialog {
3
+ el: HTMLZonosConfirmDialogElement;
4
+ /**
5
+ * Dialog title text
6
+ * @default "Are you sure?"
7
+ */
8
+ dialogTitle: string;
9
+ /**
10
+ * Dialog intent (for icon and button color)
11
+ * @default "info"
12
+ */
13
+ dialogIntent: 'info' | 'danger' | 'warn';
14
+ /**
15
+ * Dialog subtitle text
16
+ * @default "" No subtitle
17
+ */
18
+ dialogSubtitle: string;
19
+ /**
20
+ * Submit button main color
21
+ */
22
+ submitBtnColor?: string;
23
+ /**
24
+ * Confirm button text
25
+ */
26
+ dialogConfirmBtnText: string;
27
+ /**
28
+ * Cancel button text
29
+ */
30
+ dialogCancelBtnText: string;
31
+ /**
32
+ * Event to emit when the "Confirm" button is clicked
33
+ */
34
+ confirmClicked: EventEmitter<void>;
35
+ /**
36
+ * Event to emit when the "Cancel" button is clicked
37
+ */
38
+ cancelClicked: EventEmitter<void>;
39
+ /**
40
+ * Whether or not the dialog is open
41
+ */
42
+ isMobile: boolean;
43
+ /**
44
+ * Whether or not the dialog is open
45
+ */
46
+ dialogOpen: boolean;
47
+ /**
48
+ * Whether or not to close the dialog when clicking outside of it
49
+ * @default false
50
+ */
51
+ noClickOutside: boolean;
52
+ handleKeyDown(ev: KeyboardEvent): void;
53
+ private focusDialog;
54
+ private confirmDialogHandler;
55
+ private closeDialogHandler;
56
+ private clickOutsideDialogHandler;
57
+ private renderIcon;
58
+ private getButtonConfirmVariant;
59
+ render(): any;
60
+ }
@@ -16,9 +16,13 @@ export declare class ZonosDialog {
16
16
  */
17
17
  width: string;
18
18
  /**
19
- * The height of the dialog (max-wdith still 90vh)
19
+ * The height of the dialog (max-width still 90vh)
20
20
  */
21
21
  height?: string;
22
+ /**
23
+ * The min height of the dialog
24
+ */
25
+ minHeight?: string;
22
26
  /**
23
27
  * Whether or not to show the header
24
28
  * @default false
@@ -63,6 +67,7 @@ export declare class ZonosDialog {
63
67
  */
64
68
  closeDialog: EventEmitter<void>;
65
69
  handleWindowResize(): void;
70
+ handleKeyDown(ev: KeyboardEvent): void;
66
71
  private isMobileMode;
67
72
  private closeButtonHandler;
68
73
  private clickOutsideDialogHandler;
@@ -17,6 +17,9 @@ export declare const stringsArabic: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsArabic: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsArabic: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsArabic: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsBase: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsBase: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsBase: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsBase: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsChinese: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsChinese: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsChinese: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsChinese: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsDanish: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsDanish: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsDanish: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsDanish: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsDutch: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsDutch: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsDutch: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsDutch: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsFrench: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsFrench: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsFrench: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsFrench: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsGerman: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsGerman: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsGerman: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsGerman: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsHebrew: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsHebrew: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsHebrew: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsHebrew: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsIndonesian: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsIndonesian: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsIndonesian: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsIndonesian: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };
@@ -17,6 +17,9 @@ export declare const stringsItalian: {
17
17
  'Address line 2': {
18
18
  value: string;
19
19
  };
20
+ 'Are you sure?': {
21
+ value: string;
22
+ };
20
23
  Back: {
21
24
  value: string;
22
25
  };
@@ -35,6 +38,9 @@ export declare const stringsItalian: {
35
38
  City: {
36
39
  value: string;
37
40
  };
41
+ Close: {
42
+ value: string;
43
+ };
38
44
  Contact: {
39
45
  value: string;
40
46
  };
@@ -56,6 +62,9 @@ export declare const stringsItalian: {
56
62
  'Delivery options': {
57
63
  value: string;
58
64
  };
65
+ "Don't close": {
66
+ value: string;
67
+ };
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: string;
61
70
  };
@@ -239,6 +248,9 @@ export declare const stringsItalian: {
239
248
  'What you entered': {
240
249
  value: string;
241
250
  };
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: string;
253
+ };
242
254
  "You're all set!": {
243
255
  value: string;
244
256
  };