@justifi/webcomponents 4.20.1 → 4.21.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 (313) hide show
  1. package/dist/cjs/{Analytics-3c89cfb4.js → Analytics-880f5152.js} +1 -1
  2. package/dist/cjs/{Payment-1a8a8ca6.js → Payment-04a842f4.js} +15 -0
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  4. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-form-types-6e1fcda3.js → business-form-types-719b7f52.js} +11 -0
  6. package/dist/cjs/{check-pkg-version-4fa0367d.js → check-pkg-version-54f7dfda.js} +1 -1
  7. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_5.cjs.entry.js} +121 -2
  8. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +51 -28
  9. package/dist/cjs/form-control-date_3.cjs.entry.js +47 -8
  10. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  11. package/dist/cjs/{form-control-monetary.cjs.entry.js → form-control-help-text_2.cjs.entry.js} +16 -1
  12. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  13. package/dist/cjs/{get-payout-csv-3a3260ec.js → get-payout-csv-a82b2c1c.js} +1 -1
  14. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +23 -11
  16. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  20. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
  24. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
  27. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
  29. package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -9
  30. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
  32. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
  34. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
  35. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
  36. package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -5
  37. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
  38. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  39. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/cjs/{package-3a9ac89d.js → package-cb1b1015.js} +1 -1
  42. package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
  43. package/dist/cjs/{payment.service-47e2d84e.js → payment.service-6f79aad2.js} +1 -1
  44. package/dist/cjs/payments-list-core.cjs.entry.js +14 -14
  45. package/dist/cjs/payments-list-filters_2.cjs.entry.js +2 -2
  46. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  47. package/dist/cjs/payouts-list-core.cjs.entry.js +5 -5
  48. package/dist/cjs/styled-host-1adf46c3.js +14 -0
  49. package/dist/cjs/{utils-af1b60a9.js → utils-52fb7fa1.js} +13 -10
  50. package/dist/cjs/webcomponents.cjs.js +1 -1
  51. package/dist/collection/api/Payment.js +15 -0
  52. package/dist/collection/collection-manifest.json +1 -0
  53. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  54. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  55. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +42 -2
  56. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  57. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +31 -3
  58. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +24 -1
  59. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  60. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +25 -3
  61. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  62. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  63. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +24 -1
  64. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  65. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +25 -2
  66. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
  67. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/input-configurations.js +17 -17
  68. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +24 -1
  69. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  70. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +24 -2
  71. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
  72. package/dist/collection/components/business-forms/utils/business-form-types.js +11 -0
  73. package/dist/collection/components/card-form/card-form.js +1 -1
  74. package/dist/collection/components/checkout/checkout-core.js +1 -1
  75. package/dist/collection/components/checkout/checkout.js +2 -2
  76. package/dist/collection/components/checkout/new-payment-method.js +1 -1
  77. package/dist/collection/components/checkout/payment-method-options.js +1 -1
  78. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  79. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  80. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  81. package/dist/collection/components/details/details.js +1 -1
  82. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  83. package/dist/collection/components/form/form-control-date.js +80 -6
  84. package/dist/collection/components/form/form-control-file.js +1 -1
  85. package/dist/collection/components/form/form-control-monetary.js +1 -1
  86. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  87. package/dist/collection/components/form/form-control-number.js +1 -1
  88. package/dist/collection/components/form/form-control-select.js +1 -1
  89. package/dist/collection/components/form/form-control-text.js +1 -1
  90. package/dist/collection/components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +63 -0
  91. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  92. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  93. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  94. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  95. package/dist/collection/components/payment-form/payment-form.js +3 -3
  96. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  97. package/dist/collection/components/payments-list/payments-list-core.js +11 -11
  98. package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
  99. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  100. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
  101. package/dist/collection/components/refund-form/refund-form.js +1 -1
  102. package/dist/collection/ui-components/custom-popper/custom-popper.js +8 -4
  103. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  104. package/dist/collection/utils/utils.js +13 -10
  105. package/dist/docs.json +628 -149
  106. package/dist/esm/{Analytics-b0f6936a.js → Analytics-3dde5a98.js} +1 -1
  107. package/dist/esm/{Payment-6bf26fe2.js → Payment-30790721.js} +15 -0
  108. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  109. package/dist/esm/business-details-core.entry.js +1 -1
  110. package/dist/esm/{business-form-types-1bc5fe08.js → business-form-types-8fd61b0e.js} +12 -1
  111. package/dist/esm/{check-pkg-version-10cadb08.js → check-pkg-version-4d144b72.js} +1 -1
  112. package/dist/esm/{custom-popper.entry.js → custom-popper_5.entry.js} +119 -4
  113. package/dist/esm/form-control-checkbox_9.entry.js +51 -28
  114. package/dist/esm/form-control-date_3.entry.js +47 -8
  115. package/dist/esm/form-control-file.entry.js +1 -1
  116. package/dist/esm/{form-control-monetary.entry.js → form-control-help-text_2.entry.js} +17 -3
  117. package/dist/esm/form-control-number.entry.js +1 -1
  118. package/dist/esm/{get-payout-csv-93427146.js → get-payout-csv-d29146ee.js} +1 -1
  119. package/dist/esm/gross-payment-chart-core.entry.js +2 -2
  120. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +23 -11
  121. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  122. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  123. package/dist/esm/justifi-business-details.entry.js +3 -3
  124. package/dist/esm/justifi-business-form.entry.js +6 -6
  125. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  126. package/dist/esm/justifi-card-form.entry.js +3 -3
  127. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  128. package/dist/esm/justifi-checkout.entry.js +6 -6
  129. package/dist/esm/justifi-details.entry.js +2 -2
  130. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  131. package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
  132. package/dist/esm/justifi-owner-form_3.entry.js +2 -2
  133. package/dist/esm/justifi-payment-details.entry.js +5 -5
  134. package/dist/esm/justifi-payment-form.entry.js +9 -9
  135. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  136. package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
  137. package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
  138. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  139. package/dist/esm/justifi-payments-list.entry.js +5 -5
  140. package/dist/esm/justifi-payout-details.entry.js +5 -5
  141. package/dist/esm/justifi-payouts-list.entry.js +5 -5
  142. package/dist/esm/justifi-refund-form.entry.js +3 -3
  143. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  144. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  145. package/dist/esm/loader.js +1 -1
  146. package/dist/esm/{package-2ef16e2c.js → package-4ab64620.js} +1 -1
  147. package/dist/esm/payment-details-core.entry.js +9 -9
  148. package/dist/esm/{payment.service-21a3e2d3.js → payment.service-f9c3e9d7.js} +1 -1
  149. package/dist/esm/payments-list-core.entry.js +14 -14
  150. package/dist/esm/payments-list-filters_2.entry.js +2 -2
  151. package/dist/esm/payout-details-core.entry.js +3 -3
  152. package/dist/esm/payouts-list-core.entry.js +5 -5
  153. package/dist/esm/styled-host-e0ddb759.js +12 -0
  154. package/dist/esm/{utils-e66d8bca.js → utils-620f2d78.js} +13 -10
  155. package/dist/esm/webcomponents.js +1 -1
  156. package/dist/module/Payment.js +15 -0
  157. package/dist/module/additional-questions.js +22 -10
  158. package/dist/module/billing-form.js +13 -7
  159. package/dist/module/business-additional-questions-form-step-core.js +42 -11
  160. package/dist/module/business-additional-questions-form-step.js +23 -11
  161. package/dist/module/business-bank-account-form-step.js +23 -10
  162. package/dist/module/business-core-info-form-step-core.js +19 -10
  163. package/dist/module/business-core-info-form-step.js +16 -10
  164. package/dist/module/business-core-info.js +15 -9
  165. package/dist/module/business-document-upload-form-step.js +14 -5
  166. package/dist/module/business-document-upload-input-group.js +27 -21
  167. package/dist/module/business-form-types.js +12 -1
  168. package/dist/module/business-owners-form-step-core.js +20 -12
  169. package/dist/module/business-owners-form-step.js +16 -10
  170. package/dist/module/business-representative-form-inputs.js +16 -10
  171. package/dist/module/business-representative-form-step-core.js +19 -10
  172. package/dist/module/business-representative-form-step.js +16 -10
  173. package/dist/module/business-representative.js +15 -9
  174. package/dist/module/business-terms-conditions-form-step.js +4 -2
  175. package/dist/module/business-terms-conditions-text.js +1 -1
  176. package/dist/module/checkout-core.js +14 -8
  177. package/dist/module/custom-popper2.js +2 -2
  178. package/dist/module/details.js +1 -1
  179. package/dist/module/form-control-checkbox2.js +1 -1
  180. package/dist/module/form-control-date2.js +57 -10
  181. package/dist/module/form-control-file2.js +10 -4
  182. package/dist/module/form-control-monetary2.js +1 -1
  183. package/dist/module/form-control-number-masked2.js +10 -4
  184. package/dist/module/form-control-number.js +1 -1
  185. package/dist/module/form-control-select2.js +10 -4
  186. package/dist/module/form-control-text2.js +10 -4
  187. package/dist/module/form-control-tooltip.d.ts +11 -0
  188. package/dist/module/form-control-tooltip.js +6 -0
  189. package/dist/module/form-control-tooltip2.js +49 -0
  190. package/dist/module/gross-payment-chart-core2.js +1 -1
  191. package/dist/module/identity-address-form.js +14 -8
  192. package/dist/module/justifi-business-form.js +29 -17
  193. package/dist/module/justifi-card-form.js +1 -1
  194. package/dist/module/justifi-checkout.js +15 -9
  195. package/dist/module/justifi-payment-form.js +16 -10
  196. package/dist/module/justifi-payment-provisioning.js +30 -18
  197. package/dist/module/justifi-payments-list.js +7 -7
  198. package/dist/module/justifi-payouts-list.js +9 -3
  199. package/dist/module/justifi-refund-form.js +21 -9
  200. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  201. package/dist/module/legal-address-form-step-core.js +17 -8
  202. package/dist/module/legal-address-form-step.js +14 -8
  203. package/dist/module/legal-address-form.js +13 -7
  204. package/dist/module/new-payment-method.js +14 -8
  205. package/dist/module/owner-form-core2.js +16 -10
  206. package/dist/module/owner-form-inputs2.js +16 -10
  207. package/dist/module/owner-form.js +15 -9
  208. package/dist/module/package.js +1 -1
  209. package/dist/module/payment-details-core2.js +7 -7
  210. package/dist/module/payment-method-options.js +14 -8
  211. package/dist/module/payment-method-selector.js +1 -1
  212. package/dist/module/payment-provisioning-core.js +31 -19
  213. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  214. package/dist/module/payment-provisioning-form-steps.js +30 -18
  215. package/dist/module/payments-list-core2.js +18 -18
  216. package/dist/module/payments-list-filters2.js +8 -8
  217. package/dist/module/payout-details-core2.js +1 -1
  218. package/dist/module/payouts-list-core2.js +11 -5
  219. package/dist/module/save-new-payment-method.js +1 -1
  220. package/dist/module/saved-payment-method.js +1 -1
  221. package/dist/module/season-interruption-insurance-core.js +2 -2
  222. package/dist/module/sezzle-payment-method.js +1 -1
  223. package/dist/module/styled-host.js +1 -1
  224. package/dist/module/table-filters-menu2.js +1 -1
  225. package/dist/module/utils2.js +13 -10
  226. package/dist/types/api/Payment.d.ts +7 -0
  227. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +4 -1
  228. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -1
  229. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +2 -1
  230. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -1
  231. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -1
  232. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +2 -1
  233. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -1
  234. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +2 -1
  235. package/dist/types/components/business-forms/utils/business-form-types.d.ts +15 -0
  236. package/dist/types/components/form/form-control-date.d.ts +5 -0
  237. package/dist/types/components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +8 -0
  238. package/dist/types/components.d.ts +39 -4
  239. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +1 -1
  240. package/dist/types/utils/utils.d.ts +2 -2
  241. package/dist/webcomponents/{p-232016ba.entry.js → p-08d88fd2.entry.js} +1 -1
  242. package/dist/webcomponents/p-0c2d91a2.entry.js +1 -0
  243. package/dist/webcomponents/{p-034fc302.entry.js → p-11f01df5.entry.js} +1 -1
  244. package/dist/webcomponents/p-122c2a11.entry.js +1 -0
  245. package/dist/webcomponents/{p-1c04aacd.entry.js → p-1d29488a.entry.js} +1 -1
  246. package/dist/webcomponents/{p-1eee25f3.entry.js → p-1e178dd1.entry.js} +2 -2
  247. package/dist/webcomponents/p-1eb60948.entry.js +1 -0
  248. package/dist/webcomponents/{p-dc048c3c.entry.js → p-23f95a19.entry.js} +1 -1
  249. package/dist/webcomponents/{p-ce5fe369.entry.js → p-2874d4b2.entry.js} +1 -1
  250. package/dist/webcomponents/{p-430f81c6.entry.js → p-43dfda70.entry.js} +1 -1
  251. package/dist/webcomponents/{p-75139399.entry.js → p-55fe2cf2.entry.js} +1 -1
  252. package/dist/webcomponents/{p-d99a5f30.entry.js → p-5df26e65.entry.js} +1 -1
  253. package/dist/webcomponents/p-5e5e8a85.js +1 -0
  254. package/dist/webcomponents/{p-9add7d3e.entry.js → p-605614f2.entry.js} +1 -1
  255. package/dist/webcomponents/{p-d76002d5.entry.js → p-61514f78.entry.js} +1 -1
  256. package/dist/webcomponents/p-6962044f.entry.js +1 -0
  257. package/dist/webcomponents/{p-570a0f02.entry.js → p-6a9e908b.entry.js} +1 -1
  258. package/dist/webcomponents/p-6ba660f2.entry.js +1 -0
  259. package/dist/webcomponents/{p-35846553.js → p-6d4b585d.js} +1 -1
  260. package/dist/webcomponents/{p-538fd427.entry.js → p-6e258b5f.entry.js} +1 -1
  261. package/dist/webcomponents/p-74da98da.js +1 -0
  262. package/dist/webcomponents/{p-ad47f37c.entry.js → p-770f60f9.entry.js} +1 -1
  263. package/dist/webcomponents/{p-b91bcbfc.js → p-799ee8c3.js} +1 -1
  264. package/dist/webcomponents/p-7cb3854c.entry.js +1 -0
  265. package/dist/webcomponents/p-7fec2bcb.js +1 -0
  266. package/dist/webcomponents/{p-b14da2fd.entry.js → p-80730b71.entry.js} +1 -1
  267. package/dist/webcomponents/{p-37888614.entry.js → p-8f04747b.entry.js} +1 -1
  268. package/dist/webcomponents/{p-c64ce69d.entry.js → p-8f447993.entry.js} +1 -1
  269. package/dist/webcomponents/p-9a37eee5.entry.js +1 -0
  270. package/dist/webcomponents/{p-d9579cd6.entry.js → p-a1d037cb.entry.js} +1 -1
  271. package/dist/webcomponents/{p-056e75be.entry.js → p-a3265844.entry.js} +1 -1
  272. package/dist/webcomponents/{p-c740b6ca.entry.js → p-a680c982.entry.js} +1 -1
  273. package/dist/webcomponents/{p-e2c88817.entry.js → p-a765230f.entry.js} +1 -1
  274. package/dist/webcomponents/p-a76ece26.js +1 -0
  275. package/dist/webcomponents/p-b7b18954.entry.js +1 -0
  276. package/dist/webcomponents/{p-707bdf68.js → p-bc9ae56f.js} +1 -1
  277. package/dist/webcomponents/p-c241cc62.entry.js +1 -0
  278. package/dist/webcomponents/{p-5e2c9ec8.js → p-ca8e126f.js} +1 -1
  279. package/dist/webcomponents/{p-e31f0f3e.entry.js → p-cd74be05.entry.js} +1 -1
  280. package/dist/webcomponents/{p-57d7534f.entry.js → p-d0ffb01c.entry.js} +1 -1
  281. package/dist/webcomponents/p-da316a74.entry.js +1 -0
  282. package/dist/webcomponents/{p-fb7f7a8c.entry.js → p-db3d1d7d.entry.js} +1 -1
  283. package/dist/webcomponents/p-dee2a3f8.entry.js +1 -0
  284. package/dist/webcomponents/{p-7ff329b1.js → p-e56ade55.js} +1 -1
  285. package/dist/webcomponents/p-e927fd5c.entry.js +1 -0
  286. package/dist/webcomponents/p-f3e00572.entry.js +1 -0
  287. package/dist/webcomponents/p-f71a5975.entry.js +1 -0
  288. package/dist/webcomponents/{p-3c7fac29.entry.js → p-ffe27126.entry.js} +1 -1
  289. package/dist/webcomponents/webcomponents.esm.js +1 -1
  290. package/package.json +1 -1
  291. package/dist/cjs/form-control-error-text_4.cjs.entry.js +0 -118
  292. package/dist/cjs/styled-host-9e0b67b3.js +0 -14
  293. package/dist/esm/form-control-error-text_4.entry.js +0 -111
  294. package/dist/esm/styled-host-3171ae1f.js +0 -12
  295. package/dist/webcomponents/p-44055818.js +0 -1
  296. package/dist/webcomponents/p-59cf5391.entry.js +0 -1
  297. package/dist/webcomponents/p-60d3571e.entry.js +0 -1
  298. package/dist/webcomponents/p-6ac806ff.entry.js +0 -1
  299. package/dist/webcomponents/p-7771f64b.entry.js +0 -1
  300. package/dist/webcomponents/p-7ddfce86.entry.js +0 -1
  301. package/dist/webcomponents/p-8a7112a0.entry.js +0 -1
  302. package/dist/webcomponents/p-9b154d98.entry.js +0 -1
  303. package/dist/webcomponents/p-ab92abb1.entry.js +0 -1
  304. package/dist/webcomponents/p-aedb421f.entry.js +0 -1
  305. package/dist/webcomponents/p-bbed6107.entry.js +0 -1
  306. package/dist/webcomponents/p-bdc91c61.entry.js +0 -1
  307. package/dist/webcomponents/p-c1772671.entry.js +0 -1
  308. package/dist/webcomponents/p-d8355f91.entry.js +0 -1
  309. package/dist/webcomponents/p-d89bad72.js +0 -1
  310. package/dist/webcomponents/p-df21aaad.js +0 -1
  311. package/dist/webcomponents/p-f0866375.entry.js +0 -1
  312. package/dist/webcomponents/p-f2924369.js +0 -1
  313. package/dist/webcomponents/p-ffddac99.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
- import { BusinessFormClickActions, BusinessFormStep } from "../../utils/business-form-types";
2
+ import { BusinessFormClickActions, BusinessFormStep, BusinessFormStepV2 } from "../../utils/business-form-types";
3
3
  import { Button } from "../../../../ui-components";
4
4
  export class BusinessOwnersFormStepCore {
5
5
  constructor() {
@@ -52,6 +52,7 @@ export class BusinessOwnersFormStepCore {
52
52
  },
53
53
  final: () => {
54
54
  this.submitted.emit({ data: submittedData, metadata: { completedStep: BusinessFormStep.owners } });
55
+ this.stepCompleted.emit({ data: submittedData, formStep: BusinessFormStepV2.owners });
55
56
  this.formLoading.emit(false);
56
57
  }
57
58
  });
@@ -111,9 +112,9 @@ export class BusinessOwnersFormStepCore {
111
112
  this.ownersPayload = updatedOwners;
112
113
  }
113
114
  render() {
114
- return (h("div", { key: 'f2358952d2d28841fb8e6bc66e9846eb2cdcc97e' }, h("legend", { key: 'ab3f7e6758cc50760681a9fdd07f8e137da65980' }, "Owners"), h("hr", { key: '57828746f9991da89e77a1f96b51f6df2d33d666' }), h("div", { key: '4f7f58bf1b5d40079228eef118946e17b407db63', class: 'row gy-3' }, this.ownersPayload.map((owner) => {
115
+ return (h("div", { key: '54dc14b59646d1cb539fd0b58ce6635350b3df4b' }, h("div", { key: 'b33f4e979244d857de0bb33b5ef5d4c31086cc10', class: "d-flex align-items-center gap-2" }, h("legend", { key: '96a4c633e8111bcfb5dd86e6f9e08ef98ea2728d', class: "mb-0" }, "Owners"), h("form-control-tooltip", { key: '057e701996ea52daf1b8cd0dc8ee97020918d844', 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." })), h("hr", { key: 'ef7dbdb63e95b95a3fa8630938a8cd1bf17855f7', class: "mt-2" }), h("div", { key: '53672f1511d6af3c4ae60572da139ba8249dd1c5', class: 'row gy-3' }, this.ownersPayload.map((owner) => {
115
116
  return (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) }));
116
- })), h("div", { key: '88dad43cc24d7c1e1220acb6b7791c2172074d61', class: 'd-flex justify-content-start' }, h("div", { key: '9359481d78e5c3ba9599d2fce5837c5fdfe1d6f0', class: 'gap-2' }, h(Button, { key: '04ee1c49c34567b079432df8fb2b1b298fb7d7a3', variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
117
+ })), h("div", { key: '9db46d31044dca403fd6ed13e36c8315ad4ca32a', class: 'd-flex justify-content-start' }, h("div", { key: 'a55cf43f922428201e0d016d1eb10489ba9ca6aa', class: 'gap-2' }, h(Button, { key: '0393ff4837999d169afdcb5c79a67bb50176edcd', variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
117
118
  }
118
119
  static get is() { return "justifi-business-owners-form-step-core"; }
119
120
  static get properties() {
@@ -240,6 +241,27 @@ export class BusinessOwnersFormStepCore {
240
241
  }
241
242
  }
242
243
  }
244
+ }, {
245
+ "method": "stepCompleted",
246
+ "name": "form-step-completed",
247
+ "bubbles": true,
248
+ "cancelable": true,
249
+ "composed": true,
250
+ "docs": {
251
+ "tags": [],
252
+ "text": ""
253
+ },
254
+ "complexType": {
255
+ "original": "BusinessFormStepCompletedEvent",
256
+ "resolved": "BusinessFormStepCompletedEvent",
257
+ "references": {
258
+ "BusinessFormStepCompletedEvent": {
259
+ "location": "import",
260
+ "path": "../../utils/business-form-types",
261
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormStepCompletedEvent"
262
+ }
263
+ }
264
+ }
243
265
  }, {
244
266
  "method": "clickEvent",
245
267
  "name": "click-event",
@@ -46,7 +46,7 @@ export class BusinessOwnersFormStep {
46
46
  }
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '213a68fd3543eb912c6fed376128ba877ba75871' }, h("justifi-business-owners-form-step-core", { key: '5acee797bd35f5b60cadc5ddd50f560532dfe8b1', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
49
+ return (h(Host, { key: '31bd33a08c9eb4a849db8898b3ec7e6fede7b843' }, h("justifi-business-owners-form-step-core", { key: '9e4c88686e1a5ebfd81ab5f1aebd21f58c4e6be5', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
50
50
  }
51
51
  static get is() { return "justifi-business-owners-form-step"; }
52
52
  static get properties() {
@@ -15,7 +15,7 @@ export class RepresentativeFormInputs {
15
15
  }
16
16
  render() {
17
17
  var _a, _b, _c, _d, _e, _f, _g;
18
- return (h("form", { key: '8b46b3b30681c7e7f30395a2cac575a7bd7ac998' }, h("fieldset", { key: 'e6b8f2ebca22c295fd6897c0e8862200171c2b4d' }, h("legend", { key: '8f8f52240f5ccc3f5d43507681dc970b4260bb1b' }, "Representative"), h("hr", { key: '8b07c69a514534ab731e7c01b6ee4c7a0e59e06e' }), h("div", { key: '79f44ba9dcbcf9d010aed92e332f686ca7127285', class: 'row gy-3' }, h("div", { key: '2a1aeb5ddee1dafc40e108cfb2e9ed6f4d8bc183', class: 'col-12 col-md-8' }, h("form-control-text", { key: '6e089f2d4f734da266e94b38ec1435dc3f461d5f', name: 'name', label: 'Full Name', defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c86421e524752e017180aef58e01229bf751e941', class: 'col-12 col-md-4' }, h("form-control-text", { key: 'ad8105f6d9a46397eb481666c19468376716544c', name: 'title', label: 'Title', defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '7775905e46c00337a98ab668c8453e14d27bfc4d', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'e810f2395101a1e48d8d3ff66617ac82d0ec90b3', name: 'email', label: 'Email Address', defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '66a91e85d1902e32668407e684774820c02dce67', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: 'aad97ca95c5b2ec728ea00916a46ff4b84661b96', name: 'phone', label: 'Phone Number', defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '3cd56ea0ac1e472e905c8113f6335868c39882f1', class: 'col-12 col-md-4' }, h("form-control-date", { key: '2f6d505220cacc08a80029ada089370f3841d9ed', name: 'dob_full', label: 'Birth Date', defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController) })), h("div", { key: 'cf2df0af006a50d3533b798607025b4d6ee82ca0', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: '033e4264a1466d300891b2328c0bfaced7acb04d', name: 'identification_number', label: 'SSN', defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '2dc7be12d65203da4d4e0bdd995256a7bdc5bf37', class: 'col-12' }, h("justifi-identity-address-form", { key: '47916ab24bf990be3541b72bfa2dc46cccca5a31', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
18
+ return (h("form", { key: 'e60e25f358a68b95126f1b0238b754db71ffeb5e' }, h("fieldset", { key: 'ab9ca66102990e85694090847abda3842b4302e2' }, h("div", { key: '7fd390072a5b449efb1d18538da2a5ca985b7786', class: "d-flex align-items-center gap-2" }, h("legend", { key: '0fce87b8847777b8a2489684066a7f2ad28037a2', class: "mb-0" }, "Representative"), h("form-control-tooltip", { key: '685ab12d13997025ff840776a7868627d71c4ddf', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '87c7bf398f56addcc816803ca4b0b8b6598f47f9', class: "mt-2" }), h("div", { key: '76f9606e68374f92810686b4ee1e65855bb724dd', class: "row gy-3" }, h("div", { key: '982dfe08aba4db2ed702aaff432bea4e527ab9cb', class: "col-12 col-md-8" }, h("form-control-text", { key: '4dfbde53299db25439a8be81187d7b3cb39d1026', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9d9428eb5a8269861170dfa3ec162f0b52581101', class: "col-12 col-md-4" }, h("form-control-text", { key: 'af3601d4dfa0ffbe0a83f467d88c34add95b57b6', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '9f56a922a12b5a8393effde4a7e5d3e62f29a8e6', class: "col-12 col-md-6" }, h("form-control-text", { key: 'cc784d334f4c4612686f62a613ac7910d680dba8', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '4f63adab539a9f285985c440fcaf112ae81f7826', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'a170c6b9a6d553216adc41ac7603841b949b4b83', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '85ea5c9bc2b3992d44247991fda34a5142e50faa', class: "col-12 col-md-4" }, h("form-control-date", { key: '0e66f5255a6d159350ecd7d228ded18441b47d26', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'e0dddceb3d489b9d92a19e983d2ef147c9127e68', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '0f95dd8c436a38377058bf6067d810d8bdcb7686', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '0fb3fea4773d72d787c50e18213379ca3aed5c9e', class: "col-12" }, h("justifi-identity-address-form", { key: 'fe9cf9cc527794376968d35cdd42bfd75e550cca', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
19
19
  }
20
20
  static get is() { return "justifi-business-representative-form-inputs"; }
21
21
  static get properties() {
@@ -1,6 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { Representative } from "../../../../api/Identity";
3
3
  import { FormController } from "../../../form/form";
4
+ import { BusinessFormStepV2 } from "../../utils/business-form-types";
4
5
  import { identitySchema } from "../../schemas/business-identity-schema";
5
6
  export class BusinessRepresentativeFormStepCore {
6
7
  constructor() {
@@ -40,6 +41,7 @@ export class BusinessRepresentativeFormStepCore {
40
41
  },
41
42
  final: () => {
42
43
  this.submitted.emit({ data: { submittedData } });
44
+ this.stepCompleted.emit({ data: submittedData, formStep: BusinessFormStepV2.representative });
43
45
  this.formLoading.emit(false);
44
46
  }
45
47
  });
@@ -68,7 +70,7 @@ export class BusinessRepresentativeFormStepCore {
68
70
  });
69
71
  }
70
72
  render() {
71
- return (h("justifi-business-representative-form-inputs", { key: '855736c2c1565b0b9e2cf57131a72298ccc889d5', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
73
+ return (h("justifi-business-representative-form-inputs", { key: 'c007fffeb2675f9e054d74e7c59a729ad3103d21', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
72
74
  }
73
75
  static get is() { return "justifi-business-representative-form-step-core"; }
74
76
  static get properties() {
@@ -161,6 +163,27 @@ export class BusinessRepresentativeFormStepCore {
161
163
  }
162
164
  }
163
165
  }
166
+ }, {
167
+ "method": "stepCompleted",
168
+ "name": "form-step-completed",
169
+ "bubbles": true,
170
+ "cancelable": true,
171
+ "composed": true,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": ""
175
+ },
176
+ "complexType": {
177
+ "original": "BusinessFormStepCompletedEvent",
178
+ "resolved": "BusinessFormStepCompletedEvent",
179
+ "references": {
180
+ "BusinessFormStepCompletedEvent": {
181
+ "location": "import",
182
+ "path": "../../utils/business-form-types",
183
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormStepCompletedEvent"
184
+ }
185
+ }
186
+ }
164
187
  }, {
165
188
  "method": "formLoading",
166
189
  "name": "formLoading",
@@ -41,7 +41,7 @@ export class BusinessRepresentativeFormStep {
41
41
  }
42
42
  }
43
43
  render() {
44
- return (h("justifi-business-representative-form-step-core", { key: '866d8cf33d53eff562dac1d36898b4c5695bf39b', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
44
+ return (h("justifi-business-representative-form-step-core", { key: '934b6204cfe78ffe17b3f975de3eedb64398168d', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
45
45
  }
46
46
  static get is() { return "justifi-business-representative-form-step"; }
47
47
  static get properties() {
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { FormController } from "../../../form/form";
3
- import { BusinessFormStep } from "../../utils/business-form-types";
3
+ import { BusinessFormStep, BusinessFormStepV2 } from "../../utils/business-form-types";
4
4
  import { Business } from "../../../../api/Business";
5
5
  import Api from "../../../../api/Api";
6
6
  import { config } from "../../../../../config";
@@ -97,6 +97,7 @@ export class BusinessDocumentFormStep {
97
97
  }
98
98
  else {
99
99
  this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.documentUpload } });
100
+ this.stepCompleted.emit({ data: response, formStep: BusinessFormStepV2.documentUpload });
100
101
  return true;
101
102
  }
102
103
  };
@@ -110,6 +111,7 @@ export class BusinessDocumentFormStep {
110
111
  try {
111
112
  const docArray = Object.values(this.documentData).flat();
112
113
  if (!docArray.length) {
114
+ this.stepCompleted.emit({ data: null, formStep: BusinessFormStepV2.documentUpload, metadata: 'no data submitted' });
113
115
  return onSuccess();
114
116
  }
115
117
  const documentRecords = docArray.map(docData => this.createDocumentRecord(docData));
@@ -179,7 +181,7 @@ export class BusinessDocumentFormStep {
179
181
  return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
180
182
  }
181
183
  render() {
182
- return (h("form", { key: '38bb9070ca04f773ec092ebb14ce8ad20f33d8cf' }, h("fieldset", { key: '9c736d11200bb9c5a37c1319f3bfb349b7a5e93f' }, h("legend", { key: '92ed2fb864e85e38532af364518c25ef4bd275a5' }, "Document Uploads"), h("p", { key: 'f5803df74a5d0bc4e544c6cc968333f2a3f77385' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '0c696d1bdb614bdacb3cbadeee66c95149efda68' }), this.documentsOnFile, h("div", { key: '7919205dfda677526d810a9fa1507ed8a55eafb8', class: "d-flex flex-column" }, this.formInputs))));
184
+ return (h("form", { key: 'f240b37d159cbf3db19e4256f97ade622e88d41b' }, h("fieldset", { key: '0555c8a1747336af04b470f750343d231cebb7cc' }, h("div", { key: '7c46295e5997aba7f769324d52def17236babe7b', class: "d-flex align-items-center gap-2" }, h("legend", { key: '2a3fe8a3031a1923df6de8752438d595d935d8f6', class: "mb-0" }, "Document Uploads"), h("form-control-tooltip", { key: '6b3f02a801ff53a1c28ee30710980f5e2790ac5c', helpText: "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category." })), h("hr", { key: 'ac1f9e460920d3654f9c079e8c3fc84ccf7369b4', class: "mt-2" }), this.documentsOnFile, h("div", { key: '444b0f875d460d6bdddc9183bc5c797d3828c127', class: "d-flex flex-column" }, this.formInputs))));
183
185
  }
184
186
  static get is() { return "justifi-business-document-upload-form-step"; }
185
187
  static get properties() {
@@ -270,6 +272,27 @@ export class BusinessDocumentFormStep {
270
272
  }
271
273
  }
272
274
  }
275
+ }, {
276
+ "method": "stepCompleted",
277
+ "name": "form-step-completed",
278
+ "bubbles": true,
279
+ "cancelable": true,
280
+ "composed": true,
281
+ "docs": {
282
+ "tags": [],
283
+ "text": ""
284
+ },
285
+ "complexType": {
286
+ "original": "BusinessFormStepCompletedEvent",
287
+ "resolved": "BusinessFormStepCompletedEvent",
288
+ "references": {
289
+ "BusinessFormStepCompletedEvent": {
290
+ "location": "import",
291
+ "path": "../../utils/business-form-types",
292
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormStepCompletedEvent"
293
+ }
294
+ }
295
+ }
273
296
  }, {
274
297
  "method": "formLoading",
275
298
  "name": "formLoading",
@@ -29,7 +29,7 @@ export class BusinessDocumentUploadInputGroup {
29
29
  }
30
30
  render() {
31
31
  const inputsConfig = this.inputConfigs;
32
- return (h("div", { key: '8035b474e298cae43e5ceda5594fd3891902a300', class: "row gy-3" }, inputsConfig.map(config => (h("div", { class: "col-12 col-md-6" }, h("form-control-file", { name: config.name, label: config.label, helpText: config.helpText, documentType: config.documentType, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors[config.name], multiple: true }))))));
32
+ return (h("div", { key: 'e43e94c773b524f5725c75af53db4ceadc0ba172', class: "row gy-3" }, inputsConfig.map(config => (h("div", { class: "col-12 col-md-6" }, h("form-control-file", { name: config.name, label: config.label, helpText: config.helpText, documentType: config.documentType, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors[config.name], multiple: true }))))));
33
33
  }
34
34
  static get is() { return "justifi-business-document-upload-input-group"; }
35
35
  static get properties() {
@@ -1,45 +1,45 @@
1
1
  import { EntityDocumentType } from "../../../../api/Document";
2
2
  const voidedCheck = {
3
- name: 'voided_check',
4
- label: 'Upload Voided Check',
3
+ name: "voided_check",
4
+ label: "Upload Voided Check",
5
5
  documentType: EntityDocumentType.voidedCheck,
6
- helpText: 'Please upload a voided check for the business.'
6
+ helpText: "Voided check or bank statement where the legal entity and account number are clearly visible. The check must match the legal entity registering for this merchant account."
7
7
  };
8
8
  const bankStatements = {
9
- name: 'bank_statement',
10
- label: 'Upload Bank Statements',
9
+ name: "bank_statement",
10
+ label: "Upload Bank Statements",
11
11
  documentType: EntityDocumentType.bankStatement,
12
- helpText: 'Please upload 3 months of bank statements for the business.'
12
+ helpText: "The most recent 3 months of your business’ bank statements. The statements must match the legal entity registering for this merchant account."
13
13
  };
14
14
  const balanceSheet = {
15
- name: 'balance_sheet',
16
- label: 'Upload FYE Balance Sheet',
15
+ name: "balance_sheet",
16
+ label: "Upload FYE Balance Sheets",
17
17
  documentType: EntityDocumentType.balanceSheet,
18
- helpText: 'Please upload the most recent 2 years of balance sheets.'
18
+ helpText: "Please provide the balance sheet that corresponds to the last day of your business' last two fiscal years. For example, 12/31/2022 & 12/31/2023 balance sheets."
19
19
  };
20
20
  const governmentId = {
21
21
  name: 'government_id',
22
- label: 'Upload Government ID',
22
+ label: 'Upload Government ID (optional)',
23
23
  documentType: EntityDocumentType.governmentId,
24
- helpText: 'Please upload a government issued ID for the business owner.'
24
+ helpText: "The ID must include a personal address."
25
25
  };
26
26
  const profitAndLossStatement = {
27
- name: 'profit_and_loss_statement',
28
- label: 'Upload Profit and Loss Statements',
27
+ name: "profit_and_loss_statement",
28
+ label: "Upload FYE Profit and Loss Statements",
29
29
  documentType: EntityDocumentType.profitAndLossStatement,
30
- helpText: 'Please upload the most recent profit and loss statements.'
30
+ helpText: "Fiscal Year End Profit and Loss statements for your business’ last two fiscal years. For example, FYE 2022 and FYE 2023 profit and loss statements."
31
31
  };
32
32
  const ss4 = {
33
33
  name: 'ss4',
34
- label: 'Upload SS4 / Article of Incorporation',
34
+ label: 'Upload SS4 / Article of Incorporation (optional)',
35
35
  documentType: EntityDocumentType.taxReturn,
36
36
  helpText: "Please upload the business's SS4 / Article of Incorporation."
37
37
  };
38
38
  const other = {
39
39
  name: 'other',
40
- label: 'Upload any other documents',
40
+ label: 'Upload any other documents (optional)',
41
41
  documentType: EntityDocumentType.other,
42
- helpText: 'Please upload any other documents that may be relevant to your business.'
42
+ helpText: "Please upload any other documents that may be relevant to your business."
43
43
  };
44
44
  export const inputConfigurations = {
45
45
  voidedCheck,
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
2
2
  import { addressSchema } from "../../schemas/business-address-schema";
3
3
  import { FormController } from "../../../form/form";
4
4
  import { Address } from "../../../../api/Business";
5
+ import { BusinessFormStepV2 } from "../../utils/business-form-types";
5
6
  import StateOptions from "../../../../utils/state-options";
6
7
  import { numberOnlyHandler } from "../../../form/utils";
7
8
  export class LegalAddressFormStepCore {
@@ -42,6 +43,7 @@ export class LegalAddressFormStepCore {
42
43
  },
43
44
  final: () => {
44
45
  this.submitted.emit({ data: { submittedData } });
46
+ this.stepCompleted.emit({ data: submittedData, formStep: BusinessFormStepV2.legalAddress });
45
47
  this.formLoading.emit(false);
46
48
  }
47
49
  });
@@ -76,7 +78,7 @@ export class LegalAddressFormStepCore {
76
78
  render() {
77
79
  var _a, _b, _c, _d, _e, _f;
78
80
  const legalAddressDefaultValue = this.formController.getInitialValues();
79
- return (h("form", { key: '5a95fe5a130deded7e160e6fe4ba1d09e6a6aabc' }, h("fieldset", { key: '2011fac5c860b7beee5eaac28e697b284067f2e6' }, h("legend", { key: 'dbe411d80d10a71bc63f18fcdb58a40b124e8eaf' }, "Business Legal Address"), h("hr", { key: '4a91dd5e67e5770778d2dd59716e1e532d644ee9' }), h("div", { key: 'cd53516a98498ab82ab347a1f7c836be262b9fdb', class: 'row gy-3' }, h("div", { key: '14cd5fee5661681ccff95eabf8cd6f2d4cff2296', class: 'col-12' }, h("form-control-text", { key: 'e4b0a5e30fc1a35e5127a76710211874fb68898b', 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 })), h("div", { key: '2c35da509732e73e2abb4365d6d9e2056d7ce771', class: 'col-12' }, h("form-control-text", { key: 'c8ae2a5c75d0fe8c5ddd46d9150590b8a4f99a5e', name: 'line2', label: 'Address Line 2', 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 })), h("div", { key: '07649ebd5a848eee63398965c30e8e30fcc88354', class: 'col-12' }, h("form-control-text", { key: 'cb25047c3458124f7d837b7948e807214f1a0a0a', 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 })), h("div", { key: 'ce3ddc5f3639503dbc02668aea7139ffff376545', class: 'col-12' }, h("form-control-select", { key: '00d18b4af1f415828b40404888a6c69d0611d0cc', name: 'state', label: 'State', options: 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 })), h("div", { key: '1988bd739af107d9595f6fed897f257da13ac997', class: 'col-12' }, h("form-control-text", { key: '55144c39845d4cc36704170b73458f761f311d00', 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: numberOnlyHandler })), h("div", { key: 'cccba799a75280693f461f390121b13006877f35', class: 'col-12' }, h("form-control-select", { key: 'e49b21a781280fb2e9cc9f6b88ddcc6d7408c5f8', 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,
81
+ return (h("form", { key: '0b6da6f38496eed7699b642e3855a085ee004105' }, h("fieldset", { key: '18e56d0ab1c9dfa6f768d16c9f82ce0c203c8cca' }, h("div", { key: '286505d10fdacddf89663069a3f45837fa3f5434', class: "d-flex align-items-center gap-2" }, h("legend", { key: '1632a05fce65e9df5b14e4e61e4f925644b66afe', class: "mb-0" }, "Legal Address of your Business"), h("form-control-tooltip", { key: '2013d53e29f31b923c5304b1d534e8d6edf248c5', helpText: "No PO Boxes." })), h("hr", { key: '95f1dd6e945af35db3b9c107741125c86298d043', class: "mt-2" }), h("div", { key: '33c940f3eb99c742cd7bc26eb30bf2593beee7e7', class: "row gy-3" }, h("div", { key: 'a70c712478ea1c1535dfb7b121a27f73c250737f', class: "col-12" }, h("form-control-text", { key: 'a2295eff889da276b0e7d3c49c0479f684edeab8', 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 })), h("div", { key: 'b7c7bbeac63558be4bce0b14857321246c54e03e', class: "col-12" }, h("form-control-text", { key: '67fdffdae07317978b9830af28f2a13d13f49cbe', 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 })), h("div", { key: '2fc87bc9415822b9317e680c6e39065e0410088d', class: "col-12" }, h("form-control-text", { key: 'e3b768d6830c8c6746e22affac093c09239b7b1a', 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 })), h("div", { key: 'b7567c4ca4ecece2927ea79cf0872fe907c45b5b', class: "col-12" }, h("form-control-select", { key: '294fe774b7e621707d800fab28a6efc97f7a0aaf', name: "state", label: "State", options: 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 })), h("div", { key: '7dc1741c28d20f006050083bfc371364a3588242', class: "col-12" }, h("form-control-text", { key: '3a38d6a710c5eab2234b40a631b3fbc08f601fea', 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: numberOnlyHandler })), h("div", { key: '8f1a3fab096961e6b0afc09303ee959b263d6677', class: "col-12" }, h("form-control-select", { key: '8f9be74731bafc3377b262779ac6bae0ad374c19', 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,
80
82
  // just for now so we skip handling country specificities
81
83
  disabled: true }))))));
82
84
  }
@@ -171,6 +173,27 @@ export class LegalAddressFormStepCore {
171
173
  }
172
174
  }
173
175
  }
176
+ }, {
177
+ "method": "stepCompleted",
178
+ "name": "form-step-completed",
179
+ "bubbles": true,
180
+ "cancelable": true,
181
+ "composed": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "complexType": {
187
+ "original": "BusinessFormStepCompletedEvent",
188
+ "resolved": "BusinessFormStepCompletedEvent",
189
+ "references": {
190
+ "BusinessFormStepCompletedEvent": {
191
+ "location": "import",
192
+ "path": "../../utils/business-form-types",
193
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormStepCompletedEvent"
194
+ }
195
+ }
196
+ }
174
197
  }, {
175
198
  "method": "formLoading",
176
199
  "name": "formLoading",
@@ -46,7 +46,7 @@ export class LegalAddressFormStep {
46
46
  }
47
47
  }
48
48
  render() {
49
- return (h("justifi-legal-address-form-step-core", { key: '7455b4950e2ca1121004943ad81537c583438738', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
49
+ return (h("justifi-legal-address-form-step-core", { key: '06ac5acac2cc9c167a86448b0e12d885d21361fb', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
50
50
  }
51
51
  static get is() { return "justifi-legal-address-form-step"; }
52
52
  static get properties() {
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { FormController } from "../../../form/form";
3
- import { BusinessFormStep } from "../../utils/business-form-types";
3
+ import { BusinessFormStep, BusinessFormStepV2 } from "../../utils/business-form-types";
4
4
  import { config } from "../../../../../config";
5
5
  import { businessTermsConditionsSchema } from "../../schemas/business-terms-conditions-schema";
6
6
  import { Api } from "../../../../api";
@@ -90,6 +90,7 @@ export class BusinessTermsConditionsFormStep {
90
90
  onSuccess();
91
91
  }
92
92
  this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.termsAndConditions } });
93
+ this.stepCompleted.emit({ data: response, formStep: BusinessFormStepV2.termsAndConditions });
93
94
  }
94
95
  async validateAndSubmit({ onSuccess }) {
95
96
  if (this.acceptedTermsBefore) {
@@ -107,7 +108,7 @@ export class BusinessTermsConditionsFormStep {
107
108
  });
108
109
  }
109
110
  render() {
110
- return (h("form", { key: 'a292e2b1b69d152009000d9e7009e5ab07698bc8' }, h("fieldset", { key: '30843e9ed0029f64abcf076512af82974dd99598' }, h("legend", { key: '6453679a074056668bdd93cb91d2d725b73fb0da' }, "Terms and Conditions"), h("hr", { key: '6a44c1128e3dceb770b16533aa61fb5e81f5dda2' }), h("justifi-business-terms-conditions-text", { key: '714c9f81c1d1f91712a276259acf4eb6734b40d4' }), h("br", { key: '5e955908e53af5ade77fca9f2a47e8a9d10e7ad8' }), h("div", { key: '7c6ca9d2634c7cc6988292ffedf86b64c3865557', class: "row-gy-3" }, h("div", { key: 'e8f01c4bdcc07e0063e3b8f5f1acbabc9b3310f7', class: "col-12" }, h("form-control-checkbox", { key: 'e09eeb02dc30a9461e958bf43685d2c58f4a608f', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
111
+ return (h("form", { key: '3f269771c368a23afd1c7b139b0fce416d18f161' }, h("fieldset", { key: 'a94a5bf100cb5a10b156b8cf94dc85f03cc1f6ae' }, h("legend", { key: 'facb4a29cebd5147fe3c35d336df04546b550d74' }, "Terms and Conditions"), h("hr", { key: '3dafaab7d2d35bf9a00f87da643f6e1efaa7b147' }), h("justifi-business-terms-conditions-text", { key: '60a1370c8b0d817d79130e8607f6d663c4648c78' }), h("br", { key: 'e72e81a34b31a00ebe3a0d01e24dc096df7bc2a9' }), h("div", { key: '676ed858195c1b90a9e4fdc22ba9654ff944dc93', class: "row-gy-3" }, h("div", { key: '20039587eb6144a05078799f6a41feb59f43dbd2', class: "col-12" }, h("form-control-checkbox", { key: 'fc8eaa81e530b55f24e2ec994b97b4c181af94b2', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
111
112
  }
112
113
  static get is() { return "justifi-business-terms-conditions-form-step"; }
113
114
  static get properties() {
@@ -194,6 +195,27 @@ export class BusinessTermsConditionsFormStep {
194
195
  }
195
196
  }
196
197
  }
198
+ }, {
199
+ "method": "stepCompleted",
200
+ "name": "form-step-completed",
201
+ "bubbles": true,
202
+ "cancelable": true,
203
+ "composed": true,
204
+ "docs": {
205
+ "tags": [],
206
+ "text": ""
207
+ },
208
+ "complexType": {
209
+ "original": "BusinessFormStepCompletedEvent",
210
+ "resolved": "BusinessFormStepCompletedEvent",
211
+ "references": {
212
+ "BusinessFormStepCompletedEvent": {
213
+ "location": "import",
214
+ "path": "../../utils/business-form-types",
215
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormStepCompletedEvent"
216
+ }
217
+ }
218
+ }
197
219
  }, {
198
220
  "method": "formLoading",
199
221
  "name": "formLoading",