@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,48 +0,0 @@
1
- import { PagingInfo } from '../../api';
2
- import { Business } from '../../api/Business';
3
- /**
4
- * @exportedPart table-head: Table head
5
- * @exportedPart table-head-row: Head row
6
- * @exportedPart table-head-cell: Individual head cell
7
- * @exportedPart table-body: Body of the table
8
- * @exportedPart table-row: Row of the table
9
- * @exportedPart table-cell: Individual cell of the table
10
- * @exportedPart loading-state-cell: Row for loading state
11
- * @exportedPart loading-state-spinner: Spinner element for loading state
12
- * @exportedPart error-state: Row for Error state
13
- * @exportedPart empty-state: Row for Emtpy state
14
- * @exportedPart pagination-bar: Pagination bar
15
- * @exportedPart arrow: Both paging buttons
16
- * @exportedPart arrow-left: Previous page button
17
- * @exportedPart arrow-right: Next page button
18
- * @exportedPart arrow-disabled: Disabled state for paging buttons
19
- */
20
- export declare class BusinessList {
21
- /**
22
- * The Account ID to fetch payments.
23
- * This is required to fetch any data.
24
- * @required
25
- * @type {string}
26
- * @memberof PaymentsList
27
- */
28
- accountId: string;
29
- /**
30
- * The Auth Token to fetch payments.
31
- * This is required to fetch any data.
32
- * @required
33
- * @type {string}
34
- */
35
- authToken: string;
36
- businesses: Business[];
37
- loading: boolean;
38
- errorMessage: string;
39
- paging: PagingInfo;
40
- params: any;
41
- updateOnPropChange(): void;
42
- connectedCallback(): void;
43
- mapProductStatusToBadge: (status: boolean) => "bg-success" | "bg-secondary";
44
- handleClickPrevious: (beforeCursor: string) => void;
45
- handleClickNext: (afterCursor: string) => void;
46
- fetchData(): Promise<void>;
47
- render(): any;
48
- }
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- parameters: {};
5
- };
6
- export default _default;
7
- export declare const Example: any;
8
- export declare const Styled: any;
9
- export declare const Contained: any;
@@ -1,17 +0,0 @@
1
- import { IPaymentBalanceTransaction, PagingInfo } from '../../api';
2
- export declare class PaymentBalanceTransactions {
3
- accountId: string;
4
- authToken: string;
5
- paymentId: string;
6
- balanceTransactions: IPaymentBalanceTransaction[];
7
- loading: boolean;
8
- errorMessage: string;
9
- paging: PagingInfo;
10
- params: any;
11
- updateOnPropChange(): void;
12
- connectedCallback(): void;
13
- handleClickPrevious: (beforeCursor: string) => void;
14
- handleClickNext: (afterCursor: string) => void;
15
- fetchData(): Promise<void>;
16
- render(): any;
17
- }
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- parameters: {};
5
- };
6
- export default _default;
7
- export declare const Example: any;
8
- export declare const Styled: any;
@@ -1,39 +0,0 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { PagingInfo } from '../../api';
3
- import { Proceed, ProceedStatuses } from '../../api/Proceed';
4
- /**
5
- * @exportedPart table-head: Table head
6
- * @exportedPart table-head-row: Head row
7
- * @exportedPart table-head-cell: Individual head cell
8
- * @exportedPart table-body: Body of the table
9
- * @exportedPart table-row: Row of the table
10
- * @exportedPart table-cell: Individual cell of the table
11
- * @exportedPart loading-state-cell: Row for loading state
12
- * @exportedPart loading-state-spinner: Spinner element for loading state
13
- * @exportedPart error-state: Row for Error state
14
- * @exportedPart empty-state: Row for Emtpy state
15
- * @exportedPart pagination-bar: Pagination bar
16
- * @exportedPart arrow: Both paging buttons
17
- * @exportedPart arrow-left: Previous page button
18
- * @exportedPart arrow-right: Next page button
19
- * @exportedPart button-disabled: Disabled state for paging buttons
20
- * @exportedPart previous-button-text: Text for Previous button
21
- * @exportedPart next-button-text: Text for Next button
22
- */
23
- export declare class ProceedsList {
24
- accountId: string;
25
- authToken: string;
26
- proceeds: Proceed[];
27
- loading: boolean;
28
- errorMessage: string;
29
- paging: PagingInfo;
30
- params: any;
31
- rowClicked: EventEmitter<Proceed>;
32
- updateOnPropChange(): void;
33
- connectedCallback(): void;
34
- mapStatusToBadge: (status: ProceedStatuses) => string;
35
- handleClickPrevious: (beforeCursor: string) => void;
36
- handleClickNext: (afterCursor: string) => void;
37
- fetchData(): Promise<void>;
38
- render(): any;
39
- }
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- parameters: {};
5
- decorators: ((Story: any) => string)[];
6
- };
7
- export default _default;
8
- export declare const Example: any;
9
- export declare const Styled: any;
@@ -1,12 +0,0 @@
1
- export declare class Skeleton {
2
- component: string;
3
- height: string | number;
4
- width: string | number;
5
- variant: 'circular' | 'rectangular' | 'rounded' | 'text';
6
- componentClassName: string;
7
- styles: {
8
- [key: string]: any;
9
- };
10
- private getVariantStyle;
11
- render(): any;
12
- }
@@ -1,6 +0,0 @@
1
- import { IOnboardingData, SubAccount } from '../../../api/SubAccount';
2
- export declare class SubaccountAccountDetails {
3
- subaccount: SubAccount;
4
- onboardingData: IOnboardingData;
5
- render(): any;
6
- }
@@ -1,5 +0,0 @@
1
- import { SubaccountBankAccount } from '../../../api/SubAccount';
2
- export declare class SubaccountBankDetails {
3
- data: SubaccountBankAccount;
4
- render(): any;
5
- }
@@ -1,16 +0,0 @@
1
- import { IOnboardingData, SubAccount } from '../../api/SubAccount';
2
- export declare class SubaccountDetails {
3
- accountId: string;
4
- subaccountId: string;
5
- authToken: string;
6
- onboardingData: IOnboardingData;
7
- subaccount: SubAccount;
8
- loading: boolean;
9
- errorMessage: string;
10
- updateOnPropChange(): void;
11
- connectedCallback(): void;
12
- fetchOnboardingData(): Promise<void>;
13
- fetchSubAccountData(): Promise<void>;
14
- fetchData(): Promise<void>;
15
- render(): any;
16
- }
@@ -1,7 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- parameters: {};
5
- };
6
- export default _default;
7
- export declare const Example: any;
@@ -1,5 +0,0 @@
1
- import { IOnboardingData } from '../../../components';
2
- export declare class SubaccountMerchantDetails {
3
- onboardingData: IOnboardingData;
4
- render(): any;
5
- }
@@ -1,5 +0,0 @@
1
- import { SubAccountIdentity } from '../../../components';
2
- export declare class SubaccountOwnersDetails {
3
- data: SubAccountIdentity[];
4
- render(): any;
5
- }
@@ -1,5 +0,0 @@
1
- import { SubAccountIdentity } from '../../../api/SubAccount';
2
- export declare class SubaccountRepresentativeDetails {
3
- data: SubAccountIdentity;
4
- render(): any;
5
- }
@@ -1,5 +0,0 @@
1
- import { Terms } from '../../../api/SubAccount';
2
- export declare class SubaccountTermsDetails {
3
- data: Terms;
4
- render(): any;
5
- }
@@ -1,19 +0,0 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { SubAccount } from '../../api/SubAccount';
3
- import { PagingInfo } from '../../api';
4
- export declare class SubaccountsList {
5
- accountId: string;
6
- authToken: string;
7
- subaccounts: SubAccount[];
8
- loading: boolean;
9
- errorMessage: string;
10
- paging: PagingInfo;
11
- params: any;
12
- rowClicked: EventEmitter<SubAccount>;
13
- updateOnPropChange(): void;
14
- connectedCallback(): void;
15
- handleClickPrevious: (beforeCursor: string) => void;
16
- handleClickNext: (afterCursor: string) => void;
17
- fetchData(): Promise<void>;
18
- render(): any;
19
- }
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- parameters: {};
5
- decorators: ((Story: any) => string)[];
6
- };
7
- export default _default;
8
- export declare const Example: any;
9
- export declare const Styled: any;
@@ -1,23 +0,0 @@
1
- import { ExtendedPagingInfo } from '../../api/Pagination';
2
- export interface TableProps {
3
- loading: boolean;
4
- errorMessage: string;
5
- columnData: (string | string[])[];
6
- rowData: any[];
7
- paging: ExtendedPagingInfo;
8
- params: any;
9
- }
10
- export declare class Table {
11
- loading: TableProps['loading'];
12
- errorMessage: TableProps['errorMessage'];
13
- rowData: TableProps['rowData'];
14
- columnData: TableProps['columnData'];
15
- paging: TableProps['paging'];
16
- params: TableProps['params'];
17
- entityId: string[];
18
- rowClickHandler: (e: any) => any;
19
- get showEmptyState(): boolean;
20
- get showErrorState(): boolean;
21
- get showRowData(): boolean;
22
- render(): any;
23
- }
@@ -1,3 +0,0 @@
1
- export declare const LoadingState: (columnSpan: number) => any;
2
- export declare const EmptyState: (columnSpan: number) => any;
3
- export declare const ErrorState: (columnSpan: number, errorMessage: string) => any;
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e}from"./p-a63a6fb9.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as r}from"./p-ae263544.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as c}from"./p-14c91ffd.js";class d{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const h=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){console.log("### componentWillLoad ins season interruption"),this.initializeServiceMethods()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var c;try{const d=await i.fetchQuote(t,e);if(d.error)return r({error:o(d.error),code:a(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});s({quote:d.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new d}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:c})=>{var d;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return c({error:o(h.error),code:a(null===(d=h.error)||void 0===d?void 0:d.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new d})):this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"fc932dc338e0fe28348d3cb24701d46315199ea1",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{h as justifi_season_interruption_insurance}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as r,H as o}from"./p-a63a6fb9.js";import{t as i}from"./p-2b6c9c4f.js";import{P as e}from"./p-ca39c89f.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import{P as a}from"./p-e3fab0e2.js";import{C as n,a as c}from"./p-14c91ffd.js";import{g as p,a as h}from"./p-8115b2f4.js";import{E as d}from"./p-cb68e8fa.js";import{J as u}from"./p-edb605b3.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-b7d9d9fa.js";const m=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new u(this),this.initializeGetPayouts()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayouts()}initializeGetPayouts(){this.accountId&&this.authToken?this.getPayouts=(({id:t,authToken:s,service:r})=>async({params:o,onSuccess:i,onError:e})=>{var c,d;try{const u=await r.fetchPayouts(t,s,o);if(u.error)return e({error:p(u.error),code:h(null===(d=u.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const t=Object.assign({},u.page_info);i({payouts:(null===(c=u.data)||void 0===c?void 0:c.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){return e({error:p(t),code:h(null==t?void 0:t.code),severity:n.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new e}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Account ID and Auth Token are required"}))}render(){return this.errorMessage?d(this.errorMessage):r(o,{exportedparts:i},r("payouts-list-core",{getPayouts:this.getPayouts,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payouts_list}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as i,H as e}from"./p-a63a6fb9.js";import{a as r}from"./p-6700ac49.js";import{a as h,C as o}from"./p-14c91ffd.js";import{a}from"./p-1ff8810b.js";import"./p-6078a370.js";const n=class{constructor(i){s(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submitted",7),this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=a(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:h.PROVISIONING_REQUESTED,severity:o.INFO})},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitted.emit({data:{response:s}})},onError:({error:s,code:t,severity:i})=>{this.submitted.emit({data:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.refs=[],this.handleFormLoading=s=>{this.formLoading=s.detail},this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:r.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})},this.formLoading=!1,this.businessProvisioned=!1,this.currentStep=0,this.errorMessage=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle=void 0,this.getBusiness=void 0,this.postProvisioning=void 0}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.documentUploadRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.formLoading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}render(){return i(e,{key:"55cc99c89f4bd0c118f478bf4ed784ba79e58390",exportparts:"label,input,input-invalid"},i("div",{key:"68c9410be13351130196c33db2f71f8c541d5bee",class:"row gap-3"},i("h1",{key:"37a6b7aa48c8a6a3ddea1b61e11adfc73ef2cbb3"},this.formTitle),i("justifi-payment-provisioning-form-steps",{key:"599cd00f4582dd1370a8bebd14258a196561c9af",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading,onFormCompleted:()=>this.postProvisioningData()}),i("div",{key:"4ad23d84d851781e264a31f5fba4f91ef0bd9422",class:"d-flex justify-content-between align-items-center"},i("div",{key:"b77f58acaf9c374c553916f887f2d3ff253ddc4a",class:"d-flex align-items-center"},this.stepCounter),i("justifi-payment-provisioning-form-buttons",{key:"756886f2a82f8d31321962eb2eb249de3cd55ecc",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.formLoading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{n as justifi_payment_provisioning_core}
@@ -1 +0,0 @@
1
- import{h as e}from"./p-a63a6fb9.js";const n=()=>e("div",{class:"spinner-border spinner-border-sm",role:"status"},e("span",{class:"visually-hidden"},"Loading...")),o=e=>{var n;if(!(e instanceof KeyboardEvent&&["Backspace","Tab","Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Delete"].includes(e.key)||e instanceof KeyboardEvent&&(e.ctrlKey||e.metaKey)&&"v"===e.key.toLowerCase()))if(e instanceof ClipboardEvent){const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text");o&&!/^\d+$/.test(o)&&e.preventDefault()}else e instanceof KeyboardEvent&&!/^\d$/.test(e.key)&&e.preventDefault()};export{n as L,o as n}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as i}from"./p-a63a6fb9.js";import{F as a,c as d,e as o}from"./p-2eab3c90.js";import{A as n,C as c,B as r,O as h,R as l,b as f}from"./p-af244664.js";import{A as b}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as u}from"./p-ae263544.js";import{a as m,b as y}from"./p-3fd13ca3.js";import{b as p,O as v,a as k}from"./p-6700ac49.js";import{C as g,P as _,S as w}from"./p-525db3e8.js";import{a as j,r as O,s as x,c as T,b as S}from"./p-ba5fae28.js";import{a as C,C as L}from"./p-14c91ffd.js";import{z as H,A as V,i as A,B as F,C as E,D,E as I,F as N,G as P,H as B,I as R,J as W,K as J,L as U,M as $}from"./p-89887332.js";import{n as q,L as G}from"./p-0575daac.js";import{b as Y,c as M,i as z,d as K,a as Q}from"./p-c8c08fe3.js";import{m as X}from"./p-e8c651b8.js";import{d as Z}from"./p-1ff8810b.js";import{S as ee}from"./p-6078a370.js";const te=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.additional_questions=new n(e.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=this.formController.values.getValue(),s=await this.api.patch(this.businessEndpoint,JSON.stringify({additional_questions:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.additional_questions={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.additionalQuestions}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(m(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e))),this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){var e,t,a,d,o,n,c;const r=this.formController.getInitialValues();return s(i,{key:"a6c4f79702b3ebeb087c7e0beb1353e243c26bb2",exportparts:"label,input,input-invalid"},s("form",{key:"e4f918d7b7a84b8a2332f14d79dcb8bc7c50da73"},s("fieldset",{key:"921f14f225be38b665780a5640bc38302497a5b4"},s("legend",{key:"01fa03c8134995cb23a67766febb6d4522e3d41a"},"Additional Questions"),s("hr",{key:"61131730389e979b6aa7d68ca5f58a070aa2534e"}),s("div",{key:"54b3af3d2fe06b20463fa548a60ab986f246a3d7",class:"row gy-3"},s("div",{key:"55c113e9d5f4746cc78de3f91cbf0a069d7a8e41",class:"col-12 col-md-6"},s("form-control-monetary",{key:"86a6cacf09105f5c4415a01738ba77b7eeb7622c",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_revenue,defaultValue:null==r?void 0:r.business_revenue,maskOptions:g.WHOLE})),s("div",{key:"ae68b9c006ea41e1f214226efdb4e14098d5e800",class:"col-12 col-md-6"},s("form-control-monetary",{key:"ddbff877fc74121bbf84eb7f4ee278558f35d853",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(t=this.errors)||void 0===t?void 0:t.business_payment_volume,defaultValue:null==r?void 0:r.business_payment_volume,maskOptions:g.WHOLE})),s("div",{key:"80fa2c11d3cadd1a1ab07ad79b7ff736a15a38d3",class:"col-12"},s("form-control-select",{key:"7fca901a87105b9a401309d5841279bac7a6f5cd",name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_when_service_received,options:j,defaultValue:null==r?void 0:r.business_when_service_received})),s("div",{key:"a20763d9518cd84b062f81fdce325be2a8dfb40e",class:"col-12"},s("form-control-select",{key:"cfec3aab19c544b16f8a0fab7541433130c3b749",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(d=this.errors)||void 0===d?void 0:d.business_recurring_payments,options:O,defaultValue:null==r?void 0:r.business_recurring_payments})),s("div",{key:"0ef1a0473a5870428a741be696e08c881ebee524",class:"col-12"},s("form-control-text",{key:"512a4924c14b7c2da661b5ffe966d8d1497cb706",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==r?void 0:r.business_recurring_payments_percentage})),s("div",{key:"75a7b0adfde53443a53ca4e4143f1ff060291837",class:"col-12"},s("form-control-select",{key:"1474ce5f608be57a36486ad46c7a7bd68fc44fc7",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:x,defaultValue:null==r?void 0:r.business_seasonal})),s("div",{key:"7de2fd399754cc0c77e2b08b7d1a4d0082903f61",class:"col-12"},s("form-control-text",{key:"5de14ae950223e353dd6d58430a4493ffd26da4e",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(c=this.errors)||void 0===c?void 0:c.business_other_payment_details,defaultValue:null==r?void 0:r.business_other_payment_details}))))))}};class se{constructor(e){this.id=e.id,this.account_owner_name=e.account_owner_name,this.full_name=e.full_name,this.account_type=e.account_type,this.acct_last_four=e.acct_last_four,this.account_number_last4=e.account_number_last4,this.routing_number=e.routing_number,this.bank_name=e.bank_name,this.country=e.country,this.currency=e.currency,this.nickname=e.nickname,this.metadata=e.metadata,this.business_id=e.business_id,this.platform_account_id=e.platform_account_id,this.created_at=e.created_at,this.updated_at=e.updated_at}}const ie=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.bankAccount=Object.assign({},new se(e.data.bank_accounts.length>0?e.data.bank_accounts[0]:{})),this.formController.setInitialValues(Object.assign({},this.bankAccount))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=this.formController.values.getValue(),s=Object.assign(Object.assign({},t),{business_id:this.businessId}),i=await this.api.post(this.bankAccountEndpoint,JSON.stringify(s));this.handleResponse(i,e)}catch(e){this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.bankAccount=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get bankAccountEndpoint(){return"entities/bank_accounts"}get formDisabled(){var e;return!!(null===(e=this.bankAccount)||void 0===e?void 0:e.id)}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.bankAccount}})}async validateAndSubmit({onSuccess:e}){this.formDisabled?e():this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a((e=>{const t=d({bank_name:H.required("Enter bank name"),nickname:V.required("Enter nickname"),account_owner_name:A.required("Enter account owner name"),account_type:F.required("Select account type"),account_number:E.required("Enter account number"),routing_number:D.required("Enter routing number")}),s=d({bank_name:H.nullable(),nickname:V.nullable(),account_owner_name:A.nullable(),account_type:F.nullable(),account_number:E.nullable(),routing_number:D.nullable()});return e?s:t})(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.bankAccount=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){const e=this.formController.getInitialValues();return s(i,{key:"06a761a462bc8211d31021815bf0f826002ff674",exportparts:"label,input,input-invalid"},s("form",{key:"46e2a31edda4f8297fc8858ed9373dd744e5a39b"},s("fieldset",{key:"3f8ed5c4d2e801a1824110449e14d86df2f14dc4"},s("legend",{key:"f88054577ab1f30332ddd0aafad4b3a40dce8de3"},"Bank Account Info"),s("hr",{key:"0cf5f443ee658510192d60a29d81040ac0763588"}),s("div",{key:"c446362495de7cb85610f50ddec515e983aef55a",class:"row gy-3"},s("div",{key:"9bdde0ea622a0e41963dc025e887bb2b5701e160",class:"col-12"},s("form-control-text",{key:"ffbe63f3b934c4b9428e4cb6928d554ce87ff627",name:"bank_name",label:"Bank Name",defaultValue:e.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"6753f56609e0447ec0eb5b040c74bd511f6dd4de",class:"col-12"},s("form-control-text",{key:"c5903b44239826b1fd454731b2d2a406665fe62f",name:"nickname",label:"Nickname",defaultValue:e.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"1ff0746d2b60f376f664a81011f4482d380ac760",class:"col-12"},s("form-control-text",{key:"110b3d4f9e5266caf8cc0701d2e4764ec44dcf3c",name:"account_owner_name",label:"Account Owner Name",defaultValue:e.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"e045bc7620c101116e28d2307497139776ca7588",class:"col-12"},s("form-control-select",{key:"acee452f96ab59da937a5379a7ef4a2703861647",name:"account_type",label:"Account Type",options:T,defaultValue:e.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"8e576bebe699f605a411d2dbeca04d11be0181a2",class:"col-12"},s("form-control-text",{key:"0df383e2d9c5b4ba609820f473cad3098968a6e7",name:"account_number",label:"Account Number",defaultValue:e.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:q,disabled:this.formDisabled})),s("div",{key:"91dc628aaceb4b86171b45f52bd6f023d338a4db",class:"col-12"},s("form-control-text",{key:"239f3cf414fa1ca1f3de5e8fb5ba9e1c7b6c458f",name:"routing_number",label:"Routing Number",defaultValue:e.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:q,disabled:this.formDisabled}))))))}},ae=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.coreInfo=new c(e.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=Y(X(this.formController.values.getValue())),s=await this.api.patch(this.businessEndpoint,JSON.stringify(t));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.coreInfo={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.coreInfo}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(y(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){const e=this.formController.getInitialValues();return s(i,{key:"4ea42b813bdd6e5c59a62ae4ae869e86dfddd7ce",exportparts:"label,input,input-invalid"},s("form",{key:"f5ec3be342eda82dee8a51fe2ee5a6da1ee8902e"},s("fieldset",{key:"e07041577f53badc6c172a2c6dc20b1066c03f4c"},s("legend",{key:"2bcc8cc013eeee4e27c874d0bed4471515b68610"},"General Info"),s("hr",{key:"6dc6f73cf851b9244c8d797bc5cefdfda848c7bc"}),s("div",{key:"b2bfad85255ddfa76d405e45df3d668ad02a6fea",class:"row gy-3"},s("div",{key:"a9a65df07f40621513ce4881dd203e90142d7670",class:"col-12"},s("form-control-text",{key:"7fe7ac765902c7cd9ed60004dc7be687d43b2e49",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),s("div",{key:"6fe2e395e4391480f4d6dafcfc57619176efc45c",class:"col-12"},s("form-control-text",{key:"d19870345d79e4c44c3e667e2751ff6f344e1d58",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:e.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),s("div",{key:"39acda8180c70f7684aa2d73ef31bc199233c358",class:"col-12 col-md-8"},s("form-control-select",{key:"67f98ac21a69a851bb9489df198e06c8b517d45e",name:"classification",label:"Business Classification",options:S,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),s("div",{key:"d54631f13e8998170de1f175d52d89d90035e688",class:"col-12 col-md-4"},s("form-control-date",{key:"8038e4f909c9bb2e5f3a8dd577f7b7f75e3d4f41",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:e.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),s("div",{key:"ca43f206b14494ddaa55c625a2c408426ebcf529",class:"col-12 col-md-6"},s("form-control-text",{key:"7ccf50e04dad1a7e001c37074925f27f53ec831c",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),s("div",{key:"76136df0a434b7fce1b0307e962e4ea387a063d3",class:"col-12 col-md-6"},s("form-control-text",{key:"ddfd853ed46b3995484dff54d47af0c0d6c93b0c",name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:q,maxLength:9})),s("div",{key:"1084c4d7a261b8fc0a9ceacc16b5823f09cfb807",class:"col-12"},s("form-control-text",{key:"c9ca186a6f2cc10f43966de56e6a224103ddd1f3",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),s("div",{key:"55bc2f83a170fc1bec20c208460cc63b8f42a566",class:"col-12 col-md-6"},s("form-control-text",{key:"5c35db62f1d7d56e01a839df29b39aa55e569d5c",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"f74aadc2ea606365918f29091a6f6bb08841bf00",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"ef54ee012cbc30464bcdc7e887d5eb0523e30057",name:"phone",label:"Phone Number",defaultValue:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:_.US}))))))}},de=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.fetchData=async()=>{this.renderState="loading",this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.business=Object.assign({},new r(e.data)),this.existingDocuments=e.data.documents,this.paymentVolume=e.data.additional_questions.business_payment_volume}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e}),this.renderState="error"}finally{this.initializeFormController(),this.formLoading.emit(!1),this.renderState="success"}},this.initializeFormController=()=>{this.formController=new a(((e,t,s)=>{const i=d({voided_check:I(t,s),government_id:N.nullable(),ss4:P.nullable(),other:B.nullable(),balance_sheet:R(e,t,s),bank_statement:W(e,t,s),profit_and_loss_statement:J(e,t,s)}),a=d({voided_check:I(t,s),government_id:N.nullable(),ss4:P.nullable(),other:B.nullable(),balance_sheet:R(e,t,s),bank_statement:W(e,t,s),profit_and_loss_statement:J(e,t,s)});return s?a:i})(this.paymentVolume,this.existingDocuments,this.allowOptionalFields)),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))},this.createDocumentRecord=async e=>{this.formLoading.emit(!0);const t=e.record_data;try{const s=await this.api.post(this.documentEndpoint,JSON.stringify(t));return this.handleDocRecordResponse(e,s)}catch(e){return this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.message,severity:L.ERROR,data:e}),!1}},this.handleDocRecordResponse=(e,t)=>t.error?(this.errorEvent.emit({errorCode:C.POST_ERROR,message:t.error.message,severity:L.ERROR,data:t.error}),!1):(e.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async e=>{if(!e.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(e.presigned_url,{method:"PUT",body:e.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=e=>e.error?(this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}),!1):(this.submitted.emit({data:e,metadata:{completedStep:p.documentUpload}}),!0),this.storeFiles=e=>{const t=Array.from(e.detail.fileList),s=e.detail.document_type,i=t.map((e=>new U({file:e,document_type:s},this.businessId)));this.documentData[s]=i},this.sendData=async e=>{const t=Object.values(this.documentData).flat();if(!t.length)return e();const s=t.map((e=>this.createDocumentRecord(e)));if(!await Promise.all(s))return;const i=t.map((e=>this.uploadDocument(e))),a=await Promise.all(i);a&&(a&&this.formLoading.emit(!1),await e())},this.formController=void 0,this.errors={},this.existingDocuments=[],this.paymentVolume=void 0,this.business=void 0,this.documentData=new $,this.renderState="loading",this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get documentEndpoint(){return"entities/document"}componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get documentsOnFile(){return this.isError?null:this.isLoading?s("justifi-skeleton",{variant:"rounded",height:"50px"}):s("justifi-business-documents-on-file",{documents:this.existingDocuments})}get formInputs(){return this.isError?null:this.isLoading?s("justifi-skeleton",{variant:"rounded",height:"350px"}):s("justifi-business-document-upload-input-group",{paymentVolume:this.paymentVolume,inputHandler:this.inputHandler,storeFiles:this.storeFiles,errors:this.errors})}render(){return s(i,{key:"9cc3ddc45413cf4bb5d2fabfc8bc6035035b02c3",exportparts:"label,input,input-invalid"},s("form",{key:"d4756e9cd27741cbf6637d42f3f0db77ebc4e2b1"},s("fieldset",{key:"4c66e4cb9997c1a3645277b12358a3881361fd77"},s("legend",{key:"adf7e0e3c134a3e395d455d4c13b6b31e3caf5a0"},"Document Uploads"),s("p",{key:"826529c3896e9acdf7dd0337e7dc0bb7f8f93386"},"Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."),s("hr",{key:"76e343327d676f10df8652e9b3977b21e189607c"}),this.documentsOnFile,s("div",{key:"bdd1fc8f4dc941c17d8457022cbdab679aedd009",class:"d-flex flex-column"},this.formInputs))))}},oe=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.clickEvent=t(this,"click-event",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.managePayload=async()=>this.owners.filter((e=>e.id)).map((e=>({id:e.id}))),this.matchRef=(e,t)=>{const s=this.refs.findIndex((e=>e===t));-1!==s&&(this.refs[s]=e)},this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);e.data.owners.length?this.owners=e.data.owners.map((e=>e)):this.addOwnerForm()}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1),this.manageRefs()}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=await this.managePayload(),s=await this.api.patch(this.businessEndpoint,JSON.stringify({owners:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.addOwnerForm=e=>{this.newFormOpen=!0;const t=Object.assign({},new h({}));this.owners=[...this.owners,t],e&&this.clickEvent.emit({name:v.addOwnerForm})},this.removeOwnerForm=e=>{this.owners=this.owners.filter((t=>t.id!==e)),this.newFormOpen&&(this.newFormOpen=!1)},this.handleOwnerSubmit=e=>{const t=e.detail.data.data,s=this.owners.findIndex((e=>e.id===t.id));if(-1!==s)this.owners[s]=t;else{const e=this.owners.findIndex((e=>!e.id));this.owners[e]=t,this.newFormOpen&&(this.newFormOpen=!1)}},this.owners=[],this.newFormOpen=void 0,this.refs=[],this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get showAddOwnerButton(){return this.owners.length<4&&!this.newFormOpen}manageRefs(){const e=this.owners.map((e=>e.id));this.refs=e}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.owners}})}async validateAndSubmit({onSuccess:e}){const t=this.refs.map((e=>e.validate()));if(!(await Promise.all(t)).every((e=>e)))return;const s=this.refs.map((e=>e.submit()));(await Promise.all(s)).every((e=>e))&&await this.sendData(e)}componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}onOwnersUpdated(){this.manageRefs()}render(){return s(i,{key:"c47bc68f4ee75973c394d84bcf791ae4bf32aeb2",exportparts:"label,input,input-invalid"},s("legend",{key:"c08c53d29e9aab0f80748b98c54c18607b1a5c8b"},"Owners"),s("hr",{key:"6d9ff85001290730c437a9a1b3fa6ebb1035d86e"}),s("div",{key:"bb693079ee194368763d082d681e8563562be343",class:"row gy-3"},this.owners.map((e=>s("justifi-owner-form",{key:e.id,authToken:this.authToken,businessId:this.businessId,ownerId:e.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.owners.length,onSubmitted:e=>this.handleOwnerSubmit(e),onFormLoading:e=>this.formLoading.emit(e.detail),allowOptionalFields:this.allowOptionalFields,ref:t=>{this.matchRef(t,e.id)}})))),this.showAddOwnerButton&&s("div",{key:"3d3293f26ca3f9214d34ceee9f31974d127088b3",class:"col-12"},s("button",{key:"4dbcbf90018343c8c8b13e32cfc9121b2087c40d",class:"btn btn-primary",onClick:()=>this.addOwnerForm(!0)},"Add Owner")))}static get watchers(){return{owners:["onOwnersUpdated"]}}},ne=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.representative=new l(e.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=M(this.formController.values.getValue()),s=await this.api.patch(this.businessEndpoint,JSON.stringify({representative:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{address:Object.assign(Object.assign({},this.formController.values.getValue().address),e)}))},this.onDateOfBirthUpdate=e=>{if(""===e.detail)this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{dob_day:null,dob_month:null,dob_year:null}));else{const t=Z(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{dob_day:t.dob_day,dob_month:t.dob_month,dob_year:t.dob_year}))}},this.formController=void 0,this.errors={},this.representative={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.representative}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(z("representative",this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e)))}render(){const e=this.formController.getInitialValues();return s(i,{key:"d2c9bc0dd40d85403688d4c0ff482d7b0c3c35ab",exportparts:"label,input,input-invalid"},s("form",{key:"99a6b23b13b893f760e322dfe2e6f603e86e718c"},s("fieldset",{key:"7c3b1897a7fe0fa672fa2d8d1a35ba4c81e9c256"},s("legend",{key:"f0fe4c93f757167e631d6e21bda5b559556550ad"},"Representative"),s("hr",{key:"1dd5db7898b510bcdae492460f2ce57d7871c282"}),s("div",{key:"33d1935e5b6cc441bd0193e35aaaedcecfc2bc95",class:"row gy-3"},s("div",{key:"c872b5a20469e3609178106b019fe1d0aecb2a24",class:"col-12 col-md-8"},s("form-control-text",{key:"31f37067b3c46bb4f7120169878dae88c1d4e918",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"9bdc8c1756a693f48bf060ee66f6fcf44cabc025",class:"col-12 col-md-4"},s("form-control-text",{key:"1686ff4c8e7b2e2fb74cc104966bf56d2754f8a8",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),s("div",{key:"789443ed50f9f0957e6bd8b4f6dea8d6ba7421a9",class:"col-12 col-md-6"},s("form-control-text",{key:"fcf1bd082368ee1adcc6b661ec75e3693fcc30dd",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"163d3f6e3ea1d2b7833b7a232e4726e56fda6416",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"3eba7a3ab6a7e8631cb9f100bfd7e5e5566efecc",name:"phone",label:"Phone Number",defaultValue:null==e?void 0:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:_.US})),s("div",{key:"42fc6d656c069f073b08e77398a266e367e771ad",class:"col-12 col-md-4"},s("form-control-date",{key:"f627ff9478974305c83a8947b6c7f60d46189104",name:"dob_full",label:"Birth Date",defaultValue:null==e?void 0:e.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),s("div",{key:"ffded118a7a2d1c5889c46ac879cdadc289f1c1e",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"bf9cda57b1b7579a38d4f1f276c5cbc7b1723e2d",name:"identification_number",label:"SSN",defaultValue:null==e?void 0:e.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:w})),s("div",{key:"b033205960692dc7b3cea5ce59e12a13c58d5243",class:"col-12"},s("justifi-identity-address-form",{key:"f243060451c630da18d175a93f55bb1fcabd0cec",errors:this.errors.address,defaultValues:null==e?void 0:e.address,handleFormUpdate:this.onAddressFormUpdate}))))))}},ce=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.acceptedTermsBefore=e.data.terms_conditions_accepted}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=JSON.stringify(this.termsPayload),s=await this.api.post(this.termsConditionsEndpoint,t);this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.acceptedTermsBefore=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.formController=new a((e=>{const t=d({accepted:o().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),s=d({accepted:o().nullable()});return e?s:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.termsAndConditions}})}async validateAndSubmit({onSuccess:e}){this.acceptedTermsBefore?(this.submitted.emit({metadata:{completedStep:p.termsAndConditions}}),e()):this.formController.validateAndSubmit((()=>this.sendData(e)))}componentDidLoad(){this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){return s(i,{key:"63c8c815109b63b868fedfa6c9142a787d43625c"},s("form",{key:"364ec85e5a8399b3bb1233a09a588470f7d96542"},s("fieldset",{key:"8f4206180a48cc665b50bdc47604871b8c46212a"},s("legend",{key:"c50cf85809bcf0c370fe3e3756bbdf97cbc35c9f"},"Terms and Conditions"),s("hr",{key:"4ae031aaa9a56f26c8818c11cf3ff91e559c7399"}),s("justifi-business-terms-conditions-text",{key:"4c8f520d4fbb14e94bfd345e196e5a8602fec0e2"}),s("br",{key:"d76eff074fb8b7195ce22128a19f3ad6ff5c6ac0"}),s("div",{key:"5663d9804ccb01af38bfbf056645ef4e11695366",class:"row-gy-3"},s("div",{key:"8587e533aa31febd996e643c366eeee3d147bc9d",class:"col-12"},s("form-control-checkbox",{key:"d2ff86a1d92a040e119432487b1405d0a6ae2c55",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText}))))))}},re=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.legal_address=new f(e.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=K(this.formController.values.getValue()),s=await this.api.patch(this.businessEndpoint,JSON.stringify({legal_address:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.legal_address={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.legalAddress}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(Q(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e))),this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){var e,t,a,d,o,n;const c=this.formController.getInitialValues();return s(i,{key:"9c05125bf246a2b70a726daf13e670a97e980f47",exportparts:"label,input,input-invalid"},s("form",{key:"2ade7edf832b33a7ba6a48e7132675b1d10a56d4"},s("fieldset",{key:"c1de166455f7fe99af58a296a096235fdecb2133"},s("legend",{key:"6a91fd07f78aa2cff56db73c59b8310b17b7d901"},"Business Legal Address"),s("hr",{key:"3c2ebc5996de57610af531da0d314ce991bbe305"}),s("div",{key:"fd1d4ab21f866fd76801c4c8c2e1d0419ac6addb",class:"row gy-3"},s("div",{key:"c3aaf2e8445067227f66a6faf8487b84275b109d",class:"col-12"},s("form-control-text",{key:"2e9958c7829e1647c3512d65b0a068c5ffd192dc",name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.line1,errorText:null===(e=this.errors)||void 0===e?void 0:e.line1})),s("div",{key:"551458e16164b6fab6393d4e0bd5e36bd79e706d",class:"col-12"},s("form-control-text",{key:"97f9ca68b48c6b73d46eb112f52df1eba0113c11",name:"line2",label:"Address Line 2",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.line2,errorText:null===(t=this.errors)||void 0===t?void 0:t.line2})),s("div",{key:"e914778ba7da8279ee60fbbf96a0ce573ed33925",class:"col-12"},s("form-control-text",{key:"1028149f43063b7eb2359dac64880f41c4b706c4",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.city,errorText:null===(a=this.errors)||void 0===a?void 0:a.city})),s("div",{key:"a4c0f576008523ec0abb18bf39e8a1441b404b37",class:"col-12"},s("form-control-select",{key:"af5d60c67367c9e5d6d531e199a4b1f60e994c3c",name:"state",label:"State",options:ee,inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.state,errorText:null===(d=this.errors)||void 0===d?void 0:d.state})),s("div",{key:"e5f0a9da1269c6c2e71ee7775a59c5f03eb5010e",class:"col-12"},s("form-control-text",{key:"262bf5740f67f1788d5eff08236de25b48ad3cbf",name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:q})),s("div",{key:"6ba0e162cfeaff5c891b51a32e32fefe28db66ce",class:"col-12"},s("form-control-select",{key:"5f9ad2922f6cf3ad9f89cb1c0f387f2a615b1474",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0}))))))}},he=class{constructor(t){e(this,t),this.currentStep=void 0,this.totalSteps=void 0,this.formLoading=void 0,this.formDisabled=void 0,this.previousStepButtonOnClick=void 0,this.nextStepButtonOnClick=void 0}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return s("div",{key:"abc1957bf9f8afaa808471730d43a0d3abe447ca",class:"d-flex gap-2"},s("button",{key:"a6a09bc4afdefa8d0a04e96bfc3228ece27f7968",type:"button",class:"btn btn-secondary",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),s("button",{key:"6709aaf0c97a4aff7ffc45dcab0c3589b9f1d940",type:"button",class:"btn btn-primary jfi-submit-button"+(this.formLoading?" jfi-submit-button-loading":""),onClick:e=>this.nextStepButtonOnClick(e,k.nextStep),disabled:this.formDisabled,hidden:!this.showNextStepButton},this.formLoading?G():"Next"),s("button",{key:"9b0cc8573d48082bec14294682b3674b1423abbe",type:"submit",class:"btn btn-primary jfi-submit-button"+(this.formLoading?" jfi-submit-button-loading":""),onClick:e=>this.nextStepButtonOnClick(e,k.submit),disabled:this.formDisabled,hidden:!this.showSubmitButton},this.formLoading?G():"Submit"))}},le=class{constructor(i){e(this,i),this.formCompleted=t(this,"formCompleted",7),this.componentStepMapping={0:()=>s("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[0]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),1:()=>s("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[1]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),2:()=>s("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[2]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),3:()=>s("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[3]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),4:()=>s("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[4]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),5:()=>s("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[5]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),6:()=>s("justifi-business-document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[6]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),7:()=>s("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[7]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields,onSubmitted:()=>this.formCompleted.emit()})},this.businessId=void 0,this.authToken=void 0,this.refs=void 0,this.currentStep=void 0,this.allowOptionalFields=!1,this.handleFormLoading=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return s("div",{key:"6bb3a25e38c7ed29a095e2bc1192d869ec406e83",class:"col-12 mb-4"},this.currentStepComponent)}};export{te as justifi_additional_questions_form_step,ie as justifi_business_bank_account_form_step,ae as justifi_business_core_info_form_step,de as justifi_business_document_upload_form_step,oe as justifi_business_owners_form_step,ne as justifi_business_representative_form_step,ce as justifi_business_terms_conditions_form_step,re as justifi_legal_address_form_step,he as justifi_payment_provisioning_form_buttons,le as justifi_payment_provisioning_form_steps}