@justifi/webcomponents 4.20.1 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-3c89cfb4.js → Analytics-880f5152.js} +1 -1
- package/dist/cjs/{Payment-1a8a8ca6.js → Payment-04a842f4.js} +15 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-types-6e1fcda3.js → business-form-types-719b7f52.js} +11 -0
- package/dist/cjs/{check-pkg-version-4fa0367d.js → check-pkg-version-54f7dfda.js} +1 -1
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_5.cjs.entry.js} +121 -2
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +51 -28
- package/dist/cjs/form-control-date_3.cjs.entry.js +47 -8
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/{form-control-monetary.cjs.entry.js → form-control-help-text_2.cjs.entry.js} +16 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-3a3260ec.js → get-payout-csv-a82b2c1c.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +23 -11
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-3a9ac89d.js → package-cb1b1015.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
- package/dist/cjs/{payment.service-47e2d84e.js → payment.service-6f79aad2.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +14 -14
- package/dist/cjs/payments-list-filters_2.cjs.entry.js +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +5 -5
- package/dist/cjs/styled-host-1adf46c3.js +14 -0
- package/dist/cjs/{utils-af1b60a9.js → utils-52fb7fa1.js} +13 -10
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +15 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +42 -2
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +31 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +24 -1
- 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-core.js +25 -3
- 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-core.js +24 -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/document-uploads/business-document-upload-form-step.js +25 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/input-configurations.js +17 -17
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +24 -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/terms-and-conditions/business-terms-conditions-form-step.js +24 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +11 -0
- package/dist/collection/components/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 +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/details/details.js +1 -1
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +80 -6
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +1 -1
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +63 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- 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/payment-form/payment-form.js +3 -3
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +11 -11
- package/dist/collection/components/payments-list/payments-list-filters.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 +2 -2
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +8 -4
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- package/dist/collection/utils/utils.js +13 -10
- package/dist/docs.json +628 -149
- package/dist/esm/{Analytics-b0f6936a.js → Analytics-3dde5a98.js} +1 -1
- package/dist/esm/{Payment-6bf26fe2.js → Payment-30790721.js} +15 -0
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/{business-form-types-1bc5fe08.js → business-form-types-8fd61b0e.js} +12 -1
- package/dist/esm/{check-pkg-version-10cadb08.js → check-pkg-version-4d144b72.js} +1 -1
- package/dist/esm/{custom-popper.entry.js → custom-popper_5.entry.js} +119 -4
- package/dist/esm/form-control-checkbox_9.entry.js +51 -28
- package/dist/esm/form-control-date_3.entry.js +47 -8
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/{form-control-monetary.entry.js → form-control-help-text_2.entry.js} +17 -3
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/{get-payout-csv-93427146.js → get-payout-csv-d29146ee.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +2 -2
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +23 -11
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +3 -3
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-form.entry.js +9 -9
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-2ef16e2c.js → package-4ab64620.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +9 -9
- package/dist/esm/{payment.service-21a3e2d3.js → payment.service-f9c3e9d7.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +14 -14
- package/dist/esm/payments-list-filters_2.entry.js +2 -2
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +5 -5
- package/dist/esm/styled-host-e0ddb759.js +12 -0
- package/dist/esm/{utils-e66d8bca.js → utils-620f2d78.js} +13 -10
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +15 -0
- package/dist/module/additional-questions.js +22 -10
- package/dist/module/billing-form.js +13 -7
- package/dist/module/business-additional-questions-form-step-core.js +42 -11
- package/dist/module/business-additional-questions-form-step.js +23 -11
- package/dist/module/business-bank-account-form-step.js +23 -10
- package/dist/module/business-core-info-form-step-core.js +19 -10
- package/dist/module/business-core-info-form-step.js +16 -10
- package/dist/module/business-core-info.js +15 -9
- package/dist/module/business-document-upload-form-step.js +14 -5
- package/dist/module/business-document-upload-input-group.js +27 -21
- package/dist/module/business-form-types.js +12 -1
- package/dist/module/business-owners-form-step-core.js +20 -12
- package/dist/module/business-owners-form-step.js +16 -10
- package/dist/module/business-representative-form-inputs.js +16 -10
- package/dist/module/business-representative-form-step-core.js +19 -10
- package/dist/module/business-representative-form-step.js +16 -10
- package/dist/module/business-representative.js +15 -9
- package/dist/module/business-terms-conditions-form-step.js +4 -2
- package/dist/module/business-terms-conditions-text.js +1 -1
- package/dist/module/checkout-core.js +14 -8
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +57 -10
- package/dist/module/form-control-file2.js +10 -4
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +10 -4
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +10 -4
- package/dist/module/form-control-text2.js +10 -4
- package/dist/module/form-control-tooltip.d.ts +11 -0
- package/dist/module/form-control-tooltip.js +6 -0
- package/dist/module/form-control-tooltip2.js +49 -0
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/identity-address-form.js +14 -8
- package/dist/module/justifi-business-form.js +29 -17
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +15 -9
- package/dist/module/justifi-payment-form.js +16 -10
- package/dist/module/justifi-payment-provisioning.js +30 -18
- package/dist/module/justifi-payments-list.js +7 -7
- package/dist/module/justifi-payouts-list.js +9 -3
- package/dist/module/justifi-refund-form.js +21 -9
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/legal-address-form-step-core.js +17 -8
- package/dist/module/legal-address-form-step.js +14 -8
- package/dist/module/legal-address-form.js +13 -7
- package/dist/module/new-payment-method.js +14 -8
- package/dist/module/owner-form-core2.js +16 -10
- package/dist/module/owner-form-inputs2.js +16 -10
- package/dist/module/owner-form.js +15 -9
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-method-options.js +14 -8
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payment-provisioning-core.js +31 -19
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +30 -18
- package/dist/module/payments-list-core2.js +18 -18
- package/dist/module/payments-list-filters2.js +8 -8
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +11 -5
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/utils2.js +13 -10
- package/dist/types/api/Payment.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +4 -1
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +2 -1
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +15 -0
- package/dist/types/components/form/form-control-date.d.ts +5 -0
- package/dist/types/components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +8 -0
- package/dist/types/components.d.ts +39 -4
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +2 -2
- package/dist/webcomponents/{p-232016ba.entry.js → p-08d88fd2.entry.js} +1 -1
- package/dist/webcomponents/p-0c2d91a2.entry.js +1 -0
- package/dist/webcomponents/{p-034fc302.entry.js → p-11f01df5.entry.js} +1 -1
- package/dist/webcomponents/p-122c2a11.entry.js +1 -0
- package/dist/webcomponents/{p-1c04aacd.entry.js → p-1d29488a.entry.js} +1 -1
- package/dist/webcomponents/{p-1eee25f3.entry.js → p-1e178dd1.entry.js} +2 -2
- package/dist/webcomponents/p-1eb60948.entry.js +1 -0
- package/dist/webcomponents/{p-dc048c3c.entry.js → p-23f95a19.entry.js} +1 -1
- package/dist/webcomponents/{p-ce5fe369.entry.js → p-2874d4b2.entry.js} +1 -1
- package/dist/webcomponents/{p-430f81c6.entry.js → p-43dfda70.entry.js} +1 -1
- package/dist/webcomponents/{p-75139399.entry.js → p-55fe2cf2.entry.js} +1 -1
- package/dist/webcomponents/{p-d99a5f30.entry.js → p-5df26e65.entry.js} +1 -1
- package/dist/webcomponents/p-5e5e8a85.js +1 -0
- package/dist/webcomponents/{p-9add7d3e.entry.js → p-605614f2.entry.js} +1 -1
- package/dist/webcomponents/{p-d76002d5.entry.js → p-61514f78.entry.js} +1 -1
- package/dist/webcomponents/p-6962044f.entry.js +1 -0
- package/dist/webcomponents/{p-570a0f02.entry.js → p-6a9e908b.entry.js} +1 -1
- package/dist/webcomponents/p-6ba660f2.entry.js +1 -0
- package/dist/webcomponents/{p-35846553.js → p-6d4b585d.js} +1 -1
- package/dist/webcomponents/{p-538fd427.entry.js → p-6e258b5f.entry.js} +1 -1
- package/dist/webcomponents/p-74da98da.js +1 -0
- package/dist/webcomponents/{p-ad47f37c.entry.js → p-770f60f9.entry.js} +1 -1
- package/dist/webcomponents/{p-b91bcbfc.js → p-799ee8c3.js} +1 -1
- package/dist/webcomponents/p-7cb3854c.entry.js +1 -0
- package/dist/webcomponents/p-7fec2bcb.js +1 -0
- package/dist/webcomponents/{p-b14da2fd.entry.js → p-80730b71.entry.js} +1 -1
- package/dist/webcomponents/{p-37888614.entry.js → p-8f04747b.entry.js} +1 -1
- package/dist/webcomponents/{p-c64ce69d.entry.js → p-8f447993.entry.js} +1 -1
- package/dist/webcomponents/p-9a37eee5.entry.js +1 -0
- package/dist/webcomponents/{p-d9579cd6.entry.js → p-a1d037cb.entry.js} +1 -1
- package/dist/webcomponents/{p-056e75be.entry.js → p-a3265844.entry.js} +1 -1
- package/dist/webcomponents/{p-c740b6ca.entry.js → p-a680c982.entry.js} +1 -1
- package/dist/webcomponents/{p-e2c88817.entry.js → p-a765230f.entry.js} +1 -1
- package/dist/webcomponents/p-a76ece26.js +1 -0
- package/dist/webcomponents/p-b7b18954.entry.js +1 -0
- package/dist/webcomponents/{p-707bdf68.js → p-bc9ae56f.js} +1 -1
- package/dist/webcomponents/p-c241cc62.entry.js +1 -0
- package/dist/webcomponents/{p-5e2c9ec8.js → p-ca8e126f.js} +1 -1
- package/dist/webcomponents/{p-e31f0f3e.entry.js → p-cd74be05.entry.js} +1 -1
- package/dist/webcomponents/{p-57d7534f.entry.js → p-d0ffb01c.entry.js} +1 -1
- package/dist/webcomponents/p-da316a74.entry.js +1 -0
- package/dist/webcomponents/{p-fb7f7a8c.entry.js → p-db3d1d7d.entry.js} +1 -1
- package/dist/webcomponents/p-dee2a3f8.entry.js +1 -0
- package/dist/webcomponents/{p-7ff329b1.js → p-e56ade55.js} +1 -1
- package/dist/webcomponents/p-e927fd5c.entry.js +1 -0
- package/dist/webcomponents/p-f3e00572.entry.js +1 -0
- package/dist/webcomponents/p-f71a5975.entry.js +1 -0
- package/dist/webcomponents/{p-3c7fac29.entry.js → p-ffe27126.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +0 -118
- package/dist/cjs/styled-host-9e0b67b3.js +0 -14
- package/dist/esm/form-control-error-text_4.entry.js +0 -111
- package/dist/esm/styled-host-3171ae1f.js +0 -12
- package/dist/webcomponents/p-44055818.js +0 -1
- package/dist/webcomponents/p-59cf5391.entry.js +0 -1
- package/dist/webcomponents/p-60d3571e.entry.js +0 -1
- package/dist/webcomponents/p-6ac806ff.entry.js +0 -1
- package/dist/webcomponents/p-7771f64b.entry.js +0 -1
- package/dist/webcomponents/p-7ddfce86.entry.js +0 -1
- package/dist/webcomponents/p-8a7112a0.entry.js +0 -1
- package/dist/webcomponents/p-9b154d98.entry.js +0 -1
- package/dist/webcomponents/p-ab92abb1.entry.js +0 -1
- package/dist/webcomponents/p-aedb421f.entry.js +0 -1
- package/dist/webcomponents/p-bbed6107.entry.js +0 -1
- package/dist/webcomponents/p-bdc91c61.entry.js +0 -1
- package/dist/webcomponents/p-c1772671.entry.js +0 -1
- package/dist/webcomponents/p-d8355f91.entry.js +0 -1
- package/dist/webcomponents/p-d89bad72.js +0 -1
- package/dist/webcomponents/p-df21aaad.js +0 -1
- package/dist/webcomponents/p-f0866375.entry.js +0 -1
- package/dist/webcomponents/p-f2924369.js +0 -1
- package/dist/webcomponents/p-ffddac99.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
3
|
+
import { a as BusinessFormStep, B as BusinessFormStepV2 } from './business-form-types.js';
|
|
4
4
|
import { g as bankNameValidation, n as nicknameValidation, i as identityNameValidation, h as accountTypeValidation, j as accountNumberValidation, k as routingNumberValidation } from './schema-validations.js';
|
|
5
5
|
import { c as bankAccountTypeOptions } from './business-form-options.js';
|
|
6
6
|
import { A as Api } from './Api.js';
|
|
@@ -10,10 +10,11 @@ import './Payout.js';
|
|
|
10
10
|
import { c as config } from './config.js';
|
|
11
11
|
import { n as numberOnlyHandler } from './utils4.js';
|
|
12
12
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
13
|
+
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
13
14
|
import { d as defineCustomElement$4 } from './form-control-error-text2.js';
|
|
14
|
-
import { d as defineCustomElement$3 } from './form-control-
|
|
15
|
-
import { d as defineCustomElement$2 } from './form-control-
|
|
16
|
-
import { d as defineCustomElement$1 } from './form-control-
|
|
15
|
+
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
16
|
+
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
17
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
17
18
|
|
|
18
19
|
const businessBankAccountSchema = (allowOptionalFields) => {
|
|
19
20
|
const schema = create$3({
|
|
@@ -61,6 +62,7 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
61
62
|
super();
|
|
62
63
|
this.__registerHost();
|
|
63
64
|
this.submitted = createEvent(this, "submitted", 7);
|
|
65
|
+
this.stepCompleted = createEvent(this, "form-step-completed", 7);
|
|
64
66
|
this.formLoading = createEvent(this, "formLoading", 7);
|
|
65
67
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
66
68
|
this.fetchData = async () => {
|
|
@@ -140,10 +142,16 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
140
142
|
onSuccess();
|
|
141
143
|
}
|
|
142
144
|
this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.bankAccount } });
|
|
145
|
+
this.stepCompleted.emit({ data: response, formStep: BusinessFormStepV2.bankAccount });
|
|
143
146
|
}
|
|
144
147
|
async validateAndSubmit({ onSuccess }) {
|
|
145
|
-
this.formDisabled
|
|
148
|
+
if (this.formDisabled) {
|
|
149
|
+
this.stepCompleted.emit({ data: null, formStep: BusinessFormStepV2.bankAccount, metadata: 'no data submitted' });
|
|
150
|
+
onSuccess();
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
146
153
|
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
154
|
+
}
|
|
147
155
|
}
|
|
148
156
|
;
|
|
149
157
|
componentWillLoad() {
|
|
@@ -161,7 +169,7 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
161
169
|
}
|
|
162
170
|
render() {
|
|
163
171
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
164
|
-
return (h("form", { key: '
|
|
172
|
+
return (h("form", { key: 'c19f52934f1fa591d71175d1a0a584c0e9d0bd92' }, h("fieldset", { key: '96c326422e38efe3413b282fcc2415355108992c' }, h("div", { key: '7a39297bc087e310ad28fbdd58e71b509c002132', class: "d-flex align-items-center gap-2" }, h("legend", { key: '81b0cc0fc84846e04f3efb1efc0c33c181a3399d', class: "mb-0" }, "Bank Account Info"), h("form-control-tooltip", { key: 'f24f0605251a59c7df3a01bfb5d01302e95b45ba', helpText: "The Direct Deposit Account is the business bank account where your 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", { key: '8386d2b17e191ca529a663ced0c430e71c3da4d6', class: "mt-2" }), h("div", { key: 'd5ddcc4c0b54320a0e1f1fd381dd41e8bdb86c2f', class: "row gy-3" }, h("div", { key: '29bd4e26bed9fef74ee79241d5dc6fd9a4d5954e', class: "col-12" }, h("form-control-text", { key: 'ac9781048b7dfb24da9565b058994ffd78053db9', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'db9d13b0a62927b790bdcf5bc77ffa4fbadb227b', class: "col-12" }, h("form-control-text", { key: '41d192f0d9df09e62aa929642ca2ae40946f951e', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '2b37a20c6bb6f942ccf5b49e84a2d6d1669d9fd7', class: "col-12" }, h("form-control-text", { key: '0392b8d08a48ff27af80d6fa42959b90a713de4e', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '2a30485d70f0825e7e677b3f4b75caf4c601090e', class: "col-12" }, h("form-control-select", { key: '65cb43b080e47208bf83099cfec12cc8351281c6', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ab0c65f348486814ac14ed548ecaa25610e14d58', class: "col-12" }, h("form-control-text", { key: '3c08ce88f652bfe6ae64807beab30ed796cad6c3', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." })), h("div", { key: 'f5314db551f6d4482f151b49d9db685b78223f2a', class: "col-12" }, h("form-control-text", { key: '1f204b3140c9fc4fe20519ebc082751c291ba816', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." }))))));
|
|
165
173
|
}
|
|
166
174
|
}, [0, "justifi-business-bank-account-form-step", {
|
|
167
175
|
"authToken": [1, "auth-token"],
|
|
@@ -176,29 +184,34 @@ function defineCustomElement() {
|
|
|
176
184
|
if (typeof customElements === "undefined") {
|
|
177
185
|
return;
|
|
178
186
|
}
|
|
179
|
-
const components = ["justifi-business-bank-account-form-step", "form-control-error-text", "form-control-
|
|
187
|
+
const components = ["justifi-business-bank-account-form-step", "custom-popper", "form-control-error-text", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
180
188
|
components.forEach(tagName => { switch (tagName) {
|
|
181
189
|
case "justifi-business-bank-account-form-step":
|
|
182
190
|
if (!customElements.get(tagName)) {
|
|
183
191
|
customElements.define(tagName, BusinessBankAccountFormStep);
|
|
184
192
|
}
|
|
185
193
|
break;
|
|
194
|
+
case "custom-popper":
|
|
195
|
+
if (!customElements.get(tagName)) {
|
|
196
|
+
defineCustomElement$5();
|
|
197
|
+
}
|
|
198
|
+
break;
|
|
186
199
|
case "form-control-error-text":
|
|
187
200
|
if (!customElements.get(tagName)) {
|
|
188
201
|
defineCustomElement$4();
|
|
189
202
|
}
|
|
190
203
|
break;
|
|
191
|
-
case "form-control-
|
|
204
|
+
case "form-control-select":
|
|
192
205
|
if (!customElements.get(tagName)) {
|
|
193
206
|
defineCustomElement$3();
|
|
194
207
|
}
|
|
195
208
|
break;
|
|
196
|
-
case "form-control-
|
|
209
|
+
case "form-control-text":
|
|
197
210
|
if (!customElements.get(tagName)) {
|
|
198
211
|
defineCustomElement$2();
|
|
199
212
|
}
|
|
200
213
|
break;
|
|
201
|
-
case "form-control-
|
|
214
|
+
case "form-control-tooltip":
|
|
202
215
|
if (!customElements.get(tagName)) {
|
|
203
216
|
defineCustomElement$1();
|
|
204
217
|
}
|
|
@@ -2,21 +2,24 @@ 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 { B as BusinessFormStepV2 } from './business-form-types.js';
|
|
5
6
|
import { a as businessClassificationOptions } from './business-form-options.js';
|
|
6
7
|
import { P as PHONE_MASKS } from './form-input-masks.js';
|
|
7
8
|
import { n as numberOnlyHandler } from './utils4.js';
|
|
9
|
+
import { d as defineCustomElement$7 } from './custom-popper2.js';
|
|
8
10
|
import { d as defineCustomElement$6 } from './form-control-date2.js';
|
|
9
11
|
import { d as defineCustomElement$5 } from './form-control-error-text2.js';
|
|
10
|
-
import { d as defineCustomElement$4 } from './form-control-
|
|
11
|
-
import { d as defineCustomElement$3 } from './form-control-
|
|
12
|
-
import { d as defineCustomElement$2 } from './form-control-
|
|
13
|
-
import { d as defineCustomElement$1 } from './form-control-
|
|
12
|
+
import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
15
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
14
16
|
|
|
15
17
|
const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfoFormStepCore extends HTMLElement {
|
|
16
18
|
constructor() {
|
|
17
19
|
super();
|
|
18
20
|
this.__registerHost();
|
|
19
21
|
this.submitted = createEvent(this, "submitted", 7);
|
|
22
|
+
this.stepCompleted = createEvent(this, "form-step-completed", 7);
|
|
20
23
|
this.formLoading = createEvent(this, "formLoading", 7);
|
|
21
24
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
22
25
|
this.getData = () => {
|
|
@@ -55,6 +58,7 @@ const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busi
|
|
|
55
58
|
},
|
|
56
59
|
final: () => {
|
|
57
60
|
this.submitted.emit({ data: { submittedData } });
|
|
61
|
+
this.stepCompleted.emit({ data: submittedData, formStep: BusinessFormStepV2.businessInfo });
|
|
58
62
|
this.formLoading.emit(false);
|
|
59
63
|
}
|
|
60
64
|
});
|
|
@@ -89,7 +93,7 @@ const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busi
|
|
|
89
93
|
}
|
|
90
94
|
render() {
|
|
91
95
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
92
|
-
return (h("form", { key: '
|
|
96
|
+
return (h("form", { key: '356323599591a3f6fdbdb634af70a90c1d614cee' }, h("fieldset", { key: '72021ae5bc712c81936a73a13bd5f62aa9208f71' }, h("div", { key: 'a92a56aeb5ac85a0bf531ac3f7905c827a91674b', class: "d-flex align-items-center gap-2" }, h("legend", { key: '0e1680b2eeacc7892dbb40a3e3b4bf94f706db25', class: "mb-0" }, "Business Information")), h("hr", { key: '4402e5e81d5e77f2d599774a9cbcab87f3e4d389', class: "mt-2" }), h("div", { key: '1e92f6236baef69ab2f00745d634dc79e0aa6660', class: "row gy-3" }, h("div", { key: '538a0496ec6d8cc4f5b9456df047ac91de3cac10', class: "col-12" }, h("form-control-text", { key: '5ae093c4b43f0c66b7a0123dedd6e0da94774380', 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", { key: 'd7f4e47beb29ca0238186ba8778323dbe180a237', class: "col-12" }, h("form-control-text", { key: '8c430079a1d803929ba55aab06d7a526c9005848', 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", { key: '2ff888b63c1b8a64e2cfe2d1e3ed7d9177632830', class: "col-12 col-md-8" }, h("form-control-select", { key: 'd56eecead9f19371c6f6ae353cf9701b985d5343', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: 'fdf9a1599d058f2058ddf91d41494ea33b607a4f', class: "col-12 col-md-4" }, h("form-control-date", { key: '286fbe2e49062fb8cb8800f89b21253357bc74ed', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '83bc51ad16e48fe89cd01772faf0615a3128434e', class: "col-12 col-md-6" }, h("form-control-text", { key: 'dde1fdbc902b79440d6d9c39c6c6fdc3ad913200', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { key: '7cc685aca26505357f3f550c278d7b83b0e8ced3', class: "col-12 col-md-6" }, h("form-control-text", { key: '519a7f1672908413d4b1a4c09155aece58c176d9', 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", { key: 'a9e8c6c2c8e1f664869601c23ba951cc737c933c', class: "col-12" }, h("form-control-text", { key: 'a2285b78e6999a5e1de151c1258103496637b545', 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", { key: '0429aeb3991171d67990b96c89bcb8232a123848', class: "col-12 col-md-6" }, h("form-control-text", { key: '95b7f8153c178ea4dc0dc2631379f9012bbe2f8b', name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '90511bdbe0e23df68c1eba13a0cfccdf97f155e9', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '4fcde2104c1ad04ecc47a010c8219630b9717e43', name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
93
97
|
}
|
|
94
98
|
}, [0, "justifi-business-core-info-form-step-core", {
|
|
95
99
|
"businessId": [1, "business-id"],
|
|
@@ -105,13 +109,18 @@ function defineCustomElement() {
|
|
|
105
109
|
if (typeof customElements === "undefined") {
|
|
106
110
|
return;
|
|
107
111
|
}
|
|
108
|
-
const components = ["justifi-business-core-info-form-step-core", "form-control-date", "form-control-error-text", "form-control-
|
|
112
|
+
const components = ["justifi-business-core-info-form-step-core", "custom-popper", "form-control-date", "form-control-error-text", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
109
113
|
components.forEach(tagName => { switch (tagName) {
|
|
110
114
|
case "justifi-business-core-info-form-step-core":
|
|
111
115
|
if (!customElements.get(tagName)) {
|
|
112
116
|
customElements.define(tagName, BusinessCoreInfoFormStepCore);
|
|
113
117
|
}
|
|
114
118
|
break;
|
|
119
|
+
case "custom-popper":
|
|
120
|
+
if (!customElements.get(tagName)) {
|
|
121
|
+
defineCustomElement$7();
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
115
124
|
case "form-control-date":
|
|
116
125
|
if (!customElements.get(tagName)) {
|
|
117
126
|
defineCustomElement$6();
|
|
@@ -122,22 +131,22 @@ function defineCustomElement() {
|
|
|
122
131
|
defineCustomElement$5();
|
|
123
132
|
}
|
|
124
133
|
break;
|
|
125
|
-
case "form-control-
|
|
134
|
+
case "form-control-number-masked":
|
|
126
135
|
if (!customElements.get(tagName)) {
|
|
127
136
|
defineCustomElement$4();
|
|
128
137
|
}
|
|
129
138
|
break;
|
|
130
|
-
case "form-control-
|
|
139
|
+
case "form-control-select":
|
|
131
140
|
if (!customElements.get(tagName)) {
|
|
132
141
|
defineCustomElement$3();
|
|
133
142
|
}
|
|
134
143
|
break;
|
|
135
|
-
case "form-control-
|
|
144
|
+
case "form-control-text":
|
|
136
145
|
if (!customElements.get(tagName)) {
|
|
137
146
|
defineCustomElement$2();
|
|
138
147
|
}
|
|
139
148
|
break;
|
|
140
|
-
case "form-control-
|
|
149
|
+
case "form-control-tooltip":
|
|
141
150
|
if (!customElements.get(tagName)) {
|
|
142
151
|
defineCustomElement$1();
|
|
143
152
|
}
|
|
@@ -2,12 +2,13 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
3
3
|
import { m as makeGetBusiness, a as makePatchBusiness } from './payment-provisioning-actions.js';
|
|
4
4
|
import { B as BusinessService } from './business.service.js';
|
|
5
|
+
import { d as defineCustomElement$8 } from './custom-popper2.js';
|
|
5
6
|
import { d as defineCustomElement$7 } from './form-control-date2.js';
|
|
6
7
|
import { d as defineCustomElement$6 } from './form-control-error-text2.js';
|
|
7
|
-
import { d as defineCustomElement$5 } from './form-control-
|
|
8
|
-
import { d as defineCustomElement$4 } from './form-control-
|
|
9
|
-
import { d as defineCustomElement$3 } from './form-control-
|
|
10
|
-
import { d as defineCustomElement$2 } from './form-control-
|
|
8
|
+
import { d as defineCustomElement$5 } from './form-control-number-masked2.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './form-control-select2.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './form-control-text2.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
|
|
11
12
|
import { d as defineCustomElement$1 } from './business-core-info-form-step-core.js';
|
|
12
13
|
|
|
13
14
|
const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfoFormStep extends HTMLElement {
|
|
@@ -52,7 +53,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
render() {
|
|
55
|
-
return (h("justifi-business-core-info-form-step-core", { key: '
|
|
56
|
+
return (h("justifi-business-core-info-form-step-core", { key: '8b034d8c728aef3683823a45083764a456d07545', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
56
57
|
}
|
|
57
58
|
static get watchers() { return {
|
|
58
59
|
"authToken": ["propChanged"],
|
|
@@ -73,13 +74,18 @@ function defineCustomElement() {
|
|
|
73
74
|
if (typeof customElements === "undefined") {
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
|
-
const components = ["justifi-business-core-info-form-step", "form-control-date", "form-control-error-text", "form-control-
|
|
77
|
+
const components = ["justifi-business-core-info-form-step", "custom-popper", "form-control-date", "form-control-error-text", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-core-info-form-step-core"];
|
|
77
78
|
components.forEach(tagName => { switch (tagName) {
|
|
78
79
|
case "justifi-business-core-info-form-step":
|
|
79
80
|
if (!customElements.get(tagName)) {
|
|
80
81
|
customElements.define(tagName, BusinessCoreInfoFormStep);
|
|
81
82
|
}
|
|
82
83
|
break;
|
|
84
|
+
case "custom-popper":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
defineCustomElement$8();
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
83
89
|
case "form-control-date":
|
|
84
90
|
if (!customElements.get(tagName)) {
|
|
85
91
|
defineCustomElement$7();
|
|
@@ -90,22 +96,22 @@ function defineCustomElement() {
|
|
|
90
96
|
defineCustomElement$6();
|
|
91
97
|
}
|
|
92
98
|
break;
|
|
93
|
-
case "form-control-
|
|
99
|
+
case "form-control-number-masked":
|
|
94
100
|
if (!customElements.get(tagName)) {
|
|
95
101
|
defineCustomElement$5();
|
|
96
102
|
}
|
|
97
103
|
break;
|
|
98
|
-
case "form-control-
|
|
104
|
+
case "form-control-select":
|
|
99
105
|
if (!customElements.get(tagName)) {
|
|
100
106
|
defineCustomElement$4();
|
|
101
107
|
}
|
|
102
108
|
break;
|
|
103
|
-
case "form-control-
|
|
109
|
+
case "form-control-text":
|
|
104
110
|
if (!customElements.get(tagName)) {
|
|
105
111
|
defineCustomElement$3();
|
|
106
112
|
}
|
|
107
113
|
break;
|
|
108
|
-
case "form-control-
|
|
114
|
+
case "form-control-tooltip":
|
|
109
115
|
if (!customElements.get(tagName)) {
|
|
110
116
|
defineCustomElement$2();
|
|
111
117
|
}
|
|
@@ -2,12 +2,13 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
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
|
+
import { d as defineCustomElement$7 } from './custom-popper2.js';
|
|
5
6
|
import { d as defineCustomElement$6 } from './form-control-date2.js';
|
|
6
7
|
import { d as defineCustomElement$5 } from './form-control-error-text2.js';
|
|
7
|
-
import { d as defineCustomElement$4 } from './form-control-
|
|
8
|
-
import { d as defineCustomElement$3 } from './form-control-
|
|
9
|
-
import { d as defineCustomElement$2 } from './form-control-
|
|
10
|
-
import { d as defineCustomElement$1 } from './form-control-
|
|
8
|
+
import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
11
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
11
12
|
|
|
12
13
|
const BusinessCoreInfo = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfo extends HTMLElement {
|
|
13
14
|
constructor() {
|
|
@@ -40,13 +41,18 @@ function defineCustomElement() {
|
|
|
40
41
|
if (typeof customElements === "undefined") {
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
|
-
const components = ["justifi-business-core-info", "form-control-date", "form-control-error-text", "form-control-
|
|
44
|
+
const components = ["justifi-business-core-info", "custom-popper", "form-control-date", "form-control-error-text", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
44
45
|
components.forEach(tagName => { switch (tagName) {
|
|
45
46
|
case "justifi-business-core-info":
|
|
46
47
|
if (!customElements.get(tagName)) {
|
|
47
48
|
customElements.define(tagName, BusinessCoreInfo);
|
|
48
49
|
}
|
|
49
50
|
break;
|
|
51
|
+
case "custom-popper":
|
|
52
|
+
if (!customElements.get(tagName)) {
|
|
53
|
+
defineCustomElement$7();
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
50
56
|
case "form-control-date":
|
|
51
57
|
if (!customElements.get(tagName)) {
|
|
52
58
|
defineCustomElement$6();
|
|
@@ -57,22 +63,22 @@ function defineCustomElement() {
|
|
|
57
63
|
defineCustomElement$5();
|
|
58
64
|
}
|
|
59
65
|
break;
|
|
60
|
-
case "form-control-
|
|
66
|
+
case "form-control-number-masked":
|
|
61
67
|
if (!customElements.get(tagName)) {
|
|
62
68
|
defineCustomElement$4();
|
|
63
69
|
}
|
|
64
70
|
break;
|
|
65
|
-
case "form-control-
|
|
71
|
+
case "form-control-select":
|
|
66
72
|
if (!customElements.get(tagName)) {
|
|
67
73
|
defineCustomElement$3();
|
|
68
74
|
}
|
|
69
75
|
break;
|
|
70
|
-
case "form-control-
|
|
76
|
+
case "form-control-text":
|
|
71
77
|
if (!customElements.get(tagName)) {
|
|
72
78
|
defineCustomElement$2();
|
|
73
79
|
}
|
|
74
80
|
break;
|
|
75
|
-
case "form-control-
|
|
81
|
+
case "form-control-tooltip":
|
|
76
82
|
if (!customElements.get(tagName)) {
|
|
77
83
|
defineCustomElement$1();
|
|
78
84
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
3
|
+
import { a as BusinessFormStep, B as BusinessFormStepV2 } from './business-form-types.js';
|
|
4
4
|
import { a as Business } from './Business.js';
|
|
5
5
|
import { A as Api } from './Api.js';
|
|
6
6
|
import { c as config } from './config.js';
|
|
@@ -8,9 +8,10 @@ import { B as voidedCheckValidation, C as governmentIdValidation, D as ss4Valida
|
|
|
8
8
|
import { a as EntityDocument, b as EntityDocumentStorage } from './Document.js';
|
|
9
9
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
10
10
|
import { S as Skeleton } from './skeleton.js';
|
|
11
|
+
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
11
12
|
import { d as defineCustomElement$5 } from './form-control-error-text2.js';
|
|
12
13
|
import { d as defineCustomElement$4 } from './form-control-file2.js';
|
|
13
|
-
import { d as defineCustomElement$3 } from './form-control-
|
|
14
|
+
import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
|
|
14
15
|
import { d as defineCustomElement$2 } from './business-document-upload-input-group.js';
|
|
15
16
|
import { d as defineCustomElement$1 } from './business-documents-on-file.js';
|
|
16
17
|
|
|
@@ -41,6 +42,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
41
42
|
super();
|
|
42
43
|
this.__registerHost();
|
|
43
44
|
this.submitted = createEvent(this, "submitted", 7);
|
|
45
|
+
this.stepCompleted = createEvent(this, "form-step-completed", 7);
|
|
44
46
|
this.formLoading = createEvent(this, "formLoading", 7);
|
|
45
47
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
46
48
|
this.inputHandler = (name, value) => {
|
|
@@ -130,6 +132,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
130
132
|
}
|
|
131
133
|
else {
|
|
132
134
|
this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.documentUpload } });
|
|
135
|
+
this.stepCompleted.emit({ data: response, formStep: BusinessFormStepV2.documentUpload });
|
|
133
136
|
return true;
|
|
134
137
|
}
|
|
135
138
|
};
|
|
@@ -143,6 +146,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
143
146
|
try {
|
|
144
147
|
const docArray = Object.values(this.documentData).flat();
|
|
145
148
|
if (!docArray.length) {
|
|
149
|
+
this.stepCompleted.emit({ data: null, formStep: BusinessFormStepV2.documentUpload, metadata: 'no data submitted' });
|
|
146
150
|
return onSuccess();
|
|
147
151
|
}
|
|
148
152
|
const documentRecords = docArray.map(docData => this.createDocumentRecord(docData));
|
|
@@ -212,7 +216,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
212
216
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
213
217
|
}
|
|
214
218
|
render() {
|
|
215
|
-
return (h("form", { key: '
|
|
219
|
+
return (h("form", { key: 'f240b37d159cbf3db19e4256f97ade622e88d41b' }, h("fieldset", { key: '0555c8a1747336af04b470f750343d231cebb7cc' }, h("div", { key: '7c46295e5997aba7f769324d52def17236babe7b', class: "d-flex align-items-center gap-2" }, h("legend", { key: '2a3fe8a3031a1923df6de8752438d595d935d8f6', class: "mb-0" }, "Document Uploads"), h("form-control-tooltip", { key: '6b3f02a801ff53a1c28ee30710980f5e2790ac5c', helpText: "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category." })), h("hr", { key: 'ac1f9e460920d3654f9c079e8c3fc84ccf7369b4', class: "mt-2" }), this.documentsOnFile, h("div", { key: '444b0f875d460d6bdddc9183bc5c797d3828c127', class: "d-flex flex-column" }, this.formInputs))));
|
|
216
220
|
}
|
|
217
221
|
}, [0, "justifi-business-document-upload-form-step", {
|
|
218
222
|
"authToken": [1, "auth-token"],
|
|
@@ -231,13 +235,18 @@ function defineCustomElement() {
|
|
|
231
235
|
if (typeof customElements === "undefined") {
|
|
232
236
|
return;
|
|
233
237
|
}
|
|
234
|
-
const components = ["justifi-business-document-upload-form-step", "form-control-error-text", "form-control-file", "form-control-
|
|
238
|
+
const components = ["justifi-business-document-upload-form-step", "custom-popper", "form-control-error-text", "form-control-file", "form-control-tooltip", "justifi-business-document-upload-input-group", "justifi-business-documents-on-file"];
|
|
235
239
|
components.forEach(tagName => { switch (tagName) {
|
|
236
240
|
case "justifi-business-document-upload-form-step":
|
|
237
241
|
if (!customElements.get(tagName)) {
|
|
238
242
|
customElements.define(tagName, BusinessDocumentFormStep);
|
|
239
243
|
}
|
|
240
244
|
break;
|
|
245
|
+
case "custom-popper":
|
|
246
|
+
if (!customElements.get(tagName)) {
|
|
247
|
+
defineCustomElement$6();
|
|
248
|
+
}
|
|
249
|
+
break;
|
|
241
250
|
case "form-control-error-text":
|
|
242
251
|
if (!customElements.get(tagName)) {
|
|
243
252
|
defineCustomElement$5();
|
|
@@ -248,7 +257,7 @@ function defineCustomElement() {
|
|
|
248
257
|
defineCustomElement$4();
|
|
249
258
|
}
|
|
250
259
|
break;
|
|
251
|
-
case "form-control-
|
|
260
|
+
case "form-control-tooltip":
|
|
252
261
|
if (!customElements.get(tagName)) {
|
|
253
262
|
defineCustomElement$3();
|
|
254
263
|
}
|
|
@@ -1,51 +1,52 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { E as EntityDocumentType } from './Document.js';
|
|
3
3
|
import { d as isInRange } from './utils2.js';
|
|
4
|
+
import { d as defineCustomElement$4 } from './custom-popper2.js';
|
|
4
5
|
import { d as defineCustomElement$3 } from './form-control-error-text2.js';
|
|
5
6
|
import { d as defineCustomElement$2 } from './form-control-file2.js';
|
|
6
|
-
import { d as defineCustomElement$1 } from './form-control-
|
|
7
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
7
8
|
|
|
8
9
|
const voidedCheck = {
|
|
9
|
-
name:
|
|
10
|
-
label:
|
|
10
|
+
name: "voided_check",
|
|
11
|
+
label: "Upload Voided Check",
|
|
11
12
|
documentType: EntityDocumentType.voidedCheck,
|
|
12
|
-
helpText:
|
|
13
|
+
helpText: "Voided check or bank statement where the legal entity and account number are clearly visible. The check must match the legal entity registering for this merchant account."
|
|
13
14
|
};
|
|
14
15
|
const bankStatements = {
|
|
15
|
-
name:
|
|
16
|
-
label:
|
|
16
|
+
name: "bank_statement",
|
|
17
|
+
label: "Upload Bank Statements",
|
|
17
18
|
documentType: EntityDocumentType.bankStatement,
|
|
18
|
-
helpText:
|
|
19
|
+
helpText: "The most recent 3 months of your business’ bank statements. The statements must match the legal entity registering for this merchant account."
|
|
19
20
|
};
|
|
20
21
|
const balanceSheet = {
|
|
21
|
-
name:
|
|
22
|
-
label:
|
|
22
|
+
name: "balance_sheet",
|
|
23
|
+
label: "Upload FYE Balance Sheets",
|
|
23
24
|
documentType: EntityDocumentType.balanceSheet,
|
|
24
|
-
helpText:
|
|
25
|
+
helpText: "Please provide the balance sheet that corresponds to the last day of your business' last two fiscal years. For example, 12/31/2022 & 12/31/2023 balance sheets."
|
|
25
26
|
};
|
|
26
27
|
const governmentId = {
|
|
27
28
|
name: 'government_id',
|
|
28
|
-
label: 'Upload Government ID',
|
|
29
|
+
label: 'Upload Government ID (optional)',
|
|
29
30
|
documentType: EntityDocumentType.governmentId,
|
|
30
|
-
helpText:
|
|
31
|
+
helpText: "The ID must include a personal address."
|
|
31
32
|
};
|
|
32
33
|
const profitAndLossStatement = {
|
|
33
|
-
name:
|
|
34
|
-
label:
|
|
34
|
+
name: "profit_and_loss_statement",
|
|
35
|
+
label: "Upload FYE Profit and Loss Statements",
|
|
35
36
|
documentType: EntityDocumentType.profitAndLossStatement,
|
|
36
|
-
helpText:
|
|
37
|
+
helpText: "Fiscal Year End Profit and Loss statements for your business’ last two fiscal years. For example, FYE 2022 and FYE 2023 profit and loss statements."
|
|
37
38
|
};
|
|
38
39
|
const ss4 = {
|
|
39
40
|
name: 'ss4',
|
|
40
|
-
label: 'Upload SS4 / Article of Incorporation',
|
|
41
|
+
label: 'Upload SS4 / Article of Incorporation (optional)',
|
|
41
42
|
documentType: EntityDocumentType.taxReturn,
|
|
42
43
|
helpText: "Please upload the business's SS4 / Article of Incorporation."
|
|
43
44
|
};
|
|
44
45
|
const other = {
|
|
45
46
|
name: 'other',
|
|
46
|
-
label: 'Upload any other documents',
|
|
47
|
+
label: 'Upload any other documents (optional)',
|
|
47
48
|
documentType: EntityDocumentType.other,
|
|
48
|
-
helpText:
|
|
49
|
+
helpText: "Please upload any other documents that may be relevant to your business."
|
|
49
50
|
};
|
|
50
51
|
const inputConfigurations = {
|
|
51
52
|
voidedCheck,
|
|
@@ -87,7 +88,7 @@ const BusinessDocumentUploadInputGroup = /*@__PURE__*/ proxyCustomElement(class
|
|
|
87
88
|
}
|
|
88
89
|
render() {
|
|
89
90
|
const inputsConfig = this.inputConfigs;
|
|
90
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: 'e43e94c773b524f5725c75af53db4ceadc0ba172', class: "row gy-3" }, inputsConfig.map(config => (h("div", { class: "col-12 col-md-6" }, h("form-control-file", { name: config.name, label: config.label, helpText: config.helpText, documentType: config.documentType, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors[config.name], multiple: true }))))));
|
|
91
92
|
}
|
|
92
93
|
}, [0, "justifi-business-document-upload-input-group", {
|
|
93
94
|
"paymentVolume": [1, "payment-volume"],
|
|
@@ -99,13 +100,18 @@ function defineCustomElement() {
|
|
|
99
100
|
if (typeof customElements === "undefined") {
|
|
100
101
|
return;
|
|
101
102
|
}
|
|
102
|
-
const components = ["justifi-business-document-upload-input-group", "form-control-error-text", "form-control-file", "form-control-
|
|
103
|
+
const components = ["justifi-business-document-upload-input-group", "custom-popper", "form-control-error-text", "form-control-file", "form-control-tooltip"];
|
|
103
104
|
components.forEach(tagName => { switch (tagName) {
|
|
104
105
|
case "justifi-business-document-upload-input-group":
|
|
105
106
|
if (!customElements.get(tagName)) {
|
|
106
107
|
customElements.define(tagName, BusinessDocumentUploadInputGroup);
|
|
107
108
|
}
|
|
108
109
|
break;
|
|
110
|
+
case "custom-popper":
|
|
111
|
+
if (!customElements.get(tagName)) {
|
|
112
|
+
defineCustomElement$4();
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
109
115
|
case "form-control-error-text":
|
|
110
116
|
if (!customElements.get(tagName)) {
|
|
111
117
|
defineCustomElement$3();
|
|
@@ -116,7 +122,7 @@ function defineCustomElement() {
|
|
|
116
122
|
defineCustomElement$2();
|
|
117
123
|
}
|
|
118
124
|
break;
|
|
119
|
-
case "form-control-
|
|
125
|
+
case "form-control-tooltip":
|
|
120
126
|
if (!customElements.get(tagName)) {
|
|
121
127
|
defineCustomElement$1();
|
|
122
128
|
}
|
|
@@ -9,6 +9,17 @@ var BusinessFormStep;
|
|
|
9
9
|
BusinessFormStep["documentUpload"] = "documentUpload";
|
|
10
10
|
BusinessFormStep["termsAndConditions"] = "termsAndConditions";
|
|
11
11
|
})(BusinessFormStep || (BusinessFormStep = {}));
|
|
12
|
+
var BusinessFormStepV2;
|
|
13
|
+
(function (BusinessFormStepV2) {
|
|
14
|
+
BusinessFormStepV2["businessInfo"] = "business_info";
|
|
15
|
+
BusinessFormStepV2["legalAddress"] = "legal_address";
|
|
16
|
+
BusinessFormStepV2["additionalQuestions"] = "additional_questions";
|
|
17
|
+
BusinessFormStepV2["representative"] = "representative";
|
|
18
|
+
BusinessFormStepV2["owners"] = "owners";
|
|
19
|
+
BusinessFormStepV2["bankAccount"] = "bank_account";
|
|
20
|
+
BusinessFormStepV2["documentUpload"] = "document_upload";
|
|
21
|
+
BusinessFormStepV2["termsAndConditions"] = "terms_and_conditions";
|
|
22
|
+
})(BusinessFormStepV2 || (BusinessFormStepV2 = {}));
|
|
12
23
|
var BusinessFormServerErrors;
|
|
13
24
|
(function (BusinessFormServerErrors) {
|
|
14
25
|
BusinessFormServerErrors["fetchData"] = "Error retrieving business data";
|
|
@@ -36,4 +47,4 @@ var DocumentFormServerErrors;
|
|
|
36
47
|
DocumentFormServerErrors["sendData"] = "Error uploading document data";
|
|
37
48
|
})(DocumentFormServerErrors || (DocumentFormServerErrors = {}));
|
|
38
49
|
|
|
39
|
-
export {
|
|
50
|
+
export { BusinessFormStepV2 as B, BusinessFormStep as a, BusinessFormServerErrors as b, BusinessFormClickActions as c };
|