@justifi/webcomponents 5.1.0 → 5.3.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/{Checkout-2ff4f9c8.js → Checkout-0f1c8abe.js} +1 -1
- package/dist/cjs/Document-0b828345.js +58 -0
- package/dist/cjs/{Payment-84817e2d.js → Payment-c47ed1e1.js} +1 -1
- package/dist/cjs/{SubAccount-f236913b.js → SubAccount-509ebf93.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-fbf58cb9.js → badge-ccfe03bf.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +130 -0
- package/dist/cjs/bank-account-form_9.cjs.entry.js +16 -13
- package/dist/cjs/billing-form_3.cjs.entry.js +8 -7
- package/dist/cjs/{business-additional-questions-schema-caa23e95.js → business-additional-questions-schema-2f66f025.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business-identity-schema-0c537067.js → business-identity-schema-be495474.js} +1 -1
- package/dist/cjs/{business.service-ffb6f478.js → business.service-d575b515.js} +7 -0
- package/dist/cjs/{button-e7796b07.js → button-8b634147.js} +1 -1
- package/dist/cjs/{check-pkg-version-931df996.js → check-pkg-version-1658df6f.js} +1 -1
- package/dist/cjs/{checkout.service-e9c05c15.js → checkout.service-057b5a7a.js} +5 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -10
- package/dist/cjs/{checkouts-table-0f19c1e6.js → checkouts-table-efa1cbab.js} +3 -3
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_4.cjs.entry.js} +141 -2
- package/dist/cjs/{dispute.service-9272a2a6.js → dispute.service-df9e1830.js} +5 -3
- package/dist/cjs/{event-types-aa1a9be1.js → event-types-34b103b4.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-c1f49f35.js → form-control-error-text-46a7f2dd.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-help-text-e6cc71a7.js → form-control-help-text-98c882e3.js} +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/{get-payout-csv-778db023.js → get-payout-csv-527a238c.js} +5 -4
- package/dist/cjs/{get-subaccounts-b087fa39.js → get-subaccounts-6068c1aa.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{header-1-96b97cab.js → header-1-4c21f7ca.js} +1 -1
- package/dist/cjs/{header-3-ce77b96b.js → header-3-130206cc.js} +1 -1
- package/dist/cjs/{insurance-state-8959c7c7.js → insurance-state-21fde44f.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +833 -0
- package/dist/cjs/{justifi-additional-questions-form-step_10.cjs.entry.js → justifi-additional-questions-form-step_9.cjs.entry.js} +29 -226
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +15 -13
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -9
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -8
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +25 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -14
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -5
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -11
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-52ac8376.js → package-06419e54.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-addf2176.js → parts-b2ff8b68.js} +14 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +13 -13
- package/dist/cjs/{payment-provisioning-actions-fbd30d1b.js → payment-provisioning-actions-382ab48c.js} +33 -2
- package/dist/cjs/{payment.service-042c7c99.js → payment.service-3eebfe3e.js} +5 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +22 -19
- package/dist/cjs/payments-list-params-state-442d9944.js +22 -0
- package/dist/cjs/{payments-status-411c325c.js → payments-status-ec12ee6a.js} +1 -1
- package/dist/cjs/{payments-table-16f3f95e.js → payments-table-f3aa174d.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payouts-list-core.cjs.entry.js +13 -12
- package/dist/cjs/{payouts-status-0951e39d.js → payouts-status-9f2e9a3a.js} +1 -1
- package/dist/cjs/{payouts-table-bc15179c.js → payouts-table-4efa53fa.js} +3 -3
- package/dist/cjs/{schema-validations-0be8068a.js → schema-validations-cc4e6071.js} +5 -92
- package/dist/cjs/{skeleton-c4903a53.js → skeleton-0353466d.js} +1 -1
- package/dist/cjs/{spinner-aac395e3.js → spinner-4fc60a51.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +12 -10
- package/dist/cjs/{terminals-table-3c19847b.js → terminals-table-5e4bce93.js} +2 -2
- package/dist/cjs/{utils-a05a8bf6.js → utils-134dda01.js} +1 -1
- package/dist/cjs/{utils-5fb95d31.js → utils-337befa9.js} +0 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/index.js +5 -0
- package/dist/collection/api/services/business.service.js +6 -0
- package/dist/collection/collection-manifest.json +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/{document-uploads/business-document-upload-input-group.js → bank-account/bank-account-document-inputs.js} +19 -58
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +85 -0
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +207 -47
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +15 -7
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +63 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +32 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -1
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +8 -4
- package/dist/collection/components/business-forms/schemas/schema-validations.js +2 -4
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +1 -1
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +5 -2
- 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/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payments-list/get-payments.js +4 -1
- package/dist/collection/components/payments-list/payments-list-core.js +10 -11
- package/dist/collection/components/payments-list/payments-list-filters.js +113 -3
- package/dist/collection/components/payments-list/payments-list-params-state.js +11 -5
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +9 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/docs.json +580 -520
- package/dist/esm/{Checkout-d476bb83.js → Checkout-8325c97a.js} +1 -1
- package/dist/esm/Document-1907c0d4.js +55 -0
- package/dist/esm/{Payment-47630113.js → Payment-82d2f453.js} +1 -1
- package/dist/esm/{SubAccount-f31349a9.js → SubAccount-a73bf971.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-b034e71b.js → badge-938ba4b1.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +123 -0
- package/dist/esm/bank-account-form_9.entry.js +16 -13
- package/dist/esm/billing-form_3.entry.js +8 -7
- package/dist/esm/{business-additional-questions-schema-aba9747e.js → business-additional-questions-schema-212a96ed.js} +1 -1
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-8b0f1619.js → business-identity-schema-05bd2a5f.js} +1 -1
- package/dist/esm/{business.service-ab2663a3.js → business.service-6a208f8f.js} +7 -1
- package/dist/esm/{button-8a02823c.js → button-4b3f3934.js} +1 -1
- package/dist/esm/{check-pkg-version-f613bceb.js → check-pkg-version-bac7eb5e.js} +1 -1
- package/dist/esm/{checkout.service-c275270e.js → checkout.service-ac067baa.js} +5 -3
- package/dist/esm/checkouts-list-core.entry.js +12 -10
- package/dist/esm/{checkouts-table-115bacc4.js → checkouts-table-1634366d.js} +3 -3
- package/dist/esm/{custom-popper.entry.js → custom-popper_4.entry.js} +140 -4
- package/dist/esm/{dispute.service-882e35ed.js → dispute.service-26a788a8.js} +5 -3
- package/dist/esm/{event-types-948c3b14.js → event-types-fd7a05d9.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-066cdad4.js → form-control-error-text-b3d14e92.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +4 -4
- package/dist/esm/{form-control-help-text-3b6f5980.js → form-control-help-text-7b07fc37.js} +1 -1
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/{get-payout-csv-50aea928.js → get-payout-csv-684fece6.js} +5 -4
- package/dist/esm/{get-subaccounts-ab3dd32c.js → get-subaccounts-b1bed757.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-75c284dd.js → header-1-4db0c986.js} +1 -1
- package/dist/esm/{header-3-4a327395.js → header-3-fd150ccf.js} +1 -1
- package/dist/esm/{insurance-state-b495be64.js → insurance-state-529e2d0d.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +824 -0
- package/dist/esm/{justifi-additional-questions-form-step_10.entry.js → justifi-additional-questions-form-step_9.entry.js} +31 -227
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +15 -13
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +10 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +14 -13
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +9 -8
- package/dist/esm/justifi-dispute-notification_3.entry.js +14 -13
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-owner-form_3.entry.js +7 -6
- package/dist/esm/justifi-payment-details.entry.js +11 -10
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -4
- package/dist/esm/justifi-payments-list-filters.entry.js +25 -4
- package/dist/esm/justifi-payments-list.entry.js +18 -14
- package/dist/esm/justifi-payout-details.entry.js +11 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +14 -13
- package/dist/esm/justifi-refund-form.entry.js +7 -5
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -8
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +12 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-9b94eb81.js → package-90ebd343.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-93f379ab.js → parts-ab2bb4b5.js} +9 -1
- package/dist/esm/payment-details-core.entry.js +13 -13
- package/dist/esm/{payment-provisioning-actions-a262ee82.js → payment-provisioning-actions-726795a0.js} +33 -3
- package/dist/esm/{payment.service-92b90855.js → payment.service-2e418da1.js} +5 -3
- package/dist/esm/payments-list-core.entry.js +22 -19
- package/dist/esm/payments-list-params-state-d05b24aa.js +16 -0
- package/dist/esm/{payments-status-82466054.js → payments-status-abf1724b.js} +1 -1
- package/dist/esm/{payments-table-c0bb25b6.js → payments-table-88fbab49.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +8 -8
- package/dist/esm/payouts-list-core.entry.js +13 -12
- package/dist/esm/{payouts-status-b98c8297.js → payouts-status-d9987a8a.js} +1 -1
- package/dist/esm/{payouts-table-4382a264.js → payouts-table-055d3633.js} +3 -3
- package/dist/esm/{schema-validations-5b0ac96b.js → schema-validations-ccea6a06.js} +4 -84
- package/dist/esm/{skeleton-3bcb2b5d.js → skeleton-ee7c3b32.js} +1 -1
- package/dist/esm/{spinner-b83f3a87.js → spinner-8ec6669a.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminals-list-core.entry.js +12 -10
- package/dist/esm/{terminals-table-8f1c2146.js → terminals-table-2963e65b.js} +2 -2
- package/dist/esm/{utils-7fb6331d.js → utils-c2dc83b2.js} +1 -1
- package/dist/esm/{utils-b76d791e.js → utils-c37124fc.js} +1 -4
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +1 -1
- package/dist/module/Payment.js +1 -1
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-document-form-inputs.d.ts +11 -0
- package/dist/module/bank-account-document-form-inputs.js +6 -0
- package/dist/module/bank-account-document-inputs.js +58 -0
- package/dist/module/bank-account-form-inputs.d.ts +11 -0
- package/dist/module/bank-account-form-inputs.js +6 -0
- package/dist/module/bank-account-form-inputs2.js +63 -0
- package/dist/module/bank-account-form2.js +1 -1
- package/dist/module/billing-form-wrapper.js +1 -1
- package/dist/module/business-additional-questions-form-step-core.js +2 -2
- package/dist/module/business-bank-account-form-step-core.js +239 -64
- package/dist/module/business-bank-account-form-step.js +42 -5
- package/dist/module/business-core-info-form-step-core.js +2 -2
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-documents-on-file.d.ts +11 -0
- package/dist/module/business-documents-on-file.js +4 -36
- package/dist/module/business-documents-on-file2.js +45 -0
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step-core.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +9 -11
- package/dist/module/business.service.js +7 -1
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-form2.js +1 -1
- package/dist/module/checkout-core.js +2 -2
- package/dist/module/checkout.service.js +2 -0
- package/dist/module/checkouts-list-core2.js +6 -4
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +2 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/event-types.js +22 -61
- package/dist/module/event-types2.js +61 -22
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +3 -3
- package/dist/module/form-control-date2.js +3 -3
- package/dist/module/form-control-error-text.js +1 -1
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +3 -3
- package/dist/module/form-control-monetary2.js +3 -3
- package/dist/module/form-control-number-masked2.js +3 -3
- package/dist/module/form-control-number.js +3 -3
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +3 -3
- package/dist/module/form-control-text2.js +3 -3
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/form-control-tooltip2.js +1 -1
- package/dist/module/get-payout-csv.js +2 -1
- package/dist/module/get-subaccounts.js +2 -1
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/justifi-business-form.js +3 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +3 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-provisioning.js +50 -56
- package/dist/module/justifi-payments-list-filters.js +32 -5
- package/dist/module/justifi-payments-list.js +7 -3
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +2 -1
- package/dist/module/justifi-refund-form.js +3 -1
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +2 -1
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/new-payment-method.js +5 -2
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-core2.js +2 -2
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +9 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-provisioning-actions.js +33 -3
- package/dist/module/payment-provisioning-core.js +50 -56
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +51 -58
- package/dist/module/payment.service.js +2 -0
- package/dist/module/payments-list-core2.js +15 -13
- package/dist/module/payments-list-params-state.js +11 -5
- package/dist/module/payout-details-core2.js +2 -2
- package/dist/module/payouts-list-core2.js +6 -5
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +2 -2
- package/dist/module/schema-validations.js +4 -31
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +2 -2
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminals-list-core2.js +5 -3
- package/dist/module/utils2.js +1 -4
- package/dist/types/api/index.d.ts +4 -0
- package/dist/types/api/services/business.service.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +18 -6
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -1
- package/dist/types/components/business-forms/payment-provisioning/{document-uploads → bank-account}/business-documents-on-file.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -1
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +5 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -1
- package/dist/types/components/checkout/payment-method-payload.d.ts +2 -0
- package/dist/types/components/payments-list/get-payments.d.ts +2 -1
- package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
- package/dist/types/components/payments-list/payments-list-filters.d.ts +5 -0
- package/dist/types/components/payments-list/payments-list-params-state.d.ts +4 -3
- package/dist/types/components.d.ts +81 -101
- package/dist/types/styles/parts.d.ts +8 -0
- package/dist/webcomponents/{p-2ce40098.js → p-01d4e35a.js} +1 -1
- package/dist/webcomponents/{p-d1f78cb5.js → p-0277c1b2.js} +1 -1
- package/dist/webcomponents/p-045d4ebf.entry.js +1 -0
- package/dist/webcomponents/p-08d87a52.entry.js +1 -0
- package/dist/webcomponents/p-0e68b7d6.entry.js +1 -0
- package/dist/webcomponents/p-0ef9eae6.entry.js +1 -0
- package/dist/webcomponents/{p-7b1fcab5.entry.js → p-0f6ae5ea.entry.js} +1 -1
- package/dist/webcomponents/p-131db5d1.entry.js +1 -0
- package/dist/webcomponents/p-1603fe4d.js +1 -0
- package/dist/webcomponents/p-18a7a9e6.entry.js +1 -0
- package/dist/webcomponents/p-1e8a1e01.entry.js +1 -0
- package/dist/webcomponents/{p-4c4f9e3b.js → p-21431a04.js} +1 -1
- package/dist/webcomponents/p-21cf557e.entry.js +1 -0
- package/dist/webcomponents/{p-09fd4ee2.entry.js → p-2916bb62.entry.js} +1 -1
- package/dist/webcomponents/p-298e290e.js +1 -0
- package/dist/webcomponents/{p-16a9e343.js → p-2a136295.js} +1 -1
- package/dist/webcomponents/{p-74736657.js → p-2ca5b5e4.js} +1 -1
- package/dist/webcomponents/p-2f94d478.entry.js +1 -0
- package/dist/webcomponents/p-31e2d12c.entry.js +1 -0
- package/dist/webcomponents/p-3c0b56cd.entry.js +1 -0
- package/dist/webcomponents/p-3d5c8a98.entry.js +1 -0
- package/dist/webcomponents/p-3e0f3d87.entry.js +1 -0
- package/dist/webcomponents/{p-f65abd18.js → p-3e716e03.js} +1 -1
- package/dist/webcomponents/p-40e23b13.js +1 -0
- package/dist/webcomponents/p-42047b14.entry.js +1 -0
- package/dist/webcomponents/p-44d2c762.entry.js +1 -0
- package/dist/webcomponents/{p-b04da0de.entry.js → p-56addd0a.entry.js} +1 -1
- package/dist/webcomponents/p-58f5e37b.entry.js +1 -0
- package/dist/webcomponents/{p-d86c1f11.entry.js → p-5afefc50.entry.js} +2 -2
- package/dist/webcomponents/{p-92d78790.js → p-5b72bab7.js} +1 -1
- package/dist/webcomponents/{p-7db2a4d5.entry.js → p-5baec916.entry.js} +1 -1
- package/dist/webcomponents/{p-f76a7f9c.entry.js → p-5bf4535a.entry.js} +1 -1
- package/dist/webcomponents/p-61f0a2ce.js +1 -0
- package/dist/webcomponents/{p-e0f21a47.entry.js → p-62696f63.entry.js} +1 -1
- package/dist/webcomponents/p-631d54a2.entry.js +1 -0
- package/dist/webcomponents/p-63caad6e.entry.js +1 -0
- package/dist/webcomponents/p-66b6c56b.js +1 -0
- package/dist/webcomponents/p-6b0bec46.entry.js +1 -0
- package/dist/webcomponents/p-6d2c8be2.entry.js +1 -0
- package/dist/webcomponents/p-7b04f492.entry.js +1 -0
- package/dist/webcomponents/p-7bcec768.entry.js +1 -0
- package/dist/webcomponents/{p-5d0763a5.js → p-7c31ec70.js} +1 -1
- package/dist/webcomponents/{p-2bd8650b.js → p-865733bc.js} +1 -1
- package/dist/webcomponents/{p-44604a45.js → p-8f25f016.js} +1 -1
- package/dist/webcomponents/p-9235b94e.entry.js +1 -0
- package/dist/webcomponents/{p-411382f3.js → p-938993c7.js} +1 -1
- package/dist/webcomponents/{p-d6e51c2f.js → p-94eba309.js} +1 -1
- package/dist/webcomponents/p-9540d2f2.js +1 -0
- package/dist/webcomponents/{p-83aa33f0.js → p-9894484a.js} +1 -1
- package/dist/webcomponents/p-98dad117.entry.js +1 -0
- package/dist/webcomponents/p-9ad6e792.entry.js +1 -0
- package/dist/webcomponents/p-a263a3db.entry.js +1 -0
- package/dist/webcomponents/p-aa02cf71.js +1 -0
- package/dist/webcomponents/p-ab1504b6.entry.js +1 -0
- package/dist/webcomponents/p-abb46c6b.entry.js +1 -0
- package/dist/webcomponents/p-b6e90400.entry.js +1 -0
- package/dist/webcomponents/{p-2b081961.entry.js → p-bada4783.entry.js} +1 -1
- package/dist/webcomponents/p-c470a150.js +1 -0
- package/dist/webcomponents/{p-eb644cb7.js → p-c5c03d88.js} +1 -1
- package/dist/webcomponents/p-c5ce98b0.entry.js +1 -0
- package/dist/webcomponents/{p-6b21b6c9.js → p-c845cb7a.js} +1 -1
- package/dist/webcomponents/p-cc4adf97.js +1 -0
- package/dist/webcomponents/{p-72a90154.entry.js → p-cdb7fa19.entry.js} +1 -1
- package/dist/webcomponents/p-d07c45e6.entry.js +1 -0
- package/dist/webcomponents/p-d0bde1cb.js +1 -0
- package/dist/webcomponents/p-d8c04275.js +1 -0
- package/dist/webcomponents/{p-541b7c36.entry.js → p-db37b175.entry.js} +1 -1
- package/dist/webcomponents/p-ddcd2ff7.entry.js +1 -0
- package/dist/webcomponents/p-de13f23c.js +1 -0
- package/dist/webcomponents/p-dec18cc4.js +1 -0
- package/dist/webcomponents/{p-3fa7d9c9.entry.js → p-e0db920c.entry.js} +1 -1
- package/dist/webcomponents/{p-39177d5a.js → p-e63fdbca.js} +1 -1
- package/dist/webcomponents/{p-730e8425.js → p-e8c3c23f.js} +1 -1
- package/dist/webcomponents/p-ea105de3.js +1 -0
- package/dist/webcomponents/p-ea5cf135.entry.js +1 -0
- package/dist/webcomponents/p-ed17e472.entry.js +1 -0
- package/dist/webcomponents/p-f0c0cbc8.entry.js +1 -0
- package/dist/webcomponents/{p-24a9c773.js → p-f19f9f61.js} +1 -1
- package/dist/webcomponents/p-f1e01bab.entry.js +1 -0
- package/dist/webcomponents/p-f2f2e20e.js +1 -0
- package/dist/webcomponents/p-f5925b1e.entry.js +1 -0
- package/dist/webcomponents/p-f694e1c8.js +1 -0
- package/dist/webcomponents/p-f706d70e.js +1 -0
- package/dist/webcomponents/p-f9728478.entry.js +1 -0
- package/dist/webcomponents/p-f9ac523e.entry.js +1 -0
- package/dist/webcomponents/p-f9d63d9d.js +1 -0
- package/dist/webcomponents/p-fa2b405c.entry.js +1 -0
- package/dist/webcomponents/{p-bf07d5d0.entry.js → p-facada09.entry.js} +1 -1
- package/dist/webcomponents/p-fe0d245f.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/form-control-file.cjs.entry.js +0 -67
- package/dist/cjs/form-control-select_3.cjs.entry.js +0 -145
- package/dist/cjs/justifi-additional-questions-form-step-core_9.cjs.entry.js +0 -800
- package/dist/cjs/payments-list-params-state-0ff968a7.js +0 -14
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +0 -338
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +0 -40
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/input-configurations.js +0 -52
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +0 -8
- package/dist/collection/components/business-forms/schemas/business-document-upload-schema.js +0 -23
- package/dist/esm/form-control-file.entry.js +0 -63
- package/dist/esm/form-control-select_3.entry.js +0 -139
- package/dist/esm/justifi-additional-questions-form-step-core_9.entry.js +0 -788
- package/dist/esm/payments-list-params-state-b3dab8bc.js +0 -10
- package/dist/module/business-document-upload-form-step.js +0 -272
- package/dist/module/business-document-upload-input-group.js +0 -128
- package/dist/module/business-terms-conditions-text.js +0 -28
- package/dist/module/justifi-business-document-upload-form-step.d.ts +0 -11
- package/dist/module/justifi-business-document-upload-form-step.js +0 -6
- package/dist/module/justifi-business-document-upload-input-group.d.ts +0 -11
- package/dist/module/justifi-business-document-upload-input-group.js +0 -6
- package/dist/module/justifi-business-documents-on-file.d.ts +0 -11
- package/dist/module/justifi-business-documents-on-file.js +0 -6
- package/dist/module/justifi-business-terms-conditions-text.d.ts +0 -11
- package/dist/module/justifi-business-terms-conditions-text.js +0 -6
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +0 -42
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.d.ts +0 -21
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/input-configurations.d.ts +0 -45
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.d.ts +0 -3
- package/dist/types/components/business-forms/schemas/business-document-upload-schema.d.ts +0 -17
- package/dist/webcomponents/p-04ce1f82.js +0 -1
- package/dist/webcomponents/p-0544f4a4.entry.js +0 -1
- package/dist/webcomponents/p-060ff1a1.js +0 -1
- package/dist/webcomponents/p-0658b707.entry.js +0 -1
- package/dist/webcomponents/p-0d7e7957.js +0 -1
- package/dist/webcomponents/p-0f4168f4.entry.js +0 -1
- package/dist/webcomponents/p-10cface4.entry.js +0 -1
- package/dist/webcomponents/p-10f9ff7b.entry.js +0 -1
- package/dist/webcomponents/p-12233a57.entry.js +0 -1
- package/dist/webcomponents/p-135e24c0.js +0 -1
- package/dist/webcomponents/p-14d21d66.entry.js +0 -1
- package/dist/webcomponents/p-156f0a23.entry.js +0 -1
- package/dist/webcomponents/p-1a27f22e.js +0 -1
- package/dist/webcomponents/p-1e2526c8.entry.js +0 -1
- package/dist/webcomponents/p-2c7441ea.entry.js +0 -1
- package/dist/webcomponents/p-2d27d054.entry.js +0 -1
- package/dist/webcomponents/p-351c7fa3.entry.js +0 -1
- package/dist/webcomponents/p-3f209fcc.entry.js +0 -1
- package/dist/webcomponents/p-46769ec3.entry.js +0 -1
- package/dist/webcomponents/p-47cd431c.js +0 -1
- package/dist/webcomponents/p-4bcfdb99.entry.js +0 -1
- package/dist/webcomponents/p-4e122ace.js +0 -1
- package/dist/webcomponents/p-4e92b1ac.entry.js +0 -1
- package/dist/webcomponents/p-560bc606.entry.js +0 -1
- package/dist/webcomponents/p-5d177a30.js +0 -1
- package/dist/webcomponents/p-67aef066.entry.js +0 -1
- package/dist/webcomponents/p-6bc01617.js +0 -1
- package/dist/webcomponents/p-6e8be579.entry.js +0 -1
- package/dist/webcomponents/p-73323a41.entry.js +0 -1
- package/dist/webcomponents/p-73619f0a.js +0 -1
- package/dist/webcomponents/p-74d6e182.entry.js +0 -1
- package/dist/webcomponents/p-783f72a5.entry.js +0 -1
- package/dist/webcomponents/p-7bddbee4.js +0 -1
- package/dist/webcomponents/p-850b7717.entry.js +0 -1
- package/dist/webcomponents/p-87ce7b69.js +0 -1
- package/dist/webcomponents/p-8d61499c.entry.js +0 -1
- package/dist/webcomponents/p-9154210a.entry.js +0 -1
- package/dist/webcomponents/p-96bc127e.entry.js +0 -1
- package/dist/webcomponents/p-98e49e54.entry.js +0 -1
- package/dist/webcomponents/p-a3df6c3e.entry.js +0 -1
- package/dist/webcomponents/p-a5008b32.entry.js +0 -1
- package/dist/webcomponents/p-a59636ed.js +0 -1
- package/dist/webcomponents/p-a7b04e24.js +0 -1
- package/dist/webcomponents/p-ac2588af.entry.js +0 -1
- package/dist/webcomponents/p-aee49e6e.entry.js +0 -1
- package/dist/webcomponents/p-b78da082.entry.js +0 -1
- package/dist/webcomponents/p-b7b18a0f.entry.js +0 -1
- package/dist/webcomponents/p-ba202e33.js +0 -1
- package/dist/webcomponents/p-c0e18724.entry.js +0 -1
- package/dist/webcomponents/p-c65c07f7.entry.js +0 -1
- package/dist/webcomponents/p-ca6214ca.entry.js +0 -1
- package/dist/webcomponents/p-cb8f7bf4.js +0 -1
- package/dist/webcomponents/p-ce2de434.entry.js +0 -1
- package/dist/webcomponents/p-def672dc.entry.js +0 -1
- package/dist/webcomponents/p-df795bd0.entry.js +0 -1
- package/dist/webcomponents/p-f2158e48.entry.js +0 -1
- package/dist/webcomponents/p-f3867b82.entry.js +0 -1
- package/dist/webcomponents/p-fc3daedd.js +0 -1
- package/dist/webcomponents/p-fd6619d0.entry.js +0 -1
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
import { h, r as registerInstance, c as createEvent } from './index-29fcfdf5.js';
|
|
2
|
+
import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-212a96ed.js';
|
|
3
|
+
import { F as FormController, c as create$3 } from './index.esm-0b6849c2.js';
|
|
4
|
+
import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, c as Address } from './Business-29c69f22.js';
|
|
5
|
+
import { C as CURRENCY_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
|
|
6
|
+
import { h as heading2 } from './parts-ab2bb4b5.js';
|
|
7
|
+
import { S as Skeleton } from './skeleton-ee7c3b32.js';
|
|
8
|
+
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-018f62a5.js';
|
|
9
|
+
import { a as BusinessFormStep, B as BusinessFormClickActions } from './event-types-5c87de02.js';
|
|
10
|
+
import { z as bankNameValidation, A as nicknameValidation, u as identityNameValidation, B as accountTypeValidation, C as accountNumberValidation, D as routingNumberValidation, E as voidedCheckValidation, F as bankStatementValidation } from './schema-validations-ccea6a06.js';
|
|
11
|
+
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
12
|
+
import './Checkout-8325c97a.js';
|
|
13
|
+
import './Pagination-afc8f96d.js';
|
|
14
|
+
import './Payment-82d2f453.js';
|
|
15
|
+
import './SubAccount-a73bf971.js';
|
|
16
|
+
import { a as EntityDocument, b as EntityDocumentStorage } from './Document-1907c0d4.js';
|
|
17
|
+
import { n as numberOnlyHandler } from './utils-20cdf321.js';
|
|
18
|
+
import { B as Button } from './button-4b3f3934.js';
|
|
19
|
+
import { i as identitySchema, a as addressSchema } from './business-identity-schema-05bd2a5f.js';
|
|
20
|
+
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
21
|
+
import './helpers-96ea3464.js';
|
|
22
|
+
import './utils-c37124fc.js';
|
|
23
|
+
import './Dispute-5fd28ec9.js';
|
|
24
|
+
|
|
25
|
+
class BankAccount {
|
|
26
|
+
constructor(data) {
|
|
27
|
+
this.id = data.id;
|
|
28
|
+
this.account_owner_name = data.account_owner_name;
|
|
29
|
+
this.full_name = data.full_name;
|
|
30
|
+
this.account_type = data.account_type;
|
|
31
|
+
this.account_number = data.account_number;
|
|
32
|
+
this.acct_last_four = data.acct_last_four;
|
|
33
|
+
this.account_number_last4 = data.account_number_last4;
|
|
34
|
+
this.routing_number = data.routing_number;
|
|
35
|
+
this.bank_name = data.bank_name;
|
|
36
|
+
this.country = data.country;
|
|
37
|
+
this.currency = data.currency;
|
|
38
|
+
this.nickname = data.nickname;
|
|
39
|
+
this.metadata = data.metadata;
|
|
40
|
+
this.business_id = data.business_id;
|
|
41
|
+
this.platform_account_id = data.platform_account_id;
|
|
42
|
+
this.created_at = data.created_at;
|
|
43
|
+
this.updated_at = data.updated_at;
|
|
44
|
+
}
|
|
45
|
+
get payload() {
|
|
46
|
+
return {
|
|
47
|
+
account_owner_name: this.account_owner_name || '',
|
|
48
|
+
account_type: this.account_type || '',
|
|
49
|
+
account_number: this.account_number || '',
|
|
50
|
+
routing_number: this.routing_number || '',
|
|
51
|
+
bank_name: this.bank_name || '',
|
|
52
|
+
nickname: this.nickname || '',
|
|
53
|
+
business_id: this.business_id || '',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const FormBlock = () => (h("div", { class: "row gap-3" },
|
|
59
|
+
h("div", { class: "col-12" },
|
|
60
|
+
h(Skeleton, { width: "25%" })),
|
|
61
|
+
h("div", { class: "col-12" },
|
|
62
|
+
h(Skeleton, { width: "100%" })),
|
|
63
|
+
h("div", { class: "col-12 d-flex gap-3" },
|
|
64
|
+
h(Skeleton, { width: "50%" }),
|
|
65
|
+
h(Skeleton, { width: "50%" })),
|
|
66
|
+
h("div", { class: "col-12 d-flex gap-3" },
|
|
67
|
+
h(Skeleton, { width: "65%" }),
|
|
68
|
+
h(Skeleton, { width: "35%" }))));
|
|
69
|
+
const PaymentProvisioningLoading = () => {
|
|
70
|
+
return (h("div", { class: "row gap-5" },
|
|
71
|
+
h("div", { class: "col-12" },
|
|
72
|
+
h(Skeleton, { width: "40%", height: "40px" })),
|
|
73
|
+
h(FormBlock, null),
|
|
74
|
+
h(FormBlock, null),
|
|
75
|
+
h(FormBlock, null)));
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const AdditionalQuestionsFormStepCore = class {
|
|
79
|
+
constructor(hostRef) {
|
|
80
|
+
registerInstance(this, hostRef);
|
|
81
|
+
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
82
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
83
|
+
this.formLoading = createEvent(this, "formLoading", 7);
|
|
84
|
+
this.getData = () => {
|
|
85
|
+
this.formLoading.emit(true);
|
|
86
|
+
this.isLoading = true;
|
|
87
|
+
this.getBusiness({
|
|
88
|
+
onSuccess: (response) => {
|
|
89
|
+
this.additional_questions = new AdditionalQuestions(response.data.additional_questions || {});
|
|
90
|
+
this.formController.setInitialValues(Object.assign({}, this.additional_questions));
|
|
91
|
+
},
|
|
92
|
+
onError: ({ error, code, severity }) => {
|
|
93
|
+
this.errorEvent.emit({
|
|
94
|
+
message: error,
|
|
95
|
+
errorCode: code,
|
|
96
|
+
severity: severity
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
final: () => {
|
|
100
|
+
this.formLoading.emit(false);
|
|
101
|
+
this.isLoading = false;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
this.sendData = (onSuccess) => {
|
|
106
|
+
let submittedData;
|
|
107
|
+
this.formLoading.emit(true);
|
|
108
|
+
this.patchBusiness({
|
|
109
|
+
payload: this.patchPayload,
|
|
110
|
+
onSuccess: (response) => {
|
|
111
|
+
submittedData = response;
|
|
112
|
+
onSuccess();
|
|
113
|
+
},
|
|
114
|
+
onError: ({ error, code, severity }) => {
|
|
115
|
+
submittedData = error;
|
|
116
|
+
this.errorEvent.emit({
|
|
117
|
+
message: error,
|
|
118
|
+
errorCode: code,
|
|
119
|
+
severity: severity
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
final: () => {
|
|
123
|
+
this.stepCompleteEvent.emit({ response: submittedData, formStep: BusinessFormStep.additionalQuestions });
|
|
124
|
+
this.formLoading.emit(false);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
this.inputHandler = (name, value) => {
|
|
129
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
130
|
+
this.additional_questions = new AdditionalQuestions(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
131
|
+
};
|
|
132
|
+
this.formController = undefined;
|
|
133
|
+
this.errors = {};
|
|
134
|
+
this.additional_questions = {};
|
|
135
|
+
this.recurringPayments = false;
|
|
136
|
+
this.isLoading = false;
|
|
137
|
+
this.getBusiness = undefined;
|
|
138
|
+
this.patchBusiness = undefined;
|
|
139
|
+
this.allowOptionalFields = undefined;
|
|
140
|
+
}
|
|
141
|
+
recurringPaymentsWatcher(newValue) {
|
|
142
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.business_recurring_payments) === 'Yes') {
|
|
143
|
+
this.recurringPayments = true;
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
this.recurringPayments = false;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async validateAndSubmit({ onSuccess }) {
|
|
150
|
+
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
151
|
+
}
|
|
152
|
+
;
|
|
153
|
+
get patchPayload() {
|
|
154
|
+
let formValues = new AdditionalQuestions(this.formController.values.getValue()).payload;
|
|
155
|
+
return { additional_questions: formValues };
|
|
156
|
+
}
|
|
157
|
+
componentWillLoad() {
|
|
158
|
+
this.getBusiness && this.getData();
|
|
159
|
+
this.formController = new FormController(additionalQuestionsSchema(this.allowOptionalFields));
|
|
160
|
+
}
|
|
161
|
+
componentDidLoad() {
|
|
162
|
+
this.formController.errors.subscribe(errors => {
|
|
163
|
+
this.errors = Object.assign({}, errors);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
render() {
|
|
167
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
168
|
+
const additionalQuestionsDefaultValue = this.formController.getInitialValues();
|
|
169
|
+
if (this.isLoading) {
|
|
170
|
+
return h(PaymentProvisioningLoading, null);
|
|
171
|
+
}
|
|
172
|
+
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Additional Questions"), h("form-control-tooltip", { helpText: "This information helps us understand the business and identify and monitor trends to safeguard you and your customers." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_revenue", label: "What is your business\u2019 estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_payment_volume", label: "What is your business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12" }, h("form-control-select", { 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: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { class: "col-12" }, h("form-control-select", { name: "business_recurring_payments", label: "Does your business offer recurring payments?", inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { class: 'col-12', hidden: !this.recurringPayments }, h("form-control-text", { name: "business_recurring_payments_percentage", label: "What percent of revenue is generated from each recurring payment type offered?", inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage, helpText: "For example: 50% monthly, 50% annual." })), h("div", { class: "col-12" }, h("form-control-select", { name: "business_seasonal", label: "Is this business seasonal?", inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { class: "col-12" }, h("form-control-text", { name: "business_other_payment_details", label: "Is there anything else you would like us to know about how your customers pay the business? (optional)", inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
|
|
173
|
+
}
|
|
174
|
+
static get watchers() { return {
|
|
175
|
+
"additional_questions": ["recurringPaymentsWatcher"]
|
|
176
|
+
}; }
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const businessBankAccountSchema = (documents, allowOptionalFields) => {
|
|
180
|
+
const schema = create$3({
|
|
181
|
+
bank_name: bankNameValidation.required('Enter bank name'),
|
|
182
|
+
nickname: nicknameValidation.required('Enter nickname'),
|
|
183
|
+
account_owner_name: identityNameValidation.required('Enter account owner name'),
|
|
184
|
+
account_type: accountTypeValidation.required('Select account type'),
|
|
185
|
+
account_number: accountNumberValidation.required('Enter account number'),
|
|
186
|
+
routing_number: routingNumberValidation.required('Enter routing number'),
|
|
187
|
+
voided_check: voidedCheckValidation(documents, allowOptionalFields),
|
|
188
|
+
bank_statement: bankStatementValidation(documents, allowOptionalFields)
|
|
189
|
+
});
|
|
190
|
+
const easySchema = create$3({
|
|
191
|
+
bank_name: bankNameValidation.nullable(),
|
|
192
|
+
nickname: nicknameValidation.nullable(),
|
|
193
|
+
account_owner_name: identityNameValidation.nullable(),
|
|
194
|
+
account_type: accountTypeValidation.nullable(),
|
|
195
|
+
account_number: accountNumberValidation.nullable(),
|
|
196
|
+
routing_number: routingNumberValidation.nullable(),
|
|
197
|
+
voided_check: voidedCheckValidation(documents, allowOptionalFields),
|
|
198
|
+
bank_statement: bankStatementValidation(documents, allowOptionalFields)
|
|
199
|
+
});
|
|
200
|
+
return allowOptionalFields ? easySchema : schema;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
const BusinessBankAccountFormStepCore = class {
|
|
204
|
+
constructor(hostRef) {
|
|
205
|
+
registerInstance(this, hostRef);
|
|
206
|
+
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
207
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
208
|
+
this.formLoading = createEvent(this, "formLoading", 7);
|
|
209
|
+
this.initializeFormController = () => {
|
|
210
|
+
this.formController = new FormController(businessBankAccountSchema(this.existingDocuments, this.allowOptionalFields));
|
|
211
|
+
this.formController.setInitialValues(Object.assign({}, this.bankAccount));
|
|
212
|
+
this.formController.errors.subscribe(errors => {
|
|
213
|
+
this.errors = Object.assign({}, errors);
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
this.inputHandler = (name, value) => {
|
|
217
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
218
|
+
};
|
|
219
|
+
this.storeFiles = (e) => {
|
|
220
|
+
const fileList = Array.from(e.detail.fileList);
|
|
221
|
+
const docType = e.detail.document_type;
|
|
222
|
+
const documentList = fileList.map(file => new EntityDocument({ file, document_type: docType }, this.businessId));
|
|
223
|
+
this.documentData[docType] = documentList;
|
|
224
|
+
};
|
|
225
|
+
this.getData = () => {
|
|
226
|
+
this.isLoading = true;
|
|
227
|
+
this.getBusiness({
|
|
228
|
+
onSuccess: (response) => {
|
|
229
|
+
if (response.data.bank_accounts.length > 0) {
|
|
230
|
+
this.bankAccount = new BankAccount(response.data.bank_accounts[0]);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
this.bankAccount = new BankAccount({});
|
|
234
|
+
this.bankAccount.business_id = this.businessId;
|
|
235
|
+
}
|
|
236
|
+
this.existingDocuments = response.data.documents;
|
|
237
|
+
},
|
|
238
|
+
onError: ({ error, code, severity }) => {
|
|
239
|
+
this.errorEvent.emit({
|
|
240
|
+
message: error,
|
|
241
|
+
errorCode: code,
|
|
242
|
+
severity: severity
|
|
243
|
+
});
|
|
244
|
+
},
|
|
245
|
+
final: () => {
|
|
246
|
+
this.initializeFormController();
|
|
247
|
+
this.isLoading = false;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
this.postDocumentRecordData = async (docData) => {
|
|
252
|
+
this.isLoading = true;
|
|
253
|
+
const payload = docData.record_data;
|
|
254
|
+
return new Promise((resolve) => {
|
|
255
|
+
this.postDocumentRecord({
|
|
256
|
+
payload,
|
|
257
|
+
onSuccess: (response) => {
|
|
258
|
+
resolve(this.handleDocRecordResponse(docData, response));
|
|
259
|
+
},
|
|
260
|
+
onError: ({ error, code, severity }) => {
|
|
261
|
+
this.errorEvent.emit({
|
|
262
|
+
message: error,
|
|
263
|
+
errorCode: code,
|
|
264
|
+
severity: severity
|
|
265
|
+
});
|
|
266
|
+
resolve(false);
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
this.handleDocRecordResponse = (docData, response) => {
|
|
272
|
+
if (response.error) {
|
|
273
|
+
this.errorEvent.emit({
|
|
274
|
+
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
275
|
+
message: response.error.message,
|
|
276
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
277
|
+
data: response.error,
|
|
278
|
+
});
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
docData.setPresignedUrl(response.data.presigned_url);
|
|
283
|
+
return true;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
this.uploadDocument = async (docData) => {
|
|
287
|
+
if (!docData.presigned_url) {
|
|
288
|
+
throw new Error('Presigned URL is not set');
|
|
289
|
+
}
|
|
290
|
+
const response = await fetch(docData.presigned_url, {
|
|
291
|
+
method: 'PUT',
|
|
292
|
+
body: docData.fileString,
|
|
293
|
+
});
|
|
294
|
+
return this.handleUploadResponse(response);
|
|
295
|
+
};
|
|
296
|
+
this.handleUploadResponse = (response) => {
|
|
297
|
+
if (response.error) {
|
|
298
|
+
this.errorEvent.emit({
|
|
299
|
+
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
300
|
+
message: response.error.message,
|
|
301
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
302
|
+
data: response.error,
|
|
303
|
+
});
|
|
304
|
+
return false;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return true;
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
this.formController = undefined;
|
|
311
|
+
this.errors = {};
|
|
312
|
+
this.bankAccount = {};
|
|
313
|
+
this.existingDocuments = [];
|
|
314
|
+
this.documentData = new EntityDocumentStorage();
|
|
315
|
+
this.isLoading = false;
|
|
316
|
+
this.businessId = undefined;
|
|
317
|
+
this.getBusiness = undefined;
|
|
318
|
+
this.postBankAccount = undefined;
|
|
319
|
+
this.postDocumentRecord = undefined;
|
|
320
|
+
this.allowOptionalFields = undefined;
|
|
321
|
+
}
|
|
322
|
+
watchHandler(newValue) {
|
|
323
|
+
this.formLoading.emit(newValue);
|
|
324
|
+
}
|
|
325
|
+
async validateAndSubmit({ onSuccess }) {
|
|
326
|
+
if (this.existingBankAccount) {
|
|
327
|
+
// If a bank account already exists, skip bank account posting; proceed directly to document upload
|
|
328
|
+
this.sendData(onSuccess);
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
// If bank account is new, validate form inputs (bank account fields), then proceed
|
|
332
|
+
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
componentWillLoad() {
|
|
336
|
+
this.getBusiness && this.getData();
|
|
337
|
+
this.formController = new FormController(businessBankAccountSchema(this.existingDocuments, this.allowOptionalFields));
|
|
338
|
+
}
|
|
339
|
+
componentDidLoad() {
|
|
340
|
+
this.formController.errors.subscribe(errors => {
|
|
341
|
+
this.errors = Object.assign({}, errors);
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
get postPayload() {
|
|
345
|
+
let formValues = new BankAccount(this.formController.values.getValue()).payload;
|
|
346
|
+
return formValues;
|
|
347
|
+
}
|
|
348
|
+
get existingBankAccount() {
|
|
349
|
+
var _a;
|
|
350
|
+
return !!((_a = this.bankAccount) === null || _a === void 0 ? void 0 : _a.id);
|
|
351
|
+
}
|
|
352
|
+
async sendData(onSuccess) {
|
|
353
|
+
try {
|
|
354
|
+
// Post bank account data if the form is not disabled
|
|
355
|
+
const bankAccountPosted = !this.existingBankAccount ? await this.postBankAccountData() : true;
|
|
356
|
+
if (!bankAccountPosted) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
// Post documents only after bank account was successfully created
|
|
360
|
+
const documentsUploaded = await this.postBusinessDocuments();
|
|
361
|
+
if (!documentsUploaded) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
onSuccess();
|
|
365
|
+
}
|
|
366
|
+
catch (error) {
|
|
367
|
+
this.errorEvent.emit({
|
|
368
|
+
message: error,
|
|
369
|
+
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
370
|
+
severity: ComponentErrorSeverity.ERROR
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
async postBankAccountData() {
|
|
375
|
+
let submittedData;
|
|
376
|
+
this.isLoading = true;
|
|
377
|
+
return new Promise((resolve) => {
|
|
378
|
+
let success = false;
|
|
379
|
+
this.postBankAccount({
|
|
380
|
+
payload: this.postPayload,
|
|
381
|
+
onSuccess: (response) => {
|
|
382
|
+
submittedData = response;
|
|
383
|
+
success = true;
|
|
384
|
+
},
|
|
385
|
+
onError: ({ error, code, severity }) => {
|
|
386
|
+
success = false;
|
|
387
|
+
this.errorEvent.emit({
|
|
388
|
+
message: error,
|
|
389
|
+
errorCode: code,
|
|
390
|
+
severity: severity
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
final: () => {
|
|
394
|
+
this.stepCompleteEvent.emit({ response: submittedData, formStep: BusinessFormStep.bankAccount });
|
|
395
|
+
this.isLoading = false;
|
|
396
|
+
resolve(success);
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
async postBusinessDocuments() {
|
|
402
|
+
this.isLoading = true;
|
|
403
|
+
try {
|
|
404
|
+
const docArray = Object.values(this.documentData).flat();
|
|
405
|
+
if (!docArray.length) {
|
|
406
|
+
return true;
|
|
407
|
+
}
|
|
408
|
+
const recordsCreated = await Promise.all(docArray.map((docData) => this.postDocumentRecordData(docData))); // Create document records
|
|
409
|
+
if (recordsCreated.includes(false)) {
|
|
410
|
+
return false;
|
|
411
|
+
} // Exit if document record creation fails
|
|
412
|
+
const uploadsCompleted = await Promise.all(docArray.map((docData) => this.uploadDocument(docData))); // Upload documents to AWS presigned URLs
|
|
413
|
+
if (uploadsCompleted.includes(false)) {
|
|
414
|
+
return false;
|
|
415
|
+
} // Exit if any upload fails
|
|
416
|
+
return true;
|
|
417
|
+
}
|
|
418
|
+
finally {
|
|
419
|
+
this.isLoading = false;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
render() {
|
|
423
|
+
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
424
|
+
if (this.isLoading) {
|
|
425
|
+
return h(PaymentProvisioningLoading, null);
|
|
426
|
+
}
|
|
427
|
+
return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.existingBankAccount })), h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { helpText: "These documents are required for underwriting purposes. Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category." })), h("hr", { class: "mt-2" }), h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles }))));
|
|
428
|
+
}
|
|
429
|
+
static get watchers() { return {
|
|
430
|
+
"isLoading": ["watchHandler"]
|
|
431
|
+
}; }
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
const BusinessCoreInfoFormStepCore = class {
|
|
435
|
+
constructor(hostRef) {
|
|
436
|
+
registerInstance(this, hostRef);
|
|
437
|
+
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
438
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
439
|
+
this.formLoading = createEvent(this, "formLoading", 7);
|
|
440
|
+
this.getData = () => {
|
|
441
|
+
this.formLoading.emit(true);
|
|
442
|
+
this.isLoading = true;
|
|
443
|
+
this.getBusiness({
|
|
444
|
+
onSuccess: (response) => {
|
|
445
|
+
this.coreInfo = new CoreBusinessInfo(response.data);
|
|
446
|
+
this.formController.setInitialValues(Object.assign({}, this.coreInfo));
|
|
447
|
+
},
|
|
448
|
+
onError: ({ error, code, severity }) => {
|
|
449
|
+
this.errorEvent.emit({
|
|
450
|
+
message: error,
|
|
451
|
+
errorCode: code,
|
|
452
|
+
severity: severity
|
|
453
|
+
});
|
|
454
|
+
},
|
|
455
|
+
final: () => {
|
|
456
|
+
this.formLoading.emit(false);
|
|
457
|
+
this.isLoading = false;
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
};
|
|
461
|
+
this.sendData = (onSuccess) => {
|
|
462
|
+
let submittedData;
|
|
463
|
+
this.formLoading.emit(true);
|
|
464
|
+
this.patchBusiness({
|
|
465
|
+
payload: this.patchPayload,
|
|
466
|
+
onSuccess: (response) => {
|
|
467
|
+
submittedData = response;
|
|
468
|
+
onSuccess();
|
|
469
|
+
},
|
|
470
|
+
onError: ({ error, code, severity }) => {
|
|
471
|
+
submittedData = error;
|
|
472
|
+
this.errorEvent.emit({
|
|
473
|
+
message: error,
|
|
474
|
+
errorCode: code,
|
|
475
|
+
severity: severity
|
|
476
|
+
});
|
|
477
|
+
},
|
|
478
|
+
final: () => {
|
|
479
|
+
this.stepCompleteEvent.emit({ response: submittedData, formStep: BusinessFormStep.businessInfo });
|
|
480
|
+
this.formLoading.emit(false);
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
this.inputHandler = (name, value) => {
|
|
485
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
486
|
+
};
|
|
487
|
+
this.formController = undefined;
|
|
488
|
+
this.errors = {};
|
|
489
|
+
this.coreInfo = {};
|
|
490
|
+
this.isLoading = false;
|
|
491
|
+
this.businessId = undefined;
|
|
492
|
+
this.getBusiness = undefined;
|
|
493
|
+
this.patchBusiness = undefined;
|
|
494
|
+
this.allowOptionalFields = undefined;
|
|
495
|
+
}
|
|
496
|
+
async validateAndSubmit({ onSuccess }) {
|
|
497
|
+
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
498
|
+
}
|
|
499
|
+
;
|
|
500
|
+
get patchPayload() {
|
|
501
|
+
let formValues = new CoreBusinessInfo(this.formController.values.getValue()).payload;
|
|
502
|
+
return formValues;
|
|
503
|
+
}
|
|
504
|
+
componentWillLoad() {
|
|
505
|
+
this.getBusiness && this.getData();
|
|
506
|
+
this.formController = new FormController(businessCoreInfoSchema(this.allowOptionalFields));
|
|
507
|
+
}
|
|
508
|
+
componentDidLoad() {
|
|
509
|
+
this.formController.errors.subscribe(errors => {
|
|
510
|
+
this.errors = Object.assign({}, errors);
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
render() {
|
|
514
|
+
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
515
|
+
if (this.isLoading) {
|
|
516
|
+
return h(PaymentProvisioningLoading, null);
|
|
517
|
+
}
|
|
518
|
+
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { 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, helpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns." })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Business Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler, helpText: "Don't have a live website? You can use your social media business page, app store link, or staging site URL." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
const BusinessOwnersFormStepCore = class {
|
|
523
|
+
constructor(hostRef) {
|
|
524
|
+
registerInstance(this, hostRef);
|
|
525
|
+
this.clickEvent = createEvent(this, "click-event", 7);
|
|
526
|
+
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
527
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
528
|
+
this.formLoading = createEvent(this, "formLoading", 7);
|
|
529
|
+
this.matchRef = (ref, ownerId) => {
|
|
530
|
+
const ownerIndex = this.refs.findIndex(ref => ref === ownerId);
|
|
531
|
+
if (ownerIndex !== -1) {
|
|
532
|
+
this.refs[ownerIndex] = ref;
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
this.getData = () => {
|
|
536
|
+
this.formLoading.emit(true);
|
|
537
|
+
this.isLoading = true;
|
|
538
|
+
this.getBusiness({
|
|
539
|
+
onSuccess: (response) => {
|
|
540
|
+
if (response.data.owners.length) {
|
|
541
|
+
this.ownersPayload = response.data.owners.map(owner => ({ id: owner.id }));
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
this.addOwnerForm();
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
onError: ({ error, code, severity }) => {
|
|
548
|
+
this.errorEvent.emit({
|
|
549
|
+
message: error,
|
|
550
|
+
errorCode: code,
|
|
551
|
+
severity: severity
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
final: () => {
|
|
555
|
+
this.formLoading.emit(false);
|
|
556
|
+
this.isLoading = false;
|
|
557
|
+
this.manageRefs();
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
};
|
|
561
|
+
this.sendData = async (onSuccess) => {
|
|
562
|
+
let submittedData;
|
|
563
|
+
this.formLoading.emit(true);
|
|
564
|
+
this.patchBusiness({
|
|
565
|
+
payload: { owners: this.ownersPayload },
|
|
566
|
+
onSuccess: (response) => {
|
|
567
|
+
submittedData = response;
|
|
568
|
+
onSuccess();
|
|
569
|
+
},
|
|
570
|
+
onError: ({ error, code, severity }) => {
|
|
571
|
+
submittedData = error;
|
|
572
|
+
this.errorEvent.emit({
|
|
573
|
+
message: error,
|
|
574
|
+
errorCode: code,
|
|
575
|
+
severity: severity
|
|
576
|
+
});
|
|
577
|
+
},
|
|
578
|
+
final: () => {
|
|
579
|
+
this.stepCompleteEvent.emit({ response: submittedData, formStep: BusinessFormStep.owners });
|
|
580
|
+
this.formLoading.emit(false);
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
this.addOwnerForm = (fireClick) => {
|
|
585
|
+
this.newFormOpen = true;
|
|
586
|
+
this.ownersPayload = [...this.ownersPayload, { id: '' }];
|
|
587
|
+
fireClick && this.clickEvent.emit({ name: BusinessFormClickActions.addOwnerForm });
|
|
588
|
+
};
|
|
589
|
+
this.removeOwnerForm = (id) => {
|
|
590
|
+
this.ownersPayload = this.ownersPayload.filter(owner => owner.id !== id);
|
|
591
|
+
this.newFormOpen && (this.newFormOpen = false);
|
|
592
|
+
};
|
|
593
|
+
this.ownersPayload = [];
|
|
594
|
+
this.refs = [];
|
|
595
|
+
this.newFormOpen = undefined;
|
|
596
|
+
this.isLoading = false;
|
|
597
|
+
this.authToken = undefined;
|
|
598
|
+
this.businessId = undefined;
|
|
599
|
+
this.getBusiness = undefined;
|
|
600
|
+
this.patchBusiness = undefined;
|
|
601
|
+
this.allowOptionalFields = undefined;
|
|
602
|
+
}
|
|
603
|
+
get showAddOwnerButton() {
|
|
604
|
+
return this.ownersPayload.length < 4 && !this.newFormOpen;
|
|
605
|
+
}
|
|
606
|
+
manageRefs() {
|
|
607
|
+
this.refs = this.ownersPayload.map((owner) => { return owner.id; });
|
|
608
|
+
}
|
|
609
|
+
async validateAndSubmit({ onSuccess }) {
|
|
610
|
+
const formValidations = this.refs.map(ref => ref.validate());
|
|
611
|
+
const formsValid = (await Promise.all(formValidations)).every(result => result);
|
|
612
|
+
if (!formsValid) {
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
const formSubmissions = this.refs.map(ref => ref.submit());
|
|
616
|
+
const submissionsValid = (await Promise.all(formSubmissions)).every(result => result);
|
|
617
|
+
if (!submissionsValid) {
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
this.sendData(onSuccess);
|
|
621
|
+
}
|
|
622
|
+
;
|
|
623
|
+
componentWillLoad() {
|
|
624
|
+
this.getBusiness && this.getData();
|
|
625
|
+
}
|
|
626
|
+
ownersWatcher() {
|
|
627
|
+
this.manageRefs();
|
|
628
|
+
}
|
|
629
|
+
handleOwnerSubmit(event) {
|
|
630
|
+
const submittedOwner = event.detail;
|
|
631
|
+
const updatedOwners = this.ownersPayload.map(owner => owner.id === submittedOwner.id ? submittedOwner : owner);
|
|
632
|
+
if (!updatedOwners.includes(submittedOwner)) {
|
|
633
|
+
const newOwnerIndex = this.ownersPayload.findIndex(owner => !owner.id);
|
|
634
|
+
updatedOwners[newOwnerIndex] = submittedOwner;
|
|
635
|
+
this.newFormOpen && (this.newFormOpen = false);
|
|
636
|
+
}
|
|
637
|
+
this.ownersPayload = updatedOwners;
|
|
638
|
+
}
|
|
639
|
+
render() {
|
|
640
|
+
if (this.isLoading) {
|
|
641
|
+
return h(PaymentProvisioningLoading, null);
|
|
642
|
+
}
|
|
643
|
+
return (h("div", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Owners"), h("form-control-tooltip", { helpText: "For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director." })), h("hr", { class: "mt-2" }), h("div", { class: 'row gy-3' }, this.ownersPayload.map((owner) => {
|
|
644
|
+
return (h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
|
|
645
|
+
})), h("div", { class: 'd-flex justify-content-start' }, h("div", { class: 'gap-2' }, h(Button, { variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
|
|
646
|
+
}
|
|
647
|
+
static get watchers() { return {
|
|
648
|
+
"ownersPayload": ["ownersWatcher"]
|
|
649
|
+
}; }
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
const BusinessRepresentativeFormStepCore = class {
|
|
653
|
+
constructor(hostRef) {
|
|
654
|
+
registerInstance(this, hostRef);
|
|
655
|
+
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
656
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
657
|
+
this.formLoading = createEvent(this, "formLoading", 7);
|
|
658
|
+
this.getData = () => {
|
|
659
|
+
this.formLoading.emit(true);
|
|
660
|
+
this.isLoading = true;
|
|
661
|
+
this.getBusiness({
|
|
662
|
+
onSuccess: (response) => {
|
|
663
|
+
this.representative = new Representative(response.data.representative || {});
|
|
664
|
+
this.formController.setInitialValues(Object.assign({}, this.representative));
|
|
665
|
+
},
|
|
666
|
+
onError: ({ error, code, severity }) => {
|
|
667
|
+
this.errorEvent.emit({
|
|
668
|
+
message: error,
|
|
669
|
+
errorCode: code,
|
|
670
|
+
severity: severity
|
|
671
|
+
});
|
|
672
|
+
},
|
|
673
|
+
final: () => {
|
|
674
|
+
this.formLoading.emit(false);
|
|
675
|
+
this.isLoading = false;
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
};
|
|
679
|
+
this.sendData = (onSuccess) => {
|
|
680
|
+
let submittedData;
|
|
681
|
+
this.formLoading.emit(true);
|
|
682
|
+
this.patchBusiness({
|
|
683
|
+
payload: this.patchPayload,
|
|
684
|
+
onSuccess: (response) => {
|
|
685
|
+
submittedData = response;
|
|
686
|
+
onSuccess();
|
|
687
|
+
},
|
|
688
|
+
onError: ({ error, code, severity }) => {
|
|
689
|
+
submittedData = error;
|
|
690
|
+
this.errorEvent.emit({
|
|
691
|
+
message: error,
|
|
692
|
+
errorCode: code,
|
|
693
|
+
severity: severity
|
|
694
|
+
});
|
|
695
|
+
},
|
|
696
|
+
final: () => {
|
|
697
|
+
this.stepCompleteEvent.emit({ response: submittedData, formStep: BusinessFormStep.representative });
|
|
698
|
+
this.formLoading.emit(false);
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
this.formController = undefined;
|
|
703
|
+
this.errors = {};
|
|
704
|
+
this.representative = {};
|
|
705
|
+
this.isLoading = false;
|
|
706
|
+
this.getBusiness = undefined;
|
|
707
|
+
this.patchBusiness = undefined;
|
|
708
|
+
this.allowOptionalFields = undefined;
|
|
709
|
+
}
|
|
710
|
+
async validateAndSubmit({ onSuccess }) {
|
|
711
|
+
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
712
|
+
}
|
|
713
|
+
get patchPayload() {
|
|
714
|
+
let formValues = new Representative(this.formController.values.getValue()).payload;
|
|
715
|
+
return { representative: formValues };
|
|
716
|
+
}
|
|
717
|
+
componentWillLoad() {
|
|
718
|
+
this.getBusiness && this.getData();
|
|
719
|
+
this.formController = new FormController(identitySchema('representative', this.allowOptionalFields));
|
|
720
|
+
}
|
|
721
|
+
componentDidLoad() {
|
|
722
|
+
this.formController.errors.subscribe(errors => {
|
|
723
|
+
this.errors = Object.assign({}, errors);
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
render() {
|
|
727
|
+
if (this.isLoading) {
|
|
728
|
+
return (h(PaymentProvisioningLoading, null));
|
|
729
|
+
}
|
|
730
|
+
return (h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
const LegalAddressFormStepCore = class {
|
|
735
|
+
constructor(hostRef) {
|
|
736
|
+
registerInstance(this, hostRef);
|
|
737
|
+
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
738
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
739
|
+
this.formLoading = createEvent(this, "formLoading", 7);
|
|
740
|
+
this.getData = () => {
|
|
741
|
+
this.formLoading.emit(true);
|
|
742
|
+
this.isLoading = true;
|
|
743
|
+
this.getBusiness({
|
|
744
|
+
onSuccess: (response) => {
|
|
745
|
+
this.legal_address = new Address(response.data.legal_address || {});
|
|
746
|
+
this.formController.setInitialValues(Object.assign({}, this.legal_address));
|
|
747
|
+
},
|
|
748
|
+
onError: ({ error, code, severity }) => {
|
|
749
|
+
this.errorEvent.emit({
|
|
750
|
+
message: error,
|
|
751
|
+
errorCode: code,
|
|
752
|
+
severity: severity
|
|
753
|
+
});
|
|
754
|
+
},
|
|
755
|
+
final: () => {
|
|
756
|
+
this.formLoading.emit(false);
|
|
757
|
+
this.isLoading = false;
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
};
|
|
761
|
+
this.sendData = (onSuccess) => {
|
|
762
|
+
let submittedData;
|
|
763
|
+
this.formLoading.emit(true);
|
|
764
|
+
this.patchBusiness({
|
|
765
|
+
payload: this.patchPayload,
|
|
766
|
+
onSuccess: (response) => {
|
|
767
|
+
submittedData = response;
|
|
768
|
+
onSuccess();
|
|
769
|
+
},
|
|
770
|
+
onError: ({ error, code, severity }) => {
|
|
771
|
+
submittedData = error;
|
|
772
|
+
this.errorEvent.emit({
|
|
773
|
+
message: error,
|
|
774
|
+
errorCode: code,
|
|
775
|
+
severity: severity
|
|
776
|
+
});
|
|
777
|
+
},
|
|
778
|
+
final: () => {
|
|
779
|
+
this.stepCompleteEvent.emit({ response: submittedData, formStep: BusinessFormStep.legalAddress });
|
|
780
|
+
this.formLoading.emit(false);
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
};
|
|
784
|
+
this.inputHandler = (name, value) => {
|
|
785
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
786
|
+
};
|
|
787
|
+
this.formController = undefined;
|
|
788
|
+
this.errors = {};
|
|
789
|
+
this.legal_address = {};
|
|
790
|
+
this.isLoading = false;
|
|
791
|
+
this.getBusiness = undefined;
|
|
792
|
+
this.patchBusiness = undefined;
|
|
793
|
+
this.allowOptionalFields = undefined;
|
|
794
|
+
}
|
|
795
|
+
async validateAndSubmit({ onSuccess }) {
|
|
796
|
+
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
797
|
+
}
|
|
798
|
+
;
|
|
799
|
+
get patchPayload() {
|
|
800
|
+
let formValues = new Address(this.formController.values.getValue()).payload;
|
|
801
|
+
return { legal_address: formValues };
|
|
802
|
+
}
|
|
803
|
+
componentWillLoad() {
|
|
804
|
+
this.getBusiness && this.getData();
|
|
805
|
+
this.formController = new FormController(addressSchema(this.allowOptionalFields));
|
|
806
|
+
}
|
|
807
|
+
componentDidLoad() {
|
|
808
|
+
this.formController.errors.subscribe(errors => {
|
|
809
|
+
this.errors = Object.assign({}, errors);
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
render() {
|
|
813
|
+
var _a, _b, _c, _d, _e, _f;
|
|
814
|
+
const legalAddressDefaultValue = this.formController.getInitialValues();
|
|
815
|
+
if (this.isLoading) {
|
|
816
|
+
return h(PaymentProvisioningLoading, null);
|
|
817
|
+
}
|
|
818
|
+
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { class: "col-12" }, h("form-control-text", { name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { class: "col-12" }, h("form-control-text", { name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { class: "col-12" }, h("form-control-select", { name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { class: "col-12" }, h("form-control-text", { name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: "country", label: "Country", options: [{ label: "United States", value: "USA" }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
|
|
819
|
+
// just for now so we skip handling country specificities
|
|
820
|
+
disabled: true }))))));
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
export { AdditionalQuestionsFormStepCore as justifi_additional_questions_form_step_core, BusinessBankAccountFormStepCore as justifi_business_bank_account_form_step_core, BusinessCoreInfoFormStepCore as justifi_business_core_info_form_step_core, BusinessOwnersFormStepCore as justifi_business_owners_form_step_core, BusinessRepresentativeFormStepCore as justifi_business_representative_form_step_core, LegalAddressFormStepCore as justifi_legal_address_form_step_core };
|