@mx-cartographer/experiences 7.2.14-alpha.san4 → 7.2.14-alpha.san5
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.
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as a, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import C from "@mui/material/Box";
|
|
3
3
|
import u from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as E, alpha as fe } from "@mui/material/styles";
|
|
5
5
|
import { PieChart as _n, BarPlot as hn } from "@mui/x-charts";
|
|
6
6
|
import { TrendingUp as gt, ArrowRightAlt as mn, TrendingDown as gn, AccountBalance as yt, ChevronRight as Z, MultilineChart as bt, CreditCard as Ke, CheckCircle as yn, Cancel as bn, Savings as fn, ContentCopy as xn, Add as ft, Cardiology as Sn, Payments as Cn, CalendarMonth as vn, ExpandMore as wn } from "@mxenabled/mx-icons";
|
|
7
7
|
import { P as k, H3 as N, Text as I, InstitutionLogo as xt, H2 as Pe, MerchantLogo as kn, Icon as Mn } from "@mxenabled/mxui";
|
|
8
|
-
import { g as Dn, a as In, r as rt, b as An, c as je, d as St, C as
|
|
9
|
-
import { y as Gi, F as Hi } from "../FinstrongStore-
|
|
8
|
+
import { g as Dn, a as In, r as rt, b as An, c as je, d as St, C as ve, e as we, f as Tn, h as On, i as Rn, j as Ct, k as at, l as Fn, m as it, n as Pn, o as vt, p as Bn, q as wt, s as Te, t as Ln, u as Wn, v as $n, w as zn, A as ee, x as En, P as Gn } from "../FinstrongStore-1MFI6RcM.mjs";
|
|
9
|
+
import { y as Gi, F as Hi } from "../FinstrongStore-1MFI6RcM.mjs";
|
|
10
10
|
import * as st from "d3";
|
|
11
11
|
import { observer as S } from "mobx-react-lite";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as v, b as j, p as Q, z as F, q as Hn, a as kt, d as Me, m as Ye, g as Nn, f as Kn, j as Ve, h as jn, i as Yn } from "../hooks-C41HAxM5.mjs";
|
|
13
13
|
import { L as J } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
|
-
import
|
|
15
|
+
import W from "@mui/material/Button";
|
|
16
16
|
import K from "@mui/material/Card";
|
|
17
17
|
import { L as Xe } from "../LineChart-Ct9DNmhS.mjs";
|
|
18
18
|
import { C as Mt } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
|
19
|
-
import { l as
|
|
20
|
-
import
|
|
19
|
+
import { l as oe, g as Dt, A as He } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
20
|
+
import pe from "@mui/material/Tab";
|
|
21
21
|
import qe from "@mui/material/Tabs";
|
|
22
22
|
import Oe from "@mui/material/TextField";
|
|
23
23
|
import { u as Ue } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as Vn, f as Xn, a as qn } from "../Dialog-BPTr3qHE.mjs";
|
|
25
25
|
import { u as It } from "../useDimensions-27p2evRx.mjs";
|
|
26
26
|
import Un from "@mui/material/Chip";
|
|
27
|
-
import { D as
|
|
28
|
-
import
|
|
27
|
+
import { D as te } from "../Drawer-BEtCk82g.mjs";
|
|
28
|
+
import ne from "@mui/material/Divider";
|
|
29
29
|
import ye from "@mui/material/ListItem";
|
|
30
30
|
import At from "@mui/material/ListItemAvatar";
|
|
31
31
|
import be from "@mui/material/ListItemText";
|
|
@@ -41,7 +41,7 @@ import { h as Ze } from "../DateUtil-CBdcsyuk.mjs";
|
|
|
41
41
|
import { useVirtualizer as no } from "@tanstack/react-virtual";
|
|
42
42
|
import { u as oo, s as Ne, h as Ft, S as Pt, b as Bt, Z as ro } from "../TransactionDetails-CaJruWq3.mjs";
|
|
43
43
|
import { A as ao, W as io } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
44
|
-
import { T as
|
|
44
|
+
import { T as ue } from "../TabContentContainer-j01JYR_7.mjs";
|
|
45
45
|
import { b as Y } from "../Localization-2MODESHW.mjs";
|
|
46
46
|
import { E as Fe } from "../EmptyState-DoxNUae-.mjs";
|
|
47
47
|
import so from "@mui/material/useMediaQuery";
|
|
@@ -50,7 +50,7 @@ import { ChartsYAxis as lo } from "@mui/x-charts/ChartsYAxis";
|
|
|
50
50
|
import { ResponsiveChartContainer as po } from "@mui/x-charts/ResponsiveChartContainer";
|
|
51
51
|
import { useSpring as uo, animated as lt } from "@react-spring/web";
|
|
52
52
|
import { startOfMonth as Lt } from "date-fns/startOfMonth";
|
|
53
|
-
import { endOfMonth as
|
|
53
|
+
import { endOfMonth as Wt } from "date-fns/endOfMonth";
|
|
54
54
|
import { g as _o, S as ho, b as mo } from "../SpendingLegend-CW8mIzqd.mjs";
|
|
55
55
|
import { formatISO as go } from "date-fns/formatISO";
|
|
56
56
|
import { fromUnixTime as yo } from "date-fns/fromUnixTime";
|
|
@@ -58,7 +58,7 @@ import { startOfToday as dt } from "date-fns/startOfToday";
|
|
|
58
58
|
import { subDays as bo } from "date-fns/subDays";
|
|
59
59
|
import { c as fo, d as pt, S as xo, i as So } from "../ManageIncome-C3bINPG2.mjs";
|
|
60
60
|
import { LocalizationProvider as Co, DatePicker as vo, StaticDatePicker as wo } from "@mui/x-date-pickers";
|
|
61
|
-
import { AdapterDateFns as
|
|
61
|
+
import { AdapterDateFns as $t } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
62
62
|
import { R as ko } from "../RecurringSettings-B_mCFQhb.mjs";
|
|
63
63
|
import { LocalizationProvider as Mo } from "@mui/x-date-pickers/LocalizationProvider";
|
|
64
64
|
import { format as Do } from "date-fns/format";
|
|
@@ -70,8 +70,8 @@ import Fo from "@mui/lab/TimelineDot";
|
|
|
70
70
|
import Po from "@mui/lab/TimelineSeparator";
|
|
71
71
|
import Bo from "@mui/material/Accordion";
|
|
72
72
|
import Lo from "@mui/material/AccordionDetails";
|
|
73
|
-
import
|
|
74
|
-
import
|
|
73
|
+
import Wo from "@mui/material/AccordionSummary";
|
|
74
|
+
import $o from "@mui/material/CardHeader";
|
|
75
75
|
const zo = ({
|
|
76
76
|
dialScoreData: t,
|
|
77
77
|
dataIndex: r,
|
|
@@ -85,34 +85,34 @@ const zo = ({
|
|
|
85
85
|
outterArcRadius: d,
|
|
86
86
|
progressEndAngle: _,
|
|
87
87
|
unitsPerSegment: h,
|
|
88
|
-
isFinacialStrengthGraph:
|
|
88
|
+
isFinacialStrengthGraph: b
|
|
89
89
|
}) => {
|
|
90
|
-
const f =
|
|
90
|
+
const f = E(), w = [
|
|
91
91
|
{ offset: "13.62%", color: f.palette.chartMono.chartMono2 },
|
|
92
92
|
{ offset: "36.67%", color: f.palette.chartMono.chartMono3 },
|
|
93
93
|
{ offset: "59.72%", color: f.palette.chartMono.chartMono4 },
|
|
94
94
|
{ offset: "83.46%", color: f.palette.chartMono.chartMono5 }
|
|
95
|
-
], [
|
|
95
|
+
], [y, D] = Dn(
|
|
96
96
|
t,
|
|
97
97
|
s,
|
|
98
98
|
o,
|
|
99
99
|
r
|
|
100
|
-
), [g,
|
|
101
|
-
|
|
100
|
+
), [g, x] = In(
|
|
101
|
+
y,
|
|
102
102
|
D,
|
|
103
103
|
r,
|
|
104
104
|
h,
|
|
105
105
|
_
|
|
106
|
-
), M = st.arc().innerRadius(l).outerRadius(d).startAngle(
|
|
107
|
-
return /* @__PURE__ */ a(
|
|
106
|
+
), M = st.arc().innerRadius(l).outerRadius(d).startAngle(y).endAngle(D).padAngle(0.02).cornerRadius(8), $ = st.arc().innerRadius(l).outerRadius(d).startAngle(g).endAngle(x).padAngle(0.02).cornerRadius(8);
|
|
107
|
+
return /* @__PURE__ */ a(z, { children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
109
|
"path",
|
|
110
110
|
{
|
|
111
111
|
d: M({}),
|
|
112
|
-
fill:
|
|
112
|
+
fill: b ? f.palette.divider : n
|
|
113
113
|
}
|
|
114
114
|
),
|
|
115
|
-
|
|
115
|
+
b && /* @__PURE__ */ e("path", { d: $({}), fill: "url(#arcGradient)" }),
|
|
116
116
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
117
117
|
"linearGradient",
|
|
118
118
|
{
|
|
@@ -123,7 +123,7 @@ const zo = ({
|
|
|
123
123
|
x2: i - p * 0.8 * Math.cos(Math.PI / 1.35),
|
|
124
124
|
y1: c + p * 0.8 * Math.sin(Math.PI / 1.35),
|
|
125
125
|
y2: c - p * 0.8 * Math.sin(Math.PI / 1.35),
|
|
126
|
-
children:
|
|
126
|
+
children: w.map((G, H) => /* @__PURE__ */ e("stop", { offset: G.offset, stopColor: G.color }, H))
|
|
127
127
|
}
|
|
128
128
|
) })
|
|
129
129
|
] });
|
|
@@ -141,17 +141,17 @@ const zo = ({
|
|
|
141
141
|
footerRightContent: _,
|
|
142
142
|
isFinacialStrengthGraph: h = !1
|
|
143
143
|
}) => {
|
|
144
|
-
const
|
|
144
|
+
const b = E(), f = -Math.PI / 1.35, w = Math.PI / 1.35, y = w - f, D = y / (i - s), g = (r - s) * D, x = f + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, $ = t, G = t * (1 - M), H = $ * 2.5, T = H / 2, V = H / 2, re = (G + $) / 2, ae = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [Ce, ie] = An(re, x, ae), X = r / 25, se = {
|
|
145
145
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
146
146
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
147
147
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
148
|
-
},
|
|
148
|
+
}, ce = l === 0 ? mn : gn;
|
|
149
149
|
return /* @__PURE__ */ a(
|
|
150
150
|
u,
|
|
151
151
|
{
|
|
152
152
|
sx: {
|
|
153
|
-
width:
|
|
154
|
-
height:
|
|
153
|
+
width: H,
|
|
154
|
+
height: H,
|
|
155
155
|
position: "relative",
|
|
156
156
|
alignSelf: "center"
|
|
157
157
|
},
|
|
@@ -159,16 +159,16 @@ const zo = ({
|
|
|
159
159
|
/* @__PURE__ */ e(
|
|
160
160
|
_n,
|
|
161
161
|
{
|
|
162
|
-
height:
|
|
162
|
+
height: H,
|
|
163
163
|
margin: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
164
164
|
series: [
|
|
165
165
|
{
|
|
166
166
|
data: o,
|
|
167
|
-
innerRadius:
|
|
168
|
-
outerRadius:
|
|
167
|
+
innerRadius: G,
|
|
168
|
+
outerRadius: $,
|
|
169
169
|
startAngle: Math.round(rt(f)),
|
|
170
170
|
// Use Math.degrees to convert
|
|
171
|
-
endAngle: Math.round(rt(
|
|
171
|
+
endAngle: Math.round(rt(w))
|
|
172
172
|
// Use Math.degrees to convert
|
|
173
173
|
}
|
|
174
174
|
],
|
|
@@ -177,21 +177,21 @@ const zo = ({
|
|
|
177
177
|
legend: { hidden: !0 }
|
|
178
178
|
},
|
|
179
179
|
slots: {
|
|
180
|
-
pieArc: (
|
|
180
|
+
pieArc: (he) => /* @__PURE__ */ e(
|
|
181
181
|
zo,
|
|
182
182
|
{
|
|
183
|
-
arcColor:
|
|
183
|
+
arcColor: he.color,
|
|
184
184
|
arcRadius: t,
|
|
185
185
|
arcStartAngle: f,
|
|
186
|
-
centerX:
|
|
186
|
+
centerX: T,
|
|
187
187
|
centerY: V,
|
|
188
|
-
dataIndex:
|
|
188
|
+
dataIndex: he.dataIndex,
|
|
189
189
|
dialScoreData: o,
|
|
190
|
-
innerArcRadius:
|
|
190
|
+
innerArcRadius: G,
|
|
191
191
|
isFinacialStrengthGraph: h,
|
|
192
|
-
outterArcRadius:
|
|
193
|
-
progressEndAngle:
|
|
194
|
-
totalAngularSpan:
|
|
192
|
+
outterArcRadius: $,
|
|
193
|
+
progressEndAngle: x,
|
|
194
|
+
totalAngularSpan: y,
|
|
195
195
|
unitsPerSegment: X
|
|
196
196
|
}
|
|
197
197
|
)
|
|
@@ -201,14 +201,14 @@ const zo = ({
|
|
|
201
201
|
stroke: "none"
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
width:
|
|
204
|
+
width: H,
|
|
205
205
|
children: r >= s && r <= i && /* @__PURE__ */ e(
|
|
206
206
|
"circle",
|
|
207
207
|
{
|
|
208
|
-
cx:
|
|
209
|
-
cy: V +
|
|
210
|
-
fill:
|
|
211
|
-
r:
|
|
208
|
+
cx: T + Ce,
|
|
209
|
+
cy: V + ie,
|
|
210
|
+
fill: b.palette.common.white,
|
|
211
|
+
r: se[n].markerSize,
|
|
212
212
|
stroke: h ? "url(#arcGradient)" : c,
|
|
213
213
|
strokeWidth: n !== "SM" ? 3 : 1
|
|
214
214
|
}
|
|
@@ -216,12 +216,12 @@ const zo = ({
|
|
|
216
216
|
}
|
|
217
217
|
),
|
|
218
218
|
/* @__PURE__ */ e(
|
|
219
|
-
|
|
219
|
+
C,
|
|
220
220
|
{
|
|
221
221
|
sx: {
|
|
222
222
|
position: "absolute",
|
|
223
223
|
top: `${V}px`,
|
|
224
|
-
left: `${
|
|
224
|
+
left: `${T}px`,
|
|
225
225
|
transform: "translate(-50%, -50%)",
|
|
226
226
|
textAlign: "center"
|
|
227
227
|
},
|
|
@@ -235,7 +235,7 @@ const zo = ({
|
|
|
235
235
|
k,
|
|
236
236
|
{
|
|
237
237
|
sx: {
|
|
238
|
-
fontSize:
|
|
238
|
+
fontSize: se[n].healthScoreFontSize,
|
|
239
239
|
lineHeight: n !== "SM" ? "48px" : "100%"
|
|
240
240
|
},
|
|
241
241
|
variant: "H1",
|
|
@@ -249,17 +249,17 @@ const zo = ({
|
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
251
|
l !== void 0 && /* @__PURE__ */ e(
|
|
252
|
-
|
|
252
|
+
C,
|
|
253
253
|
{
|
|
254
254
|
sx: {
|
|
255
255
|
position: "absolute",
|
|
256
256
|
top: `${V * 2 * 0.83}px`,
|
|
257
|
-
left: `${
|
|
257
|
+
left: `${T}px`,
|
|
258
258
|
transform: "translate(-50%, -50%)",
|
|
259
259
|
textAlign: "center"
|
|
260
260
|
},
|
|
261
261
|
children: typeof l == "number" ? /* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
262
|
-
l > 0 ? /* @__PURE__ */ e(gt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(
|
|
262
|
+
l > 0 ? /* @__PURE__ */ e(gt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(ce, { size: 16, sx: { color: "text.secondary" } }),
|
|
263
263
|
/* @__PURE__ */ e(
|
|
264
264
|
k,
|
|
265
265
|
{
|
|
@@ -275,12 +275,12 @@ const zo = ({
|
|
|
275
275
|
}
|
|
276
276
|
),
|
|
277
277
|
d !== void 0 && /* @__PURE__ */ e(
|
|
278
|
-
|
|
278
|
+
C,
|
|
279
279
|
{
|
|
280
280
|
sx: {
|
|
281
281
|
position: "absolute",
|
|
282
282
|
top: `${V * 2 * 0.83}px`,
|
|
283
|
-
left: `${
|
|
283
|
+
left: `${T - T / 2}px`,
|
|
284
284
|
// shift left from center
|
|
285
285
|
transform: "translate(-50%, -50%)",
|
|
286
286
|
textAlign: "left"
|
|
@@ -289,12 +289,12 @@ const zo = ({
|
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
291
|
_ !== void 0 && /* @__PURE__ */ e(
|
|
292
|
-
|
|
292
|
+
C,
|
|
293
293
|
{
|
|
294
294
|
sx: {
|
|
295
295
|
position: "absolute",
|
|
296
296
|
top: `${V * 2 * 0.83}px`,
|
|
297
|
-
left: `${
|
|
297
|
+
left: `${T + T / 2}px`,
|
|
298
298
|
transform: "translate(-50%, -50%)",
|
|
299
299
|
textAlign: "right"
|
|
300
300
|
},
|
|
@@ -311,7 +311,7 @@ const zo = ({
|
|
|
311
311
|
{ id: 2, label: "Group B", value: 25 },
|
|
312
312
|
{ id: 3, label: "Group C", value: 25 },
|
|
313
313
|
{ id: 4, label: "Group D", value: 25 }
|
|
314
|
-
], { finstrong: i } =
|
|
314
|
+
], { finstrong: i } = v(), c = je(n, i);
|
|
315
315
|
return /* @__PURE__ */ e(
|
|
316
316
|
zt,
|
|
317
317
|
{
|
|
@@ -334,40 +334,40 @@ const zo = ({
|
|
|
334
334
|
minValue: s = 300,
|
|
335
335
|
footerCenterContent: i
|
|
336
336
|
}) => {
|
|
337
|
-
const p =
|
|
337
|
+
const p = E().palette.mode === "dark", l = [
|
|
338
338
|
{
|
|
339
339
|
id: 1,
|
|
340
340
|
label: "Poor",
|
|
341
341
|
value: 29,
|
|
342
|
-
color: p ?
|
|
342
|
+
color: p ? ve.POOR : we.POOR
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
id: 2,
|
|
346
346
|
label: "Fair",
|
|
347
347
|
value: 25,
|
|
348
|
-
color: p ?
|
|
348
|
+
color: p ? ve.FAIR : we.FAIR
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
351
|
id: 3,
|
|
352
352
|
label: "Good",
|
|
353
353
|
value: 17,
|
|
354
|
-
color: p ?
|
|
354
|
+
color: p ? ve.GOOD : we.GOOD
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
id: 4,
|
|
358
358
|
label: "Very Good",
|
|
359
359
|
value: 17,
|
|
360
|
-
color: p ?
|
|
360
|
+
color: p ? ve.VERY_GOOD : we.VERY_GOOD
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
id: 5,
|
|
364
364
|
label: "Exceptional",
|
|
365
365
|
value: 12,
|
|
366
|
-
color: p ?
|
|
366
|
+
color: p ? ve.EXCEPTIONAL : we.EXCEPTIONAL
|
|
367
367
|
}
|
|
368
|
-
], { finstrong: d } =
|
|
368
|
+
], { finstrong: d } = v(), { isCopyLoaded: _ } = j();
|
|
369
369
|
if (!_) return /* @__PURE__ */ e(J, {});
|
|
370
|
-
const { status: h, color:
|
|
370
|
+
const { status: h, color: b = "none" } = St(
|
|
371
371
|
n,
|
|
372
372
|
p,
|
|
373
373
|
d.credit_score_status
|
|
@@ -382,7 +382,7 @@ const zo = ({
|
|
|
382
382
|
footerRightContent: o,
|
|
383
383
|
healthScore: n,
|
|
384
384
|
healthScoreStatus: h,
|
|
385
|
-
markerColor:
|
|
385
|
+
markerColor: b,
|
|
386
386
|
maxValue: o,
|
|
387
387
|
minValue: s,
|
|
388
388
|
size: r
|
|
@@ -399,7 +399,7 @@ const zo = ({
|
|
|
399
399
|
description: c,
|
|
400
400
|
sx: p
|
|
401
401
|
}) => {
|
|
402
|
-
const [l, d] = m.useState(!1), { connect: _, finstrong: h } =
|
|
402
|
+
const [l, d] = m.useState(!1), { connect: _, finstrong: h } = v();
|
|
403
403
|
return t ? /* @__PURE__ */ a(
|
|
404
404
|
K,
|
|
405
405
|
{
|
|
@@ -434,7 +434,7 @@ const zo = ({
|
|
|
434
434
|
}
|
|
435
435
|
),
|
|
436
436
|
/* @__PURE__ */ e(
|
|
437
|
-
|
|
437
|
+
W,
|
|
438
438
|
{
|
|
439
439
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
440
440
|
onClick: () => d(!0),
|
|
@@ -444,7 +444,7 @@ const zo = ({
|
|
|
444
444
|
}
|
|
445
445
|
),
|
|
446
446
|
t === "connectDrawer" && /* @__PURE__ */ e(
|
|
447
|
-
|
|
447
|
+
oe,
|
|
448
448
|
{
|
|
449
449
|
onClose: () => d(!1),
|
|
450
450
|
showConnectWidget: l,
|
|
@@ -463,9 +463,9 @@ const zo = ({
|
|
|
463
463
|
}
|
|
464
464
|
) : null;
|
|
465
465
|
};
|
|
466
|
-
var
|
|
466
|
+
var _e = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(_e || {});
|
|
467
467
|
const Go = ({ isOpen: t, onClose: r }) => {
|
|
468
|
-
const { common: n, finstrong: o } =
|
|
468
|
+
const { common: n, finstrong: o } = v(), { isMobile: s } = Ue(), { updateUser: i, user: c } = Q(), [p, l] = m.useState(c.credit_score || 0), d = !isNaN(p), _ = () => {
|
|
469
469
|
r(), setTimeout(() => l(c.credit_score || 0), 300);
|
|
470
470
|
}, h = () => {
|
|
471
471
|
!p || p === c.credit_score || i({ ...c, credit_score: p });
|
|
@@ -489,8 +489,8 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
489
489
|
children: /* @__PURE__ */ e(
|
|
490
490
|
"form",
|
|
491
491
|
{
|
|
492
|
-
onSubmit: (
|
|
493
|
-
|
|
492
|
+
onSubmit: (b) => {
|
|
493
|
+
b.preventDefault(), h(), _();
|
|
494
494
|
},
|
|
495
495
|
children: /* @__PURE__ */ e(
|
|
496
496
|
Oe,
|
|
@@ -502,7 +502,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
502
502
|
noValidate: !0,
|
|
503
503
|
pattern: "[0-9]*"
|
|
504
504
|
},
|
|
505
|
-
onChange: (
|
|
505
|
+
onChange: (b) => l(Number(b.target.value)),
|
|
506
506
|
value: d ? p : ""
|
|
507
507
|
}
|
|
508
508
|
)
|
|
@@ -514,7 +514,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
514
514
|
credit_over_time_title: "Your Credit Over Time",
|
|
515
515
|
credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
|
|
516
516
|
}, Ho = ({ chartFor: t }) => {
|
|
517
|
-
const r =
|
|
517
|
+
const r = E(), n = r.palette.mode === "dark", { monthlySummaries: o } = F(), { user: s } = Q(), { finstrong: i } = v(), [c, { width: p }] = It(), l = {
|
|
518
518
|
savingsOverTime: {
|
|
519
519
|
icon: /* @__PURE__ */ e(gt, { size: 48, sx: { marginBottom: 8 } }),
|
|
520
520
|
title: i.key_indicators_save.zero_state_title,
|
|
@@ -543,22 +543,22 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
543
543
|
title: ze.credit_over_time_title,
|
|
544
544
|
valueKey: "credit_score"
|
|
545
545
|
}
|
|
546
|
-
}[t], h = Tn(o, _.valueKey),
|
|
547
|
-
let
|
|
546
|
+
}[t], h = Tn(o, _.valueKey), b = Math.max(...o.map((M) => M[_.valueKey])), f = () => b >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : b >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: w, leftMargin: y } = f(), D = _.title, g = t === "creditOverTime";
|
|
547
|
+
let x;
|
|
548
548
|
if (g) {
|
|
549
549
|
const { color: M } = St(
|
|
550
550
|
s?.credit_score ?? 0,
|
|
551
551
|
n,
|
|
552
552
|
i.credit_score_status
|
|
553
553
|
);
|
|
554
|
-
|
|
554
|
+
x = M;
|
|
555
555
|
}
|
|
556
556
|
return /* @__PURE__ */ e(K, { ref: c, sx: { backgroundColor: "background.paper" }, children: h.length >= 1 ? /* @__PURE__ */ a(u, { gap: 8, sx: { pl: 18 }, children: [
|
|
557
557
|
/* @__PURE__ */ e(k, { sx: { pb: 8, pt: 16 }, variant: "h3", children: D }),
|
|
558
558
|
/* @__PURE__ */ e(
|
|
559
559
|
Xe,
|
|
560
560
|
{
|
|
561
|
-
areaColor:
|
|
561
|
+
areaColor: x,
|
|
562
562
|
axisColor: r.palette.divider,
|
|
563
563
|
baseline: "min",
|
|
564
564
|
chartFor: t,
|
|
@@ -569,7 +569,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
569
569
|
labelFontColor: g ? "text.primary" : "",
|
|
570
570
|
labelFontSize: g ? 13 : void 0,
|
|
571
571
|
labels: [i.key_indicators_label],
|
|
572
|
-
margin: { left:
|
|
572
|
+
margin: { left: y, top: g ? 25 : 15, right: 20 },
|
|
573
573
|
markStyles: (M) => g ? {
|
|
574
574
|
markLabelStyles: {
|
|
575
575
|
marginLeft: 16,
|
|
@@ -587,7 +587,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
587
587
|
showYAxis: g,
|
|
588
588
|
showYAxisTicks: g,
|
|
589
589
|
useCustomMark: !0,
|
|
590
|
-
valueFormatterString: g ? void 0 :
|
|
590
|
+
valueFormatterString: g ? void 0 : w,
|
|
591
591
|
width: p < 342 ? p - 48 : 342
|
|
592
592
|
}
|
|
593
593
|
)
|
|
@@ -610,12 +610,12 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
610
610
|
size: o ? "M" : "L"
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
|
-
/* @__PURE__ */ e(
|
|
613
|
+
/* @__PURE__ */ e(W, { onClick: () => i(!0), variant: "contained", children: No.updated_score }),
|
|
614
614
|
/* @__PURE__ */ e(Gt, { isOpen: s, onClose: () => i(!1) }),
|
|
615
615
|
/* @__PURE__ */ e(Qe, { chartFor: "creditOverTime" })
|
|
616
616
|
] });
|
|
617
617
|
}, jo = S(Ko), Le = ({ status: t }) => {
|
|
618
|
-
const { finstrong: r } =
|
|
618
|
+
const { finstrong: r } = v(), n = On(Rn[t]), o = {
|
|
619
619
|
GOOD: r.key_indicators_good,
|
|
620
620
|
FAIR: r.key_indicators_fair,
|
|
621
621
|
OFF_TRACK: r.key_indicators_off_track,
|
|
@@ -664,8 +664,8 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
664
664
|
title: _,
|
|
665
665
|
drawerType: h
|
|
666
666
|
}) => {
|
|
667
|
-
const { finstrong:
|
|
668
|
-
return f ? /* @__PURE__ */ a(
|
|
667
|
+
const { finstrong: b } = v(), { isCopyLoaded: f } = j();
|
|
668
|
+
return f ? /* @__PURE__ */ a(te, { isOpen: c, onClose: l, title: i || b.key_indicators, children: [
|
|
669
669
|
(_ || s) && /* @__PURE__ */ a(
|
|
670
670
|
u,
|
|
671
671
|
{
|
|
@@ -681,7 +681,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
681
681
|
}
|
|
682
682
|
),
|
|
683
683
|
d && /* @__PURE__ */ e(
|
|
684
|
-
|
|
684
|
+
C,
|
|
685
685
|
{
|
|
686
686
|
sx: {
|
|
687
687
|
position: "sticky",
|
|
@@ -691,7 +691,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
691
691
|
children: d
|
|
692
692
|
}
|
|
693
693
|
),
|
|
694
|
-
t && /* @__PURE__ */ e(
|
|
694
|
+
t && /* @__PURE__ */ e(C, { children: t }),
|
|
695
695
|
/* @__PURE__ */ a(u, { sx: { p: 24, gap: 24 }, children: [
|
|
696
696
|
o,
|
|
697
697
|
p && /* @__PURE__ */ e(
|
|
@@ -711,7 +711,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
711
711
|
shouldShowBalance: r = !0,
|
|
712
712
|
loadAccounts: n
|
|
713
713
|
}) => {
|
|
714
|
-
const { config: o } = kt(), { accounts: s } =
|
|
714
|
+
const { config: o } = kt(), { accounts: s } = v(), { selectedAccounts: i } = j(), c = m.useCallback(
|
|
715
715
|
(l) => {
|
|
716
716
|
t?.(l);
|
|
717
717
|
},
|
|
@@ -724,7 +724,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
724
724
|
);
|
|
725
725
|
return i.length ? /* @__PURE__ */ e(m.Fragment, { children: p.map((l) => {
|
|
726
726
|
const { accountsForType: d, totalBalanceForType: _ } = i.reduce(
|
|
727
|
-
(h,
|
|
727
|
+
(h, b) => (b.account_type === l && (h.accountsForType.push(b), h.totalBalanceForType += b.balance || 0), h),
|
|
728
728
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
729
729
|
);
|
|
730
730
|
return /* @__PURE__ */ a(
|
|
@@ -736,79 +736,79 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
736
736
|
] }) }),
|
|
737
737
|
sx: { bgcolor: "background.paper" },
|
|
738
738
|
children: [
|
|
739
|
-
d.map((h,
|
|
740
|
-
const { firstValue: f } = Tt(h, s),
|
|
739
|
+
d.map((h, b) => {
|
|
740
|
+
const { firstValue: f } = Tt(h, s), w = Dt(h, {
|
|
741
741
|
allowNickname: o?.show_account_nicknames_in_master
|
|
742
|
-
}),
|
|
742
|
+
}), y = /* @__PURE__ */ a(z, { children: [
|
|
743
743
|
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid: h.institution_guid ?? "" }) }),
|
|
744
744
|
/* @__PURE__ */ e(
|
|
745
745
|
be,
|
|
746
746
|
{
|
|
747
|
-
primary: `${
|
|
747
|
+
primary: `${w}${h.account_number ? ` *${h.account_number}` : ""}`,
|
|
748
748
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
749
749
|
}
|
|
750
750
|
),
|
|
751
751
|
r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: L(f ?? 0, "0,0.00") })
|
|
752
752
|
] });
|
|
753
753
|
return /* @__PURE__ */ a(m.Fragment, { children: [
|
|
754
|
-
/* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Zn, { onClick: () => c(h), children:
|
|
755
|
-
|
|
754
|
+
/* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Zn, { onClick: () => c(h), children: y }) : y }),
|
|
755
|
+
b !== d.length - 1 && /* @__PURE__ */ e(ne, { variant: "inset" })
|
|
756
756
|
] }, h.guid);
|
|
757
757
|
}),
|
|
758
|
-
/* @__PURE__ */ e(
|
|
758
|
+
/* @__PURE__ */ e(ne, {})
|
|
759
759
|
]
|
|
760
760
|
},
|
|
761
761
|
l
|
|
762
762
|
);
|
|
763
763
|
}) }) : null;
|
|
764
764
|
}, Nt = S(Uo), Zo = ({ loadAccounts: t, loadMoreLabel: r }) => {
|
|
765
|
-
const n =
|
|
765
|
+
const n = E(), { config: o } = kt(), { connect: s, finstrong: i } = v(), { accounts: c } = v(), { selectedAccounts: p } = j(), [l, d] = m.useState(!1), [_, h] = m.useState(!1), b = m.useMemo(
|
|
766
766
|
() => p.filter(
|
|
767
|
-
(
|
|
767
|
+
(y) => t ? t.includes(y.account_type) : !0
|
|
768
768
|
),
|
|
769
769
|
[p, t]
|
|
770
|
-
), f = m.useMemo(() =>
|
|
771
|
-
const { firstValue: D } = Tt(
|
|
770
|
+
), f = m.useMemo(() => b.slice(0, 3), [b]), w = (y) => {
|
|
771
|
+
const { firstValue: D } = Tt(y, c);
|
|
772
772
|
return D;
|
|
773
773
|
};
|
|
774
|
-
return
|
|
775
|
-
/* @__PURE__ */ e(
|
|
774
|
+
return b.length >= 1 ? /* @__PURE__ */ a(z, { children: [
|
|
775
|
+
/* @__PURE__ */ e(C, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((y, D) => /* @__PURE__ */ a(m.Fragment, { children: [
|
|
776
776
|
/* @__PURE__ */ a(ye, { sx: { px: 24 }, children: [
|
|
777
|
-
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid:
|
|
777
|
+
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid: y.institution_guid ?? "" }) }),
|
|
778
778
|
/* @__PURE__ */ e(
|
|
779
779
|
be,
|
|
780
780
|
{
|
|
781
|
-
primary: `${Dt(
|
|
781
|
+
primary: `${Dt(y, {
|
|
782
782
|
allowNickname: o?.show_account_nicknames_in_master
|
|
783
783
|
})}
|
|
784
|
-
${
|
|
784
|
+
${y.account_number ? ` *${y.account_number}` : ""}`,
|
|
785
785
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
786
786
|
}
|
|
787
787
|
),
|
|
788
|
-
/* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: L(
|
|
788
|
+
/* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: L(w(y), "0,0.00") })
|
|
789
789
|
] }),
|
|
790
|
-
D < f.length - 1 && /* @__PURE__ */ e(
|
|
791
|
-
] },
|
|
792
|
-
|
|
793
|
-
/* @__PURE__ */ e(
|
|
794
|
-
|
|
790
|
+
D < f.length - 1 && /* @__PURE__ */ e(ne, { variant: "inset" })
|
|
791
|
+
] }, y.guid)) }),
|
|
792
|
+
b.length > 3 && /* @__PURE__ */ a(z, { children: [
|
|
793
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
794
|
+
W,
|
|
795
795
|
{
|
|
796
796
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
797
797
|
onClick: () => d(!0),
|
|
798
798
|
size: "small",
|
|
799
799
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
800
800
|
children: /* @__PURE__ */ a(I, { bold: !0, variant: "body1", children: [
|
|
801
|
-
|
|
801
|
+
b.length - 3,
|
|
802
802
|
" ",
|
|
803
803
|
r
|
|
804
804
|
] })
|
|
805
805
|
}
|
|
806
806
|
) }),
|
|
807
|
-
/* @__PURE__ */ e(
|
|
807
|
+
/* @__PURE__ */ e(te, { isOpen: l, onClose: () => d(!1), title: i.accounts, children: /* @__PURE__ */ e(Nt, { loadAccounts: t }) })
|
|
808
808
|
] })
|
|
809
|
-
] }) : /* @__PURE__ */ a(
|
|
810
|
-
/* @__PURE__ */ e(
|
|
811
|
-
|
|
809
|
+
] }) : /* @__PURE__ */ a(z, { children: [
|
|
810
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
811
|
+
W,
|
|
812
812
|
{
|
|
813
813
|
onClick: () => h(!0),
|
|
814
814
|
size: "small",
|
|
@@ -818,7 +818,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
818
818
|
}
|
|
819
819
|
) }),
|
|
820
820
|
/* @__PURE__ */ e(
|
|
821
|
-
|
|
821
|
+
oe,
|
|
822
822
|
{
|
|
823
823
|
onClose: () => h(!1),
|
|
824
824
|
showConnectWidget: _,
|
|
@@ -844,7 +844,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
844
844
|
]
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
|
-
var
|
|
847
|
+
var O = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(O || {}), ke = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(ke || {}), U = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(U || {});
|
|
848
848
|
const B = {
|
|
849
849
|
bi_weekly: "Bi-Weekly",
|
|
850
850
|
calculate: "Calculate",
|
|
@@ -875,36 +875,36 @@ const B = {
|
|
|
875
875
|
[U.Weekly]: B.estimated_period_weekly,
|
|
876
876
|
[U.Daily]: B.estimated_period_daily
|
|
877
877
|
}, er = [
|
|
878
|
-
{ id:
|
|
879
|
-
{ id:
|
|
880
|
-
{ id:
|
|
878
|
+
{ id: ke.Months, label: B.months },
|
|
879
|
+
{ id: ke.Years, label: B.years },
|
|
880
|
+
{ id: ke.Days, label: B.days }
|
|
881
881
|
], tr = ({ total: t }) => {
|
|
882
882
|
const r = Math.ceil((t + 1) / 1e3) * 1e3, [n, o] = m.useState(0), [s, i] = m.useState(at(t)), [c, p] = m.useState(
|
|
883
883
|
at(t)
|
|
884
|
-
), [l, d] = m.useState(r), [_, h] = m.useState(Fn(t)), [
|
|
884
|
+
), [l, d] = m.useState(r), [_, h] = m.useState(Fn(t)), [b, f] = m.useState(ke.Months);
|
|
885
885
|
m.useEffect(() => {
|
|
886
886
|
o(
|
|
887
887
|
it({
|
|
888
888
|
contribution: c,
|
|
889
889
|
goalAmount: l,
|
|
890
890
|
goalPeriod: _,
|
|
891
|
-
targetPeriod:
|
|
891
|
+
targetPeriod: b,
|
|
892
892
|
totalSaved: t
|
|
893
893
|
})
|
|
894
894
|
), i(c);
|
|
895
895
|
}, []);
|
|
896
|
-
const
|
|
897
|
-
|
|
896
|
+
const w = (y) => {
|
|
897
|
+
y.preventDefault(), o(
|
|
898
898
|
it({
|
|
899
899
|
contribution: c,
|
|
900
900
|
goalAmount: l,
|
|
901
901
|
goalPeriod: _,
|
|
902
|
-
targetPeriod:
|
|
902
|
+
targetPeriod: b,
|
|
903
903
|
totalSaved: t
|
|
904
904
|
})
|
|
905
905
|
), i(c);
|
|
906
906
|
};
|
|
907
|
-
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit:
|
|
907
|
+
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit: w, children: /* @__PURE__ */ a(u, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
908
908
|
/* @__PURE__ */ e(
|
|
909
909
|
Se,
|
|
910
910
|
{
|
|
@@ -928,8 +928,8 @@ const B = {
|
|
|
928
928
|
pattern: "[0-9]*"
|
|
929
929
|
},
|
|
930
930
|
label: B.savings_goal,
|
|
931
|
-
onChange: (
|
|
932
|
-
|
|
931
|
+
onChange: (y) => {
|
|
932
|
+
y.target.value && d(Number(y.target.value.replace(/[^0-9]/g, "")));
|
|
933
933
|
},
|
|
934
934
|
value: l ? L(l, "0,0") : ""
|
|
935
935
|
}
|
|
@@ -955,7 +955,7 @@ const B = {
|
|
|
955
955
|
pattern: "[0-9]*"
|
|
956
956
|
},
|
|
957
957
|
label: B.meet_your_goal_within,
|
|
958
|
-
onChange: (
|
|
958
|
+
onChange: (y) => h(Number(y.target.value)),
|
|
959
959
|
sx: {
|
|
960
960
|
"& .MuiInputBase-root": {
|
|
961
961
|
borderBottomRightRadius: 0,
|
|
@@ -969,7 +969,7 @@ const B = {
|
|
|
969
969
|
}
|
|
970
970
|
),
|
|
971
971
|
/* @__PURE__ */ e(
|
|
972
|
-
|
|
972
|
+
C,
|
|
973
973
|
{
|
|
974
974
|
sx: {
|
|
975
975
|
"& .MuiInputBase-root": {
|
|
@@ -980,18 +980,18 @@ const B = {
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
},
|
|
983
|
-
children: /* @__PURE__ */ e(ct, { label: "", onChange: f, options: er, value:
|
|
983
|
+
children: /* @__PURE__ */ e(ct, { label: "", onChange: f, options: er, value: b })
|
|
984
984
|
}
|
|
985
985
|
)
|
|
986
986
|
] }),
|
|
987
|
-
/* @__PURE__ */ e(
|
|
987
|
+
/* @__PURE__ */ e(W, { fullWidth: !0, onClick: w, type: "submit", variant: "contained", children: B.calculate })
|
|
988
988
|
] }) }) });
|
|
989
989
|
}, nr = S(tr), Ae = {
|
|
990
990
|
connect_accounts: "Connect Accounts",
|
|
991
991
|
more_accounts: "More Accounts",
|
|
992
992
|
your_savings: "Your Savings"
|
|
993
993
|
}, or = () => {
|
|
994
|
-
const { savingsAccounts: t } =
|
|
994
|
+
const { savingsAccounts: t } = Me(), [r, n] = m.useState(!1), o = m.useMemo(
|
|
995
995
|
() => t.reduce((s, i) => s + (i.balance ?? 0), 0),
|
|
996
996
|
[t]
|
|
997
997
|
);
|
|
@@ -1002,7 +1002,7 @@ const B = {
|
|
|
1002
1002
|
] }) }),
|
|
1003
1003
|
/* @__PURE__ */ e(nr, { total: o }),
|
|
1004
1004
|
/* @__PURE__ */ e(
|
|
1005
|
-
|
|
1005
|
+
oe,
|
|
1006
1006
|
{
|
|
1007
1007
|
onClose: () => n(!1),
|
|
1008
1008
|
showConnectWidget: r,
|
|
@@ -1010,7 +1010,7 @@ const B = {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
)
|
|
1012
1012
|
] });
|
|
1013
|
-
}, rr = S(or),
|
|
1013
|
+
}, rr = S(or), We = S(
|
|
1014
1014
|
({ label: t, value: r, status: n, bottomComponent: o, statusBarData: s = [] }) => {
|
|
1015
1015
|
const i = {
|
|
1016
1016
|
GOOD: {
|
|
@@ -1075,11 +1075,11 @@ const B = {
|
|
|
1075
1075
|
}, ir = ["$0", "$250", "$500", "$750", "$1k"], sr = () => {
|
|
1076
1076
|
const { healthScore: t } = F(), r = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = Pn(r), o = vt(r);
|
|
1077
1077
|
return /* @__PURE__ */ e(
|
|
1078
|
-
|
|
1078
|
+
We,
|
|
1079
1079
|
{
|
|
1080
1080
|
bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: ir.map((s) => /* @__PURE__ */ a(u, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1081
1081
|
/* @__PURE__ */ e(
|
|
1082
|
-
|
|
1082
|
+
ne,
|
|
1083
1083
|
{
|
|
1084
1084
|
orientation: "vertical",
|
|
1085
1085
|
sx: {
|
|
@@ -1112,24 +1112,24 @@ const B = {
|
|
|
1112
1112
|
width: p = "100%",
|
|
1113
1113
|
zeroState: l = /* @__PURE__ */ e(ro, {})
|
|
1114
1114
|
}) => {
|
|
1115
|
-
const { getCategoryName: d } = Ye(), { onEvent: _ } = Nn(), { categories: h } =
|
|
1116
|
-
const M = t.find((
|
|
1115
|
+
const { getCategoryName: d } = Ye(), { onEvent: _ } = Nn(), { categories: h } = v(), { clearExpandedSplits: b, setShowInsights: f, toggleSplit: w } = oo(), y = (x) => {
|
|
1116
|
+
const M = t.find(($) => $.guid === x);
|
|
1117
1117
|
if (M?.has_been_split) {
|
|
1118
|
-
|
|
1118
|
+
w(M.guid);
|
|
1119
1119
|
return;
|
|
1120
1120
|
}
|
|
1121
1121
|
_(ao.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
1122
1122
|
account_guid: M?.account_guid,
|
|
1123
|
-
transaction_guid:
|
|
1124
|
-
}), s?.(
|
|
1123
|
+
transaction_guid: x
|
|
1124
|
+
}), s?.(x);
|
|
1125
1125
|
}, D = m.useRef(null), g = no({
|
|
1126
1126
|
count: t.length,
|
|
1127
1127
|
getScrollElement: () => D.current,
|
|
1128
|
-
estimateSize: (
|
|
1128
|
+
estimateSize: (x) => ut + (Ne(x, t) ? _t : 0),
|
|
1129
1129
|
overscan: 5
|
|
1130
1130
|
});
|
|
1131
|
-
return m.useEffect(() => g.measure(), [t]), m.useEffect(() => f(i), [i]), m.useEffect(() => () =>
|
|
1132
|
-
|
|
1131
|
+
return m.useEffect(() => g.measure(), [t]), m.useEffect(() => f(i), [i]), m.useEffect(() => () => b(), []), /* @__PURE__ */ e(Re, { sx: { width: p }, children: /* @__PURE__ */ e(C, { height: n, overflow: "auto", ref: D, width: p, children: /* @__PURE__ */ a(
|
|
1132
|
+
C,
|
|
1133
1133
|
{
|
|
1134
1134
|
height: (
|
|
1135
1135
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
@@ -1140,23 +1140,23 @@ const B = {
|
|
|
1140
1140
|
children: [
|
|
1141
1141
|
c && o,
|
|
1142
1142
|
!c && g.getVirtualItems().length === 0 && l,
|
|
1143
|
-
!c && g.getVirtualItems().length > 0 && g.getVirtualItems().map((
|
|
1144
|
-
const M = t[
|
|
1143
|
+
!c && g.getVirtualItems().length > 0 && g.getVirtualItems().map((x) => {
|
|
1144
|
+
const M = t[x.index], $ = Ne(x.index, t), G = Ft(x.index, t), H = ut + ($ ? _t : 0);
|
|
1145
1145
|
return /* @__PURE__ */ a(
|
|
1146
|
-
|
|
1146
|
+
C,
|
|
1147
1147
|
{
|
|
1148
1148
|
sx: {
|
|
1149
|
-
height:
|
|
1149
|
+
height: H,
|
|
1150
1150
|
position: "absolute",
|
|
1151
|
-
transform: `translateY(${
|
|
1151
|
+
transform: `translateY(${x.start}px)`,
|
|
1152
1152
|
width: "100%"
|
|
1153
1153
|
},
|
|
1154
1154
|
children: [
|
|
1155
|
-
|
|
1155
|
+
$ && /* @__PURE__ */ e(Pt, { bgcolor: r, children: Ze(M.date) }),
|
|
1156
1156
|
/* @__PURE__ */ e(
|
|
1157
1157
|
Bt,
|
|
1158
1158
|
{
|
|
1159
|
-
...s && { onClick:
|
|
1159
|
+
...s && { onClick: y },
|
|
1160
1160
|
transaction: {
|
|
1161
1161
|
...M,
|
|
1162
1162
|
category: h.default_categories[M.top_level_category_guid]?.replace(
|
|
@@ -1166,7 +1166,7 @@ const B = {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
),
|
|
1169
|
-
/* @__PURE__ */ e(
|
|
1169
|
+
/* @__PURE__ */ e(ne, { sx: { ml: G ? 24 : 0 } })
|
|
1170
1170
|
]
|
|
1171
1171
|
},
|
|
1172
1172
|
M.guid
|
|
@@ -1175,17 +1175,17 @@ const B = {
|
|
|
1175
1175
|
]
|
|
1176
1176
|
}
|
|
1177
1177
|
) }) });
|
|
1178
|
-
}, dr = S(lr),
|
|
1178
|
+
}, dr = S(lr), $e = ({
|
|
1179
1179
|
transactions: t = [],
|
|
1180
1180
|
amountColor: r = "success.main",
|
|
1181
1181
|
amountPosition: n = "center",
|
|
1182
1182
|
formatDate: o = Ze,
|
|
1183
1183
|
secondaryIcon: s
|
|
1184
1184
|
}) => {
|
|
1185
|
-
const i =
|
|
1186
|
-
return !t || t.length === 0 ? /* @__PURE__ */ a(
|
|
1187
|
-
/* @__PURE__ */ e(
|
|
1188
|
-
|
|
1185
|
+
const i = E(), { connect: c, finstrong: p } = v(), [l, d] = m.useState(!1), [_, h] = m.useState(!1), b = 3, f = t.length > b, w = t.length - b;
|
|
1186
|
+
return !t || t.length === 0 ? /* @__PURE__ */ a(z, { children: [
|
|
1187
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
1188
|
+
W,
|
|
1189
1189
|
{
|
|
1190
1190
|
onClick: () => h(!0),
|
|
1191
1191
|
size: "small",
|
|
@@ -1195,7 +1195,7 @@ const B = {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
) }),
|
|
1197
1197
|
/* @__PURE__ */ e(
|
|
1198
|
-
|
|
1198
|
+
oe,
|
|
1199
1199
|
{
|
|
1200
1200
|
onClose: () => h(!1),
|
|
1201
1201
|
showConnectWidget: _,
|
|
@@ -1203,7 +1203,7 @@ const B = {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
)
|
|
1205
1205
|
] }) : /* @__PURE__ */ a(u, { sx: { gap: 16 }, children: [
|
|
1206
|
-
/* @__PURE__ */ e(
|
|
1206
|
+
/* @__PURE__ */ e(C, { sx: { border: `1px solid ${i.palette.divider}`, borderRadius: 2 }, children: t.slice(0, b).map((y, D) => /* @__PURE__ */ a(
|
|
1207
1207
|
u,
|
|
1208
1208
|
{
|
|
1209
1209
|
sx: {
|
|
@@ -1217,8 +1217,8 @@ const B = {
|
|
|
1217
1217
|
/* @__PURE__ */ e(u, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
|
|
1218
1218
|
kn,
|
|
1219
1219
|
{
|
|
1220
|
-
categoryGuid:
|
|
1221
|
-
merchantGuid:
|
|
1220
|
+
categoryGuid: y.top_level_category_guid || "",
|
|
1221
|
+
merchantGuid: y.merchant_guid || "",
|
|
1222
1222
|
size: 32
|
|
1223
1223
|
}
|
|
1224
1224
|
) }),
|
|
@@ -1230,7 +1230,7 @@ const B = {
|
|
|
1230
1230
|
flexDirection: "row",
|
|
1231
1231
|
gap: 12,
|
|
1232
1232
|
justifyContent: "space-between",
|
|
1233
|
-
...D < Math.min(t.length,
|
|
1233
|
+
...D < Math.min(t.length, b) - 1 && {
|
|
1234
1234
|
borderBottom: `1px solid ${i.palette.divider}`
|
|
1235
1235
|
},
|
|
1236
1236
|
pb: 14,
|
|
@@ -1239,38 +1239,38 @@ const B = {
|
|
|
1239
1239
|
},
|
|
1240
1240
|
children: [
|
|
1241
1241
|
/* @__PURE__ */ a(u, { sx: { gap: 4 }, children: [
|
|
1242
|
-
/* @__PURE__ */ e(k, { bold: !0, variant: "body1", children:
|
|
1242
|
+
/* @__PURE__ */ e(k, { bold: !0, variant: "body1", children: y.description }),
|
|
1243
1243
|
/* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1244
1244
|
!!s && s,
|
|
1245
|
-
/* @__PURE__ */ e(I, { variant: "caption", children: o(
|
|
1245
|
+
/* @__PURE__ */ e(I, { variant: "caption", children: o(y.date) })
|
|
1246
1246
|
] })
|
|
1247
1247
|
] }),
|
|
1248
|
-
/* @__PURE__ */ e(k, { bold: !0, sx: { color: r, flexShrink: 0 }, variant: "body1", children: L(
|
|
1248
|
+
/* @__PURE__ */ e(k, { bold: !0, sx: { color: r, flexShrink: 0 }, variant: "body1", children: L(y.amount, "0,0.00") })
|
|
1249
1249
|
]
|
|
1250
1250
|
},
|
|
1251
|
-
|
|
1251
|
+
y.guid || D
|
|
1252
1252
|
)
|
|
1253
1253
|
]
|
|
1254
1254
|
},
|
|
1255
1255
|
D
|
|
1256
1256
|
)) }),
|
|
1257
|
-
f && /* @__PURE__ */ a(
|
|
1258
|
-
/* @__PURE__ */ e(
|
|
1259
|
-
|
|
1257
|
+
f && /* @__PURE__ */ a(z, { children: [
|
|
1258
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
1259
|
+
W,
|
|
1260
1260
|
{
|
|
1261
1261
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1262
1262
|
onClick: () => d(!0),
|
|
1263
1263
|
size: "small",
|
|
1264
1264
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1265
1265
|
children: /* @__PURE__ */ a(I, { bold: !0, variant: "body1", children: [
|
|
1266
|
-
|
|
1266
|
+
w,
|
|
1267
1267
|
" ",
|
|
1268
1268
|
p.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1269
1269
|
] })
|
|
1270
1270
|
}
|
|
1271
1271
|
) }),
|
|
1272
1272
|
/* @__PURE__ */ e(
|
|
1273
|
-
|
|
1273
|
+
te,
|
|
1274
1274
|
{
|
|
1275
1275
|
isOpen: l,
|
|
1276
1276
|
onClose: () => d(!1),
|
|
@@ -1285,10 +1285,10 @@ const B = {
|
|
|
1285
1285
|
finstrong: {
|
|
1286
1286
|
key_indicators_spend: { pay_bills_on_time_drawer: t }
|
|
1287
1287
|
}
|
|
1288
|
-
} =
|
|
1288
|
+
} = v(), { getSpendingFeeTransactions: r, allTransactions: n } = F();
|
|
1289
1289
|
return m.useEffect(() => {
|
|
1290
1290
|
r().finally();
|
|
1291
|
-
}, []), /* @__PURE__ */ e(
|
|
1291
|
+
}, []), /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ a(
|
|
1292
1292
|
K,
|
|
1293
1293
|
{
|
|
1294
1294
|
sx: {
|
|
@@ -1318,7 +1318,7 @@ const B = {
|
|
|
1318
1318
|
children: [
|
|
1319
1319
|
/* @__PURE__ */ e(N, { sx: { textAlign: "left", pb: 8 }, children: t.pay_bills_on_time_sticky_fee_count }),
|
|
1320
1320
|
/* @__PURE__ */ e(
|
|
1321
|
-
|
|
1321
|
+
$e,
|
|
1322
1322
|
{
|
|
1323
1323
|
amountColor: "text.primary",
|
|
1324
1324
|
amountPosition: "flex-start",
|
|
@@ -1331,7 +1331,7 @@ const B = {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
) });
|
|
1333
1333
|
}, ur = S(pr), _r = () => {
|
|
1334
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
1334
|
+
const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_spend: n } = r, { pay_bills_on_time_drawer: o } = n, s = Bn(t.spending_fee_transaction_count);
|
|
1335
1335
|
return /* @__PURE__ */ a(
|
|
1336
1336
|
u,
|
|
1337
1337
|
{
|
|
@@ -1355,7 +1355,7 @@ const B = {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
);
|
|
1357
1357
|
}, hr = S(_r), mr = () => {
|
|
1358
|
-
const { savingsAndCheckingAccountsBalance: t } =
|
|
1358
|
+
const { savingsAndCheckingAccountsBalance: t } = Me(), { finstrong: r } = v();
|
|
1359
1359
|
return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1360
1360
|
/* @__PURE__ */ e(
|
|
1361
1361
|
Se,
|
|
@@ -1373,7 +1373,7 @@ const B = {
|
|
|
1373
1373
|
)
|
|
1374
1374
|
] });
|
|
1375
1375
|
}, gr = S(mr), yr = () => {
|
|
1376
|
-
const { finstrong: t } =
|
|
1376
|
+
const { finstrong: t } = v(), { healthScore: r, allTransactions: n, loadSpendTransactions: o, loadDebtSpend: s } = F(), { isInitialized: i } = j();
|
|
1377
1377
|
m.useEffect(() => {
|
|
1378
1378
|
i && (o().finally(), s().finally());
|
|
1379
1379
|
}, [i]);
|
|
@@ -1389,11 +1389,11 @@ const B = {
|
|
|
1389
1389
|
title: t.key_indicators_save.drawer_daily_spend
|
|
1390
1390
|
}
|
|
1391
1391
|
),
|
|
1392
|
-
/* @__PURE__ */ e(
|
|
1392
|
+
/* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: c })
|
|
1393
1393
|
] }) : /* @__PURE__ */ e(J, {});
|
|
1394
1394
|
}, br = S(yr), fr = () => {
|
|
1395
|
-
const [t, r] = m.useState(0), { finstrong: n } =
|
|
1396
|
-
return /* @__PURE__ */ a(
|
|
1395
|
+
const [t, r] = m.useState(0), { finstrong: n } = v();
|
|
1396
|
+
return /* @__PURE__ */ a(z, { children: [
|
|
1397
1397
|
/* @__PURE__ */ a(K, { children: [
|
|
1398
1398
|
/* @__PURE__ */ a(
|
|
1399
1399
|
qe,
|
|
@@ -1406,7 +1406,7 @@ const B = {
|
|
|
1406
1406
|
variant: "fullWidth",
|
|
1407
1407
|
children: [
|
|
1408
1408
|
/* @__PURE__ */ e(
|
|
1409
|
-
|
|
1409
|
+
pe,
|
|
1410
1410
|
{
|
|
1411
1411
|
"aria-controls": "available-details-tabpanel-0",
|
|
1412
1412
|
label: n.key_indicators_save.drawer_available,
|
|
@@ -1414,7 +1414,7 @@ const B = {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
),
|
|
1416
1416
|
/* @__PURE__ */ e(
|
|
1417
|
-
|
|
1417
|
+
pe,
|
|
1418
1418
|
{
|
|
1419
1419
|
"aria-controls": "spending-details-tabpanel-1",
|
|
1420
1420
|
label: n.key_indicators_save.drawer_spending,
|
|
@@ -1424,15 +1424,15 @@ const B = {
|
|
|
1424
1424
|
]
|
|
1425
1425
|
}
|
|
1426
1426
|
),
|
|
1427
|
-
/* @__PURE__ */ e(
|
|
1428
|
-
/* @__PURE__ */ e(
|
|
1427
|
+
/* @__PURE__ */ e(ue, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(gr, {}) }),
|
|
1428
|
+
/* @__PURE__ */ e(ue, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(br, {}) })
|
|
1429
1429
|
] }),
|
|
1430
1430
|
/* @__PURE__ */ e(Qe, { chartFor: "savingsOverTime" })
|
|
1431
1431
|
] });
|
|
1432
1432
|
}, xr = S(fr), Sr = () => {
|
|
1433
|
-
const { finstrong: t } =
|
|
1433
|
+
const { finstrong: t } = v(), { healthScore: r } = F(), n = r.months_of_cash_on_hand, o = wt(n ? n * 30 : null), s = 183 / 6, i = Math.floor(n), c = Math.round((n - i) * s), p = n / 6 * 100;
|
|
1434
1434
|
return /* @__PURE__ */ e(
|
|
1435
|
-
|
|
1435
|
+
We,
|
|
1436
1436
|
{
|
|
1437
1437
|
bottomComponent: /* @__PURE__ */ e(
|
|
1438
1438
|
u,
|
|
@@ -1453,7 +1453,7 @@ const B = {
|
|
|
1453
1453
|
},
|
|
1454
1454
|
children: [
|
|
1455
1455
|
/* @__PURE__ */ e(
|
|
1456
|
-
|
|
1456
|
+
ne,
|
|
1457
1457
|
{
|
|
1458
1458
|
orientation: "vertical",
|
|
1459
1459
|
sx: {
|
|
@@ -1480,9 +1480,9 @@ const B = {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
);
|
|
1482
1482
|
}, Cr = S(Sr), vr = () => {
|
|
1483
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
1483
|
+
const { healthScore: t } = F(), { finstrong: r } = v(), n = Te(t.debt_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, i = ((c) => o ? "MISSING" : c <= 30 ? "GOOD" : c >= 31 && c <= 39 ? "FAIR" : c >= 40 ? "OFF_TRACK" : "MISSING")(n);
|
|
1484
1484
|
return /* @__PURE__ */ e(
|
|
1485
|
-
|
|
1485
|
+
We,
|
|
1486
1486
|
{
|
|
1487
1487
|
bottomComponent: /* @__PURE__ */ a(
|
|
1488
1488
|
u,
|
|
@@ -1497,7 +1497,7 @@ const B = {
|
|
|
1497
1497
|
},
|
|
1498
1498
|
children: [
|
|
1499
1499
|
/* @__PURE__ */ e(
|
|
1500
|
-
|
|
1500
|
+
C,
|
|
1501
1501
|
{
|
|
1502
1502
|
sx: {
|
|
1503
1503
|
left: "30%",
|
|
@@ -1515,7 +1515,7 @@ const B = {
|
|
|
1515
1515
|
},
|
|
1516
1516
|
children: [
|
|
1517
1517
|
/* @__PURE__ */ e(
|
|
1518
|
-
|
|
1518
|
+
ne,
|
|
1519
1519
|
{
|
|
1520
1520
|
orientation: "vertical",
|
|
1521
1521
|
sx: {
|
|
@@ -1531,7 +1531,7 @@ const B = {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
),
|
|
1533
1533
|
/* @__PURE__ */ e(
|
|
1534
|
-
|
|
1534
|
+
C,
|
|
1535
1535
|
{
|
|
1536
1536
|
sx: {
|
|
1537
1537
|
display: "flex",
|
|
@@ -1560,7 +1560,7 @@ const B = {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
);
|
|
1562
1562
|
}, wr = S(vr), kr = () => {
|
|
1563
|
-
const { healthScore: t, allTransactions: r } = F(), { connect: n, finstrong: o } =
|
|
1563
|
+
const { healthScore: t, allTransactions: r } = F(), { connect: n, finstrong: o } = v(), [s, i] = m.useState(!1);
|
|
1564
1564
|
return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1565
1565
|
/* @__PURE__ */ e(
|
|
1566
1566
|
Se,
|
|
@@ -1572,9 +1572,9 @@ const B = {
|
|
|
1572
1572
|
),
|
|
1573
1573
|
r.income.length ? (
|
|
1574
1574
|
// TODO: Need to add More Transactions functionality
|
|
1575
|
-
/* @__PURE__ */ e(
|
|
1575
|
+
/* @__PURE__ */ e($e, { transactions: r.income.map((c) => c.transaction) })
|
|
1576
1576
|
) : /* @__PURE__ */ e(
|
|
1577
|
-
|
|
1577
|
+
W,
|
|
1578
1578
|
{
|
|
1579
1579
|
onClick: () => {
|
|
1580
1580
|
i(!0);
|
|
@@ -1584,7 +1584,7 @@ const B = {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
),
|
|
1586
1586
|
/* @__PURE__ */ e(
|
|
1587
|
-
|
|
1587
|
+
oe,
|
|
1588
1588
|
{
|
|
1589
1589
|
onClose: () => i(!1),
|
|
1590
1590
|
showConnectWidget: s,
|
|
@@ -1593,7 +1593,7 @@ const B = {
|
|
|
1593
1593
|
)
|
|
1594
1594
|
] });
|
|
1595
1595
|
}, Mr = S(kr), Dr = () => {
|
|
1596
|
-
const { allTransactions: t, healthScore: r } = F(), { connect: n, finstrong: o } =
|
|
1596
|
+
const { allTransactions: t, healthScore: r } = F(), { connect: n, finstrong: o } = v(), [s, i] = m.useState(!1);
|
|
1597
1597
|
return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
|
|
1598
1598
|
/* @__PURE__ */ e(
|
|
1599
1599
|
Se,
|
|
@@ -1606,14 +1606,14 @@ const B = {
|
|
|
1606
1606
|
t.debtSpend.length ? (
|
|
1607
1607
|
//TODO: Need to add More Transactions functionality
|
|
1608
1608
|
/* @__PURE__ */ e(
|
|
1609
|
-
|
|
1609
|
+
$e,
|
|
1610
1610
|
{
|
|
1611
1611
|
amountColor: "text.primary",
|
|
1612
1612
|
transactions: t.debtSpend.map((c) => c.transaction)
|
|
1613
1613
|
}
|
|
1614
1614
|
)
|
|
1615
1615
|
) : /* @__PURE__ */ e(
|
|
1616
|
-
|
|
1616
|
+
W,
|
|
1617
1617
|
{
|
|
1618
1618
|
onClick: () => {
|
|
1619
1619
|
i(!0);
|
|
@@ -1623,7 +1623,7 @@ const B = {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
),
|
|
1625
1625
|
/* @__PURE__ */ e(
|
|
1626
|
-
|
|
1626
|
+
oe,
|
|
1627
1627
|
{
|
|
1628
1628
|
onClose: () => i(!1),
|
|
1629
1629
|
showConnectWidget: s,
|
|
@@ -1638,15 +1638,15 @@ const B = {
|
|
|
1638
1638
|
style: o,
|
|
1639
1639
|
...s
|
|
1640
1640
|
}) => {
|
|
1641
|
-
const i =
|
|
1641
|
+
const i = E(), c = m.useRef(null), { width: p } = uo({
|
|
1642
1642
|
width: o.width
|
|
1643
1643
|
});
|
|
1644
1644
|
m.useLayoutEffect(() => {
|
|
1645
1645
|
const h = new ResizeObserver(() => {
|
|
1646
1646
|
window.requestAnimationFrame(() => {
|
|
1647
1647
|
if (c.current) {
|
|
1648
|
-
const { width:
|
|
1649
|
-
|
|
1648
|
+
const { width: b } = c.current.getBoundingClientRect(), f = b / 2, w = c.current.querySelector("text");
|
|
1649
|
+
w && w.setAttribute("transform", `translate(${f}, -8)`);
|
|
1650
1650
|
}
|
|
1651
1651
|
});
|
|
1652
1652
|
});
|
|
@@ -1682,9 +1682,9 @@ const B = {
|
|
|
1682
1682
|
totalComparison: p,
|
|
1683
1683
|
totalMain: l
|
|
1684
1684
|
}) => {
|
|
1685
|
-
const d =
|
|
1686
|
-
() => r.sort((g,
|
|
1687
|
-
const
|
|
1685
|
+
const d = E(), _ = so(d.breakpoints.down("xs")), h = m.useMemo(
|
|
1686
|
+
() => r.sort((g, x) => g.month - x.month).map((g) => {
|
|
1687
|
+
const x = Ln(g.month), M = {
|
|
1688
1688
|
spending_vs_income: {
|
|
1689
1689
|
main: g.standard_spend,
|
|
1690
1690
|
comparison: g.income,
|
|
@@ -1699,20 +1699,20 @@ const B = {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
};
|
|
1701
1701
|
return {
|
|
1702
|
-
label:
|
|
1702
|
+
label: x,
|
|
1703
1703
|
...M[t]
|
|
1704
1704
|
};
|
|
1705
1705
|
}),
|
|
1706
1706
|
[r, t]
|
|
1707
|
-
),
|
|
1707
|
+
), b = {
|
|
1708
1708
|
dataKey: "label",
|
|
1709
1709
|
scaleType: "band"
|
|
1710
|
-
}, f = Math.max(...h.map((g) => Math.max(g.main, g.comparison))),
|
|
1710
|
+
}, f = Math.max(...h.map((g) => Math.max(g.main, g.comparison))), w = Math.ceil(f * 1.2 / 1e3) * 1e3, y = w / 3, D = {
|
|
1711
1711
|
scaleType: "linear",
|
|
1712
1712
|
min: 0,
|
|
1713
|
-
max:
|
|
1713
|
+
max: w,
|
|
1714
1714
|
tickNumber: 4,
|
|
1715
|
-
tickMinStep:
|
|
1715
|
+
tickMinStep: y,
|
|
1716
1716
|
valueFormatter: (g) => g === 0 ? "$0" : `$${(g / 1e3).toFixed(0)}K`
|
|
1717
1717
|
};
|
|
1718
1718
|
return /* @__PURE__ */ a(
|
|
@@ -1736,7 +1736,7 @@ const B = {
|
|
|
1736
1736
|
children: [
|
|
1737
1737
|
/* @__PURE__ */ e(N, { children: n }),
|
|
1738
1738
|
o && /* @__PURE__ */ e(
|
|
1739
|
-
|
|
1739
|
+
W,
|
|
1740
1740
|
{
|
|
1741
1741
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1742
1742
|
onClick: s,
|
|
@@ -1755,7 +1755,7 @@ const B = {
|
|
|
1755
1755
|
/* @__PURE__ */ a(u, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
|
|
1756
1756
|
/* @__PURE__ */ a(u, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
|
|
1757
1757
|
/* @__PURE__ */ e(
|
|
1758
|
-
|
|
1758
|
+
C,
|
|
1759
1759
|
{
|
|
1760
1760
|
sx: {
|
|
1761
1761
|
width: 10,
|
|
@@ -1775,7 +1775,7 @@ const B = {
|
|
|
1775
1775
|
] }),
|
|
1776
1776
|
/* @__PURE__ */ a(u, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
1777
1777
|
/* @__PURE__ */ e(
|
|
1778
|
-
|
|
1778
|
+
C,
|
|
1779
1779
|
{
|
|
1780
1780
|
sx: {
|
|
1781
1781
|
width: 10,
|
|
@@ -1805,7 +1805,7 @@ const B = {
|
|
|
1805
1805
|
{ dataKey: "main", type: "bar" },
|
|
1806
1806
|
{ dataKey: "comparison", type: "bar" }
|
|
1807
1807
|
],
|
|
1808
|
-
xAxis: [
|
|
1808
|
+
xAxis: [b],
|
|
1809
1809
|
yAxis: [D],
|
|
1810
1810
|
children: [
|
|
1811
1811
|
/* @__PURE__ */ e(
|
|
@@ -1813,16 +1813,16 @@ const B = {
|
|
|
1813
1813
|
{
|
|
1814
1814
|
slots: {
|
|
1815
1815
|
bar: (g) => {
|
|
1816
|
-
const { ownerState:
|
|
1816
|
+
const { ownerState: x, style: M, ...$ } = g;
|
|
1817
1817
|
return /* @__PURE__ */ e(
|
|
1818
1818
|
Ar,
|
|
1819
1819
|
{
|
|
1820
|
-
|
|
1821
|
-
color:
|
|
1820
|
+
...$,
|
|
1821
|
+
color: x.color,
|
|
1822
1822
|
data: h,
|
|
1823
1823
|
series: {
|
|
1824
|
-
index:
|
|
1825
|
-
type: Number(
|
|
1824
|
+
index: x.dataIndex,
|
|
1825
|
+
type: Number(x.id.toString().split("-").pop())
|
|
1826
1826
|
},
|
|
1827
1827
|
style: M
|
|
1828
1828
|
}
|
|
@@ -1878,10 +1878,10 @@ const B = {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
);
|
|
1880
1880
|
}, Tr = () => {
|
|
1881
|
-
const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } = F(), { isInitialized: o } = j(), [s, i] = m.useState(0), { finstrong: c } =
|
|
1881
|
+
const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } = F(), { isInitialized: o } = j(), [s, i] = m.useState(0), { finstrong: c } = v();
|
|
1882
1882
|
return m.useEffect(() => {
|
|
1883
1883
|
o && (t().finally(), r().finally());
|
|
1884
|
-
}, [o]), /* @__PURE__ */ a(
|
|
1884
|
+
}, [o]), /* @__PURE__ */ a(z, { children: [
|
|
1885
1885
|
/* @__PURE__ */ a(K, { children: [
|
|
1886
1886
|
/* @__PURE__ */ a(
|
|
1887
1887
|
qe,
|
|
@@ -1894,7 +1894,7 @@ const B = {
|
|
|
1894
1894
|
variant: "fullWidth",
|
|
1895
1895
|
children: [
|
|
1896
1896
|
/* @__PURE__ */ e(
|
|
1897
|
-
|
|
1897
|
+
pe,
|
|
1898
1898
|
{
|
|
1899
1899
|
"aria-controls": "income-details-tabpanel-0",
|
|
1900
1900
|
id: "income-details-tab-0",
|
|
@@ -1903,7 +1903,7 @@ const B = {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
),
|
|
1905
1905
|
/* @__PURE__ */ e(
|
|
1906
|
-
|
|
1906
|
+
pe,
|
|
1907
1907
|
{
|
|
1908
1908
|
"aria-controls": "debt-payment-details-tabpanel-1",
|
|
1909
1909
|
id: "debt-payment-details-tab-1",
|
|
@@ -1915,7 +1915,7 @@ const B = {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
),
|
|
1917
1917
|
/* @__PURE__ */ e(
|
|
1918
|
-
|
|
1918
|
+
ue,
|
|
1919
1919
|
{
|
|
1920
1920
|
"aria-labelledby": "income-details-tab-0",
|
|
1921
1921
|
index: 0,
|
|
@@ -1925,7 +1925,7 @@ const B = {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
),
|
|
1927
1927
|
/* @__PURE__ */ e(
|
|
1928
|
-
|
|
1928
|
+
ue,
|
|
1929
1929
|
{
|
|
1930
1930
|
"aria-labelledby": "debt-payment-details-tab-1",
|
|
1931
1931
|
index: 1,
|
|
@@ -1935,7 +1935,7 @@ const B = {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
)
|
|
1937
1937
|
] }),
|
|
1938
|
-
n.length ? /* @__PURE__ */ a(
|
|
1938
|
+
n.length ? /* @__PURE__ */ a(z, { children: [
|
|
1939
1939
|
/* @__PURE__ */ e(
|
|
1940
1940
|
jt,
|
|
1941
1941
|
{
|
|
@@ -1947,7 +1947,7 @@ const B = {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
),
|
|
1949
1949
|
/* @__PURE__ */ e(Qe, { chartFor: "debtOverTime" })
|
|
1950
|
-
] }) : /* @__PURE__ */ a(
|
|
1950
|
+
] }) : /* @__PURE__ */ a(z, { children: [
|
|
1951
1951
|
/* @__PURE__ */ e(
|
|
1952
1952
|
Fe,
|
|
1953
1953
|
{
|
|
@@ -1983,14 +1983,14 @@ const B = {
|
|
|
1983
1983
|
] })
|
|
1984
1984
|
] });
|
|
1985
1985
|
}, Or = S(Tr), Rr = () => {
|
|
1986
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
1986
|
+
const { healthScore: t } = F(), { finstrong: r } = v(), n = Te(t.spend_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, i = ((p) => o ? "MISSING" : p < 100 ? "GOOD" : p >= 100 && p <= 109 ? "FAIR" : p >= 110 ? "OFF_TRACK" : "MISSING")(n), c = {
|
|
1987
1987
|
GOOD: [{ percentage: `${n}%` }],
|
|
1988
1988
|
FAIR: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
1989
1989
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
1990
1990
|
MISSING: [{ percentage: "0%" }]
|
|
1991
1991
|
}[i];
|
|
1992
1992
|
return /* @__PURE__ */ e(
|
|
1993
|
-
|
|
1993
|
+
We,
|
|
1994
1994
|
{
|
|
1995
1995
|
bottomComponent: /* @__PURE__ */ a(
|
|
1996
1996
|
u,
|
|
@@ -2024,22 +2024,22 @@ const B = {
|
|
|
2024
2024
|
}, Fr = S(Rr), Pr = ({
|
|
2025
2025
|
onPrimaryCtaClick: t
|
|
2026
2026
|
}) => {
|
|
2027
|
-
const r =
|
|
2027
|
+
const r = E(), { monthlySummaries: n } = F(), { finstrong: o, goals: s, spending: i } = v(), { selectedAccounts: c } = j(), { categories: p, dateRangeCategoryTotals: l, loadDateRangeCategoryTotals: d } = Ye(), { appDataStore: _ } = Kn(), [h, b] = m.useState("");
|
|
2028
2028
|
m.useEffect(() => {
|
|
2029
2029
|
d(
|
|
2030
2030
|
c,
|
|
2031
2031
|
Lt(/* @__PURE__ */ new Date()),
|
|
2032
|
-
|
|
2032
|
+
Wt(/* @__PURE__ */ new Date())
|
|
2033
2033
|
).finally();
|
|
2034
2034
|
}, [c]);
|
|
2035
2035
|
const f = m.useMemo(
|
|
2036
2036
|
() => _o(p, s, r, l),
|
|
2037
2037
|
[p, l]
|
|
2038
|
-
),
|
|
2039
|
-
|
|
2040
|
-
}, { totalSpending:
|
|
2041
|
-
(g, { standard_spend:
|
|
2042
|
-
totalSpending: g.totalSpending +
|
|
2038
|
+
), w = (g) => {
|
|
2039
|
+
b(h === g ? "" : g);
|
|
2040
|
+
}, { totalSpending: y, totalIncome: D } = m.useMemo(() => n?.reduce(
|
|
2041
|
+
(g, { standard_spend: x = 0, income: M = 0 }) => ({
|
|
2042
|
+
totalSpending: g.totalSpending + x,
|
|
2043
2043
|
totalIncome: g.totalIncome + M
|
|
2044
2044
|
}),
|
|
2045
2045
|
{ totalSpending: 0, totalIncome: 0 }
|
|
@@ -2058,7 +2058,7 @@ const B = {
|
|
|
2058
2058
|
onClick: () => t?.("trends"),
|
|
2059
2059
|
title: o.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2060
2060
|
totalComparison: L(D, "0,0.00"),
|
|
2061
|
-
totalMain: L(
|
|
2061
|
+
totalMain: L(y, "0,0.00")
|
|
2062
2062
|
}
|
|
2063
2063
|
) : /* @__PURE__ */ e(
|
|
2064
2064
|
Fe,
|
|
@@ -2102,7 +2102,7 @@ const B = {
|
|
|
2102
2102
|
children: [
|
|
2103
2103
|
/* @__PURE__ */ e(N, { children: o.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2104
2104
|
_.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2105
|
-
|
|
2105
|
+
W,
|
|
2106
2106
|
{
|
|
2107
2107
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2108
2108
|
onClick: () => t?.("spending"),
|
|
@@ -2123,7 +2123,7 @@ const B = {
|
|
|
2123
2123
|
ho,
|
|
2124
2124
|
{
|
|
2125
2125
|
data: f,
|
|
2126
|
-
onSelected:
|
|
2126
|
+
onSelected: w,
|
|
2127
2127
|
selectedId: h,
|
|
2128
2128
|
totalLabel: i.total_spending
|
|
2129
2129
|
}
|
|
@@ -2132,7 +2132,7 @@ const B = {
|
|
|
2132
2132
|
mo,
|
|
2133
2133
|
{
|
|
2134
2134
|
data: f,
|
|
2135
|
-
onSelected:
|
|
2135
|
+
onSelected: w,
|
|
2136
2136
|
selectedId: h
|
|
2137
2137
|
}
|
|
2138
2138
|
)
|
|
@@ -2171,7 +2171,7 @@ const B = {
|
|
|
2171
2171
|
onClose: n,
|
|
2172
2172
|
onPrimaryCtaClick: o
|
|
2173
2173
|
}) => {
|
|
2174
|
-
const { finstrong: s } =
|
|
2174
|
+
const { finstrong: s } = v(), c = {
|
|
2175
2175
|
spendLessThanYouMake: {
|
|
2176
2176
|
title: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2177
2177
|
description: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
@@ -2240,7 +2240,7 @@ const B = {
|
|
|
2240
2240
|
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: c.content })
|
|
2241
2241
|
}
|
|
2242
2242
|
);
|
|
2243
|
-
},
|
|
2243
|
+
}, Wr = S(Lr), xe = ({
|
|
2244
2244
|
drawerFor: t,
|
|
2245
2245
|
title: r,
|
|
2246
2246
|
description: n,
|
|
@@ -2248,7 +2248,7 @@ const B = {
|
|
|
2248
2248
|
onPrimaryCtaClick: s
|
|
2249
2249
|
}) => {
|
|
2250
2250
|
const [i, c] = m.useState(!1);
|
|
2251
|
-
return /* @__PURE__ */ a(
|
|
2251
|
+
return /* @__PURE__ */ a(z, { children: [
|
|
2252
2252
|
/* @__PURE__ */ a(
|
|
2253
2253
|
u,
|
|
2254
2254
|
{
|
|
@@ -2277,7 +2277,7 @@ const B = {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
),
|
|
2279
2279
|
/* @__PURE__ */ e(
|
|
2280
|
-
|
|
2280
|
+
Wr,
|
|
2281
2281
|
{
|
|
2282
2282
|
drawerFor: t,
|
|
2283
2283
|
isOpen: i,
|
|
@@ -2286,9 +2286,9 @@ const B = {
|
|
|
2286
2286
|
}
|
|
2287
2287
|
)
|
|
2288
2288
|
] });
|
|
2289
|
-
},
|
|
2290
|
-
const { finstrong: r } =
|
|
2291
|
-
const l =
|
|
2289
|
+
}, $r = ({ onPrimaryCtaClick: t }) => {
|
|
2290
|
+
const { finstrong: r } = v(), { key_indicators_spend: n } = r, { healthScore: o } = F(), s = (p) => {
|
|
2291
|
+
const l = $n(p), d = {
|
|
2292
2292
|
GOOD: n.ratio_good_description,
|
|
2293
2293
|
FAIR: n.ratio_fair_description,
|
|
2294
2294
|
OFF_TRACK: n.ratio_off_track_description,
|
|
@@ -2300,7 +2300,7 @@ const B = {
|
|
|
2300
2300
|
title: n.ratio_card_title
|
|
2301
2301
|
};
|
|
2302
2302
|
}, { spendToIncomeRatio: i, spendFeeCount: c } = m.useMemo(() => {
|
|
2303
|
-
const p = o.spend_to_income_ratio !== null ? Math.round(o.spend_to_income_ratio * 100) : null, l = s(p), d =
|
|
2303
|
+
const p = o.spend_to_income_ratio !== null ? Math.round(o.spend_to_income_ratio * 100) : null, l = s(p), d = Wn(
|
|
2304
2304
|
o.spending_fee_transaction_count,
|
|
2305
2305
|
n
|
|
2306
2306
|
);
|
|
@@ -2317,7 +2317,7 @@ const B = {
|
|
|
2317
2317
|
{
|
|
2318
2318
|
cardState: i.cardState,
|
|
2319
2319
|
description: i.description,
|
|
2320
|
-
drawerFor:
|
|
2320
|
+
drawerFor: _e.SpendLessThanYouMake,
|
|
2321
2321
|
onPrimaryCtaClick: t,
|
|
2322
2322
|
title: i.title
|
|
2323
2323
|
}
|
|
@@ -2327,13 +2327,13 @@ const B = {
|
|
|
2327
2327
|
{
|
|
2328
2328
|
cardState: c.cardState,
|
|
2329
2329
|
description: c.description,
|
|
2330
|
-
drawerFor:
|
|
2330
|
+
drawerFor: _e.PayBillsOnTime,
|
|
2331
2331
|
title: c.title
|
|
2332
2332
|
}
|
|
2333
2333
|
)
|
|
2334
2334
|
] });
|
|
2335
|
-
}, zr = S(
|
|
2336
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
2335
|
+
}, zr = S($r), Er = () => {
|
|
2336
|
+
const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_save: n } = r, o = (p) => {
|
|
2337
2337
|
const l = wt(p), d = {
|
|
2338
2338
|
GOOD: n.days_of_cash_good_description,
|
|
2339
2339
|
FAIR: n.days_of_cash_fair_description,
|
|
@@ -2376,7 +2376,7 @@ const B = {
|
|
|
2376
2376
|
{
|
|
2377
2377
|
cardState: i.cardState,
|
|
2378
2378
|
description: i.description,
|
|
2379
|
-
drawerFor:
|
|
2379
|
+
drawerFor: _e.SaveEnoughToLiveOn,
|
|
2380
2380
|
title: i.title
|
|
2381
2381
|
}
|
|
2382
2382
|
),
|
|
@@ -2385,13 +2385,13 @@ const B = {
|
|
|
2385
2385
|
{
|
|
2386
2386
|
cardState: c.cardState,
|
|
2387
2387
|
description: c.description,
|
|
2388
|
-
drawerFor:
|
|
2388
|
+
drawerFor: _e.MaintainEmergencySavings,
|
|
2389
2389
|
title: c.title
|
|
2390
2390
|
}
|
|
2391
2391
|
)
|
|
2392
2392
|
] });
|
|
2393
2393
|
}, Gr = S(Er), Hr = () => {
|
|
2394
|
-
const { healthScore: t } = F(), { finstrong: r } =
|
|
2394
|
+
const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_borrow: n } = r, { user: o } = Q(), s = (l) => {
|
|
2395
2395
|
const d = zn(l), _ = {
|
|
2396
2396
|
GOOD: n.manage_debit_good_description,
|
|
2397
2397
|
FAIR: n.manage_debit_fair_description,
|
|
@@ -2428,7 +2428,7 @@ const B = {
|
|
|
2428
2428
|
{
|
|
2429
2429
|
cardState: c.cardState,
|
|
2430
2430
|
description: c.description,
|
|
2431
|
-
drawerFor:
|
|
2431
|
+
drawerFor: _e.HaveManageableDebt,
|
|
2432
2432
|
title: c.title
|
|
2433
2433
|
}
|
|
2434
2434
|
),
|
|
@@ -2437,14 +2437,14 @@ const B = {
|
|
|
2437
2437
|
{
|
|
2438
2438
|
cardState: p.cardState,
|
|
2439
2439
|
description: p.description,
|
|
2440
|
-
drawerFor:
|
|
2440
|
+
drawerFor: _e.HaveAGoodCreditScore,
|
|
2441
2441
|
title: p.title
|
|
2442
2442
|
}
|
|
2443
2443
|
)
|
|
2444
2444
|
] });
|
|
2445
2445
|
}, Nr = S(Hr), Kr = ({ onPrimaryCtaClick: t }) => {
|
|
2446
|
-
const [r, n] = m.useState(0), { finstrong: o } =
|
|
2447
|
-
return /* @__PURE__ */ a(
|
|
2446
|
+
const [r, n] = m.useState(0), { finstrong: o } = v();
|
|
2447
|
+
return /* @__PURE__ */ a(z, { children: [
|
|
2448
2448
|
/* @__PURE__ */ a(
|
|
2449
2449
|
qe,
|
|
2450
2450
|
{
|
|
@@ -2462,7 +2462,7 @@ const B = {
|
|
|
2462
2462
|
variant: "fullWidth",
|
|
2463
2463
|
children: [
|
|
2464
2464
|
/* @__PURE__ */ e(
|
|
2465
|
-
|
|
2465
|
+
pe,
|
|
2466
2466
|
{
|
|
2467
2467
|
"aria-controls": "spend-details-tabpanel-0",
|
|
2468
2468
|
icon: /* @__PURE__ */ e(Ke, { sx: { mr: 8 } }),
|
|
@@ -2473,7 +2473,7 @@ const B = {
|
|
|
2473
2473
|
}
|
|
2474
2474
|
),
|
|
2475
2475
|
/* @__PURE__ */ e(
|
|
2476
|
-
|
|
2476
|
+
pe,
|
|
2477
2477
|
{
|
|
2478
2478
|
"aria-controls": "save-details-tabpanel-1",
|
|
2479
2479
|
icon: /* @__PURE__ */ e(fn, { sx: { mr: 8 } }),
|
|
@@ -2484,7 +2484,7 @@ const B = {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
),
|
|
2486
2486
|
/* @__PURE__ */ e(
|
|
2487
|
-
|
|
2487
|
+
pe,
|
|
2488
2488
|
{
|
|
2489
2489
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2490
2490
|
icon: /* @__PURE__ */ e(xn, { sx: { mr: 8 } }),
|
|
@@ -2497,20 +2497,20 @@ const B = {
|
|
|
2497
2497
|
]
|
|
2498
2498
|
}
|
|
2499
2499
|
),
|
|
2500
|
-
/* @__PURE__ */ e(
|
|
2501
|
-
/* @__PURE__ */ e(
|
|
2502
|
-
/* @__PURE__ */ e(
|
|
2500
|
+
/* @__PURE__ */ e(ue, { index: 0, name: "spend-details", value: r, children: /* @__PURE__ */ e(zr, { onPrimaryCtaClick: t }) }),
|
|
2501
|
+
/* @__PURE__ */ e(ue, { index: 1, name: "save-details", value: r, children: /* @__PURE__ */ e(Gr, {}) }),
|
|
2502
|
+
/* @__PURE__ */ e(ue, { index: 2, name: "borrow-details", value: r, children: /* @__PURE__ */ e(Nr, {}) })
|
|
2503
2503
|
] });
|
|
2504
2504
|
}, jr = S(Kr), Yr = ({ onClick: t }) => {
|
|
2505
|
-
const { finstrong: r } =
|
|
2505
|
+
const { finstrong: r } = v(), { isCopyLoaded: n } = j();
|
|
2506
2506
|
return n ? /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2507
2507
|
/* @__PURE__ */ e(bt, { size: 48 }),
|
|
2508
2508
|
/* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2509
2509
|
/* @__PURE__ */ e(N, { children: r.missing_data_title }),
|
|
2510
2510
|
/* @__PURE__ */ e(k, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: r.missing_data_description })
|
|
2511
2511
|
] }),
|
|
2512
|
-
/* @__PURE__ */ e(
|
|
2513
|
-
|
|
2512
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
2513
|
+
W,
|
|
2514
2514
|
{
|
|
2515
2515
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2516
2516
|
onClick: t,
|
|
@@ -2540,14 +2540,14 @@ const B = {
|
|
|
2540
2540
|
transaction: l
|
|
2541
2541
|
}) => /* @__PURE__ */ a(m.Fragment, { children: [
|
|
2542
2542
|
/* @__PURE__ */ a(u, { children: [
|
|
2543
|
-
!!o.length && /* @__PURE__ */ e(
|
|
2543
|
+
!!o.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: o.reduce((d, _, h) => {
|
|
2544
2544
|
if (_.guid === l.guid) return d;
|
|
2545
|
-
const
|
|
2545
|
+
const b = Ne(h, o), f = Ft(h, o);
|
|
2546
2546
|
return d.push(
|
|
2547
2547
|
/* @__PURE__ */ a(m.Fragment, { children: [
|
|
2548
|
-
|
|
2548
|
+
b && /* @__PURE__ */ e(Pt, { children: Ze(_.date) }),
|
|
2549
2549
|
/* @__PURE__ */ e(Bt, { transaction: _ }),
|
|
2550
|
-
/* @__PURE__ */ e(
|
|
2550
|
+
/* @__PURE__ */ e(ne, { sx: { ml: f ? 44 : 0 } })
|
|
2551
2551
|
] }, _.guid)
|
|
2552
2552
|
), d;
|
|
2553
2553
|
}, []) }),
|
|
@@ -2564,11 +2564,11 @@ const B = {
|
|
|
2564
2564
|
}
|
|
2565
2565
|
)
|
|
2566
2566
|
] }),
|
|
2567
|
-
/* @__PURE__ */ e(
|
|
2568
|
-
|
|
2567
|
+
/* @__PURE__ */ e(C, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2568
|
+
W,
|
|
2569
2569
|
{
|
|
2570
2570
|
fullWidth: !0,
|
|
2571
|
-
onClick: () => s({ step:
|
|
2571
|
+
onClick: () => s({ step: O.MonthlyIncome, type: "main" }),
|
|
2572
2572
|
startIcon: /* @__PURE__ */ e(ft, {}),
|
|
2573
2573
|
children: Xr.add_more_income
|
|
2574
2574
|
}
|
|
@@ -2576,10 +2576,10 @@ const B = {
|
|
|
2576
2576
|
] }), Ur = S(qr), Zr = {
|
|
2577
2577
|
select_date: "Select Date"
|
|
2578
2578
|
}, Qr = ({ selectedDate: t, setSelectedDate: r }) => {
|
|
2579
|
-
const n =
|
|
2579
|
+
const n = E(), o = (s) => {
|
|
2580
2580
|
r(Math.floor(new Date(s).getTime() / 1e3));
|
|
2581
2581
|
};
|
|
2582
|
-
return /* @__PURE__ */ e(
|
|
2582
|
+
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(Co, { dateAdapter: $t, children: /* @__PURE__ */ e(
|
|
2583
2583
|
vo,
|
|
2584
2584
|
{
|
|
2585
2585
|
disableFuture: !0,
|
|
@@ -2613,7 +2613,7 @@ const B = {
|
|
|
2613
2613
|
credit_score: "Credit Score"
|
|
2614
2614
|
}, ta = ({ creditScore: t, setCreditScore: r }) => {
|
|
2615
2615
|
const n = !isNaN(t);
|
|
2616
|
-
return /* @__PURE__ */ e(
|
|
2616
|
+
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2617
2617
|
Oe,
|
|
2618
2618
|
{
|
|
2619
2619
|
error: !n,
|
|
@@ -2630,7 +2630,7 @@ const B = {
|
|
|
2630
2630
|
) });
|
|
2631
2631
|
}, na = S(ta), Yt = ({ value: t, completeCopy: r }) => /* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
|
|
2632
2632
|
/* @__PURE__ */ e(u, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, o) => /* @__PURE__ */ e(
|
|
2633
|
-
|
|
2633
|
+
C,
|
|
2634
2634
|
{
|
|
2635
2635
|
sx: {
|
|
2636
2636
|
bgcolor: o < t ? "primary.main" : "neutral.light",
|
|
@@ -2658,7 +2658,7 @@ const B = {
|
|
|
2658
2658
|
] }),
|
|
2659
2659
|
/* @__PURE__ */ e(Yt, { completeCopy: t, value: o })
|
|
2660
2660
|
] }), ht = {
|
|
2661
|
-
step:
|
|
2661
|
+
step: O.ConnectAccounts,
|
|
2662
2662
|
type: "main"
|
|
2663
2663
|
}, P = {
|
|
2664
2664
|
add_accounts: "Add Accounts",
|
|
@@ -2679,11 +2679,11 @@ const B = {
|
|
|
2679
2679
|
do_it_later: "Do It Later",
|
|
2680
2680
|
next: "Next"
|
|
2681
2681
|
}, ra = ({ isOpen: t, onClose: r }) => {
|
|
2682
|
-
const { visibleAccounts: n } =
|
|
2682
|
+
const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: s } = v(), { setSelectedAccounts: i } = j(), { addRepeatingTransaction: c, setDateRange: p } = Ve(), { filter: l, setFilter: d, transactions: _ } = jn(), { user: h, userProfile: b, updateUser: f, updateUserProfile: w } = Q(), [y, D] = m.useState(h.credit_score || 0), [g, x] = m.useState(
|
|
2683
2683
|
ht
|
|
2684
|
-
), [M,
|
|
2684
|
+
), [M, $] = m.useState(1), [G, H] = m.useState(Ot.EveryMonth), [T, V] = m.useState([]), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(h.birthday), [ce, he] = m.useState(15), [q, Je] = m.useState("");
|
|
2685
2685
|
m.useEffect(() => {
|
|
2686
|
-
p({ start: Lt(dt()), end:
|
|
2686
|
+
p({ start: Lt(dt()), end: Wt(dt()) });
|
|
2687
2687
|
}, []), m.useEffect(() => {
|
|
2688
2688
|
d({
|
|
2689
2689
|
accounts: n.map((A) => A.guid),
|
|
@@ -2698,44 +2698,44 @@ const B = {
|
|
|
2698
2698
|
() => _.find((A) => A.guid === q),
|
|
2699
2699
|
[q, _]
|
|
2700
2700
|
), Vt = m.useMemo(() => ({
|
|
2701
|
-
[
|
|
2702
|
-
[
|
|
2703
|
-
[
|
|
2704
|
-
[
|
|
2705
|
-
})[g.step], [
|
|
2701
|
+
[O.ConnectAccounts]: !0,
|
|
2702
|
+
[O.MonthlyIncome]: !!q,
|
|
2703
|
+
[O.Birthday]: !!h.birthday || !!X,
|
|
2704
|
+
[O.CreditScore]: !!h.credit_score || !!y
|
|
2705
|
+
})[g.step], [y, g, X, q, h]), le = n.length > 0, Xt = m.useMemo(() => {
|
|
2706
2706
|
const { step: A } = g;
|
|
2707
2707
|
let R = 0;
|
|
2708
|
-
return A >=
|
|
2709
|
-
}, [g.step,
|
|
2708
|
+
return A >= O.MonthlyIncome && le && R++, A >= O.Birthday && T.length && R++, A >= O.CreditScore && (h.birthday || h.credit_score) && R++, R;
|
|
2709
|
+
}, [g.step, le, T.length, h.birthday, h.credit_score]), qt = (A) => {
|
|
2710
2710
|
d({
|
|
2711
2711
|
...l,
|
|
2712
2712
|
custom: (R) => A ? So(R, A) : pt(R)
|
|
2713
2713
|
});
|
|
2714
2714
|
}, Ut = {
|
|
2715
|
-
[
|
|
2716
|
-
main:
|
|
2717
|
-
mainActionContent:
|
|
2715
|
+
[O.ConnectAccounts]: {
|
|
2716
|
+
main: le ? /* @__PURE__ */ e(Nt, { shouldShowBalance: !1 }) : null,
|
|
2717
|
+
mainActionContent: le ? P.next : P.add_accounts,
|
|
2718
2718
|
primaryText: P.connect_your_accounts_primary,
|
|
2719
2719
|
secondaryText: P.connect_your_accounts_secondary
|
|
2720
2720
|
},
|
|
2721
|
-
[
|
|
2721
|
+
[O.MonthlyIncome]: {
|
|
2722
2722
|
detail: /* @__PURE__ */ e(
|
|
2723
2723
|
Ur,
|
|
2724
2724
|
{
|
|
2725
2725
|
firstDay: M,
|
|
2726
|
-
frequency:
|
|
2727
|
-
incomeTransactions:
|
|
2728
|
-
secondDay:
|
|
2726
|
+
frequency: G,
|
|
2727
|
+
incomeTransactions: T,
|
|
2728
|
+
secondDay: ce,
|
|
2729
2729
|
setCurrentStep: (A) => {
|
|
2730
|
-
|
|
2731
|
-
if (R.some((
|
|
2732
|
-
const Ie = _.find((
|
|
2733
|
-
return Ie ? [...R, { ...Ie, firstDay: M, frequency:
|
|
2730
|
+
x(A), V((R) => {
|
|
2731
|
+
if (R.some((de) => de.guid === q)) return R.filter((de) => de.guid !== q);
|
|
2732
|
+
const Ie = _.find((de) => de.guid === q);
|
|
2733
|
+
return Ie ? [...R, { ...Ie, firstDay: M, frequency: G, secondDay: ce }] : R;
|
|
2734
2734
|
});
|
|
2735
2735
|
},
|
|
2736
|
-
setFirstDay:
|
|
2737
|
-
setFrequency:
|
|
2738
|
-
setSecondDay:
|
|
2736
|
+
setFirstDay: $,
|
|
2737
|
+
setFrequency: H,
|
|
2738
|
+
setSecondDay: he,
|
|
2739
2739
|
transaction: et
|
|
2740
2740
|
}
|
|
2741
2741
|
),
|
|
@@ -2745,7 +2745,7 @@ const B = {
|
|
|
2745
2745
|
{
|
|
2746
2746
|
onSearch: qt,
|
|
2747
2747
|
onSelected: (A) => {
|
|
2748
|
-
|
|
2748
|
+
x({ step: O.MonthlyIncome, type: "detail" }), Je(A);
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
2751
|
),
|
|
@@ -2753,68 +2753,68 @@ const B = {
|
|
|
2753
2753
|
primaryText: P.add_income_primary,
|
|
2754
2754
|
secondaryText: P.add_income_secondary
|
|
2755
2755
|
},
|
|
2756
|
-
[
|
|
2757
|
-
main: /* @__PURE__ */ e(Jr, { selectedDate: X, setSelectedDate:
|
|
2756
|
+
[O.Birthday]: {
|
|
2757
|
+
main: /* @__PURE__ */ e(Jr, { selectedDate: X, setSelectedDate: se }),
|
|
2758
2758
|
mainActionContent: P.next,
|
|
2759
2759
|
primaryText: P.birthday_primary,
|
|
2760
2760
|
secondaryText: P.birthday_secondary
|
|
2761
2761
|
},
|
|
2762
|
-
[
|
|
2763
|
-
main: /* @__PURE__ */ e(na, { creditScore:
|
|
2762
|
+
[O.CreditScore]: {
|
|
2763
|
+
main: /* @__PURE__ */ e(na, { creditScore: y, setCreditScore: D }),
|
|
2764
2764
|
mainActionContent: P.next,
|
|
2765
2765
|
primaryText: P.credit_score_primary,
|
|
2766
2766
|
secondaryText: P.credit_score_secondary
|
|
2767
2767
|
}
|
|
2768
2768
|
}, tt = () => {
|
|
2769
|
-
|
|
2769
|
+
x(ht), ae(!1), Je(""), r();
|
|
2770
2770
|
}, nt = async () => {
|
|
2771
|
-
|
|
2771
|
+
ae(!0), await en(T), await o(), await w({ ...b, has_completed_finstrong_onboarding: !0 }), tt();
|
|
2772
2772
|
}, Zt = () => {
|
|
2773
|
-
if (g.step ===
|
|
2773
|
+
if (g.step === O.CreditScore) {
|
|
2774
2774
|
nt();
|
|
2775
2775
|
return;
|
|
2776
2776
|
}
|
|
2777
|
-
|
|
2777
|
+
x({ step: g.step + 1, type: "main" });
|
|
2778
2778
|
}, Qt = () => {
|
|
2779
2779
|
const { step: A } = g, R = A + 1;
|
|
2780
2780
|
switch (A) {
|
|
2781
|
-
case
|
|
2781
|
+
case O.Birthday:
|
|
2782
2782
|
X && X !== h.birthday && f({ ...h, birthday: X });
|
|
2783
2783
|
break;
|
|
2784
|
-
case
|
|
2785
|
-
|
|
2784
|
+
case O.CreditScore:
|
|
2785
|
+
y && y !== h.credit_score && f({ ...h, credit_score: y }), nt();
|
|
2786
2786
|
return;
|
|
2787
|
-
case
|
|
2788
|
-
q &&
|
|
2787
|
+
case O.MonthlyIncome:
|
|
2788
|
+
q && T.findIndex(({ guid: ge }) => ge === q) === -1 && V((ge) => [
|
|
2789
2789
|
...ge,
|
|
2790
|
-
{ ...et, firstDay: M, frequency:
|
|
2790
|
+
{ ...et, firstDay: M, frequency: G, secondDay: ce }
|
|
2791
2791
|
]);
|
|
2792
2792
|
break;
|
|
2793
|
-
case
|
|
2794
|
-
if (!
|
|
2795
|
-
|
|
2793
|
+
case O.ConnectAccounts:
|
|
2794
|
+
if (!le) {
|
|
2795
|
+
ie(!0);
|
|
2796
2796
|
return;
|
|
2797
2797
|
}
|
|
2798
2798
|
break;
|
|
2799
2799
|
}
|
|
2800
|
-
R in
|
|
2800
|
+
R in O && x({ step: R, type: "main" });
|
|
2801
2801
|
}, Jt = () => {
|
|
2802
2802
|
const { step: A, type: R } = g;
|
|
2803
2803
|
if (R === "detail") {
|
|
2804
|
-
|
|
2804
|
+
x({ step: A, type: "main" });
|
|
2805
2805
|
return;
|
|
2806
2806
|
}
|
|
2807
|
-
if (A ===
|
|
2808
|
-
|
|
2807
|
+
if (A === O.Birthday && T.length) {
|
|
2808
|
+
x({ step: A - 1, type: "detail" });
|
|
2809
2809
|
return;
|
|
2810
2810
|
}
|
|
2811
|
-
A >
|
|
2811
|
+
A > O.ConnectAccounts && x({ step: A - 1, type: "main" });
|
|
2812
2812
|
}, en = async (A) => {
|
|
2813
2813
|
for (const R of A) {
|
|
2814
2814
|
const {
|
|
2815
2815
|
account_guid: ge,
|
|
2816
2816
|
amount: Ie,
|
|
2817
|
-
date:
|
|
2817
|
+
date: de,
|
|
2818
2818
|
description: on,
|
|
2819
2819
|
feed_description: rn,
|
|
2820
2820
|
firstDay: an,
|
|
@@ -2823,7 +2823,7 @@ const B = {
|
|
|
2823
2823
|
merchant_guid: cn,
|
|
2824
2824
|
payee: ln,
|
|
2825
2825
|
transaction_type: dn
|
|
2826
|
-
} = R, pn = Jn(ot, yo(
|
|
2826
|
+
} = R, pn = Jn(ot, yo(de)), un = {
|
|
2827
2827
|
account_guid: ge,
|
|
2828
2828
|
amount: Ie,
|
|
2829
2829
|
created_by: 0,
|
|
@@ -2839,13 +2839,13 @@ const B = {
|
|
|
2839
2839
|
};
|
|
2840
2840
|
await c(un, R);
|
|
2841
2841
|
}
|
|
2842
|
-
}, me = Ut[g.step], De = g.step ===
|
|
2842
|
+
}, me = Ut[g.step], De = g.step === O.ConnectAccounts, tn = {
|
|
2843
2843
|
fullWidth: !0,
|
|
2844
|
-
...De && !
|
|
2845
|
-
}, nn = !De || De && !
|
|
2844
|
+
...De && !le && { startIcon: /* @__PURE__ */ e(ft, {}) }
|
|
2845
|
+
}, nn = !De || De && !le;
|
|
2846
2846
|
return /* @__PURE__ */ a(m.Fragment, { children: [
|
|
2847
2847
|
/* @__PURE__ */ a(
|
|
2848
|
-
|
|
2848
|
+
te,
|
|
2849
2849
|
{
|
|
2850
2850
|
footerStyles: { px: 24, py: 16 },
|
|
2851
2851
|
hasSecondaryAction: !De,
|
|
@@ -2858,13 +2858,13 @@ const B = {
|
|
|
2858
2858
|
secondaryColor: "primary",
|
|
2859
2859
|
secondaryText: P.back,
|
|
2860
2860
|
title: s.title,
|
|
2861
|
-
...!
|
|
2861
|
+
...!re && { onPrimaryAction: Qt },
|
|
2862
2862
|
children: [
|
|
2863
|
-
|
|
2863
|
+
re && /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2864
2864
|
/* @__PURE__ */ e(Pe, { children: P.calculate_primary }),
|
|
2865
2865
|
/* @__PURE__ */ e(k, { sx: { textAlign: "center" }, variant: "subtitle1", children: P.calculate_secondary })
|
|
2866
2866
|
] }),
|
|
2867
|
-
me && !
|
|
2867
|
+
me && !re && /* @__PURE__ */ a(m.Fragment, { children: [
|
|
2868
2868
|
/* @__PURE__ */ e(
|
|
2869
2869
|
oa,
|
|
2870
2870
|
{
|
|
@@ -2874,9 +2874,9 @@ const B = {
|
|
|
2874
2874
|
value: Xt
|
|
2875
2875
|
}
|
|
2876
2876
|
),
|
|
2877
|
-
g.type === "main" && /* @__PURE__ */ a(
|
|
2877
|
+
g.type === "main" && /* @__PURE__ */ a(C, { children: [
|
|
2878
2878
|
me.main,
|
|
2879
|
-
nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(
|
|
2879
|
+
nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(W, { fullWidth: !0, onClick: Zt, children: P.do_it_later }) })
|
|
2880
2880
|
] }),
|
|
2881
2881
|
g.type === "detail" && me.detail
|
|
2882
2882
|
] })
|
|
@@ -2884,10 +2884,10 @@ const B = {
|
|
|
2884
2884
|
}
|
|
2885
2885
|
),
|
|
2886
2886
|
/* @__PURE__ */ e(
|
|
2887
|
-
|
|
2887
|
+
oe,
|
|
2888
2888
|
{
|
|
2889
|
-
onClose: () =>
|
|
2890
|
-
showConnectWidget:
|
|
2889
|
+
onClose: () => ie(!1),
|
|
2890
|
+
showConnectWidget: Ce,
|
|
2891
2891
|
title: P.connect_accounts
|
|
2892
2892
|
}
|
|
2893
2893
|
)
|
|
@@ -2911,24 +2911,24 @@ const B = {
|
|
|
2911
2911
|
},
|
|
2912
2912
|
children: [
|
|
2913
2913
|
/* @__PURE__ */ a(u, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
|
|
2914
|
-
/* @__PURE__ */ e(
|
|
2914
|
+
/* @__PURE__ */ e(C, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(Sn, { size: 72 }) }),
|
|
2915
2915
|
/* @__PURE__ */ a(u, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2916
2916
|
/* @__PURE__ */ e(Pe, { children: Ge.onboarding_title }),
|
|
2917
2917
|
/* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children: Ge.onboarding_subtitle })
|
|
2918
2918
|
] })
|
|
2919
2919
|
] }),
|
|
2920
|
-
/* @__PURE__ */ e(
|
|
2920
|
+
/* @__PURE__ */ e(W, { onClick: () => r(!0), variant: "contained", children: Ge.get_started })
|
|
2921
2921
|
]
|
|
2922
2922
|
}
|
|
2923
2923
|
),
|
|
2924
2924
|
/* @__PURE__ */ e(aa, { isOpen: t, onClose: () => r(!1) })
|
|
2925
2925
|
] });
|
|
2926
2926
|
}, sa = ({ isOpen: t, onClose: r }) => {
|
|
2927
|
-
const { finstrong: n } =
|
|
2927
|
+
const { finstrong: n } = v(), o = E(), { updateUser: s, user: i } = Q(), [c, p] = m.useState(i.birthday), l = (_) => {
|
|
2928
2928
|
p(Math.floor(new Date(_).getTime() / 1e3));
|
|
2929
2929
|
};
|
|
2930
2930
|
return /* @__PURE__ */ e(
|
|
2931
|
-
|
|
2931
|
+
te,
|
|
2932
2932
|
{
|
|
2933
2933
|
isOpen: t,
|
|
2934
2934
|
onClose: r,
|
|
@@ -2937,7 +2937,7 @@ const B = {
|
|
|
2937
2937
|
},
|
|
2938
2938
|
onSecondaryAction: r,
|
|
2939
2939
|
title: n.date_of_birth,
|
|
2940
|
-
children: /* @__PURE__ */ e(Mo, { dateAdapter:
|
|
2940
|
+
children: /* @__PURE__ */ e(Mo, { dateAdapter: $t, children: /* @__PURE__ */ e(
|
|
2941
2941
|
wo,
|
|
2942
2942
|
{
|
|
2943
2943
|
disableFuture: !0,
|
|
@@ -2973,19 +2973,19 @@ const B = {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
);
|
|
2975
2975
|
}, ca = S(sa), la = ({ isOpen: t, onClose: r }) => {
|
|
2976
|
-
const { visibleFinstrongAccounts: n } =
|
|
2976
|
+
const { visibleFinstrongAccounts: n } = Me(), {
|
|
2977
2977
|
accounts: o,
|
|
2978
2978
|
common: s,
|
|
2979
2979
|
finstrong: i
|
|
2980
|
-
} =
|
|
2981
|
-
const { repeating_transaction_type:
|
|
2982
|
-
return
|
|
2983
|
-
}, 0), [d, _] = m.useState(null),
|
|
2980
|
+
} = v(), { repeatingTransactions: c } = Ve(), { user: p } = Q(), l = c.reduce((f, w) => {
|
|
2981
|
+
const { repeating_transaction_type: y, transactions: D, recurrence_type: g, amount: x } = w;
|
|
2982
|
+
return y === Rt.Income && (D.length > 0 || g === Ot.EveryYear) ? f + x : f;
|
|
2983
|
+
}, 0), [d, _] = m.useState(null), b = [
|
|
2984
2984
|
{
|
|
2985
2985
|
dynamicCopy: i.add_profile_item,
|
|
2986
2986
|
fallbackLabel: i.monthly_income,
|
|
2987
2987
|
icon: /* @__PURE__ */ e(Cn, {}),
|
|
2988
|
-
key:
|
|
2988
|
+
key: ee.MonthlyIncome,
|
|
2989
2989
|
label: i.monthly_income,
|
|
2990
2990
|
value: l
|
|
2991
2991
|
},
|
|
@@ -2993,7 +2993,7 @@ const B = {
|
|
|
2993
2993
|
dynamicCopy: i.add_profile_item,
|
|
2994
2994
|
fallbackLabel: i.date_of_birth,
|
|
2995
2995
|
icon: /* @__PURE__ */ e(vn, {}),
|
|
2996
|
-
key:
|
|
2996
|
+
key: ee.DateOfBirth,
|
|
2997
2997
|
label: i.date_of_birth,
|
|
2998
2998
|
value: p.birthday
|
|
2999
2999
|
},
|
|
@@ -3001,14 +3001,14 @@ const B = {
|
|
|
3001
3001
|
dynamicCopy: i.add_profile_item,
|
|
3002
3002
|
fallbackLabel: i.credit_score,
|
|
3003
3003
|
icon: /* @__PURE__ */ e(Ke, {}),
|
|
3004
|
-
key:
|
|
3004
|
+
key: ee.CreditScore,
|
|
3005
3005
|
label: i.credit_score,
|
|
3006
3006
|
value: p.credit_score
|
|
3007
3007
|
},
|
|
3008
3008
|
{
|
|
3009
3009
|
fallbackLabel: i.connect_your_accounts,
|
|
3010
3010
|
icon: /* @__PURE__ */ e(yt, {}),
|
|
3011
|
-
key:
|
|
3011
|
+
key: ee.Connections,
|
|
3012
3012
|
label: i.connections,
|
|
3013
3013
|
value: n.length > 0 ? Y(
|
|
3014
3014
|
i.connected_account,
|
|
@@ -3017,7 +3017,7 @@ const B = {
|
|
|
3017
3017
|
) : void 0
|
|
3018
3018
|
}
|
|
3019
3019
|
].map((f) => En(f));
|
|
3020
|
-
return /* @__PURE__ */ a(
|
|
3020
|
+
return /* @__PURE__ */ a(te, { isOpen: t, onClose: r, title: i.financial_profile, children: [
|
|
3021
3021
|
/* @__PURE__ */ a(u, { sx: { gap: 20, p: 24 }, children: [
|
|
3022
3022
|
/* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
|
|
3023
3023
|
/* @__PURE__ */ e(N, { children: i.your_financial_profile }),
|
|
@@ -3027,12 +3027,12 @@ const B = {
|
|
|
3027
3027
|
Yt,
|
|
3028
3028
|
{
|
|
3029
3029
|
completeCopy: i.complete,
|
|
3030
|
-
value:
|
|
3030
|
+
value: b.reduce((f, w) => f + (w.isComplete ? 1 : 0), 0)
|
|
3031
3031
|
}
|
|
3032
3032
|
)
|
|
3033
3033
|
] }),
|
|
3034
|
-
/* @__PURE__ */ e(Gn, { list:
|
|
3035
|
-
/* @__PURE__ */ e(
|
|
3034
|
+
/* @__PURE__ */ e(Gn, { list: b, onClickItem: _ }),
|
|
3035
|
+
/* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
3036
3036
|
Be,
|
|
3037
3037
|
{
|
|
3038
3038
|
description: i.connect_more_accounts_to_view_more_accurate_financial_picture,
|
|
@@ -3043,21 +3043,21 @@ const B = {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
) }),
|
|
3045
3045
|
/* @__PURE__ */ e(
|
|
3046
|
-
|
|
3046
|
+
te,
|
|
3047
3047
|
{
|
|
3048
|
-
isOpen: d ===
|
|
3048
|
+
isOpen: d === ee.MonthlyIncome,
|
|
3049
3049
|
onClose: () => _(null),
|
|
3050
3050
|
title: s.settings,
|
|
3051
3051
|
children: /* @__PURE__ */ e(ko, {})
|
|
3052
3052
|
}
|
|
3053
3053
|
),
|
|
3054
|
-
/* @__PURE__ */ e(ca, { isOpen: d ===
|
|
3055
|
-
/* @__PURE__ */ e(Gt, { isOpen: d ===
|
|
3054
|
+
/* @__PURE__ */ e(ca, { isOpen: d === ee.DateOfBirth, onClose: () => _(null) }),
|
|
3055
|
+
/* @__PURE__ */ e(Gt, { isOpen: d === ee.CreditScore, onClose: () => _(null) }),
|
|
3056
3056
|
/* @__PURE__ */ e(
|
|
3057
3057
|
Mt,
|
|
3058
3058
|
{
|
|
3059
3059
|
onClose: () => _(null),
|
|
3060
|
-
showConnectionsWidget: d ===
|
|
3060
|
+
showConnectionsWidget: d === ee.Connections,
|
|
3061
3061
|
title: o.manage_connections
|
|
3062
3062
|
}
|
|
3063
3063
|
)
|
|
@@ -3072,7 +3072,7 @@ const B = {
|
|
|
3072
3072
|
] }),
|
|
3073
3073
|
/* @__PURE__ */ e(Ro, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(k, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
3074
3074
|
] }), pa = ({ report: t }) => {
|
|
3075
|
-
const { finstrong: r } =
|
|
3075
|
+
const { finstrong: r } = v(), { score_history_drawer_timeline: n } = r, {
|
|
3076
3076
|
health_score_point_difference: o,
|
|
3077
3077
|
newer_credit_score: s,
|
|
3078
3078
|
older_credit_score: i,
|
|
@@ -3081,10 +3081,10 @@ const B = {
|
|
|
3081
3081
|
older_health_score: l,
|
|
3082
3082
|
newer_health_score: d,
|
|
3083
3083
|
newer_score_calculated_at: _
|
|
3084
|
-
} = t, h = Do(new Date(_), "MMM d"),
|
|
3084
|
+
} = t, h = Do(new Date(_), "MMM d"), b = () => o === 0 ? "info.lighter" : o > 0 ? "success.lighter" : "error.lighter", f = () => o === 0 ? Y(n.stayed_at, l) : o > 0 ? n.less_spending : n.more_spending, w = () => {
|
|
3085
3085
|
if (o === 0) return null;
|
|
3086
|
-
const
|
|
3087
|
-
return /* @__PURE__ */ a(
|
|
3086
|
+
const y = o > 0 ? n.up_from : n.down_from, D = Y(y, l, d);
|
|
3087
|
+
return /* @__PURE__ */ a(z, { children: [
|
|
3088
3088
|
/* @__PURE__ */ e(
|
|
3089
3089
|
Mn,
|
|
3090
3090
|
{
|
|
@@ -3097,7 +3097,7 @@ const B = {
|
|
|
3097
3097
|
] });
|
|
3098
3098
|
};
|
|
3099
3099
|
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ a(u, { sx: { backgroundColor: "background.paper" }, children: [
|
|
3100
|
-
/* @__PURE__ */ e(
|
|
3100
|
+
/* @__PURE__ */ e(C, { sx: { borderBottom: "1px solid", borderBottomColor: "divider", p: 16 }, children: /* @__PURE__ */ a(
|
|
3101
3101
|
u,
|
|
3102
3102
|
{
|
|
3103
3103
|
flexDirection: "row",
|
|
@@ -3108,7 +3108,7 @@ const B = {
|
|
|
3108
3108
|
{
|
|
3109
3109
|
sx: {
|
|
3110
3110
|
alignItems: "center",
|
|
3111
|
-
backgroundColor:
|
|
3111
|
+
backgroundColor: b(),
|
|
3112
3112
|
borderRadius: 999,
|
|
3113
3113
|
height: 48,
|
|
3114
3114
|
justifyContent: "center",
|
|
@@ -3122,13 +3122,13 @@ const B = {
|
|
|
3122
3122
|
/* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3123
3123
|
h,
|
|
3124
3124
|
" ",
|
|
3125
|
-
|
|
3125
|
+
w()
|
|
3126
3126
|
] })
|
|
3127
3127
|
] })
|
|
3128
3128
|
]
|
|
3129
3129
|
}
|
|
3130
3130
|
) }),
|
|
3131
|
-
o !== 0 && /* @__PURE__ */ e(
|
|
3131
|
+
o !== 0 && /* @__PURE__ */ e(C, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ a(
|
|
3132
3132
|
Io,
|
|
3133
3133
|
{
|
|
3134
3134
|
sx: {
|
|
@@ -3166,7 +3166,7 @@ const B = {
|
|
|
3166
3166
|
) })
|
|
3167
3167
|
] }) });
|
|
3168
3168
|
}, ua = S(pa), _a = ({ isOpen: t, onClose: r }) => {
|
|
3169
|
-
const n =
|
|
3169
|
+
const n = E(), { finstrong: o } = v(), { isCopyLoaded: s, isInitialized: i } = j(), { healthScore: c, healthScoreChangeReports: p, augmentedChartData: l } = F();
|
|
3170
3170
|
if (!s || !i) return /* @__PURE__ */ e(J, {});
|
|
3171
3171
|
const d = je(c.health_score || 0, o), _ = p.slice().reverse();
|
|
3172
3172
|
return /* @__PURE__ */ e(
|
|
@@ -3199,7 +3199,7 @@ const B = {
|
|
|
3199
3199
|
direction: "row",
|
|
3200
3200
|
sx: { backgroundColor: "background.paper", gap: 16, pb: 12, pt: 8, px: 24 },
|
|
3201
3201
|
children: [
|
|
3202
|
-
/* @__PURE__ */ e(
|
|
3202
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
3203
3203
|
Et,
|
|
3204
3204
|
{
|
|
3205
3205
|
arcRadius: 20,
|
|
@@ -3207,18 +3207,18 @@ const B = {
|
|
|
3207
3207
|
size: "SM"
|
|
3208
3208
|
}
|
|
3209
3209
|
) }),
|
|
3210
|
-
/* @__PURE__ */ a(
|
|
3210
|
+
/* @__PURE__ */ a(C, { children: [
|
|
3211
3211
|
/* @__PURE__ */ e(k, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children: d.status }),
|
|
3212
3212
|
/* @__PURE__ */ e(k, { variant: "caption", children: d.description })
|
|
3213
3213
|
] })
|
|
3214
3214
|
]
|
|
3215
3215
|
}
|
|
3216
3216
|
),
|
|
3217
|
-
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: _.map((h,
|
|
3217
|
+
children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: _.map((h, b) => /* @__PURE__ */ e(ua, { report: h }, b)) })
|
|
3218
3218
|
}
|
|
3219
3219
|
);
|
|
3220
3220
|
}, ha = S(_a), ma = ({ copy: t }) => {
|
|
3221
|
-
const r =
|
|
3221
|
+
const r = E(), n = [
|
|
3222
3222
|
r.palette.chartMono.chartMono5,
|
|
3223
3223
|
r.palette.chartMono.chartMono4,
|
|
3224
3224
|
r.palette.chartMono.chartMono3,
|
|
@@ -3231,7 +3231,7 @@ const B = {
|
|
|
3231
3231
|
{ color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
|
|
3232
3232
|
{ color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
|
|
3233
3233
|
].map(({ color: o, text: s, value: i }) => /* @__PURE__ */ a(u, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
|
|
3234
|
-
/* @__PURE__ */ a(
|
|
3234
|
+
/* @__PURE__ */ a(C, { children: [
|
|
3235
3235
|
/* @__PURE__ */ e(k, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: s }),
|
|
3236
3236
|
/* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "caption", children: [
|
|
3237
3237
|
"(",
|
|
@@ -3239,11 +3239,11 @@ const B = {
|
|
|
3239
3239
|
")"
|
|
3240
3240
|
] })
|
|
3241
3241
|
] }),
|
|
3242
|
-
/* @__PURE__ */ e(
|
|
3242
|
+
/* @__PURE__ */ e(C, { sx: { border: "2px solid", borderColor: o, borderRadius: "3px" } })
|
|
3243
3243
|
] }, s)) }),
|
|
3244
|
-
/* @__PURE__ */ a(
|
|
3244
|
+
/* @__PURE__ */ a(C, { children: [
|
|
3245
3245
|
/* @__PURE__ */ e(
|
|
3246
|
-
|
|
3246
|
+
C,
|
|
3247
3247
|
{
|
|
3248
3248
|
sx: {
|
|
3249
3249
|
background: `linear-gradient(to left, ${n.join(", ")})`,
|
|
@@ -3258,7 +3258,7 @@ const B = {
|
|
|
3258
3258
|
sx: { alignItems: "center", height: 20, justifyContent: "space-between", width: 24 },
|
|
3259
3259
|
children: [
|
|
3260
3260
|
/* @__PURE__ */ e(
|
|
3261
|
-
|
|
3261
|
+
C,
|
|
3262
3262
|
{
|
|
3263
3263
|
sx: {
|
|
3264
3264
|
borderBottom: "1px solid",
|
|
@@ -3278,14 +3278,14 @@ const B = {
|
|
|
3278
3278
|
] })
|
|
3279
3279
|
] });
|
|
3280
3280
|
}, ga = ({ isOpen: t, onClose: r }) => {
|
|
3281
|
-
const { finstrong: n } =
|
|
3282
|
-
return o ? /* @__PURE__ */ e(
|
|
3281
|
+
const { finstrong: n } = v(), { isCopyLoaded: o } = j();
|
|
3282
|
+
return o ? /* @__PURE__ */ e(te, { isOpen: t, onClose: r, title: n.score_rubric, children: /* @__PURE__ */ a(u, { sx: { gap: 36, p: 24 }, children: [
|
|
3283
3283
|
/* @__PURE__ */ a(u, { sx: { gap: 20 }, children: [
|
|
3284
3284
|
/* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
|
|
3285
3285
|
/* @__PURE__ */ e(N, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
|
|
3286
3286
|
/* @__PURE__ */ e(k, { variant: "subtitle1", children: n.finstrong_freedom_description })
|
|
3287
3287
|
] }),
|
|
3288
|
-
/* @__PURE__ */ e(
|
|
3288
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(ma, { copy: n }) })
|
|
3289
3289
|
] }),
|
|
3290
3290
|
/* @__PURE__ */ a(u, { sx: { gap: 12 }, children: [
|
|
3291
3291
|
/* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
|
|
@@ -3358,13 +3358,13 @@ const B = {
|
|
|
3358
3358
|
] })
|
|
3359
3359
|
] }) }) : /* @__PURE__ */ e(J, {});
|
|
3360
3360
|
}, ya = S(ga), ba = S(() => {
|
|
3361
|
-
const [t, r] = m.useState(!1), n =
|
|
3361
|
+
const [t, r] = m.useState(!1), n = E(), [o, { width: s }] = It(), { finstrong: i } = v(), { isCopyLoaded: c, isInitialized: p } = j(), { healthScore: l, healthScoreChange: d } = F(), _ = n.palette.mode === "dark", h = je(l?.health_score, i);
|
|
3362
3362
|
return !c || !p ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ a(K, { ref: o, sx: { p: 16 }, children: [
|
|
3363
3363
|
/* @__PURE__ */ e(
|
|
3364
|
-
|
|
3364
|
+
$o,
|
|
3365
3365
|
{
|
|
3366
3366
|
action: /* @__PURE__ */ e(
|
|
3367
|
-
|
|
3367
|
+
W,
|
|
3368
3368
|
{
|
|
3369
3369
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3370
3370
|
onClick: () => r(!0),
|
|
@@ -3412,7 +3412,7 @@ const B = {
|
|
|
3412
3412
|
},
|
|
3413
3413
|
children: [
|
|
3414
3414
|
/* @__PURE__ */ e(
|
|
3415
|
-
|
|
3415
|
+
Wo,
|
|
3416
3416
|
{
|
|
3417
3417
|
expandIcon: /* @__PURE__ */ e(wn, { size: 20 }),
|
|
3418
3418
|
sx: {
|
|
@@ -3458,22 +3458,24 @@ const B = {
|
|
|
3458
3458
|
)
|
|
3459
3459
|
] });
|
|
3460
3460
|
}), fa = ({ onBackClick: t, sx: r, onPrimaryCtaClick: n }) => {
|
|
3461
|
-
const { visibleAccounts: o } =
|
|
3462
|
-
augmentedChartData:
|
|
3463
|
-
calculateHealthScore:
|
|
3464
|
-
healthScore:
|
|
3465
|
-
loadAugmentedChartData:
|
|
3466
|
-
loadMonthlySummaries:
|
|
3467
|
-
} =
|
|
3461
|
+
const { visibleAccounts: o } = Me(), { dateRange: s, isDataLoaded: i, loadBudgetData: c, setTheme: p } = Yn(), { reloadCategoryTotals: l } = Ye(), d = F(), {
|
|
3462
|
+
augmentedChartData: _,
|
|
3463
|
+
calculateHealthScore: h,
|
|
3464
|
+
healthScore: b,
|
|
3465
|
+
loadAugmentedChartData: f,
|
|
3466
|
+
loadMonthlySummaries: w
|
|
3467
|
+
} = d, { finstrong: y, connect: D } = v(), { isCopyLoaded: g, isInitialized: x, selectedAccounts: M, setSelectedAccounts: $ } = j(), { loadRepeatingTransactions: G } = Ve(), { isMobile: H } = Ue(), T = E(), { userProfile: V } = Q(), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(!1);
|
|
3468
3468
|
if (m.useEffect(() => {
|
|
3469
|
-
p(
|
|
3470
|
-
}, []), m.useEffect(() =>
|
|
3471
|
-
|
|
3472
|
-
}, [
|
|
3473
|
-
|
|
3474
|
-
}, [
|
|
3475
|
-
|
|
3476
|
-
},
|
|
3469
|
+
p(T);
|
|
3470
|
+
}, []), m.useEffect(() => {
|
|
3471
|
+
n && (d.handleFinstrongWidgetPrimaryCtaClick = n);
|
|
3472
|
+
}, [n, d]), m.useEffect(() => $(o), [o]), m.useEffect(() => {
|
|
3473
|
+
x && (h().finally(), f().finally(), w().finally());
|
|
3474
|
+
}, [x]), m.useEffect(() => {
|
|
3475
|
+
x && (l(M, s.start, s.end), i || (c(), G().finally()));
|
|
3476
|
+
}, [s, i, x, M]), !g || !x) return /* @__PURE__ */ e(J, {});
|
|
3477
|
+
const ce = () => {
|
|
3478
|
+
}, he = () => ae(!0);
|
|
3477
3479
|
return /* @__PURE__ */ a(
|
|
3478
3480
|
io,
|
|
3479
3481
|
{
|
|
@@ -3481,17 +3483,17 @@ const B = {
|
|
|
3481
3483
|
actions: [
|
|
3482
3484
|
{
|
|
3483
3485
|
iconName: "person",
|
|
3484
|
-
label:
|
|
3485
|
-
onClick:
|
|
3486
|
+
label: y.profile,
|
|
3487
|
+
onClick: he
|
|
3486
3488
|
}
|
|
3487
3489
|
],
|
|
3488
3490
|
hasDivider: !0,
|
|
3489
|
-
onAccountsFilterClick:
|
|
3491
|
+
onAccountsFilterClick: ce,
|
|
3490
3492
|
onBackClick: t,
|
|
3491
3493
|
sx: r,
|
|
3492
|
-
title:
|
|
3494
|
+
title: y.title,
|
|
3493
3495
|
children: [
|
|
3494
|
-
|
|
3496
|
+
V.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
|
|
3495
3497
|
u,
|
|
3496
3498
|
{
|
|
3497
3499
|
sx: {
|
|
@@ -3507,61 +3509,61 @@ const B = {
|
|
|
3507
3509
|
/* @__PURE__ */ e(
|
|
3508
3510
|
Be,
|
|
3509
3511
|
{
|
|
3510
|
-
description:
|
|
3512
|
+
description: y.connect_more_accounts_description,
|
|
3511
3513
|
drawerType: "connectDrawer",
|
|
3512
|
-
title:
|
|
3514
|
+
title: y.connect_more_accounts_title
|
|
3513
3515
|
}
|
|
3514
3516
|
)
|
|
3515
3517
|
] }),
|
|
3516
|
-
/* @__PURE__ */ e(u, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(K, { sx: { background:
|
|
3518
|
+
/* @__PURE__ */ e(u, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(K, { sx: { background: T.palette.background.paper, p: 16 }, children: [
|
|
3517
3519
|
/* @__PURE__ */ a(u, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3518
|
-
/* @__PURE__ */ e(N, { children:
|
|
3520
|
+
/* @__PURE__ */ e(N, { children: y.key_indicators }),
|
|
3519
3521
|
/* @__PURE__ */ e(
|
|
3520
|
-
|
|
3522
|
+
W,
|
|
3521
3523
|
{
|
|
3522
3524
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3523
|
-
onClick: () =>
|
|
3525
|
+
onClick: () => ie(!0),
|
|
3524
3526
|
sx: {
|
|
3525
3527
|
fontSize: 13
|
|
3526
3528
|
},
|
|
3527
3529
|
variant: "text",
|
|
3528
|
-
children:
|
|
3530
|
+
children: y.whats_changed
|
|
3529
3531
|
}
|
|
3530
3532
|
)
|
|
3531
3533
|
] }),
|
|
3532
|
-
|
|
3534
|
+
_.length ? /* @__PURE__ */ e(
|
|
3533
3535
|
Xe,
|
|
3534
3536
|
{
|
|
3535
|
-
axisColor:
|
|
3537
|
+
axisColor: T.palette.divider,
|
|
3536
3538
|
baseline: "min",
|
|
3537
|
-
colors: [
|
|
3539
|
+
colors: [T.palette.primary.main],
|
|
3538
3540
|
curveType: "natural",
|
|
3539
3541
|
customLegendVariant: "XSmall",
|
|
3540
|
-
datasets: [
|
|
3542
|
+
datasets: [_],
|
|
3541
3543
|
height: 300,
|
|
3542
3544
|
isGraphClippingXAxis: !0,
|
|
3543
|
-
labelBackgroundColor:
|
|
3544
|
-
labelFontColor:
|
|
3545
|
-
labelFontSize: typeof
|
|
3546
|
-
labels: [
|
|
3545
|
+
labelBackgroundColor: T.palette.border.dark,
|
|
3546
|
+
labelFontColor: T.palette.common.white,
|
|
3547
|
+
labelFontSize: typeof T.typography.XSmall?.fontSize == "string" ? parseFloat(T.typography.XSmall.fontSize) : T.typography.XSmall?.fontSize,
|
|
3548
|
+
labels: [y.key_indicators_label],
|
|
3547
3549
|
margin: { right: 20, left: 25 },
|
|
3548
3550
|
showArea: !0,
|
|
3549
3551
|
showAverage: !0,
|
|
3550
3552
|
showLegend: !0,
|
|
3551
3553
|
showMarkLabel: !0,
|
|
3552
3554
|
showXAxis: !0,
|
|
3553
|
-
title:
|
|
3555
|
+
title: y.peer_average,
|
|
3554
3556
|
useCustomMark: !0
|
|
3555
3557
|
}
|
|
3556
|
-
) : /* @__PURE__ */ e(Vr, { onClick: () =>
|
|
3557
|
-
|
|
3558
|
+
) : /* @__PURE__ */ e(Vr, { onClick: () => se(!0) }),
|
|
3559
|
+
b.health_score !== null && /* @__PURE__ */ e(jr, {})
|
|
3558
3560
|
] }) }),
|
|
3559
3561
|
/* @__PURE__ */ e(
|
|
3560
|
-
|
|
3562
|
+
W,
|
|
3561
3563
|
{
|
|
3562
3564
|
sx: { background: "red", width: 100 },
|
|
3563
3565
|
onClick: () => {
|
|
3564
|
-
console.log("test"),
|
|
3566
|
+
console.log("test"), d.handleFinstrongWidgetPrimaryCtaClick("trends")();
|
|
3565
3567
|
},
|
|
3566
3568
|
children: "test"
|
|
3567
3569
|
}
|
|
@@ -3569,31 +3571,31 @@ const B = {
|
|
|
3569
3571
|
]
|
|
3570
3572
|
}
|
|
3571
3573
|
) : /* @__PURE__ */ e(ia, {}),
|
|
3572
|
-
/* @__PURE__ */ e(da, { isOpen:
|
|
3574
|
+
/* @__PURE__ */ e(da, { isOpen: re, onClose: () => ae(!1) }),
|
|
3573
3575
|
/* @__PURE__ */ e(
|
|
3574
|
-
|
|
3576
|
+
oe,
|
|
3575
3577
|
{
|
|
3576
|
-
onClose: () =>
|
|
3577
|
-
showConnectWidget:
|
|
3578
|
-
title:
|
|
3578
|
+
onClose: () => se(!1),
|
|
3579
|
+
showConnectWidget: X,
|
|
3580
|
+
title: D.mini_title
|
|
3579
3581
|
}
|
|
3580
3582
|
),
|
|
3581
3583
|
/* @__PURE__ */ e(
|
|
3582
3584
|
ha,
|
|
3583
3585
|
{
|
|
3584
|
-
isOpen:
|
|
3585
|
-
onClose: () =>
|
|
3586
|
+
isOpen: Ce,
|
|
3587
|
+
onClose: () => ie(!1)
|
|
3586
3588
|
}
|
|
3587
3589
|
)
|
|
3588
3590
|
]
|
|
3589
3591
|
}
|
|
3590
3592
|
);
|
|
3591
|
-
},
|
|
3593
|
+
}, $i = S(fa);
|
|
3592
3594
|
export {
|
|
3593
3595
|
Eo as CreditScoreGraph,
|
|
3594
3596
|
zt as DialScoreCard,
|
|
3595
3597
|
Et as FinancialStrengthGraph,
|
|
3596
3598
|
Gi as FinstrongApi,
|
|
3597
3599
|
Hi as FinstrongStore,
|
|
3598
|
-
|
|
3600
|
+
$i as FinstrongWidget
|
|
3599
3601
|
};
|