@mx-cartographer/experiences 7.2.15-alpha-ram4-finstrong-testing → 7.2.15-alpha-ram6-finstrong-testing
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/{CategoryStore-2mI6CCiD.mjs → CategoryStore-Bd3zonIb.mjs} +1 -1
- package/dist/categories/index.es.js +1 -1
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/api/CategoryApi.d.ts +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/finstrong/index.es.js +370 -368
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ import { PieChart as _n, BarPlot as hn } from "@mui/x-charts";
|
|
|
6
6
|
import { TrendingUp as gt, ArrowRightAlt as mn, TrendingDown as gn, AccountBalance as yt, ChevronRight as Z, MultilineChart as bt, CreditCard as Ke, CheckCircle as yn, Cancel as bn, Savings as fn, ContentCopy as xn, Add as ft, Cardiology as Sn, Payments as Cn, CalendarMonth as vn, ExpandMore as wn } from "@mxenabled/mx-icons";
|
|
7
7
|
import { P as k, H3 as N, Text as I, InstitutionLogo as xt, H2 as Pe, MerchantLogo as kn, Icon as Mn } from "@mxenabled/mxui";
|
|
8
8
|
import { g as Dn, a as In, r as rt, b as An, c as je, d as St, C as ve, e as we, f as Tn, h as On, i as Rn, j as Ct, k as at, l as Fn, m as it, n as Pn, o as vt, p as Bn, q as wt, s as Te, t as Ln, u as Wn, v as $n, w as zn, A as ee, x as En, P as Gn } from "../FinstrongStore-BbnA6Crl.mjs";
|
|
9
|
-
import { y as
|
|
9
|
+
import { y as ji, F as Yi } from "../FinstrongStore-BbnA6Crl.mjs";
|
|
10
10
|
import * as st from "d3";
|
|
11
11
|
import { observer as S } from "mobx-react-lite";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as w, b as j, p as J, z as F, q as Hn, a as kt, d as Me, m as Ye, g as Nn, f as Kn, j as Ve, h as jn, i as Yn } from "../hooks-C41HAxM5.mjs";
|
|
13
13
|
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
15
|
import $ from "@mui/material/Button";
|
|
@@ -33,7 +33,7 @@ import { g as Tt } from "../AccountFields-CPkGZ3SD.mjs";
|
|
|
33
33
|
import Re from "@mui/material/List";
|
|
34
34
|
import Zn from "@mui/material/ListItemButton";
|
|
35
35
|
import Jn from "@mui/material/ListSubheader";
|
|
36
|
-
import { f as
|
|
36
|
+
import { f as W } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
37
37
|
import { S as ct, F as Ot, e as Qn, R as Rt } from "../RecurringTransactions-CngsRZ3K.mjs";
|
|
38
38
|
import { Button as eo } from "@mui/material";
|
|
39
39
|
import { S as to } from "../StatusBar-BK_uYHAB.mjs";
|
|
@@ -51,28 +51,30 @@ import { ResponsiveChartContainer as po } from "@mui/x-charts/ResponsiveChartCon
|
|
|
51
51
|
import { useSpring as uo, animated as lt } from "@react-spring/web";
|
|
52
52
|
import { startOfMonth as Lt } from "date-fns/startOfMonth";
|
|
53
53
|
import { endOfMonth as Wt } from "date-fns/endOfMonth";
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
54
|
+
import { startOfDay as _o } from "date-fns/startOfDay";
|
|
55
|
+
import { endOfDay as ho } from "date-fns/endOfDay";
|
|
56
|
+
import { g as mo, S as go, b as yo } from "../SpendingLegend-CopEyF2t.mjs";
|
|
57
|
+
import { formatISO as bo } from "date-fns/formatISO";
|
|
58
|
+
import { fromUnixTime as fo } from "date-fns/fromUnixTime";
|
|
57
59
|
import { startOfToday as dt } from "date-fns/startOfToday";
|
|
58
|
-
import { subDays as
|
|
59
|
-
import { c as
|
|
60
|
-
import { LocalizationProvider as
|
|
60
|
+
import { subDays as xo } from "date-fns/subDays";
|
|
61
|
+
import { c as So, d as pt, S as Co, i as vo } from "../ManageIncome-n6qSYGHO.mjs";
|
|
62
|
+
import { LocalizationProvider as wo, DatePicker as ko, StaticDatePicker as Mo } from "@mui/x-date-pickers";
|
|
61
63
|
import { AdapterDateFns as $t } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
62
|
-
import { R as
|
|
63
|
-
import { LocalizationProvider as
|
|
64
|
-
import { format as
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
const
|
|
64
|
+
import { R as Do } from "../RecurringSettings-BwnDPthJ.mjs";
|
|
65
|
+
import { LocalizationProvider as Io } from "@mui/x-date-pickers/LocalizationProvider";
|
|
66
|
+
import { format as Ao } from "date-fns/format";
|
|
67
|
+
import To from "@mui/lab/Timeline";
|
|
68
|
+
import Oo, { timelineItemClasses as Ro } from "@mui/lab/TimelineItem";
|
|
69
|
+
import Fo from "@mui/lab/TimelineConnector";
|
|
70
|
+
import Po from "@mui/lab/TimelineContent";
|
|
71
|
+
import Bo from "@mui/lab/TimelineDot";
|
|
72
|
+
import Lo from "@mui/lab/TimelineSeparator";
|
|
73
|
+
import Wo from "@mui/material/Accordion";
|
|
74
|
+
import $o from "@mui/material/AccordionDetails";
|
|
75
|
+
import zo from "@mui/material/AccordionSummary";
|
|
76
|
+
import Eo from "@mui/material/CardHeader";
|
|
77
|
+
const Go = ({
|
|
76
78
|
dialScoreData: t,
|
|
77
79
|
dataIndex: r,
|
|
78
80
|
arcColor: n,
|
|
@@ -87,32 +89,32 @@ const zo = ({
|
|
|
87
89
|
unitsPerSegment: _,
|
|
88
90
|
isFinacialStrengthGraph: b
|
|
89
91
|
}) => {
|
|
90
|
-
const
|
|
91
|
-
{ offset: "13.62%", color:
|
|
92
|
-
{ offset: "36.67%", color:
|
|
93
|
-
{ offset: "59.72%", color:
|
|
94
|
-
{ offset: "83.46%", color:
|
|
92
|
+
const x = E(), v = [
|
|
93
|
+
{ offset: "13.62%", color: x.palette.chartMono.chartMono2 },
|
|
94
|
+
{ offset: "36.67%", color: x.palette.chartMono.chartMono3 },
|
|
95
|
+
{ offset: "59.72%", color: x.palette.chartMono.chartMono4 },
|
|
96
|
+
{ offset: "83.46%", color: x.palette.chartMono.chartMono5 }
|
|
95
97
|
], [y, D] = Dn(
|
|
96
98
|
t,
|
|
97
99
|
c,
|
|
98
100
|
o,
|
|
99
101
|
r
|
|
100
|
-
), [g,
|
|
102
|
+
), [g, f] = In(
|
|
101
103
|
y,
|
|
102
104
|
D,
|
|
103
105
|
r,
|
|
104
106
|
_,
|
|
105
107
|
h
|
|
106
|
-
), M = st.arc().innerRadius(l).outerRadius(p).startAngle(y).endAngle(D).padAngle(0.02).cornerRadius(8),
|
|
108
|
+
), M = st.arc().innerRadius(l).outerRadius(p).startAngle(y).endAngle(D).padAngle(0.02).cornerRadius(8), P = st.arc().innerRadius(l).outerRadius(p).startAngle(g).endAngle(f).padAngle(0.02).cornerRadius(8);
|
|
107
109
|
return /* @__PURE__ */ i(z, { children: [
|
|
108
110
|
/* @__PURE__ */ e(
|
|
109
111
|
"path",
|
|
110
112
|
{
|
|
111
113
|
d: M({}),
|
|
112
|
-
fill: b ?
|
|
114
|
+
fill: b ? x.palette.divider : n
|
|
113
115
|
}
|
|
114
116
|
),
|
|
115
|
-
b && /* @__PURE__ */ e("path", { d:
|
|
117
|
+
b && /* @__PURE__ */ e("path", { d: P({}), fill: "url(#arcGradient)" }),
|
|
116
118
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
117
119
|
"linearGradient",
|
|
118
120
|
{
|
|
@@ -123,7 +125,7 @@ const zo = ({
|
|
|
123
125
|
x2: a - d * 0.8 * Math.cos(Math.PI / 1.35),
|
|
124
126
|
y1: s + d * 0.8 * Math.sin(Math.PI / 1.35),
|
|
125
127
|
y2: s - d * 0.8 * Math.sin(Math.PI / 1.35),
|
|
126
|
-
children:
|
|
128
|
+
children: v.map((G, H) => /* @__PURE__ */ e("stop", { offset: G.offset, stopColor: G.color }, H))
|
|
127
129
|
}
|
|
128
130
|
) })
|
|
129
131
|
] });
|
|
@@ -141,7 +143,7 @@ const zo = ({
|
|
|
141
143
|
footerRightContent: h,
|
|
142
144
|
isFinacialStrengthGraph: _ = !1
|
|
143
145
|
}) => {
|
|
144
|
-
const b = E(),
|
|
146
|
+
const b = E(), x = -Math.PI / 1.35, v = Math.PI / 1.35, y = v - x, D = y / (a - c), g = (r - c) * D, f = x + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, P = t, G = t * (1 - M), H = P * 2.5, T = H / 2, V = H / 2, re = (G + P) / 2, ae = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [Ce, ie] = An(re, f, ae), X = r / 25, se = {
|
|
145
147
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
146
148
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
147
149
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -165,10 +167,10 @@ const zo = ({
|
|
|
165
167
|
{
|
|
166
168
|
data: o,
|
|
167
169
|
innerRadius: G,
|
|
168
|
-
outerRadius:
|
|
169
|
-
startAngle: Math.round(rt(
|
|
170
|
+
outerRadius: P,
|
|
171
|
+
startAngle: Math.round(rt(x)),
|
|
170
172
|
// Use Math.degrees to convert
|
|
171
|
-
endAngle: Math.round(rt(
|
|
173
|
+
endAngle: Math.round(rt(v))
|
|
172
174
|
// Use Math.degrees to convert
|
|
173
175
|
}
|
|
174
176
|
],
|
|
@@ -178,19 +180,19 @@ const zo = ({
|
|
|
178
180
|
},
|
|
179
181
|
slots: {
|
|
180
182
|
pieArc: (he) => /* @__PURE__ */ e(
|
|
181
|
-
|
|
183
|
+
Go,
|
|
182
184
|
{
|
|
183
185
|
arcColor: he.color,
|
|
184
186
|
arcRadius: t,
|
|
185
|
-
arcStartAngle:
|
|
187
|
+
arcStartAngle: x,
|
|
186
188
|
centerX: T,
|
|
187
189
|
centerY: V,
|
|
188
190
|
dataIndex: he.dataIndex,
|
|
189
191
|
dialScoreData: o,
|
|
190
192
|
innerArcRadius: G,
|
|
191
193
|
isFinacialStrengthGraph: _,
|
|
192
|
-
outterArcRadius:
|
|
193
|
-
progressEndAngle:
|
|
194
|
+
outterArcRadius: P,
|
|
195
|
+
progressEndAngle: f,
|
|
194
196
|
totalAngularSpan: y,
|
|
195
197
|
unitsPerSegment: X
|
|
196
198
|
}
|
|
@@ -311,7 +313,7 @@ const zo = ({
|
|
|
311
313
|
{ id: 2, label: "Group B", value: 25 },
|
|
312
314
|
{ id: 3, label: "Group C", value: 25 },
|
|
313
315
|
{ id: 4, label: "Group D", value: 25 }
|
|
314
|
-
], { finstrong: a } =
|
|
316
|
+
], { finstrong: a } = w(), s = je(n, a);
|
|
315
317
|
return /* @__PURE__ */ e(
|
|
316
318
|
zt,
|
|
317
319
|
{
|
|
@@ -325,7 +327,7 @@ const zo = ({
|
|
|
325
327
|
}
|
|
326
328
|
);
|
|
327
329
|
}
|
|
328
|
-
),
|
|
330
|
+
), Ho = S(
|
|
329
331
|
({
|
|
330
332
|
arcRadius: t,
|
|
331
333
|
size: r = "L",
|
|
@@ -365,7 +367,7 @@ const zo = ({
|
|
|
365
367
|
value: 12,
|
|
366
368
|
color: d ? ve.EXCEPTIONAL : we.EXCEPTIONAL
|
|
367
369
|
}
|
|
368
|
-
], { finstrong: p } =
|
|
370
|
+
], { finstrong: p } = w(), { isCopyLoaded: h } = j();
|
|
369
371
|
if (!h) return /* @__PURE__ */ e(Q, {});
|
|
370
372
|
const { status: _, color: b = "none" } = St(
|
|
371
373
|
n,
|
|
@@ -399,7 +401,7 @@ const zo = ({
|
|
|
399
401
|
description: s,
|
|
400
402
|
sx: d
|
|
401
403
|
}) => {
|
|
402
|
-
const [l, p] = m.useState(!1), { connect: h, finstrong: _ } =
|
|
404
|
+
const [l, p] = m.useState(!1), { connect: h, finstrong: _ } = w();
|
|
403
405
|
return t ? /* @__PURE__ */ i(
|
|
404
406
|
K,
|
|
405
407
|
{
|
|
@@ -464,8 +466,8 @@ const zo = ({
|
|
|
464
466
|
) : null;
|
|
465
467
|
};
|
|
466
468
|
var _e = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(_e || {});
|
|
467
|
-
const
|
|
468
|
-
const { common: n, finstrong: o } =
|
|
469
|
+
const No = ({ isOpen: t, onClose: r }) => {
|
|
470
|
+
const { common: n, finstrong: o } = w(), { isMobile: c } = Ue(), { updateUser: a, user: s } = J(), [d, l] = m.useState(s.credit_score || 0), p = !isNaN(d), h = () => {
|
|
469
471
|
r(), setTimeout(() => l(s.credit_score || 0), 300);
|
|
470
472
|
}, _ = () => {
|
|
471
473
|
!d || d === s.credit_score || a({ ...s, credit_score: d });
|
|
@@ -510,11 +512,11 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
510
512
|
)
|
|
511
513
|
}
|
|
512
514
|
);
|
|
513
|
-
}, Gt = S(
|
|
515
|
+
}, Gt = S(No), ze = {
|
|
514
516
|
credit_over_time_title: "Your Credit Over Time",
|
|
515
517
|
credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
|
|
516
|
-
},
|
|
517
|
-
const r = E(), n = r.palette.mode === "dark", { monthlySummaries: o } = F(), { user: c } = J(), { finstrong: a } =
|
|
518
|
+
}, Ko = ({ chartFor: t }) => {
|
|
519
|
+
const r = E(), n = r.palette.mode === "dark", { monthlySummaries: o } = F(), { user: c } = J(), { finstrong: a } = w(), [s, { width: d }] = It(), l = {
|
|
518
520
|
savingsOverTime: {
|
|
519
521
|
icon: /* @__PURE__ */ e(gt, { size: 48, sx: { marginBottom: 8 } }),
|
|
520
522
|
title: a.key_indicators_save.zero_state_title,
|
|
@@ -543,22 +545,22 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
543
545
|
title: ze.credit_over_time_title,
|
|
544
546
|
valueKey: "credit_score"
|
|
545
547
|
}
|
|
546
|
-
}[t], _ = Tn(o, h.valueKey), b = Math.max(...o.map((M) => M[h.valueKey])),
|
|
547
|
-
let
|
|
548
|
+
}[t], _ = Tn(o, h.valueKey), b = Math.max(...o.map((M) => M[h.valueKey])), x = () => b >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : b >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: v, leftMargin: y } = x(), D = h.title, g = t === "creditOverTime";
|
|
549
|
+
let f;
|
|
548
550
|
if (g) {
|
|
549
551
|
const { color: M } = St(
|
|
550
552
|
c?.credit_score ?? 0,
|
|
551
553
|
n,
|
|
552
554
|
a.credit_score_status
|
|
553
555
|
);
|
|
554
|
-
|
|
556
|
+
f = M;
|
|
555
557
|
}
|
|
556
558
|
return /* @__PURE__ */ e(K, { ref: s, sx: { backgroundColor: "background.paper" }, children: _.length >= 1 ? /* @__PURE__ */ i(u, { gap: 8, sx: { pl: 18 }, children: [
|
|
557
559
|
/* @__PURE__ */ e(k, { sx: { pb: 8, pt: 16 }, variant: "h3", children: D }),
|
|
558
560
|
/* @__PURE__ */ e(
|
|
559
561
|
Xe,
|
|
560
562
|
{
|
|
561
|
-
areaColor:
|
|
563
|
+
areaColor: f,
|
|
562
564
|
axisColor: r.palette.divider,
|
|
563
565
|
baseline: "min",
|
|
564
566
|
chartFor: t,
|
|
@@ -587,7 +589,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
587
589
|
showYAxis: g,
|
|
588
590
|
showYAxisTicks: g,
|
|
589
591
|
useCustomMark: !0,
|
|
590
|
-
valueFormatterString: g ? void 0 :
|
|
592
|
+
valueFormatterString: g ? void 0 : v,
|
|
591
593
|
width: d < 342 ? d - 48 : 342
|
|
592
594
|
}
|
|
593
595
|
)
|
|
@@ -596,13 +598,13 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
596
598
|
/* @__PURE__ */ e(k, { fontWeight: 600, variant: "body1", children: l.title }),
|
|
597
599
|
/* @__PURE__ */ e(k, { align: "center", variant: "subtitle1", children: l.description })
|
|
598
600
|
] }) });
|
|
599
|
-
}, Je = S(
|
|
601
|
+
}, Je = S(Ko), jo = {
|
|
600
602
|
updated_score: "Updated Score"
|
|
601
|
-
},
|
|
603
|
+
}, Yo = () => {
|
|
602
604
|
const { healthScoreChange: t } = F(), { user: r } = J(), { availableWidth: n } = Hn(), { isSmallMobile: o } = Ue(n), [c, a] = m.useState(!1);
|
|
603
605
|
return /* @__PURE__ */ i(u, { sx: { gap: 28 }, children: [
|
|
604
606
|
/* @__PURE__ */ e(
|
|
605
|
-
|
|
607
|
+
Ho,
|
|
606
608
|
{
|
|
607
609
|
arcRadius: o ? 124 : 154,
|
|
608
610
|
footerCenterContent: t,
|
|
@@ -610,12 +612,12 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
610
612
|
size: o ? "M" : "L"
|
|
611
613
|
}
|
|
612
614
|
),
|
|
613
|
-
/* @__PURE__ */ e($, { onClick: () => a(!0), variant: "contained", children:
|
|
615
|
+
/* @__PURE__ */ e($, { onClick: () => a(!0), variant: "contained", children: jo.updated_score }),
|
|
614
616
|
/* @__PURE__ */ e(Gt, { isOpen: c, onClose: () => a(!1) }),
|
|
615
617
|
/* @__PURE__ */ e(Je, { chartFor: "creditOverTime" })
|
|
616
618
|
] });
|
|
617
|
-
},
|
|
618
|
-
const { finstrong: r } =
|
|
619
|
+
}, Vo = S(Yo), Le = ({ status: t }) => {
|
|
620
|
+
const { finstrong: r } = w(), n = On(Rn[t]), o = {
|
|
619
621
|
GOOD: r.key_indicators_good,
|
|
620
622
|
FAIR: r.key_indicators_fair,
|
|
621
623
|
OFF_TRACK: r.key_indicators_off_track,
|
|
@@ -642,15 +644,15 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
642
644
|
variant: "filled"
|
|
643
645
|
}
|
|
644
646
|
);
|
|
645
|
-
},
|
|
647
|
+
}, Xo = {
|
|
646
648
|
keep_strong_credit_score: "Keep a Strong Credit Score"
|
|
647
|
-
},
|
|
649
|
+
}, qo = () => {
|
|
648
650
|
const { user: t } = J(), r = Ct(t.credit_score ?? null);
|
|
649
651
|
return /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
650
|
-
/* @__PURE__ */ e(N, { children:
|
|
652
|
+
/* @__PURE__ */ e(N, { children: Xo.keep_strong_credit_score }),
|
|
651
653
|
/* @__PURE__ */ e(Le, { status: r })
|
|
652
654
|
] });
|
|
653
|
-
},
|
|
655
|
+
}, Uo = S(qo), Zo = ({
|
|
654
656
|
additionalContent: t,
|
|
655
657
|
connectTitle: r,
|
|
656
658
|
connectDescription: n,
|
|
@@ -664,8 +666,8 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
664
666
|
title: h,
|
|
665
667
|
drawerType: _
|
|
666
668
|
}) => {
|
|
667
|
-
const { finstrong: b } =
|
|
668
|
-
return
|
|
669
|
+
const { finstrong: b } = w(), { isCopyLoaded: x } = j();
|
|
670
|
+
return x ? /* @__PURE__ */ i(te, { isOpen: s, onClose: l, title: a || b.key_indicators, children: [
|
|
669
671
|
(h || c) && /* @__PURE__ */ i(
|
|
670
672
|
u,
|
|
671
673
|
{
|
|
@@ -706,12 +708,12 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
706
708
|
)
|
|
707
709
|
] })
|
|
708
710
|
] }) : /* @__PURE__ */ e(Q, {});
|
|
709
|
-
}, Ht = S(
|
|
711
|
+
}, Ht = S(Zo), Jo = ({
|
|
710
712
|
onClick: t,
|
|
711
713
|
shouldShowBalance: r = !0,
|
|
712
714
|
loadAccounts: n
|
|
713
715
|
}) => {
|
|
714
|
-
const { config: o } = kt(), { accounts: c } =
|
|
716
|
+
const { config: o } = kt(), { accounts: c } = w(), { selectedAccounts: a } = j(), s = m.useCallback(
|
|
715
717
|
(l) => {
|
|
716
718
|
t?.(l);
|
|
717
719
|
},
|
|
@@ -732,23 +734,23 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
732
734
|
{
|
|
733
735
|
subheader: /* @__PURE__ */ e(Jn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
734
736
|
/* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: c.account_types[l] }),
|
|
735
|
-
r && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children:
|
|
737
|
+
r && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: W(h, "0,0.00") })
|
|
736
738
|
] }) }),
|
|
737
739
|
sx: { bgcolor: "background.paper" },
|
|
738
740
|
children: [
|
|
739
741
|
p.map((_, b) => {
|
|
740
|
-
const { firstValue:
|
|
742
|
+
const { firstValue: x } = Tt(_, c), v = Dt(_, {
|
|
741
743
|
allowNickname: o?.show_account_nicknames_in_master
|
|
742
744
|
}), y = /* @__PURE__ */ i(z, { children: [
|
|
743
745
|
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid: _.institution_guid ?? "" }) }),
|
|
744
746
|
/* @__PURE__ */ e(
|
|
745
747
|
be,
|
|
746
748
|
{
|
|
747
|
-
primary: `${
|
|
749
|
+
primary: `${v}${_.account_number ? ` *${_.account_number}` : ""}`,
|
|
748
750
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
749
751
|
}
|
|
750
752
|
),
|
|
751
|
-
r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children:
|
|
753
|
+
r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: W(x ?? 0, "0,0.00") })
|
|
752
754
|
] });
|
|
753
755
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
754
756
|
/* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Zn, { onClick: () => s(_), children: y }) : y }),
|
|
@@ -761,18 +763,18 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
761
763
|
l
|
|
762
764
|
);
|
|
763
765
|
}) }) : null;
|
|
764
|
-
}, Nt = S(
|
|
765
|
-
const n = E(), { config: o } = kt(), { connect: c, finstrong: a } =
|
|
766
|
+
}, Nt = S(Jo), Qo = ({ loadAccounts: t, loadMoreLabel: r }) => {
|
|
767
|
+
const n = E(), { config: o } = kt(), { connect: c, finstrong: a } = w(), { accounts: s } = w(), { selectedAccounts: d } = j(), [l, p] = m.useState(!1), [h, _] = m.useState(!1), b = m.useMemo(
|
|
766
768
|
() => d.filter(
|
|
767
769
|
(y) => t ? t.includes(y.account_type) : !0
|
|
768
770
|
),
|
|
769
771
|
[d, t]
|
|
770
|
-
),
|
|
772
|
+
), x = m.useMemo(() => b.slice(0, 3), [b]), v = (y) => {
|
|
771
773
|
const { firstValue: D } = Tt(y, s);
|
|
772
774
|
return D;
|
|
773
775
|
};
|
|
774
776
|
return b.length >= 1 ? /* @__PURE__ */ i(z, { children: [
|
|
775
|
-
/* @__PURE__ */ e(C, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children:
|
|
777
|
+
/* @__PURE__ */ e(C, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: x.map((y, D) => /* @__PURE__ */ i(m.Fragment, { children: [
|
|
776
778
|
/* @__PURE__ */ i(ye, { sx: { px: 24 }, children: [
|
|
777
779
|
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid: y.institution_guid ?? "" }) }),
|
|
778
780
|
/* @__PURE__ */ e(
|
|
@@ -785,9 +787,9 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
785
787
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
786
788
|
}
|
|
787
789
|
),
|
|
788
|
-
/* @__PURE__ */ e(k, { bold: !0, variant: "body2", children:
|
|
790
|
+
/* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: W(v(y), "0,0.00") })
|
|
789
791
|
] }),
|
|
790
|
-
D <
|
|
792
|
+
D < x.length - 1 && /* @__PURE__ */ e(ne, { variant: "inset" })
|
|
791
793
|
] }, y.guid)) }),
|
|
792
794
|
b.length > 3 && /* @__PURE__ */ i(z, { children: [
|
|
793
795
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
@@ -826,7 +828,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
826
828
|
}
|
|
827
829
|
)
|
|
828
830
|
] });
|
|
829
|
-
}, Kt = S(
|
|
831
|
+
}, Kt = S(Qo), Se = ({ balance: t, title: r, sx: n }) => /* @__PURE__ */ i(
|
|
830
832
|
u,
|
|
831
833
|
{
|
|
832
834
|
sx: {
|
|
@@ -839,13 +841,13 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
839
841
|
...n
|
|
840
842
|
},
|
|
841
843
|
children: [
|
|
842
|
-
typeof t == "number" ? /* @__PURE__ */ e(k, { variant: "h2", children:
|
|
844
|
+
typeof t == "number" ? /* @__PURE__ */ e(k, { variant: "h2", children: W(t, "0,0.00") }) : t,
|
|
843
845
|
/* @__PURE__ */ e(k, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: r })
|
|
844
846
|
]
|
|
845
847
|
}
|
|
846
848
|
);
|
|
847
849
|
var O = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(O || {}), ke = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(ke || {}), U = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(U || {});
|
|
848
|
-
const
|
|
850
|
+
const L = {
|
|
849
851
|
bi_weekly: "Bi-Weekly",
|
|
850
852
|
calculate: "Calculate",
|
|
851
853
|
daily: "Daily",
|
|
@@ -864,24 +866,24 @@ const B = {
|
|
|
864
866
|
suggested_goal: "Suggested Goal: $25,000",
|
|
865
867
|
weekly: "Weekly",
|
|
866
868
|
years: "Years"
|
|
867
|
-
}, Jo = [
|
|
868
|
-
{ id: U.Monthly, label: B.monthly },
|
|
869
|
-
{ id: U.BiWeekly, label: B.bi_weekly },
|
|
870
|
-
{ id: U.Weekly, label: B.weekly },
|
|
871
|
-
{ id: U.Daily, label: B.daily }
|
|
872
|
-
], Qo = {
|
|
873
|
-
[U.Monthly]: B.estimated_period_monthly,
|
|
874
|
-
[U.BiWeekly]: B.estimated_period_bi_weekly,
|
|
875
|
-
[U.Weekly]: B.estimated_period_weekly,
|
|
876
|
-
[U.Daily]: B.estimated_period_daily
|
|
877
869
|
}, er = [
|
|
878
|
-
{ id:
|
|
879
|
-
{ id:
|
|
880
|
-
{ id:
|
|
881
|
-
|
|
870
|
+
{ id: U.Monthly, label: L.monthly },
|
|
871
|
+
{ id: U.BiWeekly, label: L.bi_weekly },
|
|
872
|
+
{ id: U.Weekly, label: L.weekly },
|
|
873
|
+
{ id: U.Daily, label: L.daily }
|
|
874
|
+
], tr = {
|
|
875
|
+
[U.Monthly]: L.estimated_period_monthly,
|
|
876
|
+
[U.BiWeekly]: L.estimated_period_bi_weekly,
|
|
877
|
+
[U.Weekly]: L.estimated_period_weekly,
|
|
878
|
+
[U.Daily]: L.estimated_period_daily
|
|
879
|
+
}, nr = [
|
|
880
|
+
{ id: ke.Months, label: L.months },
|
|
881
|
+
{ id: ke.Years, label: L.years },
|
|
882
|
+
{ id: ke.Days, label: L.days }
|
|
883
|
+
], or = ({ total: t }) => {
|
|
882
884
|
const r = Math.ceil((t + 1) / 1e3) * 1e3, [n, o] = m.useState(0), [c, a] = m.useState(at(t)), [s, d] = m.useState(
|
|
883
885
|
at(t)
|
|
884
|
-
), [l, p] = m.useState(r), [h, _] = m.useState(Fn(t)), [b,
|
|
886
|
+
), [l, p] = m.useState(r), [h, _] = m.useState(Fn(t)), [b, x] = m.useState(ke.Months);
|
|
885
887
|
m.useEffect(() => {
|
|
886
888
|
o(
|
|
887
889
|
it({
|
|
@@ -893,7 +895,7 @@ const B = {
|
|
|
893
895
|
})
|
|
894
896
|
), a(s);
|
|
895
897
|
}, []);
|
|
896
|
-
const
|
|
898
|
+
const v = (y) => {
|
|
897
899
|
y.preventDefault(), o(
|
|
898
900
|
it({
|
|
899
901
|
contribution: s,
|
|
@@ -904,42 +906,42 @@ const B = {
|
|
|
904
906
|
})
|
|
905
907
|
), a(s);
|
|
906
908
|
};
|
|
907
|
-
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit:
|
|
909
|
+
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit: v, children: /* @__PURE__ */ i(u, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
908
910
|
/* @__PURE__ */ e(
|
|
909
911
|
Se,
|
|
910
912
|
{
|
|
911
913
|
balance: /* @__PURE__ */ i(u, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
912
|
-
/* @__PURE__ */ e(I, { variant: "h2", children:
|
|
914
|
+
/* @__PURE__ */ e(I, { variant: "h2", children: W(n, "0,0") }),
|
|
913
915
|
/* @__PURE__ */ i(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
914
916
|
"/",
|
|
915
|
-
|
|
917
|
+
tr[c]
|
|
916
918
|
] })
|
|
917
919
|
] }),
|
|
918
|
-
title:
|
|
920
|
+
title: L.estimated_contribution
|
|
919
921
|
}
|
|
920
922
|
),
|
|
921
923
|
/* @__PURE__ */ e(
|
|
922
924
|
Oe,
|
|
923
925
|
{
|
|
924
|
-
"aria-label":
|
|
925
|
-
helperText:
|
|
926
|
+
"aria-label": L.savings_goal,
|
|
927
|
+
helperText: L.suggested_goal,
|
|
926
928
|
inputProps: {
|
|
927
929
|
noValidate: !0,
|
|
928
930
|
pattern: "[0-9]*"
|
|
929
931
|
},
|
|
930
|
-
label:
|
|
932
|
+
label: L.savings_goal,
|
|
931
933
|
onChange: (y) => {
|
|
932
934
|
y.target.value && p(Number(y.target.value.replace(/[^0-9]/g, "")));
|
|
933
935
|
},
|
|
934
|
-
value: l ?
|
|
936
|
+
value: l ? W(l, "0,0") : ""
|
|
935
937
|
}
|
|
936
938
|
),
|
|
937
939
|
/* @__PURE__ */ e(
|
|
938
940
|
ct,
|
|
939
941
|
{
|
|
940
|
-
label:
|
|
942
|
+
label: L.how_often_contribute,
|
|
941
943
|
onChange: d,
|
|
942
|
-
options:
|
|
944
|
+
options: er,
|
|
943
945
|
required: !0,
|
|
944
946
|
value: s
|
|
945
947
|
}
|
|
@@ -948,13 +950,13 @@ const B = {
|
|
|
948
950
|
/* @__PURE__ */ e(
|
|
949
951
|
Oe,
|
|
950
952
|
{
|
|
951
|
-
"aria-label":
|
|
953
|
+
"aria-label": L.meet_your_goal_within,
|
|
952
954
|
fullWidth: !0,
|
|
953
955
|
inputProps: {
|
|
954
956
|
noValidate: !0,
|
|
955
957
|
pattern: "[0-9]*"
|
|
956
958
|
},
|
|
957
|
-
label:
|
|
959
|
+
label: L.meet_your_goal_within,
|
|
958
960
|
onChange: (y) => _(Number(y.target.value)),
|
|
959
961
|
sx: {
|
|
960
962
|
"& .MuiInputBase-root": {
|
|
@@ -980,17 +982,17 @@ const B = {
|
|
|
980
982
|
}
|
|
981
983
|
}
|
|
982
984
|
},
|
|
983
|
-
children: /* @__PURE__ */ e(ct, { label: "", onChange:
|
|
985
|
+
children: /* @__PURE__ */ e(ct, { label: "", onChange: x, options: nr, value: b })
|
|
984
986
|
}
|
|
985
987
|
)
|
|
986
988
|
] }),
|
|
987
|
-
/* @__PURE__ */ e($, { fullWidth: !0, onClick:
|
|
989
|
+
/* @__PURE__ */ e($, { fullWidth: !0, onClick: v, type: "submit", variant: "contained", children: L.calculate })
|
|
988
990
|
] }) }) });
|
|
989
|
-
},
|
|
991
|
+
}, rr = S(or), Ae = {
|
|
990
992
|
connect_accounts: "Connect Accounts",
|
|
991
993
|
more_accounts: "More Accounts",
|
|
992
994
|
your_savings: "Your Savings"
|
|
993
|
-
},
|
|
995
|
+
}, ar = () => {
|
|
994
996
|
const { savingsAccounts: t } = Me(), [r, n] = m.useState(!1), o = m.useMemo(
|
|
995
997
|
() => t.reduce((c, a) => c + (a.balance ?? 0), 0),
|
|
996
998
|
[t]
|
|
@@ -1000,7 +1002,7 @@ const B = {
|
|
|
1000
1002
|
/* @__PURE__ */ e(Se, { balance: o, title: Ae.your_savings }),
|
|
1001
1003
|
t.length ? /* @__PURE__ */ e(Kt, { loadAccounts: [He.SAVINGS], loadMoreLabel: Ae.connect_accounts }) : /* @__PURE__ */ e(eo, { onClick: () => n(!0), variant: "contained", children: Ae.connect_accounts })
|
|
1002
1004
|
] }) }),
|
|
1003
|
-
/* @__PURE__ */ e(
|
|
1005
|
+
/* @__PURE__ */ e(rr, { total: o }),
|
|
1004
1006
|
/* @__PURE__ */ e(
|
|
1005
1007
|
oe,
|
|
1006
1008
|
{
|
|
@@ -1010,7 +1012,7 @@ const B = {
|
|
|
1010
1012
|
}
|
|
1011
1013
|
)
|
|
1012
1014
|
] });
|
|
1013
|
-
},
|
|
1015
|
+
}, ir = S(ar), We = S(
|
|
1014
1016
|
({ label: t, value: r, status: n, bottomComponent: o, statusBarData: c = [] }) => {
|
|
1015
1017
|
const a = {
|
|
1016
1018
|
GOOD: {
|
|
@@ -1070,14 +1072,14 @@ const B = {
|
|
|
1070
1072
|
}
|
|
1071
1073
|
);
|
|
1072
1074
|
}
|
|
1073
|
-
),
|
|
1075
|
+
), sr = {
|
|
1074
1076
|
sticky_label: "You have saved"
|
|
1075
|
-
},
|
|
1077
|
+
}, cr = ["$0", "$250", "$500", "$750", "$1k"], lr = () => {
|
|
1076
1078
|
const { healthScore: t } = F(), r = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = Pn(r), o = vt(r);
|
|
1077
1079
|
return /* @__PURE__ */ e(
|
|
1078
1080
|
We,
|
|
1079
1081
|
{
|
|
1080
|
-
bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children:
|
|
1082
|
+
bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: cr.map((c) => /* @__PURE__ */ i(u, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1081
1083
|
/* @__PURE__ */ e(
|
|
1082
1084
|
ne,
|
|
1083
1085
|
{
|
|
@@ -1091,17 +1093,17 @@ const B = {
|
|
|
1091
1093
|
),
|
|
1092
1094
|
/* @__PURE__ */ e(I, { variant: "caption", children: c })
|
|
1093
1095
|
] }, c)) }),
|
|
1094
|
-
label:
|
|
1096
|
+
label: sr.sticky_label,
|
|
1095
1097
|
status: o,
|
|
1096
1098
|
statusBarData: [
|
|
1097
1099
|
{
|
|
1098
1100
|
percentage: n
|
|
1099
1101
|
}
|
|
1100
1102
|
],
|
|
1101
|
-
value:
|
|
1103
|
+
value: W(r ?? 0, "0,0.00")
|
|
1102
1104
|
}
|
|
1103
1105
|
);
|
|
1104
|
-
},
|
|
1106
|
+
}, dr = S(lr), ut = 65, _t = 34, pr = ({
|
|
1105
1107
|
transactions: t,
|
|
1106
1108
|
bgcolor: r,
|
|
1107
1109
|
height: n = "calc(100dvh - 36px)",
|
|
@@ -1112,23 +1114,23 @@ const B = {
|
|
|
1112
1114
|
width: d = "100%",
|
|
1113
1115
|
zeroState: l = /* @__PURE__ */ e(ro, {})
|
|
1114
1116
|
}) => {
|
|
1115
|
-
const { getCategoryName: p } = Ye(), { onEvent: h } = Nn(), { categories: _ } =
|
|
1116
|
-
const M = t.find((
|
|
1117
|
+
const { getCategoryName: p } = Ye(), { onEvent: h } = Nn(), { categories: _ } = w(), { clearExpandedSplits: b, setShowInsights: x, toggleSplit: v } = oo(), y = (f) => {
|
|
1118
|
+
const M = t.find((P) => P.guid === f);
|
|
1117
1119
|
if (M?.has_been_split) {
|
|
1118
|
-
|
|
1120
|
+
v(M.guid);
|
|
1119
1121
|
return;
|
|
1120
1122
|
}
|
|
1121
1123
|
h(ao.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
1122
1124
|
account_guid: M?.account_guid,
|
|
1123
|
-
transaction_guid:
|
|
1124
|
-
}), c?.(
|
|
1125
|
+
transaction_guid: f
|
|
1126
|
+
}), c?.(f);
|
|
1125
1127
|
}, D = m.useRef(null), g = no({
|
|
1126
1128
|
count: t.length,
|
|
1127
1129
|
getScrollElement: () => D.current,
|
|
1128
|
-
estimateSize: (
|
|
1130
|
+
estimateSize: (f) => ut + (Ne(f, t) ? _t : 0),
|
|
1129
1131
|
overscan: 5
|
|
1130
1132
|
});
|
|
1131
|
-
return m.useEffect(() => g.measure(), [t]), m.useEffect(() =>
|
|
1133
|
+
return m.useEffect(() => g.measure(), [t]), m.useEffect(() => x(a), [a]), m.useEffect(() => () => b(), []), /* @__PURE__ */ e(Re, { sx: { width: d }, children: /* @__PURE__ */ e(C, { height: n, overflow: "auto", ref: D, width: d, children: /* @__PURE__ */ i(
|
|
1132
1134
|
C,
|
|
1133
1135
|
{
|
|
1134
1136
|
height: (
|
|
@@ -1140,19 +1142,19 @@ const B = {
|
|
|
1140
1142
|
children: [
|
|
1141
1143
|
s && o,
|
|
1142
1144
|
!s && g.getVirtualItems().length === 0 && l,
|
|
1143
|
-
!s && g.getVirtualItems().length > 0 && g.getVirtualItems().map((
|
|
1144
|
-
const M = t[
|
|
1145
|
+
!s && g.getVirtualItems().length > 0 && g.getVirtualItems().map((f) => {
|
|
1146
|
+
const M = t[f.index], P = Ne(f.index, t), G = Ft(f.index, t), H = ut + (P ? _t : 0);
|
|
1145
1147
|
return /* @__PURE__ */ i(
|
|
1146
1148
|
C,
|
|
1147
1149
|
{
|
|
1148
1150
|
sx: {
|
|
1149
1151
|
height: H,
|
|
1150
1152
|
position: "absolute",
|
|
1151
|
-
transform: `translateY(${
|
|
1153
|
+
transform: `translateY(${f.start}px)`,
|
|
1152
1154
|
width: "100%"
|
|
1153
1155
|
},
|
|
1154
1156
|
children: [
|
|
1155
|
-
|
|
1157
|
+
P && /* @__PURE__ */ e(Pt, { bgcolor: r, children: Ze(M.date) }),
|
|
1156
1158
|
/* @__PURE__ */ e(
|
|
1157
1159
|
Bt,
|
|
1158
1160
|
{
|
|
@@ -1175,14 +1177,14 @@ const B = {
|
|
|
1175
1177
|
]
|
|
1176
1178
|
}
|
|
1177
1179
|
) }) });
|
|
1178
|
-
},
|
|
1180
|
+
}, ur = S(pr), $e = ({
|
|
1179
1181
|
transactions: t = [],
|
|
1180
1182
|
amountColor: r = "success.main",
|
|
1181
1183
|
amountPosition: n = "center",
|
|
1182
1184
|
formatDate: o = Ze,
|
|
1183
1185
|
secondaryIcon: c
|
|
1184
1186
|
}) => {
|
|
1185
|
-
const a = E(), { connect: s, finstrong: d } =
|
|
1187
|
+
const a = E(), { connect: s, finstrong: d } = w(), [l, p] = m.useState(!1), [h, _] = m.useState(!1), b = 3, x = t.length > b, v = t.length - b;
|
|
1186
1188
|
return !t || t.length === 0 ? /* @__PURE__ */ i(z, { children: [
|
|
1187
1189
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
1188
1190
|
$,
|
|
@@ -1245,7 +1247,7 @@ const B = {
|
|
|
1245
1247
|
/* @__PURE__ */ e(I, { variant: "caption", children: o(y.date) })
|
|
1246
1248
|
] })
|
|
1247
1249
|
] }),
|
|
1248
|
-
/* @__PURE__ */ e(k, { bold: !0, sx: { color: r, flexShrink: 0 }, variant: "body1", children:
|
|
1250
|
+
/* @__PURE__ */ e(k, { bold: !0, sx: { color: r, flexShrink: 0 }, variant: "body1", children: W(y.amount, "0,0.00") })
|
|
1249
1251
|
]
|
|
1250
1252
|
},
|
|
1251
1253
|
y.guid || D
|
|
@@ -1254,7 +1256,7 @@ const B = {
|
|
|
1254
1256
|
},
|
|
1255
1257
|
D
|
|
1256
1258
|
)) }),
|
|
1257
|
-
|
|
1259
|
+
x && /* @__PURE__ */ i(z, { children: [
|
|
1258
1260
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
1259
1261
|
$,
|
|
1260
1262
|
{
|
|
@@ -1263,7 +1265,7 @@ const B = {
|
|
|
1263
1265
|
size: "small",
|
|
1264
1266
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1265
1267
|
children: /* @__PURE__ */ i(I, { bold: !0, variant: "body1", children: [
|
|
1266
|
-
|
|
1268
|
+
v,
|
|
1267
1269
|
" ",
|
|
1268
1270
|
d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1269
1271
|
] })
|
|
@@ -1275,17 +1277,17 @@ const B = {
|
|
|
1275
1277
|
isOpen: l,
|
|
1276
1278
|
onClose: () => p(!1),
|
|
1277
1279
|
title: d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1278
|
-
children: /* @__PURE__ */ e(
|
|
1280
|
+
children: /* @__PURE__ */ e(ur, { transactions: t })
|
|
1279
1281
|
}
|
|
1280
1282
|
)
|
|
1281
1283
|
] })
|
|
1282
1284
|
] });
|
|
1283
|
-
},
|
|
1285
|
+
}, _r = () => {
|
|
1284
1286
|
const {
|
|
1285
1287
|
finstrong: {
|
|
1286
1288
|
key_indicators_spend: { pay_bills_on_time_drawer: t }
|
|
1287
1289
|
}
|
|
1288
|
-
} =
|
|
1290
|
+
} = w(), { getSpendingFeeTransactions: r, allTransactions: n } = F();
|
|
1289
1291
|
return m.useEffect(() => {
|
|
1290
1292
|
r().finally();
|
|
1291
1293
|
}, []), /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ i(
|
|
@@ -1330,8 +1332,8 @@ const B = {
|
|
|
1330
1332
|
]
|
|
1331
1333
|
}
|
|
1332
1334
|
) });
|
|
1333
|
-
},
|
|
1334
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
1335
|
+
}, hr = S(_r), mr = () => {
|
|
1336
|
+
const { healthScore: t } = F(), { finstrong: r } = w(), { key_indicators_spend: n } = r, { pay_bills_on_time_drawer: o } = n, c = Bn(t.spending_fee_transaction_count);
|
|
1335
1337
|
return /* @__PURE__ */ i(
|
|
1336
1338
|
u,
|
|
1337
1339
|
{
|
|
@@ -1354,8 +1356,8 @@ const B = {
|
|
|
1354
1356
|
]
|
|
1355
1357
|
}
|
|
1356
1358
|
);
|
|
1357
|
-
},
|
|
1358
|
-
const { savingsAndCheckingAccountsBalance: t } = Me(), { finstrong: r } =
|
|
1359
|
+
}, gr = S(mr), yr = () => {
|
|
1360
|
+
const { savingsAndCheckingAccountsBalance: t } = Me(), { finstrong: r } = w();
|
|
1359
1361
|
return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1360
1362
|
/* @__PURE__ */ e(
|
|
1361
1363
|
Se,
|
|
@@ -1372,8 +1374,8 @@ const B = {
|
|
|
1372
1374
|
}
|
|
1373
1375
|
)
|
|
1374
1376
|
] });
|
|
1375
|
-
},
|
|
1376
|
-
const { finstrong: t } =
|
|
1377
|
+
}, br = S(yr), fr = () => {
|
|
1378
|
+
const { finstrong: t } = w(), { healthScore: r, allTransactions: n, loadSpendTransactions: o, loadDebtSpend: c } = F(), { isInitialized: a } = j();
|
|
1377
1379
|
m.useEffect(() => {
|
|
1378
1380
|
a && (o().finally(), c().finally());
|
|
1379
1381
|
}, [a]);
|
|
@@ -1391,8 +1393,8 @@ const B = {
|
|
|
1391
1393
|
),
|
|
1392
1394
|
/* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: s })
|
|
1393
1395
|
] }) : /* @__PURE__ */ e(Q, {});
|
|
1394
|
-
},
|
|
1395
|
-
const [t, r] = m.useState(0), { finstrong: n } =
|
|
1396
|
+
}, xr = S(fr), Sr = () => {
|
|
1397
|
+
const [t, r] = m.useState(0), { finstrong: n } = w();
|
|
1396
1398
|
return /* @__PURE__ */ i(z, { children: [
|
|
1397
1399
|
/* @__PURE__ */ i(K, { children: [
|
|
1398
1400
|
/* @__PURE__ */ i(
|
|
@@ -1424,13 +1426,13 @@ const B = {
|
|
|
1424
1426
|
]
|
|
1425
1427
|
}
|
|
1426
1428
|
),
|
|
1427
|
-
/* @__PURE__ */ e(ue, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(
|
|
1428
|
-
/* @__PURE__ */ e(ue, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(
|
|
1429
|
+
/* @__PURE__ */ e(ue, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(br, {}) }),
|
|
1430
|
+
/* @__PURE__ */ e(ue, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(xr, {}) })
|
|
1429
1431
|
] }),
|
|
1430
1432
|
/* @__PURE__ */ e(Je, { chartFor: "savingsOverTime" })
|
|
1431
1433
|
] });
|
|
1432
|
-
},
|
|
1433
|
-
const { finstrong: t } =
|
|
1434
|
+
}, Cr = S(Sr), vr = () => {
|
|
1435
|
+
const { finstrong: t } = w(), { healthScore: r } = F(), n = r.months_of_cash_on_hand, o = wt(n ? n * 30 : null), c = 183 / 6, a = Math.floor(n), s = Math.round((n - a) * c), d = n / 6 * 100;
|
|
1434
1436
|
return /* @__PURE__ */ e(
|
|
1435
1437
|
We,
|
|
1436
1438
|
{
|
|
@@ -1479,8 +1481,8 @@ const B = {
|
|
|
1479
1481
|
value: Y(t.key_indicators_save.drawer_progress_bar_value, a, s)
|
|
1480
1482
|
}
|
|
1481
1483
|
);
|
|
1482
|
-
},
|
|
1483
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
1484
|
+
}, wr = S(vr), kr = () => {
|
|
1485
|
+
const { healthScore: t } = F(), { finstrong: r } = w(), n = Te(t.debt_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, a = ((s) => o ? "MISSING" : s <= 30 ? "GOOD" : s >= 31 && s <= 39 ? "FAIR" : s >= 40 ? "OFF_TRACK" : "MISSING")(n);
|
|
1484
1486
|
return /* @__PURE__ */ e(
|
|
1485
1487
|
We,
|
|
1486
1488
|
{
|
|
@@ -1556,11 +1558,11 @@ const B = {
|
|
|
1556
1558
|
percentage: `${n}%`
|
|
1557
1559
|
}
|
|
1558
1560
|
],
|
|
1559
|
-
value:
|
|
1561
|
+
value: W(t.ninety_day_debt_spend, "0,0.00")
|
|
1560
1562
|
}
|
|
1561
1563
|
);
|
|
1562
|
-
},
|
|
1563
|
-
const { healthScore: t, allTransactions: r } = F(), { connect: n, finstrong: o } =
|
|
1564
|
+
}, Mr = S(kr), Dr = () => {
|
|
1565
|
+
const { healthScore: t, allTransactions: r } = F(), { connect: n, finstrong: o } = w(), [c, a] = m.useState(!1);
|
|
1564
1566
|
return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1565
1567
|
/* @__PURE__ */ e(
|
|
1566
1568
|
Se,
|
|
@@ -1592,8 +1594,8 @@ const B = {
|
|
|
1592
1594
|
}
|
|
1593
1595
|
)
|
|
1594
1596
|
] });
|
|
1595
|
-
},
|
|
1596
|
-
const { allTransactions: t, healthScore: r } = F(), { connect: n, finstrong: o } =
|
|
1597
|
+
}, Ir = S(Dr), Ar = () => {
|
|
1598
|
+
const { allTransactions: t, healthScore: r } = F(), { connect: n, finstrong: o } = w(), [c, a] = m.useState(!1);
|
|
1597
1599
|
return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1598
1600
|
/* @__PURE__ */ e(
|
|
1599
1601
|
Se,
|
|
@@ -1631,7 +1633,7 @@ const B = {
|
|
|
1631
1633
|
}
|
|
1632
1634
|
)
|
|
1633
1635
|
] });
|
|
1634
|
-
},
|
|
1636
|
+
}, Tr = S(Ar), Or = ({
|
|
1635
1637
|
color: t,
|
|
1636
1638
|
data: r,
|
|
1637
1639
|
series: n,
|
|
@@ -1645,8 +1647,8 @@ const B = {
|
|
|
1645
1647
|
const _ = new ResizeObserver(() => {
|
|
1646
1648
|
window.requestAnimationFrame(() => {
|
|
1647
1649
|
if (s.current) {
|
|
1648
|
-
const { width: b } = s.current.getBoundingClientRect(),
|
|
1649
|
-
|
|
1650
|
+
const { width: b } = s.current.getBoundingClientRect(), x = b / 2, v = s.current.querySelector("text");
|
|
1651
|
+
v && v.setAttribute("transform", `translate(${x}, -8)`);
|
|
1650
1652
|
}
|
|
1651
1653
|
});
|
|
1652
1654
|
});
|
|
@@ -1683,23 +1685,23 @@ const B = {
|
|
|
1683
1685
|
totalMain: l
|
|
1684
1686
|
}) => {
|
|
1685
1687
|
const p = E(), h = so(p.breakpoints.down("xs")), _ = m.useMemo(
|
|
1686
|
-
() => r.sort((g,
|
|
1687
|
-
const
|
|
1688
|
+
() => r.sort((g, f) => g.month - f.month).map((g) => {
|
|
1689
|
+
const f = Ln(g.month), M = {
|
|
1688
1690
|
spending_vs_income: {
|
|
1689
1691
|
main: g.standard_spend,
|
|
1690
1692
|
comparison: g.income,
|
|
1691
|
-
formattedMain:
|
|
1692
|
-
formattedComparison:
|
|
1693
|
+
formattedMain: W(Math.round(g.standard_spend / 100) * 100, "0.0a"),
|
|
1694
|
+
formattedComparison: W(Math.round(g.income / 100) * 100, "0.0a")
|
|
1693
1695
|
},
|
|
1694
1696
|
debt_payment_vs_income: {
|
|
1695
1697
|
main: g.income,
|
|
1696
1698
|
comparison: g.debt_spend,
|
|
1697
|
-
formattedMain:
|
|
1698
|
-
formattedComparison:
|
|
1699
|
+
formattedMain: W(g.income, "0.0a"),
|
|
1700
|
+
formattedComparison: W(g.debt_spend, "0.0a")
|
|
1699
1701
|
}
|
|
1700
1702
|
};
|
|
1701
1703
|
return {
|
|
1702
|
-
label:
|
|
1704
|
+
label: f,
|
|
1703
1705
|
...M[t]
|
|
1704
1706
|
};
|
|
1705
1707
|
}),
|
|
@@ -1707,10 +1709,10 @@ const B = {
|
|
|
1707
1709
|
), b = {
|
|
1708
1710
|
dataKey: "label",
|
|
1709
1711
|
scaleType: "band"
|
|
1710
|
-
},
|
|
1712
|
+
}, x = Math.max(..._.map((g) => Math.max(g.main, g.comparison))), v = Math.ceil(x * 1.2 / 1e3) * 1e3, y = v / 3, D = {
|
|
1711
1713
|
scaleType: "linear",
|
|
1712
1714
|
min: 0,
|
|
1713
|
-
max:
|
|
1715
|
+
max: v,
|
|
1714
1716
|
tickNumber: 4,
|
|
1715
1717
|
tickMinStep: y,
|
|
1716
1718
|
valueFormatter: (g) => g === 0 ? "$0" : `$${(g / 1e3).toFixed(0)}K`
|
|
@@ -1813,16 +1815,16 @@ const B = {
|
|
|
1813
1815
|
{
|
|
1814
1816
|
slots: {
|
|
1815
1817
|
bar: (g) => {
|
|
1816
|
-
const { ownerState:
|
|
1818
|
+
const { ownerState: f, style: M, ...P } = g;
|
|
1817
1819
|
return /* @__PURE__ */ e(
|
|
1818
|
-
|
|
1820
|
+
Or,
|
|
1819
1821
|
{
|
|
1820
|
-
...
|
|
1821
|
-
color:
|
|
1822
|
+
...P,
|
|
1823
|
+
color: f.color,
|
|
1822
1824
|
data: _,
|
|
1823
1825
|
series: {
|
|
1824
|
-
index:
|
|
1825
|
-
type: Number(
|
|
1826
|
+
index: f.dataIndex,
|
|
1827
|
+
type: Number(f.id.toString().split("-").pop())
|
|
1826
1828
|
},
|
|
1827
1829
|
style: M
|
|
1828
1830
|
}
|
|
@@ -1877,8 +1879,8 @@ const B = {
|
|
|
1877
1879
|
]
|
|
1878
1880
|
}
|
|
1879
1881
|
);
|
|
1880
|
-
},
|
|
1881
|
-
const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } = F(), { isInitialized: o } = j(), [c, a] = m.useState(0), { finstrong: s } =
|
|
1882
|
+
}, Rr = () => {
|
|
1883
|
+
const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } = F(), { isInitialized: o } = j(), [c, a] = m.useState(0), { finstrong: s } = w();
|
|
1882
1884
|
return m.useEffect(() => {
|
|
1883
1885
|
o && (t().finally(), r().finally());
|
|
1884
1886
|
}, [o]), /* @__PURE__ */ i(z, { children: [
|
|
@@ -1921,7 +1923,7 @@ const B = {
|
|
|
1921
1923
|
index: 0,
|
|
1922
1924
|
name: "income-details",
|
|
1923
1925
|
value: c,
|
|
1924
|
-
children: /* @__PURE__ */ e(
|
|
1926
|
+
children: /* @__PURE__ */ e(Ir, {})
|
|
1925
1927
|
}
|
|
1926
1928
|
),
|
|
1927
1929
|
/* @__PURE__ */ e(
|
|
@@ -1931,7 +1933,7 @@ const B = {
|
|
|
1931
1933
|
index: 1,
|
|
1932
1934
|
name: "debt-payment-details",
|
|
1933
1935
|
value: c,
|
|
1934
|
-
children: /* @__PURE__ */ e(
|
|
1936
|
+
children: /* @__PURE__ */ e(Tr, {})
|
|
1935
1937
|
}
|
|
1936
1938
|
)
|
|
1937
1939
|
] }),
|
|
@@ -1982,8 +1984,8 @@ const B = {
|
|
|
1982
1984
|
)
|
|
1983
1985
|
] })
|
|
1984
1986
|
] });
|
|
1985
|
-
},
|
|
1986
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
1987
|
+
}, Fr = S(Rr), Pr = () => {
|
|
1988
|
+
const { healthScore: t } = F(), { finstrong: r } = w(), n = Te(t.spend_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, a = ((d) => o ? "MISSING" : d < 100 ? "GOOD" : d >= 100 && d <= 109 ? "FAIR" : d >= 110 ? "OFF_TRACK" : "MISSING")(n), s = {
|
|
1987
1989
|
GOOD: [{ percentage: `${n}%` }],
|
|
1988
1990
|
FAIR: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
1989
1991
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
@@ -2003,7 +2005,7 @@ const B = {
|
|
|
2003
2005
|
},
|
|
2004
2006
|
children: [
|
|
2005
2007
|
/* @__PURE__ */ i(I, { variant: "body2", children: [
|
|
2006
|
-
o ? "-" :
|
|
2008
|
+
o ? "-" : W(t.ninety_day_income, "0,0.00"),
|
|
2007
2009
|
" ",
|
|
2008
2010
|
r?.key_indicators_spend.spend_less_than_you_make_drawer.income
|
|
2009
2011
|
] }),
|
|
@@ -2018,29 +2020,29 @@ const B = {
|
|
|
2018
2020
|
label: r?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
|
|
2019
2021
|
status: a,
|
|
2020
2022
|
statusBarData: s,
|
|
2021
|
-
value: o ? "$0" :
|
|
2023
|
+
value: o ? "$0" : W(t.ninety_day_spend, "0,0.00")
|
|
2022
2024
|
}
|
|
2023
2025
|
);
|
|
2024
|
-
},
|
|
2025
|
-
const t = E(), { monthlySummaries: r, handleFinstrongWidgetPrimaryCtaClick: n } = F(), { finstrong: o, goals: c, spending: a } =
|
|
2026
|
-
m.useEffect(() => {
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
Lt(/* @__PURE__ */ new Date()),
|
|
2030
|
-
Wt(/* @__PURE__ */ new Date())
|
|
2026
|
+
}, Br = S(Pr), Lr = () => {
|
|
2027
|
+
const t = E(), { monthlySummaries: r, handleFinstrongWidgetPrimaryCtaClick: n } = F(), { finstrong: o, goals: c, spending: a } = w(), { selectedAccounts: s, selectedAccountGuids: d } = j(), { categories: l, dateRangeCategoryTotals: p, loadDateRangeCategoryTotals: h } = Ye(), { appDataStore: _ } = Kn(), [b, x] = m.useState("");
|
|
2028
|
+
console.log(d, "selectedAccountGuids"), m.useEffect(() => {
|
|
2029
|
+
h(
|
|
2030
|
+
d,
|
|
2031
|
+
_o(Lt(/* @__PURE__ */ new Date())),
|
|
2032
|
+
ho(Wt(/* @__PURE__ */ new Date()))
|
|
2031
2033
|
).finally();
|
|
2032
2034
|
}, [s]);
|
|
2033
|
-
const
|
|
2034
|
-
() =>
|
|
2035
|
-
[
|
|
2035
|
+
const v = m.useMemo(
|
|
2036
|
+
() => mo(l, c, t, p),
|
|
2037
|
+
[l, p]
|
|
2036
2038
|
);
|
|
2037
|
-
console.log(JSON.parse(JSON.stringify(
|
|
2038
|
-
const
|
|
2039
|
-
b
|
|
2040
|
-
}, { totalSpending:
|
|
2041
|
-
(
|
|
2042
|
-
totalSpending:
|
|
2043
|
-
totalIncome:
|
|
2039
|
+
console.log(JSON.parse(JSON.stringify(v)), "spendingData");
|
|
2040
|
+
const y = (f) => {
|
|
2041
|
+
x(b === f ? "" : f);
|
|
2042
|
+
}, { totalSpending: D, totalIncome: g } = m.useMemo(() => r?.reduce(
|
|
2043
|
+
(f, { standard_spend: M = 0, income: P = 0 }) => ({
|
|
2044
|
+
totalSpending: f.totalSpending + M,
|
|
2045
|
+
totalIncome: f.totalIncome + P
|
|
2044
2046
|
}),
|
|
2045
2047
|
{ totalSpending: 0, totalIncome: 0 }
|
|
2046
2048
|
), [r]);
|
|
@@ -2048,7 +2050,7 @@ const B = {
|
|
|
2048
2050
|
r.length ? /* @__PURE__ */ e(
|
|
2049
2051
|
jt,
|
|
2050
2052
|
{
|
|
2051
|
-
...
|
|
2053
|
+
..._.appData.client_profile?.allow_trends_widget && {
|
|
2052
2054
|
buttonLabel: o.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
2053
2055
|
},
|
|
2054
2056
|
chartFor: "spending_vs_income",
|
|
@@ -2057,8 +2059,8 @@ const B = {
|
|
|
2057
2059
|
legendLabelMain: o.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2058
2060
|
onClick: () => n("trends")(),
|
|
2059
2061
|
title: o.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2060
|
-
totalComparison:
|
|
2061
|
-
totalMain:
|
|
2062
|
+
totalComparison: W(g, "0,0.00"),
|
|
2063
|
+
totalMain: W(D, "0,0.00")
|
|
2062
2064
|
}
|
|
2063
2065
|
) : /* @__PURE__ */ e(
|
|
2064
2066
|
Fe,
|
|
@@ -2081,7 +2083,7 @@ const B = {
|
|
|
2081
2083
|
variant: "no-buttons"
|
|
2082
2084
|
}
|
|
2083
2085
|
),
|
|
2084
|
-
|
|
2086
|
+
v ? /* @__PURE__ */ i(
|
|
2085
2087
|
K,
|
|
2086
2088
|
{
|
|
2087
2089
|
sx: {
|
|
@@ -2101,7 +2103,7 @@ const B = {
|
|
|
2101
2103
|
},
|
|
2102
2104
|
children: [
|
|
2103
2105
|
/* @__PURE__ */ e(N, { children: o.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2104
|
-
|
|
2106
|
+
_.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2105
2107
|
$,
|
|
2106
2108
|
{
|
|
2107
2109
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
@@ -2120,20 +2122,20 @@ const B = {
|
|
|
2120
2122
|
),
|
|
2121
2123
|
/* @__PURE__ */ i(u, { sx: { gap: 12, py: 16, flexDirection: "row", justifyContent: "center" }, children: [
|
|
2122
2124
|
/* @__PURE__ */ e(
|
|
2123
|
-
|
|
2125
|
+
go,
|
|
2124
2126
|
{
|
|
2125
|
-
data:
|
|
2126
|
-
onSelected:
|
|
2127
|
-
selectedId:
|
|
2127
|
+
data: v,
|
|
2128
|
+
onSelected: y,
|
|
2129
|
+
selectedId: b,
|
|
2128
2130
|
totalLabel: a.total_spending
|
|
2129
2131
|
}
|
|
2130
2132
|
),
|
|
2131
2133
|
/* @__PURE__ */ e(
|
|
2132
|
-
|
|
2134
|
+
yo,
|
|
2133
2135
|
{
|
|
2134
|
-
data:
|
|
2135
|
-
onSelected:
|
|
2136
|
-
selectedId:
|
|
2136
|
+
data: v,
|
|
2137
|
+
onSelected: y,
|
|
2138
|
+
selectedId: b
|
|
2137
2139
|
}
|
|
2138
2140
|
)
|
|
2139
2141
|
] })
|
|
@@ -2161,21 +2163,21 @@ const B = {
|
|
|
2161
2163
|
}
|
|
2162
2164
|
)
|
|
2163
2165
|
] });
|
|
2164
|
-
},
|
|
2166
|
+
}, Wr = S(Lr), Ee = {
|
|
2165
2167
|
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.",
|
|
2166
2168
|
maintain_emergency_savings_description: "With at least $1,000 saved, you're ready for surprises, freeing you to save for major goals.",
|
|
2167
2169
|
maintain_emergency_savings_title: "Maintain Emergency Savings"
|
|
2168
|
-
},
|
|
2170
|
+
}, $r = ({
|
|
2169
2171
|
drawerFor: t,
|
|
2170
2172
|
isOpen: r,
|
|
2171
2173
|
onClose: n
|
|
2172
2174
|
}) => {
|
|
2173
|
-
const { finstrong: o } =
|
|
2175
|
+
const { finstrong: o } = w(), a = {
|
|
2174
2176
|
spendLessThanYouMake: {
|
|
2175
2177
|
title: o.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2176
2178
|
description: o.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
2177
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2178
|
-
content: /* @__PURE__ */ e(
|
|
2179
|
+
stickyComponent: /* @__PURE__ */ e(Br, {}),
|
|
2180
|
+
content: /* @__PURE__ */ e(Wr, {}),
|
|
2179
2181
|
drawerType: "connectDrawer",
|
|
2180
2182
|
connectTitle: o.connect_your_accounts,
|
|
2181
2183
|
connectDescription: o.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
@@ -2183,16 +2185,16 @@ const B = {
|
|
|
2183
2185
|
payBillsOnTime: {
|
|
2184
2186
|
title: o.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
|
|
2185
2187
|
description: o.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
|
|
2186
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2187
|
-
content: /* @__PURE__ */ e(
|
|
2188
|
+
stickyComponent: /* @__PURE__ */ e(gr, {}),
|
|
2189
|
+
content: /* @__PURE__ */ e(hr, {}),
|
|
2188
2190
|
drawerType: "connectDrawer",
|
|
2189
2191
|
connectTitle: o.connect_your_accounts,
|
|
2190
2192
|
connectDescription: o.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2191
2193
|
},
|
|
2192
2194
|
maintainEmergencySavings: {
|
|
2193
|
-
content: /* @__PURE__ */ e(
|
|
2195
|
+
content: /* @__PURE__ */ e(ir, {}),
|
|
2194
2196
|
description: Ee.maintain_emergency_savings_description,
|
|
2195
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2197
|
+
stickyComponent: /* @__PURE__ */ e(dr, {}),
|
|
2196
2198
|
title: Ee.maintain_emergency_savings_title,
|
|
2197
2199
|
drawerType: "connectDrawer",
|
|
2198
2200
|
connectTitle: o.connect_your_accounts,
|
|
@@ -2201,23 +2203,23 @@ const B = {
|
|
|
2201
2203
|
haveManageableDebt: {
|
|
2202
2204
|
title: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
|
|
2203
2205
|
description: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
|
|
2204
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2205
|
-
content: /* @__PURE__ */ e(
|
|
2206
|
+
stickyComponent: /* @__PURE__ */ e(Mr, {}),
|
|
2207
|
+
content: /* @__PURE__ */ e(Fr, {}),
|
|
2206
2208
|
drawerType: "connectDrawer",
|
|
2207
2209
|
connectTitle: o.dont_see_all_your_accounts,
|
|
2208
2210
|
connectDescription: o.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2209
2211
|
},
|
|
2210
2212
|
haveAGoodCreditScore: {
|
|
2211
|
-
title: /* @__PURE__ */ e(
|
|
2213
|
+
title: /* @__PURE__ */ e(Uo, {}),
|
|
2212
2214
|
description: Ee.credit_score_description,
|
|
2213
2215
|
stickyComponent: null,
|
|
2214
|
-
content: /* @__PURE__ */ e(
|
|
2216
|
+
content: /* @__PURE__ */ e(Vo, {})
|
|
2215
2217
|
},
|
|
2216
2218
|
saveEnoughToLiveOn: {
|
|
2217
2219
|
title: o.key_indicators_save.drawer_title,
|
|
2218
2220
|
description: o.key_indicators_save.drawer_description,
|
|
2219
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2220
|
-
content: /* @__PURE__ */ e(
|
|
2221
|
+
stickyComponent: /* @__PURE__ */ e(wr, {}),
|
|
2222
|
+
content: /* @__PURE__ */ e(Cr, {}),
|
|
2221
2223
|
drawerType: "connectDrawer",
|
|
2222
2224
|
connectTitle: o.dont_see_all_your_accounts,
|
|
2223
2225
|
connectDescription: o.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
@@ -2239,7 +2241,7 @@ const B = {
|
|
|
2239
2241
|
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: a.content })
|
|
2240
2242
|
}
|
|
2241
2243
|
);
|
|
2242
|
-
},
|
|
2244
|
+
}, zr = S($r), xe = ({
|
|
2243
2245
|
drawerFor: t,
|
|
2244
2246
|
title: r,
|
|
2245
2247
|
description: n,
|
|
@@ -2275,7 +2277,7 @@ const B = {
|
|
|
2275
2277
|
}
|
|
2276
2278
|
),
|
|
2277
2279
|
/* @__PURE__ */ e(
|
|
2278
|
-
|
|
2280
|
+
zr,
|
|
2279
2281
|
{
|
|
2280
2282
|
drawerFor: t,
|
|
2281
2283
|
isOpen: c,
|
|
@@ -2283,8 +2285,8 @@ const B = {
|
|
|
2283
2285
|
}
|
|
2284
2286
|
)
|
|
2285
2287
|
] });
|
|
2286
|
-
},
|
|
2287
|
-
const { finstrong: t } =
|
|
2288
|
+
}, Er = () => {
|
|
2289
|
+
const { finstrong: t } = w(), { key_indicators_spend: r } = t, { healthScore: n } = F(), o = (s) => {
|
|
2288
2290
|
const d = $n(s), l = {
|
|
2289
2291
|
GOOD: r.ratio_good_description,
|
|
2290
2292
|
FAIR: r.ratio_fair_description,
|
|
@@ -2328,8 +2330,8 @@ const B = {
|
|
|
2328
2330
|
}
|
|
2329
2331
|
)
|
|
2330
2332
|
] });
|
|
2331
|
-
},
|
|
2332
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
2333
|
+
}, Gr = S(Er), Hr = () => {
|
|
2334
|
+
const { healthScore: t } = F(), { finstrong: r } = w(), { key_indicators_save: n } = r, o = (d) => {
|
|
2333
2335
|
const l = wt(d), p = {
|
|
2334
2336
|
GOOD: n.days_of_cash_good_description,
|
|
2335
2337
|
FAIR: n.days_of_cash_fair_description,
|
|
@@ -2351,7 +2353,7 @@ const B = {
|
|
|
2351
2353
|
let h;
|
|
2352
2354
|
return l === "FAIR" && d !== null ? h = Y(
|
|
2353
2355
|
p[l],
|
|
2354
|
-
|
|
2356
|
+
W(d, "0,0.00")
|
|
2355
2357
|
) : h = p[l], {
|
|
2356
2358
|
cardState: l,
|
|
2357
2359
|
description: h,
|
|
@@ -2386,8 +2388,8 @@ const B = {
|
|
|
2386
2388
|
}
|
|
2387
2389
|
)
|
|
2388
2390
|
] });
|
|
2389
|
-
},
|
|
2390
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
2391
|
+
}, Nr = S(Hr), Kr = () => {
|
|
2392
|
+
const { healthScore: t } = F(), { finstrong: r } = w(), { key_indicators_borrow: n } = r, { user: o } = J(), c = (l) => {
|
|
2391
2393
|
const p = zn(l), h = {
|
|
2392
2394
|
GOOD: n.manage_debit_good_description,
|
|
2393
2395
|
FAIR: n.manage_debit_fair_description,
|
|
@@ -2438,8 +2440,8 @@ const B = {
|
|
|
2438
2440
|
}
|
|
2439
2441
|
)
|
|
2440
2442
|
] });
|
|
2441
|
-
},
|
|
2442
|
-
const [t, r] = m.useState(0), { finstrong: n } =
|
|
2443
|
+
}, jr = S(Kr), Yr = () => {
|
|
2444
|
+
const [t, r] = m.useState(0), { finstrong: n } = w();
|
|
2443
2445
|
return /* @__PURE__ */ i(z, { children: [
|
|
2444
2446
|
/* @__PURE__ */ i(
|
|
2445
2447
|
qe,
|
|
@@ -2493,12 +2495,12 @@ const B = {
|
|
|
2493
2495
|
]
|
|
2494
2496
|
}
|
|
2495
2497
|
),
|
|
2496
|
-
/* @__PURE__ */ e(ue, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(
|
|
2497
|
-
/* @__PURE__ */ e(ue, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(
|
|
2498
|
-
/* @__PURE__ */ e(ue, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(
|
|
2498
|
+
/* @__PURE__ */ e(ue, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(Gr, {}) }),
|
|
2499
|
+
/* @__PURE__ */ e(ue, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(Nr, {}) }),
|
|
2500
|
+
/* @__PURE__ */ e(ue, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(jr, {}) })
|
|
2499
2501
|
] });
|
|
2500
|
-
},
|
|
2501
|
-
const { finstrong: r } =
|
|
2502
|
+
}, Vr = S(Yr), Xr = ({ onClick: t }) => {
|
|
2503
|
+
const { finstrong: r } = w(), { isCopyLoaded: n } = j();
|
|
2502
2504
|
return n ? /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2503
2505
|
/* @__PURE__ */ e(bt, { size: 48 }),
|
|
2504
2506
|
/* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
@@ -2522,9 +2524,9 @@ const B = {
|
|
|
2522
2524
|
}
|
|
2523
2525
|
) })
|
|
2524
2526
|
] }) : /* @__PURE__ */ e(Q, {});
|
|
2525
|
-
},
|
|
2527
|
+
}, qr = S(Xr), Ur = {
|
|
2526
2528
|
add_more_income: "Add More Income"
|
|
2527
|
-
},
|
|
2529
|
+
}, Zr = ({
|
|
2528
2530
|
firstDay: t,
|
|
2529
2531
|
frequency: r,
|
|
2530
2532
|
secondDay: n,
|
|
@@ -2538,17 +2540,17 @@ const B = {
|
|
|
2538
2540
|
/* @__PURE__ */ i(u, { children: [
|
|
2539
2541
|
!!o.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: o.reduce((p, h, _) => {
|
|
2540
2542
|
if (h.guid === l.guid) return p;
|
|
2541
|
-
const b = Ne(_, o),
|
|
2543
|
+
const b = Ne(_, o), x = Ft(_, o);
|
|
2542
2544
|
return p.push(
|
|
2543
2545
|
/* @__PURE__ */ i(m.Fragment, { children: [
|
|
2544
2546
|
b && /* @__PURE__ */ e(Pt, { children: Ze(h.date) }),
|
|
2545
2547
|
/* @__PURE__ */ e(Bt, { transaction: h }),
|
|
2546
|
-
/* @__PURE__ */ e(ne, { sx: { ml:
|
|
2548
|
+
/* @__PURE__ */ e(ne, { sx: { ml: x ? 44 : 0 } })
|
|
2547
2549
|
] }, h.guid)
|
|
2548
2550
|
), p;
|
|
2549
2551
|
}, []) }),
|
|
2550
2552
|
/* @__PURE__ */ e(
|
|
2551
|
-
|
|
2553
|
+
So,
|
|
2552
2554
|
{
|
|
2553
2555
|
firstDay: t,
|
|
2554
2556
|
frequency: r,
|
|
@@ -2566,20 +2568,20 @@ const B = {
|
|
|
2566
2568
|
fullWidth: !0,
|
|
2567
2569
|
onClick: () => c({ step: O.MonthlyIncome, type: "main" }),
|
|
2568
2570
|
startIcon: /* @__PURE__ */ e(ft, {}),
|
|
2569
|
-
children:
|
|
2571
|
+
children: Ur.add_more_income
|
|
2570
2572
|
}
|
|
2571
2573
|
) })
|
|
2572
|
-
] }),
|
|
2574
|
+
] }), Jr = S(Zr), Qr = {
|
|
2573
2575
|
select_date: "Select Date"
|
|
2574
|
-
},
|
|
2576
|
+
}, ea = ({ selectedDate: t, setSelectedDate: r }) => {
|
|
2575
2577
|
const n = E(), o = (c) => {
|
|
2576
2578
|
r(Math.floor(new Date(c).getTime() / 1e3));
|
|
2577
2579
|
};
|
|
2578
|
-
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2579
|
-
|
|
2580
|
+
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(wo, { dateAdapter: $t, children: /* @__PURE__ */ e(
|
|
2581
|
+
ko,
|
|
2580
2582
|
{
|
|
2581
2583
|
disableFuture: !0,
|
|
2582
|
-
label:
|
|
2584
|
+
label: Qr.select_date,
|
|
2583
2585
|
onChange: o,
|
|
2584
2586
|
slotProps: {
|
|
2585
2587
|
nextIconButton: {
|
|
@@ -2605,9 +2607,9 @@ const B = {
|
|
|
2605
2607
|
value: t ? new Date(t * 1e3) : null
|
|
2606
2608
|
}
|
|
2607
2609
|
) }) });
|
|
2608
|
-
},
|
|
2610
|
+
}, ta = S(ea), na = {
|
|
2609
2611
|
credit_score: "Credit Score"
|
|
2610
|
-
},
|
|
2612
|
+
}, oa = ({ creditScore: t, setCreditScore: r }) => {
|
|
2611
2613
|
const n = !isNaN(t);
|
|
2612
2614
|
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2613
2615
|
Oe,
|
|
@@ -2619,12 +2621,12 @@ const B = {
|
|
|
2619
2621
|
noValidate: !0,
|
|
2620
2622
|
pattern: "[0-9]*"
|
|
2621
2623
|
},
|
|
2622
|
-
label:
|
|
2624
|
+
label: na.credit_score,
|
|
2623
2625
|
onChange: (o) => r(Number(o.target.value)),
|
|
2624
2626
|
value: n ? t : ""
|
|
2625
2627
|
}
|
|
2626
2628
|
) });
|
|
2627
|
-
},
|
|
2629
|
+
}, ra = S(oa), Yt = ({ value: t, completeCopy: r }) => /* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
|
|
2628
2630
|
/* @__PURE__ */ e(u, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, o) => /* @__PURE__ */ e(
|
|
2629
2631
|
C,
|
|
2630
2632
|
{
|
|
@@ -2642,7 +2644,7 @@ const B = {
|
|
|
2642
2644
|
"% ",
|
|
2643
2645
|
r
|
|
2644
2646
|
] })
|
|
2645
|
-
] }),
|
|
2647
|
+
] }), aa = ({
|
|
2646
2648
|
completeCopy: t,
|
|
2647
2649
|
primaryText: r,
|
|
2648
2650
|
secondaryText: n,
|
|
@@ -2656,7 +2658,7 @@ const B = {
|
|
|
2656
2658
|
] }), ht = {
|
|
2657
2659
|
step: O.ConnectAccounts,
|
|
2658
2660
|
type: "main"
|
|
2659
|
-
},
|
|
2661
|
+
}, B = {
|
|
2660
2662
|
add_accounts: "Add Accounts",
|
|
2661
2663
|
add_income_primary: "What is your monthly income?",
|
|
2662
2664
|
add_income_secondary: "Add your income so that we can accurately measure your financial strength.",
|
|
@@ -2674,17 +2676,17 @@ const B = {
|
|
|
2674
2676
|
credit_score_secondary: "Your ability to borrow money is a key part of your financial strength score.",
|
|
2675
2677
|
do_it_later: "Do It Later",
|
|
2676
2678
|
next: "Next"
|
|
2677
|
-
},
|
|
2678
|
-
const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: c } =
|
|
2679
|
+
}, ia = ({ isOpen: t, onClose: r }) => {
|
|
2680
|
+
const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: c } = w(), { setSelectedAccounts: a } = j(), { addRepeatingTransaction: s, setDateRange: d } = Ve(), { filter: l, setFilter: p, transactions: h } = jn(), { user: _, userProfile: b, updateUser: x, updateUserProfile: v } = J(), [y, D] = m.useState(_.credit_score || 0), [g, f] = m.useState(
|
|
2679
2681
|
ht
|
|
2680
|
-
), [M,
|
|
2682
|
+
), [M, P] = m.useState(1), [G, H] = m.useState(Ot.EveryMonth), [T, V] = m.useState([]), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(_.birthday), [ce, he] = m.useState(15), [q, Qe] = m.useState("");
|
|
2681
2683
|
m.useEffect(() => {
|
|
2682
2684
|
d({ start: Lt(dt()), end: Wt(dt()) });
|
|
2683
2685
|
}, []), m.useEffect(() => {
|
|
2684
2686
|
p({
|
|
2685
2687
|
accounts: n.map((A) => A.guid),
|
|
2686
2688
|
dateRange: {
|
|
2687
|
-
start:
|
|
2689
|
+
start: xo(/* @__PURE__ */ new Date(), 90),
|
|
2688
2690
|
end: /* @__PURE__ */ new Date()
|
|
2689
2691
|
},
|
|
2690
2692
|
custom: pt
|
|
@@ -2705,80 +2707,80 @@ const B = {
|
|
|
2705
2707
|
}, [g.step, le, T.length, _.birthday, _.credit_score]), qt = (A) => {
|
|
2706
2708
|
p({
|
|
2707
2709
|
...l,
|
|
2708
|
-
custom: (R) => A ?
|
|
2710
|
+
custom: (R) => A ? vo(R, A) : pt(R)
|
|
2709
2711
|
});
|
|
2710
2712
|
}, Ut = {
|
|
2711
2713
|
[O.ConnectAccounts]: {
|
|
2712
2714
|
main: le ? /* @__PURE__ */ e(Nt, { shouldShowBalance: !1 }) : null,
|
|
2713
|
-
mainActionContent: le ?
|
|
2714
|
-
primaryText:
|
|
2715
|
-
secondaryText:
|
|
2715
|
+
mainActionContent: le ? B.next : B.add_accounts,
|
|
2716
|
+
primaryText: B.connect_your_accounts_primary,
|
|
2717
|
+
secondaryText: B.connect_your_accounts_secondary
|
|
2716
2718
|
},
|
|
2717
2719
|
[O.MonthlyIncome]: {
|
|
2718
2720
|
detail: /* @__PURE__ */ e(
|
|
2719
|
-
|
|
2721
|
+
Jr,
|
|
2720
2722
|
{
|
|
2721
2723
|
firstDay: M,
|
|
2722
2724
|
frequency: G,
|
|
2723
2725
|
incomeTransactions: T,
|
|
2724
2726
|
secondDay: ce,
|
|
2725
2727
|
setCurrentStep: (A) => {
|
|
2726
|
-
|
|
2728
|
+
f(A), V((R) => {
|
|
2727
2729
|
if (R.some((de) => de.guid === q)) return R.filter((de) => de.guid !== q);
|
|
2728
2730
|
const Ie = h.find((de) => de.guid === q);
|
|
2729
2731
|
return Ie ? [...R, { ...Ie, firstDay: M, frequency: G, secondDay: ce }] : R;
|
|
2730
2732
|
});
|
|
2731
2733
|
},
|
|
2732
|
-
setFirstDay:
|
|
2734
|
+
setFirstDay: P,
|
|
2733
2735
|
setFrequency: H,
|
|
2734
2736
|
setSecondDay: he,
|
|
2735
2737
|
transaction: et
|
|
2736
2738
|
}
|
|
2737
2739
|
),
|
|
2738
|
-
detailActionContent:
|
|
2740
|
+
detailActionContent: B.confirm_income,
|
|
2739
2741
|
main: /* @__PURE__ */ e(
|
|
2740
|
-
|
|
2742
|
+
Co,
|
|
2741
2743
|
{
|
|
2742
2744
|
onSearch: qt,
|
|
2743
2745
|
onSelected: (A) => {
|
|
2744
|
-
|
|
2746
|
+
f({ step: O.MonthlyIncome, type: "detail" }), Qe(A);
|
|
2745
2747
|
}
|
|
2746
2748
|
}
|
|
2747
2749
|
),
|
|
2748
|
-
mainActionContent:
|
|
2749
|
-
primaryText:
|
|
2750
|
-
secondaryText:
|
|
2750
|
+
mainActionContent: B.confirm_income,
|
|
2751
|
+
primaryText: B.add_income_primary,
|
|
2752
|
+
secondaryText: B.add_income_secondary
|
|
2751
2753
|
},
|
|
2752
2754
|
[O.Birthday]: {
|
|
2753
|
-
main: /* @__PURE__ */ e(
|
|
2754
|
-
mainActionContent:
|
|
2755
|
-
primaryText:
|
|
2756
|
-
secondaryText:
|
|
2755
|
+
main: /* @__PURE__ */ e(ta, { selectedDate: X, setSelectedDate: se }),
|
|
2756
|
+
mainActionContent: B.next,
|
|
2757
|
+
primaryText: B.birthday_primary,
|
|
2758
|
+
secondaryText: B.birthday_secondary
|
|
2757
2759
|
},
|
|
2758
2760
|
[O.CreditScore]: {
|
|
2759
|
-
main: /* @__PURE__ */ e(
|
|
2760
|
-
mainActionContent:
|
|
2761
|
-
primaryText:
|
|
2762
|
-
secondaryText:
|
|
2761
|
+
main: /* @__PURE__ */ e(ra, { creditScore: y, setCreditScore: D }),
|
|
2762
|
+
mainActionContent: B.next,
|
|
2763
|
+
primaryText: B.credit_score_primary,
|
|
2764
|
+
secondaryText: B.credit_score_secondary
|
|
2763
2765
|
}
|
|
2764
2766
|
}, tt = () => {
|
|
2765
|
-
|
|
2767
|
+
f(ht), ae(!1), Qe(""), r();
|
|
2766
2768
|
}, nt = async () => {
|
|
2767
|
-
ae(!0), await en(T), await o(), await
|
|
2769
|
+
ae(!0), await en(T), await o(), await v({ ...b, has_completed_finstrong_onboarding: !0 }), tt();
|
|
2768
2770
|
}, Zt = () => {
|
|
2769
2771
|
if (g.step === O.CreditScore) {
|
|
2770
2772
|
nt();
|
|
2771
2773
|
return;
|
|
2772
2774
|
}
|
|
2773
|
-
|
|
2775
|
+
f({ step: g.step + 1, type: "main" });
|
|
2774
2776
|
}, Jt = () => {
|
|
2775
2777
|
const { step: A } = g, R = A + 1;
|
|
2776
2778
|
switch (A) {
|
|
2777
2779
|
case O.Birthday:
|
|
2778
|
-
X && X !== _.birthday &&
|
|
2780
|
+
X && X !== _.birthday && x({ ..._, birthday: X });
|
|
2779
2781
|
break;
|
|
2780
2782
|
case O.CreditScore:
|
|
2781
|
-
y && y !== _.credit_score &&
|
|
2783
|
+
y && y !== _.credit_score && x({ ..._, credit_score: y }), nt();
|
|
2782
2784
|
return;
|
|
2783
2785
|
case O.MonthlyIncome:
|
|
2784
2786
|
q && T.findIndex(({ guid: ge }) => ge === q) === -1 && V((ge) => [
|
|
@@ -2793,18 +2795,18 @@ const B = {
|
|
|
2793
2795
|
}
|
|
2794
2796
|
break;
|
|
2795
2797
|
}
|
|
2796
|
-
R in O &&
|
|
2798
|
+
R in O && f({ step: R, type: "main" });
|
|
2797
2799
|
}, Qt = () => {
|
|
2798
2800
|
const { step: A, type: R } = g;
|
|
2799
2801
|
if (R === "detail") {
|
|
2800
|
-
|
|
2802
|
+
f({ step: A, type: "main" });
|
|
2801
2803
|
return;
|
|
2802
2804
|
}
|
|
2803
2805
|
if (A === O.Birthday && T.length) {
|
|
2804
|
-
|
|
2806
|
+
f({ step: A - 1, type: "detail" });
|
|
2805
2807
|
return;
|
|
2806
2808
|
}
|
|
2807
|
-
A > O.ConnectAccounts &&
|
|
2809
|
+
A > O.ConnectAccounts && f({ step: A - 1, type: "main" });
|
|
2808
2810
|
}, en = async (A) => {
|
|
2809
2811
|
for (const R of A) {
|
|
2810
2812
|
const {
|
|
@@ -2819,13 +2821,13 @@ const B = {
|
|
|
2819
2821
|
merchant_guid: cn,
|
|
2820
2822
|
payee: ln,
|
|
2821
2823
|
transaction_type: dn
|
|
2822
|
-
} = R, pn = Qn(ot,
|
|
2824
|
+
} = R, pn = Qn(ot, fo(de)), un = {
|
|
2823
2825
|
account_guid: ge,
|
|
2824
2826
|
amount: Ie,
|
|
2825
2827
|
created_by: 0,
|
|
2826
2828
|
description: ln || on || rn,
|
|
2827
2829
|
merchant_guid: cn,
|
|
2828
|
-
predicted_occurs_on:
|
|
2830
|
+
predicted_occurs_on: bo(pn, { representation: "date" }),
|
|
2829
2831
|
recurrence_day: an,
|
|
2830
2832
|
recurrence_type: ot,
|
|
2831
2833
|
repeating_transaction_type: Rt.Income,
|
|
@@ -2852,17 +2854,17 @@ const B = {
|
|
|
2852
2854
|
primaryButtonProps: tn,
|
|
2853
2855
|
primaryText: me?.mainActionContent,
|
|
2854
2856
|
secondaryColor: "primary",
|
|
2855
|
-
secondaryText:
|
|
2857
|
+
secondaryText: B.back,
|
|
2856
2858
|
title: c.title,
|
|
2857
2859
|
...!re && { onPrimaryAction: Jt },
|
|
2858
2860
|
children: [
|
|
2859
2861
|
re && /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2860
|
-
/* @__PURE__ */ e(Pe, { children:
|
|
2861
|
-
/* @__PURE__ */ e(k, { sx: { textAlign: "center" }, variant: "subtitle1", children:
|
|
2862
|
+
/* @__PURE__ */ e(Pe, { children: B.calculate_primary }),
|
|
2863
|
+
/* @__PURE__ */ e(k, { sx: { textAlign: "center" }, variant: "subtitle1", children: B.calculate_secondary })
|
|
2862
2864
|
] }),
|
|
2863
2865
|
me && !re && /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2864
2866
|
/* @__PURE__ */ e(
|
|
2865
|
-
|
|
2867
|
+
aa,
|
|
2866
2868
|
{
|
|
2867
2869
|
completeCopy: c.complete,
|
|
2868
2870
|
primaryText: me.primaryText,
|
|
@@ -2872,7 +2874,7 @@ const B = {
|
|
|
2872
2874
|
),
|
|
2873
2875
|
g.type === "main" && /* @__PURE__ */ i(C, { children: [
|
|
2874
2876
|
me.main,
|
|
2875
|
-
nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e($, { fullWidth: !0, onClick: Zt, children:
|
|
2877
|
+
nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e($, { fullWidth: !0, onClick: Zt, children: B.do_it_later }) })
|
|
2876
2878
|
] }),
|
|
2877
2879
|
g.type === "detail" && me.detail
|
|
2878
2880
|
] })
|
|
@@ -2884,15 +2886,15 @@ const B = {
|
|
|
2884
2886
|
{
|
|
2885
2887
|
onClose: () => ie(!1),
|
|
2886
2888
|
showConnectWidget: Ce,
|
|
2887
|
-
title:
|
|
2889
|
+
title: B.connect_accounts
|
|
2888
2890
|
}
|
|
2889
2891
|
)
|
|
2890
2892
|
] });
|
|
2891
|
-
},
|
|
2893
|
+
}, sa = S(ia), Ge = {
|
|
2892
2894
|
onboarding_title: "Financial Strength Starts Here",
|
|
2893
2895
|
onboarding_subtitle: "By analyzing your spending and saving, FinStrong provides a score and guidance to help you improve your financial habits.",
|
|
2894
2896
|
get_started: "Get Started"
|
|
2895
|
-
},
|
|
2897
|
+
}, ca = () => {
|
|
2896
2898
|
const [t, r] = m.useState(!1);
|
|
2897
2899
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2898
2900
|
/* @__PURE__ */ i(
|
|
@@ -2917,10 +2919,10 @@ const B = {
|
|
|
2917
2919
|
]
|
|
2918
2920
|
}
|
|
2919
2921
|
),
|
|
2920
|
-
/* @__PURE__ */ e(
|
|
2922
|
+
/* @__PURE__ */ e(sa, { isOpen: t, onClose: () => r(!1) })
|
|
2921
2923
|
] });
|
|
2922
|
-
},
|
|
2923
|
-
const { finstrong: n } =
|
|
2924
|
+
}, la = ({ isOpen: t, onClose: r }) => {
|
|
2925
|
+
const { finstrong: n } = w(), o = E(), { updateUser: c, user: a } = J(), [s, d] = m.useState(a.birthday), l = (h) => {
|
|
2924
2926
|
d(Math.floor(new Date(h).getTime() / 1e3));
|
|
2925
2927
|
};
|
|
2926
2928
|
return /* @__PURE__ */ e(
|
|
@@ -2933,8 +2935,8 @@ const B = {
|
|
|
2933
2935
|
},
|
|
2934
2936
|
onSecondaryAction: r,
|
|
2935
2937
|
title: n.date_of_birth,
|
|
2936
|
-
children: /* @__PURE__ */ e(
|
|
2937
|
-
|
|
2938
|
+
children: /* @__PURE__ */ e(Io, { dateAdapter: $t, children: /* @__PURE__ */ e(
|
|
2939
|
+
Mo,
|
|
2938
2940
|
{
|
|
2939
2941
|
disableFuture: !0,
|
|
2940
2942
|
onChange: l,
|
|
@@ -2968,14 +2970,14 @@ const B = {
|
|
|
2968
2970
|
) })
|
|
2969
2971
|
}
|
|
2970
2972
|
);
|
|
2971
|
-
},
|
|
2973
|
+
}, da = S(la), pa = ({ isOpen: t, onClose: r }) => {
|
|
2972
2974
|
const { visibleFinstrongAccounts: n } = Me(), {
|
|
2973
2975
|
accounts: o,
|
|
2974
2976
|
common: c,
|
|
2975
2977
|
finstrong: a
|
|
2976
|
-
} =
|
|
2977
|
-
const { repeating_transaction_type: y, transactions: D, recurrence_type: g, amount:
|
|
2978
|
-
return y === Rt.Income && (D.length > 0 || g === Ot.EveryYear) ?
|
|
2978
|
+
} = w(), { repeatingTransactions: s } = Ve(), { user: d } = J(), l = s.reduce((x, v) => {
|
|
2979
|
+
const { repeating_transaction_type: y, transactions: D, recurrence_type: g, amount: f } = v;
|
|
2980
|
+
return y === Rt.Income && (D.length > 0 || g === Ot.EveryYear) ? x + f : x;
|
|
2979
2981
|
}, 0), [p, h] = m.useState(null), b = [
|
|
2980
2982
|
{
|
|
2981
2983
|
dynamicCopy: a.add_profile_item,
|
|
@@ -3012,7 +3014,7 @@ const B = {
|
|
|
3012
3014
|
n.length > 1 ? a.accounts : a.account
|
|
3013
3015
|
) : void 0
|
|
3014
3016
|
}
|
|
3015
|
-
].map((
|
|
3017
|
+
].map((x) => En(x));
|
|
3016
3018
|
return /* @__PURE__ */ i(te, { isOpen: t, onClose: r, title: a.financial_profile, children: [
|
|
3017
3019
|
/* @__PURE__ */ i(u, { sx: { gap: 20, p: 24 }, children: [
|
|
3018
3020
|
/* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
|
|
@@ -3023,7 +3025,7 @@ const B = {
|
|
|
3023
3025
|
Yt,
|
|
3024
3026
|
{
|
|
3025
3027
|
completeCopy: a.complete,
|
|
3026
|
-
value: b.reduce((
|
|
3028
|
+
value: b.reduce((x, v) => x + (v.isComplete ? 1 : 0), 0)
|
|
3027
3029
|
}
|
|
3028
3030
|
)
|
|
3029
3031
|
] }),
|
|
@@ -3044,10 +3046,10 @@ const B = {
|
|
|
3044
3046
|
isOpen: p === ee.MonthlyIncome,
|
|
3045
3047
|
onClose: () => h(null),
|
|
3046
3048
|
title: c.settings,
|
|
3047
|
-
children: /* @__PURE__ */ e(
|
|
3049
|
+
children: /* @__PURE__ */ e(Do, {})
|
|
3048
3050
|
}
|
|
3049
3051
|
),
|
|
3050
|
-
/* @__PURE__ */ e(
|
|
3052
|
+
/* @__PURE__ */ e(da, { isOpen: p === ee.DateOfBirth, onClose: () => h(null) }),
|
|
3051
3053
|
/* @__PURE__ */ e(Gt, { isOpen: p === ee.CreditScore, onClose: () => h(null) }),
|
|
3052
3054
|
/* @__PURE__ */ e(
|
|
3053
3055
|
Mt,
|
|
@@ -3058,17 +3060,17 @@ const B = {
|
|
|
3058
3060
|
}
|
|
3059
3061
|
)
|
|
3060
3062
|
] });
|
|
3061
|
-
},
|
|
3063
|
+
}, ua = S(pa), mt = ({
|
|
3062
3064
|
content: t,
|
|
3063
3065
|
islast: r = !1
|
|
3064
|
-
}) => /* @__PURE__ */ i(
|
|
3065
|
-
/* @__PURE__ */ i(
|
|
3066
|
-
/* @__PURE__ */ e(
|
|
3067
|
-
!r && /* @__PURE__ */ e(
|
|
3066
|
+
}) => /* @__PURE__ */ i(Oo, { sx: { minHeight: 0 }, children: [
|
|
3067
|
+
/* @__PURE__ */ i(Lo, { children: [
|
|
3068
|
+
/* @__PURE__ */ e(Bo, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
|
|
3069
|
+
!r && /* @__PURE__ */ e(Fo, { sx: { bgcolor: "divider", width: 0.1 } })
|
|
3068
3070
|
] }),
|
|
3069
|
-
/* @__PURE__ */ e(
|
|
3070
|
-
] }),
|
|
3071
|
-
const { finstrong: r } =
|
|
3071
|
+
/* @__PURE__ */ e(Po, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(k, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
3072
|
+
] }), _a = ({ report: t }) => {
|
|
3073
|
+
const { finstrong: r } = w(), { score_history_drawer_timeline: n } = r, {
|
|
3072
3074
|
health_score_point_difference: o,
|
|
3073
3075
|
newer_credit_score: c,
|
|
3074
3076
|
older_credit_score: a,
|
|
@@ -3077,7 +3079,7 @@ const B = {
|
|
|
3077
3079
|
older_health_score: l,
|
|
3078
3080
|
newer_health_score: p,
|
|
3079
3081
|
newer_score_calculated_at: h
|
|
3080
|
-
} = t, _ =
|
|
3082
|
+
} = t, _ = Ao(new Date(h), "MMM d"), b = () => o === 0 ? "info.lighter" : o > 0 ? "success.lighter" : "error.lighter", x = () => o === 0 ? Y(n.stayed_at, l) : o > 0 ? n.less_spending : n.more_spending, v = () => {
|
|
3081
3083
|
if (o === 0) return null;
|
|
3082
3084
|
const y = o > 0 ? n.up_from : n.down_from, D = Y(y, l, p);
|
|
3083
3085
|
return /* @__PURE__ */ i(z, { children: [
|
|
@@ -3114,21 +3116,21 @@ const B = {
|
|
|
3114
3116
|
}
|
|
3115
3117
|
),
|
|
3116
3118
|
/* @__PURE__ */ i(u, { sx: { gap: 2, width: "80%" }, children: [
|
|
3117
|
-
/* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children:
|
|
3119
|
+
/* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children: x() }),
|
|
3118
3120
|
/* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3119
3121
|
_,
|
|
3120
3122
|
" ",
|
|
3121
|
-
|
|
3123
|
+
v()
|
|
3122
3124
|
] })
|
|
3123
3125
|
] })
|
|
3124
3126
|
]
|
|
3125
3127
|
}
|
|
3126
3128
|
) }),
|
|
3127
3129
|
o !== 0 && /* @__PURE__ */ e(C, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ i(
|
|
3128
|
-
|
|
3130
|
+
To,
|
|
3129
3131
|
{
|
|
3130
3132
|
sx: {
|
|
3131
|
-
[`& .${
|
|
3133
|
+
[`& .${Ro.root}:before`]: {
|
|
3132
3134
|
flex: 0,
|
|
3133
3135
|
padding: 0
|
|
3134
3136
|
},
|
|
@@ -3161,8 +3163,8 @@ const B = {
|
|
|
3161
3163
|
}
|
|
3162
3164
|
) })
|
|
3163
3165
|
] }) });
|
|
3164
|
-
},
|
|
3165
|
-
const n = E(), { finstrong: o } =
|
|
3166
|
+
}, ha = S(_a), ma = ({ isOpen: t, onClose: r }) => {
|
|
3167
|
+
const n = E(), { finstrong: o } = w(), { isCopyLoaded: c, isInitialized: a } = j(), { healthScore: s, healthScoreChangeReports: d, augmentedChartData: l } = F();
|
|
3166
3168
|
if (!c || !a) return /* @__PURE__ */ e(Q, {});
|
|
3167
3169
|
const p = je(s.health_score || 0, o), h = d.slice().reverse();
|
|
3168
3170
|
return /* @__PURE__ */ e(
|
|
@@ -3210,10 +3212,10 @@ const B = {
|
|
|
3210
3212
|
]
|
|
3211
3213
|
}
|
|
3212
3214
|
),
|
|
3213
|
-
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: h.map((_, b) => /* @__PURE__ */ e(
|
|
3215
|
+
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: h.map((_, b) => /* @__PURE__ */ e(ha, { report: _ }, b)) })
|
|
3214
3216
|
}
|
|
3215
3217
|
);
|
|
3216
|
-
},
|
|
3218
|
+
}, ga = S(ma), ya = ({ copy: t }) => {
|
|
3217
3219
|
const r = E(), n = [
|
|
3218
3220
|
r.palette.chartMono.chartMono5,
|
|
3219
3221
|
r.palette.chartMono.chartMono4,
|
|
@@ -3273,15 +3275,15 @@ const B = {
|
|
|
3273
3275
|
)) })
|
|
3274
3276
|
] })
|
|
3275
3277
|
] });
|
|
3276
|
-
},
|
|
3277
|
-
const { finstrong: n } =
|
|
3278
|
+
}, ba = ({ isOpen: t, onClose: r }) => {
|
|
3279
|
+
const { finstrong: n } = w(), { isCopyLoaded: o } = j();
|
|
3278
3280
|
return o ? /* @__PURE__ */ e(te, { isOpen: t, onClose: r, title: n.score_rubric, children: /* @__PURE__ */ i(u, { sx: { gap: 36, p: 24 }, children: [
|
|
3279
3281
|
/* @__PURE__ */ i(u, { sx: { gap: 20 }, children: [
|
|
3280
3282
|
/* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
|
|
3281
3283
|
/* @__PURE__ */ e(N, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
|
|
3282
3284
|
/* @__PURE__ */ e(k, { variant: "subtitle1", children: n.finstrong_freedom_description })
|
|
3283
3285
|
] }),
|
|
3284
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
3286
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(ya, { copy: n }) })
|
|
3285
3287
|
] }),
|
|
3286
3288
|
/* @__PURE__ */ i(u, { sx: { gap: 12 }, children: [
|
|
3287
3289
|
/* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
|
|
@@ -3353,11 +3355,11 @@ const B = {
|
|
|
3353
3355
|
)
|
|
3354
3356
|
] })
|
|
3355
3357
|
] }) }) : /* @__PURE__ */ e(Q, {});
|
|
3356
|
-
},
|
|
3357
|
-
const [t, r] = m.useState(!1), n = E(), [o, { width: c }] = It(), { finstrong: a } =
|
|
3358
|
+
}, fa = S(ba), xa = S(() => {
|
|
3359
|
+
const [t, r] = m.useState(!1), n = E(), [o, { width: c }] = It(), { finstrong: a } = w(), { isCopyLoaded: s, isInitialized: d } = j(), { healthScore: l, healthScoreChange: p } = F(), h = n.palette.mode === "dark", _ = je(l?.health_score, a);
|
|
3358
3360
|
return !s || !d ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ i(K, { ref: o, sx: { p: 16 }, children: [
|
|
3359
3361
|
/* @__PURE__ */ e(
|
|
3360
|
-
|
|
3362
|
+
Eo,
|
|
3361
3363
|
{
|
|
3362
3364
|
action: /* @__PURE__ */ e(
|
|
3363
3365
|
$,
|
|
@@ -3393,7 +3395,7 @@ const B = {
|
|
|
3393
3395
|
}
|
|
3394
3396
|
) }),
|
|
3395
3397
|
l?.health_score ? /* @__PURE__ */ i(
|
|
3396
|
-
|
|
3398
|
+
Wo,
|
|
3397
3399
|
{
|
|
3398
3400
|
sx: {
|
|
3399
3401
|
px: 16,
|
|
@@ -3408,7 +3410,7 @@ const B = {
|
|
|
3408
3410
|
},
|
|
3409
3411
|
children: [
|
|
3410
3412
|
/* @__PURE__ */ e(
|
|
3411
|
-
|
|
3413
|
+
zo,
|
|
3412
3414
|
{
|
|
3413
3415
|
expandIcon: /* @__PURE__ */ e(wn, { size: 20 }),
|
|
3414
3416
|
sx: {
|
|
@@ -3421,7 +3423,7 @@ const B = {
|
|
|
3421
3423
|
children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
|
|
3422
3424
|
}
|
|
3423
3425
|
),
|
|
3424
|
-
/* @__PURE__ */ e(
|
|
3426
|
+
/* @__PURE__ */ e($o, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(k, { variant: "subtitle1", children: _.scoreContent }) })
|
|
3425
3427
|
]
|
|
3426
3428
|
}
|
|
3427
3429
|
) : /* @__PURE__ */ e(
|
|
@@ -3446,30 +3448,30 @@ const B = {
|
|
|
3446
3448
|
}
|
|
3447
3449
|
),
|
|
3448
3450
|
/* @__PURE__ */ e(
|
|
3449
|
-
|
|
3451
|
+
fa,
|
|
3450
3452
|
{
|
|
3451
3453
|
isOpen: t,
|
|
3452
3454
|
onClose: () => r(!1)
|
|
3453
3455
|
}
|
|
3454
3456
|
)
|
|
3455
3457
|
] });
|
|
3456
|
-
}),
|
|
3458
|
+
}), Sa = ({ onBackClick: t, sx: r, onPrimaryCtaClick: n }) => {
|
|
3457
3459
|
const { visibleAccounts: o } = Me(), { dateRange: c, isDataLoaded: a, loadBudgetData: s, setTheme: d } = Yn(), { reloadCategoryTotals: l } = Ye(), p = F(), {
|
|
3458
3460
|
augmentedChartData: h,
|
|
3459
3461
|
calculateHealthScore: _,
|
|
3460
3462
|
healthScore: b,
|
|
3461
|
-
loadAugmentedChartData:
|
|
3462
|
-
loadMonthlySummaries:
|
|
3463
|
-
} = p, { finstrong: y, connect: D } =
|
|
3463
|
+
loadAugmentedChartData: x,
|
|
3464
|
+
loadMonthlySummaries: v
|
|
3465
|
+
} = p, { finstrong: y, connect: D } = w(), { isCopyLoaded: g, isInitialized: f, selectedAccounts: M, setSelectedAccounts: P } = j(), { loadRepeatingTransactions: G } = Ve(), { isMobile: H } = Ue(), T = E(), { userProfile: V } = J(), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(!1);
|
|
3464
3466
|
if (m.useEffect(() => {
|
|
3465
3467
|
d(T);
|
|
3466
3468
|
}, []), m.useEffect(() => {
|
|
3467
3469
|
n && (p.handleFinstrongWidgetPrimaryCtaClick = n);
|
|
3468
|
-
}, [n, p]), m.useEffect(() =>
|
|
3469
|
-
|
|
3470
|
-
}, [
|
|
3471
|
-
|
|
3472
|
-
}, [c, a,
|
|
3470
|
+
}, [n, p]), m.useEffect(() => P(o), [o]), m.useEffect(() => {
|
|
3471
|
+
f && (_().finally(), x().finally(), v().finally());
|
|
3472
|
+
}, [f]), m.useEffect(() => {
|
|
3473
|
+
f && (l(M, c.start, c.end), a || (s(), G().finally()));
|
|
3474
|
+
}, [c, a, f, M]), !g || !f) return /* @__PURE__ */ e(Q, {});
|
|
3473
3475
|
const ce = () => {
|
|
3474
3476
|
}, he = () => ae(!0);
|
|
3475
3477
|
return /* @__PURE__ */ i(
|
|
@@ -3501,7 +3503,7 @@ const B = {
|
|
|
3501
3503
|
},
|
|
3502
3504
|
children: [
|
|
3503
3505
|
/* @__PURE__ */ i(u, { sx: { gap: 24, width: { md: 432 } }, children: [
|
|
3504
|
-
/* @__PURE__ */ e(
|
|
3506
|
+
/* @__PURE__ */ e(xa, {}),
|
|
3505
3507
|
/* @__PURE__ */ e(
|
|
3506
3508
|
Be,
|
|
3507
3509
|
{
|
|
@@ -3551,13 +3553,13 @@ const B = {
|
|
|
3551
3553
|
title: y.peer_average,
|
|
3552
3554
|
useCustomMark: !0
|
|
3553
3555
|
}
|
|
3554
|
-
) : /* @__PURE__ */ e(
|
|
3555
|
-
b.health_score !== null && /* @__PURE__ */ e(
|
|
3556
|
+
) : /* @__PURE__ */ e(qr, { onClick: () => se(!0) }),
|
|
3557
|
+
b.health_score !== null && /* @__PURE__ */ e(Vr, {})
|
|
3556
3558
|
] }) })
|
|
3557
3559
|
]
|
|
3558
3560
|
}
|
|
3559
|
-
) : /* @__PURE__ */ e(
|
|
3560
|
-
/* @__PURE__ */ e(
|
|
3561
|
+
) : /* @__PURE__ */ e(ca, {}),
|
|
3562
|
+
/* @__PURE__ */ e(ua, { isOpen: re, onClose: () => ae(!1) }),
|
|
3561
3563
|
/* @__PURE__ */ e(
|
|
3562
3564
|
oe,
|
|
3563
3565
|
{
|
|
@@ -3567,7 +3569,7 @@ const B = {
|
|
|
3567
3569
|
}
|
|
3568
3570
|
),
|
|
3569
3571
|
/* @__PURE__ */ e(
|
|
3570
|
-
|
|
3572
|
+
ga,
|
|
3571
3573
|
{
|
|
3572
3574
|
isOpen: Ce,
|
|
3573
3575
|
onClose: () => ie(!1)
|
|
@@ -3576,12 +3578,12 @@ const B = {
|
|
|
3576
3578
|
]
|
|
3577
3579
|
}
|
|
3578
3580
|
);
|
|
3579
|
-
},
|
|
3581
|
+
}, Hi = S(Sa);
|
|
3580
3582
|
export {
|
|
3581
|
-
|
|
3583
|
+
Ho as CreditScoreGraph,
|
|
3582
3584
|
zt as DialScoreCard,
|
|
3583
3585
|
Et as FinancialStrengthGraph,
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3586
|
+
ji as FinstrongApi,
|
|
3587
|
+
Yi as FinstrongStore,
|
|
3588
|
+
Hi as FinstrongWidget
|
|
3587
3589
|
};
|