@zonos/elements 1.3.280 → 1.3.282

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 (355) hide show
  1. package/dist/cjs/{TaxId-12acedde.js → TaxId-cd9d490e.js} +1 -1
  2. package/dist/cjs/{cart-0fa312a5.js → cart-dc31b242.js} +3 -2
  3. package/dist/cjs/{collect-f9c4ca7c.js → collect-463ab3d7.js} +2 -2
  4. package/dist/cjs/getMissingRequiredShippingFields-7cd21100.js +50 -0
  5. package/dist/cjs/{hasInclusivePrice-95431bca.js → hasInclusivePrice-d14b9d71.js} +1 -1
  6. package/dist/cjs/index.cjs.js +8 -8
  7. package/dist/cjs/{invoice-ce757565.js → invoice-8c995041.js} +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{localization-7fded969.js → localization-491121ad.js} +320 -80
  10. package/dist/cjs/{paypal-57ab3ab6.js → paypal-2a4c374c.js} +2 -2
  11. package/dist/cjs/{placeTestOrder-35e0d3bd.js → placeTestOrder-a940a2e9.js} +2 -2
  12. package/dist/cjs/{renderCheckoutCurrency-41d48407.js → renderCheckoutCurrency-ab39875a.js} +2 -2
  13. package/dist/cjs/{shouldRenderTaxIdInput-b8abf6de.js → shouldRenderTaxIdInput-7d19556c.js} +1 -1
  14. package/dist/cjs/{zonos-address-display_8.cjs.entry.js → zonos-address-completion-dialog_7.cjs.entry.js} +143 -151
  15. package/dist/cjs/zonos-address-display_2.cjs.entry.js +150 -0
  16. package/dist/cjs/zonos-address_4.cjs.entry.js +75 -14
  17. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  19. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  20. package/dist/cjs/zonos-card_5.cjs.entry.js +10 -10
  21. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +97 -25
  22. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
  26. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +20 -20
  27. package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
  28. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  31. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  32. package/dist/cjs/zonos-elements.cjs.js +1 -1
  33. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
  34. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  35. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  36. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -9
  37. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +15 -15
  38. package/dist/cjs/zonos-invoice.cjs.entry.js +5 -5
  39. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  40. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  41. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  42. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +4 -4
  43. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  44. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  45. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  46. package/dist/collection/collection-manifest.json +1 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.css +105 -0
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js +341 -0
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +5 -5
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
  52. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
  53. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  54. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +52 -2
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  60. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  61. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  62. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
  63. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  64. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  65. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  66. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  67. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  68. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  69. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  70. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  71. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  72. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  73. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  74. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  75. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  76. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  77. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  78. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  79. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  80. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  81. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  82. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  83. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  84. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  85. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  86. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  87. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  88. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  89. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  90. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  91. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  92. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  93. package/dist/collection/components/main/zonos-controller.js +1 -1
  94. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  95. package/dist/collection/components/store/checkout/stripe.js +1 -1
  96. package/dist/collection/components/store/translationStore/strings.arabic.js +16 -4
  97. package/dist/collection/components/store/translationStore/strings.base.js +16 -4
  98. package/dist/collection/components/store/translationStore/strings.chinese.js +16 -4
  99. package/dist/collection/components/store/translationStore/strings.danish.js +16 -4
  100. package/dist/collection/components/store/translationStore/strings.dutch.js +16 -4
  101. package/dist/collection/components/store/translationStore/strings.french.js +16 -4
  102. package/dist/collection/components/store/translationStore/strings.german.js +16 -4
  103. package/dist/collection/components/store/translationStore/strings.hebrew.js +16 -4
  104. package/dist/collection/components/store/translationStore/strings.indonesian.js +16 -4
  105. package/dist/collection/components/store/translationStore/strings.italian.js +16 -4
  106. package/dist/collection/components/store/translationStore/strings.japanese.js +16 -4
  107. package/dist/collection/components/store/translationStore/strings.korean.js +16 -4
  108. package/dist/collection/components/store/translationStore/strings.norwegian.js +16 -4
  109. package/dist/collection/components/store/translationStore/strings.polish.js +16 -4
  110. package/dist/collection/components/store/translationStore/strings.portuguese.js +16 -4
  111. package/dist/collection/components/store/translationStore/strings.russian.js +16 -4
  112. package/dist/collection/components/store/translationStore/strings.spanish.js +16 -4
  113. package/dist/collection/components/store/translationStore/strings.swedish.js +16 -4
  114. package/dist/collection/components/store/translationStore/strings.turkish.js +16 -4
  115. package/dist/collection/components/store/translationStore/strings.vietnamese.js +16 -4
  116. package/dist/collection/components/stripe/zonos-address/zonos-address.js +11 -6
  117. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  118. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  119. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  120. package/dist/collection/components/utils/checkout/applyAddressCompletion.js +23 -0
  121. package/dist/collection/components/utils/checkout/buildAddressContacts.js +57 -0
  122. package/dist/collection/components/utils/checkout/getMissingRequiredShippingFields.js +44 -0
  123. package/dist/collection/components/utils/taxIdValidationResult.js +6 -3
  124. package/dist/collection/types/checkout/TaxId.js +1 -1
  125. package/dist/esm/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  126. package/dist/esm/{cart-4699e6ab.js → cart-5282f6c1.js} +3 -3
  127. package/dist/esm/{collect-24cc2e12.js → collect-fdbab973.js} +2 -2
  128. package/dist/esm/getMissingRequiredShippingFields-bdeecbff.js +47 -0
  129. package/dist/esm/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-161e203f.js} +1 -1
  130. package/dist/esm/index.js +8 -8
  131. package/dist/esm/{invoice-575dc93d.js → invoice-cf6ad79e.js} +2 -2
  132. package/dist/esm/loader.js +1 -1
  133. package/dist/esm/{localization-da2f407f.js → localization-0953a048.js} +320 -80
  134. package/dist/esm/{paypal-d4436abd.js → paypal-7c82eac4.js} +2 -2
  135. package/dist/esm/{placeTestOrder-d87b2c6a.js → placeTestOrder-6a746207.js} +2 -2
  136. package/dist/esm/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-44f897a1.js} +2 -2
  137. package/dist/esm/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  138. package/dist/esm/{zonos-address-display_8.entry.js → zonos-address-completion-dialog_7.entry.js} +144 -151
  139. package/dist/esm/zonos-address-display_2.entry.js +145 -0
  140. package/dist/esm/zonos-address_4.entry.js +75 -14
  141. package/dist/esm/zonos-airwallex-payment.entry.js +4 -4
  142. package/dist/esm/zonos-badge.entry.js +3 -3
  143. package/dist/esm/zonos-button_3.entry.js +3 -3
  144. package/dist/esm/zonos-card_5.entry.js +10 -10
  145. package/dist/esm/zonos-cart-items_12.entry.js +98 -26
  146. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  147. package/dist/esm/zonos-checkout.entry.js +4 -4
  148. package/dist/esm/zonos-collapse.entry.js +2 -2
  149. package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
  150. package/dist/esm/zonos-collect-finish_6.entry.js +20 -20
  151. package/dist/esm/zonos-collect.entry.js +5 -5
  152. package/dist/esm/zonos-component.entry.js +1 -1
  153. package/dist/esm/zonos-controller.entry.js +4 -4
  154. package/dist/esm/zonos-country-flag.entry.js +1 -1
  155. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  156. package/dist/esm/zonos-elements.js +1 -1
  157. package/dist/esm/zonos-hello-dialog.entry.js +7 -7
  158. package/dist/esm/zonos-hello.entry.js +1 -1
  159. package/dist/esm/zonos-input.entry.js +4 -4
  160. package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -9
  161. package/dist/esm/zonos-invoice-finish_5.entry.js +15 -15
  162. package/dist/esm/zonos-invoice.entry.js +5 -5
  163. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  164. package/dist/esm/zonos-link.entry.js +1 -1
  165. package/dist/esm/zonos-logo.entry.js +2 -2
  166. package/dist/esm/zonos-policy-consent_2.entry.js +4 -4
  167. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  168. package/dist/esm/zonos-tooltip.entry.js +2 -2
  169. package/dist/esm/zonos-v-stack.entry.js +2 -2
  170. package/dist/esm-es5/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  171. package/dist/esm-es5/{cart-4699e6ab.js → cart-5282f6c1.js} +1 -1
  172. package/dist/esm-es5/{collect-24cc2e12.js → collect-fdbab973.js} +1 -1
  173. package/dist/esm-es5/getMissingRequiredShippingFields-bdeecbff.js +1 -0
  174. package/dist/esm-es5/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-161e203f.js} +1 -1
  175. package/dist/esm-es5/index.js +1 -1
  176. package/dist/esm-es5/{invoice-575dc93d.js → invoice-cf6ad79e.js} +1 -1
  177. package/dist/esm-es5/loader.js +1 -1
  178. package/dist/esm-es5/localization-0953a048.js +1 -0
  179. package/dist/esm-es5/{paypal-d4436abd.js → paypal-7c82eac4.js} +1 -1
  180. package/dist/esm-es5/{placeTestOrder-d87b2c6a.js → placeTestOrder-6a746207.js} +1 -1
  181. package/dist/esm-es5/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-44f897a1.js} +1 -1
  182. package/dist/esm-es5/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  183. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -0
  184. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -0
  185. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  186. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  187. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  188. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  189. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  190. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  191. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  192. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  193. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  194. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  195. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  196. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  197. package/dist/esm-es5/zonos-component.entry.js +1 -1
  198. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  199. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  200. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  201. package/dist/esm-es5/zonos-elements.js +1 -1
  202. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  203. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  204. package/dist/esm-es5/zonos-input.entry.js +1 -1
  205. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  206. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  207. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  208. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  209. package/dist/esm-es5/zonos-link.entry.js +1 -1
  210. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  211. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  212. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  213. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  214. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  215. package/dist/scripts/index.d.ts +125 -2
  216. package/dist/scripts/index.js +1 -1
  217. package/dist/scripts/loadZonos.js +1 -1
  218. package/dist/scripts/zonos.js +1 -1
  219. package/dist/types/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.d.ts +75 -0
  220. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +16 -0
  221. package/dist/types/components/store/checkout/stripe.d.ts +4 -0
  222. package/dist/types/components/store/translationStore/strings.arabic.d.ts +14 -2
  223. package/dist/types/components/store/translationStore/strings.base.d.ts +14 -2
  224. package/dist/types/components/store/translationStore/strings.chinese.d.ts +14 -2
  225. package/dist/types/components/store/translationStore/strings.danish.d.ts +14 -2
  226. package/dist/types/components/store/translationStore/strings.dutch.d.ts +14 -2
  227. package/dist/types/components/store/translationStore/strings.french.d.ts +14 -2
  228. package/dist/types/components/store/translationStore/strings.german.d.ts +14 -2
  229. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +14 -2
  230. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +14 -2
  231. package/dist/types/components/store/translationStore/strings.italian.d.ts +14 -2
  232. package/dist/types/components/store/translationStore/strings.japanese.d.ts +14 -2
  233. package/dist/types/components/store/translationStore/strings.korean.d.ts +14 -2
  234. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +14 -2
  235. package/dist/types/components/store/translationStore/strings.polish.d.ts +14 -2
  236. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +14 -2
  237. package/dist/types/components/store/translationStore/strings.russian.d.ts +14 -2
  238. package/dist/types/components/store/translationStore/strings.spanish.d.ts +14 -2
  239. package/dist/types/components/store/translationStore/strings.swedish.d.ts +14 -2
  240. package/dist/types/components/store/translationStore/strings.turkish.d.ts +14 -2
  241. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +14 -2
  242. package/dist/types/components/utils/checkout/applyAddressCompletion.d.ts +25 -0
  243. package/dist/types/components/utils/checkout/buildAddressContacts.d.ts +21 -0
  244. package/dist/types/components/utils/checkout/getMissingRequiredShippingFields.d.ts +35 -0
  245. package/dist/types/components/utils/taxIdValidationResult.d.ts +1 -1
  246. package/dist/types/components.d.ts +97 -0
  247. package/dist/types/types/checkout/TaxId.d.ts +1 -1
  248. package/dist/zonos-elements/index.esm.js +1 -1
  249. package/dist/zonos-elements/{p-b330e451.system.js → p-0287f9cd.system.js} +1 -1
  250. package/dist/zonos-elements/{p-5aee5de5.system.entry.js → p-05cb0a0d.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-3f90cb36.entry.js → p-0fb4e032.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-dbd5be5d.entry.js → p-10584546.entry.js} +1 -1
  253. package/dist/zonos-elements/p-193fc2da.entry.js +1 -0
  254. package/dist/zonos-elements/p-1977f4b5.js +1 -0
  255. package/dist/zonos-elements/p-1cf5e2ce.system.entry.js +1 -0
  256. package/dist/zonos-elements/p-1cf76dd3.entry.js +1 -0
  257. package/dist/zonos-elements/p-1d31b966.system.js +1 -0
  258. package/dist/zonos-elements/{p-0ad6a92b.system.entry.js → p-21489ff1.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-734d646b.entry.js → p-21f7d57b.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-b8c019b9.system.js → p-2394b186.system.js} +1 -1
  261. package/dist/zonos-elements/{p-5b54f10c.entry.js → p-23eee868.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-b5f67807.entry.js → p-26bf0c31.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-40a0c1d3.system.js → p-28ee0860.system.js} +1 -1
  264. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  265. package/dist/zonos-elements/{p-6bea1787.entry.js → p-30cfc9f4.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-aff7112b.entry.js → p-323279b8.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-8c54aaec.entry.js → p-32b53999.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-c15476a1.system.entry.js → p-333f6018.system.entry.js} +1 -1
  269. package/dist/zonos-elements/p-3642dd99.entry.js +1 -0
  270. package/dist/zonos-elements/p-3c62acbd.js +1 -0
  271. package/dist/zonos-elements/{p-fc2d5dd9.entry.js → p-4417475f.entry.js} +1 -1
  272. package/dist/zonos-elements/p-543b25f9.entry.js +1 -0
  273. package/dist/zonos-elements/{p-1992fd91.entry.js → p-55c5977b.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-72c1bd64.entry.js → p-56e9a29e.entry.js} +1 -1
  275. package/dist/zonos-elements/p-59518657.entry.js +1 -0
  276. package/dist/zonos-elements/p-5953208b.js +1 -0
  277. package/dist/zonos-elements/p-5987dea1.js +1 -0
  278. package/dist/zonos-elements/{p-a44591f6.system.entry.js → p-5a37683b.system.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-36b311f9.system.entry.js → p-5b11bbca.system.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-b05da593.system.entry.js → p-5d6b018c.system.entry.js} +1 -1
  281. package/dist/zonos-elements/p-63b462dd.system.entry.js +1 -0
  282. package/dist/zonos-elements/p-646e6b47.system.entry.js +1 -0
  283. package/dist/zonos-elements/{p-81c4f04a.system.entry.js → p-68631285.system.entry.js} +1 -1
  284. package/dist/zonos-elements/{p-12452213.entry.js → p-6f874ed9.entry.js} +1 -1
  285. package/dist/zonos-elements/p-71fc8a22.js +1 -0
  286. package/dist/zonos-elements/{p-c4a479ad.entry.js → p-76e36d6d.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-a3d3ce5d.system.entry.js → p-781b3345.system.entry.js} +1 -1
  288. package/dist/zonos-elements/{p-275fa2da.js → p-7ab15d20.js} +1 -1
  289. package/dist/zonos-elements/{p-48d55793.system.js → p-7ac8846c.system.js} +1 -1
  290. package/dist/zonos-elements/{p-96e7b465.js → p-7c70e0c7.js} +1 -1
  291. package/dist/zonos-elements/p-8418aa07.entry.js +1 -0
  292. package/dist/zonos-elements/{p-99e8743e.system.entry.js → p-8fa3a8f8.system.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-944148db.system.entry.js → p-8fb15a6b.system.entry.js} +1 -1
  294. package/dist/zonos-elements/{p-6451537c.entry.js → p-95042e71.entry.js} +1 -1
  295. package/dist/zonos-elements/p-987b5d8f.js +1 -0
  296. package/dist/zonos-elements/{p-2b8345d8.system.js → p-989cb22b.system.js} +1 -1
  297. package/dist/zonos-elements/{p-2dbdf883.system.js → p-a4eddf6c.system.js} +1 -1
  298. package/dist/zonos-elements/p-a553e132.js +1 -0
  299. package/dist/zonos-elements/{p-6197aa73.system.entry.js → p-aa1f3060.system.entry.js} +1 -1
  300. package/dist/zonos-elements/p-aa37f436.system.entry.js +1 -0
  301. package/dist/zonos-elements/{p-788a16bb.system.js → p-ab61ef19.system.js} +1 -1
  302. package/dist/zonos-elements/{p-362215b6.system.entry.js → p-b91a8f31.system.entry.js} +1 -1
  303. package/dist/zonos-elements/{p-15097876.system.entry.js → p-b93013f7.system.entry.js} +1 -1
  304. package/dist/zonos-elements/{p-6b361d2b.js → p-bcf5cffb.js} +1 -1
  305. package/dist/zonos-elements/{p-807e7ebc.entry.js → p-c121b2b8.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-66223935.system.entry.js → p-c12ca8fe.system.entry.js} +1 -1
  307. package/dist/zonos-elements/p-c5bfe522.system.js +1 -0
  308. package/dist/zonos-elements/{p-732e7373.system.entry.js → p-c634546a.system.entry.js} +1 -1
  309. package/dist/zonos-elements/{p-f3759c70.js → p-c8bc4ede.js} +1 -1
  310. package/dist/zonos-elements/{p-a7f0e824.system.entry.js → p-c8df5eee.system.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-43a14674.system.entry.js → p-c9e44c77.system.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-cf0c8c77.system.entry.js → p-ca9231a0.system.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-3e058b4e.entry.js → p-cb376f03.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-016b5bde.system.js → p-cd3f7fd7.system.js} +1 -1
  315. package/dist/zonos-elements/{p-b6cd6e62.system.entry.js → p-d06486ba.system.entry.js} +1 -1
  316. package/dist/zonos-elements/{p-db9cb522.entry.js → p-d0767f88.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-46f88c11.system.entry.js → p-d2cb99ee.system.entry.js} +1 -1
  318. package/dist/zonos-elements/p-ddd0e703.system.entry.js +1 -0
  319. package/dist/zonos-elements/{p-85796e67.entry.js → p-dfd83cff.entry.js} +1 -1
  320. package/dist/zonos-elements/{p-4efd7178.entry.js → p-e0cbc7c7.entry.js} +1 -1
  321. package/dist/zonos-elements/{p-b6049eef.system.entry.js → p-e101b0de.system.entry.js} +1 -1
  322. package/dist/zonos-elements/{p-dd6da3de.entry.js → p-e3d0d8ff.entry.js} +1 -1
  323. package/dist/zonos-elements/{p-a30f03d6.system.js → p-e57f862d.system.js} +1 -1
  324. package/dist/zonos-elements/{p-1bb85ff1.entry.js → p-e6e3a303.entry.js} +1 -1
  325. package/dist/zonos-elements/{p-5d4201d5.entry.js → p-ef2c264c.entry.js} +1 -1
  326. package/dist/zonos-elements/{p-564c7bb5.system.entry.js → p-f1298203.system.entry.js} +1 -1
  327. package/dist/zonos-elements/{p-0adab1d5.system.entry.js → p-f1aa60fd.system.entry.js} +1 -1
  328. package/dist/zonos-elements/{p-429ab545.system.entry.js → p-f1dbeb85.system.entry.js} +1 -1
  329. package/dist/zonos-elements/{p-2825431d.entry.js → p-f2431e47.entry.js} +1 -1
  330. package/dist/zonos-elements/{p-29c1703c.system.entry.js → p-f2511b86.system.entry.js} +1 -1
  331. package/dist/zonos-elements/{p-08e78d79.entry.js → p-fa80a973.entry.js} +1 -1
  332. package/dist/zonos-elements/p-fb8dc23f.system.js +1 -0
  333. package/dist/zonos-elements/{p-f59514e9.entry.js → p-fc45b3a5.entry.js} +1 -1
  334. package/dist/zonos-elements/{p-3068247c.system.entry.js → p-fdd7ec44.system.entry.js} +1 -1
  335. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  336. package/package.json +1 -1
  337. package/dist/esm-es5/localization-da2f407f.js +0 -1
  338. package/dist/esm-es5/zonos-address-display_8.entry.js +0 -1
  339. package/dist/zonos-elements/p-19f4e77a.entry.js +0 -1
  340. package/dist/zonos-elements/p-28b1c189.entry.js +0 -1
  341. package/dist/zonos-elements/p-39e2642f.js +0 -1
  342. package/dist/zonos-elements/p-3f8f4c78.js +0 -1
  343. package/dist/zonos-elements/p-63a383f4.js +0 -1
  344. package/dist/zonos-elements/p-65fe75e1.entry.js +0 -1
  345. package/dist/zonos-elements/p-67b2e46c.js +0 -1
  346. package/dist/zonos-elements/p-7237ec6f.system.entry.js +0 -1
  347. package/dist/zonos-elements/p-75da4ba0.entry.js +0 -1
  348. package/dist/zonos-elements/p-79b6070a.js +0 -1
  349. package/dist/zonos-elements/p-94329e56.js +0 -1
  350. package/dist/zonos-elements/p-a5afcea1.system.entry.js +0 -1
  351. package/dist/zonos-elements/p-c2014d57.system.entry.js +0 -1
  352. package/dist/zonos-elements/p-dff1d3be.entry.js +0 -1
  353. package/dist/zonos-elements/p-ec53c436.system.entry.js +0 -1
  354. package/dist/zonos-elements/p-f55a2352.system.js +0 -1
  355. package/dist/zonos-elements/p-fd2d4d04.system.js +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-fee716c9.js');
4
- const cart = require('./cart-0fa312a5.js');
5
- const localization = require('./localization-7fded969.js');
4
+ const cart = require('./cart-dc31b242.js');
5
+ const localization = require('./localization-491121ad.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const isContrastColor = require('./isContrastColor-ef24b7aa.js');
8
8
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-0fa312a5.js');
4
- const localization = require('./localization-7fded969.js');
3
+ const cart = require('./cart-dc31b242.js');
4
+ const localization = require('./localization-491121ad.js');
5
5
  const handleFetch = require('./handleFetch-954f30e1.js');
6
6
 
7
7
  const placeTestOrder = async () => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-0fa312a5.js');
4
- const localization = require('./localization-7fded969.js');
3
+ const cart = require('./cart-dc31b242.js');
4
+ const localization = require('./localization-491121ad.js');
5
5
 
6
6
  const getDisplayCurrency = () => {
7
7
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const ShortAddressCode = require('./ShortAddressCode-bec338b0.js');
4
- const TaxId = require('./TaxId-12acedde.js');
4
+ const TaxId = require('./TaxId-cd9d490e.js');
5
5
 
6
6
  const isInShortAddressCodeCountry = (countryCode) => {
7
7
  return ShortAddressCode.countryRequireShortAddressCode.includes(countryCode);
@@ -3,48 +3,150 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const localization = require('./localization-7fded969.js');
7
- const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
8
- const cart = require('./cart-0fa312a5.js');
6
+ const localization = require('./localization-491121ad.js');
7
+ const zonosStore = require('./zonosStore-fee716c9.js');
8
+ const getMissingRequiredShippingFields = require('./getMissingRequiredShippingFields-7cd21100.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
+ const cart = require('./cart-dc31b242.js');
11
+ const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
12
+ const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
13
  const getBorderRadius = require('./getBorderRadius-4da24d7c.js');
11
- const zonosStore = require('./zonosStore-fee716c9.js');
12
- const RemoveIcon$2 = require('./RemoveIcon-081ac073.js');
13
14
  const throttle = require('./throttle-34f7abf1.js');
14
15
  const handleFetch = require('./handleFetch-954f30e1.js');
15
- const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-b8abf6de.js');
16
+ const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-7d19556c.js');
16
17
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
17
- const TaxId = require('./TaxId-12acedde.js');
18
+ const TaxId = require('./TaxId-cd9d490e.js');
18
19
  const helpers = require('./helpers-5bdbb68c.js');
19
20
  const isDarkColor = require('./isDarkColor-ebc74b4d.js');
20
21
  require('./debounce-9a712c79.js');
21
22
  require('./ShortAddressCode-bec338b0.js');
22
23
 
23
- const zonosAddressDisplayCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--title{margin-bottom:12px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:4px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-line{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .zonos--address-line zonos-text+zonos-text::before{content:\", \";color:var(--zonos-elements-gray-1000);margin-right:4px}:host .zonos--country-flag{width:20px;height:14px;border-radius:2px;margin:1px;position:relative;overflow:hidden;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);margin-right:8px;z-index:10;justify-self:center}";
24
- const ZonosAddressDisplayStyle0 = zonosAddressDisplayCss;
24
+ const zonosAddressCompletionDialogCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:24px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-bottom:5px;gap:20px;-ms-scroll-chaining:chained;overscroll-behavior:auto}:host .zonos--selected-address{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--completion-fields{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}:host .zonos--completion-name-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--completion-name-row zonos-input{-ms-flex:1;flex:1}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--completion-name-row{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--submit-btn{-ms-flex-order:1;order:1}";
25
+ const ZonosAddressCompletionDialogStyle0 = zonosAddressCompletionDialogCss;
25
26
 
26
- const ZonosAddressDisplay = class {
27
+ const ZonosAddressCompletionDialog = class {
27
28
  constructor(hostRef) {
28
29
  index.registerInstance(this, hostRef);
30
+ this.closeCompletionDialog = index.createEvent(this, "closeCompletionDialog", 7);
31
+ this.completionSubmit = index.createEvent(this, "completionSubmit", 7);
32
+ /**
33
+ * Whether or not the continue button is loading
34
+ */
35
+ this.continueLoading = false;
36
+ /**
37
+ * Whether or not the dialog is open
38
+ */
39
+ this.dialogOpen = false;
40
+ /**
41
+ * Whether or not the dialog is rendered in mobile mode
42
+ */
43
+ this.isMobile = false;
44
+ /**
45
+ * The Zonos-required fields still missing from the selected address
46
+ */
47
+ this.missingFields = [];
48
+ /**
49
+ * Local values for the captured fields, keyed by the missing field key
50
+ */
51
+ this.values = {};
52
+ /**
53
+ * Whether to show validation errors (after a submit attempt with empty fields)
54
+ */
55
+ this.showError = false;
56
+ this.isFieldMissing = (key) => this.missingFields.some(field => field.key === key);
57
+ /**
58
+ * A captured field is valid when it has a value. Postal code additionally enforces the same
59
+ * minimum length as the landed-cost readiness / detection check, so the dialog can't emit a
60
+ * too-short postal code that would still be considered "missing" downstream.
61
+ */
62
+ this.isFieldValid = (key) => {
63
+ var _a, _b, _c;
64
+ if (key === 'postal_code') {
65
+ return (((_b = (_a = this.values.postal_code) === null || _a === void 0 ? void 0 : _a.trim().length) !== null && _b !== void 0 ? _b : 0) >= getMissingRequiredShippingFields.MIN_POSTAL_CODE_LENGTH);
66
+ }
67
+ return !!((_c = this.values[key]) === null || _c === void 0 ? void 0 : _c.trim());
68
+ };
69
+ this.getFieldError = (key) => this.showError && !this.isFieldValid(key);
70
+ this.updateValue = (key, value) => {
71
+ this.values = Object.assign(Object.assign({}, this.values), { [key]: value });
72
+ // Once the customer starts fixing the fields, re-evaluate whether errors remain
73
+ if (this.showError) {
74
+ this.showError = !this.isComplete();
75
+ }
76
+ };
77
+ this.isComplete = () => this.missingFields.every(field => {
78
+ // A missing last name also requires a first name (both are edited together).
79
+ if (field.key === 'lastName') {
80
+ return this.isFieldValid('firstName') && this.isFieldValid('lastName');
81
+ }
82
+ return this.isFieldValid(field.key);
83
+ });
84
+ this.submitHandler = () => {
85
+ if (!this.isComplete()) {
86
+ this.showError = true;
87
+ return;
88
+ }
89
+ this.completionSubmit.emit(this.values);
90
+ };
91
+ this.renderInput = ({ key, label, }) => (index.h("zonos-input", { class: `zonos--completion-input zonos--completion-${key}`, inputLabel: label, inputValue: this.values[key] || '', isError: this.getFieldError(key), onInputChange: (event) => this.updateValue(key, event.detail) }));
92
+ this.renderField = (key, label) => {
93
+ if (!this.isFieldMissing(key)) {
94
+ return null;
95
+ }
96
+ return this.renderInput({ key, label });
97
+ };
98
+ /**
99
+ * When the last name is missing, render both first and last name inputs so the customer can
100
+ * correct the full name together (Link's single name input often yields only a first name).
101
+ */
102
+ this.renderNameFields = () => {
103
+ if (!this.isFieldMissing('lastName')) {
104
+ return null;
105
+ }
106
+ return (index.h("div", { class: "zonos--completion-name-row" }, this.renderInput({
107
+ key: 'firstName',
108
+ label: localization.translate('First name'),
109
+ }), this.renderInput({
110
+ key: 'lastName',
111
+ label: localization.translate('Last name'),
112
+ })));
113
+ };
29
114
  }
30
- render() {
115
+ /**
116
+ * The dialog stays mounted, so clear any previously-entered values whenever it opens.
117
+ * Without this, values typed for one address could be reapplied to a different address
118
+ * the next time the dialog opens.
119
+ */
120
+ // Only reset on open, not on `shippingAddress`: the parent rebuilds that prop object on
121
+ // every render, and watching it would wipe in-progress input while the dialog is open.
122
+ async watchDialogOpen(isOpen) {
31
123
  var _a;
32
- const { city, country, email, line1, line2, name, phone, postal_code, state, } = this.currentAddress;
33
- const shippingZoneCountry = (_a = localization.localizationStore.shippingZoneCountries) === null || _a === void 0 ? void 0 : _a[country];
34
- const renderEnteredInfoText = ({ bold, content, }) => {
35
- const textColor = containsNonLatinChars.isTextContainsNonLatinChars(content)
36
- ? 'red-600'
37
- : 'gray-1000';
38
- return (index.h("zonos-text", { textColor: textColor, type: bold ? 'boldLabel' : 'body' }, content));
39
- };
40
- return (index.h(index.Host, { class: "zonos--address-form zonos--elements" }, index.h("div", { class: "zonos--title" }, index.h("zonos-text", { textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
41
- ? localization.translate('Shipping')
42
- : localization.translate('Billing'))), index.h("div", { class: "zonos--address-group" }, name && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ bold: true, content: name }))), email && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: email }))), phone && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: phone }))), line1 && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: line1 }))), line2 && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: line2 }))), index.h("div", { class: "zonos--address-line" }, city && renderEnteredInfoText({ content: city }), state && renderEnteredInfoText({ content: state }), postal_code && renderEnteredInfoText({ content: postal_code })), shippingZoneCountry && (index.h("div", { class: "zonos--address-line" }, index.h("zonos-country-flag", { class: "zonos--country-flag", countryCode: shippingZoneCountry.code }), ' ', renderEnteredInfoText({
43
- content: shippingZoneCountry.displayName,
44
- }))))));
124
+ if (isOpen) {
125
+ // Wait for shippingAddress prop to be updated before resetting the values
126
+ await new Promise(resolve => setTimeout(resolve, 100));
127
+ // When the last name is missing we also let the customer edit the first name, so prefill
128
+ // it from the current (often first-name-only) address value.
129
+ const { firstName } = cart.extractName({ name: (_a = this.shippingAddress) === null || _a === void 0 ? void 0 : _a.name });
130
+ this.values = this.isFieldMissing('lastName') ? { firstName } : {};
131
+ this.showError = false;
132
+ }
45
133
  }
134
+ render() {
135
+ const submitBtnColor = this.submitBtnColor || zonosStore.zonosStore.appearance.colorSecondary;
136
+ // dialog background is white, so a white button needs an outline to stay visible
137
+ const submitBtnType = submitBtnColor === '#ffffff'
138
+ ? 'outline'
139
+ : this.submitBtnType || 'standard';
140
+ return (index.h(index.Host, { key: '9a89376022ebd8f5793882fb13a3502deca001f8', class: classes.classes([
141
+ 'zonos--address-completion-dialog zonos--elements',
142
+ this.isMobile && 'mobile',
143
+ ]) }, index.h("zonos-dialog", { key: '00ff3912a7bf8d021441440f0de2825b49f7b78e', isLoading: false, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeCompletionDialog.emit(), open: this.dialogOpen, width: "568px" }, index.h("div", { key: '1ba1cd333bd1f362a77f1f114ac50c309ed5ccd6', class: "zonos--body" }, index.h("div", { key: 'ccf9f54ff4b26e5443ff5c8276e5c5d36aac332b', class: "zonos--dialog-header" }, index.h("div", { key: '01e073aa559c4040a6599aefb3bf8cb967928929', class: "zonos--dialog-title" }, index.h("zonos-text", { key: '8472a72f6274646bb87d150c82722f93c861ae72', type: "title" }, localization.translate('Complete your shipping address')), index.h("zonos-button", { key: 'e9a6c2cbc3d64bf87e94850c1126119687f75e7d', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon$1.RemoveIcon }), noBackground: true, onClick: () => this.closeCompletionDialog.emit(), title: "Close checkout dialog" })), index.h("zonos-text", { key: 'c9ff785b746810f0c266071ee9a3f433ad645a2b' }, localization.translate('This saved address is missing information required to ship internationally. Please add the details below.'))), index.h("div", { key: '86e2b0da7dbcd1370b80fc8c53e8a7de4c11ed74', class: "zonos--group" }, index.h("div", { key: '1542bb7f0b9df16f5ce36d38dc9408a1b3e836a7', class: "zonos--selected-address" }, index.h("zonos-text", { key: '2572e3e44a9c81f6694e4939de39951ec659c8fa', class: "zonos--selected-label", type: "semiBoldLabel" }, localization.translate('Selected address')), index.h("zonos-address-display", { key: '8781622b3d057cfbdba59e13d5fabf76f3a7a7dd', addressType: "shipping", currentAddress: this.shippingAddress })), index.h("div", { key: 'ac3a5f6566c2179045a784b661b7e82c7b371a3f', class: "zonos--completion-fields" }, this.renderNameFields(), this.renderField('state', localization.translate('State/Province')), this.renderField('postal_code', localization.translate('Postal code')))), index.h("div", { key: '1007d7f6c671fbd94dd3027332d2d7ac1edeef6e', class: "zonos--group-btn" }, index.h("div", { key: '22fe2c8d03d7b3c680eea2b4afebf1868b5b6c0b', class: "zonos--button-wrapper" }, index.h("zonos-button", { key: 'dbcf1aa175992bff762ecc36108bf94090b7df0e', class: "zonos--cancel-btn", onClick: () => this.closeCompletionDialog.emit(), variant: "subtle" }, localization.translate('Cancel')), index.h("zonos-button", { key: '63b0f966565e86ea9bac640b2fa690287c94b11f', backgroundColor: this.submitBtnColor, class: "zonos--submit-btn", loading: this.continueLoading, onClick: () => this.submitHandler(), size: "sm", variant: submitBtnType }, localization.translate('Save and continue'))))))));
144
+ }
145
+ static get watchers() { return {
146
+ "dialogOpen": ["watchDialogOpen"]
147
+ }; }
46
148
  };
47
- ZonosAddressDisplay.style = ZonosAddressDisplayStyle0;
149
+ ZonosAddressCompletionDialog.style = ZonosAddressCompletionDialogStyle0;
48
150
 
49
151
  const zonosAddressFormCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--title{margin-bottom:20px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:1px}:host .zonos--contact{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--address-row>*{-ms-flex:1;flex:1}:host .zonos--address{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}";
50
152
  const ZonosAddressFormStyle0 = zonosAddressFormCss;
@@ -76,15 +178,15 @@ const ZonosAddressForm = class {
76
178
  const { firstName, lastName } = cart.extractName({
77
179
  name,
78
180
  });
79
- return (index.h(index.Host, { key: '45d9837eb2fa1799686031aae55b7a5b56683f44', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '021635c62ccf3956099fbc4111a7cccacf87e6a1', class: "zonos--title" }, index.h("zonos-text", { key: 'f8a7f4423c3e1fe85d99f7a4baadfd8ec92c5e91', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
181
+ return (index.h(index.Host, { key: '44edb799473e427b08e17d6d20f08a028a3cc688', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '99c2d5b58464bebd7bb3e5c2a4ac3aa04d80b47f', class: "zonos--title" }, index.h("zonos-text", { key: '5a86048c7d768b795db1416182e2b22458924601', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
80
182
  ? localization.translate('Shipping')
81
- : localization.translate('Billing'))), index.h("div", { key: '3989feba67adc4921dc27f4b245391c933065d78', class: "zonos--address-group" }, index.h("div", { key: '909ef4b8f44902a16334051fb8cde1edd4f87f8b', class: "zonos--contact" }, index.h("zonos-text", { key: '301eb71e15a331a7423d547486b668009ce19bd0', type: "label" }, localization.translate('Contact')), index.h("zonos-input", { key: '473f22469d0628db079298abb02a18f908225350', class: "zonos--form-email", inputLabel: localization.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: 'eaa32450d028bfd8a197a3b1172a1316d6080962', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: '82b3b902539cd2eb67bddfccc9146f91f7061538', class: "zonos--form-first-name", inputLabel: localization.translate('First name'), inputValue: firstName, isError: containsNonLatinChars.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
183
+ : localization.translate('Billing'))), index.h("div", { key: 'a907058d970cb6674b403f79c0946e36a0e61f69', class: "zonos--address-group" }, index.h("div", { key: 'fad2f71614c6963015f95e74e297c58a4adee95b', class: "zonos--contact" }, index.h("zonos-text", { key: '0c661050b1b95da56af1046fac39c7fa6de18685', type: "label" }, localization.translate('Contact')), index.h("zonos-input", { key: '3e35a5f9d4bca373ef9403da0de53ea895aca61f', class: "zonos--form-email", inputLabel: localization.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: '093cdcc771b4ade381a392a1023d9d037d4e3e35', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: 'e9d957551070a855179b78da655beaf3b4e731e2', class: "zonos--form-first-name", inputLabel: localization.translate('First name'), inputValue: firstName, isError: containsNonLatinChars.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
82
184
  key: 'name',
83
185
  value: `${e.detail} ${lastName}`,
84
- }) }), index.h("zonos-input", { key: 'cf32104d4d575eb9d5843cf5d8701aebb02c4e3c', class: "zonos--form-last-name", inputLabel: localization.translate('Last name'), inputValue: lastName, isError: containsNonLatinChars.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
186
+ }) }), index.h("zonos-input", { key: '0b86805e872607d367446f5e6ef074974f9840c2', class: "zonos--form-last-name", inputLabel: localization.translate('Last name'), inputValue: lastName, isError: containsNonLatinChars.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
85
187
  key: 'name',
86
188
  value: `${firstName} ${e.detail}`,
87
- }) }))), index.h("div", { key: 'd570f7e1849bcc9a8e1bc13a15195bb5ee9bf8f2', class: "zonos--address" }, index.h("zonos-text", { key: 'dec7847247e97ffa3dde6d04a1ccd17347d9e8c1', type: "label" }, localization.translate('Address')), index.h("zonos-input", { key: '595f540e7feb57dada3ebcf93202a75492ff447f', class: "zonos--form-country", inputLabel: localization.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: 'c7fa3e7736ceee4c23195179f9e50b9cd43aa25a', class: "zonos--form-line1", inputLabel: localization.translate('Address line 1'), inputValue: line1, isError: containsNonLatinChars.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: 'e455495f96667f7228a5ed51fc67d080df0b7991', class: "zonos--form-line2", inputLabel: localization.translate('Address line 2'), inputValue: line2, isError: containsNonLatinChars.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: '5312af811975d9a2e2809896d51ce992317af54d', class: "zonos--address-row" }, index.h("zonos-input", { key: '49537f098a054787550266d6a7698e6fe102cad6', class: "zonos--form-city", inputLabel: localization.translate('City'), inputValue: city, isError: containsNonLatinChars.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (index.h("zonos-input", { key: '06d1c8c2e21300c300ddfbdaa4abaffef006793d', class: "zonos--form-state", inputLabel: localization.translate('State/Province'), inputValue: state, isError: containsNonLatinChars.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), index.h("zonos-input", { key: '94081e11a3184e86eef1add3eee392c3e3afb11a', class: "zonos--form-postal-code", inputLabel: localization.translate('Postal code'), inputValue: postal_code, isError: containsNonLatinChars.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: '00ce7f0931179ff2c86e2da0fc82eed71cd6af19', class: "zonos--form-phone", inputLabel: localization.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
189
+ }) }))), index.h("div", { key: '6447f55e8d173d18cd46cba829527c4d487631a2', class: "zonos--address" }, index.h("zonos-text", { key: '18ef146cc44f658524c6535e851281b62249fa26', type: "label" }, localization.translate('Address')), index.h("zonos-input", { key: '95cfb115c4304e8a142ab2e952fc8c4bfbe39e43', class: "zonos--form-country", inputLabel: localization.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: 'e3774713ec0b0e861981aa9f2c62f6749125e174', class: "zonos--form-line1", inputLabel: localization.translate('Address line 1'), inputValue: line1, isError: containsNonLatinChars.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: '0d1fce85ad42e42b266ad411d4e3a96e4b8b8bf3', class: "zonos--form-line2", inputLabel: localization.translate('Address line 2'), inputValue: line2, isError: containsNonLatinChars.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: '5d5e740b711ff65a0366a6c4891f22684f32c74b', class: "zonos--address-row" }, index.h("zonos-input", { key: '8f124a91865c59096ba5c624ec229a3d1545c985', class: "zonos--form-city", inputLabel: localization.translate('City'), inputValue: city, isError: containsNonLatinChars.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (index.h("zonos-input", { key: '50e852953ba88573929a200bce4c67fab2146245', class: "zonos--form-state", inputLabel: localization.translate('State/Province'), inputValue: state, isError: containsNonLatinChars.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), index.h("zonos-input", { key: '74c17f1d1a77af3f90100a6832b2c8fe7bdca24e', class: "zonos--form-postal-code", inputLabel: localization.translate('Postal code'), inputValue: postal_code, isError: containsNonLatinChars.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: '20775c4a944fe9305446898109637e5b38229a1d', class: "zonos--form-phone", inputLabel: localization.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
88
190
  }
89
191
  static get watchers() { return {
90
192
  "translatedAddress": ["watchCurrentAddress"]
@@ -92,7 +194,7 @@ const ZonosAddressForm = class {
92
194
  };
93
195
  ZonosAddressForm.style = ZonosAddressFormStyle0;
94
196
 
95
- const RemoveIcon$1 = `<svg color="var(--zonos-elements-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
197
+ const RemoveIcon = `<svg color="var(--zonos-elements-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
96
198
 
97
199
  const zonosAddressSuggestionsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative}:host .wrapper{position:absolute;margin-top:4px;top:100%;left:0;right:0;z-index:3;max-height:300px;overflow-y:auto;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-box-shadow:var(--zonos-elements-shadow-select-active);box-shadow:var(--zonos-elements-shadow-select-active);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;list-style:none;padding:0;background-color:var(--zonos-elements-surface-color)}:host .wrapper .option{padding:8px;background-color:var(--zonos-elements-surface-color);outline:none;border:none;text-align:left}:host .wrapper .option.last-hovered{background-color:var(--zonos-elements-gray-100)}:host .wrapper .option .highlight{font-weight:600;color:var(--zonos-elements-gray-1000)}:host .wrapper>.powered-by{padding:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host .wrapper>.powered-by .powered-by-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:5px;-ms-flex:1;flex:1}:host .wrapper>.suggestion{cursor:pointer}:host .wrapper>.suggestion:hover{background-color:var(--zonos-elements-gray-100)}";
98
200
  const ZonosAddressSuggestionsStyle0 = zonosAddressSuggestionsCss;
@@ -170,9 +272,9 @@ const ZonosAddressSuggestions = class {
170
272
  return segments;
171
273
  }
172
274
  render() {
173
- return (index.h(index.Host, { key: '93cce2d783f3b0eba378027d2450d13451e6ce18', class: "zonos--address-suggestions", role: "group", style: {
275
+ return (index.h(index.Host, { key: '20e095515d18016bd1f538bd345ed58aafe8518f', class: "zonos--address-suggestions", role: "group", style: {
174
276
  '--zonos--border-radius': getBorderRadius.getBorderRadius(),
175
- } }, index.h("ul", { key: 'e577d8dea6fb9a225f8361e5ba48601a74b8614d', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: '8f4c74b030f50ed03133a443e4b9a41869c18571', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: '0288a70a89c25ce227e918ad91db0b77efa42a82', class: "powered-by-container" }, index.h("zonos-text", { key: '2d2fe2711d2b72a4077a417ed37d9b6897184525', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: 'a7ef3f738fc67a03fa2c935c128666945ad838a0', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: 'ebe5ccc2e0315867c4dbe3c030cf4e44312d691c', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
277
+ } }, index.h("ul", { key: 'f43e0820d29fc5ef96ab42402e370dc6ce381e66', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: 'd8ff4f7b53ea5fac8f42f1c13b2255ca2ea5d5e8', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: '2431de3e4e5241e5d74f552051a5d3d4954624a5', class: "powered-by-container" }, index.h("zonos-text", { key: '48de6d435ffef45f60ebb4ef6c4b2eaf5bdee821', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: 'b0e8f2986d4f85daa2fd53b7ea812d296d28a164', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: 'e62245b99bcdc192a4ee98511c8a4a0efad6ea92', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
176
278
  this.localSuggestions = [];
177
279
  } }))), this.localSuggestions.map(suggestion => (
178
280
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -355,7 +457,7 @@ const ZonosAddressUpdateDialog = class {
355
457
  return (index.h(index.Host, { key: '655845cef04f4af526b1a1c4e49243c4f2b4c7f6', class: classes.classes([
356
458
  'zonos--address-update-dialog zonos--elements',
357
459
  this.isMobile && 'mobile',
358
- ]) }, index.h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, index.h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, index.h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, index.h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, index.h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" }, localization.translate('Update your address')), index.h("zonos-button", { key: '474cc2421cd3150daa46bfe215da6ae7df9c6087', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon$2.RemoveIcon }), noBackground: true, onClick: () => this.closeUpdateDialogHandler(), title: "Close checkout dialog" })), index.h("zonos-text", { key: '6d019250cce57e8b30dd790a184df7273bdb234f' }, localization.translate('To ensure delivery all address details must be in Latin characters.'))), index.h("div", { key: '80ee681844f4f4f43fce69d977b634b1fbc3d5f5', class: "zonos--group" }, index.h("zonos-text", { key: '940e510eceec156a74f32de84cf58ffebd796435', class: "zonos--what-you-entered", type: "semiBoldLabel" }, localization.translate('What you entered')), index.h("div", { key: 'f626127f5c399c29ab1022deb66aaee8f8a49601', class: "zonos--address-display-group" }, index.h("zonos-address-display", { key: '9dfcba1037325c3a1f9e82b8e4797e7872dd7e3f', addressType: "shipping", currentAddress: shipping }), billing && (index.h("zonos-address-display", { key: 'fee8ae2c6786d735133c2a0a42f3e3d40d7f9ea9', addressType: "billing", currentAddress: billing }))), index.h("div", { key: '5a82195018ff8cdfd1126f4424062a26c25ee757', class: "zonos--address-form-section" }, index.h("zonos-text", { key: 'f694dfad166697e4c034cea51057133b69b1c144', type: "semiBoldLabel" }, localization.translate('Translated address')), index.h("zonos-address-form", { key: '4a99c841cf4800de43c612cce3d56d956d02c22f', addressType: "shipping", class: "zonos--shipping-address-form", currentAddress: shipping, onAddressChange: e => {
460
+ ]) }, index.h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, index.h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, index.h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, index.h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, index.h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" }, localization.translate('Update your address')), index.h("zonos-button", { key: '474cc2421cd3150daa46bfe215da6ae7df9c6087', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon$1.RemoveIcon }), noBackground: true, onClick: () => this.closeUpdateDialogHandler(), title: "Close checkout dialog" })), index.h("zonos-text", { key: '6d019250cce57e8b30dd790a184df7273bdb234f' }, localization.translate('To ensure delivery all address details must be in Latin characters.'))), index.h("div", { key: '80ee681844f4f4f43fce69d977b634b1fbc3d5f5', class: "zonos--group" }, index.h("zonos-text", { key: '940e510eceec156a74f32de84cf58ffebd796435', class: "zonos--what-you-entered", type: "semiBoldLabel" }, localization.translate('What you entered')), index.h("div", { key: 'f626127f5c399c29ab1022deb66aaee8f8a49601', class: "zonos--address-display-group" }, index.h("zonos-address-display", { key: '9dfcba1037325c3a1f9e82b8e4797e7872dd7e3f', addressType: "shipping", currentAddress: shipping }), billing && (index.h("zonos-address-display", { key: 'fee8ae2c6786d735133c2a0a42f3e3d40d7f9ea9', addressType: "billing", currentAddress: billing }))), index.h("div", { key: '5a82195018ff8cdfd1126f4424062a26c25ee757', class: "zonos--address-form-section" }, index.h("zonos-text", { key: 'f694dfad166697e4c034cea51057133b69b1c144', type: "semiBoldLabel" }, localization.translate('Translated address')), index.h("zonos-address-form", { key: '4a99c841cf4800de43c612cce3d56d956d02c22f', addressType: "shipping", class: "zonos--shipping-address-form", currentAddress: shipping, onAddressChange: e => {
359
461
  const address = e.detail;
360
462
  this.translatedShippingAddressState =
361
463
  this.buildTranslateAddressState({
@@ -1316,10 +1418,10 @@ const ZonosAddress = class {
1316
1418
  this.country = localization.localizationStore.selectedCountryCode;
1317
1419
  }
1318
1420
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1319
- return (index.h(index.Host, { key: 'dae45101b0b661fb0f392507cbc2642c65e72499', class: classes.classes([
1421
+ return (index.h(index.Host, { key: '1e90973654268e1af1e98bf606f71d55c63f5656', class: classes.classes([
1320
1422
  'zonos--address zonos--elements',
1321
1423
  `zonos--${this.type}-address`,
1322
- ]) }, index.h("zonos-text", { key: '73081aa1f08f5617bc10fcd57f057abd3efd0c35', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("slot", { key: '4cfd89cca3254564b51f45a4a29d1f8a13bf03d1', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
1424
+ ]) }, index.h("zonos-text", { key: 'f986a00640502fb262cc424e57f5edb1f4cdbb9c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("slot", { key: '57ae4b8393e350b99112e6a7800a97d6a524d57c', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
1323
1425
  }
1324
1426
  get el() { return index.getElement(this); }
1325
1427
  static get watchers() { return {
@@ -1341,115 +1443,6 @@ const ZonosAddress = class {
1341
1443
  };
1342
1444
  ZonosAddress.style = ZonosCustomAddressStyle0;
1343
1445
 
1344
- const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
1345
-
1346
- const zonosDialogCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:4px;z-index:2147483009;background:var(--zonos-elements-gray-0);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--loading-text,:host .zonos--loading-title{max-width:100%;padding:0 32px;text-align:center}:host .zonos--dialog-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);visibility:hidden}:host .zonos--dialog{position:relative;z-index:2147483008;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;min-height:var(--zonos--min-height, auto);height:var(--zonos--height, auto);width:var(--zonos--width, auto);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));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 .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--zonos-elements-radius-10);-ms-flex-item-align:start;align-self:flex-start}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:2147483008;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:2147483009;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";
1347
- const ZonosDialogStyle0 = zonosDialogCss;
1348
-
1349
- const ZonosDialog = class {
1350
- constructor(hostRef) {
1351
- index.registerInstance(this, hostRef);
1352
- this.closeDialog = index.createEvent(this, "closeDialog", 3);
1353
- /**
1354
- * Whether or not the dialog is open
1355
- * @default false
1356
- */
1357
- this.open = false;
1358
- /**
1359
- * The header text for the dialog
1360
- */
1361
- this.headerText = '';
1362
- /**
1363
- * The width of the dialog
1364
- * @default 460px
1365
- */
1366
- this.width = '460px';
1367
- /**
1368
- * Whether or not to show the header
1369
- * @default false
1370
- */
1371
- this.noHeader = false;
1372
- /**
1373
- * Whether or not to have body padding
1374
- * @default false
1375
- */
1376
- this.noBodyPadding = false;
1377
- /**
1378
- * Whether or not to have body padding
1379
- * @default false
1380
- */
1381
- this.noBorder = false;
1382
- /**
1383
- * Whether or not to show the close button
1384
- * @default false
1385
- */
1386
- this.noCloseButton = false;
1387
- /**
1388
- * Whether or not to close the dialog when clicking outside of it
1389
- * @default false
1390
- */
1391
- this.noClickOutside = false;
1392
- /**
1393
- * Flag to determine if the checkout is on mobile
1394
- */
1395
- this.mobile = false;
1396
- /**
1397
- * Load loading spinner for the dialog or not
1398
- */
1399
- this.isLoading = true;
1400
- this.isMobile = false;
1401
- this.isMobileMode = () => {
1402
- return this.mobile || window.innerWidth <= 768;
1403
- };
1404
- this.closeButtonHandler = () => {
1405
- // Only do the action if the dialog is open
1406
- if (!this.open) {
1407
- return;
1408
- }
1409
- this.closeDialog.emit();
1410
- };
1411
- this.clickOutsideDialogHandler = (event) => {
1412
- if (event.target === event.currentTarget && !this.noClickOutside) {
1413
- this.closeDialog.emit();
1414
- }
1415
- };
1416
- }
1417
- handleWindowResize() {
1418
- this.isMobile = this.isMobileMode();
1419
- }
1420
- handleKeyDown(ev) {
1421
- if (ev.key === 'Escape') {
1422
- this.closeButtonHandler();
1423
- }
1424
- }
1425
- componentDidLoad() {
1426
- this.isMobile = this.isMobileMode();
1427
- }
1428
- render() {
1429
- const borderStyle = getBorderRadius.getBorderRadius({
1430
- overrideBorderStyle: this.borderStyle,
1431
- });
1432
- return (index.h(index.Host, { key: '75ec5025b26d1c68daa95198bfe4defa9b4fccbb', class: classes.classes([
1433
- 'zonos--elements',
1434
- this.open && 'open',
1435
- this.isLoading && 'is-loading',
1436
- this.noBorder && 'no-border',
1437
- this.isMobile && 'mobile',
1438
- ]), style: {
1439
- '--zonos--border-radius': borderStyle,
1440
- '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
1441
- '--zonos--height': this.height || 'initial',
1442
- '--zonos--min-height': this.minHeight || '500px',
1443
- '--zonos--width': this.width,
1444
- } }, index.h("div", { key: '5d10176ce2b772fb8fd29f43ff45eb8ec0e4f891', class: "zonos--backdrop" }), index.h("div", { key: '2aa211aebf328b30d69cc32030964c68d9114380', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: 'ae077f398158ca708065bf3f2cc60c36730e16df', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: 'b11ef43cb4a663495bfd5dfe636df98fb692f2e3', class: "zonos--loading" }, index.h("zonos-spinner", { key: 'df7b43c923a59ab16d56c56034f19e2ebf367c68', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: 'c2a9c49f41272ae535a2dfc3f6c97d91552729a2', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: 'c5a4be389ec0c5c8b9e7b126d69f39b334bd9c7c', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '21884f1a119c2b1d241b746ae27f9ebe68795b94', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '77036606a70a57f250facdd1b95726c35807c151', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: '93eafa70b68ebbc0be89b6cec54aadba9bdb91ef', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), index.h("div", { key: '182ed04b1a14981aa5b679da8a1a556fcc413137', class: classes.classes([
1445
- 'zonos--body',
1446
- this.noBodyPadding && 'zonos--no-body-padding',
1447
- ]) }, index.h("slot", { key: '65ad39c50b318b39e585301de2aeea6ef61db487' })), index.h("slot", { key: 'a60bb6eeee719852350584d6ff983d699f6ae84e', name: "dialog-footer" })))));
1448
- }
1449
- static get assetsDirs() { return ["assets"]; }
1450
- };
1451
- ZonosDialog.style = ZonosDialogStyle0;
1452
-
1453
1446
  // This file is a workaround for a bug in web browsers' "native"
1454
1447
  // ES6 importing system which is uncapable of importing "*.json" files.
1455
1448
  // https://github.com/catamphetamine/libphonenumber-js/issues/239
@@ -7422,24 +7415,24 @@ const ZonosStripePhoneInput = class {
7422
7415
  .filter(Boolean)
7423
7416
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
7424
7417
  : [];
7425
- return (index.h(index.Host, { key: 'e1bde9efe262f4605448b6ae6f9e18070090e6c8', class: classes.classes([
7418
+ return (index.h(index.Host, { key: 'd89450cd871f6220d00b325157e8b9213f1eede6', class: classes.classes([
7426
7419
  'zonos--phone-input zonos--elements',
7427
7420
  isDark && 'dark',
7428
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '17b929a5e37d86964c23f2954bf1aed3ca3e0b4f', class: classes.classes([
7421
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '7ec4d175288776584c2938ecb97ec3ddf862e782', class: classes.classes([
7429
7422
  'zonos--label-wrapper',
7430
7423
  this.disabled && 'disabled',
7431
7424
  this.isFocused && 'focused',
7432
7425
  hasContent && 'has-content',
7433
7426
  this.error && 'has-error',
7434
7427
  this.inputLabel && 'has-label',
7435
- ]) }, index.h("select", { key: '75f827c7fa3bec95a441d75b04f815736f63d075', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7428
+ ]) }, index.h("select", { key: 'e4366c1c6ab1a2368a29948f1766978aa8fa580d', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7436
7429
  var _a;
7437
7430
  return (index.h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
7438
- })), index.h("div", { key: '7299389121bb37f5444c8feecc349fc7663fd645', class: "zonos--input-group" }, index.h("div", { key: 'ffd81d520f2ffeeb0473606ffe529704d0539999', class: "zonos--select-wrapper" }, index.h("div", { key: '66a8c7b1fc41c8ced6ebe2b5d87d93d3fb34283a', class: "zonos--country-select" }, index.h("div", { key: 'e938804c0e0aa9e52810b8d07cb0d7948c451eb5', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: '1883e18a2318bf871e061c744a095dd8e5a905cc', class: "zonos--country-select-selected" }, index.h("div", { key: 'ae46b163ef58d71398c317ed5ceba1844fc52edc', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: 'f4d18cf60a089675852f8f0fca82055fa879a7b7', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: '1724ccaef84c39504ee9f2fb364d38c2b979185d', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'e5c45c7d4ca3fd5244803f083e6fae502e4253fa', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: '9cfb2da1d454c6b9e0a64b4327ce515cf6aa72da', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '8324ec965cf0b637d4d7151728217407307b8707', class: classes.classes([
7431
+ })), index.h("div", { key: 'f24b7bd87a8113d5cd240f3c11f5304a277c4f88', class: "zonos--input-group" }, index.h("div", { key: '3eafacfbe41af7221e9d40646849d6e5d48b1640', class: "zonos--select-wrapper" }, index.h("div", { key: 'cf11e4657375cf81e3c8cfce697c5bd171b93391', class: "zonos--country-select" }, index.h("div", { key: '503b7b08f66b5b875a3adb6b22a3011e19fe610e', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: 'f99b75f25ae1cbb9d05b308b5d4687a650ee7d4c', class: "zonos--country-select-selected" }, index.h("div", { key: '030899619207c8e809ffed56761372b0d83e50d0', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: 'd3661dc8f66fb21d16e5ef686652ef8a966e0a88', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: '23bff50c220aa53dc0182d8ccc0b213b47930cd3', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'aa4cd5be6353f36ea3efd0d7fb7f1816c34ae48b', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: '3ff4a4fc0e0c6d1d8d293a5b09138d1aae445050', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '7f60b7f27c0f2d4ecba6ab9fa36fc0c438b8a16d', class: classes.classes([
7439
7432
  'zonos--input-container',
7440
7433
  this.inputLabel && 'has-label',
7441
7434
  hasContent && 'has-content',
7442
- ]) }, index.h("input", Object.assign({ key: 'eace24d4a50271012b8bb95609842edcc7f8926f' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (index.h("div", { key: '9c1b5249fa2a9041e8c3ed9adbf3de8af4e1f29f', class: "zonos--floated-label" }, index.h("label", { key: '6535de344f98dc6148ef17ffdcb6354f1e1014e1', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: '0d696d74191e3738ceb94e6adb018589fa4ad9f3', textColor: "red-600" }, this.error))));
7435
+ ]) }, index.h("input", Object.assign({ key: 'b821664395945a074682793137940507ece7126b' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (index.h("div", { key: 'e2ccfc80835f3a20fe973c0e1a11314212ab0c00', class: "zonos--floated-label" }, index.h("label", { key: 'b7d96e8332fb7c3cd4f084f76bf472107ae1e73b', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: '0aae60a88c79d3fade222efccd1049a4b130fbbc', textColor: "red-600" }, this.error))));
7443
7436
  }
7444
7437
  get el() { return index.getElement(this); }
7445
7438
  static get watchers() { return {
@@ -7585,11 +7578,10 @@ const ZonosStripeSelect = class {
7585
7578
  };
7586
7579
  ZonosStripeSelect.style = ZonosStripeSelectStyle0;
7587
7580
 
7588
- exports.zonos_address_display = ZonosAddressDisplay;
7581
+ exports.zonos_address_completion_dialog = ZonosAddressCompletionDialog;
7589
7582
  exports.zonos_address_form = ZonosAddressForm;
7590
7583
  exports.zonos_address_suggestions = ZonosAddressSuggestions;
7591
7584
  exports.zonos_address_update_dialog = ZonosAddressUpdateDialog;
7592
7585
  exports.zonos_custom_address = ZonosAddress;
7593
- exports.zonos_dialog = ZonosDialog;
7594
7586
  exports.zonos_stripe_phone_input = ZonosStripePhoneInput;
7595
7587
  exports.zonos_stripe_select = ZonosStripeSelect;