@zonos/elements 1.3.233 → 1.3.234

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 (413) hide show
  1. package/dist/cjs/{cart-bc615014.js → cart-22ced7cc.js} +33 -29
  2. package/dist/cjs/{shouldRenderTaxIdInput-9b8a8de1.js → containsNonLatinChars-2be5129b.js} +0 -23
  3. package/dist/cjs/{hasInclusivePrice-84145546.js → hasInclusivePrice-ca85cabd.js} +1 -1
  4. package/dist/cjs/index.cjs.js +11 -7
  5. package/dist/cjs/invoice-8fd4242c.js +151 -0
  6. package/dist/cjs/{renderFallback-c2576fbe.js → isCollectMobileTablet-7962c57f.js} +2 -11
  7. package/dist/cjs/isInvoiceMobileTablet-dde41e4e.js +15 -0
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{translationStore-08d3ff9c.js → localization-8ef6250a.js} +1059 -1
  10. package/dist/cjs/{paypal-1d6f1a71.js → paypal-4a086f84.js} +7 -8
  11. package/dist/cjs/placeTestOrder-f25d08ee.js +45 -0
  12. package/dist/cjs/{placeTestOrder-a5469e40.js → renderCheckoutCurrency-5494e45b.js} +2 -42
  13. package/dist/cjs/renderFallback-78b54537.js +12 -0
  14. package/dist/cjs/shouldRenderTaxIdInput-eda13ef8.js +25 -0
  15. package/dist/cjs/throttle-7dd64984.js +76 -0
  16. package/dist/cjs/{zonos-address_11.cjs.entry.js → zonos-address-display_9.cjs.entry.js} +62 -668
  17. package/dist/cjs/zonos-address_4.cjs.entry.js +715 -0
  18. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  19. package/dist/cjs/{zonos-banner_2.cjs.entry.js → zonos-banner.cjs.entry.js} +0 -40
  20. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  21. package/dist/cjs/{zonos-empty-state-payment_4.cjs.entry.js → zonos-card_5.cjs.entry.js} +44 -6
  22. package/dist/cjs/{zonos-cart-items_13.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +75 -92
  23. package/dist/cjs/zonos-checkout.cjs.entry.js +20 -21
  24. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -6
  26. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +66 -65
  27. package/dist/cjs/zonos-collect.cjs.entry.js +25 -25
  28. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-controller.cjs.entry.js +39 -10
  30. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -2
  31. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -11
  32. package/dist/cjs/zonos-elements.cjs.js +1 -1
  33. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +30 -31
  34. package/dist/cjs/zonos-hello.cjs.entry.js +7 -8
  35. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  36. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +94 -0
  37. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +686 -0
  38. package/dist/cjs/zonos-invoice.cjs.entry.js +466 -0
  39. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -6
  40. package/dist/cjs/zonos-link.cjs.entry.js +24 -0
  41. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  42. package/dist/cjs/zonos-stripe-input.cjs.entry.js +5 -5
  43. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  44. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  45. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  46. package/dist/collection/collection-manifest.json +8 -0
  47. package/dist/collection/components/checkout/zonos-invoice/assets/ChevronDownIcon.svg +1 -0
  48. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/assets/empty-item.jpeg +0 -0
  49. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.css +72 -0
  50. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +87 -0
  51. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/RemoveIcon.svg +1 -0
  52. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/SuccessIcon.svg +1 -0
  53. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.css +90 -0
  54. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +405 -0
  55. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/chevronDownIcon.svg +1 -0
  56. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/globe.svg +3 -0
  57. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconDark.svg +10 -0
  58. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconLight.svg +10 -0
  59. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosWordmark.svg +7 -0
  60. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +155 -0
  61. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +165 -0
  62. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronDownIcon.svg +1 -0
  63. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronUpIcon.svg +1 -0
  64. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.css +117 -0
  65. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.js +175 -0
  66. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/CheckmarkLineIcon.svg +1 -0
  67. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/RemoveLineIcon.svg +1 -0
  68. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.css +98 -0
  69. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +368 -0
  70. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.css +71 -0
  71. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +151 -0
  72. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.css +83 -0
  73. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +65 -0
  74. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.css +350 -0
  75. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.js +545 -0
  76. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  77. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  78. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  79. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  80. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  81. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  82. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  83. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  84. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  85. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  86. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  87. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  88. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  89. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  90. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  91. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  92. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  93. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  94. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  95. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +5 -5
  96. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  97. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  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 +45 -4
  106. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  107. package/dist/collection/components/store/checkout/invoice.js +148 -0
  108. package/dist/collection/components/store/checkout/stripe.js +8 -3
  109. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  110. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  111. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  112. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  113. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  114. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  115. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  116. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  117. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  118. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  119. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  120. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  121. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  122. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  123. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  124. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  125. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  126. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  127. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  128. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  129. package/dist/collection/components/stripe/zonos-address/zonos-address.js +8 -5
  130. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  131. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  132. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  133. package/dist/collection/components/utils/checkout/initInvoice.js +15 -0
  134. package/dist/collection/components/utils/checkout/isInvoiceMobileTablet.js +10 -0
  135. package/dist/collection/scripts/_zonosBase.js +4 -0
  136. package/dist/esm/{cart-14f305b3.js → cart-66aecbb3.js} +9 -5
  137. package/dist/esm/{shouldRenderTaxIdInput-8bc112bb.js → containsNonLatinChars-2d8810c3.js} +1 -23
  138. package/dist/esm/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
  139. package/dist/esm/index.js +11 -7
  140. package/dist/esm/invoice-c7452847.js +146 -0
  141. package/dist/esm/{renderFallback-dbf1e3ae.js → isCollectMobileTablet-921002b0.js} +3 -11
  142. package/dist/esm/isInvoiceMobileTablet-1f7b614e.js +12 -0
  143. package/dist/esm/loader.js +1 -1
  144. package/dist/esm/{translationStore-690c4e04.js → localization-04b05867.js} +1041 -2
  145. package/dist/esm/{paypal-fded8844.js → paypal-56564874.js} +2 -3
  146. package/dist/esm/placeTestOrder-6b9eda9e.js +43 -0
  147. package/dist/esm/{placeTestOrder-2250f719.js → renderCheckoutCurrency-cb808110.js} +3 -42
  148. package/dist/esm/renderFallback-3f010b48.js +10 -0
  149. package/dist/esm/shouldRenderTaxIdInput-d45ceeb4.js +23 -0
  150. package/dist/esm/throttle-ce2432ab.js +74 -0
  151. package/dist/esm/{zonos-address_11.entry.js → zonos-address-display_9.entry.js} +32 -636
  152. package/dist/esm/zonos-address_4.entry.js +708 -0
  153. package/dist/esm/zonos-badge.entry.js +3 -3
  154. package/dist/esm/{zonos-banner_2.entry.js → zonos-banner.entry.js} +1 -40
  155. package/dist/esm/zonos-button_3.entry.js +3 -3
  156. package/dist/esm/{zonos-empty-state-payment_4.entry.js → zonos-card_5.entry.js} +44 -7
  157. package/dist/esm/{zonos-cart-items_13.entry.js → zonos-cart-items_12.entry.js} +15 -31
  158. package/dist/esm/zonos-checkout.entry.js +3 -4
  159. package/dist/esm/zonos-collapse.entry.js +2 -2
  160. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -6
  161. package/dist/esm/zonos-collect-finish_6.entry.js +7 -6
  162. package/dist/esm/zonos-collect.entry.js +5 -5
  163. package/dist/esm/zonos-component.entry.js +1 -1
  164. package/dist/esm/zonos-controller.entry.js +39 -10
  165. package/dist/esm/zonos-country-flag.entry.js +1 -2
  166. package/dist/esm/zonos-country-select_4.entry.js +10 -11
  167. package/dist/esm/zonos-elements.js +1 -1
  168. package/dist/esm/zonos-hello-dialog.entry.js +6 -7
  169. package/dist/esm/zonos-hello.entry.js +1 -2
  170. package/dist/esm/zonos-input.entry.js +4 -4
  171. package/dist/esm/zonos-invoice-cart-items_2.entry.js +89 -0
  172. package/dist/esm/zonos-invoice-finish_5.entry.js +678 -0
  173. package/dist/esm/zonos-invoice.entry.js +462 -0
  174. package/dist/esm/zonos-language-select_2.entry.js +5 -6
  175. package/dist/esm/zonos-link.entry.js +20 -0
  176. package/dist/esm/zonos-logo.entry.js +2 -2
  177. package/dist/esm/zonos-stripe-input.entry.js +5 -5
  178. package/dist/esm/zonos-toggle.entry.js +2 -2
  179. package/dist/esm/zonos-tooltip.entry.js +2 -2
  180. package/dist/esm/zonos-v-stack.entry.js +2 -2
  181. package/dist/esm-es5/cart-66aecbb3.js +1 -0
  182. package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +1 -0
  183. package/dist/esm-es5/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
  184. package/dist/esm-es5/index.js +1 -1
  185. package/dist/esm-es5/invoice-c7452847.js +1 -0
  186. package/dist/esm-es5/isCollectMobileTablet-921002b0.js +1 -0
  187. package/dist/esm-es5/isInvoiceMobileTablet-1f7b614e.js +1 -0
  188. package/dist/esm-es5/loader.js +1 -1
  189. package/dist/esm-es5/localization-04b05867.js +1 -0
  190. package/dist/esm-es5/{paypal-fded8844.js → paypal-56564874.js} +1 -1
  191. package/dist/esm-es5/placeTestOrder-6b9eda9e.js +1 -0
  192. package/dist/esm-es5/renderCheckoutCurrency-cb808110.js +1 -0
  193. package/dist/esm-es5/renderFallback-3f010b48.js +1 -0
  194. package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +1 -0
  195. package/dist/esm-es5/throttle-ce2432ab.js +1 -0
  196. package/dist/esm-es5/zonos-address-display_9.entry.js +1 -0
  197. package/dist/esm-es5/zonos-address_4.entry.js +1 -0
  198. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  199. package/dist/esm-es5/zonos-banner.entry.js +1 -0
  200. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  201. package/dist/esm-es5/zonos-card_5.entry.js +1 -0
  202. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  203. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  204. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  205. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  206. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  207. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  208. package/dist/esm-es5/zonos-component.entry.js +1 -1
  209. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  210. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  211. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  212. package/dist/esm-es5/zonos-elements.js +1 -1
  213. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  214. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  215. package/dist/esm-es5/zonos-input.entry.js +1 -1
  216. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -0
  217. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -0
  218. package/dist/esm-es5/zonos-invoice.entry.js +1 -0
  219. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  220. package/dist/esm-es5/zonos-link.entry.js +1 -0
  221. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  222. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  223. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  224. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  225. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  226. package/dist/scripts/index.d.ts +356 -0
  227. package/dist/scripts/index.js +1 -1
  228. package/dist/scripts/loadZonos.js +1 -1
  229. package/dist/scripts/zonos.js +1 -1
  230. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.d.ts +10 -0
  231. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.d.ts +50 -0
  232. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.d.ts +25 -0
  233. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.d.ts +28 -0
  234. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.d.ts +62 -0
  235. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.d.ts +22 -0
  236. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.d.ts +7 -0
  237. package/dist/types/components/checkout/zonos-invoice/zonos-invoice.d.ts +86 -0
  238. package/dist/types/components/main/zonos-controller.d.ts +4 -0
  239. package/dist/types/components/store/checkout/invoice.d.ts +19 -0
  240. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  241. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  242. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  243. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  244. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  245. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  246. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  247. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  248. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  249. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  250. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  251. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  252. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  253. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  254. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  255. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  256. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  257. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  258. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  259. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  260. package/dist/types/components/utils/checkout/initInvoice.d.ts +1 -0
  261. package/dist/types/components/utils/checkout/isInvoiceMobileTablet.d.ts +4 -0
  262. package/dist/types/components.d.ts +351 -0
  263. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  264. package/dist/types/types/checkout/api/CheckoutSession.d.ts +4 -0
  265. package/dist/types/types/checkout/api/PartyInfo.d.ts +21 -0
  266. package/dist/zonos-elements/index.esm.js +1 -1
  267. package/dist/zonos-elements/p-00719e49.entry.js +1 -0
  268. package/dist/zonos-elements/p-01b0a2e2.js +1 -0
  269. package/dist/zonos-elements/p-01dada4e.js +1 -0
  270. package/dist/zonos-elements/p-0c64dbbb.js +1 -0
  271. package/dist/zonos-elements/p-0cd5bcb3.entry.js +1 -0
  272. package/dist/zonos-elements/p-0e82fcea.entry.js +1 -0
  273. package/dist/zonos-elements/p-10316d4d.system.entry.js +1 -0
  274. package/dist/zonos-elements/{p-0a90dd80.system.entry.js → p-121c60c1.system.entry.js} +1 -1
  275. package/dist/zonos-elements/{p-bf9d889f.entry.js → p-14314ad3.entry.js} +1 -1
  276. package/dist/zonos-elements/p-170314a3.js +1 -0
  277. package/dist/zonos-elements/p-17a09191.entry.js +1 -0
  278. package/dist/zonos-elements/p-18bc6c7a.entry.js +1 -0
  279. package/dist/zonos-elements/{p-a25428eb.system.js → p-18d20206.system.js} +2 -2
  280. package/dist/zonos-elements/p-1a30fe18.system.entry.js +1 -0
  281. package/dist/zonos-elements/{p-c7b658cb.entry.js → p-1c4d12f0.entry.js} +1 -1
  282. package/dist/zonos-elements/p-1f3549c6.js +1 -0
  283. package/dist/zonos-elements/p-2250e585.entry.js +1 -0
  284. package/dist/zonos-elements/p-248dd596.system.entry.js +1 -0
  285. package/dist/zonos-elements/{p-5f398c28.entry.js → p-264690d7.entry.js} +1 -1
  286. package/dist/zonos-elements/p-2670438c.system.js +1 -0
  287. package/dist/zonos-elements/p-27f6930b.js +1 -0
  288. package/dist/zonos-elements/{p-eea0eb57.system.entry.js → p-2f869f2c.system.entry.js} +1 -1
  289. package/dist/zonos-elements/p-30c661b3.system.entry.js +1 -0
  290. package/dist/zonos-elements/p-34bf7bbe.system.js +1 -0
  291. package/dist/zonos-elements/p-38913b2f.entry.js +1 -0
  292. package/dist/zonos-elements/p-3bec13dd.system.js +1 -0
  293. package/dist/zonos-elements/{p-00ec22b2.entry.js → p-43a22d85.entry.js} +1 -1
  294. package/dist/zonos-elements/p-44b50260.entry.js +1 -0
  295. package/dist/zonos-elements/p-48dc96f9.system.entry.js +1 -0
  296. package/dist/zonos-elements/p-4aa86184.system.entry.js +1 -0
  297. package/dist/zonos-elements/p-4d594c8e.system.js +1 -0
  298. package/dist/zonos-elements/p-4ffbb0d6.system.js +1 -0
  299. package/dist/zonos-elements/{p-452fb638.system.entry.js → p-5062dcf3.system.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-c5cb2364.system.entry.js → p-57cee1b5.system.entry.js} +1 -1
  301. package/dist/zonos-elements/p-59a76f73.entry.js +1 -0
  302. package/dist/zonos-elements/{p-d556c6d1.system.entry.js → p-5afb9260.system.entry.js} +1 -1
  303. package/dist/zonos-elements/p-5e9b45f7.entry.js +1 -0
  304. package/dist/zonos-elements/{p-88ea9f82.entry.js → p-6626d240.entry.js} +1 -1
  305. package/dist/zonos-elements/p-6688473e.entry.js +1 -0
  306. package/dist/zonos-elements/p-6f23a26a.system.js +1 -0
  307. package/dist/zonos-elements/{p-82739127.js → p-73c737aa.js} +2 -2
  308. package/dist/zonos-elements/p-757d4c62.system.entry.js +1 -0
  309. package/dist/zonos-elements/p-7aa50ef2.entry.js +1 -0
  310. package/dist/zonos-elements/p-7e17667d.js +1 -0
  311. package/dist/zonos-elements/p-7e469c5c.entry.js +1 -0
  312. package/dist/zonos-elements/p-7f91617c.system.entry.js +1 -0
  313. package/dist/zonos-elements/p-81e3eb5b.js +1 -0
  314. package/dist/zonos-elements/p-82febf70.system.js +1 -0
  315. package/dist/zonos-elements/{p-770852bf.system.entry.js → p-836db369.system.entry.js} +1 -1
  316. package/dist/zonos-elements/p-83b3f824.system.entry.js +1 -0
  317. package/dist/zonos-elements/p-851011aa.system.entry.js +1 -0
  318. package/dist/zonos-elements/{p-936b54c1.entry.js → p-865536f0.entry.js} +1 -1
  319. package/dist/zonos-elements/{p-b1fd1ec2.system.entry.js → p-8792fef2.system.entry.js} +1 -1
  320. package/dist/zonos-elements/p-890bfc42.system.entry.js +1 -0
  321. package/dist/zonos-elements/{p-c288c6da.system.entry.js → p-89a5e936.system.entry.js} +1 -1
  322. package/dist/zonos-elements/p-8af188f8.system.js +1 -0
  323. package/dist/zonos-elements/p-8d3a62fb.entry.js +1 -0
  324. package/dist/zonos-elements/{p-00ac999f.system.entry.js → p-8dc025c7.system.entry.js} +1 -1
  325. package/dist/zonos-elements/p-944d00da.entry.js +1 -0
  326. package/dist/zonos-elements/p-9479f155.system.js +1 -0
  327. package/dist/zonos-elements/p-95dc475b.system.js +1 -0
  328. package/dist/zonos-elements/p-976afc17.system.js +1 -0
  329. package/dist/zonos-elements/p-97d56c21.system.entry.js +1 -0
  330. package/dist/zonos-elements/p-9b9bfb6d.entry.js +1 -0
  331. package/dist/zonos-elements/{p-55e2e4ed.entry.js → p-9f1bd9b8.entry.js} +1 -1
  332. package/dist/zonos-elements/p-9fa32fdf.js +1 -0
  333. package/dist/zonos-elements/p-a2a0bf4e.js +1 -0
  334. package/dist/zonos-elements/p-a610c24e.system.entry.js +1 -0
  335. package/dist/zonos-elements/{p-9b8750f3.entry.js → p-aedd3911.entry.js} +1 -1
  336. package/dist/zonos-elements/{p-db628e49.system.entry.js → p-b5c31ca4.system.entry.js} +1 -1
  337. package/dist/zonos-elements/p-ba456282.system.entry.js +1 -0
  338. package/dist/zonos-elements/{p-31af91f0.entry.js → p-bd603c1a.entry.js} +1 -1
  339. package/dist/zonos-elements/p-c2442878.system.js +1 -1
  340. package/dist/zonos-elements/p-dc5fb21c.js +1 -0
  341. package/dist/zonos-elements/p-dc94d7eb.js +1 -0
  342. package/dist/zonos-elements/p-e5e64e16.system.js +1 -0
  343. package/dist/zonos-elements/{p-540cec7e.system.entry.js → p-e9e6bea7.system.entry.js} +1 -1
  344. package/dist/zonos-elements/p-eb9ee025.system.js +1 -0
  345. package/dist/zonos-elements/p-ed8ae947.system.entry.js +1 -0
  346. package/dist/zonos-elements/p-f1d9dd4e.entry.js +1 -0
  347. package/dist/zonos-elements/p-f3962950.system.entry.js +1 -0
  348. package/dist/zonos-elements/p-f4e976ae.entry.js +1 -0
  349. package/dist/zonos-elements/p-f513b231.entry.js +1 -0
  350. package/dist/zonos-elements/p-f64207fa.system.entry.js +1 -0
  351. package/dist/zonos-elements/{p-31975752.entry.js → p-fa322dc1.entry.js} +1 -1
  352. package/dist/zonos-elements/p-fb9fb873.system.entry.js +1 -0
  353. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  354. package/package.json +1 -1
  355. package/dist/cjs/localization-39516612.js +0 -884
  356. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +0 -168
  357. package/dist/esm/localization-c5029ffc.js +0 -863
  358. package/dist/esm/zonos-confirm-dialog_2.entry.js +0 -163
  359. package/dist/esm-es5/cart-14f305b3.js +0 -1
  360. package/dist/esm-es5/localization-c5029ffc.js +0 -1
  361. package/dist/esm-es5/placeTestOrder-2250f719.js +0 -1
  362. package/dist/esm-es5/renderFallback-dbf1e3ae.js +0 -1
  363. package/dist/esm-es5/shouldRenderTaxIdInput-8bc112bb.js +0 -1
  364. package/dist/esm-es5/translationStore-690c4e04.js +0 -1
  365. package/dist/esm-es5/zonos-address_11.entry.js +0 -1
  366. package/dist/esm-es5/zonos-banner_2.entry.js +0 -1
  367. package/dist/esm-es5/zonos-cart-items_13.entry.js +0 -1
  368. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +0 -1
  369. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +0 -1
  370. package/dist/zonos-elements/p-03ff7b01.system.entry.js +0 -1
  371. package/dist/zonos-elements/p-100f6a88.system.entry.js +0 -1
  372. package/dist/zonos-elements/p-143d706b.entry.js +0 -1
  373. package/dist/zonos-elements/p-14d7489d.js +0 -1
  374. package/dist/zonos-elements/p-1bfae137.entry.js +0 -1
  375. package/dist/zonos-elements/p-1d5aa016.system.js +0 -1
  376. package/dist/zonos-elements/p-1eae4987.entry.js +0 -1
  377. package/dist/zonos-elements/p-23b45714.system.entry.js +0 -1
  378. package/dist/zonos-elements/p-2557b96b.js +0 -1
  379. package/dist/zonos-elements/p-2ca8b037.entry.js +0 -1
  380. package/dist/zonos-elements/p-2dbcecf4.entry.js +0 -1
  381. package/dist/zonos-elements/p-316f9052.system.entry.js +0 -1
  382. package/dist/zonos-elements/p-3185968f.entry.js +0 -1
  383. package/dist/zonos-elements/p-4e41143a.system.entry.js +0 -1
  384. package/dist/zonos-elements/p-52b87408.system.entry.js +0 -1
  385. package/dist/zonos-elements/p-561be3a2.system.js +0 -1
  386. package/dist/zonos-elements/p-5c680f72.js +0 -1
  387. package/dist/zonos-elements/p-5f77d19e.js +0 -1
  388. package/dist/zonos-elements/p-74ca7739.entry.js +0 -1
  389. package/dist/zonos-elements/p-767a31a8.system.js +0 -1
  390. package/dist/zonos-elements/p-78a6e775.system.js +0 -1
  391. package/dist/zonos-elements/p-7c705c76.system.js +0 -1
  392. package/dist/zonos-elements/p-81ba2820.system.entry.js +0 -1
  393. package/dist/zonos-elements/p-84078c57.system.js +0 -1
  394. package/dist/zonos-elements/p-8a23bbf5.js +0 -1
  395. package/dist/zonos-elements/p-905d2490.entry.js +0 -1
  396. package/dist/zonos-elements/p-93f2e1ee.system.entry.js +0 -1
  397. package/dist/zonos-elements/p-a0a4e43d.system.entry.js +0 -1
  398. package/dist/zonos-elements/p-a2819807.system.entry.js +0 -1
  399. package/dist/zonos-elements/p-a6e74856.entry.js +0 -1
  400. package/dist/zonos-elements/p-ae940a99.js +0 -1
  401. package/dist/zonos-elements/p-b7ea5f4f.system.entry.js +0 -1
  402. package/dist/zonos-elements/p-c0c458f7.system.entry.js +0 -1
  403. package/dist/zonos-elements/p-c1ecab92.entry.js +0 -1
  404. package/dist/zonos-elements/p-c50cc926.entry.js +0 -1
  405. package/dist/zonos-elements/p-cf765af3.system.js +0 -1
  406. package/dist/zonos-elements/p-e03e1a62.entry.js +0 -1
  407. package/dist/zonos-elements/p-e7874318.system.entry.js +0 -1
  408. package/dist/zonos-elements/p-e8949e7e.entry.js +0 -1
  409. package/dist/zonos-elements/p-ea0b5d10.system.js +0 -1
  410. package/dist/zonos-elements/p-eae3462c.entry.js +0 -1
  411. package/dist/zonos-elements/p-eeb1081e.js +0 -1
  412. package/dist/zonos-elements/p-f892595d.system.entry.js +0 -1
  413. package/dist/zonos-elements/p-fd3b46ee.entry.js +0 -1
@@ -1,8 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-37a4b4f4.js');
4
- const localization = require('./localization-39516612.js');
5
- const translationStore = require('./translationStore-08d3ff9c.js');
4
+ const localization = require('./localization-8ef6250a.js');
6
5
  const handleFetch = require('./handleFetch-954f30e1.js');
7
6
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
7
  const isDarkColor = require('./isDarkColor-878e600e.js');
@@ -538,7 +537,7 @@ const validateCheckoutSession = async () => {
538
537
  metadata: { allLogs: VarianceTest.allLogs },
539
538
  });
540
539
  return {
541
- errorMessage: translationStore.translate('Unable to retrieve the checkout session at the moment. Please try again or contact our support team.'),
540
+ errorMessage: localization.translate('Unable to retrieve the checkout session at the moment. Please try again or contact our support team.'),
542
541
  valid: false,
543
542
  };
544
543
  }
@@ -551,7 +550,7 @@ const validateCheckoutSession = async () => {
551
550
  metadata: { allLogs: VarianceTest.allLogs },
552
551
  });
553
552
  return {
554
- errorMessage: translationStore.translate('No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.'),
553
+ errorMessage: localization.translate('No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.'),
555
554
  valid: false,
556
555
  };
557
556
  }
@@ -706,7 +705,10 @@ const { onChange: stripeStoreOnChange, reset: reset$1, state: stripeStore, } = z
706
705
  const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryColor, overrideSecondaryColor, overrideTheme, paypalEnabled, }) => {
707
706
  const primaryColor = overridePrimaryColor || zonosStore.zonosStore.appearance.colorPrimary;
708
707
  const secondaryColor = overrideSecondaryColor || zonosStore.zonosStore.appearance.colorSecondary;
709
- const themeBasedColor = primaryColor && isDarkColor.isDarkColor(primaryColor) ? 'night' : 'flat';
708
+ const isDark = window.Zonos.isCollect || window.Zonos.isInvoice
709
+ ? zonosStore.zonosStore.appearance.theme === 'DARK'
710
+ : primaryColor && isDarkColor.isDarkColor(primaryColor);
711
+ const themeBasedColor = isDark ? 'night' : 'flat';
710
712
  // if overrideTheme is provided, use it. Otherwise, use theme based on primary color
711
713
  const theme = overrideTheme === 'DARK' ? 'night' : 'flat';
712
714
  const paypalPaymentType = paypalEnabled ? ['external_paypal'] : [];
@@ -1241,6 +1243,7 @@ const stripeStoreMessageBasedOnStatus = (status) => {
1241
1243
  let messages = [];
1242
1244
  let isError = true;
1243
1245
  const isCollect = window.Zonos.isCollect;
1246
+ const isInvoice = window.Zonos.isInvoice;
1244
1247
  // Inspect the PaymentIntent `status` to indicate the status of the payment
1245
1248
  // to your customer.
1246
1249
  //
@@ -1251,15 +1254,15 @@ const stripeStoreMessageBasedOnStatus = (status) => {
1251
1254
  switch (status) {
1252
1255
  case 'succeeded': {
1253
1256
  messages = [
1254
- translationStore.translate('Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.'),
1257
+ localization.translate('Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.'),
1255
1258
  '',
1256
- translationStore.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."),
1259
+ localization.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."),
1257
1260
  ];
1258
- if (isCollect) {
1261
+ if (isCollect || isInvoice) {
1259
1262
  messages = [
1260
- translationStore.translate('Thank you for submitting your payment. We appreciate your prompt attention.'),
1263
+ localization.translate('Thank you for submitting your payment. We appreciate your prompt attention.'),
1261
1264
  '',
1262
- translationStore.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.'),
1265
+ localization.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.'),
1263
1266
  ];
1264
1267
  }
1265
1268
  isError = false;
@@ -1268,18 +1271,18 @@ const stripeStoreMessageBasedOnStatus = (status) => {
1268
1271
  case 'requires_capture':
1269
1272
  case 'processing': {
1270
1273
  messages = [
1271
- translationStore.translate("Payment processing. We'll update you when payment is received."),
1274
+ localization.translate("Payment processing. We'll update you when payment is received."),
1272
1275
  ];
1273
1276
  isError = false;
1274
1277
  break;
1275
1278
  }
1276
1279
  case 'requires_payment_method': {
1277
1280
  messages = [
1278
- translationStore.translate('Payment failed. Please try another payment method.'),
1281
+ localization.translate('Payment failed. Please try another payment method.'),
1279
1282
  ];
1280
1283
  if (isCollect) {
1281
1284
  messages = [
1282
- translationStore.translate('Payment failed. Please reload the page and try another payment method.'),
1285
+ localization.translate('Payment failed. Please reload the page and try another payment method.'),
1283
1286
  ];
1284
1287
  }
1285
1288
  break;
@@ -1287,11 +1290,11 @@ const stripeStoreMessageBasedOnStatus = (status) => {
1287
1290
  case 'requires_action': {
1288
1291
  isError = false;
1289
1292
  messages = [
1290
- translationStore.translate('Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.'),
1293
+ localization.translate('Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.'),
1291
1294
  ];
1292
1295
  }
1293
1296
  default: {
1294
- messages = [translationStore.translate('Something went wrong.')];
1297
+ messages = [localization.translate('Something went wrong.')];
1295
1298
  break;
1296
1299
  }
1297
1300
  }
@@ -1323,7 +1326,7 @@ const stripeStoreHandleInventoryCheck = async () => {
1323
1326
  }
1324
1327
  // Proceed if the item is available
1325
1328
  if (!json.available || json.status === 204) {
1326
- return translationStore.translate("The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.");
1329
+ return localization.translate("The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.");
1327
1330
  }
1328
1331
  if (json.available || json.status === 200) {
1329
1332
  stripeStore.shouldInventoryRefund = true;
@@ -1381,7 +1384,7 @@ const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybo
1381
1384
  const clientSecret = _clientSecret || stripeStore.clientSecret;
1382
1385
  if (!stripeStore.stripe || !clientSecret) {
1383
1386
  handleFetch.logError('Failed to retrieve payment intent. Stripe is not initialized');
1384
- return { error: true, message: [translationStore.translate('Something went wrong.')] };
1387
+ return { error: true, message: [localization.translate('Something went wrong.')] };
1385
1388
  }
1386
1389
  const { paymentIntent } = await stripeStore.stripe.retrievePaymentIntent(clientSecret);
1387
1390
  const status = paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.status;
@@ -1433,7 +1436,7 @@ const stripeStoreConfirmPayment = async (props) => {
1433
1436
  });
1434
1437
  VarianceTest.log('Payment intent confirmed', 'info', { error, paymentIntent });
1435
1438
  if ((paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.status) === 'requires_action') {
1436
- throw new Error(translationStore.translate('Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.'));
1439
+ throw new Error(localization.translate('Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.'));
1437
1440
  }
1438
1441
  if (error) {
1439
1442
  if (error.type === 'card_error' || error.type === 'validation_error') {
@@ -1450,7 +1453,7 @@ const stripeStoreConfirmPayment = async (props) => {
1450
1453
  }
1451
1454
  if (paymentIntent.status === 'requires_payment_method') {
1452
1455
  // Failed to confirm payment, allows user to try another payment method
1453
- throw new Error(translationStore.translate('Payment failed. Please try another payment method.'));
1456
+ throw new Error(localization.translate('Payment failed. Please try another payment method.'));
1454
1457
  }
1455
1458
  }
1456
1459
  };
@@ -1463,7 +1466,8 @@ const getCheckoutSessionBody = () => {
1463
1466
  cartId: window.Zonos.cartId,
1464
1467
  currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
1465
1468
  customerAuthenticationToken: cartStore.customerAuthenticationToken || undefined,
1466
- isCollect: window.Zonos.isCollect,
1469
+ isCollect: !!window.Zonos.isCollect,
1470
+ isInvoice: !!window.Zonos.isInvoice,
1467
1471
  itemsAmount: total,
1468
1472
  metadata: [
1469
1473
  {
@@ -1491,9 +1495,9 @@ const stripeStoreGetPaymentIntent = async () => {
1491
1495
  });
1492
1496
  cartStoreUpdateToErrorState({
1493
1497
  messages: [
1494
- translationStore.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
1498
+ localization.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
1495
1499
  ],
1496
- title: translationStore.translate('Error creating Checkout'),
1500
+ title: localization.translate('Error creating Checkout'),
1497
1501
  });
1498
1502
  return;
1499
1503
  }
@@ -1519,9 +1523,9 @@ const stripeStoreGetPaymentIntent = async () => {
1519
1523
  });
1520
1524
  cartStoreUpdateToErrorState({
1521
1525
  messages: [
1522
- translationStore.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
1526
+ localization.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
1523
1527
  ],
1524
- title: translationStore.translate('Error creating Checkout'),
1528
+ title: localization.translate('Error creating Checkout'),
1525
1529
  });
1526
1530
  return;
1527
1531
  }
@@ -1825,12 +1829,12 @@ const { onChange: cartStoreOnChange, reset, state: cartStore, } = zonosStore.cre
1825
1829
  const getTransitUnit = (type) => {
1826
1830
  switch (type) {
1827
1831
  case 'DAYS':
1828
- return translationStore.translate('days');
1832
+ return localization.translate('days');
1829
1833
  case 'WEEKS':
1830
- return translationStore.translate('weeks');
1834
+ return localization.translate('weeks');
1831
1835
  case 'BUSINESS_DAYS':
1832
1836
  default:
1833
- return translationStore.translate('business days');
1837
+ return localization.translate('business days');
1834
1838
  }
1835
1839
  };
1836
1840
  /**
@@ -1996,9 +2000,9 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
1996
2000
  if (!success) {
1997
2001
  cartStoreUpdateToErrorState({
1998
2002
  messages: [
1999
- translationStore.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
2003
+ localization.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
2000
2004
  ],
2001
- title: translationStore.translate('Error creating Checkout'),
2005
+ title: localization.translate('Error creating Checkout'),
2002
2006
  });
2003
2007
  return false;
2004
2008
  }
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const TaxId = require('./TaxId-12acedde.js');
4
-
5
3
  const isTextContainsNonLatinChars = (text) => {
6
4
  const specialCharacters = /[ʼˮ՚ߴߵ']{1}/u;
7
5
  /**
@@ -22,26 +20,5 @@ const containsNonLatinChars = (params) => {
22
20
  return nonLatinValueList;
23
21
  };
24
22
 
25
- const isInTaxIdCountry = (countryCode) => {
26
- return TaxId.countryRequireTaxId.includes(countryCode);
27
- };
28
- /**
29
- * Checks if the tax ID input should be rendered based on the company name and country code.
30
- */
31
- const shouldRenderTaxIdInput = ({ companyName, countryCode, }) => {
32
- // Only show the tax ID input if the country is in the EU and the company name is provided
33
- if (TaxId.euCountryCodes.includes(countryCode)) {
34
- return companyName.trim().length > 0;
35
- }
36
- // If country require tax id, show the input
37
- const isCountryRequireTaxId = isInTaxIdCountry(countryCode);
38
- if (isCountryRequireTaxId) {
39
- return true;
40
- }
41
- // If country doesn't require tax ID, no need to show the input
42
- return false;
43
- };
44
-
45
23
  exports.containsNonLatinChars = containsNonLatinChars;
46
24
  exports.isTextContainsNonLatinChars = isTextContainsNonLatinChars;
47
- exports.shouldRenderTaxIdInput = shouldRenderTaxIdInput;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const localization = require('./localization-39516612.js');
3
+ const localization = require('./localization-8ef6250a.js');
4
4
 
5
5
  /**
6
6
  * Since the backend and the frontend are using the same keys,
@@ -132,7 +132,7 @@ const getZonosQaUrl = () => {
132
132
  return null;
133
133
  }
134
134
  const qaUrl = extractZonosQaUrl(window.location.href);
135
- const cdnUrl = "https://v1.3.233.js.zonos.com";
135
+ const cdnUrl = "https://v1.3.234.js.zonos.com";
136
136
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
137
137
  if (!qaUrl &&
138
138
  (cdnUrl.includes('test.') ||
@@ -380,10 +380,10 @@ const zonosLoadUrl = (() => {
380
380
  return null;
381
381
  })();
382
382
  const startLoadTime = Date.now();
383
- const ZONOS_URL = "https://v1.3.233.js.zonos.com";
384
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.233";
385
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.233";
386
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.233";
383
+ const ZONOS_URL = "https://v1.3.234.js.zonos.com";
384
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.234";
385
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.234";
386
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.234";
387
387
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
388
388
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
389
389
  class Zonos {
@@ -401,7 +401,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
401
401
  ? new URLSearchParams(window.location.search).get('iframeLogType')
402
402
  : null;
403
403
  Zonos.isBigCommerce = false;
404
- Zonos.releaseDate = "1755875048659";
404
+ Zonos.releaseDate = "1756353722333";
405
405
  Zonos.isLegacyCheckout = false;
406
406
  Zonos.startLoadTime = startLoadTime;
407
407
  Zonos.domain = typeof window !== 'undefined'
@@ -414,6 +414,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
414
414
  window.location.search.includes('zonosShowBaseForeign');
415
415
  Zonos.overrideUseCustomAddressForm = false;
416
416
  Zonos.isCollect = false;
417
+ Zonos.isInvoice = false;
417
418
  /**
418
419
  * By default, the package will load from npm
419
420
  */
@@ -421,7 +422,7 @@ Zonos.isNpm = true;
421
422
  Zonos.zonosQaUrl = null;
422
423
  Zonos.zonosQaUrlApi = null;
423
424
  Zonos.trackEventLogs = [];
424
- Zonos.version = `v${"1.3.233"}`;
425
+ Zonos.version = `v${"1.3.234"}`;
425
426
  Zonos.modeAlerted = false;
426
427
  Zonos.cartData = null;
427
428
  Zonos.paypal = null;
@@ -745,6 +746,9 @@ Zonos.injectController = ({ config, }) => {
745
746
  if (window.Zonos.isCollect) {
746
747
  void zonosController.initCollectElement(stripe);
747
748
  }
749
+ else if (window.Zonos.isInvoice) {
750
+ void zonosController.initInvoiceElement(stripe);
751
+ }
748
752
  else {
749
753
  void zonosController.initCheckoutElement(stripe);
750
754
  }
@@ -0,0 +1,151 @@
1
+ 'use strict';
2
+
3
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
4
+ const cart = require('./cart-22ced7cc.js');
5
+ const localization = require('./localization-8ef6250a.js');
6
+ const handleFetch = require('./handleFetch-954f30e1.js');
7
+ const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
+
9
+ const { reset: invoiceStoreReset, state: invoiceStore } = zonosStore.createStore(() => ({
10
+ amountTotalDue: null,
11
+ isFetchingPayorInfo: true,
12
+ landedCostShortId: null,
13
+ partyBillingId: null,
14
+ payorAddress: null,
15
+ }));
16
+ const invoiceStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
17
+ var _a, _b, _c;
18
+ invoiceStore.isFetchingPayorInfo = true;
19
+ const response = await handleFetch.handleFetch('/api/zonos-elements/invoice/get-payor-info-by-lc-id', {
20
+ body: {
21
+ landedCostId,
22
+ },
23
+ method: 'POST',
24
+ });
25
+ if (response.errors.length) {
26
+ if (retries > 0) {
27
+ // Wait for 1 second before retrying
28
+ await new Promise(resolve => setTimeout(resolve, 1000));
29
+ // Keep retrying until we get the shipping address or we run out of retries
30
+ return invoiceStoreInitShippingInfo({
31
+ landedCostId,
32
+ retries: retries - 1,
33
+ });
34
+ }
35
+ return null;
36
+ }
37
+ invoiceStore.landedCostShortId = ((_a = response.json) === null || _a === void 0 ? void 0 : _a.landedCostShortId) || null;
38
+ invoiceStore.isFetchingPayorInfo = false;
39
+ invoiceStore.payorAddress = ((_b = response.json) === null || _b === void 0 ? void 0 : _b.payor) || null;
40
+ const checkoutSessionSubtotals = (_c = cart.cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.subtotals;
41
+ invoiceStore.amountTotalDue = (checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.items) || 0;
42
+ if (invoiceStore.amountTotalDue === 0) {
43
+ void handleFetch.sendErrorLog({
44
+ endpoint: 'INVOICE_NO_TOTAL_DUE',
45
+ errors: [],
46
+ metadata: {
47
+ landedCostId,
48
+ organizationId: zonosStore.zonosStore.organizationId,
49
+ },
50
+ });
51
+ }
52
+ };
53
+ const invoiceStoreAsyncAddressUpdate = async () => {
54
+ var _a, _b, _c, _d;
55
+ if (!((_a = cart.stripeStore.stripeBillingAddressEventData) === null || _a === void 0 ? void 0 : _a.complete)) {
56
+ return {
57
+ partiesCreated: false,
58
+ };
59
+ }
60
+ const landedCostRootId = (_c = (_b = cart.cartStore.checkoutSession) === null || _b === void 0 ? void 0 : _b.landedCost) === null || _c === void 0 ? void 0 : _c.rootId;
61
+ if (!landedCostRootId) {
62
+ // do nothing if we don't have selected landed cost
63
+ void handleFetch.sendErrorLog({
64
+ endpoint: 'PF_NO_SELECTED_LANDED_COST',
65
+ errors: ['No selected landed cost'],
66
+ metadata: {
67
+ allLogs: VarianceTest.allLogs,
68
+ cartId: window.Zonos.cartId,
69
+ checkoutSessionId: localization.storageStore.checkoutSessionId,
70
+ },
71
+ });
72
+ return {
73
+ partiesCreated: false,
74
+ };
75
+ }
76
+ if (!localization.storageStore.checkoutSessionId) {
77
+ void handleFetch.sendErrorLog({
78
+ endpoint: 'INVOICE_NO_CHECKOUT_SESSION_ID',
79
+ errors: ['No checkout session id'],
80
+ metadata: {
81
+ allLogs: VarianceTest.allLogs,
82
+ cartId: window.Zonos.cartId,
83
+ landedCostRootId,
84
+ },
85
+ });
86
+ return {
87
+ partiesCreated: false,
88
+ };
89
+ }
90
+ const billingAddress = cart.stripeStoreBuildAddressForPartyCreate({
91
+ address: cart.stripeStore.stripeBillingAddressEventData.value.address,
92
+ firstName: cart.stripeStore.stripeBillingAddressEventData.value.firstName,
93
+ lastName: cart.stripeStore.stripeBillingAddressEventData.value.lastName,
94
+ name: cart.stripeStore.stripeBillingAddressEventData.value.name,
95
+ phone: cart.stripeStore.stripeBillingAddressEventData.value.phone,
96
+ });
97
+ const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
98
+ const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/create-billing-party', {
99
+ body: {
100
+ billingAddress,
101
+ checkoutSessionId: localization.storageStore.checkoutSessionId,
102
+ companyName: cart.stripeStore.companyName,
103
+ email: ((_d = cart.stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '',
104
+ isTest: isE2ETest,
105
+ rootId: landedCostRootId,
106
+ },
107
+ method: 'POST',
108
+ });
109
+ if (errors.length || !json) {
110
+ handleFetch.logError('Error occurs when creating billing party', JSON.stringify(errors, null, 2));
111
+ void handleFetch.sendErrorLog({
112
+ endpoint: 'INVOICE_BILLING_PARTY_CREATE_FAILED',
113
+ errors: ['[INVOICE] Failed to create billing party'],
114
+ metadata: {
115
+ allLogs: VarianceTest.allLogs,
116
+ cartId: window.Zonos.cartId,
117
+ checkoutSessionId: localization.storageStore.checkoutSessionId,
118
+ errors,
119
+ json,
120
+ },
121
+ });
122
+ return {
123
+ partiesCreated: false,
124
+ };
125
+ }
126
+ invoiceStore.partyBillingId = json.billToPartyId;
127
+ return {
128
+ partiesCreated: true,
129
+ };
130
+ };
131
+ const invoiceStoreUpdateSelectedShippingOption = async (checkoutSession) => {
132
+ const landedCost = checkoutSession.landedCost;
133
+ if (!landedCost) {
134
+ return false;
135
+ }
136
+ // Convert the landed cost to the format that cartStore expects
137
+ cart.cartStore.landedCostData = [
138
+ Object.assign(Object.assign({}, checkoutSession), { landedCost: Object.assign({}, landedCost), landedCostId: landedCost.id }),
139
+ ];
140
+ return cart.cartStoreUpdateSelectedShippingOption({
141
+ // No need to update checkout session again, we already called it when starting collect, only need to apply subtotals here to utilize the cart store
142
+ applySubtotalsOnly: true,
143
+ landedCostId: landedCost.id,
144
+ selectedShippingOption: landedCost.shipmentRating,
145
+ });
146
+ };
147
+
148
+ exports.invoiceStore = invoiceStore;
149
+ exports.invoiceStoreAsyncAddressUpdate = invoiceStoreAsyncAddressUpdate;
150
+ exports.invoiceStoreInitShippingInfo = invoiceStoreInitShippingInfo;
151
+ exports.invoiceStoreUpdateSelectedShippingOption = invoiceStoreUpdateSelectedShippingOption;
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-37a4b4f4.js');
4
- const cart = require('./cart-bc615014.js');
5
- const localization = require('./localization-39516612.js');
4
+ const cart = require('./cart-22ced7cc.js');
5
+ const localization = require('./localization-8ef6250a.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
- const index = require('./index-69fa8852.js');
9
8
 
10
9
  const { reset: collectStoreReset, state: collectStore } = zonosStore.createStore(() => ({
11
10
  amountDutyTaxFeeTotal: null,
@@ -169,17 +168,9 @@ const isCollectMobile = (isMobile) => {
169
168
  return isMobile || window.innerWidth < collectMobileBreakpoint;
170
169
  };
171
170
 
172
- const renderFallback = ({ content, isLoading, skeletonHeight, skeletonWidth, }) => {
173
- if (isLoading) {
174
- return (index.h("zonos-skeleton", { skeletonHeight: skeletonHeight, skeletonWidth: skeletonWidth }));
175
- }
176
- return content;
177
- };
178
-
179
171
  exports.collectStore = collectStore;
180
172
  exports.collectStoreAsyncAddressUpdate = collectStoreAsyncAddressUpdate;
181
173
  exports.collectStoreInitShippingInfo = collectStoreInitShippingInfo;
182
174
  exports.collectStoreUpdateSelectedShippingOption = collectStoreUpdateSelectedShippingOption;
183
175
  exports.isCollectMobile = isCollectMobile;
184
176
  exports.isCollectTablet = isCollectTablet;
185
- exports.renderFallback = renderFallback;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ const invoiceTabletBreakpoint = 1024;
4
+ const invoiceMobileBreakpoint = 768;
5
+ const isInvoiceTablet = (isTablet) => {
6
+ return (isTablet ||
7
+ (window.innerWidth < invoiceTabletBreakpoint &&
8
+ window.innerWidth >= invoiceMobileBreakpoint));
9
+ };
10
+ const isInvoiceMobile = (isMobile) => {
11
+ return isMobile || window.innerWidth < invoiceMobileBreakpoint;
12
+ };
13
+
14
+ exports.isInvoiceMobile = isInvoiceMobile;
15
+ exports.isInvoiceTablet = isInvoiceTablet;