@justifi/webcomponents 5.1.0 → 5.3.0

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 (576) hide show
  1. package/dist/cjs/{Checkout-2ff4f9c8.js → Checkout-0f1c8abe.js} +1 -1
  2. package/dist/cjs/Document-0b828345.js +58 -0
  3. package/dist/cjs/{Payment-84817e2d.js → Payment-c47ed1e1.js} +1 -1
  4. package/dist/cjs/{SubAccount-f236913b.js → SubAccount-509ebf93.js} +1 -1
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  6. package/dist/cjs/{badge-fbf58cb9.js → badge-ccfe03bf.js} +1 -1
  7. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +130 -0
  8. package/dist/cjs/bank-account-form_9.cjs.entry.js +16 -13
  9. package/dist/cjs/billing-form_3.cjs.entry.js +8 -7
  10. package/dist/cjs/{business-additional-questions-schema-caa23e95.js → business-additional-questions-schema-2f66f025.js} +1 -1
  11. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  12. package/dist/cjs/{business-identity-schema-0c537067.js → business-identity-schema-be495474.js} +1 -1
  13. package/dist/cjs/{business.service-ffb6f478.js → business.service-d575b515.js} +7 -0
  14. package/dist/cjs/{button-e7796b07.js → button-8b634147.js} +1 -1
  15. package/dist/cjs/{check-pkg-version-931df996.js → check-pkg-version-1658df6f.js} +1 -1
  16. package/dist/cjs/{checkout.service-e9c05c15.js → checkout.service-057b5a7a.js} +5 -3
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -10
  18. package/dist/cjs/{checkouts-table-0f19c1e6.js → checkouts-table-efa1cbab.js} +3 -3
  19. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_4.cjs.entry.js} +141 -2
  20. package/dist/cjs/{dispute.service-9272a2a6.js → dispute.service-df9e1830.js} +5 -3
  21. package/dist/cjs/{event-types-aa1a9be1.js → event-types-34b103b4.js} +2 -2
  22. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  23. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  24. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  25. package/dist/cjs/{form-control-error-text-c1f49f35.js → form-control-error-text-46a7f2dd.js} +1 -1
  26. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
  27. package/dist/cjs/{form-control-help-text-e6cc71a7.js → form-control-help-text-98c882e3.js} +1 -1
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  30. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/{get-payout-csv-778db023.js → get-payout-csv-527a238c.js} +5 -4
  33. package/dist/cjs/{get-subaccounts-b087fa39.js → get-subaccounts-6068c1aa.js} +5 -4
  34. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  35. package/dist/cjs/{header-1-96b97cab.js → header-1-4c21f7ca.js} +1 -1
  36. package/dist/cjs/{header-3-ce77b96b.js → header-3-130206cc.js} +1 -1
  37. package/dist/cjs/{insurance-state-8959c7c7.js → insurance-state-21fde44f.js} +1 -1
  38. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +833 -0
  39. package/dist/cjs/{justifi-additional-questions-form-step_10.cjs.entry.js → justifi-additional-questions-form-step_9.cjs.entry.js} +29 -226
  40. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  41. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
  42. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -13
  43. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  44. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
  45. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -9
  46. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  47. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -13
  48. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  50. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -8
  51. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -13
  52. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  53. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -6
  54. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -10
  55. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -4
  57. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +25 -4
  58. package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -14
  59. package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -10
  60. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  61. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -13
  62. package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -5
  63. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  64. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -8
  65. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  66. package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -11
  67. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +5 -5
  68. package/dist/cjs/loader.cjs.js +1 -1
  69. package/dist/cjs/{package-52ac8376.js → package-06419e54.js} +1 -1
  70. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  71. package/dist/cjs/{parts-addf2176.js → parts-b2ff8b68.js} +14 -0
  72. package/dist/cjs/payment-details-core.cjs.entry.js +13 -13
  73. package/dist/cjs/{payment-provisioning-actions-fbd30d1b.js → payment-provisioning-actions-382ab48c.js} +33 -2
  74. package/dist/cjs/{payment.service-042c7c99.js → payment.service-3eebfe3e.js} +5 -3
  75. package/dist/cjs/payments-list-core.cjs.entry.js +22 -19
  76. package/dist/cjs/payments-list-params-state-442d9944.js +22 -0
  77. package/dist/cjs/{payments-status-411c325c.js → payments-status-ec12ee6a.js} +1 -1
  78. package/dist/cjs/{payments-table-16f3f95e.js → payments-table-f3aa174d.js} +3 -3
  79. package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
  80. package/dist/cjs/payouts-list-core.cjs.entry.js +13 -12
  81. package/dist/cjs/{payouts-status-0951e39d.js → payouts-status-9f2e9a3a.js} +1 -1
  82. package/dist/cjs/{payouts-table-bc15179c.js → payouts-table-4efa53fa.js} +3 -3
  83. package/dist/cjs/{schema-validations-0be8068a.js → schema-validations-cc4e6071.js} +5 -92
  84. package/dist/cjs/{skeleton-c4903a53.js → skeleton-0353466d.js} +1 -1
  85. package/dist/cjs/{spinner-aac395e3.js → spinner-4fc60a51.js} +1 -1
  86. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  87. package/dist/cjs/terminals-list-core.cjs.entry.js +12 -10
  88. package/dist/cjs/{terminals-table-3c19847b.js → terminals-table-5e4bce93.js} +2 -2
  89. package/dist/cjs/{utils-a05a8bf6.js → utils-134dda01.js} +1 -1
  90. package/dist/cjs/{utils-5fb95d31.js → utils-337befa9.js} +0 -4
  91. package/dist/cjs/webcomponents.cjs.js +1 -1
  92. package/dist/collection/api/index.js +5 -0
  93. package/dist/collection/api/services/business.service.js +6 -0
  94. package/dist/collection/collection-manifest.json +3 -4
  95. package/dist/collection/components/business-forms/payment-provisioning/{document-uploads/business-document-upload-input-group.js → bank-account/bank-account-document-inputs.js} +19 -58
  96. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +85 -0
  97. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +207 -47
  98. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +15 -7
  99. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +63 -0
  100. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  101. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  103. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  104. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  105. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +32 -2
  106. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -3
  107. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -1
  108. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +8 -4
  109. package/dist/collection/components/business-forms/schemas/schema-validations.js +2 -4
  110. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +1 -1
  111. package/dist/collection/components/checkout/card-form/card-form.js +1 -1
  112. package/dist/collection/components/checkout/checkout-core.js +1 -1
  113. package/dist/collection/components/checkout/checkout.js +2 -2
  114. package/dist/collection/components/checkout/new-payment-method.js +5 -2
  115. package/dist/collection/components/checkout/payment-method-options.js +1 -1
  116. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  117. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  118. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  119. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  120. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  121. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  122. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  135. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  136. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  137. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  138. package/dist/collection/components/payments-list/get-payments.js +4 -1
  139. package/dist/collection/components/payments-list/payments-list-core.js +10 -11
  140. package/dist/collection/components/payments-list/payments-list-filters.js +113 -3
  141. package/dist/collection/components/payments-list/payments-list-params-state.js +11 -5
  142. package/dist/collection/components/payments-list/payments-list.js +1 -1
  143. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  144. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  145. package/dist/collection/components/payouts-list/payouts-list-filters.js +1 -1
  146. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  147. package/dist/collection/components/refund-form/refund-form.js +1 -1
  148. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  149. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  150. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  151. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  152. package/dist/collection/styles/parts.js +9 -0
  153. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  154. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  155. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  156. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  158. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  160. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  163. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  164. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  165. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  166. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  167. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  168. package/dist/docs.json +580 -520
  169. package/dist/esm/{Checkout-d476bb83.js → Checkout-8325c97a.js} +1 -1
  170. package/dist/esm/Document-1907c0d4.js +55 -0
  171. package/dist/esm/{Payment-47630113.js → Payment-82d2f453.js} +1 -1
  172. package/dist/esm/{SubAccount-f31349a9.js → SubAccount-a73bf971.js} +1 -1
  173. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  174. package/dist/esm/{badge-b034e71b.js → badge-938ba4b1.js} +1 -1
  175. package/dist/esm/bank-account-document-form-inputs_4.entry.js +123 -0
  176. package/dist/esm/bank-account-form_9.entry.js +16 -13
  177. package/dist/esm/billing-form_3.entry.js +8 -7
  178. package/dist/esm/{business-additional-questions-schema-aba9747e.js → business-additional-questions-schema-212a96ed.js} +1 -1
  179. package/dist/esm/business-details-core.entry.js +3 -3
  180. package/dist/esm/{business-identity-schema-8b0f1619.js → business-identity-schema-05bd2a5f.js} +1 -1
  181. package/dist/esm/{business.service-ab2663a3.js → business.service-6a208f8f.js} +7 -1
  182. package/dist/esm/{button-8a02823c.js → button-4b3f3934.js} +1 -1
  183. package/dist/esm/{check-pkg-version-f613bceb.js → check-pkg-version-bac7eb5e.js} +1 -1
  184. package/dist/esm/{checkout.service-c275270e.js → checkout.service-ac067baa.js} +5 -3
  185. package/dist/esm/checkouts-list-core.entry.js +12 -10
  186. package/dist/esm/{checkouts-table-115bacc4.js → checkouts-table-1634366d.js} +3 -3
  187. package/dist/esm/{custom-popper.entry.js → custom-popper_4.entry.js} +140 -4
  188. package/dist/esm/{dispute.service-882e35ed.js → dispute.service-26a788a8.js} +5 -3
  189. package/dist/esm/{event-types-948c3b14.js → event-types-fd7a05d9.js} +2 -2
  190. package/dist/esm/form-alert_5.entry.js +1 -1
  191. package/dist/esm/form-control-checkbox.entry.js +5 -5
  192. package/dist/esm/form-control-date.entry.js +4 -4
  193. package/dist/esm/{form-control-error-text-066cdad4.js → form-control-error-text-b3d14e92.js} +1 -1
  194. package/dist/esm/form-control-file-v2_2.entry.js +4 -4
  195. package/dist/esm/{form-control-help-text-3b6f5980.js → form-control-help-text-7b07fc37.js} +1 -1
  196. package/dist/esm/form-control-monetary.entry.js +5 -5
  197. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  198. package/dist/esm/form-control-number.entry.js +5 -5
  199. package/dist/esm/form-control-radio.entry.js +3 -3
  200. package/dist/esm/{get-payout-csv-50aea928.js → get-payout-csv-684fece6.js} +5 -4
  201. package/dist/esm/{get-subaccounts-ab3dd32c.js → get-subaccounts-b1bed757.js} +5 -4
  202. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  203. package/dist/esm/{header-1-75c284dd.js → header-1-4db0c986.js} +1 -1
  204. package/dist/esm/{header-3-4a327395.js → header-3-fd150ccf.js} +1 -1
  205. package/dist/esm/{insurance-state-b495be64.js → insurance-state-529e2d0d.js} +1 -1
  206. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +824 -0
  207. package/dist/esm/{justifi-additional-questions-form-step_10.entry.js → justifi-additional-questions-form-step_9.entry.js} +31 -227
  208. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  209. package/dist/esm/justifi-business-details.entry.js +5 -5
  210. package/dist/esm/justifi-business-form.entry.js +15 -13
  211. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  212. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  213. package/dist/esm/justifi-checkout.entry.js +10 -9
  214. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  215. package/dist/esm/justifi-checkouts-list.entry.js +14 -13
  216. package/dist/esm/justifi-details.entry.js +2 -2
  217. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  218. package/dist/esm/justifi-dispute-management.entry.js +9 -8
  219. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -13
  220. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  221. package/dist/esm/justifi-owner-form_3.entry.js +7 -6
  222. package/dist/esm/justifi-payment-details.entry.js +11 -10
  223. package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
  224. package/dist/esm/justifi-payment-provisioning.entry.js +4 -4
  225. package/dist/esm/justifi-payments-list-filters.entry.js +25 -4
  226. package/dist/esm/justifi-payments-list.entry.js +18 -14
  227. package/dist/esm/justifi-payout-details.entry.js +11 -10
  228. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  229. package/dist/esm/justifi-payouts-list.entry.js +14 -13
  230. package/dist/esm/justifi-refund-form.entry.js +7 -5
  231. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  232. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -8
  233. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  234. package/dist/esm/justifi-terminals-list.entry.js +12 -11
  235. package/dist/esm/justifi-tokenize-payment-method.entry.js +5 -5
  236. package/dist/esm/loader.js +1 -1
  237. package/dist/esm/{package-9b94eb81.js → package-90ebd343.js} +1 -1
  238. package/dist/esm/pagination-menu.entry.js +1 -1
  239. package/dist/esm/{parts-93f379ab.js → parts-ab2bb4b5.js} +9 -1
  240. package/dist/esm/payment-details-core.entry.js +13 -13
  241. package/dist/esm/{payment-provisioning-actions-a262ee82.js → payment-provisioning-actions-726795a0.js} +33 -3
  242. package/dist/esm/{payment.service-92b90855.js → payment.service-2e418da1.js} +5 -3
  243. package/dist/esm/payments-list-core.entry.js +22 -19
  244. package/dist/esm/payments-list-params-state-d05b24aa.js +16 -0
  245. package/dist/esm/{payments-status-82466054.js → payments-status-abf1724b.js} +1 -1
  246. package/dist/esm/{payments-table-c0bb25b6.js → payments-table-88fbab49.js} +3 -3
  247. package/dist/esm/payout-details-core.entry.js +8 -8
  248. package/dist/esm/payouts-list-core.entry.js +13 -12
  249. package/dist/esm/{payouts-status-b98c8297.js → payouts-status-d9987a8a.js} +1 -1
  250. package/dist/esm/{payouts-table-4382a264.js → payouts-table-055d3633.js} +3 -3
  251. package/dist/esm/{schema-validations-5b0ac96b.js → schema-validations-ccea6a06.js} +4 -84
  252. package/dist/esm/{skeleton-3bcb2b5d.js → skeleton-ee7c3b32.js} +1 -1
  253. package/dist/esm/{spinner-b83f3a87.js → spinner-8ec6669a.js} +1 -1
  254. package/dist/esm/table-filters-menu.entry.js +3 -3
  255. package/dist/esm/terminals-list-core.entry.js +12 -10
  256. package/dist/esm/{terminals-table-8f1c2146.js → terminals-table-2963e65b.js} +2 -2
  257. package/dist/esm/{utils-7fb6331d.js → utils-c2dc83b2.js} +1 -1
  258. package/dist/esm/{utils-b76d791e.js → utils-c37124fc.js} +1 -4
  259. package/dist/esm/webcomponents.js +1 -1
  260. package/dist/module/Checkout.js +1 -1
  261. package/dist/module/Payment.js +1 -1
  262. package/dist/module/SubAccount.js +1 -1
  263. package/dist/module/additional-questions.js +1 -1
  264. package/dist/module/additional-statement.js +2 -2
  265. package/dist/module/badge.js +1 -1
  266. package/dist/module/bank-account-document-form-inputs.d.ts +11 -0
  267. package/dist/module/bank-account-document-form-inputs.js +6 -0
  268. package/dist/module/bank-account-document-inputs.js +58 -0
  269. package/dist/module/bank-account-form-inputs.d.ts +11 -0
  270. package/dist/module/bank-account-form-inputs.js +6 -0
  271. package/dist/module/bank-account-form-inputs2.js +63 -0
  272. package/dist/module/bank-account-form2.js +1 -1
  273. package/dist/module/billing-form-wrapper.js +1 -1
  274. package/dist/module/business-additional-questions-form-step-core.js +2 -2
  275. package/dist/module/business-bank-account-form-step-core.js +239 -64
  276. package/dist/module/business-bank-account-form-step.js +42 -5
  277. package/dist/module/business-core-info-form-step-core.js +2 -2
  278. package/dist/module/business-core-info-form-step.js +1 -1
  279. package/dist/module/business-core-info-schema.js +1 -1
  280. package/dist/module/business-core-info.js +1 -1
  281. package/dist/module/business-documents-on-file.d.ts +11 -0
  282. package/dist/module/business-documents-on-file.js +4 -36
  283. package/dist/module/business-documents-on-file2.js +45 -0
  284. package/dist/module/business-form-options.js +1 -1
  285. package/dist/module/business-identity-schema.js +1 -1
  286. package/dist/module/business-owners-form-step-core.js +1 -1
  287. package/dist/module/business-owners-form-step.js +1 -1
  288. package/dist/module/business-representative-form-inputs.js +1 -1
  289. package/dist/module/business-representative-form-step-core.js +1 -1
  290. package/dist/module/business-representative-form-step.js +1 -1
  291. package/dist/module/business-terms-conditions-form-step.js +9 -11
  292. package/dist/module/business.service.js +7 -1
  293. package/dist/module/cancellation-policy.js +2 -2
  294. package/dist/module/card-form2.js +1 -1
  295. package/dist/module/checkout-core.js +2 -2
  296. package/dist/module/checkout.service.js +2 -0
  297. package/dist/module/checkouts-list-core2.js +6 -4
  298. package/dist/module/custom-popper2.js +2 -2
  299. package/dist/module/customer-details.js +2 -2
  300. package/dist/module/dispute-management-core.js +1 -1
  301. package/dist/module/dispute-notification.js +2 -2
  302. package/dist/module/dispute-response-actions.js +2 -1
  303. package/dist/module/dispute-response-core.js +1 -1
  304. package/dist/module/dispute-response.js +1 -1
  305. package/dist/module/duplicate-charge.js +2 -2
  306. package/dist/module/electronic-evidence.js +2 -2
  307. package/dist/module/event-types.js +22 -61
  308. package/dist/module/event-types2.js +61 -22
  309. package/dist/module/form-alert2.js +1 -1
  310. package/dist/module/form-control-checkbox2.js +3 -3
  311. package/dist/module/form-control-date2.js +3 -3
  312. package/dist/module/form-control-error-text.js +1 -1
  313. package/dist/module/form-control-file-v22.js +1 -1
  314. package/dist/module/form-control-file2.js +3 -3
  315. package/dist/module/form-control-monetary2.js +3 -3
  316. package/dist/module/form-control-number-masked2.js +3 -3
  317. package/dist/module/form-control-number.js +3 -3
  318. package/dist/module/form-control-radio2.js +3 -3
  319. package/dist/module/form-control-select2.js +3 -3
  320. package/dist/module/form-control-text2.js +3 -3
  321. package/dist/module/form-control-textarea2.js +3 -3
  322. package/dist/module/form-control-tooltip2.js +1 -1
  323. package/dist/module/get-payout-csv.js +2 -1
  324. package/dist/module/get-subaccounts.js +2 -1
  325. package/dist/module/gross-payment-chart-core2.js +2 -2
  326. package/dist/module/hidden-input2.js +2 -2
  327. package/dist/module/iframe-input2.js +4 -4
  328. package/dist/module/justifi-business-form.js +3 -1
  329. package/dist/module/justifi-checkout.js +2 -2
  330. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  331. package/dist/module/justifi-checkouts-list.js +3 -2
  332. package/dist/module/justifi-dispute-management.js +1 -1
  333. package/dist/module/justifi-payment-details.js +2 -1
  334. package/dist/module/justifi-payment-provisioning.js +50 -56
  335. package/dist/module/justifi-payments-list-filters.js +32 -5
  336. package/dist/module/justifi-payments-list.js +7 -3
  337. package/dist/module/justifi-payout-details.js +2 -1
  338. package/dist/module/justifi-payouts-list-filters.js +2 -2
  339. package/dist/module/justifi-payouts-list.js +2 -1
  340. package/dist/module/justifi-refund-form.js +3 -1
  341. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  342. package/dist/module/justifi-terminals-list-filters.js +1 -1
  343. package/dist/module/justifi-terminals-list.js +2 -1
  344. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  345. package/dist/module/legal-address-form-step-core.js +1 -1
  346. package/dist/module/legal-address-form-step.js +1 -1
  347. package/dist/module/new-payment-method.js +5 -2
  348. package/dist/module/owner-details2.js +1 -1
  349. package/dist/module/owner-form-core2.js +2 -2
  350. package/dist/module/owner-form.js +1 -1
  351. package/dist/module/package.js +1 -1
  352. package/dist/module/pagination-menu2.js +1 -1
  353. package/dist/module/parts.js +9 -1
  354. package/dist/module/payment-details-core2.js +8 -8
  355. package/dist/module/payment-method-options.js +1 -1
  356. package/dist/module/payment-provisioning-actions.js +33 -3
  357. package/dist/module/payment-provisioning-core.js +50 -56
  358. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  359. package/dist/module/payment-provisioning-form-steps.js +51 -58
  360. package/dist/module/payment.service.js +2 -0
  361. package/dist/module/payments-list-core2.js +15 -13
  362. package/dist/module/payments-list-params-state.js +11 -5
  363. package/dist/module/payout-details-core2.js +2 -2
  364. package/dist/module/payouts-list-core2.js +6 -5
  365. package/dist/module/product-or-service.js +2 -2
  366. package/dist/module/refund-policy.js +2 -2
  367. package/dist/module/representative-details2.js +1 -1
  368. package/dist/module/save-new-payment-method.js +1 -1
  369. package/dist/module/saved-payment-method.js +2 -2
  370. package/dist/module/schema-validations.js +4 -31
  371. package/dist/module/season-interruption-insurance-core.js +2 -2
  372. package/dist/module/sezzle-payment-method.js +2 -2
  373. package/dist/module/shipping-details.js +2 -2
  374. package/dist/module/spinner.js +1 -1
  375. package/dist/module/table-filters-menu2.js +1 -1
  376. package/dist/module/terminals-list-core2.js +5 -3
  377. package/dist/module/utils2.js +1 -4
  378. package/dist/types/api/index.d.ts +4 -0
  379. package/dist/types/api/services/business.service.d.ts +7 -0
  380. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.d.ts +7 -0
  381. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.d.ts +7 -0
  382. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +18 -6
  383. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -1
  384. package/dist/types/components/business-forms/payment-provisioning/{document-uploads → bank-account}/business-documents-on-file.d.ts +1 -0
  385. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +9 -0
  386. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -1
  387. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +1 -0
  388. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +5 -1
  389. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
  390. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -1
  391. package/dist/types/components/checkout/payment-method-payload.d.ts +2 -0
  392. package/dist/types/components/payments-list/get-payments.d.ts +2 -1
  393. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
  394. package/dist/types/components/payments-list/payments-list-filters.d.ts +5 -0
  395. package/dist/types/components/payments-list/payments-list-params-state.d.ts +4 -3
  396. package/dist/types/components.d.ts +81 -101
  397. package/dist/types/styles/parts.d.ts +8 -0
  398. package/dist/webcomponents/{p-2ce40098.js → p-01d4e35a.js} +1 -1
  399. package/dist/webcomponents/{p-d1f78cb5.js → p-0277c1b2.js} +1 -1
  400. package/dist/webcomponents/p-045d4ebf.entry.js +1 -0
  401. package/dist/webcomponents/p-08d87a52.entry.js +1 -0
  402. package/dist/webcomponents/p-0e68b7d6.entry.js +1 -0
  403. package/dist/webcomponents/p-0ef9eae6.entry.js +1 -0
  404. package/dist/webcomponents/{p-7b1fcab5.entry.js → p-0f6ae5ea.entry.js} +1 -1
  405. package/dist/webcomponents/p-131db5d1.entry.js +1 -0
  406. package/dist/webcomponents/p-1603fe4d.js +1 -0
  407. package/dist/webcomponents/p-18a7a9e6.entry.js +1 -0
  408. package/dist/webcomponents/p-1e8a1e01.entry.js +1 -0
  409. package/dist/webcomponents/{p-4c4f9e3b.js → p-21431a04.js} +1 -1
  410. package/dist/webcomponents/p-21cf557e.entry.js +1 -0
  411. package/dist/webcomponents/{p-09fd4ee2.entry.js → p-2916bb62.entry.js} +1 -1
  412. package/dist/webcomponents/p-298e290e.js +1 -0
  413. package/dist/webcomponents/{p-16a9e343.js → p-2a136295.js} +1 -1
  414. package/dist/webcomponents/{p-74736657.js → p-2ca5b5e4.js} +1 -1
  415. package/dist/webcomponents/p-2f94d478.entry.js +1 -0
  416. package/dist/webcomponents/p-31e2d12c.entry.js +1 -0
  417. package/dist/webcomponents/p-3c0b56cd.entry.js +1 -0
  418. package/dist/webcomponents/p-3d5c8a98.entry.js +1 -0
  419. package/dist/webcomponents/p-3e0f3d87.entry.js +1 -0
  420. package/dist/webcomponents/{p-f65abd18.js → p-3e716e03.js} +1 -1
  421. package/dist/webcomponents/p-40e23b13.js +1 -0
  422. package/dist/webcomponents/p-42047b14.entry.js +1 -0
  423. package/dist/webcomponents/p-44d2c762.entry.js +1 -0
  424. package/dist/webcomponents/{p-b04da0de.entry.js → p-56addd0a.entry.js} +1 -1
  425. package/dist/webcomponents/p-58f5e37b.entry.js +1 -0
  426. package/dist/webcomponents/{p-d86c1f11.entry.js → p-5afefc50.entry.js} +2 -2
  427. package/dist/webcomponents/{p-92d78790.js → p-5b72bab7.js} +1 -1
  428. package/dist/webcomponents/{p-7db2a4d5.entry.js → p-5baec916.entry.js} +1 -1
  429. package/dist/webcomponents/{p-f76a7f9c.entry.js → p-5bf4535a.entry.js} +1 -1
  430. package/dist/webcomponents/p-61f0a2ce.js +1 -0
  431. package/dist/webcomponents/{p-e0f21a47.entry.js → p-62696f63.entry.js} +1 -1
  432. package/dist/webcomponents/p-631d54a2.entry.js +1 -0
  433. package/dist/webcomponents/p-63caad6e.entry.js +1 -0
  434. package/dist/webcomponents/p-66b6c56b.js +1 -0
  435. package/dist/webcomponents/p-6b0bec46.entry.js +1 -0
  436. package/dist/webcomponents/p-6d2c8be2.entry.js +1 -0
  437. package/dist/webcomponents/p-7b04f492.entry.js +1 -0
  438. package/dist/webcomponents/p-7bcec768.entry.js +1 -0
  439. package/dist/webcomponents/{p-5d0763a5.js → p-7c31ec70.js} +1 -1
  440. package/dist/webcomponents/{p-2bd8650b.js → p-865733bc.js} +1 -1
  441. package/dist/webcomponents/{p-44604a45.js → p-8f25f016.js} +1 -1
  442. package/dist/webcomponents/p-9235b94e.entry.js +1 -0
  443. package/dist/webcomponents/{p-411382f3.js → p-938993c7.js} +1 -1
  444. package/dist/webcomponents/{p-d6e51c2f.js → p-94eba309.js} +1 -1
  445. package/dist/webcomponents/p-9540d2f2.js +1 -0
  446. package/dist/webcomponents/{p-83aa33f0.js → p-9894484a.js} +1 -1
  447. package/dist/webcomponents/p-98dad117.entry.js +1 -0
  448. package/dist/webcomponents/p-9ad6e792.entry.js +1 -0
  449. package/dist/webcomponents/p-a263a3db.entry.js +1 -0
  450. package/dist/webcomponents/p-aa02cf71.js +1 -0
  451. package/dist/webcomponents/p-ab1504b6.entry.js +1 -0
  452. package/dist/webcomponents/p-abb46c6b.entry.js +1 -0
  453. package/dist/webcomponents/p-b6e90400.entry.js +1 -0
  454. package/dist/webcomponents/{p-2b081961.entry.js → p-bada4783.entry.js} +1 -1
  455. package/dist/webcomponents/p-c470a150.js +1 -0
  456. package/dist/webcomponents/{p-eb644cb7.js → p-c5c03d88.js} +1 -1
  457. package/dist/webcomponents/p-c5ce98b0.entry.js +1 -0
  458. package/dist/webcomponents/{p-6b21b6c9.js → p-c845cb7a.js} +1 -1
  459. package/dist/webcomponents/p-cc4adf97.js +1 -0
  460. package/dist/webcomponents/{p-72a90154.entry.js → p-cdb7fa19.entry.js} +1 -1
  461. package/dist/webcomponents/p-d07c45e6.entry.js +1 -0
  462. package/dist/webcomponents/p-d0bde1cb.js +1 -0
  463. package/dist/webcomponents/p-d8c04275.js +1 -0
  464. package/dist/webcomponents/{p-541b7c36.entry.js → p-db37b175.entry.js} +1 -1
  465. package/dist/webcomponents/p-ddcd2ff7.entry.js +1 -0
  466. package/dist/webcomponents/p-de13f23c.js +1 -0
  467. package/dist/webcomponents/p-dec18cc4.js +1 -0
  468. package/dist/webcomponents/{p-3fa7d9c9.entry.js → p-e0db920c.entry.js} +1 -1
  469. package/dist/webcomponents/{p-39177d5a.js → p-e63fdbca.js} +1 -1
  470. package/dist/webcomponents/{p-730e8425.js → p-e8c3c23f.js} +1 -1
  471. package/dist/webcomponents/p-ea105de3.js +1 -0
  472. package/dist/webcomponents/p-ea5cf135.entry.js +1 -0
  473. package/dist/webcomponents/p-ed17e472.entry.js +1 -0
  474. package/dist/webcomponents/p-f0c0cbc8.entry.js +1 -0
  475. package/dist/webcomponents/{p-24a9c773.js → p-f19f9f61.js} +1 -1
  476. package/dist/webcomponents/p-f1e01bab.entry.js +1 -0
  477. package/dist/webcomponents/p-f2f2e20e.js +1 -0
  478. package/dist/webcomponents/p-f5925b1e.entry.js +1 -0
  479. package/dist/webcomponents/p-f694e1c8.js +1 -0
  480. package/dist/webcomponents/p-f706d70e.js +1 -0
  481. package/dist/webcomponents/p-f9728478.entry.js +1 -0
  482. package/dist/webcomponents/p-f9ac523e.entry.js +1 -0
  483. package/dist/webcomponents/p-f9d63d9d.js +1 -0
  484. package/dist/webcomponents/p-fa2b405c.entry.js +1 -0
  485. package/dist/webcomponents/{p-bf07d5d0.entry.js → p-facada09.entry.js} +1 -1
  486. package/dist/webcomponents/p-fe0d245f.entry.js +1 -0
  487. package/dist/webcomponents/webcomponents.esm.js +1 -1
  488. package/package.json +1 -1
  489. package/dist/cjs/form-control-file.cjs.entry.js +0 -67
  490. package/dist/cjs/form-control-select_3.cjs.entry.js +0 -145
  491. package/dist/cjs/justifi-additional-questions-form-step-core_9.cjs.entry.js +0 -800
  492. package/dist/cjs/payments-list-params-state-0ff968a7.js +0 -14
  493. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +0 -338
  494. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +0 -40
  495. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/input-configurations.js +0 -52
  496. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +0 -8
  497. package/dist/collection/components/business-forms/schemas/business-document-upload-schema.js +0 -23
  498. package/dist/esm/form-control-file.entry.js +0 -63
  499. package/dist/esm/form-control-select_3.entry.js +0 -139
  500. package/dist/esm/justifi-additional-questions-form-step-core_9.entry.js +0 -788
  501. package/dist/esm/payments-list-params-state-b3dab8bc.js +0 -10
  502. package/dist/module/business-document-upload-form-step.js +0 -272
  503. package/dist/module/business-document-upload-input-group.js +0 -128
  504. package/dist/module/business-terms-conditions-text.js +0 -28
  505. package/dist/module/justifi-business-document-upload-form-step.d.ts +0 -11
  506. package/dist/module/justifi-business-document-upload-form-step.js +0 -6
  507. package/dist/module/justifi-business-document-upload-input-group.d.ts +0 -11
  508. package/dist/module/justifi-business-document-upload-input-group.js +0 -6
  509. package/dist/module/justifi-business-documents-on-file.d.ts +0 -11
  510. package/dist/module/justifi-business-documents-on-file.js +0 -6
  511. package/dist/module/justifi-business-terms-conditions-text.d.ts +0 -11
  512. package/dist/module/justifi-business-terms-conditions-text.js +0 -6
  513. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +0 -42
  514. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.d.ts +0 -21
  515. package/dist/types/components/business-forms/payment-provisioning/document-uploads/input-configurations.d.ts +0 -45
  516. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.d.ts +0 -3
  517. package/dist/types/components/business-forms/schemas/business-document-upload-schema.d.ts +0 -17
  518. package/dist/webcomponents/p-04ce1f82.js +0 -1
  519. package/dist/webcomponents/p-0544f4a4.entry.js +0 -1
  520. package/dist/webcomponents/p-060ff1a1.js +0 -1
  521. package/dist/webcomponents/p-0658b707.entry.js +0 -1
  522. package/dist/webcomponents/p-0d7e7957.js +0 -1
  523. package/dist/webcomponents/p-0f4168f4.entry.js +0 -1
  524. package/dist/webcomponents/p-10cface4.entry.js +0 -1
  525. package/dist/webcomponents/p-10f9ff7b.entry.js +0 -1
  526. package/dist/webcomponents/p-12233a57.entry.js +0 -1
  527. package/dist/webcomponents/p-135e24c0.js +0 -1
  528. package/dist/webcomponents/p-14d21d66.entry.js +0 -1
  529. package/dist/webcomponents/p-156f0a23.entry.js +0 -1
  530. package/dist/webcomponents/p-1a27f22e.js +0 -1
  531. package/dist/webcomponents/p-1e2526c8.entry.js +0 -1
  532. package/dist/webcomponents/p-2c7441ea.entry.js +0 -1
  533. package/dist/webcomponents/p-2d27d054.entry.js +0 -1
  534. package/dist/webcomponents/p-351c7fa3.entry.js +0 -1
  535. package/dist/webcomponents/p-3f209fcc.entry.js +0 -1
  536. package/dist/webcomponents/p-46769ec3.entry.js +0 -1
  537. package/dist/webcomponents/p-47cd431c.js +0 -1
  538. package/dist/webcomponents/p-4bcfdb99.entry.js +0 -1
  539. package/dist/webcomponents/p-4e122ace.js +0 -1
  540. package/dist/webcomponents/p-4e92b1ac.entry.js +0 -1
  541. package/dist/webcomponents/p-560bc606.entry.js +0 -1
  542. package/dist/webcomponents/p-5d177a30.js +0 -1
  543. package/dist/webcomponents/p-67aef066.entry.js +0 -1
  544. package/dist/webcomponents/p-6bc01617.js +0 -1
  545. package/dist/webcomponents/p-6e8be579.entry.js +0 -1
  546. package/dist/webcomponents/p-73323a41.entry.js +0 -1
  547. package/dist/webcomponents/p-73619f0a.js +0 -1
  548. package/dist/webcomponents/p-74d6e182.entry.js +0 -1
  549. package/dist/webcomponents/p-783f72a5.entry.js +0 -1
  550. package/dist/webcomponents/p-7bddbee4.js +0 -1
  551. package/dist/webcomponents/p-850b7717.entry.js +0 -1
  552. package/dist/webcomponents/p-87ce7b69.js +0 -1
  553. package/dist/webcomponents/p-8d61499c.entry.js +0 -1
  554. package/dist/webcomponents/p-9154210a.entry.js +0 -1
  555. package/dist/webcomponents/p-96bc127e.entry.js +0 -1
  556. package/dist/webcomponents/p-98e49e54.entry.js +0 -1
  557. package/dist/webcomponents/p-a3df6c3e.entry.js +0 -1
  558. package/dist/webcomponents/p-a5008b32.entry.js +0 -1
  559. package/dist/webcomponents/p-a59636ed.js +0 -1
  560. package/dist/webcomponents/p-a7b04e24.js +0 -1
  561. package/dist/webcomponents/p-ac2588af.entry.js +0 -1
  562. package/dist/webcomponents/p-aee49e6e.entry.js +0 -1
  563. package/dist/webcomponents/p-b78da082.entry.js +0 -1
  564. package/dist/webcomponents/p-b7b18a0f.entry.js +0 -1
  565. package/dist/webcomponents/p-ba202e33.js +0 -1
  566. package/dist/webcomponents/p-c0e18724.entry.js +0 -1
  567. package/dist/webcomponents/p-c65c07f7.entry.js +0 -1
  568. package/dist/webcomponents/p-ca6214ca.entry.js +0 -1
  569. package/dist/webcomponents/p-cb8f7bf4.js +0 -1
  570. package/dist/webcomponents/p-ce2de434.entry.js +0 -1
  571. package/dist/webcomponents/p-def672dc.entry.js +0 -1
  572. package/dist/webcomponents/p-df795bd0.entry.js +0 -1
  573. package/dist/webcomponents/p-f2158e48.entry.js +0 -1
  574. package/dist/webcomponents/p-f3867b82.entry.js +0 -1
  575. package/dist/webcomponents/p-fc3daedd.js +0 -1
  576. package/dist/webcomponents/p-fd6619d0.entry.js +0 -1
@@ -0,0 +1,833 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5b9a3b5f.js');
6
+ const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-2f66f025.js');
7
+ const index_esm = require('./index.esm-a397536a.js');
8
+ const Business = require('./Business-cfd6a2dd.js');
9
+ const formInputMasks = require('./form-input-masks-0879c139.js');
10
+ const parts = require('./parts-b2ff8b68.js');
11
+ const skeleton = require('./skeleton-0353466d.js');
12
+ const businessFormOptions = require('./business-form-options-4bcb8943.js');
13
+ const eventTypes = require('./event-types-180a85a9.js');
14
+ const schemaValidations = require('./schema-validations-cc4e6071.js');
15
+ const ComponentError = require('./ComponentError-233ac749.js');
16
+ require('./Checkout-0f1c8abe.js');
17
+ require('./Pagination-0da8f095.js');
18
+ require('./Payment-c47ed1e1.js');
19
+ require('./SubAccount-509ebf93.js');
20
+ const Document = require('./Document-0b828345.js');
21
+ const utils = require('./utils-bc03ca40.js');
22
+ const button = require('./button-8b634147.js');
23
+ const businessIdentitySchema = require('./business-identity-schema-be495474.js');
24
+ const stateOptions = require('./state-options-4fbcb48a.js');
25
+ require('./helpers-602962eb.js');
26
+ require('./utils-337befa9.js');
27
+ require('./Dispute-eb6bad54.js');
28
+
29
+ class BankAccount {
30
+ constructor(data) {
31
+ this.id = data.id;
32
+ this.account_owner_name = data.account_owner_name;
33
+ this.full_name = data.full_name;
34
+ this.account_type = data.account_type;
35
+ this.account_number = data.account_number;
36
+ this.acct_last_four = data.acct_last_four;
37
+ this.account_number_last4 = data.account_number_last4;
38
+ this.routing_number = data.routing_number;
39
+ this.bank_name = data.bank_name;
40
+ this.country = data.country;
41
+ this.currency = data.currency;
42
+ this.nickname = data.nickname;
43
+ this.metadata = data.metadata;
44
+ this.business_id = data.business_id;
45
+ this.platform_account_id = data.platform_account_id;
46
+ this.created_at = data.created_at;
47
+ this.updated_at = data.updated_at;
48
+ }
49
+ get payload() {
50
+ return {
51
+ account_owner_name: this.account_owner_name || '',
52
+ account_type: this.account_type || '',
53
+ account_number: this.account_number || '',
54
+ routing_number: this.routing_number || '',
55
+ bank_name: this.bank_name || '',
56
+ nickname: this.nickname || '',
57
+ business_id: this.business_id || '',
58
+ };
59
+ }
60
+ }
61
+
62
+ const FormBlock = () => (index.h("div", { class: "row gap-3" },
63
+ index.h("div", { class: "col-12" },
64
+ index.h(skeleton.Skeleton, { width: "25%" })),
65
+ index.h("div", { class: "col-12" },
66
+ index.h(skeleton.Skeleton, { width: "100%" })),
67
+ index.h("div", { class: "col-12 d-flex gap-3" },
68
+ index.h(skeleton.Skeleton, { width: "50%" }),
69
+ index.h(skeleton.Skeleton, { width: "50%" })),
70
+ index.h("div", { class: "col-12 d-flex gap-3" },
71
+ index.h(skeleton.Skeleton, { width: "65%" }),
72
+ index.h(skeleton.Skeleton, { width: "35%" }))));
73
+ const PaymentProvisioningLoading = () => {
74
+ return (index.h("div", { class: "row gap-5" },
75
+ index.h("div", { class: "col-12" },
76
+ index.h(skeleton.Skeleton, { width: "40%", height: "40px" })),
77
+ index.h(FormBlock, null),
78
+ index.h(FormBlock, null),
79
+ index.h(FormBlock, null)));
80
+ };
81
+
82
+ const AdditionalQuestionsFormStepCore = class {
83
+ constructor(hostRef) {
84
+ index.registerInstance(this, hostRef);
85
+ this.stepCompleteEvent = index.createEvent(this, "complete-form-step-event", 7);
86
+ this.errorEvent = index.createEvent(this, "error-event", 7);
87
+ this.formLoading = index.createEvent(this, "formLoading", 7);
88
+ this.getData = () => {
89
+ this.formLoading.emit(true);
90
+ this.isLoading = true;
91
+ this.getBusiness({
92
+ onSuccess: (response) => {
93
+ this.additional_questions = new Business.AdditionalQuestions(response.data.additional_questions || {});
94
+ this.formController.setInitialValues(Object.assign({}, this.additional_questions));
95
+ },
96
+ onError: ({ error, code, severity }) => {
97
+ this.errorEvent.emit({
98
+ message: error,
99
+ errorCode: code,
100
+ severity: severity
101
+ });
102
+ },
103
+ final: () => {
104
+ this.formLoading.emit(false);
105
+ this.isLoading = false;
106
+ }
107
+ });
108
+ };
109
+ this.sendData = (onSuccess) => {
110
+ let submittedData;
111
+ this.formLoading.emit(true);
112
+ this.patchBusiness({
113
+ payload: this.patchPayload,
114
+ onSuccess: (response) => {
115
+ submittedData = response;
116
+ onSuccess();
117
+ },
118
+ onError: ({ error, code, severity }) => {
119
+ submittedData = error;
120
+ this.errorEvent.emit({
121
+ message: error,
122
+ errorCode: code,
123
+ severity: severity
124
+ });
125
+ },
126
+ final: () => {
127
+ this.stepCompleteEvent.emit({ response: submittedData, formStep: eventTypes.BusinessFormStep.additionalQuestions });
128
+ this.formLoading.emit(false);
129
+ }
130
+ });
131
+ };
132
+ this.inputHandler = (name, value) => {
133
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
134
+ this.additional_questions = new Business.AdditionalQuestions(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
135
+ };
136
+ this.formController = undefined;
137
+ this.errors = {};
138
+ this.additional_questions = {};
139
+ this.recurringPayments = false;
140
+ this.isLoading = false;
141
+ this.getBusiness = undefined;
142
+ this.patchBusiness = undefined;
143
+ this.allowOptionalFields = undefined;
144
+ }
145
+ recurringPaymentsWatcher(newValue) {
146
+ if ((newValue === null || newValue === void 0 ? void 0 : newValue.business_recurring_payments) === 'Yes') {
147
+ this.recurringPayments = true;
148
+ }
149
+ else {
150
+ this.recurringPayments = false;
151
+ }
152
+ }
153
+ async validateAndSubmit({ onSuccess }) {
154
+ this.formController.validateAndSubmit(() => this.sendData(onSuccess));
155
+ }
156
+ ;
157
+ get patchPayload() {
158
+ let formValues = new Business.AdditionalQuestions(this.formController.values.getValue()).payload;
159
+ return { additional_questions: formValues };
160
+ }
161
+ componentWillLoad() {
162
+ this.getBusiness && this.getData();
163
+ this.formController = new index_esm.FormController(businessAdditionalQuestionsSchema.additionalQuestionsSchema(this.allowOptionalFields));
164
+ }
165
+ componentDidLoad() {
166
+ this.formController.errors.subscribe(errors => {
167
+ this.errors = Object.assign({}, errors);
168
+ });
169
+ }
170
+ render() {
171
+ var _a, _b, _c, _d, _e, _f, _g;
172
+ const additionalQuestionsDefaultValue = this.formController.getInitialValues();
173
+ if (this.isLoading) {
174
+ return index.h(PaymentProvisioningLoading, null);
175
+ }
176
+ return (index.h("form", null, index.h("fieldset", null, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Additional Questions"), index.h("form-control-tooltip", { helpText: "This information helps us understand the business and identify and monitor trends to safeguard you and your customers." })), index.h("hr", { class: "mt-2" }), index.h("div", { class: "row gy-3" }, index.h("div", { class: "col-12 col-md-6" }, index.h("form-control-monetary", { name: "business_revenue", label: "What is your business\u2019 estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: formInputMasks.CURRENCY_MASK.WHOLE })), index.h("div", { class: "col-12 col-md-6" }, index.h("form-control-monetary", { name: "business_payment_volume", label: "What is your business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: formInputMasks.CURRENCY_MASK.WHOLE })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: "business_when_service_received", label: "On average, how long after paying will your customers typically receive their goods or services?", inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessFormOptions.businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: "business_recurring_payments", label: "Does your business offer recurring payments?", inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: businessFormOptions.recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), index.h("div", { class: 'col-12', hidden: !this.recurringPayments }, index.h("form-control-text", { name: "business_recurring_payments_percentage", label: "What percent of revenue is generated from each recurring payment type offered?", inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage, helpText: "For example: 50% monthly, 50% annual." })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: "business_seasonal", label: "Is this business seasonal?", inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: businessFormOptions.seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "business_other_payment_details", label: "Is there anything else you would like us to know about how your customers pay the business? (optional)", inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
177
+ }
178
+ static get watchers() { return {
179
+ "additional_questions": ["recurringPaymentsWatcher"]
180
+ }; }
181
+ };
182
+
183
+ const businessBankAccountSchema = (documents, allowOptionalFields) => {
184
+ const schema = index_esm.create$3({
185
+ bank_name: schemaValidations.bankNameValidation.required('Enter bank name'),
186
+ nickname: schemaValidations.nicknameValidation.required('Enter nickname'),
187
+ account_owner_name: schemaValidations.identityNameValidation.required('Enter account owner name'),
188
+ account_type: schemaValidations.accountTypeValidation.required('Select account type'),
189
+ account_number: schemaValidations.accountNumberValidation.required('Enter account number'),
190
+ routing_number: schemaValidations.routingNumberValidation.required('Enter routing number'),
191
+ voided_check: schemaValidations.voidedCheckValidation(documents, allowOptionalFields),
192
+ bank_statement: schemaValidations.bankStatementValidation(documents, allowOptionalFields)
193
+ });
194
+ const easySchema = index_esm.create$3({
195
+ bank_name: schemaValidations.bankNameValidation.nullable(),
196
+ nickname: schemaValidations.nicknameValidation.nullable(),
197
+ account_owner_name: schemaValidations.identityNameValidation.nullable(),
198
+ account_type: schemaValidations.accountTypeValidation.nullable(),
199
+ account_number: schemaValidations.accountNumberValidation.nullable(),
200
+ routing_number: schemaValidations.routingNumberValidation.nullable(),
201
+ voided_check: schemaValidations.voidedCheckValidation(documents, allowOptionalFields),
202
+ bank_statement: schemaValidations.bankStatementValidation(documents, allowOptionalFields)
203
+ });
204
+ return allowOptionalFields ? easySchema : schema;
205
+ };
206
+
207
+ const BusinessBankAccountFormStepCore = class {
208
+ constructor(hostRef) {
209
+ index.registerInstance(this, hostRef);
210
+ this.stepCompleteEvent = index.createEvent(this, "complete-form-step-event", 7);
211
+ this.errorEvent = index.createEvent(this, "error-event", 7);
212
+ this.formLoading = index.createEvent(this, "formLoading", 7);
213
+ this.initializeFormController = () => {
214
+ this.formController = new index_esm.FormController(businessBankAccountSchema(this.existingDocuments, this.allowOptionalFields));
215
+ this.formController.setInitialValues(Object.assign({}, this.bankAccount));
216
+ this.formController.errors.subscribe(errors => {
217
+ this.errors = Object.assign({}, errors);
218
+ });
219
+ };
220
+ this.inputHandler = (name, value) => {
221
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
222
+ };
223
+ this.storeFiles = (e) => {
224
+ const fileList = Array.from(e.detail.fileList);
225
+ const docType = e.detail.document_type;
226
+ const documentList = fileList.map(file => new Document.EntityDocument({ file, document_type: docType }, this.businessId));
227
+ this.documentData[docType] = documentList;
228
+ };
229
+ this.getData = () => {
230
+ this.isLoading = true;
231
+ this.getBusiness({
232
+ onSuccess: (response) => {
233
+ if (response.data.bank_accounts.length > 0) {
234
+ this.bankAccount = new BankAccount(response.data.bank_accounts[0]);
235
+ }
236
+ else {
237
+ this.bankAccount = new BankAccount({});
238
+ this.bankAccount.business_id = this.businessId;
239
+ }
240
+ this.existingDocuments = response.data.documents;
241
+ },
242
+ onError: ({ error, code, severity }) => {
243
+ this.errorEvent.emit({
244
+ message: error,
245
+ errorCode: code,
246
+ severity: severity
247
+ });
248
+ },
249
+ final: () => {
250
+ this.initializeFormController();
251
+ this.isLoading = false;
252
+ }
253
+ });
254
+ };
255
+ this.postDocumentRecordData = async (docData) => {
256
+ this.isLoading = true;
257
+ const payload = docData.record_data;
258
+ return new Promise((resolve) => {
259
+ this.postDocumentRecord({
260
+ payload,
261
+ onSuccess: (response) => {
262
+ resolve(this.handleDocRecordResponse(docData, response));
263
+ },
264
+ onError: ({ error, code, severity }) => {
265
+ this.errorEvent.emit({
266
+ message: error,
267
+ errorCode: code,
268
+ severity: severity
269
+ });
270
+ resolve(false);
271
+ },
272
+ });
273
+ });
274
+ };
275
+ this.handleDocRecordResponse = (docData, response) => {
276
+ if (response.error) {
277
+ this.errorEvent.emit({
278
+ errorCode: ComponentError.ComponentErrorCodes.POST_ERROR,
279
+ message: response.error.message,
280
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
281
+ data: response.error,
282
+ });
283
+ return false;
284
+ }
285
+ else {
286
+ docData.setPresignedUrl(response.data.presigned_url);
287
+ return true;
288
+ }
289
+ };
290
+ this.uploadDocument = async (docData) => {
291
+ if (!docData.presigned_url) {
292
+ throw new Error('Presigned URL is not set');
293
+ }
294
+ const response = await fetch(docData.presigned_url, {
295
+ method: 'PUT',
296
+ body: docData.fileString,
297
+ });
298
+ return this.handleUploadResponse(response);
299
+ };
300
+ this.handleUploadResponse = (response) => {
301
+ if (response.error) {
302
+ this.errorEvent.emit({
303
+ errorCode: ComponentError.ComponentErrorCodes.POST_ERROR,
304
+ message: response.error.message,
305
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
306
+ data: response.error,
307
+ });
308
+ return false;
309
+ }
310
+ else {
311
+ return true;
312
+ }
313
+ };
314
+ this.formController = undefined;
315
+ this.errors = {};
316
+ this.bankAccount = {};
317
+ this.existingDocuments = [];
318
+ this.documentData = new Document.EntityDocumentStorage();
319
+ this.isLoading = false;
320
+ this.businessId = undefined;
321
+ this.getBusiness = undefined;
322
+ this.postBankAccount = undefined;
323
+ this.postDocumentRecord = undefined;
324
+ this.allowOptionalFields = undefined;
325
+ }
326
+ watchHandler(newValue) {
327
+ this.formLoading.emit(newValue);
328
+ }
329
+ async validateAndSubmit({ onSuccess }) {
330
+ if (this.existingBankAccount) {
331
+ // If a bank account already exists, skip bank account posting; proceed directly to document upload
332
+ this.sendData(onSuccess);
333
+ }
334
+ else {
335
+ // If bank account is new, validate form inputs (bank account fields), then proceed
336
+ this.formController.validateAndSubmit(() => this.sendData(onSuccess));
337
+ }
338
+ }
339
+ componentWillLoad() {
340
+ this.getBusiness && this.getData();
341
+ this.formController = new index_esm.FormController(businessBankAccountSchema(this.existingDocuments, this.allowOptionalFields));
342
+ }
343
+ componentDidLoad() {
344
+ this.formController.errors.subscribe(errors => {
345
+ this.errors = Object.assign({}, errors);
346
+ });
347
+ }
348
+ get postPayload() {
349
+ let formValues = new BankAccount(this.formController.values.getValue()).payload;
350
+ return formValues;
351
+ }
352
+ get existingBankAccount() {
353
+ var _a;
354
+ return !!((_a = this.bankAccount) === null || _a === void 0 ? void 0 : _a.id);
355
+ }
356
+ async sendData(onSuccess) {
357
+ try {
358
+ // Post bank account data if the form is not disabled
359
+ const bankAccountPosted = !this.existingBankAccount ? await this.postBankAccountData() : true;
360
+ if (!bankAccountPosted) {
361
+ return;
362
+ }
363
+ // Post documents only after bank account was successfully created
364
+ const documentsUploaded = await this.postBusinessDocuments();
365
+ if (!documentsUploaded) {
366
+ return;
367
+ }
368
+ onSuccess();
369
+ }
370
+ catch (error) {
371
+ this.errorEvent.emit({
372
+ message: error,
373
+ errorCode: ComponentError.ComponentErrorCodes.POST_ERROR,
374
+ severity: ComponentError.ComponentErrorSeverity.ERROR
375
+ });
376
+ }
377
+ }
378
+ async postBankAccountData() {
379
+ let submittedData;
380
+ this.isLoading = true;
381
+ return new Promise((resolve) => {
382
+ let success = false;
383
+ this.postBankAccount({
384
+ payload: this.postPayload,
385
+ onSuccess: (response) => {
386
+ submittedData = response;
387
+ success = true;
388
+ },
389
+ onError: ({ error, code, severity }) => {
390
+ success = false;
391
+ this.errorEvent.emit({
392
+ message: error,
393
+ errorCode: code,
394
+ severity: severity
395
+ });
396
+ },
397
+ final: () => {
398
+ this.stepCompleteEvent.emit({ response: submittedData, formStep: eventTypes.BusinessFormStep.bankAccount });
399
+ this.isLoading = false;
400
+ resolve(success);
401
+ }
402
+ });
403
+ });
404
+ }
405
+ async postBusinessDocuments() {
406
+ this.isLoading = true;
407
+ try {
408
+ const docArray = Object.values(this.documentData).flat();
409
+ if (!docArray.length) {
410
+ return true;
411
+ }
412
+ const recordsCreated = await Promise.all(docArray.map((docData) => this.postDocumentRecordData(docData))); // Create document records
413
+ if (recordsCreated.includes(false)) {
414
+ return false;
415
+ } // Exit if document record creation fails
416
+ const uploadsCompleted = await Promise.all(docArray.map((docData) => this.uploadDocument(docData))); // Upload documents to AWS presigned URLs
417
+ if (uploadsCompleted.includes(false)) {
418
+ return false;
419
+ } // Exit if any upload fails
420
+ return true;
421
+ }
422
+ finally {
423
+ this.isLoading = false;
424
+ }
425
+ }
426
+ render() {
427
+ const bankAccountDefaultValue = this.formController.getInitialValues();
428
+ if (this.isLoading) {
429
+ return index.h(PaymentProvisioningLoading, null);
430
+ }
431
+ return (index.h("form", null, index.h("fieldset", { class: "mb-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Bank Account Info"), index.h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), index.h("hr", { class: "mt-2" }), index.h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.existingBankAccount })), index.h("fieldset", { class: "mt-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Document Uploads"), index.h("form-control-tooltip", { helpText: "These documents are required for underwriting purposes. Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category." })), index.h("hr", { class: "mt-2" }), index.h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), index.h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles }))));
432
+ }
433
+ static get watchers() { return {
434
+ "isLoading": ["watchHandler"]
435
+ }; }
436
+ };
437
+
438
+ const BusinessCoreInfoFormStepCore = class {
439
+ constructor(hostRef) {
440
+ index.registerInstance(this, hostRef);
441
+ this.stepCompleteEvent = index.createEvent(this, "complete-form-step-event", 7);
442
+ this.errorEvent = index.createEvent(this, "error-event", 7);
443
+ this.formLoading = index.createEvent(this, "formLoading", 7);
444
+ this.getData = () => {
445
+ this.formLoading.emit(true);
446
+ this.isLoading = true;
447
+ this.getBusiness({
448
+ onSuccess: (response) => {
449
+ this.coreInfo = new Business.CoreBusinessInfo(response.data);
450
+ this.formController.setInitialValues(Object.assign({}, this.coreInfo));
451
+ },
452
+ onError: ({ error, code, severity }) => {
453
+ this.errorEvent.emit({
454
+ message: error,
455
+ errorCode: code,
456
+ severity: severity
457
+ });
458
+ },
459
+ final: () => {
460
+ this.formLoading.emit(false);
461
+ this.isLoading = false;
462
+ }
463
+ });
464
+ };
465
+ this.sendData = (onSuccess) => {
466
+ let submittedData;
467
+ this.formLoading.emit(true);
468
+ this.patchBusiness({
469
+ payload: this.patchPayload,
470
+ onSuccess: (response) => {
471
+ submittedData = response;
472
+ onSuccess();
473
+ },
474
+ onError: ({ error, code, severity }) => {
475
+ submittedData = error;
476
+ this.errorEvent.emit({
477
+ message: error,
478
+ errorCode: code,
479
+ severity: severity
480
+ });
481
+ },
482
+ final: () => {
483
+ this.stepCompleteEvent.emit({ response: submittedData, formStep: eventTypes.BusinessFormStep.businessInfo });
484
+ this.formLoading.emit(false);
485
+ }
486
+ });
487
+ };
488
+ this.inputHandler = (name, value) => {
489
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
490
+ };
491
+ this.formController = undefined;
492
+ this.errors = {};
493
+ this.coreInfo = {};
494
+ this.isLoading = false;
495
+ this.businessId = undefined;
496
+ this.getBusiness = undefined;
497
+ this.patchBusiness = undefined;
498
+ this.allowOptionalFields = undefined;
499
+ }
500
+ async validateAndSubmit({ onSuccess }) {
501
+ this.formController.validateAndSubmit(() => this.sendData(onSuccess));
502
+ }
503
+ ;
504
+ get patchPayload() {
505
+ let formValues = new Business.CoreBusinessInfo(this.formController.values.getValue()).payload;
506
+ return formValues;
507
+ }
508
+ componentWillLoad() {
509
+ this.getBusiness && this.getData();
510
+ this.formController = new index_esm.FormController(businessAdditionalQuestionsSchema.businessCoreInfoSchema(this.allowOptionalFields));
511
+ }
512
+ componentDidLoad() {
513
+ this.formController.errors.subscribe(errors => {
514
+ this.errors = Object.assign({}, errors);
515
+ });
516
+ }
517
+ render() {
518
+ const coreInfoDefaultValue = this.formController.getInitialValues();
519
+ if (this.isLoading) {
520
+ return index.h(PaymentProvisioningLoading, null);
521
+ }
522
+ return (index.h("form", null, index.h("fieldset", null, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Business Information")), index.h("hr", { class: "mt-2" }), index.h("div", { class: "row gy-3" }, index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), index.h("div", { class: "col-12 col-md-8" }, index.h("form-control-select", { name: "classification", label: "Business Classification", options: businessFormOptions.businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), index.h("div", { class: "col-12 col-md-4" }, index.h("form-control-date", { name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), index.h("div", { class: "col-12 col-md-6" }, index.h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), index.h("div", { class: "col-12 col-md-6" }, index.h("form-control-text", { name: "tax_id", label: "Tax ID (EIN or SSN)", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, maxLength: 9, helpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns." })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "website_url", label: "Business Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler, helpText: "Don't have a live website? You can use your social media business page, app store link, or staging site URL." })), index.h("div", { class: "col-12 col-md-6" }, index.h("form-control-text", { name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), index.h("div", { class: "col-12 col-md-6" }, index.h("form-control-number-masked", { name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: formInputMasks.PHONE_MASKS.US }))))));
523
+ }
524
+ };
525
+
526
+ const BusinessOwnersFormStepCore = class {
527
+ constructor(hostRef) {
528
+ index.registerInstance(this, hostRef);
529
+ this.clickEvent = index.createEvent(this, "click-event", 7);
530
+ this.stepCompleteEvent = index.createEvent(this, "complete-form-step-event", 7);
531
+ this.errorEvent = index.createEvent(this, "error-event", 7);
532
+ this.formLoading = index.createEvent(this, "formLoading", 7);
533
+ this.matchRef = (ref, ownerId) => {
534
+ const ownerIndex = this.refs.findIndex(ref => ref === ownerId);
535
+ if (ownerIndex !== -1) {
536
+ this.refs[ownerIndex] = ref;
537
+ }
538
+ };
539
+ this.getData = () => {
540
+ this.formLoading.emit(true);
541
+ this.isLoading = true;
542
+ this.getBusiness({
543
+ onSuccess: (response) => {
544
+ if (response.data.owners.length) {
545
+ this.ownersPayload = response.data.owners.map(owner => ({ id: owner.id }));
546
+ }
547
+ else {
548
+ this.addOwnerForm();
549
+ }
550
+ },
551
+ onError: ({ error, code, severity }) => {
552
+ this.errorEvent.emit({
553
+ message: error,
554
+ errorCode: code,
555
+ severity: severity
556
+ });
557
+ },
558
+ final: () => {
559
+ this.formLoading.emit(false);
560
+ this.isLoading = false;
561
+ this.manageRefs();
562
+ }
563
+ });
564
+ };
565
+ this.sendData = async (onSuccess) => {
566
+ let submittedData;
567
+ this.formLoading.emit(true);
568
+ this.patchBusiness({
569
+ payload: { owners: this.ownersPayload },
570
+ onSuccess: (response) => {
571
+ submittedData = response;
572
+ onSuccess();
573
+ },
574
+ onError: ({ error, code, severity }) => {
575
+ submittedData = error;
576
+ this.errorEvent.emit({
577
+ message: error,
578
+ errorCode: code,
579
+ severity: severity
580
+ });
581
+ },
582
+ final: () => {
583
+ this.stepCompleteEvent.emit({ response: submittedData, formStep: eventTypes.BusinessFormStep.owners });
584
+ this.formLoading.emit(false);
585
+ }
586
+ });
587
+ };
588
+ this.addOwnerForm = (fireClick) => {
589
+ this.newFormOpen = true;
590
+ this.ownersPayload = [...this.ownersPayload, { id: '' }];
591
+ fireClick && this.clickEvent.emit({ name: eventTypes.BusinessFormClickActions.addOwnerForm });
592
+ };
593
+ this.removeOwnerForm = (id) => {
594
+ this.ownersPayload = this.ownersPayload.filter(owner => owner.id !== id);
595
+ this.newFormOpen && (this.newFormOpen = false);
596
+ };
597
+ this.ownersPayload = [];
598
+ this.refs = [];
599
+ this.newFormOpen = undefined;
600
+ this.isLoading = false;
601
+ this.authToken = undefined;
602
+ this.businessId = undefined;
603
+ this.getBusiness = undefined;
604
+ this.patchBusiness = undefined;
605
+ this.allowOptionalFields = undefined;
606
+ }
607
+ get showAddOwnerButton() {
608
+ return this.ownersPayload.length < 4 && !this.newFormOpen;
609
+ }
610
+ manageRefs() {
611
+ this.refs = this.ownersPayload.map((owner) => { return owner.id; });
612
+ }
613
+ async validateAndSubmit({ onSuccess }) {
614
+ const formValidations = this.refs.map(ref => ref.validate());
615
+ const formsValid = (await Promise.all(formValidations)).every(result => result);
616
+ if (!formsValid) {
617
+ return;
618
+ }
619
+ const formSubmissions = this.refs.map(ref => ref.submit());
620
+ const submissionsValid = (await Promise.all(formSubmissions)).every(result => result);
621
+ if (!submissionsValid) {
622
+ return;
623
+ }
624
+ this.sendData(onSuccess);
625
+ }
626
+ ;
627
+ componentWillLoad() {
628
+ this.getBusiness && this.getData();
629
+ }
630
+ ownersWatcher() {
631
+ this.manageRefs();
632
+ }
633
+ handleOwnerSubmit(event) {
634
+ const submittedOwner = event.detail;
635
+ const updatedOwners = this.ownersPayload.map(owner => owner.id === submittedOwner.id ? submittedOwner : owner);
636
+ if (!updatedOwners.includes(submittedOwner)) {
637
+ const newOwnerIndex = this.ownersPayload.findIndex(owner => !owner.id);
638
+ updatedOwners[newOwnerIndex] = submittedOwner;
639
+ this.newFormOpen && (this.newFormOpen = false);
640
+ }
641
+ this.ownersPayload = updatedOwners;
642
+ }
643
+ render() {
644
+ if (this.isLoading) {
645
+ return index.h(PaymentProvisioningLoading, null);
646
+ }
647
+ return (index.h("div", null, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Owners"), index.h("form-control-tooltip", { helpText: "For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director." })), index.h("hr", { class: "mt-2" }), index.h("div", { class: 'row gy-3' }, this.ownersPayload.map((owner) => {
648
+ return (index.h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
649
+ })), index.h("div", { class: 'd-flex justify-content-start' }, index.h("div", { class: 'gap-2' }, index.h(button.Button, { variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
650
+ }
651
+ static get watchers() { return {
652
+ "ownersPayload": ["ownersWatcher"]
653
+ }; }
654
+ };
655
+
656
+ const BusinessRepresentativeFormStepCore = class {
657
+ constructor(hostRef) {
658
+ index.registerInstance(this, hostRef);
659
+ this.stepCompleteEvent = index.createEvent(this, "complete-form-step-event", 7);
660
+ this.errorEvent = index.createEvent(this, "error-event", 7);
661
+ this.formLoading = index.createEvent(this, "formLoading", 7);
662
+ this.getData = () => {
663
+ this.formLoading.emit(true);
664
+ this.isLoading = true;
665
+ this.getBusiness({
666
+ onSuccess: (response) => {
667
+ this.representative = new Business.Representative(response.data.representative || {});
668
+ this.formController.setInitialValues(Object.assign({}, this.representative));
669
+ },
670
+ onError: ({ error, code, severity }) => {
671
+ this.errorEvent.emit({
672
+ message: error,
673
+ errorCode: code,
674
+ severity: severity
675
+ });
676
+ },
677
+ final: () => {
678
+ this.formLoading.emit(false);
679
+ this.isLoading = false;
680
+ }
681
+ });
682
+ };
683
+ this.sendData = (onSuccess) => {
684
+ let submittedData;
685
+ this.formLoading.emit(true);
686
+ this.patchBusiness({
687
+ payload: this.patchPayload,
688
+ onSuccess: (response) => {
689
+ submittedData = response;
690
+ onSuccess();
691
+ },
692
+ onError: ({ error, code, severity }) => {
693
+ submittedData = error;
694
+ this.errorEvent.emit({
695
+ message: error,
696
+ errorCode: code,
697
+ severity: severity
698
+ });
699
+ },
700
+ final: () => {
701
+ this.stepCompleteEvent.emit({ response: submittedData, formStep: eventTypes.BusinessFormStep.representative });
702
+ this.formLoading.emit(false);
703
+ }
704
+ });
705
+ };
706
+ this.formController = undefined;
707
+ this.errors = {};
708
+ this.representative = {};
709
+ this.isLoading = false;
710
+ this.getBusiness = undefined;
711
+ this.patchBusiness = undefined;
712
+ this.allowOptionalFields = undefined;
713
+ }
714
+ async validateAndSubmit({ onSuccess }) {
715
+ this.formController.validateAndSubmit(() => this.sendData(onSuccess));
716
+ }
717
+ get patchPayload() {
718
+ let formValues = new Business.Representative(this.formController.values.getValue()).payload;
719
+ return { representative: formValues };
720
+ }
721
+ componentWillLoad() {
722
+ this.getBusiness && this.getData();
723
+ this.formController = new index_esm.FormController(businessIdentitySchema.identitySchema('representative', this.allowOptionalFields));
724
+ }
725
+ componentDidLoad() {
726
+ this.formController.errors.subscribe(errors => {
727
+ this.errors = Object.assign({}, errors);
728
+ });
729
+ }
730
+ render() {
731
+ if (this.isLoading) {
732
+ return (index.h(PaymentProvisioningLoading, null));
733
+ }
734
+ return (index.h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
735
+ }
736
+ };
737
+
738
+ const LegalAddressFormStepCore = class {
739
+ constructor(hostRef) {
740
+ index.registerInstance(this, hostRef);
741
+ this.stepCompleteEvent = index.createEvent(this, "complete-form-step-event", 7);
742
+ this.errorEvent = index.createEvent(this, "error-event", 7);
743
+ this.formLoading = index.createEvent(this, "formLoading", 7);
744
+ this.getData = () => {
745
+ this.formLoading.emit(true);
746
+ this.isLoading = true;
747
+ this.getBusiness({
748
+ onSuccess: (response) => {
749
+ this.legal_address = new Business.Address(response.data.legal_address || {});
750
+ this.formController.setInitialValues(Object.assign({}, this.legal_address));
751
+ },
752
+ onError: ({ error, code, severity }) => {
753
+ this.errorEvent.emit({
754
+ message: error,
755
+ errorCode: code,
756
+ severity: severity
757
+ });
758
+ },
759
+ final: () => {
760
+ this.formLoading.emit(false);
761
+ this.isLoading = false;
762
+ }
763
+ });
764
+ };
765
+ this.sendData = (onSuccess) => {
766
+ let submittedData;
767
+ this.formLoading.emit(true);
768
+ this.patchBusiness({
769
+ payload: this.patchPayload,
770
+ onSuccess: (response) => {
771
+ submittedData = response;
772
+ onSuccess();
773
+ },
774
+ onError: ({ error, code, severity }) => {
775
+ submittedData = error;
776
+ this.errorEvent.emit({
777
+ message: error,
778
+ errorCode: code,
779
+ severity: severity
780
+ });
781
+ },
782
+ final: () => {
783
+ this.stepCompleteEvent.emit({ response: submittedData, formStep: eventTypes.BusinessFormStep.legalAddress });
784
+ this.formLoading.emit(false);
785
+ }
786
+ });
787
+ };
788
+ this.inputHandler = (name, value) => {
789
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
790
+ };
791
+ this.formController = undefined;
792
+ this.errors = {};
793
+ this.legal_address = {};
794
+ this.isLoading = false;
795
+ this.getBusiness = undefined;
796
+ this.patchBusiness = undefined;
797
+ this.allowOptionalFields = undefined;
798
+ }
799
+ async validateAndSubmit({ onSuccess }) {
800
+ this.formController.validateAndSubmit(() => this.sendData(onSuccess));
801
+ }
802
+ ;
803
+ get patchPayload() {
804
+ let formValues = new Business.Address(this.formController.values.getValue()).payload;
805
+ return { legal_address: formValues };
806
+ }
807
+ componentWillLoad() {
808
+ this.getBusiness && this.getData();
809
+ this.formController = new index_esm.FormController(businessIdentitySchema.addressSchema(this.allowOptionalFields));
810
+ }
811
+ componentDidLoad() {
812
+ this.formController.errors.subscribe(errors => {
813
+ this.errors = Object.assign({}, errors);
814
+ });
815
+ }
816
+ render() {
817
+ var _a, _b, _c, _d, _e, _f;
818
+ const legalAddressDefaultValue = this.formController.getInitialValues();
819
+ if (this.isLoading) {
820
+ return index.h(PaymentProvisioningLoading, null);
821
+ }
822
+ return (index.h("form", null, index.h("fieldset", null, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Legal Address of your Business"), index.h("form-control-tooltip", { helpText: "No PO Boxes." })), index.h("hr", { class: "mt-2" }), index.h("div", { class: "row gy-3" }, index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: "state", label: "State", options: stateOptions.StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: utils.numberOnlyHandler })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: "country", label: "Country", options: [{ label: "United States", value: "USA" }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
823
+ // just for now so we skip handling country specificities
824
+ disabled: true }))))));
825
+ }
826
+ };
827
+
828
+ exports.justifi_additional_questions_form_step_core = AdditionalQuestionsFormStepCore;
829
+ exports.justifi_business_bank_account_form_step_core = BusinessBankAccountFormStepCore;
830
+ exports.justifi_business_core_info_form_step_core = BusinessCoreInfoFormStepCore;
831
+ exports.justifi_business_owners_form_step_core = BusinessOwnersFormStepCore;
832
+ exports.justifi_business_representative_form_step_core = BusinessRepresentativeFormStepCore;
833
+ exports.justifi_legal_address_form_step_core = LegalAddressFormStepCore;