@justifi/webcomponents 4.11.0 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Business-7ae04d4f.js → Business-c928bf29.js} +36 -27
- package/dist/cjs/{Payment-89a8bc21.js → Payment-eceed10f.js} +1 -0
- package/dist/cjs/{SubAccount-05867651.js → SubAccount-b3902202.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +5 -6
- package/dist/cjs/business-additional-questions-schema-3813615c.js +47 -0
- package/dist/cjs/business-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{business-form-types-29b2bad9.js → business-form-types-4b138bf2.js} +26 -0
- package/dist/cjs/{form-control-datepart_4.cjs.entry.js → form-control-date_3.cjs.entry.js} +16 -93
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +124 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js +1 -1
- package/dist/cjs/{form-input-masks-e3bf2614.js → form-input-masks-efd44b8e.js} +3 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -4
- package/dist/cjs/{index-69b9386b.js → index-5d5f2219.js} +3 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +20 -12
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +17 -16
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +20 -12
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -6
- package/dist/cjs/justifi-business-owners.cjs.entry.js +2 -2
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +34 -24
- package/dist/cjs/justifi-checkout.cjs.entry.js +14 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-new-payment-method_3.cjs.entry.js → justifi-new-payment-method_4.cjs.entry.js} +95 -11
- package/dist/cjs/justifi-owner-form.cjs.entry.js +30 -16
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +5 -6
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -5
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payload-parsers-58d3798e.js +201 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +3 -4
- package/dist/cjs/{payment.service-0b0086dc.js → payment.service-9db24ab9.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +3 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -4
- package/dist/cjs/{payout.service-5cc3b4e9.js → payout.service-a0efb71a.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -4
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +5 -6
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
- package/dist/cjs/{utils-23e70ef2.js → utils-6e35fa70.js} +1 -1
- package/dist/cjs/{utils-2b9940e1.js → utils-6f62f7a1.js} +0 -7
- package/dist/cjs/{utils-87435719.js → utils-fc72268d.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +2 -20
- package/dist/collection/api/Checkout.js +6 -1
- package/dist/collection/api/Identity.js +9 -4
- package/dist/collection/api/Payment.js +1 -0
- package/dist/collection/api/services/checkout.service.js +7 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -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-form.js +48 -3
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +13 -10
- package/dist/collection/components/business-forms/owner-form/owner-form.js +25 -9
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +12 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +42 -1
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +1 -31
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +18 -18
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +15 -21
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +9 -0
- package/dist/collection/components/business-forms/schemas/schema-validations.js +92 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +23 -0
- package/dist/collection/components/business-forms/utils/helpers.js +22 -2
- package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
- package/dist/collection/components/business-list/business-list.js +0 -2
- package/dist/collection/components/checkout/checkout-actions.js +2 -2
- package/dist/collection/components/checkout/checkout-core.css +361 -0
- package/dist/collection/components/checkout/checkout-core.js +32 -27
- package/dist/collection/components/checkout/checkout.js +5 -5
- package/dist/collection/components/checkout/new-payment-method.js +12 -6
- package/dist/collection/components/checkout/payment-method-options.css +18 -2
- package/dist/collection/components/checkout/payment-method-options.js +62 -5
- package/dist/collection/components/checkout/payment-method-payload.js +1 -0
- package/dist/collection/components/checkout/saved-payment-method.js +11 -6
- package/dist/collection/components/checkout/sezzel-payment-method.js +247 -0
- package/dist/collection/components/form/form-control-date.css +1803 -0
- package/dist/collection/components/form/form-control-date.js +192 -0
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/select-input/select-input.js +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +4 -4
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +3 -3
- package/dist/collection/components/text-input/test/text-input.spec.js +4 -4
- package/dist/collection/components/text-input/text-input.js +1 -1
- package/dist/collection/utils/form-input-masks.js +2 -1
- package/dist/collection/utils/utils.js +0 -5
- package/dist/docs.json +672 -117
- package/dist/esm/{Business-91caaccb.js → Business-6cb1b9c8.js} +33 -25
- package/dist/esm/{Payment-55886c86.js → Payment-ef9fc1ae.js} +1 -0
- package/dist/esm/{SubAccount-61ac70eb.js → SubAccount-f4ae9809.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +5 -6
- package/dist/esm/business-additional-questions-schema-228d86e0.js +44 -0
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-0d76133c.js → business-form-types-5ba52d61.js} +25 -1
- package/dist/esm/{form-control-datepart_4.entry.js → form-control-date_3.entry.js} +16 -92
- package/dist/esm/form-control-datepart_2.entry.js +119 -0
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +1 -1
- package/dist/esm/form-input-masks-84875967.js +7 -0
- package/dist/esm/gross-payment-chart-core.entry.js +3 -4
- package/dist/esm/{index-df86d9a2.js → index-83dcf934.js} +3 -0
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +20 -12
- package/dist/esm/justifi-additional-questions_4.entry.js +17 -16
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_4.entry.js +5 -5
- package/dist/esm/justifi-business-details.entry.js +3 -4
- package/dist/esm/justifi-business-form.entry.js +20 -12
- package/dist/esm/justifi-business-list.entry.js +4 -6
- package/dist/esm/justifi-business-owners.entry.js +2 -2
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +34 -24
- package/dist/esm/justifi-checkout.entry.js +14 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/{justifi-new-payment-method_3.entry.js → justifi-new-payment-method_4.entry.js} +95 -12
- package/dist/esm/justifi-owner-form.entry.js +30 -16
- package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-form.entry.js +3 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -4
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +4 -4
- package/dist/esm/justifi-proceeds-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-subaccount-details.entry.js +5 -6
- package/dist/esm/justifi-subaccounts-list.entry.js +4 -5
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payload-parsers-3e817fe9.js +186 -0
- package/dist/esm/payment-details-core.entry.js +3 -4
- package/dist/esm/{payment.service-f274ef98.js → payment.service-ec28a959.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +3 -4
- package/dist/esm/payout-details-core.entry.js +3 -4
- package/dist/esm/{payout.service-af293f61.js → payout.service-5fd5986c.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +3 -4
- package/dist/esm/subaccount-account-details_4.entry.js +5 -6
- package/dist/esm/subaccount-bank-details.entry.js +2 -2
- package/dist/esm/subaccount-terms-details.entry.js +2 -2
- package/dist/esm/{utils-d01c5f3a.js → utils-210fdf39.js} +1 -1
- package/dist/esm/{utils-d9e90399.js → utils-243abdb4.js} +1 -7
- package/dist/esm/{utils-684d2e47.js → utils-6f05d9d7.js} +1 -1
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +11 -25
- package/dist/module/Payment.js +1 -0
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/business-address-schema.js +2 -32
- package/dist/module/business-core-info-form-step.js +2 -3
- package/dist/module/business-core-info-schema.js +18 -18
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-form-types.js +25 -1
- package/dist/module/business-identity-schema.js +15 -21
- package/dist/module/business-owners-form-step.js +3 -9
- package/dist/module/business-representative-form-step.js +16 -12
- package/dist/module/business-representative.js +16 -19
- package/dist/module/checkout-core.js +50 -33
- package/dist/module/form-control-date.d.ts +11 -0
- package/dist/module/form-control-date.js +6 -0
- package/dist/module/form-control-date2.js +68 -0
- package/dist/module/form-input-masks.js +3 -2
- package/dist/module/generic-info-details2.js +2 -2
- package/dist/module/helpers.js +24 -3
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +23 -18
- package/dist/module/justifi-business-list.js +1 -3
- package/dist/module/justifi-checkout.js +31 -21
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +14 -13
- package/dist/module/justifi-sezzel-payment-method.d.ts +11 -0
- package/dist/module/justifi-sezzel-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +1 -1
- package/dist/module/justifi-subaccounts-list.js +1 -1
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/new-payment-method.js +5 -4
- package/dist/module/owner-form.js +30 -20
- package/dist/module/payload-parsers.js +106 -1
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-options.js +34 -12
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/saved-payment-method.js +4 -4
- package/dist/module/select-input2.js +1 -1
- package/dist/module/sezzel-payment-method.js +99 -0
- package/dist/module/subaccount-merchant-details2.js +3 -3
- package/dist/module/text-input2.js +1 -1
- package/dist/module/utils2.js +1 -7
- package/dist/types/api/Business.d.ts +0 -19
- package/dist/types/api/Checkout.d.ts +63 -2
- package/dist/types/api/Identity.d.ts +5 -0
- package/dist/types/api/Payment.d.ts +2 -1
- package/dist/types/api/SubAccount.d.ts +0 -2
- package/dist/types/api/services/checkout.service.d.ts +8 -2
- package/dist/types/components/business-forms/business-form/business-form.d.ts +5 -0
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +3 -3
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +4 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +3 -0
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -8
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +5 -7
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +7 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +17 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +5 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +8 -2
- package/dist/types/components/checkout/checkout-actions.d.ts +3 -3
- package/dist/types/components/checkout/checkout-core.d.ts +5 -4
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +5 -1
- package/dist/types/components/checkout/payment-method-payload.d.ts +8 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/sezzel-payment-method.d.ts +23 -0
- package/dist/types/components/form/form-control-date.d.ts +18 -0
- package/dist/types/components.d.ts +112 -9
- package/dist/types/utils/form-input-masks.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/webcomponents/p-01913426.js +1 -0
- package/dist/webcomponents/p-02fa533c.js +1 -0
- package/dist/webcomponents/p-07080c01.entry.js +1 -0
- package/dist/webcomponents/{p-28cd23c8.entry.js → p-0c269feb.entry.js} +1 -1
- package/dist/webcomponents/p-0d371ff5.entry.js +1 -0
- package/dist/webcomponents/{p-0b76c770.entry.js → p-0eb56b44.entry.js} +1 -1
- package/dist/webcomponents/{p-436d27b9.entry.js → p-0eb77101.entry.js} +1 -1
- package/dist/webcomponents/p-1334f776.entry.js +1 -0
- package/dist/webcomponents/p-19001cc5.entry.js +1 -0
- package/dist/webcomponents/p-2319abaf.entry.js +1 -0
- package/dist/webcomponents/p-26fe62d6.entry.js +1 -0
- package/dist/webcomponents/p-28b38699.js +1 -0
- package/dist/webcomponents/{p-4df6174c.entry.js → p-29376518.entry.js} +1 -1
- package/dist/webcomponents/p-2bee72bd.entry.js +1 -0
- package/dist/webcomponents/p-2fbe8823.entry.js +1 -0
- package/dist/webcomponents/p-31ccb5f0.entry.js +1 -0
- package/dist/webcomponents/p-31e70d65.entry.js +1 -0
- package/dist/webcomponents/p-3302bc76.js +1 -0
- package/dist/webcomponents/p-3adc0688.entry.js +1 -0
- package/dist/webcomponents/{p-7c6a355f.entry.js → p-4616768c.entry.js} +1 -1
- package/dist/webcomponents/p-4c705f56.js +1 -0
- package/dist/webcomponents/{p-a46174e0.entry.js → p-5f5e730c.entry.js} +1 -1
- package/dist/webcomponents/p-5ff7826e.entry.js +1 -0
- package/dist/webcomponents/{p-8482c23f.js → p-65510838.js} +1 -1
- package/dist/webcomponents/p-71b8e2da.entry.js +1 -0
- package/dist/webcomponents/p-737473d8.js +1 -0
- package/dist/webcomponents/p-787d8f52.js +1 -0
- package/dist/webcomponents/{p-4d50d08a.entry.js → p-7d8d2984.entry.js} +1 -1
- package/dist/webcomponents/p-7da249b8.entry.js +1 -0
- package/dist/webcomponents/{p-07b326d0.entry.js → p-8657128b.entry.js} +1 -1
- package/dist/webcomponents/p-889a83d2.js +1 -0
- package/dist/webcomponents/p-8abba4c2.entry.js +1 -0
- package/dist/webcomponents/p-9245777b.js +1 -0
- package/dist/webcomponents/{p-221b9504.entry.js → p-927150b4.entry.js} +1 -1
- package/dist/webcomponents/p-9b0e5c25.entry.js +1 -0
- package/dist/webcomponents/p-9e3f9e05.entry.js +1 -0
- package/dist/webcomponents/{p-688bb5da.js → p-9ee8ad4d.js} +1 -1
- package/dist/webcomponents/p-9f529959.entry.js +1 -0
- package/dist/webcomponents/{p-fb49ef28.entry.js → p-a6f170ba.entry.js} +1 -1
- package/dist/webcomponents/{p-c071d8c1.entry.js → p-a8caec98.entry.js} +1 -1
- package/dist/webcomponents/p-a90f7ca0.js +1 -0
- package/dist/webcomponents/{p-d776fe10.entry.js → p-abc03d5a.entry.js} +1 -1
- package/dist/webcomponents/p-b9f04fb0.entry.js +1 -0
- package/dist/webcomponents/{p-1bfadb9f.entry.js → p-c1b92cec.entry.js} +1 -1
- package/dist/webcomponents/p-c556deda.entry.js +1 -0
- package/dist/webcomponents/{p-3d4aaa4a.entry.js → p-c6e207f6.entry.js} +1 -1
- package/dist/webcomponents/p-c865cda8.entry.js +1 -0
- package/dist/webcomponents/{p-b68f1dd9.entry.js → p-cdfde1ca.entry.js} +1 -1
- package/dist/webcomponents/{p-746bfba6.entry.js → p-d69a485a.entry.js} +1 -1
- package/dist/webcomponents/{p-ebf7c70f.entry.js → p-e4342f49.entry.js} +1 -1
- package/dist/webcomponents/{p-ea2cca2a.js → p-ed72a5cc.js} +1 -1
- package/dist/webcomponents/p-edab5f2b.entry.js +1 -0
- package/dist/webcomponents/{p-6b51cf97.entry.js → p-f0698778.entry.js} +1 -1
- package/dist/webcomponents/{p-ae21ed6f.entry.js → p-f76283a5.entry.js} +1 -1
- package/dist/webcomponents/p-fce2b224.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-additional-questions-schema-18a82d19.js +0 -47
- package/dist/cjs/business-form-select-options-7ccd8dca.js +0 -85
- package/dist/cjs/payload-parsers-f437272e.js +0 -132
- package/dist/collection/components/business-forms/utils/business-form-select-options.js +0 -80
- package/dist/esm/business-additional-questions-schema-b642a2b7.js +0 -44
- package/dist/esm/business-form-select-options-6b9293fe.js +0 -82
- package/dist/esm/form-input-masks-a8187c77.js +0 -6
- package/dist/esm/payload-parsers-920f49dd.js +0 -123
- package/dist/module/business-form-select-options.js +0 -82
- package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +0 -11
- package/dist/webcomponents/p-091f9732.entry.js +0 -1
- package/dist/webcomponents/p-0923e39c.js +0 -1
- package/dist/webcomponents/p-0d81883d.entry.js +0 -1
- package/dist/webcomponents/p-102b593a.entry.js +0 -1
- package/dist/webcomponents/p-2b8368d2.js +0 -1
- package/dist/webcomponents/p-2df32b4a.entry.js +0 -1
- package/dist/webcomponents/p-34352d04.js +0 -1
- package/dist/webcomponents/p-448063ba.entry.js +0 -1
- package/dist/webcomponents/p-5341321d.entry.js +0 -1
- package/dist/webcomponents/p-5b262705.entry.js +0 -1
- package/dist/webcomponents/p-5e503d7d.entry.js +0 -1
- package/dist/webcomponents/p-6047b960.entry.js +0 -1
- package/dist/webcomponents/p-60b2344a.js +0 -1
- package/dist/webcomponents/p-63296409.js +0 -1
- package/dist/webcomponents/p-6d39b8bc.entry.js +0 -1
- package/dist/webcomponents/p-7294eb89.entry.js +0 -1
- package/dist/webcomponents/p-7b2cddc7.js +0 -1
- package/dist/webcomponents/p-817211f2.entry.js +0 -1
- package/dist/webcomponents/p-935d6f55.js +0 -1
- package/dist/webcomponents/p-959250e3.entry.js +0 -1
- package/dist/webcomponents/p-975ab96e.js +0 -1
- package/dist/webcomponents/p-9b99370e.js +0 -1
- package/dist/webcomponents/p-a130a884.entry.js +0 -1
- package/dist/webcomponents/p-a4122c35.entry.js +0 -1
- package/dist/webcomponents/p-ac670a3e.js +0 -1
- package/dist/webcomponents/p-c340b60f.js +0 -1
- package/dist/webcomponents/p-d5aab6b5.entry.js +0 -1
- package/dist/webcomponents/p-d5c80489.entry.js +0 -1
- package/dist/webcomponents/p-d8679fad.entry.js +0 -1
- package/dist/webcomponents/p-da34bba7.entry.js +0 -1
- package/dist/webcomponents/p-e84b3616.entry.js +0 -1
- package/dist/webcomponents/p-ea03b424.entry.js +0 -1
- package/dist/webcomponents/p-ec230480.entry.js +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { F as FormAlert, L as LoadingSpinner } from './utils4.js';
|
|
3
|
-
import {
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$c } from './form-control-number2.js';
|
|
3
|
+
import { b as BusinessFormClickActions } from './business-form-types.js';
|
|
4
|
+
import { d as defineCustomElement$d } from './form-control-date2.js';
|
|
5
|
+
import { d as defineCustomElement$c } from './form-control-monetary2.js';
|
|
7
6
|
import { d as defineCustomElement$b } from './form-control-number-masked2.js';
|
|
8
7
|
import { d as defineCustomElement$a } from './form-control-select2.js';
|
|
9
8
|
import { d as defineCustomElement$9 } from './form-control-text2.js';
|
|
@@ -47,11 +46,16 @@ const PaymentProvisioning = /*@__PURE__*/ proxyCustomElement(class PaymentProvis
|
|
|
47
46
|
this.testMode = false;
|
|
48
47
|
this.hideErrors = false;
|
|
49
48
|
this.allowOptionalFields = false;
|
|
49
|
+
this.formTitle = 'Business Information';
|
|
50
|
+
this.removeTitle = false;
|
|
50
51
|
this.formLoading = false;
|
|
51
52
|
this.errorMessage = '';
|
|
52
53
|
this.currentStep = 0;
|
|
53
54
|
this.totalSteps = 5;
|
|
54
55
|
}
|
|
56
|
+
get title() {
|
|
57
|
+
return this.removeTitle ? '' : this.formTitle;
|
|
58
|
+
}
|
|
55
59
|
get showErrors() {
|
|
56
60
|
return this.errorMessage && !this.hideErrors;
|
|
57
61
|
}
|
|
@@ -91,7 +95,7 @@ const PaymentProvisioning = /*@__PURE__*/ proxyCustomElement(class PaymentProvis
|
|
|
91
95
|
return this.componentStepMapping[this.currentStep]();
|
|
92
96
|
}
|
|
93
97
|
render() {
|
|
94
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("h1", null,
|
|
98
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("h1", null, this.title), this.showErrors && FormAlert(this.errorMessage), h("div", { class: "my-4" }, this.currentStepComponent()), h("div", { class: "d-flex justify-content-between align-items-center" }, h("div", { class: "d-flex align-items-center" }, "Step ", this.currentStep + 1, " of ", this.totalSteps + 1), h("div", { class: "d-flex gap-2" }, this.showPreviousStepButton() && (h("button", { type: "button", class: "btn btn-secondary", onClick: () => this.previousStepButtonOnClick(), disabled: this.formLoading }, "Previous")), this.showNextStepButton() && (h("button", { type: "button", class: `btn btn-primary jfi-submit-button${this.formLoading ? ' jfi-submit-button-loading' : ''}`, onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.nextStep), disabled: this.formLoading }, this.formLoading ? LoadingSpinner() : 'Next')), this.showSubmitButton() && (h("button", { type: "submit", class: `btn btn-primary jfi-submit-button${this.formLoading ? ' jfi-submit-button-loading' : ''}`, onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.submit), disabled: this.formLoading }, this.formLoading ? LoadingSpinner() : 'Submit'))))));
|
|
95
99
|
}
|
|
96
100
|
static get style() { return paymentProvisioningCss; }
|
|
97
101
|
}, [0, "justifi-payment-provisioning", {
|
|
@@ -100,6 +104,8 @@ const PaymentProvisioning = /*@__PURE__*/ proxyCustomElement(class PaymentProvis
|
|
|
100
104
|
"testMode": [4, "test-mode"],
|
|
101
105
|
"hideErrors": [4, "hide-errors"],
|
|
102
106
|
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
107
|
+
"formTitle": [1, "form-title"],
|
|
108
|
+
"removeTitle": [4, "remove-title"],
|
|
103
109
|
"formLoading": [32],
|
|
104
110
|
"errorMessage": [32],
|
|
105
111
|
"currentStep": [32],
|
|
@@ -109,24 +115,19 @@ function defineCustomElement$1() {
|
|
|
109
115
|
if (typeof customElements === "undefined") {
|
|
110
116
|
return;
|
|
111
117
|
}
|
|
112
|
-
const components = ["justifi-payment-provisioning", "form-control-
|
|
118
|
+
const components = ["justifi-payment-provisioning", "form-control-date", "form-control-monetary", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-additional-questions-form-step", "justifi-business-core-info-form-step", "justifi-business-owners-form-step", "justifi-business-representative-form-step", "justifi-identity-address-form", "justifi-legal-address-form-step", "justifi-owner-form"];
|
|
113
119
|
components.forEach(tagName => { switch (tagName) {
|
|
114
120
|
case "justifi-payment-provisioning":
|
|
115
121
|
if (!customElements.get(tagName)) {
|
|
116
122
|
customElements.define(tagName, PaymentProvisioning);
|
|
117
123
|
}
|
|
118
124
|
break;
|
|
119
|
-
case "form-control-
|
|
120
|
-
if (!customElements.get(tagName)) {
|
|
121
|
-
defineCustomElement$e();
|
|
122
|
-
}
|
|
123
|
-
break;
|
|
124
|
-
case "form-control-monetary":
|
|
125
|
+
case "form-control-date":
|
|
125
126
|
if (!customElements.get(tagName)) {
|
|
126
127
|
defineCustomElement$d();
|
|
127
128
|
}
|
|
128
129
|
break;
|
|
129
|
-
case "form-control-
|
|
130
|
+
case "form-control-monetary":
|
|
130
131
|
if (!customElements.get(tagName)) {
|
|
131
132
|
defineCustomElement$c();
|
|
132
133
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JustifiSezzelPaymentMethod extends Components.JustifiSezzelPaymentMethod, HTMLElement {}
|
|
4
|
+
export const JustifiSezzelPaymentMethod: {
|
|
5
|
+
prototype: JustifiSezzelPaymentMethod;
|
|
6
|
+
new (): JustifiSezzelPaymentMethod;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { S as SezzelPaymentMethod, d as defineCustomElement$1 } from './sezzel-payment-method.js';
|
|
2
|
+
|
|
3
|
+
const JustifiSezzelPaymentMethod = SezzelPaymentMethod;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { JustifiSezzelPaymentMethod, defineCustomElement };
|
|
@@ -5,7 +5,7 @@ import './Payment.js';
|
|
|
5
5
|
import './Payout.js';
|
|
6
6
|
import { S as SubAccount } from './SubAccount.js';
|
|
7
7
|
import { L as LoadingState, E as ErrorState, b as EntityHeadInfo, c as EntityHeadInfoItem } from './utils.js';
|
|
8
|
-
import {
|
|
8
|
+
import { k as MapSubAccountStatusToBadge, e as formatDate, h as formatTime } from './utils2.js';
|
|
9
9
|
import { c as config } from './config.js';
|
|
10
10
|
import { d as defineCustomElement$6 } from './details.js';
|
|
11
11
|
import { d as defineCustomElement$5 } from './subaccount-account-details2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { S as SubAccount } from './SubAccount.js';
|
|
3
|
-
import {
|
|
3
|
+
import { k as MapSubAccountStatusToBadge } from './utils2.js';
|
|
4
4
|
import { A as Api } from './Api.js';
|
|
5
5
|
import { p as pagingDefaults } from './Pagination.js';
|
|
6
6
|
import './Payment.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { F as FormController } from './form.js';
|
|
3
3
|
import { A as Api } from './Api.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { b as Address } from './Business.js';
|
|
5
|
+
import { r as parseAddressInfo } from './payload-parsers.js';
|
|
6
6
|
import { a as addressSchema } from './business-address-schema.js';
|
|
7
7
|
import { c as config } from './config.js';
|
|
8
8
|
import { B as BusinessFormServerErrors } from './business-form-types.js';
|
|
@@ -23,14 +23,15 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
23
23
|
this.paymentMethodOption = undefined;
|
|
24
24
|
this.isSelected = undefined;
|
|
25
25
|
}
|
|
26
|
-
async
|
|
26
|
+
async resolvePaymentMethod() {
|
|
27
27
|
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
28
28
|
return;
|
|
29
29
|
const billingFormValidation = await this.billingFormRef.validate();
|
|
30
30
|
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
31
31
|
if (!billingFormValidation.isValid || !paymentMethodFormValidation.isValid)
|
|
32
32
|
return;
|
|
33
|
-
|
|
33
|
+
const token = await this.tokenize();
|
|
34
|
+
return { token: token };
|
|
34
35
|
}
|
|
35
36
|
async tokenize() {
|
|
36
37
|
try {
|
|
@@ -57,7 +58,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
57
58
|
}
|
|
58
59
|
render() {
|
|
59
60
|
var _a, _b, _c, _d;
|
|
60
|
-
return (h("div", { class: "payment-method" }, h("div", { class: `payment-method-header p-3
|
|
61
|
+
return (h("div", { class: "payment-method" }, h("div", { class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
61
62
|
}
|
|
62
63
|
}, [0, "justifi-new-payment-method", {
|
|
63
64
|
"iframeOrigin": [1025, "iframe-origin"],
|
|
@@ -65,7 +66,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
65
66
|
"accountId": [1, "account-id"],
|
|
66
67
|
"paymentMethodOption": [16],
|
|
67
68
|
"isSelected": [4, "is-selected"],
|
|
68
|
-
"
|
|
69
|
+
"resolvePaymentMethod": [64]
|
|
69
70
|
}]);
|
|
70
71
|
function defineCustomElement() {
|
|
71
72
|
if (typeof customElements === "undefined") {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { F as FormController } from './form.js';
|
|
3
|
-
import { P as PHONE_MASKS } from './form-input-masks.js';
|
|
3
|
+
import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
|
|
4
4
|
import { A as Api } from './Api.js';
|
|
5
5
|
import './Pagination.js';
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Payout.js';
|
|
8
8
|
import { O as Owner } from './Business.js';
|
|
9
|
-
import {
|
|
9
|
+
import { q as parseIdentityInfo } from './payload-parsers.js';
|
|
10
10
|
import { i as identitySchema } from './business-identity-schema.js';
|
|
11
11
|
import { c as config } from './config.js';
|
|
12
12
|
import { L as LoadingSpinner } from './utils4.js';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { d as defineCustomElement$5 } from './form-control-
|
|
13
|
+
import { d as deconstructDate } from './helpers.js';
|
|
14
|
+
import { c as OwnerFormServerErrors, O as OwnerFormClickActions } from './business-form-types.js';
|
|
15
|
+
import { d as defineCustomElement$5 } from './form-control-date2.js';
|
|
16
16
|
import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
|
|
17
17
|
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
18
18
|
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
@@ -29,17 +29,19 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
|
|
|
29
29
|
this.clickEvent = createEvent(this, "click-event", 7);
|
|
30
30
|
this.formLoading = createEvent(this, "formLoading", 7);
|
|
31
31
|
this.serverError = createEvent(this, "serverError", 7);
|
|
32
|
+
this.instantiateOwner = (data) => {
|
|
33
|
+
this.owner = Object.assign({}, new Owner(data));
|
|
34
|
+
this.formController.setInitialValues(this.owner);
|
|
35
|
+
};
|
|
32
36
|
this.fetchData = async () => {
|
|
33
37
|
if (!this.ownerId) {
|
|
34
|
-
this.
|
|
35
|
-
this.formController.setInitialValues(this.owner);
|
|
38
|
+
this.instantiateOwner({});
|
|
36
39
|
return;
|
|
37
40
|
}
|
|
38
41
|
this.isLoading = true;
|
|
39
42
|
try {
|
|
40
43
|
const response = await this.api.get(this.identityEndpoint);
|
|
41
|
-
this.
|
|
42
|
-
this.formController.setInitialValues(this.owner);
|
|
44
|
+
this.instantiateOwner(response.data);
|
|
43
45
|
}
|
|
44
46
|
catch (error) {
|
|
45
47
|
this.serverError.emit({ data: error, message: OwnerFormServerErrors.fetchData });
|
|
@@ -76,6 +78,15 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
|
|
|
76
78
|
this.onAddressFormUpdate = (values) => {
|
|
77
79
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { address: Object.assign(Object.assign({}, this.formController.values.getValue().address), values) }));
|
|
78
80
|
};
|
|
81
|
+
this.onDateOfBirthUpdate = (event) => {
|
|
82
|
+
if (event.detail === '') {
|
|
83
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { dob_day: null, dob_month: null, dob_year: null }));
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
const dob_values = deconstructDate(event.detail);
|
|
87
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { dob_day: dob_values.dob_day, dob_month: dob_values.dob_month, dob_year: dob_values.dob_year }));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
79
90
|
this.handleAddOwner = () => {
|
|
80
91
|
const eventName = this.ownerId ? OwnerFormClickActions.updateOwner : OwnerFormClickActions.addOwner;
|
|
81
92
|
this.clickEvent.emit({ name: eventName });
|
|
@@ -84,9 +95,9 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
|
|
|
84
95
|
this.removeOwner(this.ownerId);
|
|
85
96
|
this.clickEvent.emit({ name: OwnerFormClickActions.removeOwner });
|
|
86
97
|
};
|
|
87
|
-
this.validateAndSubmit = (event) => {
|
|
98
|
+
this.validateAndSubmit = async (event) => {
|
|
88
99
|
event.preventDefault();
|
|
89
|
-
const isValid = this.
|
|
100
|
+
const isValid = await this.validate();
|
|
90
101
|
if (isValid) {
|
|
91
102
|
this.submit();
|
|
92
103
|
}
|
|
@@ -137,6 +148,7 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
|
|
|
137
148
|
return false;
|
|
138
149
|
}
|
|
139
150
|
else {
|
|
151
|
+
this.instantiateOwner(response.data);
|
|
140
152
|
return true;
|
|
141
153
|
}
|
|
142
154
|
}
|
|
@@ -156,11 +168,14 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
|
|
|
156
168
|
return this.formController.validate();
|
|
157
169
|
}
|
|
158
170
|
async submit() {
|
|
159
|
-
|
|
171
|
+
const isValid = await this.validate();
|
|
172
|
+
if (isValid) {
|
|
173
|
+
return this.sendData();
|
|
174
|
+
}
|
|
160
175
|
}
|
|
161
176
|
render() {
|
|
162
177
|
const ownerDefaultValue = this.formController.getInitialValues();
|
|
163
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("fieldset", null, h("legend", null, this.formTitle), h("div", { class: 'row gy-3' }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12
|
|
178
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("fieldset", null, h("legend", null, this.formTitle), h("div", { class: 'row gy-3' }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: "SSN", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })), h("div", { class: "container d-flex gap-2" }, h("button", { type: "submit", class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}`, onClick: () => this.handleAddOwner(), disabled: this.isLoading }, this.isLoading ? LoadingSpinner() : this.submitButtonText), this.showRemoveButton &&
|
|
164
179
|
h("button", { type: "button", class: "btn btn-danger", onClick: () => this.handleRemoveOwner() }, "Remove owner"))), h("hr", null)))));
|
|
165
180
|
}
|
|
166
181
|
static get watchers() { return {
|
|
@@ -188,19 +203,14 @@ function defineCustomElement() {
|
|
|
188
203
|
if (typeof customElements === "undefined") {
|
|
189
204
|
return;
|
|
190
205
|
}
|
|
191
|
-
const components = ["justifi-owner-form", "form-control-
|
|
206
|
+
const components = ["justifi-owner-form", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
|
|
192
207
|
components.forEach(tagName => { switch (tagName) {
|
|
193
208
|
case "justifi-owner-form":
|
|
194
209
|
if (!customElements.get(tagName)) {
|
|
195
210
|
customElements.define(tagName, BusinessOwnerForm);
|
|
196
211
|
}
|
|
197
212
|
break;
|
|
198
|
-
case "form-control-
|
|
199
|
-
if (!customElements.get(tagName)) {
|
|
200
|
-
defineCustomElement$6();
|
|
201
|
-
}
|
|
202
|
-
break;
|
|
203
|
-
case "form-control-number":
|
|
213
|
+
case "form-control-date":
|
|
204
214
|
if (!customElements.get(tagName)) {
|
|
205
215
|
defineCustomElement$5();
|
|
206
216
|
}
|
|
@@ -1,3 +1,106 @@
|
|
|
1
|
+
import { a as create$6 } from './index.esm.js';
|
|
2
|
+
import { a as BusinessTypeOptions } from './business-form-types.js';
|
|
3
|
+
import { S as StateOptions } from './state-options.js';
|
|
4
|
+
|
|
5
|
+
const transformEmptyString = (value) => {
|
|
6
|
+
return value === '' ? null : value;
|
|
7
|
+
};
|
|
8
|
+
const businessNameRegex = /^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/;
|
|
9
|
+
const phoneRegex = /^\d{10}$/;
|
|
10
|
+
const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/;
|
|
11
|
+
const taxIdRegex = /^\d{9}$/;
|
|
12
|
+
const stringLettersOnlyRegex = /^(?!^\s+$)[a-zA-Z\s]*$/;
|
|
13
|
+
const ssnRegex = /^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
|
|
14
|
+
|
|
15
|
+
// Common Validations
|
|
16
|
+
const emailValidation = create$6()
|
|
17
|
+
.email('Enter valid email')
|
|
18
|
+
.transform(transformEmptyString);
|
|
19
|
+
const phoneValidation = create$6()
|
|
20
|
+
.matches(phoneRegex, 'Enter valid phone number')
|
|
21
|
+
.transform(transformEmptyString);
|
|
22
|
+
// Core Info Validations
|
|
23
|
+
const businessNameValidation = create$6()
|
|
24
|
+
.min(2, 'Name must be at least 2 characters')
|
|
25
|
+
.max(100, 'Name must be less than 100 characters')
|
|
26
|
+
.matches(businessNameRegex, 'Enter valid business name')
|
|
27
|
+
.transform(transformEmptyString);
|
|
28
|
+
const doingBusinessAsValidation = create$6()
|
|
29
|
+
.min(2, 'Name must be at least 2 characters')
|
|
30
|
+
.max(100, 'Name must be less than 100 characters')
|
|
31
|
+
.matches(businessNameRegex, 'Enter valid doing business as')
|
|
32
|
+
.transform(transformEmptyString);
|
|
33
|
+
const websiteUrlValidation = create$6()
|
|
34
|
+
.matches(urlRegex, 'Enter valid website url')
|
|
35
|
+
.transform(transformEmptyString);
|
|
36
|
+
const businessTypeValidation = create$6()
|
|
37
|
+
.oneOf(BusinessTypeOptions.map((option) => option.value), 'Select business type')
|
|
38
|
+
.transform(transformEmptyString);
|
|
39
|
+
const industryValidation = create$6()
|
|
40
|
+
.min(2, 'Industry must be at least 2 characters')
|
|
41
|
+
.max(50, 'Industry must be less than 50 characters')
|
|
42
|
+
.matches(stringLettersOnlyRegex, 'Enter valid industry')
|
|
43
|
+
.transform(transformEmptyString);
|
|
44
|
+
const taxIdValidation = create$6()
|
|
45
|
+
.matches(taxIdRegex, 'Enter valid tax id')
|
|
46
|
+
.transform(transformEmptyString);
|
|
47
|
+
// Identity Validations
|
|
48
|
+
const identityNameValidation = create$6()
|
|
49
|
+
.min(2, 'Name must be at least 2 characters')
|
|
50
|
+
.max(100, 'Name must be less than 100 characters')
|
|
51
|
+
.matches(stringLettersOnlyRegex, 'Enter valid name')
|
|
52
|
+
.transform(transformEmptyString);
|
|
53
|
+
const identityTitleValidation = create$6()
|
|
54
|
+
.min(2, 'Title must be at least 2 characters')
|
|
55
|
+
.max(50, 'Title must be less than 50 characters')
|
|
56
|
+
.matches(stringLettersOnlyRegex, 'Enter valid title')
|
|
57
|
+
.transform(transformEmptyString);
|
|
58
|
+
const dobValidation = (role) => {
|
|
59
|
+
return (create$6()
|
|
60
|
+
.test('min', 'Enter a valid date', (value) => {
|
|
61
|
+
const date = new Date(value);
|
|
62
|
+
const minDate = new Date('1902-01-01');
|
|
63
|
+
return date >= minDate;
|
|
64
|
+
})
|
|
65
|
+
.test('age', `${role} must be at least 18 years old`, (value) => {
|
|
66
|
+
const date = new Date(value);
|
|
67
|
+
const minAgeDate = new Date();
|
|
68
|
+
minAgeDate.setFullYear(minAgeDate.getFullYear() - 18);
|
|
69
|
+
return date <= minAgeDate;
|
|
70
|
+
})
|
|
71
|
+
.transform(transformEmptyString));
|
|
72
|
+
};
|
|
73
|
+
const ssnValidation = create$6()
|
|
74
|
+
.matches(ssnRegex, 'Enter valid SSN')
|
|
75
|
+
.test('not-repeat', 'Enter valid SSN', (value) => {
|
|
76
|
+
return !/^(\d)\1+$/.test(value);
|
|
77
|
+
})
|
|
78
|
+
.test('not-seq', 'Enter valid SSN', (value) => {
|
|
79
|
+
return value !== '123456789';
|
|
80
|
+
})
|
|
81
|
+
.transform(transformEmptyString);
|
|
82
|
+
// Address Validations
|
|
83
|
+
const lineOneValidation = create$6()
|
|
84
|
+
.min(5, 'Address must be at least 5 characters')
|
|
85
|
+
.max(100, 'Address must be less than 100 characters')
|
|
86
|
+
.matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 1')
|
|
87
|
+
.transform(transformEmptyString);
|
|
88
|
+
const lineTwoValidation = create$6()
|
|
89
|
+
.max(100, 'Address must be less than 100 characters')
|
|
90
|
+
.matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 2')
|
|
91
|
+
.transform(transformEmptyString);
|
|
92
|
+
const cityValidation = create$6()
|
|
93
|
+
.min(2, 'City must be at least 2 characters')
|
|
94
|
+
.max(50, 'City must be less than 50 characters')
|
|
95
|
+
.matches(/^(?!^\s+$)[a-zA-Z\s]*$/, 'Enter valid city')
|
|
96
|
+
.transform(transformEmptyString);
|
|
97
|
+
const stateValidation = create$6()
|
|
98
|
+
.oneOf(StateOptions.map((option) => option.value), 'Select state')
|
|
99
|
+
.transform(transformEmptyString);
|
|
100
|
+
const postalValidation = create$6()
|
|
101
|
+
.matches(/^[0-9]{5}$/, 'Enter valid postal code')
|
|
102
|
+
.transform(transformEmptyString);
|
|
103
|
+
|
|
1
104
|
// These props should not be sent to the server
|
|
2
105
|
// This function is for the larger business form.
|
|
3
106
|
const parseBusiness = (values, initialValues) => {
|
|
@@ -33,7 +136,9 @@ const parseIdentityInfo = (values) => {
|
|
|
33
136
|
delete values.address.created_at;
|
|
34
137
|
delete values.address.updated_at;
|
|
35
138
|
delete values.business_id;
|
|
139
|
+
delete values.dob_full;
|
|
140
|
+
delete values.ssn_last4;
|
|
36
141
|
return values;
|
|
37
142
|
};
|
|
38
143
|
|
|
39
|
-
export {
|
|
144
|
+
export { phoneValidation as a, businessNameValidation as b, businessTypeValidation as c, doingBusinessAsValidation as d, emailValidation as e, parseBusiness as f, identityNameValidation as g, identityTitleValidation as h, industryValidation as i, dobValidation as j, lineTwoValidation as k, lineOneValidation as l, cityValidation as m, stateValidation as n, postalValidation as o, parseCoreInfo as p, parseIdentityInfo as q, parseAddressInfo as r, ssnValidation as s, taxIdValidation as t, websiteUrlValidation as w };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { M as MapPaymentStatusToBadge, a as formatCurrency, e as formatDate,
|
|
2
|
+
import { M as MapPaymentStatusToBadge, a as formatCurrency, e as formatDate, h as formatTime, s as snakeCaseToHumanReadable } from './utils2.js';
|
|
3
3
|
import { L as LoadingState, E as ErrorState, b as EntityHeadInfo, c as EntityHeadInfoItem, D as DetailSectionTitle, a as DetailItem, C as CodeBlock } from './utils.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './details.js';
|
|
5
5
|
|
|
@@ -1490,7 +1490,7 @@ const MessageEventType = {
|
|
|
1490
1490
|
};
|
|
1491
1491
|
|
|
1492
1492
|
const name = "@justifi/webcomponents";
|
|
1493
|
-
const version = "4.
|
|
1493
|
+
const version = "4.12.1";
|
|
1494
1494
|
const description = "JustiFi Web Components";
|
|
1495
1495
|
const main = "dist/module/index.js";
|
|
1496
1496
|
const module = "dist/module/index.js";
|