@mx-cartographer/experiences 11.6.4-alpha.san1 → 11.6.4-alpha.san2
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.
|
@@ -35,7 +35,7 @@ interface KeyIndicatorBorrow {
|
|
|
35
35
|
credit_score_missing_description: string;
|
|
36
36
|
credit_score_off_track_description: string;
|
|
37
37
|
credit_score_title: string;
|
|
38
|
-
|
|
38
|
+
have_manageable_debt_drawer: HaveManageableDebtDrawer;
|
|
39
39
|
manage_debit_fair_description: string;
|
|
40
40
|
manage_debit_good_description: string;
|
|
41
41
|
manage_debit_missing_description: string;
|
|
@@ -4,12 +4,12 @@ import _ from "@mui/material/Stack";
|
|
|
4
4
|
import { useTheme as z, alpha as ue } from "@mui/material/styles";
|
|
5
5
|
import { PieChart as Kt, BarPlot as jt } from "@mui/x-charts";
|
|
6
6
|
import { TrendingUp as rt, ArrowRightAlt as Vt, TrendingDown as Yt, AccountBalance as at, ChevronRight as Z, CheckCircle as Xt, Cancel as Ut, MultilineChart as it, CreditCard as st, Savings as qt, ContentCopy as Zt, Add as ct, Cardiology as Qt, Payments as Jt, CalendarMonth as en, ExpandMore as tn } from "@mxenabled/mx-icons";
|
|
7
|
-
import { P as
|
|
8
|
-
import { g as rn, a as an, r as Ve, b as sn, c as $e, d as cn, C as ye, e as be, f as ln, h as dn, i as dt, j as Ye, k as pn, l as Xe, m as un, n as pt, o as _n, p as hn, q as ut, s as
|
|
7
|
+
import { P as k, H3 as X, Text as T, InstitutionLogo as lt, H2 as Ae, MerchantLogo as nn, Icon as on } from "@mxenabled/mxui";
|
|
8
|
+
import { g as rn, a as an, r as Ve, b as sn, c as $e, d as cn, C as ye, e as be, f as ln, h as dn, i as dt, j as Ye, k as pn, l as Xe, m as un, n as pt, o as _n, p as hn, q as ut, s as we, t as mn, u as gn, v as yn, w as bn, A as Q, x as fn, P as xn } from "../FinstrongStore-CjErZ73K.mjs";
|
|
9
9
|
import { y as _i, F as hi } from "../FinstrongStore-CjErZ73K.mjs";
|
|
10
10
|
import * as Ue from "d3";
|
|
11
11
|
import { observer as f } from "mobx-react-lite";
|
|
12
|
-
import { u as v, b as U, o as ee, y as P, p as Sn, a as _t, d as xe, m as Le, g as Cn, f as vn, j as
|
|
12
|
+
import { u as v, b as U, o as ee, y as P, p as Sn, a as _t, d as xe, m as Le, g as Cn, f as vn, j as wn, h as kn, i as ht } from "../hooks-CBST3rkm.mjs";
|
|
13
13
|
import { L as te } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import h from "react";
|
|
15
15
|
import W from "@mui/material/Button";
|
|
@@ -19,7 +19,7 @@ import { C as mt } from "../ConnectionsDrawer-DabiwV9L.mjs";
|
|
|
19
19
|
import { l as ne, g as gt, A as Re } from "../ConnectDrawer--gJHyp-S.mjs";
|
|
20
20
|
import re from "@mui/material/Tab";
|
|
21
21
|
import Ee from "@mui/material/Tabs";
|
|
22
|
-
import
|
|
22
|
+
import ke from "@mui/material/TextField";
|
|
23
23
|
import { u as Ge } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as Dn, f as An, a as Mn } from "../Dialog-BPTr3qHE.mjs";
|
|
25
25
|
import In from "@mui/material/Chip";
|
|
@@ -38,9 +38,9 @@ import { Button as Pn } from "@mui/material";
|
|
|
38
38
|
import { S as Rn } from "../StatusBar-BK_uYHAB.mjs";
|
|
39
39
|
import { h as ze } from "../DateUtil-CBdcsyuk.mjs";
|
|
40
40
|
import { useVirtualizer as Bn } from "@tanstack/react-virtual";
|
|
41
|
-
import { u as $n, s as Be, h as Ct, S as vt, b as
|
|
41
|
+
import { u as $n, s as Be, h as Ct, S as vt, b as wt, Z as Ln } from "../TransactionDetails-DRlrltGq.mjs";
|
|
42
42
|
import { A as Wn, W as En } from "../WidgetContainer-DJA1bxLn.mjs";
|
|
43
|
-
import { u as
|
|
43
|
+
import { u as kt } from "../useDimensions-27p2evRx.mjs";
|
|
44
44
|
import { T as ae } from "../TabContentContainer-j01JYR_7.mjs";
|
|
45
45
|
import { b as Y } from "../Localization-2MODESHW.mjs";
|
|
46
46
|
import { E as De } from "../EmptyState-DA_lfRBv.mjs";
|
|
@@ -90,18 +90,18 @@ const go = ({
|
|
|
90
90
|
{ offset: "36.67%", color: S.palette.chartMono.chartMono3 },
|
|
91
91
|
{ offset: "59.72%", color: S.palette.chartMono.chartMono4 },
|
|
92
92
|
{ offset: "83.46%", color: S.palette.chartMono.chartMono5 }
|
|
93
|
-
], [y,
|
|
93
|
+
], [y, w] = rn(
|
|
94
94
|
t,
|
|
95
95
|
c,
|
|
96
96
|
o,
|
|
97
97
|
r
|
|
98
98
|
), [b, x] = an(
|
|
99
99
|
y,
|
|
100
|
-
|
|
100
|
+
w,
|
|
101
101
|
r,
|
|
102
102
|
m,
|
|
103
103
|
u
|
|
104
|
-
), A = Ue.arc().innerRadius(l).outerRadius(d).startAngle(y).endAngle(
|
|
104
|
+
), A = Ue.arc().innerRadius(l).outerRadius(d).startAngle(y).endAngle(w).padAngle(0.02).cornerRadius(8), F = Ue.arc().innerRadius(l).outerRadius(d).startAngle(b).endAngle(x).padAngle(0.02).cornerRadius(8);
|
|
105
105
|
return /* @__PURE__ */ i(G, { children: [
|
|
106
106
|
/* @__PURE__ */ e(
|
|
107
107
|
"path",
|
|
@@ -139,7 +139,7 @@ const go = ({
|
|
|
139
139
|
footerRightContent: u,
|
|
140
140
|
isFinacialStrengthGraph: m = !1
|
|
141
141
|
}) => {
|
|
142
|
-
const g = z(), S = -Math.PI / 1.35, C = Math.PI / 1.35, y = C - S,
|
|
142
|
+
const g = z(), S = -Math.PI / 1.35, C = Math.PI / 1.35, y = C - S, w = y / (s - c), b = (r - c) * w, x = S + b + 0.02, A = n !== "SM" ? 0.1 : 0.12, F = t, H = t * (1 - A), O = F * 2.5, N = O / 2, E = O / 2, ce = (H + F) / 2, j = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [oe, le] = sn(ce, x, j), de = r / 25, V = {
|
|
143
143
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
144
144
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
145
145
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -230,7 +230,7 @@ const go = ({
|
|
|
230
230
|
sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
|
|
231
231
|
children: [
|
|
232
232
|
/* @__PURE__ */ e(
|
|
233
|
-
|
|
233
|
+
k,
|
|
234
234
|
{
|
|
235
235
|
sx: {
|
|
236
236
|
fontSize: V[n].healthScoreFontSize,
|
|
@@ -240,7 +240,7 @@ const go = ({
|
|
|
240
240
|
children: r
|
|
241
241
|
}
|
|
242
242
|
),
|
|
243
|
-
n !== "SM" && /* @__PURE__ */ e(
|
|
243
|
+
n !== "SM" && /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: p })
|
|
244
244
|
]
|
|
245
245
|
}
|
|
246
246
|
)
|
|
@@ -259,7 +259,7 @@ const go = ({
|
|
|
259
259
|
children: typeof l == "number" ? /* @__PURE__ */ i(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
260
260
|
l > 0 ? /* @__PURE__ */ e(rt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(me, { size: 16, sx: { color: "text.secondary" } }),
|
|
261
261
|
/* @__PURE__ */ e(
|
|
262
|
-
|
|
262
|
+
k,
|
|
263
263
|
{
|
|
264
264
|
sx: {
|
|
265
265
|
fontWeight: 600,
|
|
@@ -269,7 +269,7 @@ const go = ({
|
|
|
269
269
|
children: l
|
|
270
270
|
}
|
|
271
271
|
)
|
|
272
|
-
] }) : /* @__PURE__ */ e(
|
|
272
|
+
] }) : /* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle2", children: l })
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
275
|
d !== void 0 && /* @__PURE__ */ e(
|
|
@@ -283,7 +283,7 @@ const go = ({
|
|
|
283
283
|
transform: "translate(-50%, -50%)",
|
|
284
284
|
textAlign: "left"
|
|
285
285
|
},
|
|
286
|
-
children: /* @__PURE__ */ e(
|
|
286
|
+
children: /* @__PURE__ */ e(k, { variant: "body1", children: d })
|
|
287
287
|
}
|
|
288
288
|
),
|
|
289
289
|
u !== void 0 && /* @__PURE__ */ e(
|
|
@@ -296,7 +296,7 @@ const go = ({
|
|
|
296
296
|
transform: "translate(-50%, -50%)",
|
|
297
297
|
textAlign: "right"
|
|
298
298
|
},
|
|
299
|
-
children: /* @__PURE__ */ e(
|
|
299
|
+
children: /* @__PURE__ */ e(k, { variant: "body1", children: u })
|
|
300
300
|
}
|
|
301
301
|
)
|
|
302
302
|
]
|
|
@@ -423,7 +423,7 @@ const go = ({
|
|
|
423
423
|
}
|
|
424
424
|
),
|
|
425
425
|
/* @__PURE__ */ e(
|
|
426
|
-
|
|
426
|
+
k,
|
|
427
427
|
{
|
|
428
428
|
className: "connect-more-accounts-description",
|
|
429
429
|
sx: { color: "text.secondary", mt: 8 },
|
|
@@ -491,7 +491,7 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
491
491
|
g.preventDefault(), m(), u();
|
|
492
492
|
},
|
|
493
493
|
children: /* @__PURE__ */ e(
|
|
494
|
-
|
|
494
|
+
ke,
|
|
495
495
|
{
|
|
496
496
|
error: !d,
|
|
497
497
|
fullWidth: !0,
|
|
@@ -536,7 +536,7 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
536
536
|
In,
|
|
537
537
|
{
|
|
538
538
|
label: /* @__PURE__ */ e(
|
|
539
|
-
|
|
539
|
+
k,
|
|
540
540
|
{
|
|
541
541
|
fontWeight: 700,
|
|
542
542
|
sx: { color: n.color, minHeight: 12 },
|
|
@@ -561,7 +561,7 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
561
561
|
/* @__PURE__ */ e(X, { children: Co.keep_strong_credit_score }),
|
|
562
562
|
/* @__PURE__ */ e(Ie, { status: r })
|
|
563
563
|
] });
|
|
564
|
-
},
|
|
564
|
+
}, wo = f(vo), ko = ({
|
|
565
565
|
additionalContent: t,
|
|
566
566
|
connectTitle: r,
|
|
567
567
|
connectDescription: n,
|
|
@@ -587,7 +587,7 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
587
587
|
},
|
|
588
588
|
children: [
|
|
589
589
|
u && typeof u == "string" ? /* @__PURE__ */ e(X, { children: u }) : u,
|
|
590
|
-
c && /* @__PURE__ */ e(
|
|
590
|
+
c && /* @__PURE__ */ e(k, { children: c })
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
),
|
|
@@ -617,7 +617,7 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
617
617
|
)
|
|
618
618
|
] })
|
|
619
619
|
] }) : /* @__PURE__ */ e(te, {});
|
|
620
|
-
}, Ft = f(
|
|
620
|
+
}, Ft = f(ko), Do = ({
|
|
621
621
|
onClick: t,
|
|
622
622
|
shouldShowBalance: r = !0,
|
|
623
623
|
loadAccounts: n
|
|
@@ -659,7 +659,7 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
659
659
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
660
660
|
}
|
|
661
661
|
),
|
|
662
|
-
r && /* @__PURE__ */ e(
|
|
662
|
+
r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: $(S ?? 0, "0,0.00") })
|
|
663
663
|
] });
|
|
664
664
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
665
665
|
/* @__PURE__ */ e(yt, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Tn, { onClick: () => a(m), children: y }) : y }),
|
|
@@ -679,11 +679,11 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
679
679
|
),
|
|
680
680
|
[p, t]
|
|
681
681
|
), S = h.useMemo(() => g.slice(0, 3), [g]), C = (y) => {
|
|
682
|
-
const { firstValue:
|
|
683
|
-
return
|
|
682
|
+
const { firstValue: w } = xt(y, a);
|
|
683
|
+
return w;
|
|
684
684
|
};
|
|
685
685
|
return g.length >= 1 ? /* @__PURE__ */ i(G, { children: [
|
|
686
|
-
/* @__PURE__ */ e(D, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: S.map((y,
|
|
686
|
+
/* @__PURE__ */ e(D, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: S.map((y, w) => /* @__PURE__ */ i(h.Fragment, { children: [
|
|
687
687
|
/* @__PURE__ */ i(yt, { sx: { px: 24 }, children: [
|
|
688
688
|
/* @__PURE__ */ e(bt, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: y.institution_guid ?? "" }) }),
|
|
689
689
|
/* @__PURE__ */ e(
|
|
@@ -696,9 +696,9 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
696
696
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
|
-
/* @__PURE__ */ e(
|
|
699
|
+
/* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: $(C(y), "0,0.00") })
|
|
700
700
|
] }),
|
|
701
|
-
|
|
701
|
+
w < S.length - 1 && /* @__PURE__ */ e(J, { variant: "inset" })
|
|
702
702
|
] }, y.guid)) }),
|
|
703
703
|
g.length > 3 && /* @__PURE__ */ i(G, { children: [
|
|
704
704
|
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
|
|
@@ -750,8 +750,8 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
750
750
|
...n
|
|
751
751
|
},
|
|
752
752
|
children: [
|
|
753
|
-
typeof t == "number" ? /* @__PURE__ */ e(
|
|
754
|
-
/* @__PURE__ */ e(
|
|
753
|
+
typeof t == "number" ? /* @__PURE__ */ e(k, { variant: "h2", children: $(t, "0,0.00") }) : t,
|
|
754
|
+
/* @__PURE__ */ e(k, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: r })
|
|
755
755
|
]
|
|
756
756
|
}
|
|
757
757
|
);
|
|
@@ -830,7 +830,7 @@ const B = {
|
|
|
830
830
|
}
|
|
831
831
|
),
|
|
832
832
|
/* @__PURE__ */ e(
|
|
833
|
-
|
|
833
|
+
ke,
|
|
834
834
|
{
|
|
835
835
|
"aria-label": B.savings_goal,
|
|
836
836
|
helperText: B.suggested_goal,
|
|
@@ -857,7 +857,7 @@ const B = {
|
|
|
857
857
|
),
|
|
858
858
|
/* @__PURE__ */ i(_, { sx: { flexDirection: "row" }, children: [
|
|
859
859
|
/* @__PURE__ */ e(
|
|
860
|
-
|
|
860
|
+
ke,
|
|
861
861
|
{
|
|
862
862
|
"aria-label": B.meet_your_goal_within,
|
|
863
863
|
fullWidth: !0,
|
|
@@ -1045,13 +1045,13 @@ const B = {
|
|
|
1045
1045
|
account_guid: A?.account_guid,
|
|
1046
1046
|
transaction_guid: x
|
|
1047
1047
|
}), c?.(x);
|
|
1048
|
-
},
|
|
1048
|
+
}, w = h.useRef(null), b = Bn({
|
|
1049
1049
|
count: t.length,
|
|
1050
|
-
getScrollElement: () =>
|
|
1050
|
+
getScrollElement: () => w.current,
|
|
1051
1051
|
estimateSize: (x) => et + (Be(x, t) ? tt : 0),
|
|
1052
1052
|
overscan: 5
|
|
1053
1053
|
});
|
|
1054
|
-
return h.useEffect(() => b.measure(), [t]), h.useEffect(() => S(s), [s]), h.useEffect(() => () => g(), []), /* @__PURE__ */ e(St, { sx: { width: p }, children: /* @__PURE__ */ e(D, { height: n, overflow: "auto", ref:
|
|
1054
|
+
return h.useEffect(() => b.measure(), [t]), h.useEffect(() => S(s), [s]), h.useEffect(() => () => g(), []), /* @__PURE__ */ e(St, { sx: { width: p }, children: /* @__PURE__ */ e(D, { height: n, overflow: "auto", ref: w, width: p, children: /* @__PURE__ */ i(
|
|
1055
1055
|
D,
|
|
1056
1056
|
{
|
|
1057
1057
|
height: (
|
|
@@ -1077,7 +1077,7 @@ const B = {
|
|
|
1077
1077
|
children: [
|
|
1078
1078
|
F && /* @__PURE__ */ e(vt, { bgcolor: r, children: ze(A.date) }),
|
|
1079
1079
|
/* @__PURE__ */ e(
|
|
1080
|
-
|
|
1080
|
+
wt,
|
|
1081
1081
|
{
|
|
1082
1082
|
...c && { onClick: y },
|
|
1083
1083
|
transaction: {
|
|
@@ -1126,7 +1126,7 @@ const B = {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
)
|
|
1128
1128
|
] }) : /* @__PURE__ */ i(_, { sx: { gap: 16 }, children: [
|
|
1129
|
-
/* @__PURE__ */ e(D, { sx: { border: `1px solid ${s.palette.divider}`, borderRadius: 2 }, children: t.slice(0, g).map((y,
|
|
1129
|
+
/* @__PURE__ */ e(D, { sx: { border: `1px solid ${s.palette.divider}`, borderRadius: 2 }, children: t.slice(0, g).map((y, w) => /* @__PURE__ */ i(
|
|
1130
1130
|
_,
|
|
1131
1131
|
{
|
|
1132
1132
|
sx: {
|
|
@@ -1153,7 +1153,7 @@ const B = {
|
|
|
1153
1153
|
flexDirection: "row",
|
|
1154
1154
|
gap: 12,
|
|
1155
1155
|
justifyContent: "space-between",
|
|
1156
|
-
...
|
|
1156
|
+
...w < Math.min(t.length, g) - 1 && {
|
|
1157
1157
|
borderBottom: `1px solid ${s.palette.divider}`
|
|
1158
1158
|
},
|
|
1159
1159
|
pb: 14,
|
|
@@ -1162,20 +1162,20 @@ const B = {
|
|
|
1162
1162
|
},
|
|
1163
1163
|
children: [
|
|
1164
1164
|
/* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
|
|
1165
|
-
/* @__PURE__ */ e(
|
|
1165
|
+
/* @__PURE__ */ e(k, { bold: !0, variant: "body1", children: y.description }),
|
|
1166
1166
|
/* @__PURE__ */ i(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1167
1167
|
!!c && c,
|
|
1168
1168
|
/* @__PURE__ */ e(T, { variant: "caption", children: o(y.date) })
|
|
1169
1169
|
] })
|
|
1170
1170
|
] }),
|
|
1171
|
-
/* @__PURE__ */ e(
|
|
1171
|
+
/* @__PURE__ */ e(k, { bold: !0, sx: { color: r, flexShrink: 0 }, variant: "body1", children: $(y.amount, "0,0.00") })
|
|
1172
1172
|
]
|
|
1173
1173
|
},
|
|
1174
|
-
y.guid ||
|
|
1174
|
+
y.guid || w
|
|
1175
1175
|
)
|
|
1176
1176
|
]
|
|
1177
1177
|
},
|
|
1178
|
-
|
|
1178
|
+
w
|
|
1179
1179
|
)) }),
|
|
1180
1180
|
S && /* @__PURE__ */ i(G, { children: [
|
|
1181
1181
|
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
|
|
@@ -1188,7 +1188,7 @@ const B = {
|
|
|
1188
1188
|
children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
|
|
1189
1189
|
C,
|
|
1190
1190
|
" ",
|
|
1191
|
-
p.key_indicators_borrow.
|
|
1191
|
+
p.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1192
1192
|
] })
|
|
1193
1193
|
}
|
|
1194
1194
|
) }),
|
|
@@ -1197,7 +1197,7 @@ const B = {
|
|
|
1197
1197
|
{
|
|
1198
1198
|
isOpen: l,
|
|
1199
1199
|
onClose: () => d(!1),
|
|
1200
|
-
title: p.key_indicators_borrow.
|
|
1200
|
+
title: p.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1201
1201
|
children: /* @__PURE__ */ e(Go, { transactions: t })
|
|
1202
1202
|
}
|
|
1203
1203
|
)
|
|
@@ -1226,7 +1226,7 @@ const B = {
|
|
|
1226
1226
|
/* @__PURE__ */ e(Xt, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1227
1227
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1228
1228
|
/* @__PURE__ */ e(X, { children: t.pay_bills_on_time_zero_fees_title }),
|
|
1229
|
-
/* @__PURE__ */ e(
|
|
1229
|
+
/* @__PURE__ */ e(k, { variant: "subtitle1", children: t.pay_bills_on_time_zero_fees_description })
|
|
1230
1230
|
] })
|
|
1231
1231
|
]
|
|
1232
1232
|
}
|
|
@@ -1265,7 +1265,7 @@ const B = {
|
|
|
1265
1265
|
borderColor: "divider"
|
|
1266
1266
|
},
|
|
1267
1267
|
children: [
|
|
1268
|
-
/* @__PURE__ */ e(
|
|
1268
|
+
/* @__PURE__ */ e(k, { variant: "body2", children: o.pay_bills_on_time_sticky_description }),
|
|
1269
1269
|
/* @__PURE__ */ i(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1270
1270
|
/* @__PURE__ */ i(Ae, { children: [
|
|
1271
1271
|
t.spending_fee_transaction_count,
|
|
@@ -1296,7 +1296,7 @@ const B = {
|
|
|
1296
1296
|
)
|
|
1297
1297
|
] });
|
|
1298
1298
|
}, Vo = f(jo), Yo = ({ chartFor: t }) => {
|
|
1299
|
-
const r = z(), { monthlySummaries: n } = P(), { finstrong: o } = v(), [c, { width: s }] =
|
|
1299
|
+
const r = z(), { monthlySummaries: n } = P(), { finstrong: o } = v(), [c, { width: s }] = kt(), a = {
|
|
1300
1300
|
savingsOverTime: {
|
|
1301
1301
|
icon: /* @__PURE__ */ e(rt, { size: 48, style: { marginBottom: 8 } }),
|
|
1302
1302
|
title: o.key_indicators_save.zero_state_title,
|
|
@@ -1313,12 +1313,12 @@ const B = {
|
|
|
1313
1313
|
valueKey: "available_cash"
|
|
1314
1314
|
},
|
|
1315
1315
|
debtOverTime: {
|
|
1316
|
-
title: o.key_indicators_borrow.
|
|
1316
|
+
title: o.key_indicators_borrow.have_manageable_debt_drawer.debt_over_time,
|
|
1317
1317
|
valueKey: "debt_balance"
|
|
1318
1318
|
}
|
|
1319
1319
|
}[t], d = hn(n, l.valueKey), u = Math.max(...n.map((y) => y[l.valueKey])), m = () => u >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : u >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: g, leftMargin: S } = m(), C = l.title;
|
|
1320
1320
|
return /* @__PURE__ */ e(K, { ref: c, sx: { backgroundColor: "background.paper" }, children: d.length >= 1 ? /* @__PURE__ */ i(_, { gap: 8, sx: { pl: 18 }, children: [
|
|
1321
|
-
/* @__PURE__ */ e(
|
|
1321
|
+
/* @__PURE__ */ e(k, { sx: { pb: 8, pt: 16 }, variant: "h3", children: C }),
|
|
1322
1322
|
/* @__PURE__ */ e(
|
|
1323
1323
|
We,
|
|
1324
1324
|
{
|
|
@@ -1340,8 +1340,8 @@ const B = {
|
|
|
1340
1340
|
)
|
|
1341
1341
|
] }) : /* @__PURE__ */ i(_, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
|
|
1342
1342
|
a.icon,
|
|
1343
|
-
/* @__PURE__ */ e(
|
|
1344
|
-
/* @__PURE__ */ e(
|
|
1343
|
+
/* @__PURE__ */ e(k, { fontWeight: 600, variant: "body1", children: a.title }),
|
|
1344
|
+
/* @__PURE__ */ e(k, { align: "center", variant: "subtitle1", children: a.description })
|
|
1345
1345
|
] }) });
|
|
1346
1346
|
}, Bt = f(Yo), Xo = () => {
|
|
1347
1347
|
const { finstrong: t } = v(), { healthScore: r, allTransactions: n, loadSpendTransactions: o, loadDebtSpend: c } = P(), { isInitialized: s } = U();
|
|
@@ -1451,7 +1451,7 @@ const B = {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
);
|
|
1453
1453
|
}, Jo = f(Qo), er = () => {
|
|
1454
|
-
const { healthScore: t } = P(), { finstrong: r } = v(), n =
|
|
1454
|
+
const { healthScore: t } = P(), { finstrong: r } = v(), n = we(t.debt_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, s = ((a) => o ? "MISSING" : a <= 30 ? "GOOD" : a >= 31 && a <= 39 ? "FAIR" : a >= 40 ? "OFF_TRACK" : "MISSING")(n);
|
|
1455
1455
|
return /* @__PURE__ */ e(
|
|
1456
1456
|
Te,
|
|
1457
1457
|
{
|
|
@@ -1512,7 +1512,7 @@ const B = {
|
|
|
1512
1512
|
marginLeft: "auto"
|
|
1513
1513
|
},
|
|
1514
1514
|
children: /* @__PURE__ */ e(T, { variant: "Small", children: Y(
|
|
1515
|
-
r.key_indicators_borrow.
|
|
1515
|
+
r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
|
|
1516
1516
|
n
|
|
1517
1517
|
) })
|
|
1518
1518
|
}
|
|
@@ -1520,7 +1520,7 @@ const B = {
|
|
|
1520
1520
|
]
|
|
1521
1521
|
}
|
|
1522
1522
|
),
|
|
1523
|
-
label: r.key_indicators_borrow.
|
|
1523
|
+
label: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_title,
|
|
1524
1524
|
status: s,
|
|
1525
1525
|
statusBarData: [
|
|
1526
1526
|
{
|
|
@@ -1538,7 +1538,7 @@ const B = {
|
|
|
1538
1538
|
{
|
|
1539
1539
|
balance: t.ninety_day_income,
|
|
1540
1540
|
sx: { flexDirection: "column-reverse" },
|
|
1541
|
-
title: o.key_indicators_borrow.
|
|
1541
|
+
title: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_income
|
|
1542
1542
|
}
|
|
1543
1543
|
),
|
|
1544
1544
|
r.income.length ? (
|
|
@@ -1571,7 +1571,7 @@ const B = {
|
|
|
1571
1571
|
{
|
|
1572
1572
|
balance: r.ninety_day_debt_spend,
|
|
1573
1573
|
sx: { flexDirection: "column-reverse" },
|
|
1574
|
-
title: o.key_indicators_borrow.
|
|
1574
|
+
title: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_payments
|
|
1575
1575
|
}
|
|
1576
1576
|
),
|
|
1577
1577
|
t.debtSpend.length ? (
|
|
@@ -1678,7 +1678,7 @@ const B = {
|
|
|
1678
1678
|
), g = {
|
|
1679
1679
|
dataKey: "label",
|
|
1680
1680
|
scaleType: "band"
|
|
1681
|
-
}, S = Math.max(...m.map((b) => Math.max(b.main, b.comparison))), C = Math.ceil(S * 1.2 / 1e3) * 1e3, y = C / 3,
|
|
1681
|
+
}, S = Math.max(...m.map((b) => Math.max(b.main, b.comparison))), C = Math.ceil(S * 1.2 / 1e3) * 1e3, y = C / 3, w = {
|
|
1682
1682
|
scaleType: "linear",
|
|
1683
1683
|
min: 0,
|
|
1684
1684
|
max: C,
|
|
@@ -1777,7 +1777,7 @@ const B = {
|
|
|
1777
1777
|
{ dataKey: "comparison", type: "bar" }
|
|
1778
1778
|
],
|
|
1779
1779
|
xAxis: [g],
|
|
1780
|
-
yAxis: [
|
|
1780
|
+
yAxis: [w],
|
|
1781
1781
|
children: [
|
|
1782
1782
|
/* @__PURE__ */ e(
|
|
1783
1783
|
jt,
|
|
@@ -1869,7 +1869,7 @@ const B = {
|
|
|
1869
1869
|
{
|
|
1870
1870
|
"aria-controls": "income-details-tabpanel-0",
|
|
1871
1871
|
id: "income-details-tab-0",
|
|
1872
|
-
label: a.key_indicators_borrow.
|
|
1872
|
+
label: a.key_indicators_borrow.have_manageable_debt_drawer.income,
|
|
1873
1873
|
sx: { minHeight: 44 }
|
|
1874
1874
|
}
|
|
1875
1875
|
),
|
|
@@ -1878,7 +1878,7 @@ const B = {
|
|
|
1878
1878
|
{
|
|
1879
1879
|
"aria-controls": "debt-payment-details-tabpanel-1",
|
|
1880
1880
|
id: "debt-payment-details-tab-1",
|
|
1881
|
-
label: a.key_indicators_borrow.
|
|
1881
|
+
label: a.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
|
|
1882
1882
|
sx: { minHeight: 44 }
|
|
1883
1883
|
}
|
|
1884
1884
|
)
|
|
@@ -1912,9 +1912,9 @@ const B = {
|
|
|
1912
1912
|
{
|
|
1913
1913
|
chartFor: "debt_payment_vs_income",
|
|
1914
1914
|
data: n,
|
|
1915
|
-
legendLabelComparison: a.key_indicators_borrow.
|
|
1916
|
-
legendLabelMain: a.key_indicators_borrow.
|
|
1917
|
-
title: a.key_indicators_borrow.
|
|
1915
|
+
legendLabelComparison: a.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
|
|
1916
|
+
legendLabelMain: a.key_indicators_borrow.have_manageable_debt_drawer.income,
|
|
1917
|
+
title: a.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
|
|
1918
1918
|
}
|
|
1919
1919
|
),
|
|
1920
1920
|
/* @__PURE__ */ e(Bt, { chartFor: "debtOverTime" })
|
|
@@ -1922,9 +1922,9 @@ const B = {
|
|
|
1922
1922
|
/* @__PURE__ */ e(
|
|
1923
1923
|
De,
|
|
1924
1924
|
{
|
|
1925
|
-
header: a.key_indicators_borrow.
|
|
1925
|
+
header: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
|
|
1926
1926
|
icon: "multiline_chart",
|
|
1927
|
-
subText: a.key_indicators_borrow.
|
|
1927
|
+
subText: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
|
|
1928
1928
|
sx: {
|
|
1929
1929
|
backgroundColor: "background.paper",
|
|
1930
1930
|
borderRadius: "8px",
|
|
@@ -1938,9 +1938,9 @@ const B = {
|
|
|
1938
1938
|
/* @__PURE__ */ e(
|
|
1939
1939
|
De,
|
|
1940
1940
|
{
|
|
1941
|
-
header: a.key_indicators_borrow.
|
|
1941
|
+
header: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
|
|
1942
1942
|
icon: "multiline_chart",
|
|
1943
|
-
subText: a.key_indicators_borrow.
|
|
1943
|
+
subText: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
|
|
1944
1944
|
sx: {
|
|
1945
1945
|
backgroundColor: "background.paper",
|
|
1946
1946
|
borderRadius: "8px",
|
|
@@ -1954,7 +1954,7 @@ const B = {
|
|
|
1954
1954
|
] })
|
|
1955
1955
|
] });
|
|
1956
1956
|
}, cr = f(sr), lr = () => {
|
|
1957
|
-
const { healthScore: t } = P(), { finstrong: r } = v(), n =
|
|
1957
|
+
const { healthScore: t } = P(), { finstrong: r } = v(), n = we(t.spend_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, s = ((p) => o ? "MISSING" : p < 100 ? "GOOD" : p >= 100 && p <= 109 ? "FAIR" : p >= 110 ? "OFF_TRACK" : "MISSING")(n), a = {
|
|
1958
1958
|
GOOD: [{ percentage: `${n}%` }],
|
|
1959
1959
|
FAIR: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
1960
1960
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
@@ -2005,7 +2005,7 @@ const B = {
|
|
|
2005
2005
|
[l, d]
|
|
2006
2006
|
), y = (x) => {
|
|
2007
2007
|
S(g === x ? "" : x);
|
|
2008
|
-
}, { totalSpending:
|
|
2008
|
+
}, { totalSpending: w, totalIncome: b } = h.useMemo(() => o.reduce(
|
|
2009
2009
|
(x, { standard_spend: A = 0, income: F = 0 }) => ({
|
|
2010
2010
|
totalSpending: x.totalSpending + A,
|
|
2011
2011
|
totalIncome: x.totalIncome + F
|
|
@@ -2023,10 +2023,10 @@ const B = {
|
|
|
2023
2023
|
data: o,
|
|
2024
2024
|
legendLabelComparison: c.key_indicators_spend.spend_less_than_you_make_drawer.income,
|
|
2025
2025
|
legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2026
|
+
onClick: t,
|
|
2026
2027
|
title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2027
2028
|
totalComparison: $(b, "0,0.00"),
|
|
2028
|
-
totalMain: $(
|
|
2029
|
-
onClick: t
|
|
2029
|
+
totalMain: $(w, "0,0.00")
|
|
2030
2030
|
}
|
|
2031
2031
|
) : /* @__PURE__ */ e(
|
|
2032
2032
|
De,
|
|
@@ -2135,7 +2135,13 @@ const B = {
|
|
|
2135
2135
|
title: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2136
2136
|
description: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
2137
2137
|
stickyComponent: /* @__PURE__ */ e(dr, {}),
|
|
2138
|
-
content: /* @__PURE__ */ e(
|
|
2138
|
+
content: /* @__PURE__ */ e(
|
|
2139
|
+
ur,
|
|
2140
|
+
{
|
|
2141
|
+
onSpendingClick: c,
|
|
2142
|
+
onTrendClick: o
|
|
2143
|
+
}
|
|
2144
|
+
),
|
|
2139
2145
|
drawerType: "connectDrawer",
|
|
2140
2146
|
connectTitle: s.connect_your_accounts,
|
|
2141
2147
|
connectDescription: s.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
@@ -2159,8 +2165,8 @@ const B = {
|
|
|
2159
2165
|
connectDescription: s.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2160
2166
|
},
|
|
2161
2167
|
haveManageableDebt: {
|
|
2162
|
-
title: s.key_indicators_borrow.
|
|
2163
|
-
description: s.key_indicators_borrow.
|
|
2168
|
+
title: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
|
|
2169
|
+
description: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
|
|
2164
2170
|
stickyComponent: /* @__PURE__ */ e(tr, {}),
|
|
2165
2171
|
content: /* @__PURE__ */ e(cr, {}),
|
|
2166
2172
|
drawerType: "connectDrawer",
|
|
@@ -2168,7 +2174,7 @@ const B = {
|
|
|
2168
2174
|
connectDescription: s.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2169
2175
|
},
|
|
2170
2176
|
haveAGoodCreditScore: {
|
|
2171
|
-
title: /* @__PURE__ */ e(
|
|
2177
|
+
title: /* @__PURE__ */ e(wo, {}),
|
|
2172
2178
|
description: Fe.credit_score_description,
|
|
2173
2179
|
stickyComponent: null,
|
|
2174
2180
|
content: /* @__PURE__ */ e(So, {})
|
|
@@ -2227,10 +2233,10 @@ const B = {
|
|
|
2227
2233
|
children: [
|
|
2228
2234
|
/* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
|
|
2229
2235
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
2230
|
-
/* @__PURE__ */ e(
|
|
2236
|
+
/* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: r }),
|
|
2231
2237
|
/* @__PURE__ */ e(Ie, { status: o })
|
|
2232
2238
|
] }),
|
|
2233
|
-
/* @__PURE__ */ e(
|
|
2239
|
+
/* @__PURE__ */ e(k, { color: "secondary", variant: "subtitle2", children: n })
|
|
2234
2240
|
] }),
|
|
2235
2241
|
/* @__PURE__ */ e(Z, { color: "secondary", size: 24 })
|
|
2236
2242
|
]
|
|
@@ -2242,8 +2248,8 @@ const B = {
|
|
|
2242
2248
|
drawerFor: t,
|
|
2243
2249
|
isOpen: a,
|
|
2244
2250
|
onClose: () => p(!1),
|
|
2245
|
-
|
|
2246
|
-
|
|
2251
|
+
onSpendingClick: s,
|
|
2252
|
+
onTrendClick: c
|
|
2247
2253
|
}
|
|
2248
2254
|
)
|
|
2249
2255
|
] });
|
|
@@ -2279,9 +2285,9 @@ const B = {
|
|
|
2279
2285
|
cardState: a.cardState,
|
|
2280
2286
|
description: a.description,
|
|
2281
2287
|
drawerFor: se.SpendLessThanYouMake,
|
|
2282
|
-
|
|
2288
|
+
onSpendingClick: r,
|
|
2283
2289
|
onTrendClick: t,
|
|
2284
|
-
|
|
2290
|
+
title: a.title
|
|
2285
2291
|
}
|
|
2286
2292
|
),
|
|
2287
2293
|
/* @__PURE__ */ e(
|
|
@@ -2459,7 +2465,7 @@ const B = {
|
|
|
2459
2465
|
]
|
|
2460
2466
|
}
|
|
2461
2467
|
),
|
|
2462
|
-
/* @__PURE__ */ e(ae, { index: 0, name: "spend-details", value: n, children: /* @__PURE__ */ e(gr, {
|
|
2468
|
+
/* @__PURE__ */ e(ae, { index: 0, name: "spend-details", value: n, children: /* @__PURE__ */ e(gr, { onSpendingClick: r, onTrendsClick: t }) }),
|
|
2463
2469
|
/* @__PURE__ */ e(ae, { index: 1, name: "save-details", value: n, children: /* @__PURE__ */ e(br, {}) }),
|
|
2464
2470
|
/* @__PURE__ */ e(ae, { index: 2, name: "borrow-details", value: n, children: /* @__PURE__ */ e(xr, {}) })
|
|
2465
2471
|
] });
|
|
@@ -2469,7 +2475,7 @@ const B = {
|
|
|
2469
2475
|
/* @__PURE__ */ e(it, { size: 48 }),
|
|
2470
2476
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2471
2477
|
/* @__PURE__ */ e(X, { children: r.missing_data_title }),
|
|
2472
|
-
/* @__PURE__ */ e(
|
|
2478
|
+
/* @__PURE__ */ e(k, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: r.missing_data_description })
|
|
2473
2479
|
] }),
|
|
2474
2480
|
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
|
|
2475
2481
|
W,
|
|
@@ -2488,7 +2494,7 @@ const B = {
|
|
|
2488
2494
|
}
|
|
2489
2495
|
) })
|
|
2490
2496
|
] }) : /* @__PURE__ */ e(te, {});
|
|
2491
|
-
},
|
|
2497
|
+
}, wr = f(vr), kr = {
|
|
2492
2498
|
add_more_income: "Add More Income"
|
|
2493
2499
|
}, Dr = ({
|
|
2494
2500
|
incomeTransactions: t,
|
|
@@ -2502,7 +2508,7 @@ const B = {
|
|
|
2502
2508
|
return o.push(
|
|
2503
2509
|
/* @__PURE__ */ i(h.Fragment, { children: [
|
|
2504
2510
|
a && /* @__PURE__ */ e(vt, { children: ze(c.date) }),
|
|
2505
|
-
/* @__PURE__ */ e(
|
|
2511
|
+
/* @__PURE__ */ e(wt, { transaction: c }),
|
|
2506
2512
|
/* @__PURE__ */ e(J, { sx: { ml: p ? 44 : 0 } })
|
|
2507
2513
|
] }, c.guid)
|
|
2508
2514
|
), o;
|
|
@@ -2529,7 +2535,7 @@ const B = {
|
|
|
2529
2535
|
fullWidth: !0,
|
|
2530
2536
|
onClick: () => r({ step: I.MonthlyIncome, type: "main" }),
|
|
2531
2537
|
startIcon: /* @__PURE__ */ e(ct, {}),
|
|
2532
|
-
children:
|
|
2538
|
+
children: kr.add_more_income
|
|
2533
2539
|
}
|
|
2534
2540
|
) })
|
|
2535
2541
|
] }), Ar = f(Dr), Mr = {
|
|
@@ -2573,7 +2579,7 @@ const B = {
|
|
|
2573
2579
|
}, Fr = ({ creditScore: t, setCreditScore: r }) => {
|
|
2574
2580
|
const n = !isNaN(t);
|
|
2575
2581
|
return /* @__PURE__ */ e(D, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2576
|
-
|
|
2582
|
+
ke,
|
|
2577
2583
|
{
|
|
2578
2584
|
error: !n,
|
|
2579
2585
|
fullWidth: !0,
|
|
@@ -2613,7 +2619,7 @@ const B = {
|
|
|
2613
2619
|
}) => /* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
|
|
2614
2620
|
/* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
|
|
2615
2621
|
/* @__PURE__ */ e(X, { children: r }),
|
|
2616
|
-
/* @__PURE__ */ e(
|
|
2622
|
+
/* @__PURE__ */ e(k, { variant: "subtitle1", children: n })
|
|
2617
2623
|
] }),
|
|
2618
2624
|
/* @__PURE__ */ e(Lt, { completeCopy: t, value: o })
|
|
2619
2625
|
] }), nt = {
|
|
@@ -2638,7 +2644,7 @@ const B = {
|
|
|
2638
2644
|
do_it_later: "Do It Later",
|
|
2639
2645
|
next: "Next"
|
|
2640
2646
|
}, Br = ({ isOpen: t, onClose: r }) => {
|
|
2641
|
-
const { visibleAccounts: n } = xe(), { calculateHealthScore: o } = P(), { finstrong: c } = v(), { setSelectedAccounts: s } = U(), { setDateRange: a } =
|
|
2647
|
+
const { visibleAccounts: n } = xe(), { calculateHealthScore: o } = P(), { finstrong: c } = v(), { setSelectedAccounts: s } = U(), { setDateRange: a } = wn(), { filter: p, setFilter: l, transactions: d } = kn(), { user: u, userProfile: m, updateUser: g, updateUserProfile: S } = ee(), [C, y] = h.useState(u.credit_score || 0), [w, b] = h.useState(
|
|
2642
2648
|
nt
|
|
2643
2649
|
), [x, A] = h.useState([]), [F, H] = h.useState(!1), [O, N] = h.useState(!1), [E, ce] = h.useState(u.birthday), [j, oe] = h.useState("");
|
|
2644
2650
|
h.useEffect(() => {
|
|
@@ -2661,11 +2667,11 @@ const B = {
|
|
|
2661
2667
|
[I.MonthlyIncome]: !!j,
|
|
2662
2668
|
[I.Birthday]: !!u.birthday || !!E,
|
|
2663
2669
|
[I.CreditScore]: !!u.credit_score || !!C
|
|
2664
|
-
})[
|
|
2665
|
-
const { step: M } =
|
|
2670
|
+
})[w.step], [C, w, E, j, u]), V = n.length > 0, me = h.useMemo(() => {
|
|
2671
|
+
const { step: M } = w;
|
|
2666
2672
|
let L = 0;
|
|
2667
2673
|
return M >= I.MonthlyIncome && V && L++, M >= I.Birthday && x.length && L++, M >= I.CreditScore && (u.birthday || u.credit_score) && L++, L;
|
|
2668
|
-
}, [
|
|
2674
|
+
}, [w.step, V, x.length, u.birthday, u.credit_score]), Se = (M) => {
|
|
2669
2675
|
l({
|
|
2670
2676
|
...p,
|
|
2671
2677
|
custom: (L) => M ? Zn(L, M) : Je(L)
|
|
@@ -2723,13 +2729,13 @@ const B = {
|
|
|
2723
2729
|
}, Ne = async () => {
|
|
2724
2730
|
H(!0), await o(), await S({ ...m, has_completed_finstrong_onboarding: !0 }), He();
|
|
2725
2731
|
}, Et = () => {
|
|
2726
|
-
if (
|
|
2732
|
+
if (w.step === I.CreditScore) {
|
|
2727
2733
|
Ne();
|
|
2728
2734
|
return;
|
|
2729
2735
|
}
|
|
2730
|
-
b({ step:
|
|
2736
|
+
b({ step: w.step + 1, type: "main" });
|
|
2731
2737
|
}, Gt = () => {
|
|
2732
|
-
const { step: M } =
|
|
2738
|
+
const { step: M } = w, L = M + 1;
|
|
2733
2739
|
switch (M) {
|
|
2734
2740
|
case I.Birthday:
|
|
2735
2741
|
E && E !== u.birthday && g({ ...u, birthday: E });
|
|
@@ -2749,7 +2755,7 @@ const B = {
|
|
|
2749
2755
|
}
|
|
2750
2756
|
L in I && b({ step: L, type: "main" });
|
|
2751
2757
|
}, zt = () => {
|
|
2752
|
-
const { step: M, type: L } =
|
|
2758
|
+
const { step: M, type: L } = w;
|
|
2753
2759
|
if (L === "detail") {
|
|
2754
2760
|
b({ step: M, type: "main" });
|
|
2755
2761
|
return;
|
|
@@ -2759,7 +2765,7 @@ const B = {
|
|
|
2759
2765
|
return;
|
|
2760
2766
|
}
|
|
2761
2767
|
M > I.ConnectAccounts && b({ step: M - 1, type: "main" });
|
|
2762
|
-
}, pe = Wt[
|
|
2768
|
+
}, pe = Wt[w.step], Ce = w.step === I.ConnectAccounts, Ht = {
|
|
2763
2769
|
fullWidth: !0,
|
|
2764
2770
|
...Ce && !V && { startIcon: /* @__PURE__ */ e(ct, {}) }
|
|
2765
2771
|
}, Nt = !Ce || Ce && !V;
|
|
@@ -2782,7 +2788,7 @@ const B = {
|
|
|
2782
2788
|
children: [
|
|
2783
2789
|
F && /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2784
2790
|
/* @__PURE__ */ e(Ae, { children: R.calculate_primary }),
|
|
2785
|
-
/* @__PURE__ */ e(
|
|
2791
|
+
/* @__PURE__ */ e(k, { sx: { textAlign: "center" }, variant: "subtitle1", children: R.calculate_secondary })
|
|
2786
2792
|
] }),
|
|
2787
2793
|
pe && !F && /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2788
2794
|
/* @__PURE__ */ e(
|
|
@@ -2794,11 +2800,11 @@ const B = {
|
|
|
2794
2800
|
value: me
|
|
2795
2801
|
}
|
|
2796
2802
|
),
|
|
2797
|
-
|
|
2803
|
+
w.type === "main" && /* @__PURE__ */ i(D, { children: [
|
|
2798
2804
|
pe.main,
|
|
2799
2805
|
Nt && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(W, { fullWidth: !0, onClick: Et, children: R.do_it_later }) })
|
|
2800
2806
|
] }),
|
|
2801
|
-
|
|
2807
|
+
w.type === "detail" && pe.detail
|
|
2802
2808
|
] })
|
|
2803
2809
|
]
|
|
2804
2810
|
}
|
|
@@ -2834,7 +2840,7 @@ const B = {
|
|
|
2834
2840
|
/* @__PURE__ */ e(D, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(Qt, { size: 72 }) }),
|
|
2835
2841
|
/* @__PURE__ */ i(_, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2836
2842
|
/* @__PURE__ */ e(Ae, { children: Pe.onboarding_title }),
|
|
2837
|
-
/* @__PURE__ */ e(
|
|
2843
|
+
/* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children: Pe.onboarding_subtitle })
|
|
2838
2844
|
] })
|
|
2839
2845
|
] }),
|
|
2840
2846
|
/* @__PURE__ */ e(W, { onClick: () => r(!0), variant: "contained", children: Pe.get_started })
|
|
@@ -2938,7 +2944,7 @@ const B = {
|
|
|
2938
2944
|
/* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
|
|
2939
2945
|
/* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
|
|
2940
2946
|
/* @__PURE__ */ e(X, { children: a.your_financial_profile }),
|
|
2941
|
-
/* @__PURE__ */ e(
|
|
2947
|
+
/* @__PURE__ */ e(k, { children: a.financial_profile_description })
|
|
2942
2948
|
] }),
|
|
2943
2949
|
/* @__PURE__ */ e(
|
|
2944
2950
|
Lt,
|
|
@@ -2987,7 +2993,7 @@ const B = {
|
|
|
2987
2993
|
/* @__PURE__ */ e(lo, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
|
|
2988
2994
|
!r && /* @__PURE__ */ e(so, { sx: { bgcolor: "divider", width: 0.1 } })
|
|
2989
2995
|
] }),
|
|
2990
|
-
/* @__PURE__ */ e(co, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(
|
|
2996
|
+
/* @__PURE__ */ e(co, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(k, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
2991
2997
|
] }), Hr = ({ report: t }) => {
|
|
2992
2998
|
const { finstrong: r } = v(), { score_history_drawer_timeline: n } = r, {
|
|
2993
2999
|
health_score_point_difference: o,
|
|
@@ -3000,7 +3006,7 @@ const B = {
|
|
|
3000
3006
|
newer_score_calculated_at: u
|
|
3001
3007
|
} = t, m = oo(new Date(u), "MMM d"), g = () => o === 0 ? "info.lighter" : o > 0 ? "success.lighter" : "error.lighter", S = () => o === 0 ? Y(n.stayed_at, l) : o > 0 ? n.less_spending : n.more_spending, C = () => {
|
|
3002
3008
|
if (o === 0) return null;
|
|
3003
|
-
const y = o > 0 ? n.up_from : n.down_from,
|
|
3009
|
+
const y = o > 0 ? n.up_from : n.down_from, w = Y(y, l, d);
|
|
3004
3010
|
return /* @__PURE__ */ i(G, { children: [
|
|
3005
3011
|
/* @__PURE__ */ e(
|
|
3006
3012
|
on,
|
|
@@ -3010,7 +3016,7 @@ const B = {
|
|
|
3010
3016
|
sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
|
|
3011
3017
|
}
|
|
3012
3018
|
),
|
|
3013
|
-
|
|
3019
|
+
w
|
|
3014
3020
|
] });
|
|
3015
3021
|
};
|
|
3016
3022
|
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ i(_, { sx: { backgroundColor: "background.paper" }, children: [
|
|
@@ -3031,7 +3037,7 @@ const B = {
|
|
|
3031
3037
|
justifyContent: "center",
|
|
3032
3038
|
minWidth: 48
|
|
3033
3039
|
},
|
|
3034
|
-
children: /* @__PURE__ */ e(
|
|
3040
|
+
children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "Body", children: o > 0 ? `+${o}` : o })
|
|
3035
3041
|
}
|
|
3036
3042
|
),
|
|
3037
3043
|
/* @__PURE__ */ i(_, { sx: { gap: 2, width: "80%" }, children: [
|
|
@@ -3062,8 +3068,8 @@ const B = {
|
|
|
3062
3068
|
{
|
|
3063
3069
|
content: Y(
|
|
3064
3070
|
n.spend_to_income_description,
|
|
3065
|
-
|
|
3066
|
-
|
|
3071
|
+
we(a),
|
|
3072
|
+
we(p)
|
|
3067
3073
|
)
|
|
3068
3074
|
}
|
|
3069
3075
|
),
|
|
@@ -3125,8 +3131,8 @@ const B = {
|
|
|
3125
3131
|
}
|
|
3126
3132
|
) }),
|
|
3127
3133
|
/* @__PURE__ */ i(D, { children: [
|
|
3128
|
-
/* @__PURE__ */ e(
|
|
3129
|
-
/* @__PURE__ */ e(
|
|
3134
|
+
/* @__PURE__ */ e(k, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children: d.status }),
|
|
3135
|
+
/* @__PURE__ */ e(k, { variant: "caption", children: d.description })
|
|
3130
3136
|
] })
|
|
3131
3137
|
]
|
|
3132
3138
|
}
|
|
@@ -3135,7 +3141,7 @@ const B = {
|
|
|
3135
3141
|
}
|
|
3136
3142
|
);
|
|
3137
3143
|
}, jr = f(Kr), Vr = f(() => {
|
|
3138
|
-
const t = z(), [r, { width: n }] =
|
|
3144
|
+
const t = z(), [r, { width: n }] = kt(), { finstrong: o } = v(), { isCopyLoaded: c, isInitialized: s } = U(), { healthScore: a, healthScoreChange: p } = P(), l = t.palette.mode === "dark", d = $e(a?.health_score, o);
|
|
3139
3145
|
return !c || !s ? /* @__PURE__ */ e(te, {}) : /* @__PURE__ */ i(K, { ref: r, sx: { p: 16 }, children: [
|
|
3140
3146
|
/* @__PURE__ */ e(
|
|
3141
3147
|
mo,
|
|
@@ -3198,10 +3204,10 @@ const B = {
|
|
|
3198
3204
|
minHeight: 0
|
|
3199
3205
|
}
|
|
3200
3206
|
},
|
|
3201
|
-
children: /* @__PURE__ */ e(
|
|
3207
|
+
children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: o.accordion_title_text })
|
|
3202
3208
|
}
|
|
3203
3209
|
),
|
|
3204
|
-
/* @__PURE__ */ e(_o, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(
|
|
3210
|
+
/* @__PURE__ */ e(_o, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(k, { variant: "subtitle1", children: d.scoreContent }) })
|
|
3205
3211
|
]
|
|
3206
3212
|
}
|
|
3207
3213
|
) : /* @__PURE__ */ e(
|
|
@@ -3233,7 +3239,7 @@ const B = {
|
|
|
3233
3239
|
healthScore: g,
|
|
3234
3240
|
loadAugmentedChartData: S,
|
|
3235
3241
|
loadMonthlySummaries: C
|
|
3236
|
-
} = P(), { finstrong: y, connect:
|
|
3242
|
+
} = P(), { finstrong: y, connect: w } = v(), { isCopyLoaded: b, isInitialized: x, selectedAccounts: A, setSelectedAccounts: F } = U(), { isMobile: H } = Ge(), O = z(), { userProfile: N } = ee(), [E, ce] = h.useState(!1), [j, oe] = h.useState(!1), [le, de] = h.useState(!1);
|
|
3237
3243
|
if (h.useEffect(() => {
|
|
3238
3244
|
l(O);
|
|
3239
3245
|
}, []), h.useEffect(() => F(c), [c]), h.useEffect(() => {
|
|
@@ -3322,8 +3328,14 @@ const B = {
|
|
|
3322
3328
|
title: y.peer_average,
|
|
3323
3329
|
useCustomMark: !0
|
|
3324
3330
|
}
|
|
3325
|
-
) : /* @__PURE__ */ e(
|
|
3326
|
-
g.health_score !== null && /* @__PURE__ */ e(
|
|
3331
|
+
) : /* @__PURE__ */ e(wr, { onClick: () => de(!0) }),
|
|
3332
|
+
g.health_score !== null && /* @__PURE__ */ e(
|
|
3333
|
+
Cr,
|
|
3334
|
+
{
|
|
3335
|
+
onSpendingClick: o,
|
|
3336
|
+
onTrendsClick: n
|
|
3337
|
+
}
|
|
3338
|
+
)
|
|
3327
3339
|
] }) })
|
|
3328
3340
|
]
|
|
3329
3341
|
}
|
|
@@ -3334,7 +3346,7 @@ const B = {
|
|
|
3334
3346
|
{
|
|
3335
3347
|
onClose: () => de(!1),
|
|
3336
3348
|
showConnectWidget: le,
|
|
3337
|
-
title:
|
|
3349
|
+
title: w.mini_title
|
|
3338
3350
|
}
|
|
3339
3351
|
),
|
|
3340
3352
|
/* @__PURE__ */ e(
|