@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11
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-D_kRKI6x.mjs → Account-BVKkr6ft.mjs} +1 -1
- package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-BmQ5a3Lk.mjs} +8 -8
- package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-vSwO-5Wk.mjs} +5 -5
- package/dist/{AccountFields-DeebSePp.mjs → AccountFields-VRK4zgvW.mjs} +2 -2
- package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-SkBUCsb0.mjs} +3 -3
- package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-3Umlm7QY.mjs} +5 -5
- package/dist/{Accounts-DppzmFak.mjs → Accounts-CYsoAdW-.mjs} +1 -1
- package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
- package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-BA9H_xx8.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-Bs-NUsAs.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-BwmpJMik.mjs} +1 -1
- package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CvyiKLTh.mjs} +3 -3
- package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
- package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BH5TWxYr.mjs} +21 -21
- package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
- package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-DCUX6T2b.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-NKD8a-19.mjs} +2 -2
- package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
- package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-BD_CIXnV.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{Transaction-CXMMfhz-.mjs → Transaction-Dns0Kuuy.mjs} +1 -1
- package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/{TransactionDetails-v77agHHP.mjs → TransactionDetails-DFDYdDae.mjs} +5 -5
- package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-BVKUoEHj.mjs} +25 -29
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
- package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-BHhhVctF.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +315 -321
- package/dist/common/stores/GlobalStore.d.ts +1 -2
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +197 -180
- package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-B4JW8rfR.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-h96aTml7.mjs +0 -37
- package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-DcS6DyRl.mjs +0 -74
package/CHANGELOG.md
CHANGED
|
@@ -11,10 +11,10 @@ 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 { c as z, u as E, e as O, f as X } from "./hooks-
|
|
16
|
-
import { A as at } from "./AccountListItem-
|
|
17
|
-
import { A as k } from "./WidgetContainer-
|
|
14
|
+
import { u as D } from "./AccountDetailsHeader-vSwO-5Wk.mjs";
|
|
15
|
+
import { c as z, u as E, e as O, f as X } from "./hooks-DkUqN6JE.mjs";
|
|
16
|
+
import { A as at } from "./AccountListItem-SkBUCsb0.mjs";
|
|
17
|
+
import { A as k } from "./WidgetContainer-BHhhVctF.mjs";
|
|
18
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
20
|
import { D as J } from "./Drawer-kEE73B87.mjs";
|
|
@@ -22,7 +22,7 @@ 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 { k as m, N as Q, h as Z, F as P } from "./ConnectDrawer-
|
|
25
|
+
import { k as m, N as Q, h as Z, F as P } from "./ConnectDrawer-BA9H_xx8.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 { a as Dt } from "./AccountFields-
|
|
40
|
+
import { C as St } from "./CurrencyInput-bEx2Mbd0.mjs";
|
|
41
|
+
import { a as Dt } from "./AccountFields-VRK4zgvW.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-DFDYdDae.mjs";
|
|
48
48
|
import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
|
|
49
49
|
const U = ({
|
|
50
50
|
children: e,
|
|
@@ -2,17 +2,17 @@ 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 N } from "./AccountFields-
|
|
5
|
+
import { g as N } from "./AccountFields-VRK4zgvW.mjs";
|
|
6
6
|
import h from "react";
|
|
7
|
-
import { G as v, c as S, k as y, u as _, l as E } from "./hooks-
|
|
7
|
+
import { G as v, c as S, k as y, u as _, l as E } from "./hooks-DkUqN6JE.mjs";
|
|
8
8
|
import G from "@mui/material/Card";
|
|
9
9
|
import O from "@mui/material/CardContent";
|
|
10
10
|
import P from "@mui/material/CardHeader";
|
|
11
11
|
import { useTheme as M } from "@mui/material/styles";
|
|
12
12
|
import { g as B, a as H, b as U } from "./SpendingData-D5vsfYKo.mjs";
|
|
13
|
-
import { L as j } from "./LineChart-
|
|
14
|
-
import { I as f, P as g, S as C } from "./Account-
|
|
15
|
-
import { A } from "./ConnectDrawer-
|
|
13
|
+
import { L as j } from "./LineChart-BWWmmJxV.mjs";
|
|
14
|
+
import { I as f, P as g, S as C } from "./Account-BVKkr6ft.mjs";
|
|
15
|
+
import { A } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
16
16
|
import { L as z } from "./Loader-Dp1P2gNw.mjs";
|
|
17
17
|
import { f as Y, D as k } from "./Dialog-CWW597AF.mjs";
|
|
18
18
|
import { f as R } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as p, Text as c } from "@mxenabled/mxui";
|
|
3
|
-
import { F as m, A as b, a as v, P as h, b as F } from "./ConnectDrawer-
|
|
4
|
-
import { i as D, u as T, a as A, b as O, c as g } from "./Accounts-
|
|
3
|
+
import { F as m, A as b, a as v, P as h, b as F } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
4
|
+
import { i as D, u as T, a as A, b as O, c as g } from "./Accounts-CYsoAdW-.mjs";
|
|
5
5
|
import { f as _, i as d, a as N, b as S } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
6
6
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
7
7
|
import { f, D as o } from "./Dialog-CWW597AF.mjs";
|
|
@@ -10,9 +10,9 @@ import C from "@mui/material/styles/useTheme";
|
|
|
10
10
|
import { InstitutionLogo as B, Text as o } from "@mxenabled/mxui";
|
|
11
11
|
import { Error as L } from "@mxenabled/mx-icons";
|
|
12
12
|
import { I as A } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
-
import { g as j } from "./AccountFields-
|
|
14
|
-
import { d } from "./ConnectDrawer-
|
|
15
|
-
import { u as T } from "./hooks-
|
|
13
|
+
import { g as j } from "./AccountFields-VRK4zgvW.mjs";
|
|
14
|
+
import { d } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
15
|
+
import { u as T } from "./hooks-DkUqN6JE.mjs";
|
|
16
16
|
import { f as X } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
17
17
|
const $ = {
|
|
18
18
|
gridRow: 1,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { makeAutoObservable as _, runInAction as a } from "mobx";
|
|
2
|
-
import { F as g, A as i } from "./Fetch-
|
|
3
|
-
import { A as s, d, E as f, i as p, j as y } from "./ConnectDrawer-
|
|
2
|
+
import { F as g, A as i } from "./Fetch-CkFKy79O.mjs";
|
|
3
|
+
import { A as s, d, E as f, i as p, j as y } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
4
4
|
class l {
|
|
5
5
|
fetchInstance;
|
|
6
|
-
constructor(t, e
|
|
7
|
-
this.fetchInstance = new g(t, e
|
|
6
|
+
constructor(t, e) {
|
|
7
|
+
this.fetchInstance = new g(t, e);
|
|
8
8
|
}
|
|
9
9
|
createAccount = async (t) => this.fetchInstance.post(i.ACCOUNTS, t).then((e) => e.account).catch((e) => e);
|
|
10
10
|
deleteAccount = async (t) => this.fetchInstance.delete(`${i.ACCOUNTS}/${t}`).catch((e) => e);
|
|
@@ -36,7 +36,7 @@ class w {
|
|
|
36
36
|
members = [];
|
|
37
37
|
uiStore;
|
|
38
38
|
constructor(t) {
|
|
39
|
-
this.globalStore = t, this.uiStore = new b(), this.api = new l(t.endpoint, t.sessionToken
|
|
39
|
+
this.globalStore = t, this.uiStore = new b(), this.api = new l(t.endpoint, t.sessionToken), _(this);
|
|
40
40
|
}
|
|
41
41
|
loadAccountData = async ({
|
|
42
42
|
accounts: t,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as _ } from "./ConnectDrawer-
|
|
1
|
+
import { A as _ } from "./ConnectDrawer-BA9H_xx8.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,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as c, A as s } from "./Fetch-
|
|
1
|
+
import { F as c, A as s } from "./Fetch-CkFKy79O.mjs";
|
|
2
2
|
class i {
|
|
3
3
|
fetchInstance;
|
|
4
|
-
constructor(t, e
|
|
5
|
-
this.fetchInstance = new c(t, e
|
|
4
|
+
constructor(t, e) {
|
|
5
|
+
this.fetchInstance = new c(t, e);
|
|
6
6
|
}
|
|
7
7
|
getBeats = async (t, e) => {
|
|
8
8
|
const n = `page=${t || 1}&per_page=${e || 5}`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { makeAutoObservable as c, runInAction as r } from "mobx";
|
|
2
|
-
import { B as
|
|
3
|
-
function d(t,
|
|
4
|
-
const
|
|
5
|
-
return [...t, ...
|
|
2
|
+
import { B as n } from "./BeatApi-DLu87ijw.mjs";
|
|
3
|
+
function d(t, a, s, i = "asc") {
|
|
4
|
+
const e = i === "desc" ? -1 : 1;
|
|
5
|
+
return [...t, ...a].sort((_, l) => _[s] < l[s] ? -1 * e : _[s] > l[s] ? 1 * e : 0);
|
|
6
6
|
}
|
|
7
7
|
const m = (t) => ({
|
|
8
8
|
...t,
|
|
@@ -49,31 +49,31 @@ const m = (t) => ({
|
|
|
49
49
|
});
|
|
50
50
|
class u {
|
|
51
51
|
globalStore;
|
|
52
|
-
api = new
|
|
52
|
+
api = new n("/", "");
|
|
53
53
|
beats = [];
|
|
54
54
|
isLoading = !1;
|
|
55
|
-
constructor(
|
|
56
|
-
this.globalStore =
|
|
55
|
+
constructor(a) {
|
|
56
|
+
this.globalStore = a, this.api = new n(a.endpoint, a.sessionToken), c(this);
|
|
57
57
|
}
|
|
58
58
|
loadBeats = async () => {
|
|
59
59
|
this.isLoading = !0;
|
|
60
|
-
const
|
|
60
|
+
const a = await this.api.getBeats(), i = (await this.api.getOffers()).map((e) => m(e));
|
|
61
61
|
r(() => {
|
|
62
|
-
this.beats = d(
|
|
62
|
+
this.beats = d(a, i, "active_at", "desc"), this.isLoading = !1;
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
getFilteredBeats(
|
|
66
|
-
const { categoryGuids: s, templates: i } =
|
|
67
|
-
let
|
|
68
|
-
return s && (
|
|
65
|
+
getFilteredBeats(a) {
|
|
66
|
+
const { categoryGuids: s, templates: i } = a;
|
|
67
|
+
let e = this.beats;
|
|
68
|
+
return s && (e = this.filterBeatsByCategory(e, s)), i && (e = this.filterBeatsByTemplate(e, i)), e;
|
|
69
69
|
}
|
|
70
70
|
// Return beats with any beat.category_guids that are in categoryGuids
|
|
71
|
-
filterBeatsByCategory(
|
|
72
|
-
return
|
|
71
|
+
filterBeatsByCategory(a, s) {
|
|
72
|
+
return a.filter((i) => i.category_guids?.some((e) => s.includes(e)));
|
|
73
73
|
}
|
|
74
74
|
// Return beats with a beat.template that is in templates
|
|
75
|
-
filterBeatsByTemplate(
|
|
76
|
-
return
|
|
75
|
+
filterBeatsByTemplate(a, s) {
|
|
76
|
+
return a.filter((i) => s.some((e) => i.template === e));
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
@@ -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, k as y, u as b, e as D, a as U } from "./hooks-
|
|
5
|
+
import { G as K, k as y, u as b, e as D, a as U } from "./hooks-DkUqN6JE.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";
|
|
@@ -4,12 +4,12 @@ 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
6
|
import { a as T, g as m } from "./CategoryUtil-BR3H5i6n.mjs";
|
|
7
|
-
import { F as p, A as i } from "./Fetch-
|
|
7
|
+
import { F as p, A as i } from "./Fetch-CkFKy79O.mjs";
|
|
8
8
|
import { b as f, c as w } from "./Category-CevNQ03n.mjs";
|
|
9
9
|
class y {
|
|
10
10
|
fetchInstance;
|
|
11
|
-
constructor(t, e
|
|
12
|
-
this.fetchInstance = new p(t, e
|
|
11
|
+
constructor(t, e) {
|
|
12
|
+
this.fetchInstance = new p(t, e);
|
|
13
13
|
}
|
|
14
14
|
addCategory = async (t) => this.fetchInstance.post(i.CATEGORIES, t).then((e) => e.category);
|
|
15
15
|
getCategories = async () => this.fetchInstance.get(i.CATEGORIES).then((t) => t.categories);
|
|
@@ -65,7 +65,7 @@ class G {
|
|
|
65
65
|
isLoadingCategoryTotals = !1;
|
|
66
66
|
monthlyTotalsLoaded = !1;
|
|
67
67
|
constructor(t) {
|
|
68
|
-
this.globalStore = t, this.uiStore = new S(), this.api = new y(t.endpoint, t.sessionToken
|
|
68
|
+
this.globalStore = t, this.uiStore = new S(), this.api = new y(t.endpoint, t.sessionToken), u(this);
|
|
69
69
|
}
|
|
70
70
|
get detailedCategories() {
|
|
71
71
|
return T(
|
|
@@ -14,7 +14,7 @@ import p from "@mui/material/ListItemText";
|
|
|
14
14
|
import y from "@mui/material/Popover";
|
|
15
15
|
import g from "@mui/material/Stack";
|
|
16
16
|
import v from "@mui/material/Checkbox";
|
|
17
|
-
import { u as B, c, d as u } from "./hooks-
|
|
17
|
+
import { u as B, c, d as u } from "./hooks-DkUqN6JE.mjs";
|
|
18
18
|
import { b as W } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import { u as EE } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
20
20
|
import { observer as z } from "mobx-react-lite";
|
|
@@ -3,8 +3,8 @@ 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 { c as b, d as w, u as _ } from "./hooks-
|
|
6
|
+
import { C as a, c, M as i } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
7
|
+
import { c as b, d as w, u as _ } from "./hooks-DkUqN6JE.mjs";
|
|
8
8
|
import { D as x } from "./Drawer-kEE73B87.mjs";
|
|
9
9
|
const I = ({
|
|
10
10
|
onClose: l,
|
|
@@ -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-CtWHhyBX.mjs";
|
|
8
|
-
import { u as F } from "./hooks-
|
|
8
|
+
import { u as F } from "./hooks-DkUqN6JE.mjs";
|
|
9
9
|
const G = ({
|
|
10
10
|
allowDecimals: o = !0,
|
|
11
11
|
ariaLabel: g,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as l } from "mobx";
|
|
2
2
|
import { getDate as o, fromUnixTime as m, startOfMonth as _ } from "date-fns";
|
|
3
|
-
import { A as b } from "./ConnectDrawer-
|
|
3
|
+
import { A as b } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
4
4
|
var u = /* @__PURE__ */ ((a) => (a[a.HIGHEST_INTEREST = 1] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 2] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 3] = "HIGHEST_BALANCE", a))(u || {});
|
|
5
5
|
const p = {
|
|
6
6
|
unnamed_label: "Unnamed Debt"
|
|
@@ -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 "./Transaction-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-B4JW8rfR.mjs";
|
|
5
|
+
import { O as m } from "./Transaction-Dns0Kuuy.mjs";
|
|
6
6
|
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
|
-
import { e as _, f as C, u as l } from "./hooks-
|
|
7
|
+
import { e as _, f as C, u as l } from "./hooks-DkUqN6JE.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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as
|
|
1
|
+
import { g as a } from "./Localization-2MODESHW.mjs";
|
|
2
2
|
const S = {
|
|
3
3
|
ACCOUNTS: "accounts",
|
|
4
4
|
ANALYTICS_EVENTS: "analytics_events",
|
|
@@ -46,19 +46,18 @@ const S = {
|
|
|
46
46
|
USER_PROFILES: "user_profiles",
|
|
47
47
|
WIDGET_URLS: "widget_urls"
|
|
48
48
|
};
|
|
49
|
-
class
|
|
49
|
+
class c {
|
|
50
50
|
endpoint = "/";
|
|
51
51
|
headers;
|
|
52
|
-
|
|
53
|
-
constructor(s, n, t, o) {
|
|
52
|
+
constructor(s, n, t) {
|
|
54
53
|
this.endpoint = s;
|
|
55
|
-
const
|
|
54
|
+
const o = {
|
|
56
55
|
Accept: "application/json",
|
|
57
|
-
"Accept-Language":
|
|
56
|
+
"Accept-Language": a(),
|
|
58
57
|
"Content-Type": "application/json",
|
|
59
58
|
"MD-Session-Token": n
|
|
60
59
|
};
|
|
61
|
-
this.headers = t ||
|
|
60
|
+
this.headers = t || o;
|
|
62
61
|
}
|
|
63
62
|
get = async (s) => {
|
|
64
63
|
const n = {
|
|
@@ -70,7 +69,7 @@ class h {
|
|
|
70
69
|
return t.text();
|
|
71
70
|
throw t;
|
|
72
71
|
}).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
73
|
-
throw
|
|
72
|
+
throw t;
|
|
74
73
|
});
|
|
75
74
|
};
|
|
76
75
|
post = async (s, n) => {
|
|
@@ -113,5 +112,5 @@ class h {
|
|
|
113
112
|
}
|
|
114
113
|
export {
|
|
115
114
|
S as A,
|
|
116
|
-
|
|
115
|
+
c as F
|
|
117
116
|
};
|
|
@@ -3,12 +3,12 @@ import { format as i } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as g } from "date-fns/fromUnixTime";
|
|
4
4
|
import { getUnixTime as s } from "date-fns/getUnixTime";
|
|
5
5
|
import { subMonths as S } from "date-fns/subMonths";
|
|
6
|
-
import { F as m, A as o } from "./Fetch-
|
|
6
|
+
import { F as m, A as o } from "./Fetch-CkFKy79O.mjs";
|
|
7
7
|
import { f as p, D as u } from "./Dialog-CWW597AF.mjs";
|
|
8
8
|
class n {
|
|
9
9
|
fetchInstance;
|
|
10
|
-
constructor(e, t
|
|
11
|
-
this.fetchInstance = new m(e, t
|
|
10
|
+
constructor(e, t) {
|
|
11
|
+
this.fetchInstance = new m(e, t);
|
|
12
12
|
}
|
|
13
13
|
calculateHealthScore = async () => this.fetchInstance.post(`${o.HEALTH_SCORES}/calculate`).then((e) => e.health_score);
|
|
14
14
|
getAverageHealthScores = async () => this.fetchInstance.get(`${o.HEALTH_SCORES}/monthly_averages`).then((e) => e);
|
|
@@ -34,7 +34,7 @@ class v {
|
|
|
34
34
|
healthScoreChangeReports = [];
|
|
35
35
|
peerScore = null;
|
|
36
36
|
constructor(e) {
|
|
37
|
-
this.globalStore = e, this.api = new n(e.endpoint, e.sessionToken
|
|
37
|
+
this.globalStore = e, this.api = new n(e.endpoint, e.sessionToken), l(this);
|
|
38
38
|
}
|
|
39
39
|
calculateHealthScore = async () => {
|
|
40
40
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as g, jsx as
|
|
1
|
+
import { jsxs as g, jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
3
|
import p from "@mui/material/Button";
|
|
4
4
|
import T from "@mui/material/Card";
|
|
@@ -7,10 +7,10 @@ import N from "@mui/material/CardHeader";
|
|
|
7
7
|
import O from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as w, ChevronRight as S } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as A } from "@mxenabled/mxui";
|
|
10
|
-
import { h as L } from "./ConnectDrawer-
|
|
11
|
-
import { m as b } from "./hooks-
|
|
10
|
+
import { h as L } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
11
|
+
import { m as b } from "./hooks-DkUqN6JE.mjs";
|
|
12
12
|
import { makeAutoObservable as y, runInAction as c } from "mobx";
|
|
13
|
-
import { F as D, A as i } from "./Fetch-
|
|
13
|
+
import { F as D, A as i } from "./Fetch-CkFKy79O.mjs";
|
|
14
14
|
import { fromUnixTime as C } from "date-fns/fromUnixTime";
|
|
15
15
|
import { addYears as v } from "date-fns/addYears";
|
|
16
16
|
import { getUnixTime as x } from "date-fns/getUnixTime";
|
|
@@ -22,20 +22,20 @@ const at = ({ description: e, label: t, title: o }) => {
|
|
|
22
22
|
if (r.show_connections_widget_in_master)
|
|
23
23
|
return /* @__PURE__ */ g(u.Fragment, { children: [
|
|
24
24
|
/* @__PURE__ */ g(T, { sx: { m: 24 }, children: [
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ _(
|
|
26
26
|
N,
|
|
27
27
|
{
|
|
28
|
-
avatar: /* @__PURE__ */
|
|
28
|
+
avatar: /* @__PURE__ */ _(w, {}),
|
|
29
29
|
sx: { ".MuiCardHeader-avatar": { mr: 8 } },
|
|
30
|
-
title: /* @__PURE__ */
|
|
30
|
+
title: /* @__PURE__ */ _(A, { bold: !0, variant: "Body", children: o })
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ _(I, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ g(O, { alignItems: "flex-start", spacing: 2, children: [
|
|
34
|
+
/* @__PURE__ */ _(A, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: e }),
|
|
35
|
+
/* @__PURE__ */ _(
|
|
36
36
|
p,
|
|
37
37
|
{
|
|
38
|
-
endIcon: /* @__PURE__ */
|
|
38
|
+
endIcon: /* @__PURE__ */ _(S, {}),
|
|
39
39
|
onClick: () => s(!0),
|
|
40
40
|
sx: {
|
|
41
41
|
pl: 0,
|
|
@@ -49,7 +49,7 @@ const at = ({ description: e, label: t, title: o }) => {
|
|
|
49
49
|
)
|
|
50
50
|
] }) })
|
|
51
51
|
] }),
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ _(
|
|
53
53
|
L,
|
|
54
54
|
{
|
|
55
55
|
onClose: () => s(!1),
|
|
@@ -62,8 +62,8 @@ const at = ({ description: e, label: t, title: o }) => {
|
|
|
62
62
|
var a = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(a || {}), U = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(U || {}), l = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(l || {});
|
|
63
63
|
class R {
|
|
64
64
|
fetchInstance;
|
|
65
|
-
constructor(t, o
|
|
66
|
-
this.fetchInstance = new D(t, o
|
|
65
|
+
constructor(t, o) {
|
|
66
|
+
this.fetchInstance = new D(t, o);
|
|
67
67
|
}
|
|
68
68
|
addGoal = async (t) => this.fetchInstance.post(i.GOALS, t).then((o) => o.goal);
|
|
69
69
|
addRetirementGoal = async (t) => this.fetchInstance.post(i.RETIREMENT_GOALS, t).then((o) => o.retirement_goal);
|
|
@@ -91,12 +91,12 @@ function it(e, t) {
|
|
|
91
91
|
style: "percent",
|
|
92
92
|
minimumFractionDigits: 0,
|
|
93
93
|
maximumFractionDigits: 0
|
|
94
|
-
}, E = t.is_complete ? t.completed_at : t.projected_to_complete_at,
|
|
94
|
+
}, E = t.is_complete ? t.completed_at : t.projected_to_complete_at, d = E ? C(E) : /* @__PURE__ */ new Date(), G = m(
|
|
95
95
|
e.goal_percentage,
|
|
96
96
|
K(r, h)
|
|
97
97
|
), f = m(
|
|
98
98
|
t.is_complete ? e.completed_label : e.goal_projection,
|
|
99
|
-
F(
|
|
99
|
+
F(d, B.MONTH_SHORT_YEAR)
|
|
100
100
|
);
|
|
101
101
|
return {
|
|
102
102
|
backgroundColor: n,
|
|
@@ -183,7 +183,7 @@ class lt {
|
|
|
183
183
|
monthlyCashFlowProfile = void 0;
|
|
184
184
|
goalsLoaded = !1;
|
|
185
185
|
constructor(t) {
|
|
186
|
-
this.globalStore = t, this.api = new R(t.endpoint, t.sessionToken
|
|
186
|
+
this.globalStore = t, this.api = new R(t.endpoint, t.sessionToken), y(this);
|
|
187
187
|
}
|
|
188
188
|
get orderedGoals() {
|
|
189
189
|
return this.goals.slice().sort((t, o) => t.position - o.position);
|
|
@@ -261,12 +261,12 @@ class lt {
|
|
|
261
261
|
try {
|
|
262
262
|
const o = await this.api.getGoals(), r = await this.api.getRetirementGoals(), n = await this.api.getRetirementGoalAccounts(), s = await this.api.getMonthlyCashFlowProfile(), h = this.globalStore.userStore.user.birthday, E = [
|
|
263
263
|
...o,
|
|
264
|
-
...r.map((
|
|
265
|
-
...
|
|
266
|
-
amount:
|
|
264
|
+
...r.map((d) => ({
|
|
265
|
+
...d,
|
|
266
|
+
amount: d.target_amount,
|
|
267
267
|
name: t.retirement,
|
|
268
268
|
track_type: a.RETIREMENT_TRACK,
|
|
269
|
-
projected_to_complete_at:
|
|
269
|
+
projected_to_complete_at: d.retirement_age && h ? $(d.retirement_age, h) : void 0
|
|
270
270
|
}))
|
|
271
271
|
];
|
|
272
272
|
c(() => {
|
|
@@ -13,7 +13,7 @@ import E from "@mui/material/Stack";
|
|
|
13
13
|
import { H3 as y, P as H, Icon as X, Text as T, H2 as _t, InstitutionLogo as bt } from "@mxenabled/mxui";
|
|
14
14
|
import { ExpandMore as ot, ChevronRight as wt } from "@mxenabled/mx-icons";
|
|
15
15
|
import xt from "@mui/material/Breadcrumbs";
|
|
16
|
-
import { u as V,
|
|
16
|
+
import { u as V, y as tt, c as ft, o as St, a as It, m as Tt } from "./hooks-DkUqN6JE.mjs";
|
|
17
17
|
import { useTheme as Z } from "@mui/material/styles";
|
|
18
18
|
import { b as s } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import { E as Et, a as Ct, P as At } from "./Help-DhcC-C05.mjs";
|