@justifi/webcomponents 6.7.2 → 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/{Api-QUTWjGTy.js → Api-CVbEWBG6.js} +1 -1
- package/dist/cjs/{Business-DWHy_-z9.js → Business-CB8EVrhD.js} +6 -0
- package/dist/cjs/{GooglePay-BwiJ_80p.js → Plaid-DxPvVu0H.js} +54 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-Cc87HAsf.js → badge-DkOPisAV.js} +2 -2
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +532 -0
- package/dist/cjs/bank-account-form.cjs.entry.js +7 -7
- package/dist/cjs/{business-additional-questions-schema-Y1mXnwUT.js → business-additional-questions-schema-Cnh6AXQU.js} +5 -3
- package/dist/cjs/business-details-core.cjs.entry.js +7 -7
- package/dist/cjs/{business-form-options-e9UFw4P-.js → business-form-options-B3CbEmdc.js} +1 -1
- package/dist/cjs/{business-identity-schema-D_OO0Suf.js → business-identity-schema-0jg2Thn9.js} +6 -2
- package/dist/cjs/{business.service-q93NsTG_.js → business.service-zGEitIbP.js} +3 -3
- package/dist/cjs/{button-fUPGXjU_.js → button-C2p1BMP-.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +7 -7
- package/dist/cjs/{check-pkg-version-BG-Rfkh5.js → check-pkg-version-DKH70uPq.js} +12 -11
- package/dist/cjs/{checkout.service-CwelwhrT.js → checkout.service-DT13pWxH.js} +3 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +14 -14
- package/dist/cjs/{payments-list-params-state-DfZySwaC.js → checkouts-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{checkouts-table-BBtqxG2F.js → checkouts-table-DftTbgXr.js} +3 -3
- package/dist/cjs/{config-state-CYoBVAca.js → config-state-BIgGhhe9.js} +1 -1
- package/dist/cjs/{country-config-MCOhn8o3.js → country-config-ETD-7Wb7.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +52 -21
- package/dist/cjs/{dispute.service-q5ha39uN.js → dispute.service-GDUl1Wjs.js} +3 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +11 -11
- package/dist/cjs/form-control-checkbox.cjs.entry.js +11 -8
- package/dist/cjs/form-control-date.cjs.entry.js +7 -7
- package/dist/cjs/{form-control-error-text-Dg_65HGK.js → form-control-error-text-BC5aRpfl.js} +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +17 -10
- package/dist/cjs/{form-control-help-text-tB5u1-5M.js → form-control-help-text-B2yMic8i.js} +2 -2
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +12 -8
- package/dist/cjs/form-control-monetary.cjs.entry.js +8 -8
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +13 -11
- package/dist/cjs/{owner-form-core_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +71 -18
- package/dist/cjs/form-control-radio.cjs.entry.js +9 -6
- package/dist/cjs/form-control-select_2.cjs.entry.js +11 -11
- package/dist/cjs/{get-business-D9ZHyPem.js → get-business-CP0ALW9n.js} +1 -1
- package/dist/cjs/{get-payment-details-DidIAK2i.js → get-payment-details-IA5Toi7Z.js} +4 -4
- package/dist/cjs/{get-subaccounts-BE_wcfM7.js → get-subaccounts-DNMZjAyT.js} +5 -5
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -6
- package/dist/cjs/{header-1-Bqejh9no.js → header-1-B-nd_U7n.js} +2 -2
- package/dist/cjs/{header-3-DQ649Me2.js → header-3--BEJGMFA.js} +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +10 -10
- package/dist/cjs/{index-mmd0OhmD.js → index-W-zoNiyM.js} +90 -21
- package/dist/cjs/index-p7cvUYAE.js +4450 -0
- package/dist/cjs/{input-handlers-D6QMwPTB.js → input-handlers-gV1LyFy3.js} +1 -1
- package/dist/cjs/{insurance-state-DsGnIHMM.js → insurance-state-CiVJ5e26.js} +3 -3
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +34 -34
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +101 -67
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +247 -317
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-details.cjs.entry.js +13 -13
- package/dist/cjs/justifi-business-form.cjs.entry.js +22 -22
- package/dist/cjs/justifi-checkout.cjs.entry.js +22 -22
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +17 -17
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +11 -11
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +25 -25
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11 -11
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +20 -20
- package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +23 -11
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +18 -18
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +20 -20
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -17
- package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +18 -18
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +14 -14
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Df5lTFe6.js → package-B4vs5j7c.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +2 -2
- package/dist/cjs/{parts-BVbaniVM.js → parts-BsBVknuf.js} +1 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +21 -21
- package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
- package/dist/cjs/payment-provisioning-loading-B3hvtd9o.js +12 -0
- package/dist/cjs/{payment.service-CyHFdJ7n.js → payment.service-QODfB293.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +15 -15
- package/dist/cjs/{payouts-list-params-state-DfZySwaC.js → payments-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{payments-status-BP4u31jU.js → payments-status-BAR25wA6.js} +2 -2
- package/dist/cjs/{payments-table-CWXVhECV.js → payments-table-BLJ54fGU.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +13 -13
- package/dist/cjs/{payout.service-Half-hdB.js → payout.service-k7GBuYzk.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +15 -15
- package/dist/cjs/{checkouts-list-params-state-DfZySwaC.js → payouts-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{payouts-status-CM5Zy-0J.js → payouts-status-uZAaS1RP.js} +2 -2
- package/dist/cjs/{payouts-table-ZLTcfkUm.js → payouts-table-C4jZJ8rq.js} +3 -3
- package/dist/cjs/plaid-icon-DTpONc_Q.js +46 -0
- package/dist/cjs/{schema-validations-Bf2mk2xU.js → schema-validations-BakyfJpE.js} +19 -3
- package/dist/cjs/{skeleton-B8dzxFFr.js → skeleton-BGGMhPJj.js} +2 -2
- package/dist/cjs/{spinner-jHyLNCGO.js → spinner-CV2CNXOQ.js} +2 -2
- package/dist/cjs/{styled-host-D5g7INLE.js → styled-host-DAi5SuFa.js} +1 -1
- package/dist/cjs/{table-CrtpRwGN.js → table-eTN_pRIP.js} +3 -3
- package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +14 -14
- package/dist/cjs/{terminal-orders-list-params-state-DfZySwaC.js → terminal-orders-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{terminal-orders-table-DT53anT3.js → terminal-orders-table-C6j6Mx_r.js} +8 -8
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +4 -4
- package/dist/cjs/{terminal.service-CFt55QNO.js → terminal.service-A90K3XNq.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +14 -14
- package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +22 -0
- package/dist/cjs/{terminals-table-DahpSz98.js → terminals-table-DZz8k4tP.js} +3 -3
- package/dist/cjs/{utils-CMiA4X7s.js → utils-T6hRmGuY.js} +2 -2
- package/dist/cjs/webcomponents.cjs.js +30 -3
- package/dist/collection/api/Analytics.js +8 -7
- package/dist/collection/api/Business.js +3 -0
- package/dist/collection/api/Identity.js +3 -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-details/additional-questions-details/additional-questions-details.js +1 -1
- package/dist/collection/components/business-details/business-details-core.js +2 -2
- package/dist/collection/components/business-details/business-details.js +2 -2
- package/dist/collection/components/business-details/core-info-details/core-info-details.js +1 -1
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -4
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +3 -3
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +5 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +6 -6
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -7
- package/dist/collection/components/business-forms/owner-form/owner-form.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +5 -5
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +5 -5
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +23 -8
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +35 -7
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +19 -11
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -8
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +7 -7
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +433 -0
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -3
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +2 -0
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +5 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +15 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +23 -4
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +3 -3
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +4 -4
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-list.js +3 -3
- package/dist/collection/components/dispute-management/dispute-management-core.js +4 -4
- package/dist/collection/components/dispute-management/dispute-management.js +3 -3
- package/dist/collection/components/dispute-management/dispute-notification.js +5 -5
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -4
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +2 -2
- package/dist/collection/components/filters/table-filters-menu.js +3 -3
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +7 -7
- package/dist/collection/components/modular-checkout/modular-checkout.js +3 -3
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +3 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +6 -6
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +4 -51
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +4 -4
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +5 -5
- package/dist/collection/components/payment-details/payment-details-core.js +9 -9
- package/dist/collection/components/payment-details/payment-details.js +2 -2
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +3 -3
- package/dist/collection/components/payments-list/payments-list-core.js +3 -3
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +3 -3
- package/dist/collection/components/payout-details/payout-details-core.js +5 -5
- package/dist/collection/components/payout-details/payout-details.js +2 -2
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +3 -3
- package/dist/collection/components/payouts-list/payouts-list-core.js +5 -5
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +3 -3
- package/dist/collection/components/refund-payment/refund-payment.js +3 -3
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -3
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +3 -3
- package/dist/collection/components/terminals-list/terminals-list-core.js +4 -4
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +3 -3
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +51 -17
- package/dist/collection/ui-components/details/details.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +16 -10
- package/dist/collection/ui-components/form/form-control-date.js +5 -5
- package/dist/collection/ui-components/form/form-control-file-v2.js +16 -8
- package/dist/collection/ui-components/form/form-control-file.js +16 -10
- package/dist/collection/ui-components/form/form-control-monetary.js +5 -5
- package/dist/collection/ui-components/form/form-control-number-masked.js +14 -10
- package/dist/collection/ui-components/form/form-control-number.js +10 -8
- package/dist/collection/ui-components/form/form-control-radio.js +18 -12
- package/dist/collection/ui-components/form/form-control-select.js +6 -6
- package/dist/collection/ui-components/form/form-control-text.js +5 -5
- package/dist/collection/ui-components/form/form-control-textarea.js +19 -11
- package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -2
- package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +2 -2
- package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +6 -6
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +714 -273
- package/dist/esm/{Api-Dln8a6No.js → Api-ohkSjyhl.js} +1 -1
- package/dist/esm/{Business-B5rtFhtR.js → Business-GgW1g7FQ.js} +6 -0
- package/dist/esm/{GooglePay-NNHE-OLJ.js → Plaid-CBrksnBN.js} +53 -2
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-DtrH25ss.js → badge-BW9VFFkp.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +522 -0
- package/dist/esm/bank-account-form.entry.js +7 -7
- package/dist/esm/{business-additional-questions-schema-woG5-pgK.js → business-additional-questions-schema-CQ8CuEfQ.js} +5 -3
- package/dist/esm/business-details-core.entry.js +7 -7
- package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-DamBLV7N.js} +1 -1
- package/dist/esm/{business-identity-schema-B7VTDF4j.js → business-identity-schema-BTyJz7M9.js} +7 -3
- package/dist/esm/{business.service-BrUSam2T.js → business.service-BWm7Kqs4.js} +3 -3
- package/dist/esm/{button-Bpf3VX8Q.js → button-DMeChykB.js} +2 -2
- package/dist/esm/card-form.entry.js +7 -7
- package/dist/esm/{check-pkg-version-c_8fDHCB.js → check-pkg-version-CioeuqLV.js} +12 -11
- package/dist/esm/{checkout.service-Bxt1qPaY.js → checkout.service-D4Mljqjr.js} +3 -3
- package/dist/esm/checkouts-list-core.entry.js +14 -14
- package/dist/esm/{checkouts-list-params-state-gllzDQAb.js → checkouts-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{checkouts-table-CB4GdlcZ.js → checkouts-table-B9YTe5fJ.js} +3 -3
- package/dist/esm/{config-state-C2NXATwF.js → config-state-kKn89dp1.js} +1 -1
- package/dist/esm/{country-config-BQ4D46Lb.js → country-config-D-9YmU94.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +52 -21
- package/dist/esm/{dispute.service-DYRYxxaT.js → dispute.service-ZpqfPDC0.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +11 -11
- package/dist/esm/form-control-checkbox.entry.js +11 -8
- package/dist/esm/form-control-date.entry.js +7 -7
- package/dist/esm/{form-control-error-text-BZYykCDp.js → form-control-error-text-CTQxgr7_.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +17 -10
- package/dist/esm/{form-control-help-text-D-p66Yxr.js → form-control-help-text-B-aaeX6n.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +12 -8
- package/dist/esm/form-control-monetary.entry.js +8 -8
- package/dist/esm/form-control-number-masked_3.entry.js +13 -11
- package/dist/esm/{owner-form-core_2.entry.js → form-control-number_3.entry.js} +71 -19
- package/dist/esm/form-control-radio.entry.js +9 -6
- package/dist/esm/form-control-select_2.entry.js +11 -11
- package/dist/esm/{get-business-Xt7B5dSo.js → get-business-BMB2IxN_.js} +1 -1
- package/dist/esm/{get-payment-details-BJ1PLhJZ.js → get-payment-details-B71Qi6mF.js} +3 -3
- package/dist/esm/{get-subaccounts-CzGHjlUF.js → get-subaccounts-DXJdRbWg.js} +4 -4
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-WwkF5F9y.js → header-1-DFMANSXo.js} +2 -2
- package/dist/esm/{header-3-C5jS39cE.js → header-3-Ck64YtdM.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +10 -10
- package/dist/esm/index-CV0Pyo1O.js +4434 -0
- package/dist/esm/{index-B-fWxE5e.js → index-cDVGjRkU.js} +90 -21
- package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-CzWCJ849.js} +1 -1
- package/dist/esm/{insurance-state-C11WKZU6.js → insurance-state-DQ3xzFpR.js} +3 -3
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +23 -23
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +89 -55
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-apple-pay_8.entry.js +35 -105
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +10 -10
- package/dist/esm/justifi-business-details.entry.js +13 -13
- package/dist/esm/justifi-business-form.entry.js +22 -22
- package/dist/esm/justifi-checkout.entry.js +15 -15
- package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -10
- package/dist/esm/justifi-checkouts-list.entry.js +16 -16
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +25 -25
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
- package/dist/esm/justifi-order-terminals.entry.js +17 -17
- package/dist/esm/justifi-payment-details.entry.js +14 -14
- package/dist/esm/justifi-payment-provisioning-core.entry.js +23 -11
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +16 -16
- package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payments-list.entry.js +16 -16
- package/dist/esm/justifi-payout-details.entry.js +12 -12
- package/dist/esm/justifi-payout-transactions-list.entry.js +16 -16
- package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-refund-payment.entry.js +16 -16
- package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -14
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
- package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
- package/dist/esm/justifi-terminals-list.entry.js +16 -16
- package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-BzT9OxlN.js → package-CekpA_KC.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-sA8HBfkI.js → parts-DrquDBSk.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +20 -20
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/payment-provisioning-loading-DU0pNyqx.js +10 -0
- package/dist/esm/{payment.service-BoGemgMw.js → payment.service-C2lFq1yV.js} +3 -3
- package/dist/esm/payments-list-core.entry.js +15 -15
- package/dist/esm/{payments-list-params-state-gllzDQAb.js → payments-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{payments-status-CADg1cD0.js → payments-status-Bn-MvMcF.js} +2 -2
- package/dist/esm/{payments-table-C6zHWwGO.js → payments-table-CF3_zGnh.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +13 -13
- package/dist/esm/{payout.service-BSG50wqN.js → payout.service-ChupMPKT.js} +3 -3
- package/dist/esm/payouts-list-core.entry.js +15 -15
- package/dist/esm/{payouts-list-params-state-gllzDQAb.js → payouts-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{payouts-status-4VDQvaYV.js → payouts-status-ehZrz-Xx.js} +2 -2
- package/dist/esm/{payouts-table-BU5XbzB9.js → payouts-table-CGZJfsje.js} +3 -3
- package/dist/esm/plaid-icon-wJLd-2NX.js +43 -0
- package/dist/esm/{schema-validations-iamDi5JD.js → schema-validations-CfHWzMvr.js} +19 -4
- package/dist/esm/{skeleton-Dtt56Fl3.js → skeleton-D9UXuoik.js} +2 -2
- package/dist/esm/{spinner-DikooWuI.js → spinner-ACMfJh3a.js} +2 -2
- package/dist/esm/{styled-host-DhOcKWqZ.js → styled-host-D6byRazK.js} +1 -1
- package/dist/esm/{table-1hqe6s5m.js → table-BbMG2jg9.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +14 -14
- package/dist/esm/{terminal-orders-list-params-state-gllzDQAb.js → terminal-orders-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{terminal-orders-table-BsVBelxB.js → terminal-orders-table-B4_RAxxx.js} +6 -6
- package/dist/esm/terminal-quantity-selector.entry.js +4 -4
- package/dist/esm/{terminal.service-YKfi6Mr9.js → terminal.service-DqibXFHt.js} +3 -3
- package/dist/esm/terminals-list-core.entry.js +14 -14
- package/dist/esm/terminals-list-params-state-CiGfmyWW.js +16 -0
- package/dist/esm/{terminals-table-CXJTn-0I.js → terminals-table-B-7FR4ug.js} +3 -3
- package/dist/esm/{utils-CgFsPVsv.js → utils-DhCv62Pi.js} +2 -2
- package/dist/esm/webcomponents.js +31 -4
- package/dist/module/Analytics.js +9 -8
- package/dist/module/Business.js +6 -0
- package/dist/module/{Refund.js → Plaid.js} +51 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +2 -2
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +3 -3
- package/dist/module/business-additional-questions-schema.js +3 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +47 -26
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-details-core2.js +1 -1
- package/dist/module/business-identity-schema.js +5 -1
- package/dist/module/business-owners-form-step.js +42 -8
- package/dist/module/business-representative-form-inputs.js +2 -2
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +2 -2
- package/dist/module/business.service.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.service.js +1 -1
- package/dist/module/checkout.store.js +1 -1
- package/dist/module/checkouts-list-core2.js +3 -3
- package/dist/module/custom-popper2.js +50 -17
- package/dist/module/customer-details.js +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +2 -2
- package/dist/module/dispute-notification.js +3 -3
- package/dist/module/dispute-response-actions.js +1 -1
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/form-address-fields.js +1 -1
- package/dist/module/form-control-checkbox2.js +5 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +4 -1
- package/dist/module/form-control-file2.js +5 -2
- package/dist/module/form-control-monetary-provisioning2.js +6 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +4 -2
- package/dist/module/form-control-number.js +1 -84
- package/dist/module/form-control-number2.js +87 -0
- package/dist/module/form-control-radio2.js +5 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +6 -2
- 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 +3 -3
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/index2.js +90 -21
- package/dist/module/internal-tokenize-payment-method2.js +2 -2
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +3 -3
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +74 -62
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +3 -3
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/modular-checkout.js +3 -3
- package/dist/module/owner-form-core2.js +11 -5
- package/dist/module/owner-form-inputs2.js +13 -7
- package/dist/module/owner-form.js +11 -5
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +9 -9
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +86 -62
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +67 -55
- package/dist/module/payment.service.js +1 -1
- package/dist/module/payments-list-core2.js +3 -3
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +1 -1
- package/dist/module/payouts-list-core2.js +3 -3
- 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/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/schema-validations.js +16 -1
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +3 -3
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminal.service.js +1 -1
- package/dist/module/terminals-list-core2.js +3 -3
- 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 +6 -0
- package/dist/types/api/Identity.d.ts +4 -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/owner-form/owner-form-core.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +1 -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/business-owners/business-owners-form-step.d.ts +4 -0
- package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +3 -3
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.d.ts +36 -0
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +12 -0
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +10 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +19 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -25
- package/dist/types/components.d.ts +416 -239
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +4 -0
- package/dist/types/ui-components/form/form-control-checkbox.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-file-v2.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-file.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-radio.d.ts +3 -3
- package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -2
- package/dist/webcomponents/{p-Dit3fZpU.js → p--cI8fPJx.js} +1 -1
- package/dist/webcomponents/p-02f360c5.entry.js +1 -0
- package/dist/webcomponents/{p-36a0af30.entry.js → p-0467df5d.entry.js} +1 -1
- package/dist/webcomponents/p-073ca03f.entry.js +1 -0
- package/dist/webcomponents/p-0eb97b54.entry.js +1 -0
- package/dist/webcomponents/p-0f6fa1c0.entry.js +1 -0
- package/dist/webcomponents/p-0fcb7ebb.entry.js +1 -0
- package/dist/webcomponents/p-110bec2e.entry.js +1 -0
- package/dist/webcomponents/{p-d0c4b0ea.entry.js → p-172b0c96.entry.js} +1 -1
- package/dist/webcomponents/{p-725319f3.entry.js → p-1ec3d1e7.entry.js} +1 -1
- package/dist/webcomponents/p-20cab5fe.entry.js +1 -0
- package/dist/webcomponents/p-238ba771.entry.js +1 -0
- package/dist/webcomponents/p-2454c140.entry.js +1 -0
- package/dist/webcomponents/p-25666afe.entry.js +1 -0
- package/dist/webcomponents/p-26430bfe.entry.js +1 -0
- package/dist/webcomponents/p-265a7cb3.entry.js +1 -0
- package/dist/webcomponents/p-2e7143b8.entry.js +1 -0
- package/dist/webcomponents/p-32fac30b.entry.js +1 -0
- package/dist/webcomponents/p-33ab9174.entry.js +1 -0
- package/dist/webcomponents/p-393c9065.entry.js +1 -0
- package/dist/webcomponents/p-3a254390.entry.js +1 -0
- package/dist/webcomponents/p-493e73a9.entry.js +1 -0
- package/dist/webcomponents/p-4a802f82.entry.js +1 -0
- package/dist/webcomponents/p-4b928d2e.entry.js +1 -0
- package/dist/webcomponents/p-4d3e4e56.entry.js +1 -0
- package/dist/webcomponents/p-50cc771a.entry.js +1 -0
- package/dist/webcomponents/p-55e63bdd.entry.js +1 -0
- package/dist/webcomponents/p-5ae3401d.entry.js +1 -0
- package/dist/webcomponents/p-65f4681c.entry.js +1 -0
- package/dist/webcomponents/p-7068c2ad.entry.js +1 -0
- package/dist/webcomponents/p-785e8ef7.entry.js +1 -0
- package/dist/webcomponents/{p-897b794b.entry.js → p-7b4e9ae8.entry.js} +2 -2
- package/dist/webcomponents/{p-1a327b0e.entry.js → p-7fdfc2c8.entry.js} +1 -1
- package/dist/webcomponents/p-81bbd944.entry.js +1 -0
- package/dist/webcomponents/p-8ac883e4.entry.js +1 -0
- package/dist/webcomponents/p-8e6f2dc8.entry.js +1 -0
- package/dist/webcomponents/p-8ed4f485.entry.js +1 -0
- package/dist/webcomponents/p-922ddfb4.entry.js +1 -0
- package/dist/webcomponents/p-9643fe36.entry.js +1 -0
- package/dist/webcomponents/{p-20af8597.entry.js → p-99065f37.entry.js} +1 -1
- package/dist/webcomponents/p-9ce5fcb6.entry.js +1 -0
- package/dist/webcomponents/p-9d844936.entry.js +1 -0
- package/dist/webcomponents/p-AMVhBsGv.js +1 -0
- package/dist/webcomponents/{p-DfKxeSrC.js → p-B1AMrMly.js} +1 -1
- package/dist/webcomponents/p-B8CPGGs6.js +1 -0
- package/dist/webcomponents/p-BPTtWj7E.js +1 -0
- package/dist/webcomponents/p-BRPbLfCN.js +1 -0
- package/dist/webcomponents/p-BZ4YUsyP.js +1 -0
- package/dist/webcomponents/{p-CPpUGsw5.js → p-BZbvHgMz.js} +1 -1
- package/dist/webcomponents/{p-CV8xqdt6.js → p-Bhk8tHxs.js} +1 -1
- package/dist/webcomponents/{p-B4xdk4mG.js → p-Bj9n56jK.js} +1 -1
- package/dist/webcomponents/p-BqL4QuAa.js +1 -0
- package/dist/webcomponents/{p-BP2sTIQV.js → p-BqNNwq6C.js} +1 -1
- package/dist/webcomponents/p-By-Mu1IX.js +1 -0
- package/dist/webcomponents/p-C0dMwnDO.js +1 -0
- package/dist/webcomponents/p-C3E-JbVM.js +1 -0
- package/dist/webcomponents/p-C3RQHKL5.js +1 -0
- package/dist/webcomponents/{p-BMJe4lzg.js → p-CAZzU98o.js} +1 -1
- package/dist/webcomponents/p-CGKWIBVk.js +1 -0
- package/dist/webcomponents/{p-DUmUUj9r.js → p-COcg4_A3.js} +1 -1
- package/dist/webcomponents/{p-C2Senazf.js → p-CQ36pja3.js} +1 -1
- package/dist/webcomponents/p-CV0Pyo1O.js +2 -0
- package/dist/webcomponents/{p-Dlrq1iZf.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-CpGEMRkH.js +1 -0
- package/dist/webcomponents/{p-CBbwdoSa.js → p-CruQSM5j.js} +1 -1
- package/dist/webcomponents/p-D-07jgNC.js +1 -0
- package/dist/webcomponents/p-D4EBPNuU.js +1 -0
- package/dist/webcomponents/p-D8GTwl9v.js +1 -0
- package/dist/webcomponents/{p-C77ElQ41.js → p-DCwnBXF7.js} +1 -1
- package/dist/webcomponents/p-DKemQxaE.js +1 -0
- package/dist/webcomponents/p-DOnVHzNq.js +1 -0
- package/dist/webcomponents/{p-tGDdRx0W.js → p-DVJaoI_m.js} +1 -1
- package/dist/webcomponents/p-DaZF_q9T.js +1 -0
- package/dist/webcomponents/p-Dm07nLGs.js +1 -0
- package/dist/webcomponents/p-DrquDBSk.js +1 -0
- package/dist/webcomponents/p-Dw63wyhO.js +1 -0
- package/dist/webcomponents/p-GgW1g7FQ.js +1 -0
- package/dist/webcomponents/{p-D6bKoyRc.js → p-JO-3z7ao.js} +1 -1
- package/dist/webcomponents/p-MVBgKFOv.js +1 -0
- package/dist/webcomponents/p-Y-EhaLdV.js +1 -0
- package/dist/webcomponents/{p-W9WWoLzT.js → p-YYXsr-bI.js} +1 -1
- package/dist/webcomponents/p-a20bddd2.entry.js +1 -0
- package/dist/webcomponents/p-a3510078.entry.js +1 -0
- package/dist/webcomponents/p-a4834220.entry.js +1 -0
- package/dist/webcomponents/p-a9ecaf0f.entry.js +1 -0
- package/dist/webcomponents/p-aa02e3d7.entry.js +1 -0
- package/dist/webcomponents/p-adbe280f.entry.js +1 -0
- package/dist/webcomponents/p-af11ac6a.entry.js +1 -0
- package/dist/webcomponents/p-bbffb17f.entry.js +1 -0
- package/dist/webcomponents/p-c0829d61.entry.js +1 -0
- package/dist/webcomponents/p-c2db5db6.entry.js +1 -0
- package/dist/webcomponents/{p-f37f3e94.entry.js → p-c7c79332.entry.js} +1 -1
- package/dist/webcomponents/p-c90f7ed6.entry.js +1 -0
- package/dist/webcomponents/p-ca8d78af.entry.js +1 -0
- package/dist/webcomponents/p-d4535236.entry.js +1 -0
- package/dist/webcomponents/p-d5827cb2.entry.js +1 -0
- package/dist/webcomponents/p-d7fa8461.entry.js +1 -0
- package/dist/webcomponents/p-dff12534.entry.js +1 -0
- package/dist/webcomponents/p-e54cdb00.entry.js +1 -0
- package/dist/webcomponents/p-e926be0d.entry.js +1 -0
- package/dist/webcomponents/p-ed9db5b2.entry.js +1 -0
- package/dist/webcomponents/p-f1e012f6.entry.js +1 -0
- package/dist/webcomponents/p-f1f0f100.entry.js +1 -0
- package/dist/webcomponents/p-f5b7c322.entry.js +1 -0
- package/dist/webcomponents/p-f9475bb0.entry.js +1 -0
- package/dist/webcomponents/p-ff1cff1d.entry.js +1 -0
- package/dist/webcomponents/{p-sCHf--Vc.js → p-g0kDRH6Z.js} +1 -1
- package/dist/webcomponents/p-m_Ly-YPk.js +1 -0
- package/dist/webcomponents/p-sPEyLX4E.js +1 -0
- package/dist/webcomponents/p-wSi5d4-j.js +1 -0
- package/dist/webcomponents/p-wqq-X93m.js +1 -0
- package/dist/webcomponents/{p-yyedWKWX.js → p-y8av3w9x.js} +1 -1
- package/dist/webcomponents/p-ygekUw3Q.js +1 -0
- package/dist/webcomponents/p-ztF3Y786.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +9 -12
- package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +0 -207
- package/dist/cjs/form-control-number.cjs.entry.js +0 -58
- package/dist/cjs/index-BhI7cJcE.js +0 -1891
- package/dist/cjs/terminals-list-params-state-DfZySwaC.js +0 -22
- package/dist/esm/bank-account-document-form-inputs_8.entry.js +0 -198
- package/dist/esm/form-control-number.entry.js +0 -56
- package/dist/esm/index-DwYM91AU.js +0 -1879
- package/dist/esm/terminals-list-params-state-gllzDQAb.js +0 -16
- package/dist/webcomponents/p-016b3e4c.entry.js +0 -1
- package/dist/webcomponents/p-035a4adc.entry.js +0 -1
- package/dist/webcomponents/p-06cae9e2.entry.js +0 -1
- package/dist/webcomponents/p-06f81525.entry.js +0 -1
- package/dist/webcomponents/p-0935600b.entry.js +0 -1
- package/dist/webcomponents/p-0ab9a3ae.entry.js +0 -1
- package/dist/webcomponents/p-0b7c4ed5.entry.js +0 -1
- package/dist/webcomponents/p-0bb616fc.entry.js +0 -1
- package/dist/webcomponents/p-11wdbrqX.js +0 -1
- package/dist/webcomponents/p-138ada4a.entry.js +0 -1
- package/dist/webcomponents/p-148d3327.entry.js +0 -1
- package/dist/webcomponents/p-1575ca68.entry.js +0 -1
- package/dist/webcomponents/p-1e761d96.entry.js +0 -1
- package/dist/webcomponents/p-20e85114.entry.js +0 -1
- package/dist/webcomponents/p-2cb9edad.entry.js +0 -1
- package/dist/webcomponents/p-2d4a2d26.entry.js +0 -1
- package/dist/webcomponents/p-368b37ad.entry.js +0 -1
- package/dist/webcomponents/p-3a3935a3.entry.js +0 -1
- package/dist/webcomponents/p-3f14d0c4.entry.js +0 -1
- package/dist/webcomponents/p-4d2589b2.entry.js +0 -1
- package/dist/webcomponents/p-511e80a4.entry.js +0 -1
- package/dist/webcomponents/p-5996879d.entry.js +0 -1
- package/dist/webcomponents/p-5a748e49.entry.js +0 -1
- package/dist/webcomponents/p-5c6727ae.entry.js +0 -1
- package/dist/webcomponents/p-622af881.entry.js +0 -1
- package/dist/webcomponents/p-6454626a.entry.js +0 -1
- package/dist/webcomponents/p-64ebff16.entry.js +0 -1
- package/dist/webcomponents/p-66713269.entry.js +0 -1
- package/dist/webcomponents/p-679b36b5.entry.js +0 -1
- package/dist/webcomponents/p-71577fa1.entry.js +0 -1
- package/dist/webcomponents/p-77754a65.entry.js +0 -1
- package/dist/webcomponents/p-7ec4838f.entry.js +0 -1
- package/dist/webcomponents/p-88a8741b.entry.js +0 -1
- package/dist/webcomponents/p-899b981b.entry.js +0 -1
- package/dist/webcomponents/p-8c4b502d.entry.js +0 -1
- package/dist/webcomponents/p-8df30672.entry.js +0 -1
- package/dist/webcomponents/p-911b3d63.entry.js +0 -1
- package/dist/webcomponents/p-97b8bf5c.entry.js +0 -1
- package/dist/webcomponents/p-9b74a642.entry.js +0 -1
- package/dist/webcomponents/p-9b8aee30.entry.js +0 -1
- package/dist/webcomponents/p-9e94c9ef.entry.js +0 -1
- package/dist/webcomponents/p-B5rtFhtR.js +0 -1
- package/dist/webcomponents/p-BOqOio4U.js +0 -1
- package/dist/webcomponents/p-BUsqF4-J.js +0 -1
- package/dist/webcomponents/p-BYsgavgS.js +0 -1
- package/dist/webcomponents/p-BhqSAzpT.js +0 -1
- package/dist/webcomponents/p-BrRsgB8S.js +0 -1
- package/dist/webcomponents/p-BzT9OxlN.js +0 -1
- package/dist/webcomponents/p-C9VmfRis.js +0 -1
- package/dist/webcomponents/p-CCxsFwC4.js +0 -1
- package/dist/webcomponents/p-CK_XkZku.js +0 -1
- package/dist/webcomponents/p-CQGIjIgZ.js +0 -1
- package/dist/webcomponents/p-CZ3F1ZAT.js +0 -1
- package/dist/webcomponents/p-CgiDds_u.js +0 -1
- package/dist/webcomponents/p-CsgUIrv8.js +0 -1
- package/dist/webcomponents/p-D032AB34.js +0 -1
- package/dist/webcomponents/p-DATDsXcA.js +0 -1
- package/dist/webcomponents/p-DGGjRqDa.js +0 -1
- package/dist/webcomponents/p-DKGn-ILd.js +0 -1
- package/dist/webcomponents/p-DOcRWTul.js +0 -1
- package/dist/webcomponents/p-DY_3dcgR.js +0 -1
- package/dist/webcomponents/p-DdJYXOQX.js +0 -1
- package/dist/webcomponents/p-DmdEjScI.js +0 -1
- package/dist/webcomponents/p-DwYM91AU.js +0 -2
- package/dist/webcomponents/p-RTAZ4tdd.js +0 -1
- package/dist/webcomponents/p-Ty7R7tsw.js +0 -1
- package/dist/webcomponents/p-U3nU15el.js +0 -1
- package/dist/webcomponents/p-Uqevvbqm.js +0 -1
- package/dist/webcomponents/p-VRubcA-q.js +0 -1
- package/dist/webcomponents/p-a0b4c42b.entry.js +0 -1
- package/dist/webcomponents/p-af7c219d.entry.js +0 -1
- package/dist/webcomponents/p-b0f0d53c.entry.js +0 -1
- package/dist/webcomponents/p-b752c5bc.entry.js +0 -1
- package/dist/webcomponents/p-bbff6196.entry.js +0 -1
- package/dist/webcomponents/p-c0c36187.entry.js +0 -1
- package/dist/webcomponents/p-c920dc54.entry.js +0 -1
- package/dist/webcomponents/p-cdf1e61c.entry.js +0 -1
- package/dist/webcomponents/p-d077569e.entry.js +0 -1
- package/dist/webcomponents/p-d7b1b7b5.entry.js +0 -1
- package/dist/webcomponents/p-dc6c9c79.entry.js +0 -1
- package/dist/webcomponents/p-e4335938.entry.js +0 -1
- package/dist/webcomponents/p-e805b011.entry.js +0 -1
- package/dist/webcomponents/p-ecbc83bf.entry.js +0 -1
- package/dist/webcomponents/p-f30c939f.entry.js +0 -1
- package/dist/webcomponents/p-f56d7b4c.entry.js +0 -1
- package/dist/webcomponents/p-f99403d8.entry.js +0 -1
- package/dist/webcomponents/p-fb644da6.entry.js +0 -1
- package/dist/webcomponents/p-fc4b27ec.entry.js +0 -1
- package/dist/webcomponents/p-fe43449c.entry.js +0 -1
- package/dist/webcomponents/p-giyZ3C4E.js +0 -1
- package/dist/webcomponents/p-sA8HBfkI.js +0 -1
- package/docs/.eslintrc.cjs +0 -17
- package/docs/changelog/index.mdx +0 -17
- package/docs/entities/businessdetails/index.mdx +0 -143
- package/docs/entities/businessform/index.mdx +0 -241
- package/docs/entities/index.mdx +0 -19
- package/docs/entities/payment-provisioning/index.mdx +0 -128
- package/docs/frameworks/angular/index.mdx +0 -112
- package/docs/frameworks/index.mdx +0 -18
- package/docs/frameworks/react/index.mdx +0 -125
- package/docs/frameworks/vue/index.mdx +0 -102
- package/docs/helpers/PartsTable.js +0 -50
- package/docs/helpers/PropsTable.js +0 -56
- package/docs/helpers/index.ts +0 -3
- package/docs/helpers/version.js +0 -32
- package/docs/introduction/index.mdx +0 -125
- package/docs/merchant-tools/checkouts-list/index.mdx +0 -97
- package/docs/merchant-tools/gross-payments-chart/index.mdx +0 -83
- package/docs/merchant-tools/index.mdx +0 -25
- package/docs/merchant-tools/order-terminals/index.mdx +0 -84
- package/docs/merchant-tools/payment-details/index.mdx +0 -132
- package/docs/merchant-tools/payment-transactions-list/index.mdx +0 -85
- package/docs/merchant-tools/payments-list/index.mdx +0 -109
- package/docs/merchant-tools/payout-details/index.mdx +0 -84
- package/docs/merchant-tools/payout-transactions-list/index.mdx +0 -84
- package/docs/merchant-tools/payouts-list/index.mdx +0 -92
- package/docs/merchant-tools/terminal-orders-list/index.mdx +0 -85
- package/docs/merchant-tools/terminals-list/index.mdx +0 -93
- package/docs/modular-checkout/complete-examples/index.mdx +0 -20
- package/docs/modular-checkout/index.mdx +0 -20
- package/docs/modular-checkout/introduction/index.mdx +0 -102
- package/docs/modular-checkout/sub-components/apple-pay.mdx +0 -106
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +0 -167
- package/docs/modular-checkout/sub-components/card-form.mdx +0 -178
- package/docs/modular-checkout/sub-components/index.mdx +0 -23
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +0 -87
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +0 -158
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +0 -183
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +0 -221
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +0 -183
- package/docs/modular-checkout/sub-components/summary.mdx +0 -111
- package/docs/payment-facilitation/dispute-management/index.mdx +0 -99
- package/docs/payment-facilitation/index.mdx +0 -21
- package/docs/payment-facilitation/refund-payment/index.mdx +0 -241
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +0 -350
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +0 -150
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-p7cvUYAE.js');
|
|
4
|
+
require('./config-state-BIgGhhe9.js');
|
|
5
|
+
require('./dinero-BwNN_k7x.js');
|
|
6
|
+
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
7
|
+
var Plaid = require('./Plaid-DxPvVu0H.js');
|
|
8
|
+
require('./Pagination-Dediz133.js');
|
|
9
|
+
require('./Business-CB8EVrhD.js');
|
|
10
|
+
require('./Dispute-CruQTF6_.js');
|
|
11
|
+
var businessFormOptions = require('./business-form-options-B3CbEmdc.js');
|
|
12
|
+
require('./event-types-DNOUef41.js');
|
|
13
|
+
var utils = require('./utils-DAyWinG2.js');
|
|
14
|
+
var parts = require('./parts-BsBVknuf.js');
|
|
15
|
+
var utils$1 = require('./utils-D4WPxuzW.js');
|
|
16
|
+
var skeleton = require('./skeleton-BGGMhPJj.js');
|
|
17
|
+
require('./event-types-YOY5TKUN.js');
|
|
18
|
+
var formControlErrorText = require('./form-control-error-text-BC5aRpfl.js');
|
|
19
|
+
var inputHandlers = require('./input-handlers-gV1LyFy3.js');
|
|
20
|
+
var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
|
|
21
|
+
var countryConfig = require('./country-config-ETD-7Wb7.js');
|
|
22
|
+
var paymentProvisioningActions = require('./payment-provisioning-actions-CZVlnRA0.js');
|
|
23
|
+
var business_service = require('./business.service-zGEitIbP.js');
|
|
24
|
+
var button = require('./button-C2p1BMP-.js');
|
|
25
|
+
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
26
|
+
var plaidIcon = require('./plaid-icon-DTpONc_Q.js');
|
|
27
|
+
require('./index-W-zoNiyM.js');
|
|
28
|
+
require('./index-CajjbB9t.js');
|
|
29
|
+
require('./utils-DvUQQLmR.js');
|
|
30
|
+
require('./Api-CVbEWBG6.js');
|
|
31
|
+
|
|
32
|
+
const BankAccountDocumentFormInputs = class {
|
|
33
|
+
constructor(hostRef) {
|
|
34
|
+
index.registerInstance(this, hostRef);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (index.h("div", { key: '7f9ea576aad16f3c2ea45c987a38878ea65f2df2', class: "row gy-3" }, index.h("div", { key: '316fe3f20df7c7dce2b8903e6073e0fe7920e5e8', class: "col-12" }, index.h("form-control-file", { key: '320d6b7f3de2cfeeb30eb1e08ca4122123854ffd', name: "voided_check", label: "Voided Check", documentType: Plaid.EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), index.h("div", { key: 'f33a936c61c14c701e40d375e4dfc4c554b8293c', class: "col-12" }, index.h("form-control-file", { key: '1e160d8211a71175d6a45b10590fb2c8774f61e1', name: "bank_statement", label: "Bank Statement", documentType: Plaid.EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const BankAccountFormInputs = class {
|
|
42
|
+
constructor(hostRef) {
|
|
43
|
+
index.registerInstance(this, hostRef);
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
var _a, _b, _c, _d, _e, _f;
|
|
47
|
+
return (index.h("div", { key: '5dc7139f54d11979410d0d67ca29e65b02f30200', class: "row gy-3" }, index.h("div", { key: '118f15bf02855b24baec5ce2a2c3cf5b241b3da4', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (index.h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), index.h("div", { key: 'db03eccee03ec4b7d0de637306315982a2cd770d', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (index.h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), index.h("div", { key: '217120e0052b8ee41cac8f901ac4d9742b0c6ea9', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (index.h("form-control-text", { name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler }))), index.h("div", { key: 'f589511545d6262966a6fa2888cb78babacfb770', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (index.h("form-control-select", { name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), index.h("div", { key: '24df83bb2666cee381c266608c43f3fd729db4cf', class: "col-6" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.account_number_last4) ? `**** ${this.defaultValue.account_number_last4}` : '' })) : (index.h("form-control-text", { name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." }))), index.h("div", { key: '75fe11d71e57707d088f8a90a250621fce82647f', class: "col-6" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Routing Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.routing_number) || '' })) : (index.h("form-control-text", { name: "routing_number", label: "Routing Number", defaultValue: this.defaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." })))));
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const BankAccountFormInputsCanada = class {
|
|
52
|
+
constructor(hostRef) {
|
|
53
|
+
index.registerInstance(this, hostRef);
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
57
|
+
return (index.h("div", { key: '34cbf10449df73748095fd7122d0ae1355a83e13', class: "row gy-3" }, index.h("div", { key: '607cc5cbc70fdd2d5a325bef7002a44740394282', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (index.h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), index.h("div", { key: 'f57f4cd733f2dd439d6d83f32078371618f5fa06', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (index.h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), index.h("div", { key: 'b92dface0116321ea990bfcaf1b036b5629385db', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (index.h("form-control-text", { name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler }))), index.h("div", { key: '45d68efa47de76ee420cedfb97e82f498a2de97b', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (index.h("form-control-select", { name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), index.h("div", { key: '8419925e8470d63d506e1f7e82ccdf1a1132ecc0', class: "col-3" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Transit Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.transit_number) || '' })) : (index.h("form-control-text", { name: "transit_number", label: "Transit Number", defaultValue: this.defaultValue.transit_number, maxLength: 5, errorText: this.errors.transit_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, helpText: "5 digits" }))), index.h("div", { key: 'aa6e83c409e0cf93f1903394f63c0b719ec8808e', class: "col-3" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Institution Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.institution_number) || '' })) : (index.h("form-control-text", { name: "institution_number", label: "Institution Number", defaultValue: this.defaultValue.institution_number, maxLength: 3, errorText: this.errors.institution_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, helpText: "3 digits" }))), index.h("div", { key: '029058c023daca9d0488f45478af6edafe359df7', class: "col-6" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Number", value: ((_g = this.defaultValue) === null || _g === void 0 ? void 0 : _g.account_number_last4) ? `**** ${this.defaultValue.account_number_last4}` : '' })) : (index.h("form-control-text", { name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, helpText: "Please copy the account number as shown on your statement. Do not include spaces or dashes." })))));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const BankAccountReadOnlyValue = class {
|
|
62
|
+
constructor(hostRef) {
|
|
63
|
+
index.registerInstance(this, hostRef);
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return (index.h("div", { key: 'ad9eadcf49dbc67e51cd814d3ded334a587cc17c' }, index.h("label", { key: 'b8ba3d8b7ef9fc33e0e0870f71b7df5dbfae4759', class: "form-label", part: parts.text }, this.label), index.h("div", { key: '1839bdadb96b3c814c73991530497f9a7be6a10d', part: parts.text }, this.value || '')));
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const BusinessDocumentsOnFile = class {
|
|
71
|
+
constructor(hostRef) {
|
|
72
|
+
index.registerInstance(this, hostRef);
|
|
73
|
+
this.documents = [];
|
|
74
|
+
this.isLoading = false;
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
if (this.isLoading) {
|
|
78
|
+
return index.h(skeleton.Skeleton, { height: "50px" });
|
|
79
|
+
}
|
|
80
|
+
if (!this.documents.length) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
return (index.h(index.Host, null, index.h("div", { class: "card", part: parts.card }, index.h("div", { class: "card-body" }, index.h("h5", { class: "card-title", part: parts.heading2 }, "Documents Already on File"), index.h("div", { class: "table-responsive" }, index.h("table", { class: "table table-sm table-borderless", part: parts.table }, index.h("thead", null, index.h("tr", null, index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "File Name"), index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "File Type"), index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "Document Type"), index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "Date Uploaded"))), index.h("tbody", null, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
|
|
84
|
+
.map((document, index$1) => {
|
|
85
|
+
return (index.h("tr", { class: index$1 === 0 ? "border-bottom border-top" : "border-bottom" }, index.h("td", { part: parts.tableCell }, document.file_name), index.h("td", { part: parts.tableCell }, document.file_type), index.h("td", { part: parts.tableCell }, utils$1.snakeCaseToHumanReadable(document.document_type)), index.h("td", { part: parts.tableCell }, `${utils$1.formatDate(document.created_at)} - ${utils$1.formatTime(document.created_at)}`)));
|
|
86
|
+
})))))), index.h("hr", null)));
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const FileInput = class {
|
|
91
|
+
constructor(hostRef) {
|
|
92
|
+
index.registerInstance(this, hostRef);
|
|
93
|
+
this.formControlInput = index.createEvent(this, "formControlInput", 7);
|
|
94
|
+
this.formControlBlur = index.createEvent(this, "formControlBlur", 7);
|
|
95
|
+
this.fileSelected = index.createEvent(this, "fileSelected", 7);
|
|
96
|
+
this.isFocused = false;
|
|
97
|
+
this.errorText = '';
|
|
98
|
+
this.inputHandler = () => { };
|
|
99
|
+
this.disabled = false;
|
|
100
|
+
this.handleFormControlInput = (event) => {
|
|
101
|
+
const target = event.target;
|
|
102
|
+
const name = target.getAttribute('name');
|
|
103
|
+
this.inputHandler(name, target.value);
|
|
104
|
+
this.formControlInput.emit({ name, value: target.value });
|
|
105
|
+
};
|
|
106
|
+
this.changeHandler = () => {
|
|
107
|
+
const inputFileList = this.fileInput.files;
|
|
108
|
+
if (inputFileList) {
|
|
109
|
+
this.fileSelected.emit({
|
|
110
|
+
fileList: inputFileList,
|
|
111
|
+
document_type: this.documentType
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
componentDidLoad() {
|
|
117
|
+
this.fileInput = this.el.querySelector('input');
|
|
118
|
+
}
|
|
119
|
+
get part() {
|
|
120
|
+
let part = parts.input;
|
|
121
|
+
if (this.errorText) {
|
|
122
|
+
part = parts.inputInvalid;
|
|
123
|
+
}
|
|
124
|
+
if (this.disabled) {
|
|
125
|
+
part = parts.inputDisabled;
|
|
126
|
+
}
|
|
127
|
+
if (this.isFocused) {
|
|
128
|
+
part = parts.inputFocused;
|
|
129
|
+
}
|
|
130
|
+
return part;
|
|
131
|
+
}
|
|
132
|
+
render() {
|
|
133
|
+
return (index.h(index.Host, { key: '430da302c06fb83a93c10bbf8d9b62ff89fc9e5e' }, index.h("div", { key: '2235fd7e9ef83839a5c9644828580cb1727cb3cc', class: "form-group d-flex flex-column" }, index.h("div", { key: 'e899430b50cd692e76b4992d01df4ab5ef754ff4', class: "d-flex align-items-start gap-2" }, index.h("label", { key: '41a257c0c9064ababe2167522690678627d574ec', part: parts.label, class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: '734a6dbf61d1f04920b01e8d9024c29bc8cf0967', helpText: this.helpText })), index.h("input", { key: '6bbe60077bbff7c427cb84883f91489ae58abbd1', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
134
|
+
this.isFocused = false;
|
|
135
|
+
this.formControlBlur.emit();
|
|
136
|
+
} }), index.h(formControlErrorText.FormControlErrorText, { key: '4b0ed448a2f7fd8e76d21abdaa47662f847bca7f', errorText: this.errorText, name: this.name }))));
|
|
137
|
+
}
|
|
138
|
+
get el() { return index.getElement(this); }
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const RepresentativeFormInputs = class {
|
|
142
|
+
constructor(hostRef) {
|
|
143
|
+
index.registerInstance(this, hostRef);
|
|
144
|
+
this.isEditingIdentification = false;
|
|
145
|
+
this.inputHandler = (name, value) => {
|
|
146
|
+
inputHandlers.updateFormValues(this.formController, { [name]: value });
|
|
147
|
+
};
|
|
148
|
+
this.onAddressFormUpdate = (values) => {
|
|
149
|
+
inputHandlers.updateAddressFormValues(this.formController, Object.assign(Object.assign({}, this.formController.values.getValue().address), values));
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
render() {
|
|
153
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
154
|
+
return (index.h("form", { key: 'a9c0f6332bf302d5eb9f93c4ca045d572a40468f' }, index.h("fieldset", { key: '115c564826335a9c7b670bbc0409912c3eb7a4aa' }, index.h("div", { key: '6de8909b4b2f3c7d8ec4665aad77ef59cdf035b4', class: "d-flex align-items-center gap-2" }, index.h("legend", { key: 'bb8b5a3775eae450a866356a9e149a0bf57b5699', class: "mb-0", part: parts.heading2 }, "Representative"), index.h("form-control-tooltip", { key: 'a0296d4a3c35a039525f39501e117ee6fdd12257', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), index.h("hr", { key: 'abbee22f5664275f27dd8eeb2b12c87b059ff024', class: "mt-2" }), index.h("div", { key: 'e165ff125df62dc1d22b7329fe7fe2ff200cbbb3', class: "row gy-3" }, index.h("div", { key: '114ff752eeda3ffa90529ff6bc675b874f543336', class: "col-12 col-md-8" }, index.h("form-control-text", { key: '8b6ce9f4a327ca5282aa32c226f671945aa10404', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { key: 'bce864367883c6bbf7bd0841114a3dbb39db692b', class: "col-12 col-md-4" }, index.h("form-control-text", { key: 'ec3e72dc3f84c0daee2c6509f7dbf2bad22f5db6', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), index.h("div", { key: '200ae959d897d9d22016553d3c586cf3f0438dd9', class: "col-12 col-md-6" }, index.h("form-control-text", { key: '4f77d6ca6c3c85edabc11af6f5703ab1327f05e7', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), index.h("div", { key: 'cf642ee73f7ae8b254920a3f781c23dc456f16ae', class: "col-12 col-md-6" }, index.h("form-control-number-masked", { key: 'df609213bec728f17b2527a2e99ff3e0e69604aa', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: formInputMasks.PHONE_MASKS.US })), index.h("div", { key: '2e4565c06976723ae4e497a5305cea7468bac2f4', class: "col-12 col-md-4" }, index.h("form-control-date", { key: 'ca7d4bf05c32d1d9983df430d338cc3433015957', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => inputHandlers.updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), index.h("div", { key: 'f6cbe1b7f4e5575f626e6d73f31b4a1a09ac33e3', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (index.h("form-control-number-masked", { name: "identification_number", label: countryConfig.countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: formInputMasks.IDENTITY_MASKS[this.country], helpText: countryConfig.countryLabels[this.country].identityHelpText })) : (index.h("div", null, index.h("label", { class: "form-label", part: parts.label }, countryConfig.countryLabels[this.country].idNumberLabel), index.h("div", { class: "input-group mb-3" }, index.h("input", { type: "text", class: "form-control", part: parts.inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), index.h("button", { class: "btn btn-secondary", type: "button", part: parts.buttonSecondary, onClick: () => {
|
|
155
|
+
this.isEditingIdentification = true;
|
|
156
|
+
// Clear current value to force validation
|
|
157
|
+
inputHandlers.updateFormValues(this.formController, {
|
|
158
|
+
identification_number: '',
|
|
159
|
+
ssn_last4: null
|
|
160
|
+
});
|
|
161
|
+
} }, "Change"))))), index.h("div", { key: 'e3fa556dece2feaf5eb175ae3734c2319777ef48', class: "col-12" }, index.h("justifi-identity-address-form", { key: 'fe3d349371d11b8a246b9c31aebd7d9c84e03f8e', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const BusinessOwnerForm = class {
|
|
166
|
+
constructor(hostRef) {
|
|
167
|
+
index.registerInstance(this, hostRef);
|
|
168
|
+
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
169
|
+
}
|
|
170
|
+
async validate() {
|
|
171
|
+
return this.coreComponent.validate();
|
|
172
|
+
}
|
|
173
|
+
async submit() {
|
|
174
|
+
return this.coreComponent.submit();
|
|
175
|
+
}
|
|
176
|
+
async validateAndSubmit({ onSuccess }) {
|
|
177
|
+
this.coreComponent.validateAndSubmit({ onSuccess });
|
|
178
|
+
}
|
|
179
|
+
componentWillLoad() {
|
|
180
|
+
this.initializeApi();
|
|
181
|
+
}
|
|
182
|
+
initializeApi() {
|
|
183
|
+
if (!this.authToken) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
this.getOwner = paymentProvisioningActions.makeGetIdentity({
|
|
187
|
+
authToken: this.authToken,
|
|
188
|
+
identityId: this.ownerId,
|
|
189
|
+
service: new business_service.IdentityService()
|
|
190
|
+
});
|
|
191
|
+
this.patchOwner = paymentProvisioningActions.makePatchIdentity({
|
|
192
|
+
authToken: this.authToken,
|
|
193
|
+
identityId: this.ownerId,
|
|
194
|
+
service: new business_service.IdentityService()
|
|
195
|
+
});
|
|
196
|
+
this.postOwner = paymentProvisioningActions.makePostIdentity({
|
|
197
|
+
authToken: this.authToken,
|
|
198
|
+
service: new business_service.IdentityService()
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
render() {
|
|
202
|
+
return (index.h("owner-form-core", { key: '47c36dfc76ac8a108950e17770d1a0fb06fe4e42', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, country: this.country, ref: ref => this.coreComponent = ref }));
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
const PlaidVerification = class {
|
|
207
|
+
constructor(hostRef) {
|
|
208
|
+
index.registerInstance(this, hostRef);
|
|
209
|
+
this.plaidVerificationSuccess = index.createEvent(this, "plaidVerificationSuccess", 7);
|
|
210
|
+
this.plaidVerificationError = index.createEvent(this, "plaidVerificationError", 7);
|
|
211
|
+
this.linkToken = null;
|
|
212
|
+
this.linkTokenId = null;
|
|
213
|
+
this.plaidLink = null;
|
|
214
|
+
this.isAuthenticating = false;
|
|
215
|
+
this.isSuccess = false;
|
|
216
|
+
this.error = null;
|
|
217
|
+
this.isLoading = false;
|
|
218
|
+
this.plaidService = new plaidIcon.PlaidService();
|
|
219
|
+
this.abortController = null;
|
|
220
|
+
this.timeoutId = null;
|
|
221
|
+
this.initializePlaidLink = async () => {
|
|
222
|
+
try {
|
|
223
|
+
// Check if Plaid is available globally
|
|
224
|
+
if (typeof window.Plaid === 'undefined') {
|
|
225
|
+
this.handleError({
|
|
226
|
+
code: Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
|
|
227
|
+
message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
228
|
+
severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
229
|
+
retryable: true,
|
|
230
|
+
userAction: 'Refresh the page and try again',
|
|
231
|
+
});
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
// Get link token from backend
|
|
235
|
+
await this.getLinkToken();
|
|
236
|
+
if (!this.linkToken) {
|
|
237
|
+
this.handleError({
|
|
238
|
+
code: Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
|
|
239
|
+
message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
|
|
240
|
+
severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
|
|
241
|
+
retryable: true,
|
|
242
|
+
userAction: 'Click to try again',
|
|
243
|
+
});
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
// Initialize Plaid Link
|
|
247
|
+
const Plaid$1 = window.Plaid;
|
|
248
|
+
this.plaidLink = Plaid$1.create({
|
|
249
|
+
token: this.linkToken,
|
|
250
|
+
onSuccess: this.handlePlaidSuccess,
|
|
251
|
+
onExit: this.handlePlaidExit,
|
|
252
|
+
onEvent: this.handlePlaidEvent,
|
|
253
|
+
onLoad: this.handlePlaidLoad,
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
catch (error) {
|
|
257
|
+
this.handleError({
|
|
258
|
+
code: Plaid.PlaidErrorCodes.PLAID_LINK_INIT_FAILED,
|
|
259
|
+
message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
|
|
260
|
+
severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
|
|
261
|
+
originalError: error,
|
|
262
|
+
retryable: true,
|
|
263
|
+
userAction: 'Click to try again',
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
this.getLinkToken = async () => {
|
|
268
|
+
var _a, _b, _c, _d;
|
|
269
|
+
try {
|
|
270
|
+
if (!this.authToken || !this.accountId) {
|
|
271
|
+
this.handleError({
|
|
272
|
+
code: Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
|
|
273
|
+
message: 'Missing authentication. Please provide authToken and accountId.',
|
|
274
|
+
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
275
|
+
retryable: false,
|
|
276
|
+
userAction: 'Provide required props',
|
|
277
|
+
});
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
// Create abort controller for timeout handling
|
|
281
|
+
this.abortController = new AbortController();
|
|
282
|
+
// Set timeout for the request
|
|
283
|
+
this.timeoutId = setTimeout(() => {
|
|
284
|
+
var _a;
|
|
285
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
286
|
+
}, 30000); // 30 second timeout
|
|
287
|
+
const response = await this.plaidService.getLinkTokenForVerification(this.authToken, this.businessId, this.abortController.signal);
|
|
288
|
+
// Clear timeout
|
|
289
|
+
if (this.timeoutId) {
|
|
290
|
+
clearTimeout(this.timeoutId);
|
|
291
|
+
this.timeoutId = null;
|
|
292
|
+
}
|
|
293
|
+
if (response.error) {
|
|
294
|
+
const errorMessage = typeof response.error === 'string'
|
|
295
|
+
? response.error
|
|
296
|
+
: response.error.message || 'Failed to get link token';
|
|
297
|
+
throw new Error(errorMessage);
|
|
298
|
+
}
|
|
299
|
+
this.linkToken = response.data.link_token;
|
|
300
|
+
this.linkTokenId = response.data.id;
|
|
301
|
+
}
|
|
302
|
+
catch (error) {
|
|
303
|
+
// Clear timeout
|
|
304
|
+
if (this.timeoutId) {
|
|
305
|
+
clearTimeout(this.timeoutId);
|
|
306
|
+
this.timeoutId = null;
|
|
307
|
+
}
|
|
308
|
+
let errorCode = Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED;
|
|
309
|
+
let message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
310
|
+
let retryable = true;
|
|
311
|
+
// Handle specific error types
|
|
312
|
+
if (error.name === 'AbortError') {
|
|
313
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_TIMEOUT;
|
|
314
|
+
message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
315
|
+
retryable = true;
|
|
316
|
+
}
|
|
317
|
+
else if (((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('network')) || ((_b = error.message) === null || _b === void 0 ? void 0 : _b.includes('fetch'))) {
|
|
318
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_NETWORK_ERROR;
|
|
319
|
+
message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
320
|
+
retryable = true;
|
|
321
|
+
}
|
|
322
|
+
else if (((_c = error.message) === null || _c === void 0 ? void 0 : _c.includes('401')) || ((_d = error.message) === null || _d === void 0 ? void 0 : _d.includes('unauthorized'))) {
|
|
323
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
|
|
324
|
+
message = 'Authentication failed. Please check your credentials.';
|
|
325
|
+
retryable = false;
|
|
326
|
+
}
|
|
327
|
+
this.handleError({
|
|
328
|
+
code: errorCode,
|
|
329
|
+
message: message,
|
|
330
|
+
severity: Plaid.PLAID_ERROR_SEVERITY[errorCode],
|
|
331
|
+
originalError: error,
|
|
332
|
+
retryable,
|
|
333
|
+
userAction: retryable ? 'Click to try again' : 'Check your credentials',
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
this.openPlaidLink = () => {
|
|
338
|
+
if (this.plaidLink && this.linkToken) {
|
|
339
|
+
this.isAuthenticating = true;
|
|
340
|
+
this.clearError();
|
|
341
|
+
this.plaidLink.open();
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
this.handlePlaidSuccess = async (publicToken, _metadata) => {
|
|
345
|
+
var _a;
|
|
346
|
+
this.isAuthenticating = false;
|
|
347
|
+
this.isLoading = true;
|
|
348
|
+
this.clearError();
|
|
349
|
+
try {
|
|
350
|
+
// Send publicToken to backend
|
|
351
|
+
const response = await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken, this.businessId, { public_token: publicToken, link_token_id: this.linkTokenId }, (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.signal);
|
|
352
|
+
if (response.error) {
|
|
353
|
+
const errorMessage = typeof response.error === 'string'
|
|
354
|
+
? response.error
|
|
355
|
+
: response.error.message || 'Failed to verify bank account';
|
|
356
|
+
throw new Error(errorMessage);
|
|
357
|
+
}
|
|
358
|
+
// Success - display success message
|
|
359
|
+
this.isSuccess = true;
|
|
360
|
+
this.isLoading = false;
|
|
361
|
+
// Emit success event
|
|
362
|
+
this.plaidVerificationSuccess.emit({ publicToken, bankAccount: response.data });
|
|
363
|
+
}
|
|
364
|
+
catch (error) {
|
|
365
|
+
this.isLoading = false;
|
|
366
|
+
this.handleError({
|
|
367
|
+
code: Plaid.PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED,
|
|
368
|
+
message: (error === null || error === void 0 ? void 0 : error.message) || 'Failed to verify bank account',
|
|
369
|
+
severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED],
|
|
370
|
+
originalError: error,
|
|
371
|
+
retryable: true,
|
|
372
|
+
userAction: 'Click to try again',
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
this.handlePlaidExit = (err, _metadata) => {
|
|
377
|
+
this.isAuthenticating = false;
|
|
378
|
+
if (err) {
|
|
379
|
+
this.handlePlaidError(err);
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
this.handlePlaidEvent = (eventName, metadata) => {
|
|
383
|
+
// Handle specific events if needed
|
|
384
|
+
switch (eventName) {
|
|
385
|
+
case 'OPEN':
|
|
386
|
+
this.isAuthenticating = true;
|
|
387
|
+
break;
|
|
388
|
+
case 'CLOSE':
|
|
389
|
+
this.isAuthenticating = false;
|
|
390
|
+
break;
|
|
391
|
+
case 'ERROR':
|
|
392
|
+
this.handlePlaidError(metadata);
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
this.handlePlaidLoad = () => {
|
|
397
|
+
// Plaid Link loaded successfully
|
|
398
|
+
};
|
|
399
|
+
this.handlePlaidError = (error) => {
|
|
400
|
+
let errorCode = Plaid.PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED;
|
|
401
|
+
let message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
402
|
+
let retryable = true;
|
|
403
|
+
let userAction = 'Click to try again';
|
|
404
|
+
// Map Plaid error codes to our error codes
|
|
405
|
+
if (error.error_code) {
|
|
406
|
+
switch (error.error_code) {
|
|
407
|
+
case 'INVALID_CREDENTIALS':
|
|
408
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
|
|
409
|
+
message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
410
|
+
retryable = true;
|
|
411
|
+
break;
|
|
412
|
+
case 'ITEM_LOGIN_REQUIRED':
|
|
413
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
|
|
414
|
+
message = 'Your bank requires re-authentication. Please try again.';
|
|
415
|
+
retryable = true;
|
|
416
|
+
break;
|
|
417
|
+
case 'ITEM_LOCKED':
|
|
418
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_ACCOUNT_LOCKED;
|
|
419
|
+
message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
420
|
+
retryable = false;
|
|
421
|
+
userAction = 'Contact your bank';
|
|
422
|
+
break;
|
|
423
|
+
case 'INSTITUTION_NOT_RESPONDING':
|
|
424
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_MAINTENANCE;
|
|
425
|
+
message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
426
|
+
retryable = true;
|
|
427
|
+
break;
|
|
428
|
+
case 'RATE_LIMIT_EXCEEDED':
|
|
429
|
+
errorCode = Plaid.PlaidErrorCodes.PLAID_RATE_LIMITED;
|
|
430
|
+
message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
|
|
431
|
+
retryable = true;
|
|
432
|
+
break;
|
|
433
|
+
default:
|
|
434
|
+
if (error.error_message) {
|
|
435
|
+
message = error.error_message;
|
|
436
|
+
}
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
this.handleError({
|
|
441
|
+
code: errorCode,
|
|
442
|
+
message,
|
|
443
|
+
severity: Plaid.PLAID_ERROR_SEVERITY[errorCode],
|
|
444
|
+
originalError: error,
|
|
445
|
+
retryable,
|
|
446
|
+
userAction,
|
|
447
|
+
});
|
|
448
|
+
this.isAuthenticating = false;
|
|
449
|
+
};
|
|
450
|
+
this.handleError = (plaidError) => {
|
|
451
|
+
this.error = plaidError;
|
|
452
|
+
this.isLoading = false;
|
|
453
|
+
// Emit error event for parent components
|
|
454
|
+
this.plaidVerificationError.emit(plaidError);
|
|
455
|
+
console.error('Plaid verification error:', plaidError);
|
|
456
|
+
};
|
|
457
|
+
this.clearError = () => {
|
|
458
|
+
if (this.error) {
|
|
459
|
+
this.error = null;
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
componentDidRender() {
|
|
464
|
+
if (!this.scriptRef)
|
|
465
|
+
return;
|
|
466
|
+
this.scriptRef.onload = () => {
|
|
467
|
+
this.initializePlaidLink();
|
|
468
|
+
};
|
|
469
|
+
this.scriptRef.onerror = () => {
|
|
470
|
+
this.handleError({
|
|
471
|
+
code: Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
|
|
472
|
+
message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
473
|
+
severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
474
|
+
retryable: true,
|
|
475
|
+
userAction: 'Refresh the page and try again',
|
|
476
|
+
});
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
disconnectedCallback() {
|
|
480
|
+
// Clean up timeouts and abort controllers
|
|
481
|
+
if (this.timeoutId) {
|
|
482
|
+
clearTimeout(this.timeoutId);
|
|
483
|
+
}
|
|
484
|
+
if (this.abortController) {
|
|
485
|
+
this.abortController.abort();
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
render() {
|
|
489
|
+
const renderErrorState = () => {
|
|
490
|
+
if (!this.error)
|
|
491
|
+
return null;
|
|
492
|
+
const errorClass = this.error.severity === ComponentError.ComponentErrorSeverity.ERROR
|
|
493
|
+
? 'text-danger'
|
|
494
|
+
: this.error.severity === ComponentError.ComponentErrorSeverity.WARNING
|
|
495
|
+
? 'text-warning'
|
|
496
|
+
: 'text-info';
|
|
497
|
+
return (index.h("div", { class: `${errorClass} mt-2` }, index.h("small", null, this.error.message), index.h("br", null), this.error.userAction && (index.h("small", { class: "text-muted" }, this.error.userAction))));
|
|
498
|
+
};
|
|
499
|
+
const renderStatusState = () => {
|
|
500
|
+
if (this.error)
|
|
501
|
+
return null;
|
|
502
|
+
if (this.isLoading) {
|
|
503
|
+
return (index.h("div", { class: "text-info mt-2" }, index.h("small", null, "Verifying bank account...")));
|
|
504
|
+
}
|
|
505
|
+
if (this.isSuccess) {
|
|
506
|
+
return (index.h("div", { class: "text-success mt-2" }, index.h("small", null, "\u2713 Bank account verified successfully")));
|
|
507
|
+
}
|
|
508
|
+
if (this.isAuthenticating) {
|
|
509
|
+
return (index.h("div", { class: "text-info mt-2" }, index.h("small", null, "Connecting to your bank...")));
|
|
510
|
+
}
|
|
511
|
+
return null;
|
|
512
|
+
};
|
|
513
|
+
const plaidLogo = (index.h("img", { class: "plaid-logo-img", src: plaidIcon.plaidIconSvg, alt: "Plaid", title: "Plaid", style: {
|
|
514
|
+
display: 'inline',
|
|
515
|
+
width: '20px',
|
|
516
|
+
height: '20px',
|
|
517
|
+
marginLeft: '5px',
|
|
518
|
+
marginTop: '-2px',
|
|
519
|
+
} }));
|
|
520
|
+
return (index.h(styledHost.StyledHost, null, index.h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", null, index.h("div", { class: "mb-3" }, index.h(button.Button, { variant: "secondary", type: "button", onClick: (event) => { event.preventDefault(); this.openPlaidLink(); }, disabled: this.isLoading, part: parts.buttonSecondary }, "Link Bank Account with ", plaidLogo)), renderErrorState(), renderStatusState())));
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
exports.bank_account_document_form_inputs = BankAccountDocumentFormInputs;
|
|
525
|
+
exports.bank_account_form_inputs = BankAccountFormInputs;
|
|
526
|
+
exports.bank_account_form_inputs_canada = BankAccountFormInputsCanada;
|
|
527
|
+
exports.bank_account_read_only_value = BankAccountReadOnlyValue;
|
|
528
|
+
exports.business_documents_on_file = BusinessDocumentsOnFile;
|
|
529
|
+
exports.form_control_file = FileInput;
|
|
530
|
+
exports.justifi_business_representative_form_inputs = RepresentativeFormInputs;
|
|
531
|
+
exports.justifi_owner_form = BusinessOwnerForm;
|
|
532
|
+
exports.plaid_verification = PlaidVerification;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var skeleton = require('./skeleton-
|
|
5
|
-
var configState = require('./config-state-
|
|
3
|
+
var index = require('./index-p7cvUYAE.js');
|
|
4
|
+
var skeleton = require('./skeleton-BGGMhPJj.js');
|
|
5
|
+
var configState = require('./config-state-BIgGhhe9.js');
|
|
6
6
|
var utils = require('./utils-D4WPxuzW.js');
|
|
7
|
-
require('./parts-
|
|
8
|
-
require('./index-
|
|
7
|
+
require('./parts-BsBVknuf.js');
|
|
8
|
+
require('./index-W-zoNiyM.js');
|
|
9
9
|
require('./dinero-BwNN_k7x.js');
|
|
10
10
|
|
|
11
11
|
const BankAccountFormSkeleton = (props) => {
|
|
@@ -48,10 +48,10 @@ const BankAccountForm = class {
|
|
|
48
48
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (index.h(index.Host, { key: '
|
|
51
|
+
return (index.h(index.Host, { key: 'a104b2e88e818472d0158990ccf2cac6d7315616' }, index.h(BankAccountFormSkeleton, { key: '1ed1ac87a66aedf6a7528247e0ff3a803c74e4c3', isReady: this.isReady }), index.h("div", { key: 'a96c05c60c51f97c8abb7dc6a8cfebc940ea1513', class: "container-fluid p-0", style: {
|
|
52
52
|
opacity: this.isReady ? '1' : '0',
|
|
53
53
|
height: this.isReady ? 'auto' : '0',
|
|
54
|
-
} }, index.h("div", { key: '
|
|
54
|
+
} }, index.h("div", { key: '3d168fd241702b30f0c8727d3c0aae65c20b69aa', class: "row mb-3" }, index.h("iframe-input", { key: 'dc1da989b1577ed62b3eeafd33128aca38e4610d', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), index.h("div", { key: '1179ae9d6b9f476bb01a1ee4f4edd7da6f22f635', class: "row" }, index.h("iframe-input", { key: '7e79b383876be1711a2e21ab7462f86281ebf28c', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index_esm = require('./index.esm-ByC0D4sJ.js');
|
|
4
|
-
var schemaValidations = require('./schema-validations-
|
|
5
|
-
var Business = require('./Business-
|
|
6
|
-
var countryConfig = require('./country-config-
|
|
4
|
+
var schemaValidations = require('./schema-validations-BakyfJpE.js');
|
|
5
|
+
var Business = require('./Business-CB8EVrhD.js');
|
|
6
|
+
var countryConfig = require('./country-config-ETD-7Wb7.js');
|
|
7
7
|
|
|
8
8
|
// Base schema (no country-specific rules for classification/tax id)
|
|
9
9
|
const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
@@ -54,12 +54,14 @@ const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
|
54
54
|
const schema = index_esm.create$3({
|
|
55
55
|
business_revenue: schemaValidations.revenueValidation.required('Enter business revenue'),
|
|
56
56
|
business_payment_volume: schemaValidations.paymentVolumeValidation.required('Enter business payment volume'),
|
|
57
|
+
business_average_transaction_amount: schemaValidations.revenueValidation.required('Enter average transaction amount'),
|
|
57
58
|
business_when_service_received: schemaValidations.whenServiceReceivedValidation.required('Select when service is received'),
|
|
58
59
|
business_other_payment_details: schemaValidations.otherPaymentDetailsValidation.nullable(),
|
|
59
60
|
});
|
|
60
61
|
const easySchema = index_esm.create$3({
|
|
61
62
|
business_revenue: schemaValidations.revenueValidation.nullable(),
|
|
62
63
|
business_payment_volume: schemaValidations.paymentVolumeValidation.nullable(),
|
|
64
|
+
business_average_transaction_amount: schemaValidations.revenueValidation.nullable(),
|
|
63
65
|
business_when_service_received: schemaValidations.whenServiceReceivedValidation.nullable(),
|
|
64
66
|
business_other_payment_details: schemaValidations.otherPaymentDetailsValidation.nullable(),
|
|
65
67
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var utils = require('./utils-
|
|
5
|
-
var styledHost = require('./styled-host-
|
|
3
|
+
var index = require('./index-p7cvUYAE.js');
|
|
4
|
+
var utils = require('./utils-T6hRmGuY.js');
|
|
5
|
+
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
6
6
|
require('./event-types-YOY5TKUN.js');
|
|
7
|
-
var skeleton = require('./skeleton-
|
|
8
|
-
require('./parts-
|
|
7
|
+
var skeleton = require('./skeleton-BGGMhPJj.js');
|
|
8
|
+
require('./parts-BsBVknuf.js');
|
|
9
9
|
|
|
10
10
|
const BusinessDetailsLoading = () => {
|
|
11
11
|
const Block = () => (index.h("div", { class: "mt-5" }, index.h(skeleton.Skeleton, { width: "40%", height: "1.5rem" }), index.h("hr", null), index.h("div", { class: "row g-3" }, index.h("div", { class: "col-12 col-md-6" }, index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null)), index.h("div", { class: "col-12 col-md-6" }, index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null)))));
|
|
@@ -21,7 +21,7 @@ var RENDER_STATES;
|
|
|
21
21
|
const BusinessDetailsCore = class {
|
|
22
22
|
constructor(hostRef) {
|
|
23
23
|
index.registerInstance(this, hostRef);
|
|
24
|
-
this.errorEvent = index.createEvent(this, "error-event");
|
|
24
|
+
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
25
25
|
this.renderState = RENDER_STATES.LOADING;
|
|
26
26
|
}
|
|
27
27
|
async componentWillLoad() {
|
|
@@ -54,7 +54,7 @@ const BusinessDetailsCore = class {
|
|
|
54
54
|
if (this.renderState === RENDER_STATES.ERROR) {
|
|
55
55
|
return index.h(styledHost.StyledHost, null, utils.ErrorState(this.errorMessage));
|
|
56
56
|
}
|
|
57
|
-
return (index.h(styledHost.StyledHost, null, index.h("justifi-details", {
|
|
57
|
+
return (index.h(styledHost.StyledHost, null, index.h("justifi-details", { errorMessage: this.errorMessage }, index.h("div", { slot: 'detail-sections' }, index.h("core-info-details", { business: this.business }), index.h("legal-address-details", { legalAddress: this.business.legal_address }), index.h("representative-details", { representative: this.business.representative }), index.h("owner-details", { owners: this.business.owners }), index.h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
|