@justifi/webcomponents 4.11.0 → 4.12.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-7ae04d4f.js → Business-f8e37adb.js} +34 -27
- package/dist/cjs/{Payment-89a8bc21.js → Payment-eceed10f.js} +1 -0
- package/dist/cjs/{SubAccount-05867651.js → SubAccount-b3902202.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +5 -6
- package/dist/cjs/business-additional-questions-schema-bdfd29c3.js +78 -0
- package/dist/cjs/business-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{business-form-types-29b2bad9.js → business-form-types-61b8196a.js} +26 -0
- package/dist/cjs/{form-control-datepart_4.cjs.entry.js → form-control-date_4.cjs.entry.js} +18 -51
- package/dist/cjs/form-control-datepart.cjs.entry.js +80 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js +1 -1
- package/dist/cjs/{form-input-masks-e3bf2614.js → form-input-masks-baa06faf.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -4
- package/dist/cjs/{index-69b9386b.js → index-5d5f2219.js} +3 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +20 -12
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +17 -16
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +20 -12
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -6
- package/dist/cjs/justifi-business-owners.cjs.entry.js +2 -2
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +34 -24
- package/dist/cjs/justifi-checkout.cjs.entry.js +14 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-new-payment-method_3.cjs.entry.js → justifi-new-payment-method_4.cjs.entry.js} +95 -11
- package/dist/cjs/justifi-owner-form.cjs.entry.js +30 -16
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +5 -6
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -5
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{payload-parsers-f437272e.js → payload-parsers-32c43c76.js} +36 -24
- package/dist/cjs/payment-details-core.cjs.entry.js +3 -4
- package/dist/cjs/{payment.service-0b0086dc.js → payment.service-9db24ab9.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +3 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -4
- package/dist/cjs/{payout.service-5cc3b4e9.js → payout.service-a0efb71a.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -4
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +5 -6
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
- package/dist/cjs/{utils-23e70ef2.js → utils-6e35fa70.js} +1 -1
- package/dist/cjs/{utils-2b9940e1.js → utils-6f62f7a1.js} +0 -7
- package/dist/cjs/{utils-87435719.js → utils-fc72268d.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +2 -20
- package/dist/collection/api/Checkout.js +6 -1
- package/dist/collection/api/Identity.js +7 -4
- package/dist/collection/api/Payment.js +1 -0
- package/dist/collection/api/services/checkout.service.js +7 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-form.js +48 -3
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +12 -9
- package/dist/collection/components/business-forms/owner-form/owner-form.js +24 -8
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +11 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +42 -1
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +9 -18
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +48 -17
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +18 -7
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +8 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +23 -0
- package/dist/collection/components/business-forms/utils/helpers.js +22 -2
- package/dist/collection/components/business-forms/utils/payload-parsers.js +1 -0
- package/dist/collection/components/business-list/business-list.js +0 -2
- package/dist/collection/components/checkout/checkout-actions.js +2 -2
- package/dist/collection/components/checkout/checkout-core.css +361 -0
- package/dist/collection/components/checkout/checkout-core.js +32 -27
- package/dist/collection/components/checkout/checkout.js +5 -5
- package/dist/collection/components/checkout/new-payment-method.js +12 -6
- package/dist/collection/components/checkout/payment-method-options.css +18 -2
- package/dist/collection/components/checkout/payment-method-options.js +62 -5
- package/dist/collection/components/checkout/payment-method-payload.js +1 -0
- package/dist/collection/components/checkout/saved-payment-method.js +11 -6
- package/dist/collection/components/checkout/sezzel-payment-method.js +247 -0
- package/dist/collection/components/form/form-control-date.css +1803 -0
- package/dist/collection/components/form/form-control-date.js +192 -0
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/select-input/select-input.js +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +4 -4
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +3 -3
- package/dist/collection/components/text-input/test/text-input.spec.js +4 -4
- package/dist/collection/components/text-input/text-input.js +1 -1
- package/dist/collection/utils/form-input-masks.js +1 -1
- package/dist/collection/utils/utils.js +0 -5
- package/dist/docs.json +670 -93
- package/dist/esm/{Business-91caaccb.js → Business-2410f7e3.js} +31 -25
- package/dist/esm/{Payment-55886c86.js → Payment-ef9fc1ae.js} +1 -0
- package/dist/esm/{SubAccount-61ac70eb.js → SubAccount-f4ae9809.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +5 -6
- package/dist/esm/business-additional-questions-schema-5571d40f.js +75 -0
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-0d76133c.js → business-form-types-46ecd908.js} +25 -1
- package/dist/esm/{form-control-datepart_4.entry.js → form-control-date_4.entry.js} +18 -51
- package/dist/esm/form-control-datepart.entry.js +76 -0
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +1 -1
- package/dist/esm/{form-input-masks-a8187c77.js → form-input-masks-850c8cd4.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +3 -4
- package/dist/esm/{index-df86d9a2.js → index-83dcf934.js} +3 -0
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +20 -12
- package/dist/esm/justifi-additional-questions_4.entry.js +17 -16
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_4.entry.js +5 -5
- package/dist/esm/justifi-business-details.entry.js +3 -4
- package/dist/esm/justifi-business-form.entry.js +20 -12
- package/dist/esm/justifi-business-list.entry.js +4 -6
- package/dist/esm/justifi-business-owners.entry.js +2 -2
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +34 -24
- package/dist/esm/justifi-checkout.entry.js +14 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/{justifi-new-payment-method_3.entry.js → justifi-new-payment-method_4.entry.js} +95 -12
- package/dist/esm/justifi-owner-form.entry.js +30 -16
- package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-form.entry.js +3 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -4
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +4 -4
- package/dist/esm/justifi-proceeds-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-subaccount-details.entry.js +5 -6
- package/dist/esm/justifi-subaccounts-list.entry.js +4 -5
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{payload-parsers-920f49dd.js → payload-parsers-192e0c3e.js} +33 -25
- package/dist/esm/payment-details-core.entry.js +3 -4
- package/dist/esm/{payment.service-f274ef98.js → payment.service-ec28a959.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +3 -4
- package/dist/esm/payout-details-core.entry.js +3 -4
- package/dist/esm/{payout.service-af293f61.js → payout.service-5fd5986c.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +3 -4
- package/dist/esm/subaccount-account-details_4.entry.js +5 -6
- package/dist/esm/subaccount-bank-details.entry.js +2 -2
- package/dist/esm/subaccount-terms-details.entry.js +2 -2
- package/dist/esm/{utils-d01c5f3a.js → utils-210fdf39.js} +1 -1
- package/dist/esm/{utils-d9e90399.js → utils-243abdb4.js} +1 -7
- package/dist/esm/{utils-684d2e47.js → utils-6f05d9d7.js} +1 -1
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +9 -25
- package/dist/module/Payment.js +1 -0
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/business-address-schema.js +9 -18
- package/dist/module/business-core-info-form-step.js +2 -3
- package/dist/module/business-core-info-schema.js +49 -18
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-form-types.js +25 -1
- package/dist/module/business-identity-schema.js +18 -7
- package/dist/module/business-owners-form-step.js +3 -3
- package/dist/module/business-representative-form-step.js +15 -5
- package/dist/module/business-representative.js +15 -12
- package/dist/module/checkout-core.js +50 -33
- package/dist/module/form-control-date.d.ts +11 -0
- package/dist/module/form-control-date.js +6 -0
- package/dist/module/form-control-date2.js +68 -0
- package/dist/module/form-input-masks.js +1 -1
- package/dist/module/generic-info-details2.js +2 -2
- package/dist/module/helpers.js +24 -3
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +21 -10
- package/dist/module/justifi-business-list.js +1 -3
- package/dist/module/justifi-checkout.js +31 -21
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +12 -5
- package/dist/module/justifi-sezzel-payment-method.d.ts +11 -0
- package/dist/module/justifi-sezzel-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +1 -1
- package/dist/module/justifi-subaccounts-list.js +1 -1
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/new-payment-method.js +5 -4
- package/dist/module/owner-form.js +29 -13
- package/dist/module/payload-parsers.js +11 -1
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-options.js +34 -12
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/saved-payment-method.js +4 -4
- package/dist/module/select-input2.js +1 -1
- package/dist/module/sezzel-payment-method.js +99 -0
- package/dist/module/subaccount-merchant-details2.js +3 -3
- package/dist/module/text-input2.js +1 -1
- package/dist/module/utils2.js +1 -7
- package/dist/types/api/Business.d.ts +0 -19
- package/dist/types/api/Checkout.d.ts +63 -2
- package/dist/types/api/Identity.d.ts +2 -0
- package/dist/types/api/Payment.d.ts +2 -1
- package/dist/types/api/SubAccount.d.ts +0 -2
- package/dist/types/api/services/checkout.service.d.ts +8 -2
- package/dist/types/components/business-forms/business-form/business-form.d.ts +5 -0
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +3 -3
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +4 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +3 -0
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +4 -8
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +2 -6
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +6 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +5 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +8 -2
- package/dist/types/components/checkout/checkout-actions.d.ts +3 -3
- package/dist/types/components/checkout/checkout-core.d.ts +5 -4
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +5 -1
- package/dist/types/components/checkout/payment-method-payload.d.ts +8 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/sezzel-payment-method.d.ts +23 -0
- package/dist/types/components/form/form-control-date.d.ts +18 -0
- package/dist/types/components.d.ts +112 -9
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/webcomponents/p-02fa533c.js +1 -0
- package/dist/webcomponents/p-0315876e.entry.js +1 -0
- package/dist/webcomponents/{p-28cd23c8.entry.js → p-0c269feb.entry.js} +1 -1
- package/dist/webcomponents/{p-0b76c770.entry.js → p-0eb56b44.entry.js} +1 -1
- package/dist/webcomponents/{p-436d27b9.entry.js → p-0eb77101.entry.js} +1 -1
- package/dist/webcomponents/p-1334f776.entry.js +1 -0
- package/dist/webcomponents/p-19001cc5.entry.js +1 -0
- package/dist/webcomponents/p-2319abaf.entry.js +1 -0
- package/dist/webcomponents/p-26fe62d6.entry.js +1 -0
- package/dist/webcomponents/p-28b38699.js +1 -0
- package/dist/webcomponents/{p-4df6174c.entry.js → p-29376518.entry.js} +1 -1
- package/dist/webcomponents/p-2bee72bd.entry.js +1 -0
- package/dist/webcomponents/p-3302bc76.js +1 -0
- package/dist/webcomponents/p-3adc0688.entry.js +1 -0
- package/dist/webcomponents/p-3fe05c4a.entry.js +1 -0
- package/dist/webcomponents/p-41b1ad3a.entry.js +1 -0
- package/dist/webcomponents/{p-7c6a355f.entry.js → p-4616768c.entry.js} +1 -1
- package/dist/webcomponents/p-56780f10.entry.js +1 -0
- package/dist/webcomponents/p-5c269619.js +1 -0
- package/dist/webcomponents/p-5ff7826e.entry.js +1 -0
- package/dist/webcomponents/{p-8482c23f.js → p-65510838.js} +1 -1
- package/dist/webcomponents/{p-4d50d08a.entry.js → p-7d8d2984.entry.js} +1 -1
- package/dist/webcomponents/p-7da249b8.entry.js +1 -0
- package/dist/webcomponents/p-84b9ffc9.entry.js +1 -0
- package/dist/webcomponents/{p-07b326d0.entry.js → p-8657128b.entry.js} +1 -1
- package/dist/webcomponents/p-8abba4c2.entry.js +1 -0
- package/dist/webcomponents/p-8c9d9812.entry.js +1 -0
- package/dist/webcomponents/p-910bb656.js +1 -0
- package/dist/webcomponents/p-9245777b.js +1 -0
- package/dist/webcomponents/{p-221b9504.entry.js → p-927150b4.entry.js} +1 -1
- package/dist/webcomponents/p-96cebc8b.entry.js +1 -0
- package/dist/webcomponents/p-99d6b67e.entry.js +1 -0
- package/dist/webcomponents/p-9e3f9e05.entry.js +1 -0
- package/dist/webcomponents/{p-688bb5da.js → p-9ee8ad4d.js} +1 -1
- package/dist/webcomponents/{p-a46174e0.entry.js → p-9f3facf1.entry.js} +1 -1
- package/dist/webcomponents/p-9f529959.entry.js +1 -0
- package/dist/webcomponents/{p-fb49ef28.entry.js → p-a6f170ba.entry.js} +1 -1
- package/dist/webcomponents/{p-c071d8c1.entry.js → p-a8caec98.entry.js} +1 -1
- package/dist/webcomponents/p-a90f7ca0.js +1 -0
- package/dist/webcomponents/{p-d776fe10.entry.js → p-abc03d5a.entry.js} +1 -1
- package/dist/webcomponents/p-b318b899.js +1 -0
- package/dist/webcomponents/{p-1bfadb9f.entry.js → p-c1b92cec.entry.js} +1 -1
- package/dist/webcomponents/p-c556deda.entry.js +1 -0
- package/dist/webcomponents/{p-3d4aaa4a.entry.js → p-c6e207f6.entry.js} +1 -1
- package/dist/webcomponents/{p-b68f1dd9.entry.js → p-cdfde1ca.entry.js} +1 -1
- package/dist/webcomponents/{p-746bfba6.entry.js → p-d69a485a.entry.js} +1 -1
- package/dist/webcomponents/p-e2ba8d84.entry.js +1 -0
- package/dist/webcomponents/{p-ebf7c70f.entry.js → p-e4342f49.entry.js} +1 -1
- package/dist/webcomponents/{p-ea2cca2a.js → p-ed72a5cc.js} +1 -1
- package/dist/webcomponents/{p-6b51cf97.entry.js → p-f0698778.entry.js} +1 -1
- package/dist/webcomponents/p-f4ae621e.entry.js +1 -0
- package/dist/webcomponents/{p-ae21ed6f.entry.js → p-f76283a5.entry.js} +1 -1
- package/dist/webcomponents/p-fce2b224.entry.js +1 -0
- package/dist/webcomponents/p-fd60d5af.js +1 -0
- package/dist/webcomponents/p-ff211f76.js +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-additional-questions-schema-18a82d19.js +0 -47
- package/dist/cjs/business-form-select-options-7ccd8dca.js +0 -85
- package/dist/collection/components/business-forms/utils/business-form-select-options.js +0 -80
- package/dist/esm/business-additional-questions-schema-b642a2b7.js +0 -44
- package/dist/esm/business-form-select-options-6b9293fe.js +0 -82
- package/dist/module/business-form-select-options.js +0 -82
- package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +0 -11
- package/dist/webcomponents/p-091f9732.entry.js +0 -1
- package/dist/webcomponents/p-0923e39c.js +0 -1
- package/dist/webcomponents/p-0d81883d.entry.js +0 -1
- package/dist/webcomponents/p-102b593a.entry.js +0 -1
- package/dist/webcomponents/p-2b8368d2.js +0 -1
- package/dist/webcomponents/p-2df32b4a.entry.js +0 -1
- package/dist/webcomponents/p-34352d04.js +0 -1
- package/dist/webcomponents/p-448063ba.entry.js +0 -1
- package/dist/webcomponents/p-5341321d.entry.js +0 -1
- package/dist/webcomponents/p-5b262705.entry.js +0 -1
- package/dist/webcomponents/p-5e503d7d.entry.js +0 -1
- package/dist/webcomponents/p-6047b960.entry.js +0 -1
- package/dist/webcomponents/p-60b2344a.js +0 -1
- package/dist/webcomponents/p-63296409.js +0 -1
- package/dist/webcomponents/p-6d39b8bc.entry.js +0 -1
- package/dist/webcomponents/p-7294eb89.entry.js +0 -1
- package/dist/webcomponents/p-7b2cddc7.js +0 -1
- package/dist/webcomponents/p-817211f2.entry.js +0 -1
- package/dist/webcomponents/p-935d6f55.js +0 -1
- package/dist/webcomponents/p-959250e3.entry.js +0 -1
- package/dist/webcomponents/p-975ab96e.js +0 -1
- package/dist/webcomponents/p-9b99370e.js +0 -1
- package/dist/webcomponents/p-a130a884.entry.js +0 -1
- package/dist/webcomponents/p-a4122c35.entry.js +0 -1
- package/dist/webcomponents/p-ac670a3e.js +0 -1
- package/dist/webcomponents/p-c340b60f.js +0 -1
- package/dist/webcomponents/p-d5aab6b5.entry.js +0 -1
- package/dist/webcomponents/p-d5c80489.entry.js +0 -1
- package/dist/webcomponents/p-d8679fad.entry.js +0 -1
- package/dist/webcomponents/p-da34bba7.entry.js +0 -1
- package/dist/webcomponents/p-e84b3616.entry.js +0 -1
- package/dist/webcomponents/p-ea03b424.entry.js +0 -1
- package/dist/webcomponents/p-ec230480.entry.js +0 -1
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import StateOptions from "../../../utils/state-options";
|
|
2
|
+
export function getStateAbbreviation(stateName) {
|
|
3
|
+
const state = StateOptions.find(s => s.label === stateName);
|
|
4
|
+
return state ? state.value : stateName;
|
|
5
|
+
}
|
|
6
|
+
// filterNumber is intended to be used to format a string that contains a single digit to a two digit string.
|
|
7
|
+
export function filterNumber(num) {
|
|
8
|
+
if (/^\d$/.test(num)) {
|
|
9
|
+
return '0' + num;
|
|
10
|
+
}
|
|
11
|
+
return num;
|
|
12
|
+
}
|
|
13
|
+
export function constructDate(year, month, day) {
|
|
14
|
+
if (!year || !month || !day) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
return `${year}-${filterNumber(month)}-${filterNumber(day)}`;
|
|
18
|
+
}
|
|
19
|
+
export function deconstructDate(date) {
|
|
20
|
+
const [dob_year, dob_month, dob_day] = date.split('-');
|
|
21
|
+
return { dob_year, dob_month, dob_day };
|
|
22
|
+
}
|
|
@@ -79,7 +79,6 @@ export class BusinessList {
|
|
|
79
79
|
return (h(Host, null, h("justifi-table", { columnData: [
|
|
80
80
|
['Legal Name', 'The name associated with this Business'],
|
|
81
81
|
['Business Type', 'The business type'],
|
|
82
|
-
['Business Structure', 'The business structure'],
|
|
83
82
|
['Tax ID', 'The tax ID associated with this business'],
|
|
84
83
|
['Industry', 'The industry this business participates in'],
|
|
85
84
|
[
|
|
@@ -90,7 +89,6 @@ export class BusinessList {
|
|
|
90
89
|
], rowData: this.businesses.map((business) => [
|
|
91
90
|
business.legal_name,
|
|
92
91
|
snakeCaseToHumanReadable(business.business_type),
|
|
93
|
-
snakeCaseToHumanReadable(business.business_structure),
|
|
94
92
|
business.tax_id,
|
|
95
93
|
business.industry,
|
|
96
94
|
{
|
|
@@ -15,9 +15,9 @@ export const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({
|
|
|
15
15
|
return onError(error.message || error);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
export const
|
|
18
|
+
export const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ payment, onSuccess, onError }) => {
|
|
19
19
|
try {
|
|
20
|
-
const response = await service.
|
|
20
|
+
const response = await service.complete(authToken, checkoutId, payment);
|
|
21
21
|
if (!response.error) {
|
|
22
22
|
const checkout = response.data;
|
|
23
23
|
onSuccess({ checkout });
|
|
@@ -2503,6 +2503,349 @@ progress {
|
|
|
2503
2503
|
--bs-spinner-animation-speed: 1.5s;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
|
+
.list-group {
|
|
2507
|
+
--bs-list-group-color: var(--bs-body-color);
|
|
2508
|
+
--bs-list-group-bg: var(--bs-body-bg);
|
|
2509
|
+
--bs-list-group-border-color: var(--bs-border-color);
|
|
2510
|
+
--bs-list-group-border-width: var(--bs-border-width);
|
|
2511
|
+
--bs-list-group-border-radius: var(--bs-border-radius);
|
|
2512
|
+
--bs-list-group-item-padding-x: 1rem;
|
|
2513
|
+
--bs-list-group-item-padding-y: 0.5rem;
|
|
2514
|
+
--bs-list-group-action-color: var(--bs-secondary-color);
|
|
2515
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2516
|
+
--bs-list-group-action-hover-bg: var(--bs-tertiary-bg);
|
|
2517
|
+
--bs-list-group-action-active-color: var(--bs-body-color);
|
|
2518
|
+
--bs-list-group-action-active-bg: var(--bs-secondary-bg);
|
|
2519
|
+
--bs-list-group-disabled-color: var(--bs-secondary-color);
|
|
2520
|
+
--bs-list-group-disabled-bg: var(--bs-body-bg);
|
|
2521
|
+
--bs-list-group-active-color: #fff;
|
|
2522
|
+
--bs-list-group-active-bg: #0d6efd;
|
|
2523
|
+
--bs-list-group-active-border-color: #0d6efd;
|
|
2524
|
+
display: flex;
|
|
2525
|
+
flex-direction: column;
|
|
2526
|
+
padding-left: 0;
|
|
2527
|
+
margin-bottom: 0;
|
|
2528
|
+
border-radius: var(--bs-list-group-border-radius);
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
.list-group-numbered {
|
|
2532
|
+
list-style-type: none;
|
|
2533
|
+
counter-reset: section;
|
|
2534
|
+
}
|
|
2535
|
+
.list-group-numbered > .list-group-item::before {
|
|
2536
|
+
content: counters(section, ".") ". ";
|
|
2537
|
+
counter-increment: section;
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
.list-group-item-action {
|
|
2541
|
+
width: 100%;
|
|
2542
|
+
color: var(--bs-list-group-action-color);
|
|
2543
|
+
text-align: inherit;
|
|
2544
|
+
}
|
|
2545
|
+
.list-group-item-action:hover, .list-group-item-action:focus {
|
|
2546
|
+
z-index: 1;
|
|
2547
|
+
color: var(--bs-list-group-action-hover-color);
|
|
2548
|
+
text-decoration: none;
|
|
2549
|
+
background-color: var(--bs-list-group-action-hover-bg);
|
|
2550
|
+
}
|
|
2551
|
+
.list-group-item-action:active {
|
|
2552
|
+
color: var(--bs-list-group-action-active-color);
|
|
2553
|
+
background-color: var(--bs-list-group-action-active-bg);
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
.list-group-item {
|
|
2557
|
+
position: relative;
|
|
2558
|
+
display: block;
|
|
2559
|
+
padding: var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);
|
|
2560
|
+
color: var(--bs-list-group-color);
|
|
2561
|
+
text-decoration: none;
|
|
2562
|
+
background-color: var(--bs-list-group-bg);
|
|
2563
|
+
border: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
|
|
2564
|
+
}
|
|
2565
|
+
.list-group-item:first-child {
|
|
2566
|
+
border-top-left-radius: inherit;
|
|
2567
|
+
border-top-right-radius: inherit;
|
|
2568
|
+
}
|
|
2569
|
+
.list-group-item:last-child {
|
|
2570
|
+
border-bottom-right-radius: inherit;
|
|
2571
|
+
border-bottom-left-radius: inherit;
|
|
2572
|
+
}
|
|
2573
|
+
.list-group-item.disabled, .list-group-item:disabled {
|
|
2574
|
+
color: var(--bs-list-group-disabled-color);
|
|
2575
|
+
pointer-events: none;
|
|
2576
|
+
background-color: var(--bs-list-group-disabled-bg);
|
|
2577
|
+
}
|
|
2578
|
+
.list-group-item.active {
|
|
2579
|
+
z-index: 2;
|
|
2580
|
+
color: var(--bs-list-group-active-color);
|
|
2581
|
+
background-color: var(--bs-list-group-active-bg);
|
|
2582
|
+
border-color: var(--bs-list-group-active-border-color);
|
|
2583
|
+
}
|
|
2584
|
+
.list-group-item + .list-group-item {
|
|
2585
|
+
border-top-width: 0;
|
|
2586
|
+
}
|
|
2587
|
+
.list-group-item + .list-group-item.active {
|
|
2588
|
+
margin-top: calc(-1 * var(--bs-list-group-border-width));
|
|
2589
|
+
border-top-width: var(--bs-list-group-border-width);
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
.list-group-horizontal {
|
|
2593
|
+
flex-direction: row;
|
|
2594
|
+
}
|
|
2595
|
+
.list-group-horizontal > .list-group-item:first-child:not(:last-child) {
|
|
2596
|
+
border-bottom-left-radius: var(--bs-list-group-border-radius);
|
|
2597
|
+
border-top-right-radius: 0;
|
|
2598
|
+
}
|
|
2599
|
+
.list-group-horizontal > .list-group-item:last-child:not(:first-child) {
|
|
2600
|
+
border-top-right-radius: var(--bs-list-group-border-radius);
|
|
2601
|
+
border-bottom-left-radius: 0;
|
|
2602
|
+
}
|
|
2603
|
+
.list-group-horizontal > .list-group-item.active {
|
|
2604
|
+
margin-top: 0;
|
|
2605
|
+
}
|
|
2606
|
+
.list-group-horizontal > .list-group-item + .list-group-item {
|
|
2607
|
+
border-top-width: var(--bs-list-group-border-width);
|
|
2608
|
+
border-left-width: 0;
|
|
2609
|
+
}
|
|
2610
|
+
.list-group-horizontal > .list-group-item + .list-group-item.active {
|
|
2611
|
+
margin-left: calc(-1 * var(--bs-list-group-border-width));
|
|
2612
|
+
border-left-width: var(--bs-list-group-border-width);
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
@media (min-width: 576px) {
|
|
2616
|
+
.list-group-horizontal-sm {
|
|
2617
|
+
flex-direction: row;
|
|
2618
|
+
}
|
|
2619
|
+
.list-group-horizontal-sm > .list-group-item:first-child:not(:last-child) {
|
|
2620
|
+
border-bottom-left-radius: var(--bs-list-group-border-radius);
|
|
2621
|
+
border-top-right-radius: 0;
|
|
2622
|
+
}
|
|
2623
|
+
.list-group-horizontal-sm > .list-group-item:last-child:not(:first-child) {
|
|
2624
|
+
border-top-right-radius: var(--bs-list-group-border-radius);
|
|
2625
|
+
border-bottom-left-radius: 0;
|
|
2626
|
+
}
|
|
2627
|
+
.list-group-horizontal-sm > .list-group-item.active {
|
|
2628
|
+
margin-top: 0;
|
|
2629
|
+
}
|
|
2630
|
+
.list-group-horizontal-sm > .list-group-item + .list-group-item {
|
|
2631
|
+
border-top-width: var(--bs-list-group-border-width);
|
|
2632
|
+
border-left-width: 0;
|
|
2633
|
+
}
|
|
2634
|
+
.list-group-horizontal-sm > .list-group-item + .list-group-item.active {
|
|
2635
|
+
margin-left: calc(-1 * var(--bs-list-group-border-width));
|
|
2636
|
+
border-left-width: var(--bs-list-group-border-width);
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
@media (min-width: 768px) {
|
|
2640
|
+
.list-group-horizontal-md {
|
|
2641
|
+
flex-direction: row;
|
|
2642
|
+
}
|
|
2643
|
+
.list-group-horizontal-md > .list-group-item:first-child:not(:last-child) {
|
|
2644
|
+
border-bottom-left-radius: var(--bs-list-group-border-radius);
|
|
2645
|
+
border-top-right-radius: 0;
|
|
2646
|
+
}
|
|
2647
|
+
.list-group-horizontal-md > .list-group-item:last-child:not(:first-child) {
|
|
2648
|
+
border-top-right-radius: var(--bs-list-group-border-radius);
|
|
2649
|
+
border-bottom-left-radius: 0;
|
|
2650
|
+
}
|
|
2651
|
+
.list-group-horizontal-md > .list-group-item.active {
|
|
2652
|
+
margin-top: 0;
|
|
2653
|
+
}
|
|
2654
|
+
.list-group-horizontal-md > .list-group-item + .list-group-item {
|
|
2655
|
+
border-top-width: var(--bs-list-group-border-width);
|
|
2656
|
+
border-left-width: 0;
|
|
2657
|
+
}
|
|
2658
|
+
.list-group-horizontal-md > .list-group-item + .list-group-item.active {
|
|
2659
|
+
margin-left: calc(-1 * var(--bs-list-group-border-width));
|
|
2660
|
+
border-left-width: var(--bs-list-group-border-width);
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
@media (min-width: 992px) {
|
|
2664
|
+
.list-group-horizontal-lg {
|
|
2665
|
+
flex-direction: row;
|
|
2666
|
+
}
|
|
2667
|
+
.list-group-horizontal-lg > .list-group-item:first-child:not(:last-child) {
|
|
2668
|
+
border-bottom-left-radius: var(--bs-list-group-border-radius);
|
|
2669
|
+
border-top-right-radius: 0;
|
|
2670
|
+
}
|
|
2671
|
+
.list-group-horizontal-lg > .list-group-item:last-child:not(:first-child) {
|
|
2672
|
+
border-top-right-radius: var(--bs-list-group-border-radius);
|
|
2673
|
+
border-bottom-left-radius: 0;
|
|
2674
|
+
}
|
|
2675
|
+
.list-group-horizontal-lg > .list-group-item.active {
|
|
2676
|
+
margin-top: 0;
|
|
2677
|
+
}
|
|
2678
|
+
.list-group-horizontal-lg > .list-group-item + .list-group-item {
|
|
2679
|
+
border-top-width: var(--bs-list-group-border-width);
|
|
2680
|
+
border-left-width: 0;
|
|
2681
|
+
}
|
|
2682
|
+
.list-group-horizontal-lg > .list-group-item + .list-group-item.active {
|
|
2683
|
+
margin-left: calc(-1 * var(--bs-list-group-border-width));
|
|
2684
|
+
border-left-width: var(--bs-list-group-border-width);
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
@media (min-width: 1200px) {
|
|
2688
|
+
.list-group-horizontal-xl {
|
|
2689
|
+
flex-direction: row;
|
|
2690
|
+
}
|
|
2691
|
+
.list-group-horizontal-xl > .list-group-item:first-child:not(:last-child) {
|
|
2692
|
+
border-bottom-left-radius: var(--bs-list-group-border-radius);
|
|
2693
|
+
border-top-right-radius: 0;
|
|
2694
|
+
}
|
|
2695
|
+
.list-group-horizontal-xl > .list-group-item:last-child:not(:first-child) {
|
|
2696
|
+
border-top-right-radius: var(--bs-list-group-border-radius);
|
|
2697
|
+
border-bottom-left-radius: 0;
|
|
2698
|
+
}
|
|
2699
|
+
.list-group-horizontal-xl > .list-group-item.active {
|
|
2700
|
+
margin-top: 0;
|
|
2701
|
+
}
|
|
2702
|
+
.list-group-horizontal-xl > .list-group-item + .list-group-item {
|
|
2703
|
+
border-top-width: var(--bs-list-group-border-width);
|
|
2704
|
+
border-left-width: 0;
|
|
2705
|
+
}
|
|
2706
|
+
.list-group-horizontal-xl > .list-group-item + .list-group-item.active {
|
|
2707
|
+
margin-left: calc(-1 * var(--bs-list-group-border-width));
|
|
2708
|
+
border-left-width: var(--bs-list-group-border-width);
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
@media (min-width: 1400px) {
|
|
2712
|
+
.list-group-horizontal-xxl {
|
|
2713
|
+
flex-direction: row;
|
|
2714
|
+
}
|
|
2715
|
+
.list-group-horizontal-xxl > .list-group-item:first-child:not(:last-child) {
|
|
2716
|
+
border-bottom-left-radius: var(--bs-list-group-border-radius);
|
|
2717
|
+
border-top-right-radius: 0;
|
|
2718
|
+
}
|
|
2719
|
+
.list-group-horizontal-xxl > .list-group-item:last-child:not(:first-child) {
|
|
2720
|
+
border-top-right-radius: var(--bs-list-group-border-radius);
|
|
2721
|
+
border-bottom-left-radius: 0;
|
|
2722
|
+
}
|
|
2723
|
+
.list-group-horizontal-xxl > .list-group-item.active {
|
|
2724
|
+
margin-top: 0;
|
|
2725
|
+
}
|
|
2726
|
+
.list-group-horizontal-xxl > .list-group-item + .list-group-item {
|
|
2727
|
+
border-top-width: var(--bs-list-group-border-width);
|
|
2728
|
+
border-left-width: 0;
|
|
2729
|
+
}
|
|
2730
|
+
.list-group-horizontal-xxl > .list-group-item + .list-group-item.active {
|
|
2731
|
+
margin-left: calc(-1 * var(--bs-list-group-border-width));
|
|
2732
|
+
border-left-width: var(--bs-list-group-border-width);
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
.list-group-flush {
|
|
2736
|
+
border-radius: 0;
|
|
2737
|
+
}
|
|
2738
|
+
.list-group-flush > .list-group-item {
|
|
2739
|
+
border-width: 0 0 var(--bs-list-group-border-width);
|
|
2740
|
+
}
|
|
2741
|
+
.list-group-flush > .list-group-item:last-child {
|
|
2742
|
+
border-bottom-width: 0;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
.list-group-item-primary {
|
|
2746
|
+
--bs-list-group-color: var(--bs-primary-text-emphasis);
|
|
2747
|
+
--bs-list-group-bg: var(--bs-primary-bg-subtle);
|
|
2748
|
+
--bs-list-group-border-color: var(--bs-primary-border-subtle);
|
|
2749
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2750
|
+
--bs-list-group-action-hover-bg: var(--bs-primary-border-subtle);
|
|
2751
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2752
|
+
--bs-list-group-action-active-bg: var(--bs-primary-border-subtle);
|
|
2753
|
+
--bs-list-group-active-color: var(--bs-primary-bg-subtle);
|
|
2754
|
+
--bs-list-group-active-bg: var(--bs-primary-text-emphasis);
|
|
2755
|
+
--bs-list-group-active-border-color: var(--bs-primary-text-emphasis);
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
.list-group-item-secondary {
|
|
2759
|
+
--bs-list-group-color: var(--bs-secondary-text-emphasis);
|
|
2760
|
+
--bs-list-group-bg: var(--bs-secondary-bg-subtle);
|
|
2761
|
+
--bs-list-group-border-color: var(--bs-secondary-border-subtle);
|
|
2762
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2763
|
+
--bs-list-group-action-hover-bg: var(--bs-secondary-border-subtle);
|
|
2764
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2765
|
+
--bs-list-group-action-active-bg: var(--bs-secondary-border-subtle);
|
|
2766
|
+
--bs-list-group-active-color: var(--bs-secondary-bg-subtle);
|
|
2767
|
+
--bs-list-group-active-bg: var(--bs-secondary-text-emphasis);
|
|
2768
|
+
--bs-list-group-active-border-color: var(--bs-secondary-text-emphasis);
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
.list-group-item-success {
|
|
2772
|
+
--bs-list-group-color: var(--bs-success-text-emphasis);
|
|
2773
|
+
--bs-list-group-bg: var(--bs-success-bg-subtle);
|
|
2774
|
+
--bs-list-group-border-color: var(--bs-success-border-subtle);
|
|
2775
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2776
|
+
--bs-list-group-action-hover-bg: var(--bs-success-border-subtle);
|
|
2777
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2778
|
+
--bs-list-group-action-active-bg: var(--bs-success-border-subtle);
|
|
2779
|
+
--bs-list-group-active-color: var(--bs-success-bg-subtle);
|
|
2780
|
+
--bs-list-group-active-bg: var(--bs-success-text-emphasis);
|
|
2781
|
+
--bs-list-group-active-border-color: var(--bs-success-text-emphasis);
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
.list-group-item-info {
|
|
2785
|
+
--bs-list-group-color: var(--bs-info-text-emphasis);
|
|
2786
|
+
--bs-list-group-bg: var(--bs-info-bg-subtle);
|
|
2787
|
+
--bs-list-group-border-color: var(--bs-info-border-subtle);
|
|
2788
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2789
|
+
--bs-list-group-action-hover-bg: var(--bs-info-border-subtle);
|
|
2790
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2791
|
+
--bs-list-group-action-active-bg: var(--bs-info-border-subtle);
|
|
2792
|
+
--bs-list-group-active-color: var(--bs-info-bg-subtle);
|
|
2793
|
+
--bs-list-group-active-bg: var(--bs-info-text-emphasis);
|
|
2794
|
+
--bs-list-group-active-border-color: var(--bs-info-text-emphasis);
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
.list-group-item-warning {
|
|
2798
|
+
--bs-list-group-color: var(--bs-warning-text-emphasis);
|
|
2799
|
+
--bs-list-group-bg: var(--bs-warning-bg-subtle);
|
|
2800
|
+
--bs-list-group-border-color: var(--bs-warning-border-subtle);
|
|
2801
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2802
|
+
--bs-list-group-action-hover-bg: var(--bs-warning-border-subtle);
|
|
2803
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2804
|
+
--bs-list-group-action-active-bg: var(--bs-warning-border-subtle);
|
|
2805
|
+
--bs-list-group-active-color: var(--bs-warning-bg-subtle);
|
|
2806
|
+
--bs-list-group-active-bg: var(--bs-warning-text-emphasis);
|
|
2807
|
+
--bs-list-group-active-border-color: var(--bs-warning-text-emphasis);
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
.list-group-item-danger {
|
|
2811
|
+
--bs-list-group-color: var(--bs-danger-text-emphasis);
|
|
2812
|
+
--bs-list-group-bg: var(--bs-danger-bg-subtle);
|
|
2813
|
+
--bs-list-group-border-color: var(--bs-danger-border-subtle);
|
|
2814
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2815
|
+
--bs-list-group-action-hover-bg: var(--bs-danger-border-subtle);
|
|
2816
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2817
|
+
--bs-list-group-action-active-bg: var(--bs-danger-border-subtle);
|
|
2818
|
+
--bs-list-group-active-color: var(--bs-danger-bg-subtle);
|
|
2819
|
+
--bs-list-group-active-bg: var(--bs-danger-text-emphasis);
|
|
2820
|
+
--bs-list-group-active-border-color: var(--bs-danger-text-emphasis);
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
.list-group-item-light {
|
|
2824
|
+
--bs-list-group-color: var(--bs-light-text-emphasis);
|
|
2825
|
+
--bs-list-group-bg: var(--bs-light-bg-subtle);
|
|
2826
|
+
--bs-list-group-border-color: var(--bs-light-border-subtle);
|
|
2827
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2828
|
+
--bs-list-group-action-hover-bg: var(--bs-light-border-subtle);
|
|
2829
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2830
|
+
--bs-list-group-action-active-bg: var(--bs-light-border-subtle);
|
|
2831
|
+
--bs-list-group-active-color: var(--bs-light-bg-subtle);
|
|
2832
|
+
--bs-list-group-active-bg: var(--bs-light-text-emphasis);
|
|
2833
|
+
--bs-list-group-active-border-color: var(--bs-light-text-emphasis);
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
.list-group-item-dark {
|
|
2837
|
+
--bs-list-group-color: var(--bs-dark-text-emphasis);
|
|
2838
|
+
--bs-list-group-bg: var(--bs-dark-bg-subtle);
|
|
2839
|
+
--bs-list-group-border-color: var(--bs-dark-border-subtle);
|
|
2840
|
+
--bs-list-group-action-hover-color: var(--bs-emphasis-color);
|
|
2841
|
+
--bs-list-group-action-hover-bg: var(--bs-dark-border-subtle);
|
|
2842
|
+
--bs-list-group-action-active-color: var(--bs-emphasis-color);
|
|
2843
|
+
--bs-list-group-action-active-bg: var(--bs-dark-border-subtle);
|
|
2844
|
+
--bs-list-group-active-color: var(--bs-dark-bg-subtle);
|
|
2845
|
+
--bs-list-group-active-bg: var(--bs-dark-text-emphasis);
|
|
2846
|
+
--bs-list-group-active-border-color: var(--bs-dark-text-emphasis);
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2506
2849
|
:host {
|
|
2507
2850
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
2508
2851
|
font-size: 1rem;
|
|
@@ -2518,6 +2861,10 @@ justifi-payment-method-form {
|
|
|
2518
2861
|
margin-right: calc(var(--jfi-layout-padding) * -1);
|
|
2519
2862
|
}
|
|
2520
2863
|
|
|
2864
|
+
.jfi-checkout-core {
|
|
2865
|
+
color: var(--jfi-body-color);
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2521
2868
|
*::part(label) {
|
|
2522
2869
|
color: var(--jfi-form-label-color);
|
|
2523
2870
|
font-family: var(--jfi-form-label-font-family);
|
|
@@ -2560,6 +2907,18 @@ justifi-payment-method-form {
|
|
|
2560
2907
|
box-shadow: var(--jfi-form-control-box-shadow-error-focus);
|
|
2561
2908
|
}
|
|
2562
2909
|
|
|
2910
|
+
*::part(invalid-feedback) {
|
|
2911
|
+
color: var(--jfi-error-message-color);
|
|
2912
|
+
font-size: var(--jfi-error-message-font-size);
|
|
2913
|
+
margin: var(--jfi-error-message-margin);
|
|
2914
|
+
line-height: normal;
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
.jfi-header {
|
|
2918
|
+
color: var(--jfi-header-color);
|
|
2919
|
+
border-bottom: var(--jfi-header-border);
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2563
2922
|
.jfi-submit-button {
|
|
2564
2923
|
font-family: var(--jfi-layout-font-family);
|
|
2565
2924
|
color: var(--jfi-submit-button-color);
|
|
@@ -2570,6 +2929,8 @@ justifi-payment-method-form {
|
|
|
2570
2929
|
border-radius: var(--jfi-submit-button-border-radius);
|
|
2571
2930
|
width: var(--jfi-submit-button-width);
|
|
2572
2931
|
box-shadow: var(--jfi-submit-button-box-shadow);
|
|
2932
|
+
line-height: var(--jfi-submit-button-line-height);
|
|
2933
|
+
text-transform: var(--jfi-submit-button-text-transform);
|
|
2573
2934
|
}
|
|
2574
2935
|
|
|
2575
2936
|
.jfi-submit-button:hover {
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { extractComputedFontsToLoad, formatCurrency } from "../../utils/utils";
|
|
3
3
|
import { config } from "../../../config";
|
|
4
|
+
import { Checkout } from "../../api/Checkout";
|
|
4
5
|
export class CheckoutCore {
|
|
5
6
|
constructor() {
|
|
7
|
+
this.onSubmitted = (data) => {
|
|
8
|
+
this.submitted.emit(data);
|
|
9
|
+
this.isLoading = false;
|
|
10
|
+
};
|
|
6
11
|
this.loadingSpinner = (h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")));
|
|
7
12
|
this.iframeOrigin = config.iframeOrigin;
|
|
8
13
|
this.authToken = undefined;
|
|
9
14
|
this.getCheckout = undefined;
|
|
10
|
-
this.
|
|
15
|
+
this.complete = undefined;
|
|
11
16
|
this.checkoutId = undefined;
|
|
12
17
|
this.hasLoadedFonts = false;
|
|
13
18
|
this.isLoading = false;
|
|
@@ -32,7 +37,7 @@ export class CheckoutCore {
|
|
|
32
37
|
this.isLoading = true;
|
|
33
38
|
this.getCheckout({
|
|
34
39
|
onSuccess: ({ checkout }) => {
|
|
35
|
-
this.checkout = checkout;
|
|
40
|
+
this.checkout = new Checkout(checkout);
|
|
36
41
|
this.isLoading = false;
|
|
37
42
|
},
|
|
38
43
|
onError: (errorMessage) => {
|
|
@@ -55,31 +60,31 @@ export class CheckoutCore {
|
|
|
55
60
|
parent.append(fonts);
|
|
56
61
|
}
|
|
57
62
|
async submit(event) {
|
|
63
|
+
var _a;
|
|
58
64
|
event.preventDefault();
|
|
59
65
|
this.isLoading = true;
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
66
|
+
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod();
|
|
67
|
+
if (payload.token) {
|
|
68
|
+
this.complete({
|
|
69
|
+
payment: { payment_mode: 'ecom', payment_token: payload.token },
|
|
70
|
+
onSuccess: this.onSubmitted,
|
|
71
|
+
onError: this.onSubmitted,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
else if (((_a = payload.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
75
|
+
this.complete({
|
|
76
|
+
payment: { payment_mode: 'bnpl' },
|
|
77
|
+
onSuccess: this.onSubmitted,
|
|
78
|
+
onError: this.onSubmitted,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
62
82
|
this.isLoading = false;
|
|
63
|
-
return;
|
|
64
83
|
}
|
|
65
|
-
;
|
|
66
|
-
this.pay({
|
|
67
|
-
paymentMethodToken: token,
|
|
68
|
-
onSuccess: ({ checkout }) => {
|
|
69
|
-
if (!checkout)
|
|
70
|
-
return;
|
|
71
|
-
this.checkout = checkout;
|
|
72
|
-
this.isLoading = false;
|
|
73
|
-
},
|
|
74
|
-
onError: (errorMessage) => {
|
|
75
|
-
this.errorMessage = errorMessage;
|
|
76
|
-
this.isLoading = false;
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
84
|
}
|
|
80
85
|
render() {
|
|
81
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
82
|
-
return (h(Host, null, h("div", { class: "row gy-3" }, h("div", { class: "col-12 mb-4" }, h("h2", { class: "fs-5 fw-bold" }, "Summary"), this.checkout && (h("div", null, h("div",
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
87
|
+
return (h(Host, null, h("div", { class: "row gy-3 jfi-checkout-core" }, h("div", { class: "col-12 mb-4" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.checkout && (h("div", null, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+this.checkout.payment_amount)))))), h("div", { class: "col-12" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { class: "d-flex flex-column" }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": ((_c = (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.payment_settings) === null || _c === void 0 ? void 0 : _c.credit_card_payments) || true, "show-ach": ((_e = (_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_settings) === null || _e === void 0 ? void 0 : _e.ach_payments) || true, bnpl: (_f = this.checkout) === null || _f === void 0 ? void 0 : _f.bnpl, "client-id": (_g = this.checkout) === null || _g === void 0 ? void 0 : _g.payment_client_id, "account-id": (_h = this.checkout) === null || _h === void 0 ? void 0 : _h.account_id, savedPaymentMethods: ((_j = this.checkout) === null || _j === void 0 ? void 0 : _j.payment_methods) || [], paymentAmount: (_k = this.checkout) === null || _k === void 0 ? void 0 : _k.payment_amount }))), h("div", { class: "col-12" }, h("div", { class: "d-flex justify-content-end" }, h("button", { type: "submit", onClick: event => this.submit(event), disabled: this.isLoading, part: "pay-button", class: `btn btn-primary jfi-submit-button ${this.isLoading ? 'jfi-submit-button-loading' : ''}` }, this.isLoading ? this.loadingSpinner : 'Pay'))))));
|
|
83
88
|
}
|
|
84
89
|
static get is() { return "justifi-checkout-core"; }
|
|
85
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,7 +155,7 @@ export class CheckoutCore {
|
|
|
150
155
|
"text": ""
|
|
151
156
|
}
|
|
152
157
|
},
|
|
153
|
-
"
|
|
158
|
+
"complete": {
|
|
154
159
|
"type": "unknown",
|
|
155
160
|
"mutable": false,
|
|
156
161
|
"complexType": {
|
|
@@ -212,13 +217,13 @@ export class CheckoutCore {
|
|
|
212
217
|
"text": ""
|
|
213
218
|
},
|
|
214
219
|
"complexType": {
|
|
215
|
-
"original": "
|
|
216
|
-
"resolved": "
|
|
220
|
+
"original": "ICheckoutCompleteResponse",
|
|
221
|
+
"resolved": "IApiResponse<{ payment_mode: \"ecom\" | \"bnpl\"; payment_token: null; payment_status: string; payment_response: null; checkout_id: string; additional_transactions: any[]; checkout: ICheckout; }>",
|
|
217
222
|
"references": {
|
|
218
|
-
"
|
|
223
|
+
"ICheckoutCompleteResponse": {
|
|
219
224
|
"location": "import",
|
|
220
|
-
"path": "
|
|
221
|
-
"id": "src/
|
|
225
|
+
"path": "../../api/Checkout",
|
|
226
|
+
"id": "src/api/Checkout.ts::ICheckoutCompleteResponse"
|
|
222
227
|
}
|
|
223
228
|
}
|
|
224
229
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { makeGetCheckout,
|
|
2
|
+
import { makeGetCheckout, makeCheckoutComplete } from "./checkout-actions";
|
|
3
3
|
import { CheckoutService } from "../../api/services/checkout.service";
|
|
4
4
|
export class Checkout {
|
|
5
5
|
constructor() {
|
|
@@ -7,7 +7,7 @@ export class Checkout {
|
|
|
7
7
|
this.authToken = undefined;
|
|
8
8
|
this.checkoutId = undefined;
|
|
9
9
|
this.getCheckout = undefined;
|
|
10
|
-
this.
|
|
10
|
+
this.complete = undefined;
|
|
11
11
|
this.errorMessage = '';
|
|
12
12
|
}
|
|
13
13
|
componentWillLoad() {
|
|
@@ -20,7 +20,7 @@ export class Checkout {
|
|
|
20
20
|
checkoutId: this.checkoutId,
|
|
21
21
|
service: new CheckoutService()
|
|
22
22
|
});
|
|
23
|
-
this.
|
|
23
|
+
this.complete = makeCheckoutComplete({
|
|
24
24
|
authToken: this.authToken,
|
|
25
25
|
checkoutId: this.checkoutId,
|
|
26
26
|
service: new CheckoutService()
|
|
@@ -34,7 +34,7 @@ export class Checkout {
|
|
|
34
34
|
this.initializeGetCheckout();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("justifi-checkout-core", { getCheckout: this.getCheckout,
|
|
37
|
+
return (h("justifi-checkout-core", { getCheckout: this.getCheckout, complete: this.complete }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "justifi-checkout"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,7 +96,7 @@ export class Checkout {
|
|
|
96
96
|
static get states() {
|
|
97
97
|
return {
|
|
98
98
|
"getCheckout": {},
|
|
99
|
-
"
|
|
99
|
+
"complete": {},
|
|
100
100
|
"errorMessage": {}
|
|
101
101
|
};
|
|
102
102
|
}
|
|
@@ -15,14 +15,15 @@ export class NewPaymentMethod {
|
|
|
15
15
|
this.paymentMethodOption = undefined;
|
|
16
16
|
this.isSelected = undefined;
|
|
17
17
|
}
|
|
18
|
-
async
|
|
18
|
+
async resolvePaymentMethod() {
|
|
19
19
|
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
20
20
|
return;
|
|
21
21
|
const billingFormValidation = await this.billingFormRef.validate();
|
|
22
22
|
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
23
23
|
if (!billingFormValidation.isValid || !paymentMethodFormValidation.isValid)
|
|
24
24
|
return;
|
|
25
|
-
|
|
25
|
+
const token = await this.tokenize();
|
|
26
|
+
return { token: token };
|
|
26
27
|
}
|
|
27
28
|
async tokenize() {
|
|
28
29
|
try {
|
|
@@ -49,7 +50,7 @@ export class NewPaymentMethod {
|
|
|
49
50
|
}
|
|
50
51
|
render() {
|
|
51
52
|
var _a, _b, _c, _d;
|
|
52
|
-
return (h("div", { class: "payment-method" }, h("div", { class: `payment-method-header p-3
|
|
53
|
+
return (h("div", { class: "payment-method" }, h("div", { class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
53
54
|
}
|
|
54
55
|
static get is() { return "justifi-new-payment-method"; }
|
|
55
56
|
static get properties() {
|
|
@@ -166,17 +167,22 @@ export class NewPaymentMethod {
|
|
|
166
167
|
}
|
|
167
168
|
static get methods() {
|
|
168
169
|
return {
|
|
169
|
-
"
|
|
170
|
+
"resolvePaymentMethod": {
|
|
170
171
|
"complexType": {
|
|
171
|
-
"signature": "() => Promise<
|
|
172
|
+
"signature": "() => Promise<PaymentMethodPayload>",
|
|
172
173
|
"parameters": [],
|
|
173
174
|
"references": {
|
|
174
175
|
"Promise": {
|
|
175
176
|
"location": "global",
|
|
176
177
|
"id": "global::Promise"
|
|
178
|
+
},
|
|
179
|
+
"PaymentMethodPayload": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "./payment-method-payload",
|
|
182
|
+
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
177
183
|
}
|
|
178
184
|
},
|
|
179
|
-
"return": "Promise<
|
|
185
|
+
"return": "Promise<PaymentMethodPayload>"
|
|
180
186
|
},
|
|
181
187
|
"docs": {
|
|
182
188
|
"text": "",
|