@zonos/elements 1.3.143 → 1.3.145

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 (342) hide show
  1. package/dist/cjs/{CheckoutConfig-eaaf62a1.js → CheckoutConfig-d25d548d.js} +13 -3
  2. package/dist/cjs/{cart-6ac8dc06.js → cart-9d5e2816.js} +296 -41
  3. package/dist/cjs/{createCustomEvent-3e982e57.js → createCustomEvent-7b6fad95.js} +0 -3
  4. package/dist/cjs/{getBorderRadius-f97c99ad.js → getBorderRadius-7d0772bf.js} +1 -1
  5. package/dist/cjs/{handleFetch-864d3c53.js → handleFetch-3673a0c2.js} +30 -1
  6. package/dist/cjs/{index-b678ce0c.js → index-2f90486e.js} +209 -157
  7. package/dist/cjs/index.cjs.js +12 -11
  8. package/dist/cjs/{isDarkColor-434d71dd.js → isDarkColor-2acf30d1.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{paypal-ea8b4ca0.js → paypal-f9015045.js} +4 -4
  11. package/dist/cjs/zonos-address_8.cjs.entry.js +96 -18
  12. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +128 -30
  17. package/dist/cjs/zonos-checkout.cjs.entry.js +47 -27
  18. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-controller.cjs.entry.js +31 -10
  21. package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
  22. package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
  23. package/dist/cjs/zonos-elements.cjs.js +3 -3
  24. package/dist/cjs/{zonos-notification_3.cjs.entry.js → zonos-empty-state-payment_4.cjs.entry.js} +86 -8
  25. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
  26. package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
  29. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  31. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  33. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
  35. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  36. package/dist/cjs/{zonosStore-8971eb65.js → zonosStore-46809186.js} +1 -1
  37. package/dist/collection/collection-manifest.json +2 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +5 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -2
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -4
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +2 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +4 -0
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +34 -6
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -0
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +109 -18
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateDarkIcon.svg +22 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateLightIcon.svg +22 -0
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.css +51 -0
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +90 -0
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +73 -18
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +10 -0
  52. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +4 -0
  53. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -0
  54. package/dist/collection/components/common/zonos-badge/zonos-badge.js +18 -2
  55. package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -0
  56. package/dist/collection/components/common/zonos-button/zonos-button.js +30 -0
  57. package/dist/collection/components/common/zonos-card/zonos-card.js +20 -4
  58. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +14 -0
  59. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +4 -0
  60. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +4 -0
  61. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +22 -0
  62. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +4 -0
  63. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -0
  64. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -0
  65. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +26 -0
  66. package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -0
  67. package/dist/collection/components/common/zonos-input/zonos-input.js +12 -0
  68. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -0
  69. package/dist/collection/components/common/zonos-link/zonos-link.js +8 -0
  70. package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -0
  71. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +6 -0
  72. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +4 -0
  73. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +11 -1
  74. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -0
  75. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -3
  76. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +52 -8
  77. package/dist/collection/components/common/zonos-text/zonos-text.js +8 -0
  78. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +4 -0
  79. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +4 -0
  80. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -0
  81. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +10 -2
  82. package/dist/collection/components/component-template/zonos-component/zonos-component.js +6 -0
  83. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +7 -1
  84. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +7 -1
  85. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +14 -2
  86. package/dist/collection/components/main/zonos-controller.js +30 -5
  87. package/dist/collection/components/store/checkout/cart.js +3 -0
  88. package/dist/collection/components/store/checkout/stripe.js +112 -39
  89. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  90. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  91. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  92. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  93. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  94. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  95. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  96. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  97. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  98. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  99. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  100. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  101. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  102. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  103. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  104. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  105. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  106. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  107. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  108. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  109. package/dist/collection/components/stripe/zonos-address/zonos-address.js +6 -0
  110. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +84 -3
  111. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -1
  112. package/dist/collection/components/utils/api/getCheckoutSession.js +1 -1
  113. package/dist/collection/components/utils/api/placeTestOrder.js +40 -0
  114. package/dist/collection/components/utils/checkout/getIsStagingMode.js +1 -0
  115. package/dist/collection/components/utils/checkout/getIsTestMode.js +5 -1
  116. package/dist/collection/components/utils/handleFetch.js +22 -1
  117. package/dist/collection/components/utils/validateEmailValue.js +4 -0
  118. package/dist/collection/scripts/_getTempCartById.js +2 -2
  119. package/dist/collection/scripts/_getWithTestPublicCredential.js +5 -2
  120. package/dist/collection/scripts/cart/_getIsValidCartId.js +11 -0
  121. package/dist/collection/types/checkout/api/PlaceTestOrder.js +1 -0
  122. package/dist/collection/types/generated/graphql.internal.types.js +13 -1
  123. package/dist/collection/types/index.js +1 -0
  124. package/dist/esm/{CheckoutConfig-262008fe.js → CheckoutConfig-573bd959.js} +13 -3
  125. package/dist/esm/{cart-acba54d0.js → cart-887f7d66.js} +296 -41
  126. package/dist/esm/{createCustomEvent-31a792d3.js → createCustomEvent-58159025.js} +1 -3
  127. package/dist/esm/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
  128. package/dist/esm/{handleFetch-badf4543.js → handleFetch-b4633675.js} +29 -2
  129. package/dist/esm/{index-986b5ff2.js → index-d82f06f2.js} +209 -157
  130. package/dist/esm/index.js +13 -12
  131. package/dist/esm/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
  132. package/dist/esm/loader.js +3 -3
  133. package/dist/esm/{paypal-3401f757.js → paypal-6fd5749b.js} +4 -4
  134. package/dist/esm/zonos-address_8.entry.js +96 -18
  135. package/dist/esm/zonos-badge.entry.js +2 -2
  136. package/dist/esm/zonos-banner.entry.js +2 -2
  137. package/dist/esm/zonos-button_3.entry.js +4 -4
  138. package/dist/esm/zonos-card.entry.js +3 -3
  139. package/dist/esm/zonos-cart-items_13.entry.js +126 -28
  140. package/dist/esm/zonos-checkout.entry.js +45 -25
  141. package/dist/esm/zonos-collapse.entry.js +2 -2
  142. package/dist/esm/zonos-component.entry.js +1 -1
  143. package/dist/esm/zonos-controller.entry.js +31 -10
  144. package/dist/esm/zonos-country-flag.entry.js +6 -6
  145. package/dist/esm/zonos-country-select_4.entry.js +6 -6
  146. package/dist/esm/zonos-elements.js +4 -4
  147. package/dist/esm/{zonos-notification_3.entry.js → zonos-empty-state-payment_4.entry.js} +86 -9
  148. package/dist/esm/zonos-hello-dialog.entry.js +7 -7
  149. package/dist/esm/zonos-hello.entry.js +6 -6
  150. package/dist/esm/zonos-input.entry.js +3 -3
  151. package/dist/esm/zonos-language-select_2.entry.js +6 -6
  152. package/dist/esm/zonos-link.entry.js +1 -1
  153. package/dist/esm/zonos-logo.entry.js +2 -2
  154. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  155. package/dist/esm/zonos-text.entry.js +2 -2
  156. package/dist/esm/zonos-toggle.entry.js +2 -2
  157. package/dist/esm/zonos-tooltip.entry.js +1 -1
  158. package/dist/esm/zonos-v-stack.entry.js +2 -2
  159. package/dist/esm/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
  160. package/dist/esm-es5/CheckoutConfig-573bd959.js +1 -0
  161. package/dist/esm-es5/cart-887f7d66.js +1 -0
  162. package/dist/esm-es5/createCustomEvent-58159025.js +1 -0
  163. package/dist/esm-es5/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
  164. package/dist/esm-es5/handleFetch-b4633675.js +1 -0
  165. package/dist/esm-es5/index-d82f06f2.js +2 -0
  166. package/dist/esm-es5/index.js +1 -1
  167. package/dist/esm-es5/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
  168. package/dist/esm-es5/loader.js +1 -1
  169. package/dist/esm-es5/{paypal-3401f757.js → paypal-6fd5749b.js} +1 -1
  170. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  171. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  172. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  173. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  174. package/dist/esm-es5/zonos-card.entry.js +1 -1
  175. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  176. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  177. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  178. package/dist/esm-es5/zonos-component.entry.js +1 -1
  179. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  180. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  181. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  182. package/dist/esm-es5/zonos-elements.js +1 -1
  183. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -0
  184. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  185. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  186. package/dist/esm-es5/zonos-input.entry.js +1 -1
  187. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  188. package/dist/esm-es5/zonos-link.entry.js +1 -1
  189. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  190. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  191. package/dist/esm-es5/zonos-text.entry.js +1 -1
  192. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  193. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  194. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  195. package/dist/esm-es5/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
  196. package/dist/scripts/index.d.ts +61 -0
  197. package/dist/scripts/index.js +1 -1
  198. package/dist/scripts/loadZonos.js +1 -1
  199. package/dist/scripts/zonos.js +1 -1
  200. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  201. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +18 -0
  202. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.d.ts +13 -0
  203. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
  204. package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +7 -3
  205. package/dist/types/components/main/zonos-controller.d.ts +1 -0
  206. package/dist/types/components/store/checkout/cart.d.ts +5 -0
  207. package/dist/types/components/store/checkout/stripe.d.ts +8 -2
  208. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  209. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  210. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  211. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  212. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  213. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  214. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  215. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  216. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  217. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  218. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  219. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  220. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  221. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  222. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  223. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  224. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  225. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  226. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  227. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  228. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +6 -0
  229. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  230. package/dist/types/components/utils/api/placeTestOrder.d.ts +7 -0
  231. package/dist/types/components/utils/checkout/getIsStagingMode.d.ts +1 -0
  232. package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -1
  233. package/dist/types/components/utils/validateEmailValue.d.ts +1 -0
  234. package/dist/types/components.d.ts +61 -0
  235. package/dist/types/types/checkout/api/CheckoutSession.d.ts +8 -2
  236. package/dist/types/types/checkout/api/PlaceTestOrder.d.ts +7 -0
  237. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  238. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  239. package/dist/types/types/generated/graphql.internal.types.d.ts +87 -12
  240. package/dist/types/types/generated/graphql.internal.types.ts +104 -14
  241. package/dist/types/types/index.d.ts +1 -0
  242. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  243. package/dist/zonos-elements/index.esm.js +1 -1
  244. package/dist/zonos-elements/{p-d3867033.entry.js → p-0028d158.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-54058b57.entry.js → p-05013308.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-9e84f647.system.entry.js → p-0e9826d2.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-c0164a3c.system.js → p-12546668.system.js} +1 -1
  248. package/dist/zonos-elements/p-18e5b741.system.js +1 -0
  249. package/dist/zonos-elements/{p-f2d07062.entry.js → p-1d466ac6.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-654fc23d.system.entry.js → p-2e6265cc.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-36dfc7ac.system.js → p-32912caf.system.js} +1 -1
  252. package/dist/zonos-elements/{p-fc4658a6.entry.js → p-36f97fd9.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-8ac02349.system.entry.js → p-3a213429.system.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-e6554a6f.system.entry.js → p-3aa4841a.system.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-2ab5e362.system.entry.js → p-3bd17598.system.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-a13d5957.system.entry.js → p-3d221556.system.entry.js} +1 -1
  257. package/dist/zonos-elements/p-3f282167.system.entry.js +1 -0
  258. package/dist/zonos-elements/{p-381874b0.system.entry.js → p-41e26cc4.system.entry.js} +1 -1
  259. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -0
  260. package/dist/zonos-elements/p-49b8760c.system.entry.js +1 -0
  261. package/dist/zonos-elements/p-4caffd96.system.js +2 -0
  262. package/dist/zonos-elements/{p-0ab29580.entry.js → p-4d353108.entry.js} +1 -1
  263. package/dist/zonos-elements/p-595f5dd2.js +1 -0
  264. package/dist/zonos-elements/{p-a4f045d4.js → p-5e4b6b77.js} +1 -1
  265. package/dist/zonos-elements/{p-4c7f0417.entry.js → p-5e76c269.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-2761ad55.system.entry.js → p-619c07c6.system.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-9d7a860c.entry.js → p-69f84611.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-766dd01f.js → p-6c578d26.js} +1 -1
  269. package/dist/zonos-elements/{p-28295342.entry.js → p-709c7e9e.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-0197a9bf.system.entry.js → p-7140439f.system.entry.js} +1 -1
  271. package/dist/zonos-elements/{p-df9c0bfa.system.entry.js → p-794b2d24.system.entry.js} +1 -1
  272. package/dist/zonos-elements/{p-44dd4269.entry.js → p-7f288336.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-78e4f877.system.entry.js → p-81084be5.system.entry.js} +1 -1
  274. package/dist/zonos-elements/p-81a5dd5c.js +1 -0
  275. package/dist/zonos-elements/{p-0b5c9f89.system.js → p-826b5d0c.system.js} +1 -1
  276. package/dist/zonos-elements/{p-33e1d25e.system.entry.js → p-86e825f0.system.entry.js} +1 -1
  277. package/dist/zonos-elements/p-896dca32.entry.js +1 -0
  278. package/dist/zonos-elements/{p-d9511c4a.entry.js → p-9024f5a1.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-0b5f4ca7.system.entry.js → p-91fc6c24.system.entry.js} +1 -1
  280. package/dist/zonos-elements/p-98db517b.entry.js +1 -0
  281. package/dist/zonos-elements/p-9ae29c27.system.entry.js +1 -0
  282. package/dist/zonos-elements/{p-a2bce31d.system.entry.js → p-9cf018c8.system.entry.js} +1 -1
  283. package/dist/zonos-elements/p-ab68ad11.js +2 -0
  284. package/dist/zonos-elements/{p-4b685549.js → p-b0616716.js} +1 -1
  285. package/dist/zonos-elements/p-b0ced00a.system.js +1 -0
  286. package/dist/zonos-elements/{p-1e3ea4ae.entry.js → p-b12fbc07.entry.js} +1 -1
  287. package/dist/zonos-elements/p-b18c4d1d.js +1 -0
  288. package/dist/zonos-elements/{p-dba6147b.system.entry.js → p-b2292b70.system.entry.js} +1 -1
  289. package/dist/zonos-elements/{p-545c05ce.entry.js → p-b288c2ed.entry.js} +1 -1
  290. package/dist/zonos-elements/p-b3882a73.system.js +1 -0
  291. package/dist/zonos-elements/p-b4823b13.entry.js +1 -0
  292. package/dist/zonos-elements/{p-9306a835.entry.js → p-b5c360af.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-2cfc00b8.system.entry.js → p-b6bbdb59.system.entry.js} +1 -1
  294. package/dist/zonos-elements/{p-0db28495.system.entry.js → p-b7a40db9.system.entry.js} +1 -1
  295. package/dist/zonos-elements/p-bf37ccc7.system.js +1 -0
  296. package/dist/zonos-elements/{p-21b538ea.system.js → p-c015be06.system.js} +1 -1
  297. package/dist/zonos-elements/{p-39cac2c1.entry.js → p-cbd5d932.entry.js} +1 -1
  298. package/dist/zonos-elements/{p-7c5c0a85.entry.js → p-cdfca133.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-675f60b4.entry.js → p-d2f2c685.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-3f991022.entry.js → p-db3f381d.entry.js} +1 -1
  301. package/dist/zonos-elements/{p-9dec2b74.entry.js → p-de221545.entry.js} +1 -1
  302. package/dist/zonos-elements/{p-b0174a8f.js → p-e02fd9ae.js} +1 -1
  303. package/dist/zonos-elements/p-e3abf96c.system.entry.js +1 -0
  304. package/dist/zonos-elements/p-e4d509be.entry.js +1 -0
  305. package/dist/zonos-elements/{p-ab6973a5.entry.js → p-e8926f59.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-6a8862a6.system.entry.js → p-e8c70c7d.system.entry.js} +1 -1
  307. package/dist/zonos-elements/p-f0c8150e.js +1 -0
  308. package/dist/zonos-elements/p-f824a75f.entry.js +1 -0
  309. package/dist/zonos-elements/{p-d5a3851d.system.entry.js → p-fc4ebe6b.system.entry.js} +1 -1
  310. package/dist/zonos-elements/p-fdb592a8.system.js +1 -0
  311. package/dist/zonos-elements/p-fec7bdd4.system.entry.js +1 -0
  312. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  313. package/dist/zonos-elements/zonos-elements.js +1 -1
  314. package/package.json +9 -8
  315. package/dist/esm-es5/CheckoutConfig-262008fe.js +0 -1
  316. package/dist/esm-es5/cart-acba54d0.js +0 -1
  317. package/dist/esm-es5/createCustomEvent-31a792d3.js +0 -1
  318. package/dist/esm-es5/handleFetch-badf4543.js +0 -1
  319. package/dist/esm-es5/index-986b5ff2.js +0 -2
  320. package/dist/esm-es5/zonos-notification_3.entry.js +0 -1
  321. package/dist/zonos-elements/p-1198c874.entry.js +0 -1
  322. package/dist/zonos-elements/p-1460f917.js +0 -1
  323. package/dist/zonos-elements/p-302f5d25.entry.js +0 -1
  324. package/dist/zonos-elements/p-386325ae.system.js +0 -1
  325. package/dist/zonos-elements/p-38d0c496.system.entry.js +0 -1
  326. package/dist/zonos-elements/p-64372f93.system.js +0 -1
  327. package/dist/zonos-elements/p-680d3694.js +0 -2
  328. package/dist/zonos-elements/p-7b999a40.js +0 -1
  329. package/dist/zonos-elements/p-7c643376.system.js +0 -1
  330. package/dist/zonos-elements/p-8e30228d.system.entry.js +0 -1
  331. package/dist/zonos-elements/p-8f26cc7e.entry.js +0 -1
  332. package/dist/zonos-elements/p-9da2d116.entry.js +0 -1
  333. package/dist/zonos-elements/p-a08ea336.js +0 -1
  334. package/dist/zonos-elements/p-a5b294d7.js +0 -1
  335. package/dist/zonos-elements/p-b2ea7adb.entry.js +0 -1
  336. package/dist/zonos-elements/p-b50667b6.system.js +0 -2
  337. package/dist/zonos-elements/p-bfcfd29b.system.js +0 -1
  338. package/dist/zonos-elements/p-c437d76c.system.js +0 -1
  339. package/dist/zonos-elements/p-d1afd314.system.entry.js +0 -1
  340. package/dist/zonos-elements/p-e9964a5a.system.js +0 -1
  341. package/dist/zonos-elements/p-f9aef1fc.system.entry.js +0 -1
  342. package/dist/zonos-elements/p-fa538a74.system.entry.js +0 -1
@@ -1,7 +1,7 @@
1
- import { c as createStore, z as zonosStore } from './zonosStore-708637e7.js';
2
- import { h as handleFetch, a as logError, l as log, f as fallbackApiList, s as sendErrorLog, b as allLogs, j as jsonParse } from './handleFetch-badf4543.js';
3
- import { i as isDarkColor } from './isDarkColor-4915739f.js';
4
- import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
1
+ import { c as createStore, z as zonosStore } from './zonosStore-44efd080.js';
2
+ import { h as handleFetch, b as logError, l as log, f as fallbackApiList, s as sendErrorLog, d as allLogs, j as jsonParse, a as getIsStagingMode } from './handleFetch-b4633675.js';
3
+ import { i as isDarkColor } from './isDarkColor-10f38df6.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-b32d4218.js';
5
5
 
6
6
  const stringsArabic = {
7
7
  ' (Duties due at door)': {
@@ -178,6 +178,9 @@ const stringsArabic = {
178
178
  'No countries found': {
179
179
  value: 'لم يتم العثور على دول',
180
180
  },
181
+ 'No payment method needed for staging': {
182
+ value: 'لا حاجة لطريقة دفع للتجهيز',
183
+ },
181
184
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
182
185
  value: 'لم يتم اختيار تقييم الشحنة. يرجى العودة إلى خطوة "الشحن" واختيار تقييم الشحنة للمتابعة.',
183
186
  },
@@ -235,6 +238,9 @@ const stringsArabic = {
235
238
  'Phone number': {
236
239
  value: 'رقم الهاتف',
237
240
  },
241
+ 'Place test order': {
242
+ value: 'إجراء طلب اختبار',
243
+ },
238
244
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
239
245
  value: 'يرجى التأكد من أن نصك يستخدم الأبجدية اللاتينية فقط (A-Z, a-z).',
240
246
  },
@@ -337,6 +343,9 @@ const stringsArabic = {
337
343
  'Spend [threshold] tax free.': {
338
344
  value: 'أنفق [threshold] بدون ضرائب.',
339
345
  },
346
+ 'Staging mode': {
347
+ value: 'وضع التدريج',
348
+ },
340
349
  State: {
341
350
  value: 'ولاية',
342
351
  },
@@ -634,6 +643,9 @@ const stringsBase = {
634
643
  'No countries found': {
635
644
  value: 'No countries found',
636
645
  },
646
+ 'No payment method needed for staging': {
647
+ value: 'No payment method needed for staging',
648
+ },
637
649
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
638
650
  value: 'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.',
639
651
  },
@@ -691,6 +703,9 @@ const stringsBase = {
691
703
  'Phone number': {
692
704
  value: 'Phone number',
693
705
  },
706
+ 'Place test order': {
707
+ value: 'Place test order',
708
+ },
694
709
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
695
710
  value: 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).',
696
711
  },
@@ -793,6 +808,9 @@ const stringsBase = {
793
808
  'Spend [threshold] tax free.': {
794
809
  value: 'Spend [threshold] tax free.',
795
810
  },
811
+ 'Staging mode': {
812
+ value: 'Staging mode',
813
+ },
796
814
  State: {
797
815
  value: 'State',
798
816
  },
@@ -1090,6 +1108,9 @@ const stringsChinese = {
1090
1108
  'No countries found': {
1091
1109
  value: '未找到国家',
1092
1110
  },
1111
+ 'No payment method needed for staging': {
1112
+ value: '不需要支付方式用于演示',
1113
+ },
1093
1114
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
1094
1115
  value: '未选择运费评级。请返回到"运输"步骤并选择运费评级以继续。',
1095
1116
  },
@@ -1147,6 +1168,9 @@ const stringsChinese = {
1147
1168
  'Phone number': {
1148
1169
  value: '电话号码',
1149
1170
  },
1171
+ 'Place test order': {
1172
+ value: '下测试订单',
1173
+ },
1150
1174
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1151
1175
  value: '请确保您的文本仅使用拉丁字母表(A-Z, a-z)。',
1152
1176
  },
@@ -1249,6 +1273,9 @@ const stringsChinese = {
1249
1273
  'Spend [threshold] tax free.': {
1250
1274
  value: '花费 [threshold] 免税。',
1251
1275
  },
1276
+ 'Staging mode': {
1277
+ value: '演示模式',
1278
+ },
1252
1279
  State: {
1253
1280
  value: '州',
1254
1281
  },
@@ -1546,6 +1573,9 @@ const stringsDanish = {
1546
1573
  'No countries found': {
1547
1574
  value: 'Ingen lande fundet',
1548
1575
  },
1576
+ 'No payment method needed for staging': {
1577
+ value: 'Ingen betalingsmetode nødvendig til iscenesættelse',
1578
+ },
1549
1579
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
1550
1580
  value: 'Ingen forsendelsesvurdering valgt. Gå venligst tilbage til "Forsendelse"-trinnet og vælg en forsendelsesvurdering for at fortsætte.',
1551
1581
  },
@@ -1603,6 +1633,9 @@ const stringsDanish = {
1603
1633
  'Phone number': {
1604
1634
  value: 'Telefonnummer',
1605
1635
  },
1636
+ 'Place test order': {
1637
+ value: 'Afgiv testordre',
1638
+ },
1606
1639
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1607
1640
  value: 'Sørg venligst for, at din tekst kun bruger det latinske alfabet (A-Z, a-z).',
1608
1641
  },
@@ -1705,6 +1738,9 @@ const stringsDanish = {
1705
1738
  'Spend [threshold] tax free.': {
1706
1739
  value: 'Brug [threshold] skattefrit.',
1707
1740
  },
1741
+ 'Staging mode': {
1742
+ value: 'Iscenesættelsesmodus',
1743
+ },
1708
1744
  State: {
1709
1745
  value: 'Stat',
1710
1746
  },
@@ -2002,6 +2038,9 @@ const stringsDutch = {
2002
2038
  'No countries found': {
2003
2039
  value: 'Geen landen gevonden',
2004
2040
  },
2041
+ 'No payment method needed for staging': {
2042
+ value: 'Geen betaalmethode nodig voor enscenering',
2043
+ },
2005
2044
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
2006
2045
  value: 'Geen verzendbeoordeling geselecteerd. Ga alstublieft terug naar de stap "Verzending" en selecteer een verzendbeoordeling om door te gaan.',
2007
2046
  },
@@ -2059,6 +2098,9 @@ const stringsDutch = {
2059
2098
  'Phone number': {
2060
2099
  value: 'Telefoonnummer',
2061
2100
  },
2101
+ 'Place test order': {
2102
+ value: 'Plaats een testbestelling',
2103
+ },
2062
2104
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2063
2105
  value: 'Zorg ervoor dat uw tekst alleen het Latijnse alfabet gebruikt (A-Z, a-z).',
2064
2106
  },
@@ -2161,6 +2203,9 @@ const stringsDutch = {
2161
2203
  'Spend [threshold] tax free.': {
2162
2204
  value: 'Besteed [threshold] belastingvrij.',
2163
2205
  },
2206
+ 'Staging mode': {
2207
+ value: 'Stagingmodus',
2208
+ },
2164
2209
  State: {
2165
2210
  value: 'Staat',
2166
2211
  },
@@ -2458,6 +2503,9 @@ const stringsFrench = {
2458
2503
  'No countries found': {
2459
2504
  value: 'Aucun pays trouvé',
2460
2505
  },
2506
+ 'No payment method needed for staging': {
2507
+ value: 'Aucun moyen de paiement nécessaire pour la mise en scène',
2508
+ },
2461
2509
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
2462
2510
  value: `Aucune évaluation d'expédition sélectionnée. Veuillez revenir à l'étape "Expédition" et sélectionner une évaluation d'expédition pour continuer.`,
2463
2511
  },
@@ -2515,6 +2563,9 @@ const stringsFrench = {
2515
2563
  'Phone number': {
2516
2564
  value: 'Numéro de téléphone',
2517
2565
  },
2566
+ 'Place test order': {
2567
+ value: 'Passer une commande de test',
2568
+ },
2518
2569
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2519
2570
  value: "Veuillez vous assurer que votre texte utilise uniquement l'alphabet latin (A-Z, a-z).",
2520
2571
  },
@@ -2617,6 +2668,9 @@ const stringsFrench = {
2617
2668
  'Spend [threshold] tax free.': {
2618
2669
  value: 'Dépensez [threshold] hors taxes.',
2619
2670
  },
2671
+ 'Staging mode': {
2672
+ value: 'Mode de mise en scène',
2673
+ },
2620
2674
  State: {
2621
2675
  value: 'État',
2622
2676
  },
@@ -2914,6 +2968,9 @@ const stringsGerman = {
2914
2968
  'No countries found': {
2915
2969
  value: 'Keine Länder gefunden',
2916
2970
  },
2971
+ 'No payment method needed for staging': {
2972
+ value: 'Keine Zahlungsmethode für die Inszenierung erforderlich',
2973
+ },
2917
2974
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
2918
2975
  value: 'Keine Versandbewertung ausgewählt. Bitte gehen Sie zurück zum Schritt "Versand" und wählen Sie eine Versandbewertung aus, um fortzufahren.',
2919
2976
  },
@@ -2971,6 +3028,9 @@ const stringsGerman = {
2971
3028
  'Phone number': {
2972
3029
  value: 'Telefonnummer',
2973
3030
  },
3031
+ 'Place test order': {
3032
+ value: 'Testbestellung aufgeben',
3033
+ },
2974
3034
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2975
3035
  value: 'Bitte stellen Sie sicher, dass Ihr Text nur das lateinische Alphabet verwendet (A-Z, a-z).',
2976
3036
  },
@@ -3073,6 +3133,9 @@ const stringsGerman = {
3073
3133
  'Spend [threshold] tax free.': {
3074
3134
  value: 'Geben Sie [threshold] steuerfrei aus.',
3075
3135
  },
3136
+ 'Staging mode': {
3137
+ value: 'Staging-Modus',
3138
+ },
3076
3139
  State: {
3077
3140
  value: 'Bundesland',
3078
3141
  },
@@ -3370,6 +3433,9 @@ const stringsHebrew = {
3370
3433
  'No countries found': {
3371
3434
  value: 'לא נמצאו מדינות',
3372
3435
  },
3436
+ 'No payment method needed for staging': {
3437
+ value: 'אין צורך בשיטת תשלום לבימוי',
3438
+ },
3373
3439
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
3374
3440
  value: 'לא נבחר דירוג משלוח. אנא חזור לשלב "משלוח" ובחר דירוג משלוח כדי להמשיך.',
3375
3441
  },
@@ -3427,6 +3493,9 @@ const stringsHebrew = {
3427
3493
  'Phone number': {
3428
3494
  value: 'מספר טלפון',
3429
3495
  },
3496
+ 'Place test order': {
3497
+ value: 'בצע הזמנת בדיקה',
3498
+ },
3430
3499
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
3431
3500
  value: 'אנא ודא שהטקסט שלך משתמש באלפבית הלטיני בלבד (A-Z, a-z).',
3432
3501
  },
@@ -3529,6 +3598,9 @@ const stringsHebrew = {
3529
3598
  'Spend [threshold] tax free.': {
3530
3599
  value: 'הוצא [threshold] ללא מס.',
3531
3600
  },
3601
+ 'Staging mode': {
3602
+ value: 'מצב בימוי',
3603
+ },
3532
3604
  State: {
3533
3605
  value: 'מדינה',
3534
3606
  },
@@ -3826,6 +3898,9 @@ const stringsIndonesian = {
3826
3898
  'No countries found': {
3827
3899
  value: 'Tidak ada negara yang ditemukan',
3828
3900
  },
3901
+ 'No payment method needed for staging': {
3902
+ value: 'Tidak perlu metode pembayaran untuk pementasan',
3903
+ },
3829
3904
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
3830
3905
  value: 'Tidak ada penilaian pengiriman yang dipilih. Silakan kembali ke langkah "Pengiriman" dan pilih penilaian pengiriman untuk melanjutkan.',
3831
3906
  },
@@ -3883,6 +3958,9 @@ const stringsIndonesian = {
3883
3958
  'Phone number': {
3884
3959
  value: 'Nomor telepon',
3885
3960
  },
3961
+ 'Place test order': {
3962
+ value: 'Lakukan pesanan uji coba',
3963
+ },
3886
3964
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
3887
3965
  value: 'Harap pastikan teks Anda hanya menggunakan alfabet Latin (A-Z, a-z).',
3888
3966
  },
@@ -3985,6 +4063,9 @@ const stringsIndonesian = {
3985
4063
  'Spend [threshold] tax free.': {
3986
4064
  value: 'Habiskan [threshold] bebas pajak.',
3987
4065
  },
4066
+ 'Staging mode': {
4067
+ value: 'Mode pementasan',
4068
+ },
3988
4069
  State: {
3989
4070
  value: 'Negara Bagian',
3990
4071
  },
@@ -4282,6 +4363,9 @@ const stringsItalian = {
4282
4363
  'No countries found': {
4283
4364
  value: 'Nessun paese trovato',
4284
4365
  },
4366
+ 'No payment method needed for staging': {
4367
+ value: 'Nessun metodo di pagamento necessario per la messa in scena',
4368
+ },
4285
4369
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
4286
4370
  value: 'Nessuna valutazione di spedizione selezionata. Si prega di tornare al passaggio "Spedizione" e selezionare una valutazione di spedizione per procedere.',
4287
4371
  },
@@ -4339,6 +4423,9 @@ const stringsItalian = {
4339
4423
  'Phone number': {
4340
4424
  value: 'Numero di telefono',
4341
4425
  },
4426
+ 'Place test order': {
4427
+ value: 'Effettuare un ordine di prova',
4428
+ },
4342
4429
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
4343
4430
  value: "Si prega di assicurarsi che il testo utilizzi solo l'alfabeto latino (A-Z, a-z).",
4344
4431
  },
@@ -4441,6 +4528,9 @@ const stringsItalian = {
4441
4528
  'Spend [threshold] tax free.': {
4442
4529
  value: 'Spendi [threshold] senza tasse.',
4443
4530
  },
4531
+ 'Staging mode': {
4532
+ value: 'Modalità di staging',
4533
+ },
4444
4534
  State: {
4445
4535
  value: 'Stato',
4446
4536
  },
@@ -4738,6 +4828,9 @@ const stringsJapanese = {
4738
4828
  'No countries found': {
4739
4829
  value: '国が見つかりません',
4740
4830
  },
4831
+ 'No payment method needed for staging': {
4832
+ value: 'ステージングには支払い方法は不要です',
4833
+ },
4741
4834
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
4742
4835
  value: '配送評価が選択されていません。「配送」ステップに戻り、配送評価を選択して続行してください。',
4743
4836
  },
@@ -4795,6 +4888,9 @@ const stringsJapanese = {
4795
4888
  'Phone number': {
4796
4889
  value: '電話番号',
4797
4890
  },
4891
+ 'Place test order': {
4892
+ value: 'テスト注文を出す',
4893
+ },
4798
4894
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
4799
4895
  value: 'テキストがラテンアルファベットのみを使用していることを確認してください(A-Z、a-z)。',
4800
4896
  },
@@ -4897,6 +4993,9 @@ const stringsJapanese = {
4897
4993
  'Spend [threshold] tax free.': {
4898
4994
  value: '[threshold]を税金なしで使う。',
4899
4995
  },
4996
+ 'Staging mode': {
4997
+ value: 'ステージングモード',
4998
+ },
4900
4999
  State: {
4901
5000
  value: '州',
4902
5001
  },
@@ -5194,6 +5293,9 @@ const stringsKorean = {
5194
5293
  'No countries found': {
5195
5294
  value: '국가를 찾을 수 없습니다',
5196
5295
  },
5296
+ 'No payment method needed for staging': {
5297
+ value: '스테이징에 결제 수단이 필요하지 않습니다',
5298
+ },
5197
5299
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
5198
5300
  value: '배송 등급이 선택되지 않았습니다. "배송" 단계로 돌아가서 배송 등급을 선택하여 진행하세요.',
5199
5301
  },
@@ -5251,6 +5353,9 @@ const stringsKorean = {
5251
5353
  'Phone number': {
5252
5354
  value: '전화번호',
5253
5355
  },
5356
+ 'Place test order': {
5357
+ value: '테스트 주문하기',
5358
+ },
5254
5359
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
5255
5360
  value: '텍스트가 라틴 알파벳만 사용하는지 확인해 주세요 (A-Z, a-z).',
5256
5361
  },
@@ -5353,6 +5458,9 @@ const stringsKorean = {
5353
5458
  'Spend [threshold] tax free.': {
5354
5459
  value: '[threshold]를 세금 없이 사용하세요.',
5355
5460
  },
5461
+ 'Staging mode': {
5462
+ value: '스테이징 모드',
5463
+ },
5356
5464
  State: {
5357
5465
  value: '주',
5358
5466
  },
@@ -5650,6 +5758,9 @@ const stringsNorwegian = {
5650
5758
  'No countries found': {
5651
5759
  value: 'Ingen land funnet',
5652
5760
  },
5761
+ 'No payment method needed for staging': {
5762
+ value: 'Ingen betalingsmetode nødvendig for iscenesettelse',
5763
+ },
5653
5764
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
5654
5765
  value: 'Ingen forsendelsesvurdering valgt. Vennligst gå tilbake til "Frakt"-trinnet og velg en forsendelsesvurdering for å fortsette.',
5655
5766
  },
@@ -5707,6 +5818,9 @@ const stringsNorwegian = {
5707
5818
  'Phone number': {
5708
5819
  value: 'Telefonnummer',
5709
5820
  },
5821
+ 'Place test order': {
5822
+ value: 'Legg inn testbestilling',
5823
+ },
5710
5824
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
5711
5825
  value: 'Vennligst sørg for at teksten din kun bruker det latinske alfabetet (A-Z, a-z).',
5712
5826
  },
@@ -5809,6 +5923,9 @@ const stringsNorwegian = {
5809
5923
  'Spend [threshold] tax free.': {
5810
5924
  value: 'Bruk [threshold] skattefritt.',
5811
5925
  },
5926
+ 'Staging mode': {
5927
+ value: 'Iscenesettelsesmodus',
5928
+ },
5812
5929
  State: {
5813
5930
  value: 'Stat',
5814
5931
  },
@@ -6106,6 +6223,9 @@ const stringsPolish = {
6106
6223
  'No countries found': {
6107
6224
  value: 'Nie znaleziono krajów',
6108
6225
  },
6226
+ 'No payment method needed for staging': {
6227
+ value: 'Nie jest potrzebna metoda płatności do inscenizacji',
6228
+ },
6109
6229
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
6110
6230
  value: 'Nie wybrano oceny przesyłki. Proszę wrócić do kroku "Wysyłka" i wybrać ocenę przesyłki, aby kontynuować.',
6111
6231
  },
@@ -6163,6 +6283,9 @@ const stringsPolish = {
6163
6283
  'Phone number': {
6164
6284
  value: 'Numer telefonu',
6165
6285
  },
6286
+ 'Place test order': {
6287
+ value: 'Złóż zamówienie testowe',
6288
+ },
6166
6289
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
6167
6290
  value: 'Proszę upewnić się, że tekst używa tylko alfabetu łacińskiego (A-Z, a-z).',
6168
6291
  },
@@ -6265,6 +6388,9 @@ const stringsPolish = {
6265
6388
  'Spend [threshold] tax free.': {
6266
6389
  value: 'Wydaj [threshold] bez podatku.',
6267
6390
  },
6391
+ 'Staging mode': {
6392
+ value: 'Tryb inscenizacji',
6393
+ },
6268
6394
  State: {
6269
6395
  value: 'Stan',
6270
6396
  },
@@ -6562,6 +6688,9 @@ const stringsPortuguese = {
6562
6688
  'No countries found': {
6563
6689
  value: 'Nenhum país encontrado',
6564
6690
  },
6691
+ 'No payment method needed for staging': {
6692
+ value: 'Nenhum método de pagamento necessário para encenação',
6693
+ },
6565
6694
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
6566
6695
  value: 'Nenhuma classificação de envio selecionada. Por favor, volte para a etapa de "Envio" e selecione uma classificação de envio para prosseguir.',
6567
6696
  },
@@ -6619,6 +6748,9 @@ const stringsPortuguese = {
6619
6748
  'Phone number': {
6620
6749
  value: 'Número de telefone',
6621
6750
  },
6751
+ 'Place test order': {
6752
+ value: 'Fazer pedido de teste',
6753
+ },
6622
6754
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
6623
6755
  value: 'Por favor, certifique-se de que seu texto utilize apenas o alfabeto latino (A-Z, a-z).',
6624
6756
  },
@@ -6721,6 +6853,9 @@ const stringsPortuguese = {
6721
6853
  'Spend [threshold] tax free.': {
6722
6854
  value: 'Gaste [threshold] livre de impostos.',
6723
6855
  },
6856
+ 'Staging mode': {
6857
+ value: 'Modo de encenação',
6858
+ },
6724
6859
  State: {
6725
6860
  value: 'Estado',
6726
6861
  },
@@ -7018,6 +7153,9 @@ const stringsRussian = {
7018
7153
  'No countries found': {
7019
7154
  value: 'Страны не найдены',
7020
7155
  },
7156
+ 'No payment method needed for staging': {
7157
+ value: 'Для постановки не требуется способ оплаты',
7158
+ },
7021
7159
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
7022
7160
  value: 'Не выбран рейтинг доставки. Пожалуйста, вернитесь к шагу "Доставка" и выберите рейтинг доставки, чтобы продолжить.',
7023
7161
  },
@@ -7075,6 +7213,9 @@ const stringsRussian = {
7075
7213
  'Phone number': {
7076
7214
  value: 'Номер телефона',
7077
7215
  },
7216
+ 'Place test order': {
7217
+ value: 'Разместить тестовый заказ',
7218
+ },
7078
7219
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
7079
7220
  value: 'Пожалуйста, убедитесь, что ваш текст использует только латинский алфавит (A-Z, a-z).',
7080
7221
  },
@@ -7177,6 +7318,9 @@ const stringsRussian = {
7177
7318
  'Spend [threshold] tax free.': {
7178
7319
  value: 'Тратьте [threshold] без налогов.',
7179
7320
  },
7321
+ 'Staging mode': {
7322
+ value: 'Режим постановки',
7323
+ },
7180
7324
  State: {
7181
7325
  value: 'Штат',
7182
7326
  },
@@ -7474,6 +7618,9 @@ const stringsSpanish = {
7474
7618
  'No countries found': {
7475
7619
  value: 'No se encontraron países',
7476
7620
  },
7621
+ 'No payment method needed for staging': {
7622
+ value: 'No se necesita método de pago para la puesta en escena',
7623
+ },
7477
7624
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
7478
7625
  value: 'No se ha seleccionado una calificación de envío. Por favor, regrese al paso de "Envío" y seleccione una calificación de envío para continuar.',
7479
7626
  },
@@ -7531,6 +7678,9 @@ const stringsSpanish = {
7531
7678
  'Phone number': {
7532
7679
  value: 'Número de teléfono',
7533
7680
  },
7681
+ 'Place test order': {
7682
+ value: 'Realizar pedido de prueba',
7683
+ },
7534
7684
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
7535
7685
  value: 'Por favor, asegúrese de que su texto use solo el alfabeto latino (A-Z, a-z).',
7536
7686
  },
@@ -7633,6 +7783,9 @@ const stringsSpanish = {
7633
7783
  'Spend [threshold] tax free.': {
7634
7784
  value: 'Gasta [threshold] libre de impuestos.',
7635
7785
  },
7786
+ 'Staging mode': {
7787
+ value: 'Modo de ensayo',
7788
+ },
7636
7789
  State: {
7637
7790
  value: 'Estado',
7638
7791
  },
@@ -7930,6 +8083,9 @@ const stringsSwedish = {
7930
8083
  'No countries found': {
7931
8084
  value: 'Inga länder hittades',
7932
8085
  },
8086
+ 'No payment method needed for staging': {
8087
+ value: 'Ingen betalningsmetod behövs för iscensättning',
8088
+ },
7933
8089
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
7934
8090
  value: 'Ingen fraktbedömning vald. Gå tillbaka till steget "Frakt" och välj en fraktbedömning för att fortsätta.',
7935
8091
  },
@@ -7987,6 +8143,9 @@ const stringsSwedish = {
7987
8143
  'Phone number': {
7988
8144
  value: 'Telefonnummer',
7989
8145
  },
8146
+ 'Place test order': {
8147
+ value: 'Lägg testorder',
8148
+ },
7990
8149
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
7991
8150
  value: 'Vänligen se till att din text endast använder det latinska alfabetet (A-Z, a-z).',
7992
8151
  },
@@ -8089,6 +8248,9 @@ const stringsSwedish = {
8089
8248
  'Spend [threshold] tax free.': {
8090
8249
  value: 'Spendera [threshold] skattefritt.',
8091
8250
  },
8251
+ 'Staging mode': {
8252
+ value: 'Staging-läge',
8253
+ },
8092
8254
  State: {
8093
8255
  value: 'Stat',
8094
8256
  },
@@ -8386,6 +8548,9 @@ const stringsTurkish = {
8386
8548
  'No countries found': {
8387
8549
  value: 'Ülke bulunamadı',
8388
8550
  },
8551
+ 'No payment method needed for staging': {
8552
+ value: 'Sahneleme için ödeme yöntemi gerekmez',
8553
+ },
8389
8554
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
8390
8555
  value: 'Gönderi derecelendirmesi seçilmedi. Lütfen "Kargo" adımına geri dönün ve devam etmek için bir gönderi derecelendirmesi seçin.',
8391
8556
  },
@@ -8443,6 +8608,9 @@ const stringsTurkish = {
8443
8608
  'Phone number': {
8444
8609
  value: 'Telefon numarası',
8445
8610
  },
8611
+ 'Place test order': {
8612
+ value: 'Test siparişi ver',
8613
+ },
8446
8614
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
8447
8615
  value: 'Lütfen metninizin sadece Latin alfabesini kullandığından emin olun (A-Z, a-z).',
8448
8616
  },
@@ -8545,6 +8713,9 @@ const stringsTurkish = {
8545
8713
  'Spend [threshold] tax free.': {
8546
8714
  value: '[threshold] vergi ödemeden harcayın.',
8547
8715
  },
8716
+ 'Staging mode': {
8717
+ value: 'Sahneleme modu',
8718
+ },
8548
8719
  State: {
8549
8720
  value: 'Eyalet',
8550
8721
  },
@@ -8842,6 +9013,9 @@ const stringsVietnamese = {
8842
9013
  'No countries found': {
8843
9014
  value: 'Không tìm thấy quốc gia nào',
8844
9015
  },
9016
+ 'No payment method needed for staging': {
9017
+ value: 'Không cần phương thức thanh toán cho dàn dựng',
9018
+ },
8845
9019
  'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
8846
9020
  value: 'Chưa chọn đánh giá vận chuyển. Vui lòng quay lại bước "Vận chuyển" và chọn đánh giá vận chuyển để tiếp tục.',
8847
9021
  },
@@ -8899,6 +9073,9 @@ const stringsVietnamese = {
8899
9073
  'Phone number': {
8900
9074
  value: 'Số điện thoại',
8901
9075
  },
9076
+ 'Place test order': {
9077
+ value: 'Đặt hàng thử',
9078
+ },
8902
9079
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
8903
9080
  value: 'Vui lòng đảm bảo rằng văn bản của bạn chỉ sử dụng bảng chữ cái Latinh (A-Z, a-z).',
8904
9081
  },
@@ -9001,6 +9178,9 @@ const stringsVietnamese = {
9001
9178
  'Spend [threshold] tax free.': {
9002
9179
  value: 'Chi tiêu [threshold] miễn thuế.',
9003
9180
  },
9181
+ 'Staging mode': {
9182
+ value: 'Chế độ dàn dựng',
9183
+ },
9004
9184
  State: {
9005
9185
  value: 'Bang',
9006
9186
  },
@@ -10283,7 +10463,7 @@ const getCheckoutSession = async () => {
10283
10463
  json: null,
10284
10464
  };
10285
10465
  }
10286
- const searchParams = new URLSearchParams(window.location.search);
10466
+ const searchParams = new URLSearchParams();
10287
10467
  searchParams.set('checkoutSessionId', cartStore.checkoutSessionId);
10288
10468
  const { errors, json } = await handleFetch(`/api/zonos-elements/get-checkout-session?${searchParams.toString()}`);
10289
10469
  return { errors, json };
@@ -10395,13 +10575,20 @@ const defaultVariable = ({ borderStyle, theme, }) => {
10395
10575
  };
10396
10576
 
10397
10577
  const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = createStore(() => ({
10398
- clientSecret: sessionStorage.getItem('zonos--client-secret') || null,
10578
+ clientSecret: sessionStorage.getItem('zonos--client-secret') || '',
10399
10579
  customErrorMessage: null,
10400
10580
  fetchingLandedCostAbortController: null,
10401
10581
  hasPaymentError: false,
10402
10582
  isFetchingLandedCost: false,
10403
10583
  isFetchingSession: false,
10404
10584
  shouldInventoryRefund: false,
10585
+ /**
10586
+ * Default to skip payment intent, only create payment intent when "skipPaymentIntent" in url's query params is set "0"
10587
+ * @default true
10588
+ */
10589
+ skipPaymentIntent: new URLSearchParams(window.location.search).get('skipPaymentIntent') === '0'
10590
+ ? false
10591
+ : true,
10405
10592
  stripe: null,
10406
10593
  stripeAddressElement: null,
10407
10594
  stripeAddressEventData: null,
@@ -10450,7 +10637,8 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
10450
10637
  // use the button background color for input glow color
10451
10638
  colorPrimary: secondaryColor }),
10452
10639
  },
10453
- clientSecret,
10640
+ // Client secret can be undefined since we will load other elements that doesn't require client secret first, then load client secret and render one that requires it later
10641
+ clientSecret: clientSecret || undefined,
10454
10642
  externalPaymentMethodTypes: [...paypalPaymentType],
10455
10643
  locale: localizationStore.selectedLocale,
10456
10644
  };
@@ -10473,41 +10661,39 @@ const initStripeElements = async (props) => {
10473
10661
  log('Skip. Stripe is not initialized');
10474
10662
  return;
10475
10663
  }
10476
- if (clientSecret) {
10477
- const stripeOptions = getStripeOptions({
10478
- clientSecret,
10479
- overrideBorderRadius: props === null || props === void 0 ? void 0 : props.overrideBorderRadius,
10480
- overridePrimaryColor: props === null || props === void 0 ? void 0 : props.overridePrimaryColor,
10481
- overrideSecondaryColor: props === null || props === void 0 ? void 0 : props.overrideSecondaryColor,
10482
- overrideTheme: props === null || props === void 0 ? void 0 : props.overrideTheme,
10483
- paypalEnabled: props === null || props === void 0 ? void 0 : props.paypalEnabled,
10484
- });
10485
- // compare with the previous options to see if we need to update
10486
- const isSameOptions = JSON.stringify(stripeOptions) ===
10487
- JSON.stringify(stripeStore.stripeElementsOptions);
10488
- if (!stripeStore.stripeElements ||
10489
- !stripeStore.stripeElementsForBillingAddress) {
10490
- // init stripe elements if it doesn't exist
10491
- stripeStore.stripeElements = (_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
10492
- // save stripe elements options for later comparison
10493
- stripeStore.stripeElementsOptions = stripeOptions;
10494
- log('Stripe elements initialized');
10495
- // init stripe elements for billing address
10496
- stripeStore.stripeElementsForBillingAddress =
10497
- (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
10498
- log('Stripe elements for billing address initialized');
10499
- return;
10500
- }
10501
- if (!isSameOptions) {
10502
- // update elements with new option if it already exists
10503
- stripeStore.stripeElements.update(stripeOptions);
10504
- // update elements for stripe billing address
10505
- stripeStore.stripeElementsForBillingAddress.update(stripeOptions);
10506
- // save stripe elements options for later comparison
10507
- stripeStore.stripeElementsOptions = stripeOptions;
10508
- }
10664
+ const stripeOptions = getStripeOptions({
10665
+ clientSecret,
10666
+ overrideBorderRadius: props === null || props === void 0 ? void 0 : props.overrideBorderRadius,
10667
+ overridePrimaryColor: props === null || props === void 0 ? void 0 : props.overridePrimaryColor,
10668
+ overrideSecondaryColor: props === null || props === void 0 ? void 0 : props.overrideSecondaryColor,
10669
+ overrideTheme: props === null || props === void 0 ? void 0 : props.overrideTheme,
10670
+ paypalEnabled: props === null || props === void 0 ? void 0 : props.paypalEnabled,
10671
+ });
10672
+ // compare with the previous options to see if we need to update
10673
+ const isSameOptions = JSON.stringify(stripeOptions) ===
10674
+ JSON.stringify(stripeStore.stripeElementsOptions);
10675
+ if (!stripeStore.stripeElements ||
10676
+ !stripeStore.stripeElementsForBillingAddress) {
10677
+ // init stripe elements if it doesn't exist
10678
+ stripeStore.stripeElements = (_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
10679
+ // save stripe elements options for later comparison
10680
+ stripeStore.stripeElementsOptions = stripeOptions;
10509
10681
  log('Stripe elements initialized');
10682
+ // init stripe elements for billing address
10683
+ stripeStore.stripeElementsForBillingAddress =
10684
+ (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
10685
+ log('Stripe elements for billing address initialized');
10686
+ return;
10687
+ }
10688
+ if (!isSameOptions) {
10689
+ // update elements with new option if it already exists
10690
+ stripeStore.stripeElements.update(stripeOptions);
10691
+ // update elements for stripe billing address
10692
+ stripeStore.stripeElementsForBillingAddress.update(stripeOptions);
10693
+ // save stripe elements options for later comparison
10694
+ stripeStore.stripeElementsOptions = stripeOptions;
10510
10695
  }
10696
+ log('Stripe elements initialized');
10511
10697
  };
10512
10698
  const stripeStoreReset = () => {
10513
10699
  // clean clientSecret so that we can start the new one.
@@ -10562,7 +10748,7 @@ const stripeCalculateLandedCost = async () => {
10562
10748
  stripeStore.fetchingLandedCostAbortController = abortController;
10563
10749
  // Reset cart items to non-restricted state and restricted item list
10564
10750
  cartStoreResetCartItems();
10565
- const { checkoutSessionWorkflow, errors, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
10751
+ const { checkoutSessionWorkflow, errors, itemCreateWorkflow, landedCostCalculateWorkflow, partyCreateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
10566
10752
  // update the error message with customized error message that rule is applying to and disabled shippment rating if there is any
10567
10753
  cartStore.customQuotingError =
10568
10754
  ((_a = errors === null || errors === void 0 ? void 0 : errors.find(error => { var _a; return ((_a = error.extensions) === null || _a === void 0 ? void 0 : _a.ruleMessageType) === 'CUSTOM'; })) === null || _a === void 0 ? void 0 : _a.message) || null;
@@ -10571,6 +10757,7 @@ const stripeCalculateLandedCost = async () => {
10571
10757
  cartStoreCheckItemRestrictions(itemCreateWorkflow);
10572
10758
  // reset abort controller after we are done
10573
10759
  stripeStore.fetchingLandedCostAbortController = null;
10760
+ cartStore.partiesData = (partyCreateWorkflow === null || partyCreateWorkflow === void 0 ? void 0 : partyCreateWorkflow.filter(Boolean)) || [];
10574
10761
  // update cart store with landed cost info
10575
10762
  cartStore.landedCostData =
10576
10763
  (checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.map(checkoutSession => {
@@ -10926,9 +11113,66 @@ const getCheckoutSessionBody = () => {
10926
11113
  },
10927
11114
  ],
10928
11115
  presentmentCountryCode: localizationStore.selectedCountryCode,
11116
+ skipPaymentIntent: stripeStore.skipPaymentIntent,
10929
11117
  };
10930
11118
  return body;
10931
11119
  };
11120
+ const stripeStoreGetPaymentIntent = async () => {
11121
+ var _a;
11122
+ if (stripeStore.clientSecret) {
11123
+ log('Payment intent already exists, skipping fetching payment intent');
11124
+ return;
11125
+ }
11126
+ if (!cartStore.checkoutSessionId) {
11127
+ // We want to log the error anytime we fail to create a checkout session
11128
+ void sendErrorLog({
11129
+ endpoint: 'Error creating payment intent',
11130
+ errors: ['No checkout session id found when retrieving payment intent'],
11131
+ metadata: {
11132
+ allLogs,
11133
+ cartId: window.Zonos.cartId,
11134
+ },
11135
+ });
11136
+ cartStoreUpdateToErrorState({
11137
+ messages: [
11138
+ translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
11139
+ ],
11140
+ title: translate('Error creating Checkout'),
11141
+ });
11142
+ return;
11143
+ }
11144
+ const { errors, json } = await handleFetch('/api/zonos-elements/create-payment-intent', {
11145
+ body: {
11146
+ checkoutSessionId: cartStore.checkoutSessionId,
11147
+ },
11148
+ method: 'POST',
11149
+ });
11150
+ const clientSecret = (_a = json === null || json === void 0 ? void 0 : json.checkoutSessionPaymentIntentCreate) === null || _a === void 0 ? void 0 : _a.clientSecret;
11151
+ if (errors.length || !clientSecret) {
11152
+ logError('Error occurs when getting payment intent', JSON.stringify(errors, null, 2));
11153
+ // We want to log the error anytime we fail to create a payment intent
11154
+ void sendErrorLog({
11155
+ endpoint: 'Error creating payment intent',
11156
+ errors: errors.map(error => error.message),
11157
+ metadata: {
11158
+ allLogs,
11159
+ cartId: window.Zonos.cartId,
11160
+ checkoutSessionId: cartStore.checkoutSessionId,
11161
+ clientSecret,
11162
+ },
11163
+ });
11164
+ cartStoreUpdateToErrorState({
11165
+ messages: [
11166
+ translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
11167
+ ],
11168
+ title: translate('Error creating Checkout'),
11169
+ });
11170
+ return;
11171
+ }
11172
+ // update stripe store with updated information
11173
+ stripeStore.clientSecret =
11174
+ json.checkoutSessionPaymentIntentCreate.clientSecret;
11175
+ };
10932
11176
  /**
10933
11177
  * Init checkout session
10934
11178
  * @returns {boolean} whether or not the checkout session is successfully created
@@ -10961,6 +11205,10 @@ const stripeStoreInitCheckoutSession = async () => {
10961
11205
  });
10962
11206
  log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
10963
11207
  log('done-init-checkout-session');
11208
+ // get and set payment intent async except for staging mode
11209
+ if (!cartStore.isStagingMode) {
11210
+ void stripeStoreGetPaymentIntent();
11211
+ }
10964
11212
  return true;
10965
11213
  };
10966
11214
  /**
@@ -10996,6 +11244,7 @@ const stripeStoreUpdateCheckoutSession = async ({ adjustmentsAmount, cartId, cur
10996
11244
  },
10997
11245
  ],
10998
11246
  presentmentCountryCode,
11247
+ skipPaymentIntent: stripeStore.skipPaymentIntent,
10999
11248
  },
11000
11249
  method: 'POST',
11001
11250
  });
@@ -11003,6 +11252,10 @@ const stripeStoreUpdateCheckoutSession = async ({ adjustmentsAmount, cartId, cur
11003
11252
  logError('Error occurs when updating checkout session', JSON.stringify(errors, null, 2));
11004
11253
  return { errors, json };
11005
11254
  }
11255
+ // get and set payment intent async except for staging mode
11256
+ if (!cartStore.isStagingMode) {
11257
+ void stripeStoreGetPaymentIntent();
11258
+ }
11006
11259
  return { errors: [], json };
11007
11260
  };
11008
11261
  /**
@@ -11152,9 +11405,11 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
11152
11405
  inventoryCheckErrorMessage: null,
11153
11406
  isSelectedShippingAboveDeminimis: false,
11154
11407
  isSelectedShippingGuarantee: false,
11408
+ isStagingMode: getIsStagingMode(),
11155
11409
  items: [],
11156
11410
  landedCostData: null,
11157
11411
  landedCostMethod: 'DDP',
11412
+ partiesData: [],
11158
11413
  promoCode: sessionStorage.getItem('promoCode') || '',
11159
11414
  // When user clicked applied button, save promocode into session storage for later use. So if session has promocode, applied button is clicked
11160
11415
  promoCodeApplied: !!sessionStorage.getItem('promoCode'),