@justifi/webcomponents 6.7.3 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Business-uoeKyW_a.js → Business-CB8EVrhD.js} +1 -0
- package/dist/cjs/{GooglePay-CbKCUEfb.js → Plaid-DxPvVu0H.js} +53 -0
- package/dist/cjs/{bank-account-document-form-inputs_8.cjs.entry.js → bank-account-document-form-inputs_9.cjs.entry.js} +330 -8
- package/dist/cjs/{business-additional-questions-schema-BtOuMq_U.js → business-additional-questions-schema-Cnh6AXQU.js} +3 -3
- package/dist/cjs/{business-form-options-D1r-wJpo.js → business-form-options-B3CbEmdc.js} +1 -1
- package/dist/cjs/{business-identity-schema-CMvq6f8m.js → business-identity-schema-0jg2Thn9.js} +2 -2
- package/dist/cjs/{business.service-DR4Ce5XV.js → business.service-zGEitIbP.js} +2 -2
- package/dist/cjs/{check-pkg-version-Bs_9oZb4.js → check-pkg-version-DKH70uPq.js} +11 -10
- package/dist/cjs/{checkout.service-CQqd4X4y.js → checkout.service-DT13pWxH.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{country-config-DGi9t3Ma.js → country-config-ETD-7Wb7.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +48 -17
- package/dist/cjs/{dispute.service-aok1_zRv.js → dispute.service-GDUl1Wjs.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_3.cjs.entry.js +6 -6
- package/dist/cjs/{get-business-CtsxSYA6.js → get-business-CP0ALW9n.js} +1 -1
- package/dist/cjs/{get-payment-details-tCICJHBb.js → get-payment-details-IA5Toi7Z.js} +3 -3
- package/dist/cjs/{get-subaccounts-BcsCQAVN.js → get-subaccounts-DNMZjAyT.js} +3 -3
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/{input-handlers-DaRKFvGI.js → input-handlers-gV1LyFy3.js} +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +15 -15
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +31 -18
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +220 -290
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +10 -10
- package/dist/cjs/justifi-checkout.cjs.entry.js +12 -12
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -9
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DcGEg97O.js → package-B4vs5j7c.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payment.service-B4ACB8Q3.js → payment.service-QODfB293.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{payout.service-qVbNnemO.js → payout.service-k7GBuYzk.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
- package/dist/cjs/plaid-icon-DTpONc_Q.js +46 -0
- package/dist/cjs/{schema-validations-DYYDrVol.js → schema-validations-BakyfJpE.js} +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -3
- package/dist/cjs/{terminal-orders-table-C2jG4WQa.js → terminal-orders-table-C6j6Mx_r.js} +4 -4
- package/dist/cjs/{terminal.service-D1ohedi-.js → terminal.service-A90K3XNq.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +2 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Analytics.js +8 -7
- package/dist/collection/api/Business.js +1 -0
- package/dist/collection/api/Plaid.js +50 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/plaid.service.js +13 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +20 -5
- package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +433 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +4 -51
- package/dist/collection/ui-components/custom-popper/custom-popper.js +52 -18
- package/dist/docs.json +145 -4
- package/dist/esm/{Business-CHJTjG_5.js → Business-GgW1g7FQ.js} +1 -0
- package/dist/esm/{GooglePay-5EiPffHy.js → Plaid-CBrksnBN.js} +52 -1
- package/dist/esm/{bank-account-document-form-inputs_8.entry.js → bank-account-document-form-inputs_9.entry.js} +329 -8
- package/dist/esm/{business-additional-questions-schema-DQb10ehS.js → business-additional-questions-schema-CQ8CuEfQ.js} +3 -3
- package/dist/esm/{business-form-options-Bm89rMmk.js → business-form-options-DamBLV7N.js} +1 -1
- package/dist/esm/{business-identity-schema-CaMnpPqx.js → business-identity-schema-BTyJz7M9.js} +2 -2
- package/dist/esm/{business.service-C7smiL6_.js → business.service-BWm7Kqs4.js} +2 -2
- package/dist/esm/{check-pkg-version-DIZ2yD72.js → check-pkg-version-CioeuqLV.js} +11 -10
- package/dist/esm/{checkout.service-CYq6KXZv.js → checkout.service-D4Mljqjr.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +2 -2
- package/dist/esm/{country-config-CQxaTFuP.js → country-config-D-9YmU94.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +48 -17
- package/dist/esm/{dispute.service-D7Dv8LTn.js → dispute.service-ZpqfPDC0.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +3 -3
- package/dist/esm/form-control-number-masked_3.entry.js +2 -2
- package/dist/esm/form-control-number_3.entry.js +6 -6
- package/dist/esm/{get-business-BAmwId14.js → get-business-BMB2IxN_.js} +1 -1
- package/dist/esm/{get-payment-details-CPJZp31y.js → get-payment-details-B71Qi6mF.js} +2 -2
- package/dist/esm/{get-subaccounts-CqMFocN0.js → get-subaccounts-DXJdRbWg.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/{input-handlers-AgwQ-yKX.js → input-handlers-CzWCJ849.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +4 -4
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +25 -12
- package/dist/esm/justifi-apple-pay_8.entry.js +6 -76
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +10 -10
- package/dist/esm/justifi-checkout.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +6 -6
- package/dist/esm/justifi-dispute-management.entry.js +5 -5
- package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-order-terminals.entry.js +7 -7
- package/dist/esm/justifi-payment-details.entry.js +6 -6
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +6 -6
- package/dist/esm/justifi-refund-payment.entry.js +6 -6
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +6 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-ZkBwsSuI.js → package-CekpA_KC.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +2 -2
- package/dist/esm/{payment.service-BGf8F56_.js → payment.service-C2lFq1yV.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +2 -2
- package/dist/esm/{payout.service-Co3xg-7j.js → payout.service-ChupMPKT.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +2 -2
- package/dist/esm/plaid-icon-wJLd-2NX.js +43 -0
- package/dist/esm/{schema-validations-jBrJ0mYI.js → schema-validations-CfHWzMvr.js} +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +3 -3
- package/dist/esm/{terminal-orders-table-uNYLd8i5.js → terminal-orders-table-B4_RAxxx.js} +2 -2
- package/dist/esm/{terminal.service-Cxs-IO0Z.js → terminal.service-DqibXFHt.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +2 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +9 -8
- package/dist/module/Business.js +1 -0
- package/dist/module/{Refund.js → Plaid.js} +51 -1
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step.js +46 -25
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/business.service.js +1 -1
- package/dist/module/checkout.service.js +1 -1
- package/dist/module/checkout.store.js +1 -1
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +50 -17
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-response-actions.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/get-business.js +1 -1
- package/dist/module/get-payment-details.js +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/google-pay.js +1 -1
- package/dist/module/internal-tokenize-payment-method2.js +1 -1
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +69 -63
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/modular-checkout.js +2 -2
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +67 -61
- package/dist/module/payment-provisioning-form-steps.js +62 -56
- package/dist/module/payment.service.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout.service.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-icon.js +3 -0
- package/dist/module/plaid-payment-method.js +3 -53
- package/dist/module/plaid-verification.d.ts +11 -0
- package/dist/module/plaid-verification.js +6 -0
- package/dist/module/plaid-verification2.js +358 -0
- package/dist/module/plaid.service.js +14 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal.service.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/utils4.js +1 -1
- package/dist/types/api/Analytics.d.ts +1 -0
- package/dist/types/api/BankAccount.d.ts +1 -0
- package/dist/types/api/Business.d.ts +2 -0
- package/dist/types/api/Plaid.d.ts +54 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/plaid.service.d.ts +8 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.d.ts +36 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -25
- package/dist/types/components.d.ts +40 -1
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +4 -0
- package/dist/webcomponents/{p-BXdZKjdB.js → p--cI8fPJx.js} +1 -1
- package/dist/webcomponents/{p-66e8b443.entry.js → p-02f360c5.entry.js} +1 -1
- package/dist/webcomponents/{p-d0d6d1cc.entry.js → p-073ca03f.entry.js} +1 -1
- package/dist/webcomponents/{p-e9daf75f.entry.js → p-0eb97b54.entry.js} +1 -1
- package/dist/webcomponents/p-0fcb7ebb.entry.js +1 -0
- package/dist/webcomponents/{p-b2371f43.entry.js → p-110bec2e.entry.js} +1 -1
- package/dist/webcomponents/{p-931ea171.entry.js → p-1ec3d1e7.entry.js} +1 -1
- package/dist/webcomponents/{p-86db9040.entry.js → p-20cab5fe.entry.js} +1 -1
- package/dist/webcomponents/{p-a9b493c1.entry.js → p-238ba771.entry.js} +1 -1
- package/dist/webcomponents/{p-e11c7df0.entry.js → p-2454c140.entry.js} +1 -1
- package/dist/webcomponents/{p-5af4bb01.entry.js → p-25666afe.entry.js} +1 -1
- package/dist/webcomponents/{p-f5f46f2d.entry.js → p-26430bfe.entry.js} +1 -1
- package/dist/webcomponents/p-33ab9174.entry.js +1 -0
- package/dist/webcomponents/{p-f13c4a88.entry.js → p-3a254390.entry.js} +1 -1
- package/dist/webcomponents/p-4a802f82.entry.js +1 -0
- package/dist/webcomponents/p-4b928d2e.entry.js +1 -0
- package/dist/webcomponents/{p-252bd81d.entry.js → p-4d3e4e56.entry.js} +1 -1
- package/dist/webcomponents/{p-7184c2f8.entry.js → p-5ae3401d.entry.js} +1 -1
- package/dist/webcomponents/{p-4165281d.entry.js → p-7068c2ad.entry.js} +1 -1
- package/dist/webcomponents/{p-4786d1ea.entry.js → p-785e8ef7.entry.js} +1 -1
- package/dist/webcomponents/{p-50f16cca.entry.js → p-81bbd944.entry.js} +1 -1
- package/dist/webcomponents/{p-3d2495df.entry.js → p-8ac883e4.entry.js} +1 -1
- package/dist/webcomponents/{p-6ed0be7f.entry.js → p-8e6f2dc8.entry.js} +1 -1
- package/dist/webcomponents/{p-53be30e9.entry.js → p-8ed4f485.entry.js} +1 -1
- package/dist/webcomponents/p-922ddfb4.entry.js +1 -0
- package/dist/webcomponents/p-9643fe36.entry.js +1 -0
- package/dist/webcomponents/{p-Ce785aMx.js → p-B1AMrMly.js} +1 -1
- package/dist/webcomponents/{p-DDjKoqh6.js → p-BRPbLfCN.js} +1 -1
- package/dist/webcomponents/{p-BAu40WfT.js → p-BZbvHgMz.js} +1 -1
- package/dist/webcomponents/{p-APob2Eta.js → p-Bj9n56jK.js} +1 -1
- package/dist/webcomponents/p-By-Mu1IX.js +1 -0
- package/dist/webcomponents/p-C0dMwnDO.js +1 -0
- package/dist/webcomponents/p-C3RQHKL5.js +1 -0
- package/dist/webcomponents/{p-DBOsYeYk.js → p-CWyW004b.js} +1 -1
- package/dist/webcomponents/p-CekpA_KC.js +1 -0
- package/dist/webcomponents/p-CkYB1zGe.js +1 -0
- package/dist/webcomponents/p-D-07jgNC.js +1 -0
- package/dist/webcomponents/{p-C-LV3hNf.js → p-DCwnBXF7.js} +1 -1
- package/dist/webcomponents/p-DKemQxaE.js +1 -0
- package/dist/webcomponents/{p-CHJTjG_5.js → p-GgW1g7FQ.js} +1 -1
- package/dist/webcomponents/{p-NO0z-S2W.js → p-MVBgKFOv.js} +1 -1
- package/dist/webcomponents/{p-mhEMV8M-.js → p-Y-EhaLdV.js} +1 -1
- package/dist/webcomponents/{p-e5651bb1.entry.js → p-aa02e3d7.entry.js} +1 -1
- package/dist/webcomponents/p-adbe280f.entry.js +1 -0
- package/dist/webcomponents/{p-ea0cd47d.entry.js → p-af11ac6a.entry.js} +1 -1
- package/dist/webcomponents/{p-73b9cc29.entry.js → p-bbffb17f.entry.js} +1 -1
- package/dist/webcomponents/{p-782ccafb.entry.js → p-c0829d61.entry.js} +1 -1
- package/dist/webcomponents/{p-001ce9f8.entry.js → p-c2db5db6.entry.js} +1 -1
- package/dist/webcomponents/{p-79d1d6b3.entry.js → p-d4535236.entry.js} +1 -1
- package/dist/webcomponents/{p-e1a8785d.entry.js → p-d5827cb2.entry.js} +1 -1
- package/dist/webcomponents/{p-1eefdd41.entry.js → p-ed9db5b2.entry.js} +1 -1
- package/dist/webcomponents/{p-c11512e7.entry.js → p-f1e012f6.entry.js} +1 -1
- package/dist/webcomponents/{p-1dbf3473.entry.js → p-f1f0f100.entry.js} +1 -1
- package/dist/webcomponents/{p-7c4fa66f.entry.js → p-f5b7c322.entry.js} +1 -1
- package/dist/webcomponents/{p-bc56446a.entry.js → p-f9475bb0.entry.js} +1 -1
- package/dist/webcomponents/{p-4d7a2565.entry.js → p-ff1cff1d.entry.js} +1 -1
- package/dist/webcomponents/{p-D81X4BBI.js → p-g0kDRH6Z.js} +1 -1
- package/dist/webcomponents/{p-Bz97Ujvk.js → p-m_Ly-YPk.js} +1 -1
- package/dist/webcomponents/p-wSi5d4-j.js +1 -0
- package/dist/webcomponents/{p-BhvkOTYA.js → p-ygekUw3Q.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -1
- package/dist/webcomponents/p-0fb3fd77.entry.js +0 -1
- package/dist/webcomponents/p-198d2941.entry.js +0 -1
- package/dist/webcomponents/p-52203b01.entry.js +0 -1
- package/dist/webcomponents/p-639e5ce9.entry.js +0 -1
- package/dist/webcomponents/p-7ec771bc.entry.js +0 -1
- package/dist/webcomponents/p-D0PhRMmy.js +0 -1
- package/dist/webcomponents/p-DLLFAj4z.js +0 -1
- package/dist/webcomponents/p-DpkIbI5R.js +0 -1
- package/dist/webcomponents/p-MBH9QO2m.js +0 -1
- package/dist/webcomponents/p-ZkBwsSuI.js +0 -1
- package/dist/webcomponents/p-_LSWCi-4.js +0 -1
- package/dist/webcomponents/p-c5afb831.entry.js +0 -1
- package/dist/webcomponents/p-d55c348b.entry.js +0 -1
- package/dist/webcomponents/p-y-FoILTI.js +0 -1
|
@@ -1800,38 +1800,66 @@ const CustomPopper = class {
|
|
|
1800
1800
|
this.placement = 'bottom';
|
|
1801
1801
|
this.offset = [0, 10];
|
|
1802
1802
|
this.strategy = 'absolute';
|
|
1803
|
-
this.trigger = 'click';
|
|
1803
|
+
this.trigger = 'click';
|
|
1804
1804
|
this.isOpen = false;
|
|
1805
|
+
this.initialized = false;
|
|
1806
|
+
this.boundHandlers = {
|
|
1807
|
+
show: null,
|
|
1808
|
+
hide: null,
|
|
1809
|
+
handleClick: null,
|
|
1810
|
+
};
|
|
1811
|
+
}
|
|
1812
|
+
onAnchorRefChange(newValue) {
|
|
1813
|
+
if (newValue && this.popperContentRef && !this.initialized) {
|
|
1814
|
+
this.initPopper();
|
|
1815
|
+
}
|
|
1805
1816
|
}
|
|
1806
1817
|
componentDidLoad() {
|
|
1818
|
+
if (this.anchorRef && this.popperContentRef) {
|
|
1819
|
+
this.initPopper();
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
initPopper() {
|
|
1823
|
+
if (this.initialized)
|
|
1824
|
+
return;
|
|
1825
|
+
this.initialized = true;
|
|
1826
|
+
// Store bound references
|
|
1827
|
+
this.boundHandlers.show = this.show.bind(this);
|
|
1828
|
+
this.boundHandlers.hide = this.hide.bind(this);
|
|
1829
|
+
this.boundHandlers.handleClick = this.handleClick.bind(this);
|
|
1807
1830
|
this.popperInstance = createPopper(this.anchorRef, this.popperContentRef, this.popperOptions);
|
|
1808
1831
|
if (this.trigger === 'click') {
|
|
1809
|
-
window.addEventListener('click', this.handleClick
|
|
1832
|
+
window.addEventListener('click', this.boundHandlers.handleClick);
|
|
1810
1833
|
}
|
|
1811
1834
|
else if (this.trigger === 'hover') {
|
|
1812
|
-
this.anchorRef.addEventListener('mouseenter', this.show
|
|
1813
|
-
this.anchorRef.addEventListener('mouseleave', this.hide
|
|
1814
|
-
this.popperContentRef.addEventListener('mouseenter', this.show
|
|
1815
|
-
this.popperContentRef.addEventListener('mouseleave', this.hide
|
|
1835
|
+
this.anchorRef.addEventListener('mouseenter', this.boundHandlers.show);
|
|
1836
|
+
this.anchorRef.addEventListener('mouseleave', this.boundHandlers.hide);
|
|
1837
|
+
this.popperContentRef.addEventListener('mouseenter', this.boundHandlers.show);
|
|
1838
|
+
this.popperContentRef.addEventListener('mouseleave', this.boundHandlers.hide);
|
|
1816
1839
|
}
|
|
1817
1840
|
else if (this.trigger === 'focus') {
|
|
1818
|
-
this.anchorRef.addEventListener('focus', this.show
|
|
1819
|
-
this.anchorRef.addEventListener('blur', this.hide
|
|
1841
|
+
this.anchorRef.addEventListener('focus', this.boundHandlers.show);
|
|
1842
|
+
this.anchorRef.addEventListener('blur', this.boundHandlers.hide);
|
|
1820
1843
|
}
|
|
1821
1844
|
}
|
|
1822
1845
|
disconnectedCallback() {
|
|
1846
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1847
|
+
if (!this.initialized)
|
|
1848
|
+
return;
|
|
1849
|
+
// Clean up popper instance
|
|
1850
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
1823
1851
|
if (this.trigger === 'click') {
|
|
1824
|
-
window.removeEventListener('click', this.handleClick
|
|
1852
|
+
window.removeEventListener('click', this.boundHandlers.handleClick);
|
|
1825
1853
|
}
|
|
1826
1854
|
else if (this.trigger === 'hover') {
|
|
1827
|
-
this.anchorRef.removeEventListener('mouseenter', this.show
|
|
1828
|
-
this.anchorRef.removeEventListener('mouseleave', this.hide
|
|
1829
|
-
this.popperContentRef.removeEventListener('mouseenter', this.show
|
|
1830
|
-
this.popperContentRef.removeEventListener('mouseleave', this.hide
|
|
1855
|
+
(_b = this.anchorRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseenter', this.boundHandlers.show);
|
|
1856
|
+
(_c = this.anchorRef) === null || _c === void 0 ? void 0 : _c.removeEventListener('mouseleave', this.boundHandlers.hide);
|
|
1857
|
+
(_d = this.popperContentRef) === null || _d === void 0 ? void 0 : _d.removeEventListener('mouseenter', this.boundHandlers.show);
|
|
1858
|
+
(_e = this.popperContentRef) === null || _e === void 0 ? void 0 : _e.removeEventListener('mouseleave', this.boundHandlers.hide);
|
|
1831
1859
|
}
|
|
1832
1860
|
else if (this.trigger === 'focus') {
|
|
1833
|
-
this.anchorRef.removeEventListener('focus', this.show
|
|
1834
|
-
this.anchorRef.removeEventListener('blur', this.hide
|
|
1861
|
+
(_f = this.anchorRef) === null || _f === void 0 ? void 0 : _f.removeEventListener('focus', this.boundHandlers.show);
|
|
1862
|
+
(_g = this.anchorRef) === null || _g === void 0 ? void 0 : _g.removeEventListener('blur', this.boundHandlers.hide);
|
|
1835
1863
|
}
|
|
1836
1864
|
}
|
|
1837
1865
|
handleClick(event) {
|
|
@@ -1875,7 +1903,7 @@ const CustomPopper = class {
|
|
|
1875
1903
|
this.hideEvent.emit();
|
|
1876
1904
|
}
|
|
1877
1905
|
render() {
|
|
1878
|
-
return (index.h("div", { key: '
|
|
1906
|
+
return (index.h("div", { key: '2d57f47cc668826c2a72d70d3a0404837398a646' }, index.h("style", { key: '6d02bdb47dd36a529d2e8ae3f2b4adad6c8cdf88' }, `
|
|
1879
1907
|
.popper-content {
|
|
1880
1908
|
display: none;
|
|
1881
1909
|
}
|
|
@@ -1883,8 +1911,11 @@ const CustomPopper = class {
|
|
|
1883
1911
|
display: block;
|
|
1884
1912
|
z-index: 1030;
|
|
1885
1913
|
}
|
|
1886
|
-
`), index.h("div", { key: '
|
|
1914
|
+
`), index.h("div", { key: 'fdcb769c70b92532427e09fdaa5bbdffc59c8ac3', class: "popper-content", ref: (el) => this.popperContentRef = el }, index.h("slot", { key: '1cdd517d323181dee0f2a345406d07432889ee21' }))));
|
|
1887
1915
|
}
|
|
1916
|
+
static get watchers() { return {
|
|
1917
|
+
"anchorRef": ["onAnchorRefChange"]
|
|
1918
|
+
}; }
|
|
1888
1919
|
};
|
|
1889
1920
|
|
|
1890
1921
|
const TooltipComponent = class {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var Api = require('./Api-CVbEWBG6.js');
|
|
4
4
|
require('./ComponentError-D4OLnOkg.js');
|
|
5
|
-
require('./
|
|
5
|
+
require('./Plaid-DxPvVu0H.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
7
|
-
require('./Business-
|
|
7
|
+
require('./Business-CB8EVrhD.js');
|
|
8
8
|
require('./Dispute-CruQTF6_.js');
|
|
9
9
|
|
|
10
10
|
const api = Api.Api();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var parts = require('./parts-BsBVknuf.js');
|
|
5
|
-
var businessFormOptions = require('./business-form-options-
|
|
5
|
+
var businessFormOptions = require('./business-form-options-B3CbEmdc.js');
|
|
6
6
|
var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
|
|
7
|
-
var Business = require('./Business-
|
|
8
|
-
var countryConfig = require('./country-config-
|
|
7
|
+
var Business = require('./Business-CB8EVrhD.js');
|
|
8
|
+
var countryConfig = require('./country-config-ETD-7Wb7.js');
|
|
9
9
|
|
|
10
10
|
const FormAlert = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -5,9 +5,9 @@ var index$1 = require('./index-1MT3Z4XI.js');
|
|
|
5
5
|
var parts = require('./parts-BsBVknuf.js');
|
|
6
6
|
var formControlErrorText = require('./form-control-error-text-BC5aRpfl.js');
|
|
7
7
|
require('./event-types-YOY5TKUN.js');
|
|
8
|
-
var Business = require('./Business-
|
|
8
|
+
var Business = require('./Business-CB8EVrhD.js');
|
|
9
9
|
var utils = require('./utils-DAyWinG2.js');
|
|
10
|
-
var countryConfig = require('./country-config-
|
|
10
|
+
var countryConfig = require('./country-config-ETD-7Wb7.js');
|
|
11
11
|
|
|
12
12
|
const NumberInputMasked = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -6,16 +6,16 @@ var formControlHelpText = require('./form-control-help-text-B2yMic8i.js');
|
|
|
6
6
|
var formControlErrorText = require('./form-control-error-text-BC5aRpfl.js');
|
|
7
7
|
require('./event-types-YOY5TKUN.js');
|
|
8
8
|
var index_esm = require('./index.esm-ByC0D4sJ.js');
|
|
9
|
-
var Business = require('./Business-
|
|
10
|
-
var businessIdentitySchema = require('./business-identity-schema-
|
|
9
|
+
var Business = require('./Business-CB8EVrhD.js');
|
|
10
|
+
var businessIdentitySchema = require('./business-identity-schema-0jg2Thn9.js');
|
|
11
11
|
var button = require('./button-C2p1BMP-.js');
|
|
12
12
|
var eventTypes = require('./event-types-DNOUef41.js');
|
|
13
13
|
var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
|
|
14
|
-
var inputHandlers = require('./input-handlers-
|
|
15
|
-
var countryConfig = require('./country-config-
|
|
14
|
+
var inputHandlers = require('./input-handlers-gV1LyFy3.js');
|
|
15
|
+
var countryConfig = require('./country-config-ETD-7Wb7.js');
|
|
16
16
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
17
|
-
require('./schema-validations-
|
|
18
|
-
require('./business-form-options-
|
|
17
|
+
require('./schema-validations-BakyfJpE.js');
|
|
18
|
+
require('./business-form-options-B3CbEmdc.js');
|
|
19
19
|
|
|
20
20
|
const NumberInput = class {
|
|
21
21
|
constructor(hostRef) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
require('./config-state-BIgGhhe9.js');
|
|
4
4
|
require('./dinero-BwNN_k7x.js');
|
|
5
5
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
6
|
-
var
|
|
6
|
+
var Plaid = require('./Plaid-DxPvVu0H.js');
|
|
7
7
|
require('./Pagination-Dediz133.js');
|
|
8
|
-
require('./Business-
|
|
8
|
+
require('./Business-CB8EVrhD.js');
|
|
9
9
|
require('./Dispute-CruQTF6_.js');
|
|
10
10
|
var utils = require('./utils-DvUQQLmR.js');
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess
|
|
|
14
14
|
try {
|
|
15
15
|
const response = await service.fetchPayment(id, authToken);
|
|
16
16
|
if (!response.error) {
|
|
17
|
-
onSuccess({ payment: new
|
|
17
|
+
onSuccess({ payment: new Plaid.Payment(response.data) });
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
const responseError = utils.getErrorMessage(response.error);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var Api = require('./Api-CVbEWBG6.js');
|
|
4
4
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
5
|
-
var
|
|
5
|
+
var Plaid = require('./Plaid-DxPvVu0H.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
7
|
-
require('./Business-
|
|
7
|
+
require('./Business-CB8EVrhD.js');
|
|
8
8
|
require('./Dispute-CruQTF6_.js');
|
|
9
9
|
require('./config-state-BIgGhhe9.js');
|
|
10
10
|
require('./dinero-BwNN_k7x.js');
|
|
@@ -25,7 +25,7 @@ const makeGetSubAccounts = ({ accountId, authToken, service }) => async ({ param
|
|
|
25
25
|
const response = await service.fetchSubAccounts(accountId, authToken, params);
|
|
26
26
|
if (!response.error) {
|
|
27
27
|
const pagingInfo = Object.assign({}, response.page_info);
|
|
28
|
-
const subAccounts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new
|
|
28
|
+
const subAccounts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Plaid.SubAccount(dataItem))) || [];
|
|
29
29
|
onSuccess({ subAccounts, pagingInfo });
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
@@ -5,7 +5,7 @@ var index = require('./index-W-zoNiyM.js');
|
|
|
5
5
|
var parts = require('./parts-BsBVknuf.js');
|
|
6
6
|
var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
|
|
7
7
|
var formControlErrorText = require('./form-control-error-text-BC5aRpfl.js');
|
|
8
|
-
var _package = require('./package-
|
|
8
|
+
var _package = require('./package-B4vs5j7c.js');
|
|
9
9
|
|
|
10
10
|
const iframeInputStylesStore = index.createStore({
|
|
11
11
|
focused: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Business = require('./Business-
|
|
3
|
+
var Business = require('./Business-CB8EVrhD.js');
|
|
4
4
|
|
|
5
5
|
const updateFormValues = (formController, newValues) => {
|
|
6
6
|
formController.setValues(Object.assign(Object.assign({}, formController.values.getValue()), newValues));
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
5
5
|
require('./event-types-YOY5TKUN.js');
|
|
6
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
6
|
+
var checkPkgVersion = require('./check-pkg-version-DKH70uPq.js');
|
|
7
7
|
var configState = require('./config-state-BIgGhhe9.js');
|
|
8
8
|
require('./dinero-BwNN_k7x.js');
|
|
9
9
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
10
|
-
var
|
|
10
|
+
var Plaid = require('./Plaid-DxPvVu0H.js');
|
|
11
11
|
require('./Pagination-Dediz133.js');
|
|
12
|
-
require('./Business-
|
|
12
|
+
require('./Business-CB8EVrhD.js');
|
|
13
13
|
require('./Dispute-CruQTF6_.js');
|
|
14
14
|
var index$1 = require('./index-CajjbB9t.js');
|
|
15
15
|
var skeleton = require('./skeleton-BGGMhPJj.js');
|
|
16
16
|
var utils = require('./utils-D4WPxuzW.js');
|
|
17
17
|
var button = require('./button-C2p1BMP-.js');
|
|
18
18
|
var parts = require('./parts-BsBVknuf.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-B4vs5j7c.js');
|
|
20
20
|
require('./Api-CVbEWBG6.js');
|
|
21
21
|
require('./index-W-zoNiyM.js');
|
|
22
22
|
|
|
@@ -75,7 +75,7 @@ const InternalTokenizePaymentMethod = class {
|
|
|
75
75
|
}
|
|
76
76
|
handleRadioClick(event) {
|
|
77
77
|
this.selectedPaymentMethod = event.detail;
|
|
78
|
-
|
|
78
|
+
Plaid.checkoutStore.selectedPaymentMethod = { type: event.detail };
|
|
79
79
|
}
|
|
80
80
|
async fillBillingForm(fields) {
|
|
81
81
|
var _a;
|
|
@@ -136,8 +136,8 @@ const InternalTokenizePaymentMethod = class {
|
|
|
136
136
|
try {
|
|
137
137
|
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
138
138
|
const config = {
|
|
139
|
-
clientId: this.authToken ||
|
|
140
|
-
account: this.accountId ||
|
|
139
|
+
clientId: this.authToken || Plaid.checkoutStore.authToken,
|
|
140
|
+
account: this.accountId || Plaid.checkoutStore.accountId,
|
|
141
141
|
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
142
142
|
};
|
|
143
143
|
return await this.paymentMethodFormRef.tokenize(config);
|
|
@@ -148,13 +148,13 @@ const InternalTokenizePaymentMethod = class {
|
|
|
148
148
|
}
|
|
149
149
|
// 9. Local methods
|
|
150
150
|
validateRequiredProps() {
|
|
151
|
-
if (!this.authToken && !
|
|
151
|
+
if (!this.authToken && !Plaid.checkoutStore.authToken) {
|
|
152
152
|
this.emitError({
|
|
153
153
|
errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
|
|
154
154
|
message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
if (!this.accountId && !
|
|
157
|
+
if (!this.accountId && !Plaid.checkoutStore.accountId) {
|
|
158
158
|
this.emitError({
|
|
159
159
|
errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
|
|
160
160
|
message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
|
|
@@ -167,11 +167,11 @@ const InternalTokenizePaymentMethod = class {
|
|
|
167
167
|
}
|
|
168
168
|
if (!this.disableCreditCard) {
|
|
169
169
|
this.selectedPaymentMethod = index$1.PAYMENT_METHODS.NEW_CARD;
|
|
170
|
-
|
|
170
|
+
Plaid.checkoutStore.selectedPaymentMethod = { type: index$1.PAYMENT_METHODS.NEW_CARD };
|
|
171
171
|
}
|
|
172
172
|
else if (!this.disableBankAccount) {
|
|
173
173
|
this.selectedPaymentMethod = index$1.PAYMENT_METHODS.NEW_BANK_ACCOUNT;
|
|
174
|
-
|
|
174
|
+
Plaid.checkoutStore.selectedPaymentMethod = { type: index$1.PAYMENT_METHODS.NEW_BANK_ACCOUNT };
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
setComputedHideSubmitButton() {
|
|
@@ -261,16 +261,16 @@ const InternalTokenizePaymentMethod = class {
|
|
|
261
261
|
? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupID }) : Object.assign({}, billingFormFieldValues);
|
|
262
262
|
}
|
|
263
263
|
get paymentMethodGroupID() {
|
|
264
|
-
return this.paymentMethodGroupId ||
|
|
264
|
+
return this.paymentMethodGroupId || Plaid.checkoutStore.paymentMethodGroupId;
|
|
265
265
|
}
|
|
266
266
|
get shouldSavePaymentMethod() {
|
|
267
|
-
return !!(this.paymentMethodGroupId ||
|
|
267
|
+
return !!(this.paymentMethodGroupId || Plaid.checkoutStore.savePaymentMethod);
|
|
268
268
|
}
|
|
269
269
|
get shouldHideRadioInput() {
|
|
270
270
|
return this.disableCreditCard || this.disableBankAccount;
|
|
271
271
|
}
|
|
272
272
|
renderPaymentMethodOption(paymentMethodType) {
|
|
273
|
-
const isSelected = this.selectedPaymentMethod === paymentMethodType &&
|
|
273
|
+
const isSelected = this.selectedPaymentMethod === paymentMethodType && Plaid.checkoutStore.selectedPaymentMethod.id === undefined;
|
|
274
274
|
return (index.h("div", { class: "payment-method" }, index.h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
275
275
|
}
|
|
276
276
|
renderSelectedPaymentMethodForm(paymentMethodType) {
|
|
@@ -451,7 +451,7 @@ const SaveNewPaymentMethod = class {
|
|
|
451
451
|
this.isChecked = false;
|
|
452
452
|
this.handleCheckboxChange = (_name, value) => {
|
|
453
453
|
this.isChecked = value;
|
|
454
|
-
|
|
454
|
+
Plaid.checkoutStore.savePaymentMethod = value;
|
|
455
455
|
this.checkboxChanged.emit(this.isChecked);
|
|
456
456
|
};
|
|
457
457
|
}
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
5
5
|
var paymentProvisioningActions = require('./payment-provisioning-actions-CZVlnRA0.js');
|
|
6
|
-
var business_service = require('./business.service-
|
|
7
|
-
var businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-
|
|
6
|
+
var business_service = require('./business.service-zGEitIbP.js');
|
|
7
|
+
var businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-Cnh6AXQU.js');
|
|
8
8
|
var index_esm = require('./index.esm-ByC0D4sJ.js');
|
|
9
|
-
var Business = require('./Business-
|
|
9
|
+
var Business = require('./Business-CB8EVrhD.js');
|
|
10
10
|
var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
|
|
11
11
|
var parts = require('./parts-BsBVknuf.js');
|
|
12
12
|
var paymentProvisioningLoading = require('./payment-provisioning-loading-B3hvtd9o.js');
|
|
13
|
-
var businessFormOptions = require('./business-form-options-
|
|
13
|
+
var businessFormOptions = require('./business-form-options-B3CbEmdc.js');
|
|
14
14
|
var eventTypes = require('./event-types-DNOUef41.js');
|
|
15
15
|
require('./config-state-BIgGhhe9.js');
|
|
16
16
|
require('./dinero-BwNN_k7x.js');
|
|
17
|
-
var
|
|
17
|
+
var Plaid = require('./Plaid-DxPvVu0H.js');
|
|
18
18
|
require('./Pagination-Dediz133.js');
|
|
19
19
|
require('./Dispute-CruQTF6_.js');
|
|
20
|
-
var schemaValidations = require('./schema-validations-
|
|
20
|
+
var schemaValidations = require('./schema-validations-BakyfJpE.js');
|
|
21
21
|
var button = require('./button-C2p1BMP-.js');
|
|
22
22
|
require('./event-types-YOY5TKUN.js');
|
|
23
|
-
var countryConfig = require('./country-config-
|
|
24
|
-
var businessIdentitySchema = require('./business-identity-schema-
|
|
23
|
+
var countryConfig = require('./country-config-ETD-7Wb7.js');
|
|
24
|
+
var businessIdentitySchema = require('./business-identity-schema-0jg2Thn9.js');
|
|
25
25
|
var Api = require('./Api-CVbEWBG6.js');
|
|
26
26
|
require('./utils-DvUQQLmR.js');
|
|
27
27
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
@@ -218,8 +218,8 @@ const buildDocumentRules = (documents, allowOptionalFields) => {
|
|
|
218
218
|
bank_statement: index_esm.create$8().nullable(),
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
const existingVoidedCheck = checkExistingDocs(documents,
|
|
222
|
-
const existingBankStatement = checkExistingDocs(documents,
|
|
221
|
+
const existingVoidedCheck = checkExistingDocs(documents, Plaid.EntityDocumentType.voidedCheck);
|
|
222
|
+
const existingBankStatement = checkExistingDocs(documents, Plaid.EntityDocumentType.bankStatement);
|
|
223
223
|
const existingDocument = existingVoidedCheck || existingBankStatement;
|
|
224
224
|
const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
|
|
225
225
|
return {
|
|
@@ -281,9 +281,11 @@ const BusinessBankAccountFormStep = class {
|
|
|
281
281
|
this.errors = {};
|
|
282
282
|
this.bankAccount = {};
|
|
283
283
|
this.existingDocuments = [];
|
|
284
|
-
this.documentData = new
|
|
284
|
+
this.documentData = new Plaid.EntityDocumentStorage();
|
|
285
285
|
this.isLoading = false;
|
|
286
286
|
this.isAddingNewBankAccount = true;
|
|
287
|
+
this.bankAccountVerification = false;
|
|
288
|
+
this.platformAccountId = null;
|
|
287
289
|
this.getSchema = () => {
|
|
288
290
|
const schema = bankAccountSchemaByCountry[this.country];
|
|
289
291
|
return schema(this.allowOptionalFields, this.existingDocuments);
|
|
@@ -307,7 +309,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
307
309
|
this.storeFiles = (e) => {
|
|
308
310
|
const fileList = Array.from(e.detail.fileList);
|
|
309
311
|
const docType = e.detail.document_type;
|
|
310
|
-
const documentList = fileList.map(file => new
|
|
312
|
+
const documentList = fileList.map(file => new Plaid.EntityDocument({ file, document_type: docType }, this.businessId));
|
|
311
313
|
this.documentData[docType] = documentList;
|
|
312
314
|
};
|
|
313
315
|
this.getData = () => {
|
|
@@ -326,6 +328,8 @@ const BusinessBankAccountFormStep = class {
|
|
|
326
328
|
this.bankAccount.business_id = this.businessId;
|
|
327
329
|
}
|
|
328
330
|
this.existingDocuments = response.data.documents;
|
|
331
|
+
this.bankAccountVerification = response.data.settings.bank_account_verification === true;
|
|
332
|
+
this.platformAccountId = response.data.platform_account_id;
|
|
329
333
|
},
|
|
330
334
|
onError: ({ error, code, severity }) => {
|
|
331
335
|
this.errorEvent.emit({
|
|
@@ -342,12 +346,12 @@ const BusinessBankAccountFormStep = class {
|
|
|
342
346
|
};
|
|
343
347
|
this.handleChangeBankAccount = () => {
|
|
344
348
|
this.isAddingNewBankAccount = true;
|
|
345
|
-
this.documentData = new
|
|
349
|
+
this.documentData = new Plaid.EntityDocumentStorage();
|
|
346
350
|
this.initializeFormController();
|
|
347
351
|
};
|
|
348
352
|
this.handleCancel = () => {
|
|
349
353
|
this.isAddingNewBankAccount = false;
|
|
350
|
-
this.documentData = new
|
|
354
|
+
this.documentData = new Plaid.EntityDocumentStorage();
|
|
351
355
|
this.initializeFormController();
|
|
352
356
|
};
|
|
353
357
|
this.handleSaveBankAccount = async () => {
|
|
@@ -541,13 +545,17 @@ const BusinessBankAccountFormStep = class {
|
|
|
541
545
|
this.isLoading = true;
|
|
542
546
|
this.getBusiness({
|
|
543
547
|
onSuccess: (response) => {
|
|
544
|
-
|
|
548
|
+
const { data } = response;
|
|
549
|
+
const { bank_accounts, documents, settings, platform_account_id } = data;
|
|
550
|
+
if (bank_accounts.length > 0) {
|
|
545
551
|
// Get the latest bank account (last in array)
|
|
546
|
-
const bankAccounts =
|
|
552
|
+
const bankAccounts = bank_accounts;
|
|
547
553
|
const latestBankAccount = bankAccounts[bankAccounts.length - 1];
|
|
548
554
|
this.bankAccount = new BankAccount(latestBankAccount);
|
|
549
555
|
}
|
|
550
|
-
this.existingDocuments =
|
|
556
|
+
this.existingDocuments = documents;
|
|
557
|
+
this.bankAccountVerification = settings.bank_account_verification === true;
|
|
558
|
+
this.platformAccountId = platform_account_id;
|
|
551
559
|
this.initializeFormController();
|
|
552
560
|
},
|
|
553
561
|
onError: ({ error, code, severity }) => {
|
|
@@ -587,10 +595,15 @@ const BusinessBankAccountFormStep = class {
|
|
|
587
595
|
}
|
|
588
596
|
render() {
|
|
589
597
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
598
|
+
const shouldShowPlaidVerification = this.bankAccountVerification && this.platformAccountId;
|
|
590
599
|
if (this.isLoading) {
|
|
591
600
|
return index.h(paymentProvisioningLoading.PaymentProvisioningLoading, null);
|
|
592
601
|
}
|
|
593
|
-
return (index.h("form", null, index.h("fieldset", { class: "mb-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Bank Account Info"), index.h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), index.h("hr", { class: "mt-2" }),
|
|
602
|
+
return (index.h("form", null, index.h("fieldset", { class: "mb-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Bank Account Info"), index.h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), index.h("hr", { class: "mt-2" }), shouldShowPlaidVerification && (index.h("div", { class: "mt-3" }, index.h("plaid-verification", { authToken: this.authToken, accountId: this.platformAccountId, businessId: this.businessId, onPlaidVerificationSuccess: () => {
|
|
603
|
+
// Refresh bank account data after successful Plaid verification
|
|
604
|
+
this.isAddingNewBankAccount = false;
|
|
605
|
+
this.refreshBankAccountData();
|
|
606
|
+
} }))), this.country === Business.CountryCode.CAN ? (index.h("bank-account-form-inputs-canada", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })) : (index.h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })), this.showReadOnlyView && (index.h("div", { class: "mt-3" }, index.h(button.Button, { variant: "secondary", type: "button", onClick: this.handleChangeBankAccount, disabled: this.isLoading, part: parts.buttonSecondary }, "Change Bank Account"))), (!this.existingBankAccount || this.isAddingNewBankAccount) && (index.h("div", { class: "mt-3 d-flex gap-2" }, this.isAddingNewBankAccount && (index.h(button.Button, { variant: "secondary", type: "button", onClick: this.handleCancel, disabled: this.isLoading, part: parts.buttonSecondary }, "Cancel")), index.h(button.Button, { variant: "primary", type: "button", onClick: this.handleSaveBankAccount, disabled: this.isLoading, isLoading: this.isLoading }, "Save Bank Account")))), index.h("fieldset", { class: "mt-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Document Uploads"), index.h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), index.h("hr", { class: "mt-2" }), index.h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), index.h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles }))));
|
|
594
607
|
}
|
|
595
608
|
static get watchers() { return {
|
|
596
609
|
"authToken": ["propChanged"],
|