@mx-cartographer/experiences 7.2.9-alpha-finstrong-testing → 7.2.9-alpha.san3
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/dist/{AccountDetailsContent-BcX5y6ja.mjs → AccountDetailsContent-CmdOOZw1.mjs} +1 -1
- package/dist/{AccountDetailsHeader-Cj5DDzkQ.mjs → AccountDetailsHeader-CaIoP_2Q.mjs} +1 -1
- package/dist/{FinstrongStore-CjErZ73K.mjs → FinstrongStore-C74yHCOj.mjs} +10 -10
- package/dist/{LineChart-CDnYtQKZ.mjs → LineChart-Ct9DNmhS.mjs} +208 -180
- package/dist/accounts/index.es.js +3 -3
- package/dist/common/components/charts/LineChart.d.ts +8 -2
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/index.es.js +2 -2
- package/dist/common/types/Widgets.d.ts +2 -0
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +2 -0
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +3 -1
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +4 -1
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +4 -1
- package/dist/finstrong/components/shared/LineGraph.d.ts +1 -1
- package/dist/finstrong/index.es.js +1298 -1237
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
- package/dist/goals/index.es.js +2 -2
- package/dist/networth/index.es.js +1 -1
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { PieChart as
|
|
6
|
-
import { TrendingUp as
|
|
7
|
-
import { P as k, H3 as
|
|
8
|
-
import { g as
|
|
9
|
-
import { y as
|
|
10
|
-
import * as
|
|
11
|
-
import { observer as
|
|
12
|
-
import { u as
|
|
1
|
+
import { jsxs as s, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import A from "@mui/material/Box";
|
|
3
|
+
import _ from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as G, alpha as ue } from "@mui/material/styles";
|
|
5
|
+
import { PieChart as Vt, BarPlot as Yt } from "@mui/x-charts";
|
|
6
|
+
import { TrendingUp as st, ArrowRightAlt as Xt, TrendingDown as Ut, AccountBalance as ct, ChevronRight as Z, MultilineChart as lt, CreditCard as $e, CheckCircle as qt, Cancel as Zt, Savings as Qt, ContentCopy as Jt, Add as dt, Cardiology as en, Payments as tn, CalendarMonth as nn, ExpandMore as on } from "@mxenabled/mx-icons";
|
|
7
|
+
import { P as k, H3 as X, Text as T, InstitutionLogo as pt, H2 as De, MerchantLogo as rn, Icon as an } from "@mxenabled/mxui";
|
|
8
|
+
import { g as sn, a as cn, r as Ue, b as ln, c as We, d as ut, C as ye, e as be, f as dn, h as pn, i as un, j as _t, k as qe, l as _n, m as Ze, n as hn, o as ht, p as mn, q as mt, s as we, t as gn, u as yn, v as bn, w as fn, A as J, x as xn, P as Sn } from "../FinstrongStore-C74yHCOj.mjs";
|
|
9
|
+
import { y as hi, F as mi } from "../FinstrongStore-C74yHCOj.mjs";
|
|
10
|
+
import * as Qe from "d3";
|
|
11
|
+
import { observer as x } from "mobx-react-lite";
|
|
12
|
+
import { u as w, b as U, p as Q, z as P, q as Cn, a as gt, d as xe, m as Ee, g as vn, f as wn, j as kn, h as An, i as yt } from "../hooks-C41HAxM5.mjs";
|
|
13
13
|
import { L as te } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import h from "react";
|
|
15
|
-
import
|
|
15
|
+
import W from "@mui/material/Button";
|
|
16
16
|
import K from "@mui/material/Card";
|
|
17
|
-
import { L as
|
|
18
|
-
import { C as
|
|
19
|
-
import { l as ne, g as
|
|
17
|
+
import { L as ze } from "../LineChart-Ct9DNmhS.mjs";
|
|
18
|
+
import { C as bt } from "../ConnectionsDrawer-Cd_rztVC.mjs";
|
|
19
|
+
import { l as ne, g as ft, A as Be } from "../ConnectDrawer-FyY0AWYQ.mjs";
|
|
20
20
|
import re from "@mui/material/Tab";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { u as
|
|
24
|
-
import { D as Dn, f as
|
|
25
|
-
import
|
|
21
|
+
import Ge from "@mui/material/Tabs";
|
|
22
|
+
import ke from "@mui/material/TextField";
|
|
23
|
+
import { u as He } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
+
import { D as Dn, f as Mn, a as In } from "../Dialog-BPTr3qHE.mjs";
|
|
25
|
+
import { u as xt } from "../useDimensions-27p2evRx.mjs";
|
|
26
|
+
import Tn from "@mui/material/Chip";
|
|
26
27
|
import { D as ie } from "../Drawer-BEtCk82g.mjs";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { g as
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { f as
|
|
36
|
-
import { S as
|
|
37
|
-
import { Button as
|
|
38
|
-
import { S as
|
|
39
|
-
import { h as
|
|
40
|
-
import { useVirtualizer as
|
|
41
|
-
import { u as $n, s as
|
|
42
|
-
import { A as
|
|
43
|
-
import { u as kt } from "../useDimensions-27p2evRx.mjs";
|
|
28
|
+
import ee from "@mui/material/Divider";
|
|
29
|
+
import St from "@mui/material/ListItem";
|
|
30
|
+
import Ct from "@mui/material/ListItemAvatar";
|
|
31
|
+
import vt from "@mui/material/ListItemText";
|
|
32
|
+
import { g as wt } from "../AccountFields-CLbLAhLf.mjs";
|
|
33
|
+
import kt from "@mui/material/List";
|
|
34
|
+
import On from "@mui/material/ListItemButton";
|
|
35
|
+
import Fn from "@mui/material/ListSubheader";
|
|
36
|
+
import { f as L } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
37
|
+
import { S as Je, F as Pn } from "../RecurringTransactions-CngsRZ3K.mjs";
|
|
38
|
+
import { Button as Rn } from "@mui/material";
|
|
39
|
+
import { S as Bn } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
|
+
import { h as Ne } from "../DateUtil-CBdcsyuk.mjs";
|
|
41
|
+
import { useVirtualizer as Ln } from "@tanstack/react-virtual";
|
|
42
|
+
import { u as $n, s as Le, h as At, S as Dt, b as Mt, Z as Wn } from "../TransactionDetails-CJvE4LNC.mjs";
|
|
43
|
+
import { A as En, W as zn } from "../WidgetContainer-GoNq8wwm.mjs";
|
|
44
44
|
import { T as ae } from "../TabContentContainer-j01JYR_7.mjs";
|
|
45
|
-
import { b as
|
|
46
|
-
import { E as
|
|
45
|
+
import { b as Y } from "../Localization-2MODESHW.mjs";
|
|
46
|
+
import { E as Ae } from "../EmptyState-DA_lfRBv.mjs";
|
|
47
47
|
import Gn from "@mui/material/useMediaQuery";
|
|
48
|
-
import { ChartsXAxis as
|
|
49
|
-
import { ChartsYAxis as
|
|
50
|
-
import { ResponsiveChartContainer as
|
|
51
|
-
import { useSpring as
|
|
52
|
-
import { startOfMonth as
|
|
53
|
-
import { endOfMonth as
|
|
54
|
-
import { g as
|
|
55
|
-
import { startOfToday as
|
|
56
|
-
import { subDays as
|
|
57
|
-
import { c as
|
|
58
|
-
import { LocalizationProvider as
|
|
59
|
-
import { AdapterDateFns as
|
|
60
|
-
import { R as
|
|
61
|
-
import { LocalizationProvider as
|
|
62
|
-
import { format as
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
const
|
|
48
|
+
import { ChartsXAxis as Hn } from "@mui/x-charts/ChartsXAxis";
|
|
49
|
+
import { ChartsYAxis as Nn } from "@mui/x-charts/ChartsYAxis";
|
|
50
|
+
import { ResponsiveChartContainer as Kn } from "@mui/x-charts/ResponsiveChartContainer";
|
|
51
|
+
import { useSpring as jn, animated as et } from "@react-spring/web";
|
|
52
|
+
import { startOfMonth as It } from "date-fns/startOfMonth";
|
|
53
|
+
import { endOfMonth as Tt } from "date-fns/endOfMonth";
|
|
54
|
+
import { g as Vn, S as Yn, b as Xn } from "../SpendingLegend-squvjEhu.mjs";
|
|
55
|
+
import { startOfToday as tt } from "date-fns/startOfToday";
|
|
56
|
+
import { subDays as Un } from "date-fns/subDays";
|
|
57
|
+
import { c as qn, d as nt, S as Zn, i as Qn } from "../ManageIncome-DB_lKOIy.mjs";
|
|
58
|
+
import { LocalizationProvider as Jn, DatePicker as eo, StaticDatePicker as to } from "@mui/x-date-pickers";
|
|
59
|
+
import { AdapterDateFns as Ot } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
60
|
+
import { R as no } from "../RecurringSettings-dJJxtLyU.mjs";
|
|
61
|
+
import { LocalizationProvider as oo } from "@mui/x-date-pickers/LocalizationProvider";
|
|
62
|
+
import { format as ro } from "date-fns/format";
|
|
63
|
+
import ao from "@mui/lab/Timeline";
|
|
64
|
+
import io, { timelineItemClasses as so } from "@mui/lab/TimelineItem";
|
|
65
|
+
import co from "@mui/lab/TimelineConnector";
|
|
66
|
+
import lo from "@mui/lab/TimelineContent";
|
|
67
|
+
import po from "@mui/lab/TimelineDot";
|
|
68
|
+
import uo from "@mui/lab/TimelineSeparator";
|
|
69
|
+
import _o from "@mui/material/Accordion";
|
|
70
|
+
import ho from "@mui/material/AccordionDetails";
|
|
71
|
+
import mo from "@mui/material/AccordionSummary";
|
|
72
|
+
import go from "@mui/material/CardHeader";
|
|
73
|
+
const yo = ({
|
|
74
74
|
dialScoreData: t,
|
|
75
75
|
dataIndex: r,
|
|
76
76
|
arcColor: n,
|
|
77
77
|
arcStartAngle: o,
|
|
78
|
-
totalAngularSpan:
|
|
79
|
-
centerX:
|
|
78
|
+
totalAngularSpan: c,
|
|
79
|
+
centerX: i,
|
|
80
80
|
centerY: a,
|
|
81
|
-
arcRadius:
|
|
82
|
-
innerArcRadius:
|
|
83
|
-
outterArcRadius:
|
|
84
|
-
progressEndAngle:
|
|
81
|
+
arcRadius: d,
|
|
82
|
+
innerArcRadius: l,
|
|
83
|
+
outterArcRadius: p,
|
|
84
|
+
progressEndAngle: u,
|
|
85
85
|
unitsPerSegment: m,
|
|
86
86
|
isFinacialStrengthGraph: g
|
|
87
87
|
}) => {
|
|
88
|
-
const
|
|
89
|
-
{ offset: "13.62%", color:
|
|
90
|
-
{ offset: "36.67%", color:
|
|
91
|
-
{ offset: "59.72%", color:
|
|
92
|
-
{ offset: "83.46%", color:
|
|
93
|
-
], [b,
|
|
88
|
+
const S = G(), C = [
|
|
89
|
+
{ offset: "13.62%", color: S.palette.chartMono.chartMono2 },
|
|
90
|
+
{ offset: "36.67%", color: S.palette.chartMono.chartMono3 },
|
|
91
|
+
{ offset: "59.72%", color: S.palette.chartMono.chartMono4 },
|
|
92
|
+
{ offset: "83.46%", color: S.palette.chartMono.chartMono5 }
|
|
93
|
+
], [b, v] = sn(
|
|
94
94
|
t,
|
|
95
|
-
|
|
95
|
+
c,
|
|
96
96
|
o,
|
|
97
97
|
r
|
|
98
|
-
), [
|
|
98
|
+
), [y, f] = cn(
|
|
99
99
|
b,
|
|
100
|
-
|
|
100
|
+
v,
|
|
101
101
|
r,
|
|
102
102
|
m,
|
|
103
|
-
|
|
104
|
-
),
|
|
105
|
-
return /* @__PURE__ */
|
|
103
|
+
u
|
|
104
|
+
), D = Qe.arc().innerRadius(l).outerRadius(p).startAngle(b).endAngle(v).padAngle(0.02).cornerRadius(8), F = Qe.arc().innerRadius(l).outerRadius(p).startAngle(y).endAngle(f).padAngle(0.02).cornerRadius(8);
|
|
105
|
+
return /* @__PURE__ */ s(z, { children: [
|
|
106
106
|
/* @__PURE__ */ e(
|
|
107
107
|
"path",
|
|
108
108
|
{
|
|
109
|
-
d:
|
|
110
|
-
fill: g ?
|
|
109
|
+
d: D({}),
|
|
110
|
+
fill: g ? S.palette.divider : n
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
g && /* @__PURE__ */ e("path", { d:
|
|
113
|
+
g && /* @__PURE__ */ e("path", { d: F({}), fill: "url(#arcGradient)" }),
|
|
114
114
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
115
115
|
"linearGradient",
|
|
116
116
|
{
|
|
117
|
-
gradientTransform: `rotate(5, ${
|
|
117
|
+
gradientTransform: `rotate(5, ${i}, ${a})`,
|
|
118
118
|
gradientUnits: "userSpaceOnUse",
|
|
119
119
|
id: "arcGradient",
|
|
120
|
-
x1:
|
|
121
|
-
x2:
|
|
122
|
-
y1: a +
|
|
123
|
-
y2: a -
|
|
124
|
-
children:
|
|
120
|
+
x1: i + d * 0.8 * Math.cos(Math.PI / 1.35),
|
|
121
|
+
x2: i - d * 0.8 * Math.cos(Math.PI / 1.35),
|
|
122
|
+
y1: a + d * 0.8 * Math.sin(Math.PI / 1.35),
|
|
123
|
+
y2: a - d * 0.8 * Math.sin(Math.PI / 1.35),
|
|
124
|
+
children: C.map((H, O) => /* @__PURE__ */ e("stop", { offset: H.offset, stopColor: H.color }, O))
|
|
125
125
|
}
|
|
126
126
|
) })
|
|
127
127
|
] });
|
|
128
|
-
},
|
|
128
|
+
}, Ft = ({
|
|
129
129
|
arcRadius: t = 100,
|
|
130
130
|
healthScore: r,
|
|
131
131
|
size: n = "L",
|
|
132
132
|
dialScoreData: o,
|
|
133
|
-
minValue:
|
|
134
|
-
maxValue:
|
|
133
|
+
minValue: c = 0,
|
|
134
|
+
maxValue: i = 100,
|
|
135
135
|
markerColor: a,
|
|
136
|
-
healthScoreStatus:
|
|
137
|
-
footerCenterContent:
|
|
138
|
-
footerLeftContent:
|
|
139
|
-
footerRightContent:
|
|
136
|
+
healthScoreStatus: d,
|
|
137
|
+
footerCenterContent: l,
|
|
138
|
+
footerLeftContent: p,
|
|
139
|
+
footerRightContent: u,
|
|
140
140
|
isFinacialStrengthGraph: m = !1
|
|
141
141
|
}) => {
|
|
142
|
-
const g =
|
|
142
|
+
const g = G(), S = -Math.PI / 1.35, C = Math.PI / 1.35, b = C - S, v = b / (i - c), y = (r - c) * v, f = S + y + 0.02, D = n !== "SM" ? 0.1 : 0.12, F = t, H = t * (1 - D), O = F * 2.5, N = O / 2, E = O / 2, ce = (H + F) / 2, j = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [oe, le] = ln(ce, f, j), de = r / 25, V = {
|
|
143
143
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
144
144
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
145
145
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
146
|
-
},
|
|
147
|
-
return /* @__PURE__ */
|
|
148
|
-
|
|
146
|
+
}, me = l === 0 ? Xt : Ut;
|
|
147
|
+
return /* @__PURE__ */ s(
|
|
148
|
+
_,
|
|
149
149
|
{
|
|
150
150
|
sx: {
|
|
151
|
-
width:
|
|
152
|
-
height:
|
|
151
|
+
width: O,
|
|
152
|
+
height: O,
|
|
153
153
|
position: "relative",
|
|
154
154
|
alignSelf: "center"
|
|
155
155
|
},
|
|
156
156
|
children: [
|
|
157
157
|
/* @__PURE__ */ e(
|
|
158
|
-
|
|
158
|
+
Vt,
|
|
159
159
|
{
|
|
160
|
-
height:
|
|
160
|
+
height: O,
|
|
161
161
|
margin: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
162
162
|
series: [
|
|
163
163
|
{
|
|
164
164
|
data: o,
|
|
165
|
-
innerRadius:
|
|
166
|
-
outerRadius:
|
|
167
|
-
startAngle: Math.round(
|
|
165
|
+
innerRadius: H,
|
|
166
|
+
outerRadius: F,
|
|
167
|
+
startAngle: Math.round(Ue(S)),
|
|
168
168
|
// Use Math.degrees to convert
|
|
169
|
-
endAngle: Math.round(
|
|
169
|
+
endAngle: Math.round(Ue(C))
|
|
170
170
|
// Use Math.degrees to convert
|
|
171
171
|
}
|
|
172
172
|
],
|
|
@@ -175,22 +175,22 @@ const go = ({
|
|
|
175
175
|
legend: { hidden: !0 }
|
|
176
176
|
},
|
|
177
177
|
slots: {
|
|
178
|
-
pieArc: (
|
|
179
|
-
|
|
178
|
+
pieArc: (Se) => /* @__PURE__ */ e(
|
|
179
|
+
yo,
|
|
180
180
|
{
|
|
181
|
-
arcColor:
|
|
181
|
+
arcColor: Se.color,
|
|
182
182
|
arcRadius: t,
|
|
183
|
-
arcStartAngle:
|
|
184
|
-
centerX:
|
|
185
|
-
centerY:
|
|
186
|
-
dataIndex:
|
|
183
|
+
arcStartAngle: S,
|
|
184
|
+
centerX: N,
|
|
185
|
+
centerY: E,
|
|
186
|
+
dataIndex: Se.dataIndex,
|
|
187
187
|
dialScoreData: o,
|
|
188
|
-
innerArcRadius:
|
|
188
|
+
innerArcRadius: H,
|
|
189
189
|
isFinacialStrengthGraph: m,
|
|
190
|
-
outterArcRadius:
|
|
191
|
-
progressEndAngle:
|
|
190
|
+
outterArcRadius: F,
|
|
191
|
+
progressEndAngle: f,
|
|
192
192
|
totalAngularSpan: b,
|
|
193
|
-
unitsPerSegment:
|
|
193
|
+
unitsPerSegment: de
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
},
|
|
@@ -199,14 +199,14 @@ const go = ({
|
|
|
199
199
|
stroke: "none"
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
|
-
width:
|
|
203
|
-
children: r >=
|
|
202
|
+
width: O,
|
|
203
|
+
children: r >= c && r <= i && /* @__PURE__ */ e(
|
|
204
204
|
"circle",
|
|
205
205
|
{
|
|
206
|
-
cx:
|
|
207
|
-
cy:
|
|
206
|
+
cx: N + oe,
|
|
207
|
+
cy: E + le,
|
|
208
208
|
fill: g.palette.common.white,
|
|
209
|
-
r:
|
|
209
|
+
r: V[n].markerSize,
|
|
210
210
|
stroke: m ? "url(#arcGradient)" : a,
|
|
211
211
|
strokeWidth: n !== "SM" ? 3 : 1
|
|
212
212
|
}
|
|
@@ -214,17 +214,17 @@ const go = ({
|
|
|
214
214
|
}
|
|
215
215
|
),
|
|
216
216
|
/* @__PURE__ */ e(
|
|
217
|
-
|
|
217
|
+
A,
|
|
218
218
|
{
|
|
219
219
|
sx: {
|
|
220
220
|
position: "absolute",
|
|
221
|
-
top: `${
|
|
222
|
-
left: `${
|
|
221
|
+
top: `${E}px`,
|
|
222
|
+
left: `${N}px`,
|
|
223
223
|
transform: "translate(-50%, -50%)",
|
|
224
224
|
textAlign: "center"
|
|
225
225
|
},
|
|
226
|
-
children: /* @__PURE__ */
|
|
227
|
-
|
|
226
|
+
children: /* @__PURE__ */ s(
|
|
227
|
+
_,
|
|
228
228
|
{
|
|
229
229
|
spacing: 1,
|
|
230
230
|
sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
|
|
@@ -233,89 +233,89 @@ const go = ({
|
|
|
233
233
|
k,
|
|
234
234
|
{
|
|
235
235
|
sx: {
|
|
236
|
-
fontSize:
|
|
236
|
+
fontSize: V[n].healthScoreFontSize,
|
|
237
237
|
lineHeight: n !== "SM" ? "48px" : "100%"
|
|
238
238
|
},
|
|
239
239
|
variant: "H1",
|
|
240
240
|
children: r
|
|
241
241
|
}
|
|
242
242
|
),
|
|
243
|
-
n !== "SM" && /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children:
|
|
243
|
+
n !== "SM" && /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: d })
|
|
244
244
|
]
|
|
245
245
|
}
|
|
246
246
|
)
|
|
247
247
|
}
|
|
248
248
|
),
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
l !== void 0 && /* @__PURE__ */ e(
|
|
250
|
+
A,
|
|
251
251
|
{
|
|
252
252
|
sx: {
|
|
253
253
|
position: "absolute",
|
|
254
|
-
top: `${
|
|
255
|
-
left: `${
|
|
254
|
+
top: `${E * 2 * 0.83}px`,
|
|
255
|
+
left: `${N}px`,
|
|
256
256
|
transform: "translate(-50%, -50%)",
|
|
257
257
|
textAlign: "center"
|
|
258
258
|
},
|
|
259
|
-
children: typeof
|
|
260
|
-
|
|
259
|
+
children: typeof l == "number" ? /* @__PURE__ */ s(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
260
|
+
l > 0 ? /* @__PURE__ */ e(st, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(me, { size: 16, sx: { color: "text.secondary" } }),
|
|
261
261
|
/* @__PURE__ */ e(
|
|
262
262
|
k,
|
|
263
263
|
{
|
|
264
264
|
sx: {
|
|
265
265
|
fontWeight: 600,
|
|
266
|
-
color:
|
|
266
|
+
color: l > 0 ? "success.main" : "text.secondary"
|
|
267
267
|
},
|
|
268
268
|
variant: "body1",
|
|
269
|
-
children:
|
|
269
|
+
children: l
|
|
270
270
|
}
|
|
271
271
|
)
|
|
272
|
-
] }) : /* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle2", children:
|
|
272
|
+
] }) : /* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle2", children: l })
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
p !== void 0 && /* @__PURE__ */ e(
|
|
276
|
+
A,
|
|
277
277
|
{
|
|
278
278
|
sx: {
|
|
279
279
|
position: "absolute",
|
|
280
|
-
top: `${
|
|
281
|
-
left: `${
|
|
280
|
+
top: `${E * 2 * 0.83}px`,
|
|
281
|
+
left: `${N - N / 2}px`,
|
|
282
282
|
// shift left from center
|
|
283
283
|
transform: "translate(-50%, -50%)",
|
|
284
284
|
textAlign: "left"
|
|
285
285
|
},
|
|
286
|
-
children: /* @__PURE__ */ e(k, { variant: "body1", children:
|
|
286
|
+
children: /* @__PURE__ */ e(k, { variant: "body1", children: p })
|
|
287
287
|
}
|
|
288
288
|
),
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
u !== void 0 && /* @__PURE__ */ e(
|
|
290
|
+
A,
|
|
291
291
|
{
|
|
292
292
|
sx: {
|
|
293
293
|
position: "absolute",
|
|
294
|
-
top: `${
|
|
295
|
-
left: `${
|
|
294
|
+
top: `${E * 2 * 0.83}px`,
|
|
295
|
+
left: `${N + N / 2}px`,
|
|
296
296
|
transform: "translate(-50%, -50%)",
|
|
297
297
|
textAlign: "right"
|
|
298
298
|
},
|
|
299
|
-
children: /* @__PURE__ */ e(k, { variant: "body1", children:
|
|
299
|
+
children: /* @__PURE__ */ e(k, { variant: "body1", children: u })
|
|
300
300
|
}
|
|
301
301
|
)
|
|
302
302
|
]
|
|
303
303
|
}
|
|
304
304
|
);
|
|
305
|
-
},
|
|
305
|
+
}, Pt = x(
|
|
306
306
|
({ arcRadius: t, size: r = "L", healthScore: n, footerCenterContent: o }) => {
|
|
307
|
-
const
|
|
307
|
+
const c = [
|
|
308
308
|
{ id: 1, label: "Group A", value: 25 },
|
|
309
309
|
{ id: 2, label: "Group B", value: 25 },
|
|
310
310
|
{ id: 3, label: "Group C", value: 25 },
|
|
311
311
|
{ id: 4, label: "Group D", value: 25 }
|
|
312
|
-
], { finstrong:
|
|
312
|
+
], { finstrong: i } = w(), a = We(n, i);
|
|
313
313
|
return /* @__PURE__ */ e(
|
|
314
|
-
|
|
314
|
+
Ft,
|
|
315
315
|
{
|
|
316
316
|
arcRadius: t,
|
|
317
|
-
dialScoreData:
|
|
318
|
-
footerCenterContent: r === "L" ?
|
|
317
|
+
dialScoreData: c,
|
|
318
|
+
footerCenterContent: r === "L" ? i.footer_center_content_updated_just_now : o,
|
|
319
319
|
healthScore: n,
|
|
320
320
|
healthScoreStatus: a.status,
|
|
321
321
|
isFinacialStrengthGraph: !0,
|
|
@@ -323,82 +323,82 @@ const go = ({
|
|
|
323
323
|
}
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
-
),
|
|
326
|
+
), bo = x(
|
|
327
327
|
({
|
|
328
328
|
arcRadius: t,
|
|
329
329
|
size: r = "L",
|
|
330
330
|
healthScore: n,
|
|
331
331
|
maxValue: o = 850,
|
|
332
|
-
minValue:
|
|
333
|
-
footerCenterContent:
|
|
332
|
+
minValue: c = 300,
|
|
333
|
+
footerCenterContent: i
|
|
334
334
|
}) => {
|
|
335
|
-
const
|
|
335
|
+
const d = G().palette.mode === "dark", l = [
|
|
336
336
|
{
|
|
337
337
|
id: 1,
|
|
338
338
|
label: "Poor",
|
|
339
339
|
value: 29,
|
|
340
|
-
color:
|
|
340
|
+
color: d ? ye.POOR : be.POOR
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
id: 2,
|
|
344
344
|
label: "Fair",
|
|
345
345
|
value: 25,
|
|
346
|
-
color:
|
|
346
|
+
color: d ? ye.FAIR : be.FAIR
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
id: 3,
|
|
350
350
|
label: "Good",
|
|
351
351
|
value: 17,
|
|
352
|
-
color:
|
|
352
|
+
color: d ? ye.GOOD : be.GOOD
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
id: 4,
|
|
356
356
|
label: "Very Good",
|
|
357
357
|
value: 17,
|
|
358
|
-
color:
|
|
358
|
+
color: d ? ye.VERY_GOOD : be.VERY_GOOD
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
361
|
id: 5,
|
|
362
362
|
label: "Exceptional",
|
|
363
363
|
value: 12,
|
|
364
|
-
color:
|
|
364
|
+
color: d ? ye.EXCEPTIONAL : be.EXCEPTIONAL
|
|
365
365
|
}
|
|
366
|
-
], { finstrong:
|
|
367
|
-
if (!
|
|
368
|
-
const { status: m, color: g = "none" } =
|
|
366
|
+
], { finstrong: p } = w(), { isCopyLoaded: u } = U();
|
|
367
|
+
if (!u) return /* @__PURE__ */ e(te, {});
|
|
368
|
+
const { status: m, color: g = "none" } = ut(
|
|
369
369
|
n,
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
d,
|
|
371
|
+
p.credit_score_status
|
|
372
372
|
);
|
|
373
373
|
return /* @__PURE__ */ e(
|
|
374
|
-
|
|
374
|
+
Ft,
|
|
375
375
|
{
|
|
376
376
|
arcRadius: t,
|
|
377
|
-
dialScoreData:
|
|
378
|
-
footerCenterContent:
|
|
379
|
-
footerLeftContent:
|
|
377
|
+
dialScoreData: l,
|
|
378
|
+
footerCenterContent: i,
|
|
379
|
+
footerLeftContent: c,
|
|
380
380
|
footerRightContent: o,
|
|
381
381
|
healthScore: n,
|
|
382
382
|
healthScoreStatus: m,
|
|
383
383
|
markerColor: g,
|
|
384
384
|
maxValue: o,
|
|
385
|
-
minValue:
|
|
385
|
+
minValue: c,
|
|
386
386
|
size: r
|
|
387
387
|
}
|
|
388
388
|
);
|
|
389
389
|
}
|
|
390
|
-
),
|
|
390
|
+
), Me = ({
|
|
391
391
|
drawerType: t,
|
|
392
392
|
isDashboard: r = !1,
|
|
393
393
|
hasIcon: n = !0,
|
|
394
394
|
buttonText: o,
|
|
395
|
-
title:
|
|
396
|
-
titleDrawer:
|
|
395
|
+
title: c,
|
|
396
|
+
titleDrawer: i,
|
|
397
397
|
description: a,
|
|
398
|
-
sx:
|
|
398
|
+
sx: d
|
|
399
399
|
}) => {
|
|
400
|
-
const [
|
|
401
|
-
return t ? /* @__PURE__ */
|
|
400
|
+
const [l, p] = h.useState(!1), { connect: u, finstrong: m } = w();
|
|
401
|
+
return t ? /* @__PURE__ */ s(
|
|
402
402
|
K,
|
|
403
403
|
{
|
|
404
404
|
sx: {
|
|
@@ -406,19 +406,19 @@ const go = ({
|
|
|
406
406
|
pt: 18,
|
|
407
407
|
px: 24,
|
|
408
408
|
width: "100%",
|
|
409
|
-
...
|
|
409
|
+
...d
|
|
410
410
|
},
|
|
411
411
|
children: [
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
|
|
412
|
+
/* @__PURE__ */ s(
|
|
413
|
+
_,
|
|
414
414
|
{
|
|
415
415
|
sx: {
|
|
416
416
|
gap: 8,
|
|
417
417
|
...r && { flexDirection: "row", alignItems: "center" }
|
|
418
418
|
},
|
|
419
419
|
children: [
|
|
420
|
-
n && /* @__PURE__ */ e(
|
|
421
|
-
/* @__PURE__ */ e(
|
|
420
|
+
n && /* @__PURE__ */ e(ct, { sx: { height: 20, width: 20 } }),
|
|
421
|
+
/* @__PURE__ */ e(X, { className: "connect-more-accounts-title", sx: { ...r && { fontSize: 15 } }, children: c || m.connect_more_accounts_title })
|
|
422
422
|
]
|
|
423
423
|
}
|
|
424
424
|
),
|
|
@@ -432,10 +432,10 @@ const go = ({
|
|
|
432
432
|
}
|
|
433
433
|
),
|
|
434
434
|
/* @__PURE__ */ e(
|
|
435
|
-
|
|
435
|
+
W,
|
|
436
436
|
{
|
|
437
437
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
438
|
-
onClick: () =>
|
|
438
|
+
onClick: () => p(!0),
|
|
439
439
|
size: "small",
|
|
440
440
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
441
441
|
children: /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body2", children: o || m.connect_more_accounts_button })
|
|
@@ -444,17 +444,17 @@ const go = ({
|
|
|
444
444
|
t === "connectDrawer" && /* @__PURE__ */ e(
|
|
445
445
|
ne,
|
|
446
446
|
{
|
|
447
|
-
onClose: () =>
|
|
448
|
-
showConnectWidget:
|
|
449
|
-
title:
|
|
447
|
+
onClose: () => p(!1),
|
|
448
|
+
showConnectWidget: l,
|
|
449
|
+
title: i || u.mini_title
|
|
450
450
|
}
|
|
451
451
|
),
|
|
452
452
|
t === "connectionsDrawer" && /* @__PURE__ */ e(
|
|
453
|
-
|
|
453
|
+
bt,
|
|
454
454
|
{
|
|
455
|
-
onClose: () =>
|
|
456
|
-
showConnectionsWidget:
|
|
457
|
-
title:
|
|
455
|
+
onClose: () => p(!1),
|
|
456
|
+
showConnectionsWidget: l,
|
|
457
|
+
title: i || u.mini_title
|
|
458
458
|
}
|
|
459
459
|
)
|
|
460
460
|
]
|
|
@@ -462,59 +462,145 @@ const go = ({
|
|
|
462
462
|
) : null;
|
|
463
463
|
};
|
|
464
464
|
var se = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(se || {});
|
|
465
|
-
const
|
|
466
|
-
const { common: n, finstrong: o } =
|
|
467
|
-
r(), setTimeout(() =>
|
|
465
|
+
const fo = ({ isOpen: t, onClose: r }) => {
|
|
466
|
+
const { common: n, finstrong: o } = w(), { isMobile: c } = He(), { updateUser: i, user: a } = Q(), [d, l] = h.useState(a.credit_score || 0), p = !isNaN(d), u = () => {
|
|
467
|
+
r(), setTimeout(() => l(a.credit_score || 0), 300);
|
|
468
468
|
}, m = () => {
|
|
469
|
-
!
|
|
469
|
+
!d || d === a.credit_score || i({ ...a, credit_score: d });
|
|
470
470
|
};
|
|
471
471
|
return /* @__PURE__ */ e(
|
|
472
472
|
Dn,
|
|
473
473
|
{
|
|
474
474
|
copy: { close_aria: n.close_aria, title: o.edit_credit_score },
|
|
475
|
-
disablePrimaryButton: !
|
|
475
|
+
disablePrimaryButton: !d || !p,
|
|
476
476
|
isOpen: t,
|
|
477
477
|
maxWidth: "xs",
|
|
478
|
-
onClose:
|
|
478
|
+
onClose: u,
|
|
479
479
|
onPrimaryAction: m,
|
|
480
480
|
primaryColor: "primary",
|
|
481
481
|
primaryText: n.save_button,
|
|
482
482
|
sx: {
|
|
483
483
|
"& .MuiDialog-paper": {
|
|
484
|
-
minWidth:
|
|
484
|
+
minWidth: c ? "100%" : 400
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
487
|
children: /* @__PURE__ */ e(
|
|
488
488
|
"form",
|
|
489
489
|
{
|
|
490
490
|
onSubmit: (g) => {
|
|
491
|
-
g.preventDefault(), m(),
|
|
491
|
+
g.preventDefault(), m(), u();
|
|
492
492
|
},
|
|
493
493
|
children: /* @__PURE__ */ e(
|
|
494
|
-
|
|
494
|
+
ke,
|
|
495
495
|
{
|
|
496
|
-
error: !
|
|
496
|
+
error: !p,
|
|
497
497
|
fullWidth: !0,
|
|
498
498
|
inputMode: "numeric",
|
|
499
499
|
inputProps: {
|
|
500
500
|
noValidate: !0,
|
|
501
501
|
pattern: "[0-9]*"
|
|
502
502
|
},
|
|
503
|
-
onChange: (g) =>
|
|
504
|
-
value:
|
|
503
|
+
onChange: (g) => l(Number(g.target.value)),
|
|
504
|
+
value: p ? d : ""
|
|
505
505
|
}
|
|
506
506
|
)
|
|
507
507
|
}
|
|
508
508
|
)
|
|
509
509
|
}
|
|
510
510
|
);
|
|
511
|
-
},
|
|
511
|
+
}, Rt = x(fo), Fe = {
|
|
512
|
+
credit_over_time_title: "Your Credit Over Time",
|
|
513
|
+
credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
|
|
514
|
+
}, xo = ({ chartFor: t }) => {
|
|
515
|
+
const r = G(), n = r.palette.mode === "dark", { monthlySummaries: o } = P(), { user: c } = Q(), { finstrong: i } = w(), [a, { width: d }] = xt(), l = {
|
|
516
|
+
savingsOverTime: {
|
|
517
|
+
icon: /* @__PURE__ */ e(st, { size: 48, sx: { marginBottom: 8 } }),
|
|
518
|
+
title: i.key_indicators_save.zero_state_title,
|
|
519
|
+
description: i.key_indicators_save.zero_state_description
|
|
520
|
+
},
|
|
521
|
+
debtOverTime: {
|
|
522
|
+
icon: /* @__PURE__ */ e(lt, { size: 48, sx: { marginBottom: 8 } }),
|
|
523
|
+
title: "",
|
|
524
|
+
description: ""
|
|
525
|
+
},
|
|
526
|
+
creditOverTime: {
|
|
527
|
+
icon: /* @__PURE__ */ e($e, { size: 48, sx: { marginBottom: 8 } }),
|
|
528
|
+
title: Fe.credit_over_time_title,
|
|
529
|
+
description: Fe.credit_over_time_zero_state_desc
|
|
530
|
+
}
|
|
531
|
+
}[t], u = {
|
|
532
|
+
savingsOverTime: {
|
|
533
|
+
title: i.key_indicators_save.savings_over_time,
|
|
534
|
+
valueKey: "available_cash"
|
|
535
|
+
},
|
|
536
|
+
debtOverTime: {
|
|
537
|
+
title: i.key_indicators_borrow.have_manageable_debt_drawer.debt_over_time,
|
|
538
|
+
valueKey: "debt_balance"
|
|
539
|
+
},
|
|
540
|
+
creditOverTime: {
|
|
541
|
+
title: Fe.credit_over_time_title,
|
|
542
|
+
valueKey: "credit_score"
|
|
543
|
+
}
|
|
544
|
+
}[t], m = dn(o, u.valueKey), g = Math.max(...o.map((D) => D[u.valueKey])), S = () => g >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : g >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: C, leftMargin: b } = S(), v = u.title, y = t === "creditOverTime";
|
|
545
|
+
let f;
|
|
546
|
+
if (y) {
|
|
547
|
+
const { color: D } = ut(
|
|
548
|
+
c?.credit_score ?? 0,
|
|
549
|
+
n,
|
|
550
|
+
i.credit_score_status
|
|
551
|
+
);
|
|
552
|
+
f = D;
|
|
553
|
+
}
|
|
554
|
+
return /* @__PURE__ */ e(K, { ref: a, sx: { backgroundColor: "background.paper" }, children: m.length >= 1 ? /* @__PURE__ */ s(_, { gap: 8, sx: { pl: 18 }, children: [
|
|
555
|
+
/* @__PURE__ */ e(k, { sx: { pb: 8, pt: 16 }, variant: "h3", children: v }),
|
|
556
|
+
/* @__PURE__ */ e(
|
|
557
|
+
ze,
|
|
558
|
+
{
|
|
559
|
+
areaColor: f,
|
|
560
|
+
axisColor: r.palette.divider,
|
|
561
|
+
baseline: "min",
|
|
562
|
+
chartFor: t,
|
|
563
|
+
colors: [r.palette.primary.main],
|
|
564
|
+
curveType: y ? "linear" : "natural",
|
|
565
|
+
datasets: m ? [m] : [],
|
|
566
|
+
height: 244,
|
|
567
|
+
labelFontColor: y ? "text.primary" : "",
|
|
568
|
+
labelFontSize: y ? 13 : void 0,
|
|
569
|
+
labels: [i.key_indicators_label],
|
|
570
|
+
margin: { left: b, top: y ? 25 : 15, right: 20 },
|
|
571
|
+
markStyles: (D) => y ? {
|
|
572
|
+
markLabelStyles: {
|
|
573
|
+
marginLeft: 16,
|
|
574
|
+
transform: D === m.length - 1 ? "translateX(-16px)" : "translateX(16px)",
|
|
575
|
+
fontWeight: 600
|
|
576
|
+
}
|
|
577
|
+
} : {},
|
|
578
|
+
maxRange: y ? 850 : void 0,
|
|
579
|
+
minRange: y ? 300 : void 0,
|
|
580
|
+
showArea: !0,
|
|
581
|
+
showAverage: !y,
|
|
582
|
+
showMark: !y,
|
|
583
|
+
showMarkLabel: y,
|
|
584
|
+
showXAxis: !0,
|
|
585
|
+
showYAxis: y,
|
|
586
|
+
showYAxisTicks: y,
|
|
587
|
+
useCustomMark: !0,
|
|
588
|
+
valueFormatterString: y ? void 0 : C,
|
|
589
|
+
width: d < 342 ? d - 48 : 342
|
|
590
|
+
}
|
|
591
|
+
)
|
|
592
|
+
] }) : /* @__PURE__ */ s(_, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
|
|
593
|
+
l.icon,
|
|
594
|
+
/* @__PURE__ */ e(k, { fontWeight: 600, variant: "body1", children: l.title }),
|
|
595
|
+
/* @__PURE__ */ e(k, { align: "center", variant: "subtitle1", children: l.description })
|
|
596
|
+
] }) });
|
|
597
|
+
}, Ke = x(xo), So = {
|
|
512
598
|
updated_score: "Updated Score"
|
|
513
|
-
},
|
|
514
|
-
const { healthScoreChange: t } =
|
|
515
|
-
return /* @__PURE__ */
|
|
599
|
+
}, Co = () => {
|
|
600
|
+
const { healthScoreChange: t } = P(), { user: r } = Q(), { availableWidth: n } = Cn(), { isSmallMobile: o } = He(n), [c, i] = h.useState(!1);
|
|
601
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 28 }, children: [
|
|
516
602
|
/* @__PURE__ */ e(
|
|
517
|
-
|
|
603
|
+
bo,
|
|
518
604
|
{
|
|
519
605
|
arcRadius: o ? 124 : 154,
|
|
520
606
|
footerCenterContent: t,
|
|
@@ -522,18 +608,19 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
522
608
|
size: o ? "M" : "L"
|
|
523
609
|
}
|
|
524
610
|
),
|
|
525
|
-
/* @__PURE__ */ e(
|
|
526
|
-
/* @__PURE__ */ e(
|
|
611
|
+
/* @__PURE__ */ e(W, { onClick: () => i(!0), variant: "contained", children: So.updated_score }),
|
|
612
|
+
/* @__PURE__ */ e(Rt, { isOpen: c, onClose: () => i(!1) }),
|
|
613
|
+
/* @__PURE__ */ e(Ke, { chartFor: "creditOverTime" })
|
|
527
614
|
] });
|
|
528
|
-
},
|
|
529
|
-
const { finstrong: r } =
|
|
615
|
+
}, vo = x(Co), Ie = ({ status: t }) => {
|
|
616
|
+
const { finstrong: r } = w(), n = pn(un[t]), o = {
|
|
530
617
|
GOOD: r.key_indicators_good,
|
|
531
618
|
FAIR: r.key_indicators_fair,
|
|
532
619
|
OFF_TRACK: r.key_indicators_off_track,
|
|
533
620
|
MISSING: r.key_indicators_missing
|
|
534
621
|
}[t];
|
|
535
622
|
return /* @__PURE__ */ e(
|
|
536
|
-
|
|
623
|
+
Tn,
|
|
537
624
|
{
|
|
538
625
|
label: /* @__PURE__ */ e(
|
|
539
626
|
k,
|
|
@@ -553,32 +640,32 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
553
640
|
variant: "filled"
|
|
554
641
|
}
|
|
555
642
|
);
|
|
556
|
-
},
|
|
643
|
+
}, wo = {
|
|
557
644
|
keep_strong_credit_score: "Keep a Strong Credit Score"
|
|
558
|
-
},
|
|
559
|
-
const { user: t } =
|
|
560
|
-
return /* @__PURE__ */
|
|
561
|
-
/* @__PURE__ */ e(
|
|
562
|
-
/* @__PURE__ */ e(
|
|
645
|
+
}, ko = () => {
|
|
646
|
+
const { user: t } = Q(), r = _t(t.credit_score ?? null);
|
|
647
|
+
return /* @__PURE__ */ s(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
648
|
+
/* @__PURE__ */ e(X, { children: wo.keep_strong_credit_score }),
|
|
649
|
+
/* @__PURE__ */ e(Ie, { status: r })
|
|
563
650
|
] });
|
|
564
|
-
},
|
|
651
|
+
}, Ao = x(ko), Do = ({
|
|
565
652
|
additionalContent: t,
|
|
566
653
|
connectTitle: r,
|
|
567
654
|
connectDescription: n,
|
|
568
655
|
children: o,
|
|
569
|
-
description:
|
|
570
|
-
drawerTitle:
|
|
656
|
+
description: c,
|
|
657
|
+
drawerTitle: i,
|
|
571
658
|
isOpen: a,
|
|
572
|
-
loadConnectAccountsCard:
|
|
573
|
-
onClose:
|
|
574
|
-
stickyComponent:
|
|
575
|
-
title:
|
|
659
|
+
loadConnectAccountsCard: d = !0,
|
|
660
|
+
onClose: l,
|
|
661
|
+
stickyComponent: p,
|
|
662
|
+
title: u,
|
|
576
663
|
drawerType: m
|
|
577
664
|
}) => {
|
|
578
|
-
const { finstrong: g } =
|
|
579
|
-
return
|
|
580
|
-
(
|
|
581
|
-
|
|
665
|
+
const { finstrong: g } = w(), { isCopyLoaded: S } = U();
|
|
666
|
+
return S ? /* @__PURE__ */ s(ie, { isOpen: a, onClose: l, title: i || g.key_indicators, children: [
|
|
667
|
+
(u || c) && /* @__PURE__ */ s(
|
|
668
|
+
_,
|
|
582
669
|
{
|
|
583
670
|
sx: {
|
|
584
671
|
backgroundColor: "background.paper",
|
|
@@ -586,27 +673,27 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
586
673
|
p: 24
|
|
587
674
|
},
|
|
588
675
|
children: [
|
|
589
|
-
|
|
590
|
-
|
|
676
|
+
u && typeof u == "string" ? /* @__PURE__ */ e(X, { children: u }) : u,
|
|
677
|
+
c && /* @__PURE__ */ e(k, { children: c })
|
|
591
678
|
]
|
|
592
679
|
}
|
|
593
680
|
),
|
|
594
|
-
|
|
595
|
-
|
|
681
|
+
p && /* @__PURE__ */ e(
|
|
682
|
+
A,
|
|
596
683
|
{
|
|
597
684
|
sx: {
|
|
598
685
|
position: "sticky",
|
|
599
686
|
top: 0,
|
|
600
687
|
zIndex: 1
|
|
601
688
|
},
|
|
602
|
-
children:
|
|
689
|
+
children: p
|
|
603
690
|
}
|
|
604
691
|
),
|
|
605
|
-
t && /* @__PURE__ */ e(
|
|
606
|
-
/* @__PURE__ */
|
|
692
|
+
t && /* @__PURE__ */ e(A, { children: t }),
|
|
693
|
+
/* @__PURE__ */ s(_, { sx: { p: 24, gap: 24 }, children: [
|
|
607
694
|
o,
|
|
608
|
-
|
|
609
|
-
|
|
695
|
+
d && /* @__PURE__ */ e(
|
|
696
|
+
Me,
|
|
610
697
|
{
|
|
611
698
|
description: n,
|
|
612
699
|
drawerType: m,
|
|
@@ -617,128 +704,128 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
617
704
|
)
|
|
618
705
|
] })
|
|
619
706
|
] }) : /* @__PURE__ */ e(te, {});
|
|
620
|
-
},
|
|
707
|
+
}, Bt = x(Do), Mo = ({
|
|
621
708
|
onClick: t,
|
|
622
709
|
shouldShowBalance: r = !0,
|
|
623
710
|
loadAccounts: n
|
|
624
711
|
}) => {
|
|
625
|
-
const { config: o } =
|
|
626
|
-
(
|
|
627
|
-
t?.(
|
|
712
|
+
const { config: o } = gt(), { accounts: c } = w(), { selectedAccounts: i } = U(), a = h.useCallback(
|
|
713
|
+
(l) => {
|
|
714
|
+
t?.(l);
|
|
628
715
|
},
|
|
629
716
|
[t]
|
|
630
|
-
),
|
|
631
|
-
() => Array.from(new Set(
|
|
632
|
-
(
|
|
717
|
+
), d = h.useMemo(
|
|
718
|
+
() => Array.from(new Set(i.map((l) => l.account_type))).filter(
|
|
719
|
+
(l) => n ? n.includes(l) : !0
|
|
633
720
|
),
|
|
634
|
-
[
|
|
721
|
+
[i, n]
|
|
635
722
|
);
|
|
636
|
-
return
|
|
637
|
-
const { accountsForType:
|
|
638
|
-
(m, g) => (g.account_type ===
|
|
723
|
+
return i.length ? /* @__PURE__ */ e(h.Fragment, { children: d.map((l) => {
|
|
724
|
+
const { accountsForType: p, totalBalanceForType: u } = i.reduce(
|
|
725
|
+
(m, g) => (g.account_type === l && (m.accountsForType.push(g), m.totalBalanceForType += g.balance || 0), m),
|
|
639
726
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
640
727
|
);
|
|
641
|
-
return /* @__PURE__ */
|
|
642
|
-
|
|
728
|
+
return /* @__PURE__ */ s(
|
|
729
|
+
kt,
|
|
643
730
|
{
|
|
644
|
-
subheader: /* @__PURE__ */ e(
|
|
645
|
-
/* @__PURE__ */ e(T, { bold: !0, variant: "caption", children:
|
|
646
|
-
r && /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children:
|
|
731
|
+
subheader: /* @__PURE__ */ e(Fn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ s(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
732
|
+
/* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: c.account_types[l] }),
|
|
733
|
+
r && /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: L(u, "0,0.00") })
|
|
647
734
|
] }) }),
|
|
648
735
|
sx: { bgcolor: "background.paper" },
|
|
649
736
|
children: [
|
|
650
|
-
|
|
651
|
-
const { firstValue:
|
|
737
|
+
p.map((m, g) => {
|
|
738
|
+
const { firstValue: S } = wt(m, c), C = ft(m, {
|
|
652
739
|
allowNickname: o?.show_account_nicknames_in_master
|
|
653
|
-
}), b = /* @__PURE__ */
|
|
654
|
-
/* @__PURE__ */ e(
|
|
740
|
+
}), b = /* @__PURE__ */ s(z, { children: [
|
|
741
|
+
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(pt, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
|
|
655
742
|
/* @__PURE__ */ e(
|
|
656
|
-
|
|
743
|
+
vt,
|
|
657
744
|
{
|
|
658
|
-
primary: `${
|
|
745
|
+
primary: `${C}${m.account_number ? ` *${m.account_number}` : ""}`,
|
|
659
746
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
660
747
|
}
|
|
661
748
|
),
|
|
662
|
-
r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children:
|
|
749
|
+
r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: L(S ?? 0, "0,0.00") })
|
|
663
750
|
] });
|
|
664
|
-
return /* @__PURE__ */
|
|
665
|
-
/* @__PURE__ */ e(
|
|
666
|
-
g !==
|
|
751
|
+
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
752
|
+
/* @__PURE__ */ e(St, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(On, { onClick: () => a(m), children: b }) : b }),
|
|
753
|
+
g !== p.length - 1 && /* @__PURE__ */ e(ee, { variant: "inset" })
|
|
667
754
|
] }, m.guid);
|
|
668
755
|
}),
|
|
669
|
-
/* @__PURE__ */ e(
|
|
756
|
+
/* @__PURE__ */ e(ee, {})
|
|
670
757
|
]
|
|
671
758
|
},
|
|
672
|
-
|
|
759
|
+
l
|
|
673
760
|
);
|
|
674
761
|
}) }) : null;
|
|
675
|
-
},
|
|
676
|
-
const n =
|
|
677
|
-
() =>
|
|
762
|
+
}, Lt = x(Mo), Io = ({ loadAccounts: t, loadMoreLabel: r }) => {
|
|
763
|
+
const n = G(), { config: o } = gt(), { connect: c, finstrong: i } = w(), { accounts: a } = w(), { selectedAccounts: d } = U(), [l, p] = h.useState(!1), [u, m] = h.useState(!1), g = h.useMemo(
|
|
764
|
+
() => d.filter(
|
|
678
765
|
(b) => t ? t.includes(b.account_type) : !0
|
|
679
766
|
),
|
|
680
|
-
[
|
|
681
|
-
),
|
|
682
|
-
const { firstValue:
|
|
683
|
-
return
|
|
767
|
+
[d, t]
|
|
768
|
+
), S = h.useMemo(() => g.slice(0, 3), [g]), C = (b) => {
|
|
769
|
+
const { firstValue: v } = wt(b, a);
|
|
770
|
+
return v;
|
|
684
771
|
};
|
|
685
|
-
return g.length >= 1 ? /* @__PURE__ */
|
|
686
|
-
/* @__PURE__ */ e(
|
|
687
|
-
/* @__PURE__ */
|
|
688
|
-
/* @__PURE__ */ e(
|
|
772
|
+
return g.length >= 1 ? /* @__PURE__ */ s(z, { children: [
|
|
773
|
+
/* @__PURE__ */ e(A, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: S.map((b, v) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
774
|
+
/* @__PURE__ */ s(St, { sx: { px: 24 }, children: [
|
|
775
|
+
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(pt, { alt: "MX", institutionGuid: b.institution_guid ?? "" }) }),
|
|
689
776
|
/* @__PURE__ */ e(
|
|
690
|
-
|
|
777
|
+
vt,
|
|
691
778
|
{
|
|
692
|
-
primary: `${
|
|
779
|
+
primary: `${ft(b, {
|
|
693
780
|
allowNickname: o?.show_account_nicknames_in_master
|
|
694
781
|
})}
|
|
695
782
|
${b.account_number ? ` *${b.account_number}` : ""}`,
|
|
696
783
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
697
784
|
}
|
|
698
785
|
),
|
|
699
|
-
/* @__PURE__ */ e(k, { bold: !0, variant: "body2", children:
|
|
786
|
+
/* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: L(C(b), "0,0.00") })
|
|
700
787
|
] }),
|
|
701
|
-
|
|
788
|
+
v < S.length - 1 && /* @__PURE__ */ e(ee, { variant: "inset" })
|
|
702
789
|
] }, b.guid)) }),
|
|
703
|
-
g.length > 3 && /* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */ e(
|
|
705
|
-
|
|
790
|
+
g.length > 3 && /* @__PURE__ */ s(z, { children: [
|
|
791
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
792
|
+
W,
|
|
706
793
|
{
|
|
707
794
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
708
|
-
onClick: () =>
|
|
795
|
+
onClick: () => p(!0),
|
|
709
796
|
size: "small",
|
|
710
797
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
711
|
-
children: /* @__PURE__ */
|
|
798
|
+
children: /* @__PURE__ */ s(T, { bold: !0, variant: "body1", children: [
|
|
712
799
|
g.length - 3,
|
|
713
800
|
" ",
|
|
714
801
|
r
|
|
715
802
|
] })
|
|
716
803
|
}
|
|
717
804
|
) }),
|
|
718
|
-
/* @__PURE__ */ e(ie, { isOpen:
|
|
805
|
+
/* @__PURE__ */ e(ie, { isOpen: l, onClose: () => p(!1), title: i.accounts, children: /* @__PURE__ */ e(Lt, { loadAccounts: t }) })
|
|
719
806
|
] })
|
|
720
|
-
] }) : /* @__PURE__ */
|
|
721
|
-
/* @__PURE__ */ e(
|
|
722
|
-
|
|
807
|
+
] }) : /* @__PURE__ */ s(z, { children: [
|
|
808
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
809
|
+
W,
|
|
723
810
|
{
|
|
724
811
|
onClick: () => m(!0),
|
|
725
812
|
size: "small",
|
|
726
813
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
727
814
|
variant: "contained",
|
|
728
|
-
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children:
|
|
815
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: i.connect_more_accounts_button })
|
|
729
816
|
}
|
|
730
817
|
) }),
|
|
731
818
|
/* @__PURE__ */ e(
|
|
732
819
|
ne,
|
|
733
820
|
{
|
|
734
821
|
onClose: () => m(!1),
|
|
735
|
-
showConnectWidget:
|
|
736
|
-
title:
|
|
822
|
+
showConnectWidget: u,
|
|
823
|
+
title: c.mini_title
|
|
737
824
|
}
|
|
738
825
|
)
|
|
739
826
|
] });
|
|
740
|
-
},
|
|
741
|
-
|
|
827
|
+
}, $t = x(Io), he = ({ balance: t, title: r, sx: n }) => /* @__PURE__ */ s(
|
|
828
|
+
_,
|
|
742
829
|
{
|
|
743
830
|
sx: {
|
|
744
831
|
alignItems: "center",
|
|
@@ -750,13 +837,13 @@ const bo = ({ isOpen: t, onClose: r }) => {
|
|
|
750
837
|
...n
|
|
751
838
|
},
|
|
752
839
|
children: [
|
|
753
|
-
typeof t == "number" ? /* @__PURE__ */ e(k, { variant: "h2", children:
|
|
840
|
+
typeof t == "number" ? /* @__PURE__ */ e(k, { variant: "h2", children: L(t, "0,0.00") }) : t,
|
|
754
841
|
/* @__PURE__ */ e(k, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: r })
|
|
755
842
|
]
|
|
756
843
|
}
|
|
757
844
|
);
|
|
758
|
-
var I = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(I || {}),
|
|
759
|
-
const
|
|
845
|
+
var I = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(I || {}), fe = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(fe || {}), 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 || {});
|
|
846
|
+
const B = {
|
|
760
847
|
bi_weekly: "Bi-Weekly",
|
|
761
848
|
calculate: "Calculate",
|
|
762
849
|
daily: "Daily",
|
|
@@ -775,97 +862,97 @@ const R = {
|
|
|
775
862
|
suggested_goal: "Suggested Goal: $25,000",
|
|
776
863
|
weekly: "Weekly",
|
|
777
864
|
years: "Years"
|
|
778
|
-
}, Mo = [
|
|
779
|
-
{ id: q.Monthly, label: R.monthly },
|
|
780
|
-
{ id: q.BiWeekly, label: R.bi_weekly },
|
|
781
|
-
{ id: q.Weekly, label: R.weekly },
|
|
782
|
-
{ id: q.Daily, label: R.daily }
|
|
783
|
-
], Io = {
|
|
784
|
-
[q.Monthly]: R.estimated_period_monthly,
|
|
785
|
-
[q.BiWeekly]: R.estimated_period_bi_weekly,
|
|
786
|
-
[q.Weekly]: R.estimated_period_weekly,
|
|
787
|
-
[q.Daily]: R.estimated_period_daily
|
|
788
865
|
}, To = [
|
|
789
|
-
{ id:
|
|
790
|
-
{ id:
|
|
791
|
-
{ id:
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
866
|
+
{ id: q.Monthly, label: B.monthly },
|
|
867
|
+
{ id: q.BiWeekly, label: B.bi_weekly },
|
|
868
|
+
{ id: q.Weekly, label: B.weekly },
|
|
869
|
+
{ id: q.Daily, label: B.daily }
|
|
870
|
+
], Oo = {
|
|
871
|
+
[q.Monthly]: B.estimated_period_monthly,
|
|
872
|
+
[q.BiWeekly]: B.estimated_period_bi_weekly,
|
|
873
|
+
[q.Weekly]: B.estimated_period_weekly,
|
|
874
|
+
[q.Daily]: B.estimated_period_daily
|
|
875
|
+
}, Fo = [
|
|
876
|
+
{ id: fe.Months, label: B.months },
|
|
877
|
+
{ id: fe.Years, label: B.years },
|
|
878
|
+
{ id: fe.Days, label: B.days }
|
|
879
|
+
], Po = ({ total: t }) => {
|
|
880
|
+
const r = Math.ceil((t + 1) / 1e3) * 1e3, [n, o] = h.useState(0), [c, i] = h.useState(qe(t)), [a, d] = h.useState(
|
|
881
|
+
qe(t)
|
|
882
|
+
), [l, p] = h.useState(r), [u, m] = h.useState(_n(t)), [g, S] = h.useState(fe.Months);
|
|
796
883
|
h.useEffect(() => {
|
|
797
884
|
o(
|
|
798
|
-
|
|
885
|
+
Ze({
|
|
799
886
|
contribution: a,
|
|
800
|
-
goalAmount:
|
|
801
|
-
goalPeriod:
|
|
887
|
+
goalAmount: l,
|
|
888
|
+
goalPeriod: u,
|
|
802
889
|
targetPeriod: g,
|
|
803
890
|
totalSaved: t
|
|
804
891
|
})
|
|
805
|
-
),
|
|
892
|
+
), i(a);
|
|
806
893
|
}, []);
|
|
807
|
-
const
|
|
894
|
+
const C = (b) => {
|
|
808
895
|
b.preventDefault(), o(
|
|
809
|
-
|
|
896
|
+
Ze({
|
|
810
897
|
contribution: a,
|
|
811
|
-
goalAmount:
|
|
812
|
-
goalPeriod:
|
|
898
|
+
goalAmount: l,
|
|
899
|
+
goalPeriod: u,
|
|
813
900
|
targetPeriod: g,
|
|
814
901
|
totalSaved: t
|
|
815
902
|
})
|
|
816
|
-
),
|
|
903
|
+
), i(a);
|
|
817
904
|
};
|
|
818
|
-
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit:
|
|
905
|
+
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit: C, children: /* @__PURE__ */ s(_, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
819
906
|
/* @__PURE__ */ e(
|
|
820
|
-
|
|
907
|
+
he,
|
|
821
908
|
{
|
|
822
|
-
balance: /* @__PURE__ */
|
|
823
|
-
/* @__PURE__ */ e(T, { variant: "h2", children:
|
|
824
|
-
/* @__PURE__ */
|
|
909
|
+
balance: /* @__PURE__ */ s(_, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
910
|
+
/* @__PURE__ */ e(T, { variant: "h2", children: L(n, "0,0") }),
|
|
911
|
+
/* @__PURE__ */ s(T, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
825
912
|
"/",
|
|
826
|
-
|
|
913
|
+
Oo[c]
|
|
827
914
|
] })
|
|
828
915
|
] }),
|
|
829
|
-
title:
|
|
916
|
+
title: B.estimated_contribution
|
|
830
917
|
}
|
|
831
918
|
),
|
|
832
919
|
/* @__PURE__ */ e(
|
|
833
|
-
|
|
920
|
+
ke,
|
|
834
921
|
{
|
|
835
|
-
"aria-label":
|
|
836
|
-
helperText:
|
|
922
|
+
"aria-label": B.savings_goal,
|
|
923
|
+
helperText: B.suggested_goal,
|
|
837
924
|
inputProps: {
|
|
838
925
|
noValidate: !0,
|
|
839
926
|
pattern: "[0-9]*"
|
|
840
927
|
},
|
|
841
|
-
label:
|
|
928
|
+
label: B.savings_goal,
|
|
842
929
|
onChange: (b) => {
|
|
843
|
-
b.target.value &&
|
|
930
|
+
b.target.value && p(Number(b.target.value.replace(/[^0-9]/g, "")));
|
|
844
931
|
},
|
|
845
|
-
value:
|
|
932
|
+
value: l ? L(l, "0,0") : ""
|
|
846
933
|
}
|
|
847
934
|
),
|
|
848
935
|
/* @__PURE__ */ e(
|
|
849
|
-
|
|
936
|
+
Je,
|
|
850
937
|
{
|
|
851
|
-
label:
|
|
852
|
-
onChange:
|
|
853
|
-
options:
|
|
938
|
+
label: B.how_often_contribute,
|
|
939
|
+
onChange: d,
|
|
940
|
+
options: To,
|
|
854
941
|
required: !0,
|
|
855
942
|
value: a
|
|
856
943
|
}
|
|
857
944
|
),
|
|
858
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ s(_, { sx: { flexDirection: "row" }, children: [
|
|
859
946
|
/* @__PURE__ */ e(
|
|
860
|
-
|
|
947
|
+
ke,
|
|
861
948
|
{
|
|
862
|
-
"aria-label":
|
|
949
|
+
"aria-label": B.meet_your_goal_within,
|
|
863
950
|
fullWidth: !0,
|
|
864
951
|
inputProps: {
|
|
865
952
|
noValidate: !0,
|
|
866
953
|
pattern: "[0-9]*"
|
|
867
954
|
},
|
|
868
|
-
label:
|
|
955
|
+
label: B.meet_your_goal_within,
|
|
869
956
|
onChange: (b) => m(Number(b.target.value)),
|
|
870
957
|
sx: {
|
|
871
958
|
"& .MuiInputBase-root": {
|
|
@@ -876,11 +963,11 @@ const R = {
|
|
|
876
963
|
}
|
|
877
964
|
}
|
|
878
965
|
},
|
|
879
|
-
value:
|
|
966
|
+
value: u
|
|
880
967
|
}
|
|
881
968
|
),
|
|
882
969
|
/* @__PURE__ */ e(
|
|
883
|
-
|
|
970
|
+
A,
|
|
884
971
|
{
|
|
885
972
|
sx: {
|
|
886
973
|
"& .MuiInputBase-root": {
|
|
@@ -891,72 +978,72 @@ const R = {
|
|
|
891
978
|
}
|
|
892
979
|
}
|
|
893
980
|
},
|
|
894
|
-
children: /* @__PURE__ */ e(
|
|
981
|
+
children: /* @__PURE__ */ e(Je, { label: "", onChange: S, options: Fo, value: g })
|
|
895
982
|
}
|
|
896
983
|
)
|
|
897
984
|
] }),
|
|
898
|
-
/* @__PURE__ */ e(
|
|
985
|
+
/* @__PURE__ */ e(W, { fullWidth: !0, onClick: C, type: "submit", variant: "contained", children: B.calculate })
|
|
899
986
|
] }) }) });
|
|
900
|
-
},
|
|
987
|
+
}, Ro = x(Po), ve = {
|
|
901
988
|
connect_accounts: "Connect Accounts",
|
|
902
989
|
more_accounts: "More Accounts",
|
|
903
990
|
your_savings: "Your Savings"
|
|
904
|
-
},
|
|
905
|
-
const { savingsAccounts: t } =
|
|
906
|
-
() => t.reduce((
|
|
991
|
+
}, Bo = () => {
|
|
992
|
+
const { savingsAccounts: t } = xe(), [r, n] = h.useState(!1), o = h.useMemo(
|
|
993
|
+
() => t.reduce((c, i) => c + (i.balance ?? 0), 0),
|
|
907
994
|
[t]
|
|
908
995
|
);
|
|
909
|
-
return /* @__PURE__ */
|
|
910
|
-
/* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */
|
|
911
|
-
/* @__PURE__ */ e(
|
|
912
|
-
t.length ? /* @__PURE__ */ e(
|
|
996
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 24 }, children: [
|
|
997
|
+
/* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ s(_, { sx: { gap: 16 }, children: [
|
|
998
|
+
/* @__PURE__ */ e(he, { balance: o, title: ve.your_savings }),
|
|
999
|
+
t.length ? /* @__PURE__ */ e($t, { loadAccounts: [Be.SAVINGS], loadMoreLabel: ve.connect_accounts }) : /* @__PURE__ */ e(Rn, { onClick: () => n(!0), variant: "contained", children: ve.connect_accounts })
|
|
913
1000
|
] }) }),
|
|
914
|
-
/* @__PURE__ */ e(
|
|
1001
|
+
/* @__PURE__ */ e(Ro, { total: o }),
|
|
915
1002
|
/* @__PURE__ */ e(
|
|
916
1003
|
ne,
|
|
917
1004
|
{
|
|
918
1005
|
onClose: () => n(!1),
|
|
919
1006
|
showConnectWidget: r,
|
|
920
|
-
title:
|
|
1007
|
+
title: ve.connect_accounts
|
|
921
1008
|
}
|
|
922
1009
|
)
|
|
923
1010
|
] });
|
|
924
|
-
},
|
|
925
|
-
({ label: t, value: r, status: n, bottomComponent: o, statusBarData:
|
|
926
|
-
const { finstrong:
|
|
1011
|
+
}, Lo = x(Bo), Te = x(
|
|
1012
|
+
({ label: t, value: r, status: n, bottomComponent: o, statusBarData: c = [] }) => {
|
|
1013
|
+
const { finstrong: i } = w(), a = {
|
|
927
1014
|
GOOD: {
|
|
928
1015
|
backgroundColor: "success.lighter",
|
|
929
1016
|
color: "success.main",
|
|
930
1017
|
progressBarColor: "primary.main",
|
|
931
|
-
label:
|
|
1018
|
+
label: i?.key_indicators_good
|
|
932
1019
|
},
|
|
933
1020
|
FAIR: {
|
|
934
1021
|
backgroundColor: "warning.lighter",
|
|
935
1022
|
color: "warning.main",
|
|
936
1023
|
progressBarColor: "warning.main",
|
|
937
|
-
label:
|
|
1024
|
+
label: i?.key_indicators_fair
|
|
938
1025
|
},
|
|
939
1026
|
OFF_TRACK: {
|
|
940
1027
|
backgroundColor: "error.lighter",
|
|
941
1028
|
color: "error.main",
|
|
942
1029
|
progressBarColor: "error.main",
|
|
943
|
-
label:
|
|
1030
|
+
label: i?.key_indicators_off_track
|
|
944
1031
|
},
|
|
945
1032
|
MISSING: {
|
|
946
1033
|
backgroundColor: "divider",
|
|
947
1034
|
color: "text.secondary",
|
|
948
1035
|
progressBarColor: "text.secondary",
|
|
949
|
-
label:
|
|
1036
|
+
label: i?.key_indicators_missing
|
|
950
1037
|
}
|
|
951
|
-
}[n],
|
|
952
|
-
color:
|
|
953
|
-
percentage:
|
|
1038
|
+
}[n], d = c.map((l, p) => c.length === 2 ? {
|
|
1039
|
+
color: p === 0 ? "primary.main" : l.color || a?.progressBarColor,
|
|
1040
|
+
percentage: l.percentage
|
|
954
1041
|
} : {
|
|
955
|
-
color:
|
|
956
|
-
percentage:
|
|
1042
|
+
color: l.color || a?.progressBarColor,
|
|
1043
|
+
percentage: l.percentage
|
|
957
1044
|
});
|
|
958
|
-
return /* @__PURE__ */
|
|
959
|
-
|
|
1045
|
+
return /* @__PURE__ */ s(
|
|
1046
|
+
_,
|
|
960
1047
|
{
|
|
961
1048
|
sx: {
|
|
962
1049
|
backgroundColor: "background.paper",
|
|
@@ -967,10 +1054,10 @@ const R = {
|
|
|
967
1054
|
borderColor: "divider"
|
|
968
1055
|
},
|
|
969
1056
|
children: [
|
|
970
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ s(_, { sx: { gap: 2 }, children: [
|
|
971
1058
|
/* @__PURE__ */ e(T, { variant: "body2", children: t }),
|
|
972
|
-
/* @__PURE__ */
|
|
973
|
-
|
|
1059
|
+
/* @__PURE__ */ s(
|
|
1060
|
+
_,
|
|
974
1061
|
{
|
|
975
1062
|
sx: {
|
|
976
1063
|
alignItems: "center",
|
|
@@ -980,29 +1067,29 @@ const R = {
|
|
|
980
1067
|
},
|
|
981
1068
|
children: [
|
|
982
1069
|
/* @__PURE__ */ e(De, { children: r }),
|
|
983
|
-
/* @__PURE__ */ e(
|
|
1070
|
+
/* @__PURE__ */ e(Ie, { status: n })
|
|
984
1071
|
]
|
|
985
1072
|
}
|
|
986
1073
|
)
|
|
987
1074
|
] }),
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
/* @__PURE__ */ e(
|
|
1075
|
+
/* @__PURE__ */ s(_, { children: [
|
|
1076
|
+
/* @__PURE__ */ e(Bn, { data: d, height: 16 }),
|
|
990
1077
|
o
|
|
991
1078
|
] })
|
|
992
1079
|
]
|
|
993
1080
|
}
|
|
994
1081
|
);
|
|
995
1082
|
}
|
|
996
|
-
),
|
|
1083
|
+
), $o = {
|
|
997
1084
|
sticky_label: "You have saved"
|
|
998
|
-
},
|
|
999
|
-
const { healthScore: t } =
|
|
1085
|
+
}, Wo = ["$0", "$250", "$500", "$750", "$1k"], Eo = () => {
|
|
1086
|
+
const { healthScore: t } = P(), r = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = hn(r), o = ht(r);
|
|
1000
1087
|
return /* @__PURE__ */ e(
|
|
1001
|
-
|
|
1088
|
+
Te,
|
|
1002
1089
|
{
|
|
1003
|
-
bottomComponent: /* @__PURE__ */ e(
|
|
1090
|
+
bottomComponent: /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Wo.map((c) => /* @__PURE__ */ s(_, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1004
1091
|
/* @__PURE__ */ e(
|
|
1005
|
-
|
|
1092
|
+
ee,
|
|
1006
1093
|
{
|
|
1007
1094
|
orientation: "vertical",
|
|
1008
1095
|
sx: {
|
|
@@ -1012,122 +1099,122 @@ const R = {
|
|
|
1012
1099
|
}
|
|
1013
1100
|
}
|
|
1014
1101
|
),
|
|
1015
|
-
/* @__PURE__ */ e(T, { variant: "caption", children:
|
|
1016
|
-
] },
|
|
1017
|
-
label:
|
|
1102
|
+
/* @__PURE__ */ e(T, { variant: "caption", children: c })
|
|
1103
|
+
] }, c)) }),
|
|
1104
|
+
label: $o.sticky_label,
|
|
1018
1105
|
status: o,
|
|
1019
1106
|
statusBarData: [
|
|
1020
1107
|
{
|
|
1021
1108
|
percentage: n
|
|
1022
1109
|
}
|
|
1023
1110
|
],
|
|
1024
|
-
value:
|
|
1111
|
+
value: L(r ?? 0, "0,0.00")
|
|
1025
1112
|
}
|
|
1026
1113
|
);
|
|
1027
|
-
},
|
|
1114
|
+
}, zo = x(Eo), ot = 65, rt = 34, Go = ({
|
|
1028
1115
|
transactions: t,
|
|
1029
1116
|
bgcolor: r,
|
|
1030
1117
|
height: n = "calc(100dvh - 36px)",
|
|
1031
1118
|
loader: o = /* @__PURE__ */ e(te, { label: "Loading", size: 40 }),
|
|
1032
|
-
onClick:
|
|
1033
|
-
showInsights:
|
|
1119
|
+
onClick: c,
|
|
1120
|
+
showInsights: i = !1,
|
|
1034
1121
|
showLoader: a = !1,
|
|
1035
|
-
width:
|
|
1036
|
-
zeroState:
|
|
1122
|
+
width: d = "100%",
|
|
1123
|
+
zeroState: l = /* @__PURE__ */ e(Wn, {})
|
|
1037
1124
|
}) => {
|
|
1038
|
-
const { getCategoryName:
|
|
1039
|
-
const
|
|
1040
|
-
if (
|
|
1041
|
-
|
|
1125
|
+
const { getCategoryName: p } = Ee(), { onEvent: u } = vn(), { categories: m } = w(), { clearExpandedSplits: g, setShowInsights: S, toggleSplit: C } = $n(), b = (f) => {
|
|
1126
|
+
const D = t.find((F) => F.guid === f);
|
|
1127
|
+
if (D?.has_been_split) {
|
|
1128
|
+
C(D.guid);
|
|
1042
1129
|
return;
|
|
1043
1130
|
}
|
|
1044
|
-
|
|
1045
|
-
account_guid:
|
|
1046
|
-
transaction_guid:
|
|
1047
|
-
}),
|
|
1048
|
-
},
|
|
1131
|
+
u(En.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
1132
|
+
account_guid: D?.account_guid,
|
|
1133
|
+
transaction_guid: f
|
|
1134
|
+
}), c?.(f);
|
|
1135
|
+
}, v = h.useRef(null), y = Ln({
|
|
1049
1136
|
count: t.length,
|
|
1050
|
-
getScrollElement: () =>
|
|
1051
|
-
estimateSize: (
|
|
1137
|
+
getScrollElement: () => v.current,
|
|
1138
|
+
estimateSize: (f) => ot + (Le(f, t) ? rt : 0),
|
|
1052
1139
|
overscan: 5
|
|
1053
1140
|
});
|
|
1054
|
-
return h.useEffect(() =>
|
|
1055
|
-
|
|
1141
|
+
return h.useEffect(() => y.measure(), [t]), h.useEffect(() => S(i), [i]), h.useEffect(() => () => g(), []), /* @__PURE__ */ e(kt, { sx: { width: d }, children: /* @__PURE__ */ e(A, { height: n, overflow: "auto", ref: v, width: d, children: /* @__PURE__ */ s(
|
|
1142
|
+
A,
|
|
1056
1143
|
{
|
|
1057
1144
|
height: (
|
|
1058
1145
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
1059
|
-
|
|
1146
|
+
y.getVirtualItems().length === 0 ? "auto" : y.getTotalSize()
|
|
1060
1147
|
),
|
|
1061
1148
|
position: "relative",
|
|
1062
1149
|
width: "100%",
|
|
1063
1150
|
children: [
|
|
1064
1151
|
a && o,
|
|
1065
|
-
!a &&
|
|
1066
|
-
!a &&
|
|
1067
|
-
const
|
|
1068
|
-
return /* @__PURE__ */
|
|
1069
|
-
|
|
1152
|
+
!a && y.getVirtualItems().length === 0 && l,
|
|
1153
|
+
!a && y.getVirtualItems().length > 0 && y.getVirtualItems().map((f) => {
|
|
1154
|
+
const D = t[f.index], F = Le(f.index, t), H = At(f.index, t), O = ot + (F ? rt : 0);
|
|
1155
|
+
return /* @__PURE__ */ s(
|
|
1156
|
+
A,
|
|
1070
1157
|
{
|
|
1071
1158
|
sx: {
|
|
1072
|
-
height:
|
|
1159
|
+
height: O,
|
|
1073
1160
|
position: "absolute",
|
|
1074
|
-
transform: `translateY(${
|
|
1161
|
+
transform: `translateY(${f.start}px)`,
|
|
1075
1162
|
width: "100%"
|
|
1076
1163
|
},
|
|
1077
1164
|
children: [
|
|
1078
|
-
|
|
1165
|
+
F && /* @__PURE__ */ e(Dt, { bgcolor: r, children: Ne(D.date) }),
|
|
1079
1166
|
/* @__PURE__ */ e(
|
|
1080
|
-
|
|
1167
|
+
Mt,
|
|
1081
1168
|
{
|
|
1082
|
-
...
|
|
1169
|
+
...c && { onClick: b },
|
|
1083
1170
|
transaction: {
|
|
1084
|
-
...
|
|
1085
|
-
category: m.default_categories[
|
|
1171
|
+
...D,
|
|
1172
|
+
category: m.default_categories[D.top_level_category_guid]?.replace(
|
|
1086
1173
|
/&/g,
|
|
1087
1174
|
"&"
|
|
1088
|
-
) ??
|
|
1175
|
+
) ?? p(D.top_level_category_guid)
|
|
1089
1176
|
}
|
|
1090
1177
|
}
|
|
1091
1178
|
),
|
|
1092
|
-
/* @__PURE__ */ e(
|
|
1179
|
+
/* @__PURE__ */ e(ee, { sx: { ml: H ? 24 : 0 } })
|
|
1093
1180
|
]
|
|
1094
1181
|
},
|
|
1095
|
-
|
|
1182
|
+
D.guid
|
|
1096
1183
|
);
|
|
1097
1184
|
})
|
|
1098
1185
|
]
|
|
1099
1186
|
}
|
|
1100
1187
|
) }) });
|
|
1101
|
-
},
|
|
1188
|
+
}, Ho = x(Go), Oe = ({
|
|
1102
1189
|
transactions: t = [],
|
|
1103
1190
|
amountColor: r = "success.main",
|
|
1104
1191
|
amountPosition: n = "center",
|
|
1105
|
-
formatDate: o =
|
|
1106
|
-
secondaryIcon:
|
|
1192
|
+
formatDate: o = Ne,
|
|
1193
|
+
secondaryIcon: c
|
|
1107
1194
|
}) => {
|
|
1108
|
-
const
|
|
1109
|
-
return !t || t.length === 0 ? /* @__PURE__ */
|
|
1110
|
-
/* @__PURE__ */ e(
|
|
1111
|
-
|
|
1195
|
+
const i = G(), { connect: a, finstrong: d } = w(), [l, p] = h.useState(!1), [u, m] = h.useState(!1), g = 3, S = t.length > g, C = t.length - g;
|
|
1196
|
+
return !t || t.length === 0 ? /* @__PURE__ */ s(z, { children: [
|
|
1197
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
1198
|
+
W,
|
|
1112
1199
|
{
|
|
1113
1200
|
onClick: () => m(!0),
|
|
1114
1201
|
size: "small",
|
|
1115
1202
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1116
1203
|
variant: "contained",
|
|
1117
|
-
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children:
|
|
1204
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: d.connect_more_accounts_button })
|
|
1118
1205
|
}
|
|
1119
1206
|
) }),
|
|
1120
1207
|
/* @__PURE__ */ e(
|
|
1121
1208
|
ne,
|
|
1122
1209
|
{
|
|
1123
1210
|
onClose: () => m(!1),
|
|
1124
|
-
showConnectWidget:
|
|
1211
|
+
showConnectWidget: u,
|
|
1125
1212
|
title: a.mini_title
|
|
1126
1213
|
}
|
|
1127
1214
|
)
|
|
1128
|
-
] }) : /* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */ e(
|
|
1130
|
-
|
|
1215
|
+
] }) : /* @__PURE__ */ s(_, { sx: { gap: 16 }, children: [
|
|
1216
|
+
/* @__PURE__ */ e(A, { sx: { border: `1px solid ${i.palette.divider}`, borderRadius: 2 }, children: t.slice(0, g).map((b, v) => /* @__PURE__ */ s(
|
|
1217
|
+
_,
|
|
1131
1218
|
{
|
|
1132
1219
|
sx: {
|
|
1133
1220
|
alignItems: "center",
|
|
@@ -1137,81 +1224,81 @@ const R = {
|
|
|
1137
1224
|
pt: 14
|
|
1138
1225
|
},
|
|
1139
1226
|
children: [
|
|
1140
|
-
/* @__PURE__ */ e(
|
|
1141
|
-
|
|
1227
|
+
/* @__PURE__ */ e(_, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
|
|
1228
|
+
rn,
|
|
1142
1229
|
{
|
|
1143
1230
|
categoryGuid: b.top_level_category_guid || "",
|
|
1144
1231
|
merchantGuid: b.merchant_guid || "",
|
|
1145
1232
|
size: 32
|
|
1146
1233
|
}
|
|
1147
1234
|
) }),
|
|
1148
|
-
/* @__PURE__ */
|
|
1149
|
-
|
|
1235
|
+
/* @__PURE__ */ s(
|
|
1236
|
+
_,
|
|
1150
1237
|
{
|
|
1151
1238
|
sx: {
|
|
1152
1239
|
alignItems: n,
|
|
1153
1240
|
flexDirection: "row",
|
|
1154
1241
|
gap: 12,
|
|
1155
1242
|
justifyContent: "space-between",
|
|
1156
|
-
...
|
|
1157
|
-
borderBottom: `1px solid ${
|
|
1243
|
+
...v < Math.min(t.length, g) - 1 && {
|
|
1244
|
+
borderBottom: `1px solid ${i.palette.divider}`
|
|
1158
1245
|
},
|
|
1159
1246
|
pb: 14,
|
|
1160
1247
|
pr: 24,
|
|
1161
1248
|
width: "100%"
|
|
1162
1249
|
},
|
|
1163
1250
|
children: [
|
|
1164
|
-
/* @__PURE__ */
|
|
1251
|
+
/* @__PURE__ */ s(_, { sx: { gap: 4 }, children: [
|
|
1165
1252
|
/* @__PURE__ */ e(k, { bold: !0, variant: "body1", children: b.description }),
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
!!
|
|
1253
|
+
/* @__PURE__ */ s(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1254
|
+
!!c && c,
|
|
1168
1255
|
/* @__PURE__ */ e(T, { variant: "caption", children: o(b.date) })
|
|
1169
1256
|
] })
|
|
1170
1257
|
] }),
|
|
1171
|
-
/* @__PURE__ */ e(k, { bold: !0, sx: { color: r, flexShrink: 0 }, variant: "body1", children:
|
|
1258
|
+
/* @__PURE__ */ e(k, { bold: !0, sx: { color: r, flexShrink: 0 }, variant: "body1", children: L(b.amount, "0,0.00") })
|
|
1172
1259
|
]
|
|
1173
1260
|
},
|
|
1174
|
-
b.guid ||
|
|
1261
|
+
b.guid || v
|
|
1175
1262
|
)
|
|
1176
1263
|
]
|
|
1177
1264
|
},
|
|
1178
|
-
|
|
1265
|
+
v
|
|
1179
1266
|
)) }),
|
|
1180
|
-
|
|
1181
|
-
/* @__PURE__ */ e(
|
|
1182
|
-
|
|
1267
|
+
S && /* @__PURE__ */ s(z, { children: [
|
|
1268
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
1269
|
+
W,
|
|
1183
1270
|
{
|
|
1184
1271
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1185
|
-
onClick: () =>
|
|
1272
|
+
onClick: () => p(!0),
|
|
1186
1273
|
size: "small",
|
|
1187
1274
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1188
|
-
children: /* @__PURE__ */
|
|
1189
|
-
|
|
1275
|
+
children: /* @__PURE__ */ s(T, { bold: !0, variant: "body1", children: [
|
|
1276
|
+
C,
|
|
1190
1277
|
" ",
|
|
1191
|
-
|
|
1278
|
+
d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1192
1279
|
] })
|
|
1193
1280
|
}
|
|
1194
1281
|
) }),
|
|
1195
1282
|
/* @__PURE__ */ e(
|
|
1196
1283
|
ie,
|
|
1197
1284
|
{
|
|
1198
|
-
isOpen:
|
|
1199
|
-
onClose: () =>
|
|
1200
|
-
title:
|
|
1201
|
-
children: /* @__PURE__ */ e(
|
|
1285
|
+
isOpen: l,
|
|
1286
|
+
onClose: () => p(!1),
|
|
1287
|
+
title: d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1288
|
+
children: /* @__PURE__ */ e(Ho, { transactions: t })
|
|
1202
1289
|
}
|
|
1203
1290
|
)
|
|
1204
1291
|
] })
|
|
1205
1292
|
] });
|
|
1206
|
-
},
|
|
1293
|
+
}, No = () => {
|
|
1207
1294
|
const {
|
|
1208
1295
|
finstrong: {
|
|
1209
1296
|
key_indicators_spend: { pay_bills_on_time_drawer: t }
|
|
1210
1297
|
}
|
|
1211
|
-
} =
|
|
1298
|
+
} = w(), { getSpendingFeeTransactions: r, allTransactions: n } = P();
|
|
1212
1299
|
return h.useEffect(() => {
|
|
1213
1300
|
r().finally();
|
|
1214
|
-
}, []), /* @__PURE__ */ e(
|
|
1301
|
+
}, []), /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ s(
|
|
1215
1302
|
K,
|
|
1216
1303
|
{
|
|
1217
1304
|
sx: {
|
|
@@ -1223,14 +1310,14 @@ const R = {
|
|
|
1223
1310
|
width: "100%"
|
|
1224
1311
|
},
|
|
1225
1312
|
children: [
|
|
1226
|
-
/* @__PURE__ */ e(
|
|
1227
|
-
/* @__PURE__ */
|
|
1228
|
-
/* @__PURE__ */ e(
|
|
1313
|
+
/* @__PURE__ */ e(qt, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1314
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1315
|
+
/* @__PURE__ */ e(X, { children: t.pay_bills_on_time_zero_fees_title }),
|
|
1229
1316
|
/* @__PURE__ */ e(k, { variant: "subtitle1", children: t.pay_bills_on_time_zero_fees_description })
|
|
1230
1317
|
] })
|
|
1231
1318
|
]
|
|
1232
1319
|
}
|
|
1233
|
-
) : /* @__PURE__ */
|
|
1320
|
+
) : /* @__PURE__ */ s(
|
|
1234
1321
|
K,
|
|
1235
1322
|
{
|
|
1236
1323
|
sx: {
|
|
@@ -1239,24 +1326,24 @@ const R = {
|
|
|
1239
1326
|
backgroundColor: "background.paper"
|
|
1240
1327
|
},
|
|
1241
1328
|
children: [
|
|
1242
|
-
/* @__PURE__ */ e(
|
|
1329
|
+
/* @__PURE__ */ e(X, { sx: { textAlign: "left", pb: 8 }, children: t.pay_bills_on_time_sticky_fee_count }),
|
|
1243
1330
|
/* @__PURE__ */ e(
|
|
1244
|
-
|
|
1331
|
+
Oe,
|
|
1245
1332
|
{
|
|
1246
1333
|
amountColor: "text.primary",
|
|
1247
1334
|
amountPosition: "flex-start",
|
|
1248
|
-
formatDate: (o) =>
|
|
1249
|
-
secondaryIcon: /* @__PURE__ */ e(
|
|
1335
|
+
formatDate: (o) => Mn(new Date(o * 1e3), In.MONTH_DAY),
|
|
1336
|
+
secondaryIcon: /* @__PURE__ */ e(Zt, { color: "error", filled: !0, size: 12 }),
|
|
1250
1337
|
transactions: n.spendingFee
|
|
1251
1338
|
}
|
|
1252
1339
|
)
|
|
1253
1340
|
]
|
|
1254
1341
|
}
|
|
1255
1342
|
) });
|
|
1256
|
-
},
|
|
1257
|
-
const { healthScore: t } =
|
|
1258
|
-
return /* @__PURE__ */
|
|
1259
|
-
|
|
1343
|
+
}, Ko = x(No), jo = () => {
|
|
1344
|
+
const { healthScore: t } = P(), { finstrong: r } = w(), { key_indicators_spend: n } = r, { pay_bills_on_time_drawer: o } = n, c = mn(t.spending_fee_transaction_count);
|
|
1345
|
+
return /* @__PURE__ */ s(
|
|
1346
|
+
_,
|
|
1260
1347
|
{
|
|
1261
1348
|
sx: {
|
|
1262
1349
|
p: 24,
|
|
@@ -1266,112 +1353,64 @@ const R = {
|
|
|
1266
1353
|
},
|
|
1267
1354
|
children: [
|
|
1268
1355
|
/* @__PURE__ */ e(k, { variant: "body2", children: o.pay_bills_on_time_sticky_description }),
|
|
1269
|
-
/* @__PURE__ */
|
|
1270
|
-
/* @__PURE__ */
|
|
1356
|
+
/* @__PURE__ */ s(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1357
|
+
/* @__PURE__ */ s(De, { children: [
|
|
1271
1358
|
t.spending_fee_transaction_count,
|
|
1272
1359
|
" ",
|
|
1273
1360
|
o.pay_bills_on_time_sticky_fee_count
|
|
1274
1361
|
] }),
|
|
1275
|
-
/* @__PURE__ */ e(
|
|
1362
|
+
/* @__PURE__ */ e(Ie, { status: c })
|
|
1276
1363
|
] })
|
|
1277
1364
|
]
|
|
1278
1365
|
}
|
|
1279
1366
|
);
|
|
1280
|
-
},
|
|
1281
|
-
const { savingsAndCheckingAccountsBalance: t } =
|
|
1282
|
-
return /* @__PURE__ */
|
|
1367
|
+
}, Vo = x(jo), Yo = () => {
|
|
1368
|
+
const { savingsAndCheckingAccountsBalance: t } = xe(), { finstrong: r } = w();
|
|
1369
|
+
return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1283
1370
|
/* @__PURE__ */ e(
|
|
1284
|
-
|
|
1371
|
+
he,
|
|
1285
1372
|
{
|
|
1286
1373
|
balance: t,
|
|
1287
1374
|
title: r.key_indicators_save.drawer_available_balance
|
|
1288
1375
|
}
|
|
1289
1376
|
),
|
|
1290
1377
|
/* @__PURE__ */ e(
|
|
1291
|
-
|
|
1378
|
+
$t,
|
|
1292
1379
|
{
|
|
1293
|
-
loadAccounts: [
|
|
1380
|
+
loadAccounts: [Be.SAVINGS, Be.CHECKING],
|
|
1294
1381
|
loadMoreLabel: r.more_accounts
|
|
1295
1382
|
}
|
|
1296
1383
|
)
|
|
1297
1384
|
] });
|
|
1298
|
-
},
|
|
1299
|
-
const
|
|
1300
|
-
savingsOverTime: {
|
|
1301
|
-
icon: /* @__PURE__ */ e(rt, { size: 48, style: { marginBottom: 8 } }),
|
|
1302
|
-
title: o.key_indicators_save.zero_state_title,
|
|
1303
|
-
description: o.key_indicators_save.zero_state_description
|
|
1304
|
-
},
|
|
1305
|
-
debtOverTime: {
|
|
1306
|
-
icon: /* @__PURE__ */ e(it, { size: 48, style: { marginBottom: 8 } }),
|
|
1307
|
-
title: "",
|
|
1308
|
-
description: ""
|
|
1309
|
-
}
|
|
1310
|
-
}[t], c = {
|
|
1311
|
-
savingsOverTime: {
|
|
1312
|
-
title: o.key_indicators_save.savings_over_time,
|
|
1313
|
-
valueKey: "available_cash"
|
|
1314
|
-
},
|
|
1315
|
-
debtOverTime: {
|
|
1316
|
-
title: o.key_indicators_borrow.have_manageable_debt_drawer.debt_over_time,
|
|
1317
|
-
valueKey: "debt_balance"
|
|
1318
|
-
}
|
|
1319
|
-
}[t], d = hn(n, c.valueKey), _ = Math.max(...n.map((b) => b[c.valueKey])), m = () => _ >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : _ >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: g, leftMargin: y } = m(), v = c.title;
|
|
1320
|
-
return /* @__PURE__ */ e(K, { ref: l, sx: { backgroundColor: "background.paper" }, children: d.length >= 1 ? /* @__PURE__ */ i(u, { gap: 8, sx: { pl: 18 }, children: [
|
|
1321
|
-
/* @__PURE__ */ e(k, { sx: { pb: 8, pt: 16 }, variant: "h3", children: v }),
|
|
1322
|
-
/* @__PURE__ */ e(
|
|
1323
|
-
We,
|
|
1324
|
-
{
|
|
1325
|
-
axisColor: r.palette.divider,
|
|
1326
|
-
baseline: "min",
|
|
1327
|
-
colors: [r.palette.primary.main],
|
|
1328
|
-
curveType: "natural",
|
|
1329
|
-
datasets: d ? [d] : [],
|
|
1330
|
-
height: 244,
|
|
1331
|
-
labels: [o.key_indicators_label],
|
|
1332
|
-
margin: { left: y, top: 5, right: 10 },
|
|
1333
|
-
showArea: !0,
|
|
1334
|
-
showAverage: !0,
|
|
1335
|
-
showXAxis: !0,
|
|
1336
|
-
useCustomMark: !0,
|
|
1337
|
-
valueFormatterString: g,
|
|
1338
|
-
width: s < 342 ? s - 48 : 342
|
|
1339
|
-
}
|
|
1340
|
-
)
|
|
1341
|
-
] }) : /* @__PURE__ */ i(u, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
|
|
1342
|
-
a.icon,
|
|
1343
|
-
/* @__PURE__ */ e(k, { fontWeight: 600, variant: "body1", children: a.title }),
|
|
1344
|
-
/* @__PURE__ */ e(k, { align: "center", variant: "subtitle1", children: a.description })
|
|
1345
|
-
] }) });
|
|
1346
|
-
}, Bt = S(Yo), Xo = () => {
|
|
1347
|
-
const { finstrong: t } = C(), { healthScore: r, allTransactions: n, loadSpendTransactions: o, loadDebtSpend: l } = F(), { isInitialized: s } = X();
|
|
1385
|
+
}, Xo = x(Yo), Uo = () => {
|
|
1386
|
+
const { finstrong: t } = w(), { healthScore: r, allTransactions: n, loadSpendTransactions: o, loadDebtSpend: c } = P(), { isInitialized: i } = U();
|
|
1348
1387
|
h.useEffect(() => {
|
|
1349
|
-
|
|
1350
|
-
}, [
|
|
1388
|
+
i && (o().finally(), c().finally());
|
|
1389
|
+
}, [i]);
|
|
1351
1390
|
const a = h.useMemo(() => {
|
|
1352
|
-
const
|
|
1353
|
-
return [...
|
|
1391
|
+
const d = n.spend.map((p) => p.transaction), l = n.debtSpend.map((p) => p.transaction);
|
|
1392
|
+
return [...d, ...l];
|
|
1354
1393
|
}, [n.spend, n.debtSpend]);
|
|
1355
|
-
return
|
|
1394
|
+
return i ? /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1356
1395
|
/* @__PURE__ */ e(
|
|
1357
|
-
|
|
1396
|
+
he,
|
|
1358
1397
|
{
|
|
1359
1398
|
balance: r.ninety_day_spend / 90,
|
|
1360
1399
|
title: t.key_indicators_save.drawer_daily_spend
|
|
1361
1400
|
}
|
|
1362
1401
|
),
|
|
1363
|
-
/* @__PURE__ */ e(
|
|
1402
|
+
/* @__PURE__ */ e(Oe, { amountColor: "text.primary", transactions: a })
|
|
1364
1403
|
] }) : /* @__PURE__ */ e(te, {});
|
|
1365
|
-
},
|
|
1366
|
-
const [t, r] = h.useState(0), { finstrong: n } =
|
|
1367
|
-
return /* @__PURE__ */
|
|
1368
|
-
/* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
|
|
1404
|
+
}, qo = x(Uo), Zo = () => {
|
|
1405
|
+
const [t, r] = h.useState(0), { finstrong: n } = w();
|
|
1406
|
+
return /* @__PURE__ */ s(z, { children: [
|
|
1407
|
+
/* @__PURE__ */ s(K, { children: [
|
|
1408
|
+
/* @__PURE__ */ s(
|
|
1409
|
+
Ge,
|
|
1371
1410
|
{
|
|
1372
1411
|
"aria-label": n.key_indicators_save.drawer_title,
|
|
1373
1412
|
centered: !0,
|
|
1374
|
-
onChange: (o,
|
|
1413
|
+
onChange: (o, c) => r(c),
|
|
1375
1414
|
sx: { mb: 0 },
|
|
1376
1415
|
value: t,
|
|
1377
1416
|
variant: "fullWidth",
|
|
@@ -1395,18 +1434,18 @@ const R = {
|
|
|
1395
1434
|
]
|
|
1396
1435
|
}
|
|
1397
1436
|
),
|
|
1398
|
-
/* @__PURE__ */ e(ae, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(
|
|
1399
|
-
/* @__PURE__ */ e(ae, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(
|
|
1437
|
+
/* @__PURE__ */ e(ae, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Xo, {}) }),
|
|
1438
|
+
/* @__PURE__ */ e(ae, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(qo, {}) })
|
|
1400
1439
|
] }),
|
|
1401
|
-
/* @__PURE__ */ e(
|
|
1440
|
+
/* @__PURE__ */ e(Ke, { chartFor: "savingsOverTime" })
|
|
1402
1441
|
] });
|
|
1403
|
-
},
|
|
1404
|
-
const { finstrong: t } =
|
|
1442
|
+
}, Qo = x(Zo), Jo = () => {
|
|
1443
|
+
const { finstrong: t } = w(), { healthScore: r } = P(), n = r.months_of_cash_on_hand, o = mt(n ? n * 30 : null), c = 183 / 6, i = Math.floor(n), a = Math.round((n - i) * c), d = n / 6 * 100;
|
|
1405
1444
|
return /* @__PURE__ */ e(
|
|
1406
|
-
|
|
1445
|
+
Te,
|
|
1407
1446
|
{
|
|
1408
1447
|
bottomComponent: /* @__PURE__ */ e(
|
|
1409
|
-
|
|
1448
|
+
_,
|
|
1410
1449
|
{
|
|
1411
1450
|
sx: {
|
|
1412
1451
|
flexDirection: "row",
|
|
@@ -1415,8 +1454,8 @@ const R = {
|
|
|
1415
1454
|
mt: 2,
|
|
1416
1455
|
px: 1
|
|
1417
1456
|
},
|
|
1418
|
-
children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((
|
|
1419
|
-
|
|
1457
|
+
children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((p) => /* @__PURE__ */ s(
|
|
1458
|
+
_,
|
|
1420
1459
|
{
|
|
1421
1460
|
sx: {
|
|
1422
1461
|
alignItems: "center",
|
|
@@ -1424,7 +1463,7 @@ const R = {
|
|
|
1424
1463
|
},
|
|
1425
1464
|
children: [
|
|
1426
1465
|
/* @__PURE__ */ e(
|
|
1427
|
-
|
|
1466
|
+
ee,
|
|
1428
1467
|
{
|
|
1429
1468
|
orientation: "vertical",
|
|
1430
1469
|
sx: {
|
|
@@ -1433,10 +1472,10 @@ const R = {
|
|
|
1433
1472
|
}
|
|
1434
1473
|
}
|
|
1435
1474
|
),
|
|
1436
|
-
/* @__PURE__ */ e(T, { variant: "XSmall", children:
|
|
1475
|
+
/* @__PURE__ */ e(T, { variant: "XSmall", children: p })
|
|
1437
1476
|
]
|
|
1438
1477
|
},
|
|
1439
|
-
|
|
1478
|
+
p
|
|
1440
1479
|
))
|
|
1441
1480
|
}
|
|
1442
1481
|
),
|
|
@@ -1444,19 +1483,19 @@ const R = {
|
|
|
1444
1483
|
status: o,
|
|
1445
1484
|
statusBarData: [
|
|
1446
1485
|
{
|
|
1447
|
-
percentage: `${
|
|
1486
|
+
percentage: `${d}%`
|
|
1448
1487
|
}
|
|
1449
1488
|
],
|
|
1450
|
-
value:
|
|
1489
|
+
value: Y(t.key_indicators_save.drawer_progress_bar_value, i, a)
|
|
1451
1490
|
}
|
|
1452
1491
|
);
|
|
1453
|
-
},
|
|
1454
|
-
const { healthScore: t } =
|
|
1492
|
+
}, er = x(Jo), tr = () => {
|
|
1493
|
+
const { healthScore: t } = P(), { finstrong: r } = w(), n = we(t.debt_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, i = ((a) => o ? "MISSING" : a <= 30 ? "GOOD" : a >= 31 && a <= 39 ? "FAIR" : a >= 40 ? "OFF_TRACK" : "MISSING")(n);
|
|
1455
1494
|
return /* @__PURE__ */ e(
|
|
1456
|
-
|
|
1495
|
+
Te,
|
|
1457
1496
|
{
|
|
1458
|
-
bottomComponent: /* @__PURE__ */
|
|
1459
|
-
|
|
1497
|
+
bottomComponent: /* @__PURE__ */ s(
|
|
1498
|
+
_,
|
|
1460
1499
|
{
|
|
1461
1500
|
sx: {
|
|
1462
1501
|
alignItems: "flex-end",
|
|
@@ -1468,15 +1507,15 @@ const R = {
|
|
|
1468
1507
|
},
|
|
1469
1508
|
children: [
|
|
1470
1509
|
/* @__PURE__ */ e(
|
|
1471
|
-
|
|
1510
|
+
A,
|
|
1472
1511
|
{
|
|
1473
1512
|
sx: {
|
|
1474
1513
|
left: "30%",
|
|
1475
1514
|
position: "absolute",
|
|
1476
1515
|
transform: "translateX(-50%)"
|
|
1477
1516
|
},
|
|
1478
|
-
children: /* @__PURE__ */
|
|
1479
|
-
|
|
1517
|
+
children: /* @__PURE__ */ s(
|
|
1518
|
+
_,
|
|
1480
1519
|
{
|
|
1481
1520
|
sx: {
|
|
1482
1521
|
alignItems: "center",
|
|
@@ -1486,7 +1525,7 @@ const R = {
|
|
|
1486
1525
|
},
|
|
1487
1526
|
children: [
|
|
1488
1527
|
/* @__PURE__ */ e(
|
|
1489
|
-
|
|
1528
|
+
ee,
|
|
1490
1529
|
{
|
|
1491
1530
|
orientation: "vertical",
|
|
1492
1531
|
sx: {
|
|
@@ -1502,7 +1541,7 @@ const R = {
|
|
|
1502
1541
|
}
|
|
1503
1542
|
),
|
|
1504
1543
|
/* @__PURE__ */ e(
|
|
1505
|
-
|
|
1544
|
+
A,
|
|
1506
1545
|
{
|
|
1507
1546
|
sx: {
|
|
1508
1547
|
display: "flex",
|
|
@@ -1511,7 +1550,7 @@ const R = {
|
|
|
1511
1550
|
justifyContent: "center",
|
|
1512
1551
|
marginLeft: "auto"
|
|
1513
1552
|
},
|
|
1514
|
-
children: /* @__PURE__ */ e(T, { variant: "Small", children:
|
|
1553
|
+
children: /* @__PURE__ */ e(T, { variant: "Small", children: Y(
|
|
1515
1554
|
r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
|
|
1516
1555
|
n
|
|
1517
1556
|
) })
|
|
@@ -1521,20 +1560,20 @@ const R = {
|
|
|
1521
1560
|
}
|
|
1522
1561
|
),
|
|
1523
1562
|
label: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_title,
|
|
1524
|
-
status:
|
|
1563
|
+
status: i,
|
|
1525
1564
|
statusBarData: [
|
|
1526
1565
|
{
|
|
1527
1566
|
percentage: `${n}%`
|
|
1528
1567
|
}
|
|
1529
1568
|
],
|
|
1530
|
-
value:
|
|
1569
|
+
value: L(t.ninety_day_debt_spend, "0,0.00")
|
|
1531
1570
|
}
|
|
1532
1571
|
);
|
|
1533
|
-
},
|
|
1534
|
-
const { healthScore: t, allTransactions: r } =
|
|
1535
|
-
return /* @__PURE__ */
|
|
1572
|
+
}, nr = x(tr), or = () => {
|
|
1573
|
+
const { healthScore: t, allTransactions: r } = P(), { connect: n, finstrong: o } = w(), [c, i] = h.useState(!1);
|
|
1574
|
+
return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1536
1575
|
/* @__PURE__ */ e(
|
|
1537
|
-
|
|
1576
|
+
he,
|
|
1538
1577
|
{
|
|
1539
1578
|
balance: t.ninety_day_income,
|
|
1540
1579
|
sx: { flexDirection: "column-reverse" },
|
|
@@ -1543,12 +1582,12 @@ const R = {
|
|
|
1543
1582
|
),
|
|
1544
1583
|
r.income.length ? (
|
|
1545
1584
|
// TODO: Need to add More Transactions functionality
|
|
1546
|
-
/* @__PURE__ */ e(
|
|
1585
|
+
/* @__PURE__ */ e(Oe, { transactions: r.income.map((a) => a.transaction) })
|
|
1547
1586
|
) : /* @__PURE__ */ e(
|
|
1548
|
-
|
|
1587
|
+
W,
|
|
1549
1588
|
{
|
|
1550
1589
|
onClick: () => {
|
|
1551
|
-
|
|
1590
|
+
i(!0);
|
|
1552
1591
|
},
|
|
1553
1592
|
variant: "contained",
|
|
1554
1593
|
children: o.connect_more_accounts_button
|
|
@@ -1557,17 +1596,17 @@ const R = {
|
|
|
1557
1596
|
/* @__PURE__ */ e(
|
|
1558
1597
|
ne,
|
|
1559
1598
|
{
|
|
1560
|
-
onClose: () =>
|
|
1561
|
-
showConnectWidget:
|
|
1599
|
+
onClose: () => i(!1),
|
|
1600
|
+
showConnectWidget: c,
|
|
1562
1601
|
title: n.mini_title
|
|
1563
1602
|
}
|
|
1564
1603
|
)
|
|
1565
1604
|
] });
|
|
1566
|
-
},
|
|
1567
|
-
const { allTransactions: t, healthScore: r } =
|
|
1568
|
-
return /* @__PURE__ */
|
|
1605
|
+
}, rr = x(or), ar = () => {
|
|
1606
|
+
const { allTransactions: t, healthScore: r } = P(), { connect: n, finstrong: o } = w(), [c, i] = h.useState(!1);
|
|
1607
|
+
return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1569
1608
|
/* @__PURE__ */ e(
|
|
1570
|
-
|
|
1609
|
+
he,
|
|
1571
1610
|
{
|
|
1572
1611
|
balance: r.ninety_day_debt_spend,
|
|
1573
1612
|
sx: { flexDirection: "column-reverse" },
|
|
@@ -1577,17 +1616,17 @@ const R = {
|
|
|
1577
1616
|
t.debtSpend.length ? (
|
|
1578
1617
|
//TODO: Need to add More Transactions functionality
|
|
1579
1618
|
/* @__PURE__ */ e(
|
|
1580
|
-
|
|
1619
|
+
Oe,
|
|
1581
1620
|
{
|
|
1582
1621
|
amountColor: "text.primary",
|
|
1583
1622
|
transactions: t.debtSpend.map((a) => a.transaction)
|
|
1584
1623
|
}
|
|
1585
1624
|
)
|
|
1586
1625
|
) : /* @__PURE__ */ e(
|
|
1587
|
-
|
|
1626
|
+
W,
|
|
1588
1627
|
{
|
|
1589
1628
|
onClick: () => {
|
|
1590
|
-
|
|
1629
|
+
i(!0);
|
|
1591
1630
|
},
|
|
1592
1631
|
variant: "contained",
|
|
1593
1632
|
children: o.connect_more_accounts_button
|
|
@@ -1596,28 +1635,28 @@ const R = {
|
|
|
1596
1635
|
/* @__PURE__ */ e(
|
|
1597
1636
|
ne,
|
|
1598
1637
|
{
|
|
1599
|
-
onClose: () =>
|
|
1600
|
-
showConnectWidget:
|
|
1638
|
+
onClose: () => i(!1),
|
|
1639
|
+
showConnectWidget: c,
|
|
1601
1640
|
title: n.mini_title
|
|
1602
1641
|
}
|
|
1603
1642
|
)
|
|
1604
1643
|
] });
|
|
1605
|
-
},
|
|
1644
|
+
}, ir = x(ar), sr = ({
|
|
1606
1645
|
color: t,
|
|
1607
1646
|
data: r,
|
|
1608
1647
|
series: n,
|
|
1609
1648
|
style: o,
|
|
1610
|
-
...
|
|
1649
|
+
...c
|
|
1611
1650
|
}) => {
|
|
1612
|
-
const
|
|
1651
|
+
const i = G(), a = h.useRef(null), { width: d } = jn({
|
|
1613
1652
|
width: o.width
|
|
1614
1653
|
});
|
|
1615
1654
|
h.useLayoutEffect(() => {
|
|
1616
1655
|
const m = new ResizeObserver(() => {
|
|
1617
1656
|
window.requestAnimationFrame(() => {
|
|
1618
1657
|
if (a.current) {
|
|
1619
|
-
const { width: g } = a.current.getBoundingClientRect(),
|
|
1620
|
-
|
|
1658
|
+
const { width: g } = a.current.getBoundingClientRect(), S = g / 2, C = a.current.querySelector("text");
|
|
1659
|
+
C && C.setAttribute("transform", `translate(${S}, -8)`);
|
|
1621
1660
|
}
|
|
1622
1661
|
});
|
|
1623
1662
|
});
|
|
@@ -1625,68 +1664,68 @@ const R = {
|
|
|
1625
1664
|
a.current && m.unobserve(a.current);
|
|
1626
1665
|
};
|
|
1627
1666
|
}, []);
|
|
1628
|
-
const { formattedComparison:
|
|
1629
|
-
return /* @__PURE__ */
|
|
1630
|
-
/* @__PURE__ */ e(
|
|
1667
|
+
const { formattedComparison: l, formattedMain: p } = r[n.index], u = n.type === 0 ? p : l;
|
|
1668
|
+
return /* @__PURE__ */ s("g", { children: [
|
|
1669
|
+
/* @__PURE__ */ e(et.rect, { ...c, fill: t, ref: a, rx: 2, style: o }),
|
|
1631
1670
|
/* @__PURE__ */ e(
|
|
1632
|
-
|
|
1671
|
+
et.text,
|
|
1633
1672
|
{
|
|
1634
|
-
fill:
|
|
1673
|
+
fill: i.palette.text.secondary,
|
|
1635
1674
|
fontSize: 9,
|
|
1636
1675
|
fontWeight: 400,
|
|
1637
1676
|
textAnchor: "middle",
|
|
1638
|
-
transform:
|
|
1677
|
+
transform: d.to((m) => `translate(${m / 2}, -5)`),
|
|
1639
1678
|
x: o.x,
|
|
1640
1679
|
y: o.y,
|
|
1641
|
-
children:
|
|
1680
|
+
children: u
|
|
1642
1681
|
}
|
|
1643
1682
|
)
|
|
1644
1683
|
] });
|
|
1645
|
-
},
|
|
1684
|
+
}, Wt = ({
|
|
1646
1685
|
chartFor: t,
|
|
1647
1686
|
data: r,
|
|
1648
1687
|
title: n,
|
|
1649
1688
|
buttonLabel: o,
|
|
1650
|
-
onClick:
|
|
1651
|
-
legendLabelMain:
|
|
1689
|
+
onClick: c,
|
|
1690
|
+
legendLabelMain: i,
|
|
1652
1691
|
legendLabelComparison: a,
|
|
1653
|
-
totalComparison:
|
|
1654
|
-
totalMain:
|
|
1692
|
+
totalComparison: d,
|
|
1693
|
+
totalMain: l
|
|
1655
1694
|
}) => {
|
|
1656
|
-
const
|
|
1657
|
-
() => r.sort((
|
|
1658
|
-
const
|
|
1695
|
+
const p = G(), u = Gn(p.breakpoints.down("xs")), m = h.useMemo(
|
|
1696
|
+
() => r.sort((y, f) => y.month - f.month).map((y) => {
|
|
1697
|
+
const f = gn(y.month), D = {
|
|
1659
1698
|
spending_vs_income: {
|
|
1660
|
-
main:
|
|
1661
|
-
comparison:
|
|
1662
|
-
formattedMain:
|
|
1663
|
-
formattedComparison:
|
|
1699
|
+
main: y.standard_spend,
|
|
1700
|
+
comparison: y.income,
|
|
1701
|
+
formattedMain: L(y.standard_spend, "0.0a"),
|
|
1702
|
+
formattedComparison: L(y.income, "0.0a")
|
|
1664
1703
|
},
|
|
1665
1704
|
debt_payment_vs_income: {
|
|
1666
|
-
main:
|
|
1667
|
-
comparison:
|
|
1668
|
-
formattedMain:
|
|
1669
|
-
formattedComparison:
|
|
1705
|
+
main: y.income,
|
|
1706
|
+
comparison: y.debt_spend,
|
|
1707
|
+
formattedMain: L(y.income, "0.0a"),
|
|
1708
|
+
formattedComparison: L(y.debt_spend, "0.0a")
|
|
1670
1709
|
}
|
|
1671
1710
|
};
|
|
1672
1711
|
return {
|
|
1673
|
-
label:
|
|
1674
|
-
...
|
|
1712
|
+
label: f,
|
|
1713
|
+
...D[t]
|
|
1675
1714
|
};
|
|
1676
1715
|
}),
|
|
1677
1716
|
[r, t]
|
|
1678
1717
|
), g = {
|
|
1679
1718
|
dataKey: "label",
|
|
1680
1719
|
scaleType: "band"
|
|
1681
|
-
},
|
|
1720
|
+
}, S = Math.max(...m.map((y) => Math.max(y.main, y.comparison))), C = Math.ceil(S * 1.2 / 1e3) * 1e3, b = C / 3, v = {
|
|
1682
1721
|
scaleType: "linear",
|
|
1683
1722
|
min: 0,
|
|
1684
|
-
max:
|
|
1723
|
+
max: C,
|
|
1685
1724
|
tickNumber: 4,
|
|
1686
1725
|
tickMinStep: b,
|
|
1687
|
-
valueFormatter: (
|
|
1726
|
+
valueFormatter: (y) => y === 0 ? "$0" : `$${(y / 1e3).toFixed(0)}K`
|
|
1688
1727
|
};
|
|
1689
|
-
return /* @__PURE__ */
|
|
1728
|
+
return /* @__PURE__ */ s(
|
|
1690
1729
|
K,
|
|
1691
1730
|
{
|
|
1692
1731
|
sx: {
|
|
@@ -1694,8 +1733,8 @@ const R = {
|
|
|
1694
1733
|
py: 24
|
|
1695
1734
|
},
|
|
1696
1735
|
children: [
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
|
|
1736
|
+
/* @__PURE__ */ s(
|
|
1737
|
+
_,
|
|
1699
1738
|
{
|
|
1700
1739
|
sx: {
|
|
1701
1740
|
alignItems: "center",
|
|
@@ -1705,12 +1744,12 @@ const R = {
|
|
|
1705
1744
|
pb: 8
|
|
1706
1745
|
},
|
|
1707
1746
|
children: [
|
|
1708
|
-
/* @__PURE__ */ e(
|
|
1747
|
+
/* @__PURE__ */ e(X, { children: n }),
|
|
1709
1748
|
o && /* @__PURE__ */ e(
|
|
1710
|
-
|
|
1749
|
+
W,
|
|
1711
1750
|
{
|
|
1712
1751
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1713
|
-
onClick:
|
|
1752
|
+
onClick: c,
|
|
1714
1753
|
size: "small",
|
|
1715
1754
|
sx: {
|
|
1716
1755
|
pl: 8,
|
|
@@ -1723,10 +1762,10 @@ const R = {
|
|
|
1723
1762
|
]
|
|
1724
1763
|
}
|
|
1725
1764
|
),
|
|
1726
|
-
/* @__PURE__ */
|
|
1727
|
-
/* @__PURE__ */
|
|
1765
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
|
|
1766
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
|
|
1728
1767
|
/* @__PURE__ */ e(
|
|
1729
|
-
|
|
1768
|
+
A,
|
|
1730
1769
|
{
|
|
1731
1770
|
sx: {
|
|
1732
1771
|
width: 10,
|
|
@@ -1736,17 +1775,17 @@ const R = {
|
|
|
1736
1775
|
}
|
|
1737
1776
|
}
|
|
1738
1777
|
),
|
|
1739
|
-
/* @__PURE__ */
|
|
1740
|
-
/* @__PURE__ */
|
|
1741
|
-
|
|
1778
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1779
|
+
/* @__PURE__ */ s(T, { variant: "subtitle2", children: [
|
|
1780
|
+
i,
|
|
1742
1781
|
" "
|
|
1743
1782
|
] }),
|
|
1744
|
-
!
|
|
1783
|
+
!u && l && /* @__PURE__ */ e(T, { bold: !0, variant: "subtitle2", children: l })
|
|
1745
1784
|
] })
|
|
1746
1785
|
] }),
|
|
1747
|
-
/* @__PURE__ */
|
|
1786
|
+
/* @__PURE__ */ s(_, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
1748
1787
|
/* @__PURE__ */ e(
|
|
1749
|
-
|
|
1788
|
+
A,
|
|
1750
1789
|
{
|
|
1751
1790
|
sx: {
|
|
1752
1791
|
width: 10,
|
|
@@ -1756,19 +1795,19 @@ const R = {
|
|
|
1756
1795
|
}
|
|
1757
1796
|
}
|
|
1758
1797
|
),
|
|
1759
|
-
/* @__PURE__ */
|
|
1760
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1799
|
+
/* @__PURE__ */ s(T, { variant: "subtitle2", children: [
|
|
1761
1800
|
a,
|
|
1762
1801
|
" "
|
|
1763
1802
|
] }),
|
|
1764
|
-
!
|
|
1803
|
+
!u && d && /* @__PURE__ */ e(T, { bold: !0, variant: "subtitle2", children: d })
|
|
1765
1804
|
] })
|
|
1766
1805
|
] })
|
|
1767
1806
|
] }),
|
|
1768
|
-
/* @__PURE__ */
|
|
1769
|
-
|
|
1807
|
+
/* @__PURE__ */ s(
|
|
1808
|
+
Kn,
|
|
1770
1809
|
{
|
|
1771
|
-
colors: [`${
|
|
1810
|
+
colors: [`${p.palette.chart.chart3}`, `${p.palette.chart.chart5}`],
|
|
1772
1811
|
dataset: m,
|
|
1773
1812
|
height: 240,
|
|
1774
1813
|
margin: { top: 20, bottom: 30, right: 10 },
|
|
@@ -1777,25 +1816,25 @@ const R = {
|
|
|
1777
1816
|
{ dataKey: "comparison", type: "bar" }
|
|
1778
1817
|
],
|
|
1779
1818
|
xAxis: [g],
|
|
1780
|
-
yAxis: [
|
|
1819
|
+
yAxis: [v],
|
|
1781
1820
|
children: [
|
|
1782
1821
|
/* @__PURE__ */ e(
|
|
1783
|
-
|
|
1822
|
+
Yt,
|
|
1784
1823
|
{
|
|
1785
1824
|
slots: {
|
|
1786
|
-
bar: (
|
|
1787
|
-
const { ownerState:
|
|
1825
|
+
bar: (y) => {
|
|
1826
|
+
const { ownerState: f, style: D, ...F } = y;
|
|
1788
1827
|
return /* @__PURE__ */ e(
|
|
1789
|
-
|
|
1828
|
+
sr,
|
|
1790
1829
|
{
|
|
1791
|
-
...
|
|
1792
|
-
color:
|
|
1830
|
+
...F,
|
|
1831
|
+
color: f.color,
|
|
1793
1832
|
data: m,
|
|
1794
1833
|
series: {
|
|
1795
|
-
index:
|
|
1796
|
-
type: Number(
|
|
1834
|
+
index: f.dataIndex,
|
|
1835
|
+
type: Number(f.id.toString().split("-").pop())
|
|
1797
1836
|
},
|
|
1798
|
-
style:
|
|
1837
|
+
style: D
|
|
1799
1838
|
}
|
|
1800
1839
|
);
|
|
1801
1840
|
}
|
|
@@ -1803,14 +1842,14 @@ const R = {
|
|
|
1803
1842
|
}
|
|
1804
1843
|
),
|
|
1805
1844
|
/* @__PURE__ */ e(
|
|
1806
|
-
|
|
1845
|
+
Hn,
|
|
1807
1846
|
{
|
|
1808
1847
|
sx: () => ({
|
|
1809
1848
|
".MuiChartsAxis-line": {
|
|
1810
|
-
stroke:
|
|
1849
|
+
stroke: p.palette.divider
|
|
1811
1850
|
},
|
|
1812
1851
|
".MuiChartsAxis-tick": {
|
|
1813
|
-
stroke:
|
|
1852
|
+
stroke: p.palette.divider
|
|
1814
1853
|
},
|
|
1815
1854
|
".MuiChartsAxis-tickLabel": {
|
|
1816
1855
|
transform: "translateY(10px)"
|
|
@@ -1823,14 +1862,14 @@ const R = {
|
|
|
1823
1862
|
}
|
|
1824
1863
|
),
|
|
1825
1864
|
/* @__PURE__ */ e(
|
|
1826
|
-
|
|
1865
|
+
Nn,
|
|
1827
1866
|
{
|
|
1828
1867
|
sx: () => ({
|
|
1829
1868
|
".MuiChartsAxis-line": {
|
|
1830
|
-
stroke:
|
|
1869
|
+
stroke: p.palette.divider
|
|
1831
1870
|
},
|
|
1832
1871
|
".MuiChartsAxis-tick": {
|
|
1833
|
-
stroke:
|
|
1872
|
+
stroke: p.palette.divider
|
|
1834
1873
|
},
|
|
1835
1874
|
".MuiChartsAxis-tickLabel": {
|
|
1836
1875
|
transform: "translateX(-8px)"
|
|
@@ -1848,20 +1887,20 @@ const R = {
|
|
|
1848
1887
|
]
|
|
1849
1888
|
}
|
|
1850
1889
|
);
|
|
1851
|
-
},
|
|
1852
|
-
const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } =
|
|
1890
|
+
}, cr = () => {
|
|
1891
|
+
const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } = P(), { isInitialized: o } = U(), [c, i] = h.useState(0), { finstrong: a } = w();
|
|
1853
1892
|
return h.useEffect(() => {
|
|
1854
1893
|
o && (t().finally(), r().finally());
|
|
1855
|
-
}, [o]), /* @__PURE__ */
|
|
1856
|
-
/* @__PURE__ */
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
|
|
1894
|
+
}, [o]), /* @__PURE__ */ s(z, { children: [
|
|
1895
|
+
/* @__PURE__ */ s(K, { children: [
|
|
1896
|
+
/* @__PURE__ */ s(
|
|
1897
|
+
Ge,
|
|
1859
1898
|
{
|
|
1860
1899
|
"aria-label": a.key_indicators_save.drawer_title,
|
|
1861
1900
|
centered: !0,
|
|
1862
|
-
onChange: (
|
|
1901
|
+
onChange: (d, l) => i(l),
|
|
1863
1902
|
sx: { mb: 0 },
|
|
1864
|
-
value:
|
|
1903
|
+
value: c,
|
|
1865
1904
|
variant: "fullWidth",
|
|
1866
1905
|
children: [
|
|
1867
1906
|
/* @__PURE__ */ e(
|
|
@@ -1891,8 +1930,8 @@ const R = {
|
|
|
1891
1930
|
"aria-labelledby": "income-details-tab-0",
|
|
1892
1931
|
index: 0,
|
|
1893
1932
|
name: "income-details",
|
|
1894
|
-
value:
|
|
1895
|
-
children: /* @__PURE__ */ e(
|
|
1933
|
+
value: c,
|
|
1934
|
+
children: /* @__PURE__ */ e(rr, {})
|
|
1896
1935
|
}
|
|
1897
1936
|
),
|
|
1898
1937
|
/* @__PURE__ */ e(
|
|
@@ -1901,14 +1940,14 @@ const R = {
|
|
|
1901
1940
|
"aria-labelledby": "debt-payment-details-tab-1",
|
|
1902
1941
|
index: 1,
|
|
1903
1942
|
name: "debt-payment-details",
|
|
1904
|
-
value:
|
|
1905
|
-
children: /* @__PURE__ */ e(
|
|
1943
|
+
value: c,
|
|
1944
|
+
children: /* @__PURE__ */ e(ir, {})
|
|
1906
1945
|
}
|
|
1907
1946
|
)
|
|
1908
1947
|
] }),
|
|
1909
|
-
n.length ? /* @__PURE__ */
|
|
1948
|
+
n.length ? /* @__PURE__ */ s(z, { children: [
|
|
1910
1949
|
/* @__PURE__ */ e(
|
|
1911
|
-
|
|
1950
|
+
Wt,
|
|
1912
1951
|
{
|
|
1913
1952
|
chartFor: "debt_payment_vs_income",
|
|
1914
1953
|
data: n,
|
|
@@ -1917,10 +1956,10 @@ const R = {
|
|
|
1917
1956
|
title: a.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
|
|
1918
1957
|
}
|
|
1919
1958
|
),
|
|
1920
|
-
/* @__PURE__ */ e(
|
|
1921
|
-
] }) : /* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ e(Ke, { chartFor: "debtOverTime" })
|
|
1960
|
+
] }) : /* @__PURE__ */ s(z, { children: [
|
|
1922
1961
|
/* @__PURE__ */ e(
|
|
1923
|
-
|
|
1962
|
+
Ae,
|
|
1924
1963
|
{
|
|
1925
1964
|
header: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
|
|
1926
1965
|
icon: "multiline_chart",
|
|
@@ -1936,7 +1975,7 @@ const R = {
|
|
|
1936
1975
|
}
|
|
1937
1976
|
),
|
|
1938
1977
|
/* @__PURE__ */ e(
|
|
1939
|
-
|
|
1978
|
+
Ae,
|
|
1940
1979
|
{
|
|
1941
1980
|
header: a.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
|
|
1942
1981
|
icon: "multiline_chart",
|
|
@@ -1953,18 +1992,18 @@ const R = {
|
|
|
1953
1992
|
)
|
|
1954
1993
|
] })
|
|
1955
1994
|
] });
|
|
1956
|
-
},
|
|
1957
|
-
const { healthScore: t } =
|
|
1995
|
+
}, lr = x(cr), dr = () => {
|
|
1996
|
+
const { healthScore: t } = P(), { finstrong: r } = w(), n = we(t.spend_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, i = ((d) => o ? "MISSING" : d < 100 ? "GOOD" : d >= 100 && d <= 109 ? "FAIR" : d >= 110 ? "OFF_TRACK" : "MISSING")(n), a = {
|
|
1958
1997
|
GOOD: [{ percentage: `${n}%` }],
|
|
1959
1998
|
FAIR: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
1960
1999
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
|
|
1961
2000
|
MISSING: [{ percentage: "0%" }]
|
|
1962
|
-
}[
|
|
2001
|
+
}[i];
|
|
1963
2002
|
return /* @__PURE__ */ e(
|
|
1964
|
-
|
|
2003
|
+
Te,
|
|
1965
2004
|
{
|
|
1966
|
-
bottomComponent: /* @__PURE__ */
|
|
1967
|
-
|
|
2005
|
+
bottomComponent: /* @__PURE__ */ s(
|
|
2006
|
+
_,
|
|
1968
2007
|
{
|
|
1969
2008
|
sx: {
|
|
1970
2009
|
flexDirection: "row",
|
|
@@ -1973,12 +2012,12 @@ const R = {
|
|
|
1973
2012
|
mt: 8
|
|
1974
2013
|
},
|
|
1975
2014
|
children: [
|
|
1976
|
-
/* @__PURE__ */
|
|
1977
|
-
o ? "-" :
|
|
2015
|
+
/* @__PURE__ */ s(T, { variant: "body2", children: [
|
|
2016
|
+
o ? "-" : L(t.ninety_day_income, "0,0.00"),
|
|
1978
2017
|
" ",
|
|
1979
2018
|
r?.key_indicators_spend.spend_less_than_you_make_drawer.income
|
|
1980
2019
|
] }),
|
|
1981
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ s(T, { variant: "body2", children: [
|
|
1982
2021
|
o ? "-%" : `${n}%`,
|
|
1983
2022
|
r?.key_indicators_spend.spend_less_than_you_make_drawer.spent
|
|
1984
2023
|
] })
|
|
@@ -1986,53 +2025,54 @@ const R = {
|
|
|
1986
2025
|
}
|
|
1987
2026
|
),
|
|
1988
2027
|
label: r?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
|
|
1989
|
-
status:
|
|
2028
|
+
status: i,
|
|
1990
2029
|
statusBarData: a,
|
|
1991
|
-
value: o ? "$0" :
|
|
2030
|
+
value: o ? "$0" : L(t.ninety_day_spend, "0,0.00")
|
|
1992
2031
|
}
|
|
1993
2032
|
);
|
|
1994
|
-
},
|
|
1995
|
-
const
|
|
2033
|
+
}, pr = x(dr), ur = ({ onTrendClick: t, onSpendingClick: r }) => {
|
|
2034
|
+
const n = G(), { monthlySummaries: o } = P(), { finstrong: c, goals: i, spending: a } = w(), { selectedAccounts: d } = U(), { categories: l, dateRangeCategoryTotals: p, loadDateRangeCategoryTotals: u } = Ee(), { appDataStore: m } = wn(), [g, S] = h.useState("");
|
|
1996
2035
|
h.useEffect(() => {
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2036
|
+
u(
|
|
2037
|
+
d,
|
|
2038
|
+
It(/* @__PURE__ */ new Date()),
|
|
2039
|
+
Tt(/* @__PURE__ */ new Date())
|
|
2001
2040
|
).finally();
|
|
2002
|
-
}, [
|
|
2003
|
-
const
|
|
2004
|
-
() =>
|
|
2005
|
-
[
|
|
2006
|
-
),
|
|
2007
|
-
|
|
2008
|
-
}, { totalSpending: v, totalIncome:
|
|
2009
|
-
(f, { standard_spend:
|
|
2010
|
-
totalSpending: f.totalSpending +
|
|
2011
|
-
totalIncome: f.totalIncome +
|
|
2041
|
+
}, [d]);
|
|
2042
|
+
const C = h.useMemo(
|
|
2043
|
+
() => Vn(l, i, n, p),
|
|
2044
|
+
[l, p]
|
|
2045
|
+
), b = (f) => {
|
|
2046
|
+
S(g === f ? "" : f);
|
|
2047
|
+
}, { totalSpending: v, totalIncome: y } = h.useMemo(() => o?.reduce(
|
|
2048
|
+
(f, { standard_spend: D = 0, income: F = 0 }) => ({
|
|
2049
|
+
totalSpending: f.totalSpending + D,
|
|
2050
|
+
totalIncome: f.totalIncome + F
|
|
2012
2051
|
}),
|
|
2013
2052
|
{ totalSpending: 0, totalIncome: 0 }
|
|
2014
|
-
), [
|
|
2015
|
-
return /* @__PURE__ */
|
|
2016
|
-
|
|
2017
|
-
|
|
2053
|
+
), [o]);
|
|
2054
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 24 }, children: [
|
|
2055
|
+
o.length ? /* @__PURE__ */ e(
|
|
2056
|
+
Wt,
|
|
2018
2057
|
{
|
|
2019
|
-
...
|
|
2020
|
-
buttonLabel:
|
|
2058
|
+
...m.appData.client_profile?.allow_trends_widget && {
|
|
2059
|
+
buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
2021
2060
|
},
|
|
2022
2061
|
chartFor: "spending_vs_income",
|
|
2023
|
-
data:
|
|
2024
|
-
legendLabelComparison:
|
|
2025
|
-
legendLabelMain:
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2062
|
+
data: o,
|
|
2063
|
+
legendLabelComparison: c.key_indicators_spend.spend_less_than_you_make_drawer.income,
|
|
2064
|
+
legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2065
|
+
onClick: t,
|
|
2066
|
+
title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2067
|
+
totalComparison: L(y, "0,0.00"),
|
|
2068
|
+
totalMain: L(v, "0,0.00")
|
|
2029
2069
|
}
|
|
2030
2070
|
) : /* @__PURE__ */ e(
|
|
2031
|
-
|
|
2071
|
+
Ae,
|
|
2032
2072
|
{
|
|
2033
|
-
header:
|
|
2073
|
+
header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
|
|
2034
2074
|
icon: "multiline_chart",
|
|
2035
|
-
subText:
|
|
2075
|
+
subText: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_description,
|
|
2036
2076
|
sx: {
|
|
2037
2077
|
backgroundColor: "background.paper",
|
|
2038
2078
|
borderRadius: "8px",
|
|
@@ -2043,7 +2083,7 @@ const R = {
|
|
|
2043
2083
|
variant: "no-buttons"
|
|
2044
2084
|
}
|
|
2045
2085
|
),
|
|
2046
|
-
|
|
2086
|
+
C ? /* @__PURE__ */ s(
|
|
2047
2087
|
K,
|
|
2048
2088
|
{
|
|
2049
2089
|
sx: {
|
|
@@ -2051,8 +2091,8 @@ const R = {
|
|
|
2051
2091
|
py: 24
|
|
2052
2092
|
},
|
|
2053
2093
|
children: [
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
|
|
2094
|
+
/* @__PURE__ */ s(
|
|
2095
|
+
_,
|
|
2056
2096
|
{
|
|
2057
2097
|
sx: {
|
|
2058
2098
|
alignItems: "center",
|
|
@@ -2062,50 +2102,51 @@ const R = {
|
|
|
2062
2102
|
pb: 8
|
|
2063
2103
|
},
|
|
2064
2104
|
children: [
|
|
2065
|
-
/* @__PURE__ */ e(
|
|
2066
|
-
|
|
2067
|
-
|
|
2105
|
+
/* @__PURE__ */ e(X, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2106
|
+
m.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2107
|
+
W,
|
|
2068
2108
|
{
|
|
2069
2109
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2110
|
+
onClick: r,
|
|
2070
2111
|
size: "small",
|
|
2071
2112
|
sx: {
|
|
2072
2113
|
pl: 8,
|
|
2073
2114
|
height: 24
|
|
2074
2115
|
},
|
|
2075
2116
|
variant: "text",
|
|
2076
|
-
children:
|
|
2117
|
+
children: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
2077
2118
|
}
|
|
2078
2119
|
)
|
|
2079
2120
|
]
|
|
2080
2121
|
}
|
|
2081
2122
|
),
|
|
2082
|
-
/* @__PURE__ */
|
|
2123
|
+
/* @__PURE__ */ s(_, { sx: { gap: 12, py: 16, flexDirection: "row", justifyContent: "center" }, children: [
|
|
2083
2124
|
/* @__PURE__ */ e(
|
|
2084
|
-
|
|
2125
|
+
Yn,
|
|
2085
2126
|
{
|
|
2086
|
-
data:
|
|
2087
|
-
onSelected:
|
|
2088
|
-
selectedId:
|
|
2089
|
-
totalLabel:
|
|
2127
|
+
data: C,
|
|
2128
|
+
onSelected: b,
|
|
2129
|
+
selectedId: g,
|
|
2130
|
+
totalLabel: a.total_spending
|
|
2090
2131
|
}
|
|
2091
2132
|
),
|
|
2092
2133
|
/* @__PURE__ */ e(
|
|
2093
|
-
|
|
2134
|
+
Xn,
|
|
2094
2135
|
{
|
|
2095
|
-
data:
|
|
2096
|
-
onSelected:
|
|
2097
|
-
selectedId:
|
|
2136
|
+
data: C,
|
|
2137
|
+
onSelected: b,
|
|
2138
|
+
selectedId: g
|
|
2098
2139
|
}
|
|
2099
2140
|
)
|
|
2100
2141
|
] })
|
|
2101
2142
|
]
|
|
2102
2143
|
}
|
|
2103
2144
|
) : /* @__PURE__ */ e(
|
|
2104
|
-
|
|
2145
|
+
Ae,
|
|
2105
2146
|
{
|
|
2106
|
-
header:
|
|
2147
|
+
header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
|
|
2107
2148
|
icon: "donut_small",
|
|
2108
|
-
subText:
|
|
2149
|
+
subText: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_description,
|
|
2109
2150
|
sx: {
|
|
2110
2151
|
backgroundColor: "background.paper",
|
|
2111
2152
|
borderRadius: "8px",
|
|
@@ -2117,96 +2158,106 @@ const R = {
|
|
|
2117
2158
|
}
|
|
2118
2159
|
)
|
|
2119
2160
|
] });
|
|
2120
|
-
},
|
|
2161
|
+
}, _r = x(ur), Pe = {
|
|
2121
2162
|
credit_score_description: "Credit scores usually go from 300 to 850. Think of 700+ as good, 800+ as awesome, and below 600 as needing work. You can often check yours for free with your bank or credit card company.",
|
|
2122
2163
|
maintain_emergency_savings_description: "With at least $1,000 saved, you're ready for surprises, freeing you to save for major goals.",
|
|
2123
2164
|
maintain_emergency_savings_title: "Maintain Emergency Savings"
|
|
2124
|
-
},
|
|
2165
|
+
}, hr = ({
|
|
2125
2166
|
drawerFor: t,
|
|
2126
2167
|
isOpen: r,
|
|
2127
|
-
onClose: n
|
|
2168
|
+
onClose: n,
|
|
2169
|
+
onTrendClick: o,
|
|
2170
|
+
onSpendingClick: c
|
|
2128
2171
|
}) => {
|
|
2129
|
-
const { finstrong:
|
|
2172
|
+
const { finstrong: i } = w(), d = {
|
|
2130
2173
|
spendLessThanYouMake: {
|
|
2131
|
-
title:
|
|
2132
|
-
description:
|
|
2133
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2134
|
-
content: /* @__PURE__ */ e(
|
|
2174
|
+
title: i.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2175
|
+
description: i.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
2176
|
+
stickyComponent: /* @__PURE__ */ e(pr, {}),
|
|
2177
|
+
content: /* @__PURE__ */ e(
|
|
2178
|
+
_r,
|
|
2179
|
+
{
|
|
2180
|
+
onSpendingClick: c,
|
|
2181
|
+
onTrendClick: o
|
|
2182
|
+
}
|
|
2183
|
+
),
|
|
2135
2184
|
drawerType: "connectDrawer",
|
|
2136
|
-
connectTitle:
|
|
2137
|
-
connectDescription:
|
|
2185
|
+
connectTitle: i.connect_your_accounts,
|
|
2186
|
+
connectDescription: i.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2138
2187
|
},
|
|
2139
2188
|
payBillsOnTime: {
|
|
2140
|
-
title:
|
|
2141
|
-
description:
|
|
2142
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2143
|
-
content: /* @__PURE__ */ e(
|
|
2189
|
+
title: i.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
|
|
2190
|
+
description: i.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
|
|
2191
|
+
stickyComponent: /* @__PURE__ */ e(Vo, {}),
|
|
2192
|
+
content: /* @__PURE__ */ e(Ko, {}),
|
|
2144
2193
|
drawerType: "connectDrawer",
|
|
2145
|
-
connectTitle:
|
|
2146
|
-
connectDescription:
|
|
2194
|
+
connectTitle: i.connect_your_accounts,
|
|
2195
|
+
connectDescription: i.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2147
2196
|
},
|
|
2148
2197
|
maintainEmergencySavings: {
|
|
2149
|
-
content: /* @__PURE__ */ e(
|
|
2150
|
-
description:
|
|
2151
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2152
|
-
title:
|
|
2198
|
+
content: /* @__PURE__ */ e(Lo, {}),
|
|
2199
|
+
description: Pe.maintain_emergency_savings_description,
|
|
2200
|
+
stickyComponent: /* @__PURE__ */ e(zo, {}),
|
|
2201
|
+
title: Pe.maintain_emergency_savings_title,
|
|
2153
2202
|
drawerType: "connectDrawer",
|
|
2154
|
-
connectTitle:
|
|
2155
|
-
connectDescription:
|
|
2203
|
+
connectTitle: i.connect_your_accounts,
|
|
2204
|
+
connectDescription: i.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2156
2205
|
},
|
|
2157
2206
|
haveManageableDebt: {
|
|
2158
|
-
title:
|
|
2159
|
-
description:
|
|
2160
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2161
|
-
content: /* @__PURE__ */ e(
|
|
2207
|
+
title: i.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
|
|
2208
|
+
description: i.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
|
|
2209
|
+
stickyComponent: /* @__PURE__ */ e(nr, {}),
|
|
2210
|
+
content: /* @__PURE__ */ e(lr, {}),
|
|
2162
2211
|
drawerType: "connectDrawer",
|
|
2163
|
-
connectTitle:
|
|
2164
|
-
connectDescription:
|
|
2212
|
+
connectTitle: i.dont_see_all_your_accounts,
|
|
2213
|
+
connectDescription: i.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2165
2214
|
},
|
|
2166
2215
|
haveAGoodCreditScore: {
|
|
2167
|
-
title: /* @__PURE__ */ e(
|
|
2168
|
-
description:
|
|
2216
|
+
title: /* @__PURE__ */ e(Ao, {}),
|
|
2217
|
+
description: Pe.credit_score_description,
|
|
2169
2218
|
stickyComponent: null,
|
|
2170
|
-
content: /* @__PURE__ */ e(
|
|
2219
|
+
content: /* @__PURE__ */ e(vo, {})
|
|
2171
2220
|
},
|
|
2172
2221
|
saveEnoughToLiveOn: {
|
|
2173
|
-
title:
|
|
2174
|
-
description:
|
|
2175
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2176
|
-
content: /* @__PURE__ */ e(
|
|
2222
|
+
title: i.key_indicators_save.drawer_title,
|
|
2223
|
+
description: i.key_indicators_save.drawer_description,
|
|
2224
|
+
stickyComponent: /* @__PURE__ */ e(er, {}),
|
|
2225
|
+
content: /* @__PURE__ */ e(Qo, {}),
|
|
2177
2226
|
drawerType: "connectDrawer",
|
|
2178
|
-
connectTitle:
|
|
2179
|
-
connectDescription:
|
|
2227
|
+
connectTitle: i.dont_see_all_your_accounts,
|
|
2228
|
+
connectDescription: i.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2180
2229
|
}
|
|
2181
2230
|
}[t];
|
|
2182
2231
|
return /* @__PURE__ */ e(
|
|
2183
|
-
|
|
2232
|
+
Bt,
|
|
2184
2233
|
{
|
|
2185
|
-
connectDescription:
|
|
2186
|
-
connectTitle:
|
|
2187
|
-
description:
|
|
2188
|
-
drawerTitle:
|
|
2189
|
-
drawerType:
|
|
2234
|
+
connectDescription: d?.connectDescription,
|
|
2235
|
+
connectTitle: d?.connectTitle,
|
|
2236
|
+
description: d?.description,
|
|
2237
|
+
drawerTitle: i.key_indicators,
|
|
2238
|
+
drawerType: d.drawerType,
|
|
2190
2239
|
isOpen: r,
|
|
2191
2240
|
loadConnectAccountsCard: !0,
|
|
2192
2241
|
onClose: n,
|
|
2193
|
-
stickyComponent:
|
|
2194
|
-
title:
|
|
2195
|
-
children: /* @__PURE__ */ e(
|
|
2242
|
+
stickyComponent: d.stickyComponent,
|
|
2243
|
+
title: d.title,
|
|
2244
|
+
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: d.content })
|
|
2196
2245
|
}
|
|
2197
2246
|
);
|
|
2198
|
-
},
|
|
2247
|
+
}, mr = x(hr), _e = ({
|
|
2199
2248
|
drawerFor: t,
|
|
2200
2249
|
title: r,
|
|
2201
2250
|
description: n,
|
|
2202
|
-
cardState: o = "MISSING"
|
|
2251
|
+
cardState: o = "MISSING",
|
|
2252
|
+
onTrendClick: c,
|
|
2253
|
+
onSpendingClick: i
|
|
2203
2254
|
}) => {
|
|
2204
|
-
const [
|
|
2205
|
-
return /* @__PURE__ */
|
|
2206
|
-
/* @__PURE__ */
|
|
2207
|
-
|
|
2255
|
+
const [a, d] = h.useState(!1);
|
|
2256
|
+
return /* @__PURE__ */ s(z, { children: [
|
|
2257
|
+
/* @__PURE__ */ s(
|
|
2258
|
+
_,
|
|
2208
2259
|
{
|
|
2209
|
-
onClick: () =>
|
|
2260
|
+
onClick: () => d(!0),
|
|
2210
2261
|
sx: {
|
|
2211
2262
|
alignItems: "center",
|
|
2212
2263
|
flexDirection: "row",
|
|
@@ -2219,10 +2270,10 @@ const R = {
|
|
|
2219
2270
|
cursor: "pointer"
|
|
2220
2271
|
},
|
|
2221
2272
|
children: [
|
|
2222
|
-
/* @__PURE__ */
|
|
2223
|
-
/* @__PURE__ */
|
|
2273
|
+
/* @__PURE__ */ s(_, { sx: { gap: 4 }, children: [
|
|
2274
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
2224
2275
|
/* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: r }),
|
|
2225
|
-
/* @__PURE__ */ e(
|
|
2276
|
+
/* @__PURE__ */ e(Ie, { status: o })
|
|
2226
2277
|
] }),
|
|
2227
2278
|
/* @__PURE__ */ e(k, { color: "secondary", variant: "subtitle2", children: n })
|
|
2228
2279
|
] }),
|
|
@@ -2231,109 +2282,113 @@ const R = {
|
|
|
2231
2282
|
}
|
|
2232
2283
|
),
|
|
2233
2284
|
/* @__PURE__ */ e(
|
|
2234
|
-
|
|
2285
|
+
mr,
|
|
2235
2286
|
{
|
|
2236
2287
|
drawerFor: t,
|
|
2237
|
-
isOpen:
|
|
2238
|
-
onClose: () =>
|
|
2288
|
+
isOpen: a,
|
|
2289
|
+
onClose: () => d(!1),
|
|
2290
|
+
onSpendingClick: i,
|
|
2291
|
+
onTrendClick: c
|
|
2239
2292
|
}
|
|
2240
2293
|
)
|
|
2241
2294
|
] });
|
|
2242
|
-
},
|
|
2243
|
-
const { finstrong:
|
|
2244
|
-
const p =
|
|
2245
|
-
GOOD:
|
|
2246
|
-
FAIR:
|
|
2247
|
-
OFF_TRACK:
|
|
2248
|
-
MISSING:
|
|
2249
|
-
},
|
|
2295
|
+
}, gr = ({ onTrendsClick: t, onSpendingClick: r }) => {
|
|
2296
|
+
const { finstrong: n } = w(), { key_indicators_spend: o } = n, { healthScore: c } = P(), i = (l) => {
|
|
2297
|
+
const p = bn(l), u = {
|
|
2298
|
+
GOOD: o.ratio_good_description,
|
|
2299
|
+
FAIR: o.ratio_fair_description,
|
|
2300
|
+
OFF_TRACK: o.ratio_off_track_description,
|
|
2301
|
+
MISSING: o.ratio_missing_description
|
|
2302
|
+
}, m = p === "MISSING" ? u[p] : Y(u[p], l);
|
|
2250
2303
|
return {
|
|
2251
2304
|
cardState: p,
|
|
2252
|
-
description:
|
|
2253
|
-
title:
|
|
2305
|
+
description: m,
|
|
2306
|
+
title: o.ratio_card_title
|
|
2254
2307
|
};
|
|
2255
|
-
}, { spendToIncomeRatio:
|
|
2256
|
-
const
|
|
2257
|
-
|
|
2258
|
-
|
|
2308
|
+
}, { spendToIncomeRatio: a, spendFeeCount: d } = h.useMemo(() => {
|
|
2309
|
+
const l = c.spend_to_income_ratio !== null ? Math.round(c.spend_to_income_ratio * 100) : null, p = i(l), u = yn(
|
|
2310
|
+
c.spending_fee_transaction_count,
|
|
2311
|
+
o
|
|
2259
2312
|
);
|
|
2260
|
-
return { spendToIncomeRatio: p, spendFeeCount:
|
|
2313
|
+
return { spendToIncomeRatio: p, spendFeeCount: u };
|
|
2261
2314
|
}, [
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2315
|
+
c.spend_to_income_ratio,
|
|
2316
|
+
c.spending_fee_transaction_count,
|
|
2317
|
+
o,
|
|
2318
|
+
n
|
|
2266
2319
|
]);
|
|
2267
|
-
return /* @__PURE__ */
|
|
2320
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 24, p: 8, pt: 24 }, children: [
|
|
2268
2321
|
/* @__PURE__ */ e(
|
|
2269
|
-
|
|
2322
|
+
_e,
|
|
2270
2323
|
{
|
|
2271
|
-
cardState:
|
|
2272
|
-
description:
|
|
2324
|
+
cardState: a.cardState,
|
|
2325
|
+
description: a.description,
|
|
2273
2326
|
drawerFor: se.SpendLessThanYouMake,
|
|
2274
|
-
|
|
2327
|
+
onSpendingClick: r,
|
|
2328
|
+
onTrendClick: t,
|
|
2329
|
+
title: a.title
|
|
2275
2330
|
}
|
|
2276
2331
|
),
|
|
2277
2332
|
/* @__PURE__ */ e(
|
|
2278
|
-
|
|
2333
|
+
_e,
|
|
2279
2334
|
{
|
|
2280
|
-
cardState:
|
|
2281
|
-
description:
|
|
2335
|
+
cardState: d.cardState,
|
|
2336
|
+
description: d.description,
|
|
2282
2337
|
drawerFor: se.PayBillsOnTime,
|
|
2283
|
-
title:
|
|
2338
|
+
title: d.title
|
|
2284
2339
|
}
|
|
2285
2340
|
)
|
|
2286
2341
|
] });
|
|
2287
|
-
},
|
|
2288
|
-
const { healthScore: t } =
|
|
2289
|
-
const
|
|
2342
|
+
}, yr = x(gr), br = () => {
|
|
2343
|
+
const { healthScore: t } = P(), { finstrong: r } = w(), { key_indicators_save: n } = r, o = (d) => {
|
|
2344
|
+
const l = mt(d), p = {
|
|
2290
2345
|
GOOD: n.days_of_cash_good_description,
|
|
2291
2346
|
FAIR: n.days_of_cash_fair_description,
|
|
2292
2347
|
OFF_TRACK: n.days_of_cash_off_track_description,
|
|
2293
2348
|
MISSING: n.days_of_cash_missing_description
|
|
2294
|
-
},
|
|
2349
|
+
}, u = l === "MISSING" ? p[l] : Y(p[l], d);
|
|
2295
2350
|
return {
|
|
2296
|
-
cardState:
|
|
2297
|
-
description:
|
|
2351
|
+
cardState: l,
|
|
2352
|
+
description: u,
|
|
2298
2353
|
title: n.days_of_cash_title
|
|
2299
2354
|
};
|
|
2300
|
-
},
|
|
2301
|
-
const
|
|
2355
|
+
}, c = (d) => {
|
|
2356
|
+
const l = ht(d), p = {
|
|
2302
2357
|
GOOD: n.emergency_savings_good_description,
|
|
2303
2358
|
FAIR: n.emergency_savings_fair_description,
|
|
2304
2359
|
OFF_TRACK: n.emergency_savings_off_track_description,
|
|
2305
2360
|
MISSING: n.emergency_savings_missing_description
|
|
2306
2361
|
};
|
|
2307
|
-
let
|
|
2308
|
-
return
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
) :
|
|
2312
|
-
cardState:
|
|
2313
|
-
description:
|
|
2362
|
+
let u;
|
|
2363
|
+
return l === "FAIR" && d !== null ? u = Y(
|
|
2364
|
+
p[l],
|
|
2365
|
+
L(d, "0,0.00")
|
|
2366
|
+
) : u = p[l], {
|
|
2367
|
+
cardState: l,
|
|
2368
|
+
description: u,
|
|
2314
2369
|
title: n.emergency_savings_title
|
|
2315
2370
|
};
|
|
2316
|
-
}, { daysOfCashOnHand:
|
|
2317
|
-
const
|
|
2318
|
-
return { daysOfCashOnHand:
|
|
2371
|
+
}, { daysOfCashOnHand: i, emergencySavings: a } = h.useMemo(() => {
|
|
2372
|
+
const d = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, l = o(d), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = c(p);
|
|
2373
|
+
return { daysOfCashOnHand: l, emergencySavings: u };
|
|
2319
2374
|
}, [
|
|
2320
2375
|
t.months_of_cash_on_hand,
|
|
2321
2376
|
t.emergency_savings_on_hand,
|
|
2322
2377
|
n,
|
|
2323
2378
|
r
|
|
2324
2379
|
]);
|
|
2325
|
-
return /* @__PURE__ */
|
|
2380
|
+
return /* @__PURE__ */ s(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2326
2381
|
/* @__PURE__ */ e(
|
|
2327
|
-
|
|
2382
|
+
_e,
|
|
2328
2383
|
{
|
|
2329
|
-
cardState:
|
|
2330
|
-
description:
|
|
2384
|
+
cardState: i.cardState,
|
|
2385
|
+
description: i.description,
|
|
2331
2386
|
drawerFor: se.SaveEnoughToLiveOn,
|
|
2332
|
-
title:
|
|
2387
|
+
title: i.title
|
|
2333
2388
|
}
|
|
2334
2389
|
),
|
|
2335
2390
|
/* @__PURE__ */ e(
|
|
2336
|
-
|
|
2391
|
+
_e,
|
|
2337
2392
|
{
|
|
2338
2393
|
cardState: a.cardState,
|
|
2339
2394
|
description: a.description,
|
|
@@ -2342,41 +2397,41 @@ const R = {
|
|
|
2342
2397
|
}
|
|
2343
2398
|
)
|
|
2344
2399
|
] });
|
|
2345
|
-
},
|
|
2346
|
-
const { healthScore: t } =
|
|
2347
|
-
const
|
|
2400
|
+
}, fr = x(br), xr = () => {
|
|
2401
|
+
const { healthScore: t } = P(), { finstrong: r } = w(), { key_indicators_borrow: n } = r, { user: o } = Q(), c = (l) => {
|
|
2402
|
+
const p = fn(l), u = {
|
|
2348
2403
|
GOOD: n.manage_debit_good_description,
|
|
2349
2404
|
FAIR: n.manage_debit_fair_description,
|
|
2350
2405
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
2351
2406
|
MISSING: n.manage_debit_missing_description
|
|
2352
|
-
}, m =
|
|
2407
|
+
}, m = p === "FAIR" || p === "OFF_TRACK" ? Y(u[p], l) : u[p];
|
|
2353
2408
|
return {
|
|
2354
|
-
cardState:
|
|
2409
|
+
cardState: p,
|
|
2355
2410
|
description: m,
|
|
2356
2411
|
title: n.manage_debit_title
|
|
2357
2412
|
};
|
|
2358
|
-
},
|
|
2359
|
-
const
|
|
2413
|
+
}, i = (l) => {
|
|
2414
|
+
const p = _t(l), u = {
|
|
2360
2415
|
GOOD: n.credit_score_good_description,
|
|
2361
2416
|
FAIR: n.credit_score_fair_description,
|
|
2362
2417
|
OFF_TRACK: n.credit_score_off_track_description,
|
|
2363
2418
|
MISSING: n.credit_score_missing_description
|
|
2364
|
-
}, m =
|
|
2419
|
+
}, m = p === "MISSING" ? u[p] : Y(u[p], l);
|
|
2365
2420
|
return {
|
|
2366
|
-
cardState:
|
|
2421
|
+
cardState: p,
|
|
2367
2422
|
description: m,
|
|
2368
2423
|
title: n.credit_score_title
|
|
2369
2424
|
};
|
|
2370
|
-
}, { manageDebtStatus: a, creditScoreStatus:
|
|
2371
|
-
const
|
|
2425
|
+
}, { manageDebtStatus: a, creditScoreStatus: d } = h.useMemo(() => {
|
|
2426
|
+
const l = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = c(l), u = i(o.credit_score || null);
|
|
2372
2427
|
return {
|
|
2373
|
-
manageDebtStatus:
|
|
2374
|
-
creditScoreStatus:
|
|
2428
|
+
manageDebtStatus: p,
|
|
2429
|
+
creditScoreStatus: u
|
|
2375
2430
|
};
|
|
2376
2431
|
}, [t.debt_to_income_ratio, o.credit_score, n, r]);
|
|
2377
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ s(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2378
2433
|
/* @__PURE__ */ e(
|
|
2379
|
-
|
|
2434
|
+
_e,
|
|
2380
2435
|
{
|
|
2381
2436
|
cardState: a.cardState,
|
|
2382
2437
|
description: a.description,
|
|
@@ -2385,24 +2440,24 @@ const R = {
|
|
|
2385
2440
|
}
|
|
2386
2441
|
),
|
|
2387
2442
|
/* @__PURE__ */ e(
|
|
2388
|
-
|
|
2443
|
+
_e,
|
|
2389
2444
|
{
|
|
2390
|
-
cardState:
|
|
2391
|
-
description:
|
|
2445
|
+
cardState: d.cardState,
|
|
2446
|
+
description: d.description,
|
|
2392
2447
|
drawerFor: se.HaveAGoodCreditScore,
|
|
2393
|
-
title:
|
|
2448
|
+
title: d.title
|
|
2394
2449
|
}
|
|
2395
2450
|
)
|
|
2396
2451
|
] });
|
|
2397
|
-
},
|
|
2398
|
-
const [
|
|
2399
|
-
return /* @__PURE__ */
|
|
2400
|
-
/* @__PURE__ */
|
|
2401
|
-
|
|
2452
|
+
}, Sr = x(xr), Cr = ({ onTrendsClick: t, onSpendingClick: r }) => {
|
|
2453
|
+
const [n, o] = h.useState(0), { finstrong: c } = w();
|
|
2454
|
+
return /* @__PURE__ */ s(z, { children: [
|
|
2455
|
+
/* @__PURE__ */ s(
|
|
2456
|
+
Ge,
|
|
2402
2457
|
{
|
|
2403
2458
|
"aria-label": "Key Indicators",
|
|
2404
2459
|
centered: !0,
|
|
2405
|
-
onChange: (
|
|
2460
|
+
onChange: (i, a) => o(a),
|
|
2406
2461
|
sx: {
|
|
2407
2462
|
mb: 0,
|
|
2408
2463
|
"& .MuiTab-root": {
|
|
@@ -2410,17 +2465,17 @@ const R = {
|
|
|
2410
2465
|
}
|
|
2411
2466
|
},
|
|
2412
2467
|
textColor: "primary",
|
|
2413
|
-
value:
|
|
2468
|
+
value: n,
|
|
2414
2469
|
variant: "fullWidth",
|
|
2415
2470
|
children: [
|
|
2416
2471
|
/* @__PURE__ */ e(
|
|
2417
2472
|
re,
|
|
2418
2473
|
{
|
|
2419
2474
|
"aria-controls": "spend-details-tabpanel-0",
|
|
2420
|
-
icon: /* @__PURE__ */ e(
|
|
2475
|
+
icon: /* @__PURE__ */ e($e, { sx: { mr: 8 } }),
|
|
2421
2476
|
iconPosition: "start",
|
|
2422
2477
|
id: "spend-details-tab-0",
|
|
2423
|
-
label:
|
|
2478
|
+
label: c.key_indicators_spend.title,
|
|
2424
2479
|
sx: { minHeight: 44 }
|
|
2425
2480
|
}
|
|
2426
2481
|
),
|
|
@@ -2428,10 +2483,10 @@ const R = {
|
|
|
2428
2483
|
re,
|
|
2429
2484
|
{
|
|
2430
2485
|
"aria-controls": "save-details-tabpanel-1",
|
|
2431
|
-
icon: /* @__PURE__ */ e(
|
|
2486
|
+
icon: /* @__PURE__ */ e(Qt, { sx: { mr: 8 } }),
|
|
2432
2487
|
iconPosition: "start",
|
|
2433
2488
|
id: "save-details-tab-1",
|
|
2434
|
-
label:
|
|
2489
|
+
label: c.key_indicators_save.title,
|
|
2435
2490
|
sx: { minHeight: 44 }
|
|
2436
2491
|
}
|
|
2437
2492
|
),
|
|
@@ -2439,30 +2494,30 @@ const R = {
|
|
|
2439
2494
|
re,
|
|
2440
2495
|
{
|
|
2441
2496
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2442
|
-
icon: /* @__PURE__ */ e(
|
|
2497
|
+
icon: /* @__PURE__ */ e(Jt, { sx: { mr: 8 } }),
|
|
2443
2498
|
iconPosition: "start",
|
|
2444
2499
|
id: "borrow-details-tab-2",
|
|
2445
|
-
label:
|
|
2500
|
+
label: c.key_indicators_borrow.title,
|
|
2446
2501
|
sx: { minHeight: 44 }
|
|
2447
2502
|
}
|
|
2448
2503
|
)
|
|
2449
2504
|
]
|
|
2450
2505
|
}
|
|
2451
2506
|
),
|
|
2452
|
-
/* @__PURE__ */ e(ae, { index: 0, name: "spend-details", value:
|
|
2453
|
-
/* @__PURE__ */ e(ae, { index: 1, name: "save-details", value:
|
|
2454
|
-
/* @__PURE__ */ e(ae, { index: 2, name: "borrow-details", value:
|
|
2507
|
+
/* @__PURE__ */ e(ae, { index: 0, name: "spend-details", value: n, children: /* @__PURE__ */ e(yr, { onSpendingClick: r, onTrendsClick: t }) }),
|
|
2508
|
+
/* @__PURE__ */ e(ae, { index: 1, name: "save-details", value: n, children: /* @__PURE__ */ e(fr, {}) }),
|
|
2509
|
+
/* @__PURE__ */ e(ae, { index: 2, name: "borrow-details", value: n, children: /* @__PURE__ */ e(Sr, {}) })
|
|
2455
2510
|
] });
|
|
2456
|
-
},
|
|
2457
|
-
const { finstrong: r } =
|
|
2458
|
-
return n ? /* @__PURE__ */
|
|
2459
|
-
/* @__PURE__ */ e(
|
|
2460
|
-
/* @__PURE__ */
|
|
2461
|
-
/* @__PURE__ */ e(
|
|
2511
|
+
}, vr = x(Cr), wr = ({ onClick: t }) => {
|
|
2512
|
+
const { finstrong: r } = w(), { isCopyLoaded: n } = U();
|
|
2513
|
+
return n ? /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2514
|
+
/* @__PURE__ */ e(lt, { size: 48 }),
|
|
2515
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2516
|
+
/* @__PURE__ */ e(X, { children: r.missing_data_title }),
|
|
2462
2517
|
/* @__PURE__ */ e(k, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: r.missing_data_description })
|
|
2463
2518
|
] }),
|
|
2464
|
-
/* @__PURE__ */ e(
|
|
2465
|
-
|
|
2519
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
2520
|
+
W,
|
|
2466
2521
|
{
|
|
2467
2522
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2468
2523
|
onClick: t,
|
|
@@ -2478,30 +2533,30 @@ const R = {
|
|
|
2478
2533
|
}
|
|
2479
2534
|
) })
|
|
2480
2535
|
] }) : /* @__PURE__ */ e(te, {});
|
|
2481
|
-
},
|
|
2536
|
+
}, kr = x(wr), Ar = {
|
|
2482
2537
|
add_more_income: "Add More Income"
|
|
2483
2538
|
}, Dr = ({
|
|
2484
2539
|
incomeTransactions: t,
|
|
2485
2540
|
setCurrentStep: r,
|
|
2486
2541
|
transaction: n
|
|
2487
|
-
}) => /* @__PURE__ */
|
|
2488
|
-
/* @__PURE__ */
|
|
2489
|
-
!!t.length && /* @__PURE__ */ e(
|
|
2490
|
-
if (
|
|
2491
|
-
const a =
|
|
2542
|
+
}) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
2543
|
+
/* @__PURE__ */ s(_, { children: [
|
|
2544
|
+
!!t.length && /* @__PURE__ */ e(A, { sx: { pb: 24 }, children: t.reduce((o, c, i) => {
|
|
2545
|
+
if (c.guid === n.guid) return o;
|
|
2546
|
+
const a = Le(i, t), d = At(i, t);
|
|
2492
2547
|
return o.push(
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
a && /* @__PURE__ */ e(
|
|
2495
|
-
/* @__PURE__ */ e(
|
|
2496
|
-
/* @__PURE__ */ e(
|
|
2497
|
-
] },
|
|
2548
|
+
/* @__PURE__ */ s(h.Fragment, { children: [
|
|
2549
|
+
a && /* @__PURE__ */ e(Dt, { children: Ne(c.date) }),
|
|
2550
|
+
/* @__PURE__ */ e(Mt, { transaction: c }),
|
|
2551
|
+
/* @__PURE__ */ e(ee, { sx: { ml: d ? 44 : 0 } })
|
|
2552
|
+
] }, c.guid)
|
|
2498
2553
|
), o;
|
|
2499
2554
|
}, []) }),
|
|
2500
2555
|
/* @__PURE__ */ e(
|
|
2501
|
-
|
|
2556
|
+
qn,
|
|
2502
2557
|
{
|
|
2503
2558
|
firstDay: 1,
|
|
2504
|
-
frequency:
|
|
2559
|
+
frequency: Pn.EveryMonth,
|
|
2505
2560
|
onFirstDayChange: () => {
|
|
2506
2561
|
},
|
|
2507
2562
|
onFrequencyChange: () => {
|
|
@@ -2513,38 +2568,38 @@ const R = {
|
|
|
2513
2568
|
}
|
|
2514
2569
|
)
|
|
2515
2570
|
] }),
|
|
2516
|
-
/* @__PURE__ */ e(
|
|
2517
|
-
|
|
2571
|
+
/* @__PURE__ */ e(A, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2572
|
+
W,
|
|
2518
2573
|
{
|
|
2519
2574
|
fullWidth: !0,
|
|
2520
2575
|
onClick: () => r({ step: I.MonthlyIncome, type: "main" }),
|
|
2521
|
-
startIcon: /* @__PURE__ */ e(
|
|
2522
|
-
children:
|
|
2576
|
+
startIcon: /* @__PURE__ */ e(dt, {}),
|
|
2577
|
+
children: Ar.add_more_income
|
|
2523
2578
|
}
|
|
2524
2579
|
) })
|
|
2525
|
-
] }),
|
|
2580
|
+
] }), Mr = x(Dr), Ir = {
|
|
2526
2581
|
select_date: "Select Date"
|
|
2527
|
-
},
|
|
2528
|
-
const n =
|
|
2529
|
-
r(Math.floor(new Date(
|
|
2582
|
+
}, Tr = ({ selectedDate: t, setSelectedDate: r }) => {
|
|
2583
|
+
const n = G(), o = (c) => {
|
|
2584
|
+
r(Math.floor(new Date(c).getTime() / 1e3));
|
|
2530
2585
|
};
|
|
2531
|
-
return /* @__PURE__ */ e(
|
|
2532
|
-
|
|
2586
|
+
return /* @__PURE__ */ e(A, { sx: { p: 24 }, children: /* @__PURE__ */ e(Jn, { dateAdapter: Ot, children: /* @__PURE__ */ e(
|
|
2587
|
+
eo,
|
|
2533
2588
|
{
|
|
2534
2589
|
disableFuture: !0,
|
|
2535
|
-
label:
|
|
2590
|
+
label: Ir.select_date,
|
|
2536
2591
|
onChange: o,
|
|
2537
2592
|
slotProps: {
|
|
2538
2593
|
nextIconButton: {
|
|
2539
2594
|
sx: {
|
|
2540
2595
|
color: "primary.main",
|
|
2541
|
-
"&:hover": { bgcolor:
|
|
2596
|
+
"&:hover": { bgcolor: ue(n.palette.primary.light, 0.1) }
|
|
2542
2597
|
}
|
|
2543
2598
|
},
|
|
2544
2599
|
previousIconButton: {
|
|
2545
2600
|
sx: {
|
|
2546
2601
|
color: "primary.main",
|
|
2547
|
-
"&:hover": { bgcolor:
|
|
2602
|
+
"&:hover": { bgcolor: ue(n.palette.primary.light, 0.1) }
|
|
2548
2603
|
}
|
|
2549
2604
|
}
|
|
2550
2605
|
},
|
|
@@ -2552,18 +2607,18 @@ const R = {
|
|
|
2552
2607
|
width: "100%",
|
|
2553
2608
|
"& .MuiIconButton-edgeEnd": {
|
|
2554
2609
|
color: "primary.main",
|
|
2555
|
-
"&:hover": { bgcolor:
|
|
2610
|
+
"&:hover": { bgcolor: ue(n.palette.primary.light, 0.1) }
|
|
2556
2611
|
}
|
|
2557
2612
|
},
|
|
2558
2613
|
value: t ? new Date(t * 1e3) : null
|
|
2559
2614
|
}
|
|
2560
2615
|
) }) });
|
|
2561
|
-
},
|
|
2616
|
+
}, Or = x(Tr), Fr = {
|
|
2562
2617
|
credit_score: "Credit Score"
|
|
2563
|
-
},
|
|
2618
|
+
}, Pr = ({ creditScore: t, setCreditScore: r }) => {
|
|
2564
2619
|
const n = !isNaN(t);
|
|
2565
|
-
return /* @__PURE__ */ e(
|
|
2566
|
-
|
|
2620
|
+
return /* @__PURE__ */ e(A, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2621
|
+
ke,
|
|
2567
2622
|
{
|
|
2568
2623
|
error: !n,
|
|
2569
2624
|
fullWidth: !0,
|
|
@@ -2572,14 +2627,14 @@ const R = {
|
|
|
2572
2627
|
noValidate: !0,
|
|
2573
2628
|
pattern: "[0-9]*"
|
|
2574
2629
|
},
|
|
2575
|
-
label:
|
|
2630
|
+
label: Fr.credit_score,
|
|
2576
2631
|
onChange: (o) => r(Number(o.target.value)),
|
|
2577
2632
|
value: n ? t : ""
|
|
2578
2633
|
}
|
|
2579
2634
|
) });
|
|
2580
|
-
},
|
|
2581
|
-
/* @__PURE__ */ e(
|
|
2582
|
-
|
|
2635
|
+
}, Rr = x(Pr), Et = ({ value: t, completeCopy: r }) => /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
2636
|
+
/* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, o) => /* @__PURE__ */ e(
|
|
2637
|
+
A,
|
|
2583
2638
|
{
|
|
2584
2639
|
sx: {
|
|
2585
2640
|
bgcolor: o < t ? "primary.main" : "neutral.light",
|
|
@@ -2590,26 +2645,26 @@ const R = {
|
|
|
2590
2645
|
},
|
|
2591
2646
|
o
|
|
2592
2647
|
)) }),
|
|
2593
|
-
/* @__PURE__ */
|
|
2648
|
+
/* @__PURE__ */ s(T, { sx: { color: "text.secondary" }, variant: "body2", children: [
|
|
2594
2649
|
t / 4 * 100,
|
|
2595
2650
|
"% ",
|
|
2596
2651
|
r
|
|
2597
2652
|
] })
|
|
2598
|
-
] }),
|
|
2653
|
+
] }), Br = ({
|
|
2599
2654
|
completeCopy: t,
|
|
2600
2655
|
primaryText: r,
|
|
2601
2656
|
secondaryText: n,
|
|
2602
2657
|
value: o
|
|
2603
|
-
}) => /* @__PURE__ */
|
|
2604
|
-
/* @__PURE__ */
|
|
2605
|
-
/* @__PURE__ */ e(
|
|
2658
|
+
}) => /* @__PURE__ */ s(_, { sx: { gap: 20, p: 24 }, children: [
|
|
2659
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
2660
|
+
/* @__PURE__ */ e(X, { children: r }),
|
|
2606
2661
|
/* @__PURE__ */ e(k, { variant: "subtitle1", children: n })
|
|
2607
2662
|
] }),
|
|
2608
|
-
/* @__PURE__ */ e(
|
|
2609
|
-
] }),
|
|
2663
|
+
/* @__PURE__ */ e(Et, { completeCopy: t, value: o })
|
|
2664
|
+
] }), at = {
|
|
2610
2665
|
step: I.ConnectAccounts,
|
|
2611
2666
|
type: "main"
|
|
2612
|
-
},
|
|
2667
|
+
}, R = {
|
|
2613
2668
|
add_accounts: "Add Accounts",
|
|
2614
2669
|
add_income_primary: "What is your monthly income?",
|
|
2615
2670
|
add_income_secondary: "Add your income so that we can accurately measure your financial strength.",
|
|
@@ -2627,168 +2682,168 @@ const R = {
|
|
|
2627
2682
|
credit_score_secondary: "Your ability to borrow money is a key part of your financial strength score.",
|
|
2628
2683
|
do_it_later: "Do It Later",
|
|
2629
2684
|
next: "Next"
|
|
2630
|
-
},
|
|
2631
|
-
const { visibleAccounts: n } =
|
|
2632
|
-
|
|
2633
|
-
), [
|
|
2685
|
+
}, Lr = ({ isOpen: t, onClose: r }) => {
|
|
2686
|
+
const { visibleAccounts: n } = xe(), { calculateHealthScore: o } = P(), { finstrong: c } = w(), { setSelectedAccounts: i } = U(), { setDateRange: a } = kn(), { filter: d, setFilter: l, transactions: p } = An(), { user: u, userProfile: m, updateUser: g, updateUserProfile: S } = Q(), [C, b] = h.useState(u.credit_score || 0), [v, y] = h.useState(
|
|
2687
|
+
at
|
|
2688
|
+
), [f, D] = h.useState([]), [F, H] = h.useState(!1), [O, N] = h.useState(!1), [E, ce] = h.useState(u.birthday), [j, oe] = h.useState("");
|
|
2634
2689
|
h.useEffect(() => {
|
|
2635
|
-
a({ start:
|
|
2690
|
+
a({ start: It(tt()), end: Tt(tt()) });
|
|
2636
2691
|
}, []), h.useEffect(() => {
|
|
2637
|
-
|
|
2692
|
+
l({
|
|
2638
2693
|
accounts: n.map((M) => M.guid),
|
|
2639
2694
|
dateRange: {
|
|
2640
|
-
start:
|
|
2695
|
+
start: Un(/* @__PURE__ */ new Date(), 90),
|
|
2641
2696
|
end: /* @__PURE__ */ new Date()
|
|
2642
2697
|
},
|
|
2643
|
-
custom:
|
|
2644
|
-
}),
|
|
2698
|
+
custom: nt
|
|
2699
|
+
}), i(n);
|
|
2645
2700
|
}, [n]);
|
|
2646
2701
|
const le = h.useMemo(
|
|
2647
|
-
() =>
|
|
2648
|
-
[j,
|
|
2649
|
-
),
|
|
2702
|
+
() => p.find((M) => M.guid === j),
|
|
2703
|
+
[j, p]
|
|
2704
|
+
), de = h.useMemo(() => ({
|
|
2650
2705
|
[I.ConnectAccounts]: !0,
|
|
2651
2706
|
[I.MonthlyIncome]: !!j,
|
|
2652
|
-
[I.Birthday]: !!
|
|
2653
|
-
[I.CreditScore]: !!
|
|
2654
|
-
})[
|
|
2655
|
-
const { step: M } =
|
|
2707
|
+
[I.Birthday]: !!u.birthday || !!E,
|
|
2708
|
+
[I.CreditScore]: !!u.credit_score || !!C
|
|
2709
|
+
})[v.step], [C, v, E, j, u]), V = n.length > 0, me = h.useMemo(() => {
|
|
2710
|
+
const { step: M } = v;
|
|
2656
2711
|
let $ = 0;
|
|
2657
|
-
return M >= I.MonthlyIncome &&
|
|
2658
|
-
}, [
|
|
2659
|
-
|
|
2660
|
-
...
|
|
2661
|
-
custom: ($) => M ?
|
|
2712
|
+
return M >= I.MonthlyIncome && V && $++, M >= I.Birthday && f.length && $++, M >= I.CreditScore && (u.birthday || u.credit_score) && $++, $;
|
|
2713
|
+
}, [v.step, V, f.length, u.birthday, u.credit_score]), Se = (M) => {
|
|
2714
|
+
l({
|
|
2715
|
+
...d,
|
|
2716
|
+
custom: ($) => M ? Qn($, M) : nt($)
|
|
2662
2717
|
});
|
|
2663
|
-
},
|
|
2718
|
+
}, zt = {
|
|
2664
2719
|
[I.ConnectAccounts]: {
|
|
2665
|
-
main:
|
|
2666
|
-
mainActionContent:
|
|
2667
|
-
primaryText:
|
|
2668
|
-
secondaryText:
|
|
2720
|
+
main: V ? /* @__PURE__ */ e(Lt, { shouldShowBalance: !1 }) : null,
|
|
2721
|
+
mainActionContent: V ? R.next : R.add_accounts,
|
|
2722
|
+
primaryText: R.connect_your_accounts_primary,
|
|
2723
|
+
secondaryText: R.connect_your_accounts_secondary
|
|
2669
2724
|
},
|
|
2670
2725
|
[I.MonthlyIncome]: {
|
|
2671
2726
|
detail: /* @__PURE__ */ e(
|
|
2672
|
-
|
|
2727
|
+
Mr,
|
|
2673
2728
|
{
|
|
2674
|
-
incomeTransactions:
|
|
2729
|
+
incomeTransactions: f,
|
|
2675
2730
|
setCurrentStep: (M) => {
|
|
2676
|
-
|
|
2677
|
-
if ($.some((
|
|
2678
|
-
const
|
|
2679
|
-
return
|
|
2731
|
+
y(M), D(($) => {
|
|
2732
|
+
if ($.some((ge) => ge.guid === j)) return $.filter((ge) => ge.guid !== j);
|
|
2733
|
+
const Xe = p.find((ge) => ge.guid === j);
|
|
2734
|
+
return Xe ? [...$, Xe] : $;
|
|
2680
2735
|
});
|
|
2681
2736
|
},
|
|
2682
2737
|
transaction: le
|
|
2683
2738
|
}
|
|
2684
2739
|
),
|
|
2685
|
-
detailActionContent:
|
|
2740
|
+
detailActionContent: R.confirm_income,
|
|
2686
2741
|
main: /* @__PURE__ */ e(
|
|
2687
|
-
|
|
2742
|
+
Zn,
|
|
2688
2743
|
{
|
|
2689
|
-
onSearch:
|
|
2744
|
+
onSearch: Se,
|
|
2690
2745
|
onSelected: (M) => {
|
|
2691
|
-
|
|
2746
|
+
y({ step: I.MonthlyIncome, type: "detail" }), oe(M);
|
|
2692
2747
|
}
|
|
2693
2748
|
}
|
|
2694
2749
|
),
|
|
2695
|
-
mainActionContent:
|
|
2696
|
-
primaryText:
|
|
2697
|
-
secondaryText:
|
|
2750
|
+
mainActionContent: R.confirm_income,
|
|
2751
|
+
primaryText: R.add_income_primary,
|
|
2752
|
+
secondaryText: R.add_income_secondary
|
|
2698
2753
|
},
|
|
2699
2754
|
[I.Birthday]: {
|
|
2700
|
-
main: /* @__PURE__ */ e(
|
|
2701
|
-
mainActionContent:
|
|
2702
|
-
primaryText:
|
|
2703
|
-
secondaryText:
|
|
2755
|
+
main: /* @__PURE__ */ e(Or, { selectedDate: E, setSelectedDate: ce }),
|
|
2756
|
+
mainActionContent: R.next,
|
|
2757
|
+
primaryText: R.birthday_primary,
|
|
2758
|
+
secondaryText: R.birthday_secondary
|
|
2704
2759
|
},
|
|
2705
2760
|
[I.CreditScore]: {
|
|
2706
|
-
main: /* @__PURE__ */ e(
|
|
2707
|
-
mainActionContent:
|
|
2708
|
-
primaryText:
|
|
2709
|
-
secondaryText:
|
|
2761
|
+
main: /* @__PURE__ */ e(Rr, { creditScore: C, setCreditScore: b }),
|
|
2762
|
+
mainActionContent: R.next,
|
|
2763
|
+
primaryText: R.credit_score_primary,
|
|
2764
|
+
secondaryText: R.credit_score_secondary
|
|
2710
2765
|
}
|
|
2711
|
-
},
|
|
2712
|
-
|
|
2713
|
-
},
|
|
2714
|
-
|
|
2715
|
-
},
|
|
2716
|
-
if (
|
|
2717
|
-
|
|
2766
|
+
}, je = () => {
|
|
2767
|
+
y(at), H(!1), oe(""), r();
|
|
2768
|
+
}, Ve = async () => {
|
|
2769
|
+
H(!0), await o(), await S({ ...m, has_completed_finstrong_onboarding: !0 }), je();
|
|
2770
|
+
}, Gt = () => {
|
|
2771
|
+
if (v.step === I.CreditScore) {
|
|
2772
|
+
Ve();
|
|
2718
2773
|
return;
|
|
2719
2774
|
}
|
|
2720
|
-
|
|
2721
|
-
},
|
|
2722
|
-
const { step: M } =
|
|
2775
|
+
y({ step: v.step + 1, type: "main" });
|
|
2776
|
+
}, Ht = () => {
|
|
2777
|
+
const { step: M } = v, $ = M + 1;
|
|
2723
2778
|
switch (M) {
|
|
2724
2779
|
case I.Birthday:
|
|
2725
|
-
|
|
2780
|
+
E && E !== u.birthday && g({ ...u, birthday: E });
|
|
2726
2781
|
break;
|
|
2727
2782
|
case I.CreditScore:
|
|
2728
|
-
|
|
2783
|
+
C && C !== u.credit_score && g({ ...u, credit_score: C }), Ve();
|
|
2729
2784
|
return;
|
|
2730
2785
|
case I.MonthlyIncome:
|
|
2731
|
-
j &&
|
|
2786
|
+
j && f.length === 0 && D((Ye) => [...Ye, le]);
|
|
2732
2787
|
break;
|
|
2733
2788
|
case I.ConnectAccounts:
|
|
2734
|
-
if (!
|
|
2735
|
-
|
|
2789
|
+
if (!V) {
|
|
2790
|
+
N(!0);
|
|
2736
2791
|
return;
|
|
2737
2792
|
}
|
|
2738
2793
|
break;
|
|
2739
2794
|
}
|
|
2740
|
-
$ in I &&
|
|
2741
|
-
},
|
|
2742
|
-
const { step: M, type: $ } =
|
|
2795
|
+
$ in I && y({ step: $, type: "main" });
|
|
2796
|
+
}, Nt = () => {
|
|
2797
|
+
const { step: M, type: $ } = v;
|
|
2743
2798
|
if ($ === "detail") {
|
|
2744
|
-
|
|
2799
|
+
y({ step: M, type: "main" });
|
|
2745
2800
|
return;
|
|
2746
2801
|
}
|
|
2747
|
-
if (M === I.Birthday &&
|
|
2748
|
-
|
|
2802
|
+
if (M === I.Birthday && f.length) {
|
|
2803
|
+
y({ step: M - 1, type: "detail" });
|
|
2749
2804
|
return;
|
|
2750
2805
|
}
|
|
2751
|
-
M > I.ConnectAccounts &&
|
|
2752
|
-
},
|
|
2806
|
+
M > I.ConnectAccounts && y({ step: M - 1, type: "main" });
|
|
2807
|
+
}, pe = zt[v.step], Ce = v.step === I.ConnectAccounts, Kt = {
|
|
2753
2808
|
fullWidth: !0,
|
|
2754
|
-
...
|
|
2755
|
-
},
|
|
2756
|
-
return /* @__PURE__ */
|
|
2757
|
-
/* @__PURE__ */
|
|
2809
|
+
...Ce && !V && { startIcon: /* @__PURE__ */ e(dt, {}) }
|
|
2810
|
+
}, jt = !Ce || Ce && !V;
|
|
2811
|
+
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
2812
|
+
/* @__PURE__ */ s(
|
|
2758
2813
|
ie,
|
|
2759
2814
|
{
|
|
2760
2815
|
footerStyles: { px: 24, py: 16 },
|
|
2761
|
-
hasSecondaryAction: !
|
|
2816
|
+
hasSecondaryAction: !Ce,
|
|
2762
2817
|
isOpen: t,
|
|
2763
|
-
isPrimaryDisabled: !
|
|
2764
|
-
onClose:
|
|
2765
|
-
onSecondaryAction:
|
|
2766
|
-
primaryButtonProps:
|
|
2767
|
-
primaryText:
|
|
2818
|
+
isPrimaryDisabled: !de,
|
|
2819
|
+
onClose: je,
|
|
2820
|
+
onSecondaryAction: Nt,
|
|
2821
|
+
primaryButtonProps: Kt,
|
|
2822
|
+
primaryText: pe?.mainActionContent,
|
|
2768
2823
|
secondaryColor: "primary",
|
|
2769
|
-
secondaryText:
|
|
2770
|
-
title:
|
|
2771
|
-
...!
|
|
2824
|
+
secondaryText: R.back,
|
|
2825
|
+
title: c.title,
|
|
2826
|
+
...!F && { onPrimaryAction: Ht },
|
|
2772
2827
|
children: [
|
|
2773
|
-
|
|
2774
|
-
/* @__PURE__ */ e(De, { children:
|
|
2775
|
-
/* @__PURE__ */ e(k, { sx: { textAlign: "center" }, variant: "subtitle1", children:
|
|
2828
|
+
F && /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2829
|
+
/* @__PURE__ */ e(De, { children: R.calculate_primary }),
|
|
2830
|
+
/* @__PURE__ */ e(k, { sx: { textAlign: "center" }, variant: "subtitle1", children: R.calculate_secondary })
|
|
2776
2831
|
] }),
|
|
2777
|
-
|
|
2832
|
+
pe && !F && /* @__PURE__ */ s(h.Fragment, { children: [
|
|
2778
2833
|
/* @__PURE__ */ e(
|
|
2779
|
-
|
|
2834
|
+
Br,
|
|
2780
2835
|
{
|
|
2781
|
-
completeCopy:
|
|
2782
|
-
primaryText:
|
|
2783
|
-
secondaryText:
|
|
2784
|
-
value:
|
|
2836
|
+
completeCopy: c.complete,
|
|
2837
|
+
primaryText: pe.primaryText,
|
|
2838
|
+
secondaryText: pe.secondaryText,
|
|
2839
|
+
value: me
|
|
2785
2840
|
}
|
|
2786
2841
|
),
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2842
|
+
v.type === "main" && /* @__PURE__ */ s(A, { children: [
|
|
2843
|
+
pe.main,
|
|
2844
|
+
jt && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(W, { fullWidth: !0, onClick: Gt, children: R.do_it_later }) })
|
|
2790
2845
|
] }),
|
|
2791
|
-
|
|
2846
|
+
v.type === "detail" && pe.detail
|
|
2792
2847
|
] })
|
|
2793
2848
|
]
|
|
2794
2849
|
}
|
|
@@ -2796,21 +2851,21 @@ const R = {
|
|
|
2796
2851
|
/* @__PURE__ */ e(
|
|
2797
2852
|
ne,
|
|
2798
2853
|
{
|
|
2799
|
-
onClose: () =>
|
|
2800
|
-
showConnectWidget:
|
|
2801
|
-
title:
|
|
2854
|
+
onClose: () => N(!1),
|
|
2855
|
+
showConnectWidget: O,
|
|
2856
|
+
title: R.connect_accounts
|
|
2802
2857
|
}
|
|
2803
2858
|
)
|
|
2804
2859
|
] });
|
|
2805
|
-
}, $r =
|
|
2860
|
+
}, $r = x(Lr), Re = {
|
|
2806
2861
|
onboarding_title: "Financial Strength Starts Here",
|
|
2807
2862
|
onboarding_subtitle: "By analyzing your spending and saving, FinStrong provides a score and guidance to help you improve your financial habits.",
|
|
2808
2863
|
get_started: "Get Started"
|
|
2809
|
-
},
|
|
2864
|
+
}, Wr = () => {
|
|
2810
2865
|
const [t, r] = h.useState(!1);
|
|
2811
|
-
return /* @__PURE__ */
|
|
2812
|
-
/* @__PURE__ */
|
|
2813
|
-
|
|
2866
|
+
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
2867
|
+
/* @__PURE__ */ s(
|
|
2868
|
+
_,
|
|
2814
2869
|
{
|
|
2815
2870
|
sx: {
|
|
2816
2871
|
alignItems: "center",
|
|
@@ -2820,22 +2875,22 @@ const R = {
|
|
|
2820
2875
|
px: 16
|
|
2821
2876
|
},
|
|
2822
2877
|
children: [
|
|
2823
|
-
/* @__PURE__ */
|
|
2824
|
-
/* @__PURE__ */ e(
|
|
2825
|
-
/* @__PURE__ */
|
|
2826
|
-
/* @__PURE__ */ e(De, { children:
|
|
2827
|
-
/* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children:
|
|
2878
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
|
|
2879
|
+
/* @__PURE__ */ e(A, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(en, { size: 72 }) }),
|
|
2880
|
+
/* @__PURE__ */ s(_, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2881
|
+
/* @__PURE__ */ e(De, { children: Re.onboarding_title }),
|
|
2882
|
+
/* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children: Re.onboarding_subtitle })
|
|
2828
2883
|
] })
|
|
2829
2884
|
] }),
|
|
2830
|
-
/* @__PURE__ */ e(
|
|
2885
|
+
/* @__PURE__ */ e(W, { onClick: () => r(!0), variant: "contained", children: Re.get_started })
|
|
2831
2886
|
]
|
|
2832
2887
|
}
|
|
2833
2888
|
),
|
|
2834
2889
|
/* @__PURE__ */ e($r, { isOpen: t, onClose: () => r(!1) })
|
|
2835
2890
|
] });
|
|
2836
|
-
},
|
|
2837
|
-
const { finstrong: n } =
|
|
2838
|
-
|
|
2891
|
+
}, Er = ({ isOpen: t, onClose: r }) => {
|
|
2892
|
+
const { finstrong: n } = w(), o = G(), { updateUser: c, user: i } = Q(), [a, d] = h.useState(i.birthday), l = (u) => {
|
|
2893
|
+
d(Math.floor(new Date(u).getTime() / 1e3));
|
|
2839
2894
|
};
|
|
2840
2895
|
return /* @__PURE__ */ e(
|
|
2841
2896
|
ie,
|
|
@@ -2843,26 +2898,26 @@ const R = {
|
|
|
2843
2898
|
isOpen: t,
|
|
2844
2899
|
onClose: r,
|
|
2845
2900
|
onPrimaryAction: () => {
|
|
2846
|
-
!a || a ===
|
|
2901
|
+
!a || a === i.birthday || (c({ ...i, birthday: a }), r());
|
|
2847
2902
|
},
|
|
2848
2903
|
onSecondaryAction: r,
|
|
2849
2904
|
title: n.date_of_birth,
|
|
2850
|
-
children: /* @__PURE__ */ e(
|
|
2851
|
-
|
|
2905
|
+
children: /* @__PURE__ */ e(oo, { dateAdapter: Ot, children: /* @__PURE__ */ e(
|
|
2906
|
+
to,
|
|
2852
2907
|
{
|
|
2853
2908
|
disableFuture: !0,
|
|
2854
|
-
onChange:
|
|
2909
|
+
onChange: l,
|
|
2855
2910
|
slotProps: {
|
|
2856
2911
|
nextIconButton: {
|
|
2857
2912
|
sx: {
|
|
2858
2913
|
color: "primary.main",
|
|
2859
|
-
"&:hover": { bgcolor:
|
|
2914
|
+
"&:hover": { bgcolor: ue(o.palette.primary.light, 0.1) }
|
|
2860
2915
|
}
|
|
2861
2916
|
},
|
|
2862
2917
|
previousIconButton: {
|
|
2863
2918
|
sx: {
|
|
2864
2919
|
color: "primary.main",
|
|
2865
|
-
"&:hover": { bgcolor:
|
|
2920
|
+
"&:hover": { bgcolor: ue(o.palette.primary.light, 0.1) }
|
|
2866
2921
|
}
|
|
2867
2922
|
}
|
|
2868
2923
|
},
|
|
@@ -2874,7 +2929,7 @@ const R = {
|
|
|
2874
2929
|
width: "100%",
|
|
2875
2930
|
"& .MuiIconButton-edgeEnd": {
|
|
2876
2931
|
color: "primary.main",
|
|
2877
|
-
"&:hover": { bgcolor:
|
|
2932
|
+
"&:hover": { bgcolor: ue(o.palette.primary.light, 0.1) }
|
|
2878
2933
|
}
|
|
2879
2934
|
},
|
|
2880
2935
|
value: a ? new Date(a * 1e3) : /* @__PURE__ */ new Date()
|
|
@@ -2882,136 +2937,136 @@ const R = {
|
|
|
2882
2937
|
) })
|
|
2883
2938
|
}
|
|
2884
2939
|
);
|
|
2885
|
-
},
|
|
2886
|
-
const { visibleFinstrongAccounts: n } =
|
|
2887
|
-
accounts:
|
|
2888
|
-
common:
|
|
2940
|
+
}, zr = x(Er), Gr = ({ isOpen: t, onClose: r }) => {
|
|
2941
|
+
const { visibleFinstrongAccounts: n } = xe(), { incomeBudget: o } = yt(), {
|
|
2942
|
+
accounts: c,
|
|
2943
|
+
common: i,
|
|
2889
2944
|
finstrong: a
|
|
2890
|
-
} =
|
|
2945
|
+
} = w(), { user: d } = Q(), [l, p] = h.useState(null), m = [
|
|
2891
2946
|
{
|
|
2892
2947
|
dynamicCopy: a.add_profile_item,
|
|
2893
2948
|
fallbackLabel: a.monthly_income,
|
|
2894
|
-
icon: /* @__PURE__ */ e(
|
|
2895
|
-
key:
|
|
2949
|
+
icon: /* @__PURE__ */ e(tn, {}),
|
|
2950
|
+
key: J.MonthlyIncome,
|
|
2896
2951
|
label: a.monthly_income,
|
|
2897
2952
|
value: o
|
|
2898
2953
|
},
|
|
2899
2954
|
{
|
|
2900
2955
|
dynamicCopy: a.add_profile_item,
|
|
2901
2956
|
fallbackLabel: a.date_of_birth,
|
|
2902
|
-
icon: /* @__PURE__ */ e(
|
|
2903
|
-
key:
|
|
2957
|
+
icon: /* @__PURE__ */ e(nn, {}),
|
|
2958
|
+
key: J.DateOfBirth,
|
|
2904
2959
|
label: a.date_of_birth,
|
|
2905
|
-
value:
|
|
2960
|
+
value: d.birthday
|
|
2906
2961
|
},
|
|
2907
2962
|
{
|
|
2908
2963
|
dynamicCopy: a.add_profile_item,
|
|
2909
2964
|
fallbackLabel: a.credit_score,
|
|
2910
|
-
icon: /* @__PURE__ */ e(
|
|
2911
|
-
key:
|
|
2965
|
+
icon: /* @__PURE__ */ e($e, {}),
|
|
2966
|
+
key: J.CreditScore,
|
|
2912
2967
|
label: a.credit_score,
|
|
2913
|
-
value:
|
|
2968
|
+
value: d.credit_score
|
|
2914
2969
|
},
|
|
2915
2970
|
{
|
|
2916
2971
|
fallbackLabel: a.connect_your_accounts,
|
|
2917
|
-
icon: /* @__PURE__ */ e(
|
|
2918
|
-
key:
|
|
2972
|
+
icon: /* @__PURE__ */ e(ct, {}),
|
|
2973
|
+
key: J.Connections,
|
|
2919
2974
|
label: a.connections,
|
|
2920
|
-
value: n.length > 0 ?
|
|
2975
|
+
value: n.length > 0 ? Y(
|
|
2921
2976
|
a.connected_account,
|
|
2922
2977
|
String(n.length),
|
|
2923
2978
|
n.length > 1 ? a.accounts : a.account
|
|
2924
2979
|
) : void 0
|
|
2925
2980
|
}
|
|
2926
|
-
].map((g) =>
|
|
2927
|
-
return /* @__PURE__ */
|
|
2928
|
-
/* @__PURE__ */
|
|
2929
|
-
/* @__PURE__ */
|
|
2930
|
-
/* @__PURE__ */ e(
|
|
2981
|
+
].map((g) => xn(g));
|
|
2982
|
+
return /* @__PURE__ */ s(ie, { isOpen: t, onClose: r, title: a.financial_profile, children: [
|
|
2983
|
+
/* @__PURE__ */ s(_, { sx: { gap: 20, p: 24 }, children: [
|
|
2984
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
2985
|
+
/* @__PURE__ */ e(X, { children: a.your_financial_profile }),
|
|
2931
2986
|
/* @__PURE__ */ e(k, { children: a.financial_profile_description })
|
|
2932
2987
|
] }),
|
|
2933
2988
|
/* @__PURE__ */ e(
|
|
2934
|
-
|
|
2989
|
+
Et,
|
|
2935
2990
|
{
|
|
2936
2991
|
completeCopy: a.complete,
|
|
2937
|
-
value: m.reduce((g,
|
|
2992
|
+
value: m.reduce((g, S) => g + (S.isComplete ? 1 : 0), 0)
|
|
2938
2993
|
}
|
|
2939
2994
|
)
|
|
2940
2995
|
] }),
|
|
2941
|
-
/* @__PURE__ */ e(
|
|
2942
|
-
/* @__PURE__ */ e(
|
|
2943
|
-
|
|
2996
|
+
/* @__PURE__ */ e(Sn, { list: m, onClickItem: p }),
|
|
2997
|
+
/* @__PURE__ */ e(A, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2998
|
+
Me,
|
|
2944
2999
|
{
|
|
2945
3000
|
description: a.connect_more_accounts_to_view_more_accurate_financial_picture,
|
|
2946
3001
|
drawerType: "connectDrawer",
|
|
2947
3002
|
isDashboard: !0,
|
|
2948
3003
|
title: a.dont_see_all_your_accounts,
|
|
2949
|
-
titleDrawer:
|
|
3004
|
+
titleDrawer: i.add_accounts
|
|
2950
3005
|
}
|
|
2951
3006
|
) }),
|
|
2952
3007
|
/* @__PURE__ */ e(
|
|
2953
3008
|
ie,
|
|
2954
3009
|
{
|
|
2955
|
-
isOpen:
|
|
2956
|
-
onClose: () =>
|
|
2957
|
-
title:
|
|
2958
|
-
children: /* @__PURE__ */ e(
|
|
3010
|
+
isOpen: l === J.MonthlyIncome,
|
|
3011
|
+
onClose: () => p(null),
|
|
3012
|
+
title: i.settings,
|
|
3013
|
+
children: /* @__PURE__ */ e(no, {})
|
|
2959
3014
|
}
|
|
2960
3015
|
),
|
|
2961
|
-
/* @__PURE__ */ e(
|
|
2962
|
-
/* @__PURE__ */ e(
|
|
3016
|
+
/* @__PURE__ */ e(zr, { isOpen: l === J.DateOfBirth, onClose: () => p(null) }),
|
|
3017
|
+
/* @__PURE__ */ e(Rt, { isOpen: l === J.CreditScore, onClose: () => p(null) }),
|
|
2963
3018
|
/* @__PURE__ */ e(
|
|
2964
|
-
|
|
3019
|
+
bt,
|
|
2965
3020
|
{
|
|
2966
|
-
onClose: () =>
|
|
2967
|
-
showConnectionsWidget:
|
|
2968
|
-
title:
|
|
3021
|
+
onClose: () => p(null),
|
|
3022
|
+
showConnectionsWidget: l === J.Connections,
|
|
3023
|
+
title: c.manage_connections
|
|
2969
3024
|
}
|
|
2970
3025
|
)
|
|
2971
3026
|
] });
|
|
2972
|
-
},
|
|
3027
|
+
}, Hr = x(Gr), it = ({
|
|
2973
3028
|
content: t,
|
|
2974
3029
|
islast: r = !1
|
|
2975
|
-
}) => /* @__PURE__ */
|
|
2976
|
-
/* @__PURE__ */
|
|
2977
|
-
/* @__PURE__ */ e(
|
|
2978
|
-
!r && /* @__PURE__ */ e(
|
|
3030
|
+
}) => /* @__PURE__ */ s(io, { sx: { minHeight: 0 }, children: [
|
|
3031
|
+
/* @__PURE__ */ s(uo, { children: [
|
|
3032
|
+
/* @__PURE__ */ e(po, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
|
|
3033
|
+
!r && /* @__PURE__ */ e(co, { sx: { bgcolor: "divider", width: 0.1 } })
|
|
2979
3034
|
] }),
|
|
2980
|
-
/* @__PURE__ */ e(
|
|
2981
|
-
] }),
|
|
2982
|
-
const { finstrong: r } =
|
|
3035
|
+
/* @__PURE__ */ e(lo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(k, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
3036
|
+
] }), Nr = ({ report: t }) => {
|
|
3037
|
+
const { finstrong: r } = w(), { score_history_drawer_timeline: n } = r, {
|
|
2983
3038
|
health_score_point_difference: o,
|
|
2984
|
-
newer_credit_score:
|
|
2985
|
-
older_credit_score:
|
|
3039
|
+
newer_credit_score: c,
|
|
3040
|
+
older_credit_score: i,
|
|
2986
3041
|
older_spend_to_income_ratio: a,
|
|
2987
|
-
newer_spend_to_income_ratio:
|
|
2988
|
-
older_health_score:
|
|
2989
|
-
newer_health_score:
|
|
2990
|
-
newer_score_calculated_at:
|
|
2991
|
-
} = t, m =
|
|
3042
|
+
newer_spend_to_income_ratio: d,
|
|
3043
|
+
older_health_score: l,
|
|
3044
|
+
newer_health_score: p,
|
|
3045
|
+
newer_score_calculated_at: u
|
|
3046
|
+
} = t, m = ro(new Date(u), "MMM d"), g = () => o === 0 ? "info.lighter" : o > 0 ? "success.lighter" : "error.lighter", S = () => o === 0 ? Y(n.stayed_at, l) : o > 0 ? n.less_spending : n.more_spending, C = () => {
|
|
2992
3047
|
if (o === 0) return null;
|
|
2993
|
-
const b = o > 0 ? n.up_from : n.down_from,
|
|
2994
|
-
return /* @__PURE__ */
|
|
3048
|
+
const b = o > 0 ? n.up_from : n.down_from, v = Y(b, l, p);
|
|
3049
|
+
return /* @__PURE__ */ s(z, { children: [
|
|
2995
3050
|
/* @__PURE__ */ e(
|
|
2996
|
-
|
|
3051
|
+
an,
|
|
2997
3052
|
{
|
|
2998
3053
|
fill: !0,
|
|
2999
3054
|
name: "circle",
|
|
3000
3055
|
sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
|
|
3001
3056
|
}
|
|
3002
3057
|
),
|
|
3003
|
-
|
|
3058
|
+
v
|
|
3004
3059
|
] });
|
|
3005
3060
|
};
|
|
3006
|
-
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */
|
|
3007
|
-
/* @__PURE__ */ e(
|
|
3008
|
-
|
|
3061
|
+
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ s(_, { sx: { backgroundColor: "background.paper" }, children: [
|
|
3062
|
+
/* @__PURE__ */ e(A, { sx: { borderBottom: "1px solid", borderBottomColor: "divider", p: 16 }, children: /* @__PURE__ */ s(
|
|
3063
|
+
_,
|
|
3009
3064
|
{
|
|
3010
3065
|
flexDirection: "row",
|
|
3011
3066
|
sx: { alignItems: "center", gap: 16, height: 48, width: "100%" },
|
|
3012
3067
|
children: [
|
|
3013
3068
|
/* @__PURE__ */ e(
|
|
3014
|
-
|
|
3069
|
+
_,
|
|
3015
3070
|
{
|
|
3016
3071
|
sx: {
|
|
3017
3072
|
alignItems: "center",
|
|
@@ -3024,22 +3079,22 @@ const R = {
|
|
|
3024
3079
|
children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "Body", children: o > 0 ? `+${o}` : o })
|
|
3025
3080
|
}
|
|
3026
3081
|
),
|
|
3027
|
-
/* @__PURE__ */
|
|
3028
|
-
/* @__PURE__ */ e(T, { fontWeight: 600, variant: "Body", children:
|
|
3029
|
-
/* @__PURE__ */
|
|
3082
|
+
/* @__PURE__ */ s(_, { sx: { gap: 2, width: "80%" }, children: [
|
|
3083
|
+
/* @__PURE__ */ e(T, { fontWeight: 600, variant: "Body", children: S() }),
|
|
3084
|
+
/* @__PURE__ */ s(T, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3030
3085
|
m,
|
|
3031
3086
|
" ",
|
|
3032
|
-
|
|
3087
|
+
C()
|
|
3033
3088
|
] })
|
|
3034
3089
|
] })
|
|
3035
3090
|
]
|
|
3036
3091
|
}
|
|
3037
3092
|
) }),
|
|
3038
|
-
o !== 0 && /* @__PURE__ */ e(
|
|
3039
|
-
|
|
3093
|
+
o !== 0 && /* @__PURE__ */ e(A, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ s(
|
|
3094
|
+
ao,
|
|
3040
3095
|
{
|
|
3041
3096
|
sx: {
|
|
3042
|
-
[`& .${
|
|
3097
|
+
[`& .${so.root}:before`]: {
|
|
3043
3098
|
flex: 0,
|
|
3044
3099
|
padding: 0
|
|
3045
3100
|
},
|
|
@@ -3048,22 +3103,22 @@ const R = {
|
|
|
3048
3103
|
},
|
|
3049
3104
|
children: [
|
|
3050
3105
|
/* @__PURE__ */ e(
|
|
3051
|
-
|
|
3106
|
+
it,
|
|
3052
3107
|
{
|
|
3053
|
-
content:
|
|
3108
|
+
content: Y(
|
|
3054
3109
|
n.spend_to_income_description,
|
|
3055
|
-
|
|
3056
|
-
|
|
3110
|
+
we(a),
|
|
3111
|
+
we(d)
|
|
3057
3112
|
)
|
|
3058
3113
|
}
|
|
3059
3114
|
),
|
|
3060
3115
|
/* @__PURE__ */ e(
|
|
3061
|
-
|
|
3116
|
+
it,
|
|
3062
3117
|
{
|
|
3063
|
-
content:
|
|
3118
|
+
content: Y(
|
|
3064
3119
|
n.credit_score_description,
|
|
3065
|
-
|
|
3066
|
-
|
|
3120
|
+
i,
|
|
3121
|
+
c
|
|
3067
3122
|
),
|
|
3068
3123
|
islast: !0
|
|
3069
3124
|
}
|
|
@@ -3072,21 +3127,21 @@ const R = {
|
|
|
3072
3127
|
}
|
|
3073
3128
|
) })
|
|
3074
3129
|
] }) });
|
|
3075
|
-
},
|
|
3076
|
-
const n =
|
|
3077
|
-
if (!
|
|
3078
|
-
const
|
|
3130
|
+
}, Kr = x(Nr), jr = ({ isOpen: t, onClose: r }) => {
|
|
3131
|
+
const n = G(), { finstrong: o } = w(), { isCopyLoaded: c, isInitialized: i } = U(), { healthScore: a, healthScoreChangeReports: d, augmentedChartData: l } = P();
|
|
3132
|
+
if (!c || !i) return /* @__PURE__ */ e(te, {});
|
|
3133
|
+
const p = We(a.health_score || 0, o), u = d.slice().reverse();
|
|
3079
3134
|
return /* @__PURE__ */ e(
|
|
3080
|
-
|
|
3135
|
+
Bt,
|
|
3081
3136
|
{
|
|
3082
|
-
additionalContent: /* @__PURE__ */ e(
|
|
3083
|
-
|
|
3137
|
+
additionalContent: /* @__PURE__ */ e(_, { sx: { pl: 18, backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(
|
|
3138
|
+
ze,
|
|
3084
3139
|
{
|
|
3085
3140
|
axisColor: n.palette.divider,
|
|
3086
3141
|
baseline: "min",
|
|
3087
3142
|
colors: [n.palette.primary.main],
|
|
3088
3143
|
curveType: "natural",
|
|
3089
|
-
datasets: [
|
|
3144
|
+
datasets: [l],
|
|
3090
3145
|
height: 160,
|
|
3091
3146
|
labels: [o.key_indicators_label],
|
|
3092
3147
|
margin: { top: 12, left: 24 },
|
|
@@ -3100,38 +3155,38 @@ const R = {
|
|
|
3100
3155
|
isOpen: t,
|
|
3101
3156
|
loadConnectAccountsCard: !1,
|
|
3102
3157
|
onClose: r,
|
|
3103
|
-
stickyComponent: /* @__PURE__ */
|
|
3104
|
-
|
|
3158
|
+
stickyComponent: /* @__PURE__ */ s(
|
|
3159
|
+
_,
|
|
3105
3160
|
{
|
|
3106
3161
|
direction: "row",
|
|
3107
3162
|
sx: { backgroundColor: "background.paper", gap: 16, pb: 12, pt: 8, px: 24 },
|
|
3108
3163
|
children: [
|
|
3109
|
-
/* @__PURE__ */ e(
|
|
3110
|
-
|
|
3164
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
3165
|
+
Pt,
|
|
3111
3166
|
{
|
|
3112
3167
|
arcRadius: 20,
|
|
3113
3168
|
healthScore: a?.health_score,
|
|
3114
3169
|
size: "SM"
|
|
3115
3170
|
}
|
|
3116
3171
|
) }),
|
|
3117
|
-
/* @__PURE__ */
|
|
3118
|
-
/* @__PURE__ */ e(k, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children:
|
|
3119
|
-
/* @__PURE__ */ e(k, { variant: "caption", children:
|
|
3172
|
+
/* @__PURE__ */ s(A, { children: [
|
|
3173
|
+
/* @__PURE__ */ e(k, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children: p.status }),
|
|
3174
|
+
/* @__PURE__ */ e(k, { variant: "caption", children: p.description })
|
|
3120
3175
|
] })
|
|
3121
3176
|
]
|
|
3122
3177
|
}
|
|
3123
3178
|
),
|
|
3124
|
-
children: /* @__PURE__ */ e(
|
|
3179
|
+
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: u.map((m, g) => /* @__PURE__ */ e(Kr, { report: m }, g)) })
|
|
3125
3180
|
}
|
|
3126
3181
|
);
|
|
3127
|
-
},
|
|
3128
|
-
const t =
|
|
3129
|
-
return !
|
|
3182
|
+
}, Vr = x(jr), Yr = x(() => {
|
|
3183
|
+
const t = G(), [r, { width: n }] = xt(), { finstrong: o } = w(), { isCopyLoaded: c, isInitialized: i } = U(), { healthScore: a, healthScoreChange: d } = P(), l = t.palette.mode === "dark", p = We(a?.health_score, o);
|
|
3184
|
+
return !c || !i ? /* @__PURE__ */ e(te, {}) : /* @__PURE__ */ s(K, { ref: r, sx: { p: 16 }, children: [
|
|
3130
3185
|
/* @__PURE__ */ e(
|
|
3131
|
-
|
|
3186
|
+
go,
|
|
3132
3187
|
{
|
|
3133
3188
|
action: /* @__PURE__ */ e(
|
|
3134
|
-
|
|
3189
|
+
W,
|
|
3135
3190
|
{
|
|
3136
3191
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3137
3192
|
sx: {
|
|
@@ -3144,7 +3199,7 @@ const R = {
|
|
|
3144
3199
|
children: o.financial_strength_header_action
|
|
3145
3200
|
}
|
|
3146
3201
|
),
|
|
3147
|
-
subheader: /* @__PURE__ */ e(
|
|
3202
|
+
subheader: /* @__PURE__ */ e(X, { color: "text.primary", children: o.financial_strength_header }),
|
|
3148
3203
|
sx: {
|
|
3149
3204
|
p: 0,
|
|
3150
3205
|
"& .MuiCardHeader-content": {
|
|
@@ -3153,21 +3208,21 @@ const R = {
|
|
|
3153
3208
|
}
|
|
3154
3209
|
}
|
|
3155
3210
|
),
|
|
3156
|
-
/* @__PURE__ */ e(
|
|
3157
|
-
|
|
3211
|
+
/* @__PURE__ */ e(_, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(
|
|
3212
|
+
Pt,
|
|
3158
3213
|
{
|
|
3159
3214
|
arcRadius: n <= 323 ? 73 : 154,
|
|
3160
|
-
footerCenterContent:
|
|
3215
|
+
footerCenterContent: d,
|
|
3161
3216
|
healthScore: a?.health_score || 0,
|
|
3162
3217
|
size: n <= 323 ? "M" : "L"
|
|
3163
3218
|
}
|
|
3164
3219
|
) }),
|
|
3165
|
-
a?.health_score ? /* @__PURE__ */
|
|
3166
|
-
|
|
3220
|
+
a?.health_score ? /* @__PURE__ */ s(
|
|
3221
|
+
_o,
|
|
3167
3222
|
{
|
|
3168
3223
|
sx: {
|
|
3169
3224
|
px: 16,
|
|
3170
|
-
backgroundColor:
|
|
3225
|
+
backgroundColor: l ? "grey.800" : "grey.50",
|
|
3171
3226
|
//TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
|
|
3172
3227
|
"&.Mui-expanded": {
|
|
3173
3228
|
m: 0
|
|
@@ -3178,9 +3233,9 @@ const R = {
|
|
|
3178
3233
|
},
|
|
3179
3234
|
children: [
|
|
3180
3235
|
/* @__PURE__ */ e(
|
|
3181
|
-
|
|
3236
|
+
mo,
|
|
3182
3237
|
{
|
|
3183
|
-
expandIcon: /* @__PURE__ */ e(
|
|
3238
|
+
expandIcon: /* @__PURE__ */ e(on, { size: 20 }),
|
|
3184
3239
|
sx: {
|
|
3185
3240
|
height: 52,
|
|
3186
3241
|
p: 0,
|
|
@@ -3191,11 +3246,11 @@ const R = {
|
|
|
3191
3246
|
children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: o.accordion_title_text })
|
|
3192
3247
|
}
|
|
3193
3248
|
),
|
|
3194
|
-
/* @__PURE__ */ e(
|
|
3249
|
+
/* @__PURE__ */ e(ho, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(k, { variant: "subtitle1", children: p.scoreContent }) })
|
|
3195
3250
|
]
|
|
3196
3251
|
}
|
|
3197
3252
|
) : /* @__PURE__ */ e(
|
|
3198
|
-
|
|
3253
|
+
Me,
|
|
3199
3254
|
{
|
|
3200
3255
|
buttonText: o.connect_more_accounts_title,
|
|
3201
3256
|
description: o.health_score_zero_description,
|
|
@@ -3203,7 +3258,7 @@ const R = {
|
|
|
3203
3258
|
hasIcon: !1,
|
|
3204
3259
|
isDashboard: !0,
|
|
3205
3260
|
sx: {
|
|
3206
|
-
backgroundColor:
|
|
3261
|
+
backgroundColor: l ? "grey.800" : "grey.50",
|
|
3207
3262
|
//TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
|
|
3208
3263
|
".connect-more-accounts-title": {
|
|
3209
3264
|
fontWeight: 600,
|
|
@@ -3216,133 +3271,139 @@ const R = {
|
|
|
3216
3271
|
}
|
|
3217
3272
|
)
|
|
3218
3273
|
] });
|
|
3219
|
-
}),
|
|
3220
|
-
const { visibleAccounts:
|
|
3221
|
-
augmentedChartData:
|
|
3222
|
-
calculateHealthScore:
|
|
3223
|
-
healthScore:
|
|
3224
|
-
loadAugmentedChartData:
|
|
3225
|
-
loadMonthlySummaries:
|
|
3226
|
-
} =
|
|
3274
|
+
}), Xr = ({ onBackClick: t, sx: r, onTrendsClick: n, onSpendingClick: o }) => {
|
|
3275
|
+
const { visibleAccounts: c } = xe(), { dateRange: i, isDataLoaded: a, loadBudgetData: d, setTheme: l } = yt(), { reloadCategoryTotals: p } = Ee(), {
|
|
3276
|
+
augmentedChartData: u,
|
|
3277
|
+
calculateHealthScore: m,
|
|
3278
|
+
healthScore: g,
|
|
3279
|
+
loadAugmentedChartData: S,
|
|
3280
|
+
loadMonthlySummaries: C
|
|
3281
|
+
} = P(), { finstrong: b, connect: v } = w(), { isCopyLoaded: y, isInitialized: f, selectedAccounts: D, setSelectedAccounts: F } = U(), { isMobile: H } = He(), O = G(), { userProfile: N } = Q(), [E, ce] = h.useState(!1), [j, oe] = h.useState(!1), [le, de] = h.useState(!1);
|
|
3227
3282
|
if (h.useEffect(() => {
|
|
3228
|
-
|
|
3229
|
-
}, []), h.useEffect(() =>
|
|
3230
|
-
f && (
|
|
3283
|
+
l(O);
|
|
3284
|
+
}, []), h.useEffect(() => F(c), [c]), h.useEffect(() => {
|
|
3285
|
+
f && (m().finally(), S().finally(), C().finally());
|
|
3231
3286
|
}, [f]), h.useEffect(() => {
|
|
3232
|
-
f && (p(
|
|
3233
|
-
}, [
|
|
3234
|
-
const
|
|
3235
|
-
},
|
|
3236
|
-
return /* @__PURE__ */
|
|
3237
|
-
|
|
3287
|
+
f && (p(D, i.start, i.end), a || d());
|
|
3288
|
+
}, [i, a, f, D]), !y || !f) return /* @__PURE__ */ e(te, {});
|
|
3289
|
+
const V = () => {
|
|
3290
|
+
}, me = () => ce(!0);
|
|
3291
|
+
return /* @__PURE__ */ s(
|
|
3292
|
+
zn,
|
|
3238
3293
|
{
|
|
3239
|
-
accountOptions:
|
|
3294
|
+
accountOptions: c,
|
|
3240
3295
|
actions: [
|
|
3241
3296
|
{
|
|
3242
3297
|
iconName: "person",
|
|
3243
|
-
label:
|
|
3244
|
-
onClick:
|
|
3298
|
+
label: b.profile,
|
|
3299
|
+
onClick: me
|
|
3245
3300
|
}
|
|
3246
3301
|
],
|
|
3247
3302
|
hasDivider: !0,
|
|
3248
|
-
onAccountsFilterClick:
|
|
3303
|
+
onAccountsFilterClick: V,
|
|
3249
3304
|
onBackClick: t,
|
|
3250
3305
|
sx: r,
|
|
3251
|
-
title:
|
|
3306
|
+
title: b.title,
|
|
3252
3307
|
children: [
|
|
3253
|
-
N.has_completed_finstrong_onboarding ? /* @__PURE__ */
|
|
3254
|
-
|
|
3308
|
+
N.has_completed_finstrong_onboarding ? /* @__PURE__ */ s(
|
|
3309
|
+
_,
|
|
3255
3310
|
{
|
|
3256
3311
|
sx: {
|
|
3257
3312
|
flexDirection: { md: "row" },
|
|
3258
3313
|
gap: 24,
|
|
3259
3314
|
justifyContent: "center",
|
|
3260
|
-
pt:
|
|
3315
|
+
pt: H ? 24 : 16,
|
|
3261
3316
|
px: 24
|
|
3262
3317
|
},
|
|
3263
3318
|
children: [
|
|
3264
|
-
/* @__PURE__ */
|
|
3265
|
-
/* @__PURE__ */ e(
|
|
3319
|
+
/* @__PURE__ */ s(_, { sx: { gap: 24, width: { md: 432 } }, children: [
|
|
3320
|
+
/* @__PURE__ */ e(Yr, {}),
|
|
3266
3321
|
/* @__PURE__ */ e(
|
|
3267
|
-
|
|
3322
|
+
Me,
|
|
3268
3323
|
{
|
|
3269
|
-
description:
|
|
3324
|
+
description: b.connect_more_accounts_description,
|
|
3270
3325
|
drawerType: "connectDrawer",
|
|
3271
|
-
title:
|
|
3326
|
+
title: b.connect_more_accounts_title
|
|
3272
3327
|
}
|
|
3273
3328
|
)
|
|
3274
3329
|
] }),
|
|
3275
|
-
/* @__PURE__ */ e(
|
|
3276
|
-
/* @__PURE__ */
|
|
3277
|
-
/* @__PURE__ */ e(
|
|
3330
|
+
/* @__PURE__ */ e(_, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ s(K, { sx: { background: O.palette.background.paper, p: 16 }, children: [
|
|
3331
|
+
/* @__PURE__ */ s(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3332
|
+
/* @__PURE__ */ e(X, { children: b.key_indicators }),
|
|
3278
3333
|
/* @__PURE__ */ e(
|
|
3279
|
-
|
|
3334
|
+
W,
|
|
3280
3335
|
{
|
|
3281
3336
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3282
|
-
onClick: () =>
|
|
3337
|
+
onClick: () => oe(!0),
|
|
3283
3338
|
sx: {
|
|
3284
3339
|
fontSize: 13
|
|
3285
3340
|
},
|
|
3286
3341
|
variant: "text",
|
|
3287
|
-
children:
|
|
3342
|
+
children: b.whats_changed
|
|
3288
3343
|
}
|
|
3289
3344
|
)
|
|
3290
3345
|
] }),
|
|
3291
|
-
|
|
3292
|
-
|
|
3346
|
+
u.length ? /* @__PURE__ */ e(
|
|
3347
|
+
ze,
|
|
3293
3348
|
{
|
|
3294
|
-
axisColor:
|
|
3349
|
+
axisColor: O.palette.divider,
|
|
3295
3350
|
baseline: "min",
|
|
3296
|
-
colors: [
|
|
3351
|
+
colors: [O.palette.primary.main],
|
|
3297
3352
|
curveType: "natural",
|
|
3298
3353
|
customLegendVariant: "XSmall",
|
|
3299
|
-
datasets: [
|
|
3354
|
+
datasets: [u],
|
|
3300
3355
|
height: 300,
|
|
3301
3356
|
isGraphClippingXAxis: !0,
|
|
3302
|
-
labelBackgroundColor:
|
|
3303
|
-
labelFontColor:
|
|
3304
|
-
labelFontSize: typeof
|
|
3305
|
-
labels: [
|
|
3357
|
+
labelBackgroundColor: O.palette.border.dark,
|
|
3358
|
+
labelFontColor: O.palette.common.white,
|
|
3359
|
+
labelFontSize: typeof O.typography.XSmall?.fontSize == "string" ? parseFloat(O.typography.XSmall.fontSize) : O.typography.XSmall?.fontSize,
|
|
3360
|
+
labels: [b.key_indicators_label],
|
|
3306
3361
|
margin: { right: 20, left: 25 },
|
|
3307
3362
|
showArea: !0,
|
|
3308
3363
|
showAverage: !0,
|
|
3309
3364
|
showLegend: !0,
|
|
3310
3365
|
showMarkLabel: !0,
|
|
3311
3366
|
showXAxis: !0,
|
|
3312
|
-
title:
|
|
3367
|
+
title: b.peer_average,
|
|
3313
3368
|
useCustomMark: !0
|
|
3314
3369
|
}
|
|
3315
|
-
) : /* @__PURE__ */ e(
|
|
3316
|
-
|
|
3370
|
+
) : /* @__PURE__ */ e(kr, { onClick: () => de(!0) }),
|
|
3371
|
+
g.health_score !== null && /* @__PURE__ */ e(
|
|
3372
|
+
vr,
|
|
3373
|
+
{
|
|
3374
|
+
onSpendingClick: o,
|
|
3375
|
+
onTrendsClick: n
|
|
3376
|
+
}
|
|
3377
|
+
)
|
|
3317
3378
|
] }) })
|
|
3318
3379
|
]
|
|
3319
3380
|
}
|
|
3320
|
-
) : /* @__PURE__ */ e(
|
|
3321
|
-
/* @__PURE__ */ e(
|
|
3381
|
+
) : /* @__PURE__ */ e(Wr, {}),
|
|
3382
|
+
/* @__PURE__ */ e(Hr, { isOpen: E, onClose: () => ce(!1) }),
|
|
3322
3383
|
/* @__PURE__ */ e(
|
|
3323
3384
|
ne,
|
|
3324
3385
|
{
|
|
3325
|
-
onClose: () =>
|
|
3326
|
-
showConnectWidget:
|
|
3386
|
+
onClose: () => de(!1),
|
|
3387
|
+
showConnectWidget: le,
|
|
3327
3388
|
title: v.mini_title
|
|
3328
3389
|
}
|
|
3329
3390
|
),
|
|
3330
3391
|
/* @__PURE__ */ e(
|
|
3331
|
-
|
|
3392
|
+
Vr,
|
|
3332
3393
|
{
|
|
3333
|
-
isOpen:
|
|
3334
|
-
onClose: () =>
|
|
3394
|
+
isOpen: j,
|
|
3395
|
+
onClose: () => oe(!1)
|
|
3335
3396
|
}
|
|
3336
3397
|
)
|
|
3337
3398
|
]
|
|
3338
3399
|
}
|
|
3339
3400
|
);
|
|
3340
|
-
},
|
|
3401
|
+
}, pi = x(Xr);
|
|
3341
3402
|
export {
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3403
|
+
bo as CreditScoreGraph,
|
|
3404
|
+
Ft as DialScoreCard,
|
|
3405
|
+
Pt as FinancialStrengthGraph,
|
|
3406
|
+
hi as FinstrongApi,
|
|
3407
|
+
mi as FinstrongStore,
|
|
3408
|
+
pi as FinstrongWidget
|
|
3348
3409
|
};
|