@mx-cartographer/experiences 7.1.4-ram1-alpha-finstrong-credit-score-graph-check → 7.1.4-ram2-alpha-finstrong-credit-score-graph-check
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;
|
|
@@ -5,13 +5,13 @@ import { useTheme as H, alpha as pe } from "@mui/material/styles";
|
|
|
5
5
|
import { PieChart as jt, BarPlot as Vt } from "@mui/x-charts";
|
|
6
6
|
import { TrendingUp as st, ArrowRightAlt as Yt, TrendingDown as Xt, AccountBalance as ct, ChevronRight as Z, MultilineChart as lt, CreditCard as Le, CheckCircle as Ut, Cancel as qt, Savings as Zt, ContentCopy as Qt, Add as dt, Cardiology as Jt, Payments as en, CalendarMonth as tn, ExpandMore as nn } from "@mxenabled/mx-icons";
|
|
7
7
|
import { P as w, H3 as Y, Text as T, InstitutionLogo as pt, H2 as Ae, MerchantLogo as on, Icon as rn } from "@mxenabled/mxui";
|
|
8
|
-
import { g as an, a as sn, r as Ue, b as cn, c as We, d as ut, C as ge, e as ye, f as ln, h as dn, i as pn, j as
|
|
9
|
-
import { y as
|
|
8
|
+
import { g as an, a as sn, r as Ue, b as cn, c as We, d as ut, C as ge, e as ye, f as ln, h as dn, i as pn, j as _t, k as qe, l as un, m as Ze, n as _n, o as ht, p as hn, q as mt, s as ve, t as mn, u as gn, v as yn, w as bn, A as J, x as fn, P as xn } from "../FinstrongStore-CC4SrBjA.mjs";
|
|
9
|
+
import { y as hi, F as mi } from "../FinstrongStore-CC4SrBjA.mjs";
|
|
10
10
|
import * as Qe from "d3";
|
|
11
11
|
import { observer as S } from "mobx-react-lite";
|
|
12
12
|
import { u as C, b as X, o as Q, y as P, p as Sn, a as gt, d as fe, m as Ee, g as Cn, f as vn, j as kn, h as wn, i as yt } from "../hooks-CBST3rkm.mjs";
|
|
13
13
|
import { L as te } from "../Loader-DUaFpDGv.mjs";
|
|
14
|
-
import
|
|
14
|
+
import h from "react";
|
|
15
15
|
import L from "@mui/material/Button";
|
|
16
16
|
import K from "@mui/material/Card";
|
|
17
17
|
import { L as ze } from "../LineChart-CE3oLBQ0.mjs";
|
|
@@ -66,8 +66,8 @@ import co from "@mui/lab/TimelineConnector";
|
|
|
66
66
|
import lo from "@mui/lab/TimelineContent";
|
|
67
67
|
import po from "@mui/lab/TimelineDot";
|
|
68
68
|
import uo from "@mui/lab/TimelineSeparator";
|
|
69
|
-
import
|
|
70
|
-
import
|
|
69
|
+
import _o from "@mui/material/Accordion";
|
|
70
|
+
import ho from "@mui/material/AccordionDetails";
|
|
71
71
|
import mo from "@mui/material/AccordionSummary";
|
|
72
72
|
import go from "@mui/material/CardHeader";
|
|
73
73
|
const yo = ({
|
|
@@ -81,7 +81,7 @@ const yo = ({
|
|
|
81
81
|
arcRadius: d,
|
|
82
82
|
innerArcRadius: c,
|
|
83
83
|
outterArcRadius: p,
|
|
84
|
-
progressEndAngle:
|
|
84
|
+
progressEndAngle: _,
|
|
85
85
|
unitsPerSegment: m,
|
|
86
86
|
isFinacialStrengthGraph: g
|
|
87
87
|
}) => {
|
|
@@ -100,7 +100,7 @@ const yo = ({
|
|
|
100
100
|
b,
|
|
101
101
|
o,
|
|
102
102
|
m,
|
|
103
|
-
|
|
103
|
+
_
|
|
104
104
|
), O = Qe.arc().innerRadius(c).outerRadius(p).startAngle(y).endAngle(b).padAngle(0.02).cornerRadius(8), M = Qe.arc().innerRadius(c).outerRadius(p).startAngle(f).endAngle(v).padAngle(0.02).cornerRadius(8);
|
|
105
105
|
return /* @__PURE__ */ i(E, { children: [
|
|
106
106
|
/* @__PURE__ */ e(
|
|
@@ -136,10 +136,10 @@ const yo = ({
|
|
|
136
136
|
healthScoreStatus: d,
|
|
137
137
|
footerCenterContent: c,
|
|
138
138
|
footerLeftContent: p,
|
|
139
|
-
footerRightContent:
|
|
139
|
+
footerRightContent: _,
|
|
140
140
|
isFinacialStrengthGraph: m = !1
|
|
141
141
|
}) => {
|
|
142
|
-
const g = H(), x = -Math.PI / 1.35, k = Math.PI / 1.35, y = k - x, b = y / (s - l), f = (o - l) * b, v = x + f + 0.02, O = n !== "SM" ? 0.1 : 0.12, M = t, N = t * (1 - O), z = M * 2.5, G = z / 2, W = z / 2, ce = (N + M) / 2, j = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [oe, le] = cn(ce, v, j),
|
|
142
|
+
const g = H(), x = -Math.PI / 1.35, k = Math.PI / 1.35, y = k - x, b = y / (s - l), f = (o - l) * b, v = x + f + 0.02, O = n !== "SM" ? 0.1 : 0.12, M = t, N = t * (1 - O), z = M * 2.5, G = z / 2, W = z / 2, ce = (N + M) / 2, j = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [oe, le] = cn(ce, v, j), he = o / 25, U = {
|
|
143
143
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
144
144
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
145
145
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -190,7 +190,7 @@ const yo = ({
|
|
|
190
190
|
outterArcRadius: M,
|
|
191
191
|
progressEndAngle: v,
|
|
192
192
|
totalAngularSpan: y,
|
|
193
|
-
unitsPerSegment:
|
|
193
|
+
unitsPerSegment: he
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
},
|
|
@@ -286,7 +286,7 @@ const yo = ({
|
|
|
286
286
|
children: /* @__PURE__ */ e(w, { variant: "body1", children: p })
|
|
287
287
|
}
|
|
288
288
|
),
|
|
289
|
-
|
|
289
|
+
_ !== void 0 && /* @__PURE__ */ e(
|
|
290
290
|
A,
|
|
291
291
|
{
|
|
292
292
|
sx: {
|
|
@@ -296,7 +296,7 @@ const yo = ({
|
|
|
296
296
|
transform: "translate(-50%, -50%)",
|
|
297
297
|
textAlign: "right"
|
|
298
298
|
},
|
|
299
|
-
children: /* @__PURE__ */ e(w, { variant: "body1", children:
|
|
299
|
+
children: /* @__PURE__ */ e(w, { variant: "body1", children: _ })
|
|
300
300
|
}
|
|
301
301
|
)
|
|
302
302
|
]
|
|
@@ -363,8 +363,8 @@ const yo = ({
|
|
|
363
363
|
value: 12,
|
|
364
364
|
color: d ? ge.EXCEPTIONAL : ye.EXCEPTIONAL
|
|
365
365
|
}
|
|
366
|
-
], { finstrong: p } = C(), { isCopyLoaded:
|
|
367
|
-
if (!
|
|
366
|
+
], { finstrong: p } = C(), { isCopyLoaded: _ } = X();
|
|
367
|
+
if (!_) return /* @__PURE__ */ e(te, {});
|
|
368
368
|
const { status: m, color: g = "none" } = ut(
|
|
369
369
|
n,
|
|
370
370
|
d,
|
|
@@ -396,7 +396,7 @@ const yo = ({
|
|
|
396
396
|
description: s,
|
|
397
397
|
sx: a
|
|
398
398
|
}) => {
|
|
399
|
-
const [d, c] =
|
|
399
|
+
const [d, c] = h.useState(!1), { connect: p, finstrong: _ } = C();
|
|
400
400
|
return /* @__PURE__ */ i(
|
|
401
401
|
K,
|
|
402
402
|
{
|
|
@@ -417,7 +417,7 @@ const yo = ({
|
|
|
417
417
|
},
|
|
418
418
|
children: [
|
|
419
419
|
o && /* @__PURE__ */ e(ct, { sx: { height: 20, width: 20 } }),
|
|
420
|
-
/* @__PURE__ */ e(Y, { className: "connect-more-accounts-title", sx: { ...t && { fontSize: 15 } }, children: r ||
|
|
420
|
+
/* @__PURE__ */ e(Y, { className: "connect-more-accounts-title", sx: { ...t && { fontSize: 15 } }, children: r || _.connect_more_accounts_title })
|
|
421
421
|
]
|
|
422
422
|
}
|
|
423
423
|
),
|
|
@@ -427,7 +427,7 @@ const yo = ({
|
|
|
427
427
|
className: "connect-more-accounts-description",
|
|
428
428
|
sx: { color: "text.secondary", mt: 8 },
|
|
429
429
|
variant: "subtitle1",
|
|
430
|
-
children: s ||
|
|
430
|
+
children: s || _.connect_more_accounts_description
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
433
|
/* @__PURE__ */ e(
|
|
@@ -437,7 +437,7 @@ const yo = ({
|
|
|
437
437
|
onClick: () => c(!0),
|
|
438
438
|
size: "small",
|
|
439
439
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
440
|
-
children: /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body2", children: n ||
|
|
440
|
+
children: /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body2", children: n || _.connect_more_accounts_button })
|
|
441
441
|
}
|
|
442
442
|
),
|
|
443
443
|
/* @__PURE__ */ e(
|
|
@@ -454,7 +454,7 @@ const yo = ({
|
|
|
454
454
|
};
|
|
455
455
|
var se = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(se || {});
|
|
456
456
|
const fo = ({ isOpen: t, onClose: o }) => {
|
|
457
|
-
const { common: n, finstrong: r } = C(), { isMobile: l } = He(), { updateUser: s, user: a } = Q(), [d, c] =
|
|
457
|
+
const { common: n, finstrong: r } = C(), { isMobile: l } = He(), { updateUser: s, user: a } = Q(), [d, c] = h.useState(a.credit_score || 0), p = !isNaN(d), _ = () => {
|
|
458
458
|
o(), setTimeout(() => c(a.credit_score || 0), 300);
|
|
459
459
|
}, m = () => {
|
|
460
460
|
!d || d === a.credit_score || s({ ...a, credit_score: d });
|
|
@@ -466,7 +466,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
466
466
|
disablePrimaryButton: !d || !p,
|
|
467
467
|
isOpen: t,
|
|
468
468
|
maxWidth: "xs",
|
|
469
|
-
onClose:
|
|
469
|
+
onClose: _,
|
|
470
470
|
onPrimaryAction: m,
|
|
471
471
|
primaryColor: "primary",
|
|
472
472
|
primaryText: n.save_button,
|
|
@@ -479,7 +479,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
479
479
|
"form",
|
|
480
480
|
{
|
|
481
481
|
onSubmit: (g) => {
|
|
482
|
-
g.preventDefault(), m(),
|
|
482
|
+
g.preventDefault(), m(), _();
|
|
483
483
|
},
|
|
484
484
|
children: /* @__PURE__ */ e(
|
|
485
485
|
ke,
|
|
@@ -519,20 +519,20 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
519
519
|
title: Pe.credit_over_time_title,
|
|
520
520
|
description: Pe.credit_over_time_zero_state_desc
|
|
521
521
|
}
|
|
522
|
-
}[t],
|
|
522
|
+
}[t], _ = {
|
|
523
523
|
savingsOverTime: {
|
|
524
524
|
title: s.key_indicators_save.savings_over_time,
|
|
525
525
|
valueKey: "available_cash"
|
|
526
526
|
},
|
|
527
527
|
debtOverTime: {
|
|
528
|
-
title: s.key_indicators_borrow.
|
|
528
|
+
title: s.key_indicators_borrow.have_manageable_debt_drawer.debt_over_time,
|
|
529
529
|
valueKey: "debt_balance"
|
|
530
530
|
},
|
|
531
531
|
creditOverTime: {
|
|
532
532
|
title: Pe.credit_over_time_title,
|
|
533
533
|
valueKey: "credit_score"
|
|
534
534
|
}
|
|
535
|
-
}[t], m = ln(r,
|
|
535
|
+
}[t], m = ln(r, _.valueKey), g = Math.max(...r.map((v) => v[_.valueKey])), x = () => g >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : g >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: k, leftMargin: y } = x(), b = _.title, { color: f = "none" } = ut(
|
|
536
536
|
l?.credit_score ?? 0,
|
|
537
537
|
n,
|
|
538
538
|
s.credit_score_status
|
|
@@ -578,7 +578,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
578
578
|
}, Ke = S(xo), So = {
|
|
579
579
|
updated_score: "Updated Score"
|
|
580
580
|
}, Co = () => {
|
|
581
|
-
const { healthScoreChange: t } = P(), { user: o } = Q(), { availableWidth: n } = Sn(), { isSmallMobile: r } = He(n), [l, s] =
|
|
581
|
+
const { healthScoreChange: t } = P(), { user: o } = Q(), { availableWidth: n } = Sn(), { isSmallMobile: r } = He(n), [l, s] = h.useState(!1);
|
|
582
582
|
return /* @__PURE__ */ i(u, { sx: { gap: 28 }, children: [
|
|
583
583
|
/* @__PURE__ */ e(
|
|
584
584
|
bo,
|
|
@@ -624,7 +624,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
624
624
|
}, ko = {
|
|
625
625
|
keep_strong_credit_score: "Keep a Strong Credit Score"
|
|
626
626
|
}, wo = () => {
|
|
627
|
-
const { user: t } = Q(), o =
|
|
627
|
+
const { user: t } = Q(), o = _t(t.credit_score ?? null);
|
|
628
628
|
return /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
629
629
|
/* @__PURE__ */ e(Y, { children: ko.keep_strong_credit_score }),
|
|
630
630
|
/* @__PURE__ */ e(Ie, { status: o })
|
|
@@ -640,8 +640,8 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
640
640
|
stickyComponent: d,
|
|
641
641
|
title: c
|
|
642
642
|
}) => {
|
|
643
|
-
const { finstrong: p } = C(), { isCopyLoaded:
|
|
644
|
-
return
|
|
643
|
+
const { finstrong: p } = C(), { isCopyLoaded: _ } = X();
|
|
644
|
+
return _ ? /* @__PURE__ */ i(ie, { isOpen: l, onClose: a, title: r || p.key_indicators, children: [
|
|
645
645
|
(c || n) && /* @__PURE__ */ i(
|
|
646
646
|
u,
|
|
647
647
|
{
|
|
@@ -684,19 +684,19 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
684
684
|
shouldShowBalance: o = !0,
|
|
685
685
|
loadAccounts: n
|
|
686
686
|
}) => {
|
|
687
|
-
const { config: r } = gt(), { accounts: l } = C(), { selectedAccounts: s } = X(), a =
|
|
687
|
+
const { config: r } = gt(), { accounts: l } = C(), { selectedAccounts: s } = X(), a = h.useCallback(
|
|
688
688
|
(c) => {
|
|
689
689
|
t?.(c);
|
|
690
690
|
},
|
|
691
691
|
[t]
|
|
692
|
-
), d =
|
|
692
|
+
), d = h.useMemo(
|
|
693
693
|
() => Array.from(new Set(s.map((c) => c.account_type))).filter(
|
|
694
694
|
(c) => n ? n.includes(c) : !0
|
|
695
695
|
),
|
|
696
696
|
[s, n]
|
|
697
697
|
);
|
|
698
|
-
return s.length ? /* @__PURE__ */ e(
|
|
699
|
-
const { accountsForType: p, totalBalanceForType:
|
|
698
|
+
return s.length ? /* @__PURE__ */ e(h.Fragment, { children: d.map((c) => {
|
|
699
|
+
const { accountsForType: p, totalBalanceForType: _ } = s.reduce(
|
|
700
700
|
(m, g) => (g.account_type === c && (m.accountsForType.push(g), m.totalBalanceForType += g.balance || 0), m),
|
|
701
701
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
702
702
|
);
|
|
@@ -705,7 +705,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
705
705
|
{
|
|
706
706
|
subheader: /* @__PURE__ */ e(On, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
707
707
|
/* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: l.account_types[c] }),
|
|
708
|
-
o && /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: F(
|
|
708
|
+
o && /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: F(_, "0,0.00") })
|
|
709
709
|
] }) }),
|
|
710
710
|
sx: { bgcolor: "background.paper" },
|
|
711
711
|
children: [
|
|
@@ -723,7 +723,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
723
723
|
),
|
|
724
724
|
o && /* @__PURE__ */ e(w, { bold: !0, variant: "body2", children: F(x ?? 0, "0,0.00") })
|
|
725
725
|
] });
|
|
726
|
-
return /* @__PURE__ */ i(
|
|
726
|
+
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
727
727
|
/* @__PURE__ */ e(xt, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Tn, { onClick: () => a(m), children: y }) : y }),
|
|
728
728
|
g !== p.length - 1 && /* @__PURE__ */ e(ee, { variant: "inset" })
|
|
729
729
|
] }, m.guid);
|
|
@@ -735,17 +735,17 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
735
735
|
);
|
|
736
736
|
}) }) : null;
|
|
737
737
|
}, Ft = S(Io), Do = ({ loadAccounts: t, loadMoreLabel: o }) => {
|
|
738
|
-
const n = H(), { config: r } = gt(), { connect: l, finstrong: s } = C(), { accounts: a } = C(), { selectedAccounts: d } = X(), [c, p] =
|
|
738
|
+
const n = H(), { config: r } = gt(), { connect: l, finstrong: s } = C(), { accounts: a } = C(), { selectedAccounts: d } = X(), [c, p] = h.useState(!1), [_, m] = h.useState(!1), g = h.useMemo(
|
|
739
739
|
() => d.filter(
|
|
740
740
|
(y) => t ? t.includes(y.account_type) : !0
|
|
741
741
|
),
|
|
742
742
|
[d, t]
|
|
743
|
-
), x =
|
|
743
|
+
), x = h.useMemo(() => g.slice(0, 3), [g]), k = (y) => {
|
|
744
744
|
const { firstValue: b } = vt(y, a);
|
|
745
745
|
return b;
|
|
746
746
|
};
|
|
747
747
|
return g.length >= 1 ? /* @__PURE__ */ i(E, { children: [
|
|
748
|
-
/* @__PURE__ */ e(A, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: x.map((y, b) => /* @__PURE__ */ i(
|
|
748
|
+
/* @__PURE__ */ e(A, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: x.map((y, b) => /* @__PURE__ */ i(h.Fragment, { children: [
|
|
749
749
|
/* @__PURE__ */ i(xt, { sx: { px: 24 }, children: [
|
|
750
750
|
/* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(pt, { alt: "MX", institutionGuid: y.institution_guid ?? "" }) }),
|
|
751
751
|
/* @__PURE__ */ e(
|
|
@@ -794,12 +794,12 @@ const fo = ({ isOpen: t, onClose: o }) => {
|
|
|
794
794
|
ne,
|
|
795
795
|
{
|
|
796
796
|
onClose: () => m(!1),
|
|
797
|
-
showConnectWidget:
|
|
797
|
+
showConnectWidget: _,
|
|
798
798
|
title: l.mini_title
|
|
799
799
|
}
|
|
800
800
|
)
|
|
801
801
|
] });
|
|
802
|
-
}, $t = S(Do),
|
|
802
|
+
}, $t = S(Do), _e = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ i(
|
|
803
803
|
u,
|
|
804
804
|
{
|
|
805
805
|
sx: {
|
|
@@ -852,15 +852,15 @@ const R = {
|
|
|
852
852
|
{ id: be.Years, label: R.years },
|
|
853
853
|
{ id: be.Days, label: R.days }
|
|
854
854
|
], Bo = ({ total: t }) => {
|
|
855
|
-
const o = Math.ceil((t + 1) / 1e3) * 1e3, [n, r] =
|
|
855
|
+
const o = Math.ceil((t + 1) / 1e3) * 1e3, [n, r] = h.useState(0), [l, s] = h.useState(qe(t)), [a, d] = h.useState(
|
|
856
856
|
qe(t)
|
|
857
|
-
), [c, p] =
|
|
858
|
-
|
|
857
|
+
), [c, p] = h.useState(o), [_, m] = h.useState(un(t)), [g, x] = h.useState(be.Months);
|
|
858
|
+
h.useEffect(() => {
|
|
859
859
|
r(
|
|
860
860
|
Ze({
|
|
861
861
|
contribution: a,
|
|
862
862
|
goalAmount: c,
|
|
863
|
-
goalPeriod:
|
|
863
|
+
goalPeriod: _,
|
|
864
864
|
targetPeriod: g,
|
|
865
865
|
totalSaved: t
|
|
866
866
|
})
|
|
@@ -871,7 +871,7 @@ const R = {
|
|
|
871
871
|
Ze({
|
|
872
872
|
contribution: a,
|
|
873
873
|
goalAmount: c,
|
|
874
|
-
goalPeriod:
|
|
874
|
+
goalPeriod: _,
|
|
875
875
|
targetPeriod: g,
|
|
876
876
|
totalSaved: t
|
|
877
877
|
})
|
|
@@ -879,7 +879,7 @@ const R = {
|
|
|
879
879
|
};
|
|
880
880
|
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit: k, children: /* @__PURE__ */ i(u, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
881
881
|
/* @__PURE__ */ e(
|
|
882
|
-
|
|
882
|
+
_e,
|
|
883
883
|
{
|
|
884
884
|
balance: /* @__PURE__ */ i(u, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
885
885
|
/* @__PURE__ */ e(T, { variant: "h2", children: F(n, "0,0") }),
|
|
@@ -938,7 +938,7 @@ const R = {
|
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
},
|
|
941
|
-
value:
|
|
941
|
+
value: _
|
|
942
942
|
}
|
|
943
943
|
),
|
|
944
944
|
/* @__PURE__ */ e(
|
|
@@ -964,13 +964,13 @@ const R = {
|
|
|
964
964
|
more_accounts: "More Accounts",
|
|
965
965
|
your_savings: "Your Savings"
|
|
966
966
|
}, Fo = () => {
|
|
967
|
-
const { savingsAccounts: t } = fe(), [o, n] =
|
|
967
|
+
const { savingsAccounts: t } = fe(), [o, n] = h.useState(!1), r = h.useMemo(
|
|
968
968
|
() => t.reduce((l, s) => l + (s.balance ?? 0), 0),
|
|
969
969
|
[t]
|
|
970
970
|
);
|
|
971
971
|
return /* @__PURE__ */ i(u, { sx: { gap: 24 }, children: [
|
|
972
972
|
/* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(u, { sx: { gap: 16 }, children: [
|
|
973
|
-
/* @__PURE__ */ e(
|
|
973
|
+
/* @__PURE__ */ e(_e, { balance: r, title: Ce.your_savings }),
|
|
974
974
|
t.length ? /* @__PURE__ */ e($t, { loadAccounts: [Fe.SAVINGS], loadMoreLabel: Ce.connect_accounts }) : /* @__PURE__ */ e(Bn, { onClick: () => n(!0), variant: "contained", children: Ce.connect_accounts })
|
|
975
975
|
] }) }),
|
|
976
976
|
/* @__PURE__ */ e(Ro, { total: r }),
|
|
@@ -1058,7 +1058,7 @@ const R = {
|
|
|
1058
1058
|
), Lo = {
|
|
1059
1059
|
sticky_label: "You have saved"
|
|
1060
1060
|
}, Wo = ["$0", "$250", "$500", "$750", "$1k"], Eo = () => {
|
|
1061
|
-
const { healthScore: t } = P(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n =
|
|
1061
|
+
const { healthScore: t } = P(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = _n(o), r = ht(o);
|
|
1062
1062
|
return /* @__PURE__ */ e(
|
|
1063
1063
|
De,
|
|
1064
1064
|
{
|
|
@@ -1097,23 +1097,23 @@ const R = {
|
|
|
1097
1097
|
width: d = "100%",
|
|
1098
1098
|
zeroState: c = /* @__PURE__ */ e(Ln, {})
|
|
1099
1099
|
}) => {
|
|
1100
|
-
const { getCategoryName: p } = Ee(), { onEvent:
|
|
1100
|
+
const { getCategoryName: p } = Ee(), { onEvent: _ } = Cn(), { categories: m } = C(), { clearExpandedSplits: g, setShowInsights: x, toggleSplit: k } = $n(), y = (v) => {
|
|
1101
1101
|
const O = t.find((M) => M.guid === v);
|
|
1102
1102
|
if (O?.has_been_split) {
|
|
1103
1103
|
k(O.guid);
|
|
1104
1104
|
return;
|
|
1105
1105
|
}
|
|
1106
|
-
|
|
1106
|
+
_(Wn.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
1107
1107
|
account_guid: O?.account_guid,
|
|
1108
1108
|
transaction_guid: v
|
|
1109
1109
|
}), l?.(v);
|
|
1110
|
-
}, b =
|
|
1110
|
+
}, b = h.useRef(null), f = Fn({
|
|
1111
1111
|
count: t.length,
|
|
1112
1112
|
getScrollElement: () => b.current,
|
|
1113
1113
|
estimateSize: (v) => ot + ($e(v, t) ? rt : 0),
|
|
1114
1114
|
overscan: 5
|
|
1115
1115
|
});
|
|
1116
|
-
return
|
|
1116
|
+
return h.useEffect(() => f.measure(), [t]), h.useEffect(() => x(s), [s]), h.useEffect(() => () => g(), []), /* @__PURE__ */ e(kt, { sx: { width: d }, children: /* @__PURE__ */ e(A, { height: n, overflow: "auto", ref: b, width: d, children: /* @__PURE__ */ i(
|
|
1117
1117
|
A,
|
|
1118
1118
|
{
|
|
1119
1119
|
height: (
|
|
@@ -1167,7 +1167,7 @@ const R = {
|
|
|
1167
1167
|
formatDate: r = Ne,
|
|
1168
1168
|
secondaryIcon: l
|
|
1169
1169
|
}) => {
|
|
1170
|
-
const s = H(), { connect: a, finstrong: d } = C(), [c, p] =
|
|
1170
|
+
const s = H(), { connect: a, finstrong: d } = C(), [c, p] = h.useState(!1), [_, m] = h.useState(!1), g = 3, x = t.length > g, k = t.length - g;
|
|
1171
1171
|
return !t || t.length === 0 ? /* @__PURE__ */ i(E, { children: [
|
|
1172
1172
|
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
1173
1173
|
L,
|
|
@@ -1183,7 +1183,7 @@ const R = {
|
|
|
1183
1183
|
ne,
|
|
1184
1184
|
{
|
|
1185
1185
|
onClose: () => m(!1),
|
|
1186
|
-
showConnectWidget:
|
|
1186
|
+
showConnectWidget: _,
|
|
1187
1187
|
title: a.mini_title
|
|
1188
1188
|
}
|
|
1189
1189
|
)
|
|
@@ -1250,7 +1250,7 @@ const R = {
|
|
|
1250
1250
|
children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
|
|
1251
1251
|
k,
|
|
1252
1252
|
" ",
|
|
1253
|
-
d.key_indicators_borrow.
|
|
1253
|
+
d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1254
1254
|
] })
|
|
1255
1255
|
}
|
|
1256
1256
|
) }),
|
|
@@ -1259,7 +1259,7 @@ const R = {
|
|
|
1259
1259
|
{
|
|
1260
1260
|
isOpen: c,
|
|
1261
1261
|
onClose: () => p(!1),
|
|
1262
|
-
title: d.key_indicators_borrow.
|
|
1262
|
+
title: d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1263
1263
|
children: /* @__PURE__ */ e(Ho, { transactions: t })
|
|
1264
1264
|
}
|
|
1265
1265
|
)
|
|
@@ -1271,7 +1271,7 @@ const R = {
|
|
|
1271
1271
|
key_indicators_spend: { pay_bills_on_time_drawer: t }
|
|
1272
1272
|
}
|
|
1273
1273
|
} = C(), { getSpendingFeeTransactions: o, allTransactions: n } = P();
|
|
1274
|
-
return
|
|
1274
|
+
return h.useEffect(() => {
|
|
1275
1275
|
o().finally();
|
|
1276
1276
|
}, []), /* @__PURE__ */ e(E, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ i(
|
|
1277
1277
|
K,
|
|
@@ -1317,7 +1317,7 @@ const R = {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
) });
|
|
1319
1319
|
}, Ko = S(No), jo = () => {
|
|
1320
|
-
const { healthScore: t } = P(), { finstrong: o } = C(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, l =
|
|
1320
|
+
const { healthScore: t } = P(), { finstrong: o } = C(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, l = hn(t.spending_fee_transaction_count);
|
|
1321
1321
|
return /* @__PURE__ */ i(
|
|
1322
1322
|
u,
|
|
1323
1323
|
{
|
|
@@ -1344,7 +1344,7 @@ const R = {
|
|
|
1344
1344
|
const { savingsAndCheckingAccountsBalance: t } = fe(), { finstrong: o } = C();
|
|
1345
1345
|
return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1346
1346
|
/* @__PURE__ */ e(
|
|
1347
|
-
|
|
1347
|
+
_e,
|
|
1348
1348
|
{
|
|
1349
1349
|
balance: t,
|
|
1350
1350
|
title: o.key_indicators_save.drawer_available_balance
|
|
@@ -1360,16 +1360,16 @@ const R = {
|
|
|
1360
1360
|
] });
|
|
1361
1361
|
}, Xo = S(Yo), Uo = () => {
|
|
1362
1362
|
const { finstrong: t } = C(), { healthScore: o, allTransactions: n, loadSpendTransactions: r, loadDebtSpend: l } = P(), { isInitialized: s } = X();
|
|
1363
|
-
|
|
1363
|
+
h.useEffect(() => {
|
|
1364
1364
|
s && (r().finally(), l().finally());
|
|
1365
1365
|
}, [s]);
|
|
1366
|
-
const a =
|
|
1366
|
+
const a = h.useMemo(() => {
|
|
1367
1367
|
const d = n.spend.map((p) => p.transaction), c = n.debtSpend.map((p) => p.transaction);
|
|
1368
1368
|
return [...d, ...c];
|
|
1369
1369
|
}, [n.spend, n.debtSpend]);
|
|
1370
1370
|
return s ? /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1371
1371
|
/* @__PURE__ */ e(
|
|
1372
|
-
|
|
1372
|
+
_e,
|
|
1373
1373
|
{
|
|
1374
1374
|
balance: o.ninety_day_spend / 90,
|
|
1375
1375
|
title: t.key_indicators_save.drawer_daily_spend
|
|
@@ -1378,7 +1378,7 @@ const R = {
|
|
|
1378
1378
|
/* @__PURE__ */ e(Te, { amountColor: "text.primary", transactions: a })
|
|
1379
1379
|
] }) : /* @__PURE__ */ e(te, {});
|
|
1380
1380
|
}, qo = S(Uo), Zo = () => {
|
|
1381
|
-
const [t, o] =
|
|
1381
|
+
const [t, o] = h.useState(0), { finstrong: n } = C();
|
|
1382
1382
|
return /* @__PURE__ */ i(E, { children: [
|
|
1383
1383
|
/* @__PURE__ */ i(K, { children: [
|
|
1384
1384
|
/* @__PURE__ */ i(
|
|
@@ -1527,7 +1527,7 @@ const R = {
|
|
|
1527
1527
|
marginLeft: "auto"
|
|
1528
1528
|
},
|
|
1529
1529
|
children: /* @__PURE__ */ e(T, { variant: "Small", children: V(
|
|
1530
|
-
o.key_indicators_borrow.
|
|
1530
|
+
o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
|
|
1531
1531
|
n
|
|
1532
1532
|
) })
|
|
1533
1533
|
}
|
|
@@ -1535,7 +1535,7 @@ const R = {
|
|
|
1535
1535
|
]
|
|
1536
1536
|
}
|
|
1537
1537
|
),
|
|
1538
|
-
label: o.key_indicators_borrow.
|
|
1538
|
+
label: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_title,
|
|
1539
1539
|
status: s,
|
|
1540
1540
|
statusBarData: [
|
|
1541
1541
|
{
|
|
@@ -1546,14 +1546,14 @@ const R = {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
);
|
|
1548
1548
|
}, nr = S(tr), or = () => {
|
|
1549
|
-
const { healthScore: t, allTransactions: o } = P(), { connect: n, finstrong: r } = C(), [l, s] =
|
|
1549
|
+
const { healthScore: t, allTransactions: o } = P(), { connect: n, finstrong: r } = C(), [l, s] = h.useState(!1);
|
|
1550
1550
|
return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1551
1551
|
/* @__PURE__ */ e(
|
|
1552
|
-
|
|
1552
|
+
_e,
|
|
1553
1553
|
{
|
|
1554
1554
|
balance: t.ninety_day_income,
|
|
1555
1555
|
sx: { flexDirection: "column-reverse" },
|
|
1556
|
-
title: r.key_indicators_borrow.
|
|
1556
|
+
title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_income
|
|
1557
1557
|
}
|
|
1558
1558
|
),
|
|
1559
1559
|
o.income.length ? (
|
|
@@ -1579,14 +1579,14 @@ const R = {
|
|
|
1579
1579
|
)
|
|
1580
1580
|
] });
|
|
1581
1581
|
}, rr = S(or), ar = () => {
|
|
1582
|
-
const { allTransactions: t, healthScore: o } = P(), { connect: n, finstrong: r } = C(), [l, s] =
|
|
1582
|
+
const { allTransactions: t, healthScore: o } = P(), { connect: n, finstrong: r } = C(), [l, s] = h.useState(!1);
|
|
1583
1583
|
return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1584
1584
|
/* @__PURE__ */ e(
|
|
1585
|
-
|
|
1585
|
+
_e,
|
|
1586
1586
|
{
|
|
1587
1587
|
balance: o.ninety_day_debt_spend,
|
|
1588
1588
|
sx: { flexDirection: "column-reverse" },
|
|
1589
|
-
title: r.key_indicators_borrow.
|
|
1589
|
+
title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_payments
|
|
1590
1590
|
}
|
|
1591
1591
|
),
|
|
1592
1592
|
t.debtSpend.length ? (
|
|
@@ -1624,10 +1624,10 @@ const R = {
|
|
|
1624
1624
|
style: r,
|
|
1625
1625
|
...l
|
|
1626
1626
|
}) => {
|
|
1627
|
-
const s = H(), a =
|
|
1627
|
+
const s = H(), a = h.useRef(null), { width: d } = Kn({
|
|
1628
1628
|
width: r.width
|
|
1629
1629
|
});
|
|
1630
|
-
|
|
1630
|
+
h.useLayoutEffect(() => {
|
|
1631
1631
|
const m = new ResizeObserver(() => {
|
|
1632
1632
|
window.requestAnimationFrame(() => {
|
|
1633
1633
|
if (a.current) {
|
|
@@ -1640,7 +1640,7 @@ const R = {
|
|
|
1640
1640
|
a.current && m.unobserve(a.current);
|
|
1641
1641
|
};
|
|
1642
1642
|
}, []);
|
|
1643
|
-
const { formattedComparison: c, formattedMain: p } = o[n.index],
|
|
1643
|
+
const { formattedComparison: c, formattedMain: p } = o[n.index], _ = n.type === 0 ? p : c;
|
|
1644
1644
|
return /* @__PURE__ */ i("g", { children: [
|
|
1645
1645
|
/* @__PURE__ */ e(et.rect, { ...l, fill: t, ref: a, rx: 2, style: r }),
|
|
1646
1646
|
/* @__PURE__ */ e(
|
|
@@ -1653,7 +1653,7 @@ const R = {
|
|
|
1653
1653
|
transform: d.to((m) => `translate(${m / 2}, -5)`),
|
|
1654
1654
|
x: r.x,
|
|
1655
1655
|
y: r.y,
|
|
1656
|
-
children:
|
|
1656
|
+
children: _
|
|
1657
1657
|
}
|
|
1658
1658
|
)
|
|
1659
1659
|
] });
|
|
@@ -1668,7 +1668,7 @@ const R = {
|
|
|
1668
1668
|
totalComparison: d,
|
|
1669
1669
|
totalMain: c
|
|
1670
1670
|
}) => {
|
|
1671
|
-
const p = H(),
|
|
1671
|
+
const p = H(), _ = zn(p.breakpoints.down("xs")), m = h.useMemo(
|
|
1672
1672
|
() => o.sort((f, v) => f.month - v.month).map((f) => {
|
|
1673
1673
|
const v = mn(f.month), O = {
|
|
1674
1674
|
spending_vs_income: {
|
|
@@ -1756,7 +1756,7 @@ const R = {
|
|
|
1756
1756
|
s,
|
|
1757
1757
|
" "
|
|
1758
1758
|
] }),
|
|
1759
|
-
!
|
|
1759
|
+
!_ && c && /* @__PURE__ */ e(T, { bold: !0, variant: "subtitle2", children: c })
|
|
1760
1760
|
] })
|
|
1761
1761
|
] }),
|
|
1762
1762
|
/* @__PURE__ */ i(u, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
@@ -1776,7 +1776,7 @@ const R = {
|
|
|
1776
1776
|
a,
|
|
1777
1777
|
" "
|
|
1778
1778
|
] }),
|
|
1779
|
-
!
|
|
1779
|
+
!_ && d && /* @__PURE__ */ e(T, { bold: !0, variant: "subtitle2", children: d })
|
|
1780
1780
|
] })
|
|
1781
1781
|
] })
|
|
1782
1782
|
] }),
|
|
@@ -1864,8 +1864,8 @@ const R = {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
);
|
|
1866
1866
|
}, cr = () => {
|
|
1867
|
-
const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } = P(), { isInitialized: r } = X(), [l, s] =
|
|
1868
|
-
return
|
|
1867
|
+
const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } = P(), { isInitialized: r } = X(), [l, s] = h.useState(0), { finstrong: a } = C();
|
|
1868
|
+
return h.useEffect(() => {
|
|
1869
1869
|
r && (t().finally(), o().finally());
|
|
1870
1870
|
}, [r]), /* @__PURE__ */ i(E, { children: [
|
|
1871
1871
|
/* @__PURE__ */ i(K, { children: [
|
|
@@ -1884,7 +1884,7 @@ const R = {
|
|
|
1884
1884
|
{
|
|
1885
1885
|
"aria-controls": "income-details-tabpanel-0",
|
|
1886
1886
|
id: "income-details-tab-0",
|
|
1887
|
-
label: a.key_indicators_borrow.
|
|
1887
|
+
label: a.key_indicators_borrow.have_manageable_debt_drawer.income,
|
|
1888
1888
|
sx: { minHeight: 44 }
|
|
1889
1889
|
}
|
|
1890
1890
|
),
|
|
@@ -1893,7 +1893,7 @@ const R = {
|
|
|
1893
1893
|
{
|
|
1894
1894
|
"aria-controls": "debt-payment-details-tabpanel-1",
|
|
1895
1895
|
id: "debt-payment-details-tab-1",
|
|
1896
|
-
label: a.key_indicators_borrow.
|
|
1896
|
+
label: a.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
|
|
1897
1897
|
sx: { minHeight: 44 }
|
|
1898
1898
|
}
|
|
1899
1899
|
)
|
|
@@ -1927,9 +1927,9 @@ const R = {
|
|
|
1927
1927
|
{
|
|
1928
1928
|
chartFor: "debt_payment_vs_income",
|
|
1929
1929
|
data: n,
|
|
1930
|
-
legendLabelComparison: a.key_indicators_borrow.
|
|
1931
|
-
legendLabelMain: a.key_indicators_borrow.
|
|
1932
|
-
title: a.key_indicators_borrow.
|
|
1930
|
+
legendLabelComparison: a.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
|
|
1931
|
+
legendLabelMain: a.key_indicators_borrow.have_manageable_debt_drawer.income,
|
|
1932
|
+
title: a.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
|
|
1933
1933
|
}
|
|
1934
1934
|
),
|
|
1935
1935
|
/* @__PURE__ */ e(Ke, { chartFor: "debtOverTime" })
|
|
@@ -1937,9 +1937,9 @@ const R = {
|
|
|
1937
1937
|
/* @__PURE__ */ e(
|
|
1938
1938
|
we,
|
|
1939
1939
|
{
|
|
1940
|
-
header: a.key_indicators_borrow.
|
|
1940
|
+
header: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
|
|
1941
1941
|
icon: "multiline_chart",
|
|
1942
|
-
subText: a.key_indicators_borrow.
|
|
1942
|
+
subText: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
|
|
1943
1943
|
sx: {
|
|
1944
1944
|
backgroundColor: "background.paper",
|
|
1945
1945
|
borderRadius: "8px",
|
|
@@ -1953,9 +1953,9 @@ const R = {
|
|
|
1953
1953
|
/* @__PURE__ */ e(
|
|
1954
1954
|
we,
|
|
1955
1955
|
{
|
|
1956
|
-
header: a.key_indicators_borrow.
|
|
1956
|
+
header: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
|
|
1957
1957
|
icon: "multiline_chart",
|
|
1958
|
-
subText: a.key_indicators_borrow.
|
|
1958
|
+
subText: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
|
|
1959
1959
|
sx: {
|
|
1960
1960
|
backgroundColor: "background.paper",
|
|
1961
1961
|
borderRadius: "8px",
|
|
@@ -2007,20 +2007,20 @@ const R = {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
);
|
|
2009
2009
|
}, pr = S(dr), ur = () => {
|
|
2010
|
-
const t = H(), { monthlySummaries: o } = P(), { finstrong: n, goals: r, spending: l } = C(), { selectedAccounts: s } = X(), { categories: a, dateRangeCategoryTotals: d, loadDateRangeCategoryTotals: c } = Ee(), { appDataStore: p } = vn(), [
|
|
2011
|
-
|
|
2010
|
+
const t = H(), { monthlySummaries: o } = P(), { finstrong: n, goals: r, spending: l } = C(), { selectedAccounts: s } = X(), { categories: a, dateRangeCategoryTotals: d, loadDateRangeCategoryTotals: c } = Ee(), { appDataStore: p } = vn(), [_, m] = h.useState("");
|
|
2011
|
+
h.useEffect(() => {
|
|
2012
2012
|
c(
|
|
2013
2013
|
s,
|
|
2014
2014
|
It(/* @__PURE__ */ new Date()),
|
|
2015
2015
|
Dt(/* @__PURE__ */ new Date())
|
|
2016
2016
|
).finally();
|
|
2017
2017
|
}, [s]);
|
|
2018
|
-
const g =
|
|
2018
|
+
const g = h.useMemo(
|
|
2019
2019
|
() => jn(a, r, t, d),
|
|
2020
2020
|
[a, d]
|
|
2021
2021
|
), x = (b) => {
|
|
2022
|
-
m(
|
|
2023
|
-
}, { totalSpending: k, totalIncome: y } =
|
|
2022
|
+
m(_ === b ? "" : b);
|
|
2023
|
+
}, { totalSpending: k, totalIncome: y } = h.useMemo(() => o.reduce(
|
|
2024
2024
|
(b, { standard_spend: f = 0, income: v = 0 }) => ({
|
|
2025
2025
|
totalSpending: b.totalSpending + f,
|
|
2026
2026
|
totalIncome: b.totalIncome + v
|
|
@@ -2100,7 +2100,7 @@ const R = {
|
|
|
2100
2100
|
{
|
|
2101
2101
|
data: g,
|
|
2102
2102
|
onSelected: x,
|
|
2103
|
-
selectedId:
|
|
2103
|
+
selectedId: _,
|
|
2104
2104
|
totalLabel: l.total_spending
|
|
2105
2105
|
}
|
|
2106
2106
|
),
|
|
@@ -2109,7 +2109,7 @@ const R = {
|
|
|
2109
2109
|
{
|
|
2110
2110
|
data: g,
|
|
2111
2111
|
onSelected: x,
|
|
2112
|
-
selectedId:
|
|
2112
|
+
selectedId: _
|
|
2113
2113
|
}
|
|
2114
2114
|
)
|
|
2115
2115
|
] })
|
|
@@ -2132,11 +2132,11 @@ const R = {
|
|
|
2132
2132
|
}
|
|
2133
2133
|
)
|
|
2134
2134
|
] });
|
|
2135
|
-
},
|
|
2135
|
+
}, _r = S(ur), Be = {
|
|
2136
2136
|
credit_score_description: "Credit scores usually go from 300 to 850. Think of 700+ as good, 800+ as awesome, and below 600 as needing work. You can often check yours for free with your bank or credit card company.",
|
|
2137
2137
|
maintain_emergency_savings_description: "With at least $1,000 saved, you're ready for surprises, freeing you to save for major goals.",
|
|
2138
2138
|
maintain_emergency_savings_title: "Maintain Emergency Savings"
|
|
2139
|
-
},
|
|
2139
|
+
}, hr = ({
|
|
2140
2140
|
drawerFor: t,
|
|
2141
2141
|
isOpen: o,
|
|
2142
2142
|
onClose: n
|
|
@@ -2146,7 +2146,7 @@ const R = {
|
|
|
2146
2146
|
title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2147
2147
|
description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
2148
2148
|
stickyComponent: /* @__PURE__ */ e(pr, {}),
|
|
2149
|
-
content: /* @__PURE__ */ e(
|
|
2149
|
+
content: /* @__PURE__ */ e(_r, {})
|
|
2150
2150
|
},
|
|
2151
2151
|
payBillsOnTime: {
|
|
2152
2152
|
title: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
|
|
@@ -2161,8 +2161,8 @@ const R = {
|
|
|
2161
2161
|
title: Be.maintain_emergency_savings_title
|
|
2162
2162
|
},
|
|
2163
2163
|
haveManageableDebt: {
|
|
2164
|
-
title: r.key_indicators_borrow.
|
|
2165
|
-
description: r.key_indicators_borrow.
|
|
2164
|
+
title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
|
|
2165
|
+
description: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
|
|
2166
2166
|
stickyComponent: /* @__PURE__ */ e(nr, {}),
|
|
2167
2167
|
content: /* @__PURE__ */ e(lr, {})
|
|
2168
2168
|
},
|
|
@@ -2192,13 +2192,13 @@ const R = {
|
|
|
2192
2192
|
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: s.content })
|
|
2193
2193
|
}
|
|
2194
2194
|
);
|
|
2195
|
-
}, mr = S(
|
|
2195
|
+
}, mr = S(hr), ue = ({
|
|
2196
2196
|
drawerFor: t,
|
|
2197
2197
|
title: o,
|
|
2198
2198
|
description: n,
|
|
2199
2199
|
cardState: r = "MISSING"
|
|
2200
2200
|
}) => {
|
|
2201
|
-
const [l, s] =
|
|
2201
|
+
const [l, s] = h.useState(!1);
|
|
2202
2202
|
return /* @__PURE__ */ i(E, { children: [
|
|
2203
2203
|
/* @__PURE__ */ i(
|
|
2204
2204
|
u,
|
|
@@ -2249,7 +2249,7 @@ const R = {
|
|
|
2249
2249
|
description: p,
|
|
2250
2250
|
title: o.ratio_card_title
|
|
2251
2251
|
};
|
|
2252
|
-
}, { spendToIncomeRatio: l, spendFeeCount: s } =
|
|
2252
|
+
}, { spendToIncomeRatio: l, spendFeeCount: s } = h.useMemo(() => {
|
|
2253
2253
|
const a = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = r(a), c = gn(
|
|
2254
2254
|
n.spending_fee_transaction_count,
|
|
2255
2255
|
o
|
|
@@ -2288,31 +2288,31 @@ const R = {
|
|
|
2288
2288
|
FAIR: n.days_of_cash_fair_description,
|
|
2289
2289
|
OFF_TRACK: n.days_of_cash_off_track_description,
|
|
2290
2290
|
MISSING: n.days_of_cash_missing_description
|
|
2291
|
-
},
|
|
2291
|
+
}, _ = c === "MISSING" ? p[c] : V(p[c], d);
|
|
2292
2292
|
return {
|
|
2293
2293
|
cardState: c,
|
|
2294
|
-
description:
|
|
2294
|
+
description: _,
|
|
2295
2295
|
title: n.days_of_cash_title
|
|
2296
2296
|
};
|
|
2297
2297
|
}, l = (d) => {
|
|
2298
|
-
const c =
|
|
2298
|
+
const c = ht(d), p = {
|
|
2299
2299
|
GOOD: n.emergency_savings_good_description,
|
|
2300
2300
|
FAIR: n.emergency_savings_fair_description,
|
|
2301
2301
|
OFF_TRACK: n.emergency_savings_off_track_description,
|
|
2302
2302
|
MISSING: n.emergency_savings_missing_description
|
|
2303
2303
|
};
|
|
2304
|
-
let
|
|
2305
|
-
return c === "FAIR" && d !== null ?
|
|
2304
|
+
let _;
|
|
2305
|
+
return c === "FAIR" && d !== null ? _ = V(
|
|
2306
2306
|
p[c],
|
|
2307
2307
|
F(d, "0,0.00")
|
|
2308
|
-
) :
|
|
2308
|
+
) : _ = p[c], {
|
|
2309
2309
|
cardState: c,
|
|
2310
|
-
description:
|
|
2310
|
+
description: _,
|
|
2311
2311
|
title: n.emergency_savings_title
|
|
2312
2312
|
};
|
|
2313
|
-
}, { daysOfCashOnHand: s, emergencySavings: a } =
|
|
2314
|
-
const d = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, c = r(d), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null,
|
|
2315
|
-
return { daysOfCashOnHand: c, emergencySavings:
|
|
2313
|
+
}, { daysOfCashOnHand: s, emergencySavings: a } = h.useMemo(() => {
|
|
2314
|
+
const d = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, c = r(d), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, _ = l(p);
|
|
2315
|
+
return { daysOfCashOnHand: c, emergencySavings: _ };
|
|
2316
2316
|
}, [
|
|
2317
2317
|
t.months_of_cash_on_hand,
|
|
2318
2318
|
t.emergency_savings_on_hand,
|
|
@@ -2341,34 +2341,34 @@ const R = {
|
|
|
2341
2341
|
] });
|
|
2342
2342
|
}, fr = S(br), xr = () => {
|
|
2343
2343
|
const { healthScore: t } = P(), { finstrong: o } = C(), { key_indicators_borrow: n } = o, { user: r } = Q(), l = (c) => {
|
|
2344
|
-
const p = bn(c),
|
|
2344
|
+
const p = bn(c), _ = {
|
|
2345
2345
|
GOOD: n.manage_debit_good_description,
|
|
2346
2346
|
FAIR: n.manage_debit_fair_description,
|
|
2347
2347
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
2348
2348
|
MISSING: n.manage_debit_missing_description
|
|
2349
|
-
}, m = p === "FAIR" || p === "OFF_TRACK" ? V(
|
|
2349
|
+
}, m = p === "FAIR" || p === "OFF_TRACK" ? V(_[p], c) : _[p];
|
|
2350
2350
|
return {
|
|
2351
2351
|
cardState: p,
|
|
2352
2352
|
description: m,
|
|
2353
2353
|
title: n.manage_debit_title
|
|
2354
2354
|
};
|
|
2355
2355
|
}, s = (c) => {
|
|
2356
|
-
const p =
|
|
2356
|
+
const p = _t(c), _ = {
|
|
2357
2357
|
GOOD: n.credit_score_good_description,
|
|
2358
2358
|
FAIR: n.credit_score_fair_description,
|
|
2359
2359
|
OFF_TRACK: n.credit_score_off_track_description,
|
|
2360
2360
|
MISSING: n.credit_score_missing_description
|
|
2361
|
-
}, m = p === "MISSING" ?
|
|
2361
|
+
}, m = p === "MISSING" ? _[p] : V(_[p], c);
|
|
2362
2362
|
return {
|
|
2363
2363
|
cardState: p,
|
|
2364
2364
|
description: m,
|
|
2365
2365
|
title: n.credit_score_title
|
|
2366
2366
|
};
|
|
2367
|
-
}, { manageDebtStatus: a, creditScoreStatus: d } =
|
|
2368
|
-
const c = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = l(c),
|
|
2367
|
+
}, { manageDebtStatus: a, creditScoreStatus: d } = h.useMemo(() => {
|
|
2368
|
+
const c = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = l(c), _ = s(r.credit_score || null);
|
|
2369
2369
|
return {
|
|
2370
2370
|
manageDebtStatus: p,
|
|
2371
|
-
creditScoreStatus:
|
|
2371
|
+
creditScoreStatus: _
|
|
2372
2372
|
};
|
|
2373
2373
|
}, [t.debt_to_income_ratio, r.credit_score, n, o]);
|
|
2374
2374
|
return /* @__PURE__ */ i(u, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
@@ -2392,7 +2392,7 @@ const R = {
|
|
|
2392
2392
|
)
|
|
2393
2393
|
] });
|
|
2394
2394
|
}, Sr = S(xr), Cr = () => {
|
|
2395
|
-
const [t, o] =
|
|
2395
|
+
const [t, o] = h.useState(0), { finstrong: n } = C();
|
|
2396
2396
|
return /* @__PURE__ */ i(E, { children: [
|
|
2397
2397
|
/* @__PURE__ */ i(
|
|
2398
2398
|
Ge,
|
|
@@ -2481,13 +2481,13 @@ const R = {
|
|
|
2481
2481
|
incomeTransactions: t,
|
|
2482
2482
|
setCurrentStep: o,
|
|
2483
2483
|
transaction: n
|
|
2484
|
-
}) => /* @__PURE__ */ i(
|
|
2484
|
+
}) => /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2485
2485
|
/* @__PURE__ */ i(u, { children: [
|
|
2486
2486
|
!!t.length && /* @__PURE__ */ e(A, { sx: { pb: 24 }, children: t.reduce((r, l, s) => {
|
|
2487
2487
|
if (l.guid === n.guid) return r;
|
|
2488
2488
|
const a = $e(s, t), d = wt(s, t);
|
|
2489
2489
|
return r.push(
|
|
2490
|
-
/* @__PURE__ */ i(
|
|
2490
|
+
/* @__PURE__ */ i(h.Fragment, { children: [
|
|
2491
2491
|
a && /* @__PURE__ */ e(At, { children: Ne(l.date) }),
|
|
2492
2492
|
/* @__PURE__ */ e(Mt, { transaction: l }),
|
|
2493
2493
|
/* @__PURE__ */ e(ee, { sx: { ml: d ? 44 : 0 } })
|
|
@@ -2625,12 +2625,12 @@ const R = {
|
|
|
2625
2625
|
do_it_later: "Do It Later",
|
|
2626
2626
|
next: "Next"
|
|
2627
2627
|
}, $r = ({ isOpen: t, onClose: o }) => {
|
|
2628
|
-
const { visibleAccounts: n } = fe(), { calculateHealthScore: r } = P(), { finstrong: l } = C(), { setSelectedAccounts: s } = X(), { setDateRange: a } = kn(), { filter: d, setFilter: c, transactions: p } = wn(), { user:
|
|
2628
|
+
const { visibleAccounts: n } = fe(), { calculateHealthScore: r } = P(), { finstrong: l } = C(), { setSelectedAccounts: s } = X(), { setDateRange: a } = kn(), { filter: d, setFilter: c, transactions: p } = wn(), { user: _, userProfile: m, updateUser: g, updateUserProfile: x } = Q(), [k, y] = h.useState(_.credit_score || 0), [b, f] = h.useState(
|
|
2629
2629
|
at
|
|
2630
|
-
), [v, O] =
|
|
2631
|
-
|
|
2630
|
+
), [v, O] = h.useState([]), [M, N] = h.useState(!1), [z, G] = h.useState(!1), [W, ce] = h.useState(_.birthday), [j, oe] = h.useState("");
|
|
2631
|
+
h.useEffect(() => {
|
|
2632
2632
|
a({ start: It(tt()), end: Dt(tt()) });
|
|
2633
|
-
}, []),
|
|
2633
|
+
}, []), h.useEffect(() => {
|
|
2634
2634
|
c({
|
|
2635
2635
|
accounts: n.map((I) => I.guid),
|
|
2636
2636
|
dateRange: {
|
|
@@ -2640,19 +2640,19 @@ const R = {
|
|
|
2640
2640
|
custom: nt
|
|
2641
2641
|
}), s(n);
|
|
2642
2642
|
}, [n]);
|
|
2643
|
-
const le =
|
|
2643
|
+
const le = h.useMemo(
|
|
2644
2644
|
() => p.find((I) => I.guid === j),
|
|
2645
2645
|
[j, p]
|
|
2646
|
-
),
|
|
2646
|
+
), he = h.useMemo(() => ({
|
|
2647
2647
|
[D.ConnectAccounts]: !0,
|
|
2648
2648
|
[D.MonthlyIncome]: !!j,
|
|
2649
|
-
[D.Birthday]: !!
|
|
2650
|
-
[D.CreditScore]: !!
|
|
2651
|
-
})[b.step], [k, b, W, j,
|
|
2649
|
+
[D.Birthday]: !!_.birthday || !!W,
|
|
2650
|
+
[D.CreditScore]: !!_.credit_score || !!k
|
|
2651
|
+
})[b.step], [k, b, W, j, _]), U = n.length > 0, Oe = h.useMemo(() => {
|
|
2652
2652
|
const { step: I } = b;
|
|
2653
2653
|
let $ = 0;
|
|
2654
|
-
return I >= D.MonthlyIncome && U && $++, I >= D.Birthday && v.length && $++, I >= D.CreditScore && (
|
|
2655
|
-
}, [b.step, U, v.length,
|
|
2654
|
+
return I >= D.MonthlyIncome && U && $++, I >= D.Birthday && v.length && $++, I >= D.CreditScore && (_.birthday || _.credit_score) && $++, $;
|
|
2655
|
+
}, [b.step, U, v.length, _.birthday, _.credit_score]), xe = (I) => {
|
|
2656
2656
|
c({
|
|
2657
2657
|
...d,
|
|
2658
2658
|
custom: ($) => I ? Zn($, I) : nt($)
|
|
@@ -2719,10 +2719,10 @@ const R = {
|
|
|
2719
2719
|
const { step: I } = b, $ = I + 1;
|
|
2720
2720
|
switch (I) {
|
|
2721
2721
|
case D.Birthday:
|
|
2722
|
-
W && W !==
|
|
2722
|
+
W && W !== _.birthday && g({ ..._, birthday: W });
|
|
2723
2723
|
break;
|
|
2724
2724
|
case D.CreditScore:
|
|
2725
|
-
k && k !==
|
|
2725
|
+
k && k !== _.credit_score && g({ ..._, credit_score: k }), Ve();
|
|
2726
2726
|
return;
|
|
2727
2727
|
case D.MonthlyIncome:
|
|
2728
2728
|
j && v.length === 0 && O((Ye) => [...Ye, le]);
|
|
@@ -2750,14 +2750,14 @@ const R = {
|
|
|
2750
2750
|
fullWidth: !0,
|
|
2751
2751
|
...Se && !U && { startIcon: /* @__PURE__ */ e(dt, {}) }
|
|
2752
2752
|
}, Kt = !Se || Se && !U;
|
|
2753
|
-
return /* @__PURE__ */ i(
|
|
2753
|
+
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2754
2754
|
/* @__PURE__ */ i(
|
|
2755
2755
|
ie,
|
|
2756
2756
|
{
|
|
2757
2757
|
footerStyles: { px: 24, py: 16 },
|
|
2758
2758
|
hasSecondaryAction: !Se,
|
|
2759
2759
|
isOpen: t,
|
|
2760
|
-
isPrimaryDisabled: !
|
|
2760
|
+
isPrimaryDisabled: !he,
|
|
2761
2761
|
onClose: je,
|
|
2762
2762
|
onSecondaryAction: Ht,
|
|
2763
2763
|
primaryButtonProps: Nt,
|
|
@@ -2771,7 +2771,7 @@ const R = {
|
|
|
2771
2771
|
/* @__PURE__ */ e(Ae, { children: B.calculate_primary }),
|
|
2772
2772
|
/* @__PURE__ */ e(w, { sx: { textAlign: "center" }, variant: "subtitle1", children: B.calculate_secondary })
|
|
2773
2773
|
] }),
|
|
2774
|
-
de && !M && /* @__PURE__ */ i(
|
|
2774
|
+
de && !M && /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2775
2775
|
/* @__PURE__ */ e(
|
|
2776
2776
|
Fr,
|
|
2777
2777
|
{
|
|
@@ -2804,8 +2804,8 @@ const R = {
|
|
|
2804
2804
|
onboarding_subtitle: "By analyzing your spending and saving, FinStrong provides a score and guidance to help you improve your financial habits.",
|
|
2805
2805
|
get_started: "Get Started"
|
|
2806
2806
|
}, Wr = () => {
|
|
2807
|
-
const [t, o] =
|
|
2808
|
-
return /* @__PURE__ */ i(
|
|
2807
|
+
const [t, o] = h.useState(!1);
|
|
2808
|
+
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2809
2809
|
/* @__PURE__ */ i(
|
|
2810
2810
|
u,
|
|
2811
2811
|
{
|
|
@@ -2831,8 +2831,8 @@ const R = {
|
|
|
2831
2831
|
/* @__PURE__ */ e(Lr, { isOpen: t, onClose: () => o(!1) })
|
|
2832
2832
|
] });
|
|
2833
2833
|
}, Er = ({ isOpen: t, onClose: o }) => {
|
|
2834
|
-
const { finstrong: n } = C(), r = H(), { updateUser: l, user: s } = Q(), [a, d] =
|
|
2835
|
-
d(Math.floor(new Date(
|
|
2834
|
+
const { finstrong: n } = C(), r = H(), { updateUser: l, user: s } = Q(), [a, d] = h.useState(s.birthday), c = (_) => {
|
|
2835
|
+
d(Math.floor(new Date(_).getTime() / 1e3));
|
|
2836
2836
|
};
|
|
2837
2837
|
return /* @__PURE__ */ e(
|
|
2838
2838
|
ie,
|
|
@@ -2884,7 +2884,7 @@ const R = {
|
|
|
2884
2884
|
accounts: l,
|
|
2885
2885
|
common: s,
|
|
2886
2886
|
finstrong: a
|
|
2887
|
-
} = C(), { user: d } = Q(), [c, p] =
|
|
2887
|
+
} = C(), { user: d } = Q(), [c, p] = h.useState(null), m = [
|
|
2888
2888
|
{
|
|
2889
2889
|
dynamicCopy: a.add_profile_item,
|
|
2890
2890
|
fallbackLabel: a.monthly_income,
|
|
@@ -2983,8 +2983,8 @@ const R = {
|
|
|
2983
2983
|
newer_spend_to_income_ratio: d,
|
|
2984
2984
|
older_health_score: c,
|
|
2985
2985
|
newer_health_score: p,
|
|
2986
|
-
newer_score_calculated_at:
|
|
2987
|
-
} = t, m = ro(new Date(
|
|
2986
|
+
newer_score_calculated_at: _
|
|
2987
|
+
} = t, m = ro(new Date(_), "MMM d"), g = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", x = () => r === 0 ? V(n.stayed_at, c) : r > 0 ? n.less_spending : n.more_spending, k = () => {
|
|
2988
2988
|
if (r === 0) return null;
|
|
2989
2989
|
const y = r > 0 ? n.up_from : n.down_from, b = V(y, c, p);
|
|
2990
2990
|
return /* @__PURE__ */ i(E, { children: [
|
|
@@ -3071,7 +3071,7 @@ const R = {
|
|
|
3071
3071
|
}, Kr = S(Nr), jr = ({ isOpen: t, onClose: o }) => {
|
|
3072
3072
|
const n = H(), { finstrong: r } = C(), { isCopyLoaded: l, isInitialized: s } = X(), { healthScore: a, healthScoreChangeReports: d, augmentedChartData: c } = P();
|
|
3073
3073
|
if (!l || !s) return /* @__PURE__ */ e(te, {});
|
|
3074
|
-
const p = We(a.health_score || 0, r),
|
|
3074
|
+
const p = We(a.health_score || 0, r), _ = d.slice().reverse();
|
|
3075
3075
|
return /* @__PURE__ */ e(
|
|
3076
3076
|
Rt,
|
|
3077
3077
|
{
|
|
@@ -3117,7 +3117,7 @@ const R = {
|
|
|
3117
3117
|
]
|
|
3118
3118
|
}
|
|
3119
3119
|
),
|
|
3120
|
-
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children:
|
|
3120
|
+
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: _.map((m, g) => /* @__PURE__ */ e(Kr, { report: m }, g)) })
|
|
3121
3121
|
}
|
|
3122
3122
|
);
|
|
3123
3123
|
}, Vr = S(jr), Yr = S(() => {
|
|
@@ -3159,7 +3159,7 @@ const R = {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
) }),
|
|
3161
3161
|
a?.health_score ? /* @__PURE__ */ i(
|
|
3162
|
-
|
|
3162
|
+
_o,
|
|
3163
3163
|
{
|
|
3164
3164
|
sx: {
|
|
3165
3165
|
px: 16,
|
|
@@ -3187,7 +3187,7 @@ const R = {
|
|
|
3187
3187
|
children: /* @__PURE__ */ e(w, { sx: { fontWeight: 600 }, variant: "body1", children: r.accordion_title_text })
|
|
3188
3188
|
}
|
|
3189
3189
|
),
|
|
3190
|
-
/* @__PURE__ */ e(
|
|
3190
|
+
/* @__PURE__ */ e(ho, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(w, { variant: "subtitle1", children: p.scoreContent }) })
|
|
3191
3191
|
]
|
|
3192
3192
|
}
|
|
3193
3193
|
) : /* @__PURE__ */ e(
|
|
@@ -3215,19 +3215,19 @@ const R = {
|
|
|
3215
3215
|
const { visibleAccounts: n } = fe(), { dateRange: r, isDataLoaded: l, loadBudgetData: s, setTheme: a } = yt(), { reloadCategoryTotals: d } = Ee(), {
|
|
3216
3216
|
augmentedChartData: c,
|
|
3217
3217
|
calculateHealthScore: p,
|
|
3218
|
-
healthScore:
|
|
3218
|
+
healthScore: _,
|
|
3219
3219
|
loadAugmentedChartData: m,
|
|
3220
3220
|
loadMonthlySummaries: g
|
|
3221
|
-
} = P(), { finstrong: x, connect: k } = C(), { isCopyLoaded: y, isInitialized: b, selectedAccounts: f, setSelectedAccounts: v } = X(), { isMobile: O } = He(), M = H(), { userProfile: N } = Q(), [z, G] =
|
|
3222
|
-
if (
|
|
3221
|
+
} = P(), { finstrong: x, connect: k } = C(), { isCopyLoaded: y, isInitialized: b, selectedAccounts: f, setSelectedAccounts: v } = X(), { isMobile: O } = He(), M = H(), { userProfile: N } = Q(), [z, G] = h.useState(!1), [W, ce] = h.useState(!1), [j, oe] = h.useState(!1);
|
|
3222
|
+
if (h.useEffect(() => {
|
|
3223
3223
|
a(M);
|
|
3224
|
-
}, []),
|
|
3224
|
+
}, []), h.useEffect(() => v(n), [n]), h.useEffect(() => {
|
|
3225
3225
|
b && (p().finally(), m().finally(), g().finally());
|
|
3226
|
-
}, [b]),
|
|
3226
|
+
}, [b]), h.useEffect(() => {
|
|
3227
3227
|
b && (d(f, r.start, r.end), l || s());
|
|
3228
3228
|
}, [r, l, b, f]), !y || !b) return /* @__PURE__ */ e(te, {});
|
|
3229
3229
|
const le = () => {
|
|
3230
|
-
},
|
|
3230
|
+
}, he = () => G(!0);
|
|
3231
3231
|
return /* @__PURE__ */ i(
|
|
3232
3232
|
En,
|
|
3233
3233
|
{
|
|
@@ -3236,7 +3236,7 @@ const R = {
|
|
|
3236
3236
|
{
|
|
3237
3237
|
iconName: "person",
|
|
3238
3238
|
label: x.profile,
|
|
3239
|
-
onClick:
|
|
3239
|
+
onClick: he
|
|
3240
3240
|
}
|
|
3241
3241
|
],
|
|
3242
3242
|
hasDivider: !0,
|
|
@@ -3307,7 +3307,7 @@ const R = {
|
|
|
3307
3307
|
useCustomMark: !0
|
|
3308
3308
|
}
|
|
3309
3309
|
) : /* @__PURE__ */ e(wr, { onClick: () => oe(!0) }),
|
|
3310
|
-
|
|
3310
|
+
_.health_score !== null && /* @__PURE__ */ e(vr, {})
|
|
3311
3311
|
] }) })
|
|
3312
3312
|
]
|
|
3313
3313
|
}
|
|
@@ -3336,7 +3336,7 @@ export {
|
|
|
3336
3336
|
bo as CreditScoreGraph,
|
|
3337
3337
|
Ot as DialScoreCard,
|
|
3338
3338
|
Pt as FinancialStrengthGraph,
|
|
3339
|
-
|
|
3339
|
+
hi as FinstrongApi,
|
|
3340
3340
|
mi as FinstrongStore,
|
|
3341
3341
|
pi as FinstrongWidget
|
|
3342
3342
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "7.1.4-
|
|
3
|
+
"version": "7.1.4-ram2-alpha-finstrong-credit-score-graph-check",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"author": "MX",
|
|
6
6
|
"license": "MIT",
|