@zonos/elements 1.3.249 → 1.3.251

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 (244) hide show
  1. package/dist/cjs/{cart-eca56521.js → cart-77640463.js} +318 -19
  2. package/dist/cjs/{hasInclusivePrice-e7d67b45.js → hasInclusivePrice-e93c64fd.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{invoice-918f2c2b.js → invoice-211ef96c.js} +2 -2
  5. package/dist/cjs/{isCollectMobileTablet-89911215.js → isCollectMobileTablet-14fb5ab4.js} +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{localization-878ef681.js → localization-be7afc1b.js} +780 -0
  8. package/dist/cjs/{paypal-6acca678.js → paypal-c61ef042.js} +29 -2
  9. package/dist/cjs/{placeTestOrder-f1c1e939.js → placeTestOrder-0f7477c8.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-d9590e81.js → renderCheckoutCurrency-1ac02803.js} +2 -2
  11. package/dist/cjs/{zonos-address-display_9.cjs.entry.js → zonos-address-display_8.cjs.entry.js} +3 -79
  12. package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-card_5.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +74 -20
  15. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +113 -0
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +79 -4
  17. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  19. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  20. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-elements.cjs.js +1 -1
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  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-store-credit.cjs.entry.js +113 -0
  31. package/dist/collection/collection-manifest.json +1 -0
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -0
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +49 -4
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +18 -10
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/assets/StoreCreditIcon.svg +3 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.css +139 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js +137 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +81 -3
  39. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
  40. package/dist/collection/components/main/zonos-controller.js +1 -1
  41. package/dist/collection/components/store/checkout/cart.js +62 -4
  42. package/dist/collection/components/store/checkout/paypal.js +28 -0
  43. package/dist/collection/components/store/checkout/storeCredit.js +237 -0
  44. package/dist/collection/components/store/checkout/stripe.js +2 -1
  45. package/dist/collection/components/store/translationStore/strings.arabic.js +39 -0
  46. package/dist/collection/components/store/translationStore/strings.base.js +39 -0
  47. package/dist/collection/components/store/translationStore/strings.chinese.js +39 -0
  48. package/dist/collection/components/store/translationStore/strings.danish.js +39 -0
  49. package/dist/collection/components/store/translationStore/strings.dutch.js +39 -0
  50. package/dist/collection/components/store/translationStore/strings.french.js +39 -0
  51. package/dist/collection/components/store/translationStore/strings.german.js +39 -0
  52. package/dist/collection/components/store/translationStore/strings.hebrew.js +39 -0
  53. package/dist/collection/components/store/translationStore/strings.indonesian.js +39 -0
  54. package/dist/collection/components/store/translationStore/strings.italian.js +39 -0
  55. package/dist/collection/components/store/translationStore/strings.japanese.js +39 -0
  56. package/dist/collection/components/store/translationStore/strings.korean.js +39 -0
  57. package/dist/collection/components/store/translationStore/strings.norwegian.js +39 -0
  58. package/dist/collection/components/store/translationStore/strings.polish.js +39 -0
  59. package/dist/collection/components/store/translationStore/strings.portuguese.js +39 -0
  60. package/dist/collection/components/store/translationStore/strings.russian.js +39 -0
  61. package/dist/collection/components/store/translationStore/strings.spanish.js +39 -0
  62. package/dist/collection/components/store/translationStore/strings.swedish.js +39 -0
  63. package/dist/collection/components/store/translationStore/strings.turkish.js +39 -0
  64. package/dist/collection/components/store/translationStore/strings.vietnamese.js +39 -0
  65. package/dist/collection/types/generated/graphql.internal.types.js +589 -0
  66. package/dist/esm/{cart-efb30253.js → cart-394c9ddb.js} +309 -21
  67. package/dist/esm/{hasInclusivePrice-565ddbe5.js → hasInclusivePrice-f0322e1c.js} +1 -1
  68. package/dist/esm/index.js +7 -7
  69. package/dist/esm/{invoice-0e462fcc.js → invoice-5ae81ae5.js} +2 -2
  70. package/dist/esm/{isCollectMobileTablet-0bcba25a.js → isCollectMobileTablet-15b668d6.js} +2 -2
  71. package/dist/esm/loader.js +1 -1
  72. package/dist/esm/{localization-c1aff677.js → localization-0ebc8356.js} +780 -0
  73. package/dist/esm/{paypal-06b67be0.js → paypal-b6fa3ec3.js} +29 -2
  74. package/dist/esm/{placeTestOrder-6c9a6c8a.js → placeTestOrder-5756cbc3.js} +2 -2
  75. package/dist/esm/{renderCheckoutCurrency-910fea67.js → renderCheckoutCurrency-5f3e06ea.js} +2 -2
  76. package/dist/esm/{zonos-address-display_9.entry.js → zonos-address-display_8.entry.js} +4 -79
  77. package/dist/esm/zonos-address_4.entry.js +2 -2
  78. package/dist/esm/zonos-card_5.entry.js +3 -3
  79. package/dist/esm/zonos-cart-items_12.entry.js +74 -20
  80. package/dist/esm/zonos-checkbox_2.entry.js +108 -0
  81. package/dist/esm/zonos-checkout.entry.js +79 -4
  82. package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
  83. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  84. package/dist/esm/zonos-collect.entry.js +4 -4
  85. package/dist/esm/zonos-controller.entry.js +2 -2
  86. package/dist/esm/zonos-country-flag.entry.js +1 -1
  87. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  88. package/dist/esm/zonos-elements.js +1 -1
  89. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  90. package/dist/esm/zonos-hello.entry.js +1 -1
  91. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  92. package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
  93. package/dist/esm/zonos-invoice.entry.js +4 -4
  94. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  95. package/dist/esm/zonos-store-credit.entry.js +109 -0
  96. package/dist/esm-es5/cart-394c9ddb.js +1 -0
  97. package/dist/esm-es5/{hasInclusivePrice-565ddbe5.js → hasInclusivePrice-f0322e1c.js} +1 -1
  98. package/dist/esm-es5/index.js +1 -1
  99. package/dist/esm-es5/{invoice-0e462fcc.js → invoice-5ae81ae5.js} +1 -1
  100. package/dist/esm-es5/{isCollectMobileTablet-0bcba25a.js → isCollectMobileTablet-15b668d6.js} +1 -1
  101. package/dist/esm-es5/loader.js +1 -1
  102. package/dist/esm-es5/localization-0ebc8356.js +1 -0
  103. package/dist/esm-es5/{paypal-06b67be0.js → paypal-b6fa3ec3.js} +2 -2
  104. package/dist/esm-es5/{placeTestOrder-6c9a6c8a.js → placeTestOrder-5756cbc3.js} +1 -1
  105. package/dist/esm-es5/{renderCheckoutCurrency-910fea67.js → renderCheckoutCurrency-5f3e06ea.js} +1 -1
  106. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -0
  107. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  108. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  109. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  110. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -0
  111. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  112. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  113. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  114. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  115. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  116. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  117. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  118. package/dist/esm-es5/zonos-elements.js +1 -1
  119. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  120. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  121. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  122. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  123. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  124. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  125. package/dist/esm-es5/zonos-store-credit.entry.js +1 -0
  126. package/dist/scripts/index.d.ts +68 -1
  127. package/dist/scripts/index.js +1 -1
  128. package/dist/scripts/loadZonos.js +1 -1
  129. package/dist/scripts/zonos.js +1 -1
  130. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  131. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.d.ts +17 -0
  132. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +5 -0
  133. package/dist/types/components/store/checkout/cart.d.ts +8 -1
  134. package/dist/types/components/store/checkout/storeCredit.d.ts +111 -0
  135. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  136. package/dist/types/components/store/translationStore/strings.arabic.d.ts +39 -0
  137. package/dist/types/components/store/translationStore/strings.base.d.ts +39 -0
  138. package/dist/types/components/store/translationStore/strings.chinese.d.ts +39 -0
  139. package/dist/types/components/store/translationStore/strings.danish.d.ts +39 -0
  140. package/dist/types/components/store/translationStore/strings.dutch.d.ts +39 -0
  141. package/dist/types/components/store/translationStore/strings.french.d.ts +39 -0
  142. package/dist/types/components/store/translationStore/strings.german.d.ts +39 -0
  143. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +39 -0
  144. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +39 -0
  145. package/dist/types/components/store/translationStore/strings.italian.d.ts +39 -0
  146. package/dist/types/components/store/translationStore/strings.japanese.d.ts +39 -0
  147. package/dist/types/components/store/translationStore/strings.korean.d.ts +39 -0
  148. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +39 -0
  149. package/dist/types/components/store/translationStore/strings.polish.d.ts +39 -0
  150. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +39 -0
  151. package/dist/types/components/store/translationStore/strings.russian.d.ts +39 -0
  152. package/dist/types/components/store/translationStore/strings.spanish.d.ts +39 -0
  153. package/dist/types/components/store/translationStore/strings.swedish.d.ts +39 -0
  154. package/dist/types/components/store/translationStore/strings.turkish.d.ts +39 -0
  155. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +39 -0
  156. package/dist/types/components.d.ts +21 -0
  157. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  158. package/dist/types/types/generated/graphql.internal.types.d.ts +713 -4
  159. package/dist/types/types/generated/graphql.internal.types.ts +956 -4
  160. package/dist/types/types/utils/ZonosSettings.d.ts +4 -0
  161. package/dist/zonos-elements/index.esm.js +1 -1
  162. package/dist/zonos-elements/{p-1f1bf95c.system.entry.js → p-07ca3347.system.entry.js} +1 -1
  163. package/dist/zonos-elements/p-09d7a5cb.system.js +18 -0
  164. package/dist/zonos-elements/p-0af96b5b.system.entry.js +1 -0
  165. package/dist/zonos-elements/{p-9c64ca98.system.entry.js → p-0da3cc62.system.entry.js} +1 -1
  166. package/dist/zonos-elements/p-0dd5a4b8.system.js +1 -0
  167. package/dist/zonos-elements/{p-4d4b7faa.entry.js → p-1162b685.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-4d081ce8.entry.js → p-11d6de1a.entry.js} +1 -1
  169. package/dist/zonos-elements/p-1282495f.system.js +1 -0
  170. package/dist/zonos-elements/p-13041752.js +1 -0
  171. package/dist/zonos-elements/{p-1b5f89d5.system.js → p-27fad55a.system.js} +1 -1
  172. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  173. package/dist/zonos-elements/p-29f7950c.js +17 -0
  174. package/dist/zonos-elements/p-2b118454.js +1 -0
  175. package/dist/zonos-elements/{p-26718a78.entry.js → p-2bdc2206.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-b360ee5b.entry.js → p-2c2e5ee6.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-bd004403.system.js → p-2c9c750e.system.js} +1 -1
  178. package/dist/zonos-elements/{p-c9e3bc98.system.js → p-321e7920.system.js} +1 -1
  179. package/dist/zonos-elements/p-3d757163.entry.js +1 -0
  180. package/dist/zonos-elements/{p-456c0e52.js → p-4f23732f.js} +1 -1
  181. package/dist/zonos-elements/{p-321d2963.js → p-57b27c60.js} +1 -1
  182. package/dist/zonos-elements/{p-6d37f669.entry.js → p-615b5d13.entry.js} +1 -1
  183. package/dist/zonos-elements/p-620ba943.js +1 -0
  184. package/dist/zonos-elements/p-785111e7.entry.js +1 -0
  185. package/dist/zonos-elements/p-7b294762.system.entry.js +1 -0
  186. package/dist/zonos-elements/p-7fde2d8a.entry.js +1 -0
  187. package/dist/zonos-elements/p-8abeab5a.entry.js +1 -0
  188. package/dist/zonos-elements/{p-4a395eea.system.entry.js → p-8dfa0bb8.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-06e2bc14.entry.js → p-8efb79ab.entry.js} +1 -1
  190. package/dist/zonos-elements/p-8f1ab25c.system.entry.js +1 -0
  191. package/dist/zonos-elements/{p-358dfb9e.entry.js → p-920d9189.entry.js} +1 -1
  192. package/dist/zonos-elements/p-92d91395.system.entry.js +1 -0
  193. package/dist/zonos-elements/{p-b9a4430c.entry.js → p-95f7f2a0.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-f31fbbf0.entry.js → p-97fb5ad5.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-bc6b33fa.entry.js → p-9ff90151.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-4c087a8e.system.entry.js → p-a0ac3ca2.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-09110bb7.system.entry.js → p-a1e23675.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-36bea5d5.system.entry.js → p-a5adc047.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-101226f3.system.entry.js → p-a5fb864a.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-54c95926.entry.js → p-a95ac160.entry.js} +1 -1
  201. package/dist/zonos-elements/p-ac353826.js +1 -0
  202. package/dist/zonos-elements/{p-b589f621.system.entry.js → p-b37a85f0.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-302b7105.system.entry.js → p-b49b8da4.system.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-8d1efd7b.entry.js → p-bdaf2a38.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-3ad2a9a3.system.entry.js → p-c1ae7391.system.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-a75b3efc.system.entry.js → p-c2121663.system.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-c87d3d50.system.js → p-c52b917b.system.js} +1 -1
  208. package/dist/zonos-elements/{p-0a2abbab.system.entry.js → p-c6047442.system.entry.js} +1 -1
  209. package/dist/zonos-elements/p-ca19a10a.js +1 -0
  210. package/dist/zonos-elements/p-cf69bcc4.system.js +1 -0
  211. package/dist/zonos-elements/{p-3ece0f96.system.entry.js → p-d65cfa9b.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-5eaa0de1.entry.js → p-d8610393.entry.js} +1 -1
  213. package/dist/zonos-elements/p-daaaa8f1.system.entry.js +1 -0
  214. package/dist/zonos-elements/{p-8a424412.entry.js → p-efa69c89.entry.js} +1 -1
  215. package/dist/zonos-elements/p-fbccfa3e.system.js +1 -0
  216. package/dist/zonos-elements/{p-079bc009.system.entry.js → p-fce715f1.system.entry.js} +1 -1
  217. package/dist/zonos-elements/p-fe6cc354.entry.js +1 -0
  218. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  219. package/package.json +1 -1
  220. package/dist/cjs/zonos-toggle.cjs.entry.js +0 -35
  221. package/dist/esm/zonos-toggle.entry.js +0 -31
  222. package/dist/esm-es5/cart-efb30253.js +0 -1
  223. package/dist/esm-es5/localization-c1aff677.js +0 -1
  224. package/dist/esm-es5/zonos-address-display_9.entry.js +0 -1
  225. package/dist/esm-es5/zonos-toggle.entry.js +0 -1
  226. package/dist/zonos-elements/p-096182f0.system.js +0 -1
  227. package/dist/zonos-elements/p-0aeba2c7.system.js +0 -1
  228. package/dist/zonos-elements/p-127e0395.js +0 -17
  229. package/dist/zonos-elements/p-197d9b23.system.entry.js +0 -1
  230. package/dist/zonos-elements/p-25dd58f8.system.entry.js +0 -1
  231. package/dist/zonos-elements/p-445072f8.js +0 -1
  232. package/dist/zonos-elements/p-507f00d2.js +0 -1
  233. package/dist/zonos-elements/p-5fd0cd66.system.js +0 -1
  234. package/dist/zonos-elements/p-661cd4ce.system.entry.js +0 -1
  235. package/dist/zonos-elements/p-777e0a81.entry.js +0 -1
  236. package/dist/zonos-elements/p-7e77b055.system.entry.js +0 -1
  237. package/dist/zonos-elements/p-80524eac.entry.js +0 -1
  238. package/dist/zonos-elements/p-8b206982.system.js +0 -1
  239. package/dist/zonos-elements/p-9eea270b.entry.js +0 -1
  240. package/dist/zonos-elements/p-c4e358f2.js +0 -1
  241. package/dist/zonos-elements/p-cda52300.js +0 -1
  242. package/dist/zonos-elements/p-d233ef0d.entry.js +0 -1
  243. package/dist/zonos-elements/p-f8f7d491.js +0 -1
  244. package/dist/zonos-elements/p-fc0aa91e.system.js +0 -18
@@ -1,12 +1,255 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-f5a61112.js');
4
- const localization = require('./localization-878ef681.js');
5
- const handleFetch = require('./handleFetch-954f30e1.js');
4
+ const localization = require('./localization-be7afc1b.js');
6
5
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
6
+ const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const isDarkColor = require('./isDarkColor-a68abf7a.js');
8
8
  const getBorderRadius = require('./getBorderRadius-27a74844.js');
9
9
 
10
+ const getCheckoutSession = async () => {
11
+ if (!localization.storageStore.checkoutSessionId) {
12
+ return {
13
+ errors: [{ message: 'No checkout session id found' }],
14
+ json: null,
15
+ };
16
+ }
17
+ const searchParams = new URLSearchParams();
18
+ searchParams.set('checkoutSessionId', localization.storageStore.checkoutSessionId);
19
+ const { errors, json } = await handleFetch.handleFetch(`/api/zonos-elements/get-checkout-session?${searchParams.toString()}`);
20
+ return { errors, json };
21
+ };
22
+
23
+ const { onChange: storeCreditStoreOnChange, reset: reset$2, state: storeCreditStore, } = zonosStore.createStore(() => ({
24
+ amountToApply: null,
25
+ appliedAmount: null,
26
+ availableBalance: null,
27
+ error: null,
28
+ isApplying: false,
29
+ isEnabled: false,
30
+ orderIdCreated: null,
31
+ remainingBalance: null,
32
+ useFullBalance: true,
33
+ }));
34
+ /**
35
+ * Reset store credit store to initial state
36
+ */
37
+ const storeCreditStoreReset = () => {
38
+ reset$2();
39
+ };
40
+ /**
41
+ * Set the available balance from the checkout session's customerProfile.storeCreditBalance
42
+ */
43
+ const storeCreditStoreSetBalanceFromSession = (balance) => {
44
+ VarianceTest.log('Store credit balance from session', 'info', balance);
45
+ storeCreditStore.availableBalance = balance;
46
+ };
47
+ /**
48
+ * Re-fetch the store credit balance from the checkout session.
49
+ * Called when the payment step loads to ensure the balance is fresh.
50
+ */
51
+ const storeCreditStoreRefreshBalance = async () => {
52
+ var _a, _b;
53
+ const { errors, json } = await getCheckoutSession();
54
+ if (errors.length || !json) {
55
+ handleFetch.logError('Failed to refresh store credit balance');
56
+ return;
57
+ }
58
+ const balance = (_b = (_a = json.checkoutSession.customerProfile) === null || _a === void 0 ? void 0 : _a.storeCreditBalance) !== null && _b !== void 0 ? _b : null;
59
+ storeCreditStoreSetBalanceFromSession(balance);
60
+ };
61
+ /**
62
+ * Apply store credit to the checkout session.
63
+ * This must be called BEFORE payment confirmation.
64
+ * The amount/mode are already set via checkout session update with storeCreditApplication.
65
+ */
66
+ const storeCreditStoreApplyCredit = async () => {
67
+ var _a;
68
+ const checkoutSessionId = localization.storageStore.checkoutSessionId;
69
+ if (!checkoutSessionId) {
70
+ const error = 'No checkout session found';
71
+ handleFetch.logError(error);
72
+ storeCreditStore.error = error;
73
+ return { error, success: false };
74
+ }
75
+ VarianceTest.log('Applying store credit', 'info', { checkoutSessionId });
76
+ storeCreditStore.isApplying = true;
77
+ storeCreditStore.error = null;
78
+ try {
79
+ const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/store-credit/apply', {
80
+ body: {
81
+ checkoutSessionId,
82
+ },
83
+ method: 'POST',
84
+ });
85
+ if (errors.length > 0 || !json) {
86
+ const errorMessage = ((_a = errors[0]) === null || _a === void 0 ? void 0 : _a.message) || 'Failed to apply store credit';
87
+ handleFetch.logError(errorMessage);
88
+ storeCreditStore.error = errorMessage;
89
+ storeCreditStore.isApplying = false;
90
+ return { error: errorMessage, success: false };
91
+ }
92
+ storeCreditStore.appliedAmount = json.amountApplied;
93
+ storeCreditStore.remainingBalance = json.remainingBalance;
94
+ storeCreditStore.isApplying = false;
95
+ VarianceTest.log('Store credit applied', 'info', {
96
+ amountApplied: json.amountApplied,
97
+ remainingBalance: json.remainingBalance,
98
+ });
99
+ return { error: null, success: true };
100
+ }
101
+ catch (e) {
102
+ const errorMessage = e instanceof Error ? e.message : 'Failed to apply store credit';
103
+ handleFetch.logError(errorMessage);
104
+ storeCreditStore.error = errorMessage;
105
+ storeCreditStore.isApplying = false;
106
+ return { error: errorMessage, success: false };
107
+ }
108
+ };
109
+ /**
110
+ * Enable or disable store credit usage.
111
+ * When enabling, defaults to full balance mode.
112
+ * When disabling, clears the amount.
113
+ */
114
+ const storeCreditStoreSetEnabled = (enabled) => {
115
+ storeCreditStore.isEnabled = enabled;
116
+ storeCreditStore.error = null;
117
+ if (!enabled) {
118
+ storeCreditStore.amountToApply = null;
119
+ }
120
+ };
121
+ /**
122
+ * Set the amount of store credit to apply
123
+ * Validates against available balance and cart total
124
+ */
125
+ const storeCreditStoreSetAmount = (amount) => {
126
+ if (amount === null) {
127
+ storeCreditStore.amountToApply = null;
128
+ storeCreditStore.error = null;
129
+ return;
130
+ }
131
+ // Validate amount
132
+ if (amount <= 0) {
133
+ storeCreditStore.error = 'Amount must be greater than zero';
134
+ return;
135
+ }
136
+ if (storeCreditStore.availableBalance !== null &&
137
+ amount > storeCreditStore.availableBalance) {
138
+ storeCreditStore.error = 'Amount exceeds available balance';
139
+ return;
140
+ }
141
+ const orderTotal = cartStore.total + (cartStore.storeCredit || 0);
142
+ if (amount > orderTotal) {
143
+ storeCreditStore.error = 'Amount exceeds order total';
144
+ return;
145
+ }
146
+ storeCreditStore.error = null;
147
+ storeCreditStore.amountToApply = amount;
148
+ };
149
+ /**
150
+ * Toggle whether to use full balance or custom amount.
151
+ * When switching to custom mode, clears the applied amount so the user
152
+ * must explicitly apply via the Apply button.
153
+ */
154
+ const storeCreditStoreSetUseFullBalance = (useFullBalance) => {
155
+ storeCreditStore.useFullBalance = useFullBalance;
156
+ storeCreditStore.error = null;
157
+ if (useFullBalance && storeCreditStore.availableBalance !== null) {
158
+ const orderTotal = cartStore.total + (cartStore.storeCredit || 0);
159
+ const maxAmount = Math.min(storeCreditStore.availableBalance, orderTotal);
160
+ storeCreditStore.amountToApply = maxAmount;
161
+ }
162
+ else if (!useFullBalance) {
163
+ storeCreditStore.amountToApply = null;
164
+ }
165
+ };
166
+ /**
167
+ * Get the storeCreditApplication input for checkout session update.
168
+ * Sends mode: 'NONE' when store credit is not being used to clear any
169
+ * previously applied store credit on the backend.
170
+ */
171
+ const storeCreditStoreGetInput = () => {
172
+ if (!storeCreditStore.isEnabled || storeCreditStore.amountToApply === null) {
173
+ return { mode: 'NONE' };
174
+ }
175
+ if (storeCreditStore.useFullBalance) {
176
+ return { mode: 'FULL' };
177
+ }
178
+ return {
179
+ amount: storeCreditStore.amountToApply,
180
+ mode: 'PARTIAL',
181
+ };
182
+ };
183
+ /**
184
+ * Get the effective amount to apply based on settings
185
+ */
186
+ const storeCreditStoreGetEffectiveAmount = () => {
187
+ if (!storeCreditStore.isEnabled ||
188
+ storeCreditStore.availableBalance === null) {
189
+ return 0;
190
+ }
191
+ if (storeCreditStore.useFullBalance) {
192
+ return Math.min(storeCreditStore.availableBalance, cartStore.total + (cartStore.storeCredit || 0));
193
+ }
194
+ return storeCreditStore.amountToApply || 0;
195
+ };
196
+ /**
197
+ * Check whether the effective store credit amount covers the full order total.
198
+ * When true, the Stripe/PayPal payment flow should be skipped and
199
+ * `storeCreditStoreCreateOrder` should be used instead.
200
+ *
201
+ * Relies on the backend's computed `cartStore.total` (remaining amount to pay
202
+ * after store credit) rather than a client-side comparison, which avoids issues
203
+ * with currency mismatches or rounding.
204
+ */
205
+ const storeCreditStoreCoversFullAmount = () => {
206
+ // Only consider full coverage after the backend has confirmed store credit
207
+ // was applied (cartStore.storeCredit > 0) and the remaining total is 0.
208
+ return (storeCreditStore.amountToApply !== null &&
209
+ storeCreditStore.amountToApply > 0 &&
210
+ cartStore.storeCredit > 0 &&
211
+ cartStore.total <= 0);
212
+ };
213
+ /**
214
+ * Create an order paid entirely by store credit.
215
+ * Should only be called when `storeCreditStoreCoversFullAmount()` is true.
216
+ */
217
+ const storeCreditStoreCreateOrder = async () => {
218
+ var _a, _b, _c;
219
+ const checkoutSessionId = localization.storageStore.checkoutSessionId;
220
+ if (!checkoutSessionId) {
221
+ const error = 'No checkout session found';
222
+ handleFetch.logError(error);
223
+ storeCreditStore.error = error;
224
+ return { error, orderId: null, success: false };
225
+ }
226
+ VarianceTest.log('Creating store credit order', 'info', { checkoutSessionId });
227
+ try {
228
+ const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/store-credit/order-create', {
229
+ body: {
230
+ checkoutSessionId,
231
+ },
232
+ method: 'POST',
233
+ });
234
+ if (errors.length > 0 || !json) {
235
+ const errorMessage = ((_a = errors[0]) === null || _a === void 0 ? void 0 : _a.message) || 'Failed to create store credit order';
236
+ handleFetch.logError(errorMessage);
237
+ storeCreditStore.error = errorMessage;
238
+ return { error: errorMessage, orderId: null, success: false };
239
+ }
240
+ const orderId = ((_c = (_b = json.checkoutSessionStoreCreditOrderCreate) === null || _b === void 0 ? void 0 : _b.order) === null || _c === void 0 ? void 0 : _c.id) || null;
241
+ storeCreditStore.orderIdCreated = orderId;
242
+ VarianceTest.log('Store credit order created', 'info', { orderId });
243
+ return { error: null, orderId, success: true };
244
+ }
245
+ catch (e) {
246
+ const errorMessage = e instanceof Error ? e.message : 'Failed to create store credit order';
247
+ handleFetch.logError(errorMessage);
248
+ storeCreditStore.error = errorMessage;
249
+ return { error: errorMessage, orderId: null, success: false };
250
+ }
251
+ };
252
+
10
253
  /**
11
254
  * Extract first name and last name from the name string
12
255
  * If first name and last name are provided, use them
@@ -513,19 +756,6 @@ const sortServiceLevelOptionsByAmount = (serviceLevels) => {
513
756
  return sortedServiceLevels;
514
757
  };
515
758
 
516
- const getCheckoutSession = async () => {
517
- if (!localization.storageStore.checkoutSessionId) {
518
- return {
519
- errors: [{ message: 'No checkout session id found' }],
520
- json: null,
521
- };
522
- }
523
- const searchParams = new URLSearchParams();
524
- searchParams.set('checkoutSessionId', localization.storageStore.checkoutSessionId);
525
- const { errors, json } = await handleFetch.handleFetch(`/api/zonos-elements/get-checkout-session?${searchParams.toString()}`);
526
- return { errors, json };
527
- };
528
-
529
759
  /**
530
760
  * Validate checkout session before confirming payment
531
761
  */
@@ -1638,7 +1868,7 @@ const stripeStoreUpdateCheckoutSessionBaseCurrency = async () => {
1638
1868
  /**
1639
1869
  * Update checkout session. Use for updating amount with landed cost id, or update session when cart items change
1640
1870
  */
1641
- const stripeStoreUpdateCheckoutSession = async ({ adjustmentsAmount, cartId, currency, id, itemsAmount, landedCostId, presentmentCountryCode, }) => {
1871
+ const stripeStoreUpdateCheckoutSession = async ({ adjustmentsAmount, cartId, currency, id, itemsAmount, landedCostId, presentmentCountryCode, storeCreditApplication, }) => {
1642
1872
  const varianceTestInput = localization.storageStore.enabledVariantTestKeys || [];
1643
1873
  // No need to set loading state here because this function will be called under the hood to update
1644
1874
  // landed cost id for the section.
@@ -1661,6 +1891,7 @@ const stripeStoreUpdateCheckoutSession = async ({ adjustmentsAmount, cartId, cur
1661
1891
  presentmentCountryCode,
1662
1892
  shipToPartyId: stripeStore.partyShippingId,
1663
1893
  skipPaymentIntent: stripeStore.skipPaymentIntent,
1894
+ storeCreditApplication,
1664
1895
  varianceTestInput,
1665
1896
  },
1666
1897
  method: 'POST',
@@ -1837,6 +2068,7 @@ const { onChange: cartStoreOnChange, reset, state: cartStore, } = zonosStore.cre
1837
2068
  shippingData: null,
1838
2069
  shouldHideDiscountInput: false,
1839
2070
  step: 'customer-info',
2071
+ storeCredit: 0,
1840
2072
  subtotal: 0,
1841
2073
  tabItems: {
1842
2074
  'customer-info': {
@@ -1925,8 +2157,16 @@ const cartStoreCheckItemRestrictions = (itemsWorkflow) => {
1925
2157
  restrictedItems: mappedRestrictedItems,
1926
2158
  };
1927
2159
  };
2160
+ let storeCreditUpdateTimeout = null;
1928
2161
  const cartStoreReset = () => {
1929
2162
  localization.storageStore.checkoutSessionId = null;
2163
+ // clear pending store credit debounce timer
2164
+ if (storeCreditUpdateTimeout) {
2165
+ clearTimeout(storeCreditUpdateTimeout);
2166
+ storeCreditUpdateTimeout = null;
2167
+ }
2168
+ // reset store credit store
2169
+ storeCreditStoreReset();
1930
2170
  // reset cart store
1931
2171
  reset();
1932
2172
  };
@@ -1940,11 +2180,13 @@ const cartStoreUpdateToErrorState = ({ messages, title, }) => {
1940
2180
  };
1941
2181
  };
1942
2182
  const cartStoreApplySubtotals = ({ dutiesTaxesFeesEstimate, method, subtotals, }) => {
2183
+ var _a;
1943
2184
  // update exchange rate so we can use it to display cart items
1944
2185
  cartStore.exchangeRate = subtotals.exchangeRate;
1945
2186
  cartStore.adjustmentTotal = subtotals.adjustments;
1946
2187
  cartStore.dutiesTaxesFees =
1947
2188
  method === 'DAP' ? null : subtotals.landedCostTotal;
2189
+ cartStore.storeCredit = (_a = subtotals.storeCredit) !== null && _a !== void 0 ? _a : 0;
1948
2190
  cartStore.subtotal = subtotals.items;
1949
2191
  cartStore.total = subtotals.total;
1950
2192
  cartStore.currency = subtotals.presentmentCurrencyCode;
@@ -1961,13 +2203,15 @@ const cartStoreHasOneEligibleItem = () => {
1961
2203
  return !!checkItems.find(item => !item.isRestricted);
1962
2204
  };
1963
2205
  const cartStoreSetCheckoutSession = (checkoutSession) => {
1964
- var _a, _b, _c, _d, _e;
2206
+ var _a, _b, _c, _d, _e, _f, _g;
1965
2207
  // update stripe store with updated information
1966
2208
  stripeStore.clientSecret = checkoutSession.clientSecret;
1967
2209
  stripeStore.stripeCustomerSessionClientSecret =
1968
2210
  checkoutSession.customerSessionClientSecret;
1969
2211
  stripeStore.customerProfile = checkoutSession.customerProfile;
1970
2212
  cartStore.checkoutSession = checkoutSession;
2213
+ // Populate store credit balance from checkout session customer profile
2214
+ storeCreditStoreSetBalanceFromSession((_b = (_a = checkoutSession.customerProfile) === null || _a === void 0 ? void 0 : _a.storeCreditBalance) !== null && _b !== void 0 ? _b : null);
1971
2215
  if (!checkoutSession.id) {
1972
2216
  // Log error to track down the issue
1973
2217
  void handleFetch.sendErrorLog({
@@ -1987,10 +2231,10 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
1987
2231
  const availableSelectedVariantTestKeys = localization.filterValidTests(checkoutSession.varianceTestResults || []);
1988
2232
  localization.storageStoreSetEnabledVariantTestKeys(availableSelectedVariantTestKeys);
1989
2233
  // Check if there is a redirect URL in the metadata to override
1990
- const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
2234
+ const externalConfirmationPageURL = ((_e = (_d = (_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _e === void 0 ? void 0 : _e.value) ||
1991
2235
  (
1992
2236
  // Sometimes externalConfirmationPageURL is not in checkoutSession create/update, check if there is a redirect URL in the cart metadata to override
1993
- (_e = (_d = window.Zonos.cartData) === null || _d === void 0 ? void 0 : _d.metadata.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _e === void 0 ? void 0 : _e.value) ||
2237
+ (_g = (_f = window.Zonos.cartData) === null || _f === void 0 ? void 0 : _f.metadata.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _g === void 0 ? void 0 : _g.value) ||
1994
2238
  null;
1995
2239
  if (externalConfirmationPageURL) {
1996
2240
  VarianceTest.log(`Found externalConfirmationPageURL: ${externalConfirmationPageURL}`);
@@ -2261,6 +2505,50 @@ const cartStoreResetTabItems = () => {
2261
2505
  cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { 'customer-info': Object.assign(Object.assign({}, cartStore.tabItems['customer-info']), { isDone: false }), payment: Object.assign(Object.assign({}, cartStore.tabItems.payment), { isDone: false }), shipping: Object.assign(Object.assign({}, cartStore.tabItems.shipping), { isDone: false }) });
2262
2506
  cartStoreResetSelectedShippingOption();
2263
2507
  };
2508
+ const cartStoreUpdateStoreCreditImmediate = async () => {
2509
+ var _a, _b;
2510
+ if (!localization.storageStore.checkoutSessionId) {
2511
+ VarianceTest.log('Could not update store credit without checkout session id', 'info');
2512
+ return;
2513
+ }
2514
+ const selectedLandedCost = cartStore.selectedLandedCost;
2515
+ const currency = cartStore.currency || ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '';
2516
+ const adjustmentsAmount = cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0);
2517
+ const itemsAmount = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
2518
+ const { errors, json } = await stripeStoreUpdateCheckoutSession({
2519
+ adjustmentsAmount,
2520
+ cartId: window.Zonos.cartId,
2521
+ currency,
2522
+ id: localization.storageStore.checkoutSessionId,
2523
+ itemsAmount,
2524
+ landedCostId: selectedLandedCost === null || selectedLandedCost === void 0 ? void 0 : selectedLandedCost.landedCostId,
2525
+ presentmentCountryCode: localization.localizationStore.selectedCountryCode,
2526
+ storeCreditApplication: storeCreditStoreGetInput(),
2527
+ });
2528
+ if (errors.length > 0 || !json) {
2529
+ handleFetch.logError('Error updating checkout session with store credit');
2530
+ return;
2531
+ }
2532
+ // Apply updated subtotals from the response
2533
+ cartStoreApplySubtotals({
2534
+ method: ((_b = json.checkoutSessionUpdate.landedCost) === null || _b === void 0 ? void 0 : _b.method) || 'DDP',
2535
+ subtotals: json.checkoutSessionUpdate.subtotals,
2536
+ });
2537
+ cartStoreSetCheckoutSession(json.checkoutSessionUpdate);
2538
+ };
2539
+ /**
2540
+ * Update the checkout session with the current store credit selection.
2541
+ * Debounced to prevent multiple rapid requests when store changes cascade.
2542
+ */
2543
+ const cartStoreUpdateStoreCredit = () => {
2544
+ if (storeCreditUpdateTimeout) {
2545
+ clearTimeout(storeCreditUpdateTimeout);
2546
+ }
2547
+ storeCreditUpdateTimeout = setTimeout(() => {
2548
+ storeCreditUpdateTimeout = null;
2549
+ void cartStoreUpdateStoreCreditImmediate();
2550
+ }, 300);
2551
+ };
2264
2552
 
2265
2553
  exports.cartStore = cartStore;
2266
2554
  exports.cartStoreClearCheckoutInterval = cartStoreClearCheckoutInterval;
@@ -2275,11 +2563,22 @@ exports.cartStoreSetCheckoutSession = cartStoreSetCheckoutSession;
2275
2563
  exports.cartStoreStartCheckoutInterval = cartStoreStartCheckoutInterval;
2276
2564
  exports.cartStoreUpdateItems = cartStoreUpdateItems;
2277
2565
  exports.cartStoreUpdateSelectedShippingOption = cartStoreUpdateSelectedShippingOption;
2566
+ exports.cartStoreUpdateStoreCredit = cartStoreUpdateStoreCredit;
2278
2567
  exports.cartStoreUpdateToErrorState = cartStoreUpdateToErrorState;
2279
2568
  exports.extractName = extractName;
2280
2569
  exports.getCheckoutSessionBody = getCheckoutSessionBody;
2281
2570
  exports.initStripeElements = initStripeElements;
2282
2571
  exports.sortServiceLevelOptionsByAmount = sortServiceLevelOptionsByAmount;
2572
+ exports.storeCreditStore = storeCreditStore;
2573
+ exports.storeCreditStoreApplyCredit = storeCreditStoreApplyCredit;
2574
+ exports.storeCreditStoreCoversFullAmount = storeCreditStoreCoversFullAmount;
2575
+ exports.storeCreditStoreCreateOrder = storeCreditStoreCreateOrder;
2576
+ exports.storeCreditStoreGetEffectiveAmount = storeCreditStoreGetEffectiveAmount;
2577
+ exports.storeCreditStoreRefreshBalance = storeCreditStoreRefreshBalance;
2578
+ exports.storeCreditStoreReset = storeCreditStoreReset;
2579
+ exports.storeCreditStoreSetAmount = storeCreditStoreSetAmount;
2580
+ exports.storeCreditStoreSetEnabled = storeCreditStoreSetEnabled;
2581
+ exports.storeCreditStoreSetUseFullBalance = storeCreditStoreSetUseFullBalance;
2283
2582
  exports.stripeStore = stripeStore;
2284
2583
  exports.stripeStoreApplyPromoCode = stripeStoreApplyPromoCode;
2285
2584
  exports.stripeStoreAsyncAddressUpdate = stripeStoreAsyncAddressUpdate;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const localization = require('./localization-878ef681.js');
3
+ const localization = require('./localization-be7afc1b.js');
4
4
 
5
5
  /**
6
6
  * Since the backend and the frontend are using the same keys,
@@ -133,7 +133,7 @@ const getZonosQaUrl = () => {
133
133
  return null;
134
134
  }
135
135
  const qaUrl = extractZonosQaUrl(window.location.href);
136
- const cdnUrl = "https://v1.3.249.js.zonos.com";
136
+ const cdnUrl = "https://v1.3.251.js.zonos.com";
137
137
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
138
138
  if (!qaUrl &&
139
139
  (cdnUrl.includes('test.') ||
@@ -381,10 +381,10 @@ const zonosLoadUrl = (() => {
381
381
  return null;
382
382
  })();
383
383
  const startLoadTime = Date.now();
384
- const ZONOS_URL = "https://v1.3.249.js.zonos.com";
385
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.249";
386
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.249";
387
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.249";
384
+ const ZONOS_URL = "https://v1.3.251.js.zonos.com";
385
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.251";
386
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.251";
387
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.251";
388
388
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
389
389
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
390
390
  class Zonos {
@@ -402,7 +402,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
402
402
  ? new URLSearchParams(window.location.search).get('iframeLogType')
403
403
  : null;
404
404
  Zonos.isBigCommerce = false;
405
- Zonos.releaseDate = "1773254826070";
405
+ Zonos.releaseDate = "1775502731069";
406
406
  Zonos.isLegacyCheckout = false;
407
407
  Zonos.googleAnalyticId = null;
408
408
  Zonos.googleAnalyticReady = false;
@@ -425,7 +425,7 @@ Zonos.isNpm = true;
425
425
  Zonos.zonosQaUrl = null;
426
426
  Zonos.zonosQaUrlApi = null;
427
427
  Zonos.trackEventLogs = [];
428
- Zonos.version = `v${"1.3.249"}`;
428
+ Zonos.version = `v${"1.3.251"}`;
429
429
  Zonos.modeAlerted = false;
430
430
  Zonos.cartData = null;
431
431
  Zonos.paypal = null;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-f5a61112.js');
4
- const cart = require('./cart-eca56521.js');
5
- const localization = require('./localization-878ef681.js');
4
+ const cart = require('./cart-77640463.js');
5
+ const localization = require('./localization-be7afc1b.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
8
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-f5a61112.js');
4
- const cart = require('./cart-eca56521.js');
5
- const localization = require('./localization-878ef681.js');
4
+ const cart = require('./cart-77640463.js');
5
+ const localization = require('./localization-be7afc1b.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
8