@justifi/webcomponents 5.2.0 → 5.3.1
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/{Api-b0e4be29.js → Api-089e7501.js} +1 -0
- 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 +18 -14
- 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-33d7c7f2.js} +8 -1
- package/dist/cjs/{button-e7796b07.js → button-8b634147.js} +1 -1
- package/dist/cjs/{check-pkg-version-dee8dbb7.js → check-pkg-version-526a9ce5.js} +2 -2
- package/dist/cjs/{checkout.service-e9c05c15.js → checkout.service-d9047ddb.js} +6 -4
- 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-739631c7.js} +6 -4
- 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-bdaff21b.js} +6 -5
- package/dist/cjs/{get-subaccounts-b087fa39.js → get-subaccounts-2db9fc01.js} +6 -5
- 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} +30 -227
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +16 -14
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +10 -9
- package/dist/cjs/justifi-checkout.cjs.entry.js +12 -10
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +15 -14
- 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 +10 -9
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -14
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +25 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +19 -15
- package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -14
- package/dist/cjs/justifi-refund-form.cjs.entry.js +8 -6
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -9
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +7 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-8b9059cc.js → package-45874555.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-87924c1a.js} +6 -4
- 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 +25 -1
- package/dist/collection/components/checkout/card-form/card-form.js +25 -1
- package/dist/collection/components/checkout/checkout-core.js +20 -2
- package/dist/collection/components/checkout/checkout.js +22 -2
- package/dist/collection/components/checkout/new-payment-method.js +20 -2
- package/dist/collection/components/checkout/payment-method-options.js +20 -2
- 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 +21 -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/config.js +1 -0
- package/dist/docs.json +680 -469
- package/dist/esm/{Api-0cac5b8a.js → Api-97801a4b.js} +1 -0
- 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 +18 -14
- 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-45c7df3c.js} +8 -2
- package/dist/esm/{button-8a02823c.js → button-4b3f3934.js} +1 -1
- package/dist/esm/{check-pkg-version-51d2616b.js → check-pkg-version-f91ed31f.js} +2 -2
- package/dist/esm/{checkout.service-c275270e.js → checkout.service-36e3355e.js} +6 -4
- 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-9b9b87e5.js} +6 -4
- 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-80210301.js} +6 -5
- package/dist/esm/{get-subaccounts-ab3dd32c.js → get-subaccounts-d3eeb85d.js} +6 -5
- 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} +32 -228
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +16 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +10 -9
- package/dist/esm/justifi-checkout.entry.js +12 -10
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +15 -14
- 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 +10 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +15 -14
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-owner-form_3.entry.js +8 -7
- package/dist/esm/justifi-payment-details.entry.js +12 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +25 -4
- package/dist/esm/justifi-payments-list.entry.js +19 -15
- package/dist/esm/justifi-payout-details.entry.js +12 -11
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +15 -14
- package/dist/esm/justifi-refund-form.entry.js +8 -6
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -9
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +13 -12
- package/dist/esm/justifi-tokenize-payment-method.entry.js +7 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-5eedfd72.js → package-2b7c7bc0.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-c847c1f6.js} +6 -4
- 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 +3 -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 +3 -1
- package/dist/module/checkout-core.js +5 -3
- package/dist/module/checkout.service.js +2 -0
- package/dist/module/checkouts-list-core2.js +6 -4
- package/dist/module/config.js +1 -0
- 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 +5 -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 +4 -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 +4 -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 +4 -2
- 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/bank-account-form/bank-account-form.d.ts +1 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
- package/dist/types/components/checkout/checkout-core.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +1 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -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/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
- package/dist/types/components.d.ts +95 -101
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +8 -0
- package/dist/webcomponents/p-00c32bb9.entry.js +1 -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-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-1820fd87.entry.js +1 -0
- package/dist/webcomponents/p-189affee.entry.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-09fd4ee2.entry.js → p-2916bb62.entry.js} +1 -1
- package/dist/webcomponents/p-298e290e.js +1 -0
- package/dist/webcomponents/{p-74736657.js → p-2ca5b5e4.js} +1 -1
- package/dist/webcomponents/p-2f94d478.entry.js +1 -0
- package/dist/webcomponents/p-31cbc05a.entry.js +1 -0
- package/dist/webcomponents/p-31e2d12c.entry.js +1 -0
- package/dist/webcomponents/{p-2bd8650b.js → p-35b00a0d.js} +1 -1
- 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-415deed1.entry.js +1 -0
- package/dist/webcomponents/p-44d2c762.entry.js +1 -0
- package/dist/webcomponents/{p-c6051278.entry.js → p-47a3003c.entry.js} +1 -1
- package/dist/webcomponents/p-4bad3621.js +1 -0
- package/dist/webcomponents/{p-c2efe406.js → p-4c820f81.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-63caad6e.entry.js +1 -0
- package/dist/webcomponents/p-66b6c56b.js +1 -0
- package/dist/webcomponents/p-6d2c8be2.entry.js +1 -0
- package/dist/webcomponents/p-72992c97.entry.js +1 -0
- package/dist/webcomponents/p-72ff0d5f.entry.js +1 -0
- package/dist/webcomponents/p-74014392.entry.js +1 -0
- package/dist/webcomponents/p-7542ebd6.entry.js +1 -0
- package/dist/webcomponents/p-778e9dd0.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-85b5eeb6.entry.js +1 -0
- package/dist/webcomponents/p-8815bf82.entry.js +1 -0
- package/dist/webcomponents/{p-44604a45.js → p-8f25f016.js} +1 -1
- 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-960a8ec2.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-f5a7a7d1.entry.js → p-991df3a1.entry.js} +1 -1
- package/dist/webcomponents/p-9ad6e792.entry.js +1 -0
- package/dist/webcomponents/p-a2076a0e.js +1 -0
- package/dist/webcomponents/p-aa02cf71.js +1 -0
- package/dist/webcomponents/p-ab1504b6.entry.js +1 -0
- package/dist/webcomponents/p-ab254da1.entry.js +1 -0
- package/dist/webcomponents/p-af66f580.entry.js +1 -0
- package/dist/webcomponents/p-b15ad5df.js +1 -0
- package/dist/webcomponents/p-b2209632.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-eb644cb7.js → p-c5c03d88.js} +1 -1
- package/dist/webcomponents/p-ca361ef6.entry.js +1 -0
- package/dist/webcomponents/p-ccd91d8a.entry.js +1 -0
- 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-9069fab5.js → p-d91c46dc.js} +1 -1
- package/dist/webcomponents/{p-541b7c36.entry.js → p-db37b175.entry.js} +1 -1
- package/dist/webcomponents/p-dd867d1f.js +1 -0
- 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-39177d5a.js → p-e63fdbca.js} +1 -1
- package/dist/webcomponents/{p-730e8425.js → p-e8c3c23f.js} +1 -1
- package/dist/webcomponents/p-eae512f0.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-f28ddbe8.entry.js +1 -0
- package/dist/webcomponents/p-f2f2e20e.js +1 -0
- package/dist/webcomponents/p-f694e1c8.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-fdbcd486.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-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-1a27f22e.js +0 -1
- package/dist/webcomponents/p-1e2526c8.entry.js +0 -1
- package/dist/webcomponents/p-270033ba.entry.js +0 -1
- package/dist/webcomponents/p-2a17a29c.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-2d801915.js +0 -1
- package/dist/webcomponents/p-332bd5ab.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-427881b1.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-4acfed0d.entry.js +0 -1
- package/dist/webcomponents/p-4bcfdb99.entry.js +0 -1
- package/dist/webcomponents/p-4e122ace.js +0 -1
- package/dist/webcomponents/p-5d177a30.js +0 -1
- package/dist/webcomponents/p-64a1ae2c.entry.js +0 -1
- package/dist/webcomponents/p-67aef066.entry.js +0 -1
- package/dist/webcomponents/p-6ad11a9f.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-72a90154.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-7aff48a1.entry.js +0 -1
- package/dist/webcomponents/p-7bddbee4.js +0 -1
- package/dist/webcomponents/p-87ce7b69.js +0 -1
- package/dist/webcomponents/p-8d61499c.entry.js +0 -1
- package/dist/webcomponents/p-948b7710.entry.js +0 -1
- package/dist/webcomponents/p-96bc127e.entry.js +0 -1
- package/dist/webcomponents/p-98b027b7.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-b78da082.entry.js +0 -1
- package/dist/webcomponents/p-b86e804e.entry.js +0 -1
- package/dist/webcomponents/p-ba202e33.js +0 -1
- package/dist/webcomponents/p-bb842885.entry.js +0 -1
- package/dist/webcomponents/p-c358b253.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-d5dace8b.entry.js +0 -1
- package/dist/webcomponents/p-dc6e1e5f.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
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, F as FormController } from './form.js';
|
|
3
|
-
import { g as bankNameValidation, n as nicknameValidation, i as identityNameValidation, h as accountTypeValidation, j as accountNumberValidation, k as routingNumberValidation } from './schema-validations.js';
|
|
4
|
-
import
|
|
5
|
-
import { B as BusinessFormStep } from './event-
|
|
6
|
-
import { n as numberOnlyHandler } from './utils3.js';
|
|
3
|
+
import { g as bankNameValidation, n as nicknameValidation, i as identityNameValidation, h as accountTypeValidation, j as accountNumberValidation, k as routingNumberValidation, v as voidedCheckValidation, m as bankStatementValidation } from './schema-validations.js';
|
|
4
|
+
import './Business.js';
|
|
5
|
+
import { B as BusinessFormStep } from './event-types.js';
|
|
7
6
|
import { h as heading2 } from './parts.js';
|
|
8
|
-
import {
|
|
7
|
+
import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
|
|
8
|
+
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
9
|
+
import './Checkout.js';
|
|
10
|
+
import './Pagination.js';
|
|
11
|
+
import './Payment.js';
|
|
12
|
+
import './SubAccount.js';
|
|
13
|
+
import { a as EntityDocument, b as EntityDocumentStorage } from './Document.js';
|
|
14
|
+
import { d as defineCustomElement$8 } from './bank-account-document-inputs.js';
|
|
15
|
+
import { d as defineCustomElement$7 } from './bank-account-form-inputs2.js';
|
|
16
|
+
import { d as defineCustomElement$6 } from './business-documents-on-file2.js';
|
|
17
|
+
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
18
|
+
import { d as defineCustomElement$4 } from './form-control-file2.js';
|
|
9
19
|
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
10
20
|
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
11
21
|
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
12
22
|
|
|
13
|
-
const businessBankAccountSchema = (allowOptionalFields) => {
|
|
14
|
-
const schema = create$3({
|
|
15
|
-
bank_name: bankNameValidation.required('Enter bank name'),
|
|
16
|
-
nickname: nicknameValidation.required('Enter nickname'),
|
|
17
|
-
account_owner_name: identityNameValidation.required('Enter account owner name'),
|
|
18
|
-
account_type: accountTypeValidation.required('Select account type'),
|
|
19
|
-
account_number: accountNumberValidation.required('Enter account number'),
|
|
20
|
-
routing_number: routingNumberValidation.required('Enter routing number')
|
|
21
|
-
});
|
|
22
|
-
const easySchema = create$3({
|
|
23
|
-
bank_name: bankNameValidation.nullable(),
|
|
24
|
-
nickname: nicknameValidation.nullable(),
|
|
25
|
-
account_owner_name: identityNameValidation.nullable(),
|
|
26
|
-
account_type: accountTypeValidation.nullable(),
|
|
27
|
-
account_number: accountNumberValidation.nullable(),
|
|
28
|
-
routing_number: routingNumberValidation.nullable()
|
|
29
|
-
});
|
|
30
|
-
return allowOptionalFields ? easySchema : schema;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
23
|
class BankAccount {
|
|
34
24
|
constructor(data) {
|
|
35
25
|
this.id = data.id;
|
|
@@ -63,6 +53,30 @@ class BankAccount {
|
|
|
63
53
|
}
|
|
64
54
|
}
|
|
65
55
|
|
|
56
|
+
const businessBankAccountSchema = (documents, allowOptionalFields) => {
|
|
57
|
+
const schema = create$3({
|
|
58
|
+
bank_name: bankNameValidation.required('Enter bank name'),
|
|
59
|
+
nickname: nicknameValidation.required('Enter nickname'),
|
|
60
|
+
account_owner_name: identityNameValidation.required('Enter account owner name'),
|
|
61
|
+
account_type: accountTypeValidation.required('Select account type'),
|
|
62
|
+
account_number: accountNumberValidation.required('Enter account number'),
|
|
63
|
+
routing_number: routingNumberValidation.required('Enter routing number'),
|
|
64
|
+
voided_check: voidedCheckValidation(documents, allowOptionalFields),
|
|
65
|
+
bank_statement: bankStatementValidation(documents, allowOptionalFields)
|
|
66
|
+
});
|
|
67
|
+
const easySchema = create$3({
|
|
68
|
+
bank_name: bankNameValidation.nullable(),
|
|
69
|
+
nickname: nicknameValidation.nullable(),
|
|
70
|
+
account_owner_name: identityNameValidation.nullable(),
|
|
71
|
+
account_type: accountTypeValidation.nullable(),
|
|
72
|
+
account_number: accountNumberValidation.nullable(),
|
|
73
|
+
routing_number: routingNumberValidation.nullable(),
|
|
74
|
+
voided_check: voidedCheckValidation(documents, allowOptionalFields),
|
|
75
|
+
bank_statement: bankStatementValidation(documents, allowOptionalFields)
|
|
76
|
+
});
|
|
77
|
+
return allowOptionalFields ? easySchema : schema;
|
|
78
|
+
};
|
|
79
|
+
|
|
66
80
|
const BusinessBankAccountFormStepCore = /*@__PURE__*/ proxyCustomElement(class BusinessBankAccountFormStepCore extends HTMLElement {
|
|
67
81
|
constructor() {
|
|
68
82
|
super();
|
|
@@ -70,8 +84,24 @@ const BusinessBankAccountFormStepCore = /*@__PURE__*/ proxyCustomElement(class B
|
|
|
70
84
|
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
71
85
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
72
86
|
this.formLoading = createEvent(this, "formLoading", 7);
|
|
87
|
+
this.initializeFormController = () => {
|
|
88
|
+
this.formController = new FormController(businessBankAccountSchema(this.existingDocuments, this.allowOptionalFields));
|
|
89
|
+
this.formController.setInitialValues(Object.assign({}, this.bankAccount));
|
|
90
|
+
this.formController.errors.subscribe(errors => {
|
|
91
|
+
this.errors = Object.assign({}, errors);
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
this.inputHandler = (name, value) => {
|
|
95
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
96
|
+
};
|
|
97
|
+
this.storeFiles = (e) => {
|
|
98
|
+
const fileList = Array.from(e.detail.fileList);
|
|
99
|
+
const docType = e.detail.document_type;
|
|
100
|
+
const documentList = fileList.map(file => new EntityDocument({ file, document_type: docType }, this.businessId));
|
|
101
|
+
this.documentData[docType] = documentList;
|
|
102
|
+
};
|
|
73
103
|
this.getData = () => {
|
|
74
|
-
this.
|
|
104
|
+
this.isLoading = true;
|
|
75
105
|
this.getBusiness({
|
|
76
106
|
onSuccess: (response) => {
|
|
77
107
|
if (response.data.bank_accounts.length > 0) {
|
|
@@ -81,29 +111,9 @@ const BusinessBankAccountFormStepCore = /*@__PURE__*/ proxyCustomElement(class B
|
|
|
81
111
|
this.bankAccount = new BankAccount({});
|
|
82
112
|
this.bankAccount.business_id = this.businessId;
|
|
83
113
|
}
|
|
84
|
-
this.
|
|
85
|
-
},
|
|
86
|
-
onError: ({ error, code, severity }) => {
|
|
87
|
-
this.errorEvent.emit({
|
|
88
|
-
message: error,
|
|
89
|
-
errorCode: code,
|
|
90
|
-
severity: severity
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
final: () => this.formLoading.emit(false)
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
this.sendData = (onSuccess) => {
|
|
97
|
-
let submittedData;
|
|
98
|
-
this.formLoading.emit(true);
|
|
99
|
-
this.postBankAccount({
|
|
100
|
-
payload: this.postPayload,
|
|
101
|
-
onSuccess: (response) => {
|
|
102
|
-
submittedData = response;
|
|
103
|
-
onSuccess();
|
|
114
|
+
this.existingDocuments = response.data.documents;
|
|
104
115
|
},
|
|
105
116
|
onError: ({ error, code, severity }) => {
|
|
106
|
-
submittedData = error;
|
|
107
117
|
this.errorEvent.emit({
|
|
108
118
|
message: error,
|
|
109
119
|
errorCode: code,
|
|
@@ -111,75 +121,240 @@ const BusinessBankAccountFormStepCore = /*@__PURE__*/ proxyCustomElement(class B
|
|
|
111
121
|
});
|
|
112
122
|
},
|
|
113
123
|
final: () => {
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
124
|
+
this.initializeFormController();
|
|
125
|
+
this.isLoading = false;
|
|
116
126
|
}
|
|
117
127
|
});
|
|
118
128
|
};
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
129
|
+
this.postDocumentRecordData = async (docData) => {
|
|
130
|
+
this.isLoading = true;
|
|
131
|
+
const payload = docData.record_data;
|
|
132
|
+
return new Promise((resolve) => {
|
|
133
|
+
this.postDocumentRecord({
|
|
134
|
+
payload,
|
|
135
|
+
onSuccess: (response) => {
|
|
136
|
+
resolve(this.handleDocRecordResponse(docData, response));
|
|
137
|
+
},
|
|
138
|
+
onError: ({ error, code, severity }) => {
|
|
139
|
+
this.errorEvent.emit({
|
|
140
|
+
message: error,
|
|
141
|
+
errorCode: code,
|
|
142
|
+
severity: severity
|
|
143
|
+
});
|
|
144
|
+
resolve(false);
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
this.handleDocRecordResponse = (docData, response) => {
|
|
150
|
+
if (response.error) {
|
|
151
|
+
this.errorEvent.emit({
|
|
152
|
+
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
153
|
+
message: response.error.message,
|
|
154
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
155
|
+
data: response.error,
|
|
156
|
+
});
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
docData.setPresignedUrl(response.data.presigned_url);
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
this.uploadDocument = async (docData) => {
|
|
165
|
+
if (!docData.presigned_url) {
|
|
166
|
+
throw new Error('Presigned URL is not set');
|
|
167
|
+
}
|
|
168
|
+
const response = await fetch(docData.presigned_url, {
|
|
169
|
+
method: 'PUT',
|
|
170
|
+
body: docData.fileString,
|
|
171
|
+
});
|
|
172
|
+
return this.handleUploadResponse(response);
|
|
173
|
+
};
|
|
174
|
+
this.handleUploadResponse = (response) => {
|
|
175
|
+
if (response.error) {
|
|
176
|
+
this.errorEvent.emit({
|
|
177
|
+
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
178
|
+
message: response.error.message,
|
|
179
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
180
|
+
data: response.error,
|
|
181
|
+
});
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
121
187
|
};
|
|
122
188
|
this.formController = undefined;
|
|
123
189
|
this.errors = {};
|
|
124
190
|
this.bankAccount = {};
|
|
191
|
+
this.existingDocuments = [];
|
|
192
|
+
this.documentData = new EntityDocumentStorage();
|
|
193
|
+
this.isLoading = false;
|
|
125
194
|
this.businessId = undefined;
|
|
126
195
|
this.getBusiness = undefined;
|
|
127
196
|
this.postBankAccount = undefined;
|
|
197
|
+
this.postDocumentRecord = undefined;
|
|
128
198
|
this.allowOptionalFields = undefined;
|
|
129
199
|
}
|
|
200
|
+
watchHandler(newValue) {
|
|
201
|
+
this.formLoading.emit(newValue);
|
|
202
|
+
}
|
|
130
203
|
async validateAndSubmit({ onSuccess }) {
|
|
131
|
-
if (this.
|
|
132
|
-
|
|
133
|
-
onSuccess
|
|
204
|
+
if (this.existingBankAccount) {
|
|
205
|
+
// If a bank account already exists, skip bank account posting; proceed directly to document upload
|
|
206
|
+
this.sendData(onSuccess);
|
|
134
207
|
}
|
|
135
208
|
else {
|
|
209
|
+
// If bank account is new, validate form inputs (bank account fields), then proceed
|
|
136
210
|
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
137
211
|
}
|
|
138
212
|
}
|
|
139
|
-
|
|
213
|
+
componentWillLoad() {
|
|
214
|
+
this.getBusiness && this.getData();
|
|
215
|
+
this.formController = new FormController(businessBankAccountSchema(this.existingDocuments, this.allowOptionalFields));
|
|
216
|
+
}
|
|
217
|
+
componentDidLoad() {
|
|
218
|
+
this.formController.errors.subscribe(errors => {
|
|
219
|
+
this.errors = Object.assign({}, errors);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
140
222
|
get postPayload() {
|
|
141
223
|
let formValues = new BankAccount(this.formController.values.getValue()).payload;
|
|
142
224
|
return formValues;
|
|
143
225
|
}
|
|
144
|
-
get
|
|
226
|
+
get existingBankAccount() {
|
|
145
227
|
var _a;
|
|
146
228
|
return !!((_a = this.bankAccount) === null || _a === void 0 ? void 0 : _a.id);
|
|
147
229
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
230
|
+
async sendData(onSuccess) {
|
|
231
|
+
try {
|
|
232
|
+
// Post bank account data if the form is not disabled
|
|
233
|
+
const bankAccountPosted = !this.existingBankAccount ? await this.postBankAccountData() : true;
|
|
234
|
+
if (!bankAccountPosted) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
// Post documents only after bank account was successfully created
|
|
238
|
+
const documentsUploaded = await this.postBusinessDocuments();
|
|
239
|
+
if (!documentsUploaded) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
onSuccess();
|
|
243
|
+
}
|
|
244
|
+
catch (error) {
|
|
245
|
+
this.errorEvent.emit({
|
|
246
|
+
message: error,
|
|
247
|
+
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
248
|
+
severity: ComponentErrorSeverity.ERROR
|
|
249
|
+
});
|
|
250
|
+
}
|
|
151
251
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
252
|
+
async postBankAccountData() {
|
|
253
|
+
let submittedData;
|
|
254
|
+
this.isLoading = true;
|
|
255
|
+
return new Promise((resolve) => {
|
|
256
|
+
let success = false;
|
|
257
|
+
this.postBankAccount({
|
|
258
|
+
payload: this.postPayload,
|
|
259
|
+
onSuccess: (response) => {
|
|
260
|
+
submittedData = response;
|
|
261
|
+
success = true;
|
|
262
|
+
},
|
|
263
|
+
onError: ({ error, code, severity }) => {
|
|
264
|
+
success = false;
|
|
265
|
+
this.errorEvent.emit({
|
|
266
|
+
message: error,
|
|
267
|
+
errorCode: code,
|
|
268
|
+
severity: severity
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
final: () => {
|
|
272
|
+
this.stepCompleteEvent.emit({ response: submittedData, formStep: BusinessFormStep.bankAccount });
|
|
273
|
+
this.isLoading = false;
|
|
274
|
+
resolve(success);
|
|
275
|
+
}
|
|
276
|
+
});
|
|
155
277
|
});
|
|
156
278
|
}
|
|
279
|
+
async postBusinessDocuments() {
|
|
280
|
+
this.isLoading = true;
|
|
281
|
+
try {
|
|
282
|
+
const docArray = Object.values(this.documentData).flat();
|
|
283
|
+
if (!docArray.length) {
|
|
284
|
+
return true;
|
|
285
|
+
}
|
|
286
|
+
const recordsCreated = await Promise.all(docArray.map((docData) => this.postDocumentRecordData(docData))); // Create document records
|
|
287
|
+
if (recordsCreated.includes(false)) {
|
|
288
|
+
return false;
|
|
289
|
+
} // Exit if document record creation fails
|
|
290
|
+
const uploadsCompleted = await Promise.all(docArray.map((docData) => this.uploadDocument(docData))); // Upload documents to AWS presigned URLs
|
|
291
|
+
if (uploadsCompleted.includes(false)) {
|
|
292
|
+
return false;
|
|
293
|
+
} // Exit if any upload fails
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
this.isLoading = false;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
157
300
|
render() {
|
|
158
301
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
159
|
-
|
|
302
|
+
if (this.isLoading) {
|
|
303
|
+
return h(PaymentProvisioningLoading, null);
|
|
304
|
+
}
|
|
305
|
+
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 }))));
|
|
160
306
|
}
|
|
307
|
+
static get watchers() { return {
|
|
308
|
+
"isLoading": ["watchHandler"]
|
|
309
|
+
}; }
|
|
161
310
|
}, [0, "justifi-business-bank-account-form-step-core", {
|
|
162
311
|
"businessId": [1, "business-id"],
|
|
163
312
|
"getBusiness": [16],
|
|
164
313
|
"postBankAccount": [16],
|
|
314
|
+
"postDocumentRecord": [16],
|
|
165
315
|
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
166
316
|
"formController": [32],
|
|
167
317
|
"errors": [32],
|
|
168
318
|
"bankAccount": [32],
|
|
319
|
+
"existingDocuments": [32],
|
|
320
|
+
"documentData": [32],
|
|
321
|
+
"isLoading": [32],
|
|
169
322
|
"validateAndSubmit": [64]
|
|
323
|
+
}, undefined, {
|
|
324
|
+
"isLoading": ["watchHandler"]
|
|
170
325
|
}]);
|
|
171
326
|
function defineCustomElement() {
|
|
172
327
|
if (typeof customElements === "undefined") {
|
|
173
328
|
return;
|
|
174
329
|
}
|
|
175
|
-
const components = ["justifi-business-bank-account-form-step-core", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
330
|
+
const components = ["justifi-business-bank-account-form-step-core", "bank-account-document-form-inputs", "bank-account-form-inputs", "business-documents-on-file", "custom-popper", "form-control-file", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
176
331
|
components.forEach(tagName => { switch (tagName) {
|
|
177
332
|
case "justifi-business-bank-account-form-step-core":
|
|
178
333
|
if (!customElements.get(tagName)) {
|
|
179
334
|
customElements.define(tagName, BusinessBankAccountFormStepCore);
|
|
180
335
|
}
|
|
181
336
|
break;
|
|
337
|
+
case "bank-account-document-form-inputs":
|
|
338
|
+
if (!customElements.get(tagName)) {
|
|
339
|
+
defineCustomElement$8();
|
|
340
|
+
}
|
|
341
|
+
break;
|
|
342
|
+
case "bank-account-form-inputs":
|
|
343
|
+
if (!customElements.get(tagName)) {
|
|
344
|
+
defineCustomElement$7();
|
|
345
|
+
}
|
|
346
|
+
break;
|
|
347
|
+
case "business-documents-on-file":
|
|
348
|
+
if (!customElements.get(tagName)) {
|
|
349
|
+
defineCustomElement$6();
|
|
350
|
+
}
|
|
351
|
+
break;
|
|
182
352
|
case "custom-popper":
|
|
353
|
+
if (!customElements.get(tagName)) {
|
|
354
|
+
defineCustomElement$5();
|
|
355
|
+
}
|
|
356
|
+
break;
|
|
357
|
+
case "form-control-file":
|
|
183
358
|
if (!customElements.get(tagName)) {
|
|
184
359
|
defineCustomElement$4();
|
|
185
360
|
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import './Checkout.js';
|
|
4
|
+
import './Pagination.js';
|
|
5
|
+
import './Payment.js';
|
|
6
|
+
import './SubAccount.js';
|
|
7
|
+
import './Document.js';
|
|
8
|
+
import { m as makeGetBusiness, b as makePostBankAccount, c as makePostDocumentRecord } from './payment-provisioning-actions.js';
|
|
9
|
+
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service.js';
|
|
10
|
+
import { d as defineCustomElement$9 } from './bank-account-document-inputs.js';
|
|
11
|
+
import { d as defineCustomElement$8 } from './bank-account-form-inputs2.js';
|
|
12
|
+
import { d as defineCustomElement$7 } from './business-documents-on-file2.js';
|
|
13
|
+
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
14
|
+
import { d as defineCustomElement$5 } from './form-control-file2.js';
|
|
6
15
|
import { d as defineCustomElement$4 } from './form-control-select2.js';
|
|
7
16
|
import { d as defineCustomElement$3 } from './form-control-text2.js';
|
|
8
17
|
import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
|
|
@@ -15,6 +24,8 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
15
24
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
16
25
|
this.getBusiness = undefined;
|
|
17
26
|
this.postBankAccount = undefined;
|
|
27
|
+
this.postDocumentRecord = undefined;
|
|
28
|
+
this.postDocument = undefined;
|
|
18
29
|
this.authToken = undefined;
|
|
19
30
|
this.businessId = undefined;
|
|
20
31
|
this.allowOptionalFields = undefined;
|
|
@@ -39,6 +50,10 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
39
50
|
authToken: this.authToken,
|
|
40
51
|
service: new BusinessBankAccountService()
|
|
41
52
|
});
|
|
53
|
+
this.postDocumentRecord = makePostDocumentRecord({
|
|
54
|
+
authToken: this.authToken,
|
|
55
|
+
service: new DocumentRecordService()
|
|
56
|
+
});
|
|
42
57
|
}
|
|
43
58
|
else {
|
|
44
59
|
this.errorEvent.emit({
|
|
@@ -49,7 +64,7 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
49
64
|
}
|
|
50
65
|
}
|
|
51
66
|
render() {
|
|
52
|
-
return (h("justifi-business-bank-account-form-step-core", { key: '
|
|
67
|
+
return (h("justifi-business-bank-account-form-step-core", { key: 'e60dff98e072aeb0eb351cd746c9c05e0adf903c', businessId: this.businessId, getBusiness: this.getBusiness, postBankAccount: this.postBankAccount, postDocumentRecord: this.postDocumentRecord, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
53
68
|
}
|
|
54
69
|
static get watchers() { return {
|
|
55
70
|
"authToken": ["propChanged"],
|
|
@@ -61,6 +76,8 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
61
76
|
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
62
77
|
"getBusiness": [32],
|
|
63
78
|
"postBankAccount": [32],
|
|
79
|
+
"postDocumentRecord": [32],
|
|
80
|
+
"postDocument": [32],
|
|
64
81
|
"validateAndSubmit": [64]
|
|
65
82
|
}, undefined, {
|
|
66
83
|
"authToken": ["propChanged"],
|
|
@@ -70,14 +87,34 @@ function defineCustomElement() {
|
|
|
70
87
|
if (typeof customElements === "undefined") {
|
|
71
88
|
return;
|
|
72
89
|
}
|
|
73
|
-
const components = ["justifi-business-bank-account-form-step", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-bank-account-form-step-core"];
|
|
90
|
+
const components = ["justifi-business-bank-account-form-step", "bank-account-document-form-inputs", "bank-account-form-inputs", "business-documents-on-file", "custom-popper", "form-control-file", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-bank-account-form-step-core"];
|
|
74
91
|
components.forEach(tagName => { switch (tagName) {
|
|
75
92
|
case "justifi-business-bank-account-form-step":
|
|
76
93
|
if (!customElements.get(tagName)) {
|
|
77
94
|
customElements.define(tagName, BusinessBankAccountFormStep);
|
|
78
95
|
}
|
|
79
96
|
break;
|
|
97
|
+
case "bank-account-document-form-inputs":
|
|
98
|
+
if (!customElements.get(tagName)) {
|
|
99
|
+
defineCustomElement$9();
|
|
100
|
+
}
|
|
101
|
+
break;
|
|
102
|
+
case "bank-account-form-inputs":
|
|
103
|
+
if (!customElements.get(tagName)) {
|
|
104
|
+
defineCustomElement$8();
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case "business-documents-on-file":
|
|
108
|
+
if (!customElements.get(tagName)) {
|
|
109
|
+
defineCustomElement$7();
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
80
112
|
case "custom-popper":
|
|
113
|
+
if (!customElements.get(tagName)) {
|
|
114
|
+
defineCustomElement$6();
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
117
|
+
case "form-control-file":
|
|
81
118
|
if (!customElements.get(tagName)) {
|
|
82
119
|
defineCustomElement$5();
|
|
83
120
|
}
|
|
@@ -2,8 +2,8 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { b as businessCoreInfoSchema } from './business-core-info-schema.js';
|
|
3
3
|
import { F as FormController } from './form.js';
|
|
4
4
|
import { C as CoreBusinessInfo } from './Business.js';
|
|
5
|
-
import {
|
|
6
|
-
import { B as BusinessFormStep } from './event-
|
|
5
|
+
import { a as businessClassificationOptions } from './business-form-options.js';
|
|
6
|
+
import { B as BusinessFormStep } from './event-types.js';
|
|
7
7
|
import { P as PHONE_MASKS } from './form-input-masks.js';
|
|
8
8
|
import { n as numberOnlyHandler } from './utils3.js';
|
|
9
9
|
import { h as heading2 } from './parts.js';
|
|
@@ -52,7 +52,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (h("justifi-business-core-info-form-step-core", { key: '
|
|
55
|
+
return (h("justifi-business-core-info-form-step-core", { key: 'c9f93be3e48527f5ae799cf736fc9ca86ece736c', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
56
56
|
}
|
|
57
57
|
static get watchers() { return {
|
|
58
58
|
"authToken": ["propChanged"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as create$3 } from './form.js';
|
|
2
|
-
import {
|
|
2
|
+
import { q as businessNameValidation, t as websiteUrlValidation, u as emailValidation, x as phoneValidation, y as doingBusinessAsValidation, z as businessClassificationValidation, A as industryValidation, B as taxIdValidation, C as dateOfIncorporationValidation } from './schema-validations.js';
|
|
3
3
|
|
|
4
4
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
5
5
|
const schema = create$3({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { a as businessClassificationOptions } from './business-form-options.js';
|
|
3
3
|
import { T as TAX_ID_MASKS, P as PHONE_MASKS } from './form-input-masks.js';
|
|
4
4
|
import { C as CoreBusinessInfo } from './Business.js';
|
|
5
5
|
import { h as heading2 } from './parts.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BusinessDocumentsOnFile extends Components.BusinessDocumentsOnFile, HTMLElement {}
|
|
4
|
+
export const BusinessDocumentsOnFile: {
|
|
5
|
+
prototype: BusinessDocumentsOnFile;
|
|
6
|
+
new (): BusinessDocumentsOnFile;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,38 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as snakeCaseToHumanReadable, a as formatDate, g as formatTimeSeconds } from './utils2.js';
|
|
3
|
-
import { V as card, h as heading2, o as table, m as tableHeadCell, p as tableCell } from './parts.js';
|
|
1
|
+
import { B as BusinessDocumentsOnFile$1, d as defineCustomElement$1 } from './business-documents-on-file2.js';
|
|
4
2
|
|
|
5
|
-
const BusinessDocumentsOnFile =
|
|
6
|
-
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.documents = [];
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
if (!this.documents.length) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
return (h(Host, null, h("div", { class: 'card', part: card }, h("div", { class: 'card-body' }, h("h5", { class: 'card-title', part: heading2 }, "Documents Already on File"), h("div", { class: 'table-responsive' }, h("table", { class: 'table table-sm table-borderless', part: table }, h("thead", null, h("tr", null, h("th", { style: { width: '25%' }, part: tableHeadCell, scope: 'col' }, "File Name"), h("th", { style: { width: '25%' }, part: tableHeadCell, scope: 'col' }, "File Type"), h("th", { style: { width: '25%' }, part: tableHeadCell, scope: 'col' }, "Document Type"), h("th", { style: { width: '25%' }, part: tableHeadCell, scope: 'col' }, "Date Uploaded"))), h("tbody", null, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
|
|
16
|
-
.map((document, index) => {
|
|
17
|
-
return (h("tr", { class: index === 0 ? 'border-bottom border-top' : 'border-bottom' }, h("td", { part: tableCell }, document.file_name), h("td", { part: tableCell }, document.file_type), h("td", { part: tableCell }, snakeCaseToHumanReadable(document.document_type)), h("td", { part: tableCell }, `${formatDate(document.created_at)} - ${formatTimeSeconds(document.created_at)}`)));
|
|
18
|
-
})))))), h("hr", null)));
|
|
19
|
-
}
|
|
20
|
-
}, [0, "justifi-business-documents-on-file", {
|
|
21
|
-
"documents": [8]
|
|
22
|
-
}]);
|
|
23
|
-
function defineCustomElement() {
|
|
24
|
-
if (typeof customElements === "undefined") {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const components = ["justifi-business-documents-on-file"];
|
|
28
|
-
components.forEach(tagName => { switch (tagName) {
|
|
29
|
-
case "justifi-business-documents-on-file":
|
|
30
|
-
if (!customElements.get(tagName)) {
|
|
31
|
-
customElements.define(tagName, BusinessDocumentsOnFile);
|
|
32
|
-
}
|
|
33
|
-
break;
|
|
34
|
-
} });
|
|
35
|
-
}
|
|
36
|
-
defineCustomElement();
|
|
3
|
+
const BusinessDocumentsOnFile = BusinessDocumentsOnFile$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
37
5
|
|
|
38
|
-
export { BusinessDocumentsOnFile
|
|
6
|
+
export { BusinessDocumentsOnFile, defineCustomElement };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { s as snakeCaseToHumanReadable, b as formatDate, c as formatTimeSeconds } from './utils2.js';
|
|
3
|
+
import { m as card, h as heading2, n as table, o as tableHeadCell, p as tableCell } from './parts.js';
|
|
4
|
+
import { S as Skeleton } from './skeleton.js';
|
|
5
|
+
import './details.js';
|
|
6
|
+
|
|
7
|
+
const BusinessDocumentsOnFile = /*@__PURE__*/ proxyCustomElement(class BusinessDocumentsOnFile extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.documents = [];
|
|
12
|
+
this.isLoading = false;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
if (this.isLoading) {
|
|
16
|
+
return h(Skeleton, { height: "50px" });
|
|
17
|
+
}
|
|
18
|
+
if (!this.documents.length) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return (h(Host, null, h("div", { class: "card", part: card }, h("div", { class: "card-body" }, h("h5", { class: "card-title", part: heading2 }, "Documents Already on File"), h("div", { class: "table-responsive" }, h("table", { class: "table table-sm table-borderless", part: table }, h("thead", null, h("tr", null, h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "File Name"), h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "File Type"), h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "Document Type"), h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "Date Uploaded"))), h("tbody", null, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
|
|
22
|
+
.map((document, index) => {
|
|
23
|
+
return (h("tr", { class: index === 0 ? "border-bottom border-top" : "border-bottom" }, h("td", { part: tableCell }, document.file_name), h("td", { part: tableCell }, document.file_type), h("td", { part: tableCell }, snakeCaseToHumanReadable(document.document_type)), h("td", { part: tableCell }, `${formatDate(document.created_at)} - ${formatTimeSeconds(document.created_at)}`)));
|
|
24
|
+
})))))), h("hr", null)));
|
|
25
|
+
}
|
|
26
|
+
}, [0, "business-documents-on-file", {
|
|
27
|
+
"documents": [8],
|
|
28
|
+
"isLoading": [4, "is-loading"]
|
|
29
|
+
}]);
|
|
30
|
+
function defineCustomElement() {
|
|
31
|
+
if (typeof customElements === "undefined") {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const components = ["business-documents-on-file"];
|
|
35
|
+
components.forEach(tagName => { switch (tagName) {
|
|
36
|
+
case "business-documents-on-file":
|
|
37
|
+
if (!customElements.get(tagName)) {
|
|
38
|
+
customElements.define(tagName, BusinessDocumentsOnFile);
|
|
39
|
+
}
|
|
40
|
+
break;
|
|
41
|
+
} });
|
|
42
|
+
}
|
|
43
|
+
defineCustomElement();
|
|
44
|
+
|
|
45
|
+
export { BusinessDocumentsOnFile as B, defineCustomElement as d };
|
|
@@ -87,4 +87,4 @@ const bankAccountTypeOptions = [
|
|
|
87
87
|
}
|
|
88
88
|
];
|
|
89
89
|
|
|
90
|
-
export {
|
|
90
|
+
export { businessClassificationOptions as a, bankAccountTypeOptions as b, businessServiceReceivedOptions as c, recurringPaymentsOptions as r, seasonalBusinessOptions as s };
|