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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/cjs/{cart-d25723e7.js → cart-941a31dd.js} +562 -12
  2. package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
  3. package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
  4. package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{submitGtag-484eaf9d.js → submitGtag-9210b4fe.js} +2 -2
  7. package/dist/cjs/zonos-address_8.cjs.entry.js +22 -11
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +7 -7
  12. package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +224 -14
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +36 -10
  14. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-country-select_3.cjs.entry.js +11 -11
  18. package/dist/cjs/zonos-elements.cjs.js +2 -2
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
  20. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  21. package/dist/cjs/zonos-input.cjs.entry.js +7 -7
  22. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
  26. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  29. package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
  30. package/dist/collection/collection-manifest.json +2 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +2 -1
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/ChevronUpIcon.svg +23 -0
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/empty-item.jpeg +0 -0
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.css +105 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +101 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +6 -3
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +1 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +43 -6
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +18 -2
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -2
  42. package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
  43. package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
  44. package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  45. package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
  46. package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
  47. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
  48. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
  49. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  50. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  51. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
  52. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
  53. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  54. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  55. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  56. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  57. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  58. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  59. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  60. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  61. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  62. package/dist/collection/components/main/zonos-controller.js +3 -3
  63. package/dist/collection/components/store/checkout/cart.js +55 -5
  64. package/dist/collection/components/store/checkout/stripe.js +6 -2
  65. package/dist/collection/components/store/hello/localization.js +12 -2
  66. package/dist/collection/components/store/translationStore/strings.arabic.js +24 -0
  67. package/dist/collection/components/store/translationStore/strings.base.js +24 -0
  68. package/dist/collection/components/store/translationStore/strings.chinese.js +24 -0
  69. package/dist/collection/components/store/translationStore/strings.danish.js +24 -0
  70. package/dist/collection/components/store/translationStore/strings.dutch.js +24 -0
  71. package/dist/collection/components/store/translationStore/strings.french.js +24 -0
  72. package/dist/collection/components/store/translationStore/strings.german.js +24 -0
  73. package/dist/collection/components/store/translationStore/strings.hebrew.js +24 -0
  74. package/dist/collection/components/store/translationStore/strings.indonesian.js +24 -0
  75. package/dist/collection/components/store/translationStore/strings.italian.js +24 -0
  76. package/dist/collection/components/store/translationStore/strings.japanese.js +24 -0
  77. package/dist/collection/components/store/translationStore/strings.korean.js +24 -0
  78. package/dist/collection/components/store/translationStore/strings.norwegian.js +24 -0
  79. package/dist/collection/components/store/translationStore/strings.polish.js +24 -0
  80. package/dist/collection/components/store/translationStore/strings.portuguese.js +24 -0
  81. package/dist/collection/components/store/translationStore/strings.russian.js +24 -0
  82. package/dist/collection/components/store/translationStore/strings.spanish.js +24 -0
  83. package/dist/collection/components/store/translationStore/strings.swedish.js +24 -0
  84. package/dist/collection/components/store/translationStore/strings.turkish.js +24 -0
  85. package/dist/collection/components/store/translationStore/strings.vietnamese.js +24 -0
  86. package/dist/collection/components/store/zonosStore.js +1 -0
  87. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  88. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  89. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  90. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +1 -1
  91. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +6 -1
  92. package/dist/collection/scripts/zonosBase.js +2 -1
  93. package/dist/collection/types/checkout/RestrictProduct.js +1 -0
  94. package/dist/collection/types/generated/graphql.customer.types.js +40 -0
  95. package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
  96. package/dist/components/stripe.js +79 -10
  97. package/dist/components/submitGtag.js +1 -1
  98. package/dist/components/trackConversionEvent.js +1 -1
  99. package/dist/components/translationStore.js +480 -0
  100. package/dist/components/zonos-address2.js +1 -1
  101. package/dist/components/zonos-button2.js +20 -8
  102. package/dist/components/zonos-cart-items2.js +2 -1
  103. package/dist/components/zonos-cart-restricted-items.d.ts +11 -0
  104. package/dist/components/zonos-cart-restricted-items.js +6 -0
  105. package/dist/components/zonos-cart-restricted-items2.js +135 -0
  106. package/dist/components/zonos-cart-subtotal2.js +6 -3
  107. package/dist/components/zonos-checkout-finish2.js +1 -1
  108. package/dist/components/zonos-checkout-payment2.js +1 -1
  109. package/dist/components/zonos-checkout.js +77 -38
  110. package/dist/components/zonos-component.js +1 -1
  111. package/dist/components/zonos-confirm-dialog.d.ts +11 -0
  112. package/dist/components/zonos-confirm-dialog.js +6 -0
  113. package/dist/components/zonos-confirm-dialog2.js +161 -0
  114. package/dist/components/zonos-controller.js +2 -2
  115. package/dist/components/zonos-country-select2.js +3 -3
  116. package/dist/components/zonos-custom-message2.js +2 -2
  117. package/dist/components/zonos-customer-info2.js +19 -3
  118. package/dist/components/zonos-dialog2.js +17 -5
  119. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  120. package/dist/components/zonos-hello-dialog2.js +4 -4
  121. package/dist/components/zonos-hello.js +1 -1
  122. package/dist/components/zonos-input2.js +4 -4
  123. package/dist/components/zonos-language-select2.js +3 -3
  124. package/dist/components/zonos-link-authentication2.js +1 -1
  125. package/dist/components/zonos-logo.js +2 -2
  126. package/dist/components/zonos-payment2.js +1 -1
  127. package/dist/components/zonos-review2.js +3 -2
  128. package/dist/components/zonos-select-dialog-header2.js +2 -2
  129. package/dist/components/zonos-shipping2.js +1 -1
  130. package/dist/components/zonos-tooltip2.js +2 -2
  131. package/dist/components/zonos-v-stack2.js +2 -2
  132. package/dist/components/zonosStore.js +1 -0
  133. package/dist/esm/{cart-02f5c2ea.js → cart-cc593c2b.js} +562 -13
  134. package/dist/esm/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  135. package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
  136. package/dist/esm/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  137. package/dist/esm/loader.js +3 -3
  138. package/dist/esm/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +2 -2
  139. package/dist/esm/zonos-address_8.entry.js +22 -11
  140. package/dist/esm/zonos-badge_2.entry.js +4 -4
  141. package/dist/esm/zonos-banner.entry.js +2 -2
  142. package/dist/esm/zonos-button_3.entry.js +22 -11
  143. package/dist/esm/zonos-card_2.entry.js +7 -7
  144. package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_11.entry.js} +223 -15
  145. package/dist/esm/zonos-checkout.entry.js +36 -10
  146. package/dist/esm/zonos-component.entry.js +2 -2
  147. package/dist/esm/zonos-controller.entry.js +6 -6
  148. package/dist/esm/zonos-country-flag.entry.js +5 -5
  149. package/dist/esm/zonos-country-select_3.entry.js +11 -11
  150. package/dist/esm/zonos-elements.js +3 -3
  151. package/dist/esm/zonos-hello-dialog.entry.js +8 -8
  152. package/dist/esm/zonos-hello.entry.js +5 -5
  153. package/dist/esm/zonos-input.entry.js +7 -7
  154. package/dist/esm/zonos-link.entry.js +1 -1
  155. package/dist/esm/zonos-logo.entry.js +4 -4
  156. package/dist/esm/zonos-notification.entry.js +2 -2
  157. package/dist/esm/zonos-payment.entry.js +6 -6
  158. package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
  159. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  160. package/dist/esm/zonos-text.entry.js +2 -2
  161. package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
  162. package/dist/esm-es5/cart-cc593c2b.js +1 -0
  163. package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  164. package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
  165. package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  166. package/dist/esm-es5/loader.js +1 -1
  167. package/dist/esm-es5/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +1 -1
  168. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  169. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  170. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  171. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  172. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  173. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
  174. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  175. package/dist/esm-es5/zonos-component.entry.js +1 -1
  176. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  177. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  178. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  179. package/dist/esm-es5/zonos-elements.js +1 -1
  180. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  181. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  182. package/dist/esm-es5/zonos-input.entry.js +1 -1
  183. package/dist/esm-es5/zonos-link.entry.js +1 -1
  184. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  185. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  186. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  187. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  188. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  189. package/dist/esm-es5/zonos-text.entry.js +1 -1
  190. package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
  191. package/dist/scripts/loadZonos.js +1 -1
  192. package/dist/scripts/zonos.js +1 -1
  193. package/dist/scripts/zonosBase.js +1 -1
  194. package/dist/types/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.d.ts +14 -0
  195. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +11 -1
  196. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -0
  197. package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
  198. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
  199. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
  200. package/dist/types/components/store/checkout/cart.d.ts +38 -4
  201. package/dist/types/components/store/translationStore/strings.arabic.d.ts +24 -0
  202. package/dist/types/components/store/translationStore/strings.base.d.ts +24 -0
  203. package/dist/types/components/store/translationStore/strings.chinese.d.ts +24 -0
  204. package/dist/types/components/store/translationStore/strings.danish.d.ts +24 -0
  205. package/dist/types/components/store/translationStore/strings.dutch.d.ts +24 -0
  206. package/dist/types/components/store/translationStore/strings.french.d.ts +24 -0
  207. package/dist/types/components/store/translationStore/strings.german.d.ts +24 -0
  208. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +24 -0
  209. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +24 -0
  210. package/dist/types/components/store/translationStore/strings.italian.d.ts +24 -0
  211. package/dist/types/components/store/translationStore/strings.japanese.d.ts +24 -0
  212. package/dist/types/components/store/translationStore/strings.korean.d.ts +24 -0
  213. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +24 -0
  214. package/dist/types/components/store/translationStore/strings.polish.d.ts +24 -0
  215. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +24 -0
  216. package/dist/types/components/store/translationStore/strings.russian.d.ts +24 -0
  217. package/dist/types/components/store/translationStore/strings.spanish.d.ts +24 -0
  218. package/dist/types/components/store/translationStore/strings.swedish.d.ts +24 -0
  219. package/dist/types/components/store/translationStore/strings.turkish.d.ts +24 -0
  220. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +24 -0
  221. package/dist/types/components/store/translationStore.d.ts +1 -1
  222. package/dist/types/components/store/zonosStore.d.ts +4 -0
  223. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  224. package/dist/types/components.d.ts +163 -5
  225. package/dist/types/scripts/zonosBase.d.ts +21 -2
  226. package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
  227. package/dist/types/types/checkout/RestrictProduct.d.ts +7 -0
  228. package/dist/types/types/generated/graphql.customer.types.d.ts +54 -0
  229. package/dist/types/types/generated/graphql.customer.types.ts +66 -1
  230. package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -1
  231. package/dist/types/types/generated/graphql.frontend.types.ts +2 -1
  232. package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  233. package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
  234. package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
  235. package/dist/zonos-elements/{p-d7acc81c.entry.js → p-020a9b86.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-905d842b.entry.js → p-04030a48.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-0267a969.entry.js → p-0e892292.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-57adc7f8.entry.js → p-0fac99e7.entry.js} +1 -1
  240. package/dist/zonos-elements/p-1795c760.system.entry.js +1 -0
  241. package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
  242. package/dist/zonos-elements/{p-1ba4cf64.entry.js → p-24ac1c6f.entry.js} +1 -1
  243. package/dist/zonos-elements/p-26a60a6e.entry.js +1 -0
  244. package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
  248. package/dist/zonos-elements/p-32744531.entry.js +1 -0
  249. package/dist/zonos-elements/{p-532995a4.system.entry.js → p-35ac375a.system.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-9da0562e.system.entry.js → p-3bc88c3c.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-3e26d7b3.system.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-572a4de2.system.entry.js → p-4caaaaeb.system.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
  255. package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-6ece23b9.entry.js → p-5e783394.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
  258. package/dist/zonos-elements/{p-f99eb5e7.entry.js → p-6366e7e3.entry.js} +1 -1
  259. package/dist/zonos-elements/p-693b9985.js +1 -0
  260. package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-6dec476d.system.entry.js → p-7c8ee4b9.system.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-cf0f8e32.entry.js → p-80ea85b8.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
  265. package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
  266. package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
  267. package/dist/zonos-elements/p-8da16d53.system.js +1 -0
  268. package/dist/zonos-elements/p-96b8c9ba.system.entry.js +1 -0
  269. package/dist/zonos-elements/{p-f124e659.system.entry.js → p-98a0b694.system.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-fd49d864.entry.js → p-9aab3ad7.entry.js} +1 -1
  271. package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
  272. package/dist/zonos-elements/{p-83fecb2a.entry.js → p-9e9c318b.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-47e00966.system.entry.js → p-b98cdf39.system.entry.js} +1 -1
  275. package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
  276. package/dist/zonos-elements/{p-ff403840.entry.js → p-c20e5430.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
  278. package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-d0bc8902.system.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
  280. package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +1 -0
  281. package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
  282. package/dist/zonos-elements/p-dd0fd351.entry.js +1 -0
  283. package/dist/zonos-elements/p-e015cb0e.js +1 -0
  284. package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
  285. package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-e13bfbda.system.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-239cc943.system.entry.js → p-e1fbd05d.system.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-0265da6f.js → p-e553dd19.js} +1 -1
  288. package/dist/zonos-elements/p-e6fa0ebc.system.js +1 -0
  289. package/dist/zonos-elements/{p-5e33aab7.system.entry.js → p-f6546bf4.system.entry.js} +1 -1
  290. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  291. package/dist/zonos-elements/zonos-elements.js +1 -1
  292. package/package.json +13 -13
  293. package/dist/esm-es5/cart-02f5c2ea.js +0 -1
  294. package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
  295. package/dist/zonos-elements/p-154aaf95.system.js +0 -1
  296. package/dist/zonos-elements/p-168e5b5f.system.js +0 -1
  297. package/dist/zonos-elements/p-1b8082dd.entry.js +0 -1
  298. package/dist/zonos-elements/p-246133d3.entry.js +0 -1
  299. package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
  300. package/dist/zonos-elements/p-54a32fd7.entry.js +0 -1
  301. package/dist/zonos-elements/p-5d13795a.system.entry.js +0 -1
  302. package/dist/zonos-elements/p-981bf71a.js +0 -1
  303. package/dist/zonos-elements/p-e0e66004.system.js +0 -1
  304. package/dist/zonos-elements/p-ed7d251d.system.entry.js +0 -1
  305. package/dist/zonos-elements/p-f1962041.js +0 -1
@@ -1,12 +1,12 @@
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, t as translate, v as handleFetch, r as stripeStoreReset, k as stripeStore, E as stripeStoreRetrievePayment, l as localizationStore, F as stripeStoreTranslateAddressToLatin, G as cartStoreUpdateSelectedShippingOption, H as cartStoreGetShippingTransitInfo } from './cart-02f5c2ea.js';
3
- import { z as zonosStore, g as getZonosStoreTheme } from './zonosStore-33ff08ff.js';
4
- import { t as trackConversionEvent, s as sendErrorLog, a as submitGtag, c as createCustomEvent } from './submitGtag-ba38e1ac.js';
5
- import { g as getBorderRadius } from './getBorderRadius-567f1786.js';
6
- import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.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 { 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-cc593c2b.js';
7
3
  import { c as classes } from './classes-0d95c529.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-e50f903f.js';
6
+ import { g as getBorderRadius } from './getBorderRadius-d244b4b1.js';
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
12
 
@@ -32,7 +32,8 @@ const ZonosCartItems = class {
32
32
  var _a;
33
33
  const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
34
34
  const rate = ((_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.rate) || 1;
35
- return (h(Host, { key: 'e2d53d541a342f816efe95f3a0b5551ea7f95e38', class: "zonos--cart-items zonos--elements" }, h("table", { key: 'f2dbf582004f7db5947e55b5b93f1437dc9d2a95', class: "zonos--cart-table" }, h("tbody", { key: 'a9948cbeb5ad9886d582e518d3bbe0ab9c5dda9d' }, cartStore.items.map(item => {
35
+ const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
36
+ return (h(Host, { key: '2dc2189f79fe59260a9fcd8a61142ab628ff7f57', class: "zonos--cart-items zonos--elements" }, h("table", { key: 'd354007fffb5afa397038f319571e83c3fb3ad65', class: "zonos--cart-table" }, h("tbody", { key: '5f31a21b612495ee583650cbd71614cc10a799cc' }, nonRestrictedItems.map(item => {
36
37
  const itemImg = item.imageUrl;
37
38
  return (h("tr", { class: "zonos--cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
38
39
  this.errorImages = [...this.errorImages, itemImg];
@@ -48,6 +49,90 @@ const ZonosCartItems = class {
48
49
  };
49
50
  ZonosCartItems.style = ZonosCartItemsStyle0;
50
51
 
52
+ const ChevronUpIcon$1 = `<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
53
+ <g filter="url(#filter0_dd_2052_3658)">
54
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.46967 14.5303C7.76256 14.8232 8.23744 14.8232 8.53033 14.5303L12.5 10.5607L16.4697 14.5303C16.7626 14.8232 17.2374 14.8232 17.5303 14.5303C17.8232 14.2374 17.8232 13.7626 17.5303 13.4697L13.0303 8.96967C12.7374 8.67678 12.2626 8.67678 11.9697 8.96967L7.46967 13.4697C7.17678 13.7626 7.17678 14.2374 7.46967 14.5303Z" fill="currentColor"/>
55
+ </g>
56
+ <defs>
57
+ <filter id="filter0_dd_2052_3658" x="-3.5" y="-2" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
58
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
59
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
60
+ <feOffset dy="2"/>
61
+ <feGaussianBlur stdDeviation="2"/>
62
+ <feComposite in2="hardAlpha" operator="out"/>
63
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
64
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2052_3658"/>
65
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
66
+ <feOffset dy="1"/>
67
+ <feGaussianBlur stdDeviation="1"/>
68
+ <feComposite in2="hardAlpha" operator="out"/>
69
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"/>
70
+ <feBlend mode="normal" in2="effect1_dropShadow_2052_3658" result="effect2_dropShadow_2052_3658"/>
71
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2052_3658" result="shape"/>
72
+ </filter>
73
+ </defs>
74
+ </svg>
75
+ `;
76
+
77
+ const zonosCartRestrictedItemsCss = ":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{overflow:auto;position:relative}:host zonos-banner{margin-bottom:12px}:host .zonos--cart-title-collapse-trigger{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-align:center;align-items:center;background:var(--zonos-elements-gray-0);width:100%;border:none;cursor:pointer;margin-bottom:16px;position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-transition:0.5s all ease;transition:0.5s all ease}:host .zonos--cart-title-collapse-trigger zonos-icon{-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}:host .zonos--cart-title-collapse-trigger.collapsed{margin-bottom:0}:host .zonos--cart-title-collapse-trigger.collapsed zonos-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host .zonos--cart-title-collapse-trigger::before,:host .zonos--cart-title-collapse-trigger::after{content:\"\";display:block;width:80%;height:1px;background-color:var(--zonos-elements-border-color);-ms-flex-negative:1;flex-shrink:1}:host .zonos--cart-title-collapse-trigger .zonos--title-wrapper{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--cart-table{opacity:0.5;width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}:host(.collapsed){-ms-flex-negative:0;flex-shrink:0}";
78
+ const ZonosCartRestrictedItemsStyle0 = zonosCartRestrictedItemsCss;
79
+
80
+ const ZonosCartRestrictedItems = class {
81
+ constructor(hostRef) {
82
+ registerInstance(this, hostRef);
83
+ this.hide = false;
84
+ this.errorImages = [];
85
+ this.internalCollapsed = true;
86
+ this.firstRender = true;
87
+ }
88
+ componentDidLoad() {
89
+ // Reset if it's first render
90
+ this.firstRender = true;
91
+ }
92
+ render() {
93
+ var _a;
94
+ const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
95
+ const rate = ((_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.rate) || 1;
96
+ const restrictedItemTotal = cartStore.restrictedItems.length;
97
+ if (this.hide || restrictedItemTotal === 0) {
98
+ // show nothing if the parent is collapsed or no restricted items
99
+ return null;
100
+ }
101
+ if (this.firstRender) {
102
+ // Auto expand if all items are restricted
103
+ this.internalCollapsed = cartStoreHasOneEligibleItem();
104
+ this.firstRender = false;
105
+ }
106
+ return (h(Host, { class: classes([
107
+ 'zonos--cart-restricted-items',
108
+ 'zonos--elements',
109
+ this.internalCollapsed && 'collapsed',
110
+ ]) }, h("button", { class: classes([
111
+ 'zonos--cart-title-collapse-trigger',
112
+ this.internalCollapsed && 'collapsed',
113
+ ]), onClick: () => {
114
+ this.internalCollapsed = !this.internalCollapsed;
115
+ } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { textColor: "red-600", type: "label" }, `${translate(this.internalCollapsed ? 'Show' : 'Hide')} ${restrictedItemTotal} ${translate('restricted items')}`), h("zonos-icon", { content: ChevronUpIcon$1, iconColor: "red-600" }))), h("zonos-collapse", { collapsed: this.internalCollapsed }, h("zonos-banner", { bannerTitle: translate('The following items are unable to be shipped to your country and are not included in your cart total.'), intent: "error" }), h("table", { class: "zonos--cart-table" }, h("tbody", null, cartStore.restrictedItems.map((item, index) => {
116
+ var _a, _b;
117
+ const itemImg = item.imageUrl;
118
+ return (h("tr", { class: "zonos--cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt:
119
+ // Use matched item name if available
120
+ ((_a = item.matchedItem) === null || _a === void 0 ? void 0 : _a.name) ||
121
+ item.name ||
122
+ `Restricted item ${index + 1}`, onError: () => {
123
+ this.errorImages = [...this.errorImages, itemImg];
124
+ }, src: itemImg, style: {
125
+ 'min-width': '40px',
126
+ }, width: 40 })) : (h("img", { alt: item.name || `Restricted item ${index + 1}`, src: emptyItemImg, width: 40 }))), h("td", { class: "zonos--column zonos--cart-item-name" }, h("zonos-text", { type: "label" }, ((_b = item.matchedItem) === null || _b === void 0 ? void 0 : _b.name) || item.name), h("zonos-text", { type: "caption" }, item.restriction.reason)), h("td", { class: "zonos--column zonos--cart-item-price" }, h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
127
+ amount: item.amount * item.quantity * rate,
128
+ currency: cartStore.currency,
129
+ })))));
130
+ }))))));
131
+ }
132
+ static get assetsDirs() { return ["assets"]; }
133
+ };
134
+ ZonosCartRestrictedItems.style = ZonosCartRestrictedItemsStyle0;
135
+
51
136
  const InfoIcon = `<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org/2000/svg">
52
137
  <path fill-rule="evenodd" clip-rule="evenodd" d="M1.96704 8.00065C1.96704 4.31875 4.93024 1.33398 8.58554 1.33398C12.2408 1.33398 15.204 4.31875 15.204 8.00065C15.204 11.6826 12.2408 14.6673 8.58554 14.6673C4.93024 14.6673 1.96704 11.6825 1.96704 8.00065Z" fill="#C5C6CA"/>
53
138
  <path fill-rule="evenodd" clip-rule="evenodd" d="M8.58543 4.66016C8.95096 4.66016 9.24728 4.95863 9.24728 5.32682V5.33349C9.24728 5.70168 8.95096 6.00016 8.58543 6.00016C8.2199 6.00016 7.92358 5.70168 7.92358 5.33349V5.32682C7.92358 4.95863 8.2199 4.66016 8.58543 4.66016ZM8.58543 7.33349C8.95096 7.33349 9.24728 7.63197 9.24728 8.00016V10.6668C9.24728 11.035 8.95096 11.3335 8.58543 11.3335C8.2199 11.3335 7.92358 11.035 7.92358 10.6668V8.00016C7.92358 7.63197 8.2199 7.33349 8.58543 7.33349Z" fill="#4D505A"/>
@@ -63,6 +148,9 @@ const ZonosCartSubtotal = class {
63
148
  }
64
149
  render() {
65
150
  const showDutyTaxesInfo = cartStore.step === 'payment' || cartStore.step === 'shipping';
151
+ // Show 0 for subtotal and total when all items are restricted
152
+ const total = cartStoreHasOneEligibleItem() ? cartStore.total : 0;
153
+ const subtotal = cartStoreHasOneEligibleItem() ? cartStore.subtotal : 0;
66
154
  const renderShippingInfo = () => {
67
155
  if (!cartStore.selectedShippingOption) {
68
156
  return (h(Fragment, null, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Shipping')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('No shipping method selected'))));
@@ -70,7 +158,7 @@ const ZonosCartSubtotal = class {
70
158
  return (h(Fragment, null, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cartStore.selectedShippingOption.displayName), cartStore.selectedShippingOptionTransitTime && (h("zonos-text", { class: "zonos--caption", type: "caption" }, cartStore.selectedShippingOptionTransitTime, ' ', translate('business days')))));
71
159
  };
72
160
  return (h(Host, { class: "zonos--cart-subtotal zonos--elements" }, h("table", { class: "zonos--cart-table" }, h("tr", { class: "zonos--row zonos--cart-subtotal" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { type: "semiBoldLabel" }, translate('Cart subtotal'))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
73
- amount: cartStore.subtotal,
161
+ amount: subtotal,
74
162
  currency: cartStore.currency,
75
163
  })))), h("tr", { class: "zonos--row zonos--cart-shipping" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, renderShippingInfo()), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cartStore.shipping
76
164
  ? formatCurrency({
@@ -83,7 +171,7 @@ const ZonosCartSubtotal = class {
83
171
  currency: cartStore.currency,
84
172
  })
85
173
  : '-', cartStore.isSelectedShippingGuarantee && (h("zonos-badge", null, translate('Guaranteed'))))))), h("tr", { class: "zonos--row zonos--cart-pay-total" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Order total'))), h("td", { class: "zonos--column" }, h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
86
- amount: cartStore.total,
174
+ amount: total,
87
175
  currency: cartStore.currency,
88
176
  })))))));
89
177
  }
@@ -306,7 +394,7 @@ const ZonosCheckoutFooter = class {
306
394
  };
307
395
  ZonosCheckoutFooter.style = ZonosCheckoutFooterStyle0;
308
396
 
309
- const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:24px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:20px;overflow:auto;padding:5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:8px}.sc-zonos-checkout-payment-h .zonos--error-banner.sc-zonos-checkout-payment{margin-bottom:16px}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-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-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;margin-top:12px;background:var(--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}";
397
+ const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:24px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:20px;overflow:auto;padding:5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:8px}.sc-zonos-checkout-payment-h .zonos--error-banner.sc-zonos-checkout-payment{margin-bottom:16px}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-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-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-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-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;margin-top:12px;background:var(--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}";
310
398
  const ZonosCheckoutPaymentStyle0 = zonosCheckoutPaymentCss;
311
399
 
312
400
  const ZonosCheckoutPayment = class {
@@ -450,6 +538,111 @@ const ZonosCheckoutProgressTabs = class {
450
538
  };
451
539
  ZonosCheckoutProgressTabs.style = ZonosCheckoutProgressTabsStyle0;
452
540
 
541
+ 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;">
542
+ <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>
543
+ <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>
544
+ </svg>`;
545
+
546
+ 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;">
547
+ <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>
548
+ <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>
549
+ </svg>`;
550
+
551
+ 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;">
552
+ <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>
553
+ <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>
554
+ </svg>`;
555
+
556
+ 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)}";
557
+ const ZonosConfirmDialogStyle0 = zonosConfirmDialogCss;
558
+
559
+ const ZonosConfirmDialog = class {
560
+ constructor(hostRef) {
561
+ registerInstance(this, hostRef);
562
+ this.confirmClicked = createEvent(this, "confirmClicked", 7);
563
+ this.cancelClicked = createEvent(this, "cancelClicked", 7);
564
+ this.clickOutsideDialogHandler = (event) => {
565
+ if (event.target === event.currentTarget && !this.noClickOutside) {
566
+ this.closeDialogHandler();
567
+ }
568
+ };
569
+ this.dialogTitle = translate('Are you sure?');
570
+ this.dialogIntent = 'info';
571
+ this.dialogSubtitle = '';
572
+ this.submitBtnColor = undefined;
573
+ this.dialogConfirmBtnText = undefined;
574
+ this.dialogCancelBtnText = undefined;
575
+ this.isMobile = false;
576
+ this.dialogOpen = false;
577
+ this.noClickOutside = false;
578
+ }
579
+ handleKeyDown(ev) {
580
+ if (ev.key === 'Escape') {
581
+ this.closeDialogHandler();
582
+ }
583
+ }
584
+ focusDialog() {
585
+ if (this.dialogOpen) {
586
+ setTimeout(() => {
587
+ var _a, _b;
588
+ // Focus on a non tabable element (tabIndex=-1), so we will be able to tab to other tabable elements
589
+ (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.zonos--backdrop')) === null || _b === void 0 ? void 0 : _b.focus();
590
+ }, 100);
591
+ }
592
+ }
593
+ confirmDialogHandler() {
594
+ // Only do the action if the dialog is open
595
+ if (!this.dialogOpen) {
596
+ return;
597
+ }
598
+ // Emit confirm event
599
+ this.confirmClicked.emit();
600
+ }
601
+ closeDialogHandler() {
602
+ // Only do the action if the dialog is open
603
+ if (!this.dialogOpen) {
604
+ return;
605
+ }
606
+ // Emit cancel event
607
+ this.cancelClicked.emit();
608
+ }
609
+ renderIcon() {
610
+ switch (this.dialogIntent) {
611
+ case 'info':
612
+ return (h("zonos-icon", { content: HelpDuotoneIcon, iconColor: 'blue-800' }));
613
+ case 'danger':
614
+ return (h("zonos-icon", { content: ExclamationMarkDuotoneIcon, iconColor: 'red-800' }));
615
+ case 'warn':
616
+ return (h("zonos-icon", { content: WarningDuotoneIcon, iconColor: 'orange-800' }));
617
+ }
618
+ }
619
+ getButtonConfirmVariant() {
620
+ switch (this.dialogIntent) {
621
+ case 'warn':
622
+ return 'warning';
623
+ case 'danger':
624
+ return 'danger';
625
+ default:
626
+ return 'primary';
627
+ }
628
+ }
629
+ render() {
630
+ this.focusDialog();
631
+ const borderStyle = getBorderRadius();
632
+ // Get theme for the update dialog, inherit from the theme, no from this component theme
633
+ const theme = getZonosStoreTheme(zonosStore.appearance.theme);
634
+ return (h(Host, { key: '9adab1c77e8087cfbb92a52e66d12f1b1917bf7e', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-theme": theme, style: {
635
+ '--border-radius': borderStyle,
636
+ '--font-family': zonosStoreFontFamily(),
637
+ } }, h("div", { key: 'c5b40120ff7b3c4684eb65fb5ef6f8ffa157f98f', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'c7cf4d2839cb42a064b4303bdefdfe4fed116b2a', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '30256495401f4967371e923055dfe9efed8cb6b7', class: "zonos--confirm-dialog", onBlur: () => {
638
+ this.focusDialog();
639
+ } }, h("div", { key: '6121ab29b80d233f9ca47aaf66725fe91ae6827c', class: "wrapper" }, h("div", { key: '8fbb75eca3ee163b57c60159d5c5374382f3fa33', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '56376add713778af1df087c0f9f4b8d90065caa2', class: "content" }, h("div", { key: '4f31ad7d42127c5350a64b86ae12fde42a350422', class: "title" }, h("zonos-text", { key: '7a5dc82d3f2250c1b3a3403e116736cedcf63f51', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '87b04af2b1984a8cf205b6fa0acf0320f56342e7', class: "subtitle" }, h("zonos-text", { key: '53d0157655b1d8193a0f698e41442b676d9e0ca6', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '4b410f4a4079a25549bef228c3b9a81a64fe20e2', class: "footer" }, h("zonos-button", { key: '5a8ffb99756bd142605c564df381bfb9e72d5d78', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText), h("zonos-button", { key: '61c2b8272202f316ec09441ab64428c557073c9d', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
640
+ }
641
+ static get assetsDirs() { return ["assets"]; }
642
+ get el() { return getElement(this); }
643
+ };
644
+ ZonosConfirmDialog.style = ZonosConfirmDialogStyle0;
645
+
453
646
  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%}";
454
647
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
455
648
 
@@ -565,6 +758,8 @@ const ZonosCustomerInfo = class {
565
758
  this.isMobile = false;
566
759
  this.defaultAddress = null;
567
760
  this.showErrorBanner = false;
761
+ this.shippingCountry = '';
762
+ this.isCheckingForRestrictedItems = false;
568
763
  this.isValidatingAddress = false;
569
764
  this.invalidShippingCharacterList = null;
570
765
  this.invalidBillingCharacterList = null;
@@ -596,10 +791,22 @@ const ZonosCustomerInfo = class {
596
791
  return invalidList;
597
792
  }
598
793
  render() {
599
- var _a;
794
+ var _a, _b;
600
795
  if (!stripeStore.stripeElements) {
601
796
  return null;
602
797
  }
798
+ // init the shipping country when shipping address is available
799
+ if (!this.shippingCountry && stripeStore.stripeAddressEventData) {
800
+ this.shippingCountry =
801
+ (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
802
+ }
803
+ if (stripeStore.stripeAddressEventData &&
804
+ this.shippingCountry !==
805
+ stripeStore.stripeAddressEventData.value.address.country) {
806
+ // reset the shipping country if it's different from the current shipping address
807
+ this.shippingCountry =
808
+ stripeStore.stripeAddressEventData.value.address.country;
809
+ }
603
810
  const showBilling = !stripeStore.stripeShippingSameAsBilling;
604
811
  // Get theme for the update dialog, inherit from the theme, no from this component theme
605
812
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
@@ -607,7 +814,7 @@ const ZonosCustomerInfo = class {
607
814
  if (this.showErrorBanner) {
608
815
  this.showErrorBanner = !this.handleValidate();
609
816
  }
610
- return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: (_a = this.defaultAddress) === null || _a === void 0 ? void 0 : _a.email, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
817
+ return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: (_b = this.defaultAddress) === null || _b === void 0 ? void 0 : _b.email, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
611
818
  stripeStore.stripeShippingSameAsBilling = e.detail;
612
819
  } }), h("zonos-collapse", { collapsed: !showBilling }, h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Billing address'), type: "billing" })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
613
820
  // use primary type when on mobile mode
@@ -647,6 +854,7 @@ const ZonosReview = class {
647
854
  this.isMobile = isCheckoutMobile(this.mobile);
648
855
  }
649
856
  render() {
857
+ const total = cartStoreHasOneEligibleItem() ? cartStore.total : 0;
650
858
  const titleTextType = this.isMobile ? 'boldSubheader' : 'semiBoldLabel';
651
859
  const totalTextType = this.isMobile
652
860
  ? 'boldSubheader'
@@ -666,7 +874,7 @@ const ZonosReview = class {
666
874
  'zonos--review zonos--elements',
667
875
  this.isMobile && 'mobile',
668
876
  ]) }, h("div", { class: "zonos--title" }, h("zonos-text", { textColor: titleTextColor, type: titleTextType }, translate('Pay'), " ", zonosStore.organizationName), renderCollapseIcon()), h("div", { class: "zonos--total-pay" }, h("zonos-text", { type: totalTextType }, formatCurrency({
669
- amount: cartStore.total,
877
+ amount: total,
670
878
  currency: cartStore.currency,
671
879
  })))));
672
880
  }
@@ -773,4 +981,4 @@ const ZonosShipping = class {
773
981
  };
774
982
  ZonosShipping.style = ZonosShippingStyle0;
775
983
 
776
- export { ZonosCartItems as zonos_cart_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 };
984
+ 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,11 @@
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-02f5c2ea.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-ba38e1ac.js';
1
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-3b46f3c3.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-cc593c2b.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-e50f903f.js';
5
5
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
6
6
  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';
7
+ import { g as getBorderRadius } from './getBorderRadius-d244b4b1.js';
8
+ import { i as isDarkColor } from './isDarkColor-39a36e82.js';
9
9
  import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
10
10
 
11
11
  /**
@@ -283,7 +283,7 @@ const MessageIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
283
283
  </svg>
284
284
  `;
285
285
 
286
- const zonosCheckoutCss = ".sc-zonos-checkout-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:32px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--zonos-elements-gray-0));border-right:1px solid var(--zonos-elements-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--zonos-elements-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--zonos-elements-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 8px 8px}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:24px}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:24px;top:24px;z-index:2}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:76px;margin-bottom:8px}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--zonos-elements-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:32px}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:12px;padding-bottom:76px}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:0px}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:16px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--zonos-elements-border);border-radius:var(--border-radius, var(--zonos-elements-radius-10));background-color:var(--zonos-elements-gray-50);padding:12px;margin-top:32px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:8px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}";
286
+ const zonosCheckoutCss = ".sc-zonos-checkout-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:32px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--zonos-elements-gray-0));border-right:1px solid var(--zonos-elements-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--zonos-elements-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--zonos-elements-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 8px 8px}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:24px}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:24px;top:24px;z-index:2}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:76px;margin-bottom:8px}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--zonos-elements-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:32px}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:12px;padding-bottom:76px}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:0}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:16px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--zonos-elements-border);border-radius:var(--border-radius, var(--zonos-elements-radius-10));background-color:var(--zonos-elements-gray-50);padding:12px;margin-top:32px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:8px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}";
287
287
  const ZonosCheckoutStyle0 = zonosCheckoutCss;
288
288
 
289
289
  const ZonosCheckout = class {
@@ -333,6 +333,7 @@ const ZonosCheckout = class {
333
333
  this.domesticRedirectedBtnSelector = '#zonos--domestic-redirected-checkout-button';
334
334
  this.legacyCheckoutHiddenBtnSelector = '#legacy-checkout-hidden-button';
335
335
  this.isLegacyCheckout = false;
336
+ this.confirmDialogOpen = false;
336
337
  }
337
338
  /**
338
339
  * Init cart info handler event
@@ -341,10 +342,27 @@ const ZonosCheckout = class {
341
342
  const cartItems = e.detail;
342
343
  void cartStoreUpdateItems(cartItems);
343
344
  }
345
+ async handleKeyPress(e) {
346
+ if (e.key === 'Escape') {
347
+ void this.closeDialogHandler();
348
+ }
349
+ }
344
350
  /**
345
351
  * Close dialog action
346
352
  */
347
- async closeDialogHandler() {
353
+ async closeDialogHandler(props) {
354
+ var _a, _b;
355
+ if (!this.open) {
356
+ // Do nothing if the checkout is not even open
357
+ return;
358
+ }
359
+ // Only proceed when user select confirmed.
360
+ if (!(props === null || props === void 0 ? void 0 : props.confirmed)) {
361
+ this.confirmDialogOpen = true;
362
+ return;
363
+ }
364
+ // Close the confirm dialog
365
+ this.confirmDialogOpen = false;
348
366
  submitGtag('zonos-checkout-close');
349
367
  this.open = this.forceDialogOpen || false;
350
368
  if (!this.preview && cartStore.step === 'finish') {
@@ -355,6 +373,10 @@ const ZonosCheckout = class {
355
373
  cartStore.step = 'customer-info';
356
374
  // reset the tab item, so that user needs to click on Continue button to re-quote the landed cost if needed.
357
375
  cartStoreResetTabItems();
376
+ /**
377
+ * Trigger callback when the checkout is closed
378
+ */
379
+ (_b = (_a = zonosStore.checkoutSettings).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
358
380
  }
359
381
  async buildCartAndInit() {
360
382
  // if tempCartUUID is provided, use it instead of buildCartDetail
@@ -745,7 +767,7 @@ const ZonosCheckout = class {
745
767
  } }), h("zonos-collapse", {
746
768
  // only collapsible on mobile
747
769
  collapsed: this.collapseReviewMobile && this.isMobile
748
- }, h("zonos-cart-items", null), this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", null), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))), !this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", null), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))))), (cartStore.step === 'finish' || cartStore.step === 'error') && (h("div", { class: "zonos--done", "data-theme": rightSideTheme }, h("div", { class: "zonos--header" }, renderLogo(), h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.handleFinishClick(), theme: rightSideTheme })), h("zonos-checkout-finish", { borderRadius: style, onCloseClick: () => this.handleFinishClick(), overrideNotification: cartStore.step === 'error' && !!cartStore.error
770
+ }, h("zonos-cart-items", null), this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", null), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))), h("zonos-cart-restricted-items", null), !this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", null), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))))), (cartStore.step === 'finish' || cartStore.step === 'error') && (h("div", { class: "zonos--done", "data-theme": rightSideTheme }, h("div", { class: "zonos--header" }, renderLogo(), h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.handleFinishClick(), theme: rightSideTheme })), h("zonos-checkout-finish", { borderRadius: style, onCloseClick: () => this.handleFinishClick(), overrideNotification: cartStore.step === 'error' && !!cartStore.error
749
771
  ? Object.assign(Object.assign({}, cartStore.error), { type: 'error' }) : undefined, storybookForceStatus: this.storybookPaymentStatusOverride }))), h("zonos-checkout-footer", { "data-theme": rightSideTheme, mobile: this.isMobile,
750
772
  /**
751
773
  * For this component, use slot instead of passing JSX through prop of other component. Because
@@ -759,7 +781,11 @@ const ZonosCheckout = class {
759
781
  hasFooter && 'has-footer',
760
782
  this.preview && 'preview',
761
783
  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()))));
784
+ ]) }, 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: () => {
785
+ this.confirmDialogOpen = false;
786
+ },
787
+ // Mark user selected confirm to close the dialog
788
+ onConfirmClicked: () => this.closeDialogHandler({ confirmed: true }) })));
763
789
  }
764
790
  static get assetsDirs() { return ["assets"]; }
765
791
  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,8 @@
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-02f5c2ea.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 { v as handleFetch, d as logError, w as isValidSelector, a as log, k as stripeStore, x as initLocalizationStore, b as localizationStoreUpdateSelectedCountryCode } from './cart-cc593c2b.js';
3
+ import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-32e33a45.js';
4
+ import './isDarkColor-39a36e82.js';
5
+ import './getBorderRadius-d244b4b1.js';
6
6
 
7
7
  const getZonosSettings = async () => {
8
8
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/zonos-settings`;
@@ -263,7 +263,7 @@ const ZonosController = class {
263
263
  zonosStore.organizationName = organizationName;
264
264
  }
265
265
  render() {
266
- return h(Host, { key: 'c607814c97ec998ef3e56ccdb28ef0369daf9ff3', class: "zonos--elements" });
266
+ return h(Host, { key: '129317aa410d96319846670a1aaae29490993b19', class: "zonos--elements" });
267
267
  }
268
268
  };
269
269
  ZonosController.style = ZonosControllerStyle0;
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, H as Host, d as getElement } from './index-e063389c.js';
2
- import { l as localizationStore } from './cart-02f5c2ea.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-cc593c2b.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 './isDarkColor-39a36e82.js';
6
+ import './getBorderRadius-d244b4b1.js';
7
7
 
8
8
  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
9
  const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
@@ -1,10 +1,10 @@
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-02f5c2ea.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 { b as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './cart-cc593c2b.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 './getBorderRadius-d244b4b1.js';
8
8
 
9
9
  /**
10
10
  * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
@@ -1824,9 +1824,9 @@ const ZonosCountrySelect = class {
1824
1824
  const filteredCountries = this.inputValue
1825
1825
  ? fuseObject.map(country => country.item)
1826
1826
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
1827
- return (h(Host, { key: '1b37f326e23e3afaba1428cc23add2e5c425f0b9', class: "zonos--elements", style: {
1827
+ return (h(Host, { key: '67675ff9b37f110026ced223509104eb8ad805c0', class: "zonos--elements", style: {
1828
1828
  '--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 })))))))));
1829
+ } }, h("div", { key: '83d69dde89f0fafadf344ca0be017f43c468f154', class: "zonos--country-select" }, h("zonos-v-stack", { key: '8262345817217ba3f27ecf433ff56712b8018ae7', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '80ef94a9a2b1d7bdd835a9b31b09663f28b0532a', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: 'd3151d1287ee98b697e35f1f755694b250f089a3', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'f98ff12368e49125f7fc2409f84bcbaef2143809', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
1830
1830
  }
1831
1831
  get ele() { return getElement(this); }
1832
1832
  };
@@ -1843,9 +1843,9 @@ const ZonosCustomMessage = class {
1843
1843
  }
1844
1844
  render() {
1845
1845
  const messageWithLinks = formatStringWithLinks(this.message);
1846
- return (h(Host, { key: 'c2cec226eb9236205d0c4b234bb393e4663d982f', class: "zonos--elements", style: {
1846
+ return (h(Host, { key: '7d3c45852c97272a3606321dad09c6433dfc664c', class: "zonos--elements", style: {
1847
1847
  '--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 }))))));
1848
+ } }, this.message && (h("zonos-card", { key: '53b64b2faea9d06fd66365f80efe3b9d26aab5b6', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '2bfc437f100084a1e661bf823e20be72a0ab616d', class: "zonos--flex-message" }, h("zonos-icon", { key: '5c0f5da248ddb25a69a3db46b85e8e0e4d481101', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'aabbcc00b1b50d29a3e6f48938b50c7b64d250dc', innerHTML: messageWithLinks }))))));
1849
1849
  }
1850
1850
  };
1851
1851
  ZonosCustomMessage.style = ZonosCustomMessageStyle0;
@@ -1877,9 +1877,9 @@ const ZonosHelloDialogFooter = class {
1877
1877
  const primaryColor = (_a = this.appearanceSettings) === null || _a === void 0 ? void 0 : _a.colorPrimary;
1878
1878
  const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
1879
1879
  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: {
1880
+ return (h(Host, { key: '714c0ccdaab553158a4990e24e471e0a0be64655', class: "zonos--elements" }, h("div", { key: '4c177b9120aee7ccdc242bb656399e1597b35f28', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
1881
1881
  '--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)))));
1882
+ } }, 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
1883
  }
1884
1884
  };
1885
1885
  ZonosHelloDialogFooter.style = ZonosHelloDialogFooterStyle0;