@justifi/webcomponents 5.7.1 → 5.7.3

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 (481) hide show
  1. package/dist/cjs/{Api-C8nf_gS9.js → Api-CJ1_RDQW.js} +2 -2
  2. package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
  3. package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-TZnRz3-3.js} +1 -1
  4. package/dist/cjs/{Document-CL5Zc72Q.js → Payment-D5UynU2f.js} +1 -57
  5. package/dist/cjs/{Refund-CYxocU06.js → Refund-BFE-2OxN.js} +57 -1
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -15
  7. package/dist/cjs/{badge-BxoJOyTJ.js → badge-ByHiVqEE.js} +1 -1
  8. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -12
  9. package/dist/cjs/bank-account-form_9.cjs.entry.js +40 -29
  10. package/dist/cjs/{business-additional-questions-schema-DR8vt11M.js → business-additional-questions-schema-e3GCIHk5.js} +1 -1
  11. package/dist/cjs/business-details-core.cjs.entry.js +5 -6
  12. package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
  13. package/dist/cjs/{business-identity-schema-BYaCsboD.js → business-identity-schema-Diqj_WVQ.js} +1 -1
  14. package/dist/cjs/{business.service-C2rg_zSw.js → business.service-CsKKWn0g.js} +5 -5
  15. package/dist/cjs/{button-BPFSRx4d.js → button-DXvFLf3b.js} +1 -1
  16. package/dist/cjs/{check-pkg-version-BqC8BOhm.js → check-pkg-version-BqLxQqZQ.js} +6 -6
  17. package/dist/cjs/{checkout.service-CyvIIMeq.js → checkout.service-CugpgJy_.js} +5 -5
  18. package/dist/cjs/checkouts-list-core.cjs.entry.js +13 -13
  19. package/dist/cjs/{payouts-list-params-state-BvG5Ysrg.js → checkouts-list-params-state-BZPc3hJS.js} +1 -1
  20. package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-BV-36YfA.js} +3 -3
  21. package/dist/cjs/{config-state-D7p-XunE.js → config-state-BH7lf2ok.js} +1 -1
  22. package/dist/cjs/custom-popper_4.cjs.entry.js +2 -2
  23. package/dist/cjs/{dispute.service-CKPR1vFS.js → dispute.service-B8vLwAZm.js} +5 -5
  24. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
  26. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  27. package/dist/cjs/{form-control-error-text-D9XDyFoW.js → form-control-error-text-B-3qE49U.js} +1 -1
  28. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
  29. package/dist/cjs/{form-control-help-text-J_boqSMc.js → form-control-help-text-BlYVOrII.js} +1 -1
  30. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
  33. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  34. package/dist/cjs/form-control-number.cjs.entry.js +3 -3
  35. package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
  36. package/dist/cjs/{get-business-DHg5rpse.js → get-business-BJrtsomz.js} +1 -1
  37. package/dist/cjs/{get-payment-details-C9HqIv-M.js → get-payment-details-CudOQBpU.js} +7 -7
  38. package/dist/cjs/{get-subaccounts-BNpIanJ9.js → get-subaccounts-DjwsQffs.js} +7 -7
  39. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  40. package/dist/cjs/{header-1-auSUfIpO.js → header-1-agnQ4uEf.js} +1 -1
  41. package/dist/cjs/{header-3-B-bXHCpC.js → header-3-BAx5OhvM.js} +1 -1
  42. package/dist/cjs/{iframe-input-styles-state-D9vhHzZQ.js → iframe-input-styles-state-CFjq45QT.js} +1 -1
  43. package/dist/cjs/iframe-input.cjs.entry.js +5 -5
  44. package/dist/cjs/{index-B8ljHEN1.js → index-oahmQhrI.js} +1 -1
  45. package/dist/cjs/{index-BYd8IvAa.js → index-y-rskGFM.js} +1 -1
  46. package/dist/cjs/{insurance-state-CFxbKNWH.js → insurance-state-CCo-Gmfe.js} +2 -2
  47. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +50 -23
  48. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -13
  49. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
  50. package/dist/cjs/justifi-business-details.cjs.entry.js +21 -16
  51. package/dist/cjs/justifi-business-form.cjs.entry.js +20 -20
  52. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-checkout.cjs.entry.js +12 -12
  55. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -10
  56. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +16 -16
  57. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  58. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  60. package/dist/cjs/justifi-dispute-management.cjs.entry.js +12 -12
  61. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -15
  62. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +12 -12
  63. package/dist/cjs/justifi-order-terminals.cjs.entry.js +16 -16
  64. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +14 -14
  65. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
  66. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  67. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +12 -12
  68. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +15 -15
  69. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +5 -5
  70. package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -17
  71. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
  72. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +15 -15
  73. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -5
  74. package/dist/cjs/justifi-payouts-list.cjs.entry.js +17 -17
  75. package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -16
  76. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +6 -6
  77. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -11
  78. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
  79. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +14 -14
  80. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -10
  81. package/dist/cjs/justifi-terminals-list.cjs.entry.js +16 -16
  82. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +15 -16
  83. package/dist/cjs/loader.cjs.js +2 -2
  84. package/dist/cjs/{package-Biee4Hdo.js → package-a_vXN-Ly.js} +1 -1
  85. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  86. package/dist/cjs/payment-details-core.cjs.entry.js +7 -7
  87. package/dist/cjs/{payment.service-C996aLGw.js → payment.service-aqlDvgDe.js} +5 -5
  88. package/dist/cjs/payments-list-core.cjs.entry.js +14 -14
  89. package/dist/cjs/{payments-list-params-state-BvG5Ysrg.js → payments-list-params-state-BZPc3hJS.js} +1 -1
  90. package/dist/cjs/{payments-status-BTykBx8i.js → payments-status-CWK1uHtj.js} +2 -2
  91. package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-CP8LGibG.js} +3 -3
  92. package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
  93. package/dist/cjs/{payout.service-BwKgEbDo.js → payout.service-CL-hcMGg.js} +5 -5
  94. package/dist/cjs/payouts-list-core.cjs.entry.js +14 -14
  95. package/dist/cjs/{terminal-orders-list-params-state-BvG5Ysrg.js → payouts-list-params-state-BZPc3hJS.js} +1 -1
  96. package/dist/cjs/{payouts-status-YCqmbd4K.js → payouts-status-Jz2Mh3JP.js} +2 -2
  97. package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-DyuoNtFw.js} +3 -3
  98. package/dist/cjs/{schema-validations-Bhz09M42.js → schema-validations-BSeMee-o.js} +5 -29
  99. package/dist/cjs/{skeleton-aMh0RMHq.js → skeleton-CgT0siC5.js} +1 -1
  100. package/dist/cjs/{spinner-BTyIjlMM.js → spinner-Cz4By3FY.js} +1 -1
  101. package/dist/cjs/{styled-host-udkBJV5h.js → styled-host-LD5MpzHs.js} +1 -1
  102. package/dist/cjs/{table-DKVauFHc.js → table-Cvr8-PLT.js} +2 -2
  103. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  104. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +13 -13
  105. package/dist/cjs/{checkouts-list-params-state-BvG5Ysrg.js → terminal-orders-list-params-state-BZPc3hJS.js} +1 -1
  106. package/dist/cjs/{terminal-orders-table-CxY1ykZ7.js → terminal-orders-table-CslE3Ojj.js} +8 -8
  107. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  108. package/dist/cjs/{terminal.service-D7dxg9ZQ.js → terminal.service-3geWla42.js} +5 -5
  109. package/dist/cjs/terminals-list-core.cjs.entry.js +13 -13
  110. package/dist/cjs/terminals-list-params-state-BZPc3hJS.js +22 -0
  111. package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-DlZSKdHC.js} +3 -3
  112. package/dist/cjs/{utils-5lco6NzU.js → utils-B4fXt0os.js} +1 -1
  113. package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
  114. package/dist/cjs/webcomponents.cjs.js +3 -3
  115. package/dist/collection/api/Business.js +3 -1
  116. package/dist/collection/collection-manifest.json +2 -2
  117. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
  118. package/dist/collection/components/business-details/business-details-core.js +1 -2
  119. package/dist/collection/components/business-details/business-details.js +10 -3
  120. package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
  121. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
  122. package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
  123. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  125. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
  126. package/dist/collection/components/business-forms/schemas/schema-validations.js +7 -54
  127. package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
  128. package/dist/collection/components/checkout/new-payment-method.js +17 -6
  129. package/dist/collection/components/checkout/payment-method-options.js +4 -5
  130. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +4 -5
  131. package/dist/collection/ui-components/details/details.js +2 -2
  132. package/dist/collection/utils/utils.js +3 -0
  133. package/dist/docs.json +349 -122
  134. package/dist/esm/{Api-KYhsw8Nv.js → Api-CZhQlPMs.js} +2 -2
  135. package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
  136. package/dist/esm/{Checkout-Dfpql997.js → Checkout-B9LrTq63.js} +1 -1
  137. package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
  138. package/dist/esm/{Document-cNXrKmGy.js → Payment-BGiKmQYR.js} +3 -57
  139. package/dist/esm/{Refund-2YJqP9qX.js → Refund-DDIEc_gu.js} +56 -2
  140. package/dist/esm/additional-questions-details_5.entry.js +14 -15
  141. package/dist/esm/{badge-Du9GTXoB.js → badge-Bbh4S1LJ.js} +1 -1
  142. package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -12
  143. package/dist/esm/bank-account-form_9.entry.js +33 -22
  144. package/dist/esm/{business-additional-questions-schema-GpN_koGK.js → business-additional-questions-schema-uQlQ8fXQ.js} +1 -1
  145. package/dist/esm/business-details-core.entry.js +5 -6
  146. package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
  147. package/dist/esm/{business-identity-schema-BjuQ6ajL.js → business-identity-schema-BsrgqgDl.js} +1 -1
  148. package/dist/esm/{business.service-ClD_YDeT.js → business.service-CUWiJ5Un.js} +6 -6
  149. package/dist/esm/{button-CjH5C0pG.js → button-BrZXQ8gb.js} +1 -1
  150. package/dist/esm/{check-pkg-version-DxnKX9GQ.js → check-pkg-version-CxnnjoM3.js} +7 -7
  151. package/dist/esm/{checkout.service-DfzkmIe4.js → checkout.service-DqXrjRw7.js} +6 -6
  152. package/dist/esm/checkouts-list-core.entry.js +14 -14
  153. package/dist/esm/{checkouts-list-params-state-Bn7pL-8x.js → checkouts-list-params-state-BI3u1DYG.js} +1 -1
  154. package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-p7UZFB5v.js} +3 -3
  155. package/dist/esm/{config-state-CkKrqnpZ.js → config-state-ecb1EsvM.js} +1 -1
  156. package/dist/esm/custom-popper_4.entry.js +2 -2
  157. package/dist/esm/{dispute.service-BTOWqnmk.js → dispute.service-DpgnWZA1.js} +6 -6
  158. package/dist/esm/form-alert_5.entry.js +3 -3
  159. package/dist/esm/form-control-checkbox.entry.js +3 -3
  160. package/dist/esm/form-control-date.entry.js +2 -2
  161. package/dist/esm/{form-control-error-text-tGFxd6kW.js → form-control-error-text-lGsxANkt.js} +1 -1
  162. package/dist/esm/form-control-file-v2_2.entry.js +2 -2
  163. package/dist/esm/{form-control-help-text-2DawN8-N.js → form-control-help-text-DjU4NWmt.js} +1 -1
  164. package/dist/esm/form-control-help-text.entry.js +1 -1
  165. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  166. package/dist/esm/form-control-monetary.entry.js +4 -4
  167. package/dist/esm/form-control-number-masked_2.entry.js +2 -2
  168. package/dist/esm/form-control-number.entry.js +3 -3
  169. package/dist/esm/form-control-radio.entry.js +1 -1
  170. package/dist/esm/{get-business-CIKToQur.js → get-business-GEPTefIj.js} +1 -1
  171. package/dist/esm/{get-payment-details-D-prcfRc.js → get-payment-details-ChRlNtIz.js} +7 -7
  172. package/dist/esm/{get-subaccounts-B0uEyOp_.js → get-subaccounts-DiROU10G.js} +8 -8
  173. package/dist/esm/gross-payment-chart-core.entry.js +4 -4
  174. package/dist/esm/{header-1-D2gZb3iT.js → header-1-Xbhp2rfA.js} +1 -1
  175. package/dist/esm/{header-3-DAg8Vh4B.js → header-3-DwjHOg3C.js} +1 -1
  176. package/dist/esm/{iframe-input-styles-state-ibYqbF--.js → iframe-input-styles-state-BEips-at.js} +1 -1
  177. package/dist/esm/iframe-input.entry.js +5 -5
  178. package/dist/esm/{index-Cc3u0uDC.js → index-Dc7aGxx-.js} +1 -1
  179. package/dist/esm/{index-D6FDxSyt.js → index-DeiW2BDb.js} +1 -1
  180. package/dist/esm/{insurance-state-CsZbKSgm.js → insurance-state-CiK3s-Fy.js} +2 -2
  181. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +50 -23
  182. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +14 -14
  183. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  184. package/dist/esm/justifi-business-details.entry.js +22 -17
  185. package/dist/esm/justifi-business-form.entry.js +21 -21
  186. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  187. package/dist/esm/justifi-checkout-core.entry.js +9 -9
  188. package/dist/esm/justifi-checkout.entry.js +13 -13
  189. package/dist/esm/justifi-checkouts-list-filters.entry.js +11 -11
  190. package/dist/esm/justifi-checkouts-list.entry.js +17 -17
  191. package/dist/esm/justifi-config-provider.entry.js +3 -3
  192. package/dist/esm/justifi-details.entry.js +3 -3
  193. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  194. package/dist/esm/justifi-dispute-management.entry.js +13 -13
  195. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
  196. package/dist/esm/justifi-gross-payment-chart.entry.js +13 -13
  197. package/dist/esm/justifi-order-terminals.entry.js +17 -17
  198. package/dist/esm/justifi-owner-form_3.entry.js +15 -15
  199. package/dist/esm/justifi-payment-details.entry.js +15 -15
  200. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  201. package/dist/esm/justifi-payment-provisioning.entry.js +13 -13
  202. package/dist/esm/justifi-payment-transactions-list.entry.js +16 -16
  203. package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
  204. package/dist/esm/justifi-payments-list.entry.js +17 -17
  205. package/dist/esm/justifi-payout-details.entry.js +14 -14
  206. package/dist/esm/justifi-payout-transactions-list.entry.js +16 -16
  207. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  208. package/dist/esm/justifi-payouts-list.entry.js +18 -18
  209. package/dist/esm/justifi-refund-payment.entry.js +17 -17
  210. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
  211. package/dist/esm/justifi-season-interruption-insurance.entry.js +12 -12
  212. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -11
  213. package/dist/esm/justifi-terminal-orders-list.entry.js +15 -15
  214. package/dist/esm/justifi-terminals-list-filters.entry.js +11 -11
  215. package/dist/esm/justifi-terminals-list.entry.js +17 -17
  216. package/dist/esm/justifi-tokenize-payment-method.entry.js +16 -17
  217. package/dist/esm/loader.js +3 -3
  218. package/dist/esm/{package-DPiTQ9dr.js → package-DCoo9Ds8.js} +1 -1
  219. package/dist/esm/pagination-menu.entry.js +1 -1
  220. package/dist/esm/payment-details-core.entry.js +7 -7
  221. package/dist/esm/{payment.service-CgwLo1_s.js → payment.service-BV8Gg3vY.js} +6 -6
  222. package/dist/esm/payments-list-core.entry.js +15 -15
  223. package/dist/esm/{payments-list-params-state-Bn7pL-8x.js → payments-list-params-state-BI3u1DYG.js} +1 -1
  224. package/dist/esm/{payments-status-CIUXcA0w.js → payments-status-DIH2IxWy.js} +2 -2
  225. package/dist/esm/{payments-table-BBf5fV74.js → payments-table-DiEtudGk.js} +3 -3
  226. package/dist/esm/payout-details-core.entry.js +8 -8
  227. package/dist/esm/{payout.service-DYFCNfLa.js → payout.service-DA9Y4buU.js} +6 -6
  228. package/dist/esm/payouts-list-core.entry.js +15 -15
  229. package/dist/esm/{payouts-list-params-state-Bn7pL-8x.js → payouts-list-params-state-BI3u1DYG.js} +1 -1
  230. package/dist/esm/{payouts-status-Clo03qUI.js → payouts-status-ZOiWvFE-.js} +2 -2
  231. package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-DbzIHwgZ.js} +3 -3
  232. package/dist/esm/{schema-validations-D9YNVLiI.js → schema-validations-DLWfpHyI.js} +7 -29
  233. package/dist/esm/{skeleton-Dlpibtr0.js → skeleton-B9rUHFom.js} +1 -1
  234. package/dist/esm/{spinner-onCBxbdo.js → spinner-CrzsUbgI.js} +1 -1
  235. package/dist/esm/{styled-host-C7vaWLiB.js → styled-host-_2J3PYDn.js} +1 -1
  236. package/dist/esm/{table-p4dOlFPi.js → table-CqDcXJpP.js} +2 -2
  237. package/dist/esm/table-filters-menu.entry.js +2 -2
  238. package/dist/esm/terminal-orders-list-core.entry.js +14 -14
  239. package/dist/esm/{terminal-orders-list-params-state-Bn7pL-8x.js → terminal-orders-list-params-state-BI3u1DYG.js} +1 -1
  240. package/dist/esm/{terminal-orders-table-BopP465z.js → terminal-orders-table-D7EOk3GS.js} +9 -9
  241. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  242. package/dist/esm/{terminal.service-f-whs_d4.js → terminal.service-VdIvwUEC.js} +6 -6
  243. package/dist/esm/terminals-list-core.entry.js +14 -14
  244. package/dist/esm/terminals-list-params-state-BI3u1DYG.js +16 -0
  245. package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-C-fA-3eP.js} +3 -3
  246. package/dist/esm/{utils-BpP_VJGf.js → utils-CcleFgVO.js} +1 -1
  247. package/dist/esm/{utils-BWcTxbSg.js → utils-DB5fh6Iv.js} +3 -0
  248. package/dist/esm/webcomponents.js +4 -4
  249. package/dist/module/Business.js +3 -1
  250. package/dist/module/Refund.js +55 -1
  251. package/dist/module/additional-questions-details2.js +3 -4
  252. package/dist/module/bank-account-document-inputs.js +1 -2
  253. package/dist/module/billing-form.js +4 -3
  254. package/dist/module/business-bank-account-form-step-core.js +37 -11
  255. package/dist/module/business-bank-account-form-step.js +0 -1
  256. package/dist/module/business-details-core2.js +11 -7
  257. package/dist/module/business-terms-conditions-form-step.js +3 -4
  258. package/dist/module/business.service.js +0 -1
  259. package/dist/module/check-pkg-version.js +0 -1
  260. package/dist/module/checkout.service.js +0 -1
  261. package/dist/module/checkouts-list-core2.js +0 -1
  262. package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
  263. package/dist/module/core-info-details.js +6 -0
  264. package/dist/module/core-info-details2.js +34 -0
  265. package/dist/module/details.js +2 -2
  266. package/dist/module/dispute-response-actions.js +0 -1
  267. package/dist/module/form.js +1 -1
  268. package/dist/module/get-payment-details.js +0 -1
  269. package/dist/module/get-subaccounts.js +0 -1
  270. package/dist/module/justifi-business-details.js +20 -9
  271. package/dist/module/justifi-business-form.js +0 -1
  272. package/dist/module/justifi-checkouts-list-filters.js +0 -1
  273. package/dist/module/justifi-checkouts-list.js +0 -1
  274. package/dist/module/justifi-gross-payment-chart.js +0 -1
  275. package/dist/module/justifi-order-terminals.js +1 -2
  276. package/dist/module/justifi-payment-provisioning.js +0 -1
  277. package/dist/module/justifi-payment-transactions-list.js +1 -2
  278. package/dist/module/justifi-payments-list.js +0 -1
  279. package/dist/module/justifi-payout-details.js +0 -1
  280. package/dist/module/justifi-payout-transactions-list.js +1 -2
  281. package/dist/module/justifi-payouts-list.js +0 -1
  282. package/dist/module/justifi-refund-payment.js +1 -2
  283. package/dist/module/justifi-season-interruption-insurance.js +0 -1
  284. package/dist/module/justifi-terminal-orders-list-filters.js +0 -1
  285. package/dist/module/justifi-terminal-orders-list.js +1 -2
  286. package/dist/module/justifi-terminals-list-filters.js +0 -1
  287. package/dist/module/justifi-terminals-list.js +1 -2
  288. package/dist/module/justifi-tokenize-payment-method.js +2 -4
  289. package/dist/module/legal-address-details2.js +3 -3
  290. package/dist/module/new-payment-method.js +15 -4
  291. package/dist/module/package.js +1 -1
  292. package/dist/module/payment-method-options.js +2 -3
  293. package/dist/module/payment.service.js +0 -1
  294. package/dist/module/payments-list-core2.js +0 -1
  295. package/dist/module/payout.service.js +0 -1
  296. package/dist/module/payouts-list-core2.js +0 -1
  297. package/dist/module/representative-details2.js +3 -3
  298. package/dist/module/schema-validations.js +6 -28
  299. package/dist/module/terminal-orders-list-core2.js +0 -1
  300. package/dist/module/terminal.service.js +0 -1
  301. package/dist/module/terminals-list-core2.js +0 -1
  302. package/dist/module/utils2.js +3 -0
  303. package/dist/types/components/business-details/business-details.d.ts +1 -0
  304. package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
  305. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
  306. package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
  307. package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
  308. package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
  309. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  310. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
  311. package/dist/types/components.d.ts +285 -21
  312. package/dist/types/utils/utils.d.ts +1 -1
  313. package/dist/webcomponents/p--B09FkmB.js +1 -0
  314. package/dist/webcomponents/p-070a74b0.entry.js +1 -0
  315. package/dist/webcomponents/{p-4194214c.entry.js → p-0bab65ad.entry.js} +1 -1
  316. package/dist/webcomponents/{p-5e467788.entry.js → p-0e3122fd.entry.js} +1 -1
  317. package/dist/webcomponents/{p-ceefc483.entry.js → p-0f4572d3.entry.js} +1 -1
  318. package/dist/webcomponents/{p-3abc8eab.entry.js → p-19f24867.entry.js} +1 -1
  319. package/dist/webcomponents/{p-799000c1.entry.js → p-214d8301.entry.js} +1 -1
  320. package/dist/webcomponents/{p-40541e0c.entry.js → p-217c0657.entry.js} +1 -1
  321. package/dist/webcomponents/{p-83154291.entry.js → p-2182e23d.entry.js} +1 -1
  322. package/dist/webcomponents/p-2648b61f.entry.js +1 -0
  323. package/dist/webcomponents/{p-3a979295.entry.js → p-29402bea.entry.js} +1 -1
  324. package/dist/webcomponents/p-30e036bd.entry.js +1 -0
  325. package/dist/webcomponents/p-342016ec.entry.js +1 -0
  326. package/dist/webcomponents/{p-916ea4fc.entry.js → p-35299b25.entry.js} +1 -1
  327. package/dist/webcomponents/{p-2b8ac00a.entry.js → p-388e3afc.entry.js} +1 -1
  328. package/dist/webcomponents/{p-19b9c96a.entry.js → p-3ef0b42b.entry.js} +1 -1
  329. package/dist/webcomponents/{p-b40108c0.entry.js → p-410b3f65.entry.js} +1 -1
  330. package/dist/webcomponents/p-4d4aed9d.entry.js +1 -0
  331. package/dist/webcomponents/p-5023d221.entry.js +1 -0
  332. package/dist/webcomponents/{p-d1331dbb.entry.js → p-57ec45d9.entry.js} +1 -1
  333. package/dist/webcomponents/{p-54281359.entry.js → p-5886b41e.entry.js} +1 -1
  334. package/dist/webcomponents/{p-6429afb4.entry.js → p-61daf152.entry.js} +1 -1
  335. package/dist/webcomponents/{p-bf3e8295.entry.js → p-6a89c4c8.entry.js} +1 -1
  336. package/dist/webcomponents/{p-cab175e9.entry.js → p-70b87e0c.entry.js} +1 -1
  337. package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
  338. package/dist/webcomponents/{p-25ea4450.entry.js → p-7ba945a9.entry.js} +1 -1
  339. package/dist/webcomponents/{p-n2YROtpe.js → p-8qo1QTjv.js} +1 -1
  340. package/dist/webcomponents/{p-d9c70010.entry.js → p-9154c9ae.entry.js} +1 -1
  341. package/dist/webcomponents/p-95d4c1ec.entry.js +1 -0
  342. package/dist/webcomponents/{p-3e94cf62.entry.js → p-9633ee66.entry.js} +1 -1
  343. package/dist/webcomponents/{p-b2192f8b.entry.js → p-9814a858.entry.js} +1 -1
  344. package/dist/webcomponents/p-9c7574a3.entry.js +1 -0
  345. package/dist/webcomponents/{p-7733b67b.entry.js → p-9c9bef60.entry.js} +1 -1
  346. package/dist/webcomponents/p-B0b_XePt.js +1 -0
  347. package/dist/webcomponents/p-B50n1fKP.js +1 -0
  348. package/dist/webcomponents/p-B9zTkzgI.js +1 -0
  349. package/dist/webcomponents/{p-C0UUR9CN.js → p-BC1dBUlF.js} +1 -1
  350. package/dist/webcomponents/p-BNqn5ta3.js +1 -0
  351. package/dist/webcomponents/p-BUJ--tSs.js +1 -0
  352. package/dist/webcomponents/p-BdTK0wi9.js +1 -0
  353. package/dist/webcomponents/{p-DDEz7_ad.js → p-BeW-xdck.js} +1 -1
  354. package/dist/webcomponents/{p-D5XSsLKb.js → p-Bjf1_zhy.js} +1 -1
  355. package/dist/webcomponents/p-Bkffx_rQ.js +1 -0
  356. package/dist/webcomponents/{p-DuYlA4lj.js → p-Bl3ch-Ez.js} +1 -1
  357. package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
  358. package/dist/webcomponents/{p-CpTwq2jw.js → p-BnE7qgLh.js} +1 -1
  359. package/dist/webcomponents/p-BpDYt_Ep.js +1 -0
  360. package/dist/webcomponents/{p-CgxzrbM_.js → p-C1uPQOvi.js} +1 -1
  361. package/dist/webcomponents/p-C2HQYreI.js +1 -0
  362. package/dist/webcomponents/p-CJ5VkiBV.js +1 -0
  363. package/dist/webcomponents/{p-ByRPlUBS.js → p-CKAgqwwJ.js} +1 -1
  364. package/dist/webcomponents/{p-cNABKY0P.js → p-CaGTuT2-.js} +1 -1
  365. package/dist/webcomponents/{p-CQdeVKF8.js → p-CeSHqD1r.js} +1 -1
  366. package/dist/webcomponents/{p-Cd06j2SL.js → p-CgSqi8wc.js} +1 -1
  367. package/dist/webcomponents/{p-OSmuQKbK.js → p-ChL8tkhB.js} +1 -1
  368. package/dist/webcomponents/p-ClM8H2uM.js +1 -0
  369. package/dist/webcomponents/p-CoZ_5FVT.js +1 -0
  370. package/dist/webcomponents/p-CopnqpXU.js +1 -0
  371. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  372. package/dist/webcomponents/p-D9siq_gL.js +1 -0
  373. package/dist/webcomponents/p-DCoo9Ds8.js +1 -0
  374. package/dist/webcomponents/{p-BiPRf6d2.js → p-DGg9nHVL.js} +1 -1
  375. package/dist/webcomponents/{p-ZE1NEnP3.js → p-DMNpawhg.js} +1 -1
  376. package/dist/webcomponents/p-DQCcSXwL.js +1 -0
  377. package/dist/webcomponents/{p-DvHZ2jYI.js → p-DXhY2Usd.js} +1 -1
  378. package/dist/webcomponents/p-Ddc5F_89.js +1 -0
  379. package/dist/webcomponents/{p-l3o3Ndc0.js → p-DyCvl10I.js} +1 -1
  380. package/dist/webcomponents/{p-BjB_yKBJ.js → p-DzFysjCc.js} +1 -1
  381. package/dist/webcomponents/{p-C0WFYqwq.js → p-EbNktJEa.js} +1 -1
  382. package/dist/webcomponents/p-HiTlvG5T.js +1 -0
  383. package/dist/webcomponents/p-JOSiCHl7.js +1 -0
  384. package/dist/webcomponents/{p-82kiZkHt.js → p-SoKRLnnI.js} +1 -1
  385. package/dist/webcomponents/{p-d-_oUZor.js → p-XBoMjcoi.js} +1 -1
  386. package/dist/webcomponents/p-_5PRoEe6.js +1 -0
  387. package/dist/webcomponents/p-a32ae525.entry.js +1 -0
  388. package/dist/webcomponents/p-a60abc68.entry.js +1 -0
  389. package/dist/webcomponents/{p-24792e8e.entry.js → p-aa539239.entry.js} +1 -1
  390. package/dist/webcomponents/{p-22a0b397.entry.js → p-aa949920.entry.js} +1 -1
  391. package/dist/webcomponents/{p-d2dc6f22.entry.js → p-ab1353b0.entry.js} +3 -3
  392. package/dist/webcomponents/p-ac5f5d89.entry.js +1 -0
  393. package/dist/webcomponents/{p-bb50155f.entry.js → p-b0d1afd7.entry.js} +1 -1
  394. package/dist/webcomponents/p-b17ed568.entry.js +1 -0
  395. package/dist/webcomponents/p-b59fc73d.entry.js +1 -0
  396. package/dist/webcomponents/{p-3babed12.entry.js → p-b5c7c78d.entry.js} +1 -1
  397. package/dist/webcomponents/p-b72eca25.entry.js +1 -0
  398. package/dist/webcomponents/{p-3368d3d5.entry.js → p-b9283a1b.entry.js} +1 -1
  399. package/dist/webcomponents/{p-0deb6a38.entry.js → p-b95a7dc5.entry.js} +1 -1
  400. package/dist/webcomponents/p-bO_FomzV.js +1 -0
  401. package/dist/webcomponents/p-bd1df685.entry.js +1 -0
  402. package/dist/webcomponents/p-bfb2bad3.entry.js +1 -0
  403. package/dist/webcomponents/{p-935bbc62.entry.js → p-c13538df.entry.js} +1 -1
  404. package/dist/webcomponents/{p-9105f700.entry.js → p-c535a165.entry.js} +1 -1
  405. package/dist/webcomponents/{p-639baa7d.entry.js → p-c7a1439a.entry.js} +1 -1
  406. package/dist/webcomponents/{p-4ee0cd96.entry.js → p-c80d077b.entry.js} +1 -1
  407. package/dist/webcomponents/{p-a4dd3835.entry.js → p-ccd256f5.entry.js} +1 -1
  408. package/dist/webcomponents/{p-947239a6.entry.js → p-cfb4491e.entry.js} +1 -1
  409. package/dist/webcomponents/p-d049acb4.entry.js +1 -0
  410. package/dist/webcomponents/p-d0b3a10e.entry.js +1 -0
  411. package/dist/webcomponents/p-d3f5c51e.entry.js +1 -0
  412. package/dist/webcomponents/{p-90c24cda.entry.js → p-d3ff71df.entry.js} +1 -1
  413. package/dist/webcomponents/p-d6a66b58.entry.js +1 -0
  414. package/dist/webcomponents/{p-CCGhF18e.js → p-d6tXI5Iw.js} +1 -1
  415. package/dist/webcomponents/p-d8f92442.entry.js +1 -0
  416. package/dist/webcomponents/{p-59abf1de.entry.js → p-da6c0277.entry.js} +1 -1
  417. package/dist/webcomponents/{p-f389c2aa.entry.js → p-e0e3a939.entry.js} +1 -1
  418. package/dist/webcomponents/p-e3a07cb8.entry.js +1 -0
  419. package/dist/webcomponents/{p-1a85f26f.entry.js → p-f03acabd.entry.js} +1 -1
  420. package/dist/webcomponents/{p-ad85bd0d.entry.js → p-f1e54daa.entry.js} +1 -1
  421. package/dist/webcomponents/{p-99b080d9.entry.js → p-f3d3070a.entry.js} +1 -1
  422. package/dist/webcomponents/p-hG0Fy7E9.js +1 -0
  423. package/dist/webcomponents/p-vTsHmSQQ.js +1 -0
  424. package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
  425. package/dist/webcomponents/webcomponents.esm.js +1 -1
  426. package/package.json +1 -1
  427. package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +0 -22
  428. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
  429. package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +0 -16
  430. package/dist/module/Document.js +0 -55
  431. package/dist/module/generic-info-details.js +0 -6
  432. package/dist/module/generic-info-details2.js +0 -34
  433. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
  434. package/dist/webcomponents/p-0ab2f675.entry.js +0 -1
  435. package/dist/webcomponents/p-0b57ecc3.entry.js +0 -1
  436. package/dist/webcomponents/p-16adfe77.entry.js +0 -1
  437. package/dist/webcomponents/p-1b22572d.entry.js +0 -1
  438. package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
  439. package/dist/webcomponents/p-2adda453.entry.js +0 -1
  440. package/dist/webcomponents/p-2dbc4b19.entry.js +0 -1
  441. package/dist/webcomponents/p-43d6bbed.entry.js +0 -1
  442. package/dist/webcomponents/p-44d8c2b1.entry.js +0 -1
  443. package/dist/webcomponents/p-4749e0d0.entry.js +0 -1
  444. package/dist/webcomponents/p-6n7viK-J.js +0 -1
  445. package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
  446. package/dist/webcomponents/p-82515f70.entry.js +0 -1
  447. package/dist/webcomponents/p-84d27581.entry.js +0 -1
  448. package/dist/webcomponents/p-935fa555.entry.js +0 -1
  449. package/dist/webcomponents/p-B0cQ2RjH.js +0 -1
  450. package/dist/webcomponents/p-B190pN0v.js +0 -1
  451. package/dist/webcomponents/p-BM5lviat.js +0 -1
  452. package/dist/webcomponents/p-BWJ7zamv.js +0 -1
  453. package/dist/webcomponents/p-BmWpHZ-Z.js +0 -1
  454. package/dist/webcomponents/p-BzPi8Ea_.js +0 -1
  455. package/dist/webcomponents/p-C0IqfGFc.js +0 -1
  456. package/dist/webcomponents/p-CffckWWF.js +0 -1
  457. package/dist/webcomponents/p-D0ptm6-3.js +0 -1
  458. package/dist/webcomponents/p-D4Mv5jCp.js +0 -1
  459. package/dist/webcomponents/p-D5Sh88BE.js +0 -1
  460. package/dist/webcomponents/p-DJzjeg3x.js +0 -1
  461. package/dist/webcomponents/p-DNt_pMGt.js +0 -1
  462. package/dist/webcomponents/p-DPiTQ9dr.js +0 -1
  463. package/dist/webcomponents/p-DZfxGQ1I.js +0 -1
  464. package/dist/webcomponents/p-DgfzEZny.js +0 -1
  465. package/dist/webcomponents/p-DjGTAHJM.js +0 -1
  466. package/dist/webcomponents/p-DuBhW0xA.js +0 -1
  467. package/dist/webcomponents/p-M61ygz6l.js +0 -1
  468. package/dist/webcomponents/p-U30-0DaA.js +0 -1
  469. package/dist/webcomponents/p-a46730eb.entry.js +0 -1
  470. package/dist/webcomponents/p-af2c38f7.entry.js +0 -1
  471. package/dist/webcomponents/p-afa54e39.entry.js +0 -1
  472. package/dist/webcomponents/p-dd05cce1.entry.js +0 -1
  473. package/dist/webcomponents/p-e00aeb33.entry.js +0 -1
  474. package/dist/webcomponents/p-e1c5ee0a.entry.js +0 -1
  475. package/dist/webcomponents/p-ea8dd3e7.entry.js +0 -1
  476. package/dist/webcomponents/p-f8b205f7.entry.js +0 -1
  477. package/dist/webcomponents/p-o_73WSki.js +0 -1
  478. package/dist/webcomponents/p-um3YdOwW.js +0 -1
  479. package/dist/webcomponents/p-vb3fTJEZ.js +0 -1
  480. package/dist/webcomponents/p-wqUvt1PB.js +0 -1
  481. /package/dist/webcomponents/{p-D6FDxSyt.js → p-DeiW2BDb.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { w as waitForConfig, c as configState } from './config-state-CkKrqnpZ.js';
2
- import { g as generateId } from './utils-BWcTxbSg.js';
1
+ import { w as waitForConfig, c as configState } from './config-state-ecb1EsvM.js';
2
+ import { g as generateId } from './utils-DB5fh6Iv.js';
3
3
 
4
4
  const Api = () => {
5
5
  async function getAuthorizationHeader(authToken) {
@@ -177,7 +177,9 @@ class CoreBusinessInfo {
177
177
  }
178
178
  class Business {
179
179
  constructor(business) {
180
- this.additional_questions = new AdditionalQuestions(business.additional_questions || {});
180
+ this.additional_questions = business.additional_questions
181
+ ? new AdditionalQuestions(business.additional_questions)
182
+ : null;
181
183
  this.associated_accounts = business.associated_accounts;
182
184
  this.classification = business.classification;
183
185
  this.bank_accounts = business.bank_accounts;
@@ -1,4 +1,4 @@
1
- import { f as formatCurrency } from './utils-BWcTxbSg.js';
1
+ import { f as formatCurrency } from './utils-DB5fh6Iv.js';
2
2
 
3
3
  class Completion {
4
4
  constructor(data) {
@@ -54,4 +54,4 @@ class DisputeResponse {
54
54
  }
55
55
  }
56
56
 
57
- export { Dispute as D, DisputeStatus as a };
57
+ export { DisputeStatus as D, Dispute as a };
@@ -1,5 +1,5 @@
1
- import { f as formatCurrency } from './utils-BWcTxbSg.js';
2
- import { a as DisputeStatus } from './Dispute-BH0Xfn-F.js';
1
+ import { f as formatCurrency } from './utils-DB5fh6Iv.js';
2
+ import { D as DisputeStatus } from './Dispute-7MWRbTXI.js';
3
3
 
4
4
  var CaptureStrategy;
5
5
  (function (CaptureStrategy) {
@@ -146,58 +146,4 @@ class Payment {
146
146
  }
147
147
  }
148
148
 
149
- var EntityDocumentType;
150
- (function (EntityDocumentType) {
151
- EntityDocumentType["voidedCheck"] = "voided_check";
152
- EntityDocumentType["balanceSheet"] = "balance_sheet";
153
- EntityDocumentType["bankStatement"] = "bank_statement";
154
- EntityDocumentType["governmentId"] = "government_id";
155
- EntityDocumentType["profitAndLossStatement"] = "profit_and_loss_statement";
156
- EntityDocumentType["taxReturn"] = "tax_return";
157
- EntityDocumentType["other"] = "other";
158
- })(EntityDocumentType || (EntityDocumentType = {}));
159
- var EntityDocumentStatus;
160
- (function (EntityDocumentStatus) {
161
- EntityDocumentStatus["pending"] = "pending";
162
- EntityDocumentStatus["uploaded"] = "uploaded";
163
- EntityDocumentStatus["canceled"] = "canceled";
164
- EntityDocumentStatus["needed"] = "needed";
165
- })(EntityDocumentStatus || (EntityDocumentStatus = {}));
166
- class EntityDocumentStorage {
167
- constructor() {
168
- this.voided_check = [];
169
- this.balance_sheet = [];
170
- this.bank_statement = [];
171
- this.government_id = [];
172
- this.profit_and_loss_statement = [];
173
- this.tax_return = [];
174
- this.other = [];
175
- }
176
- }
177
- class EntityDocument {
178
- constructor(fileData, business_id) {
179
- this.file = fileData.file;
180
- this.fileString = this.getFileString();
181
- this.document_type = fileData.document_type;
182
- this.presigned_url = null;
183
- this.record_data = {
184
- business_id: business_id,
185
- document_type: this.document_type,
186
- file_name: this.file.name,
187
- file_type: this.file.type,
188
- };
189
- }
190
- getFileString() {
191
- let reader = new FileReader();
192
- reader.onload = (e) => {
193
- this.fileString = e.target.result;
194
- };
195
- reader.readAsDataURL(this.file);
196
- return this.fileString;
197
- }
198
- setPresignedUrl(url) {
199
- this.presigned_url = url;
200
- }
201
- }
202
-
203
- export { EntityDocumentType as E, Payment as P, EntityDocumentStorage as a, EntityDocument as b, PaymentMethodTypes as c };
149
+ export { Payment as P, PaymentMethodTypes as a };
@@ -1,4 +1,4 @@
1
- import { f as formatCurrency } from './utils-BWcTxbSg.js';
1
+ import { f as formatCurrency } from './utils-DB5fh6Iv.js';
2
2
 
3
3
  var PaymentBalanceTxnType;
4
4
  (function (PaymentBalanceTxnType) {
@@ -256,6 +256,60 @@ class SubAccount {
256
256
  }
257
257
  }
258
258
 
259
+ var EntityDocumentType;
260
+ (function (EntityDocumentType) {
261
+ EntityDocumentType["voidedCheck"] = "voided_check";
262
+ EntityDocumentType["balanceSheet"] = "balance_sheet";
263
+ EntityDocumentType["bankStatement"] = "bank_statement";
264
+ EntityDocumentType["governmentId"] = "government_id";
265
+ EntityDocumentType["profitAndLossStatement"] = "profit_and_loss_statement";
266
+ EntityDocumentType["taxReturn"] = "tax_return";
267
+ EntityDocumentType["other"] = "other";
268
+ })(EntityDocumentType || (EntityDocumentType = {}));
269
+ var EntityDocumentStatus;
270
+ (function (EntityDocumentStatus) {
271
+ EntityDocumentStatus["pending"] = "pending";
272
+ EntityDocumentStatus["uploaded"] = "uploaded";
273
+ EntityDocumentStatus["canceled"] = "canceled";
274
+ EntityDocumentStatus["needed"] = "needed";
275
+ })(EntityDocumentStatus || (EntityDocumentStatus = {}));
276
+ class EntityDocumentStorage {
277
+ constructor() {
278
+ this.voided_check = [];
279
+ this.balance_sheet = [];
280
+ this.bank_statement = [];
281
+ this.government_id = [];
282
+ this.profit_and_loss_statement = [];
283
+ this.tax_return = [];
284
+ this.other = [];
285
+ }
286
+ }
287
+ class EntityDocument {
288
+ constructor(fileData, business_id) {
289
+ this.file = fileData.file;
290
+ this.fileString = this.getFileString();
291
+ this.document_type = fileData.document_type;
292
+ this.presigned_url = null;
293
+ this.record_data = {
294
+ business_id: business_id,
295
+ document_type: this.document_type,
296
+ file_name: this.file.name,
297
+ file_type: this.file.type,
298
+ };
299
+ }
300
+ getFileString() {
301
+ let reader = new FileReader();
302
+ reader.onload = (e) => {
303
+ this.fileString = e.target.result;
304
+ };
305
+ reader.readAsDataURL(this.file);
306
+ return this.fileString;
307
+ }
308
+ setPresignedUrl(url) {
309
+ this.presigned_url = url;
310
+ }
311
+ }
312
+
259
313
  var RefundStatuses;
260
314
  (function (RefundStatuses) {
261
315
  RefundStatuses["succeeded"] = "succeeded";
@@ -276,4 +330,4 @@ class RefundPayload {
276
330
  }
277
331
  }
278
332
 
279
- export { ITerminalStatus as I, Payout as P, RefundReasons as R, SubAccount as S, TerminalOrderStatus as T, TerminalOrderType as a, Terminal as b, PaymentBalanceTransaction as c, PayoutBalanceTransaction as d, TerminalOrder as e, TerminalModel as f, RefundPayload as g };
333
+ export { EntityDocumentType as E, ITerminalStatus as I, Payout as P, RefundReasons as R, SubAccount as S, TerminalOrderStatus as T, TerminalOrderType as a, Terminal as b, PaymentBalanceTransaction as c, PayoutBalanceTransaction as d, TerminalOrder as e, TerminalModel as f, RefundPayload as g, EntityDocumentStorage as h, EntityDocument as i };
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host } from './index-D6FDxSyt.js';
2
- import { c as DetailItem, D as DetailSectionTitle } from './utils-BpP_VJGf.js';
3
- import { l as isEmptyObject, s as snakeCaseToHumanReadable, m as formatMediumDate } from './utils-BWcTxbSg.js';
1
+ import { r as registerInstance, h, H as Host } from './index-DeiW2BDb.js';
2
+ import { c as DetailItem, D as DetailSectionTitle } from './utils-CcleFgVO.js';
3
+ import { l as isEmptyObject, s as snakeCaseToHumanReadable, m as formatMediumDate } from './utils-DB5fh6Iv.js';
4
4
  import './parts-BrLVc_85.js';
5
5
  import './_commonjsHelpers-BFTU3MAI.js';
6
6
 
@@ -9,22 +9,21 @@ const AdditionalQuestionsDetails = class {
9
9
  registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- var _a, _b;
13
- if (isEmptyObject(this.additionalQuestions))
12
+ if (!this.additionalQuestions || isEmptyObject(this.additionalQuestions))
14
13
  return null;
15
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() }))))));
14
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: this.additionalQuestions.business_revenue }), h(DetailItem, { title: "Business Payment Volume", value: this.additionalQuestions.business_payment_volume }))))));
16
15
  }
17
16
  };
18
17
 
19
- const GenericInfoDetails = class {
18
+ const CoreInfoDetails = class {
20
19
  constructor(hostRef) {
21
20
  registerInstance(this, hostRef);
22
21
  }
23
22
  render() {
24
- var _a, _b, _c, _d, _e, _f, _g, _h;
25
- if (!this.business)
23
+ if (!this.business) {
26
24
  return null;
27
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.classification) }), h(DetailItem, { title: "Industry", value: (_d = this.business) === null || _d === void 0 ? void 0 : _d.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.tax_id }), h(DetailItem, { title: "Website URL", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.website_url }), h(DetailItem, { title: "Email Address", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.email }), h(DetailItem, { title: "Phone Number", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.phone }))))));
25
+ }
26
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Core Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: this.business.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: this.business.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable(this.business.classification) }), h(DetailItem, { title: "Industry", value: this.business.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: this.business.tax_id }), h(DetailItem, { title: "Website URL", value: this.business.website_url }), h(DetailItem, { title: "Email Address", value: this.business.email }), h(DetailItem, { title: "Phone Number", value: this.business.phone }))))));
28
27
  }
29
28
  };
30
29
 
@@ -34,9 +33,9 @@ const LegalAddressDetails = class {
34
33
  }
35
34
  render() {
36
35
  var _a, _b, _c, _d, _e, _f, _g;
37
- if (isEmptyObject(this.legalAddress))
36
+ if (!this.legalAddress || isEmptyObject(this.legalAddress))
38
37
  return null;
39
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
38
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
40
39
  }
41
40
  };
42
41
 
@@ -64,10 +63,10 @@ const JustifiRepresentativeDetails = class {
64
63
  }
65
64
  render() {
66
65
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
67
- if (isEmptyObject(this.representative))
66
+ if (!this.representative || isEmptyObject(this.representative))
68
67
  return null;
69
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
68
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
70
69
  }
71
70
  };
72
71
 
73
- export { AdditionalQuestionsDetails as additional_questions_details, GenericInfoDetails as generic_info_details, LegalAddressDetails as legal_address_details, OwnerDetails as owner_details, JustifiRepresentativeDetails as representative_details };
72
+ export { AdditionalQuestionsDetails as additional_questions_details, CoreInfoDetails as core_info_details, LegalAddressDetails as legal_address_details, OwnerDetails as owner_details, JustifiRepresentativeDetails as representative_details };
@@ -1,4 +1,4 @@
1
- import { h } from './index-D6FDxSyt.js';
1
+ import { h } from './index-DeiW2BDb.js';
2
2
  import { F as badgeDark, G as badgeLight, H as badgeInfo, I as badgeWarning, J as badgeDanger, K as badgeSuccess, L as badgeSecondary, M as badgePrimary, N as badge } from './parts-BrLVc_85.js';
3
3
 
4
4
  var BadgeVariant;
@@ -1,21 +1,21 @@
1
- import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-D6FDxSyt.js';
2
- import './config-state-CkKrqnpZ.js';
3
- import { s as snakeCaseToHumanReadable, d as formatDate, i as formatTimeSeconds } from './utils-BWcTxbSg.js';
1
+ import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-DeiW2BDb.js';
2
+ import './config-state-ecb1EsvM.js';
3
+ import { s as snakeCaseToHumanReadable, d as formatDate, i as formatTimeSeconds } from './utils-DB5fh6Iv.js';
4
4
  import './ComponentError-SdntD1xf.js';
5
- import './Checkout-Dfpql997.js';
5
+ import './Checkout-B9LrTq63.js';
6
6
  import './Pagination-CLHwhyvu.js';
7
- import { E as EntityDocumentType } from './Document-cNXrKmGy.js';
8
- import './Refund-2YJqP9qX.js';
9
- import './Business-D6XNzizo.js';
10
- import './Dispute-BH0Xfn-F.js';
11
- import { c as bankAccountTypeOptions } from './business-form-options-Bn05PRR4.js';
7
+ import './Payment-BGiKmQYR.js';
8
+ import { E as EntityDocumentType } from './Refund-DDIEc_gu.js';
9
+ import './Business-BCoP0TAV.js';
10
+ import './Dispute-7MWRbTXI.js';
11
+ import { c as bankAccountTypeOptions } from './business-form-options-CgssATyg.js';
12
12
  import './event-types-XYgDHrVL.js';
13
13
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
14
14
  import { X as card, D as heading2, ai as table, P as tableHeadCell, aj as tableCell, c as input, l as label, b as inputInvalid, R as inputDisabled, a as inputFocused } from './parts-BrLVc_85.js';
15
- import { S as Skeleton } from './skeleton-Dlpibtr0.js';
15
+ import { S as Skeleton } from './skeleton-B9rUHFom.js';
16
16
  import './event-types-CZfYo5-1.js';
17
- import { F as FormControlErrorText } from './form-control-error-text-tGFxd6kW.js';
18
- import './index-Cc3u0uDC.js';
17
+ import { F as FormControlErrorText } from './form-control-error-text-lGsxANkt.js';
18
+ import './index-Dc7aGxx-.js';
19
19
  import './_commonjsHelpers-BFTU3MAI.js';
20
20
  import './helpers-Mu7LQT-w.js';
21
21
  import './state-options-BX8GieXu.js';
@@ -1,22 +1,22 @@
1
- import { h, r as registerInstance, H as Host, c as createEvent } from './index-D6FDxSyt.js';
2
- import { S as Skeleton } from './skeleton-Dlpibtr0.js';
3
- import { w as waitForConfig, c as configState } from './config-state-CkKrqnpZ.js';
4
- import { a as iframeInputStylesSet } from './iframe-input-styles-state-ibYqbF--.js';
1
+ import { h, r as registerInstance, H as Host, c as createEvent } from './index-DeiW2BDb.js';
2
+ import { S as Skeleton } from './skeleton-B9rUHFom.js';
3
+ import { w as waitForConfig, c as configState } from './config-state-ecb1EsvM.js';
4
+ import { a as iframeInputStylesSet } from './iframe-input-styles-state-BEips-at.js';
5
5
  import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, au as billingForm, av as radioListItem } from './parts-BrLVc_85.js';
6
6
  import { c as create$3, F as FormController } from './index.esm-BCNUj0Dx.js';
7
- import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, y as identityNameValidation } from './schema-validations-D9YNVLiI.js';
8
- import { H as Header3 } from './header-3-DAg8Vh4B.js';
7
+ import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, y as identityNameValidation } from './schema-validations-DLWfpHyI.js';
8
+ import { H as Header3 } from './header-3-DwjHOg3C.js';
9
9
  import './event-types-CZfYo5-1.js';
10
10
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
11
11
  import { S as StateOptions } from './state-options-BX8GieXu.js';
12
- import { c as PaymentMethodTypes } from './Document-cNXrKmGy.js';
13
- import { n as snakeToCamel, f as formatCurrency } from './utils-BWcTxbSg.js';
14
- import './index-Cc3u0uDC.js';
12
+ import { a as PaymentMethodTypes } from './Payment-BGiKmQYR.js';
13
+ import { n as snakeToCamel, f as formatCurrency } from './utils-DB5fh6Iv.js';
14
+ import './index-Dc7aGxx-.js';
15
15
  import './_commonjsHelpers-BFTU3MAI.js';
16
- import './business-form-options-Bn05PRR4.js';
17
- import './Business-D6XNzizo.js';
16
+ import './business-form-options-CgssATyg.js';
17
+ import './Business-BCoP0TAV.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
- import './Dispute-BH0Xfn-F.js';
19
+ import './Dispute-7MWRbTXI.js';
20
20
 
21
21
  const BankAccountFormSkeleton = (props) => {
22
22
  const { isReady } = props;
@@ -262,13 +262,14 @@ const BillingForm = class {
262
262
  this.formController.setInitialValues(fields);
263
263
  }
264
264
  async validate() {
265
- let isValid = await this.formController.validate();
266
- return { isValid: isValid };
265
+ const isValid = await this.formController.validate();
266
+ const errors = this.formController.errors.getValue();
267
+ return { isValid, errors };
267
268
  }
268
269
  render() {
269
270
  const billingFormDefaultValue = this.formController.getInitialValues();
270
271
  const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
271
- return (h(Host, { key: '0df4ecdee8c32874325b83dd79586c7449ce6d93' }, h("div", { key: '6d5b45f278a7c69a76fe0895036ab37b810d0262', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: 'bc8f57f42134859e28dd523500ef874101198076', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '908b8265b028caaa01314bc56bdbfe550b632b94' }, h("fieldset", { key: 'af3e34fca100b0e0c3f13ef3af3a88009859e277' }, this.legend && h("legend", { key: '15cfcc98681d4386afad33d68910f7732e88b9a9' }, this.legend), h("div", { key: 'de372fbe06a6da1f512170a6f79f27c96499d790', class: "row gy-3" }, h("div", { key: 'bb4aab9d17a7bed7cb09e4306158f5e0ff248b8f', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'f8e086504b6f3fac0e4bd2a0c0dee5e2f2c3328a', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9a5105e1183a61c55639c8153a65169fb65998c5', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '4802e1462b0b1f433c77f817b733611332b18711', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '3edf7b2390c2fa7d0cadd75f9102a63f88a3685b', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'bec348d7030fa44e5a627ebc3f67ed9689a4a5b9', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '066d141b9529aae210fc2585bd2fd386e5b82120', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '602587fcca0666d7070e5cd0316ed1c541953337', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '125aeec26f292763abefe1c3a1a3070a2a8b4c7c', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'fb8d46d217d452809ee199ef8640e93714a91e85', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: 'b622a69cb724ed15d2fe0fb2a9039635bc96a12e', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: 'a094770db85d5a65524909b5c4ec532fca167a95', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
272
+ return (h(Host, { key: 'df86239c476aadde3af18742bbf643d61825c051' }, h("div", { key: '186f3ef6c2295223da888b7645a0af7aa8df4535', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '72284e3fcea18cbdfe879989fb7f1b007e2a37df', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '9479d696a0486e63edfad4bd0dbe374a21cb7b8c' }, h("fieldset", { key: 'b780abf09a714f2e9588670ad149c3ca999cbc87' }, this.legend && h("legend", { key: 'f102dc51722fe2f050c951e7b56117c9577f3b83' }, this.legend), h("div", { key: '00d6c7e35d768f3357cc17836c916e2bf24e3a7e', class: "row gy-3" }, h("div", { key: 'cb2b29aa769c97ccab246dc74e463d389497edbd', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '3cb8ca5e3ecd0817f8e16aafbb5d3ca5ee7824ed', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '781338b1c79fd815d2ab2dbc15e7b56b534a2278', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '682a37c6b417fbc0edf76b89122b5bf618603360', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '50d657891e492c8568bf179d752b9aadf10f2387', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'ce1f04bfc3307af7a025390bcbcce6a6b3da6fab', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: 'ddb45c1cbdc6aa5d27c6a0c4b6f29366ed0e8eba', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '410efdbcd5381bdf61d9c752f292f794d8e12670', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: 'a65811acc25443a07cdb1401231ce1e703096fd4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'bed28d564c9e5a2ebfc10b6ab47e43e2b17bd6e6', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '8aca307d318e87b17e09122fa91e817c0a59c8d5', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: '4dd06dc9ae01fc2953780e52f9e9c918a38a7bbd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
272
273
  }
273
274
  };
274
275
 
@@ -297,9 +298,18 @@ const NewPaymentMethod = class {
297
298
  if (!this.paymentMethodFormRef || !this.billingFormRef)
298
299
  return;
299
300
  try {
300
- const isValid = await this.validate();
301
+ const { isValid, errors } = await this.validate();
301
302
  if (!isValid || !insuranceValidation.isValid) {
302
- return { validationError: true };
303
+ // get propety value from first property in errors object
304
+ const message = `${Object.values(errors)[0] || 'Validation error'}`;
305
+ return {
306
+ validationError: true,
307
+ error: {
308
+ code: 'validation_error',
309
+ message,
310
+ decline_code: undefined
311
+ }
312
+ };
303
313
  }
304
314
  const tokenizeResponse = await this.tokenize();
305
315
  if (tokenizeResponse.error) {
@@ -320,7 +330,9 @@ const NewPaymentMethod = class {
320
330
  async validate() {
321
331
  const billingFormValidation = await this.billingFormRef.validate();
322
332
  const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
323
- return billingFormValidation.isValid && paymentMethodFormValidation.isValid;
333
+ const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
334
+ const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
335
+ return { isValid, errors };
324
336
  }
325
337
  async tokenize() {
326
338
  try {
@@ -350,7 +362,7 @@ const NewPaymentMethod = class {
350
362
  }
351
363
  render() {
352
364
  var _a, _b;
353
- return (h(Host, { key: 'b80791923e2276322ebe0ce3b25b2073beac188d', class: "payment-method" }, h("div", { key: '47dc555bc135d4562958cf371ca3c8b80ee7236d', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'e485347f39fa4b7d46d64e231931d6bdf541687c', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
365
+ return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
354
366
  }
355
367
  };
356
368
 
@@ -420,12 +432,11 @@ const PaymentMethodOptions = class {
420
432
  }
421
433
  async validate() {
422
434
  const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
423
- const isValid = await newPaymentMethodElement.validate();
424
- return { isValid: isValid };
435
+ return newPaymentMethodElement.validate();
425
436
  }
426
437
  render() {
427
438
  var _a;
428
- return (h(Host, { key: '506450161ed363330132c2bfa99a6a7729e94778' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
439
+ return (h(Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
429
440
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
430
441
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
431
442
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
@@ -1,5 +1,5 @@
1
1
  import { c as create$3 } from './index.esm-BCNUj0Dx.js';
2
- import { d as dateOfIncorporationValidation, t as taxIdValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, o as otherPaymentDetailsValidation, s as seasonalBusinessValidation, r as recurringPaymentsPercentageValidation, f as recurringPaymentsValidation, g as whenServiceReceivedValidation, h as paymentVolumeValidation, j as revenueValidation } from './schema-validations-D9YNVLiI.js';
2
+ import { d as dateOfIncorporationValidation, t as taxIdValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, o as otherPaymentDetailsValidation, s as seasonalBusinessValidation, r as recurringPaymentsPercentageValidation, f as recurringPaymentsValidation, g as whenServiceReceivedValidation, h as paymentVolumeValidation, j as revenueValidation } from './schema-validations-DLWfpHyI.js';
3
3
 
4
4
  const businessCoreInfoSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -1,8 +1,8 @@
1
- import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-D6FDxSyt.js';
2
- import { E as ErrorState } from './utils-BpP_VJGf.js';
3
- import { S as StyledHost } from './styled-host-C7vaWLiB.js';
1
+ import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-DeiW2BDb.js';
2
+ import { E as ErrorState } from './utils-CcleFgVO.js';
3
+ import { S as StyledHost } from './styled-host-_2J3PYDn.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { S as Skeleton } from './skeleton-Dlpibtr0.js';
5
+ import { S as Skeleton } from './skeleton-B9rUHFom.js';
6
6
  import './parts-BrLVc_85.js';
7
7
 
8
8
  const BusinessDetailsLoading = () => {
@@ -36,7 +36,6 @@ const BusinessDetailsCore = class {
36
36
  registerInstance(this, hostRef);
37
37
  this.errorEvent = createEvent(this, "error-event");
38
38
  this.renderState = RENDER_STATES.LOADING;
39
- this.errorMessage = 'An error ocurred.';
40
39
  }
41
40
  async componentWillLoad() {
42
41
  if (this.getBusiness) {
@@ -68,7 +67,7 @@ const BusinessDetailsCore = class {
68
67
  if (this.renderState === RENDER_STATES.ERROR) {
69
68
  return h(StyledHost, null, ErrorState(this.errorMessage));
70
69
  }
71
- return (h(StyledHost, null, h("generic-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })));
70
+ return (h(StyledHost, null, h("justifi-details", { "error-message": this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
72
71
  }
73
72
  };
74
73
 
@@ -1,4 +1,4 @@
1
- import { a as BusinessClassification } from './Business-D6XNzizo.js';
1
+ import { a as BusinessClassification } from './Business-BCoP0TAV.js';
2
2
 
3
3
  const businessClassificationOptions = [
4
4
  {
@@ -1,5 +1,5 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm-BCNUj0Dx.js';
2
- import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, u as ssnValidation, v as dobValidation, p as phoneValidation, e as emailValidation, x as identityTitleValidation, y as identityNameValidation } from './schema-validations-D9YNVLiI.js';
2
+ import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, u as ssnValidation, v as dobValidation, p as phoneValidation, e as emailValidation, x as identityTitleValidation, y as identityNameValidation } from './schema-validations-DLWfpHyI.js';
3
3
 
4
4
  const addressSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -1,11 +1,11 @@
1
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { A as Api } from './Api-CZhQlPMs.js';
2
2
  import './ComponentError-SdntD1xf.js';
3
- import './Checkout-Dfpql997.js';
3
+ import './Checkout-B9LrTq63.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Document-cNXrKmGy.js';
6
- import './Refund-2YJqP9qX.js';
7
- import './Business-D6XNzizo.js';
8
- import './Dispute-BH0Xfn-F.js';
5
+ import './Payment-BGiKmQYR.js';
6
+ import './Refund-DDIEc_gu.js';
7
+ import './Business-BCoP0TAV.js';
8
+ import './Dispute-7MWRbTXI.js';
9
9
 
10
10
  const api = Api();
11
11
  class BusinessService {
@@ -1,4 +1,4 @@
1
- import { h } from './index-D6FDxSyt.js';
1
+ import { h } from './index-DeiW2BDb.js';
2
2
  import { ac as buttonSecondary, ad as buttonPrimary, ae as buttonLoading } from './parts-BrLVc_85.js';
3
3
 
4
4
  const ButtonSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status", part: "button-spinner" },
@@ -1,12 +1,12 @@
1
- import { p as packageJson } from './package-DPiTQ9dr.js';
2
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { p as packageJson } from './package-DCoo9Ds8.js';
2
+ import { A as Api } from './Api-CZhQlPMs.js';
3
3
  import './ComponentError-SdntD1xf.js';
4
- import './Checkout-Dfpql997.js';
4
+ import './Checkout-B9LrTq63.js';
5
5
  import './Pagination-CLHwhyvu.js';
6
- import './Document-cNXrKmGy.js';
7
- import './Refund-2YJqP9qX.js';
8
- import './Business-D6XNzizo.js';
9
- import './Dispute-BH0Xfn-F.js';
6
+ import './Payment-BGiKmQYR.js';
7
+ import './Refund-DDIEc_gu.js';
8
+ import './Business-BCoP0TAV.js';
9
+ import './Dispute-7MWRbTXI.js';
10
10
 
11
11
  const api = Api();
12
12
  class AnalyticsService {
@@ -1,11 +1,11 @@
1
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { A as Api } from './Api-CZhQlPMs.js';
2
2
  import './ComponentError-SdntD1xf.js';
3
- import './Checkout-Dfpql997.js';
3
+ import './Checkout-B9LrTq63.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Document-cNXrKmGy.js';
6
- import './Refund-2YJqP9qX.js';
7
- import './Business-D6XNzizo.js';
8
- import './Dispute-BH0Xfn-F.js';
5
+ import './Payment-BGiKmQYR.js';
6
+ import './Refund-DDIEc_gu.js';
7
+ import './Business-BCoP0TAV.js';
8
+ import './Dispute-7MWRbTXI.js';
9
9
 
10
10
  const api = Api();
11
11
  class CheckoutService {
@@ -1,24 +1,24 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-D6FDxSyt.js';
2
- import './config-state-CkKrqnpZ.js';
3
- import './utils-BWcTxbSg.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-DeiW2BDb.js';
2
+ import './config-state-ecb1EsvM.js';
3
+ import './utils-DB5fh6Iv.js';
4
4
  import './ComponentError-SdntD1xf.js';
5
- import './Checkout-Dfpql997.js';
5
+ import './Checkout-B9LrTq63.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
- import './Document-cNXrKmGy.js';
8
- import './Refund-2YJqP9qX.js';
9
- import './Business-D6XNzizo.js';
10
- import './Dispute-BH0Xfn-F.js';
11
- import { T as Table, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell, l as TableWrapper } from './table-p4dOlFPi.js';
7
+ import './Payment-BGiKmQYR.js';
8
+ import './Refund-DDIEc_gu.js';
9
+ import './Business-BCoP0TAV.js';
10
+ import './Dispute-7MWRbTXI.js';
11
+ import { T as Table, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell, l as TableWrapper } from './table-CqDcXJpP.js';
12
12
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
13
- import { c as checkoutTableColumns, a as checkoutTableCells } from './checkouts-table-DKd0QLys.js';
14
- import { o as onQueryParamsChange, g as getRequestParams } from './checkouts-list-params-state-Bn7pL-8x.js';
15
- import './index-Cc3u0uDC.js';
13
+ import { c as checkoutTableColumns, a as checkoutTableCells } from './checkouts-table-p7UZFB5v.js';
14
+ import { o as onQueryParamsChange, g as getRequestParams } from './checkouts-list-params-state-BI3u1DYG.js';
15
+ import './index-Dc7aGxx-.js';
16
16
  import './_commonjsHelpers-BFTU3MAI.js';
17
17
  import './helpers-Mu7LQT-w.js';
18
18
  import './state-options-BX8GieXu.js';
19
19
  import './parts-BrLVc_85.js';
20
- import './spinner-onCBxbdo.js';
21
- import './badge-Du9GTXoB.js';
20
+ import './spinner-CrzsUbgI.js';
21
+ import './badge-Bbh4S1LJ.js';
22
22
 
23
23
  const CheckoutsListCore = class {
24
24
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { c as createStore } from './index-Cc3u0uDC.js';
1
+ import { c as createStore } from './index-Dc7aGxx-.js';
2
2
 
3
3
  const filterParamsInitialState = {};
4
4
  const propsParamsInitialState = {};
@@ -1,6 +1,6 @@
1
- import { h } from './index-D6FDxSyt.js';
2
- import { b as formatTime, d as formatDate } from './utils-BWcTxbSg.js';
3
- import { B as BadgeVariant, a as Badge } from './badge-Du9GTXoB.js';
1
+ import { h } from './index-DeiW2BDb.js';
2
+ import { b as formatTime, d as formatDate } from './utils-DB5fh6Iv.js';
3
+ import { B as BadgeVariant, a as Badge } from './badge-Bbh4S1LJ.js';
4
4
  import { P as tableHeadCell, Q as getAlternateTableCellPart } from './parts-BrLVc_85.js';
5
5
 
6
6
  const MapCheckoutStatusToBadge = (status) => {
@@ -1,4 +1,4 @@
1
- import { c as createStore } from './index-Cc3u0uDC.js';
1
+ import { c as createStore } from './index-Dc7aGxx-.js';
2
2
 
3
3
  const initialState = {
4
4
  apiOrigin: "https://wc-proxy.justifi.ai",
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-D6FDxSyt.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-DeiW2BDb.js';
2
2
  import { c as input, l as label, b as inputInvalid, R as inputDisabled, a as inputFocused, aw as tooltip, ax as tooltipInner, ay as tooltipIcon } from './parts-BrLVc_85.js';
3
- import { F as FormControlErrorText } from './form-control-error-text-tGFxd6kW.js';
3
+ import { F as FormControlErrorText } from './form-control-error-text-lGsxANkt.js';
4
4
  import './event-types-CZfYo5-1.js';
5
5
 
6
6
  var top = 'top';