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

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 (461) hide show
  1. package/README.md +341 -96
  2. package/dist/cjs/{cart-95209ae8.js → cart-5468dfd1.js} +284 -89
  3. package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
  4. package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
  5. package/dist/cjs/index.cjs.js +624 -0
  6. package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/logError-4e2f2020.js +58 -0
  9. package/dist/cjs/{submitGtag-9d60f3bb.js → submitGtag-127a220f.js} +4 -3
  10. package/dist/cjs/zonos-address_8.cjs.entry.js +30 -18
  11. package/dist/cjs/zonos-badge_2.cjs.entry.js +7 -7
  12. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
  14. package/dist/cjs/zonos-card_2.cjs.entry.js +11 -10
  15. package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +118 -11
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +47 -20
  17. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-controller.cjs.entry.js +29 -24
  19. package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -5
  20. package/dist/cjs/zonos-country-select_3.cjs.entry.js +12 -11
  21. package/dist/cjs/zonos-elements.cjs.js +2 -2
  22. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -8
  23. package/dist/cjs/zonos-hello.cjs.entry.js +14 -13
  24. package/dist/cjs/zonos-input.cjs.entry.js +7 -7
  25. package/dist/cjs/zonos-link.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-payment.cjs.entry.js +8 -7
  29. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
  30. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  31. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  32. package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
  33. package/dist/collection/__mocks__/zonos-url/index.js +1 -0
  34. package/dist/collection/__tests__/build-utils/urlCheckOne.js +1 -1
  35. package/dist/collection/collection-manifest.json +2 -1
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -9
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +45 -8
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +3 -3
  39. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  40. package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
  41. package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
  42. package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
  43. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  44. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  45. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  46. package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  47. package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
  48. package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
  49. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
  50. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
  51. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  52. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  53. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
  54. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
  55. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  56. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  57. package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.js +1 -1
  58. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  59. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  60. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  61. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  62. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  63. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  64. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  65. package/dist/collection/components/main/zonos-controller.js +12 -8
  66. package/dist/collection/components/store/hello/localization.js +12 -2
  67. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  68. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  69. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  70. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  71. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  72. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  73. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  74. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  75. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  76. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  77. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  78. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  79. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  80. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  81. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  82. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  83. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  84. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  85. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  86. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  87. package/dist/collection/components/store/zonosStore.js +1 -0
  88. package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -3
  89. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  90. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  91. package/dist/collection/environment.js +0 -2
  92. package/dist/collection/index.js +1 -0
  93. package/dist/collection/scripts/_extractZonosQaUrl.js +26 -0
  94. package/dist/collection/scripts/_getZonosQaUrl.js +40 -0
  95. package/dist/collection/scripts/{loadStripe.js → _loadStripe.js} +1 -1
  96. package/dist/collection/scripts/{zonosBase.js → _zonosBase.js} +31 -7
  97. package/dist/collection/scripts/index.js +2 -0
  98. package/dist/collection/types/generated/graphql.customer.types.js +1 -0
  99. package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
  100. package/dist/esm/{cart-6448e883.js → cart-63d120e1.js} +257 -60
  101. package/dist/{components/getBorderRadius.js → esm/getBorderRadius-d244b4b1.js} +1 -1
  102. package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
  103. package/dist/esm/index.js +621 -0
  104. package/dist/{components/isDarkColor.js → esm/isDarkColor-39a36e82.js} +1 -1
  105. package/dist/esm/loader.js +3 -3
  106. package/dist/esm/logError-c456c092.js +55 -0
  107. package/dist/esm/{submitGtag-b7d369cd.js → submitGtag-35bb3945.js} +3 -2
  108. package/dist/esm/zonos-address_8.entry.js +28 -16
  109. package/dist/esm/zonos-badge_2.entry.js +7 -7
  110. package/dist/esm/zonos-banner.entry.js +2 -2
  111. package/dist/esm/zonos-button_3.entry.js +22 -11
  112. package/dist/esm/zonos-card_2.entry.js +11 -10
  113. package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_11.entry.js} +118 -12
  114. package/dist/esm/zonos-checkout.entry.js +35 -8
  115. package/dist/esm/zonos-component.entry.js +2 -2
  116. package/dist/esm/zonos-controller.entry.js +12 -7
  117. package/dist/esm/zonos-country-flag.entry.js +6 -5
  118. package/dist/esm/zonos-country-select_3.entry.js +12 -11
  119. package/dist/esm/zonos-elements.js +3 -3
  120. package/dist/esm/zonos-hello-dialog.entry.js +9 -8
  121. package/dist/esm/zonos-hello.entry.js +6 -5
  122. package/dist/esm/zonos-input.entry.js +7 -7
  123. package/dist/esm/zonos-link.entry.js +2 -2
  124. package/dist/esm/zonos-logo.entry.js +4 -4
  125. package/dist/esm/zonos-notification.entry.js +2 -2
  126. package/dist/esm/zonos-payment.entry.js +7 -6
  127. package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
  128. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  129. package/dist/esm/zonos-text.entry.js +2 -2
  130. package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
  131. package/dist/esm-es5/cart-63d120e1.js +1 -0
  132. package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  133. package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
  134. package/dist/esm-es5/index.js +1 -0
  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/logError-c456c092.js +1 -0
  138. package/dist/esm-es5/submitGtag-35bb3945.js +1 -0
  139. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  140. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  141. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  142. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  143. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  144. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
  145. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  146. package/dist/esm-es5/zonos-component.entry.js +1 -1
  147. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  148. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  149. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  150. package/dist/esm-es5/zonos-elements.js +1 -1
  151. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  152. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  153. package/dist/esm-es5/zonos-input.entry.js +1 -1
  154. package/dist/esm-es5/zonos-link.entry.js +1 -1
  155. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  156. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  157. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  158. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  159. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  160. package/dist/esm-es5/zonos-text.entry.js +1 -1
  161. package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
  162. package/dist/scripts/index.d.ts +3908 -0
  163. package/dist/scripts/index.js +1 -0
  164. package/dist/scripts/loadZonos.d.ts +3954 -0
  165. package/dist/scripts/loadZonos.js +1 -1
  166. package/dist/scripts/zonos.js +1 -1
  167. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -7
  168. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +13 -3
  169. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -2
  170. package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
  171. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
  172. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
  173. package/dist/types/components/main/zonos-controller.d.ts +1 -1
  174. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  175. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  176. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  177. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  178. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  179. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  180. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  181. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  182. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  183. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  184. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  185. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  186. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  187. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  188. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  189. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  190. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  191. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  192. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  193. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  194. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  195. package/dist/types/components/store/translationStore.d.ts +1 -1
  196. package/dist/types/components/store/zonosStore.d.ts +5 -1
  197. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -2
  198. package/dist/types/components/utils/styles.d.ts +1 -0
  199. package/dist/types/components.d.ts +164 -19
  200. package/dist/types/index.d.ts +1 -0
  201. package/dist/types/scripts/_extractZonosQaUrl.d.ts +11 -0
  202. package/dist/types/scripts/_getZonosQaUrl.d.ts +4 -0
  203. package/dist/types/scripts/{loadStripe.d.ts → _loadStripe.d.ts} +1 -1
  204. package/dist/types/scripts/{zonosBase.d.ts → _zonosBase.d.ts} +51 -3
  205. package/dist/types/scripts/index.d.ts +2 -0
  206. package/dist/types/types/checkout/CheckoutConfig.d.ts +12 -0
  207. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +9 -0
  208. package/dist/types/types/generated/graphql.customer.types.d.ts +1 -0
  209. package/dist/types/types/generated/graphql.customer.types.ts +3 -0
  210. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -0
  211. package/dist/types/types/generated/graphql.frontend.types.ts +1 -0
  212. package/dist/types/types/global.d.ts +1 -1
  213. package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  214. package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
  215. package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
  216. package/dist/zonos-elements/index.esm.js +1 -0
  217. package/dist/zonos-elements/p-023c764c.system.entry.js +1 -0
  218. package/dist/zonos-elements/p-06b6ce37.system.entry.js +1 -0
  219. package/dist/zonos-elements/p-07c53d83.entry.js +1 -0
  220. package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-fd49d864.entry.js → p-0d5b5bcc.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
  223. package/dist/zonos-elements/p-200b661c.entry.js +1 -0
  224. package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
  228. package/dist/zonos-elements/p-3b66df06.system.entry.js +1 -0
  229. package/dist/zonos-elements/{p-d7acc81c.entry.js → p-3ba8838a.entry.js} +1 -1
  230. package/dist/zonos-elements/p-428c034a.entry.js +1 -0
  231. package/dist/zonos-elements/p-43b2d28d.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-47a42a30.js +1 -0
  233. package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-4f72bfee.system.entry.js} +1 -1
  235. package/dist/zonos-elements/p-4fc1459c.entry.js +1 -0
  236. package/dist/zonos-elements/p-4fca8fd5.system.entry.js +1 -0
  237. package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
  238. package/dist/zonos-elements/{p-83fecb2a.entry.js → p-58fc8ec1.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
  241. package/dist/zonos-elements/p-63db40b9.system.js +1 -0
  242. package/dist/zonos-elements/p-693b9985.js +1 -0
  243. package/dist/zonos-elements/{p-ff403840.entry.js → p-6cb9812b.entry.js} +1 -1
  244. package/dist/zonos-elements/p-6df1fc3a.system.entry.js +1 -0
  245. package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
  246. package/dist/zonos-elements/p-6f6f160d.entry.js +1 -0
  247. package/dist/zonos-elements/p-7c78e340.entry.js +1 -0
  248. package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
  249. package/dist/zonos-elements/p-808fa731.js +1 -0
  250. package/dist/zonos-elements/p-80f174b9.system.js +1 -0
  251. package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
  252. package/dist/zonos-elements/p-85f3d13f.system.js +1 -0
  253. package/dist/zonos-elements/p-8aeb0629.entry.js +1 -0
  254. package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
  255. package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
  256. package/dist/zonos-elements/p-9288fd21.system.entry.js +1 -0
  257. package/dist/zonos-elements/p-98ad4ab3.system.entry.js +1 -0
  258. package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
  260. package/dist/zonos-elements/p-b1567fa3.system.entry.js +1 -0
  261. package/dist/zonos-elements/p-b81562f5.entry.js +1 -0
  262. package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
  263. package/dist/zonos-elements/p-bdfa3705.system.entry.js +1 -0
  264. package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
  265. package/dist/zonos-elements/p-cfae51c1.system.js +1 -0
  266. package/dist/zonos-elements/p-d6eb260c.entry.js +1 -0
  267. package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
  269. package/dist/zonos-elements/p-dc40a60c.entry.js +1 -0
  270. package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-dda78e8e.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-de405d7e.system.entry.js +1 -0
  272. package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
  273. package/dist/zonos-elements/p-eaa335e1.js +1 -0
  274. package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-ed3524ae.system.entry.js} +1 -1
  275. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  276. package/dist/zonos-elements/zonos-elements.js +1 -1
  277. package/package.json +5 -3
  278. package/dist/components/ILanguage.js +0 -24
  279. package/dist/components/classes.js +0 -12
  280. package/dist/components/containsNonLatinChars.js +0 -21
  281. package/dist/components/formatCurrency.js +0 -11
  282. package/dist/components/index.d.ts +0 -33
  283. package/dist/components/index.js +0 -1
  284. package/dist/components/isCheckoutMobile.js +0 -6
  285. package/dist/components/isColorVariable.js +0 -14
  286. package/dist/components/stripe.js +0 -1681
  287. package/dist/components/submitGtag.js +0 -19
  288. package/dist/components/trackConversionEvent.js +0 -37
  289. package/dist/components/translationStore.js +0 -5371
  290. package/dist/components/zonos-address-display.d.ts +0 -11
  291. package/dist/components/zonos-address-display.js +0 -6
  292. package/dist/components/zonos-address-display2.js +0 -64
  293. package/dist/components/zonos-address-form.d.ts +0 -11
  294. package/dist/components/zonos-address-form.js +0 -6
  295. package/dist/components/zonos-address-form2.js +0 -84
  296. package/dist/components/zonos-address-update-dialog.d.ts +0 -11
  297. package/dist/components/zonos-address-update-dialog.js +0 -6
  298. package/dist/components/zonos-address-update-dialog2.js +0 -264
  299. package/dist/components/zonos-address.d.ts +0 -11
  300. package/dist/components/zonos-address.js +0 -6
  301. package/dist/components/zonos-address2.js +0 -176
  302. package/dist/components/zonos-badge.d.ts +0 -11
  303. package/dist/components/zonos-badge.js +0 -6
  304. package/dist/components/zonos-badge2.js +0 -61
  305. package/dist/components/zonos-banner.d.ts +0 -11
  306. package/dist/components/zonos-banner.js +0 -6
  307. package/dist/components/zonos-banner2.js +0 -95
  308. package/dist/components/zonos-button.d.ts +0 -11
  309. package/dist/components/zonos-button.js +0 -6
  310. package/dist/components/zonos-button2.js +0 -174
  311. package/dist/components/zonos-card.d.ts +0 -11
  312. package/dist/components/zonos-card.js +0 -6
  313. package/dist/components/zonos-card2.js +0 -57
  314. package/dist/components/zonos-cart-items.d.ts +0 -11
  315. package/dist/components/zonos-cart-items.js +0 -6
  316. package/dist/components/zonos-cart-items2.js +0 -57
  317. package/dist/components/zonos-cart-restricted-items.d.ts +0 -11
  318. package/dist/components/zonos-cart-restricted-items.js +0 -6
  319. package/dist/components/zonos-cart-restricted-items2.js +0 -135
  320. package/dist/components/zonos-cart-subtotal.d.ts +0 -11
  321. package/dist/components/zonos-cart-subtotal.js +0 -6
  322. package/dist/components/zonos-cart-subtotal2.js +0 -91
  323. package/dist/components/zonos-checkbox.d.ts +0 -11
  324. package/dist/components/zonos-checkbox.js +0 -6
  325. package/dist/components/zonos-checkbox2.js +0 -96
  326. package/dist/components/zonos-checkout-finish.d.ts +0 -11
  327. package/dist/components/zonos-checkout-finish.js +0 -6
  328. package/dist/components/zonos-checkout-finish2.js +0 -246
  329. package/dist/components/zonos-checkout-footer.d.ts +0 -11
  330. package/dist/components/zonos-checkout-footer.js +0 -6
  331. package/dist/components/zonos-checkout-footer2.js +0 -125
  332. package/dist/components/zonos-checkout-payment.d.ts +0 -11
  333. package/dist/components/zonos-checkout-payment.js +0 -6
  334. package/dist/components/zonos-checkout-payment2.js +0 -104
  335. package/dist/components/zonos-checkout-progress-tabs.d.ts +0 -11
  336. package/dist/components/zonos-checkout-progress-tabs.js +0 -6
  337. package/dist/components/zonos-checkout-progress-tabs2.js +0 -138
  338. package/dist/components/zonos-checkout.d.ts +0 -11
  339. package/dist/components/zonos-checkout.js +0 -1018
  340. package/dist/components/zonos-collapse.d.ts +0 -11
  341. package/dist/components/zonos-collapse.js +0 -6
  342. package/dist/components/zonos-collapse2.js +0 -78
  343. package/dist/components/zonos-component.d.ts +0 -11
  344. package/dist/components/zonos-component.js +0 -48
  345. package/dist/components/zonos-controller.d.ts +0 -11
  346. package/dist/components/zonos-controller.js +0 -309
  347. package/dist/components/zonos-country-flag.d.ts +0 -11
  348. package/dist/components/zonos-country-flag.js +0 -6
  349. package/dist/components/zonos-country-flag2.js +0 -54
  350. package/dist/components/zonos-country-select.d.ts +0 -11
  351. package/dist/components/zonos-country-select.js +0 -6
  352. package/dist/components/zonos-country-select2.js +0 -1891
  353. package/dist/components/zonos-custom-message.d.ts +0 -11
  354. package/dist/components/zonos-custom-message.js +0 -6
  355. package/dist/components/zonos-custom-message2.js +0 -72
  356. package/dist/components/zonos-customer-info.d.ts +0 -11
  357. package/dist/components/zonos-customer-info.js +0 -6
  358. package/dist/components/zonos-customer-info2.js +0 -316
  359. package/dist/components/zonos-dialog.d.ts +0 -11
  360. package/dist/components/zonos-dialog.js +0 -6
  361. package/dist/components/zonos-dialog2.js +0 -124
  362. package/dist/components/zonos-hello-dialog-footer.d.ts +0 -11
  363. package/dist/components/zonos-hello-dialog-footer.js +0 -6
  364. package/dist/components/zonos-hello-dialog-footer2.js +0 -83
  365. package/dist/components/zonos-hello-dialog.d.ts +0 -11
  366. package/dist/components/zonos-hello-dialog.js +0 -6
  367. package/dist/components/zonos-hello-dialog2.js +0 -305
  368. package/dist/components/zonos-hello.d.ts +0 -11
  369. package/dist/components/zonos-hello.js +0 -879
  370. package/dist/components/zonos-icon.d.ts +0 -11
  371. package/dist/components/zonos-icon.js +0 -6
  372. package/dist/components/zonos-icon2.js +0 -55
  373. package/dist/components/zonos-input.d.ts +0 -11
  374. package/dist/components/zonos-input.js +0 -6
  375. package/dist/components/zonos-input2.js +0 -78
  376. package/dist/components/zonos-language-select.d.ts +0 -11
  377. package/dist/components/zonos-language-select.js +0 -6
  378. package/dist/components/zonos-language-select2.js +0 -88
  379. package/dist/components/zonos-link-authentication.d.ts +0 -11
  380. package/dist/components/zonos-link-authentication.js +0 -6
  381. package/dist/components/zonos-link-authentication2.js +0 -80
  382. package/dist/components/zonos-link.d.ts +0 -11
  383. package/dist/components/zonos-link.js +0 -43
  384. package/dist/components/zonos-logo.d.ts +0 -11
  385. package/dist/components/zonos-logo.js +0 -49
  386. package/dist/components/zonos-notification.d.ts +0 -11
  387. package/dist/components/zonos-notification.js +0 -6
  388. package/dist/components/zonos-notification2.js +0 -92
  389. package/dist/components/zonos-payment.d.ts +0 -11
  390. package/dist/components/zonos-payment.js +0 -6
  391. package/dist/components/zonos-payment2.js +0 -77
  392. package/dist/components/zonos-review.d.ts +0 -11
  393. package/dist/components/zonos-review.js +0 -6
  394. package/dist/components/zonos-review2.js +0 -89
  395. package/dist/components/zonos-select-dialog-header.d.ts +0 -11
  396. package/dist/components/zonos-select-dialog-header.js +0 -6
  397. package/dist/components/zonos-select-dialog-header2.js +0 -71
  398. package/dist/components/zonos-shipping-rich-radio.d.ts +0 -11
  399. package/dist/components/zonos-shipping-rich-radio.js +0 -6
  400. package/dist/components/zonos-shipping-rich-radio2.js +0 -88
  401. package/dist/components/zonos-shipping.d.ts +0 -11
  402. package/dist/components/zonos-shipping.js +0 -6
  403. package/dist/components/zonos-shipping2.js +0 -159
  404. package/dist/components/zonos-spinner.d.ts +0 -11
  405. package/dist/components/zonos-spinner.js +0 -6
  406. package/dist/components/zonos-spinner2.js +0 -43
  407. package/dist/components/zonos-text.d.ts +0 -11
  408. package/dist/components/zonos-text.js +0 -6
  409. package/dist/components/zonos-text2.js +0 -182
  410. package/dist/components/zonos-tooltip.d.ts +0 -11
  411. package/dist/components/zonos-tooltip.js +0 -6
  412. package/dist/components/zonos-tooltip2.js +0 -48
  413. package/dist/components/zonos-v-stack.d.ts +0 -11
  414. package/dist/components/zonos-v-stack.js +0 -6
  415. package/dist/components/zonos-v-stack2.js +0 -38
  416. package/dist/components/zonosStore.js +0 -2880
  417. package/dist/esm/getBorderRadius-567f1786.js +0 -18
  418. package/dist/esm/isDarkColor-7f62035a.js +0 -1199
  419. package/dist/esm-es5/cart-6448e883.js +0 -1
  420. package/dist/esm-es5/submitGtag-b7d369cd.js +0 -1
  421. package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
  422. package/dist/scripts/checkIfLoadVersionDomain.js +0 -1
  423. package/dist/scripts/extractZonosQaUrl.js +0 -1
  424. package/dist/scripts/getTempCartById.js +0 -1
  425. package/dist/scripts/loadStripe.js +0 -1
  426. package/dist/scripts/stripe.js +0 -1
  427. package/dist/scripts/zonosBase.js +0 -1
  428. package/dist/zonos-elements/p-0759a84d.system.entry.js +0 -1
  429. package/dist/zonos-elements/p-0ee61fba.system.entry.js +0 -1
  430. package/dist/zonos-elements/p-154aaf95.system.js +0 -1
  431. package/dist/zonos-elements/p-2fc561ac.system.entry.js +0 -1
  432. package/dist/zonos-elements/p-345503b7.entry.js +0 -1
  433. package/dist/zonos-elements/p-3be2e469.entry.js +0 -1
  434. package/dist/zonos-elements/p-47c75f81.system.entry.js +0 -1
  435. package/dist/zonos-elements/p-50ea2036.system.js +0 -1
  436. package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
  437. package/dist/zonos-elements/p-58f8cee7.system.entry.js +0 -1
  438. package/dist/zonos-elements/p-61100d2e.system.entry.js +0 -1
  439. package/dist/zonos-elements/p-6ea746b9.entry.js +0 -1
  440. package/dist/zonos-elements/p-70c35519.system.entry.js +0 -1
  441. package/dist/zonos-elements/p-7b19cd96.entry.js +0 -1
  442. package/dist/zonos-elements/p-7cc730b0.js +0 -1
  443. package/dist/zonos-elements/p-7f48fafe.entry.js +0 -1
  444. package/dist/zonos-elements/p-9c575a18.system.entry.js +0 -1
  445. package/dist/zonos-elements/p-aaf1e517.system.js +0 -1
  446. package/dist/zonos-elements/p-aff5f4ca.js +0 -1
  447. package/dist/zonos-elements/p-beca252d.entry.js +0 -1
  448. package/dist/zonos-elements/p-c1f4bb4a.entry.js +0 -1
  449. package/dist/zonos-elements/p-c64eefdd.system.entry.js +0 -1
  450. package/dist/zonos-elements/p-ca621143.entry.js +0 -1
  451. package/dist/zonos-elements/p-dbee6587.entry.js +0 -1
  452. package/dist/zonos-elements/p-e0706108.system.entry.js +0 -1
  453. package/dist/zonos-elements/p-e3335228.entry.js +0 -1
  454. package/dist/zonos-elements/p-ef9cbb66.system.js +0 -1
  455. package/dist/zonos-elements/p-f1962041.js +0 -1
  456. /package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.css +0 -0
  457. /package/dist/collection/scripts/{checkIfLoadVersionDomain.js → _checkIfLoadVersionDomain.js} +0 -0
  458. /package/dist/collection/scripts/{stripe.js → _stripe.js} +0 -0
  459. /package/dist/types/components/common/{component-template/zonos-link → zonos-link}/zonos-link.d.ts +0 -0
  460. /package/dist/types/scripts/{checkIfLoadVersionDomain.d.ts → _checkIfLoadVersionDomain.d.ts} +0 -0
  461. /package/dist/types/scripts/{stripe.d.ts → _stripe.d.ts} +0 -0
@@ -1,14 +1,15 @@
1
- import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-e063389c.js';
2
- import { f as cartStore, E as cartStoreHasOneEligibleItem, t as translate, v as handleFetch, r as stripeStoreReset, k as stripeStore, F as stripeStoreRetrievePayment, l as localizationStore, G as stripeStoreTranslateAddressToLatin, H as cartStoreUpdateSelectedShippingOption, I as cartStoreGetShippingTransitInfo } from './cart-6448e883.js';
1
+ import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-3b46f3c3.js';
2
+ import { d as cartStore, C as cartStoreHasOneEligibleItem, t as translate, r as handleFetch, p as stripeStoreReset, h as stripeStore, D as stripeStoreRetrievePayment, l as localizationStore, E as stripeStoreTranslateAddressToLatin, F as cartStoreUpdateSelectedShippingOption, G as cartStoreGetShippingTransitInfo } from './cart-63d120e1.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { z as zonosStore, g as getZonosStoreTheme } from './zonosStore-33ff08ff.js';
5
- import { t as trackConversionEvent, s as sendErrorLog, a as submitGtag, c as createCustomEvent } from './submitGtag-b7d369cd.js';
6
- import { g as getBorderRadius } from './getBorderRadius-567f1786.js';
4
+ import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-32e33a45.js';
5
+ import { t as trackConversionEvent, s as sendErrorLog, a as submitGtag, c as createCustomEvent } from './submitGtag-35bb3945.js';
6
+ import { g as getBorderRadius } from './getBorderRadius-d244b4b1.js';
7
7
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
8
8
  import { l as languages } from './ILanguage-97790bee.js';
9
- import { t as tinycolor, i as isDarkColor } from './isDarkColor-7f62035a.js';
9
+ import { t as tinycolor, i as isDarkColor } from './isDarkColor-39a36e82.js';
10
10
  import { i as isColorVariable } from './isColorVariable-82457bef.js';
11
11
  import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
12
+ import './logError-c456c092.js';
12
13
 
13
14
  const formatCurrency = ({ amount, currency, showCurrencyText, }) => showCurrencyText
14
15
  ? `${new Intl.NumberFormat('en-US', {
@@ -330,11 +331,11 @@ const ZonosCheckoutFinish = class {
330
331
  // const totalItems = this.order?.items?.reduce((acc, item) => {
331
332
  // return acc + item.quantity;
332
333
  // }, 0);
333
- return (h(Host, { key: '5ff65f7e0c06f41df8aae634bdfc5d6c249066e3', class: "zonos--checkout-finish zonos--elements", style: {
334
+ return (h(Host, { key: '1e4627e936e0508761c12d842523adb51d3c797e', class: "zonos--checkout-finish zonos--elements", style: {
334
335
  '--border-radius': getBorderRadius({
335
336
  overrideBorderStyle: this.borderRadius,
336
337
  }),
337
- } }, this.isLoading && (h("div", { key: '90a55566440c372885ecfd0d4ec1ceaca61d5169', class: "loading-wrapper" }, h("zonos-spinner", { key: '814fcab377f26107b42d431a9bd89cb415ea2aba' }))), !this.isLoading && (h(Fragment, null, h("div", { key: '5f0af17eadfad44a28b7a3cab861630aab10ea46', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'cb98643270b2faf2522437d653251b7a1b520d8c', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '24b040b053da852c0e6d9e76532647d7f4ec3d7a' }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '664c02f338ef2020fed645c759cfa70fcd1edb97', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
338
+ } }, this.isLoading && (h("div", { key: '4d3be87aec252946c5b6fb516c882830232a83e5', class: "loading-wrapper" }, h("zonos-spinner", { key: '25e9bafaaebed75582efd936c57121921c8f2f8a' }))), !this.isLoading && (h(Fragment, null, h("div", { key: '49c211db17af433b3936e69722c3c76c9197c170', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '4cb90069dcf385886cb9235ee0854d63781e4452', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '8e16be3b15d7fba7b697ba9ed41332c9794f3551' }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: 'e1bfacd92d36c303defc464c7eaf10b8853175c1', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
338
339
  }
339
340
  static get assetsDirs() { return ["assets"]; }
340
341
  };
@@ -521,23 +522,128 @@ const ZonosCheckoutProgressTabs = class {
521
522
  color: labelSelectedColor,
522
523
  })
523
524
  : labelSelectedColor;
524
- return (h(Host, { key: '5079903c5c31395bc5c92a4542d1f7ae78dc34b2', class: "zonos--elements", style: {
525
+ return (h(Host, { key: '1c51be111b22f45ad33d430dc4d0a250f8e4d911', class: "zonos--elements", style: {
525
526
  '--color': contrastLabelColor,
526
527
  '--progress-percent': this.getTotalSuccessStep(),
527
- } }, h("div", { key: 'fabfe8836c827910907c4bceb6f99d65492b440b', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
528
+ } }, h("div", { key: '01e24d42123318aa23982e742b5f2053f5b5392d', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
528
529
  const isSelected = tab.value === selectedStep;
529
530
  return (h("button", { class: classes([
530
531
  'zonos--tab-item',
531
532
  tab.value === selectedStep && 'selected',
532
533
  tab.isDone && 'done',
533
534
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cartStore.step = tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1200' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, translate(tab.label))));
534
- })), h("div", { key: 'cfb1c57fadb793f5db34d02e48f3fe4c3a93a043', class: "zonos--tab-progress" }, h("div", { key: 'd02dd1cc3a5e5b7bc8395038e1cd75cb07104072', class: "zonos--progress-bar-fill" }))));
535
+ })), h("div", { key: '55832cb123f7efa019ccddfe6bd82938d9f02206', class: "zonos--tab-progress" }, h("div", { key: '15fd9749c64530f09854a297cbc35fe97d3398e3', class: "zonos--progress-bar-fill" }))));
535
536
  }
536
537
  static get assetsDirs() { return ["assets"]; }
537
538
  get ele() { return getElement(this); }
538
539
  };
539
540
  ZonosCheckoutProgressTabs.style = ZonosCheckoutProgressTabsStyle0;
540
541
 
542
+ 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;">
543
+ <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>
544
+ <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>
545
+ </svg>`;
546
+
547
+ 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;">
548
+ <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>
549
+ <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>
550
+ </svg>`;
551
+
552
+ 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;">
553
+ <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>
554
+ <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>
555
+ </svg>`;
556
+
557
+ 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)}";
558
+ const ZonosConfirmDialogStyle0 = zonosConfirmDialogCss;
559
+
560
+ const ZonosConfirmDialog = class {
561
+ constructor(hostRef) {
562
+ registerInstance(this, hostRef);
563
+ this.confirmClicked = createEvent(this, "confirmClicked", 7);
564
+ this.cancelClicked = createEvent(this, "cancelClicked", 7);
565
+ this.clickOutsideDialogHandler = (event) => {
566
+ if (event.target === event.currentTarget && !this.noClickOutside) {
567
+ this.closeDialogHandler();
568
+ }
569
+ };
570
+ this.dialogTitle = translate('Are you sure?');
571
+ this.dialogIntent = 'info';
572
+ this.dialogSubtitle = '';
573
+ this.submitBtnColor = undefined;
574
+ this.dialogConfirmBtnText = undefined;
575
+ this.dialogCancelBtnText = undefined;
576
+ this.isMobile = false;
577
+ this.dialogOpen = false;
578
+ this.noClickOutside = false;
579
+ }
580
+ handleKeyDown(ev) {
581
+ if (ev.key === 'Escape') {
582
+ this.closeDialogHandler();
583
+ }
584
+ }
585
+ focusDialog() {
586
+ if (this.dialogOpen) {
587
+ setTimeout(() => {
588
+ var _a, _b;
589
+ // Focus on a non tabable element (tabIndex=-1), so we will be able to tab to other tabable elements
590
+ (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.zonos--backdrop')) === null || _b === void 0 ? void 0 : _b.focus();
591
+ }, 100);
592
+ }
593
+ }
594
+ confirmDialogHandler() {
595
+ // Only do the action if the dialog is open
596
+ if (!this.dialogOpen) {
597
+ return;
598
+ }
599
+ // Emit confirm event
600
+ this.confirmClicked.emit();
601
+ }
602
+ closeDialogHandler() {
603
+ // Only do the action if the dialog is open
604
+ if (!this.dialogOpen) {
605
+ return;
606
+ }
607
+ // Emit cancel event
608
+ this.cancelClicked.emit();
609
+ }
610
+ renderIcon() {
611
+ switch (this.dialogIntent) {
612
+ case 'info':
613
+ return (h("zonos-icon", { content: HelpDuotoneIcon, iconColor: 'blue-800' }));
614
+ case 'danger':
615
+ return (h("zonos-icon", { content: ExclamationMarkDuotoneIcon, iconColor: 'red-800' }));
616
+ case 'warn':
617
+ return (h("zonos-icon", { content: WarningDuotoneIcon, iconColor: 'orange-800' }));
618
+ }
619
+ }
620
+ getButtonConfirmVariant() {
621
+ switch (this.dialogIntent) {
622
+ case 'warn':
623
+ return 'warning';
624
+ case 'danger':
625
+ return 'danger';
626
+ default:
627
+ return 'primary';
628
+ }
629
+ }
630
+ render() {
631
+ this.focusDialog();
632
+ const borderStyle = getBorderRadius();
633
+ // Get theme for the update dialog, inherit from the theme, no from this component theme
634
+ const theme = getZonosStoreTheme(zonosStore.appearance.theme);
635
+ return (h(Host, { key: 'e52030ffc052c699daa87c5b62ee8b44ddad7f7f', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-theme": theme, style: {
636
+ '--border-radius': borderStyle,
637
+ '--font-family': zonosStoreFontFamily(),
638
+ } }, h("div", { key: 'a34d31946f198b2593f142b582aec18f69fe74c5', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '2f3dfa27dfbfbc4080eb710dd3db530521b63d36', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '8f61424a8899c81f9510deda0adc3ff3e2da102b', class: "zonos--confirm-dialog", onBlur: () => {
639
+ this.focusDialog();
640
+ } }, h("div", { key: '2fca3f071d7f9d2af628d909770bb12a3acabfe2', class: "wrapper" }, h("div", { key: 'fed312e492a9fcac175a9cac7501255aeb975c10', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '131651e201a8d6b2ee9e0c82bd1990bc9a8dc702', class: "content" }, h("div", { key: 'a42e1a9271bdfb9fba133e9af330bdb8b16be230', class: "title" }, h("zonos-text", { key: '91461b9e572e3eb0e6e8616612cce56cf723678f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'fde989f7ef37692173c1476b5cfd98f6cc71bb6e', class: "subtitle" }, h("zonos-text", { key: '2e273099ff036b1aa62bba923fff696d1d291867', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '3b7f50adf490388feb759f2e09a626ece5f29c20', class: "footer" }, h("zonos-button", { key: '9686f10d831470273543cf3b5217a8e59bb5160a', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText), h("zonos-button", { key: '3781a86d62efe11e8dc08886e3b4ad885c64776a', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
641
+ }
642
+ static get assetsDirs() { return ["assets"]; }
643
+ get el() { return getElement(this); }
644
+ };
645
+ ZonosConfirmDialog.style = ZonosConfirmDialogStyle0;
646
+
541
647
  const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
542
648
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
543
649
 
@@ -876,4 +982,4 @@ const ZonosShipping = class {
876
982
  };
877
983
  ZonosShipping.style = ZonosShippingStyle0;
878
984
 
879
- export { ZonosCartItems as zonos_cart_items, ZonosCartRestrictedItems as zonos_cart_restricted_items, ZonosCartSubtotal as zonos_cart_subtotal, ZonosCheckoutFinish as zonos_checkout_finish, ZonosCheckoutFooter as zonos_checkout_footer, ZonosCheckoutPayment as zonos_checkout_payment, ZonosCheckoutProgressTabs as zonos_checkout_progress_tabs, ZonosCustomerInfo as zonos_customer_info, ZonosReview as zonos_review, ZonosShipping as zonos_shipping };
985
+ export { ZonosCartItems as zonos_cart_items, ZonosCartRestrictedItems as zonos_cart_restricted_items, ZonosCartSubtotal as zonos_cart_subtotal, ZonosCheckoutFinish as zonos_checkout_finish, ZonosCheckoutFooter as zonos_checkout_footer, ZonosCheckoutPayment as zonos_checkout_payment, ZonosCheckoutProgressTabs as zonos_checkout_progress_tabs, ZonosConfirmDialog as zonos_confirm_dialog, ZonosCustomerInfo as zonos_customer_info, ZonosReview as zonos_review, ZonosShipping as zonos_shipping };
@@ -1,11 +1,12 @@
1
- import { r as registerInstance, h, F as Fragment, H as Host } from './index-e063389c.js';
2
- import { l as localizationStore, a as log, s as stripeStoreGetDomesticShippingSession, b as localizationStoreUpdateSelectedCountryCode, c as stripeStoreCleanupDomesticShippingSession, d as logError, e as stripeStoreSaveDomesticShippingSession, i as initStripeElements, f as cartStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as stripeStore, m as stripeStoreInitCheckoutSession, n as cartStoreUpdateToErrorState, t as translate, o as stripeStorePrefetchLandedCost, p as cartStoreNextStep, q as stripeStoreConfirmPayment, r as stripeStoreReset, u as localizationStoreOnUpdate } from './cart-6448e883.js';
3
- import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-33ff08ff.js';
4
- import { c as createCustomEvent, s as sendErrorLog, a as submitGtag, t as trackConversionEvent } from './submitGtag-b7d369cd.js';
1
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-3b46f3c3.js';
2
+ import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as stripeStore, j as stripeStoreInitCheckoutSession, k as cartStoreUpdateToErrorState, t as translate, m as stripeStorePrefetchLandedCost, n as cartStoreNextStep, o as stripeStoreConfirmPayment, p as stripeStoreReset, q as localizationStoreOnUpdate } from './cart-63d120e1.js';
3
+ import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-32e33a45.js';
4
+ import { c as createCustomEvent, s as sendErrorLog, a as submitGtag, t as trackConversionEvent } from './submitGtag-35bb3945.js';
5
5
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
6
+ import { l as log, a as logError } from './logError-c456c092.js';
6
7
  import { c as classes } from './classes-0d95c529.js';
7
- import { g as getBorderRadius } from './getBorderRadius-567f1786.js';
8
- import { i as isDarkColor } from './isDarkColor-7f62035a.js';
8
+ import { g as getBorderRadius } from './getBorderRadius-d244b4b1.js';
9
+ import { i as isDarkColor } from './isDarkColor-39a36e82.js';
9
10
  import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
10
11
 
11
12
  /**
@@ -333,6 +334,7 @@ const ZonosCheckout = class {
333
334
  this.domesticRedirectedBtnSelector = '#zonos--domestic-redirected-checkout-button';
334
335
  this.legacyCheckoutHiddenBtnSelector = '#legacy-checkout-hidden-button';
335
336
  this.isLegacyCheckout = false;
337
+ this.confirmDialogOpen = false;
336
338
  }
337
339
  /**
338
340
  * Init cart info handler event
@@ -341,10 +343,27 @@ const ZonosCheckout = class {
341
343
  const cartItems = e.detail;
342
344
  void cartStoreUpdateItems(cartItems);
343
345
  }
346
+ async handleKeyPress(e) {
347
+ if (e.key === 'Escape') {
348
+ void this.closeDialogHandler();
349
+ }
350
+ }
344
351
  /**
345
352
  * Close dialog action
346
353
  */
347
- async closeDialogHandler() {
354
+ async closeDialogHandler(props) {
355
+ var _a, _b;
356
+ if (!this.open) {
357
+ // Do nothing if the checkout is not even open
358
+ return;
359
+ }
360
+ // Only proceed when user select confirmed.
361
+ if (!(props === null || props === void 0 ? void 0 : props.confirmed)) {
362
+ this.confirmDialogOpen = true;
363
+ return;
364
+ }
365
+ // Close the confirm dialog
366
+ this.confirmDialogOpen = false;
348
367
  submitGtag('zonos-checkout-close');
349
368
  this.open = this.forceDialogOpen || false;
350
369
  if (!this.preview && cartStore.step === 'finish') {
@@ -355,6 +374,10 @@ const ZonosCheckout = class {
355
374
  cartStore.step = 'customer-info';
356
375
  // reset the tab item, so that user needs to click on Continue button to re-quote the landed cost if needed.
357
376
  cartStoreResetTabItems();
377
+ /**
378
+ * Trigger callback when the checkout is closed
379
+ */
380
+ (_b = (_a = zonosStore.checkoutSettings).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
358
381
  }
359
382
  async buildCartAndInit() {
360
383
  // if tempCartUUID is provided, use it instead of buildCartDetail
@@ -759,7 +782,11 @@ const ZonosCheckout = class {
759
782
  hasFooter && 'has-footer',
760
783
  this.preview && 'preview',
761
784
  this.isMobile && 'mobile',
762
- ]) }, 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()))));
785
+ ]) }, 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: () => {
786
+ this.confirmDialogOpen = false;
787
+ },
788
+ // Mark user selected confirm to close the dialog
789
+ onConfirmClicked: () => this.closeDialogHandler({ confirmed: true }) })));
763
790
  }
764
791
  static get assetsDirs() { return ["assets"]; }
765
792
  static get watchers() { return {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-e063389c.js';
1
+ import { r as registerInstance, h } from './index-3b46f3c3.js';
2
2
 
3
3
  function format(first, middle, last) {
4
4
  return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
@@ -18,7 +18,7 @@ const ZonosComponent = class {
18
18
  return format(this.first, this.middle, this.last);
19
19
  }
20
20
  render() {
21
- return h("div", { key: '589c084e9acc84525aa5db6036d13741ed656e26' }, "Hello, World! I'm ", this.getText());
21
+ return h("div", { key: 'b51f2edddb50f8f6a868da28c73218fe6955d2e5' }, "Hello, World! I'm ", this.getText());
22
22
  }
23
23
  };
24
24
  ZonosComponent.style = ZonosComponentStyle0;
@@ -1,8 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-e063389c.js';
2
- import { v as handleFetch, d as logError, w as isValidSelector, a as log, k as stripeStore, x as initLocalizationStore, b as localizationStoreUpdateSelectedCountryCode } from './cart-6448e883.js';
3
- import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-33ff08ff.js';
4
- import './isDarkColor-7f62035a.js';
5
- import './getBorderRadius-567f1786.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-3b46f3c3.js';
2
+ import { r as handleFetch, u as isValidSelector, h as stripeStore, v as initLocalizationStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-63d120e1.js';
3
+ import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-32e33a45.js';
4
+ import { a as logError, l as log } from './logError-c456c092.js';
5
+ import './isDarkColor-39a36e82.js';
6
+ import './getBorderRadius-d244b4b1.js';
6
7
 
7
8
  const getZonosSettings = async () => {
8
9
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/zonos-settings`;
@@ -188,9 +189,13 @@ const ZonosController = class {
188
189
  }
189
190
  // init zonos notification
190
191
  this.initZonosNotification();
192
+ const config = Object.assign(Object.assign({}, this.config), {
193
+ // override subscription status
194
+ subscriptionStatus: undefined
195
+ });
191
196
  // load default setting if fail to load user setting
192
197
  zonosStoreInitSetting({
193
- overrideSettings: this.config,
198
+ overrideSettings: config,
194
199
  zonosSettings: json,
195
200
  });
196
201
  // setup google font after store loaded
@@ -263,7 +268,7 @@ const ZonosController = class {
263
268
  zonosStore.organizationName = organizationName;
264
269
  }
265
270
  render() {
266
- return h(Host, { key: 'c607814c97ec998ef3e56ccdb28ef0369daf9ff3', class: "zonos--elements" });
271
+ return h(Host, { key: 'c7ddb9c8c4e17ef074e33de06ac893fcf08152a4', class: "zonos--elements" });
267
272
  }
268
273
  };
269
274
  ZonosController.style = ZonosControllerStyle0;
@@ -1,9 +1,10 @@
1
- import { r as registerInstance, h, H as Host, d as getElement } from './index-e063389c.js';
2
- import { l as localizationStore } from './cart-6448e883.js';
3
- import { d as zonosStoreFontFamily } from './zonosStore-33ff08ff.js';
1
+ import { r as registerInstance, h, H as Host, d as getElement } from './index-3b46f3c3.js';
2
+ import { l as localizationStore } from './cart-63d120e1.js';
3
+ import { d as zonosStoreFontFamily } from './zonosStore-32e33a45.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import './isDarkColor-7f62035a.js';
6
- import './getBorderRadius-567f1786.js';
5
+ import './logError-c456c092.js';
6
+ import './isDarkColor-39a36e82.js';
7
+ import './getBorderRadius-d244b4b1.js';
7
8
 
8
9
  const zonosCountryFlagCss = ":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}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
9
10
  const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
@@ -1,10 +1,11 @@
1
- import { r as registerInstance, h, H as Host, d as getElement } from './index-e063389c.js';
2
- import { b as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './cart-6448e883.js';
3
- import { d as zonosStoreFontFamily } from './zonosStore-33ff08ff.js';
1
+ import { r as registerInstance, h, H as Host, d as getElement } from './index-3b46f3c3.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './cart-63d120e1.js';
3
+ import { d as zonosStoreFontFamily } from './zonosStore-32e33a45.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
- import { i as isDarkColor } from './isDarkColor-7f62035a.js';
5
+ import { i as isDarkColor } from './isDarkColor-39a36e82.js';
6
6
  import { l as languages } from './ILanguage-97790bee.js';
7
- import './getBorderRadius-567f1786.js';
7
+ import './logError-c456c092.js';
8
+ import './getBorderRadius-d244b4b1.js';
8
9
 
9
10
  /**
10
11
  * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
@@ -1824,9 +1825,9 @@ const ZonosCountrySelect = class {
1824
1825
  const filteredCountries = this.inputValue
1825
1826
  ? fuseObject.map(country => country.item)
1826
1827
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
1827
- return (h(Host, { key: '1b37f326e23e3afaba1428cc23add2e5c425f0b9', class: "zonos--elements", style: {
1828
+ return (h(Host, { key: '36b388d67c25bfe93dee6a7fd3c444ce0764c832', class: "zonos--elements", style: {
1828
1829
  '--font-family': zonosStoreFontFamily(),
1829
- } }, 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 })))))))));
1830
+ } }, h("div", { key: '80c2a2b8a38f5183c583a240b4702fe234df58e9', class: "zonos--country-select" }, h("zonos-v-stack", { key: 'fee57e283cc49f7b1d48cb6564003d77a75f02a6', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '030338d8bc4f52c0bf4fbcdef1415321f59de05b', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: '855653189b575ad697b9b90cb733ef912e7f2b83', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: '353bf39d18d2aad7c2f4096592c6e13572bc5a16', 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 })))))))));
1830
1831
  }
1831
1832
  get ele() { return getElement(this); }
1832
1833
  };
@@ -1843,9 +1844,9 @@ const ZonosCustomMessage = class {
1843
1844
  }
1844
1845
  render() {
1845
1846
  const messageWithLinks = formatStringWithLinks(this.message);
1846
- return (h(Host, { key: 'c2cec226eb9236205d0c4b234bb393e4663d982f', class: "zonos--elements", style: {
1847
+ return (h(Host, { key: 'a0c9c81f42cc74f53f497ea37d9f1fcfe2853c25', class: "zonos--elements", style: {
1847
1848
  '--font-family': zonosStoreFontFamily(),
1848
- } }, 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 }))))));
1849
+ } }, this.message && (h("zonos-card", { key: '334b1d76339667cd873d966b069429b9a2c08249', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: 'c3a72d8c248acc2ac36b45d5afe0c69428eb1a75', class: "zonos--flex-message" }, h("zonos-icon", { key: 'c8ca45558e2dc0e389a0fb99943b81dfd0328f3e', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: '9a1ce78aba237d325a0b3d1c61b62ca4f3b89c18', innerHTML: messageWithLinks }))))));
1849
1850
  }
1850
1851
  };
1851
1852
  ZonosCustomMessage.style = ZonosCustomMessageStyle0;
@@ -1877,9 +1878,9 @@ const ZonosHelloDialogFooter = class {
1877
1878
  const primaryColor = (_a = this.appearanceSettings) === null || _a === void 0 ? void 0 : _a.colorPrimary;
1878
1879
  const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
1879
1880
  const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
1880
- return (h(Host, { key: '73782964897f8b09fd603de0bdbaa8348a4117c7', class: "zonos--elements" }, h("div", { key: 'bbb22af415fd9ba14900eca3e7c1b07d5bb9e831', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
1881
+ return (h(Host, { key: '714c0ccdaab553158a4990e24e471e0a0be64655', class: "zonos--elements" }, h("div", { key: '4c177b9120aee7ccdc242bb656399e1597b35f28', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
1881
1882
  '--primary-color': (_c = this.appearanceSettings) === null || _c === void 0 ? void 0 : _c.colorPrimary,
1882
- } }, h("a", { key: 'c4b098b21f8a6905f87457bfcfb5d1e0dee64470', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '64d86210a96b229ddfa932bb92678ab608eb59b9', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 })), h("div", { key: 'be711084541626184d7c742a8df88c1bf61c30e4', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '2f1370424b58f393a81c2c0b71669d38782cf17e', buttonColor: "gray-1200", icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: "gray-1200" }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: '724e7897179be3d852a661a7109a264bb32b01b8', buttonColor: "gray-1200", icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
1883
+ } }, h("a", { key: 'cb2b3ffb8a637825c76d4b33d71fa38d20a19220', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'affb176b938a399d51ccb6ae4fb5906e31ea2ff0', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 })), h("div", { key: '4aa0ce039d196d804b26df7e2b8608252da2a478', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '088259ecd3d2271fb9a4042126886c7f4fe3a9ba', buttonColor: "gray-1200", icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: "gray-1200" }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'e20dcd573266b53341e9f21bab3b34672d4d96a1', buttonColor: "gray-1200", icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
1883
1884
  }
1884
1885
  };
1885
1886
  ZonosHelloDialogFooter.style = ZonosHelloDialogFooterStyle0;
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-e063389c.js';
2
- export { s as setNonce } from './index-e063389c.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-3b46f3c3.js';
2
+ export { s as setNonce } from './index-3b46f3c3.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-input",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["zonos-banner",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-button_3",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-select-dialog-header_2",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-flag",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-country-select_3",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_8",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_10",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"showErrorBanner":[32]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevels":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}]]]], options);
19
+ return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-input",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["zonos-banner",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-button_3",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-select-dialog-header_2",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-flag",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-country-select_3",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_8",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_11",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"showErrorBanner":[32]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevels":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}]]]], options);
20
20
  });
@@ -1,11 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-e063389c.js';
2
- import { D as currencyFormat, t as translate, l as localizationStore } from './cart-6448e883.js';
3
- import { z as zonosStore } from './zonosStore-33ff08ff.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-3b46f3c3.js';
2
+ import { B as currencyFormat, t as translate, l as localizationStore } from './cart-63d120e1.js';
3
+ import { z as zonosStore } from './zonosStore-32e33a45.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
6
6
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
7
- import './isDarkColor-7f62035a.js';
8
- import './getBorderRadius-567f1786.js';
7
+ import './logError-c456c092.js';
8
+ import './isDarkColor-39a36e82.js';
9
+ import './getBorderRadius-d244b4b1.js';
9
10
 
10
11
  const getHasMoreSpaceAbove = (ref) => {
11
12
  const componentRect = ref.getBoundingClientRect();
@@ -174,17 +175,17 @@ const ZonosHelloDialog = class {
174
175
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
175
176
  const currentPage = this.getCurrentPageEnum();
176
177
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
177
- return (h(Host, { key: 'e54181bd2c3eb1c77d5dad36c5426f4e9ddee766', class: "zonos--elements" }, h("div", { key: '3960f91898ed2409018cbac487491f38ab0b0c5e', "aria-hidden": "true", class: classes([
178
+ return (h(Host, { key: 'e6432c897bf4f7c60e69f3e4e4c356be11e61842', class: "zonos--elements" }, h("div", { key: 'd18df4158ffb6be5037251a9a665739fee6a0755', "aria-hidden": "true", class: classes([
178
179
  'zonos--hello-dialog',
179
180
  animateLeft && 'zonos--hello-dialog-animate-from-left',
180
181
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
181
182
  !!this.mobileLocationOverride &&
182
183
  'zonos--hello-dialog-mobile-override',
183
184
  this.isOpen && 'zonos--hello-dialog-open',
184
- ]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '69c9b9ebe1cdde7a43773eeabfa07e9bb842df14' }, h("div", { key: 'fcad53ed6962a775ec1cb325636db397f34f62b2', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '018c3ce79334f35d6f7c04143b2a1f14c068405f', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '38e19b5e803f0fcd89adf54e95f40549c93ea511', spacing: 24 }, h("zonos-country-flag", { key: '01ea29a0de53d00c9eb49e29fb8680da92656db4', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '7a1dd895a58fdf4e008164828e6ee7bae96723ab', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'a1c334ba3f4e7a15de6f14d17440faae44a26498', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'dad722c938d002eaa223ef847c86bafbe1815bdc', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '1b1d7d1e3ee671fecba8ec2731ffb0f4356af1e7', spacing: 8 }, this.restrictedItems.map(item => {
185
+ ]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '1266216272683cb9f7086190686551df57ad8741' }, h("div", { key: 'ab2cb53cd0cc4c33002ae19925e8c32ebf94e426', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '9d973abe25de4a7e18f3bf588b6f0247b8edc96d', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: 'cb8eb025500c0a4eed79e690e67edc418dc6c1e1', spacing: 24 }, h("zonos-country-flag", { key: '3ceddaa0d44d9c0779124a7ea199cf12a763d82c', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'd49da8684213be9ceb686428343247d0387e61e5', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '1edc2747b7760479916276ddcaf3461cc5678461', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'fbb00b765b4a29230db98253c72c320e02a5fccf', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '0614fbd574c7832e6dee73b3e26c659c2679b714', spacing: 8 }, this.restrictedItems.map(item => {
185
186
  var _a;
186
187
  return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
187
- }), h("zonos-card", { key: '0bef1474f44e1a60c48845562f455bfb214bcc80', spacing: "12px" }, h("zonos-v-stack", { key: '5d65f0de1641b30119463da8b42622805fef4f9b', spacing: 12 }, h("div", { key: 'f752d5a9738490220fd4c98615bc7416d38cc2d1', class: "zonos--flex-message" }, h("zonos-icon", { key: '7a9ac42800b0d35a18cc13bd611d79acd20244cf', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '3d31748fcd4c718326ff62ea2e97088d8ab1ed3e' }, dutyDeMinimisMessage)), h("div", { key: '699d72e9efc630452bf947be8f0e44ca09819cfe', class: "zonos--flex-message" }, h("zonos-icon", { key: 'e997263930e53e22c3a4e8dd5f20e1ee3cd695e4', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'e1c2a5ee2718a5446a63c2b8d547848e262817f0' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: '8522ab846d9733fb8ffd3b9873e8b9650aa63b58', class: "zonos--flex-message" }, h("zonos-icon", { key: '20cb281304b9839fe7f30685949af2aa3af9721d', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: '9347d34c8fbfd9bf04ba2b6d79186263b524c2a8' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: 'a6980cae6e361ae1f5b00ec4827127422adee301', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'be7793fb262c395ae96fa6acfe0c14fbf062b1c9' }, h("zonos-country-select", { key: '2224aade7391512826b4b9c46bd826f013945f83', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '006ac0317c9a7911c1e48f7c30f66b3e8882f6d6' }, h("zonos-language-select", { key: '1577f733b5556e7683b6c74dc111e99c77ba0649', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
188
+ }), h("zonos-card", { key: '05ec570de14760e8a07d9bfa7a0fca6def3bfe4b', spacing: "12px" }, h("zonos-v-stack", { key: '9b5c301c737c784bd4e7738080fe90dfc0c82bb5', spacing: 12 }, h("div", { key: '5c3691d22fefcab028c4836d2ce774609789e9f3', class: "zonos--flex-message" }, h("zonos-icon", { key: '9a498a80b3c3652f9aec2e409d30acd09b983397', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: 'c7b0323a0f4704a5ee29b4275cab60e7390f1f9a' }, dutyDeMinimisMessage)), h("div", { key: '5910f4b782a28777fb6fa41ae9399dfae3a8cee8', class: "zonos--flex-message" }, h("zonos-icon", { key: 'ed57f0c4e985332568c0197506ba6b07c2da5b34', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: '72727be7a47c98b2b6105532d3370fbc05bfca3e' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: 'f802df72c31a9031ae737a2d2b461482354d21d8', class: "zonos--flex-message" }, h("zonos-icon", { key: '66ac284793d67089e46671aff79691f025abbc31', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: '9931ab1b57336d4d4326d8f52975566638340e01' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '81576154c1db509ea3a9f8dfbe0dfb811f49b495', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'e9109f275db0fbd9baca229af1004de0497753d8' }, h("zonos-country-select", { key: '8ac0328e65ae7346ebe024e7bd735afdd506d120', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '5ea929a6f391b6f00d0da0e462239bff5f0550d2' }, h("zonos-language-select", { key: 'f59d0da0cb849f1bfe77184d10a713ef6b25f225', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
188
189
  }
189
190
  static get assetsDirs() { return ["assets"]; }
190
191
  static get watchers() { return {
@@ -1,10 +1,11 @@
1
- import { r as registerInstance, h, H as Host } from './index-e063389c.js';
2
- import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-33ff08ff.js';
3
- import { v as handleFetch, d as logError, l as localizationStore, w as isValidSelector, t as translate, y as getZCountryUrlParam, z as setZCountryUrlParam, a as log, A as currencyDisplay, B as currencyConvertAndFormat, C as currencyConvert, D as currencyFormat } from './cart-6448e883.js';
1
+ import { r as registerInstance, h, H as Host } from './index-3b46f3c3.js';
2
+ import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-32e33a45.js';
3
+ import { r as handleFetch, l as localizationStore, u as isValidSelector, t as translate, w as getZCountryUrlParam, x as setZCountryUrlParam, y as currencyDisplay, z as currencyConvertAndFormat, A as currencyConvert, B as currencyFormat } from './cart-63d120e1.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
+ import { a as logError, l as log } from './logError-c456c092.js';
5
6
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
6
- import './isDarkColor-7f62035a.js';
7
- import './getBorderRadius-567f1786.js';
7
+ import './isDarkColor-39a36e82.js';
8
+ import './getBorderRadius-d244b4b1.js';
8
9
 
9
10
  var root = _root;
10
11