@mx-cartographer/experiences 7.0.44-alpha.mega1 → 7.0.44
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 +2 -2
- package/dist/{Account-CYkoSG86.mjs → Account-DNtjr75t.mjs} +1 -1
- package/dist/{AccountDetailsContent-BuXTLptM.mjs → AccountDetailsContent-eODMVIVq.mjs} +16 -16
- package/dist/{AccountDetailsHeader-BWl2e21n.mjs → AccountDetailsHeader-C0qgTju7.mjs} +38 -37
- package/dist/{AccountFields-x4A7Loe5.mjs → AccountFields-DDHk35Ou.mjs} +2 -2
- package/dist/AccountListItem-BxmUd4j3.mjs +90 -0
- package/dist/{AccountStore-WQAkYgx1.mjs → AccountStore-CpjCeykS.mjs} +2 -2
- package/dist/{Accounts-CeeJag5-.mjs → Accounts-nXcS0QUR.mjs} +1 -1
- package/dist/{BudgetUtil-n3gEKIub.mjs → BudgetUtil-2EncZLBQ.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-993LpETZ.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +1 -1
- package/dist/ConnectDrawer-YIWwEzuN.mjs +521 -0
- package/dist/{ConnectionsDrawer-CcBzf4l5.mjs → ConnectionsDrawer-Bf2DNDCF.mjs} +2 -2
- package/dist/{CurrencyInput-pHmLzc_c.mjs → CurrencyInput-CRtdzs3o.mjs} +1 -1
- package/dist/{DebtsStore-EZh5aBxe.mjs → DebtsStore-Dy3YG1fX.mjs} +1 -1
- package/dist/{ExportCsvAction-BKxnEFRu.mjs → ExportCsvAction-CebIvl-V.mjs} +3 -3
- package/dist/{GoalStore-B9lVADw5.mjs → GoalStore-voP4QA5C.mjs} +3 -3
- package/dist/{Help-PP2i0N9Y.mjs → Help-CzBAsKA2.mjs} +1 -1
- package/dist/{LineChart-CHTf3RcN.mjs → LineChart-B2Y7zwMu.mjs} +1 -1
- package/dist/{ListItemAction-DXyHyJn0.mjs → ListItemAction-DSrYDGAP.mjs} +1 -1
- package/dist/{ManageIncome-D1XoZlqY.mjs → ManageIncome-kMsgLN3T.mjs} +38 -38
- package/dist/{MicroWidgetContainer-Dpu8VDSP.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BhHaL8eb.mjs → MiniWidgetContainer-DSG6mwaW.mjs} +1 -1
- package/dist/{NetWorthStore-N5esR-KJ.mjs → NetWorthStore-C5RMjsMS.mjs} +2 -2
- package/dist/{NotificationSettings-CWZR6ki-.mjs → NotificationSettings-BCtanw2c.mjs} +4 -4
- package/dist/{OriginalBalanceAction-DSA8sk5b.mjs → OriginalBalanceAction-CEuIYsc_.mjs} +3 -3
- package/dist/{RecurringSettings-DA6qT8ai.mjs → RecurringSettings-CETLT79T.mjs} +8 -8
- package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +1 -1
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-Dc34Tzx8.mjs} +1 -1
- package/dist/{TransactionDetails-DO_YihKP.mjs → TransactionDetails-B-rdHE3_.mjs} +5 -5
- package/dist/{TransactionStore-B2Vq95Fg.mjs → TransactionStore-CfQBEIsK.mjs} +2 -2
- package/dist/{TrendsStore-DWVFqEC-.mjs → TrendsStore-BKBnNQba.mjs} +1 -1
- package/dist/{User-Bfnq7dd4.mjs → User-8itAR7lR.mjs} +22 -21
- package/dist/{WidgetContainer-DfyV39Ru.mjs → WidgetContainer-p7NIdiNJ.mjs} +2 -2
- package/dist/accounts/index.es.js +123 -128
- package/dist/analytics/index.es.js +11 -11
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +26 -26
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +3 -0
- package/dist/common/index.es.js +92 -90
- package/dist/common/utils/AccountDisplayName.d.ts +6 -0
- package/dist/common/utils/AccountFilter.d.ts +2 -6
- package/dist/dashboard/index.es.js +14 -14
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-BgWQsGWy.mjs → exportTransactionsToCSV-CfylirZA.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +529 -524
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BAAimqdq.mjs → hooks-CE2TKk4a.mjs} +12 -12
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +10 -10
- package/dist/recurringtransactions/index.es.js +11 -11
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +13 -13
- package/dist/trends/index.es.js +11 -11
- package/dist/useAccountDisplayName-DC1Lqjag.mjs +15 -0
- package/dist/{useInsightsEnabled-BwLaOKWW.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
- package/package.json +1 -1
- package/dist/AccountListItem-D9mpJkCP.mjs +0 -89
- package/dist/ConnectDrawer-CNdzwKdX.mjs +0 -528
- package/dist/{ToggleListItem-r0Kx56wF.mjs → Notification-aGCHxikw.mjs} +1 -1
- package/dist/{RecurringTransactions-DTUx9VN1.mjs → RepeatingTransaction-BW4J-jeJ.mjs} +1 -1
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 {
|
|
16
|
-
import { A as at } from "./AccountListItem-
|
|
17
|
-
import { A as k } from "./WidgetContainer-
|
|
18
|
-
import { a as V, f as B, D as
|
|
14
|
+
import { u as D } from "./AccountDetailsHeader-C0qgTju7.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-BxmUd4j3.mjs";
|
|
17
|
+
import { A as k } from "./WidgetContainer-p7NIdiNJ.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
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 { l as m, N as Q,
|
|
25
|
+
import { l as m, N as Q, k as Z, F as P } from "./ConnectDrawer-YIWwEzuN.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,15 +37,15 @@ 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-CRtdzs3o.mjs";
|
|
41
|
+
import { b as Dt } from "./AccountFields-DDHk35Ou.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-
|
|
48
|
-
import { T as
|
|
47
|
+
import { T as vt, a as Lt } from "./TransactionDetails-B-rdHE3_.mjs";
|
|
48
|
+
import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
|
|
49
49
|
const U = ({
|
|
50
50
|
children: e,
|
|
51
51
|
isLast: o = !1,
|
|
@@ -314,11 +314,11 @@ const U = ({
|
|
|
314
314
|
};
|
|
315
315
|
default: {
|
|
316
316
|
const c = () => {
|
|
317
|
-
const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0, u = i && B(i,
|
|
317
|
+
const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0, u = i && B(i, K.TIME_STAMP_HOUR_MINUTE);
|
|
318
318
|
if (u)
|
|
319
319
|
return dt(i) ? h(o.last_updated_at, o.today, u) : ut(i) ? h(o.last_updated_at, o.yesterday, u) : h(
|
|
320
320
|
o.last_updated_at,
|
|
321
|
-
B(i,
|
|
321
|
+
B(i, K.MONTH_DAY_YEAR),
|
|
322
322
|
u
|
|
323
323
|
);
|
|
324
324
|
};
|
|
@@ -609,7 +609,7 @@ const U = ({
|
|
|
609
609
|
}
|
|
610
610
|
)
|
|
611
611
|
] });
|
|
612
|
-
}, Bt = T(Gt),
|
|
612
|
+
}, Bt = T(Gt), Kt = () => {
|
|
613
613
|
const [e, o] = _.useState(""), { onEvent: n } = O(), { selectedAccount: c } = D(), { accounts: i } = E(), { setFilter: u, sortedTransactions: l } = X(), s = _.useMemo(
|
|
614
614
|
() => l.find((r) => r.guid === e),
|
|
615
615
|
[e, l]
|
|
@@ -632,7 +632,7 @@ const U = ({
|
|
|
632
632
|
}
|
|
633
633
|
)
|
|
634
634
|
] });
|
|
635
|
-
},
|
|
635
|
+
}, jt = T(Kt), Yt = () => {
|
|
636
636
|
const [e, o] = _.useState(0), { accounts: n } = E();
|
|
637
637
|
return /* @__PURE__ */ d(g, { children: [
|
|
638
638
|
/* @__PURE__ */ t(Bt, { setTabValue: o }),
|
|
@@ -665,8 +665,8 @@ const U = ({
|
|
|
665
665
|
]
|
|
666
666
|
}
|
|
667
667
|
),
|
|
668
|
-
/* @__PURE__ */ t(
|
|
669
|
-
/* @__PURE__ */ t(
|
|
668
|
+
/* @__PURE__ */ t(j, { index: 0, name: "transaction-details", value: e, children: /* @__PURE__ */ t(jt, {}) }),
|
|
669
|
+
/* @__PURE__ */ t(j, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(Ht, {}) })
|
|
670
670
|
] });
|
|
671
671
|
}, He = T(Yt);
|
|
672
672
|
export {
|
|
@@ -2,28 +2,29 @@ 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
|
|
5
|
+
import { g as v } from "./AccountFields-DDHk35Ou.mjs";
|
|
6
6
|
import h from "react";
|
|
7
|
-
import { G as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useTheme as
|
|
12
|
-
import { g as
|
|
13
|
-
import { L as
|
|
14
|
-
import { I as f, P as g, S as C } from "./Account-
|
|
15
|
-
import { A } from "./ConnectDrawer-
|
|
16
|
-
import { L as
|
|
17
|
-
import { f as
|
|
18
|
-
import {
|
|
7
|
+
import { G as E, d as y, m as S, u as _, f as G } from "./hooks-CE2TKk4a.mjs";
|
|
8
|
+
import O from "@mui/material/Card";
|
|
9
|
+
import P from "@mui/material/CardContent";
|
|
10
|
+
import M from "@mui/material/CardHeader";
|
|
11
|
+
import { useTheme as B } from "@mui/material/styles";
|
|
12
|
+
import { g as H, a as U, b as j } from "./SpendingData-D5vsfYKo.mjs";
|
|
13
|
+
import { L as z } from "./LineChart-B2Y7zwMu.mjs";
|
|
14
|
+
import { I as f, P as g, S as C } from "./Account-DNtjr75t.mjs";
|
|
15
|
+
import { A } from "./ConnectDrawer-YIWwEzuN.mjs";
|
|
16
|
+
import { L as Y } from "./Loader-DUaFpDGv.mjs";
|
|
17
|
+
import { f as R, D as $ } from "./Dialog-CWW597AF.mjs";
|
|
18
|
+
import { u as k } from "./useAccountDisplayName-DC1Lqjag.mjs";
|
|
19
|
+
import { f as F } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
19
20
|
const b = () => {
|
|
20
|
-
if (!h.useContext(
|
|
21
|
+
if (!h.useContext(E))
|
|
21
22
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
22
|
-
return
|
|
23
|
-
},
|
|
24
|
-
const t = f.includes(n) ?
|
|
23
|
+
return y().uiStore;
|
|
24
|
+
}, V = (o, n) => {
|
|
25
|
+
const t = f.includes(n) ? H(o) : [], a = g.includes(n) ? U(o) : [], r = C.includes(n) ? j(o) : [];
|
|
25
26
|
return [t, a, r].filter((s) => s.length > 0);
|
|
26
|
-
},
|
|
27
|
+
}, W = (o, n, t) => {
|
|
27
28
|
const [a, r] = o, s = a, c = r ?? a, i = [];
|
|
28
29
|
if (s && c && f.includes(n)) {
|
|
29
30
|
const l = s[s.length - 1].y;
|
|
@@ -37,10 +38,10 @@ const b = () => {
|
|
|
37
38
|
i.push({ label: t.spending_label, amount: l });
|
|
38
39
|
}
|
|
39
40
|
return i;
|
|
40
|
-
},
|
|
41
|
-
const o =
|
|
41
|
+
}, q = () => {
|
|
42
|
+
const o = B(), { selectedAccount: n } = b(), { monthlyCategoryTotals: t } = S(), { trends: a } = _(), r = [o.palette.chart?.chart1, o.palette.chart?.chart2], s = V(t, n.account_type), c = W(s, n.account_type, a), i = [A.LOAN, A.MORTGAGE].includes(n.account_type);
|
|
42
43
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
43
|
-
|
|
44
|
+
z,
|
|
44
45
|
{
|
|
45
46
|
colors: r,
|
|
46
47
|
datasets: s,
|
|
@@ -52,14 +53,14 @@ const b = () => {
|
|
|
52
53
|
valueFormatterString: "0,0"
|
|
53
54
|
}
|
|
54
55
|
) });
|
|
55
|
-
},
|
|
56
|
-
const { loadMonthlyCategoryTotals: n } =
|
|
56
|
+
}, J = p(q), K = ({ sx: o }) => {
|
|
57
|
+
const { loadMonthlyCategoryTotals: n } = S(), { isInitialized: t } = G(), { selectedAccount: a } = b(), [r, s] = h.useState(!1);
|
|
57
58
|
return h.useEffect(() => {
|
|
58
59
|
t && n([a]).finally(() => {
|
|
59
60
|
s(!0);
|
|
60
61
|
});
|
|
61
|
-
}, [t, a]), !t || !r ? /* @__PURE__ */ e(
|
|
62
|
-
|
|
62
|
+
}, [t, a]), !t || !r ? /* @__PURE__ */ e(Y, {}) : /* @__PURE__ */ u(
|
|
63
|
+
O,
|
|
63
64
|
{
|
|
64
65
|
sx: {
|
|
65
66
|
"& .MuiCardContent-root:last-child": {
|
|
@@ -69,24 +70,24 @@ const b = () => {
|
|
|
69
70
|
},
|
|
70
71
|
children: [
|
|
71
72
|
/* @__PURE__ */ e(
|
|
72
|
-
|
|
73
|
+
M,
|
|
73
74
|
{
|
|
74
75
|
sx: { pb: 0 },
|
|
75
|
-
title: /* @__PURE__ */ e(w, { sx: { pb: 4 }, children:
|
|
76
|
+
title: /* @__PURE__ */ e(w, { sx: { pb: 4 }, children: R(/* @__PURE__ */ new Date(), $.MONTH_LONG) })
|
|
76
77
|
}
|
|
77
78
|
),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
+
/* @__PURE__ */ e(P, { sx: { p: 0 }, children: /* @__PURE__ */ e(J, {}) })
|
|
79
80
|
]
|
|
80
81
|
}
|
|
81
82
|
);
|
|
82
|
-
},
|
|
83
|
-
const { institutions: n } =
|
|
84
|
-
(
|
|
83
|
+
}, Q = p(K), X = ({ customDetailsChart: o }) => {
|
|
84
|
+
const { institutions: n } = y(), { selectedAccount: t } = b(), { accounts: a } = _(), { firstSubtitle: r, firstValue: s, hasAvailableBalance: c, secondSubtitle: i, secondValue: l } = v(t, a), T = n.find(
|
|
85
|
+
(N) => N.guid === t?.institution_guid
|
|
85
86
|
), D = [
|
|
86
87
|
...f,
|
|
87
88
|
...g,
|
|
88
89
|
...C
|
|
89
|
-
].includes(t.account_type);
|
|
90
|
+
].includes(t.account_type), x = k(t);
|
|
90
91
|
return /* @__PURE__ */ u(d, { bgcolor: "background.default", p: 24, children: [
|
|
91
92
|
/* @__PURE__ */ u(d, { gap: 12, children: [
|
|
92
93
|
/* @__PURE__ */ e(
|
|
@@ -100,20 +101,20 @@ const b = () => {
|
|
|
100
101
|
/* @__PURE__ */ e(m, { variant: "Small", children: T?.name })
|
|
101
102
|
] }),
|
|
102
103
|
/* @__PURE__ */ u(d, { gap: 8, mb: 24, mt: 4, children: [
|
|
103
|
-
/* @__PURE__ */ e(L, { children:
|
|
104
|
+
/* @__PURE__ */ e(L, { children: x }),
|
|
104
105
|
/* @__PURE__ */ u(d, { direction: "row", justifyContent: "space-between", children: [
|
|
105
106
|
/* @__PURE__ */ e(m, { bold: c, variant: "Body", children: r }),
|
|
106
|
-
/* @__PURE__ */ e(m, { bold: !0, variant: "Body", children:
|
|
107
|
+
/* @__PURE__ */ e(m, { bold: !0, variant: "Body", children: F(s, "0,0.00") })
|
|
107
108
|
] }),
|
|
108
109
|
/* @__PURE__ */ u(d, { direction: "row", justifyContent: "space-between", children: [
|
|
109
110
|
/* @__PURE__ */ e(m, { variant: "Small", children: i }),
|
|
110
111
|
/* @__PURE__ */ e(m, { variant: "Small", children: l })
|
|
111
112
|
] })
|
|
112
113
|
] }),
|
|
113
|
-
D && /* @__PURE__ */ e(d, { children: o || /* @__PURE__ */ e(
|
|
114
|
+
D && /* @__PURE__ */ e(d, { children: o || /* @__PURE__ */ e(Q, {}) })
|
|
114
115
|
] });
|
|
115
|
-
},
|
|
116
|
+
}, bt = p(X);
|
|
116
117
|
export {
|
|
117
|
-
|
|
118
|
+
bt as A,
|
|
118
119
|
b as u
|
|
119
120
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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 D, a as A, b as g, c as O } from "./Accounts-
|
|
3
|
+
import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-YIWwEzuN.mjs";
|
|
4
|
+
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-nXcS0QUR.mjs";
|
|
5
5
|
import { f as _, i as b, a as N, b as S } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
6
6
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
7
7
|
import { f as o, D as f } from "./Dialog-CWW597AF.mjs";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { observer as b } from "mobx-react-lite";
|
|
3
|
+
import I from "@mui/material/Badge";
|
|
4
|
+
import m from "@mui/material/Box";
|
|
5
|
+
import S from "@mui/material/ListItem";
|
|
6
|
+
import v from "@mui/material/ListItemAvatar";
|
|
7
|
+
import _ from "@mui/material/ListItemButton";
|
|
8
|
+
import C from "@mui/material/ListItemText";
|
|
9
|
+
import B from "@mui/material/styles/useTheme";
|
|
10
|
+
import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
|
|
11
|
+
import { Error as A } from "@mxenabled/mx-icons";
|
|
12
|
+
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
+
import { g as T } from "./AccountFields-DDHk35Ou.mjs";
|
|
14
|
+
import { u as X } from "./useAccountDisplayName-DC1Lqjag.mjs";
|
|
15
|
+
import { d } from "./ConnectDrawer-YIWwEzuN.mjs";
|
|
16
|
+
import { u as $ } from "./hooks-CE2TKk4a.mjs";
|
|
17
|
+
import { f as k } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
18
|
+
const w = {
|
|
19
|
+
gridRow: 1,
|
|
20
|
+
gridColumn: 1,
|
|
21
|
+
zIndex: 2
|
|
22
|
+
}, E = ({ size: t = 20 }) => /* @__PURE__ */ e(j, { size: t, children: /* @__PURE__ */ e(A, { color: "error", filled: !0, sx: { fontSize: t, ...w } }) }), M = ({
|
|
23
|
+
account: t,
|
|
24
|
+
onRowClick: s,
|
|
25
|
+
listItemProps: c,
|
|
26
|
+
shouldShowConnectionStatus: p = !1
|
|
27
|
+
}) => {
|
|
28
|
+
const u = B(), f = X(t), { accounts: i } = $(), { firstSubtitle: h, firstValue: g, secondSubtitle: x, secondValue: y } = T(
|
|
29
|
+
t,
|
|
30
|
+
i
|
|
31
|
+
);
|
|
32
|
+
let n;
|
|
33
|
+
(t.connectionStatus === d.Error || t.connectionStatus === d.RequiresMfa) && (n = /* @__PURE__ */ e(E, { size: 16 }));
|
|
34
|
+
const a = /* @__PURE__ */ r(l, { children: [
|
|
35
|
+
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
36
|
+
I,
|
|
37
|
+
{
|
|
38
|
+
badgeContent: p ? n : void 0,
|
|
39
|
+
sx: {
|
|
40
|
+
"& .MuiBadge-badge": {
|
|
41
|
+
right: -1
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ e(L, { alt: "MX", institutionGuid: t.institution_guid || "" })
|
|
45
|
+
}
|
|
46
|
+
) }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
C,
|
|
49
|
+
{
|
|
50
|
+
disableTypography: !0,
|
|
51
|
+
primary: /* @__PURE__ */ r(
|
|
52
|
+
o,
|
|
53
|
+
{
|
|
54
|
+
bold: !0,
|
|
55
|
+
color: t.is_hidden ? u.palette.text.secondary : void 0,
|
|
56
|
+
sx: { whiteSpace: "normal" },
|
|
57
|
+
variant: "Body",
|
|
58
|
+
children: [
|
|
59
|
+
`${f} ${t.account_number ? `*${t.account_number}` : ""}`,
|
|
60
|
+
" ",
|
|
61
|
+
t.is_hidden && !t.is_closed && i.is_hidden,
|
|
62
|
+
t.is_closed && i.is_closed
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
secondary: /* @__PURE__ */ r(l, { children: [
|
|
67
|
+
/* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
68
|
+
/* @__PURE__ */ e(o, { variant: "XSmall", children: h }),
|
|
69
|
+
/* @__PURE__ */ e(o, { bold: !0, variant: "Small", children: k(g, "0,0.00") })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
72
|
+
/* @__PURE__ */ e(o, { variant: "XSmall", children: x }),
|
|
73
|
+
/* @__PURE__ */ e(o, { ml: "auto", variant: "XSmall", children: y })
|
|
74
|
+
] })
|
|
75
|
+
] })
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] });
|
|
79
|
+
return /* @__PURE__ */ e(
|
|
80
|
+
S,
|
|
81
|
+
{
|
|
82
|
+
sx: { backgroundColor: "background.paper", color: t.is_closed ? "grey.700" : "" },
|
|
83
|
+
...c,
|
|
84
|
+
children: s ? /* @__PURE__ */ e(_, { alignItems: "flex-start", onClick: s, sx: { px: 24 }, children: a }) : a
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}, Z = b(M);
|
|
88
|
+
export {
|
|
89
|
+
Z as A
|
|
90
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeAutoObservable as _, runInAction as a } from "mobx";
|
|
2
|
-
import { i as g } from "./User-
|
|
2
|
+
import { i as g } from "./User-8itAR7lR.mjs";
|
|
3
3
|
import { F as f, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
4
|
-
import { A as n, d as h, E as p,
|
|
4
|
+
import { A as n, d as h, E as p, h as y, i as I } from "./ConnectDrawer-YIWwEzuN.mjs";
|
|
5
5
|
class l {
|
|
6
6
|
fetchInstance;
|
|
7
7
|
constructor(t, e, s) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as _ } from "./ConnectDrawer-
|
|
1
|
+
import { A as _ } from "./ConnectDrawer-YIWwEzuN.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,
|
|
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";
|