@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
@@ -8,6 +8,9 @@ export const stringsPolish = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Powyżej progu minimis dla',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Dodaj kod promocyjny',
13
+ },
11
14
  Address: {
12
15
  value: 'Adres',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsPolish = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Wystąpił nieoczekiwany błąd podczas przetwarzania zamówienia PayPal.',
22
25
  },
26
+ Apply: {
27
+ value: 'Zastosuj',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Jesteś pewien?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsPolish = {
122
128
  Hide: {
123
129
  value: 'Ukryj',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Nieprawidłowy kod promocyjny',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Kontynuuj zakupy',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsPortuguese = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Acima do limite de isenção para',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Adicionar código promocional',
13
+ },
11
14
  Address: {
12
15
  value: 'Endereço',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsPortuguese = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Ocorreu um erro inesperado ao processar o pedido do PayPal.',
22
25
  },
26
+ Apply: {
27
+ value: 'Aplicar',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Você tem certeza?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsPortuguese = {
122
128
  Hide: {
123
129
  value: 'Esconder',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Código promocional inválido',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Continuar comprando',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsRussian = {
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 stringsRussian = {
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 stringsRussian = {
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 stringsSpanish = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Por encima del umbral mínimo para',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Agregar código promocional',
13
+ },
11
14
  Address: {
12
15
  value: 'Dirección',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsSpanish = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Se produjo un error inesperado al procesar el pedido de PayPal.',
22
25
  },
26
+ Apply: {
27
+ value: 'Aplicar',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: '¿Estás seguro?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsSpanish = {
122
128
  Hide: {
123
129
  value: 'Ocultar',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Código promocional no válido',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Seguir comprando',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsSwedish = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Över minimibeloppet för',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Lägg till kampanjkod',
13
+ },
11
14
  Address: {
12
15
  value: 'Adress',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsSwedish = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Ett oväntat fel inträffade vid bearbetning av PayPal-beställningen.',
22
25
  },
26
+ Apply: {
27
+ value: 'Tillämpa',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Är du säker?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsSwedish = {
122
128
  Hide: {
123
129
  value: 'Dölj',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Ogiltig kampanjkod',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Fortsätt handla',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsTurkish = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Minimum sınırın üzerinde',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Promosyon kodu ekle',
13
+ },
11
14
  Address: {
12
15
  value: 'Adres',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsTurkish = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'PayPal siparişi işlenirken beklenmedik bir hata oluştu.',
22
25
  },
26
+ Apply: {
27
+ value: 'Uygula',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Emin misiniz?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsTurkish = {
122
128
  Hide: {
123
129
  value: 'Sakla',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Geçersiz promosyon kodu',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Alışverişe devam et',
127
136
  },
@@ -8,6 +8,9 @@ export const stringsVietnamese = {
8
8
  'Above de minimis threshold for': {
9
9
  value: 'Vượt ngưỡng miễn thuế đối với',
10
10
  },
11
+ 'Add promotional code': {
12
+ value: 'Thêm mã khuyến mãi',
13
+ },
11
14
  Address: {
12
15
  value: 'Địa chỉ',
13
16
  },
@@ -20,6 +23,9 @@ export const stringsVietnamese = {
20
23
  'An unexpected error occurred when processing PayPal order.': {
21
24
  value: 'Đã xảy ra lỗi bất ngờ khi xử lý đơn hàng PayPal.',
22
25
  },
26
+ Apply: {
27
+ value: 'Áp dụng',
28
+ },
23
29
  'Are you sure?': {
24
30
  value: 'Bạn có chắc không?',
25
31
  },
@@ -122,6 +128,9 @@ export const stringsVietnamese = {
122
128
  Hide: {
123
129
  value: 'Ẩn',
124
130
  },
131
+ 'Invalid promo code': {
132
+ value: 'Mã khuyến mãi không hợp lệ',
133
+ },
125
134
  'Keep shopping': {
126
135
  value: 'Tiếp tục mua sắm',
127
136
  },
@@ -135,7 +135,7 @@ export class ZonosAddress {
135
135
  }
136
136
  render() {
137
137
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
138
- return (h(Host, { key: '2cecb49ed22bd0d5ce22c4f2110b37ecf7935cca', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '101635210ab6cb3b9a44b47eec101187d1c3a4ac', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '049f2b86986471d45bd413813307ec489d9f1993', class: "zonos--address-component" })));
138
+ return (h(Host, { key: 'c8d513bc9890590db622ec8f26d4e9b0694c33e5', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '775b454620360bed4186a23371bc3867a5745155', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '4844b5379a33a3668cae0036c1a952cd42229efb', class: "zonos--address-component" })));
139
139
  }
140
140
  static get is() { return "zonos-address"; }
141
141
  static get encapsulation() { return "scoped"; }
@@ -42,7 +42,7 @@ export class ZonosLinkAuthentication {
42
42
  }
43
43
  render() {
44
44
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
45
- return (h(Host, { key: 'f0b26abf99ef99c6665dabdddebc9ff086b6816c', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '898dbdffac06fe2a68af90610a22044bb72391ce', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'e2ec9abb0cf76a39a1262e1366e375dd898450cd', class: "zonos--link-authentication-component" })));
45
+ return (h(Host, { key: '7c110f013b4e24c92a4194045dc084fb795d0f91', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: 'dcbbd48a47c696641fbd64cdfff16946824ffc46', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'a77b5cb13e7e15b2a69efaa179abacc52061e9d0', class: "zonos--link-authentication-component" })));
46
46
  }
47
47
  static get is() { return "zonos-link-authentication"; }
48
48
  static get encapsulation() { return "scoped"; }
@@ -36,7 +36,7 @@ export class ZonosPayment {
36
36
  }
37
37
  render() {
38
38
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
39
- return (h(Host, { key: 'ab601d9a0cc6fe2fee19f45d6321dcc81b418cff', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '27857c99c59e4913fa403ef5b23b5b7d7f32bd45', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '329b5a5617f0c5942b209df1ccf3bfcb4ddabb0c', class: "zonos--payment-component" }), h("div", { key: '7abb08922e9f607314713fc9fa762a3bb8a35b13', class: "zonos--payment-paypal-container" })));
39
+ return (h(Host, { key: 'c461a967d00b2d96fa70aaaf1651b435cdcd84bd', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '44da1d89ce19f7174cad1214ab9463f0b1174c0d', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'b9e3491b48d9ede19a5cdef639bd47e6bf0ba742', class: "zonos--payment-component" }), h("div", { key: '578516ce1ca1dc01eebb2268bb5449613e14298f', class: "zonos--payment-paypal-container" })));
40
40
  }
41
41
  static get is() { return "zonos-payment"; }
42
42
  static get encapsulation() { return "scoped"; }
@@ -74,6 +74,17 @@ export const prepCartCalculateLandedCost = (cartId) => {
74
74
  lastName: shippingLastName,
75
75
  phone: translatedShippingAddress.phone,
76
76
  },
77
+ landedCostAdjustments: cartStore.promoCode
78
+ ? [
79
+ {
80
+ amount: 0,
81
+ productId: null,
82
+ promoCode: cartStore.promoCode,
83
+ sku: null,
84
+ type: 'PROMO_CODE',
85
+ },
86
+ ]
87
+ : [],
77
88
  shippingAddress: {
78
89
  addressLine1: translatedShippingAddress.line1,
79
90
  addressLine2: translatedShippingAddress.line2,
@@ -133,6 +144,17 @@ export const prepCalculateLandedCost = () => {
133
144
  phone: translatedShippingAddress.phone,
134
145
  },
135
146
  items: cartStore.items,
147
+ landedCostAdjustments: cartStore.promoCode
148
+ ? [
149
+ {
150
+ amount: 0,
151
+ productId: null,
152
+ promoCode: cartStore.promoCode,
153
+ sku: null,
154
+ type: 'PROMO_CODE',
155
+ },
156
+ ]
157
+ : [],
136
158
  shippingAddress: {
137
159
  addressLine1: translatedShippingAddress.line1,
138
160
  addressLine2: translatedShippingAddress.line2,
@@ -5,8 +5,6 @@ import { handleFetch } from "../handleFetch";
5
5
  export const trackConversionEvent = async (eventName, metadata) => {
6
6
  var _a, _b;
7
7
  const isDevelopment = window.location.href.includes('zonos.com') ||
8
- // legacy mock checkout, no need to track analytics for this
9
- window.location.href.includes('checkout.iglobalstores.com') ||
10
8
  !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.zonosQaUrl) ||
11
9
  !!((_b = window.Zonos) === null || _b === void 0 ? void 0 : _b.debug);
12
10
  if (isDevelopment &&
@@ -9,6 +9,7 @@ export const triggerBuildLandedCost = async (buildLandedCost) => {
9
9
  billingContact: data.billingContact,
10
10
  checkoutSessionId: data.checkoutSessionId,
11
11
  contact: data.contact,
12
+ landedCostAdjustments: data.landedCostAdjustments,
12
13
  shippingAddress: data.shippingAddress,
13
14
  zonosApiRoute: fallbackApiList['vercel'],
14
15
  });
@@ -180,6 +180,7 @@ export const handleFetch = async (path, _opts) => {
180
180
  method });
181
181
  // This is for testing fallback API, set fallback API type to start with
182
182
  const useFallbackApi = new URLSearchParams(window.location.search).get('useFallbackApi');
183
+ log(path, 'info');
183
184
  return handleRequestWithFallback({
184
185
  basePathType: useFallbackApi || MAIN_BASE_API_TYPE,
185
186
  options,
@@ -23,7 +23,7 @@ export const currencyFormat = ({ amount, currency, }) => {
23
23
  const { targetFormat } = exchangeRate || {};
24
24
  if (!targetFormat || !exchangeRate) {
25
25
  // Return the amount as a string if no exchange rate is available
26
- return `${amount.toString()} ${targetCurrency}`;
26
+ return `${amount.toFixed(2)} ${targetCurrency}`;
27
27
  }
28
28
  const minimumFractionDigits = targetFormat.scale || 2;
29
29
  const isIE = window.navigator.userAgent.indexOf('MSIE ') !== -1;
@@ -1,5 +1,30 @@
1
- export const log = (message, type, ...additionalInfo) => {
1
+ const startTime = performance.now();
2
+ export const allLogs = [];
3
+ const prepInfo = (info) => {
4
+ if (typeof info === 'string') {
5
+ return info;
6
+ }
7
+ try {
8
+ const infoToJson = JSON.stringify(info);
9
+ return infoToJson;
10
+ }
11
+ catch (e1) {
12
+ if (info && typeof info.toString === 'function') {
13
+ const infoToString = info.toString();
14
+ return infoToString;
15
+ }
16
+ return 'Unable to stringify info';
17
+ }
18
+ };
19
+ export const log = (message, type, ..._additionalInfo) => {
2
20
  var _a, _b;
21
+ const time = performance.now() - startTime;
22
+ const elapsedTime =
23
+ // format the time to seconds if over 1 second
24
+ time > 1000 ? `${(time / 1000).toFixed(2)}s` : `${time.toFixed(2)}ms`;
25
+ const additionalInfo = [`(${elapsedTime})`, ..._additionalInfo];
26
+ const preppedInfo = additionalInfo.map(prepInfo).join(' ');
27
+ allLogs.push([type, message, preppedInfo].filter(Boolean).join(' '));
3
28
  const isDebug = !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.debug) ||
4
29
  !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
5
30
  // if debug is false, do not log
@@ -1,10 +1,12 @@
1
1
  import { fallbackApiList, getNextFallbackApiType, MAIN_BASE_API, } from "../getNextFallbackApi";
2
+ import { log } from "./log";
2
3
  /**
3
4
  * This is the time in milliseconds after release time that we will start sending error logs to the new API
4
5
  * @default 1 hour
5
6
  */
6
7
  const postReleaseReportingDuration = 1 * 3600 * 1000; // 1 hour
7
8
  export const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseErrorReporting, }) => {
9
+ log('sendErrorLog', 'warn', endpoint, metadata, errors);
8
10
  if (shouldPostReleaseErrorReporting) {
9
11
  // We only want to report errors that happened if current time is less than 2 hours after release time
10
12
  const releaseTime = Number(window.Zonos.releaseDate);
@@ -1,4 +1,4 @@
1
- import { h as handleFetch, l as log, a as logError } from './handleFetch-80ecfb91.js';
1
+ import { h as handleFetch, l as log, a as logError } from './handleFetch-0133265e.js';
2
2
 
3
3
  const getTempCartById = async (cartId) => {
4
4
  const { errors, json } = await handleFetch('/api/zonos-elements/get-temp-cart', {