@zonos/elements 1.5.1 → 1.5.3

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 (250) hide show
  1. package/dist/cjs/_isBigCommerceNativeCheckout-3-xbKbAO.js +133 -0
  2. package/dist/cjs/{cart-CiXlehwQ.js → cart-C39TMSgB.js} +27 -13
  3. package/dist/cjs/{collect-Drr8fY-q.js → collect-lF9DenLk.js} +4 -4
  4. package/dist/cjs/{getMissingRequiredShippingFields-DI6qF1z3.js → getMissingRequiredShippingFields-svcnpumn.js} +1 -1
  5. package/dist/cjs/{handleFetch-DQLhurnE.js → handleFetch-DVfjFTYO.js} +181 -71
  6. package/dist/cjs/{hasInclusivePrice-84KS94yH.js → hasInclusivePrice-CEPf3_FG.js} +1 -1
  7. package/dist/cjs/index.cjs.js +158 -47
  8. package/dist/cjs/{invoice-5hVfSXpb.js → invoice-BD3pCr8P.js} +3 -3
  9. package/dist/cjs/{localization-B2mjW0Xa.js → localization-BhNVhLZs.js} +24 -48
  10. package/dist/cjs/{paypal-pd8Nz_R_.js → paypal-Bd1qmwiv.js} +4 -4
  11. package/dist/cjs/{placeTestOrder-DrI8rD9o.js → placeTestOrder-BMQRvX2q.js} +3 -3
  12. package/dist/cjs/{renderCheckoutCurrency-u5q8YdUb.js → renderCheckoutCurrency-DE2p8CT8.js} +2 -2
  13. package/dist/cjs/{shouldShowLanguageSelect-gBg4KeTQ.js → shouldShowLanguageSelect-NOVWOU53.js} +1 -1
  14. package/dist/cjs/{submitGtag-Rc-S3PnH.js → submitGtag-D4sB7w4z.js} +1 -1
  15. package/dist/cjs/{taxIdFields-BrIaPTcd.js → taxIdFields-BKbk2bhi.js} +2 -2
  16. package/dist/cjs/{updateCheckoutSessionAttributes-d0IKpwW8.js → updateCheckoutSessionAttributes-KxwcsKhM.js} +1 -1
  17. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +6 -6
  18. package/dist/cjs/zonos-address-display_2.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-address_4.cjs.entry.js +4 -4
  20. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +4 -4
  21. package/dist/cjs/zonos-card_5.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +18 -18
  23. package/dist/cjs/zonos-checkout.cjs.entry.js +48 -22
  24. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +9 -9
  26. package/dist/cjs/zonos-collect.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-controller.cjs.entry.js +65 -40
  28. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  29. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  30. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  31. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +5 -5
  33. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +9 -9
  34. package/dist/cjs/zonos-invoice.cjs.entry.js +6 -6
  35. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  36. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +4 -4
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +8 -7
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +14 -4
  39. package/dist/collection/components/main/mountCheckoutWithoutStripe.js +12 -0
  40. package/dist/collection/components/main/zonos-controller.js +26 -10
  41. package/dist/collection/components/store/checkout/cart.js +3 -2
  42. package/dist/collection/components/store/checkout/stripe.js +23 -10
  43. package/dist/collection/components/store/storageStore.js +7 -6
  44. package/dist/collection/components/utils/__tests__/helpers/blockStorage.js +24 -0
  45. package/dist/collection/components/utils/api/getExchangeRate.js +2 -1
  46. package/dist/collection/components/utils/checkout/isBigCommerceCheckoutBypassEnabled.js +2 -1
  47. package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +32 -12
  48. package/dist/collection/components/utils/handleFetch.js +19 -9
  49. package/dist/collection/components/utils/hello/countryOverrideStorage.js +17 -40
  50. package/dist/collection/components/utils/logging/installConstructorCapture.js +58 -0
  51. package/dist/collection/components/utils/logging/reportBlockedStorage.js +34 -0
  52. package/dist/collection/components/utils/logging/sendErrorLog.js +8 -1
  53. package/dist/collection/components/utils/logging/startZonosInit.js +35 -0
  54. package/dist/collection/components/utils/logging/thrownMessage.js +16 -0
  55. package/dist/collection/components/utils/safeStorage.js +39 -0
  56. package/dist/collection/scripts/_bigcommerceCheckoutPath.js +16 -0
  57. package/dist/collection/scripts/_detectBigCommerceHost.js +12 -0
  58. package/dist/collection/scripts/_getZonosQaUrl.js +3 -2
  59. package/dist/collection/scripts/_isBigCommerceNativeCheckout.js +107 -0
  60. package/dist/collection/scripts/_loadStripe.js +15 -4
  61. package/dist/collection/scripts/_zonosBase.js +46 -33
  62. package/dist/collection/types/generated/graphql.frontend.types.js +0 -16
  63. package/dist/collection/types/generated/graphql.internal.types.js +215 -1
  64. package/dist/esm/_isBigCommerceNativeCheckout-Bb90IMVt.js +128 -0
  65. package/dist/esm/{cart-DmJkjiDE.js → cart-b84n0nhi.js} +26 -14
  66. package/dist/esm/{collect-BV5GTPmh.js → collect-B_AEVONL.js} +4 -4
  67. package/dist/esm/{getMissingRequiredShippingFields-DljgpDZe.js → getMissingRequiredShippingFields-EY10c34-.js} +1 -1
  68. package/dist/esm/{handleFetch-D5GYDF-O.js → handleFetch-BFVO7oAR.js} +178 -72
  69. package/dist/esm/{hasInclusivePrice-DhGXpH2D.js → hasInclusivePrice-DfEiyzw7.js} +1 -1
  70. package/dist/esm/index.js +158 -47
  71. package/dist/esm/{invoice-CO-iqlni.js → invoice-dQ0ONK5Q.js} +3 -3
  72. package/dist/esm/{localization-DHM91diu.js → localization-B5CRzthT.js} +25 -49
  73. package/dist/esm/{paypal-BfW5aLJw.js → paypal-CF_oM0B6.js} +4 -4
  74. package/dist/esm/{placeTestOrder-CyWUFhxD.js → placeTestOrder-BTpfyqPL.js} +3 -3
  75. package/dist/esm/{renderCheckoutCurrency-B31ZNkUv.js → renderCheckoutCurrency-CpeuDWx-.js} +2 -2
  76. package/dist/esm/{shouldShowLanguageSelect-DwSfSHar.js → shouldShowLanguageSelect-CJinx9-m.js} +1 -1
  77. package/dist/esm/{submitGtag-BEFrutel.js → submitGtag-C5xzFHjG.js} +1 -1
  78. package/dist/esm/{taxIdFields-ByEYfsO5.js → taxIdFields-BCyXnc9O.js} +2 -2
  79. package/dist/esm/{updateCheckoutSessionAttributes-B0bQH0uw.js → updateCheckoutSessionAttributes-C9bMKTjz.js} +1 -1
  80. package/dist/esm/zonos-address-completion-dialog_7.entry.js +6 -6
  81. package/dist/esm/zonos-address-display_2.entry.js +2 -2
  82. package/dist/esm/zonos-address_4.entry.js +4 -4
  83. package/dist/esm/zonos-airwallex-payment.entry.js +4 -4
  84. package/dist/esm/zonos-card_5.entry.js +5 -5
  85. package/dist/esm/zonos-cart-items_12.entry.js +18 -18
  86. package/dist/esm/zonos-checkout.entry.js +48 -22
  87. package/dist/esm/zonos-collect-cart-items_3.entry.js +3 -3
  88. package/dist/esm/zonos-collect-finish_6.entry.js +9 -9
  89. package/dist/esm/zonos-collect.entry.js +6 -6
  90. package/dist/esm/zonos-controller.entry.js +65 -40
  91. package/dist/esm/zonos-country-flag.entry.js +2 -2
  92. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  93. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  94. package/dist/esm/zonos-hello.entry.js +2 -2
  95. package/dist/esm/zonos-invoice-cart-items_2.entry.js +5 -5
  96. package/dist/esm/zonos-invoice-finish_5.entry.js +9 -9
  97. package/dist/esm/zonos-invoice.entry.js +6 -6
  98. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  99. package/dist/esm/zonos-policy-consent_2.entry.js +4 -4
  100. package/dist/esm-es5/_isBigCommerceNativeCheckout-Bb90IMVt.js +40 -0
  101. package/dist/esm-es5/{cart-DmJkjiDE.js → cart-b84n0nhi.js} +59 -59
  102. package/dist/esm-es5/{collect-BV5GTPmh.js → collect-B_AEVONL.js} +2 -2
  103. package/dist/esm-es5/{getMissingRequiredShippingFields-DljgpDZe.js → getMissingRequiredShippingFields-EY10c34-.js} +3 -3
  104. package/dist/esm-es5/handleFetch-BFVO7oAR.js +73 -0
  105. package/dist/esm-es5/{hasInclusivePrice-DhGXpH2D.js → hasInclusivePrice-DfEiyzw7.js} +1 -1
  106. package/dist/esm-es5/index.js +94 -65
  107. package/dist/esm-es5/{invoice-CO-iqlni.js → invoice-dQ0ONK5Q.js} +1 -1
  108. package/dist/esm-es5/{localization-DHM91diu.js → localization-B5CRzthT.js} +7 -10
  109. package/dist/esm-es5/{paypal-BfW5aLJw.js → paypal-CF_oM0B6.js} +1 -1
  110. package/dist/esm-es5/{placeTestOrder-CyWUFhxD.js → placeTestOrder-BTpfyqPL.js} +1 -1
  111. package/dist/esm-es5/{renderCheckoutCurrency-B31ZNkUv.js → renderCheckoutCurrency-CpeuDWx-.js} +5 -5
  112. package/dist/esm-es5/{shouldShowLanguageSelect-DwSfSHar.js → shouldShowLanguageSelect-CJinx9-m.js} +1 -1
  113. package/dist/esm-es5/{submitGtag-BEFrutel.js → submitGtag-C5xzFHjG.js} +1 -1
  114. package/dist/esm-es5/{taxIdFields-ByEYfsO5.js → taxIdFields-BCyXnc9O.js} +1 -1
  115. package/dist/esm-es5/{updateCheckoutSessionAttributes-B0bQH0uw.js → updateCheckoutSessionAttributes-C9bMKTjz.js} +1 -1
  116. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +2 -2
  117. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
  118. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  119. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  120. package/dist/esm-es5/zonos-card_5.entry.js +6 -6
  121. package/dist/esm-es5/zonos-cart-items_12.entry.js +127 -127
  122. package/dist/esm-es5/zonos-checkout.entry.js +22 -11
  123. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  124. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  125. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  126. package/dist/esm-es5/zonos-controller.entry.js +21 -12
  127. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  128. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  129. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  130. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  131. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  132. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  133. package/dist/esm-es5/zonos-invoice.entry.js +3 -3
  134. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  135. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  136. package/dist/scripts/index.d.ts +22 -0
  137. package/dist/scripts/index.js +1 -1
  138. package/dist/scripts/loadZonos.js +1 -1
  139. package/dist/scripts/zonos.js +1 -1
  140. package/dist/types/components/main/mountCheckoutWithoutStripe.d.ts +8 -0
  141. package/dist/types/components/store/checkout/stripe.d.ts +4 -1
  142. package/dist/types/components/utils/__tests__/helpers/blockStorage.d.ts +3 -0
  143. package/dist/types/components/utils/logging/installConstructorCapture.d.ts +20 -0
  144. package/dist/types/components/utils/logging/reportBlockedStorage.d.ts +16 -0
  145. package/dist/types/components/utils/logging/startZonosInit.d.ts +5 -0
  146. package/dist/types/components/utils/logging/thrownMessage.d.ts +1 -0
  147. package/dist/types/components/utils/safeStorage.d.ts +4 -0
  148. package/dist/types/scripts/_bigcommerceCheckoutPath.d.ts +12 -0
  149. package/dist/types/scripts/_detectBigCommerceHost.d.ts +5 -0
  150. package/dist/types/scripts/_isBigCommerceNativeCheckout.d.ts +21 -0
  151. package/dist/types/scripts/_zonosBase.d.ts +16 -0
  152. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  153. package/dist/types/types/generated/graphql.frontend.types.d.ts +0 -22
  154. package/dist/types/types/generated/graphql.frontend.types.ts +0 -51
  155. package/dist/types/types/generated/graphql.internal.types.d.ts +270 -1
  156. package/dist/types/types/generated/graphql.internal.types.ts +341 -1
  157. package/dist/zonos-elements/index.esm.js +1 -1
  158. package/dist/zonos-elements/{p-8fa6cfff.entry.js → p-02faff47.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-216a908d.system.entry.js → p-0c68cbbb.system.entry.js} +2 -2
  160. package/dist/zonos-elements/{p-vTIygnHq.system.js → p-1OG3IJgY.system.js} +1 -1
  161. package/dist/zonos-elements/{p-960070d0.system.entry.js → p-1cd2d097.system.entry.js} +3 -3
  162. package/dist/zonos-elements/{p-1e6db427.entry.js → p-255e411a.entry.js} +1 -1
  163. package/dist/zonos-elements/p-2c_UqKJL.system.js +7 -0
  164. package/dist/zonos-elements/{p-DprOoI2W.system.js → p-3AUMK-5E.system.js} +154 -154
  165. package/dist/zonos-elements/{p-d3345b2c.entry.js → p-3ee87d8b.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-cccaad60.system.entry.js → p-42fa5694.system.entry.js} +10 -10
  167. package/dist/zonos-elements/p-49eaaab8.entry.js +1 -0
  168. package/dist/zonos-elements/{p-fda89981.system.entry.js → p-4ce4c49f.system.entry.js} +3 -3
  169. package/dist/zonos-elements/{p-f3d9a380.system.entry.js → p-5622fc50.system.entry.js} +263 -252
  170. package/dist/zonos-elements/{p-5585db86.system.entry.js → p-59457fd9.system.entry.js} +73 -64
  171. package/dist/zonos-elements/{p-65817880.entry.js → p-66398133.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-d8f375da.system.entry.js → p-674323ac.system.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-678b9214.entry.js → p-71d9a5b7.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-189cc594.system.entry.js → p-81780f8f.system.entry.js} +2 -2
  175. package/dist/zonos-elements/{p-6e691736.entry.js → p-821b83a2.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-1fda4aec.system.entry.js → p-877a82d2.system.entry.js} +94 -94
  177. package/dist/zonos-elements/p-8daec112.entry.js +1 -0
  178. package/dist/zonos-elements/{p-46a839d2.system.entry.js → p-93bc75fd.system.entry.js} +13 -13
  179. package/dist/zonos-elements/{p-2ca826b9.system.entry.js → p-976b3bf3.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-84e76348.entry.js → p-9a4947a5.entry.js} +1 -1
  181. package/dist/zonos-elements/p-9f7693bf.entry.js +1 -0
  182. package/dist/zonos-elements/p-BIJM2Kj-.js +1 -0
  183. package/dist/zonos-elements/p-BJFa5RwX.js +1 -0
  184. package/dist/zonos-elements/{p-6vSUiBfr.system.js → p-BOh4ifdL.system.js} +51 -54
  185. package/dist/zonos-elements/p-BZAX-HmS.js +1 -0
  186. package/dist/zonos-elements/p-Bb90IMVt.js +1 -0
  187. package/dist/zonos-elements/p-Bu9WCfUC.system.js +1 -1
  188. package/dist/zonos-elements/{p-CbhN65lj.system.js → p-BvoPE_nb.system.js} +1 -1
  189. package/dist/zonos-elements/{p-iAIzUA4k.js → p-C3E55OqH.js} +1 -1
  190. package/dist/zonos-elements/{p-CBUz18kA.system.js → p-C3gF3UV5.system.js} +23 -23
  191. package/dist/zonos-elements/{p-XoQH3S7Z.system.js → p-CD2ahEZn.system.js} +1 -1
  192. package/dist/zonos-elements/p-CEBBLbvF.js +1 -0
  193. package/dist/zonos-elements/{p-CGNVm52g.system.js → p-CEV0O_IQ.system.js} +5 -5
  194. package/dist/zonos-elements/{p-D1e9zNDA.js → p-CJmWr75U.js} +1 -1
  195. package/dist/zonos-elements/{p-DgUrB-1a.system.js → p-CZ-uYiCo.system.js} +1 -1
  196. package/dist/zonos-elements/p-Cn2xE-9t.system.js +256 -0
  197. package/dist/zonos-elements/p-CtvXi9wL.system.js +41 -0
  198. package/dist/zonos-elements/{p-BrQ8n8NS.system.js → p-Cw_Qnyow.system.js} +3 -3
  199. package/dist/zonos-elements/p-CzXNXgyI.js +1 -0
  200. package/dist/zonos-elements/p-D0DkOoAw.system.js +73 -0
  201. package/dist/zonos-elements/p-D9OPKqLg.js +1 -0
  202. package/dist/zonos-elements/{p-ojtNq-r5.system.js → p-DXlojp_Y.system.js} +1 -1
  203. package/dist/zonos-elements/{p-DpwmHU8R.js → p-Df62LRNs.js} +2 -2
  204. package/dist/zonos-elements/{p-CHKKvuiz.js → p-Lsqrpzc5.js} +1 -1
  205. package/dist/zonos-elements/{p-C9XLkmmb.system.js → p-YQFbWtjn.system.js} +1 -1
  206. package/dist/zonos-elements/p-a27f48e4.entry.js +1 -0
  207. package/dist/zonos-elements/{p-941a95a1.system.entry.js → p-a6bb296c.system.entry.js} +7 -7
  208. package/dist/zonos-elements/{p-2b63865a.system.entry.js → p-abb85879.system.entry.js} +3 -3
  209. package/dist/zonos-elements/{p-12b24ebb.entry.js → p-b8653024.entry.js} +1 -1
  210. package/dist/zonos-elements/p-b9d7a3b6.entry.js +1 -0
  211. package/dist/zonos-elements/{p-f5f95990.system.entry.js → p-be067e12.system.entry.js} +15 -15
  212. package/dist/zonos-elements/p-bmrOH9oh.js +1 -0
  213. package/dist/zonos-elements/p-c185bc23.entry.js +1 -0
  214. package/dist/zonos-elements/{p-2d513aa3.entry.js → p-c6e78de2.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-55813e9f.system.entry.js → p-ca97a1cd.system.entry.js} +3 -3
  216. package/dist/zonos-elements/{p-3e705c9b.entry.js → p-cbb96382.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-53eac12f.system.entry.js → p-dbf4d156.system.entry.js} +14 -14
  218. package/dist/zonos-elements/{p-6410fa11.system.entry.js → p-df240119.system.entry.js} +16 -16
  219. package/dist/zonos-elements/{p-1cc42a98.system.entry.js → p-e16e4db6.system.entry.js} +17 -17
  220. package/dist/zonos-elements/{p-064d8829.system.entry.js → p-eb016dd8.system.entry.js} +20 -20
  221. package/dist/zonos-elements/{p-1199baef.system.entry.js → p-eb5c67a0.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-ef5344ea.entry.js → p-ed8a7a7f.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-4917b74d.entry.js → p-ef932fda.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-e7fdb2c9.entry.js → p-f792ba5f.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-DiMEP3mh.js → p-fZcKMzE-.js} +1 -1
  226. package/dist/zonos-elements/{p-CMo3ZweU.js → p-fdritVtG.js} +1 -1
  227. package/dist/zonos-elements/p-fffe6376.entry.js +1 -0
  228. package/dist/zonos-elements/p-gEViRqvf.js +1 -0
  229. package/dist/zonos-elements/{p-Dtu_Japy.system.js → p-v8IEjQ2z.system.js} +39 -39
  230. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  231. package/package.json +10 -10
  232. package/dist/esm-es5/handleFetch-D5GYDF-O.js +0 -60
  233. package/dist/zonos-elements/p-107f287b.entry.js +0 -1
  234. package/dist/zonos-elements/p-25eb99d4.entry.js +0 -1
  235. package/dist/zonos-elements/p-46b9f0cf.entry.js +0 -1
  236. package/dist/zonos-elements/p-636b71d4.entry.js +0 -1
  237. package/dist/zonos-elements/p-7dc7f328.entry.js +0 -1
  238. package/dist/zonos-elements/p-8f9d8795.entry.js +0 -1
  239. package/dist/zonos-elements/p-BMPYH-LT.js +0 -1
  240. package/dist/zonos-elements/p-C70h5mKA.js +0 -1
  241. package/dist/zonos-elements/p-CTiqplrr.js +0 -1
  242. package/dist/zonos-elements/p-Ch1w0Lr7.js +0 -1
  243. package/dist/zonos-elements/p-D1SmY_fZ.js +0 -1
  244. package/dist/zonos-elements/p-D6xXnsM_.js +0 -1
  245. package/dist/zonos-elements/p-DE4a-QD5.js +0 -1
  246. package/dist/zonos-elements/p-DQrMfUzi.system.js +0 -227
  247. package/dist/zonos-elements/p-DZdkJHK9.system.js +0 -7
  248. package/dist/zonos-elements/p-U33isUJG.js +0 -1
  249. package/dist/zonos-elements/p-ebe157b5.entry.js +0 -1
  250. package/dist/zonos-elements/p-zVLAvre1.system.js +0 -60
@@ -3,12 +3,104 @@
3
3
  var taxIdRules = require('./taxIdRules-BBj8kQxJ.js');
4
4
  var createCustomEvent = require('./createCustomEvent-Cs5zGImL.js');
5
5
  var getGenericSettingsOverride = require('./getGenericSettingsOverride-CL6l6wvX.js');
6
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
6
7
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
7
- var handleFetch = require('./handleFetch-DQLhurnE.js');
8
+ var _isBigCommerceNativeCheckout = require('./_isBigCommerceNativeCheckout-3-xbKbAO.js');
8
9
  var CheckoutConfig = require('./CheckoutConfig-B7JRM7yr.js');
9
10
  var ShortAddressCode = require('./ShortAddressCode-C5l520-F.js');
10
11
  var TaxId = require('./TaxId-ChhNwG04.js');
11
12
 
13
+ const constructorNotFound = /^Constructor for .+ was not found/;
14
+ const constructorTag = /^Constructor for "?([^#"]+)#/;
15
+ const recordConstructorFailure = (value) => {
16
+ var _a;
17
+ const message = handleFetch.thrownMessage(value, '');
18
+ if (!message || !constructorNotFound.test(message)) {
19
+ return;
20
+ }
21
+ if (typeof window.Zonos === 'undefined') {
22
+ return;
23
+ }
24
+ const capture = window.__zonosConstructorCapture;
25
+ if (!capture) {
26
+ return;
27
+ }
28
+ const tagMatch = constructorTag.exec(message);
29
+ const tag = (_a = tagMatch === null || tagMatch === void 0 ? void 0 : tagMatch[1]) !== null && _a !== void 0 ? _a : '';
30
+ if (capture.reported.has(tag)) {
31
+ return;
32
+ }
33
+ capture.reported.add(tag);
34
+ void handleFetch.sendErrorLog({
35
+ endpoint: 'stencil://constructor',
36
+ errors: [message],
37
+ metadata: {
38
+ shape: 'constructor-not-found',
39
+ tag,
40
+ },
41
+ });
42
+ };
43
+ /**
44
+ * Copy a missing-constructor failure onto the existing error log.
45
+ * Stencil catches `Constructor for "tag#mode" was not found` and passes that
46
+ * Error to `console.error`. One report is sent per tag, then the original
47
+ * console.error still runs. This does not request the chunk again.
48
+ */
49
+ const installConstructorCapture = () => {
50
+ if (window.__zonosConstructorCapture) {
51
+ return;
52
+ }
53
+ const listener = (event) => {
54
+ recordConstructorFailure(event.reason);
55
+ };
56
+ window.__zonosConstructorCapture = {
57
+ listener,
58
+ reported: new Set(),
59
+ };
60
+ window.addEventListener('unhandledrejection', listener);
61
+ // eslint-disable-next-line no-console -- Stencil reports the missing constructor here
62
+ const originalError = console.error.bind(console);
63
+ // eslint-disable-next-line no-console -- record the Stencil diagnostic, then forward it
64
+ console.error = (...data) => {
65
+ recordConstructorFailure(data[0]);
66
+ originalError(...data);
67
+ };
68
+ };
69
+
70
+ const reportInitRejection = (error) => {
71
+ // sendErrorLog prints only when zonosDebug is on. Keep the failure in the
72
+ // merchant console without leaving an unhandled rejection.
73
+ // eslint-disable-next-line no-console -- the page console is the support signal
74
+ console.error(error);
75
+ if (typeof window.Zonos === 'undefined') {
76
+ return;
77
+ }
78
+ void handleFetch.sendErrorLog({
79
+ endpoint: 'zonos://init',
80
+ errors: [handleFetch.thrownMessage(error, 'Unknown init rejection')],
81
+ metadata: {
82
+ shape: 'init-rejection',
83
+ },
84
+ });
85
+ };
86
+ /**
87
+ * Run an init that the caller is not waiting on. The rejection is recorded
88
+ * and not rethrown, so startup does not become an unhandled rejection.
89
+ */
90
+ const startZonosInit = (start) => {
91
+ let pending;
92
+ try {
93
+ pending = start();
94
+ }
95
+ catch (error) {
96
+ reportInitRejection(error);
97
+ return;
98
+ }
99
+ void pending.catch((error) => {
100
+ reportInitRejection(error);
101
+ });
102
+ };
103
+
12
104
  /**
13
105
  * Get the load version and url based on the loadScriptSrc and version
14
106
  * @returns
@@ -132,7 +224,7 @@ const getZonosQaUrl = () => {
132
224
  return null;
133
225
  }
134
226
  const qaUrl = extractZonosQaUrl(window.location.href);
135
- const cdnUrl = "https://v1.5.1.js.zonos.com";
227
+ const cdnUrl = "https://v1.5.3.js.zonos.com";
136
228
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
137
229
  if (!qaUrl &&
138
230
  (cdnUrl.includes('test.') ||
@@ -167,8 +259,8 @@ const getZonosQaUrl = () => {
167
259
  void fetch(fullUrl)
168
260
  .then(() => {
169
261
  // cleanup checkout session to avoid using the prod session in preview domain
170
- window.sessionStorage.removeItem('zonos--checkout-session-id');
171
- window.sessionStorage.removeItem('zonos--client-secret');
262
+ handleFetch.safeRemoveItem('session', 'zonos--checkout-session-id');
263
+ handleFetch.safeRemoveItem('session', 'zonos--client-secret');
172
264
  })
173
265
  .catch(() => {
174
266
  alert(`[ZONOS-WARNING] '${fullUrl}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);
@@ -308,13 +400,23 @@ const hasCheckoutCartCallback = () => {
308
400
  (typeof ((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.createCartId) === 'function' ||
309
401
  typeof ((_b = window.Zonos) === null || _b === void 0 ? void 0 : _b.buildCartDetail) === 'function');
310
402
  };
403
+ /**
404
+ * The only function that may inject Stripe.js. Native BigCommerce checkout
405
+ * returns null before `window.Stripe` is read or `js.stripe.com/v3` is added.
406
+ * Callers decide whether to ask for Stripe. They do not load it themselves.
407
+ */
408
+ const loadStripeScript = () => {
409
+ if (_isBigCommerceNativeCheckout.holdStripeForNativeCheckout()) {
410
+ return Promise.resolve(null);
411
+ }
412
+ return zonosStripeLoadScript(null);
413
+ };
311
414
  const stripePromise = Promise.resolve().then(() => {
312
- // Skip eagerly loading Stripe when no checkout cart callback is configured
313
- // (e.g. a Hello-only integration). Stripe is loaded on demand instead.
415
+ // Hello-only pages have no cart callback, so they skip the eager preload.
314
416
  if (!hasCheckoutCartCallback()) {
315
417
  return null;
316
418
  }
317
- return zonosStripeLoadScript(null);
419
+ return loadStripeScript();
318
420
  });
319
421
  let loadCalled = false;
320
422
  stripePromise.catch((err) => {
@@ -330,7 +432,7 @@ const zonosLoadStripe = async (...args) => {
330
432
  // Fall back to loading Stripe on demand if the eager preload was skipped
331
433
  // (callbacks set after the microtask, or Collect/Invoice flows that don't
332
434
  // use cart callbacks). `zonosStripeLoadScript` is idempotent.
333
- const maybeStripe = (_a = (await stripePromise)) !== null && _a !== void 0 ? _a : (await zonosStripeLoadScript(null));
435
+ const maybeStripe = (_a = (await stripePromise)) !== null && _a !== void 0 ? _a : (await loadStripeScript());
334
436
  return initStripe(maybeStripe, args, startTime);
335
437
  };
336
438
 
@@ -421,10 +523,10 @@ const zonosLoadUrl = (() => {
421
523
  return null;
422
524
  })();
423
525
  const startLoadTime = Date.now();
424
- const ZONOS_URL = "https://v1.5.1.js.zonos.com";
425
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.5.1";
426
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.5.1";
427
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.5.1";
526
+ const ZONOS_URL = "https://v1.5.3.js.zonos.com";
527
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.5.3";
528
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.5.3";
529
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.5.3";
428
530
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
429
531
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
430
532
  class Zonos {
@@ -442,7 +544,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
442
544
  ? new URLSearchParams(window.location.search).get('iframeLogType')
443
545
  : null;
444
546
  Zonos.isBigCommerce = false;
445
- Zonos.releaseDate = "1793041426949";
547
+ Zonos.releaseDate = "1794098254078";
446
548
  Zonos.isLegacyCheckout = false;
447
549
  Zonos.googleAnalyticId = null;
448
550
  Zonos.googleAnalyticReady = false;
@@ -467,7 +569,7 @@ Zonos.isNpm = true;
467
569
  Zonos.zonosQaUrl = null;
468
570
  Zonos.zonosQaUrlApi = null;
469
571
  Zonos.trackEventLogs = [];
470
- Zonos.version = `v${"1.5.1"}`;
572
+ Zonos.version = `v${"1.5.3"}`;
471
573
  Zonos.modeAlerted = false;
472
574
  Zonos.cartData = null;
473
575
  Zonos.paypal = null;
@@ -478,6 +580,7 @@ Zonos.zonosController = null;
478
580
  Zonos.loadTimeApiInfoList = [];
479
581
  Zonos.logIntervalId = null;
480
582
  Zonos.init = async (params) => {
583
+ installConstructorCapture();
481
584
  const { appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, } = params;
482
585
  _a.cartId = getCartIdFromQueryParam();
483
586
  // Expose the checkout cart callbacks on the global so Stripe loading can be
@@ -489,6 +592,9 @@ Zonos.init = async (params) => {
489
592
  // do nothing if zonos is already initialized
490
593
  return;
491
594
  }
595
+ // Host detection has already copied `isBigCommerce`. Settle the
596
+ // native-checkout answer once, before buttons or Stripe are touched.
597
+ _isBigCommerceNativeCheckout.markBigCommerceHostChecked();
492
598
  VarianceTest.log(`====== ZONOS DEBUG MODE: on (${_a.version}) ======`);
493
599
  _a.zonosApiKey = zonosApiKey;
494
600
  _a.storeId = storeId;
@@ -513,7 +619,7 @@ Zonos.init = async (params) => {
513
619
  window.Zonos.isLegacyCheckout = _a.isLegacyCheckout;
514
620
  window.Zonos.zonosMode = _a.zonosMode;
515
621
  // call init again after the script is loaded
516
- void window.Zonos.init(params);
622
+ startZonosInit(() => window.Zonos.init(params));
517
623
  });
518
624
  script.addEventListener('error', () => {
519
625
  alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${zonosQaUrl}`);
@@ -549,7 +655,7 @@ Zonos.init = async (params) => {
549
655
  }
550
656
  }
551
657
  // Check if the stripe client secret is available in the url or session storage, inject hidden button to trigger checkout right away to check status of client secret
552
- const clientSecretUrlParam = new URL(window.location.href).searchParams.get('payment_intent_client_secret') || sessionStorage.getItem('zonos--client-secret');
658
+ const clientSecretUrlParam = new URL(window.location.href).searchParams.get('payment_intent_client_secret') || handleFetch.safeGetItem('session', 'zonos--client-secret');
553
659
  const shouldAttemptImmediatelyOpenCheckout = (_a.cartId && _a.cartData) || !!clientSecretUrlParam;
554
660
  // inject hidden button to body to trigger checkout right away if we have cartData or stripe client secret
555
661
  if (shouldAttemptImmediatelyOpenCheckout) {
@@ -745,47 +851,52 @@ Zonos.injectController = ({ config, }) => {
745
851
  if (document.querySelector('zonos-controller')) {
746
852
  return;
747
853
  }
748
- // if placeOrderAnchor is passed in the config for checkoutSettings, disable the place order button until zonos is initialized
749
- if ((_b = config.checkoutSettings) === null || _b === void 0 ? void 0 : _b.placeOrderButtonSelector) {
750
- const placeOrderButtonSelector = config.checkoutSettings.placeOrderButtonSelector;
751
- _a.disablePlaceOrderButtons({
752
- config,
753
- disable: true,
754
- placeOrderButtonSelector,
755
- });
756
- // create a mutation observer to see if any new elements that match our selector is added to the DOM
757
- const observer = new MutationObserver(() => {
854
+ // Native BigCommerce checkout never calls attachCheckout, which is what
855
+ // marks these buttons handled. Disabling them here would flicker the
856
+ // store's own buttons after every DOM mutation.
857
+ if (!_isBigCommerceNativeCheckout.isBigCommerceNativeCheckout()) {
858
+ // if placeOrderAnchor is passed in the config for checkoutSettings, disable the place order button until zonos is initialized
859
+ if ((_b = config.checkoutSettings) === null || _b === void 0 ? void 0 : _b.placeOrderButtonSelector) {
860
+ const placeOrderButtonSelector = config.checkoutSettings.placeOrderButtonSelector;
758
861
  _a.disablePlaceOrderButtons({
759
862
  config,
760
863
  disable: true,
761
864
  placeOrderButtonSelector,
762
865
  });
763
- });
764
- observer.observe(document.body, {
765
- childList: true,
766
- subtree: true,
767
- });
768
- }
769
- // if alwaysTriggerInternationalCheckoutSelector is passed in the config for checkoutSettings, disable the place order button until zonos is initialized
770
- if ((_c = config.checkoutSettings) === null || _c === void 0 ? void 0 : _c.alwaysTriggerInternationalCheckoutSelector) {
771
- const alwaysTriggerInternationalCheckoutSelector = config.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;
772
- _a.disablePlaceOrderButtons({
773
- config,
774
- disable: true,
775
- placeOrderButtonSelector: alwaysTriggerInternationalCheckoutSelector,
776
- });
777
- // create a mutation observer to see if any new elements that match our selector is added to the DOM
778
- const observer = new MutationObserver(() => {
866
+ // create a mutation observer to see if any new elements that match our selector is added to the DOM
867
+ const observer = new MutationObserver(() => {
868
+ _a.disablePlaceOrderButtons({
869
+ config,
870
+ disable: true,
871
+ placeOrderButtonSelector,
872
+ });
873
+ });
874
+ observer.observe(document.body, {
875
+ childList: true,
876
+ subtree: true,
877
+ });
878
+ }
879
+ // if alwaysTriggerInternationalCheckoutSelector is passed in the config for checkoutSettings, disable the place order button until zonos is initialized
880
+ if ((_c = config.checkoutSettings) === null || _c === void 0 ? void 0 : _c.alwaysTriggerInternationalCheckoutSelector) {
881
+ const alwaysTriggerInternationalCheckoutSelector = config.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;
779
882
  _a.disablePlaceOrderButtons({
780
883
  config,
781
884
  disable: true,
782
885
  placeOrderButtonSelector: alwaysTriggerInternationalCheckoutSelector,
783
886
  });
784
- });
785
- observer.observe(document.body, {
786
- childList: true,
787
- subtree: true,
788
- });
887
+ // create a mutation observer to see if any new elements that match our selector is added to the DOM
888
+ const observer = new MutationObserver(() => {
889
+ _a.disablePlaceOrderButtons({
890
+ config,
891
+ disable: true,
892
+ placeOrderButtonSelector: alwaysTriggerInternationalCheckoutSelector,
893
+ });
894
+ });
895
+ observer.observe(document.body, {
896
+ childList: true,
897
+ subtree: true,
898
+ });
899
+ }
789
900
  }
790
901
  const zonosController = document.createElement('zonos-controller');
791
902
  zonosController.config = config;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var zonosStore = require('./zonosStore-CDV83QyK.js');
4
- var cart = require('./cart-CiXlehwQ.js');
5
- var localization = require('./localization-B2mjW0Xa.js');
6
- var handleFetch = require('./handleFetch-DQLhurnE.js');
4
+ var cart = require('./cart-C39TMSgB.js');
5
+ var localization = require('./localization-BhNVhLZs.js');
6
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
7
7
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
8
8
 
9
9
  const { state: invoiceStore } = zonosStore.createStore(() => ({
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var zonosStore = require('./zonosStore-CDV83QyK.js');
4
- var handleFetch = require('./handleFetch-DQLhurnE.js');
4
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
5
5
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
6
6
 
7
7
  /**
@@ -44,24 +44,24 @@ const filterValidTests = (testKeys) => {
44
44
  */
45
45
  const VARIANT_TEST_KEY_EXPIRATION = 60 * 60 * 24 * 1000;
46
46
  const { onChange: storageStoreOnChange, state: storageStore } = zonosStore.createStore({
47
- checkoutSessionId: sessionStorage.getItem('zonos--checkout-session-id'),
48
- enabledVariantTestKeys: handleFetch.jsonParse(localStorage.getItem('zonos--enabled-variant-test-keys')),
47
+ checkoutSessionId: handleFetch.safeGetItem('session', 'zonos--checkout-session-id'),
48
+ enabledVariantTestKeys: handleFetch.jsonParse(handleFetch.safeGetItem('local', 'zonos--enabled-variant-test-keys')),
49
49
  });
50
50
  storageStoreOnChange('enabledVariantTestKeys', () => {
51
51
  var _a;
52
52
  // This should be set in localStorage so we don't have multiple tests for the same user in short period of time
53
53
  if (!((_a = storageStore.enabledVariantTestKeys) === null || _a === void 0 ? void 0 : _a.length)) {
54
- localStorage.removeItem('zonos--enabled-variant-test-keys');
54
+ handleFetch.safeRemoveItem('local', 'zonos--enabled-variant-test-keys');
55
55
  return;
56
56
  }
57
- localStorage.setItem('zonos--enabled-variant-test-keys', JSON.stringify(storageStore.enabledVariantTestKeys));
57
+ handleFetch.safeSetItem('local', 'zonos--enabled-variant-test-keys', JSON.stringify(storageStore.enabledVariantTestKeys));
58
58
  });
59
59
  storageStoreOnChange('checkoutSessionId', () => {
60
60
  if (!storageStore.checkoutSessionId) {
61
- sessionStorage.removeItem('zonos--checkout-session-id');
61
+ handleFetch.safeRemoveItem('session', 'zonos--checkout-session-id');
62
62
  return;
63
63
  }
64
- sessionStorage.setItem('zonos--checkout-session-id', storageStore.checkoutSessionId);
64
+ handleFetch.safeSetItem('session', 'zonos--checkout-session-id', storageStore.checkoutSessionId);
65
65
  });
66
66
  const storageStoreSetEnabledVariantTestKeys = (testKeys) => {
67
67
  storageStore.enabledVariantTestKeys = filterValidTests(testKeys);
@@ -18278,7 +18278,7 @@ const getExchangeRate = async ({ country, isGuaranteed, sourceCurrency, targetCu
18278
18278
  const { rate, targetFormat } = json.exchangeRateCreate;
18279
18279
  const maxAge = json.maxAge;
18280
18280
  if (rate) {
18281
- sessionStorage.setItem(country + '_rate', JSON.stringify(rate));
18281
+ handleFetch.safeSetItem('session', `${country}_rate`, JSON.stringify(rate));
18282
18282
  const exchangeRate = { rate, targetFormat };
18283
18283
  return { exchangeRate, maxAge };
18284
18284
  }
@@ -18317,58 +18317,34 @@ const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
18317
18317
  const isCountryCode = (value) => /^[A-Z]{2}$/.test(value);
18318
18318
 
18319
18319
  const COUNTRY_OVERRIDE_KEY = 'zonos--country';
18320
- const withBlockedStorage = (run) => {
18321
- try {
18322
- run();
18323
- }
18324
- catch (_a) {
18325
- // localStorage/sessionStorage can throw in blocked-storage contexts
18326
- // (Safari private mode, cross-origin iframes).
18327
- }
18328
- };
18329
- const readStoredCountry = (storage) => {
18330
- try {
18331
- const value = storage.getItem(COUNTRY_OVERRIDE_KEY);
18332
- if (!value || !isCountryCode(value)) {
18333
- return null;
18334
- }
18335
- return value;
18336
- }
18337
- catch (_a) {
18320
+ const readStoredCountry = (area) => {
18321
+ const value = handleFetch.safeGetItem(area, COUNTRY_OVERRIDE_KEY);
18322
+ if (!value || !isCountryCode(value)) {
18338
18323
  return null;
18339
18324
  }
18325
+ return value;
18340
18326
  };
18341
- const writeOverride = (storage, countryCode) => {
18342
- storage.setItem(COUNTRY_OVERRIDE_KEY, countryCode);
18343
- };
18344
- const withEachStorage = (run) => {
18345
- withBlockedStorage(() => run(window.localStorage));
18346
- withBlockedStorage(() => run(window.sessionStorage));
18347
- };
18348
- const getCountryOverrideStorage = () => {
18349
- var _a;
18350
- return (_a = readStoredCountry(window.localStorage)) !== null && _a !== void 0 ? _a : readStoredCountry(window.sessionStorage);
18351
- };
18327
+ const getCountryOverrideStorage = () => { var _a; return (_a = readStoredCountry('local')) !== null && _a !== void 0 ? _a : readStoredCountry('session'); };
18352
18328
  const migrateCountryOverrideStorage = (selectedCountryCode) => {
18353
18329
  if (!selectedCountryCode) {
18354
18330
  return;
18355
18331
  }
18356
- withBlockedStorage(() => {
18357
- const localCountry = readStoredCountry(window.localStorage);
18358
- // Only mirror the country Hello actually kept. A failed localStorage
18359
- // clear can leave a discarded country in local; never copy that to
18360
- // session for older Elements. Never copy session → local.
18361
- if (localCountry === selectedCountryCode) {
18362
- writeOverride(window.sessionStorage, localCountry);
18363
- }
18364
- });
18332
+ const localCountry = readStoredCountry('local');
18333
+ // Only mirror the country Hello actually kept. A failed localStorage
18334
+ // clear can leave a discarded country in local; never copy that to
18335
+ // session for older Elements. Never copy session → local.
18336
+ if (localCountry === selectedCountryCode) {
18337
+ handleFetch.safeSetItem('session', COUNTRY_OVERRIDE_KEY, localCountry);
18338
+ }
18365
18339
  };
18366
18340
  const setCountryOverrideStorage = (countryCode) => {
18367
18341
  // Dual-write so older Elements that only read sessionStorage see the pick.
18368
- withEachStorage(storage => writeOverride(storage, countryCode));
18342
+ handleFetch.safeSetItem('local', COUNTRY_OVERRIDE_KEY, countryCode);
18343
+ handleFetch.safeSetItem('session', COUNTRY_OVERRIDE_KEY, countryCode);
18369
18344
  };
18370
18345
  const clearCountryOverrideStorage = () => {
18371
- withEachStorage(storage => storage.removeItem(COUNTRY_OVERRIDE_KEY));
18346
+ handleFetch.safeRemoveItem('local', COUNTRY_OVERRIDE_KEY);
18347
+ handleFetch.safeRemoveItem('session', COUNTRY_OVERRIDE_KEY);
18372
18348
  };
18373
18349
 
18374
18350
  const getZCountryUrlParam = (urlParams) => {
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var zonosStore = require('./zonosStore-CDV83QyK.js');
4
- var cart = require('./cart-CiXlehwQ.js');
5
- var localization = require('./localization-B2mjW0Xa.js');
6
- var handleFetch = require('./handleFetch-DQLhurnE.js');
4
+ var cart = require('./cart-C39TMSgB.js');
5
+ var localization = require('./localization-BhNVhLZs.js');
6
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
7
7
  var isContrastColor = require('./isContrastColor-B9ldIdpa.js');
8
8
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
9
- var submitGtag = require('./submitGtag-Rc-S3PnH.js');
9
+ var submitGtag = require('./submitGtag-D4sB7w4z.js');
10
10
 
11
11
  /*!
12
12
  * paypal-js v8.4.2 (2025-09-04T17:21:30.135Z)
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var cart = require('./cart-CiXlehwQ.js');
4
- var localization = require('./localization-B2mjW0Xa.js');
5
- var handleFetch = require('./handleFetch-DQLhurnE.js');
3
+ var cart = require('./cart-C39TMSgB.js');
4
+ var localization = require('./localization-BhNVhLZs.js');
5
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
6
6
 
7
7
  const placeTestOrder = async () => {
8
8
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var cart = require('./cart-CiXlehwQ.js');
4
- var localization = require('./localization-B2mjW0Xa.js');
3
+ var cart = require('./cart-C39TMSgB.js');
4
+ var localization = require('./localization-BhNVhLZs.js');
5
5
 
6
6
  const getDisplayCurrency = () => {
7
7
  var _a, _b;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var localization = require('./localization-B2mjW0Xa.js');
3
+ var localization = require('./localization-BhNVhLZs.js');
4
4
 
5
5
  /**
6
6
  * Whether to offer the language selector. Hidden when the merchant has narrowed
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var zonosStore = require('./zonosStore-CDV83QyK.js');
4
- var handleFetch = require('./handleFetch-DQLhurnE.js');
4
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
5
5
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
6
6
 
7
7
  /** Message type for zonos-analytic events sent from iframe to parent. */
@@ -3,8 +3,8 @@
3
3
  var zonosStore = require('./zonosStore-CDV83QyK.js');
4
4
  var debounce = require('./debounce-DRPMxNew.js');
5
5
  var index = require('./index-DAAr465v.js');
6
- var cart = require('./cart-CiXlehwQ.js');
7
- var localization = require('./localization-B2mjW0Xa.js');
6
+ var cart = require('./cart-C39TMSgB.js');
7
+ var localization = require('./localization-BhNVhLZs.js');
8
8
  var taxIdRules = require('./taxIdRules-BBj8kQxJ.js');
9
9
 
10
10
  var throttle_1;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var debounce = require('./debounce-BhgA8_3W.js');
4
- var handleFetch = require('./handleFetch-DQLhurnE.js');
4
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
5
5
 
6
6
  const attributesToUpdate = {};
7
7
  // Store debounced functions per session to ensure proper debouncing