@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
|
@@ -46,7 +46,7 @@ const BillingForm = /*@__PURE__*/ proxyCustomElement(class BillingForm extends H
|
|
|
46
46
|
return this.formController.values.getValue();
|
|
47
47
|
}
|
|
48
48
|
async fill(fields) {
|
|
49
|
-
this.formController.
|
|
49
|
+
this.formController.setInitialValues(fields);
|
|
50
50
|
}
|
|
51
51
|
async validate() {
|
|
52
52
|
let isValid = await this.formController.validate();
|
|
@@ -54,7 +54,7 @@ const BillingForm = /*@__PURE__*/ proxyCustomElement(class BillingForm extends H
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '3e0954b4babb893c7409e91fcb18184298bc0b65', exportparts: "label,input,input-invalid" }, h("form", { key: 'fb71a434643015867f88d0efce59d31c3c7429c6' }, h("fieldset", { key: 'd24b2ab37867192046a27d5a4ff697474c4bf3da' }, this.legend && h("legend", { key: '67232ddf644cdc43c314f0dd5c3d25cf2fa70457' }, this.legend), h("div", { key: 'cedc173c4b65caf38fa43db6e82784cd10389dbb', class: "row gy-3" }, h("div", { key: '29bb833c0d6ab0a382422970df82538d22d4faee', class: "col-12" }, h("form-control-text", { key: '5b1dd1dc7020ee795c8676a59888c66fbaa10729', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c04e342634d5eca451f98a043b3aa57d06a141cd', class: "col-12" }, h("form-control-text", { key: '61407ae0370b96357c671a6db9f3a689db5df222', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '7dbf877e690936a53d2e11075a0904ae66854e6a', class: "col-12" }, h("form-control-text", { key: 'e13552aad0d46d7edf88c28c4348b0b401107b10', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: 'c5be293a5559cbfa2e0c5425fb6ec0ec798c2af8', class: "col-12" }, h("form-control-text", { key: 'd6c6502bb828ab30598bb8f528d53a1431069dd5', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: 'ec50b1ba2b7b2b687d9e6ad3c1c7af89d0dc6f74', class: "col-12" }, h("form-control-select", { key: '275e63c9b8b8b743c27d6053c36a2c14a57754fc', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '4bfb86b74779742bb6816ed923ac06d28da142b2', class: "col-12" }, h("form-control-text", { key: 'a901279bda8599a14d4c440998f0d8da48b28252', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler })))))));
|
|
58
58
|
}
|
|
59
59
|
static get style() { return JustifiBillingFormStyle0; }
|
|
60
60
|
}, [1, "justifi-billing-form", {
|
|
@@ -107,7 +107,7 @@ const AdditionalQuestionsFormStep = /*@__PURE__*/ proxyCustomElement(class Addit
|
|
|
107
107
|
render() {
|
|
108
108
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
109
109
|
const additionalQuestionsDefaultValue = this.formController.getInitialValues();
|
|
110
|
-
return (h(Host, { key: 'a6c4f79702b3ebeb087c7e0beb1353e243c26bb2', exportparts: "label,input,input-invalid" }, h("form", { key: 'e4f918d7b7a84b8a2332f14d79dcb8bc7c50da73' }, h("fieldset", { key: '921f14f225be38b665780a5640bc38302497a5b4' }, h("legend", { key: '01fa03c8134995cb23a67766febb6d4522e3d41a' }, "Additional Questions"), h("hr", { key: '61131730389e979b6aa7d68ca5f58a070aa2534e' }), h("div", { key: '54b3af3d2fe06b20463fa548a60ab986f246a3d7', class: "row gy-3" }, h("div", { key: '55c113e9d5f4746cc78de3f91cbf0a069d7a8e41', class: "col-12 col-md-6" }, h("form-control-monetary", { key: '
|
|
110
|
+
return (h(Host, { key: 'a6c4f79702b3ebeb087c7e0beb1353e243c26bb2', exportparts: "label,input,input-invalid" }, h("form", { key: 'e4f918d7b7a84b8a2332f14d79dcb8bc7c50da73' }, h("fieldset", { key: '921f14f225be38b665780a5640bc38302497a5b4' }, h("legend", { key: '01fa03c8134995cb23a67766febb6d4522e3d41a' }, "Additional Questions"), h("hr", { key: '61131730389e979b6aa7d68ca5f58a070aa2534e' }), h("div", { key: '54b3af3d2fe06b20463fa548a60ab986f246a3d7', class: "row gy-3" }, h("div", { key: '55c113e9d5f4746cc78de3f91cbf0a069d7a8e41', class: "col-12 col-md-6" }, h("form-control-monetary", { key: '86a6cacf09105f5c4415a01738ba77b7eeb7622c', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'ae68b9c006ea41e1f214226efdb4e14098d5e800', class: "col-12 col-md-6" }, h("form-control-monetary", { key: 'ddbff877fc74121bbf84eb7f4ee278558f35d853', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '80fa2c11d3cadd1a1ab07ad79b7ff736a15a38d3', class: "col-12" }, h("form-control-select", { key: '7fca901a87105b9a401309d5841279bac7a6f5cd', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: 'a20763d9518cd84b062f81fdce325be2a8dfb40e', class: "col-12" }, h("form-control-select", { key: 'cfec3aab19c544b16f8a0fab7541433130c3b749', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '0ef1a0473a5870428a741be696e08c881ebee524', class: "col-12" }, h("form-control-text", { key: '512a4924c14b7c2da661b5ffe966d8d1497cb706', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: '75a7b0adfde53443a53ca4e4143f1ff060291837', class: "col-12" }, h("form-control-select", { key: '1474ce5f608be57a36486ad46c7a7bd68fc44fc7', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '7de2fd399754cc0c77e2b08b7d1a4d0082903f61', class: "col-12" }, h("form-control-text", { key: '5de14ae950223e353dd6d58430a4493ffd26da4e', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details })))))));
|
|
111
111
|
}
|
|
112
112
|
}, [0, "justifi-additional-questions-form-step", {
|
|
113
113
|
"authToken": [1, "auth-token"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { F as FormController } from './index.esm.js';
|
|
3
|
-
import {
|
|
3
|
+
import { P as PHONE_MASKS } from './form-input-masks.js';
|
|
4
4
|
import { C as CoreBusinessInfo } from './Business.js';
|
|
5
5
|
import { A as Api } from './Api.js';
|
|
6
6
|
import './Pagination.js';
|
|
@@ -13,6 +13,7 @@ import { d as flattenNestedObject } from './utils2.js';
|
|
|
13
13
|
import { B as BusinessFormStep } from './business-form-types.js';
|
|
14
14
|
import { a as businessClassificationOptions } from './business-form-options.js';
|
|
15
15
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
16
|
+
import { n as numberOnlyHandler } from './utils3.js';
|
|
16
17
|
import { d as defineCustomElement$6 } from './form-control-date2.js';
|
|
17
18
|
import { d as defineCustomElement$5 } from './form-control-error-text2.js';
|
|
18
19
|
import { d as defineCustomElement$4 } from './form-control-help-text2.js';
|
|
@@ -111,7 +112,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
111
112
|
}
|
|
112
113
|
render() {
|
|
113
114
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
114
|
-
return (h(Host, { key: '
|
|
115
|
+
return (h(Host, { key: '4ea42b813bdd6e5c59a62ae4ae869e86dfddd7ce', exportparts: 'label,input,input-invalid' }, h("form", { key: 'f5ec3be342eda82dee8a51fe2ee5a6da1ee8902e' }, h("fieldset", { key: 'e07041577f53badc6c172a2c6dc20b1066c03f4c' }, h("legend", { key: '2bcc8cc013eeee4e27c874d0bed4471515b68610' }, "General Info"), h("hr", { key: '6dc6f73cf851b9244c8d797bc5cefdfda848c7bc' }), h("div", { key: 'b2bfad85255ddfa76d405e45df3d668ad02a6fea', class: 'row gy-3' }, h("div", { key: 'a9a65df07f40621513ce4881dd203e90142d7670', class: 'col-12' }, h("form-control-text", { key: '7fe7ac765902c7cd9ed60004dc7be687d43b2e49', name: 'legal_name', label: 'Legal Name', defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '6fe2e395e4391480f4d6dafcfc57619176efc45c', class: 'col-12' }, h("form-control-text", { key: 'd19870345d79e4c44c3e667e2751ff6f344e1d58', name: 'doing_business_as', label: 'Doing Business As (DBA)', defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '39acda8180c70f7684aa2d73ef31bc199233c358', class: 'col-12 col-md-8' }, h("form-control-select", { key: '67f98ac21a69a851bb9489df198e06c8b517d45e', name: 'classification', label: 'Business Classification', options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: 'd54631f13e8998170de1f175d52d89d90035e688', class: 'col-12 col-md-4' }, h("form-control-date", { key: '8038e4f909c9bb2e5f3a8dd577f7b7f75e3d4f41', name: 'date_of_incorporation', label: 'Date of Incorporation', defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'ca43f206b14494ddaa55c625a2c408426ebcf529', class: 'col-12 col-md-6' }, h("form-control-text", { key: '7ccf50e04dad1a7e001c37074925f27f53ec831c', name: 'industry', label: 'Industry', defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '76136df0a434b7fce1b0307e962e4ea387a063d3', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'ddfd853ed46b3995484dff54d47af0c0d6c93b0c', name: 'tax_id', label: 'Tax ID (EIN or SSN)', defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9 })), h("div", { key: '1084c4d7a261b8fc0a9ceacc16b5823f09cfb807', class: 'col-12' }, h("form-control-text", { key: 'c9ca186a6f2cc10f43966de56e6a224103ddd1f3', name: 'website_url', label: 'Website URL', defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '55bc2f83a170fc1bec20c208460cc63b8f42a566', class: 'col-12 col-md-6' }, h("form-control-text", { key: '5c35db62f1d7d56e01a839df29b39aa55e569d5c', name: 'email', label: 'Email Address', defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'f74aadc2ea606365918f29091a6f6bb08841bf00', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: 'ef54ee012cbc30464bcdc7e887d5eb0523e30057', name: 'phone', label: 'Phone Number', defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
|
|
115
116
|
}
|
|
116
117
|
}, [0, "justifi-business-core-info-form-step", {
|
|
117
118
|
"authToken": [1, "auth-token"],
|
|
@@ -10,7 +10,7 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
10
10
|
doing_business_as: doingBusinessAsValidation.required('Enter doing business as'),
|
|
11
11
|
classification: businessClassificationValidation.required('Select business classification'),
|
|
12
12
|
industry: industryValidation.required('Enter a business industry'),
|
|
13
|
-
tax_id: taxIdValidation.required('Enter tax id'),
|
|
13
|
+
tax_id: taxIdValidation.required('Enter tax id, SSN, or EIN'),
|
|
14
14
|
date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
|
|
15
15
|
});
|
|
16
16
|
const easySchema = create$3({
|
|
@@ -87,9 +87,6 @@ const BusinessRepresentativeFormStep = /*@__PURE__*/ proxyCustomElement(class Bu
|
|
|
87
87
|
get businessEndpoint() {
|
|
88
88
|
return `entities/business/${this.businessId}`;
|
|
89
89
|
}
|
|
90
|
-
get identificationNumberLabel() {
|
|
91
|
-
return this.representative.ssn_last4 ? 'Update SSN (optional)' : 'SSN';
|
|
92
|
-
}
|
|
93
90
|
handleResponse(response, onSuccess) {
|
|
94
91
|
if (response.error) {
|
|
95
92
|
this.errorEvent.emit({
|
|
@@ -121,7 +118,7 @@ const BusinessRepresentativeFormStep = /*@__PURE__*/ proxyCustomElement(class Bu
|
|
|
121
118
|
}
|
|
122
119
|
render() {
|
|
123
120
|
const representativeDefaultValue = this.formController.getInitialValues();
|
|
124
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: 'd2c9bc0dd40d85403688d4c0ff482d7b0c3c35ab', exportparts: 'label,input,input-invalid' }, h("form", { key: '99a6b23b13b893f760e322dfe2e6f603e86e718c' }, h("fieldset", { key: '7c3b1897a7fe0fa672fa2d8d1a35ba4c81e9c256' }, h("legend", { key: 'f0fe4c93f757167e631d6e21bda5b559556550ad' }, "Representative"), h("hr", { key: '1dd5db7898b510bcdae492460f2ce57d7871c282' }), h("div", { key: '33d1935e5b6cc441bd0193e35aaaedcecfc2bc95', class: 'row gy-3' }, h("div", { key: 'c872b5a20469e3609178106b019fe1d0aecb2a24', class: 'col-12 col-md-8' }, h("form-control-text", { key: '31f37067b3c46bb4f7120169878dae88c1d4e918', name: 'name', label: 'Full Name', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9bdc8c1756a693f48bf060ee66f6fcf44cabc025', class: 'col-12 col-md-4' }, h("form-control-text", { key: '1686ff4c8e7b2e2fb74cc104966bf56d2754f8a8', name: 'title', label: 'Title', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '789443ed50f9f0957e6bd8b4f6dea8d6ba7421a9', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'fcf1bd082368ee1adcc6b661ec75e3693fcc30dd', name: 'email', label: 'Email Address', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '163d3f6e3ea1d2b7833b7a232e4726e56fda6416', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: '3eba7a3ab6a7e8631cb9f100bfd7e5e5566efecc', name: 'phone', label: 'Phone Number', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '42fc6d656c069f073b08e77398a266e367e771ad', class: 'col-12 col-md-4' }, h("form-control-date", { key: 'f627ff9478974305c83a8947b6c7f60d46189104', name: 'dob_full', label: 'Birth Date', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: 'ffded118a7a2d1c5889c46ac879cdadc289f1c1e', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: 'bf9cda57b1b7579a38d4f1f276c5cbc7b1723e2d', name: 'identification_number', label: 'SSN', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: 'b033205960692dc7b3cea5ce59e12a13c58d5243', class: 'col-12' }, h("justifi-identity-address-form", { key: 'f243060451c630da18d175a93f55bb1fcabd0cec', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })))))));
|
|
125
122
|
}
|
|
126
123
|
}, [0, "justifi-business-representative-form-step", {
|
|
127
124
|
"authToken": [1, "auth-token"],
|
|
@@ -3,14 +3,15 @@ import { a as formatCurrency } from './utils2.js';
|
|
|
3
3
|
import { c as config } from './config.js';
|
|
4
4
|
import { a as ComponentErrorSeverity } from './ComponentError.js';
|
|
5
5
|
import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state.js';
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
6
|
+
import { d as defineCustomElement$c } from './form-control-error-text2.js';
|
|
7
|
+
import { d as defineCustomElement$b } from './form-control-help-text2.js';
|
|
8
|
+
import { d as defineCustomElement$a } from './form-control-select2.js';
|
|
9
|
+
import { d as defineCustomElement$9 } from './form-control-text2.js';
|
|
10
|
+
import { d as defineCustomElement$8 } from './billing-form.js';
|
|
11
|
+
import { d as defineCustomElement$7 } from './new-payment-method.js';
|
|
12
|
+
import { d as defineCustomElement$6 } from './payment-method-form.js';
|
|
13
|
+
import { d as defineCustomElement$5 } from './payment-method-options.js';
|
|
14
|
+
import { d as defineCustomElement$4 } from './save-new-payment-method.js';
|
|
14
15
|
import { d as defineCustomElement$3 } from './saved-payment-method.js';
|
|
15
16
|
import { d as defineCustomElement$2 } from './sezzle-payment-method.js';
|
|
16
17
|
import { d as defineCustomElement$1 } from './skeleton.js';
|
|
@@ -31,6 +32,7 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
31
32
|
this.__attachShadow();
|
|
32
33
|
this.submitted = createEvent(this, "submitted", 7);
|
|
33
34
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
35
|
+
this.loaded = createEvent(this, "loaded", 7);
|
|
34
36
|
this.completeCheckout = async (payment) => {
|
|
35
37
|
this.complete({
|
|
36
38
|
payment,
|
|
@@ -66,6 +68,10 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
66
68
|
this.serverError = undefined;
|
|
67
69
|
this.renderState = 'loading';
|
|
68
70
|
this.creatingNewPaymentMethod = false;
|
|
71
|
+
this.insuranceToggled = false;
|
|
72
|
+
}
|
|
73
|
+
async fillBillingForm(fields) {
|
|
74
|
+
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
69
75
|
}
|
|
70
76
|
componentWillLoad() {
|
|
71
77
|
if (this.getCheckout) {
|
|
@@ -74,6 +80,7 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
74
80
|
insuranceValuesOn('set', (key) => {
|
|
75
81
|
const value = insuranceValues[key];
|
|
76
82
|
if (value !== undefined) {
|
|
83
|
+
this.insuranceToggled = value;
|
|
77
84
|
this.fetchData();
|
|
78
85
|
}
|
|
79
86
|
});
|
|
@@ -84,6 +91,8 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
84
91
|
this.getCheckout({
|
|
85
92
|
onSuccess: ({ checkout }) => {
|
|
86
93
|
this.checkout = new Checkout(checkout);
|
|
94
|
+
const { status } = this.checkout;
|
|
95
|
+
this.loaded.emit({ checkout_status: status });
|
|
87
96
|
this.renderState = 'success';
|
|
88
97
|
},
|
|
89
98
|
onError: ({ error, code, severity }) => {
|
|
@@ -103,8 +112,8 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
103
112
|
event.preventDefault();
|
|
104
113
|
this.renderState = 'loading';
|
|
105
114
|
const insuranceValidation = validateInsuranceValues();
|
|
106
|
-
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod();
|
|
107
|
-
if (
|
|
115
|
+
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
|
|
116
|
+
if (payload.validationError) {
|
|
108
117
|
this.renderState = 'error';
|
|
109
118
|
}
|
|
110
119
|
else if (payload.error) {
|
|
@@ -134,14 +143,14 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
134
143
|
}
|
|
135
144
|
get paymentType() {
|
|
136
145
|
var _a, _b, _c, _d, _e;
|
|
137
|
-
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,
|
|
146
|
+
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 }))));
|
|
138
147
|
}
|
|
139
148
|
get summary() {
|
|
140
149
|
var _a, _b;
|
|
141
150
|
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)))))));
|
|
142
151
|
}
|
|
143
152
|
render() {
|
|
144
|
-
return (h(Host, { key: '
|
|
153
|
+
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'))))));
|
|
145
154
|
}
|
|
146
155
|
static get style() { return JustifiCheckoutCoreStyle0; }
|
|
147
156
|
}, [1, "justifi-checkout-core", {
|
|
@@ -158,13 +167,15 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
158
167
|
"checkout": [32],
|
|
159
168
|
"serverError": [32],
|
|
160
169
|
"renderState": [32],
|
|
161
|
-
"creatingNewPaymentMethod": [32]
|
|
170
|
+
"creatingNewPaymentMethod": [32],
|
|
171
|
+
"insuranceToggled": [32],
|
|
172
|
+
"fillBillingForm": [64]
|
|
162
173
|
}]);
|
|
163
174
|
function defineCustomElement() {
|
|
164
175
|
if (typeof customElements === "undefined") {
|
|
165
176
|
return;
|
|
166
177
|
}
|
|
167
|
-
const components = ["justifi-checkout-core", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "justifi-billing-form", "justifi-new-payment-method", "justifi-payment-method-form", "justifi-payment-method-options", "justifi-saved-payment-method", "justifi-sezzle-payment-method", "justifi-skeleton"];
|
|
178
|
+
const components = ["justifi-checkout-core", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "justifi-billing-form", "justifi-new-payment-method", "justifi-payment-method-form", "justifi-payment-method-options", "justifi-save-new-payment-method", "justifi-saved-payment-method", "justifi-sezzle-payment-method", "justifi-skeleton"];
|
|
168
179
|
components.forEach(tagName => { switch (tagName) {
|
|
169
180
|
case "justifi-checkout-core":
|
|
170
181
|
if (!customElements.get(tagName)) {
|
|
@@ -173,40 +184,45 @@ function defineCustomElement() {
|
|
|
173
184
|
break;
|
|
174
185
|
case "form-control-error-text":
|
|
175
186
|
if (!customElements.get(tagName)) {
|
|
176
|
-
defineCustomElement$
|
|
187
|
+
defineCustomElement$c();
|
|
177
188
|
}
|
|
178
189
|
break;
|
|
179
190
|
case "form-control-help-text":
|
|
180
191
|
if (!customElements.get(tagName)) {
|
|
181
|
-
defineCustomElement$
|
|
192
|
+
defineCustomElement$b();
|
|
182
193
|
}
|
|
183
194
|
break;
|
|
184
195
|
case "form-control-select":
|
|
185
196
|
if (!customElements.get(tagName)) {
|
|
186
|
-
defineCustomElement$
|
|
197
|
+
defineCustomElement$a();
|
|
187
198
|
}
|
|
188
199
|
break;
|
|
189
200
|
case "form-control-text":
|
|
190
201
|
if (!customElements.get(tagName)) {
|
|
191
|
-
defineCustomElement$
|
|
202
|
+
defineCustomElement$9();
|
|
192
203
|
}
|
|
193
204
|
break;
|
|
194
205
|
case "justifi-billing-form":
|
|
195
206
|
if (!customElements.get(tagName)) {
|
|
196
|
-
defineCustomElement$
|
|
207
|
+
defineCustomElement$8();
|
|
197
208
|
}
|
|
198
209
|
break;
|
|
199
210
|
case "justifi-new-payment-method":
|
|
200
211
|
if (!customElements.get(tagName)) {
|
|
201
|
-
defineCustomElement$
|
|
212
|
+
defineCustomElement$7();
|
|
202
213
|
}
|
|
203
214
|
break;
|
|
204
215
|
case "justifi-payment-method-form":
|
|
205
216
|
if (!customElements.get(tagName)) {
|
|
206
|
-
defineCustomElement$
|
|
217
|
+
defineCustomElement$6();
|
|
207
218
|
}
|
|
208
219
|
break;
|
|
209
220
|
case "justifi-payment-method-options":
|
|
221
|
+
if (!customElements.get(tagName)) {
|
|
222
|
+
defineCustomElement$5();
|
|
223
|
+
}
|
|
224
|
+
break;
|
|
225
|
+
case "justifi-save-new-payment-method":
|
|
210
226
|
if (!customElements.get(tagName)) {
|
|
211
227
|
defineCustomElement$4();
|
|
212
228
|
}
|
package/dist/module/details.js
CHANGED
|
@@ -12,7 +12,7 @@ const Details = /*@__PURE__*/ proxyCustomElement(class Details extends HTMLEleme
|
|
|
12
12
|
this.errorMessage = undefined;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
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 ?
|
|
16
16
|
ErrorState(this.errorMessage)
|
|
17
17
|
:
|
|
18
18
|
h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
|
|
@@ -32,7 +32,7 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class CheckboxInput exten
|
|
|
32
32
|
this.updateInput(this.defaultValue);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '727dd3a3e8024aae9540885f677f2aebca05f4f0', exportparts: "label,input,input-invalid" }, h("div", { key: '8d523339b9f03b078333d4380d03db9d1005bb5d', class: 'form-group d-flex flex-column' }, h("div", { key: 'e1b85ac05cf6a578d7f78a017d2ae85da9fd0b14', class: "form-check" }, h("input", { key: 'd5c111ba29f7035a6213555f7d876ae042badd2f', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input-checkbox ${this.errorText ? 'input-checkbox-invalid' : ''}`, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled }), h("label", { key: '604dc0bba4a0fe0a7171cfed95649a5600d3890f', class: "form-check-label", htmlFor: this.name }, this.label)), h("form-control-help-text", { key: '2779d04d33657d493b17864fa96b8b5c6ab5c4da', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '27b6ba8589b8fb9adbfb1792efd36bd4af4338d2', errorText: this.errorText, name: this.name }))));
|
|
36
36
|
}
|
|
37
37
|
static get watchers() { return {
|
|
38
38
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -32,7 +32,7 @@ const DateInput = /*@__PURE__*/ proxyCustomElement(class DateInput extends HTMLE
|
|
|
32
32
|
this.dateInput.value = value;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '477163306527f6b607c43e63ec4a38aaac5a4780', exportparts: "label,input,input-invalid" }, h("label", { key: '3174cbb24f2bd74e59e28dc6a31e224a0e2ab47d', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'de908daeee9db445c1369b75c536bcf33cb9f4e9', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: 'ea51242481f4a9894d55871d23aeaf4013112e24', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '2db99a325bd6d691c0fdcbf3965535266329506f', errorText: this.errorText, name: this.name })));
|
|
36
36
|
}
|
|
37
37
|
static get watchers() { return {
|
|
38
38
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -39,7 +39,7 @@ const FileInput = /*@__PURE__*/ proxyCustomElement(class FileInput extends HTMLE
|
|
|
39
39
|
this.fileInput = this.el.querySelector('input');
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '2219dfef80cb3ef71148fbc4d2d29df6583d6779', exportparts: "label,input,input-invalid" }, h("div", { key: '18d059b17b226815a97cf1be429857bd93e43115', class: "form-group d-flex flex-column" }, h("label", { key: '91adf40d0dd7559888b7c37eeee40f363628bada', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '6aa37be009cce396e2f1268429c94b812d48167e', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onBlur: () => this.formControlBlur.emit() }), h("form-control-help-text", { key: 'd4241aceb5a40b2dfedebc9658b128231d43fcc0', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'af7dd8c90ea83f2f99f24100e97c9147f787aadf', errorText: this.errorText, name: this.name }))));
|
|
43
43
|
}
|
|
44
44
|
get el() { return this; }
|
|
45
45
|
}, [0, "form-control-file", {
|
|
@@ -54,7 +54,7 @@ const MonetaryInput = /*@__PURE__*/ proxyCustomElement(class MonetaryInput exten
|
|
|
54
54
|
(_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: 'db55365b80d790ecdd9388bd80068be4d024fcbb', exportparts: "label,input,input-invalid" }, h("div", { key: 'badef12431b67dd5c8de702cc978237fffaad16a', class: "form-group d-flex flex-column" }, h("label", { key: 'c187a982531ea45e674e74a77aad65e3cf4d8e1c', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '61d58986d9369907e9732f1540ce0f914d16cda8', class: "input-group" }, h("span", { key: '883f4851ddb76c62b514bdd2399f06415f201995', class: "input-group-text" }, "$"), h("input", { key: 'af5a0b3239f664f1ed82c2534f667b38adda245a', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h("form-control-help-text", { key: 'f0e59b47f55772a3c7a008ee32475d16415163af', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'fd9b43f2a028e0ca00df298000bb933c0cb10b7f', errorText: this.errorText, name: this.name }))));
|
|
58
58
|
}
|
|
59
59
|
static get watchers() { return {
|
|
60
60
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -53,7 +53,7 @@ const NumberInputMasked = /*@__PURE__*/ proxyCustomElement(class NumberInputMask
|
|
|
53
53
|
this.updateInput(this.defaultValue);
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '781c4f77fe5b5b4f39c2d44868814ada72ce67c9', exportparts: "label,input,input-invalid" }, h("div", { key: '9c3ed0d13b883e3d2dc302225f25a00414088ef6', class: "form-group d-flex flex-column" }, h("label", { key: '0782f2936175944dd54e5497e54d2389c35c94bc', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '8feee613f2f83e8cb0ac34a4939fd65b5c14729a', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: 'dbdf33259fd04b1488b299216eb550960068c553', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '8a148bb9a29f322fb21acbfd8597a1e89433056a', errorText: this.errorText, name: this.name }))));
|
|
57
57
|
}
|
|
58
58
|
static get watchers() { return {
|
|
59
59
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -35,7 +35,7 @@ const NumberInput = /*@__PURE__*/ proxyCustomElement(class NumberInput extends H
|
|
|
35
35
|
this.updateInput(this.defaultValue);
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'da1318fae566f16be182c710840df84a60ccf707', exportparts: 'label,input,input-invalid' }, h("div", { key: 'de12c73d81be1a797c7efd482adef5e648d2947b', class: 'form-group d-flex flex-column' }, h("label", { key: '95113ea706e25074512e948ae041ac121af6c181', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '03d3cf05f76c6dd4ec2b00d486f31045dd36dc12', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h("form-control-help-text", { key: 'ac4d21a4d723c80bff561364858f2dfba3c704b6', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '7f474f8d69bf555a2e6c517772e79d35a7bd32b2', errorText: this.errorText, name: this.name }))));
|
|
39
39
|
}
|
|
40
40
|
get el() { return this; }
|
|
41
41
|
static get watchers() { return {
|
|
@@ -34,7 +34,7 @@ const SelectInput = /*@__PURE__*/ proxyCustomElement(class SelectInput extends H
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
var _a;
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'abc80a7f20c59c99a3468f199142bc01ba7883cb', exportparts: "label,input,input-invalid" }, h("div", { key: 'd34ec19e40c33bd16b1e03e2bfac07dd6dd1a3a8', class: "form-group d-flex flex-column" }, h("label", { key: '43adfb46f3bf2e72e50d2bab17b909fec8693c2a', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("select", { key: 'eacb07490715f8041cfa6cd4fab91959d5b6bfae', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: '5ec5ba6ca4e0503ffdbddb95e70444bbf8b169b7', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'bd90d61ca9aa0c52d351e336febc9f3d2e501355', errorText: this.errorText, name: this.name }))));
|
|
38
38
|
}
|
|
39
39
|
static get watchers() { return {
|
|
40
40
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -37,7 +37,7 @@ const TextInput = /*@__PURE__*/ proxyCustomElement(class TextInput extends HTMLE
|
|
|
37
37
|
this.updateInput(this.defaultValue);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '7b3c980cbad27b29bc87dd4eaa8a23398c8b244c', exportparts: "label,input,input-invalid" }, h("div", { key: 'fa49688c206721f177d2c57b42103ffcd139dde7', class: "form-group d-flex flex-column" }, h("label", { key: '596b8cae71f32769d82fa5e77df11daa172fcce9', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '44ec6ef8e306c5d25190dec87926ba382665f2ca', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '888e0abf5f3687266784eda12428cb219321f964', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '902a8e06659e63cb35002b5eef8b3f987df8fb44', errorText: this.errorText, name: this.name }))));
|
|
41
41
|
}
|
|
42
42
|
get el() { return this; }
|
|
43
43
|
static get watchers() { return {
|
|
@@ -11042,7 +11042,7 @@ const GrossPaymentChartCore = /*@__PURE__*/ proxyCustomElement(class GrossPaymen
|
|
|
11042
11042
|
}
|
|
11043
11043
|
}
|
|
11044
11044
|
render() {
|
|
11045
|
-
return (h(Host, { key: '
|
|
11045
|
+
return (h(Host, { key: '73822a13a814d0d6e687d0ac4904023776f02c9c' }, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
|
|
11046
11046
|
}
|
|
11047
11047
|
static get watchers() { return {
|
|
11048
11048
|
"getGrossPayment": ["propChanged"],
|
|
@@ -7,15 +7,16 @@ import './Payment.js';
|
|
|
7
7
|
import './Payout.js';
|
|
8
8
|
import { c as config } from './config.js';
|
|
9
9
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$
|
|
16
|
-
import { d as defineCustomElement$
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
10
|
+
import { d as defineCustomElement$e } from './form-control-error-text2.js';
|
|
11
|
+
import { d as defineCustomElement$d } from './form-control-help-text2.js';
|
|
12
|
+
import { d as defineCustomElement$c } from './form-control-select2.js';
|
|
13
|
+
import { d as defineCustomElement$b } from './form-control-text2.js';
|
|
14
|
+
import { d as defineCustomElement$a } from './billing-form.js';
|
|
15
|
+
import { d as defineCustomElement$9 } from './checkout-core.js';
|
|
16
|
+
import { d as defineCustomElement$8 } from './new-payment-method.js';
|
|
17
|
+
import { d as defineCustomElement$7 } from './payment-method-form.js';
|
|
18
|
+
import { d as defineCustomElement$6 } from './payment-method-options.js';
|
|
19
|
+
import { d as defineCustomElement$5 } from './save-new-payment-method.js';
|
|
19
20
|
import { d as defineCustomElement$4 } from './saved-payment-method.js';
|
|
20
21
|
import { d as defineCustomElement$3 } from './sezzle-payment-method.js';
|
|
21
22
|
import { d as defineCustomElement$2 } from './skeleton.js';
|
|
@@ -96,6 +97,7 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
96
97
|
super();
|
|
97
98
|
this.__registerHost();
|
|
98
99
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
100
|
+
this.loadedEvent = createEvent(this, "loaded", 7);
|
|
99
101
|
this.iframeOrigin = undefined;
|
|
100
102
|
this.authToken = undefined;
|
|
101
103
|
this.checkoutId = undefined;
|
|
@@ -138,8 +140,15 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
138
140
|
propChanged() {
|
|
139
141
|
this.initializeGetCheckout();
|
|
140
142
|
}
|
|
143
|
+
async fillBillingForm(fields) {
|
|
144
|
+
this.checkoutCoreRef.fillBillingForm(fields);
|
|
145
|
+
}
|
|
141
146
|
render() {
|
|
142
|
-
return (h("justifi-checkout-core", { key: '
|
|
147
|
+
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 => {
|
|
148
|
+
if (el) {
|
|
149
|
+
this.checkoutCoreRef = el;
|
|
150
|
+
}
|
|
151
|
+
} }, h("div", { key: 'a659fc258e90c32b4b16ea1d92492c0e16f830a3', slot: "insurance" }, h("slot", { key: 'c92ba9f86f72b372cafabbdd7aba92cee0af44f7', name: "insurance" }))));
|
|
143
152
|
}
|
|
144
153
|
static get watchers() { return {
|
|
145
154
|
"authToken": ["propChanged"],
|
|
@@ -155,7 +164,8 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
155
164
|
"disablePaymentMethodGroup": [4, "disable-payment-method-group"],
|
|
156
165
|
"getCheckout": [32],
|
|
157
166
|
"complete": [32],
|
|
158
|
-
"errorMessage": [32]
|
|
167
|
+
"errorMessage": [32],
|
|
168
|
+
"fillBillingForm": [64]
|
|
159
169
|
}, undefined, {
|
|
160
170
|
"authToken": ["propChanged"],
|
|
161
171
|
"checkoutId": ["propChanged"]
|
|
@@ -164,7 +174,7 @@ function defineCustomElement$1() {
|
|
|
164
174
|
if (typeof customElements === "undefined") {
|
|
165
175
|
return;
|
|
166
176
|
}
|
|
167
|
-
const components = ["justifi-checkout", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "justifi-billing-form", "justifi-checkout-core", "justifi-new-payment-method", "justifi-payment-method-form", "justifi-payment-method-options", "justifi-saved-payment-method", "justifi-sezzle-payment-method", "justifi-skeleton"];
|
|
177
|
+
const components = ["justifi-checkout", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "justifi-billing-form", "justifi-checkout-core", "justifi-new-payment-method", "justifi-payment-method-form", "justifi-payment-method-options", "justifi-save-new-payment-method", "justifi-saved-payment-method", "justifi-sezzle-payment-method", "justifi-skeleton"];
|
|
168
178
|
components.forEach(tagName => { switch (tagName) {
|
|
169
179
|
case "justifi-checkout":
|
|
170
180
|
if (!customElements.get(tagName)) {
|
|
@@ -173,45 +183,50 @@ function defineCustomElement$1() {
|
|
|
173
183
|
break;
|
|
174
184
|
case "form-control-error-text":
|
|
175
185
|
if (!customElements.get(tagName)) {
|
|
176
|
-
defineCustomElement$
|
|
186
|
+
defineCustomElement$e();
|
|
177
187
|
}
|
|
178
188
|
break;
|
|
179
189
|
case "form-control-help-text":
|
|
180
190
|
if (!customElements.get(tagName)) {
|
|
181
|
-
defineCustomElement$
|
|
191
|
+
defineCustomElement$d();
|
|
182
192
|
}
|
|
183
193
|
break;
|
|
184
194
|
case "form-control-select":
|
|
185
195
|
if (!customElements.get(tagName)) {
|
|
186
|
-
defineCustomElement$
|
|
196
|
+
defineCustomElement$c();
|
|
187
197
|
}
|
|
188
198
|
break;
|
|
189
199
|
case "form-control-text":
|
|
190
200
|
if (!customElements.get(tagName)) {
|
|
191
|
-
defineCustomElement$
|
|
201
|
+
defineCustomElement$b();
|
|
192
202
|
}
|
|
193
203
|
break;
|
|
194
204
|
case "justifi-billing-form":
|
|
195
205
|
if (!customElements.get(tagName)) {
|
|
196
|
-
defineCustomElement$
|
|
206
|
+
defineCustomElement$a();
|
|
197
207
|
}
|
|
198
208
|
break;
|
|
199
209
|
case "justifi-checkout-core":
|
|
200
210
|
if (!customElements.get(tagName)) {
|
|
201
|
-
defineCustomElement$
|
|
211
|
+
defineCustomElement$9();
|
|
202
212
|
}
|
|
203
213
|
break;
|
|
204
214
|
case "justifi-new-payment-method":
|
|
205
215
|
if (!customElements.get(tagName)) {
|
|
206
|
-
defineCustomElement$
|
|
216
|
+
defineCustomElement$8();
|
|
207
217
|
}
|
|
208
218
|
break;
|
|
209
219
|
case "justifi-payment-method-form":
|
|
210
220
|
if (!customElements.get(tagName)) {
|
|
211
|
-
defineCustomElement$
|
|
221
|
+
defineCustomElement$7();
|
|
212
222
|
}
|
|
213
223
|
break;
|
|
214
224
|
case "justifi-payment-method-options":
|
|
225
|
+
if (!customElements.get(tagName)) {
|
|
226
|
+
defineCustomElement$6();
|
|
227
|
+
}
|
|
228
|
+
break;
|
|
229
|
+
case "justifi-save-new-payment-method":
|
|
215
230
|
if (!customElements.get(tagName)) {
|
|
216
231
|
defineCustomElement$5();
|
|
217
232
|
}
|