@justifi/webcomponents 4.16.0 → 4.17.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/{Analytics-423b2bb5.js → Analytics-80336968.js} +1 -1
- package/dist/cjs/{SubAccount-4f4fac22.js → SubAccount-135ff8c8.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-606d1292.js → business-additional-questions-schema-cf545610.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_5.cjs.entry.js +7 -10
- package/dist/cjs/form-control-date_3.cjs.entry.js +3 -3
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +8 -11
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +13 -1678
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +13 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +11 -3
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +68 -26
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1688 -0
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +1 -1
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-b40227dd.js → package-7b63c02b.js} +1 -1
- package/dist/cjs/{payload-parsers-6e4cf5d7.js → payload-parsers-78445405.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{schema-validations-9668fd79.js → schema-validations-2733de42.js} +3 -4
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +5 -5
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +1 -1
- package/dist/cjs/{utils-fd644316.js → utils-742da2e3.js} +12 -3
- package/dist/cjs/{utils-17869710.js → utils-80191fbe.js} +6 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +0 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -4
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +0 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -4
- package/dist/collection/components/checkout/checkout-core.js +64 -5
- package/dist/collection/components/checkout/checkout.js +59 -1
- package/dist/collection/components/checkout/new-payment-method.js +94 -14
- package/dist/collection/components/checkout/payment-method-option-utils.js +2 -0
- package/dist/collection/components/checkout/payment-method-options.css +8 -0
- package/dist/collection/components/checkout/payment-method-options.js +98 -14
- package/dist/collection/components/checkout/save-new-payment-method.js +38 -0
- package/dist/collection/components/checkout/saved-payment-method.js +11 -4
- package/dist/collection/components/checkout/sezzle-payment-method.js +11 -4
- package/dist/collection/components/details/details.js +1 -1
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +1 -1
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +12 -3
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payment-form/payment-form.js +3 -3
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -1
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
- package/dist/collection/utils/utils.js +5 -0
- package/dist/docs.json +415 -41
- package/dist/esm/{Analytics-17c33e9e.js → Analytics-c52faca6.js} +1 -1
- package/dist/esm/{SubAccount-8bf9cb0c.js → SubAccount-7fcb1450.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-b00a73ba.js → business-additional-questions-schema-956e3caf.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_5.entry.js +7 -10
- package/dist/esm/form-control-date_3.entry.js +3 -3
- package/dist/esm/form-control-error-text_4.entry.js +2 -2
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +2 -2
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +9 -12
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +13 -1678
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +5 -5
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +13 -5
- package/dist/esm/justifi-checkout.entry.js +11 -3
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-new-payment-method_4.entry.js +68 -26
- package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-form.entry.js +6 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1684 -0
- package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-proceeds-list.entry.js +2 -2
- package/dist/esm/justifi-refund-form.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +1 -1
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-subaccount-details.entry.js +3 -3
- package/dist/esm/justifi-subaccounts-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-02a6e473.js → package-8ab448a3.js} +1 -1
- package/dist/esm/{payload-parsers-a9e8f8cc.js → payload-parsers-57289fc4.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payments-list-core.entry.js +2 -2
- package/dist/esm/payout-details-core.entry.js +2 -2
- package/dist/esm/payouts-list-core.entry.js +2 -2
- package/dist/esm/{schema-validations-770bdf3e.js → schema-validations-a83ff220.js} +3 -4
- package/dist/esm/subaccount-account-details_4.entry.js +5 -5
- package/dist/esm/subaccount-bank-details.entry.js +1 -1
- package/dist/esm/subaccount-terms-details.entry.js +1 -1
- package/dist/esm/{utils-61a21dea.js → utils-5f4c4faa.js} +6 -1
- package/dist/esm/{utils-8de964da.js → utils-c7b3f21a.js} +12 -3
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +3 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -4
- package/dist/module/checkout-core.js +37 -21
- package/dist/module/details.js +1 -1
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +1 -1
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/justifi-checkout.js +35 -20
- package/dist/module/justifi-payment-balance-transactions.js +2 -2
- package/dist/module/justifi-payment-form.js +3 -3
- package/dist/module/justifi-proceeds-list.js +1 -1
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-save-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-save-new-payment-method.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-subaccount-details.js +2 -2
- package/dist/module/justifi-subaccounts-list.js +2 -2
- package/dist/module/new-payment-method.js +52 -24
- package/dist/module/owner-form.js +2 -5
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +51 -26
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +2 -2
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/save-new-payment-method.js +36 -0
- package/dist/module/saved-payment-method.js +7 -2
- package/dist/module/schema-validations.js +3 -4
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +5 -2
- package/dist/module/skeleton.js +1 -1
- package/dist/module/subaccount-account-details2.js +1 -1
- package/dist/module/subaccount-bank-details.js +1 -1
- package/dist/module/subaccount-merchant-details2.js +2 -2
- package/dist/module/subaccount-owners-details2.js +1 -1
- package/dist/module/subaccount-representative-details2.js +1 -1
- package/dist/module/subaccount-terms-details.js +1 -1
- package/dist/module/utils2.js +6 -1
- package/dist/module/utils3.js +12 -3
- package/dist/types/api/Checkout.d.ts +6 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -1
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +0 -1
- package/dist/types/components/checkout/checkout-core.d.ts +5 -1
- package/dist/types/components/checkout/checkout.d.ts +5 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +8 -2
- package/dist/types/components/checkout/payment-method-option-utils.d.ts +1 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +6 -2
- package/dist/types/components/checkout/payment-method-payload.d.ts +1 -0
- package/dist/types/components/checkout/save-new-payment-method.d.ts +7 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/form/utils.d.ts +1 -1
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +6 -4
- package/dist/types/components.d.ts +55 -12
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/{p-4791c1f2.entry.js → p-00de4ae0.entry.js} +1 -1
- package/dist/webcomponents/{p-0f10316f.entry.js → p-015ba24e.entry.js} +1 -1
- package/dist/webcomponents/p-0575daac.js +1 -0
- package/dist/webcomponents/p-0a09edbb.entry.js +1 -0
- package/dist/webcomponents/{p-31031d15.entry.js → p-0fc18c89.entry.js} +1 -1
- package/dist/webcomponents/{p-f14db665.entry.js → p-100cb35c.entry.js} +1 -1
- package/dist/webcomponents/{p-b01c0120.entry.js → p-189dee9f.entry.js} +1 -1
- package/dist/webcomponents/{p-288c95b3.entry.js → p-1c60004a.entry.js} +1 -1
- package/dist/webcomponents/{p-65969627.entry.js → p-30a7bebc.entry.js} +2 -2
- package/dist/webcomponents/{p-7ae2d26f.entry.js → p-378bb067.entry.js} +1 -1
- package/dist/webcomponents/p-3fd13ca3.js +1 -0
- package/dist/webcomponents/{p-923c37a2.entry.js → p-404d7c56.entry.js} +1 -1
- package/dist/webcomponents/{p-f18e63c3.entry.js → p-43326623.entry.js} +1 -1
- package/dist/webcomponents/{p-9228912b.entry.js → p-4c5f9260.entry.js} +1 -1
- package/dist/webcomponents/{p-7c28a80d.entry.js → p-5309e887.entry.js} +1 -1
- package/dist/webcomponents/{p-fee616cf.entry.js → p-6006e085.entry.js} +1 -1
- package/dist/webcomponents/{p-9c00adf1.entry.js → p-61e486ad.entry.js} +1 -1
- package/dist/webcomponents/{p-eefe2f29.entry.js → p-738049aa.entry.js} +1 -1
- package/dist/webcomponents/{p-56275f64.entry.js → p-739f1e09.entry.js} +1 -1
- package/dist/webcomponents/{p-4b260a52.entry.js → p-7f77d91f.entry.js} +1 -1
- package/dist/webcomponents/{p-ebce7b2f.entry.js → p-84b3cead.entry.js} +1 -1
- package/dist/webcomponents/{p-06baf263.entry.js → p-8805d083.entry.js} +1 -1
- package/dist/webcomponents/p-89887332.js +1 -0
- package/dist/webcomponents/p-95c18035.entry.js +1 -0
- package/dist/webcomponents/{p-fa9773c0.entry.js → p-95c8c313.entry.js} +1 -1
- package/dist/webcomponents/p-97220d5b.entry.js +1 -0
- package/dist/webcomponents/{p-8e8f5033.entry.js → p-98985c7d.entry.js} +1 -1
- package/dist/webcomponents/{p-e3a31451.entry.js → p-9936c393.entry.js} +1 -1
- package/dist/webcomponents/p-9d03464e.entry.js +1 -0
- package/dist/webcomponents/{p-3a7e0753.entry.js → p-a34c28af.entry.js} +1 -1
- package/dist/webcomponents/{p-d42e284d.entry.js → p-a6477232.entry.js} +1 -1
- package/dist/webcomponents/{p-2451611d.entry.js → p-a90a6703.entry.js} +1 -1
- package/dist/webcomponents/{p-a33c3e1c.entry.js → p-b1a24d24.entry.js} +1 -1
- package/dist/webcomponents/{p-9b1e7f5e.entry.js → p-b27d2ce1.entry.js} +1 -1
- package/dist/webcomponents/{p-3394ff6c.js → p-b7d9d9fa.js} +1 -1
- package/dist/webcomponents/{p-1e53021d.entry.js → p-be049573.entry.js} +1 -1
- package/dist/webcomponents/{p-c85fb952.entry.js → p-bfe69314.entry.js} +1 -1
- package/dist/webcomponents/{p-9601cf9d.entry.js → p-c2d6a5e2.entry.js} +1 -1
- package/dist/webcomponents/{p-4b4fc43d.js → p-c4264aaf.js} +1 -1
- package/dist/webcomponents/{p-808c8988.entry.js → p-c69713c2.entry.js} +1 -1
- package/dist/webcomponents/{p-9e5d765c.js → p-c8c08fe3.js} +1 -1
- package/dist/webcomponents/{p-b94bf537.entry.js → p-d779f2f2.entry.js} +1 -1
- package/dist/webcomponents/{p-26779944.entry.js → p-da313a7e.entry.js} +1 -1
- package/dist/webcomponents/{p-6ce586e0.entry.js → p-e04f7070.entry.js} +1 -1
- package/dist/webcomponents/p-e7915927.entry.js +1 -0
- package/dist/webcomponents/{p-fb53112b.js → p-e8c651b8.js} +1 -1
- package/dist/webcomponents/p-eb142b8a.entry.js +1 -0
- package/dist/webcomponents/{p-851e57f4.js → p-edb605b3.js} +1 -1
- package/dist/webcomponents/{p-e673e681.entry.js → p-efe744ce.entry.js} +1 -1
- package/dist/webcomponents/p-f6858597.entry.js +1 -0
- package/dist/webcomponents/p-f68cf935.entry.js +1 -0
- package/dist/webcomponents/{p-3f06ce2f.entry.js → p-fcf42299.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-038fb958.entry.js +0 -1
- package/dist/webcomponents/p-144e4bda.js +0 -1
- package/dist/webcomponents/p-1feebf9c.entry.js +0 -1
- package/dist/webcomponents/p-306aea52.entry.js +0 -1
- package/dist/webcomponents/p-6b05f357.entry.js +0 -1
- package/dist/webcomponents/p-71800e4c.js +0 -1
- package/dist/webcomponents/p-88d68804.entry.js +0 -1
- package/dist/webcomponents/p-8a6049ed.js +0 -1
- package/dist/webcomponents/p-bacd9d6e.entry.js +0 -1
- package/dist/webcomponents/p-f3ae3cb6.entry.js +0 -1
|
@@ -4,12 +4,12 @@ import { B as BusinessService } from './business.service-19a0c8d3.js';
|
|
|
4
4
|
import { B as Business } from './Business-e218b4f4.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
6
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
7
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-c52faca6.js';
|
|
8
8
|
import './config-476c7241.js';
|
|
9
9
|
import './Api-b09a2f6a.js';
|
|
10
10
|
import './helpers-96ea3464.js';
|
|
11
11
|
import './state-options-a356fb11.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-8ab448a3.js';
|
|
13
13
|
|
|
14
14
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
15
15
|
var _a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-4bd1eae9.js';
|
|
2
2
|
import { c as create$3, F as FormController } from './index.esm-fc4f5c0c.js';
|
|
3
|
-
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-
|
|
4
|
-
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-
|
|
3
|
+
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-956e3caf.js';
|
|
4
|
+
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-57289fc4.js';
|
|
5
5
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
6
6
|
import './Pagination-afc8f96d.js';
|
|
7
7
|
import './Payment-3e94da9c.js';
|
|
@@ -9,12 +9,12 @@ import './Payout-dfe15b00.js';
|
|
|
9
9
|
import { c as config } from './config-476c7241.js';
|
|
10
10
|
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-60f50b98.js';
|
|
11
11
|
import { B as Business } from './Business-e218b4f4.js';
|
|
12
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
13
|
-
import './schema-validations-
|
|
12
|
+
import { J as JustifiAnalytics } from './Analytics-c52faca6.js';
|
|
13
|
+
import './schema-validations-a83ff220.js';
|
|
14
14
|
import './state-options-a356fb11.js';
|
|
15
15
|
import './business-form-options-7a9a74fc.js';
|
|
16
16
|
import './helpers-96ea3464.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-8ab448a3.js';
|
|
18
18
|
|
|
19
19
|
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
20
20
|
|
|
@@ -4,7 +4,7 @@ import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
|
4
4
|
import './Payment-3e94da9c.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
6
|
import { B as Business } from './Business-e218b4f4.js';
|
|
7
|
-
import { s as snakeCaseToHumanReadable, f as formatDate } from './utils-
|
|
7
|
+
import { s as snakeCaseToHumanReadable, f as formatDate } from './utils-5f4c4faa.js';
|
|
8
8
|
import { c as config } from './config-476c7241.js';
|
|
9
9
|
import './helpers-96ea3464.js';
|
|
10
10
|
import './state-options-a356fb11.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-4bd1eae9.js';
|
|
2
2
|
import { c as config } from './config-476c7241.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
4
|
-
import './package-
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-c52faca6.js';
|
|
4
|
+
import './package-8ab448a3.js';
|
|
5
5
|
import './Api-b09a2f6a.js';
|
|
6
6
|
|
|
7
7
|
const CardForm = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-4bd1eae9.js';
|
|
2
|
-
import { b as formatCurrency } from './utils-
|
|
2
|
+
import { b as formatCurrency } from './utils-5f4c4faa.js';
|
|
3
3
|
import { c as config } from './config-476c7241.js';
|
|
4
4
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
5
5
|
import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state-09754ab9.js';
|
|
@@ -18,6 +18,7 @@ const CheckoutCore = class {
|
|
|
18
18
|
registerInstance(this, hostRef);
|
|
19
19
|
this.submitted = createEvent(this, "submitted", 7);
|
|
20
20
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
21
|
+
this.loaded = createEvent(this, "loaded", 7);
|
|
21
22
|
this.completeCheckout = async (payment) => {
|
|
22
23
|
this.complete({
|
|
23
24
|
payment,
|
|
@@ -53,6 +54,10 @@ const CheckoutCore = class {
|
|
|
53
54
|
this.serverError = undefined;
|
|
54
55
|
this.renderState = 'loading';
|
|
55
56
|
this.creatingNewPaymentMethod = false;
|
|
57
|
+
this.insuranceToggled = false;
|
|
58
|
+
}
|
|
59
|
+
async fillBillingForm(fields) {
|
|
60
|
+
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
56
61
|
}
|
|
57
62
|
componentWillLoad() {
|
|
58
63
|
if (this.getCheckout) {
|
|
@@ -61,6 +66,7 @@ const CheckoutCore = class {
|
|
|
61
66
|
insuranceValuesOn('set', (key) => {
|
|
62
67
|
const value = insuranceValues[key];
|
|
63
68
|
if (value !== undefined) {
|
|
69
|
+
this.insuranceToggled = value;
|
|
64
70
|
this.fetchData();
|
|
65
71
|
}
|
|
66
72
|
});
|
|
@@ -71,6 +77,8 @@ const CheckoutCore = class {
|
|
|
71
77
|
this.getCheckout({
|
|
72
78
|
onSuccess: ({ checkout }) => {
|
|
73
79
|
this.checkout = new Checkout(checkout);
|
|
80
|
+
const { status } = this.checkout;
|
|
81
|
+
this.loaded.emit({ checkout_status: status });
|
|
74
82
|
this.renderState = 'success';
|
|
75
83
|
},
|
|
76
84
|
onError: ({ error, code, severity }) => {
|
|
@@ -90,8 +98,8 @@ const CheckoutCore = class {
|
|
|
90
98
|
event.preventDefault();
|
|
91
99
|
this.renderState = 'loading';
|
|
92
100
|
const insuranceValidation = validateInsuranceValues();
|
|
93
|
-
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod();
|
|
94
|
-
if (
|
|
101
|
+
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
|
|
102
|
+
if (payload.validationError) {
|
|
95
103
|
this.renderState = 'error';
|
|
96
104
|
}
|
|
97
105
|
else if (payload.error) {
|
|
@@ -121,14 +129,14 @@ const CheckoutCore = class {
|
|
|
121
129
|
}
|
|
122
130
|
get paymentType() {
|
|
123
131
|
var _a, _b, _c, _d, _e;
|
|
124
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h("justifi-skeleton", { variant: "rounded", height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl,
|
|
132
|
+
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h("justifi-skeleton", { variant: "rounded", height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
|
|
125
133
|
}
|
|
126
134
|
get summary() {
|
|
127
135
|
var _a, _b;
|
|
128
136
|
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h("justifi-skeleton", { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, 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(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
129
137
|
}
|
|
130
138
|
render() {
|
|
131
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: 'b4eca3c8ce6642cc307df9bf0954d8db13ec3791' }, h("div", { key: '652bb4e5b2b4ec189d293630d31a3c1d8f345a7e', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '6bb0869d4632dd8937e5077dd84732f9091342d0', class: "col-12 mb-4" }, h("h2", { key: 'bd8d0d02f5a59ec9a5629808fea21dc3e922407a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: '81b1c5e141fa49da91e257eb40243e27f2c55f50', class: "col-12" }, h("slot", { key: '438606a898983e51141c62e7fe7ab209eadfa2a2', name: "insurance" })), h("div", { key: '0932dbfb2f6c57aed73f56b3563c189e76b1aa69', class: "col-12" }, h("h2", { key: 'd96345a9941679990d0e379293eb960751ef4063', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'cfcb5db0857f670008d5f71f3fccd53b1d05c91d', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: 'f9f06327db4ec89b0db943de0e6d3c983d33ab55', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '18392f4a553848f123910bb10501821b550e0abe', class: "col-12" }, h("div", { key: '31f6e5b2267ab507021b285becdd2961035ffe53', class: "d-flex justify-content-end" }, h("button", { key: '4dc7c5af2ca0d3766a2e3371da9b241e3260a351', 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'))))));
|
|
132
140
|
}
|
|
133
141
|
};
|
|
134
142
|
CheckoutCore.style = JustifiCheckoutCoreStyle0;
|
|
@@ -6,8 +6,8 @@ import './Pagination-afc8f96d.js';
|
|
|
6
6
|
import './Payment-3e94da9c.js';
|
|
7
7
|
import './Payout-dfe15b00.js';
|
|
8
8
|
import { c as config } from './config-476c7241.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
10
|
-
import './package-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-c52faca6.js';
|
|
10
|
+
import './package-8ab448a3.js';
|
|
11
11
|
|
|
12
12
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
13
13
|
var _a;
|
|
@@ -84,6 +84,7 @@ const Checkout = class {
|
|
|
84
84
|
constructor(hostRef) {
|
|
85
85
|
registerInstance(this, hostRef);
|
|
86
86
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
87
|
+
this.loadedEvent = createEvent(this, "loaded", 7);
|
|
87
88
|
this.iframeOrigin = undefined;
|
|
88
89
|
this.authToken = undefined;
|
|
89
90
|
this.checkoutId = undefined;
|
|
@@ -126,8 +127,15 @@ const Checkout = class {
|
|
|
126
127
|
propChanged() {
|
|
127
128
|
this.initializeGetCheckout();
|
|
128
129
|
}
|
|
130
|
+
async fillBillingForm(fields) {
|
|
131
|
+
this.checkoutCoreRef.fillBillingForm(fields);
|
|
132
|
+
}
|
|
129
133
|
render() {
|
|
130
|
-
return (h("justifi-checkout-core", { key: '
|
|
134
|
+
return (h("justifi-checkout-core", { key: '5dd0269c6fd04bff259204e80800803e618ffa83', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
|
|
135
|
+
if (el) {
|
|
136
|
+
this.checkoutCoreRef = el;
|
|
137
|
+
}
|
|
138
|
+
} }, h("div", { key: 'a659fc258e90c32b4b16ea1d92492c0e16f830a3', slot: "insurance" }, h("slot", { key: 'c92ba9f86f72b372cafabbdd7aba92cee0af44f7', name: "insurance" }))));
|
|
131
139
|
}
|
|
132
140
|
static get watchers() { return {
|
|
133
141
|
"authToken": ["propChanged"],
|
|
@@ -10,7 +10,7 @@ const Details = class {
|
|
|
10
10
|
this.errorMessage = undefined;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '2d6ed5cb3c548d10c9a7de29b2b1b3a94f60133f', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
|
|
14
14
|
ErrorState(this.errorMessage)
|
|
15
15
|
:
|
|
16
16
|
h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
|
|
@@ -4,8 +4,8 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
4
4
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
5
5
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
6
6
|
import { E as ErrorState } from './utils-1e583166.js';
|
|
7
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
8
|
-
import './package-
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-c52faca6.js';
|
|
8
|
+
import './package-8ab448a3.js';
|
|
9
9
|
|
|
10
10
|
class ReportsService {
|
|
11
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|