@mx-cartographer/experiences 7.4.2 → 7.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{AccountDetailsContent-gke-5zMF.mjs → AccountDetailsContent-COMjOzwr.mjs} +5 -5
- package/dist/{AccountDetailsHeader-CRzfuFA2.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +2 -2
- package/dist/{AccountFields-CPkGZ3SD.mjs → AccountFields-Cd_nOWmf.mjs} +1 -1
- package/dist/{AccountListItem-D4uG9yC-.mjs → AccountListItem-DxY4cCF1.mjs} +2 -2
- package/dist/{BudgetUtil-wjoNuj7B.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
- package/dist/{CurrencyInput-xH-hqry9.mjs → CurrencyInput-BFKcs-_K.mjs} +1 -1
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{FinstrongStore-CfD6bbJk.mjs → FinstrongStore-BnBCtVTl.mjs} +1 -1
- package/dist/{GoalStore-j6QYHgEa.mjs → GoalStore-CrNhjvNc.mjs} +1 -1
- package/dist/{LineChart-DttMO7uS.mjs → LineChart-bc1D9xBE.mjs} +81 -81
- package/dist/{ManageIncome-CU5C0AeO.mjs → ManageIncome-A69EUO5u.mjs} +3 -3
- package/dist/{NotificationSettings-DI5B1spM.mjs → NotificationSettings-CNmJWVeI.mjs} +2 -2
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CCmnsd7y.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +2 -2
- package/dist/{RecurringSettings-Cm5Bqcai.mjs → RecurringSettings-B0uObPlD.mjs} +2 -2
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-BqijW_8S.mjs} +1 -1
- package/dist/{RecurringTransactionsStore-Bc1wCiNB.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +1 -1
- package/dist/{SpendingLegend-B2BYr8B4.mjs → SpendingLegend-BbrZWbFX.mjs} +2 -2
- package/dist/{TransactionDetails-CtbBBSoU.mjs → TransactionDetails-COH0OKNG.mjs} +2 -2
- package/dist/accounts/index.es.js +8 -8
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +7 -7
- package/dist/common/index.es.js +11 -11
- package/dist/debts/index.es.js +4 -4
- package/dist/finstrong/index.es.js +417 -413
- package/dist/goals/index.es.js +7 -7
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +3 -3
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +3 -3
- package/dist/transactions/index.es.js +4 -4
- package/dist/trends/index.es.js +4 -4
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as
|
|
1
|
+
import { jsxs as a, Fragment as G, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import k from "@mui/material/Box";
|
|
3
3
|
import p from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as z, alpha as be } from "@mui/material/styles";
|
|
5
5
|
import { PieChart as rn, BarPlot as an } from "@mui/x-charts";
|
|
6
6
|
import { TrendingUp as _t, ArrowRightAlt as sn, TrendingDown as cn, AccountBalance as ut, ChevronRight as Z, MultilineChart as ht, CreditCard as Ke, CheckCircle as ln, Cancel as dn, Savings as pn, ContentCopy as _n, Add as mt, Cardiology as un, Payments as hn, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
|
|
7
|
-
import { P as M, H3 as
|
|
8
|
-
import { g as fn, a as xn, r as nt, b as Sn, c as je, d as yt, C as ke, e as Me, f as Cn, h as vn, i as wn, j as bt, k as ot, l as kn, m as rt, n as Mn, o as ft, p as Dn, q as xt, s as Re, t as In, u as Tn, v as An, w as On, A as te, x as Fn, P as Rn } from "../FinstrongStore-
|
|
9
|
-
import { y as Ci, F as vi } from "../FinstrongStore-
|
|
7
|
+
import { P as M, H3 as V, Text as I, InstitutionLogo as gt, H2 as Be, MerchantLogo as yn, Icon as bn } from "@mxenabled/mxui";
|
|
8
|
+
import { g as fn, a as xn, r as nt, b as Sn, c as je, d as yt, C as ke, e as Me, f as Cn, h as vn, i as wn, j as bt, k as ot, l as kn, m as rt, n as Mn, o as ft, p as Dn, q as xt, s as Re, t as In, u as Tn, v as An, w as On, A as te, x as Fn, P as Rn } from "../FinstrongStore-BnBCtVTl.mjs";
|
|
9
|
+
import { y as Ci, F as vi } from "../FinstrongStore-BnBCtVTl.mjs";
|
|
10
10
|
import * as at from "d3";
|
|
11
11
|
import { observer as v } from "mobx-react-lite";
|
|
12
|
-
import { u as x, b as X, a as
|
|
12
|
+
import { u as x, b as X, a as Ve, p as J, z as P, q as Pn, d as xe, m as Ye, f as Ln, j as Xe, h as Bn, i as Wn, n as $n } from "../hooks-C41HAxM5.mjs";
|
|
13
13
|
import { L as oe } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { L as qe } from "../LineChart-
|
|
15
|
+
import B from "@mui/material/Button";
|
|
16
|
+
import Y from "@mui/material/Card";
|
|
17
|
+
import { L as qe } from "../LineChart-bc1D9xBE.mjs";
|
|
18
18
|
import { C as St } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
|
19
19
|
import { l as re, g as Ct, A as He } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
20
20
|
import se from "@mui/material/Tab";
|
|
@@ -29,16 +29,16 @@ import le from "@mui/material/Divider";
|
|
|
29
29
|
import ge from "@mui/material/ListItem";
|
|
30
30
|
import wt from "@mui/material/ListItemAvatar";
|
|
31
31
|
import ye from "@mui/material/ListItemText";
|
|
32
|
-
import { g as kt } from "../AccountFields-
|
|
32
|
+
import { g as kt } from "../AccountFields-Cd_nOWmf.mjs";
|
|
33
33
|
import Ne from "@mui/material/List";
|
|
34
34
|
import Nn from "@mui/material/ListItemButton";
|
|
35
35
|
import Kn from "@mui/material/ListSubheader";
|
|
36
|
-
import { f as
|
|
36
|
+
import { f as $ } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
37
37
|
import { b as j } from "../Localization-2MODESHW.mjs";
|
|
38
|
-
import { S as it, F as Mt, e as jn, R as Dt } from "../RecurringTransactions-
|
|
39
|
-
import { S as
|
|
38
|
+
import { S as it, F as Mt, e as jn, R as Dt } from "../RecurringTransactions-BqijW_8S.mjs";
|
|
39
|
+
import { S as Vn } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
40
|
import { h as It } from "../DateUtil-CBdcsyuk.mjs";
|
|
41
|
-
import { T as
|
|
41
|
+
import { T as Yn, s as Xn, h as qn, S as Un, c as Qn } from "../TransactionDetails-COH0OKNG.mjs";
|
|
42
42
|
import { T as ce } from "../TabContentContainer-j01JYR_7.mjs";
|
|
43
43
|
import { E as Le } from "../EmptyState-DoxNUae-.mjs";
|
|
44
44
|
import Zn from "@mui/material/useMediaQuery";
|
|
@@ -48,15 +48,15 @@ import { ResponsiveChartContainer as to } from "@mui/x-charts/ResponsiveChartCon
|
|
|
48
48
|
import { useSpring as no, animated as st } from "@react-spring/web";
|
|
49
49
|
import { startOfMonth as Tt } from "date-fns/startOfMonth";
|
|
50
50
|
import { endOfMonth as At } from "date-fns/endOfMonth";
|
|
51
|
-
import { g as oo, S as ro, b as ao } from "../SpendingLegend-
|
|
51
|
+
import { g as oo, S as ro, b as ao } from "../SpendingLegend-BbrZWbFX.mjs";
|
|
52
52
|
import { formatISO as io } from "date-fns/formatISO";
|
|
53
53
|
import { fromUnixTime as so } from "date-fns/fromUnixTime";
|
|
54
54
|
import { startOfToday as ct } from "date-fns/startOfToday";
|
|
55
55
|
import { subDays as co } from "date-fns/subDays";
|
|
56
|
-
import { c as lo, d as lt, S as po, i as _o } from "../ManageIncome-
|
|
56
|
+
import { c as lo, d as lt, S as po, i as _o } from "../ManageIncome-A69EUO5u.mjs";
|
|
57
57
|
import { LocalizationProvider as uo, DatePicker as ho, StaticDatePicker as mo } from "@mui/x-date-pickers";
|
|
58
58
|
import { AdapterDateFns as Ot } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
59
|
-
import { R as go } from "../RecurringSettings-
|
|
59
|
+
import { R as go } from "../RecurringSettings-B0uObPlD.mjs";
|
|
60
60
|
import { LocalizationProvider as yo } from "@mui/x-date-pickers/LocalizationProvider";
|
|
61
61
|
import { format as bo } from "date-fns/format";
|
|
62
62
|
import fo from "@mui/lab/Timeline";
|
|
@@ -81,11 +81,11 @@ const Oo = ({
|
|
|
81
81
|
arcRadius: l,
|
|
82
82
|
innerArcRadius: _,
|
|
83
83
|
outterArcRadius: d,
|
|
84
|
-
progressEndAngle:
|
|
85
|
-
unitsPerSegment:
|
|
84
|
+
progressEndAngle: h,
|
|
85
|
+
unitsPerSegment: u,
|
|
86
86
|
isFinacialStrengthGraph: y
|
|
87
87
|
}) => {
|
|
88
|
-
const f =
|
|
88
|
+
const f = z(), w = [
|
|
89
89
|
{ offset: "13.62%", color: f.palette.chartMono.chartMono2 },
|
|
90
90
|
{ offset: "36.67%", color: f.palette.chartMono.chartMono3 },
|
|
91
91
|
{ offset: "59.72%", color: f.palette.chartMono.chartMono4 },
|
|
@@ -95,22 +95,22 @@ const Oo = ({
|
|
|
95
95
|
s,
|
|
96
96
|
r,
|
|
97
97
|
o
|
|
98
|
-
), [
|
|
98
|
+
), [C, g] = xn(
|
|
99
99
|
S,
|
|
100
100
|
D,
|
|
101
101
|
o,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
),
|
|
105
|
-
return /* @__PURE__ */ a(
|
|
102
|
+
u,
|
|
103
|
+
h
|
|
104
|
+
), b = at.arc().innerRadius(_).outerRadius(d).startAngle(S).endAngle(D).padAngle(0.02).cornerRadius(8), L = at.arc().innerRadius(_).outerRadius(d).startAngle(C).endAngle(g).padAngle(0.02).cornerRadius(8);
|
|
105
|
+
return /* @__PURE__ */ a(G, { children: [
|
|
106
106
|
/* @__PURE__ */ e(
|
|
107
107
|
"path",
|
|
108
108
|
{
|
|
109
|
-
d:
|
|
109
|
+
d: b({}),
|
|
110
110
|
fill: y ? f.palette.divider : n
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
y && /* @__PURE__ */ e("path", { d:
|
|
113
|
+
y && /* @__PURE__ */ e("path", { d: L({}), fill: "url(#arcGradient)" }),
|
|
114
114
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
115
115
|
"linearGradient",
|
|
116
116
|
{
|
|
@@ -121,7 +121,7 @@ const Oo = ({
|
|
|
121
121
|
x2: i - l * 0.8 * Math.cos(Math.PI / 1.35),
|
|
122
122
|
y1: c + l * 0.8 * Math.sin(Math.PI / 1.35),
|
|
123
123
|
y2: c - l * 0.8 * Math.sin(Math.PI / 1.35),
|
|
124
|
-
children:
|
|
124
|
+
children: w.map((F, U) => /* @__PURE__ */ e("stop", { offset: F.offset, stopColor: F.color }, U))
|
|
125
125
|
}
|
|
126
126
|
) })
|
|
127
127
|
] });
|
|
@@ -136,11 +136,11 @@ const Oo = ({
|
|
|
136
136
|
markerColor: l,
|
|
137
137
|
healthScoreStatus: _,
|
|
138
138
|
footerCenterContent: d,
|
|
139
|
-
footerLeftContent:
|
|
140
|
-
footerRightContent:
|
|
139
|
+
footerLeftContent: h,
|
|
140
|
+
footerRightContent: u,
|
|
141
141
|
isFinacialStrengthGraph: y = !1
|
|
142
142
|
}) => {
|
|
143
|
-
const f =
|
|
143
|
+
const f = z(), w = -Math.PI / 1.35, S = Math.PI / 1.35, D = S - w, C = D / (i - s), g = (o - s) * C, b = w + g + 0.02, L = n !== "SM" ? 0.1 : 0.12, F = t, U = t * (1 - L), W = F * 2, O = W / 2, E = W / 2, pe = (U + F) / 2, Ce = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [ee, K] = Sn(pe, b, Ce), ve = o / 25, H = {
|
|
144
144
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
145
145
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
146
146
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -150,13 +150,13 @@ const Oo = ({
|
|
|
150
150
|
bottom: 0,
|
|
151
151
|
left: 0,
|
|
152
152
|
...c
|
|
153
|
-
},
|
|
153
|
+
}, N = d === 0 ? sn : cn, ae = n !== "SM" ? 3 : 1, _e = ae * 4, ue = H[n].markerSize * 2 + _e;
|
|
154
154
|
return /* @__PURE__ */ a(
|
|
155
155
|
p,
|
|
156
156
|
{
|
|
157
157
|
sx: {
|
|
158
|
-
width:
|
|
159
|
-
height: n === "SM" ?
|
|
158
|
+
width: W,
|
|
159
|
+
height: n === "SM" ? W - 7 : W,
|
|
160
160
|
position: "relative",
|
|
161
161
|
alignSelf: "center",
|
|
162
162
|
overflow: "visible"
|
|
@@ -165,14 +165,14 @@ const Oo = ({
|
|
|
165
165
|
/* @__PURE__ */ e(
|
|
166
166
|
rn,
|
|
167
167
|
{
|
|
168
|
-
height: n === "SM" ?
|
|
168
|
+
height: n === "SM" ? W - 7 : W,
|
|
169
169
|
margin: we,
|
|
170
170
|
series: [
|
|
171
171
|
{
|
|
172
172
|
data: r,
|
|
173
173
|
innerRadius: U,
|
|
174
|
-
outerRadius:
|
|
175
|
-
startAngle: Math.round(nt(
|
|
174
|
+
outerRadius: F,
|
|
175
|
+
startAngle: Math.round(nt(w)),
|
|
176
176
|
// Use Math.degrees to convert
|
|
177
177
|
endAngle: Math.round(nt(S))
|
|
178
178
|
// Use Math.degrees to convert
|
|
@@ -188,15 +188,15 @@ const Oo = ({
|
|
|
188
188
|
{
|
|
189
189
|
arcColor: q.color,
|
|
190
190
|
arcRadius: t,
|
|
191
|
-
arcStartAngle:
|
|
191
|
+
arcStartAngle: w,
|
|
192
192
|
centerX: O,
|
|
193
|
-
centerY:
|
|
193
|
+
centerY: E,
|
|
194
194
|
dataIndex: q.dataIndex,
|
|
195
195
|
dialScoreData: r,
|
|
196
196
|
innerArcRadius: U,
|
|
197
197
|
isFinacialStrengthGraph: y,
|
|
198
|
-
outterArcRadius:
|
|
199
|
-
progressEndAngle:
|
|
198
|
+
outterArcRadius: F,
|
|
199
|
+
progressEndAngle: b,
|
|
200
200
|
totalAngularSpan: D,
|
|
201
201
|
unitsPerSegment: ve
|
|
202
202
|
}
|
|
@@ -207,7 +207,7 @@ const Oo = ({
|
|
|
207
207
|
stroke: "none"
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
-
width:
|
|
210
|
+
width: W
|
|
211
211
|
}
|
|
212
212
|
),
|
|
213
213
|
o >= s && o <= i && /* @__PURE__ */ e(
|
|
@@ -216,19 +216,19 @@ const Oo = ({
|
|
|
216
216
|
height: ue,
|
|
217
217
|
style: {
|
|
218
218
|
position: "absolute",
|
|
219
|
-
left: O + ee -
|
|
220
|
-
top:
|
|
219
|
+
left: O + ee - H[n].markerSize - 5,
|
|
220
|
+
top: E + K - H[n].markerSize - 5,
|
|
221
221
|
overflow: "visible"
|
|
222
222
|
},
|
|
223
|
-
viewBox: `${O + ee -
|
|
223
|
+
viewBox: `${O + ee - H[n].markerSize - 5} ${E + K - H[n].markerSize - 5} ${ue} ${ue}`,
|
|
224
224
|
width: ue,
|
|
225
225
|
children: /* @__PURE__ */ e(
|
|
226
226
|
"circle",
|
|
227
227
|
{
|
|
228
228
|
cx: O + ee,
|
|
229
|
-
cy:
|
|
229
|
+
cy: E + K,
|
|
230
230
|
fill: f.palette.common.white,
|
|
231
|
-
r:
|
|
231
|
+
r: H[n].markerSize,
|
|
232
232
|
stroke: y ? "url(#arcGradient)" : l,
|
|
233
233
|
strokeWidth: ae
|
|
234
234
|
}
|
|
@@ -240,7 +240,7 @@ const Oo = ({
|
|
|
240
240
|
{
|
|
241
241
|
sx: {
|
|
242
242
|
position: "absolute",
|
|
243
|
-
top: `${
|
|
243
|
+
top: `${E}px`,
|
|
244
244
|
left: `${O}px`,
|
|
245
245
|
transform: "translate(-50%, -50%)",
|
|
246
246
|
textAlign: "center"
|
|
@@ -255,7 +255,7 @@ const Oo = ({
|
|
|
255
255
|
M,
|
|
256
256
|
{
|
|
257
257
|
sx: {
|
|
258
|
-
fontSize:
|
|
258
|
+
fontSize: H[n].healthScoreFontSize,
|
|
259
259
|
lineHeight: n !== "SM" ? "48px" : "100%"
|
|
260
260
|
},
|
|
261
261
|
variant: "H1",
|
|
@@ -273,7 +273,7 @@ const Oo = ({
|
|
|
273
273
|
{
|
|
274
274
|
sx: {
|
|
275
275
|
position: "absolute",
|
|
276
|
-
top: `${
|
|
276
|
+
top: `${E * 2 * 0.83}px`,
|
|
277
277
|
left: `${O}px`,
|
|
278
278
|
transform: "translate(-50%, -50%)",
|
|
279
279
|
textAlign: "center"
|
|
@@ -288,7 +288,7 @@ const Oo = ({
|
|
|
288
288
|
mt: 24
|
|
289
289
|
},
|
|
290
290
|
children: [
|
|
291
|
-
d > 0 ? /* @__PURE__ */ e(_t, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(
|
|
291
|
+
d > 0 ? /* @__PURE__ */ e(_t, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(N, { size: 16, sx: { color: "text.secondary" } }),
|
|
292
292
|
/* @__PURE__ */ e(
|
|
293
293
|
M,
|
|
294
294
|
{
|
|
@@ -305,31 +305,31 @@ const Oo = ({
|
|
|
305
305
|
) : /* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle2", children: d })
|
|
306
306
|
}
|
|
307
307
|
),
|
|
308
|
-
|
|
308
|
+
h !== void 0 && /* @__PURE__ */ e(
|
|
309
309
|
k,
|
|
310
310
|
{
|
|
311
311
|
sx: {
|
|
312
312
|
position: "absolute",
|
|
313
|
-
top: `${
|
|
313
|
+
top: `${E * 2 * 0.83}px`,
|
|
314
314
|
left: `${O - O / 2}px`,
|
|
315
315
|
// shift left from center
|
|
316
316
|
transform: "translate(-50%, -50%)",
|
|
317
317
|
textAlign: "left"
|
|
318
318
|
},
|
|
319
|
-
children: /* @__PURE__ */ e(M, { variant: "body1", children:
|
|
319
|
+
children: /* @__PURE__ */ e(M, { variant: "body1", children: h })
|
|
320
320
|
}
|
|
321
321
|
),
|
|
322
|
-
|
|
322
|
+
u !== void 0 && /* @__PURE__ */ e(
|
|
323
323
|
k,
|
|
324
324
|
{
|
|
325
325
|
sx: {
|
|
326
326
|
position: "absolute",
|
|
327
|
-
top: `${
|
|
327
|
+
top: `${E * 2 * 0.83}px`,
|
|
328
328
|
left: `${O + O / 2}px`,
|
|
329
329
|
transform: "translate(-50%, -50%)",
|
|
330
330
|
textAlign: "right"
|
|
331
331
|
},
|
|
332
|
-
children: /* @__PURE__ */ e(M, { variant: "body1", children:
|
|
332
|
+
children: /* @__PURE__ */ e(M, { variant: "body1", children: u })
|
|
333
333
|
}
|
|
334
334
|
)
|
|
335
335
|
]
|
|
@@ -372,7 +372,7 @@ const Oo = ({
|
|
|
372
372
|
minValue: s = 300,
|
|
373
373
|
footerCenterContent: i
|
|
374
374
|
}) => {
|
|
375
|
-
const l =
|
|
375
|
+
const l = z().palette.mode === "dark", _ = [
|
|
376
376
|
{
|
|
377
377
|
id: 1,
|
|
378
378
|
label: "Poor",
|
|
@@ -403,9 +403,9 @@ const Oo = ({
|
|
|
403
403
|
value: 12,
|
|
404
404
|
color: l ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
|
|
405
405
|
}
|
|
406
|
-
], { finstrong: d } = x(), { isCopyLoaded:
|
|
407
|
-
if (!
|
|
408
|
-
const { status:
|
|
406
|
+
], { finstrong: d } = x(), { isCopyLoaded: h } = X();
|
|
407
|
+
if (!h) return /* @__PURE__ */ e(oe, {});
|
|
408
|
+
const { status: u, color: y = "none" } = yt(
|
|
409
409
|
n,
|
|
410
410
|
l,
|
|
411
411
|
d.credit_score_status
|
|
@@ -419,7 +419,7 @@ const Oo = ({
|
|
|
419
419
|
footerLeftContent: s,
|
|
420
420
|
footerRightContent: r,
|
|
421
421
|
healthScore: n,
|
|
422
|
-
healthScoreStatus:
|
|
422
|
+
healthScoreStatus: u,
|
|
423
423
|
markerColor: y,
|
|
424
424
|
maxValue: r,
|
|
425
425
|
minValue: s,
|
|
@@ -437,9 +437,9 @@ const Oo = ({
|
|
|
437
437
|
description: c,
|
|
438
438
|
sx: l
|
|
439
439
|
}) => {
|
|
440
|
-
const [_, d] = m.useState(!1), { connect:
|
|
440
|
+
const [_, d] = m.useState(!1), { connect: h, finstrong: u } = x(), { config: y } = Ve();
|
|
441
441
|
return t && y.show_connections_widget_in_master ? /* @__PURE__ */ a(
|
|
442
|
-
|
|
442
|
+
Y,
|
|
443
443
|
{
|
|
444
444
|
sx: {
|
|
445
445
|
pb: 24,
|
|
@@ -458,7 +458,7 @@ const Oo = ({
|
|
|
458
458
|
},
|
|
459
459
|
children: [
|
|
460
460
|
n && /* @__PURE__ */ e(ut, { sx: { height: 20, width: 20 } }),
|
|
461
|
-
/* @__PURE__ */ e(
|
|
461
|
+
/* @__PURE__ */ e(V, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || u.connect_more_accounts_title })
|
|
462
462
|
]
|
|
463
463
|
}
|
|
464
464
|
),
|
|
@@ -468,17 +468,17 @@ const Oo = ({
|
|
|
468
468
|
className: "connect-more-accounts-description",
|
|
469
469
|
sx: { color: "text.secondary", mt: 8 },
|
|
470
470
|
variant: "subtitle1",
|
|
471
|
-
children: c ||
|
|
471
|
+
children: c || u.connect_more_accounts_description
|
|
472
472
|
}
|
|
473
473
|
),
|
|
474
474
|
/* @__PURE__ */ e(
|
|
475
|
-
|
|
475
|
+
B,
|
|
476
476
|
{
|
|
477
477
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
478
478
|
onClick: () => d(!0),
|
|
479
479
|
size: "small",
|
|
480
480
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
481
|
-
children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body2", children: r ||
|
|
481
|
+
children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body2", children: r || u.connect_more_accounts_button })
|
|
482
482
|
}
|
|
483
483
|
),
|
|
484
484
|
t === "connectDrawer" && /* @__PURE__ */ e(
|
|
@@ -486,7 +486,7 @@ const Oo = ({
|
|
|
486
486
|
{
|
|
487
487
|
onClose: () => d(!1),
|
|
488
488
|
showConnectWidget: _,
|
|
489
|
-
title: i ||
|
|
489
|
+
title: i || h.mini_title
|
|
490
490
|
}
|
|
491
491
|
),
|
|
492
492
|
t === "connectionsDrawer" && /* @__PURE__ */ e(
|
|
@@ -494,7 +494,7 @@ const Oo = ({
|
|
|
494
494
|
{
|
|
495
495
|
onClose: () => d(!1),
|
|
496
496
|
showConnectionsWidget: _,
|
|
497
|
-
title: i ||
|
|
497
|
+
title: i || h.mini_title
|
|
498
498
|
}
|
|
499
499
|
)
|
|
500
500
|
]
|
|
@@ -512,9 +512,9 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
512
512
|
Fair: 109,
|
|
513
513
|
OffTrack: 110
|
|
514
514
|
}, Po = ({ isOpen: t, onClose: o }) => {
|
|
515
|
-
const { common: n, finstrong: r } = x(), { isMobile: s } = Qe(), { updateUser: i, user: c } = J(), [l, _] = m.useState(c.credit_score || 0), d = !isNaN(l),
|
|
515
|
+
const { common: n, finstrong: r } = x(), { isMobile: s } = Qe(), { updateUser: i, user: c } = J(), [l, _] = m.useState(c.credit_score || 0), d = !isNaN(l), h = () => {
|
|
516
516
|
o(), setTimeout(() => _(c.credit_score || 0), 300);
|
|
517
|
-
},
|
|
517
|
+
}, u = () => {
|
|
518
518
|
!l || l === c.credit_score || i({ ...c, credit_score: l });
|
|
519
519
|
};
|
|
520
520
|
return /* @__PURE__ */ e(
|
|
@@ -524,8 +524,8 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
524
524
|
disablePrimaryButton: !l || !d,
|
|
525
525
|
isOpen: t,
|
|
526
526
|
maxWidth: "xs",
|
|
527
|
-
onClose:
|
|
528
|
-
onPrimaryAction:
|
|
527
|
+
onClose: h,
|
|
528
|
+
onPrimaryAction: u,
|
|
529
529
|
primaryColor: "primary",
|
|
530
530
|
primaryText: n.save_button,
|
|
531
531
|
sx: {
|
|
@@ -537,7 +537,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
537
537
|
"form",
|
|
538
538
|
{
|
|
539
539
|
onSubmit: (y) => {
|
|
540
|
-
y.preventDefault(),
|
|
540
|
+
y.preventDefault(), u(), h();
|
|
541
541
|
},
|
|
542
542
|
children: /* @__PURE__ */ e(
|
|
543
543
|
Pe,
|
|
@@ -561,7 +561,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
561
561
|
credit_over_time_title: "Your Credit Over Time",
|
|
562
562
|
credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
|
|
563
563
|
}, Lo = ({ chartFor: t }) => {
|
|
564
|
-
const o =
|
|
564
|
+
const o = z(), n = o.palette.mode === "dark", { monthlySummaries: r } = P(), { user: s } = J(), { finstrong: i } = x(), [c, { width: l }] = vt(), _ = {
|
|
565
565
|
savingsOverTime: {
|
|
566
566
|
icon: /* @__PURE__ */ e(_t, { size: 48, sx: { marginBottom: 8 } }),
|
|
567
567
|
title: i.key_indicators_save.zero_state_title,
|
|
@@ -577,7 +577,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
577
577
|
title: Ee.credit_over_time_title,
|
|
578
578
|
description: Ee.credit_over_time_zero_state_desc
|
|
579
579
|
}
|
|
580
|
-
}[t],
|
|
580
|
+
}[t], h = {
|
|
581
581
|
savingsOverTime: {
|
|
582
582
|
title: i.key_indicators_save.savings_over_time,
|
|
583
583
|
valueKey: "available_cash"
|
|
@@ -590,52 +590,56 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
590
590
|
title: Ee.credit_over_time_title,
|
|
591
591
|
valueKey: "credit_score"
|
|
592
592
|
}
|
|
593
|
-
}[t],
|
|
594
|
-
let
|
|
595
|
-
if (
|
|
596
|
-
const { color:
|
|
593
|
+
}[t], u = Cn(r, h.valueKey), y = r.map((F) => F[h.valueKey]), f = Math.max(...y), w = Math.min(...y), S = () => f >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : f >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: D, leftMargin: C } = S(), g = h.title, b = t === "creditOverTime";
|
|
594
|
+
let L;
|
|
595
|
+
if (b) {
|
|
596
|
+
const { color: F } = yt(
|
|
597
597
|
s?.credit_score ?? 0,
|
|
598
598
|
n,
|
|
599
599
|
i.credit_score_status
|
|
600
600
|
);
|
|
601
|
-
|
|
601
|
+
L = F;
|
|
602
602
|
}
|
|
603
|
-
return /* @__PURE__ */ e(
|
|
604
|
-
/* @__PURE__ */ e(M, { sx: { pb: 8, pt: 16 }, variant: "h3", children:
|
|
603
|
+
return /* @__PURE__ */ e(Y, { ref: c, sx: { backgroundColor: "background.paper" }, children: u.length >= 1 ? /* @__PURE__ */ a(p, { gap: 8, sx: { pl: 18 }, children: [
|
|
604
|
+
/* @__PURE__ */ e(M, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
|
|
605
605
|
/* @__PURE__ */ e(
|
|
606
606
|
qe,
|
|
607
607
|
{
|
|
608
|
-
areaColor:
|
|
608
|
+
areaColor: L,
|
|
609
609
|
axisColor: o.palette.divider,
|
|
610
610
|
baseline: "min",
|
|
611
611
|
chartFor: t,
|
|
612
612
|
colors: [o.palette.primary.main],
|
|
613
|
-
curveType:
|
|
614
|
-
datasets:
|
|
613
|
+
curveType: b ? "linear" : "natural",
|
|
614
|
+
datasets: u ? [u] : [],
|
|
615
615
|
height: 244,
|
|
616
|
-
labelFontColor:
|
|
617
|
-
labelFontSize:
|
|
616
|
+
labelFontColor: b ? "text.primary" : "",
|
|
617
|
+
labelFontSize: b ? 13 : void 0,
|
|
618
618
|
labels: [i.key_indicators_label],
|
|
619
|
-
margin: { left:
|
|
620
|
-
markStyles: (
|
|
619
|
+
margin: { left: C, top: b ? 25 : 15, right: 20 },
|
|
620
|
+
markStyles: (F) => b ? {
|
|
621
621
|
markLabelStyles: {
|
|
622
622
|
marginLeft: 16,
|
|
623
|
-
transform:
|
|
624
|
-
fontWeight: 600
|
|
623
|
+
transform: F === u.length - 1 ? "translateX(-16px)" : "translateX(16px)",
|
|
624
|
+
fontWeight: 600,
|
|
625
|
+
fill: o.palette.text.primary
|
|
625
626
|
},
|
|
626
|
-
stroke:
|
|
627
|
+
stroke: L
|
|
627
628
|
} : {},
|
|
628
|
-
maxRange:
|
|
629
|
-
minRange:
|
|
629
|
+
maxRange: b ? 850 : void 0,
|
|
630
|
+
minRange: (() => {
|
|
631
|
+
if (b)
|
|
632
|
+
return w < 300 ? 0 : 300;
|
|
633
|
+
})(),
|
|
630
634
|
showArea: !0,
|
|
631
|
-
showAverage: !
|
|
632
|
-
showMark: !
|
|
633
|
-
showMarkLabel:
|
|
635
|
+
showAverage: !b,
|
|
636
|
+
showMark: !b,
|
|
637
|
+
showMarkLabel: b,
|
|
634
638
|
showXAxis: !0,
|
|
635
|
-
showYAxis:
|
|
636
|
-
showYAxisTicks:
|
|
639
|
+
showYAxis: b,
|
|
640
|
+
showYAxisTicks: b,
|
|
637
641
|
useCustomMark: !0,
|
|
638
|
-
valueFormatterString:
|
|
642
|
+
valueFormatterString: b ? void 0 : D,
|
|
639
643
|
width: l < 342 ? l - 48 : 342
|
|
640
644
|
}
|
|
641
645
|
)
|
|
@@ -645,7 +649,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
645
649
|
/* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: _.description })
|
|
646
650
|
] }) });
|
|
647
651
|
}, Ze = v(Lo), Bo = () => {
|
|
648
|
-
const { healthScoreChange: t } =
|
|
652
|
+
const { healthScoreChange: t } = P(), { finstrong: o } = x(), { user: n } = J(), { availableWidth: r } = Pn(), { isSmallMobile: s } = Qe(r), [i, c] = m.useState(!1);
|
|
649
653
|
return /* @__PURE__ */ a(k, { children: [
|
|
650
654
|
/* @__PURE__ */ a(p, { sx: { gap: 28 }, children: [
|
|
651
655
|
/* @__PURE__ */ e(
|
|
@@ -657,7 +661,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
657
661
|
size: s ? "M" : "L"
|
|
658
662
|
}
|
|
659
663
|
),
|
|
660
|
-
/* @__PURE__ */ e(
|
|
664
|
+
/* @__PURE__ */ e(B, { onClick: () => c(!0), variant: "contained", children: o.credit_score_updated_score }),
|
|
661
665
|
/* @__PURE__ */ e(Ze, { chartFor: "creditOverTime" })
|
|
662
666
|
] }),
|
|
663
667
|
/* @__PURE__ */ e(Pt, { isOpen: i, onClose: () => c(!1) })
|
|
@@ -693,7 +697,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
693
697
|
}, $o = () => {
|
|
694
698
|
const { finstrong: t } = x(), { user: o } = J(), n = bt(o.credit_score ?? null);
|
|
695
699
|
return /* @__PURE__ */ a(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
696
|
-
/* @__PURE__ */ e(
|
|
700
|
+
/* @__PURE__ */ e(V, { children: t.credit_score_keep_strong_credit_score }),
|
|
697
701
|
/* @__PURE__ */ e($e, { status: n })
|
|
698
702
|
] });
|
|
699
703
|
}, Go = v($o), zo = ({
|
|
@@ -707,12 +711,12 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
707
711
|
loadConnectAccountsCard: l = !0,
|
|
708
712
|
onClose: _,
|
|
709
713
|
stickyComponent: d,
|
|
710
|
-
title:
|
|
711
|
-
drawerType:
|
|
714
|
+
title: h,
|
|
715
|
+
drawerType: u
|
|
712
716
|
}) => {
|
|
713
717
|
const { finstrong: y } = x(), { isCopyLoaded: f } = X();
|
|
714
718
|
return f ? /* @__PURE__ */ e(ne, { isOpen: c, onClose: _, title: i || y.key_indicators, children: /* @__PURE__ */ a(p, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
|
715
|
-
(
|
|
719
|
+
(h || s) && /* @__PURE__ */ a(
|
|
716
720
|
p,
|
|
717
721
|
{
|
|
718
722
|
sx: {
|
|
@@ -721,7 +725,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
721
725
|
p: 24
|
|
722
726
|
},
|
|
723
727
|
children: [
|
|
724
|
-
|
|
728
|
+
h && typeof h == "string" ? /* @__PURE__ */ e(V, { children: h }) : h,
|
|
725
729
|
s && /* @__PURE__ */ e(M, { sx: { lineHeight: "24px" }, children: s })
|
|
726
730
|
]
|
|
727
731
|
}
|
|
@@ -744,7 +748,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
744
748
|
We,
|
|
745
749
|
{
|
|
746
750
|
description: n,
|
|
747
|
-
drawerType:
|
|
751
|
+
drawerType: u,
|
|
748
752
|
isDashboard: !0,
|
|
749
753
|
sx: { backgroundColor: "background.paper" },
|
|
750
754
|
title: o
|
|
@@ -757,7 +761,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
757
761
|
shouldShowBalance: o = !0,
|
|
758
762
|
loadAccounts: n
|
|
759
763
|
}) => {
|
|
760
|
-
const { config: r } =
|
|
764
|
+
const { config: r } = Ve(), { accounts: s } = x(), { selectedAccounts: i } = X(), c = m.useCallback(
|
|
761
765
|
(_) => {
|
|
762
766
|
t?.(_);
|
|
763
767
|
},
|
|
@@ -769,8 +773,8 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
769
773
|
[i, n]
|
|
770
774
|
);
|
|
771
775
|
return i.length ? /* @__PURE__ */ e(m.Fragment, { children: l.map((_) => {
|
|
772
|
-
const { accountsForType: d, totalBalanceForType:
|
|
773
|
-
(
|
|
776
|
+
const { accountsForType: d, totalBalanceForType: h } = i.reduce(
|
|
777
|
+
(u, y) => (y.account_type === _ && (u.accountsForType.push(y), u.totalBalanceForType += y.balance || 0), u),
|
|
774
778
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
775
779
|
);
|
|
776
780
|
return /* @__PURE__ */ a(
|
|
@@ -778,28 +782,28 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
778
782
|
{
|
|
779
783
|
subheader: /* @__PURE__ */ e(Kn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
780
784
|
/* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: s.account_types[_] }),
|
|
781
|
-
o && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children:
|
|
785
|
+
o && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: $(h, "0,0.00") })
|
|
782
786
|
] }) }),
|
|
783
787
|
sx: { bgcolor: "background.paper" },
|
|
784
788
|
children: [
|
|
785
|
-
d.map((
|
|
786
|
-
const { firstValue: f } = kt(
|
|
789
|
+
d.map((u, y) => {
|
|
790
|
+
const { firstValue: f } = kt(u, s), w = Ct(u, {
|
|
787
791
|
allowNickname: r?.show_account_nicknames_in_master
|
|
788
|
-
}), S = /* @__PURE__ */ a(
|
|
789
|
-
/* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(gt, { alt: "MX", institutionGuid:
|
|
792
|
+
}), S = /* @__PURE__ */ a(G, { children: [
|
|
793
|
+
/* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(gt, { alt: "MX", institutionGuid: u.institution_guid ?? "" }) }),
|
|
790
794
|
/* @__PURE__ */ e(
|
|
791
795
|
ye,
|
|
792
796
|
{
|
|
793
|
-
primary: `${
|
|
797
|
+
primary: `${w}${u.account_number ? ` *${u.account_number}` : ""}`,
|
|
794
798
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
795
799
|
}
|
|
796
800
|
),
|
|
797
|
-
o && /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children:
|
|
801
|
+
o && /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: $(f ?? 0, "0,0.00") })
|
|
798
802
|
] });
|
|
799
803
|
return /* @__PURE__ */ a(m.Fragment, { children: [
|
|
800
|
-
/* @__PURE__ */ e(ge, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Nn, { onClick: () => c(
|
|
804
|
+
/* @__PURE__ */ e(ge, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Nn, { onClick: () => c(u), children: S }) : S }),
|
|
801
805
|
y !== d.length - 1 && /* @__PURE__ */ e(le, { variant: "inset" })
|
|
802
|
-
] },
|
|
806
|
+
] }, u.guid);
|
|
803
807
|
}),
|
|
804
808
|
/* @__PURE__ */ e(le, {})
|
|
805
809
|
]
|
|
@@ -808,16 +812,16 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
808
812
|
);
|
|
809
813
|
}) }) : null;
|
|
810
814
|
}, Bt = v(Eo), Ho = ({ loadAccounts: t, loadMoreLabel: o }) => {
|
|
811
|
-
const n =
|
|
815
|
+
const n = z(), { config: r } = Ve(), { connect: s, finstrong: i } = x(), { accounts: c } = x(), { selectedAccounts: l } = X(), [_, d] = m.useState(!1), [h, u] = m.useState(!1), y = m.useMemo(
|
|
812
816
|
() => l.filter(
|
|
813
817
|
(S) => t ? t.includes(S.account_type) : !0
|
|
814
818
|
),
|
|
815
819
|
[l, t]
|
|
816
|
-
), f = m.useMemo(() => y.slice(0, 3), [y]),
|
|
820
|
+
), f = m.useMemo(() => y.slice(0, 3), [y]), w = (S) => {
|
|
817
821
|
const { firstValue: D } = kt(S, c);
|
|
818
822
|
return D;
|
|
819
823
|
};
|
|
820
|
-
return y.length >= 1 ? /* @__PURE__ */ a(
|
|
824
|
+
return y.length >= 1 ? /* @__PURE__ */ a(G, { children: [
|
|
821
825
|
/* @__PURE__ */ e(k, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((S, D) => /* @__PURE__ */ a(m.Fragment, { children: [
|
|
822
826
|
/* @__PURE__ */ a(ge, { sx: { px: 24 }, children: [
|
|
823
827
|
/* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(gt, { alt: "MX", institutionGuid: S.institution_guid ?? "" }) }),
|
|
@@ -831,13 +835,13 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
831
835
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
832
836
|
}
|
|
833
837
|
),
|
|
834
|
-
/* @__PURE__ */ e(M, { bold: !0, variant: "body2", children:
|
|
838
|
+
/* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: $(w(S), "0,0.00") })
|
|
835
839
|
] }),
|
|
836
840
|
D < f.length - 1 && /* @__PURE__ */ e(le, { variant: "inset" })
|
|
837
841
|
] }, S.guid)) }),
|
|
838
|
-
y.length > 3 && /* @__PURE__ */ a(
|
|
842
|
+
y.length > 3 && /* @__PURE__ */ a(G, { children: [
|
|
839
843
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
840
|
-
|
|
844
|
+
B,
|
|
841
845
|
{
|
|
842
846
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
843
847
|
onClick: () => d(!0),
|
|
@@ -852,11 +856,11 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
852
856
|
) }),
|
|
853
857
|
/* @__PURE__ */ e(ne, { isOpen: _, onClose: () => d(!1), title: i.accounts, children: /* @__PURE__ */ e(Bt, { loadAccounts: t }) })
|
|
854
858
|
] })
|
|
855
|
-
] }) : /* @__PURE__ */ a(
|
|
859
|
+
] }) : /* @__PURE__ */ a(G, { children: [
|
|
856
860
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
857
|
-
|
|
861
|
+
B,
|
|
858
862
|
{
|
|
859
|
-
onClick: () =>
|
|
863
|
+
onClick: () => u(!0),
|
|
860
864
|
size: "small",
|
|
861
865
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
862
866
|
variant: "contained",
|
|
@@ -866,8 +870,8 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
866
870
|
/* @__PURE__ */ e(
|
|
867
871
|
re,
|
|
868
872
|
{
|
|
869
|
-
onClose: () =>
|
|
870
|
-
showConnectWidget:
|
|
873
|
+
onClose: () => u(!1),
|
|
874
|
+
showConnectWidget: h,
|
|
871
875
|
title: s.mini_title
|
|
872
876
|
}
|
|
873
877
|
)
|
|
@@ -885,7 +889,7 @@ const Ro = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
885
889
|
...n
|
|
886
890
|
},
|
|
887
891
|
children: [
|
|
888
|
-
typeof t == "number" ? /* @__PURE__ */ e(M, { variant: "h2", children:
|
|
892
|
+
typeof t == "number" ? /* @__PURE__ */ e(M, { variant: "h2", children: $(t, "0,0.00") }) : t,
|
|
889
893
|
/* @__PURE__ */ e(M, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
|
|
890
894
|
]
|
|
891
895
|
}
|
|
@@ -906,37 +910,37 @@ const No = ({ total: t }) => {
|
|
|
906
910
|
{ id: De.Months, label: o.maintain_emergency_savings_months },
|
|
907
911
|
{ id: De.Years, label: o.maintain_emergency_savings_years },
|
|
908
912
|
{ id: De.Days, label: o.maintain_emergency_savings_days }
|
|
909
|
-
], i = Math.ceil((t + 1) / 1e3) * 1e3, [c, l] = m.useState(0), [_, d] = m.useState(ot(t)), [
|
|
913
|
+
], i = Math.ceil((t + 1) / 1e3) * 1e3, [c, l] = m.useState(0), [_, d] = m.useState(ot(t)), [h, u] = m.useState(
|
|
910
914
|
ot(t)
|
|
911
|
-
), [y, f] = m.useState(i), [
|
|
915
|
+
), [y, f] = m.useState(i), [w, S] = m.useState(kn(t)), [D, C] = m.useState(De.Months);
|
|
912
916
|
m.useEffect(() => {
|
|
913
917
|
l(
|
|
914
918
|
rt({
|
|
915
|
-
contribution:
|
|
919
|
+
contribution: h,
|
|
916
920
|
goalAmount: y,
|
|
917
|
-
goalPeriod:
|
|
921
|
+
goalPeriod: w,
|
|
918
922
|
targetPeriod: D,
|
|
919
923
|
totalSaved: t
|
|
920
924
|
})
|
|
921
|
-
), d(
|
|
925
|
+
), d(h);
|
|
922
926
|
}, []);
|
|
923
|
-
const
|
|
924
|
-
|
|
927
|
+
const g = (b) => {
|
|
928
|
+
b.preventDefault(), l(
|
|
925
929
|
rt({
|
|
926
|
-
contribution:
|
|
930
|
+
contribution: h,
|
|
927
931
|
goalAmount: y,
|
|
928
|
-
goalPeriod:
|
|
932
|
+
goalPeriod: w,
|
|
929
933
|
targetPeriod: D,
|
|
930
934
|
totalSaved: t
|
|
931
935
|
})
|
|
932
|
-
), d(
|
|
936
|
+
), d(h);
|
|
933
937
|
};
|
|
934
|
-
return /* @__PURE__ */ e(
|
|
938
|
+
return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ a(p, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
935
939
|
/* @__PURE__ */ e(
|
|
936
940
|
Se,
|
|
937
941
|
{
|
|
938
942
|
balance: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
939
|
-
/* @__PURE__ */ e(I, { variant: "h2", children:
|
|
943
|
+
/* @__PURE__ */ e(I, { variant: "h2", children: $(c, "0,0") }),
|
|
940
944
|
/* @__PURE__ */ a(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
941
945
|
"/",
|
|
942
946
|
r[_]
|
|
@@ -951,27 +955,27 @@ const No = ({ total: t }) => {
|
|
|
951
955
|
"aria-label": o.maintain_emergency_savings_savings_goal,
|
|
952
956
|
helperText: j(
|
|
953
957
|
o.maintain_emergency_savings_suggested_goal,
|
|
954
|
-
|
|
958
|
+
$(i, "0,0")
|
|
955
959
|
),
|
|
956
960
|
inputProps: {
|
|
957
961
|
noValidate: !0,
|
|
958
962
|
pattern: "[0-9]*"
|
|
959
963
|
},
|
|
960
964
|
label: o.maintain_emergency_savings_savings_goal,
|
|
961
|
-
onChange: (
|
|
962
|
-
|
|
965
|
+
onChange: (b) => {
|
|
966
|
+
b.target.value && f(Number(b.target.value.replace(/[^0-9]/g, "")));
|
|
963
967
|
},
|
|
964
|
-
value: y ?
|
|
968
|
+
value: y ? $(y, "0,0") : ""
|
|
965
969
|
}
|
|
966
970
|
),
|
|
967
971
|
/* @__PURE__ */ e(
|
|
968
972
|
it,
|
|
969
973
|
{
|
|
970
974
|
label: o.maintain_emergency_savings_how_often_contribute,
|
|
971
|
-
onChange:
|
|
975
|
+
onChange: u,
|
|
972
976
|
options: n,
|
|
973
977
|
required: !0,
|
|
974
|
-
value:
|
|
978
|
+
value: h
|
|
975
979
|
}
|
|
976
980
|
),
|
|
977
981
|
/* @__PURE__ */ a(p, { sx: { flexDirection: "row" }, children: [
|
|
@@ -985,8 +989,8 @@ const No = ({ total: t }) => {
|
|
|
985
989
|
pattern: "[0-9]*"
|
|
986
990
|
},
|
|
987
991
|
label: o.maintain_emergency_savings_meet_your_goal_within,
|
|
988
|
-
onChange: (
|
|
989
|
-
isNaN(Number(
|
|
992
|
+
onChange: (b) => {
|
|
993
|
+
isNaN(Number(b.target.value)) || S(Number(b.target.value));
|
|
990
994
|
},
|
|
991
995
|
sx: {
|
|
992
996
|
"& .MuiInputBase-root": {
|
|
@@ -997,7 +1001,7 @@ const No = ({ total: t }) => {
|
|
|
997
1001
|
}
|
|
998
1002
|
}
|
|
999
1003
|
},
|
|
1000
|
-
value:
|
|
1004
|
+
value: w
|
|
1001
1005
|
}
|
|
1002
1006
|
),
|
|
1003
1007
|
/* @__PURE__ */ e(
|
|
@@ -1012,11 +1016,11 @@ const No = ({ total: t }) => {
|
|
|
1012
1016
|
}
|
|
1013
1017
|
}
|
|
1014
1018
|
},
|
|
1015
|
-
children: /* @__PURE__ */ e(it, { label: "", onChange:
|
|
1019
|
+
children: /* @__PURE__ */ e(it, { label: "", onChange: C, options: s, value: D })
|
|
1016
1020
|
}
|
|
1017
1021
|
)
|
|
1018
1022
|
] }),
|
|
1019
|
-
/* @__PURE__ */ e(
|
|
1023
|
+
/* @__PURE__ */ e(B, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
|
|
1020
1024
|
] }) }) });
|
|
1021
1025
|
}, Ko = v(No), jo = () => {
|
|
1022
1026
|
const { savingsAccounts: t } = xe(), { finstrong: o } = x(), [n, r] = m.useState(!1), s = m.useMemo(
|
|
@@ -1024,7 +1028,7 @@ const No = ({ total: t }) => {
|
|
|
1024
1028
|
[t]
|
|
1025
1029
|
);
|
|
1026
1030
|
return /* @__PURE__ */ a(p, { sx: { gap: 24 }, children: [
|
|
1027
|
-
/* @__PURE__ */ e(
|
|
1031
|
+
/* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
|
|
1028
1032
|
/* @__PURE__ */ e(Se, { balance: s, title: o.maintain_emergency_savings_your_savings }),
|
|
1029
1033
|
t.length ? /* @__PURE__ */ e(
|
|
1030
1034
|
Wt,
|
|
@@ -1032,7 +1036,7 @@ const No = ({ total: t }) => {
|
|
|
1032
1036
|
loadAccounts: [He.SAVINGS],
|
|
1033
1037
|
loadMoreLabel: o.connect_more_accounts_button
|
|
1034
1038
|
}
|
|
1035
|
-
) : /* @__PURE__ */ e(
|
|
1039
|
+
) : /* @__PURE__ */ e(B, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
|
|
1036
1040
|
] }) }),
|
|
1037
1041
|
/* @__PURE__ */ e(Ko, { total: s }),
|
|
1038
1042
|
/* @__PURE__ */ e(
|
|
@@ -1044,7 +1048,7 @@ const No = ({ total: t }) => {
|
|
|
1044
1048
|
}
|
|
1045
1049
|
)
|
|
1046
1050
|
] });
|
|
1047
|
-
},
|
|
1051
|
+
}, Vo = v(jo), Ge = v(
|
|
1048
1052
|
({ label: t, value: o, status: n, bottomComponent: r, statusBarData: s = [] }) => {
|
|
1049
1053
|
const i = {
|
|
1050
1054
|
GOOD: {
|
|
@@ -1097,17 +1101,17 @@ const No = ({ total: t }) => {
|
|
|
1097
1101
|
)
|
|
1098
1102
|
] }),
|
|
1099
1103
|
/* @__PURE__ */ a(p, { children: [
|
|
1100
|
-
/* @__PURE__ */ e(
|
|
1104
|
+
/* @__PURE__ */ e(Vn, { data: c, height: 16 }),
|
|
1101
1105
|
r
|
|
1102
1106
|
] })
|
|
1103
1107
|
]
|
|
1104
1108
|
}
|
|
1105
1109
|
);
|
|
1106
1110
|
}
|
|
1107
|
-
),
|
|
1111
|
+
), Yo = {
|
|
1108
1112
|
sticky_label: "You have saved"
|
|
1109
1113
|
}, Xo = ["$0", "$250", "$500", "$750", "$1k"], qo = () => {
|
|
1110
|
-
const { healthScore: t } =
|
|
1114
|
+
const { healthScore: t } = P(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = Mn(o), r = ft(o);
|
|
1111
1115
|
return /* @__PURE__ */ e(
|
|
1112
1116
|
Ge,
|
|
1113
1117
|
{
|
|
@@ -1125,14 +1129,14 @@ const No = ({ total: t }) => {
|
|
|
1125
1129
|
),
|
|
1126
1130
|
/* @__PURE__ */ e(I, { variant: "caption", children: s })
|
|
1127
1131
|
] }, s)) }),
|
|
1128
|
-
label:
|
|
1132
|
+
label: Yo.sticky_label,
|
|
1129
1133
|
status: r,
|
|
1130
1134
|
statusBarData: [
|
|
1131
1135
|
{
|
|
1132
1136
|
percentage: n
|
|
1133
1137
|
}
|
|
1134
1138
|
],
|
|
1135
|
-
value:
|
|
1139
|
+
value: $(o ?? 0, "0,0.00")
|
|
1136
1140
|
}
|
|
1137
1141
|
);
|
|
1138
1142
|
}, Uo = v(qo), ze = ({
|
|
@@ -1142,17 +1146,17 @@ const No = ({ total: t }) => {
|
|
|
1142
1146
|
formatDate: r = It,
|
|
1143
1147
|
secondaryIcon: s
|
|
1144
1148
|
}) => {
|
|
1145
|
-
const i =
|
|
1146
|
-
let
|
|
1147
|
-
return S && (
|
|
1148
|
-
...
|
|
1149
|
-
category: _.default_categories[
|
|
1149
|
+
const i = z(), { connect: c, finstrong: l, categories: _ } = x(), [d, h] = m.useState(!1), [u, y] = m.useState(!1), { getCategoryName: f } = Ye(), w = 3, S = t.length > w, D = t.length - w;
|
|
1150
|
+
let C = t;
|
|
1151
|
+
return S && (C = t.map((g) => ({
|
|
1152
|
+
...g,
|
|
1153
|
+
category: _.default_categories[g.top_level_category_guid]?.replace(
|
|
1150
1154
|
/&/g,
|
|
1151
1155
|
"&"
|
|
1152
|
-
) ?? f(
|
|
1153
|
-
})).sort((
|
|
1156
|
+
) ?? f(g.top_level_category_guid)
|
|
1157
|
+
})).sort((g, b) => b.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ a(G, { children: [
|
|
1154
1158
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
1155
|
-
|
|
1159
|
+
B,
|
|
1156
1160
|
{
|
|
1157
1161
|
onClick: () => y(!0),
|
|
1158
1162
|
size: "small",
|
|
@@ -1165,12 +1169,12 @@ const No = ({ total: t }) => {
|
|
|
1165
1169
|
re,
|
|
1166
1170
|
{
|
|
1167
1171
|
onClose: () => y(!1),
|
|
1168
|
-
showConnectWidget:
|
|
1172
|
+
showConnectWidget: u,
|
|
1169
1173
|
title: c.mini_title
|
|
1170
1174
|
}
|
|
1171
1175
|
)
|
|
1172
1176
|
] }) : /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
|
|
1173
|
-
/* @__PURE__ */ e(k, { sx: { border: `1px solid ${i.palette.divider}`, borderRadius: 2 }, children: t.slice(0,
|
|
1177
|
+
/* @__PURE__ */ e(k, { sx: { border: `1px solid ${i.palette.divider}`, borderRadius: 2 }, children: t.slice(0, w).sort((g, b) => b.date - g.date).map((g, b) => /* @__PURE__ */ a(
|
|
1174
1178
|
p,
|
|
1175
1179
|
{
|
|
1176
1180
|
sx: {
|
|
@@ -1184,8 +1188,8 @@ const No = ({ total: t }) => {
|
|
|
1184
1188
|
/* @__PURE__ */ e(p, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
|
|
1185
1189
|
yn,
|
|
1186
1190
|
{
|
|
1187
|
-
categoryGuid:
|
|
1188
|
-
merchantGuid:
|
|
1191
|
+
categoryGuid: g.top_level_category_guid || "",
|
|
1192
|
+
merchantGuid: g.merchant_guid || "",
|
|
1189
1193
|
size: 32
|
|
1190
1194
|
}
|
|
1191
1195
|
) }),
|
|
@@ -1197,7 +1201,7 @@ const No = ({ total: t }) => {
|
|
|
1197
1201
|
flexDirection: "row",
|
|
1198
1202
|
gap: 12,
|
|
1199
1203
|
justifyContent: "space-between",
|
|
1200
|
-
...
|
|
1204
|
+
...b < Math.min(t.length, w) - 1 && {
|
|
1201
1205
|
borderBottom: `1px solid ${i.palette.divider}`
|
|
1202
1206
|
},
|
|
1203
1207
|
pb: 14,
|
|
@@ -1206,27 +1210,27 @@ const No = ({ total: t }) => {
|
|
|
1206
1210
|
},
|
|
1207
1211
|
children: [
|
|
1208
1212
|
/* @__PURE__ */ a(p, { sx: { gap: 4 }, children: [
|
|
1209
|
-
/* @__PURE__ */ e(M, { bold: !0, variant: "body1", children:
|
|
1213
|
+
/* @__PURE__ */ e(M, { bold: !0, variant: "body1", children: g.description }),
|
|
1210
1214
|
/* @__PURE__ */ a(p, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1211
1215
|
!!s && s,
|
|
1212
|
-
/* @__PURE__ */ e(I, { variant: "caption", children: r(
|
|
1216
|
+
/* @__PURE__ */ e(I, { variant: "caption", children: r(g.date) })
|
|
1213
1217
|
] })
|
|
1214
1218
|
] }),
|
|
1215
|
-
/* @__PURE__ */ e(M, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children:
|
|
1219
|
+
/* @__PURE__ */ e(M, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: $(g.amount, "0,0.00") })
|
|
1216
1220
|
]
|
|
1217
1221
|
},
|
|
1218
|
-
|
|
1222
|
+
g.guid || b
|
|
1219
1223
|
)
|
|
1220
1224
|
]
|
|
1221
1225
|
},
|
|
1222
|
-
|
|
1226
|
+
b
|
|
1223
1227
|
)) }),
|
|
1224
|
-
S && /* @__PURE__ */ a(
|
|
1228
|
+
S && /* @__PURE__ */ a(G, { children: [
|
|
1225
1229
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
1226
|
-
|
|
1230
|
+
B,
|
|
1227
1231
|
{
|
|
1228
1232
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1229
|
-
onClick: () =>
|
|
1233
|
+
onClick: () => h(!0),
|
|
1230
1234
|
size: "small",
|
|
1231
1235
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1232
1236
|
children: /* @__PURE__ */ a(I, { bold: !0, variant: "body1", children: [
|
|
@@ -1240,9 +1244,9 @@ const No = ({ total: t }) => {
|
|
|
1240
1244
|
ne,
|
|
1241
1245
|
{
|
|
1242
1246
|
isOpen: d,
|
|
1243
|
-
onClose: () =>
|
|
1247
|
+
onClose: () => h(!1),
|
|
1244
1248
|
title: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1245
|
-
children: /* @__PURE__ */ e(
|
|
1249
|
+
children: /* @__PURE__ */ e(Yn, { transaction: C })
|
|
1246
1250
|
}
|
|
1247
1251
|
)
|
|
1248
1252
|
] })
|
|
@@ -1252,11 +1256,11 @@ const No = ({ total: t }) => {
|
|
|
1252
1256
|
finstrong: {
|
|
1253
1257
|
key_indicators_spend: { pay_bills_on_time_drawer: t }
|
|
1254
1258
|
}
|
|
1255
|
-
} = x(), { getSpendingFeeTransactions: o, allTransactions: n } =
|
|
1259
|
+
} = x(), { getSpendingFeeTransactions: o, allTransactions: n } = P();
|
|
1256
1260
|
return m.useEffect(() => {
|
|
1257
1261
|
o().finally();
|
|
1258
|
-
}, []), /* @__PURE__ */ e(
|
|
1259
|
-
|
|
1262
|
+
}, []), /* @__PURE__ */ e(G, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ a(
|
|
1263
|
+
Y,
|
|
1260
1264
|
{
|
|
1261
1265
|
sx: {
|
|
1262
1266
|
backgroundColor: "background.paper",
|
|
@@ -1269,13 +1273,13 @@ const No = ({ total: t }) => {
|
|
|
1269
1273
|
children: [
|
|
1270
1274
|
/* @__PURE__ */ e(ln, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1271
1275
|
/* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1272
|
-
/* @__PURE__ */ e(
|
|
1276
|
+
/* @__PURE__ */ e(V, { children: t.pay_bills_on_time_zero_fees_title }),
|
|
1273
1277
|
/* @__PURE__ */ e(M, { variant: "subtitle1", children: t.pay_bills_on_time_zero_fees_description })
|
|
1274
1278
|
] })
|
|
1275
1279
|
]
|
|
1276
1280
|
}
|
|
1277
1281
|
) : /* @__PURE__ */ a(
|
|
1278
|
-
|
|
1282
|
+
Y,
|
|
1279
1283
|
{
|
|
1280
1284
|
sx: {
|
|
1281
1285
|
p: 16,
|
|
@@ -1283,7 +1287,7 @@ const No = ({ total: t }) => {
|
|
|
1283
1287
|
backgroundColor: "background.paper"
|
|
1284
1288
|
},
|
|
1285
1289
|
children: [
|
|
1286
|
-
/* @__PURE__ */ e(
|
|
1290
|
+
/* @__PURE__ */ e(V, { sx: { textAlign: "left", pb: 8 }, children: t.pay_bills_on_time_sticky_fee_count }),
|
|
1287
1291
|
/* @__PURE__ */ e(
|
|
1288
1292
|
ze,
|
|
1289
1293
|
{
|
|
@@ -1298,7 +1302,7 @@ const No = ({ total: t }) => {
|
|
|
1298
1302
|
}
|
|
1299
1303
|
) });
|
|
1300
1304
|
}, Zo = v(Qo), Jo = () => {
|
|
1301
|
-
const { healthScore: t } =
|
|
1305
|
+
const { healthScore: t } = P(), { finstrong: o } = x(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = Dn(t.spending_fee_transaction_count);
|
|
1302
1306
|
return /* @__PURE__ */ a(
|
|
1303
1307
|
p,
|
|
1304
1308
|
{
|
|
@@ -1341,7 +1345,7 @@ const No = ({ total: t }) => {
|
|
|
1341
1345
|
)
|
|
1342
1346
|
] });
|
|
1343
1347
|
}, nr = v(tr), or = () => {
|
|
1344
|
-
const { finstrong: t } = x(), { healthScore: o, allTransactions: n, loadSpendTransactions: r, loadDebtSpend: s } =
|
|
1348
|
+
const { finstrong: t } = x(), { healthScore: o, allTransactions: n, loadSpendTransactions: r, loadDebtSpend: s } = P(), { isInitialized: i } = X();
|
|
1345
1349
|
m.useEffect(() => {
|
|
1346
1350
|
i && (r().finally(), s().finally());
|
|
1347
1351
|
}, [i]);
|
|
@@ -1361,8 +1365,8 @@ const No = ({ total: t }) => {
|
|
|
1361
1365
|
] }) : /* @__PURE__ */ e(oe, {});
|
|
1362
1366
|
}, rr = v(or), ar = () => {
|
|
1363
1367
|
const [t, o] = m.useState(0), { finstrong: n } = x();
|
|
1364
|
-
return /* @__PURE__ */ a(
|
|
1365
|
-
/* @__PURE__ */ a(
|
|
1368
|
+
return /* @__PURE__ */ a(G, { children: [
|
|
1369
|
+
/* @__PURE__ */ a(Y, { children: [
|
|
1366
1370
|
/* @__PURE__ */ a(
|
|
1367
1371
|
Ue,
|
|
1368
1372
|
{
|
|
@@ -1399,7 +1403,7 @@ const No = ({ total: t }) => {
|
|
|
1399
1403
|
/* @__PURE__ */ e(Ze, { chartFor: "savingsOverTime" })
|
|
1400
1404
|
] });
|
|
1401
1405
|
}, ir = v(ar), sr = () => {
|
|
1402
|
-
const { finstrong: t } = x(), { healthScore: o } =
|
|
1406
|
+
const { finstrong: t } = x(), { healthScore: o } = P(), n = o.months_of_cash_on_hand, r = xt(n ? n * 30 : null), s = 183 / 6, i = Math.floor(n), c = Math.round((n - i) * s), l = n / 6 * 100;
|
|
1403
1407
|
return /* @__PURE__ */ e(
|
|
1404
1408
|
Ge,
|
|
1405
1409
|
{
|
|
@@ -1449,7 +1453,7 @@ const No = ({ total: t }) => {
|
|
|
1449
1453
|
}
|
|
1450
1454
|
);
|
|
1451
1455
|
}, cr = v(sr), lr = () => {
|
|
1452
|
-
const { healthScore: t } =
|
|
1456
|
+
const { healthScore: t } = P(), { finstrong: o } = x(), n = Re(t.debt_to_income_ratio) ?? 0, r = Object.keys(t).length === 0, i = ((c) => r ? "MISSING" : c <= Ae.Good ? "GOOD" : c >= Ae.FairMin && c <= Ae.FairMax ? "FAIR" : c >= Ae.OffTrack ? "OFF_TRACK" : "MISSING")(n);
|
|
1453
1457
|
return /* @__PURE__ */ e(
|
|
1454
1458
|
Ge,
|
|
1455
1459
|
{
|
|
@@ -1525,11 +1529,11 @@ const No = ({ total: t }) => {
|
|
|
1525
1529
|
percentage: `${n}%`
|
|
1526
1530
|
}
|
|
1527
1531
|
],
|
|
1528
|
-
value:
|
|
1532
|
+
value: $(t.ninety_day_debt_spend, "0,0.00")
|
|
1529
1533
|
}
|
|
1530
1534
|
);
|
|
1531
1535
|
}, dr = v(lr), pr = () => {
|
|
1532
|
-
const { healthScore: t, allTransactions: o } =
|
|
1536
|
+
const { healthScore: t, allTransactions: o } = P(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
|
|
1533
1537
|
return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1534
1538
|
/* @__PURE__ */ e(
|
|
1535
1539
|
Se,
|
|
@@ -1543,7 +1547,7 @@ const No = ({ total: t }) => {
|
|
|
1543
1547
|
// TODO: Need to add More Transactions functionality
|
|
1544
1548
|
/* @__PURE__ */ e(ze, { transactions: o.income.map((c) => c.transaction) })
|
|
1545
1549
|
) : /* @__PURE__ */ e(
|
|
1546
|
-
|
|
1550
|
+
B,
|
|
1547
1551
|
{
|
|
1548
1552
|
onClick: () => {
|
|
1549
1553
|
i(!0);
|
|
@@ -1562,7 +1566,7 @@ const No = ({ total: t }) => {
|
|
|
1562
1566
|
)
|
|
1563
1567
|
] });
|
|
1564
1568
|
}, _r = v(pr), ur = () => {
|
|
1565
|
-
const { allTransactions: t, healthScore: o } =
|
|
1569
|
+
const { allTransactions: t, healthScore: o } = P(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
|
|
1566
1570
|
return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1567
1571
|
/* @__PURE__ */ e(
|
|
1568
1572
|
Se,
|
|
@@ -1582,7 +1586,7 @@ const No = ({ total: t }) => {
|
|
|
1582
1586
|
}
|
|
1583
1587
|
)
|
|
1584
1588
|
) : /* @__PURE__ */ e(
|
|
1585
|
-
|
|
1589
|
+
B,
|
|
1586
1590
|
{
|
|
1587
1591
|
onClick: () => {
|
|
1588
1592
|
i(!0);
|
|
@@ -1607,23 +1611,23 @@ const No = ({ total: t }) => {
|
|
|
1607
1611
|
style: r,
|
|
1608
1612
|
...s
|
|
1609
1613
|
}) => {
|
|
1610
|
-
const i =
|
|
1614
|
+
const i = z(), c = m.useRef(null), { width: l } = no({
|
|
1611
1615
|
width: r.width
|
|
1612
1616
|
});
|
|
1613
1617
|
m.useLayoutEffect(() => {
|
|
1614
|
-
const
|
|
1618
|
+
const u = new ResizeObserver(() => {
|
|
1615
1619
|
window.requestAnimationFrame(() => {
|
|
1616
1620
|
if (c.current) {
|
|
1617
|
-
const { width: y } = c.current.getBoundingClientRect(), f = y / 2,
|
|
1618
|
-
|
|
1621
|
+
const { width: y } = c.current.getBoundingClientRect(), f = y / 2, w = c.current.querySelector("text");
|
|
1622
|
+
w && w.setAttribute("transform", `translate(${f}, -8)`);
|
|
1619
1623
|
}
|
|
1620
1624
|
});
|
|
1621
1625
|
});
|
|
1622
|
-
return c.current &&
|
|
1623
|
-
c.current &&
|
|
1626
|
+
return c.current && u.observe(c.current), () => {
|
|
1627
|
+
c.current && u.unobserve(c.current);
|
|
1624
1628
|
};
|
|
1625
1629
|
}, []);
|
|
1626
|
-
const { formattedComparison: _, formattedMain: d } = o[n.index],
|
|
1630
|
+
const { formattedComparison: _, formattedMain: d } = o[n.index], h = n.type === 0 ? d : _;
|
|
1627
1631
|
return /* @__PURE__ */ a("g", { children: [
|
|
1628
1632
|
/* @__PURE__ */ e(st.rect, { ...s, fill: t, ref: c, rx: 2, style: r }),
|
|
1629
1633
|
/* @__PURE__ */ e(
|
|
@@ -1633,16 +1637,16 @@ const No = ({ total: t }) => {
|
|
|
1633
1637
|
fontSize: 9,
|
|
1634
1638
|
fontWeight: 400,
|
|
1635
1639
|
textAnchor: "middle",
|
|
1636
|
-
transform: l.to((
|
|
1640
|
+
transform: l.to((u) => `translate(${u / 2}, -5)`),
|
|
1637
1641
|
x: r.x,
|
|
1638
1642
|
y: r.y,
|
|
1639
|
-
children:
|
|
1643
|
+
children: h
|
|
1640
1644
|
}
|
|
1641
1645
|
)
|
|
1642
1646
|
] });
|
|
1643
1647
|
}, Fe = (t, o = 1e3) => {
|
|
1644
1648
|
const n = Math.abs(t) >= o ? "0.[0]a" : "0";
|
|
1645
|
-
return
|
|
1649
|
+
return $(t, n);
|
|
1646
1650
|
}, $t = ({
|
|
1647
1651
|
chartFor: t,
|
|
1648
1652
|
data: o,
|
|
@@ -1654,9 +1658,9 @@ const No = ({ total: t }) => {
|
|
|
1654
1658
|
totalComparison: l,
|
|
1655
1659
|
totalMain: _
|
|
1656
1660
|
}) => {
|
|
1657
|
-
const d =
|
|
1661
|
+
const d = z(), h = Zn(d.breakpoints.down("xs")), u = m.useMemo(
|
|
1658
1662
|
() => o.sort((g, b) => g.month - b.month).map((g) => {
|
|
1659
|
-
const b = In(g.month),
|
|
1663
|
+
const b = In(g.month), L = {
|
|
1660
1664
|
spending_vs_income: {
|
|
1661
1665
|
main: g.standard_spend,
|
|
1662
1666
|
comparison: g.income,
|
|
@@ -1672,23 +1676,23 @@ const No = ({ total: t }) => {
|
|
|
1672
1676
|
};
|
|
1673
1677
|
return {
|
|
1674
1678
|
label: b,
|
|
1675
|
-
...
|
|
1679
|
+
...L[t]
|
|
1676
1680
|
};
|
|
1677
1681
|
}),
|
|
1678
1682
|
[o, t]
|
|
1679
1683
|
), y = {
|
|
1680
1684
|
dataKey: "label",
|
|
1681
1685
|
scaleType: "band"
|
|
1682
|
-
}, f = Math.max(...
|
|
1686
|
+
}, f = Math.max(...u.map((g) => Math.max(g.main, g.comparison))), S = Math.min(...u.map((g) => Math.min(g.main, g.comparison))) === 0 && f === 0 ? 100 : Math.ceil(f * 1.2 / 1e3) * 1e3, D = S / 3, C = {
|
|
1683
1687
|
scaleType: "linear",
|
|
1684
1688
|
min: 0,
|
|
1685
|
-
max:
|
|
1689
|
+
max: S,
|
|
1686
1690
|
tickNumber: 4,
|
|
1687
|
-
tickMinStep:
|
|
1688
|
-
valueFormatter: (g) => g === 0 ? "$0" :
|
|
1691
|
+
tickMinStep: D,
|
|
1692
|
+
valueFormatter: (g) => g === 0 ? "$0" : $(g, "0.[0]a")
|
|
1689
1693
|
};
|
|
1690
1694
|
return /* @__PURE__ */ a(
|
|
1691
|
-
|
|
1695
|
+
Y,
|
|
1692
1696
|
{
|
|
1693
1697
|
sx: {
|
|
1694
1698
|
px: 16,
|
|
@@ -1706,9 +1710,9 @@ const No = ({ total: t }) => {
|
|
|
1706
1710
|
pb: 8
|
|
1707
1711
|
},
|
|
1708
1712
|
children: [
|
|
1709
|
-
/* @__PURE__ */ e(
|
|
1713
|
+
/* @__PURE__ */ e(V, { children: n }),
|
|
1710
1714
|
r && /* @__PURE__ */ e(
|
|
1711
|
-
|
|
1715
|
+
B,
|
|
1712
1716
|
{
|
|
1713
1717
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1714
1718
|
onClick: s,
|
|
@@ -1742,7 +1746,7 @@ const No = ({ total: t }) => {
|
|
|
1742
1746
|
i,
|
|
1743
1747
|
" "
|
|
1744
1748
|
] }),
|
|
1745
|
-
!
|
|
1749
|
+
!h && _ && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: _ })
|
|
1746
1750
|
] })
|
|
1747
1751
|
] }),
|
|
1748
1752
|
/* @__PURE__ */ a(p, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
@@ -1762,7 +1766,7 @@ const No = ({ total: t }) => {
|
|
|
1762
1766
|
c,
|
|
1763
1767
|
" "
|
|
1764
1768
|
] }),
|
|
1765
|
-
!
|
|
1769
|
+
!h && l && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
|
|
1766
1770
|
] })
|
|
1767
1771
|
] })
|
|
1768
1772
|
] }),
|
|
@@ -1770,33 +1774,33 @@ const No = ({ total: t }) => {
|
|
|
1770
1774
|
to,
|
|
1771
1775
|
{
|
|
1772
1776
|
colors: [`${d.palette.chartMono.chartMono3}`, `${d.palette.chartMono.chartMono5}`],
|
|
1773
|
-
dataset:
|
|
1777
|
+
dataset: u,
|
|
1774
1778
|
height: 240,
|
|
1775
|
-
margin: { top:
|
|
1779
|
+
margin: { top: 16, bottom: 34, right: 0, left: 50 },
|
|
1776
1780
|
series: [
|
|
1777
1781
|
{ dataKey: "main", type: "bar" },
|
|
1778
1782
|
{ dataKey: "comparison", type: "bar" }
|
|
1779
1783
|
],
|
|
1780
1784
|
xAxis: [y],
|
|
1781
|
-
yAxis: [
|
|
1785
|
+
yAxis: [C],
|
|
1782
1786
|
children: [
|
|
1783
1787
|
/* @__PURE__ */ e(
|
|
1784
1788
|
an,
|
|
1785
1789
|
{
|
|
1786
1790
|
slots: {
|
|
1787
1791
|
bar: (g) => {
|
|
1788
|
-
const { ownerState: b, style:
|
|
1792
|
+
const { ownerState: b, style: L, ...F } = g;
|
|
1789
1793
|
return /* @__PURE__ */ e(
|
|
1790
1794
|
mr,
|
|
1791
1795
|
{
|
|
1792
|
-
...
|
|
1796
|
+
...F,
|
|
1793
1797
|
color: b.color,
|
|
1794
|
-
data:
|
|
1798
|
+
data: u,
|
|
1795
1799
|
series: {
|
|
1796
1800
|
index: b.dataIndex,
|
|
1797
1801
|
type: Number(b.id.toString().split("-").pop())
|
|
1798
1802
|
},
|
|
1799
|
-
style:
|
|
1803
|
+
style: L
|
|
1800
1804
|
}
|
|
1801
1805
|
);
|
|
1802
1806
|
}
|
|
@@ -1850,11 +1854,11 @@ const No = ({ total: t }) => {
|
|
|
1850
1854
|
}
|
|
1851
1855
|
);
|
|
1852
1856
|
}, gr = () => {
|
|
1853
|
-
const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } =
|
|
1857
|
+
const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } = P(), { isInitialized: r } = X(), [s, i] = m.useState(0), { finstrong: c } = x();
|
|
1854
1858
|
return m.useEffect(() => {
|
|
1855
1859
|
r && (t().finally(), o().finally());
|
|
1856
|
-
}, [r]), /* @__PURE__ */ a(
|
|
1857
|
-
/* @__PURE__ */ a(
|
|
1860
|
+
}, [r]), /* @__PURE__ */ a(G, { children: [
|
|
1861
|
+
/* @__PURE__ */ a(Y, { children: [
|
|
1858
1862
|
/* @__PURE__ */ a(
|
|
1859
1863
|
Ue,
|
|
1860
1864
|
{
|
|
@@ -1908,7 +1912,7 @@ const No = ({ total: t }) => {
|
|
|
1908
1912
|
}
|
|
1909
1913
|
)
|
|
1910
1914
|
] }),
|
|
1911
|
-
n.length ? /* @__PURE__ */ a(
|
|
1915
|
+
n.length ? /* @__PURE__ */ a(G, { children: [
|
|
1912
1916
|
/* @__PURE__ */ e(
|
|
1913
1917
|
$t,
|
|
1914
1918
|
{
|
|
@@ -1920,7 +1924,7 @@ const No = ({ total: t }) => {
|
|
|
1920
1924
|
}
|
|
1921
1925
|
),
|
|
1922
1926
|
/* @__PURE__ */ e(Ze, { chartFor: "debtOverTime" })
|
|
1923
|
-
] }) : /* @__PURE__ */ a(
|
|
1927
|
+
] }) : /* @__PURE__ */ a(G, { children: [
|
|
1924
1928
|
/* @__PURE__ */ e(
|
|
1925
1929
|
Le,
|
|
1926
1930
|
{
|
|
@@ -1956,7 +1960,7 @@ const No = ({ total: t }) => {
|
|
|
1956
1960
|
] })
|
|
1957
1961
|
] });
|
|
1958
1962
|
}, yr = v(gr), br = () => {
|
|
1959
|
-
const { healthScore: t } =
|
|
1963
|
+
const { healthScore: t } = P(), { finstrong: o } = x(), n = Re(t.spend_to_income_ratio) ?? 0, r = Object.keys(t).length === 0, i = ((l) => r ? "MISSING" : l < Oe.Good ? "GOOD" : l >= Oe.Good && l <= Oe.Fair ? "FAIR" : l >= Oe.OffTrack ? "OFF_TRACK" : "MISSING")(n), c = {
|
|
1960
1964
|
GOOD: [{ percentage: `${n}%` }],
|
|
1961
1965
|
FAIR: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
1962
1966
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
@@ -1976,7 +1980,7 @@ const No = ({ total: t }) => {
|
|
|
1976
1980
|
},
|
|
1977
1981
|
children: [
|
|
1978
1982
|
/* @__PURE__ */ a(I, { variant: "body2", children: [
|
|
1979
|
-
r ? "-" :
|
|
1983
|
+
r ? "-" : $(t.ninety_day_income, "0,0.00"),
|
|
1980
1984
|
" ",
|
|
1981
1985
|
o?.key_indicators_spend.spend_less_than_you_make_drawer.income
|
|
1982
1986
|
] }),
|
|
@@ -1991,11 +1995,11 @@ const No = ({ total: t }) => {
|
|
|
1991
1995
|
label: o?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
|
|
1992
1996
|
status: i,
|
|
1993
1997
|
statusBarData: c,
|
|
1994
|
-
value: r ? "$0" :
|
|
1998
|
+
value: r ? "$0" : $(t.ninety_day_spend, "0,0.00")
|
|
1995
1999
|
}
|
|
1996
2000
|
);
|
|
1997
2001
|
}, fr = v(br), xr = () => {
|
|
1998
|
-
const { accounts: t } = xe(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } =
|
|
2002
|
+
const { accounts: t } = xe(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ye(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = P(), { appDataStore: c } = Ln(), { finstrong: l, goals: _, spending: d } = x(), h = z(), [u, y] = m.useState("");
|
|
1999
2003
|
m.useEffect(() => {
|
|
2000
2004
|
r(
|
|
2001
2005
|
t,
|
|
@@ -2004,14 +2008,14 @@ const No = ({ total: t }) => {
|
|
|
2004
2008
|
).finally();
|
|
2005
2009
|
}, [t]);
|
|
2006
2010
|
const f = m.useMemo(
|
|
2007
|
-
() => oo(o, _,
|
|
2011
|
+
() => oo(o, _, h, n),
|
|
2008
2012
|
[o, n]
|
|
2009
|
-
),
|
|
2010
|
-
y(
|
|
2013
|
+
), w = (C) => {
|
|
2014
|
+
y(u === C ? "" : C);
|
|
2011
2015
|
}, { totalSpending: S, totalIncome: D } = m.useMemo(() => s?.reduce(
|
|
2012
|
-
(
|
|
2013
|
-
totalSpending:
|
|
2014
|
-
totalIncome:
|
|
2016
|
+
(C, { standard_spend: g = 0, income: b = 0 }) => ({
|
|
2017
|
+
totalSpending: C.totalSpending + g,
|
|
2018
|
+
totalIncome: C.totalIncome + b
|
|
2015
2019
|
}),
|
|
2016
2020
|
{ totalSpending: 0, totalIncome: 0 }
|
|
2017
2021
|
), [s]);
|
|
@@ -2028,8 +2032,8 @@ const No = ({ total: t }) => {
|
|
|
2028
2032
|
legendLabelMain: l.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2029
2033
|
onClick: () => i("trends")(),
|
|
2030
2034
|
title: l.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2031
|
-
totalComparison:
|
|
2032
|
-
totalMain:
|
|
2035
|
+
totalComparison: $(D, "0,0.00"),
|
|
2036
|
+
totalMain: $(S, "0,0.00")
|
|
2033
2037
|
}
|
|
2034
2038
|
) : /* @__PURE__ */ e(
|
|
2035
2039
|
Le,
|
|
@@ -2053,7 +2057,7 @@ const No = ({ total: t }) => {
|
|
|
2053
2057
|
}
|
|
2054
2058
|
),
|
|
2055
2059
|
f ? /* @__PURE__ */ a(
|
|
2056
|
-
|
|
2060
|
+
Y,
|
|
2057
2061
|
{
|
|
2058
2062
|
sx: {
|
|
2059
2063
|
px: 16,
|
|
@@ -2071,9 +2075,9 @@ const No = ({ total: t }) => {
|
|
|
2071
2075
|
pb: 8
|
|
2072
2076
|
},
|
|
2073
2077
|
children: [
|
|
2074
|
-
/* @__PURE__ */ e(
|
|
2078
|
+
/* @__PURE__ */ e(V, { children: l.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2075
2079
|
c.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2076
|
-
|
|
2080
|
+
B,
|
|
2077
2081
|
{
|
|
2078
2082
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2079
2083
|
onClick: () => i("spending")(),
|
|
@@ -2094,8 +2098,8 @@ const No = ({ total: t }) => {
|
|
|
2094
2098
|
ro,
|
|
2095
2099
|
{
|
|
2096
2100
|
data: f,
|
|
2097
|
-
onSelected:
|
|
2098
|
-
selectedId:
|
|
2101
|
+
onSelected: w,
|
|
2102
|
+
selectedId: u,
|
|
2099
2103
|
totalLabel: d.total_spending
|
|
2100
2104
|
}
|
|
2101
2105
|
),
|
|
@@ -2103,8 +2107,8 @@ const No = ({ total: t }) => {
|
|
|
2103
2107
|
ao,
|
|
2104
2108
|
{
|
|
2105
2109
|
data: f,
|
|
2106
|
-
onSelected:
|
|
2107
|
-
selectedId:
|
|
2110
|
+
onSelected: w,
|
|
2111
|
+
selectedId: u
|
|
2108
2112
|
}
|
|
2109
2113
|
)
|
|
2110
2114
|
] })
|
|
@@ -2157,7 +2161,7 @@ const No = ({ total: t }) => {
|
|
|
2157
2161
|
connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2158
2162
|
},
|
|
2159
2163
|
maintainEmergencySavings: {
|
|
2160
|
-
content: /* @__PURE__ */ e(
|
|
2164
|
+
content: /* @__PURE__ */ e(Vo, {}),
|
|
2161
2165
|
description: r.maintain_emergency_savings_description,
|
|
2162
2166
|
stickyComponent: /* @__PURE__ */ e(Uo, {}),
|
|
2163
2167
|
title: r.maintain_emergency_savings_title,
|
|
@@ -2215,7 +2219,7 @@ const No = ({ total: t }) => {
|
|
|
2215
2219
|
const { finstrong: s } = x(), [i, c] = m.useState(!1), l = (_) => {
|
|
2216
2220
|
(_.key === "Enter" || _.key === " ") && (_.preventDefault(), c(!0));
|
|
2217
2221
|
};
|
|
2218
|
-
return /* @__PURE__ */ a(
|
|
2222
|
+
return /* @__PURE__ */ a(G, { children: [
|
|
2219
2223
|
/* @__PURE__ */ a(
|
|
2220
2224
|
p,
|
|
2221
2225
|
{
|
|
@@ -2257,7 +2261,7 @@ const No = ({ total: t }) => {
|
|
|
2257
2261
|
)
|
|
2258
2262
|
] });
|
|
2259
2263
|
}, wr = () => {
|
|
2260
|
-
const { finstrong: t } = x(), { key_indicators_spend: o } = t, { healthScore: n } =
|
|
2264
|
+
const { finstrong: t } = x(), { key_indicators_spend: o } = t, { healthScore: n } = P(), r = (c) => {
|
|
2261
2265
|
const l = An(c), _ = {
|
|
2262
2266
|
GOOD: o.ratio_good_description,
|
|
2263
2267
|
FAIR: o.ratio_fair_description,
|
|
@@ -2302,16 +2306,16 @@ const No = ({ total: t }) => {
|
|
|
2302
2306
|
)
|
|
2303
2307
|
] });
|
|
2304
2308
|
}, kr = v(wr), Mr = () => {
|
|
2305
|
-
const { healthScore: t } =
|
|
2309
|
+
const { healthScore: t } = P(), { finstrong: o } = x(), { key_indicators_save: n } = o, r = (l) => {
|
|
2306
2310
|
const _ = xt(l), d = {
|
|
2307
2311
|
GOOD: n.days_of_cash_good_description,
|
|
2308
2312
|
FAIR: n.days_of_cash_fair_description,
|
|
2309
2313
|
OFF_TRACK: n.days_of_cash_off_track_description,
|
|
2310
2314
|
MISSING: n.days_of_cash_missing_description
|
|
2311
|
-
},
|
|
2315
|
+
}, h = _ === "MISSING" ? d[_] : j(d[_], l);
|
|
2312
2316
|
return {
|
|
2313
2317
|
cardState: _,
|
|
2314
|
-
description:
|
|
2318
|
+
description: h,
|
|
2315
2319
|
title: n.days_of_cash_title
|
|
2316
2320
|
};
|
|
2317
2321
|
}, s = (l) => {
|
|
@@ -2321,18 +2325,18 @@ const No = ({ total: t }) => {
|
|
|
2321
2325
|
OFF_TRACK: n.emergency_savings_off_track_description,
|
|
2322
2326
|
MISSING: n.emergency_savings_missing_description
|
|
2323
2327
|
};
|
|
2324
|
-
let
|
|
2325
|
-
return _ === "FAIR" && l !== null ?
|
|
2328
|
+
let h;
|
|
2329
|
+
return _ === "FAIR" && l !== null ? h = j(
|
|
2326
2330
|
d[_],
|
|
2327
|
-
|
|
2328
|
-
) :
|
|
2331
|
+
$(l, "0,0.00")
|
|
2332
|
+
) : h = d[_], {
|
|
2329
2333
|
cardState: _,
|
|
2330
|
-
description:
|
|
2334
|
+
description: h,
|
|
2331
2335
|
title: n.emergency_savings_title
|
|
2332
2336
|
};
|
|
2333
2337
|
}, { daysOfCashOnHand: i, emergencySavings: c } = m.useMemo(() => {
|
|
2334
|
-
const l = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, _ = r(l), d = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null,
|
|
2335
|
-
return { daysOfCashOnHand: _, emergencySavings:
|
|
2338
|
+
const l = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, _ = r(l), d = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, h = s(d);
|
|
2339
|
+
return { daysOfCashOnHand: _, emergencySavings: h };
|
|
2336
2340
|
}, [
|
|
2337
2341
|
t.months_of_cash_on_hand,
|
|
2338
2342
|
t.emergency_savings_on_hand,
|
|
@@ -2360,35 +2364,35 @@ const No = ({ total: t }) => {
|
|
|
2360
2364
|
)
|
|
2361
2365
|
] });
|
|
2362
2366
|
}, Dr = v(Mr), Ir = () => {
|
|
2363
|
-
const { healthScore: t } =
|
|
2364
|
-
const d = On(_),
|
|
2367
|
+
const { healthScore: t } = P(), { finstrong: o } = x(), { key_indicators_borrow: n } = o, { user: r } = J(), s = (_) => {
|
|
2368
|
+
const d = On(_), h = {
|
|
2365
2369
|
GOOD: n.manage_debit_good_description,
|
|
2366
2370
|
FAIR: n.manage_debit_fair_description,
|
|
2367
2371
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
2368
2372
|
MISSING: n.manage_debit_missing_description
|
|
2369
|
-
},
|
|
2373
|
+
}, u = d === "FAIR" || d === "OFF_TRACK" ? j(h[d], _) : h[d];
|
|
2370
2374
|
return {
|
|
2371
2375
|
cardState: d,
|
|
2372
|
-
description:
|
|
2376
|
+
description: u,
|
|
2373
2377
|
title: n.manage_debit_title
|
|
2374
2378
|
};
|
|
2375
2379
|
}, i = (_) => {
|
|
2376
|
-
const d = bt(_),
|
|
2380
|
+
const d = bt(_), h = {
|
|
2377
2381
|
GOOD: n.credit_score_good_description,
|
|
2378
2382
|
FAIR: n.credit_score_fair_description,
|
|
2379
2383
|
OFF_TRACK: n.credit_score_off_track_description,
|
|
2380
2384
|
MISSING: n.credit_score_missing_description
|
|
2381
|
-
},
|
|
2385
|
+
}, u = d === "MISSING" ? h[d] : j(h[d], _);
|
|
2382
2386
|
return {
|
|
2383
2387
|
cardState: d,
|
|
2384
|
-
description:
|
|
2388
|
+
description: u,
|
|
2385
2389
|
title: n.credit_score_title
|
|
2386
2390
|
};
|
|
2387
2391
|
}, { manageDebtStatus: c, creditScoreStatus: l } = m.useMemo(() => {
|
|
2388
|
-
const _ = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, d = s(_),
|
|
2392
|
+
const _ = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, d = s(_), h = i(r.credit_score || null);
|
|
2389
2393
|
return {
|
|
2390
2394
|
manageDebtStatus: d,
|
|
2391
|
-
creditScoreStatus:
|
|
2395
|
+
creditScoreStatus: h
|
|
2392
2396
|
};
|
|
2393
2397
|
}, [t.debt_to_income_ratio, r.credit_score, n, o]);
|
|
2394
2398
|
return /* @__PURE__ */ a(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
@@ -2413,7 +2417,7 @@ const No = ({ total: t }) => {
|
|
|
2413
2417
|
] });
|
|
2414
2418
|
}, Tr = v(Ir), Ar = () => {
|
|
2415
2419
|
const [t, o] = m.useState(0), { finstrong: n } = x();
|
|
2416
|
-
return /* @__PURE__ */ a(
|
|
2420
|
+
return /* @__PURE__ */ a(G, { children: [
|
|
2417
2421
|
/* @__PURE__ */ a(
|
|
2418
2422
|
Ue,
|
|
2419
2423
|
{
|
|
@@ -2476,11 +2480,11 @@ const No = ({ total: t }) => {
|
|
|
2476
2480
|
return n ? /* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2477
2481
|
/* @__PURE__ */ e(ht, { size: 48 }),
|
|
2478
2482
|
/* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2479
|
-
/* @__PURE__ */ e(
|
|
2483
|
+
/* @__PURE__ */ e(V, { children: o.missing_data_title }),
|
|
2480
2484
|
/* @__PURE__ */ e(M, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
|
|
2481
2485
|
] }),
|
|
2482
2486
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
2483
|
-
|
|
2487
|
+
B,
|
|
2484
2488
|
{
|
|
2485
2489
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2486
2490
|
onClick: t,
|
|
@@ -2510,16 +2514,16 @@ const No = ({ total: t }) => {
|
|
|
2510
2514
|
const { finstrong: d } = x();
|
|
2511
2515
|
return /* @__PURE__ */ a(m.Fragment, { children: [
|
|
2512
2516
|
/* @__PURE__ */ a(p, { children: [
|
|
2513
|
-
!!r.length && /* @__PURE__ */ e(k, { sx: { pb: 24 }, children: r.reduce((
|
|
2514
|
-
if (
|
|
2515
|
-
const f = Xn(y, r),
|
|
2516
|
-
return
|
|
2517
|
+
!!r.length && /* @__PURE__ */ e(k, { sx: { pb: 24 }, children: r.reduce((h, u, y) => {
|
|
2518
|
+
if (u.guid === _.guid) return h;
|
|
2519
|
+
const f = Xn(y, r), w = qn(y, r);
|
|
2520
|
+
return h.push(
|
|
2517
2521
|
/* @__PURE__ */ a(m.Fragment, { children: [
|
|
2518
|
-
f && /* @__PURE__ */ e(Un, { children: It(
|
|
2519
|
-
/* @__PURE__ */ e(Qn, { transaction:
|
|
2520
|
-
/* @__PURE__ */ e(le, { sx: { ml:
|
|
2521
|
-
] },
|
|
2522
|
-
),
|
|
2522
|
+
f && /* @__PURE__ */ e(Un, { children: It(u.date) }),
|
|
2523
|
+
/* @__PURE__ */ e(Qn, { transaction: u }),
|
|
2524
|
+
/* @__PURE__ */ e(le, { sx: { ml: w ? 44 : 0 } })
|
|
2525
|
+
] }, u.guid)
|
|
2526
|
+
), h;
|
|
2523
2527
|
}, []) }),
|
|
2524
2528
|
/* @__PURE__ */ e(
|
|
2525
2529
|
lo,
|
|
@@ -2535,7 +2539,7 @@ const No = ({ total: t }) => {
|
|
|
2535
2539
|
)
|
|
2536
2540
|
] }),
|
|
2537
2541
|
/* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2538
|
-
|
|
2542
|
+
B,
|
|
2539
2543
|
{
|
|
2540
2544
|
fullWidth: !0,
|
|
2541
2545
|
onClick: () => s({ step: A.MonthlyIncome, type: "main" }),
|
|
@@ -2545,7 +2549,7 @@ const No = ({ total: t }) => {
|
|
|
2545
2549
|
) })
|
|
2546
2550
|
] });
|
|
2547
2551
|
}, Lr = v(Pr), Br = ({ selectedDate: t, setSelectedDate: o }) => {
|
|
2548
|
-
const { finstrong: n } = x(), r =
|
|
2552
|
+
const { finstrong: n } = x(), r = z(), s = (i) => {
|
|
2549
2553
|
o(Math.floor(new Date(i).getTime() / 1e3));
|
|
2550
2554
|
};
|
|
2551
2555
|
return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(uo, { dateAdapter: Ot, children: /* @__PURE__ */ e(
|
|
@@ -2620,7 +2624,7 @@ const No = ({ total: t }) => {
|
|
|
2620
2624
|
value: r
|
|
2621
2625
|
}) => /* @__PURE__ */ a(p, { sx: { gap: 20, p: 24 }, children: [
|
|
2622
2626
|
/* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
|
|
2623
|
-
/* @__PURE__ */ e(
|
|
2627
|
+
/* @__PURE__ */ e(V, { children: o }),
|
|
2624
2628
|
/* @__PURE__ */ e(M, { variant: "subtitle1", children: n })
|
|
2625
2629
|
] }),
|
|
2626
2630
|
/* @__PURE__ */ e(Gt, { completeCopy: t, value: r })
|
|
@@ -2628,9 +2632,9 @@ const No = ({ total: t }) => {
|
|
|
2628
2632
|
step: A.ConnectAccounts,
|
|
2629
2633
|
type: "main"
|
|
2630
2634
|
}, Er = ({ isOpen: t, onClose: o }) => {
|
|
2631
|
-
const { visibleAccounts: n } = xe(), { calculateHealthScore: r } =
|
|
2635
|
+
const { visibleAccounts: n } = xe(), { calculateHealthScore: r } = P(), { finstrong: s } = x(), { setSelectedAccounts: i } = X(), { addRepeatingTransaction: c, setDateRange: l } = Xe(), { filter: _, setFilter: d, transactions: h } = Bn(), { user: u, userProfile: y, updateUser: f, updateUserProfile: w } = J(), [S, D] = m.useState(u.credit_score || 0), [C, g] = m.useState(
|
|
2632
2636
|
dt
|
|
2633
|
-
), [
|
|
2637
|
+
), [b, L] = m.useState(1), [F, U] = m.useState(Mt.EveryMonth), [W, O] = m.useState([]), [E, pe] = m.useState(!1), [Ce, ee] = m.useState(!1), [K, ve] = m.useState(u.birthday), [H, we] = m.useState(15), [N, ae] = m.useState("");
|
|
2634
2638
|
m.useEffect(() => {
|
|
2635
2639
|
l({ start: Tt(ct()), end: At(ct()) });
|
|
2636
2640
|
}, []), m.useEffect(() => {
|
|
@@ -2644,21 +2648,21 @@ const No = ({ total: t }) => {
|
|
|
2644
2648
|
}), i(n);
|
|
2645
2649
|
}, [n]);
|
|
2646
2650
|
const _e = m.useMemo(
|
|
2647
|
-
() =>
|
|
2648
|
-
[
|
|
2651
|
+
() => h.find((T) => T.guid === N),
|
|
2652
|
+
[N, h]
|
|
2649
2653
|
), ue = m.useMemo(() => ({
|
|
2650
2654
|
[A.ConnectAccounts]: !0,
|
|
2651
|
-
[A.MonthlyIncome]: !!
|
|
2652
|
-
[A.Birthday]: !!
|
|
2653
|
-
[A.CreditScore]: !!
|
|
2654
|
-
})[
|
|
2655
|
-
const { step: T } =
|
|
2656
|
-
let
|
|
2657
|
-
return T >= A.MonthlyIncome && q &&
|
|
2658
|
-
}, [
|
|
2655
|
+
[A.MonthlyIncome]: !!N,
|
|
2656
|
+
[A.Birthday]: !!u.birthday || !!K,
|
|
2657
|
+
[A.CreditScore]: !!u.credit_score || !!S
|
|
2658
|
+
})[C.step], [S, C, K, N, u]), q = n.length > 0, zt = m.useMemo(() => {
|
|
2659
|
+
const { step: T } = C;
|
|
2660
|
+
let R = 0;
|
|
2661
|
+
return T >= A.MonthlyIncome && q && R++, T >= A.Birthday && W.length && R++, T >= A.CreditScore && (u.birthday || u.credit_score) && R++, R;
|
|
2662
|
+
}, [C.step, q, W.length, u.birthday, u.credit_score]), Et = (T) => {
|
|
2659
2663
|
d({
|
|
2660
2664
|
..._,
|
|
2661
|
-
custom: (
|
|
2665
|
+
custom: (R) => T ? _o(R, T) : lt(R)
|
|
2662
2666
|
});
|
|
2663
2667
|
}, Ht = {
|
|
2664
2668
|
[A.ConnectAccounts]: {
|
|
@@ -2671,18 +2675,18 @@ const No = ({ total: t }) => {
|
|
|
2671
2675
|
detail: /* @__PURE__ */ e(
|
|
2672
2676
|
Lr,
|
|
2673
2677
|
{
|
|
2674
|
-
firstDay:
|
|
2675
|
-
frequency:
|
|
2676
|
-
incomeTransactions:
|
|
2677
|
-
secondDay:
|
|
2678
|
+
firstDay: b,
|
|
2679
|
+
frequency: F,
|
|
2680
|
+
incomeTransactions: W,
|
|
2681
|
+
secondDay: H,
|
|
2678
2682
|
setCurrentStep: (T) => {
|
|
2679
|
-
|
|
2680
|
-
if (
|
|
2681
|
-
const Te =
|
|
2682
|
-
return Te ? [...
|
|
2683
|
+
g(T), O((R) => {
|
|
2684
|
+
if (R.some((ie) => ie.guid === N)) return R.filter((ie) => ie.guid !== N);
|
|
2685
|
+
const Te = h.find((ie) => ie.guid === N);
|
|
2686
|
+
return Te ? [...R, { ...Te, firstDay: b, frequency: F, secondDay: H }] : R;
|
|
2683
2687
|
});
|
|
2684
2688
|
},
|
|
2685
|
-
setFirstDay:
|
|
2689
|
+
setFirstDay: L,
|
|
2686
2690
|
setFrequency: U,
|
|
2687
2691
|
setSecondDay: we,
|
|
2688
2692
|
transaction: _e
|
|
@@ -2694,7 +2698,7 @@ const No = ({ total: t }) => {
|
|
|
2694
2698
|
{
|
|
2695
2699
|
onSearch: Et,
|
|
2696
2700
|
onSelected: (T) => {
|
|
2697
|
-
|
|
2701
|
+
g({ step: A.MonthlyIncome, type: "detail" }), ae(T);
|
|
2698
2702
|
}
|
|
2699
2703
|
}
|
|
2700
2704
|
),
|
|
@@ -2715,28 +2719,28 @@ const No = ({ total: t }) => {
|
|
|
2715
2719
|
secondaryText: s.onboarding_credit_score_secondary
|
|
2716
2720
|
}
|
|
2717
2721
|
}, Je = () => {
|
|
2718
|
-
|
|
2722
|
+
g(dt), pe(!1), ae(""), o();
|
|
2719
2723
|
}, et = async () => {
|
|
2720
|
-
pe(!0), await
|
|
2724
|
+
pe(!0), await Vt(W), await r(), await w({ ...y, has_completed_finstrong_onboarding: !0 }), Je();
|
|
2721
2725
|
}, Nt = () => {
|
|
2722
|
-
if (
|
|
2726
|
+
if (C.step === A.CreditScore) {
|
|
2723
2727
|
et();
|
|
2724
2728
|
return;
|
|
2725
2729
|
}
|
|
2726
|
-
|
|
2730
|
+
g({ step: C.step + 1, type: "main" });
|
|
2727
2731
|
}, Kt = () => {
|
|
2728
|
-
const { step: T } =
|
|
2732
|
+
const { step: T } = C, R = T + 1;
|
|
2729
2733
|
switch (T) {
|
|
2730
2734
|
case A.Birthday:
|
|
2731
|
-
K && K !==
|
|
2735
|
+
K && K !== u.birthday && f({ ...u, birthday: K });
|
|
2732
2736
|
break;
|
|
2733
2737
|
case A.CreditScore:
|
|
2734
|
-
S && S !==
|
|
2738
|
+
S && S !== u.credit_score && f({ ...u, credit_score: S }), et();
|
|
2735
2739
|
return;
|
|
2736
2740
|
case A.MonthlyIncome:
|
|
2737
|
-
|
|
2741
|
+
N && W.findIndex(({ guid: me }) => me === N) === -1 && O((me) => [
|
|
2738
2742
|
...me,
|
|
2739
|
-
{ ..._e, firstDay:
|
|
2743
|
+
{ ..._e, firstDay: b, frequency: F, secondDay: H }
|
|
2740
2744
|
]);
|
|
2741
2745
|
break;
|
|
2742
2746
|
case A.ConnectAccounts:
|
|
@@ -2746,20 +2750,20 @@ const No = ({ total: t }) => {
|
|
|
2746
2750
|
}
|
|
2747
2751
|
break;
|
|
2748
2752
|
}
|
|
2749
|
-
|
|
2753
|
+
R in A && g({ step: R, type: "main" });
|
|
2750
2754
|
}, jt = () => {
|
|
2751
|
-
const { step: T, type:
|
|
2752
|
-
if (
|
|
2753
|
-
|
|
2755
|
+
const { step: T, type: R } = C;
|
|
2756
|
+
if (R === "detail") {
|
|
2757
|
+
g({ step: T, type: "main" });
|
|
2754
2758
|
return;
|
|
2755
2759
|
}
|
|
2756
|
-
if (T === A.Birthday &&
|
|
2757
|
-
|
|
2760
|
+
if (T === A.Birthday && W.length) {
|
|
2761
|
+
g({ step: T - 1, type: "detail" });
|
|
2758
2762
|
return;
|
|
2759
2763
|
}
|
|
2760
|
-
T > A.ConnectAccounts &&
|
|
2761
|
-
},
|
|
2762
|
-
for (const
|
|
2764
|
+
T > A.ConnectAccounts && g({ step: T - 1, type: "main" });
|
|
2765
|
+
}, Vt = async (T) => {
|
|
2766
|
+
for (const R of T) {
|
|
2763
2767
|
const {
|
|
2764
2768
|
account_guid: me,
|
|
2765
2769
|
amount: Te,
|
|
@@ -2772,7 +2776,7 @@ const No = ({ total: t }) => {
|
|
|
2772
2776
|
merchant_guid: Jt,
|
|
2773
2777
|
payee: en,
|
|
2774
2778
|
transaction_type: tn
|
|
2775
|
-
} =
|
|
2779
|
+
} = R, nn = jn(tt, so(ie)), on = {
|
|
2776
2780
|
account_guid: me,
|
|
2777
2781
|
amount: Te,
|
|
2778
2782
|
created_by: 0,
|
|
@@ -2784,11 +2788,11 @@ const No = ({ total: t }) => {
|
|
|
2784
2788
|
repeating_transaction_type: Dt.Income,
|
|
2785
2789
|
second_recurrence_day: Zt,
|
|
2786
2790
|
transaction_type: tn,
|
|
2787
|
-
user_guid:
|
|
2791
|
+
user_guid: u.guid
|
|
2788
2792
|
};
|
|
2789
|
-
await c(on,
|
|
2793
|
+
await c(on, R);
|
|
2790
2794
|
}
|
|
2791
|
-
}, he = Ht[
|
|
2795
|
+
}, he = Ht[C.step], Ie = C.step === A.ConnectAccounts, Yt = {
|
|
2792
2796
|
fullWidth: !0,
|
|
2793
2797
|
...Ie && !q && { startIcon: /* @__PURE__ */ e(mt, {}) }
|
|
2794
2798
|
}, Xt = !Ie || Ie && !q;
|
|
@@ -2802,19 +2806,19 @@ const No = ({ total: t }) => {
|
|
|
2802
2806
|
isPrimaryDisabled: !ue,
|
|
2803
2807
|
onClose: Je,
|
|
2804
2808
|
onSecondaryAction: jt,
|
|
2805
|
-
primaryButtonProps:
|
|
2809
|
+
primaryButtonProps: Yt,
|
|
2806
2810
|
primaryText: he?.mainActionContent,
|
|
2807
2811
|
secondaryColor: "primary",
|
|
2808
2812
|
secondaryText: s.onboarding_back,
|
|
2809
2813
|
title: s.title,
|
|
2810
|
-
...!
|
|
2814
|
+
...!E && { onPrimaryAction: Kt },
|
|
2811
2815
|
children: /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2812
|
-
|
|
2816
|
+
E && /* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2813
2817
|
/* @__PURE__ */ e("img", { alt: "", src: Ro, style: { minHeight: 100, width: 211 } }),
|
|
2814
2818
|
/* @__PURE__ */ e(Be, { children: s.onboarding_calculate_primary }),
|
|
2815
2819
|
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
|
|
2816
2820
|
] }),
|
|
2817
|
-
he && !
|
|
2821
|
+
he && !E && /* @__PURE__ */ a(m.Fragment, { children: [
|
|
2818
2822
|
/* @__PURE__ */ e(
|
|
2819
2823
|
zr,
|
|
2820
2824
|
{
|
|
@@ -2824,11 +2828,11 @@ const No = ({ total: t }) => {
|
|
|
2824
2828
|
value: zt
|
|
2825
2829
|
}
|
|
2826
2830
|
),
|
|
2827
|
-
|
|
2831
|
+
C.type === "main" && /* @__PURE__ */ a(k, { sx: { bgcolor: "background.default" }, children: [
|
|
2828
2832
|
he.main,
|
|
2829
|
-
Xt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(
|
|
2833
|
+
Xt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(B, { fullWidth: !0, onClick: Nt, children: s.onboarding_do_it_later }) })
|
|
2830
2834
|
] }),
|
|
2831
|
-
|
|
2835
|
+
C.type === "detail" && he.detail
|
|
2832
2836
|
] })
|
|
2833
2837
|
] })
|
|
2834
2838
|
}
|
|
@@ -2863,15 +2867,15 @@ const No = ({ total: t }) => {
|
|
|
2863
2867
|
/* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
|
|
2864
2868
|
] })
|
|
2865
2869
|
] }),
|
|
2866
|
-
/* @__PURE__ */ e(
|
|
2870
|
+
/* @__PURE__ */ e(B, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
|
|
2867
2871
|
]
|
|
2868
2872
|
}
|
|
2869
2873
|
),
|
|
2870
2874
|
/* @__PURE__ */ e(Hr, { isOpen: o, onClose: () => n(!1) })
|
|
2871
2875
|
] });
|
|
2872
2876
|
}, Kr = ({ isOpen: t, onClose: o }) => {
|
|
2873
|
-
const { finstrong: n } = x(), r =
|
|
2874
|
-
l(Math.floor(new Date(
|
|
2877
|
+
const { finstrong: n } = x(), r = z(), { updateUser: s, user: i } = J(), [c, l] = m.useState(i.birthday), _ = (h) => {
|
|
2878
|
+
l(Math.floor(new Date(h).getTime() / 1e3));
|
|
2875
2879
|
};
|
|
2876
2880
|
return /* @__PURE__ */ e(
|
|
2877
2881
|
ne,
|
|
@@ -2918,15 +2922,15 @@ const No = ({ total: t }) => {
|
|
|
2918
2922
|
) }) })
|
|
2919
2923
|
}
|
|
2920
2924
|
);
|
|
2921
|
-
}, jr = v(Kr),
|
|
2925
|
+
}, jr = v(Kr), Vr = ({ isOpen: t, onClose: o }) => {
|
|
2922
2926
|
const { visibleFinstrongAccounts: n } = xe(), {
|
|
2923
2927
|
accounts: r,
|
|
2924
2928
|
common: s,
|
|
2925
2929
|
finstrong: i
|
|
2926
|
-
} = x(), { repeatingTransactions: c } = Xe(), { user: l } = J(), _ = c.reduce((f,
|
|
2927
|
-
const { repeating_transaction_type: S, transactions: D, recurrence_type:
|
|
2928
|
-
return S === Dt.Income && (D.length > 0 ||
|
|
2929
|
-
}, 0), [d,
|
|
2930
|
+
} = x(), { repeatingTransactions: c } = Xe(), { user: l } = J(), _ = c.reduce((f, w) => {
|
|
2931
|
+
const { repeating_transaction_type: S, transactions: D, recurrence_type: C, amount: g } = w;
|
|
2932
|
+
return S === Dt.Income && (D.length > 0 || C === Mt.EveryYear) ? f + g : f;
|
|
2933
|
+
}, 0), [d, h] = m.useState(null), y = [
|
|
2930
2934
|
{
|
|
2931
2935
|
dynamicCopy: i.add_profile_item,
|
|
2932
2936
|
fallbackLabel: i.monthly_income,
|
|
@@ -2967,18 +2971,18 @@ const No = ({ total: t }) => {
|
|
|
2967
2971
|
/* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2968
2972
|
/* @__PURE__ */ a(p, { sx: { gap: 20, p: 24 }, children: [
|
|
2969
2973
|
/* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
|
|
2970
|
-
/* @__PURE__ */ e(
|
|
2974
|
+
/* @__PURE__ */ e(V, { children: i.your_financial_profile }),
|
|
2971
2975
|
/* @__PURE__ */ e(M, { children: i.financial_profile_description })
|
|
2972
2976
|
] }),
|
|
2973
2977
|
/* @__PURE__ */ e(
|
|
2974
2978
|
Gt,
|
|
2975
2979
|
{
|
|
2976
2980
|
completeCopy: i.complete,
|
|
2977
|
-
value: y.reduce((f,
|
|
2981
|
+
value: y.reduce((f, w) => f + (w.isComplete ? 1 : 0), 0)
|
|
2978
2982
|
}
|
|
2979
2983
|
)
|
|
2980
2984
|
] }),
|
|
2981
|
-
/* @__PURE__ */ e(Rn, { list: y, onClickItem:
|
|
2985
|
+
/* @__PURE__ */ e(Rn, { list: y, onClickItem: h }),
|
|
2982
2986
|
/* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2983
2987
|
We,
|
|
2984
2988
|
{
|
|
@@ -2994,23 +2998,23 @@ const No = ({ total: t }) => {
|
|
|
2994
2998
|
ne,
|
|
2995
2999
|
{
|
|
2996
3000
|
isOpen: d === te.MonthlyIncome,
|
|
2997
|
-
onClose: () =>
|
|
3001
|
+
onClose: () => h(null),
|
|
2998
3002
|
title: s.settings,
|
|
2999
3003
|
children: /* @__PURE__ */ e(go, {})
|
|
3000
3004
|
}
|
|
3001
3005
|
),
|
|
3002
|
-
/* @__PURE__ */ e(jr, { isOpen: d === te.DateOfBirth, onClose: () =>
|
|
3003
|
-
/* @__PURE__ */ e(Pt, { isOpen: d === te.CreditScore, onClose: () =>
|
|
3006
|
+
/* @__PURE__ */ e(jr, { isOpen: d === te.DateOfBirth, onClose: () => h(null) }),
|
|
3007
|
+
/* @__PURE__ */ e(Pt, { isOpen: d === te.CreditScore, onClose: () => h(null) }),
|
|
3004
3008
|
/* @__PURE__ */ e(
|
|
3005
3009
|
St,
|
|
3006
3010
|
{
|
|
3007
|
-
onClose: () =>
|
|
3011
|
+
onClose: () => h(null),
|
|
3008
3012
|
showConnectionsWidget: d === te.Connections,
|
|
3009
3013
|
title: r.manage_connections
|
|
3010
3014
|
}
|
|
3011
3015
|
)
|
|
3012
3016
|
] });
|
|
3013
|
-
},
|
|
3017
|
+
}, Yr = v(Vr), pt = ({
|
|
3014
3018
|
content: t,
|
|
3015
3019
|
islast: o = !1
|
|
3016
3020
|
}) => /* @__PURE__ */ a(xo, { sx: { minHeight: 0 }, children: [
|
|
@@ -3028,11 +3032,11 @@ const No = ({ total: t }) => {
|
|
|
3028
3032
|
newer_spend_to_income_ratio: l,
|
|
3029
3033
|
older_health_score: _,
|
|
3030
3034
|
newer_health_score: d,
|
|
3031
|
-
newer_score_calculated_at:
|
|
3032
|
-
} = t,
|
|
3035
|
+
newer_score_calculated_at: h
|
|
3036
|
+
} = t, u = bo(new Date(h), "MMM d"), y = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", f = () => r === 0 ? j(n.stayed_at, _) : r > 0 ? n.less_spending : n.more_spending, w = () => {
|
|
3033
3037
|
if (r === 0) return null;
|
|
3034
3038
|
const S = r > 0 ? n.up_from : n.down_from, D = j(S, _, d);
|
|
3035
|
-
return /* @__PURE__ */ a(
|
|
3039
|
+
return /* @__PURE__ */ a(G, { children: [
|
|
3036
3040
|
/* @__PURE__ */ e(
|
|
3037
3041
|
bn,
|
|
3038
3042
|
{
|
|
@@ -3044,7 +3048,7 @@ const No = ({ total: t }) => {
|
|
|
3044
3048
|
D
|
|
3045
3049
|
] });
|
|
3046
3050
|
};
|
|
3047
|
-
return /* @__PURE__ */ a(
|
|
3051
|
+
return /* @__PURE__ */ a(Y, { children: [
|
|
3048
3052
|
/* @__PURE__ */ e(
|
|
3049
3053
|
k,
|
|
3050
3054
|
{
|
|
@@ -3077,9 +3081,9 @@ const No = ({ total: t }) => {
|
|
|
3077
3081
|
/* @__PURE__ */ a(p, { sx: { gap: 2, width: "80%" }, children: [
|
|
3078
3082
|
/* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children: f() }),
|
|
3079
3083
|
/* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3080
|
-
|
|
3084
|
+
u,
|
|
3081
3085
|
" ",
|
|
3082
|
-
|
|
3086
|
+
w()
|
|
3083
3087
|
] })
|
|
3084
3088
|
] })
|
|
3085
3089
|
]
|
|
@@ -3125,9 +3129,9 @@ const No = ({ total: t }) => {
|
|
|
3125
3129
|
) })
|
|
3126
3130
|
] });
|
|
3127
3131
|
}, qr = v(Xr), Ur = ({ isOpen: t, onClose: o }) => {
|
|
3128
|
-
const n =
|
|
3132
|
+
const n = z(), { finstrong: r } = x(), { isCopyLoaded: s, isInitialized: i } = X(), { augmentedChartData: c, healthScore: l, healthScoreChangeReports: _, peerScore: d } = P();
|
|
3129
3133
|
if (!s || !i) return /* @__PURE__ */ e(oe, {});
|
|
3130
|
-
const
|
|
3134
|
+
const h = je(l.health_score || 0, r), u = _.slice().reverse();
|
|
3131
3135
|
return /* @__PURE__ */ e(
|
|
3132
3136
|
Lt,
|
|
3133
3137
|
{
|
|
@@ -3176,17 +3180,17 @@ const No = ({ total: t }) => {
|
|
|
3176
3180
|
}
|
|
3177
3181
|
),
|
|
3178
3182
|
/* @__PURE__ */ a(p, { sx: { gap: 4 }, children: [
|
|
3179
|
-
/* @__PURE__ */ e(M, { variant: "h3", children:
|
|
3180
|
-
/* @__PURE__ */ e(M, { variant: "XSmall", children:
|
|
3183
|
+
/* @__PURE__ */ e(M, { variant: "h3", children: h.status }),
|
|
3184
|
+
/* @__PURE__ */ e(M, { variant: "XSmall", children: h.description })
|
|
3181
3185
|
] })
|
|
3182
3186
|
] })
|
|
3183
3187
|
}
|
|
3184
3188
|
),
|
|
3185
|
-
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children:
|
|
3189
|
+
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: u.map((y, f) => /* @__PURE__ */ e(qr, { report: y }, f)) })
|
|
3186
3190
|
}
|
|
3187
3191
|
);
|
|
3188
3192
|
}, Qr = v(Ur), Zr = ({ copy: t }) => {
|
|
3189
|
-
const o =
|
|
3193
|
+
const o = z(), n = [
|
|
3190
3194
|
o.palette.chartMono.chartMono5,
|
|
3191
3195
|
o.palette.chartMono.chartMono4,
|
|
3192
3196
|
o.palette.chartMono.chartMono3,
|
|
@@ -3250,7 +3254,7 @@ const No = ({ total: t }) => {
|
|
|
3250
3254
|
return r ? /* @__PURE__ */ e(ne, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
|
|
3251
3255
|
/* @__PURE__ */ a(p, { sx: { gap: 20 }, children: [
|
|
3252
3256
|
/* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
|
|
3253
|
-
/* @__PURE__ */ e(
|
|
3257
|
+
/* @__PURE__ */ e(V, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
|
|
3254
3258
|
/* @__PURE__ */ e(M, { variant: "subtitle1", children: n.finstrong_freedom_description })
|
|
3255
3259
|
] }),
|
|
3256
3260
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(Zr, { copy: n }) })
|
|
@@ -3326,13 +3330,13 @@ const No = ({ total: t }) => {
|
|
|
3326
3330
|
] })
|
|
3327
3331
|
] }) }) : /* @__PURE__ */ e(oe, {});
|
|
3328
3332
|
}, ea = v(Jr), ta = v(() => {
|
|
3329
|
-
const [t, o] = m.useState(!1), n =
|
|
3330
|
-
return !c || !l ? /* @__PURE__ */ e(oe, {}) : /* @__PURE__ */ a(
|
|
3333
|
+
const [t, o] = m.useState(!1), n = z(), [r, { width: s }] = vt(), { finstrong: i } = x(), { isCopyLoaded: c, isInitialized: l } = X(), { healthScore: _, healthScoreChange: d } = P(), h = n.palette.mode === "dark", u = je(_?.health_score, i);
|
|
3334
|
+
return !c || !l ? /* @__PURE__ */ e(oe, {}) : /* @__PURE__ */ a(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
3331
3335
|
/* @__PURE__ */ e(
|
|
3332
3336
|
To,
|
|
3333
3337
|
{
|
|
3334
3338
|
action: /* @__PURE__ */ e(
|
|
3335
|
-
|
|
3339
|
+
B,
|
|
3336
3340
|
{
|
|
3337
3341
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3338
3342
|
onClick: () => o(!0),
|
|
@@ -3346,7 +3350,7 @@ const No = ({ total: t }) => {
|
|
|
3346
3350
|
children: i.financial_strength_header_action
|
|
3347
3351
|
}
|
|
3348
3352
|
),
|
|
3349
|
-
subheader: /* @__PURE__ */ e(
|
|
3353
|
+
subheader: /* @__PURE__ */ e(V, { color: "text.primary", children: i.financial_strength_header }),
|
|
3350
3354
|
sx: {
|
|
3351
3355
|
p: 0,
|
|
3352
3356
|
"& .MuiCardHeader-content": {
|
|
@@ -3369,7 +3373,7 @@ const No = ({ total: t }) => {
|
|
|
3369
3373
|
{
|
|
3370
3374
|
sx: {
|
|
3371
3375
|
px: 16,
|
|
3372
|
-
backgroundColor:
|
|
3376
|
+
backgroundColor: h ? "grey.800" : "grey.50",
|
|
3373
3377
|
//TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
|
|
3374
3378
|
"&.Mui-expanded": {
|
|
3375
3379
|
m: 0
|
|
@@ -3393,7 +3397,7 @@ const No = ({ total: t }) => {
|
|
|
3393
3397
|
children: /* @__PURE__ */ e(M, { sx: { fontWeight: 600 }, variant: "body1", children: i.accordion_title_text })
|
|
3394
3398
|
}
|
|
3395
3399
|
),
|
|
3396
|
-
/* @__PURE__ */ e(Do, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(M, { variant: "subtitle1", children:
|
|
3400
|
+
/* @__PURE__ */ e(Do, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(M, { variant: "subtitle1", children: u.scoreContent }) })
|
|
3397
3401
|
]
|
|
3398
3402
|
}
|
|
3399
3403
|
) : /* @__PURE__ */ e(
|
|
@@ -3405,7 +3409,7 @@ const No = ({ total: t }) => {
|
|
|
3405
3409
|
hasIcon: !1,
|
|
3406
3410
|
isDashboard: !0,
|
|
3407
3411
|
sx: {
|
|
3408
|
-
backgroundColor:
|
|
3412
|
+
backgroundColor: h ? "grey.800" : "grey.50",
|
|
3409
3413
|
//TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
|
|
3410
3414
|
".connect-more-accounts-title": {
|
|
3411
3415
|
fontWeight: 600,
|
|
@@ -3426,28 +3430,28 @@ const No = ({ total: t }) => {
|
|
|
3426
3430
|
)
|
|
3427
3431
|
] });
|
|
3428
3432
|
}), na = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
|
|
3429
|
-
const { visibleAccounts: r } = xe(), { dateRange: s, isDataLoaded: i, loadBudgetData: c, setTheme: l } = Wn(), { reloadCategoryTotals: _ } =
|
|
3430
|
-
augmentedChartData:
|
|
3431
|
-
calculateHealthScore:
|
|
3433
|
+
const { visibleAccounts: r } = xe(), { dateRange: s, isDataLoaded: i, loadBudgetData: c, setTheme: l } = Wn(), { reloadCategoryTotals: _ } = Ye(), d = P(), {
|
|
3434
|
+
augmentedChartData: h,
|
|
3435
|
+
calculateHealthScore: u,
|
|
3432
3436
|
healthScore: y,
|
|
3433
3437
|
loadAugmentedChartData: f,
|
|
3434
|
-
loadMonthlySummaries:
|
|
3438
|
+
loadMonthlySummaries: w,
|
|
3435
3439
|
loadPeerScore: S,
|
|
3436
3440
|
peerScore: D
|
|
3437
|
-
} = d, { finstrong:
|
|
3441
|
+
} = d, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: L } = X(), { onLoad: F } = $n(), { loadRepeatingTransactions: U } = Xe(), { isMobile: W } = Qe(), O = z(), { userProfile: E } = J(), [pe, Ce] = m.useState(!1), [ee, K] = m.useState(!1), [ve, H] = m.useState(!1), [we, N] = m.useState(!1);
|
|
3438
3442
|
if (m.useEffect(() => {
|
|
3439
3443
|
l(O);
|
|
3440
3444
|
}, []), m.useEffect(() => {
|
|
3441
3445
|
n && (d.handleFinstrongWidgetPrimaryCtaClick = n);
|
|
3442
3446
|
}, [n, d]), m.useEffect(() => {
|
|
3443
|
-
|
|
3444
|
-
|
|
3447
|
+
L && (w().finally(), S().finally(), u().finally(), f().finally(() => {
|
|
3448
|
+
F?.("FinstrongWidget");
|
|
3445
3449
|
}));
|
|
3446
|
-
}, [
|
|
3447
|
-
|
|
3450
|
+
}, [L]), m.useEffect(() => {
|
|
3451
|
+
L && (_(r, s.start, s.end).finally(() => {
|
|
3448
3452
|
Ce(!0);
|
|
3449
3453
|
}), i || (c(), U().finally()));
|
|
3450
|
-
}, [s, i,
|
|
3454
|
+
}, [s, i, L, r]), !b || !L || !pe) return /* @__PURE__ */ e(oe, {});
|
|
3451
3455
|
const ae = () => K(!0), _e = Math.round(D?.average_health_score?.average_health_score || 0);
|
|
3452
3456
|
return /* @__PURE__ */ a(
|
|
3453
3457
|
Ao,
|
|
@@ -3455,16 +3459,16 @@ const No = ({ total: t }) => {
|
|
|
3455
3459
|
actions: [
|
|
3456
3460
|
{
|
|
3457
3461
|
iconName: "person",
|
|
3458
|
-
label:
|
|
3462
|
+
label: C.profile,
|
|
3459
3463
|
onClick: ae
|
|
3460
3464
|
}
|
|
3461
3465
|
],
|
|
3462
3466
|
hasDivider: !0,
|
|
3463
3467
|
onBackClick: t,
|
|
3464
3468
|
sx: o,
|
|
3465
|
-
title:
|
|
3469
|
+
title: C.title,
|
|
3466
3470
|
children: [
|
|
3467
|
-
|
|
3471
|
+
E.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
|
|
3468
3472
|
p,
|
|
3469
3473
|
{
|
|
3470
3474
|
sx: {
|
|
@@ -3472,7 +3476,7 @@ const No = ({ total: t }) => {
|
|
|
3472
3476
|
flexDirection: { md: "row" },
|
|
3473
3477
|
gap: 24,
|
|
3474
3478
|
justifyContent: "center",
|
|
3475
|
-
pt:
|
|
3479
|
+
pt: W ? 24 : 16,
|
|
3476
3480
|
px: 24
|
|
3477
3481
|
},
|
|
3478
3482
|
children: [
|
|
@@ -3481,29 +3485,29 @@ const No = ({ total: t }) => {
|
|
|
3481
3485
|
/* @__PURE__ */ e(
|
|
3482
3486
|
We,
|
|
3483
3487
|
{
|
|
3484
|
-
description:
|
|
3488
|
+
description: C.connect_more_accounts_description,
|
|
3485
3489
|
drawerType: "connectDrawer",
|
|
3486
|
-
title:
|
|
3490
|
+
title: C.connect_more_accounts_title
|
|
3487
3491
|
}
|
|
3488
3492
|
)
|
|
3489
3493
|
] }),
|
|
3490
|
-
/* @__PURE__ */ e(p, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(
|
|
3494
|
+
/* @__PURE__ */ e(p, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(Y, { sx: { height: "100%", p: 16 }, children: [
|
|
3491
3495
|
/* @__PURE__ */ a(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3492
|
-
/* @__PURE__ */ e(
|
|
3496
|
+
/* @__PURE__ */ e(V, { children: C.key_indicators }),
|
|
3493
3497
|
/* @__PURE__ */ e(
|
|
3494
|
-
|
|
3498
|
+
B,
|
|
3495
3499
|
{
|
|
3496
3500
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3497
|
-
onClick: () =>
|
|
3501
|
+
onClick: () => H(!0),
|
|
3498
3502
|
sx: {
|
|
3499
3503
|
fontSize: 13
|
|
3500
3504
|
},
|
|
3501
3505
|
variant: "text",
|
|
3502
|
-
children:
|
|
3506
|
+
children: C.whats_changed
|
|
3503
3507
|
}
|
|
3504
3508
|
)
|
|
3505
3509
|
] }),
|
|
3506
|
-
|
|
3510
|
+
h.length ? /* @__PURE__ */ e(
|
|
3507
3511
|
qe,
|
|
3508
3512
|
{
|
|
3509
3513
|
axisColor: O.palette.divider,
|
|
@@ -3513,13 +3517,13 @@ const No = ({ total: t }) => {
|
|
|
3513
3517
|
customLegendBoxSx: { borderRadius: "2px" },
|
|
3514
3518
|
customLegendSx: { left: 0 },
|
|
3515
3519
|
customLegendVariant: "XSmall",
|
|
3516
|
-
datasets: [
|
|
3520
|
+
datasets: [h],
|
|
3517
3521
|
height: 300,
|
|
3518
3522
|
isGraphClippingXAxis: !0,
|
|
3519
3523
|
labelBackgroundColor: O.palette.border.dark,
|
|
3520
3524
|
labelFontColor: O.palette.common.white,
|
|
3521
3525
|
labelFontSize: typeof O.typography.XSmall?.fontSize == "string" ? parseFloat(O.typography.XSmall.fontSize) : O.typography.XSmall?.fontSize,
|
|
3522
|
-
labels: [
|
|
3526
|
+
labels: [C.key_indicators_label],
|
|
3523
3527
|
margin: { right: 0, left: 25 },
|
|
3524
3528
|
peerAverage: _e,
|
|
3525
3529
|
showArea: !0,
|
|
@@ -3527,30 +3531,30 @@ const No = ({ total: t }) => {
|
|
|
3527
3531
|
showLegend: !0,
|
|
3528
3532
|
showMarkLabel: !0,
|
|
3529
3533
|
showXAxis: !0,
|
|
3530
|
-
title:
|
|
3534
|
+
title: C.peer_average,
|
|
3531
3535
|
useCustomMark: !0,
|
|
3532
3536
|
xAxisScaleType: "band"
|
|
3533
3537
|
}
|
|
3534
|
-
) : /* @__PURE__ */ e(Rr, { onClick: () =>
|
|
3538
|
+
) : /* @__PURE__ */ e(Rr, { onClick: () => N(!0) }),
|
|
3535
3539
|
y.health_score !== null && /* @__PURE__ */ e(Or, {})
|
|
3536
3540
|
] }) })
|
|
3537
3541
|
]
|
|
3538
3542
|
}
|
|
3539
3543
|
) : /* @__PURE__ */ e(Nr, {}),
|
|
3540
|
-
/* @__PURE__ */ e(
|
|
3544
|
+
/* @__PURE__ */ e(Yr, { isOpen: ee, onClose: () => K(!1) }),
|
|
3541
3545
|
/* @__PURE__ */ e(
|
|
3542
3546
|
re,
|
|
3543
3547
|
{
|
|
3544
|
-
onClose: () =>
|
|
3548
|
+
onClose: () => N(!1),
|
|
3545
3549
|
showConnectWidget: we,
|
|
3546
|
-
title:
|
|
3550
|
+
title: g.mini_title
|
|
3547
3551
|
}
|
|
3548
3552
|
),
|
|
3549
3553
|
/* @__PURE__ */ e(
|
|
3550
3554
|
Qr,
|
|
3551
3555
|
{
|
|
3552
3556
|
isOpen: ve,
|
|
3553
|
-
onClose: () =>
|
|
3557
|
+
onClose: () => H(!1)
|
|
3554
3558
|
}
|
|
3555
3559
|
)
|
|
3556
3560
|
]
|