@zonos/elements 1.3.219 → 1.3.220

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 (274) hide show
  1. package/dist/cjs/{cart-9a2b32e4.js → cart-9a9ae4b9.js} +2 -2
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/{isCollectMobileTablet-7e57fd90.js → isCollectMobileTablet-7a9413e3.js} +12 -9
  4. package/dist/cjs/{localization-b12edb2a.js → localization-0169b27d.js} +1 -1
  5. package/dist/cjs/{paypal-e80871d0.js → paypal-9ee374a0.js} +3 -3
  6. package/dist/cjs/{placeTestOrder-8222fe95.js → placeTestOrder-0dfff170.js} +2 -2
  7. package/dist/cjs/{translationStore-20a6d8bf.js → translationStore-0c67178f.js} +60 -0
  8. package/dist/cjs/zonos-address_11.cjs.entry.js +40 -28
  9. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-banner_2.cjs.entry.js +4 -4
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +11 -14
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
  14. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
  16. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +44 -43
  17. package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
  18. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  19. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +5 -5
  20. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  21. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -11
  23. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +14 -6
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
  28. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  30. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  33. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +0 -3
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
  36. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +6 -0
  37. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +23 -21
  38. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  39. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +3 -0
  40. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  41. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +7 -7
  42. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  43. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  44. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  45. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  46. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  47. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  48. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  49. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  50. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  51. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  52. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  53. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  54. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  55. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  56. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  57. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  58. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  59. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  60. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  61. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  62. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  63. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  64. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  65. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  66. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  67. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  68. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  69. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  70. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  71. package/dist/collection/components/main/zonos-controller.js +1 -1
  72. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  73. package/dist/collection/components/store/checkout/collect.js +10 -7
  74. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  75. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  76. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  77. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  78. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  79. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  80. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  81. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  82. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  83. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  84. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  85. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  86. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  87. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  88. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  89. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  90. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  91. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  92. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  93. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  94. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  95. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  96. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  97. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -3
  98. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +9 -1
  99. package/dist/collection/types/generated/graphql.internal.types.js +10 -0
  100. package/dist/esm/{cart-acf4ebf5.js → cart-b2dd578c.js} +2 -2
  101. package/dist/esm/index.js +7 -7
  102. package/dist/esm/{isCollectMobileTablet-b72b81c5.js → isCollectMobileTablet-7f9a5e2b.js} +12 -9
  103. package/dist/esm/{localization-8646f526.js → localization-d7125e4e.js} +1 -1
  104. package/dist/esm/{paypal-2fa930eb.js → paypal-555bbf1e.js} +3 -3
  105. package/dist/esm/{placeTestOrder-d1ad9cf6.js → placeTestOrder-2d67c1a9.js} +2 -2
  106. package/dist/esm/{translationStore-c9743292.js → translationStore-13502f49.js} +60 -0
  107. package/dist/esm/zonos-address_11.entry.js +40 -28
  108. package/dist/esm/zonos-badge.entry.js +3 -3
  109. package/dist/esm/zonos-banner_2.entry.js +4 -4
  110. package/dist/esm/zonos-button_3.entry.js +3 -3
  111. package/dist/esm/zonos-cart-items_12.entry.js +11 -14
  112. package/dist/esm/zonos-checkout.entry.js +4 -4
  113. package/dist/esm/zonos-collapse.entry.js +2 -2
  114. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
  115. package/dist/esm/zonos-collect-finish_6.entry.js +44 -43
  116. package/dist/esm/zonos-collect.entry.js +5 -5
  117. package/dist/esm/zonos-component.entry.js +1 -1
  118. package/dist/esm/zonos-confirm-dialog_2.entry.js +5 -5
  119. package/dist/esm/zonos-controller.entry.js +4 -4
  120. package/dist/esm/zonos-country-flag.entry.js +2 -2
  121. package/dist/esm/zonos-country-select_4.entry.js +11 -11
  122. package/dist/esm/zonos-empty-state-payment_4.entry.js +14 -6
  123. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  124. package/dist/esm/zonos-hello.entry.js +2 -2
  125. package/dist/esm/zonos-input.entry.js +4 -4
  126. package/dist/esm/zonos-language-select_2.entry.js +6 -6
  127. package/dist/esm/zonos-link.entry.js +1 -1
  128. package/dist/esm/zonos-logo.entry.js +2 -2
  129. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  130. package/dist/esm/zonos-toggle.entry.js +2 -2
  131. package/dist/esm/zonos-tooltip.entry.js +2 -2
  132. package/dist/esm/zonos-v-stack.entry.js +2 -2
  133. package/dist/esm-es5/{cart-acf4ebf5.js → cart-b2dd578c.js} +1 -1
  134. package/dist/esm-es5/index.js +1 -1
  135. package/dist/esm-es5/isCollectMobileTablet-7f9a5e2b.js +1 -0
  136. package/dist/esm-es5/{localization-8646f526.js → localization-d7125e4e.js} +1 -1
  137. package/dist/esm-es5/{paypal-2fa930eb.js → paypal-555bbf1e.js} +2 -2
  138. package/dist/esm-es5/{placeTestOrder-d1ad9cf6.js → placeTestOrder-2d67c1a9.js} +1 -1
  139. package/dist/esm-es5/translationStore-13502f49.js +1 -0
  140. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  141. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  142. package/dist/esm-es5/zonos-banner_2.entry.js +1 -1
  143. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  144. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  145. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  146. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  147. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  148. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  149. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  150. package/dist/esm-es5/zonos-component.entry.js +1 -1
  151. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -1
  152. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  153. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  154. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  155. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  156. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  157. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  158. package/dist/esm-es5/zonos-input.entry.js +1 -1
  159. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  160. package/dist/esm-es5/zonos-link.entry.js +1 -1
  161. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  162. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  163. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  164. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  165. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  166. package/dist/scripts/index.d.ts +5 -4
  167. package/dist/scripts/index.js +1 -1
  168. package/dist/scripts/loadZonos.js +1 -1
  169. package/dist/scripts/zonos.js +1 -1
  170. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +1 -0
  171. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  172. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  173. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  174. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  175. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  176. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  177. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  178. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  179. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  180. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  181. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  182. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  183. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  184. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  185. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  186. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  187. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  188. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  189. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  190. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  191. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +1 -1
  192. package/dist/types/types/generated/graphql.internal.types.d.ts +205 -16
  193. package/dist/types/types/generated/graphql.internal.types.ts +218 -16
  194. package/dist/zonos-elements/index.esm.js +1 -1
  195. package/dist/zonos-elements/{p-d045e2e5.entry.js → p-02667a58.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-c0a54cf6.system.js → p-031d646e.system.js} +1 -1
  197. package/dist/zonos-elements/{p-c3c9b089.entry.js → p-0e07e1d6.entry.js} +1 -1
  198. package/dist/zonos-elements/p-126087a2.system.entry.js +1 -0
  199. package/dist/zonos-elements/{p-03980f76.entry.js → p-14f9bc8c.entry.js} +1 -1
  200. package/dist/zonos-elements/p-27d9abab.js +1 -0
  201. package/dist/zonos-elements/p-2813d72e.system.js +1 -0
  202. package/dist/zonos-elements/{p-10797d2b.system.entry.js → p-295d9c07.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-485416ec.js → p-2a6c964d.js} +1 -1
  204. package/dist/zonos-elements/{p-b12ec9f2.system.entry.js → p-2b3c7c77.system.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-6696617a.system.entry.js → p-2b8897d1.system.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-d351ece6.system.entry.js → p-30432622.system.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-9c0b78bf.system.entry.js → p-3462e9e4.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-23293a0b.entry.js → p-372c2fc5.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-195b33b6.system.entry.js → p-3c1b1be1.system.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-69fd1b88.js → p-40a4266f.js} +1 -1
  211. package/dist/zonos-elements/{p-f74a6b78.system.entry.js → p-421dfb66.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-009c3ac5.system.entry.js → p-4f8563ad.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-3c9714a8.system.entry.js → p-52d35358.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-d26cffba.entry.js → p-567f7de7.entry.js} +1 -1
  215. package/dist/zonos-elements/p-5d9410da.entry.js +1 -0
  216. package/dist/zonos-elements/{p-f129a83b.system.entry.js → p-637b22ee.system.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-61c2c336.entry.js → p-63a42823.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-8ca25e6c.entry.js → p-6b3a0874.entry.js} +1 -1
  219. package/dist/zonos-elements/p-73c1e91f.js +1 -0
  220. package/dist/zonos-elements/{p-909d36bf.entry.js → p-759ef3ca.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-c8784a01.system.entry.js → p-79d8c3f3.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-2c9381be.entry.js → p-7c4e7651.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-70b81bbc.entry.js → p-7d2d2c94.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-e455f060.system.entry.js → p-7e5bd9af.system.entry.js} +1 -1
  225. package/dist/zonos-elements/p-7ecbb2cb.entry.js +1 -0
  226. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  227. package/dist/zonos-elements/{p-f17fde5f.system.js → p-82e88a33.system.js} +1 -1
  228. package/dist/zonos-elements/{p-873b698a.entry.js → p-849b47aa.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-0cec2dd2.system.entry.js → p-8dd47520.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-772ac0b7.js → p-932600b7.js} +1 -1
  231. package/dist/zonos-elements/{p-b1bd9fe7.system.entry.js → p-960e0ab1.system.entry.js} +1 -1
  232. package/dist/zonos-elements/p-9c5b8239.system.js +1 -0
  233. package/dist/zonos-elements/p-9fdd3264.system.entry.js +1 -0
  234. package/dist/zonos-elements/{p-58afbe2b.entry.js → p-a08a005d.entry.js} +1 -1
  235. package/dist/zonos-elements/p-a10de7fb.entry.js +1 -0
  236. package/dist/zonos-elements/p-a49b5e7f.system.entry.js +1 -0
  237. package/dist/zonos-elements/{p-23735db6.entry.js → p-a5b0a636.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-dfb92907.entry.js → p-a77ed1b9.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-750b7f32.system.entry.js → p-a800965d.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-aca272ea.entry.js → p-b3d5bcf9.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-2323ff0f.system.entry.js → p-b669050d.system.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-95461a1b.system.entry.js → p-b9e9b82f.system.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-e2a45188.system.entry.js → p-ba18c5f5.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-106ae0f1.entry.js → p-bbf48b31.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-b5406d26.entry.js → p-c4b3c878.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-2cc031b3.js → p-c7b57886.js} +2 -2
  247. package/dist/zonos-elements/{p-a7204d41.entry.js → p-c803753e.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-29499a5f.entry.js → p-cbb01de9.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-6dd63754.system.js → p-ce15d62d.system.js} +1 -1
  250. package/dist/zonos-elements/{p-1fe5d4da.system.entry.js → p-d291e964.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-07bea979.system.js → p-d3485a03.system.js} +1 -1
  252. package/dist/zonos-elements/{p-f0be0ca9.system.entry.js → p-de626806.system.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-56ee6d4b.system.entry.js → p-e5388438.system.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-0d6c6a38.entry.js → p-e77b6e42.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-d63696ac.system.js → p-ea8aff21.system.js} +1 -1
  256. package/dist/zonos-elements/{p-34a37ce7.system.entry.js → p-eb6a35ce.system.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-60c61982.system.entry.js → p-ee6f8c02.system.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-2a9681b4.entry.js → p-f4fa8720.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-26573347.entry.js → p-fa90adb8.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-bfbc081f.entry.js → p-fe7e2dc4.entry.js} +1 -1
  261. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  262. package/package.json +1 -1
  263. package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +0 -1
  264. package/dist/esm-es5/translationStore-c9743292.js +0 -1
  265. package/dist/zonos-elements/p-5e372fb9.entry.js +0 -1
  266. package/dist/zonos-elements/p-5ff4f9df.system.js +0 -1
  267. package/dist/zonos-elements/p-6761091e.entry.js +0 -1
  268. package/dist/zonos-elements/p-6761286d.js +0 -1
  269. package/dist/zonos-elements/p-6e8aae27.system.entry.js +0 -1
  270. package/dist/zonos-elements/p-81e23f30.system.js +0 -1
  271. package/dist/zonos-elements/p-87e2a777.entry.js +0 -1
  272. package/dist/zonos-elements/p-986ebccc.js +0 -1
  273. package/dist/zonos-elements/p-ddb29c2a.system.entry.js +0 -1
  274. package/dist/zonos-elements/p-eb54ece4.system.entry.js +0 -1
@@ -52,7 +52,7 @@ export class ZonosPaypalPayment {
52
52
  this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
53
53
  }
54
54
  render() {
55
- return (h(Host, { key: 'af7d707c64d3f1b637d5d296d46e59023fff0744', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: '5a387dc0c7ae0ef6492b5f68b548989dd9832380', class: "zonos--payment-paypal-container" })));
55
+ return (h(Host, { key: 'bcf11ef0ceab1d847c237ec26ec604440983c16f', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: 'ce5033f39b2e9644e30fc1e0e35f64e5d9b9730d', class: "zonos--payment-paypal-container" })));
56
56
  }
57
57
  static get is() { return "zonos-paypal-payment"; }
58
58
  static get encapsulation() { return "scoped"; }
@@ -17,7 +17,7 @@ const { reset: collectStoreReset, state: collectStore } = createStore(() => ({
17
17
  shippingAddress: null,
18
18
  }));
19
19
  const collectStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
21
21
  collectStore.isFetchingShippingInfo = true;
22
22
  const response = await handleFetch('/api/zonos-elements/collect/get-shipping-info-by-lc-id', {
23
23
  body: {
@@ -41,14 +41,17 @@ const collectStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
41
41
  collectStore.isFetchingShippingInfo = false;
42
42
  collectStore.shippingAddress = ((_b = response.json) === null || _b === void 0 ? void 0 : _b.shipping) || null;
43
43
  const landedCost = (_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.landedCost;
44
+ const checkoutSessionSubtotals = (_d = cartStore.checkoutSession) === null || _d === void 0 ? void 0 : _d.subtotals;
45
+ const amountTotalPaid = (((_e = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _e === void 0 ? void 0 : _e.shipping) || 0) +
46
+ (((_f = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _f === void 0 ? void 0 : _f.items) || 0);
47
+ // Convert the amount to the presentment currency
44
48
  collectStore.amountTotalPaid =
45
- (((_d = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _d === void 0 ? void 0 : _d.shipping) || 0) +
46
- (((_e = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _e === void 0 ? void 0 : _e.items) || 0);
49
+ amountTotalPaid * (((_g = checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.exchangeRate) === null || _g === void 0 ? void 0 : _g.rate) || 1);
47
50
  collectStore.amountDutyTaxFeeTotal =
48
- (((_f = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _f === void 0 ? void 0 : _f.duties) || 0) +
49
- (((_g = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _g === void 0 ? void 0 : _g.taxes) || 0) +
50
- (((_h = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _h === void 0 ? void 0 : _h.fees) || 0);
51
- collectStore.originCompanyName = ((_k = (_j = response.json) === null || _j === void 0 ? void 0 : _j.origin) === null || _k === void 0 ? void 0 : _k.companyName) || null;
51
+ ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.duties) || 0) +
52
+ ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.taxes) || 0) +
53
+ ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.fees) || 0);
54
+ collectStore.originCompanyName = ((_j = (_h = response.json) === null || _h === void 0 ? void 0 : _h.origin) === null || _j === void 0 ? void 0 : _j.companyName) || null;
52
55
  if (collectStore.amountTotalPaid === 0) {
53
56
  void sendErrorLog({
54
57
  endpoint: 'COLLECT_NO_TOTAL_PAID',
@@ -632,6 +632,9 @@ export const stringsArabic = {
632
632
  'Update your address': {
633
633
  value: 'قم بتحديث عنوانك',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'عرض الإيصال',
637
+ },
635
638
  Village: {
636
639
  value: 'قرية',
637
640
  },
@@ -633,6 +633,9 @@ export const stringsBase = {
633
633
  'Update your address': {
634
634
  value: 'Update your address',
635
635
  },
636
+ 'View receipt': {
637
+ value: 'View receipt',
638
+ },
636
639
  Village: {
637
640
  value: 'Village',
638
641
  },
@@ -632,6 +632,9 @@ export const stringsChinese = {
632
632
  'Update your address': {
633
633
  value: '更新您的地址',
634
634
  },
635
+ 'View receipt': {
636
+ value: '查看收据',
637
+ },
635
638
  Village: {
636
639
  value: '村庄',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsDanish = {
632
632
  'Update your address': {
633
633
  value: 'Opdater din adresse',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Se kvittering',
637
+ },
635
638
  Village: {
636
639
  value: 'Landsby',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsDutch = {
632
632
  'Update your address': {
633
633
  value: 'Update uw adres',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Bekijk bon',
637
+ },
635
638
  Village: {
636
639
  value: 'Dorp',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsFrench = {
632
632
  'Update your address': {
633
633
  value: 'Mettez à jour votre adresse',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Voir le reçu',
637
+ },
635
638
  Village: {
636
639
  value: 'Village',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsGerman = {
632
632
  'Update your address': {
633
633
  value: 'Aktualisieren Sie Ihre Adresse',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Beleg anzeigen',
637
+ },
635
638
  Village: {
636
639
  value: 'Dorf',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsHebrew = {
632
632
  'Update your address': {
633
633
  value: 'עדכן את הכתובת שלך',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'הצג קבלה',
637
+ },
635
638
  Village: {
636
639
  value: 'כפר',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsIndonesian = {
632
632
  'Update your address': {
633
633
  value: 'Perbarui alamat Anda',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Lihat tanda terima',
637
+ },
635
638
  Village: {
636
639
  value: 'Desa',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsItalian = {
632
632
  'Update your address': {
633
633
  value: 'Aggiorna il tuo indirizzo',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Visualizza ricevuta',
637
+ },
635
638
  Village: {
636
639
  value: 'Villaggio',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsJapanese = {
632
632
  'Update your address': {
633
633
  value: '住所を更新する',
634
634
  },
635
+ 'View receipt': {
636
+ value: '領収書を見る',
637
+ },
635
638
  Village: {
636
639
  value: '村',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsKorean = {
632
632
  'Update your address': {
633
633
  value: '주소를 업데이트하세요',
634
634
  },
635
+ 'View receipt': {
636
+ value: '영수증 보기',
637
+ },
635
638
  Village: {
636
639
  value: '마을',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsNorwegian = {
632
632
  'Update your address': {
633
633
  value: 'Oppdater adressen din',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Vis kvittering',
637
+ },
635
638
  Village: {
636
639
  value: 'Landsby',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsPolish = {
632
632
  'Update your address': {
633
633
  value: 'Zaktualizuj swój adres',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Zobacz paragon',
637
+ },
635
638
  Village: {
636
639
  value: 'Wioska',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsPortuguese = {
632
632
  'Update your address': {
633
633
  value: 'Atualize seu endereço',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Ver recibo',
637
+ },
635
638
  Village: {
636
639
  value: 'Aldeia',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsRussian = {
632
632
  'Update your address': {
633
633
  value: 'Обновите ваш адрес',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Просмотреть квитанцию',
637
+ },
635
638
  Village: {
636
639
  value: 'Деревня',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsSpanish = {
632
632
  'Update your address': {
633
633
  value: 'Actualiza tu dirección',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Ver recibo',
637
+ },
635
638
  Village: {
636
639
  value: 'Pueblo',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsSwedish = {
632
632
  'Update your address': {
633
633
  value: 'Uppdatera din adress',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Visa kvitto',
637
+ },
635
638
  Village: {
636
639
  value: 'By',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsTurkish = {
632
632
  'Update your address': {
633
633
  value: 'Adresini güncelle',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Makbuzu görüntüle',
637
+ },
635
638
  Village: {
636
639
  value: 'Köy',
637
640
  },
@@ -632,6 +632,9 @@ export const stringsVietnamese = {
632
632
  'Update your address': {
633
633
  value: 'Cập nhật địa chỉ của bạn',
634
634
  },
635
+ 'View receipt': {
636
+ value: 'Xem biên lai',
637
+ },
635
638
  Village: {
636
639
  value: 'Làng',
637
640
  },
@@ -319,11 +319,11 @@ export class ZonosAddress {
319
319
  this.isAddressFilled = true;
320
320
  }
321
321
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
322
- return (h(Host, { key: 'ef89e6e083ce9c9bed0bed4653cbc40d451456c0', class: classes([
322
+ return (h(Host, { key: '15928518601e48825589ce4de4580263fec6a745', class: classes([
323
323
  'zonos--address',
324
324
  'zonos--elements',
325
325
  `zonos--${this.type}-address`,
326
- ]) }, this.titleText && (h("zonos-text", { key: '62e73e9284617c5e4f78f25f7160bb4e23246554', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: 'b268422f6e4aa09e74ebac9d3a4c0d7a6594e95e', class: "zonos--address-component" })));
326
+ ]) }, this.titleText && (h("zonos-text", { key: '2e666ed81597ac95d3de575a2d901d083e9100cc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '51aa6d2415bf6c7e067d0565b11a0d2c0629200b', class: "zonos--address-component" })));
327
327
  }
328
328
  static get is() { return "zonos-address"; }
329
329
  static get encapsulation() { return "scoped"; }
@@ -78,9 +78,9 @@ export class ZonosAddressSuggestions {
78
78
  return segments;
79
79
  }
80
80
  render() {
81
- return (h(Host, { key: '3f22f5bcf968d02e34fe46101b8ea4cf4e89051f', class: "zonos--address-suggestions", role: "group", style: {
81
+ return (h(Host, { key: '8ef1b971b88cd2280c40e69e1f6824f64e618467', class: "zonos--address-suggestions", role: "group", style: {
82
82
  '--zonos--border-radius': getBorderRadius(),
83
- } }, h("ul", { key: 'fc77bda0480b2b2ef0d2b89cc36413d56f84f90b', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '0981dd0c7e522605417fb72c61d88bde629fada4', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: 'c307293f2d06cb7ea0e9c8d6ee0dd9b017ff2e5e', class: "powered-by-container" }, h("zonos-text", { key: 'a0776ea17615339f10ea7d623a40d9de90fcdbb4', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '6ffdc7d0475a8718372c760b51f2128b0b81e78e', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '6c168c20f1906ba4658998c7bd1e0b0eba860da1', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
83
+ } }, h("ul", { key: '383e615d02815aad0f06d468dfcfbef3640fd5f5', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'f2e6b766f567b0933263e19666e440cf692f248c', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: 'd629272b98461726f7eda75fde4cf1070946cd70', class: "powered-by-container" }, h("zonos-text", { key: '5b5591b04da2034b783f61394dbdc8f172484972', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '45352a7ba4314ee1d68c2a53bb722368182283ee', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '506450cf69ef74cde9ed5159633040701994f455', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
84
84
  this.localSuggestions = [];
85
85
  } }))), this.localSuggestions.map(suggestion => (
86
86
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -894,10 +894,10 @@ export class ZonosAddress {
894
894
  this.country = localizationStore.selectedCountryCode;
895
895
  }
896
896
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
897
- return (h(Host, { key: '29e26b9b269ea277ae508671f0c63483910ad50b', class: classes([
897
+ return (h(Host, { key: 'dcddfc6f0c63371c49f223f86a6c00df7ab30eed', class: classes([
898
898
  'zonos--address zonos--elements',
899
899
  `zonos--${this.type}-address`,
900
- ]) }, h("zonos-text", { key: 'db6f6cb94da02e5f2c9aca8112ab20e11148281e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
900
+ ]) }, h("zonos-text", { key: '70139b5412028d5dba2cc51ee8e3a81e182fd19a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
901
901
  }
902
902
  static get is() { return "zonos-custom-address"; }
903
903
  static get encapsulation() { return "scoped"; }
@@ -47,10 +47,10 @@ export class ZonosLinkAuthentication {
47
47
  watchIsStagingMode() {
48
48
  // Wait for the DOM to be ready before re-initializing Link element
49
49
  setTimeout(() => {
50
- this.watchInitStripe();
50
+ void this.watchInitStripe();
51
51
  }, 0);
52
52
  }
53
- watchInitStripe() {
53
+ async watchInitStripe() {
54
54
  if (!this.stripe || !stripeStore.stripeElements) {
55
55
  return;
56
56
  }
@@ -118,9 +118,21 @@ export class ZonosLinkAuthentication {
118
118
  }
119
119
  componentDidLoad() {
120
120
  this.storeUnsubscribeList = [
121
- stripeStoreOnChange('stripeElements', () => {
121
+ stripeStoreOnChange('stripeElements', async () => {
122
+ // Wait for the stripe elements to be ready with the new client secret
123
+ await new Promise(resolve => setTimeout(resolve, 1));
122
124
  void this.watchInitStripe();
123
125
  }),
126
+ stripeStoreOnChange('clientSecret', async () => {
127
+ // Wait for the stripe elements to be ready with the new client secret
128
+ await new Promise(resolve => setTimeout(resolve, 1));
129
+ this.clientSecret = stripeStore.clientSecret;
130
+ }),
131
+ stripeStoreOnChange('stripe', async () => {
132
+ // Wait for the stripe elements to be ready with the new client secret
133
+ await new Promise(resolve => setTimeout(resolve, 1));
134
+ this.stripe = stripeStore.stripe;
135
+ }),
124
136
  ];
125
137
  // @Watch doesn't get trigger on initial load
126
138
  this.watchInitStripe();
@@ -29,12 +29,20 @@ export class ZonosPayment {
29
29
  }
30
30
  }
31
31
  watchInitStripe() {
32
+ var _a;
32
33
  if (!this.stripeElements) {
33
34
  return;
34
35
  }
35
36
  // Create and mount the Authentication Element in ${type} mode
36
37
  const paymentElement = stripeStore.stripePaymentElement ||
37
38
  this.stripeElements.create('payment', {
39
+ defaultValues: {
40
+ billingDetails: {
41
+ address: {
42
+ country: (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country,
43
+ },
44
+ },
45
+ },
38
46
  layout: 'tabs',
39
47
  });
40
48
  const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
@@ -57,7 +65,7 @@ export class ZonosPayment {
57
65
  }
58
66
  render() {
59
67
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
60
- return (h(Host, { key: '1828cd97531009303635ded8725233c07e45fba3', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '899f8ef9f1e008a8d613e54fd1196c1bab7cefdc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '9e9b67bd29a4caf71a6f34fba03c67cbff03b0c7', class: "zonos--payment-component" }), h("div", { key: '1aeb4114ca6eac6541e0bafe72077093bdfb777e', class: "zonos--payment-paypal-container" })));
68
+ return (h(Host, { key: 'c0b27f25785a9f6de2705e16d97f1bf5f7bcb0a4', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '1cfdb16f94a5219882da9da013a6e2de6a6b3c3f', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'bb5ac07b4c32f2469f4825426160542d9729d332', class: "zonos--payment-component" }), h("div", { key: '34f805b56fa151e8a3102361df9fb8b3e636dc75', class: "zonos--payment-paypal-container" })));
61
69
  }
62
70
  static get is() { return "zonos-payment"; }
63
71
  static get encapsulation() { return "scoped"; }
@@ -1309,6 +1309,7 @@ export const emailTemplateType = {
1309
1309
  ManualClassificationExport: 'MANUAL_CLASSIFICATION_EXPORT',
1310
1310
  MerchantOrderConfirmation: 'MERCHANT_ORDER_CONFIRMATION',
1311
1311
  OrderCanceled: 'ORDER_CANCELED',
1312
+ OrderCollectConfirmation: 'ORDER_COLLECT_CONFIRMATION',
1312
1313
  OrderConfirmation: 'ORDER_CONFIRMATION',
1313
1314
  OrderReceipt: 'ORDER_RECEIPT',
1314
1315
  OrderShipped: 'ORDER_SHIPPED',
@@ -2998,6 +2999,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2998
2999
  fulfillmentCenter(variables, requestHeaders) {
2999
3000
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'fulfillmentCenter', 'query');
3000
3001
  },
3002
+ getCartForCollectReceipt(variables, requestHeaders) {
3003
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartForCollectReceipt', 'query');
3004
+ },
3001
3005
  getCartInfo(variables, requestHeaders) {
3002
3006
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartInfo', 'query');
3003
3007
  },
@@ -3028,6 +3032,12 @@ export function getSdk(client, withWrapper = defaultWrapper) {
3028
3032
  getPartyInfoByLandedCostId(variables, requestHeaders) {
3029
3033
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getPartyInfoByLandedCostId', 'query');
3030
3034
  },
3035
+ getReceiptCheckoutSession(variables, requestHeaders) {
3036
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getReceiptCheckoutSession', 'query');
3037
+ },
3038
+ getReceiptOrder(variables, requestHeaders) {
3039
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getReceiptOrder', 'query');
3040
+ },
3031
3041
  getTaxIdByCountry(variables, requestHeaders) {
3032
3042
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getTaxIdByCountry', 'query');
3033
3043
  },
@@ -1,6 +1,6 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-c456b933.js';
2
- import { s as storageStore, l as localizationStore, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-8646f526.js';
3
- import { t as translate } from './translationStore-c9743292.js';
2
+ import { s as storageStore, l as localizationStore, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-d7125e4e.js';
3
+ import { t as translate } from './translationStore-13502f49.js';
4
4
  import { l as log, f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, d as allLogs, b as logError, j as jsonParse } from './handleFetch-99218189.js';
5
5
  import { i as isDarkColor } from './isDarkColor-1f58b6be.js';
6
6
  import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
package/dist/esm/index.js CHANGED
@@ -129,7 +129,7 @@ const getZonosQaUrl = () => {
129
129
  return null;
130
130
  }
131
131
  const qaUrl = extractZonosQaUrl(window.location.href);
132
- const cdnUrl = "https://v1.3.219.js.zonos.com";
132
+ const cdnUrl = "https://v1.3.220.js.zonos.com";
133
133
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
134
134
  if (!qaUrl &&
135
135
  (cdnUrl.includes('test.') ||
@@ -376,10 +376,10 @@ const zonosLoadUrl = (() => {
376
376
  }
377
377
  return null;
378
378
  })();
379
- const ZONOS_URL = "https://v1.3.219.js.zonos.com";
380
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.219";
381
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.219";
382
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.219";
379
+ const ZONOS_URL = "https://v1.3.220.js.zonos.com";
380
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.220";
381
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.220";
382
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.220";
383
383
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
384
384
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
385
385
  class Zonos {
@@ -397,7 +397,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
397
397
  ? new URLSearchParams(window.location.search).get('iframeLogType')
398
398
  : null;
399
399
  Zonos.isBigCommerce = false;
400
- Zonos.releaseDate = "1751052889604";
400
+ Zonos.releaseDate = "1751901283853";
401
401
  Zonos.isLegacyCheckout = false;
402
402
  Zonos.domain = typeof window !== 'undefined'
403
403
  ? // domain that embeds the iframe
@@ -416,7 +416,7 @@ Zonos.isNpm = true;
416
416
  Zonos.zonosQaUrl = null;
417
417
  Zonos.zonosQaUrlApi = null;
418
418
  Zonos.trackEventLogs = [];
419
- Zonos.version = `v${"1.3.219"}`;
419
+ Zonos.version = `v${"1.3.220"}`;
420
420
  Zonos.modeAlerted = false;
421
421
  Zonos.cartData = null;
422
422
  Zonos.paypal = null;
@@ -1,6 +1,6 @@
1
1
  import { c as createStore, z as zonosStore } from './zonosStore-c456b933.js';
2
- import { c as stripeStore, B as stripeStoreBuildAddressForPartyCreate, e as cartStore, C as cartStoreUpdateSelectedShippingOption } from './cart-acf4ebf5.js';
3
- import { s as storageStore } from './localization-8646f526.js';
2
+ import { c as stripeStore, B as stripeStoreBuildAddressForPartyCreate, e as cartStore, C as cartStoreUpdateSelectedShippingOption } from './cart-b2dd578c.js';
3
+ import { s as storageStore } from './localization-d7125e4e.js';
4
4
  import { h as handleFetch, s as sendErrorLog, d as allLogs, b as logError } from './handleFetch-99218189.js';
5
5
 
6
6
  const { reset: collectStoreReset, state: collectStore } = createStore(() => ({
@@ -13,7 +13,7 @@ const { reset: collectStoreReset, state: collectStore } = createStore(() => ({
13
13
  shippingAddress: null,
14
14
  }));
15
15
  const collectStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
17
17
  collectStore.isFetchingShippingInfo = true;
18
18
  const response = await handleFetch('/api/zonos-elements/collect/get-shipping-info-by-lc-id', {
19
19
  body: {
@@ -37,14 +37,17 @@ const collectStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
37
37
  collectStore.isFetchingShippingInfo = false;
38
38
  collectStore.shippingAddress = ((_b = response.json) === null || _b === void 0 ? void 0 : _b.shipping) || null;
39
39
  const landedCost = (_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.landedCost;
40
+ const checkoutSessionSubtotals = (_d = cartStore.checkoutSession) === null || _d === void 0 ? void 0 : _d.subtotals;
41
+ const amountTotalPaid = (((_e = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _e === void 0 ? void 0 : _e.shipping) || 0) +
42
+ (((_f = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _f === void 0 ? void 0 : _f.items) || 0);
43
+ // Convert the amount to the presentment currency
40
44
  collectStore.amountTotalPaid =
41
- (((_d = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _d === void 0 ? void 0 : _d.shipping) || 0) +
42
- (((_e = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _e === void 0 ? void 0 : _e.items) || 0);
45
+ amountTotalPaid * (((_g = checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.exchangeRate) === null || _g === void 0 ? void 0 : _g.rate) || 1);
43
46
  collectStore.amountDutyTaxFeeTotal =
44
- (((_f = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _f === void 0 ? void 0 : _f.duties) || 0) +
45
- (((_g = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _g === void 0 ? void 0 : _g.taxes) || 0) +
46
- (((_h = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _h === void 0 ? void 0 : _h.fees) || 0);
47
- collectStore.originCompanyName = ((_k = (_j = response.json) === null || _j === void 0 ? void 0 : _j.origin) === null || _k === void 0 ? void 0 : _k.companyName) || null;
47
+ ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.duties) || 0) +
48
+ ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.taxes) || 0) +
49
+ ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.fees) || 0);
50
+ collectStore.originCompanyName = ((_j = (_h = response.json) === null || _h === void 0 ? void 0 : _h.origin) === null || _j === void 0 ? void 0 : _j.companyName) || null;
48
51
  if (collectStore.amountTotalPaid === 0) {
49
52
  void sendErrorLog({
50
53
  endpoint: 'COLLECT_NO_TOTAL_PAID',
@@ -1,7 +1,7 @@
1
1
  import { c as createStore, z as zonosStore } from './zonosStore-c456b933.js';
2
2
  import { l as log, j as jsonParse, h as handleFetch, b as logError } from './handleFetch-99218189.js';
3
3
  import { a as availableTestKeys } from './VarianceTest-fef2d958.js';
4
- import { a as translationStoreUpdateLanguage } from './translationStore-c9743292.js';
4
+ import { a as translationStoreUpdateLanguage } from './translationStore-13502f49.js';
5
5
 
6
6
  /**
7
7
  * Check if the response contains at least one available test key that we support
@@ -1,7 +1,7 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-c456b933.js';
2
- import { t as trackConversionEvent, z as validateCheckoutSession, c as stripeStore, e as cartStore, v as stripeStoreHandleInventoryCheck, r as cartStoreNextStep, j as cartStoreClearCheckoutInterval } from './cart-acf4ebf5.js';
3
- import { s as storageStore } from './localization-8646f526.js';
4
- import { t as translate } from './translationStore-c9743292.js';
2
+ import { t as trackConversionEvent, z as validateCheckoutSession, c as stripeStore, e as cartStore, v as stripeStoreHandleInventoryCheck, r as cartStoreNextStep, j as cartStoreClearCheckoutInterval } from './cart-b2dd578c.js';
3
+ import { s as storageStore } from './localization-d7125e4e.js';
4
+ import { t as translate } from './translationStore-13502f49.js';
5
5
  import { h as handleFetch, l as log, b as logError, j as jsonParse } from './handleFetch-99218189.js';
6
6
  import { t as tinycolor } from './isDarkColor-1f58b6be.js';
7
7
 
@@ -1,5 +1,5 @@
1
- import { e as cartStore } from './cart-acf4ebf5.js';
2
- import { d as currencyFormat, s as storageStore } from './localization-8646f526.js';
1
+ import { e as cartStore } from './cart-b2dd578c.js';
2
+ import { d as currencyFormat, s as storageStore } from './localization-d7125e4e.js';
3
3
  import { b as logError, h as handleFetch } from './handleFetch-99218189.js';
4
4
 
5
5
  const getDisplayCurrency = () => {