@mx-cartographer/experiences 7.6.9 → 7.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/finstrong/index.es.js +213 -211
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [7.6.11] - 01-16-2026
|
|
2
|
+
|
|
3
|
+
- **UPDATED** - Fixes for `Finstrong` onboarding and sticky footer
|
|
4
|
+
|
|
5
|
+
## [7.6.10] - 01-16-2026
|
|
6
|
+
|
|
7
|
+
- **UPDATED** - `Finstrong` KeyIndicators Line Graph Style
|
|
8
|
+
|
|
1
9
|
## [7.6.9] - 01-14-2026
|
|
2
10
|
|
|
3
11
|
- **REMOVED** - The ability to open account details from goals due to being inconsistent with other widgets.
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as E, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import k from "@mui/material/Box";
|
|
3
3
|
import p from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as G, alpha as
|
|
4
|
+
import { useTheme as G, alpha as ce } from "@mui/material/styles";
|
|
5
5
|
import { PieChart as nn } from "@mui/x-charts/PieChart";
|
|
6
6
|
import { P as M, H3 as K, Text as I, InstitutionLogo as ct, H2 as Le, MerchantLogo as on, Icon as rn } from "@mxenabled/mxui";
|
|
7
7
|
import { TrendingUp as lt, ArrowRightAlt as an, TrendingDown as sn, AccountBalance as dt, ChevronRight as J, MultilineChart as pt, CreditCard as Ge, CheckCircle as cn, Cancel as ln, Savings as dn, ContentCopy as pn, Add as _t, Cardiology as _n, Payments as hn, CalendarMonth as un, ExpandMore as mn } from "@mxenabled/mx-icons";
|
|
8
|
-
import { g as gn, a as yn, r as Je, b as bn, c as He, d as ht, C as
|
|
8
|
+
import { g as gn, a as yn, r as Je, b as bn, c as He, d as ht, C as ke, e as Me, f as fn, h as xn, i as Sn, j as ut, k as et, l as Cn, m as tt, n as vn, o as mt, p as wn, q as gt, s as Oe, t as yt, u as kn, v as bt, w as Mn, A as oe, x as Dn, P as In } from "../FinstrongStore-bEn_im_e.mjs";
|
|
9
9
|
import { y as bi, F as fi } from "../FinstrongStore-bEn_im_e.mjs";
|
|
10
10
|
import * as nt from "d3";
|
|
11
11
|
import { observer as w } from "mobx-react-lite";
|
|
12
|
-
import { u as x, b as U, a as Ne, o as ee, z as L, p as
|
|
12
|
+
import { u as x, b as U, a as Ne, o as ee, z as L, p as Tn, d as Ce, m as je, f as An, j as Ke, h as On, i as Rn } from "../hooks-ZMp65DFz.mjs";
|
|
13
13
|
import { L as te } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
15
|
import P from "@mui/material/Button";
|
|
16
16
|
import V from "@mui/material/Card";
|
|
17
17
|
import { L as Ve } from "../LineChart-BF4QA-Lx.mjs";
|
|
18
18
|
import { C as ft } from "../ConnectionsDrawer-XlO1q6PK.mjs";
|
|
19
|
-
import { l as
|
|
20
|
-
import
|
|
19
|
+
import { l as ae, g as xt, A as ze } from "../ConnectDrawer-CPvaP8lk.mjs";
|
|
20
|
+
import le from "@mui/material/Tab";
|
|
21
21
|
import Xe from "@mui/material/Tabs";
|
|
22
22
|
import Re from "@mui/material/TextField";
|
|
23
23
|
import { u as Ye } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { a as Fn, f as Ln, D as Bn } from "../Dialog-B4PI-_bL.mjs";
|
|
25
25
|
import { u as St } from "../useDimensions-27p2evRx.mjs";
|
|
26
26
|
import Pn from "@mui/material/Chip";
|
|
27
|
-
import { D as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
27
|
+
import { D as re } from "../Drawer-DV4NTsFg.mjs";
|
|
28
|
+
import pe from "@mui/material/Divider";
|
|
29
|
+
import fe from "@mui/material/ListItem";
|
|
30
30
|
import Ct from "@mui/material/ListItemAvatar";
|
|
31
|
-
import
|
|
31
|
+
import xe from "@mui/material/ListItemText";
|
|
32
32
|
import { g as vt } from "../AccountFields-BQPsS98r.mjs";
|
|
33
33
|
import Ee from "@mui/material/List";
|
|
34
34
|
import Wn from "@mui/material/ListItemButton";
|
|
@@ -39,7 +39,7 @@ import { S as ot, F as wt, e as zn, R as kt } from "../RecurringTransactions-Bf4
|
|
|
39
39
|
import { S as En } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
40
|
import { h as Mt } from "../DateUtil-D7U-nc1Y.mjs";
|
|
41
41
|
import { T as Gn, s as Hn, h as Nn, S as jn, b as Kn } from "../TransactionDetails-BKoBKUNp.mjs";
|
|
42
|
-
import { T as
|
|
42
|
+
import { T as de } from "../TabContentContainer-j01JYR_7.mjs";
|
|
43
43
|
import { E as Fe } from "../EmptyState-DoxNUae-.mjs";
|
|
44
44
|
import Vn from "@mui/material/useMediaQuery";
|
|
45
45
|
import { BarPlot as Xn } from "@mui/x-charts/BarChart";
|
|
@@ -55,7 +55,7 @@ import { startOfToday as rt } from "date-fns/startOfToday";
|
|
|
55
55
|
import { subDays as no } from "date-fns/subDays";
|
|
56
56
|
import { c as oo, d as at, S as ro, i as ao } from "../ManageIncome-1FRPmZFq.mjs";
|
|
57
57
|
import { LocalizationProvider as io, DatePicker as so, StaticDatePicker as co } from "@mui/x-date-pickers";
|
|
58
|
-
import { AdapterDateFns as
|
|
58
|
+
import { AdapterDateFns as Tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
59
59
|
import { R as lo } from "../RecurringSettings-z0XUW9qx.mjs";
|
|
60
60
|
import { LocalizationProvider as po } from "@mui/x-date-pickers/LocalizationProvider";
|
|
61
61
|
import { format as _o } from "date-fns/format";
|
|
@@ -126,7 +126,7 @@ const Mo = ({
|
|
|
126
126
|
}
|
|
127
127
|
) })
|
|
128
128
|
] });
|
|
129
|
-
},
|
|
129
|
+
}, At = ({
|
|
130
130
|
arcRadius: t = 100,
|
|
131
131
|
healthScore: o,
|
|
132
132
|
size: n = "L",
|
|
@@ -141,23 +141,23 @@ const Mo = ({
|
|
|
141
141
|
footerRightContent: h,
|
|
142
142
|
isFinacialStrengthGraph: y = !1
|
|
143
143
|
}) => {
|
|
144
|
-
const S = G(), v = -Math.PI / 1.35, f = Math.PI / 1.35, D = f - v, C = D / (i - s), g = (o - s) * C, b = v + g + 0.02, R = n !== "SM" ? 0.1 : 0.12, B = t, Y = t * (1 - R),
|
|
144
|
+
const S = G(), v = -Math.PI / 1.35, f = Math.PI / 1.35, D = f - v, C = D / (i - s), g = (o - s) * C, b = v + g + 0.02, R = n !== "SM" ? 0.1 : 0.12, B = t, Y = t * (1 - R), A = B * 2, $ = A / 2, z = A / 2, he = (Y + B) / 2, we = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [Q, X] = bn(he, b, we), ue = o / 25, H = {
|
|
145
145
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
146
146
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
147
147
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
148
|
-
},
|
|
148
|
+
}, me = {
|
|
149
149
|
top: 0,
|
|
150
150
|
right: 0,
|
|
151
151
|
bottom: 0,
|
|
152
152
|
left: 0,
|
|
153
153
|
...l
|
|
154
|
-
}, N = _ === 0 ? an : sn,
|
|
154
|
+
}, N = _ === 0 ? an : sn, ie = n !== "SM" ? 3 : 1, ge = ie * 4, ne = H[n].markerSize * 2 + ge;
|
|
155
155
|
return /* @__PURE__ */ a(
|
|
156
156
|
p,
|
|
157
157
|
{
|
|
158
158
|
sx: {
|
|
159
|
-
width:
|
|
160
|
-
height: n === "SM" ?
|
|
159
|
+
width: A,
|
|
160
|
+
height: n === "SM" ? A - 7 : A,
|
|
161
161
|
position: "relative",
|
|
162
162
|
alignSelf: "center",
|
|
163
163
|
overflow: "visible"
|
|
@@ -166,9 +166,9 @@ const Mo = ({
|
|
|
166
166
|
/* @__PURE__ */ e(
|
|
167
167
|
nn,
|
|
168
168
|
{
|
|
169
|
-
height: n === "SM" ?
|
|
169
|
+
height: n === "SM" ? A - 7 : A,
|
|
170
170
|
hideLegend: !0,
|
|
171
|
-
margin:
|
|
171
|
+
margin: me,
|
|
172
172
|
series: [
|
|
173
173
|
{
|
|
174
174
|
data: r,
|
|
@@ -197,7 +197,7 @@ const Mo = ({
|
|
|
197
197
|
outterArcRadius: B,
|
|
198
198
|
progressEndAngle: b,
|
|
199
199
|
totalAngularSpan: D,
|
|
200
|
-
unitsPerSegment:
|
|
200
|
+
unitsPerSegment: ue
|
|
201
201
|
}
|
|
202
202
|
)
|
|
203
203
|
},
|
|
@@ -206,21 +206,21 @@ const Mo = ({
|
|
|
206
206
|
stroke: "none"
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
|
-
width:
|
|
209
|
+
width: A
|
|
210
210
|
}
|
|
211
211
|
),
|
|
212
212
|
o >= s && o <= i && /* @__PURE__ */ e(
|
|
213
213
|
"svg",
|
|
214
214
|
{
|
|
215
|
-
height:
|
|
215
|
+
height: ne,
|
|
216
216
|
style: {
|
|
217
217
|
position: "absolute",
|
|
218
218
|
left: $ + Q - H[n].markerSize - 5,
|
|
219
219
|
top: z + X - H[n].markerSize - 5,
|
|
220
220
|
overflow: "visible"
|
|
221
221
|
},
|
|
222
|
-
viewBox: `${$ + Q - H[n].markerSize - 5} ${z + X - H[n].markerSize - 5} ${
|
|
223
|
-
width:
|
|
222
|
+
viewBox: `${$ + Q - H[n].markerSize - 5} ${z + X - H[n].markerSize - 5} ${ne} ${ne}`,
|
|
223
|
+
width: ne,
|
|
224
224
|
children: /* @__PURE__ */ e(
|
|
225
225
|
"circle",
|
|
226
226
|
{
|
|
@@ -229,7 +229,7 @@ const Mo = ({
|
|
|
229
229
|
fill: S.palette.common.white,
|
|
230
230
|
r: H[n].markerSize,
|
|
231
231
|
stroke: y ? "url(#arcGradient)" : c,
|
|
232
|
-
strokeWidth:
|
|
232
|
+
strokeWidth: ie
|
|
233
233
|
}
|
|
234
234
|
)
|
|
235
235
|
}
|
|
@@ -349,7 +349,7 @@ const Mo = ({
|
|
|
349
349
|
{ id: 4, label: "Group D", value: 25 }
|
|
350
350
|
], { finstrong: l } = x(), c = He(n, l);
|
|
351
351
|
return /* @__PURE__ */ e(
|
|
352
|
-
|
|
352
|
+
At,
|
|
353
353
|
{
|
|
354
354
|
arcRadius: t,
|
|
355
355
|
dialScoreData: i,
|
|
@@ -376,31 +376,31 @@ const Mo = ({
|
|
|
376
376
|
id: 1,
|
|
377
377
|
label: "Poor",
|
|
378
378
|
value: 29,
|
|
379
|
-
color: c ?
|
|
379
|
+
color: c ? ke.POOR : Me.POOR
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
id: 2,
|
|
383
383
|
label: "Fair",
|
|
384
384
|
value: 25,
|
|
385
|
-
color: c ?
|
|
385
|
+
color: c ? ke.FAIR : Me.FAIR
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
388
|
id: 3,
|
|
389
389
|
label: "Good",
|
|
390
390
|
value: 17,
|
|
391
|
-
color: c ?
|
|
391
|
+
color: c ? ke.GOOD : Me.GOOD
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
id: 4,
|
|
395
395
|
label: "Very Good",
|
|
396
396
|
value: 17,
|
|
397
|
-
color: c ?
|
|
397
|
+
color: c ? ke.VERY_GOOD : Me.VERY_GOOD
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
id: 5,
|
|
401
401
|
label: "Exceptional",
|
|
402
402
|
value: 12,
|
|
403
|
-
color: c ?
|
|
403
|
+
color: c ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
|
|
404
404
|
}
|
|
405
405
|
], { finstrong: _ } = x(), { isCopyLoaded: u } = U();
|
|
406
406
|
if (!u) return /* @__PURE__ */ e(te, {});
|
|
@@ -410,7 +410,7 @@ const Mo = ({
|
|
|
410
410
|
_.credit_score_status
|
|
411
411
|
);
|
|
412
412
|
return /* @__PURE__ */ e(
|
|
413
|
-
|
|
413
|
+
At,
|
|
414
414
|
{
|
|
415
415
|
arcRadius: t,
|
|
416
416
|
dialScoreData: d,
|
|
@@ -481,7 +481,7 @@ const Mo = ({
|
|
|
481
481
|
}
|
|
482
482
|
),
|
|
483
483
|
t === "connectDrawer" && /* @__PURE__ */ e(
|
|
484
|
-
|
|
484
|
+
ae,
|
|
485
485
|
{
|
|
486
486
|
onClose: () => _(!1),
|
|
487
487
|
showConnectWidget: d,
|
|
@@ -500,8 +500,8 @@ const Mo = ({
|
|
|
500
500
|
}
|
|
501
501
|
) : null;
|
|
502
502
|
};
|
|
503
|
-
var
|
|
504
|
-
const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif",
|
|
503
|
+
var _e = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(_e || {});
|
|
504
|
+
const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", To = ({ isOpen: t, onClose: o }) => {
|
|
505
505
|
const { common: n, finstrong: r } = x(), { isMobile: s } = Ye(), { updateUser: i, user: l } = ee(), [c, d] = m.useState(l.credit_score || 0), _ = !isNaN(c), u = () => {
|
|
506
506
|
o(), setTimeout(() => d(l.credit_score || 0), 300);
|
|
507
507
|
}, h = () => {
|
|
@@ -547,7 +547,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
547
547
|
)
|
|
548
548
|
}
|
|
549
549
|
);
|
|
550
|
-
}, Rt = w(
|
|
550
|
+
}, Rt = w(To), Ao = ({ chartFor: t }) => {
|
|
551
551
|
const o = G(), n = o.palette.mode === "dark", { monthlySummaries: r } = L(), { user: s } = ee(), { finstrong: i } = x(), [l, { width: c }] = St(), d = {
|
|
552
552
|
savingsOverTime: {
|
|
553
553
|
icon: /* @__PURE__ */ e(lt, { size: 48, sx: { marginBottom: 8 } }),
|
|
@@ -635,8 +635,8 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
635
635
|
/* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children: d.title }),
|
|
636
636
|
/* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: d.description })
|
|
637
637
|
] }) });
|
|
638
|
-
}, qe = w(
|
|
639
|
-
const { healthScoreChangeReports: t } = L(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } =
|
|
638
|
+
}, qe = w(Ao), Oo = () => {
|
|
639
|
+
const { healthScoreChangeReports: t } = L(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } = Tn(), { isSmallMobile: s } = Ye(r), [i, l] = m.useState(!1), c = t.at(-1);
|
|
640
640
|
return /* @__PURE__ */ a(k, { children: [
|
|
641
641
|
/* @__PURE__ */ a(p, { sx: { gap: 28 }, children: [
|
|
642
642
|
/* @__PURE__ */ e(
|
|
@@ -702,7 +702,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
702
702
|
drawerType: h
|
|
703
703
|
}) => {
|
|
704
704
|
const { finstrong: y } = x(), { isCopyLoaded: S } = U();
|
|
705
|
-
return S ? /* @__PURE__ */ e(
|
|
705
|
+
return S ? /* @__PURE__ */ e(re, { isOpen: l, onClose: d, title: i || y.key_indicators, children: /* @__PURE__ */ a(p, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
|
706
706
|
(u || s) && /* @__PURE__ */ a(
|
|
707
707
|
p,
|
|
708
708
|
{
|
|
@@ -780,7 +780,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
780
780
|
}), f = /* @__PURE__ */ a(E, { children: [
|
|
781
781
|
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(ct, { alt: "MX", institutionGuid: h.institution_guid ?? "" }) }),
|
|
782
782
|
/* @__PURE__ */ e(
|
|
783
|
-
|
|
783
|
+
xe,
|
|
784
784
|
{
|
|
785
785
|
primary: `${v}${h.account_number ? ` *${h.account_number}` : ""}`,
|
|
786
786
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
@@ -789,11 +789,11 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
789
789
|
o && /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: W(S ?? 0, "0,0.00") })
|
|
790
790
|
] });
|
|
791
791
|
return /* @__PURE__ */ a(m.Fragment, { children: [
|
|
792
|
-
/* @__PURE__ */ e(
|
|
793
|
-
y !== _.length - 1 && /* @__PURE__ */ e(
|
|
792
|
+
/* @__PURE__ */ e(fe, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Wn, { onClick: () => l(h), children: f }) : f }),
|
|
793
|
+
y !== _.length - 1 && /* @__PURE__ */ e(pe, { variant: "inset" })
|
|
794
794
|
] }, h.guid);
|
|
795
795
|
}),
|
|
796
|
-
/* @__PURE__ */ e(
|
|
796
|
+
/* @__PURE__ */ e(pe, {})
|
|
797
797
|
]
|
|
798
798
|
},
|
|
799
799
|
d
|
|
@@ -811,10 +811,10 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
811
811
|
};
|
|
812
812
|
return y.length >= 1 ? /* @__PURE__ */ a(E, { children: [
|
|
813
813
|
/* @__PURE__ */ e(k, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: S.map((f, D) => /* @__PURE__ */ a(m.Fragment, { children: [
|
|
814
|
-
/* @__PURE__ */ a(
|
|
814
|
+
/* @__PURE__ */ a(fe, { sx: { px: 24 }, children: [
|
|
815
815
|
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(ct, { alt: "MX", institutionGuid: f.institution_guid ?? "" }) }),
|
|
816
816
|
/* @__PURE__ */ e(
|
|
817
|
-
|
|
817
|
+
xe,
|
|
818
818
|
{
|
|
819
819
|
primary: `${xt(f, {
|
|
820
820
|
allowNickname: r?.show_account_nicknames_in_master
|
|
@@ -825,7 +825,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
825
825
|
),
|
|
826
826
|
/* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: W(v(f), "0,0.00") })
|
|
827
827
|
] }),
|
|
828
|
-
D < S.length - 1 && /* @__PURE__ */ e(
|
|
828
|
+
D < S.length - 1 && /* @__PURE__ */ e(pe, { variant: "inset" })
|
|
829
829
|
] }, f.guid)) }),
|
|
830
830
|
y.length > 3 && /* @__PURE__ */ a(E, { children: [
|
|
831
831
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
@@ -842,7 +842,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
842
842
|
] })
|
|
843
843
|
}
|
|
844
844
|
) }),
|
|
845
|
-
/* @__PURE__ */ e(
|
|
845
|
+
/* @__PURE__ */ e(re, { isOpen: d, onClose: () => _(!1), title: i.accounts, children: /* @__PURE__ */ e(Lt, { loadAccounts: t }) })
|
|
846
846
|
] })
|
|
847
847
|
] }) : /* @__PURE__ */ a(E, { children: [
|
|
848
848
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
@@ -856,7 +856,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
856
856
|
}
|
|
857
857
|
) }),
|
|
858
858
|
/* @__PURE__ */ e(
|
|
859
|
-
|
|
859
|
+
ae,
|
|
860
860
|
{
|
|
861
861
|
onClose: () => h(!1),
|
|
862
862
|
showConnectWidget: u,
|
|
@@ -864,7 +864,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
864
864
|
}
|
|
865
865
|
)
|
|
866
866
|
] });
|
|
867
|
-
}, Bt = w(Wo),
|
|
867
|
+
}, Bt = w(Wo), ve = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ a(
|
|
868
868
|
p,
|
|
869
869
|
{
|
|
870
870
|
sx: {
|
|
@@ -882,7 +882,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
882
882
|
]
|
|
883
883
|
}
|
|
884
884
|
);
|
|
885
|
-
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 || {}),
|
|
885
|
+
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 || {}), De = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(De || {}), Z = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Z || {});
|
|
886
886
|
const $o = ({ total: t }) => {
|
|
887
887
|
const { finstrong: o } = x(), n = [
|
|
888
888
|
{ id: Z.Monthly, label: o.maintain_emergency_savings_monthly },
|
|
@@ -895,12 +895,12 @@ const $o = ({ total: t }) => {
|
|
|
895
895
|
[Z.Weekly]: o.maintain_emergency_savings_estimated_period_weekly,
|
|
896
896
|
[Z.Daily]: o.maintain_emergency_savings_estimated_period_daily
|
|
897
897
|
}, s = [
|
|
898
|
-
{ id:
|
|
899
|
-
{ id:
|
|
900
|
-
{ id:
|
|
898
|
+
{ id: De.Months, label: o.maintain_emergency_savings_months },
|
|
899
|
+
{ id: De.Years, label: o.maintain_emergency_savings_years },
|
|
900
|
+
{ id: De.Days, label: o.maintain_emergency_savings_days }
|
|
901
901
|
], i = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = m.useState(0), [d, _] = m.useState(et(t)), [u, h] = m.useState(
|
|
902
902
|
et(t)
|
|
903
|
-
), [y, S] = m.useState(i), [v, f] = m.useState(Cn(t)), [D, C] = m.useState(
|
|
903
|
+
), [y, S] = m.useState(i), [v, f] = m.useState(Cn(t)), [D, C] = m.useState(De.Months);
|
|
904
904
|
m.useEffect(() => {
|
|
905
905
|
c(
|
|
906
906
|
tt({
|
|
@@ -925,7 +925,7 @@ const $o = ({ total: t }) => {
|
|
|
925
925
|
};
|
|
926
926
|
return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ a(p, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
927
927
|
/* @__PURE__ */ e(
|
|
928
|
-
|
|
928
|
+
ve,
|
|
929
929
|
{
|
|
930
930
|
balance: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
931
931
|
/* @__PURE__ */ e(I, { variant: "h2", children: W(l, "0,0") }),
|
|
@@ -1011,13 +1011,13 @@ const $o = ({ total: t }) => {
|
|
|
1011
1011
|
/* @__PURE__ */ e(P, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
|
|
1012
1012
|
] }) }) });
|
|
1013
1013
|
}, zo = w($o), Eo = () => {
|
|
1014
|
-
const { savingsAccounts: t } =
|
|
1014
|
+
const { savingsAccounts: t } = Ce(), { finstrong: o } = x(), [n, r] = m.useState(!1), s = m.useMemo(
|
|
1015
1015
|
() => t.reduce((i, l) => i + (l.balance ?? 0), 0),
|
|
1016
1016
|
[t]
|
|
1017
1017
|
);
|
|
1018
1018
|
return /* @__PURE__ */ a(p, { sx: { gap: 24 }, children: [
|
|
1019
1019
|
/* @__PURE__ */ e(V, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
|
|
1020
|
-
/* @__PURE__ */ e(
|
|
1020
|
+
/* @__PURE__ */ e(ve, { balance: s, title: o.maintain_emergency_savings_your_savings }),
|
|
1021
1021
|
t.length ? /* @__PURE__ */ e(
|
|
1022
1022
|
Bt,
|
|
1023
1023
|
{
|
|
@@ -1028,7 +1028,7 @@ const $o = ({ total: t }) => {
|
|
|
1028
1028
|
] }) }),
|
|
1029
1029
|
/* @__PURE__ */ e(zo, { total: s }),
|
|
1030
1030
|
/* @__PURE__ */ e(
|
|
1031
|
-
|
|
1031
|
+
ae,
|
|
1032
1032
|
{
|
|
1033
1033
|
onClose: () => r(!1),
|
|
1034
1034
|
showConnectWidget: n,
|
|
@@ -1104,7 +1104,7 @@ const $o = ({ total: t }) => {
|
|
|
1104
1104
|
{
|
|
1105
1105
|
bottomComponent: /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: No.map((s) => /* @__PURE__ */ a(p, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1106
1106
|
/* @__PURE__ */ e(
|
|
1107
|
-
|
|
1107
|
+
pe,
|
|
1108
1108
|
{
|
|
1109
1109
|
orientation: "vertical",
|
|
1110
1110
|
sx: {
|
|
@@ -1153,7 +1153,7 @@ const $o = ({ total: t }) => {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
) }),
|
|
1155
1155
|
/* @__PURE__ */ e(
|
|
1156
|
-
|
|
1156
|
+
ae,
|
|
1157
1157
|
{
|
|
1158
1158
|
onClose: () => y(!1),
|
|
1159
1159
|
showConnectWidget: h,
|
|
@@ -1228,7 +1228,7 @@ const $o = ({ total: t }) => {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
) }),
|
|
1230
1230
|
/* @__PURE__ */ e(
|
|
1231
|
-
|
|
1231
|
+
re,
|
|
1232
1232
|
{
|
|
1233
1233
|
isOpen: _,
|
|
1234
1234
|
onClose: () => u(!1),
|
|
@@ -1313,10 +1313,10 @@ const $o = ({ total: t }) => {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
);
|
|
1315
1315
|
}, qo = w(Yo), Uo = () => {
|
|
1316
|
-
const { savingsAndCheckingAccountsBalance: t } =
|
|
1316
|
+
const { savingsAndCheckingAccountsBalance: t } = Ce(), { finstrong: o } = x();
|
|
1317
1317
|
return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1318
1318
|
/* @__PURE__ */ e(
|
|
1319
|
-
|
|
1319
|
+
ve,
|
|
1320
1320
|
{
|
|
1321
1321
|
balance: t,
|
|
1322
1322
|
title: o.key_indicators_save.drawer_available_balance
|
|
@@ -1347,7 +1347,7 @@ const $o = ({ total: t }) => {
|
|
|
1347
1347
|
}, [r.spend, r.debtSpend]);
|
|
1348
1348
|
return o ? /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1349
1349
|
/* @__PURE__ */ e(
|
|
1350
|
-
|
|
1350
|
+
ve,
|
|
1351
1351
|
{
|
|
1352
1352
|
balance: n.ninety_day_spend / 90,
|
|
1353
1353
|
title: t.key_indicators_save.drawer_daily_spend
|
|
@@ -1371,7 +1371,7 @@ const $o = ({ total: t }) => {
|
|
|
1371
1371
|
variant: "fullWidth",
|
|
1372
1372
|
children: [
|
|
1373
1373
|
/* @__PURE__ */ e(
|
|
1374
|
-
|
|
1374
|
+
le,
|
|
1375
1375
|
{
|
|
1376
1376
|
"aria-controls": "available-details-tabpanel-0",
|
|
1377
1377
|
label: n.key_indicators_save.drawer_available,
|
|
@@ -1379,7 +1379,7 @@ const $o = ({ total: t }) => {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
),
|
|
1381
1381
|
/* @__PURE__ */ e(
|
|
1382
|
-
|
|
1382
|
+
le,
|
|
1383
1383
|
{
|
|
1384
1384
|
"aria-controls": "spending-details-tabpanel-1",
|
|
1385
1385
|
label: n.key_indicators_save.drawer_spending,
|
|
@@ -1389,8 +1389,8 @@ const $o = ({ total: t }) => {
|
|
|
1389
1389
|
]
|
|
1390
1390
|
}
|
|
1391
1391
|
),
|
|
1392
|
-
/* @__PURE__ */ e(
|
|
1393
|
-
/* @__PURE__ */ e(
|
|
1392
|
+
/* @__PURE__ */ e(de, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Qo, {}) }),
|
|
1393
|
+
/* @__PURE__ */ e(de, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(Jo, {}) })
|
|
1394
1394
|
] }),
|
|
1395
1395
|
/* @__PURE__ */ e(qe, { chartFor: "savingsOverTime" })
|
|
1396
1396
|
] });
|
|
@@ -1418,7 +1418,7 @@ const $o = ({ total: t }) => {
|
|
|
1418
1418
|
},
|
|
1419
1419
|
children: [
|
|
1420
1420
|
/* @__PURE__ */ e(
|
|
1421
|
-
|
|
1421
|
+
pe,
|
|
1422
1422
|
{
|
|
1423
1423
|
orientation: "vertical",
|
|
1424
1424
|
sx: {
|
|
@@ -1480,7 +1480,7 @@ const $o = ({ total: t }) => {
|
|
|
1480
1480
|
},
|
|
1481
1481
|
children: [
|
|
1482
1482
|
/* @__PURE__ */ e(
|
|
1483
|
-
|
|
1483
|
+
pe,
|
|
1484
1484
|
{
|
|
1485
1485
|
orientation: "vertical",
|
|
1486
1486
|
sx: {
|
|
@@ -1528,7 +1528,7 @@ const $o = ({ total: t }) => {
|
|
|
1528
1528
|
const { healthScore: t, allTransactions: o } = L(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
|
|
1529
1529
|
return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1530
1530
|
/* @__PURE__ */ e(
|
|
1531
|
-
|
|
1531
|
+
ve,
|
|
1532
1532
|
{
|
|
1533
1533
|
balance: t.ninety_day_income,
|
|
1534
1534
|
sx: { flexDirection: "column-reverse" },
|
|
@@ -1549,7 +1549,7 @@ const $o = ({ total: t }) => {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
),
|
|
1551
1551
|
/* @__PURE__ */ e(
|
|
1552
|
-
|
|
1552
|
+
ae,
|
|
1553
1553
|
{
|
|
1554
1554
|
onClose: () => i(!1),
|
|
1555
1555
|
showConnectWidget: s,
|
|
@@ -1561,7 +1561,7 @@ const $o = ({ total: t }) => {
|
|
|
1561
1561
|
const { allTransactions: t, healthScore: o } = L(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
|
|
1562
1562
|
return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1563
1563
|
/* @__PURE__ */ e(
|
|
1564
|
-
|
|
1564
|
+
ve,
|
|
1565
1565
|
{
|
|
1566
1566
|
balance: o.ninety_day_debt_spend,
|
|
1567
1567
|
sx: { flexDirection: "column-reverse" },
|
|
@@ -1588,7 +1588,7 @@ const $o = ({ total: t }) => {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
),
|
|
1590
1590
|
/* @__PURE__ */ e(
|
|
1591
|
-
|
|
1591
|
+
ae,
|
|
1592
1592
|
{
|
|
1593
1593
|
onClose: () => i(!1),
|
|
1594
1594
|
showConnectWidget: s,
|
|
@@ -1641,7 +1641,7 @@ const $o = ({ total: t }) => {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
)
|
|
1643
1643
|
] });
|
|
1644
|
-
},
|
|
1644
|
+
}, Ae = (t, o = 1e3) => {
|
|
1645
1645
|
const n = Math.abs(t) >= o ? "0.[0]a" : "0";
|
|
1646
1646
|
return W(t, n);
|
|
1647
1647
|
}, Pt = ({
|
|
@@ -1661,14 +1661,14 @@ const $o = ({ total: t }) => {
|
|
|
1661
1661
|
spending_vs_income: {
|
|
1662
1662
|
main: g.standard_spend,
|
|
1663
1663
|
comparison: g.income,
|
|
1664
|
-
formattedMain:
|
|
1665
|
-
formattedComparison:
|
|
1664
|
+
formattedMain: Ae(g.standard_spend),
|
|
1665
|
+
formattedComparison: Ae(g.income)
|
|
1666
1666
|
},
|
|
1667
1667
|
debt_payment_vs_income: {
|
|
1668
1668
|
main: g.income,
|
|
1669
1669
|
comparison: g.debt_spend,
|
|
1670
|
-
formattedMain:
|
|
1671
|
-
formattedComparison:
|
|
1670
|
+
formattedMain: Ae(g.income),
|
|
1671
|
+
formattedComparison: Ae(g.debt_spend)
|
|
1672
1672
|
}
|
|
1673
1673
|
};
|
|
1674
1674
|
return {
|
|
@@ -1872,7 +1872,7 @@ const $o = ({ total: t }) => {
|
|
|
1872
1872
|
variant: "fullWidth",
|
|
1873
1873
|
children: [
|
|
1874
1874
|
/* @__PURE__ */ e(
|
|
1875
|
-
|
|
1875
|
+
le,
|
|
1876
1876
|
{
|
|
1877
1877
|
"aria-controls": "income-details-tabpanel-0",
|
|
1878
1878
|
id: "income-details-tab-0",
|
|
@@ -1881,7 +1881,7 @@ const $o = ({ total: t }) => {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
),
|
|
1883
1883
|
/* @__PURE__ */ e(
|
|
1884
|
-
|
|
1884
|
+
le,
|
|
1885
1885
|
{
|
|
1886
1886
|
"aria-controls": "debt-payment-details-tabpanel-1",
|
|
1887
1887
|
id: "debt-payment-details-tab-1",
|
|
@@ -1893,7 +1893,7 @@ const $o = ({ total: t }) => {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
),
|
|
1895
1895
|
/* @__PURE__ */ e(
|
|
1896
|
-
|
|
1896
|
+
de,
|
|
1897
1897
|
{
|
|
1898
1898
|
"aria-labelledby": "income-details-tab-0",
|
|
1899
1899
|
index: 0,
|
|
@@ -1903,7 +1903,7 @@ const $o = ({ total: t }) => {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
),
|
|
1905
1905
|
/* @__PURE__ */ e(
|
|
1906
|
-
|
|
1906
|
+
de,
|
|
1907
1907
|
{
|
|
1908
1908
|
"aria-labelledby": "debt-payment-details-tab-1",
|
|
1909
1909
|
index: 1,
|
|
@@ -2000,7 +2000,7 @@ const $o = ({ total: t }) => {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
);
|
|
2002
2002
|
}, ur = w(hr), mr = () => {
|
|
2003
|
-
const { accounts: t } =
|
|
2003
|
+
const { accounts: t } = Ce(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = je(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = L(), { appDataStore: l } = An(), { finstrong: c, goals: d, spending: _ } = x(), u = G(), [h, y] = m.useState("");
|
|
2004
2004
|
m.useEffect(() => {
|
|
2005
2005
|
r(
|
|
2006
2006
|
t,
|
|
@@ -2211,7 +2211,7 @@ const $o = ({ total: t }) => {
|
|
|
2211
2211
|
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: i.content })
|
|
2212
2212
|
}
|
|
2213
2213
|
);
|
|
2214
|
-
}, br = w(yr),
|
|
2214
|
+
}, br = w(yr), Se = ({
|
|
2215
2215
|
drawerFor: t,
|
|
2216
2216
|
title: o,
|
|
2217
2217
|
description: n,
|
|
@@ -2288,20 +2288,20 @@ const $o = ({ total: t }) => {
|
|
|
2288
2288
|
]);
|
|
2289
2289
|
return /* @__PURE__ */ a(p, { sx: { gap: 24, p: 8, pt: 24 }, children: [
|
|
2290
2290
|
/* @__PURE__ */ e(
|
|
2291
|
-
|
|
2291
|
+
Se,
|
|
2292
2292
|
{
|
|
2293
2293
|
cardState: s.cardState,
|
|
2294
2294
|
description: s.description,
|
|
2295
|
-
drawerFor:
|
|
2295
|
+
drawerFor: _e.SpendLessThanYouMake,
|
|
2296
2296
|
title: s.title
|
|
2297
2297
|
}
|
|
2298
2298
|
),
|
|
2299
2299
|
/* @__PURE__ */ e(
|
|
2300
|
-
|
|
2300
|
+
Se,
|
|
2301
2301
|
{
|
|
2302
2302
|
cardState: i.cardState,
|
|
2303
2303
|
description: i.description,
|
|
2304
|
-
drawerFor:
|
|
2304
|
+
drawerFor: _e.PayBillsOnTime,
|
|
2305
2305
|
title: i.title
|
|
2306
2306
|
}
|
|
2307
2307
|
)
|
|
@@ -2346,20 +2346,20 @@ const $o = ({ total: t }) => {
|
|
|
2346
2346
|
]);
|
|
2347
2347
|
return /* @__PURE__ */ a(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2348
2348
|
/* @__PURE__ */ e(
|
|
2349
|
-
|
|
2349
|
+
Se,
|
|
2350
2350
|
{
|
|
2351
2351
|
cardState: i.cardState,
|
|
2352
2352
|
description: i.description,
|
|
2353
|
-
drawerFor:
|
|
2353
|
+
drawerFor: _e.SaveEnoughToLiveOn,
|
|
2354
2354
|
title: i.title
|
|
2355
2355
|
}
|
|
2356
2356
|
),
|
|
2357
2357
|
/* @__PURE__ */ e(
|
|
2358
|
-
|
|
2358
|
+
Se,
|
|
2359
2359
|
{
|
|
2360
2360
|
cardState: l.cardState,
|
|
2361
2361
|
description: l.description,
|
|
2362
|
-
drawerFor:
|
|
2362
|
+
drawerFor: _e.MaintainEmergencySavings,
|
|
2363
2363
|
title: l.title
|
|
2364
2364
|
}
|
|
2365
2365
|
)
|
|
@@ -2398,20 +2398,20 @@ const $o = ({ total: t }) => {
|
|
|
2398
2398
|
}, [t.debt_to_income_ratio, r.credit_score, n, o]);
|
|
2399
2399
|
return /* @__PURE__ */ a(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2400
2400
|
/* @__PURE__ */ e(
|
|
2401
|
-
|
|
2401
|
+
Se,
|
|
2402
2402
|
{
|
|
2403
2403
|
cardState: l.cardState,
|
|
2404
2404
|
description: l.description,
|
|
2405
|
-
drawerFor:
|
|
2405
|
+
drawerFor: _e.HaveManageableDebt,
|
|
2406
2406
|
title: l.title
|
|
2407
2407
|
}
|
|
2408
2408
|
),
|
|
2409
2409
|
/* @__PURE__ */ e(
|
|
2410
|
-
|
|
2410
|
+
Se,
|
|
2411
2411
|
{
|
|
2412
2412
|
cardState: c.cardState,
|
|
2413
2413
|
description: c.description,
|
|
2414
|
-
drawerFor:
|
|
2414
|
+
drawerFor: _e.HaveAGoodCreditScore,
|
|
2415
2415
|
title: c.title
|
|
2416
2416
|
}
|
|
2417
2417
|
)
|
|
@@ -2437,7 +2437,7 @@ const $o = ({ total: t }) => {
|
|
|
2437
2437
|
variant: "fullWidth",
|
|
2438
2438
|
children: [
|
|
2439
2439
|
/* @__PURE__ */ e(
|
|
2440
|
-
|
|
2440
|
+
le,
|
|
2441
2441
|
{
|
|
2442
2442
|
"aria-controls": "spend-details-tabpanel-0",
|
|
2443
2443
|
icon: /* @__PURE__ */ e(Ge, { sx: { mr: 8 } }),
|
|
@@ -2448,7 +2448,7 @@ const $o = ({ total: t }) => {
|
|
|
2448
2448
|
}
|
|
2449
2449
|
),
|
|
2450
2450
|
/* @__PURE__ */ e(
|
|
2451
|
-
|
|
2451
|
+
le,
|
|
2452
2452
|
{
|
|
2453
2453
|
"aria-controls": "save-details-tabpanel-1",
|
|
2454
2454
|
icon: /* @__PURE__ */ e(dn, { sx: { mr: 8 } }),
|
|
@@ -2459,7 +2459,7 @@ const $o = ({ total: t }) => {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
),
|
|
2461
2461
|
/* @__PURE__ */ e(
|
|
2462
|
-
|
|
2462
|
+
le,
|
|
2463
2463
|
{
|
|
2464
2464
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2465
2465
|
icon: /* @__PURE__ */ e(pn, { sx: { mr: 8 } }),
|
|
@@ -2472,9 +2472,9 @@ const $o = ({ total: t }) => {
|
|
|
2472
2472
|
]
|
|
2473
2473
|
}
|
|
2474
2474
|
),
|
|
2475
|
-
/* @__PURE__ */ e(
|
|
2476
|
-
/* @__PURE__ */ e(
|
|
2477
|
-
/* @__PURE__ */ e(
|
|
2475
|
+
/* @__PURE__ */ e(de, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(xr, {}) }),
|
|
2476
|
+
/* @__PURE__ */ e(de, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(Cr, {}) }),
|
|
2477
|
+
/* @__PURE__ */ e(de, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(wr, {}) })
|
|
2478
2478
|
] });
|
|
2479
2479
|
}, Mr = w(kr), Dr = ({ onClick: t }) => {
|
|
2480
2480
|
const { finstrong: o } = x(), { isCopyLoaded: n } = U();
|
|
@@ -2501,7 +2501,7 @@ const $o = ({ total: t }) => {
|
|
|
2501
2501
|
}
|
|
2502
2502
|
) })
|
|
2503
2503
|
] }) : /* @__PURE__ */ e(te, {});
|
|
2504
|
-
}, Ir = w(Dr),
|
|
2504
|
+
}, Ir = w(Dr), Tr = ({
|
|
2505
2505
|
firstDay: t,
|
|
2506
2506
|
frequency: o,
|
|
2507
2507
|
secondDay: n,
|
|
@@ -2522,7 +2522,7 @@ const $o = ({ total: t }) => {
|
|
|
2522
2522
|
/* @__PURE__ */ a(m.Fragment, { children: [
|
|
2523
2523
|
S && /* @__PURE__ */ e(jn, { children: Mt(h.date) }),
|
|
2524
2524
|
/* @__PURE__ */ e(Kn, { transaction: h }),
|
|
2525
|
-
/* @__PURE__ */ e(
|
|
2525
|
+
/* @__PURE__ */ e(pe, { sx: { ml: v ? 44 : 0 } })
|
|
2526
2526
|
] }, h.guid)
|
|
2527
2527
|
), u;
|
|
2528
2528
|
}, []) }),
|
|
@@ -2549,11 +2549,11 @@ const $o = ({ total: t }) => {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
) })
|
|
2551
2551
|
] });
|
|
2552
|
-
},
|
|
2552
|
+
}, Ar = w(Tr), Or = ({ selectedDate: t, setSelectedDate: o }) => {
|
|
2553
2553
|
const { finstrong: n } = x(), r = G(), s = (i) => {
|
|
2554
2554
|
o(Math.floor(new Date(i).getTime() / 1e3));
|
|
2555
2555
|
};
|
|
2556
|
-
return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(io, { dateAdapter:
|
|
2556
|
+
return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(io, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
2557
2557
|
so,
|
|
2558
2558
|
{
|
|
2559
2559
|
disableFuture: !0,
|
|
@@ -2563,13 +2563,13 @@ const $o = ({ total: t }) => {
|
|
|
2563
2563
|
nextIconButton: {
|
|
2564
2564
|
sx: {
|
|
2565
2565
|
color: "primary.main",
|
|
2566
|
-
"&:hover": { bgcolor:
|
|
2566
|
+
"&:hover": { bgcolor: ce(r.palette.primary.light, 0.1) }
|
|
2567
2567
|
}
|
|
2568
2568
|
},
|
|
2569
2569
|
previousIconButton: {
|
|
2570
2570
|
sx: {
|
|
2571
2571
|
color: "primary.main",
|
|
2572
|
-
"&:hover": { bgcolor:
|
|
2572
|
+
"&:hover": { bgcolor: ce(r.palette.primary.light, 0.1) }
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
},
|
|
@@ -2577,7 +2577,7 @@ const $o = ({ total: t }) => {
|
|
|
2577
2577
|
width: "100%",
|
|
2578
2578
|
"& .MuiIconButton-edgeEnd": {
|
|
2579
2579
|
color: "primary.main",
|
|
2580
|
-
"&:hover": { bgcolor:
|
|
2580
|
+
"&:hover": { bgcolor: ce(r.palette.primary.light, 0.1) }
|
|
2581
2581
|
}
|
|
2582
2582
|
},
|
|
2583
2583
|
value: t ? new Date(t * 1e3) : null
|
|
@@ -2633,14 +2633,14 @@ const $o = ({ total: t }) => {
|
|
|
2633
2633
|
step: O.ConnectAccounts,
|
|
2634
2634
|
type: "main"
|
|
2635
2635
|
}, Pr = ({ isOpen: t, onClose: o }) => {
|
|
2636
|
-
const { visibleAccounts: n } =
|
|
2636
|
+
const { visibleAccounts: n } = Ce(), { calculateHealthScore: r } = L(), { finstrong: s } = x(), { setSelectedAccounts: i } = U(), { addRepeatingTransaction: l, setDateRange: c } = Ke(), { filter: d, setFilter: _, transactions: u } = On(), { user: h, userProfile: y, updateUser: S, updateUserProfile: v } = ee(), [f, D] = m.useState(h.credit_score || 0), [C, g] = m.useState(
|
|
2637
2637
|
it
|
|
2638
|
-
), [b, R] = m.useState(1), [B, Y] = m.useState(wt.EveryMonth), [
|
|
2638
|
+
), [b, R] = m.useState(1), [B, Y] = m.useState(wt.EveryMonth), [A, $] = m.useState([]), [z, he] = m.useState(!1), [we, Q] = m.useState(!1), [X, ue] = m.useState(h.birthday), [H, me] = m.useState(15), [N, ie] = m.useState("");
|
|
2639
2639
|
m.useEffect(() => {
|
|
2640
2640
|
c({ start: Dt(rt()), end: It(rt()) });
|
|
2641
2641
|
}, []), m.useEffect(() => {
|
|
2642
2642
|
_({
|
|
2643
|
-
accounts: n.map((
|
|
2643
|
+
accounts: n.map((T) => T.guid),
|
|
2644
2644
|
dateRange: {
|
|
2645
2645
|
start: no(/* @__PURE__ */ new Date(), 90),
|
|
2646
2646
|
end: /* @__PURE__ */ new Date()
|
|
@@ -2648,22 +2648,22 @@ const $o = ({ total: t }) => {
|
|
|
2648
2648
|
custom: at
|
|
2649
2649
|
}), i(n);
|
|
2650
2650
|
}, [n]);
|
|
2651
|
-
const
|
|
2652
|
-
() => u.find((
|
|
2651
|
+
const ge = m.useMemo(
|
|
2652
|
+
() => u.find((T) => T.guid === N),
|
|
2653
2653
|
[N, u]
|
|
2654
|
-
),
|
|
2654
|
+
), ne = m.useMemo(() => ({
|
|
2655
2655
|
[O.ConnectAccounts]: !0,
|
|
2656
2656
|
[O.MonthlyIncome]: !!N,
|
|
2657
2657
|
[O.Birthday]: !!h.birthday || !!X,
|
|
2658
2658
|
[O.CreditScore]: !!h.credit_score || !!f
|
|
2659
2659
|
})[C.step], [f, C, X, N, h]), q = n.length > 0, $t = m.useMemo(() => {
|
|
2660
|
-
const { step:
|
|
2660
|
+
const { step: T } = C;
|
|
2661
2661
|
let F = 0;
|
|
2662
|
-
return
|
|
2663
|
-
}, [C.step, q,
|
|
2662
|
+
return T >= O.MonthlyIncome && q && F++, T >= O.Birthday && A.length && F++, T >= O.CreditScore && (h.birthday || h.credit_score) && F++, F;
|
|
2663
|
+
}, [C.step, q, A.length, h.birthday, h.credit_score]), zt = (T) => {
|
|
2664
2664
|
_({
|
|
2665
2665
|
...d,
|
|
2666
|
-
custom: (F) =>
|
|
2666
|
+
custom: (F) => T ? ao(F, T) : at(F)
|
|
2667
2667
|
});
|
|
2668
2668
|
}, Et = {
|
|
2669
2669
|
[O.ConnectAccounts]: {
|
|
@@ -2674,23 +2674,23 @@ const $o = ({ total: t }) => {
|
|
|
2674
2674
|
},
|
|
2675
2675
|
[O.MonthlyIncome]: {
|
|
2676
2676
|
detail: /* @__PURE__ */ e(
|
|
2677
|
-
|
|
2677
|
+
Ar,
|
|
2678
2678
|
{
|
|
2679
2679
|
firstDay: b,
|
|
2680
2680
|
frequency: B,
|
|
2681
|
-
incomeTransactions:
|
|
2681
|
+
incomeTransactions: A,
|
|
2682
2682
|
secondDay: H,
|
|
2683
|
-
setCurrentStep: (
|
|
2684
|
-
g(
|
|
2685
|
-
if (F.some((
|
|
2686
|
-
const
|
|
2687
|
-
return
|
|
2683
|
+
setCurrentStep: (T) => {
|
|
2684
|
+
g(T), $((F) => {
|
|
2685
|
+
if (F.some((se) => se.guid === N)) return F.filter((se) => se.guid !== N);
|
|
2686
|
+
const Te = u.find((se) => se.guid === N);
|
|
2687
|
+
return Te ? [...F, { ...Te, firstDay: b, frequency: B, secondDay: H }] : F;
|
|
2688
2688
|
});
|
|
2689
2689
|
},
|
|
2690
2690
|
setFirstDay: R,
|
|
2691
2691
|
setFrequency: Y,
|
|
2692
|
-
setSecondDay:
|
|
2693
|
-
transaction:
|
|
2692
|
+
setSecondDay: me,
|
|
2693
|
+
transaction: ge
|
|
2694
2694
|
}
|
|
2695
2695
|
),
|
|
2696
2696
|
detailActionContent: s.onboarding_confirm_income,
|
|
@@ -2698,8 +2698,8 @@ const $o = ({ total: t }) => {
|
|
|
2698
2698
|
ro,
|
|
2699
2699
|
{
|
|
2700
2700
|
onSearch: zt,
|
|
2701
|
-
onSelected: (
|
|
2702
|
-
g({ step: O.MonthlyIncome, type: "detail" }),
|
|
2701
|
+
onSelected: (T) => {
|
|
2702
|
+
g({ step: O.MonthlyIncome, type: "detail" }), ie(T);
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
),
|
|
@@ -2708,7 +2708,7 @@ const $o = ({ total: t }) => {
|
|
|
2708
2708
|
secondaryText: s.onboarding_add_income_secondary
|
|
2709
2709
|
},
|
|
2710
2710
|
[O.Birthday]: {
|
|
2711
|
-
main: /* @__PURE__ */ e(Rr, { selectedDate: X, setSelectedDate:
|
|
2711
|
+
main: /* @__PURE__ */ e(Rr, { selectedDate: X, setSelectedDate: ue }),
|
|
2712
2712
|
mainActionContent: s.onboarding_next,
|
|
2713
2713
|
primaryText: s.onboarding_birthday_primary,
|
|
2714
2714
|
secondaryText: s.onboarding_birthday_secondary
|
|
@@ -2720,9 +2720,9 @@ const $o = ({ total: t }) => {
|
|
|
2720
2720
|
secondaryText: s.onboarding_credit_score_secondary
|
|
2721
2721
|
}
|
|
2722
2722
|
}, Ue = () => {
|
|
2723
|
-
g(it),
|
|
2723
|
+
g(it), he(!1), ie(""), o();
|
|
2724
2724
|
}, Qe = async () => {
|
|
2725
|
-
|
|
2725
|
+
he(!0), await jt(A), await r(), await v({ ...y, has_completed_finstrong_onboarding: !0 }), Ue();
|
|
2726
2726
|
}, Gt = () => {
|
|
2727
2727
|
if (C.step === O.CreditScore) {
|
|
2728
2728
|
Qe();
|
|
@@ -2730,8 +2730,8 @@ const $o = ({ total: t }) => {
|
|
|
2730
2730
|
}
|
|
2731
2731
|
g({ step: C.step + 1, type: "main" });
|
|
2732
2732
|
}, Ht = () => {
|
|
2733
|
-
const { step:
|
|
2734
|
-
switch (
|
|
2733
|
+
const { step: T } = C, F = T + 1;
|
|
2734
|
+
switch (T) {
|
|
2735
2735
|
case O.Birthday:
|
|
2736
2736
|
X && X !== h.birthday && S({ ...h, birthday: X });
|
|
2737
2737
|
break;
|
|
@@ -2739,9 +2739,9 @@ const $o = ({ total: t }) => {
|
|
|
2739
2739
|
f && f !== h.credit_score && S({ ...h, credit_score: f }), Qe();
|
|
2740
2740
|
return;
|
|
2741
2741
|
case O.MonthlyIncome:
|
|
2742
|
-
N &&
|
|
2743
|
-
...
|
|
2744
|
-
{ ...
|
|
2742
|
+
N && A.findIndex(({ guid: be }) => be === N) === -1 && $((be) => [
|
|
2743
|
+
...be,
|
|
2744
|
+
{ ...ge, firstDay: b, frequency: B, secondDay: H }
|
|
2745
2745
|
]);
|
|
2746
2746
|
break;
|
|
2747
2747
|
case O.ConnectAccounts:
|
|
@@ -2753,22 +2753,22 @@ const $o = ({ total: t }) => {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
F in O && g({ step: F, type: "main" });
|
|
2755
2755
|
}, Nt = () => {
|
|
2756
|
-
const { step:
|
|
2756
|
+
const { step: T, type: F } = C;
|
|
2757
2757
|
if (F === "detail") {
|
|
2758
|
-
g({ step:
|
|
2758
|
+
g({ step: T, type: "main" });
|
|
2759
2759
|
return;
|
|
2760
2760
|
}
|
|
2761
|
-
if (
|
|
2762
|
-
g({ step:
|
|
2761
|
+
if (T === O.Birthday && A.length) {
|
|
2762
|
+
g({ step: T - 1, type: "detail" });
|
|
2763
2763
|
return;
|
|
2764
2764
|
}
|
|
2765
|
-
|
|
2766
|
-
}, jt = async (
|
|
2767
|
-
for (const F of
|
|
2765
|
+
T > O.ConnectAccounts && g({ step: T - 1, type: "main" });
|
|
2766
|
+
}, jt = async (T) => {
|
|
2767
|
+
for (const F of T) {
|
|
2768
2768
|
const {
|
|
2769
|
-
account_guid:
|
|
2770
|
-
amount:
|
|
2771
|
-
date:
|
|
2769
|
+
account_guid: be,
|
|
2770
|
+
amount: Te,
|
|
2771
|
+
date: se,
|
|
2772
2772
|
description: Xt,
|
|
2773
2773
|
feed_description: Yt,
|
|
2774
2774
|
firstDay: qt,
|
|
@@ -2777,9 +2777,9 @@ const $o = ({ total: t }) => {
|
|
|
2777
2777
|
merchant_guid: Qt,
|
|
2778
2778
|
payee: Zt,
|
|
2779
2779
|
transaction_type: Jt
|
|
2780
|
-
} = F, en = zn(Ze, to(
|
|
2781
|
-
account_guid:
|
|
2782
|
-
amount:
|
|
2780
|
+
} = F, en = zn(Ze, to(se)), tn = {
|
|
2781
|
+
account_guid: be,
|
|
2782
|
+
amount: Te,
|
|
2783
2783
|
created_by: 0,
|
|
2784
2784
|
description: Zt || Xt || Yt,
|
|
2785
2785
|
merchant_guid: Qt,
|
|
@@ -2793,22 +2793,22 @@ const $o = ({ total: t }) => {
|
|
|
2793
2793
|
};
|
|
2794
2794
|
await l(tn, F);
|
|
2795
2795
|
}
|
|
2796
|
-
},
|
|
2796
|
+
}, ye = Et[C.step], Ie = C.step === O.ConnectAccounts, Kt = {
|
|
2797
2797
|
fullWidth: !0,
|
|
2798
2798
|
...Ie && !q && { startIcon: /* @__PURE__ */ e(_t, {}) }
|
|
2799
2799
|
}, Vt = !Ie || Ie && !q;
|
|
2800
2800
|
return /* @__PURE__ */ a(m.Fragment, { children: [
|
|
2801
2801
|
/* @__PURE__ */ e(
|
|
2802
|
-
|
|
2802
|
+
re,
|
|
2803
2803
|
{
|
|
2804
|
-
footerStyles: { px: 24, py: 16 },
|
|
2804
|
+
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2805
2805
|
hasSecondaryAction: !Ie,
|
|
2806
2806
|
isOpen: t,
|
|
2807
|
-
isPrimaryDisabled: !
|
|
2807
|
+
isPrimaryDisabled: !ne,
|
|
2808
2808
|
onClose: Ue,
|
|
2809
2809
|
onSecondaryAction: Nt,
|
|
2810
2810
|
primaryButtonProps: Kt,
|
|
2811
|
-
primaryText:
|
|
2811
|
+
primaryText: ye?.mainActionContent,
|
|
2812
2812
|
secondaryColor: "primary",
|
|
2813
2813
|
secondaryText: s.onboarding_back,
|
|
2814
2814
|
title: s.title,
|
|
@@ -2819,30 +2819,30 @@ const $o = ({ total: t }) => {
|
|
|
2819
2819
|
/* @__PURE__ */ e(Le, { children: s.onboarding_calculate_primary }),
|
|
2820
2820
|
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
|
|
2821
2821
|
] }),
|
|
2822
|
-
|
|
2822
|
+
ye && !z && /* @__PURE__ */ a(m.Fragment, { children: [
|
|
2823
2823
|
/* @__PURE__ */ e(
|
|
2824
2824
|
Br,
|
|
2825
2825
|
{
|
|
2826
2826
|
completeCopy: s.complete,
|
|
2827
|
-
primaryText:
|
|
2828
|
-
secondaryText:
|
|
2827
|
+
primaryText: ye.primaryText,
|
|
2828
|
+
secondaryText: ye.secondaryText,
|
|
2829
2829
|
value: $t
|
|
2830
2830
|
}
|
|
2831
2831
|
),
|
|
2832
2832
|
C.type === "main" && /* @__PURE__ */ a(k, { sx: { bgcolor: "background.default" }, children: [
|
|
2833
|
-
|
|
2833
|
+
ye.main,
|
|
2834
2834
|
Vt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(P, { fullWidth: !0, onClick: Gt, children: s.onboarding_do_it_later }) })
|
|
2835
2835
|
] }),
|
|
2836
|
-
C.type === "detail" &&
|
|
2836
|
+
C.type === "detail" && ye.detail
|
|
2837
2837
|
] })
|
|
2838
2838
|
] })
|
|
2839
2839
|
}
|
|
2840
2840
|
),
|
|
2841
2841
|
/* @__PURE__ */ e(
|
|
2842
|
-
|
|
2842
|
+
ae,
|
|
2843
2843
|
{
|
|
2844
2844
|
onClose: () => Q(!1),
|
|
2845
|
-
showConnectWidget:
|
|
2845
|
+
showConnectWidget: we,
|
|
2846
2846
|
title: s.connect_more_accounts_button
|
|
2847
2847
|
}
|
|
2848
2848
|
)
|
|
@@ -2855,7 +2855,9 @@ const $o = ({ total: t }) => {
|
|
|
2855
2855
|
{
|
|
2856
2856
|
sx: {
|
|
2857
2857
|
alignItems: "center",
|
|
2858
|
+
bgcolor: "background.default",
|
|
2858
2859
|
gap: 48,
|
|
2860
|
+
height: "calc(100dvh - 116px)",
|
|
2859
2861
|
pb: 24,
|
|
2860
2862
|
pt: 72,
|
|
2861
2863
|
px: 16
|
|
@@ -2879,8 +2881,9 @@ const $o = ({ total: t }) => {
|
|
|
2879
2881
|
c(Math.floor(new Date(u).getTime() / 1e3));
|
|
2880
2882
|
};
|
|
2881
2883
|
return /* @__PURE__ */ e(
|
|
2882
|
-
|
|
2884
|
+
re,
|
|
2883
2885
|
{
|
|
2886
|
+
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2884
2887
|
isOpen: t,
|
|
2885
2888
|
onClose: o,
|
|
2886
2889
|
onPrimaryAction: () => {
|
|
@@ -2888,7 +2891,7 @@ const $o = ({ total: t }) => {
|
|
|
2888
2891
|
},
|
|
2889
2892
|
onSecondaryAction: o,
|
|
2890
2893
|
title: n.date_of_birth,
|
|
2891
|
-
children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(po, { dateAdapter:
|
|
2894
|
+
children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(po, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
2892
2895
|
co,
|
|
2893
2896
|
{
|
|
2894
2897
|
disableFuture: !0,
|
|
@@ -2897,19 +2900,19 @@ const $o = ({ total: t }) => {
|
|
|
2897
2900
|
nextIconButton: {
|
|
2898
2901
|
sx: {
|
|
2899
2902
|
color: "primary.main",
|
|
2900
|
-
"&:hover": { bgcolor:
|
|
2903
|
+
"&:hover": { bgcolor: ce(r.palette.primary.light, 0.1) }
|
|
2901
2904
|
}
|
|
2902
2905
|
},
|
|
2903
2906
|
previousIconButton: {
|
|
2904
2907
|
sx: {
|
|
2905
2908
|
color: "primary.main",
|
|
2906
|
-
"&:hover": { bgcolor:
|
|
2909
|
+
"&:hover": { bgcolor: ce(r.palette.primary.light, 0.1) }
|
|
2907
2910
|
}
|
|
2908
2911
|
},
|
|
2909
2912
|
switchViewButton: {
|
|
2910
2913
|
sx: {
|
|
2911
2914
|
color: "primary.main",
|
|
2912
|
-
"&:hover": { bgcolor:
|
|
2915
|
+
"&:hover": { bgcolor: ce(r.palette.primary.light, 0.1) }
|
|
2913
2916
|
}
|
|
2914
2917
|
}
|
|
2915
2918
|
},
|
|
@@ -2921,7 +2924,7 @@ const $o = ({ total: t }) => {
|
|
|
2921
2924
|
width: "100%",
|
|
2922
2925
|
"& .MuiIconButton-edgeEnd": {
|
|
2923
2926
|
color: "primary.main",
|
|
2924
|
-
"&:hover": { bgcolor:
|
|
2927
|
+
"&:hover": { bgcolor: ce(r.palette.primary.light, 0.1) }
|
|
2925
2928
|
}
|
|
2926
2929
|
},
|
|
2927
2930
|
value: l ? new Date(l * 1e3) : /* @__PURE__ */ new Date()
|
|
@@ -2930,7 +2933,7 @@ const $o = ({ total: t }) => {
|
|
|
2930
2933
|
}
|
|
2931
2934
|
);
|
|
2932
2935
|
}, Er = w(zr), Gr = ({ isOpen: t, onClose: o }) => {
|
|
2933
|
-
const { visibleFinstrongAccounts: n } =
|
|
2936
|
+
const { visibleFinstrongAccounts: n } = Ce(), {
|
|
2934
2937
|
accounts: r,
|
|
2935
2938
|
common: s,
|
|
2936
2939
|
finstrong: i,
|
|
@@ -2943,7 +2946,7 @@ const $o = ({ total: t }) => {
|
|
|
2943
2946
|
dynamicCopy: i.add_profile_item,
|
|
2944
2947
|
fallbackLabel: i.monthly_income,
|
|
2945
2948
|
icon: /* @__PURE__ */ e(hn, {}),
|
|
2946
|
-
key:
|
|
2949
|
+
key: oe.MonthlyIncome,
|
|
2947
2950
|
label: i.monthly_income,
|
|
2948
2951
|
value: _
|
|
2949
2952
|
},
|
|
@@ -2951,7 +2954,7 @@ const $o = ({ total: t }) => {
|
|
|
2951
2954
|
dynamicCopy: i.add_profile_item,
|
|
2952
2955
|
fallbackLabel: i.date_of_birth,
|
|
2953
2956
|
icon: /* @__PURE__ */ e(un, {}),
|
|
2954
|
-
key:
|
|
2957
|
+
key: oe.DateOfBirth,
|
|
2955
2958
|
label: i.date_of_birth,
|
|
2956
2959
|
value: d.birthday
|
|
2957
2960
|
},
|
|
@@ -2959,14 +2962,14 @@ const $o = ({ total: t }) => {
|
|
|
2959
2962
|
dynamicCopy: i.add_profile_item,
|
|
2960
2963
|
fallbackLabel: i.credit_score,
|
|
2961
2964
|
icon: /* @__PURE__ */ e(Ge, {}),
|
|
2962
|
-
key:
|
|
2965
|
+
key: oe.CreditScore,
|
|
2963
2966
|
label: i.credit_score,
|
|
2964
2967
|
value: d.credit_score
|
|
2965
2968
|
},
|
|
2966
2969
|
{
|
|
2967
2970
|
fallbackLabel: i.connect_your_accounts,
|
|
2968
2971
|
icon: /* @__PURE__ */ e(dt, {}),
|
|
2969
|
-
key:
|
|
2972
|
+
key: oe.Connections,
|
|
2970
2973
|
label: i.connections,
|
|
2971
2974
|
value: n.length > 0 ? j(
|
|
2972
2975
|
i.connected_account,
|
|
@@ -2975,7 +2978,7 @@ const $o = ({ total: t }) => {
|
|
|
2975
2978
|
) : void 0
|
|
2976
2979
|
}
|
|
2977
2980
|
].map((v) => Dn(v));
|
|
2978
|
-
return /* @__PURE__ */ a(
|
|
2981
|
+
return /* @__PURE__ */ a(re, { isOpen: t, onClose: o, title: i.financial_profile, children: [
|
|
2979
2982
|
/* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2980
2983
|
/* @__PURE__ */ a(p, { sx: { gap: 20, p: 24 }, children: [
|
|
2981
2984
|
/* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
|
|
@@ -3003,22 +3006,22 @@ const $o = ({ total: t }) => {
|
|
|
3003
3006
|
) })
|
|
3004
3007
|
] }),
|
|
3005
3008
|
/* @__PURE__ */ e(
|
|
3006
|
-
|
|
3009
|
+
re,
|
|
3007
3010
|
{
|
|
3008
|
-
isOpen: u ===
|
|
3011
|
+
isOpen: u === oe.MonthlyIncome,
|
|
3009
3012
|
onClose: () => h(null),
|
|
3010
3013
|
shouldShowHeaderBorders: !1,
|
|
3011
3014
|
title: l.action_title,
|
|
3012
3015
|
children: /* @__PURE__ */ e(lo, {})
|
|
3013
3016
|
}
|
|
3014
3017
|
),
|
|
3015
|
-
/* @__PURE__ */ e(Er, { isOpen: u ===
|
|
3016
|
-
/* @__PURE__ */ e(Rt, { isOpen: u ===
|
|
3018
|
+
/* @__PURE__ */ e(Er, { isOpen: u === oe.DateOfBirth, onClose: () => h(null) }),
|
|
3019
|
+
/* @__PURE__ */ e(Rt, { isOpen: u === oe.CreditScore, onClose: () => h(null) }),
|
|
3017
3020
|
/* @__PURE__ */ e(
|
|
3018
3021
|
ft,
|
|
3019
3022
|
{
|
|
3020
3023
|
onClose: () => h(null),
|
|
3021
|
-
showConnectionsWidget: u ===
|
|
3024
|
+
showConnectionsWidget: u === oe.Connections,
|
|
3022
3025
|
title: r.manage_connections
|
|
3023
3026
|
}
|
|
3024
3027
|
)
|
|
@@ -3260,7 +3263,7 @@ const $o = ({ total: t }) => {
|
|
|
3260
3263
|
] });
|
|
3261
3264
|
}, Yr = ({ isOpen: t, onClose: o }) => {
|
|
3262
3265
|
const { finstrong: n } = x(), { isCopyLoaded: r } = U();
|
|
3263
|
-
return r ? /* @__PURE__ */ e(
|
|
3266
|
+
return r ? /* @__PURE__ */ e(re, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
|
|
3264
3267
|
/* @__PURE__ */ a(p, { sx: { gap: 20 }, children: [
|
|
3265
3268
|
/* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
|
|
3266
3269
|
/* @__PURE__ */ e(K, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
|
|
@@ -3290,15 +3293,15 @@ const $o = ({ total: t }) => {
|
|
|
3290
3293
|
}
|
|
3291
3294
|
},
|
|
3292
3295
|
children: [
|
|
3293
|
-
/* @__PURE__ */ e(
|
|
3294
|
-
|
|
3296
|
+
/* @__PURE__ */ e(fe, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
|
|
3297
|
+
xe,
|
|
3295
3298
|
{
|
|
3296
3299
|
primary: n.understand_your_habits,
|
|
3297
3300
|
secondary: n.understand_your_habits_description
|
|
3298
3301
|
}
|
|
3299
3302
|
) }),
|
|
3300
|
-
/* @__PURE__ */ e(
|
|
3301
|
-
|
|
3303
|
+
/* @__PURE__ */ e(fe, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
|
|
3304
|
+
xe,
|
|
3302
3305
|
{
|
|
3303
3306
|
primary: n.see_whats_possible,
|
|
3304
3307
|
secondary: n.see_whats_possible_description
|
|
@@ -3331,8 +3334,8 @@ const $o = ({ total: t }) => {
|
|
|
3331
3334
|
}
|
|
3332
3335
|
},
|
|
3333
3336
|
children: [
|
|
3334
|
-
/* @__PURE__ */ e(
|
|
3335
|
-
/* @__PURE__ */ e(
|
|
3337
|
+
/* @__PURE__ */ e(fe, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(xe, { secondary: n.we_ask_questions_description_1 }) }),
|
|
3338
|
+
/* @__PURE__ */ e(fe, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(xe, { secondary: n.we_ask_questions_description_2 }) })
|
|
3336
3339
|
]
|
|
3337
3340
|
}
|
|
3338
3341
|
)
|
|
@@ -3439,7 +3442,7 @@ const $o = ({ total: t }) => {
|
|
|
3439
3442
|
)
|
|
3440
3443
|
] });
|
|
3441
3444
|
}), Qr = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
|
|
3442
|
-
const { visibleAccounts: r } =
|
|
3445
|
+
const { visibleAccounts: r } = Ce(), { dateRange: s, isDataLoaded: i, loadBudgetData: l, setTheme: c } = Rn(), { reloadCategoryTotals: d } = je(), _ = L(), {
|
|
3443
3446
|
augmentedChartData: u,
|
|
3444
3447
|
calculateHealthScore: h,
|
|
3445
3448
|
healthScore: y,
|
|
@@ -3447,22 +3450,22 @@ const $o = ({ total: t }) => {
|
|
|
3447
3450
|
loadMonthlySummaries: v,
|
|
3448
3451
|
loadPeerScore: f,
|
|
3449
3452
|
peerScore: D
|
|
3450
|
-
} = _, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: R } = U(), { loadRepeatingTransactions: B } = Ke(), { isSmallMobile: Y } = Ye(),
|
|
3453
|
+
} = _, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: R } = U(), { loadRepeatingTransactions: B } = Ke(), { isSmallMobile: Y } = Ye(), A = G(), { userProfile: $ } = ee(), [z, he] = m.useState(!1), [we, Q] = m.useState(!1), [X, ue] = m.useState(!1), [H, me] = m.useState(!1);
|
|
3451
3454
|
if (wo({
|
|
3452
3455
|
widgetName: "FinstrongWidget",
|
|
3453
3456
|
isLoaded: z
|
|
3454
3457
|
}), m.useEffect(() => {
|
|
3455
|
-
c(
|
|
3458
|
+
c(A);
|
|
3456
3459
|
}, []), m.useEffect(() => {
|
|
3457
3460
|
n && (_.handleFinstrongWidgetPrimaryCtaClick = n);
|
|
3458
3461
|
}, [n, _]), m.useEffect(() => {
|
|
3459
3462
|
R && (v().finally(), f().finally(), h().finally(), S().finally());
|
|
3460
3463
|
}, [R]), m.useEffect(() => {
|
|
3461
3464
|
R && (d(r, s.start, s.end).finally(() => {
|
|
3462
|
-
|
|
3465
|
+
he(!0);
|
|
3463
3466
|
}), i || (l(), B().finally()));
|
|
3464
3467
|
}, [s, i, R, r]), !b || !R || !z) return /* @__PURE__ */ e(te, {});
|
|
3465
|
-
const N = () => Q(!0),
|
|
3468
|
+
const N = () => Q(!0), ie = Math.round(D?.average_health_score?.average_health_score || 0), ge = u.some((ne) => ne.y !== 0);
|
|
3466
3469
|
return /* @__PURE__ */ a(
|
|
3467
3470
|
ko,
|
|
3468
3471
|
{
|
|
@@ -3513,7 +3516,7 @@ const $o = ({ total: t }) => {
|
|
|
3513
3516
|
P,
|
|
3514
3517
|
{
|
|
3515
3518
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
3516
|
-
onClick: () =>
|
|
3519
|
+
onClick: () => ue(!0),
|
|
3517
3520
|
size: "small",
|
|
3518
3521
|
variant: "text",
|
|
3519
3522
|
children: /* @__PURE__ */ e(I, { bold: !0, sx: { flexShrink: 0 }, variant: "body2", children: C.whats_changed })
|
|
@@ -3522,12 +3525,12 @@ const $o = ({ total: t }) => {
|
|
|
3522
3525
|
]
|
|
3523
3526
|
}
|
|
3524
3527
|
),
|
|
3525
|
-
|
|
3528
|
+
ge ? /* @__PURE__ */ e(
|
|
3526
3529
|
Ve,
|
|
3527
3530
|
{
|
|
3528
|
-
axisColor:
|
|
3531
|
+
axisColor: A.palette.divider,
|
|
3529
3532
|
baseline: "min",
|
|
3530
|
-
colors: [
|
|
3533
|
+
colors: [A.palette.primary.main],
|
|
3531
3534
|
curveType: "natural",
|
|
3532
3535
|
customLegendBoxSx: { borderRadius: "2px" },
|
|
3533
3536
|
customLegendSx: { left: 0 },
|
|
@@ -3535,32 +3538,31 @@ const $o = ({ total: t }) => {
|
|
|
3535
3538
|
datasets: [u],
|
|
3536
3539
|
height: 300,
|
|
3537
3540
|
isGraphClippingXAxis: !0,
|
|
3538
|
-
labelBackgroundColor:
|
|
3539
|
-
labelFontColor:
|
|
3540
|
-
labelFontSize: typeof
|
|
3541
|
+
labelBackgroundColor: A.palette.border.dark,
|
|
3542
|
+
labelFontColor: A.palette.common.white,
|
|
3543
|
+
labelFontSize: typeof A.typography.XSmall?.fontSize == "string" ? parseFloat(A.typography.XSmall.fontSize) : A.typography.XSmall?.fontSize,
|
|
3541
3544
|
labels: [C.key_indicators_label],
|
|
3542
|
-
margin: { right:
|
|
3543
|
-
peerAverage:
|
|
3545
|
+
margin: { right: 12, left: -37 },
|
|
3546
|
+
peerAverage: ie,
|
|
3544
3547
|
showArea: !0,
|
|
3545
3548
|
showAverage: !0,
|
|
3546
3549
|
showLegend: !0,
|
|
3547
3550
|
showMarkLabel: !0,
|
|
3551
|
+
showTooltip: !0,
|
|
3548
3552
|
showXAxis: !0,
|
|
3549
|
-
title: C.peer_average
|
|
3550
|
-
useCustomMark: !0,
|
|
3551
|
-
xAxisScaleType: "band"
|
|
3553
|
+
title: C.peer_average
|
|
3552
3554
|
}
|
|
3553
|
-
) : /* @__PURE__ */ e(Ir, { onClick: () =>
|
|
3555
|
+
) : /* @__PURE__ */ e(Ir, { onClick: () => me(!0) }),
|
|
3554
3556
|
y.health_score !== null && /* @__PURE__ */ e(Mr, {})
|
|
3555
3557
|
] }) })
|
|
3556
3558
|
]
|
|
3557
3559
|
}
|
|
3558
3560
|
) : /* @__PURE__ */ e($r, {}),
|
|
3559
|
-
/* @__PURE__ */ e(Hr, { isOpen:
|
|
3561
|
+
/* @__PURE__ */ e(Hr, { isOpen: we, onClose: () => Q(!1) }),
|
|
3560
3562
|
/* @__PURE__ */ e(
|
|
3561
|
-
|
|
3563
|
+
ae,
|
|
3562
3564
|
{
|
|
3563
|
-
onClose: () =>
|
|
3565
|
+
onClose: () => me(!1),
|
|
3564
3566
|
showConnectWidget: H,
|
|
3565
3567
|
title: g.mini_title
|
|
3566
3568
|
}
|
|
@@ -3569,7 +3571,7 @@ const $o = ({ total: t }) => {
|
|
|
3569
3571
|
Vr,
|
|
3570
3572
|
{
|
|
3571
3573
|
isOpen: X,
|
|
3572
|
-
onClose: () =>
|
|
3574
|
+
onClose: () => ue(!1)
|
|
3573
3575
|
}
|
|
3574
3576
|
)
|
|
3575
3577
|
]
|
|
@@ -3578,7 +3580,7 @@ const $o = ({ total: t }) => {
|
|
|
3578
3580
|
}, mi = w(Qr);
|
|
3579
3581
|
export {
|
|
3580
3582
|
Do as CreditScoreGraph,
|
|
3581
|
-
|
|
3583
|
+
At as DialScoreCard,
|
|
3582
3584
|
Ot as FinancialStrengthGraph,
|
|
3583
3585
|
bi as FinstrongApi,
|
|
3584
3586
|
fi as FinstrongStore,
|