@mx-cartographer/experiences 7.12.16 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/{AccountDetailsHeader-DkBNsLsI.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
- package/dist/{AccountFields-DeZSQOuM.mjs → AccountFields-CxqONzjY.mjs} +7 -7
- package/dist/AccountListItem-LcJVJysf.mjs +90 -0
- package/dist/{AccountStore-Brc0MNSF.mjs → AccountStore-BNlTuxWN.mjs} +12 -6
- package/dist/Accounts-o7ohkngR.mjs +27 -0
- package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
- package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
- package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
- package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
- package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
- package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
- package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
- package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
- package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
- package/dist/{NetWorthStore-DP78lgZ0.mjs → NetWorthStore-BqZ44-4M.mjs} +1 -1
- package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
- package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
- package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
- package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
- package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
- package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
- package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
- package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
- package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
- package/dist/accounts/index.es.js +107 -107
- package/dist/accounts/utils/Accounts.d.ts +1 -1
- package/dist/analytics/index.es.js +18 -18
- package/dist/budgets/index.es.js +182 -182
- package/dist/cashflow/index.es.js +223 -223
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +54 -64
- package/dist/dashboard/index.es.js +9 -9
- package/dist/debts/index.es.js +469 -469
- package/dist/finstrong/index.es.js +68 -68
- package/dist/goals/index.es.js +437 -437
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +159 -159
- package/dist/investments/index.es.js +292 -292
- package/dist/merchants/index.es.js +12 -12
- package/dist/networth/index.es.js +175 -168
- package/dist/notifications/index.es.js +13 -13
- package/dist/recurringtransactions/index.es.js +69 -69
- package/dist/settings/index.es.js +187 -187
- package/dist/spending/index.es.js +58 -58
- package/dist/transactions/index.es.js +70 -70
- package/dist/trends/index.es.js +15 -15
- package/package.json +1 -1
- package/dist/AccountListItem-BIVhda6q.mjs +0 -90
- package/dist/Accounts-M-LTzStv.mjs +0 -27
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [7.13.0] - 03-24-2026
|
|
2
|
+
|
|
3
|
+
- **UPDATED** - All text variants to replace deprecated variants
|
|
4
|
+
|
|
5
|
+
## [7.12.17] - 03-24-2026
|
|
6
|
+
|
|
7
|
+
- **UPDATED** - Respect exclude held accounts in client widget profile
|
|
8
|
+
|
|
1
9
|
## [7.12.16] - 03-24-2026
|
|
2
10
|
|
|
3
11
|
- **UPDATED** - MXUI -> 1.5.14 | button text error color when hovered/pressed
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { observer as f } from "mobx-react-lite";
|
|
3
|
-
import
|
|
3
|
+
import s from "@mui/material/Stack";
|
|
4
4
|
import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
|
|
5
5
|
import p from "react";
|
|
6
6
|
import { G as N, d as _, l as P, f as G, u as O } from "./hooks-BxkfR-Ff.mjs";
|
|
7
|
-
import { g as R } from "./AccountFields-
|
|
7
|
+
import { g as R } from "./AccountFields-CxqONzjY.mjs";
|
|
8
8
|
import { A as r } from "./Account-BiB1F8lL.mjs";
|
|
9
9
|
import w from "@mui/material/Card";
|
|
10
10
|
import v from "@mui/material/CardContent";
|
|
@@ -17,34 +17,34 @@ const C = () => {
|
|
|
17
17
|
if (!p.useContext(N))
|
|
18
18
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
19
19
|
return _().uiStore;
|
|
20
|
-
},
|
|
20
|
+
}, k = (o, e) => {
|
|
21
21
|
const c = [r.LOAN, r.MORTGAGE, r.PROPERTY].includes(
|
|
22
|
-
|
|
22
|
+
o
|
|
23
23
|
), n = [
|
|
24
24
|
r.CREDIT_CARD,
|
|
25
25
|
r.LINE_OF_CREDIT,
|
|
26
26
|
r.PREPAID,
|
|
27
27
|
r.CHECKING_LINE_OF_CREDIT
|
|
28
|
-
].includes(
|
|
28
|
+
].includes(o);
|
|
29
29
|
return c ? { title: e.label_payments, description: e.chart_title_payments } : n ? { title: e.label_payments_spend, description: e.chart_title_payments_spend } : { title: e.label_income_spend, description: e.chart_title_income_spend };
|
|
30
|
-
},
|
|
31
|
-
sx:
|
|
30
|
+
}, B = ({
|
|
31
|
+
sx: o,
|
|
32
32
|
ChartComponent: e,
|
|
33
33
|
header: c
|
|
34
34
|
}) => {
|
|
35
|
-
const { loadMonthlyCategoryTotals: n } = P(), { isInitialized:
|
|
35
|
+
const { loadMonthlyCategoryTotals: n } = P(), { isInitialized: i } = G(), { selectedAccount: d } = C(), [u, m] = p.useState(!1);
|
|
36
36
|
return p.useEffect(() => {
|
|
37
|
-
|
|
37
|
+
i && n([d]).finally(() => {
|
|
38
38
|
m(!0);
|
|
39
39
|
});
|
|
40
|
-
}, [
|
|
40
|
+
}, [i, d]), !i || !u ? /* @__PURE__ */ t(H, {}) : /* @__PURE__ */ a(
|
|
41
41
|
w,
|
|
42
42
|
{
|
|
43
43
|
sx: {
|
|
44
44
|
"& .MuiCardContent-root:last-child": {
|
|
45
45
|
pb: 0
|
|
46
46
|
},
|
|
47
|
-
...
|
|
47
|
+
...o
|
|
48
48
|
},
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ t(L, { sx: { pb: 0 }, title: /* @__PURE__ */ t(T, { sx: { pb: 4 }, children: c }) }),
|
|
@@ -52,44 +52,44 @@ const C = () => {
|
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
|
-
}, F = f(
|
|
56
|
-
customDetailsChart:
|
|
55
|
+
}, F = f(B), V = ({
|
|
56
|
+
customDetailsChart: o,
|
|
57
57
|
ChartComponent: e
|
|
58
58
|
}) => {
|
|
59
|
-
const { institutions: c } = _(), { selectedAccount: n } = C(), { accounts:
|
|
59
|
+
const { institutions: c } = _(), { selectedAccount: n } = C(), { accounts: i } = O(), { firstSubtitle: d, firstValue: u, hasAvailableBalance: m, secondSubtitle: h, secondValue: b } = R(n, i), A = c.find(
|
|
60
60
|
(I) => I.guid === n?.institution_guid
|
|
61
|
-
),
|
|
61
|
+
), y = [
|
|
62
62
|
...M,
|
|
63
63
|
...U,
|
|
64
64
|
...Y
|
|
65
|
-
].includes(n.account_type), g = j(n), { title:
|
|
66
|
-
return /* @__PURE__ */ s
|
|
67
|
-
/* @__PURE__ */ s
|
|
65
|
+
].includes(n.account_type), g = j(n), { title: E, description: S } = k(n.account_type, i);
|
|
66
|
+
return /* @__PURE__ */ a(s, { bgcolor: "background.default", p: 24, children: [
|
|
67
|
+
/* @__PURE__ */ a(s, { gap: 12, children: [
|
|
68
68
|
/* @__PURE__ */ t(
|
|
69
69
|
x,
|
|
70
70
|
{
|
|
71
|
-
alt:
|
|
71
|
+
alt: i.institution_logo_alt,
|
|
72
72
|
institutionGuid: n.institution_guid || "",
|
|
73
73
|
size: 64
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
/* @__PURE__ */ t(l, { variant: "
|
|
76
|
+
/* @__PURE__ */ t(l, { variant: "body2", children: A?.name })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ s
|
|
78
|
+
/* @__PURE__ */ a(s, { gap: 8, mb: 24, mt: 4, children: [
|
|
79
79
|
/* @__PURE__ */ t(D, { children: g }),
|
|
80
|
-
/* @__PURE__ */ s
|
|
81
|
-
/* @__PURE__ */ t(l, { bold: m, variant: "
|
|
82
|
-
/* @__PURE__ */ t(l, { bold: !0, variant: "
|
|
80
|
+
/* @__PURE__ */ a(s, { direction: "row", justifyContent: "space-between", children: [
|
|
81
|
+
/* @__PURE__ */ t(l, { bold: m, variant: "body1", children: d }),
|
|
82
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: "body1", children: z(u, "0,0.00") })
|
|
83
83
|
] }),
|
|
84
|
-
/* @__PURE__ */ s
|
|
85
|
-
/* @__PURE__ */ t(l, { variant: "
|
|
86
|
-
/* @__PURE__ */ t(l, { variant: "
|
|
84
|
+
/* @__PURE__ */ a(s, { direction: "row", justifyContent: "space-between", children: [
|
|
85
|
+
/* @__PURE__ */ t(l, { variant: "body2", children: h }),
|
|
86
|
+
/* @__PURE__ */ t(l, { variant: "body2", children: b })
|
|
87
87
|
] })
|
|
88
88
|
] }),
|
|
89
|
-
|
|
89
|
+
y && /* @__PURE__ */ t(s, { "aria-label": S, role: "img", children: o || /* @__PURE__ */ t(F, { ChartComponent: e, header: E }) })
|
|
90
90
|
] });
|
|
91
|
-
},
|
|
91
|
+
}, at = f(V);
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
at as A,
|
|
94
94
|
C as u
|
|
95
95
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as p, Text as y } from "@mxenabled/mxui";
|
|
3
3
|
import { A as d, a as v, P as h, b as F } from "./Account-BiB1F8lL.mjs";
|
|
4
|
-
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-
|
|
4
|
+
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-o7ohkngR.mjs";
|
|
5
5
|
import { F as m } from "./Accounts-CseLC3lL.mjs";
|
|
6
|
-
import { f as _, i as b, a as N, b as
|
|
6
|
+
import { f as _, i as b, a as N, b as C } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
7
7
|
import { b as i } from "./Localization-CPkpIwIx.mjs";
|
|
8
8
|
import { f as o, D as f } from "./DateFormats-BMpMrZpW.mjs";
|
|
9
9
|
const x = (l, e) => {
|
|
@@ -88,7 +88,7 @@ const x = (l, e) => {
|
|
|
88
88
|
type: m.Date,
|
|
89
89
|
valueFormatter: (a) => i(
|
|
90
90
|
e.day_of_every_month,
|
|
91
|
-
|
|
91
|
+
C(a <= 31 ? a : new Date(a).getDate())
|
|
92
92
|
)
|
|
93
93
|
})), g(l) && r.push({
|
|
94
94
|
label: e.credit_limit,
|
|
@@ -104,7 +104,7 @@ const x = (l, e) => {
|
|
|
104
104
|
type: m.Currency,
|
|
105
105
|
valueFormatter: (a) => _(a, "0,0.00")
|
|
106
106
|
}), r;
|
|
107
|
-
},
|
|
107
|
+
}, S = (l, e) => {
|
|
108
108
|
let r = "", a = null, t = null, n = null, s = !1;
|
|
109
109
|
switch (l.account_type) {
|
|
110
110
|
case 1:
|
|
@@ -115,7 +115,7 @@ const x = (l, e) => {
|
|
|
115
115
|
default:
|
|
116
116
|
if (r = e.current_balance, a = l.balance, l.minimum_payment && l.payment_due_at) {
|
|
117
117
|
const c = typeof l.payment_due_at == "number" ? new Date(l.payment_due_at * 1e3) : l.payment_due_at;
|
|
118
|
-
t = /* @__PURE__ */ u(y, { component: "strong", variant: "
|
|
118
|
+
t = /* @__PURE__ */ u(y, { component: "strong", variant: "caption", children: i(
|
|
119
119
|
e.payment_due_on,
|
|
120
120
|
_(l.minimum_payment, "0,0.00"),
|
|
121
121
|
o(c, f.FULL_MONTH_DAY)
|
|
@@ -130,11 +130,11 @@ const x = (l, e) => {
|
|
|
130
130
|
hasAvailableBalance: s
|
|
131
131
|
};
|
|
132
132
|
}, B = (l, e) => l.reduce((a, t) => {
|
|
133
|
-
const s =
|
|
133
|
+
const s = S(t, e).firstValue || 0;
|
|
134
134
|
return a + s;
|
|
135
135
|
}, 0);
|
|
136
136
|
export {
|
|
137
137
|
x as a,
|
|
138
138
|
B as b,
|
|
139
|
-
|
|
139
|
+
S as g
|
|
140
140
|
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { observer as b } from "mobx-react-lite";
|
|
3
|
+
import I from "@mui/material/Badge";
|
|
4
|
+
import l from "@mui/material/Box";
|
|
5
|
+
import v from "@mui/material/ListItem";
|
|
6
|
+
import C from "@mui/material/ListItemAvatar";
|
|
7
|
+
import S from "@mui/material/ListItemButton";
|
|
8
|
+
import _ from "@mui/material/ListItemText";
|
|
9
|
+
import L from "@mui/material/styles/useTheme";
|
|
10
|
+
import { InstitutionLogo as A, Text as o } from "@mxenabled/mxui";
|
|
11
|
+
import { Error as B } from "@mxenabled/mx-icons";
|
|
12
|
+
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
+
import { g as T } from "./AccountFields-CxqONzjY.mjs";
|
|
14
|
+
import { u as $ } from "./useAccountDisplayName-DKwT1mWv.mjs";
|
|
15
|
+
import { u as k } from "./hooks-BxkfR-Ff.mjs";
|
|
16
|
+
import { C as d } from "./Account-BiB1F8lL.mjs";
|
|
17
|
+
import { f as w } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
18
|
+
const E = {
|
|
19
|
+
gridRow: 1,
|
|
20
|
+
gridColumn: 1,
|
|
21
|
+
zIndex: 2
|
|
22
|
+
}, M = ({ size: t = 20 }) => /* @__PURE__ */ e(j, { size: t, children: /* @__PURE__ */ e(B, { color: "error", filled: !0, sx: { fontSize: t, ...E } }) }), z = ({
|
|
23
|
+
account: t,
|
|
24
|
+
onRowClick: n,
|
|
25
|
+
listItemProps: c,
|
|
26
|
+
shouldShowConnectionStatus: p = !1
|
|
27
|
+
}) => {
|
|
28
|
+
const u = L(), f = $(t), { accounts: i } = k(), { firstSubtitle: h, firstValue: g, secondSubtitle: x, secondValue: y } = T(
|
|
29
|
+
t,
|
|
30
|
+
i
|
|
31
|
+
);
|
|
32
|
+
let s;
|
|
33
|
+
(t.connectionStatus === d.Error || t.connectionStatus === d.RequiresMfa) && (s = /* @__PURE__ */ e(M, { size: 16 }));
|
|
34
|
+
const a = /* @__PURE__ */ r(m, { children: [
|
|
35
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
36
|
+
I,
|
|
37
|
+
{
|
|
38
|
+
badgeContent: p ? s : void 0,
|
|
39
|
+
sx: {
|
|
40
|
+
"& .MuiBadge-badge": {
|
|
41
|
+
right: -1
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ e(A, { alt: "MX", institutionGuid: t.institution_guid || "" })
|
|
45
|
+
}
|
|
46
|
+
) }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
_,
|
|
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: "body1",
|
|
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(m, { children: [
|
|
67
|
+
/* @__PURE__ */ r(l, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
68
|
+
/* @__PURE__ */ e(o, { variant: "caption", children: h }),
|
|
69
|
+
/* @__PURE__ */ e(o, { bold: !0, variant: "body2", children: w(g, "0,0.00") })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ r(l, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
72
|
+
/* @__PURE__ */ e(o, { variant: "caption", children: x }),
|
|
73
|
+
/* @__PURE__ */ e(o, { ml: "auto", variant: "caption", children: y })
|
|
74
|
+
] })
|
|
75
|
+
] })
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] });
|
|
79
|
+
return /* @__PURE__ */ e(
|
|
80
|
+
v,
|
|
81
|
+
{
|
|
82
|
+
sx: { backgroundColor: "background.paper", color: t.is_closed ? "grey.700" : "" },
|
|
83
|
+
...c,
|
|
84
|
+
children: n ? /* @__PURE__ */ e(S, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: a }) : a
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}, Z = b(z);
|
|
88
|
+
export {
|
|
89
|
+
Z as A
|
|
90
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { makeAutoObservable as h, runInAction as a } from "mobx";
|
|
2
|
-
import { i as g } from "./BudgetUtil
|
|
2
|
+
import { i as g } from "./BudgetUtil-CLhRnCoX.mjs";
|
|
3
3
|
import { A as d } from "./AccountApi-ChQr5PAZ.mjs";
|
|
4
|
-
import { d as
|
|
4
|
+
import { d as p } from "./Accounts-o7ohkngR.mjs";
|
|
5
5
|
import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
|
|
6
|
-
class
|
|
6
|
+
class m {
|
|
7
7
|
isLoading = !1;
|
|
8
8
|
selectedAccount = {};
|
|
9
9
|
selectedMember = {};
|
|
@@ -28,7 +28,7 @@ class E {
|
|
|
28
28
|
membersLoading = !1;
|
|
29
29
|
uiStore;
|
|
30
30
|
constructor(t) {
|
|
31
|
-
this.globalStore = t, this.uiStore = new
|
|
31
|
+
this.globalStore = t, this.uiStore = new m(), this.api = new d(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
32
32
|
}
|
|
33
33
|
loadAccountData = async () => {
|
|
34
34
|
await Promise.all([this.loadAccounts(), this.loadMembers(), this.loadInstitutions()]);
|
|
@@ -37,8 +37,14 @@ class E {
|
|
|
37
37
|
return this.accountsLoaded && this.membersLoaded && this.institutionsLoaded;
|
|
38
38
|
}
|
|
39
39
|
get detailedAccounts() {
|
|
40
|
-
const t = this.globalStore.userStore.userFeatures, e = g(t, "MD_EXCLUDE_EXTERNAL_ACCOUNTS");
|
|
41
|
-
return
|
|
40
|
+
const t = this.globalStore.userStore.userFeatures, e = g(t, "MD_EXCLUDE_EXTERNAL_ACCOUNTS"), c = this.globalStore.appConfig.config.display_only_external_accounts_in_accounts && this.globalStore.appConfig.options.subtype === "accounts";
|
|
41
|
+
return p(
|
|
42
|
+
this.accounts,
|
|
43
|
+
this.institutions,
|
|
44
|
+
this.members,
|
|
45
|
+
e,
|
|
46
|
+
c
|
|
47
|
+
);
|
|
42
48
|
}
|
|
43
49
|
get accountsByTypeMap() {
|
|
44
50
|
return this.detailedAccounts.reduce((t, e) => {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { A as e, C as u, E as p, c as y, M as d } from "./Account-BiB1F8lL.mjs";
|
|
2
|
+
const m = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, f = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, R = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, N = (t, n, s, _, a) => t.filter((i) => !(i.member_is_managed_by_user && _)).filter((i) => !(!i.member_is_managed_by_user && a)).sort(C).map((i) => {
|
|
3
|
+
const r = n.find((c) => c.guid === i.institution_guid), o = s.find((c) => c.guid === i.member_guid);
|
|
4
|
+
return E(i, r, o);
|
|
5
|
+
}), E = (t, n, s) => {
|
|
6
|
+
let _ = u.Connected;
|
|
7
|
+
s && (p.includes(s.connection_status) ? _ = u.Error : y.includes(s.connection_status) ? _ = u.Processing : d.includes(s.connection_status) && (_ = u.RequiresMfa));
|
|
8
|
+
const a = [
|
|
9
|
+
t.user_name || t.feed_name || "",
|
|
10
|
+
t.account_number ? `*${t.account_number}` : ""
|
|
11
|
+
].join(" ").trim();
|
|
12
|
+
return {
|
|
13
|
+
...t,
|
|
14
|
+
connectionStatus: _,
|
|
15
|
+
displayName: a,
|
|
16
|
+
institution: n,
|
|
17
|
+
member: s
|
|
18
|
+
};
|
|
19
|
+
}, C = (t, n) => t.account_type > n.account_type ? 1 : t.account_type < n.account_type ? -1 : (t.name || "") > (n.name || "") ? 1 : (t.name || "") < (n.name || "") ? -1 : 0;
|
|
20
|
+
export {
|
|
21
|
+
m as a,
|
|
22
|
+
f as b,
|
|
23
|
+
A as c,
|
|
24
|
+
N as d,
|
|
25
|
+
I as i,
|
|
26
|
+
R as u
|
|
27
|
+
};
|