@justifi/webcomponents 4.10.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Business-663db337.js → Business-7ae04d4f.js} +46 -1
- package/dist/cjs/business-additional-questions-schema-18a82d19.js +47 -0
- package/dist/cjs/business-details-core.cjs.entry.js +7 -2
- package/dist/cjs/{business-form-types-3cdd5447.js → business-form-types-29b2bad9.js} +7 -0
- package/dist/cjs/{form-control-datepart_3.cjs.entry.js → form-control-datepart_4.cjs.entry.js} +59 -12
- package/dist/cjs/{form-control-number_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +3 -45
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +7 -1
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +24 -20
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +6 -8
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +21 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +60 -51
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +29 -5
- package/dist/cjs/justifi-owner-form.cjs.entry.js +20 -12
- package/dist/cjs/justifi-payment-details.cjs.entry.js +25 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +16 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +16 -16
- package/dist/cjs/justifi-payments-list.cjs.entry.js +25 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +27 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +26 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/payload-parsers-f437272e.js +132 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +7 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +8 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +8 -2
- package/dist/cjs/{utils-df5167a8.js → utils-87435719.js} +7 -0
- package/dist/cjs/utils-f8079741.js +41 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Business.js +2 -1
- package/dist/collection/api/ComponentError.js +14 -0
- package/dist/collection/api/services/utils.js +11 -0
- package/dist/collection/api/shared.js +11 -1
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +1 -1
- package/dist/collection/components/business-details/business-details-core.js +30 -2
- package/dist/collection/components/business-details/business-details.js +30 -0
- package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +1 -1
- package/dist/collection/components/business-details/get-business.js +15 -3
- package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +1 -1
- package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +1 -1
- package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +1 -1
- package/dist/collection/components/business-details/test/busines-details-core.spec.js +56 -16
- package/dist/collection/components/business-details/test/business-details.spec.js +20 -4
- package/dist/collection/components/business-details/test/get-business.spec.js +13 -6
- package/dist/collection/components/business-forms/business-form/business-form.js +79 -50
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -4
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -2
- package/dist/collection/components/business-forms/{business-form/business-address/business-address-form.js → owner-form/identity-address/identity-address-form.js} +13 -10
- package/dist/collection/components/business-forms/owner-form/identity-address/test/identity-address.e2e.js +9 -0
- package/dist/collection/components/business-forms/{business-form/business-address/test/business-address.spec.js → owner-form/identity-address/test/identity-address.spec.js} +21 -14
- package/dist/collection/components/business-forms/owner-form/owner-form.js +54 -8
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +20 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +19 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +44 -4
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +21 -6
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +23 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +32 -14
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +15 -6
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +47 -12
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +24 -12
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +4 -4
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +29 -34
- package/dist/collection/components/business-forms/utils/business-form-types.js +7 -0
- package/dist/collection/components/business-forms/utils/helpers.js +2 -0
- package/dist/collection/components/form/form-control-text.js +35 -1
- package/dist/collection/components/form/utils.js +6 -0
- package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +17 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +30 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +35 -1
- package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +26 -8
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +51 -11
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +55 -3
- package/dist/collection/components/payment-details/get-payment-details.js +15 -3
- package/dist/collection/components/payment-details/payment-details-core.js +30 -1
- package/dist/collection/components/payment-details/payment-details.js +35 -1
- package/dist/collection/components/payment-details/test/get-payment-details.spec.js +11 -3
- package/dist/collection/components/payment-details/test/payment-details-core.spec.js +55 -12
- package/dist/collection/components/payment-details/test/payment-details.spec.js +69 -3
- package/dist/collection/components/payment-form/payment-form.js +54 -3
- package/dist/collection/components/payment-form/test/payment-form.spec.js +60 -1
- package/dist/collection/components/payments-list/get-payments.js +15 -4
- package/dist/collection/components/payments-list/payments-list-core.js +28 -2
- package/dist/collection/components/payments-list/payments-list.js +35 -1
- package/dist/collection/components/payments-list/test/get-payments.spec.js +11 -3
- package/dist/collection/components/payments-list/test/payments-list-core.spec.js +43 -28
- package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -3
- package/dist/collection/components/payout-details/get-payout-details.js +17 -6
- package/dist/collection/components/payout-details/payout-details-core.js +31 -3
- package/dist/collection/components/payout-details/payout-details.js +35 -1
- package/dist/collection/components/payout-details/test/get-payout-details.spec.js +15 -5
- package/dist/collection/components/payout-details/test/payout-details-core.spec.js +54 -16
- package/dist/collection/components/payout-details/test/payout-details.spec.js +50 -1
- package/dist/collection/components/payouts-list/get-payouts.js +17 -5
- package/dist/collection/components/payouts-list/payouts-list-core.js +28 -2
- package/dist/collection/components/payouts-list/payouts-list.js +34 -1
- package/dist/collection/components/payouts-list/test/get-payouts.spec.js +11 -3
- package/dist/collection/components/payouts-list/test/payouts-list-core.spec.js +42 -29
- package/dist/collection/components/payouts-list/test/payouts-list.spec.js +33 -0
- package/dist/docs.json +753 -354
- package/dist/esm/{Business-6cc4e473.js → Business-91caaccb.js} +45 -2
- package/dist/esm/business-additional-questions-schema-b642a2b7.js +44 -0
- package/dist/esm/business-details-core.entry.js +8 -3
- package/dist/esm/{business-form-types-de9f38cd.js → business-form-types-0d76133c.js} +8 -1
- package/dist/esm/{form-control-datepart_3.entry.js → form-control-datepart_4.entry.js} +59 -13
- package/dist/esm/{form-control-number_3.entry.js → form-control-select_2.entry.js} +4 -45
- package/dist/esm/gross-payment-chart-core.entry.js +8 -2
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +22 -18
- package/dist/esm/justifi-additional-questions_4.entry.js +6 -8
- package/dist/esm/justifi-billing-form_4.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +22 -5
- package/dist/esm/justifi-business-form.entry.js +60 -51
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +28 -4
- package/dist/esm/justifi-owner-form.entry.js +19 -11
- package/dist/esm/justifi-payment-details.entry.js +26 -5
- package/dist/esm/justifi-payment-form.entry.js +16 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +16 -16
- package/dist/esm/justifi-payments-list.entry.js +26 -6
- package/dist/esm/justifi-payout-details.entry.js +28 -8
- package/dist/esm/justifi-payouts-list.entry.js +27 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/payload-parsers-920f49dd.js +123 -0
- package/dist/esm/payment-details-core.entry.js +8 -2
- package/dist/esm/payments-list-core.entry.js +8 -2
- package/dist/esm/payout-details-core.entry.js +9 -4
- package/dist/esm/payouts-list-core.entry.js +8 -2
- package/dist/esm/utils-4609f32c.js +38 -0
- package/dist/esm/{utils-2828201a.js → utils-684d2e47.js} +7 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Business.js +45 -2
- package/dist/module/business-additional-questions-form-step.js +4 -2
- package/dist/module/business-additional-questions-schema.js +16 -7
- package/dist/module/business-address-schema.js +49 -14
- package/dist/module/business-core-info-form-step.js +3 -1
- package/dist/module/business-core-info-schema.js +24 -12
- package/dist/module/business-details-core2.js +8 -3
- package/dist/module/business-form-types.js +8 -1
- package/dist/module/business-identity-schema.js +30 -35
- package/dist/module/business-owners-form-step.js +12 -8
- package/dist/module/business-representative-form-step.js +9 -10
- package/dist/module/business-representative.js +4 -7
- package/dist/module/form-control-text2.js +5 -1
- package/dist/module/gross-payment-chart-core2.js +8 -2
- package/dist/module/helpers.js +4 -0
- package/dist/module/{business-address-form.js → identity-address-form.js} +17 -20
- package/dist/module/justifi-business-details.js +21 -4
- package/dist/module/justifi-business-form.js +65 -56
- package/dist/module/justifi-gross-payment-chart.js +28 -4
- package/dist/module/justifi-identity-address-form.d.ts +11 -0
- package/dist/module/justifi-identity-address-form.js +6 -0
- package/dist/module/justifi-payment-details.js +26 -5
- package/dist/module/justifi-payment-form.js +18 -4
- package/dist/module/justifi-payment-provisioning.js +24 -23
- package/dist/module/justifi-payments-list.js +26 -6
- package/dist/module/justifi-payout-details.js +28 -8
- package/dist/module/justifi-payouts-list.js +27 -7
- package/dist/module/legal-address-form-step.js +8 -11
- package/dist/module/legal-address-form.js +5 -9
- package/dist/module/owner-form.js +22 -12
- package/dist/module/payment-details-core2.js +8 -2
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payments-list-core2.js +8 -2
- package/dist/module/payout-details-core2.js +9 -4
- package/dist/module/payouts-list-core2.js +8 -2
- package/dist/module/utils3.js +31 -1
- package/dist/module/utils4.js +7 -1
- package/dist/types/api/ComponentError.d.ts +18 -0
- package/dist/types/api/services/utils.d.ts +2 -0
- package/dist/types/api/shared.d.ts +9 -0
- package/dist/types/components/business-details/business-details-core.d.ts +3 -0
- package/dist/types/components/business-details/business-details.d.ts +3 -0
- package/dist/types/components/business-forms/business-form/business-form.d.ts +4 -2
- package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +10 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +5 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +3 -1
- 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/legal-address-form/legal-address-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +3 -2
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +1 -1
- package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +1 -12
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +7 -3
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +5 -31
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +10 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +2 -0
- package/dist/types/components/form/form-control-text.d.ts +2 -0
- package/dist/types/components/form/utils.d.ts +1 -0
- package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +5 -8
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +3 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -0
- package/dist/types/components/payment-details/payment-details-core.d.ts +3 -0
- package/dist/types/components/payment-details/payment-details.d.ts +4 -0
- package/dist/types/components/payment-form/payment-form.d.ts +4 -1
- package/dist/types/components/payments-list/payments-list-core.d.ts +2 -0
- package/dist/types/components/payments-list/payments-list.d.ts +4 -0
- package/dist/types/components/payout-details/payout-details-core.d.ts +3 -0
- package/dist/types/components/payout-details/payout-details.d.ts +4 -0
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +2 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +4 -0
- package/dist/types/components.d.ts +217 -43
- package/dist/webcomponents/p-091f9732.entry.js +1 -0
- package/dist/webcomponents/p-0b76c770.entry.js +1 -0
- package/dist/webcomponents/p-0d81883d.entry.js +1 -0
- package/dist/webcomponents/{p-cb8f9cb8.entry.js → p-102b593a.entry.js} +1 -1
- package/dist/webcomponents/p-28cd23c8.entry.js +1 -0
- package/dist/webcomponents/p-2b8368d2.js +1 -0
- package/dist/webcomponents/p-436d27b9.entry.js +1 -0
- package/dist/webcomponents/p-448063ba.entry.js +1 -0
- package/dist/webcomponents/p-5341321d.entry.js +1 -0
- package/dist/webcomponents/p-5b262705.entry.js +1 -0
- package/dist/webcomponents/p-5e503d7d.entry.js +1 -0
- package/dist/webcomponents/p-6047b960.entry.js +1 -0
- package/dist/webcomponents/p-6f294d5d.js +1 -0
- package/dist/webcomponents/p-7294eb89.entry.js +1 -0
- package/dist/webcomponents/p-746bfba6.entry.js +1 -0
- package/dist/webcomponents/p-7c6a355f.entry.js +1 -0
- package/dist/webcomponents/p-935d6f55.js +1 -0
- package/dist/webcomponents/{p-e924f2e1.entry.js → p-959250e3.entry.js} +1 -1
- package/dist/webcomponents/{p-b37d6888.entry.js → p-a130a884.entry.js} +1 -1
- package/dist/webcomponents/p-ac670a3e.js +1 -0
- package/dist/webcomponents/p-ae21ed6f.entry.js +19 -0
- package/dist/webcomponents/p-c071d8c1.entry.js +1 -0
- package/dist/webcomponents/p-c340b60f.js +1 -0
- package/dist/webcomponents/p-d5aab6b5.entry.js +1 -0
- package/dist/webcomponents/p-d5c80489.entry.js +1 -0
- package/dist/webcomponents/p-d776fe10.entry.js +1 -0
- package/dist/webcomponents/p-d8679fad.entry.js +1 -0
- package/dist/webcomponents/p-e84b3616.entry.js +1 -0
- package/dist/webcomponents/p-ea2cca2a.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Identity-1c4528b8.js +0 -49
- package/dist/cjs/business-additional-questions-schema-cbac27f2.js +0 -26
- package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +0 -35
- package/dist/cjs/payload-parsers-9e72e80f.js +0 -99
- package/dist/cjs/utils-f5d82f21.js +0 -10
- package/dist/collection/api/mockData/MockOnboardingData.js +0 -117
- package/dist/collection/api/mockData/MockPayments.js +0 -243
- package/dist/collection/api/mockData/MockSubAccount.js +0 -102
- package/dist/collection/api/mockData/mockGrossVolumeReport.js +0 -125
- package/dist/collection/components/business-forms/business-form/business-address/test/business-address.e2e.js +0 -9
- package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.css +0 -2536
- package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.js +0 -97
- package/dist/collection/components/business-forms/payment-provisioning/business-address/test/business-address-form-step.spec.js +0 -97
- package/dist/collection/components/business-forms/schemas/business-owners-schema.js +0 -16
- package/dist/collection/components/card-form/test/card-form.e2e.js +0 -13
- package/dist/esm/Identity-5f8f916f.js +0 -46
- package/dist/esm/business-additional-questions-schema-2cb80f70.js +0 -23
- package/dist/esm/justifi-business-address-form-step.entry.js +0 -31
- package/dist/esm/payload-parsers-caea809d.js +0 -91
- package/dist/esm/utils-546ca6aa.js +0 -8
- package/dist/module/Identity.js +0 -46
- package/dist/module/justifi-business-address-form-step.d.ts +0 -11
- package/dist/module/justifi-business-address-form-step.js +0 -75
- package/dist/module/justifi-business-address-form.d.ts +0 -11
- package/dist/module/justifi-business-address-form.js +0 -6
- package/dist/types/api/mockData/MockOnboardingData.d.ts +0 -8
- package/dist/types/api/mockData/MockPayments.d.ts +0 -3
- package/dist/types/api/mockData/MockSubAccount.d.ts +0 -3
- package/dist/types/components/business-forms/business-form/business-address/business-address-form.d.ts +0 -9
- package/dist/types/components/business-forms/payment-provisioning/business-address/business-address-form-step.d.ts +0 -9
- package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +0 -33
- package/dist/webcomponents/p-03b1d0d5.entry.js +0 -1
- package/dist/webcomponents/p-0e189d6a.entry.js +0 -1
- package/dist/webcomponents/p-16dcf053.entry.js +0 -1
- package/dist/webcomponents/p-17d72f4a.js +0 -1
- package/dist/webcomponents/p-38ba2848.entry.js +0 -1
- package/dist/webcomponents/p-41870765.entry.js +0 -1
- package/dist/webcomponents/p-461f42b8.entry.js +0 -1
- package/dist/webcomponents/p-48c2400e.js +0 -1
- package/dist/webcomponents/p-491ca87f.js +0 -1
- package/dist/webcomponents/p-5be4e217.entry.js +0 -1
- package/dist/webcomponents/p-60714f2a.entry.js +0 -1
- package/dist/webcomponents/p-65500b31.entry.js +0 -19
- package/dist/webcomponents/p-6ed680e9.js +0 -1
- package/dist/webcomponents/p-7ec301b5.entry.js +0 -1
- package/dist/webcomponents/p-9207ccb2.entry.js +0 -1
- package/dist/webcomponents/p-9e4b81ad.entry.js +0 -1
- package/dist/webcomponents/p-a141c531.js +0 -1
- package/dist/webcomponents/p-a2dbe90f.entry.js +0 -1
- package/dist/webcomponents/p-a68519e5.entry.js +0 -1
- package/dist/webcomponents/p-af8363a1.entry.js +0 -1
- package/dist/webcomponents/p-b1bc23af.entry.js +0 -1
- package/dist/webcomponents/p-b5a3bf86.entry.js +0 -1
- package/dist/webcomponents/p-b8f22856.js +0 -1
- package/dist/webcomponents/p-d0761829.entry.js +0 -1
- package/dist/webcomponents/p-dbe32e75.entry.js +0 -1
- package/dist/webcomponents/p-e0c1cba8.js +0 -1
- package/dist/webcomponents/p-eed5f4ad.entry.js +0 -1
- package/dist/webcomponents/p-fe8a94c1.entry.js +0 -1
- /package/dist/collection/components/business-forms/{business-form/business-address/business-address-form.css → owner-form/identity-address/identity-address-form.css} +0 -0
- /package/dist/types/{api → home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil}/mockData/mockGrossVolumeReport.d.ts +0 -0
- /package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/{config.d.ts → packages/webcomponents/config.d.ts} +0 -0
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout\",[[1,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"pay\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64]}]]],[\"justifi-subaccount-details\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-business-address-form-step\",[[1,\"justifi-business-address-form-step\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-billing-form_4\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-bank-account-form\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-gross-payment-chart\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"subaccount-bank-details\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"pay\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"errorMessage\":[32],\"creatingNewPaymentMethod\":[32],\"selectedPaymentMethodToken\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-number_3\",[[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"justifi-additional-questions_4\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}]]],[\"subaccount-account-details_4\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"justifi-new-payment-method_3\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"selectedPaymentMethodId\":[1,\"selected-payment-method-id\"],\"paymentMethodOptions\":[32],\"getPaymentMethodToken\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"getPaymentMethodToken\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"getPaymentMethodToken\":[64]}]]],[\"additional-questions-details_5\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"form-control-datepart_3\",[[1,\"justifi-business-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
|
|
17
|
+
return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout\",[[1,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"pay\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-gross-payment-chart\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"subaccount-bank-details\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"pay\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"errorMessage\":[32],\"creatingNewPaymentMethod\":[32],\"selectedPaymentMethodToken\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"justifi-table_2\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-select_2\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"form-control-datepart_4\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"justifi-additional-questions_4\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}]]],[\"subaccount-account-details_4\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"justifi-billing-form_4\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_3\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"selectedPaymentMethodId\":[1,\"selected-payment-method-id\"],\"paymentMethodOptions\":[32],\"getPaymentMethodToken\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"getPaymentMethodToken\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"getPaymentMethodToken\":[64]}]]],[\"additional-questions-details_5\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]]]"), options);
|
|
18
18
|
});
|
package/dist/module/Business.js
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
import { g as getStateAbbreviation } from './utils2.js';
|
|
2
2
|
|
|
3
|
+
class Owner {
|
|
4
|
+
constructor(owner) {
|
|
5
|
+
this.address = Object.assign({}, new Address(owner.address || {}));
|
|
6
|
+
this.created_at = owner.created_at;
|
|
7
|
+
this.dob_day = owner.dob_day;
|
|
8
|
+
this.dob_month = owner.dob_month;
|
|
9
|
+
this.dob_year = owner.dob_year;
|
|
10
|
+
this.documents = owner.documents;
|
|
11
|
+
this.email = owner.email;
|
|
12
|
+
this.id = owner.id;
|
|
13
|
+
this.business_id = owner.business_id;
|
|
14
|
+
this.is_owner = owner.is_owner;
|
|
15
|
+
this.metadata = owner.metadata;
|
|
16
|
+
this.name = owner.name;
|
|
17
|
+
this.phone = owner.phone;
|
|
18
|
+
this.platform_account_id = owner.platform_account_id;
|
|
19
|
+
this.ssn_last4 = owner.ssn_last4;
|
|
20
|
+
this.title = owner.title;
|
|
21
|
+
this.updated_at = owner.updated_at;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
class Representative {
|
|
25
|
+
constructor(representative) {
|
|
26
|
+
this.address = Object.assign({}, new Address(representative.address || {}));
|
|
27
|
+
this.created_at = representative.created_at;
|
|
28
|
+
this.dob_day = representative.dob_day;
|
|
29
|
+
this.dob_month = representative.dob_month;
|
|
30
|
+
this.dob_year = representative.dob_year;
|
|
31
|
+
this.documents = representative.documents;
|
|
32
|
+
this.email = representative.email;
|
|
33
|
+
this.id = representative.id;
|
|
34
|
+
this.business_id = representative.business_id;
|
|
35
|
+
this.is_owner = representative.is_owner;
|
|
36
|
+
this.metadata = representative.metadata;
|
|
37
|
+
this.name = representative.name;
|
|
38
|
+
this.phone = representative.phone;
|
|
39
|
+
this.platform_account_id = representative.platform_account_id;
|
|
40
|
+
this.ssn_last4 = representative.ssn_last4;
|
|
41
|
+
this.title = representative.title;
|
|
42
|
+
this.updated_at = representative.updated_at;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
3
46
|
var BusinessStructure;
|
|
4
47
|
(function (BusinessStructure) {
|
|
5
48
|
BusinessStructure["sole_proprietorship"] = "sole_proprietorship";
|
|
@@ -77,11 +120,11 @@ class Business {
|
|
|
77
120
|
this.phone = business.phone;
|
|
78
121
|
this.platform_account_id = business.platform_account_id;
|
|
79
122
|
this.product_categories = business.product_categories;
|
|
80
|
-
this.representative = business.representative || {};
|
|
123
|
+
this.representative = new Representative(business.representative || {});
|
|
81
124
|
this.tax_id = business.tax_id;
|
|
82
125
|
this.updated_at = business.updated_at;
|
|
83
126
|
this.website_url = business.website_url;
|
|
84
127
|
}
|
|
85
128
|
}
|
|
86
129
|
|
|
87
|
-
export { AdditionalQuestions as A, Business as B, CoreBusinessInfo as C, Address as a };
|
|
130
|
+
export { AdditionalQuestions as A, Business as B, CoreBusinessInfo as C, Owner as O, Representative as R, Address as a };
|
|
@@ -6,7 +6,7 @@ import './Pagination.js';
|
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Payout.js';
|
|
8
8
|
import { c as config } from './config.js';
|
|
9
|
-
import { a as
|
|
9
|
+
import { a as additionalQuestionsSchema } from './business-additional-questions-schema.js';
|
|
10
10
|
import { B as BusinessFormServerErrors } from './business-form-types.js';
|
|
11
11
|
import { d as defineCustomElement$1 } from './form-control-monetary2.js';
|
|
12
12
|
|
|
@@ -50,6 +50,7 @@ const AdditionalQuestionsFormStep = /*@__PURE__*/ proxyCustomElement(class Addit
|
|
|
50
50
|
};
|
|
51
51
|
this.authToken = undefined;
|
|
52
52
|
this.businessId = undefined;
|
|
53
|
+
this.allowOptionalFields = undefined;
|
|
53
54
|
this.formController = undefined;
|
|
54
55
|
this.errors = {};
|
|
55
56
|
this.additional_questions = {};
|
|
@@ -77,7 +78,7 @@ const AdditionalQuestionsFormStep = /*@__PURE__*/ proxyCustomElement(class Addit
|
|
|
77
78
|
console.error(missingAuthTokenMessage);
|
|
78
79
|
if (!this.businessId)
|
|
79
80
|
console.error(missingBusinessIdMessage);
|
|
80
|
-
this.formController = new FormController(
|
|
81
|
+
this.formController = new FormController(additionalQuestionsSchema(this.allowOptionalFields));
|
|
81
82
|
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
82
83
|
this.fetchData();
|
|
83
84
|
}
|
|
@@ -93,6 +94,7 @@ const AdditionalQuestionsFormStep = /*@__PURE__*/ proxyCustomElement(class Addit
|
|
|
93
94
|
}, [0, "justifi-additional-questions-form-step", {
|
|
94
95
|
"authToken": [1, "auth-token"],
|
|
95
96
|
"businessId": [1, "business-id"],
|
|
97
|
+
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
96
98
|
"formController": [32],
|
|
97
99
|
"errors": [32],
|
|
98
100
|
"additional_questions": [32],
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { c as create$3, a as create$6 } from './index.esm.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
4
|
+
const schema = create$3({
|
|
5
|
+
business_revenue: create$6().required('Enter business revenue'),
|
|
6
|
+
business_payment_volume: create$6().required('Enter business payment volume'),
|
|
7
|
+
business_dispute_volume: create$6().required('Enter business dispute volume'),
|
|
8
|
+
business_receivable_volume: create$6().required('Enter business receivable volume'),
|
|
9
|
+
});
|
|
10
|
+
const easySchema = create$3({
|
|
11
|
+
business_revenue: create$6().nullable(),
|
|
12
|
+
business_payment_volume: create$6().nullable(),
|
|
13
|
+
business_dispute_volume: create$6().nullable(),
|
|
14
|
+
business_receivable_volume: create$6().nullable()
|
|
15
|
+
});
|
|
16
|
+
return allowOptionalFields ? easySchema : schema;
|
|
17
|
+
};
|
|
9
18
|
|
|
10
|
-
export {
|
|
19
|
+
export { additionalQuestionsSchema as a };
|
|
@@ -1,19 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as create$6, c as create$3 } from './index.esm.js';
|
|
2
2
|
import { S as StateOptions } from './state-options.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
country: create$6().required('Select country'),
|
|
4
|
+
const lineOneValidation = create$6()
|
|
5
|
+
.min(5, 'Address must be at least 5 characters')
|
|
6
|
+
.max(100, 'Address must be less than 100 characters')
|
|
7
|
+
.matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Invalid characters in address')
|
|
8
|
+
.transform((value) => {
|
|
9
|
+
return value === '' ? null : value;
|
|
11
10
|
});
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
const lineTwoValidation = create$6()
|
|
12
|
+
.max(100, 'Address must be less than 100 characters')
|
|
13
|
+
.matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Invalid characters in address')
|
|
14
|
+
.transform((value) => {
|
|
15
|
+
return value === '' ? null : value;
|
|
17
16
|
});
|
|
17
|
+
const cityValidation = create$6()
|
|
18
|
+
.min(2, 'City must be at least 2 characters')
|
|
19
|
+
.max(50, 'City must be less than 50 characters')
|
|
20
|
+
.matches(/^(?!^\s+$)[a-zA-Z\s]*$/, 'Invalid characters in city')
|
|
21
|
+
.transform((value) => {
|
|
22
|
+
return value === '' ? null : value;
|
|
23
|
+
});
|
|
24
|
+
const stateValidation = create$6()
|
|
25
|
+
.oneOf(StateOptions.map((option) => option.value), 'Select state')
|
|
26
|
+
.transform((value) => {
|
|
27
|
+
return value === '' ? null : value;
|
|
28
|
+
});
|
|
29
|
+
const postalValidation = create$6()
|
|
30
|
+
.matches(/^[0-9]{5}$/, 'Enter valid postal code')
|
|
31
|
+
.transform((value) => {
|
|
32
|
+
return value === '' ? null : value;
|
|
33
|
+
});
|
|
34
|
+
const addressSchema = (allowOptionalFields) => {
|
|
35
|
+
const schema = create$3({
|
|
36
|
+
line1: lineOneValidation.required('Enter street address'),
|
|
37
|
+
line2: lineTwoValidation.nullable(),
|
|
38
|
+
city: cityValidation.required('Enter city'),
|
|
39
|
+
state: stateValidation.required('Select state'),
|
|
40
|
+
postal_code: postalValidation.required('Enter postal code'),
|
|
41
|
+
country: create$6().required('Select country')
|
|
42
|
+
});
|
|
43
|
+
const easySchema = create$3({
|
|
44
|
+
line1: lineOneValidation.nullable(),
|
|
45
|
+
line2: lineTwoValidation.nullable(),
|
|
46
|
+
city: cityValidation.nullable(),
|
|
47
|
+
state: stateValidation.nullable(),
|
|
48
|
+
postal_code: postalValidation.nullable(),
|
|
49
|
+
country: create$6().required('Select country')
|
|
50
|
+
});
|
|
51
|
+
return allowOptionalFields ? easySchema : schema;
|
|
52
|
+
};
|
|
18
53
|
|
|
19
|
-
export {
|
|
54
|
+
export { addressSchema as a };
|
|
@@ -58,6 +58,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
58
58
|
};
|
|
59
59
|
this.authToken = undefined;
|
|
60
60
|
this.businessId = undefined;
|
|
61
|
+
this.allowOptionalFields = undefined;
|
|
61
62
|
this.formController = undefined;
|
|
62
63
|
this.errors = {};
|
|
63
64
|
this.coreInfo = {};
|
|
@@ -85,7 +86,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
85
86
|
console.error(missingAuthTokenMessage);
|
|
86
87
|
if (!this.businessId)
|
|
87
88
|
console.error(missingBusinessIdMessage);
|
|
88
|
-
this.formController = new FormController(businessCoreInfoSchema);
|
|
89
|
+
this.formController = new FormController(businessCoreInfoSchema(this.allowOptionalFields));
|
|
89
90
|
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
90
91
|
this.fetchData();
|
|
91
92
|
}
|
|
@@ -103,6 +104,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
103
104
|
}, [0, "justifi-business-core-info-form-step", {
|
|
104
105
|
"authToken": [1, "auth-token"],
|
|
105
106
|
"businessId": [1, "business-id"],
|
|
107
|
+
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
106
108
|
"formController": [32],
|
|
107
109
|
"errors": [32],
|
|
108
110
|
"coreInfo": [32],
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
import { c as create$3, a as create$6 } from './index.esm.js';
|
|
2
|
+
import { u as urlRegex, p as phoneRegex } from './helpers.js';
|
|
2
3
|
|
|
3
|
-
const businessCoreInfoSchema =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
5
|
+
const schema = create$3({
|
|
6
|
+
legal_name: create$6().required('Enter legal name'),
|
|
7
|
+
website_url: create$6().matches(urlRegex, 'Enter valid website url').required('Enter website url'),
|
|
8
|
+
email: create$6().email('Enter valid email').required('Enter email'),
|
|
9
|
+
phone: create$6().matches(phoneRegex, 'Enter valid phone number').required('Enter phone number'),
|
|
10
|
+
doing_business_as: create$6().required('Enter doing business as'),
|
|
11
|
+
business_type: create$6().required('Select business type'),
|
|
12
|
+
business_structure: create$6().required('Select business structure'),
|
|
13
|
+
industry: create$6().required('Enter a business industry'),
|
|
14
|
+
});
|
|
15
|
+
const easySchema = create$3({
|
|
16
|
+
legal_name: create$6().required('Enter legal name'),
|
|
17
|
+
website_url: create$6().matches(urlRegex, 'Enter valid website url').nullable(),
|
|
18
|
+
email: create$6().email('Enter valid email').nullable(),
|
|
19
|
+
phone: create$6().matches(phoneRegex, 'Enter valid phone number').nullable(),
|
|
20
|
+
doing_business_as: create$6().nullable(),
|
|
21
|
+
business_type: create$6().nullable(),
|
|
22
|
+
business_structure: create$6().nullable(),
|
|
23
|
+
industry: create$6().nullable(),
|
|
24
|
+
});
|
|
25
|
+
return allowOptionalFields ? easySchema : schema;
|
|
26
|
+
};
|
|
15
27
|
|
|
16
28
|
export { businessCoreInfoSchema as b };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { L as LoadingState, E as ErrorState } from './utils.js';
|
|
3
3
|
import { d as defineCustomElement$5 } from './additional-questions-details2.js';
|
|
4
4
|
import { d as defineCustomElement$4 } from './generic-info-details2.js';
|
|
@@ -18,6 +18,7 @@ const BusinessDetailsCore = /*@__PURE__*/ proxyCustomElement(class BusinessDetai
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
20
20
|
this.__registerHost();
|
|
21
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
21
22
|
this.getBusiness = undefined;
|
|
22
23
|
this.business = undefined;
|
|
23
24
|
this.renderState = RENDER_STATES.LOADING;
|
|
@@ -35,10 +36,14 @@ const BusinessDetailsCore = /*@__PURE__*/ proxyCustomElement(class BusinessDetai
|
|
|
35
36
|
this.business = business;
|
|
36
37
|
this.renderState = RENDER_STATES.READY;
|
|
37
38
|
},
|
|
38
|
-
onError: ({ error }) => {
|
|
39
|
-
console.error(error);
|
|
39
|
+
onError: ({ error, code, severity }) => {
|
|
40
40
|
this.errorMessage = error;
|
|
41
41
|
this.renderState = RENDER_STATES.ERROR;
|
|
42
|
+
this.errorEvent.emit({
|
|
43
|
+
errorCode: code,
|
|
44
|
+
message: error,
|
|
45
|
+
severity,
|
|
46
|
+
});
|
|
42
47
|
}
|
|
43
48
|
});
|
|
44
49
|
}
|
|
@@ -15,5 +15,12 @@ var OwnerFormServerErrors;
|
|
|
15
15
|
OwnerFormServerErrors["patchData"] = "Error updating owner data";
|
|
16
16
|
OwnerFormServerErrors["postData"] = "Error adding owner data";
|
|
17
17
|
})(OwnerFormServerErrors || (OwnerFormServerErrors = {}));
|
|
18
|
+
var OwnerFormClickActions;
|
|
19
|
+
(function (OwnerFormClickActions) {
|
|
20
|
+
OwnerFormClickActions["removeOwner"] = "removeOwner";
|
|
21
|
+
OwnerFormClickActions["addOwner"] = "addOwner";
|
|
22
|
+
OwnerFormClickActions["addOwnerForm"] = "addOwnerForm";
|
|
23
|
+
OwnerFormClickActions["updateOwner"] = "updateOwner";
|
|
24
|
+
})(OwnerFormClickActions || (OwnerFormClickActions = {}));
|
|
18
25
|
|
|
19
|
-
export { BusinessFormServerErrors as B,
|
|
26
|
+
export { BusinessFormServerErrors as B, OwnerFormClickActions as O, BusinessFormClickActions as a, OwnerFormServerErrors as b };
|
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
import { c as create$3, a as create$6 } from './index.esm.js';
|
|
2
|
-
import {
|
|
2
|
+
import { a as addressSchema } from './business-address-schema.js';
|
|
3
|
+
import { p as phoneRegex } from './helpers.js';
|
|
3
4
|
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.required(
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
dob_day: create$6().required('Enter owner birth day'),
|
|
32
|
-
dob_month: create$6().required('Enter owner birth month'),
|
|
33
|
-
dob_year: create$6().required('Enter owner birth year'),
|
|
34
|
-
identification_number: create$6(),
|
|
35
|
-
address: identityAddressSchema,
|
|
36
|
-
});
|
|
5
|
+
const identitySchema = (title, allowOptionalFields) => {
|
|
6
|
+
const schema = create$3({
|
|
7
|
+
name: create$6().required(`Enter ${title} name`),
|
|
8
|
+
email: create$6()
|
|
9
|
+
.email(`Enter valid ${title} email`)
|
|
10
|
+
.required(`Enter ${title} email`),
|
|
11
|
+
phone: create$6().matches(phoneRegex, 'Enter valid phone number').required('Enter phone number'),
|
|
12
|
+
dob_day: create$6().required(`Enter ${title} birth day`),
|
|
13
|
+
dob_month: create$6().required(`Enter ${title} birth month`),
|
|
14
|
+
dob_year: create$6().required(`Enter ${title} birth year`),
|
|
15
|
+
identification_number: create$6(),
|
|
16
|
+
address: addressSchema(allowOptionalFields),
|
|
17
|
+
});
|
|
18
|
+
const easySchema = create$3({
|
|
19
|
+
name: create$6().required(`Enter ${title} name`),
|
|
20
|
+
email: create$6()
|
|
21
|
+
.email(`Enter valid ${title} email`)
|
|
22
|
+
.nullable(),
|
|
23
|
+
phone: create$6().matches(phoneRegex, 'Enter valid phone number').nullable(),
|
|
24
|
+
dob_day: create$6().nullable(),
|
|
25
|
+
dob_month: create$6().nullable(),
|
|
26
|
+
dob_year: create$6().nullable(),
|
|
27
|
+
identification_number: create$6().nullable(),
|
|
28
|
+
address: addressSchema(allowOptionalFields),
|
|
29
|
+
});
|
|
30
|
+
return allowOptionalFields ? easySchema : schema;
|
|
31
|
+
};
|
|
37
32
|
|
|
38
|
-
export {
|
|
33
|
+
export { identitySchema as i };
|