@zonos/elements 1.3.282 → 1.3.284

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 (388) hide show
  1. package/dist/cjs/{cart-dc31b242.js → cart-94908542.js} +4 -4
  2. package/dist/cjs/{collect-463ab3d7.js → collect-0c05e2b4.js} +3 -3
  3. package/dist/cjs/{debounce-9a712c79.js → debounce-7ca3c878.js} +1 -1
  4. package/dist/cjs/{getBorderRadius-4da24d7c.js → getBorderRadius-97fd5e02.js} +1 -1
  5. package/dist/cjs/{getContrastColor-2fb235b8.js → getContrastColor-956dfaf7.js} +2 -2
  6. package/dist/cjs/{getMissingRequiredShippingFields-7cd21100.js → getMissingRequiredShippingFields-124b3f20.js} +1 -1
  7. package/dist/cjs/{hasInclusivePrice-d14b9d71.js → hasInclusivePrice-d0cd2007.js} +1 -1
  8. package/dist/cjs/index.cjs.js +7 -7
  9. package/dist/cjs/{invoice-8c995041.js → invoice-205fb5bc.js} +3 -3
  10. package/dist/cjs/{isContrastColor-ef24b7aa.js → isContrastColor-30f84a91.js} +1 -1
  11. package/dist/cjs/{isDarkColor-ebc74b4d.js → isDarkColor-a6e6fd5e.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/{localization-491121ad.js → localization-fb2ece37.js} +63 -2
  14. package/dist/cjs/{paypal-2a4c374c.js → paypal-45ca5301.js} +5 -5
  15. package/dist/cjs/{placeTestOrder-a940a2e9.js → placeTestOrder-302b6862.js} +2 -2
  16. package/dist/cjs/{renderCheckoutCurrency-ab39875a.js → renderCheckoutCurrency-1b0cd5f2.js} +2 -2
  17. package/dist/cjs/shouldShowLanguageSelect-82985128.js +13 -0
  18. package/dist/cjs/{submitGtag-74762255.js → submitGtag-8a25f001.js} +1 -1
  19. package/dist/cjs/{throttle-34f7abf1.js → throttle-366c204b.js} +2 -2
  20. package/dist/cjs/{updateCheckoutSessionAttributes-f595319d.js → updateCheckoutSessionAttributes-de7b1466.js} +1 -1
  21. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +101 -60
  22. package/dist/cjs/zonos-address-display_2.cjs.entry.js +17 -10
  23. package/dist/cjs/zonos-address_4.cjs.entry.js +13 -13
  24. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-badge.cjs.entry.js +4 -4
  26. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-button_3.cjs.entry.js +6 -6
  28. package/dist/cjs/zonos-card_5.cjs.entry.js +14 -14
  29. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +29 -26
  30. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +8 -8
  31. package/dist/cjs/zonos-checkout.cjs.entry.js +10 -10
  32. package/dist/cjs/zonos-collapse.cjs.entry.js +3 -3
  33. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +9 -9
  34. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +28 -26
  35. package/dist/cjs/zonos-collect.cjs.entry.js +10 -11
  36. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  37. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  38. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-country-select_4.cjs.entry.js +16 -14
  40. package/dist/cjs/zonos-elements.cjs.js +1 -1
  41. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
  42. package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
  43. package/dist/cjs/zonos-input.cjs.entry.js +6 -6
  44. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +11 -11
  45. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +23 -21
  46. package/dist/cjs/zonos-invoice.cjs.entry.js +10 -11
  47. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -7
  48. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  49. package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
  50. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +6 -6
  51. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
  52. package/dist/cjs/zonos-stripe-input.cjs.entry.js +7 -7
  53. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  54. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  55. package/dist/cjs/zonos-v-stack.cjs.entry.js +3 -3
  56. package/dist/cjs/{zonosStore-fee716c9.js → zonosStore-0af0b937.js} +3 -0
  57. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +11 -4
  58. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +8 -4
  59. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  61. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
  62. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +7 -4
  63. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  64. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  65. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  66. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  67. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +7 -4
  68. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  69. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  70. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  71. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  72. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  73. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  74. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  75. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  76. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  77. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  78. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  79. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  80. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  81. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  82. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +3 -3
  83. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  84. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  85. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  86. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  87. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  88. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  89. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  90. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +17 -5
  91. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  92. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  93. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  94. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  95. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  96. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +1 -1
  97. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +6 -3
  98. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -5
  99. package/dist/collection/components/main/zonos-controller.js +1 -1
  100. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  101. package/dist/collection/components/store/hello/localization.js +22 -1
  102. package/dist/collection/components/store/zonosStore.js +3 -0
  103. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  104. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  105. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +52 -48
  106. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  107. package/dist/collection/components/utils/checkout/getAddressCountryOptions.js +23 -0
  108. package/dist/collection/components/utils/getSupportedLanguages.js +17 -0
  109. package/dist/collection/components/utils/shouldShowLanguageSelect.js +8 -0
  110. package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
  111. package/dist/collection/types/generated/graphql.internal.types.js +302 -15
  112. package/dist/esm/{cart-5282f6c1.js → cart-2e407f7b.js} +4 -4
  113. package/dist/esm/{collect-fdbab973.js → collect-19428e18.js} +3 -3
  114. package/dist/esm/{debounce-c8d67b17.js → debounce-84ade9c2.js} +1 -1
  115. package/dist/esm/{getBorderRadius-dc982fe6.js → getBorderRadius-1f7be586.js} +1 -1
  116. package/dist/esm/{getContrastColor-af895b60.js → getContrastColor-4c0ae8c1.js} +2 -2
  117. package/dist/esm/{getMissingRequiredShippingFields-bdeecbff.js → getMissingRequiredShippingFields-719b206f.js} +1 -1
  118. package/dist/esm/{hasInclusivePrice-161e203f.js → hasInclusivePrice-d801be22.js} +1 -1
  119. package/dist/esm/index.js +7 -7
  120. package/dist/esm/{invoice-cf6ad79e.js → invoice-67a47785.js} +3 -3
  121. package/dist/esm/{isContrastColor-089de6ac.js → isContrastColor-9fa0d013.js} +1 -1
  122. package/dist/esm/{isDarkColor-039ef212.js → isDarkColor-939d8e9c.js} +1 -1
  123. package/dist/esm/loader.js +1 -1
  124. package/dist/esm/{localization-0953a048.js → localization-36a4dc22.js} +62 -3
  125. package/dist/esm/{paypal-7c82eac4.js → paypal-6dca6567.js} +5 -5
  126. package/dist/esm/{placeTestOrder-6a746207.js → placeTestOrder-9563c89a.js} +2 -2
  127. package/dist/esm/{renderCheckoutCurrency-44f897a1.js → renderCheckoutCurrency-282384f0.js} +2 -2
  128. package/dist/esm/shouldShowLanguageSelect-328f50e2.js +11 -0
  129. package/dist/esm/{submitGtag-dc54f5b9.js → submitGtag-71c450b6.js} +1 -1
  130. package/dist/esm/{throttle-44bfb6b5.js → throttle-c4c24e86.js} +2 -2
  131. package/dist/esm/{updateCheckoutSessionAttributes-e0a282d9.js → updateCheckoutSessionAttributes-23b222de.js} +1 -1
  132. package/dist/esm/zonos-address-completion-dialog_7.entry.js +101 -60
  133. package/dist/esm/zonos-address-display_2.entry.js +17 -10
  134. package/dist/esm/zonos-address_4.entry.js +13 -13
  135. package/dist/esm/zonos-airwallex-payment.entry.js +6 -6
  136. package/dist/esm/zonos-badge.entry.js +4 -4
  137. package/dist/esm/zonos-banner.entry.js +1 -1
  138. package/dist/esm/zonos-button_3.entry.js +6 -6
  139. package/dist/esm/zonos-card_5.entry.js +14 -14
  140. package/dist/esm/zonos-cart-items_12.entry.js +28 -25
  141. package/dist/esm/zonos-checkbox_2.entry.js +8 -8
  142. package/dist/esm/zonos-checkout.entry.js +10 -10
  143. package/dist/esm/zonos-collapse.entry.js +3 -3
  144. package/dist/esm/zonos-collect-cart-items_3.entry.js +9 -9
  145. package/dist/esm/zonos-collect-finish_6.entry.js +27 -25
  146. package/dist/esm/zonos-collect.entry.js +9 -10
  147. package/dist/esm/zonos-component.entry.js +1 -1
  148. package/dist/esm/zonos-controller.entry.js +7 -7
  149. package/dist/esm/zonos-country-flag.entry.js +2 -2
  150. package/dist/esm/zonos-country-select_4.entry.js +15 -13
  151. package/dist/esm/zonos-elements.js +1 -1
  152. package/dist/esm/zonos-hello-dialog.entry.js +7 -7
  153. package/dist/esm/zonos-hello.entry.js +3 -3
  154. package/dist/esm/zonos-input.entry.js +6 -6
  155. package/dist/esm/zonos-invoice-cart-items_2.entry.js +11 -11
  156. package/dist/esm/zonos-invoice-finish_5.entry.js +22 -20
  157. package/dist/esm/zonos-invoice.entry.js +9 -10
  158. package/dist/esm/zonos-language-select_2.entry.js +6 -7
  159. package/dist/esm/zonos-link.entry.js +1 -1
  160. package/dist/esm/zonos-logo.entry.js +3 -3
  161. package/dist/esm/zonos-policy-consent_2.entry.js +6 -6
  162. package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
  163. package/dist/esm/zonos-stripe-input.entry.js +7 -7
  164. package/dist/esm/zonos-text.entry.js +1 -1
  165. package/dist/esm/zonos-tooltip.entry.js +2 -2
  166. package/dist/esm/zonos-v-stack.entry.js +3 -3
  167. package/dist/esm/{zonosStore-b7d3f9b0.js → zonosStore-eca1e364.js} +3 -0
  168. package/dist/esm-es5/{cart-5282f6c1.js → cart-2e407f7b.js} +1 -1
  169. package/dist/esm-es5/{collect-fdbab973.js → collect-19428e18.js} +1 -1
  170. package/dist/esm-es5/{debounce-c8d67b17.js → debounce-84ade9c2.js} +1 -1
  171. package/dist/esm-es5/{getBorderRadius-dc982fe6.js → getBorderRadius-1f7be586.js} +1 -1
  172. package/dist/esm-es5/{getContrastColor-af895b60.js → getContrastColor-4c0ae8c1.js} +1 -1
  173. package/dist/esm-es5/{getMissingRequiredShippingFields-bdeecbff.js → getMissingRequiredShippingFields-719b206f.js} +1 -1
  174. package/dist/esm-es5/{hasInclusivePrice-161e203f.js → hasInclusivePrice-d801be22.js} +1 -1
  175. package/dist/esm-es5/index.js +1 -1
  176. package/dist/esm-es5/{invoice-cf6ad79e.js → invoice-67a47785.js} +1 -1
  177. package/dist/esm-es5/{isContrastColor-089de6ac.js → isContrastColor-9fa0d013.js} +1 -1
  178. package/dist/esm-es5/{isDarkColor-039ef212.js → isDarkColor-939d8e9c.js} +1 -1
  179. package/dist/esm-es5/loader.js +1 -1
  180. package/dist/esm-es5/{localization-0953a048.js → localization-36a4dc22.js} +1 -1
  181. package/dist/esm-es5/{paypal-7c82eac4.js → paypal-6dca6567.js} +1 -1
  182. package/dist/esm-es5/{placeTestOrder-6a746207.js → placeTestOrder-9563c89a.js} +1 -1
  183. package/dist/esm-es5/{renderCheckoutCurrency-44f897a1.js → renderCheckoutCurrency-282384f0.js} +1 -1
  184. package/dist/esm-es5/shouldShowLanguageSelect-328f50e2.js +1 -0
  185. package/dist/esm-es5/{submitGtag-dc54f5b9.js → submitGtag-71c450b6.js} +1 -1
  186. package/dist/esm-es5/throttle-c4c24e86.js +1 -0
  187. package/dist/esm-es5/{updateCheckoutSessionAttributes-e0a282d9.js → updateCheckoutSessionAttributes-23b222de.js} +1 -1
  188. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -1
  189. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
  190. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  191. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  192. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  193. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  194. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  195. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  196. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  197. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  198. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  199. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  200. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  201. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  202. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  203. package/dist/esm-es5/zonos-component.entry.js +1 -1
  204. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  205. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  206. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  207. package/dist/esm-es5/zonos-elements.js +1 -1
  208. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  209. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  210. package/dist/esm-es5/zonos-input.entry.js +1 -1
  211. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  212. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  213. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  214. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  215. package/dist/esm-es5/zonos-link.entry.js +1 -1
  216. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  217. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  218. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  219. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  220. package/dist/esm-es5/zonos-text.entry.js +1 -1
  221. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  222. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  223. package/dist/esm-es5/{zonosStore-b7d3f9b0.js → zonosStore-eca1e364.js} +1 -1
  224. package/dist/scripts/index.d.ts +54 -34
  225. package/dist/scripts/index.js +1 -1
  226. package/dist/scripts/loadZonos.js +1 -1
  227. package/dist/scripts/zonos.js +1 -1
  228. package/dist/types/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.d.ts +1 -0
  229. package/dist/types/components/store/hello/localization.d.ts +8 -1
  230. package/dist/types/components/store/zonosStore.d.ts +7 -0
  231. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +9 -13
  232. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  233. package/dist/types/components/utils/checkout/getAddressCountryOptions.d.ts +29 -0
  234. package/dist/types/components/utils/getSupportedLanguages.d.ts +167 -0
  235. package/dist/types/components/utils/shouldShowLanguageSelect.d.ts +7 -0
  236. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +25 -24
  237. package/dist/types/types/generated/graphql.frontend.types.d.ts +9 -1
  238. package/dist/types/types/generated/graphql.frontend.types.ts +6 -1
  239. package/dist/types/types/generated/graphql.internal.types.d.ts +463 -107
  240. package/dist/types/types/generated/graphql.internal.types.ts +601 -102
  241. package/dist/zonos-elements/index.esm.js +1 -1
  242. package/dist/zonos-elements/{p-b93013f7.system.entry.js → p-083a11cd.system.entry.js} +1 -1
  243. package/dist/zonos-elements/p-0b29169b.js +1 -0
  244. package/dist/zonos-elements/{p-62609f19.entry.js → p-0c972ddf.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-7ab15d20.js → p-0c9fec73.js} +1 -1
  246. package/dist/zonos-elements/{p-f1dbeb85.system.entry.js → p-0e199a6c.system.entry.js} +1 -1
  247. package/dist/zonos-elements/p-0ff845ec.js +1 -0
  248. package/dist/zonos-elements/p-1277abac.system.entry.js +1 -0
  249. package/dist/zonos-elements/p-14afffa8.system.js +1 -0
  250. package/dist/zonos-elements/{p-56e9a29e.entry.js → p-171a7e1e.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-f1aea919.js → p-1834f486.js} +1 -1
  252. package/dist/zonos-elements/p-1ac0c631.system.js +1 -0
  253. package/dist/zonos-elements/{p-fa80a973.entry.js → p-1be53c82.entry.js} +1 -1
  254. package/dist/zonos-elements/p-1cdd27ec.js +1 -0
  255. package/dist/zonos-elements/{p-c634546a.system.entry.js → p-1f8648c8.system.entry.js} +1 -1
  256. package/dist/zonos-elements/p-22e10b7d.entry.js +1 -0
  257. package/dist/zonos-elements/p-260ad739.system.entry.js +1 -0
  258. package/dist/zonos-elements/{p-9a417eeb.js → p-27660512.js} +1 -1
  259. package/dist/zonos-elements/{p-28ee0860.system.js → p-2989da12.system.js} +1 -1
  260. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  261. package/dist/zonos-elements/{p-cd3f7fd7.system.js → p-2b8c96e3.system.js} +1 -1
  262. package/dist/zonos-elements/{p-7bdce9d4.js → p-2bbe9d91.js} +1 -1
  263. package/dist/zonos-elements/{p-543b25f9.entry.js → p-2c2afed4.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-32b53999.entry.js → p-2c44e013.entry.js} +1 -1
  265. package/dist/zonos-elements/{p-e0cbc7c7.entry.js → p-2c7a425d.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-0e1f13ff.system.entry.js → p-2cab1746.system.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-aa37f436.system.entry.js → p-2cdd1b49.system.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-d1e84608.entry.js → p-2ce039e5.entry.js} +1 -1
  269. package/dist/zonos-elements/{p-26bf0c31.entry.js → p-3490b6d0.entry.js} +1 -1
  270. package/dist/zonos-elements/p-3a13e58c.system.js +1 -0
  271. package/dist/zonos-elements/{p-ef2c264c.entry.js → p-4671fde7.entry.js} +1 -1
  272. package/dist/zonos-elements/{p-1977f4b5.js → p-46cd14e5.js} +1 -1
  273. package/dist/zonos-elements/{p-fb8dc23f.system.js → p-4a20893e.system.js} +1 -1
  274. package/dist/zonos-elements/{p-a4eddf6c.system.js → p-4b159ff3.system.js} +1 -1
  275. package/dist/zonos-elements/{p-34d6eb83.js → p-502d6eeb.js} +1 -1
  276. package/dist/zonos-elements/{p-8fa3a8f8.system.entry.js → p-51e4e61a.system.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-496accce.system.js → p-551fa762.system.js} +1 -1
  278. package/dist/zonos-elements/p-5a491f28.js +1 -0
  279. package/dist/zonos-elements/{p-0fb4e032.entry.js → p-5b990c91.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-23eee868.entry.js → p-5ebb7ae6.entry.js} +1 -1
  281. package/dist/zonos-elements/p-60832726.system.js +1 -0
  282. package/dist/zonos-elements/{p-2394b186.system.js → p-60a6b71d.system.js} +1 -1
  283. package/dist/zonos-elements/p-62f6a757.entry.js +1 -0
  284. package/dist/zonos-elements/p-65c1f51e.entry.js +1 -0
  285. package/dist/zonos-elements/{p-dab78981.system.js → p-6890e060.system.js} +1 -1
  286. package/dist/zonos-elements/{p-21f7d57b.entry.js → p-6afd5fab.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-71fc8a22.js → p-6bdc5c96.js} +1 -1
  288. package/dist/zonos-elements/{p-fdd7ec44.system.entry.js → p-6dde1e85.system.entry.js} +1 -1
  289. package/dist/zonos-elements/{p-e3d0d8ff.entry.js → p-6ee4e027.entry.js} +1 -1
  290. package/dist/zonos-elements/p-7176f582.entry.js +1 -0
  291. package/dist/zonos-elements/{p-333f6018.system.entry.js → p-76834a0a.system.entry.js} +1 -1
  292. package/dist/zonos-elements/{p-f2431e47.entry.js → p-7ada039e.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-d706852e.system.js → p-7fbbdb0f.system.js} +1 -1
  294. package/dist/zonos-elements/{p-10584546.entry.js → p-8311edc7.entry.js} +1 -1
  295. package/dist/zonos-elements/p-8a0b8175.system.entry.js +1 -0
  296. package/dist/zonos-elements/p-8a6c4017.js +1 -0
  297. package/dist/zonos-elements/p-8b298971.system.entry.js +1 -0
  298. package/dist/zonos-elements/p-8be02f3a.system.js +1 -0
  299. package/dist/zonos-elements/{p-1cf76dd3.entry.js → p-8bfe5b2b.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-fc45b3a5.entry.js → p-8e6338b9.entry.js} +1 -1
  301. package/dist/zonos-elements/{p-1d31b966.system.js → p-916228fb.system.js} +1 -1
  302. package/dist/zonos-elements/{p-c12ca8fe.system.entry.js → p-94722bf6.system.entry.js} +1 -1
  303. package/dist/zonos-elements/p-947e4402.system.entry.js +1 -0
  304. package/dist/zonos-elements/p-9639a8ed.entry.js +1 -0
  305. package/dist/zonos-elements/{p-f2511b86.system.entry.js → p-9ad640b2.system.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-781b3345.system.entry.js → p-9ecb9afc.system.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-5a37683b.system.entry.js → p-a04e2750.system.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-95042e71.entry.js → p-a07e5011.entry.js} +1 -1
  309. package/dist/zonos-elements/{p-5d6b018c.system.entry.js → p-a9ad74e5.system.entry.js} +1 -1
  310. package/dist/zonos-elements/{p-db65c60b.system.entry.js → p-acb7dee1.system.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-3d28353a.js → p-adfbf57b.js} +1 -1
  312. package/dist/zonos-elements/{p-e6e3a303.entry.js → p-ae0de3e4.entry.js} +1 -1
  313. package/dist/zonos-elements/p-aecb5d61.entry.js +1 -0
  314. package/dist/zonos-elements/p-aed4ffb2.entry.js +1 -0
  315. package/dist/zonos-elements/{p-e977562b.system.js → p-af19722c.system.js} +1 -1
  316. package/dist/zonos-elements/{p-59518657.entry.js → p-b1e95f95.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-c8df5eee.system.entry.js → p-b4ae66cb.system.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-55c5977b.entry.js → p-bb09ee50.entry.js} +1 -1
  319. package/dist/zonos-elements/{p-21489ff1.system.entry.js → p-bcaffb85.system.entry.js} +1 -1
  320. package/dist/zonos-elements/p-bced320e.entry.js +1 -0
  321. package/dist/zonos-elements/p-be6cd28c.system.entry.js +1 -0
  322. package/dist/zonos-elements/p-c1631c9c.js +1 -0
  323. package/dist/zonos-elements/{p-cb376f03.entry.js → p-c77b049c.entry.js} +1 -1
  324. package/dist/zonos-elements/{p-6146bfaa.system.entry.js → p-ca87ada5.system.entry.js} +1 -1
  325. package/dist/zonos-elements/{p-4417475f.entry.js → p-cb49dcfe.entry.js} +1 -1
  326. package/dist/zonos-elements/p-cb4cb5a3.system.js +1 -0
  327. package/dist/zonos-elements/{p-b91a8f31.system.entry.js → p-d20fe2c2.system.entry.js} +1 -1
  328. package/dist/zonos-elements/{p-c9e44c77.system.entry.js → p-d42bd250.system.entry.js} +1 -1
  329. package/dist/zonos-elements/{p-aa1f3060.system.entry.js → p-d6a73125.system.entry.js} +1 -1
  330. package/dist/zonos-elements/{p-5953208b.js → p-dc80cb87.js} +1 -1
  331. package/dist/zonos-elements/p-dd3c00d6.system.entry.js +1 -0
  332. package/dist/zonos-elements/{p-47a1d469.system.js → p-de58684b.system.js} +1 -1
  333. package/dist/zonos-elements/{p-1735a69b.js → p-e160b75f.js} +1 -1
  334. package/dist/zonos-elements/p-e1ef3984.system.entry.js +1 -0
  335. package/dist/zonos-elements/{p-323279b8.entry.js → p-e27b8e18.entry.js} +1 -1
  336. package/dist/zonos-elements/{p-646e6b47.system.entry.js → p-e2b4c082.system.entry.js} +1 -1
  337. package/dist/zonos-elements/{p-f1aa60fd.system.entry.js → p-e32ee011.system.entry.js} +1 -1
  338. package/dist/zonos-elements/{p-5b11bbca.system.entry.js → p-e4b07f7d.system.entry.js} +1 -1
  339. package/dist/zonos-elements/{p-7c70e0c7.js → p-e5c76a9b.js} +2 -2
  340. package/dist/zonos-elements/p-e8587f9f.system.entry.js +1 -0
  341. package/dist/zonos-elements/{p-ab61ef19.system.js → p-eb5f3451.system.js} +2 -2
  342. package/dist/zonos-elements/p-ebbda085.system.js +1 -0
  343. package/dist/zonos-elements/{p-daab3824.entry.js → p-f37150e8.entry.js} +1 -1
  344. package/dist/zonos-elements/p-f4720b0a.js +1 -0
  345. package/dist/zonos-elements/{p-c8bc4ede.js → p-f4acce01.js} +1 -1
  346. package/dist/zonos-elements/p-f59a0129.system.entry.js +1 -0
  347. package/dist/zonos-elements/{p-ca9231a0.system.entry.js → p-f8356934.system.entry.js} +1 -1
  348. package/dist/zonos-elements/{p-e57f862d.system.js → p-fe5f05fc.system.js} +1 -1
  349. package/dist/zonos-elements/p-ff4e6811.entry.js +1 -0
  350. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  351. package/package.json +3 -1
  352. package/dist/cjs/ILanguage-98b04442.js +0 -26
  353. package/dist/esm/ILanguage-cd6acb72.js +0 -24
  354. package/dist/esm-es5/ILanguage-cd6acb72.js +0 -1
  355. package/dist/esm-es5/throttle-44bfb6b5.js +0 -1
  356. package/dist/zonos-elements/p-0287f9cd.system.js +0 -1
  357. package/dist/zonos-elements/p-05cb0a0d.system.entry.js +0 -1
  358. package/dist/zonos-elements/p-193fc2da.entry.js +0 -1
  359. package/dist/zonos-elements/p-1cf5e2ce.system.entry.js +0 -1
  360. package/dist/zonos-elements/p-30cfc9f4.entry.js +0 -1
  361. package/dist/zonos-elements/p-30e9a6d7.system.js +0 -1
  362. package/dist/zonos-elements/p-35fd0fdb.js +0 -1
  363. package/dist/zonos-elements/p-3642dd99.entry.js +0 -1
  364. package/dist/zonos-elements/p-3b479012.js +0 -1
  365. package/dist/zonos-elements/p-3c62acbd.js +0 -1
  366. package/dist/zonos-elements/p-5987dea1.js +0 -1
  367. package/dist/zonos-elements/p-5c30d04b.js +0 -1
  368. package/dist/zonos-elements/p-63b462dd.system.entry.js +0 -1
  369. package/dist/zonos-elements/p-68631285.system.entry.js +0 -1
  370. package/dist/zonos-elements/p-6f874ed9.entry.js +0 -1
  371. package/dist/zonos-elements/p-76e36d6d.entry.js +0 -1
  372. package/dist/zonos-elements/p-8418aa07.entry.js +0 -1
  373. package/dist/zonos-elements/p-8fb15a6b.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-97aceb11.js +0 -1
  375. package/dist/zonos-elements/p-987b5d8f.js +0 -1
  376. package/dist/zonos-elements/p-a3c116d6.system.js +0 -1
  377. package/dist/zonos-elements/p-c121b2b8.entry.js +0 -1
  378. package/dist/zonos-elements/p-c5bfe522.system.js +0 -1
  379. package/dist/zonos-elements/p-c9e433c0.system.js +0 -1
  380. package/dist/zonos-elements/p-d06486ba.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-d0767f88.entry.js +0 -1
  382. package/dist/zonos-elements/p-d2cb99ee.system.entry.js +0 -1
  383. package/dist/zonos-elements/p-ddd0e703.system.entry.js +0 -1
  384. package/dist/zonos-elements/p-dfd83cff.entry.js +0 -1
  385. package/dist/zonos-elements/p-e101b0de.system.entry.js +0 -1
  386. package/dist/zonos-elements/p-f1298203.system.entry.js +0 -1
  387. package/dist/zonos-elements/p-f29bcf8b.system.js +0 -1
  388. package/dist/zonos-elements/p-f61c0eef.system.js +0 -1
@@ -3,22 +3,22 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const localization = require('./localization-491121ad.js');
7
- const zonosStore = require('./zonosStore-fee716c9.js');
8
- const getMissingRequiredShippingFields = require('./getMissingRequiredShippingFields-7cd21100.js');
6
+ const localization = require('./localization-fb2ece37.js');
7
+ const zonosStore = require('./zonosStore-0af0b937.js');
8
+ const getMissingRequiredShippingFields = require('./getMissingRequiredShippingFields-124b3f20.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
- const cart = require('./cart-dc31b242.js');
10
+ const cart = require('./cart-94908542.js');
11
11
  const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
12
12
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
13
- const getBorderRadius = require('./getBorderRadius-4da24d7c.js');
14
- const throttle = require('./throttle-34f7abf1.js');
13
+ const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
14
+ const throttle = require('./throttle-366c204b.js');
15
15
  const handleFetch = require('./handleFetch-954f30e1.js');
16
16
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-7d19556c.js');
17
17
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
18
18
  const TaxId = require('./TaxId-cd9d490e.js');
19
19
  const helpers = require('./helpers-5bdbb68c.js');
20
- const isDarkColor = require('./isDarkColor-ebc74b4d.js');
21
- require('./debounce-9a712c79.js');
20
+ const isDarkColor = require('./isDarkColor-a6e6fd5e.js');
21
+ require('./debounce-7ca3c878.js');
22
22
  require('./ShortAddressCode-bec338b0.js');
23
23
 
24
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}";
@@ -272,9 +272,9 @@ const ZonosAddressSuggestions = class {
272
272
  return segments;
273
273
  }
274
274
  render() {
275
- return (index.h(index.Host, { key: '20e095515d18016bd1f538bd345ed58aafe8518f', class: "zonos--address-suggestions", role: "group", style: {
275
+ return (index.h(index.Host, { key: '9de4179f1bd0057ac71d6b9ed646c034035382f7', class: "zonos--address-suggestions", role: "group", style: {
276
276
  '--zonos--border-radius': getBorderRadius.getBorderRadius(),
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: () => {
277
+ } }, index.h("ul", { key: '62fa5ed92fafcdd641f9a7eb36e36e62309c9f52', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: '27c61b5693720d0b33a75385841476787f92b884', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: 'fea9f2e8f65cd50fdf28fc45e18beb8976320f0d', class: "powered-by-container" }, index.h("zonos-text", { key: '1fec46f543e3673433b6924f7dca1cbd84e0ef16', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: '7b3fd93c18d4320522d61e07278f5388d14c8bbb', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: '61a8362ab0514a78dd71eaa9bd638dc8b50e2a9c', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
278
278
  this.localSuggestions = [];
279
279
  } }))), this.localSuggestions.map(suggestion => (
280
280
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -500,6 +500,30 @@ const isValidZip = ({ countryFields, zip, }) => {
500
500
  return countryFields.zipRequired && !!zip;
501
501
  };
502
502
 
503
+ const hasCountries = (countries) => !!countries && Object.keys(countries).length > 0;
504
+ /**
505
+ * Builds the country options for an address form's country dropdown.
506
+ *
507
+ * Shipping addresses are restricted to the merchant's shipping zone, since we
508
+ * can only fulfill orders to those countries. Billing addresses are not — a
509
+ * shopper's card can be billed to any country, so restricting the billing
510
+ * country prevents them from checking out at all (05CHECK-915).
511
+ *
512
+ * When the full country list is unavailable we fall back to the shipping zone
513
+ * so the dropdown is never empty.
514
+ */
515
+ const getAddressCountryOptions = ({ allCountries, shippingZoneCountries, type, }) => {
516
+ const countries = type === 'billing' && hasCountries(allCountries)
517
+ ? allCountries
518
+ : shippingZoneCountries;
519
+ return Object.values(countries || {})
520
+ .map(country => ({
521
+ label: country.displayName,
522
+ value: country.code,
523
+ }))
524
+ .sort((a, b) => a.label.localeCompare(b.label));
525
+ };
526
+
503
527
  const mergeAddress = ({ addresses, delimiter = ' ', }) => {
504
528
  // Remove duplicate addresses
505
529
  const addressSet = new Set(addresses.filter(Boolean));
@@ -564,14 +588,6 @@ const ZonosAddress = class {
564
588
  * Whether to start google place suggestions
565
589
  */
566
590
  this.startGooglePlaceSuggestions = false;
567
- /**
568
- * List of countries to show in the address element
569
- */
570
- this.shipToCountries = null;
571
- /**
572
- * Shipping zones from localization
573
- */
574
- this.shippingZones = null;
575
591
  this.city = '';
576
592
  this.country = '';
577
593
  this.firstName = '';
@@ -611,6 +627,14 @@ const ZonosAddress = class {
611
627
  * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
612
628
  */
613
629
  this.isAutoCompleteAdjusted = false;
630
+ /**
631
+ * Memoized country options, keyed on the store references they derive from.
632
+ * `render()` runs on every keystroke, and rebuilding the list each time would
633
+ * re-sort ~244 countries and hand `zonos-stripe-select` a new array identity,
634
+ * re-rendering it needlessly. `@stencil/store` replaces these references
635
+ * wholesale rather than mutating them, so reference equality is a safe key.
636
+ */
637
+ this.countryOptionsCache = null;
614
638
  // Create a single throttled instance that persists
615
639
  this.throttledGetAddressSuggestions = throttle.throttle_1(() => {
616
640
  if (zonosStore.zonosStore.checkoutAddressService) {
@@ -762,6 +786,28 @@ const ZonosAddress = class {
762
786
  this.onStoreCheckoutSessionIdChangedSubscription = localization.storageStoreOnChange('checkoutSessionId', onCheckoutSessionIdChange);
763
787
  };
764
788
  }
789
+ getCountryOptions() {
790
+ const { allCountries, shippingZoneCountries } = localization.localizationStore;
791
+ const cache = this.countryOptionsCache;
792
+ if (cache &&
793
+ cache.allCountries === allCountries &&
794
+ cache.shippingZoneCountries === shippingZoneCountries &&
795
+ cache.type === this.type) {
796
+ return cache.options;
797
+ }
798
+ const options = getAddressCountryOptions({
799
+ allCountries,
800
+ shippingZoneCountries,
801
+ type: this.type,
802
+ });
803
+ this.countryOptionsCache = {
804
+ allCountries,
805
+ options,
806
+ shippingZoneCountries,
807
+ type: this.type,
808
+ };
809
+ return options;
810
+ }
765
811
  getStripeAddressInstance() {
766
812
  if (this.type === 'billing') {
767
813
  return {
@@ -1188,24 +1234,19 @@ const ZonosAddress = class {
1188
1234
  this.initAddressSuggestions();
1189
1235
  this.initDefaultCustomAddressForm();
1190
1236
  }
1191
- shippingZonesChanged() {
1192
- this.shippingZones = localization.localizationStore.shippingZoneCountries;
1193
- this.shipToCountries = Object.values(this.shippingZones || {})
1194
- .map(country => ({
1195
- label: country.displayName,
1196
- value: country.code,
1197
- }))
1198
- .sort((a, b) => {
1199
- return a.label.localeCompare(b.label);
1200
- });
1201
- }
1202
1237
  renderCustomAddressForm() {
1203
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
1204
- const _t = this.getCustomAddressErrors(), { showError } = _t, customAddressErrors = __rest(_t, ["showError"]);
1238
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
1239
+ const _s = this.getCustomAddressErrors(), { showError } = _s, customAddressErrors = __rest(_s, ["showError"]);
1205
1240
  const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
1206
1241
  const countryCode = stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country;
1207
- const firstCountry = (_a = this.shipToCountries) === null || _a === void 0 ? void 0 : _a[0];
1208
- const stateOptions = Object.entries(((_b = this.countryField) === null || _b === void 0 ? void 0 : _b.regions) || {})
1242
+ /**
1243
+ * Billing addresses are not limited to the shipping zone: a shopper's card
1244
+ * can be billed to any country, so restricting it would block them from
1245
+ * checking out entirely (05CHECK-915).
1246
+ */
1247
+ const countryOptions = this.getCountryOptions();
1248
+ const firstCountry = countryOptions[0];
1249
+ const stateOptions = Object.entries(((_a = this.countryField) === null || _a === void 0 ? void 0 : _a.regions) || {})
1209
1250
  .map(([label, region]) => ({
1210
1251
  label,
1211
1252
  value: region.interpayCode,
@@ -1239,7 +1280,7 @@ const ZonosAddress = class {
1239
1280
  * Therefore, we must update the value after validation to ensure correct error state
1240
1281
  */
1241
1282
  this.lastName = event.detail;
1242
- }, required: true }), index.h("zonos-stripe-select", { "aria-required": "true", autoComplete: "shipping country", class: "zonos--custom-address-form-input", name: `${this.type}-country`, onSelectChange: (event) => {
1283
+ }, required: true }), index.h("zonos-stripe-select", { "aria-required": "true", autoComplete: `${this.type} country`, class: "zonos--custom-address-form-input", name: `${this.type}-country`, onSelectChange: (event) => {
1243
1284
  this.countryChanged(event.detail);
1244
1285
  // revalidate the postal code since with empty value so it would reset the customAddressErrors
1245
1286
  this.validate({
@@ -1268,9 +1309,9 @@ const ZonosAddress = class {
1268
1309
  this.city = '';
1269
1310
  this.state = '';
1270
1311
  this.postalCode = '';
1271
- }, options: this.shipToCountries || [], required: true, selectLabel: localization.translate('Country'), selectedValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
1312
+ }, options: countryOptions, required: true, selectLabel: localization.translate('Country'), selectedValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
1272
1313
  localization.localizationStore.selectedCountryCode ||
1273
- (firstCountry === null || firstCountry === void 0 ? void 0 : firstCountry.value), title: `${this.type} country` }), index.h("div", { class: "zonos--custom-address-form-line1-wrapper" }, index.h("zonos-stripe-input", { "aria-autocomplete": "list", "aria-controls": "autocomplete-search", "aria-required": "true", autoComplete: "shipping address-line1", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.line1 : undefined, inputLabel: localization.translate('Address line 1'), inputValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.line1, name: "address-line1", onInputChange: (event) => {
1314
+ (firstCountry === null || firstCountry === void 0 ? void 0 : firstCountry.value), title: `${this.type} country` }), index.h("div", { class: "zonos--custom-address-form-line1-wrapper" }, index.h("zonos-stripe-input", { "aria-autocomplete": "list", "aria-controls": "autocomplete-search", "aria-required": "true", autoComplete: `${this.type} address-line1`, class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.line1 : undefined, inputLabel: localization.translate('Address line 1'), inputValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.line1, name: "address-line1", onInputChange: (event) => {
1274
1315
  this.validate({
1275
1316
  type: this.type,
1276
1317
  value: event.detail,
@@ -1301,9 +1342,9 @@ const ZonosAddress = class {
1301
1342
  }, suggestions: this.addressSuggestions, type: this.type })), index.h("div", { "aria-label": "Additional address details", class: classes.classes([
1302
1343
  'zonos--custom-address-form-additional-fields',
1303
1344
  countryCode && this.isAddressLine1Entered ? 'zonos--show' : '',
1304
- ]), role: "group" }, index.h("zonos-stripe-input", { "aria-required": "false", autoComplete: "shipping address-line2", class: "zonos--custom-address-form-input", inputLabel: localization.translate(((_c = this.countryField) === null || _c === void 0 ? void 0 : _c.address2Label) || 'Address line 2'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.line2) || '', onInputChange: (event) => {
1345
+ ]), role: "group" }, index.h("zonos-stripe-input", { "aria-required": "false", autoComplete: `${this.type} address-line2`, class: "zonos--custom-address-form-input", inputLabel: localization.translate(((_b = this.countryField) === null || _b === void 0 ? void 0 : _b.address2Label) || 'Address line 2'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.line2) || '', onInputChange: (event) => {
1305
1346
  this.line2 = event.detail;
1306
- } }), ((_d = this.countryField) === null || _d === void 0 ? void 0 : _d.cityShow) && (index.h("zonos-stripe-input", { "aria-required": ((_e = this.countryField) === null || _e === void 0 ? void 0 : _e.cityRequired) ? 'true' : 'false', autoComplete: "shipping address-level2", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.city : undefined, inputLabel: localization.translate(((_f = this.countryField) === null || _f === void 0 ? void 0 : _f.cityLabel) || 'City'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.city) || '', name: "locality", onInputChange: (event) => {
1347
+ } }), ((_c = this.countryField) === null || _c === void 0 ? void 0 : _c.cityShow) && (index.h("zonos-stripe-input", { "aria-required": ((_d = this.countryField) === null || _d === void 0 ? void 0 : _d.cityRequired) ? 'true' : 'false', autoComplete: `${this.type} address-level2`, class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.city : undefined, inputLabel: localization.translate(((_e = this.countryField) === null || _e === void 0 ? void 0 : _e.cityLabel) || 'City'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.city) || '', name: "locality", onInputChange: (event) => {
1307
1348
  this.validate({
1308
1349
  type: this.type,
1309
1350
  value: event.detail,
@@ -1317,7 +1358,7 @@ const ZonosAddress = class {
1317
1358
  * Therefore, we must update the value after validation to ensure correct error state
1318
1359
  */
1319
1360
  this.city = event.detail;
1320
- }, required: (_g = this.countryField) === null || _g === void 0 ? void 0 : _g.cityRequired })), index.h("div", { class: "zonos--custom-address-form-state-zip-wrapper" }, ((_h = this.countryField) === null || _h === void 0 ? void 0 : _h.stateShow) && (index.h("zonos-stripe-select", { "aria-required": ((_j = this.countryField) === null || _j === void 0 ? void 0 : _j.stateRequired) ? 'true' : 'false', autoComplete: "shipping address-level1", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.state : undefined, isError: showError && !!customAddressErrors.state, name: `${this.type}-state`, onSelectChange: (event) => {
1361
+ }, required: (_f = this.countryField) === null || _f === void 0 ? void 0 : _f.cityRequired })), index.h("div", { class: "zonos--custom-address-form-state-zip-wrapper" }, ((_g = this.countryField) === null || _g === void 0 ? void 0 : _g.stateShow) && (index.h("zonos-stripe-select", { "aria-required": ((_h = this.countryField) === null || _h === void 0 ? void 0 : _h.stateRequired) ? 'true' : 'false', autoComplete: `${this.type} address-level1`, class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.state : undefined, isError: showError && !!customAddressErrors.state, name: `${this.type}-state`, onSelectChange: (event) => {
1321
1362
  this.validate({
1322
1363
  type: this.type,
1323
1364
  value: event.detail,
@@ -1331,9 +1372,9 @@ const ZonosAddress = class {
1331
1372
  * Therefore, we must update the value after validation to ensure correct error state
1332
1373
  */
1333
1374
  this.state = event.detail;
1334
- }, options: stateOptions, required: (_k = this.countryField) === null || _k === void 0 ? void 0 : _k.stateRequired, selectLabel: localization.translate(((_l = this.countryField) === null || _l === void 0 ? void 0 : _l.stateLabel) || 'State'), selectedValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.state, title: `${this.type} state` })), ((_m = this.countryField) === null || _m === void 0 ? void 0 : _m.zipShow) && (index.h("zonos-stripe-input", { "aria-describedby": ((_o = this.countryField) === null || _o === void 0 ? void 0 : _o.zipFormat)
1375
+ }, options: stateOptions, required: (_j = this.countryField) === null || _j === void 0 ? void 0 : _j.stateRequired, selectLabel: localization.translate(((_k = this.countryField) === null || _k === void 0 ? void 0 : _k.stateLabel) || 'State'), selectedValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.state, title: `${this.type} state` })), ((_l = this.countryField) === null || _l === void 0 ? void 0 : _l.zipShow) && (index.h("zonos-stripe-input", { "aria-describedby": ((_m = this.countryField) === null || _m === void 0 ? void 0 : _m.zipFormat)
1335
1376
  ? `zip-format-${this.type}`
1336
- : undefined, "aria-required": ((_p = this.countryField) === null || _p === void 0 ? void 0 : _p.zipRequired) ? 'true' : 'false', autoComplete: "shipping postal-code", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.postalCode : undefined, inputLabel: localization.translate(((_q = this.countryField) === null || _q === void 0 ? void 0 : _q.zipLabel) || 'Zip'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.postal_code) || '', name: "postalCode", onInputChange: (event) => {
1377
+ : undefined, "aria-required": ((_o = this.countryField) === null || _o === void 0 ? void 0 : _o.zipRequired) ? 'true' : 'false', autoComplete: `${this.type} postal-code`, class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.postalCode : undefined, inputLabel: localization.translate(((_p = this.countryField) === null || _p === void 0 ? void 0 : _p.zipLabel) || 'Zip'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.postal_code) || '', name: "postalCode", onInputChange: (event) => {
1337
1378
  this.validate({
1338
1379
  type: this.type,
1339
1380
  value: event.detail,
@@ -1347,7 +1388,7 @@ const ZonosAddress = class {
1347
1388
  * Therefore, we must update the value after validation to ensure correct error state
1348
1389
  */
1349
1390
  this.postalCode = event.detail;
1350
- }, required: (_r = this.countryField) === null || _r === void 0 ? void 0 : _r.zipRequired, title: `${this.type} zip code` }))), index.h("zonos-stripe-phone-input", { autoComplete: "shipping tel", class: "zonos--custom-address-form-input", countryCode: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country, countryOptions: (_s = zonosStore.zonosStore.genericSettings) === null || _s === void 0 ? void 0 : _s.countryFields, error: showError ? customAddressErrors.phone : undefined, inputLabel: localization.translate('Phone number'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone) || '', onInputValueChange: event => {
1391
+ }, required: (_q = this.countryField) === null || _q === void 0 ? void 0 : _q.zipRequired, title: `${this.type} zip code` }))), index.h("zonos-stripe-phone-input", { autoComplete: `${this.type} tel`, class: "zonos--custom-address-form-input", countryCode: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country, countryOptions: (_r = zonosStore.zonosStore.genericSettings) === null || _r === void 0 ? void 0 : _r.countryFields, error: showError ? customAddressErrors.phone : undefined, inputLabel: localization.translate('Phone number'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone) || '', onInputValueChange: event => {
1351
1392
  const { isEmpty, phoneNumber, valid, wrongFormat } = event.detail;
1352
1393
  // Validate the phone number
1353
1394
  this.validate({
@@ -1388,14 +1429,6 @@ const ZonosAddress = class {
1388
1429
  }
1389
1430
  componentDidLoad() {
1390
1431
  const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
1391
- this.shipToCountries = Object.values(localization.localizationStore.shippingZoneCountries || {})
1392
- .map(country => ({
1393
- label: country.displayName,
1394
- value: country.code,
1395
- }))
1396
- .sort((a, b) => {
1397
- return a.label.localeCompare(b.label);
1398
- });
1399
1432
  this.isDirtyAddress =
1400
1433
  !!stripeAddressEventData &&
1401
1434
  stripeAddressEventData.value.address.line1.length > 0;
@@ -1408,7 +1441,6 @@ const ZonosAddress = class {
1408
1441
  }
1409
1442
  render() {
1410
1443
  var _a;
1411
- this.shippingZones = localization.localizationStore.shippingZoneCountries;
1412
1444
  this.addressService = zonosStore.zonosStore.checkoutAddressService;
1413
1445
  if ((_a = cart.stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) {
1414
1446
  this.isAddressFilled = true;
@@ -1418,10 +1450,10 @@ const ZonosAddress = class {
1418
1450
  this.country = localization.localizationStore.selectedCountryCode;
1419
1451
  }
1420
1452
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1421
- return (index.h(index.Host, { key: '1e90973654268e1af1e98bf606f71d55c63f5656', class: classes.classes([
1453
+ return (index.h(index.Host, { key: 'b4e39a6e92e646f98c0061bf3de8e028c9285556', class: classes.classes([
1422
1454
  'zonos--address zonos--elements',
1423
1455
  `zonos--${this.type}-address`,
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()));
1456
+ ]) }, index.h("zonos-text", { key: '28d21737c78a1b8125c5170c67f214e3f39939ff', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("slot", { key: '97357f001b27197b8648d6158b786b153c31a7ba', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
1425
1457
  }
1426
1458
  get el() { return index.getElement(this); }
1427
1459
  static get watchers() { return {
@@ -1437,8 +1469,7 @@ const ZonosAddress = class {
1437
1469
  "phone": ["formFieldsChanged"],
1438
1470
  "postalCode": ["formFieldsChanged"],
1439
1471
  "state": ["formFieldsChanged"],
1440
- "addressService": ["shouldEnabledCustomAddressChanged"],
1441
- "shippingZones": ["shippingZonesChanged"]
1472
+ "addressService": ["shouldEnabledCustomAddressChanged"]
1442
1473
  }; }
1443
1474
  };
1444
1475
  ZonosAddress.style = ZonosCustomAddressStyle0;
@@ -7336,6 +7367,15 @@ const ZonosStripePhoneInput = class {
7336
7367
  this.updatePhoneFormatter();
7337
7368
  };
7338
7369
  }
7370
+ onCountryCodeChange() {
7371
+ /**
7372
+ * Re-derive the dial code when the address country changes, otherwise a
7373
+ * shopper who changes country keeps the previous country's dial code — for
7374
+ * example a US billing address on a Mexico shipment would send a US phone
7375
+ * number prefixed with +52 (05CHECK-915).
7376
+ */
7377
+ this.initPhoneNumberValue();
7378
+ }
7339
7379
  onCountryOptionsChange() {
7340
7380
  // Re-initialize the phone number value when the country options change
7341
7381
  this.initPhoneNumberValue();
@@ -7415,27 +7455,28 @@ const ZonosStripePhoneInput = class {
7415
7455
  .filter(Boolean)
7416
7456
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
7417
7457
  : [];
7418
- return (index.h(index.Host, { key: 'd89450cd871f6220d00b325157e8b9213f1eede6', class: classes.classes([
7458
+ return (index.h(index.Host, { key: 'e2a1fc4c2e5f57dc1ae904b70b5f7f421297ae0c', class: classes.classes([
7419
7459
  'zonos--phone-input zonos--elements',
7420
7460
  isDark && 'dark',
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([
7461
+ ]), "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: '61a2ee1f566234692a80fe68fbc4d171f36263dc', class: classes.classes([
7422
7462
  'zonos--label-wrapper',
7423
7463
  this.disabled && 'disabled',
7424
7464
  this.isFocused && 'focused',
7425
7465
  hasContent && 'has-content',
7426
7466
  this.error && 'has-error',
7427
7467
  this.inputLabel && 'has-label',
7428
- ]) }, index.h("select", { key: 'e4366c1c6ab1a2368a29948f1766978aa8fa580d', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7468
+ ]) }, index.h("select", { key: '32602cf340a06a26c483f049595cdd812826275e', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7429
7469
  var _a;
7430
7470
  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, ")"));
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([
7471
+ })), index.h("div", { key: '1a36aa363a853c420303241e75d89e5aa298dee9', class: "zonos--input-group" }, index.h("div", { key: '7f4d30619c8f69b98422bfcab964113d598d45fa', class: "zonos--select-wrapper" }, index.h("div", { key: '44d0f28dde38fc09ce612ad4cb78f9d1fbdbe951', class: "zonos--country-select" }, index.h("div", { key: 'c438e242374e303688150aec2c8eae51b6e1427d', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: '2aaec2a6315d2ee84244c4458efce6d27c8598ad', class: "zonos--country-select-selected" }, index.h("div", { key: '819a8b6fd270e43992c19a4b96a4ce5335ae166f', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: '090e6ce55541db022a55497b1b3a6fa7ff2b5406', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: '021bc4bf590fb6dca736478cc8f9914ce764c1ab', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'f7256f51c803d1b5aedb3b5d646a777cb553aa9d', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: 'a018c3fffc1c029df874d9be3c938307b4609d82', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: 'dd20516acf7d5cab10fe91ff4a6f59cc91600732', class: classes.classes([
7432
7472
  'zonos--input-container',
7433
7473
  this.inputLabel && 'has-label',
7434
7474
  hasContent && 'has-content',
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))));
7475
+ ]) }, index.h("input", Object.assign({ key: 'ed8b536ba7aac9bae8012692ceb9f8573640c5d6' }, 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: 'be2ae82b335dd291d53f48a73f9b23744392daf6', class: "zonos--floated-label" }, index.h("label", { key: '1894a34c3a5ea09b2b45e8dfc9103d944ac69118', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: 'ae0ab1f97abbecf8dda4eced5aa139d8c51decaf', textColor: "red-600" }, this.error))));
7436
7476
  }
7437
7477
  get el() { return index.getElement(this); }
7438
7478
  static get watchers() { return {
7479
+ "countryCode": ["onCountryCodeChange"],
7439
7480
  "countryOptions": ["onCountryOptionsChange"],
7440
7481
  "selectedCountry": ["onSelectedCountryChange"],
7441
7482
  "inputValue": ["onPhoneNumberChange"]
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const localization = require('./localization-491121ad.js');
6
+ const localization = require('./localization-fb2ece37.js');
7
7
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
8
- const zonosStore = require('./zonosStore-fee716c9.js');
8
+ const zonosStore = require('./zonosStore-0af0b937.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
- const getBorderRadius = require('./getBorderRadius-4da24d7c.js');
10
+ const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
11
11
  require('./handleFetch-954f30e1.js');
12
12
  require('./VarianceTest-bec00ea8.js');
13
13
 
@@ -19,9 +19,16 @@ const ZonosAddressDisplay = class {
19
19
  index.registerInstance(this, hostRef);
20
20
  }
21
21
  render() {
22
- var _a;
22
+ var _a, _b;
23
23
  const { city, country, email, line1, line2, name, phone, postal_code, state, } = this.currentAddress;
24
- const shippingZoneCountry = (_a = localization.localizationStore.shippingZoneCountries) === null || _a === void 0 ? void 0 : _a[country];
24
+ /**
25
+ * Look the country up in the full country list first, since a billing
26
+ * address can be in a country the merchant does not ship to and would
27
+ * otherwise render without a country line (05CHECK-915). The shipping zone
28
+ * is a subset of all countries, so this is also correct for shipping.
29
+ */
30
+ const displayCountry = ((_a = localization.localizationStore.allCountries) === null || _a === void 0 ? void 0 : _a[country]) ||
31
+ ((_b = localization.localizationStore.shippingZoneCountries) === null || _b === void 0 ? void 0 : _b[country]);
25
32
  const renderEnteredInfoText = ({ bold, content, }) => {
26
33
  const textColor = containsNonLatinChars.isTextContainsNonLatinChars(content)
27
34
  ? 'red-600'
@@ -30,8 +37,8 @@ const ZonosAddressDisplay = class {
30
37
  };
31
38
  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'
32
39
  ? localization.translate('Shipping')
33
- : 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({
34
- content: shippingZoneCountry.displayName,
40
+ : 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 })), displayCountry && (index.h("div", { class: "zonos--address-line" }, index.h("zonos-country-flag", { class: "zonos--country-flag", countryCode: displayCountry.code }), ' ', renderEnteredInfoText({
41
+ content: displayCountry.displayName,
35
42
  }))))));
36
43
  }
37
44
  };
@@ -125,7 +132,7 @@ const ZonosDialog = class {
125
132
  const borderStyle = getBorderRadius.getBorderRadius({
126
133
  overrideBorderStyle: this.borderStyle,
127
134
  });
128
- return (index.h(index.Host, { key: '93de5ea91ebef1927a2d7dc91a00f87277755ac7', class: classes.classes([
135
+ return (index.h(index.Host, { key: '73740b7d8c127367bbc2c621d036288920b3801d', class: classes.classes([
129
136
  'zonos--elements',
130
137
  this.open && 'open',
131
138
  this.isLoading && 'is-loading',
@@ -137,10 +144,10 @@ const ZonosDialog = class {
137
144
  '--zonos--height': this.height || 'initial',
138
145
  '--zonos--min-height': this.minHeight || '500px',
139
146
  '--zonos--width': this.width,
140
- } }, index.h("div", { key: '86330a3de751f262a3f0f80fbeb436bb6e2b206f', class: "zonos--backdrop" }), index.h("div", { key: 'a6702c9a9b5bba9f3523503cd85ba6e6ae77fc9d', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '2c4d6e9170fbe80a2ea249d3f40cbc72e5df05d3', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: 'e83dcb53e9cd7504d588b124c6468535e81ce71d', class: "zonos--loading" }, index.h("zonos-spinner", { key: '5e8b3451b5358c76c2fdf47a0ad5eecc8394d012', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: '671203125d8fd7e8cb811b61b7190f826221507a', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: '791a95ed2bdad0c3bfb136c9e42d7d8e920110d9', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '8d4f7a2e12cd56d6341cf5aa17be1a7f151ca45b', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '4bdd26b40a2209ccf44d85440cfbf173724f9aaa', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: 'c8f5d7eaff8c9ba94d60d587b5601472e80ea79a', 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: 'e5d91fb3bb3546e559566f8782aa9d939d0f1d04', class: classes.classes([
147
+ } }, index.h("div", { key: '441c6b5c503a431909f52699ee60992609dea232', class: "zonos--backdrop" }), index.h("div", { key: '94fb4689581ae2d781cae264740bbf9dbd42deac', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: 'ba788097f52ca80229d16ce910071b56647061f9', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '47bfe052272192a74aeed3a5ddbed802ae27bc16', class: "zonos--loading" }, index.h("zonos-spinner", { key: '49168e9057d08233654abfa0ca36138d205ca283', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: 'ed89b9b21e30b0e670b296306ed9b797f2baa75e', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: '7770dbdcf4e1fb630e0ed6c08dc4830edf00d1f0', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: 'c171e207af502ef02de35803c480d927edea3ce4', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '03999b1441d3a0dc983fed2e64680211f4a59793', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: 'e2954d9326195df3029c0771481881e6485fae05', 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: 'ba456d3747bd51ada021ed909a41e5768ceed4ab', class: classes.classes([
141
148
  'zonos--body',
142
149
  this.noBodyPadding && 'zonos--no-body-padding',
143
- ]) }, index.h("slot", { key: '2da7a3c7a978bb520c255a0043f96bf15b2dd006' })), index.h("slot", { key: '38ec2165a11c9cc2b121122124482590f9cd31e9', name: "dialog-footer" })))));
150
+ ]) }, index.h("slot", { key: '81e4de1e59970996607f7d0f2f2aef7937f82c43' })), index.h("slot", { key: '3fcd369711a347b9e2d2840fc708e928e17d5da1', name: "dialog-footer" })))));
144
151
  }
145
152
  static get assetsDirs() { return ["assets"]; }
146
153
  };
@@ -3,18 +3,18 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const throttle = require('./throttle-34f7abf1.js');
7
- const cart = require('./cart-dc31b242.js');
8
- const localization = require('./localization-491121ad.js');
9
- const zonosStore = require('./zonosStore-fee716c9.js');
6
+ const throttle = require('./throttle-366c204b.js');
7
+ const cart = require('./cart-94908542.js');
8
+ const localization = require('./localization-fb2ece37.js');
9
+ const zonosStore = require('./zonosStore-0af0b937.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-7d19556c.js');
12
12
  const classes = require('./classes-b7918f56.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
14
  const TaxId = require('./TaxId-cd9d490e.js');
15
- const getBorderRadius = require('./getBorderRadius-4da24d7c.js');
16
- require('./debounce-9a712c79.js');
17
- require('./isDarkColor-ebc74b4d.js');
15
+ const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
16
+ require('./debounce-7ca3c878.js');
17
+ require('./isDarkColor-a6e6fd5e.js');
18
18
  require('./ShortAddressCode-bec338b0.js');
19
19
 
20
20
  /**
@@ -419,11 +419,11 @@ const ZonosAddress = class {
419
419
  this.isAddressFilled = true;
420
420
  }
421
421
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
422
- return (index.h(index.Host, { key: '195940efdd29696d99b1ab6524a53e6a03776c6a', class: classes.classes([
422
+ return (index.h(index.Host, { key: '9b7a5340b839d63c64da03639bdfda5a11a5c25e', class: classes.classes([
423
423
  'zonos--address',
424
424
  'zonos--elements',
425
425
  `zonos--${this.type}-address`,
426
- ]) }, this.titleText && (index.h("zonos-text", { key: '968d5990fce9c1eb22cd10b58744e6d00f2e622d', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: 'ae6dd70dcaa5ecd3465c065736e0f31fb40e72d3', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), index.h("div", { key: '0bf3075670d3fcd945f9ddcbe096399e2dc213ed', class: "zonos--address-component" })));
426
+ ]) }, this.titleText && (index.h("zonos-text", { key: '23739f6a48e5698372df2d53098dea6ad1c0559a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: 'dea4b437eedaad2af2f6bbe3a1e2ae4f0706aa13', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), index.h("div", { key: 'b4be684977a632371b9b6ff4587ccdd7bacc8c67', class: "zonos--address-component" })));
427
427
  }
428
428
  get el() { return index.getElement(this); }
429
429
  static get watchers() { return {
@@ -555,13 +555,13 @@ const ZonosConfirmDialog = class {
555
555
  const borderStyle = getBorderRadius.getBorderRadius();
556
556
  // Get theme for the update dialog, inherit from the theme, no from this component theme
557
557
  const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
558
- return (index.h(index.Host, { key: 'dc074c5b88b642e06edd8942408a3aeed05e5cdb', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
558
+ return (index.h(index.Host, { key: '9ad8aff8631692fa53ef172869d98e9fbfbdc059', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
559
559
  '--zonos--border-radius': borderStyle,
560
560
  '--zonos--dialog-width': `${this.dialogWidth}px`,
561
561
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
562
- } }, index.h("div", { key: '119a9c201e44a670fb1df61f6663d96f7148ecc6', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '9534a92f69dd3d692c1a2fd86fa1cf148f68cdfa', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: 'e79aaf3a80b57634f78575b15a75d7b549ed20ee', class: "zonos--confirm-dialog", onBlur: () => {
562
+ } }, index.h("div", { key: '6d7c55b90bfb05890d876a0243558eb9a2e7a772', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: 'abf306ddd70cefd64aa6804aeccf700506c175d7', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: 'dc7e9e6d501872597928603ded57d82c15c26710', class: "zonos--confirm-dialog", onBlur: () => {
563
563
  this.focusDialog();
564
- } }, index.h("div", { key: '44367b178f46c66dfb236485e05f6832ae63a63b', class: "wrapper" }, index.h("div", { key: '42d10d17180ec7364710682c27d6cd4fef0b8abe', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: 'b5f7563fb43e1b147db669e1df71f4fafb5284df', class: "content" }, index.h("div", { key: '38b78e383833b5e49908c8e95c35b9ad23c0f956', class: "title" }, index.h("zonos-text", { key: '726f5308881671e7e17bd0591521485bd7142c1e', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: '58d663842d51a512b3c8799a907bd1ed58e4fb31', class: "subtitle" }, index.h("zonos-text", { key: '4411400d8906a22fd5f31652a1eeb314cae8ad68', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: 'df0452b2af633dd558858db824336fd5925aef50', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '50f88e85e18129ef4ee209615b951683c5ff6fa8', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: '314b8be8954241b8c261c62d5a4bbe8155cc6914', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
564
+ } }, index.h("div", { key: '5c1fa9ec8b59cba68ccbc5dc36e66e2fdefdeae5', class: "wrapper" }, index.h("div", { key: '0ce48c41c78e393a181fd5e9beeac90622b5c620', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: 'b42157f8e76de8a60190e384d7d53a36d8051c67', class: "content" }, index.h("div", { key: 'bd8eb897f15a6d095df8fbd1803f62a11b9d5d7b', class: "title" }, index.h("zonos-text", { key: 'd1c06b89d4917b2366f881dda7da9e1369722126', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: '4f1269aaab5ad3965d6ddfc0949341d4f202f296', class: "subtitle" }, index.h("zonos-text", { key: 'f784b5dd86ff684e790f27a586e3eeb4ac683884', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: 'e0403a968aee6ff878c9e916e9ff216e2052ab0c', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '66e34a9d61f677786bfe286f377854c9ebc780ed', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: '3652507591e3055856a044e191525ea36b6042ca', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
565
565
  }
566
566
  static get assetsDirs() { return ["assets"]; }
567
567
  get el() { return index.getElement(this); }
@@ -795,7 +795,7 @@ const ZonosLoadingOverlay = class {
795
795
  this.size = 40;
796
796
  }
797
797
  render() {
798
- return (index.h(index.Host, { key: 'e284a5ada0945f1895dbd9b40039e9d2ef600111', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: 'fb68155fe133ba8cd1d923a0fbb37a382ecabc34', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: '50dc3d4b1f53173240d23ffeac966f7463546fde', size: this.size, spinnerColor: this.spinnerColor }))));
798
+ return (index.h(index.Host, { key: '8cafd99b309b04da5cf1b26b0f0804f4699c06b2', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: '9ce7ac9b7e6956a5f76fc2105fa7f5d05299fd36', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: '4be3a8d471e3aead2e4194c4ecbf66878a7a3f17', size: this.size, spinnerColor: this.spinnerColor }))));
799
799
  }
800
800
  };
801
801
  ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const collect = require('./collect-463ab3d7.js');
7
- const cart = require('./cart-dc31b242.js');
8
- const localization = require('./localization-491121ad.js');
9
- const zonosStore = require('./zonosStore-fee716c9.js');
6
+ const collect = require('./collect-0c05e2b4.js');
7
+ const cart = require('./cart-94908542.js');
8
+ const localization = require('./localization-fb2ece37.js');
9
+ const zonosStore = require('./zonosStore-0af0b937.js');
10
10
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
- require('./isDarkColor-ebc74b4d.js');
13
- require('./getBorderRadius-4da24d7c.js');
12
+ require('./isDarkColor-a6e6fd5e.js');
13
+ require('./getBorderRadius-97fd5e02.js');
14
14
  require('./TaxId-cd9d490e.js');
15
15
 
16
16
  const zonosAirwallexPaymentCss = ".sc-zonos-airwallex-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-airwallex-payment-h *.sc-zonos-airwallex-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-airwallex-payment-h img.sc-zonos-airwallex-payment{max-width:100%}.sc-zonos-airwallex-payment-h dl.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h dd.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h1.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h2.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h3.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h4.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h5.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h6.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h hr.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h figure.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h p.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h pre.sc-zonos-airwallex-payment{margin:0}.sc-zonos-airwallex-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-airwallex-payment-h{display:block}.sc-zonos-airwallex-payment-h .zonos--payment-error-banner.sc-zonos-airwallex-payment{margin-bottom:16px}.sc-zonos-airwallex-payment-h .zonos--airwallex-payment-component.sc-zonos-airwallex-payment{margin-bottom:4px;min-height:40px}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-fee716c9.js');
6
+ const zonosStore = require('./zonosStore-0af0b937.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  require('./VarianceTest-bec00ea8.js');
9
9
 
@@ -50,16 +50,16 @@ const ZonosBadge = class {
50
50
  this.loading = false;
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: 'c8d29084d1a10f985bcb52409881fff004a73118', class: classes.classes(['zonos--elements zonos--badge']), style: {
53
+ return (index.h(index.Host, { key: '95c8a620e803b4ea84d7789ff746d1edc1252389', class: classes.classes(['zonos--elements zonos--badge']), style: {
54
54
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
55
- } }, index.h("div", { key: '28cd3711c8e8d6b362c56589553401707456fdc6', class: classes.classes([
55
+ } }, index.h("div", { key: '000fb2efaa9cffa4635e89e700013bcc1f9fd63c', class: classes.classes([
56
56
  'zonos--badge-content',
57
57
  this.badgeColor,
58
58
  this.rounded && 'rounded',
59
59
  this.iconRight && 'icon-right',
60
60
  this.size,
61
61
  this.bold && 'bold',
62
- ]) }, this.icon, index.h("zonos-text", { key: '9dcb72621037e37fc11d5cabe915f6dad9798c2a', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: '7599b4c4689100dc637a3842287a93a42b4edd41' })), this.dismissHandler && (index.h("zonos-icon", { key: '861156179b8c8a8d8db1b4ee72717581d2eb7222', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
62
+ ]) }, this.icon, index.h("zonos-text", { key: '8c84abeb697dd20f6c1acbd2f512a5bac2c45883', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: 'b5bc9ed235747f2986fd7a1c94cbede4b8ffc715' })), this.dismissHandler && (index.h("zonos-icon", { key: '629b306370ba2fab2e43b625fce19e44be2a91a7', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
63
63
  }
64
64
  };
65
65
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-fee716c9.js');
6
+ const zonosStore = require('./zonosStore-0af0b937.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  require('./VarianceTest-bec00ea8.js');
9
9