@mx-cartographer/experiences 7.7.2 → 7.7.3
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 +4 -0
- package/dist/finstrong/index.es.js +652 -598
- package/package.json +1 -1
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import M from "@mui/material/Box";
|
|
3
3
|
import p from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { PieChart as
|
|
6
|
-
import { P as D, H3 as X, Text as I, InstitutionLogo as
|
|
7
|
-
import { TrendingUp as
|
|
8
|
-
import { g as
|
|
9
|
-
import { y as
|
|
4
|
+
import { useTheme as z, alpha as se } from "@mui/material/styles";
|
|
5
|
+
import { PieChart as nn } from "@mui/x-charts/PieChart";
|
|
6
|
+
import { P as D, H3 as X, Text as I, InstitutionLogo as lt, H2 as Fe, MerchantLogo as on, Icon as rn } from "@mxenabled/mxui";
|
|
7
|
+
import { TrendingUp as an, ArrowRightAlt as sn, TrendingDown as cn, AccountBalance as dt, ChevronRight as J, CheckCircle as ln, Cancel as dn, CreditCard as pt, Savings as pn, ContentCopy as _n, MultilineChart as un, Add as _t, Cardiology as hn, Payments as mn, CalendarMonth as gn, ExpandMore as yn } from "@mxenabled/mx-icons";
|
|
8
|
+
import { g as bn, a as fn, r as Ze, b as xn, c as Ge, d as ut, C as ke, e as Me, f as Sn, h as Cn, i as vn, j as ht, k as Je, l as wn, m as et, n as kn, o as mt, p as Mn, q as gt, s as Oe, t as yt, u as Dn, v as bt, w as In, A as ne, x as Tn, P as An } from "../FinstrongStore-bEn_im_e.mjs";
|
|
9
|
+
import { y as xi, F as Si } from "../FinstrongStore-bEn_im_e.mjs";
|
|
10
10
|
import * as tt from "d3";
|
|
11
|
-
import { observer as
|
|
12
|
-
import { u as
|
|
11
|
+
import { observer as k } from "mobx-react-lite";
|
|
12
|
+
import { u as S, b as U, a as He, o as ee, z as B, p as On, d as Se, m as Ne, f as Rn, j as je, h as Ln, i as Fn } from "../hooks-ZMp65DFz.mjs";
|
|
13
13
|
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
14
|
-
import m from "react";
|
|
15
|
-
import
|
|
14
|
+
import m, { useState as Bn, useRef as Pn, useCallback as nt, useEffect as ot } from "react";
|
|
15
|
+
import P from "@mui/material/Button";
|
|
16
16
|
import Y from "@mui/material/Card";
|
|
17
17
|
import { L as Ke } from "../LineChart-kFoTu9Pi.mjs";
|
|
18
|
-
import { C as
|
|
19
|
-
import { l as re, g as
|
|
18
|
+
import { C as ft } from "../ConnectionsDrawer-BqR6FWJO.mjs";
|
|
19
|
+
import { l as re, g as xt, A as Ee } from "../ConnectDrawer-BOjfI6rz.mjs";
|
|
20
20
|
import ce from "@mui/material/Tab";
|
|
21
21
|
import Ve from "@mui/material/Tabs";
|
|
22
22
|
import Re from "@mui/material/TextField";
|
|
23
23
|
import { u as Xe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
-
import { a as
|
|
25
|
-
import { u as
|
|
26
|
-
import { E as
|
|
27
|
-
import
|
|
24
|
+
import { a as Wn, f as $n, D as En } from "../Dialog-B4PI-_bL.mjs";
|
|
25
|
+
import { u as St } from "../useDimensions-27p2evRx.mjs";
|
|
26
|
+
import { E as Le } from "../EmptyState-DoxNUae-.mjs";
|
|
27
|
+
import zn from "@mui/material/Chip";
|
|
28
28
|
import { D as oe } from "../Drawer-DV4NTsFg.mjs";
|
|
29
29
|
import de from "@mui/material/Divider";
|
|
30
30
|
import be from "@mui/material/ListItem";
|
|
31
|
-
import
|
|
31
|
+
import Ct from "@mui/material/ListItemAvatar";
|
|
32
32
|
import fe from "@mui/material/ListItemText";
|
|
33
|
-
import { g as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import { f as
|
|
33
|
+
import { g as vt } from "../AccountFields-yP8QdgPd.mjs";
|
|
34
|
+
import ze from "@mui/material/List";
|
|
35
|
+
import Gn from "@mui/material/ListItemButton";
|
|
36
|
+
import Hn from "@mui/material/ListSubheader";
|
|
37
|
+
import { f as $ } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
38
38
|
import { b as V } from "../Localization-2MODESHW.mjs";
|
|
39
|
-
import { S as
|
|
40
|
-
import { S as
|
|
41
|
-
import { h as
|
|
42
|
-
import { T as
|
|
39
|
+
import { S as rt, F as wt, e as Nn, R as kt } from "../RecurringTransactions-Bf4lX0Cn.mjs";
|
|
40
|
+
import { S as jn } from "../StatusBar-BK_uYHAB.mjs";
|
|
41
|
+
import { h as Mt } from "../DateUtil-D7U-nc1Y.mjs";
|
|
42
|
+
import { T as Kn, s as Vn, h as Xn, S as Yn, b as qn } from "../TransactionDetails-7MHOshKQ.mjs";
|
|
43
43
|
import { T as le } from "../TabContentContainer-j01JYR_7.mjs";
|
|
44
|
-
import
|
|
45
|
-
import { BarPlot as
|
|
46
|
-
import { ChartContainer as
|
|
47
|
-
import { ChartsXAxis as
|
|
48
|
-
import { ChartsYAxis as
|
|
49
|
-
import { startOfMonth as
|
|
50
|
-
import { endOfMonth as
|
|
51
|
-
import { g as
|
|
52
|
-
import { formatISO as
|
|
53
|
-
import { fromUnixTime as
|
|
54
|
-
import { startOfToday as
|
|
55
|
-
import { subDays as
|
|
56
|
-
import { c as
|
|
57
|
-
import { LocalizationProvider as
|
|
58
|
-
import { AdapterDateFns as
|
|
59
|
-
import { R as
|
|
60
|
-
import { LocalizationProvider as
|
|
61
|
-
import { format as
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import { u as
|
|
72
|
-
import { W as
|
|
73
|
-
const
|
|
44
|
+
import Un from "@mui/material/useMediaQuery";
|
|
45
|
+
import { BarPlot as Qn } from "@mui/x-charts/BarChart";
|
|
46
|
+
import { ChartContainer as Zn } from "@mui/x-charts/ChartContainer";
|
|
47
|
+
import { ChartsXAxis as Jn } from "@mui/x-charts/ChartsXAxis";
|
|
48
|
+
import { ChartsYAxis as eo } from "@mui/x-charts/ChartsYAxis";
|
|
49
|
+
import { startOfMonth as Dt } from "date-fns/startOfMonth";
|
|
50
|
+
import { endOfMonth as It } from "date-fns/endOfMonth";
|
|
51
|
+
import { g as to, S as no, b as oo } from "../SpendingLegend-gTCJLLkV.mjs";
|
|
52
|
+
import { formatISO as ro } from "date-fns/formatISO";
|
|
53
|
+
import { fromUnixTime as ao } from "date-fns/fromUnixTime";
|
|
54
|
+
import { startOfToday as at } from "date-fns/startOfToday";
|
|
55
|
+
import { subDays as io } from "date-fns/subDays";
|
|
56
|
+
import { c as so, d as it, S as co, i as lo } from "../ManageIncome-BrTrlplL.mjs";
|
|
57
|
+
import { LocalizationProvider as po, DatePicker as _o, StaticDatePicker as uo } from "@mui/x-date-pickers";
|
|
58
|
+
import { AdapterDateFns as Tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
59
|
+
import { R as ho } from "../RecurringSettings-D2V6l77l.mjs";
|
|
60
|
+
import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
|
|
61
|
+
import { format as go } from "date-fns/format";
|
|
62
|
+
import yo from "@mui/lab/Timeline";
|
|
63
|
+
import bo, { timelineItemClasses as fo } from "@mui/lab/TimelineItem";
|
|
64
|
+
import xo from "@mui/lab/TimelineConnector";
|
|
65
|
+
import So from "@mui/lab/TimelineContent";
|
|
66
|
+
import Co from "@mui/lab/TimelineDot";
|
|
67
|
+
import vo from "@mui/lab/TimelineSeparator";
|
|
68
|
+
import wo from "@mui/material/Accordion";
|
|
69
|
+
import ko from "@mui/material/AccordionDetails";
|
|
70
|
+
import Mo from "@mui/material/AccordionSummary";
|
|
71
|
+
import { u as Do } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
72
|
+
import { W as Io } from "../WidgetContainer-CrK6tyHr.mjs";
|
|
73
|
+
const To = ({
|
|
74
74
|
dialScoreData: t,
|
|
75
75
|
dataIndex: o,
|
|
76
76
|
arcColor: n,
|
|
@@ -85,32 +85,32 @@ const ko = ({
|
|
|
85
85
|
unitsPerSegment: u,
|
|
86
86
|
isFinacialStrengthGraph: b
|
|
87
87
|
}) => {
|
|
88
|
-
const
|
|
89
|
-
{ offset: "13.62%", color:
|
|
90
|
-
{ offset: "36.67%", color:
|
|
91
|
-
{ offset: "59.72%", color:
|
|
92
|
-
{ offset: "83.46%", color:
|
|
93
|
-
], [f,
|
|
88
|
+
const v = z(), C = [
|
|
89
|
+
{ offset: "13.62%", color: v.palette.chartMono.chartMono2 },
|
|
90
|
+
{ offset: "36.67%", color: v.palette.chartMono.chartMono3 },
|
|
91
|
+
{ offset: "59.72%", color: v.palette.chartMono.chartMono4 },
|
|
92
|
+
{ offset: "83.46%", color: v.palette.chartMono.chartMono5 }
|
|
93
|
+
], [f, x] = bn(
|
|
94
94
|
t,
|
|
95
95
|
s,
|
|
96
96
|
r,
|
|
97
97
|
o
|
|
98
|
-
), [
|
|
98
|
+
), [w, g] = fn(
|
|
99
99
|
f,
|
|
100
|
-
|
|
100
|
+
x,
|
|
101
101
|
o,
|
|
102
102
|
u,
|
|
103
103
|
h
|
|
104
|
-
), y = tt.arc().innerRadius(d).outerRadius(_).startAngle(f).endAngle(
|
|
104
|
+
), y = tt.arc().innerRadius(d).outerRadius(_).startAngle(f).endAngle(x).padAngle(0.02).cornerRadius(8), A = tt.arc().innerRadius(d).outerRadius(_).startAngle(w).endAngle(g).padAngle(0.02).cornerRadius(8);
|
|
105
105
|
return /* @__PURE__ */ i(N, { children: [
|
|
106
106
|
/* @__PURE__ */ e(
|
|
107
107
|
"path",
|
|
108
108
|
{
|
|
109
109
|
d: y({}),
|
|
110
|
-
fill: b ?
|
|
110
|
+
fill: b ? v.palette.divider : n
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
b && /* @__PURE__ */ e("path", { d:
|
|
113
|
+
b && /* @__PURE__ */ e("path", { d: A({}), fill: "url(#arcGradient)" }),
|
|
114
114
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
115
115
|
"linearGradient",
|
|
116
116
|
{
|
|
@@ -125,7 +125,7 @@ const ko = ({
|
|
|
125
125
|
}
|
|
126
126
|
) })
|
|
127
127
|
] });
|
|
128
|
-
},
|
|
128
|
+
}, At = ({
|
|
129
129
|
arcRadius: t = 100,
|
|
130
130
|
healthScore: o,
|
|
131
131
|
size: n = "L",
|
|
@@ -140,7 +140,7 @@ const ko = ({
|
|
|
140
140
|
footerRightContent: u,
|
|
141
141
|
isFinacialStrengthGraph: b = !1
|
|
142
142
|
}) => {
|
|
143
|
-
const
|
|
143
|
+
const v = z(), C = -Math.PI / 1.35, f = Math.PI / 1.35, x = f - C, w = x / (a - s), g = (o - s) * w, y = C + g + 0.02, A = n !== "SM" ? 0.1 : 0.12, L = t, T = t * (1 - A), W = L * 2, E = W / 2, G = W / 2, _e = (T + L) / 2, ue = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [te, j] = xn(_e, y, ue), ve = o / 25, H = {
|
|
144
144
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
145
145
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
146
146
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -150,22 +150,22 @@ const ko = ({
|
|
|
150
150
|
bottom: 0,
|
|
151
151
|
left: 0,
|
|
152
152
|
...l
|
|
153
|
-
}, K = _ === 0 ?
|
|
153
|
+
}, K = _ === 0 ? sn : cn, ae = n !== "SM" ? 3 : 1, he = ae * 4, me = H[n].markerSize * 2 + he;
|
|
154
154
|
return /* @__PURE__ */ i(
|
|
155
155
|
p,
|
|
156
156
|
{
|
|
157
157
|
sx: {
|
|
158
|
-
width:
|
|
159
|
-
height: n === "SM" ?
|
|
158
|
+
width: W,
|
|
159
|
+
height: n === "SM" ? W - 7 : W,
|
|
160
160
|
position: "relative",
|
|
161
161
|
alignSelf: "center",
|
|
162
162
|
overflow: "visible"
|
|
163
163
|
},
|
|
164
164
|
children: [
|
|
165
165
|
/* @__PURE__ */ e(
|
|
166
|
-
|
|
166
|
+
nn,
|
|
167
167
|
{
|
|
168
|
-
height: n === "SM" ?
|
|
168
|
+
height: n === "SM" ? W - 7 : W,
|
|
169
169
|
hideLegend: !0,
|
|
170
170
|
margin: we,
|
|
171
171
|
series: [
|
|
@@ -182,12 +182,12 @@ const ko = ({
|
|
|
182
182
|
skipAnimation: !0,
|
|
183
183
|
slots: {
|
|
184
184
|
pieArc: (q) => /* @__PURE__ */ e(
|
|
185
|
-
|
|
185
|
+
To,
|
|
186
186
|
{
|
|
187
187
|
arcColor: q.color,
|
|
188
188
|
arcRadius: t,
|
|
189
189
|
arcStartAngle: C,
|
|
190
|
-
centerX:
|
|
190
|
+
centerX: E,
|
|
191
191
|
centerY: G,
|
|
192
192
|
dataIndex: q.dataIndex,
|
|
193
193
|
dialScoreData: r,
|
|
@@ -195,7 +195,7 @@ const ko = ({
|
|
|
195
195
|
isFinacialStrengthGraph: b,
|
|
196
196
|
outterArcRadius: L,
|
|
197
197
|
progressEndAngle: y,
|
|
198
|
-
totalAngularSpan:
|
|
198
|
+
totalAngularSpan: x,
|
|
199
199
|
unitsPerSegment: ve
|
|
200
200
|
}
|
|
201
201
|
)
|
|
@@ -205,7 +205,7 @@ const ko = ({
|
|
|
205
205
|
stroke: "none"
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
|
-
width:
|
|
208
|
+
width: W
|
|
209
209
|
}
|
|
210
210
|
),
|
|
211
211
|
o >= s && o <= a && /* @__PURE__ */ e(
|
|
@@ -214,18 +214,18 @@ const ko = ({
|
|
|
214
214
|
height: me,
|
|
215
215
|
style: {
|
|
216
216
|
position: "absolute",
|
|
217
|
-
left:
|
|
217
|
+
left: E + te - H[n].markerSize - 5,
|
|
218
218
|
top: G + j - H[n].markerSize - 5,
|
|
219
219
|
overflow: "visible"
|
|
220
220
|
},
|
|
221
|
-
viewBox: `${
|
|
221
|
+
viewBox: `${E + te - H[n].markerSize - 5} ${G + j - H[n].markerSize - 5} ${me} ${me}`,
|
|
222
222
|
width: me,
|
|
223
223
|
children: /* @__PURE__ */ e(
|
|
224
224
|
"circle",
|
|
225
225
|
{
|
|
226
|
-
cx:
|
|
226
|
+
cx: E + te,
|
|
227
227
|
cy: G + j,
|
|
228
|
-
fill:
|
|
228
|
+
fill: v.palette.common.white,
|
|
229
229
|
r: H[n].markerSize,
|
|
230
230
|
stroke: b ? "url(#arcGradient)" : c,
|
|
231
231
|
strokeWidth: ae
|
|
@@ -239,7 +239,7 @@ const ko = ({
|
|
|
239
239
|
sx: {
|
|
240
240
|
position: "absolute",
|
|
241
241
|
top: `${G}px`,
|
|
242
|
-
left: `${
|
|
242
|
+
left: `${E}px`,
|
|
243
243
|
transform: "translate(-50%, -50%)",
|
|
244
244
|
textAlign: "center"
|
|
245
245
|
},
|
|
@@ -272,7 +272,7 @@ const ko = ({
|
|
|
272
272
|
sx: {
|
|
273
273
|
position: "absolute",
|
|
274
274
|
top: `${G * 2 * 0.83}px`,
|
|
275
|
-
left: `${
|
|
275
|
+
left: `${E}px`,
|
|
276
276
|
transform: "translate(-50%, -50%)",
|
|
277
277
|
textAlign: "center"
|
|
278
278
|
},
|
|
@@ -286,7 +286,7 @@ const ko = ({
|
|
|
286
286
|
mt: 24
|
|
287
287
|
},
|
|
288
288
|
children: [
|
|
289
|
-
_ > 0 ? /* @__PURE__ */ e(
|
|
289
|
+
_ > 0 ? /* @__PURE__ */ e(an, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(K, { size: 16, sx: { color: "text.secondary" } }),
|
|
290
290
|
/* @__PURE__ */ e(
|
|
291
291
|
D,
|
|
292
292
|
{
|
|
@@ -309,7 +309,7 @@ const ko = ({
|
|
|
309
309
|
sx: {
|
|
310
310
|
position: "absolute",
|
|
311
311
|
top: `${G * 2 * 0.83}px`,
|
|
312
|
-
left: `${
|
|
312
|
+
left: `${E - E / 2}px`,
|
|
313
313
|
// shift left from center
|
|
314
314
|
transform: "translate(-50%, -50%)",
|
|
315
315
|
textAlign: "left"
|
|
@@ -323,7 +323,7 @@ const ko = ({
|
|
|
323
323
|
sx: {
|
|
324
324
|
position: "absolute",
|
|
325
325
|
top: `${G * 2 * 0.83}px`,
|
|
326
|
-
left: `${
|
|
326
|
+
left: `${E + E / 2}px`,
|
|
327
327
|
transform: "translate(-50%, -50%)",
|
|
328
328
|
textAlign: "right"
|
|
329
329
|
},
|
|
@@ -333,7 +333,7 @@ const ko = ({
|
|
|
333
333
|
]
|
|
334
334
|
}
|
|
335
335
|
);
|
|
336
|
-
},
|
|
336
|
+
}, Ot = k(
|
|
337
337
|
({
|
|
338
338
|
arcRadius: t,
|
|
339
339
|
size: o = "L",
|
|
@@ -346,9 +346,9 @@ const ko = ({
|
|
|
346
346
|
{ id: 2, label: "Group B", value: 25 },
|
|
347
347
|
{ id: 3, label: "Group C", value: 25 },
|
|
348
348
|
{ id: 4, label: "Group D", value: 25 }
|
|
349
|
-
], { finstrong: l } =
|
|
349
|
+
], { finstrong: l } = S(), c = Ge(n, l);
|
|
350
350
|
return /* @__PURE__ */ e(
|
|
351
|
-
|
|
351
|
+
At,
|
|
352
352
|
{
|
|
353
353
|
arcRadius: t,
|
|
354
354
|
dialScoreData: a,
|
|
@@ -361,7 +361,7 @@ const ko = ({
|
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
),
|
|
364
|
+
), Ao = k(
|
|
365
365
|
({
|
|
366
366
|
arcRadius: t,
|
|
367
367
|
size: o = "L",
|
|
@@ -370,7 +370,7 @@ const ko = ({
|
|
|
370
370
|
minValue: s = 300,
|
|
371
371
|
footerCenterContent: a
|
|
372
372
|
}) => {
|
|
373
|
-
const c =
|
|
373
|
+
const c = z().palette.mode === "dark", d = [
|
|
374
374
|
{
|
|
375
375
|
id: 1,
|
|
376
376
|
label: "Poor",
|
|
@@ -401,15 +401,15 @@ const ko = ({
|
|
|
401
401
|
value: 12,
|
|
402
402
|
color: c ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
|
|
403
403
|
}
|
|
404
|
-
], { finstrong: _ } =
|
|
404
|
+
], { finstrong: _ } = S(), { isCopyLoaded: h } = U();
|
|
405
405
|
if (!h) return /* @__PURE__ */ e(Q, {});
|
|
406
|
-
const { status: u, color: b = "none" } =
|
|
406
|
+
const { status: u, color: b = "none" } = ut(
|
|
407
407
|
n,
|
|
408
408
|
c,
|
|
409
409
|
_.credit_score_status
|
|
410
410
|
);
|
|
411
411
|
return /* @__PURE__ */ e(
|
|
412
|
-
|
|
412
|
+
At,
|
|
413
413
|
{
|
|
414
414
|
arcRadius: t,
|
|
415
415
|
dialScoreData: d,
|
|
@@ -435,7 +435,7 @@ const ko = ({
|
|
|
435
435
|
description: l,
|
|
436
436
|
sx: c
|
|
437
437
|
}) => {
|
|
438
|
-
const [d, _] = m.useState(!1), { connect: h, finstrong: u } =
|
|
438
|
+
const [d, _] = m.useState(!1), { connect: h, finstrong: u } = S(), { config: b } = He();
|
|
439
439
|
return t && b.show_connections_widget_in_master ? /* @__PURE__ */ i(
|
|
440
440
|
Y,
|
|
441
441
|
{
|
|
@@ -455,7 +455,7 @@ const ko = ({
|
|
|
455
455
|
...o && { flexDirection: "row", alignItems: "center" }
|
|
456
456
|
},
|
|
457
457
|
children: [
|
|
458
|
-
n && /* @__PURE__ */ e(
|
|
458
|
+
n && /* @__PURE__ */ e(dt, { sx: { height: 20, width: 20 } }),
|
|
459
459
|
/* @__PURE__ */ e(X, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || u.connect_more_accounts_title })
|
|
460
460
|
]
|
|
461
461
|
}
|
|
@@ -470,7 +470,7 @@ const ko = ({
|
|
|
470
470
|
}
|
|
471
471
|
),
|
|
472
472
|
/* @__PURE__ */ e(
|
|
473
|
-
|
|
473
|
+
P,
|
|
474
474
|
{
|
|
475
475
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
476
476
|
onClick: () => _(!0),
|
|
@@ -488,7 +488,7 @@ const ko = ({
|
|
|
488
488
|
}
|
|
489
489
|
),
|
|
490
490
|
t === "connectionsDrawer" && /* @__PURE__ */ e(
|
|
491
|
-
|
|
491
|
+
ft,
|
|
492
492
|
{
|
|
493
493
|
onClose: () => _(!1),
|
|
494
494
|
showConnectionsWidget: d,
|
|
@@ -500,14 +500,14 @@ const ko = ({
|
|
|
500
500
|
) : null;
|
|
501
501
|
};
|
|
502
502
|
var pe = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(pe || {});
|
|
503
|
-
const
|
|
504
|
-
const { common: n, finstrong: r } =
|
|
503
|
+
const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Ro = ({ isOpen: t, onClose: o }) => {
|
|
504
|
+
const { common: n, finstrong: r } = S(), { isMobile: s } = Xe(), { updateUser: a, user: l } = ee(), [c, d] = m.useState(l.credit_score || 0), _ = !isNaN(c), h = () => {
|
|
505
505
|
o(), setTimeout(() => d(l.credit_score || 0), 300);
|
|
506
506
|
}, u = () => {
|
|
507
507
|
!c || c === l.credit_score || a({ ...l, credit_score: c });
|
|
508
508
|
};
|
|
509
509
|
return /* @__PURE__ */ e(
|
|
510
|
-
|
|
510
|
+
Wn,
|
|
511
511
|
{
|
|
512
512
|
copy: { close_aria: n.close_aria, title: r.edit_credit_score },
|
|
513
513
|
disablePrimaryButton: !c || !_,
|
|
@@ -546,8 +546,8 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
546
546
|
)
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
|
-
},
|
|
550
|
-
const o =
|
|
549
|
+
}, Rt = k(Ro), Lo = ({ chartFor: t }) => {
|
|
550
|
+
const o = z(), n = o.palette.mode === "dark", { monthlySummaries: r } = B(), { user: s } = ee(), { finstrong: a } = S(), [l, { width: c }] = St(), d = {
|
|
551
551
|
savingsOverTime: {
|
|
552
552
|
icon: "trending_up",
|
|
553
553
|
title: a.key_indicators_save.zero_state_title,
|
|
@@ -576,15 +576,15 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
576
576
|
title: a.credit_over_time_title,
|
|
577
577
|
valueKey: "credit_score"
|
|
578
578
|
}
|
|
579
|
-
}[t], u =
|
|
580
|
-
let
|
|
579
|
+
}[t], u = Sn(r, h.valueKey), b = r.map((T) => T[h.valueKey]), v = Math.max(...b), C = Math.min(...b), f = () => v >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : v >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: x, leftMargin: w } = f(), g = h.title, y = t === "creditOverTime";
|
|
580
|
+
let A;
|
|
581
581
|
if (y) {
|
|
582
|
-
const { color: T } =
|
|
582
|
+
const { color: T } = ut(
|
|
583
583
|
s?.credit_score ?? 0,
|
|
584
584
|
n,
|
|
585
585
|
a.credit_score_status
|
|
586
586
|
);
|
|
587
|
-
|
|
587
|
+
A = T;
|
|
588
588
|
}
|
|
589
589
|
const L = u.some((T) => T.y !== 0);
|
|
590
590
|
return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children: L ? /* @__PURE__ */ i(p, { gap: 8, sx: { pl: 18 }, children: [
|
|
@@ -592,7 +592,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
592
592
|
/* @__PURE__ */ e(
|
|
593
593
|
Ke,
|
|
594
594
|
{
|
|
595
|
-
areaColor:
|
|
595
|
+
areaColor: A,
|
|
596
596
|
axisColor: o.palette.divider,
|
|
597
597
|
baseline: "min",
|
|
598
598
|
chartFor: t,
|
|
@@ -603,7 +603,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
603
603
|
labelFontColor: y ? "text.primary" : "",
|
|
604
604
|
labelFontSize: y ? 13 : void 0,
|
|
605
605
|
labels: [a.key_indicators_label],
|
|
606
|
-
margin: { left:
|
|
606
|
+
margin: { left: w, top: y ? 25 : 15, right: 20 },
|
|
607
607
|
markStyles: (T) => y ? {
|
|
608
608
|
markLabelStyles: {
|
|
609
609
|
marginLeft: 16,
|
|
@@ -611,7 +611,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
611
611
|
fontWeight: 600,
|
|
612
612
|
fill: o.palette.text.primary
|
|
613
613
|
},
|
|
614
|
-
stroke:
|
|
614
|
+
stroke: A
|
|
615
615
|
} : {},
|
|
616
616
|
maxRange: y ? 850 : void 0,
|
|
617
617
|
minRange: (() => {
|
|
@@ -626,12 +626,12 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
626
626
|
showYAxis: y,
|
|
627
627
|
showYAxisTicks: y,
|
|
628
628
|
useCustomMark: !0,
|
|
629
|
-
valueFormatterString: y ? void 0 :
|
|
629
|
+
valueFormatterString: y ? void 0 : x,
|
|
630
630
|
width: c < 342 ? c - 48 : 342
|
|
631
631
|
}
|
|
632
632
|
)
|
|
633
633
|
] }) : /* @__PURE__ */ e(
|
|
634
|
-
|
|
634
|
+
Le,
|
|
635
635
|
{
|
|
636
636
|
header: d.title,
|
|
637
637
|
icon: d.icon,
|
|
@@ -651,12 +651,12 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
651
651
|
variant: "no-buttons"
|
|
652
652
|
}
|
|
653
653
|
) });
|
|
654
|
-
}, Ye =
|
|
655
|
-
const { healthScoreChangeReports: t } =
|
|
654
|
+
}, Ye = k(Lo), Fo = () => {
|
|
655
|
+
const { healthScoreChangeReports: t } = B(), { finstrong: o } = S(), { user: n } = ee(), { availableWidth: r } = On(), { isSmallMobile: s } = Xe(r), [a, l] = m.useState(!1), c = t.at(-1);
|
|
656
656
|
return /* @__PURE__ */ i(M, { children: [
|
|
657
657
|
/* @__PURE__ */ i(p, { sx: { gap: 28 }, children: [
|
|
658
658
|
/* @__PURE__ */ e(
|
|
659
|
-
|
|
659
|
+
Ao,
|
|
660
660
|
{
|
|
661
661
|
arcRadius: s ? 124 : 154,
|
|
662
662
|
footerCenterContent: c ? c.newer_credit_score - c.older_credit_score : 0,
|
|
@@ -664,20 +664,20 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
664
664
|
size: s ? "M" : "L"
|
|
665
665
|
}
|
|
666
666
|
),
|
|
667
|
-
/* @__PURE__ */ e(
|
|
667
|
+
/* @__PURE__ */ e(P, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
|
|
668
668
|
/* @__PURE__ */ e(Ye, { chartFor: "creditOverTime" })
|
|
669
669
|
] }),
|
|
670
|
-
/* @__PURE__ */ e(
|
|
670
|
+
/* @__PURE__ */ e(Rt, { isOpen: a, onClose: () => l(!1) })
|
|
671
671
|
] });
|
|
672
|
-
},
|
|
673
|
-
const { finstrong: o } =
|
|
672
|
+
}, Bo = k(Fo), Pe = ({ status: t }) => {
|
|
673
|
+
const { finstrong: o } = S(), n = Cn(vn[t]), r = {
|
|
674
674
|
GOOD: o.key_indicators_good,
|
|
675
675
|
FAIR: o.key_indicators_fair,
|
|
676
676
|
OFF_TRACK: o.key_indicators_off_track,
|
|
677
677
|
MISSING: o.key_indicators_missing
|
|
678
678
|
}[t];
|
|
679
679
|
return /* @__PURE__ */ e(
|
|
680
|
-
|
|
680
|
+
zn,
|
|
681
681
|
{
|
|
682
682
|
label: /* @__PURE__ */ e(
|
|
683
683
|
D,
|
|
@@ -697,13 +697,13 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
697
697
|
variant: "filled"
|
|
698
698
|
}
|
|
699
699
|
);
|
|
700
|
-
},
|
|
701
|
-
const { finstrong: t } =
|
|
700
|
+
}, Po = () => {
|
|
701
|
+
const { finstrong: t } = S(), { user: o } = ee(), n = ht(o.credit_score ?? null);
|
|
702
702
|
return /* @__PURE__ */ i(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
703
703
|
/* @__PURE__ */ e(X, { children: t.credit_score_keep_strong_credit_score }),
|
|
704
704
|
/* @__PURE__ */ e(Pe, { status: n })
|
|
705
705
|
] });
|
|
706
|
-
},
|
|
706
|
+
}, Wo = k(Po), $o = ({
|
|
707
707
|
additionalContent: t,
|
|
708
708
|
connectTitle: o,
|
|
709
709
|
connectDescription: n,
|
|
@@ -717,55 +717,90 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
717
717
|
title: h,
|
|
718
718
|
drawerType: u
|
|
719
719
|
}) => {
|
|
720
|
-
const { finstrong: b } =
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
),
|
|
737
|
-
_ && /* @__PURE__ */ e(
|
|
738
|
-
M,
|
|
739
|
-
{
|
|
740
|
-
sx: {
|
|
741
|
-
position: "sticky",
|
|
742
|
-
top: 0,
|
|
743
|
-
zIndex: 1
|
|
744
|
-
},
|
|
745
|
-
children: _
|
|
746
|
-
}
|
|
747
|
-
),
|
|
748
|
-
t && /* @__PURE__ */ e(M, { children: t }),
|
|
749
|
-
/* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
|
|
750
|
-
r,
|
|
751
|
-
c && /* @__PURE__ */ e(
|
|
752
|
-
Be,
|
|
753
|
-
{
|
|
754
|
-
description: n,
|
|
755
|
-
drawerType: u,
|
|
756
|
-
isDashboard: !0,
|
|
757
|
-
sx: { backgroundColor: "background.paper" },
|
|
758
|
-
title: o
|
|
720
|
+
const { finstrong: b } = S(), { isCopyLoaded: v } = U(), [C, f] = Bn(!1), x = Pn(null), w = nt(() => {
|
|
721
|
+
if (x.current) {
|
|
722
|
+
const y = x.current.scrollTop > 0;
|
|
723
|
+
f((A) => A !== y ? y : A);
|
|
724
|
+
}
|
|
725
|
+
}, []), g = nt(
|
|
726
|
+
(y) => {
|
|
727
|
+
if (x.current && x.current.removeEventListener("scroll", w), y) {
|
|
728
|
+
let A = y.parentElement;
|
|
729
|
+
for (; A; ) {
|
|
730
|
+
const { overflow: L, overflowY: T } = window.getComputedStyle(A);
|
|
731
|
+
if (L === "auto" || T === "auto" || L === "scroll" || T === "scroll") {
|
|
732
|
+
x.current = A, A.addEventListener("scroll", w, { passive: !0 });
|
|
733
|
+
break;
|
|
734
|
+
}
|
|
735
|
+
A = A.parentElement;
|
|
759
736
|
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
[w]
|
|
740
|
+
);
|
|
741
|
+
return ot(() => {
|
|
742
|
+
l || f(!1);
|
|
743
|
+
}, [l]), ot(() => () => {
|
|
744
|
+
x.current && x.current.removeEventListener("scroll", w);
|
|
745
|
+
}, [w]), v ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: d, title: a || b.key_indicators, children: /* @__PURE__ */ i(
|
|
746
|
+
p,
|
|
747
|
+
{
|
|
748
|
+
ref: g,
|
|
749
|
+
sx: { backgroundColor: "background.default", height: "100%" },
|
|
750
|
+
children: [
|
|
751
|
+
(h || s) && /* @__PURE__ */ i(
|
|
752
|
+
p,
|
|
753
|
+
{
|
|
754
|
+
sx: {
|
|
755
|
+
backgroundColor: "background.paper",
|
|
756
|
+
gap: 8,
|
|
757
|
+
p: 24,
|
|
758
|
+
pb: _ ? 0 : 24
|
|
759
|
+
},
|
|
760
|
+
children: [
|
|
761
|
+
h && typeof h == "string" ? /* @__PURE__ */ e(X, { children: h }) : h,
|
|
762
|
+
s && /* @__PURE__ */ e(D, { sx: { lineHeight: "24px" }, children: s })
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
),
|
|
766
|
+
_ && /* @__PURE__ */ e(
|
|
767
|
+
M,
|
|
768
|
+
{
|
|
769
|
+
sx: {
|
|
770
|
+
position: "sticky",
|
|
771
|
+
top: 0,
|
|
772
|
+
zIndex: 1,
|
|
773
|
+
"& > *": {
|
|
774
|
+
borderBottom: C ? "1px solid" : "none",
|
|
775
|
+
borderColor: C ? "divider" : "transparent"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
children: _
|
|
779
|
+
}
|
|
780
|
+
),
|
|
781
|
+
t && /* @__PURE__ */ e(M, { children: t }),
|
|
782
|
+
/* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
|
|
783
|
+
r,
|
|
784
|
+
c && /* @__PURE__ */ e(
|
|
785
|
+
Be,
|
|
786
|
+
{
|
|
787
|
+
description: n,
|
|
788
|
+
drawerType: u,
|
|
789
|
+
isDashboard: !0,
|
|
790
|
+
sx: { backgroundColor: "background.paper" },
|
|
791
|
+
title: o
|
|
792
|
+
}
|
|
793
|
+
)
|
|
794
|
+
] })
|
|
795
|
+
]
|
|
796
|
+
}
|
|
797
|
+
) }) : /* @__PURE__ */ e(Q, {});
|
|
798
|
+
}, Lt = k($o), Eo = ({
|
|
764
799
|
onClick: t,
|
|
765
800
|
shouldShowBalance: o = !0,
|
|
766
801
|
loadAccounts: n
|
|
767
802
|
}) => {
|
|
768
|
-
const { config: r } = He(), { accounts: s } =
|
|
803
|
+
const { config: r } = He(), { accounts: s } = S(), { selectedAccounts: a } = U(), l = m.useCallback(
|
|
769
804
|
(d) => {
|
|
770
805
|
t?.(d);
|
|
771
806
|
},
|
|
@@ -782,19 +817,19 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
782
817
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
783
818
|
);
|
|
784
819
|
return /* @__PURE__ */ i(
|
|
785
|
-
|
|
820
|
+
ze,
|
|
786
821
|
{
|
|
787
|
-
subheader: /* @__PURE__ */ e(
|
|
822
|
+
subheader: /* @__PURE__ */ e(Hn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
788
823
|
/* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: s.account_types[d] }),
|
|
789
|
-
o && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children:
|
|
824
|
+
o && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: $(h, "0,0.00") })
|
|
790
825
|
] }) }),
|
|
791
826
|
sx: { bgcolor: "background.paper" },
|
|
792
827
|
children: [
|
|
793
828
|
_.map((u, b) => {
|
|
794
|
-
const { firstValue:
|
|
829
|
+
const { firstValue: v } = vt(u, s), C = xt(u, {
|
|
795
830
|
allowNickname: r?.show_account_nicknames_in_master
|
|
796
831
|
}), f = /* @__PURE__ */ i(N, { children: [
|
|
797
|
-
/* @__PURE__ */ e(
|
|
832
|
+
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: u.institution_guid ?? "" }) }),
|
|
798
833
|
/* @__PURE__ */ e(
|
|
799
834
|
fe,
|
|
800
835
|
{
|
|
@@ -802,10 +837,10 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
802
837
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
803
838
|
}
|
|
804
839
|
),
|
|
805
|
-
o && /* @__PURE__ */ e(D, { bold: !0, variant: "body2", children:
|
|
840
|
+
o && /* @__PURE__ */ e(D, { bold: !0, variant: "body2", children: $(v ?? 0, "0,0.00") })
|
|
806
841
|
] });
|
|
807
842
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
808
|
-
/* @__PURE__ */ e(be, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(
|
|
843
|
+
/* @__PURE__ */ e(be, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Gn, { onClick: () => l(u), children: f }) : f }),
|
|
809
844
|
b !== _.length - 1 && /* @__PURE__ */ e(de, { variant: "inset" })
|
|
810
845
|
] }, u.guid);
|
|
811
846
|
}),
|
|
@@ -815,37 +850,37 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
815
850
|
d
|
|
816
851
|
);
|
|
817
852
|
}) }) : null;
|
|
818
|
-
},
|
|
819
|
-
const n =
|
|
853
|
+
}, Ft = k(Eo), zo = ({ loadAccounts: t, loadMoreLabel: o }) => {
|
|
854
|
+
const n = z(), { config: r } = He(), { connect: s, finstrong: a } = S(), { accounts: l } = S(), { selectedAccounts: c } = U(), [d, _] = m.useState(!1), [h, u] = m.useState(!1), b = m.useMemo(
|
|
820
855
|
() => c.filter(
|
|
821
856
|
(f) => t ? t.includes(f.account_type) : !0
|
|
822
857
|
),
|
|
823
858
|
[c, t]
|
|
824
|
-
),
|
|
825
|
-
const { firstValue:
|
|
826
|
-
return
|
|
859
|
+
), v = m.useMemo(() => b.slice(0, 3), [b]), C = (f) => {
|
|
860
|
+
const { firstValue: x } = vt(f, l);
|
|
861
|
+
return x;
|
|
827
862
|
};
|
|
828
863
|
return b.length >= 1 ? /* @__PURE__ */ i(N, { children: [
|
|
829
|
-
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children:
|
|
864
|
+
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: v.map((f, x) => /* @__PURE__ */ i(m.Fragment, { children: [
|
|
830
865
|
/* @__PURE__ */ i(be, { sx: { px: 24 }, children: [
|
|
831
|
-
/* @__PURE__ */ e(
|
|
866
|
+
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: f.institution_guid ?? "" }) }),
|
|
832
867
|
/* @__PURE__ */ e(
|
|
833
868
|
fe,
|
|
834
869
|
{
|
|
835
|
-
primary: `${
|
|
870
|
+
primary: `${xt(f, {
|
|
836
871
|
allowNickname: r?.show_account_nicknames_in_master
|
|
837
872
|
})}
|
|
838
873
|
${f.account_number ? ` *${f.account_number}` : ""}`,
|
|
839
874
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
840
875
|
}
|
|
841
876
|
),
|
|
842
|
-
/* @__PURE__ */ e(D, { bold: !0, variant: "body2", children:
|
|
877
|
+
/* @__PURE__ */ e(D, { bold: !0, variant: "body2", children: $(C(f), "0,0.00") })
|
|
843
878
|
] }),
|
|
844
|
-
|
|
879
|
+
x < v.length - 1 && /* @__PURE__ */ e(de, { variant: "inset" })
|
|
845
880
|
] }, f.guid)) }),
|
|
846
881
|
b.length > 3 && /* @__PURE__ */ i(N, { children: [
|
|
847
882
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
848
|
-
|
|
883
|
+
P,
|
|
849
884
|
{
|
|
850
885
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
851
886
|
onClick: () => _(!0),
|
|
@@ -858,11 +893,11 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
858
893
|
] })
|
|
859
894
|
}
|
|
860
895
|
) }),
|
|
861
|
-
/* @__PURE__ */ e(oe, { isOpen: d, onClose: () => _(!1), title: a.accounts, children: /* @__PURE__ */ e(
|
|
896
|
+
/* @__PURE__ */ e(oe, { isOpen: d, onClose: () => _(!1), title: a.accounts, children: /* @__PURE__ */ e(Ft, { loadAccounts: t }) })
|
|
862
897
|
] })
|
|
863
898
|
] }) : /* @__PURE__ */ i(N, { children: [
|
|
864
899
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
865
|
-
|
|
900
|
+
P,
|
|
866
901
|
{
|
|
867
902
|
onClick: () => u(!0),
|
|
868
903
|
size: "small",
|
|
@@ -880,7 +915,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
880
915
|
}
|
|
881
916
|
)
|
|
882
917
|
] });
|
|
883
|
-
},
|
|
918
|
+
}, Bt = k(zo), Ce = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ i(
|
|
884
919
|
p,
|
|
885
920
|
{
|
|
886
921
|
sx: {
|
|
@@ -893,14 +928,14 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
893
928
|
...n
|
|
894
929
|
},
|
|
895
930
|
children: [
|
|
896
|
-
typeof t == "number" ? /* @__PURE__ */ e(D, { variant: "h2", children:
|
|
931
|
+
typeof t == "number" ? /* @__PURE__ */ e(D, { variant: "h2", children: $(t, "0,0.00") }) : t,
|
|
897
932
|
/* @__PURE__ */ e(D, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
|
|
898
933
|
]
|
|
899
934
|
}
|
|
900
935
|
);
|
|
901
|
-
var
|
|
902
|
-
const
|
|
903
|
-
const { finstrong: o } =
|
|
936
|
+
var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}), 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 || {});
|
|
937
|
+
const Go = ({ total: t }) => {
|
|
938
|
+
const { finstrong: o } = S(), n = [
|
|
904
939
|
{ id: Z.Monthly, label: o.maintain_emergency_savings_monthly },
|
|
905
940
|
{ id: Z.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
|
|
906
941
|
{ id: Z.Weekly, label: o.maintain_emergency_savings_weekly },
|
|
@@ -916,14 +951,14 @@ const Wo = ({ total: t }) => {
|
|
|
916
951
|
{ id: De.Days, label: o.maintain_emergency_savings_days }
|
|
917
952
|
], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = m.useState(0), [d, _] = m.useState(Je(t)), [h, u] = m.useState(
|
|
918
953
|
Je(t)
|
|
919
|
-
), [b,
|
|
954
|
+
), [b, v] = m.useState(a), [C, f] = m.useState(wn(t)), [x, w] = m.useState(De.Months);
|
|
920
955
|
m.useEffect(() => {
|
|
921
956
|
c(
|
|
922
957
|
et({
|
|
923
958
|
contribution: h,
|
|
924
959
|
goalAmount: b,
|
|
925
960
|
goalPeriod: C,
|
|
926
|
-
targetPeriod:
|
|
961
|
+
targetPeriod: x,
|
|
927
962
|
totalSaved: t
|
|
928
963
|
})
|
|
929
964
|
), _(h);
|
|
@@ -934,7 +969,7 @@ const Wo = ({ total: t }) => {
|
|
|
934
969
|
contribution: h,
|
|
935
970
|
goalAmount: b,
|
|
936
971
|
goalPeriod: C,
|
|
937
|
-
targetPeriod:
|
|
972
|
+
targetPeriod: x,
|
|
938
973
|
totalSaved: t
|
|
939
974
|
})
|
|
940
975
|
), _(h);
|
|
@@ -944,7 +979,7 @@ const Wo = ({ total: t }) => {
|
|
|
944
979
|
Ce,
|
|
945
980
|
{
|
|
946
981
|
balance: /* @__PURE__ */ i(p, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
947
|
-
/* @__PURE__ */ e(I, { variant: "h2", children:
|
|
982
|
+
/* @__PURE__ */ e(I, { variant: "h2", children: $(l, "0,0") }),
|
|
948
983
|
/* @__PURE__ */ i(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
949
984
|
"/",
|
|
950
985
|
r[d]
|
|
@@ -959,7 +994,7 @@ const Wo = ({ total: t }) => {
|
|
|
959
994
|
"aria-label": o.maintain_emergency_savings_savings_goal,
|
|
960
995
|
helperText: V(
|
|
961
996
|
o.maintain_emergency_savings_suggested_goal,
|
|
962
|
-
|
|
997
|
+
$(a, "0,0")
|
|
963
998
|
),
|
|
964
999
|
inputProps: {
|
|
965
1000
|
noValidate: !0,
|
|
@@ -967,13 +1002,13 @@ const Wo = ({ total: t }) => {
|
|
|
967
1002
|
},
|
|
968
1003
|
label: o.maintain_emergency_savings_savings_goal,
|
|
969
1004
|
onChange: (y) => {
|
|
970
|
-
y.target.value &&
|
|
1005
|
+
y.target.value && v(Number(y.target.value.replace(/[^0-9]/g, "")));
|
|
971
1006
|
},
|
|
972
|
-
value: b ?
|
|
1007
|
+
value: b ? $(b, "0,0") : ""
|
|
973
1008
|
}
|
|
974
1009
|
),
|
|
975
1010
|
/* @__PURE__ */ e(
|
|
976
|
-
|
|
1011
|
+
rt,
|
|
977
1012
|
{
|
|
978
1013
|
label: o.maintain_emergency_savings_how_often_contribute,
|
|
979
1014
|
onChange: u,
|
|
@@ -1020,14 +1055,14 @@ const Wo = ({ total: t }) => {
|
|
|
1020
1055
|
}
|
|
1021
1056
|
}
|
|
1022
1057
|
},
|
|
1023
|
-
children: /* @__PURE__ */ e(
|
|
1058
|
+
children: /* @__PURE__ */ e(rt, { label: "", onChange: w, options: s, value: x })
|
|
1024
1059
|
}
|
|
1025
1060
|
)
|
|
1026
1061
|
] }),
|
|
1027
|
-
/* @__PURE__ */ e(
|
|
1062
|
+
/* @__PURE__ */ e(P, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
|
|
1028
1063
|
] }) }) });
|
|
1029
|
-
},
|
|
1030
|
-
const { savingsAccounts: t } = Se(), { finstrong: o } =
|
|
1064
|
+
}, Ho = k(Go), No = () => {
|
|
1065
|
+
const { savingsAccounts: t } = Se(), { finstrong: o } = S(), [n, r] = m.useState(!1), s = m.useMemo(
|
|
1031
1066
|
() => t.reduce((a, l) => a + (l.balance ?? 0), 0),
|
|
1032
1067
|
[t]
|
|
1033
1068
|
);
|
|
@@ -1035,14 +1070,14 @@ const Wo = ({ total: t }) => {
|
|
|
1035
1070
|
/* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(p, { sx: { gap: 16 }, children: [
|
|
1036
1071
|
/* @__PURE__ */ e(Ce, { balance: s, title: o.maintain_emergency_savings_your_savings }),
|
|
1037
1072
|
t.length ? /* @__PURE__ */ e(
|
|
1038
|
-
|
|
1073
|
+
Bt,
|
|
1039
1074
|
{
|
|
1040
|
-
loadAccounts: [
|
|
1075
|
+
loadAccounts: [Ee.SAVINGS],
|
|
1041
1076
|
loadMoreLabel: o.connect_more_accounts_button
|
|
1042
1077
|
}
|
|
1043
|
-
) : /* @__PURE__ */ e(
|
|
1078
|
+
) : /* @__PURE__ */ e(P, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
|
|
1044
1079
|
] }) }),
|
|
1045
|
-
/* @__PURE__ */ e(
|
|
1080
|
+
/* @__PURE__ */ e(Ho, { total: s }),
|
|
1046
1081
|
/* @__PURE__ */ e(
|
|
1047
1082
|
re,
|
|
1048
1083
|
{
|
|
@@ -1052,7 +1087,7 @@ const Wo = ({ total: t }) => {
|
|
|
1052
1087
|
}
|
|
1053
1088
|
)
|
|
1054
1089
|
] });
|
|
1055
|
-
},
|
|
1090
|
+
}, jo = k(No), We = k(
|
|
1056
1091
|
({ label: t, value: o, status: n, bottomComponent: r, statusBarData: s = [] }) => {
|
|
1057
1092
|
const a = {
|
|
1058
1093
|
GOOD: {
|
|
@@ -1097,28 +1132,28 @@ const Wo = ({ total: t }) => {
|
|
|
1097
1132
|
justifyContent: "space-between"
|
|
1098
1133
|
},
|
|
1099
1134
|
children: [
|
|
1100
|
-
/* @__PURE__ */ e(
|
|
1135
|
+
/* @__PURE__ */ e(Fe, { children: o }),
|
|
1101
1136
|
/* @__PURE__ */ e(Pe, { status: n })
|
|
1102
1137
|
]
|
|
1103
1138
|
}
|
|
1104
1139
|
)
|
|
1105
1140
|
] }),
|
|
1106
1141
|
/* @__PURE__ */ i(p, { children: [
|
|
1107
|
-
/* @__PURE__ */ e(
|
|
1142
|
+
/* @__PURE__ */ e(jn, { data: l, height: 16 }),
|
|
1108
1143
|
r
|
|
1109
1144
|
] })
|
|
1110
1145
|
]
|
|
1111
1146
|
}
|
|
1112
1147
|
);
|
|
1113
1148
|
}
|
|
1114
|
-
),
|
|
1149
|
+
), Ko = {
|
|
1115
1150
|
sticky_label: "You have saved"
|
|
1116
|
-
},
|
|
1117
|
-
const { healthScore: t } =
|
|
1151
|
+
}, Vo = ["$0", "$250", "$500", "$750", "$1k"], Xo = () => {
|
|
1152
|
+
const { healthScore: t } = B(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = kn(o), r = mt(o);
|
|
1118
1153
|
return /* @__PURE__ */ e(
|
|
1119
1154
|
We,
|
|
1120
1155
|
{
|
|
1121
|
-
bottomComponent: /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children:
|
|
1156
|
+
bottomComponent: /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Vo.map((s) => /* @__PURE__ */ i(p, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1122
1157
|
/* @__PURE__ */ e(
|
|
1123
1158
|
de,
|
|
1124
1159
|
{
|
|
@@ -1132,34 +1167,34 @@ const Wo = ({ total: t }) => {
|
|
|
1132
1167
|
),
|
|
1133
1168
|
/* @__PURE__ */ e(I, { variant: "caption", children: s })
|
|
1134
1169
|
] }, s)) }),
|
|
1135
|
-
label:
|
|
1170
|
+
label: Ko.sticky_label,
|
|
1136
1171
|
status: r,
|
|
1137
1172
|
statusBarData: [
|
|
1138
1173
|
{
|
|
1139
1174
|
percentage: n
|
|
1140
1175
|
}
|
|
1141
1176
|
],
|
|
1142
|
-
value:
|
|
1177
|
+
value: $(o ?? 0, "0,0.00")
|
|
1143
1178
|
}
|
|
1144
1179
|
);
|
|
1145
|
-
},
|
|
1180
|
+
}, Yo = k(Xo), $e = ({
|
|
1146
1181
|
transactions: t = [],
|
|
1147
1182
|
amountColor: o = "success.main",
|
|
1148
1183
|
amountPosition: n = "center",
|
|
1149
|
-
formatDate: r =
|
|
1184
|
+
formatDate: r = Mt,
|
|
1150
1185
|
secondaryIcon: s
|
|
1151
1186
|
}) => {
|
|
1152
|
-
const a =
|
|
1153
|
-
let
|
|
1154
|
-
return f && (
|
|
1187
|
+
const a = z(), { connect: l, finstrong: c, categories: d } = S(), [_, h] = m.useState(!1), [u, b] = m.useState(!1), { getCategoryName: v } = Ne(), C = 3, f = t.length > C, x = t.length - C;
|
|
1188
|
+
let w = t;
|
|
1189
|
+
return f && (w = t.map((g) => ({
|
|
1155
1190
|
...g,
|
|
1156
1191
|
category: d.default_categories[g.top_level_category_guid]?.replace(
|
|
1157
1192
|
/&/g,
|
|
1158
1193
|
"&"
|
|
1159
|
-
) ??
|
|
1194
|
+
) ?? v(g.top_level_category_guid)
|
|
1160
1195
|
})).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(N, { children: [
|
|
1161
1196
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1162
|
-
|
|
1197
|
+
P,
|
|
1163
1198
|
{
|
|
1164
1199
|
onClick: () => b(!0),
|
|
1165
1200
|
size: "small",
|
|
@@ -1189,7 +1224,7 @@ const Wo = ({ total: t }) => {
|
|
|
1189
1224
|
},
|
|
1190
1225
|
children: [
|
|
1191
1226
|
/* @__PURE__ */ e(p, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
|
|
1192
|
-
|
|
1227
|
+
on,
|
|
1193
1228
|
{
|
|
1194
1229
|
categoryGuid: g.top_level_category_guid || "",
|
|
1195
1230
|
merchantGuid: g.merchant_guid || "",
|
|
@@ -1219,7 +1254,7 @@ const Wo = ({ total: t }) => {
|
|
|
1219
1254
|
/* @__PURE__ */ e(I, { variant: "caption", children: r(g.date) })
|
|
1220
1255
|
] })
|
|
1221
1256
|
] }),
|
|
1222
|
-
/* @__PURE__ */ e(D, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children:
|
|
1257
|
+
/* @__PURE__ */ e(D, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: $(g.amount, "0,0.00") })
|
|
1223
1258
|
]
|
|
1224
1259
|
},
|
|
1225
1260
|
g.guid || y
|
|
@@ -1230,14 +1265,14 @@ const Wo = ({ total: t }) => {
|
|
|
1230
1265
|
)) }),
|
|
1231
1266
|
f && /* @__PURE__ */ i(N, { children: [
|
|
1232
1267
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1233
|
-
|
|
1268
|
+
P,
|
|
1234
1269
|
{
|
|
1235
1270
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
1236
1271
|
onClick: () => h(!0),
|
|
1237
1272
|
size: "small",
|
|
1238
1273
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1239
1274
|
children: /* @__PURE__ */ i(I, { bold: !0, variant: "body1", children: [
|
|
1240
|
-
|
|
1275
|
+
x,
|
|
1241
1276
|
" ",
|
|
1242
1277
|
c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1243
1278
|
] })
|
|
@@ -1249,17 +1284,17 @@ const Wo = ({ total: t }) => {
|
|
|
1249
1284
|
isOpen: _,
|
|
1250
1285
|
onClose: () => h(!1),
|
|
1251
1286
|
title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1252
|
-
children: /* @__PURE__ */ e(
|
|
1287
|
+
children: /* @__PURE__ */ e(Kn, { transaction: w })
|
|
1253
1288
|
}
|
|
1254
1289
|
)
|
|
1255
1290
|
] })
|
|
1256
1291
|
] });
|
|
1257
|
-
},
|
|
1292
|
+
}, qo = () => {
|
|
1258
1293
|
const [t, o] = m.useState(!0), {
|
|
1259
1294
|
finstrong: {
|
|
1260
1295
|
key_indicators_spend: { pay_bills_on_time_drawer: n }
|
|
1261
1296
|
}
|
|
1262
|
-
} =
|
|
1297
|
+
} = S(), { getSpendingFeeTransactions: r, allTransactions: s } = B();
|
|
1263
1298
|
return m.useEffect(() => {
|
|
1264
1299
|
r().finally(() => o(!1));
|
|
1265
1300
|
}, []), t ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e(N, { children: s.spendingFee.length === 0 ? /* @__PURE__ */ i(
|
|
@@ -1274,7 +1309,7 @@ const Wo = ({ total: t }) => {
|
|
|
1274
1309
|
width: "100%"
|
|
1275
1310
|
},
|
|
1276
1311
|
children: [
|
|
1277
|
-
/* @__PURE__ */ e(
|
|
1312
|
+
/* @__PURE__ */ e(ln, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1278
1313
|
/* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1279
1314
|
/* @__PURE__ */ e(X, { children: n.pay_bills_on_time_zero_fees_title }),
|
|
1280
1315
|
/* @__PURE__ */ e(D, { variant: "subtitle1", children: n.pay_bills_on_time_zero_fees_description })
|
|
@@ -1296,16 +1331,16 @@ const Wo = ({ total: t }) => {
|
|
|
1296
1331
|
{
|
|
1297
1332
|
amountColor: "text.primary",
|
|
1298
1333
|
amountPosition: "flex-start",
|
|
1299
|
-
formatDate: (a) =>
|
|
1300
|
-
secondaryIcon: /* @__PURE__ */ e(
|
|
1334
|
+
formatDate: (a) => $n(new Date(a * 1e3), En.MONTH_DAY),
|
|
1335
|
+
secondaryIcon: /* @__PURE__ */ e(dn, { color: "error", filled: !0, size: 12 }),
|
|
1301
1336
|
transactions: s.spendingFee
|
|
1302
1337
|
}
|
|
1303
1338
|
)
|
|
1304
1339
|
]
|
|
1305
1340
|
}
|
|
1306
1341
|
) });
|
|
1307
|
-
},
|
|
1308
|
-
const { healthScore: t } =
|
|
1342
|
+
}, Uo = k(qo), Qo = () => {
|
|
1343
|
+
const { healthScore: t } = B(), { finstrong: o } = S(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = Mn(t.spending_fee_transaction_count);
|
|
1309
1344
|
return /* @__PURE__ */ i(
|
|
1310
1345
|
p,
|
|
1311
1346
|
{
|
|
@@ -1318,7 +1353,7 @@ const Wo = ({ total: t }) => {
|
|
|
1318
1353
|
children: [
|
|
1319
1354
|
/* @__PURE__ */ e(D, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
|
|
1320
1355
|
/* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1321
|
-
/* @__PURE__ */ i(
|
|
1356
|
+
/* @__PURE__ */ i(Fe, { children: [
|
|
1322
1357
|
t.spending_fee_transaction_count,
|
|
1323
1358
|
" ",
|
|
1324
1359
|
r.pay_bills_on_time_sticky_fee_count
|
|
@@ -1328,8 +1363,8 @@ const Wo = ({ total: t }) => {
|
|
|
1328
1363
|
]
|
|
1329
1364
|
}
|
|
1330
1365
|
);
|
|
1331
|
-
},
|
|
1332
|
-
const { savingsAndCheckingAccountsBalance: t } = Se(), { finstrong: o } =
|
|
1366
|
+
}, Zo = k(Qo), Jo = () => {
|
|
1367
|
+
const { savingsAndCheckingAccountsBalance: t } = Se(), { finstrong: o } = S();
|
|
1333
1368
|
return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1334
1369
|
/* @__PURE__ */ e(
|
|
1335
1370
|
Ce,
|
|
@@ -1339,21 +1374,21 @@ const Wo = ({ total: t }) => {
|
|
|
1339
1374
|
}
|
|
1340
1375
|
),
|
|
1341
1376
|
/* @__PURE__ */ e(
|
|
1342
|
-
|
|
1377
|
+
Bt,
|
|
1343
1378
|
{
|
|
1344
|
-
loadAccounts: [
|
|
1379
|
+
loadAccounts: [Ee.SAVINGS, Ee.CHECKING],
|
|
1345
1380
|
loadMoreLabel: o.more_accounts
|
|
1346
1381
|
}
|
|
1347
1382
|
)
|
|
1348
1383
|
] });
|
|
1349
|
-
},
|
|
1350
|
-
const { finstrong: t } =
|
|
1384
|
+
}, er = k(Jo), tr = () => {
|
|
1385
|
+
const { finstrong: t } = S(), {
|
|
1351
1386
|
isSpendingInitialized: o,
|
|
1352
1387
|
healthScore: n,
|
|
1353
1388
|
allTransactions: r,
|
|
1354
1389
|
loadSpendTransactions: s,
|
|
1355
1390
|
loadDebtSpend: a
|
|
1356
|
-
} =
|
|
1391
|
+
} = B();
|
|
1357
1392
|
m.useEffect(() => {
|
|
1358
1393
|
o || (s().finally(), a().finally());
|
|
1359
1394
|
}, [o]);
|
|
@@ -1371,8 +1406,8 @@ const Wo = ({ total: t }) => {
|
|
|
1371
1406
|
),
|
|
1372
1407
|
/* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: l })
|
|
1373
1408
|
] }) : /* @__PURE__ */ e(Q, {});
|
|
1374
|
-
},
|
|
1375
|
-
const [t, o] = m.useState(0), { finstrong: n } =
|
|
1409
|
+
}, nr = k(tr), or = () => {
|
|
1410
|
+
const [t, o] = m.useState(0), { finstrong: n } = S();
|
|
1376
1411
|
return /* @__PURE__ */ i(N, { children: [
|
|
1377
1412
|
/* @__PURE__ */ i(Y, { children: [
|
|
1378
1413
|
/* @__PURE__ */ i(
|
|
@@ -1405,13 +1440,13 @@ const Wo = ({ total: t }) => {
|
|
|
1405
1440
|
]
|
|
1406
1441
|
}
|
|
1407
1442
|
),
|
|
1408
|
-
/* @__PURE__ */ e(le, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(
|
|
1409
|
-
/* @__PURE__ */ e(le, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(
|
|
1443
|
+
/* @__PURE__ */ e(le, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(er, {}) }),
|
|
1444
|
+
/* @__PURE__ */ e(le, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(nr, {}) })
|
|
1410
1445
|
] }),
|
|
1411
1446
|
/* @__PURE__ */ e(Ye, { chartFor: "savingsOverTime" })
|
|
1412
1447
|
] });
|
|
1413
|
-
},
|
|
1414
|
-
const { finstrong: t } =
|
|
1448
|
+
}, rr = k(or), ar = () => {
|
|
1449
|
+
const { finstrong: t } = S(), { healthScore: o } = B(), n = o.months_of_cash_on_hand, r = gt(n ? n * 30 : null), s = 183 / 6, a = Math.floor(n), l = Math.round((n - a) * s), c = n / 6 * 100;
|
|
1415
1450
|
return /* @__PURE__ */ e(
|
|
1416
1451
|
We,
|
|
1417
1452
|
{
|
|
@@ -1460,8 +1495,8 @@ const Wo = ({ total: t }) => {
|
|
|
1460
1495
|
value: V(t.key_indicators_save.drawer_progress_bar_value, a, l)
|
|
1461
1496
|
}
|
|
1462
1497
|
);
|
|
1463
|
-
},
|
|
1464
|
-
const { healthScore: t } =
|
|
1498
|
+
}, ir = k(ar), sr = () => {
|
|
1499
|
+
const { healthScore: t } = B(), { finstrong: o } = S(), n = Oe(t.debt_to_income_ratio), r = yt(n);
|
|
1465
1500
|
return /* @__PURE__ */ e(
|
|
1466
1501
|
We,
|
|
1467
1502
|
{
|
|
@@ -1537,11 +1572,11 @@ const Wo = ({ total: t }) => {
|
|
|
1537
1572
|
percentage: `${n}%`
|
|
1538
1573
|
}
|
|
1539
1574
|
],
|
|
1540
|
-
value:
|
|
1575
|
+
value: $(t.ninety_day_debt_spend, "0,0.00")
|
|
1541
1576
|
}
|
|
1542
1577
|
);
|
|
1543
|
-
},
|
|
1544
|
-
const { healthScore: t, allTransactions: o } =
|
|
1578
|
+
}, cr = k(sr), lr = () => {
|
|
1579
|
+
const { healthScore: t, allTransactions: o } = B(), { connect: n, finstrong: r } = S(), [s, a] = m.useState(!1);
|
|
1545
1580
|
return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1546
1581
|
/* @__PURE__ */ e(
|
|
1547
1582
|
Ce,
|
|
@@ -1555,7 +1590,7 @@ const Wo = ({ total: t }) => {
|
|
|
1555
1590
|
// TODO: Need to add More Transactions functionality
|
|
1556
1591
|
/* @__PURE__ */ e($e, { transactions: o.income.map((l) => l.transaction) })
|
|
1557
1592
|
) : /* @__PURE__ */ e(
|
|
1558
|
-
|
|
1593
|
+
P,
|
|
1559
1594
|
{
|
|
1560
1595
|
onClick: () => {
|
|
1561
1596
|
a(!0);
|
|
@@ -1573,8 +1608,8 @@ const Wo = ({ total: t }) => {
|
|
|
1573
1608
|
}
|
|
1574
1609
|
)
|
|
1575
1610
|
] });
|
|
1576
|
-
},
|
|
1577
|
-
const { allTransactions: t, healthScore: o } =
|
|
1611
|
+
}, dr = k(lr), pr = () => {
|
|
1612
|
+
const { allTransactions: t, healthScore: o } = B(), { connect: n, finstrong: r } = S(), [s, a] = m.useState(!1);
|
|
1578
1613
|
return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1579
1614
|
/* @__PURE__ */ e(
|
|
1580
1615
|
Ce,
|
|
@@ -1594,7 +1629,7 @@ const Wo = ({ total: t }) => {
|
|
|
1594
1629
|
}
|
|
1595
1630
|
)
|
|
1596
1631
|
) : /* @__PURE__ */ e(
|
|
1597
|
-
|
|
1632
|
+
P,
|
|
1598
1633
|
{
|
|
1599
1634
|
onClick: () => {
|
|
1600
1635
|
a(!0);
|
|
@@ -1612,22 +1647,22 @@ const Wo = ({ total: t }) => {
|
|
|
1612
1647
|
}
|
|
1613
1648
|
)
|
|
1614
1649
|
] });
|
|
1615
|
-
},
|
|
1650
|
+
}, _r = k(pr), ur = ({
|
|
1616
1651
|
color: t,
|
|
1617
1652
|
data: o,
|
|
1618
1653
|
series: n,
|
|
1619
1654
|
style: r,
|
|
1620
1655
|
...s
|
|
1621
1656
|
}) => {
|
|
1622
|
-
const a =
|
|
1657
|
+
const a = z(), l = m.useRef(null), c = m.useRef(null), [d, _] = m.useState(r.width || 0);
|
|
1623
1658
|
m.useLayoutEffect(() => {
|
|
1624
1659
|
_(r.width || 0);
|
|
1625
1660
|
}, [r.width]), m.useLayoutEffect(() => {
|
|
1626
1661
|
const f = new ResizeObserver(() => {
|
|
1627
1662
|
window.requestAnimationFrame(() => {
|
|
1628
1663
|
if (l.current) {
|
|
1629
|
-
const { width:
|
|
1630
|
-
g && g.setAttribute("transform", `translate(${
|
|
1664
|
+
const { width: x } = l.current.getBoundingClientRect(), w = x / 2, g = l.current.querySelector("text");
|
|
1665
|
+
g && g.setAttribute("transform", `translate(${w}, -8)`);
|
|
1631
1666
|
}
|
|
1632
1667
|
});
|
|
1633
1668
|
});
|
|
@@ -1635,12 +1670,12 @@ const Wo = ({ total: t }) => {
|
|
|
1635
1670
|
l.current && f.unobserve(l.current);
|
|
1636
1671
|
};
|
|
1637
1672
|
}, []);
|
|
1638
|
-
const { formattedComparison: h, formattedMain: u } = o[n.index], b = n.type === 0 ? u : h,
|
|
1673
|
+
const { formattedComparison: h, formattedMain: u } = o[n.index], b = n.type === 0 ? u : h, v = {
|
|
1639
1674
|
...r,
|
|
1640
1675
|
transition: "all 0.3s ease-in-out"
|
|
1641
1676
|
}, C = `translate(${d / 2}, -5)`;
|
|
1642
1677
|
return /* @__PURE__ */ i("g", { children: [
|
|
1643
|
-
/* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style:
|
|
1678
|
+
/* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style: v }),
|
|
1644
1679
|
/* @__PURE__ */ e(
|
|
1645
1680
|
"text",
|
|
1646
1681
|
{
|
|
@@ -1657,10 +1692,10 @@ const Wo = ({ total: t }) => {
|
|
|
1657
1692
|
}
|
|
1658
1693
|
)
|
|
1659
1694
|
] });
|
|
1660
|
-
},
|
|
1695
|
+
}, Ae = (t, o = 1e3) => {
|
|
1661
1696
|
const n = Math.abs(t) >= o ? "0.[0]a" : "0";
|
|
1662
|
-
return
|
|
1663
|
-
},
|
|
1697
|
+
return $(t, n);
|
|
1698
|
+
}, Pt = ({
|
|
1664
1699
|
chartFor: t,
|
|
1665
1700
|
data: o,
|
|
1666
1701
|
title: n,
|
|
@@ -1671,38 +1706,38 @@ const Wo = ({ total: t }) => {
|
|
|
1671
1706
|
totalComparison: c,
|
|
1672
1707
|
totalMain: d
|
|
1673
1708
|
}) => {
|
|
1674
|
-
const _ =
|
|
1709
|
+
const _ = z(), h = Un(_.breakpoints.down("xs")), u = m.useMemo(
|
|
1675
1710
|
() => o.sort((g, y) => g.month - y.month).map((g) => {
|
|
1676
|
-
const y =
|
|
1711
|
+
const y = Dn(g.month), A = {
|
|
1677
1712
|
spending_vs_income: {
|
|
1678
1713
|
main: g.standard_spend,
|
|
1679
1714
|
comparison: g.income,
|
|
1680
|
-
formattedMain:
|
|
1681
|
-
formattedComparison:
|
|
1715
|
+
formattedMain: Ae(g.standard_spend),
|
|
1716
|
+
formattedComparison: Ae(g.income)
|
|
1682
1717
|
},
|
|
1683
1718
|
debt_payment_vs_income: {
|
|
1684
1719
|
main: g.income,
|
|
1685
1720
|
comparison: g.debt_spend,
|
|
1686
|
-
formattedMain:
|
|
1687
|
-
formattedComparison:
|
|
1721
|
+
formattedMain: Ae(g.income),
|
|
1722
|
+
formattedComparison: Ae(g.debt_spend)
|
|
1688
1723
|
}
|
|
1689
1724
|
};
|
|
1690
1725
|
return {
|
|
1691
1726
|
label: y,
|
|
1692
|
-
|
|
1727
|
+
...A[t]
|
|
1693
1728
|
};
|
|
1694
1729
|
}),
|
|
1695
1730
|
[o, t]
|
|
1696
1731
|
), b = {
|
|
1697
1732
|
dataKey: "label",
|
|
1698
1733
|
scaleType: "band"
|
|
1699
|
-
},
|
|
1734
|
+
}, v = Math.max(...u.map((g) => Math.max(g.main, g.comparison))), f = Math.min(...u.map((g) => Math.min(g.main, g.comparison))) === 0 && v === 0 ? 100 : Math.ceil(v * 1.2 / 1e3) * 1e3, x = f / 3, w = {
|
|
1700
1735
|
scaleType: "linear",
|
|
1701
1736
|
min: 0,
|
|
1702
1737
|
max: f,
|
|
1703
1738
|
tickNumber: 4,
|
|
1704
|
-
tickMinStep:
|
|
1705
|
-
valueFormatter: (g) => g === 0 ? "$0" :
|
|
1739
|
+
tickMinStep: x,
|
|
1740
|
+
valueFormatter: (g) => g === 0 ? "$0" : $(g, "0.[0]a")
|
|
1706
1741
|
};
|
|
1707
1742
|
return /* @__PURE__ */ i(Y, { children: [
|
|
1708
1743
|
/* @__PURE__ */ i(
|
|
@@ -1720,7 +1755,7 @@ const Wo = ({ total: t }) => {
|
|
|
1720
1755
|
children: [
|
|
1721
1756
|
/* @__PURE__ */ e(X, { children: n }),
|
|
1722
1757
|
r && /* @__PURE__ */ e(
|
|
1723
|
-
|
|
1758
|
+
P,
|
|
1724
1759
|
{
|
|
1725
1760
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
1726
1761
|
onClick: s,
|
|
@@ -1780,7 +1815,7 @@ const Wo = ({ total: t }) => {
|
|
|
1780
1815
|
] })
|
|
1781
1816
|
] }),
|
|
1782
1817
|
/* @__PURE__ */ i(
|
|
1783
|
-
|
|
1818
|
+
Zn,
|
|
1784
1819
|
{
|
|
1785
1820
|
colors: [
|
|
1786
1821
|
`${_.palette.chartMono.chartMono3}`,
|
|
@@ -1794,18 +1829,18 @@ const Wo = ({ total: t }) => {
|
|
|
1794
1829
|
{ dataKey: "comparison", type: "bar" }
|
|
1795
1830
|
],
|
|
1796
1831
|
xAxis: [b],
|
|
1797
|
-
yAxis: [
|
|
1832
|
+
yAxis: [w],
|
|
1798
1833
|
children: [
|
|
1799
1834
|
/* @__PURE__ */ e(
|
|
1800
|
-
|
|
1835
|
+
Qn,
|
|
1801
1836
|
{
|
|
1802
1837
|
slots: {
|
|
1803
1838
|
bar: (g) => {
|
|
1804
|
-
const { ownerState: y,
|
|
1839
|
+
const { ownerState: y, ...A } = g;
|
|
1805
1840
|
return /* @__PURE__ */ e(
|
|
1806
|
-
|
|
1841
|
+
ur,
|
|
1807
1842
|
{
|
|
1808
|
-
|
|
1843
|
+
...A,
|
|
1809
1844
|
color: y.color,
|
|
1810
1845
|
data: u,
|
|
1811
1846
|
series: {
|
|
@@ -1824,7 +1859,7 @@ const Wo = ({ total: t }) => {
|
|
|
1824
1859
|
}
|
|
1825
1860
|
),
|
|
1826
1861
|
/* @__PURE__ */ e(
|
|
1827
|
-
|
|
1862
|
+
Jn,
|
|
1828
1863
|
{
|
|
1829
1864
|
sx: () => ({
|
|
1830
1865
|
".MuiChartsAxis-line": {
|
|
@@ -1844,7 +1879,7 @@ const Wo = ({ total: t }) => {
|
|
|
1844
1879
|
}
|
|
1845
1880
|
),
|
|
1846
1881
|
/* @__PURE__ */ e(
|
|
1847
|
-
|
|
1882
|
+
eo,
|
|
1848
1883
|
{
|
|
1849
1884
|
sx: () => ({
|
|
1850
1885
|
".MuiChartsAxis-line": {
|
|
@@ -1868,8 +1903,8 @@ const Wo = ({ total: t }) => {
|
|
|
1868
1903
|
)
|
|
1869
1904
|
] })
|
|
1870
1905
|
] });
|
|
1871
|
-
},
|
|
1872
|
-
const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } =
|
|
1906
|
+
}, hr = () => {
|
|
1907
|
+
const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = B(), [s, a] = m.useState(0), { finstrong: l } = S();
|
|
1873
1908
|
if (m.useEffect(() => {
|
|
1874
1909
|
t || (o().finally(), n().finally());
|
|
1875
1910
|
}, [t]), !t) return /* @__PURE__ */ e(Q, {});
|
|
@@ -1917,7 +1952,7 @@ const Wo = ({ total: t }) => {
|
|
|
1917
1952
|
index: 0,
|
|
1918
1953
|
name: "income-details",
|
|
1919
1954
|
value: s,
|
|
1920
|
-
children: /* @__PURE__ */ e(
|
|
1955
|
+
children: /* @__PURE__ */ e(dr, {})
|
|
1921
1956
|
}
|
|
1922
1957
|
),
|
|
1923
1958
|
/* @__PURE__ */ e(
|
|
@@ -1927,12 +1962,12 @@ const Wo = ({ total: t }) => {
|
|
|
1927
1962
|
index: 1,
|
|
1928
1963
|
name: "debt-payment-details",
|
|
1929
1964
|
value: s,
|
|
1930
|
-
children: /* @__PURE__ */ e(
|
|
1965
|
+
children: /* @__PURE__ */ e(_r, {})
|
|
1931
1966
|
}
|
|
1932
1967
|
)
|
|
1933
1968
|
] }),
|
|
1934
1969
|
c ? /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(
|
|
1935
|
-
|
|
1970
|
+
Pt,
|
|
1936
1971
|
{
|
|
1937
1972
|
chartFor: "debt_payment_vs_income",
|
|
1938
1973
|
data: r,
|
|
@@ -1941,7 +1976,7 @@ const Wo = ({ total: t }) => {
|
|
|
1941
1976
|
title: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
|
|
1942
1977
|
}
|
|
1943
1978
|
) }) : /* @__PURE__ */ e(
|
|
1944
|
-
|
|
1979
|
+
Le,
|
|
1945
1980
|
{
|
|
1946
1981
|
header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
|
|
1947
1982
|
icon: "multiline_chart",
|
|
@@ -1963,8 +1998,8 @@ const Wo = ({ total: t }) => {
|
|
|
1963
1998
|
),
|
|
1964
1999
|
/* @__PURE__ */ e(Ye, { chartFor: "debtOverTime" })
|
|
1965
2000
|
] });
|
|
1966
|
-
},
|
|
1967
|
-
const { healthScore: t } =
|
|
2001
|
+
}, mr = k(hr), gr = () => {
|
|
2002
|
+
const { healthScore: t } = B(), { finstrong: o } = S(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, a = bt(n), l = {
|
|
1968
2003
|
GOOD: [{ percentage: `${r}%` }],
|
|
1969
2004
|
FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
1970
2005
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
@@ -1984,7 +2019,7 @@ const Wo = ({ total: t }) => {
|
|
|
1984
2019
|
},
|
|
1985
2020
|
children: [
|
|
1986
2021
|
/* @__PURE__ */ i(I, { variant: "body2", children: [
|
|
1987
|
-
t.ninety_day_income <= 0 ? "-" :
|
|
2022
|
+
t.ninety_day_income <= 0 ? "-" : $(t.ninety_day_income, "0,0.00"),
|
|
1988
2023
|
" ",
|
|
1989
2024
|
o?.key_indicators_spend.spend_less_than_you_make_drawer.income
|
|
1990
2025
|
] }),
|
|
@@ -1999,33 +2034,33 @@ const Wo = ({ total: t }) => {
|
|
|
1999
2034
|
label: o?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
|
|
2000
2035
|
status: a,
|
|
2001
2036
|
statusBarData: l,
|
|
2002
|
-
value: s ? "$0" :
|
|
2037
|
+
value: s ? "$0" : $(t.ninety_day_spend, "0,0.00")
|
|
2003
2038
|
}
|
|
2004
2039
|
);
|
|
2005
|
-
},
|
|
2006
|
-
const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ne(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: a } =
|
|
2040
|
+
}, yr = k(gr), br = () => {
|
|
2041
|
+
const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ne(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: a } = B(), { appDataStore: l } = Rn(), { finstrong: c, goals: d, spending: _ } = S(), h = z(), [u, b] = m.useState("");
|
|
2007
2042
|
m.useEffect(() => {
|
|
2008
2043
|
r(
|
|
2009
2044
|
t,
|
|
2010
|
-
|
|
2011
|
-
|
|
2045
|
+
Dt(/* @__PURE__ */ new Date()),
|
|
2046
|
+
It(/* @__PURE__ */ new Date())
|
|
2012
2047
|
).finally();
|
|
2013
2048
|
}, [t]);
|
|
2014
|
-
const
|
|
2015
|
-
() =>
|
|
2049
|
+
const v = m.useMemo(
|
|
2050
|
+
() => to(o, d, h, n),
|
|
2016
2051
|
[o, n]
|
|
2017
|
-
), C = (
|
|
2018
|
-
b(u ===
|
|
2019
|
-
}, { totalSpending: f, totalIncome:
|
|
2020
|
-
(
|
|
2021
|
-
totalSpending:
|
|
2022
|
-
totalIncome:
|
|
2052
|
+
), C = (w) => {
|
|
2053
|
+
b(u === w ? "" : w);
|
|
2054
|
+
}, { totalSpending: f, totalIncome: x } = m.useMemo(() => s?.reduce(
|
|
2055
|
+
(w, { standard_spend: g = 0, income: y = 0 }) => ({
|
|
2056
|
+
totalSpending: w.totalSpending + g,
|
|
2057
|
+
totalIncome: w.totalIncome + y
|
|
2023
2058
|
}),
|
|
2024
2059
|
{ totalSpending: 0, totalIncome: 0 }
|
|
2025
2060
|
), [s]);
|
|
2026
2061
|
return /* @__PURE__ */ i(p, { sx: { gap: 24 }, children: [
|
|
2027
|
-
|
|
2028
|
-
|
|
2062
|
+
x > 0 || f > 0 ? /* @__PURE__ */ e(
|
|
2063
|
+
Pt,
|
|
2029
2064
|
{
|
|
2030
2065
|
...l.appData.client_profile?.allow_trends_widget && {
|
|
2031
2066
|
buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
@@ -2036,11 +2071,11 @@ const Wo = ({ total: t }) => {
|
|
|
2036
2071
|
legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2037
2072
|
onClick: () => a("trends")(),
|
|
2038
2073
|
title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2039
|
-
totalComparison:
|
|
2040
|
-
totalMain:
|
|
2074
|
+
totalComparison: $(x, "0,0.00"),
|
|
2075
|
+
totalMain: $(f, "0,0.00")
|
|
2041
2076
|
}
|
|
2042
2077
|
) : /* @__PURE__ */ e(
|
|
2043
|
-
|
|
2078
|
+
Le,
|
|
2044
2079
|
{
|
|
2045
2080
|
header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
|
|
2046
2081
|
icon: "multiline_chart",
|
|
@@ -2060,7 +2095,7 @@ const Wo = ({ total: t }) => {
|
|
|
2060
2095
|
variant: "no-buttons"
|
|
2061
2096
|
}
|
|
2062
2097
|
),
|
|
2063
|
-
|
|
2098
|
+
v.donutData.length > 0 ? /* @__PURE__ */ i(
|
|
2064
2099
|
Y,
|
|
2065
2100
|
{
|
|
2066
2101
|
sx: {
|
|
@@ -2083,7 +2118,7 @@ const Wo = ({ total: t }) => {
|
|
|
2083
2118
|
children: [
|
|
2084
2119
|
/* @__PURE__ */ e(X, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2085
2120
|
l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2086
|
-
|
|
2121
|
+
P,
|
|
2087
2122
|
{
|
|
2088
2123
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
2089
2124
|
onClick: () => a("spending")(),
|
|
@@ -2105,18 +2140,18 @@ const Wo = ({ total: t }) => {
|
|
|
2105
2140
|
sx: { flexDirection: "row", gap: 12, justifyContent: "center", pb: 32, pt: 16, px: 24 },
|
|
2106
2141
|
children: [
|
|
2107
2142
|
/* @__PURE__ */ e(
|
|
2108
|
-
|
|
2143
|
+
no,
|
|
2109
2144
|
{
|
|
2110
|
-
data:
|
|
2145
|
+
data: v,
|
|
2111
2146
|
onSelected: C,
|
|
2112
2147
|
selectedId: u,
|
|
2113
2148
|
totalLabel: _.total_spending
|
|
2114
2149
|
}
|
|
2115
2150
|
),
|
|
2116
2151
|
/* @__PURE__ */ e(
|
|
2117
|
-
|
|
2152
|
+
oo,
|
|
2118
2153
|
{
|
|
2119
|
-
data:
|
|
2154
|
+
data: v,
|
|
2120
2155
|
onSelected: C,
|
|
2121
2156
|
selectedId: u
|
|
2122
2157
|
}
|
|
@@ -2127,7 +2162,7 @@ const Wo = ({ total: t }) => {
|
|
|
2127
2162
|
]
|
|
2128
2163
|
}
|
|
2129
2164
|
) : /* @__PURE__ */ e(
|
|
2130
|
-
|
|
2165
|
+
Le,
|
|
2131
2166
|
{
|
|
2132
2167
|
header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
|
|
2133
2168
|
icon: "donut_small",
|
|
@@ -2148,17 +2183,17 @@ const Wo = ({ total: t }) => {
|
|
|
2148
2183
|
}
|
|
2149
2184
|
)
|
|
2150
2185
|
] });
|
|
2151
|
-
},
|
|
2186
|
+
}, fr = k(br), xr = ({
|
|
2152
2187
|
drawerFor: t,
|
|
2153
2188
|
isOpen: o,
|
|
2154
2189
|
onClose: n
|
|
2155
2190
|
}) => {
|
|
2156
|
-
const { finstrong: r } =
|
|
2191
|
+
const { finstrong: r } = S(), a = {
|
|
2157
2192
|
spendLessThanYouMake: {
|
|
2158
2193
|
title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2159
2194
|
description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
2160
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2161
|
-
content: /* @__PURE__ */ e(
|
|
2195
|
+
stickyComponent: /* @__PURE__ */ e(yr, {}),
|
|
2196
|
+
content: /* @__PURE__ */ e(fr, {}),
|
|
2162
2197
|
drawerType: "connectDrawer",
|
|
2163
2198
|
connectTitle: r.connect_your_accounts,
|
|
2164
2199
|
connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
@@ -2166,16 +2201,16 @@ const Wo = ({ total: t }) => {
|
|
|
2166
2201
|
payBillsOnTime: {
|
|
2167
2202
|
title: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
|
|
2168
2203
|
description: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
|
|
2169
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2170
|
-
content: /* @__PURE__ */ e(
|
|
2204
|
+
stickyComponent: /* @__PURE__ */ e(Zo, {}),
|
|
2205
|
+
content: /* @__PURE__ */ e(Uo, {}),
|
|
2171
2206
|
drawerType: "connectDrawer",
|
|
2172
2207
|
connectTitle: r.connect_your_accounts,
|
|
2173
2208
|
connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2174
2209
|
},
|
|
2175
2210
|
maintainEmergencySavings: {
|
|
2176
|
-
content: /* @__PURE__ */ e(
|
|
2211
|
+
content: /* @__PURE__ */ e(jo, {}),
|
|
2177
2212
|
description: r.maintain_emergency_savings_description,
|
|
2178
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2213
|
+
stickyComponent: /* @__PURE__ */ e(Yo, {}),
|
|
2179
2214
|
title: r.maintain_emergency_savings_title,
|
|
2180
2215
|
drawerType: "connectDrawer",
|
|
2181
2216
|
connectTitle: r.connect_your_accounts,
|
|
@@ -2184,30 +2219,30 @@ const Wo = ({ total: t }) => {
|
|
|
2184
2219
|
haveManageableDebt: {
|
|
2185
2220
|
title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
|
|
2186
2221
|
description: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
|
|
2187
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2188
|
-
content: /* @__PURE__ */ e(
|
|
2222
|
+
stickyComponent: /* @__PURE__ */ e(cr, {}),
|
|
2223
|
+
content: /* @__PURE__ */ e(mr, {}),
|
|
2189
2224
|
drawerType: "connectDrawer",
|
|
2190
2225
|
connectTitle: r.dont_see_all_your_accounts,
|
|
2191
2226
|
connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2192
2227
|
},
|
|
2193
2228
|
haveAGoodCreditScore: {
|
|
2194
|
-
title: /* @__PURE__ */ e(
|
|
2229
|
+
title: /* @__PURE__ */ e(Wo, {}),
|
|
2195
2230
|
description: r.credit_score_description,
|
|
2196
2231
|
stickyComponent: null,
|
|
2197
|
-
content: /* @__PURE__ */ e(
|
|
2232
|
+
content: /* @__PURE__ */ e(Bo, {})
|
|
2198
2233
|
},
|
|
2199
2234
|
saveEnoughToLiveOn: {
|
|
2200
2235
|
title: r.key_indicators_save.drawer_title,
|
|
2201
2236
|
description: r.key_indicators_save.drawer_description,
|
|
2202
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2203
|
-
content: /* @__PURE__ */ e(
|
|
2237
|
+
stickyComponent: /* @__PURE__ */ e(ir, {}),
|
|
2238
|
+
content: /* @__PURE__ */ e(rr, {}),
|
|
2204
2239
|
drawerType: "connectDrawer",
|
|
2205
2240
|
connectTitle: r.dont_see_all_your_accounts,
|
|
2206
2241
|
connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2207
2242
|
}
|
|
2208
2243
|
}[t];
|
|
2209
2244
|
return /* @__PURE__ */ e(
|
|
2210
|
-
|
|
2245
|
+
Lt,
|
|
2211
2246
|
{
|
|
2212
2247
|
connectDescription: a?.connectDescription,
|
|
2213
2248
|
connectTitle: a?.connectTitle,
|
|
@@ -2222,13 +2257,13 @@ const Wo = ({ total: t }) => {
|
|
|
2222
2257
|
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: a.content })
|
|
2223
2258
|
}
|
|
2224
2259
|
);
|
|
2225
|
-
},
|
|
2260
|
+
}, Sr = k(xr), xe = ({
|
|
2226
2261
|
drawerFor: t,
|
|
2227
2262
|
title: o,
|
|
2228
2263
|
description: n,
|
|
2229
2264
|
cardState: r = "MISSING"
|
|
2230
2265
|
}) => {
|
|
2231
|
-
const { finstrong: s } =
|
|
2266
|
+
const { finstrong: s } = S(), [a, l] = m.useState(!1), c = (d) => {
|
|
2232
2267
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), l(!0));
|
|
2233
2268
|
};
|
|
2234
2269
|
return /* @__PURE__ */ i(N, { children: [
|
|
@@ -2264,7 +2299,7 @@ const Wo = ({ total: t }) => {
|
|
|
2264
2299
|
}
|
|
2265
2300
|
),
|
|
2266
2301
|
/* @__PURE__ */ e(
|
|
2267
|
-
|
|
2302
|
+
Sr,
|
|
2268
2303
|
{
|
|
2269
2304
|
drawerFor: t,
|
|
2270
2305
|
isOpen: a,
|
|
@@ -2272,9 +2307,9 @@ const Wo = ({ total: t }) => {
|
|
|
2272
2307
|
}
|
|
2273
2308
|
)
|
|
2274
2309
|
] });
|
|
2275
|
-
},
|
|
2276
|
-
const { finstrong: t } =
|
|
2277
|
-
const c =
|
|
2310
|
+
}, Cr = () => {
|
|
2311
|
+
const { finstrong: t } = S(), { key_indicators_spend: o } = t, { healthScore: n } = B(), r = (l) => {
|
|
2312
|
+
const c = bt(l), d = {
|
|
2278
2313
|
GOOD: o.ratio_good_description,
|
|
2279
2314
|
FAIR: o.ratio_fair_description,
|
|
2280
2315
|
OFF_TRACK: o.ratio_off_track_description,
|
|
@@ -2286,7 +2321,7 @@ const Wo = ({ total: t }) => {
|
|
|
2286
2321
|
title: o.ratio_card_title
|
|
2287
2322
|
};
|
|
2288
2323
|
}, { spendToIncomeRatio: s, spendFeeCount: a } = m.useMemo(() => {
|
|
2289
|
-
const l = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, c = r(l), d =
|
|
2324
|
+
const l = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, c = r(l), d = In(
|
|
2290
2325
|
n.spending_fee_transaction_count,
|
|
2291
2326
|
o
|
|
2292
2327
|
);
|
|
@@ -2317,9 +2352,9 @@ const Wo = ({ total: t }) => {
|
|
|
2317
2352
|
}
|
|
2318
2353
|
)
|
|
2319
2354
|
] });
|
|
2320
|
-
},
|
|
2321
|
-
const { healthScore: t } =
|
|
2322
|
-
const d =
|
|
2355
|
+
}, vr = k(Cr), wr = () => {
|
|
2356
|
+
const { healthScore: t } = B(), { finstrong: o } = S(), { key_indicators_save: n } = o, r = (c) => {
|
|
2357
|
+
const d = gt(c), _ = {
|
|
2323
2358
|
GOOD: n.days_of_cash_good_description,
|
|
2324
2359
|
FAIR: n.days_of_cash_fair_description,
|
|
2325
2360
|
OFF_TRACK: n.days_of_cash_off_track_description,
|
|
@@ -2331,7 +2366,7 @@ const Wo = ({ total: t }) => {
|
|
|
2331
2366
|
title: n.days_of_cash_title
|
|
2332
2367
|
};
|
|
2333
2368
|
}, s = (c) => {
|
|
2334
|
-
const d =
|
|
2369
|
+
const d = mt(c), _ = {
|
|
2335
2370
|
GOOD: n.emergency_savings_good_description,
|
|
2336
2371
|
FAIR: n.emergency_savings_fair_description,
|
|
2337
2372
|
OFF_TRACK: n.emergency_savings_off_track_description,
|
|
@@ -2340,7 +2375,7 @@ const Wo = ({ total: t }) => {
|
|
|
2340
2375
|
let h;
|
|
2341
2376
|
return d === "FAIR" && c !== null ? h = V(
|
|
2342
2377
|
_[d],
|
|
2343
|
-
|
|
2378
|
+
$(c, "0,0.00")
|
|
2344
2379
|
) : h = _[d], {
|
|
2345
2380
|
cardState: d,
|
|
2346
2381
|
description: h,
|
|
@@ -2375,9 +2410,9 @@ const Wo = ({ total: t }) => {
|
|
|
2375
2410
|
}
|
|
2376
2411
|
)
|
|
2377
2412
|
] });
|
|
2378
|
-
},
|
|
2379
|
-
const { healthScore: t } =
|
|
2380
|
-
const _ =
|
|
2413
|
+
}, kr = k(wr), Mr = () => {
|
|
2414
|
+
const { healthScore: t } = B(), { finstrong: o } = S(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (d) => {
|
|
2415
|
+
const _ = yt(d), h = {
|
|
2381
2416
|
GOOD: n.manage_debit_good_description,
|
|
2382
2417
|
FAIR: n.manage_debit_fair_description,
|
|
2383
2418
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
@@ -2389,7 +2424,7 @@ const Wo = ({ total: t }) => {
|
|
|
2389
2424
|
title: n.manage_debit_title
|
|
2390
2425
|
};
|
|
2391
2426
|
}, a = (d) => {
|
|
2392
|
-
const _ =
|
|
2427
|
+
const _ = ht(d), h = {
|
|
2393
2428
|
GOOD: n.credit_score_good_description,
|
|
2394
2429
|
FAIR: n.credit_score_fair_description,
|
|
2395
2430
|
OFF_TRACK: n.credit_score_off_track_description,
|
|
@@ -2427,8 +2462,8 @@ const Wo = ({ total: t }) => {
|
|
|
2427
2462
|
}
|
|
2428
2463
|
)
|
|
2429
2464
|
] });
|
|
2430
|
-
},
|
|
2431
|
-
const [t, o] = m.useState(0), { finstrong: n } =
|
|
2465
|
+
}, Dr = k(Mr), Ir = () => {
|
|
2466
|
+
const [t, o] = m.useState(0), { finstrong: n } = S();
|
|
2432
2467
|
return /* @__PURE__ */ i(N, { children: [
|
|
2433
2468
|
/* @__PURE__ */ i(
|
|
2434
2469
|
Ve,
|
|
@@ -2451,7 +2486,7 @@ const Wo = ({ total: t }) => {
|
|
|
2451
2486
|
ce,
|
|
2452
2487
|
{
|
|
2453
2488
|
"aria-controls": "spend-details-tabpanel-0",
|
|
2454
|
-
icon: /* @__PURE__ */ e(
|
|
2489
|
+
icon: /* @__PURE__ */ e(pt, { sx: { mr: 8 } }),
|
|
2455
2490
|
iconPosition: "start",
|
|
2456
2491
|
id: "spend-details-tab-0",
|
|
2457
2492
|
label: n.key_indicators_spend.title,
|
|
@@ -2462,7 +2497,7 @@ const Wo = ({ total: t }) => {
|
|
|
2462
2497
|
ce,
|
|
2463
2498
|
{
|
|
2464
2499
|
"aria-controls": "save-details-tabpanel-1",
|
|
2465
|
-
icon: /* @__PURE__ */ e(
|
|
2500
|
+
icon: /* @__PURE__ */ e(pn, { sx: { mr: 8 } }),
|
|
2466
2501
|
iconPosition: "start",
|
|
2467
2502
|
id: "save-details-tab-1",
|
|
2468
2503
|
label: n.key_indicators_save.title,
|
|
@@ -2473,7 +2508,7 @@ const Wo = ({ total: t }) => {
|
|
|
2473
2508
|
ce,
|
|
2474
2509
|
{
|
|
2475
2510
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2476
|
-
icon: /* @__PURE__ */ e(
|
|
2511
|
+
icon: /* @__PURE__ */ e(_n, { sx: { mr: 8 } }),
|
|
2477
2512
|
iconPosition: "start",
|
|
2478
2513
|
id: "borrow-details-tab-2",
|
|
2479
2514
|
label: n.key_indicators_borrow.title,
|
|
@@ -2483,20 +2518,20 @@ const Wo = ({ total: t }) => {
|
|
|
2483
2518
|
]
|
|
2484
2519
|
}
|
|
2485
2520
|
),
|
|
2486
|
-
/* @__PURE__ */ e(le, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(
|
|
2487
|
-
/* @__PURE__ */ e(le, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(
|
|
2488
|
-
/* @__PURE__ */ e(le, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(
|
|
2521
|
+
/* @__PURE__ */ e(le, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(vr, {}) }),
|
|
2522
|
+
/* @__PURE__ */ e(le, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(kr, {}) }),
|
|
2523
|
+
/* @__PURE__ */ e(le, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Dr, {}) })
|
|
2489
2524
|
] });
|
|
2490
|
-
},
|
|
2491
|
-
const { finstrong: o } =
|
|
2525
|
+
}, Tr = k(Ir), Ar = ({ onClick: t }) => {
|
|
2526
|
+
const { finstrong: o } = S(), { isCopyLoaded: n } = U();
|
|
2492
2527
|
return n ? /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2493
|
-
/* @__PURE__ */ e(
|
|
2528
|
+
/* @__PURE__ */ e(un, { size: 48 }),
|
|
2494
2529
|
/* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2495
2530
|
/* @__PURE__ */ e(X, { children: o.missing_data_title }),
|
|
2496
2531
|
/* @__PURE__ */ e(D, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
|
|
2497
2532
|
] }),
|
|
2498
2533
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
2499
|
-
|
|
2534
|
+
P,
|
|
2500
2535
|
{
|
|
2501
2536
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
2502
2537
|
onClick: t,
|
|
@@ -2512,7 +2547,7 @@ const Wo = ({ total: t }) => {
|
|
|
2512
2547
|
}
|
|
2513
2548
|
) })
|
|
2514
2549
|
] }) : /* @__PURE__ */ e(Q, {});
|
|
2515
|
-
},
|
|
2550
|
+
}, Or = k(Ar), Rr = ({
|
|
2516
2551
|
firstDay: t,
|
|
2517
2552
|
frequency: o,
|
|
2518
2553
|
secondDay: n,
|
|
@@ -2523,22 +2558,22 @@ const Wo = ({ total: t }) => {
|
|
|
2523
2558
|
setSecondDay: c,
|
|
2524
2559
|
transaction: d
|
|
2525
2560
|
}) => {
|
|
2526
|
-
const { finstrong: _ } =
|
|
2561
|
+
const { finstrong: _ } = S();
|
|
2527
2562
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2528
2563
|
/* @__PURE__ */ i(p, { children: [
|
|
2529
2564
|
!!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((h, u, b) => {
|
|
2530
2565
|
if (u.guid === d.guid) return h;
|
|
2531
|
-
const
|
|
2566
|
+
const v = Vn(b, r), C = Xn(b, r);
|
|
2532
2567
|
return h.push(
|
|
2533
2568
|
/* @__PURE__ */ i(m.Fragment, { children: [
|
|
2534
|
-
|
|
2535
|
-
/* @__PURE__ */ e(
|
|
2569
|
+
v && /* @__PURE__ */ e(Yn, { children: Mt(u.date) }),
|
|
2570
|
+
/* @__PURE__ */ e(qn, { transaction: u }),
|
|
2536
2571
|
/* @__PURE__ */ e(de, { sx: { ml: C ? 44 : 0 } })
|
|
2537
2572
|
] }, u.guid)
|
|
2538
2573
|
), h;
|
|
2539
2574
|
}, []) }),
|
|
2540
2575
|
/* @__PURE__ */ e(
|
|
2541
|
-
|
|
2576
|
+
so,
|
|
2542
2577
|
{
|
|
2543
2578
|
firstDay: t,
|
|
2544
2579
|
frequency: o,
|
|
@@ -2551,21 +2586,21 @@ const Wo = ({ total: t }) => {
|
|
|
2551
2586
|
)
|
|
2552
2587
|
] }),
|
|
2553
2588
|
/* @__PURE__ */ e(M, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2554
|
-
|
|
2589
|
+
P,
|
|
2555
2590
|
{
|
|
2556
2591
|
fullWidth: !0,
|
|
2557
|
-
onClick: () => s({ step:
|
|
2558
|
-
startIcon: /* @__PURE__ */ e(
|
|
2592
|
+
onClick: () => s({ step: R.MonthlyIncome, type: "main" }),
|
|
2593
|
+
startIcon: /* @__PURE__ */ e(_t, {}),
|
|
2559
2594
|
children: _.onboarding_add_more_income
|
|
2560
2595
|
}
|
|
2561
2596
|
) })
|
|
2562
2597
|
] });
|
|
2563
|
-
},
|
|
2564
|
-
const { finstrong: n } =
|
|
2598
|
+
}, Lr = k(Rr), Fr = ({ selectedDate: t, setSelectedDate: o }) => {
|
|
2599
|
+
const { finstrong: n } = S(), r = z(), s = (a) => {
|
|
2565
2600
|
o(Math.floor(new Date(a).getTime() / 1e3));
|
|
2566
2601
|
};
|
|
2567
|
-
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2568
|
-
|
|
2602
|
+
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(po, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
2603
|
+
_o,
|
|
2569
2604
|
{
|
|
2570
2605
|
disableFuture: !0,
|
|
2571
2606
|
label: n.onboarding_select_date,
|
|
@@ -2594,8 +2629,8 @@ const Wo = ({ total: t }) => {
|
|
|
2594
2629
|
value: t ? new Date(t * 1e3) : null
|
|
2595
2630
|
}
|
|
2596
2631
|
) }) });
|
|
2597
|
-
},
|
|
2598
|
-
const { finstrong: n } =
|
|
2632
|
+
}, Br = k(Fr), Pr = ({ creditScore: t, setCreditScore: o }) => {
|
|
2633
|
+
const { finstrong: n } = S(), r = !isNaN(t);
|
|
2599
2634
|
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2600
2635
|
Re,
|
|
2601
2636
|
{
|
|
@@ -2611,7 +2646,7 @@ const Wo = ({ total: t }) => {
|
|
|
2611
2646
|
value: r ? t : ""
|
|
2612
2647
|
}
|
|
2613
2648
|
) });
|
|
2614
|
-
},
|
|
2649
|
+
}, Wr = k(Pr), Wt = ({ value: t, completeCopy: o }) => /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
2615
2650
|
/* @__PURE__ */ e(p, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
|
|
2616
2651
|
M,
|
|
2617
2652
|
{
|
|
@@ -2629,7 +2664,7 @@ const Wo = ({ total: t }) => {
|
|
|
2629
2664
|
"% ",
|
|
2630
2665
|
o
|
|
2631
2666
|
] })
|
|
2632
|
-
] }),
|
|
2667
|
+
] }), $r = ({
|
|
2633
2668
|
completeCopy: t,
|
|
2634
2669
|
primaryText: o,
|
|
2635
2670
|
secondaryText: n,
|
|
@@ -2639,66 +2674,66 @@ const Wo = ({ total: t }) => {
|
|
|
2639
2674
|
/* @__PURE__ */ e(X, { children: o }),
|
|
2640
2675
|
/* @__PURE__ */ e(D, { variant: "subtitle1", children: n })
|
|
2641
2676
|
] }),
|
|
2642
|
-
/* @__PURE__ */ e(
|
|
2643
|
-
] }),
|
|
2644
|
-
step:
|
|
2677
|
+
/* @__PURE__ */ e(Wt, { completeCopy: t, value: r })
|
|
2678
|
+
] }), st = {
|
|
2679
|
+
step: R.ConnectAccounts,
|
|
2645
2680
|
type: "main"
|
|
2646
|
-
},
|
|
2647
|
-
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } =
|
|
2648
|
-
|
|
2649
|
-
), [y,
|
|
2681
|
+
}, Er = ({ isOpen: t, onClose: o }) => {
|
|
2682
|
+
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = B(), { finstrong: s } = S(), { setSelectedAccounts: a } = U(), { addRepeatingTransaction: l, setDateRange: c } = je(), { filter: d, setFilter: _, transactions: h } = Ln(), { user: u, userProfile: b, updateUser: v, updateUserProfile: C } = ee(), [f, x] = m.useState(u.credit_score || 0), [w, g] = m.useState(
|
|
2683
|
+
st
|
|
2684
|
+
), [y, A] = m.useState(1), [L, T] = m.useState(wt.EveryMonth), [W, E] = m.useState([]), [G, _e] = m.useState(!1), [ue, te] = m.useState(!1), [j, ve] = m.useState(u.birthday), [H, we] = m.useState(15), [K, ae] = m.useState("");
|
|
2650
2685
|
m.useEffect(() => {
|
|
2651
|
-
c({ start:
|
|
2686
|
+
c({ start: Dt(at()), end: It(at()) });
|
|
2652
2687
|
}, []), m.useEffect(() => {
|
|
2653
2688
|
_({
|
|
2654
|
-
accounts: n.map((
|
|
2689
|
+
accounts: n.map((O) => O.guid),
|
|
2655
2690
|
dateRange: {
|
|
2656
|
-
start:
|
|
2691
|
+
start: io(/* @__PURE__ */ new Date(), 90),
|
|
2657
2692
|
end: /* @__PURE__ */ new Date()
|
|
2658
2693
|
},
|
|
2659
|
-
custom:
|
|
2694
|
+
custom: it
|
|
2660
2695
|
}), a(n);
|
|
2661
2696
|
}, [n]);
|
|
2662
2697
|
const he = m.useMemo(
|
|
2663
|
-
() => h.find((
|
|
2698
|
+
() => h.find((O) => O.guid === K),
|
|
2664
2699
|
[K, h]
|
|
2665
2700
|
), me = m.useMemo(() => ({
|
|
2666
|
-
[
|
|
2667
|
-
[
|
|
2668
|
-
[
|
|
2669
|
-
[
|
|
2670
|
-
})[
|
|
2671
|
-
const { step:
|
|
2672
|
-
let
|
|
2673
|
-
return
|
|
2674
|
-
}, [
|
|
2701
|
+
[R.ConnectAccounts]: !0,
|
|
2702
|
+
[R.MonthlyIncome]: !!K,
|
|
2703
|
+
[R.Birthday]: !!u.birthday || !!j,
|
|
2704
|
+
[R.CreditScore]: !!u.credit_score || !!f
|
|
2705
|
+
})[w.step], [f, w, j, K, u]), q = n.length > 0, $t = m.useMemo(() => {
|
|
2706
|
+
const { step: O } = w;
|
|
2707
|
+
let F = 0;
|
|
2708
|
+
return O >= R.MonthlyIncome && q && F++, O >= R.Birthday && W.length && F++, O >= R.CreditScore && (u.birthday || u.credit_score) && F++, F;
|
|
2709
|
+
}, [w.step, q, W.length, u.birthday, u.credit_score]), Et = (O) => {
|
|
2675
2710
|
_({
|
|
2676
2711
|
...d,
|
|
2677
|
-
custom: (
|
|
2712
|
+
custom: (F) => O ? lo(F, O) : it(F)
|
|
2678
2713
|
});
|
|
2679
|
-
},
|
|
2680
|
-
[
|
|
2681
|
-
main: q ? /* @__PURE__ */ e(
|
|
2714
|
+
}, zt = {
|
|
2715
|
+
[R.ConnectAccounts]: {
|
|
2716
|
+
main: q ? /* @__PURE__ */ e(Ft, { shouldShowBalance: !1 }) : null,
|
|
2682
2717
|
mainActionContent: q ? s.onboarding_next : s.onboarding_add_accounts,
|
|
2683
2718
|
primaryText: s.connect_your_accounts,
|
|
2684
2719
|
secondaryText: s.onboarding_connect_your_accounts_secondary
|
|
2685
2720
|
},
|
|
2686
|
-
[
|
|
2721
|
+
[R.MonthlyIncome]: {
|
|
2687
2722
|
detail: /* @__PURE__ */ e(
|
|
2688
|
-
|
|
2723
|
+
Lr,
|
|
2689
2724
|
{
|
|
2690
2725
|
firstDay: y,
|
|
2691
2726
|
frequency: L,
|
|
2692
|
-
incomeTransactions:
|
|
2727
|
+
incomeTransactions: W,
|
|
2693
2728
|
secondDay: H,
|
|
2694
|
-
setCurrentStep: (
|
|
2695
|
-
g(
|
|
2696
|
-
if (
|
|
2697
|
-
const
|
|
2698
|
-
return
|
|
2729
|
+
setCurrentStep: (O) => {
|
|
2730
|
+
g(O), E((F) => {
|
|
2731
|
+
if (F.some((ie) => ie.guid === K)) return F.filter((ie) => ie.guid !== K);
|
|
2732
|
+
const Te = h.find((ie) => ie.guid === K);
|
|
2733
|
+
return Te ? [...F, { ...Te, firstDay: y, frequency: L, secondDay: H }] : F;
|
|
2699
2734
|
});
|
|
2700
2735
|
},
|
|
2701
|
-
setFirstDay:
|
|
2736
|
+
setFirstDay: A,
|
|
2702
2737
|
setFrequency: T,
|
|
2703
2738
|
setSecondDay: we,
|
|
2704
2739
|
transaction: he
|
|
@@ -2706,11 +2741,11 @@ const Wo = ({ total: t }) => {
|
|
|
2706
2741
|
),
|
|
2707
2742
|
detailActionContent: s.onboarding_confirm_income,
|
|
2708
2743
|
main: /* @__PURE__ */ e(
|
|
2709
|
-
|
|
2744
|
+
co,
|
|
2710
2745
|
{
|
|
2711
|
-
onSearch:
|
|
2712
|
-
onSelected: (
|
|
2713
|
-
g({ step:
|
|
2746
|
+
onSearch: Et,
|
|
2747
|
+
onSelected: (O) => {
|
|
2748
|
+
g({ step: R.MonthlyIncome, type: "detail" }), ae(O);
|
|
2714
2749
|
}
|
|
2715
2750
|
}
|
|
2716
2751
|
),
|
|
@@ -2718,96 +2753,96 @@ const Wo = ({ total: t }) => {
|
|
|
2718
2753
|
primaryText: s.onboarding_add_income_primary,
|
|
2719
2754
|
secondaryText: s.onboarding_add_income_secondary
|
|
2720
2755
|
},
|
|
2721
|
-
[
|
|
2722
|
-
main: /* @__PURE__ */ e(
|
|
2756
|
+
[R.Birthday]: {
|
|
2757
|
+
main: /* @__PURE__ */ e(Br, { selectedDate: j, setSelectedDate: ve }),
|
|
2723
2758
|
mainActionContent: s.onboarding_next,
|
|
2724
2759
|
primaryText: s.onboarding_birthday_primary,
|
|
2725
2760
|
secondaryText: s.onboarding_birthday_secondary
|
|
2726
2761
|
},
|
|
2727
|
-
[
|
|
2728
|
-
main: /* @__PURE__ */ e(
|
|
2762
|
+
[R.CreditScore]: {
|
|
2763
|
+
main: /* @__PURE__ */ e(Wr, { creditScore: f, setCreditScore: x }),
|
|
2729
2764
|
mainActionContent: s.onboarding_next,
|
|
2730
2765
|
primaryText: s.onboarding_credit_score_primary,
|
|
2731
2766
|
secondaryText: s.onboarding_credit_score_secondary
|
|
2732
2767
|
}
|
|
2733
2768
|
}, qe = () => {
|
|
2734
|
-
g(
|
|
2769
|
+
g(st), _e(!1), ae(""), o();
|
|
2735
2770
|
}, Ue = async () => {
|
|
2736
|
-
_e(!0), await
|
|
2737
|
-
},
|
|
2738
|
-
if (
|
|
2771
|
+
_e(!0), await jt(W), await r(), await C({ ...b, has_completed_finstrong_onboarding: !0 }), qe();
|
|
2772
|
+
}, Gt = () => {
|
|
2773
|
+
if (w.step === R.CreditScore) {
|
|
2739
2774
|
Ue();
|
|
2740
2775
|
return;
|
|
2741
2776
|
}
|
|
2742
|
-
g({ step:
|
|
2743
|
-
},
|
|
2744
|
-
const { step:
|
|
2745
|
-
switch (
|
|
2746
|
-
case
|
|
2747
|
-
j && j !== u.birthday &&
|
|
2777
|
+
g({ step: w.step + 1, type: "main" });
|
|
2778
|
+
}, Ht = () => {
|
|
2779
|
+
const { step: O } = w, F = O + 1;
|
|
2780
|
+
switch (O) {
|
|
2781
|
+
case R.Birthday:
|
|
2782
|
+
j && j !== u.birthday && v({ ...u, birthday: j });
|
|
2748
2783
|
break;
|
|
2749
|
-
case
|
|
2750
|
-
f && f !== u.credit_score &&
|
|
2784
|
+
case R.CreditScore:
|
|
2785
|
+
f && f !== u.credit_score && v({ ...u, credit_score: f }), Ue();
|
|
2751
2786
|
return;
|
|
2752
|
-
case
|
|
2753
|
-
K &&
|
|
2787
|
+
case R.MonthlyIncome:
|
|
2788
|
+
K && W.findIndex(({ guid: ye }) => ye === K) === -1 && E((ye) => [
|
|
2754
2789
|
...ye,
|
|
2755
2790
|
{ ...he, firstDay: y, frequency: L, secondDay: H }
|
|
2756
2791
|
]);
|
|
2757
2792
|
break;
|
|
2758
|
-
case
|
|
2793
|
+
case R.ConnectAccounts:
|
|
2759
2794
|
if (!q) {
|
|
2760
2795
|
te(!0);
|
|
2761
2796
|
return;
|
|
2762
2797
|
}
|
|
2763
2798
|
break;
|
|
2764
2799
|
}
|
|
2765
|
-
|
|
2766
|
-
},
|
|
2767
|
-
const { step:
|
|
2768
|
-
if (
|
|
2769
|
-
g({ step:
|
|
2800
|
+
F in R && g({ step: F, type: "main" });
|
|
2801
|
+
}, Nt = () => {
|
|
2802
|
+
const { step: O, type: F } = w;
|
|
2803
|
+
if (F === "detail") {
|
|
2804
|
+
g({ step: O, type: "main" });
|
|
2770
2805
|
return;
|
|
2771
2806
|
}
|
|
2772
|
-
if (
|
|
2773
|
-
g({ step:
|
|
2807
|
+
if (O === R.Birthday && W.length) {
|
|
2808
|
+
g({ step: O - 1, type: "detail" });
|
|
2774
2809
|
return;
|
|
2775
2810
|
}
|
|
2776
|
-
|
|
2777
|
-
},
|
|
2778
|
-
for (const
|
|
2811
|
+
O > R.ConnectAccounts && g({ step: O - 1, type: "main" });
|
|
2812
|
+
}, jt = async (O) => {
|
|
2813
|
+
for (const F of O) {
|
|
2779
2814
|
const {
|
|
2780
2815
|
account_guid: ye,
|
|
2781
|
-
amount:
|
|
2816
|
+
amount: Te,
|
|
2782
2817
|
date: ie,
|
|
2783
|
-
description:
|
|
2784
|
-
feed_description:
|
|
2785
|
-
firstDay:
|
|
2818
|
+
description: Xt,
|
|
2819
|
+
feed_description: Yt,
|
|
2820
|
+
firstDay: qt,
|
|
2786
2821
|
frequency: Qe,
|
|
2787
|
-
secondDay:
|
|
2788
|
-
merchant_guid:
|
|
2789
|
-
payee:
|
|
2790
|
-
transaction_type:
|
|
2791
|
-
} =
|
|
2822
|
+
secondDay: Ut,
|
|
2823
|
+
merchant_guid: Qt,
|
|
2824
|
+
payee: Zt,
|
|
2825
|
+
transaction_type: Jt
|
|
2826
|
+
} = F, en = Nn(Qe, ao(ie)), tn = {
|
|
2792
2827
|
account_guid: ye,
|
|
2793
|
-
amount:
|
|
2828
|
+
amount: Te,
|
|
2794
2829
|
created_by: 0,
|
|
2795
|
-
description:
|
|
2796
|
-
merchant_guid:
|
|
2797
|
-
predicted_occurs_on:
|
|
2798
|
-
recurrence_day:
|
|
2830
|
+
description: Zt || Xt || Yt,
|
|
2831
|
+
merchant_guid: Qt,
|
|
2832
|
+
predicted_occurs_on: ro(en, { representation: "date" }),
|
|
2833
|
+
recurrence_day: qt,
|
|
2799
2834
|
recurrence_type: Qe,
|
|
2800
|
-
repeating_transaction_type:
|
|
2801
|
-
second_recurrence_day:
|
|
2802
|
-
transaction_type:
|
|
2835
|
+
repeating_transaction_type: kt.Income,
|
|
2836
|
+
second_recurrence_day: Ut,
|
|
2837
|
+
transaction_type: Jt,
|
|
2803
2838
|
user_guid: u.guid
|
|
2804
2839
|
};
|
|
2805
|
-
await l(
|
|
2840
|
+
await l(tn, F);
|
|
2806
2841
|
}
|
|
2807
|
-
}, ge =
|
|
2842
|
+
}, ge = zt[w.step], Ie = w.step === R.ConnectAccounts, Kt = {
|
|
2808
2843
|
fullWidth: !0,
|
|
2809
|
-
...Ie && !q && { startIcon: /* @__PURE__ */ e(
|
|
2810
|
-
},
|
|
2844
|
+
...Ie && !q && { startIcon: /* @__PURE__ */ e(_t, {}) }
|
|
2845
|
+
}, Vt = !Ie || Ie && !q;
|
|
2811
2846
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2812
2847
|
/* @__PURE__ */ e(
|
|
2813
2848
|
oe,
|
|
@@ -2817,34 +2852,34 @@ const Wo = ({ total: t }) => {
|
|
|
2817
2852
|
isOpen: t,
|
|
2818
2853
|
isPrimaryDisabled: !me,
|
|
2819
2854
|
onClose: qe,
|
|
2820
|
-
onSecondaryAction:
|
|
2821
|
-
primaryButtonProps:
|
|
2855
|
+
onSecondaryAction: Nt,
|
|
2856
|
+
primaryButtonProps: Kt,
|
|
2822
2857
|
primaryText: ge?.mainActionContent,
|
|
2823
2858
|
secondaryColor: "primary",
|
|
2824
2859
|
secondaryText: s.onboarding_back,
|
|
2825
2860
|
title: s.title,
|
|
2826
|
-
...!G && { onPrimaryAction:
|
|
2861
|
+
...!G && { onPrimaryAction: Ht },
|
|
2827
2862
|
children: /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2828
2863
|
G && /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2829
|
-
/* @__PURE__ */ e("img", { alt: "", src:
|
|
2830
|
-
/* @__PURE__ */ e(
|
|
2864
|
+
/* @__PURE__ */ e("img", { alt: "", src: Oo, style: { minHeight: 100, width: 211 } }),
|
|
2865
|
+
/* @__PURE__ */ e(Fe, { children: s.onboarding_calculate_primary }),
|
|
2831
2866
|
/* @__PURE__ */ e(D, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
|
|
2832
2867
|
] }),
|
|
2833
2868
|
ge && !G && /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2834
2869
|
/* @__PURE__ */ e(
|
|
2835
|
-
|
|
2870
|
+
$r,
|
|
2836
2871
|
{
|
|
2837
2872
|
completeCopy: s.complete,
|
|
2838
2873
|
primaryText: ge.primaryText,
|
|
2839
2874
|
secondaryText: ge.secondaryText,
|
|
2840
|
-
value:
|
|
2875
|
+
value: $t
|
|
2841
2876
|
}
|
|
2842
2877
|
),
|
|
2843
|
-
|
|
2878
|
+
w.type === "main" && /* @__PURE__ */ i(M, { sx: { bgcolor: "background.default" }, children: [
|
|
2844
2879
|
ge.main,
|
|
2845
|
-
|
|
2880
|
+
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 }) })
|
|
2846
2881
|
] }),
|
|
2847
|
-
|
|
2882
|
+
w.type === "detail" && ge.detail
|
|
2848
2883
|
] })
|
|
2849
2884
|
] })
|
|
2850
2885
|
}
|
|
@@ -2858,8 +2893,8 @@ const Wo = ({ total: t }) => {
|
|
|
2858
2893
|
}
|
|
2859
2894
|
)
|
|
2860
2895
|
] });
|
|
2861
|
-
},
|
|
2862
|
-
const { finstrong: t } =
|
|
2896
|
+
}, zr = k(Er), Gr = () => {
|
|
2897
|
+
const { finstrong: t } = S(), [o, n] = m.useState(!1);
|
|
2863
2898
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2864
2899
|
/* @__PURE__ */ i(
|
|
2865
2900
|
p,
|
|
@@ -2875,20 +2910,20 @@ const Wo = ({ total: t }) => {
|
|
|
2875
2910
|
},
|
|
2876
2911
|
children: [
|
|
2877
2912
|
/* @__PURE__ */ i(p, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
|
|
2878
|
-
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(
|
|
2913
|
+
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(hn, { size: 72 }) }),
|
|
2879
2914
|
/* @__PURE__ */ i(p, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2880
|
-
/* @__PURE__ */ e(
|
|
2915
|
+
/* @__PURE__ */ e(Fe, { children: t.onboarding_title }),
|
|
2881
2916
|
/* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
|
|
2882
2917
|
] })
|
|
2883
2918
|
] }),
|
|
2884
|
-
/* @__PURE__ */ e(
|
|
2919
|
+
/* @__PURE__ */ e(P, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
|
|
2885
2920
|
]
|
|
2886
2921
|
}
|
|
2887
2922
|
),
|
|
2888
|
-
/* @__PURE__ */ e(
|
|
2923
|
+
/* @__PURE__ */ e(zr, { isOpen: o, onClose: () => n(!1) })
|
|
2889
2924
|
] });
|
|
2890
|
-
},
|
|
2891
|
-
const { finstrong: n } =
|
|
2925
|
+
}, Hr = ({ isOpen: t, onClose: o }) => {
|
|
2926
|
+
const { finstrong: n } = S(), r = z(), { updateUser: s, user: a } = ee(), [l, c] = m.useState(a.birthday), d = (h) => {
|
|
2892
2927
|
c(Math.floor(new Date(h).getTime() / 1e3));
|
|
2893
2928
|
};
|
|
2894
2929
|
return /* @__PURE__ */ e(
|
|
@@ -2902,8 +2937,8 @@ const Wo = ({ total: t }) => {
|
|
|
2902
2937
|
},
|
|
2903
2938
|
onSecondaryAction: o,
|
|
2904
2939
|
title: n.date_of_birth,
|
|
2905
|
-
children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(
|
|
2906
|
-
|
|
2940
|
+
children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(mo, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
2941
|
+
uo,
|
|
2907
2942
|
{
|
|
2908
2943
|
disableFuture: !0,
|
|
2909
2944
|
onChange: d,
|
|
@@ -2943,20 +2978,20 @@ const Wo = ({ total: t }) => {
|
|
|
2943
2978
|
) }) })
|
|
2944
2979
|
}
|
|
2945
2980
|
);
|
|
2946
|
-
},
|
|
2981
|
+
}, Nr = k(Hr), jr = ({ isOpen: t, onClose: o }) => {
|
|
2947
2982
|
const { visibleFinstrongAccounts: n } = Se(), {
|
|
2948
2983
|
accounts: r,
|
|
2949
2984
|
common: s,
|
|
2950
2985
|
finstrong: a,
|
|
2951
2986
|
recurring: l
|
|
2952
|
-
} =
|
|
2953
|
-
const { repeating_transaction_type:
|
|
2954
|
-
return
|
|
2955
|
-
}, 0), [h, u] = m.useState(null),
|
|
2987
|
+
} = S(), { repeatingTransactions: c } = je(), { user: d } = ee(), _ = c.reduce((C, f) => {
|
|
2988
|
+
const { repeating_transaction_type: x, transactions: w, recurrence_type: g, amount: y } = f;
|
|
2989
|
+
return x === kt.Income && (w.length > 0 || g === wt.EveryYear) ? C + y : C;
|
|
2990
|
+
}, 0), [h, u] = m.useState(null), v = [
|
|
2956
2991
|
{
|
|
2957
2992
|
dynamicCopy: a.add_profile_item,
|
|
2958
2993
|
fallbackLabel: a.monthly_income,
|
|
2959
|
-
icon: /* @__PURE__ */ e(
|
|
2994
|
+
icon: /* @__PURE__ */ e(mn, {}),
|
|
2960
2995
|
key: ne.MonthlyIncome,
|
|
2961
2996
|
label: a.monthly_income,
|
|
2962
2997
|
value: _
|
|
@@ -2964,7 +2999,7 @@ const Wo = ({ total: t }) => {
|
|
|
2964
2999
|
{
|
|
2965
3000
|
dynamicCopy: a.add_profile_item,
|
|
2966
3001
|
fallbackLabel: a.date_of_birth,
|
|
2967
|
-
icon: /* @__PURE__ */ e(
|
|
3002
|
+
icon: /* @__PURE__ */ e(gn, {}),
|
|
2968
3003
|
key: ne.DateOfBirth,
|
|
2969
3004
|
label: a.date_of_birth,
|
|
2970
3005
|
value: d.birthday
|
|
@@ -2972,14 +3007,14 @@ const Wo = ({ total: t }) => {
|
|
|
2972
3007
|
{
|
|
2973
3008
|
dynamicCopy: a.add_profile_item,
|
|
2974
3009
|
fallbackLabel: a.credit_score,
|
|
2975
|
-
icon: /* @__PURE__ */ e(
|
|
3010
|
+
icon: /* @__PURE__ */ e(pt, {}),
|
|
2976
3011
|
key: ne.CreditScore,
|
|
2977
3012
|
label: a.credit_score,
|
|
2978
3013
|
value: d.credit_score
|
|
2979
3014
|
},
|
|
2980
3015
|
{
|
|
2981
3016
|
fallbackLabel: a.connect_your_accounts,
|
|
2982
|
-
icon: /* @__PURE__ */ e(
|
|
3017
|
+
icon: /* @__PURE__ */ e(dt, {}),
|
|
2983
3018
|
key: ne.Connections,
|
|
2984
3019
|
label: a.connections,
|
|
2985
3020
|
value: n.length > 0 ? V(
|
|
@@ -2988,7 +3023,7 @@ const Wo = ({ total: t }) => {
|
|
|
2988
3023
|
n.length > 1 ? a.accounts : a.account
|
|
2989
3024
|
) : void 0
|
|
2990
3025
|
}
|
|
2991
|
-
].map((C) =>
|
|
3026
|
+
].map((C) => Tn(C));
|
|
2992
3027
|
return /* @__PURE__ */ i(oe, { isOpen: t, onClose: o, title: a.financial_profile, children: [
|
|
2993
3028
|
/* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2994
3029
|
/* @__PURE__ */ i(p, { sx: { gap: 20, p: 24 }, children: [
|
|
@@ -2997,14 +3032,14 @@ const Wo = ({ total: t }) => {
|
|
|
2997
3032
|
/* @__PURE__ */ e(D, { children: a.financial_profile_description })
|
|
2998
3033
|
] }),
|
|
2999
3034
|
/* @__PURE__ */ e(
|
|
3000
|
-
|
|
3035
|
+
Wt,
|
|
3001
3036
|
{
|
|
3002
3037
|
completeCopy: a.complete,
|
|
3003
|
-
value:
|
|
3038
|
+
value: v.reduce((C, f) => C + (f.isComplete ? 1 : 0), 0)
|
|
3004
3039
|
}
|
|
3005
3040
|
)
|
|
3006
3041
|
] }),
|
|
3007
|
-
/* @__PURE__ */ e(
|
|
3042
|
+
/* @__PURE__ */ e(An, { list: v, onClickItem: u }),
|
|
3008
3043
|
/* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
3009
3044
|
Be,
|
|
3010
3045
|
{
|
|
@@ -3023,13 +3058,13 @@ const Wo = ({ total: t }) => {
|
|
|
3023
3058
|
onClose: () => u(null),
|
|
3024
3059
|
shouldShowHeaderBorders: !1,
|
|
3025
3060
|
title: l.action_title,
|
|
3026
|
-
children: /* @__PURE__ */ e(
|
|
3061
|
+
children: /* @__PURE__ */ e(ho, {})
|
|
3027
3062
|
}
|
|
3028
3063
|
),
|
|
3029
|
-
/* @__PURE__ */ e(
|
|
3030
|
-
/* @__PURE__ */ e(
|
|
3064
|
+
/* @__PURE__ */ e(Nr, { isOpen: h === ne.DateOfBirth, onClose: () => u(null) }),
|
|
3065
|
+
/* @__PURE__ */ e(Rt, { isOpen: h === ne.CreditScore, onClose: () => u(null) }),
|
|
3031
3066
|
/* @__PURE__ */ e(
|
|
3032
|
-
|
|
3067
|
+
ft,
|
|
3033
3068
|
{
|
|
3034
3069
|
onClose: () => u(null),
|
|
3035
3070
|
showConnectionsWidget: h === ne.Connections,
|
|
@@ -3037,17 +3072,28 @@ const Wo = ({ total: t }) => {
|
|
|
3037
3072
|
}
|
|
3038
3073
|
)
|
|
3039
3074
|
] });
|
|
3040
|
-
},
|
|
3075
|
+
}, Kr = k(jr), ct = ({
|
|
3041
3076
|
content: t,
|
|
3042
3077
|
islast: o = !1
|
|
3043
|
-
}) => /* @__PURE__ */ i(
|
|
3044
|
-
/* @__PURE__ */ i(
|
|
3045
|
-
/* @__PURE__ */ e(
|
|
3046
|
-
!o && /* @__PURE__ */ e(
|
|
3078
|
+
}) => /* @__PURE__ */ i(bo, { sx: { minHeight: 0 }, children: [
|
|
3079
|
+
/* @__PURE__ */ i(vo, { children: [
|
|
3080
|
+
/* @__PURE__ */ e(Co, { sx: { bgcolor: "divider", boxShadow: "none", p: 2 } }),
|
|
3081
|
+
!o && /* @__PURE__ */ e(
|
|
3082
|
+
xo,
|
|
3083
|
+
{
|
|
3084
|
+
sx: {
|
|
3085
|
+
bgcolor: "background.paper",
|
|
3086
|
+
borderLeft: "1px solid",
|
|
3087
|
+
borderColor: "divider",
|
|
3088
|
+
borderRadius: 1,
|
|
3089
|
+
m: -4
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
)
|
|
3047
3093
|
] }),
|
|
3048
|
-
/* @__PURE__ */ e(
|
|
3049
|
-
] }),
|
|
3050
|
-
const { finstrong: o } =
|
|
3094
|
+
/* @__PURE__ */ e(So, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(D, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
3095
|
+
] }), Vr = ({ report: t }) => {
|
|
3096
|
+
const { finstrong: o } = S(), { score_history_drawer_timeline: n } = o, {
|
|
3051
3097
|
health_score_point_difference: r,
|
|
3052
3098
|
newer_credit_score: s,
|
|
3053
3099
|
older_credit_score: a,
|
|
@@ -3056,19 +3102,19 @@ const Wo = ({ total: t }) => {
|
|
|
3056
3102
|
older_health_score: d,
|
|
3057
3103
|
newer_health_score: _,
|
|
3058
3104
|
newer_score_calculated_at: h
|
|
3059
|
-
} = t, u =
|
|
3105
|
+
} = t, u = go(new Date(h), "MMM d"), b = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", v = () => r === 0 ? V(n.stayed_at, d) : r > 0 ? n.less_spending : n.more_spending, C = () => {
|
|
3060
3106
|
if (r === 0) return null;
|
|
3061
|
-
const f = r > 0 ? n.up_from : n.down_from,
|
|
3107
|
+
const f = r > 0 ? n.up_from : n.down_from, x = V(f, d, _);
|
|
3062
3108
|
return /* @__PURE__ */ i(N, { children: [
|
|
3063
3109
|
/* @__PURE__ */ e(
|
|
3064
|
-
|
|
3110
|
+
rn,
|
|
3065
3111
|
{
|
|
3066
3112
|
fill: !0,
|
|
3067
3113
|
name: "circle",
|
|
3068
3114
|
sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
|
|
3069
3115
|
}
|
|
3070
3116
|
),
|
|
3071
|
-
|
|
3117
|
+
x
|
|
3072
3118
|
] });
|
|
3073
3119
|
};
|
|
3074
3120
|
return /* @__PURE__ */ i(Y, { children: [
|
|
@@ -3102,7 +3148,7 @@ const Wo = ({ total: t }) => {
|
|
|
3102
3148
|
}
|
|
3103
3149
|
),
|
|
3104
3150
|
/* @__PURE__ */ i(p, { sx: { gap: 2, width: "80%" }, children: [
|
|
3105
|
-
/* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children:
|
|
3151
|
+
/* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children: v() }),
|
|
3106
3152
|
/* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3107
3153
|
u,
|
|
3108
3154
|
" ",
|
|
@@ -3115,10 +3161,10 @@ const Wo = ({ total: t }) => {
|
|
|
3115
3161
|
}
|
|
3116
3162
|
),
|
|
3117
3163
|
r !== 0 && /* @__PURE__ */ e(M, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ i(
|
|
3118
|
-
|
|
3164
|
+
yo,
|
|
3119
3165
|
{
|
|
3120
3166
|
sx: {
|
|
3121
|
-
[`& .${
|
|
3167
|
+
[`& .${fo.root}:before`]: {
|
|
3122
3168
|
flex: 0,
|
|
3123
3169
|
padding: 0
|
|
3124
3170
|
},
|
|
@@ -3127,7 +3173,7 @@ const Wo = ({ total: t }) => {
|
|
|
3127
3173
|
},
|
|
3128
3174
|
children: [
|
|
3129
3175
|
/* @__PURE__ */ e(
|
|
3130
|
-
|
|
3176
|
+
ct,
|
|
3131
3177
|
{
|
|
3132
3178
|
content: V(
|
|
3133
3179
|
n.spend_to_income_description,
|
|
@@ -3137,7 +3183,7 @@ const Wo = ({ total: t }) => {
|
|
|
3137
3183
|
}
|
|
3138
3184
|
),
|
|
3139
3185
|
/* @__PURE__ */ e(
|
|
3140
|
-
|
|
3186
|
+
ct,
|
|
3141
3187
|
{
|
|
3142
3188
|
content: V(
|
|
3143
3189
|
n.credit_score_description,
|
|
@@ -3151,32 +3197,42 @@ const Wo = ({ total: t }) => {
|
|
|
3151
3197
|
}
|
|
3152
3198
|
) })
|
|
3153
3199
|
] });
|
|
3154
|
-
},
|
|
3155
|
-
const n =
|
|
3200
|
+
}, Xr = k(Vr), Yr = ({ isOpen: t, onClose: o }) => {
|
|
3201
|
+
const n = z(), { finstrong: r } = S(), { isCopyLoaded: s, isInitialized: a } = U(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: _ } = B();
|
|
3156
3202
|
if (!s || !a) return /* @__PURE__ */ e(Q, {});
|
|
3157
3203
|
const h = Ge(c.health_score || 0, r), u = d.slice().reverse();
|
|
3158
3204
|
return /* @__PURE__ */ e(
|
|
3159
|
-
|
|
3205
|
+
Lt,
|
|
3160
3206
|
{
|
|
3161
|
-
additionalContent: /* @__PURE__ */ e(
|
|
3162
|
-
|
|
3207
|
+
additionalContent: /* @__PURE__ */ e(
|
|
3208
|
+
p,
|
|
3163
3209
|
{
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3210
|
+
sx: {
|
|
3211
|
+
backgroundColor: "background.paper",
|
|
3212
|
+
borderBottom: "1px solid",
|
|
3213
|
+
borderColor: "divider"
|
|
3214
|
+
},
|
|
3215
|
+
children: /* @__PURE__ */ e(
|
|
3216
|
+
Ke,
|
|
3217
|
+
{
|
|
3218
|
+
axisColor: n.palette.divider,
|
|
3219
|
+
baseline: "min",
|
|
3220
|
+
colors: [n.palette.primary.main],
|
|
3221
|
+
curveType: "natural",
|
|
3222
|
+
datasets: [l],
|
|
3223
|
+
height: 160,
|
|
3224
|
+
isGraphClippingXAxis: !0,
|
|
3225
|
+
labels: [r.key_indicators_label],
|
|
3226
|
+
margin: { top: 24, bottom: 6, right: 24, left: -17 },
|
|
3227
|
+
peerAverage: Math.round(_?.average_health_score?.average_health_score || 0),
|
|
3228
|
+
showArea: !0,
|
|
3229
|
+
showAverage: !0,
|
|
3230
|
+
title: r.peer_average,
|
|
3231
|
+
useCustomMark: !0
|
|
3232
|
+
}
|
|
3233
|
+
)
|
|
3178
3234
|
}
|
|
3179
|
-
)
|
|
3235
|
+
),
|
|
3180
3236
|
drawerTitle: r.score_history,
|
|
3181
3237
|
isOpen: t,
|
|
3182
3238
|
loadConnectAccountsCard: !1,
|
|
@@ -3186,15 +3242,13 @@ const Wo = ({ total: t }) => {
|
|
|
3186
3242
|
{
|
|
3187
3243
|
sx: {
|
|
3188
3244
|
backgroundColor: "background.paper",
|
|
3189
|
-
borderBottom: "1px solid",
|
|
3190
|
-
borderColor: "divider",
|
|
3191
3245
|
pb: 11,
|
|
3192
3246
|
pt: 8,
|
|
3193
3247
|
px: 24
|
|
3194
3248
|
},
|
|
3195
3249
|
children: /* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
|
|
3196
3250
|
/* @__PURE__ */ e(
|
|
3197
|
-
|
|
3251
|
+
Ot,
|
|
3198
3252
|
{
|
|
3199
3253
|
arcRadius: 24,
|
|
3200
3254
|
healthScore: c?.health_score,
|
|
@@ -3209,11 +3263,11 @@ const Wo = ({ total: t }) => {
|
|
|
3209
3263
|
] })
|
|
3210
3264
|
}
|
|
3211
3265
|
),
|
|
3212
|
-
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: u.map((b,
|
|
3266
|
+
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: u.map((b, v) => /* @__PURE__ */ e(Xr, { report: b }, v)) })
|
|
3213
3267
|
}
|
|
3214
3268
|
);
|
|
3215
|
-
},
|
|
3216
|
-
const o =
|
|
3269
|
+
}, qr = k(Yr), Ur = ({ copy: t }) => {
|
|
3270
|
+
const o = z(), n = [
|
|
3217
3271
|
o.palette.chartMono.chartMono5,
|
|
3218
3272
|
o.palette.chartMono.chartMono4,
|
|
3219
3273
|
o.palette.chartMono.chartMono3,
|
|
@@ -3272,20 +3326,20 @@ const Wo = ({ total: t }) => {
|
|
|
3272
3326
|
)) })
|
|
3273
3327
|
] })
|
|
3274
3328
|
] });
|
|
3275
|
-
},
|
|
3276
|
-
const { finstrong: n } =
|
|
3329
|
+
}, Qr = ({ isOpen: t, onClose: o }) => {
|
|
3330
|
+
const { finstrong: n } = S(), { isCopyLoaded: r } = U();
|
|
3277
3331
|
return r ? /* @__PURE__ */ e(oe, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
|
|
3278
3332
|
/* @__PURE__ */ i(p, { sx: { gap: 20 }, children: [
|
|
3279
3333
|
/* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
3280
3334
|
/* @__PURE__ */ e(X, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
|
|
3281
3335
|
/* @__PURE__ */ e(D, { variant: "subtitle1", children: n.finstrong_freedom_description })
|
|
3282
3336
|
] }),
|
|
3283
|
-
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
3337
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(Ur, { copy: n }) })
|
|
3284
3338
|
] }),
|
|
3285
3339
|
/* @__PURE__ */ i(p, { sx: { gap: 12 }, children: [
|
|
3286
3340
|
/* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
|
|
3287
3341
|
/* @__PURE__ */ i(
|
|
3288
|
-
|
|
3342
|
+
ze,
|
|
3289
3343
|
{
|
|
3290
3344
|
component: "ol",
|
|
3291
3345
|
sx: {
|
|
@@ -3325,7 +3379,7 @@ const Wo = ({ total: t }) => {
|
|
|
3325
3379
|
/* @__PURE__ */ i(p, { sx: { gap: 4 }, children: [
|
|
3326
3380
|
/* @__PURE__ */ e(I, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
|
|
3327
3381
|
/* @__PURE__ */ i(
|
|
3328
|
-
|
|
3382
|
+
ze,
|
|
3329
3383
|
{
|
|
3330
3384
|
component: "ol",
|
|
3331
3385
|
sx: {
|
|
@@ -3352,13 +3406,13 @@ const Wo = ({ total: t }) => {
|
|
|
3352
3406
|
)
|
|
3353
3407
|
] })
|
|
3354
3408
|
] }) }) : /* @__PURE__ */ e(Q, {});
|
|
3355
|
-
},
|
|
3356
|
-
const [t, o] = m.useState(!1), n =
|
|
3409
|
+
}, Zr = k(Qr), Jr = k(() => {
|
|
3410
|
+
const [t, o] = m.useState(!1), n = z(), [r, { width: s }] = St(), { finstrong: a } = S(), { isCopyLoaded: l, isInitialized: c } = U(), { healthScore: d, healthScoreChange: _ } = B(), h = n.palette.mode === "dark", u = Ge(d?.health_score, a);
|
|
3357
3411
|
return !l || !c ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ i(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
3358
3412
|
/* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3359
3413
|
/* @__PURE__ */ e(X, { children: a.financial_strength_header }),
|
|
3360
3414
|
/* @__PURE__ */ e(
|
|
3361
|
-
|
|
3415
|
+
P,
|
|
3362
3416
|
{
|
|
3363
3417
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
3364
3418
|
onClick: () => o(!0),
|
|
@@ -3385,7 +3439,7 @@ const Wo = ({ total: t }) => {
|
|
|
3385
3439
|
)
|
|
3386
3440
|
] }),
|
|
3387
3441
|
/* @__PURE__ */ e(p, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
|
|
3388
|
-
|
|
3442
|
+
Ot,
|
|
3389
3443
|
{
|
|
3390
3444
|
arcRadius: s <= 323 ? 72.5 : 154,
|
|
3391
3445
|
footerCenterContent: _,
|
|
@@ -3394,7 +3448,7 @@ const Wo = ({ total: t }) => {
|
|
|
3394
3448
|
}
|
|
3395
3449
|
) }),
|
|
3396
3450
|
d?.health_score ? /* @__PURE__ */ i(
|
|
3397
|
-
|
|
3451
|
+
wo,
|
|
3398
3452
|
{
|
|
3399
3453
|
sx: {
|
|
3400
3454
|
px: 16,
|
|
@@ -3409,9 +3463,9 @@ const Wo = ({ total: t }) => {
|
|
|
3409
3463
|
},
|
|
3410
3464
|
children: [
|
|
3411
3465
|
/* @__PURE__ */ e(
|
|
3412
|
-
|
|
3466
|
+
Mo,
|
|
3413
3467
|
{
|
|
3414
|
-
expandIcon: /* @__PURE__ */ e(
|
|
3468
|
+
expandIcon: /* @__PURE__ */ e(yn, { size: 20 }),
|
|
3415
3469
|
sx: {
|
|
3416
3470
|
"&.MuiAccordionSummary-root": {
|
|
3417
3471
|
minHeight: 0
|
|
@@ -3425,7 +3479,7 @@ const Wo = ({ total: t }) => {
|
|
|
3425
3479
|
children: /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
|
|
3426
3480
|
}
|
|
3427
3481
|
),
|
|
3428
|
-
/* @__PURE__ */ e(
|
|
3482
|
+
/* @__PURE__ */ e(ko, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(D, { variant: "subtitle1", children: u.scoreContent }) })
|
|
3429
3483
|
]
|
|
3430
3484
|
}
|
|
3431
3485
|
) : /* @__PURE__ */ e(
|
|
@@ -3450,44 +3504,44 @@ const Wo = ({ total: t }) => {
|
|
|
3450
3504
|
}
|
|
3451
3505
|
),
|
|
3452
3506
|
/* @__PURE__ */ e(
|
|
3453
|
-
|
|
3507
|
+
Zr,
|
|
3454
3508
|
{
|
|
3455
3509
|
isOpen: t,
|
|
3456
3510
|
onClose: () => o(!1)
|
|
3457
3511
|
}
|
|
3458
3512
|
)
|
|
3459
3513
|
] });
|
|
3460
|
-
}),
|
|
3461
|
-
const { visibleAccounts: r } = Se(), { dateRange: s, isDataLoaded: a, loadBudgetData: l, setTheme: c } =
|
|
3514
|
+
}), ea = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
|
|
3515
|
+
const { visibleAccounts: r } = Se(), { dateRange: s, isDataLoaded: a, loadBudgetData: l, setTheme: c } = Fn(), { reloadCategoryTotals: d } = Ne(), _ = B(), {
|
|
3462
3516
|
augmentedChartData: h,
|
|
3463
3517
|
calculateHealthScore: u,
|
|
3464
3518
|
loadAugmentedChartData: b,
|
|
3465
|
-
loadMonthlySummaries:
|
|
3519
|
+
loadMonthlySummaries: v,
|
|
3466
3520
|
loadPeerScore: C,
|
|
3467
3521
|
peerScore: f
|
|
3468
|
-
} = _, { finstrong:
|
|
3469
|
-
if (
|
|
3522
|
+
} = _, { finstrong: x, connect: w } = S(), { isCopyLoaded: g, isInitialized: y } = U(), { loadRepeatingTransactions: A } = je(), { isSmallMobile: L } = Xe(), T = z(), { userProfile: W } = ee(), [E, G] = m.useState(!1), [_e, ue] = m.useState(!1), [te, j] = m.useState(!1), [ve, H] = m.useState(!1);
|
|
3523
|
+
if (Do({
|
|
3470
3524
|
widgetName: "FinstrongWidget",
|
|
3471
|
-
isLoaded:
|
|
3525
|
+
isLoaded: E
|
|
3472
3526
|
}), m.useEffect(() => {
|
|
3473
3527
|
c(T);
|
|
3474
3528
|
}, []), m.useEffect(() => {
|
|
3475
3529
|
n && (_.handleFinstrongWidgetPrimaryCtaClick = n);
|
|
3476
3530
|
}, [n, _]), m.useEffect(() => {
|
|
3477
|
-
y && (
|
|
3531
|
+
y && (v().finally(), C().finally(), u().finally(), b().finally());
|
|
3478
3532
|
}, [y]), m.useEffect(() => {
|
|
3479
3533
|
y && (d(r, s.start, s.end).finally(() => {
|
|
3480
3534
|
G(!0);
|
|
3481
|
-
}), a || (l(),
|
|
3482
|
-
}, [s, a, y, r]), !g || !y || !
|
|
3535
|
+
}), a || (l(), A().finally()));
|
|
3536
|
+
}, [s, a, y, r]), !g || !y || !E) return /* @__PURE__ */ e(Q, {});
|
|
3483
3537
|
const we = () => ue(!0), K = Math.round(f?.average_health_score?.average_health_score || 0), ae = h.some((he) => he.y !== 0);
|
|
3484
3538
|
return /* @__PURE__ */ i(
|
|
3485
|
-
|
|
3539
|
+
Io,
|
|
3486
3540
|
{
|
|
3487
3541
|
actions: [
|
|
3488
3542
|
{
|
|
3489
3543
|
iconName: "person",
|
|
3490
|
-
label:
|
|
3544
|
+
label: x.profile,
|
|
3491
3545
|
onClick: we
|
|
3492
3546
|
}
|
|
3493
3547
|
],
|
|
@@ -3503,9 +3557,9 @@ const Wo = ({ total: t }) => {
|
|
|
3503
3557
|
},
|
|
3504
3558
|
...o
|
|
3505
3559
|
},
|
|
3506
|
-
title:
|
|
3560
|
+
title: x.title,
|
|
3507
3561
|
children: [
|
|
3508
|
-
|
|
3562
|
+
W.has_completed_finstrong_onboarding ? /* @__PURE__ */ i(
|
|
3509
3563
|
p,
|
|
3510
3564
|
{
|
|
3511
3565
|
sx: {
|
|
@@ -3518,13 +3572,13 @@ const Wo = ({ total: t }) => {
|
|
|
3518
3572
|
},
|
|
3519
3573
|
children: [
|
|
3520
3574
|
/* @__PURE__ */ i(p, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
|
|
3521
|
-
/* @__PURE__ */ e(
|
|
3575
|
+
/* @__PURE__ */ e(Jr, {}),
|
|
3522
3576
|
/* @__PURE__ */ e(
|
|
3523
3577
|
Be,
|
|
3524
3578
|
{
|
|
3525
|
-
description:
|
|
3579
|
+
description: x.connect_more_accounts_description,
|
|
3526
3580
|
drawerType: "connectDrawer",
|
|
3527
|
-
title:
|
|
3581
|
+
title: x.connect_more_accounts_title
|
|
3528
3582
|
}
|
|
3529
3583
|
)
|
|
3530
3584
|
] }),
|
|
@@ -3535,9 +3589,9 @@ const Wo = ({ total: t }) => {
|
|
|
3535
3589
|
direction: "row",
|
|
3536
3590
|
sx: { alignItems: "center", gap: 12, justifyContent: "space-between" },
|
|
3537
3591
|
children: [
|
|
3538
|
-
/* @__PURE__ */ e(X, { children:
|
|
3592
|
+
/* @__PURE__ */ e(X, { children: x.key_indicators }),
|
|
3539
3593
|
/* @__PURE__ */ e(
|
|
3540
|
-
|
|
3594
|
+
P,
|
|
3541
3595
|
{
|
|
3542
3596
|
endIcon: /* @__PURE__ */ e(J, {}),
|
|
3543
3597
|
onClick: () => j(!0),
|
|
@@ -3549,7 +3603,7 @@ const Wo = ({ total: t }) => {
|
|
|
3549
3603
|
}
|
|
3550
3604
|
},
|
|
3551
3605
|
variant: "text",
|
|
3552
|
-
children: /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children:
|
|
3606
|
+
children: /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: x.whats_changed })
|
|
3553
3607
|
}
|
|
3554
3608
|
)
|
|
3555
3609
|
]
|
|
@@ -3571,7 +3625,7 @@ const Wo = ({ total: t }) => {
|
|
|
3571
3625
|
labelBackgroundColor: T.palette.border.dark,
|
|
3572
3626
|
labelFontColor: T.palette.common.white,
|
|
3573
3627
|
labelFontSize: typeof T.typography.XSmall?.fontSize == "string" ? parseFloat(T.typography.XSmall.fontSize) : T.typography.XSmall?.fontSize,
|
|
3574
|
-
labels: [
|
|
3628
|
+
labels: [x.key_indicators_label],
|
|
3575
3629
|
margin: { right: 12, left: -37 },
|
|
3576
3630
|
peerAverage: K,
|
|
3577
3631
|
showArea: !0,
|
|
@@ -3580,25 +3634,25 @@ const Wo = ({ total: t }) => {
|
|
|
3580
3634
|
showMarkLabel: !0,
|
|
3581
3635
|
showTooltip: !0,
|
|
3582
3636
|
showXAxis: !0,
|
|
3583
|
-
title:
|
|
3637
|
+
title: x.peer_average
|
|
3584
3638
|
}
|
|
3585
|
-
) : /* @__PURE__ */ e(
|
|
3586
|
-
/* @__PURE__ */ e(
|
|
3639
|
+
) : /* @__PURE__ */ e(Or, { onClick: () => H(!0) }),
|
|
3640
|
+
/* @__PURE__ */ e(Tr, {})
|
|
3587
3641
|
] }) })
|
|
3588
3642
|
]
|
|
3589
3643
|
}
|
|
3590
|
-
) : /* @__PURE__ */ e(
|
|
3591
|
-
/* @__PURE__ */ e(
|
|
3644
|
+
) : /* @__PURE__ */ e(Gr, {}),
|
|
3645
|
+
/* @__PURE__ */ e(Kr, { isOpen: _e, onClose: () => ue(!1) }),
|
|
3592
3646
|
/* @__PURE__ */ e(
|
|
3593
3647
|
re,
|
|
3594
3648
|
{
|
|
3595
3649
|
onClose: () => H(!1),
|
|
3596
3650
|
showConnectWidget: ve,
|
|
3597
|
-
title:
|
|
3651
|
+
title: w.mini_title
|
|
3598
3652
|
}
|
|
3599
3653
|
),
|
|
3600
3654
|
/* @__PURE__ */ e(
|
|
3601
|
-
|
|
3655
|
+
qr,
|
|
3602
3656
|
{
|
|
3603
3657
|
isOpen: te,
|
|
3604
3658
|
onClose: () => j(!1)
|
|
@@ -3607,12 +3661,12 @@ const Wo = ({ total: t }) => {
|
|
|
3607
3661
|
]
|
|
3608
3662
|
}
|
|
3609
3663
|
);
|
|
3610
|
-
},
|
|
3664
|
+
}, yi = k(ea);
|
|
3611
3665
|
export {
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3666
|
+
Ao as CreditScoreGraph,
|
|
3667
|
+
At as DialScoreCard,
|
|
3668
|
+
Ot as FinancialStrengthGraph,
|
|
3669
|
+
xi as FinstrongApi,
|
|
3670
|
+
Si as FinstrongStore,
|
|
3671
|
+
yi as FinstrongWidget
|
|
3618
3672
|
};
|