@justifi/webcomponents 6.12.6-rc.1 → 6.12.6
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/LICENSE +21 -0
- package/dist/cjs/{Analytics-CexlbLRl.js → Analytics-CuYtRPw5.js} +2 -2
- package/dist/cjs/{Plaid-KasiL5mp.js → Plaid-BRSyOOuw.js} +19 -14
- package/dist/cjs/{additional-questions-form-step_15.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +169 -378
- package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
- package/dist/cjs/additional-statement_8.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-D_nM7NDk.js} +0 -51
- package/dist/cjs/{business-identity-schema-CC1wOwXd.js → business-identity-schema-DuFGX6_i.js} +7 -11
- package/dist/cjs/{business.service-BBovho58.js → business.service-Z9OACEQL.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-jeIQGJ8A.js → check-pkg-version-CPWLIT6P.js} +1 -1
- package/dist/cjs/{checkout.service-C0M9hmsL.js → checkout.service-BZOyqXgW.js} +1 -1
- package/dist/cjs/{country-config-Ck-eEeZZ.js → country-config-aJp8ScEs.js} +0 -2
- package/dist/cjs/dispute-notification_2.cjs.entry.js +6 -6
- package/dist/cjs/{event-types-DDNVjmfR.js → event-types-AU1B76Vm.js} +1 -1
- package/dist/cjs/form-address-fields_3.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number_2.cjs.entry.js +4 -5
- package/dist/cjs/{get-business-Ggw-UjXj.js → get-business-aR-C83KX.js} +2 -2
- package/dist/cjs/{get-payment-details-BVKRwME1.js → get-payment-details-dwhA02Zl.js} +2 -2
- package/dist/cjs/{get-subaccounts-RRmcS9xU.js → get-subaccounts-B1jmSa2d.js} +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/{index.esm-BNETBIV_.js → index.esm-C1ZPG85l.js} +18 -0
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +11 -10
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{lodash-CxSkBibc.js → lodash-C4mGy21w.js} +38 -27
- package/dist/cjs/{package-CDegPd7E.js → package-Dxjq_cJI.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-Cn8bgHKu.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
- package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +2 -3
- package/dist/cjs/{payment.service-CbIxt30x.js → payment.service-ByrgA_QZ.js} +1 -1
- package/dist/cjs/{payout.service-DVMvsdAf.js → payout.service-CnQm_BpU.js} +1 -1
- package/dist/cjs/{payouts-status-CzS2CLGW.js → payouts-status-AuS3Mp0V.js} +2 -2
- package/dist/cjs/{plaid.service-DNT_DX6z.js → plaid.service-Dlb8EUR8.js} +1 -1
- package/dist/cjs/{schema-validations-DackMxv7.js → schema-validations-DNPcvDh5.js} +8 -11
- package/dist/cjs/styled-host-DAi5SuFa.js +11 -0
- package/dist/cjs/{terminal.service-BBHixg-d.js → terminal.service-BdwHQ3Vv.js} +1 -1
- package/dist/cjs/{utils-kDsk4nqH.js → utils-FVGp6se3.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Document.js +7 -14
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -4
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -46
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +114 -6
- 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 +0 -8
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -4
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -3
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +38 -10
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +3 -7
- package/dist/collection/components/business-forms/schemas/schema-validations.js +5 -8
- package/dist/collection/components/business-forms/utils/business-form-options.js +0 -50
- package/dist/collection/components/business-forms/utils/country-config.js +0 -2
- package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +8 -6
- package/dist/collection/ui-components/form/form-control-file.js +1 -1
- package/dist/docs.json +76 -502
- package/dist/esm/{Analytics-5J6H0ALl.js → Analytics-CwckfiSK.js} +2 -2
- package/dist/esm/{Plaid-BM3JUIG5.js → Plaid-l6nNIjab.js} +19 -15
- package/dist/esm/{additional-questions-form-step_15.entry.js → additional-questions-form-step_14.entry.js} +169 -377
- package/dist/esm/additional-questions_5.entry.js +8 -8
- package/dist/esm/additional-statement_8.entry.js +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/{business-form-options-DXjZp4Rl.js → business-form-options-DRalxlqN.js} +1 -51
- package/dist/esm/{business-identity-schema-D8L_UfWl.js → business-identity-schema-0Q3kck3C.js} +7 -11
- package/dist/esm/{business.service-C4BD3pf7.js → business.service-C31wbMVs.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-C7cHTIM0.js → check-pkg-version-Dy2NK3Nn.js} +1 -1
- package/dist/esm/{checkout.service-DmWeKNQs.js → checkout.service-cVdOGDuI.js} +1 -1
- package/dist/esm/{country-config-BW2dUoTJ.js → country-config-CdvhLcnT.js} +0 -2
- package/dist/esm/dispute-notification_2.entry.js +6 -6
- package/dist/esm/{event-types-eIqsrwmW.js → event-types-DalU_6SB.js} +1 -1
- package/dist/esm/form-address-fields_3.entry.js +1 -1
- package/dist/esm/form-control-number_2.entry.js +4 -5
- package/dist/esm/{get-business-DtFHdc37.js → get-business-Gg6qn5on.js} +2 -2
- package/dist/esm/{get-payment-details-26GxiYgv.js → get-payment-details-BiWgSJau.js} +2 -2
- package/dist/esm/{get-subaccounts-xkGMPstt.js → get-subaccounts-CkjZeR9U.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/{index.esm-KCSohgHx.js → index.esm-BHdVU4hV.js} +18 -1
- package/dist/esm/justifi-apple-pay_11.entry.js +11 -10
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
- package/dist/esm/justifi-bank-account-form.entry.js +5 -5
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +13 -13
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +8 -8
- package/dist/esm/justifi-dispute-management.entry.js +7 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
- package/dist/esm/justifi-order-terminals.entry.js +9 -9
- package/dist/esm/justifi-payment-details.entry.js +8 -8
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +7 -7
- package/dist/esm/justifi-payout-details.entry.js +8 -8
- package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +9 -9
- package/dist/esm/justifi-refund-payment.entry.js +9 -9
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{lodash-CrGKVSPp.js → lodash-BF_QgjtL.js} +38 -27
- package/dist/esm/{package-8R9xLun-.js → package-DAZd_gFd.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-fWdNDUdq.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -3
- package/dist/esm/{payment.service-CWR7jF-K.js → payment.service-5_u-UzTY.js} +1 -1
- package/dist/esm/{payout.service-CFU362cH.js → payout.service-D2zS5y8N.js} +1 -1
- package/dist/esm/{payouts-status-D2G7FKu1.js → payouts-status-DCjCGTaa.js} +2 -2
- package/dist/esm/{plaid.service-0hd1i5Ga.js → plaid.service-BiJ65YG8.js} +1 -1
- package/dist/esm/{schema-validations-CjqWFLKt.js → schema-validations-A1o1biOB.js} +8 -11
- package/dist/esm/styled-host-D6byRazK.js +9 -0
- package/dist/esm/{terminal.service-Dr6dERcJ.js → terminal.service-CIxDfM7V.js} +1 -1
- package/dist/esm/{utils-q7KOrlSX.js → utils-C1B2hVAB.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Plaid.js +19 -15
- package/dist/module/additional-questions-form-step2.js +5 -11
- package/dist/module/bank-account-document-form-inputs.js +1 -55
- package/dist/module/bank-account-document-form-inputs2.js +57 -0
- package/dist/module/business-bank-account-form-step2.js +177 -24
- package/dist/module/business-core-info-form-step2.js +2 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info2.js +3 -3
- package/dist/module/business-documents-on-file2.js +1 -1
- package/dist/module/business-form-options.js +1 -51
- package/dist/module/business-identity-schema.js +3 -7
- package/dist/module/business-owners-form-step2.js +0 -8
- package/dist/module/business-representative-form-inputs2.js +3 -5
- package/dist/module/business-representative2.js +5 -6
- package/dist/module/button.js +1 -1
- package/dist/module/country-config.js +0 -2
- package/dist/module/form-control-number2.js +1 -1
- package/dist/module/form-control-textarea2.js +1 -1
- package/dist/module/form.js +18 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-google-pay2.js +4 -3
- package/dist/module/justifi-modular-checkout2.js +1 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +27 -33
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +1 -1
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/lodash.js +38 -27
- package/dist/module/owner-form-inputs2.js +3 -5
- package/dist/module/owner-form2.js +1 -10
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-form-steps2.js +28 -35
- package/dist/module/plaid-verification2.js +1 -1
- package/dist/module/schema-validations.js +5 -8
- package/dist/module/skeleton.js +1 -1
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/api/Document.d.ts +2 -15
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +12 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -1
- package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
- package/dist/types/components/business-forms/utils/business-form-options.d.ts +0 -1
- package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +1 -1
- package/dist/types/components.d.ts +10 -71
- package/dist/webcomponents/p-034fa691.entry.js +1 -0
- package/dist/webcomponents/{p-086f7eea.entry.js → p-07eaee91.entry.js} +1 -1
- package/dist/webcomponents/{p-2e063c5d.entry.js → p-08ab97ce.entry.js} +1 -1
- package/dist/webcomponents/{p-80fdd013.entry.js → p-1f34b2f7.entry.js} +1 -1
- package/dist/webcomponents/{p-3bcac405.entry.js → p-279c17ac.entry.js} +1 -1
- package/dist/webcomponents/{p-29b82954.entry.js → p-2a5ee558.entry.js} +1 -1
- package/dist/webcomponents/p-2aac2ab6.entry.js +1 -0
- package/dist/webcomponents/p-37254105.entry.js +1 -0
- package/dist/webcomponents/{p-a7e0ab9b.entry.js → p-38209a25.entry.js} +1 -1
- package/dist/webcomponents/{p-4b14b7e7.entry.js → p-3cefb032.entry.js} +1 -1
- package/dist/webcomponents/{p-8ed1bc07.entry.js → p-3ef07f42.entry.js} +1 -1
- package/dist/webcomponents/{p-a5ad9183.entry.js → p-41637e4a.entry.js} +1 -1
- package/dist/webcomponents/{p-92d8a14b.entry.js → p-4b39a470.entry.js} +1 -1
- package/dist/webcomponents/{p-6b21947c.entry.js → p-4ee55e7d.entry.js} +1 -1
- package/dist/webcomponents/p-5G1OMxZz.js +1 -0
- package/dist/webcomponents/p-6904c62c.entry.js +1 -0
- package/dist/webcomponents/{p-5f071ee0.entry.js → p-7377f7d1.entry.js} +1 -1
- package/dist/webcomponents/{p-48a866ae.entry.js → p-78c4668b.entry.js} +1 -1
- package/dist/webcomponents/{p-c2e09203.entry.js → p-8e56430a.entry.js} +1 -1
- package/dist/webcomponents/{p-947950cc.entry.js → p-9153c121.entry.js} +1 -1
- package/dist/webcomponents/p-9b5ca32c.entry.js +1 -0
- package/dist/webcomponents/{p-04d6d725.entry.js → p-9d676f54.entry.js} +1 -1
- package/dist/webcomponents/{p-BrFax4_P.js → p-APOabprT.js} +1 -1
- package/dist/webcomponents/p-Aacb4jqT.js +1 -0
- package/dist/webcomponents/{p-CeW0EPHy.js → p-Axa3cgnH.js} +1 -1
- package/dist/webcomponents/{p-CL8LyqRI.js → p-BJu1-9kE.js} +1 -1
- package/dist/webcomponents/{p-czJ2qSU1.js → p-BXyADlAH.js} +1 -1
- package/dist/webcomponents/{p-xWuaNtJy.js → p-Ba8jdOkX.js} +1 -1
- package/dist/webcomponents/{p-DvnFba1A.js → p-BdpSLMs7.js} +1 -1
- package/dist/webcomponents/p-BqNNwq6C.js +1 -0
- package/dist/webcomponents/{p-BBSnDYJw.js → p-Bt4GjEWL.js} +1 -1
- package/dist/webcomponents/{p-C-zuQNNP.js → p-BxKbnILQ.js} +1 -1
- package/dist/webcomponents/{p-D9sqTVmd.js → p-CKiAlBsU.js} +1 -1
- package/dist/webcomponents/{p-CDu7TeCZ.js → p-Cm9f5fyh.js} +1 -1
- package/dist/webcomponents/p-D8ytux5N.js +1 -0
- package/dist/webcomponents/p-DAZd_gFd.js +1 -0
- package/dist/webcomponents/{p-DdeBubpX.js → p-Dk26hk5T.js} +1 -1
- package/dist/webcomponents/p-DrMJliVY.js +1 -0
- package/dist/webcomponents/{p-Dzv0P2Ly.js → p-NZS8uCtH.js} +1 -1
- package/dist/webcomponents/p-OeJ-3w3l.js +9 -0
- package/dist/webcomponents/p-XIWgia4J.js +1 -0
- package/dist/webcomponents/{p-8db8d7e7.entry.js → p-a2c25cc4.entry.js} +1 -1
- package/dist/webcomponents/{p-de1ccbea.entry.js → p-a56e43a1.entry.js} +1 -1
- package/dist/webcomponents/{p-a3b48ba3.entry.js → p-a7a1b168.entry.js} +1 -1
- package/dist/webcomponents/{p-85c0abdb.entry.js → p-a9e82502.entry.js} +1 -1
- package/dist/webcomponents/{p-BSyTbuZy.js → p-av6jyzyC.js} +1 -1
- package/dist/webcomponents/{p-0b169fac.entry.js → p-b0b6083f.entry.js} +1 -1
- package/dist/webcomponents/{p-86eb32d8.entry.js → p-b21010cb.entry.js} +1 -1
- package/dist/webcomponents/{p-1e34c488.entry.js → p-b62ff001.entry.js} +1 -1
- package/dist/webcomponents/{p-c1b48216.entry.js → p-b8351983.entry.js} +1 -1
- package/dist/webcomponents/{p-3960e6b7.entry.js → p-bc2dddf3.entry.js} +1 -1
- package/dist/webcomponents/{p-3e10a0de.entry.js → p-c4767c7b.entry.js} +1 -1
- package/dist/webcomponents/p-c8bc235f.entry.js +1 -0
- package/dist/webcomponents/{p-0a4fcb15.entry.js → p-ca87c609.entry.js} +1 -1
- package/dist/webcomponents/{p-ba2ab989.entry.js → p-cf3e3394.entry.js} +1 -1
- package/dist/webcomponents/{p-e0e6c2df.entry.js → p-d01a1076.entry.js} +1 -1
- package/dist/webcomponents/{p-a4520dba.entry.js → p-d5edbea3.entry.js} +1 -1
- package/dist/webcomponents/{p-b17ce21d.entry.js → p-d79c5ee4.entry.js} +1 -1
- package/dist/webcomponents/{p-562447ad.entry.js → p-e02d7751.entry.js} +4 -4
- package/dist/webcomponents/{p-c3cc4ad6.entry.js → p-e07506b7.entry.js} +1 -1
- package/dist/webcomponents/{p-cc558e25.entry.js → p-e17b92ec.entry.js} +1 -1
- package/dist/webcomponents/p-ea254f14.entry.js +1 -0
- package/dist/webcomponents/{p-ca1c2048.entry.js → p-ebb7b693.entry.js} +1 -1
- package/dist/webcomponents/{p-0e4cda77.entry.js → p-f1b9cbf0.entry.js} +1 -1
- package/dist/webcomponents/{p-Cz0yhyYu.js → p-fE5A37L5.js} +1 -1
- package/dist/webcomponents/p-ff8cf16c.entry.js +1 -0
- package/dist/webcomponents/p-nb_LhbJq.js +1 -0
- package/dist/webcomponents/{p--RbNhyet.js → p-oTtn8xDw.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +0 -21
- package/dist/cjs/styled-host-Ch0-dxF-.js +0 -11
- package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +0 -435
- package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +0 -52
- package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +0 -72
- package/dist/esm/bank-account-document-form-inputs.entry.js +0 -19
- package/dist/esm/styled-host-D84RBv1W.js +0 -9
- package/dist/module/document-upload-form-step.d.ts +0 -11
- package/dist/module/document-upload-form-step.js +0 -6
- package/dist/module/document-upload-form-step2.js +0 -397
- package/dist/module/document-upload-list.d.ts +0 -11
- package/dist/module/document-upload-list.js +0 -6
- package/dist/module/document-upload-list2.js +0 -46
- package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +0 -44
- package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +0 -6
- package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +0 -44
- package/dist/webcomponents/p-37676092.entry.js +0 -1
- package/dist/webcomponents/p-54ee2a30.entry.js +0 -1
- package/dist/webcomponents/p-58adef16.entry.js +0 -1
- package/dist/webcomponents/p-8R9xLun-.js +0 -1
- package/dist/webcomponents/p-92e7ce54.entry.js +0 -1
- package/dist/webcomponents/p-9ce2a98a.entry.js +0 -1
- package/dist/webcomponents/p-B1yVkh15.js +0 -1
- package/dist/webcomponents/p-BzXQDB0t.js +0 -1
- package/dist/webcomponents/p-C_ifLmT1.js +0 -9
- package/dist/webcomponents/p-D9ZHVy-j.js +0 -1
- package/dist/webcomponents/p-DV4n8kZd.js +0 -1
- package/dist/webcomponents/p-DzEdYT8R.js +0 -1
- package/dist/webcomponents/p-a2ed63df.entry.js +0 -1
- package/dist/webcomponents/p-a9976353.entry.js +0 -1
- package/dist/webcomponents/p-c9599fc7.entry.js +0 -1
- package/dist/webcomponents/p-cab840bd.entry.js +0 -1
- package/dist/webcomponents/p-n_pmf4AT.js +0 -1
- package/dist/webcomponents/p-vUN_uvAi.js +0 -1
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import './config-state.js';
|
|
3
|
-
import './dinero.js';
|
|
4
|
-
import { e as EntityDocument, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid.js';
|
|
5
|
-
import './Pagination.js';
|
|
6
|
-
import { a as CountryCode } from './Business.js';
|
|
7
|
-
import './ApplePay.js';
|
|
8
|
-
import { m as makeGetBusiness, e as makePostDocumentRecord } from './payment-provisioning-actions.js';
|
|
9
|
-
import { B as BusinessService, D as DocumentRecordService } from './business.service.js';
|
|
10
|
-
import { B as BusinessFormStep } from './event-types2.js';
|
|
11
|
-
import { h as heading2 } from './parts.js';
|
|
12
|
-
import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
|
|
13
|
-
import { d as defineCustomElement$6 } from './business-documents-on-file2.js';
|
|
14
|
-
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
15
|
-
import { d as defineCustomElement$4 } from './document-upload-list2.js';
|
|
16
|
-
import { d as defineCustomElement$3 } from './form-control-file2.js';
|
|
17
|
-
import { d as defineCustomElement$2 } from './form-control-select2.js';
|
|
18
|
-
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
19
|
-
|
|
20
|
-
const businessDocumentOptions = [
|
|
21
|
-
{ label: 'Select a document type', value: '' },
|
|
22
|
-
{ label: 'Articles of Incorporation', value: 'articles_of_incorporation' },
|
|
23
|
-
{ label: 'Business Registration', value: 'business_registration' },
|
|
24
|
-
];
|
|
25
|
-
const financialDocumentOptions = [
|
|
26
|
-
{ label: 'Select a document type', value: '' },
|
|
27
|
-
{ label: 'Voided Check', value: 'voided_check' },
|
|
28
|
-
{ label: 'Bank Statement', value: 'bank_statement' },
|
|
29
|
-
];
|
|
30
|
-
const personalDocGroup1Options = [
|
|
31
|
-
{ label: 'Select a document type', value: '' },
|
|
32
|
-
{ label: 'Canadian Passport', value: 'passport' },
|
|
33
|
-
{ label: 'Canadian Driver\'s License', value: 'driver_license' },
|
|
34
|
-
{ label: 'Canadian Government Issued ID Card', value: 'government_id' },
|
|
35
|
-
{ label: 'Permanent Resident Card', value: 'resident_card' },
|
|
36
|
-
{ label: 'Certificate of Indian Status', value: 'status_card' },
|
|
37
|
-
{ label: 'US State Issued Driver\'s License', value: 'driver_license' },
|
|
38
|
-
];
|
|
39
|
-
const personalDocGroup2Options = [
|
|
40
|
-
{ label: 'Select a document type', value: '' },
|
|
41
|
-
{ label: 'Nexus Card (Photo ID)', value: 'nexus_card' },
|
|
42
|
-
{ label: 'Canadian Citizenship/Naturalization Card or Certificate', value: 'citizenship_card' },
|
|
43
|
-
{ label: 'Foreign Passport', value: 'foreign_passport' },
|
|
44
|
-
{ label: 'Canadian Birth Certificate', value: 'birth_certificate' },
|
|
45
|
-
{ label: 'Social Insurance Number (SIN) Card', value: 'sin_card' },
|
|
46
|
-
{ label: 'Social Security Number (SSN) Card', value: 'ssn_card' },
|
|
47
|
-
];
|
|
48
|
-
const staticCategories = [
|
|
49
|
-
{
|
|
50
|
-
label: 'Business Document',
|
|
51
|
-
value: 'business_document',
|
|
52
|
-
docTypeOptions: businessDocumentOptions,
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
label: 'Financial Document',
|
|
56
|
-
value: 'financial_document',
|
|
57
|
-
docTypeOptions: financialDocumentOptions,
|
|
58
|
-
},
|
|
59
|
-
];
|
|
60
|
-
function buildOwnerCategories(owners) {
|
|
61
|
-
const group1Opts = personalDocGroup1Options.filter(o => o.value !== '');
|
|
62
|
-
const group2Opts = personalDocGroup2Options.filter(o => o.value !== '');
|
|
63
|
-
return owners.map(owner => ({
|
|
64
|
-
label: `${owner.name} - Identity Document`,
|
|
65
|
-
value: `personal_${owner.id}`,
|
|
66
|
-
identityId: owner.id,
|
|
67
|
-
docTypeOptions: [
|
|
68
|
-
{ label: 'Select a document type', value: '' },
|
|
69
|
-
{ label: '── Group 1 ──', value: '_group1_header' },
|
|
70
|
-
...group1Opts,
|
|
71
|
-
{ label: '── Group 2 ──', value: '_group2_header' },
|
|
72
|
-
...group2Opts,
|
|
73
|
-
],
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
const financialOnlyCategories = [
|
|
77
|
-
{
|
|
78
|
-
label: 'Financial Document',
|
|
79
|
-
value: 'financial_document',
|
|
80
|
-
docTypeOptions: financialDocumentOptions,
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
function buildAllCategories(owners, country) {
|
|
84
|
-
if (country === CountryCode.USA) {
|
|
85
|
-
return financialOnlyCategories;
|
|
86
|
-
}
|
|
87
|
-
return [...staticCategories, ...buildOwnerCategories(owners)];
|
|
88
|
-
}
|
|
89
|
-
const personalDocGroup1Types = new Set(personalDocGroup1Options.filter(o => o.value).map(o => o.value));
|
|
90
|
-
const personalDocGroup2Types = new Set(personalDocGroup2Options.filter(o => o.value).map(o => o.value));
|
|
91
|
-
|
|
92
|
-
const DocumentUploadFormStep = /*@__PURE__*/ proxyCustomElement(class DocumentUploadFormStep extends HTMLElement {
|
|
93
|
-
constructor(registerHost) {
|
|
94
|
-
super();
|
|
95
|
-
if (registerHost !== false) {
|
|
96
|
-
this.__registerHost();
|
|
97
|
-
}
|
|
98
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
99
|
-
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
100
|
-
this.formLoading = createEvent(this, "formLoading", 7);
|
|
101
|
-
this.owners = [];
|
|
102
|
-
this.existingDocuments = [];
|
|
103
|
-
this.selectedCategory = '';
|
|
104
|
-
this.selectedDocType = '';
|
|
105
|
-
this.uploadQueue = [];
|
|
106
|
-
this.isLoading = false;
|
|
107
|
-
this.errors = {};
|
|
108
|
-
this.fileInputKey = 0;
|
|
109
|
-
this.categories = [];
|
|
110
|
-
this.getData = () => {
|
|
111
|
-
this.isLoading = true;
|
|
112
|
-
this.getBusiness({
|
|
113
|
-
onSuccess: (response) => {
|
|
114
|
-
const { owners, documents } = response.data;
|
|
115
|
-
this.owners = owners || [];
|
|
116
|
-
this.existingDocuments = documents || [];
|
|
117
|
-
this.categories = buildAllCategories(this.owners, this.country);
|
|
118
|
-
},
|
|
119
|
-
onError: ({ error, code, severity }) => {
|
|
120
|
-
this.errorEvent.emit({
|
|
121
|
-
message: error,
|
|
122
|
-
errorCode: code,
|
|
123
|
-
severity: severity,
|
|
124
|
-
});
|
|
125
|
-
},
|
|
126
|
-
final: () => {
|
|
127
|
-
this.isLoading = false;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
this.handleCategoryChange = (_name, value) => {
|
|
132
|
-
this.selectedCategory = value;
|
|
133
|
-
this.selectedDocType = '';
|
|
134
|
-
};
|
|
135
|
-
this.handleDocTypeChange = (_name, value) => {
|
|
136
|
-
if (value.startsWith('_') && value.endsWith('_header'))
|
|
137
|
-
return;
|
|
138
|
-
this.selectedDocType = value;
|
|
139
|
-
};
|
|
140
|
-
this.handleFileSelected = async (e) => {
|
|
141
|
-
const fileList = Array.from(e.detail.fileList);
|
|
142
|
-
const category = this.categories.find(c => c.value === this.selectedCategory);
|
|
143
|
-
if (!category)
|
|
144
|
-
return;
|
|
145
|
-
const docTypeOption = category.docTypeOptions.find(o => o.value === this.selectedDocType);
|
|
146
|
-
const docTypeLabel = (docTypeOption === null || docTypeOption === void 0 ? void 0 : docTypeOption.label) || this.selectedDocType;
|
|
147
|
-
const newEntries = fileList.map(file => ({
|
|
148
|
-
categoryLabel: category.label,
|
|
149
|
-
categoryValue: category.value,
|
|
150
|
-
docTypeLabel,
|
|
151
|
-
docTypeValue: this.selectedDocType,
|
|
152
|
-
fileName: file.name,
|
|
153
|
-
file,
|
|
154
|
-
identityId: category.identityId,
|
|
155
|
-
status: 'uploading',
|
|
156
|
-
}));
|
|
157
|
-
const startIndex = this.uploadQueue.length;
|
|
158
|
-
this.uploadQueue = [...this.uploadQueue, ...newEntries];
|
|
159
|
-
this.selectedCategory = '';
|
|
160
|
-
this.selectedDocType = '';
|
|
161
|
-
this.fileInputKey++;
|
|
162
|
-
await Promise.all(newEntries.map(async (entry, i) => {
|
|
163
|
-
const index = startIndex + i;
|
|
164
|
-
try {
|
|
165
|
-
const docData = new EntityDocument({ file: entry.file, document_type: entry.docTypeValue }, this.businessId, entry.identityId);
|
|
166
|
-
const recordCreated = await this.postDocumentRecordData(docData);
|
|
167
|
-
if (!recordCreated) {
|
|
168
|
-
this.uploadQueue = this.uploadQueue.map((e, j) => j === index ? Object.assign(Object.assign({}, e), { status: 'error' }) : e);
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
const uploaded = await this.uploadDocument(docData);
|
|
172
|
-
this.uploadQueue = this.uploadQueue.map((e, j) => j === index ? Object.assign(Object.assign({}, e), { status: uploaded ? 'uploaded' : 'error' }) : e);
|
|
173
|
-
}
|
|
174
|
-
catch (_a) {
|
|
175
|
-
this.uploadQueue = this.uploadQueue.map((e, j) => j === index ? Object.assign(Object.assign({}, e), { status: 'error' }) : e);
|
|
176
|
-
}
|
|
177
|
-
}));
|
|
178
|
-
};
|
|
179
|
-
this.postDocumentRecordData = async (docData) => {
|
|
180
|
-
const payload = docData.record_data;
|
|
181
|
-
return new Promise((resolve) => {
|
|
182
|
-
this.postDocumentRecord({
|
|
183
|
-
payload,
|
|
184
|
-
onSuccess: (response) => {
|
|
185
|
-
resolve(this.handleDocRecordResponse(docData, response));
|
|
186
|
-
},
|
|
187
|
-
onError: ({ error, code, severity }) => {
|
|
188
|
-
this.errorEvent.emit({
|
|
189
|
-
message: error,
|
|
190
|
-
errorCode: code,
|
|
191
|
-
severity: severity,
|
|
192
|
-
});
|
|
193
|
-
resolve(false);
|
|
194
|
-
},
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
this.handleDocRecordResponse = (docData, response) => {
|
|
199
|
-
if (response.error) {
|
|
200
|
-
this.errorEvent.emit({
|
|
201
|
-
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
202
|
-
message: response.error.message,
|
|
203
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
204
|
-
data: response.error,
|
|
205
|
-
});
|
|
206
|
-
return false;
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
docData.setPresignedUrl(response.data.presigned_url);
|
|
210
|
-
return true;
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
this.uploadDocument = async (docData) => {
|
|
214
|
-
if (!docData.presigned_url) {
|
|
215
|
-
throw new Error('Presigned URL is not set');
|
|
216
|
-
}
|
|
217
|
-
const fileData = await docData.getFileData();
|
|
218
|
-
const response = await fetch(docData.presigned_url, {
|
|
219
|
-
method: 'PUT',
|
|
220
|
-
body: fileData,
|
|
221
|
-
});
|
|
222
|
-
if (!response.ok) {
|
|
223
|
-
this.errorEvent.emit({
|
|
224
|
-
errorCode: ComponentErrorCodes.POST_ERROR,
|
|
225
|
-
message: 'Failed to upload document',
|
|
226
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
227
|
-
});
|
|
228
|
-
return false;
|
|
229
|
-
}
|
|
230
|
-
return true;
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
propChanged() {
|
|
234
|
-
this.initializeApi();
|
|
235
|
-
}
|
|
236
|
-
watchHandler(newValue) {
|
|
237
|
-
this.formLoading.emit(newValue);
|
|
238
|
-
}
|
|
239
|
-
async validateAndSubmit({ onSuccess }) {
|
|
240
|
-
const validationErrors = this.validate();
|
|
241
|
-
if (Object.keys(validationErrors).length > 0) {
|
|
242
|
-
this.errors = validationErrors;
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
this.errors = {};
|
|
246
|
-
this.stepCompleteEvent.emit({ response: null, formStep: BusinessFormStep.documentUpload });
|
|
247
|
-
onSuccess();
|
|
248
|
-
}
|
|
249
|
-
componentWillLoad() {
|
|
250
|
-
this.initializeApi();
|
|
251
|
-
if (this.getBusiness) {
|
|
252
|
-
this.getData();
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
initializeApi() {
|
|
256
|
-
if (this.authToken && this.businessId) {
|
|
257
|
-
this.getBusiness = makeGetBusiness({
|
|
258
|
-
authToken: this.authToken,
|
|
259
|
-
businessId: this.businessId,
|
|
260
|
-
service: new BusinessService()
|
|
261
|
-
});
|
|
262
|
-
this.postDocumentRecord = makePostDocumentRecord({
|
|
263
|
-
authToken: this.authToken,
|
|
264
|
-
service: new DocumentRecordService()
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
this.errorEvent.emit({
|
|
269
|
-
message: 'Missing required props',
|
|
270
|
-
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
271
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
get categoryOptions() {
|
|
276
|
-
return [
|
|
277
|
-
{ label: 'Select a category', value: '' },
|
|
278
|
-
...this.categories.map(c => ({ label: c.label, value: c.value })),
|
|
279
|
-
];
|
|
280
|
-
}
|
|
281
|
-
get docTypeOptions() {
|
|
282
|
-
if (!this.selectedCategory) {
|
|
283
|
-
return [{ label: 'Select a category first', value: '' }];
|
|
284
|
-
}
|
|
285
|
-
const category = this.categories.find(c => c.value === this.selectedCategory);
|
|
286
|
-
return (category === null || category === void 0 ? void 0 : category.docTypeOptions) || [{ label: 'Select a category first', value: '' }];
|
|
287
|
-
}
|
|
288
|
-
validate() {
|
|
289
|
-
if (this.allowOptionalFields)
|
|
290
|
-
return {};
|
|
291
|
-
const errors = {};
|
|
292
|
-
const financialDocTypes = ['voided_check', 'bank_statement'];
|
|
293
|
-
const hasExistingDoc = (types) => this.existingDocuments.some(doc => types.includes(doc.document_type));
|
|
294
|
-
const hasUploadedDoc = (categoryValue) => this.uploadQueue.some(entry => entry.categoryValue === categoryValue && entry.status === 'uploaded');
|
|
295
|
-
if (!hasUploadedDoc('financial_document') && !hasExistingDoc(financialDocTypes)) {
|
|
296
|
-
errors['financial_document'] = 'Please upload a financial document';
|
|
297
|
-
}
|
|
298
|
-
if (this.country === CountryCode.CAN) {
|
|
299
|
-
const businessDocTypes = ['articles_of_incorporation', 'business_registration'];
|
|
300
|
-
if (!hasUploadedDoc('business_document') && !hasExistingDoc(businessDocTypes)) {
|
|
301
|
-
errors['business_document'] = 'Please upload a business document';
|
|
302
|
-
}
|
|
303
|
-
for (const owner of this.owners) {
|
|
304
|
-
const ownerCategoryValue = `personal_${owner.id}`;
|
|
305
|
-
const ownerDocs = this.uploadQueue.filter(entry => entry.categoryValue === ownerCategoryValue && entry.status === 'uploaded');
|
|
306
|
-
const hasGroup1 = ownerDocs.some(d => personalDocGroup1Types.has(d.docTypeValue));
|
|
307
|
-
const hasGroup2 = ownerDocs.some(d => personalDocGroup2Types.has(d.docTypeValue));
|
|
308
|
-
if (!hasGroup1) {
|
|
309
|
-
errors[`personal_group1_${owner.id}`] =
|
|
310
|
-
`Please upload a Group 1 identity document for ${owner.name}`;
|
|
311
|
-
}
|
|
312
|
-
if (!hasGroup2) {
|
|
313
|
-
errors[`personal_group2_${owner.id}`] =
|
|
314
|
-
`Please upload a Group 2 identity document for ${owner.name}`;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return errors;
|
|
319
|
-
}
|
|
320
|
-
render() {
|
|
321
|
-
if (this.isLoading) {
|
|
322
|
-
return h(PaymentProvisioningLoading, null);
|
|
323
|
-
}
|
|
324
|
-
return (h("form", null, h("fieldset", null, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("hr", { class: "mt-2" }), h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading })), h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Add Document"), h("form-control-tooltip", { helpText: "Upload documents one at a time. Select the category and type, then choose a file. For identity documents, two documents from different groups are required per owner." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "document_category", label: "Document Category", options: this.categoryOptions, defaultValue: this.selectedCategory, inputHandler: this.handleCategoryChange })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "document_type", label: "Document Type", options: this.docTypeOptions, defaultValue: this.selectedDocType, inputHandler: this.handleDocTypeChange, disabled: !this.selectedCategory })), h("div", { class: "col-12" }, h("form-control-file", { key: this.fileInputKey, name: "document_file", label: "Upload Document", documentType: this.selectedDocType, onFileSelected: this.handleFileSelected, disabled: !this.selectedDocType, multiple: false })))), h("document-upload-list", { documents: this.uploadQueue }), Object.keys(this.errors).length > 0 && (h("div", { class: "alert alert-danger mt-3" }, h("ul", { class: "mb-0" }, Object.values(this.errors).map(err => h("li", null, err)))))));
|
|
325
|
-
}
|
|
326
|
-
static get watchers() { return {
|
|
327
|
-
"authToken": ["propChanged"],
|
|
328
|
-
"businessId": ["propChanged"],
|
|
329
|
-
"isLoading": ["watchHandler"]
|
|
330
|
-
}; }
|
|
331
|
-
}, [256, "document-upload-form-step", {
|
|
332
|
-
"authToken": [1, "auth-token"],
|
|
333
|
-
"businessId": [1, "business-id"],
|
|
334
|
-
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
335
|
-
"country": [1],
|
|
336
|
-
"owners": [32],
|
|
337
|
-
"existingDocuments": [32],
|
|
338
|
-
"selectedCategory": [32],
|
|
339
|
-
"selectedDocType": [32],
|
|
340
|
-
"uploadQueue": [32],
|
|
341
|
-
"isLoading": [32],
|
|
342
|
-
"errors": [32],
|
|
343
|
-
"fileInputKey": [32],
|
|
344
|
-
"getBusiness": [32],
|
|
345
|
-
"postDocumentRecord": [32],
|
|
346
|
-
"validateAndSubmit": [64]
|
|
347
|
-
}, undefined, {
|
|
348
|
-
"authToken": ["propChanged"],
|
|
349
|
-
"businessId": ["propChanged"],
|
|
350
|
-
"isLoading": ["watchHandler"]
|
|
351
|
-
}]);
|
|
352
|
-
function defineCustomElement() {
|
|
353
|
-
if (typeof customElements === "undefined") {
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
const components = ["document-upload-form-step", "business-documents-on-file", "custom-popper", "document-upload-list", "form-control-file", "form-control-select", "form-control-tooltip"];
|
|
357
|
-
components.forEach(tagName => { switch (tagName) {
|
|
358
|
-
case "document-upload-form-step":
|
|
359
|
-
if (!customElements.get(tagName)) {
|
|
360
|
-
customElements.define(tagName, DocumentUploadFormStep);
|
|
361
|
-
}
|
|
362
|
-
break;
|
|
363
|
-
case "business-documents-on-file":
|
|
364
|
-
if (!customElements.get(tagName)) {
|
|
365
|
-
defineCustomElement$6();
|
|
366
|
-
}
|
|
367
|
-
break;
|
|
368
|
-
case "custom-popper":
|
|
369
|
-
if (!customElements.get(tagName)) {
|
|
370
|
-
defineCustomElement$5();
|
|
371
|
-
}
|
|
372
|
-
break;
|
|
373
|
-
case "document-upload-list":
|
|
374
|
-
if (!customElements.get(tagName)) {
|
|
375
|
-
defineCustomElement$4();
|
|
376
|
-
}
|
|
377
|
-
break;
|
|
378
|
-
case "form-control-file":
|
|
379
|
-
if (!customElements.get(tagName)) {
|
|
380
|
-
defineCustomElement$3();
|
|
381
|
-
}
|
|
382
|
-
break;
|
|
383
|
-
case "form-control-select":
|
|
384
|
-
if (!customElements.get(tagName)) {
|
|
385
|
-
defineCustomElement$2();
|
|
386
|
-
}
|
|
387
|
-
break;
|
|
388
|
-
case "form-control-tooltip":
|
|
389
|
-
if (!customElements.get(tagName)) {
|
|
390
|
-
defineCustomElement$1();
|
|
391
|
-
}
|
|
392
|
-
break;
|
|
393
|
-
} });
|
|
394
|
-
}
|
|
395
|
-
defineCustomElement();
|
|
396
|
-
|
|
397
|
-
export { DocumentUploadFormStep as D, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface DocumentUploadList extends Components.DocumentUploadList, HTMLElement {}
|
|
4
|
-
export const DocumentUploadList: {
|
|
5
|
-
prototype: DocumentUploadList;
|
|
6
|
-
new (): DocumentUploadList;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { B as card, h as heading2, C as table, D as tableHeadCell, E as tableCell } from './parts.js';
|
|
3
|
-
|
|
4
|
-
const DocumentUploadList = /*@__PURE__*/ proxyCustomElement(class DocumentUploadList extends HTMLElement {
|
|
5
|
-
constructor(registerHost) {
|
|
6
|
-
super();
|
|
7
|
-
if (registerHost !== false) {
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
}
|
|
10
|
-
this.documents = [];
|
|
11
|
-
}
|
|
12
|
-
renderStatus(status) {
|
|
13
|
-
switch (status) {
|
|
14
|
-
case 'uploading':
|
|
15
|
-
return h("span", { class: "badge bg-info" }, "Uploading...");
|
|
16
|
-
case 'uploaded':
|
|
17
|
-
return h("span", { class: "badge bg-success" }, "Uploaded");
|
|
18
|
-
case 'error':
|
|
19
|
-
return h("span", { class: "badge bg-danger" }, "Error");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
if (!this.documents.length) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return (h("div", { class: "mt-4" }, h("div", { class: "card", part: card }, h("div", { class: "card-body" }, h("h5", { class: "card-title", part: heading2 }, "Uploaded Documents"), 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" }, "Category"), h("th", { style: { width: '25%' }, part: tableHeadCell, scope: "col" }, "Document Type"), h("th", { style: { width: '30%' }, part: tableHeadCell, scope: "col" }, "File Name"), h("th", { style: { width: '20%' }, part: tableHeadCell, scope: "col" }, "Status"))), h("tbody", null, this.documents.map((doc, index) => (h("tr", { class: index === 0 ? 'border-bottom border-top' : 'border-bottom' }, h("td", { part: tableCell }, doc.categoryLabel), h("td", { part: tableCell }, doc.docTypeLabel), h("td", { part: tableCell }, doc.fileName), h("td", { part: tableCell }, this.renderStatus(doc.status))))))))))));
|
|
27
|
-
}
|
|
28
|
-
}, [256, "document-upload-list", {
|
|
29
|
-
"documents": [16]
|
|
30
|
-
}]);
|
|
31
|
-
function defineCustomElement() {
|
|
32
|
-
if (typeof customElements === "undefined") {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const components = ["document-upload-list"];
|
|
36
|
-
components.forEach(tagName => { switch (tagName) {
|
|
37
|
-
case "document-upload-list":
|
|
38
|
-
if (!customElements.get(tagName)) {
|
|
39
|
-
customElements.define(tagName, DocumentUploadList);
|
|
40
|
-
}
|
|
41
|
-
break;
|
|
42
|
-
} });
|
|
43
|
-
}
|
|
44
|
-
defineCustomElement();
|
|
45
|
-
|
|
46
|
-
export { DocumentUploadList as D, defineCustomElement as d };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { ComponentErrorEvent, ComponentFormStepCompleteEvent, FileSelectEvent, IDocument, Identity } from '../../../../api';
|
|
3
|
-
import { CountryCode } from '../../../../utils/country-codes';
|
|
4
|
-
import { UploadedDocumentEntry } from './document-upload-options';
|
|
5
|
-
export declare class DocumentUploadFormStep {
|
|
6
|
-
authToken: string;
|
|
7
|
-
businessId: string;
|
|
8
|
-
allowOptionalFields?: boolean;
|
|
9
|
-
country: CountryCode;
|
|
10
|
-
owners: Identity[];
|
|
11
|
-
existingDocuments: IDocument[];
|
|
12
|
-
selectedCategory: string;
|
|
13
|
-
selectedDocType: string;
|
|
14
|
-
uploadQueue: UploadedDocumentEntry[];
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
errors: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
fileInputKey: number;
|
|
20
|
-
getBusiness: Function;
|
|
21
|
-
postDocumentRecord: Function;
|
|
22
|
-
private categories;
|
|
23
|
-
propChanged(): void;
|
|
24
|
-
watchHandler(newValue: boolean): void;
|
|
25
|
-
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
26
|
-
stepCompleteEvent: EventEmitter<ComponentFormStepCompleteEvent>;
|
|
27
|
-
formLoading: EventEmitter<boolean>;
|
|
28
|
-
validateAndSubmit({ onSuccess }: {
|
|
29
|
-
onSuccess: any;
|
|
30
|
-
}): Promise<void>;
|
|
31
|
-
componentWillLoad(): void;
|
|
32
|
-
private initializeApi;
|
|
33
|
-
private getData;
|
|
34
|
-
private get categoryOptions();
|
|
35
|
-
private get docTypeOptions();
|
|
36
|
-
private validate;
|
|
37
|
-
handleCategoryChange: (_name: string, value: string) => void;
|
|
38
|
-
handleDocTypeChange: (_name: string, value: string) => void;
|
|
39
|
-
handleFileSelected: (e: CustomEvent<FileSelectEvent>) => Promise<void>;
|
|
40
|
-
private postDocumentRecordData;
|
|
41
|
-
private handleDocRecordResponse;
|
|
42
|
-
private uploadDocument;
|
|
43
|
-
render(): any;
|
|
44
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Identity } from '../../../../api';
|
|
2
|
-
import { CountryCode } from '../../../../utils/country-codes';
|
|
3
|
-
export declare const businessDocumentOptions: {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}[];
|
|
7
|
-
export declare const financialDocumentOptions: {
|
|
8
|
-
label: string;
|
|
9
|
-
value: string;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const personalDocGroup1Options: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}[];
|
|
15
|
-
export declare const personalDocGroup2Options: {
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
export interface DocumentCategory {
|
|
20
|
-
label: string;
|
|
21
|
-
value: string;
|
|
22
|
-
identityId?: string;
|
|
23
|
-
docTypeOptions: {
|
|
24
|
-
label: string;
|
|
25
|
-
value: string;
|
|
26
|
-
}[];
|
|
27
|
-
}
|
|
28
|
-
export type DocumentUploadStatus = 'uploading' | 'uploaded' | 'error';
|
|
29
|
-
export interface UploadedDocumentEntry {
|
|
30
|
-
categoryLabel: string;
|
|
31
|
-
categoryValue: string;
|
|
32
|
-
docTypeLabel: string;
|
|
33
|
-
docTypeValue: string;
|
|
34
|
-
fileName: string;
|
|
35
|
-
file: File;
|
|
36
|
-
identityId?: string;
|
|
37
|
-
status: DocumentUploadStatus;
|
|
38
|
-
}
|
|
39
|
-
export declare const staticCategories: DocumentCategory[];
|
|
40
|
-
export declare function buildOwnerCategories(owners: Identity[]): DocumentCategory[];
|
|
41
|
-
export declare const financialOnlyCategories: DocumentCategory[];
|
|
42
|
-
export declare function buildAllCategories(owners: Identity[], country?: CountryCode): DocumentCategory[];
|
|
43
|
-
export declare const personalDocGroup1Types: Set<string>;
|
|
44
|
-
export declare const personalDocGroup2Types: Set<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as t}from"./p-CV0Pyo1O.js";import{a as s,r as i,s as l,d,b as c}from"./p-BBSnDYJw.js";import{C as o,I as r,P as n}from"./p-CVaOFfrI.js";import{b,x as f,u,a0 as h,ak as m}from"./p-CPKMvyV_.js";import{e as v,d as p,C as y}from"./p-BcNb9bVO.js";import{c as k}from"./p-BzXQDB0t.js";const j=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,d,c,r,n,f,u,h,m,v,p,y,k,j;const x=this.formController.getInitialValues().additional_questions;return a(t,{key:"05b69febfcd1e3901109c2cf64d812ff766b81cc"},a("fieldset",{key:"84f06779dff94622fc7d14fdca53efb84f11e8cd"},a("legend",{key:"3079e5d172c833d8172660f2f66b4d9637bfdb21",part:b},"Additional Questions"),a("div",{key:"cf5155033143279316822237a84a0ad5e292a6cd",class:"row gy-3"},a("div",{key:"e28450dacb0d7040d62a4820c0252d95792d7e87",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e2ac8f211ffd9848fab123bc7826fd9f18e109a8",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(d=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===d?void 0:d.business_revenue,defaultValue:null==x?void 0:x.business_revenue,maskOptions:o.WHOLE})),a("div",{key:"c5de85cd5e7b1501a0667a49d8d4826971e93052",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"3da3805e4ddbc633f060d36487b46e76e4f6eb04",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(r=null===(c=this.errors)||void 0===c?void 0:c.additional_questions)||void 0===r?void 0:r.business_payment_volume,defaultValue:null==x?void 0:x.business_payment_volume,maskOptions:o.WHOLE})),a("div",{key:"ad62fecba837464fddba48273635bc8ae3a7d7ed",class:"col-12"},a("form-control-select",{key:"9f09093b45c1c8eeb63065402f4b15e31c166d51",name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(f=null===(n=this.errors)||void 0===n?void 0:n.additional_questions)||void 0===f?void 0:f.business_when_service_received,options:s,defaultValue:null==x?void 0:x.business_when_service_received})),a("div",{key:"e2a05cbb74138a554033817e3bb1372933e64b99",class:"col-12"},a("form-control-select",{key:"8a95d74c02f2cf662f6cf0658faeae1a1a8f6a11",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:i,defaultValue:null==x?void 0:x.business_recurring_payments})),a("div",{key:"8d94059b0966237c980b1c1622e1ed3fd5bd8a58",class:"col-12"},a("form-control-text",{key:"320fa784aef300393ddfcca4f2ef4798d207bf30",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==x?void 0:x.business_recurring_payments_percentage})),a("div",{key:"8525c21ec91e652737455e7b093ff280800d97c2",class:"col-12"},a("form-control-select",{key:"c2cba23606b03f758ba704c074a65a212e111998",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(y=null===(p=this.errors)||void 0===p?void 0:p.additional_questions)||void 0===y?void 0:y.business_seasonal,options:l,defaultValue:null==x?void 0:x.business_seasonal})),a("div",{key:"c047c43284fbe92952c487544bc8206c98433edc",class:"col-12"},a("form-control-text",{key:"27348b1899f8b8f7f18a0618aa4dcb812a3bef04",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(j=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===j?void 0:j.business_other_payment_details,defaultValue:null==x?void 0:x.business_other_payment_details})))))}},x=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.isEditingTaxId=!1,this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new v(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){var e,s;const i=this.formController.getInitialValues();return a(t,{key:"9c73706505c1fa0a56d7eb68fc1c4c0a6fffd1dc"},a("fieldset",{key:"d30bae9bab7ffd0e385ce276e7797cfd606e5a42"},a("legend",{key:"5792db95cbbc080f3c990b4b9cea84484f374ec3",part:b},"General Info"),a("div",{key:"ae7fa3c788d625d60cfc83b270312946dce97f0b",class:"row gy-3"},a("div",{key:"f7e5ab1ec57a8ce8de5ef8591ecad8b2fbd2f030",class:"col-12"},a("form-control-text",{key:"fa96501ceca053263029489a74bddd31222b1462",name:"legal_name",label:"Legal Name",defaultValue:i.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"21e14d0c13017376d7e74e84169f30fe05fa13af",class:"col-12"},a("form-control-text",{key:"266187ec2209299a4b0ebc4c7d600c670de3b21f",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"d9bbb19b4ec15a18a0467444e964512114e74031",class:"col-12 col-md-8"},a("form-control-select",{key:"fe490b4abb4a1e07392db9ad4e4c15b02d928f4c",name:"classification",label:"Business Classification",options:d,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"fc5dafdace199fd34d22f22d629d87fc8ff7cc3e",class:"col-12 col-md-4"},a("form-control-date",{key:"0263cdef27d1b36c22bde16dbdb3777ad9ef62e3",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"2ae2b710d615e5314d4b836b9a498fc9140b749a",class:"col-12 col-md-6"},a("form-control-text",{key:"f6e738254ff7ead5680b895b6df77dc58efbc393",name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"8a01de0514d495b103aa43070d268070f57af62a",class:"col-12 col-md-6"},!(null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4)||this.isEditingTaxId?a("form-control-number-masked",{name:"tax_id",label:k[this.country].taxIdLabelOptional||k[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:r[this.country],helpText:k[this.country].taxIdHelpText}):a("div",null,a("label",{class:"form-label",part:f},k[this.country].taxIdLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:u,value:`****${null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:h,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:""}))}},"Change")))),a("div",{key:"a82eb6e652eb36fd57cd4a6c413e896aebfefce6",class:"col-12"},a("form-control-text",{key:"930f882235d7c4902ae6daf54d644a0cd9d23daf",name:"website_url",label:"Website URL",defaultValue:i.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"b2e819e6dfd97229e81e1860e1debe3ab95e3dc0",class:"col-12 col-md-6"},a("form-control-text",{key:"7a4a158a1c64adfe90b825ff54c9f1f607c25bb7",name:"email",label:"Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"948c4f98a4a7a8b898058adb0957b7251d8c9fe4",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"dc5804f3c9254c859f5e6a78487dae423c9689f1",name:"phone",label:"Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:n.US})))))}},O=class{constructor(a){e(this,a),this.errors={},this.representative={},this.isEditingIdentification=!1,this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=p(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){var e;return(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)||this.country===y.CAN?k[this.country].idNumberLabelOptional:k[this.country].idNumberLabel}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){var e,s;const i=this.formController.getInitialValues().representative;return a(t,{key:"9045242989e4d43d1e7b0770d0c5421005db78fa"},a("fieldset",{key:"6643f8bd8e81bbc64ae8a0e9bcf317e16f91bab9"},a("legend",{key:"20b897584a059ad98c109a37a3ea74c8be4b407c",part:b},"Representative"),a("div",{key:"37da5bfb73a7606c6180c151761aaf13dcc819c4",class:"row gy-3"},a("div",{key:"8d76accd442d9fda35ae4d3e1c47b65e17f098a0",class:"col-12 col-md-8"},a("form-control-text",{key:"2eadd087eac463e851192d8ee1c30390a29ee8b2",name:"name",label:"Full Name",defaultValue:null==i?void 0:i.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"f495a8cb3c6a0e9b4a00aac3e8c77f66da84b9e2",class:"col-12 col-md-4"},a("form-control-select",{key:"4b7669b96b7df9a387cf3c4f9638ea9ada9f37ee",name:"title",label:"Title",options:c,defaultValue:null==i?void 0:i.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"3e10f464a7e26a9518b4ce6d37c6f4a968514f98",class:"col-12 col-md-6"},a("form-control-text",{key:"a0d51c6999295428bfdcb43ef4b0ec15194eb077",name:"email",label:"Email Address",defaultValue:null==i?void 0:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"a8e1a4c8e4fa5a50d436c18e41a5b77f23bc53cf",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"a72115bf51fc97a25add717c208e820c7e9e5495",name:"phone",label:"Phone Number",defaultValue:null==i?void 0:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:n.US})),a("div",{key:"db04f552f1757b6ac4e10539e4a148f399a75192",class:"col-12 col-md-4"},a("form-control-date",{key:"cb07a2cc4e6fc242d643f9caea01db380a9ff366",name:"dob_full",label:"Birth Date",defaultValue:null==i?void 0:i.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"95348511ba3b1582053f754249b15efe4d707252",class:"col-12 col-md-8"},!(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)||this.isEditingIdentification?a("form-control-number-masked",{name:"identification_number",label:this.identificationNumberLabel,defaultValue:this.isEditingIdentification?"":null==i?void 0:i.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:r[this.country],helpText:k[this.country].identityHelpText}):a("div",null,a("label",{class:"form-label",part:f},this.identificationNumberLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:u,value:`****${null===(s=this.representative)||void 0===s?void 0:s.ssn_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:h,onClick:()=>{this.isEditingIdentification=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{ssn_last4:null,identification_number:""})}))}},"Change")))),a("div",{key:"57dcdaad0ec89f94d82236bfc8e093b68b7ec478",class:"col-12"},a("identity-address-form",{key:"0ea02562077d352c5d3a1d0903dee1e8b69fa6f1",errors:this.errors.address,defaultValues:null==i?void 0:i.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},g=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:m},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},_=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e;const s=this.formController.getInitialValues().legal_address;return a(t,{key:"856cd25caef521b651b9dd8a40dc6f9f0c727706"},a("fieldset",{key:"150ad1f56747aae80ae8d2610fa08fcabee27c87"},a("legend",{key:"565a46bd0977680e400663ef0590d65e977135be",part:b},"Business Legal Address"),a("form-address-fields",{key:"c2ce05c006ec80c5319b30b40387e400ec52ab86",country:this.country,errors:null===(e=this.errors)||void 0===e?void 0:e.legal_address,defaultValues:s,inputHandler:this.inputHandler})))}};export{j as additional_questions,x as business_core_info,O as business_representative,g as form_alert,_ as legal_address_form}
|