@zonos/elements 1.3.255 → 1.3.257

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 (330) hide show
  1. package/dist/cjs/{cart-4ef52500.js → cart-cd0a054b.js} +4 -4
  2. package/dist/cjs/{debounce-0c75ba33.js → debounce-3e17b4e9.js} +1 -1
  3. package/dist/cjs/{getBorderRadius-27a74844.js → getBorderRadius-db55a464.js} +1 -1
  4. package/dist/cjs/{getContrastColor-cc087c53.js → getContrastColor-8ed1cb48.js} +2 -2
  5. package/dist/cjs/{hasInclusivePrice-4419d03e.js → hasInclusivePrice-3650109c.js} +1 -1
  6. package/dist/cjs/index.cjs.js +7 -7
  7. package/dist/cjs/{invoice-3494b21e.js → invoice-1cea739b.js} +3 -3
  8. package/dist/cjs/{isCollectMobileTablet-92955ce6.js → isCollectMobileTablet-65c71740.js} +3 -3
  9. package/dist/cjs/{isContrastColor-d1936a5c.js → isContrastColor-6a17f408.js} +1 -1
  10. package/dist/cjs/{isDarkColor-a68abf7a.js → isDarkColor-bfe6d1eb.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/{localization-75f4ec05.js → localization-adaab93f.js} +295 -20
  13. package/dist/cjs/{paypal-cc3a730b.js → paypal-326d7bc5.js} +5 -5
  14. package/dist/cjs/{placeTestOrder-13901275.js → placeTestOrder-53f2fe97.js} +2 -2
  15. package/dist/cjs/{renderCheckoutCurrency-0003992c.js → renderCheckoutCurrency-cf2e3b93.js} +2 -2
  16. package/dist/cjs/{submitGtag-cb4fb332.js → submitGtag-9ac5a42e.js} +1 -1
  17. package/dist/cjs/{throttle-ff483793.js → throttle-dac93461.js} +2 -2
  18. package/dist/cjs/{updateCheckoutSessionAttributes-8be63b63.js → updateCheckoutSessionAttributes-a3776bb0.js} +1 -1
  19. package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
  20. package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
  21. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
  25. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -14
  26. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-checkout.cjs.entry.js +364 -85
  28. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
  30. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +11 -11
  31. package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
  32. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  33. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  35. package/dist/cjs/zonos-elements.cjs.js +1 -1
  36. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  37. package/dist/cjs/zonos-hello.cjs.entry.js +38 -15
  38. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
  40. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +11 -11
  41. package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
  42. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  43. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  44. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
  45. package/dist/cjs/zonos-store-credit.cjs.entry.js +6 -6
  46. package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
  47. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  49. package/dist/cjs/{zonosStore-f5a61112.js → zonosStore-1c517e55.js} +0 -1
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +60 -2
  51. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +35 -12
  52. package/dist/collection/components/store/hello/localization.js +54 -19
  53. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  54. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  55. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  56. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  57. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  58. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  59. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  60. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  61. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  62. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  63. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  64. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  65. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  66. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  67. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  68. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  69. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  70. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  71. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  72. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  73. package/dist/collection/components/store/zonosStore.js +0 -1
  74. package/dist/collection/components/utils/checkout/bigcommerceStorefrontApi.js +52 -0
  75. package/dist/collection/components/utils/checkout/buildBigcommerceRedirectUrl.js +22 -0
  76. package/dist/collection/components/utils/checkout/checkBigCommerceBypassCustomerGroup.js +122 -0
  77. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +5 -2
  78. package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +120 -86
  79. package/dist/collection/types/generated/graphql.internal.types.js +446 -0
  80. package/dist/esm/{cart-f4e43d1a.js → cart-4cd47a1b.js} +4 -4
  81. package/dist/esm/{debounce-efc0e473.js → debounce-8faafc9f.js} +1 -1
  82. package/dist/esm/{getBorderRadius-c21a42e5.js → getBorderRadius-66de1b16.js} +1 -1
  83. package/dist/esm/{getContrastColor-98f0d1d5.js → getContrastColor-e14f95a7.js} +2 -2
  84. package/dist/esm/{hasInclusivePrice-0439b7f4.js → hasInclusivePrice-7a3dc4c3.js} +1 -1
  85. package/dist/esm/index.js +7 -7
  86. package/dist/esm/{invoice-3d8f3fa8.js → invoice-03ff7bbb.js} +3 -3
  87. package/dist/esm/{isCollectMobileTablet-0402aa32.js → isCollectMobileTablet-9eb77c9a.js} +3 -3
  88. package/dist/esm/{isContrastColor-c17e83c9.js → isContrastColor-f9e65e70.js} +1 -1
  89. package/dist/esm/{isDarkColor-3537021b.js → isDarkColor-8092a9fb.js} +1 -1
  90. package/dist/esm/loader.js +1 -1
  91. package/dist/esm/{localization-026da80b.js → localization-79e08480.js} +295 -20
  92. package/dist/esm/{paypal-07bd6b7c.js → paypal-67c86683.js} +5 -5
  93. package/dist/esm/{placeTestOrder-39de11f4.js → placeTestOrder-e81fff15.js} +2 -2
  94. package/dist/esm/{renderCheckoutCurrency-743f7c77.js → renderCheckoutCurrency-1fc00db4.js} +2 -2
  95. package/dist/esm/{submitGtag-13de9f1f.js → submitGtag-543058f9.js} +1 -1
  96. package/dist/esm/{throttle-0504ba2c.js → throttle-5a66b4fd.js} +2 -2
  97. package/dist/esm/{updateCheckoutSessionAttributes-b9f7e982.js → updateCheckoutSessionAttributes-8f3f932e.js} +1 -1
  98. package/dist/esm/zonos-address-display_8.entry.js +7 -7
  99. package/dist/esm/zonos-address_4.entry.js +7 -7
  100. package/dist/esm/zonos-badge.entry.js +1 -1
  101. package/dist/esm/zonos-banner.entry.js +1 -1
  102. package/dist/esm/zonos-button_3.entry.js +3 -3
  103. package/dist/esm/zonos-card_5.entry.js +8 -8
  104. package/dist/esm/zonos-cart-items_12.entry.js +14 -14
  105. package/dist/esm/zonos-checkbox_2.entry.js +3 -3
  106. package/dist/esm/zonos-checkout.entry.js +365 -86
  107. package/dist/esm/zonos-collapse.entry.js +1 -1
  108. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
  109. package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
  110. package/dist/esm/zonos-collect.entry.js +9 -9
  111. package/dist/esm/zonos-controller.entry.js +6 -6
  112. package/dist/esm/zonos-country-flag.entry.js +2 -2
  113. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  114. package/dist/esm/zonos-elements.js +1 -1
  115. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  116. package/dist/esm/zonos-hello.entry.js +38 -15
  117. package/dist/esm/zonos-input.entry.js +2 -2
  118. package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
  119. package/dist/esm/zonos-invoice-finish_5.entry.js +11 -11
  120. package/dist/esm/zonos-invoice.entry.js +9 -9
  121. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  122. package/dist/esm/zonos-logo.entry.js +1 -1
  123. package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
  124. package/dist/esm/zonos-store-credit.entry.js +6 -6
  125. package/dist/esm/zonos-stripe-input.entry.js +3 -3
  126. package/dist/esm/zonos-text.entry.js +1 -1
  127. package/dist/esm/zonos-v-stack.entry.js +1 -1
  128. package/dist/esm/{zonosStore-5242a58d.js → zonosStore-f1d45eac.js} +0 -1
  129. package/dist/esm-es5/{cart-f4e43d1a.js → cart-4cd47a1b.js} +1 -1
  130. package/dist/esm-es5/{debounce-efc0e473.js → debounce-8faafc9f.js} +1 -1
  131. package/dist/esm-es5/{getBorderRadius-c21a42e5.js → getBorderRadius-66de1b16.js} +1 -1
  132. package/dist/esm-es5/{getContrastColor-98f0d1d5.js → getContrastColor-e14f95a7.js} +1 -1
  133. package/dist/esm-es5/{hasInclusivePrice-0439b7f4.js → hasInclusivePrice-7a3dc4c3.js} +1 -1
  134. package/dist/esm-es5/index.js +1 -1
  135. package/dist/esm-es5/{invoice-3d8f3fa8.js → invoice-03ff7bbb.js} +1 -1
  136. package/dist/esm-es5/{isCollectMobileTablet-0402aa32.js → isCollectMobileTablet-9eb77c9a.js} +1 -1
  137. package/dist/esm-es5/{isContrastColor-c17e83c9.js → isContrastColor-f9e65e70.js} +1 -1
  138. package/dist/esm-es5/{isDarkColor-3537021b.js → isDarkColor-8092a9fb.js} +1 -1
  139. package/dist/esm-es5/loader.js +1 -1
  140. package/dist/esm-es5/localization-79e08480.js +1 -0
  141. package/dist/esm-es5/{paypal-07bd6b7c.js → paypal-67c86683.js} +2 -2
  142. package/dist/esm-es5/{placeTestOrder-39de11f4.js → placeTestOrder-e81fff15.js} +1 -1
  143. package/dist/esm-es5/{renderCheckoutCurrency-743f7c77.js → renderCheckoutCurrency-1fc00db4.js} +1 -1
  144. package/dist/esm-es5/{submitGtag-13de9f1f.js → submitGtag-543058f9.js} +1 -1
  145. package/dist/esm-es5/{throttle-0504ba2c.js → throttle-5a66b4fd.js} +1 -1
  146. package/dist/esm-es5/{updateCheckoutSessionAttributes-b9f7e982.js → updateCheckoutSessionAttributes-8f3f932e.js} +1 -1
  147. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  148. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  149. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  150. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  151. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  152. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  153. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  154. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  155. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  156. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  157. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  158. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  159. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  160. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  161. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  162. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  163. package/dist/esm-es5/zonos-elements.js +1 -1
  164. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  165. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  166. package/dist/esm-es5/zonos-input.entry.js +1 -1
  167. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  168. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  169. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  170. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  171. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  172. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  173. package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
  174. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  175. package/dist/esm-es5/zonos-text.entry.js +1 -1
  176. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  177. package/dist/esm-es5/{zonosStore-5242a58d.js → zonosStore-f1d45eac.js} +1 -1
  178. package/dist/scripts/index.d.ts +107 -8
  179. package/dist/scripts/index.js +1 -1
  180. package/dist/scripts/loadZonos.js +1 -1
  181. package/dist/scripts/zonos.js +1 -1
  182. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +13 -0
  183. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  184. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  185. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  186. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  187. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  188. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  189. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  190. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  191. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  192. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  193. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  194. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  195. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  196. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  197. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  198. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  199. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  200. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  201. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  202. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  203. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  204. package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +36 -0
  205. package/dist/types/components/utils/checkout/buildBigcommerceRedirectUrl.d.ts +11 -0
  206. package/dist/types/components/utils/checkout/checkBigCommerceBypassCustomerGroup.d.ts +30 -0
  207. package/dist/types/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.d.ts +16 -1
  208. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +18 -6
  209. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  210. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  211. package/dist/types/types/generated/graphql.internal.types.d.ts +532 -11
  212. package/dist/types/types/generated/graphql.internal.types.ts +600 -11
  213. package/dist/types/types/hello/HelloConfig.d.ts +22 -3
  214. package/dist/types/types/utils/ZonosSettings.d.ts +7 -0
  215. package/dist/zonos-elements/index.esm.js +1 -1
  216. package/dist/zonos-elements/{p-568c5700.system.entry.js → p-0740f8a4.system.entry.js} +1 -1
  217. package/dist/zonos-elements/p-09307a03.js +1 -0
  218. package/dist/zonos-elements/{p-1bdac1d3.entry.js → p-0ca6ee9b.entry.js} +1 -1
  219. package/dist/zonos-elements/p-0e83d193.js +1 -0
  220. package/dist/zonos-elements/{p-9b12f023.system.entry.js → p-0f4822cc.system.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-8d5f928c.system.entry.js → p-1368dce7.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-ac30b7a8.system.js → p-15ef7644.system.js} +1 -1
  223. package/dist/zonos-elements/{p-ab25379f.system.js → p-17a8a514.system.js} +1 -1
  224. package/dist/zonos-elements/{p-0649737d.entry.js → p-21519ebe.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-16a80e3c.system.js → p-22bb7836.system.js} +1 -1
  226. package/dist/zonos-elements/p-271eebd3.system.js +1 -0
  227. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  228. package/dist/zonos-elements/{p-d397560e.system.entry.js → p-2c1c6d60.system.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-908f13ae.js → p-2f924331.js} +1 -1
  230. package/dist/zonos-elements/{p-4aefd668.entry.js → p-2fa41e93.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-9e98a256.system.entry.js → p-3092ec40.system.entry.js} +1 -1
  232. package/dist/zonos-elements/{p-dbb3db89.system.entry.js → p-313b87f3.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-c9d4eb42.entry.js → p-3576d900.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-a6cc56ba.entry.js → p-3675766a.entry.js} +1 -1
  235. package/dist/zonos-elements/p-380143db.entry.js +1 -0
  236. package/dist/zonos-elements/{p-4f7d64f6.js → p-387f6a4d.js} +1 -1
  237. package/dist/zonos-elements/{p-d168be79.system.entry.js → p-3fc43187.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-a1c476d6.system.entry.js → p-3ff736f7.system.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-d938fb86.entry.js → p-429c1d0c.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-8c6624b6.system.js → p-43a6e469.system.js} +1 -1
  241. package/dist/zonos-elements/{p-5678c5b5.system.entry.js → p-4a84387a.system.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-af83f0c2.js → p-4e2262e8.js} +1 -1
  243. package/dist/zonos-elements/p-53fe581b.system.js +1 -0
  244. package/dist/zonos-elements/{p-3e03b2e8.entry.js → p-5818f4a7.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-f830f800.js → p-5beab541.js} +1 -1
  246. package/dist/zonos-elements/{p-d18a2b2c.system.js → p-61be7d98.system.js} +1 -1
  247. package/dist/zonos-elements/{p-70c8a47d.system.entry.js → p-62dbc5f8.system.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-6ce8374e.entry.js → p-6b83ac7f.entry.js} +1 -1
  249. package/dist/zonos-elements/p-6bcbe651.js +1 -0
  250. package/dist/zonos-elements/{p-835c0bd4.js → p-7559c494.js} +1 -1
  251. package/dist/zonos-elements/{p-8f1ab25c.system.entry.js → p-770d414a.system.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-7427dd1e.entry.js → p-7a379538.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-fbe22363.entry.js → p-7aeb496e.entry.js} +1 -1
  254. package/dist/zonos-elements/p-7caa75bb.js +1 -0
  255. package/dist/zonos-elements/p-7cbbf483.system.js +1 -0
  256. package/dist/zonos-elements/p-7d9bbdc8.js +1 -0
  257. package/dist/zonos-elements/{p-e12f7a97.entry.js → p-80ba5f70.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-2b10f633.system.js → p-8adc0a13.system.js} +1 -1
  259. package/dist/zonos-elements/{p-b45538a7.system.entry.js → p-8b35e475.system.entry.js} +1 -1
  260. package/dist/zonos-elements/p-8bce79f4.system.js +1 -0
  261. package/dist/zonos-elements/{p-c398711f.js → p-8ed0fad5.js} +2 -2
  262. package/dist/zonos-elements/{p-18d411c3.system.entry.js → p-9161f10d.system.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-f888db89.entry.js → p-91eeccaa.entry.js} +1 -1
  264. package/dist/zonos-elements/p-944bf0e7.js +1 -0
  265. package/dist/zonos-elements/{p-3730d555.system.entry.js → p-9d435f12.system.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-db0b35a2.system.entry.js → p-9f3aab4e.system.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-231edcca.entry.js → p-a60544cc.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-33fc0c8f.entry.js → p-a7b0345b.entry.js} +1 -1
  269. package/dist/zonos-elements/{p-aabb921f.system.js → p-a90c977a.system.js} +1 -1
  270. package/dist/zonos-elements/{p-a1835bae.system.entry.js → p-aa3e3438.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-ac7b93c9.js +1 -0
  272. package/dist/zonos-elements/{p-5359ba71.entry.js → p-b3824361.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-9d9792b9.system.entry.js → p-b414b484.system.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-50aac43c.system.js → p-b53856bf.system.js} +1 -1
  275. package/dist/zonos-elements/{p-2aa44601.entry.js → p-bb6e7e9e.entry.js} +1 -1
  276. package/dist/zonos-elements/{p-939ba2a5.entry.js → p-bb785f33.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-5f628e57.entry.js → p-bcbbe867.entry.js} +1 -1
  278. package/dist/zonos-elements/p-c2139758.entry.js +1 -0
  279. package/dist/zonos-elements/{p-3814aac3.system.entry.js → p-c23e2501.system.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-2baa21b1.entry.js → p-c585d169.entry.js} +1 -1
  281. package/dist/zonos-elements/{p-ed61dedd.system.entry.js → p-c7ecef98.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-ee217693.entry.js → p-c908a7a3.entry.js} +1 -1
  283. package/dist/zonos-elements/p-cd563d65.system.js +1 -0
  284. package/dist/zonos-elements/{p-ddcbea81.entry.js → p-cdbb50cf.entry.js} +1 -1
  285. package/dist/zonos-elements/{p-2affd4e6.entry.js → p-ce2fd652.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-4e4fa1fb.system.entry.js → p-d004565d.system.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-5e3e5e3e.system.js → p-d0690cdc.system.js} +1 -1
  288. package/dist/zonos-elements/{p-fe6cc354.entry.js → p-d30e8c3a.entry.js} +1 -1
  289. package/dist/zonos-elements/p-da7e1143.system.entry.js +1 -0
  290. package/dist/zonos-elements/p-ddb27b4a.entry.js +1 -0
  291. package/dist/zonos-elements/{p-234f0339.system.entry.js → p-dfb4360d.system.entry.js} +1 -1
  292. package/dist/zonos-elements/{p-66758e30.system.entry.js → p-e173fbd1.system.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-3fbd9cc0.system.js → p-e25e0b4b.system.js} +1 -1
  294. package/dist/zonos-elements/{p-cc364b26.system.entry.js → p-e3f9779a.system.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-0d18d94b.entry.js → p-e55bc187.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-0aa1c8c2.system.js → p-e56f5954.system.js} +1 -1
  297. package/dist/zonos-elements/{p-06b4aa32.system.js → p-e5f5b086.system.js} +1 -1
  298. package/dist/zonos-elements/{p-dafafa07.js → p-e62342c3.js} +1 -1
  299. package/dist/zonos-elements/p-e6726a50.system.js +1 -0
  300. package/dist/zonos-elements/{p-274a5d11.system.entry.js → p-e6feafc1.system.entry.js} +1 -1
  301. package/dist/zonos-elements/{p-b004146f.entry.js → p-e749fb81.entry.js} +1 -1
  302. package/dist/zonos-elements/{p-27e41b44.system.entry.js → p-e80832cb.system.entry.js} +1 -1
  303. package/dist/zonos-elements/{p-12f480c9.system.entry.js → p-e9f36d6b.system.entry.js} +1 -1
  304. package/dist/zonos-elements/{p-058f6124.js → p-ed9385f4.js} +1 -1
  305. package/dist/zonos-elements/p-f68ce554.js +1 -0
  306. package/dist/zonos-elements/{p-67897a0d.js → p-f6922df5.js} +1 -1
  307. package/dist/zonos-elements/{p-f0938b51.system.entry.js → p-f7ddd288.system.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-38881641.system.entry.js → p-fbc274a8.system.entry.js} +1 -1
  309. package/dist/zonos-elements/{p-d2bba4dc.entry.js → p-fed19033.entry.js} +1 -1
  310. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  311. package/package.json +1 -1
  312. package/dist/esm-es5/localization-026da80b.js +0 -1
  313. package/dist/zonos-elements/p-0d4af7e9.system.entry.js +0 -1
  314. package/dist/zonos-elements/p-1ed9ef0b.js +0 -1
  315. package/dist/zonos-elements/p-31d1b874.system.js +0 -1
  316. package/dist/zonos-elements/p-34d10122.js +0 -1
  317. package/dist/zonos-elements/p-3ac97c01.js +0 -1
  318. package/dist/zonos-elements/p-53db5f85.system.js +0 -1
  319. package/dist/zonos-elements/p-7501c637.system.js +0 -1
  320. package/dist/zonos-elements/p-768430fe.js +0 -1
  321. package/dist/zonos-elements/p-7d7ffb42.js +0 -1
  322. package/dist/zonos-elements/p-959918fe.system.js +0 -1
  323. package/dist/zonos-elements/p-9d44fef6.system.js +0 -1
  324. package/dist/zonos-elements/p-b20c7f8c.entry.js +0 -1
  325. package/dist/zonos-elements/p-b6c78f82.entry.js +0 -1
  326. package/dist/zonos-elements/p-b84be447.js +0 -1
  327. package/dist/zonos-elements/p-db993fdb.entry.js +0 -1
  328. package/dist/zonos-elements/p-def2d465.js +0 -1
  329. package/dist/zonos-elements/p-e219d011.js +0 -1
  330. package/dist/zonos-elements/p-f9705736.system.js +0 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-f5a61112.js');
6
+ const zonosStore = require('./zonosStore-1c517e55.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
9
9
  const styles = require('./styles-d1e64fb9.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-f5a61112.js');
6
+ const zonosStore = require('./zonosStore-1c517e55.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  require('./VarianceTest-bec00ea8.js');
9
9
 
@@ -2927,7 +2927,6 @@ const { dispose: zonosStoreDispose, onChange: zonosStoreOnChange, reset, state:
2927
2927
  productListUrlPattern: '',
2928
2928
  productTitleElementSelector: '',
2929
2929
  restrictionBehavior: 'DISABLED',
2930
- showForCountries: 'ONLY_SHIPPABLE',
2931
2930
  visibilityStatus: 'ENABLED',
2932
2931
  },
2933
2932
  loadedConfig: false,
@@ -13,6 +13,8 @@ import { selectVarianceTest } from "../../utils/api/selectVarianceTest";
13
13
  import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
14
14
  import { updateCheckoutSessionAttributes } from "../../utils/api/updateCheckoutSessionAttributes";
15
15
  import { buildCartUrl } from "../../utils/buildCartUrl";
16
+ import { buildBigcommerceRedirectUrl } from "../../utils/checkout/buildBigcommerceRedirectUrl";
17
+ import { checkBigCommerceBypassCustomerGroup, initBigCommerceBypassCheck, } from "../../utils/checkout/checkBigCommerceBypassCustomerGroup";
16
18
  import { getAbandonedCartRenewTokenValue } from "../../utils/checkout/getAbandonedCartRenewTokenValue";
17
19
  import { getIsStagingMode } from "../../utils/checkout/getIsStagingMode";
18
20
  import { getIsTestMode } from "../../utils/checkout/getIsTestMode";
@@ -145,6 +147,19 @@ export class ZonosCheckout {
145
147
  * This is for BigCommerce stores when the user selects a domestic country in the international checkout.
146
148
  */
147
149
  this.redirectToDomesticCheckoutDialogOpen = false;
150
+ /**
151
+ * Whether or not the confirm dialog for a logged-in BigCommerce user with a
152
+ * detected international default shipping address is shown. The user must
153
+ * choose to either continue to the international checkout or stay on the
154
+ * BigCommerce native checkout (and select a domestic address there).
155
+ */
156
+ this.loggedInIntlAddressConfirmDialogOpen = false;
157
+ /**
158
+ * Resolver for the promise returned to
159
+ * `watchImmediateBigcommerceDomesticCheckoutRedirect` while we wait for
160
+ * the user's choice in `loggedInIntlAddressConfirmDialogOpen`.
161
+ */
162
+ this.loggedInIntlAddressResolver = null;
148
163
  /**
149
164
  * Client secret value
150
165
  */
@@ -759,6 +774,23 @@ export class ZonosCheckout {
759
774
  return;
760
775
  }
761
776
  }
777
+ // For BigCommerce stores: check if the customer belongs to a bypass
778
+ // group (e.g. resellers) and redirect them to BigCommerce native
779
+ // checkout instead. This must happen *before* we flip any UI state
780
+ // (opening the dialog, setting the fetching-session flag) so bypass
781
+ // users never see the Zonos checkout dialog flash.
782
+ // `initBigCommerceBypassCheck` was called on page load so this
783
+ // typically resolves against the cached promise.
784
+ if (window.Zonos.isBigCommerce) {
785
+ const { shouldBypass } = await checkBigCommerceBypassCustomerGroup();
786
+ if (shouldBypass) {
787
+ log('Bypass customer group detected, redirecting to BigCommerce native checkout', 'info');
788
+ // Carry over zonosQaUrl / zonosTestMode so the BC native
789
+ // checkout keeps loading the same Zonos elements build/env.
790
+ window.location.href = buildBigcommerceRedirectUrl('/checkout');
791
+ return;
792
+ }
793
+ }
762
794
  // start loading
763
795
  stripeStore.isFetchingSession = true;
764
796
  this.open = true;
@@ -1007,6 +1039,9 @@ export class ZonosCheckout {
1007
1039
  if (typeof this.overrideStagingMode !== 'undefined') {
1008
1040
  cartStore.isStagingMode = this.overrideStagingMode;
1009
1041
  }
1042
+ // Start fetching BigCommerce customer group on page load so the bypass
1043
+ // result is ready by the time checkout opens or the BC watcher fires
1044
+ initBigCommerceBypassCheck();
1010
1045
  // check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
1011
1046
  watchImmediateBigcommerceDomesticCheckoutRedirect({
1012
1047
  domesticRedirectedBtnSelector: domesticRedirectedBtnSelector,
@@ -1015,6 +1050,16 @@ export class ZonosCheckout {
1015
1050
  // wait for 2 secs
1016
1051
  await new Promise(resolve => setTimeout(resolve, 2000));
1017
1052
  },
1053
+ // Logged-in user is on the BC native /checkout page with a saved
1054
+ // international default address. Ask the user whether to continue to
1055
+ // the Zonos international checkout or stay on BC and pick a different
1056
+ // (domestic) saved address. This avoids the redirect loop where a user
1057
+ // who wants to checkout domestically gets bounced back to international
1058
+ // every time they land on /checkout.
1059
+ onLoggedInInternationalAddressDetected: () => new Promise(resolve => {
1060
+ this.loggedInIntlAddressResolver = resolve;
1061
+ this.loggedInIntlAddressConfirmDialogOpen = true;
1062
+ }),
1018
1063
  onShippingAddressSessionFound: shippingAddressSession => {
1019
1064
  // prefilled the default address if shipping address session is found for checkout on open
1020
1065
  this.defaultAddress = [
@@ -1504,7 +1549,9 @@ export class ZonosCheckout {
1504
1549
  this.redirectToDomesticCheckoutDialogOpen = true;
1505
1550
  log(`Domestic country ${shippingCountry} selected in international checkout, redirecting to BigCommerce domestic checkout`, 'info');
1506
1551
  setTimeout(() => {
1507
- window.location.href = '/checkout';
1552
+ // Carry over zonosQaUrl / zonosTestMode so the BC native checkout
1553
+ // keeps loading the same Zonos elements build/env.
1554
+ window.location.href = buildBigcommerceRedirectUrl('/checkout');
1508
1555
  }, 2000);
1509
1556
  }
1510
1557
  }),
@@ -1615,7 +1662,17 @@ export class ZonosCheckout {
1615
1662
  this.isMobile && 'mobile',
1616
1663
  this.isIframed && 'iframed',
1617
1664
  this.hiddenMode && 'hidden-mode',
1618
- ]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, class: "zonos--checkout-dialog", "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-dialog", { isLoading: true, loadingText: translate('You will be redirected to international checkout shortly.'), loadingTitle: translate('We detected that you are shipping to an international address.'), noClickOutside: true, noCloseButton: true, open: this.detectedDomesticCheckoutDialogOpen, width: "450px" }), h("zonos-dialog", { isLoading: true, loadingText: translate('You will be redirected to domestic checkout shortly.'), loadingTitle: translate('We detected that you are shipping to a domestic address.'), noClickOutside: true, noCloseButton: true, open: this.redirectToDomesticCheckoutDialogOpen, width: "450px" }), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
1665
+ ]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, class: "zonos--checkout-dialog", "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-dialog", { isLoading: true, loadingText: translate('You will be redirected to international checkout shortly.'), loadingTitle: translate('We detected that you are shipping to an international address.'), noClickOutside: true, noCloseButton: true, open: this.detectedDomesticCheckoutDialogOpen, width: "450px" }), h("zonos-dialog", { isLoading: true, loadingText: translate('You will be redirected to domestic checkout shortly.'), loadingTitle: translate('We detected that you are shipping to a domestic address.'), noClickOutside: true, noCloseButton: true, open: this.redirectToDomesticCheckoutDialogOpen, width: "450px" }), h("zonos-confirm-dialog", { class: "zonos--logged-in-intl-address-dialog", dialogCancelBtnText: translate('Stay on this page'), dialogConfirmBtnText: translate('Continue to international checkout'), dialogIntent: "info", dialogOpen: this.loggedInIntlAddressConfirmDialogOpen, dialogSubtitle: translate('Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?'), dialogTitle: translate('International shipping address detected'), dialogWidth: 480, onCancelClicked: () => {
1666
+ var _a;
1667
+ this.loggedInIntlAddressConfirmDialogOpen = false;
1668
+ (_a = this.loggedInIntlAddressResolver) === null || _a === void 0 ? void 0 : _a.call(this, 'stay');
1669
+ this.loggedInIntlAddressResolver = null;
1670
+ }, onConfirmClicked: () => {
1671
+ var _a;
1672
+ this.loggedInIntlAddressConfirmDialogOpen = false;
1673
+ (_a = this.loggedInIntlAddressResolver) === null || _a === void 0 ? void 0 : _a.call(this, 'redirect');
1674
+ this.loggedInIntlAddressResolver = null;
1675
+ } }), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
1619
1676
  this.confirmDialogOpen = false;
1620
1677
  },
1621
1678
  // Mark user selected confirm to close the dialog
@@ -1853,6 +1910,7 @@ export class ZonosCheckout {
1853
1910
  "shouldShowFedexShippingConsentDialog": {},
1854
1911
  "detectedDomesticCheckoutDialogOpen": {},
1855
1912
  "redirectToDomesticCheckoutDialogOpen": {},
1913
+ "loggedInIntlAddressConfirmDialogOpen": {},
1856
1914
  "clientSecret": {},
1857
1915
  "stripeCustomerSessionClientSecret": {}
1858
1916
  };
@@ -203,24 +203,47 @@ export class ZonosHello {
203
203
  }
204
204
  };
205
205
  this.shouldRenderHello = (showLog = true) => {
206
+ var _a, _b;
206
207
  if (!localizationStore.localizationLoaded) {
207
208
  return false;
208
209
  }
209
- const { showForCountries } = zonosStore.helloSettings;
210
- if (showLog) {
211
- if (!localizationStore.isShippableCountry) {
212
- log(`Hello: not shippable country - Show for countries: ${showForCountries}`);
213
- }
210
+ const { countryDisplayRules, showForCountries } = zonosStore.helloSettings;
211
+ const visibilityRules = countryDisplayRules === null || countryDisplayRules === void 0 ? void 0 : countryDisplayRules.widgetVisibility;
212
+ const selectedCountry = localizationStore.selectedCountryCode;
213
+ // Resolve behavior: deprecated showForCountries overrides widgetVisibility.behavior
214
+ // If showForCountries is an array of country codes, treat as legacy explicit list
215
+ const behavior = Array.isArray(showForCountries)
216
+ ? showForCountries
217
+ : (showForCountries !== null && showForCountries !== void 0 ? showForCountries : visibilityRules === null || visibilityRules === void 0 ? void 0 : visibilityRules.behavior);
218
+ if (showLog && !localizationStore.isShippableCountry) {
219
+ log(`Hello: not shippable country - Show for countries: ${behavior}`);
220
+ }
221
+ // Legacy: explicit list of country codes from deprecated showForCountries
222
+ if (Array.isArray(behavior)) {
223
+ return !!selectedCountry && behavior.includes(selectedCountry);
224
+ }
225
+ // Determine base visibility from behavior
226
+ let isVisible;
227
+ if (behavior === 'ALL') {
228
+ isVisible = true;
229
+ }
230
+ else {
231
+ // Default: ONLY_SHIPPABLE
232
+ isVisible = localizationStore.isShippableCountry;
214
233
  }
215
- // if localization is loaded and the localization is not a shippable country, keep the original click event
216
- if (showForCountries === 'ONLY_SHIPPABLE') {
217
- return localizationStore.isShippableCountry;
234
+ // Apply includedCountries — force show the widget for these countries
235
+ if (!isVisible &&
236
+ selectedCountry &&
237
+ ((_a = visibilityRules === null || visibilityRules === void 0 ? void 0 : visibilityRules.includedCountries) === null || _a === void 0 ? void 0 : _a.includes(selectedCountry))) {
238
+ isVisible = true;
218
239
  }
219
- // if user wants to show hello for all countries
220
- if (showForCountries === 'ALL') {
221
- return true;
240
+ // Apply excludedCountries — force hide the widget for these countries
241
+ if (isVisible &&
242
+ selectedCountry &&
243
+ ((_b = visibilityRules === null || visibilityRules === void 0 ? void 0 : visibilityRules.excludedCountries) === null || _b === void 0 ? void 0 : _b.includes(selectedCountry))) {
244
+ isVisible = false;
222
245
  }
223
- return showForCountries === null || showForCountries === void 0 ? void 0 : showForCountries.includes(localizationStore.selectedCountryCode || '');
246
+ return isVisible;
224
247
  };
225
248
  }
226
249
  showDialogHandler(showDialog) {
@@ -159,7 +159,7 @@ const getValidCountryCode = (countryCode) => {
159
159
  return countryCode;
160
160
  };
161
161
  const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelectedCountryCode, }) => {
162
- var _a, _b;
162
+ var _a, _b, _c;
163
163
  log(`Updating selected country code to ${newSelectedCountryCode}`);
164
164
  const isFirstTime = !localizationStore.selectedCountryCode;
165
165
  localizationStore.selectedCountryCode = getValidCountryCode(newSelectedCountryCode);
@@ -191,6 +191,13 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
191
191
  });
192
192
  }
193
193
  if (!currencyCode) {
194
+ // Non-shippable country: clear session so the next visit falls back to
195
+ // geolocation, but keep the current shopper's explicit selection visible
196
+ // in the URL (so a same-tab reload still honors it) and on the hello element.
197
+ window.sessionStorage.removeItem('zonos--country');
198
+ setZCountryUrlParam(selectedCountryCode);
199
+ (_b = document
200
+ .querySelector('zonos-hello')) === null || _b === void 0 ? void 0 : _b.setAttribute('z-country', selectedCountryCode);
194
201
  return;
195
202
  }
196
203
  localizationStore.targetCurrency = currencyCode;
@@ -198,31 +205,59 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
198
205
  if (!isInitializing) {
199
206
  void getCustomMessages();
200
207
  }
201
- // Save the country code to session storage for later use
202
208
  window.sessionStorage.setItem('zonos--country', selectedCountryCode);
203
- // Update the URL query param with the new country code
204
209
  setZCountryUrlParam(selectedCountryCode);
205
- (_b = document
206
- .querySelector('zonos-hello')) === null || _b === void 0 ? void 0 : _b.setAttribute('z-country', selectedCountryCode);
210
+ (_c = document
211
+ .querySelector('zonos-hello')) === null || _c === void 0 ? void 0 : _c.setAttribute('z-country', selectedCountryCode);
207
212
  };
208
213
  const initHelloCountryList = (allCountries) => {
209
- const showCountryList = zonosStore.helloSettings.showCountryList;
210
- const hellCountryList = localizationStore.shippingZoneCountries;
211
- if (!showCountryList || showCountryList === 'ONLY_SHIPPABLE') {
212
- // just use the shipping zone countries
213
- localizationStore.helloCountryList = hellCountryList;
214
+ var _a, _b, _c, _d, _e, _f;
215
+ const { countryDisplayRules, showCountryList } = zonosStore.helloSettings;
216
+ const shippableCountries = localizationStore.shippingZoneCountries;
217
+ const countrySelectorRules = countryDisplayRules === null || countryDisplayRules === void 0 ? void 0 : countryDisplayRules.countrySelector;
218
+ // Resolve behavior: deprecated showCountryList overrides countrySelector.behavior
219
+ // If showCountryList is an array of country codes, treat as legacy explicit list
220
+ const behavior = Array.isArray(showCountryList)
221
+ ? showCountryList
222
+ : (showCountryList !== null && showCountryList !== void 0 ? showCountryList : countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.behavior);
223
+ log('Country selector behavior', 'info', {
224
+ behavior: countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.behavior,
225
+ excludedCount: (_b = (_a = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.excludedCountries) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0,
226
+ includedCount: (_d = (_c = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.includedCountries) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
227
+ showCountryList,
228
+ });
229
+ // Legacy: explicit list of country codes from deprecated showCountryList
230
+ if (Array.isArray(behavior)) {
231
+ localizationStore.helloCountryList = behavior.reduce((acc, countryCode) => {
232
+ const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
233
+ return countryInfo ? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
234
+ }, {});
214
235
  return;
215
236
  }
216
- if (showCountryList === 'ALL') {
217
- localizationStore.helloCountryList = allCountries;
218
- return;
237
+ // Determine base country list from behavior
238
+ let baseList;
239
+ if (behavior === 'ALL') {
240
+ baseList = Object.assign({}, allCountries);
219
241
  }
220
- // get all active countries in the showCountryList
221
- localizationStore.helloCountryList = showCountryList.reduce((acc, countryCode) => {
222
- const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
223
- return countryInfo
224
- ? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
225
- }, {});
242
+ else {
243
+ // Default: ONLY_SHIPPABLE
244
+ baseList = shippableCountries ? Object.assign({}, shippableCountries) : {};
245
+ }
246
+ // Apply includedCountries — add countries not already in the list
247
+ if ((_e = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.includedCountries) === null || _e === void 0 ? void 0 : _e.length) {
248
+ for (const code of countrySelectorRules.includedCountries) {
249
+ if (!baseList[code] && allCountries[code]) {
250
+ baseList[code] = allCountries[code];
251
+ }
252
+ }
253
+ }
254
+ // Apply excludedCountries — remove countries from the list
255
+ if ((_f = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.excludedCountries) === null || _f === void 0 ? void 0 : _f.length) {
256
+ for (const code of countrySelectorRules.excludedCountries) {
257
+ delete baseList[code];
258
+ }
259
+ }
260
+ localizationStore.helloCountryList = baseList;
226
261
  };
227
262
  const updateCheckoutSessionLanguage = async () => {
228
263
  if (!storageStore.checkoutSessionId) {
@@ -128,6 +128,9 @@ export const stringsArabic = {
128
128
  Contact: {
129
129
  value: 'اتصل بنا',
130
130
  },
131
+ 'Continue to international checkout': {
132
+ value: 'الاستمرار إلى الدفع الدولي',
133
+ },
131
134
  'Continue to shipping': {
132
135
  value: 'متابعة إلى الشحن',
133
136
  },
@@ -284,6 +287,9 @@ export const stringsArabic = {
284
287
  Indeks: {
285
288
  value: 'فهرس',
286
289
  },
290
+ 'International shipping address detected': {
291
+ value: 'تم اكتشاف عنوان شحن دولي',
292
+ },
287
293
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
288
294
  value: 'تنسيق CUIT/CUIL غير صالح. يجب أن يحتوي على 11 رقمًا، مع أو بدون شرطات (XX-XXXXXXXX-X).',
289
295
  },
@@ -587,6 +593,9 @@ export const stringsArabic = {
587
593
  'State/Province/Region/Prefecture': {
588
594
  value: 'ولاية/مقاطعة/منطقة/محافظة',
589
595
  },
596
+ 'Stay on this page': {
597
+ value: 'ابق في هذه الصفحة',
598
+ },
590
599
  'Store credit': {
591
600
  value: 'Store credit',
592
601
  },
@@ -773,6 +782,9 @@ export const stringsArabic = {
773
782
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
774
783
  value: 'تمت عملية الدفع بنجاح! شكرا لتسوقك معنا! نأمل أن تكون قد استمتعت بتجربة رائعة ودعمك يعني لنا الكثير.',
775
784
  },
785
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
786
+ value: 'عنوانك الافتراضي المحفوظ يتم شحنه دوليًا. هل ترغب في الاستمرار إلى الدفع الدولي، أم البقاء هنا واختيار عنوان محلي؟',
787
+ },
776
788
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
777
789
  value: 'طريقة الدفع التي اخترتها تتطلب تحققًا إضافيًا. يرجى اتباع التعليمات المقدمة من مزود الدفع الخاص بك لإكمال المعاملة.',
778
790
  },
@@ -129,6 +129,9 @@ export const stringsBase = {
129
129
  Contact: {
130
130
  value: 'Contact',
131
131
  },
132
+ 'Continue to international checkout': {
133
+ value: 'Continue to international checkout',
134
+ },
132
135
  'Continue to shipping': {
133
136
  value: 'Continue to shipping',
134
137
  },
@@ -285,6 +288,9 @@ export const stringsBase = {
285
288
  Indeks: {
286
289
  value: 'Indeks',
287
290
  },
291
+ 'International shipping address detected': {
292
+ value: 'International shipping address detected',
293
+ },
288
294
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
289
295
  value: 'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).',
290
296
  },
@@ -588,6 +594,9 @@ export const stringsBase = {
588
594
  'State/Province/Region/Prefecture': {
589
595
  value: 'State/Province/Region/Prefecture',
590
596
  },
597
+ 'Stay on this page': {
598
+ value: 'Stay on this page',
599
+ },
591
600
  'Store credit': {
592
601
  value: 'Store credit',
593
602
  },
@@ -774,6 +783,9 @@ export const stringsBase = {
774
783
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
775
784
  value: 'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.',
776
785
  },
786
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
787
+ value: 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?',
788
+ },
777
789
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
778
790
  value: 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.',
779
791
  },
@@ -128,6 +128,9 @@ export const stringsChinese = {
128
128
  Contact: {
129
129
  value: '联系方式',
130
130
  },
131
+ 'Continue to international checkout': {
132
+ value: '继续国际结账',
133
+ },
131
134
  'Continue to shipping': {
132
135
  value: '继续运送',
133
136
  },
@@ -284,6 +287,9 @@ export const stringsChinese = {
284
287
  Indeks: {
285
288
  value: '索引',
286
289
  },
290
+ 'International shipping address detected': {
291
+ value: '检测到国际收货地址',
292
+ },
287
293
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
288
294
  value: '无效的CUIT/CUIL格式。必须包含11位数字,可以有或没有破折号 (XX-XXXXXXXX-X)。',
289
295
  },
@@ -587,6 +593,9 @@ export const stringsChinese = {
587
593
  'State/Province/Region/Prefecture': {
588
594
  value: '州/省/地区/府',
589
595
  },
596
+ 'Stay on this page': {
597
+ value: '留在此页面',
598
+ },
590
599
  'Store credit': {
591
600
  value: 'Store credit',
592
601
  },
@@ -773,6 +782,9 @@ export const stringsChinese = {
773
782
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
774
783
  value: '您的付款已成功完成!感谢您与我们购物!我们希望您拥有愉快的购物体验,您的支持对我们来说意义非凡。',
775
784
  },
785
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
786
+ value: '您保存的默认地址为国际配送地址。您想继续进行国际结账,还是留在此页面选择国内地址?',
787
+ },
776
788
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
777
789
  value: '您选择的付款方式需要额外验证。请按照您的付款提供商提供的说明完成交易。',
778
790
  },
@@ -128,6 +128,9 @@ export const stringsDanish = {
128
128
  Contact: {
129
129
  value: 'Kontakt',
130
130
  },
131
+ 'Continue to international checkout': {
132
+ value: 'Fortsæt til international checkout',
133
+ },
131
134
  'Continue to shipping': {
132
135
  value: 'Fortsæt til levering',
133
136
  },
@@ -284,6 +287,9 @@ export const stringsDanish = {
284
287
  Indeks: {
285
288
  value: 'Indeks',
286
289
  },
290
+ 'International shipping address detected': {
291
+ value: 'International leveringsadresse registreret',
292
+ },
287
293
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
288
294
  value: 'Ugyldigt CUIT/CUIL-format. Skal indeholde 11 cifre, med eller uden bindestreger (XX-XXXXXXXX-X).',
289
295
  },
@@ -587,6 +593,9 @@ export const stringsDanish = {
587
593
  'State/Province/Region/Prefecture': {
588
594
  value: 'Stat/Provins/Region/Præfektur',
589
595
  },
596
+ 'Stay on this page': {
597
+ value: 'Bliv på denne side',
598
+ },
590
599
  'Store credit': {
591
600
  value: 'Store credit',
592
601
  },
@@ -773,6 +782,9 @@ export const stringsDanish = {
773
782
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
774
783
  value: 'Din betaling gik igennem! Tak fordi du handler hos os! Vi håber, du havde en god oplevelse, og din støtte betyder meget for os.',
775
784
  },
785
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
786
+ value: 'Din gemte standardadresse sendes internationalt. Vil du fortsætte til international checkout, eller blive her og vælge en indenlandsk adresse?',
787
+ },
776
788
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
777
789
  value: 'Din valgte betalingsmetode kræver yderligere verifikation. Følg venligst instruktionerne fra din betalingsudbyder for at fuldføre transaktionen.',
778
790
  },
@@ -128,6 +128,9 @@ export const stringsDutch = {
128
128
  Contact: {
129
129
  value: 'Contact',
130
130
  },
131
+ 'Continue to international checkout': {
132
+ value: 'Doorgaan naar internationale kassa',
133
+ },
131
134
  'Continue to shipping': {
132
135
  value: 'Ga verder naar verzending',
133
136
  },
@@ -284,6 +287,9 @@ export const stringsDutch = {
284
287
  Indeks: {
285
288
  value: 'Index',
286
289
  },
290
+ 'International shipping address detected': {
291
+ value: 'Internationaal verzendadres gedetecteerd',
292
+ },
287
293
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
288
294
  value: 'Ongeldig CUIT/CUIL-formaat. Moet 11 cijfers bevatten, met of zonder streepjes (XX-XXXXXXXX-X).',
289
295
  },
@@ -587,6 +593,9 @@ export const stringsDutch = {
587
593
  'State/Province/Region/Prefecture': {
588
594
  value: 'Staat/Provincie/Regio/Prefectuur',
589
595
  },
596
+ 'Stay on this page': {
597
+ value: 'Blijf op deze pagina',
598
+ },
590
599
  'Store credit': {
591
600
  value: 'Store credit',
592
601
  },
@@ -773,6 +782,9 @@ export const stringsDutch = {
773
782
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
774
783
  value: 'Je betaling is succesvol verwerkt! Bedankt voor het winkelen bij ons! We hopen dat je een prettige ervaring hebt gehad en je steun betekent veel voor ons.',
775
784
  },
785
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
786
+ value: 'Uw opgeslagen standaardadres wordt internationaal verzonden. Wilt u doorgaan naar de internationale kassa, of hier blijven en een binnenlands adres selecteren?',
787
+ },
776
788
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
777
789
  value: 'Uw geselecteerde betaalmethode vereist aanvullende verificatie. Volg de instructies van uw betalingsprovider om de transactie te voltooien.',
778
790
  },
@@ -128,6 +128,9 @@ export const stringsFrench = {
128
128
  Contact: {
129
129
  value: 'Contact',
130
130
  },
131
+ 'Continue to international checkout': {
132
+ value: 'Continuer vers le paiement international',
133
+ },
131
134
  'Continue to shipping': {
132
135
  value: 'Continuer vers la livraison',
133
136
  },
@@ -284,6 +287,9 @@ export const stringsFrench = {
284
287
  Indeks: {
285
288
  value: 'Indice',
286
289
  },
290
+ 'International shipping address detected': {
291
+ value: 'Adresse de livraison internationale détectée',
292
+ },
287
293
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
288
294
  value: 'Format CUIT/CUIL invalide. Doit contenir 11 chiffres, avec ou sans tirets (XX-XXXXXXXX-X).',
289
295
  },
@@ -587,6 +593,9 @@ export const stringsFrench = {
587
593
  'State/Province/Region/Prefecture': {
588
594
  value: 'État/Province/Région/Préfecture',
589
595
  },
596
+ 'Stay on this page': {
597
+ value: 'Rester sur cette page',
598
+ },
590
599
  'Store credit': {
591
600
  value: 'Store credit',
592
601
  },
@@ -773,6 +782,9 @@ export const stringsFrench = {
773
782
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
774
783
  value: 'Votre paiement a bien été effectué ! Merci de votre achat chez nous ! Nous espérons que vous avez passé un bon moment et votre soutien compte beaucoup pour nous.',
775
784
  },
785
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
786
+ value: 'Votre adresse par défaut enregistrée est une adresse de livraison internationale. Souhaitez-vous continuer vers le paiement international, ou rester ici et sélectionner une adresse nationale ?',
787
+ },
776
788
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
777
789
  value: 'Votre méthode de paiement sélectionnée nécessite une vérification supplémentaire. Veuillez suivre les instructions fournies par votre fournisseur de paiement pour compléter la transaction.',
778
790
  },
@@ -128,6 +128,9 @@ export const stringsGerman = {
128
128
  Contact: {
129
129
  value: 'Kontakt',
130
130
  },
131
+ 'Continue to international checkout': {
132
+ value: 'Weiter zum internationalen Checkout',
133
+ },
131
134
  'Continue to shipping': {
132
135
  value: 'Weiter zur Lieferung',
133
136
  },
@@ -284,6 +287,9 @@ export const stringsGerman = {
284
287
  Indeks: {
285
288
  value: 'Index',
286
289
  },
290
+ 'International shipping address detected': {
291
+ value: 'Internationale Lieferadresse erkannt',
292
+ },
287
293
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
288
294
  value: 'Ungültiges CUIT/CUIL-Format. Muss 11 Ziffern enthalten, mit oder ohne Bindestriche (XX-XXXXXXXX-X).',
289
295
  },
@@ -587,6 +593,9 @@ export const stringsGerman = {
587
593
  'State/Province/Region/Prefecture': {
588
594
  value: 'Staat/Provinz/Region/Präfektur',
589
595
  },
596
+ 'Stay on this page': {
597
+ value: 'Auf dieser Seite bleiben',
598
+ },
590
599
  'Store credit': {
591
600
  value: 'Store credit',
592
601
  },
@@ -773,6 +782,9 @@ export const stringsGerman = {
773
782
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
774
783
  value: 'Ihre Zahlung war erfolgreich! Vielen Dank, dass Sie bei uns eingekauft haben! Wir hoffen, Sie hatten eine angenehme Erfahrung und Ihre Unterstützung bedeutet uns sehr viel.',
775
784
  },
785
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
786
+ value: 'Ihre gespeicherte Standardadresse wird international versendet. Möchten Sie zum internationalen Checkout fortfahren oder hier bleiben und eine inländische Adresse auswählen?',
787
+ },
776
788
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
777
789
  value: 'Ihre ausgewählte Zahlungsmethode erfordert eine zusätzliche Verifizierung. Bitte folgen Sie den Anweisungen Ihres Zahlungsanbieters, um die Transaktion abzuschließen.',
778
790
  },
@@ -128,6 +128,9 @@ export const stringsHebrew = {
128
128
  Contact: {
129
129
  value: 'צור קשר',
130
130
  },
131
+ 'Continue to international checkout': {
132
+ value: 'המשך לקופה הבינלאומית',
133
+ },
131
134
  'Continue to shipping': {
132
135
  value: 'המשך למשלוח',
133
136
  },
@@ -284,6 +287,9 @@ export const stringsHebrew = {
284
287
  Indeks: {
285
288
  value: 'אינדקס',
286
289
  },
290
+ 'International shipping address detected': {
291
+ value: 'זוהה כתובת משלוח בינלאומית',
292
+ },
287
293
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
288
294
  value: 'פורמט CUIT/CUIL לא חוקי. חייב להכיל 11 ספרות, עם או בלי מקפים (XX-XXXXXXXX-X).',
289
295
  },
@@ -587,6 +593,9 @@ export const stringsHebrew = {
587
593
  'State/Province/Region/Prefecture': {
588
594
  value: 'מדינה/מחוז/אזור/מחוז',
589
595
  },
596
+ 'Stay on this page': {
597
+ value: 'הישאר בדף זה',
598
+ },
590
599
  'Store credit': {
591
600
  value: 'Store credit',
592
601
  },
@@ -773,6 +782,9 @@ export const stringsHebrew = {
773
782
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
774
783
  value: 'התשלום שלך התבצע בהצלחה! תודה שקנית אצלנו! אנו מקווים שנהנית והתמיכה שלך חשובה לנו מאוד.',
775
784
  },
785
+ 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
786
+ value: 'כתובת ברירת המחדל השמורה שלך היא כתובת משלוח בינלאומית. האם תרצה להמשיך לקופה הבינלאומית, או להישאר כאן ולבחור כתובת מקומית?',
787
+ },
776
788
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
777
789
  value: 'שיטת התשלום שבחרת דורשת אימות נוסף. אנא עקוב אחר ההוראות שסופקו על ידי ספק התשלומים שלך כדי להשלים את העסקה.',
778
790
  },