@justifi/webcomponents 4.17.0 → 4.19.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 (611) hide show
  1. package/dist/cjs/{Analytics-80336968.js → Analytics-ff013cbc.js} +1 -1
  2. package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +13 -13
  4. package/dist/cjs/business-details-core.cjs.entry.js +6 -9
  5. package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
  6. package/dist/cjs/business.service-f63650f5.js +32 -0
  7. package/dist/cjs/button-3f400a66.js +26 -0
  8. package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
  9. package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +437 -172
  10. package/dist/cjs/form-control-date_3.cjs.entry.js +15 -9
  11. package/dist/cjs/form-control-error-text_4.cjs.entry.js +3 -3
  12. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  13. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  14. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  15. package/dist/cjs/get-payout-csv-f3aee6d0.js +48 -0
  16. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  17. package/dist/cjs/{index-b4498996.js → index-fb499e95.js} +15 -3
  18. package/dist/cjs/input-handlers-cff032bb.js +20 -0
  19. package/dist/cjs/{insurance-state-3f044af7.js → insurance-state-80e24caf.js} +1 -1
  20. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +197 -482
  21. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -4
  22. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +6 -5
  23. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
  24. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
  25. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
  26. package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
  27. package/dist/cjs/justifi-checkout-core.cjs.entry.js +14 -9
  28. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
  29. package/dist/cjs/justifi-details.cjs.entry.js +4 -7
  30. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  31. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +12 -9
  32. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
  33. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
  34. package/dist/cjs/justifi-payment-form.cjs.entry.js +11 -11
  35. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +5 -5
  36. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +4 -4
  37. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +9 -8
  38. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -65
  39. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  40. package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -11
  41. package/dist/cjs/justifi-payouts-list.cjs.entry.js +16 -13
  42. package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
  43. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +14 -9
  44. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -4
  45. package/dist/cjs/loader.cjs.js +2 -2
  46. package/dist/cjs/{package-7b63c02b.js → package-cb0f8cb1.js} +1 -1
  47. package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
  48. package/dist/cjs/{payload-parsers-78445405.js → payload-parsers-1cbc3b57.js} +2 -0
  49. package/dist/cjs/payment-details-core.cjs.entry.js +11 -14
  50. package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
  51. package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
  52. package/dist/cjs/payments-list-core.cjs.entry.js +73 -44
  53. package/dist/cjs/payout-details-core.cjs.entry.js +19 -8
  54. package/dist/cjs/payouts-list-core.cjs.entry.js +96 -59
  55. package/dist/cjs/skeleton-748c5dde.js +43 -0
  56. package/dist/cjs/styled-host-cc053016.js +14 -0
  57. package/dist/cjs/table-loading-state-8b406852.js +38 -0
  58. package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
  59. package/dist/cjs/{utils-0c3168ef.js → utils-c1d2e426.js} +1 -1
  60. package/dist/cjs/{utils-742da2e3.js → utils-ddacfc44.js} +0 -5
  61. package/dist/cjs/webcomponents.cjs.js +2 -2
  62. package/dist/collection/api/Payment.js +0 -20
  63. package/dist/collection/api/services/business.service.js +18 -0
  64. package/dist/collection/api/services/payout.service.js +5 -0
  65. package/dist/collection/assets/download-icon.js +2 -0
  66. package/dist/collection/collection-manifest.json +9 -14
  67. package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
  68. package/dist/collection/components/billing-form/billing-form.css +2 -8162
  69. package/dist/collection/components/billing-form/billing-form.js +4 -3
  70. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -3
  71. package/dist/collection/components/business-details/business-details-core.js +5 -14
  72. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -3
  73. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +2 -3
  74. package/dist/collection/components/business-details/owner-details/owner-details.js +2 -3
  75. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
  76. package/dist/collection/components/business-details/shared-business-details.css +3 -0
  77. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  78. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  79. package/dist/collection/components/business-forms/business-form/business-form.css +5 -8768
  80. package/dist/collection/components/business-forms/business-form/business-form.js +4 -3
  81. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  82. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  83. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  84. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
  85. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
  86. package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
  87. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
  88. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
  89. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
  90. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
  91. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
  92. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
  93. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
  94. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
  95. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
  96. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
  97. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
  98. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
  99. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
  101. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
  102. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
  103. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +19 -8
  104. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
  105. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
  106. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -12
  107. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  108. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +5 -763
  109. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -2
  110. package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
  111. package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
  112. package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
  113. package/dist/collection/components/card-form/card-form.js +1 -1
  114. package/dist/collection/components/checkout/checkout-core.css +3 -8147
  115. package/dist/collection/components/checkout/checkout-core.js +7 -7
  116. package/dist/collection/components/checkout/checkout.js +2 -2
  117. package/dist/collection/components/checkout/form-check-input.css +20 -0
  118. package/dist/collection/components/checkout/header.css +4 -0
  119. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  120. package/dist/collection/components/checkout/payment-method-options.css +1 -7088
  121. package/dist/collection/components/checkout/payment-method-options.js +4 -4
  122. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  123. package/dist/collection/components/checkout/saved-payment-method.js +2 -2
  124. package/dist/collection/components/checkout/sezzle-payment-method.js +2 -2
  125. package/dist/collection/components/details/details.js +3 -12
  126. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  127. package/dist/collection/components/form/form-control-date.js +1 -1
  128. package/dist/collection/components/form/form-control-file.js +1 -1
  129. package/dist/collection/components/form/form-control-monetary.js +1 -1
  130. package/dist/collection/components/form/form-control-number-masked.js +11 -5
  131. package/dist/collection/components/form/form-control-number.js +1 -1
  132. package/dist/collection/components/form/form-control-select.js +1 -1
  133. package/dist/collection/components/form/form-control-text.js +1 -1
  134. package/dist/collection/components/form/utils.js +0 -2
  135. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  136. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +1 -573
  137. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +6 -8183
  138. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +6 -7
  139. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -2
  140. package/dist/collection/components/pagination-menu/pagination-menu.js +3 -14
  141. package/dist/collection/components/payment-details/payment-details-core.js +9 -18
  142. package/dist/collection/components/payment-form/payment-form.css +3 -2513
  143. package/dist/collection/components/payment-form/payment-form.js +6 -7
  144. package/dist/collection/components/payment-form/payment-method-selector.css +5 -1881
  145. package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
  146. package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
  147. package/dist/collection/components/payments-list/payments-list-core.js +70 -48
  148. package/dist/collection/components/payments-list/payments-list.js +3 -0
  149. package/dist/collection/components/payout-details/get-payout-csv.js +19 -0
  150. package/dist/collection/components/payout-details/payout-details-core.js +37 -12
  151. package/dist/collection/components/payout-details/payout-details.js +11 -4
  152. package/dist/collection/components/payouts-list/payouts-list-core.js +111 -65
  153. package/dist/collection/components/payouts-list/payouts-list.js +14 -6
  154. package/dist/collection/components/refund-form/refund-form.css +1 -7737
  155. package/dist/collection/components/refund-form/refund-form.js +4 -3
  156. package/dist/collection/ui-components/button-spinner.js +2 -0
  157. package/dist/collection/ui-components/button.js +19 -0
  158. package/dist/collection/ui-components/index.js +7 -0
  159. package/dist/collection/ui-components/skeleton.js +39 -0
  160. package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
  161. package/dist/collection/ui-components/table-empty-state.js +8 -0
  162. package/dist/collection/ui-components/table-error-state.js +8 -0
  163. package/dist/collection/ui-components/table-loading-state.js +8 -0
  164. package/dist/collection/utils/utils.js +0 -21
  165. package/dist/docs.json +2153 -1711
  166. package/dist/esm/{Analytics-c52faca6.js → Analytics-33b8fa8d.js} +1 -1
  167. package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
  168. package/dist/esm/additional-questions-details_5.entry.js +13 -13
  169. package/dist/esm/business-details-core.entry.js +6 -9
  170. package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
  171. package/dist/esm/business.service-74bd1212.js +29 -0
  172. package/dist/esm/button-34e75e0f.js +24 -0
  173. package/dist/esm/form-alert_5.entry.js +6 -6
  174. package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +434 -173
  175. package/dist/esm/form-control-date_3.entry.js +15 -9
  176. package/dist/esm/form-control-error-text_4.entry.js +3 -3
  177. package/dist/esm/form-control-file.entry.js +2 -2
  178. package/dist/esm/form-control-monetary.entry.js +2 -2
  179. package/dist/esm/form-control-number.entry.js +2 -2
  180. package/dist/esm/get-payout-csv-b494abfe.js +45 -0
  181. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  182. package/dist/esm/{index-4bd1eae9.js → index-57431c24.js} +15 -3
  183. package/dist/esm/input-handlers-270ac806.js +16 -0
  184. package/dist/esm/{insurance-state-09754ab9.js → insurance-state-8ce01e59.js} +1 -1
  185. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +198 -483
  186. package/dist/esm/justifi-bank-account-form.entry.js +4 -4
  187. package/dist/esm/justifi-billing-form_2.entry.js +6 -5
  188. package/dist/esm/justifi-business-details.entry.js +5 -5
  189. package/dist/esm/justifi-business-form.entry.js +9 -8
  190. package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
  191. package/dist/esm/justifi-card-form.entry.js +4 -4
  192. package/dist/esm/justifi-checkout-core.entry.js +14 -9
  193. package/dist/esm/justifi-checkout.entry.js +6 -6
  194. package/dist/esm/justifi-details.entry.js +4 -7
  195. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  196. package/dist/esm/justifi-new-payment-method_4.entry.js +12 -9
  197. package/dist/esm/justifi-owner-form_3.entry.js +262 -0
  198. package/dist/esm/justifi-payment-details.entry.js +6 -6
  199. package/dist/esm/justifi-payment-form.entry.js +11 -11
  200. package/dist/esm/justifi-payment-method-form.entry.js +5 -5
  201. package/dist/esm/justifi-payment-method-selector.entry.js +4 -4
  202. package/dist/esm/justifi-payment-provisioning-core.entry.js +9 -8
  203. package/dist/esm/justifi-payment-provisioning.entry.js +8 -64
  204. package/dist/esm/justifi-payments-list.entry.js +6 -6
  205. package/dist/esm/justifi-payout-details.entry.js +15 -10
  206. package/dist/esm/justifi-payouts-list.entry.js +15 -12
  207. package/dist/esm/justifi-refund-form.entry.js +5 -4
  208. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +14 -9
  209. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -4
  210. package/dist/esm/loader.js +3 -3
  211. package/dist/esm/{package-8ab448a3.js → package-3e407c6d.js} +1 -1
  212. package/dist/esm/pagination-menu.entry.js +21 -0
  213. package/dist/esm/{payload-parsers-57289fc4.js → payload-parsers-acb719d1.js} +2 -0
  214. package/dist/esm/payment-details-core.entry.js +11 -14
  215. package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
  216. package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
  217. package/dist/esm/payments-list-core.entry.js +73 -44
  218. package/dist/esm/payout-details-core.entry.js +19 -8
  219. package/dist/esm/payouts-list-core.entry.js +96 -59
  220. package/dist/esm/skeleton-145a80d4.js +41 -0
  221. package/dist/esm/styled-host-ab9da520.js +12 -0
  222. package/dist/esm/table-loading-state-356c7215.js +34 -0
  223. package/dist/esm/{utils-1e583166.js → utils-01413a95.js} +2 -2
  224. package/dist/esm/{utils-c7b3f21a.js → utils-3bb6347a.js} +1 -5
  225. package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
  226. package/dist/esm/webcomponents.js +3 -3
  227. package/dist/module/Payment.js +1 -21
  228. package/dist/module/additional-questions-details2.js +3 -4
  229. package/dist/module/additional-questions.js +1 -1
  230. package/dist/module/billing-form.js +6 -5
  231. package/dist/module/business-additional-questions-form-step-core.js +141 -0
  232. package/dist/module/business-additional-questions-form-step.js +55 -100
  233. package/dist/module/business-additional-questions-schema.js +1 -1
  234. package/dist/module/business-address-schema.js +1 -1
  235. package/dist/module/business-bank-account-form-step.js +4 -4
  236. package/dist/module/business-core-info-form-step-core.js +151 -0
  237. package/dist/module/business-core-info-form-step.js +57 -106
  238. package/dist/module/business-core-info-schema.js +1 -1
  239. package/dist/module/business-core-info.js +1 -1
  240. package/dist/module/business-details-core2.js +5 -8
  241. package/dist/module/business-document-upload-form-step.js +34 -35
  242. package/dist/module/business-document-upload-input-group.js +2 -2
  243. package/dist/module/business-documents-on-file.js +1 -1
  244. package/dist/module/business-form-types.js +5 -8
  245. package/dist/module/business-identity-schema.js +1 -1
  246. package/dist/module/business-owners-form-step-core.js +216 -0
  247. package/dist/module/business-owners-form-step.js +67 -154
  248. package/dist/module/business-representative-form-inputs.js +85 -0
  249. package/dist/module/business-representative-form-step-core.js +152 -0
  250. package/dist/module/business-representative-form-step.js +63 -111
  251. package/dist/module/business-representative.js +1 -1
  252. package/dist/module/business-terms-conditions-form-step.js +3 -3
  253. package/dist/module/business-terms-conditions-text.js +2 -2
  254. package/dist/module/business.service.js +19 -1
  255. package/dist/module/button.js +24 -0
  256. package/dist/module/checkout-core.js +34 -35
  257. package/dist/module/details.js +3 -6
  258. package/dist/module/exported-parts.js +40 -0
  259. package/dist/module/form-control-checkbox2.js +1 -1
  260. package/dist/module/form-control-date2.js +1 -1
  261. package/dist/module/form-control-file2.js +1 -1
  262. package/dist/module/form-control-monetary2.js +1 -1
  263. package/dist/module/form-control-number-masked2.js +11 -5
  264. package/dist/module/form-control-number.js +1 -1
  265. package/dist/module/form-control-select2.js +1 -1
  266. package/dist/module/form-control-text2.js +1 -1
  267. package/dist/module/generic-info-details2.js +3 -4
  268. package/dist/module/get-payout-csv.js +45 -0
  269. package/dist/module/gross-payment-chart-core2.js +2 -2
  270. package/dist/module/identity-address-form.js +2 -2
  271. package/dist/module/input-handlers.js +16 -0
  272. package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
  273. package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
  274. package/dist/module/justifi-bank-account-form.js +1 -1
  275. package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
  276. package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
  277. package/dist/module/justifi-business-details.js +1 -1
  278. package/dist/module/justifi-business-form.js +5 -4
  279. package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
  280. package/dist/module/justifi-business-owners-form-step-core.js +6 -0
  281. package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
  282. package/dist/module/justifi-business-representative-form-inputs.js +6 -0
  283. package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
  284. package/dist/module/justifi-business-representative-form-step-core.js +6 -0
  285. package/dist/module/justifi-card-form.js +1 -1
  286. package/dist/module/justifi-checkout.js +27 -33
  287. package/dist/module/justifi-gross-payment-chart.js +1 -1
  288. package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
  289. package/dist/module/justifi-legal-address-form-step-core.js +6 -0
  290. package/dist/module/justifi-payment-details.js +2 -2
  291. package/dist/module/justifi-payment-form.js +8 -8
  292. package/dist/module/justifi-payment-provisioning.js +98 -114
  293. package/dist/module/justifi-payments-list.js +17 -5
  294. package/dist/module/justifi-payout-details.js +12 -6
  295. package/dist/module/justifi-payouts-list.js +28 -11
  296. package/dist/module/justifi-refund-form.js +5 -4
  297. package/dist/module/justifi-season-interruption-insurance.js +7 -3
  298. package/dist/module/legal-address-details2.js +3 -4
  299. package/dist/module/legal-address-form-step-core.js +138 -0
  300. package/dist/module/legal-address-form-step.js +53 -98
  301. package/dist/module/legal-address-form.js +2 -2
  302. package/dist/module/new-payment-method.js +1 -1
  303. package/dist/module/owner-details2.js +3 -4
  304. package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
  305. package/dist/module/owner-form-core.js +6 -0
  306. package/dist/module/owner-form-core2.js +264 -0
  307. package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
  308. package/dist/module/owner-form-inputs.js +6 -0
  309. package/dist/module/owner-form-inputs2.js +85 -0
  310. package/dist/module/owner-form.js +62 -188
  311. package/dist/module/package.js +1 -1
  312. package/dist/module/pagination-menu2.js +4 -9
  313. package/dist/module/payload-parsers.js +2 -0
  314. package/dist/module/payment-details-core2.js +9 -12
  315. package/dist/module/payment-method-form.js +2 -2
  316. package/dist/module/payment-method-options.js +7 -4
  317. package/dist/module/payment-method-selector.js +3 -4
  318. package/dist/module/payment-provisioning-actions.js +178 -0
  319. package/dist/module/payment-provisioning-core.js +104 -60
  320. package/dist/module/payment-provisioning-form-buttons.js +2 -2
  321. package/dist/module/payment-provisioning-form-steps.js +94 -52
  322. package/dist/module/payments-list-core2.js +85 -45
  323. package/dist/module/payout-details-core2.js +18 -6
  324. package/dist/module/payouts-list-core2.js +110 -60
  325. package/dist/module/representative-details2.js +3 -4
  326. package/dist/module/save-new-payment-method.js +1 -1
  327. package/dist/module/saved-payment-method.js +1 -1
  328. package/dist/module/schema-validations.js +1 -1
  329. package/dist/module/season-interruption-insurance-core.js +12 -7
  330. package/dist/module/sezzle-payment-method.js +1 -1
  331. package/dist/module/skeleton.js +18 -50
  332. package/dist/module/styled-host.js +12 -0
  333. package/dist/module/utils2.js +1 -31
  334. package/dist/module/utils3.js +23 -26
  335. package/dist/module/utils4.js +23 -24
  336. package/dist/types/api/Payment.d.ts +0 -28
  337. package/dist/types/api/services/business.service.d.ts +10 -0
  338. package/dist/types/api/services/payout.service.d.ts +2 -0
  339. package/dist/types/assets/download-icon.d.ts +1 -0
  340. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
  341. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
  342. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
  343. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
  344. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
  345. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
  346. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
  347. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
  348. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
  349. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
  350. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
  351. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
  352. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
  353. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
  354. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
  355. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
  356. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  357. package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
  358. package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
  359. package/dist/types/components/checkout/checkout-core.d.ts +0 -1
  360. package/dist/types/components/form/utils.d.ts +0 -1
  361. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
  362. package/dist/types/components/payments-list/payments-list-core.d.ts +13 -2
  363. package/dist/types/components/payments-list/payments-list.d.ts +3 -0
  364. package/dist/types/components/payout-details/get-payout-csv.d.ts +7 -0
  365. package/dist/types/components/payout-details/payout-details-core.d.ts +2 -0
  366. package/dist/types/components/payout-details/payout-details.d.ts +2 -1
  367. package/dist/types/components/payouts-list/payouts-list-core.d.ts +13 -3
  368. package/dist/types/components/payouts-list/payouts-list.d.ts +5 -1
  369. package/dist/types/components.d.ts +337 -482
  370. package/dist/types/ui-components/button-spinner.d.ts +1 -0
  371. package/dist/types/ui-components/button.d.ts +10 -0
  372. package/dist/types/ui-components/index.d.ts +7 -0
  373. package/dist/types/ui-components/skeleton.d.ts +13 -0
  374. package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
  375. package/dist/types/ui-components/table-empty-state.d.ts +6 -0
  376. package/dist/types/ui-components/table-error-state.d.ts +6 -0
  377. package/dist/types/ui-components/table-loading-state.d.ts +6 -0
  378. package/dist/types/utils/utils.d.ts +0 -3
  379. package/dist/webcomponents/p-07109641.entry.js +1 -0
  380. package/dist/webcomponents/p-08b0fb31.js +1 -0
  381. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  382. package/dist/webcomponents/p-17e4246f.entry.js +1 -0
  383. package/dist/webcomponents/{p-6006e085.entry.js → p-195f92e9.entry.js} +1 -1
  384. package/dist/webcomponents/p-1a43e355.entry.js +19 -0
  385. package/dist/webcomponents/p-23014988.entry.js +1 -0
  386. package/dist/webcomponents/{p-f7b6dcc4.js → p-2338affa.js} +1 -1
  387. package/dist/webcomponents/p-25dba252.entry.js +1 -0
  388. package/dist/webcomponents/{p-5309e887.entry.js → p-27981600.entry.js} +1 -1
  389. package/dist/webcomponents/{p-e7915927.entry.js → p-301e0493.entry.js} +1 -1
  390. package/dist/webcomponents/p-304dd644.entry.js +1 -0
  391. package/dist/webcomponents/p-30a493cd.entry.js +1 -0
  392. package/dist/webcomponents/p-462dc522.entry.js +1 -0
  393. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  394. package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
  395. package/dist/webcomponents/{p-b7d9d9fa.js → p-4b4580dd.js} +1 -1
  396. package/dist/webcomponents/p-52021fa1.entry.js +1 -0
  397. package/dist/webcomponents/p-53e64f15.entry.js +1 -0
  398. package/dist/webcomponents/p-5968ff8a.js +1 -0
  399. package/dist/webcomponents/p-60a370fc.entry.js +1 -0
  400. package/dist/webcomponents/p-623a4479.entry.js +1 -0
  401. package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
  402. package/dist/webcomponents/{p-edb605b3.js → p-63acf322.js} +1 -1
  403. package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
  404. package/dist/webcomponents/p-75b4daef.js +1 -0
  405. package/dist/webcomponents/p-7d85af5c.js +1 -0
  406. package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
  407. package/dist/webcomponents/p-85fc69e5.js +1 -0
  408. package/dist/webcomponents/p-8603348a.js +1 -0
  409. package/dist/webcomponents/{p-a34c28af.entry.js → p-8c1e981b.entry.js} +1 -1
  410. package/dist/webcomponents/p-8df7bde8.js +1 -0
  411. package/dist/webcomponents/{p-a90a6703.entry.js → p-8e541a32.entry.js} +1 -1
  412. package/dist/webcomponents/p-9279aa49.entry.js +1 -0
  413. package/dist/webcomponents/{p-95c18035.entry.js → p-96b42e7d.entry.js} +1 -1
  414. package/dist/webcomponents/{p-fcf42299.entry.js → p-99022846.entry.js} +1 -1
  415. package/dist/webcomponents/p-9c9c7dac.js +1 -0
  416. package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
  417. package/dist/webcomponents/p-ba4bae6f.js +1 -0
  418. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  419. package/dist/webcomponents/p-bc92235c.entry.js +1 -0
  420. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  421. package/dist/webcomponents/p-c4b87db2.entry.js +1 -0
  422. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  423. package/dist/webcomponents/{p-c2d6a5e2.entry.js → p-cd7105dd.entry.js} +1 -1
  424. package/dist/webcomponents/p-d101c5db.js +1 -0
  425. package/dist/webcomponents/{p-1c60004a.entry.js → p-d1fbeae5.entry.js} +1 -1
  426. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  427. package/dist/webcomponents/p-d89bad72.js +1 -0
  428. package/dist/webcomponents/{p-cb68e8fa.js → p-dce846bf.js} +1 -1
  429. package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
  430. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  431. package/dist/webcomponents/{p-9936c393.entry.js → p-e31f0f3e.entry.js} +1 -1
  432. package/dist/webcomponents/p-e333620e.js +1 -0
  433. package/dist/webcomponents/p-e7067ef2.entry.js +1 -0
  434. package/dist/webcomponents/{p-84b3cead.entry.js → p-f0866375.entry.js} +1 -1
  435. package/dist/webcomponents/p-fad19d75.js +2 -0
  436. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  437. package/dist/webcomponents/p-fe33151d.entry.js +1 -0
  438. package/dist/webcomponents/webcomponents.css +6 -1
  439. package/dist/webcomponents/webcomponents.esm.js +1 -1
  440. package/package.json +1 -1
  441. package/dist/cjs/SubAccount-135ff8c8.js +0 -107
  442. package/dist/cjs/business.service-9214509a.js +0 -13
  443. package/dist/cjs/justifi-business-list.cjs.entry.js +0 -113
  444. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -89
  445. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -162
  446. package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
  447. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -80
  448. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
  449. package/dist/cjs/justifi-table_2.cjs.entry.js +0 -84
  450. package/dist/cjs/payout.service-eec372aa.js +0 -22
  451. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -74
  452. package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -23
  453. package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -23
  454. package/dist/collection/api/Proceed.js +0 -41
  455. package/dist/collection/api/SubAccount.js +0 -103
  456. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +0 -7348
  457. package/dist/collection/components/business-details/business-details.css +0 -6446
  458. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +0 -7348
  459. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +0 -7348
  460. package/dist/collection/components/business-details/owner-details/owner-details.css +0 -7348
  461. package/dist/collection/components/business-details/representative-details/representative-details.css +0 -7348
  462. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -9211
  463. package/dist/collection/components/business-list/business-list.css +0 -579
  464. package/dist/collection/components/business-list/business-list.js +0 -194
  465. package/dist/collection/components/business-list/business-list.stories.js +0 -68
  466. package/dist/collection/components/business-list/example.js +0 -12
  467. package/dist/collection/components/details/details.css +0 -7993
  468. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
  469. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -153
  470. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
  471. package/dist/collection/components/payment-details/payment-details.css +0 -7993
  472. package/dist/collection/components/payments-list/payments-list.css +0 -579
  473. package/dist/collection/components/payout-details/payout-details.css +0 -7993
  474. package/dist/collection/components/payouts-list/payouts-list.css +0 -579
  475. package/dist/collection/components/proceeds-list/example.js +0 -12
  476. package/dist/collection/components/proceeds-list/proceeds-list.css +0 -579
  477. package/dist/collection/components/proceeds-list/proceeds-list.js +0 -214
  478. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
  479. package/dist/collection/components/skeleton/skeleton.css +0 -583
  480. package/dist/collection/components/skeleton/skeleton.js +0 -160
  481. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +0 -7352
  482. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -70
  483. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +0 -7352
  484. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -48
  485. package/dist/collection/components/subaccount-details/subaccount-details.css +0 -7993
  486. package/dist/collection/components/subaccount-details/subaccount-details.js +0 -145
  487. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
  488. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +0 -7352
  489. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -49
  490. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +0 -7352
  491. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -49
  492. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +0 -7352
  493. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -49
  494. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +0 -7352
  495. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -48
  496. package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
  497. package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
  498. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
  499. package/dist/collection/components/table/table.css +0 -8092
  500. package/dist/collection/components/table/table.js +0 -223
  501. package/dist/collection/components/table/utils.js +0 -4
  502. package/dist/esm/SubAccount-7fcb1450.js +0 -105
  503. package/dist/esm/business.service-19a0c8d3.js +0 -11
  504. package/dist/esm/justifi-business-list.entry.js +0 -109
  505. package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -85
  506. package/dist/esm/justifi-proceeds-list.entry.js +0 -158
  507. package/dist/esm/justifi-skeleton.entry.js +0 -50
  508. package/dist/esm/justifi-subaccount-details.entry.js +0 -76
  509. package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
  510. package/dist/esm/justifi-table_2.entry.js +0 -79
  511. package/dist/esm/payout.service-28b9594f.js +0 -20
  512. package/dist/esm/subaccount-account-details_4.entry.js +0 -67
  513. package/dist/esm/subaccount-bank-details.entry.js +0 -19
  514. package/dist/esm/subaccount-terms-details.entry.js +0 -19
  515. package/dist/module/SubAccount.js +0 -105
  516. package/dist/module/justifi-business-list.d.ts +0 -11
  517. package/dist/module/justifi-business-list.js +0 -150
  518. package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
  519. package/dist/module/justifi-payment-balance-transactions.js +0 -127
  520. package/dist/module/justifi-proceeds-list.d.ts +0 -11
  521. package/dist/module/justifi-proceeds-list.js +0 -201
  522. package/dist/module/justifi-skeleton.js +0 -6
  523. package/dist/module/justifi-subaccount-details.d.ts +0 -11
  524. package/dist/module/justifi-subaccount-details.js +0 -136
  525. package/dist/module/justifi-subaccounts-list.d.ts +0 -11
  526. package/dist/module/justifi-subaccounts-list.js +0 -144
  527. package/dist/module/justifi-table.js +0 -6
  528. package/dist/module/payout.service.js +0 -20
  529. package/dist/module/subaccount-account-details.d.ts +0 -11
  530. package/dist/module/subaccount-account-details.js +0 -6
  531. package/dist/module/subaccount-account-details2.js +0 -39
  532. package/dist/module/subaccount-bank-details.d.ts +0 -11
  533. package/dist/module/subaccount-bank-details.js +0 -40
  534. package/dist/module/subaccount-merchant-details.d.ts +0 -11
  535. package/dist/module/subaccount-merchant-details.js +0 -6
  536. package/dist/module/subaccount-merchant-details2.js +0 -38
  537. package/dist/module/subaccount-owners-details.d.ts +0 -11
  538. package/dist/module/subaccount-owners-details.js +0 -6
  539. package/dist/module/subaccount-owners-details2.js +0 -38
  540. package/dist/module/subaccount-representative-details.d.ts +0 -11
  541. package/dist/module/subaccount-representative-details.js +0 -6
  542. package/dist/module/subaccount-representative-details2.js +0 -38
  543. package/dist/module/subaccount-terms-details.d.ts +0 -11
  544. package/dist/module/subaccount-terms-details.js +0 -40
  545. package/dist/module/table.js +0 -94
  546. package/dist/types/api/Proceed.d.ts +0 -60
  547. package/dist/types/api/SubAccount.d.ts +0 -163
  548. package/dist/types/components/business-list/business-list.d.ts +0 -48
  549. package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
  550. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
  551. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
  552. package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
  553. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
  554. package/dist/types/components/skeleton/skeleton.d.ts +0 -12
  555. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
  556. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
  557. package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
  558. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
  559. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
  560. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
  561. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
  562. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
  563. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
  564. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
  565. package/dist/types/components/table/table.d.ts +0 -23
  566. package/dist/types/components/table/utils.d.ts +0 -3
  567. package/dist/webcomponents/p-00de4ae0.entry.js +0 -1
  568. package/dist/webcomponents/p-015ba24e.entry.js +0 -1
  569. package/dist/webcomponents/p-023fe908.entry.js +0 -1
  570. package/dist/webcomponents/p-0575daac.js +0 -1
  571. package/dist/webcomponents/p-0a09edbb.entry.js +0 -1
  572. package/dist/webcomponents/p-0fc18c89.entry.js +0 -1
  573. package/dist/webcomponents/p-100cb35c.entry.js +0 -1
  574. package/dist/webcomponents/p-189dee9f.entry.js +0 -1
  575. package/dist/webcomponents/p-30a7bebc.entry.js +0 -19
  576. package/dist/webcomponents/p-378bb067.entry.js +0 -1
  577. package/dist/webcomponents/p-404d7c56.entry.js +0 -1
  578. package/dist/webcomponents/p-43326623.entry.js +0 -1
  579. package/dist/webcomponents/p-4c5f9260.entry.js +0 -1
  580. package/dist/webcomponents/p-61e486ad.entry.js +0 -1
  581. package/dist/webcomponents/p-64d1aeb8.entry.js +0 -1
  582. package/dist/webcomponents/p-6700ac49.js +0 -1
  583. package/dist/webcomponents/p-68f3a7b0.entry.js +0 -1
  584. package/dist/webcomponents/p-738049aa.entry.js +0 -1
  585. package/dist/webcomponents/p-739f1e09.entry.js +0 -1
  586. package/dist/webcomponents/p-7f77d91f.entry.js +0 -1
  587. package/dist/webcomponents/p-8805d083.entry.js +0 -1
  588. package/dist/webcomponents/p-95c8c313.entry.js +0 -1
  589. package/dist/webcomponents/p-97220d5b.entry.js +0 -1
  590. package/dist/webcomponents/p-98985c7d.entry.js +0 -1
  591. package/dist/webcomponents/p-9d03464e.entry.js +0 -1
  592. package/dist/webcomponents/p-a63a6fb9.js +0 -2
  593. package/dist/webcomponents/p-a6477232.entry.js +0 -1
  594. package/dist/webcomponents/p-b1a24d24.entry.js +0 -1
  595. package/dist/webcomponents/p-b27d2ce1.entry.js +0 -1
  596. package/dist/webcomponents/p-b53d7b7f.js +0 -1
  597. package/dist/webcomponents/p-be049573.entry.js +0 -1
  598. package/dist/webcomponents/p-bfe69314.entry.js +0 -1
  599. package/dist/webcomponents/p-c4264aaf.js +0 -1
  600. package/dist/webcomponents/p-c69713c2.entry.js +0 -1
  601. package/dist/webcomponents/p-c8c08fe3.js +0 -1
  602. package/dist/webcomponents/p-ca39c89f.js +0 -1
  603. package/dist/webcomponents/p-d779f2f2.entry.js +0 -1
  604. package/dist/webcomponents/p-da313a7e.entry.js +0 -1
  605. package/dist/webcomponents/p-e04f7070.entry.js +0 -1
  606. package/dist/webcomponents/p-eb142b8a.entry.js +0 -1
  607. package/dist/webcomponents/p-ed844504.js +0 -1
  608. package/dist/webcomponents/p-efe744ce.entry.js +0 -1
  609. package/dist/webcomponents/p-f6858597.entry.js +0 -1
  610. package/dist/webcomponents/p-f68cf935.entry.js +0 -1
  611. package/dist/module/{index.esm.js → form.js} +2733 -2733
@@ -1,4 +1,4 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { FormController } from "../../form/form";
3
3
  import { businessFormSchema } from "../schemas/business-form-schema";
4
4
  import { Api } from "../../../api";
@@ -7,6 +7,7 @@ import { config } from "../../../../config";
7
7
  import { BusinessFormClickActions, BusinessFormServerErrors } from "../utils/business-form-types";
8
8
  import { Business } from "../../../api/Business";
9
9
  import JustifiAnalytics from "../../../api/Analytics";
10
+ import { StyledHost } from "../../../ui-components";
10
11
  /**
11
12
  * @exportedPart label: Label for inputs
12
13
  * @exportedPart input: The input fields
@@ -96,13 +97,13 @@ export class BusinessForm {
96
97
  this.instantiateBusiness(response.data);
97
98
  }
98
99
  render() {
99
- return (h(Host, { key: '45680caa8914ba51c85f605684fac0430b6ffcc9', exportparts: "label,input,input-invalid" }, h("form", { key: 'f5b210518f3616a6d266b5de54e676477bd5a5ed', onSubmit: this.validateAndSubmit }, h("div", { key: '76565b0c32821cf9cc8a9d3bc4898fcc384ca88f', class: "row gap-3" }, h("h1", { key: '7740dc649b465ff6582695acaac0b7dc7ef9c552' }, this.title), h("form-alert", { key: '2e14533a0910ba29cd2f4fc87d93757d32b3f86d', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'cb8dbe6002b1fc620b8c2a89aa3f688d9cfe5751', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'af26c67fc3be48b4e4784e8f2cd69cfee58dddb9', formController: this.formController })), h("div", { key: '893e89039a22489e11b46f3c4aef57dd666a960a', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: 'adff3c3490af6cba6b5d97ccd38c923745483c41', formController: this.formController })), h("div", { key: '68cd2396c0be8ad943541cfbb2380ce71b55957c', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '773260dcff883db1e4569519e50b1cbe02fa3a92', formController: this.formController })), h("div", { key: '31a70331b2c5fb65bc67bdd35745a66627df5834', class: "col-12 mb-4" }, h("justifi-business-representative", { key: 'f0ed38705dc8ecaa03576c36df4d62094d1ea76b', formController: this.formController })), h("div", { key: 'ec6295f344dbca620929848a3b062558081eca08', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '6c1678dba66a17417667e6303af76b7fe94dbf37', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
100
+ return (h(StyledHost, { key: '60989d23631d6a02e9a25313dd7297a61063a09c', exportparts: "label,input,input-invalid" }, h("form", { key: 'd961174a3e93ed505012919a0e7e036bd61a4902', onSubmit: this.validateAndSubmit }, h("div", { key: '2be81a7f0e3b568266ee66127f2b537d57c36762', class: "row gap-3" }, h("h1", { key: 'eefc257f687ff24cebf13155a571398e3ddbcabd' }, this.title), h("form-alert", { key: '173d3ee84f5a952a51884ab5f3818c768fcc9b08', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'bfd7fd73aca630fcf56f468d912759d5a96de172', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'dc15f46a28301c03ccd884ff09740e87d67b2e5a', formController: this.formController })), h("div", { key: 'b4cd6ba605ea28a7692cc561951bb69ad93bb8f5', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '670f320ff6d1ba86a34f5b42dd97a5d38e96c209', formController: this.formController })), h("div", { key: '0afb9d18e6ecb951cefda4df5dd133d31359cecc', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '6953718bea9525126db35adc44a9c8754234816a', formController: this.formController })), h("div", { key: 'f88b576b9159cd43f17d5a63c26acc4b53dfa9a0', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '4353116715c7f7b906c3c0eae322df04703fd8e5', formController: this.formController })), h("div", { key: 'd626b0738ce71f7529fa270d7a2c479f517e48a2', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
100
101
  }
101
102
  static get is() { return "justifi-business-form"; }
102
103
  static get encapsulation() { return "shadow"; }
103
104
  static get originalStyleUrls() {
104
105
  return {
105
- "$": ["business-form.scss"]
106
+ "$": ["business-form.css"]
106
107
  };
107
108
  }
108
109
  static get styleUrls() {
@@ -26,7 +26,7 @@ export class BusinessRepresentative {
26
26
  }
27
27
  render() {
28
28
  const representativeDefaultValue = this.formController.getInitialValues().representative;
29
- return (h(Host, { key: '21aef5028007bfac782975b84f6a8e634e2f9d40', exportparts: "label,input,input-invalid" }, h("fieldset", { key: 'e2d1e4fba7e20b5ed3d72b9a0c39d3f157ffa767' }, h("legend", { key: 'd67f71ddcfc7a0a5877b020218c26e11c0971052' }, "Representative"), h("hr", { key: '4e638af72e155b7761a774ef3c8557f1baa4f0ec' }), h("div", { key: '4f0187d3f85ac985b55409adce4657ac4bfc1ad8', class: "row gy-3" }, h("div", { key: '126ab48d1457e0995c0e50d47a2fb0326b1e22a6', class: "col-12 col-md-8" }, h("form-control-text", { key: '47424dc1a820457a39feb52c9c3eac3096dadd84', name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '61806cf6e9b957594e7553c48bbcc486aafe33ea', class: "col-12 col-md-4" }, h("form-control-text", { key: '68171b9d5abdcf2aab91a202c284d3e56bd5d0f2', name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: 'bc68fe6035685fab636ab67da574a08d312ab5c9', class: "col-12 col-md-6" }, h("form-control-text", { key: '4b04b0afe8dfa9fa9ab60e37b50bae6e49d36eac', name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'e5c2d68541587709ae067989a7f1e7f3ffaf1b5e', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '47bef60ff18ac186727c7e331b8d4e6c9a8031bf', name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'b8b06d9e33530be2d5166b658ddfd6f59f38e621', class: "col-12 col-md-4" }, h("form-control-date", { key: '61dee02ca9c35b307a48c873e357686d76598d20', name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: 'a2e7a921789726641aca8eabf68ff3099cd9e18b', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '28248a2447c934cc1d534ebc666f2e9fd61e681e', name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '23650027826bee18f2b12562280fd30d7515e6b8', class: "col-12" }, h("justifi-identity-address-form", { key: '1f2a2d5e7bc58fbc3467cd94ded09804bd132d0f', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
29
+ return (h(Host, { key: '857634ffd34ea218dce687fb0eaa95830a58bfb1', exportparts: "label,input,input-invalid" }, h("fieldset", { key: 'b3b073dc456e58c4fa67182ea3518581038419e3' }, h("legend", { key: '3c1997f718c340b5dd32e4cdbe9400d64eecf577' }, "Representative"), h("hr", { key: 'd51e5d797106af2050b884fc09802c497a180e1d' }), h("div", { key: '7e5631f8eb5c28f0a5c4193ece3039a3adc35d0a', class: "row gy-3" }, h("div", { key: '399a1f505781ed0b82fa85366ca66580e977f3e5', class: "col-12 col-md-8" }, h("form-control-text", { key: '0820b8e0b6178b997ba1938efc045ad334f061d3', name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '2bb15a86304ce8755e1183835c0ed7c310a0e8b2', class: "col-12 col-md-4" }, h("form-control-text", { key: '2cc405cea169ec1bd5d72b110ce403101d029fff', name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: 'd2927f863bd374c38b8028a148568068144294d7', class: "col-12 col-md-6" }, h("form-control-text", { key: '0fa24fa492e060978facf23aac2b151595bb129c', name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '8c9f75ebc3c5d87fafaff48e489ad5dc091fbca4', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'f060196556cd11d9f68dab3aa7e87cba24e38afe', name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '19f7bcd2a18ef1f8c937a90602bdd9f0ac8f91e5', class: "col-12 col-md-4" }, h("form-control-date", { key: '5392a1ce2cbb43a88c2d90981b56ef55ba4fdb31', name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: '36203f898451d610b34afabc4bac9e20f01e53f7', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '4d4b9e4dcc0f5829068d4916d7373f6506ee9e74', name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '560e1dabe186e54a201ad02fb9054505ab5bb84c', class: "col-12" }, h("justifi-identity-address-form", { key: 'b47b48c19ca88248a9609c0e1858ba649f44c2da', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
30
30
  }
31
31
  static get is() { return "justifi-business-representative"; }
32
32
  static get properties() {
@@ -23,7 +23,7 @@ export class LegalAddressForm {
23
23
  render() {
24
24
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
25
25
  const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
26
- return (h(Host, { key: '3ac0b2a1486562bae6bb23ca84f52e8e839da19d', exportparts: "label,input,input-invalid" }, h("fieldset", { key: '0e967630ba6b9999ec4b18fedd983ca44d3ad2d7' }, h("legend", { key: '0419d670b40357246f5ac6567e0f1e150a37ee1e' }, "Business Legal Address"), h("hr", { key: 'acd06b0d3012eee2f46069a3c0e19d2ccc1fc61e' }), h("div", { key: '48679acfd5ca3501913f816e0aaa7371e2c17ad8', class: "row gy-3" }, h("div", { key: '0ceaf8cda2272bc1e8ff1d3882cca323710ae4dd', class: "col-12" }, h("form-control-text", { key: 'b61dc1e5ddf14e3bf7ed9b47f6933ab20980ee43', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: 'e49bb7dff45664f94c7cae0367595effe8513f29', class: "col-12" }, h("form-control-text", { key: '8984be074fb88a357333f16413cefbd3468ea5e6', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: 'bd75dd38711cbca74e694d71b0ef117e7ca5a08a', class: "col-12" }, h("form-control-text", { key: '2ea3f9d74180f9a63d46eb32432ab0cd79719de0', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '2c1486eb00e5d3a3c9183f4d37638c9bae46b4a7', class: "col-12" }, h("form-control-select", { key: '24f0f2c7ab4a56ea7ee396df5dab7fe2dde1c457', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '6ca320c24bec1d82df08b4dabc87322084e2ce2a', class: "col-12" }, h("form-control-text", { key: '05f573f81feef8166ea6e8198cb570f5c7ec4db9', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: '752249ceb0a283619742dbf847162541f0679bcd', class: "col-12" }, h("form-control-select", { key: 'bdc98fcf213072820120bf2224694c87d86da1f0', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
26
+ return (h(Host, { key: '794669fd0c563f54abde94146df007b114c30465', exportparts: "label,input,input-invalid" }, h("fieldset", { key: '34cf40bcf68c4b0af97363700ede8d5ef778c38c' }, h("legend", { key: 'deb0acfa3da0128a9337ddddd76592d7569685c6' }, "Business Legal Address"), h("hr", { key: '1d01aa0b9577c47c24af4e85728828d41164c5ee' }), h("div", { key: '2199ba800c530bb9a5704431103660a39bdf70fb', class: "row gy-3" }, h("div", { key: '811fa71f919e62d6ecf44fd97e5940473bdb2a51', class: "col-12" }, h("form-control-text", { key: '06305b11aecb6b49bc8d3c0b39b8652f3968083e', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: 'c1a2aad7893ac8f5aed57e662ce0704a4e0ed2fa', class: "col-12" }, h("form-control-text", { key: '858e3e7be65828a89b07f954e82033c76f4ab350', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '641805ddb44395c77020e708b60ff2a09ffc5d5b', class: "col-12" }, h("form-control-text", { key: '6d881c0aacf9a689305a15f353d376917a6e8aff', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '6bab46c2823b9da84ac66496b80a4f98d237ccfe', class: "col-12" }, h("form-control-select", { key: '0cc60022e6862884df786ea7414cf4cae4c45728', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: 'ff349be7524f3b3fc7a3adee03259f7b8bf10390', class: "col-12" }, h("form-control-text", { key: '015277e0bde6a15077744f9d09bc016a0db4b465', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'd6097ef782c0d47a2d93c4624635e7f820dac95d', class: "col-12" }, h("form-control-select", { key: '396a8c6bc10f288bde9289b7177c161e42f60b7e', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
27
27
  // just for now so we skip handling country specificities
28
28
  disabled: true }))))));
29
29
  }
@@ -17,7 +17,7 @@ export class IdentityAddressForm {
17
17
  }
18
18
  render() {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
20
- return (h(Host, { key: '83dd1e3c2e9d5e1d9da9d64143045530ea3c49e6', exportparts: "label,input,input-invalid" }, h("div", { key: 'd2ccac17954bea719da0dba261359547b4873f25', class: "row gy-3" }, h("div", { key: 'ae78ba39a640f5798a90665eb2500195ce429215', class: "col-12 col-md-8" }, h("form-control-text", { key: '0c11aa4ac520f2d37fd6f079e67898fb50089d40', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler })), h("div", { key: '9130d253adc984b15540c779fcd348b43a47a92d', class: "col-12 col-md-4" }, h("form-control-text", { key: '1eb5d471e0d77d0055aa26cc9e75ab84aee87772', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: '64b045b949e95e98db793495ddb53191b93db5eb', class: "col-12" }, h("form-control-text", { key: '98a05e17ebe3a676510614a218a8545af8c72c86', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: '27995692a60f0c5663bad8c588ed8757d8a19e88', class: "col-12 col-md-6" }, h("form-control-select", { key: 'e83aae9954a38e03af941ae270b10d170be3c85a', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '8111c0cda61ebdf3df4464f32ebae2171c44dc74', class: "col-12 col-md-6" }, h("form-control-text", { key: 'b1b591ec7b419574d8245d710212809d153cd2d9', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '5420333a8133ee51f4c2d8100a0c0d59dae5e383', class: "col-12" }, h("form-control-select", { key: 'e0b19506594ad3051c5a1211421729d24352f572', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
20
+ return (h(Host, { key: 'd090676d3bb1d9de9ae947ff25d94b5985ace914', exportparts: "label,input,input-invalid" }, h("div", { key: '64ddec6db508d27b709ad551f60fe58494631fe3', class: "row gy-3" }, h("div", { key: '7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea', class: "col-12 col-md-8" }, h("form-control-text", { key: 'ea6055fb3457e28666b11b72173ad70b83a87659', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler })), h("div", { key: '5f6f456c573fb9318e58976decb67274b209fa23', class: "col-12 col-md-4" }, h("form-control-text", { key: '86fffd4641953d0445a7c24d332cda513121b65e', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: 'e06339cefebe37ae0629631fbc5101c9dbc040a6', class: "col-12" }, h("form-control-text", { key: 'd2af696b33092247b6741c8034aaf12ab51aa878', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: 'b655a66fb68f059fa91ae5f9f60fdebe0ae04fad', class: "col-12 col-md-6" }, h("form-control-select", { key: '50a65861a5a39daac199571c5a0273340556e476', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '30255517e0fa1ede35d7b2525625ebc389c44525', class: "col-12 col-md-6" }, h("form-control-text", { key: 'b7b0a773c7b2dbe05c4bf8e9fc7235a01bf36832', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '804e9aa1ca7b4ae167ae64969107ad6352559ed7', class: "col-12" }, h("form-control-select", { key: '1aa3734e10502bc8f1732f386b60135b8a7d94a6', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
21
21
  // just for now so we skip handling country specificities
22
22
  disabled: true })))));
23
23
  }
@@ -0,0 +1,520 @@
1
+ import { h } from "@stencil/core";
2
+ import { FormController } from "../../form/form";
3
+ import { Owner } from "../../../api/Identity";
4
+ import { BusinessFormClickActions } from "../utils/business-form-types";
5
+ import { identitySchema } from "../schemas/business-identity-schema";
6
+ import { parseIdentityInfo } from "../utils/payload-parsers";
7
+ import { Button } from "../../../ui-components";
8
+ export class BusinessOwnerFormCore {
9
+ loadingWatcher() {
10
+ this.formLoading.emit(this.isLoading);
11
+ }
12
+ constructor() {
13
+ this.getData = () => {
14
+ this.isLoading = true;
15
+ this.getOwner({
16
+ onSuccess: (response) => {
17
+ this.instantiateOwner(response.data);
18
+ },
19
+ onError: ({ error, code, severity }) => {
20
+ this.errorEvent.emit({
21
+ message: error,
22
+ errorCode: code,
23
+ severity: severity
24
+ });
25
+ },
26
+ final: () => this.isLoading = false
27
+ });
28
+ };
29
+ this.sendData = () => {
30
+ this.isLoading = true;
31
+ return new Promise((resolve) => {
32
+ if (this.ownerId) {
33
+ this.patchOwner({
34
+ payload: this.payload,
35
+ onSuccess: (response) => {
36
+ this.submitted.emit({
37
+ data: response,
38
+ metadata: { ownerID: response.data.id }
39
+ });
40
+ this.ownerSubmitted.emit({ id: response.data.id });
41
+ this.instantiateOwner(response.data);
42
+ resolve(true);
43
+ },
44
+ onError: ({ error, code, severity }) => {
45
+ this.submitted.emit({ data: { error } });
46
+ this.errorEvent.emit({
47
+ message: error,
48
+ errorCode: code,
49
+ severity: severity
50
+ });
51
+ resolve(false);
52
+ },
53
+ final: () => this.isLoading = false
54
+ });
55
+ }
56
+ else {
57
+ this.postOwner({
58
+ payload: this.payload,
59
+ onSuccess: (response) => {
60
+ this.submitted.emit({
61
+ data: response,
62
+ metadata: { ownerID: response.data.id }
63
+ });
64
+ this.ownerSubmitted.emit({ id: response.data.id });
65
+ this.instantiateOwner(response.data);
66
+ resolve(true);
67
+ },
68
+ onError: ({ error, code, severity }) => {
69
+ this.submitted.emit({ data: { error } });
70
+ this.errorEvent.emit({
71
+ message: error,
72
+ errorCode: code,
73
+ severity: severity
74
+ });
75
+ resolve(false);
76
+ },
77
+ final: () => this.isLoading = false
78
+ });
79
+ }
80
+ });
81
+ };
82
+ this.instantiateOwner = async (data) => {
83
+ this.owner = Object.assign({}, new Owner(data));
84
+ await this.formController.setInitialValues(this.owner);
85
+ };
86
+ this.handleAddOwner = () => {
87
+ const eventName = this.ownerId ? BusinessFormClickActions.updateOwner : BusinessFormClickActions.addOwner;
88
+ this.clickEvent.emit({ name: eventName });
89
+ };
90
+ this.handleRemoveOwner = () => {
91
+ this.removeOwner(this.ownerId);
92
+ this.clickEvent.emit({ name: BusinessFormClickActions.removeOwner });
93
+ };
94
+ this.isLoading = false;
95
+ this.formController = undefined;
96
+ this.errors = {};
97
+ this.owner = {};
98
+ this.ownerId = undefined;
99
+ this.businessId = undefined;
100
+ this.getOwner = undefined;
101
+ this.patchOwner = undefined;
102
+ this.postOwner = undefined;
103
+ this.allowOptionalFields = undefined;
104
+ this.removeOwner = undefined;
105
+ this.newFormOpen = undefined;
106
+ this.ownersLength = undefined;
107
+ this.validate = this.validate.bind(this);
108
+ this.submit = this.submit.bind(this);
109
+ this.validateAndSubmit = this.validateAndSubmit.bind(this);
110
+ }
111
+ async returnOwnerData() {
112
+ return this.ownerId;
113
+ }
114
+ async validate() {
115
+ return this.formController.validate();
116
+ }
117
+ async submit() {
118
+ const isValid = await this.validate();
119
+ if (isValid) {
120
+ return this.sendData();
121
+ }
122
+ }
123
+ async validateAndSubmit(event) {
124
+ event.preventDefault();
125
+ const isValid = await this.validate();
126
+ if (isValid) {
127
+ this.submit();
128
+ }
129
+ }
130
+ get payload() {
131
+ let formValues = parseIdentityInfo(this.formController.values.getValue());
132
+ if (this.ownerId) {
133
+ return JSON.stringify(formValues);
134
+ }
135
+ else {
136
+ return JSON.stringify(Object.assign(Object.assign({}, formValues), { business_id: this.businessId }));
137
+ }
138
+ }
139
+ get formTitle() {
140
+ return this.ownerId ? 'Edit Business Owner' : 'Add Business Owner';
141
+ }
142
+ get submitButtonText() {
143
+ return this.ownerId ? 'Update' : 'Add';
144
+ }
145
+ get showRemoveButton() {
146
+ const blankForm = !this.ownerId && this.newFormOpen;
147
+ if (this.ownersLength <= 1) {
148
+ return false;
149
+ }
150
+ else {
151
+ if (blankForm) {
152
+ return true;
153
+ }
154
+ else if (this.ownerId && !this.newFormOpen) {
155
+ return true;
156
+ }
157
+ }
158
+ }
159
+ componentWillLoad() {
160
+ this.formController = new FormController(identitySchema('owner', this.allowOptionalFields));
161
+ this.ownerId ? this.getData() : this.instantiateOwner({});
162
+ }
163
+ componentDidLoad() {
164
+ this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
165
+ }
166
+ render() {
167
+ return (h("form", { key: 'b2e2aaced859260e9d2ef59bc3f8a0763d05872c', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2a93ddb4c945be0ec081ce31d6d9eff4b302d622' }, h("legend", { key: 'ea9859e55099e3f8263024d884edfb48b3666eaa', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'f646c1ecc544c358d87e701aba8e151fcb96c54e' }), h("div", { key: '874bf4ebd7cef0afbdee96fa4d5679b6d683b0f0', class: "row gy-3" }, h("owner-form-inputs", { key: '866dbf0002ec1ac70d7942c6011c67f8cd144960', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '15d907270ecf3d16769cedea39ba279d7ffb0748', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '84c09ef594e7fa387e64a09014de81ed713cc765', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dafd97aa7b84644c9d011224a152ad7f99ce620', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'f1f31da4d147afcd01ef96acd01d63ee9497dd6b' }))));
168
+ }
169
+ static get is() { return "owner-form-core"; }
170
+ static get properties() {
171
+ return {
172
+ "ownerId": {
173
+ "type": "string",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "string",
177
+ "resolved": "string",
178
+ "references": {}
179
+ },
180
+ "required": false,
181
+ "optional": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "attribute": "owner-id",
187
+ "reflect": false
188
+ },
189
+ "businessId": {
190
+ "type": "string",
191
+ "mutable": false,
192
+ "complexType": {
193
+ "original": "string",
194
+ "resolved": "string",
195
+ "references": {}
196
+ },
197
+ "required": false,
198
+ "optional": true,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": ""
202
+ },
203
+ "attribute": "business-id",
204
+ "reflect": false
205
+ },
206
+ "getOwner": {
207
+ "type": "unknown",
208
+ "mutable": false,
209
+ "complexType": {
210
+ "original": "Function",
211
+ "resolved": "Function",
212
+ "references": {
213
+ "Function": {
214
+ "location": "global",
215
+ "id": "global::Function"
216
+ }
217
+ }
218
+ },
219
+ "required": false,
220
+ "optional": false,
221
+ "docs": {
222
+ "tags": [],
223
+ "text": ""
224
+ }
225
+ },
226
+ "patchOwner": {
227
+ "type": "unknown",
228
+ "mutable": false,
229
+ "complexType": {
230
+ "original": "Function",
231
+ "resolved": "Function",
232
+ "references": {
233
+ "Function": {
234
+ "location": "global",
235
+ "id": "global::Function"
236
+ }
237
+ }
238
+ },
239
+ "required": false,
240
+ "optional": false,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": ""
244
+ }
245
+ },
246
+ "postOwner": {
247
+ "type": "unknown",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "Function",
251
+ "resolved": "Function",
252
+ "references": {
253
+ "Function": {
254
+ "location": "global",
255
+ "id": "global::Function"
256
+ }
257
+ }
258
+ },
259
+ "required": false,
260
+ "optional": false,
261
+ "docs": {
262
+ "tags": [],
263
+ "text": ""
264
+ }
265
+ },
266
+ "allowOptionalFields": {
267
+ "type": "boolean",
268
+ "mutable": false,
269
+ "complexType": {
270
+ "original": "boolean",
271
+ "resolved": "boolean",
272
+ "references": {}
273
+ },
274
+ "required": false,
275
+ "optional": true,
276
+ "docs": {
277
+ "tags": [],
278
+ "text": ""
279
+ },
280
+ "attribute": "allow-optional-fields",
281
+ "reflect": false
282
+ },
283
+ "removeOwner": {
284
+ "type": "unknown",
285
+ "mutable": false,
286
+ "complexType": {
287
+ "original": "(id: string) => void",
288
+ "resolved": "(id: string) => void",
289
+ "references": {}
290
+ },
291
+ "required": false,
292
+ "optional": false,
293
+ "docs": {
294
+ "tags": [],
295
+ "text": ""
296
+ }
297
+ },
298
+ "newFormOpen": {
299
+ "type": "boolean",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "boolean",
303
+ "resolved": "boolean",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": true,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": ""
311
+ },
312
+ "attribute": "new-form-open",
313
+ "reflect": false
314
+ },
315
+ "ownersLength": {
316
+ "type": "number",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "number",
320
+ "resolved": "number",
321
+ "references": {}
322
+ },
323
+ "required": false,
324
+ "optional": true,
325
+ "docs": {
326
+ "tags": [],
327
+ "text": ""
328
+ },
329
+ "attribute": "owners-length",
330
+ "reflect": false
331
+ }
332
+ };
333
+ }
334
+ static get states() {
335
+ return {
336
+ "isLoading": {},
337
+ "formController": {},
338
+ "errors": {},
339
+ "owner": {}
340
+ };
341
+ }
342
+ static get events() {
343
+ return [{
344
+ "method": "submitted",
345
+ "name": "submitted",
346
+ "bubbles": true,
347
+ "cancelable": true,
348
+ "composed": true,
349
+ "docs": {
350
+ "tags": [],
351
+ "text": ""
352
+ },
353
+ "complexType": {
354
+ "original": "BusinessFormSubmitEvent",
355
+ "resolved": "BusinessFormSubmitEvent",
356
+ "references": {
357
+ "BusinessFormSubmitEvent": {
358
+ "location": "import",
359
+ "path": "../utils/business-form-types",
360
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormSubmitEvent"
361
+ }
362
+ }
363
+ }
364
+ }, {
365
+ "method": "ownerSubmitted",
366
+ "name": "ownerSubmitted",
367
+ "bubbles": true,
368
+ "cancelable": true,
369
+ "composed": true,
370
+ "docs": {
371
+ "tags": [],
372
+ "text": ""
373
+ },
374
+ "complexType": {
375
+ "original": "any",
376
+ "resolved": "any",
377
+ "references": {}
378
+ }
379
+ }, {
380
+ "method": "clickEvent",
381
+ "name": "click-event",
382
+ "bubbles": true,
383
+ "cancelable": true,
384
+ "composed": true,
385
+ "docs": {
386
+ "tags": [],
387
+ "text": ""
388
+ },
389
+ "complexType": {
390
+ "original": "BusinessFormClickEvent",
391
+ "resolved": "BusinessFormClickEvent",
392
+ "references": {
393
+ "BusinessFormClickEvent": {
394
+ "location": "import",
395
+ "path": "../utils/business-form-types",
396
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormClickEvent"
397
+ }
398
+ }
399
+ }
400
+ }, {
401
+ "method": "formLoading",
402
+ "name": "formLoading",
403
+ "bubbles": true,
404
+ "cancelable": true,
405
+ "composed": true,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": ""
409
+ },
410
+ "complexType": {
411
+ "original": "boolean",
412
+ "resolved": "boolean",
413
+ "references": {}
414
+ }
415
+ }, {
416
+ "method": "errorEvent",
417
+ "name": "error-event",
418
+ "bubbles": true,
419
+ "cancelable": true,
420
+ "composed": true,
421
+ "docs": {
422
+ "tags": [],
423
+ "text": ""
424
+ },
425
+ "complexType": {
426
+ "original": "ComponentError",
427
+ "resolved": "ComponentError",
428
+ "references": {
429
+ "ComponentError": {
430
+ "location": "import",
431
+ "path": "../../../api/ComponentError",
432
+ "id": "src/api/ComponentError.ts::ComponentError"
433
+ }
434
+ }
435
+ }
436
+ }];
437
+ }
438
+ static get methods() {
439
+ return {
440
+ "returnOwnerData": {
441
+ "complexType": {
442
+ "signature": "() => Promise<string>",
443
+ "parameters": [],
444
+ "references": {
445
+ "Promise": {
446
+ "location": "global",
447
+ "id": "global::Promise"
448
+ }
449
+ },
450
+ "return": "Promise<string>"
451
+ },
452
+ "docs": {
453
+ "text": "",
454
+ "tags": []
455
+ }
456
+ },
457
+ "validate": {
458
+ "complexType": {
459
+ "signature": "() => Promise<boolean>",
460
+ "parameters": [],
461
+ "references": {
462
+ "Promise": {
463
+ "location": "global",
464
+ "id": "global::Promise"
465
+ }
466
+ },
467
+ "return": "Promise<boolean>"
468
+ },
469
+ "docs": {
470
+ "text": "",
471
+ "tags": []
472
+ }
473
+ },
474
+ "submit": {
475
+ "complexType": {
476
+ "signature": "() => Promise<boolean>",
477
+ "parameters": [],
478
+ "references": {
479
+ "Promise": {
480
+ "location": "global",
481
+ "id": "global::Promise"
482
+ }
483
+ },
484
+ "return": "Promise<boolean>"
485
+ },
486
+ "docs": {
487
+ "text": "",
488
+ "tags": []
489
+ }
490
+ },
491
+ "validateAndSubmit": {
492
+ "complexType": {
493
+ "signature": "(event: any) => Promise<void>",
494
+ "parameters": [{
495
+ "name": "event",
496
+ "type": "any",
497
+ "docs": ""
498
+ }],
499
+ "references": {
500
+ "Promise": {
501
+ "location": "global",
502
+ "id": "global::Promise"
503
+ }
504
+ },
505
+ "return": "Promise<void>"
506
+ },
507
+ "docs": {
508
+ "text": "",
509
+ "tags": []
510
+ }
511
+ }
512
+ };
513
+ }
514
+ static get watchers() {
515
+ return [{
516
+ "propName": "isLoading",
517
+ "methodName": "loadingWatcher"
518
+ }];
519
+ }
520
+ }