@zonos/elements 1.3.218 → 1.3.219

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 (397) hide show
  1. package/dist/cjs/buildCartItemsByTempCart-309fcebf.js +28 -0
  2. package/dist/cjs/{cart-c54d05ce.js → cart-9a2b32e4.js} +90 -47
  3. package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
  4. package/dist/cjs/index.cjs.js +19 -9
  5. package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/localization-b12edb2a.js +738 -0
  8. package/dist/cjs/{paypal-d36b5dd1.js → paypal-e80871d0.js} +12 -8
  9. package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
  10. package/dist/cjs/{localization-ab7e1902.js → translationStore-20a6d8bf.js} +963 -734
  11. package/dist/cjs/zonos-address_11.cjs.entry.js +102 -72
  12. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  13. package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +73 -1292
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
  19. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
  20. package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
  21. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
  23. package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
  26. package/dist/cjs/zonos-elements.cjs.js +1 -1
  27. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +15 -5
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
  29. package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
  30. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
  32. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  33. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
  35. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  38. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  39. package/dist/collection/collection-manifest.json +10 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
  43. package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
  49. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
  50. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
  61. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
  62. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
  63. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
  64. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
  65. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
  66. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
  67. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
  68. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
  69. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
  70. package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
  71. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
  72. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  73. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  74. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  75. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  76. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  77. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  78. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  79. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  80. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  81. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  82. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
  83. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
  84. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  85. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  86. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  87. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  88. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  89. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  90. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  91. package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
  92. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
  93. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
  94. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
  95. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  96. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  97. package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
  98. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  99. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  100. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  101. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  102. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  103. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  104. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  105. package/dist/collection/components/main/zonos-controller.js +91 -25
  106. package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
  107. package/dist/collection/components/store/checkout/cart.js +36 -15
  108. package/dist/collection/components/store/checkout/collect.js +157 -0
  109. package/dist/collection/components/store/checkout/paypal.js +4 -2
  110. package/dist/collection/components/store/checkout/stripe.js +31 -12
  111. package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
  112. package/dist/collection/components/store/translationStore/strings.base.js +48 -0
  113. package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
  114. package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
  115. package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
  116. package/dist/collection/components/store/translationStore/strings.french.js +48 -0
  117. package/dist/collection/components/store/translationStore/strings.german.js +48 -0
  118. package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
  119. package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
  120. package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
  121. package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
  122. package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
  123. package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
  124. package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
  125. package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
  126. package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
  127. package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
  128. package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
  129. package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
  130. package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
  131. package/dist/collection/components/store/translationStore.js +2 -1
  132. package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
  133. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  134. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  135. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
  136. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  137. package/dist/collection/components/utils/checkout/initCollect.js +15 -0
  138. package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
  139. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
  140. package/dist/collection/components/utils/renderFallback.js +7 -0
  141. package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
  142. package/dist/collection/scripts/_zonosBase.js +7 -1
  143. package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
  144. package/dist/collection/types/generated/graphql.internal.types.js +103 -0
  145. package/dist/collection/types/index.js +1 -0
  146. package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
  147. package/dist/esm/{cart-bb0ee971.js → cart-acf4ebf5.js} +68 -27
  148. package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
  149. package/dist/esm/index.js +19 -9
  150. package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/localization-8646f526.js +719 -0
  153. package/dist/esm/{paypal-bd4520eb.js → paypal-2fa930eb.js} +7 -4
  154. package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
  155. package/dist/esm/{localization-d8326254.js → translationStore-c9743292.js} +963 -718
  156. package/dist/esm/zonos-address_11.entry.js +71 -41
  157. package/dist/esm/zonos-badge.entry.js +3 -3
  158. package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
  159. package/dist/esm/zonos-button_3.entry.js +3 -3
  160. package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +23 -1240
  161. package/dist/esm/zonos-checkout.entry.js +6 -29
  162. package/dist/esm/zonos-collapse.entry.js +2 -2
  163. package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
  164. package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
  165. package/dist/esm/zonos-collect.entry.js +464 -0
  166. package/dist/esm/zonos-component.entry.js +1 -1
  167. package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
  168. package/dist/esm/zonos-controller.entry.js +84 -28
  169. package/dist/esm/zonos-country-flag.entry.js +2 -1
  170. package/dist/esm/zonos-country-select_4.entry.js +11 -10
  171. package/dist/esm/zonos-elements.js +1 -1
  172. package/dist/esm/zonos-empty-state-payment_4.entry.js +15 -5
  173. package/dist/esm/zonos-hello-dialog.entry.js +6 -5
  174. package/dist/esm/zonos-hello.entry.js +2 -1
  175. package/dist/esm/zonos-input.entry.js +4 -4
  176. package/dist/esm/zonos-language-select_2.entry.js +6 -5
  177. package/dist/esm/zonos-link.entry.js +1 -1
  178. package/dist/esm/zonos-logo.entry.js +2 -2
  179. package/dist/esm/zonos-stripe-input.entry.js +9 -6
  180. package/dist/esm/zonos-text.entry.js +1 -1
  181. package/dist/esm/zonos-toggle.entry.js +2 -2
  182. package/dist/esm/zonos-tooltip.entry.js +2 -2
  183. package/dist/esm/zonos-v-stack.entry.js +2 -2
  184. package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
  185. package/dist/esm-es5/cart-acf4ebf5.js +1 -0
  186. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
  187. package/dist/esm-es5/index.js +1 -1
  188. package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
  189. package/dist/esm-es5/loader.js +1 -1
  190. package/dist/esm-es5/localization-8646f526.js +1 -0
  191. package/dist/esm-es5/paypal-2fa930eb.js +17 -0
  192. package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
  193. package/dist/esm-es5/translationStore-c9743292.js +1 -0
  194. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  195. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  196. package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
  197. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  198. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  199. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  200. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  201. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
  202. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
  203. package/dist/esm-es5/zonos-collect.entry.js +1 -0
  204. package/dist/esm-es5/zonos-component.entry.js +1 -1
  205. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
  206. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  207. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  208. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  209. package/dist/esm-es5/zonos-elements.js +1 -1
  210. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  211. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  212. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  213. package/dist/esm-es5/zonos-input.entry.js +1 -1
  214. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  215. package/dist/esm-es5/zonos-link.entry.js +1 -1
  216. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  217. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  218. package/dist/esm-es5/zonos-text.entry.js +1 -1
  219. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  220. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  221. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  222. package/dist/scripts/index.d.ts +470 -3
  223. package/dist/scripts/index.js +1 -1
  224. package/dist/scripts/loadZonos.js +1 -1
  225. package/dist/scripts/zonos.js +1 -1
  226. package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
  227. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
  228. package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
  229. package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
  230. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
  231. package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
  232. package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
  233. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
  234. package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
  235. package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
  236. package/dist/types/components/main/zonos-controller.d.ts +5 -0
  237. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
  238. package/dist/types/components/store/checkout/cart.d.ts +23 -3
  239. package/dist/types/components/store/checkout/collect.d.ts +21 -0
  240. package/dist/types/components/store/checkout/paypal.d.ts +4 -3
  241. package/dist/types/components/store/checkout/stripe.d.ts +6 -2
  242. package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
  243. package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
  244. package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
  245. package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
  246. package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
  247. package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
  248. package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
  249. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
  250. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
  251. package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
  252. package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
  253. package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
  254. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
  255. package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
  256. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
  257. package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
  258. package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
  259. package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
  260. package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
  261. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
  262. package/dist/types/components/store/translationStore.d.ts +2 -1
  263. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
  264. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
  265. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  266. package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
  267. package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
  268. package/dist/types/components/utils/renderFallback.d.ts +6 -0
  269. package/dist/types/components.d.ts +401 -2
  270. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  271. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  272. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  273. package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
  274. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
  275. package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
  276. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  277. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  278. package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
  279. package/dist/types/types/generated/graphql.internal.types.ts +428 -10
  280. package/dist/types/types/index.d.ts +1 -0
  281. package/dist/zonos-elements/index.esm.js +1 -1
  282. package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
  284. package/dist/zonos-elements/p-07bea979.system.js +1 -0
  285. package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
  286. package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
  287. package/dist/zonos-elements/p-0ef2a242.js +1 -0
  288. package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
  289. package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
  290. package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
  291. package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
  292. package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
  294. package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
  297. package/dist/zonos-elements/p-29c80a34.js +1 -0
  298. package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
  300. package/dist/zonos-elements/p-2cc031b3.js +17 -0
  301. package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
  302. package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
  303. package/dist/zonos-elements/p-485416ec.js +1 -0
  304. package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
  305. package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
  306. package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
  307. package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
  308. package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
  310. package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
  311. package/dist/zonos-elements/p-6761091e.entry.js +1 -0
  312. package/dist/zonos-elements/p-6761286d.js +1 -0
  313. package/dist/zonos-elements/p-69451a50.system.js +1 -0
  314. package/dist/zonos-elements/p-69fd1b88.js +1 -0
  315. package/dist/zonos-elements/p-6dd63754.system.js +1 -0
  316. package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
  317. package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
  319. package/dist/zonos-elements/p-772ac0b7.js +1 -0
  320. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  321. package/dist/zonos-elements/p-81e23f30.system.js +1 -0
  322. package/dist/zonos-elements/p-873b698a.entry.js +1 -0
  323. package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
  324. package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
  325. package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
  326. package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
  327. package/dist/zonos-elements/p-986ebccc.js +1 -0
  328. package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
  329. package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
  330. package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
  331. package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
  332. package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
  333. package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
  334. package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
  335. package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
  336. package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
  337. package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
  338. package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
  339. package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
  340. package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
  341. package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
  342. package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
  343. package/dist/zonos-elements/p-d63696ac.system.js +17 -0
  344. package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
  345. package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
  346. package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
  347. package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
  348. package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
  349. package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
  350. package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
  351. package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
  352. package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
  353. package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
  354. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  355. package/package.json +1 -1
  356. package/dist/cjs/zonos-card.cjs.entry.js +0 -49
  357. package/dist/esm/zonos-card.entry.js +0 -45
  358. package/dist/esm-es5/cart-bb0ee971.js +0 -1
  359. package/dist/esm-es5/localization-d8326254.js +0 -1
  360. package/dist/esm-es5/paypal-bd4520eb.js +0 -17
  361. package/dist/esm-es5/zonos-banner.entry.js +0 -1
  362. package/dist/esm-es5/zonos-card.entry.js +0 -1
  363. package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
  364. package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
  365. package/dist/zonos-elements/p-0631d2b9.js +0 -1
  366. package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
  367. package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
  368. package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
  369. package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
  370. package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
  371. package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
  372. package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
  373. package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
  375. package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
  376. package/dist/zonos-elements/p-674981ad.system.js +0 -1
  377. package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
  378. package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
  379. package/dist/zonos-elements/p-795d223d.entry.js +0 -1
  380. package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
  382. package/dist/zonos-elements/p-88f7256d.js +0 -1
  383. package/dist/zonos-elements/p-8b083884.entry.js +0 -1
  384. package/dist/zonos-elements/p-a449940d.entry.js +0 -1
  385. package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
  386. package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
  387. package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
  389. package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
  390. package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
  391. package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
  392. package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
  393. package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
  394. package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
  395. package/dist/zonos-elements/p-ef75da6f.js +0 -17
  396. package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
  397. package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
@@ -5,6 +5,9 @@ export const stringsTurkish = {
5
5
  ' (Duties prepaid)': {
6
6
  value: ' (Gümrük vergileri önceden ödenmiş)',
7
7
  },
8
+ 'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
9
+ value: 'Ödeme detaylarınızla birlikte bir onay e-postası kayıtlarınız için gönderildi. Herhangi bir sorunuz veya desteğe ihtiyacınız varsa, ekibimiz size yardımcı olmaya hazır.',
10
+ },
8
11
  'Above de minimis threshold for': {
9
12
  value: 'Minimum sınırın üzerinde',
10
13
  },
@@ -59,6 +62,9 @@ export const stringsTurkish = {
59
62
  'Billing address': {
60
63
  value: 'Fatura Adresi',
61
64
  },
65
+ 'Billing info': {
66
+ value: 'Fatura bilgileri',
67
+ },
62
68
  'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
63
69
  value: 'USD ile ödeme yaparak, kartınız doğrudan para birimi dönüştürmesi olmadan ücretlendirilir. Ancak, USD bazlı olmayan bir kart kullanmak, banka düzeyinde ek para birimi dönüştürme ücretlerine neden olabilir.',
64
70
  },
@@ -101,6 +107,9 @@ export const stringsTurkish = {
101
107
  'Company name (optional)': {
102
108
  value: 'Şirket adı (isteğe bağlı)',
103
109
  },
110
+ 'Confirmation #:[confirmationId]': {
111
+ value: 'Onay #:[confirmationId]',
112
+ },
104
113
  Contact: {
105
114
  value: 'İletişim',
106
115
  },
@@ -125,6 +134,12 @@ export const stringsTurkish = {
125
134
  'Customer information': {
126
135
  value: 'Müşteri bilgileri',
127
136
  },
137
+ 'Customs fees for your recent purchase from [companyName] are ready for payment': {
138
+ value: '[companyName] şirketinden yaptığınız son satın alma için gümrük ücretleri ödemeye hazır',
139
+ },
140
+ 'Customs fees total': {
141
+ value: 'Gümrük ücretleri toplamı',
142
+ },
128
143
  Delivery: {
129
144
  value: 'Teslimat',
130
145
  },
@@ -170,6 +185,9 @@ export const stringsTurkish = {
170
185
  'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
171
186
  value: 'VOEC vergi yasası nedeniyle, tüm siparişler sipariş toplamına bakılmaksızın [percentage] KDV ile değerlendirilecektir.',
172
187
  },
188
+ Duties: {
189
+ value: 'Görevler',
190
+ },
173
191
  'Duties and taxes will be applied to items and shipping.': {
174
192
  value: 'Ürünlere ve kargoya vergi ve gümrük vergisi uygulanacak.',
175
193
  },
@@ -209,6 +227,9 @@ export const stringsTurkish = {
209
227
  Failure: {
210
228
  value: 'Başarısızlık',
211
229
  },
230
+ Fees: {
231
+ value: 'Ücretler',
232
+ },
212
233
  'First name': {
213
234
  value: 'Ad',
214
235
  },
@@ -236,6 +257,9 @@ export const stringsTurkish = {
236
257
  'Invalid promo code': {
237
258
  value: 'Geçersiz promosyon kodu',
238
259
  },
260
+ 'Invalid session': {
261
+ value: 'Geçersiz oturum',
262
+ },
239
263
  Island: {
240
264
  value: 'Ada',
241
265
  },
@@ -308,9 +332,15 @@ export const stringsTurkish = {
308
332
  'Order complete!': {
309
333
  value: 'Sipariş tamamlandı!',
310
334
  },
335
+ 'Order details': {
336
+ value: 'Sipariş detayları',
337
+ },
311
338
  'Order total': {
312
339
  value: 'Sipariş toplamı',
313
340
  },
341
+ 'Ordered from': {
342
+ value: 'Sipariş edilen',
343
+ },
314
344
  'Orders to [countryName] must be over [threshold] to ship.': {
315
345
  value: '[countryName] ülkesine yapılacak siparişlerin [threshold] üzerinde olması gerekir.',
316
346
  },
@@ -332,6 +362,9 @@ export const stringsTurkish = {
332
362
  'Payment failed': {
333
363
  value: 'Ödeme başarısız',
334
364
  },
365
+ 'Payment failed. Please reload the page and try another payment method.': {
366
+ value: 'Ödeme başarısız oldu. Lütfen sayfayı yeniden yükleyin ve başka bir ödeme yöntemi deneyin.',
367
+ },
335
368
  'Payment failed. Please try another payment method.': {
336
369
  value: 'Ödeme başarısız. Lütfen başka bir ödeme yöntemi deneyin.',
337
370
  },
@@ -452,6 +485,9 @@ export const stringsTurkish = {
452
485
  'Select a language': {
453
486
  value: 'Bir dil seçin',
454
487
  },
488
+ 'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
489
+ value: 'Oturumun geçerli bir iniş maliyeti yok. Yardım için lütfen [organizationName] ile iletişime geçin.',
490
+ },
455
491
  'Session timed out': {
456
492
  value: 'Oturum zaman aşımına uğradı',
457
493
  },
@@ -512,12 +548,18 @@ export const stringsTurkish = {
512
548
  'Street or avenue': {
513
549
  value: 'Cadde veya bulvar',
514
550
  },
551
+ Subtotal: {
552
+ value: 'Ara toplam',
553
+ },
515
554
  Success: {
516
555
  value: 'Başarı',
517
556
  },
518
557
  'Tax id is required': {
519
558
  value: 'Vergi kimliği gereklidir',
520
559
  },
560
+ Taxes: {
561
+ value: 'Vergiler',
562
+ },
521
563
  'Taxes and fees': {
522
564
  value: 'Vergiler ve ücretler',
523
565
  },
@@ -530,6 +572,9 @@ export const stringsTurkish = {
530
572
  'Test mode': {
531
573
  value: 'Test modu',
532
574
  },
575
+ 'Thank you for submitting your payment. We appreciate your prompt attention.': {
576
+ value: 'Ödemenizi gönderdiğiniz için teşekkür ederiz. Hızlı dikkatiniz için minnettarız.',
577
+ },
533
578
  'The field is incomplete': {
534
579
  value: 'Alan eksik',
535
580
  },
@@ -551,6 +596,9 @@ export const stringsTurkish = {
551
596
  'To ensure delivery all address details must be in Latin characters.': {
552
597
  value: 'Teslimatı sağlamak için tüm adres detaylarının Latin karakterleriyle olması gerekir.',
553
598
  },
599
+ 'Total paid': {
600
+ value: 'Toplam ödenen',
601
+ },
554
602
  Town: {
555
603
  value: 'Kasaba',
556
604
  },
@@ -5,6 +5,9 @@ export const stringsVietnamese = {
5
5
  ' (Duties prepaid)': {
6
6
  value: ' (Thuế đã trả trước)',
7
7
  },
8
+ 'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
9
+ value: 'Một email xác nhận với chi tiết thanh toán của bạn đã được gửi để lưu trữ. Nếu bạn có bất kỳ câu hỏi nào hoặc cần hỗ trợ, đội ngũ của chúng tôi luôn sẵn sàng giúp đỡ.',
10
+ },
8
11
  'Above de minimis threshold for': {
9
12
  value: 'Vượt ngưỡng miễn thuế đối với',
10
13
  },
@@ -59,6 +62,9 @@ export const stringsVietnamese = {
59
62
  'Billing address': {
60
63
  value: 'Địa chỉ thanh toán',
61
64
  },
65
+ 'Billing info': {
66
+ value: 'Thông tin thanh toán',
67
+ },
62
68
  'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
63
69
  value: 'Bằng cách thanh toán bằng USD, thẻ của bạn sẽ bị tính phí trực tiếp mà không cần chuyển đổi tiền tệ. Tuy nhiên, sử dụng thẻ không dựa trên USD có thể dẫn đến phí chuyển đổi tiền tệ bổ sung ở cấp ngân hàng.',
64
70
  },
@@ -101,6 +107,9 @@ export const stringsVietnamese = {
101
107
  'Company name (optional)': {
102
108
  value: 'Tên công ty (tùy chọn)',
103
109
  },
110
+ 'Confirmation #:[confirmationId]': {
111
+ value: 'Xác nhận #:[confirmationId]',
112
+ },
104
113
  Contact: {
105
114
  value: 'Liên hệ',
106
115
  },
@@ -125,6 +134,12 @@ export const stringsVietnamese = {
125
134
  'Customer information': {
126
135
  value: 'Thông tin khách hàng',
127
136
  },
137
+ 'Customs fees for your recent purchase from [companyName] are ready for payment': {
138
+ value: 'Phí hải quan cho lần mua gần đây của bạn từ [companyName] đã sẵn sàng để thanh toán',
139
+ },
140
+ 'Customs fees total': {
141
+ value: 'Tổng phí hải quan',
142
+ },
128
143
  Delivery: {
129
144
  value: 'Giao hàng',
130
145
  },
@@ -170,6 +185,9 @@ export const stringsVietnamese = {
170
185
  'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
171
186
  value: 'Do luật thuế VOEC, tất cả các đơn hàng sẽ được đánh giá với [percentage] VAT bất kể tổng đơn hàng.',
172
187
  },
188
+ Duties: {
189
+ value: 'Nhiệm vụ',
190
+ },
173
191
  'Duties and taxes will be applied to items and shipping.': {
174
192
  value: 'Thuế và phí sẽ được áp dụng cho hàng hóa và vận chuyển.',
175
193
  },
@@ -209,6 +227,9 @@ export const stringsVietnamese = {
209
227
  Failure: {
210
228
  value: 'Thất bại',
211
229
  },
230
+ Fees: {
231
+ value: 'Phí',
232
+ },
212
233
  'First name': {
213
234
  value: 'Tên',
214
235
  },
@@ -236,6 +257,9 @@ export const stringsVietnamese = {
236
257
  'Invalid promo code': {
237
258
  value: 'Mã khuyến mãi không hợp lệ',
238
259
  },
260
+ 'Invalid session': {
261
+ value: 'Phiên không hợp lệ',
262
+ },
239
263
  Island: {
240
264
  value: 'Đảo',
241
265
  },
@@ -308,9 +332,15 @@ export const stringsVietnamese = {
308
332
  'Order complete!': {
309
333
  value: 'Đơn hàng đã hoàn thành!',
310
334
  },
335
+ 'Order details': {
336
+ value: 'Chi tiết đơn hàng',
337
+ },
311
338
  'Order total': {
312
339
  value: 'Tổng đơn hàng',
313
340
  },
341
+ 'Ordered from': {
342
+ value: 'Đặt hàng từ',
343
+ },
314
344
  'Orders to [countryName] must be over [threshold] to ship.': {
315
345
  value: 'Đơn hàng đến [countryName] phải trên [threshold] mới được gửi.',
316
346
  },
@@ -332,6 +362,9 @@ export const stringsVietnamese = {
332
362
  'Payment failed': {
333
363
  value: 'Thanh toán thất bại',
334
364
  },
365
+ 'Payment failed. Please reload the page and try another payment method.': {
366
+ value: 'Thanh toán thất bại. Vui lòng tải lại trang và thử phương thức thanh toán khác.',
367
+ },
335
368
  'Payment failed. Please try another payment method.': {
336
369
  value: 'Thanh toán thất bại. Vui lòng thử phương thức thanh toán khác.',
337
370
  },
@@ -452,6 +485,9 @@ export const stringsVietnamese = {
452
485
  'Select a language': {
453
486
  value: 'Chọn một ngôn ngữ',
454
487
  },
488
+ 'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
489
+ value: 'Phiên không có chi phí hạ cánh hợp lệ. Vui lòng liên hệ [organizationName] để được hỗ trợ.',
490
+ },
455
491
  'Session timed out': {
456
492
  value: 'Phiên đã hết hạn',
457
493
  },
@@ -512,12 +548,18 @@ export const stringsVietnamese = {
512
548
  'Street or avenue': {
513
549
  value: 'Đường phố hoặc đại lộ',
514
550
  },
551
+ Subtotal: {
552
+ value: 'Tổng phụ',
553
+ },
515
554
  Success: {
516
555
  value: 'Thành công',
517
556
  },
518
557
  'Tax id is required': {
519
558
  value: 'Yêu cầu mã số thuế',
520
559
  },
560
+ Taxes: {
561
+ value: 'Thuế',
562
+ },
521
563
  'Taxes and fees': {
522
564
  value: 'Thuế và phí',
523
565
  },
@@ -530,6 +572,9 @@ export const stringsVietnamese = {
530
572
  'Test mode': {
531
573
  value: 'Chế độ kiểm tra',
532
574
  },
575
+ 'Thank you for submitting your payment. We appreciate your prompt attention.': {
576
+ value: 'Cảm ơn bạn đã gửi thanh toán của mình. Chúng tôi đánh giá cao sự chú ý kịp thời của bạn.',
577
+ },
533
578
  'The field is incomplete': {
534
579
  value: 'Trường chưa hoàn thành',
535
580
  },
@@ -551,6 +596,9 @@ export const stringsVietnamese = {
551
596
  'To ensure delivery all address details must be in Latin characters.': {
552
597
  value: 'Để đảm bảo giao hàng, tất cả chi tiết địa chỉ phải bằng ký tự Latinh.',
553
598
  },
599
+ 'Total paid': {
600
+ value: 'Tổng số đã trả',
601
+ },
554
602
  Town: {
555
603
  value: 'Thị trấn',
556
604
  },
@@ -19,7 +19,7 @@ import { stringsSpanish } from "./translationStore/strings.spanish";
19
19
  import { stringsSwedish } from "./translationStore/strings.swedish";
20
20
  import { stringsTurkish } from "./translationStore/strings.turkish";
21
21
  import { stringsVietnamese } from "./translationStore/strings.vietnamese";
22
- const { state: translationStore } = createStore(() => ({
22
+ const { onChange: translationStoreOnChange, state: translationStore } = createStore(() => ({
23
23
  translatedChunks: stringsBase,
24
24
  }));
25
25
  export { translationStore };
@@ -107,3 +107,4 @@ export const translate = (...[key, replacement]) => {
107
107
  }
108
108
  return ((_b = translationStore.translatedChunks[key]) === null || _b === void 0 ? void 0 : _b.value) || key;
109
109
  };
110
+ export { translationStoreOnChange };
@@ -1,6 +1,6 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import throttle from "lodash/throttle";
3
- import { stripeStore, stripeStorePrefetchLandedCost, } from "../../store/checkout/stripe";
3
+ import { stripeStore, stripeStoreOnChange, stripeStorePrefetchLandedCost, } from "../../store/checkout/stripe";
4
4
  import { getFallbackDefaultCountryCode, localizationStore, } from "../../store/hello/localization";
5
5
  import { storageStore, storageStoreOnChange, } from "../../store/storageStore";
6
6
  import { translate } from "../../store/translationStore";
@@ -8,6 +8,7 @@ import { zonosStore } from "../../store/zonosStore";
8
8
  import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
9
9
  import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
10
10
  import { shouldRenderTaxIdInput } from "../../utils/checkout/shouldRenderTaxIdInput";
11
+ import { classes } from "../../utils/classes";
11
12
  import { extractName } from "../../utils/extractName";
12
13
  import { log } from "../../utils/logging/log";
13
14
  import { logError } from "../../utils/logging/logError";
@@ -17,7 +18,7 @@ import { countryRequireTaxId, shipToTaxIdLabels, } from "../../../types/checkout
17
18
  */
18
19
  export class ZonosAddress {
19
20
  constructor() {
20
- this.onStoreCheckoutSessionIdChangedSubscription = () => { };
21
+ this.storeUnsubscribeList = [];
21
22
  /**
22
23
  * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
23
24
  */
@@ -53,14 +54,6 @@ export class ZonosAddress {
53
54
  */
54
55
  this.trackingSent = false;
55
56
  this.prefetchLandedCost = throttle(stripeStorePrefetchLandedCost, 1000);
56
- this.onStoreCheckoutSessionIdChanged = () => {
57
- const onCheckoutSessionIdChange = () => {
58
- this.checkoutSessionId = storageStore.checkoutSessionId;
59
- };
60
- // Trigger it once on init because onChange doesn't get triggered on initial load
61
- onCheckoutSessionIdChange();
62
- this.onStoreCheckoutSessionIdChangedSubscription = storageStoreOnChange('checkoutSessionId', onCheckoutSessionIdChange);
63
- };
64
57
  }
65
58
  getStripeAddressInstance() {
66
59
  if (this.type === 'billing') {
@@ -270,12 +263,14 @@ export class ZonosAddress {
270
263
  } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
271
264
  }
272
265
  renderCompanyNameInput() {
273
- // No need to render company name for billing address
274
- if (this.type === 'billing') {
266
+ // No need to render company name for billing address (only allow for Collect)
267
+ if (this.type === 'billing' && !window.Zonos.isCollect) {
275
268
  return null;
276
269
  }
277
- // only render the company input if the setting is enabled
278
- const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED';
270
+ // only render the company input if the setting is enabled or the cart is collect
271
+ const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED' ||
272
+ !!window.Zonos.isCollect;
273
+ // No need to render company name for billing address (only allow for Collect)
279
274
  if (!isCompanyNameEnabled) {
280
275
  return null;
281
276
  }
@@ -287,8 +282,11 @@ export class ZonosAddress {
287
282
  // destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
288
283
  const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
289
284
  stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
290
- // cleanup checkout session id subscription
291
- this.onStoreCheckoutSessionIdChangedSubscription();
285
+ // unsubscribe from store subscriptions
286
+ try {
287
+ this.storeUnsubscribeList.forEach(subscription => subscription());
288
+ }
289
+ catch (_a) { }
292
290
  }
293
291
  componentDidLoad() {
294
292
  const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
@@ -297,7 +295,22 @@ export class ZonosAddress {
297
295
  stripeAddressEventData.value.address.line1.length > 0;
298
296
  // @Watch doesn't get trigger on initial load
299
297
  void this.watchInitStripe();
300
- this.onStoreCheckoutSessionIdChanged();
298
+ this.checkoutSessionId = storageStore.checkoutSessionId;
299
+ this.storeUnsubscribeList = [
300
+ storageStoreOnChange('checkoutSessionId', () => {
301
+ this.checkoutSessionId = storageStore.checkoutSessionId;
302
+ }),
303
+ stripeStoreOnChange('stripeElements', () => {
304
+ if (this.type === 'shipping') {
305
+ void this.watchInitStripe();
306
+ }
307
+ }),
308
+ stripeStoreOnChange('stripeElementsForBillingAddress', () => {
309
+ if (this.type === 'billing') {
310
+ void this.watchInitStripe();
311
+ }
312
+ }),
313
+ ];
301
314
  }
302
315
  render() {
303
316
  var _a;
@@ -306,7 +319,11 @@ export class ZonosAddress {
306
319
  this.isAddressFilled = true;
307
320
  }
308
321
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
309
- return (h(Host, { key: '13b9fdc214b7ffeacaa180f1ba0d49032b417b6f', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '7a6ec3c462293e85926b0f379860d8d4edfe6120', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '36c094186e6ce2ce1d1c4e8f56823fd032b3ad9e', class: "zonos--address-component" })));
322
+ return (h(Host, { key: 'ef89e6e083ce9c9bed0bed4653cbc40d451456c0', class: classes([
323
+ 'zonos--address',
324
+ 'zonos--elements',
325
+ `zonos--${this.type}-address`,
326
+ ]) }, this.titleText && (h("zonos-text", { key: '62e73e9284617c5e4f78f25f7160bb4e23246554', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: 'b268422f6e4aa09e74ebac9d3a4c0d7a6594e95e', class: "zonos--address-component" })));
310
327
  }
311
328
  static get is() { return "zonos-address"; }
312
329
  static get encapsulation() { return "scoped"; }
@@ -78,9 +78,9 @@ export class ZonosAddressSuggestions {
78
78
  return segments;
79
79
  }
80
80
  render() {
81
- return (h(Host, { key: 'eeb520d24c5cebca1f425c9648a2bdf0269f74c9', class: "zonos--address-suggestions", role: "group", style: {
81
+ return (h(Host, { key: '3f22f5bcf968d02e34fe46101b8ea4cf4e89051f', class: "zonos--address-suggestions", role: "group", style: {
82
82
  '--zonos--border-radius': getBorderRadius(),
83
- } }, h("ul", { key: 'f7ac29ef14417f8c86dbafcf840204f4c964b3ad', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '13d34e64d8bd7711268a1f5641d0c868a89b949c', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '00f20bd5568762ee581462826410031273e808da', class: "powered-by-container" }, h("zonos-text", { key: 'fc61a8ec973fc2cdf1e137563617cfed0badbb12', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '96343fe696ec0d3990ffebaf450306ca91624d04', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: 'e7c6a9e64c8976a3c3a521b0794d2e82c1919ce2', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
83
+ } }, h("ul", { key: 'fc77bda0480b2b2ef0d2b89cc36413d56f84f90b', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '0981dd0c7e522605417fb72c61d88bde629fada4', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: 'c307293f2d06cb7ea0e9c8d6ee0dd9b017ff2e5e', class: "powered-by-container" }, h("zonos-text", { key: 'a0776ea17615339f10ea7d623a40d9de90fcdbb4', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '6ffdc7d0475a8718372c760b51f2128b0b81e78e', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '6c168c20f1906ba4658998c7bd1e0b0eba860da1', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
84
84
  this.localSuggestions = [];
85
85
  } }))), this.localSuggestions.map(suggestion => (
86
86
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -894,10 +894,10 @@ export class ZonosAddress {
894
894
  this.country = localizationStore.selectedCountryCode;
895
895
  }
896
896
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
897
- return (h(Host, { key: '9e1d9e1ed3fca30876ba8310510873a5b10c6552', class: classes([
897
+ return (h(Host, { key: '29e26b9b269ea277ae508671f0c63483910ad50b', class: classes([
898
898
  'zonos--address zonos--elements',
899
899
  `zonos--${this.type}-address`,
900
- ]) }, h("zonos-text", { key: '2356d42946b3ed93c4670fb876101a1371ac5c14', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
900
+ ]) }, h("zonos-text", { key: 'db6f6cb94da02e5f2c9aca8112ab20e11148281e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
901
901
  }
902
902
  static get is() { return "zonos-custom-address"; }
903
903
  static get encapsulation() { return "scoped"; }
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import { h, Host, } from "@stencil/core";
3
3
  import { cartStore } from "../../store/checkout/cart";
4
- import { stripeStore } from "../../store/checkout/stripe";
4
+ import { stripeStore, stripeStoreOnChange, } from "../../store/checkout/stripe";
5
5
  import { translate } from "../../store/translationStore";
6
6
  import { getBorderRadius } from "../../utils/getBorderRadius";
7
7
  import { log } from "../../utils/logging/log";
@@ -12,6 +12,7 @@ import { validateEmailValue } from "../../utils/validateEmailValue";
12
12
  */
13
13
  export class ZonosLinkAuthentication {
14
14
  constructor() {
15
+ this.storeUnsubscribeList = [];
15
16
  /**
16
17
  * Default email for stripe
17
18
  */
@@ -108,7 +109,19 @@ export class ZonosLinkAuthentication {
108
109
  void this.watchInitStripe();
109
110
  }, 5);
110
111
  }
112
+ disconnectedCallback() {
113
+ // unsubscribe from store subscriptions
114
+ try {
115
+ this.storeUnsubscribeList.forEach(subscription => subscription());
116
+ }
117
+ catch (_a) { }
118
+ }
111
119
  componentDidLoad() {
120
+ this.storeUnsubscribeList = [
121
+ stripeStoreOnChange('stripeElements', () => {
122
+ void this.watchInitStripe();
123
+ }),
124
+ ];
112
125
  // @Watch doesn't get trigger on initial load
113
126
  this.watchInitStripe();
114
127
  if (!this.defaultEmail) {
@@ -141,7 +154,7 @@ export class ZonosLinkAuthentication {
141
154
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
142
155
  return (h(Host, { class: "zonos--link-authentication zonos--elements", style: {
143
156
  '--zonos--border-radius': getBorderRadius(),
144
- } }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), renderEmailAddress(), this.isEmailError && (h("zonos-text", { textColor: "red-600" }, translate('Please enter a valid email address.')))));
157
+ } }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), renderEmailAddress(), this.isEmailError && (h("zonos-text", { textColor: "red-600" }, translate('Please enter a valid email address.')))));
145
158
  }
146
159
  static get is() { return "zonos-link-authentication"; }
147
160
  static get encapsulation() { return "scoped"; }
@@ -57,7 +57,7 @@ export class ZonosPayment {
57
57
  }
58
58
  render() {
59
59
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
60
- return (h(Host, { key: '7210a20afba18d167a6e7d875ba23daa0db774e4', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '4f043b3149cca48d2f4463a826541ebe35d0b6ca', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '15721e208e90b969c075877680a02dca5bb81689', class: "zonos--payment-component" }), h("div", { key: '36d5767821464db479feff18e6368e862550c777', class: "zonos--payment-paypal-container" })));
60
+ return (h(Host, { key: '1828cd97531009303635ded8725233c07e45fba3', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '899f8ef9f1e008a8d613e54fd1196c1bab7cefdc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '9e9b67bd29a4caf71a6f34fba03c67cbff03b0c7', class: "zonos--payment-component" }), h("div", { key: '1aeb4114ca6eac6541e0bafe72077093bdfb777e', class: "zonos--payment-paypal-container" })));
61
61
  }
62
62
  static get is() { return "zonos-payment"; }
63
63
  static get encapsulation() { return "scoped"; }
@@ -0,0 +1,15 @@
1
+ const injectCheckoutElement = () => {
2
+ // append checkout component if doesn't exist
3
+ const collectElement = document.querySelector('zonos-collect');
4
+ if (!collectElement) {
5
+ const newCollectElement = document.createElement('zonos-collect');
6
+ document.body.appendChild(newCollectElement);
7
+ }
8
+ };
9
+ export const initCollect = () => {
10
+ // allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
11
+ if (!window.Zonos.cartData) {
12
+ return;
13
+ }
14
+ injectCheckoutElement();
15
+ };
@@ -0,0 +1,10 @@
1
+ export const collectTabletBreakpoint = 1024;
2
+ export const collectMobileBreakpoint = 768;
3
+ export const isCollectTablet = (isTablet) => {
4
+ return (isTablet ||
5
+ (window.innerWidth < collectTabletBreakpoint &&
6
+ window.innerWidth >= collectMobileBreakpoint));
7
+ };
8
+ export const isCollectMobile = (isMobile) => {
9
+ return isMobile || window.innerWidth < collectMobileBreakpoint;
10
+ };
@@ -6,8 +6,17 @@ import { currencyFormat } from "../hello/currencyConversion/currencyFormat";
6
6
  * @note This is only to display, not for calculations.
7
7
  */
8
8
  export const renderCheckoutCurrency = ({ amount, isForeign }) => {
9
- var _a;
9
+ var _a, _b;
10
10
  const targetRate = ((_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.rate) || 1;
11
+ const presentmentCurrency = cartStore.currency;
12
+ const itemCurrency = (_b = cartStore.items[0]) === null || _b === void 0 ? void 0 : _b.currencyCode;
13
+ // If the item currency is the same as the presentment currency, we can just return the amount in the presentment currency in the same format
14
+ if (itemCurrency === presentmentCurrency) {
15
+ return currencyFormat({
16
+ amount,
17
+ currency: presentmentCurrency,
18
+ });
19
+ }
11
20
  const shouldDisplayBaseCurrency = cartStore.displayBaseCurrency;
12
21
  const displayCurrency = getDisplayCurrency();
13
22
  if (isForeign) {
@@ -0,0 +1,7 @@
1
+ import { h } from "@stencil/core";
2
+ export const renderFallback = ({ content, isLoading, skeletonHeight, skeletonWidth, }) => {
3
+ if (isLoading) {
4
+ return (h("zonos-skeleton", { skeletonHeight: skeletonHeight, skeletonWidth: skeletonWidth }));
5
+ }
6
+ return content;
7
+ };
@@ -24,7 +24,11 @@ export const getZonosQaUrl = () => {
24
24
  }
25
25
  // when local demo app is running, it needs to use the local dev script unless the qaUrl is set
26
26
  if (!qaUrl &&
27
- ['dev.demo.elements.zonos.com', 'dev.checkout.elements.zonos.com'].includes(window.location.hostname)) {
27
+ [
28
+ 'dev.demo.elements.zonos.com',
29
+ 'dev.checkout.elements.zonos.com',
30
+ 'dev.storybook.elements.zonos.com',
31
+ ].includes(window.location.hostname)) {
28
32
  return 'https://dev.elements.zonos.com';
29
33
  }
30
34
  if (!qaUrl) {
@@ -59,6 +59,7 @@ Zonos.domain = typeof window !== 'undefined'
59
59
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
60
60
  window.location.search.includes('zonosShowBaseForeign');
61
61
  Zonos.overrideUseCustomAddressForm = false;
62
+ Zonos.isCollect = false;
62
63
  /**
63
64
  * By default, the package will load from npm
64
65
  */
@@ -386,7 +387,12 @@ Zonos.injectController = ({ config, }) => {
386
387
  return;
387
388
  }
388
389
  window.Zonos.stripe = stripe;
389
- void zonosController.initCheckoutElement(stripe);
390
+ if (window.Zonos.isCollect) {
391
+ void zonosController.initCollectElement(stripe);
392
+ }
393
+ else {
394
+ void zonosController.initCheckoutElement(stripe);
395
+ }
390
396
  });
391
397
  document.body.appendChild(zonosController);
392
398
  // set zonos controller to be global
@@ -0,0 +1 @@
1
+ export {};