@zonos/elements 1.3.279 → 1.3.280

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 (229) hide show
  1. package/dist/cjs/{cart-e8bc11a3.js → cart-0fa312a5.js} +1 -1
  2. package/dist/cjs/{collect-e6485168.js → collect-f9c4ca7c.js} +2 -2
  3. package/dist/cjs/formatStringWithLinks-c25b4018.js +24 -0
  4. package/dist/cjs/{hasInclusivePrice-798ce42d.js → hasInclusivePrice-95431bca.js} +1 -1
  5. package/dist/cjs/index.cjs.js +7 -7
  6. package/dist/cjs/{invoice-dff7ec81.js → invoice-ce757565.js} +2 -2
  7. package/dist/cjs/isSameHostCheckoutLink-6148cabb.js +28 -0
  8. package/dist/cjs/{localization-90650d7d.js → localization-7fded969.js} +40 -40
  9. package/dist/cjs/{paypal-77bd640c.js → paypal-57ab3ab6.js} +2 -2
  10. package/dist/cjs/{placeTestOrder-7767d119.js → placeTestOrder-35e0d3bd.js} +2 -2
  11. package/dist/cjs/{renderCheckoutCurrency-66377cf5.js → renderCheckoutCurrency-41d48407.js} +2 -2
  12. package/dist/cjs/zonos-address-display_8.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +3 -3
  15. package/dist/cjs/zonos-card_5.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +19 -7
  17. package/dist/cjs/zonos-checkout.cjs.entry.js +189 -13
  18. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  20. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  21. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -2
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -3
  25. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
  28. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  29. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +3 -3
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +13 -1
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +36 -2
  33. package/dist/collection/components/store/translationStore/strings.arabic.js +2 -2
  34. package/dist/collection/components/store/translationStore/strings.base.js +2 -2
  35. package/dist/collection/components/store/translationStore/strings.chinese.js +2 -2
  36. package/dist/collection/components/store/translationStore/strings.danish.js +2 -2
  37. package/dist/collection/components/store/translationStore/strings.dutch.js +2 -2
  38. package/dist/collection/components/store/translationStore/strings.french.js +2 -2
  39. package/dist/collection/components/store/translationStore/strings.german.js +2 -2
  40. package/dist/collection/components/store/translationStore/strings.hebrew.js +2 -2
  41. package/dist/collection/components/store/translationStore/strings.indonesian.js +2 -2
  42. package/dist/collection/components/store/translationStore/strings.italian.js +2 -2
  43. package/dist/collection/components/store/translationStore/strings.japanese.js +2 -2
  44. package/dist/collection/components/store/translationStore/strings.korean.js +2 -2
  45. package/dist/collection/components/store/translationStore/strings.norwegian.js +2 -2
  46. package/dist/collection/components/store/translationStore/strings.polish.js +2 -2
  47. package/dist/collection/components/store/translationStore/strings.portuguese.js +2 -2
  48. package/dist/collection/components/store/translationStore/strings.russian.js +2 -2
  49. package/dist/collection/components/store/translationStore/strings.spanish.js +2 -2
  50. package/dist/collection/components/store/translationStore/strings.swedish.js +2 -2
  51. package/dist/collection/components/store/translationStore/strings.turkish.js +2 -2
  52. package/dist/collection/components/store/translationStore/strings.vietnamese.js +2 -2
  53. package/dist/collection/components/utils/checkout/buildBigcommerceRedirectUrl.js +6 -1
  54. package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +144 -7
  55. package/dist/collection/components/utils/formatStringWithLinks.js +12 -6
  56. package/dist/collection/components/utils/isSameHostCheckoutLink.js +24 -0
  57. package/dist/collection/types/generated/graphql.internal.types.js +84 -0
  58. package/dist/esm/{cart-8b8dc79f.js → cart-4699e6ab.js} +2 -2
  59. package/dist/esm/{collect-f4965586.js → collect-24cc2e12.js} +2 -2
  60. package/dist/esm/formatStringWithLinks-0d48f183.js +22 -0
  61. package/dist/esm/{hasInclusivePrice-1589fef9.js → hasInclusivePrice-f81ddcd6.js} +1 -1
  62. package/dist/esm/index.js +7 -7
  63. package/dist/esm/{invoice-b7a1fb14.js → invoice-575dc93d.js} +2 -2
  64. package/dist/esm/isSameHostCheckoutLink-c1b88ab7.js +26 -0
  65. package/dist/esm/{localization-d49867ed.js → localization-da2f407f.js} +40 -40
  66. package/dist/esm/{paypal-da551105.js → paypal-d4436abd.js} +2 -2
  67. package/dist/esm/{placeTestOrder-4309b170.js → placeTestOrder-d87b2c6a.js} +2 -2
  68. package/dist/esm/{renderCheckoutCurrency-0ed221ac.js → renderCheckoutCurrency-08526996.js} +2 -2
  69. package/dist/esm/zonos-address-display_8.entry.js +2 -2
  70. package/dist/esm/zonos-address_4.entry.js +2 -2
  71. package/dist/esm/zonos-airwallex-payment.entry.js +3 -3
  72. package/dist/esm/zonos-card_5.entry.js +3 -3
  73. package/dist/esm/zonos-cart-items_12.entry.js +19 -7
  74. package/dist/esm/zonos-checkout.entry.js +189 -13
  75. package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
  76. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  77. package/dist/esm/zonos-collect.entry.js +4 -4
  78. package/dist/esm/zonos-controller.entry.js +2 -2
  79. package/dist/esm/zonos-country-flag.entry.js +1 -1
  80. package/dist/esm/zonos-country-select_4.entry.js +3 -2
  81. package/dist/esm/zonos-hello-dialog.entry.js +4 -3
  82. package/dist/esm/zonos-hello.entry.js +1 -1
  83. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  84. package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
  85. package/dist/esm/zonos-invoice.entry.js +4 -4
  86. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  87. package/dist/esm/zonos-policy-consent_2.entry.js +3 -3
  88. package/dist/esm-es5/{cart-8b8dc79f.js → cart-4699e6ab.js} +1 -1
  89. package/dist/esm-es5/{collect-f4965586.js → collect-24cc2e12.js} +1 -1
  90. package/dist/esm-es5/formatStringWithLinks-0d48f183.js +1 -0
  91. package/dist/esm-es5/{hasInclusivePrice-1589fef9.js → hasInclusivePrice-f81ddcd6.js} +1 -1
  92. package/dist/esm-es5/index.js +1 -1
  93. package/dist/esm-es5/{invoice-b7a1fb14.js → invoice-575dc93d.js} +1 -1
  94. package/dist/esm-es5/isSameHostCheckoutLink-c1b88ab7.js +1 -0
  95. package/dist/esm-es5/localization-da2f407f.js +1 -0
  96. package/dist/esm-es5/{paypal-da551105.js → paypal-d4436abd.js} +1 -1
  97. package/dist/esm-es5/{placeTestOrder-4309b170.js → placeTestOrder-d87b2c6a.js} +1 -1
  98. package/dist/esm-es5/{renderCheckoutCurrency-0ed221ac.js → renderCheckoutCurrency-08526996.js} +1 -1
  99. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  100. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  101. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  102. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  103. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  104. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  105. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  106. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  107. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  108. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  109. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  110. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  111. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  112. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  113. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  114. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  115. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  116. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  117. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  118. package/dist/scripts/index.d.ts +1 -1
  119. package/dist/scripts/index.js +1 -1
  120. package/dist/scripts/loadZonos.js +1 -1
  121. package/dist/scripts/zonos.js +1 -1
  122. package/dist/types/components/store/translationStore/strings.arabic.d.ts +1 -1
  123. package/dist/types/components/store/translationStore/strings.base.d.ts +1 -1
  124. package/dist/types/components/store/translationStore/strings.chinese.d.ts +1 -1
  125. package/dist/types/components/store/translationStore/strings.danish.d.ts +1 -1
  126. package/dist/types/components/store/translationStore/strings.dutch.d.ts +1 -1
  127. package/dist/types/components/store/translationStore/strings.french.d.ts +1 -1
  128. package/dist/types/components/store/translationStore/strings.german.d.ts +1 -1
  129. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +1 -1
  130. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +1 -1
  131. package/dist/types/components/store/translationStore/strings.italian.d.ts +1 -1
  132. package/dist/types/components/store/translationStore/strings.japanese.d.ts +1 -1
  133. package/dist/types/components/store/translationStore/strings.korean.d.ts +1 -1
  134. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +1 -1
  135. package/dist/types/components/store/translationStore/strings.polish.d.ts +1 -1
  136. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +1 -1
  137. package/dist/types/components/store/translationStore/strings.russian.d.ts +1 -1
  138. package/dist/types/components/store/translationStore/strings.spanish.d.ts +1 -1
  139. package/dist/types/components/store/translationStore/strings.swedish.d.ts +1 -1
  140. package/dist/types/components/store/translationStore/strings.turkish.d.ts +1 -1
  141. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +1 -1
  142. package/dist/types/components/utils/isSameHostCheckoutLink.d.ts +14 -0
  143. package/dist/types/types/generated/graphql.internal.types.d.ts +84 -0
  144. package/dist/types/types/generated/graphql.internal.types.ts +85 -0
  145. package/dist/zonos-elements/index.esm.js +1 -1
  146. package/dist/zonos-elements/{p-02065a08.system.js → p-016b5bde.system.js} +1 -1
  147. package/dist/zonos-elements/{p-6fae9835.system.entry.js → p-0adab1d5.system.entry.js} +1 -1
  148. package/dist/zonos-elements/p-0d2f81ce.system.js +1 -0
  149. package/dist/zonos-elements/p-11206fe2.js +1 -0
  150. package/dist/zonos-elements/{p-0402af0d.entry.js → p-12452213.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-5827c868.entry.js → p-19f4e77a.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-2aecc055.entry.js → p-1bb85ff1.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-5c76ef2a.js → p-275fa2da.js} +1 -1
  154. package/dist/zonos-elements/{p-8b42245d.entry.js → p-28b1c189.entry.js} +1 -1
  155. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  156. package/dist/zonos-elements/p-2b97f7ed.js +1 -0
  157. package/dist/zonos-elements/{p-647438d6.system.js → p-2dbdf883.system.js} +1 -1
  158. package/dist/zonos-elements/{p-5afea02c.system.entry.js → p-3068247c.system.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-7614ea6f.system.entry.js → p-362215b6.system.entry.js} +1 -1
  160. package/dist/zonos-elements/p-39e2642f.js +1 -0
  161. package/dist/zonos-elements/p-3f8f4c78.js +1 -0
  162. package/dist/zonos-elements/{p-d5945ddc.entry.js → p-3f90cb36.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-1b963905.system.js → p-40a0c1d3.system.js} +1 -1
  164. package/dist/zonos-elements/{p-abf61f6f.system.entry.js → p-43a14674.system.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-d7cb9ef6.system.entry.js → p-46f88c11.system.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-998f9df5.system.entry.js → p-564c7bb5.system.entry.js} +1 -1
  167. package/dist/zonos-elements/p-5b54f10c.entry.js +1 -0
  168. package/dist/zonos-elements/p-6197aa73.system.entry.js +1 -0
  169. package/dist/zonos-elements/{p-b36205f4.entry.js → p-6451537c.entry.js} +1 -1
  170. package/dist/zonos-elements/p-65fe75e1.entry.js +1 -0
  171. package/dist/zonos-elements/{p-5bc43687.system.entry.js → p-66223935.system.entry.js} +1 -1
  172. package/dist/zonos-elements/p-67426156.system.js +1 -0
  173. package/dist/zonos-elements/{p-2654556b.js → p-67b2e46c.js} +1 -1
  174. package/dist/zonos-elements/p-6bea1787.entry.js +1 -0
  175. package/dist/zonos-elements/{p-cd41b16b.system.entry.js → p-7237ec6f.system.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-0745e440.entry.js → p-72c1bd64.entry.js} +1 -1
  177. package/dist/zonos-elements/p-75da4ba0.entry.js +1 -0
  178. package/dist/zonos-elements/{p-3f380c8f.system.js → p-788a16bb.system.js} +1 -1
  179. package/dist/zonos-elements/p-79b6070a.js +1 -0
  180. package/dist/zonos-elements/{p-77fa437c.entry.js → p-807e7ebc.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-43815edd.system.entry.js → p-81c4f04a.system.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-8bd37d3b.entry.js → p-85796e67.entry.js} +1 -1
  183. package/dist/zonos-elements/p-94329e56.js +1 -0
  184. package/dist/zonos-elements/{p-ed676ad1.system.entry.js → p-944148db.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-a8c79850.js → p-96e7b465.js} +1 -1
  186. package/dist/zonos-elements/{p-32278945.system.js → p-a30f03d6.system.js} +1 -1
  187. package/dist/zonos-elements/{p-ac59f5c1.system.entry.js → p-a5afcea1.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-293183c1.system.entry.js → p-a7f0e824.system.entry.js} +1 -1
  189. package/dist/zonos-elements/p-aff7112b.entry.js +1 -0
  190. package/dist/zonos-elements/p-b05da593.system.entry.js +1 -0
  191. package/dist/zonos-elements/p-b330e451.system.js +1 -0
  192. package/dist/zonos-elements/{p-12a08423.system.entry.js → p-b6049eef.system.entry.js} +1 -1
  193. package/dist/zonos-elements/p-b6cd6e62.system.entry.js +1 -0
  194. package/dist/zonos-elements/{p-7365e22c.system.js → p-b8c019b9.system.js} +1 -1
  195. package/dist/zonos-elements/p-c2014d57.system.entry.js +1 -0
  196. package/dist/zonos-elements/{p-ee434a71.entry.js → p-c4a479ad.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-4e6e9a3c.system.entry.js → p-cf0c8c77.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-f44a3338.entry.js → p-db9cb522.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-9beb2624.entry.js → p-dbd5be5d.entry.js} +1 -1
  200. package/dist/zonos-elements/p-dff1d3be.entry.js +1 -0
  201. package/dist/zonos-elements/{p-7e8aba66.system.entry.js → p-ec53c436.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-74ebd766.js → p-f3759c70.js} +1 -1
  203. package/dist/zonos-elements/{p-5e09c22d.system.js → p-f55a2352.system.js} +1 -1
  204. package/dist/zonos-elements/{p-8d87e748.entry.js → p-fc2d5dd9.entry.js} +1 -1
  205. package/dist/zonos-elements/p-fd2d4d04.system.js +1 -0
  206. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  207. package/package.json +3 -3
  208. package/dist/cjs/formatStringWithLinks-52341fc7.js +0 -17
  209. package/dist/esm/formatStringWithLinks-9e819405.js +0 -15
  210. package/dist/esm-es5/formatStringWithLinks-9e819405.js +0 -1
  211. package/dist/esm-es5/localization-d49867ed.js +0 -1
  212. package/dist/zonos-elements/p-21d925d7.entry.js +0 -1
  213. package/dist/zonos-elements/p-2d6557ee.system.js +0 -1
  214. package/dist/zonos-elements/p-32704baa.js +0 -1
  215. package/dist/zonos-elements/p-3cf22558.entry.js +0 -1
  216. package/dist/zonos-elements/p-45e1c33b.entry.js +0 -1
  217. package/dist/zonos-elements/p-5d3ea491.system.entry.js +0 -1
  218. package/dist/zonos-elements/p-6b4ef7e0.entry.js +0 -1
  219. package/dist/zonos-elements/p-73d3fa61.entry.js +0 -1
  220. package/dist/zonos-elements/p-7522ec43.js +0 -1
  221. package/dist/zonos-elements/p-9fab45aa.system.js +0 -1
  222. package/dist/zonos-elements/p-a87561b8.js +0 -1
  223. package/dist/zonos-elements/p-c209e36d.js +0 -1
  224. package/dist/zonos-elements/p-d7bda14d.js +0 -1
  225. package/dist/zonos-elements/p-d93991c3.system.entry.js +0 -1
  226. package/dist/zonos-elements/p-e6165cc2.system.js +0 -1
  227. package/dist/zonos-elements/p-eb9369b9.system.entry.js +0 -1
  228. package/dist/zonos-elements/p-f3a73132.entry.js +0 -1
  229. package/dist/zonos-elements/p-ffbf87c8.system.entry.js +0 -1
@@ -1,18 +1,19 @@
1
1
  import { r as registerInstance, e as getAssetPath, h, a as Host, F as Fragment, d as createEvent, g as getElement } from './index-cfd394c8.js';
2
- import { d as cartStore, M as cartStoreHasOneEligibleItem, N as isEuDapRemittance, b as stripeStore, O as stripeStoreApplyPromoCode, P as stripeStoreRemovePromoCode, F as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, Q as stripeStoreResetPromoCode, R as stripeStoreMessageBasedOnStatus, S as storeCreditStore, T as storeCreditStoreReset, z as storeCreditStoreCoversFullAmount, v as isPolicyConsentRequired, E as policyConsentStore, J as stripeStoreRecordPolicyConsent, u as cartStoreNextStep, U as stripeStoreTranslateAddressToLatin, V as extractName, G as cartStoreOnChange, W as stripeStoreAsyncAddressUpdate, L as cartStoreUpdateSelectedShippingOption, X as cartStoreGetShippingTransitInfo, Y as cartStoreGetMethod, Z as sortServiceLevelOptionsByAmount } from './cart-8b8dc79f.js';
3
- import { t as translate, l as localizationStore, s as storageStore, u as getExchangeRate, v as numberFormat, e as localizationStoreOnChange } from './localization-d49867ed.js';
4
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-0ed221ac.js';
2
+ import { d as cartStore, M as cartStoreHasOneEligibleItem, N as isEuDapRemittance, b as stripeStore, O as stripeStoreApplyPromoCode, P as stripeStoreRemovePromoCode, F as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, Q as stripeStoreResetPromoCode, R as stripeStoreMessageBasedOnStatus, S as storeCreditStore, T as storeCreditStoreReset, z as storeCreditStoreCoversFullAmount, w as isPolicyConsentRequired, E as policyConsentStore, J as stripeStoreRecordPolicyConsent, v as cartStoreNextStep, U as stripeStoreTranslateAddressToLatin, V as extractName, G as cartStoreOnChange, W as stripeStoreAsyncAddressUpdate, L as cartStoreUpdateSelectedShippingOption, X as cartStoreGetShippingTransitInfo, Y as cartStoreGetMethod, Z as sortServiceLevelOptionsByAmount } from './cart-4699e6ab.js';
3
+ import { t as translate, l as localizationStore, s as storageStore, u as getExchangeRate, v as numberFormat, e as localizationStoreOnChange } from './localization-da2f407f.js';
4
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-08526996.js';
5
5
  import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-87d195f6.js';
6
6
  import { c as classes } from './classes-0d95c529.js';
7
7
  import { z as zonosStore, c as createStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b7d3f9b0.js';
8
- import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-1589fef9.js';
9
- import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-da551105.js';
8
+ import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-f81ddcd6.js';
9
+ import { i as isSameHostCheckoutLink } from './isSameHostCheckoutLink-c1b88ab7.js';
10
+ import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-d4436abd.js';
10
11
  import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
11
12
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
12
13
  import { g as getBorderRadius } from './getBorderRadius-dc982fe6.js';
13
14
  import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
14
15
  import { l as languages } from './ILanguage-cd6acb72.js';
15
- import { p as placeTestOrder } from './placeTestOrder-4309b170.js';
16
+ import { p as placeTestOrder } from './placeTestOrder-d87b2c6a.js';
16
17
  import { i as isDarkColor } from './isDarkColor-039ef212.js';
17
18
  import { g as getContrastColor } from './getContrastColor-af895b60.js';
18
19
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
@@ -244,7 +245,18 @@ const ZonosCartSubtotal = class {
244
245
  * [[parseLinkedText]] and are emitted as VNodes (never `innerHTML`) so
245
246
  * untrusted strings can't inject HTML.
246
247
  */
247
- this.renderMessageLine = (line) => parseLinkedText(line).map(segment => segment.type === 'link' ? (h("zonos-link", { href: segment.href, rel: "noopener noreferrer", target: "_blank" }, segment.text)) : (segment.value));
248
+ this.renderMessageLine = (line) => parseLinkedText(line).map(segment => {
249
+ var _a;
250
+ if (segment.type !== 'link') {
251
+ return segment.value;
252
+ }
253
+ // For BigCommerce, a same-host `/checkout` link should navigate the
254
+ // current tab (`_self`) instead of opening a new one — this unloads the
255
+ // Zonos checkout and opens the native checkout in its place rather than
256
+ // leaving two checkouts open at once (05CHECK-887).
257
+ const shouldRedirectInPlace = !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce) && isSameHostCheckoutLink(segment.href);
258
+ return (h("zonos-link", { href: segment.href, rel: "noopener noreferrer", target: shouldRedirectInPlace ? '_self' : '_blank' }, segment.text));
259
+ });
248
260
  this.renderCustomMessage = () => {
249
261
  const messageLines = cartStore.customMessage.filter(line => !!line.trim());
250
262
  if (!messageLines.length) {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, F as Fragment, a as Host } from './index-cfd394c8.js';
2
- import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, p as policyConsentStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as isPolicyConsentRequired, w as stripeStoreUpdateCheckoutSessionBaseCurrency, x as stripeStoreHandleInventoryCheck, y as storeCreditStoreApplyCredit, z as storeCreditStoreCoversFullAmount, A as validateCheckoutSession, B as storeCreditStoreCreateOrder, C as stripeStoreConfirmPayment, D as stripeStoreHandleInventoryRefund, E as policyConsentStore, F as stripeStoreReset, G as cartStoreOnChange, H as stripeStoreOnChange, I as storeCreditStoreGetEffectiveAmount } from './cart-8b8dc79f.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitAnalytics, a as paypalStore, b as paypalInitScript } from './paypal-da551105.js';
4
- import { f as filterValidTests, a as fetchCheckoutId, b as fetchBigCommerceCheckout, i as isBigCommerceCustomerLoggedIn, l as localizationStore, c as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, d as storageStoreSetEnabledVariantTestKeys, t as translate, e as localizationStoreOnChange, h as currencyFormat } from './localization-d49867ed.js';
2
+ import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, p as policyConsentStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as stripeStoreHandleInventoryCheck, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, q as stripeStoreCleanupDomesticShippingSession, r as cartStoreSetCheckoutSession, u as stripeStorePrefetchLandedCost, v as cartStoreNextStep, w as isPolicyConsentRequired, x as stripeStoreUpdateCheckoutSessionBaseCurrency, y as storeCreditStoreApplyCredit, z as storeCreditStoreCoversFullAmount, A as validateCheckoutSession, B as storeCreditStoreCreateOrder, C as stripeStoreConfirmPayment, D as stripeStoreHandleInventoryRefund, E as policyConsentStore, F as stripeStoreReset, G as cartStoreOnChange, H as stripeStoreOnChange, I as storeCreditStoreGetEffectiveAmount } from './cart-4699e6ab.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitAnalytics, a as paypalStore, b as paypalInitScript } from './paypal-d4436abd.js';
4
+ import { f as filterValidTests, a as fetchCheckoutId, b as fetchBigCommerceCheckout, i as isBigCommerceCustomerLoggedIn, l as localizationStore, c as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, d as storageStoreSetEnabledVariantTestKeys, t as translate, e as localizationStoreOnChange, h as currencyFormat } from './localization-da2f407f.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-b7d3f9b0.js';
6
6
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
7
7
  import { h as handleFetch, g as getIsTestMode, j as jsonParse, l as logError, b as getAdditionalLogMetadata, s as sendErrorLog, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
@@ -171,10 +171,15 @@ const buildBigcommerceLoginUrl = ({ action } = {}) => {
171
171
  */
172
172
  const buildBigcommerceRedirectUrl = (pathname) => {
173
173
  const url = new URL(pathname, window.location.origin);
174
- const zonosQaUrl = new URLSearchParams(window.location.search).get('zonosQaUrl');
174
+ const searchParams = new URLSearchParams(window.location.search);
175
+ const zonosQaUrl = searchParams.get('zonosQaUrl');
175
176
  if (zonosQaUrl) {
176
177
  url.searchParams.set('zonosQaUrl', zonosQaUrl);
177
178
  }
179
+ // zonosDebug=1
180
+ if (searchParams.get('zonosDebug') === '1') {
181
+ url.searchParams.set('zonosDebug', '1');
182
+ }
178
183
  if (getIsTestMode()) {
179
184
  url.searchParams.set('zonosTestMode', '1');
180
185
  }
@@ -695,6 +700,11 @@ providedCountryCode) => {
695
700
  };
696
701
 
697
702
  const FALLBACK_SHIP_TO_COUNTRY_SELECTOR = 'select[name="shippingAddress.countryCode"]';
703
+ /**
704
+ * Native BigCommerce shipping-step "Continue" button. Clicking it commits the
705
+ * selected shipping address and advances to the payment step.
706
+ */
707
+ const BIGCOMMERCE_SHIPPING_CONTINUE_SELECTOR = '#checkout-shipping-continue, #checkout-billing-continue, #checkout-payment-continue';
698
708
  /**
699
709
  * Check if the logged-in user already has a shipping address on the checkout
700
710
  * that is internationally shippable. If so, optionally prompt the user to
@@ -802,11 +812,11 @@ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedB
802
812
  overrideShippingCountry);
803
813
  if (!shippingCountry) {
804
814
  // do nothing if shipping country is not found
805
- return false;
815
+ return 'noAction';
806
816
  }
807
817
  if (!isShippableCountry(false, shippingCountry)) {
808
818
  // do nothing if shipping country is not shippable
809
- return false;
819
+ return 'noAction';
810
820
  }
811
821
  // Only check bypass after confirming the country is shippable (i.e. user is
812
822
  // about to be redirected to Zonos international checkout). Force-refresh so
@@ -827,7 +837,7 @@ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedB
827
837
  // Logged-in customer is in a bypass group — keep them on BC native
828
838
  // checkout and stop polling / fetching further.
829
839
  log('Bypass customer group detected on BC checkout, stopping interval', 'info');
830
- return true;
840
+ return 'bypass';
831
841
  }
832
842
  // Same force-login gate as the logged-in-default-address path — we run
833
843
  // it *after* the bypass check so reseller groups never see the login
@@ -835,7 +845,7 @@ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedB
835
845
  const forceLogin = await checkBigCommerceForceLogin({ preFetched });
836
846
  if (forceLogin.shouldForceLogin && forceLogin.redirectUrl) {
837
847
  window.location.href = forceLogin.redirectUrl;
838
- return true;
848
+ return 'redirected';
839
849
  }
840
850
  if (onInternationalCheckoutSelected) {
841
851
  await onInternationalCheckoutSelected();
@@ -872,7 +882,135 @@ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedB
872
882
  // having domestic shipping session. Carry over zonosQaUrl / zonosTestMode
873
883
  // so the destination page keeps using the same build/env.
874
884
  window.location.href = buildBigcommerceRedirectUrl('/');
875
- return true;
885
+ return 'redirected';
886
+ };
887
+ /**
888
+ * When `true`, the logged-in "Continue" hook re-dispatched the shopper's
889
+ * click so BigCommerce's own handler can run (domestic / bypass case). The
890
+ * hook's listener sees this flag and lets the event through untouched.
891
+ */
892
+ let isBypassingContinueHook = false;
893
+ /**
894
+ * Set to `true` once the document-level "Continue" click delegation has been
895
+ * attached, so opting out repeatedly doesn't bind it more than once.
896
+ */
897
+ let loggedInContinueDelegationAttached = false;
898
+ /**
899
+ * Resolve the shopper's currently-selected shipping country on the BC native
900
+ * checkout. Logged-in shoppers picking a saved address don't expose a
901
+ * country `<select>`, so read it from the active checkout consignment via the
902
+ * Storefront API; fall back to the `<select>` value when one is present.
903
+ */
904
+ const resolveSelectedShippingCountry = async () => {
905
+ var _a, _b, _c, _d;
906
+ const checkoutId = await fetchCheckoutId();
907
+ if (checkoutId) {
908
+ const checkout = await fetchBigCommerceCheckout(checkoutId);
909
+ const consignmentCountry = (_c = (_b = (_a = checkout === null || checkout === void 0 ? void 0 : checkout.consignments) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.shippingAddress) === null || _c === void 0 ? void 0 : _c.countryCode;
910
+ if (consignmentCountry) {
911
+ return consignmentCountry;
912
+ }
913
+ }
914
+ const shipToCountryElement = document.querySelector(((_d = zonosStore.genericSettings) === null || _d === void 0 ? void 0 : _d.bigcommerceDomesticCheckoutCountrySelector) ||
915
+ FALLBACK_SHIP_TO_COUNTRY_SELECTOR);
916
+ return (shipToCountryElement === null || shipToCountryElement === void 0 ? void 0 : shipToCountryElement.value) || null;
917
+ };
918
+ /**
919
+ * Req 2 (05CHECK-887): once a logged-in shopper with an international default
920
+ * address has chosen to "Stay on this page", we must still force them onto
921
+ * the Zonos international checkout if they end up committing an international
922
+ * shipping address. BC's saved-address flow exposes no country `<select>` to
923
+ * poll, so we hook the native shipping "Continue" button and re-check the
924
+ * selected consignment country when the shopper tries to advance.
925
+ */
926
+ /**
927
+ * Resolve the selected shipping country when the shopper clicks the native
928
+ * BC "Continue" button and, if it's international, redirect to the Zonos
929
+ * checkout. On any outcome other than a redirect — domestic, bypass group,
930
+ * or an unexpected error — replay the click so BigCommerce's own handler runs
931
+ * and the shopper is never left stuck on the shipping step.
932
+ */
933
+ const handleLoggedInInternationalContinue = async (continueButton, observer) => {
934
+ // Default to replaying the native click; only a confirmed international
935
+ // redirect (page navigating away) suppresses it.
936
+ let shouldReplayClick = true;
937
+ try {
938
+ let country = null;
939
+ try {
940
+ country = await resolveSelectedShippingCountry();
941
+ }
942
+ catch (error) {
943
+ logError('Error resolving selected shipping country on BC continue', error);
944
+ }
945
+ // When the shopper is committing an international address we're about to
946
+ // save the domestic shipping session and redirect to `/`. Disconnect this
947
+ // /checkout-page observer first: otherwise its own session-detection
948
+ // branch races the save — it would append the hidden redirect button and
949
+ // open checkout locally, consuming and clearing the session before the
950
+ // navigation to `/` lands, leaving the redirect a no-op. (The `/` page
951
+ // runs its own fresh watcher to open checkout.)
952
+ if (country && isShippableCountry(false, country)) {
953
+ observer.disconnect();
954
+ }
955
+ const decision = country
956
+ ? await handleInternationalCheckoutSelected(country)
957
+ : 'noAction';
958
+ // `redirected` → the page is navigating to the Zonos international
959
+ // checkout, so don't replay. `bypass` / `noAction` → the shopper stays on
960
+ // BC native checkout, so fall through and replay the click.
961
+ if (decision === 'redirected') {
962
+ shouldReplayClick = false;
963
+ }
964
+ }
965
+ catch (error) {
966
+ // We already blocked BC's native click; if resolving the country or the
967
+ // redirect helper throws, replay so BC can advance rather than leaving
968
+ // the shopper stuck on the shipping step.
969
+ logError('Error handling BC continue international redirect', error);
970
+ }
971
+ if (shouldReplayClick) {
972
+ isBypassingContinueHook = true;
973
+ continueButton.click();
974
+ isBypassingContinueHook = false;
975
+ }
976
+ };
977
+ /**
978
+ * Req 2 (05CHECK-887): attach the logged-in international-redirect hook via a
979
+ * single capture-phase listener on `document` (delegation) rather than
980
+ * binding the button node directly. Delegation is resilient to BC
981
+ * re-rendering the shipping step and — crucially — to the MutationObserver
982
+ * disconnecting once the country `<select>` path sets up its polling
983
+ * interval: the "Continue" button may only render after that point, so a
984
+ * node-bound listener attached from the observer could miss it entirely.
985
+ * Attached once, on opt-out.
986
+ */
987
+ const attachLoggedInInternationalContinueDelegation = (observer) => {
988
+ if (loggedInContinueDelegationAttached) {
989
+ return;
990
+ }
991
+ loggedInContinueDelegationAttached = true;
992
+ document.addEventListener('click', event => {
993
+ // Programmatic replay for the domestic / bypass case — let BC's own
994
+ // handler run without interference.
995
+ if (isBypassingContinueHook) {
996
+ return;
997
+ }
998
+ const { target } = event;
999
+ if (!(target instanceof Element)) {
1000
+ return;
1001
+ }
1002
+ const continueButton = target.closest(BIGCOMMERCE_SHIPPING_CONTINUE_SELECTOR);
1003
+ if (!continueButton) {
1004
+ return;
1005
+ }
1006
+ // Block BC's native advance until we know whether the selected shipping
1007
+ // country forces an international redirect. Capture phase +
1008
+ // stopImmediatePropagation (done synchronously here, before the async
1009
+ // handler) prevents BC's React click handler from firing.
1010
+ event.preventDefault();
1011
+ event.stopImmediatePropagation();
1012
+ void handleLoggedInInternationalContinue(continueButton, observer);
1013
+ }, true);
876
1014
  };
877
1015
  let isProcessing = false;
878
1016
  let intervalCreated = false;
@@ -948,6 +1086,10 @@ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedB
948
1086
  // observer logic so the country-change watcher still fires when
949
1087
  // the user manually picks an international country in BC's UI.
950
1088
  loggedInAddressCheckSkipped = true;
1089
+ // Attach the "Continue" redirect hook now (once). Delegation on
1090
+ // `document` keeps it working even after this observer disconnects
1091
+ // when the country <select> path sets up its interval below.
1092
+ attachLoggedInInternationalContinueDelegation(observer);
951
1093
  }
952
1094
  }
953
1095
  catch (error) {
@@ -983,11 +1125,11 @@ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedB
983
1125
  }
984
1126
  isProcessing = true;
985
1127
  try {
986
- const shouldStopPolling = await handleInternationalCheckoutSelected();
1128
+ const decision = await handleInternationalCheckoutSelected();
987
1129
  // Stop the interval once either:
988
1130
  // - the user is being redirected to Zonos international checkout
989
1131
  // - the logged-in customer is in a bypass group (stay on BC checkout)
990
- if (shouldStopPolling) {
1132
+ if (decision === 'redirected' || decision === 'bypass') {
991
1133
  clearInterval(interval);
992
1134
  return;
993
1135
  }
@@ -1927,7 +2069,9 @@ const ZonosCheckout = class {
1927
2069
  // selector configured yet) — otherwise the redirect-back never reopens
1928
2070
  // the checkout dialog to show the success/finish screen.
1929
2071
  const hasRedirectHiddenButton = !!document.querySelector(`#${checkoutHiddenBtnSelector}`);
1930
- log(`attach checkout ${buttonAnchorSelector}`);
2072
+ log(`attach checkout ${buttonAnchorSelector}`, 'info', {
2073
+ href: window.location.href,
2074
+ });
1931
2075
  log(`attach checkout to always trigger international checkout selector: ${alwaysTriggerInternationalCheckoutSelector}`);
1932
2076
  // allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
1933
2077
  if (!buttonAnchorSelector &&
@@ -2049,6 +2193,38 @@ const ZonosCheckout = class {
2049
2193
  if (!result) {
2050
2194
  throw new Error('Error building cart');
2051
2195
  }
2196
+ // Early inventory / stock check (05CHECK-887): mirror the native
2197
+ // cart, which blocks checkout when an item has sold out, instead of
2198
+ // only catching it at payment time (which abandons late). The cart
2199
+ // items are now built and the dialog is still in its loading state,
2200
+ // so run the merchant `onInventoryCheck` callback now. Skip legacy
2201
+ // checkout — its inventory check reserves stock, and reserving here
2202
+ // *and* at pay time would double-reserve; legacy keeps its
2203
+ // pay-time-only check. `stripeStoreHandleInventoryCheck` no-ops when
2204
+ // no `onInventoryCheck` callback is configured.
2205
+ if (!window.Zonos.isLegacyCheckout) {
2206
+ let earlyInventoryMessage = null;
2207
+ try {
2208
+ earlyInventoryMessage = await stripeStoreHandleInventoryCheck();
2209
+ }
2210
+ catch (_c) {
2211
+ // A throwing merchant callback should stop checkout, not open it.
2212
+ earlyInventoryMessage = translate('Unable to check inventory. Please try again.');
2213
+ }
2214
+ if (earlyInventoryMessage) {
2215
+ // Surface the same "Couldn't place order" dialog and stop
2216
+ // before the checkout is revealed. We return here before the
2217
+ // session/analytics setup below runs, so close the (still
2218
+ // loading) checkout dialog rather than leaving a
2219
+ // half-initialized checkout visible behind the alert. The
2220
+ // inventory-failure dialog renders independently of `this.open`,
2221
+ // and "Return to cart" resets the message + closes cleanly.
2222
+ cartStore.inventoryCheckErrorMessage = earlyInventoryMessage;
2223
+ stripeStore.isFetchingSession = false;
2224
+ this.open = false;
2225
+ return;
2226
+ }
2227
+ }
2052
2228
  (_a = window.opener) === null || _a === void 0 ? void 0 : _a.postMessage({
2053
2229
  checkoutSessionId: storageStore.checkoutSessionId,
2054
2230
  type: 'zonos-checkout-session-update',
@@ -2997,7 +3173,7 @@ const ZonosCheckout = class {
2997
3173
  this.isMobile && 'mobile',
2998
3174
  this.isIframed && 'iframed',
2999
3175
  this.hiddenMode && 'hidden-mode',
3000
- ]) }, 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: () => {
3176
+ ]) }, 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 selected 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: () => {
3001
3177
  var _a;
3002
3178
  this.loggedInIntlAddressConfirmDialogOpen = false;
3003
3179
  (_a = this.loggedInIntlAddressResolver) === null || _a === void 0 ? void 0 : _a.call(this, 'stay');
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, e as getAssetPath, h, a as Host } from './index-cfd394c8.js';
2
- import { d as cartStore } from './cart-8b8dc79f.js';
2
+ import { d as cartStore } from './cart-4699e6ab.js';
3
3
  import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-87d195f6.js';
4
4
  import { f as zonosStoreFontFamily } from './zonosStore-b7d3f9b0.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { s as styles } from './styles-6fc2fad9.js';
7
- import './localization-d49867ed.js';
7
+ import './localization-da2f407f.js';
8
8
  import './handleFetch-a844cac1.js';
9
9
  import './VarianceTest-572cecf5.js';
10
10
  import './isDarkColor-039ef212.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { b as airwallexStore, d as airwallexStoreRetrievePaymentIntent, j as airwallexStoreMessageBasedOnStatus, k as airwallexStoreReset, c as collectStore, e as airwallexStoreIsPaidStatus } from './collect-f4965586.js';
3
- import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, Q as stripeStoreResetPromoCode, F as stripeStoreReset, R as stripeStoreMessageBasedOnStatus, d as cartStore, u as cartStoreNextStep, G as cartStoreOnChange } from './cart-8b8dc79f.js';
4
- import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-da551105.js';
5
- import { t as translate, s as storageStore, l as localizationStore, x as translationStoreOnChange } from './localization-d49867ed.js';
2
+ import { b as airwallexStore, d as airwallexStoreRetrievePaymentIntent, j as airwallexStoreMessageBasedOnStatus, k as airwallexStoreReset, c as collectStore, e as airwallexStoreIsPaidStatus } from './collect-24cc2e12.js';
3
+ import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, Q as stripeStoreResetPromoCode, F as stripeStoreReset, R as stripeStoreMessageBasedOnStatus, d as cartStore, v as cartStoreNextStep, G as cartStoreOnChange } from './cart-4699e6ab.js';
4
+ import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-d4436abd.js';
5
+ import { t as translate, s as storageStore, l as localizationStore, x as translationStoreOnChange } from './localization-da2f407f.js';
6
6
  import { z as zonosStore } from './zonosStore-b7d3f9b0.js';
7
7
  import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
8
8
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
@@ -11,8 +11,8 @@ import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
11
11
  import { i as isCollectMobile, a as isCollectTablet } from './isCollectMobileTablet-111b0dd7.js';
12
12
  import { c as classes } from './classes-0d95c529.js';
13
13
  import { l as languages } from './ILanguage-cd6acb72.js';
14
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-0ed221ac.js';
15
- import { p as placeTestOrder } from './placeTestOrder-4309b170.js';
14
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-08526996.js';
15
+ import { p as placeTestOrder } from './placeTestOrder-d87b2c6a.js';
16
16
  import { r as renderFallback } from './renderFallback-b250f4e9.js';
17
17
  import './isDarkColor-039ef212.js';
18
18
  import './TaxId-50d72254.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, a as Host, F as Fragment } from './index-cfd394c8.js';
2
- import { c as collectStore, a as airwallexStoreSetFromSession, b as airwallexStore, d as airwallexStoreRetrievePaymentIntent, e as airwallexStoreIsPaidStatus, f as airwallexStoreInitSdk, g as collectStoreUpdateSelectedShippingOption, h as collectStoreInitShippingInfo, i as collectStoreAsyncAddressUpdate } from './collect-f4965586.js';
3
- import { b as stripeStore, i as initStripeElements, d as cartStore, c as stripeStoreRetrievePayment, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, w as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-8b8dc79f.js';
4
- import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-da551105.js';
5
- import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-d49867ed.js';
2
+ import { c as collectStore, a as airwallexStoreSetFromSession, b as airwallexStore, d as airwallexStoreRetrievePaymentIntent, e as airwallexStoreIsPaidStatus, f as airwallexStoreInitSdk, g as collectStoreUpdateSelectedShippingOption, h as collectStoreInitShippingInfo, i as collectStoreAsyncAddressUpdate } from './collect-24cc2e12.js';
3
+ import { b as stripeStore, i as initStripeElements, d as cartStore, c as stripeStoreRetrievePayment, o as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, x as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-4699e6ab.js';
4
+ import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-d4436abd.js';
5
+ import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-da2f407f.js';
6
6
  import { z as zonosStore } from './zonosStore-b7d3f9b0.js';
7
7
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
8
8
  import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, d as createEvent, h, a as Host } from './index-cfd394c8.js';
2
- import { b as stripeStore } from './cart-8b8dc79f.js';
3
- import { j as getOverridenZCountry, k as isValidSelector, m as initLocalizationStore, s as storageStore, c as localizationStoreUpdateSelectedCountryCode } from './localization-d49867ed.js';
2
+ import { b as stripeStore } from './cart-4699e6ab.js';
3
+ import { j as getOverridenZCountry, k as isValidSelector, m as initLocalizationStore, s as storageStore, c as localizationStoreUpdateSelectedCountryCode } from './localization-da2f407f.js';
4
4
  import { z as zonosStore, e as zonosStoreInitSetting, f as zonosStoreFontFamily } from './zonosStore-b7d3f9b0.js';
5
5
  import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
6
6
  import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { l as localizationStore } from './localization-d49867ed.js';
2
+ import { l as localizationStore } from './localization-da2f407f.js';
3
3
  import { f as zonosStoreFontFamily } from './zonosStore-b7d3f9b0.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-a844cac1.js';
@@ -1,12 +1,13 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { c as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-d49867ed.js';
2
+ import { c as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-da2f407f.js';
3
3
  import { f as zonosStoreFontFamily } from './zonosStore-b7d3f9b0.js';
4
- import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
4
+ import { f as formatStringWithLinks } from './formatStringWithLinks-0d48f183.js';
5
5
  import { i as isDarkColor } from './isDarkColor-039ef212.js';
6
6
  import { l as languages } from './ILanguage-cd6acb72.js';
7
7
  import { c as classes } from './classes-0d95c529.js';
8
8
  import './handleFetch-a844cac1.js';
9
9
  import './VarianceTest-572cecf5.js';
10
+ import './isSameHostCheckoutLink-c1b88ab7.js';
10
11
 
11
12
  /**
12
13
  * Fuse.js v7.4.2 - Lightweight fuzzy-search (http://fusejs.io)
@@ -1,13 +1,14 @@
1
1
  import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host } from './index-cfd394c8.js';
2
- import { l as localizationStore, t as translate, h as currencyFormat } from './localization-d49867ed.js';
2
+ import { l as localizationStore, t as translate, h as currencyFormat } from './localization-da2f407f.js';
3
3
  import { z as zonosStore } from './zonosStore-b7d3f9b0.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
6
- import { h as hasInclusivePrice, T as TAXES_KEY, D as DUTY_KEY } from './hasInclusivePrice-1589fef9.js';
5
+ import { f as formatStringWithLinks } from './formatStringWithLinks-0d48f183.js';
6
+ import { h as hasInclusivePrice, T as TAXES_KEY, D as DUTY_KEY } from './hasInclusivePrice-f81ddcd6.js';
7
7
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
8
8
  import { e as euCountryCodes } from './TaxId-50d72254.js';
9
9
  import './handleFetch-a844cac1.js';
10
10
  import './VarianceTest-572cecf5.js';
11
+ import './isSameHostCheckoutLink-c1b88ab7.js';
11
12
 
12
13
  const getHasMoreSpaceAbove = (ref) => {
13
14
  const componentRect = ref.getBoundingClientRect();
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
2
  import { d as debounce_1 } from './debounce-c8d67b17.js';
3
- import { l as localizationStore, k as isValidSelector, t as translate, g as getZCountryUrlParam, n as setZCountryUrlParam, o as currencyDisplay, p as currencyConvertAndFormat, q as currencyConvert, h as currencyFormat, r as shouldShowHelloWidget } from './localization-d49867ed.js';
3
+ import { l as localizationStore, k as isValidSelector, t as translate, g as getZCountryUrlParam, n as setZCountryUrlParam, o as currencyDisplay, p as currencyConvertAndFormat, q as currencyConvert, h as currencyFormat, r as shouldShowHelloWidget } from './localization-da2f407f.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-b7d3f9b0.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
2
- import { d as cartStore } from './cart-8b8dc79f.js';
3
- import { t as translate } from './localization-d49867ed.js';
4
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-0ed221ac.js';
2
+ import { d as cartStore } from './cart-4699e6ab.js';
3
+ import { t as translate } from './localization-da2f407f.js';
4
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-08526996.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
- import { c as invoiceStore } from './invoice-b7a1fb14.js';
6
+ import { c as invoiceStore } from './invoice-575dc93d.js';
7
7
  import { r as renderFallback } from './renderFallback-b250f4e9.js';
8
8
  import './zonosStore-b7d3f9b0.js';
9
9
  import './VarianceTest-572cecf5.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, Q as stripeStoreResetPromoCode, F as stripeStoreReset, R as stripeStoreMessageBasedOnStatus, d as cartStore, u as cartStoreNextStep, G as cartStoreOnChange } from './cart-8b8dc79f.js';
3
- import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-da551105.js';
4
- import { t as translate, s as storageStore, l as localizationStore } from './localization-d49867ed.js';
2
+ import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, Q as stripeStoreResetPromoCode, F as stripeStoreReset, R as stripeStoreMessageBasedOnStatus, d as cartStore, v as cartStoreNextStep, G as cartStoreOnChange } from './cart-4699e6ab.js';
3
+ import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-d4436abd.js';
4
+ import { t as translate, s as storageStore, l as localizationStore } from './localization-da2f407f.js';
5
5
  import { z as zonosStore } from './zonosStore-b7d3f9b0.js';
6
6
  import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
7
7
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
@@ -10,9 +10,9 @@ import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
10
10
  import { i as isInvoiceMobile, a as isInvoiceTablet } from './isInvoiceMobileTablet-1f7b614e.js';
11
11
  import { c as classes } from './classes-0d95c529.js';
12
12
  import { l as languages } from './ILanguage-cd6acb72.js';
13
- import { c as invoiceStore } from './invoice-b7a1fb14.js';
14
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-0ed221ac.js';
15
- import { p as placeTestOrder } from './placeTestOrder-4309b170.js';
13
+ import { c as invoiceStore } from './invoice-575dc93d.js';
14
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-08526996.js';
15
+ import { p as placeTestOrder } from './placeTestOrder-d87b2c6a.js';
16
16
  import { r as renderFallback } from './renderFallback-b250f4e9.js';
17
17
  import './isDarkColor-039ef212.js';
18
18
  import './TaxId-50d72254.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, a as Host, F as Fragment } from './index-cfd394c8.js';
2
- import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, w as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-8b8dc79f.js';
3
- import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-b7a1fb14.js';
4
- import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-da551105.js';
5
- import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-d49867ed.js';
2
+ import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, o as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, x as stripeStoreUpdateCheckoutSessionBaseCurrency, C as stripeStoreConfirmPayment, H as stripeStoreOnChange, F as stripeStoreReset, f as cartStoreReset } from './cart-4699e6ab.js';
3
+ import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-575dc93d.js';
4
+ import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-d4436abd.js';
5
+ import { s as storageStore, t as translate, e as localizationStoreOnChange, h as currencyFormat, l as localizationStore } from './localization-da2f407f.js';
6
6
  import { z as zonosStore } from './zonosStore-b7d3f9b0.js';
7
7
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
8
8
  import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
2
- import { A as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-d49867ed.js';
2
+ import { A as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-da2f407f.js';
3
3
  import { f as zonosStoreFontFamily } from './zonosStore-b7d3f9b0.js';
4
4
  import { l as languages } from './ILanguage-cd6acb72.js';
5
5
  import './handleFetch-a844cac1.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
2
- import { _ as getEnabledPolicies, E as policyConsentStore, $ as storeCreditStoreSetEnabled, a0 as storeCreditStoreSetUseFullBalance, a1 as cartStoreUpdateStoreCredit, S as storeCreditStore, a2 as storeCreditStoreSetAmount, a3 as storeCreditStoreRefreshBalance, I as storeCreditStoreGetEffectiveAmount } from './cart-8b8dc79f.js';
3
- import { l as localizationStore, t as translate } from './localization-d49867ed.js';
2
+ import { _ as getEnabledPolicies, E as policyConsentStore, $ as storeCreditStoreSetEnabled, a0 as storeCreditStoreSetUseFullBalance, a1 as cartStoreUpdateStoreCredit, S as storeCreditStore, a2 as storeCreditStoreSetAmount, a3 as storeCreditStoreRefreshBalance, I as storeCreditStoreGetEffectiveAmount } from './cart-4699e6ab.js';
3
+ import { l as localizationStore, t as translate } from './localization-da2f407f.js';
4
4
  import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b7d3f9b0.js';
5
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-0ed221ac.js';
5
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-08526996.js';
6
6
  import { g as getBorderRadius } from './getBorderRadius-dc982fe6.js';
7
7
  import './VarianceTest-572cecf5.js';
8
8
  import './handleFetch-a844cac1.js';