@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
|
@@ -30,7 +30,7 @@ export class TextInput {
|
|
|
30
30
|
this.updateInput(this.defaultValue);
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
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 }))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "form-control-text"; }
|
|
36
36
|
static get properties() {
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const LoadingSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")));
|
|
3
3
|
export const numberOnlyHandler = (e) => {
|
|
4
|
+
var _a;
|
|
4
5
|
const specialKeys = ['Backspace', 'Tab', 'Enter', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Delete'];
|
|
5
6
|
// Check if the key is a special key
|
|
6
|
-
if (specialKeys.includes(e.key)) {
|
|
7
|
+
if (e instanceof KeyboardEvent && specialKeys.includes(e.key)) {
|
|
7
8
|
return;
|
|
8
9
|
}
|
|
9
10
|
// Allow Ctrl+V / Command+V for pasting
|
|
10
|
-
const isPaste = (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
|
|
11
|
+
const isPaste = e instanceof KeyboardEvent && (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
|
|
11
12
|
if (isPaste) {
|
|
12
13
|
return;
|
|
13
14
|
}
|
|
15
|
+
// Handle paste event
|
|
16
|
+
if (e instanceof ClipboardEvent) {
|
|
17
|
+
const clipboardData = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
18
|
+
if (clipboardData && !/^\d+$/.test(clipboardData)) {
|
|
19
|
+
e.preventDefault();
|
|
20
|
+
}
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
14
23
|
// Prevent default action if the key is not a digit
|
|
15
|
-
if (!/^\d$/.test(e.key)) {
|
|
24
|
+
if (e instanceof KeyboardEvent && !/^\d$/.test(e.key)) {
|
|
16
25
|
e.preventDefault();
|
|
17
26
|
}
|
|
18
27
|
};
|
|
@@ -68,7 +68,7 @@ export class GrossPaymentChartCore {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '73822a13a814d0d6e687d0ac4904023776f02c9c' }, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "gross-payment-chart-core"; }
|
|
74
74
|
static get originalStyleUrls() {
|
|
@@ -97,8 +97,8 @@ export class SeasonInterruptionInsuranceCore {
|
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
99
|
var _a, _b, _c, _d;
|
|
100
|
-
return (h(Host, { key: '
|
|
101
|
-
h("div", { key: '
|
|
100
|
+
return (h(Host, { key: '639f1c1451fb4e790fe510345e7260975b67a393' }, !this.isLoading &&
|
|
101
|
+
h("div", { key: '1d72430a8ce8407c9ff2be3ee10dd37e9055adc5' }, h("h2", { key: '68f9f7044f586240699fadbb98b662947a78ae78', class: "fs-5 fw-bold pb-3 jfi-header" }, (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title), h("small", { key: '0cdc4d3cec9dd78c1700c96dcb91913f3ec5bffb', innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description }), h("div", { key: 'ea84def1c420f63217686d8f1c1ab745b2e11225' }, h("input", { key: '72399093d1caaaadb0f2889fa257b45b98cca4cf', id: "accept", type: "radio", name: "opt-in", value: "true", onChange: (event) => this.onChangeHandler(event), class: this.error ? 'form-check-input me-2 is-invalid' : 'form-check-input me-2' }), h("label", { key: 'c3fea13863a81a0ca666c67cd44e80a2cc734cad', htmlFor: "accept", class: "btn btn-outline-primary jfi-btn-radio-label" }, "Accept coverage for ", formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents))), h("div", { key: '4e22ffbf216eeefdb57c6fdc013aa7ce7c4bf6c8' }, h("input", { key: '33ea76c2f7393e8a7d6aa55d890fa393e7253a68', id: "decline", type: "radio", name: "opt-in", value: "false", onChange: (event) => this.onChangeHandler(event), class: this.error ? 'form-check-input me-2 is-invalid' : 'form-check-input me-2' }), h("label", { key: '1193479577bd98c5e02053c190d300e976f8c880', htmlFor: "decline", class: "btn btn-outline-primary jfi-btn-radio-label" }, "Decline coverage")), h("div", { key: '05a9e01a2853a9d94df220b98afd7c310c3f5ebc', class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' } }, "Please select an option"), h("small", { key: 'dd328e16d7584ccb5e36743fb059bbeb7e2d5b14', innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer }))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "justifi-season-interruption-insurance-core"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js
CHANGED
|
@@ -47,7 +47,7 @@ export class SeasonInterruptionInsurance {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h("justifi-season-interruption-insurance-core", { key: '
|
|
50
|
+
return (h("justifi-season-interruption-insurance-core", { key: 'fc932dc338e0fe28348d3cb24701d46315199ea1', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "justifi-season-interruption-insurance"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js
CHANGED
|
@@ -51,7 +51,7 @@ export class PaymentBalanceTransactions {
|
|
|
51
51
|
this.loading = false;
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'b1280a1b4c01852333d7f7786c441556b2be7704' }, h("justifi-table", { key: 'eecf276d17dcf70cb6b52a1756d5699e90b11ea8', columnData: [
|
|
55
55
|
['Processed On', 'The date each transaction occurred'],
|
|
56
56
|
['Type', 'The type of each transaction'],
|
|
57
57
|
['ID', 'The unique identifier of each transaction'],
|
|
@@ -37,14 +37,14 @@ export class PaymentDetailsCore {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
var _a;
|
|
40
|
-
return (h(Host, { key: '
|
|
41
|
-
this.payment && (h("justifi-details", { key: '
|
|
42
|
-
h(DetailSectionTitle, { key: '
|
|
43
|
-
h("div", { key: '
|
|
40
|
+
return (h(Host, { key: 'bd8ae58c2bdc531eaf600ee1496cd7c83e08e65e' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
41
|
+
this.payment && (h("justifi-details", { key: '63b8181d5ee4bf0de531ce03db9246ed6ae0fb0a', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '8081e264446dad39ddfc047f532ee6c14132b479', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPaymentStatusToBadge(this.payment.status) }), title: `${formatCurrency(this.payment.amount)} ${(_a = this.payment) === null || _a === void 0 ? void 0 : _a.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '9dff116d0a3d458cded839834c1709082064c59b', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '8e3cf65ddc5200d9c53acee5c612512f82313439', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: 'e290ebaee2819eb9028b59dbd8999aa9aa1f633a', title: "ID", value: this.payment.id })), h("div", { key: '9450cfae9e007c9ee51e5afdfe528ddde0b0f20c', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'aa7e4d50f0e5f9c018c6b992b37c72d77bdc13c5', sectionTitle: "Details" }), h("div", { key: '427c2d09562f414f4addc4be7a888c737974aa4e', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '56d1a94073dfd1d188c2ffaae3a04718c49ba7e4', title: "Amount", value: formatCurrency(this.payment.amount) }), h(DetailItem, { key: 'a43806e99a08c291b0d9549c1e190be3f1ab859e', title: "Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: '1aac77568d812bfc0c59dbe32de7057c91e84c77', title: "Refunded", value: formatCurrency(this.payment.amount_refunded) }), h(DetailItem, { key: 'b872e82bc21f8861420a88acaa17fcf21242f8cc', title: "Net", value: formatCurrency(this.payment.balance) }), h(DetailItem, { key: '4938fd45955e365069699f02520315e2ca644141', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: 'df86a116579d10f6fb881d7aa6b5df09e0fbbb3f', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '9cdda05db1f2fd2de06efb49dcd91cc04a4bcd6f', title: "Processing Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: 'e85406a153ab40873a32ce80d915b4985bd265ec', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '5d73dfa6965e6f10c2cce84538e8ff6652267525', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
|
|
42
|
+
h(DetailSectionTitle, { key: 'bd668c1a85d1b70e13ea72f2aa1ce507900b8282', sectionTitle: "Payment Method" }),
|
|
43
|
+
h("div", { key: '5d48d49397c47b72ebad7acccce02fe8668a036b', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'f126c5c16e80236e14daf9cf08cec9f87e90b0c3', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: '6c067dc28b2927f4154da58aaedc020458c865a9', title: "Payment Type", value: "Card" }), h(DetailItem, { key: 'a270e68e938e00bfbb0ff8ceeb7146b5067c14a8', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '9fb53acc8b99e50e7a512fa6386251e30218bfd2', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: 'fedeaed5473baabd39571bf4ae85811e5ee6b7a1', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
44
44
|
], this.payment.payment_method.bank_account && [
|
|
45
|
-
h(DetailSectionTitle, { key: '
|
|
46
|
-
h("div", { key: '
|
|
47
|
-
], h(DetailSectionTitle, { key: '
|
|
45
|
+
h(DetailSectionTitle, { key: 'a7f9afc09d110fb8bb9eb7b186d853502691cd18', sectionTitle: "Payment Method" }),
|
|
46
|
+
h("div", { key: '11cc2b588e33d76994daac92e7ed38c410e73354', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '9eae0589fac515298613ad8eaf63733de0f87df8', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '15e1c30ff5dd7f47739f93bb7e55cb3d01dbe874', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '7b8694aec9a33412cc923039f4f5c2dd6c8e3582', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: 'cc4ea781cb71b7bad5ab8070c23b8a7613785ec6', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
47
|
+
], h(DetailSectionTitle, { key: '32d72a16d74b4f2c86375ee441ad3c37649a8dd4', sectionTitle: 'Metadata' }), h("div", { key: 'f8ba0111eb568c65c3c7f2c980dea5dbaa29feea', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'b687420b7b51d0254bf08f423ce661fbf1805d36', metadata: this.payment.metadata })))))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "payment-details-core"; }
|
|
50
50
|
static get originalStyleUrls() {
|
|
@@ -105,15 +105,15 @@ export class PaymentForm {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '6bb1d061cfc89f6b2c501b9d817316d5ffc157a3' }, h("form", { key: '4b53b443d2634bfb6c4c9fdeea8362928ec58a1f', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '53cf08073c4b1562f031633d830d67aad36bcb78', class: "col-12" }, h("justifi-payment-method-selector", { key: 'ab7c6e69cb9c1529359c3f318ae8db5a31208b39', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '351d228acfb01c41217fc60b70d388bdc0a1b44e', class: "col-12" }, h("justifi-payment-method-form", { key: '4a705248eb3ca4b996ed04f27f0f45b06cca27e6', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
|
|
109
109
|
if (el) {
|
|
110
110
|
this.paymentMethodFormRef = el;
|
|
111
111
|
}
|
|
112
|
-
} })), h("div", { key: '
|
|
112
|
+
} })), h("div", { key: '4c3993a6bfcd2dc84ef021247d90b7613fb7a1d8', class: "col-12" }, h("justifi-billing-form", { key: 'e8ec1a4841da81fa35b1f059ab6e657cb3ecc164', legend: "Billing Info", ref: el => {
|
|
113
113
|
if (el) {
|
|
114
114
|
this.billingFormRef = el;
|
|
115
115
|
}
|
|
116
|
-
} })), h("slot", { key: '
|
|
116
|
+
} })), h("slot", { key: 'd4db0a59c4c1fa443d455b25320f310da4688464', name: 'insurance' }), h("div", { key: 'ef9170b0d2745093a7e37f0e00b1369fd77c48e0', class: "col-12" }, h("button", { key: '88ad7f14aacf59a7a07a383f8638d39abb051495', "data-testid": "submit-button", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}` }, this.isLoading ?
|
|
117
117
|
h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")) :
|
|
118
118
|
this.submitButtonText || 'Submit')))));
|
|
119
119
|
}
|
|
@@ -13,7 +13,7 @@ export class PaymentMethodSelector {
|
|
|
13
13
|
this.paymentMethodSelected.emit(event.target.value);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: '30e137216bfc266a9a4eebd8e5d3b5b00d97fdfc', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (h(Fragment, null, h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "justifi-payment-method-selector"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class PaymentsListCore {
|
|
|
50
50
|
}
|
|
51
51
|
;
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: 'd26988b04edadef37245875e037f1f371f1dc24b' }, h("justifi-table", { key: '25ab7f3b3d698e3750f66c99b7bda5a5bbdd11e6', rowClickHandler: e => {
|
|
54
54
|
const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
|
|
55
55
|
if (!clickedPaymentID) {
|
|
56
56
|
return;
|
|
@@ -37,7 +37,7 @@ export class PayoutDetailsCore {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
var _a;
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '1764253926acabb4fcdc546dc8f5e07560b930b6' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '6ae394b602d52259dcb572d3a0285ffc284ca5ce', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'af62dd6b22392a3a1d3a66785e47e6a3c1501163', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '12877fbc28a24a4e2c0b87f6f7400616c8b1dfb1', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '16f30e456e5bc2a4e307f00545a2b5c504be9ec8', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '57dc008142b99346db4a873989d6bf11ee063dac', title: "ID", value: this.payout.id })), h("div", { key: 'b095ec6cd488fd43328d2ba2d2d758a45a6e6601', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '7370109528db056e6461127234b037734e4673bd', sectionTitle: "Details" }), h("div", { key: 'eb0373e8f0389d415e5fedb90e4961bf78e3f6ab', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '7896af63571e147828252b4bab8efb7c2643281f', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'cd8e2f801982f0fd9e84f5c5b8fb8bb29e81dcb3', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '221321757676642619e59ad335e5dfe35c819afb', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: '7dc849e5b73f171196d6b54b27f3259cf723f3c3', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '8dabc9e941d72c250af05d8ef609bbdf79d6fd6b', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: '682ffec70fffbb816a6a3285ea41b892b14c2f20', sectionTitle: "Account" }), h("div", { key: 'cf5eb240de052d1606b80f56ce0a65df409ccff1', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'daa1eef6b21d5d4a682a4c448d7774212d22a284', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '15e729f8a8af79ced76912253abb1d1d7eb102d5', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'a9391287fe87deddb6777aeaa3800c1ee1df6268', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'b4346e6ad32cfda774e6c3730da4d598c1b3baf2', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'e412bc591706f2cad6f0bc71e0e0e039897a4287', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'e97b9b0824b0502e37b48a4c8c0ebc5bbd4bc210', sectionTitle: 'Metadata' }), h("div", { key: '8f179fbae2ce0eb92d173d268bff2e07ad61d5b8', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a3dfe22717eec564d2cbb6f8e4ebaed4ac87b086', metadata: this.payout.metadata })))))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "payout-details-core"; }
|
|
43
43
|
static get originalStyleUrls() {
|
|
@@ -67,7 +67,7 @@ export class PayoutsListCore {
|
|
|
67
67
|
}
|
|
68
68
|
;
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: 'dcbc7c461ec76c6a7b94328a4691f12fa4982c18', exportedparts: tableExportedParts }, h("justifi-table", { key: '7a90e1951f33b03fadb4cb9ac75f6932566042b1', rowClickHandler: (e) => {
|
|
71
71
|
const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
|
|
72
72
|
if (!clickedPayoutID) {
|
|
73
73
|
return;
|
|
@@ -86,7 +86,7 @@ export class ProceedsList {
|
|
|
86
86
|
this.loading = false;
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: 'e81d11c902a038a7d5ae41c6b3b9b84c0d4eda87' }, h("justifi-table", { key: 'c37b037ed04803465ecd2a026899eca133814033', rowClickHandler: (e) => {
|
|
90
90
|
const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;
|
|
91
91
|
if (!clickedProceedID) {
|
|
92
92
|
return;
|
|
@@ -74,7 +74,7 @@ export class RefundForm {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
var _a;
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: 'c1204baf898f32af0e24be0bda2bb4a45b58ffdb' }, h("h1", { key: '80eb0250723dcd9cf55e00915132341608c89d81' }, "Refund"), this.refundInfoText && (h("div", { key: '72899f8bb5e8b13c63643f19a9a7af8ea5b959a3', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '4d49bb939bba038dab3a4450f0b4020e1ac278bf', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '40f32b9e44c3310e0cf82bd5b48aea527d673e19', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '0145bb7fd4db003fc43a978998cc71df54963979', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '1fe07975dff4ec3368ff3090500a3fe21d76f2c9', class: "form-group" }, h("form-control-monetary", { key: 'edc395f0f3bfbb11cde509416d901476abbd08ca', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: 'c95bb3e1d63eac32a8aedfe2e60712c9fa5edadc', class: "form-group" }, h("form-control-text", { key: '77efb3d1e87fcb991f76b6e6f704bd36221e62d1', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '1e7502abf193475b82c614a60bf1f23549472328', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '41a7173e4ac2b7fb2515f382a13d772e3e68ab3b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "justifi-refund-form"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class Skeleton {
|
|
|
37
37
|
render() {
|
|
38
38
|
const TagType = this.component;
|
|
39
39
|
const combinedStyle = Object.assign(Object.assign(Object.assign({}, this.styles), this.getVariantStyle()), { animation: `pulseAnimation 2s ease-in-out 0.5s infinite`, width: this.width, height: this.height, backgroundColor: 'var(--jfi-skeleton-waveAnimation-bg, #f5f5f5)' });
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '28b7841a41b91cf14b25a4b706f1eed2be2f159a' }, h(TagType, { key: 'fae2a53cfeba46d4616e36b4fae6121e012126af', class: this.componentClassName, style: combinedStyle })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "justifi-skeleton"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class SubaccountAccountDetails {
|
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
var _a, _b, _c;
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'cd0e16338d2ebb6aef47dd475099ee2c1a1d5f0b' }, h("div", { key: '472202ea9883d6eaa058e83d3667408ed1863b13', class: 'p-2' }, h(DetailSectionTitle, { key: 'dc24de45e8f71049013f9a9ee4bf655468b8c79e', sectionTitle: 'Account Details' }), h("div", { key: '716eaf541a1e87b142199faef0ec516b85104cbf', class: "d-table gap-2 w-100" }, h("div", { key: '306a9820aaa61ffadfa48211749602ddba94cc97', class: "row gy-3" }, h("div", { key: '4e4d1ce72f50186bea3e1dc0085977005d90962b', class: "col-12 col-md-6" }, h(DetailItem, { key: '7b7b3642657761ce15b351a5c0ce80274432a9c4', title: 'Name', value: (_a = this.subaccount) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { key: 'b3780d1d6a775729be37db622ed4f997acd75b64', title: 'Terms of Service Accepted', value: (_c = (_b = this.onboardingData) === null || _b === void 0 ? void 0 : _b.payload) === null || _c === void 0 ? void 0 : _c.terms_and_conditions.accepted.toString() }), h(DetailItem, { key: '728660c7f667a0c42ae42ed6d7d7cd93a75df958', title: 'Business Entity', value: 'something here' })))))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "subaccount-account-details"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ export class SubaccountBankDetails {
|
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
8
|
var _a, _b, _c, _d, _e;
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '00d4b197f2ee6a1e58b88ce36ba959862f004f36' }, h(DetailSectionTitle, { key: '12df477fef399195d87eecf1ef28719b3fa10cfa', sectionTitle: 'Bank Account Details' }), h("div", { key: 'f48b6579b863cb659da9b618c90122cffe7d06cc', class: "d-table gap-2 w-100" }, h("div", { key: '6da7cda678d897a5624e4f4583c1892f0cc9ec2b', class: "row gy-3" }, h("div", { key: 'cc9255ae7d292688cd6070a1b37bcf58d4caca78', class: "col-12 col-md-6" }, h(DetailItem, { key: '8ef106e427ac5b5f4dc1529ebefc6eec7eba7a7f', title: "Bank Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.bank_name }), h(DetailItem, { key: 'ce32a2b1fc966795d60408095ed7c8edbf3abcee', title: "Account Type", value: (_b = this.data) === null || _b === void 0 ? void 0 : _b.account_type }), h(DetailItem, { key: '80e3fb7396a16524d0437db49d3ab3b22668d73d', title: "Account Number", value: (_c = this.data) === null || _c === void 0 ? void 0 : _c.account_number }), h(DetailItem, { key: '88a36bec385523e6829ce2643d52c697a7002399', title: "Routing Number", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.routing_number }), h(DetailItem, { key: 'b51e0c3445563fc9fc6f52e3037c969e7ec3eefa', title: "Account Nickname", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.account_nickname }))))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "subaccount-bank-details"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +56,7 @@ export class SubaccountDetails {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b;
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: 'e8ea59f40b5ecb11510f2481b867626fa0519d36' }, this.loading && LoadingState, !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.subaccount && this.onboardingData && (h("justifi-details", { key: 'ee4566efe203baaddaa09902d8cf5219198a6cd1' }, h(EntityHeadInfo, { key: 'b063c9ef0649f118b00e4538b13a141620168427', slot: 'head-info', badge: h("span", { slot: 'badge', innerHTML: MapSubAccountStatusToBadge(this.subaccount.status) }), title: this.subaccount.name }, h(EntityHeadInfoItem, { key: '3ab38d25fd53cba0e33da35d952459e2db644a4d', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.subaccount.created_at)} ${formatTime(this.subaccount.created_at)}` }), h(EntityHeadInfoItem, { key: 'c084194ddb1e99bbc78733dd9f651f13b42f39c2', classes: "border-1 border-end", title: "Last Updated", value: `${formatDate(this.subaccount.updated_at)} ${formatTime(this.subaccount.updated_at)}` }), h(EntityHeadInfoItem, { key: 'c8b1be96a054a84628eab49aad3ffaca768e4621', title: "ID", value: this.subaccount.id })), h("div", { key: '3b85e0eb44e58be561f274996bbdf98cf3069cd3', slot: 'detail-sections' }, h("subaccount-account-details", { key: 'c0e5403cb63591fa37025868f7704513d032ce4f', subaccount: this.subaccount, onboardingData: this.onboardingData }), h("subaccount-merchant-details", { key: '66833414a707ee82d719799fafb56e71b6defbc7', onboardingData: this.onboardingData }), h("subaccount-representative-details", { key: '63b9a1533a475de5bd8d2f4c4ee0ff4d9a118cff', data: (_a = this.onboardingData.payload) === null || _a === void 0 ? void 0 : _a.representative }), h("subaccount-owners-details", { key: '7ccab7251f6456c98b7e08716e5349df479deb10', data: (_b = this.onboardingData.payload) === null || _b === void 0 ? void 0 : _b.owners }))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "justifi-subaccount-details"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class SubaccountMerchantDetails {
|
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'c292d22139e739f35772ca68bc4726b8ff350fb6' }, h("div", { key: '6f8b425c395680a46f0b3bc8ebbb8d5a00dfadae', class: 'p-2' }, h(DetailSectionTitle, { key: '25e41c44d09b6caf53ab13ba816eaf69b6203a85', sectionTitle: 'Merchant Details' }), h("div", { key: '5ad248d5e3e9d21847d59c8a180288a2c906ffa2', class: "d-table gap-2 w-100" }, h("div", { key: '5d295ac9ddf798c7287b94794e6b08347dfe9dc6', class: "row gy-3" }, h("div", { key: '484061fcd6c435f57884bb07d9caa25c3419704c', class: "col-12 col-md-6" }, h(DetailItem, { key: 'f169e1f600cf5955819a74b5e40abbf1e703f87e', title: 'Doing Business As', value: (_d = (_c = (_b = (_a = this.onboardingData) === null || _a === void 0 ? void 0 : _a.payload) === null || _b === void 0 ? void 0 : _b.business_details) === null || _c === void 0 ? void 0 : _c.doing_business_as) === null || _d === void 0 ? void 0 : _d.name }), h(DetailItem, { key: 'aff1f2df278d9469058b92864ebc481bc4205d38', title: 'Website', value: (_g = (_f = (_e = this.onboardingData) === null || _e === void 0 ? void 0 : _e.payload) === null || _f === void 0 ? void 0 : _f.business_details) === null || _g === void 0 ? void 0 : _g.url }), h(DetailItem, { key: '893d499e3c996b512d2b0bb15d78cddc69fa41b9', title: 'Business Email', value: (_k = (_j = (_h = this.onboardingData) === null || _h === void 0 ? void 0 : _h.payload) === null || _j === void 0 ? void 0 : _j.business_details) === null || _k === void 0 ? void 0 : _k.email }), h(DetailItem, { key: 'fb05704be4cf4cc89141b33478e78eec1beb6918', title: 'Phone Number', value: (_o = (_m = (_l = this.onboardingData) === null || _l === void 0 ? void 0 : _l.payload) === null || _m === void 0 ? void 0 : _m.business_details) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { key: 'b7127757cb474f26e7724b2cfa9771861f53fa01', title: 'Address', value: ((_r = (_q = (_p = this.onboardingData) === null || _p === void 0 ? void 0 : _p.payload) === null || _q === void 0 ? void 0 : _q.business_details) === null || _r === void 0 ? void 0 : _r.legal) ? `${formatLegalAddress((_u = (_t = (_s = this.onboardingData) === null || _s === void 0 ? void 0 : _s.payload) === null || _t === void 0 ? void 0 : _t.business_details) === null || _u === void 0 ? void 0 : _u.legal)}` : '' })), h("div", { key: '1442afcbc5596bca14dc42b3e370ef2d7a71a08d', class: "col-12 col-md-6" }, h(DetailItem, { key: '3a87c5dcf53aa26f94a1bb36b8079b0e5e789960', title: 'Business Type', value: (_x = (_w = (_v = this.onboardingData) === null || _v === void 0 ? void 0 : _v.payload) === null || _w === void 0 ? void 0 : _w.business_details) === null || _x === void 0 ? void 0 : _x.type })))))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "subaccount-merchant-details"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class SubaccountOwnersDetails {
|
|
|
5
5
|
this.data = undefined;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '78af202edc189303c4269d2eaae132d8d77146c3' }, h("div", { key: 'dc9bcd1f5865d932e3bcfac1ea75781b1c066508', class: 'p-2' }, h(DetailSectionTitle, { key: 'e6dc0b2a7148a0a1ee743dcd18d2d3e704f5aa69', sectionTitle: 'Owners' }), h("div", { key: '621b36a20213ea39d6445f07f55cece67a2236a9', class: "d-table gap-2 w-100" }, h("div", { key: 'f051e428d70320160b5df0f233ac4810077dc271', class: "row gy-3" }, this.data && this.data.map((owner) => {
|
|
9
9
|
return (h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Owner Name', value: owner.name }), h(DetailItem, { title: 'Owner Title', value: owner.title }), h(DetailItem, { title: 'Owner Email', value: owner.email }), h(DetailItem, { title: 'Owner Phone', value: owner.phone })));
|
|
10
10
|
}))))));
|
|
11
11
|
}
|
|
@@ -7,7 +7,7 @@ export class SubaccountRepresentativeDetails {
|
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '32ecf79741224f804c07d1462513580f78e8cc46' }, h("div", { key: 'd8145152a1d500d30ec0a1061f34b05f233285d2', class: 'p-2' }, h(DetailSectionTitle, { key: 'ff108c4d47d7f6fbb6fc35b60a06a6f2bced5265', sectionTitle: 'Representative' }), h("div", { key: '01f873844e226b7ddcecb11bb74343cc9eecc79e', class: "d-table gap-2 w-100" }, h("div", { key: 'f96824ae51c6abf793f7192abc8be2de72f97087', class: "row gy-3" }, h("div", { key: '44578684c003715c08757b136f0e9cb1c25babf7', class: "col-12 col-md-6" }, h(DetailItem, { key: 'dddfad5ad7f40f469fad606ba13d327a01cca970', title: "Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { key: '31cf46902039786682bd627628102dd927f7bb5e', title: "Date of Birth", value: formatMediumDate(new Date(Number((_b = this.data) === null || _b === void 0 ? void 0 : _b.dob_year), Number((_c = this.data) === null || _c === void 0 ? void 0 : _c.dob_month) - 1, Number((_d = this.data) === null || _d === void 0 ? void 0 : _d.dob_day))) }), h(DetailItem, { key: '3182b14e463a49aaaa5244646e57a734574116e9', title: "Email", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.email }), h(DetailItem, { key: 'ba1ed0e89c5b6f38a690eecbfd799ec3731cf1a2', title: "Last 4 SSN Digits", value: (_f = this.data) === null || _f === void 0 ? void 0 : _f.ssn_last4 })), h("div", { key: '089ac2181ef46139011fa617cfb38e498fbc74a7', class: "col-12 col-md-6" }, h(DetailItem, { key: '14a13031419494a9e1c302397ab54b995d0abcc1', title: "Title", value: (_g = this.data) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { key: 'e96ec9dd1e0d642f1eb48bfd69be6cdbc40b8110', title: "Phone", value: (_h = this.data) === null || _h === void 0 ? void 0 : _h.phone }), h(DetailItem, { key: 'c68e779afdb3b31e5e8628e036b7fae6bc319f42', title: "Representative Address", value: (_j = this.data) === null || _j === void 0 ? void 0 : _j.address_line1 })))))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "subaccount-representative-details"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ export class SubaccountTermsDetails {
|
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
8
|
var _a, _b, _c, _d;
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'dfa4a1103939bd6b7078a0f669f94a93e1e76c07' }, h(DetailSectionTitle, { key: 'd304dcf3046ae24d0d23991323467214f50089d1', sectionTitle: 'Terms and Conditions' }), h("div", { key: '61fd1cd1ec00585abc5964798fc73e58525ffe75', class: "d-table gap-2 w-100" }, h("div", { key: 'a38bf7e19a3280b5b8a78e255ae8f42b013869dd', class: "row gy-3" }, h("div", { key: '80612f89bb5d757f5a925310301e8c9185526202', class: "col-12 col-md-6" }, h(DetailItem, { key: '50bef6ff3dec8796d0f332bd93b407c4bb87417a', title: "IP", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.ip }), h(DetailItem, { key: '98b4d284c0fc7b55fa2fdb9e5a20436f64969797', title: "Accepted?", value: (_c = (_b = this.data) === null || _b === void 0 ? void 0 : _b.accepted) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { key: '591109fe30a1d6700ff7b57faac0acfac7d2d8ed', title: "User Agent", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.user_agent }))))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "subaccount-terms-details"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class SubaccountsList {
|
|
|
50
50
|
this.loading = false;
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: 'c967447440e0ed6993e6a96ea02ef9cd72dfaaec' }, h("justifi-table", { key: 'f1675c85915a330510be1e3469a712d7cececa0b', rowClickHandler: e => {
|
|
54
54
|
const clickSubAccountId = e.target.closest('tr').dataset.rowEntityId;
|
|
55
55
|
if (!clickSubAccountId) {
|
|
56
56
|
return;
|
|
@@ -157,6 +157,11 @@ export function snakeCaseToHumanReadable(snakeCaseStr) {
|
|
|
157
157
|
export function camelToKebab(str) {
|
|
158
158
|
return str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();
|
|
159
159
|
}
|
|
160
|
+
export function snakeToCamel(str) {
|
|
161
|
+
if (!str)
|
|
162
|
+
return '';
|
|
163
|
+
return str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
|
|
164
|
+
}
|
|
160
165
|
export function flattenNestedObject(obj) {
|
|
161
166
|
const result = {};
|
|
162
167
|
for (const key in obj) {
|