@justifi/webcomponents 6.10.2 → 6.10.4
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/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-Cl6qJPK_.js → badge-Bd6H9TX2.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +7 -13
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/button-DAbSQPoU.js +43 -0
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-axrC8Ato.js → check-pkg-version-Mv0ez8Cf.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{checkouts-table-CXgizBib.js → checkouts-table-KuNixae0.js} +2 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-error-text-6-HeM6bw.js → form-control-error-text-C4Wqr79O.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-help-text-D0LaZkGk.js → form-control-help-text-Bo9d_mCH.js} +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-BOijdmPN.js → header-1-DR-eAlp1.js} +1 -1
- package/dist/cjs/{header-3-FeTJjrR1.js → header-3-kgnQtxEu.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +3 -3
- package/dist/cjs/{insurance-state-DIV_moDI.js → insurance-state-CRhLwPxQ.js} +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +73 -65
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +26 -19
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CAxc3X25.js → package-OpgJzVo3.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-C0AyF3nd.js → parts-WjOn_TIy.js} +16 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +5 -5
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-loading-CbcFPETB.js → payment-provisioning-loading-BHAFHTuI.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{payments-status-EZ95BQex.js → payments-status-BngaUiWA.js} +1 -1
- package/dist/cjs/{payments-table-D5Hw3JDe.js → payments-table-DFOF8yrM.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +9 -9
- package/dist/cjs/payouts-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{payouts-status-D1IbE3-c.js → payouts-status-CP5T9uAc.js} +1 -1
- package/dist/cjs/{payouts-table-DmVthJLU.js → payouts-table-CHNRLZ3K.js} +2 -2
- package/dist/cjs/plaid.service-DvbLnuph.js +43 -0
- package/dist/cjs/{skeleton-C9Aio7v_.js → skeleton-BfN_sjaY.js} +1 -1
- package/dist/cjs/{spinner-oLSXKwxU.js → spinner-51BOfCoS.js} +1 -1
- package/dist/cjs/{table-CEW0_wq-.js → table-CimkSek7.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminal-orders-table-DPHz95-0.js → terminal-orders-table-DDLvv83x.js} +2 -2
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminals-table-C6rm50Mk.js → terminals-table-BU73whCF.js} +2 -2
- package/dist/cjs/{utils-Vwo0VR7n.js → utils-CowQ4GdN.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +71 -64
- package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +1 -8
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +14 -9
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/styles/parts.js +7 -0
- package/dist/collection/ui-components/button.js +27 -3
- package/dist/docs.json +14 -14
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-AZ7Z3PKH.js → badge-BfWXAKIJ.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +6 -12
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/button-DoF-zpiW.js +41 -0
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BVLXSZXz.js → check-pkg-version-QOngucT4.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +5 -5
- package/dist/esm/{checkouts-table-C5aYyqpX.js → checkouts-table-XjFiAWCw.js} +2 -2
- package/dist/esm/custom-popper_2.entry.js +1 -1
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-xEskXF-M.js → form-control-error-text-D5B0Wy4Q.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +2 -2
- package/dist/esm/{form-control-help-text-Dgnv4IId.js → form-control-help-text-XuRclELV.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number-masked_3.entry.js +2 -2
- package/dist/esm/form-control-number_3.entry.js +4 -4
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-xlSavD5o.js → header-1-BIaO3iDb.js} +1 -1
- package/dist/esm/{header-3-egutsoDI.js → header-3-UswhFvUr.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +3 -3
- package/dist/esm/{insurance-state-jZTKdt60.js → insurance-state-MpA7uaXF.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +5 -5
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +73 -65
- package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_8.entry.js +23 -16
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-order-terminals.entry.js +4 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +6 -6
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +6 -6
- package/dist/esm/justifi-refund-payment.entry.js +5 -5
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-skeleton.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Bjv3eJBk.js → package-Cc6518FT.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-C4FLe2pT.js → parts-c8J1gsDg.js} +9 -1
- package/dist/esm/payment-details-core.entry.js +5 -5
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-loading-D_VKtlLm.js → payment-provisioning-loading-DRFgrvp1.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +6 -6
- package/dist/esm/{payments-status-D4XkcfLU.js → payments-status-Dkt38hpB.js} +1 -1
- package/dist/esm/{payments-table-BDaiD836.js → payments-table-ghXGJ-N6.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +9 -9
- package/dist/esm/payouts-list-core.entry.js +6 -6
- package/dist/esm/{payouts-status-BR1vd6-D.js → payouts-status-B4iry-1w.js} +1 -1
- package/dist/esm/{payouts-table-B4nuJlpC.js → payouts-table-CBsTdL9_.js} +2 -2
- package/dist/esm/plaid.service-C59iS7tB.js +41 -0
- package/dist/esm/{skeleton-C162KC3u.js → skeleton-DzBAY0bs.js} +1 -1
- package/dist/esm/{spinner-BfjGGaND.js → spinner-DQpyMqKv.js} +1 -1
- package/dist/esm/{table-hHARNoRM.js → table-BwxLvetJ.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +5 -5
- package/dist/esm/{terminal-orders-table-B-xs6ocO.js → terminal-orders-table-Cy0qV96Y.js} +2 -2
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +5 -5
- package/dist/esm/{terminals-table-CnKH-UOw.js → terminals-table-BQQs_JoR.js} +2 -2
- package/dist/esm/{utils-BSpK1eMX.js → utils-BGbtbDiV.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/apple-pay.js +13 -8
- package/dist/module/business-bank-account-form-step.js +71 -64
- package/dist/module/button.js +27 -3
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/checkout.store.js +1 -1
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/customer-details.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/justifi-checkout.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/modular-checkout.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +9 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +3 -2
- package/dist/module/plaid-verification2.js +1 -8
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +10 -3
- package/dist/types/styles/parts.d.ts +7 -0
- package/dist/types/ui-components/button.d.ts +2 -1
- package/dist/webcomponents/{p-52dc271f.entry.js → p-01a84bc8.entry.js} +1 -1
- package/dist/webcomponents/p-02cf51ab.entry.js +1 -0
- package/dist/webcomponents/p-0559b9c1.entry.js +1 -0
- package/dist/webcomponents/{p-b61080bd.entry.js → p-06af9f9f.entry.js} +1 -1
- package/dist/webcomponents/{p-8e631781.entry.js → p-09401e56.entry.js} +1 -1
- package/dist/webcomponents/{p-05d11c40.entry.js → p-2531ee6c.entry.js} +1 -1
- package/dist/webcomponents/{p-8a42d4fe.entry.js → p-27518699.entry.js} +1 -1
- package/dist/webcomponents/{p-282134de.entry.js → p-277bc549.entry.js} +1 -1
- package/dist/webcomponents/{p-1b973781.entry.js → p-2b60c926.entry.js} +1 -1
- package/dist/webcomponents/{p-ec933218.entry.js → p-319ac08d.entry.js} +1 -1
- package/dist/webcomponents/p-32bf8202.entry.js +1 -0
- package/dist/webcomponents/p-3469a272.entry.js +1 -0
- package/dist/webcomponents/{p-19f1e643.entry.js → p-37407a7f.entry.js} +1 -1
- package/dist/webcomponents/{p-b54bf8da.entry.js → p-392c431d.entry.js} +1 -1
- package/dist/webcomponents/{p-11402020.entry.js → p-3cfc202a.entry.js} +1 -1
- package/dist/webcomponents/{p-BqpQa748.js → p-3kNggPyP.js} +1 -1
- package/dist/webcomponents/{p-6486555d.entry.js → p-43c70ddf.entry.js} +1 -1
- package/dist/webcomponents/{p-bcba5950.entry.js → p-4556535d.entry.js} +1 -1
- package/dist/webcomponents/{p-402ba9aa.entry.js → p-559ff95b.entry.js} +1 -1
- package/dist/webcomponents/p-56362fb6.entry.js +1 -0
- package/dist/webcomponents/{p-c7930f9a.entry.js → p-5895654d.entry.js} +1 -1
- package/dist/webcomponents/{p-154efb83.entry.js → p-5d4e607a.entry.js} +1 -1
- package/dist/webcomponents/{p-c72c5b99.entry.js → p-5d5e26f7.entry.js} +1 -1
- package/dist/webcomponents/{p-643f1616.entry.js → p-64d78daf.entry.js} +1 -1
- package/dist/webcomponents/{p-d36725a3.entry.js → p-654573c2.entry.js} +1 -1
- package/dist/webcomponents/p-6986bd9d.entry.js +1 -0
- package/dist/webcomponents/{p-0f1c100d.entry.js → p-6b6195c9.entry.js} +1 -1
- package/dist/webcomponents/{p-a105de67.entry.js → p-6b6d8263.entry.js} +1 -1
- package/dist/webcomponents/p-71b6fdd9.entry.js +1 -0
- package/dist/webcomponents/p-77CuiIig.js +1 -0
- package/dist/webcomponents/{p-c6aee723.entry.js → p-79975b5d.entry.js} +1 -1
- package/dist/webcomponents/{p-808bf425.entry.js → p-79d76cd4.entry.js} +1 -1
- package/dist/webcomponents/{p-2d39358b.entry.js → p-81b3f90f.entry.js} +1 -1
- package/dist/webcomponents/{p-e8f9b081.entry.js → p-91bf7445.entry.js} +1 -1
- package/dist/webcomponents/{p-c0592f5f.entry.js → p-91ee58e0.entry.js} +1 -1
- package/dist/webcomponents/{p-f1b99b0d.entry.js → p-941eac67.entry.js} +1 -1
- package/dist/webcomponents/{p-8dc8ad9a.entry.js → p-9438f755.entry.js} +1 -1
- package/dist/webcomponents/{p-d7bd9d76.entry.js → p-95b78da8.entry.js} +1 -1
- package/dist/webcomponents/{p-9a11f17b.entry.js → p-98a1b12a.entry.js} +1 -1
- package/dist/webcomponents/{p-5206cd09.entry.js → p-9eeaf2f9.entry.js} +1 -1
- package/dist/webcomponents/p-BBNT9yj5.js +1 -0
- package/dist/webcomponents/p-BMqYkvp1.js +1 -0
- package/dist/webcomponents/p-BnVuFEgH.js +1 -0
- package/dist/webcomponents/{p-DAZtHA62.js → p-BylxH1fV.js} +1 -1
- package/dist/webcomponents/{p-DyJ1zSHJ.js → p-C47u26qr.js} +1 -1
- package/dist/webcomponents/{p-CIh-k9yP.js → p-CMq8FpAG.js} +1 -1
- package/dist/webcomponents/{p-CGJ_mnry.js → p-CV5ZI_qC.js} +1 -1
- package/dist/webcomponents/{p-DsT0m0mo.js → p-CVa33GsE.js} +1 -1
- package/dist/webcomponents/p-CVkk7TvR.js +1 -0
- package/dist/webcomponents/p-Cc6518FT.js +1 -0
- package/dist/webcomponents/p-CmRrs0bo.js +1 -0
- package/dist/webcomponents/p-CmYy5XDp.js +1 -0
- package/dist/webcomponents/p-CncaMWc8.js +1 -0
- package/dist/webcomponents/{p-CJZ09QNH.js → p-CtxSp8dd.js} +1 -1
- package/dist/webcomponents/{p-5mt2ek0H.js → p-DL3PPUGZ.js} +1 -1
- package/dist/webcomponents/p-DmrpBh4P.js +1 -0
- package/dist/webcomponents/p-DrSNQm-e.js +1 -0
- package/dist/webcomponents/{p-HfLk4CG0.js → p-DvptzT44.js} +1 -1
- package/dist/webcomponents/{p-C3kbpEIZ.js → p-PtJwUDIK.js} +1 -1
- package/dist/webcomponents/p-a0134f5a.entry.js +1 -0
- package/dist/webcomponents/{p-cb9abd2c.entry.js → p-a6d56b36.entry.js} +1 -1
- package/dist/webcomponents/{p-c6a9410d.entry.js → p-a75bc18b.entry.js} +1 -1
- package/dist/webcomponents/{p-21620dd2.entry.js → p-abc769fa.entry.js} +1 -1
- package/dist/webcomponents/{p-4fc5ffda.entry.js → p-b3675b20.entry.js} +1 -1
- package/dist/webcomponents/{p-DYEXDs2k.js → p-b4MDVEve.js} +1 -1
- package/dist/webcomponents/{p-e71e4c49.entry.js → p-b9248f88.entry.js} +1 -1
- package/dist/webcomponents/p-bafe9deb.entry.js +1 -0
- package/dist/webcomponents/p-bb4da414.entry.js +1 -0
- package/dist/webcomponents/{p-4ebaafe3.entry.js → p-c5540693.entry.js} +1 -1
- package/dist/webcomponents/p-c8J1gsDg.js +1 -0
- package/dist/webcomponents/{p-9d69ae9f.entry.js → p-d07748fa.entry.js} +4 -4
- package/dist/webcomponents/{p-5862236f.entry.js → p-d0abe57d.entry.js} +1 -1
- package/dist/webcomponents/p-d47909f1.entry.js +1 -0
- package/dist/webcomponents/p-d6bf1592.entry.js +1 -0
- package/dist/webcomponents/{p-fbfe6211.entry.js → p-dbf2ba9e.entry.js} +1 -1
- package/dist/webcomponents/{p-7e14f6ac.entry.js → p-df110446.entry.js} +1 -1
- package/dist/webcomponents/{p-540e2ef2.entry.js → p-e0cca91e.entry.js} +1 -1
- package/dist/webcomponents/{p-479e4baf.entry.js → p-e4ef4a19.entry.js} +1 -1
- package/dist/webcomponents/{p-ff4d485f.entry.js → p-ec9f527d.entry.js} +1 -1
- package/dist/webcomponents/{p-7f3dcd42.entry.js → p-ee06f2fa.entry.js} +1 -1
- package/dist/webcomponents/{p-88c6713a.entry.js → p-f01cdb9f.entry.js} +1 -1
- package/dist/webcomponents/{p-eeee370f.entry.js → p-f2110cd2.entry.js} +1 -1
- package/dist/webcomponents/p-f9f0a5c8.entry.js +1 -0
- package/dist/webcomponents/{p-e89d0f36.entry.js → p-fa876b02.entry.js} +1 -1
- package/dist/webcomponents/{p-7e3030c2.entry.js → p-fe0feef1.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +4 -2
- package/dist/cjs/button-Cr3iHpyf.js +0 -19
- package/dist/cjs/plaid-icon-DiZrP1DM.js +0 -46
- package/dist/esm/button-DOkTCYSa.js +0 -17
- package/dist/esm/plaid-icon-B7a1QC7F.js +0 -43
- package/dist/module/plaid-icon.js +0 -3
- package/dist/webcomponents/p--Kvji7o2.js +0 -1
- package/dist/webcomponents/p-0588173b.entry.js +0 -1
- package/dist/webcomponents/p-1a4d5f16.entry.js +0 -1
- package/dist/webcomponents/p-21b5240d.entry.js +0 -1
- package/dist/webcomponents/p-35d1be0f.entry.js +0 -1
- package/dist/webcomponents/p-4d6031dd.entry.js +0 -1
- package/dist/webcomponents/p-62f9c008.entry.js +0 -1
- package/dist/webcomponents/p-6c503a00.entry.js +0 -1
- package/dist/webcomponents/p-6d565cd6.entry.js +0 -1
- package/dist/webcomponents/p-7318981d.entry.js +0 -1
- package/dist/webcomponents/p-7d122d5b.entry.js +0 -1
- package/dist/webcomponents/p-7dc5995e.entry.js +0 -1
- package/dist/webcomponents/p-8c55dac0.entry.js +0 -1
- package/dist/webcomponents/p-Bjv3eJBk.js +0 -1
- package/dist/webcomponents/p-BoO2BHR_.js +0 -1
- package/dist/webcomponents/p-BtFe5yQU.js +0 -1
- package/dist/webcomponents/p-C4FLe2pT.js +0 -1
- package/dist/webcomponents/p-CI11WF1E.js +0 -1
- package/dist/webcomponents/p-DFiTyYE9.js +0 -1
- package/dist/webcomponents/p-DO4RBao8.js +0 -1
- package/dist/webcomponents/p-DqVU8ohH.js +0 -1
- package/dist/webcomponents/p-DyETkJs3.js +0 -1
- package/dist/webcomponents/p-EaBIgUj8.js +0 -1
- package/dist/webcomponents/p-Jz9qdPhR.js +0 -1
- package/dist/webcomponents/p-ccb0a84a.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{f as t,p as s,c as r}from"./p-BPTtWj7E.js";import{v as l,w as d,x as i,y as o,z as c}from"./p-
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{f as t,p as s,c as r}from"./p-BPTtWj7E.js";import{v as l,w as d,x as i,y as o,z as c}from"./p-c8J1gsDg.js";import{S as p}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{c as f,a as b}from"./p-MeSAYDNh.js";import"./p-Cjcsf8ku.js";import{T as n,c as m}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(p,{key:"e10311bf0cdb5aab7ec7a96a05216bc39231db77"},a("table-filters-menu",{key:"9402f8bd704c5d76504f0c7b3da78b51c519f69d",params:e,clearParams:r,part:l},a("div",{key:"87af1b11432fc9dab0ce81e763e417e04d024dcc",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"b12db0f4cb4dd0256406db39cd585fbcb301f6e9",class:"p-2"},a("form-control-select",{key:"50137d63a0f8fbf71fd0c49cb9227f180a5a4277",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status||"",disabled:!!this.orderStatus,part:d})),a("div",{key:"aa5c6e5115a8e5fc0394fc36823a229643659968",class:"p-2"},a("form-control-select",{key:"4b5d54c20275ff4951f9f26d780dfeab609a7b0e",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type||"",disabled:!!this.orderType,part:i})),a("div",{key:"6f1f85268e131865bcfc27395ca90b86f9e9aa30",class:"p-2"},a("form-control-date",{key:"4c2173c3992e6dfd10d133c106e2b706d3ad6d10",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDateTime:!0})||b(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"cc629832d18b1de06b3f513ca80648e4cf10f439",class:"p-2"},a("form-control-date",{key:"a4bb24199f37fce8f3971262fbe9cd62af7a18f5",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDateTime:!0})||b(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:c})))))}};export{u as justifi_terminal_orders_list_filters}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as a,H as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-
|
|
1
|
+
import{h as e,r as a,H as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-CmYy5XDp.js";import{w as s,c}from"./p-DVJaoI_m.js";import{b as r}from"./p-MeSAYDNh.js";import"./p-c8J1gsDg.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const o=a=>{const{isReady:i}=a;return i?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"120px"}),e(t,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"110px"}),e(t,{height:"36px"}))))},n=class{constructor(e){a(this,e),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin,this.tabId=r()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((a=>{e.addEventListener("iframeLoaded",(()=>{a()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),a=await this.routingNumberIframeElement.validate();return e&&a}async tokenize(e,a,i){return this.accountNumberIframeElement.tokenize(e,a,i)}render(){return e(i,{key:"a104b2e88e818472d0158990ccf2cac6d7315616"},e(o,{key:"1ed1ac87a66aedf6a7528247e0ff3a803c74e4c3",isReady:this.isReady}),e("div",{key:"a96c05c60c51f97c8abb7dc6a8cfebc940ea1513",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"3d168fd241702b30f0c8727d3c0aae65c20b69aa",class:"row mb-3"},e("iframe-input",{key:"dc1da989b1577ed62b3eeafd33128aca38e4610d",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),e("div",{key:"1179ae9d6b9f476bb01a1ee4f4edd7da6f22f635",class:"row"},e("iframe-input",{key:"7e79b383876be1711a2e21ab7462f86281ebf28c",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{n as bank_account_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as r}from"./p-CV0Pyo1O.js";import{a1 as t}from"./p-c8J1gsDg.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as n}from"./p-55QcjheA.js";import"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const t=n();class i{async getLinkToken(n,i,o,a){return t.post({endpoint:`plaid/${i}/link`,body:{checkout_id:o},authToken:n,signal:a})}async getLinkTokenForVerification(n,i,o){return t.post({endpoint:`entities/plaid/${i}/link_token`,body:{},authToken:n,signal:o})}async getBankAccountData(n,i,o){return t.get({endpoint:`entities/plaid/${i}/bank_account`,authToken:n,signal:o})}async postPlaidVerifiedBankAccountData(n,i,o,a){return t.post({endpoint:`entities/plaid/${i}/bank_account`,body:o,authToken:n,signal:a})}async tokenizeBankAccount(n,i,o,a,e,s){const c=`plaid/${i}/tokenize`,p={public_token:o};return a&&(p.link_token_id=a),e&&(p.payment_method_group_id=e),t.post({endpoint:c,body:p,authToken:n,signal:s})}}export{i as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as o}from"./p-CV0Pyo1O.js";import{a2 as s}from"./p-c8J1gsDg.js";const r=r=>o("h3",{class:`header-3 ${null==r?void 0:r.class}`,part:s},r.text);export{r as H}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s}from"./p-CV0Pyo1O.js";import{H as t,I as a,J as l,K as e}from"./p-
|
|
1
|
+
import{h as s}from"./p-CV0Pyo1O.js";import{H as t,I as a,J as l,K as e}from"./p-c8J1gsDg.js";const o=a=>s("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},s("p",{part:t},a)),c=t=>s("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},t.sectionTitle),r=({title:a,value:l,onClick:o})=>a&&l?s("div",{class:"row justify-content-between"},s("div",{class:"col-12 col-md-4"},s("span",{class:"fw-bold",part:t},a)),s("div",{class:"col-12 col-md-8 "+(o?"text-decoration-underline text-primary":""),style:{cursor:o?"pointer":"auto"},onClick:()=>o&&o()},s("span",{class:"text-wrap",part:o?e:t},l))):null,p=({title:a,value:e,classes:o})=>s("div",{class:`d-flex flex-column ${o}`},s("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},a),s("span",{class:"pt-2 ps-2 pe-2",part:t},e)),n=({title:l,slot:e,badge:o},c)=>s("div",{slot:e,class:"p-2"},s("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},s("h1",{class:"m-0",part:a},l),o),s("div",{class:"d-flex flex-row align-items-top",part:t},c)),i=({metadata:t})=>t&&Object.keys(t).length?s("div",{class:"mt-4"},s("pre",{class:"p-2","aria-label":"metadata content"},s("code",null,JSON.stringify(t,null,2)))):null;export{i as C,c as D,o as E,n as a,p as b,r as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-CV0Pyo1O.js";import{B as e,a as i}from"./p-
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{B as e,a as i}from"./p-CncaMWc8.js";import{V as a,W as r}from"./p-c8J1gsDg.js";import{h as n}from"./p-MeSAYDNh.js";const o="nickname,provider_serial_number,status",c={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},s={nickname:(e,i)=>t("td",{part:r(i)},e.nickname),model_name:(e,i)=>t("td",{part:r(i)},e.model_name),id:(e,i)=>t("td",{part:r(i)},e.id),provider:(e,i)=>t("td",{part:r(i)},n(e.provider)),provider_serial_number:(e,i)=>t("td",{part:r(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:r(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:r(i)},e.sub_account_name),status:(a,n)=>t("td",{part:r(n)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:e.SECONDARY,title:"This terminal is archived",text:"Archived"}}[a.status])))};export{s as a,o as d,c as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-CV0Pyo1O.js";import{V as e,W as r}from"./p-
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{V as e,W as r}from"./p-c8J1gsDg.js";import{a}from"./p-MeSAYDNh.js";import"./p-DVJaoI_m.js";import"./p-Cjcsf8ku.js";import{c as s}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{B as o,a as i}from"./p-CncaMWc8.js";const d="created_at,updated_at,order_status,quantity",p={created_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:e,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:e,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:e,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:e,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:e,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:e,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},c={created_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.updated_at,{showTime:!0}))),order_status:(e,a)=>t("td",{part:r(a)},t(i,Object.assign({},{submitted:{variant:o.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:o.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:o.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:o.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:o.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:o.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,a)=>t("td",{part:r(a)},e.business_id),company_name:(e,a)=>t("td",{part:r(a)},e.company_name),provider:(e,a)=>t("td",{part:r(a)},e.provider),order_type:(e,a)=>{let o;return e.order_type===s.boardingOnly?o="Boarding Only":e.order_type===s.boardingShipping&&(o="Boarding & Shipping"),t("td",{part:r(a)},o)},quantity:(e,a)=>t("td",{part:r(a)},e.terminals.length)};export{c as a,d,p as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-CV0Pyo1O.js";import{d as e,e as a}from"./p-MeSAYDNh.js";import{B as c,a as o}from"./p-
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{d as e,e as a}from"./p-MeSAYDNh.js";import{B as c,a as o}from"./p-CncaMWc8.js";import{V as p,W as s}from"./p-c8J1gsDg.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{n as a,d as c,r as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-CV0Pyo1O.js";import{B as a,a as e}from"./p-
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{B as a,a as e}from"./p-CncaMWc8.js";const n=n=>t(e,Object.assign({},{canceled:{variant:a.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:a.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:a.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:a.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:a.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:a.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:a.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:a.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{H as e}from"./p-c8J1gsDg.js";const o=o=>{const{helpText:r,name:s}=o;return r?t("small",{class:"form-text text-muted",id:`form-help-text-${s}`,part:e},r):null};export{o as F}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={name:"@justifi/webcomponents",version:"6.10.4"};export{e as p}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as o}from"./p-CV0Pyo1O.js";import{I as s}from"./p-c8J1gsDg.js";const r=r=>o("h1",{class:`header-1 ${null==r?void 0:r.class}`,part:s},r.text);export{r as H}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{G as s}from"./p-c8J1gsDg.js";const e=({component:e="div",height:o,width:r,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:r,height:o});return t(e,{class:`${i} skeleton`,style:c,part:s,"aria-hidden":"true"})};export{e as S}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as a}from"./p-CV0Pyo1O.js";import{L as s,M as r,N as g,O as e,P as n,Q as d,R as i,S as t,T as b}from"./p-c8J1gsDg.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:f}=c,l={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},y={default:b,primary:t,secondary:i,success:d,danger:n,warning:e,info:g,light:r,dark:s};return a("span",{class:l[o]||l.default,part:y[o]||y.default,title:f},p)};export{c as B,o as a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-CV0Pyo1O.js";import{a}from"./p-MeSAYDNh.js";import{M as e}from"./p-
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{a}from"./p-MeSAYDNh.js";import{M as e}from"./p-CVa33GsE.js";import{V as o,W as s}from"./p-c8J1gsDg.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},c=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{c as a,p as d,r as p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-CV0Pyo1O.js";import{
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{aD as a,aE as s,aF as e,aG as r,aH as l,aI as c,aJ as o,aK as n,aL as p,aM as i}from"./p-c8J1gsDg.js";import{S as b}from"./p-DmrpBh4P.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),m=(a,s)=>t("tr",Object.assign({part:r},a),s),g=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),j=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),S=(a,s)=>t("td",Object.assign({part:o},a),s),x=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:n,colSpan:s,style:{textAlign:"center"}},"No results")):null},D=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},f=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class w{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{w as T,d as a,g as b,j as c,h as d,f as e,x as f,D as g,m as h,y as i,O as j,S as k,u as l}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-CV0Pyo1O.js";import{U as o}from"./p-c8J1gsDg.js";const r=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:o},s("span",{class:"visually-hidden"},"Loading...")));export{r as S}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-CV0Pyo1O.js";import{J as t}from"./p-c8J1gsDg.js";import{c as a}from"./p-D8GTwl9v.js";const r=a=>s("h2",{class:`header-2 ${null==a?void 0:a.class}`,part:t},a.text),o=a({}),{state:e,on:n}=o,i=a({}),{state:l}=i,p={},c=()=>{let s=!0;return Object.keys(e).forEach((t=>{null===e[t]?(l[t]=!0,s=!1):l[t]=!1})),{isValid:s}},m=(s,t)=>{const a=p.hasOwnProperty(s),r=p[s];if(!a)return p[s]=t,!1;const o=r!==t;return o&&(p[s]=t),o};export{r as H,l as a,n as b,m as h,e as i,c as v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./p-CV0Pyo1O.js";import{B as t,a}from"./p-
|
|
1
|
+
import{h as e}from"./p-CV0Pyo1O.js";import{B as t,a}from"./p-CncaMWc8.js";var d;!function(e){e.SUCCEEDED="succeeded",e.AUTHORIZED="authorized",e.PENDING="pending",e.ACH_FAILED="achFailed",e.FAILED="failed",e.CANCELED="canceled",e.DISPUTED="disputed",e.DISPUTE_LOST="dispute_lost",e.FULLY_REFUNDED="fully_refunded",e.PARTIALLY_REFUNDED="partially_refunded"}(d||(d={}));const i=d=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.WARNING,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},dispute_lost:{variant:t.SECONDARY,title:"The cardholder has won the dispute.",text:"Dispute Lost"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[d]));export{i as M,d as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as l}from"./p-CV0Pyo1O.js";import{S as s}from"./p-
|
|
1
|
+
import{h as l}from"./p-CV0Pyo1O.js";import{S as s}from"./p-CmYy5XDp.js";import"./p-CZfYo5-1.js";const i=()=>l("div",{class:"row gap-3"},l("div",{class:"col-12"},l(s,{width:"25%"})),l("div",{class:"col-12"},l(s,{width:"100%"})),l("div",{class:"col-12 d-flex gap-3"},l(s,{width:"50%"}),l(s,{width:"50%"})),l("div",{class:"col-12 d-flex gap-3"},l(s,{width:"65%"}),l(s,{width:"35%"}))),d=()=>l("div",{class:"row gap-5"},l("div",{class:"col-12"},l(s,{width:"40%",height:"40px"})),l(i,null),l(i,null),l(i,null));export{d as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as s,a as i}from"./p-Cjcsf8ku.js";import{h as r}from"./p-BiNakvsa.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c as o,J as c}from"./p-3kNggPyP.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as d}from"./p-B_KHnbK8.js";import{T as f,l,a as u,b as m,c as y,d as b,e as _,f as g,g as j,h as k,i as T,j as w,k as v}from"./p-DL3PPUGZ.js";import{S as C}from"./p-BqNNwq6C.js";import{T as D}from"./p-CZfYo5-1.js";import{a as P}from"./p-MeSAYDNh.js";import{V as F,W as S}from"./p-c8J1gsDg.js";import"./p-D8GTwl9v.js";import"./p-Cc6518FT.js";import"./p-55QcjheA.js";import"./p-DmrpBh4P.js";const R={created_at:()=>t("th",{part:F,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:F,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:F,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:F,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:F,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:F,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:F,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},I={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",platform_fee:"Platform Fee",platform_fee_return:"Platform Fee Return",processing_fee:"Processing Fee",processing_fee_return:"Processing Fee Return",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},x={created_at:(e,a)=>t("td",{part:S(a)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:S(a)},I[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:S(a)},e.id),amount:(e,a)=>t("td",{part:S(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:S(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:S(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:S(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:S(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:S(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:S(a)},e.source_id),source_type:(e,a)=>t("td",{part:S(a)},e.source_type)},q=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,R,x),o(),this.analytics=new c(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:i,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,i);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:s.ERROR}):n({balanceTransactions:c.data.map((t=>new r(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:s.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(i.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(C,{key:"7aaa611cf9d23ff9244d8df54e57daa3ec08a635"},t(l,{key:"d3f5244cfe909030c6072c7fdc4a5740029a4c17"},t(u,{key:"b0dc2044e5ee11b5d6a8298ed219c33f2bc42a35"},t(m,{key:"6a91d2b6968a6e969be3861c85b829c1ca5f899e"},t(y,{key:"ae84fd9d80b84054bfa1012137affa5c83b2be39"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"6a5cdec3190bb80ed3f78f295d07271838260fce"},t(_,{key:"9fef843fa67a8049d77432d75f89446a2abe5ccc",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"3be23e217a98d0b2727dabc783134996ef0f9084",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"791ff61e65fb2f4e6a83f7d5142565b4a89106b5",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"898e2236fbed139f8196452463e3f248c01608d4"},t(w,{key:"9b416e1f6122d095b7516816ed686fe116479512"},t(v,{key:"6a12ce5ee3c5f28058ee5796cb174ef9fa4505b5",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"06984f04a928213ecbb6b3bf5acd3cb3a48e901f",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{q as justifi_payment_transactions_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{C as e,a as o}from"./p-Cjcsf8ku.js";import{C as r,B as n,c as h}from"./p-BcNb9bVO.js";import{H as a}from"./p-
|
|
1
|
+
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{C as e,a as o}from"./p-Cjcsf8ku.js";import{C as r,B as n,c as h}from"./p-BcNb9bVO.js";import{H as a}from"./p-c8J1gsDg.js";import{S as p}from"./p-BqNNwq6C.js";import{H as l}from"./p-CmRrs0bo.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import{P as m}from"./p-PtJwUDIK.js";import"./p-CmYy5XDp.js";const u=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(l,{text:"Business Already Provisioned"})),s("div",{class:"col-12",part:a},s("p",null,"We have already received the onboarding information for this business."))),d=()=>s("div",{class:"row gap-3 p5"},s("div",{class:"col-12"},s(l,{text:"You're all set for now"})),s("div",{class:"col-12",part:a},s("p",null,"We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))),f=class{constructor(s){t(this,s),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.loading=!1,this.businessLoading=!0,this.businessProvisioned=!1,this.formSubmitted=!1,this.currentStep=0,this.country=r.USA,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new n(t.data);this.businessProvisioned=h(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:o.PROVISIONING_REQUESTED,severity:e.INFO}),this.businessLoading=!1,s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),this.businessLoading=!1,s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.formSubmitted=!0,this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}async componentWillLoad(){this.getBusiness?await this.setBusinessProvisioned():this.businessLoading=!1,this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`Step ${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return s(p,null,this.businessLoading?s(m,null):this.businessProvisioned?s(u,null):this.formSubmitted?s(d,null):s("div",{class:"row gap-3"},s(l,{text:this.formTitle}),s("justifi-payment-provisioning-form-steps",{businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),s("div",{class:"d-flex justify-content-between align-items-center"},s("div",{class:"d-flex align-items-center",part:a},this.stepCounter),s("justifi-payment-provisioning-form-buttons",{currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{f as justifi_payment_provisioning_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{F as r}from"./p
|
|
1
|
+
import{r as t,c as e,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{F as r}from"./p-BBNT9yj5.js";import{az as o,X as h,Z as l,Y as c,_ as f,$ as n}from"./p-c8J1gsDg.js";const d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.errorText="",this.inputHandler=()=>{},this.disabled=!1}render(){return s(a,{key:"9ae20e0fa6175e68642be79ada4f3464631be680",exportparts:"label,input,input-invalid"},s("div",{key:"607cd1269298725d8f4300f1b56adb945c361067",class:"form-group d-flex flex-column"},s("div",{key:"5490713d71075bf5a273ec1e39d3a7db525d11ff",class:"d-flex align-items-start gap-2"},s("label",{key:"1fcac0b30532d33c296884133991d72dfdbddd37",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"e06af0a48fb6dacc82f3730fb7f39b180a3375a3",helpText:this.helpText})),s("input",{key:"7ec47dbbad4a53b3ac6f513e82c67c27ce54498c",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),s(r,{key:"265cfe1af1dcebdca02b538872b4f2c4a6c57309",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.helpText="",this.errorText="",this.inputHandler=()=>{},this.disabled=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?h:this.isFocused?l:this.disabled?c:f}render(){return s(a,{key:"361916c679e9bead548bb19080d7365a83dfe444"},s("div",{key:"5c562f95399854ad9855281067d90b5378b10f36",class:"form-group d-flex flex-column"},s("label",{key:"93617701dac9c5e181bfc781336fa88341731b9b",part:n,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"342904cb39293458fb7fc2c951539e39f7eaff8b",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),s("form-control-help-text",{key:"fd9b7d6b6eab0a78d92efb06d0dcdb3c07ed69f0",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"e5250f3229a5b1315b5a0bcf93512fcfc52ce5a1",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as c}from"./p-D2muobcE.js";import{c as n,J as p}from"./p-3kNggPyP.js";import{C as h}from"./p-BHA4oSi3.js";import{m as u,S as m}from"./p-eEJMJXTG.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-CV5ZI_qC.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-Cc6518FT.js";import"./p-55QcjheA.js";import"./p-CncaMWc8.js";import"./p-c8J1gsDg.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){n(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){const t=this.subAccountId||this.accountId;t&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:n,onError:p})=>{var h,u;try{const m=await i.fetchCheckouts(t,s,r);if(m.error)return p({error:c(m.error),code:a(null===(u=m.error)||void 0===u?void 0:u.code),severity:o.ERROR});{const t=Object.assign({},m.page_info);n({checkouts:(null===(h=m.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:t,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID/Sub Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({primaryAccountId:this.accountId,authToken:this.authToken,service:new m}))}render(){return i(d,{key:"08345e8bbe637cea344a232da2302bd0298a5ac9"},i("checkouts-list-core",{key:"7aa34a0537810197cf6962d1a89e12e9ad9d8eea",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],subAccountId:["propChanged"]}}};export{l as justifi_checkouts_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{P as o}from"./p-8Wa_-5QM.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{e as a}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as p,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{P as o}from"./p-8Wa_-5QM.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{e as a}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as p,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-BylxH1fV.js";import{c,J as m}from"./p-3kNggPyP.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-55QcjheA.js";import"./p-MeSAYDNh.js";import"./p-D8GTwl9v.js";import"./p-c8J1gsDg.js";import"./p-Cc6518FT.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const c=await i.fetchPayout(t,s);c.error?e({error:h(c.error),code:p(null===(n=c.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new a(c.data))}catch(t){e({error:h(t),code:p(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-CV0Pyo1O.js";import{M as a}from"./p-
|
|
1
|
+
import{h as t}from"./p-CV0Pyo1O.js";import{M as a}from"./p-DvptzT44.js";import{a as e}from"./p-MeSAYDNh.js";import{V as o,W as r}from"./p-c8J1gsDg.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={created_at:()=>t("th",{part:o,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:o,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:o,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:o,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:o,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:o,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:o,scope:"col",title:"The brand of the payment method"},"Card Brand")},n={created_at:(a,o)=>t("td",{part:r(o)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:r(e)},a.formattedPaymentAmount(a.amount)),status:(e,o)=>t("td",{part:r(o)},a(e.status)),payment_type:(a,e)=>t("td",{part:r(e)},a.payment_type),description:(a,e)=>t("td",{part:r(e)},a.description),payers_name:(a,e)=>t("td",{part:r(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:r(e)},a.last_four_digits),card_brand:(a,e)=>{var o,s,p;return t("td",{part:r(e)},(p=(null===(o=a.payment_method.card)||void 0===o?void 0:o.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{n as a,s as d,p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-CV0Pyo1O.js";import{u as a}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-CV0Pyo1O.js";import{u as a}from"./p-c8J1gsDg.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const s=class{constructor(t){e(this,t)}render(){return t(o,{key:"cdf49c9446ea5fd6316523ecaf4f0f14be644e71",class:"payment-method"},t("div",{key:"7de753f710389cbbb1d604ca5af97e1dfc5af2af",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"7a3bb855c441031d7685aa23212cc471947108ec",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{s as payment_method_option}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s,r as i,c as t}from"./p-CV0Pyo1O.js";import{c as e,F as r}from"./p-CKiAlBsU.js";import{b as o,a,c as h}from"./p-BovgIz83.js";import{i as n,a as p,b as l,c as m}from"./p-D8EGHc_m.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as c,a as d}from"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import{C as j,B as u,b as f}from"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c as v,J as b}from"./p-3kNggPyP.js";import{B as g}from"./p-77CuiIig.js";import{S as C}from"./p-BqNNwq6C.js";import{H as w}from"./p-CmRrs0bo.js";import"./p-CZfYo5-1.js";import{S as y}from"./p-CmYy5XDp.js";import{B}from"./p-XYgDHrVL.js";import{m as D,b as _}from"./p-R0FDNhyd.js";import{B as k}from"./p-DqtDbB8E.js";import"./p-BFTU3MAI.js";import"./p-HT_4DkD0.js";import"./p-_-2E_vYf.js";import"./p-Bt4GjEWL.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-Cc6518FT.js";import"./p-55QcjheA.js";import"./p-c8J1gsDg.js";import"./p-D2muobcE.js";const O=e(Object.assign(Object.assign({},o().fields),{legal_address:p(),additional_questions:a(),representative:n("representative")}));e(Object.assign(Object.assign({},h().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const x=O,E=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),S=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(E,null),s(E,null),s(E,null)),q=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event",7),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.isLoading=!1,this.isSaving=!1,this.country=j.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new u(s);this.country=i.country_of_establishment,this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new u(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){v(),this.analytics=new b(this),this.formController=new r(x),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=D({authToken:this.authToken,businessId:this.businessId,service:new k}),this.patchBusiness=_({authToken:this.authToken,businessId:this.businessId,service:new k}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(C,null,this.isLoading?s(S,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(w,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(g,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:B.submit}),isLoading:this.isSaving},"Submit")))))}};export{q as justifi_business_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as e,H as i}from"./p-CV0Pyo1O.js";import{C as r,a as n}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as c}from"./p-R0FDNhyd.js";import{B as l,a as d,D as u}from"./p-DqtDbB8E.js";import{a as m,c as p,b}from"./p-BovgIz83.js";import{F as f,c as v,a as y,b as g,d as w}from"./p-CKiAlBsU.js";import{A as k,C as _,e as j,R as C,f as T}from"./p-BcNb9bVO.js";import{C as O,P as x}from"./p-CVaOFfrI.js";import{J as S,au as I,a4 as E,$ as A,Y as D,aO as L}from"./p-c8J1gsDg.js";import{P as B}from"./p-PtJwUDIK.js";import{b as P,c as H}from"./p-Bt4GjEWL.js";import{a as V,B as F}from"./p-XYgDHrVL.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{E as q,p as W,q as M}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{A as Y,B as N,v as U,C as R,D as z,E as J,F as X}from"./p-HT_4DkD0.js";import{B as G}from"./p-77CuiIig.js";import"./p-CZfYo5-1.js";import{c as $}from"./p-_-2E_vYf.js";import{d as K,e as Q}from"./p-D8EGHc_m.js";import{A as Z}from"./p-55QcjheA.js";import"./p-D2muobcE.js";import"./p-BFTU3MAI.js";import"./p-CmYy5XDp.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";class ss{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.account_number=s.account_number,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.institution_number=s.institution_number,this.transit_number=s.transit_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const ts=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.additional_questions=new k(s.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:V.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t})),this.additional_questions=new k(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}recurringPaymentsWatcher(s){this.recurringPayments="Yes"===(null==s?void 0:s.business_recurring_payments)}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{additional_questions:new k(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new f(m(this.allowOptionalFields))}componentDidLoad(){this.getBusiness&&this.getData(),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new l}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new l})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var s,t,i,r,n;const o=this.formController.getInitialValues();return this.isLoading?e(B,null):e("form",null,e("fieldset",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Additional Questions"),e("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),e("hr",{class:"mt-2"}),e("div",{class:"row gy-3"},e("div",{class:"col-12 col-md-6"},e("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==o?void 0:o.business_revenue,maskOptions:O.WHOLE})),e("div",{class:"col-12 col-md-6"},e("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(t=this.errors)||void 0===t?void 0:t.business_payment_volume,defaultValue:null==o?void 0:o.business_payment_volume,maskOptions:O.WHOLE})),e("div",{class:"col-12"},e("form-control-text",{name:"business_average_transaction_amount",label:"What is your average transaction size?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_average_transaction_amount,defaultValue:null==o?void 0:o.business_average_transaction_amount})),e("div",{class:"col-12"},e("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_when_service_received,options:P,defaultValue:null==o?void 0:o.business_when_service_received})),e("div",{class:"col-12"},e("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_other_payment_details,defaultValue:null==o?void 0:o.business_other_payment_details})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],additional_questions:["recurringPaymentsWatcher"]}}},es=(s,t)=>s.some((s=>s.document_type===t)),is=s=>s?{bank_name:z.nullable(),nickname:R.nullable(),account_owner_name:U.nullable(),account_type:N.nullable(),account_number:Y.nullable()}:{bank_name:z.required("Enter bank name"),nickname:R.required("Enter nickname"),account_owner_name:U.required("Enter account owner name"),account_type:N.required("Select account type"),account_number:Y.required("Enter account number")},rs=(s,t)=>{if(t)return{voided_check:g().nullable(),bank_statement:g().nullable()};const e=es(s,q.voidedCheck),i=es(s,q.bankStatement),r=e||i,n="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:g().when("bank_statement",{is:s=>!s&&!r,then:s=>s.required(n),otherwise:s=>s.notRequired()}),bank_statement:g().when("voided_check",{is:s=>!s&&!r,then:s=>s.required(n),otherwise:s=>s.notRequired()})}},ns={[_.USA]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},is(t)),(s=>s?{routing_number:X.nullable()}:{routing_number:X.required("Enter routing number")})(t)),rs(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s),[_.CAN]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},is(t)),(s=>{const t=y().length(3,"Institution number must be 3 digits").matches(J,"Enter valid institution number"),e=y().length(5,"Transit number must be 5 digits").matches(J,"Enter valid transit number");return s?{institution_number:t.nullable(),transit_number:e.nullable()}:{institution_number:t.required("Enter institution number"),transit_number:e.required("Enter transit number")}})(t)),rs(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s)},os=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new W,this.isLoading=!1,this.viewMode="manual",this.bankAccountVerification=!1,this.platformAccountId=null,this.getSchema=()=>(0,ns[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new f(this.getSchema()),this.formController.setInitialValues("readonly"===this.viewMode?Object.assign({},this.bankAccount):{business_id:this.businessId}),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new M({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.processBusinessResponse(s.data),this.determineViewMode()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.handleChangeBankAccount=()=>{this.viewMode=this.plaidAvailable?"plaid":"manual",this.documentData=new W,this.initializeFormController()},this.handleCancel=()=>{this.viewMode=this.existingBankAccount?"readonly":"plaid",this.documentData=new W,this.initializeFormController()},this.handleToggleToManualEntry=()=>{this.viewMode="manual"},this.handleToggleToPlaidVerification=()=>{this.viewMode="plaid"},this.handleSaveBankAccount=async()=>{this.formController.validateAndSubmit((()=>{this.sendData((()=>{}))}))},this.postDocumentRecordData=async s=>{this.isLoading=!0;const t=s.record_data;return new Promise((e=>{this.postDocumentRecord({payload:t,onSuccess:t=>{e(this.handleDocRecordResponse(s,t))},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.error.message,severity:r.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await s.getFileData(),e=await fetch(s.presigned_url,{method:"PUT",body:t});return this.handleUploadResponse(e)},this.handleUploadResponse=s=>!s.error||(this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.error.message,severity:r.ERROR,data:s.error}),!1)}propChanged(){this.initializeApi()}watchHandler(s){this.formLoading.emit(s)}async validateAndSubmit({onSuccess:s}){"readonly"===this.viewMode?this.sendData(s):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData(),this.formController=new f(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new l}),this.postBankAccount=h({authToken:this.authToken,service:new d}),this.postDocumentRecord=c({authToken:this.authToken,service:new u})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}get postPayload(){const s=this.formController.values.getValue();return new ss(s).payload}get existingBankAccount(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}get plaidAvailable(){return this.bankAccountVerification&&!!this.platformAccountId}get showCancel(){return this.bankAccountVerification||this.existingBankAccount}processBusinessResponse(s){const{bank_accounts:t,documents:e,settings:i,platform_account_id:r}=s;t.length>0?this.bankAccount=new ss(t[t.length-1]):(this.bankAccount=new ss({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=e,this.bankAccountVerification=!0===i.bank_account_verification,this.platformAccountId=r}determineViewMode(){this.viewMode=this.existingBankAccount?"readonly":this.plaidAvailable?"plaid":"manual"}async sendData(s){try{if("manual"===this.viewMode&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;"manual"===this.viewMode&&(this.viewMode="readonly",await this.refreshBankAccountData()),s()}catch(s){this.errorEvent.emit({message:s,errorCode:n.POST_ERROR,severity:r.ERROR})}}async postBankAccountData(){let s;return this.isLoading=!0,new Promise((t=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:t=>{s=t,e=!0},onError:({error:s,code:t,severity:i})=>{e=!1,this.errorEvent.emit({message:s,errorCode:t,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:V.bankAccount}),this.isLoading=!1,t(e)}})}))}async refreshBankAccountData(){return new Promise((s=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.processBusinessResponse(s.data),this.determineViewMode(),this.initializeFormController()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.isLoading=!1,s()}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const s=Object.values(this.documentData).flat();return!s.length||!(await Promise.all(s.map((s=>this.postDocumentRecordData(s))))).includes(!1)&&!(await Promise.all(s.map((s=>this.uploadDocument(s))))).includes(!1)}finally{this.isLoading=!1}}renderBankAccountInputs(s){const t=this.formController.getInitialValues();return e(this.country===_.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:t,errors:this.errors,inputHandler:this.inputHandler,formDisabled:s})}renderReadonlyView(){return e("div",null,this.renderBankAccountInputs(!0),e("div",{class:"mt-3"},e(G,{variant:"secondary",type:"button",onClick:this.handleChangeBankAccount,disabled:this.isLoading,part:I},"Change Bank Account")))}renderPlaidView(){return e("div",{class:"mt-3"},e("plaid-verification",{authToken:this.authToken,accountId:this.platformAccountId,businessId:this.businessId,onPlaidVerificationSuccess:()=>{this.viewMode="readonly",this.refreshBankAccountData()}}),e("div",{class:"mt-3"},e(G,{type:"button",variant:"link",className:"p-0",onClick:this.handleToggleToManualEntry,disabled:this.isLoading,part:E},"Enter bank details manually (document upload required)")))}renderManualEntryView(){return e("div",null,this.plaidAvailable&&e("div",{class:"mb-3"},e(G,{type:"button",variant:"secondary",onClick:this.handleToggleToPlaidVerification,disabled:this.isLoading,part:I},"Link bank account with Plaid instead")),this.renderBankAccountInputs(!1),e("div",{class:"mt-3 d-flex gap-2"},this.showCancel&&e(G,{variant:"secondary",type:"button",onClick:this.handleCancel,disabled:this.isLoading,part:I},"Cancel"),e(G,{variant:"primary",type:"button",onClick:this.handleSaveBankAccount,disabled:this.isLoading,isLoading:this.isLoading},"Save Bank Account")))}renderDocumentUploads(){return e("fieldset",{class:"mt-4"},e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Document Uploads"),e("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),e("hr",{class:"mt-2"}),e("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),e("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles}))}render(){return this.isLoading?e(B,null):e("form",null,e("fieldset",{class:"mb-4"},e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Bank Account Info"),e("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),e("hr",{class:"mt-2"}),"readonly"===this.viewMode&&this.renderReadonlyView(),"plaid"===this.viewMode&&this.renderPlaidView(),"manual"===this.viewMode&&this.renderManualEntryView()),"plaid"!==this.viewMode&&this.renderDocumentUploads())}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],isLoading:["watchHandler"]}}},as=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.coreInfo=new j(s.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s(),this.isEditingTaxId=!1},onError:({error:s,code:e,severity:i,rawError:r})=>{t=s,r&&"object"==typeof r&&r.param&&this.formController.setFieldError(r.param,r.message),this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:V.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.errors[s]&&this.formController.clearFieldError(s),this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return new j(this.formController.values.getValue()).payload}componentWillLoad(){this.initializeApi();const s=this.country===_.CAN?p(this.allowOptionalFields):b(this.allowOptionalFields);this.formController=new f(s),this.getData()}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new l}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new l})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var s,t;const i=this.formController.getInitialValues();return this.isLoading?e(B,null):e("form",null,e("fieldset",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Business Information")),e("hr",{class:"mt-2"}),e("div",{class:"row gy-3"},e("div",{class:"col-12 col-md-6"},e("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:i.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),e("div",{class:"col-12 col-md-6"},e("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),e("div",{class:"col-12 col-md-8"},e("form-control-select",{name:"classification",label:"Business Classification",options:H,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),e("div",{class:"col-12 col-md-4"},e("form-control-date",{name:"date_of_incorporation",label:"Date of Registration",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),e("div",{class:"col-12 col-md-6"},e("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),e("div",{class:"col-12 col-md-6"},!(null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4)||this.isEditingTaxId?e("form-control-number-masked",{name:"tax_id",label:$[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:$[this.country].taxIdHelpText}):e("div",null,e("label",{class:"form-label",part:A},$[this.country].taxIdLabel),e("div",{class:"input-group mb-3"},e("input",{type:"text",class:"form-control",part:D,value:`****${null===(t=this.coreInfo)||void 0===t?void 0:t.tax_id_last4}`,disabled:!0}),e("button",{class:"btn btn-secondary",type:"button",part:I,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),e("div",{class:"col-12"},e("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:i.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),e("div",{class:"col-12 col-md-6"},e("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),e("div",{class:"col-12 col-md-6"},e("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:x.US})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},hs=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.representativeIsOwner=null,this.matchRef=(s,t)=>{if(null===s)return;const e=this.ownersPayload.findIndex((s=>s.id===t));-1!==e&&(this.refs.length!==this.ownersPayload.length&&this.manageRefs(),this.refs[e]=s)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.representative=new C(s.data.representative||{}),s.data.owners.length?this.ownersPayload=s.data.owners.map((s=>({id:s.id}))):this.addOwnerForm()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:V.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=s=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],s&&this.clickEvent.emit({name:F.addOwnerForm})},this.removeOwnerForm=s=>{this.ownersPayload=this.ownersPayload.filter((t=>t.id!==s)),this.newFormOpen&&(this.newFormOpen=!1)},this.handleRepresentativeIsOwnerChange=s=>{this.representativeIsOwner=s,this.representativeIsOwner&&(this.formLoading.emit(!0),this.isLoading=!0,this.ownersPayload=this.ownersPayload.filter((s=>""!==s.id)),this.patchBusiness({payload:{owners:[{id:this.representative.id},...this.ownersPayload]},onSuccess:()=>{this.getData(),this.newFormOpen=!1},finally:()=>{this.isLoading=!1,this.formLoading.emit(!1)}}))}}propChanged(){this.initializeApi()}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((s=>s.id))}async validateAndSubmit({onSuccess:s}){const t=this.refs.map((s=>s.validate()));if(!(await Promise.all(t)).every((s=>s)))return;const e=this.refs.map((s=>s.submit()));(await Promise.all(e)).every((s=>s))&&this.sendData(s)}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new l}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new l})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(s){const t=s.detail,e=this.ownersPayload.map((s=>s.id===t.id?t:s));e.includes(t)||(e[this.ownersPayload.findIndex((s=>!s.id))]=t,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){if(this.isLoading)return e(i,null,e(B,null));const s=this.ownersPayload.some((s=>s.id===this.representative.id)),t=null===this.representativeIsOwner&&!s;return e(i,null,e("div",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Owners"),e("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),e("hr",{class:"mt-2"}),t&&e("div",{class:"alert alert-warning mb-3",part:L},e("div",{class:"card-body"},e("div",{class:"d-flex align-items-center mb-3"},e("strong",null,"Is the representative of this business also an owner?")),e("div",{class:"d-flex gap-2"},e(G,{variant:"primary",onClick:()=>this.handleRepresentativeIsOwnerChange(!0)},"Yes"),e(G,{variant:"secondary",onClick:()=>this.handleRepresentativeIsOwnerChange(!1)},"No")))),e("div",{class:"row gy-3"},this.ownersPayload.map((s=>e("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),e("div",{class:"d-flex justify-content-start"},e("div",{class:"gap-2"},e(G,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner")))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],ownersPayload:["ownersWatcher"]}}},cs=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&this.formController&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.representative=new C(s.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:V.representative}),this.formLoading.emit(!1)}})}}propChanged(){this.initializeApi(),this.getData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.initializeApi(),this.initializeForm()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new l}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new l})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}initializeForm(){const s=K[this.country];s?(this.formController=new f(s("representative",this.allowOptionalFields)),this.getData()):this.errorEvent.emit({message:"Missing schema for selected country",errorCode:n.MISSING_PROPS,severity:r.ERROR})}componentDidLoad(){this.formController&&this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get patchPayload(){return{representative:new C(this.formController.values.getValue()).payload}}render(){return!this.formController||this.isLoading?e(B,null):e("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},ls=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.formCompleted=t(this,"formCompleted",7),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:n.FETCH_ERROR,message:s.message,severity:r.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.termsPayload,e=await this.api.post({endpoint:this.termsConditionsEndpoint,body:t,authToken:this.authToken});this.handleResponse(e,s)}catch(s){this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.message,severity:r.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.acceptedTerms=t,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=Z(),this.formController=new f((s=>{const t=v({accepted:w().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),e=v({accepted:w().nullable()});return s?e:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.error.message,severity:r.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:V.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:V.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return e("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return e("form",{key:"33336d0a66d63ce39951822fd570a9a0689e714d"},e("fieldset",{key:"fcfdb59eef671cb408ed99e2dad20d6be706688a"},e("legend",{key:"f0cf7f0ac15c90cf36ee25d4bf986c0e781a2e92",part:S},"Terms and Conditions"),e("hr",{key:"d5c820e7d6523f931040a994bd103d69fd644c45"}),e("div",{key:"681b584de14afe121f5dc69ee0bad1cab51ba0d1"},e("p",{key:"7c597bf891a108d303739126b806ded5220f56ab"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),e("br",{key:"52854c5a07611180be40df21a5f60d7d9d4c4cb7"}),e("div",{key:"7448b3f6138b996edac137b961367725e3b40556",class:"row-gy-3"},e("div",{key:"c732deb4e1e3a2d04dd4e09914543a7f594af108",class:"col-12"},e("form-control-checkbox",{key:"fca18e4843aef20d13790029b114b2ecaeb6ffa2",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},ds=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{const t=new T((s.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},t),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:V.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{legal_address:new T(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new f((0,Q[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new l}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new l})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var s;const t=null===(s=this.formController)||void 0===s?void 0:s.getInitialValues();return this.isLoading?e(B,null):e("form",null,e("fieldset",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Legal Address of your Business"),e("form-control-tooltip",{helpText:"No PO Boxes."})),e("hr",{class:"mt-2"}),e("justifi-form-address-fields",{country:this.country,errors:this.errors,defaultValues:t,inputHandler:this.inputHandler})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},us=class{constructor(t){s(this,t)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return e("div",{key:"53ba6c809e1968712b333f4bcf2798dbca186ddb",class:"d-flex gap-2"},e(G,{key:"b45c60083ccf6589cae0c63ce6b66c18da340dc7",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),e(G,{key:"27372798da0276de44d1563a4688486e7cc91d64",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,F.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),e(G,{key:"8bc14ca8fe951caf276f8ed03e502486e11acbe2",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,F.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},ms=class{constructor(t){s(this,t),this.allowOptionalFields=!1,this.country=_.USA,this.componentStepMapping={0:()=>e("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),1:()=>e("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),2:()=>e("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>e("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),4:()=>e("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),5:()=>e("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),6:()=>e("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return e("div",{key:"ff7c9e688009383fdbe18c9824fa578d2338900c",class:"col-12 mb-4"},this.currentStepComponent)}};export{ts as justifi_additional_questions_form_step,os as justifi_business_bank_account_form_step,as as justifi_business_core_info_form_step,hs as justifi_business_owners_form_step,cs as justifi_business_representative_form_step,ls as justifi_business_terms_conditions_form_step,ds as justifi_legal_address_form_step,us as justifi_payment_provisioning_form_buttons,ms as justifi_payment_provisioning_form_steps}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-3kNggPyP.js";import{D as a}from"./p-BH0Xfn-F.js";import{g as n,a as h}from"./p-D2muobcE.js";import{D as c}from"./p-CemnnRdZ.js";import"./p-Cc6518FT.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";import"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const m=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:e})=>async({onSuccess:r,onError:o})=>{var p;try{const c=await e.fetchDispute(t,s);if(c.error)return o({error:h(c.error),code:n(null===(p=c.error)||void 0===p?void 0:p.code),severity:i.ERROR});{const t=Object.assign({},c.page_info);r({dispute:new a(c.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:i.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new c}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:i.ERROR}))}render(){return e("justifi-dispute-management-core",{key:"6e884955ea019144de872582a62bcecf05efa7b4",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`link text ${a}`,p=`button ${e}`,m=`button-primary ${p}`,u=`button-secondary ${p}`,c=`button-danger ${p}`,f=`button-success ${p}`,b=`button-warning ${p}`,g=`button-info ${p}`,h=`button-light ${p}`,y=`button-dark ${p}`,k=`button-link ${p}`,x=`button-outline-primary ${p}`,w=`button-outline-secondary ${p}`,v="button-loading",j=`label ${e}`,q=`input ${e} ${t}`,z=`input-group ${q}`,A=`input-invalid ${q}`,B=`input-disabled ${q}`,C=`input-focused ${q}`,D=`input-invalid-and-focused ${q}`,E="input-radio",F=`input-radio-focused ${E}`,G=`input-radio-checked ${E}`,H=`input-radio-checked-focused ${E}`,I=`input-radio-invalid ${E}`,J="input-checkbox",K=`input-checkbox-invalid ${J}`,L=`input-checkbox-focused ${J}`,M=`input-checkbox-checked ${J}`,N=`input-checkbox-checked-focused ${J}`,O=`input-adornment ${e}`,P=`alert ${e}`,Q=`alert-danger ${P}`,R=`tooltip ${e}`,S=`tooltip-icon ${e}`,T=`tooltip-inner ${e}`,U=`card ${e} ${t}`,V=`table ${e} ${t}`,W=`table-row ${e} ${t}`,X=`table-cell ${e} ${t}`,Y="table-head",Z=`table-head-row ${e} ${t}`,_=`table-head-cell ${X}`,aa="table-foot",ta=`table-foot-row ${e} ${t}`,ea=`table-foot-cell ${X}`,sa=`table-cell-even ${X}`,ia=`table-cell-odd ${X}`,ra=a=>a%2?sa:ia,la=`table-empty ${e} ${t}`,na=`table-error ${e} ${t}`,oa=`pagination-button ${p}`,$a=`pagination-button-disabled button-disabled ${p}`,da=`pagination-button-text ${e}`,pa=`pagination-button-icon ${e}`,ma=`pagination-button-icon-next ${pa}`,ua=`pagination-button-icon-previous ${pa}`,ca="loading-spinner",fa=`badge ${a}`,ba=`${fa} badge-primary`,ga=`${fa} badge-secondary`,ha=`${fa} badge-success`,ya=`${fa} badge-danger`,ka=`${fa} badge-warning`,xa=`${fa} badge-info`,wa=`${fa} badge-light`,va=`${fa} badge-dark`,ja=`dropdown-menu ${e}`,qa=`dropdown-menu-button ${m}`,za=`radio-list-item ${e}`,Aa="skeleton",Ba="image",Ca="billing-form",Da="checkout-summary",Ea="filter-menu",Fa=`${Ea} payments-list-filter-menu`,Ga="payments-list-filter-param",Ha=`${Ga} payment-id-payments-list-filter-param`,Ia=`${Ga} terminal-id-payments-list-filter-param`,Ja=`${Ga} payment-status-payments-list-filter-param`,Ka=`${Ga} payment-mode-payments-list-filter-param`,La=`${Ga} checkout-id-payments-list-filter-param`,Ma=`${Ga} account-holder-payments-list-filter-param`,Na=`${Ga} created-after-payments-list-filter-param`,Oa=`${Ga} created-before-payments-list-filter-param`,Pa=`${Ea} payouts-list-filter-menu`,Qa="payouts-list-filter-param",Ra=`${Qa} status-payouts-list-filter-param`,Sa=`${Qa} created-after-payouts-list-filter-param`,Ta=`${Qa} created-before-payouts-list-filter-param`,Ua=`${Ea} checkouts-list-filter-menu`,Va="checkouts-list-filter-param",Wa=`${Va} checkout-status-checkouts-list-filter-param`,Xa=`${Va} payment-mode-checkouts-list-filter-param`,Ya=`${Va} checkout-id-checkouts-list-filter-param`,Za=`${Va} created-after-checkouts-list-filter-param`,_a=`${Va} created-before-checkouts-list-filter-param`,at=`${Ea} terminals-list-filter-menu`,tt="terminals-list-filter-param",et=`${tt} terminal-id-terminals-list-filter-param`,st=`${tt} terminal-order-id-terminals-list-filter-param`,it=`${tt} terminal-status-terminals-list-filter-param`,rt=`${tt} created-after-terminals-list-filter-param`,lt=`${tt} created-before-terminals-list-filter-param`,nt=`${Ea} terminal-orders-list-filter-menu`,ot="terminal-orders-list-filter-param",$t=`${ot} order-status-terminal-orders-list-filter-param`,dt=`${ot} order-type-terminal-orders-list-filter-param`,pt=`${ot} created-after-terminal-orders-list-filter-param`,mt=`${ot} created-before-terminal-orders-list-filter-param`;export{j as $,at as A,et as B,st as C,it as D,rt as E,lt as F,Aa as G,e as H,r as I,l as J,d as K,va as L,wa as M,xa as N,ka as O,ya as P,ha as Q,ga as R,ba as S,fa as T,ca as U,_ as V,ra as W,A as X,B as Y,C as Z,q as _,Ua as a,O as a0,s as a1,n as a2,Ba as a3,k as a4,U as a5,z as a6,K as a7,N as a8,L as a9,o as aA,Ca as aB,$ as aC,V as aD,Y as aE,Z as aF,W as aG,aa as aH,ta as aI,ea as aJ,la as aK,na as aL,X as aM,Q as aN,P as aO,R as aP,T as aQ,S as aR,M as aa,J as ab,I as ac,H as ad,G as ae,F as af,E as ag,oa as ah,$a as ai,ua as aj,da as ak,ma as al,w as am,x as an,y as ao,h as ap,g as aq,b as ar,c as as,f as at,u as au,m as av,v as aw,qa as ax,ja as ay,D as az,Ya as b,Da as c,Za as d,_a as e,Fa as f,Ha as g,Ja as h,Ka as i,La as j,Ma as k,Na as l,Oa as m,Pa as n,Ra as o,Xa as p,Sa as q,Ta as r,Wa as s,Ia as t,za as u,nt as v,$t as w,dt as x,pt as y,mt as z}
|