@justifi/webcomponents 4.18.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.
- package/dist/cjs/{Analytics-d4aa8c07.js → Analytics-ff013cbc.js} +1 -1
- package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
- package/dist/cjs/business.service-f63650f5.js +32 -0
- package/dist/cjs/button-3f400a66.js +26 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
- package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/input-handlers-cff032bb.js +20 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
- package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
- package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +69 -40
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
- package/dist/cjs/skeleton-748c5dde.js +43 -0
- package/dist/cjs/styled-host-cc053016.js +14 -0
- package/dist/cjs/table-loading-state-8b406852.js +38 -0
- package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
- package/dist/cjs/{utils-8c3bf659.js → utils-ddacfc44.js} +0 -5
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +0 -20
- package/dist/collection/api/services/business.service.js +18 -0
- package/dist/collection/collection-manifest.json +9 -14
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +17 -18
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
- package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
- package/dist/collection/components/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +4 -5
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/details/details.js +2 -2
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +11 -5
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +0 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-form/payment-form.js +4 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +66 -38
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/ui-components/button-spinner.js +2 -0
- package/dist/collection/ui-components/button.js +19 -0
- package/dist/collection/ui-components/index.js +7 -0
- package/dist/collection/ui-components/skeleton.js +39 -0
- package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
- package/dist/collection/ui-components/table-empty-state.js +8 -0
- package/dist/collection/ui-components/table-error-state.js +8 -0
- package/dist/collection/ui-components/table-loading-state.js +8 -0
- package/dist/collection/utils/utils.js +0 -21
- package/dist/docs.json +2080 -1746
- package/dist/esm/{Analytics-29fac206.js → Analytics-33b8fa8d.js} +1 -1
- package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
- package/dist/esm/business.service-74bd1212.js +29 -0
- package/dist/esm/button-34e75e0f.js +24 -0
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
- package/dist/esm/form-control-date_3.entry.js +130 -0
- package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/input-handlers-270ac806.js +16 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +7 -6
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +262 -0
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-form.entry.js +9 -10
- package/dist/esm/justifi-payment-method-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +21 -0
- package/dist/esm/payment-details-core.entry.js +10 -10
- package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
- package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +69 -40
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/payouts-list-core.entry.js +90 -74
- package/dist/esm/skeleton-145a80d4.js +41 -0
- package/dist/esm/styled-host-ab9da520.js +12 -0
- package/dist/esm/table-loading-state-356c7215.js +34 -0
- package/dist/esm/{utils-56719d07.js → utils-01413a95.js} +1 -1
- package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
- package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +1 -21
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-additional-questions-form-step-core.js +141 -0
- package/dist/module/business-additional-questions-form-step.js +55 -100
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +4 -4
- package/dist/module/business-core-info-form-step-core.js +151 -0
- package/dist/module/business-core-info-form-step.js +57 -106
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-document-upload-form-step.js +34 -35
- package/dist/module/business-document-upload-input-group.js +2 -2
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-types.js +5 -8
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +216 -0
- package/dist/module/business-owners-form-step.js +67 -154
- package/dist/module/business-representative-form-inputs.js +85 -0
- package/dist/module/business-representative-form-step-core.js +152 -0
- package/dist/module/business-representative-form-step.js +63 -111
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business-terms-conditions-text.js +1 -1
- package/dist/module/business.service.js +19 -1
- package/dist/module/button.js +24 -0
- package/dist/module/checkout-core.js +27 -32
- package/dist/module/details.js +1 -1
- package/dist/module/exported-parts.js +40 -0
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +11 -5
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/input-handlers.js +16 -0
- package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step-core.js +6 -0
- package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-inputs.js +6 -0
- package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step-core.js +6 -0
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +27 -33
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step-core.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-form.js +5 -6
- package/dist/module/justifi-payment-provisioning.js +97 -108
- package/dist/module/justifi-payments-list.js +8 -14
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +8 -13
- package/dist/module/justifi-refund-form.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +7 -2
- package/dist/module/legal-address-form-step-core.js +138 -0
- package/dist/module/legal-address-form-step.js +53 -98
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
- package/dist/module/owner-form-core.js +6 -0
- package/dist/module/owner-form-core2.js +264 -0
- package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
- package/dist/module/owner-form-inputs.js +6 -0
- package/dist/module/owner-form-inputs2.js +85 -0
- package/dist/module/owner-form.js +62 -188
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payment-provisioning-actions.js +178 -0
- package/dist/module/payment-provisioning-core.js +100 -62
- package/dist/module/payment-provisioning-form-buttons.js +2 -2
- package/dist/module/payment-provisioning-form-steps.js +94 -52
- package/dist/module/payments-list-core2.js +71 -49
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +92 -82
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/skeleton.js +18 -50
- package/dist/module/styled-host.js +4 -4
- package/dist/module/utils2.js +1 -31
- package/dist/module/utils3.js +23 -26
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Payment.d.ts +0 -28
- package/dist/types/api/services/business.service.d.ts +10 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-core.d.ts +0 -1
- package/dist/types/components/form/utils.d.ts +0 -1
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +12 -2
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
- package/dist/types/components.d.ts +309 -482
- package/dist/types/ui-components/button-spinner.d.ts +1 -0
- package/dist/types/ui-components/button.d.ts +10 -0
- package/dist/types/ui-components/index.d.ts +7 -0
- package/dist/types/ui-components/skeleton.d.ts +13 -0
- package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
- package/dist/types/ui-components/table-empty-state.d.ts +6 -0
- package/dist/types/ui-components/table-error-state.d.ts +6 -0
- package/dist/types/ui-components/table-loading-state.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +0 -3
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-17e4246f.entry.js +1 -0
- package/dist/webcomponents/{p-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
- package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
- package/dist/webcomponents/p-23014988.entry.js +1 -0
- package/dist/webcomponents/p-25dba252.entry.js +1 -0
- package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
- package/dist/webcomponents/{p-66758365.entry.js → p-301e0493.entry.js} +1 -1
- package/dist/webcomponents/p-304dd644.entry.js +1 -0
- package/dist/webcomponents/p-30a493cd.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/{p-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
- package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
- package/dist/webcomponents/{p-667a5aa8.js → p-4b4580dd.js} +1 -1
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -0
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/{p-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
- package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
- package/dist/webcomponents/{p-092e080c.js → p-63acf322.js} +1 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -0
- package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
- package/dist/webcomponents/{p-49b8e112.js → p-8603348a.js} +1 -1
- package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
- package/dist/webcomponents/p-8df7bde8.js +1 -0
- package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
- package/dist/webcomponents/p-9279aa49.entry.js +1 -0
- package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
- package/dist/webcomponents/{p-9631b768.entry.js → p-99022846.entry.js} +1 -1
- package/dist/webcomponents/p-9c9c7dac.js +1 -0
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/{p-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/{p-d5612f35.entry.js → p-d1fbeae5.entry.js} +1 -1
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -0
- package/dist/webcomponents/{p-e1651130.js → p-dce846bf.js} +1 -1
- package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
- package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
- package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
- package/dist/webcomponents/p-e333620e.js +1 -0
- package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
- package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +6 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/SubAccount-135ff8c8.js +0 -107
- package/dist/cjs/business.service-9214509a.js +0 -13
- package/dist/cjs/form-control-date.cjs.entry.js +0 -43
- package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
- package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
- package/dist/cjs/styled-host-b8bed12a.js +0 -14
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
- package/dist/collection/api/Proceed.js +0 -41
- package/dist/collection/api/SubAccount.js +0 -103
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
- package/dist/collection/components/business-list/business-list.js +0 -185
- package/dist/collection/components/business-list/business-list.stories.js +0 -68
- package/dist/collection/components/business-list/example.js +0 -12
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -143
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
- package/dist/collection/components/proceeds-list/example.js +0 -12
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
- package/dist/collection/components/skeleton/skeleton.css +0 -11
- package/dist/collection/components/skeleton/skeleton.js +0 -160
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
- package/dist/collection/components/table/table.css +0 -7
- package/dist/collection/components/table/table.js +0 -222
- package/dist/collection/components/table/utils.js +0 -4
- package/dist/collection/utils/styled-host/styled-host.js +0 -6
- package/dist/esm/SubAccount-7fcb1450.js +0 -105
- package/dist/esm/business.service-19a0c8d3.js +0 -11
- package/dist/esm/form-control-date.entry.js +0 -39
- package/dist/esm/form-control-error-text_2.entry.js +0 -31
- package/dist/esm/form-control-number-masked_2.entry.js +0 -88
- package/dist/esm/justifi-business-list.entry.js +0 -106
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
- package/dist/esm/justifi-proceeds-list.entry.js +0 -155
- package/dist/esm/justifi-skeleton.entry.js +0 -50
- package/dist/esm/justifi-subaccount-details.entry.js +0 -73
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
- package/dist/esm/justifi-table_2.entry.js +0 -75
- package/dist/esm/styled-host-57aae7fa.js +0 -12
- package/dist/esm/subaccount-account-details_4.entry.js +0 -51
- package/dist/esm/subaccount-bank-details.entry.js +0 -15
- package/dist/esm/subaccount-terms-details.entry.js +0 -15
- package/dist/module/SubAccount.js +0 -105
- package/dist/module/justifi-business-list.d.ts +0 -11
- package/dist/module/justifi-business-list.js +0 -147
- package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
- package/dist/module/justifi-payment-balance-transactions.js +0 -123
- package/dist/module/justifi-proceeds-list.d.ts +0 -11
- package/dist/module/justifi-proceeds-list.js +0 -198
- package/dist/module/justifi-skeleton.js +0 -6
- package/dist/module/justifi-subaccount-details.d.ts +0 -11
- package/dist/module/justifi-subaccount-details.js +0 -133
- package/dist/module/justifi-subaccounts-list.d.ts +0 -11
- package/dist/module/justifi-subaccounts-list.js +0 -144
- package/dist/module/justifi-table.js +0 -6
- package/dist/module/subaccount-account-details.d.ts +0 -11
- package/dist/module/subaccount-account-details.js +0 -6
- package/dist/module/subaccount-account-details2.js +0 -34
- package/dist/module/subaccount-bank-details.d.ts +0 -11
- package/dist/module/subaccount-bank-details.js +0 -35
- package/dist/module/subaccount-merchant-details.d.ts +0 -11
- package/dist/module/subaccount-merchant-details.js +0 -6
- package/dist/module/subaccount-merchant-details2.js +0 -33
- package/dist/module/subaccount-owners-details.d.ts +0 -11
- package/dist/module/subaccount-owners-details.js +0 -6
- package/dist/module/subaccount-owners-details2.js +0 -33
- package/dist/module/subaccount-representative-details.d.ts +0 -11
- package/dist/module/subaccount-representative-details.js +0 -6
- package/dist/module/subaccount-representative-details2.js +0 -33
- package/dist/module/subaccount-terms-details.d.ts +0 -11
- package/dist/module/subaccount-terms-details.js +0 -35
- package/dist/module/table.js +0 -93
- package/dist/types/api/Proceed.d.ts +0 -60
- package/dist/types/api/SubAccount.d.ts +0 -163
- package/dist/types/components/business-list/business-list.d.ts +0 -48
- package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
- package/dist/types/components/skeleton/skeleton.d.ts +0 -12
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
- package/dist/types/components/table/table.d.ts +0 -23
- package/dist/types/components/table/utils.d.ts +0 -3
- package/dist/types/utils/styled-host/styled-host.d.ts +0 -3
- package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
- package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
- package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
- package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
- package/dist/webcomponents/p-2306d44d.entry.js +0 -1
- package/dist/webcomponents/p-2af3672b.entry.js +0 -1
- package/dist/webcomponents/p-390157c9.entry.js +0 -1
- package/dist/webcomponents/p-412c7a22.entry.js +0 -1
- package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
- package/dist/webcomponents/p-54287db6.entry.js +0 -1
- package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
- package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
- package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
- package/dist/webcomponents/p-6700ac49.js +0 -1
- package/dist/webcomponents/p-68fd8283.js +0 -1
- package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
- package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
- package/dist/webcomponents/p-76180bb4.entry.js +0 -1
- package/dist/webcomponents/p-77dc159c.entry.js +0 -1
- package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
- package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
- package/dist/webcomponents/p-87932e16.js +0 -1
- package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
- package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
- package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
- package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
- package/dist/webcomponents/p-b53d7b7f.js +0 -1
- package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
- package/dist/webcomponents/p-c4264aaf.js +0 -1
- package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
- package/dist/webcomponents/p-d083a342.entry.js +0 -1
- package/dist/webcomponents/p-e46929a1.entry.js +0 -1
- package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
- package/dist/webcomponents/p-ed844504.js +0 -1
- package/dist/module/{index.esm.js → form.js} +2733 -2733
|
@@ -1,133 +1,79 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h
|
|
2
|
-
import { F as FormController } from './index.esm.js';
|
|
3
|
-
import { P as PHONE_MASKS } from './form-input-masks.js';
|
|
4
|
-
import { C as CoreBusinessInfo } from './Business.js';
|
|
5
|
-
import { A as Api } from './Api.js';
|
|
6
|
-
import './Pagination.js';
|
|
7
|
-
import './Payment.js';
|
|
8
|
-
import './Payout.js';
|
|
9
|
-
import { b as businessCoreInfoSchema } from './business-core-info-schema.js';
|
|
10
|
-
import { c as config } from './config.js';
|
|
11
|
-
import { p as parseCoreInfo } from './payload-parsers.js';
|
|
12
|
-
import { d as flattenNestedObject } from './utils2.js';
|
|
13
|
-
import { B as BusinessFormStep } from './business-form-types.js';
|
|
14
|
-
import { a as businessClassificationOptions } from './business-form-options.js';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
15
2
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
22
|
-
import { d as defineCustomElement$
|
|
3
|
+
import { m as makeGetBusiness, a as makePatchBusiness } from './payment-provisioning-actions.js';
|
|
4
|
+
import { B as BusinessService } from './business.service.js';
|
|
5
|
+
import { d as defineCustomElement$7 } from './form-control-date2.js';
|
|
6
|
+
import { d as defineCustomElement$6 } from './form-control-error-text2.js';
|
|
7
|
+
import { d as defineCustomElement$5 } from './form-control-help-text2.js';
|
|
8
|
+
import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
11
|
+
import { d as defineCustomElement$1 } from './business-core-info-form-step-core.js';
|
|
23
12
|
|
|
24
13
|
const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfoFormStep extends HTMLElement {
|
|
25
14
|
constructor() {
|
|
26
15
|
super();
|
|
27
16
|
this.__registerHost();
|
|
28
|
-
this.submitted = createEvent(this, "submitted", 7);
|
|
29
|
-
this.formLoading = createEvent(this, "formLoading", 7);
|
|
30
17
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
31
|
-
this.
|
|
32
|
-
|
|
33
|
-
try {
|
|
34
|
-
const response = await this.api.get(this.businessEndpoint);
|
|
35
|
-
this.coreInfo = new CoreBusinessInfo(response.data);
|
|
36
|
-
this.formController.setInitialValues(Object.assign({}, this.coreInfo));
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
this.errorEvent.emit({
|
|
40
|
-
errorCode: ComponentErrorCodes.FETCH_ERROR,
|
|
41
|
-
message: error.message,
|
|
42
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
43
|
-
data: error,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
finally {
|
|
47
|
-
this.formLoading.emit(false);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
this.sendData = async (onSuccess) => {
|
|
51
|
-
this.formLoading.emit(true);
|
|
52
|
-
try {
|
|
53
|
-
const payload = parseCoreInfo(flattenNestedObject(this.formController.values.getValue()));
|
|
54
|
-
const response = await this.api.patch(this.businessEndpoint, JSON.stringify(payload));
|
|
55
|
-
this.handleResponse(response, onSuccess);
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
this.errorEvent.emit({
|
|
59
|
-
errorCode: ComponentErrorCodes.PATCH_ERROR,
|
|
60
|
-
message: error.message,
|
|
61
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
62
|
-
data: error,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
finally {
|
|
66
|
-
this.formLoading.emit(false);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
this.inputHandler = (name, value) => {
|
|
70
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
71
|
-
};
|
|
72
|
-
this.formController = undefined;
|
|
73
|
-
this.errors = {};
|
|
74
|
-
this.coreInfo = {};
|
|
18
|
+
this.getBusiness = undefined;
|
|
19
|
+
this.patchBusiness = undefined;
|
|
75
20
|
this.authToken = undefined;
|
|
76
21
|
this.businessId = undefined;
|
|
77
22
|
this.allowOptionalFields = undefined;
|
|
78
23
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
handleResponse(response, onSuccess) {
|
|
83
|
-
if (response.error) {
|
|
84
|
-
this.errorEvent.emit({
|
|
85
|
-
errorCode: ComponentErrorCodes.PATCH_ERROR,
|
|
86
|
-
message: response.error.message,
|
|
87
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
88
|
-
data: response.error,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
onSuccess();
|
|
93
|
-
}
|
|
94
|
-
this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.coreInfo } });
|
|
24
|
+
propChanged() {
|
|
25
|
+
this.initializeApi();
|
|
95
26
|
}
|
|
96
27
|
async validateAndSubmit({ onSuccess }) {
|
|
97
|
-
this.
|
|
28
|
+
this.coreComponent.validateAndSubmit({ onSuccess });
|
|
98
29
|
}
|
|
99
|
-
;
|
|
100
30
|
componentWillLoad() {
|
|
101
|
-
this.
|
|
102
|
-
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
103
|
-
if (this.businessId && this.authToken) {
|
|
104
|
-
this.fetchData();
|
|
105
|
-
}
|
|
31
|
+
this.initializeApi();
|
|
106
32
|
}
|
|
107
|
-
|
|
108
|
-
this.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
33
|
+
initializeApi() {
|
|
34
|
+
if (this.authToken && this.businessId) {
|
|
35
|
+
this.getBusiness = makeGetBusiness({
|
|
36
|
+
authToken: this.authToken,
|
|
37
|
+
businessId: this.businessId,
|
|
38
|
+
service: new BusinessService()
|
|
39
|
+
});
|
|
40
|
+
this.patchBusiness = makePatchBusiness({
|
|
41
|
+
authToken: this.authToken,
|
|
42
|
+
businessId: this.businessId,
|
|
43
|
+
service: new BusinessService()
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.errorEvent.emit({
|
|
48
|
+
message: 'Missing required props',
|
|
49
|
+
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
50
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
112
53
|
}
|
|
113
54
|
render() {
|
|
114
|
-
|
|
115
|
-
return (h(Host, { key: '4ea42b813bdd6e5c59a62ae4ae869e86dfddd7ce', exportparts: 'label,input,input-invalid' }, h("form", { key: 'f5ec3be342eda82dee8a51fe2ee5a6da1ee8902e' }, h("fieldset", { key: 'e07041577f53badc6c172a2c6dc20b1066c03f4c' }, h("legend", { key: '2bcc8cc013eeee4e27c874d0bed4471515b68610' }, "General Info"), h("hr", { key: '6dc6f73cf851b9244c8d797bc5cefdfda848c7bc' }), h("div", { key: 'b2bfad85255ddfa76d405e45df3d668ad02a6fea', class: 'row gy-3' }, h("div", { key: 'a9a65df07f40621513ce4881dd203e90142d7670', class: 'col-12' }, h("form-control-text", { key: '7fe7ac765902c7cd9ed60004dc7be687d43b2e49', name: 'legal_name', label: 'Legal Name', defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '6fe2e395e4391480f4d6dafcfc57619176efc45c', class: 'col-12' }, h("form-control-text", { key: 'd19870345d79e4c44c3e667e2751ff6f344e1d58', name: 'doing_business_as', label: 'Doing Business As (DBA)', defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '39acda8180c70f7684aa2d73ef31bc199233c358', class: 'col-12 col-md-8' }, h("form-control-select", { key: '67f98ac21a69a851bb9489df198e06c8b517d45e', name: 'classification', label: 'Business Classification', options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: 'd54631f13e8998170de1f175d52d89d90035e688', class: 'col-12 col-md-4' }, h("form-control-date", { key: '8038e4f909c9bb2e5f3a8dd577f7b7f75e3d4f41', name: 'date_of_incorporation', label: 'Date of Incorporation', defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'ca43f206b14494ddaa55c625a2c408426ebcf529', class: 'col-12 col-md-6' }, h("form-control-text", { key: '7ccf50e04dad1a7e001c37074925f27f53ec831c', name: 'industry', label: 'Industry', defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '76136df0a434b7fce1b0307e962e4ea387a063d3', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'ddfd853ed46b3995484dff54d47af0c0d6c93b0c', name: 'tax_id', label: 'Tax ID (EIN or SSN)', defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9 })), h("div", { key: '1084c4d7a261b8fc0a9ceacc16b5823f09cfb807', class: 'col-12' }, h("form-control-text", { key: 'c9ca186a6f2cc10f43966de56e6a224103ddd1f3', name: 'website_url', label: 'Website URL', defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '55bc2f83a170fc1bec20c208460cc63b8f42a566', class: 'col-12 col-md-6' }, h("form-control-text", { key: '5c35db62f1d7d56e01a839df29b39aa55e569d5c', name: 'email', label: 'Email Address', defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'f74aadc2ea606365918f29091a6f6bb08841bf00', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: 'ef54ee012cbc30464bcdc7e887d5eb0523e30057', name: 'phone', label: 'Phone Number', defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
|
|
55
|
+
return (h("justifi-business-core-info-form-step-core", { key: '4ee53046d16fd42df4e09b10c338a740c22184ef', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
116
56
|
}
|
|
57
|
+
static get watchers() { return {
|
|
58
|
+
"authToken": ["propChanged"],
|
|
59
|
+
"businessId": ["propChanged"]
|
|
60
|
+
}; }
|
|
117
61
|
}, [0, "justifi-business-core-info-form-step", {
|
|
118
62
|
"authToken": [1, "auth-token"],
|
|
119
63
|
"businessId": [1, "business-id"],
|
|
120
64
|
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"coreInfo": [32],
|
|
65
|
+
"getBusiness": [32],
|
|
66
|
+
"patchBusiness": [32],
|
|
124
67
|
"validateAndSubmit": [64]
|
|
68
|
+
}, undefined, {
|
|
69
|
+
"authToken": ["propChanged"],
|
|
70
|
+
"businessId": ["propChanged"]
|
|
125
71
|
}]);
|
|
126
72
|
function defineCustomElement() {
|
|
127
73
|
if (typeof customElements === "undefined") {
|
|
128
74
|
return;
|
|
129
75
|
}
|
|
130
|
-
const components = ["justifi-business-core-info-form-step", "form-control-date", "form-control-error-text", "form-control-help-text", "form-control-number-masked", "form-control-select", "form-control-text"];
|
|
76
|
+
const components = ["justifi-business-core-info-form-step", "form-control-date", "form-control-error-text", "form-control-help-text", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-business-core-info-form-step-core"];
|
|
131
77
|
components.forEach(tagName => { switch (tagName) {
|
|
132
78
|
case "justifi-business-core-info-form-step":
|
|
133
79
|
if (!customElements.get(tagName)) {
|
|
@@ -136,30 +82,35 @@ function defineCustomElement() {
|
|
|
136
82
|
break;
|
|
137
83
|
case "form-control-date":
|
|
138
84
|
if (!customElements.get(tagName)) {
|
|
139
|
-
defineCustomElement$
|
|
85
|
+
defineCustomElement$7();
|
|
140
86
|
}
|
|
141
87
|
break;
|
|
142
88
|
case "form-control-error-text":
|
|
143
89
|
if (!customElements.get(tagName)) {
|
|
144
|
-
defineCustomElement$
|
|
90
|
+
defineCustomElement$6();
|
|
145
91
|
}
|
|
146
92
|
break;
|
|
147
93
|
case "form-control-help-text":
|
|
148
94
|
if (!customElements.get(tagName)) {
|
|
149
|
-
defineCustomElement$
|
|
95
|
+
defineCustomElement$5();
|
|
150
96
|
}
|
|
151
97
|
break;
|
|
152
98
|
case "form-control-number-masked":
|
|
153
99
|
if (!customElements.get(tagName)) {
|
|
154
|
-
defineCustomElement$
|
|
100
|
+
defineCustomElement$4();
|
|
155
101
|
}
|
|
156
102
|
break;
|
|
157
103
|
case "form-control-select":
|
|
158
104
|
if (!customElements.get(tagName)) {
|
|
159
|
-
defineCustomElement$
|
|
105
|
+
defineCustomElement$3();
|
|
160
106
|
}
|
|
161
107
|
break;
|
|
162
108
|
case "form-control-text":
|
|
109
|
+
if (!customElements.get(tagName)) {
|
|
110
|
+
defineCustomElement$2();
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case "justifi-business-core-info-form-step-core":
|
|
163
114
|
if (!customElements.get(tagName)) {
|
|
164
115
|
defineCustomElement$1();
|
|
165
116
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as create$3 } from './
|
|
1
|
+
import { c as create$3 } from './form.js';
|
|
2
2
|
import { m as businessNameValidation, q as websiteUrlValidation, t as emailValidation, u as phoneValidation, v as doingBusinessAsValidation, x as businessClassificationValidation, y as industryValidation, z as taxIdValidation, A as dateOfIncorporationValidation } from './schema-validations.js';
|
|
3
3
|
|
|
4
4
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
@@ -29,7 +29,7 @@ const BusinessCoreInfo = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfo
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '59fa8a9a4bef1875845633b66b60ebf2350fe61e', exportparts: "label,input,input-invalid" }, h("fieldset", { key: '7b6c58d55cf2ed0f5020f043e164c63423d9ee4f' }, h("legend", { key: '5be18bc86f27541d7c6bb4ea4e05e3df4c9d87c0' }, "General Info"), h("hr", { key: '33747ac14e24ef2ecf9e84970cd8924b9f5a5c53' }), h("div", { key: '3d550cac878b9676d620fbea3c14dacf4db4e72f', class: "row gy-3" }, h("div", { key: 'd2226f4bdbbd87169d1ef75f9ffc1d7f6a6acba7', class: "col-12" }, h("form-control-text", { key: '4367c1eeec808b9b134c880be587f58327778bb2', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '455cacee1c69e28fc447e893bf648ff30946f66f', class: "col-12" }, h("form-control-text", { key: '1ea37fac67414741edab132c0b8d70c84cb4f1db', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '3da63dd018d2503a9b47a2b0950f95ce887ba38d', class: "col-12 col-md-8" }, h("form-control-select", { key: 'a059c7fda30418c4338ac58630170104d616c0f2', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '9157cac7c6999b25c8acf4e698d082a0fcbffe9d', class: "col-12 col-md-4" }, h("form-control-date", { key: '0726e93b8f6b2bd792102bb131c13e0806717f82', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'f3391ac0166116ef685c6d26e6d0705d087fa83d', class: "col-12 col-md-6" }, h("form-control-text", { key: '682a18784fab9410002c7949a7cfa606f3ec5784', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '4a2d95cc422ebc882e2a47237f5b1324a7660b36', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '0d138b6bafde2b5fc7c45f9d4d51746e5f91baaa', name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { key: 'a895244496b196804a16931589f6f353c49476e8', class: "col-12" }, h("form-control-text", { key: '68375469c212b97e76861e5b8590dd502533a35a', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '84d1a7f2b51b6dae3283bbd6d0f5aca81a0da07b', class: "col-12 col-md-6" }, h("form-control-text", { key: '27f9dd986a431fa14028f1faa3997bbdb623574e', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '0902cff0a887d5f19c5326ce135fed5f54d6643a', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'bbce92814cbf42f17a0a9e1e1df194d3ea3a15b0', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
33
33
|
}
|
|
34
34
|
}, [0, "justifi-business-core-info", {
|
|
35
35
|
"formController": [16],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h
|
|
2
|
-
import { c as create$3, F as FormController } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as create$3, F as FormController } from './form.js';
|
|
3
3
|
import { B as BusinessFormStep } from './business-form-types.js';
|
|
4
4
|
import { a as Business } from './Business.js';
|
|
5
5
|
import { A as Api } from './Api.js';
|
|
@@ -7,12 +7,12 @@ import { c as config } from './config.js';
|
|
|
7
7
|
import { B as voidedCheckValidation, C as governmentIdValidation, D as ss4Validation, E as otherDocumentValidation, F as balanceSheetValidation, G as bankStatementValidation, H as profitAndLossStatementValidation } from './schema-validations.js';
|
|
8
8
|
import { a as EntityDocument, b as EntityDocumentStorage } from './Document.js';
|
|
9
9
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
10
|
-
import {
|
|
11
|
-
import { d as defineCustomElement$5 } from './form-control-
|
|
12
|
-
import { d as defineCustomElement$4 } from './form-control-
|
|
13
|
-
import { d as defineCustomElement$3 } from './
|
|
14
|
-
import { d as defineCustomElement$2 } from './business-
|
|
15
|
-
import { d as defineCustomElement$1 } from './
|
|
10
|
+
import { S as Skeleton } from './skeleton.js';
|
|
11
|
+
import { d as defineCustomElement$5 } from './form-control-error-text2.js';
|
|
12
|
+
import { d as defineCustomElement$4 } from './form-control-file2.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './form-control-help-text2.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './business-document-upload-input-group.js';
|
|
15
|
+
import { d as defineCustomElement$1 } from './business-documents-on-file.js';
|
|
16
16
|
|
|
17
17
|
const businessDocumentSchema = (volume, documents, allowOptionalFields) => {
|
|
18
18
|
const schema = create$3({
|
|
@@ -140,22 +140,26 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
140
140
|
this.documentData[docType] = documentList;
|
|
141
141
|
};
|
|
142
142
|
this.sendData = async (onSuccess) => {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
143
|
+
try {
|
|
144
|
+
const docArray = Object.values(this.documentData).flat();
|
|
145
|
+
if (!docArray.length) {
|
|
146
|
+
return onSuccess();
|
|
147
|
+
}
|
|
148
|
+
const documentRecords = docArray.map(docData => this.createDocumentRecord(docData));
|
|
149
|
+
const recordsCreated = await Promise.all(documentRecords);
|
|
150
|
+
if (!recordsCreated) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const uploads = docArray.map(docData => this.uploadDocument(docData));
|
|
154
|
+
const uploadsCompleted = await Promise.all(uploads);
|
|
155
|
+
if (!uploadsCompleted) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
await onSuccess();
|
|
151
159
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
if (!uploadsCompleted) {
|
|
155
|
-
return;
|
|
160
|
+
finally {
|
|
161
|
+
this.formLoading.emit(false);
|
|
156
162
|
}
|
|
157
|
-
uploadsCompleted && this.formLoading.emit(false);
|
|
158
|
-
await onSuccess();
|
|
159
163
|
};
|
|
160
164
|
this.formController = undefined;
|
|
161
165
|
this.errors = {};
|
|
@@ -194,7 +198,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
194
198
|
return null;
|
|
195
199
|
}
|
|
196
200
|
if (this.isLoading) {
|
|
197
|
-
return h(
|
|
201
|
+
return h(Skeleton, { variant: 'rounded', height: '50px' });
|
|
198
202
|
}
|
|
199
203
|
return h("justifi-business-documents-on-file", { documents: this.existingDocuments });
|
|
200
204
|
}
|
|
@@ -203,12 +207,12 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
203
207
|
return null;
|
|
204
208
|
}
|
|
205
209
|
if (this.isLoading) {
|
|
206
|
-
return h(
|
|
210
|
+
return h(Skeleton, { variant: 'rounded', height: '350px' });
|
|
207
211
|
}
|
|
208
212
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
209
213
|
}
|
|
210
214
|
render() {
|
|
211
|
-
return (h(
|
|
215
|
+
return (h("form", { key: '8f2e1d262cd5050b315019a1947b1474eaf995de' }, h("fieldset", { key: 'd022b1c294835e456a9067fcfdbf2b93a33c8ca8' }, h("legend", { key: '522ecbab0489efa6d4294f38f792a28770010f1e' }, "Document Uploads"), h("p", { key: 'b49a6b3a4a7c79b368b20455b4ed4a943f08ec51' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '3d8c2f7f5b128b99ceaa501166ae60c490b12378' }), this.documentsOnFile, h("div", { key: 'd2627185483e1be43c0b34d80b1fcfa850decd28', class: "d-flex flex-column" }, this.formInputs))));
|
|
212
216
|
}
|
|
213
217
|
}, [0, "justifi-business-document-upload-form-step", {
|
|
214
218
|
"authToken": [1, "auth-token"],
|
|
@@ -227,7 +231,7 @@ function defineCustomElement() {
|
|
|
227
231
|
if (typeof customElements === "undefined") {
|
|
228
232
|
return;
|
|
229
233
|
}
|
|
230
|
-
const components = ["justifi-business-document-upload-form-step", "form-control-error-text", "form-control-file", "form-control-help-text", "justifi-business-document-upload-input-group", "justifi-business-documents-on-file"
|
|
234
|
+
const components = ["justifi-business-document-upload-form-step", "form-control-error-text", "form-control-file", "form-control-help-text", "justifi-business-document-upload-input-group", "justifi-business-documents-on-file"];
|
|
231
235
|
components.forEach(tagName => { switch (tagName) {
|
|
232
236
|
case "justifi-business-document-upload-form-step":
|
|
233
237
|
if (!customElements.get(tagName)) {
|
|
@@ -235,31 +239,26 @@ function defineCustomElement() {
|
|
|
235
239
|
}
|
|
236
240
|
break;
|
|
237
241
|
case "form-control-error-text":
|
|
238
|
-
if (!customElements.get(tagName)) {
|
|
239
|
-
defineCustomElement$6();
|
|
240
|
-
}
|
|
241
|
-
break;
|
|
242
|
-
case "form-control-file":
|
|
243
242
|
if (!customElements.get(tagName)) {
|
|
244
243
|
defineCustomElement$5();
|
|
245
244
|
}
|
|
246
245
|
break;
|
|
247
|
-
case "form-control-
|
|
246
|
+
case "form-control-file":
|
|
248
247
|
if (!customElements.get(tagName)) {
|
|
249
248
|
defineCustomElement$4();
|
|
250
249
|
}
|
|
251
250
|
break;
|
|
252
|
-
case "
|
|
251
|
+
case "form-control-help-text":
|
|
253
252
|
if (!customElements.get(tagName)) {
|
|
254
253
|
defineCustomElement$3();
|
|
255
254
|
}
|
|
256
255
|
break;
|
|
257
|
-
case "justifi-business-
|
|
256
|
+
case "justifi-business-document-upload-input-group":
|
|
258
257
|
if (!customElements.get(tagName)) {
|
|
259
258
|
defineCustomElement$2();
|
|
260
259
|
}
|
|
261
260
|
break;
|
|
262
|
-
case "justifi-
|
|
261
|
+
case "justifi-business-documents-on-file":
|
|
263
262
|
if (!customElements.get(tagName)) {
|
|
264
263
|
defineCustomElement$1();
|
|
265
264
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { E as EntityDocumentType } from './Document.js';
|
|
3
3
|
import { e as isInRange } from './utils2.js';
|
|
4
4
|
import { d as defineCustomElement$3 } from './form-control-error-text2.js';
|
|
@@ -87,7 +87,7 @@ const BusinessDocumentUploadInputGroup = /*@__PURE__*/ proxyCustomElement(class
|
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
89
|
const inputsConfig = this.inputConfigs;
|
|
90
|
-
return (h(
|
|
90
|
+
return (h("div", { key: '8035b474e298cae43e5ceda5594fd3891902a300', class: "row gy-3" }, inputsConfig.map(config => (h("div", { class: "col-12 col-md-6" }, h("form-control-file", { name: config.name, label: config.label, helpText: config.helpText, documentType: config.documentType, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors[config.name], multiple: true }))))));
|
|
91
91
|
}
|
|
92
92
|
}, [0, "justifi-business-document-upload-input-group", {
|
|
93
93
|
"paymentVolume": [1, "payment-volume"],
|
|
@@ -13,7 +13,7 @@ const BusinessDocumentsOnFile = /*@__PURE__*/ proxyCustomElement(class BusinessD
|
|
|
13
13
|
}
|
|
14
14
|
return (h("div", null, h("div", { class: 'card' }, h("div", { class: 'card-body' }, h("h5", { class: 'card-title' }, "Documents Already on File"), h("div", { class: 'table-responsive' }, h("table", { class: 'table table-sm table-borderless' }, h("thead", { part: "table-head" }, h("tr", { part: 'table-head-row' }, h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "File Name"), h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "File Type"), h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "Document Type"), h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "Date Uploaded"))), h("tbody", { part: 'table-body' }, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
|
|
15
15
|
.map((document, index) => {
|
|
16
|
-
return (h("tr", { class: index === 0 ? '
|
|
16
|
+
return (h("tr", { class: index === 0 ? 'border-bottom border-top' : 'border-bottom' }, h("td", { part: "table-cell" }, document.file_name), h("td", { part: "table-cell" }, document.file_type), h("td", { part: "table-cell" }, snakeCaseToHumanReadable(document.document_type)), h("td", { part: "table-cell" }, `${formatDate(document.created_at)} - ${formatTimeSeconds(document.created_at)}`)));
|
|
17
17
|
})))))), h("hr", null)));
|
|
18
18
|
}
|
|
19
19
|
}, [0, "justifi-business-documents-on-file", {
|
|
@@ -19,6 +19,10 @@ var BusinessFormClickActions;
|
|
|
19
19
|
BusinessFormClickActions["nextStep"] = "nextStep";
|
|
20
20
|
BusinessFormClickActions["previousStep"] = "previousStep";
|
|
21
21
|
BusinessFormClickActions["submit"] = "submit";
|
|
22
|
+
BusinessFormClickActions["removeOwner"] = "removeOwner";
|
|
23
|
+
BusinessFormClickActions["addOwner"] = "addOwner";
|
|
24
|
+
BusinessFormClickActions["addOwnerForm"] = "addOwnerForm";
|
|
25
|
+
BusinessFormClickActions["updateOwner"] = "updateOwner";
|
|
22
26
|
})(BusinessFormClickActions || (BusinessFormClickActions = {}));
|
|
23
27
|
var OwnerFormServerErrors;
|
|
24
28
|
(function (OwnerFormServerErrors) {
|
|
@@ -26,17 +30,10 @@ var OwnerFormServerErrors;
|
|
|
26
30
|
OwnerFormServerErrors["patchData"] = "Error updating owner data";
|
|
27
31
|
OwnerFormServerErrors["postData"] = "Error adding owner data";
|
|
28
32
|
})(OwnerFormServerErrors || (OwnerFormServerErrors = {}));
|
|
29
|
-
var OwnerFormClickActions;
|
|
30
|
-
(function (OwnerFormClickActions) {
|
|
31
|
-
OwnerFormClickActions["removeOwner"] = "removeOwner";
|
|
32
|
-
OwnerFormClickActions["addOwner"] = "addOwner";
|
|
33
|
-
OwnerFormClickActions["addOwnerForm"] = "addOwnerForm";
|
|
34
|
-
OwnerFormClickActions["updateOwner"] = "updateOwner";
|
|
35
|
-
})(OwnerFormClickActions || (OwnerFormClickActions = {}));
|
|
36
33
|
var DocumentFormServerErrors;
|
|
37
34
|
(function (DocumentFormServerErrors) {
|
|
38
35
|
DocumentFormServerErrors["fetchData"] = "Error retrieving document data";
|
|
39
36
|
DocumentFormServerErrors["sendData"] = "Error uploading document data";
|
|
40
37
|
})(DocumentFormServerErrors || (DocumentFormServerErrors = {}));
|
|
41
38
|
|
|
42
|
-
export { BusinessFormStep as B,
|
|
39
|
+
export { BusinessFormStep as B, BusinessFormServerErrors as a, BusinessFormClickActions as b };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as create$3, a as create$6 } from './
|
|
1
|
+
import { c as create$3, a as create$6 } from './form.js';
|
|
2
2
|
import { a as addressSchema } from './business-address-schema.js';
|
|
3
3
|
import { i as identityNameValidation, I as identityTitleValidation, t as emailValidation, u as phoneValidation, J as dobValidation, K as ssnValidation } from './schema-validations.js';
|
|
4
4
|
|