@mx-cartographer/experiences 7.1.4-ram1-alpha-finstrong-credit-score-graph-check → 7.1.5
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/CHANGELOG.md +4 -0
- package/dist/{Account-CpRTVIHg.mjs → Account-8IUM_CLv.mjs} +1 -1
- package/dist/{AccountDetailsContent-6aPMU6Hp.mjs → AccountDetailsContent-CuZSSAEc.mjs} +10 -10
- package/dist/{AccountDetailsHeader-BkUZYoV8.mjs → AccountDetailsHeader-BZBsIKdF.mjs} +8 -8
- package/dist/{AccountFields-DOLjKu5l.mjs → AccountFields-BD_0GT68.mjs} +5 -5
- package/dist/{AccountListItem-CTT5m4qx.mjs → AccountListItem-CllIBCao.mjs} +4 -4
- package/dist/{AccountStore-DTfpr3h0.mjs → AccountStore-BL0FE1QL.mjs} +15 -26
- package/dist/{Accounts-D0BmvNxn.mjs → Accounts-Bvc9TJaO.mjs} +1 -1
- package/dist/{BudgetUtil-D2Jcp-E-.mjs → BudgetUtil-psfk-Amb.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DomNyubP.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +3 -3
- package/dist/{CategoryStore-C1IfDPCE.mjs → CategoryStore-BCcpI3oJ.mjs} +1 -1
- package/dist/{CategoryUtil-DUM8NuGO.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer--gJHyp-S.mjs → ConnectDrawer-CPTXh70j.mjs} +2 -2
- package/dist/{ConnectionsDrawer-DabiwV9L.mjs → ConnectionsDrawer-Dkb4vBmt.mjs} +3 -3
- package/dist/{CurrencyInput-CC5cwVit.mjs → CurrencyInput-C4xNRL2W.mjs} +1 -1
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-BcuH7ErC.mjs} +3 -3
- package/dist/{DebtsStore-9aR2sTJQ.mjs → DebtsStore-D4grpB4m.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CWW597AF.mjs} +2 -2
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/{ExportCsvAction-Um-CDa4C.mjs → ExportCsvAction-CBJAfyAw.mjs} +3 -3
- package/dist/FinstrongStore-F2c607dj.mjs +101 -0
- package/dist/{GoalStore-CiBKZvTg.mjs → GoalStore-B5MZzPLZ.mjs} +3 -3
- package/dist/{Help-BZ8pIkkR.mjs → Help-CzBAsKA2.mjs} +2 -2
- package/dist/LineChart-B35qvXik.mjs +541 -0
- package/dist/{ListItemAction-DGaxy7oz.mjs → ListItemAction-DSrYDGAP.mjs} +10 -10
- package/dist/{ManageIncome-BaNgfwr5.mjs → ManageIncome-DUuT-yMV.mjs} +32 -34
- package/dist/{MicroWidgetContainer-C3iV1FBR.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
- package/dist/{MiniWidgetContainer-LtXXgZ6H.mjs → MiniWidgetContainer-DTQdRK-3.mjs} +1 -1
- package/dist/{NetWorthStore-MnpP5KEc.mjs → NetWorthStore-Do1Gk8Te.mjs} +2 -2
- package/dist/{NotificationSettings-Ckx8tgQj.mjs → NotificationSettings-BuShgjn6.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CGZDUsCc.mjs → OriginalBalanceAction-BsxcvNEF.mjs} +3 -3
- package/dist/{RecurringSettings-DE4T4yQy.mjs → RecurringSettings-BVOt46uV.mjs} +4 -4
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-ej39mgA6.mjs} +44 -45
- package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-D5vsfYKo.mjs} +16 -16
- package/dist/{TransactionDetails-DRlrltGq.mjs → TransactionDetails-_cXLXTd3.mjs} +8 -11
- package/dist/{TransactionStore-D8MKYDMb.mjs → TransactionStore-B-Tq_YFE.mjs} +3 -3
- package/dist/{TrendsStore-DL3Vuh71.mjs → TrendsStore-ZZ8X36lJ.mjs} +14 -14
- package/dist/{User-BthIKO4w.mjs → User-DaJAQ09j.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-DTtQNV3D.mjs → ViewMoreMicroCard-664i7l19.mjs} +487 -533
- package/dist/{WidgetContainer-DJA1bxLn.mjs → WidgetContainer-DtPnPQZY.mjs} +4 -4
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +0 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +11 -11
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +2 -4
- package/dist/common/components/charts/LineChart.d.ts +0 -2
- package/dist/common/components/charts/linechart/CustomMark.d.ts +0 -2
- package/dist/common/components/drawer/Drawer.d.ts +0 -3
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +0 -50
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +1 -57
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-XqdHNe2V.mjs → exportTransactionsToCSV-D8TTNrrE.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +0 -5
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -2
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +3 -4
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/index.es.js +1010 -2892
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -9
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -65
- package/dist/finstrong/utils/Finstrong.d.ts +6 -0
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-CBST3rkm.mjs → hooks-CE2TKk4a.mjs} +3 -3
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/components/beaticons/BeatIcon.d.ts +0 -2
- package/dist/microinsights/components/carouselheader/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/components/microBeatCarousel/CarouselControls.d.ts +0 -2
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +0 -4
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +373 -222
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +16 -16
- package/dist/{useAccountDisplayName-DH1CuQ9R.mjs → useAccountDisplayName-BXGkZN5B.mjs} +2 -2
- package/dist/{useInsightsEnabled-jdvS1ppf.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-BEtCk82g.mjs +0 -163
- package/dist/FinstrongStore-CC4SrBjA.mjs +0 -436
- package/dist/LineChart-CE3oLBQ0.mjs +0 -566
- package/dist/SpendingLegend-D24CEkL3.mjs +0 -170
- package/dist/accounts/components/AccountsListCompact.d.ts +0 -10
- package/dist/common/components/drawer/Footer.d.ts +0 -17
- package/dist/finstrong/components/CreditOverTimeGraph.d.ts +0 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +0 -4
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +0 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +0 -10
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +0 -6
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +0 -4
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +0 -4
- package/dist/finstrong/components/ProgressBar.d.ts +0 -15
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +0 -4
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +0 -4
- package/dist/finstrong/components/StatusChip.d.ts +0 -5
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +0 -2
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +0 -11
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +0 -14
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +0 -8
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +0 -4
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +0 -4
- package/dist/finstrong/components/shared/Accounts.d.ts +0 -8
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +0 -25
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +0 -28
- package/dist/finstrong/components/shared/LineGraph.d.ts +0 -7
- package/dist/finstrong/components/shared/TotalCard.d.ts +0 -8
- package/dist/finstrong/components/shared/TransactionList.d.ts +0 -15
- package/dist/finstrong/components/shared/Transactions.d.ts +0 -11
- package/dist/finstrong/constants/index.d.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -11,18 +11,18 @@ import M from "@mui/material/Divider";
|
|
|
11
11
|
import v from "@mui/material/ListItem";
|
|
12
12
|
import N from "@mui/material/ListItemButton";
|
|
13
13
|
import w from "@mui/material/ListItemText";
|
|
14
|
-
import { u as D } from "./AccountDetailsHeader-
|
|
15
|
-
import { d as z, u as E, g as O, h as X } from "./hooks-
|
|
16
|
-
import { A as at } from "./AccountListItem-
|
|
17
|
-
import { A as k } from "./WidgetContainer-
|
|
18
|
-
import {
|
|
14
|
+
import { u as D } from "./AccountDetailsHeader-BZBsIKdF.mjs";
|
|
15
|
+
import { d as z, u as E, g as O, h as X } from "./hooks-CE2TKk4a.mjs";
|
|
16
|
+
import { A as at } from "./AccountListItem-CllIBCao.mjs";
|
|
17
|
+
import { A as k } from "./WidgetContainer-DtPnPQZY.mjs";
|
|
18
|
+
import { a as V, f as B, D as K } from "./Dialog-CWW597AF.mjs";
|
|
19
19
|
import { b as h } from "./Localization-2MODESHW.mjs";
|
|
20
|
-
import { D as J } from "./Drawer-
|
|
20
|
+
import { D as J } from "./Drawer-kEE73B87.mjs";
|
|
21
21
|
import R from "@mui/material/ListItemAvatar";
|
|
22
22
|
import ct from "@mui/material/Stack";
|
|
23
23
|
import st from "@mui/material/styles/useTheme";
|
|
24
24
|
import { Error as q, CheckCircle as it, Language as rt } from "@mxenabled/mx-icons";
|
|
25
|
-
import { n as m, N as Q, l as Z, F as P } from "./ConnectDrawer
|
|
25
|
+
import { n as m, N as Q, l as Z, F as P } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
26
26
|
import { fromUnixTime as lt } from "date-fns/fromUnixTime";
|
|
27
27
|
import { isToday as dt } from "date-fns/isToday";
|
|
28
28
|
import { isYesterday as ut } from "date-fns/isYesterday";
|
|
@@ -37,14 +37,14 @@ import { LocalizationProvider as ft } from "@mui/x-date-pickers-pro";
|
|
|
37
37
|
import At from "@mui/material/MenuItem";
|
|
38
38
|
import bt from "@mui/material/Select";
|
|
39
39
|
import Tt from "@mui/material/TextField";
|
|
40
|
-
import { C as St } from "./CurrencyInput-
|
|
41
|
-
import { b as Dt } from "./AccountFields-
|
|
40
|
+
import { C as St } from "./CurrencyInput-C4xNRL2W.mjs";
|
|
41
|
+
import { b as Dt } from "./AccountFields-BD_0GT68.mjs";
|
|
42
42
|
import Et from "@mui/material/Alert";
|
|
43
43
|
import yt from "@mui/material/AlertTitle";
|
|
44
44
|
import xt from "@mui/material/Link";
|
|
45
45
|
import wt from "@mui/material/Paper";
|
|
46
46
|
import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
|
|
47
|
-
import { T as vt, a as Lt } from "./TransactionDetails-
|
|
47
|
+
import { T as vt, a as Lt } from "./TransactionDetails-_cXLXTd3.mjs";
|
|
48
48
|
import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
|
|
49
49
|
const U = ({
|
|
50
50
|
children: e,
|
|
@@ -2,20 +2,20 @@ import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { observer as p } from "mobx-react-lite";
|
|
3
3
|
import d from "@mui/material/Stack";
|
|
4
4
|
import { H3 as w, InstitutionLogo as I, Text as m, H2 as L } from "@mxenabled/mxui";
|
|
5
|
-
import { g as v } from "./AccountFields-
|
|
5
|
+
import { g as v } from "./AccountFields-BD_0GT68.mjs";
|
|
6
6
|
import h from "react";
|
|
7
|
-
import { G as E, d as y, m as S, u as _, f as G } from "./hooks-
|
|
7
|
+
import { G as E, d as y, m as S, u as _, f as G } from "./hooks-CE2TKk4a.mjs";
|
|
8
8
|
import O from "@mui/material/Card";
|
|
9
9
|
import P from "@mui/material/CardContent";
|
|
10
10
|
import M from "@mui/material/CardHeader";
|
|
11
11
|
import { useTheme as B } from "@mui/material/styles";
|
|
12
|
-
import { g as H, a as U, b as j } from "./SpendingData-
|
|
13
|
-
import { L as z } from "./LineChart-
|
|
14
|
-
import { I as f, P as g, S as C } from "./Account-
|
|
15
|
-
import { A } from "./ConnectDrawer
|
|
12
|
+
import { g as H, a as U, b as j } from "./SpendingData-D5vsfYKo.mjs";
|
|
13
|
+
import { L as z } from "./LineChart-B35qvXik.mjs";
|
|
14
|
+
import { I as f, P as g, S as C } from "./Account-8IUM_CLv.mjs";
|
|
15
|
+
import { A } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
16
16
|
import { L as Y } from "./Loader-DUaFpDGv.mjs";
|
|
17
|
-
import { f as R,
|
|
18
|
-
import { u as k } from "./useAccountDisplayName-
|
|
17
|
+
import { f as R, D as $ } from "./Dialog-CWW597AF.mjs";
|
|
18
|
+
import { u as k } from "./useAccountDisplayName-BXGkZN5B.mjs";
|
|
19
19
|
import { f as F } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
20
20
|
const b = () => {
|
|
21
21
|
if (!h.useContext(E))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as p, Text as y } from "@mxenabled/mxui";
|
|
3
|
-
import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer
|
|
4
|
-
import { i as T, u as
|
|
3
|
+
import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
4
|
+
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-Bvc9TJaO.mjs";
|
|
5
5
|
import { f as _, i as b, a as N, b as S } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
6
6
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
7
|
-
import { f as o,
|
|
7
|
+
import { f as o, D as f } from "./Dialog-CWW597AF.mjs";
|
|
8
8
|
const w = (l, e) => {
|
|
9
9
|
const r = [
|
|
10
10
|
{
|
|
@@ -54,7 +54,7 @@ const w = (l, e) => {
|
|
|
54
54
|
valueFormatter: (t) => a.find((n) => n.value === t)?.label
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
if (
|
|
57
|
+
if (D(l)) {
|
|
58
58
|
let a = e.interest_rate, t = "interest_rate";
|
|
59
59
|
l.is_manual || (typeof l.apr == "number" && (a = e.apr, t = "apr"), typeof l.apy == "number" && (a = e.apy, t = "apy")), r.push({
|
|
60
60
|
event: "account_details_click_interest_rate",
|
|
@@ -66,7 +66,7 @@ const w = (l, e) => {
|
|
|
66
66
|
valueFormatter: (n) => b(n) ? N(n / 100) : n
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
return
|
|
69
|
+
return A(l) && (r.push({
|
|
70
70
|
label: e.minimum_payment,
|
|
71
71
|
name: "minimum_payment",
|
|
72
72
|
placeholder: i(e.enter_value, e.minimum_payment),
|
|
@@ -10,10 +10,10 @@ import B from "@mui/material/styles/useTheme";
|
|
|
10
10
|
import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
|
|
11
11
|
import { Error as A } from "@mxenabled/mx-icons";
|
|
12
12
|
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
-
import { g as T } from "./AccountFields-
|
|
14
|
-
import { u as X } from "./useAccountDisplayName-
|
|
15
|
-
import { d } from "./ConnectDrawer
|
|
16
|
-
import { u as $ } from "./hooks-
|
|
13
|
+
import { g as T } from "./AccountFields-BD_0GT68.mjs";
|
|
14
|
+
import { u as X } from "./useAccountDisplayName-BXGkZN5B.mjs";
|
|
15
|
+
import { d } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
16
|
+
import { u as $ } from "./hooks-CE2TKk4a.mjs";
|
|
17
17
|
import { f as k } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
18
18
|
const w = {
|
|
19
19
|
gridRow: 1,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { makeAutoObservable as
|
|
2
|
-
import { i as f } from "./User-
|
|
1
|
+
import { makeAutoObservable as A, runInAction as a } from "mobx";
|
|
2
|
+
import { i as f } from "./User-DaJAQ09j.mjs";
|
|
3
3
|
import { F as p, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
4
|
-
import { A as c, h as d, d as h, E as y, i as I, j as
|
|
5
|
-
class
|
|
4
|
+
import { A as c, h as d, d as h, E as y, i as I, j as b } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
5
|
+
class _ {
|
|
6
6
|
fetchInstance;
|
|
7
7
|
constructor(t, e, n) {
|
|
8
8
|
this.fetchInstance = new p(t, e, void 0, n);
|
|
@@ -17,26 +17,26 @@ class A {
|
|
|
17
17
|
refreshAllMembers = async () => this.fetchInstance.get(`${i.MEMBERS}/refresh_all`).then((t) => t).catch((t) => t);
|
|
18
18
|
updateAccount = async (t) => this.fetchInstance.put(`${i.ACCOUNTS}/${t.guid}`, t).then((e) => e.account).catch((e) => e);
|
|
19
19
|
}
|
|
20
|
-
class
|
|
20
|
+
class E {
|
|
21
21
|
isLoading = !1;
|
|
22
22
|
selectedAccount = {};
|
|
23
23
|
selectedMember = {};
|
|
24
24
|
constructor() {
|
|
25
|
-
|
|
25
|
+
A(this);
|
|
26
26
|
}
|
|
27
27
|
setIsLoading = (t) => this.isLoading = t;
|
|
28
28
|
setSelectedAccount = (t) => this.selectedAccount = t;
|
|
29
29
|
setSelectedMember = (t) => this.selectedMember = t;
|
|
30
30
|
}
|
|
31
|
-
class
|
|
31
|
+
class T {
|
|
32
32
|
globalStore;
|
|
33
|
-
api = new
|
|
33
|
+
api = new _("/", "");
|
|
34
34
|
accounts = [];
|
|
35
35
|
institutions = [];
|
|
36
36
|
members = [];
|
|
37
37
|
uiStore;
|
|
38
38
|
constructor(t) {
|
|
39
|
-
this.globalStore = t, this.uiStore = new
|
|
39
|
+
this.globalStore = t, this.uiStore = new E(), this.api = new _(t.endpoint, t.sessionToken, t.onError), A(this);
|
|
40
40
|
}
|
|
41
41
|
loadAccountData = async ({
|
|
42
42
|
accounts: t,
|
|
@@ -111,17 +111,6 @@ class w {
|
|
|
111
111
|
get visibleSavingsAccounts() {
|
|
112
112
|
return this.savingsAccounts.filter((t) => !t.is_hidden);
|
|
113
113
|
}
|
|
114
|
-
get savingsAndCheckingAccountsBalance() {
|
|
115
|
-
return this.savingsAndCheckingAccounts.reduce(
|
|
116
|
-
(e, n) => e + (n?.balance || 0),
|
|
117
|
-
0
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
get savingsAndCheckingAccounts() {
|
|
121
|
-
return this.accounts.filter(
|
|
122
|
-
(e) => e.account_type === c.SAVINGS || e.account_type === c.CHECKING
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
114
|
addAccount = async (t) => {
|
|
126
115
|
try {
|
|
127
116
|
const e = await this.api.createAccount(t);
|
|
@@ -139,18 +128,18 @@ class w {
|
|
|
139
128
|
);
|
|
140
129
|
for (const r of t) {
|
|
141
130
|
if (s && r.member_is_managed_by_user) continue;
|
|
142
|
-
const o = this.members.find((
|
|
131
|
+
const o = this.members.find((g) => g.guid === r.member_guid);
|
|
143
132
|
if (!o) continue;
|
|
144
133
|
let u = h.Connected;
|
|
145
|
-
y.includes(o.connection_status) ? u = h.Error : I.includes(o.connection_status) ? u = h.Processing :
|
|
146
|
-
const
|
|
134
|
+
y.includes(o.connection_status) ? u = h.Error : I.includes(o.connection_status) ? u = h.Processing : b.includes(o.connection_status) && (u = h.RequiresMfa);
|
|
135
|
+
const m = [
|
|
147
136
|
r.user_name || r.feed_name || "",
|
|
148
137
|
r.account_number ? `*${r.account_number}` : ""
|
|
149
138
|
].join(" ").trim();
|
|
150
139
|
e.push({
|
|
151
140
|
...r,
|
|
152
141
|
connectionStatus: u,
|
|
153
|
-
institutionName:
|
|
142
|
+
institutionName: m,
|
|
154
143
|
memberName: o.name
|
|
155
144
|
}), o.connectionStatus = u;
|
|
156
145
|
}
|
|
@@ -249,6 +238,6 @@ class w {
|
|
|
249
238
|
};
|
|
250
239
|
}
|
|
251
240
|
export {
|
|
252
|
-
A,
|
|
253
|
-
|
|
241
|
+
_ as A,
|
|
242
|
+
T as a
|
|
254
243
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as _ } from "./ConnectDrawer
|
|
1
|
+
import { A as _ } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
2
2
|
const s = (t) => t && (t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CHECKING_LINE_OF_CREDIT), p = (t) => t.is_manual || !t.guid, E = (t) => t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.CHECKING_LINE_OF_CREDIT, a = (t) => t.account_type === _.SAVINGS || t.account_type === _.CHECKING || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE, y = (t) => t.account_type === _.LOAN || t.account_type === _.MORTGAGE;
|
|
3
3
|
export {
|
|
4
4
|
s as a,
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as E } from "react/jsx-runtime";
|
|
|
2
2
|
import { observer as g } from "mobx-react-lite";
|
|
3
3
|
import C from "react";
|
|
4
4
|
import $ from "@mui/material/Stack";
|
|
5
|
-
import { G as K, m as y, u as b, g as D, b as U } from "./hooks-
|
|
5
|
+
import { G as K, m as y, u as b, g as D, b as U } from "./hooks-CE2TKk4a.mjs";
|
|
6
6
|
import Y from "@mui/material/List";
|
|
7
7
|
import V from "@mui/material/Paper";
|
|
8
8
|
import v from "@mui/material/Divider";
|
|
@@ -16,13 +16,13 @@ import { Text as B, TextField as q, CategoryIcon as H } from "@mxenabled/mxui";
|
|
|
16
16
|
import J from "@mui/material/Collapse";
|
|
17
17
|
import Q from "@mui/material/DialogContent";
|
|
18
18
|
import { b as S } from "./Localization-2MODESHW.mjs";
|
|
19
|
-
import {
|
|
19
|
+
import { a as Z } from "./Dialog-CWW597AF.mjs";
|
|
20
20
|
import ee from "@mui/material/Box";
|
|
21
21
|
import te from "@mui/material/Chip";
|
|
22
22
|
import I from "@mui/material/IconButton";
|
|
23
23
|
import { S as oe } from "./SearchBox-B2_zLv8-.mjs";
|
|
24
24
|
import { L as k } from "./Loader-DUaFpDGv.mjs";
|
|
25
|
-
import { D as ae } from "./Drawer-
|
|
25
|
+
import { D as ae } from "./Drawer-kEE73B87.mjs";
|
|
26
26
|
const h = () => {
|
|
27
27
|
if (!C.useContext(K))
|
|
28
28
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
@@ -3,7 +3,7 @@ import { getUnixTime as r } from "date-fns/getUnixTime";
|
|
|
3
3
|
import { subMonths as g } from "date-fns/subMonths";
|
|
4
4
|
import { startOfMonth as h } from "date-fns/startOfMonth";
|
|
5
5
|
import { endOfMonth as d } from "date-fns/endOfMonth";
|
|
6
|
-
import { a as T, g as m } from "./CategoryUtil-
|
|
6
|
+
import { a as T, g as m } from "./CategoryUtil-BR3H5i6n.mjs";
|
|
7
7
|
import { F as p, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
8
8
|
import { b as f, c as w } from "./Category-CevNQ03n.mjs";
|
|
9
9
|
class y {
|
|
@@ -4,7 +4,7 @@ import { startOfToday as M } from "date-fns/startOfToday";
|
|
|
4
4
|
import { subMonths as T } from "date-fns/subMonths";
|
|
5
5
|
import { CategoryIconList as C } from "@mxenabled/mxui";
|
|
6
6
|
import { C as N, a as O, b } from "./Category-CevNQ03n.mjs";
|
|
7
|
-
import { f as D,
|
|
7
|
+
import { f as D, D as E } from "./Dialog-CWW597AF.mjs";
|
|
8
8
|
const R = 3, d = 12, Y = (n, r, t) => n.filter((e) => !e.parent_guid).map(
|
|
9
9
|
(e) => _(
|
|
10
10
|
e,
|
|
@@ -14,14 +14,14 @@ import EE from "@mui/material/ListItemText";
|
|
|
14
14
|
import IE from "@mui/material/Popover";
|
|
15
15
|
import F from "@mui/material/Stack";
|
|
16
16
|
import w from "@mui/material/Checkbox";
|
|
17
|
-
import { u as o, f as _E, d as NE, e as rE } from "./hooks-
|
|
17
|
+
import { u as o, f as _E, d as NE, e as rE } from "./hooks-CE2TKk4a.mjs";
|
|
18
18
|
import { b as W } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import { u as RE } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
20
20
|
import { observer as Q } from "mobx-react-lite";
|
|
21
21
|
import iE from "@mui/material/styles/useTheme";
|
|
22
22
|
import { ConnectWidget as aE } from "@mxenabled/web-widget-sdk";
|
|
23
23
|
import lE from "@mui/material/CircularProgress";
|
|
24
|
-
import { D as OE } from "./Drawer-
|
|
24
|
+
import { D as OE } from "./Drawer-kEE73B87.mjs";
|
|
25
25
|
var T = /* @__PURE__ */ ((E) => (E[E.ANY = 0] = "ANY", E[E.CHECKING = 1] = "CHECKING", E[E.SAVINGS = 2] = "SAVINGS", E[E.LOAN = 3] = "LOAN", E[E.CREDIT_CARD = 4] = "CREDIT_CARD", E[E.INVESTMENT = 5] = "INVESTMENT", E[E.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", E[E.MORTGAGE = 7] = "MORTGAGE", E[E.PROPERTY = 8] = "PROPERTY", E[E.CASH = 9] = "CASH", E[E.INSURANCE = 10] = "INSURANCE", E[E.PREPAID = 11] = "PREPAID", E[E.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", E[E.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", E))(T || {}), sE = /* @__PURE__ */ ((E) => (E[E.NONE = 0] = "NONE", E[E.MONEY_MARKET = 1] = "MONEY_MARKET", E[E.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", E[E.AUTO = 3] = "AUTO", E[E.STUDENT = 4] = "STUDENT", E[E.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", E[E.PERSONAL = 6] = "PERSONAL", E[E.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", E[E.HOME_EQUITY = 8] = "HOME_EQUITY", E[E.PLAN_401_K = 9] = "PLAN_401_K", E[E.PLAN_403_B = 10] = "PLAN_403_B", E[E.PLAN_529 = 11] = "PLAN_529", E[E.IRA = 12] = "IRA", E[E.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", E[E.ROTH_IRA = 14] = "ROTH_IRA", E[E.TAXABLE = 15] = "TAXABLE", E[E.NON_TAXABLE = 16] = "NON_TAXABLE", E[E.BROKERAGE = 17] = "BROKERAGE", E[E.TRUST = 18] = "TRUST", E[E.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", E[E.PLAN_457 = 20] = "PLAN_457", E[E.PENSION = 21] = "PENSION", E[E.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", E[E.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", E[E.SIMPLE_IRA = 24] = "SIMPLE_IRA", E[E.BOAT = 25] = "BOAT", E[E.POWERSPORTS = 26] = "POWERSPORTS", E[E.RV = 27] = "RV", E[E.HELOC = 28] = "HELOC", E[E.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", E[E.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", E[E.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", E[E.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", E[E.DISABILITY = 33] = "DISABILITY", E[E.HEALTH = 34] = "HEALTH", E[E.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", E[E.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", E[E.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", E[E.TERM_LIFE = 38] = "TERM_LIFE", E[E.WHOLE_LIFE = 39] = "WHOLE_LIFE", E[E.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", E[E.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", E[E.HSA = 42] = "HSA", E[E.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", E[E.INDIVIDUAL = 44] = "INDIVIDUAL", E[E.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", E[E.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", E[E.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", E[E.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", E[E.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", E[E.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", E[E.PLAN_401_A = 51] = "PLAN_401_A", E[E.SARSEP_IRA = 52] = "SARSEP_IRA", E[E.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", E[E.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", E[E.SEPP_IRA = 55] = "SEPP_IRA", E[E.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", E[E.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", E[E.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", E[E.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", E[E.COVERDELL = 60] = "COVERDELL", E[E.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", E[E.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", E[E.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", E[E.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", E[E.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", E[E.CUSTODIAL = 66] = "CUSTODIAL", E[E.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", E[E.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", E[E.EDUCATIONAL = 69] = "EDUCATIONAL", E[E.ESTATE = 70] = "ESTATE", E[E.EXECUTOR = 71] = "EXECUTOR", E[E.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", E[E.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", E[E.HRA = 74] = "HRA", E[E.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", E[E.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", E[E.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", E[E.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", E[E.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", E[E.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", E[E.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", E[E.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", E[E.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", E[E.LIVING_TRUST = 84] = "LIVING_TRUST", E[E.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", E[E.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", E[E.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", E[E.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", E[E.PARTNERSHIP = 89] = "PARTNERSHIP", E[E.PLAN_409_A = 90] = "PLAN_409_A", E[E.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", E[E.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", E[E.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", E[E.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", E[E.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", E[E.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", E[E.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", E[E.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", E[E.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", E[E.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", E[E.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", E[E.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", E[E.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", E[E.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", E[E.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", E[E.HSA_SAVINGS = 106] = "HSA_SAVINGS", E[E.HSA_CHECKING = 107] = "HSA_CHECKING", E))(sE || {}), LE = /* @__PURE__ */ ((E) => (E[E.REAL_ESTATE = 0] = "REAL_ESTATE", E[E.VEHICLE = 1] = "VEHICLE", E[E.ART = 2] = "ART", E[E.JEWELRY = 3] = "JEWELRY", E[E.FURNITURE = 4] = "FURNITURE", E[E.APPLIANCES = 5] = "APPLIANCES", E[E.COMPUTER = 6] = "COMPUTER", E[E.ELECTRONICS = 7] = "ELECTRONICS", E[E.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", E[E.MISCELLANEOUS = 9] = "MISCELLANEOUS", E))(LE || {}), eE = /* @__PURE__ */ ((E) => (E[E.CREATED = 0] = "CREATED", E[E.PREVENTED = 1] = "PREVENTED", E[E.DENIED = 2] = "DENIED", E[E.CHALLENGED = 3] = "CHALLENGED", E[E.REJECTED = 4] = "REJECTED", E[E.LOCKED = 5] = "LOCKED", E[E.CONNECTED = 6] = "CONNECTED", E[E.IMPEDED = 7] = "IMPEDED", E[E.RECONNECTED = 8] = "RECONNECTED", E[E.DEGRADED = 9] = "DEGRADED", E[E.DISCONNECTED = 10] = "DISCONNECTED", E[E.DISCONTINUED = 11] = "DISCONTINUED", E[E.CLOSED = 12] = "CLOSED", E[E.DELAYED = 13] = "DELAYED", E[E.FAILED = 14] = "FAILED", E[E.UPDATED = 15] = "UPDATED", E[E.DISABLED = 16] = "DISABLED", E[E.IMPORTED = 17] = "IMPORTED", E[E.RESUMED = 18] = "RESUMED", E[E.EXPIRED = 19] = "EXPIRED", E[E.IMPAIRED = 20] = "IMPAIRED", E[E.PENDING = 21] = "PENDING", E))(eE || {});
|
|
26
26
|
const bE = [
|
|
27
27
|
0,
|
|
@@ -3,9 +3,9 @@ import r from "react";
|
|
|
3
3
|
import { observer as E } from "mobx-react-lite";
|
|
4
4
|
import { useTheme as D } from "@mui/material/styles";
|
|
5
5
|
import { ConnectionsWidget as L } from "@mxenabled/web-widget-sdk";
|
|
6
|
-
import { C as a, c, M as i } from "./ConnectDrawer
|
|
7
|
-
import { d as b, e as w, u as _ } from "./hooks-
|
|
8
|
-
import { D as x } from "./Drawer-
|
|
6
|
+
import { C as a, c, M as i } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
7
|
+
import { d as b, e as w, u as _ } from "./hooks-CE2TKk4a.mjs";
|
|
8
|
+
import { D as x } from "./Drawer-kEE73B87.mjs";
|
|
9
9
|
const I = ({
|
|
10
10
|
onClose: l,
|
|
11
11
|
showConnectionsWidget: o,
|
|
@@ -5,7 +5,7 @@ import { v4 as B } from "uuid";
|
|
|
5
5
|
import { useTokens as O, TextField as W, P as p } from "@mxenabled/mxui";
|
|
6
6
|
import { b as _, g as d } from "./Localization-2MODESHW.mjs";
|
|
7
7
|
import { g as j, C as D, f as y, M as C } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
8
|
-
import { u as F } from "./hooks-
|
|
8
|
+
import { u as F } from "./hooks-CE2TKk4a.mjs";
|
|
9
9
|
const G = ({
|
|
10
10
|
allowDecimals: o = !0,
|
|
11
11
|
ariaLabel: g,
|
|
@@ -7,8 +7,8 @@ import { isBefore as n } from "date-fns/isBefore";
|
|
|
7
7
|
import { nextDay as c } from "date-fns/nextDay";
|
|
8
8
|
import { setDate as d } from "date-fns/setDate";
|
|
9
9
|
import { startOfToday as o } from "date-fns/startOfToday";
|
|
10
|
-
import { fromUnixTime as
|
|
11
|
-
import { f as
|
|
10
|
+
import { fromUnixTime as D } from "date-fns/fromUnixTime";
|
|
11
|
+
import { f as i, D as f } from "./Dialog-CWW597AF.mjs";
|
|
12
12
|
const x = (t) => {
|
|
13
13
|
const e = y(t);
|
|
14
14
|
let r = c(t, e);
|
|
@@ -34,7 +34,7 @@ const x = (t) => {
|
|
|
34
34
|
}, Q = (t) => {
|
|
35
35
|
const e = p(t);
|
|
36
36
|
return a(e, 1);
|
|
37
|
-
}, w = (t) => l(t, 1), F = (t) => D(
|
|
37
|
+
}, w = (t) => l(t, 1), F = (t) => i(D(t), f.DAY_OF_WEEK_MONTH_DAY), H = (t) => t ? i(D(t), f.MONTH_YEAR) : "";
|
|
38
38
|
export {
|
|
39
39
|
Q as a,
|
|
40
40
|
p as b,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as l } from "mobx";
|
|
2
2
|
import { getDate as r, fromUnixTime as _, startOfMonth as m } from "date-fns";
|
|
3
|
-
import { A as p } from "./ConnectDrawer
|
|
3
|
+
import { A as p } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
4
4
|
const E = 12, T = 100;
|
|
5
5
|
var c = /* @__PURE__ */ ((a) => (a[a.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", a[a.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", a))(c || {});
|
|
6
6
|
const b = {
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import n from "@mui/material/Box";
|
|
3
|
+
import c from "@mui/material/Stack";
|
|
4
|
+
import { H2 as D, Drawer as S, Footer as y } from "@mxenabled/mxui";
|
|
5
|
+
import B from "@mui/material/IconButton";
|
|
6
|
+
import { ArrowBack as C } from "@mxenabled/mx-icons";
|
|
7
|
+
const j = ({
|
|
8
|
+
ariaLabelClose: o,
|
|
9
|
+
onClose: e,
|
|
10
|
+
shouldShowBorders: a,
|
|
11
|
+
shouldShowShadow: t,
|
|
12
|
+
title: i
|
|
13
|
+
}) => /* @__PURE__ */ p(
|
|
14
|
+
c,
|
|
15
|
+
{
|
|
16
|
+
"aria-level": 1,
|
|
17
|
+
direction: "row",
|
|
18
|
+
role: "heading",
|
|
19
|
+
sx: {
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
backgroundColor: "background.paper",
|
|
22
|
+
...a && {
|
|
23
|
+
borderBottom: 1,
|
|
24
|
+
borderTop: 1,
|
|
25
|
+
borderColor: "border.light"
|
|
26
|
+
},
|
|
27
|
+
...t && {
|
|
28
|
+
boxShadow: "0px 2px 8px 0px #6A73811F"
|
|
29
|
+
},
|
|
30
|
+
padding: "8px 8px 8px 8px"
|
|
31
|
+
},
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ r(B, { "aria-label": o, color: "primary", onClick: e, children: /* @__PURE__ */ r(C, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
34
|
+
/* @__PURE__ */ r(
|
|
35
|
+
n,
|
|
36
|
+
{
|
|
37
|
+
sx: {
|
|
38
|
+
flexGrow: 1,
|
|
39
|
+
margin: "auto",
|
|
40
|
+
textAlign: "center"
|
|
41
|
+
},
|
|
42
|
+
children: /* @__PURE__ */ r(D, { bold: !0, variant: "Body", children: i })
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ r(n, { width: "44px" })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
), v = ({
|
|
49
|
+
ariaLabelClose: o = "Close",
|
|
50
|
+
children: e,
|
|
51
|
+
hasSecondaryAction: a = !0,
|
|
52
|
+
id: t,
|
|
53
|
+
isOpen: i,
|
|
54
|
+
isPrimaryDisabled: h,
|
|
55
|
+
onClose: d,
|
|
56
|
+
onPrimaryAction: l,
|
|
57
|
+
onSecondaryAction: u,
|
|
58
|
+
primaryColor: s = "primary",
|
|
59
|
+
primaryText: x,
|
|
60
|
+
secondaryColor: m = "secondary",
|
|
61
|
+
secondaryText: b,
|
|
62
|
+
shouldShowHeaderBorders: w = !0,
|
|
63
|
+
shouldShowHeaderShadow: g = !1,
|
|
64
|
+
title: f,
|
|
65
|
+
...k
|
|
66
|
+
}) => /* @__PURE__ */ r(
|
|
67
|
+
S,
|
|
68
|
+
{
|
|
69
|
+
id: t,
|
|
70
|
+
isOpen: i,
|
|
71
|
+
onClose: d,
|
|
72
|
+
sx: {
|
|
73
|
+
"& .MuiDrawer-paper": {
|
|
74
|
+
backgroundColor: "background.default",
|
|
75
|
+
borderRadius: 0
|
|
76
|
+
},
|
|
77
|
+
height: "100%",
|
|
78
|
+
"& .MuiToolbar-root": {
|
|
79
|
+
backgroundColor: "background.paper"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
...k,
|
|
83
|
+
children: /* @__PURE__ */ p(c, { height: "100%", justifyContent: "space-between", children: [
|
|
84
|
+
/* @__PURE__ */ r(
|
|
85
|
+
j,
|
|
86
|
+
{
|
|
87
|
+
ariaLabelClose: o,
|
|
88
|
+
onClose: d,
|
|
89
|
+
shouldShowBorders: w,
|
|
90
|
+
shouldShowShadow: g,
|
|
91
|
+
title: f
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ r(n, { height: "100%", overflow: "auto", children: e }),
|
|
95
|
+
l && /* @__PURE__ */ r(
|
|
96
|
+
y,
|
|
97
|
+
{
|
|
98
|
+
hasSecondaryAction: a,
|
|
99
|
+
isPrimaryDisabled: h,
|
|
100
|
+
onPrimaryAction: l,
|
|
101
|
+
onSecondaryAction: u ?? d,
|
|
102
|
+
primaryColor: s,
|
|
103
|
+
primaryText: x,
|
|
104
|
+
secondaryColor: m,
|
|
105
|
+
secondaryText: b
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] })
|
|
109
|
+
}
|
|
110
|
+
), $ = v;
|
|
111
|
+
export {
|
|
112
|
+
$ as D
|
|
113
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { observer as c } from "mobx-react-lite";
|
|
3
3
|
import { Icon as i } from "@mxenabled/mxui";
|
|
4
|
-
import { e as p } from "./exportTransactionsToCSV-
|
|
5
|
-
import { O as m } from "./User-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-D8TTNrrE.mjs";
|
|
5
|
+
import { O as m } from "./User-DaJAQ09j.mjs";
|
|
6
6
|
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
|
-
import { g as _, h as C, u as l } from "./hooks-
|
|
7
|
+
import { g as _, h as C, u as l } from "./hooks-CE2TKk4a.mjs";
|
|
8
8
|
const v = ({ filter: t }) => {
|
|
9
9
|
const { onEvent: r } = _(), { tags: e, sortedTransactions: s } = C(), { transactions: n } = l(), a = () => {
|
|
10
10
|
r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { makeAutoObservable as l, runInAction as r } from "mobx";
|
|
2
|
+
import { format as i } from "date-fns/format";
|
|
3
|
+
import { fromUnixTime as g } from "date-fns/fromUnixTime";
|
|
4
|
+
import { getUnixTime as s } from "date-fns/getUnixTime";
|
|
5
|
+
import { subMonths as S } from "date-fns/subMonths";
|
|
6
|
+
import { F as m, A as o } from "./Fetch-87LIQbEA.mjs";
|
|
7
|
+
import { f as p, D as u } from "./Dialog-CWW597AF.mjs";
|
|
8
|
+
class n {
|
|
9
|
+
fetchInstance;
|
|
10
|
+
constructor(e, t, a) {
|
|
11
|
+
this.fetchInstance = new m(e, t, void 0, a);
|
|
12
|
+
}
|
|
13
|
+
calculateHealthScore = async () => this.fetchInstance.post(`${o.HEALTH_SCORES}/calculate`).then((e) => e.health_score);
|
|
14
|
+
getAverageHealthScores = async () => this.fetchInstance.get(`${o.HEALTH_SCORES}/monthly_averages`).then((e) => e);
|
|
15
|
+
getHealthScoreChangeReports = async (e, t) => this.fetchInstance.get(`${o.HEALTH_SCORES}/change_report/from/${e}/to/${t}`).then((a) => a);
|
|
16
|
+
getPeerScore = async (e) => this.fetchInstance.get(`${o.HEALTH_SCORES}/average/${e}`).then((t) => t.average_health_score);
|
|
17
|
+
}
|
|
18
|
+
const y = (h) => h?.health_scores.map((e) => {
|
|
19
|
+
const t = e.monthly_health_score_average, a = new Date(0, t.month - 1, 1);
|
|
20
|
+
return {
|
|
21
|
+
x: p(a, u.MONTH_SHORT),
|
|
22
|
+
y: t.average_health_score,
|
|
23
|
+
month: t.month
|
|
24
|
+
// Keep original month for sorting
|
|
25
|
+
};
|
|
26
|
+
}).sort((e, t) => e.month - t.month).map((e) => ({ x: e.x, y: e.y }));
|
|
27
|
+
class v {
|
|
28
|
+
api = new n("/", "");
|
|
29
|
+
augmentedChartData = [];
|
|
30
|
+
averageHealthScores = [];
|
|
31
|
+
globalStore;
|
|
32
|
+
healthScore = {};
|
|
33
|
+
healthScoreChange;
|
|
34
|
+
healthScoreChangeReports = [];
|
|
35
|
+
peerScore = null;
|
|
36
|
+
constructor(e) {
|
|
37
|
+
this.globalStore = e, this.api = new n(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
38
|
+
}
|
|
39
|
+
calculateHealthScore = async () => {
|
|
40
|
+
try {
|
|
41
|
+
const e = await this.api.calculateHealthScore();
|
|
42
|
+
let t = 0;
|
|
43
|
+
await this.loadHealthScoreChangeReports();
|
|
44
|
+
const a = e?.health_score || 0, c = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
|
45
|
+
t = a - c, r(() => {
|
|
46
|
+
this.healthScore = e, this.healthScoreChange = t;
|
|
47
|
+
});
|
|
48
|
+
} catch (e) {
|
|
49
|
+
console.error("Error calculating health score:", e);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
loadAverageHealthScores = async () => {
|
|
53
|
+
try {
|
|
54
|
+
const e = await this.api.getAverageHealthScores();
|
|
55
|
+
r(() => {
|
|
56
|
+
this.averageHealthScores = e;
|
|
57
|
+
});
|
|
58
|
+
} catch (e) {
|
|
59
|
+
console.error("Error loading average health scores:", e);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
loadHealthScoreChangeReports = async () => {
|
|
63
|
+
const e = s(S(/* @__PURE__ */ new Date(), 2)), t = s(/* @__PURE__ */ new Date());
|
|
64
|
+
try {
|
|
65
|
+
const a = await this.api.getHealthScoreChangeReports(
|
|
66
|
+
e,
|
|
67
|
+
t
|
|
68
|
+
);
|
|
69
|
+
r(() => {
|
|
70
|
+
this.healthScoreChangeReports = a;
|
|
71
|
+
});
|
|
72
|
+
} catch (a) {
|
|
73
|
+
console.error("Error loading health score change reports:", a);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
loadPeerScore = async () => {
|
|
77
|
+
const e = i(g(this.globalStore.appDataStore.user.birthday), "yyyy");
|
|
78
|
+
try {
|
|
79
|
+
const t = await this.api.getPeerScore(e);
|
|
80
|
+
r(() => {
|
|
81
|
+
this.peerScore = t;
|
|
82
|
+
});
|
|
83
|
+
} catch (t) {
|
|
84
|
+
console.error("Error loading peer score:", t);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
loadAugmentedChartData = async () => {
|
|
88
|
+
try {
|
|
89
|
+
const e = await this.api.getAverageHealthScores();
|
|
90
|
+
r(() => {
|
|
91
|
+
this.augmentedChartData = y(e);
|
|
92
|
+
});
|
|
93
|
+
} catch (e) {
|
|
94
|
+
console.error(`Error occurred while getting augmented chart data: ${e}`);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
n as F,
|
|
100
|
+
v as a
|
|
101
|
+
};
|