@mx-cartographer/experiences 8.0.19 → 8.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -4
- package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-B7zfcad7.mjs} +1 -1
- package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-DZpOoZQa.mjs} +1 -1
- package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-CmnaZDS6.mjs} +27 -27
- package/dist/{Help-DBAosGjO.mjs → Help-BkmSY96v.mjs} +1 -1
- package/dist/{ManageIncome-CvfRTf-j.mjs → ManageIncome-BJ7c7plg.mjs} +1 -1
- package/dist/{NotificationSettings-D7VqsrZy.mjs → NotificationSettings-DBT37CVB.mjs} +1 -1
- package/dist/{RecurringSettings-DJIUgK5A.mjs → RecurringSettings-DnD0AqWa.mjs} +1 -1
- package/dist/{SpendingLegend-BCnXkPCD.mjs → SpendingLegend-CypdabwS.mjs} +1 -1
- package/dist/{TransactionDetails-KklNHa-s.mjs → TransactionDetails-D6XZakc-.mjs} +1 -1
- package/dist/WidgetContainer-DYKMArWw.mjs +468 -0
- package/dist/accounts/index.es.js +95 -93
- package/dist/budgets/index.es.js +448 -444
- package/dist/cashflow/index.es.js +233 -231
- package/dist/common/components/GlobalAccountFilter.d.ts +2 -1
- package/dist/common/components/WidgetContainer.d.ts +2 -1
- package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +32 -0
- package/dist/common/index.es.js +133 -132
- package/dist/core/types/Widgets.d.ts +1 -0
- package/dist/dashboard/index.es.js +3 -3
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
- package/dist/debts/index.es.js +589 -587
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/index.es.js +737 -745
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/index.es.js +439 -438
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/index.es.js +21 -12
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/index.es.js +418 -417
- package/dist/networth/index.es.js +265 -278
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +235 -232
- package/dist/settings/SettingsWidget.d.ts +1 -1
- package/dist/settings/index.es.js +283 -282
- package/dist/spending/index.es.js +109 -108
- package/dist/transactions/index.es.js +280 -277
- package/dist/trends/index.es.js +622 -615
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-CUcpY7aJ.mjs} +1 -1
- package/package.json +1 -1
- package/dist/WidgetContainer-D-pbSa7L.mjs +0 -441
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
1
|
+
import { jsxs as i, Fragment as H, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import M from "@mui/material/Box";
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as
|
|
3
|
+
import p from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as E, alpha as le } from "@mui/material/styles";
|
|
5
5
|
import { PieChart as tn } from "@mui/x-charts/PieChart";
|
|
6
|
-
import { P as
|
|
6
|
+
import { P as I, H3 as V, Text as T, InstitutionLogo as pt, H2 as Be, MerchantLogo as nn, Icon as on } from "@mxenabled/mxui";
|
|
7
7
|
import { TrendingUp as rn, ArrowRightAlt as an, TrendingDown as sn, AccountBalance as _t, ChevronRight as Z, CheckCircle as cn, Cancel as ln, CreditCard as ut, Savings as dn, ContentCopy as pn, MultilineChart as _n, Add as ht, Cardiology as un, Payments as hn, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
|
|
8
|
-
import { g as yn, a as bn, r as et, b as fn, c as
|
|
8
|
+
import { g as yn, a as bn, r as et, b as fn, c as je, d as mt, C as ke, e as Me, f as xn, h as Sn, i as Cn, j as gt, k as tt, l as vn, m as nt, n as wn, o as yt, p as kn, q as bt, s as Re, t as ft, u as Mn, v as xt, w as Dn, A as ne, x as In, P as Tn } from "../FinstrongStore-BQxXxxYD.mjs";
|
|
9
9
|
import { y as vi, F as wi } from "../FinstrongStore-BQxXxxYD.mjs";
|
|
10
10
|
import * as ot from "d3";
|
|
11
|
-
import { observer as
|
|
12
|
-
import { u as
|
|
11
|
+
import { observer as w } from "mobx-react-lite";
|
|
12
|
+
import { u as C, b as J, a as Ke, o as ee, y as F, p as An, d as ve, l as Ve, f as On, i as Ye, h as Rn, m as Ln } from "../hooks-BxkfR-Ff.mjs";
|
|
13
13
|
import { L as U } from "../Loader-D3rjKx72.mjs";
|
|
14
14
|
import h, { useState as Fn, useRef as Bn, useCallback as rt, useEffect as at } from "react";
|
|
15
15
|
import P from "@mui/material/Button";
|
|
16
|
-
import
|
|
17
|
-
import { L as
|
|
16
|
+
import Y from "@mui/material/Card";
|
|
17
|
+
import { L as Xe } from "../LineChart-EAr5ox5U.mjs";
|
|
18
18
|
import { C as St } from "../ConnectionsDrawer-IA7vnv1J.mjs";
|
|
19
|
-
import { C as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { u as
|
|
19
|
+
import { C as re } from "../ConnectDrawer-C0wjwcJt.mjs";
|
|
20
|
+
import de from "@mui/material/Tab";
|
|
21
|
+
import qe from "@mui/material/Tabs";
|
|
22
|
+
import Le from "@mui/material/TextField";
|
|
23
|
+
import { u as Ue } from "../useScreenSize-CUcpY7aJ.mjs";
|
|
24
24
|
import { D as Pn } from "../Dialog-Ck34yr-d.mjs";
|
|
25
25
|
import { u as Ct } from "../useDimensions-CeDR9V8N.mjs";
|
|
26
|
-
import { E as
|
|
26
|
+
import { E as Fe } from "../EmptyState-DHAkGsjk.mjs";
|
|
27
27
|
import Wn from "@mui/material/Chip";
|
|
28
|
-
import { D as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
28
|
+
import { D as oe } from "../Drawer-Bbe4AMB1.mjs";
|
|
29
|
+
import _e from "@mui/material/Divider";
|
|
30
|
+
import xe from "@mui/material/ListItem";
|
|
31
31
|
import vt from "@mui/material/ListItemAvatar";
|
|
32
|
-
import
|
|
32
|
+
import Se from "@mui/material/ListItemText";
|
|
33
33
|
import { g as wt } from "../AccountDisplayName-CO7z3v99.mjs";
|
|
34
34
|
import { g as kt } from "../AccountFields-CxqONzjY.mjs";
|
|
35
|
-
import
|
|
35
|
+
import He from "@mui/material/List";
|
|
36
36
|
import $n from "@mui/material/ListItemButton";
|
|
37
37
|
import En from "@mui/material/ListSubheader";
|
|
38
38
|
import { f as W } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
39
|
-
import { b as
|
|
39
|
+
import { b as K } from "../Localization-CPkpIwIx.mjs";
|
|
40
40
|
import { S as it, c as zn } from "../RecurringTransactions-BbZ6MQsX.mjs";
|
|
41
|
-
import { A as
|
|
41
|
+
import { A as Ne } from "../Account-BiB1F8lL.mjs";
|
|
42
42
|
import { S as Gn } from "../StatusBar-BK_uYHAB.mjs";
|
|
43
43
|
import { h as Mt } from "../DateUtil-wcYTmDRD.mjs";
|
|
44
44
|
import { T as Hn, s as Nn, h as jn, S as Kn, a as Vn } from "../EmbeddedCard-xngm4vLT.mjs";
|
|
45
45
|
import { f as Yn, D as Xn } from "../DateFormats-BMpMrZpW.mjs";
|
|
46
|
-
import { T as
|
|
46
|
+
import { T as pe } from "../TabContentContainer-j01JYR_7.mjs";
|
|
47
47
|
import qn from "@mui/material/useMediaQuery";
|
|
48
48
|
import { BarPlot as Un } from "@mui/x-charts/BarChart";
|
|
49
49
|
import { ChartContainer as Qn } from "@mui/x-charts/ChartContainer";
|
|
@@ -51,16 +51,16 @@ import { ChartsXAxis as Zn } from "@mui/x-charts/ChartsXAxis";
|
|
|
51
51
|
import { ChartsYAxis as Jn } from "@mui/x-charts/ChartsYAxis";
|
|
52
52
|
import { startOfMonth as Dt } from "date-fns/startOfMonth";
|
|
53
53
|
import { endOfMonth as It } from "date-fns/endOfMonth";
|
|
54
|
-
import { g as eo, S as to, b as no } from "../SpendingLegend-
|
|
54
|
+
import { g as eo, S as to, b as no } from "../SpendingLegend-CypdabwS.mjs";
|
|
55
55
|
import { formatISO as oo } from "date-fns/formatISO";
|
|
56
56
|
import { fromUnixTime as ro } from "date-fns/fromUnixTime";
|
|
57
57
|
import { startOfToday as st } from "date-fns/startOfToday";
|
|
58
58
|
import { subDays as ao } from "date-fns/subDays";
|
|
59
|
-
import { c as io, d as ct, S as so, i as co } from "../ManageIncome-
|
|
59
|
+
import { c as io, d as ct, S as so, i as co } from "../ManageIncome-BJ7c7plg.mjs";
|
|
60
60
|
import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
|
|
61
61
|
import { AdapterDateFns as Tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
62
62
|
import { F as At, R as Ot } from "../RepeatingTransaction-DF4vJn_v.mjs";
|
|
63
|
-
import { R as uo } from "../RecurringSettings-
|
|
63
|
+
import { R as uo } from "../RecurringSettings-DnD0AqWa.mjs";
|
|
64
64
|
import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
|
|
65
65
|
import { format as mo } from "date-fns/format";
|
|
66
66
|
import go from "@mui/lab/Timeline";
|
|
@@ -73,7 +73,7 @@ import vo from "@mui/material/Accordion";
|
|
|
73
73
|
import wo from "@mui/material/AccordionDetails";
|
|
74
74
|
import ko from "@mui/material/AccordionSummary";
|
|
75
75
|
import { u as Mo } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
76
|
-
import { W as Do } from "../WidgetContainer-
|
|
76
|
+
import { W as Do } from "../WidgetContainer-DYKMArWw.mjs";
|
|
77
77
|
const Io = ({
|
|
78
78
|
dialScoreData: t,
|
|
79
79
|
dataIndex: o,
|
|
@@ -84,37 +84,37 @@ const Io = ({
|
|
|
84
84
|
centerY: l,
|
|
85
85
|
arcRadius: c,
|
|
86
86
|
innerArcRadius: d,
|
|
87
|
-
outterArcRadius:
|
|
87
|
+
outterArcRadius: _,
|
|
88
88
|
progressEndAngle: u,
|
|
89
89
|
unitsPerSegment: m,
|
|
90
90
|
isFinacialStrengthGraph: b
|
|
91
91
|
}) => {
|
|
92
|
-
const
|
|
93
|
-
{ offset: "13.62%", color:
|
|
94
|
-
{ offset: "36.67%", color:
|
|
95
|
-
{ offset: "59.72%", color:
|
|
96
|
-
{ offset: "83.46%", color:
|
|
92
|
+
const v = E(), x = [
|
|
93
|
+
{ offset: "13.62%", color: v.palette.chartMono.chartMono2 },
|
|
94
|
+
{ offset: "36.67%", color: v.palette.chartMono.chartMono3 },
|
|
95
|
+
{ offset: "59.72%", color: v.palette.chartMono.chartMono4 },
|
|
96
|
+
{ offset: "83.46%", color: v.palette.chartMono.chartMono5 }
|
|
97
97
|
], [S, f] = yn(
|
|
98
98
|
t,
|
|
99
99
|
s,
|
|
100
100
|
r,
|
|
101
101
|
o
|
|
102
|
-
), [
|
|
102
|
+
), [k, g] = bn(
|
|
103
103
|
S,
|
|
104
104
|
f,
|
|
105
105
|
o,
|
|
106
106
|
m,
|
|
107
107
|
u
|
|
108
|
-
), y = ot.arc().innerRadius(d).outerRadius(
|
|
109
|
-
return /* @__PURE__ */ i(
|
|
108
|
+
), y = ot.arc().innerRadius(d).outerRadius(_).startAngle(S).endAngle(f).padAngle(0.02).cornerRadius(8), D = ot.arc().innerRadius(d).outerRadius(_).startAngle(k).endAngle(g).padAngle(0.02).cornerRadius(8);
|
|
109
|
+
return /* @__PURE__ */ i(H, { children: [
|
|
110
110
|
/* @__PURE__ */ e(
|
|
111
111
|
"path",
|
|
112
112
|
{
|
|
113
113
|
d: y({}),
|
|
114
|
-
fill: b ?
|
|
114
|
+
fill: b ? v.palette.divider : n
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
|
-
b && /* @__PURE__ */ e("path", { d:
|
|
117
|
+
b && /* @__PURE__ */ e("path", { d: D({}), fill: "url(#arcGradient)" }),
|
|
118
118
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
119
119
|
"linearGradient",
|
|
120
120
|
{
|
|
@@ -125,7 +125,7 @@ const Io = ({
|
|
|
125
125
|
x2: a - c * 0.8 * Math.cos(Math.PI / 1.35),
|
|
126
126
|
y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
127
127
|
y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
128
|
-
children: x.map(($,
|
|
128
|
+
children: x.map(($, O) => /* @__PURE__ */ e("stop", { offset: $.offset, stopColor: $.color }, O))
|
|
129
129
|
}
|
|
130
130
|
) })
|
|
131
131
|
] });
|
|
@@ -139,28 +139,28 @@ const Io = ({
|
|
|
139
139
|
margin: l,
|
|
140
140
|
markerColor: c,
|
|
141
141
|
healthScoreStatus: d,
|
|
142
|
-
footerCenterContent:
|
|
142
|
+
footerCenterContent: _,
|
|
143
143
|
footerLeftContent: u,
|
|
144
144
|
footerRightContent: m,
|
|
145
145
|
isFinacialStrengthGraph: b = !1
|
|
146
146
|
}) => {
|
|
147
|
-
const
|
|
147
|
+
const v = E(), x = -Math.PI / 1.35, S = Math.PI / 1.35, f = S - x, k = f / (a - s), g = (o - s) * k, y = x + g + 0.02, D = n !== "SM" ? 0.1 : 0.12, $ = t, O = t * (1 - D), z = $ * 2, L = z / 2, N = z / 2, he = (O + $) / 2, me = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [X, te] = fn(he, y, me), ae = o / 25, q = {
|
|
148
148
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
149
149
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
150
150
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
151
|
-
},
|
|
151
|
+
}, j = {
|
|
152
152
|
top: 0,
|
|
153
153
|
right: 0,
|
|
154
154
|
bottom: 0,
|
|
155
155
|
left: 0,
|
|
156
156
|
...l
|
|
157
|
-
},
|
|
157
|
+
}, ie = _ === 0 ? an : sn, se = n !== "SM" ? 3 : 1, ge = se * 4, G = q[n].markerSize * 2 + ge;
|
|
158
158
|
return /* @__PURE__ */ i(
|
|
159
|
-
|
|
159
|
+
p,
|
|
160
160
|
{
|
|
161
161
|
sx: {
|
|
162
|
-
width:
|
|
163
|
-
height: n === "SM" ?
|
|
162
|
+
width: z,
|
|
163
|
+
height: n === "SM" ? z - 7 : z,
|
|
164
164
|
position: "relative",
|
|
165
165
|
alignSelf: "center",
|
|
166
166
|
overflow: "visible"
|
|
@@ -169,13 +169,13 @@ const Io = ({
|
|
|
169
169
|
/* @__PURE__ */ e(
|
|
170
170
|
tn,
|
|
171
171
|
{
|
|
172
|
-
height: n === "SM" ?
|
|
172
|
+
height: n === "SM" ? z - 7 : z,
|
|
173
173
|
hideLegend: !0,
|
|
174
|
-
margin:
|
|
174
|
+
margin: j,
|
|
175
175
|
series: [
|
|
176
176
|
{
|
|
177
177
|
data: r,
|
|
178
|
-
innerRadius:
|
|
178
|
+
innerRadius: O,
|
|
179
179
|
outerRadius: $,
|
|
180
180
|
startAngle: Math.round(et(x)),
|
|
181
181
|
// Use Math.degrees to convert
|
|
@@ -185,22 +185,22 @@ const Io = ({
|
|
|
185
185
|
],
|
|
186
186
|
skipAnimation: !0,
|
|
187
187
|
slots: {
|
|
188
|
-
pieArc: (
|
|
188
|
+
pieArc: (ye) => /* @__PURE__ */ e(
|
|
189
189
|
Io,
|
|
190
190
|
{
|
|
191
|
-
arcColor:
|
|
191
|
+
arcColor: ye.color,
|
|
192
192
|
arcRadius: t,
|
|
193
193
|
arcStartAngle: x,
|
|
194
|
-
centerX:
|
|
195
|
-
centerY:
|
|
196
|
-
dataIndex:
|
|
194
|
+
centerX: L,
|
|
195
|
+
centerY: N,
|
|
196
|
+
dataIndex: ye.dataIndex,
|
|
197
197
|
dialScoreData: r,
|
|
198
|
-
innerArcRadius:
|
|
198
|
+
innerArcRadius: O,
|
|
199
199
|
isFinacialStrengthGraph: b,
|
|
200
200
|
outterArcRadius: $,
|
|
201
201
|
progressEndAngle: y,
|
|
202
202
|
totalAngularSpan: f,
|
|
203
|
-
unitsPerSegment:
|
|
203
|
+
unitsPerSegment: ae
|
|
204
204
|
}
|
|
205
205
|
)
|
|
206
206
|
},
|
|
@@ -209,30 +209,30 @@ const Io = ({
|
|
|
209
209
|
stroke: "none"
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
|
-
width:
|
|
212
|
+
width: z
|
|
213
213
|
}
|
|
214
214
|
),
|
|
215
215
|
o >= s && o <= a && /* @__PURE__ */ e(
|
|
216
216
|
"svg",
|
|
217
217
|
{
|
|
218
|
-
height:
|
|
218
|
+
height: G,
|
|
219
219
|
style: {
|
|
220
220
|
position: "absolute",
|
|
221
|
-
left:
|
|
222
|
-
top:
|
|
221
|
+
left: L + X - q[n].markerSize - 5,
|
|
222
|
+
top: N + te - q[n].markerSize - 5,
|
|
223
223
|
overflow: "visible"
|
|
224
224
|
},
|
|
225
|
-
viewBox: `${
|
|
226
|
-
width:
|
|
225
|
+
viewBox: `${L + X - q[n].markerSize - 5} ${N + te - q[n].markerSize - 5} ${G} ${G}`,
|
|
226
|
+
width: G,
|
|
227
227
|
children: /* @__PURE__ */ e(
|
|
228
228
|
"circle",
|
|
229
229
|
{
|
|
230
|
-
cx:
|
|
231
|
-
cy:
|
|
232
|
-
fill:
|
|
230
|
+
cx: L + X,
|
|
231
|
+
cy: N + te,
|
|
232
|
+
fill: v.palette.common.white,
|
|
233
233
|
r: q[n].markerSize,
|
|
234
234
|
stroke: b ? "url(#arcGradient)" : c,
|
|
235
|
-
strokeWidth:
|
|
235
|
+
strokeWidth: se
|
|
236
236
|
}
|
|
237
237
|
)
|
|
238
238
|
}
|
|
@@ -242,19 +242,19 @@ const Io = ({
|
|
|
242
242
|
{
|
|
243
243
|
sx: {
|
|
244
244
|
position: "absolute",
|
|
245
|
-
top: `${
|
|
246
|
-
left: `${
|
|
245
|
+
top: `${N}px`,
|
|
246
|
+
left: `${L}px`,
|
|
247
247
|
transform: "translate(-50%, -50%)",
|
|
248
248
|
textAlign: "center"
|
|
249
249
|
},
|
|
250
250
|
children: /* @__PURE__ */ i(
|
|
251
|
-
|
|
251
|
+
p,
|
|
252
252
|
{
|
|
253
253
|
spacing: 1,
|
|
254
254
|
sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
|
|
255
255
|
children: [
|
|
256
256
|
/* @__PURE__ */ e(
|
|
257
|
-
|
|
257
|
+
I,
|
|
258
258
|
{
|
|
259
259
|
sx: {
|
|
260
260
|
fontSize: q[n].healthScoreFontSize,
|
|
@@ -264,24 +264,24 @@ const Io = ({
|
|
|
264
264
|
children: o
|
|
265
265
|
}
|
|
266
266
|
),
|
|
267
|
-
n !== "SM" && /* @__PURE__ */ e(
|
|
267
|
+
n !== "SM" && /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: d })
|
|
268
268
|
]
|
|
269
269
|
}
|
|
270
270
|
)
|
|
271
271
|
}
|
|
272
272
|
),
|
|
273
|
-
|
|
273
|
+
_ !== void 0 && /* @__PURE__ */ e(
|
|
274
274
|
M,
|
|
275
275
|
{
|
|
276
276
|
sx: {
|
|
277
277
|
position: "absolute",
|
|
278
|
-
top: `${
|
|
279
|
-
left: `${
|
|
278
|
+
top: `${N * 2 * 0.83}px`,
|
|
279
|
+
left: `${L}px`,
|
|
280
280
|
transform: "translate(-50%, -50%)",
|
|
281
281
|
textAlign: "center"
|
|
282
282
|
},
|
|
283
|
-
children: typeof
|
|
284
|
-
|
|
283
|
+
children: typeof _ == "number" ? /* @__PURE__ */ i(
|
|
284
|
+
p,
|
|
285
285
|
{
|
|
286
286
|
sx: {
|
|
287
287
|
flexDirection: "row",
|
|
@@ -290,21 +290,21 @@ const Io = ({
|
|
|
290
290
|
mt: 24
|
|
291
291
|
},
|
|
292
292
|
children: [
|
|
293
|
-
|
|
293
|
+
_ > 0 ? /* @__PURE__ */ e(rn, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(ie, { size: 16, sx: { color: "text.secondary" } }),
|
|
294
294
|
/* @__PURE__ */ e(
|
|
295
|
-
|
|
295
|
+
I,
|
|
296
296
|
{
|
|
297
297
|
sx: {
|
|
298
298
|
fontWeight: 600,
|
|
299
|
-
color:
|
|
299
|
+
color: _ > 0 ? "success.main" : "text.secondary"
|
|
300
300
|
},
|
|
301
301
|
variant: "body1",
|
|
302
|
-
children: Math.abs(
|
|
302
|
+
children: Math.abs(_)
|
|
303
303
|
}
|
|
304
304
|
)
|
|
305
305
|
]
|
|
306
306
|
}
|
|
307
|
-
) : /* @__PURE__ */ e(
|
|
307
|
+
) : /* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: _ })
|
|
308
308
|
}
|
|
309
309
|
),
|
|
310
310
|
u !== void 0 && /* @__PURE__ */ e(
|
|
@@ -312,13 +312,13 @@ const Io = ({
|
|
|
312
312
|
{
|
|
313
313
|
sx: {
|
|
314
314
|
position: "absolute",
|
|
315
|
-
top: `${
|
|
316
|
-
left: `${
|
|
315
|
+
top: `${N * 2 * 0.83}px`,
|
|
316
|
+
left: `${L - L / 2}px`,
|
|
317
317
|
// shift left from center
|
|
318
318
|
transform: "translate(-50%, -50%)",
|
|
319
319
|
textAlign: "left"
|
|
320
320
|
},
|
|
321
|
-
children: /* @__PURE__ */ e(
|
|
321
|
+
children: /* @__PURE__ */ e(I, { variant: "body1", children: u })
|
|
322
322
|
}
|
|
323
323
|
),
|
|
324
324
|
m !== void 0 && /* @__PURE__ */ e(
|
|
@@ -326,18 +326,18 @@ const Io = ({
|
|
|
326
326
|
{
|
|
327
327
|
sx: {
|
|
328
328
|
position: "absolute",
|
|
329
|
-
top: `${
|
|
330
|
-
left: `${
|
|
329
|
+
top: `${N * 2 * 0.83}px`,
|
|
330
|
+
left: `${L + L / 2}px`,
|
|
331
331
|
transform: "translate(-50%, -50%)",
|
|
332
332
|
textAlign: "right"
|
|
333
333
|
},
|
|
334
|
-
children: /* @__PURE__ */ e(
|
|
334
|
+
children: /* @__PURE__ */ e(I, { variant: "body1", children: m })
|
|
335
335
|
}
|
|
336
336
|
)
|
|
337
337
|
]
|
|
338
338
|
}
|
|
339
339
|
);
|
|
340
|
-
}, Lt =
|
|
340
|
+
}, Lt = w(
|
|
341
341
|
({
|
|
342
342
|
arcRadius: t,
|
|
343
343
|
size: o = "L",
|
|
@@ -350,7 +350,7 @@ const Io = ({
|
|
|
350
350
|
{ id: 2, label: "Group B", value: 25 },
|
|
351
351
|
{ id: 3, label: "Group C", value: 25 },
|
|
352
352
|
{ id: 4, label: "Group D", value: 25 }
|
|
353
|
-
], { finstrong: l } =
|
|
353
|
+
], { finstrong: l } = C(), c = je(n, l);
|
|
354
354
|
return /* @__PURE__ */ e(
|
|
355
355
|
Rt,
|
|
356
356
|
{
|
|
@@ -365,7 +365,7 @@ const Io = ({
|
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
|
-
), To =
|
|
368
|
+
), To = w(
|
|
369
369
|
({
|
|
370
370
|
arcRadius: t,
|
|
371
371
|
size: o = "L",
|
|
@@ -374,7 +374,7 @@ const Io = ({
|
|
|
374
374
|
minValue: s = 300,
|
|
375
375
|
footerCenterContent: a
|
|
376
376
|
}) => {
|
|
377
|
-
const c =
|
|
377
|
+
const c = E().palette.mode === "dark", d = [
|
|
378
378
|
{
|
|
379
379
|
id: 1,
|
|
380
380
|
label: "Poor",
|
|
@@ -405,12 +405,12 @@ const Io = ({
|
|
|
405
405
|
value: 12,
|
|
406
406
|
color: c ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
|
|
407
407
|
}
|
|
408
|
-
], { finstrong:
|
|
408
|
+
], { finstrong: _ } = C(), { isCopyLoaded: u } = J();
|
|
409
409
|
if (!u) return /* @__PURE__ */ e(U, {});
|
|
410
410
|
const { status: m, color: b = "none" } = mt(
|
|
411
411
|
n,
|
|
412
412
|
c,
|
|
413
|
-
|
|
413
|
+
_.credit_score_status
|
|
414
414
|
);
|
|
415
415
|
return /* @__PURE__ */ e(
|
|
416
416
|
Rt,
|
|
@@ -429,7 +429,7 @@ const Io = ({
|
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
|
-
),
|
|
432
|
+
), Pe = ({
|
|
433
433
|
drawerType: t,
|
|
434
434
|
isDashboard: o = !1,
|
|
435
435
|
hasIcon: n = !0,
|
|
@@ -439,9 +439,9 @@ const Io = ({
|
|
|
439
439
|
description: l,
|
|
440
440
|
sx: c
|
|
441
441
|
}) => {
|
|
442
|
-
const [d,
|
|
442
|
+
const [d, _] = h.useState(!1), { connect: u, finstrong: m } = C(), { config: b } = Ke();
|
|
443
443
|
return t && b.show_connections_widget_in_master ? /* @__PURE__ */ i(
|
|
444
|
-
|
|
444
|
+
Y,
|
|
445
445
|
{
|
|
446
446
|
sx: {
|
|
447
447
|
pb: 24,
|
|
@@ -452,7 +452,7 @@ const Io = ({
|
|
|
452
452
|
},
|
|
453
453
|
children: [
|
|
454
454
|
/* @__PURE__ */ i(
|
|
455
|
-
|
|
455
|
+
p,
|
|
456
456
|
{
|
|
457
457
|
sx: {
|
|
458
458
|
gap: 8,
|
|
@@ -460,12 +460,12 @@ const Io = ({
|
|
|
460
460
|
},
|
|
461
461
|
children: [
|
|
462
462
|
n && /* @__PURE__ */ e(_t, { sx: { height: 20, width: 20 } }),
|
|
463
|
-
/* @__PURE__ */ e(
|
|
463
|
+
/* @__PURE__ */ e(V, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || m.connect_more_accounts_title })
|
|
464
464
|
]
|
|
465
465
|
}
|
|
466
466
|
),
|
|
467
467
|
/* @__PURE__ */ e(
|
|
468
|
-
|
|
468
|
+
I,
|
|
469
469
|
{
|
|
470
470
|
className: "connect-more-accounts-description",
|
|
471
471
|
sx: { color: "text.secondary", mt: 8 },
|
|
@@ -477,16 +477,16 @@ const Io = ({
|
|
|
477
477
|
P,
|
|
478
478
|
{
|
|
479
479
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
480
|
-
onClick: () =>
|
|
480
|
+
onClick: () => _(!0),
|
|
481
481
|
size: "small",
|
|
482
482
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
483
|
-
children: /* @__PURE__ */ e(
|
|
483
|
+
children: /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body2", children: r || m.connect_more_accounts_button })
|
|
484
484
|
}
|
|
485
485
|
),
|
|
486
486
|
t === "connectDrawer" && /* @__PURE__ */ e(
|
|
487
|
-
|
|
487
|
+
re,
|
|
488
488
|
{
|
|
489
|
-
onClose: () =>
|
|
489
|
+
onClose: () => _(!1),
|
|
490
490
|
showConnectWidget: d,
|
|
491
491
|
title: a || u.mini_title
|
|
492
492
|
}
|
|
@@ -494,7 +494,7 @@ const Io = ({
|
|
|
494
494
|
t === "connectionsDrawer" && /* @__PURE__ */ e(
|
|
495
495
|
St,
|
|
496
496
|
{
|
|
497
|
-
onClose: () =>
|
|
497
|
+
onClose: () => _(!1),
|
|
498
498
|
showConnectionsWidget: d,
|
|
499
499
|
title: a || u.mini_title
|
|
500
500
|
}
|
|
@@ -503,9 +503,9 @@ const Io = ({
|
|
|
503
503
|
}
|
|
504
504
|
) : null;
|
|
505
505
|
};
|
|
506
|
-
var
|
|
506
|
+
var ue = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(ue || {});
|
|
507
507
|
const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Oo = ({ isOpen: t, onClose: o }) => {
|
|
508
|
-
const { common: n, finstrong: r } =
|
|
508
|
+
const { common: n, finstrong: r } = C(), { isMobile: s } = Ue(), { updateUser: a, user: l } = ee(), [c, d] = h.useState(l.credit_score || 0), _ = !isNaN(c), u = () => {
|
|
509
509
|
o(), setTimeout(() => d(l.credit_score || 0), 300);
|
|
510
510
|
}, m = () => {
|
|
511
511
|
!c || c === l.credit_score || a({ ...l, credit_score: c });
|
|
@@ -514,7 +514,7 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
514
514
|
Pn,
|
|
515
515
|
{
|
|
516
516
|
copy: { close_aria: n.close_aria, title: r.edit_credit_score },
|
|
517
|
-
disablePrimaryButton: !c || !
|
|
517
|
+
disablePrimaryButton: !c || !_,
|
|
518
518
|
isOpen: t,
|
|
519
519
|
maxWidth: "xs",
|
|
520
520
|
onClose: u,
|
|
@@ -533,9 +533,9 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
533
533
|
b.preventDefault(), m(), u();
|
|
534
534
|
},
|
|
535
535
|
children: /* @__PURE__ */ e(
|
|
536
|
-
|
|
536
|
+
Le,
|
|
537
537
|
{
|
|
538
|
-
error: !
|
|
538
|
+
error: !_,
|
|
539
539
|
fullWidth: !0,
|
|
540
540
|
inputMode: "numeric",
|
|
541
541
|
inputProps: {
|
|
@@ -543,15 +543,15 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
543
543
|
pattern: "[0-9]*"
|
|
544
544
|
},
|
|
545
545
|
onChange: (b) => d(Number(b.target.value)),
|
|
546
|
-
value:
|
|
546
|
+
value: _ ? c : ""
|
|
547
547
|
}
|
|
548
548
|
)
|
|
549
549
|
}
|
|
550
550
|
)
|
|
551
551
|
}
|
|
552
552
|
);
|
|
553
|
-
}, Ft =
|
|
554
|
-
const o =
|
|
553
|
+
}, Ft = w(Oo), Ro = ({ chartFor: t }) => {
|
|
554
|
+
const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = F(), { user: s } = ee(), { finstrong: a } = C(), [l, { width: c }] = Ct(), d = {
|
|
555
555
|
savingsOverTime: {
|
|
556
556
|
icon: "trending_up",
|
|
557
557
|
title: a.key_indicators_save.zero_state_title,
|
|
@@ -580,23 +580,23 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
580
580
|
title: a.credit_over_time_title,
|
|
581
581
|
valueKey: "credit_score"
|
|
582
582
|
}
|
|
583
|
-
}[t], m = xn(r, u.valueKey), b = r.map((
|
|
584
|
-
let
|
|
583
|
+
}[t], m = xn(r, u.valueKey), b = r.map((O) => O[u.valueKey]), v = Math.max(...b), x = Math.min(...b), S = () => v >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : v >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: f, leftMargin: k } = S(), g = u.title, y = t === "creditOverTime";
|
|
584
|
+
let D;
|
|
585
585
|
if (y) {
|
|
586
|
-
const { color:
|
|
586
|
+
const { color: O } = mt(
|
|
587
587
|
s?.credit_score ?? 0,
|
|
588
588
|
n,
|
|
589
589
|
a.credit_score_status
|
|
590
590
|
);
|
|
591
|
-
|
|
591
|
+
D = O;
|
|
592
592
|
}
|
|
593
|
-
const $ = m.some((
|
|
594
|
-
return /* @__PURE__ */ e(
|
|
595
|
-
/* @__PURE__ */ e(
|
|
593
|
+
const $ = m.some((O) => O.y !== 0);
|
|
594
|
+
return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children: $ ? /* @__PURE__ */ i(p, { gap: 8, sx: { pl: 18 }, children: [
|
|
595
|
+
/* @__PURE__ */ e(I, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
|
|
596
596
|
/* @__PURE__ */ e(
|
|
597
|
-
|
|
597
|
+
Xe,
|
|
598
598
|
{
|
|
599
|
-
areaColor:
|
|
599
|
+
areaColor: D,
|
|
600
600
|
axisColor: o.palette.divider,
|
|
601
601
|
baseline: "min",
|
|
602
602
|
chartFor: t,
|
|
@@ -607,15 +607,15 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
607
607
|
labelFontColor: y ? "text.primary" : "",
|
|
608
608
|
labelFontSize: y ? 13 : void 0,
|
|
609
609
|
labels: [a.key_indicators_label],
|
|
610
|
-
margin: { left:
|
|
611
|
-
markStyles: (
|
|
610
|
+
margin: { left: k, top: y ? 25 : 15, right: 20 },
|
|
611
|
+
markStyles: (O) => y ? {
|
|
612
612
|
markLabelStyles: {
|
|
613
613
|
marginLeft: 16,
|
|
614
|
-
transform:
|
|
614
|
+
transform: O === m.length - 1 ? "translateX(-16px)" : "translateX(16px)",
|
|
615
615
|
fontWeight: 600,
|
|
616
616
|
fill: o.palette.text.primary
|
|
617
617
|
},
|
|
618
|
-
stroke:
|
|
618
|
+
stroke: D
|
|
619
619
|
} : {},
|
|
620
620
|
maxRange: y ? 850 : void 0,
|
|
621
621
|
minRange: (() => {
|
|
@@ -635,7 +635,7 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
635
635
|
}
|
|
636
636
|
)
|
|
637
637
|
] }) : /* @__PURE__ */ e(
|
|
638
|
-
|
|
638
|
+
Fe,
|
|
639
639
|
{
|
|
640
640
|
header: d.title,
|
|
641
641
|
icon: d.icon,
|
|
@@ -654,10 +654,10 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
) });
|
|
657
|
-
},
|
|
658
|
-
const { healthScoreChangeReports: t } =
|
|
657
|
+
}, Qe = w(Ro), Lo = () => {
|
|
658
|
+
const { healthScoreChangeReports: t } = F(), { finstrong: o } = C(), { user: n } = ee(), { availableWidth: r } = An(), { isSmallMobile: s } = Ue(r), [a, l] = h.useState(!1), c = t.at(-1);
|
|
659
659
|
return /* @__PURE__ */ i(M, { children: [
|
|
660
|
-
/* @__PURE__ */ i(
|
|
660
|
+
/* @__PURE__ */ i(p, { sx: { gap: 28 }, children: [
|
|
661
661
|
/* @__PURE__ */ e(
|
|
662
662
|
To,
|
|
663
663
|
{
|
|
@@ -668,12 +668,12 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
668
668
|
}
|
|
669
669
|
),
|
|
670
670
|
/* @__PURE__ */ e(P, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
|
|
671
|
-
/* @__PURE__ */ e(
|
|
671
|
+
/* @__PURE__ */ e(Qe, { chartFor: "creditOverTime" })
|
|
672
672
|
] }),
|
|
673
673
|
/* @__PURE__ */ e(Ft, { isOpen: a, onClose: () => l(!1) })
|
|
674
674
|
] });
|
|
675
|
-
}, Fo =
|
|
676
|
-
const { finstrong: o } =
|
|
675
|
+
}, Fo = w(Lo), We = ({ status: t }) => {
|
|
676
|
+
const { finstrong: o } = C(), n = Sn(Cn[t]), r = {
|
|
677
677
|
GOOD: o.key_indicators_good,
|
|
678
678
|
FAIR: o.key_indicators_fair,
|
|
679
679
|
OFF_TRACK: o.key_indicators_off_track,
|
|
@@ -683,7 +683,7 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
683
683
|
Wn,
|
|
684
684
|
{
|
|
685
685
|
label: /* @__PURE__ */ e(
|
|
686
|
-
|
|
686
|
+
I,
|
|
687
687
|
{
|
|
688
688
|
fontWeight: 700,
|
|
689
689
|
sx: { color: n.color, minHeight: 12 },
|
|
@@ -701,12 +701,12 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
701
701
|
}
|
|
702
702
|
);
|
|
703
703
|
}, Bo = () => {
|
|
704
|
-
const { finstrong: t } =
|
|
705
|
-
return /* @__PURE__ */ i(
|
|
706
|
-
/* @__PURE__ */ e(
|
|
707
|
-
/* @__PURE__ */ e(
|
|
704
|
+
const { finstrong: t } = C(), { user: o } = ee(), n = gt(o.credit_score ?? null);
|
|
705
|
+
return /* @__PURE__ */ i(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
706
|
+
/* @__PURE__ */ e(V, { children: t.credit_score_keep_strong_credit_score }),
|
|
707
|
+
/* @__PURE__ */ e(We, { status: n })
|
|
708
708
|
] });
|
|
709
|
-
}, Po =
|
|
709
|
+
}, Po = w(Bo), Wo = ({
|
|
710
710
|
additionalContent: t,
|
|
711
711
|
connectTitle: o,
|
|
712
712
|
connectDescription: n,
|
|
@@ -716,57 +716,57 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
716
716
|
isOpen: l,
|
|
717
717
|
loadConnectAccountsCard: c = !0,
|
|
718
718
|
onClose: d,
|
|
719
|
-
stickyComponent:
|
|
719
|
+
stickyComponent: _,
|
|
720
720
|
title: u,
|
|
721
721
|
drawerType: m
|
|
722
722
|
}) => {
|
|
723
|
-
const { finstrong: b } =
|
|
723
|
+
const { finstrong: b } = C(), { isCopyLoaded: v } = J(), [x, S] = Fn(!1), f = Bn(null), k = rt(() => {
|
|
724
724
|
if (f.current) {
|
|
725
725
|
const y = f.current.scrollTop > 0;
|
|
726
|
-
S((
|
|
726
|
+
S((D) => D !== y ? y : D);
|
|
727
727
|
}
|
|
728
728
|
}, []), g = rt(
|
|
729
729
|
(y) => {
|
|
730
|
-
if (f.current && f.current.removeEventListener("scroll",
|
|
731
|
-
let
|
|
732
|
-
for (;
|
|
733
|
-
const { overflow: $, overflowY:
|
|
734
|
-
if ($ === "auto" ||
|
|
735
|
-
f.current =
|
|
730
|
+
if (f.current && f.current.removeEventListener("scroll", k), y) {
|
|
731
|
+
let D = y.parentElement;
|
|
732
|
+
for (; D; ) {
|
|
733
|
+
const { overflow: $, overflowY: O } = window.getComputedStyle(D);
|
|
734
|
+
if ($ === "auto" || O === "auto" || $ === "scroll" || O === "scroll") {
|
|
735
|
+
f.current = D, D.addEventListener("scroll", k, { passive: !0 });
|
|
736
736
|
break;
|
|
737
737
|
}
|
|
738
|
-
|
|
738
|
+
D = D.parentElement;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
},
|
|
742
|
-
[
|
|
742
|
+
[k]
|
|
743
743
|
);
|
|
744
744
|
return at(() => {
|
|
745
745
|
l || S(!1);
|
|
746
746
|
}, [l]), at(() => () => {
|
|
747
|
-
f.current && f.current.removeEventListener("scroll",
|
|
748
|
-
}, [
|
|
749
|
-
|
|
747
|
+
f.current && f.current.removeEventListener("scroll", k);
|
|
748
|
+
}, [k]), v ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: d, title: a || b.key_indicators, children: /* @__PURE__ */ i(
|
|
749
|
+
p,
|
|
750
750
|
{
|
|
751
751
|
ref: g,
|
|
752
752
|
sx: { backgroundColor: "background.default", height: "100%" },
|
|
753
753
|
children: [
|
|
754
754
|
(u || s) && /* @__PURE__ */ i(
|
|
755
|
-
|
|
755
|
+
p,
|
|
756
756
|
{
|
|
757
757
|
sx: {
|
|
758
758
|
backgroundColor: "background.paper",
|
|
759
759
|
gap: 8,
|
|
760
760
|
p: 24,
|
|
761
|
-
pb:
|
|
761
|
+
pb: _ ? 0 : 24
|
|
762
762
|
},
|
|
763
763
|
children: [
|
|
764
|
-
u && typeof u == "string" ? /* @__PURE__ */ e(
|
|
765
|
-
s && /* @__PURE__ */ e(
|
|
764
|
+
u && typeof u == "string" ? /* @__PURE__ */ e(V, { children: u }) : u,
|
|
765
|
+
s && /* @__PURE__ */ e(I, { sx: { lineHeight: "24px" }, children: s })
|
|
766
766
|
]
|
|
767
767
|
}
|
|
768
768
|
),
|
|
769
|
-
|
|
769
|
+
_ && /* @__PURE__ */ e(
|
|
770
770
|
M,
|
|
771
771
|
{
|
|
772
772
|
sx: {
|
|
@@ -778,14 +778,14 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
778
778
|
borderColor: x ? "divider" : "transparent"
|
|
779
779
|
}
|
|
780
780
|
},
|
|
781
|
-
children:
|
|
781
|
+
children: _
|
|
782
782
|
}
|
|
783
783
|
),
|
|
784
784
|
t && /* @__PURE__ */ e(M, { children: t }),
|
|
785
|
-
/* @__PURE__ */ i(
|
|
785
|
+
/* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
|
|
786
786
|
r,
|
|
787
787
|
c && /* @__PURE__ */ e(
|
|
788
|
-
|
|
788
|
+
Pe,
|
|
789
789
|
{
|
|
790
790
|
description: n,
|
|
791
791
|
drawerType: m,
|
|
@@ -798,12 +798,12 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
798
798
|
]
|
|
799
799
|
}
|
|
800
800
|
) }) : /* @__PURE__ */ e(U, {});
|
|
801
|
-
}, Bt =
|
|
801
|
+
}, Bt = w(Wo), $o = ({
|
|
802
802
|
onClick: t,
|
|
803
803
|
shouldShowBalance: o = !0,
|
|
804
804
|
loadAccounts: n
|
|
805
805
|
}) => {
|
|
806
|
-
const { config: r } =
|
|
806
|
+
const { config: r } = Ke(), { accounts: s } = C(), { selectedAccounts: a } = J(), l = h.useCallback(
|
|
807
807
|
(d) => {
|
|
808
808
|
t?.(d);
|
|
809
809
|
},
|
|
@@ -815,60 +815,60 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
815
815
|
[a, n]
|
|
816
816
|
);
|
|
817
817
|
return a.length ? /* @__PURE__ */ e(h.Fragment, { children: c.map((d) => {
|
|
818
|
-
const { accountsForType:
|
|
818
|
+
const { accountsForType: _, totalBalanceForType: u } = a.reduce(
|
|
819
819
|
(m, b) => (b.account_type === d && (m.accountsForType.push(b), m.totalBalanceForType += b.balance || 0), m),
|
|
820
820
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
821
821
|
);
|
|
822
822
|
return /* @__PURE__ */ i(
|
|
823
|
-
|
|
823
|
+
He,
|
|
824
824
|
{
|
|
825
|
-
subheader: /* @__PURE__ */ e(En, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(
|
|
826
|
-
/* @__PURE__ */ e(
|
|
827
|
-
o && /* @__PURE__ */ e(
|
|
825
|
+
subheader: /* @__PURE__ */ e(En, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
826
|
+
/* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: s.account_types[d] }),
|
|
827
|
+
o && /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: W(u, "0,0.00") })
|
|
828
828
|
] }) }),
|
|
829
829
|
sx: { bgcolor: "background.paper" },
|
|
830
830
|
children: [
|
|
831
|
-
|
|
832
|
-
const { firstValue:
|
|
831
|
+
_.map((m, b) => {
|
|
832
|
+
const { firstValue: v } = kt(m, s), x = wt(m, {
|
|
833
833
|
allowNickname: r?.show_account_nicknames_in_master
|
|
834
|
-
}), S = /* @__PURE__ */ i(
|
|
834
|
+
}), S = /* @__PURE__ */ i(H, { children: [
|
|
835
835
|
/* @__PURE__ */ e(vt, { children: /* @__PURE__ */ e(pt, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
|
|
836
836
|
/* @__PURE__ */ e(
|
|
837
|
-
|
|
837
|
+
Se,
|
|
838
838
|
{
|
|
839
839
|
primary: `${x}${m.account_number ? ` *${m.account_number}` : ""}`,
|
|
840
840
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
841
841
|
}
|
|
842
842
|
),
|
|
843
|
-
o && /* @__PURE__ */ e(
|
|
843
|
+
o && /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: W(v ?? 0, "0,0.00") })
|
|
844
844
|
] });
|
|
845
845
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
846
|
-
/* @__PURE__ */ e(
|
|
847
|
-
b !==
|
|
846
|
+
/* @__PURE__ */ e(xe, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e($n, { onClick: () => l(m), children: S }) : S }),
|
|
847
|
+
b !== _.length - 1 && /* @__PURE__ */ e(_e, { variant: "inset" })
|
|
848
848
|
] }, m.guid);
|
|
849
849
|
}),
|
|
850
|
-
/* @__PURE__ */ e(
|
|
850
|
+
/* @__PURE__ */ e(_e, {})
|
|
851
851
|
]
|
|
852
852
|
},
|
|
853
853
|
d
|
|
854
854
|
);
|
|
855
855
|
}) }) : null;
|
|
856
|
-
}, Pt =
|
|
857
|
-
const n =
|
|
856
|
+
}, Pt = w($o), Eo = ({ loadAccounts: t, loadMoreLabel: o }) => {
|
|
857
|
+
const n = E(), { config: r } = Ke(), { connect: s, finstrong: a } = C(), { accounts: l } = C(), { selectedAccounts: c } = J(), [d, _] = h.useState(!1), [u, m] = h.useState(!1), b = h.useMemo(
|
|
858
858
|
() => c.filter(
|
|
859
859
|
(S) => t ? t.includes(S.account_type) : !0
|
|
860
860
|
),
|
|
861
861
|
[c, t]
|
|
862
|
-
),
|
|
862
|
+
), v = h.useMemo(() => b.slice(0, 3), [b]), x = (S) => {
|
|
863
863
|
const { firstValue: f } = kt(S, l);
|
|
864
864
|
return f;
|
|
865
865
|
};
|
|
866
|
-
return b.length >= 1 ? /* @__PURE__ */ i(
|
|
867
|
-
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children:
|
|
868
|
-
/* @__PURE__ */ i(
|
|
866
|
+
return b.length >= 1 ? /* @__PURE__ */ i(H, { children: [
|
|
867
|
+
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: v.map((S, f) => /* @__PURE__ */ i(h.Fragment, { children: [
|
|
868
|
+
/* @__PURE__ */ i(xe, { sx: { px: 24 }, children: [
|
|
869
869
|
/* @__PURE__ */ e(vt, { children: /* @__PURE__ */ e(pt, { alt: "MX", institutionGuid: S.institution_guid ?? "" }) }),
|
|
870
870
|
/* @__PURE__ */ e(
|
|
871
|
-
|
|
871
|
+
Se,
|
|
872
872
|
{
|
|
873
873
|
primary: `${wt(S, {
|
|
874
874
|
allowNickname: r?.show_account_nicknames_in_master
|
|
@@ -877,28 +877,28 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
877
877
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
878
878
|
}
|
|
879
879
|
),
|
|
880
|
-
/* @__PURE__ */ e(
|
|
880
|
+
/* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: W(x(S), "0,0.00") })
|
|
881
881
|
] }),
|
|
882
|
-
f <
|
|
882
|
+
f < v.length - 1 && /* @__PURE__ */ e(_e, { variant: "inset" })
|
|
883
883
|
] }, S.guid)) }),
|
|
884
|
-
b.length > 3 && /* @__PURE__ */ i(
|
|
884
|
+
b.length > 3 && /* @__PURE__ */ i(H, { children: [
|
|
885
885
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
886
886
|
P,
|
|
887
887
|
{
|
|
888
888
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
889
|
-
onClick: () =>
|
|
889
|
+
onClick: () => _(!0),
|
|
890
890
|
size: "small",
|
|
891
891
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
892
|
-
children: /* @__PURE__ */ i(
|
|
892
|
+
children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
|
|
893
893
|
b.length - 3,
|
|
894
894
|
" ",
|
|
895
895
|
o
|
|
896
896
|
] })
|
|
897
897
|
}
|
|
898
898
|
) }),
|
|
899
|
-
/* @__PURE__ */ e(
|
|
899
|
+
/* @__PURE__ */ e(oe, { isOpen: d, onClose: () => _(!1), title: a.accounts, children: /* @__PURE__ */ e(Pt, { loadAccounts: t }) })
|
|
900
900
|
] })
|
|
901
|
-
] }) : /* @__PURE__ */ i(
|
|
901
|
+
] }) : /* @__PURE__ */ i(H, { children: [
|
|
902
902
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
903
903
|
P,
|
|
904
904
|
{
|
|
@@ -906,11 +906,11 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
906
906
|
size: "small",
|
|
907
907
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
908
908
|
variant: "contained",
|
|
909
|
-
children: /* @__PURE__ */ e(
|
|
909
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
|
|
910
910
|
}
|
|
911
911
|
) }),
|
|
912
912
|
/* @__PURE__ */ e(
|
|
913
|
-
|
|
913
|
+
re,
|
|
914
914
|
{
|
|
915
915
|
onClose: () => m(!1),
|
|
916
916
|
showConnectWidget: u,
|
|
@@ -918,8 +918,8 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
918
918
|
}
|
|
919
919
|
)
|
|
920
920
|
] });
|
|
921
|
-
}, Wt =
|
|
922
|
-
|
|
921
|
+
}, Wt = w(Eo), we = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ i(
|
|
922
|
+
p,
|
|
923
923
|
{
|
|
924
924
|
sx: {
|
|
925
925
|
alignItems: "center",
|
|
@@ -931,14 +931,14 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
931
931
|
...n
|
|
932
932
|
},
|
|
933
933
|
children: [
|
|
934
|
-
typeof t == "number" ? /* @__PURE__ */ e(
|
|
935
|
-
/* @__PURE__ */ e(
|
|
934
|
+
typeof t == "number" ? /* @__PURE__ */ e(I, { variant: "h2", children: W(t, "0,0.00") }) : t,
|
|
935
|
+
/* @__PURE__ */ e(I, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
|
|
936
936
|
]
|
|
937
937
|
}
|
|
938
938
|
);
|
|
939
939
|
var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}), De = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(De || {}), Q = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Q || {});
|
|
940
940
|
const zo = ({ total: t }) => {
|
|
941
|
-
const { finstrong: o } =
|
|
941
|
+
const { finstrong: o } = C(), n = [
|
|
942
942
|
{ id: Q.Monthly, label: o.maintain_emergency_savings_monthly },
|
|
943
943
|
{ id: Q.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
|
|
944
944
|
{ id: Q.Weekly, label: o.maintain_emergency_savings_weekly },
|
|
@@ -952,9 +952,9 @@ const zo = ({ total: t }) => {
|
|
|
952
952
|
{ id: De.Months, label: o.maintain_emergency_savings_months },
|
|
953
953
|
{ id: De.Years, label: o.maintain_emergency_savings_years },
|
|
954
954
|
{ id: De.Days, label: o.maintain_emergency_savings_days }
|
|
955
|
-
], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = h.useState(0), [d,
|
|
955
|
+
], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = h.useState(0), [d, _] = h.useState(tt(t)), [u, m] = h.useState(
|
|
956
956
|
tt(t)
|
|
957
|
-
), [b,
|
|
957
|
+
), [b, v] = h.useState(a), [x, S] = h.useState(vn(t)), [f, k] = h.useState(De.Months);
|
|
958
958
|
h.useEffect(() => {
|
|
959
959
|
c(
|
|
960
960
|
nt({
|
|
@@ -964,7 +964,7 @@ const zo = ({ total: t }) => {
|
|
|
964
964
|
targetPeriod: f,
|
|
965
965
|
totalSaved: t
|
|
966
966
|
})
|
|
967
|
-
),
|
|
967
|
+
), _(u);
|
|
968
968
|
}, []);
|
|
969
969
|
const g = (y) => {
|
|
970
970
|
y.preventDefault(), c(
|
|
@@ -975,15 +975,15 @@ const zo = ({ total: t }) => {
|
|
|
975
975
|
targetPeriod: f,
|
|
976
976
|
totalSaved: t
|
|
977
977
|
})
|
|
978
|
-
),
|
|
978
|
+
), _(u);
|
|
979
979
|
};
|
|
980
|
-
return /* @__PURE__ */ e(
|
|
980
|
+
return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ i(p, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
981
981
|
/* @__PURE__ */ e(
|
|
982
|
-
|
|
982
|
+
we,
|
|
983
983
|
{
|
|
984
|
-
balance: /* @__PURE__ */ i(
|
|
985
|
-
/* @__PURE__ */ e(
|
|
986
|
-
/* @__PURE__ */ i(
|
|
984
|
+
balance: /* @__PURE__ */ i(p, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
985
|
+
/* @__PURE__ */ e(T, { variant: "h2", children: W(l, "0,0") }),
|
|
986
|
+
/* @__PURE__ */ i(T, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
987
987
|
"/",
|
|
988
988
|
r[d]
|
|
989
989
|
] })
|
|
@@ -992,10 +992,10 @@ const zo = ({ total: t }) => {
|
|
|
992
992
|
}
|
|
993
993
|
),
|
|
994
994
|
/* @__PURE__ */ e(
|
|
995
|
-
|
|
995
|
+
Le,
|
|
996
996
|
{
|
|
997
997
|
"aria-label": o.maintain_emergency_savings_savings_goal,
|
|
998
|
-
helperText:
|
|
998
|
+
helperText: K(
|
|
999
999
|
o.maintain_emergency_savings_suggested_goal,
|
|
1000
1000
|
W(a, "0,0")
|
|
1001
1001
|
),
|
|
@@ -1005,7 +1005,7 @@ const zo = ({ total: t }) => {
|
|
|
1005
1005
|
},
|
|
1006
1006
|
label: o.maintain_emergency_savings_savings_goal,
|
|
1007
1007
|
onChange: (y) => {
|
|
1008
|
-
y.target.value &&
|
|
1008
|
+
y.target.value && v(Number(y.target.value.replace(/[^0-9]/g, "")));
|
|
1009
1009
|
},
|
|
1010
1010
|
value: b ? W(b, "0,0") : ""
|
|
1011
1011
|
}
|
|
@@ -1020,9 +1020,9 @@ const zo = ({ total: t }) => {
|
|
|
1020
1020
|
value: u
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
|
-
/* @__PURE__ */ i(
|
|
1023
|
+
/* @__PURE__ */ i(p, { sx: { flexDirection: "row" }, children: [
|
|
1024
1024
|
/* @__PURE__ */ e(
|
|
1025
|
-
|
|
1025
|
+
Le,
|
|
1026
1026
|
{
|
|
1027
1027
|
"aria-label": o.maintain_emergency_savings_meet_your_goal_within,
|
|
1028
1028
|
fullWidth: !0,
|
|
@@ -1058,31 +1058,31 @@ const zo = ({ total: t }) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
},
|
|
1061
|
-
children: /* @__PURE__ */ e(it, { label: "", onChange:
|
|
1061
|
+
children: /* @__PURE__ */ e(it, { label: "", onChange: k, options: s, value: f })
|
|
1062
1062
|
}
|
|
1063
1063
|
)
|
|
1064
1064
|
] }),
|
|
1065
1065
|
/* @__PURE__ */ e(P, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
|
|
1066
1066
|
] }) }) });
|
|
1067
|
-
}, Go =
|
|
1068
|
-
const { savingsAccounts: t } =
|
|
1067
|
+
}, Go = w(zo), Ho = () => {
|
|
1068
|
+
const { savingsAccounts: t } = ve(), { finstrong: o } = C(), [n, r] = h.useState(!1), s = h.useMemo(
|
|
1069
1069
|
() => t.reduce((a, l) => a + (l.balance ?? 0), 0),
|
|
1070
1070
|
[t]
|
|
1071
1071
|
);
|
|
1072
|
-
return /* @__PURE__ */ i(
|
|
1073
|
-
/* @__PURE__ */ e(
|
|
1074
|
-
/* @__PURE__ */ e(
|
|
1072
|
+
return /* @__PURE__ */ i(p, { sx: { gap: 24 }, children: [
|
|
1073
|
+
/* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(p, { sx: { gap: 16 }, children: [
|
|
1074
|
+
/* @__PURE__ */ e(we, { balance: s, title: o.maintain_emergency_savings_your_savings }),
|
|
1075
1075
|
t.length ? /* @__PURE__ */ e(
|
|
1076
1076
|
Wt,
|
|
1077
1077
|
{
|
|
1078
|
-
loadAccounts: [
|
|
1078
|
+
loadAccounts: [Ne.SAVINGS],
|
|
1079
1079
|
loadMoreLabel: o.connect_more_accounts_button
|
|
1080
1080
|
}
|
|
1081
1081
|
) : /* @__PURE__ */ e(P, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
|
|
1082
1082
|
] }) }),
|
|
1083
1083
|
/* @__PURE__ */ e(Go, { total: s }),
|
|
1084
1084
|
/* @__PURE__ */ e(
|
|
1085
|
-
|
|
1085
|
+
re,
|
|
1086
1086
|
{
|
|
1087
1087
|
onClose: () => r(!1),
|
|
1088
1088
|
showConnectWidget: n,
|
|
@@ -1090,7 +1090,7 @@ const zo = ({ total: t }) => {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
)
|
|
1092
1092
|
] });
|
|
1093
|
-
}, No =
|
|
1093
|
+
}, No = w(Ho), $e = w(
|
|
1094
1094
|
({ label: t, value: o, status: n, bottomComponent: r, statusBarData: s = [] }) => {
|
|
1095
1095
|
const a = {
|
|
1096
1096
|
GOOD: {
|
|
@@ -1113,7 +1113,7 @@ const zo = ({ total: t }) => {
|
|
|
1113
1113
|
percentage: c.percentage
|
|
1114
1114
|
});
|
|
1115
1115
|
return /* @__PURE__ */ i(
|
|
1116
|
-
|
|
1116
|
+
p,
|
|
1117
1117
|
{
|
|
1118
1118
|
sx: {
|
|
1119
1119
|
backgroundColor: "background.paper",
|
|
@@ -1123,10 +1123,10 @@ const zo = ({ total: t }) => {
|
|
|
1123
1123
|
borderColor: "divider"
|
|
1124
1124
|
},
|
|
1125
1125
|
children: [
|
|
1126
|
-
/* @__PURE__ */ i(
|
|
1127
|
-
/* @__PURE__ */ e(
|
|
1126
|
+
/* @__PURE__ */ i(p, { sx: { gap: 2 }, children: [
|
|
1127
|
+
/* @__PURE__ */ e(T, { variant: "body2", children: t }),
|
|
1128
1128
|
/* @__PURE__ */ i(
|
|
1129
|
-
|
|
1129
|
+
p,
|
|
1130
1130
|
{
|
|
1131
1131
|
sx: {
|
|
1132
1132
|
alignItems: "center",
|
|
@@ -1135,13 +1135,13 @@ const zo = ({ total: t }) => {
|
|
|
1135
1135
|
justifyContent: "space-between"
|
|
1136
1136
|
},
|
|
1137
1137
|
children: [
|
|
1138
|
-
/* @__PURE__ */ e(
|
|
1139
|
-
/* @__PURE__ */ e(
|
|
1138
|
+
/* @__PURE__ */ e(Be, { children: o }),
|
|
1139
|
+
/* @__PURE__ */ e(We, { status: n })
|
|
1140
1140
|
]
|
|
1141
1141
|
}
|
|
1142
1142
|
)
|
|
1143
1143
|
] }),
|
|
1144
|
-
/* @__PURE__ */ i(
|
|
1144
|
+
/* @__PURE__ */ i(p, { children: [
|
|
1145
1145
|
/* @__PURE__ */ e(Gn, { data: l, height: 16 }),
|
|
1146
1146
|
r
|
|
1147
1147
|
] })
|
|
@@ -1152,13 +1152,13 @@ const zo = ({ total: t }) => {
|
|
|
1152
1152
|
), jo = {
|
|
1153
1153
|
sticky_label: "You have saved"
|
|
1154
1154
|
}, Ko = ["$0", "$250", "$500", "$750", "$1k"], Vo = () => {
|
|
1155
|
-
const { healthScore: t } =
|
|
1155
|
+
const { healthScore: t } = F(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = wn(o), r = yt(o);
|
|
1156
1156
|
return /* @__PURE__ */ e(
|
|
1157
|
-
|
|
1157
|
+
$e,
|
|
1158
1158
|
{
|
|
1159
|
-
bottomComponent: /* @__PURE__ */ e(
|
|
1159
|
+
bottomComponent: /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Ko.map((s) => /* @__PURE__ */ i(p, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1160
1160
|
/* @__PURE__ */ e(
|
|
1161
|
-
|
|
1161
|
+
_e,
|
|
1162
1162
|
{
|
|
1163
1163
|
orientation: "vertical",
|
|
1164
1164
|
sx: {
|
|
@@ -1168,7 +1168,7 @@ const zo = ({ total: t }) => {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
),
|
|
1171
|
-
/* @__PURE__ */ e(
|
|
1171
|
+
/* @__PURE__ */ e(T, { variant: "caption", children: s })
|
|
1172
1172
|
] }, s)) }),
|
|
1173
1173
|
label: jo.sticky_label,
|
|
1174
1174
|
status: r,
|
|
@@ -1180,22 +1180,22 @@ const zo = ({ total: t }) => {
|
|
|
1180
1180
|
value: W(o ?? 0, "0,0.00")
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
|
-
}, Yo =
|
|
1183
|
+
}, Yo = w(Vo), Ee = ({
|
|
1184
1184
|
transactions: t = [],
|
|
1185
1185
|
amountColor: o = "success.main",
|
|
1186
1186
|
amountPosition: n = "center",
|
|
1187
1187
|
formatDate: r = Mt,
|
|
1188
1188
|
secondaryIcon: s
|
|
1189
1189
|
}) => {
|
|
1190
|
-
const a =
|
|
1191
|
-
let
|
|
1192
|
-
return S && (
|
|
1190
|
+
const a = E(), { connect: l, finstrong: c, categories: d } = C(), [_, u] = h.useState(!1), [m, b] = h.useState(!1), { getCategoryName: v } = Ve(), x = 3, S = t.length > x, f = t.length - x;
|
|
1191
|
+
let k = t;
|
|
1192
|
+
return S && (k = t.map((g) => ({
|
|
1193
1193
|
...g,
|
|
1194
1194
|
category: d.default_categories[g.top_level_category_guid]?.replace(
|
|
1195
1195
|
/&/g,
|
|
1196
1196
|
"&"
|
|
1197
|
-
) ??
|
|
1198
|
-
})).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(
|
|
1197
|
+
) ?? v(g.top_level_category_guid)
|
|
1198
|
+
})).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(H, { children: [
|
|
1199
1199
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1200
1200
|
P,
|
|
1201
1201
|
{
|
|
@@ -1203,20 +1203,20 @@ const zo = ({ total: t }) => {
|
|
|
1203
1203
|
size: "small",
|
|
1204
1204
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1205
1205
|
variant: "contained",
|
|
1206
|
-
children: /* @__PURE__ */ e(
|
|
1206
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
|
|
1207
1207
|
}
|
|
1208
1208
|
) }),
|
|
1209
1209
|
/* @__PURE__ */ e(
|
|
1210
|
-
|
|
1210
|
+
re,
|
|
1211
1211
|
{
|
|
1212
1212
|
onClose: () => b(!1),
|
|
1213
1213
|
showConnectWidget: m,
|
|
1214
1214
|
title: l.mini_title
|
|
1215
1215
|
}
|
|
1216
1216
|
)
|
|
1217
|
-
] }) : /* @__PURE__ */ i(
|
|
1217
|
+
] }) : /* @__PURE__ */ i(p, { sx: { gap: 16 }, children: [
|
|
1218
1218
|
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, x).sort((g, y) => y.date - g.date).map((g, y) => /* @__PURE__ */ i(
|
|
1219
|
-
|
|
1219
|
+
p,
|
|
1220
1220
|
{
|
|
1221
1221
|
sx: {
|
|
1222
1222
|
alignItems: "center",
|
|
@@ -1226,7 +1226,7 @@ const zo = ({ total: t }) => {
|
|
|
1226
1226
|
pt: 14
|
|
1227
1227
|
},
|
|
1228
1228
|
children: [
|
|
1229
|
-
/* @__PURE__ */ e(
|
|
1229
|
+
/* @__PURE__ */ e(p, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
|
|
1230
1230
|
nn,
|
|
1231
1231
|
{
|
|
1232
1232
|
categoryGuid: g.top_level_category_guid || "",
|
|
@@ -1235,7 +1235,7 @@ const zo = ({ total: t }) => {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
) }),
|
|
1237
1237
|
/* @__PURE__ */ i(
|
|
1238
|
-
|
|
1238
|
+
p,
|
|
1239
1239
|
{
|
|
1240
1240
|
sx: {
|
|
1241
1241
|
alignItems: n,
|
|
@@ -1250,14 +1250,14 @@ const zo = ({ total: t }) => {
|
|
|
1250
1250
|
width: "100%"
|
|
1251
1251
|
},
|
|
1252
1252
|
children: [
|
|
1253
|
-
/* @__PURE__ */ i(
|
|
1254
|
-
/* @__PURE__ */ e(
|
|
1255
|
-
/* @__PURE__ */ i(
|
|
1253
|
+
/* @__PURE__ */ i(p, { children: [
|
|
1254
|
+
/* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: g.description }),
|
|
1255
|
+
/* @__PURE__ */ i(p, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1256
1256
|
!!s && s,
|
|
1257
|
-
/* @__PURE__ */ e(
|
|
1257
|
+
/* @__PURE__ */ e(T, { variant: "caption", children: r(g.date) })
|
|
1258
1258
|
] })
|
|
1259
1259
|
] }),
|
|
1260
|
-
/* @__PURE__ */ e(
|
|
1260
|
+
/* @__PURE__ */ e(I, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: W(g.amount, "0,0.00") })
|
|
1261
1261
|
]
|
|
1262
1262
|
},
|
|
1263
1263
|
g.guid || y
|
|
@@ -1266,7 +1266,7 @@ const zo = ({ total: t }) => {
|
|
|
1266
1266
|
},
|
|
1267
1267
|
y
|
|
1268
1268
|
)) }),
|
|
1269
|
-
S && /* @__PURE__ */ i(
|
|
1269
|
+
S && /* @__PURE__ */ i(H, { children: [
|
|
1270
1270
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1271
1271
|
P,
|
|
1272
1272
|
{
|
|
@@ -1274,7 +1274,7 @@ const zo = ({ total: t }) => {
|
|
|
1274
1274
|
onClick: () => u(!0),
|
|
1275
1275
|
size: "small",
|
|
1276
1276
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1277
|
-
children: /* @__PURE__ */ i(
|
|
1277
|
+
children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
|
|
1278
1278
|
f,
|
|
1279
1279
|
" ",
|
|
1280
1280
|
c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
@@ -1282,12 +1282,12 @@ const zo = ({ total: t }) => {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
) }),
|
|
1284
1284
|
/* @__PURE__ */ e(
|
|
1285
|
-
|
|
1285
|
+
oe,
|
|
1286
1286
|
{
|
|
1287
|
-
isOpen:
|
|
1287
|
+
isOpen: _,
|
|
1288
1288
|
onClose: () => u(!1),
|
|
1289
1289
|
title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1290
|
-
children: /* @__PURE__ */ e(Hn, { transaction:
|
|
1290
|
+
children: /* @__PURE__ */ e(Hn, { transaction: k })
|
|
1291
1291
|
}
|
|
1292
1292
|
)
|
|
1293
1293
|
] })
|
|
@@ -1297,11 +1297,11 @@ const zo = ({ total: t }) => {
|
|
|
1297
1297
|
finstrong: {
|
|
1298
1298
|
key_indicators_spend: { pay_bills_on_time_drawer: n }
|
|
1299
1299
|
}
|
|
1300
|
-
} =
|
|
1300
|
+
} = C(), { getSpendingFeeTransactions: r, allTransactions: s } = F();
|
|
1301
1301
|
return h.useEffect(() => {
|
|
1302
1302
|
r().finally(() => o(!1));
|
|
1303
|
-
}, []), t ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(
|
|
1304
|
-
|
|
1303
|
+
}, []), t ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(H, { children: s.spendingFee.length === 0 ? /* @__PURE__ */ i(
|
|
1304
|
+
Y,
|
|
1305
1305
|
{
|
|
1306
1306
|
sx: {
|
|
1307
1307
|
backgroundColor: "background.paper",
|
|
@@ -1313,14 +1313,14 @@ const zo = ({ total: t }) => {
|
|
|
1313
1313
|
},
|
|
1314
1314
|
children: [
|
|
1315
1315
|
/* @__PURE__ */ e(cn, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1316
|
-
/* @__PURE__ */ i(
|
|
1317
|
-
/* @__PURE__ */ e(
|
|
1318
|
-
/* @__PURE__ */ e(
|
|
1316
|
+
/* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1317
|
+
/* @__PURE__ */ e(V, { children: n.pay_bills_on_time_zero_fees_title }),
|
|
1318
|
+
/* @__PURE__ */ e(I, { variant: "subtitle1", children: n.pay_bills_on_time_zero_fees_description })
|
|
1319
1319
|
] })
|
|
1320
1320
|
]
|
|
1321
1321
|
}
|
|
1322
1322
|
) : /* @__PURE__ */ i(
|
|
1323
|
-
|
|
1323
|
+
Y,
|
|
1324
1324
|
{
|
|
1325
1325
|
sx: {
|
|
1326
1326
|
p: 16,
|
|
@@ -1328,9 +1328,9 @@ const zo = ({ total: t }) => {
|
|
|
1328
1328
|
backgroundColor: "background.paper"
|
|
1329
1329
|
},
|
|
1330
1330
|
children: [
|
|
1331
|
-
/* @__PURE__ */ e(
|
|
1331
|
+
/* @__PURE__ */ e(V, { sx: { textAlign: "left", pb: 16 }, children: n.pay_bills_on_time_sticky_fee_count }),
|
|
1332
1332
|
/* @__PURE__ */ e(
|
|
1333
|
-
|
|
1333
|
+
Ee,
|
|
1334
1334
|
{
|
|
1335
1335
|
amountColor: "text.primary",
|
|
1336
1336
|
amountPosition: "flex-start",
|
|
@@ -1342,10 +1342,10 @@ const zo = ({ total: t }) => {
|
|
|
1342
1342
|
]
|
|
1343
1343
|
}
|
|
1344
1344
|
) });
|
|
1345
|
-
}, qo =
|
|
1346
|
-
const { healthScore: t } =
|
|
1345
|
+
}, qo = w(Xo), Uo = () => {
|
|
1346
|
+
const { healthScore: t } = F(), { finstrong: o } = C(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = kn(t.spending_fee_transaction_count);
|
|
1347
1347
|
return /* @__PURE__ */ i(
|
|
1348
|
-
|
|
1348
|
+
p,
|
|
1349
1349
|
{
|
|
1350
1350
|
sx: {
|
|
1351
1351
|
p: 24,
|
|
@@ -1354,23 +1354,23 @@ const zo = ({ total: t }) => {
|
|
|
1354
1354
|
borderColor: "divider"
|
|
1355
1355
|
},
|
|
1356
1356
|
children: [
|
|
1357
|
-
/* @__PURE__ */ e(
|
|
1358
|
-
/* @__PURE__ */ i(
|
|
1359
|
-
/* @__PURE__ */ i(
|
|
1357
|
+
/* @__PURE__ */ e(I, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
|
|
1358
|
+
/* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1359
|
+
/* @__PURE__ */ i(Be, { children: [
|
|
1360
1360
|
t.spending_fee_transaction_count,
|
|
1361
1361
|
" ",
|
|
1362
1362
|
r.pay_bills_on_time_sticky_fee_count
|
|
1363
1363
|
] }),
|
|
1364
|
-
/* @__PURE__ */ e(
|
|
1364
|
+
/* @__PURE__ */ e(We, { status: s })
|
|
1365
1365
|
] })
|
|
1366
1366
|
]
|
|
1367
1367
|
}
|
|
1368
1368
|
);
|
|
1369
|
-
}, Qo =
|
|
1370
|
-
const { savingsAndCheckingAccountsBalance: t } =
|
|
1371
|
-
return /* @__PURE__ */ i(
|
|
1369
|
+
}, Qo = w(Uo), Zo = () => {
|
|
1370
|
+
const { savingsAndCheckingAccountsBalance: t } = ve(), { finstrong: o } = C();
|
|
1371
|
+
return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1372
1372
|
/* @__PURE__ */ e(
|
|
1373
|
-
|
|
1373
|
+
we,
|
|
1374
1374
|
{
|
|
1375
1375
|
balance: t,
|
|
1376
1376
|
title: o.key_indicators_save.drawer_available_balance
|
|
@@ -1379,42 +1379,42 @@ const zo = ({ total: t }) => {
|
|
|
1379
1379
|
/* @__PURE__ */ e(
|
|
1380
1380
|
Wt,
|
|
1381
1381
|
{
|
|
1382
|
-
loadAccounts: [
|
|
1382
|
+
loadAccounts: [Ne.SAVINGS, Ne.CHECKING],
|
|
1383
1383
|
loadMoreLabel: o.more_accounts
|
|
1384
1384
|
}
|
|
1385
1385
|
)
|
|
1386
1386
|
] });
|
|
1387
|
-
}, Jo =
|
|
1388
|
-
const { finstrong: t } =
|
|
1387
|
+
}, Jo = w(Zo), er = () => {
|
|
1388
|
+
const { finstrong: t } = C(), {
|
|
1389
1389
|
isSpendingInitialized: o,
|
|
1390
1390
|
healthScore: n,
|
|
1391
1391
|
allTransactions: r,
|
|
1392
1392
|
loadSpendTransactions: s,
|
|
1393
1393
|
loadDebtSpend: a
|
|
1394
|
-
} =
|
|
1394
|
+
} = F();
|
|
1395
1395
|
h.useEffect(() => {
|
|
1396
1396
|
o || (s().finally(), a().finally());
|
|
1397
1397
|
}, [o]);
|
|
1398
1398
|
const l = h.useMemo(() => {
|
|
1399
|
-
const c = r.spend.map((
|
|
1399
|
+
const c = r.spend.map((_) => _.transaction), d = r.debtSpend.map((_) => _.transaction);
|
|
1400
1400
|
return [...c, ...d];
|
|
1401
1401
|
}, [r.spend, r.debtSpend]);
|
|
1402
|
-
return o ? /* @__PURE__ */ i(
|
|
1402
|
+
return o ? /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1403
1403
|
/* @__PURE__ */ e(
|
|
1404
|
-
|
|
1404
|
+
we,
|
|
1405
1405
|
{
|
|
1406
1406
|
balance: n.ninety_day_spend / 90,
|
|
1407
1407
|
title: t.key_indicators_save.drawer_daily_spend
|
|
1408
1408
|
}
|
|
1409
1409
|
),
|
|
1410
|
-
/* @__PURE__ */ e(
|
|
1410
|
+
/* @__PURE__ */ e(Ee, { amountColor: "text.primary", transactions: l })
|
|
1411
1411
|
] }) : /* @__PURE__ */ e(U, {});
|
|
1412
|
-
}, tr =
|
|
1413
|
-
const [t, o] = h.useState(0), { finstrong: n } =
|
|
1414
|
-
return /* @__PURE__ */ i(
|
|
1415
|
-
/* @__PURE__ */ i(
|
|
1412
|
+
}, tr = w(er), nr = () => {
|
|
1413
|
+
const [t, o] = h.useState(0), { finstrong: n } = C();
|
|
1414
|
+
return /* @__PURE__ */ i(H, { children: [
|
|
1415
|
+
/* @__PURE__ */ i(Y, { children: [
|
|
1416
1416
|
/* @__PURE__ */ i(
|
|
1417
|
-
|
|
1417
|
+
qe,
|
|
1418
1418
|
{
|
|
1419
1419
|
"aria-label": n.key_indicators_save.drawer_title,
|
|
1420
1420
|
centered: !0,
|
|
@@ -1425,7 +1425,7 @@ const zo = ({ total: t }) => {
|
|
|
1425
1425
|
variant: "fullWidth",
|
|
1426
1426
|
children: [
|
|
1427
1427
|
/* @__PURE__ */ e(
|
|
1428
|
-
|
|
1428
|
+
de,
|
|
1429
1429
|
{
|
|
1430
1430
|
"aria-controls": "available-details-tabpanel-0",
|
|
1431
1431
|
label: n.key_indicators_save.drawer_available,
|
|
@@ -1433,7 +1433,7 @@ const zo = ({ total: t }) => {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
),
|
|
1435
1435
|
/* @__PURE__ */ e(
|
|
1436
|
-
|
|
1436
|
+
de,
|
|
1437
1437
|
{
|
|
1438
1438
|
"aria-controls": "spending-details-tabpanel-1",
|
|
1439
1439
|
label: n.key_indicators_save.drawer_spending,
|
|
@@ -1443,18 +1443,18 @@ const zo = ({ total: t }) => {
|
|
|
1443
1443
|
]
|
|
1444
1444
|
}
|
|
1445
1445
|
),
|
|
1446
|
-
/* @__PURE__ */ e(
|
|
1447
|
-
/* @__PURE__ */ e(
|
|
1446
|
+
/* @__PURE__ */ e(pe, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Jo, {}) }),
|
|
1447
|
+
/* @__PURE__ */ e(pe, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(tr, {}) })
|
|
1448
1448
|
] }),
|
|
1449
|
-
/* @__PURE__ */ e(
|
|
1449
|
+
/* @__PURE__ */ e(Qe, { chartFor: "savingsOverTime" })
|
|
1450
1450
|
] });
|
|
1451
|
-
}, or =
|
|
1452
|
-
const { finstrong: t } =
|
|
1451
|
+
}, or = w(nr), rr = () => {
|
|
1452
|
+
const { finstrong: t } = C(), { healthScore: o } = F(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null), s = 183 / 6, a = Math.floor(n), l = Math.round((n - a) * s), c = n / 6 * 100;
|
|
1453
1453
|
return /* @__PURE__ */ e(
|
|
1454
|
-
|
|
1454
|
+
$e,
|
|
1455
1455
|
{
|
|
1456
1456
|
bottomComponent: /* @__PURE__ */ e(
|
|
1457
|
-
|
|
1457
|
+
p,
|
|
1458
1458
|
{
|
|
1459
1459
|
sx: {
|
|
1460
1460
|
flexDirection: "row",
|
|
@@ -1463,8 +1463,8 @@ const zo = ({ total: t }) => {
|
|
|
1463
1463
|
mt: 2,
|
|
1464
1464
|
px: 1
|
|
1465
1465
|
},
|
|
1466
|
-
children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((
|
|
1467
|
-
|
|
1466
|
+
children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((_) => /* @__PURE__ */ i(
|
|
1467
|
+
p,
|
|
1468
1468
|
{
|
|
1469
1469
|
sx: {
|
|
1470
1470
|
alignItems: "center",
|
|
@@ -1472,7 +1472,7 @@ const zo = ({ total: t }) => {
|
|
|
1472
1472
|
},
|
|
1473
1473
|
children: [
|
|
1474
1474
|
/* @__PURE__ */ e(
|
|
1475
|
-
|
|
1475
|
+
_e,
|
|
1476
1476
|
{
|
|
1477
1477
|
orientation: "vertical",
|
|
1478
1478
|
sx: {
|
|
@@ -1481,10 +1481,10 @@ const zo = ({ total: t }) => {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
),
|
|
1484
|
-
/* @__PURE__ */ e(
|
|
1484
|
+
/* @__PURE__ */ e(T, { variant: "caption", children: _ })
|
|
1485
1485
|
]
|
|
1486
1486
|
},
|
|
1487
|
-
|
|
1487
|
+
_
|
|
1488
1488
|
))
|
|
1489
1489
|
}
|
|
1490
1490
|
),
|
|
@@ -1495,16 +1495,16 @@ const zo = ({ total: t }) => {
|
|
|
1495
1495
|
percentage: `${c}%`
|
|
1496
1496
|
}
|
|
1497
1497
|
],
|
|
1498
|
-
value:
|
|
1498
|
+
value: K(t.key_indicators_save.drawer_progress_bar_value, a, l)
|
|
1499
1499
|
}
|
|
1500
1500
|
);
|
|
1501
|
-
}, ar =
|
|
1502
|
-
const { healthScore: t } =
|
|
1501
|
+
}, ar = w(rr), ir = () => {
|
|
1502
|
+
const { healthScore: t } = F(), { finstrong: o } = C(), n = Re(t.debt_to_income_ratio), r = ft(n);
|
|
1503
1503
|
return /* @__PURE__ */ e(
|
|
1504
|
-
|
|
1504
|
+
$e,
|
|
1505
1505
|
{
|
|
1506
1506
|
bottomComponent: /* @__PURE__ */ i(
|
|
1507
|
-
|
|
1507
|
+
p,
|
|
1508
1508
|
{
|
|
1509
1509
|
sx: {
|
|
1510
1510
|
alignItems: "flex-end",
|
|
@@ -1524,7 +1524,7 @@ const zo = ({ total: t }) => {
|
|
|
1524
1524
|
transform: "translateX(-50%)"
|
|
1525
1525
|
},
|
|
1526
1526
|
children: /* @__PURE__ */ i(
|
|
1527
|
-
|
|
1527
|
+
p,
|
|
1528
1528
|
{
|
|
1529
1529
|
sx: {
|
|
1530
1530
|
alignItems: "center",
|
|
@@ -1534,7 +1534,7 @@ const zo = ({ total: t }) => {
|
|
|
1534
1534
|
},
|
|
1535
1535
|
children: [
|
|
1536
1536
|
/* @__PURE__ */ e(
|
|
1537
|
-
|
|
1537
|
+
_e,
|
|
1538
1538
|
{
|
|
1539
1539
|
orientation: "vertical",
|
|
1540
1540
|
sx: {
|
|
@@ -1543,7 +1543,7 @@ const zo = ({ total: t }) => {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
),
|
|
1546
|
-
/* @__PURE__ */ e(
|
|
1546
|
+
/* @__PURE__ */ e(T, { sx: { color: "text.primary" }, variant: "caption", children: "30%" })
|
|
1547
1547
|
]
|
|
1548
1548
|
}
|
|
1549
1549
|
)
|
|
@@ -1559,7 +1559,7 @@ const zo = ({ total: t }) => {
|
|
|
1559
1559
|
justifyContent: "center",
|
|
1560
1560
|
marginLeft: "auto"
|
|
1561
1561
|
},
|
|
1562
|
-
children: /* @__PURE__ */ e(
|
|
1562
|
+
children: /* @__PURE__ */ e(T, { variant: "body2", children: t.debt_to_income_ratio ? K(
|
|
1563
1563
|
o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
|
|
1564
1564
|
n
|
|
1565
1565
|
) : "-" })
|
|
@@ -1578,11 +1578,11 @@ const zo = ({ total: t }) => {
|
|
|
1578
1578
|
value: W(t.ninety_day_debt_spend, "0,0.00")
|
|
1579
1579
|
}
|
|
1580
1580
|
);
|
|
1581
|
-
}, sr =
|
|
1582
|
-
const { healthScore: t, allTransactions: o } =
|
|
1583
|
-
return /* @__PURE__ */ i(
|
|
1581
|
+
}, sr = w(ir), cr = () => {
|
|
1582
|
+
const { healthScore: t, allTransactions: o } = F(), { connect: n, finstrong: r } = C(), [s, a] = h.useState(!1);
|
|
1583
|
+
return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1584
1584
|
/* @__PURE__ */ e(
|
|
1585
|
-
|
|
1585
|
+
we,
|
|
1586
1586
|
{
|
|
1587
1587
|
balance: t.ninety_day_income,
|
|
1588
1588
|
sx: { flexDirection: "column-reverse" },
|
|
@@ -1591,7 +1591,7 @@ const zo = ({ total: t }) => {
|
|
|
1591
1591
|
),
|
|
1592
1592
|
o.income.length ? (
|
|
1593
1593
|
// TODO: Need to add More Transactions functionality
|
|
1594
|
-
/* @__PURE__ */ e(
|
|
1594
|
+
/* @__PURE__ */ e(Ee, { transactions: o.income.map((l) => l.transaction) })
|
|
1595
1595
|
) : /* @__PURE__ */ e(
|
|
1596
1596
|
P,
|
|
1597
1597
|
{
|
|
@@ -1603,7 +1603,7 @@ const zo = ({ total: t }) => {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
),
|
|
1605
1605
|
/* @__PURE__ */ e(
|
|
1606
|
-
|
|
1606
|
+
re,
|
|
1607
1607
|
{
|
|
1608
1608
|
onClose: () => a(!1),
|
|
1609
1609
|
showConnectWidget: s,
|
|
@@ -1611,11 +1611,11 @@ const zo = ({ total: t }) => {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
)
|
|
1613
1613
|
] });
|
|
1614
|
-
}, lr =
|
|
1615
|
-
const { allTransactions: t, healthScore: o } =
|
|
1616
|
-
return /* @__PURE__ */ i(
|
|
1614
|
+
}, lr = w(cr), dr = () => {
|
|
1615
|
+
const { allTransactions: t, healthScore: o } = F(), { connect: n, finstrong: r } = C(), [s, a] = h.useState(!1);
|
|
1616
|
+
return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
|
|
1617
1617
|
/* @__PURE__ */ e(
|
|
1618
|
-
|
|
1618
|
+
we,
|
|
1619
1619
|
{
|
|
1620
1620
|
balance: o.ninety_day_debt_spend,
|
|
1621
1621
|
sx: { flexDirection: "column-reverse" },
|
|
@@ -1625,7 +1625,7 @@ const zo = ({ total: t }) => {
|
|
|
1625
1625
|
t.debtSpend.length ? (
|
|
1626
1626
|
//TODO: Need to add More Transactions functionality
|
|
1627
1627
|
/* @__PURE__ */ e(
|
|
1628
|
-
|
|
1628
|
+
Ee,
|
|
1629
1629
|
{
|
|
1630
1630
|
amountColor: "text.primary",
|
|
1631
1631
|
transactions: t.debtSpend.map((l) => l.transaction)
|
|
@@ -1642,7 +1642,7 @@ const zo = ({ total: t }) => {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
),
|
|
1644
1644
|
/* @__PURE__ */ e(
|
|
1645
|
-
|
|
1645
|
+
re,
|
|
1646
1646
|
{
|
|
1647
1647
|
onClose: () => a(!1),
|
|
1648
1648
|
showConnectWidget: s,
|
|
@@ -1650,22 +1650,22 @@ const zo = ({ total: t }) => {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
)
|
|
1652
1652
|
] });
|
|
1653
|
-
}, pr =
|
|
1653
|
+
}, pr = w(dr), _r = ({
|
|
1654
1654
|
color: t,
|
|
1655
1655
|
data: o,
|
|
1656
1656
|
series: n,
|
|
1657
1657
|
style: r,
|
|
1658
1658
|
...s
|
|
1659
1659
|
}) => {
|
|
1660
|
-
const a =
|
|
1660
|
+
const a = E(), l = h.useRef(null), c = h.useRef(null), [d, _] = h.useState(r.width || 0);
|
|
1661
1661
|
h.useLayoutEffect(() => {
|
|
1662
|
-
|
|
1662
|
+
_(r.width || 0);
|
|
1663
1663
|
}, [r.width]), h.useLayoutEffect(() => {
|
|
1664
1664
|
const S = new ResizeObserver(() => {
|
|
1665
1665
|
window.requestAnimationFrame(() => {
|
|
1666
1666
|
if (l.current) {
|
|
1667
|
-
const { width: f } = l.current.getBoundingClientRect(),
|
|
1668
|
-
g && g.setAttribute("transform", `translate(${
|
|
1667
|
+
const { width: f } = l.current.getBoundingClientRect(), k = f / 2, g = l.current.querySelector("text");
|
|
1668
|
+
g && g.setAttribute("transform", `translate(${k}, -8)`);
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
});
|
|
@@ -1673,12 +1673,12 @@ const zo = ({ total: t }) => {
|
|
|
1673
1673
|
l.current && S.unobserve(l.current);
|
|
1674
1674
|
};
|
|
1675
1675
|
}, []);
|
|
1676
|
-
const { formattedComparison: u, formattedMain: m } = o[n.index], b = n.type === 0 ? m : u,
|
|
1676
|
+
const { formattedComparison: u, formattedMain: m } = o[n.index], b = n.type === 0 ? m : u, v = {
|
|
1677
1677
|
...r,
|
|
1678
1678
|
transition: "all 0.3s ease-in-out"
|
|
1679
1679
|
}, x = `translate(${d / 2}, -5)`;
|
|
1680
1680
|
return /* @__PURE__ */ i("g", { children: [
|
|
1681
|
-
/* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style:
|
|
1681
|
+
/* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style: v }),
|
|
1682
1682
|
/* @__PURE__ */ e(
|
|
1683
1683
|
"text",
|
|
1684
1684
|
{
|
|
@@ -1695,7 +1695,7 @@ const zo = ({ total: t }) => {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
)
|
|
1697
1697
|
] });
|
|
1698
|
-
},
|
|
1698
|
+
}, Oe = (t, o = 1e3) => {
|
|
1699
1699
|
const n = Math.abs(t) >= o ? "0.[0]a" : "0";
|
|
1700
1700
|
return W(t, n);
|
|
1701
1701
|
}, $t = ({
|
|
@@ -1709,32 +1709,32 @@ const zo = ({ total: t }) => {
|
|
|
1709
1709
|
totalComparison: c,
|
|
1710
1710
|
totalMain: d
|
|
1711
1711
|
}) => {
|
|
1712
|
-
const
|
|
1712
|
+
const _ = E(), u = qn(_.breakpoints.down("xs")), m = h.useMemo(
|
|
1713
1713
|
() => o.sort((g, y) => g.year !== y.year ? g.year - y.year : g.month - y.month).map((g) => {
|
|
1714
|
-
const y = Mn(g.month),
|
|
1714
|
+
const y = Mn(g.month), D = {
|
|
1715
1715
|
spending_vs_income: {
|
|
1716
1716
|
main: g.standard_spend,
|
|
1717
1717
|
comparison: g.income,
|
|
1718
|
-
formattedMain:
|
|
1719
|
-
formattedComparison:
|
|
1718
|
+
formattedMain: Oe(g.standard_spend),
|
|
1719
|
+
formattedComparison: Oe(g.income)
|
|
1720
1720
|
},
|
|
1721
1721
|
debt_payment_vs_income: {
|
|
1722
1722
|
main: g.income,
|
|
1723
1723
|
comparison: g.debt_spend,
|
|
1724
|
-
formattedMain:
|
|
1725
|
-
formattedComparison:
|
|
1724
|
+
formattedMain: Oe(g.income),
|
|
1725
|
+
formattedComparison: Oe(g.debt_spend)
|
|
1726
1726
|
}
|
|
1727
1727
|
};
|
|
1728
1728
|
return {
|
|
1729
1729
|
label: y,
|
|
1730
|
-
...
|
|
1730
|
+
...D[t]
|
|
1731
1731
|
};
|
|
1732
1732
|
}),
|
|
1733
1733
|
[o, t]
|
|
1734
1734
|
), b = {
|
|
1735
1735
|
dataKey: "label",
|
|
1736
1736
|
scaleType: "band"
|
|
1737
|
-
},
|
|
1737
|
+
}, v = Math.max(...m.map((g) => Math.max(g.main, g.comparison))), S = Math.min(...m.map((g) => Math.min(g.main, g.comparison))) === 0 && v === 0 ? 100 : Math.ceil(v * 1.2 / 1e3) * 1e3, f = S / 3, k = {
|
|
1738
1738
|
scaleType: "linear",
|
|
1739
1739
|
min: 0,
|
|
1740
1740
|
max: S,
|
|
@@ -1742,9 +1742,9 @@ const zo = ({ total: t }) => {
|
|
|
1742
1742
|
tickMinStep: f,
|
|
1743
1743
|
valueFormatter: (g) => g === 0 ? "$0" : W(g, "0.[0]a")
|
|
1744
1744
|
};
|
|
1745
|
-
return /* @__PURE__ */ i(
|
|
1745
|
+
return /* @__PURE__ */ i(Y, { children: [
|
|
1746
1746
|
/* @__PURE__ */ i(
|
|
1747
|
-
|
|
1747
|
+
p,
|
|
1748
1748
|
{
|
|
1749
1749
|
sx: {
|
|
1750
1750
|
alignItems: "center",
|
|
@@ -1756,7 +1756,7 @@ const zo = ({ total: t }) => {
|
|
|
1756
1756
|
px: 16
|
|
1757
1757
|
},
|
|
1758
1758
|
children: [
|
|
1759
|
-
/* @__PURE__ */ e(
|
|
1759
|
+
/* @__PURE__ */ e(V, { children: n }),
|
|
1760
1760
|
r && /* @__PURE__ */ e(
|
|
1761
1761
|
P,
|
|
1762
1762
|
{
|
|
@@ -1774,9 +1774,9 @@ const zo = ({ total: t }) => {
|
|
|
1774
1774
|
]
|
|
1775
1775
|
}
|
|
1776
1776
|
),
|
|
1777
|
-
/* @__PURE__ */ i(
|
|
1778
|
-
/* @__PURE__ */ i(
|
|
1779
|
-
/* @__PURE__ */ i(
|
|
1777
|
+
/* @__PURE__ */ i(p, { sx: { pb: 24, pl: 16, pr: 24 }, children: [
|
|
1778
|
+
/* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
|
|
1779
|
+
/* @__PURE__ */ i(p, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
|
|
1780
1780
|
/* @__PURE__ */ e(
|
|
1781
1781
|
M,
|
|
1782
1782
|
{
|
|
@@ -1788,15 +1788,15 @@ const zo = ({ total: t }) => {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
1790
|
),
|
|
1791
|
-
/* @__PURE__ */ i(
|
|
1792
|
-
/* @__PURE__ */ i(
|
|
1791
|
+
/* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1792
|
+
/* @__PURE__ */ i(T, { variant: "subtitle2", children: [
|
|
1793
1793
|
a,
|
|
1794
1794
|
" "
|
|
1795
1795
|
] }),
|
|
1796
|
-
!u && d && /* @__PURE__ */ e(
|
|
1796
|
+
!u && d && /* @__PURE__ */ e(T, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
|
|
1797
1797
|
] })
|
|
1798
1798
|
] }),
|
|
1799
|
-
/* @__PURE__ */ i(
|
|
1799
|
+
/* @__PURE__ */ i(p, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
1800
1800
|
/* @__PURE__ */ e(
|
|
1801
1801
|
M,
|
|
1802
1802
|
{
|
|
@@ -1808,12 +1808,12 @@ const zo = ({ total: t }) => {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
),
|
|
1811
|
-
/* @__PURE__ */ i(
|
|
1812
|
-
/* @__PURE__ */ i(
|
|
1811
|
+
/* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1812
|
+
/* @__PURE__ */ i(T, { variant: "subtitle2", children: [
|
|
1813
1813
|
l,
|
|
1814
1814
|
" "
|
|
1815
1815
|
] }),
|
|
1816
|
-
!u && c && /* @__PURE__ */ e(
|
|
1816
|
+
!u && c && /* @__PURE__ */ e(T, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
|
|
1817
1817
|
] })
|
|
1818
1818
|
] })
|
|
1819
1819
|
] }),
|
|
@@ -1821,8 +1821,8 @@ const zo = ({ total: t }) => {
|
|
|
1821
1821
|
Qn,
|
|
1822
1822
|
{
|
|
1823
1823
|
colors: [
|
|
1824
|
-
`${
|
|
1825
|
-
`${
|
|
1824
|
+
`${_.palette.chartMono.chartMono3}`,
|
|
1825
|
+
`${_.palette.chartMono.chartMono5}`
|
|
1826
1826
|
],
|
|
1827
1827
|
dataset: m,
|
|
1828
1828
|
height: 240,
|
|
@@ -1832,18 +1832,18 @@ const zo = ({ total: t }) => {
|
|
|
1832
1832
|
{ dataKey: "comparison", type: "bar" }
|
|
1833
1833
|
],
|
|
1834
1834
|
xAxis: [b],
|
|
1835
|
-
yAxis: [
|
|
1835
|
+
yAxis: [k],
|
|
1836
1836
|
children: [
|
|
1837
1837
|
/* @__PURE__ */ e(
|
|
1838
1838
|
Un,
|
|
1839
1839
|
{
|
|
1840
1840
|
slots: {
|
|
1841
1841
|
bar: (g) => {
|
|
1842
|
-
const { ownerState: y, ...
|
|
1842
|
+
const { ownerState: y, ...D } = g;
|
|
1843
1843
|
return /* @__PURE__ */ e(
|
|
1844
1844
|
_r,
|
|
1845
1845
|
{
|
|
1846
|
-
...
|
|
1846
|
+
...D,
|
|
1847
1847
|
color: y.color,
|
|
1848
1848
|
data: m,
|
|
1849
1849
|
series: {
|
|
@@ -1866,10 +1866,10 @@ const zo = ({ total: t }) => {
|
|
|
1866
1866
|
{
|
|
1867
1867
|
sx: () => ({
|
|
1868
1868
|
".MuiChartsAxis-line": {
|
|
1869
|
-
stroke:
|
|
1869
|
+
stroke: _.palette.divider
|
|
1870
1870
|
},
|
|
1871
1871
|
".MuiChartsAxis-tick": {
|
|
1872
|
-
stroke:
|
|
1872
|
+
stroke: _.palette.divider
|
|
1873
1873
|
},
|
|
1874
1874
|
".MuiChartsAxis-tickLabel": {
|
|
1875
1875
|
transform: "translateY(10px)"
|
|
@@ -1886,10 +1886,10 @@ const zo = ({ total: t }) => {
|
|
|
1886
1886
|
{
|
|
1887
1887
|
sx: () => ({
|
|
1888
1888
|
".MuiChartsAxis-line": {
|
|
1889
|
-
stroke:
|
|
1889
|
+
stroke: _.palette.divider
|
|
1890
1890
|
},
|
|
1891
1891
|
".MuiChartsAxis-tick": {
|
|
1892
|
-
stroke:
|
|
1892
|
+
stroke: _.palette.divider
|
|
1893
1893
|
},
|
|
1894
1894
|
".MuiChartsAxis-tickLabel": {
|
|
1895
1895
|
transform: "translateX(-8px)"
|
|
@@ -1907,28 +1907,28 @@ const zo = ({ total: t }) => {
|
|
|
1907
1907
|
] })
|
|
1908
1908
|
] });
|
|
1909
1909
|
}, ur = () => {
|
|
1910
|
-
const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } =
|
|
1910
|
+
const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = F(), [s, a] = h.useState(0), { finstrong: l } = C();
|
|
1911
1911
|
if (h.useEffect(() => {
|
|
1912
1912
|
t || (o().finally(), n().finally());
|
|
1913
1913
|
}, [t]), !t) return /* @__PURE__ */ e(U, {});
|
|
1914
1914
|
const c = r.some(
|
|
1915
1915
|
(d) => d.debt_spend !== 0 || d.income !== 0
|
|
1916
1916
|
);
|
|
1917
|
-
return /* @__PURE__ */ i(
|
|
1918
|
-
/* @__PURE__ */ i(
|
|
1917
|
+
return /* @__PURE__ */ i(H, { children: [
|
|
1918
|
+
/* @__PURE__ */ i(Y, { children: [
|
|
1919
1919
|
/* @__PURE__ */ i(
|
|
1920
|
-
|
|
1920
|
+
qe,
|
|
1921
1921
|
{
|
|
1922
1922
|
"aria-label": l.key_indicators_save.drawer_title,
|
|
1923
1923
|
centered: !0,
|
|
1924
|
-
onChange: (d,
|
|
1924
|
+
onChange: (d, _) => a(_),
|
|
1925
1925
|
selectionFollowsFocus: !0,
|
|
1926
1926
|
sx: { mb: 0 },
|
|
1927
1927
|
value: s,
|
|
1928
1928
|
variant: "fullWidth",
|
|
1929
1929
|
children: [
|
|
1930
1930
|
/* @__PURE__ */ e(
|
|
1931
|
-
|
|
1931
|
+
de,
|
|
1932
1932
|
{
|
|
1933
1933
|
"aria-controls": "income-details-tabpanel-0",
|
|
1934
1934
|
id: "income-details-tab-0",
|
|
@@ -1937,7 +1937,7 @@ const zo = ({ total: t }) => {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
),
|
|
1939
1939
|
/* @__PURE__ */ e(
|
|
1940
|
-
|
|
1940
|
+
de,
|
|
1941
1941
|
{
|
|
1942
1942
|
"aria-controls": "debt-payment-details-tabpanel-1",
|
|
1943
1943
|
id: "debt-payment-details-tab-1",
|
|
@@ -1949,7 +1949,7 @@ const zo = ({ total: t }) => {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
),
|
|
1951
1951
|
/* @__PURE__ */ e(
|
|
1952
|
-
|
|
1952
|
+
pe,
|
|
1953
1953
|
{
|
|
1954
1954
|
"aria-labelledby": "income-details-tab-0",
|
|
1955
1955
|
index: 0,
|
|
@@ -1959,7 +1959,7 @@ const zo = ({ total: t }) => {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
),
|
|
1961
1961
|
/* @__PURE__ */ e(
|
|
1962
|
-
|
|
1962
|
+
pe,
|
|
1963
1963
|
{
|
|
1964
1964
|
"aria-labelledby": "debt-payment-details-tab-1",
|
|
1965
1965
|
index: 1,
|
|
@@ -1969,7 +1969,7 @@ const zo = ({ total: t }) => {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
)
|
|
1971
1971
|
] }),
|
|
1972
|
-
c ? /* @__PURE__ */ e(
|
|
1972
|
+
c ? /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
1973
1973
|
$t,
|
|
1974
1974
|
{
|
|
1975
1975
|
chartFor: "debt_payment_vs_income",
|
|
@@ -1979,7 +1979,7 @@ const zo = ({ total: t }) => {
|
|
|
1979
1979
|
title: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
|
|
1980
1980
|
}
|
|
1981
1981
|
) }) : /* @__PURE__ */ e(
|
|
1982
|
-
|
|
1982
|
+
Fe,
|
|
1983
1983
|
{
|
|
1984
1984
|
header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
|
|
1985
1985
|
icon: "multiline_chart",
|
|
@@ -1998,20 +1998,20 @@ const zo = ({ total: t }) => {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
),
|
|
2001
|
-
/* @__PURE__ */ e(
|
|
2001
|
+
/* @__PURE__ */ e(Qe, { chartFor: "debtOverTime" })
|
|
2002
2002
|
] });
|
|
2003
|
-
}, hr =
|
|
2004
|
-
const { healthScore: t } =
|
|
2003
|
+
}, hr = w(ur), mr = () => {
|
|
2004
|
+
const { healthScore: t } = F(), { finstrong: o } = C(), n = Re(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, a = xt(n), l = {
|
|
2005
2005
|
GOOD: [{ percentage: `${r}%` }],
|
|
2006
2006
|
FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
2007
2007
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
2008
2008
|
MISSING: [{ percentage: "0%" }]
|
|
2009
2009
|
}[a];
|
|
2010
2010
|
return /* @__PURE__ */ e(
|
|
2011
|
-
|
|
2011
|
+
$e,
|
|
2012
2012
|
{
|
|
2013
2013
|
bottomComponent: /* @__PURE__ */ i(
|
|
2014
|
-
|
|
2014
|
+
p,
|
|
2015
2015
|
{
|
|
2016
2016
|
sx: {
|
|
2017
2017
|
flexDirection: "row",
|
|
@@ -2020,12 +2020,12 @@ const zo = ({ total: t }) => {
|
|
|
2020
2020
|
mt: 8
|
|
2021
2021
|
},
|
|
2022
2022
|
children: [
|
|
2023
|
-
/* @__PURE__ */ i(
|
|
2023
|
+
/* @__PURE__ */ i(T, { variant: "body2", children: [
|
|
2024
2024
|
t.ninety_day_income <= 0 ? "-" : W(t.ninety_day_income, "0,0.00"),
|
|
2025
2025
|
" ",
|
|
2026
2026
|
o?.key_indicators_spend.spend_less_than_you_make_drawer.income
|
|
2027
2027
|
] }),
|
|
2028
|
-
/* @__PURE__ */ i(
|
|
2028
|
+
/* @__PURE__ */ i(T, { variant: "body2", children: [
|
|
2029
2029
|
r <= 0 ? "-%" : `${r}%`,
|
|
2030
2030
|
" ",
|
|
2031
2031
|
o?.key_indicators_spend.spend_less_than_you_make_drawer.spent
|
|
@@ -2039,8 +2039,8 @@ const zo = ({ total: t }) => {
|
|
|
2039
2039
|
value: s ? "$0" : W(t.ninety_day_spend, "0,0.00")
|
|
2040
2040
|
}
|
|
2041
2041
|
);
|
|
2042
|
-
}, gr =
|
|
2043
|
-
const { accounts: t } =
|
|
2042
|
+
}, gr = w(mr), yr = () => {
|
|
2043
|
+
const { accounts: t } = ve(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ve(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: a } = F(), { appDataStore: l } = On(), { finstrong: c, goals: d, spending: _ } = C(), u = E(), [m, b] = h.useState("");
|
|
2044
2044
|
h.useEffect(() => {
|
|
2045
2045
|
r(
|
|
2046
2046
|
t,
|
|
@@ -2048,19 +2048,19 @@ const zo = ({ total: t }) => {
|
|
|
2048
2048
|
It(/* @__PURE__ */ new Date())
|
|
2049
2049
|
).finally();
|
|
2050
2050
|
}, [t]);
|
|
2051
|
-
const
|
|
2051
|
+
const v = h.useMemo(
|
|
2052
2052
|
() => eo(o, d, u, n),
|
|
2053
2053
|
[o, n]
|
|
2054
|
-
), x = (
|
|
2055
|
-
b(m ===
|
|
2054
|
+
), x = (k) => {
|
|
2055
|
+
b(m === k ? "" : k);
|
|
2056
2056
|
}, { totalSpending: S, totalIncome: f } = h.useMemo(() => s?.reduce(
|
|
2057
|
-
(
|
|
2058
|
-
totalSpending:
|
|
2059
|
-
totalIncome:
|
|
2057
|
+
(k, { standard_spend: g = 0, income: y = 0 }) => ({
|
|
2058
|
+
totalSpending: k.totalSpending + g,
|
|
2059
|
+
totalIncome: k.totalIncome + y
|
|
2060
2060
|
}),
|
|
2061
2061
|
{ totalSpending: 0, totalIncome: 0 }
|
|
2062
2062
|
), [s]);
|
|
2063
|
-
return /* @__PURE__ */ i(
|
|
2063
|
+
return /* @__PURE__ */ i(p, { sx: { gap: 24 }, children: [
|
|
2064
2064
|
f > 0 || S > 0 ? /* @__PURE__ */ e(
|
|
2065
2065
|
$t,
|
|
2066
2066
|
{
|
|
@@ -2077,7 +2077,7 @@ const zo = ({ total: t }) => {
|
|
|
2077
2077
|
totalMain: W(S, "0,0.00")
|
|
2078
2078
|
}
|
|
2079
2079
|
) : /* @__PURE__ */ e(
|
|
2080
|
-
|
|
2080
|
+
Fe,
|
|
2081
2081
|
{
|
|
2082
2082
|
header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
|
|
2083
2083
|
icon: "multiline_chart",
|
|
@@ -2096,8 +2096,8 @@ const zo = ({ total: t }) => {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
),
|
|
2099
|
-
|
|
2100
|
-
|
|
2099
|
+
v.donutData.length > 0 ? /* @__PURE__ */ i(
|
|
2100
|
+
Y,
|
|
2101
2101
|
{
|
|
2102
2102
|
sx: {
|
|
2103
2103
|
px: 16,
|
|
@@ -2105,7 +2105,7 @@ const zo = ({ total: t }) => {
|
|
|
2105
2105
|
},
|
|
2106
2106
|
children: [
|
|
2107
2107
|
/* @__PURE__ */ i(
|
|
2108
|
-
|
|
2108
|
+
p,
|
|
2109
2109
|
{
|
|
2110
2110
|
sx: {
|
|
2111
2111
|
alignItems: "center",
|
|
@@ -2117,7 +2117,7 @@ const zo = ({ total: t }) => {
|
|
|
2117
2117
|
px: 16
|
|
2118
2118
|
},
|
|
2119
2119
|
children: [
|
|
2120
|
-
/* @__PURE__ */ e(
|
|
2120
|
+
/* @__PURE__ */ e(V, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2121
2121
|
l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2122
2122
|
P,
|
|
2123
2123
|
{
|
|
@@ -2136,23 +2136,23 @@ const zo = ({ total: t }) => {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
),
|
|
2138
2138
|
/* @__PURE__ */ i(
|
|
2139
|
-
|
|
2139
|
+
p,
|
|
2140
2140
|
{
|
|
2141
2141
|
sx: { flexDirection: "row", gap: 12, justifyContent: "center", pb: 32, pt: 16, px: 24 },
|
|
2142
2142
|
children: [
|
|
2143
2143
|
/* @__PURE__ */ e(
|
|
2144
2144
|
to,
|
|
2145
2145
|
{
|
|
2146
|
-
data:
|
|
2146
|
+
data: v,
|
|
2147
2147
|
onSelected: x,
|
|
2148
2148
|
selectedId: m,
|
|
2149
|
-
totalLabel:
|
|
2149
|
+
totalLabel: _.total_spending
|
|
2150
2150
|
}
|
|
2151
2151
|
),
|
|
2152
2152
|
/* @__PURE__ */ e(
|
|
2153
2153
|
no,
|
|
2154
2154
|
{
|
|
2155
|
-
data:
|
|
2155
|
+
data: v,
|
|
2156
2156
|
onSelected: x,
|
|
2157
2157
|
selectedId: m
|
|
2158
2158
|
}
|
|
@@ -2163,7 +2163,7 @@ const zo = ({ total: t }) => {
|
|
|
2163
2163
|
]
|
|
2164
2164
|
}
|
|
2165
2165
|
) : /* @__PURE__ */ e(
|
|
2166
|
-
|
|
2166
|
+
Fe,
|
|
2167
2167
|
{
|
|
2168
2168
|
header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
|
|
2169
2169
|
icon: "donut_small",
|
|
@@ -2183,12 +2183,12 @@ const zo = ({ total: t }) => {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
)
|
|
2185
2185
|
] });
|
|
2186
|
-
}, br =
|
|
2186
|
+
}, br = w(yr), fr = ({
|
|
2187
2187
|
drawerFor: t,
|
|
2188
2188
|
isOpen: o,
|
|
2189
2189
|
onClose: n
|
|
2190
2190
|
}) => {
|
|
2191
|
-
const { finstrong: r } =
|
|
2191
|
+
const { finstrong: r } = C(), a = {
|
|
2192
2192
|
spendLessThanYouMake: {
|
|
2193
2193
|
title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2194
2194
|
description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
@@ -2254,21 +2254,21 @@ const zo = ({ total: t }) => {
|
|
|
2254
2254
|
onClose: n,
|
|
2255
2255
|
stickyComponent: a.stickyComponent,
|
|
2256
2256
|
title: a.title,
|
|
2257
|
-
children: /* @__PURE__ */ e(
|
|
2257
|
+
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: a.content })
|
|
2258
2258
|
}
|
|
2259
2259
|
);
|
|
2260
|
-
}, xr =
|
|
2260
|
+
}, xr = w(fr), Ce = ({
|
|
2261
2261
|
drawerFor: t,
|
|
2262
2262
|
title: o,
|
|
2263
2263
|
description: n,
|
|
2264
2264
|
cardState: r = "MISSING"
|
|
2265
2265
|
}) => {
|
|
2266
|
-
const { finstrong: s } =
|
|
2266
|
+
const { finstrong: s } = C(), [a, l] = h.useState(!1), c = (d) => {
|
|
2267
2267
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), l(!0));
|
|
2268
2268
|
};
|
|
2269
|
-
return /* @__PURE__ */ i(
|
|
2269
|
+
return /* @__PURE__ */ i(H, { children: [
|
|
2270
2270
|
/* @__PURE__ */ i(
|
|
2271
|
-
|
|
2271
|
+
p,
|
|
2272
2272
|
{
|
|
2273
2273
|
"aria-label": `${s.key_indicators_open} ${o}`,
|
|
2274
2274
|
onClick: () => l(!0),
|
|
@@ -2287,12 +2287,12 @@ const zo = ({ total: t }) => {
|
|
|
2287
2287
|
},
|
|
2288
2288
|
tabIndex: 0,
|
|
2289
2289
|
children: [
|
|
2290
|
-
/* @__PURE__ */ i(
|
|
2291
|
-
/* @__PURE__ */ i(
|
|
2292
|
-
/* @__PURE__ */ e(
|
|
2293
|
-
/* @__PURE__ */ e(
|
|
2290
|
+
/* @__PURE__ */ i(p, { sx: { gap: 8, minWidth: 0 }, children: [
|
|
2291
|
+
/* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
2292
|
+
/* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body1", children: o }),
|
|
2293
|
+
/* @__PURE__ */ e(We, { status: r })
|
|
2294
2294
|
] }),
|
|
2295
|
-
/* @__PURE__ */ e(
|
|
2295
|
+
/* @__PURE__ */ e(I, { color: "secondary", variant: "subtitle2", children: n })
|
|
2296
2296
|
] }),
|
|
2297
2297
|
/* @__PURE__ */ e(Z, { color: "secondary", size: 24 })
|
|
2298
2298
|
]
|
|
@@ -2308,16 +2308,16 @@ const zo = ({ total: t }) => {
|
|
|
2308
2308
|
)
|
|
2309
2309
|
] });
|
|
2310
2310
|
}, Sr = () => {
|
|
2311
|
-
const { finstrong: t } =
|
|
2311
|
+
const { finstrong: t } = C(), { key_indicators_spend: o } = t, { healthScore: n } = F(), r = (l) => {
|
|
2312
2312
|
const c = xt(l), d = {
|
|
2313
2313
|
GOOD: o.ratio_good_description,
|
|
2314
2314
|
FAIR: o.ratio_fair_description,
|
|
2315
2315
|
OFF_TRACK: o.ratio_off_track_description,
|
|
2316
2316
|
MISSING: o.ratio_missing_description
|
|
2317
|
-
},
|
|
2317
|
+
}, _ = c === "MISSING" ? d[c] : K(d[c], l);
|
|
2318
2318
|
return {
|
|
2319
2319
|
cardState: c,
|
|
2320
|
-
description:
|
|
2320
|
+
description: _,
|
|
2321
2321
|
title: o.ratio_card_title
|
|
2322
2322
|
};
|
|
2323
2323
|
}, { spendToIncomeRatio: s, spendFeeCount: a } = h.useMemo(() => {
|
|
@@ -2332,57 +2332,57 @@ const zo = ({ total: t }) => {
|
|
|
2332
2332
|
o,
|
|
2333
2333
|
t
|
|
2334
2334
|
]);
|
|
2335
|
-
return /* @__PURE__ */ i(
|
|
2335
|
+
return /* @__PURE__ */ i(p, { sx: { gap: 24, p: 8, pt: 24 }, children: [
|
|
2336
2336
|
/* @__PURE__ */ e(
|
|
2337
|
-
|
|
2337
|
+
Ce,
|
|
2338
2338
|
{
|
|
2339
2339
|
cardState: s.cardState,
|
|
2340
2340
|
description: s.description,
|
|
2341
|
-
drawerFor:
|
|
2341
|
+
drawerFor: ue.SpendLessThanYouMake,
|
|
2342
2342
|
title: s.title
|
|
2343
2343
|
}
|
|
2344
2344
|
),
|
|
2345
2345
|
/* @__PURE__ */ e(
|
|
2346
|
-
|
|
2346
|
+
Ce,
|
|
2347
2347
|
{
|
|
2348
2348
|
cardState: a.cardState,
|
|
2349
2349
|
description: a.description,
|
|
2350
|
-
drawerFor:
|
|
2350
|
+
drawerFor: ue.PayBillsOnTime,
|
|
2351
2351
|
title: a.title
|
|
2352
2352
|
}
|
|
2353
2353
|
)
|
|
2354
2354
|
] });
|
|
2355
|
-
}, Cr =
|
|
2356
|
-
const { healthScore: t } =
|
|
2357
|
-
const d = bt(c),
|
|
2355
|
+
}, Cr = w(Sr), vr = () => {
|
|
2356
|
+
const { healthScore: t } = F(), { finstrong: o } = C(), { key_indicators_save: n } = o, r = (c) => {
|
|
2357
|
+
const d = bt(c), _ = {
|
|
2358
2358
|
GOOD: n.days_of_cash_good_description,
|
|
2359
2359
|
FAIR: n.days_of_cash_fair_description,
|
|
2360
2360
|
OFF_TRACK: n.days_of_cash_off_track_description,
|
|
2361
2361
|
MISSING: n.days_of_cash_missing_description
|
|
2362
|
-
}, u = d === "MISSING" ?
|
|
2362
|
+
}, u = d === "MISSING" ? _[d] : K(_[d], c);
|
|
2363
2363
|
return {
|
|
2364
2364
|
cardState: d,
|
|
2365
2365
|
description: u,
|
|
2366
2366
|
title: n.days_of_cash_title
|
|
2367
2367
|
};
|
|
2368
2368
|
}, s = (c) => {
|
|
2369
|
-
const d = yt(c),
|
|
2369
|
+
const d = yt(c), _ = {
|
|
2370
2370
|
GOOD: n.emergency_savings_good_description,
|
|
2371
2371
|
FAIR: n.emergency_savings_fair_description,
|
|
2372
2372
|
OFF_TRACK: n.emergency_savings_off_track_description,
|
|
2373
2373
|
MISSING: n.emergency_savings_missing_description
|
|
2374
2374
|
};
|
|
2375
2375
|
let u;
|
|
2376
|
-
return d === "FAIR" && c !== null ? u =
|
|
2377
|
-
|
|
2376
|
+
return d === "FAIR" && c !== null ? u = K(
|
|
2377
|
+
_[d],
|
|
2378
2378
|
W(c, "0,0.00")
|
|
2379
|
-
) : u =
|
|
2379
|
+
) : u = _[d], {
|
|
2380
2380
|
cardState: d,
|
|
2381
2381
|
description: u,
|
|
2382
2382
|
title: n.emergency_savings_title
|
|
2383
2383
|
};
|
|
2384
2384
|
}, { daysOfCashOnHand: a, emergencySavings: l } = h.useMemo(() => {
|
|
2385
|
-
const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c),
|
|
2385
|
+
const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c), _ = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = s(_);
|
|
2386
2386
|
return { daysOfCashOnHand: d, emergencySavings: u };
|
|
2387
2387
|
}, [
|
|
2388
2388
|
t.months_of_cash_on_hand,
|
|
@@ -2390,83 +2390,83 @@ const zo = ({ total: t }) => {
|
|
|
2390
2390
|
n,
|
|
2391
2391
|
o
|
|
2392
2392
|
]);
|
|
2393
|
-
return /* @__PURE__ */ i(
|
|
2393
|
+
return /* @__PURE__ */ i(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2394
2394
|
/* @__PURE__ */ e(
|
|
2395
|
-
|
|
2395
|
+
Ce,
|
|
2396
2396
|
{
|
|
2397
2397
|
cardState: a.cardState,
|
|
2398
2398
|
description: a.description,
|
|
2399
|
-
drawerFor:
|
|
2399
|
+
drawerFor: ue.SaveEnoughToLiveOn,
|
|
2400
2400
|
title: a.title
|
|
2401
2401
|
}
|
|
2402
2402
|
),
|
|
2403
2403
|
/* @__PURE__ */ e(
|
|
2404
|
-
|
|
2404
|
+
Ce,
|
|
2405
2405
|
{
|
|
2406
2406
|
cardState: l.cardState,
|
|
2407
2407
|
description: l.description,
|
|
2408
|
-
drawerFor:
|
|
2408
|
+
drawerFor: ue.MaintainEmergencySavings,
|
|
2409
2409
|
title: l.title
|
|
2410
2410
|
}
|
|
2411
2411
|
)
|
|
2412
2412
|
] });
|
|
2413
|
-
}, wr =
|
|
2414
|
-
const { healthScore: t } =
|
|
2415
|
-
const
|
|
2413
|
+
}, wr = w(vr), kr = () => {
|
|
2414
|
+
const { healthScore: t } = F(), { finstrong: o } = C(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (d) => {
|
|
2415
|
+
const _ = ft(d), u = {
|
|
2416
2416
|
GOOD: n.manage_debit_good_description,
|
|
2417
2417
|
FAIR: n.manage_debit_fair_description,
|
|
2418
2418
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
2419
2419
|
MISSING: n.manage_debit_missing_description
|
|
2420
|
-
}, m =
|
|
2420
|
+
}, m = _ === "FAIR" || _ === "OFF_TRACK" ? K(u[_], d) : u[_];
|
|
2421
2421
|
return {
|
|
2422
|
-
cardState:
|
|
2422
|
+
cardState: _,
|
|
2423
2423
|
description: m,
|
|
2424
2424
|
title: n.manage_debit_title
|
|
2425
2425
|
};
|
|
2426
2426
|
}, a = (d) => {
|
|
2427
|
-
const
|
|
2427
|
+
const _ = gt(d), u = {
|
|
2428
2428
|
GOOD: n.credit_score_good_description,
|
|
2429
2429
|
FAIR: n.credit_score_fair_description,
|
|
2430
2430
|
OFF_TRACK: n.credit_score_off_track_description,
|
|
2431
2431
|
MISSING: n.credit_score_missing_description
|
|
2432
|
-
}, m =
|
|
2432
|
+
}, m = _ === "MISSING" ? u[_] : K(u[_], d);
|
|
2433
2433
|
return {
|
|
2434
|
-
cardState:
|
|
2434
|
+
cardState: _,
|
|
2435
2435
|
description: m,
|
|
2436
2436
|
title: n.credit_score_title
|
|
2437
2437
|
};
|
|
2438
2438
|
}, { manageDebtStatus: l, creditScoreStatus: c } = h.useMemo(() => {
|
|
2439
|
-
const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null,
|
|
2439
|
+
const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, _ = s(d), u = a(r.credit_score || null);
|
|
2440
2440
|
return {
|
|
2441
|
-
manageDebtStatus:
|
|
2441
|
+
manageDebtStatus: _,
|
|
2442
2442
|
creditScoreStatus: u
|
|
2443
2443
|
};
|
|
2444
2444
|
}, [t.debt_to_income_ratio, r.credit_score, n, o]);
|
|
2445
|
-
return /* @__PURE__ */ i(
|
|
2445
|
+
return /* @__PURE__ */ i(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2446
2446
|
/* @__PURE__ */ e(
|
|
2447
|
-
|
|
2447
|
+
Ce,
|
|
2448
2448
|
{
|
|
2449
2449
|
cardState: l.cardState,
|
|
2450
2450
|
description: l.description,
|
|
2451
|
-
drawerFor:
|
|
2451
|
+
drawerFor: ue.HaveManageableDebt,
|
|
2452
2452
|
title: l.title
|
|
2453
2453
|
}
|
|
2454
2454
|
),
|
|
2455
2455
|
/* @__PURE__ */ e(
|
|
2456
|
-
|
|
2456
|
+
Ce,
|
|
2457
2457
|
{
|
|
2458
2458
|
cardState: c.cardState,
|
|
2459
2459
|
description: c.description,
|
|
2460
|
-
drawerFor:
|
|
2460
|
+
drawerFor: ue.HaveAGoodCreditScore,
|
|
2461
2461
|
title: c.title
|
|
2462
2462
|
}
|
|
2463
2463
|
)
|
|
2464
2464
|
] });
|
|
2465
|
-
}, Mr =
|
|
2466
|
-
const [t, o] = h.useState(0), { finstrong: n } =
|
|
2467
|
-
return /* @__PURE__ */ i(
|
|
2465
|
+
}, Mr = w(kr), Dr = () => {
|
|
2466
|
+
const [t, o] = h.useState(0), { finstrong: n } = C();
|
|
2467
|
+
return /* @__PURE__ */ i(H, { children: [
|
|
2468
2468
|
/* @__PURE__ */ i(
|
|
2469
|
-
|
|
2469
|
+
qe,
|
|
2470
2470
|
{
|
|
2471
2471
|
"aria-label": "Key Indicators",
|
|
2472
2472
|
centered: !0,
|
|
@@ -2483,7 +2483,7 @@ const zo = ({ total: t }) => {
|
|
|
2483
2483
|
variant: "fullWidth",
|
|
2484
2484
|
children: [
|
|
2485
2485
|
/* @__PURE__ */ e(
|
|
2486
|
-
|
|
2486
|
+
de,
|
|
2487
2487
|
{
|
|
2488
2488
|
"aria-controls": "spend-details-tabpanel-0",
|
|
2489
2489
|
icon: /* @__PURE__ */ e(ut, { sx: { mr: 8 } }),
|
|
@@ -2494,7 +2494,7 @@ const zo = ({ total: t }) => {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
),
|
|
2496
2496
|
/* @__PURE__ */ e(
|
|
2497
|
-
|
|
2497
|
+
de,
|
|
2498
2498
|
{
|
|
2499
2499
|
"aria-controls": "save-details-tabpanel-1",
|
|
2500
2500
|
icon: /* @__PURE__ */ e(dn, { sx: { mr: 8 } }),
|
|
@@ -2505,7 +2505,7 @@ const zo = ({ total: t }) => {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
),
|
|
2507
2507
|
/* @__PURE__ */ e(
|
|
2508
|
-
|
|
2508
|
+
de,
|
|
2509
2509
|
{
|
|
2510
2510
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2511
2511
|
icon: /* @__PURE__ */ e(pn, { sx: { mr: 8 } }),
|
|
@@ -2518,17 +2518,17 @@ const zo = ({ total: t }) => {
|
|
|
2518
2518
|
]
|
|
2519
2519
|
}
|
|
2520
2520
|
),
|
|
2521
|
-
/* @__PURE__ */ e(
|
|
2522
|
-
/* @__PURE__ */ e(
|
|
2523
|
-
/* @__PURE__ */ e(
|
|
2521
|
+
/* @__PURE__ */ e(pe, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(Cr, {}) }),
|
|
2522
|
+
/* @__PURE__ */ e(pe, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(wr, {}) }),
|
|
2523
|
+
/* @__PURE__ */ e(pe, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Mr, {}) })
|
|
2524
2524
|
] });
|
|
2525
|
-
}, Ir =
|
|
2526
|
-
const { finstrong: o } =
|
|
2527
|
-
return n ? /* @__PURE__ */ i(
|
|
2525
|
+
}, Ir = w(Dr), Tr = ({ onClick: t }) => {
|
|
2526
|
+
const { finstrong: o } = C(), { isCopyLoaded: n } = J();
|
|
2527
|
+
return n ? /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2528
2528
|
/* @__PURE__ */ e(_n, { size: 48 }),
|
|
2529
|
-
/* @__PURE__ */ i(
|
|
2530
|
-
/* @__PURE__ */ e(
|
|
2531
|
-
/* @__PURE__ */ e(
|
|
2529
|
+
/* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2530
|
+
/* @__PURE__ */ e(V, { children: o.missing_data_title }),
|
|
2531
|
+
/* @__PURE__ */ e(I, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
|
|
2532
2532
|
] }),
|
|
2533
2533
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
2534
2534
|
P,
|
|
@@ -2547,7 +2547,7 @@ const zo = ({ total: t }) => {
|
|
|
2547
2547
|
}
|
|
2548
2548
|
) })
|
|
2549
2549
|
] }) : /* @__PURE__ */ e(U, {});
|
|
2550
|
-
}, Ar =
|
|
2550
|
+
}, Ar = w(Tr), Or = ({
|
|
2551
2551
|
firstDay: t,
|
|
2552
2552
|
frequency: o,
|
|
2553
2553
|
secondDay: n,
|
|
@@ -2558,17 +2558,17 @@ const zo = ({ total: t }) => {
|
|
|
2558
2558
|
setSecondDay: c,
|
|
2559
2559
|
transaction: d
|
|
2560
2560
|
}) => {
|
|
2561
|
-
const { finstrong:
|
|
2561
|
+
const { finstrong: _ } = C();
|
|
2562
2562
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2563
|
-
/* @__PURE__ */ i(
|
|
2563
|
+
/* @__PURE__ */ i(p, { children: [
|
|
2564
2564
|
!!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u, m, b) => {
|
|
2565
2565
|
if (m.guid === d.guid) return u;
|
|
2566
|
-
const
|
|
2566
|
+
const v = Nn(b, r), x = jn(b, r);
|
|
2567
2567
|
return u.push(
|
|
2568
2568
|
/* @__PURE__ */ i(h.Fragment, { children: [
|
|
2569
|
-
|
|
2569
|
+
v && /* @__PURE__ */ e(Kn, { children: Mt(m.date) }),
|
|
2570
2570
|
/* @__PURE__ */ e(Vn, { transaction: m }),
|
|
2571
|
-
/* @__PURE__ */ e(
|
|
2571
|
+
/* @__PURE__ */ e(_e, { sx: { ml: x ? 44 : 0 } })
|
|
2572
2572
|
] }, m.guid)
|
|
2573
2573
|
), u;
|
|
2574
2574
|
}, []) }),
|
|
@@ -2591,12 +2591,12 @@ const zo = ({ total: t }) => {
|
|
|
2591
2591
|
fullWidth: !0,
|
|
2592
2592
|
onClick: () => s({ step: R.MonthlyIncome, type: "main" }),
|
|
2593
2593
|
startIcon: /* @__PURE__ */ e(ht, {}),
|
|
2594
|
-
children:
|
|
2594
|
+
children: _.onboarding_add_more_income
|
|
2595
2595
|
}
|
|
2596
2596
|
) })
|
|
2597
2597
|
] });
|
|
2598
|
-
}, Rr =
|
|
2599
|
-
const { finstrong: n } =
|
|
2598
|
+
}, Rr = w(Or), Lr = ({ selectedDate: t, setSelectedDate: o }) => {
|
|
2599
|
+
const { finstrong: n } = C(), r = E(), s = (a) => {
|
|
2600
2600
|
o(Math.floor(new Date(a).getTime() / 1e3));
|
|
2601
2601
|
};
|
|
2602
2602
|
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
@@ -2609,13 +2609,13 @@ const zo = ({ total: t }) => {
|
|
|
2609
2609
|
nextIconButton: {
|
|
2610
2610
|
sx: {
|
|
2611
2611
|
color: "primary.main",
|
|
2612
|
-
"&:hover": { bgcolor:
|
|
2612
|
+
"&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
|
|
2613
2613
|
}
|
|
2614
2614
|
},
|
|
2615
2615
|
previousIconButton: {
|
|
2616
2616
|
sx: {
|
|
2617
2617
|
color: "primary.main",
|
|
2618
|
-
"&:hover": { bgcolor:
|
|
2618
|
+
"&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
},
|
|
@@ -2623,16 +2623,16 @@ const zo = ({ total: t }) => {
|
|
|
2623
2623
|
width: "100%",
|
|
2624
2624
|
"& .MuiIconButton-edgeEnd": {
|
|
2625
2625
|
color: "primary.main",
|
|
2626
|
-
"&:hover": { bgcolor:
|
|
2626
|
+
"&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
|
|
2627
2627
|
}
|
|
2628
2628
|
},
|
|
2629
2629
|
value: t ? new Date(t * 1e3) : null
|
|
2630
2630
|
}
|
|
2631
2631
|
) }) });
|
|
2632
|
-
}, Fr =
|
|
2633
|
-
const { finstrong: n } =
|
|
2632
|
+
}, Fr = w(Lr), Br = ({ creditScore: t, setCreditScore: o }) => {
|
|
2633
|
+
const { finstrong: n } = C(), r = !isNaN(t);
|
|
2634
2634
|
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2635
|
-
|
|
2635
|
+
Le,
|
|
2636
2636
|
{
|
|
2637
2637
|
error: !r,
|
|
2638
2638
|
fullWidth: !0,
|
|
@@ -2646,8 +2646,8 @@ const zo = ({ total: t }) => {
|
|
|
2646
2646
|
value: r ? t : ""
|
|
2647
2647
|
}
|
|
2648
2648
|
) });
|
|
2649
|
-
}, Pr =
|
|
2650
|
-
/* @__PURE__ */ e(
|
|
2649
|
+
}, Pr = w(Br), Et = ({ value: t, completeCopy: o }) => /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
2650
|
+
/* @__PURE__ */ e(p, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
|
|
2651
2651
|
M,
|
|
2652
2652
|
{
|
|
2653
2653
|
sx: {
|
|
@@ -2659,7 +2659,7 @@ const zo = ({ total: t }) => {
|
|
|
2659
2659
|
},
|
|
2660
2660
|
r
|
|
2661
2661
|
)) }),
|
|
2662
|
-
/* @__PURE__ */ i(
|
|
2662
|
+
/* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "body2", children: [
|
|
2663
2663
|
t / 4 * 100,
|
|
2664
2664
|
"% ",
|
|
2665
2665
|
o
|
|
@@ -2669,24 +2669,24 @@ const zo = ({ total: t }) => {
|
|
|
2669
2669
|
primaryText: o,
|
|
2670
2670
|
secondaryText: n,
|
|
2671
2671
|
value: r
|
|
2672
|
-
}) => /* @__PURE__ */ i(
|
|
2673
|
-
/* @__PURE__ */ i(
|
|
2674
|
-
/* @__PURE__ */ e(
|
|
2675
|
-
/* @__PURE__ */ e(
|
|
2672
|
+
}) => /* @__PURE__ */ i(p, { sx: { gap: 20, p: 24 }, children: [
|
|
2673
|
+
/* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
2674
|
+
/* @__PURE__ */ e(V, { children: o }),
|
|
2675
|
+
/* @__PURE__ */ e(I, { variant: "subtitle1", children: n })
|
|
2676
2676
|
] }),
|
|
2677
2677
|
/* @__PURE__ */ e(Et, { completeCopy: t, value: r })
|
|
2678
2678
|
] }), lt = {
|
|
2679
2679
|
step: R.ConnectAccounts,
|
|
2680
2680
|
type: "main"
|
|
2681
2681
|
}, $r = ({ isOpen: t, onClose: o }) => {
|
|
2682
|
-
const { visibleAccounts: n } =
|
|
2682
|
+
const { visibleAccounts: n } = ve(), { calculateHealthScore: r } = F(), { finstrong: s } = C(), { addRepeatingTransaction: a, setDateRange: l } = Ye(), { filter: c, setFilter: d, transactions: _ } = Rn(), { user: u, userProfile: m, updateUser: b, updateUserProfile: v } = ee(), [x, S] = h.useState(u.credit_score || 0), [f, k] = h.useState(
|
|
2683
2683
|
lt
|
|
2684
|
-
), [g, y] = h.useState(1), [
|
|
2684
|
+
), [g, y] = h.useState(1), [D, $] = h.useState(At.EveryMonth), [O, z] = h.useState([]), [L, N] = h.useState(!1), [he, me] = h.useState(!1), [X, te] = h.useState(u.birthday), [ae, q] = h.useState(15), [j, ie] = h.useState("");
|
|
2685
2685
|
h.useEffect(() => {
|
|
2686
2686
|
l({ start: Dt(st()), end: It(st()) });
|
|
2687
2687
|
}, []), h.useEffect(() => {
|
|
2688
2688
|
d({
|
|
2689
|
-
accounts: n.map((
|
|
2689
|
+
accounts: n.map((A) => A.guid),
|
|
2690
2690
|
dateRange: {
|
|
2691
2691
|
start: ao(/* @__PURE__ */ new Date(), 90),
|
|
2692
2692
|
end: /* @__PURE__ */ new Date()
|
|
@@ -2694,27 +2694,27 @@ const zo = ({ total: t }) => {
|
|
|
2694
2694
|
custom: ct
|
|
2695
2695
|
});
|
|
2696
2696
|
}, [n]);
|
|
2697
|
-
const
|
|
2698
|
-
() =>
|
|
2699
|
-
[
|
|
2700
|
-
),
|
|
2697
|
+
const se = h.useMemo(
|
|
2698
|
+
() => _.find((A) => A.guid === j),
|
|
2699
|
+
[j, _]
|
|
2700
|
+
), ge = h.useMemo(() => ({
|
|
2701
2701
|
[R.ConnectAccounts]: !0,
|
|
2702
|
-
[R.MonthlyIncome]: !!
|
|
2703
|
-
[R.Birthday]: !!u.birthday || !!
|
|
2702
|
+
[R.MonthlyIncome]: !!j,
|
|
2703
|
+
[R.Birthday]: !!u.birthday || !!X,
|
|
2704
2704
|
[R.CreditScore]: !!u.credit_score || !!x
|
|
2705
|
-
})[f.step], [x, f,
|
|
2706
|
-
const { step:
|
|
2705
|
+
})[f.step], [x, f, X, j, u]), G = n.length > 0, ye = h.useMemo(() => {
|
|
2706
|
+
const { step: A } = f;
|
|
2707
2707
|
let B = 0;
|
|
2708
|
-
return
|
|
2709
|
-
}, [f.step,
|
|
2708
|
+
return A >= R.MonthlyIncome && G && B++, A >= R.Birthday && O.length && B++, A >= R.CreditScore && (u.birthday || u.credit_score) && B++, B;
|
|
2709
|
+
}, [f.step, G, O.length, u.birthday, u.credit_score]), ze = (A) => {
|
|
2710
2710
|
d({
|
|
2711
2711
|
...c,
|
|
2712
|
-
custom: (B) =>
|
|
2712
|
+
custom: (B) => A ? co(B, A) : ct(B)
|
|
2713
2713
|
});
|
|
2714
|
-
},
|
|
2714
|
+
}, Ge = {
|
|
2715
2715
|
[R.ConnectAccounts]: {
|
|
2716
|
-
main:
|
|
2717
|
-
mainActionContent:
|
|
2716
|
+
main: G ? /* @__PURE__ */ e(Pt, { shouldShowBalance: !1 }) : null,
|
|
2717
|
+
mainActionContent: G ? s.onboarding_next : s.onboarding_add_accounts,
|
|
2718
2718
|
primaryText: s.connect_your_accounts,
|
|
2719
2719
|
secondaryText: s.onboarding_connect_your_accounts_secondary
|
|
2720
2720
|
},
|
|
@@ -2723,29 +2723,29 @@ const zo = ({ total: t }) => {
|
|
|
2723
2723
|
Rr,
|
|
2724
2724
|
{
|
|
2725
2725
|
firstDay: g,
|
|
2726
|
-
frequency:
|
|
2727
|
-
incomeTransactions:
|
|
2728
|
-
secondDay:
|
|
2729
|
-
setCurrentStep: (
|
|
2730
|
-
|
|
2731
|
-
if (B.some((
|
|
2732
|
-
const
|
|
2733
|
-
return
|
|
2726
|
+
frequency: D,
|
|
2727
|
+
incomeTransactions: O,
|
|
2728
|
+
secondDay: ae,
|
|
2729
|
+
setCurrentStep: (A) => {
|
|
2730
|
+
k(A), z((B) => {
|
|
2731
|
+
if (B.some((ce) => ce.guid === j)) return B.filter((ce) => ce.guid !== j);
|
|
2732
|
+
const Ae = _.find((ce) => ce.guid === j);
|
|
2733
|
+
return Ae ? [...B, { ...Ae, firstDay: g, frequency: D, secondDay: ae }] : B;
|
|
2734
2734
|
});
|
|
2735
2735
|
},
|
|
2736
2736
|
setFirstDay: y,
|
|
2737
2737
|
setFrequency: $,
|
|
2738
2738
|
setSecondDay: q,
|
|
2739
|
-
transaction:
|
|
2739
|
+
transaction: se
|
|
2740
2740
|
}
|
|
2741
2741
|
),
|
|
2742
2742
|
detailActionContent: s.onboarding_confirm_income,
|
|
2743
2743
|
main: /* @__PURE__ */ e(
|
|
2744
2744
|
so,
|
|
2745
2745
|
{
|
|
2746
|
-
onSearch:
|
|
2747
|
-
onSelected: (
|
|
2748
|
-
|
|
2746
|
+
onSearch: ze,
|
|
2747
|
+
onSelected: (A) => {
|
|
2748
|
+
k({ step: R.MonthlyIncome, type: "detail" }), ie(A);
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
2751
|
),
|
|
@@ -2754,7 +2754,7 @@ const zo = ({ total: t }) => {
|
|
|
2754
2754
|
secondaryText: s.onboarding_add_income_secondary
|
|
2755
2755
|
},
|
|
2756
2756
|
[R.Birthday]: {
|
|
2757
|
-
main: /* @__PURE__ */ e(Fr, { selectedDate:
|
|
2757
|
+
main: /* @__PURE__ */ e(Fr, { selectedDate: X, setSelectedDate: te }),
|
|
2758
2758
|
mainActionContent: s.onboarding_next,
|
|
2759
2759
|
primaryText: s.onboarding_birthday_primary,
|
|
2760
2760
|
secondaryText: s.onboarding_birthday_secondary
|
|
@@ -2765,56 +2765,56 @@ const zo = ({ total: t }) => {
|
|
|
2765
2765
|
primaryText: s.onboarding_credit_score_primary,
|
|
2766
2766
|
secondaryText: s.onboarding_credit_score_secondary
|
|
2767
2767
|
}
|
|
2768
|
-
},
|
|
2769
|
-
|
|
2768
|
+
}, Ie = () => {
|
|
2769
|
+
k(lt), N(!1), ie(""), o();
|
|
2770
2770
|
}, Ze = async () => {
|
|
2771
|
-
|
|
2771
|
+
N(!0), await Nt(O), await r(), await v({ ...m, has_completed_finstrong_onboarding: !0 }), Ie();
|
|
2772
2772
|
}, zt = () => {
|
|
2773
2773
|
if (f.step === R.CreditScore) {
|
|
2774
2774
|
Ze();
|
|
2775
2775
|
return;
|
|
2776
2776
|
}
|
|
2777
|
-
|
|
2777
|
+
k({ step: f.step + 1, type: "main" });
|
|
2778
2778
|
}, Gt = () => {
|
|
2779
|
-
const { step:
|
|
2780
|
-
switch (
|
|
2779
|
+
const { step: A } = f, B = A + 1;
|
|
2780
|
+
switch (A) {
|
|
2781
2781
|
case R.Birthday:
|
|
2782
|
-
|
|
2782
|
+
X && X !== u.birthday && b({ ...u, birthday: X });
|
|
2783
2783
|
break;
|
|
2784
2784
|
case R.CreditScore:
|
|
2785
2785
|
x && x !== u.credit_score && b({ ...u, credit_score: x }), Ze();
|
|
2786
2786
|
return;
|
|
2787
2787
|
case R.MonthlyIncome:
|
|
2788
|
-
|
|
2789
|
-
...
|
|
2790
|
-
{ ...
|
|
2788
|
+
j && O.findIndex(({ guid: fe }) => fe === j) === -1 && z((fe) => [
|
|
2789
|
+
...fe,
|
|
2790
|
+
{ ...se, firstDay: g, frequency: D, secondDay: ae }
|
|
2791
2791
|
]);
|
|
2792
2792
|
break;
|
|
2793
2793
|
case R.ConnectAccounts:
|
|
2794
|
-
if (!
|
|
2795
|
-
|
|
2794
|
+
if (!G) {
|
|
2795
|
+
me(!0);
|
|
2796
2796
|
return;
|
|
2797
2797
|
}
|
|
2798
2798
|
break;
|
|
2799
2799
|
}
|
|
2800
|
-
B in R &&
|
|
2800
|
+
B in R && k({ step: B, type: "main" });
|
|
2801
2801
|
}, Ht = () => {
|
|
2802
|
-
const { step:
|
|
2802
|
+
const { step: A, type: B } = f;
|
|
2803
2803
|
if (B === "detail") {
|
|
2804
|
-
|
|
2804
|
+
k({ step: A, type: "main" });
|
|
2805
2805
|
return;
|
|
2806
2806
|
}
|
|
2807
|
-
if (
|
|
2808
|
-
|
|
2807
|
+
if (A === R.Birthday && O.length) {
|
|
2808
|
+
k({ step: A - 1, type: "detail" });
|
|
2809
2809
|
return;
|
|
2810
2810
|
}
|
|
2811
|
-
|
|
2812
|
-
}, Nt = async (
|
|
2813
|
-
for (const B of
|
|
2811
|
+
A > R.ConnectAccounts && k({ step: A - 1, type: "main" });
|
|
2812
|
+
}, Nt = async (A) => {
|
|
2813
|
+
for (const B of A) {
|
|
2814
2814
|
const {
|
|
2815
|
-
account_guid:
|
|
2816
|
-
amount:
|
|
2817
|
-
date:
|
|
2815
|
+
account_guid: fe,
|
|
2816
|
+
amount: Ae,
|
|
2817
|
+
date: ce,
|
|
2818
2818
|
description: Vt,
|
|
2819
2819
|
feed_description: Yt,
|
|
2820
2820
|
firstDay: Xt,
|
|
@@ -2823,9 +2823,9 @@ const zo = ({ total: t }) => {
|
|
|
2823
2823
|
merchant_guid: Ut,
|
|
2824
2824
|
payee: Qt,
|
|
2825
2825
|
transaction_type: Zt
|
|
2826
|
-
} = B, Jt = zn(Je, ro(
|
|
2827
|
-
account_guid:
|
|
2828
|
-
amount:
|
|
2826
|
+
} = B, Jt = zn(Je, ro(ce)), en = {
|
|
2827
|
+
account_guid: fe,
|
|
2828
|
+
amount: Ae,
|
|
2829
2829
|
created_by: 0,
|
|
2830
2830
|
description: Qt || Vt || Yt,
|
|
2831
2831
|
merchant_guid: Ut,
|
|
@@ -2839,65 +2839,65 @@ const zo = ({ total: t }) => {
|
|
|
2839
2839
|
};
|
|
2840
2840
|
await a(en, B);
|
|
2841
2841
|
}
|
|
2842
|
-
},
|
|
2842
|
+
}, be = Ge[f.step], Te = f.step === R.ConnectAccounts, jt = {
|
|
2843
2843
|
fullWidth: !0,
|
|
2844
|
-
...
|
|
2845
|
-
}, Kt = !
|
|
2844
|
+
...Te && !G && { startIcon: /* @__PURE__ */ e(ht, {}) }
|
|
2845
|
+
}, Kt = !Te || Te && !G;
|
|
2846
2846
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2847
2847
|
/* @__PURE__ */ e(
|
|
2848
|
-
|
|
2848
|
+
oe,
|
|
2849
2849
|
{
|
|
2850
2850
|
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2851
|
-
hasSecondaryAction: !
|
|
2851
|
+
hasSecondaryAction: !Te,
|
|
2852
2852
|
isOpen: t,
|
|
2853
|
-
isPrimaryDisabled: !
|
|
2854
|
-
onClose:
|
|
2853
|
+
isPrimaryDisabled: !ge,
|
|
2854
|
+
onClose: Ie,
|
|
2855
2855
|
onSecondaryAction: Ht,
|
|
2856
2856
|
primaryButtonProps: jt,
|
|
2857
|
-
primaryText:
|
|
2857
|
+
primaryText: be?.mainActionContent,
|
|
2858
2858
|
secondaryColor: "primary",
|
|
2859
2859
|
secondaryText: s.onboarding_back,
|
|
2860
2860
|
title: s.title,
|
|
2861
|
-
...!
|
|
2862
|
-
children: /* @__PURE__ */ i(
|
|
2863
|
-
|
|
2861
|
+
...!L && { onPrimaryAction: Gt },
|
|
2862
|
+
children: /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2863
|
+
L && /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2864
2864
|
/* @__PURE__ */ e("img", { alt: "", src: Ao, style: { minHeight: 100, width: 211 } }),
|
|
2865
|
-
/* @__PURE__ */ e(
|
|
2866
|
-
/* @__PURE__ */ e(
|
|
2865
|
+
/* @__PURE__ */ e(Be, { children: s.onboarding_calculate_primary }),
|
|
2866
|
+
/* @__PURE__ */ e(I, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
|
|
2867
2867
|
] }),
|
|
2868
|
-
|
|
2868
|
+
be && !L && /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2869
2869
|
/* @__PURE__ */ e(
|
|
2870
2870
|
Wr,
|
|
2871
2871
|
{
|
|
2872
2872
|
completeCopy: s.complete,
|
|
2873
|
-
primaryText:
|
|
2874
|
-
secondaryText:
|
|
2875
|
-
value:
|
|
2873
|
+
primaryText: be.primaryText,
|
|
2874
|
+
secondaryText: be.secondaryText,
|
|
2875
|
+
value: ye
|
|
2876
2876
|
}
|
|
2877
2877
|
),
|
|
2878
2878
|
f.type === "main" && /* @__PURE__ */ i(M, { sx: { bgcolor: "background.default" }, children: [
|
|
2879
|
-
|
|
2880
|
-
Kt && /* @__PURE__ */ e(
|
|
2879
|
+
be.main,
|
|
2880
|
+
Kt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(P, { fullWidth: !0, onClick: zt, children: s.onboarding_do_it_later }) })
|
|
2881
2881
|
] }),
|
|
2882
|
-
f.type === "detail" &&
|
|
2882
|
+
f.type === "detail" && be.detail
|
|
2883
2883
|
] })
|
|
2884
2884
|
] })
|
|
2885
2885
|
}
|
|
2886
2886
|
),
|
|
2887
2887
|
/* @__PURE__ */ e(
|
|
2888
|
-
|
|
2888
|
+
re,
|
|
2889
2889
|
{
|
|
2890
|
-
onClose: () =>
|
|
2891
|
-
showConnectWidget:
|
|
2890
|
+
onClose: () => me(!1),
|
|
2891
|
+
showConnectWidget: he,
|
|
2892
2892
|
title: s.connect_more_accounts_button
|
|
2893
2893
|
}
|
|
2894
2894
|
)
|
|
2895
2895
|
] });
|
|
2896
|
-
}, Er =
|
|
2897
|
-
const { finstrong: t } =
|
|
2896
|
+
}, Er = w($r), zr = () => {
|
|
2897
|
+
const { finstrong: t } = C(), [o, n] = h.useState(!1);
|
|
2898
2898
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2899
2899
|
/* @__PURE__ */ i(
|
|
2900
|
-
|
|
2900
|
+
p,
|
|
2901
2901
|
{
|
|
2902
2902
|
sx: {
|
|
2903
2903
|
alignItems: "center",
|
|
@@ -2909,11 +2909,11 @@ const zo = ({ total: t }) => {
|
|
|
2909
2909
|
px: 16
|
|
2910
2910
|
},
|
|
2911
2911
|
children: [
|
|
2912
|
-
/* @__PURE__ */ i(
|
|
2912
|
+
/* @__PURE__ */ i(p, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
|
|
2913
2913
|
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(un, { size: 72 }) }),
|
|
2914
|
-
/* @__PURE__ */ i(
|
|
2915
|
-
/* @__PURE__ */ e(
|
|
2916
|
-
/* @__PURE__ */ e(
|
|
2914
|
+
/* @__PURE__ */ i(p, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2915
|
+
/* @__PURE__ */ e(Be, { children: t.onboarding_title }),
|
|
2916
|
+
/* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
|
|
2917
2917
|
] })
|
|
2918
2918
|
] }),
|
|
2919
2919
|
/* @__PURE__ */ e(P, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
|
|
@@ -2923,11 +2923,11 @@ const zo = ({ total: t }) => {
|
|
|
2923
2923
|
/* @__PURE__ */ e(Er, { isOpen: o, onClose: () => n(!1) })
|
|
2924
2924
|
] });
|
|
2925
2925
|
}, Gr = ({ isOpen: t, onClose: o }) => {
|
|
2926
|
-
const { finstrong: n } =
|
|
2926
|
+
const { finstrong: n } = C(), r = E(), { updateUser: s, user: a } = ee(), { loadPeerScore: l } = F(), [c, d] = h.useState(a.birthday), _ = (m) => {
|
|
2927
2927
|
d(Math.floor(new Date(m).getTime() / 1e3));
|
|
2928
2928
|
};
|
|
2929
2929
|
return /* @__PURE__ */ e(
|
|
2930
|
-
|
|
2930
|
+
oe,
|
|
2931
2931
|
{
|
|
2932
2932
|
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2933
2933
|
isOpen: t,
|
|
@@ -2939,28 +2939,28 @@ const zo = ({ total: t }) => {
|
|
|
2939
2939
|
},
|
|
2940
2940
|
onSecondaryAction: o,
|
|
2941
2941
|
title: n.date_of_birth,
|
|
2942
|
-
children: /* @__PURE__ */ e(
|
|
2942
|
+
children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(ho, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
2943
2943
|
_o,
|
|
2944
2944
|
{
|
|
2945
2945
|
disableFuture: !0,
|
|
2946
|
-
onChange:
|
|
2946
|
+
onChange: _,
|
|
2947
2947
|
slotProps: {
|
|
2948
2948
|
nextIconButton: {
|
|
2949
2949
|
sx: {
|
|
2950
2950
|
color: "primary.main",
|
|
2951
|
-
"&:hover": { bgcolor:
|
|
2951
|
+
"&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
|
|
2952
2952
|
}
|
|
2953
2953
|
},
|
|
2954
2954
|
previousIconButton: {
|
|
2955
2955
|
sx: {
|
|
2956
2956
|
color: "primary.main",
|
|
2957
|
-
"&:hover": { bgcolor:
|
|
2957
|
+
"&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
|
|
2958
2958
|
}
|
|
2959
2959
|
},
|
|
2960
2960
|
switchViewButton: {
|
|
2961
2961
|
sx: {
|
|
2962
2962
|
color: "primary.main",
|
|
2963
|
-
"&:hover": { bgcolor:
|
|
2963
|
+
"&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
2966
2966
|
},
|
|
@@ -2972,7 +2972,7 @@ const zo = ({ total: t }) => {
|
|
|
2972
2972
|
width: "100%",
|
|
2973
2973
|
"& .MuiIconButton-edgeEnd": {
|
|
2974
2974
|
color: "primary.main",
|
|
2975
|
-
"&:hover": { bgcolor:
|
|
2975
|
+
"&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
|
|
2976
2976
|
}
|
|
2977
2977
|
},
|
|
2978
2978
|
value: c ? new Date(c * 1e3) : /* @__PURE__ */ new Date()
|
|
@@ -2980,29 +2980,29 @@ const zo = ({ total: t }) => {
|
|
|
2980
2980
|
) }) })
|
|
2981
2981
|
}
|
|
2982
2982
|
);
|
|
2983
|
-
}, Hr =
|
|
2984
|
-
const { visibleFinstrongAccounts: n } =
|
|
2983
|
+
}, Hr = w(Gr), Nr = ({ isOpen: t, onClose: o }) => {
|
|
2984
|
+
const { visibleFinstrongAccounts: n } = ve(), {
|
|
2985
2985
|
accounts: r,
|
|
2986
2986
|
common: s,
|
|
2987
2987
|
finstrong: a,
|
|
2988
2988
|
recurring: l
|
|
2989
|
-
} =
|
|
2990
|
-
const { repeating_transaction_type: f, transactions:
|
|
2991
|
-
return f === Ot.Income && (
|
|
2992
|
-
}, 0), [u, m] = h.useState(null),
|
|
2989
|
+
} = C(), { repeatingTransactions: c } = Ye(), { user: d } = ee(), _ = c.reduce((x, S) => {
|
|
2990
|
+
const { repeating_transaction_type: f, transactions: k, recurrence_type: g, amount: y } = S;
|
|
2991
|
+
return f === Ot.Income && (k && k.length > 0 || g === At.EveryYear) ? x + y : x;
|
|
2992
|
+
}, 0), [u, m] = h.useState(null), v = [
|
|
2993
2993
|
{
|
|
2994
2994
|
dynamicCopy: a.add_profile_item,
|
|
2995
2995
|
fallbackLabel: a.monthly_income,
|
|
2996
2996
|
icon: /* @__PURE__ */ e(hn, {}),
|
|
2997
|
-
key:
|
|
2997
|
+
key: ne.MonthlyIncome,
|
|
2998
2998
|
label: a.monthly_income,
|
|
2999
|
-
value:
|
|
2999
|
+
value: _
|
|
3000
3000
|
},
|
|
3001
3001
|
{
|
|
3002
3002
|
dynamicCopy: a.add_profile_item,
|
|
3003
3003
|
fallbackLabel: a.date_of_birth,
|
|
3004
3004
|
icon: /* @__PURE__ */ e(mn, {}),
|
|
3005
|
-
key:
|
|
3005
|
+
key: ne.DateOfBirth,
|
|
3006
3006
|
label: a.date_of_birth,
|
|
3007
3007
|
value: d.birthday
|
|
3008
3008
|
},
|
|
@@ -3010,40 +3010,40 @@ const zo = ({ total: t }) => {
|
|
|
3010
3010
|
dynamicCopy: a.add_profile_item,
|
|
3011
3011
|
fallbackLabel: a.credit_score,
|
|
3012
3012
|
icon: /* @__PURE__ */ e(ut, {}),
|
|
3013
|
-
key:
|
|
3013
|
+
key: ne.CreditScore,
|
|
3014
3014
|
label: a.credit_score,
|
|
3015
3015
|
value: d.credit_score
|
|
3016
3016
|
},
|
|
3017
3017
|
{
|
|
3018
3018
|
fallbackLabel: a.connect_your_accounts,
|
|
3019
3019
|
icon: /* @__PURE__ */ e(_t, {}),
|
|
3020
|
-
key:
|
|
3020
|
+
key: ne.Connections,
|
|
3021
3021
|
label: a.connections,
|
|
3022
|
-
value: n.length > 0 ?
|
|
3022
|
+
value: n.length > 0 ? K(
|
|
3023
3023
|
a.connected_account,
|
|
3024
3024
|
String(n.length),
|
|
3025
3025
|
n.length > 1 ? a.accounts : a.account
|
|
3026
3026
|
) : void 0
|
|
3027
3027
|
}
|
|
3028
3028
|
].map((x) => In(x));
|
|
3029
|
-
return /* @__PURE__ */ i(
|
|
3030
|
-
/* @__PURE__ */ i(
|
|
3031
|
-
/* @__PURE__ */ i(
|
|
3032
|
-
/* @__PURE__ */ i(
|
|
3033
|
-
/* @__PURE__ */ e(
|
|
3034
|
-
/* @__PURE__ */ e(
|
|
3029
|
+
return /* @__PURE__ */ i(oe, { isOpen: t, onClose: o, title: a.financial_profile, children: [
|
|
3030
|
+
/* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
3031
|
+
/* @__PURE__ */ i(p, { sx: { gap: 20, p: 24 }, children: [
|
|
3032
|
+
/* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
3033
|
+
/* @__PURE__ */ e(V, { children: a.your_financial_profile }),
|
|
3034
|
+
/* @__PURE__ */ e(I, { children: a.financial_profile_description })
|
|
3035
3035
|
] }),
|
|
3036
3036
|
/* @__PURE__ */ e(
|
|
3037
3037
|
Et,
|
|
3038
3038
|
{
|
|
3039
3039
|
completeCopy: a.complete,
|
|
3040
|
-
value:
|
|
3040
|
+
value: v.reduce((x, S) => x + (S.isComplete ? 1 : 0), 0)
|
|
3041
3041
|
}
|
|
3042
3042
|
)
|
|
3043
3043
|
] }),
|
|
3044
|
-
/* @__PURE__ */ e(Tn, { list:
|
|
3044
|
+
/* @__PURE__ */ e(Tn, { list: v, onClickItem: m }),
|
|
3045
3045
|
/* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
3046
|
-
|
|
3046
|
+
Pe,
|
|
3047
3047
|
{
|
|
3048
3048
|
description: a.connect_more_accounts_to_view_more_accurate_financial_picture,
|
|
3049
3049
|
drawerType: "connectDrawer",
|
|
@@ -3054,27 +3054,27 @@ const zo = ({ total: t }) => {
|
|
|
3054
3054
|
) })
|
|
3055
3055
|
] }),
|
|
3056
3056
|
/* @__PURE__ */ e(
|
|
3057
|
-
|
|
3057
|
+
oe,
|
|
3058
3058
|
{
|
|
3059
|
-
isOpen: u ===
|
|
3059
|
+
isOpen: u === ne.MonthlyIncome,
|
|
3060
3060
|
onClose: () => m(null),
|
|
3061
3061
|
shouldShowHeaderBorders: !1,
|
|
3062
3062
|
title: l.action_title,
|
|
3063
3063
|
children: /* @__PURE__ */ e(uo, {})
|
|
3064
3064
|
}
|
|
3065
3065
|
),
|
|
3066
|
-
/* @__PURE__ */ e(Hr, { isOpen: u ===
|
|
3067
|
-
/* @__PURE__ */ e(Ft, { isOpen: u ===
|
|
3066
|
+
/* @__PURE__ */ e(Hr, { isOpen: u === ne.DateOfBirth, onClose: () => m(null) }),
|
|
3067
|
+
/* @__PURE__ */ e(Ft, { isOpen: u === ne.CreditScore, onClose: () => m(null) }),
|
|
3068
3068
|
/* @__PURE__ */ e(
|
|
3069
3069
|
St,
|
|
3070
3070
|
{
|
|
3071
3071
|
onClose: () => m(null),
|
|
3072
|
-
showConnectionsWidget: u ===
|
|
3072
|
+
showConnectionsWidget: u === ne.Connections,
|
|
3073
3073
|
title: r.manage_connections
|
|
3074
3074
|
}
|
|
3075
3075
|
)
|
|
3076
3076
|
] });
|
|
3077
|
-
}, jr =
|
|
3077
|
+
}, jr = w(Nr), dt = ({
|
|
3078
3078
|
content: t,
|
|
3079
3079
|
islast: o = !1
|
|
3080
3080
|
}) => /* @__PURE__ */ i(yo, { sx: { minHeight: 0 }, children: [
|
|
@@ -3093,21 +3093,21 @@ const zo = ({ total: t }) => {
|
|
|
3093
3093
|
}
|
|
3094
3094
|
)
|
|
3095
3095
|
] }),
|
|
3096
|
-
/* @__PURE__ */ e(xo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(
|
|
3096
|
+
/* @__PURE__ */ e(xo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(I, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
3097
3097
|
] }), Kr = ({ report: t }) => {
|
|
3098
|
-
const { finstrong: o } =
|
|
3098
|
+
const { finstrong: o } = C(), { score_history_drawer_timeline: n } = o, {
|
|
3099
3099
|
health_score_point_difference: r,
|
|
3100
3100
|
newer_credit_score: s,
|
|
3101
3101
|
older_credit_score: a,
|
|
3102
3102
|
older_spend_to_income_ratio: l,
|
|
3103
3103
|
newer_spend_to_income_ratio: c,
|
|
3104
3104
|
older_health_score: d,
|
|
3105
|
-
newer_health_score:
|
|
3105
|
+
newer_health_score: _,
|
|
3106
3106
|
newer_score_calculated_at: u
|
|
3107
|
-
} = t, m = mo(new Date(u), "MMM d"), b = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter",
|
|
3107
|
+
} = t, m = mo(new Date(u), "MMM d"), b = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", v = () => r === 0 ? K(n.stayed_at, d) : r > 0 ? n.less_spending : n.more_spending, x = () => {
|
|
3108
3108
|
if (r === 0) return null;
|
|
3109
|
-
const S = r > 0 ? n.up_from : n.down_from, f =
|
|
3110
|
-
return /* @__PURE__ */ i(
|
|
3109
|
+
const S = r > 0 ? n.up_from : n.down_from, f = K(S, d, _);
|
|
3110
|
+
return /* @__PURE__ */ i(H, { children: [
|
|
3111
3111
|
/* @__PURE__ */ e(
|
|
3112
3112
|
on,
|
|
3113
3113
|
{
|
|
@@ -3119,7 +3119,7 @@ const zo = ({ total: t }) => {
|
|
|
3119
3119
|
f
|
|
3120
3120
|
] });
|
|
3121
3121
|
};
|
|
3122
|
-
return /* @__PURE__ */ i(
|
|
3122
|
+
return /* @__PURE__ */ i(Y, { children: [
|
|
3123
3123
|
/* @__PURE__ */ e(
|
|
3124
3124
|
M,
|
|
3125
3125
|
{
|
|
@@ -3130,13 +3130,13 @@ const zo = ({ total: t }) => {
|
|
|
3130
3130
|
p: 16
|
|
3131
3131
|
},
|
|
3132
3132
|
children: /* @__PURE__ */ i(
|
|
3133
|
-
|
|
3133
|
+
p,
|
|
3134
3134
|
{
|
|
3135
3135
|
flexDirection: "row",
|
|
3136
3136
|
sx: { alignItems: "center", gap: 16, height: 48, width: "100%" },
|
|
3137
3137
|
children: [
|
|
3138
3138
|
/* @__PURE__ */ e(
|
|
3139
|
-
|
|
3139
|
+
p,
|
|
3140
3140
|
{
|
|
3141
3141
|
sx: {
|
|
3142
3142
|
alignItems: "center",
|
|
@@ -3146,12 +3146,12 @@ const zo = ({ total: t }) => {
|
|
|
3146
3146
|
justifyContent: "center",
|
|
3147
3147
|
width: 48
|
|
3148
3148
|
},
|
|
3149
|
-
children: /* @__PURE__ */ e(
|
|
3149
|
+
children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: r > 0 ? `+${r}` : r })
|
|
3150
3150
|
}
|
|
3151
3151
|
),
|
|
3152
|
-
/* @__PURE__ */ i(
|
|
3153
|
-
/* @__PURE__ */ e(
|
|
3154
|
-
/* @__PURE__ */ i(
|
|
3152
|
+
/* @__PURE__ */ i(p, { sx: { gap: 2, width: "80%" }, children: [
|
|
3153
|
+
/* @__PURE__ */ e(T, { fontWeight: 600, variant: "body1", children: v() }),
|
|
3154
|
+
/* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3155
3155
|
m,
|
|
3156
3156
|
" ",
|
|
3157
3157
|
x()
|
|
@@ -3177,17 +3177,17 @@ const zo = ({ total: t }) => {
|
|
|
3177
3177
|
/* @__PURE__ */ e(
|
|
3178
3178
|
dt,
|
|
3179
3179
|
{
|
|
3180
|
-
content:
|
|
3180
|
+
content: K(
|
|
3181
3181
|
n.spend_to_income_description,
|
|
3182
|
-
|
|
3183
|
-
|
|
3182
|
+
Re(l),
|
|
3183
|
+
Re(c)
|
|
3184
3184
|
)
|
|
3185
3185
|
}
|
|
3186
3186
|
),
|
|
3187
3187
|
/* @__PURE__ */ e(
|
|
3188
3188
|
dt,
|
|
3189
3189
|
{
|
|
3190
|
-
content:
|
|
3190
|
+
content: K(
|
|
3191
3191
|
n.credit_score_description,
|
|
3192
3192
|
a,
|
|
3193
3193
|
s
|
|
@@ -3199,15 +3199,15 @@ const zo = ({ total: t }) => {
|
|
|
3199
3199
|
}
|
|
3200
3200
|
) })
|
|
3201
3201
|
] });
|
|
3202
|
-
}, Vr =
|
|
3203
|
-
const n =
|
|
3202
|
+
}, Vr = w(Kr), Yr = ({ isOpen: t, onClose: o }) => {
|
|
3203
|
+
const n = E(), { finstrong: r } = C(), { isCopyLoaded: s, isInitialized: a } = J(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: _ } = F();
|
|
3204
3204
|
if (!s || !a) return /* @__PURE__ */ e(U, {});
|
|
3205
|
-
const u =
|
|
3205
|
+
const u = je(c.health_score || 0, r), m = d.slice().reverse();
|
|
3206
3206
|
return /* @__PURE__ */ e(
|
|
3207
3207
|
Bt,
|
|
3208
3208
|
{
|
|
3209
3209
|
additionalContent: /* @__PURE__ */ e(
|
|
3210
|
-
|
|
3210
|
+
p,
|
|
3211
3211
|
{
|
|
3212
3212
|
sx: {
|
|
3213
3213
|
backgroundColor: "background.paper",
|
|
@@ -3215,7 +3215,7 @@ const zo = ({ total: t }) => {
|
|
|
3215
3215
|
borderColor: "divider"
|
|
3216
3216
|
},
|
|
3217
3217
|
children: /* @__PURE__ */ e(
|
|
3218
|
-
|
|
3218
|
+
Xe,
|
|
3219
3219
|
{
|
|
3220
3220
|
axisColor: n.palette.divider,
|
|
3221
3221
|
baseline: "min",
|
|
@@ -3226,7 +3226,7 @@ const zo = ({ total: t }) => {
|
|
|
3226
3226
|
isGraphClippingXAxis: !0,
|
|
3227
3227
|
labels: [r.key_indicators_label],
|
|
3228
3228
|
margin: { top: 24, bottom: 6, right: 24, left: -17 },
|
|
3229
|
-
peerAverage: Math.round(
|
|
3229
|
+
peerAverage: Math.round(_?.average_health_score?.average_health_score || 0),
|
|
3230
3230
|
showArea: !0,
|
|
3231
3231
|
showAverage: !0,
|
|
3232
3232
|
title: r.peer_average,
|
|
@@ -3240,7 +3240,7 @@ const zo = ({ total: t }) => {
|
|
|
3240
3240
|
loadConnectAccountsCard: !1,
|
|
3241
3241
|
onClose: o,
|
|
3242
3242
|
stickyComponent: /* @__PURE__ */ e(
|
|
3243
|
-
|
|
3243
|
+
p,
|
|
3244
3244
|
{
|
|
3245
3245
|
sx: {
|
|
3246
3246
|
backgroundColor: "background.paper",
|
|
@@ -3248,7 +3248,7 @@ const zo = ({ total: t }) => {
|
|
|
3248
3248
|
pt: 8,
|
|
3249
3249
|
px: 24
|
|
3250
3250
|
},
|
|
3251
|
-
children: /* @__PURE__ */ i(
|
|
3251
|
+
children: /* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
|
|
3252
3252
|
/* @__PURE__ */ e(
|
|
3253
3253
|
Lt,
|
|
3254
3254
|
{
|
|
@@ -3258,33 +3258,33 @@ const zo = ({ total: t }) => {
|
|
|
3258
3258
|
size: "SM"
|
|
3259
3259
|
}
|
|
3260
3260
|
),
|
|
3261
|
-
/* @__PURE__ */ i(
|
|
3262
|
-
/* @__PURE__ */ e(
|
|
3263
|
-
/* @__PURE__ */ e(
|
|
3261
|
+
/* @__PURE__ */ i(p, { sx: { gap: 4 }, children: [
|
|
3262
|
+
/* @__PURE__ */ e(I, { variant: "h3", children: u.status }),
|
|
3263
|
+
/* @__PURE__ */ e(I, { variant: "caption", children: u.description })
|
|
3264
3264
|
] })
|
|
3265
3265
|
] })
|
|
3266
3266
|
}
|
|
3267
3267
|
),
|
|
3268
|
-
children: /* @__PURE__ */ e(
|
|
3268
|
+
children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: m.map((b, v) => /* @__PURE__ */ e(Vr, { report: b }, v)) })
|
|
3269
3269
|
}
|
|
3270
3270
|
);
|
|
3271
|
-
}, Xr =
|
|
3272
|
-
const o =
|
|
3271
|
+
}, Xr = w(Yr), qr = ({ copy: t }) => {
|
|
3272
|
+
const o = E(), n = [
|
|
3273
3273
|
o.palette.chartMono.chartMono5,
|
|
3274
3274
|
o.palette.chartMono.chartMono4,
|
|
3275
3275
|
o.palette.chartMono.chartMono3,
|
|
3276
3276
|
o.palette.chartMono.chartMono2
|
|
3277
3277
|
];
|
|
3278
|
-
return /* @__PURE__ */ i(
|
|
3279
|
-
/* @__PURE__ */ e(
|
|
3278
|
+
return /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
3279
|
+
/* @__PURE__ */ e(p, { sx: { flexDirection: "row", gap: 8, px: 2 }, children: [
|
|
3280
3280
|
{ color: "chartMono.chartMono2", text: t.vulnerable, value: "0-25" },
|
|
3281
3281
|
{ color: "chartMono.chartMono3", text: t.building, value: "26-50" },
|
|
3282
3282
|
{ color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
|
|
3283
3283
|
{ color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
|
|
3284
|
-
].map(({ color: r, text: s, value: a }) => /* @__PURE__ */ i(
|
|
3284
|
+
].map(({ color: r, text: s, value: a }) => /* @__PURE__ */ i(p, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
|
|
3285
3285
|
/* @__PURE__ */ i(M, { children: [
|
|
3286
|
-
/* @__PURE__ */ e(
|
|
3287
|
-
/* @__PURE__ */ i(
|
|
3286
|
+
/* @__PURE__ */ e(I, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: s }),
|
|
3287
|
+
/* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "caption", children: [
|
|
3288
3288
|
"(",
|
|
3289
3289
|
a,
|
|
3290
3290
|
")"
|
|
@@ -3303,8 +3303,8 @@ const zo = ({ total: t }) => {
|
|
|
3303
3303
|
}
|
|
3304
3304
|
}
|
|
3305
3305
|
),
|
|
3306
|
-
/* @__PURE__ */ e(
|
|
3307
|
-
|
|
3306
|
+
/* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((r) => /* @__PURE__ */ i(
|
|
3307
|
+
p,
|
|
3308
3308
|
{
|
|
3309
3309
|
sx: { alignItems: "center", height: 20, justifyContent: "space-between", width: 24 },
|
|
3310
3310
|
children: [
|
|
@@ -3321,7 +3321,7 @@ const zo = ({ total: t }) => {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
}
|
|
3323
3323
|
),
|
|
3324
|
-
/* @__PURE__ */ e(
|
|
3324
|
+
/* @__PURE__ */ e(T, { sx: { color: "text.secondary" }, variant: "tiny", children: r })
|
|
3325
3325
|
]
|
|
3326
3326
|
},
|
|
3327
3327
|
r
|
|
@@ -3329,19 +3329,19 @@ const zo = ({ total: t }) => {
|
|
|
3329
3329
|
] })
|
|
3330
3330
|
] });
|
|
3331
3331
|
}, Ur = ({ isOpen: t, onClose: o }) => {
|
|
3332
|
-
const { finstrong: n } =
|
|
3333
|
-
return r ? /* @__PURE__ */ e(
|
|
3334
|
-
/* @__PURE__ */ i(
|
|
3335
|
-
/* @__PURE__ */ i(
|
|
3336
|
-
/* @__PURE__ */ e(
|
|
3337
|
-
/* @__PURE__ */ e(
|
|
3332
|
+
const { finstrong: n } = C(), { isCopyLoaded: r } = J();
|
|
3333
|
+
return r ? /* @__PURE__ */ e(oe, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
|
|
3334
|
+
/* @__PURE__ */ i(p, { sx: { gap: 20 }, children: [
|
|
3335
|
+
/* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
3336
|
+
/* @__PURE__ */ e(V, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
|
|
3337
|
+
/* @__PURE__ */ e(I, { variant: "subtitle1", children: n.finstrong_freedom_description })
|
|
3338
3338
|
] }),
|
|
3339
3339
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(qr, { copy: n }) })
|
|
3340
3340
|
] }),
|
|
3341
|
-
/* @__PURE__ */ i(
|
|
3342
|
-
/* @__PURE__ */ e(
|
|
3341
|
+
/* @__PURE__ */ i(p, { sx: { gap: 12 }, children: [
|
|
3342
|
+
/* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
|
|
3343
3343
|
/* @__PURE__ */ i(
|
|
3344
|
-
|
|
3344
|
+
He,
|
|
3345
3345
|
{
|
|
3346
3346
|
component: "ol",
|
|
3347
3347
|
sx: {
|
|
@@ -3360,15 +3360,15 @@ const zo = ({ total: t }) => {
|
|
|
3360
3360
|
}
|
|
3361
3361
|
},
|
|
3362
3362
|
children: [
|
|
3363
|
-
/* @__PURE__ */ e(
|
|
3364
|
-
|
|
3363
|
+
/* @__PURE__ */ e(xe, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
|
|
3364
|
+
Se,
|
|
3365
3365
|
{
|
|
3366
3366
|
primary: n.understand_your_habits,
|
|
3367
3367
|
secondary: n.understand_your_habits_description
|
|
3368
3368
|
}
|
|
3369
3369
|
) }),
|
|
3370
|
-
/* @__PURE__ */ e(
|
|
3371
|
-
|
|
3370
|
+
/* @__PURE__ */ e(xe, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
|
|
3371
|
+
Se,
|
|
3372
3372
|
{
|
|
3373
3373
|
primary: n.see_whats_possible,
|
|
3374
3374
|
secondary: n.see_whats_possible_description
|
|
@@ -3378,10 +3378,10 @@ const zo = ({ total: t }) => {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
)
|
|
3380
3380
|
] }),
|
|
3381
|
-
/* @__PURE__ */ i(
|
|
3382
|
-
/* @__PURE__ */ e(
|
|
3381
|
+
/* @__PURE__ */ i(p, { sx: { gap: 4 }, children: [
|
|
3382
|
+
/* @__PURE__ */ e(T, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
|
|
3383
3383
|
/* @__PURE__ */ i(
|
|
3384
|
-
|
|
3384
|
+
He,
|
|
3385
3385
|
{
|
|
3386
3386
|
component: "ol",
|
|
3387
3387
|
sx: {
|
|
@@ -3401,18 +3401,18 @@ const zo = ({ total: t }) => {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
},
|
|
3403
3403
|
children: [
|
|
3404
|
-
/* @__PURE__ */ e(
|
|
3405
|
-
/* @__PURE__ */ e(
|
|
3404
|
+
/* @__PURE__ */ e(xe, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(Se, { secondary: n.we_ask_questions_description_1 }) }),
|
|
3405
|
+
/* @__PURE__ */ e(xe, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(Se, { secondary: n.we_ask_questions_description_2 }) })
|
|
3406
3406
|
]
|
|
3407
3407
|
}
|
|
3408
3408
|
)
|
|
3409
3409
|
] })
|
|
3410
3410
|
] }) }) : /* @__PURE__ */ e(U, {});
|
|
3411
|
-
}, Qr =
|
|
3412
|
-
const [t, o] = h.useState(!1), n =
|
|
3413
|
-
return !l || !c ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(
|
|
3414
|
-
/* @__PURE__ */ i(
|
|
3415
|
-
/* @__PURE__ */ e(
|
|
3411
|
+
}, Qr = w(Ur), Zr = w(() => {
|
|
3412
|
+
const [t, o] = h.useState(!1), n = E(), [r, { width: s }] = Ct(), { finstrong: a } = C(), { isCopyLoaded: l, isInitialized: c } = J(), { healthScore: d, healthScoreChange: _ } = F(), u = n.palette.mode === "dark", m = je(d?.health_score, a);
|
|
3413
|
+
return !l || !c ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
3414
|
+
/* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3415
|
+
/* @__PURE__ */ e(V, { children: a.financial_strength_header }),
|
|
3416
3416
|
/* @__PURE__ */ e(
|
|
3417
3417
|
P,
|
|
3418
3418
|
{
|
|
@@ -3427,7 +3427,7 @@ const zo = ({ total: t }) => {
|
|
|
3427
3427
|
},
|
|
3428
3428
|
variant: "text",
|
|
3429
3429
|
children: /* @__PURE__ */ e(
|
|
3430
|
-
|
|
3430
|
+
T,
|
|
3431
3431
|
{
|
|
3432
3432
|
bold: !0,
|
|
3433
3433
|
sx: {
|
|
@@ -3440,11 +3440,11 @@ const zo = ({ total: t }) => {
|
|
|
3440
3440
|
}
|
|
3441
3441
|
)
|
|
3442
3442
|
] }),
|
|
3443
|
-
/* @__PURE__ */ e(
|
|
3443
|
+
/* @__PURE__ */ e(p, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
|
|
3444
3444
|
Lt,
|
|
3445
3445
|
{
|
|
3446
3446
|
arcRadius: s <= 323 ? 72.5 : 154,
|
|
3447
|
-
footerCenterContent:
|
|
3447
|
+
footerCenterContent: _,
|
|
3448
3448
|
healthScore: d?.health_score || 0,
|
|
3449
3449
|
size: s <= 323 ? "M" : "L"
|
|
3450
3450
|
}
|
|
@@ -3478,14 +3478,14 @@ const zo = ({ total: t }) => {
|
|
|
3478
3478
|
minHeight: 0
|
|
3479
3479
|
}
|
|
3480
3480
|
},
|
|
3481
|
-
children: /* @__PURE__ */ e(
|
|
3481
|
+
children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
|
|
3482
3482
|
}
|
|
3483
3483
|
),
|
|
3484
|
-
/* @__PURE__ */ e(wo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(
|
|
3484
|
+
/* @__PURE__ */ e(wo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(I, { variant: "subtitle1", children: m.scoreContent }) })
|
|
3485
3485
|
]
|
|
3486
3486
|
}
|
|
3487
3487
|
) : /* @__PURE__ */ e(
|
|
3488
|
-
|
|
3488
|
+
Pe,
|
|
3489
3489
|
{
|
|
3490
3490
|
buttonText: a.connect_more_accounts_title,
|
|
3491
3491
|
description: a.health_score_zero_description,
|
|
@@ -3513,98 +3513,90 @@ const zo = ({ total: t }) => {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
)
|
|
3515
3515
|
] });
|
|
3516
|
-
}), Jr = ({ onBackClick: t,
|
|
3517
|
-
const { visibleAccounts:
|
|
3518
|
-
augmentedChartData:
|
|
3519
|
-
calculateHealthScore:
|
|
3520
|
-
loadAugmentedChartData:
|
|
3521
|
-
loadMonthlySummaries:
|
|
3522
|
-
loadPeerScore:
|
|
3523
|
-
peerScore:
|
|
3524
|
-
healthScore:
|
|
3525
|
-
} =
|
|
3516
|
+
}), Jr = ({ onBackClick: t, onMenuClick: o, sx: n, onPrimaryCtaClick: r }) => {
|
|
3517
|
+
const { visibleAccounts: s } = ve(), { dateRange: a, isDataLoaded: l, loadBudgetData: c, setTheme: d } = Ln(), { reloadCategoryTotals: _ } = Ve(), u = F(), {
|
|
3518
|
+
augmentedChartData: m,
|
|
3519
|
+
calculateHealthScore: b,
|
|
3520
|
+
loadAugmentedChartData: v,
|
|
3521
|
+
loadMonthlySummaries: x,
|
|
3522
|
+
loadPeerScore: S,
|
|
3523
|
+
peerScore: f,
|
|
3524
|
+
healthScore: k
|
|
3525
|
+
} = u, { finstrong: g, connect: y } = C(), { isInitialized: D } = J(), { loadRepeatingTransactionData: $, isDataLoaded: O } = Ye(), { isSmallMobile: z } = Ue(), L = E(), { userProfile: N } = ee(), [he, me] = h.useState(!1), [X, te] = h.useState(!1), [ae, q] = h.useState(!1), [j, ie] = h.useState(!1), [se, ge] = h.useState(!1);
|
|
3526
3526
|
Mo({
|
|
3527
3527
|
widgetName: "FinstrongWidget",
|
|
3528
|
-
isLoaded:
|
|
3528
|
+
isLoaded: he
|
|
3529
3529
|
}), h.useEffect(() => {
|
|
3530
|
-
|
|
3530
|
+
d(L);
|
|
3531
3531
|
}, []), h.useEffect(() => {
|
|
3532
|
-
|
|
3533
|
-
}, [
|
|
3534
|
-
|
|
3535
|
-
}, [
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
}),
|
|
3539
|
-
}, [
|
|
3540
|
-
|
|
3541
|
-
}, [
|
|
3542
|
-
const
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
}),
|
|
3532
|
+
r && (u.handleFinstrongWidgetPrimaryCtaClick = r);
|
|
3533
|
+
}, [r, u]), h.useEffect(() => {
|
|
3534
|
+
D && (x().finally(), S().finally(), b().finally());
|
|
3535
|
+
}, [D]), h.useEffect(() => {
|
|
3536
|
+
D && (_(s, a.start, a.end).finally(() => {
|
|
3537
|
+
me(!0);
|
|
3538
|
+
}), l || (c(), $().finally()));
|
|
3539
|
+
}, [a, l, D, s]), h.useEffect(() => {
|
|
3540
|
+
k?.health_score && v().finally();
|
|
3541
|
+
}, [k.health_score]);
|
|
3542
|
+
const G = () => q(!0), ye = Math.round(f?.average_health_score?.average_health_score || 0), ze = m.some((Ie) => Ie.y !== 0), Ge = () => {
|
|
3543
|
+
te(!0), b(!1).finally(() => {
|
|
3544
|
+
te(!1);
|
|
3545
|
+
}), q(!1);
|
|
3546
3546
|
};
|
|
3547
|
-
return !
|
|
3547
|
+
return !D || !he || !O || X ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(
|
|
3548
3548
|
Do,
|
|
3549
3549
|
{
|
|
3550
3550
|
actions: [
|
|
3551
3551
|
{
|
|
3552
3552
|
iconName: "person",
|
|
3553
|
-
label:
|
|
3554
|
-
onClick:
|
|
3553
|
+
label: g.profile,
|
|
3554
|
+
onClick: G
|
|
3555
3555
|
}
|
|
3556
3556
|
],
|
|
3557
3557
|
hasDivider: !0,
|
|
3558
3558
|
onBackClick: t,
|
|
3559
|
+
onMenuClick: o,
|
|
3559
3560
|
showAccountFilter: !1,
|
|
3560
|
-
sx:
|
|
3561
|
-
|
|
3562
|
-
px: T ? 16 : 48,
|
|
3563
|
-
pt: T ? 12 : 48
|
|
3564
|
-
},
|
|
3565
|
-
"& .MuiDivider-root": {
|
|
3566
|
-
mt: T ? 12 : 24
|
|
3567
|
-
},
|
|
3568
|
-
...o
|
|
3569
|
-
},
|
|
3570
|
-
title: C.title,
|
|
3561
|
+
sx: n,
|
|
3562
|
+
title: g.title,
|
|
3571
3563
|
children: [
|
|
3572
|
-
|
|
3573
|
-
|
|
3564
|
+
N.has_completed_finstrong_onboarding ? /* @__PURE__ */ i(
|
|
3565
|
+
p,
|
|
3574
3566
|
{
|
|
3575
3567
|
sx: {
|
|
3576
3568
|
bgcolor: "background.default",
|
|
3577
3569
|
flexDirection: { md: "row" },
|
|
3578
3570
|
gap: 24,
|
|
3579
3571
|
justifyContent: "center",
|
|
3580
|
-
pt:
|
|
3581
|
-
px:
|
|
3572
|
+
pt: z ? 16 : 24,
|
|
3573
|
+
px: z ? 16 : 48
|
|
3582
3574
|
},
|
|
3583
3575
|
children: [
|
|
3584
|
-
/* @__PURE__ */ i(
|
|
3576
|
+
/* @__PURE__ */ i(p, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
|
|
3585
3577
|
/* @__PURE__ */ e(Zr, {}),
|
|
3586
3578
|
/* @__PURE__ */ e(
|
|
3587
|
-
|
|
3579
|
+
Pe,
|
|
3588
3580
|
{
|
|
3589
|
-
description:
|
|
3581
|
+
description: g.connect_more_accounts_description,
|
|
3590
3582
|
drawerType: "connectDrawer",
|
|
3591
|
-
title:
|
|
3583
|
+
title: g.connect_more_accounts_title
|
|
3592
3584
|
}
|
|
3593
3585
|
)
|
|
3594
3586
|
] }),
|
|
3595
|
-
/* @__PURE__ */ e(
|
|
3587
|
+
/* @__PURE__ */ e(p, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ i(Y, { sx: { height: "100%", p: 16 }, children: [
|
|
3596
3588
|
/* @__PURE__ */ i(
|
|
3597
|
-
|
|
3589
|
+
p,
|
|
3598
3590
|
{
|
|
3599
3591
|
direction: "row",
|
|
3600
3592
|
sx: { alignItems: "center", gap: 12, justifyContent: "space-between" },
|
|
3601
3593
|
children: [
|
|
3602
|
-
/* @__PURE__ */ e(
|
|
3594
|
+
/* @__PURE__ */ e(V, { children: g.key_indicators }),
|
|
3603
3595
|
/* @__PURE__ */ e(
|
|
3604
3596
|
P,
|
|
3605
3597
|
{
|
|
3606
3598
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3607
|
-
onClick: () =>
|
|
3599
|
+
onClick: () => ie(!0),
|
|
3608
3600
|
size: "small",
|
|
3609
3601
|
sx: {
|
|
3610
3602
|
"&.MuiButtonBase-root": {
|
|
@@ -3613,66 +3605,66 @@ const zo = ({ total: t }) => {
|
|
|
3613
3605
|
}
|
|
3614
3606
|
},
|
|
3615
3607
|
variant: "text",
|
|
3616
|
-
children: /* @__PURE__ */ e(
|
|
3608
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body2", children: g.whats_changed })
|
|
3617
3609
|
}
|
|
3618
3610
|
)
|
|
3619
3611
|
]
|
|
3620
3612
|
}
|
|
3621
3613
|
),
|
|
3622
|
-
|
|
3623
|
-
|
|
3614
|
+
ze ? /* @__PURE__ */ e(
|
|
3615
|
+
Xe,
|
|
3624
3616
|
{
|
|
3625
|
-
axisColor:
|
|
3617
|
+
axisColor: L.palette.divider,
|
|
3626
3618
|
baseline: "min",
|
|
3627
|
-
colors: [
|
|
3619
|
+
colors: [L.palette.primary.main],
|
|
3628
3620
|
curveType: "natural",
|
|
3629
3621
|
customLegendBoxSx: { borderRadius: "2px" },
|
|
3630
3622
|
customLegendSx: { left: 0 },
|
|
3631
3623
|
customLegendVariant: "caption",
|
|
3632
|
-
datasets: [
|
|
3624
|
+
datasets: [m],
|
|
3633
3625
|
height: 300,
|
|
3634
3626
|
isCurrency: !1,
|
|
3635
3627
|
isGraphClippingXAxis: !0,
|
|
3636
|
-
labelBackgroundColor:
|
|
3637
|
-
labelFontColor:
|
|
3638
|
-
labelFontSize: typeof
|
|
3639
|
-
labels: [
|
|
3628
|
+
labelBackgroundColor: L.palette.neutral.dark,
|
|
3629
|
+
labelFontColor: L.palette.common.white,
|
|
3630
|
+
labelFontSize: typeof L.typography.caption?.fontSize == "string" ? parseFloat(L.typography.caption.fontSize) : L.typography.caption?.fontSize,
|
|
3631
|
+
labels: [g.key_indicators_label],
|
|
3640
3632
|
margin: { right: 12, left: -37 },
|
|
3641
|
-
peerAverage:
|
|
3633
|
+
peerAverage: ye,
|
|
3642
3634
|
showArea: !0,
|
|
3643
3635
|
showAverage: !0,
|
|
3644
3636
|
showLegend: !0,
|
|
3645
3637
|
showMarkLabel: !0,
|
|
3646
3638
|
showTooltip: !0,
|
|
3647
3639
|
showXAxis: !0,
|
|
3648
|
-
title:
|
|
3640
|
+
title: g.peer_average
|
|
3649
3641
|
}
|
|
3650
|
-
) : /* @__PURE__ */ e(Ar, { onClick: () =>
|
|
3642
|
+
) : /* @__PURE__ */ e(Ar, { onClick: () => ge(!0) }),
|
|
3651
3643
|
/* @__PURE__ */ e(Ir, {})
|
|
3652
3644
|
] }) })
|
|
3653
3645
|
]
|
|
3654
3646
|
}
|
|
3655
3647
|
) : /* @__PURE__ */ e(zr, {}),
|
|
3656
|
-
/* @__PURE__ */ e(jr, { isOpen:
|
|
3648
|
+
/* @__PURE__ */ e(jr, { isOpen: ae, onClose: Ge }),
|
|
3657
3649
|
/* @__PURE__ */ e(
|
|
3658
|
-
|
|
3650
|
+
re,
|
|
3659
3651
|
{
|
|
3660
|
-
onClose: () =>
|
|
3661
|
-
showConnectWidget:
|
|
3662
|
-
title:
|
|
3652
|
+
onClose: () => ge(!1),
|
|
3653
|
+
showConnectWidget: se,
|
|
3654
|
+
title: y.mini_title
|
|
3663
3655
|
}
|
|
3664
3656
|
),
|
|
3665
3657
|
/* @__PURE__ */ e(
|
|
3666
3658
|
Xr,
|
|
3667
3659
|
{
|
|
3668
|
-
isOpen:
|
|
3669
|
-
onClose: () =>
|
|
3660
|
+
isOpen: j,
|
|
3661
|
+
onClose: () => ie(!1)
|
|
3670
3662
|
}
|
|
3671
3663
|
)
|
|
3672
3664
|
]
|
|
3673
3665
|
}
|
|
3674
3666
|
);
|
|
3675
|
-
}, xi =
|
|
3667
|
+
}, xi = w(Jr);
|
|
3676
3668
|
export {
|
|
3677
3669
|
To as CreditScoreGraph,
|
|
3678
3670
|
Rt as DialScoreCard,
|