@justifi/webcomponents 4.9.1 → 4.10.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 (383) hide show
  1. package/dist/cjs/{Business-64dffab7.js → Business-663db337.js} +13 -1
  2. package/dist/cjs/Identity-1c4528b8.js +49 -0
  3. package/dist/cjs/{SubAccount-f8144025.js → SubAccount-05867651.js} +1 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +4 -3
  5. package/dist/cjs/business-additional-questions-schema-cbac27f2.js +26 -0
  6. package/dist/cjs/business-details-core.cjs.entry.js +2 -2
  7. package/dist/cjs/business-form-select-options-7ccd8dca.js +85 -0
  8. package/dist/cjs/business-form-types-3cdd5447.js +19 -0
  9. package/dist/cjs/form-control-datepart_3.cjs.entry.js +68 -78
  10. package/dist/cjs/form-control-monetary.cjs.entry.js +20 -18
  11. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +50 -3
  12. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -3
  13. package/dist/cjs/{index-07ddbad2.js → index-69b9386b.js} +57 -0
  14. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +506 -0
  15. package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_4.cjs.entry.js} +14 -42
  16. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +5 -6
  18. package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +35 -0
  19. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -3
  20. package/dist/cjs/justifi-business-form.cjs.entry.js +18 -15
  21. package/dist/cjs/justifi-business-list.cjs.entry.js +4 -3
  22. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
  24. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -2
  25. package/dist/cjs/justifi-checkout.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  27. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-new-payment-method_3.cjs.entry.js +1 -1
  29. package/dist/cjs/justifi-owner-form.cjs.entry.js +162 -0
  30. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -2
  31. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  32. package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -2
  33. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +89 -0
  35. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  37. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  38. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -2
  39. package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
  40. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +5 -4
  41. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -3
  42. package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
  43. package/dist/cjs/loader.cjs.js +2 -2
  44. package/dist/cjs/payload-parsers-9e72e80f.js +99 -0
  45. package/dist/cjs/payment-details-core.cjs.entry.js +4 -3
  46. package/dist/cjs/payments-list-core.cjs.entry.js +3 -2
  47. package/dist/cjs/payout-details-core.cjs.entry.js +4 -3
  48. package/dist/cjs/payouts-list-core.cjs.entry.js +3 -2
  49. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +4 -3
  50. package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
  51. package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
  52. package/dist/cjs/{utils-5c3e442d.js → utils-23e70ef2.js} +1 -1
  53. package/dist/cjs/{utils-84208d99.js → utils-2b9940e1.js} +25 -0
  54. package/dist/cjs/utils-df5167a8.js +13 -0
  55. package/dist/cjs/webcomponents.cjs.js +2 -2
  56. package/dist/collection/api/Business.js +10 -1
  57. package/dist/collection/api/Identity.js +43 -0
  58. package/dist/collection/collection-manifest.json +15 -8
  59. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  60. package/dist/collection/components/billing-form/billing-form.js +1 -1
  61. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +4 -4
  62. package/dist/collection/components/business-details/owner-details/owner-details.js +2 -2
  63. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -2
  64. package/dist/collection/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.js +1 -1
  65. package/dist/collection/components/{business-form → business-forms/business-form}/business-address/business-address-form.js +4 -4
  66. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +77 -0
  67. package/dist/collection/components/{business-form → business-forms/business-form}/business-form.js +32 -24
  68. package/dist/collection/components/{business-form → business-forms/business-form}/business-owners/business-owners.js +2 -2
  69. package/dist/collection/components/{business-form → business-forms/business-form}/business-representative/business-representative.js +3 -3
  70. package/dist/collection/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.js +1 -1
  71. package/dist/collection/components/business-forms/owner-form/owner-form.css +7779 -0
  72. package/dist/collection/components/business-forms/owner-form/owner-form.js +367 -0
  73. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +219 -0
  74. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/test/business-additional-questions-form-step.spec.js +97 -0
  75. package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.css +2536 -0
  76. package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.js +97 -0
  77. package/dist/collection/components/business-forms/payment-provisioning/business-address/test/business-address-form-step.spec.js +97 -0
  78. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.css +2493 -0
  79. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +239 -0
  80. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/test/business-core-info-form-step.spec.js +97 -0
  81. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.css +7779 -0
  82. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +284 -0
  83. package/dist/collection/components/business-forms/payment-provisioning/business-owners/test/business-owners-form-step.spec.js +97 -0
  84. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.css +2493 -0
  85. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +231 -0
  86. package/dist/collection/components/business-forms/payment-provisioning/business-representative/test/business-representative-form-step.spec.js +97 -0
  87. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.css +2493 -0
  88. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +233 -0
  89. package/dist/collection/components/{business-form/business-form-stepped.css → business-forms/payment-provisioning/payment-provisioning.css} +105 -0
  90. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +199 -0
  91. package/dist/collection/components/business-forms/payment-provisioning/test/payment-provisioning.spec.js +61 -0
  92. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +7 -0
  93. package/dist/collection/components/business-forms/schemas/business-address-schema.js +16 -0
  94. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +13 -0
  95. package/dist/collection/components/business-forms/schemas/business-form-schema.js +6 -0
  96. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +35 -0
  97. package/dist/collection/components/business-forms/schemas/business-owners-schema.js +16 -0
  98. package/dist/collection/components/business-forms/utils/business-form-select-options.js +80 -0
  99. package/dist/collection/components/business-forms/utils/business-form-types.js +17 -0
  100. package/dist/collection/components/business-forms/utils/payload-parsers.js +37 -0
  101. package/dist/collection/components/form/form-control-datepart.js +39 -34
  102. package/dist/collection/components/form/form-control-monetary.js +22 -20
  103. package/dist/collection/components/form/form-control-number.js +1 -0
  104. package/dist/collection/components/form/form-control-select.js +3 -1
  105. package/dist/collection/components/form/form-control-text.js +2 -1
  106. package/dist/collection/components/form/test/form-control-datepart.spec.js +88 -0
  107. package/dist/collection/components/form/test/form-control-monetary.spec.js +69 -0
  108. package/dist/collection/components/form/test/form-control-number.spec.js +77 -0
  109. package/dist/collection/components/form/test/form-control-select.spec.js +84 -0
  110. package/dist/collection/components/form/test/form-control-text.spec.js +104 -0
  111. package/dist/collection/components/form/test/form.spec.js +60 -0
  112. package/dist/collection/components/form/utils.js +1 -0
  113. package/dist/collection/utils/utils.js +21 -0
  114. package/dist/docs.json +1943 -552
  115. package/dist/esm/{Business-9921d35f.js → Business-6cc4e473.js} +12 -2
  116. package/dist/esm/Identity-5f8f916f.js +46 -0
  117. package/dist/esm/{SubAccount-76f6d565.js → SubAccount-61ac70eb.js} +1 -1
  118. package/dist/esm/additional-questions-details_5.entry.js +4 -3
  119. package/dist/esm/business-additional-questions-schema-2cb80f70.js +23 -0
  120. package/dist/esm/business-details-core.entry.js +2 -2
  121. package/dist/esm/business-form-select-options-6b9293fe.js +82 -0
  122. package/dist/esm/business-form-types-de9f38cd.js +19 -0
  123. package/dist/esm/form-control-datepart_3.entry.js +68 -78
  124. package/dist/esm/form-control-monetary.entry.js +20 -18
  125. package/dist/esm/{form-control-select_2.entry.js → form-control-number_3.entry.js} +50 -4
  126. package/dist/esm/gross-payment-chart-core.entry.js +4 -3
  127. package/dist/esm/{index-fb5ca346.js → index-df86d9a2.js} +57 -0
  128. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +498 -0
  129. package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_4.entry.js} +14 -41
  130. package/dist/esm/justifi-bank-account-form.entry.js +1 -1
  131. package/dist/esm/justifi-billing-form_4.entry.js +4 -5
  132. package/dist/esm/justifi-business-address-form-step.entry.js +31 -0
  133. package/dist/esm/justifi-business-details.entry.js +5 -3
  134. package/dist/esm/justifi-business-form.entry.js +17 -14
  135. package/dist/esm/justifi-business-list.entry.js +4 -3
  136. package/dist/esm/justifi-business-owners.entry.js +1 -1
  137. package/dist/esm/justifi-card-form.entry.js +1 -1
  138. package/dist/esm/justifi-checkout-core.entry.js +3 -2
  139. package/dist/esm/justifi-checkout.entry.js +1 -1
  140. package/dist/esm/justifi-details.entry.js +2 -2
  141. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  142. package/dist/esm/justifi-new-payment-method_3.entry.js +1 -1
  143. package/dist/esm/justifi-owner-form.entry.js +158 -0
  144. package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -2
  145. package/dist/esm/justifi-payment-details.entry.js +2 -2
  146. package/dist/esm/justifi-payment-form.entry.js +3 -2
  147. package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
  148. package/dist/esm/justifi-payment-provisioning.entry.js +85 -0
  149. package/dist/esm/justifi-payments-list.entry.js +2 -2
  150. package/dist/esm/justifi-payout-details.entry.js +2 -2
  151. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  152. package/dist/esm/justifi-proceeds-list.entry.js +3 -2
  153. package/dist/esm/justifi-refund-form.entry.js +1 -1
  154. package/dist/esm/justifi-subaccount-details.entry.js +5 -4
  155. package/dist/esm/justifi-subaccounts-list.entry.js +4 -3
  156. package/dist/esm/justifi-table_2.entry.js +1 -1
  157. package/dist/esm/loader.js +3 -3
  158. package/dist/esm/payload-parsers-caea809d.js +91 -0
  159. package/dist/esm/payment-details-core.entry.js +4 -3
  160. package/dist/esm/payments-list-core.entry.js +3 -2
  161. package/dist/esm/payout-details-core.entry.js +4 -3
  162. package/dist/esm/payouts-list-core.entry.js +3 -2
  163. package/dist/esm/subaccount-account-details_4.entry.js +4 -3
  164. package/dist/esm/subaccount-bank-details.entry.js +2 -2
  165. package/dist/esm/subaccount-terms-details.entry.js +2 -2
  166. package/dist/esm/utils-2828201a.js +10 -0
  167. package/dist/esm/{utils-a3e96d9f.js → utils-d01c5f3a.js} +1 -1
  168. package/dist/esm/{utils-5193fcd7.js → utils-d9e90399.js} +23 -1
  169. package/dist/esm/webcomponents.js +3 -3
  170. package/dist/module/Business.js +12 -2
  171. package/dist/module/Identity.js +46 -0
  172. package/dist/module/SubAccount.js +1 -1
  173. package/dist/module/billing-form.js +1 -1
  174. package/dist/module/business-additional-questions-form-step.js +121 -0
  175. package/dist/module/business-additional-questions-schema.js +10 -0
  176. package/dist/module/business-address-form.js +3 -3
  177. package/dist/module/business-address-schema.js +19 -0
  178. package/dist/module/business-core-info-form-step.js +141 -0
  179. package/dist/module/business-core-info-schema.js +16 -0
  180. package/dist/module/business-core-info.js +69 -0
  181. package/dist/module/business-form-select-options.js +82 -0
  182. package/dist/module/business-form-types.js +19 -0
  183. package/dist/module/business-identity-schema.js +38 -0
  184. package/dist/{webcomponents/p-f64a85cf.entry.js → module/business-owners-form-step.js} +214 -1
  185. package/dist/module/business-representative-form-step.js +158 -0
  186. package/dist/module/business-representative.js +1 -1
  187. package/dist/module/checkout-core.js +1 -1
  188. package/dist/module/form-control-datepart2.js +37 -33
  189. package/dist/module/form-control-monetary2.js +20 -18
  190. package/dist/module/form-control-number2.js +1 -0
  191. package/dist/module/form-control-select2.js +3 -1
  192. package/dist/module/form-control-text2.js +2 -1
  193. package/dist/module/justifi-additional-questions-form-step.d.ts +11 -0
  194. package/dist/module/justifi-additional-questions-form-step.js +6 -0
  195. package/dist/module/justifi-business-address-form-step.d.ts +11 -0
  196. package/dist/module/justifi-business-address-form-step.js +75 -0
  197. package/dist/module/justifi-business-core-info-form-step.d.ts +11 -0
  198. package/dist/module/justifi-business-core-info-form-step.js +6 -0
  199. package/dist/module/justifi-business-core-info.d.ts +11 -0
  200. package/dist/module/justifi-business-core-info.js +6 -0
  201. package/dist/module/justifi-business-form.js +19 -14
  202. package/dist/module/justifi-business-list.js +1 -1
  203. package/dist/module/justifi-business-owners-form-step.d.ts +11 -0
  204. package/dist/module/justifi-business-owners-form-step.js +6 -0
  205. package/dist/module/justifi-business-representative-form-step.d.ts +11 -0
  206. package/dist/module/justifi-business-representative-form-step.js +6 -0
  207. package/dist/module/justifi-legal-address-form-step.d.ts +11 -0
  208. package/dist/module/justifi-legal-address-form-step.js +6 -0
  209. package/dist/module/justifi-owner-form.d.ts +11 -0
  210. package/dist/module/justifi-owner-form.js +6 -0
  211. package/dist/module/justifi-payment-balance-transactions.js +1 -1
  212. package/dist/module/justifi-payment-provisioning.d.ts +11 -0
  213. package/dist/module/justifi-payment-provisioning.js +190 -0
  214. package/dist/module/justifi-proceeds-list.js +1 -1
  215. package/dist/module/justifi-subaccount-details.js +1 -1
  216. package/dist/module/justifi-subaccounts-list.js +1 -1
  217. package/dist/module/legal-address-form-step.js +137 -0
  218. package/dist/module/owner-form.js +222 -0
  219. package/dist/module/payload-parsers.js +39 -0
  220. package/dist/module/payment-details-core2.js +1 -1
  221. package/dist/module/payment-method-form.js +1 -1
  222. package/dist/module/payments-list-core2.js +1 -1
  223. package/dist/module/payout-details-core2.js +1 -1
  224. package/dist/module/payouts-list-core2.js +1 -1
  225. package/dist/module/subaccount-merchant-details2.js +1 -1
  226. package/dist/module/utils2.js +23 -1
  227. package/dist/module/utils4.js +10 -0
  228. package/dist/types/api/Business.d.ts +11 -21
  229. package/dist/types/api/Identity.d.ts +60 -0
  230. package/dist/types/components/billing-form/billing-form-schema.d.ts +0 -1
  231. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
  232. package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
  233. package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
  234. package/dist/types/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.d.ts +1 -1
  235. package/dist/types/components/{business-form → business-forms/business-form}/business-address/business-address-form.d.ts +1 -1
  236. package/dist/types/components/{business-form/business-generic-info/business-generic-info.d.ts → business-forms/business-form/business-core-info/business-core-info.d.ts} +5 -5
  237. package/dist/types/components/{business-form → business-forms/business-form}/business-form.d.ts +5 -10
  238. package/dist/types/components/{business-form → business-forms/business-form}/business-owners/business-owners.d.ts +1 -1
  239. package/dist/types/components/{business-form → business-forms/business-form}/business-representative/business-representative.d.ts +1 -1
  240. package/dist/types/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.d.ts +2 -2
  241. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +36 -0
  242. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +31 -0
  243. package/dist/types/components/business-forms/payment-provisioning/business-address/business-address-form-step.d.ts +9 -0
  244. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +36 -0
  245. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +36 -0
  246. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +27 -0
  247. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +31 -0
  248. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +45 -0
  249. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +11 -0
  250. package/dist/types/components/{business-form/business-address/business-address-form-schema.d.ts → business-forms/schemas/business-address-schema.d.ts} +11 -8
  251. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +19 -0
  252. package/dist/types/components/{business-form → business-forms/schemas}/business-form-schema.d.ts +2 -26
  253. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +59 -0
  254. package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +33 -0
  255. package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +11 -0
  256. package/dist/types/components/business-forms/utils/business-form-types.d.ts +39 -0
  257. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +4 -0
  258. package/dist/types/components/form/form-control-datepart.d.ts +2 -1
  259. package/dist/types/components/form/form-control-monetary.d.ts +2 -1
  260. package/dist/types/components/form/form.d.ts +1 -1
  261. package/dist/types/components/form/utils.d.ts +1 -0
  262. package/dist/types/components.d.ts +463 -113
  263. package/dist/types/utils/utils.d.ts +3 -0
  264. package/dist/webcomponents/p-03b1d0d5.entry.js +1 -0
  265. package/dist/webcomponents/{p-adc96df1.entry.js → p-07b326d0.entry.js} +1 -1
  266. package/dist/webcomponents/p-0e189d6a.entry.js +1 -0
  267. package/dist/webcomponents/p-16dcf053.entry.js +1 -0
  268. package/dist/webcomponents/p-17d72f4a.js +1 -0
  269. package/dist/webcomponents/{p-97c42345.entry.js → p-1bfadb9f.entry.js} +1 -1
  270. package/dist/webcomponents/p-221b9504.entry.js +1 -0
  271. package/dist/webcomponents/p-2df32b4a.entry.js +1 -0
  272. package/dist/webcomponents/{p-baafa7f5.js → p-34352d04.js} +1 -1
  273. package/dist/webcomponents/p-38ba2848.entry.js +1 -0
  274. package/dist/webcomponents/p-3d4aaa4a.entry.js +1 -0
  275. package/dist/webcomponents/p-41870765.entry.js +1 -0
  276. package/dist/webcomponents/p-461f42b8.entry.js +1 -0
  277. package/dist/webcomponents/p-48c2400e.js +1 -0
  278. package/dist/webcomponents/p-491ca87f.js +1 -0
  279. package/dist/webcomponents/{p-dc05b5c5.entry.js → p-4d50d08a.entry.js} +1 -1
  280. package/dist/webcomponents/{p-09b94d22.entry.js → p-4df6174c.entry.js} +1 -1
  281. package/dist/webcomponents/{p-c032b216.entry.js → p-5be4e217.entry.js} +1 -1
  282. package/dist/webcomponents/p-60714f2a.entry.js +1 -0
  283. package/dist/webcomponents/p-60b2344a.js +1 -0
  284. package/dist/webcomponents/{p-9e3771b7.entry.js → p-65500b31.entry.js} +1 -1
  285. package/dist/webcomponents/p-688bb5da.js +2 -0
  286. package/dist/webcomponents/{p-92a55427.entry.js → p-6b51cf97.entry.js} +1 -1
  287. package/dist/webcomponents/p-6d39b8bc.entry.js +1 -0
  288. package/dist/webcomponents/p-7ec301b5.entry.js +1 -0
  289. package/dist/webcomponents/p-817211f2.entry.js +1 -0
  290. package/dist/webcomponents/{p-bb037696.js → p-8482c23f.js} +1 -1
  291. package/dist/webcomponents/p-9207ccb2.entry.js +1 -0
  292. package/dist/webcomponents/p-975ab96e.js +1 -0
  293. package/dist/webcomponents/p-9e4b81ad.entry.js +1 -0
  294. package/dist/webcomponents/p-a141c531.js +1 -0
  295. package/dist/webcomponents/{p-e536a4c1.entry.js → p-a2dbe90f.entry.js} +1 -1
  296. package/dist/webcomponents/p-a4122c35.entry.js +1 -0
  297. package/dist/webcomponents/{p-591e29bf.entry.js → p-a46174e0.entry.js} +1 -1
  298. package/dist/webcomponents/{p-1cbdca15.entry.js → p-a68519e5.entry.js} +1 -1
  299. package/dist/webcomponents/p-af8363a1.entry.js +1 -0
  300. package/dist/webcomponents/{p-bb7f6095.entry.js → p-b1bc23af.entry.js} +1 -1
  301. package/dist/webcomponents/p-b37d6888.entry.js +1 -0
  302. package/dist/webcomponents/p-b5a3bf86.entry.js +1 -0
  303. package/dist/webcomponents/{p-7cd06ada.entry.js → p-b68f1dd9.entry.js} +1 -1
  304. package/dist/webcomponents/p-b8f22856.js +1 -0
  305. package/dist/webcomponents/p-cb8f9cb8.entry.js +1 -0
  306. package/dist/webcomponents/p-d0761829.entry.js +1 -0
  307. package/dist/webcomponents/{p-c2c3d5d1.entry.js → p-da34bba7.entry.js} +1 -1
  308. package/dist/webcomponents/p-dbe32e75.entry.js +1 -0
  309. package/dist/webcomponents/p-e0c1cba8.js +1 -0
  310. package/dist/webcomponents/{p-99a8b7d0.entry.js → p-e924f2e1.entry.js} +1 -1
  311. package/dist/webcomponents/p-ea03b424.entry.js +1 -0
  312. package/dist/webcomponents/{p-9c310f5c.entry.js → p-ebf7c70f.entry.js} +1 -1
  313. package/dist/webcomponents/p-ec230480.entry.js +1 -0
  314. package/dist/webcomponents/p-eed5f4ad.entry.js +1 -0
  315. package/dist/webcomponents/{p-9a63eec9.entry.js → p-fb49ef28.entry.js} +1 -1
  316. package/dist/webcomponents/{p-41490d96.entry.js → p-fe8a94c1.entry.js} +1 -1
  317. package/dist/webcomponents/webcomponents.esm.js +1 -1
  318. package/package.json +1 -1
  319. package/dist/cjs/BusinessFormEventTypes-62990815.js +0 -42
  320. package/dist/cjs/business-form-schema-37e5381d.js +0 -148
  321. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +0 -143
  322. package/dist/collection/components/business-form/BusinessFormEventTypes.js +0 -6
  323. package/dist/collection/components/business-form/business-address/business-address-form-schema.js +0 -13
  324. package/dist/collection/components/business-form/business-form-schema.js +0 -159
  325. package/dist/collection/components/business-form/business-form-stepped.js +0 -260
  326. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +0 -77
  327. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +0 -1
  328. package/dist/collection/components/business-form/helpers.js +0 -23
  329. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +0 -10
  330. package/dist/esm/BusinessFormEventTypes-182e20be.js +0 -39
  331. package/dist/esm/business-form-schema-f8f554d1.js +0 -144
  332. package/dist/esm/justifi-business-form-stepped.entry.js +0 -139
  333. package/dist/module/BusinessFormEventTypes.js +0 -39
  334. package/dist/module/business-generic-info.js +0 -210
  335. package/dist/module/justifi-business-form-stepped.d.ts +0 -11
  336. package/dist/module/justifi-business-form-stepped.js +0 -231
  337. package/dist/module/justifi-business-generic-info.d.ts +0 -11
  338. package/dist/module/justifi-business-generic-info.js +0 -6
  339. package/dist/types/components/business-form/BusinessFormEventTypes.d.ts +0 -5
  340. package/dist/types/components/business-form/business-form-stepped.d.ts +0 -48
  341. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +0 -17
  342. package/dist/types/components/business-form/helpers.d.ts +0 -1
  343. package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +0 -17
  344. package/dist/webcomponents/p-018b71f5.entry.js +0 -1
  345. package/dist/webcomponents/p-1b04d091.entry.js +0 -1
  346. package/dist/webcomponents/p-1bac1674.entry.js +0 -1
  347. package/dist/webcomponents/p-2f0653f4.entry.js +0 -1
  348. package/dist/webcomponents/p-3134ab82.entry.js +0 -1
  349. package/dist/webcomponents/p-34f9fe6b.js +0 -1
  350. package/dist/webcomponents/p-3bae0ed3.entry.js +0 -1
  351. package/dist/webcomponents/p-41031759.entry.js +0 -1
  352. package/dist/webcomponents/p-4ed3a9f5.entry.js +0 -1
  353. package/dist/webcomponents/p-4edd9721.js +0 -1
  354. package/dist/webcomponents/p-51b0bf2a.entry.js +0 -1
  355. package/dist/webcomponents/p-531844f6.entry.js +0 -1
  356. package/dist/webcomponents/p-5d5d7550.entry.js +0 -1
  357. package/dist/webcomponents/p-5ea274b8.js +0 -1
  358. package/dist/webcomponents/p-5f785ede.entry.js +0 -1
  359. package/dist/webcomponents/p-6d05174c.js +0 -2
  360. package/dist/webcomponents/p-72d1ad98.entry.js +0 -1
  361. package/dist/webcomponents/p-796cf44f.entry.js +0 -1
  362. package/dist/webcomponents/p-8f895ec3.entry.js +0 -1
  363. package/dist/webcomponents/p-a81229a5.entry.js +0 -1
  364. package/dist/webcomponents/p-b8a8b551.js +0 -1
  365. package/dist/webcomponents/p-babd292f.entry.js +0 -1
  366. package/dist/webcomponents/p-c8d51336.entry.js +0 -1
  367. package/dist/webcomponents/p-e6939585.entry.js +0 -1
  368. package/dist/webcomponents/p-ec358d69.entry.js +0 -1
  369. package/dist/webcomponents/p-f55ac955.entry.js +0 -1
  370. /package/dist/cjs/{state-options-96d05a98.js → state-options-4fbcb48a.js} +0 -0
  371. /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/business-address-form.css +0 -0
  372. /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.e2e.js +0 -0
  373. /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.spec.js +0 -0
  374. /package/dist/collection/components/{business-form/business-generic-info/business-generic-info.css → business-forms/business-form/business-core-info/business-core-info.css} +0 -0
  375. /package/dist/collection/components/{business-form → business-forms/business-form}/business-form.css +0 -0
  376. /package/dist/collection/components/{business-form → business-forms/business-form}/business-owners/business-owners.css +0 -0
  377. /package/dist/collection/components/{business-form → business-forms/business-form}/business-representative/business-representative.css +0 -0
  378. /package/dist/collection/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.css +0 -0
  379. /package/dist/collection/components/{business-form → business-forms/business-form}/test/business-form.spec.js +0 -0
  380. /package/dist/collection/{components/billing-form → utils}/state-options.js +0 -0
  381. /package/dist/esm/{state-options-fc1daf67.js → state-options-a356fb11.js} +0 -0
  382. /package/dist/types/{components/billing-form → utils}/state-options.d.ts +0 -0
  383. /package/dist/webcomponents/{p-8e2a88a8.js → p-6078a370.js} +0 -0
@@ -42,8 +42,8 @@ export class JustifiRepresentativeDetails {
42
42
  "references": {
43
43
  "Identity": {
44
44
  "location": "import",
45
- "path": "../../../api/Business",
46
- "id": "src/api/Business.ts::Identity"
45
+ "path": "../../../api/Identity",
46
+ "id": "src/api/Identity.ts::Identity"
47
47
  }
48
48
  }
49
49
  },
@@ -35,7 +35,7 @@ export class AdditionalQuestions {
35
35
  "references": {
36
36
  "FormController": {
37
37
  "location": "import",
38
- "path": "../../form/form",
38
+ "path": "../../../form/form",
39
39
  "id": "src/components/form/form.ts::FormController"
40
40
  }
41
41
  }
@@ -1,14 +1,14 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import StateOptions from "../../billing-form/state-options";
2
+ import StateOptions from "../../../../utils/state-options";
3
3
  export class BusinessAddressForm {
4
4
  constructor() {
5
- this.onFormUpdate = undefined;
5
+ this.handleFormUpdate = undefined;
6
6
  this.errors = undefined;
7
7
  this.defaultValues = undefined;
8
8
  this.address = {};
9
9
  }
10
10
  handleAddressChange(newValues) {
11
- this.onFormUpdate(newValues);
11
+ this.handleFormUpdate(newValues);
12
12
  }
13
13
  inputHandler(name, value) {
14
14
  this.address[name] = value;
@@ -32,7 +32,7 @@ export class BusinessAddressForm {
32
32
  }
33
33
  static get properties() {
34
34
  return {
35
- "onFormUpdate": {
35
+ "handleFormUpdate": {
36
36
  "type": "unknown",
37
37
  "mutable": false,
38
38
  "complexType": {
@@ -0,0 +1,77 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { BusinessTypeOptions, BusinessStructureOptions } from "../../utils/business-form-select-options";
3
+ import { PHONE_MASKS, TAX_ID_MASKS } from "../../../../utils/form-input-masks";
4
+ import { CoreBusinessInfo } from "../../../../api/Business";
5
+ /**
6
+ *
7
+ * The difference between this component and business-core-info-details
8
+ * is that this component is meant to be a form and send data
9
+ * and the other one is meant to be just read only.
10
+ *
11
+ * @exportedPart label: Label for inputs
12
+ * @exportedPart input: The input fields
13
+ * @exportedPart input-invalid: Invalid state for inputfs
14
+ */
15
+ export class BusinessCoreInfo {
16
+ constructor() {
17
+ this.formController = undefined;
18
+ this.errors = {};
19
+ this.coreInfo = {};
20
+ this.inputHandler = this.inputHandler.bind(this);
21
+ }
22
+ componentDidLoad() {
23
+ this.formController.values.subscribe(values => (this.coreInfo = Object.assign({}, new CoreBusinessInfo(values))));
24
+ this.formController.errors.subscribe(errors => {
25
+ this.errors = Object.assign({}, errors);
26
+ });
27
+ }
28
+ inputHandler(name, value) {
29
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
30
+ }
31
+ render() {
32
+ const coreInfoDefaultValue = this.formController.getInitialValues();
33
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_structure", label: "Business Structure", options: BusinessStructureOptions, defaultValue: coreInfoDefaultValue.business_structure, error: this.errors.business_structure, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
34
+ }
35
+ static get is() { return "justifi-business-core-info"; }
36
+ static get originalStyleUrls() {
37
+ return {
38
+ "$": ["business-core-info.scss"]
39
+ };
40
+ }
41
+ static get styleUrls() {
42
+ return {
43
+ "$": ["business-core-info.css"]
44
+ };
45
+ }
46
+ static get properties() {
47
+ return {
48
+ "formController": {
49
+ "type": "unknown",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "FormController",
53
+ "resolved": "FormController",
54
+ "references": {
55
+ "FormController": {
56
+ "location": "import",
57
+ "path": "../../../form/form",
58
+ "id": "src/components/form/form.ts::FormController"
59
+ }
60
+ }
61
+ },
62
+ "required": false,
63
+ "optional": false,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": ""
67
+ }
68
+ }
69
+ };
70
+ }
71
+ static get states() {
72
+ return {
73
+ "errors": {},
74
+ "coreInfo": {}
75
+ };
76
+ }
77
+ }
@@ -1,12 +1,12 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { FormController } from "../form/form";
3
- import businessFormSchema from "./business-form-schema";
4
- import { Api } from "../../api";
5
- import { parseForPatching } from "./helpers";
6
- import { config } from "../../../config";
7
- import { FormAlert } from "../form/utils";
8
- import { ClickEvents } from "./BusinessFormEventTypes";
9
- import { Business } from "../../api/Business";
2
+ import { FormController } from "../../form/form";
3
+ import { businessFormSchema } from "../schemas/business-form-schema";
4
+ import { Api } from "../../../api";
5
+ import { parseBusiness } from "../utils/payload-parsers";
6
+ import { config } from "../../../../config";
7
+ import { FormAlert } from "../../form/utils";
8
+ import { BusinessFormClickActions, BusinessFormServerErrors } from "../utils/business-form-types";
9
+ import { Business } from "../../../api/Business";
10
10
  /**
11
11
  * @exportedPart label: Label for inputs
12
12
  * @exportedPart input: The input fields
@@ -17,7 +17,7 @@ export class BusinessForm {
17
17
  return this.isLoading;
18
18
  }
19
19
  get showErrors() {
20
- return this.serverError && !this.hideErrors;
20
+ return this.errorMessage && !this.hideErrors;
21
21
  }
22
22
  get businessEndpoint() {
23
23
  return `entities/business/${this.businessId}`;
@@ -27,8 +27,7 @@ export class BusinessForm {
27
27
  this.businessId = undefined;
28
28
  this.hideErrors = false;
29
29
  this.isLoading = false;
30
- this.serverError = false;
31
- this.errorMessage = '';
30
+ this.errorMessage = undefined;
32
31
  this.sendData = this.sendData.bind(this);
33
32
  this.fetchData = this.fetchData.bind(this);
34
33
  this.validateAndSubmit = this.validateAndSubmit.bind(this);
@@ -49,13 +48,12 @@ export class BusinessForm {
49
48
  try {
50
49
  const values = this.formController.values.getValue();
51
50
  const initialValues = this.formController.getInitialValues();
52
- const payload = parseForPatching(values, initialValues);
51
+ const payload = parseBusiness(values, initialValues);
53
52
  const response = await this.api.patch(this.businessEndpoint, JSON.stringify(payload));
54
53
  this.submitted.emit({ data: response });
55
54
  }
56
55
  catch (error) {
57
- this.serverError = true;
58
- this.errorMessage = error.message;
56
+ this.errorMessage = BusinessFormServerErrors.patchData;
59
57
  }
60
58
  finally {
61
59
  this.isLoading = false;
@@ -69,8 +67,7 @@ export class BusinessForm {
69
67
  this.formController.setInitialValues(Object.assign({}, business));
70
68
  }
71
69
  catch (error) {
72
- this.serverError = true;
73
- this.errorMessage = `Error fetching data: ${error.message}`;
70
+ this.errorMessage = BusinessFormServerErrors.fetchData;
74
71
  }
75
72
  finally {
76
73
  this.isLoading = false;
@@ -81,7 +78,7 @@ export class BusinessForm {
81
78
  this.formController.validateAndSubmit(this.sendData);
82
79
  }
83
80
  render() {
84
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("div", { class: "row gap-3" }, h("div", { class: "col-12 mb-4" }, h("h1", null, "Business Information")), this.showErrors && FormAlert(this.errorMessage), h("div", { class: "col-12 mb-4" }, h("justifi-business-generic-info", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-legal-address-form", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-additional-questions", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-business-representative", { formController: this.formController })), h("div", { class: "col-12 d-flex flex-row-reverse" }, h("button", { type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.clickEvent.emit({ name: ClickEvents.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
81
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("div", { class: "row gap-3" }, h("div", { class: "col-12 mb-4" }, h("h1", null, "Business Information")), this.showErrors && FormAlert(this.errorMessage), h("div", { class: "col-12 mb-4" }, h("justifi-business-core-info", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-legal-address-form", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-additional-questions", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-business-representative", { formController: this.formController })), h("div", { class: "col-12 d-flex flex-row-reverse" }, h("button", { type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.clickEvent.emit({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
85
82
  }
86
83
  static get is() { return "justifi-business-form"; }
87
84
  static get originalStyleUrls() {
@@ -153,7 +150,6 @@ export class BusinessForm {
153
150
  static get states() {
154
151
  return {
155
152
  "isLoading": {},
156
- "serverError": {},
157
153
  "errorMessage": {}
158
154
  };
159
155
  }
@@ -169,9 +165,15 @@ export class BusinessForm {
169
165
  "text": ""
170
166
  },
171
167
  "complexType": {
172
- "original": "{ data?: any, name: string }",
173
- "resolved": "{ data?: any; name: string; }",
174
- "references": {}
168
+ "original": "BusinessFormClickEvent",
169
+ "resolved": "BusinessFormClickEvent",
170
+ "references": {
171
+ "BusinessFormClickEvent": {
172
+ "location": "import",
173
+ "path": "../utils/business-form-types",
174
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormClickEvent"
175
+ }
176
+ }
175
177
  }
176
178
  }, {
177
179
  "method": "submitted",
@@ -184,9 +186,15 @@ export class BusinessForm {
184
186
  "text": ""
185
187
  },
186
188
  "complexType": {
187
- "original": "{ data: any }",
188
- "resolved": "{ data: any; }",
189
- "references": {}
189
+ "original": "BusinessFormSubmitEvent",
190
+ "resolved": "BusinessFormSubmitEvent",
191
+ "references": {
192
+ "BusinessFormSubmitEvent": {
193
+ "location": "import",
194
+ "path": "../utils/business-form-types",
195
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormSubmitEvent"
196
+ }
197
+ }
190
198
  }
191
199
  }];
192
200
  }
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { PHONE_MASKS } from "../../../utils/form-input-masks";
2
+ import { PHONE_MASKS } from "../../../../utils/form-input-masks";
3
3
  class BusinessOwner {
4
4
  constructor() {
5
5
  this.name = '';
@@ -91,7 +91,7 @@ export class BusinessOwners {
91
91
  "references": {
92
92
  "FormController": {
93
93
  "location": "import",
94
- "path": "../../form/form",
94
+ "path": "../../../form/form",
95
95
  "id": "src/components/form/form.ts::FormController"
96
96
  }
97
97
  }
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { PHONE_MASKS } from "../../../utils/form-input-masks";
2
+ import { PHONE_MASKS } from "../../../../utils/form-input-masks";
3
3
  export class BusinessRepresentative {
4
4
  constructor() {
5
5
  this.formController = undefined;
@@ -23,7 +23,7 @@ export class BusinessRepresentative {
23
23
  return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-select", { name: "title", label: "Prefix", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, options: [
24
24
  { label: 'Select Prefix', value: '' },
25
25
  { label: 'Mrs.', value: 'Mrs.' },
26
- ], error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12" }, h("label", { part: "label", class: "form-label" }, "Birth Date")), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_day", label: "Day", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_day, error: this.errors.dob_day, inputHandler: this.inputHandler, type: "day" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_month", label: "Month", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_month, error: this.errors.dob_month, inputHandler: this.inputHandler, type: "month" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_year", label: "Year", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_year, error: this.errors.dob_year, inputHandler: this.inputHandler, type: "year" })), h("div", { class: "col-12" }, h("form-control-number", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("justifi-business-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, onFormUpdate: values => this.onAddressFormUpdate(values) }))))));
26
+ ], error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12" }, h("label", { part: "label", class: "form-label" }, "Birth Date")), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_day", label: "Day", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_day, error: this.errors.dob_day, inputHandler: this.inputHandler, type: "day" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_month", label: "Month", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_month, error: this.errors.dob_month, inputHandler: this.inputHandler, type: "month" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_year", label: "Year", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_year, error: this.errors.dob_year, inputHandler: this.inputHandler, type: "year" })), h("div", { class: "col-12" }, h("form-control-number", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("justifi-business-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: values => this.onAddressFormUpdate(values) }))))));
27
27
  }
28
28
  static get is() { return "justifi-business-representative"; }
29
29
  static get originalStyleUrls() {
@@ -47,7 +47,7 @@ export class BusinessRepresentative {
47
47
  "references": {
48
48
  "FormController": {
49
49
  "location": "import",
50
- "path": "../../form/form",
50
+ "path": "../../../form/form",
51
51
  "id": "src/components/form/form.ts::FormController"
52
52
  }
53
53
  }
@@ -47,7 +47,7 @@ export class LegalAddressForm {
47
47
  "references": {
48
48
  "FormController": {
49
49
  "location": "import",
50
- "path": "../../form/form",
50
+ "path": "../../../form/form",
51
51
  "id": "src/components/form/form.ts::FormController"
52
52
  }
53
53
  }