@zonos/elements 1.3.80 → 1.3.82

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 (247) hide show
  1. package/dist/cjs/{CheckoutConfig-2fef694e.js → CheckoutConfig-850071ae.js} +1 -1
  2. package/dist/cjs/{cart-977c9d4c.js → cart-ba540c8e.js} +353 -69
  3. package/dist/cjs/{createCustomEvent-2b19361e.js → createCustomEvent-1fd24ad8.js} +2 -4
  4. package/dist/cjs/{handleFetch-661a8225.js → handleFetch-45e76490.js} +29 -1
  5. package/dist/cjs/index.cjs.js +9 -9
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-3008c89e.js → paypal-6bbe55a7.js} +2 -2
  8. package/dist/cjs/zonos-address_8.cjs.entry.js +12 -12
  9. package/dist/cjs/zonos-badge.cjs.entry.js +44 -0
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  11. package/dist/cjs/zonos-card.cjs.entry.js +4 -4
  12. package/dist/cjs/{zonos-badge_13.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +55 -70
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +18 -6
  14. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  20. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
  23. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  27. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +10 -1
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +73 -1
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -3
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +15 -2
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +8 -9
  34. package/dist/collection/components/common/zonos-badge/assets/RemoveLineIcon.svg +3 -0
  35. package/dist/collection/components/common/zonos-badge/zonos-badge.css +3 -0
  36. package/dist/collection/components/common/zonos-badge/zonos-badge.js +43 -3
  37. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  38. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  39. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  40. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -7
  41. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  42. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  43. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  44. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  45. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  46. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  47. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  48. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  49. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  50. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  51. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  52. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  53. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  54. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  55. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  56. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  57. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  58. package/dist/collection/components/main/zonos-controller.js +1 -1
  59. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  60. package/dist/collection/components/store/checkout/cart.js +17 -1
  61. package/dist/collection/components/store/checkout/stripe.js +120 -66
  62. package/dist/collection/components/store/hello/localization.js +2 -3
  63. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  64. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  65. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  66. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  67. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  68. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  69. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  70. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  71. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  72. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  73. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  74. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  75. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  76. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  77. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  78. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  79. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  80. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  81. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  82. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  83. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  84. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  85. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  86. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +22 -0
  87. package/dist/collection/components/utils/api/trackConversionEvent.js +0 -2
  88. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +1 -0
  89. package/dist/collection/components/utils/handleFetch.js +1 -0
  90. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +1 -1
  91. package/dist/collection/components/utils/logging/log.js +26 -1
  92. package/dist/collection/components/utils/logging/sendErrorLog.js +2 -0
  93. package/dist/esm/{CheckoutConfig-c7954c2a.js → CheckoutConfig-c0ec120d.js} +1 -1
  94. package/dist/esm/{cart-414322dc.js → cart-7df78f9f.js} +351 -70
  95. package/dist/esm/{createCustomEvent-fcd6d294.js → createCustomEvent-fcec608e.js} +2 -4
  96. package/dist/esm/{handleFetch-80ecfb91.js → handleFetch-0133265e.js} +29 -2
  97. package/dist/esm/index.js +10 -10
  98. package/dist/esm/loader.js +1 -1
  99. package/dist/esm/{paypal-3fecd52f.js → paypal-a27aad03.js} +2 -2
  100. package/dist/esm/zonos-address_8.entry.js +12 -12
  101. package/dist/esm/zonos-badge.entry.js +40 -0
  102. package/dist/esm/zonos-button_3.entry.js +3 -3
  103. package/dist/esm/zonos-card.entry.js +4 -4
  104. package/dist/esm/{zonos-badge_13.entry.js → zonos-cart-items_12.entry.js} +57 -71
  105. package/dist/esm/zonos-checkout.entry.js +18 -6
  106. package/dist/esm/zonos-component.entry.js +1 -1
  107. package/dist/esm/zonos-controller.entry.js +3 -3
  108. package/dist/esm/zonos-country-flag.entry.js +2 -2
  109. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  110. package/dist/esm/zonos-elements.js +1 -1
  111. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  112. package/dist/esm/zonos-hello.entry.js +2 -2
  113. package/dist/esm/zonos-input.entry.js +4 -4
  114. package/dist/esm/zonos-language-select_2.entry.js +6 -6
  115. package/dist/esm/zonos-link.entry.js +1 -1
  116. package/dist/esm/zonos-logo.entry.js +2 -2
  117. package/dist/esm/zonos-notification_3.entry.js +5 -5
  118. package/dist/esm/zonos-tooltip.entry.js +2 -2
  119. package/dist/esm/zonos-v-stack.entry.js +2 -2
  120. package/dist/esm-es5/{CheckoutConfig-c7954c2a.js → CheckoutConfig-c0ec120d.js} +1 -1
  121. package/dist/esm-es5/cart-7df78f9f.js +1 -0
  122. package/dist/esm-es5/{createCustomEvent-fcd6d294.js → createCustomEvent-fcec608e.js} +1 -1
  123. package/dist/esm-es5/handleFetch-0133265e.js +1 -0
  124. package/dist/esm-es5/index.js +1 -1
  125. package/dist/esm-es5/loader.js +1 -1
  126. package/dist/esm-es5/{paypal-3fecd52f.js → paypal-a27aad03.js} +1 -1
  127. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  128. package/dist/esm-es5/zonos-badge.entry.js +1 -0
  129. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  130. package/dist/esm-es5/zonos-card.entry.js +1 -1
  131. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  132. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  133. package/dist/esm-es5/zonos-component.entry.js +1 -1
  134. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  135. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  136. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  137. package/dist/esm-es5/zonos-elements.js +1 -1
  138. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  139. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  140. package/dist/esm-es5/zonos-input.entry.js +1 -1
  141. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  142. package/dist/esm-es5/zonos-link.entry.js +1 -1
  143. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  144. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  145. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  146. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  147. package/dist/scripts/index.d.ts +45 -0
  148. package/dist/scripts/index.js +1 -1
  149. package/dist/scripts/loadZonos.js +1 -1
  150. package/dist/scripts/zonos.js +1 -1
  151. package/dist/types/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.d.ts +12 -0
  152. package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +9 -0
  153. package/dist/types/components/store/checkout/cart.d.ts +8 -1
  154. package/dist/types/components/store/checkout/stripe.d.ts +12 -2
  155. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  156. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  157. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  158. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  159. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  160. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  161. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  162. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  163. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  164. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  165. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  166. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  167. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  168. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  169. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  170. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  171. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  172. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  173. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  174. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  175. package/dist/types/components/store/translationStore.d.ts +1 -1
  176. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +1 -0
  177. package/dist/types/components/utils/checkout/sortServiceLevelOptions.d.ts +3 -2
  178. package/dist/types/components/utils/logging/log.d.ts +2 -1
  179. package/dist/types/components.d.ts +34 -0
  180. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +2 -0
  181. package/dist/types/types/generated/graphql.internal.types.d.ts +12 -0
  182. package/dist/types/types/generated/graphql.internal.types.ts +9 -0
  183. package/dist/zonos-elements/index.esm.js +1 -1
  184. package/dist/zonos-elements/{p-0290df9c.entry.js → p-112a969c.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-5170cefb.system.js → p-15651b06.system.js} +1 -1
  186. package/dist/zonos-elements/p-197c5707.system.js +1 -0
  187. package/dist/zonos-elements/p-1a92ff9a.system.entry.js +1 -0
  188. package/dist/zonos-elements/p-2024313c.js +1 -0
  189. package/dist/zonos-elements/{p-1e4f7997.system.entry.js → p-22e81fee.system.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-f8dace42.system.entry.js → p-270cc182.system.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-1047233d.entry.js → p-2c5e2163.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-ced3aa4f.system.entry.js → p-2d2edb5a.system.entry.js} +1 -1
  193. package/dist/zonos-elements/p-2d2ff962.entry.js +1 -0
  194. package/dist/zonos-elements/{p-2a47d2cc.system.entry.js → p-38886017.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-cce51fa5.system.entry.js → p-4097a25b.system.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-41f42a5c.entry.js → p-42636c5a.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-bbabc829.system.entry.js → p-43e2de45.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-2d466263.system.js → p-4683797b.system.js} +1 -1
  199. package/dist/zonos-elements/{p-86bfda32.system.entry.js → p-4e06a2bb.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-25633055.entry.js → p-58832515.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-e68941ce.system.entry.js → p-59806a8e.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-19fc5e11.system.entry.js → p-5d186fc7.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-0a1db77d.system.entry.js → p-5d4bde9c.system.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-f3fc05a8.entry.js → p-6a5d714a.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-fca6f444.entry.js → p-6a83b682.entry.js} +1 -1
  206. package/dist/zonos-elements/p-85600e22.system.entry.js +1 -0
  207. package/dist/zonos-elements/{p-81cdd0d5.system.js → p-8c0ff373.system.js} +1 -1
  208. package/dist/zonos-elements/p-8dd38974.entry.js +1 -0
  209. package/dist/zonos-elements/p-8fd6ae63.js +1 -0
  210. package/dist/zonos-elements/{p-9c02a170.system.js → p-957b1c1b.system.js} +1 -1
  211. package/dist/zonos-elements/{p-7be7bd28.entry.js → p-997c8f07.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-982aa677.entry.js → p-a4cdd4f2.entry.js} +1 -1
  213. package/dist/zonos-elements/p-aa899bf7.entry.js +1 -0
  214. package/dist/zonos-elements/{p-c2920074.js → p-acabfc47.js} +1 -1
  215. package/dist/zonos-elements/p-ad7ce197.js +1 -0
  216. package/dist/zonos-elements/{p-a3e2592b.system.entry.js → p-ae7526a2.system.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-6de38759.entry.js → p-afad2fae.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-166b3181.entry.js → p-b09c3702.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-6b3fd741.js → p-b8e85bf5.js} +1 -1
  220. package/dist/zonos-elements/{p-72f0641d.entry.js → p-bf84416a.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-a033685e.system.entry.js → p-c2b7b670.system.entry.js} +1 -1
  222. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  223. package/dist/zonos-elements/{p-c1400636.entry.js → p-cd17565d.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-3d01ac9a.entry.js → p-cfd53396.entry.js} +1 -1
  225. package/dist/zonos-elements/p-cffe7cc8.system.entry.js +1 -0
  226. package/dist/zonos-elements/{p-f0d6f027.system.entry.js → p-d48f3bd3.system.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-ba05f1d6.system.entry.js → p-d621f462.system.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-4032de50.entry.js → p-df83e30b.entry.js} +1 -1
  229. package/dist/zonos-elements/p-e7eb0a92.system.js +1 -0
  230. package/dist/zonos-elements/{p-f4765417.entry.js → p-e93b511f.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-747eed39.entry.js → p-ea68ee1f.entry.js} +1 -1
  232. package/dist/zonos-elements/{p-de93cc65.system.entry.js → p-f68c38d8.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-d56f87ab.system.entry.js → p-f7bbdd0c.system.entry.js} +1 -1
  234. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  235. package/package.json +1 -1
  236. package/dist/esm-es5/cart-414322dc.js +0 -1
  237. package/dist/esm-es5/handleFetch-80ecfb91.js +0 -1
  238. package/dist/esm-es5/zonos-badge_13.entry.js +0 -1
  239. package/dist/zonos-elements/p-0f640802.system.js +0 -1
  240. package/dist/zonos-elements/p-2ec2e9d3.js +0 -1
  241. package/dist/zonos-elements/p-502d5e52.system.entry.js +0 -1
  242. package/dist/zonos-elements/p-75fd8895.js +0 -1
  243. package/dist/zonos-elements/p-a725574a.entry.js +0 -1
  244. package/dist/zonos-elements/p-acbec292.system.entry.js +0 -1
  245. package/dist/zonos-elements/p-c4957e35.system.js +0 -1
  246. package/dist/zonos-elements/p-d5818f0a.js +0 -1
  247. package/dist/zonos-elements/p-e6ec9f12.entry.js +0 -1
@@ -1,10 +1,11 @@
1
1
  import { createStore } from "@stencil/store";
2
- import { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreResetCartItems, cartStoreSetCheckoutSession, } from "./cart";
2
+ import { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStorePreviousStep, cartStoreResetCartItems, cartStoreSetCheckoutSession, cartStoreUpdateSelectedShippingOption, } from "./cart";
3
3
  import { localizationStore } from "../hello/localization";
4
4
  import { translate } from "../translationStore";
5
5
  import { zonosStore } from "../zonosStore";
6
6
  import { calculateLandedCostNormalized } from "../../utils/api/calculateLandedCostNormaliz";
7
7
  import { buildTranslateRequest } from "../../utils/checkout/buildTranslateRequest";
8
+ import { sortServiceLevelOptions } from "../../utils/checkout/sortServiceLevelOptions";
8
9
  import { handleFetch } from "../../utils/handleFetch";
9
10
  import { isDarkColor } from "../../utils/isDarkColor";
10
11
  import { jsonParse } from "../../utils/jsonParse";
@@ -163,8 +164,42 @@ const isPrefetchInfoOutdated = () => {
163
164
  // if landed cost data is not available, we need to fetch it
164
165
  !cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
165
166
  };
166
- const stripeStorePrefetchLandedCost = async () => {
167
- var _a, _b, _c, _d, _e, _f;
167
+ const stripeCalculateLandedCost = async () => {
168
+ const abortController = new AbortController();
169
+ stripeStore.fetchingLandedCostAbortController = abortController;
170
+ // Reset cart items to non-restricted state and restricted item list
171
+ cartStoreResetCartItems();
172
+ const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
173
+ cartStore.shippingData = sortServiceLevelOptions((shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || []);
174
+ // check and update cart items with restrictions
175
+ cartStoreCheckItemRestrictions(itemCreateWorkflow);
176
+ // reset abort controller after we are done
177
+ stripeStore.fetchingLandedCostAbortController = null;
178
+ // update cart store with landed cost info
179
+ cartStore.landedCostData =
180
+ (checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.map(checkoutSession => {
181
+ const foundLandedCost = landedCostCalculateWorkflow === null || landedCostCalculateWorkflow === void 0 ? void 0 : landedCostCalculateWorkflow.find(item => (item === null || item === void 0 ? void 0 : item.id) === checkoutSession.landedCostId);
182
+ if (!foundLandedCost) {
183
+ return null;
184
+ }
185
+ return Object.assign(Object.assign({}, checkoutSession), { landedCost: foundLandedCost });
186
+ }).filter(Boolean)) || [];
187
+ // update adjustmentTotal
188
+ // highlight promocode input error if promocode is applied but no adjustment applied in landed cost
189
+ const isInvalidPromoCode = cartStore.promoCodeApplied &&
190
+ !cartStore.landedCostData.find(item => {
191
+ var _a;
192
+ return (_a = item.landedCost.appliedAdjustments) === null || _a === void 0 ? void 0 : _a.find(_item => _item.type === 'PROMO_CODE');
193
+ });
194
+ cartStore.promoCodeError = isInvalidPromoCode;
195
+ // When promocode is valid, set promoCode to session storage so if user close the modal, we can still reapply for them
196
+ if (!isInvalidPromoCode) {
197
+ sessionStorage.setItem('promoCode', cartStore.promoCode);
198
+ }
199
+ };
200
+ const stripeStorePrefetchLandedCost = async (params) => {
201
+ var _a, _b, _c, _d, _e, _f, _g;
202
+ const applyingPromocode = !!(params === null || params === void 0 ? void 0 : params.applyingPromocode);
168
203
  const stripeAddressReady = !!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete);
169
204
  const stripeLinkReady = !!((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete);
170
205
  const stripeBillingAddressReady = stripeStore.stripeShippingSameAsBilling
@@ -176,68 +211,87 @@ const stripeStorePrefetchLandedCost = async () => {
176
211
  (_e = stripeStore.fetchingLandedCostAbortController) === null || _e === void 0 ? void 0 : _e.abort();
177
212
  stripeStore.fetchingLandedCostAbortController = null;
178
213
  }
179
- // only fetch if we are not fetching or we need to refetch
180
- if (stripeAddressReady &&
181
- stripeLinkReady &&
182
- stripeBillingAddressReady &&
183
- shouldRefetch) {
184
- stripeStore.isFetchingLandedCost = true;
185
- if (stripeStore.stripeAddressEventData) {
186
- stripeStore.stripeAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeAddressEventData);
187
- }
188
- if (stripeStore.stripeBillingAddressEventData) {
189
- stripeStore.stripeBillingAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeBillingAddressEventData);
190
- }
191
- if (stripeStore.stripeLinkEventData) {
192
- stripeStore.stripeLinkUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeLinkEventData);
193
- }
194
- try {
195
- const abortController = new AbortController();
196
- stripeStore.fetchingLandedCostAbortController = abortController;
197
- // Reset cart items to non-restricted state and restricted item list
198
- cartStoreResetCartItems();
199
- const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
200
- // reset abort controller after we are done
201
- stripeStore.fetchingLandedCostAbortController = null;
202
- // update cart store with landed cost info
203
- cartStore.landedCostData =
204
- (checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.map(checkoutSession => {
205
- const foundLandedCost = landedCostCalculateWorkflow === null || landedCostCalculateWorkflow === void 0 ? void 0 : landedCostCalculateWorkflow.find(item => (item === null || item === void 0 ? void 0 : item.id) === checkoutSession.landedCostId);
206
- if (!foundLandedCost) {
207
- return null;
208
- }
209
- return Object.assign(Object.assign({}, checkoutSession), { landedCost: foundLandedCost });
210
- }).filter(Boolean)) || [];
211
- cartStore.shippingData =
212
- (shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || [];
213
- // apply new subtotal and total, this is mainly to show items in the presentment currency
214
- const firstLandedCostData = (_f = cartStore.landedCostData) === null || _f === void 0 ? void 0 : _f.find(Boolean);
215
- const subtotals = !!firstLandedCostData
216
- ? firstLandedCostData.subtotals
217
- : null;
218
- // check and update cart items with restrictions
219
- cartStoreCheckItemRestrictions(itemCreateWorkflow);
220
- if (subtotals) {
221
- // prefetch landed cost will not update shipping and taxes since we haven't selected shipping method yet
222
- cartStoreApplySubtotals({
223
- adjustments: subtotals.adjustments,
224
- exchangeRate: subtotals.exchangeRate,
225
- items: subtotals.items,
226
- landedCostTotal: 0,
227
- presentmentCurrencyCode: subtotals.presentmentCurrencyCode,
228
- shipping: 0,
229
- total: subtotals.items,
230
- });
231
- }
232
- }
233
- catch (err) {
234
- // default to empty array if we failed to fetch landed cost, so we can show the error message
235
- cartStore.landedCostData = [];
236
- cartStore.shippingData = [];
237
- logError(err);
214
+ // Do not fetch if we are not ready or data is not outdated
215
+ if ((!shouldRefetch && !applyingPromocode) ||
216
+ !stripeAddressReady ||
217
+ !stripeLinkReady ||
218
+ !stripeBillingAddressReady) {
219
+ return;
220
+ }
221
+ stripeStore.isFetchingLandedCost = true;
222
+ if (stripeStore.stripeAddressEventData) {
223
+ stripeStore.stripeAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeAddressEventData);
224
+ }
225
+ if (stripeStore.stripeBillingAddressEventData) {
226
+ stripeStore.stripeBillingAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeBillingAddressEventData);
227
+ }
228
+ if (stripeStore.stripeLinkEventData) {
229
+ stripeStore.stripeLinkUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeLinkEventData);
230
+ }
231
+ try {
232
+ // Reset cart items to non-restricted state and restricted item list
233
+ cartStoreResetCartItems();
234
+ // fetch and apply landed cost
235
+ await stripeCalculateLandedCost();
236
+ // This is the cheapest service level since we already sorted them after fetching landed cost
237
+ const cheapestServiceLevel = (_f = cartStore.shippingData) === null || _f === void 0 ? void 0 : _f.find(Boolean);
238
+ // Landed cost that matches with service level
239
+ const matchLandedCost = (_g = cartStore.landedCostData) === null || _g === void 0 ? void 0 : _g.find(x => x.landedCost.shipmentRating.id === (cheapestServiceLevel === null || cheapestServiceLevel === void 0 ? void 0 : cheapestServiceLevel.id));
240
+ // apply new subtotal and total, this is mainly to show items in the presentment currency
241
+ const subtotals = !!matchLandedCost ? matchLandedCost.subtotals : null;
242
+ if (subtotals) {
243
+ // prefetch landed cost will not update shipping and taxes since we haven't selected shipping method yet
244
+ cartStoreApplySubtotals({
245
+ adjustments: subtotals.adjustments,
246
+ exchangeRate: subtotals.exchangeRate,
247
+ items: subtotals.items,
248
+ landedCostTotal: subtotals.landedCostTotal,
249
+ presentmentCurrencyCode: subtotals.presentmentCurrencyCode,
250
+ shipping: subtotals.shipping,
251
+ total: subtotals.total,
252
+ });
238
253
  }
239
- stripeStore.isFetchingLandedCost = false;
240
254
  }
255
+ catch (err) {
256
+ // default to empty array if we failed to fetch landed cost, so we can show the error message
257
+ cartStore.landedCostData = [];
258
+ cartStore.shippingData = [];
259
+ logError(err);
260
+ }
261
+ stripeStore.isFetchingLandedCost = false;
262
+ };
263
+ const stripeStoreApplyPromoCode = async () => {
264
+ var _a, _b;
265
+ await stripeStorePrefetchLandedCost({
266
+ applyingPromocode: true,
267
+ });
268
+ // Go back to shipping step if we are in payment step so user can reselect shipping method
269
+ if (cartStore.step === 'payment') {
270
+ cartStorePreviousStep();
271
+ }
272
+ // This is the cheapest service level since we already sorted them after fetching landed cost
273
+ const cheapestServiceLevel = (_a = cartStore.shippingData) === null || _a === void 0 ? void 0 : _a.find(Boolean);
274
+ // Landed cost that matches with service level
275
+ const matchLandedCost = (_b = cartStore.landedCostData) === null || _b === void 0 ? void 0 : _b.find(x => x.landedCost.id === (cheapestServiceLevel === null || cheapestServiceLevel === void 0 ? void 0 : cheapestServiceLevel.id));
276
+ if (!cheapestServiceLevel || !matchLandedCost) {
277
+ return;
278
+ }
279
+ await cartStoreUpdateSelectedShippingOption(cheapestServiceLevel, matchLandedCost.landedCostId);
280
+ };
281
+ const stripeStoreResetPromoCode = () => {
282
+ cartStore.promoCode = '';
283
+ sessionStorage.removeItem('promoCode');
284
+ // reset promocode error state
285
+ cartStore.promoCodeError = false;
286
+ cartStore.promoCodeApplied = false;
287
+ };
288
+ const stripeStoreRemovePromoCode = async () => {
289
+ // Go back to shipping step if we are in payment step so user can reselect shipping method
290
+ if (cartStore.step === 'payment') {
291
+ cartStorePreviousStep();
292
+ }
293
+ stripeStoreResetPromoCode();
294
+ await stripeStoreApplyPromoCode();
241
295
  };
242
296
  const stripeStoreMessageBasedOnStatus = (status) => {
243
297
  let messages = [];
@@ -372,7 +426,7 @@ const stripeStoreInitCheckoutSession = async () => {
372
426
  });
373
427
  stripeStore.isFetchingSession = false;
374
428
  if (errors.length || !json) {
375
- logError('Error occured when creating checkout session', JSON.stringify(errors, null, 2));
429
+ logError('Error occurred when creating checkout session', JSON.stringify(errors, null, 2));
376
430
  return false;
377
431
  }
378
432
  const result = json.checkoutSessionCreate;
@@ -521,7 +575,7 @@ const stripeStoreTranslateAddressToLatin = async ({ addressInvalidCharactersList
521
575
  : {},
522
576
  billingAddress: !stripeStore.stripeShippingSameAsBilling
523
577
  ? buildTranslatedAddress({
524
- currentAddress: Object.assign(Object.assign({}, billingAddress), { name: (_d = stripeStore.stripeBillingAddressEventData) === null || _d === void 0 ? void 0 : _d.value.name }) || {},
578
+ currentAddress: Object.assign(Object.assign({}, billingAddress), { name: (_d = stripeStore.stripeBillingAddressEventData) === null || _d === void 0 ? void 0 : _d.value.name }),
525
579
  translatedAddressResult: json.billingAddress || null,
526
580
  })
527
581
  : {},
@@ -536,4 +590,4 @@ onChange('clientSecret', clientSecret => {
536
590
  sessionStorage.removeItem('zonos--client-secret');
537
591
  }
538
592
  });
539
- export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreHandleInventoryCheck, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, };
593
+ export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreHandleInventoryCheck, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, };
@@ -191,7 +191,7 @@ const initLocalizationStore = async () => {
191
191
  initHelloCountryList(allCountries || {});
192
192
  const { country, locale } = localization;
193
193
  // update selected country code in store
194
- void localizationStoreUpdateSelectedCountryCode(country);
194
+ localizationStoreUpdateSelectedCountryCode(country);
195
195
  // use locale from params if it exists, otherwise use locale from localization
196
196
  const overrideLocale = getOverrideLocale();
197
197
  localizationStore.selectedLocale = overrideLocale || locale || 'en';
@@ -206,10 +206,9 @@ const initLocalizationStore = async () => {
206
206
  if (!localizationStore.selectedCountryCode &&
207
207
  devSites.some(site => window.location.origin.includes(site))) {
208
208
  // update selected country code in store
209
- void localizationStoreUpdateSelectedCountryCode('US');
209
+ localizationStoreUpdateSelectedCountryCode('US');
210
210
  }
211
211
  localizationStore.localizationLoaded = true;
212
- void getCustomMessages();
213
212
  };
214
213
  const updateCheckoutSessionLanguage = async () => {
215
214
  if (!cartStore.checkoutSessionId) {
@@ -8,6 +8,9 @@ export const stringsArabic = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'أعلى من الحد الأدنى لـ',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'أضف رمز ترويجي',
13
+ },
11
14
  Address: {
12
15
  value: 'العنوان',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsArabic = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'حدث خطأ غير متوقع عند معالجة طلب PayPal.',
22
25
  },
26
+ Apply: {
27
+ value: 'تطبيق',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'هل أنت متأكد؟',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsArabic = {
122
128
  Hide: {
123
129
  value: 'اخفِ',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'رمز ترويجي غير صالح',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'متابعة التسوق',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsBase = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Above de minimis threshold for',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Add promotional code',
13
+ },
11
14
  Address: {
12
15
  value: 'Address',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsBase = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'An unexpected error occurred when processing PayPal order.',
22
25
  },
26
+ Apply: {
27
+ value: 'Apply',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Are you sure?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsBase = {
122
128
  Hide: {
123
129
  value: 'Hide',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Invalid promo code',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Keep shopping',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsChinese = {
8
8
  'Above de minimis threshold for': {
9
9
  value: '超过最低征税门槛',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: '添加促销代码',
13
+ },
11
14
  Address: {
12
15
  value: '地址',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsChinese = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: '处理PayPal订单时发生意外错误。',
22
25
  },
26
+ Apply: {
27
+ value: '应用',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: '你确定吗?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsChinese = {
122
128
  Hide: {
123
129
  value: '隐藏',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: '无效的促销代码',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: '继续购物',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsDanish = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Over de minimis-grænsen for',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Tilføj kampagnekode',
13
+ },
11
14
  Address: {
12
15
  value: 'Adresse',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsDanish = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Der opstod en uventet fejl ved behandling af PayPal-ordren.',
22
25
  },
26
+ Apply: {
27
+ value: 'Anvend',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Er du sikker?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsDanish = {
122
128
  Hide: {
123
129
  value: 'Skjul',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Ugyldig kampagnekode',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Fortsæt med at handle',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsDutch = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Boven de minimale drempel voor',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Promotiecode toevoegen',
13
+ },
11
14
  Address: {
12
15
  value: 'Adres',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsDutch = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Er is een onverwachte fout opgetreden bij het verwerken van de PayPal-bestelling.',
22
25
  },
26
+ Apply: {
27
+ value: 'Toepassen',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Weet je het zeker?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsDutch = {
122
128
  Hide: {
123
129
  value: 'Verbergen',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Ongeldige promotiecode',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Blijf winkelen',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsFrench = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Au-dessus du seuil de minimis pour',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Ajouter un code promotionnel',
13
+ },
11
14
  Address: {
12
15
  value: 'Adresse',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsFrench = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: "Une erreur inattendue s'est produite lors du traitement de la commande PayPal.",
22
25
  },
26
+ Apply: {
27
+ value: 'Appliquer',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Es-tu sûr?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsFrench = {
122
128
  Hide: {
123
129
  value: 'Cacher',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Code promotionnel invalide',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Continuer à faire du shopping',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsGerman = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Über der Mindestgrenze für',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Promo-Code hinzufügen',
13
+ },
11
14
  Address: {
12
15
  value: 'Adresse',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsGerman = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Beim Verarbeiten der PayPal-Bestellung ist ein unerwarteter Fehler aufgetreten.',
22
25
  },
26
+ Apply: {
27
+ value: 'Anwenden',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Bist du sicher?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsGerman = {
122
128
  Hide: {
123
129
  value: 'Verstecken',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Ungültiger Promo-Code',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Einkauf fortsetzen',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsHebrew = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'מעל סף המינימום עבור',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'הוסף קוד מבצע',
13
+ },
11
14
  Address: {
12
15
  value: 'כתובת',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsHebrew = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'אירעה שגיאה בלתי צפויה בעת עיבוד הזמנת PayPal.',
22
25
  },
26
+ Apply: {
27
+ value: 'החל',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'אתה בטוח?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsHebrew = {
122
128
  Hide: {
123
129
  value: 'הסתר',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'קוד מבצע לא תקף',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'המשך בקנייה',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsIndonesian = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Di atas ambang batas de minimis untuk',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Tambahkan kode promosi',
13
+ },
11
14
  Address: {
12
15
  value: 'Alamat',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsIndonesian = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Terjadi kesalahan tak terduga saat memproses pesanan PayPal.',
22
25
  },
26
+ Apply: {
27
+ value: 'Terapkan',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Apakah Anda yakin?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsIndonesian = {
122
128
  Hide: {
123
129
  value: 'Sembunyikan',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Kode promo tidak valid',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Lanjut belanja',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsItalian = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Sopra la soglia di minimis per',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Aggiungi codice promozionale',
13
+ },
11
14
  Address: {
12
15
  value: 'Indirizzo',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsItalian = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: "Si è verificato un errore imprevisto durante l'elaborazione dell'ordine PayPal.",
22
25
  },
26
+ Apply: {
27
+ value: 'Applica',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Sei sicuro?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsItalian = {
122
128
  Hide: {
123
129
  value: 'Nascondi',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Codice promozionale non valido',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Continua gli acquisti',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsJapanese = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'デミニマスの閾値を超える',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'プロモーションコードを追加',
13
+ },
11
14
  Address: {
12
15
  value: '住所',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsJapanese = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'PayPal注文の処理中に予期しないエラーが発生しました。',
22
25
  },
26
+ Apply: {
27
+ value: '適用',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: '本気ですか?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsJapanese = {
122
128
  Hide: {
123
129
  value: '隠す',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: '無効なプロモーションコード',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: '買い物を続ける',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsKorean = {
8
8
  'Above de minimis threshold for': {
9
9
  value: '최소 임계값을 초과하여',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: '프로모션 코드 추가',
13
+ },
11
14
  Address: {
12
15
  value: '주소',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsKorean = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'PayPal 주문을 처리하는 중에 예기치 않은 오류가 발생했습니다.',
22
25
  },
26
+ Apply: {
27
+ value: '적용',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: '확실합니까?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsKorean = {
122
128
  Hide: {
123
129
  value: '숨기다',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: '유효하지 않은 프로모션 코드',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: '쇼핑 계속하기',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsNorwegian = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Over minstegrensen for',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Legg til kampanjekode',
13
+ },
11
14
  Address: {
12
15
  value: 'Adresse',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsNorwegian = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'En uventet feil oppstod ved behandling av PayPal-bestillingen.',
22
25
  },
26
+ Apply: {
27
+ value: 'Bruk',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Er du sikker?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsNorwegian = {
122
128
  Hide: {
123
129
  value: 'Gjem',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Ugyldig kampanjekode',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Fortsett å handle',
127
136
  },