@zonos/elements 1.3.217 → 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 (411) hide show
  1. package/dist/cjs/buildCartItemsByTempCart-309fcebf.js +28 -0
  2. package/dist/cjs/{cart-54ff39d6.js → cart-9a2b32e4.js} +91 -48
  3. package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
  4. package/dist/cjs/{handleFetch-0313ebba.js → handleFetch-45f35cac.js} +2 -1
  5. package/dist/cjs/index.cjs.js +20 -10
  6. package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/localization-b12edb2a.js +738 -0
  9. package/dist/cjs/{paypal-e7504122.js → paypal-e80871d0.js} +13 -9
  10. package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
  11. package/dist/cjs/{localization-721a5ec3.js → translationStore-20a6d8bf.js} +963 -734
  12. package/dist/cjs/{updateCheckoutSessionAttributes-8db49644.js → updateCheckoutSessionAttributes-c0853fdd.js} +1 -1
  13. package/dist/cjs/zonos-address_11.cjs.entry.js +103 -73
  14. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  15. package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
  16. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  17. package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +75 -1294
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +27 -50
  19. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
  21. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
  22. package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
  23. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
  25. package/dist/cjs/zonos-controller.cjs.entry.js +85 -29
  26. package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -2
  27. package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -11
  28. package/dist/cjs/zonos-elements.cjs.js +1 -1
  29. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +16 -6
  30. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +35 -34
  31. package/dist/cjs/zonos-hello.cjs.entry.js +9 -8
  32. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  33. package/dist/cjs/zonos-language-select_2.cjs.entry.js +7 -6
  34. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  35. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  36. package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
  37. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  38. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  40. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  41. package/dist/collection/collection-manifest.json +10 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
  45. package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
  49. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
  50. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
  61. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
  62. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
  63. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
  64. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
  65. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
  66. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
  67. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
  68. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
  69. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
  70. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
  71. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
  72. package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
  73. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
  74. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  75. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  76. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  77. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  78. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  79. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  80. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  81. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  82. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  83. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  84. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
  85. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
  86. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  87. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  88. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  89. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  90. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  91. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  92. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  93. package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
  94. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
  95. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
  96. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
  97. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  98. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  99. package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
  100. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  101. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  102. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  103. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  104. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  105. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  106. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  107. package/dist/collection/components/main/zonos-controller.js +91 -25
  108. package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
  109. package/dist/collection/components/store/checkout/cart.js +36 -15
  110. package/dist/collection/components/store/checkout/collect.js +157 -0
  111. package/dist/collection/components/store/checkout/paypal.js +4 -2
  112. package/dist/collection/components/store/checkout/stripe.js +31 -12
  113. package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
  114. package/dist/collection/components/store/translationStore/strings.base.js +48 -0
  115. package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
  116. package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
  117. package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
  118. package/dist/collection/components/store/translationStore/strings.french.js +48 -0
  119. package/dist/collection/components/store/translationStore/strings.german.js +48 -0
  120. package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
  121. package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
  122. package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
  123. package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
  124. package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
  125. package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
  126. package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
  127. package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
  128. package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
  129. package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
  130. package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
  131. package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
  132. package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
  133. package/dist/collection/components/store/translationStore.js +2 -1
  134. package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
  135. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  136. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  137. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
  138. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  139. package/dist/collection/components/utils/checkout/initCollect.js +15 -0
  140. package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
  141. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
  142. package/dist/collection/components/utils/getNextFallbackApi.js +1 -1
  143. package/dist/collection/components/utils/handleFetch.js +1 -0
  144. package/dist/collection/components/utils/renderFallback.js +7 -0
  145. package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
  146. package/dist/collection/scripts/_zonosBase.js +7 -1
  147. package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
  148. package/dist/collection/types/generated/graphql.internal.types.js +103 -0
  149. package/dist/collection/types/index.js +1 -0
  150. package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
  151. package/dist/esm/{cart-010402f9.js → cart-acf4ebf5.js} +69 -28
  152. package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
  153. package/dist/esm/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +2 -1
  154. package/dist/esm/index.js +20 -10
  155. package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
  156. package/dist/esm/loader.js +1 -1
  157. package/dist/esm/localization-8646f526.js +719 -0
  158. package/dist/esm/{paypal-70b140d9.js → paypal-2fa930eb.js} +8 -5
  159. package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
  160. package/dist/esm/{localization-9db8b6e9.js → translationStore-c9743292.js} +963 -718
  161. package/dist/esm/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
  162. package/dist/esm/zonos-address_11.entry.js +72 -42
  163. package/dist/esm/zonos-badge.entry.js +3 -3
  164. package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
  165. package/dist/esm/zonos-button_3.entry.js +3 -3
  166. package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +24 -1241
  167. package/dist/esm/zonos-checkout.entry.js +8 -31
  168. package/dist/esm/zonos-collapse.entry.js +2 -2
  169. package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
  170. package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
  171. package/dist/esm/zonos-collect.entry.js +464 -0
  172. package/dist/esm/zonos-component.entry.js +1 -1
  173. package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
  174. package/dist/esm/zonos-controller.entry.js +85 -29
  175. package/dist/esm/zonos-country-flag.entry.js +3 -2
  176. package/dist/esm/zonos-country-select_4.entry.js +12 -11
  177. package/dist/esm/zonos-elements.js +1 -1
  178. package/dist/esm/zonos-empty-state-payment_4.entry.js +16 -6
  179. package/dist/esm/zonos-hello-dialog.entry.js +7 -6
  180. package/dist/esm/zonos-hello.entry.js +3 -2
  181. package/dist/esm/zonos-input.entry.js +4 -4
  182. package/dist/esm/zonos-language-select_2.entry.js +7 -6
  183. package/dist/esm/zonos-link.entry.js +1 -1
  184. package/dist/esm/zonos-logo.entry.js +2 -2
  185. package/dist/esm/zonos-stripe-input.entry.js +9 -6
  186. package/dist/esm/zonos-text.entry.js +1 -1
  187. package/dist/esm/zonos-toggle.entry.js +2 -2
  188. package/dist/esm/zonos-tooltip.entry.js +2 -2
  189. package/dist/esm/zonos-v-stack.entry.js +2 -2
  190. package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
  191. package/dist/esm-es5/cart-acf4ebf5.js +1 -0
  192. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
  193. package/dist/esm-es5/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +1 -1
  194. package/dist/esm-es5/index.js +1 -1
  195. package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
  196. package/dist/esm-es5/loader.js +1 -1
  197. package/dist/esm-es5/localization-8646f526.js +1 -0
  198. package/dist/esm-es5/paypal-2fa930eb.js +17 -0
  199. package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
  200. package/dist/esm-es5/translationStore-c9743292.js +1 -0
  201. package/dist/esm-es5/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
  202. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  203. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  204. package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
  205. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  206. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  207. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  208. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  209. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
  210. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
  211. package/dist/esm-es5/zonos-collect.entry.js +1 -0
  212. package/dist/esm-es5/zonos-component.entry.js +1 -1
  213. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
  214. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  215. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  216. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  217. package/dist/esm-es5/zonos-elements.js +1 -1
  218. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  219. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  220. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  221. package/dist/esm-es5/zonos-input.entry.js +1 -1
  222. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  223. package/dist/esm-es5/zonos-link.entry.js +1 -1
  224. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  225. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  226. package/dist/esm-es5/zonos-text.entry.js +1 -1
  227. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  228. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  229. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  230. package/dist/scripts/index.d.ts +471 -4
  231. package/dist/scripts/index.js +1 -1
  232. package/dist/scripts/loadZonos.js +1 -1
  233. package/dist/scripts/zonos.js +1 -1
  234. package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
  235. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
  236. package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
  237. package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
  238. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
  239. package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
  240. package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
  241. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
  242. package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
  243. package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
  244. package/dist/types/components/main/zonos-controller.d.ts +5 -0
  245. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
  246. package/dist/types/components/store/checkout/cart.d.ts +23 -3
  247. package/dist/types/components/store/checkout/collect.d.ts +21 -0
  248. package/dist/types/components/store/checkout/paypal.d.ts +4 -3
  249. package/dist/types/components/store/checkout/stripe.d.ts +6 -2
  250. package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
  251. package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
  252. package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
  253. package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
  254. package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
  255. package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
  256. package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
  257. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
  258. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
  259. package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
  260. package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
  261. package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
  262. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
  263. package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
  264. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
  265. package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
  266. package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
  267. package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
  268. package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
  269. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
  270. package/dist/types/components/store/translationStore.d.ts +2 -1
  271. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
  272. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
  273. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  274. package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
  275. package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
  276. package/dist/types/components/utils/getNextFallbackApi.d.ts +2 -2
  277. package/dist/types/components/utils/renderFallback.d.ts +6 -0
  278. package/dist/types/components.d.ts +401 -2
  279. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  280. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  281. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  282. package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
  283. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
  284. package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
  285. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  286. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  287. package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
  288. package/dist/types/types/generated/graphql.internal.types.ts +428 -10
  289. package/dist/types/types/index.d.ts +1 -0
  290. package/dist/zonos-elements/index.esm.js +1 -1
  291. package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
  292. package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-c1d86f32.system.js → p-062430f9.system.js} +1 -1
  294. package/dist/zonos-elements/p-07bea979.system.js +1 -0
  295. package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
  296. package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
  297. package/dist/zonos-elements/p-0e28207a.js +1 -0
  298. package/dist/zonos-elements/{p-1efc348b.system.js → p-0ed63ce0.system.js} +1 -1
  299. package/dist/zonos-elements/p-0ef2a242.js +1 -0
  300. package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
  301. package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
  302. package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
  303. package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
  304. package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
  305. package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
  306. package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
  309. package/dist/zonos-elements/p-29c80a34.js +1 -0
  310. package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
  312. package/dist/zonos-elements/p-2cc031b3.js +17 -0
  313. package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
  314. package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
  315. package/dist/zonos-elements/p-485416ec.js +1 -0
  316. package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
  317. package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
  318. package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
  319. package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
  320. package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
  321. package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
  322. package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
  323. package/dist/zonos-elements/p-6761091e.entry.js +1 -0
  324. package/dist/zonos-elements/p-6761286d.js +1 -0
  325. package/dist/zonos-elements/p-69451a50.system.js +1 -0
  326. package/dist/zonos-elements/p-69fd1b88.js +1 -0
  327. package/dist/zonos-elements/p-6dd63754.system.js +1 -0
  328. package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
  329. package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
  330. package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
  331. package/dist/zonos-elements/p-772ac0b7.js +1 -0
  332. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  333. package/dist/zonos-elements/p-81e23f30.system.js +1 -0
  334. package/dist/zonos-elements/p-873b698a.entry.js +1 -0
  335. package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
  336. package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
  337. package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
  338. package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
  339. package/dist/zonos-elements/p-986ebccc.js +1 -0
  340. package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
  341. package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
  342. package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
  343. package/dist/zonos-elements/{p-d93ecc57.js → p-a8a312b2.js} +1 -1
  344. package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
  345. package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
  346. package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
  347. package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
  348. package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
  349. package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
  350. package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
  351. package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
  352. package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
  353. package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
  354. package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
  355. package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
  356. package/dist/zonos-elements/p-d63696ac.system.js +17 -0
  357. package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
  358. package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
  359. package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
  360. package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
  361. package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
  362. package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
  363. package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
  364. package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
  365. package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
  366. package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
  367. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  368. package/package.json +1 -1
  369. package/dist/cjs/zonos-card.cjs.entry.js +0 -49
  370. package/dist/esm/zonos-card.entry.js +0 -45
  371. package/dist/esm-es5/cart-010402f9.js +0 -1
  372. package/dist/esm-es5/localization-9db8b6e9.js +0 -1
  373. package/dist/esm-es5/paypal-70b140d9.js +0 -17
  374. package/dist/esm-es5/zonos-banner.entry.js +0 -1
  375. package/dist/esm-es5/zonos-card.entry.js +0 -1
  376. package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
  377. package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
  378. package/dist/zonos-elements/p-0a7ef032.entry.js +0 -1
  379. package/dist/zonos-elements/p-0e8bdf5c.js +0 -1
  380. package/dist/zonos-elements/p-164ba7ae.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-242dd7ca.system.entry.js +0 -1
  382. package/dist/zonos-elements/p-300e0d47.system.entry.js +0 -1
  383. package/dist/zonos-elements/p-37aa481c.system.entry.js +0 -1
  384. package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
  385. package/dist/zonos-elements/p-425096c9.js +0 -1
  386. package/dist/zonos-elements/p-4cd33d08.entry.js +0 -1
  387. package/dist/zonos-elements/p-57f391e6.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-58b3a0fc.entry.js +0 -1
  389. package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
  390. package/dist/zonos-elements/p-608f965f.system.js +0 -1
  391. package/dist/zonos-elements/p-65c68531.js +0 -1
  392. package/dist/zonos-elements/p-680149ed.entry.js +0 -1
  393. package/dist/zonos-elements/p-6d44f441.system.js +0 -1
  394. package/dist/zonos-elements/p-7c88d2ac.entry.js +0 -1
  395. package/dist/zonos-elements/p-9ddb4533.system.entry.js +0 -1
  396. package/dist/zonos-elements/p-a91024b6.system.entry.js +0 -1
  397. package/dist/zonos-elements/p-a9d41e7c.system.entry.js +0 -1
  398. package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
  399. package/dist/zonos-elements/p-ad8b1fe8.entry.js +0 -1
  400. package/dist/zonos-elements/p-afa4b4f0.js +0 -17
  401. package/dist/zonos-elements/p-b83b382e.system.js +0 -1
  402. package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
  403. package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
  404. package/dist/zonos-elements/p-dcedcdda.entry.js +0 -1
  405. package/dist/zonos-elements/p-e11c61a5.entry.js +0 -1
  406. package/dist/zonos-elements/p-e17ac0d1.system.js +0 -17
  407. package/dist/zonos-elements/p-e1a7a85f.system.entry.js +0 -1
  408. package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
  409. package/dist/zonos-elements/p-ef34e1ce.entry.js +0 -1
  410. package/dist/zonos-elements/p-f54123b5.entry.js +0 -1
  411. package/dist/zonos-elements/p-f7300f5b.system.entry.js +0 -1
@@ -3,7 +3,15 @@ export const accountHolderType = {
3
3
  Individual: 'INDIVIDUAL',
4
4
  };
5
5
  export const accountingFeeType = {
6
+ AdditionalTariffLines: 'ADDITIONAL_TARIFF_LINES',
7
+ Advancement: 'ADVANCEMENT',
8
+ BrokerageFee: 'BROKERAGE_FEE',
6
9
  BugFix: 'BUG_FIX',
10
+ CarrierBillShipping: 'CARRIER_BILL_SHIPPING',
11
+ Country: 'COUNTRY',
12
+ DdpServiceFee: 'DDP_SERVICE_FEE',
13
+ Duty: 'DUTY',
14
+ DutyTax: 'DUTY_TAX',
7
15
  DutyTaxFee: 'DUTY_TAX_FEE',
8
16
  ExistingConnectAdjustmentCredits: 'EXISTING_CONNECT_ADJUSTMENT_CREDITS',
9
17
  ExistingCreditNotes: 'EXISTING_CREDIT_NOTES',
@@ -17,6 +25,8 @@ export const accountingFeeType = {
17
25
  PaypalOrder: 'PAYPAL_ORDER',
18
26
  PaypalRefund: 'PAYPAL_REFUND',
19
27
  Shipping: 'SHIPPING',
28
+ StorageFee: 'STORAGE_FEE',
29
+ Tax: 'TAX',
20
30
  Transaction: 'TRANSACTION',
21
31
  };
22
32
  export const additionalVerificationStatus = {
@@ -285,6 +295,10 @@ export const cartAdjustmentType = {
285
295
  PromoCode: 'PROMO_CODE',
286
296
  Shipping: 'SHIPPING',
287
297
  };
298
+ export const cartType = {
299
+ Checkout: 'CHECKOUT',
300
+ Collect: 'COLLECT',
301
+ };
288
302
  export const cashFlowTablesEnumInput = {
289
303
  Bill: 'BILL',
290
304
  Deposit: 'DEPOSIT',
@@ -339,6 +353,10 @@ export const checkoutSessionPartyReferenceType = {
339
353
  Destination: 'DESTINATION',
340
354
  Payor: 'PAYOR',
341
355
  };
356
+ export const checkoutSessionType = {
357
+ Checkout: 'CHECKOUT',
358
+ Collect: 'COLLECT',
359
+ };
342
360
  export const checkoutStatus = {
343
361
  Disabled: 'DISABLED',
344
362
  Enabled: 'ENABLED',
@@ -1284,6 +1302,7 @@ export const emailTemplateType = {
1284
1302
  AbandonedCart: 'ABANDONED_CART',
1285
1303
  AccountOrderReceipt: 'ACCOUNT_ORDER_RECEIPT',
1286
1304
  CatalogExport: 'CATALOG_EXPORT',
1305
+ CheckoutCollect: 'CHECKOUT_COLLECT',
1287
1306
  ClassificationExport: 'CLASSIFICATION_EXPORT',
1288
1307
  Custom: 'CUSTOM',
1289
1308
  InclusivePriceExport: 'INCLUSIVE_PRICE_EXPORT',
@@ -1487,6 +1506,10 @@ export const inclusivePriceCatalogValidationJobComplianceStatus = {
1487
1506
  NonCompliant: 'NON_COMPLIANT',
1488
1507
  Pending: 'PENDING',
1489
1508
  };
1509
+ export const inclusivePriceConfigurationStatus = {
1510
+ Disabled: 'DISABLED',
1511
+ Enabled: 'ENABLED',
1512
+ };
1490
1513
  export const inclusivePriceExportJobStatus = {
1491
1514
  Completed: 'COMPLETED',
1492
1515
  Error: 'ERROR',
@@ -1805,6 +1828,8 @@ export const landedCostBillingRuleDetailCategoryIdCreateType = {
1805
1828
  CheckoutMerchantProcessing: 'CHECKOUT_MERCHANT_PROCESSING',
1806
1829
  CheckoutShippingIglobal: 'CHECKOUT_SHIPPING_IGLOBAL',
1807
1830
  CheckoutTransactionPercent: 'CHECKOUT_TRANSACTION_PERCENT',
1831
+ CollectOrder: 'COLLECT_ORDER',
1832
+ CollectPercent: 'COLLECT_PERCENT',
1808
1833
  GuaranteeOrder: 'GUARANTEE_ORDER',
1809
1834
  ShopifyGuaranteeOrder: 'SHOPIFY_GUARANTEE_ORDER',
1810
1835
  ShopifyGuaranteeOrderLegacy: 'SHOPIFY_GUARANTEE_ORDER_LEGACY',
@@ -1831,6 +1856,8 @@ export const landedCostFeeType = {
1831
1856
  BrokerageFee: 'BROKERAGE_FEE',
1832
1857
  Buffer: 'BUFFER',
1833
1858
  Cod: 'COD',
1859
+ CollectOrder: 'COLLECT_ORDER',
1860
+ CollectPercent: 'COLLECT_PERCENT',
1834
1861
  Country: 'COUNTRY',
1835
1862
  CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
1836
1863
  DdpServiceFee: 'DDP_SERVICE_FEE',
@@ -1855,6 +1882,7 @@ export const landedCostFeeType = {
1855
1882
  ZonosTransaction: 'ZONOS_TRANSACTION',
1856
1883
  };
1857
1884
  export const landedCostGuaranteeCode = {
1885
+ CollectRemittance: 'COLLECT_REMITTANCE',
1858
1886
  InclusivePrice: 'INCLUSIVE_PRICE',
1859
1887
  NotApplicable: 'NOT_APPLICABLE',
1860
1888
  PostalDdp: 'POSTAL_DDP',
@@ -1879,6 +1907,7 @@ export const landedCostQuoteType = {
1879
1907
  Api: 'API',
1880
1908
  Auditing: 'AUDITING',
1881
1909
  Checkout: 'CHECKOUT',
1910
+ Collect: 'COLLECT',
1882
1911
  Hello: 'HELLO',
1883
1912
  InclusivePrice: 'INCLUSIVE_PRICE',
1884
1913
  };
@@ -2152,6 +2181,11 @@ export const orderTransactionBillingMethod = {
2152
2181
  BillingDgs: 'BILLING_DGS',
2153
2182
  Legacy: 'LEGACY',
2154
2183
  };
2184
+ export const orderType = {
2185
+ Api: 'API',
2186
+ Checkout: 'CHECKOUT',
2187
+ Collect: 'COLLECT',
2188
+ };
2155
2189
  export const organizationBusinessUnit = {
2156
2190
  Ecommerce: 'ECOMMERCE',
2157
2191
  SupplyChain: 'SUPPLY_CHAIN',
@@ -2533,6 +2567,8 @@ export const storeFeeRuleDetailCategoryIdCreateType = {
2533
2567
  CheckoutGuaranteeOrderLegacy: 'CHECKOUT_GUARANTEE_ORDER_LEGACY',
2534
2568
  CheckoutGuaranteePercent: 'CHECKOUT_GUARANTEE_PERCENT',
2535
2569
  Cod: 'COD',
2570
+ CollectOrder: 'COLLECT_ORDER',
2571
+ CollectPercent: 'COLLECT_PERCENT',
2536
2572
  Country: 'COUNTRY',
2537
2573
  CrossDockBuffer: 'CROSS_DOCK_BUFFER',
2538
2574
  CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
@@ -2721,6 +2757,60 @@ export const unreconciledShipmentStatus = {
2721
2757
  ChargeApprovedMerchant: 'CHARGE_APPROVED_MERCHANT',
2722
2758
  DisputeMerchant: 'DISPUTE_MERCHANT',
2723
2759
  };
2760
+ export const upsAdminFeeRateType = {
2761
+ CountrySpecific: 'COUNTRY_SPECIFIC',
2762
+ RestOfWorld: 'REST_OF_WORLD',
2763
+ };
2764
+ export const upsAdminFeeServiceLevelType = {
2765
+ Economy: 'ECONOMY',
2766
+ Standard: 'STANDARD',
2767
+ Worldwide: 'WORLDWIDE',
2768
+ };
2769
+ export const upsBillingCountryCode = {
2770
+ Ar: 'AR',
2771
+ At: 'AT',
2772
+ Au: 'AU',
2773
+ Be: 'BE',
2774
+ Br: 'BR',
2775
+ Ca: 'CA',
2776
+ Ch: 'CH',
2777
+ Cl: 'CL',
2778
+ Cn: 'CN',
2779
+ Co: 'CO',
2780
+ Cr: 'CR',
2781
+ Cz: 'CZ',
2782
+ De: 'DE',
2783
+ Dk: 'DK',
2784
+ Do: 'DO',
2785
+ Es: 'ES',
2786
+ Fi: 'FI',
2787
+ Fr: 'FR',
2788
+ Gb: 'GB',
2789
+ Hk: 'HK',
2790
+ Hu: 'HU',
2791
+ Id: 'ID',
2792
+ Ie: 'IE',
2793
+ In: 'IN',
2794
+ It: 'IT',
2795
+ Jp: 'JP',
2796
+ Kr: 'KR',
2797
+ Lu: 'LU',
2798
+ Mo: 'MO',
2799
+ Mx: 'MX',
2800
+ My: 'MY',
2801
+ Nl: 'NL',
2802
+ No: 'NO',
2803
+ Ph: 'PH',
2804
+ Pl: 'PL',
2805
+ Pr: 'PR',
2806
+ Pt: 'PT',
2807
+ Se: 'SE',
2808
+ Sg: 'SG',
2809
+ Th: 'TH',
2810
+ Tw: 'TW',
2811
+ Us: 'US',
2812
+ Vn: 'VN',
2813
+ };
2724
2814
  export const usBankAccountType = {
2725
2815
  Checking: 'CHECKING',
2726
2816
  Savings: 'SAVINGS',
@@ -2800,6 +2890,7 @@ export const webhookStatus = {
2800
2890
  Enabled: 'ENABLED',
2801
2891
  };
2802
2892
  export const webhookType = {
2893
+ InclusivePriceConfigurationChanged: 'INCLUSIVE_PRICE_CONFIGURATION_CHANGED',
2803
2894
  InclusivePriceSyncReady: 'INCLUSIVE_PRICE_SYNC_READY',
2804
2895
  InventoryCheck: 'INVENTORY_CHECK',
2805
2896
  InventoryRefund: 'INVENTORY_REFUND',
@@ -2892,6 +2983,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2892
2983
  checkoutSettings(variables, requestHeaders) {
2893
2984
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'checkoutSettings', 'query');
2894
2985
  },
2986
+ createCollectQuote(variables, requestHeaders) {
2987
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createCollectQuote', 'mutation');
2988
+ },
2895
2989
  createWebhook(variables, requestHeaders) {
2896
2990
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createWebhook', 'mutation');
2897
2991
  },
@@ -2904,6 +2998,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2904
2998
  fulfillmentCenter(variables, requestHeaders) {
2905
2999
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'fulfillmentCenter', 'query');
2906
3000
  },
3001
+ getCartInfo(variables, requestHeaders) {
3002
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartInfo', 'query');
3003
+ },
2907
3004
  getCartOrganizationInfo(variables, requestHeaders) {
2908
3005
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartOrganizationInfo', 'query');
2909
3006
  },
@@ -2916,6 +3013,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2916
3013
  getCheckoutSessionAttributes(variables, requestHeaders) {
2917
3014
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCheckoutSessionAttributes', 'query');
2918
3015
  },
3016
+ getCollectCheckoutSession(variables, requestHeaders) {
3017
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCollectCheckoutSession', 'query');
3018
+ },
2919
3019
  getInclusivePriceSettingByCountry(variables, requestHeaders) {
2920
3020
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getInclusivePriceSettingByCountry', 'query');
2921
3021
  },
@@ -2925,6 +3025,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2925
3025
  getOrders(variables, requestHeaders) {
2926
3026
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getOrders', 'query');
2927
3027
  },
3028
+ getPartyInfoByLandedCostId(variables, requestHeaders) {
3029
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getPartyInfoByLandedCostId', 'query');
3030
+ },
2928
3031
  getTaxIdByCountry(variables, requestHeaders) {
2929
3032
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getTaxIdByCountry', 'query');
2930
3033
  },
@@ -6,6 +6,7 @@ export * from './checkout/api/CheckoutSession';
6
6
  export * from './checkout/api/CreateParty';
7
7
  export * from './checkout/api/legacy/InventoryCheck';
8
8
  export * from './checkout/api/NormalizedTempCart';
9
+ export * from './checkout/api/PartyInfo';
9
10
  export * from './checkout/api/Paypal';
10
11
  export * from './checkout/api/PlaceTestOrder';
11
12
  export * from './checkout/api/StoreDiscountEnabled';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Map the items from tempCart like how we do it in dgs
3
+ * @ref https://github.com/Zonos/ShippingQuoteService/blob/f8bd4f1ff41cb34b49b9f3f435576ec28dedf906/src/main/java/com/iglobal/services/shippingquote/dto/ShippingQuoteRequestDto.java#L393
4
+ */
5
+ const buildCartItemsByTempCart = (tempCartData) => {
6
+ const tempCartItems = tempCartData.items.map(item => ({
7
+ amount: item.amount,
8
+ attributes: item.attributes || [],
9
+ countryOfOrigin: item.countryOfOrigin || undefined,
10
+ currencyCode: item.currencyCode,
11
+ description: item.description || '',
12
+ imageUrl: item.imageUrl || '',
13
+ itemType: item.itemType || 'PHYSICAL_GOOD',
14
+ measurements: item.measurements || [],
15
+ name: item.name || item.description || '',
16
+ productId: item.productId || '',
17
+ quantity: item.quantity || 0,
18
+ sku: item.sku || '',
19
+ })) || [];
20
+ return {
21
+ adjustments: tempCartData.adjustments,
22
+ cartItems: tempCartItems,
23
+ };
24
+ };
25
+
26
+ export { buildCartItemsByTempCart as b };
@@ -1,6 +1,7 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-c456b933.js';
2
- import { s as storageStore, l as localizationStore, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-9db8b6e9.js';
3
- import { l as log, f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, d as allLogs, b as logError, j as jsonParse } from './handleFetch-fa90f7f6.js';
2
+ import { s as storageStore, l as localizationStore, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-8646f526.js';
3
+ import { t as translate } from './translationStore-c9743292.js';
4
+ import { l as log, f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, d as allLogs, b as logError, j as jsonParse } from './handleFetch-99218189.js';
4
5
  import { i as isDarkColor } from './isDarkColor-1f58b6be.js';
5
6
  import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
6
7
 
@@ -753,15 +754,15 @@ const initStripeElements = async (props) => {
753
754
  JSON.stringify(stripeStore.stripeElementsOptions);
754
755
  if (!stripeStore.stripeElements ||
755
756
  !stripeStore.stripeElementsForBillingAddress) {
757
+ // init stripe elements for billing address
758
+ stripeStore.stripeElementsForBillingAddress =
759
+ (_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
760
+ log('Stripe elements for billing address initialized');
756
761
  // init stripe elements if it doesn't exist
757
- stripeStore.stripeElements = (_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
762
+ stripeStore.stripeElements = (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
758
763
  // save stripe elements options for later comparison
759
764
  stripeStore.stripeElementsOptions = stripeOptions;
760
765
  log('Stripe elements initialized');
761
- // init stripe elements for billing address
762
- stripeStore.stripeElementsForBillingAddress =
763
- (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
764
- log('Stripe elements for billing address initialized');
765
766
  return;
766
767
  }
767
768
  if (!isSameOptions) {
@@ -807,7 +808,7 @@ const checkIsAddressOutdatedForAsyncAddressUpdate = () => {
807
808
  isTaxIdDirty ||
808
809
  isCompanyNameDirty);
809
810
  };
810
- const buildAddressForPartyCreate = ({ address, firstName, lastName, name, phone, }) => {
811
+ const stripeStoreBuildAddressForPartyCreate = ({ address, firstName, lastName, name, phone, }) => {
811
812
  const { firstName: _firstName, lastName: _lastName } = extractName({
812
813
  firstName,
813
814
  lastName,
@@ -889,7 +890,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
889
890
  partiesCreated: false,
890
891
  };
891
892
  }
892
- const address = buildAddressForPartyCreate({
893
+ const address = stripeStoreBuildAddressForPartyCreate({
893
894
  address: stripeStore.stripeAddressEventData.value.address,
894
895
  firstName: stripeStore.stripeAddressEventData.value.firstName,
895
896
  lastName: stripeStore.stripeAddressEventData.value.lastName,
@@ -898,7 +899,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
898
899
  });
899
900
  const billingAddress = stripeStore.stripeShippingSameAsBilling
900
901
  ? address
901
- : buildAddressForPartyCreate({
902
+ : stripeStoreBuildAddressForPartyCreate({
902
903
  address: stripeStore.stripeBillingAddressEventData.value.address,
903
904
  firstName: stripeStore.stripeBillingAddressEventData.value.firstName,
904
905
  lastName: stripeStore.stripeBillingAddressEventData.value.lastName,
@@ -1208,7 +1209,11 @@ const stripeStoreApplyPromoCode = async () => {
1208
1209
  if (!cheapestServiceLevel || !matchLandedCost) {
1209
1210
  return;
1210
1211
  }
1211
- await cartStoreUpdateSelectedShippingOption(cheapestServiceLevel, matchLandedCost.landedCostId);
1212
+ await cartStoreUpdateSelectedShippingOption({
1213
+ applySubtotalsOnly: false,
1214
+ landedCostId: matchLandedCost.landedCostId,
1215
+ selectedShippingOption: cheapestServiceLevel,
1216
+ });
1212
1217
  };
1213
1218
  const stripeStoreResetPromoCode = () => {
1214
1219
  cartStore.promoCode = '';
@@ -1228,6 +1233,7 @@ const stripeStoreRemovePromoCode = async () => {
1228
1233
  const stripeStoreMessageBasedOnStatus = (status) => {
1229
1234
  let messages = [];
1230
1235
  let isError = true;
1236
+ const isCollect = window.Zonos.isCollect;
1231
1237
  // Inspect the PaymentIntent `status` to indicate the status of the payment
1232
1238
  // to your customer.
1233
1239
  //
@@ -1242,6 +1248,13 @@ const stripeStoreMessageBasedOnStatus = (status) => {
1242
1248
  '',
1243
1249
  translate("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time."),
1244
1250
  ];
1251
+ if (isCollect) {
1252
+ messages = [
1253
+ translate('Thank you for submitting your payment. We appreciate your prompt attention.'),
1254
+ '',
1255
+ translate('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.'),
1256
+ ];
1257
+ }
1245
1258
  isError = false;
1246
1259
  break;
1247
1260
  }
@@ -1257,6 +1270,11 @@ const stripeStoreMessageBasedOnStatus = (status) => {
1257
1270
  messages = [
1258
1271
  translate('Payment failed. Please try another payment method.'),
1259
1272
  ];
1273
+ if (isCollect) {
1274
+ messages = [
1275
+ translate('Payment failed. Please reload the page and try another payment method.'),
1276
+ ];
1277
+ }
1260
1278
  break;
1261
1279
  }
1262
1280
  case 'requires_action': {
@@ -1369,14 +1387,15 @@ const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybo
1369
1387
  status,
1370
1388
  };
1371
1389
  };
1372
- const stripeStoreConfirmPayment = async () => {
1390
+ const stripeStoreConfirmPayment = async (props) => {
1373
1391
  var _a, _b;
1374
1392
  const stripePaymentReady = !!((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
1375
1393
  const stripeElements = stripeStore.stripeElements;
1376
1394
  const stripe = stripeStore.stripe;
1377
1395
  const stripeClientSecret = stripeStore.clientSecret;
1378
1396
  stripeStore.customErrorMessage = null;
1379
- if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)) {
1397
+ if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id) &&
1398
+ !(props === null || props === void 0 ? void 0 : props.noLandedCostCheck)) {
1380
1399
  throw new Error('Attempted to confirm the payment when no landed cost is found in store');
1381
1400
  }
1382
1401
  // Check if the checkout session is valid before proceeding
@@ -1437,6 +1456,7 @@ const getCheckoutSessionBody = () => {
1437
1456
  cartId: window.Zonos.cartId,
1438
1457
  currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
1439
1458
  customerAuthenticationToken: cartStore.customerAuthenticationToken || undefined,
1459
+ isCollect: window.Zonos.isCollect,
1440
1460
  itemsAmount: total,
1441
1461
  metadata: [
1442
1462
  {
@@ -2008,8 +2028,12 @@ const cartStoreGetMethod = (landedCost) => {
2008
2028
  }
2009
2029
  return landedCost.method;
2010
2030
  };
2011
- const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption, landedCostId) => {
2031
+ const cartStoreUpdateSelectedShippingOption = async ({ applySubtotalsOnly, landedCostId, selectedShippingOption, }) => {
2012
2032
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2033
+ log('Updating selected shipping option', 'info', {
2034
+ landedCostId,
2035
+ selectedShippingOption,
2036
+ });
2013
2037
  cartStore.selectedShippingOption = selectedShippingOption;
2014
2038
  // update shipping transit info
2015
2039
  const transitData = cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);
@@ -2044,16 +2068,33 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption, lan
2044
2068
  const isAboveDeminimis = !!((_e = (_d = selectedLandedCost === null || selectedLandedCost === void 0 ? void 0 : selectedLandedCost.landedCost) === null || _d === void 0 ? void 0 : _d.deMinimis) === null || _e === void 0 ? void 0 : _e.find(item => ['DUTY', 'TAX'].includes(item.type) && item.threshold === 'ABOVE'));
2045
2069
  cartStore.isSelectedShippingAboveDeminimis = isAboveDeminimis;
2046
2070
  cartStore.isSelectedShippingGuarantee = isGuarantee;
2047
- // update session with selected landed cost
2048
- const updateCalculateStatus = await cartStoreReCalculateTotal({
2049
- adjustmentsAmount: cartStore.adjustmentTotal,
2050
- billToPartyId: stripeStore.partyBillingId,
2051
- cartId: window.Zonos.cartId,
2052
- dutiesTaxesFeesEstimate: dutiesTaxesFeesEstimate,
2053
- landedCostId: (_f = selectedLandedCost.landedCost) === null || _f === void 0 ? void 0 : _f.id,
2054
- shipToPartyId: stripeStore.partyShippingId,
2055
- varianceTestInput: storageStore.enabledVariantTestKeys || [],
2056
- });
2071
+ let updateCalculateStatus = false;
2072
+ /**
2073
+ * For collect, we are trying to mimic the behavior that checkout is currently doing, where there is already a checkout session, we already updated with the landed cost.
2074
+ * But we need to call this function so that we can use all of the information that already in place in cartStore, so to avoid latency issue, we only apply subtotals here.
2075
+ */
2076
+ if (applySubtotalsOnly) {
2077
+ const subtotals = selectedLandedCost.subtotals;
2078
+ cartStoreApplySubtotals({
2079
+ dutiesTaxesFeesEstimate,
2080
+ method: cartStore.landedCostMethod,
2081
+ subtotals,
2082
+ });
2083
+ log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
2084
+ updateCalculateStatus = true;
2085
+ }
2086
+ else {
2087
+ // update session with selected landed cost
2088
+ updateCalculateStatus = await cartStoreReCalculateTotal({
2089
+ adjustmentsAmount: cartStore.adjustmentTotal,
2090
+ billToPartyId: stripeStore.partyBillingId,
2091
+ cartId: window.Zonos.cartId,
2092
+ dutiesTaxesFeesEstimate: dutiesTaxesFeesEstimate,
2093
+ landedCostId: (_f = selectedLandedCost.landedCost) === null || _f === void 0 ? void 0 : _f.id,
2094
+ shipToPartyId: stripeStore.partyShippingId,
2095
+ varianceTestInput: storageStore.enabledVariantTestKeys || [],
2096
+ });
2097
+ }
2057
2098
  // update conditionally render pay in USD button
2058
2099
  const firstItem = (_g = cartStore.items.find(Boolean)) === null || _g === void 0 ? void 0 : _g.currencyCode;
2059
2100
  // Stripe address event data should be available at this point
@@ -2095,7 +2136,7 @@ const cartStoreResetCartItems = () => {
2095
2136
  cartStore.items = cartStore.items.map(item => (Object.assign(Object.assign({}, item), { isRestricted: false })));
2096
2137
  cartStore.restrictedItems = [];
2097
2138
  };
2098
- const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
2139
+ const cartStoreUpdateItems = async ({ adjustments, cartItems, landedCostId, shouldInitSessionOnFailure = true, }) => {
2099
2140
  var _a;
2100
2141
  // Update adjustments and items
2101
2142
  cartStore.adjustments = adjustments;
@@ -2119,9 +2160,9 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
2119
2160
  currency: currency,
2120
2161
  dutiesTaxesFeesEstimate: 0,
2121
2162
  itemsAmount: total,
2163
+ landedCostId,
2122
2164
  shipToPartyId: stripeStore.partyShippingId,
2123
- // attempt to init session on failure to update checkout session
2124
- shouldInitSessionOnFailure: true,
2165
+ shouldInitSessionOnFailure,
2125
2166
  varianceTestInput: storageStore.enabledVariantTestKeys || [],
2126
2167
  });
2127
2168
  stripeStore.isFetchingSession = false;
@@ -2175,4 +2216,4 @@ const cartStoreResetTabItems = () => {
2175
2216
  cartStoreResetSelectedShippingOption();
2176
2217
  };
2177
2218
 
2178
- export { cartStoreHasOneEligibleItem as A, stripeStoreApplyPromoCode as B, stripeStoreRemovePromoCode as C, stripeStoreResetPromoCode as D, stripeStoreMessageBasedOnStatus as E, stripeStoreTranslateAddressToLatin as F, extractName as G, cartStoreOnChange as H, stripeStoreAsyncAddressUpdate as I, cartStoreUpdateSelectedShippingOption as J, cartStoreGetShippingTransitInfo as K, cartStoreGetMethod as L, sortServiceLevelOptionsByAmount as M, stripeStoreCleanupDomesticShippingSession as a, stripeStoreSaveDomesticShippingSession as b, stripeStore as c, stripeStoreRetrievePayment as d, cartStore as e, cartStoreUpdateItems as f, cartStoreReset as g, cartStoreResetTabItems as h, initStripeElements as i, cartStoreClearCheckoutInterval as j, stripeStoreInitCheckoutSession as k, stripeStoreGetPaymentIntent as l, cartStoreStartCheckoutInterval as m, getCheckoutSessionBody as n, cartStoreUpdateToErrorState as o, cartStoreSetCheckoutSession as p, stripeStorePrefetchLandedCost as q, cartStoreNextStep as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStoreUpdateCheckoutSessionBaseCurrency as u, stripeStoreHandleInventoryCheck as v, stripeStoreConfirmPayment as w, stripeStoreHandleInventoryRefund as x, stripeStoreReset as y, validateCheckoutSession as z };
2219
+ export { stripeStoreOnChange as A, stripeStoreBuildAddressForPartyCreate as B, cartStoreUpdateSelectedShippingOption as C, cartStoreHasOneEligibleItem as D, stripeStoreApplyPromoCode as E, stripeStoreRemovePromoCode as F, stripeStoreResetPromoCode as G, stripeStoreMessageBasedOnStatus as H, stripeStoreTranslateAddressToLatin as I, extractName as J, cartStoreOnChange as K, stripeStoreAsyncAddressUpdate as L, cartStoreGetShippingTransitInfo as M, cartStoreGetMethod as N, sortServiceLevelOptionsByAmount as O, stripeStoreCleanupDomesticShippingSession as a, stripeStoreSaveDomesticShippingSession as b, stripeStore as c, stripeStoreRetrievePayment as d, cartStore as e, cartStoreUpdateItems as f, cartStoreReset as g, cartStoreResetTabItems as h, initStripeElements as i, cartStoreClearCheckoutInterval as j, stripeStoreInitCheckoutSession as k, stripeStoreGetPaymentIntent as l, cartStoreStartCheckoutInterval as m, getCheckoutSessionBody as n, cartStoreUpdateToErrorState as o, cartStoreSetCheckoutSession as p, stripeStorePrefetchLandedCost as q, cartStoreNextStep as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStoreUpdateCheckoutSessionBaseCurrency as u, stripeStoreHandleInventoryCheck as v, stripeStoreConfirmPayment as w, stripeStoreHandleInventoryRefund as x, stripeStoreReset as y, validateCheckoutSession as z };