@zonos/elements 1.3.240 → 1.3.242

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 (281) hide show
  1. package/dist/cjs/{cart-7af808b1.js → cart-4246c004.js} +2 -4
  2. package/dist/cjs/{hasInclusivePrice-2e306ea5.js → hasInclusivePrice-ac0440e7.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{invoice-fee18918.js → invoice-d9655e9e.js} +2 -2
  5. package/dist/cjs/{isCollectMobileTablet-a58f7b70.js → isCollectMobileTablet-65da8408.js} +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{localization-08aa03da.js → localization-ec5a6780.js} +120 -0
  8. package/dist/cjs/{paypal-174fca15.js → paypal-a3921278.js} +2 -2
  9. package/dist/cjs/{placeTestOrder-a786d83a.js → placeTestOrder-907b981d.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-112ab5d2.js → renderCheckoutCurrency-5fe59d60.js} +2 -2
  11. package/dist/cjs/zonos-address-display_9.cjs.entry.js +20 -20
  12. package/dist/cjs/zonos-address_4.cjs.entry.js +5 -5
  13. package/dist/cjs/zonos-card_5.cjs.entry.js +5 -5
  14. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +9 -9
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +119 -79
  16. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  18. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  21. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-country-select_4.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-elements.cjs.js +1 -1
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  28. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
  29. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  31. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  32. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  33. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  34. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  36. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -3
  38. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +8 -0
  39. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +41 -3
  40. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  41. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  42. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  43. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  44. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  45. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  46. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  47. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  48. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  49. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  50. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  51. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  52. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  53. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  54. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  55. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  56. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  57. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  59. package/dist/collection/components/main/zonos-controller.js +1 -1
  60. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  61. package/dist/collection/components/store/checkout/stripe.js +1 -3
  62. package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
  63. package/dist/collection/components/store/translationStore/strings.base.js +6 -0
  64. package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
  65. package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
  66. package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
  67. package/dist/collection/components/store/translationStore/strings.french.js +6 -0
  68. package/dist/collection/components/store/translationStore/strings.german.js +6 -0
  69. package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
  70. package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
  71. package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
  72. package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
  73. package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
  74. package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
  75. package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
  76. package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
  77. package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
  78. package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
  79. package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
  80. package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
  81. package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
  82. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  83. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  84. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  85. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  86. package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -1
  87. package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +129 -0
  88. package/dist/collection/types/generated/graphql.internal.types.js +2 -0
  89. package/dist/esm/{cart-d36150df.js → cart-697f78dc.js} +3 -5
  90. package/dist/esm/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
  91. package/dist/esm/index.js +7 -7
  92. package/dist/esm/{invoice-5cd8aeb3.js → invoice-50918381.js} +2 -2
  93. package/dist/esm/{isCollectMobileTablet-920988d6.js → isCollectMobileTablet-2e7b4f01.js} +2 -2
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/esm/{localization-285da14c.js → localization-ee8bb238.js} +120 -0
  96. package/dist/esm/{paypal-fc00bbbe.js → paypal-b3299b37.js} +2 -2
  97. package/dist/esm/{placeTestOrder-153e0173.js → placeTestOrder-245f2030.js} +2 -2
  98. package/dist/esm/{renderCheckoutCurrency-1be32173.js → renderCheckoutCurrency-9404ed70.js} +2 -2
  99. package/dist/esm/zonos-address-display_9.entry.js +20 -20
  100. package/dist/esm/zonos-address_4.entry.js +5 -5
  101. package/dist/esm/zonos-card_5.entry.js +5 -5
  102. package/dist/esm/zonos-cart-items_12.entry.js +9 -9
  103. package/dist/esm/zonos-checkout.entry.js +120 -80
  104. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
  105. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  106. package/dist/esm/zonos-collect.entry.js +4 -4
  107. package/dist/esm/zonos-component.entry.js +1 -1
  108. package/dist/esm/zonos-controller.entry.js +3 -3
  109. package/dist/esm/zonos-country-flag.entry.js +1 -1
  110. package/dist/esm/zonos-country-select_4.entry.js +5 -5
  111. package/dist/esm/zonos-elements.js +1 -1
  112. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  113. package/dist/esm/zonos-hello.entry.js +1 -1
  114. package/dist/esm/zonos-input.entry.js +4 -4
  115. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  116. package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
  117. package/dist/esm/zonos-invoice.entry.js +4 -4
  118. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  119. package/dist/esm/zonos-link.entry.js +1 -1
  120. package/dist/esm/zonos-logo.entry.js +2 -2
  121. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  122. package/dist/esm/zonos-toggle.entry.js +2 -2
  123. package/dist/esm/zonos-tooltip.entry.js +2 -2
  124. package/dist/esm/zonos-v-stack.entry.js +2 -2
  125. package/dist/esm-es5/{cart-d36150df.js → cart-697f78dc.js} +1 -1
  126. package/dist/esm-es5/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
  127. package/dist/esm-es5/index.js +1 -1
  128. package/dist/esm-es5/{invoice-5cd8aeb3.js → invoice-50918381.js} +1 -1
  129. package/dist/esm-es5/{isCollectMobileTablet-920988d6.js → isCollectMobileTablet-2e7b4f01.js} +1 -1
  130. package/dist/esm-es5/loader.js +1 -1
  131. package/dist/esm-es5/localization-ee8bb238.js +1 -0
  132. package/dist/esm-es5/{paypal-fc00bbbe.js → paypal-b3299b37.js} +1 -1
  133. package/dist/esm-es5/{placeTestOrder-153e0173.js → placeTestOrder-245f2030.js} +1 -1
  134. package/dist/esm-es5/{renderCheckoutCurrency-1be32173.js → renderCheckoutCurrency-9404ed70.js} +1 -1
  135. package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
  136. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  137. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  138. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  139. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  140. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  141. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  142. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  143. package/dist/esm-es5/zonos-component.entry.js +1 -1
  144. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  145. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  146. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  147. package/dist/esm-es5/zonos-elements.js +1 -1
  148. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  149. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  150. package/dist/esm-es5/zonos-input.entry.js +1 -1
  151. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  152. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  153. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  154. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  155. package/dist/esm-es5/zonos-link.entry.js +1 -1
  156. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  157. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  158. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  159. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  160. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  161. package/dist/scripts/index.d.ts +35 -2
  162. package/dist/scripts/index.js +1 -1
  163. package/dist/scripts/loadZonos.js +1 -1
  164. package/dist/scripts/zonos.js +1 -1
  165. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
  166. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +8 -0
  167. package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
  168. package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
  169. package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
  170. package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
  171. package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
  172. package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
  173. package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
  174. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
  175. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
  176. package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
  177. package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
  178. package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
  179. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
  180. package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
  181. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
  182. package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
  183. package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
  184. package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
  185. package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
  186. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
  187. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  188. package/dist/types/components/utils/checkout/isShippableCountry.d.ts +2 -1
  189. package/dist/types/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.d.ts +24 -0
  190. package/dist/types/components.d.ts +16 -0
  191. package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -0
  192. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  193. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  194. package/dist/types/types/generated/graphql.internal.types.d.ts +14 -2
  195. package/dist/types/types/generated/graphql.internal.types.ts +15 -3
  196. package/dist/zonos-elements/index.esm.js +1 -1
  197. package/dist/zonos-elements/{p-1beba3c1.system.js → p-036e6a72.system.js} +1 -1
  198. package/dist/zonos-elements/p-1023a77d.js +1 -0
  199. package/dist/zonos-elements/p-13b3a9bd.entry.js +1 -0
  200. package/dist/zonos-elements/{p-5afb9260.system.entry.js → p-14c920b2.system.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-630b4c08.entry.js → p-1864fc4e.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-0f079e02.js → p-1af042d1.js} +1 -1
  203. package/dist/zonos-elements/{p-b107ead8.system.entry.js → p-1c54c3db.system.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-32fddb6d.system.entry.js → p-1db4ae37.system.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-59a76f73.entry.js → p-231baaf8.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-8dc025c7.system.entry.js → p-232b0fb5.system.entry.js} +1 -1
  207. package/dist/zonos-elements/p-258407c6.js +1 -0
  208. package/dist/zonos-elements/{p-41ab550e.entry.js → p-28077dd4.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-c5195813.entry.js → p-29bb70e0.entry.js} +1 -1
  210. package/dist/zonos-elements/p-2aa284e6.js +1 -0
  211. package/dist/zonos-elements/{p-8792fef2.system.entry.js → p-2c2a1339.system.entry.js} +1 -1
  212. package/dist/zonos-elements/p-2dd9b3e0.entry.js +1 -0
  213. package/dist/zonos-elements/{p-0ab620d3.system.entry.js → p-3318ba9e.system.entry.js} +1 -1
  214. package/dist/zonos-elements/p-343dee8b.system.js +1 -0
  215. package/dist/zonos-elements/{p-bd603c1a.entry.js → p-3e67ca05.entry.js} +1 -1
  216. package/dist/zonos-elements/{p-6680fc4a.system.js → p-457a2957.system.js} +1 -1
  217. package/dist/zonos-elements/{p-7b001fa3.system.js → p-5216584e.system.js} +1 -1
  218. package/dist/zonos-elements/{p-f4e193c4.system.entry.js → p-5aff8a31.system.entry.js} +1 -1
  219. package/dist/zonos-elements/p-5feb3750.system.entry.js +1 -0
  220. package/dist/zonos-elements/{p-61aa9365.system.entry.js → p-633017f0.system.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-8aa2d896.entry.js → p-635b8da9.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-55bfaae0.system.js → p-67414f66.system.js} +1 -1
  223. package/dist/zonos-elements/{p-c39b0f10.system.entry.js → p-689ce3eb.system.entry.js} +1 -1
  224. package/dist/zonos-elements/p-6dc9b9e5.js +1 -0
  225. package/dist/zonos-elements/p-752dae00.system.js +1 -0
  226. package/dist/zonos-elements/{p-fc43442d.system.entry.js → p-75813a38.system.entry.js} +1 -1
  227. package/dist/zonos-elements/p-7e51fe84.system.entry.js +1 -0
  228. package/dist/zonos-elements/{p-b47bc712.js → p-8159d0f8.js} +2 -2
  229. package/dist/zonos-elements/{p-6d742bc9.system.entry.js → p-8432de4c.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-2f869f2c.system.entry.js → p-84cf1a90.system.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-944d00da.entry.js → p-8f0f6449.entry.js} +1 -1
  232. package/dist/zonos-elements/{p-90f58466.system.entry.js → p-90e10b7e.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-ba456282.system.entry.js → p-917f714c.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-949c9d2a.entry.js +1 -0
  235. package/dist/zonos-elements/{p-07f3185f.entry.js → p-9a67d4f2.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-48985087.entry.js → p-9ab32f9b.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-14314ad3.entry.js → p-9c49daa4.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-b5c31ca4.system.entry.js → p-9fa90292.system.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-9e29a4a3.entry.js → p-a04c7b1e.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-121c60c1.system.entry.js → p-a359e0a2.system.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-fa322dc1.entry.js → p-aa028d91.entry.js} +1 -1
  242. package/dist/zonos-elements/p-b34553d8.entry.js +1 -0
  243. package/dist/zonos-elements/{p-6c65bde0.system.js → p-b526a41e.system.js} +1 -1
  244. package/dist/zonos-elements/{p-f99f0541.system.entry.js → p-b90f346f.system.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-b47d429e.system.entry.js → p-b9974182.system.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-e80c1730.js → p-bcdf1cba.js} +1 -1
  247. package/dist/zonos-elements/p-bdf49bed.entry.js +1 -0
  248. package/dist/zonos-elements/{p-d0d44989.entry.js → p-bfc09897.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-264690d7.entry.js → p-c01f86b4.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-865536f0.entry.js → p-c1fb3a2d.entry.js} +1 -1
  251. package/dist/zonos-elements/p-c2442878.system.js +1 -1
  252. package/dist/zonos-elements/{p-b67521c9.system.entry.js → p-ce48f579.system.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-094f9c5a.entry.js → p-cfb2b5c7.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-89a5e936.system.entry.js → p-cfb9b847.system.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-78e7087f.system.js → p-d9b96ce6.system.js} +1 -1
  256. package/dist/zonos-elements/{p-9f1bd9b8.entry.js → p-dcf999d8.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-913ce041.system.entry.js → p-e1ed7c4a.system.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-fc695766.system.js → p-ea0289e8.system.js} +1 -1
  259. package/dist/zonos-elements/{p-7eae7c62.entry.js → p-ea1d5802.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-d1a768da.system.entry.js → p-ee5d5203.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-dfb429d7.system.entry.js → p-f7e6c1b5.system.entry.js} +1 -1
  262. package/dist/zonos-elements/p-fab5f272.js +1 -0
  263. package/dist/zonos-elements/{p-22b1fb53.entry.js → p-fc783723.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-f3139ab1.entry.js → p-fecf66da.entry.js} +1 -1
  265. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  266. package/package.json +1 -1
  267. package/dist/esm-es5/localization-285da14c.js +0 -1
  268. package/dist/zonos-elements/p-0294d7fc.system.entry.js +0 -1
  269. package/dist/zonos-elements/p-0c977c47.system.js +0 -1
  270. package/dist/zonos-elements/p-23eb1dc6.js +0 -1
  271. package/dist/zonos-elements/p-3ef06605.js +0 -1
  272. package/dist/zonos-elements/p-664da916.entry.js +0 -1
  273. package/dist/zonos-elements/p-83bf52d6.js +0 -1
  274. package/dist/zonos-elements/p-8416ee1a.entry.js +0 -1
  275. package/dist/zonos-elements/p-84c8daa1.js +0 -1
  276. package/dist/zonos-elements/p-ab195686.system.js +0 -1
  277. package/dist/zonos-elements/p-b95e0ad6.entry.js +0 -1
  278. package/dist/zonos-elements/p-b9af9836.entry.js +0 -1
  279. package/dist/zonos-elements/p-c33adf47.system.entry.js +0 -1
  280. package/dist/zonos-elements/p-cae51167.js +0 -1
  281. package/dist/zonos-elements/p-e8b3e462.entry.js +0 -1
@@ -674,6 +674,9 @@ export const stringsIndonesian = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Kami tidak dapat menyelesaikan pembayaran Anda. Harap verifikasi rincian pembayaran dan coba lagi.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Kami mendeteksi bahwa Anda mengirim ke alamat internasional.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Kami telah mengirimkan email konfirmasi rincian pesanan untuk Anda tinjau. Dan tim kami dengan hati-hati mempersiapkan pesanan Anda sehingga tiba tepat waktu.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsIndonesian = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Anda akan dialihkan kembali ke situs pedagang dalam beberapa detik.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Anda akan segera dialihkan ke checkout internasional.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Kamu sudah siap!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsItalian = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Non siamo riusciti a completare il pagamento. Verifica i dati di pagamento e riprova.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Abbiamo rilevato che stai spedendo a un indirizzo internazionale.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: "Abbiamo inviato una email di conferma con i dettagli dell'ordine per tua verifica. Il nostro team sta preparando con cura il tuo ordine affinché arrivi in tempo.",
679
682
  },
@@ -698,6 +701,9 @@ export const stringsItalian = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Sarai reindirizzato al sito del commerciante tra pochi secondi.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Verrai reindirizzato al checkout internazionale a breve.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Sei a posto!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsJapanese = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'お支払いを完了できませんでした。お支払情報をご確認の上、再度お試しください。',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: '国際住所に発送していることを検出しました。',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'ご注文の確認メールを送信しました。当社チームが注文を慎重に準備し、期日通りにお届けできるよう努めております。',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsJapanese = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: '数秒後に販売者のサイトにリダイレクトされます。',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'まもなく国際チェックアウトにリダイレクトされます。',
706
+ },
701
707
  "You're all set!": {
702
708
  value: '準備完了です!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsKorean = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: '결제를 완료할 수 없습니다. 결제 정보를 확인하고 다시 시도하세요.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: '국제 주소로 배송하고 있음을 감지했습니다.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: '주문 세부 정보에 대한 이메일 확인을 보냈습니다. 그리고 저희 팀은 주문을 정성스레 준비하여 제때 도착하도록 하고 있습니다.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsKorean = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: '몇 초 후에 상인의 사이트로 리디렉션됩니다.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: '곧 국제 결제로 리디렉션됩니다.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: '준비 완료!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsNorwegian = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Vi kunne ikke fullføre betalingen din. Vennligst verifiser betalingsdetaljene og prøv igjen.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Vi oppdaget at du sender til en internasjonal adresse.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Vi har sendt en e-postbekreftelse på ordredetaljene for gjennomgangen din. Og teamet vårt forbereder bestillingen nøye slik at den ankommer i tide.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsNorwegian = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Du vil bli omdirigert tilbake til forhandlerens nettsted om noen sekunder.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Du vil snart bli omdirigert til internasjonal utsjekking.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Du er klar!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsPolish = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Nie udało się zrealizować płatności. Sprawdź dane i spróbuj ponownie.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Wykryliśmy, że wysyłasz na adres międzynarodowy.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Wysłaliśmy e-mail z potwierdzeniem szczegółów zamówienia do Twojej wiadomości. Nasz zespół starannie przygotowuje Twoje zamówienie, aby dotarło na czas.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsPolish = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Zostaniesz przekierowany z powrotem na stronę sprzedawcy za kilka sekund.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Zostaniesz wkrótce przekierowany do międzynarodowej kasy.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Jesteś gotowy!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsPortuguese = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Não foi possível concluir seu pagamento. Por favor, verifique os dados e tente novamente.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Detectamos que você está enviando para um endereço internacional.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Enviamos um e-mail de confirmação com os detalhes do pedido para sua revisão. E nossa equipe está preparando cuidadosamente seu pedido para que ele chegue no prazo.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsPortuguese = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Você será redirecionado de volta ao site do comerciante em alguns segundos.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Você será redirecionado para o checkout internacional em breve.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Você está pronto!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsRussian = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Не удалось завершить оплату. Пожалуйста, проверьте платежные данные и попробуйте еще раз.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Мы обнаружили, что вы отправляете на международный адрес.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Мы отправили вам письмо с подтверждением заказа для проверки. Наша команда тщательно готовит ваш заказ к отправке в срок.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsRussian = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Вы будете перенаправлены обратно на сайт продавца через несколько секунд.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Вы будете перенаправлены на международную кассу в ближайшее время.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Вы готовы!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsSpanish = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'No pudimos completar su pago. Por favor verifique los datos de pago y vuelva a intentarlo.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Detectamos que estás enviando a una dirección internacional.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Le hemos enviado un correo electrónico de confirmación con los detalles del pedido para su revisión. Y nuestro equipo está preparando cuidadosamente su pedido para que llegue a tiempo.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsSpanish = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Serás redirigido de nuevo al sitio del comerciante en unos segundos.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Serás redirigido a la caja internacional en breve.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: '¡Estás listo!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsSwedish = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Vi kunde inte slutföra din betalning. Vänligen verifiera betalningsuppgifterna och försök igen.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Vi har upptäckt att du skickar till en internationell adress.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Vi har skickat en e-postbekräftelse av beställningsuppgifterna för din granskning. Och vårt team förbereder noggrant din order så att den kommer i tid.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsSwedish = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Du kommer att omdirigeras tillbaka till handlarens webbplats om några sekunder.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Du kommer snart att omdirigeras till internationell kassa.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Du är redo!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsTurkish = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Ödemenizi tamamlayamadık. Lütfen ödeme bilgilerinizi kontrol edip tekrar deneyin.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Uluslararası bir adrese gönderim yaptığınızı tespit ettik.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Sipariş detaylarınızın onay e-postasını gönderdik. Ekibimiz siparişinizi özenle hazırlıyor, zamanında ulaşması için elimizden geleni yapıyoruz.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsTurkish = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Birkaç saniye içinde satıcının sitesine geri yönlendirileceksiniz.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Kısa süre içinde uluslararası ödeme sayfasına yönlendirileceksiniz.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Hazırsın!',
703
709
  },
@@ -674,6 +674,9 @@ export const stringsVietnamese = {
674
674
  "We couldn't complete your payment. Please verify the payment details and try again.": {
675
675
  value: 'Chúng tôi không thể hoàn tất thanh toán của bạn. Vui lòng xác minh thông tin thanh toán và thử lại.',
676
676
  },
677
+ 'We detected that you are shipping to an international address.': {
678
+ value: 'Chúng tôi phát hiện bạn đang gửi đến một địa chỉ quốc tế.',
679
+ },
677
680
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
678
681
  value: 'Chúng tôi đã gửi email xác nhận chi tiết đơn hàng để bạn xem lại. Và đội ngũ của chúng tôi đang cẩn thận chuẩn bị đơn hàng của bạn để đảm bảo giao đúng hạn.',
679
682
  },
@@ -698,6 +701,9 @@ export const stringsVietnamese = {
698
701
  "You will be redirected back to the merchant's site in a few seconds.": {
699
702
  value: 'Bạn sẽ được chuyển hướng trở lại trang web của người bán trong vài giây.',
700
703
  },
704
+ 'You will be redirected to international checkout shortly.': {
705
+ value: 'Bạn sẽ sớm được chuyển hướng đến thanh toán quốc tế.',
706
+ },
701
707
  "You're all set!": {
702
708
  value: 'Bạn đã sẵn sàng!',
703
709
  },
@@ -322,11 +322,11 @@ export class ZonosAddress {
322
322
  this.isAddressFilled = true;
323
323
  }
324
324
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
325
- return (h(Host, { key: '7762b1dbeeff9d45721bf7a2efbe4bf4c2c29551', class: classes([
325
+ return (h(Host, { key: 'b02889c4677a27a8c54a411d66fb31e15af78e1a', class: classes([
326
326
  'zonos--address',
327
327
  'zonos--elements',
328
328
  `zonos--${this.type}-address`,
329
- ]) }, this.titleText && (h("zonos-text", { key: '5f266b4562eb78eb8f5b1374f195501abc44c9f7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: 'bfcee78353455a66c6dec12432bfeff69dc9a10b', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: 'd005a517dc93439d13f38750df8e09f884ad898c', class: "zonos--address-component" })));
329
+ ]) }, this.titleText && (h("zonos-text", { key: 'f52beb7ed6699ec1c73ee35a3436798a1fea38c7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '7c9602892de932e8a3f90a37b53a936f39082916', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '8ea6698f5b9d3bb525942c146e2cf67fefad6ad8', class: "zonos--address-component" })));
330
330
  }
331
331
  static get is() { return "zonos-address"; }
332
332
  static get encapsulation() { return "scoped"; }
@@ -78,9 +78,9 @@ export class ZonosAddressSuggestions {
78
78
  return segments;
79
79
  }
80
80
  render() {
81
- return (h(Host, { key: '7ab44ba24fdcc22c2f3dd06985d1d6e8e3c64cbc', class: "zonos--address-suggestions", role: "group", style: {
81
+ return (h(Host, { key: '00686fe9c09bb764f18548ea438f9fa39deb5413', class: "zonos--address-suggestions", role: "group", style: {
82
82
  '--zonos--border-radius': getBorderRadius(),
83
- } }, h("ul", { key: 'e23aa07baa70336a9f37752d0de3725580684c88', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'd2208ef720bdff1d57937394266046edd7ef9e3b', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '4f834a0f3e8fa8c378e824894a51171543b61339', class: "powered-by-container" }, h("zonos-text", { key: '8f92d8f3e4421048881036ba3e43de25e9cfe005', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'efe2dcb973a7fd34a76d107dca1f7a6ac4d7112b', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '8f59caa99bec12c4ac4c42e5b4108443f6e90446', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
83
+ } }, h("ul", { key: '89c0f50ea5bbabdf3efe3e58bd4d7a7c96f33b47', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'ad3286076569701e1318c93b7ebc674ad85a7ae6', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: 'bdcb8cc865eb77b3a0189c8d88a7698d405c332e', class: "powered-by-container" }, h("zonos-text", { key: '1db905ec989aef0f8dd30835657d1dd1b1836fc2', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '55c36840f1bb850ce135bd238d01b9a3055463d7', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: 'e89402e39549482c41b046fb534e727690e43100', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
84
84
  this.localSuggestions = [];
85
85
  } }))), this.localSuggestions.map(suggestion => (
86
86
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -894,10 +894,10 @@ export class ZonosAddress {
894
894
  this.country = localizationStore.selectedCountryCode;
895
895
  }
896
896
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
897
- return (h(Host, { key: 'dc41846f9f8cb0b10e4148ad5523f26186970888', class: classes([
897
+ return (h(Host, { key: '7214ab1c348c1236dfa65f3bb20866fb3262c35d', class: classes([
898
898
  'zonos--address zonos--elements',
899
899
  `zonos--${this.type}-address`,
900
- ]) }, h("zonos-text", { key: '38e4bc053824f1f7f6c15bb3ade74b16e0f977e1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: 'e7b702568f26e4cff082ba88a3f68bc9d32d6bd2', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
900
+ ]) }, h("zonos-text", { key: '3ce287d8ffd3f5fdb4745311d17992c0b9ee9678', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '0e33486852d6512b054bb480d0295ce97d2667eb', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
901
901
  }
902
902
  static get is() { return "zonos-custom-address"; }
903
903
  static get encapsulation() { return "scoped"; }
@@ -67,7 +67,7 @@ export class ZonosPayment {
67
67
  }
68
68
  render() {
69
69
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
70
- return (h(Host, { key: 'ca6da9e9fadd891c2a748186c30fdfcf8f57ffc5', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '8083de8ff08f5cd7f3ddaf6190844ee11b72ed4a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'cf88a4f5b989e1911b089ce9298945307085455a', class: "zonos--payment-component" }), h("div", { key: 'ff768b9ca8dd0a60605196f50bcba3c542cc2206', class: "zonos--payment-paypal-container" })));
70
+ return (h(Host, { key: '1fb61e01184d3a0b2dc079ae468e96175d9f6518', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '3860ff7fc2656ff045ce09c0de2e14aa7a22e194', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '3cabad9c095f2eeba8cfc464374ca9abfc2af5ee', class: "zonos--payment-component" }), h("div", { key: '9e2b13a0d8131a5513f99e2a6436ca3c5f03d7cf', class: "zonos--payment-paypal-container" })));
71
71
  }
72
72
  static get is() { return "zonos-payment"; }
73
73
  static get encapsulation() { return "scoped"; }
@@ -1,9 +1,23 @@
1
1
  import { localizationStore } from "../../store/hello/localization";
2
+ import { zonosStore } from "../../store/zonosStore";
2
3
  import { log } from "../logging/log";
3
- export const isShippableCountry = (showLog = true) => {
4
+ export const isShippableCountry = (showLog = true,
5
+ /**
6
+ * If provided, will check if the country is shippable based on the provided country code instead of the Hello selected country code
7
+ */
8
+ providedCountryCode) => {
9
+ var _a;
4
10
  if (!localizationStore.localizationLoaded) {
5
11
  return false;
6
12
  }
13
+ if (providedCountryCode) {
14
+ const isProvidedCountryCodeShippableCountry = !!((_a = localizationStore.shippingZoneCountries) === null || _a === void 0 ? void 0 : _a[providedCountryCode]) &&
15
+ !zonosStore.disabledCountries.includes(providedCountryCode);
16
+ if (showLog && !isProvidedCountryCodeShippableCountry) {
17
+ log(`Checkout: ${providedCountryCode} is not a shippable country: ${isProvidedCountryCodeShippableCountry}`);
18
+ }
19
+ return isProvidedCountryCodeShippableCountry;
20
+ }
7
21
  // if localization is loaded and the localization is not a shippable country, keep the original click event
8
22
  if (!localizationStore.isShippableCountry) {
9
23
  if (showLog) {
@@ -0,0 +1,129 @@
1
+ import { stripeStoreGetDomesticShippingSession, stripeStoreSaveDomesticShippingSession, } from "../../store/checkout/stripe";
2
+ import { localizationStoreUpdateSelectedCountryCode } from "../../store/hello/localization";
3
+ import { isShippableCountry } from "./isShippableCountry";
4
+ import { log } from "../logging/log";
5
+ const SHIP_TO_COUNTRY_SELECTOR = 'select[name="shippingAddress.countryCode"]';
6
+ /**
7
+ * Watch for changes in domestic checkout step. Redirects user to home page to open international checkout when user selects a country in the international shipping zone.
8
+ * @note Only works on default bigcommerce checkout page
9
+ */
10
+ export const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedBtnSelector, onInternationalCheckoutSelected, onShippingAddressSessionFound, }) => {
11
+ if (!window.Zonos.isBigCommerce) {
12
+ return;
13
+ }
14
+ /**
15
+ * Keep checking
16
+ */
17
+ const handleInternationalCheckoutSelected = async () => {
18
+ const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
19
+ if (!shipToCountryElement) {
20
+ return false;
21
+ }
22
+ const shippingCountry = shipToCountryElement.value;
23
+ if (!shippingCountry) {
24
+ // do nothing if shipping country is not found
25
+ return false;
26
+ }
27
+ if (!isShippableCountry(false, shippingCountry)) {
28
+ // do nothing if shipping country is not shippable
29
+ return false;
30
+ }
31
+ if (onInternationalCheckoutSelected) {
32
+ await onInternationalCheckoutSelected();
33
+ }
34
+ // update the country code in localization store and check if it's shippable
35
+ localizationStoreUpdateSelectedCountryCode({
36
+ isInitializing: false,
37
+ newSelectedCountryCode: shippingCountry,
38
+ });
39
+ const shippingAddress = {
40
+ address1: '',
41
+ address2: '',
42
+ city: '',
43
+ countryCode: shippingCountry,
44
+ firstName: '',
45
+ lastName: '',
46
+ phone: '',
47
+ postalCode: '',
48
+ stateOrProvince: '',
49
+ };
50
+ // save the shipping address to session storage
51
+ stripeStoreSaveDomesticShippingSession({
52
+ address1: shippingAddress.address1,
53
+ address2: shippingAddress.address2,
54
+ city: shippingAddress.city,
55
+ countryCode: shippingAddress.countryCode,
56
+ firstName: shippingAddress.firstName,
57
+ lastName: shippingAddress.lastName,
58
+ phone: shippingAddress.phone,
59
+ postalCode: shippingAddress.postalCode,
60
+ state: shippingAddress.stateOrProvince,
61
+ });
62
+ // redirect to home page, home page then will open the checkout dialog if having domestic shipping session
63
+ window.location.href = '/';
64
+ return true;
65
+ };
66
+ let isProcessing = false;
67
+ let intervalCreated = false;
68
+ const observer = new MutationObserver(() => {
69
+ const domesticRedirectedButton = document.querySelector(domesticRedirectedBtnSelector);
70
+ const shippingAddressSession = stripeStoreGetDomesticShippingSession();
71
+ // append a hidden button to the body if the shipping address session is found
72
+ if (!domesticRedirectedButton && shippingAddressSession) {
73
+ // create a hidden button to trigger the click event
74
+ const button = document.createElement('button');
75
+ button.style.display = 'none';
76
+ button.id = 'zonos--domestic-redirected-checkout-button';
77
+ document.body.appendChild(button);
78
+ onShippingAddressSessionFound === null || onShippingAddressSessionFound === void 0 ? void 0 : onShippingAddressSessionFound(shippingAddressSession);
79
+ // disconnect the observer after we found the shipping continue button
80
+ observer.disconnect();
81
+ return;
82
+ }
83
+ const isBigcommerceDomesticCheckoutPage = window.location.pathname.includes('/checkout') &&
84
+ window.Zonos.isBigCommerce;
85
+ const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
86
+ // Should just disconnect the observer if it's not bigcommerce domestic checkout page
87
+ if (!isBigcommerceDomesticCheckoutPage) {
88
+ observer.disconnect();
89
+ return;
90
+ }
91
+ // Shouldn't do anything if it's not bigcommerce domestic checkout page
92
+ if (!shipToCountryElement) {
93
+ // do nothing if shipping country and the continue button is not found
94
+ return;
95
+ }
96
+ log('Domestic checkout found - Listening for shipping country change', 'info', {
97
+ value: shipToCountryElement.value,
98
+ });
99
+ // Should not create a new interval if it's already created
100
+ if (intervalCreated) {
101
+ return;
102
+ }
103
+ intervalCreated = true;
104
+ // disconnect the observer after we know that's bigcommerce domestic checkout page
105
+ observer.disconnect();
106
+ const interval = setInterval(async () => {
107
+ if (isProcessing) {
108
+ return;
109
+ }
110
+ isProcessing = true;
111
+ try {
112
+ const isInternationalCountrySelected = await handleInternationalCheckoutSelected();
113
+ // When isInternationalCountrySelected is true, user will be redirected shortly, so we can stop the checking interval here
114
+ if (isInternationalCountrySelected) {
115
+ clearInterval(interval);
116
+ return;
117
+ }
118
+ isProcessing = false;
119
+ }
120
+ catch (_a) {
121
+ isProcessing = false;
122
+ }
123
+ }, 1000);
124
+ });
125
+ observer.observe(document.body, {
126
+ childList: true,
127
+ subtree: true,
128
+ });
129
+ };
@@ -3861,6 +3861,7 @@ export const taxIdType = {
3861
3861
  Voec: 'VOEC',
3862
3862
  };
3863
3863
  export const taxMethodType = {
3864
+ BusinessNumber: 'BUSINESS_NUMBER',
3864
3865
  Consignment: 'CONSIGNMENT',
3865
3866
  Default: 'DEFAULT',
3866
3867
  Domestic: 'DOMESTIC',
@@ -4124,6 +4125,7 @@ export const zonosInvoiceJobStatus = {
4124
4125
  };
4125
4126
  export const zonosInvoiceStatusUpdateInputType = {
4126
4127
  Created: 'CREATED',
4128
+ Dispute: 'DISPUTE',
4127
4129
  Draft: 'DRAFT',
4128
4130
  ManualReview: 'MANUAL_REVIEW',
4129
4131
  Open: 'OPEN',
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-b434e436.js';
2
- import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-285da14c.js';
2
+ import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-ee8bb238.js';
3
3
  import { f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
4
4
  import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
5
5
  import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
@@ -1338,9 +1338,7 @@ const stripeStoreHandleInventoryCheck = async () => {
1338
1338
  try {
1339
1339
  const message = await onInventoryCheck({
1340
1340
  items: cartStore.items,
1341
- translate,
1342
- zonosApiRoute: fallbackApiList['vercel'],
1343
- });
1341
+ }, { translate, zonosApiRoute: fallbackApiList['vercel'] });
1344
1342
  return message;
1345
1343
  }
1346
1344
  catch (err) {
@@ -2229,4 +2227,4 @@ const cartStoreResetTabItems = () => {
2229
2227
  cartStoreResetSelectedShippingOption();
2230
2228
  };
2231
2229
 
2232
- export { validateCheckoutSession as A, stripeStoreOnChange as B, stripeStoreBuildAddressForPartyCreate as C, cartStoreUpdateSelectedShippingOption as D, cartStoreHasOneEligibleItem as E, stripeStoreApplyPromoCode as F, stripeStoreRemovePromoCode as G, stripeStoreResetPromoCode as H, stripeStoreMessageBasedOnStatus as I, stripeStoreTranslateAddressToLatin as J, extractName as K, stripeStoreAsyncAddressUpdate as L, cartStoreGetShippingTransitInfo as M, cartStoreGetMethod as N, sortServiceLevelOptionsByAmount as O, stripeStoreCleanupDomesticShippingSession as a, stripeStoreSaveDomesticShippingSession as b, stripeStore as c, stripeStoreRetrievePayment as d, cartStore as e, cartStoreUpdateItems as f, cartStoreReset as g, cartStoreResetTabItems as h, initStripeElements as i, cartStoreClearCheckoutInterval as j, stripeStoreInitCheckoutSession as k, stripeStoreGetPaymentIntent as l, cartStoreStartCheckoutInterval as m, getCheckoutSessionBody as n, cartStoreUpdateToErrorState as o, cartStoreSetCheckoutSession as p, stripeStorePrefetchLandedCost as q, cartStoreNextStep as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStoreUpdateCheckoutSessionBaseCurrency as u, stripeStoreHandleInventoryCheck as v, stripeStoreConfirmPayment as w, stripeStoreHandleInventoryRefund as x, stripeStoreReset as y, cartStoreOnChange as z };
2230
+ export { validateCheckoutSession as A, stripeStoreOnChange as B, stripeStoreBuildAddressForPartyCreate as C, cartStoreUpdateSelectedShippingOption as D, cartStoreHasOneEligibleItem as E, stripeStoreApplyPromoCode as F, stripeStoreRemovePromoCode as G, stripeStoreResetPromoCode as H, stripeStoreMessageBasedOnStatus as I, stripeStoreTranslateAddressToLatin as J, extractName as K, stripeStoreAsyncAddressUpdate as L, cartStoreGetShippingTransitInfo as M, cartStoreGetMethod as N, sortServiceLevelOptionsByAmount as O, stripeStoreSaveDomesticShippingSession as a, stripeStore as b, stripeStoreRetrievePayment as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStoreInitCheckoutSession as j, stripeStoreGetPaymentIntent as k, cartStoreStartCheckoutInterval as l, getCheckoutSessionBody as m, cartStoreUpdateToErrorState as n, stripeStoreCleanupDomesticShippingSession as o, cartStoreSetCheckoutSession as p, stripeStorePrefetchLandedCost as q, cartStoreNextStep as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStoreUpdateCheckoutSessionBaseCurrency as u, stripeStoreHandleInventoryCheck as v, stripeStoreConfirmPayment as w, stripeStoreHandleInventoryRefund as x, stripeStoreReset as y, cartStoreOnChange as z };
@@ -1,4 +1,4 @@
1
- import { l as localizationStore } from './localization-285da14c.js';
1
+ import { l as localizationStore } from './localization-ee8bb238.js';
2
2
 
3
3
  /**
4
4
  * Since the backend and the frontend are using the same keys,
package/dist/esm/index.js CHANGED
@@ -130,7 +130,7 @@ const getZonosQaUrl = () => {
130
130
  return null;
131
131
  }
132
132
  const qaUrl = extractZonosQaUrl(window.location.href);
133
- const cdnUrl = "https://v1.3.240.js.zonos.com";
133
+ const cdnUrl = "https://v1.3.242.js.zonos.com";
134
134
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
135
135
  if (!qaUrl &&
136
136
  (cdnUrl.includes('test.') ||
@@ -378,10 +378,10 @@ const zonosLoadUrl = (() => {
378
378
  return null;
379
379
  })();
380
380
  const startLoadTime = Date.now();
381
- const ZONOS_URL = "https://v1.3.240.js.zonos.com";
382
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.240";
383
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.240";
384
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.240";
381
+ const ZONOS_URL = "https://v1.3.242.js.zonos.com";
382
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.242";
383
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.242";
384
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.242";
385
385
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
386
386
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
387
387
  class Zonos {
@@ -399,7 +399,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
399
399
  ? new URLSearchParams(window.location.search).get('iframeLogType')
400
400
  : null;
401
401
  Zonos.isBigCommerce = false;
402
- Zonos.releaseDate = "1764795369284";
402
+ Zonos.releaseDate = "1765324001000";
403
403
  Zonos.isLegacyCheckout = false;
404
404
  Zonos.startLoadTime = startLoadTime;
405
405
  Zonos.domain = typeof window !== 'undefined'
@@ -420,7 +420,7 @@ Zonos.isNpm = true;
420
420
  Zonos.zonosQaUrl = null;
421
421
  Zonos.zonosQaUrlApi = null;
422
422
  Zonos.trackEventLogs = [];
423
- Zonos.version = `v${"1.3.240"}`;
423
+ Zonos.version = `v${"1.3.242"}`;
424
424
  Zonos.modeAlerted = false;
425
425
  Zonos.cartData = null;
426
426
  Zonos.paypal = null;
@@ -1,6 +1,6 @@
1
1
  import { c as createStore, z as zonosStore } from './zonosStore-b434e436.js';
2
- import { c as stripeStore, C as stripeStoreBuildAddressForPartyCreate, e as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-d36150df.js';
3
- import { s as storageStore } from './localization-285da14c.js';
2
+ import { b as stripeStore, C as stripeStoreBuildAddressForPartyCreate, d as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-697f78dc.js';
3
+ import { s as storageStore } from './localization-ee8bb238.js';
4
4
  import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
5
5
  import { b as allLogs } from './VarianceTest-572cecf5.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { c as createStore, z as zonosStore } from './zonosStore-b434e436.js';
2
- import { c as stripeStore, C as stripeStoreBuildAddressForPartyCreate, e as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-d36150df.js';
3
- import { s as storageStore } from './localization-285da14c.js';
2
+ import { b as stripeStore, C as stripeStoreBuildAddressForPartyCreate, d as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-697f78dc.js';
3
+ import { s as storageStore } from './localization-ee8bb238.js';
4
4
  import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
5
5
  import { b as allLogs } from './VarianceTest-572cecf5.js';
6
6