@justifi/webcomponents 4.8.3 → 4.10.0-rc.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-42d0c522.js → Business-79361c8a.js} +7 -7
- package/dist/cjs/Identity-b6364aee.js +27 -0
- package/dist/cjs/{Payout-44b49b2d.js → Payment-89a8bc21.js} +0 -43
- package/dist/cjs/Payout-a2dd7b01.js +45 -0
- package/dist/cjs/{SubAccount-2a803b22.js → SubAccount-b3902202.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +24 -10
- package/dist/cjs/business-additional-questions-schema-cbac27f2.js +26 -0
- package/dist/cjs/business-details-core.cjs.entry.js +55 -0
- package/dist/cjs/business-form-select-options-7ccd8dca.js +85 -0
- package/dist/cjs/business-form-types-3cdd5447.js +19 -0
- package/dist/cjs/form-control-datepart_3.cjs.entry.js +32 -46
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +44 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +11036 -0
- package/dist/cjs/{index-55950669.js → index-69b9386b.js} +57 -3
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +505 -0
- package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_4.cjs.entry.js} +12 -42
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/{select-input_2.cjs.entry.js → justifi-billing-form_4.cjs.entry.js} +1810 -1
- package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +35 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +43 -57
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +36 -89
- package/dist/cjs/justifi-business-form.cjs.entry.js +18 -16
- package/dist/cjs/justifi-business-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +95 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +99 -0
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +39 -11008
- package/dist/cjs/justifi-new-payment-method_3.cjs.entry.js +168 -0
- package/dist/cjs/justifi-owner-form.cjs.entry.js +160 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -4
- package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → justifi-payment-method-selector.cjs.entry.js} +4 -79
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payload-parsers-25ed3936.js +98 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -4
- package/dist/cjs/{payment.service-605896dc.js → payment.service-0b0086dc.js} +2 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{payout.service-b39f2739.js → payout.service-5cc3b4e9.js} +2 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -3
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -7
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -3
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -3
- package/dist/cjs/{utils-d126d17c.js → utils-23e70ef2.js} +5 -5
- package/dist/cjs/{utils-29a8a91d.js → utils-6f62f7a1.js} +29 -2
- package/dist/cjs/utils-df5167a8.js +13 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +6 -7
- package/dist/collection/api/Checkout.js +1 -0
- package/dist/collection/api/Identity.js +43 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/business.service.js +8 -0
- package/dist/collection/api/services/checkout.service.js +12 -0
- package/dist/collection/api/services/reports.service.js +9 -0
- package/dist/collection/collection-manifest.json +22 -8
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +1 -2
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +5 -2
- package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +16 -0
- package/dist/collection/components/business-details/business-details-core.js +86 -0
- package/dist/collection/components/business-details/business-details.js +20 -65
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +4 -2
- package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +16 -0
- package/dist/collection/components/business-details/get-business.js +17 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +5 -2
- package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +16 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js +12 -14
- package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +16 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js +7 -5
- package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +16 -0
- package/dist/collection/components/business-details/test/busines-details-core.spec.js +53 -0
- package/dist/collection/components/business-details/test/business-details.spec.js +40 -0
- package/dist/collection/components/business-details/test/get-business.spec.js +60 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-address/business-address-form.css +2536 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-address/business-address-form.js +4 -4
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.css +2493 -0
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +77 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-form.js +32 -24
- package/dist/collection/components/business-forms/business-form/business-owners/business-owners.css +7779 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-owners/business-owners.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.css +2493 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-representative/business-representative.js +3 -3
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.css +2493 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/business-form-stepped/additional-questions/business-additional-questions-form-step.js +218 -0
- package/dist/collection/components/business-forms/business-form-stepped/additional-questions/test/business-additional-questions-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-address/business-address-form-step.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-address/test/business-address-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-core-info/business-core-info-form-step.js +239 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-core-info/test/business-core-info-form-step.spec.js +97 -0
- package/dist/collection/components/{business-form → business-forms/business-form-stepped}/business-form-stepped.css +105 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-form-stepped.js +199 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-owners/business-owners-form-step.js +284 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-owners/test/business-owners-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-representative/business-representative-form-step.js +230 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-representative/test/business-representative-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/legal-address-form/legal-address-form-step.js +232 -0
- package/dist/collection/components/business-forms/business-form-stepped/test/business-form-stepped.spec.js +61 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.css +7779 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +367 -0
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +7 -0
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +15 -0
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +13 -0
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +6 -0
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +35 -0
- package/dist/collection/components/business-forms/schemas/business-owners-schema.js +16 -0
- package/dist/collection/components/business-forms/utils/business-form-select-options.js +80 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +17 -0
- package/dist/collection/components/business-forms/utils/payload-parsers.js +37 -0
- package/dist/collection/components/checkout/checkout-actions.js +33 -0
- package/dist/collection/components/checkout/checkout-core.css +2604 -0
- package/dist/collection/components/checkout/checkout-core.js +248 -0
- package/dist/collection/components/checkout/checkout.js +112 -0
- package/dist/collection/components/checkout/new-payment-method.js +188 -0
- package/dist/collection/components/checkout/payment-method-option-utils.js +19 -0
- package/dist/collection/components/checkout/payment-method-options.css +7073 -0
- package/dist/collection/components/checkout/payment-method-options.js +248 -0
- package/dist/collection/components/checkout/saved-payment-method.js +123 -0
- package/dist/collection/components/checkout/test/checkout.js +22 -0
- package/dist/collection/components/checkout/test/checkout.spec.js +166 -0
- package/dist/collection/components/checkout/test/mockCheckout.js +19 -0
- package/dist/collection/components/details/utils.js +4 -1
- package/dist/collection/components/form/utils.js +1 -0
- package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +14 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +119 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +25 -73
- package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +69 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +64 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +23 -8
- package/dist/collection/components/payment-details/payment-details-core.js +8 -2
- package/dist/collection/components/payment-details/payment-details.js +0 -1
- package/dist/collection/components/payment-form/payment-form.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +2 -2
- package/dist/collection/utils/utils.js +25 -3
- package/dist/docs.json +2945 -590
- package/dist/esm/{Business-e9340f6b.js → Business-1df362e0.js} +7 -8
- package/dist/esm/Identity-774788c0.js +25 -0
- package/dist/esm/{Payout-dc5f009c.js → Payment-55886c86.js} +1 -43
- package/dist/esm/Payout-dfe15b00.js +43 -0
- package/dist/esm/{SubAccount-46b4c2b1.js → SubAccount-f4ae9809.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +24 -10
- package/dist/esm/business-additional-questions-schema-2cb80f70.js +23 -0
- package/dist/esm/business-details-core.entry.js +51 -0
- package/dist/esm/business-form-select-options-6b9293fe.js +82 -0
- package/dist/esm/business-form-types-de9f38cd.js +19 -0
- package/dist/esm/form-control-datepart_3.entry.js +32 -46
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{form-control-select_2.entry.js → form-control-number_3.entry.js} +44 -2
- package/dist/esm/gross-payment-chart-core.entry.js +11032 -0
- package/dist/esm/{index-62b8aa8a.js → index-df86d9a2.js} +57 -3
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +497 -0
- package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_4.entry.js} +12 -41
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/{select-input_2.entry.js → justifi-billing-form_4.entry.js} +1809 -2
- package/dist/esm/justifi-business-address-form-step.entry.js +31 -0
- package/dist/esm/justifi-business-details.entry.js +42 -56
- package/dist/esm/justifi-business-form-stepped.entry.js +36 -89
- package/dist/esm/justifi-business-form.entry.js +17 -15
- package/dist/esm/justifi-business-list.entry.js +5 -4
- package/dist/esm/justifi-business-owners.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +91 -0
- package/dist/esm/justifi-checkout.entry.js +95 -0
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +39 -11008
- package/dist/esm/justifi-new-payment-method_3.entry.js +162 -0
- package/dist/esm/justifi-owner-form.entry.js +156 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -3
- package/dist/esm/justifi-payment-details.entry.js +5 -4
- package/dist/esm/justifi-payment-form.entry.js +4 -3
- package/dist/esm/{justifi-billing-form_2.entry.js → justifi-payment-method-selector.entry.js} +4 -78
- package/dist/esm/justifi-payments-list.entry.js +5 -4
- package/dist/esm/justifi-payout-details.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -4
- package/dist/esm/justifi-proceeds-list.entry.js +4 -3
- package/dist/esm/justifi-refund-form.entry.js +3 -2
- package/dist/esm/justifi-subaccount-details.entry.js +6 -5
- package/dist/esm/justifi-subaccounts-list.entry.js +5 -4
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payload-parsers-1dd7474f.js +90 -0
- package/dist/esm/payment-details-core.entry.js +10 -4
- package/dist/esm/{payment.service-bea02ccf.js → payment.service-f274ef98.js} +2 -1
- package/dist/esm/payments-list-core.entry.js +4 -3
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/{payout.service-92e56814.js → payout.service-af293f61.js} +2 -1
- package/dist/esm/payouts-list-core.entry.js +4 -3
- package/dist/esm/subaccount-account-details_4.entry.js +7 -7
- package/dist/esm/subaccount-bank-details.entry.js +3 -3
- package/dist/esm/subaccount-terms-details.entry.js +3 -3
- package/dist/esm/{utils-76a93600.js → utils-243abdb4.js} +26 -3
- package/dist/esm/utils-2828201a.js +10 -0
- package/dist/esm/{utils-576874df.js → utils-d01c5f3a.js} +5 -5
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +7 -8
- package/dist/module/Payment.js +138 -0
- package/dist/module/Payout.js +1 -138
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions-details2.js +5 -2
- package/dist/module/billing-form.js +2 -3
- package/dist/module/business-additional-questions-form-step.js +120 -0
- package/dist/module/business-additional-questions-schema.js +10 -0
- package/dist/module/business-address-form.js +3 -3
- package/dist/module/business-address-schema.js +18 -0
- package/dist/module/business-core-info-form-step.js +141 -0
- package/dist/module/business-core-info-schema.js +16 -0
- package/dist/module/business-core-info.js +69 -0
- package/dist/module/business-details-core.d.ts +11 -0
- package/dist/module/business-details-core.js +6 -0
- package/dist/module/business-details-core2.js +101 -0
- package/dist/module/business-form-select-options.js +82 -0
- package/dist/module/business-form-types.js +19 -0
- package/dist/module/business-identity-schema.js +38 -0
- package/dist/module/business-owners-form-step.js +213 -0
- package/dist/module/business-representative-form-step.js +157 -0
- package/dist/module/business-representative.js +1 -1
- package/dist/module/checkout-core.js +163 -0
- package/dist/module/generic-info-details2.js +4 -2
- package/dist/module/gross-payment-chart-core.d.ts +11 -0
- package/dist/module/gross-payment-chart-core.js +6 -0
- package/dist/module/gross-payment-chart-core2.js +11055 -0
- package/dist/module/justifi-additional-questions-form-step.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step.js +6 -0
- package/dist/module/justifi-business-address-form-step.d.ts +11 -0
- package/dist/module/justifi-business-address-form-step.js +75 -0
- package/dist/module/justifi-business-core-info-form-step.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step.js +6 -0
- package/dist/module/justifi-business-core-info.d.ts +11 -0
- package/dist/module/justifi-business-core-info.js +6 -0
- package/dist/module/justifi-business-details.js +51 -60
- package/dist/module/justifi-business-form-stepped.js +72 -112
- package/dist/module/justifi-business-form.js +20 -14
- package/dist/module/justifi-business-list.js +2 -1
- package/dist/module/justifi-business-owners-form-step.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step.js +6 -0
- package/dist/module/justifi-business-representative-form-step.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step.js +6 -0
- package/dist/module/justifi-checkout-core.d.ts +11 -0
- package/dist/module/justifi-checkout-core.js +6 -0
- package/dist/module/justifi-checkout.d.ts +11 -0
- package/dist/module/justifi-checkout.js +172 -0
- package/dist/module/justifi-gross-payment-chart.js +49 -11016
- package/dist/module/justifi-legal-address-form-step.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step.js +6 -0
- package/dist/module/justifi-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-new-payment-method.js +6 -0
- package/dist/module/justifi-owner-form.d.ts +11 -0
- package/dist/module/justifi-owner-form.js +6 -0
- package/dist/module/justifi-payment-balance-transactions.js +3 -2
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-form.js +2 -1
- package/dist/module/justifi-payment-method-options.d.ts +11 -0
- package/dist/module/justifi-payment-method-options.js +6 -0
- package/dist/module/justifi-payments-list.js +2 -1
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list.js +2 -1
- package/dist/module/justifi-proceeds-list.js +2 -1
- package/dist/module/justifi-refund-form.js +1 -0
- package/dist/module/justifi-saved-payment-method.d.ts +11 -0
- package/dist/module/justifi-saved-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +2 -1
- package/dist/module/justifi-subaccounts-list.js +2 -1
- package/dist/module/legal-address-details2.js +5 -2
- package/dist/module/legal-address-form-step.js +136 -0
- package/dist/module/new-payment-method.js +105 -0
- package/dist/module/owner-details2.js +10 -4
- package/dist/module/owner-form.js +244 -0
- package/dist/module/payload-parsers.js +39 -0
- package/dist/module/payment-details-core2.js +9 -3
- package/dist/module/payment-method-form.js +4 -10
- package/dist/module/payment-method-options.js +128 -0
- package/dist/module/payment-method-selector.js +2 -1
- package/dist/module/payment.service.js +1 -0
- package/dist/module/payments-list-core2.js +2 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +1 -0
- package/dist/module/payouts-list-core2.js +3 -2
- package/dist/module/representative-details2.js +5 -3
- package/dist/module/saved-payment-method.js +66 -0
- package/dist/module/subaccount-account-details2.js +2 -2
- package/dist/module/subaccount-bank-details.js +2 -2
- package/dist/module/subaccount-merchant-details2.js +3 -3
- package/dist/module/subaccount-owners-details2.js +2 -2
- package/dist/module/subaccount-representative-details2.js +2 -2
- package/dist/module/subaccount-terms-details.js +2 -2
- package/dist/module/utils.js +4 -4
- package/dist/module/utils2.js +26 -3
- package/dist/module/utils4.js +10 -0
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Business.d.ts +1 -18
- package/dist/types/api/Checkout.d.ts +14 -0
- package/dist/types/api/Identity.d.ts +60 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/business.service.d.ts +8 -0
- package/dist/types/api/services/checkout.service.d.ts +9 -0
- package/dist/types/api/services/reports.service.d.ts +5 -0
- package/dist/types/components/billing-form/billing-form-schema.d.ts +0 -1
- package/dist/types/components/billing-form/billing-form.d.ts +0 -1
- package/dist/types/components/business-details/business-details-core.d.ts +16 -0
- package/dist/types/components/business-details/business-details.d.ts +3 -13
- package/dist/types/components/business-details/get-business.d.ts +8 -0
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -9
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/business-address/business-address-form.d.ts +1 -1
- package/dist/types/components/{business-form/business-generic-info/business-generic-info.d.ts → business-forms/business-form/business-core-info/business-core-info.d.ts} +5 -5
- package/dist/types/components/{business-form → business-forms/business-form}/business-form.d.ts +5 -10
- package/dist/types/components/{business-form → business-forms/business-form}/business-owners/business-owners.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/business-representative/business-representative.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.d.ts +2 -2
- package/dist/types/components/business-forms/business-form-stepped/additional-questions/business-additional-questions-form-step.d.ts +30 -0
- package/dist/types/components/business-forms/business-form-stepped/business-address/business-address-form-step.d.ts +9 -0
- package/dist/types/components/business-forms/business-form-stepped/business-core-info/business-core-info-form-step.d.ts +36 -0
- package/dist/types/components/business-forms/business-form-stepped/business-form-stepped.d.ts +45 -0
- package/dist/types/components/business-forms/business-form-stepped/business-owners/business-owners-form-step.d.ts +36 -0
- package/dist/types/components/business-forms/business-form-stepped/business-representative/business-representative-form-step.d.ts +26 -0
- package/dist/types/components/business-forms/business-form-stepped/legal-address-form/legal-address-form-step.d.ts +31 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +36 -0
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +11 -0
- package/dist/types/components/{business-form/business-address/business-address-form-schema.d.ts → business-forms/schemas/business-address-schema.d.ts} +11 -8
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +19 -0
- package/dist/types/components/{business-form → business-forms/schemas}/business-form-schema.d.ts +2 -26
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +59 -0
- package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +33 -0
- package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +11 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +39 -0
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-actions.d.ts +17 -0
- package/dist/types/components/checkout/checkout-core.d.ts +28 -0
- package/dist/types/components/checkout/checkout.d.ts +12 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +17 -0
- package/dist/types/components/checkout/payment-method-option-utils.d.ts +16 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +18 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +11 -0
- package/dist/types/components/checkout/test/checkout.d.ts +1 -0
- package/dist/types/components/checkout/test/mockCheckout.d.ts +19 -0
- package/dist/types/components/details/utils.d.ts +1 -1
- package/dist/types/components/form/form.d.ts +1 -1
- package/dist/types/components/form/utils.d.ts +1 -0
- package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +11 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +18 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -14
- package/dist/types/components/payment-details/payment-details.d.ts +0 -1
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +3 -9
- package/dist/types/components.d.ts +626 -91
- package/dist/types/utils/utils.d.ts +3 -0
- package/dist/webcomponents/p-0399f02b.entry.js +1 -0
- package/dist/webcomponents/{p-6478f3ca.js → p-04a98c63.js} +1 -1
- package/dist/webcomponents/p-06888c2e.entry.js +1 -0
- package/dist/webcomponents/{p-234bc840.entry.js → p-07b326d0.entry.js} +1 -1
- package/dist/webcomponents/p-0811bc77.entry.js +1 -0
- package/dist/webcomponents/p-0923e39c.js +1 -0
- package/dist/webcomponents/p-17d72f4a.js +1 -0
- package/dist/webcomponents/p-17f64853.entry.js +1 -0
- package/dist/webcomponents/p-1bfadb9f.entry.js +1 -0
- package/dist/webcomponents/p-22085999.entry.js +1 -0
- package/dist/webcomponents/p-252835df.entry.js +1 -0
- package/dist/webcomponents/{p-22c1acd6.js → p-28b38699.js} +1 -1
- package/dist/webcomponents/p-34352d04.js +1 -0
- package/dist/webcomponents/p-374c44e6.entry.js +1 -0
- package/dist/webcomponents/{p-0a0cf2e6.entry.js → p-4697ccfa.entry.js} +1 -1
- package/dist/webcomponents/p-4781cd06.js +1 -0
- package/dist/webcomponents/{p-4c01df65.entry.js → p-4d50d08a.entry.js} +1 -1
- package/dist/webcomponents/p-4d806131.entry.js +1 -0
- package/dist/webcomponents/{p-7a1a06c0.entry.js → p-4df6174c.entry.js} +1 -1
- package/dist/webcomponents/p-4e0b3206.entry.js +1 -0
- package/dist/webcomponents/{p-4ee44c76.entry.js → p-583dd5a2.entry.js} +1 -1
- package/dist/webcomponents/p-5be4e217.entry.js +1 -0
- package/dist/webcomponents/p-5da4fbe7.entry.js +1 -0
- package/dist/webcomponents/{p-40349ffc.entry.js → p-6103c20d.entry.js} +1 -1
- package/dist/webcomponents/p-63296409.js +1 -0
- package/dist/webcomponents/{p-5c0310ee.js → p-65510838.js} +1 -1
- package/dist/webcomponents/p-688bb5da.js +2 -0
- package/dist/webcomponents/p-6b51cf97.entry.js +1 -0
- package/dist/webcomponents/p-7654c70d.entry.js +1 -0
- package/dist/webcomponents/p-7b2cddc7.js +1 -0
- package/dist/webcomponents/p-847441ce.entry.js +1 -0
- package/dist/webcomponents/p-861ba3fc.entry.js +1 -0
- package/dist/webcomponents/p-9207ccb2.entry.js +1 -0
- package/dist/webcomponents/p-975ab96e.js +1 -0
- package/dist/webcomponents/p-9ce8d98c.entry.js +1 -0
- package/dist/webcomponents/p-9e4b81ad.entry.js +1 -0
- package/dist/webcomponents/p-a141c531.js +1 -0
- package/dist/webcomponents/p-a2dbe90f.entry.js +1 -0
- package/dist/webcomponents/{p-4fa27a28.entry.js → p-a46174e0.entry.js} +1 -1
- package/dist/webcomponents/p-a98eea84.entry.js +1 -0
- package/dist/webcomponents/p-b1bc23af.entry.js +1 -0
- package/dist/webcomponents/p-b27c9b0d.entry.js +1 -0
- package/dist/webcomponents/{p-7c0f91fa.entry.js → p-b68f1dd9.entry.js} +1 -1
- package/dist/webcomponents/p-b8f22856.js +1 -0
- package/dist/webcomponents/p-c8d62072.entry.js +1 -0
- package/dist/webcomponents/{p-08833966.entry.js → p-da34bba7.entry.js} +1 -1
- package/dist/webcomponents/p-e3748ea4.entry.js +1 -0
- package/dist/webcomponents/p-e3fab0e2.js +1 -0
- package/dist/webcomponents/p-e924f2e1.entry.js +1 -0
- package/dist/webcomponents/p-ebf7c70f.entry.js +1 -0
- package/dist/webcomponents/p-eef5ed19.entry.js +1 -0
- package/dist/webcomponents/p-efc7025c.entry.js +1 -0
- package/dist/webcomponents/p-f3453ca2.js +1 -0
- package/dist/webcomponents/p-f3ca6fda.entry.js +1 -0
- package/dist/webcomponents/p-fb49ef28.entry.js +1 -0
- package/dist/webcomponents/p-fe2af0cf.entry.js +19 -0
- package/dist/webcomponents/p-fe8a94c1.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -2
- package/dist/cjs/BusinessFormEventTypes-863f48e9.js +0 -42
- package/dist/cjs/business-form-schema-37e5381d.js +0 -148
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1747
- package/dist/collection/components/business-form/BusinessFormEventTypes.js +0 -6
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js +0 -13
- package/dist/collection/components/business-form/business-form-schema.js +0 -159
- package/dist/collection/components/business-form/business-form-stepped.js +0 -260
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +0 -77
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +0 -1
- package/dist/collection/components/business-form/helpers.js +0 -23
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +0 -10
- package/dist/esm/BusinessFormEventTypes-989960ba.js +0 -39
- package/dist/esm/business-form-schema-f8f554d1.js +0 -144
- package/dist/esm/justifi-payment-method-form.entry.js +0 -1743
- package/dist/module/BusinessFormEventTypes.js +0 -39
- package/dist/module/business-generic-info.js +0 -210
- package/dist/module/justifi-business-generic-info.d.ts +0 -11
- package/dist/module/justifi-business-generic-info.js +0 -6
- package/dist/types/components/business-form/BusinessFormEventTypes.d.ts +0 -5
- package/dist/types/components/business-form/business-form-stepped.d.ts +0 -48
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +0 -17
- package/dist/types/components/business-form/helpers.d.ts +0 -1
- package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +0 -17
- package/dist/webcomponents/p-081cf5f6.entry.js +0 -1
- package/dist/webcomponents/p-0bc8b02e.entry.js +0 -1
- package/dist/webcomponents/p-112acd3c.entry.js +0 -1
- package/dist/webcomponents/p-1555e6b1.js +0 -1
- package/dist/webcomponents/p-16f41fd0.entry.js +0 -1
- package/dist/webcomponents/p-17715325.js +0 -1
- package/dist/webcomponents/p-3a4d4869.entry.js +0 -1
- package/dist/webcomponents/p-3cb0b96d.js +0 -1
- package/dist/webcomponents/p-4ba2c711.entry.js +0 -1
- package/dist/webcomponents/p-4f14df36.js +0 -2
- package/dist/webcomponents/p-5422a24b.entry.js +0 -1
- package/dist/webcomponents/p-578e0a05.entry.js +0 -1
- package/dist/webcomponents/p-640d90dc.entry.js +0 -1
- package/dist/webcomponents/p-663bfe87.js +0 -1
- package/dist/webcomponents/p-696396c7.entry.js +0 -1
- package/dist/webcomponents/p-6ab67031.entry.js +0 -1
- package/dist/webcomponents/p-6d0725ef.entry.js +0 -1
- package/dist/webcomponents/p-810b72b5.js +0 -1
- package/dist/webcomponents/p-8516d602.entry.js +0 -1
- package/dist/webcomponents/p-894a7475.entry.js +0 -19
- package/dist/webcomponents/p-94ebfafb.entry.js +0 -1
- package/dist/webcomponents/p-9cb3ff78.entry.js +0 -1
- package/dist/webcomponents/p-9e81808f.entry.js +0 -1
- package/dist/webcomponents/p-a432110c.entry.js +0 -1
- package/dist/webcomponents/p-b1881723.entry.js +0 -1
- package/dist/webcomponents/p-b5aba473.entry.js +0 -1
- package/dist/webcomponents/p-b8a8b551.js +0 -1
- package/dist/webcomponents/p-bd099662.entry.js +0 -1
- package/dist/webcomponents/p-bfd917b8.entry.js +0 -1
- package/dist/webcomponents/p-c90fa055.entry.js +0 -1
- package/dist/webcomponents/p-ebb91944.entry.js +0 -1
- package/dist/webcomponents/p-ec4f27e7.entry.js +0 -1
- package/dist/webcomponents/p-fa495a43.entry.js +0 -1
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.e2e.js +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.spec.js +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-form.css +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/test/business-form.spec.js +0 -0
- /package/dist/collection/components/{business-form/business-address/business-address-form.css → business-forms/business-form-stepped/business-address/business-address-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/business-generic-info/business-generic-info.css → business-forms/business-form-stepped/business-core-info/business-core-info-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/business-owners/business-owners.css → business-forms/business-form-stepped/business-owners/business-owners-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/business-representative/business-representative.css → business-forms/business-form-stepped/business-representative/business-representative-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/legal-address-form/legal-address-form.css → business-forms/business-form-stepped/legal-address-form/legal-address-form-step.css} +0 -0
|
@@ -3841,6 +3841,7 @@ var Dinero = function Dinero(options) {
|
|
|
3841
3841
|
|
|
3842
3842
|
var dinero = Object.assign(Dinero, Defaults, Globals, Static);
|
|
3843
3843
|
|
|
3844
|
+
const RegExZip = /^\d{5}/;
|
|
3844
3845
|
function formatCurrency(amount, withSymbol = true) {
|
|
3845
3846
|
if (!amount)
|
|
3846
3847
|
amount = 0;
|
|
@@ -3889,7 +3890,9 @@ function formatMediumDate(input) {
|
|
|
3889
3890
|
}
|
|
3890
3891
|
function formatDisplayDate(value, endDate) {
|
|
3891
3892
|
const isEndingDate = value === endDate;
|
|
3892
|
-
return
|
|
3893
|
+
return isEndingDate
|
|
3894
|
+
? 'Today'
|
|
3895
|
+
: format(new Date(value.replace(/-/g, '/')), 'MMM d');
|
|
3893
3896
|
}
|
|
3894
3897
|
function formatTime(dateString) {
|
|
3895
3898
|
if (!dateString)
|
|
@@ -3974,11 +3977,28 @@ const MapSubAccountStatusToBadge = (status) => {
|
|
|
3974
3977
|
* console.log(readable); // Outputs: "Sole Proprietorship"
|
|
3975
3978
|
*/
|
|
3976
3979
|
function snakeCaseToHumanReadable(snakeCaseStr) {
|
|
3980
|
+
if (!snakeCaseStr)
|
|
3981
|
+
return '';
|
|
3977
3982
|
return snakeCaseStr
|
|
3978
3983
|
.split('_')
|
|
3979
|
-
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
|
3984
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
3980
3985
|
.join(' ');
|
|
3981
3986
|
}
|
|
3987
|
+
function flattenNestedObject(obj) {
|
|
3988
|
+
const result = {};
|
|
3989
|
+
for (const key in obj) {
|
|
3990
|
+
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
3991
|
+
const nestedObj = flattenNestedObject(obj[key]);
|
|
3992
|
+
for (const nestedKey in nestedObj) {
|
|
3993
|
+
result[nestedKey] = nestedObj[nestedKey];
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
else {
|
|
3997
|
+
result[key] = obj[key];
|
|
3998
|
+
}
|
|
3999
|
+
}
|
|
4000
|
+
return result;
|
|
4001
|
+
}
|
|
3982
4002
|
function composeQueryParams(values) {
|
|
3983
4003
|
const queryParams = values.map((value) => {
|
|
3984
4004
|
if (value === values[0]) {
|
|
@@ -4010,11 +4030,17 @@ async function loadFontsOnParent() {
|
|
|
4010
4030
|
fonts.href = fontHref;
|
|
4011
4031
|
parent.append(fonts);
|
|
4012
4032
|
}
|
|
4033
|
+
function isEmptyObject(obj) {
|
|
4034
|
+
return Object.keys(obj).length === 0 && obj.constructor === Object;
|
|
4035
|
+
}
|
|
4013
4036
|
|
|
4014
4037
|
exports.MapPaymentStatusToBadge = MapPaymentStatusToBadge;
|
|
4015
4038
|
exports.MapPayoutStatusToBadge = MapPayoutStatusToBadge;
|
|
4016
4039
|
exports.MapSubAccountStatusToBadge = MapSubAccountStatusToBadge;
|
|
4040
|
+
exports.RegExZip = RegExZip;
|
|
4017
4041
|
exports.composeQueryParams = composeQueryParams;
|
|
4042
|
+
exports.extractComputedFontsToLoad = extractComputedFontsToLoad;
|
|
4043
|
+
exports.flattenNestedObject = flattenNestedObject;
|
|
4018
4044
|
exports.formatCurrency = formatCurrency;
|
|
4019
4045
|
exports.formatDate = formatDate;
|
|
4020
4046
|
exports.formatDisplayDate = formatDisplayDate;
|
|
@@ -4022,5 +4048,6 @@ exports.formatLegalAddress = formatLegalAddress;
|
|
|
4022
4048
|
exports.formatMediumDate = formatMediumDate;
|
|
4023
4049
|
exports.formatPercentage = formatPercentage;
|
|
4024
4050
|
exports.formatTime = formatTime;
|
|
4051
|
+
exports.isEmptyObject = isEmptyObject;
|
|
4025
4052
|
exports.loadFontsOnParent = loadFontsOnParent;
|
|
4026
4053
|
exports.snakeCaseToHumanReadable = snakeCaseToHumanReadable;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-69b9386b.js');
|
|
4
|
+
|
|
5
|
+
const FormAlert = (message) => (index.h("div", { class: 'alert alert-danger d-flex align-items-center', role: 'alert' },
|
|
6
|
+
index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" },
|
|
7
|
+
index.h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })),
|
|
8
|
+
index.h("div", null, message)));
|
|
9
|
+
const LoadingSpinner = () => (index.h("div", { class: "spinner-border spinner-border-sm", role: "status" },
|
|
10
|
+
index.h("span", { class: "visually-hidden" }, "Loading...")));
|
|
11
|
+
|
|
12
|
+
exports.FormAlert = FormAlert;
|
|
13
|
+
exports.LoadingSpinner = LoadingSpinner;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-69b9386b.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy([["justifi-business-form.cjs",[[0,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"hideErrors":[4,"hide-errors"],"isLoading":[32],"serverError":[32],"errorMessage":[32]}]]],["justifi-business-form-stepped.cjs",[[0,"justifi-business-form-stepped",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"testMode":[4,"test-mode"],"hideErrors":[4,"hide-errors"],"isLoading":[32],"currentStep":[32],"totalSteps":[32],"serverError":[32],"errorMessage":[32]}]]],["justifi-business-details.cjs",[[1,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["justifi-payment-form.cjs",[[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.cjs",[[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.cjs",[[0,"justifi-business-owners",{"formController":[16],"errors":[32],"owners":[32]}]]],["justifi-payments-list.cjs",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-payouts-list.cjs",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayouts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-business-list.cjs",[[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.cjs",[[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.cjs",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-payout-details.cjs",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-proceeds-list.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"data":[32],"total":[32],"dates":[32],"endDate":[32],"loading":[32],"errorMessage":[32]},null,{"accountId":["updateOnPropChange"],"authToken":["updateOnPropChange"]}]]],["subaccount-bank-details.cjs",[[1,"subaccount-bank-details",{"data":[16]}]]],["subaccount-terms-details.cjs",[[1,"subaccount-terms-details",{"data":[16]}]]],["payments-list-core.cjs",[[0,"payments-list-core",{"getPayments":[16],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayments":["updateOnPropChange"]}]]],["payouts-list-core.cjs",[[0,"payouts-list-core",{"getPayouts":[16],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayouts":["updateOnPropChange"]}]]],["payment-details-core.cjs",[[0,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["payout-details-core.cjs",[[0,"payout-details-core",{"getPayout":[16],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["justifi-billing-form_2.cjs",[[1,"justifi-billing-form",{"legend":[1025],"billingFields":[32],"billingFieldsErrors":[32],"fill":[64],"validate":[64],"getValues":[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["justifi-payment-method-form.cjs",[[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]}]]],["subaccount-account-details_4.cjs",[[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]}]]],["select-input_2.cjs",[[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]}]]],["form-control-monetary.cjs",[[1,"form-control-monetary",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["additional-questions-details_5.cjs",[[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-details.cjs",[[1,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["form-control-select_2.cjs",[[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"]}]]],["form-control-datepart_3.cjs",[[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"]}],[1,"form-control-number",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4],"input":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["justifi-additional-questions_5.cjs",[[0,"justifi-business-representative",{"formController":[16],"errors":[32],"representative":[32]}],[0,"justifi-business-generic-info",{"formController":[16],"errors":[32],"genericInfo":[32]}],[0,"justifi-legal-address-form",{"formController":[16],"errors":[32],"legal_address":[32]}],[0,"justifi-additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}],[1,"justifi-business-address-form",{"onFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}]]],["justifi-table_2.cjs",[[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]}]]]], options);
|
|
20
|
+
return index.bootstrapLazy(JSON.parse("[[\"justifi-business-form-stepped.cjs\",[[0,\"justifi-business-form-stepped\",{\"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.cjs\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout.cjs\",[[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.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[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.cjs\",[[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.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-business-address-form-step.cjs\",[[1,\"justifi-business-address-form-step\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core.cjs\",[[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.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"gross-payment-chart-core.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-number_3.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5.cjs\",[[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.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"justifi-new-payment-method_3.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -50,27 +50,26 @@ export class CoreBusinessInfo {
|
|
|
50
50
|
}
|
|
51
51
|
export class Business {
|
|
52
52
|
constructor(business) {
|
|
53
|
+
this.additional_questions = business.additional_questions || {};
|
|
54
|
+
this.bank_accounts = business.bank_accounts;
|
|
53
55
|
this.business_structure = business.business_structure;
|
|
54
56
|
this.business_type = business.business_type;
|
|
55
|
-
this.bank_accounts = business.bank_accounts;
|
|
56
57
|
this.created_at = business.created_at;
|
|
57
58
|
this.documents = business.documents;
|
|
58
59
|
this.doing_business_as = business.doing_business_as;
|
|
59
60
|
this.email = business.email;
|
|
60
61
|
this.id = business.id;
|
|
61
62
|
this.industry = business.industry;
|
|
63
|
+
this.legal_address = Object.assign({}, new Address(business.legal_address || {}));
|
|
62
64
|
this.legal_name = business.legal_name;
|
|
63
65
|
this.metadata = business.metadata;
|
|
66
|
+
this.owners = business.owners;
|
|
64
67
|
this.phone = business.phone;
|
|
65
68
|
this.platform_account_id = business.platform_account_id;
|
|
69
|
+
this.product_categories = business.product_categories;
|
|
70
|
+
this.representative = business.representative || {};
|
|
66
71
|
this.tax_id = business.tax_id;
|
|
67
72
|
this.updated_at = business.updated_at;
|
|
68
73
|
this.website_url = business.website_url;
|
|
69
|
-
this.product_categories = business.product_categories;
|
|
70
|
-
// Form sections
|
|
71
|
-
this.legal_address = Object.assign({}, new Address(business.legal_address || {}));
|
|
72
|
-
this.representative = business.representative || {};
|
|
73
|
-
this.additional_questions = business.additional_questions || {};
|
|
74
|
-
this.owners = business.owners;
|
|
75
74
|
}
|
|
76
75
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Address } from "./Business";
|
|
2
|
+
export class Owner {
|
|
3
|
+
constructor(owner) {
|
|
4
|
+
this.address = Object.assign({}, new Address(owner.address || {}));
|
|
5
|
+
this.created_at = owner.created_at;
|
|
6
|
+
this.dob_day = owner.dob_day;
|
|
7
|
+
this.dob_month = owner.dob_month;
|
|
8
|
+
this.dob_year = owner.dob_year;
|
|
9
|
+
this.documents = owner.documents;
|
|
10
|
+
this.email = owner.email;
|
|
11
|
+
this.id = owner.id;
|
|
12
|
+
this.business_id = owner.business_id;
|
|
13
|
+
this.is_owner = owner.is_owner;
|
|
14
|
+
this.metadata = owner.metadata;
|
|
15
|
+
this.name = owner.name;
|
|
16
|
+
this.phone = owner.phone;
|
|
17
|
+
this.platform_account_id = owner.platform_account_id;
|
|
18
|
+
this.ssn_last4 = owner.ssn_last4;
|
|
19
|
+
this.title = owner.title;
|
|
20
|
+
this.updated_at = owner.updated_at;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export class Representative {
|
|
24
|
+
constructor(representative) {
|
|
25
|
+
this.address = Object.assign({}, new Address(representative.address || {}));
|
|
26
|
+
this.created_at = representative.created_at;
|
|
27
|
+
this.dob_day = representative.dob_day;
|
|
28
|
+
this.dob_month = representative.dob_month;
|
|
29
|
+
this.dob_year = representative.dob_year;
|
|
30
|
+
this.documents = representative.documents;
|
|
31
|
+
this.email = representative.email;
|
|
32
|
+
this.id = representative.id;
|
|
33
|
+
this.business_id = representative.business_id;
|
|
34
|
+
this.is_owner = representative.is_owner;
|
|
35
|
+
this.metadata = representative.metadata;
|
|
36
|
+
this.name = representative.name;
|
|
37
|
+
this.phone = representative.phone;
|
|
38
|
+
this.platform_account_id = representative.platform_account_id;
|
|
39
|
+
this.ssn_last4 = representative.ssn_last4;
|
|
40
|
+
this.title = representative.title;
|
|
41
|
+
this.updated_at = representative.updated_at;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { config } from "../../../config";
|
|
2
|
+
import Api from "../Api";
|
|
3
|
+
export class BusinessService {
|
|
4
|
+
async fetchBusiness(businessId, authToken) {
|
|
5
|
+
const endpoint = `entities/business/${businessId}`;
|
|
6
|
+
return Api(authToken, config.proxyApiOrigin).get(endpoint);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Api } from "..";
|
|
2
|
+
import { config } from "../../../config";
|
|
3
|
+
export class CheckoutService {
|
|
4
|
+
async fetchCheckout(authToken, checkoutId) {
|
|
5
|
+
const endpoint = `checkouts/${checkoutId}`;
|
|
6
|
+
return Api(authToken, config.proxyApiOrigin).get(endpoint);
|
|
7
|
+
}
|
|
8
|
+
async pay(authToken, checkoutId, paymentMethodToken) {
|
|
9
|
+
const endpoint = `checkouts/${checkoutId}/pay`;
|
|
10
|
+
return Api(authToken, config.proxyApiOrigin).post(endpoint, JSON.stringify({ token: paymentMethodToken }));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { config } from "../../../config";
|
|
2
|
+
import Api from "../Api";
|
|
3
|
+
export class ReportsService {
|
|
4
|
+
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
5
|
+
const api = Api(authToken, config.proxyApiOrigin);
|
|
6
|
+
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
7
|
+
return api.get(endpoint);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -5,22 +5,35 @@
|
|
|
5
5
|
"components/bank-account-form/bank-account-form.js",
|
|
6
6
|
"components/payment-method-form/payment-method-form.js",
|
|
7
7
|
"components/billing-form/billing-form.js",
|
|
8
|
+
"components/business-details/business-details-core.js",
|
|
8
9
|
"components/business-details/business-details.js",
|
|
9
10
|
"components/business-details/additional-questions-details/additional-questions-details.js",
|
|
10
11
|
"components/business-details/generic-info-details/generic-info-details.js",
|
|
11
12
|
"components/business-details/legal-address-details/legal-address-details.js",
|
|
12
13
|
"components/business-details/owner-details/owner-details.js",
|
|
13
14
|
"components/business-details/representative-details/representative-details.js",
|
|
14
|
-
"components/business-form/business-form
|
|
15
|
-
"components/business-
|
|
16
|
-
"components/business-form/
|
|
17
|
-
"components/business-form/business-
|
|
18
|
-
"components/business-form/business-
|
|
19
|
-
"components/business-form/business-
|
|
20
|
-
"components/business-
|
|
21
|
-
"components/business-
|
|
15
|
+
"components/business-forms/business-form/business-form.js",
|
|
16
|
+
"components/business-forms/business-form/additional-questions/additional-questions.js",
|
|
17
|
+
"components/business-forms/business-form/business-address/business-address-form.js",
|
|
18
|
+
"components/business-forms/business-form/business-core-info/business-core-info.js",
|
|
19
|
+
"components/business-forms/business-form/business-owners/business-owners.js",
|
|
20
|
+
"components/business-forms/business-form/business-representative/business-representative.js",
|
|
21
|
+
"components/business-forms/business-form/legal-address-form/legal-address-form.js",
|
|
22
|
+
"components/business-forms/business-form-stepped/business-form-stepped.js",
|
|
23
|
+
"components/business-forms/business-form-stepped/additional-questions/business-additional-questions-form-step.js",
|
|
24
|
+
"components/business-forms/business-form-stepped/business-address/business-address-form-step.js",
|
|
25
|
+
"components/business-forms/business-form-stepped/business-core-info/business-core-info-form-step.js",
|
|
26
|
+
"components/business-forms/business-form-stepped/business-owners/business-owners-form-step.js",
|
|
27
|
+
"components/business-forms/business-form-stepped/business-representative/business-representative-form-step.js",
|
|
28
|
+
"components/business-forms/business-form-stepped/legal-address-form/legal-address-form-step.js",
|
|
29
|
+
"components/business-forms/owner-form/owner-form.js",
|
|
22
30
|
"components/business-list/business-list.js",
|
|
23
31
|
"components/card-form/card-form.js",
|
|
32
|
+
"components/checkout/checkout-core.js",
|
|
33
|
+
"components/checkout/checkout.js",
|
|
34
|
+
"components/checkout/new-payment-method.js",
|
|
35
|
+
"components/checkout/payment-method-options.js",
|
|
36
|
+
"components/checkout/saved-payment-method.js",
|
|
24
37
|
"components/details/details.js",
|
|
25
38
|
"components/form/form-control-datepart.js",
|
|
26
39
|
"components/form/form-control-monetary.js",
|
|
@@ -28,6 +41,7 @@
|
|
|
28
41
|
"components/form/form-control-number.js",
|
|
29
42
|
"components/form/form-control-select.js",
|
|
30
43
|
"components/form/form-control-text.js",
|
|
44
|
+
"components/gross-payment-chart/gross-payment-chart-core.js",
|
|
31
45
|
"components/gross-payment-chart/gross-payment-chart.js",
|
|
32
46
|
"components/payment-balance-transactions/payment-balance-transactions.js",
|
|
33
47
|
"components/payment-details/payment-details-core.js",
|
|
@@ -8,7 +8,6 @@ import StateOptions from "./state-options";
|
|
|
8
8
|
*/
|
|
9
9
|
export class BillingForm {
|
|
10
10
|
constructor() {
|
|
11
|
-
this.legendBlock = (h("legend", null, this.legend));
|
|
12
11
|
this.legend = undefined;
|
|
13
12
|
this.billingFields = {
|
|
14
13
|
name: '',
|
|
@@ -61,7 +60,7 @@ export class BillingForm {
|
|
|
61
60
|
return this.billingFields;
|
|
62
61
|
}
|
|
63
62
|
render() {
|
|
64
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, this.legend && this.
|
|
63
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, this.legend && h("legend", null, this.legend), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("text-input", { name: "name", label: "Full Name", defaultValue: this.billingFields.name, error: this.billingFieldsErrors.name })), h("div", { class: "col-12" }, h("text-input", { name: "address_line1", label: "Street Address", defaultValue: this.billingFields.address_line1, error: this.billingFieldsErrors.address_line1 })), h("div", { class: "col-12" }, h("text-input", { name: "address_line2", label: "Apartment, Suite, etc. (optional)", defaultValue: this.billingFields.address_line2, error: this.billingFieldsErrors.address_line2 })), h("div", { class: "col-12" }, h("text-input", { name: "address_city", label: "City", defaultValue: this.billingFields.address_city, error: this.billingFieldsErrors.address_city })), h("div", { class: "col-12" }, h("select-input", { name: "address_state", label: "State", options: StateOptions, defaultValue: this.billingFields.address_state, error: this.billingFieldsErrors.address_state })), h("div", { class: "col-12" }, h("text-input", { name: "address_postal_code", label: "ZIP", defaultValue: this.billingFields.address_postal_code, error: this.billingFieldsErrors.address_postal_code }))))));
|
|
65
64
|
}
|
|
66
65
|
static get is() { return "justifi-billing-form"; }
|
|
67
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { DetailSectionTitle, DetailItem } from "../../details/utils";
|
|
3
|
+
import { isEmptyObject } from "../../../utils/utils";
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
5
6
|
* @exportedPart detail-section
|
|
@@ -14,7 +15,9 @@ export class AdditionalQuestionsDetails {
|
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
16
17
|
var _a, _b, _c, _d;
|
|
17
|
-
|
|
18
|
+
if (isEmptyObject(this.additionalQuestions))
|
|
19
|
+
return null;
|
|
20
|
+
return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Dispute Volume", value: (_c = this.additionalQuestions.business_dispute_volume) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { title: "Business Receivable Volume", value: (_d = this.additionalQuestions.business_receivable_volume) === null || _d === void 0 ? void 0 : _d.toString() }))))));
|
|
18
21
|
}
|
|
19
22
|
static get is() { return "additional-questions-details"; }
|
|
20
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
3
|
+
import { AdditionalQuestionsDetails } from "../additional-questions-details";
|
|
4
|
+
import { Business } from "../../../../api/Business";
|
|
5
|
+
import mockedBusinessDetails from "../../../../api/mockData/mockBusinessDetails.json";
|
|
6
|
+
describe('additional-questions-details', () => {
|
|
7
|
+
it('should render additional-questions-details', async () => {
|
|
8
|
+
const businessDetails = new Business(mockedBusinessDetails.data);
|
|
9
|
+
const page = await newSpecPage({
|
|
10
|
+
components: [AdditionalQuestionsDetails],
|
|
11
|
+
template: () => h("additional-questions-details", { additionalQuestions: businessDetails.additional_questions })
|
|
12
|
+
});
|
|
13
|
+
await page.waitForChanges();
|
|
14
|
+
expect(page.root).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { ErrorState, LoadingState } from "../details/utils";
|
|
3
|
+
var RENDER_STATES;
|
|
4
|
+
(function (RENDER_STATES) {
|
|
5
|
+
RENDER_STATES["LOADING"] = "loading";
|
|
6
|
+
RENDER_STATES["READY"] = "ready";
|
|
7
|
+
RENDER_STATES["ERROR"] = "error";
|
|
8
|
+
})(RENDER_STATES || (RENDER_STATES = {}));
|
|
9
|
+
export class BusinessDetailsCore {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.getBusiness = undefined;
|
|
12
|
+
this.business = undefined;
|
|
13
|
+
this.renderState = RENDER_STATES.LOADING;
|
|
14
|
+
this.errorMessage = 'An error ocurred.';
|
|
15
|
+
}
|
|
16
|
+
async componentWillLoad() {
|
|
17
|
+
if (this.getBusiness) {
|
|
18
|
+
this.fetchData();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
fetchData() {
|
|
22
|
+
this.renderState = RENDER_STATES.LOADING;
|
|
23
|
+
this.getBusiness({
|
|
24
|
+
onSuccess: ({ business }) => {
|
|
25
|
+
this.business = business;
|
|
26
|
+
this.renderState = RENDER_STATES.READY;
|
|
27
|
+
},
|
|
28
|
+
onError: ({ error }) => {
|
|
29
|
+
console.error(error);
|
|
30
|
+
this.errorMessage = error;
|
|
31
|
+
this.renderState = RENDER_STATES.ERROR;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
if (this.renderState === RENDER_STATES.LOADING) {
|
|
37
|
+
return h(Host, null, LoadingState());
|
|
38
|
+
}
|
|
39
|
+
if (this.renderState === RENDER_STATES.ERROR) {
|
|
40
|
+
return h(Host, null, ErrorState(this.errorMessage));
|
|
41
|
+
}
|
|
42
|
+
return (h(Host, null, h("generic-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })));
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "business-details-core"; }
|
|
45
|
+
static get originalStyleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["business-details.scss"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get styleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["business-details.css"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get properties() {
|
|
56
|
+
return {
|
|
57
|
+
"getBusiness": {
|
|
58
|
+
"type": "unknown",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "Function",
|
|
62
|
+
"resolved": "Function",
|
|
63
|
+
"references": {
|
|
64
|
+
"Function": {
|
|
65
|
+
"location": "global",
|
|
66
|
+
"id": "global::Function"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": false,
|
|
71
|
+
"optional": false,
|
|
72
|
+
"docs": {
|
|
73
|
+
"tags": [],
|
|
74
|
+
"text": ""
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static get states() {
|
|
80
|
+
return {
|
|
81
|
+
"business": {},
|
|
82
|
+
"renderState": {},
|
|
83
|
+
"errorMessage": {}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { config } from "../../../config";
|
|
6
|
-
var RENDER_STATES;
|
|
7
|
-
(function (RENDER_STATES) {
|
|
8
|
-
RENDER_STATES["LOADING"] = "loading";
|
|
9
|
-
RENDER_STATES["READY"] = "ready";
|
|
10
|
-
RENDER_STATES["ERROR"] = "error";
|
|
11
|
-
})(RENDER_STATES || (RENDER_STATES = {}));
|
|
2
|
+
import { ErrorState } from "../details/utils";
|
|
3
|
+
import { BusinessService } from "../../api/services/business.service";
|
|
4
|
+
import { makeGetBusiness } from "./get-business";
|
|
12
5
|
/**
|
|
13
6
|
*
|
|
14
7
|
* @exportedPart detail-section
|
|
@@ -21,68 +14,31 @@ export class BusinessDetails {
|
|
|
21
14
|
constructor() {
|
|
22
15
|
this.businessId = undefined;
|
|
23
16
|
this.authToken = undefined;
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.errorMessage = 'An error ocurred.';
|
|
27
|
-
this.fetchBusiness = this.fetchBusiness.bind(this);
|
|
17
|
+
this.errorMessage = undefined;
|
|
18
|
+
this.getBusiness = undefined;
|
|
28
19
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.errorMessage = 'Missing auth-token. The form will not be functional without it.';
|
|
32
|
-
console.error(this.errorMessage);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
if (!this.businessId) {
|
|
36
|
-
this.errorMessage = 'Missing business-id. The form will not be functional without it.';
|
|
37
|
-
console.error(this.errorMessage);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
41
|
-
await this.fetchBusiness(this.businessId);
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.initializeGetBusiness();
|
|
42
22
|
}
|
|
43
|
-
|
|
44
|
-
this.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (response.error) {
|
|
48
|
-
this.errorMessage = `${this.errorMessage}: ${response.error}`;
|
|
49
|
-
console.error(this.errorMessage);
|
|
50
|
-
this.renderState = RENDER_STATES.ERROR;
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.business = new Business(response.data);
|
|
54
|
-
this.renderState = RENDER_STATES.READY;
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
this.errorMessage = `${this.errorMessage}: ${error}`;
|
|
58
|
-
console.error(this.errorMessage);
|
|
59
|
-
this.renderState = RENDER_STATES.ERROR;
|
|
60
|
-
}
|
|
61
|
-
finally {
|
|
62
|
-
this.renderState = RENDER_STATES.READY;
|
|
23
|
+
initializeGetBusiness() {
|
|
24
|
+
if (!this.businessId || !this.authToken) {
|
|
25
|
+
this.errorMessage = 'Invalid business id or auth token';
|
|
26
|
+
return;
|
|
63
27
|
}
|
|
28
|
+
this.getBusiness = makeGetBusiness({
|
|
29
|
+
id: this.businessId,
|
|
30
|
+
authToken: this.authToken,
|
|
31
|
+
service: new BusinessService(),
|
|
32
|
+
});
|
|
64
33
|
}
|
|
65
34
|
render() {
|
|
66
|
-
if (this.
|
|
67
|
-
return h(Host, null, LoadingState);
|
|
68
|
-
}
|
|
69
|
-
if (this.renderState === RENDER_STATES.ERROR) {
|
|
35
|
+
if (this.errorMessage) {
|
|
70
36
|
return h(Host, null, ErrorState(this.errorMessage));
|
|
71
37
|
}
|
|
72
|
-
return (h(Host, null, h("
|
|
38
|
+
return (h(Host, null, h("business-details-core", { getBusiness: this.getBusiness })));
|
|
73
39
|
}
|
|
74
40
|
static get is() { return "justifi-business-details"; }
|
|
75
41
|
static get encapsulation() { return "shadow"; }
|
|
76
|
-
static get originalStyleUrls() {
|
|
77
|
-
return {
|
|
78
|
-
"$": ["business-details.scss"]
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
static get styleUrls() {
|
|
82
|
-
return {
|
|
83
|
-
"$": ["business-details.css"]
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
42
|
static get properties() {
|
|
87
43
|
return {
|
|
88
44
|
"businessId": {
|
|
@@ -123,9 +79,8 @@ export class BusinessDetails {
|
|
|
123
79
|
}
|
|
124
80
|
static get states() {
|
|
125
81
|
return {
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"errorMessage": {}
|
|
82
|
+
"errorMessage": {},
|
|
83
|
+
"getBusiness": {}
|
|
129
84
|
};
|
|
130
85
|
}
|
|
131
86
|
}
|