@zonos/elements 1.3.259 → 1.3.261

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 (260) hide show
  1. package/dist/cjs/{cart-c618fd5b.js → cart-d08c87e2.js} +1 -1
  2. package/dist/cjs/{hasInclusivePrice-58a9f15d.js → hasInclusivePrice-c781c336.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{invoice-c9cb6683.js → invoice-e64f97c6.js} +2 -2
  5. package/dist/cjs/{isCollectMobileTablet-93a5194a.js → isCollectMobileTablet-9675485f.js} +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{localization-5994d4de.js → localization-a7fac4b4.js} +3 -0
  8. package/dist/cjs/{paypal-091e089e.js → paypal-73a542cb.js} +2 -2
  9. package/dist/cjs/{placeTestOrder-b07f8edb.js → placeTestOrder-aefd31e8.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-7876a1d4.js → renderCheckoutCurrency-a374741a.js} +2 -2
  11. package/dist/cjs/zonos-address-display_8.cjs.entry.js +19 -19
  12. package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
  13. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  16. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +86 -20
  17. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +16 -6
  19. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
  21. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -19
  22. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  23. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  27. package/dist/cjs/zonos-elements.cjs.js +1 -1
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  29. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
  32. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
  33. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  34. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  35. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
  38. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  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/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +74 -7
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -3
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  49. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  50. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  51. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
  52. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  53. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  54. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  55. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  56. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  57. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  58. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  59. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  60. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  61. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  62. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  63. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  64. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  65. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  66. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  67. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  68. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  69. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  70. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  71. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  72. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  73. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  74. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  75. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  76. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  77. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  78. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  79. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  80. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  81. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  82. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  83. package/dist/collection/components/main/zonos-controller.js +1 -1
  84. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  85. package/dist/collection/components/store/hello/localization.js +3 -0
  86. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  87. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  88. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  89. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  90. package/dist/esm/{cart-76fb528f.js → cart-c490d252.js} +1 -1
  91. package/dist/esm/{hasInclusivePrice-275b1048.js → hasInclusivePrice-7a0ce66a.js} +1 -1
  92. package/dist/esm/index.js +7 -7
  93. package/dist/esm/{invoice-9efcb941.js → invoice-3ea5715b.js} +2 -2
  94. package/dist/esm/{isCollectMobileTablet-a7e5b909.js → isCollectMobileTablet-0dcbd45a.js} +2 -2
  95. package/dist/esm/loader.js +1 -1
  96. package/dist/esm/{localization-76ce3e29.js → localization-542dbe20.js} +3 -0
  97. package/dist/esm/{paypal-75c5c66d.js → paypal-38ca5d21.js} +2 -2
  98. package/dist/esm/{placeTestOrder-22633bf2.js → placeTestOrder-d7001709.js} +2 -2
  99. package/dist/esm/{renderCheckoutCurrency-d27b0082.js → renderCheckoutCurrency-75f1bba3.js} +2 -2
  100. package/dist/esm/zonos-address-display_8.entry.js +19 -19
  101. package/dist/esm/zonos-address_4.entry.js +8 -8
  102. package/dist/esm/zonos-badge.entry.js +3 -3
  103. package/dist/esm/zonos-button_3.entry.js +3 -3
  104. package/dist/esm/zonos-card_5.entry.js +9 -9
  105. package/dist/esm/zonos-cart-items_12.entry.js +86 -20
  106. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  107. package/dist/esm/zonos-checkout.entry.js +16 -6
  108. package/dist/esm/zonos-collapse.entry.js +2 -2
  109. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
  110. package/dist/esm/zonos-collect-finish_6.entry.js +19 -19
  111. package/dist/esm/zonos-collect.entry.js +4 -4
  112. package/dist/esm/zonos-component.entry.js +1 -1
  113. package/dist/esm/zonos-controller.entry.js +3 -3
  114. package/dist/esm/zonos-country-flag.entry.js +1 -1
  115. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  116. package/dist/esm/zonos-elements.js +1 -1
  117. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  118. package/dist/esm/zonos-hello.entry.js +1 -1
  119. package/dist/esm/zonos-input.entry.js +4 -4
  120. package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
  121. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
  122. package/dist/esm/zonos-invoice.entry.js +4 -4
  123. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  124. package/dist/esm/zonos-link.entry.js +1 -1
  125. package/dist/esm/zonos-logo.entry.js +2 -2
  126. package/dist/esm/zonos-store-credit.entry.js +3 -3
  127. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  128. package/dist/esm/zonos-tooltip.entry.js +2 -2
  129. package/dist/esm/zonos-v-stack.entry.js +2 -2
  130. package/dist/esm-es5/{cart-76fb528f.js → cart-c490d252.js} +1 -1
  131. package/dist/esm-es5/{hasInclusivePrice-275b1048.js → hasInclusivePrice-7a0ce66a.js} +1 -1
  132. package/dist/esm-es5/index.js +1 -1
  133. package/dist/esm-es5/{invoice-9efcb941.js → invoice-3ea5715b.js} +1 -1
  134. package/dist/esm-es5/{isCollectMobileTablet-a7e5b909.js → isCollectMobileTablet-0dcbd45a.js} +1 -1
  135. package/dist/esm-es5/loader.js +1 -1
  136. package/dist/esm-es5/{localization-76ce3e29.js → localization-542dbe20.js} +1 -1
  137. package/dist/esm-es5/{paypal-75c5c66d.js → paypal-38ca5d21.js} +2 -2
  138. package/dist/esm-es5/{placeTestOrder-22633bf2.js → placeTestOrder-d7001709.js} +1 -1
  139. package/dist/esm-es5/{renderCheckoutCurrency-d27b0082.js → renderCheckoutCurrency-75f1bba3.js} +1 -1
  140. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  141. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  142. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  143. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  144. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  145. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  146. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  147. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  148. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  149. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  150. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  151. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  152. package/dist/esm-es5/zonos-component.entry.js +1 -1
  153. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  154. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  155. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  156. package/dist/esm-es5/zonos-elements.js +1 -1
  157. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  158. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  159. package/dist/esm-es5/zonos-input.entry.js +1 -1
  160. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  161. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  162. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  163. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  164. package/dist/esm-es5/zonos-link.entry.js +1 -1
  165. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  166. package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
  167. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  168. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  169. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  170. package/dist/scripts/index.d.ts +7 -0
  171. package/dist/scripts/index.js +1 -1
  172. package/dist/scripts/loadZonos.js +1 -1
  173. package/dist/scripts/zonos.js +1 -1
  174. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +15 -0
  175. package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
  176. package/dist/zonos-elements/index.esm.js +1 -1
  177. package/dist/zonos-elements/{p-bb6e7e9e.entry.js → p-00bd7e5d.entry.js} +1 -1
  178. package/dist/zonos-elements/p-03e53ef5.entry.js +1 -0
  179. package/dist/zonos-elements/{p-6d36b307.system.js → p-0699931c.system.js} +1 -1
  180. package/dist/zonos-elements/{p-f4e54f09.system.entry.js → p-072c5e07.system.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-e6168c82.system.js → p-0ec4e307.system.js} +1 -1
  182. package/dist/zonos-elements/{p-f7ddd288.system.entry.js → p-14f156c6.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-66d72216.entry.js → p-155b4425.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-9161f10d.system.entry.js → p-17476a30.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-9cbac993.entry.js → p-1916c2b0.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-1e9e284e.system.entry.js → p-1917202e.system.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-2ec799e4.system.js → p-196423ad.system.js} +1 -1
  188. package/dist/zonos-elements/{p-567abb43.system.js → p-20263609.system.js} +1 -1
  189. package/dist/zonos-elements/{p-bdb3f7a2.js → p-24407504.js} +2 -2
  190. package/dist/zonos-elements/{p-1523f6a8.system.js → p-248bdea2.system.js} +1 -1
  191. package/dist/zonos-elements/{p-bba9af4c.entry.js → p-27f01d76.entry.js} +1 -1
  192. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  193. package/dist/zonos-elements/{p-5fa3d1c8.system.entry.js → p-2c9714e8.system.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-cc645667.system.js → p-31bd3851.system.js} +1 -1
  195. package/dist/zonos-elements/{p-425f747b.entry.js → p-34fc45e5.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-b34f1336.system.entry.js → p-3c3139d2.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-e8a68ce7.system.js → p-47bde0ba.system.js} +1 -1
  198. package/dist/zonos-elements/{p-1368dce7.system.entry.js → p-4a227683.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-bcbbe867.entry.js → p-4cee62fb.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-c1ab70d2.entry.js → p-4d776228.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-bdaf94a4.system.entry.js → p-50a15e3d.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-d30e8c3a.entry.js → p-55742c52.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-788c6839.entry.js → p-5a79e1f4.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-8585c761.system.entry.js → p-5db00bfa.system.entry.js} +1 -1
  205. package/dist/zonos-elements/p-5dff9d51.system.entry.js +1 -0
  206. package/dist/zonos-elements/{p-5262f6e8.entry.js → p-6726fee0.entry.js} +1 -1
  207. package/dist/zonos-elements/p-6b7beb44.system.js +1 -0
  208. package/dist/zonos-elements/{p-3ee8496e.js → p-7158a18b.js} +1 -1
  209. package/dist/zonos-elements/p-721fadd5.js +1 -0
  210. package/dist/zonos-elements/{p-24f41959.js → p-72adb40d.js} +1 -1
  211. package/dist/zonos-elements/{p-99d92a84.entry.js → p-7793d334.entry.js} +1 -1
  212. package/dist/zonos-elements/p-7c5c5318.js +1 -0
  213. package/dist/zonos-elements/{p-6f19845a.system.entry.js → p-7dbac3ae.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-afdb4445.entry.js → p-80e7cab5.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-6cf8fe49.system.entry.js → p-8d0bca3a.system.entry.js} +1 -1
  216. package/dist/zonos-elements/{p-6e50f6f5.entry.js → p-8df3c6a0.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-dfb4360d.system.entry.js → p-9262a57c.system.entry.js} +1 -1
  218. package/dist/zonos-elements/p-9cfd1dc3.entry.js +1 -0
  219. package/dist/zonos-elements/{p-bb785f33.entry.js → p-9e761130.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-c908a7a3.entry.js → p-a1142a95.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-2d854a75.entry.js → p-a3020bc9.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-9a9c9441.system.entry.js → p-a661dd45.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-a18adf27.js → p-a75b8ad7.js} +1 -1
  224. package/dist/zonos-elements/{p-bd938f80.js → p-a8bb461c.js} +1 -1
  225. package/dist/zonos-elements/{p-edb0306c.system.entry.js → p-aa74b61a.system.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-2fa41e93.entry.js → p-ade15fd2.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-87d89870.system.entry.js → p-b1c76c38.system.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-2b2b1c8c.system.entry.js → p-b21cf539.system.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-770d414a.system.entry.js → p-b2cd18b4.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-4b138a6e.system.entry.js → p-b47fcd8c.system.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-1ebb59a3.js → p-b5223840.js} +1 -1
  232. package/dist/zonos-elements/{p-afca19b0.system.entry.js → p-be1032ab.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-10da499b.system.entry.js → p-bf4d2299.system.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-1661f938.entry.js → p-c263f95f.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-9460919d.entry.js → p-cdf99051.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-055c8d6c.system.entry.js → p-d2ef0416.system.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-a4b6865d.system.entry.js → p-d50fef06.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-3600280d.system.js → p-d7a9be55.system.js} +1 -1
  239. package/dist/zonos-elements/{p-7a379538.entry.js → p-d983d472.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-14d35979.system.entry.js → p-dc4e867e.system.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-439dc620.system.entry.js → p-e14f421d.system.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-9cff66a7.entry.js → p-e684e68f.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-d004565d.system.entry.js → p-e76dc266.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-a89096d6.system.entry.js → p-eca03303.system.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-3576d900.entry.js → p-ed827ca3.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-a0f6910c.entry.js → p-eeff2b04.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-791e13e7.entry.js → p-ef12af4b.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-7157a5a3.entry.js → p-f0046c48.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-62dbc5f8.system.entry.js → p-f00a56be.system.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-29d16ad0.entry.js → p-f4030586.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-fbc274a8.system.entry.js → p-f7d24382.system.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-12459b59.entry.js → p-fb87172c.entry.js} +1 -1
  253. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  254. package/package.json +1 -1
  255. package/dist/zonos-elements/p-0a9741f7.entry.js +0 -1
  256. package/dist/zonos-elements/p-868a8667.js +0 -1
  257. package/dist/zonos-elements/p-c85e988d.system.js +0 -1
  258. package/dist/zonos-elements/p-d13120f6.entry.js +0 -1
  259. package/dist/zonos-elements/p-e5f48239.system.entry.js +0 -1
  260. package/dist/zonos-elements/p-ed03b7fd.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c as e,z as o}from"./p-ed9385f4.js";import{t as n,y as r,b as t,d as a,v as i,w as s,x as c,z as l,r as u,h as d,F as p}from"./p-bd938f80.js";import{t as f,s as y}from"./p-a18adf27.js";import{h as v,l as h,j as b}from"./p-41dd1cb8.js";import{i as w}from"./p-7d9bbdc8.js";import{l as m}from"./p-0a377722.js";import{s as P}from"./p-387f6a4d.js";
1
+ import{c as e,z as o}from"./p-ed9385f4.js";import{t as n,y as r,b as t,d as a,v as i,w as s,x as c,z as l,r as u,h as d,F as p}from"./p-a8bb461c.js";import{t as f,s as y}from"./p-a75b8ad7.js";import{h as v,l as b,j as h}from"./p-41dd1cb8.js";import{i as w}from"./p-7d9bbdc8.js";import{l as m}from"./p-0a377722.js";import{s as P}from"./p-387f6a4d.js";
2
2
  /*!
3
3
  * paypal-js v8.4.2 (2025-09-04T17:21:30.135Z)
4
4
  * Copyright 2020-present, PayPal, Inc. All rights reserved.
@@ -14,4 +14,4 @@ import{c as e,z as o}from"./p-ed9385f4.js";import{t as n,y as r,b as t,d as a,v
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */function j(e,o){void 0===o&&(o={});var n=document.createElement("script");return n.src=e,Object.keys(o).forEach((function(e){n.setAttribute(e,o[e]),"data-csp-nonce"===e&&n.setAttribute("nonce",o["data-csp-nonce"])})),n}function k(e,o){if(void 0===o&&(o=Promise),S(e,o),"undefined"==typeof document)return o.resolve(null);var n=function(e){var o,n,r=e.sdkBaseUrl,t=e.environment,a=function(e,o){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)o.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(n[r[t]]=e[r[t]])}return n}(e,["sdkBaseUrl","environment"]),i=r||function(e){return"sandbox"===e?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}(t),s=a,c=Object.keys(s).filter((function(e){return null!=s[e]&&""!==s[e]})).reduce((function(e,o){var n=s[o].toString();return"data"===(o=o.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(function(e,o){return(o?"-":"")+e.toLowerCase()}))).substring(0,4)||"crossorigin"===o?e.attributes[o]=n:e.queryParams[o]=n,e}),{queryParams:{},attributes:{}}),l=c.queryParams,u=c.attributes;return l["merchant-id"]&&-1!==l["merchant-id"].indexOf(",")&&(u["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(i,"?").concat((o=l,n="",Object.keys(o).forEach((function(e){0!==n.length&&(n+="&"),n+=e+"="+o[e]})),n)),attributes:u}}(e),r=n.url,t=n.attributes,a=t["data-namespace"]||"paypal",i=I(a);return t["data-js-sdk-library"]||(t["data-js-sdk-library"]="paypal-js"),function(e,o){var n=document.querySelector('script[src="'.concat(e,'"]'));if(null===n)return null;var r=j(e,o),t=n.cloneNode();if(delete t.dataset.uidAuto,Object.keys(t.dataset).length!==Object.keys(r.dataset).length)return null;var a=!0;return Object.keys(t.dataset).forEach((function(e){t.dataset[e]!==r.dataset[e]&&(a=!1)})),a?n:null}(r,t)&&i?o.resolve(i):function(e,o){void 0===o&&(o=Promise),S(e,o);var n=e.url,r=e.attributes;if("string"!=typeof n||0===n.length)throw new Error("Invalid url.");if(void 0!==r&&"object"!=typeof r)throw new Error("Expected attributes to be an object.");return new o((function(e,o){if("undefined"==typeof document)return e();!function(e){var o=e.onSuccess,n=e.onError,r=j(e.url,e.attributes);r.onerror=n,r.onload=o,document.head.insertBefore(r,document.head.firstElementChild)}({url:n,attributes:r,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return o(e)}})}))}({url:r,attributes:t},o).then((function(){var e=I(a);if(e)return e;throw new Error("The window.".concat(a," global variable is not available."))}))}function I(e){return window[e]}function S(e,o){if("object"!=typeof e||null===e)throw new Error("Expected an options object.");var n=e.environment;if(n&&"production"!==n&&"sandbox"!==n)throw new Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==o&&"function"!=typeof o)throw new Error("Expected PromisePonyfill to be a function.")}"function"==typeof SuppressedError&&SuppressedError;const{onChange:E,reset:g,state:A}=e((()=>({intent:"capture",orderIdCreated:null,paypal:null,paypalButtons:[],paypalClientId:"",paypalErrorMessage:null}))),O=({checkoutSessionId:e,onPaypalFail:y,onPaypalSessionDone:m,overrideBorderRaidus:j,overridePrimaryColor:k})=>({createOrder:async()=>{n({checkoutSessionId:e,eventName:"checkout_paymentInfoCompleted",metadata:{paymentMethod:"paypal"}});const o=await r();if(!o.valid)return A.paypalErrorMessage=o.errorMessage,t.hasPaymentError=!1,t.customErrorMessage=null,P({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}}),null==y||y(),"";try{A.paypalErrorMessage=null,a.inventoryCheckErrorMessage=null;try{a.inventoryCheckErrorMessage=await i()}catch(e){a.inventoryCheckErrorMessage=f("Unable to check inventory. Please try again.")}if(a.inventoryCheckErrorMessage)return"";if(p()>0){const e=await s();if(!e.success)return A.paypalErrorMessage=e.error||f("Unable to apply store credit. Please try again."),null==y||y(),""}if(c()){const e=await l();return e.success?(null==m||m({orderId:e.orderId||""}),u(),d(),""):(A.paypalErrorMessage=e.error||f("Unable to place order with store credit. Please try again."),null==y||y(),"")}return await(async({checkoutSessionId:e})=>{var o,n;const r=A.intent.toUpperCase(),{errors:t,json:a}=await(async({checkoutSessionId:e,intent:o})=>{const{errors:n,json:r}=await v("/api/zonos-elements/create-paypal-order",{body:{checkoutSessionId:e,intent:o},method:"POST"});return{errors:n,json:r}})({checkoutSessionId:e,intent:r}),i=null===(o=null==a?void 0:a.paypalOrderCreate)||void 0===o?void 0:o.paypalOrderId;if(t.length||!i)throw new Error((null===(n=t.find(Boolean))||void 0===n?void 0:n.message)||"An unexpected error occurred when creating paypal order.");return i})({checkoutSessionId:e})}catch(o){return h("Failed to create paypal order",o),A.paypalErrorMessage=f("Failed to create PayPal order. Please try again, or consider using an alternative method."),t.hasPaymentError=!1,t.customErrorMessage=null,P({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}}),null==y||y(),""}},onApprove:async()=>{try{A.paypalErrorMessage=null,P({event:"zonos-checkout-payment-info",metadata:{checkoutSessionId:e,paymentMethod:"paypal"}});const o=await(async({checkoutSessionId:e,paypalMockResponse:o})=>{var n,r;const{errors:t,json:a}=await(async({checkoutSessionId:e,paypalMockResponse:o})=>{const{errors:n,json:r}=await v("/api/zonos-elements/capture-paypal-order",{body:{checkoutSessionId:e,paypalMockResponse:o},method:"POST"});return{errors:n,json:r}})({checkoutSessionId:e,paypalMockResponse:o}),i=null===(n=null==a?void 0:a.paypalOrderCapture.order)||void 0===n?void 0:n.id;if(t.length||!i)throw new Error((null===(r=t.find(Boolean))||void 0===r?void 0:r.message)||f("An unexpected error occurred when processing PayPal order."));return i})({checkoutSessionId:e,paypalMockResponse:window.Zonos._paypalMockResponse});A.orderIdCreated=o,null==m||m({orderId:o}),u(),d()}catch(e){if(h("==== Failed to capture paypal order",e),e instanceof Error)return(({error:e})=>{var o;const n=b(e.message),r=null===(o=null==n?void 0:n.errors.find(Boolean))||void 0===o?void 0:o.message,t=(null==r?void 0:r.match(/\[(.*?)\] (.*)/i))||[];t||(A.paypalErrorMessage=f("An unexpected error occurred when processing PayPal order."));const a=t[2]||f("An unexpected error occurred when processing PayPal order.");A.paypalErrorMessage=a})({error:e});null==y||y()}},style:{borderRadius:"SHARP"===j?0:10,color:w({backgroundColor1:"#ffc33a",backgroundColor2:k||o.appearance.colorPrimary||""})?"gold":"blue",shape:"rect"}}),x=async({currency:e})=>{var n;if(!(null===(n=o.checkoutSettings.externalPaymentMethods)||void 0===n?void 0:n.find((e=>"PAYPAL"===e.type&&"ENABLED"===e.status))))return void m("=== Paypal is disabled for this store","warn");const r=o.checkoutSettings.externalServiceTokens.find((e=>"PAYPAL_CLIENT_ID"===e.type));if(!r)return void m("Failed to load paypal -- missing paypal publishable key","warn");const t=o.zonosMode&&"production"!==o.zonosMode||"LIVE"!==o.checkoutSettings.mode?"sandbox":"production";A.intent=o.checkoutSettings.captureDelay&&o.checkoutSettings.captureDelay>0?"authorize":"capture",m("==== Paypal order intent","info",A.intent),window.Zonos.paypal=await k({clientId:r.token,currency:e,environment:t,intent:A.intent}),A.paypal=window.Zonos.paypal,m("==== Paypal script loaded")},B=e=>{var o;const n=window.Zonos.paypal;if(!n)return m("Paypal is not available"),null;const r=y.checkoutSessionId;if(!r)return m("Paypal is not available due to checkoutSessionId is not available"),null;m("==== Loading Paypal buttons"),A.paypalButtons.length&&(A.paypalButtons.forEach((async e=>{await e.close()})),A.paypalButtons=[]);const t=[null===(o=n.FUNDING)||void 0===o?void 0:o.PAYPAL].filter(Boolean);return A.paypalButtons=t.map((o=>{var t;let a=null;try{a=(null===(t=n.Buttons)||void 0===t?void 0:t.call(n,Object.assign(Object.assign({},O(Object.assign({checkoutSessionId:r,fundingSource:o},e))),{fundingSource:o})))||null}catch(e){m(`===== Failed to load paypal's "${o}" button`,"warn",e)}return(null==a?void 0:a.isEligible())?(m(`==== Paypal button ${o} loaded`),a):null})).filter(Boolean),A.paypalButtons},z=()=>{var e,n;return"ENABLED"===(null===(n=null===(e=o.checkoutSettings.externalPaymentMethods)||void 0===e?void 0:e.find((e=>"PAYPAL"===e.type)))||void 0===n?void 0:n.status)||!!A.paypalButtons.length};export{A as a,x as b,g as c,B as d,E as e,z as p}
17
+ */function j(e,o){void 0===o&&(o={});var n=document.createElement("script");return n.src=e,Object.keys(o).forEach((function(e){n.setAttribute(e,o[e]),"data-csp-nonce"===e&&n.setAttribute("nonce",o["data-csp-nonce"])})),n}function k(e,o){if(void 0===o&&(o=Promise),S(e,o),"undefined"==typeof document)return o.resolve(null);var n=function(e){var o,n,r=e.sdkBaseUrl,t=e.environment,a=function(e,o){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)o.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(n[r[t]]=e[r[t]])}return n}(e,["sdkBaseUrl","environment"]),i=r||function(e){return"sandbox"===e?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}(t),s=a,c=Object.keys(s).filter((function(e){return null!=s[e]&&""!==s[e]})).reduce((function(e,o){var n=s[o].toString();return"data"===(o=o.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(function(e,o){return(o?"-":"")+e.toLowerCase()}))).substring(0,4)||"crossorigin"===o?e.attributes[o]=n:e.queryParams[o]=n,e}),{queryParams:{},attributes:{}}),l=c.queryParams,u=c.attributes;return l["merchant-id"]&&-1!==l["merchant-id"].indexOf(",")&&(u["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(i,"?").concat((o=l,n="",Object.keys(o).forEach((function(e){0!==n.length&&(n+="&"),n+=e+"="+o[e]})),n)),attributes:u}}(e),r=n.url,t=n.attributes,a=t["data-namespace"]||"paypal",i=I(a);return t["data-js-sdk-library"]||(t["data-js-sdk-library"]="paypal-js"),function(e,o){var n=document.querySelector('script[src="'.concat(e,'"]'));if(null===n)return null;var r=j(e,o),t=n.cloneNode();if(delete t.dataset.uidAuto,Object.keys(t.dataset).length!==Object.keys(r.dataset).length)return null;var a=!0;return Object.keys(t.dataset).forEach((function(e){t.dataset[e]!==r.dataset[e]&&(a=!1)})),a?n:null}(r,t)&&i?o.resolve(i):function(e,o){void 0===o&&(o=Promise),S(e,o);var n=e.url,r=e.attributes;if("string"!=typeof n||0===n.length)throw new Error("Invalid url.");if(void 0!==r&&"object"!=typeof r)throw new Error("Expected attributes to be an object.");return new o((function(e,o){if("undefined"==typeof document)return e();!function(e){var o=e.onSuccess,n=e.onError,r=j(e.url,e.attributes);r.onerror=n,r.onload=o,document.head.insertBefore(r,document.head.firstElementChild)}({url:n,attributes:r,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return o(e)}})}))}({url:r,attributes:t},o).then((function(){var e=I(a);if(e)return e;throw new Error("The window.".concat(a," global variable is not available."))}))}function I(e){return window[e]}function S(e,o){if("object"!=typeof e||null===e)throw new Error("Expected an options object.");var n=e.environment;if(n&&"production"!==n&&"sandbox"!==n)throw new Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==o&&"function"!=typeof o)throw new Error("Expected PromisePonyfill to be a function.")}"function"==typeof SuppressedError&&SuppressedError;const{onChange:E,reset:g,state:A}=e((()=>({intent:"capture",orderIdCreated:null,paypal:null,paypalButtons:[],paypalClientId:"",paypalErrorMessage:null}))),O=({checkoutSessionId:e,onPaypalFail:y,onPaypalSessionDone:m,overrideBorderRaidus:j,overridePrimaryColor:k})=>({createOrder:async()=>{n({checkoutSessionId:e,eventName:"checkout_paymentInfoCompleted",metadata:{paymentMethod:"paypal"}});const o=await r();if(!o.valid)return A.paypalErrorMessage=o.errorMessage,t.hasPaymentError=!1,t.customErrorMessage=null,P({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}}),null==y||y(),"";try{A.paypalErrorMessage=null,a.inventoryCheckErrorMessage=null;try{a.inventoryCheckErrorMessage=await i()}catch(e){a.inventoryCheckErrorMessage=f("Unable to check inventory. Please try again.")}if(a.inventoryCheckErrorMessage)return"";if(p()>0){const e=await s();if(!e.success)return A.paypalErrorMessage=e.error||f("Unable to apply store credit. Please try again."),null==y||y(),""}if(c()){const e=await l();return e.success?(null==m||m({orderId:e.orderId||""}),u(),d(),""):(A.paypalErrorMessage=e.error||f("Unable to place order with store credit. Please try again."),null==y||y(),"")}return await(async({checkoutSessionId:e})=>{var o,n;const r=A.intent.toUpperCase(),{errors:t,json:a}=await(async({checkoutSessionId:e,intent:o})=>{const{errors:n,json:r}=await v("/api/zonos-elements/create-paypal-order",{body:{checkoutSessionId:e,intent:o},method:"POST"});return{errors:n,json:r}})({checkoutSessionId:e,intent:r}),i=null===(o=null==a?void 0:a.paypalOrderCreate)||void 0===o?void 0:o.paypalOrderId;if(t.length||!i)throw new Error((null===(n=t.find(Boolean))||void 0===n?void 0:n.message)||"An unexpected error occurred when creating paypal order.");return i})({checkoutSessionId:e})}catch(o){return b("Failed to create paypal order",o),A.paypalErrorMessage=f("Failed to create PayPal order. Please try again, or consider using an alternative method."),t.hasPaymentError=!1,t.customErrorMessage=null,P({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}}),null==y||y(),""}},onApprove:async()=>{try{A.paypalErrorMessage=null,P({event:"zonos-checkout-payment-info",metadata:{checkoutSessionId:e,paymentMethod:"paypal"}});const o=await(async({checkoutSessionId:e,paypalMockResponse:o})=>{var n,r;const{errors:t,json:a}=await(async({checkoutSessionId:e,paypalMockResponse:o})=>{const{errors:n,json:r}=await v("/api/zonos-elements/capture-paypal-order",{body:{checkoutSessionId:e,paypalMockResponse:o},method:"POST"});return{errors:n,json:r}})({checkoutSessionId:e,paypalMockResponse:o}),i=null===(n=null==a?void 0:a.paypalOrderCapture.order)||void 0===n?void 0:n.id;if(t.length||!i)throw new Error((null===(r=t.find(Boolean))||void 0===r?void 0:r.message)||f("An unexpected error occurred when processing PayPal order."));return i})({checkoutSessionId:e,paypalMockResponse:window.Zonos._paypalMockResponse});A.orderIdCreated=o,null==m||m({orderId:o}),u(),d()}catch(e){if(b("==== Failed to capture paypal order",e),e instanceof Error)return(({error:e})=>{var o;const n=h(e.message),r=null===(o=null==n?void 0:n.errors.find(Boolean))||void 0===o?void 0:o.message,t=(null==r?void 0:r.match(/\[(.*?)\] (.*)/i))||[];t||(A.paypalErrorMessage=f("An unexpected error occurred when processing PayPal order."));const a=t[2]||f("An unexpected error occurred when processing PayPal order.");A.paypalErrorMessage=a})({error:e});null==y||y()}},style:{borderRadius:"SHARP"===j?0:10,color:w({backgroundColor1:"#ffc33a",backgroundColor2:k||o.appearance.colorPrimary||""})?"gold":"blue",shape:"rect"}}),x=async({currency:e})=>{var n;if(!(null===(n=o.checkoutSettings.externalPaymentMethods)||void 0===n?void 0:n.find((e=>"PAYPAL"===e.type&&"ENABLED"===e.status))))return void m("=== Paypal is disabled for this store","warn");const r=o.checkoutSettings.externalServiceTokens.find((e=>"PAYPAL_CLIENT_ID"===e.type));if(!r)return void m("Failed to load paypal -- missing paypal publishable key","warn");const t=o.zonosMode&&"production"!==o.zonosMode||"LIVE"!==o.checkoutSettings.mode?"sandbox":"production";A.intent=o.checkoutSettings.captureDelay&&o.checkoutSettings.captureDelay>0?"authorize":"capture",m("==== Paypal order intent","info",A.intent),window.Zonos.paypal=await k({clientId:r.token,currency:e,environment:t,intent:A.intent}),A.paypal=window.Zonos.paypal,m("==== Paypal script loaded")},B=e=>{var o;const n=window.Zonos.paypal;if(!n)return m("Paypal is not available"),null;const r=y.checkoutSessionId;if(!r)return m("Paypal is not available due to checkoutSessionId is not available"),null;m("==== Loading Paypal buttons"),A.paypalButtons.length&&(A.paypalButtons.forEach((async e=>{await e.close()})),A.paypalButtons=[]);const t=[null===(o=n.FUNDING)||void 0===o?void 0:o.PAYPAL].filter(Boolean);return A.paypalButtons=t.map((o=>{var t;let a=null;try{a=(null===(t=n.Buttons)||void 0===t?void 0:t.call(n,Object.assign(Object.assign({},O(Object.assign({checkoutSessionId:r,fundingSource:o},e))),{fundingSource:o})))||null}catch(e){m(`===== Failed to load paypal's "${o}" button`,"warn",e)}return(null==a?void 0:a.isEligible())?(m(`==== Paypal button ${o} loaded`),a):null})).filter(Boolean),A.paypalButtons},z=()=>{var e,n;return"ENABLED"===(null===(n=null===(e=o.checkoutSettings.externalPaymentMethods)||void 0===e?void 0:e.find((e=>"PAYPAL"===e.type)))||void 0===n?void 0:n.status)||!!A.paypalButtons.length};export{A as a,x as b,g as c,B as d,E as e,z as p}