@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
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
6
  const throttle = require('./throttle-7dd64984.js');
7
- const cart = require('./cart-7af808b1.js');
8
- const localization = require('./localization-08aa03da.js');
7
+ const cart = require('./cart-4246c004.js');
8
+ const localization = require('./localization-ec5a6780.js');
9
9
  const zonosStore = require('./zonosStore-37a4b4f4.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-eda13ef8.js');
@@ -328,11 +328,11 @@ const ZonosAddress = class {
328
328
  this.isAddressFilled = true;
329
329
  }
330
330
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
331
- return (index.h(index.Host, { key: '7762b1dbeeff9d45721bf7a2efbe4bf4c2c29551', class: classes.classes([
331
+ return (index.h(index.Host, { key: 'b02889c4677a27a8c54a411d66fb31e15af78e1a', class: classes.classes([
332
332
  'zonos--address',
333
333
  'zonos--elements',
334
334
  `zonos--${this.type}-address`,
335
- ]) }, this.titleText && (index.h("zonos-text", { key: '5f266b4562eb78eb8f5b1374f195501abc44c9f7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: 'bfcee78353455a66c6dec12432bfeff69dc9a10b', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), index.h("div", { key: 'd005a517dc93439d13f38750df8e09f884ad898c', class: "zonos--address-component" })));
335
+ ]) }, this.titleText && (index.h("zonos-text", { key: 'f52beb7ed6699ec1c73ee35a3436798a1fea38c7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: '7c9602892de932e8a3f90a37b53a936f39082916', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), index.h("div", { key: '8ea6698f5b9d3bb525942c146e2cf67fefad6ad8', class: "zonos--address-component" })));
336
336
  }
337
337
  get el() { return index.getElement(this); }
338
338
  static get watchers() { return {
@@ -704,7 +704,7 @@ const ZonosLoadingOverlay = class {
704
704
  this.size = 40;
705
705
  }
706
706
  render() {
707
- return (index.h(index.Host, { key: 'eee6eb4eb40c18ccdd24d57d98be8b90eadccf23', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: '4bca110e058cb5cbf4c86351aa56d251792ab325', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: '513b8d669ab13896442c0b1048609a3f3e0ed6f5', size: this.size, spinnerColor: this.spinnerColor }))));
707
+ return (index.h(index.Host, { key: '13154a3c9250f15d8dca292f0673c6465bfb15e0', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: '4470fccd21e58bd7959ef3e20c8775ac637cace0', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: '5b32b821cea982866da56176eeaafd5d8958f25d', size: this.size, spinnerColor: this.spinnerColor }))));
708
708
  }
709
709
  };
710
710
  ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
@@ -6,10 +6,10 @@ const index = require('./index-69fa8852.js');
6
6
  const zonosStore = require('./zonosStore-37a4b4f4.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
9
- const cart = require('./cart-7af808b1.js');
10
- const localization = require('./localization-08aa03da.js');
9
+ const cart = require('./cart-4246c004.js');
10
+ const localization = require('./localization-ec5a6780.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
- const paypal = require('./paypal-174fca15.js');
12
+ const paypal = require('./paypal-a3921278.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
14
  require('./isDarkColor-878e600e.js');
15
15
 
@@ -259,7 +259,7 @@ const ZonosPayment = class {
259
259
  }
260
260
  render() {
261
261
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
262
- return (index.h(index.Host, { key: 'ca6da9e9fadd891c2a748186c30fdfcf8f57ffc5', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: '8083de8ff08f5cd7f3ddaf6190844ee11b72ed4a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: 'cf88a4f5b989e1911b089ce9298945307085455a', class: "zonos--payment-component" }), index.h("div", { key: 'ff768b9ca8dd0a60605196f50bcba3c542cc2206', class: "zonos--payment-paypal-container" })));
262
+ return (index.h(index.Host, { key: '1fb61e01184d3a0b2dc079ae468e96175d9f6518', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: '3860ff7fc2656ff045ce09c0de2e14aa7a22e194', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: '3cabad9c095f2eeba8cfc464374ca9abfc2af5ee', class: "zonos--payment-component" }), index.h("div", { key: '9e2b13a0d8131a5513f99e2a6436ca3c5f03d7cf', class: "zonos--payment-paypal-container" })));
263
263
  }
264
264
  get el() { return index.getElement(this); }
265
265
  static get watchers() { return {
@@ -323,7 +323,7 @@ const ZonosPaypalPayment = class {
323
323
  this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
324
324
  }
325
325
  render() {
326
- return (index.h(index.Host, { key: '503c2a2f4d6dd0d6c10468f4bbe915610cf7008e', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: 'c1d2c15bf6f096c3666f9d4e8085c5fbe2c637a7', class: "zonos--payment-paypal-container" })));
326
+ return (index.h(index.Host, { key: '35387382aaa81e3f8e025e8f3503be41b86e2355', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: '34fad15dee67d8b913071a59d35b1c2317d4d3a0', class: "zonos--payment-paypal-container" })));
327
327
  }
328
328
  get el() { return index.getElement(this); }
329
329
  };
@@ -3,20 +3,20 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const cart = require('./cart-7af808b1.js');
7
- const localization = require('./localization-08aa03da.js');
8
- const renderCheckoutCurrency = require('./renderCheckoutCurrency-112ab5d2.js');
6
+ const cart = require('./cart-4246c004.js');
7
+ const localization = require('./localization-ec5a6780.js');
8
+ const renderCheckoutCurrency = require('./renderCheckoutCurrency-5fe59d60.js');
9
9
  const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
11
  const zonosStore = require('./zonosStore-37a4b4f4.js');
12
- const hasInclusivePrice = require('./hasInclusivePrice-2e306ea5.js');
13
- const paypal = require('./paypal-174fca15.js');
12
+ const hasInclusivePrice = require('./hasInclusivePrice-ac0440e7.js');
13
+ const paypal = require('./paypal-a3921278.js');
14
14
  const handleFetch = require('./handleFetch-954f30e1.js');
15
15
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
16
16
  const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
17
17
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
18
18
  const ILanguage = require('./ILanguage-98b04442.js');
19
- const placeTestOrder = require('./placeTestOrder-a786d83a.js');
19
+ const placeTestOrder = require('./placeTestOrder-907b981d.js');
20
20
  const isDarkColor = require('./isDarkColor-878e600e.js');
21
21
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
22
22
  const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-3a1db9de.js');
@@ -1742,11 +1742,11 @@ const ZonosRestState = class {
1742
1742
  }
1743
1743
  render() {
1744
1744
  const imageUrl = this.getImageRestState();
1745
- return (index.h(index.Host, { key: '333c158c20af14bcfc310b7fae19cadb9ffaea01', class: classes.classes(['zonos--elements zonos--restState']), style: {
1745
+ return (index.h(index.Host, { key: '2d9be86849c6ff2f039ca21676cbdf912538eb1d', class: classes.classes(['zonos--elements zonos--restState']), style: {
1746
1746
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
1747
- } }, index.h("div", { key: '0076afaff9200094d45bd4321ea7b1d0a4954a81', class: "zonos--restState-image" }, index.h("img", { key: '4ef3b7ee4f62175e06da9a7d2453603ba6cf9fb8', alt: this.restStateType, onError: () => {
1747
+ } }, index.h("div", { key: 'f538f05fe92eca4ee05daf72ee3387bea337c20c', class: "zonos--restState-image" }, index.h("img", { key: 'cc752b1ed3e9e656810c901df9f8b19462efc978', alt: this.restStateType, onError: () => {
1748
1748
  this.isErrorImageLoad = true;
1749
- }, src: imageUrl })), index.h("div", { key: 'b5033ee1f4618732f14a9dd3c05d0271329083df', class: "content" }, index.h("zonos-text", { key: '2f21d52a7bb0b410590cb0768102155843e21038', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '48222ff00921961e770d20b817563d9a903a9e98', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: 'ac6c100c85bd166945d8394cf61ab6baaa19cb3f', class: "action" }, index.h("slot", { key: 'cec63c8cbac43d402333c7ab6aba0ac3bd9bab36' }))));
1749
+ }, src: imageUrl })), index.h("div", { key: '4729c415dbac98876fcd907437b8df21b925dec5', class: "content" }, index.h("zonos-text", { key: '39313c8c71d228cd1076e809146ad7ac3d877a9a', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '69813bd32ae3867ebebcc511655f2052b1175945', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '98b085930fd76e2ff095cc971ae4699041c1a550', class: "action" }, index.h("slot", { key: '188318643319081914ed30aad91de5f15b014953' }))));
1750
1750
  }
1751
1751
  static get assetsDirs() { return ["assets"]; }
1752
1752
  };
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const cart = require('./cart-7af808b1.js');
7
- const paypal = require('./paypal-174fca15.js');
8
- const localization = require('./localization-08aa03da.js');
6
+ const cart = require('./cart-4246c004.js');
7
+ const paypal = require('./paypal-a3921278.js');
8
+ const localization = require('./localization-ec5a6780.js');
9
9
  const zonosStore = require('./zonosStore-37a4b4f4.js');
10
10
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
@@ -108,10 +108,23 @@ const isDisabledCountry = (showLog = true) => {
108
108
  return false;
109
109
  };
110
110
 
111
- const isShippableCountry = (showLog = true) => {
111
+ const isShippableCountry = (showLog = true,
112
+ /**
113
+ * If provided, will check if the country is shippable based on the provided country code instead of the Hello selected country code
114
+ */
115
+ providedCountryCode) => {
116
+ var _a;
112
117
  if (!localization.localizationStore.localizationLoaded) {
113
118
  return false;
114
119
  }
120
+ if (providedCountryCode) {
121
+ const isProvidedCountryCodeShippableCountry = !!((_a = localization.localizationStore.shippingZoneCountries) === null || _a === void 0 ? void 0 : _a[providedCountryCode]) &&
122
+ !zonosStore.zonosStore.disabledCountries.includes(providedCountryCode);
123
+ if (showLog && !isProvidedCountryCodeShippableCountry) {
124
+ VarianceTest.log(`Checkout: ${providedCountryCode} is not a shippable country: ${isProvidedCountryCodeShippableCountry}`);
125
+ }
126
+ return isProvidedCountryCodeShippableCountry;
127
+ }
115
128
  // if localization is loaded and the localization is not a shippable country, keep the original click event
116
129
  if (!localization.localizationStore.isShippableCountry) {
117
130
  if (showLog) {
@@ -122,15 +135,70 @@ const isShippableCountry = (showLog = true) => {
122
135
  return true;
123
136
  };
124
137
 
138
+ const SHIP_TO_COUNTRY_SELECTOR = 'select[name="shippingAddress.countryCode"]';
125
139
  /**
126
- * Watch for changes in domestic checkout step, this is to redirect user to home page and open checkout if user enters the ship to country that's in the shipping zone
140
+ * 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.
127
141
  * @note Only works on default bigcommerce checkout page
128
142
  */
129
- const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShippingAddressSessionFound, }) => {
143
+ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedBtnSelector, onInternationalCheckoutSelected, onShippingAddressSessionFound, }) => {
130
144
  if (!window.Zonos.isBigCommerce) {
131
145
  return;
132
146
  }
133
- const observer = new MutationObserver(async () => {
147
+ /**
148
+ * Keep checking
149
+ */
150
+ const handleInternationalCheckoutSelected = async () => {
151
+ const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
152
+ if (!shipToCountryElement) {
153
+ return false;
154
+ }
155
+ const shippingCountry = shipToCountryElement.value;
156
+ if (!shippingCountry) {
157
+ // do nothing if shipping country is not found
158
+ return false;
159
+ }
160
+ if (!isShippableCountry(false, shippingCountry)) {
161
+ // do nothing if shipping country is not shippable
162
+ return false;
163
+ }
164
+ if (onInternationalCheckoutSelected) {
165
+ await onInternationalCheckoutSelected();
166
+ }
167
+ // update the country code in localization store and check if it's shippable
168
+ localization.localizationStoreUpdateSelectedCountryCode({
169
+ isInitializing: false,
170
+ newSelectedCountryCode: shippingCountry,
171
+ });
172
+ const shippingAddress = {
173
+ address1: '',
174
+ address2: '',
175
+ city: '',
176
+ countryCode: shippingCountry,
177
+ firstName: '',
178
+ lastName: '',
179
+ phone: '',
180
+ postalCode: '',
181
+ stateOrProvince: '',
182
+ };
183
+ // save the shipping address to session storage
184
+ cart.stripeStoreSaveDomesticShippingSession({
185
+ address1: shippingAddress.address1,
186
+ address2: shippingAddress.address2,
187
+ city: shippingAddress.city,
188
+ countryCode: shippingAddress.countryCode,
189
+ firstName: shippingAddress.firstName,
190
+ lastName: shippingAddress.lastName,
191
+ phone: shippingAddress.phone,
192
+ postalCode: shippingAddress.postalCode,
193
+ state: shippingAddress.stateOrProvince,
194
+ });
195
+ // redirect to home page, home page then will open the checkout dialog if having domestic shipping session
196
+ window.location.href = '/';
197
+ return true;
198
+ };
199
+ let isProcessing = false;
200
+ let intervalCreated = false;
201
+ const observer = new MutationObserver(() => {
134
202
  const domesticRedirectedButton = document.querySelector(domesticRedirectedBtnSelector);
135
203
  const shippingAddressSession = cart.stripeStoreGetDomesticShippingSession();
136
204
  // append a hidden button to the body if the shipping address session is found
@@ -145,84 +213,47 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
145
213
  observer.disconnect();
146
214
  return;
147
215
  }
148
- const shipToCountryElement = document.querySelector('select[name="shippingAddress.countryCode"]');
149
- // make sure the continue button is available
150
- const shippingContinueBtnEle = document.querySelector('#checkout-shipping-continue');
151
- if (!shipToCountryElement || !shippingContinueBtnEle) {
216
+ const isBigcommerceDomesticCheckoutPage = window.location.pathname.includes('/checkout') &&
217
+ window.Zonos.isBigCommerce;
218
+ const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
219
+ // Should just disconnect the observer if it's not bigcommerce domestic checkout page
220
+ if (!isBigcommerceDomesticCheckoutPage) {
221
+ observer.disconnect();
222
+ return;
223
+ }
224
+ // Shouldn't do anything if it's not bigcommerce domestic checkout page
225
+ if (!shipToCountryElement) {
152
226
  // do nothing if shipping country and the continue button is not found
153
227
  return;
154
228
  }
155
- // disconnect the observer after we found the shipping continue button
229
+ VarianceTest.log('Domestic checkout found - Listening for shipping country change', 'info', {
230
+ value: shipToCountryElement.value,
231
+ });
232
+ // Should not create a new interval if it's already created
233
+ if (intervalCreated) {
234
+ return;
235
+ }
236
+ intervalCreated = true;
237
+ // disconnect the observer after we know that's bigcommerce domestic checkout page
156
238
  observer.disconnect();
157
- shippingContinueBtnEle.addEventListener('click', async (e) => {
158
- var _a, _b;
159
- const shippingCountry = shipToCountryElement.value;
160
- if (!shippingCountry) {
161
- // do nothing if shipping country is not found
239
+ const interval = setInterval(async () => {
240
+ if (isProcessing) {
162
241
  return;
163
242
  }
164
- // update the country code in localization store and check if it's shippable
165
- localization.localizationStoreUpdateSelectedCountryCode({
166
- isInitializing: false,
167
- newSelectedCountryCode: shippingCountry,
168
- });
169
- // do nothing if the country is still domestic
170
- if (!isShippableCountry(false)) {
171
- // cleanup the domestic shipping session if it's domestic because we will open the intl checkout after redirecting
172
- cart.stripeStoreCleanupDomesticShippingSession();
173
- return;
243
+ isProcessing = true;
244
+ try {
245
+ const isInternationalCountrySelected = await handleInternationalCheckoutSelected();
246
+ // When isInternationalCountrySelected is true, user will be redirected shortly, so we can stop the checking interval here
247
+ if (isInternationalCountrySelected) {
248
+ clearInterval(interval);
249
+ return;
250
+ }
251
+ isProcessing = false;
174
252
  }
175
- // get value of shipping address state
176
- const shipToFormElement = document.querySelector('form');
177
- if (!shipToFormElement) {
178
- return;
253
+ catch (_a) {
254
+ isProcessing = false;
179
255
  }
180
- const formData = new FormData(shipToFormElement);
181
- const shipAddress1Element = document.querySelector('input#addressLine1Input');
182
- const shippingAddress = {
183
- address1: (_a = formData.get('shippingAddress.address1')) !== null && _a !== void 0 ? _a :
184
- // in Canada, the address1 is not included in the form, try to get value from input id instead.
185
- (shipAddress1Element && shipAddress1Element.value),
186
- address2: formData.get('shippingAddress.address2'),
187
- city: formData.get('shippingAddress.city'),
188
- countryCode: formData.get('shippingAddress.countryCode'),
189
- firstName: formData.get('shippingAddress.firstName'),
190
- lastName: formData.get('shippingAddress.lastName'),
191
- phone: formData.get('shippingAddress.phone'),
192
- postalCode: formData.get('shippingAddress.postalCode'),
193
- stateOrProvince: (_b = formData.get('shippingAddress.stateOrProvince')) !== null && _b !== void 0 ? _b : formData.get('shippingAddress.stateOrProvinceCode'),
194
- };
195
- if (Object.values(shippingAddress).some(value => value === undefined || value === null)) {
196
- handleFetch.logError('One or more shipping address field is missing', Object.entries(shippingAddress));
197
- void handleFetch.sendErrorLog({
198
- endpoint: 'No endpoint, domestic checkout form missing fields',
199
- errors: [
200
- 'Bigcommerce: One or more shipping address field is missing in the domestic checkout form',
201
- JSON.stringify(Object.entries(shippingAddress)),
202
- ],
203
- metadata: {
204
- storeId: zonosStore.zonosStore.storeId,
205
- },
206
- });
207
- return;
208
- }
209
- // save the shipping address to session storage
210
- cart.stripeStoreSaveDomesticShippingSession({
211
- address1: shippingAddress.address1,
212
- address2: shippingAddress.address2,
213
- city: shippingAddress.city,
214
- countryCode: shippingAddress.countryCode,
215
- firstName: shippingAddress.firstName,
216
- lastName: shippingAddress.lastName,
217
- phone: shippingAddress.phone,
218
- postalCode: shippingAddress.postalCode,
219
- state: shippingAddress.stateOrProvince,
220
- });
221
- e.preventDefault();
222
- e.stopPropagation();
223
- // redirect to home page, home page then will open the checkout dialog if having domestic shipping session
224
- window.location.href = '/';
225
- });
256
+ }, 1000);
226
257
  });
227
258
  observer.observe(document.body, {
228
259
  childList: true,
@@ -516,6 +547,10 @@ const ZonosCheckout = class {
516
547
  * Whether or not the fedex shipping dialog should be shown
517
548
  */
518
549
  this.shouldShowFedexShippingConsentDialog = false;
550
+ /**
551
+ * Whether or not the domestic checkout dialog should be shown
552
+ */
553
+ this.detectedDomesticCheckoutDialogOpen = false;
519
554
  /**
520
555
  * Client secret value
521
556
  */
@@ -1367,8 +1402,13 @@ const ZonosCheckout = class {
1367
1402
  cart.cartStore.isStagingMode = this.overrideStagingMode;
1368
1403
  }
1369
1404
  // check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
1370
- watchBigcommerceDomesticCheckout({
1405
+ watchImmediateBigcommerceDomesticCheckoutRedirect({
1371
1406
  domesticRedirectedBtnSelector: CheckoutConfig.domesticRedirectedBtnSelector,
1407
+ onInternationalCheckoutSelected: async () => {
1408
+ this.detectedDomesticCheckoutDialogOpen = true;
1409
+ // wait for 2 secs
1410
+ await new Promise(resolve => setTimeout(resolve, 2000));
1411
+ },
1372
1412
  onShippingAddressSessionFound: shippingAddressSession => {
1373
1413
  // prefilled the default address if shipping address session is found for checkout on open
1374
1414
  this.defaultAddress = [
@@ -1881,7 +1921,7 @@ const ZonosCheckout = class {
1881
1921
  this.isMobile && 'mobile',
1882
1922
  this.isIframed && 'iframed',
1883
1923
  this.hiddenMode && 'hidden-mode',
1884
- ]) }, this.preview ? (renderContent()) : (index.h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), index.h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: localization.translate("Don't close"), dialogConfirmBtnText: localization.translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: localization.translate('Would you like to close checkout and return to the site?'), dialogTitle: localization.translate('Are you sure?'), onCancelClicked: () => {
1924
+ ]) }, this.preview ? (renderContent()) : (index.h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), index.h("zonos-dialog", { isLoading: true, loadingText: localization.translate('You will be redirected to international checkout shortly.'), loadingTitle: localization.translate('We detected that you are shipping to an international address.'), noClickOutside: true, noCloseButton: true, open: this.detectedDomesticCheckoutDialogOpen, width: "450px" }), index.h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: localization.translate("Don't close"), dialogConfirmBtnText: localization.translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: localization.translate('Would you like to close checkout and return to the site?'), dialogTitle: localization.translate('Are you sure?'), onCancelClicked: () => {
1885
1925
  this.confirmDialogOpen = false;
1886
1926
  },
1887
1927
  // Mark user selected confirm to close the dialog
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const cart = require('./cart-7af808b1.js');
6
+ const cart = require('./cart-4246c004.js');
7
7
  const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
8
8
  const zonosStore = require('./zonosStore-37a4b4f4.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
10
  const styles = require('./styles-d1e64fb9.js');
11
- require('./localization-08aa03da.js');
11
+ require('./localization-ec5a6780.js');
12
12
  require('./handleFetch-954f30e1.js');
13
13
  require('./VarianceTest-bec00ea8.js');
14
14
  require('./isDarkColor-878e600e.js');
@@ -52,10 +52,10 @@ const HStack = class {
52
52
  this.spacing = 24;
53
53
  }
54
54
  render() {
55
- return (index.h(index.Host, { key: '8c80b04f02ebafcc0529bbc8a30fb71dae591a81', style: {
55
+ return (index.h(index.Host, { key: '443aa77bfbf4c0c84c33d0ef7652caec001968c3', style: {
56
56
  '--spacing': `${this.spacing}px`,
57
57
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
58
- } }, index.h("slot", { key: '9840c220581a016349627a61efdf9a4dc3f68bc9' })));
58
+ } }, index.h("slot", { key: '3366df34b9f0f3549e556cff1e47878c2f6cd124' })));
59
59
  }
60
60
  };
61
61
  HStack.style = ZonosHStackStyle0;
@@ -78,7 +78,7 @@ const ZonosSkeleton = class {
78
78
  this.skeletonHeight = '14px';
79
79
  }
80
80
  render() {
81
- return (index.h(index.Host, { key: 'dc65462865ede6e9cb5a02f5c4f6bf43c550d0c7', class: classes.classes(['zonos--elements zonos--skeleton']), style: styles.styles({
81
+ return (index.h(index.Host, { key: '096e505180d901c1523567f89cdbcca7869a0895', class: classes.classes(['zonos--elements zonos--skeleton']), style: styles.styles({
82
82
  '--zonos--skeleton-height': this.skeletonHeight,
83
83
  '--zonos--skeleton-width': this.skeletonWidth,
84
84
  }) }));
@@ -3,19 +3,19 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const cart = require('./cart-7af808b1.js');
7
- const paypal = require('./paypal-174fca15.js');
8
- const localization = require('./localization-08aa03da.js');
6
+ const cart = require('./cart-4246c004.js');
7
+ const paypal = require('./paypal-a3921278.js');
8
+ const localization = require('./localization-ec5a6780.js');
9
9
  const zonosStore = require('./zonosStore-37a4b4f4.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
12
12
  const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
- const isCollectMobileTablet = require('./isCollectMobileTablet-a58f7b70.js');
14
+ const isCollectMobileTablet = require('./isCollectMobileTablet-65da8408.js');
15
15
  const classes = require('./classes-b7918f56.js');
16
16
  const ILanguage = require('./ILanguage-98b04442.js');
17
- const renderCheckoutCurrency = require('./renderCheckoutCurrency-112ab5d2.js');
18
- const placeTestOrder = require('./placeTestOrder-a786d83a.js');
17
+ const renderCheckoutCurrency = require('./renderCheckoutCurrency-5fe59d60.js');
18
+ const placeTestOrder = require('./placeTestOrder-907b981d.js');
19
19
  const renderFallback = require('./renderFallback-78b54537.js');
20
20
  require('./isDarkColor-878e600e.js');
21
21
 
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const cart = require('./cart-7af808b1.js');
7
- const isCollectMobileTablet = require('./isCollectMobileTablet-a58f7b70.js');
8
- const paypal = require('./paypal-174fca15.js');
9
- const localization = require('./localization-08aa03da.js');
6
+ const cart = require('./cart-4246c004.js');
7
+ const isCollectMobileTablet = require('./isCollectMobileTablet-65da8408.js');
8
+ const paypal = require('./paypal-a3921278.js');
9
+ const localization = require('./localization-ec5a6780.js');
10
10
  const zonosStore = require('./zonosStore-37a4b4f4.js');
11
11
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
12
12
  const handleFetch = require('./handleFetch-954f30e1.js');
@@ -31,7 +31,7 @@ const ZonosComponent = class {
31
31
  return format(this.first, this.middle, this.last);
32
32
  }
33
33
  render() {
34
- return index.h("div", { key: 'a4ab64de2aa643b21c019857749b944a01d83ab8' }, "Hello, World! I'm ", this.getText());
34
+ return index.h("div", { key: 'c15c75e21319fb4723d1062aa89c6e08cc2129b3' }, "Hello, World! I'm ", this.getText());
35
35
  }
36
36
  };
37
37
  ZonosComponent.style = ZonosComponentStyle0;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const cart = require('./cart-7af808b1.js');
7
- const localization = require('./localization-08aa03da.js');
6
+ const cart = require('./cart-4246c004.js');
7
+ const localization = require('./localization-ec5a6780.js');
8
8
  const zonosStore = require('./zonosStore-37a4b4f4.js');
9
9
  const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
@@ -727,7 +727,7 @@ const ZonosController = class {
727
727
  zonosStore.zonosStore.organizationName = organizationName;
728
728
  }
729
729
  render() {
730
- return index.h(index.Host, { key: '8ac43cd7dc03d654f554022653f3e852876b954b', class: "zonos--elements" });
730
+ return index.h(index.Host, { key: 'fe248e1e38cd3d98c56f55d39b704f7337c74c29', class: "zonos--elements" });
731
731
  }
732
732
  };
733
733
  ZonosController.style = ZonosControllerStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const localization = require('./localization-08aa03da.js');
6
+ const localization = require('./localization-ec5a6780.js');
7
7
  const zonosStore = require('./zonosStore-37a4b4f4.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-954f30e1.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-69fa8852.js');
6
- const localization = require('./localization-08aa03da.js');
6
+ const localization = require('./localization-ec5a6780.js');
7
7
  const zonosStore = require('./zonosStore-37a4b4f4.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-878e600e.js');
@@ -1955,9 +1955,9 @@ const ZonosHelloDialogFooter = class {
1955
1955
  const language = (_b = ILanguage.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
1956
1956
  // Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
1957
1957
  const mainColor = primaryColor && isDarkColor.isDarkColor(primaryColor) ? 'white' : 'black';
1958
- return (index.h(index.Host, { key: 'be1344c05db8a46f066a046369e46823a58385b4', class: "zonos--elements" }, index.h("div", { key: '3d4a17439fef92f563b5417e6db9561a9797e684', class: "zonos--hello-dialog-footer", style: {
1958
+ return (index.h(index.Host, { key: '7480572c4e05bfc177458ab00adb774069f28d52', class: "zonos--elements" }, index.h("div", { key: 'bd27466c0d82be3c5cde2f89dcc48749e2313090', class: "zonos--hello-dialog-footer", style: {
1959
1959
  '--zonos--primary-color': primaryColor,
1960
- } }, index.h("a", { key: 'b6bc680ca615dbb05239a099e3aff67004296a01', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'e093c21439a68c811ea6fd110e76921f4948870d', "aria-label": "Zonos Logo", autoHeight: true, content: mainColor === 'black' ? ZonosIconLight : ZonosIconDark, iconColor: mainColor, size: 108 })), index.h("div", { key: '8fd953e369a24c0b8f2b0a063ba8e16cfd733a74', class: "zonos--hello-locale-wrapper" }, index.h("zonos-button", { key: 'c7bb2c5685e225990c67975a6fa191b4d6f4bd14', buttonColor: mainColor, icon: index.h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), index.h("zonos-button", { key: 'aa89b4bbfd86de52413ff9d3cd74121d210d4f8e', buttonColor: mainColor, icon: index.h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localization.localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localization.localizationStore.selectedCountryCode)))));
1960
+ } }, index.h("a", { key: 'f6ca08c3c4f8eef3f4b81a77ba0d5a2e6cea8f62', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'a54d33d548145f0eb542041d3903ea4a257c39bb', "aria-label": "Zonos Logo", autoHeight: true, content: mainColor === 'black' ? ZonosIconLight : ZonosIconDark, iconColor: mainColor, size: 108 })), index.h("div", { key: '52e06b22daaac439d5ebdcdcf44bd8f85fed4564', class: "zonos--hello-locale-wrapper" }, index.h("zonos-button", { key: '30b994c3340467a62e72f62bde853b24e3f9e4f1', buttonColor: mainColor, icon: index.h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), index.h("zonos-button", { key: '26e2b5d8525d57841e2b7c1fefc69c96b21ad199', buttonColor: mainColor, icon: index.h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localization.localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localization.localizationStore.selectedCountryCode)))));
1961
1961
  }
1962
1962
  get ele() { return index.getElement(this); }
1963
1963
  };
@@ -2066,10 +2066,10 @@ const ZonosVirtualScroll = class {
2066
2066
  render() {
2067
2067
  const { width: containerWidth } = this.containerDimensions;
2068
2068
  const visibleItems = this.getVisibleItems();
2069
- return (index.h(index.Host, { key: 'ff339af0ad6c41cbae2f867d2898a909804a06e7', class: classes.classes(['zonos--virtual-scroll']) }, index.h("div", { key: 'c9088d67f32f2350e06814aefac55a275d9351b6', class: classes.classes(['scroller']), style: {
2069
+ return (index.h(index.Host, { key: 'a5083227ddbd44f3f94f0e4ecd7ebee309526fce', class: classes.classes(['zonos--virtual-scroll']) }, index.h("div", { key: '45dd1bb2f501ca6a2091c06a68c5f96652bd2976', class: classes.classes(['scroller']), style: {
2070
2070
  height: `${this.totalHeight}px`,
2071
2071
  width: `${containerWidth}px`,
2072
- } }), index.h("div", { key: '85f6afa13c4c8d9fbe1e688ce5a60d9c540c232f', class: classes.classes(['item-container']), style: {
2072
+ } }), index.h("div", { key: 'e8c90e99bdc3301c5430a098d4b9f57ec0bc020b', class: classes.classes(['item-container']), style: {
2073
2073
  height: `${this.totalHeight}px`,
2074
2074
  } }, visibleItems.map(({ element }) => element))));
2075
2075
  }