@mx-cartographer/experiences 7.2.13-alpha-ram1-finstrongtesting-wec-947 → 7.2.13-alpha-ram2-finstrongtesting-wec-965
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/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/index.es.js +1 -1
- package/dist/common/index.es.js +1 -1
- package/dist/finstrong/index.es.js +206 -207
- package/dist/goals/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ import { u as $n, s as ze, h as Mt, S as Dt, b as At, Z as Wn } from "../Transac
|
|
|
43
43
|
import { A as zn, W as En } from "../WidgetContainer-GoNq8wwm.mjs";
|
|
44
44
|
import { T as ie } from "../TabContentContainer-j01JYR_7.mjs";
|
|
45
45
|
import { b as X } from "../Localization-2MODESHW.mjs";
|
|
46
|
-
import { E as Ae } from "../EmptyState-
|
|
46
|
+
import { E as Ae } from "../EmptyState-DoxNUae-.mjs";
|
|
47
47
|
import Gn from "@mui/material/useMediaQuery";
|
|
48
48
|
import { ChartsXAxis as Hn } from "@mui/x-charts/ChartsXAxis";
|
|
49
49
|
import { ChartsYAxis as Nn } from "@mui/x-charts/ChartsYAxis";
|
|
@@ -75,11 +75,11 @@ const yo = ({
|
|
|
75
75
|
dataIndex: o,
|
|
76
76
|
arcColor: n,
|
|
77
77
|
arcStartAngle: r,
|
|
78
|
-
totalAngularSpan:
|
|
78
|
+
totalAngularSpan: c,
|
|
79
79
|
centerX: s,
|
|
80
80
|
centerY: i,
|
|
81
81
|
arcRadius: d,
|
|
82
|
-
innerArcRadius:
|
|
82
|
+
innerArcRadius: l,
|
|
83
83
|
outterArcRadius: p,
|
|
84
84
|
progressEndAngle: _,
|
|
85
85
|
unitsPerSegment: m,
|
|
@@ -92,7 +92,7 @@ const yo = ({
|
|
|
92
92
|
{ offset: "83.46%", color: b.palette.chartMono.chartMono5 }
|
|
93
93
|
], [f, x] = sn(
|
|
94
94
|
t,
|
|
95
|
-
|
|
95
|
+
c,
|
|
96
96
|
r,
|
|
97
97
|
o
|
|
98
98
|
), [y, k] = cn(
|
|
@@ -101,7 +101,7 @@ const yo = ({
|
|
|
101
101
|
o,
|
|
102
102
|
m,
|
|
103
103
|
_
|
|
104
|
-
), D = tt.arc().innerRadius(
|
|
104
|
+
), D = tt.arc().innerRadius(l).outerRadius(p).startAngle(f).endAngle(x).padAngle(0.02).cornerRadius(8), I = tt.arc().innerRadius(l).outerRadius(p).startAngle(y).endAngle(k).padAngle(0.02).cornerRadius(8);
|
|
105
105
|
return /* @__PURE__ */ a(z, { children: [
|
|
106
106
|
/* @__PURE__ */ e(
|
|
107
107
|
"path",
|
|
@@ -130,20 +130,20 @@ const yo = ({
|
|
|
130
130
|
healthScore: o,
|
|
131
131
|
size: n = "L",
|
|
132
132
|
dialScoreData: r,
|
|
133
|
-
minValue:
|
|
133
|
+
minValue: c = 0,
|
|
134
134
|
maxValue: s = 100,
|
|
135
135
|
markerColor: i,
|
|
136
136
|
healthScoreStatus: d,
|
|
137
|
-
footerCenterContent:
|
|
137
|
+
footerCenterContent: l,
|
|
138
138
|
footerLeftContent: p,
|
|
139
139
|
footerRightContent: _,
|
|
140
140
|
isFinacialStrengthGraph: m = !1
|
|
141
141
|
}) => {
|
|
142
|
-
const g = E(), b = -Math.PI / 1.35, w = Math.PI / 1.35, f = w - b, x = f / (s -
|
|
142
|
+
const g = E(), b = -Math.PI / 1.35, w = Math.PI / 1.35, f = w - b, x = f / (s - c), y = (o - c) * x, k = b + y + 0.02, D = n !== "SM" ? 0.1 : 0.12, I = t, N = t * (1 - D), G = I * 2.5, H = G / 2, W = G / 2, ce = (N + I) / 2, Y = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [re, le] = ln(ce, k, Y), ge = o / 25, U = {
|
|
143
143
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
144
144
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
145
145
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
146
|
-
}, Pe =
|
|
146
|
+
}, Pe = l === 0 ? Xt : Ut;
|
|
147
147
|
return /* @__PURE__ */ a(
|
|
148
148
|
u,
|
|
149
149
|
{
|
|
@@ -200,7 +200,7 @@ const yo = ({
|
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
width: G,
|
|
203
|
-
children: o >=
|
|
203
|
+
children: o >= c && o <= s && /* @__PURE__ */ e(
|
|
204
204
|
"circle",
|
|
205
205
|
{
|
|
206
206
|
cx: H + re,
|
|
@@ -246,7 +246,7 @@ const yo = ({
|
|
|
246
246
|
)
|
|
247
247
|
}
|
|
248
248
|
),
|
|
249
|
-
|
|
249
|
+
l !== void 0 && /* @__PURE__ */ e(
|
|
250
250
|
C,
|
|
251
251
|
{
|
|
252
252
|
sx: {
|
|
@@ -256,20 +256,20 @@ const yo = ({
|
|
|
256
256
|
transform: "translate(-50%, -50%)",
|
|
257
257
|
textAlign: "center"
|
|
258
258
|
},
|
|
259
|
-
children: typeof
|
|
260
|
-
|
|
259
|
+
children: typeof l == "number" ? /* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
260
|
+
l > 0 ? /* @__PURE__ */ e(dt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(Pe, { size: 16, sx: { color: "text.secondary" } }),
|
|
261
261
|
/* @__PURE__ */ e(
|
|
262
262
|
M,
|
|
263
263
|
{
|
|
264
264
|
sx: {
|
|
265
265
|
fontWeight: 600,
|
|
266
|
-
color:
|
|
266
|
+
color: l > 0 ? "success.main" : "text.secondary"
|
|
267
267
|
},
|
|
268
268
|
variant: "body1",
|
|
269
|
-
children:
|
|
269
|
+
children: l
|
|
270
270
|
}
|
|
271
271
|
)
|
|
272
|
-
] }) : /* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle2", children:
|
|
272
|
+
] }) : /* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle2", children: l })
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
275
|
p !== void 0 && /* @__PURE__ */ e(
|
|
@@ -304,7 +304,7 @@ const yo = ({
|
|
|
304
304
|
);
|
|
305
305
|
}, Ft = S(
|
|
306
306
|
({ arcRadius: t, size: o = "L", healthScore: n, footerCenterContent: r }) => {
|
|
307
|
-
const
|
|
307
|
+
const c = [
|
|
308
308
|
{ id: 1, label: "Group A", value: 25 },
|
|
309
309
|
{ id: 2, label: "Group B", value: 25 },
|
|
310
310
|
{ id: 3, label: "Group C", value: 25 },
|
|
@@ -314,7 +314,7 @@ const yo = ({
|
|
|
314
314
|
Rt,
|
|
315
315
|
{
|
|
316
316
|
arcRadius: t,
|
|
317
|
-
dialScoreData:
|
|
317
|
+
dialScoreData: c,
|
|
318
318
|
footerCenterContent: o === "L" ? s.footer_center_content_updated_just_now : r,
|
|
319
319
|
healthScore: n,
|
|
320
320
|
healthScoreStatus: i.status,
|
|
@@ -329,10 +329,10 @@ const yo = ({
|
|
|
329
329
|
size: o = "L",
|
|
330
330
|
healthScore: n,
|
|
331
331
|
maxValue: r = 850,
|
|
332
|
-
minValue:
|
|
332
|
+
minValue: c = 300,
|
|
333
333
|
footerCenterContent: s
|
|
334
334
|
}) => {
|
|
335
|
-
const d = E().palette.mode === "dark",
|
|
335
|
+
const d = E().palette.mode === "dark", l = [
|
|
336
336
|
{
|
|
337
337
|
id: 1,
|
|
338
338
|
label: "Poor",
|
|
@@ -374,15 +374,15 @@ const yo = ({
|
|
|
374
374
|
Rt,
|
|
375
375
|
{
|
|
376
376
|
arcRadius: t,
|
|
377
|
-
dialScoreData:
|
|
377
|
+
dialScoreData: l,
|
|
378
378
|
footerCenterContent: s,
|
|
379
|
-
footerLeftContent:
|
|
379
|
+
footerLeftContent: c,
|
|
380
380
|
footerRightContent: r,
|
|
381
381
|
healthScore: n,
|
|
382
382
|
healthScoreStatus: m,
|
|
383
383
|
markerColor: g,
|
|
384
384
|
maxValue: r,
|
|
385
|
-
minValue:
|
|
385
|
+
minValue: c,
|
|
386
386
|
size: o
|
|
387
387
|
}
|
|
388
388
|
);
|
|
@@ -392,12 +392,12 @@ const yo = ({
|
|
|
392
392
|
isDashboard: o = !1,
|
|
393
393
|
hasIcon: n = !0,
|
|
394
394
|
buttonText: r,
|
|
395
|
-
title:
|
|
395
|
+
title: c,
|
|
396
396
|
titleDrawer: s,
|
|
397
397
|
description: i,
|
|
398
398
|
sx: d
|
|
399
399
|
}) => {
|
|
400
|
-
const [
|
|
400
|
+
const [l, p] = h.useState(!1), { connect: _, finstrong: m } = v();
|
|
401
401
|
return t ? /* @__PURE__ */ a(
|
|
402
402
|
j,
|
|
403
403
|
{
|
|
@@ -418,7 +418,7 @@ const yo = ({
|
|
|
418
418
|
},
|
|
419
419
|
children: [
|
|
420
420
|
n && /* @__PURE__ */ e(pt, { sx: { height: 20, width: 20 } }),
|
|
421
|
-
/* @__PURE__ */ e(K, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children:
|
|
421
|
+
/* @__PURE__ */ e(K, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: c || m.connect_more_accounts_title })
|
|
422
422
|
]
|
|
423
423
|
}
|
|
424
424
|
),
|
|
@@ -445,7 +445,7 @@ const yo = ({
|
|
|
445
445
|
oe,
|
|
446
446
|
{
|
|
447
447
|
onClose: () => p(!1),
|
|
448
|
-
showConnectWidget:
|
|
448
|
+
showConnectWidget: l,
|
|
449
449
|
title: s || _.mini_title
|
|
450
450
|
}
|
|
451
451
|
),
|
|
@@ -453,7 +453,7 @@ const yo = ({
|
|
|
453
453
|
St,
|
|
454
454
|
{
|
|
455
455
|
onClose: () => p(!1),
|
|
456
|
-
showConnectionsWidget:
|
|
456
|
+
showConnectionsWidget: l,
|
|
457
457
|
title: s || _.mini_title
|
|
458
458
|
}
|
|
459
459
|
)
|
|
@@ -463,8 +463,8 @@ const yo = ({
|
|
|
463
463
|
};
|
|
464
464
|
var se = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(se || {});
|
|
465
465
|
const fo = ({ isOpen: t, onClose: o }) => {
|
|
466
|
-
const { common: n, finstrong: r } = v(), { isMobile:
|
|
467
|
-
o(), setTimeout(() =>
|
|
466
|
+
const { common: n, finstrong: r } = v(), { isMobile: c } = je(), { updateUser: s, user: i } = Q(), [d, l] = h.useState(i.credit_score || 0), p = !isNaN(d), _ = () => {
|
|
467
|
+
o(), setTimeout(() => l(i.credit_score || 0), 300);
|
|
468
468
|
}, m = () => {
|
|
469
469
|
!d || d === i.credit_score || s({ ...i, credit_score: d });
|
|
470
470
|
};
|
|
@@ -481,7 +481,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
481
481
|
primaryText: n.save_button,
|
|
482
482
|
sx: {
|
|
483
483
|
"& .MuiDialog-paper": {
|
|
484
|
-
minWidth:
|
|
484
|
+
minWidth: c ? "100%" : 400
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
487
|
children: /* @__PURE__ */ e(
|
|
@@ -500,7 +500,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
500
500
|
noValidate: !0,
|
|
501
501
|
pattern: "[0-9]*"
|
|
502
502
|
},
|
|
503
|
-
onChange: (g) =>
|
|
503
|
+
onChange: (g) => l(Number(g.target.value)),
|
|
504
504
|
value: p ? d : ""
|
|
505
505
|
}
|
|
506
506
|
)
|
|
@@ -512,7 +512,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
512
512
|
credit_over_time_title: "Your Credit Over Time",
|
|
513
513
|
credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
|
|
514
514
|
}, xo = ({ chartFor: t }) => {
|
|
515
|
-
const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = R(), { user:
|
|
515
|
+
const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = R(), { user: c } = Q(), { finstrong: s } = v(), [i, { width: d }] = vt(), l = {
|
|
516
516
|
savingsOverTime: {
|
|
517
517
|
icon: /* @__PURE__ */ e(dt, { size: 48, sx: { marginBottom: 8 } }),
|
|
518
518
|
title: s.key_indicators_save.zero_state_title,
|
|
@@ -545,7 +545,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
545
545
|
let k;
|
|
546
546
|
if (y) {
|
|
547
547
|
const { color: D } = mt(
|
|
548
|
-
|
|
548
|
+
c?.credit_score ?? 0,
|
|
549
549
|
n,
|
|
550
550
|
s.credit_score_status
|
|
551
551
|
);
|
|
@@ -590,14 +590,14 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
590
590
|
}
|
|
591
591
|
)
|
|
592
592
|
] }) : /* @__PURE__ */ a(u, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
|
|
593
|
-
|
|
594
|
-
/* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children:
|
|
595
|
-
/* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children:
|
|
593
|
+
l.icon,
|
|
594
|
+
/* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children: l.title }),
|
|
595
|
+
/* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: l.description })
|
|
596
596
|
] }) });
|
|
597
597
|
}, Ye = S(xo), So = {
|
|
598
598
|
updated_score: "Updated Score"
|
|
599
599
|
}, Co = () => {
|
|
600
|
-
const { healthScoreChange: t } = R(), { user: o } = Q(), { availableWidth: n } = Cn(), { isSmallMobile: r } = je(n), [
|
|
600
|
+
const { healthScoreChange: t } = R(), { user: o } = Q(), { availableWidth: n } = Cn(), { isSmallMobile: r } = je(n), [c, s] = h.useState(!1);
|
|
601
601
|
return /* @__PURE__ */ a(u, { sx: { gap: 28 }, children: [
|
|
602
602
|
/* @__PURE__ */ e(
|
|
603
603
|
bo,
|
|
@@ -609,7 +609,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
609
609
|
}
|
|
610
610
|
),
|
|
611
611
|
/* @__PURE__ */ e($, { onClick: () => s(!0), variant: "contained", children: So.updated_score }),
|
|
612
|
-
/* @__PURE__ */ e(Pt, { isOpen:
|
|
612
|
+
/* @__PURE__ */ e(Pt, { isOpen: c, onClose: () => s(!1) }),
|
|
613
613
|
/* @__PURE__ */ e(Ye, { chartFor: "creditOverTime" })
|
|
614
614
|
] });
|
|
615
615
|
}, vo = S(Co), Oe = ({ status: t }) => {
|
|
@@ -653,18 +653,18 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
653
653
|
connectTitle: o,
|
|
654
654
|
connectDescription: n,
|
|
655
655
|
children: r,
|
|
656
|
-
description:
|
|
656
|
+
description: c,
|
|
657
657
|
drawerTitle: s,
|
|
658
658
|
isOpen: i,
|
|
659
659
|
loadConnectAccountsCard: d = !0,
|
|
660
|
-
onClose:
|
|
660
|
+
onClose: l,
|
|
661
661
|
stickyComponent: p,
|
|
662
662
|
title: _,
|
|
663
663
|
drawerType: m
|
|
664
664
|
}) => {
|
|
665
665
|
const { finstrong: g } = v(), { isCopyLoaded: b } = V();
|
|
666
|
-
return b ? /* @__PURE__ */ a(te, { isOpen: i, onClose:
|
|
667
|
-
(_ ||
|
|
666
|
+
return b ? /* @__PURE__ */ a(te, { isOpen: i, onClose: l, title: s || g.key_indicators, children: [
|
|
667
|
+
(_ || c) && /* @__PURE__ */ a(
|
|
668
668
|
u,
|
|
669
669
|
{
|
|
670
670
|
sx: {
|
|
@@ -674,7 +674,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
674
674
|
},
|
|
675
675
|
children: [
|
|
676
676
|
_ && typeof _ == "string" ? /* @__PURE__ */ e(K, { children: _ }) : _,
|
|
677
|
-
|
|
677
|
+
c && /* @__PURE__ */ e(M, { sx: { lineHeight: "24px" }, children: c })
|
|
678
678
|
]
|
|
679
679
|
}
|
|
680
680
|
),
|
|
@@ -709,33 +709,33 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
709
709
|
shouldShowBalance: o = !0,
|
|
710
710
|
loadAccounts: n
|
|
711
711
|
}) => {
|
|
712
|
-
const { config: r } = ft(), { accounts:
|
|
713
|
-
(
|
|
714
|
-
t?.(
|
|
712
|
+
const { config: r } = ft(), { accounts: c } = v(), { selectedAccounts: s } = V(), i = h.useCallback(
|
|
713
|
+
(l) => {
|
|
714
|
+
t?.(l);
|
|
715
715
|
},
|
|
716
716
|
[t]
|
|
717
717
|
), d = h.useMemo(
|
|
718
|
-
() => Array.from(new Set(s.map((
|
|
719
|
-
(
|
|
718
|
+
() => Array.from(new Set(s.map((l) => l.account_type))).filter(
|
|
719
|
+
(l) => n ? n.includes(l) : !0
|
|
720
720
|
),
|
|
721
721
|
[s, n]
|
|
722
722
|
);
|
|
723
|
-
return s.length ? /* @__PURE__ */ e(h.Fragment, { children: d.map((
|
|
723
|
+
return s.length ? /* @__PURE__ */ e(h.Fragment, { children: d.map((l) => {
|
|
724
724
|
const { accountsForType: p, totalBalanceForType: _ } = s.reduce(
|
|
725
|
-
(m, g) => (g.account_type ===
|
|
725
|
+
(m, g) => (g.account_type === l && (m.accountsForType.push(g), m.totalBalanceForType += g.balance || 0), m),
|
|
726
726
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
727
727
|
);
|
|
728
728
|
return /* @__PURE__ */ a(
|
|
729
729
|
De,
|
|
730
730
|
{
|
|
731
731
|
subheader: /* @__PURE__ */ e(Rn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ a(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
732
|
-
/* @__PURE__ */ e(A, { bold: !0, variant: "caption", children:
|
|
732
|
+
/* @__PURE__ */ e(A, { bold: !0, variant: "caption", children: c.account_types[l] }),
|
|
733
733
|
o && /* @__PURE__ */ e(A, { bold: !0, variant: "caption", children: B(_, "0,0.00") })
|
|
734
734
|
] }) }),
|
|
735
735
|
sx: { bgcolor: "background.paper" },
|
|
736
736
|
children: [
|
|
737
737
|
p.map((m, g) => {
|
|
738
|
-
const { firstValue: b } = kt(m,
|
|
738
|
+
const { firstValue: b } = kt(m, c), w = Ct(m, {
|
|
739
739
|
allowNickname: r?.show_account_nicknames_in_master
|
|
740
740
|
}), f = /* @__PURE__ */ a(z, { children: [
|
|
741
741
|
/* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ht, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
|
|
@@ -756,11 +756,11 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
756
756
|
/* @__PURE__ */ e(ne, {})
|
|
757
757
|
]
|
|
758
758
|
},
|
|
759
|
-
|
|
759
|
+
l
|
|
760
760
|
);
|
|
761
761
|
}) }) : null;
|
|
762
762
|
}, Lt = S(Ao), Io = ({ loadAccounts: t, loadMoreLabel: o }) => {
|
|
763
|
-
const n = E(), { config: r } = ft(), { connect:
|
|
763
|
+
const n = E(), { config: r } = ft(), { connect: c, finstrong: s } = v(), { accounts: i } = v(), { selectedAccounts: d } = V(), [l, p] = h.useState(!1), [_, m] = h.useState(!1), g = h.useMemo(
|
|
764
764
|
() => d.filter(
|
|
765
765
|
(f) => t ? t.includes(f.account_type) : !0
|
|
766
766
|
),
|
|
@@ -802,7 +802,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
802
802
|
] })
|
|
803
803
|
}
|
|
804
804
|
) }),
|
|
805
|
-
/* @__PURE__ */ e(te, { isOpen:
|
|
805
|
+
/* @__PURE__ */ e(te, { isOpen: l, onClose: () => p(!1), title: s.accounts, children: /* @__PURE__ */ e(Lt, { loadAccounts: t }) })
|
|
806
806
|
] })
|
|
807
807
|
] }) : /* @__PURE__ */ a(z, { children: [
|
|
808
808
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
@@ -820,7 +820,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
820
820
|
{
|
|
821
821
|
onClose: () => m(!1),
|
|
822
822
|
showConnectWidget: _,
|
|
823
|
-
title:
|
|
823
|
+
title: c.mini_title
|
|
824
824
|
}
|
|
825
825
|
)
|
|
826
826
|
] });
|
|
@@ -877,14 +877,14 @@ const P = {
|
|
|
877
877
|
{ id: xe.Years, label: P.years },
|
|
878
878
|
{ id: xe.Days, label: P.days }
|
|
879
879
|
], Fo = ({ total: t }) => {
|
|
880
|
-
const o = Math.ceil((t + 1) / 1e3) * 1e3, [n, r] = h.useState(0), [
|
|
880
|
+
const o = Math.ceil((t + 1) / 1e3) * 1e3, [n, r] = h.useState(0), [c, s] = h.useState(Je(t)), [i, d] = h.useState(
|
|
881
881
|
Je(t)
|
|
882
|
-
), [
|
|
882
|
+
), [l, p] = h.useState(o), [_, m] = h.useState(_n(t)), [g, b] = h.useState(xe.Months);
|
|
883
883
|
h.useEffect(() => {
|
|
884
884
|
r(
|
|
885
885
|
et({
|
|
886
886
|
contribution: i,
|
|
887
|
-
goalAmount:
|
|
887
|
+
goalAmount: l,
|
|
888
888
|
goalPeriod: _,
|
|
889
889
|
targetPeriod: g,
|
|
890
890
|
totalSaved: t
|
|
@@ -895,7 +895,7 @@ const P = {
|
|
|
895
895
|
f.preventDefault(), r(
|
|
896
896
|
et({
|
|
897
897
|
contribution: i,
|
|
898
|
-
goalAmount:
|
|
898
|
+
goalAmount: l,
|
|
899
899
|
goalPeriod: _,
|
|
900
900
|
targetPeriod: g,
|
|
901
901
|
totalSaved: t
|
|
@@ -910,7 +910,7 @@ const P = {
|
|
|
910
910
|
/* @__PURE__ */ e(A, { variant: "h2", children: B(n, "0,0") }),
|
|
911
911
|
/* @__PURE__ */ a(A, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
912
912
|
"/",
|
|
913
|
-
Oo[
|
|
913
|
+
Oo[c]
|
|
914
914
|
] })
|
|
915
915
|
] }),
|
|
916
916
|
title: P.estimated_contribution
|
|
@@ -929,7 +929,7 @@ const P = {
|
|
|
929
929
|
onChange: (f) => {
|
|
930
930
|
f.target.value && p(Number(f.target.value.replace(/[^0-9]/g, "")));
|
|
931
931
|
},
|
|
932
|
-
value:
|
|
932
|
+
value: l ? B(l, "0,0") : ""
|
|
933
933
|
}
|
|
934
934
|
),
|
|
935
935
|
/* @__PURE__ */ e(
|
|
@@ -990,7 +990,7 @@ const P = {
|
|
|
990
990
|
your_savings: "Your Savings"
|
|
991
991
|
}, Bo = () => {
|
|
992
992
|
const { savingsAccounts: t } = Se(), [o, n] = h.useState(!1), r = h.useMemo(
|
|
993
|
-
() => t.reduce((
|
|
993
|
+
() => t.reduce((c, s) => c + (s.balance ?? 0), 0),
|
|
994
994
|
[t]
|
|
995
995
|
);
|
|
996
996
|
return /* @__PURE__ */ a(u, { sx: { gap: 24 }, children: [
|
|
@@ -1009,38 +1009,26 @@ const P = {
|
|
|
1009
1009
|
)
|
|
1010
1010
|
] });
|
|
1011
1011
|
}, Lo = S(Bo), Re = S(
|
|
1012
|
-
({ label: t, value: o, status: n, bottomComponent: r, statusBarData:
|
|
1013
|
-
const
|
|
1012
|
+
({ label: t, value: o, status: n, bottomComponent: r, statusBarData: c = [] }) => {
|
|
1013
|
+
const s = {
|
|
1014
1014
|
GOOD: {
|
|
1015
|
-
|
|
1016
|
-
color: "success.main",
|
|
1017
|
-
progressBarColor: "primary.main",
|
|
1018
|
-
label: s?.key_indicators_good
|
|
1015
|
+
progressBarColor: "primary.main"
|
|
1019
1016
|
},
|
|
1020
1017
|
FAIR: {
|
|
1021
|
-
|
|
1022
|
-
color: "warning.main",
|
|
1023
|
-
progressBarColor: "warning.main",
|
|
1024
|
-
label: s?.key_indicators_fair
|
|
1018
|
+
progressBarColor: "warning.main"
|
|
1025
1019
|
},
|
|
1026
1020
|
OFF_TRACK: {
|
|
1027
|
-
|
|
1028
|
-
color: "error.main",
|
|
1029
|
-
progressBarColor: "error.main",
|
|
1030
|
-
label: s?.key_indicators_off_track
|
|
1021
|
+
progressBarColor: "error.main"
|
|
1031
1022
|
},
|
|
1032
1023
|
MISSING: {
|
|
1033
|
-
|
|
1034
|
-
color: "text.secondary",
|
|
1035
|
-
progressBarColor: "text.secondary",
|
|
1036
|
-
label: s?.key_indicators_missing
|
|
1024
|
+
progressBarColor: "text.secondary"
|
|
1037
1025
|
}
|
|
1038
|
-
}[n],
|
|
1039
|
-
color:
|
|
1040
|
-
percentage:
|
|
1026
|
+
}[n], i = c.map((d, l) => c.length === 2 ? {
|
|
1027
|
+
color: l === 0 ? "primary.main" : d.color || s?.progressBarColor,
|
|
1028
|
+
percentage: d.percentage
|
|
1041
1029
|
} : {
|
|
1042
|
-
color:
|
|
1043
|
-
percentage:
|
|
1030
|
+
color: d.color || s?.progressBarColor,
|
|
1031
|
+
percentage: d.percentage
|
|
1044
1032
|
});
|
|
1045
1033
|
return /* @__PURE__ */ a(
|
|
1046
1034
|
u,
|
|
@@ -1073,7 +1061,7 @@ const P = {
|
|
|
1073
1061
|
)
|
|
1074
1062
|
] }),
|
|
1075
1063
|
/* @__PURE__ */ a(u, { children: [
|
|
1076
|
-
/* @__PURE__ */ e(Bn, { data:
|
|
1064
|
+
/* @__PURE__ */ e(Bn, { data: i, height: 16 }),
|
|
1077
1065
|
r
|
|
1078
1066
|
] })
|
|
1079
1067
|
]
|
|
@@ -1087,7 +1075,7 @@ const P = {
|
|
|
1087
1075
|
return /* @__PURE__ */ e(
|
|
1088
1076
|
Re,
|
|
1089
1077
|
{
|
|
1090
|
-
bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Wo.map((
|
|
1078
|
+
bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Wo.map((c) => /* @__PURE__ */ a(u, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1091
1079
|
/* @__PURE__ */ e(
|
|
1092
1080
|
ne,
|
|
1093
1081
|
{
|
|
@@ -1099,8 +1087,8 @@ const P = {
|
|
|
1099
1087
|
}
|
|
1100
1088
|
}
|
|
1101
1089
|
),
|
|
1102
|
-
/* @__PURE__ */ e(A, { variant: "caption", children:
|
|
1103
|
-
] },
|
|
1090
|
+
/* @__PURE__ */ e(A, { variant: "caption", children: c })
|
|
1091
|
+
] }, c)) }),
|
|
1104
1092
|
label: $o.sticky_label,
|
|
1105
1093
|
status: r,
|
|
1106
1094
|
statusBarData: [
|
|
@@ -1116,11 +1104,11 @@ const P = {
|
|
|
1116
1104
|
bgcolor: o,
|
|
1117
1105
|
height: n = "calc(100dvh - 36px)",
|
|
1118
1106
|
loader: r = /* @__PURE__ */ e(J, { label: "Loading", size: 40 }),
|
|
1119
|
-
onClick:
|
|
1107
|
+
onClick: c,
|
|
1120
1108
|
showInsights: s = !1,
|
|
1121
1109
|
showLoader: i = !1,
|
|
1122
1110
|
width: d = "100%",
|
|
1123
|
-
zeroState:
|
|
1111
|
+
zeroState: l = /* @__PURE__ */ e(Wn, {})
|
|
1124
1112
|
}) => {
|
|
1125
1113
|
const { getCategoryName: p } = He(), { onEvent: _ } = vn(), { categories: m } = v(), { clearExpandedSplits: g, setShowInsights: b, toggleSplit: w } = $n(), f = (k) => {
|
|
1126
1114
|
const D = t.find((I) => I.guid === k);
|
|
@@ -1131,7 +1119,7 @@ const P = {
|
|
|
1131
1119
|
_(zn.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
1132
1120
|
account_guid: D?.account_guid,
|
|
1133
1121
|
transaction_guid: k
|
|
1134
|
-
}),
|
|
1122
|
+
}), c?.(k);
|
|
1135
1123
|
}, x = h.useRef(null), y = Ln({
|
|
1136
1124
|
count: t.length,
|
|
1137
1125
|
getScrollElement: () => x.current,
|
|
@@ -1149,7 +1137,7 @@ const P = {
|
|
|
1149
1137
|
width: "100%",
|
|
1150
1138
|
children: [
|
|
1151
1139
|
i && r,
|
|
1152
|
-
!i && y.getVirtualItems().length === 0 &&
|
|
1140
|
+
!i && y.getVirtualItems().length === 0 && l,
|
|
1153
1141
|
!i && y.getVirtualItems().length > 0 && y.getVirtualItems().map((k) => {
|
|
1154
1142
|
const D = t[k.index], I = ze(k.index, t), N = Mt(k.index, t), G = it + (I ? st : 0);
|
|
1155
1143
|
return /* @__PURE__ */ a(
|
|
@@ -1166,7 +1154,7 @@ const P = {
|
|
|
1166
1154
|
/* @__PURE__ */ e(
|
|
1167
1155
|
At,
|
|
1168
1156
|
{
|
|
1169
|
-
...
|
|
1157
|
+
...c && { onClick: f },
|
|
1170
1158
|
transaction: {
|
|
1171
1159
|
...D,
|
|
1172
1160
|
category: m.default_categories[D.top_level_category_guid]?.replace(
|
|
@@ -1190,9 +1178,9 @@ const P = {
|
|
|
1190
1178
|
amountColor: o = "success.main",
|
|
1191
1179
|
amountPosition: n = "center",
|
|
1192
1180
|
formatDate: r = Ve,
|
|
1193
|
-
secondaryIcon:
|
|
1181
|
+
secondaryIcon: c
|
|
1194
1182
|
}) => {
|
|
1195
|
-
const s = E(), { connect: i, finstrong: d } = v(), [
|
|
1183
|
+
const s = E(), { connect: i, finstrong: d } = v(), [l, p] = h.useState(!1), [_, m] = h.useState(!1), g = 3, b = t.length > g, w = t.length - g;
|
|
1196
1184
|
return !t || t.length === 0 ? /* @__PURE__ */ a(z, { children: [
|
|
1197
1185
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
1198
1186
|
$,
|
|
@@ -1251,7 +1239,7 @@ const P = {
|
|
|
1251
1239
|
/* @__PURE__ */ a(u, { sx: { gap: 4 }, children: [
|
|
1252
1240
|
/* @__PURE__ */ e(M, { bold: !0, variant: "body1", children: f.description }),
|
|
1253
1241
|
/* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1254
|
-
!!
|
|
1242
|
+
!!c && c,
|
|
1255
1243
|
/* @__PURE__ */ e(A, { variant: "caption", children: r(f.date) })
|
|
1256
1244
|
] })
|
|
1257
1245
|
] }),
|
|
@@ -1282,7 +1270,7 @@ const P = {
|
|
|
1282
1270
|
/* @__PURE__ */ e(
|
|
1283
1271
|
te,
|
|
1284
1272
|
{
|
|
1285
|
-
isOpen:
|
|
1273
|
+
isOpen: l,
|
|
1286
1274
|
onClose: () => p(!1),
|
|
1287
1275
|
title: d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1288
1276
|
children: /* @__PURE__ */ e(Ho, { transactions: t })
|
|
@@ -1341,7 +1329,7 @@ const P = {
|
|
|
1341
1329
|
}
|
|
1342
1330
|
) });
|
|
1343
1331
|
}, Ko = S(No), jo = () => {
|
|
1344
|
-
const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n,
|
|
1332
|
+
const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, c = mn(t.spending_fee_transaction_count);
|
|
1345
1333
|
return /* @__PURE__ */ a(
|
|
1346
1334
|
u,
|
|
1347
1335
|
{
|
|
@@ -1359,7 +1347,7 @@ const P = {
|
|
|
1359
1347
|
" ",
|
|
1360
1348
|
r.pay_bills_on_time_sticky_fee_count
|
|
1361
1349
|
] }),
|
|
1362
|
-
/* @__PURE__ */ e(Oe, { status:
|
|
1350
|
+
/* @__PURE__ */ e(Oe, { status: c })
|
|
1363
1351
|
] })
|
|
1364
1352
|
]
|
|
1365
1353
|
}
|
|
@@ -1383,13 +1371,13 @@ const P = {
|
|
|
1383
1371
|
)
|
|
1384
1372
|
] });
|
|
1385
1373
|
}, Xo = S(Yo), Uo = () => {
|
|
1386
|
-
const { finstrong: t } = v(), { healthScore: o, allTransactions: n, loadSpendTransactions: r, loadDebtSpend:
|
|
1374
|
+
const { finstrong: t } = v(), { healthScore: o, allTransactions: n, loadSpendTransactions: r, loadDebtSpend: c } = R(), { isInitialized: s } = V();
|
|
1387
1375
|
h.useEffect(() => {
|
|
1388
|
-
s && (r().finally(),
|
|
1376
|
+
s && (r().finally(), c().finally());
|
|
1389
1377
|
}, [s]);
|
|
1390
1378
|
const i = h.useMemo(() => {
|
|
1391
|
-
const d = n.spend.map((p) => p.transaction),
|
|
1392
|
-
return [...d, ...
|
|
1379
|
+
const d = n.spend.map((p) => p.transaction), l = n.debtSpend.map((p) => p.transaction);
|
|
1380
|
+
return [...d, ...l];
|
|
1393
1381
|
}, [n.spend, n.debtSpend]);
|
|
1394
1382
|
return s ? /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1395
1383
|
/* @__PURE__ */ e(
|
|
@@ -1410,7 +1398,7 @@ const P = {
|
|
|
1410
1398
|
{
|
|
1411
1399
|
"aria-label": n.key_indicators_save.drawer_title,
|
|
1412
1400
|
centered: !0,
|
|
1413
|
-
onChange: (r,
|
|
1401
|
+
onChange: (r, c) => o(c),
|
|
1414
1402
|
sx: { mb: 0 },
|
|
1415
1403
|
value: t,
|
|
1416
1404
|
variant: "fullWidth",
|
|
@@ -1440,7 +1428,7 @@ const P = {
|
|
|
1440
1428
|
/* @__PURE__ */ e(Ye, { chartFor: "savingsOverTime" })
|
|
1441
1429
|
] });
|
|
1442
1430
|
}, Qo = S(Zo), Jo = () => {
|
|
1443
|
-
const { finstrong: t } = v(), { healthScore: o } = R(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null),
|
|
1431
|
+
const { finstrong: t } = v(), { healthScore: o } = R(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null), c = 183 / 6, s = Math.floor(n), i = Math.round((n - s) * c), d = n / 6 * 100;
|
|
1444
1432
|
return /* @__PURE__ */ e(
|
|
1445
1433
|
Re,
|
|
1446
1434
|
{
|
|
@@ -1570,7 +1558,7 @@ const P = {
|
|
|
1570
1558
|
}
|
|
1571
1559
|
);
|
|
1572
1560
|
}, nr = S(tr), or = () => {
|
|
1573
|
-
const { healthScore: t, allTransactions: o } = R(), { connect: n, finstrong: r } = v(), [
|
|
1561
|
+
const { healthScore: t, allTransactions: o } = R(), { connect: n, finstrong: r } = v(), [c, s] = h.useState(!1);
|
|
1574
1562
|
return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1575
1563
|
/* @__PURE__ */ e(
|
|
1576
1564
|
me,
|
|
@@ -1597,13 +1585,13 @@ const P = {
|
|
|
1597
1585
|
oe,
|
|
1598
1586
|
{
|
|
1599
1587
|
onClose: () => s(!1),
|
|
1600
|
-
showConnectWidget:
|
|
1588
|
+
showConnectWidget: c,
|
|
1601
1589
|
title: n.mini_title
|
|
1602
1590
|
}
|
|
1603
1591
|
)
|
|
1604
1592
|
] });
|
|
1605
1593
|
}, rr = S(or), ar = () => {
|
|
1606
|
-
const { allTransactions: t, healthScore: o } = R(), { connect: n, finstrong: r } = v(), [
|
|
1594
|
+
const { allTransactions: t, healthScore: o } = R(), { connect: n, finstrong: r } = v(), [c, s] = h.useState(!1);
|
|
1607
1595
|
return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1608
1596
|
/* @__PURE__ */ e(
|
|
1609
1597
|
me,
|
|
@@ -1636,7 +1624,7 @@ const P = {
|
|
|
1636
1624
|
oe,
|
|
1637
1625
|
{
|
|
1638
1626
|
onClose: () => s(!1),
|
|
1639
|
-
showConnectWidget:
|
|
1627
|
+
showConnectWidget: c,
|
|
1640
1628
|
title: n.mini_title
|
|
1641
1629
|
}
|
|
1642
1630
|
)
|
|
@@ -1646,7 +1634,7 @@ const P = {
|
|
|
1646
1634
|
data: o,
|
|
1647
1635
|
series: n,
|
|
1648
1636
|
style: r,
|
|
1649
|
-
...
|
|
1637
|
+
...c
|
|
1650
1638
|
}) => {
|
|
1651
1639
|
const s = E(), i = h.useRef(null), { width: d } = jn({
|
|
1652
1640
|
width: r.width
|
|
@@ -1664,9 +1652,9 @@ const P = {
|
|
|
1664
1652
|
i.current && m.unobserve(i.current);
|
|
1665
1653
|
};
|
|
1666
1654
|
}, []);
|
|
1667
|
-
const { formattedComparison:
|
|
1655
|
+
const { formattedComparison: l, formattedMain: p } = o[n.index], _ = n.type === 0 ? p : l;
|
|
1668
1656
|
return /* @__PURE__ */ a("g", { children: [
|
|
1669
|
-
/* @__PURE__ */ e(ot.rect, { ...
|
|
1657
|
+
/* @__PURE__ */ e(ot.rect, { ...c, fill: t, ref: i, rx: 2, style: r }),
|
|
1670
1658
|
/* @__PURE__ */ e(
|
|
1671
1659
|
ot.text,
|
|
1672
1660
|
{
|
|
@@ -1686,11 +1674,11 @@ const P = {
|
|
|
1686
1674
|
data: o,
|
|
1687
1675
|
title: n,
|
|
1688
1676
|
buttonLabel: r,
|
|
1689
|
-
onClick:
|
|
1677
|
+
onClick: c,
|
|
1690
1678
|
legendLabelMain: s,
|
|
1691
1679
|
legendLabelComparison: i,
|
|
1692
1680
|
totalComparison: d,
|
|
1693
|
-
totalMain:
|
|
1681
|
+
totalMain: l
|
|
1694
1682
|
}) => {
|
|
1695
1683
|
const p = E(), _ = Gn(p.breakpoints.down("xs")), m = h.useMemo(
|
|
1696
1684
|
() => o.sort((y, k) => y.month - k.month).map((y) => {
|
|
@@ -1749,7 +1737,7 @@ const P = {
|
|
|
1749
1737
|
$,
|
|
1750
1738
|
{
|
|
1751
1739
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1752
|
-
onClick:
|
|
1740
|
+
onClick: c,
|
|
1753
1741
|
size: "small",
|
|
1754
1742
|
sx: {
|
|
1755
1743
|
pl: 8,
|
|
@@ -1770,7 +1758,7 @@ const P = {
|
|
|
1770
1758
|
sx: {
|
|
1771
1759
|
width: 10,
|
|
1772
1760
|
height: 10,
|
|
1773
|
-
backgroundColor: "
|
|
1761
|
+
backgroundColor: "chartMono.chartMono3",
|
|
1774
1762
|
borderRadius: "2px"
|
|
1775
1763
|
}
|
|
1776
1764
|
}
|
|
@@ -1780,7 +1768,7 @@ const P = {
|
|
|
1780
1768
|
s,
|
|
1781
1769
|
" "
|
|
1782
1770
|
] }),
|
|
1783
|
-
!_ &&
|
|
1771
|
+
!_ && l && /* @__PURE__ */ e(A, { bold: !0, sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
|
|
1784
1772
|
] })
|
|
1785
1773
|
] }),
|
|
1786
1774
|
/* @__PURE__ */ a(u, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
@@ -1790,7 +1778,7 @@ const P = {
|
|
|
1790
1778
|
sx: {
|
|
1791
1779
|
width: 10,
|
|
1792
1780
|
height: 10,
|
|
1793
|
-
backgroundColor: "
|
|
1781
|
+
backgroundColor: "chartMono.chartMono5",
|
|
1794
1782
|
borderRadius: "2px"
|
|
1795
1783
|
}
|
|
1796
1784
|
}
|
|
@@ -1800,17 +1788,17 @@ const P = {
|
|
|
1800
1788
|
i,
|
|
1801
1789
|
" "
|
|
1802
1790
|
] }),
|
|
1803
|
-
!_ && d && /* @__PURE__ */ e(A, { bold: !0, variant: "subtitle2", children: d })
|
|
1791
|
+
!_ && d && /* @__PURE__ */ e(A, { bold: !0, sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
|
|
1804
1792
|
] })
|
|
1805
1793
|
] })
|
|
1806
1794
|
] }),
|
|
1807
1795
|
/* @__PURE__ */ a(
|
|
1808
1796
|
Kn,
|
|
1809
1797
|
{
|
|
1810
|
-
colors: [`${p.palette.
|
|
1798
|
+
colors: [`${p.palette.chartMono.chartMono3}`, `${p.palette.chartMono.chartMono5}`],
|
|
1811
1799
|
dataset: m,
|
|
1812
1800
|
height: 240,
|
|
1813
|
-
margin: { top: 20, bottom: 30, right: 10 },
|
|
1801
|
+
margin: { top: 20, bottom: 30, right: 10, left: 42 },
|
|
1814
1802
|
series: [
|
|
1815
1803
|
{ dataKey: "main", type: "bar" },
|
|
1816
1804
|
{ dataKey: "comparison", type: "bar" }
|
|
@@ -1888,7 +1876,7 @@ const P = {
|
|
|
1888
1876
|
}
|
|
1889
1877
|
);
|
|
1890
1878
|
}, cr = () => {
|
|
1891
|
-
const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } = R(), { isInitialized: r } = V(), [
|
|
1879
|
+
const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } = R(), { isInitialized: r } = V(), [c, s] = h.useState(0), { finstrong: i } = v();
|
|
1892
1880
|
return h.useEffect(() => {
|
|
1893
1881
|
r && (t().finally(), o().finally());
|
|
1894
1882
|
}, [r]), /* @__PURE__ */ a(z, { children: [
|
|
@@ -1898,9 +1886,9 @@ const P = {
|
|
|
1898
1886
|
{
|
|
1899
1887
|
"aria-label": i.key_indicators_save.drawer_title,
|
|
1900
1888
|
centered: !0,
|
|
1901
|
-
onChange: (d,
|
|
1889
|
+
onChange: (d, l) => s(l),
|
|
1902
1890
|
sx: { mb: 0 },
|
|
1903
|
-
value:
|
|
1891
|
+
value: c,
|
|
1904
1892
|
variant: "fullWidth",
|
|
1905
1893
|
children: [
|
|
1906
1894
|
/* @__PURE__ */ e(
|
|
@@ -1930,7 +1918,7 @@ const P = {
|
|
|
1930
1918
|
"aria-labelledby": "income-details-tab-0",
|
|
1931
1919
|
index: 0,
|
|
1932
1920
|
name: "income-details",
|
|
1933
|
-
value:
|
|
1921
|
+
value: c,
|
|
1934
1922
|
children: /* @__PURE__ */ e(rr, {})
|
|
1935
1923
|
}
|
|
1936
1924
|
),
|
|
@@ -1940,7 +1928,7 @@ const P = {
|
|
|
1940
1928
|
"aria-labelledby": "debt-payment-details-tab-1",
|
|
1941
1929
|
index: 1,
|
|
1942
1930
|
name: "debt-payment-details",
|
|
1943
|
-
value:
|
|
1931
|
+
value: c,
|
|
1944
1932
|
children: /* @__PURE__ */ e(ir, {})
|
|
1945
1933
|
}
|
|
1946
1934
|
)
|
|
@@ -2019,6 +2007,7 @@ const P = {
|
|
|
2019
2007
|
] }),
|
|
2020
2008
|
/* @__PURE__ */ a(A, { variant: "body2", children: [
|
|
2021
2009
|
r ? "-%" : `${n}%`,
|
|
2010
|
+
" ",
|
|
2022
2011
|
o?.key_indicators_spend.spend_less_than_you_make_drawer.spent
|
|
2023
2012
|
] })
|
|
2024
2013
|
]
|
|
@@ -2031,9 +2020,9 @@ const P = {
|
|
|
2031
2020
|
}
|
|
2032
2021
|
);
|
|
2033
2022
|
}, pr = S(dr), ur = () => {
|
|
2034
|
-
const t = E(), { monthlySummaries: o } = R(), { finstrong: n, goals: r, spending:
|
|
2023
|
+
const t = E(), { monthlySummaries: o } = R(), { finstrong: n, goals: r, spending: c } = v(), { selectedAccounts: s } = V(), { categories: i, dateRangeCategoryTotals: d, loadDateRangeCategoryTotals: l } = He(), { appDataStore: p } = wn(), [_, m] = h.useState("");
|
|
2035
2024
|
h.useEffect(() => {
|
|
2036
|
-
|
|
2025
|
+
l(
|
|
2037
2026
|
s,
|
|
2038
2027
|
It(/* @__PURE__ */ new Date()),
|
|
2039
2028
|
Tt(/* @__PURE__ */ new Date())
|
|
@@ -2077,7 +2066,12 @@ const P = {
|
|
|
2077
2066
|
borderRadius: "8px",
|
|
2078
2067
|
boxShadow: 1,
|
|
2079
2068
|
p: 24,
|
|
2080
|
-
pb: 48
|
|
2069
|
+
pb: 48,
|
|
2070
|
+
".empty-state-subtext": {
|
|
2071
|
+
fontSize: 15,
|
|
2072
|
+
lineHeight: "24px",
|
|
2073
|
+
mt: 8
|
|
2074
|
+
}
|
|
2081
2075
|
},
|
|
2082
2076
|
variant: "no-buttons"
|
|
2083
2077
|
}
|
|
@@ -2125,7 +2119,7 @@ const P = {
|
|
|
2125
2119
|
data: g,
|
|
2126
2120
|
onSelected: b,
|
|
2127
2121
|
selectedId: _,
|
|
2128
|
-
totalLabel:
|
|
2122
|
+
totalLabel: c.total_spending
|
|
2129
2123
|
}
|
|
2130
2124
|
),
|
|
2131
2125
|
/* @__PURE__ */ e(
|
|
@@ -2150,7 +2144,12 @@ const P = {
|
|
|
2150
2144
|
borderRadius: "8px",
|
|
2151
2145
|
boxShadow: 1,
|
|
2152
2146
|
p: 24,
|
|
2153
|
-
pb: 48
|
|
2147
|
+
pb: 48,
|
|
2148
|
+
".empty-state-subtext": {
|
|
2149
|
+
fontSize: 15,
|
|
2150
|
+
lineHeight: "24px",
|
|
2151
|
+
mt: 8
|
|
2152
|
+
}
|
|
2154
2153
|
},
|
|
2155
2154
|
variant: "no-buttons"
|
|
2156
2155
|
}
|
|
@@ -2240,7 +2239,7 @@ const P = {
|
|
|
2240
2239
|
description: n,
|
|
2241
2240
|
cardState: r = "MISSING"
|
|
2242
2241
|
}) => {
|
|
2243
|
-
const [
|
|
2242
|
+
const [c, s] = h.useState(!1);
|
|
2244
2243
|
return /* @__PURE__ */ a(z, { children: [
|
|
2245
2244
|
/* @__PURE__ */ a(
|
|
2246
2245
|
u,
|
|
@@ -2273,30 +2272,30 @@ const P = {
|
|
|
2273
2272
|
mr,
|
|
2274
2273
|
{
|
|
2275
2274
|
drawerFor: t,
|
|
2276
|
-
isOpen:
|
|
2275
|
+
isOpen: c,
|
|
2277
2276
|
onClose: () => s(!1)
|
|
2278
2277
|
}
|
|
2279
2278
|
)
|
|
2280
2279
|
] });
|
|
2281
2280
|
}, gr = () => {
|
|
2282
2281
|
const { finstrong: t } = v(), { key_indicators_spend: o } = t, { healthScore: n } = R(), r = (i) => {
|
|
2283
|
-
const d = bn(i),
|
|
2282
|
+
const d = bn(i), l = {
|
|
2284
2283
|
GOOD: o.ratio_good_description,
|
|
2285
2284
|
FAIR: o.ratio_fair_description,
|
|
2286
2285
|
OFF_TRACK: o.ratio_off_track_description,
|
|
2287
2286
|
MISSING: o.ratio_missing_description
|
|
2288
|
-
}, p = d === "MISSING" ?
|
|
2287
|
+
}, p = d === "MISSING" ? l[d] : X(l[d], i);
|
|
2289
2288
|
return {
|
|
2290
2289
|
cardState: d,
|
|
2291
2290
|
description: p,
|
|
2292
2291
|
title: o.ratio_card_title
|
|
2293
2292
|
};
|
|
2294
|
-
}, { spendToIncomeRatio:
|
|
2295
|
-
const i = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = r(i),
|
|
2293
|
+
}, { spendToIncomeRatio: c, spendFeeCount: s } = h.useMemo(() => {
|
|
2294
|
+
const i = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = r(i), l = yn(
|
|
2296
2295
|
n.spending_fee_transaction_count,
|
|
2297
2296
|
o
|
|
2298
2297
|
);
|
|
2299
|
-
return { spendToIncomeRatio: d, spendFeeCount:
|
|
2298
|
+
return { spendToIncomeRatio: d, spendFeeCount: l };
|
|
2300
2299
|
}, [
|
|
2301
2300
|
n.spend_to_income_ratio,
|
|
2302
2301
|
n.spending_fee_transaction_count,
|
|
@@ -2307,10 +2306,10 @@ const P = {
|
|
|
2307
2306
|
/* @__PURE__ */ e(
|
|
2308
2307
|
he,
|
|
2309
2308
|
{
|
|
2310
|
-
cardState:
|
|
2311
|
-
description:
|
|
2309
|
+
cardState: c.cardState,
|
|
2310
|
+
description: c.description,
|
|
2312
2311
|
drawerFor: se.SpendLessThanYouMake,
|
|
2313
|
-
title:
|
|
2312
|
+
title: c.title
|
|
2314
2313
|
}
|
|
2315
2314
|
),
|
|
2316
2315
|
/* @__PURE__ */ e(
|
|
@@ -2325,36 +2324,36 @@ const P = {
|
|
|
2325
2324
|
] });
|
|
2326
2325
|
}, yr = S(gr), br = () => {
|
|
2327
2326
|
const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_save: n } = o, r = (d) => {
|
|
2328
|
-
const
|
|
2327
|
+
const l = bt(d), p = {
|
|
2329
2328
|
GOOD: n.days_of_cash_good_description,
|
|
2330
2329
|
FAIR: n.days_of_cash_fair_description,
|
|
2331
2330
|
OFF_TRACK: n.days_of_cash_off_track_description,
|
|
2332
2331
|
MISSING: n.days_of_cash_missing_description
|
|
2333
|
-
}, _ =
|
|
2332
|
+
}, _ = l === "MISSING" ? p[l] : X(p[l], d);
|
|
2334
2333
|
return {
|
|
2335
|
-
cardState:
|
|
2334
|
+
cardState: l,
|
|
2336
2335
|
description: _,
|
|
2337
2336
|
title: n.days_of_cash_title
|
|
2338
2337
|
};
|
|
2339
|
-
},
|
|
2340
|
-
const
|
|
2338
|
+
}, c = (d) => {
|
|
2339
|
+
const l = yt(d), p = {
|
|
2341
2340
|
GOOD: n.emergency_savings_good_description,
|
|
2342
2341
|
FAIR: n.emergency_savings_fair_description,
|
|
2343
2342
|
OFF_TRACK: n.emergency_savings_off_track_description,
|
|
2344
2343
|
MISSING: n.emergency_savings_missing_description
|
|
2345
2344
|
};
|
|
2346
2345
|
let _;
|
|
2347
|
-
return
|
|
2348
|
-
p[
|
|
2346
|
+
return l === "FAIR" && d !== null ? _ = X(
|
|
2347
|
+
p[l],
|
|
2349
2348
|
B(d, "0,0.00")
|
|
2350
|
-
) : _ = p[
|
|
2351
|
-
cardState:
|
|
2349
|
+
) : _ = p[l], {
|
|
2350
|
+
cardState: l,
|
|
2352
2351
|
description: _,
|
|
2353
2352
|
title: n.emergency_savings_title
|
|
2354
2353
|
};
|
|
2355
2354
|
}, { daysOfCashOnHand: s, emergencySavings: i } = h.useMemo(() => {
|
|
2356
|
-
const d = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null,
|
|
2357
|
-
return { daysOfCashOnHand:
|
|
2355
|
+
const d = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, l = r(d), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, _ = c(p);
|
|
2356
|
+
return { daysOfCashOnHand: l, emergencySavings: _ };
|
|
2358
2357
|
}, [
|
|
2359
2358
|
t.months_of_cash_on_hand,
|
|
2360
2359
|
t.emergency_savings_on_hand,
|
|
@@ -2382,32 +2381,32 @@ const P = {
|
|
|
2382
2381
|
)
|
|
2383
2382
|
] });
|
|
2384
2383
|
}, fr = S(br), xr = () => {
|
|
2385
|
-
const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_borrow: n } = o, { user: r } = Q(),
|
|
2386
|
-
const p = fn(
|
|
2384
|
+
const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_borrow: n } = o, { user: r } = Q(), c = (l) => {
|
|
2385
|
+
const p = fn(l), _ = {
|
|
2387
2386
|
GOOD: n.manage_debit_good_description,
|
|
2388
2387
|
FAIR: n.manage_debit_fair_description,
|
|
2389
2388
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
2390
2389
|
MISSING: n.manage_debit_missing_description
|
|
2391
|
-
}, m = p === "FAIR" || p === "OFF_TRACK" ? X(_[p],
|
|
2390
|
+
}, m = p === "FAIR" || p === "OFF_TRACK" ? X(_[p], l) : _[p];
|
|
2392
2391
|
return {
|
|
2393
2392
|
cardState: p,
|
|
2394
2393
|
description: m,
|
|
2395
2394
|
title: n.manage_debit_title
|
|
2396
2395
|
};
|
|
2397
|
-
}, s = (
|
|
2398
|
-
const p = gt(
|
|
2396
|
+
}, s = (l) => {
|
|
2397
|
+
const p = gt(l), _ = {
|
|
2399
2398
|
GOOD: n.credit_score_good_description,
|
|
2400
2399
|
FAIR: n.credit_score_fair_description,
|
|
2401
2400
|
OFF_TRACK: n.credit_score_off_track_description,
|
|
2402
2401
|
MISSING: n.credit_score_missing_description
|
|
2403
|
-
}, m = p === "MISSING" ? _[p] : X(_[p],
|
|
2402
|
+
}, m = p === "MISSING" ? _[p] : X(_[p], l);
|
|
2404
2403
|
return {
|
|
2405
2404
|
cardState: p,
|
|
2406
2405
|
description: m,
|
|
2407
2406
|
title: n.credit_score_title
|
|
2408
2407
|
};
|
|
2409
2408
|
}, { manageDebtStatus: i, creditScoreStatus: d } = h.useMemo(() => {
|
|
2410
|
-
const
|
|
2409
|
+
const l = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = c(l), _ = s(r.credit_score || null);
|
|
2411
2410
|
return {
|
|
2412
2411
|
manageDebtStatus: p,
|
|
2413
2412
|
creditScoreStatus: _
|
|
@@ -2441,7 +2440,7 @@ const P = {
|
|
|
2441
2440
|
{
|
|
2442
2441
|
"aria-label": "Key Indicators",
|
|
2443
2442
|
centered: !0,
|
|
2444
|
-
onChange: (r,
|
|
2443
|
+
onChange: (r, c) => o(c),
|
|
2445
2444
|
sx: {
|
|
2446
2445
|
mb: 0,
|
|
2447
2446
|
"& .MuiTab-root": {
|
|
@@ -2525,15 +2524,15 @@ const P = {
|
|
|
2525
2524
|
transaction: n
|
|
2526
2525
|
}) => /* @__PURE__ */ a(h.Fragment, { children: [
|
|
2527
2526
|
/* @__PURE__ */ a(u, { children: [
|
|
2528
|
-
!!t.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: t.reduce((r,
|
|
2529
|
-
if (
|
|
2527
|
+
!!t.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: t.reduce((r, c, s) => {
|
|
2528
|
+
if (c.guid === n.guid) return r;
|
|
2530
2529
|
const i = ze(s, t), d = Mt(s, t);
|
|
2531
2530
|
return r.push(
|
|
2532
2531
|
/* @__PURE__ */ a(h.Fragment, { children: [
|
|
2533
|
-
i && /* @__PURE__ */ e(Dt, { children: Ve(
|
|
2534
|
-
/* @__PURE__ */ e(At, { transaction:
|
|
2532
|
+
i && /* @__PURE__ */ e(Dt, { children: Ve(c.date) }),
|
|
2533
|
+
/* @__PURE__ */ e(At, { transaction: c }),
|
|
2535
2534
|
/* @__PURE__ */ e(ne, { sx: { ml: d ? 44 : 0 } })
|
|
2536
|
-
] },
|
|
2535
|
+
] }, c.guid)
|
|
2537
2536
|
), r;
|
|
2538
2537
|
}, []) }),
|
|
2539
2538
|
/* @__PURE__ */ e(
|
|
@@ -2564,8 +2563,8 @@ const P = {
|
|
|
2564
2563
|
] }), Ar = S(Dr), Ir = {
|
|
2565
2564
|
select_date: "Select Date"
|
|
2566
2565
|
}, Tr = ({ selectedDate: t, setSelectedDate: o }) => {
|
|
2567
|
-
const n = E(), r = (
|
|
2568
|
-
o(Math.floor(new Date(
|
|
2566
|
+
const n = E(), r = (c) => {
|
|
2567
|
+
o(Math.floor(new Date(c).getTime() / 1e3));
|
|
2569
2568
|
};
|
|
2570
2569
|
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(Jn, { dateAdapter: Ot, children: /* @__PURE__ */ e(
|
|
2571
2570
|
eo,
|
|
@@ -2667,13 +2666,13 @@ const P = {
|
|
|
2667
2666
|
do_it_later: "Do It Later",
|
|
2668
2667
|
next: "Next"
|
|
2669
2668
|
}, Lr = ({ isOpen: t, onClose: o }) => {
|
|
2670
|
-
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = R(), { finstrong:
|
|
2669
|
+
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = R(), { finstrong: c } = v(), { setSelectedAccounts: s } = V(), { setDateRange: i } = kn(), { filter: d, setFilter: l, transactions: p } = Mn(), { user: _, userProfile: m, updateUser: g, updateUserProfile: b } = Q(), [w, f] = h.useState(_.credit_score || 0), [x, y] = h.useState(
|
|
2671
2670
|
ct
|
|
2672
2671
|
), [k, D] = h.useState([]), [I, N] = h.useState(!1), [G, H] = h.useState(!1), [W, ce] = h.useState(_.birthday), [Y, re] = h.useState("");
|
|
2673
2672
|
h.useEffect(() => {
|
|
2674
2673
|
i({ start: It(rt()), end: Tt(rt()) });
|
|
2675
2674
|
}, []), h.useEffect(() => {
|
|
2676
|
-
|
|
2675
|
+
l({
|
|
2677
2676
|
accounts: n.map((T) => T.guid),
|
|
2678
2677
|
dateRange: {
|
|
2679
2678
|
start: Un(/* @__PURE__ */ new Date(), 90),
|
|
@@ -2695,7 +2694,7 @@ const P = {
|
|
|
2695
2694
|
let L = 0;
|
|
2696
2695
|
return T >= O.MonthlyIncome && U && L++, T >= O.Birthday && k.length && L++, T >= O.CreditScore && (_.birthday || _.credit_score) && L++, L;
|
|
2697
2696
|
}, [x.step, U, k.length, _.birthday, _.credit_score]), Ce = (T) => {
|
|
2698
|
-
|
|
2697
|
+
l({
|
|
2699
2698
|
...d,
|
|
2700
2699
|
custom: (L) => T ? Qn(L, T) : at(L)
|
|
2701
2700
|
});
|
|
@@ -2806,7 +2805,7 @@ const P = {
|
|
|
2806
2805
|
primaryText: de?.mainActionContent,
|
|
2807
2806
|
secondaryColor: "primary",
|
|
2808
2807
|
secondaryText: F.back,
|
|
2809
|
-
title:
|
|
2808
|
+
title: c.title,
|
|
2810
2809
|
...!I && { onPrimaryAction: Ht },
|
|
2811
2810
|
children: [
|
|
2812
2811
|
I && /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
@@ -2817,7 +2816,7 @@ const P = {
|
|
|
2817
2816
|
/* @__PURE__ */ e(
|
|
2818
2817
|
Br,
|
|
2819
2818
|
{
|
|
2820
|
-
completeCopy:
|
|
2819
|
+
completeCopy: c.complete,
|
|
2821
2820
|
primaryText: de.primaryText,
|
|
2822
2821
|
secondaryText: de.secondaryText,
|
|
2823
2822
|
value: Pe
|
|
@@ -2873,7 +2872,7 @@ const P = {
|
|
|
2873
2872
|
/* @__PURE__ */ e($r, { isOpen: t, onClose: () => o(!1) })
|
|
2874
2873
|
] });
|
|
2875
2874
|
}, zr = ({ isOpen: t, onClose: o }) => {
|
|
2876
|
-
const { finstrong: n } = v(), r = E(), { updateUser:
|
|
2875
|
+
const { finstrong: n } = v(), r = E(), { updateUser: c, user: s } = Q(), [i, d] = h.useState(s.birthday), l = (_) => {
|
|
2877
2876
|
d(Math.floor(new Date(_).getTime() / 1e3));
|
|
2878
2877
|
};
|
|
2879
2878
|
return /* @__PURE__ */ e(
|
|
@@ -2882,7 +2881,7 @@ const P = {
|
|
|
2882
2881
|
isOpen: t,
|
|
2883
2882
|
onClose: o,
|
|
2884
2883
|
onPrimaryAction: () => {
|
|
2885
|
-
!i || i === s.birthday || (
|
|
2884
|
+
!i || i === s.birthday || (c({ ...s, birthday: i }), o());
|
|
2886
2885
|
},
|
|
2887
2886
|
onSecondaryAction: o,
|
|
2888
2887
|
title: n.date_of_birth,
|
|
@@ -2890,7 +2889,7 @@ const P = {
|
|
|
2890
2889
|
to,
|
|
2891
2890
|
{
|
|
2892
2891
|
disableFuture: !0,
|
|
2893
|
-
onChange:
|
|
2892
|
+
onChange: l,
|
|
2894
2893
|
slotProps: {
|
|
2895
2894
|
nextIconButton: {
|
|
2896
2895
|
sx: {
|
|
@@ -2923,10 +2922,10 @@ const P = {
|
|
|
2923
2922
|
);
|
|
2924
2923
|
}, Er = S(zr), Gr = ({ isOpen: t, onClose: o }) => {
|
|
2925
2924
|
const { visibleFinstrongAccounts: n } = Se(), { incomeBudget: r } = xt(), {
|
|
2926
|
-
accounts:
|
|
2925
|
+
accounts: c,
|
|
2927
2926
|
common: s,
|
|
2928
2927
|
finstrong: i
|
|
2929
|
-
} = v(), { user: d } = Q(), [
|
|
2928
|
+
} = v(), { user: d } = Q(), [l, p] = h.useState(null), m = [
|
|
2930
2929
|
{
|
|
2931
2930
|
dynamicCopy: i.add_profile_item,
|
|
2932
2931
|
fallbackLabel: i.monthly_income,
|
|
@@ -2991,20 +2990,20 @@ const P = {
|
|
|
2991
2990
|
/* @__PURE__ */ e(
|
|
2992
2991
|
te,
|
|
2993
2992
|
{
|
|
2994
|
-
isOpen:
|
|
2993
|
+
isOpen: l === ee.MonthlyIncome,
|
|
2995
2994
|
onClose: () => p(null),
|
|
2996
2995
|
title: s.settings,
|
|
2997
2996
|
children: /* @__PURE__ */ e(no, {})
|
|
2998
2997
|
}
|
|
2999
2998
|
),
|
|
3000
|
-
/* @__PURE__ */ e(Er, { isOpen:
|
|
3001
|
-
/* @__PURE__ */ e(Pt, { isOpen:
|
|
2999
|
+
/* @__PURE__ */ e(Er, { isOpen: l === ee.DateOfBirth, onClose: () => p(null) }),
|
|
3000
|
+
/* @__PURE__ */ e(Pt, { isOpen: l === ee.CreditScore, onClose: () => p(null) }),
|
|
3002
3001
|
/* @__PURE__ */ e(
|
|
3003
3002
|
St,
|
|
3004
3003
|
{
|
|
3005
3004
|
onClose: () => p(null),
|
|
3006
|
-
showConnectionsWidget:
|
|
3007
|
-
title:
|
|
3005
|
+
showConnectionsWidget: l === ee.Connections,
|
|
3006
|
+
title: c.manage_connections
|
|
3008
3007
|
}
|
|
3009
3008
|
)
|
|
3010
3009
|
] });
|
|
@@ -3020,16 +3019,16 @@ const P = {
|
|
|
3020
3019
|
] }), Nr = ({ report: t }) => {
|
|
3021
3020
|
const { finstrong: o } = v(), { score_history_drawer_timeline: n } = o, {
|
|
3022
3021
|
health_score_point_difference: r,
|
|
3023
|
-
newer_credit_score:
|
|
3022
|
+
newer_credit_score: c,
|
|
3024
3023
|
older_credit_score: s,
|
|
3025
3024
|
older_spend_to_income_ratio: i,
|
|
3026
3025
|
newer_spend_to_income_ratio: d,
|
|
3027
|
-
older_health_score:
|
|
3026
|
+
older_health_score: l,
|
|
3028
3027
|
newer_health_score: p,
|
|
3029
3028
|
newer_score_calculated_at: _
|
|
3030
|
-
} = t, m = ro(new Date(_), "MMM d"), g = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", b = () => r === 0 ? X(n.stayed_at,
|
|
3029
|
+
} = t, m = ro(new Date(_), "MMM d"), g = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", b = () => r === 0 ? X(n.stayed_at, l) : r > 0 ? n.less_spending : n.more_spending, w = () => {
|
|
3031
3030
|
if (r === 0) return null;
|
|
3032
|
-
const f = r > 0 ? n.up_from : n.down_from, x = X(f,
|
|
3031
|
+
const f = r > 0 ? n.up_from : n.down_from, x = X(f, l, p);
|
|
3033
3032
|
return /* @__PURE__ */ a(z, { children: [
|
|
3034
3033
|
/* @__PURE__ */ e(
|
|
3035
3034
|
an,
|
|
@@ -3102,7 +3101,7 @@ const P = {
|
|
|
3102
3101
|
content: X(
|
|
3103
3102
|
n.credit_score_description,
|
|
3104
3103
|
s,
|
|
3105
|
-
|
|
3104
|
+
c
|
|
3106
3105
|
),
|
|
3107
3106
|
islast: !0
|
|
3108
3107
|
}
|
|
@@ -3112,8 +3111,8 @@ const P = {
|
|
|
3112
3111
|
) })
|
|
3113
3112
|
] }) });
|
|
3114
3113
|
}, Kr = S(Nr), jr = ({ isOpen: t, onClose: o }) => {
|
|
3115
|
-
const n = E(), { finstrong: r } = v(), { isCopyLoaded:
|
|
3116
|
-
if (!
|
|
3114
|
+
const n = E(), { finstrong: r } = v(), { isCopyLoaded: c, isInitialized: s } = V(), { healthScore: i, healthScoreChangeReports: d, augmentedChartData: l } = R();
|
|
3115
|
+
if (!c || !s) return /* @__PURE__ */ e(J, {});
|
|
3117
3116
|
const p = Ge(i.health_score || 0, r), _ = d.slice().reverse();
|
|
3118
3117
|
return /* @__PURE__ */ e(
|
|
3119
3118
|
Bt,
|
|
@@ -3125,7 +3124,7 @@ const P = {
|
|
|
3125
3124
|
baseline: "min",
|
|
3126
3125
|
colors: [n.palette.primary.main],
|
|
3127
3126
|
curveType: "natural",
|
|
3128
|
-
datasets: [
|
|
3127
|
+
datasets: [l],
|
|
3129
3128
|
height: 160,
|
|
3130
3129
|
labels: [r.key_indicators_label],
|
|
3131
3130
|
margin: { top: 12, left: 24 },
|
|
@@ -3176,9 +3175,9 @@ const P = {
|
|
|
3176
3175
|
{ color: "chartMono.chartMono3", text: t.building, value: "26-50" },
|
|
3177
3176
|
{ color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
|
|
3178
3177
|
{ color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
|
|
3179
|
-
].map(({ color: r, text:
|
|
3178
|
+
].map(({ color: r, text: c, value: s }) => /* @__PURE__ */ a(u, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
|
|
3180
3179
|
/* @__PURE__ */ a(C, { children: [
|
|
3181
|
-
/* @__PURE__ */ e(M, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children:
|
|
3180
|
+
/* @__PURE__ */ e(M, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: c }),
|
|
3182
3181
|
/* @__PURE__ */ a(A, { sx: { color: "text.secondary" }, variant: "caption", children: [
|
|
3183
3182
|
"(",
|
|
3184
3183
|
s,
|
|
@@ -3186,7 +3185,7 @@ const P = {
|
|
|
3186
3185
|
] })
|
|
3187
3186
|
] }),
|
|
3188
3187
|
/* @__PURE__ */ e(C, { sx: { border: "2px solid", borderColor: r, borderRadius: "3px" } })
|
|
3189
|
-
] },
|
|
3188
|
+
] }, c)) }),
|
|
3190
3189
|
/* @__PURE__ */ a(C, { children: [
|
|
3191
3190
|
/* @__PURE__ */ e(
|
|
3192
3191
|
C,
|
|
@@ -3304,7 +3303,7 @@ const P = {
|
|
|
3304
3303
|
] })
|
|
3305
3304
|
] }) }) : /* @__PURE__ */ e(J, {});
|
|
3306
3305
|
}, Ur = S(Xr), qr = S(() => {
|
|
3307
|
-
const [t, o] = h.useState(!1), n = E(), [r, { width:
|
|
3306
|
+
const [t, o] = h.useState(!1), n = E(), [r, { width: c }] = vt(), { finstrong: s } = v(), { isCopyLoaded: i, isInitialized: d } = V(), { healthScore: l, healthScoreChange: p } = R(), _ = n.palette.mode === "dark", m = Ge(l?.health_score, s);
|
|
3308
3307
|
return !i || !d ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ a(j, { ref: r, sx: { p: 16 }, children: [
|
|
3309
3308
|
/* @__PURE__ */ e(
|
|
3310
3309
|
go,
|
|
@@ -3336,13 +3335,13 @@ const P = {
|
|
|
3336
3335
|
/* @__PURE__ */ e(u, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(
|
|
3337
3336
|
Ft,
|
|
3338
3337
|
{
|
|
3339
|
-
arcRadius:
|
|
3338
|
+
arcRadius: c <= 323 ? 73 : 154,
|
|
3340
3339
|
footerCenterContent: p,
|
|
3341
|
-
healthScore:
|
|
3342
|
-
size:
|
|
3340
|
+
healthScore: l?.health_score || 0,
|
|
3341
|
+
size: c <= 323 ? "M" : "L"
|
|
3343
3342
|
}
|
|
3344
3343
|
) }),
|
|
3345
|
-
|
|
3344
|
+
l?.health_score ? /* @__PURE__ */ a(
|
|
3346
3345
|
_o,
|
|
3347
3346
|
{
|
|
3348
3347
|
sx: {
|
|
@@ -3404,8 +3403,8 @@ const P = {
|
|
|
3404
3403
|
)
|
|
3405
3404
|
] });
|
|
3406
3405
|
}), Zr = ({ onBackClick: t, sx: o }) => {
|
|
3407
|
-
const { visibleAccounts: n } = Se(), { dateRange: r, isDataLoaded:
|
|
3408
|
-
augmentedChartData:
|
|
3406
|
+
const { visibleAccounts: n } = Se(), { dateRange: r, isDataLoaded: c, loadBudgetData: s, setTheme: i } = xt(), { reloadCategoryTotals: d } = He(), {
|
|
3407
|
+
augmentedChartData: l,
|
|
3409
3408
|
calculateHealthScore: p,
|
|
3410
3409
|
healthScore: _,
|
|
3411
3410
|
loadAugmentedChartData: m,
|
|
@@ -3416,8 +3415,8 @@ const P = {
|
|
|
3416
3415
|
}, []), h.useEffect(() => k(n), [n]), h.useEffect(() => {
|
|
3417
3416
|
x && (p().finally(), m().finally(), g().finally());
|
|
3418
3417
|
}, [x]), h.useEffect(() => {
|
|
3419
|
-
x && (d(y, r.start, r.end),
|
|
3420
|
-
}, [r,
|
|
3418
|
+
x && (d(y, r.start, r.end), c || s());
|
|
3419
|
+
}, [r, c, x, y]), !f || !x) return /* @__PURE__ */ e(J, {});
|
|
3421
3420
|
const le = () => {
|
|
3422
3421
|
}, ge = () => H(!0);
|
|
3423
3422
|
return /* @__PURE__ */ a(
|
|
@@ -3475,7 +3474,7 @@ const P = {
|
|
|
3475
3474
|
}
|
|
3476
3475
|
)
|
|
3477
3476
|
] }),
|
|
3478
|
-
|
|
3477
|
+
l.length ? /* @__PURE__ */ e(
|
|
3479
3478
|
Ne,
|
|
3480
3479
|
{
|
|
3481
3480
|
axisColor: I.palette.divider,
|
|
@@ -3483,7 +3482,7 @@ const P = {
|
|
|
3483
3482
|
colors: [I.palette.primary.main],
|
|
3484
3483
|
curveType: "natural",
|
|
3485
3484
|
customLegendVariant: "XSmall",
|
|
3486
|
-
datasets: [
|
|
3485
|
+
datasets: [l],
|
|
3487
3486
|
height: 300,
|
|
3488
3487
|
isGraphClippingXAxis: !0,
|
|
3489
3488
|
labelBackgroundColor: I.palette.border.dark,
|