@mx-cartographer/experiences 7.13.21 → 7.13.22-alpha.al0
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/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-CG9VtEpj.mjs} +2 -2
- package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-BDFCEhSI.mjs} +2 -2
- package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-Bn1eH2EU.mjs} +1 -1
- package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-BCSxP3M3.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-tvJUjmwZ.mjs} +1 -1
- package/dist/{Connect-eYIWqCEr.mjs → Connect-CmjOgy5v.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-Be0RkL7I.mjs} +2 -2
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-yeD_PsY1.mjs} +2 -2
- package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-xu9UcYZR.mjs} +1 -1
- package/dist/DateRangeSelector-DE4UR77m.mjs +275 -0
- package/dist/{ExportCsvAction-izkIdXj5.mjs → ExportCsvAction-CLUDN8jI.mjs} +3 -3
- package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-BkUeAltd.mjs} +90 -96
- package/dist/{GoalStore-DB58sKTC.mjs → GoalStore-DMhiGiF4.mjs} +1 -1
- package/dist/{Help-D-laTbKu.mjs → Help-pcoNjCaF.mjs} +1 -1
- package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DIjY-HBq.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-BQIdxB-9.mjs} +1 -1
- package/dist/{ManageIncome-B1j-AzI1.mjs → ManageIncome-DWVaWpCT.mjs} +4 -4
- package/dist/{MicroWidgetContainer-B_EnfvCq.mjs → MicroWidgetContainer-CTMkXRJM.mjs} +1 -1
- package/dist/{MiniWidgetContainer-Bhkv-hpz.mjs → MiniWidgetContainer-BKPN3c-6.mjs} +1 -1
- package/dist/{NotificationSettings-C77J42Ue.mjs → NotificationSettings-O3iUw7-O.mjs} +32 -32
- package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-2lCGZTRv.mjs} +3 -3
- package/dist/{RecurringSettings-Dyj3i0ZJ.mjs → RecurringSettings-DNko1CD0.mjs} +2 -2
- package/dist/{SpendingLegend-BgjazduU.mjs → SpendingLegend-CGYqNtOp.mjs} +1 -1
- package/dist/{StatusIndicator-CIKUOoN_.mjs → StatusIndicator-CnDblSmc.mjs} +2 -2
- package/dist/{Transaction-CqjlF6SO.mjs → Transaction-Bd0myZzA.mjs} +1 -1
- package/dist/{TransactionDetails-CwqokbQo.mjs → TransactionDetails-DAB5arBD.mjs} +6 -6
- package/dist/{TransactionStore-rpqhGX8m.mjs → TransactionStore-hzVucfUK.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-D24H9kDm.mjs → ViewMoreMicroCard-BWCe3UeO.mjs} +1 -1
- package/dist/WidgetContainer-BPeSl0Dj.mjs +180 -0
- package/dist/WidgetContainerV2-BjOelON7.mjs +127 -0
- package/dist/accounts/index.es.js +218 -219
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +408 -409
- package/dist/cashflow/index.es.js +227 -228
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +3 -2
- package/dist/common/components/WidgetContainerV2.d.ts +4 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +167 -164
- package/dist/dashboard/index.es.js +5 -5
- package/dist/debts/index.es.js +585 -586
- package/dist/{exportTransactionsToCSV-CdTF_RqL.mjs → exportTransactionsToCSV-CamFllci.mjs} +1 -1
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/index.es.js +641 -652
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/index.es.js +498 -499
- package/dist/help/index.es.js +8 -8
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-DOWEalfb.mjs} +2 -2
- package/dist/insights/index.es.js +3 -3
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/index.es.js +448 -449
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +182 -196
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +240 -242
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/index.es.js +246 -248
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-DQc7zGqk.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DojdZhOg.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-DmYEMfRw.mjs} +1 -1
- package/package.json +1 -1
- package/dist/WidgetContainer-B7xDq2bM.mjs +0 -441
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
1
|
+
import { jsxs as i, Fragment as G, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import M from "@mui/material/Box";
|
|
3
3
|
import _ from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as E, alpha as de } from "@mui/material/styles";
|
|
5
5
|
import { PieChart as tn } from "@mui/x-charts/PieChart";
|
|
6
|
-
import { P as
|
|
7
|
-
import { TrendingUp as rn, ArrowRightAlt as an, TrendingDown as sn, AccountBalance as
|
|
8
|
-
import { g as yn, a as bn, r as
|
|
6
|
+
import { P as I, H3 as V, Text as T, InstitutionLogo as dt, H2 as Fe, MerchantLogo as nn, Icon as on } from "@mxenabled/mxui";
|
|
7
|
+
import { TrendingUp as rn, ArrowRightAlt as an, TrendingDown as sn, AccountBalance as pt, ChevronRight as Z, CheckCircle as cn, Cancel as ln, CreditCard as _t, Savings as dn, ContentCopy as pn, MultilineChart as _n, Add as ut, Cardiology as un, Payments as hn, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
|
|
8
|
+
import { g as yn, a as bn, r as Je, b as fn, c as He, d as ht, C as ke, e as Me, f as xn, h as Sn, i as Cn, j as mt, k as et, l as vn, m as tt, n as wn, o as gt, p as kn, q as yt, s as Oe, t as bt, u as Mn, v as ft, w as Dn, A as ne, x as In, P as Tn } from "../FinstrongStore-BQxXxxYD.mjs";
|
|
9
9
|
import { y as Ci, F as vi } from "../FinstrongStore-BQxXxxYD.mjs";
|
|
10
|
-
import * as
|
|
11
|
-
import { observer as
|
|
12
|
-
import { u as
|
|
10
|
+
import * as nt from "d3";
|
|
11
|
+
import { observer as w } from "mobx-react-lite";
|
|
12
|
+
import { u as C, b as J, a as Ne, o as ee, y as L, p as An, d as Se, l as je, g as On, i as Ke, h as Rn, m as Ln } from "../hooks-DOWEalfb.mjs";
|
|
13
13
|
import { L as U } from "../Loader-D3rjKx72.mjs";
|
|
14
|
-
import h, { useState as Fn, useRef as Bn, useCallback as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { L as
|
|
18
|
-
import { C as
|
|
19
|
-
import { C as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
14
|
+
import h, { useState as Fn, useRef as Bn, useCallback as ot, useEffect as rt } from "react";
|
|
15
|
+
import B from "@mui/material/Button";
|
|
16
|
+
import Y from "@mui/material/Card";
|
|
17
|
+
import { L as Ve } from "../LineChart-DIjY-HBq.mjs";
|
|
18
|
+
import { C as xt } from "../ConnectionsDrawer-yeD_PsY1.mjs";
|
|
19
|
+
import { C as re } from "../ConnectDrawer-Be0RkL7I.mjs";
|
|
20
|
+
import pe from "@mui/material/Tab";
|
|
21
|
+
import Ye from "@mui/material/Tabs";
|
|
22
22
|
import Re from "@mui/material/TextField";
|
|
23
|
-
import { u as
|
|
23
|
+
import { u as Xe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as Pn } from "../Dialog-Ck34yr-d.mjs";
|
|
25
|
-
import { u as
|
|
25
|
+
import { u as St } from "../useDimensions-CeDR9V8N.mjs";
|
|
26
26
|
import { E as Le } from "../EmptyState-DHAkGsjk.mjs";
|
|
27
27
|
import Wn from "@mui/material/Chip";
|
|
28
|
-
import { D as
|
|
29
|
-
import
|
|
28
|
+
import { D as oe } from "../Drawer-Bbe4AMB1.mjs";
|
|
29
|
+
import ue from "@mui/material/Divider";
|
|
30
30
|
import be from "@mui/material/ListItem";
|
|
31
|
-
import
|
|
31
|
+
import Ct from "@mui/material/ListItemAvatar";
|
|
32
32
|
import fe from "@mui/material/ListItemText";
|
|
33
|
-
import { g as
|
|
34
|
-
import { g as
|
|
35
|
-
import
|
|
33
|
+
import { g as vt } from "../AccountDisplayName-CO7z3v99.mjs";
|
|
34
|
+
import { g as wt } from "../AccountFields-CxqONzjY.mjs";
|
|
35
|
+
import ze from "@mui/material/List";
|
|
36
36
|
import $n from "@mui/material/ListItemButton";
|
|
37
37
|
import En from "@mui/material/ListSubheader";
|
|
38
|
-
import { f as
|
|
39
|
-
import { b as
|
|
40
|
-
import { S as
|
|
41
|
-
import { A as
|
|
38
|
+
import { f as $ } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
39
|
+
import { b as K } from "../Localization-CPkpIwIx.mjs";
|
|
40
|
+
import { S as at, F as kt, e as zn, R as Mt } from "../RecurringTransactions-tayG19Wn.mjs";
|
|
41
|
+
import { A as Ge } from "../Account-BiB1F8lL.mjs";
|
|
42
42
|
import { S as Gn } from "../StatusBar-BK_uYHAB.mjs";
|
|
43
|
-
import { h as
|
|
44
|
-
import { T as Hn, s as Nn, h as jn, S as Kn, a as Vn } from "../StatusIndicator-
|
|
43
|
+
import { h as Dt } from "../DateUtil-wcYTmDRD.mjs";
|
|
44
|
+
import { T as Hn, s as Nn, h as jn, S as Kn, a as Vn } from "../StatusIndicator-CnDblSmc.mjs";
|
|
45
45
|
import { f as Yn, D as Xn } from "../DateFormats-BMpMrZpW.mjs";
|
|
46
|
-
import { T as
|
|
46
|
+
import { T as _e } from "../TabContentContainer-j01JYR_7.mjs";
|
|
47
47
|
import qn from "@mui/material/useMediaQuery";
|
|
48
48
|
import { BarPlot as Un } from "@mui/x-charts/BarChart";
|
|
49
49
|
import { ChartContainer as Qn } from "@mui/x-charts/ChartContainer";
|
|
50
50
|
import { ChartsXAxis as Zn } from "@mui/x-charts/ChartsXAxis";
|
|
51
51
|
import { ChartsYAxis as Jn } from "@mui/x-charts/ChartsYAxis";
|
|
52
|
-
import { startOfMonth as
|
|
53
|
-
import { endOfMonth as
|
|
54
|
-
import { g as eo, S as to, b as no } from "../SpendingLegend-
|
|
52
|
+
import { startOfMonth as It } from "date-fns/startOfMonth";
|
|
53
|
+
import { endOfMonth as Tt } from "date-fns/endOfMonth";
|
|
54
|
+
import { g as eo, S as to, b as no } from "../SpendingLegend-CGYqNtOp.mjs";
|
|
55
55
|
import { formatISO as oo } from "date-fns/formatISO";
|
|
56
56
|
import { fromUnixTime as ro } from "date-fns/fromUnixTime";
|
|
57
|
-
import { startOfToday as
|
|
57
|
+
import { startOfToday as it } from "date-fns/startOfToday";
|
|
58
58
|
import { subDays as ao } from "date-fns/subDays";
|
|
59
|
-
import { c as io, d as
|
|
59
|
+
import { c as io, d as st, S as so, i as co } from "../ManageIncome-DWVaWpCT.mjs";
|
|
60
60
|
import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
|
|
61
|
-
import { AdapterDateFns as
|
|
62
|
-
import { R as uo } from "../RecurringSettings-
|
|
61
|
+
import { AdapterDateFns as At } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
62
|
+
import { R as uo } from "../RecurringSettings-DNko1CD0.mjs";
|
|
63
63
|
import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
|
|
64
64
|
import { format as mo } from "date-fns/format";
|
|
65
65
|
import go from "@mui/lab/Timeline";
|
|
@@ -71,8 +71,8 @@ import Co from "@mui/lab/TimelineSeparator";
|
|
|
71
71
|
import vo from "@mui/material/Accordion";
|
|
72
72
|
import wo from "@mui/material/AccordionDetails";
|
|
73
73
|
import ko from "@mui/material/AccordionSummary";
|
|
74
|
-
import { u as Mo } from "../useWidgetLoadTimer-
|
|
75
|
-
import { W as Do } from "../
|
|
74
|
+
import { u as Mo } from "../useWidgetLoadTimer-DmYEMfRw.mjs";
|
|
75
|
+
import { W as Do } from "../WidgetContainerV2-BjOelON7.mjs";
|
|
76
76
|
const Io = ({
|
|
77
77
|
dialScoreData: t,
|
|
78
78
|
dataIndex: o,
|
|
@@ -86,34 +86,34 @@ const Io = ({
|
|
|
86
86
|
outterArcRadius: p,
|
|
87
87
|
progressEndAngle: u,
|
|
88
88
|
unitsPerSegment: m,
|
|
89
|
-
isFinacialStrengthGraph:
|
|
89
|
+
isFinacialStrengthGraph: f
|
|
90
90
|
}) => {
|
|
91
|
-
const
|
|
92
|
-
{ offset: "13.62%", color:
|
|
93
|
-
{ offset: "36.67%", color:
|
|
94
|
-
{ offset: "59.72%", color:
|
|
95
|
-
{ offset: "83.46%", color:
|
|
96
|
-
], [S,
|
|
91
|
+
const v = E(), x = [
|
|
92
|
+
{ offset: "13.62%", color: v.palette.chartMono.chartMono2 },
|
|
93
|
+
{ offset: "36.67%", color: v.palette.chartMono.chartMono3 },
|
|
94
|
+
{ offset: "59.72%", color: v.palette.chartMono.chartMono4 },
|
|
95
|
+
{ offset: "83.46%", color: v.palette.chartMono.chartMono5 }
|
|
96
|
+
], [S, b] = yn(
|
|
97
97
|
t,
|
|
98
98
|
s,
|
|
99
99
|
r,
|
|
100
100
|
o
|
|
101
|
-
), [
|
|
101
|
+
), [k, g] = bn(
|
|
102
102
|
S,
|
|
103
|
-
|
|
103
|
+
b,
|
|
104
104
|
o,
|
|
105
105
|
m,
|
|
106
106
|
u
|
|
107
|
-
), y =
|
|
108
|
-
return /* @__PURE__ */ i(
|
|
107
|
+
), y = nt.arc().innerRadius(d).outerRadius(p).startAngle(S).endAngle(b).padAngle(0.02).cornerRadius(8), A = nt.arc().innerRadius(d).outerRadius(p).startAngle(k).endAngle(g).padAngle(0.02).cornerRadius(8);
|
|
108
|
+
return /* @__PURE__ */ i(G, { children: [
|
|
109
109
|
/* @__PURE__ */ e(
|
|
110
110
|
"path",
|
|
111
111
|
{
|
|
112
112
|
d: y({}),
|
|
113
|
-
fill:
|
|
113
|
+
fill: f ? v.palette.divider : n
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
|
-
|
|
116
|
+
f && /* @__PURE__ */ e("path", { d: A({}), fill: "url(#arcGradient)" }),
|
|
117
117
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
118
118
|
"linearGradient",
|
|
119
119
|
{
|
|
@@ -124,11 +124,11 @@ const Io = ({
|
|
|
124
124
|
x2: a - c * 0.8 * Math.cos(Math.PI / 1.35),
|
|
125
125
|
y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
126
126
|
y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
127
|
-
children: x.map((
|
|
127
|
+
children: x.map((P, D) => /* @__PURE__ */ e("stop", { offset: P.offset, stopColor: P.color }, D))
|
|
128
128
|
}
|
|
129
129
|
) })
|
|
130
130
|
] });
|
|
131
|
-
},
|
|
131
|
+
}, Ot = ({
|
|
132
132
|
arcRadius: t = 100,
|
|
133
133
|
healthScore: o,
|
|
134
134
|
size: n = "L",
|
|
@@ -141,25 +141,25 @@ const Io = ({
|
|
|
141
141
|
footerCenterContent: p,
|
|
142
142
|
footerLeftContent: u,
|
|
143
143
|
footerRightContent: m,
|
|
144
|
-
isFinacialStrengthGraph:
|
|
144
|
+
isFinacialStrengthGraph: f = !1
|
|
145
145
|
}) => {
|
|
146
|
-
const
|
|
146
|
+
const v = E(), x = -Math.PI / 1.35, S = Math.PI / 1.35, b = S - x, k = b / (a - s), g = (o - s) * k, y = x + g + 0.02, A = n !== "SM" ? 0.1 : 0.12, P = t, D = t * (1 - A), H = P * 2, W = H / 2, N = H / 2, ve = (D + P) / 2, ae = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [X, te] = fn(ve, y, ae), ie = o / 25, q = {
|
|
147
147
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
148
148
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
149
149
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
150
|
-
},
|
|
150
|
+
}, j = {
|
|
151
151
|
top: 0,
|
|
152
152
|
right: 0,
|
|
153
153
|
bottom: 0,
|
|
154
154
|
left: 0,
|
|
155
155
|
...l
|
|
156
|
-
},
|
|
156
|
+
}, se = p === 0 ? an : sn, ce = n !== "SM" ? 3 : 1, we = ce * 4, z = q[n].markerSize * 2 + we;
|
|
157
157
|
return /* @__PURE__ */ i(
|
|
158
158
|
_,
|
|
159
159
|
{
|
|
160
160
|
sx: {
|
|
161
|
-
width:
|
|
162
|
-
height: n === "SM" ?
|
|
161
|
+
width: H,
|
|
162
|
+
height: n === "SM" ? H - 7 : H,
|
|
163
163
|
position: "relative",
|
|
164
164
|
alignSelf: "center",
|
|
165
165
|
overflow: "visible"
|
|
@@ -168,17 +168,17 @@ const Io = ({
|
|
|
168
168
|
/* @__PURE__ */ e(
|
|
169
169
|
tn,
|
|
170
170
|
{
|
|
171
|
-
height: n === "SM" ?
|
|
171
|
+
height: n === "SM" ? H - 7 : H,
|
|
172
172
|
hideLegend: !0,
|
|
173
|
-
margin:
|
|
173
|
+
margin: j,
|
|
174
174
|
series: [
|
|
175
175
|
{
|
|
176
176
|
data: r,
|
|
177
|
-
innerRadius:
|
|
178
|
-
outerRadius:
|
|
179
|
-
startAngle: Math.round(
|
|
177
|
+
innerRadius: D,
|
|
178
|
+
outerRadius: P,
|
|
179
|
+
startAngle: Math.round(Je(x)),
|
|
180
180
|
// Use Math.degrees to convert
|
|
181
|
-
endAngle: Math.round(
|
|
181
|
+
endAngle: Math.round(Je(S))
|
|
182
182
|
// Use Math.degrees to convert
|
|
183
183
|
}
|
|
184
184
|
],
|
|
@@ -190,16 +190,16 @@ const Io = ({
|
|
|
190
190
|
arcColor: me.color,
|
|
191
191
|
arcRadius: t,
|
|
192
192
|
arcStartAngle: x,
|
|
193
|
-
centerX:
|
|
194
|
-
centerY:
|
|
193
|
+
centerX: W,
|
|
194
|
+
centerY: N,
|
|
195
195
|
dataIndex: me.dataIndex,
|
|
196
196
|
dialScoreData: r,
|
|
197
|
-
innerArcRadius:
|
|
198
|
-
isFinacialStrengthGraph:
|
|
199
|
-
outterArcRadius:
|
|
197
|
+
innerArcRadius: D,
|
|
198
|
+
isFinacialStrengthGraph: f,
|
|
199
|
+
outterArcRadius: P,
|
|
200
200
|
progressEndAngle: y,
|
|
201
|
-
totalAngularSpan:
|
|
202
|
-
unitsPerSegment:
|
|
201
|
+
totalAngularSpan: b,
|
|
202
|
+
unitsPerSegment: ie
|
|
203
203
|
}
|
|
204
204
|
)
|
|
205
205
|
},
|
|
@@ -208,30 +208,30 @@ const Io = ({
|
|
|
208
208
|
stroke: "none"
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
|
-
width:
|
|
211
|
+
width: H
|
|
212
212
|
}
|
|
213
213
|
),
|
|
214
214
|
o >= s && o <= a && /* @__PURE__ */ e(
|
|
215
215
|
"svg",
|
|
216
216
|
{
|
|
217
|
-
height:
|
|
217
|
+
height: z,
|
|
218
218
|
style: {
|
|
219
219
|
position: "absolute",
|
|
220
|
-
left:
|
|
221
|
-
top:
|
|
220
|
+
left: W + X - q[n].markerSize - 5,
|
|
221
|
+
top: N + te - q[n].markerSize - 5,
|
|
222
222
|
overflow: "visible"
|
|
223
223
|
},
|
|
224
|
-
viewBox: `${
|
|
225
|
-
width:
|
|
224
|
+
viewBox: `${W + X - q[n].markerSize - 5} ${N + te - q[n].markerSize - 5} ${z} ${z}`,
|
|
225
|
+
width: z,
|
|
226
226
|
children: /* @__PURE__ */ e(
|
|
227
227
|
"circle",
|
|
228
228
|
{
|
|
229
|
-
cx:
|
|
230
|
-
cy:
|
|
231
|
-
fill:
|
|
229
|
+
cx: W + X,
|
|
230
|
+
cy: N + te,
|
|
231
|
+
fill: v.palette.common.white,
|
|
232
232
|
r: q[n].markerSize,
|
|
233
|
-
stroke:
|
|
234
|
-
strokeWidth:
|
|
233
|
+
stroke: f ? "url(#arcGradient)" : c,
|
|
234
|
+
strokeWidth: ce
|
|
235
235
|
}
|
|
236
236
|
)
|
|
237
237
|
}
|
|
@@ -241,8 +241,8 @@ const Io = ({
|
|
|
241
241
|
{
|
|
242
242
|
sx: {
|
|
243
243
|
position: "absolute",
|
|
244
|
-
top: `${
|
|
245
|
-
left: `${
|
|
244
|
+
top: `${N}px`,
|
|
245
|
+
left: `${W}px`,
|
|
246
246
|
transform: "translate(-50%, -50%)",
|
|
247
247
|
textAlign: "center"
|
|
248
248
|
},
|
|
@@ -253,7 +253,7 @@ const Io = ({
|
|
|
253
253
|
sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
|
|
254
254
|
children: [
|
|
255
255
|
/* @__PURE__ */ e(
|
|
256
|
-
|
|
256
|
+
I,
|
|
257
257
|
{
|
|
258
258
|
sx: {
|
|
259
259
|
fontSize: q[n].healthScoreFontSize,
|
|
@@ -263,7 +263,7 @@ const Io = ({
|
|
|
263
263
|
children: o
|
|
264
264
|
}
|
|
265
265
|
),
|
|
266
|
-
n !== "SM" && /* @__PURE__ */ e(
|
|
266
|
+
n !== "SM" && /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: d })
|
|
267
267
|
]
|
|
268
268
|
}
|
|
269
269
|
)
|
|
@@ -274,8 +274,8 @@ const Io = ({
|
|
|
274
274
|
{
|
|
275
275
|
sx: {
|
|
276
276
|
position: "absolute",
|
|
277
|
-
top: `${
|
|
278
|
-
left: `${
|
|
277
|
+
top: `${N * 2 * 0.83}px`,
|
|
278
|
+
left: `${W}px`,
|
|
279
279
|
transform: "translate(-50%, -50%)",
|
|
280
280
|
textAlign: "center"
|
|
281
281
|
},
|
|
@@ -289,9 +289,9 @@ const Io = ({
|
|
|
289
289
|
mt: 24
|
|
290
290
|
},
|
|
291
291
|
children: [
|
|
292
|
-
p > 0 ? /* @__PURE__ */ e(rn, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(
|
|
292
|
+
p > 0 ? /* @__PURE__ */ e(rn, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(se, { size: 16, sx: { color: "text.secondary" } }),
|
|
293
293
|
/* @__PURE__ */ e(
|
|
294
|
-
|
|
294
|
+
I,
|
|
295
295
|
{
|
|
296
296
|
sx: {
|
|
297
297
|
fontWeight: 600,
|
|
@@ -303,7 +303,7 @@ const Io = ({
|
|
|
303
303
|
)
|
|
304
304
|
]
|
|
305
305
|
}
|
|
306
|
-
) : /* @__PURE__ */ e(
|
|
306
|
+
) : /* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: p })
|
|
307
307
|
}
|
|
308
308
|
),
|
|
309
309
|
u !== void 0 && /* @__PURE__ */ e(
|
|
@@ -311,13 +311,13 @@ const Io = ({
|
|
|
311
311
|
{
|
|
312
312
|
sx: {
|
|
313
313
|
position: "absolute",
|
|
314
|
-
top: `${
|
|
315
|
-
left: `${
|
|
314
|
+
top: `${N * 2 * 0.83}px`,
|
|
315
|
+
left: `${W - W / 2}px`,
|
|
316
316
|
// shift left from center
|
|
317
317
|
transform: "translate(-50%, -50%)",
|
|
318
318
|
textAlign: "left"
|
|
319
319
|
},
|
|
320
|
-
children: /* @__PURE__ */ e(
|
|
320
|
+
children: /* @__PURE__ */ e(I, { variant: "body1", children: u })
|
|
321
321
|
}
|
|
322
322
|
),
|
|
323
323
|
m !== void 0 && /* @__PURE__ */ e(
|
|
@@ -325,18 +325,18 @@ const Io = ({
|
|
|
325
325
|
{
|
|
326
326
|
sx: {
|
|
327
327
|
position: "absolute",
|
|
328
|
-
top: `${
|
|
329
|
-
left: `${
|
|
328
|
+
top: `${N * 2 * 0.83}px`,
|
|
329
|
+
left: `${W + W / 2}px`,
|
|
330
330
|
transform: "translate(-50%, -50%)",
|
|
331
331
|
textAlign: "right"
|
|
332
332
|
},
|
|
333
|
-
children: /* @__PURE__ */ e(
|
|
333
|
+
children: /* @__PURE__ */ e(I, { variant: "body1", children: m })
|
|
334
334
|
}
|
|
335
335
|
)
|
|
336
336
|
]
|
|
337
337
|
}
|
|
338
338
|
);
|
|
339
|
-
},
|
|
339
|
+
}, Rt = w(
|
|
340
340
|
({
|
|
341
341
|
arcRadius: t,
|
|
342
342
|
size: o = "L",
|
|
@@ -349,9 +349,9 @@ const Io = ({
|
|
|
349
349
|
{ id: 2, label: "Group B", value: 25 },
|
|
350
350
|
{ id: 3, label: "Group C", value: 25 },
|
|
351
351
|
{ id: 4, label: "Group D", value: 25 }
|
|
352
|
-
], { finstrong: l } =
|
|
352
|
+
], { finstrong: l } = C(), c = He(n, l);
|
|
353
353
|
return /* @__PURE__ */ e(
|
|
354
|
-
|
|
354
|
+
Ot,
|
|
355
355
|
{
|
|
356
356
|
arcRadius: t,
|
|
357
357
|
dialScoreData: a,
|
|
@@ -364,7 +364,7 @@ const Io = ({
|
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
}
|
|
367
|
-
), To =
|
|
367
|
+
), To = w(
|
|
368
368
|
({
|
|
369
369
|
arcRadius: t,
|
|
370
370
|
size: o = "L",
|
|
@@ -373,7 +373,7 @@ const Io = ({
|
|
|
373
373
|
minValue: s = 300,
|
|
374
374
|
footerCenterContent: a
|
|
375
375
|
}) => {
|
|
376
|
-
const c =
|
|
376
|
+
const c = E().palette.mode === "dark", d = [
|
|
377
377
|
{
|
|
378
378
|
id: 1,
|
|
379
379
|
label: "Poor",
|
|
@@ -404,15 +404,15 @@ const Io = ({
|
|
|
404
404
|
value: 12,
|
|
405
405
|
color: c ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
|
|
406
406
|
}
|
|
407
|
-
], { finstrong: p } =
|
|
407
|
+
], { finstrong: p } = C(), { isCopyLoaded: u } = J();
|
|
408
408
|
if (!u) return /* @__PURE__ */ e(U, {});
|
|
409
|
-
const { status: m, color:
|
|
409
|
+
const { status: m, color: f = "none" } = ht(
|
|
410
410
|
n,
|
|
411
411
|
c,
|
|
412
412
|
p.credit_score_status
|
|
413
413
|
);
|
|
414
414
|
return /* @__PURE__ */ e(
|
|
415
|
-
|
|
415
|
+
Ot,
|
|
416
416
|
{
|
|
417
417
|
arcRadius: t,
|
|
418
418
|
dialScoreData: d,
|
|
@@ -421,7 +421,7 @@ const Io = ({
|
|
|
421
421
|
footerRightContent: r,
|
|
422
422
|
healthScore: n,
|
|
423
423
|
healthScoreStatus: m,
|
|
424
|
-
markerColor:
|
|
424
|
+
markerColor: f,
|
|
425
425
|
maxValue: r,
|
|
426
426
|
minValue: s,
|
|
427
427
|
size: o
|
|
@@ -438,9 +438,9 @@ const Io = ({
|
|
|
438
438
|
description: l,
|
|
439
439
|
sx: c
|
|
440
440
|
}) => {
|
|
441
|
-
const [d, p] = h.useState(!1), { connect: u, finstrong: m } =
|
|
442
|
-
return t &&
|
|
443
|
-
|
|
441
|
+
const [d, p] = h.useState(!1), { connect: u, finstrong: m } = C(), { config: f } = Ne();
|
|
442
|
+
return t && f.show_connections_widget_in_master ? /* @__PURE__ */ i(
|
|
443
|
+
Y,
|
|
444
444
|
{
|
|
445
445
|
sx: {
|
|
446
446
|
pb: 24,
|
|
@@ -458,13 +458,13 @@ const Io = ({
|
|
|
458
458
|
...o && { flexDirection: "row", alignItems: "center" }
|
|
459
459
|
},
|
|
460
460
|
children: [
|
|
461
|
-
n && /* @__PURE__ */ e(
|
|
462
|
-
/* @__PURE__ */ e(
|
|
461
|
+
n && /* @__PURE__ */ e(pt, { sx: { height: 20, width: 20 } }),
|
|
462
|
+
/* @__PURE__ */ e(V, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || m.connect_more_accounts_title })
|
|
463
463
|
]
|
|
464
464
|
}
|
|
465
465
|
),
|
|
466
466
|
/* @__PURE__ */ e(
|
|
467
|
-
|
|
467
|
+
I,
|
|
468
468
|
{
|
|
469
469
|
className: "connect-more-accounts-description",
|
|
470
470
|
sx: { color: "text.secondary", mt: 8 },
|
|
@@ -473,17 +473,17 @@ const Io = ({
|
|
|
473
473
|
}
|
|
474
474
|
),
|
|
475
475
|
/* @__PURE__ */ e(
|
|
476
|
-
|
|
476
|
+
B,
|
|
477
477
|
{
|
|
478
478
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
479
479
|
onClick: () => p(!0),
|
|
480
480
|
size: "small",
|
|
481
481
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
482
|
-
children: /* @__PURE__ */ e(
|
|
482
|
+
children: /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body2", children: r || m.connect_more_accounts_button })
|
|
483
483
|
}
|
|
484
484
|
),
|
|
485
485
|
t === "connectDrawer" && /* @__PURE__ */ e(
|
|
486
|
-
|
|
486
|
+
re,
|
|
487
487
|
{
|
|
488
488
|
onClose: () => p(!1),
|
|
489
489
|
showConnectWidget: d,
|
|
@@ -491,7 +491,7 @@ const Io = ({
|
|
|
491
491
|
}
|
|
492
492
|
),
|
|
493
493
|
t === "connectionsDrawer" && /* @__PURE__ */ e(
|
|
494
|
-
|
|
494
|
+
xt,
|
|
495
495
|
{
|
|
496
496
|
onClose: () => p(!1),
|
|
497
497
|
showConnectionsWidget: d,
|
|
@@ -502,9 +502,9 @@ const Io = ({
|
|
|
502
502
|
}
|
|
503
503
|
) : null;
|
|
504
504
|
};
|
|
505
|
-
var
|
|
505
|
+
var he = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(he || {});
|
|
506
506
|
const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Oo = ({ isOpen: t, onClose: o }) => {
|
|
507
|
-
const { common: n, finstrong: r } =
|
|
507
|
+
const { common: n, finstrong: r } = C(), { isMobile: s } = Xe(), { updateUser: a, user: l } = ee(), [c, d] = h.useState(l.credit_score || 0), p = !isNaN(c), u = () => {
|
|
508
508
|
o(), setTimeout(() => d(l.credit_score || 0), 300);
|
|
509
509
|
}, m = () => {
|
|
510
510
|
!c || c === l.credit_score || a({ ...l, credit_score: c });
|
|
@@ -528,8 +528,8 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
528
528
|
children: /* @__PURE__ */ e(
|
|
529
529
|
"form",
|
|
530
530
|
{
|
|
531
|
-
onSubmit: (
|
|
532
|
-
|
|
531
|
+
onSubmit: (f) => {
|
|
532
|
+
f.preventDefault(), m(), u();
|
|
533
533
|
},
|
|
534
534
|
children: /* @__PURE__ */ e(
|
|
535
535
|
Re,
|
|
@@ -541,7 +541,7 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
541
541
|
noValidate: !0,
|
|
542
542
|
pattern: "[0-9]*"
|
|
543
543
|
},
|
|
544
|
-
onChange: (
|
|
544
|
+
onChange: (f) => d(Number(f.target.value)),
|
|
545
545
|
value: p ? c : ""
|
|
546
546
|
}
|
|
547
547
|
)
|
|
@@ -549,8 +549,8 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
549
549
|
)
|
|
550
550
|
}
|
|
551
551
|
);
|
|
552
|
-
},
|
|
553
|
-
const o =
|
|
552
|
+
}, Lt = w(Oo), Ro = ({ chartFor: t }) => {
|
|
553
|
+
const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = L(), { user: s } = ee(), { finstrong: a } = C(), [l, { width: c }] = St(), d = {
|
|
554
554
|
savingsOverTime: {
|
|
555
555
|
icon: "trending_up",
|
|
556
556
|
title: a.key_indicators_save.zero_state_title,
|
|
@@ -579,21 +579,21 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
579
579
|
title: a.credit_over_time_title,
|
|
580
580
|
valueKey: "credit_score"
|
|
581
581
|
}
|
|
582
|
-
}[t], m = xn(r, u.valueKey),
|
|
582
|
+
}[t], m = xn(r, u.valueKey), f = r.map((D) => D[u.valueKey]), v = Math.max(...f), x = Math.min(...f), S = () => v >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : v >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: b, leftMargin: k } = S(), g = u.title, y = t === "creditOverTime";
|
|
583
583
|
let A;
|
|
584
584
|
if (y) {
|
|
585
|
-
const { color:
|
|
585
|
+
const { color: D } = ht(
|
|
586
586
|
s?.credit_score ?? 0,
|
|
587
587
|
n,
|
|
588
588
|
a.credit_score_status
|
|
589
589
|
);
|
|
590
|
-
A =
|
|
590
|
+
A = D;
|
|
591
591
|
}
|
|
592
|
-
const
|
|
593
|
-
return /* @__PURE__ */ e(
|
|
594
|
-
/* @__PURE__ */ e(
|
|
592
|
+
const P = m.some((D) => D.y !== 0);
|
|
593
|
+
return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children: P ? /* @__PURE__ */ i(_, { gap: 8, sx: { pl: 18 }, children: [
|
|
594
|
+
/* @__PURE__ */ e(I, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
|
|
595
595
|
/* @__PURE__ */ e(
|
|
596
|
-
|
|
596
|
+
Ve,
|
|
597
597
|
{
|
|
598
598
|
areaColor: A,
|
|
599
599
|
axisColor: o.palette.divider,
|
|
@@ -606,11 +606,11 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
606
606
|
labelFontColor: y ? "text.primary" : "",
|
|
607
607
|
labelFontSize: y ? 13 : void 0,
|
|
608
608
|
labels: [a.key_indicators_label],
|
|
609
|
-
margin: { left:
|
|
610
|
-
markStyles: (
|
|
609
|
+
margin: { left: k, top: y ? 25 : 15, right: 20 },
|
|
610
|
+
markStyles: (D) => y ? {
|
|
611
611
|
markLabelStyles: {
|
|
612
612
|
marginLeft: 16,
|
|
613
|
-
transform:
|
|
613
|
+
transform: D === m.length - 1 ? "translateX(-16px)" : "translateX(16px)",
|
|
614
614
|
fontWeight: 600,
|
|
615
615
|
fill: o.palette.text.primary
|
|
616
616
|
},
|
|
@@ -629,7 +629,7 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
629
629
|
showYAxis: y,
|
|
630
630
|
showYAxisTicks: y,
|
|
631
631
|
useCustomMark: !0,
|
|
632
|
-
valueFormatterString: y ? void 0 :
|
|
632
|
+
valueFormatterString: y ? void 0 : b,
|
|
633
633
|
width: c < 342 ? c - 48 : 342
|
|
634
634
|
}
|
|
635
635
|
)
|
|
@@ -653,8 +653,8 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
) });
|
|
656
|
-
},
|
|
657
|
-
const { healthScoreChangeReports: t } = L(), { finstrong: o } =
|
|
656
|
+
}, qe = w(Ro), Lo = () => {
|
|
657
|
+
const { healthScoreChangeReports: t } = L(), { finstrong: o } = C(), { user: n } = ee(), { availableWidth: r } = An(), { isSmallMobile: s } = Xe(r), [a, l] = h.useState(!1), c = t.at(-1);
|
|
658
658
|
return /* @__PURE__ */ i(M, { children: [
|
|
659
659
|
/* @__PURE__ */ i(_, { sx: { gap: 28 }, children: [
|
|
660
660
|
/* @__PURE__ */ e(
|
|
@@ -666,13 +666,13 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
666
666
|
size: s ? "M" : "L"
|
|
667
667
|
}
|
|
668
668
|
),
|
|
669
|
-
/* @__PURE__ */ e(
|
|
670
|
-
/* @__PURE__ */ e(
|
|
669
|
+
/* @__PURE__ */ e(B, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
|
|
670
|
+
/* @__PURE__ */ e(qe, { chartFor: "creditOverTime" })
|
|
671
671
|
] }),
|
|
672
|
-
/* @__PURE__ */ e(
|
|
672
|
+
/* @__PURE__ */ e(Lt, { isOpen: a, onClose: () => l(!1) })
|
|
673
673
|
] });
|
|
674
|
-
}, Fo =
|
|
675
|
-
const { finstrong: o } =
|
|
674
|
+
}, Fo = w(Lo), Pe = ({ status: t }) => {
|
|
675
|
+
const { finstrong: o } = C(), n = Sn(Cn[t]), r = {
|
|
676
676
|
GOOD: o.key_indicators_good,
|
|
677
677
|
FAIR: o.key_indicators_fair,
|
|
678
678
|
OFF_TRACK: o.key_indicators_off_track,
|
|
@@ -682,7 +682,7 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
682
682
|
Wn,
|
|
683
683
|
{
|
|
684
684
|
label: /* @__PURE__ */ e(
|
|
685
|
-
|
|
685
|
+
I,
|
|
686
686
|
{
|
|
687
687
|
fontWeight: 700,
|
|
688
688
|
sx: { color: n.color, minHeight: 12 },
|
|
@@ -700,12 +700,12 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
700
700
|
}
|
|
701
701
|
);
|
|
702
702
|
}, Bo = () => {
|
|
703
|
-
const { finstrong: t } =
|
|
703
|
+
const { finstrong: t } = C(), { user: o } = ee(), n = mt(o.credit_score ?? null);
|
|
704
704
|
return /* @__PURE__ */ i(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
705
|
-
/* @__PURE__ */ e(
|
|
705
|
+
/* @__PURE__ */ e(V, { children: t.credit_score_keep_strong_credit_score }),
|
|
706
706
|
/* @__PURE__ */ e(Pe, { status: n })
|
|
707
707
|
] });
|
|
708
|
-
}, Po =
|
|
708
|
+
}, Po = w(Bo), Wo = ({
|
|
709
709
|
additionalContent: t,
|
|
710
710
|
connectTitle: o,
|
|
711
711
|
connectDescription: n,
|
|
@@ -719,32 +719,32 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
719
719
|
title: u,
|
|
720
720
|
drawerType: m
|
|
721
721
|
}) => {
|
|
722
|
-
const { finstrong:
|
|
723
|
-
if (
|
|
724
|
-
const y =
|
|
722
|
+
const { finstrong: f } = C(), { isCopyLoaded: v } = J(), [x, S] = Fn(!1), b = Bn(null), k = ot(() => {
|
|
723
|
+
if (b.current) {
|
|
724
|
+
const y = b.current.scrollTop > 0;
|
|
725
725
|
S((A) => A !== y ? y : A);
|
|
726
726
|
}
|
|
727
|
-
}, []), g =
|
|
727
|
+
}, []), g = ot(
|
|
728
728
|
(y) => {
|
|
729
|
-
if (
|
|
729
|
+
if (b.current && b.current.removeEventListener("scroll", k), y) {
|
|
730
730
|
let A = y.parentElement;
|
|
731
731
|
for (; A; ) {
|
|
732
|
-
const { overflow:
|
|
733
|
-
if (
|
|
734
|
-
|
|
732
|
+
const { overflow: P, overflowY: D } = window.getComputedStyle(A);
|
|
733
|
+
if (P === "auto" || D === "auto" || P === "scroll" || D === "scroll") {
|
|
734
|
+
b.current = A, A.addEventListener("scroll", k, { passive: !0 });
|
|
735
735
|
break;
|
|
736
736
|
}
|
|
737
737
|
A = A.parentElement;
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
|
-
[
|
|
741
|
+
[k]
|
|
742
742
|
);
|
|
743
|
-
return
|
|
743
|
+
return rt(() => {
|
|
744
744
|
l || S(!1);
|
|
745
|
-
}, [l]),
|
|
746
|
-
|
|
747
|
-
}, [
|
|
745
|
+
}, [l]), rt(() => () => {
|
|
746
|
+
b.current && b.current.removeEventListener("scroll", k);
|
|
747
|
+
}, [k]), v ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: d, title: a || f.key_indicators, children: /* @__PURE__ */ i(
|
|
748
748
|
_,
|
|
749
749
|
{
|
|
750
750
|
ref: g,
|
|
@@ -760,8 +760,8 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
760
760
|
pb: p ? 0 : 24
|
|
761
761
|
},
|
|
762
762
|
children: [
|
|
763
|
-
u && typeof u == "string" ? /* @__PURE__ */ e(
|
|
764
|
-
s && /* @__PURE__ */ e(
|
|
763
|
+
u && typeof u == "string" ? /* @__PURE__ */ e(V, { children: u }) : u,
|
|
764
|
+
s && /* @__PURE__ */ e(I, { sx: { lineHeight: "24px" }, children: s })
|
|
765
765
|
]
|
|
766
766
|
}
|
|
767
767
|
),
|
|
@@ -797,12 +797,12 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
797
797
|
]
|
|
798
798
|
}
|
|
799
799
|
) }) : /* @__PURE__ */ e(U, {});
|
|
800
|
-
},
|
|
800
|
+
}, Ft = w(Wo), $o = ({
|
|
801
801
|
onClick: t,
|
|
802
802
|
shouldShowBalance: o = !0,
|
|
803
803
|
loadAccounts: n
|
|
804
804
|
}) => {
|
|
805
|
-
const { config: r } =
|
|
805
|
+
const { config: r } = Ne(), { accounts: s } = C(), { selectedAccounts: a } = J(), l = h.useCallback(
|
|
806
806
|
(d) => {
|
|
807
807
|
t?.(d);
|
|
808
808
|
},
|
|
@@ -815,23 +815,23 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
815
815
|
);
|
|
816
816
|
return a.length ? /* @__PURE__ */ e(h.Fragment, { children: c.map((d) => {
|
|
817
817
|
const { accountsForType: p, totalBalanceForType: u } = a.reduce(
|
|
818
|
-
(m,
|
|
818
|
+
(m, f) => (f.account_type === d && (m.accountsForType.push(f), m.totalBalanceForType += f.balance || 0), m),
|
|
819
819
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
820
820
|
);
|
|
821
821
|
return /* @__PURE__ */ i(
|
|
822
|
-
|
|
822
|
+
ze,
|
|
823
823
|
{
|
|
824
824
|
subheader: /* @__PURE__ */ e(En, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
825
|
-
/* @__PURE__ */ e(
|
|
826
|
-
o && /* @__PURE__ */ e(
|
|
825
|
+
/* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: s.account_types[d] }),
|
|
826
|
+
o && /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: $(u, "0,0.00") })
|
|
827
827
|
] }) }),
|
|
828
828
|
sx: { bgcolor: "background.paper" },
|
|
829
829
|
children: [
|
|
830
|
-
p.map((m,
|
|
831
|
-
const { firstValue:
|
|
830
|
+
p.map((m, f) => {
|
|
831
|
+
const { firstValue: v } = wt(m, s), x = vt(m, {
|
|
832
832
|
allowNickname: r?.show_account_nicknames_in_master
|
|
833
|
-
}), S = /* @__PURE__ */ i(
|
|
834
|
-
/* @__PURE__ */ e(
|
|
833
|
+
}), S = /* @__PURE__ */ i(G, { children: [
|
|
834
|
+
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(dt, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
|
|
835
835
|
/* @__PURE__ */ e(
|
|
836
836
|
fe,
|
|
837
837
|
{
|
|
@@ -839,77 +839,77 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
839
839
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
840
840
|
}
|
|
841
841
|
),
|
|
842
|
-
o && /* @__PURE__ */ e(
|
|
842
|
+
o && /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: $(v ?? 0, "0,0.00") })
|
|
843
843
|
] });
|
|
844
844
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
845
845
|
/* @__PURE__ */ e(be, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e($n, { onClick: () => l(m), children: S }) : S }),
|
|
846
|
-
|
|
846
|
+
f !== p.length - 1 && /* @__PURE__ */ e(ue, { variant: "inset" })
|
|
847
847
|
] }, m.guid);
|
|
848
848
|
}),
|
|
849
|
-
/* @__PURE__ */ e(
|
|
849
|
+
/* @__PURE__ */ e(ue, {})
|
|
850
850
|
]
|
|
851
851
|
},
|
|
852
852
|
d
|
|
853
853
|
);
|
|
854
854
|
}) }) : null;
|
|
855
|
-
},
|
|
856
|
-
const n =
|
|
855
|
+
}, Bt = w($o), Eo = ({ loadAccounts: t, loadMoreLabel: o }) => {
|
|
856
|
+
const n = E(), { config: r } = Ne(), { connect: s, finstrong: a } = C(), { accounts: l } = C(), { selectedAccounts: c } = J(), [d, p] = h.useState(!1), [u, m] = h.useState(!1), f = h.useMemo(
|
|
857
857
|
() => c.filter(
|
|
858
858
|
(S) => t ? t.includes(S.account_type) : !0
|
|
859
859
|
),
|
|
860
860
|
[c, t]
|
|
861
|
-
),
|
|
862
|
-
const { firstValue:
|
|
863
|
-
return
|
|
861
|
+
), v = h.useMemo(() => f.slice(0, 3), [f]), x = (S) => {
|
|
862
|
+
const { firstValue: b } = wt(S, l);
|
|
863
|
+
return b;
|
|
864
864
|
};
|
|
865
|
-
return
|
|
866
|
-
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children:
|
|
865
|
+
return f.length >= 1 ? /* @__PURE__ */ i(G, { children: [
|
|
866
|
+
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: v.map((S, b) => /* @__PURE__ */ i(h.Fragment, { children: [
|
|
867
867
|
/* @__PURE__ */ i(be, { sx: { px: 24 }, children: [
|
|
868
|
-
/* @__PURE__ */ e(
|
|
868
|
+
/* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(dt, { alt: "MX", institutionGuid: S.institution_guid ?? "" }) }),
|
|
869
869
|
/* @__PURE__ */ e(
|
|
870
870
|
fe,
|
|
871
871
|
{
|
|
872
|
-
primary: `${
|
|
872
|
+
primary: `${vt(S, {
|
|
873
873
|
allowNickname: r?.show_account_nicknames_in_master
|
|
874
874
|
})}
|
|
875
875
|
${S.account_number ? ` *${S.account_number}` : ""}`,
|
|
876
876
|
primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
|
|
877
877
|
}
|
|
878
878
|
),
|
|
879
|
-
/* @__PURE__ */ e(
|
|
879
|
+
/* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: $(x(S), "0,0.00") })
|
|
880
880
|
] }),
|
|
881
|
-
|
|
881
|
+
b < v.length - 1 && /* @__PURE__ */ e(ue, { variant: "inset" })
|
|
882
882
|
] }, S.guid)) }),
|
|
883
|
-
|
|
883
|
+
f.length > 3 && /* @__PURE__ */ i(G, { children: [
|
|
884
884
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
885
|
-
|
|
885
|
+
B,
|
|
886
886
|
{
|
|
887
887
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
888
888
|
onClick: () => p(!0),
|
|
889
889
|
size: "small",
|
|
890
890
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
891
|
-
children: /* @__PURE__ */ i(
|
|
892
|
-
|
|
891
|
+
children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
|
|
892
|
+
f.length - 3,
|
|
893
893
|
" ",
|
|
894
894
|
o
|
|
895
895
|
] })
|
|
896
896
|
}
|
|
897
897
|
) }),
|
|
898
|
-
/* @__PURE__ */ e(
|
|
898
|
+
/* @__PURE__ */ e(oe, { isOpen: d, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(Bt, { loadAccounts: t }) })
|
|
899
899
|
] })
|
|
900
|
-
] }) : /* @__PURE__ */ i(
|
|
900
|
+
] }) : /* @__PURE__ */ i(G, { children: [
|
|
901
901
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
902
|
-
|
|
902
|
+
B,
|
|
903
903
|
{
|
|
904
904
|
onClick: () => m(!0),
|
|
905
905
|
size: "small",
|
|
906
906
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
907
907
|
variant: "contained",
|
|
908
|
-
children: /* @__PURE__ */ e(
|
|
908
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
|
|
909
909
|
}
|
|
910
910
|
) }),
|
|
911
911
|
/* @__PURE__ */ e(
|
|
912
|
-
|
|
912
|
+
re,
|
|
913
913
|
{
|
|
914
914
|
onClose: () => m(!1),
|
|
915
915
|
showConnectWidget: u,
|
|
@@ -917,7 +917,7 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
917
917
|
}
|
|
918
918
|
)
|
|
919
919
|
] });
|
|
920
|
-
},
|
|
920
|
+
}, Pt = w(Eo), Ce = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ i(
|
|
921
921
|
_,
|
|
922
922
|
{
|
|
923
923
|
sx: {
|
|
@@ -930,14 +930,14 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
930
930
|
...n
|
|
931
931
|
},
|
|
932
932
|
children: [
|
|
933
|
-
typeof t == "number" ? /* @__PURE__ */ e(
|
|
934
|
-
/* @__PURE__ */ e(
|
|
933
|
+
typeof t == "number" ? /* @__PURE__ */ e(I, { variant: "h2", children: $(t, "0,0.00") }) : t,
|
|
934
|
+
/* @__PURE__ */ e(I, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
|
|
935
935
|
]
|
|
936
936
|
}
|
|
937
937
|
);
|
|
938
938
|
var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}), De = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(De || {}), Q = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Q || {});
|
|
939
939
|
const zo = ({ total: t }) => {
|
|
940
|
-
const { finstrong: o } =
|
|
940
|
+
const { finstrong: o } = C(), n = [
|
|
941
941
|
{ id: Q.Monthly, label: o.maintain_emergency_savings_monthly },
|
|
942
942
|
{ id: Q.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
|
|
943
943
|
{ id: Q.Weekly, label: o.maintain_emergency_savings_weekly },
|
|
@@ -951,38 +951,38 @@ const zo = ({ total: t }) => {
|
|
|
951
951
|
{ id: De.Months, label: o.maintain_emergency_savings_months },
|
|
952
952
|
{ id: De.Years, label: o.maintain_emergency_savings_years },
|
|
953
953
|
{ id: De.Days, label: o.maintain_emergency_savings_days }
|
|
954
|
-
], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = h.useState(0), [d, p] = h.useState(
|
|
955
|
-
|
|
956
|
-
), [
|
|
954
|
+
], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = h.useState(0), [d, p] = h.useState(et(t)), [u, m] = h.useState(
|
|
955
|
+
et(t)
|
|
956
|
+
), [f, v] = h.useState(a), [x, S] = h.useState(vn(t)), [b, k] = h.useState(De.Months);
|
|
957
957
|
h.useEffect(() => {
|
|
958
958
|
c(
|
|
959
|
-
|
|
959
|
+
tt({
|
|
960
960
|
contribution: u,
|
|
961
|
-
goalAmount:
|
|
961
|
+
goalAmount: f,
|
|
962
962
|
goalPeriod: x,
|
|
963
|
-
targetPeriod:
|
|
963
|
+
targetPeriod: b,
|
|
964
964
|
totalSaved: t
|
|
965
965
|
})
|
|
966
966
|
), p(u);
|
|
967
967
|
}, []);
|
|
968
968
|
const g = (y) => {
|
|
969
969
|
y.preventDefault(), c(
|
|
970
|
-
|
|
970
|
+
tt({
|
|
971
971
|
contribution: u,
|
|
972
|
-
goalAmount:
|
|
972
|
+
goalAmount: f,
|
|
973
973
|
goalPeriod: x,
|
|
974
|
-
targetPeriod:
|
|
974
|
+
targetPeriod: b,
|
|
975
975
|
totalSaved: t
|
|
976
976
|
})
|
|
977
977
|
), p(u);
|
|
978
978
|
};
|
|
979
|
-
return /* @__PURE__ */ e(
|
|
979
|
+
return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ i(_, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
980
980
|
/* @__PURE__ */ e(
|
|
981
981
|
Ce,
|
|
982
982
|
{
|
|
983
983
|
balance: /* @__PURE__ */ i(_, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
984
|
-
/* @__PURE__ */ e(
|
|
985
|
-
/* @__PURE__ */ i(
|
|
984
|
+
/* @__PURE__ */ e(T, { variant: "h2", children: $(l, "0,0") }),
|
|
985
|
+
/* @__PURE__ */ i(T, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
986
986
|
"/",
|
|
987
987
|
r[d]
|
|
988
988
|
] })
|
|
@@ -994,9 +994,9 @@ const zo = ({ total: t }) => {
|
|
|
994
994
|
Re,
|
|
995
995
|
{
|
|
996
996
|
"aria-label": o.maintain_emergency_savings_savings_goal,
|
|
997
|
-
helperText:
|
|
997
|
+
helperText: K(
|
|
998
998
|
o.maintain_emergency_savings_suggested_goal,
|
|
999
|
-
|
|
999
|
+
$(a, "0,0")
|
|
1000
1000
|
),
|
|
1001
1001
|
inputProps: {
|
|
1002
1002
|
noValidate: !0,
|
|
@@ -1004,13 +1004,13 @@ const zo = ({ total: t }) => {
|
|
|
1004
1004
|
},
|
|
1005
1005
|
label: o.maintain_emergency_savings_savings_goal,
|
|
1006
1006
|
onChange: (y) => {
|
|
1007
|
-
y.target.value &&
|
|
1007
|
+
y.target.value && v(Number(y.target.value.replace(/[^0-9]/g, "")));
|
|
1008
1008
|
},
|
|
1009
|
-
value:
|
|
1009
|
+
value: f ? $(f, "0,0") : ""
|
|
1010
1010
|
}
|
|
1011
1011
|
),
|
|
1012
1012
|
/* @__PURE__ */ e(
|
|
1013
|
-
|
|
1013
|
+
at,
|
|
1014
1014
|
{
|
|
1015
1015
|
label: o.maintain_emergency_savings_how_often_contribute,
|
|
1016
1016
|
onChange: m,
|
|
@@ -1057,31 +1057,31 @@ const zo = ({ total: t }) => {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
},
|
|
1060
|
-
children: /* @__PURE__ */ e(
|
|
1060
|
+
children: /* @__PURE__ */ e(at, { label: "", onChange: k, options: s, value: b })
|
|
1061
1061
|
}
|
|
1062
1062
|
)
|
|
1063
1063
|
] }),
|
|
1064
|
-
/* @__PURE__ */ e(
|
|
1064
|
+
/* @__PURE__ */ e(B, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
|
|
1065
1065
|
] }) }) });
|
|
1066
|
-
}, Go =
|
|
1067
|
-
const { savingsAccounts: t } = Se(), { finstrong: o } =
|
|
1066
|
+
}, Go = w(zo), Ho = () => {
|
|
1067
|
+
const { savingsAccounts: t } = Se(), { finstrong: o } = C(), [n, r] = h.useState(!1), s = h.useMemo(
|
|
1068
1068
|
() => t.reduce((a, l) => a + (l.balance ?? 0), 0),
|
|
1069
1069
|
[t]
|
|
1070
1070
|
);
|
|
1071
1071
|
return /* @__PURE__ */ i(_, { sx: { gap: 24 }, children: [
|
|
1072
|
-
/* @__PURE__ */ e(
|
|
1072
|
+
/* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(_, { sx: { gap: 16 }, children: [
|
|
1073
1073
|
/* @__PURE__ */ e(Ce, { balance: s, title: o.maintain_emergency_savings_your_savings }),
|
|
1074
1074
|
t.length ? /* @__PURE__ */ e(
|
|
1075
|
-
|
|
1075
|
+
Pt,
|
|
1076
1076
|
{
|
|
1077
|
-
loadAccounts: [
|
|
1077
|
+
loadAccounts: [Ge.SAVINGS],
|
|
1078
1078
|
loadMoreLabel: o.connect_more_accounts_button
|
|
1079
1079
|
}
|
|
1080
|
-
) : /* @__PURE__ */ e(
|
|
1080
|
+
) : /* @__PURE__ */ e(B, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
|
|
1081
1081
|
] }) }),
|
|
1082
1082
|
/* @__PURE__ */ e(Go, { total: s }),
|
|
1083
1083
|
/* @__PURE__ */ e(
|
|
1084
|
-
|
|
1084
|
+
re,
|
|
1085
1085
|
{
|
|
1086
1086
|
onClose: () => r(!1),
|
|
1087
1087
|
showConnectWidget: n,
|
|
@@ -1089,7 +1089,7 @@ const zo = ({ total: t }) => {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
)
|
|
1091
1091
|
] });
|
|
1092
|
-
}, No =
|
|
1092
|
+
}, No = w(Ho), We = w(
|
|
1093
1093
|
({ label: t, value: o, status: n, bottomComponent: r, statusBarData: s = [] }) => {
|
|
1094
1094
|
const a = {
|
|
1095
1095
|
GOOD: {
|
|
@@ -1123,7 +1123,7 @@ const zo = ({ total: t }) => {
|
|
|
1123
1123
|
},
|
|
1124
1124
|
children: [
|
|
1125
1125
|
/* @__PURE__ */ i(_, { sx: { gap: 2 }, children: [
|
|
1126
|
-
/* @__PURE__ */ e(
|
|
1126
|
+
/* @__PURE__ */ e(T, { variant: "body2", children: t }),
|
|
1127
1127
|
/* @__PURE__ */ i(
|
|
1128
1128
|
_,
|
|
1129
1129
|
{
|
|
@@ -1151,13 +1151,13 @@ const zo = ({ total: t }) => {
|
|
|
1151
1151
|
), jo = {
|
|
1152
1152
|
sticky_label: "You have saved"
|
|
1153
1153
|
}, Ko = ["$0", "$250", "$500", "$750", "$1k"], Vo = () => {
|
|
1154
|
-
const { healthScore: t } = L(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = wn(o), r =
|
|
1154
|
+
const { healthScore: t } = L(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = wn(o), r = gt(o);
|
|
1155
1155
|
return /* @__PURE__ */ e(
|
|
1156
1156
|
We,
|
|
1157
1157
|
{
|
|
1158
1158
|
bottomComponent: /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Ko.map((s) => /* @__PURE__ */ i(_, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1159
1159
|
/* @__PURE__ */ e(
|
|
1160
|
-
|
|
1160
|
+
ue,
|
|
1161
1161
|
{
|
|
1162
1162
|
orientation: "vertical",
|
|
1163
1163
|
sx: {
|
|
@@ -1167,7 +1167,7 @@ const zo = ({ total: t }) => {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
),
|
|
1170
|
-
/* @__PURE__ */ e(
|
|
1170
|
+
/* @__PURE__ */ e(T, { variant: "caption", children: s })
|
|
1171
1171
|
] }, s)) }),
|
|
1172
1172
|
label: jo.sticky_label,
|
|
1173
1173
|
status: r,
|
|
@@ -1176,39 +1176,39 @@ const zo = ({ total: t }) => {
|
|
|
1176
1176
|
percentage: n
|
|
1177
1177
|
}
|
|
1178
1178
|
],
|
|
1179
|
-
value:
|
|
1179
|
+
value: $(o ?? 0, "0,0.00")
|
|
1180
1180
|
}
|
|
1181
1181
|
);
|
|
1182
|
-
}, Yo =
|
|
1182
|
+
}, Yo = w(Vo), $e = ({
|
|
1183
1183
|
transactions: t = [],
|
|
1184
1184
|
amountColor: o = "success.main",
|
|
1185
1185
|
amountPosition: n = "center",
|
|
1186
|
-
formatDate: r =
|
|
1186
|
+
formatDate: r = Dt,
|
|
1187
1187
|
secondaryIcon: s
|
|
1188
1188
|
}) => {
|
|
1189
|
-
const a =
|
|
1190
|
-
let
|
|
1191
|
-
return S && (
|
|
1189
|
+
const a = E(), { connect: l, finstrong: c, categories: d } = C(), [p, u] = h.useState(!1), [m, f] = h.useState(!1), { getCategoryName: v } = je(), x = 3, S = t.length > x, b = t.length - x;
|
|
1190
|
+
let k = t;
|
|
1191
|
+
return S && (k = t.map((g) => ({
|
|
1192
1192
|
...g,
|
|
1193
1193
|
category: d.default_categories[g.top_level_category_guid]?.replace(
|
|
1194
1194
|
/&/g,
|
|
1195
1195
|
"&"
|
|
1196
|
-
) ??
|
|
1197
|
-
})).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(
|
|
1196
|
+
) ?? v(g.top_level_category_guid)
|
|
1197
|
+
})).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(G, { children: [
|
|
1198
1198
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1199
|
-
|
|
1199
|
+
B,
|
|
1200
1200
|
{
|
|
1201
|
-
onClick: () =>
|
|
1201
|
+
onClick: () => f(!0),
|
|
1202
1202
|
size: "small",
|
|
1203
1203
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1204
1204
|
variant: "contained",
|
|
1205
|
-
children: /* @__PURE__ */ e(
|
|
1205
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
|
|
1206
1206
|
}
|
|
1207
1207
|
) }),
|
|
1208
1208
|
/* @__PURE__ */ e(
|
|
1209
|
-
|
|
1209
|
+
re,
|
|
1210
1210
|
{
|
|
1211
|
-
onClose: () =>
|
|
1211
|
+
onClose: () => f(!1),
|
|
1212
1212
|
showConnectWidget: m,
|
|
1213
1213
|
title: l.mini_title
|
|
1214
1214
|
}
|
|
@@ -1250,13 +1250,13 @@ const zo = ({ total: t }) => {
|
|
|
1250
1250
|
},
|
|
1251
1251
|
children: [
|
|
1252
1252
|
/* @__PURE__ */ i(_, { children: [
|
|
1253
|
-
/* @__PURE__ */ e(
|
|
1253
|
+
/* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: g.description }),
|
|
1254
1254
|
/* @__PURE__ */ i(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1255
1255
|
!!s && s,
|
|
1256
|
-
/* @__PURE__ */ e(
|
|
1256
|
+
/* @__PURE__ */ e(T, { variant: "caption", children: r(g.date) })
|
|
1257
1257
|
] })
|
|
1258
1258
|
] }),
|
|
1259
|
-
/* @__PURE__ */ e(
|
|
1259
|
+
/* @__PURE__ */ e(I, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: $(g.amount, "0,0.00") })
|
|
1260
1260
|
]
|
|
1261
1261
|
},
|
|
1262
1262
|
g.guid || y
|
|
@@ -1265,28 +1265,28 @@ const zo = ({ total: t }) => {
|
|
|
1265
1265
|
},
|
|
1266
1266
|
y
|
|
1267
1267
|
)) }),
|
|
1268
|
-
S && /* @__PURE__ */ i(
|
|
1268
|
+
S && /* @__PURE__ */ i(G, { children: [
|
|
1269
1269
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1270
|
-
|
|
1270
|
+
B,
|
|
1271
1271
|
{
|
|
1272
1272
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1273
1273
|
onClick: () => u(!0),
|
|
1274
1274
|
size: "small",
|
|
1275
1275
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1276
|
-
children: /* @__PURE__ */ i(
|
|
1277
|
-
|
|
1276
|
+
children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
|
|
1277
|
+
b,
|
|
1278
1278
|
" ",
|
|
1279
1279
|
c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1280
1280
|
] })
|
|
1281
1281
|
}
|
|
1282
1282
|
) }),
|
|
1283
1283
|
/* @__PURE__ */ e(
|
|
1284
|
-
|
|
1284
|
+
oe,
|
|
1285
1285
|
{
|
|
1286
1286
|
isOpen: p,
|
|
1287
1287
|
onClose: () => u(!1),
|
|
1288
1288
|
title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1289
|
-
children: /* @__PURE__ */ e(Hn, { transaction:
|
|
1289
|
+
children: /* @__PURE__ */ e(Hn, { transaction: k })
|
|
1290
1290
|
}
|
|
1291
1291
|
)
|
|
1292
1292
|
] })
|
|
@@ -1296,11 +1296,11 @@ const zo = ({ total: t }) => {
|
|
|
1296
1296
|
finstrong: {
|
|
1297
1297
|
key_indicators_spend: { pay_bills_on_time_drawer: n }
|
|
1298
1298
|
}
|
|
1299
|
-
} =
|
|
1299
|
+
} = C(), { getSpendingFeeTransactions: r, allTransactions: s } = L();
|
|
1300
1300
|
return h.useEffect(() => {
|
|
1301
1301
|
r().finally(() => o(!1));
|
|
1302
|
-
}, []), t ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(
|
|
1303
|
-
|
|
1302
|
+
}, []), t ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(G, { children: s.spendingFee.length === 0 ? /* @__PURE__ */ i(
|
|
1303
|
+
Y,
|
|
1304
1304
|
{
|
|
1305
1305
|
sx: {
|
|
1306
1306
|
backgroundColor: "background.paper",
|
|
@@ -1313,13 +1313,13 @@ const zo = ({ total: t }) => {
|
|
|
1313
1313
|
children: [
|
|
1314
1314
|
/* @__PURE__ */ e(cn, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1315
1315
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1316
|
-
/* @__PURE__ */ e(
|
|
1317
|
-
/* @__PURE__ */ e(
|
|
1316
|
+
/* @__PURE__ */ e(V, { children: n.pay_bills_on_time_zero_fees_title }),
|
|
1317
|
+
/* @__PURE__ */ e(I, { variant: "subtitle1", children: n.pay_bills_on_time_zero_fees_description })
|
|
1318
1318
|
] })
|
|
1319
1319
|
]
|
|
1320
1320
|
}
|
|
1321
1321
|
) : /* @__PURE__ */ i(
|
|
1322
|
-
|
|
1322
|
+
Y,
|
|
1323
1323
|
{
|
|
1324
1324
|
sx: {
|
|
1325
1325
|
p: 16,
|
|
@@ -1327,7 +1327,7 @@ const zo = ({ total: t }) => {
|
|
|
1327
1327
|
backgroundColor: "background.paper"
|
|
1328
1328
|
},
|
|
1329
1329
|
children: [
|
|
1330
|
-
/* @__PURE__ */ e(
|
|
1330
|
+
/* @__PURE__ */ e(V, { sx: { textAlign: "left", pb: 16 }, children: n.pay_bills_on_time_sticky_fee_count }),
|
|
1331
1331
|
/* @__PURE__ */ e(
|
|
1332
1332
|
$e,
|
|
1333
1333
|
{
|
|
@@ -1341,8 +1341,8 @@ const zo = ({ total: t }) => {
|
|
|
1341
1341
|
]
|
|
1342
1342
|
}
|
|
1343
1343
|
) });
|
|
1344
|
-
}, qo =
|
|
1345
|
-
const { healthScore: t } = L(), { finstrong: o } =
|
|
1344
|
+
}, qo = w(Xo), Uo = () => {
|
|
1345
|
+
const { healthScore: t } = L(), { finstrong: o } = C(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = kn(t.spending_fee_transaction_count);
|
|
1346
1346
|
return /* @__PURE__ */ i(
|
|
1347
1347
|
_,
|
|
1348
1348
|
{
|
|
@@ -1353,7 +1353,7 @@ const zo = ({ total: t }) => {
|
|
|
1353
1353
|
borderColor: "divider"
|
|
1354
1354
|
},
|
|
1355
1355
|
children: [
|
|
1356
|
-
/* @__PURE__ */ e(
|
|
1356
|
+
/* @__PURE__ */ e(I, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
|
|
1357
1357
|
/* @__PURE__ */ i(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1358
1358
|
/* @__PURE__ */ i(Fe, { children: [
|
|
1359
1359
|
t.spending_fee_transaction_count,
|
|
@@ -1365,8 +1365,8 @@ const zo = ({ total: t }) => {
|
|
|
1365
1365
|
]
|
|
1366
1366
|
}
|
|
1367
1367
|
);
|
|
1368
|
-
}, Qo =
|
|
1369
|
-
const { savingsAndCheckingAccountsBalance: t } = Se(), { finstrong: o } =
|
|
1368
|
+
}, Qo = w(Uo), Zo = () => {
|
|
1369
|
+
const { savingsAndCheckingAccountsBalance: t } = Se(), { finstrong: o } = C();
|
|
1370
1370
|
return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1371
1371
|
/* @__PURE__ */ e(
|
|
1372
1372
|
Ce,
|
|
@@ -1376,15 +1376,15 @@ const zo = ({ total: t }) => {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
),
|
|
1378
1378
|
/* @__PURE__ */ e(
|
|
1379
|
-
|
|
1379
|
+
Pt,
|
|
1380
1380
|
{
|
|
1381
|
-
loadAccounts: [
|
|
1381
|
+
loadAccounts: [Ge.SAVINGS, Ge.CHECKING],
|
|
1382
1382
|
loadMoreLabel: o.more_accounts
|
|
1383
1383
|
}
|
|
1384
1384
|
)
|
|
1385
1385
|
] });
|
|
1386
|
-
}, Jo =
|
|
1387
|
-
const { finstrong: t } =
|
|
1386
|
+
}, Jo = w(Zo), er = () => {
|
|
1387
|
+
const { finstrong: t } = C(), {
|
|
1388
1388
|
isSpendingInitialized: o,
|
|
1389
1389
|
healthScore: n,
|
|
1390
1390
|
allTransactions: r,
|
|
@@ -1408,12 +1408,12 @@ const zo = ({ total: t }) => {
|
|
|
1408
1408
|
),
|
|
1409
1409
|
/* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: l })
|
|
1410
1410
|
] }) : /* @__PURE__ */ e(U, {});
|
|
1411
|
-
}, tr =
|
|
1412
|
-
const [t, o] = h.useState(0), { finstrong: n } =
|
|
1413
|
-
return /* @__PURE__ */ i(
|
|
1414
|
-
/* @__PURE__ */ i(
|
|
1411
|
+
}, tr = w(er), nr = () => {
|
|
1412
|
+
const [t, o] = h.useState(0), { finstrong: n } = C();
|
|
1413
|
+
return /* @__PURE__ */ i(G, { children: [
|
|
1414
|
+
/* @__PURE__ */ i(Y, { children: [
|
|
1415
1415
|
/* @__PURE__ */ i(
|
|
1416
|
-
|
|
1416
|
+
Ye,
|
|
1417
1417
|
{
|
|
1418
1418
|
"aria-label": n.key_indicators_save.drawer_title,
|
|
1419
1419
|
centered: !0,
|
|
@@ -1424,7 +1424,7 @@ const zo = ({ total: t }) => {
|
|
|
1424
1424
|
variant: "fullWidth",
|
|
1425
1425
|
children: [
|
|
1426
1426
|
/* @__PURE__ */ e(
|
|
1427
|
-
|
|
1427
|
+
pe,
|
|
1428
1428
|
{
|
|
1429
1429
|
"aria-controls": "available-details-tabpanel-0",
|
|
1430
1430
|
label: n.key_indicators_save.drawer_available,
|
|
@@ -1432,7 +1432,7 @@ const zo = ({ total: t }) => {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
),
|
|
1434
1434
|
/* @__PURE__ */ e(
|
|
1435
|
-
|
|
1435
|
+
pe,
|
|
1436
1436
|
{
|
|
1437
1437
|
"aria-controls": "spending-details-tabpanel-1",
|
|
1438
1438
|
label: n.key_indicators_save.drawer_spending,
|
|
@@ -1442,13 +1442,13 @@ const zo = ({ total: t }) => {
|
|
|
1442
1442
|
]
|
|
1443
1443
|
}
|
|
1444
1444
|
),
|
|
1445
|
-
/* @__PURE__ */ e(
|
|
1446
|
-
/* @__PURE__ */ e(
|
|
1445
|
+
/* @__PURE__ */ e(_e, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Jo, {}) }),
|
|
1446
|
+
/* @__PURE__ */ e(_e, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(tr, {}) })
|
|
1447
1447
|
] }),
|
|
1448
|
-
/* @__PURE__ */ e(
|
|
1448
|
+
/* @__PURE__ */ e(qe, { chartFor: "savingsOverTime" })
|
|
1449
1449
|
] });
|
|
1450
|
-
}, or =
|
|
1451
|
-
const { finstrong: t } =
|
|
1450
|
+
}, or = w(nr), rr = () => {
|
|
1451
|
+
const { finstrong: t } = C(), { healthScore: o } = L(), n = o.months_of_cash_on_hand, r = yt(n ? n * 30 : null), s = 183 / 6, a = Math.floor(n), l = Math.round((n - a) * s), c = n / 6 * 100;
|
|
1452
1452
|
return /* @__PURE__ */ e(
|
|
1453
1453
|
We,
|
|
1454
1454
|
{
|
|
@@ -1471,7 +1471,7 @@ const zo = ({ total: t }) => {
|
|
|
1471
1471
|
},
|
|
1472
1472
|
children: [
|
|
1473
1473
|
/* @__PURE__ */ e(
|
|
1474
|
-
|
|
1474
|
+
ue,
|
|
1475
1475
|
{
|
|
1476
1476
|
orientation: "vertical",
|
|
1477
1477
|
sx: {
|
|
@@ -1480,7 +1480,7 @@ const zo = ({ total: t }) => {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
),
|
|
1483
|
-
/* @__PURE__ */ e(
|
|
1483
|
+
/* @__PURE__ */ e(T, { variant: "caption", children: p })
|
|
1484
1484
|
]
|
|
1485
1485
|
},
|
|
1486
1486
|
p
|
|
@@ -1494,11 +1494,11 @@ const zo = ({ total: t }) => {
|
|
|
1494
1494
|
percentage: `${c}%`
|
|
1495
1495
|
}
|
|
1496
1496
|
],
|
|
1497
|
-
value:
|
|
1497
|
+
value: K(t.key_indicators_save.drawer_progress_bar_value, a, l)
|
|
1498
1498
|
}
|
|
1499
1499
|
);
|
|
1500
|
-
}, ar =
|
|
1501
|
-
const { healthScore: t } = L(), { finstrong: o } =
|
|
1500
|
+
}, ar = w(rr), ir = () => {
|
|
1501
|
+
const { healthScore: t } = L(), { finstrong: o } = C(), n = Oe(t.debt_to_income_ratio), r = bt(n);
|
|
1502
1502
|
return /* @__PURE__ */ e(
|
|
1503
1503
|
We,
|
|
1504
1504
|
{
|
|
@@ -1533,7 +1533,7 @@ const zo = ({ total: t }) => {
|
|
|
1533
1533
|
},
|
|
1534
1534
|
children: [
|
|
1535
1535
|
/* @__PURE__ */ e(
|
|
1536
|
-
|
|
1536
|
+
ue,
|
|
1537
1537
|
{
|
|
1538
1538
|
orientation: "vertical",
|
|
1539
1539
|
sx: {
|
|
@@ -1542,7 +1542,7 @@ const zo = ({ total: t }) => {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
),
|
|
1545
|
-
/* @__PURE__ */ e(
|
|
1545
|
+
/* @__PURE__ */ e(T, { sx: { color: "text.primary" }, variant: "caption", children: "30%" })
|
|
1546
1546
|
]
|
|
1547
1547
|
}
|
|
1548
1548
|
)
|
|
@@ -1558,7 +1558,7 @@ const zo = ({ total: t }) => {
|
|
|
1558
1558
|
justifyContent: "center",
|
|
1559
1559
|
marginLeft: "auto"
|
|
1560
1560
|
},
|
|
1561
|
-
children: /* @__PURE__ */ e(
|
|
1561
|
+
children: /* @__PURE__ */ e(T, { variant: "body2", children: t.debt_to_income_ratio ? K(
|
|
1562
1562
|
o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
|
|
1563
1563
|
n
|
|
1564
1564
|
) : "-" })
|
|
@@ -1574,11 +1574,11 @@ const zo = ({ total: t }) => {
|
|
|
1574
1574
|
percentage: `${n}%`
|
|
1575
1575
|
}
|
|
1576
1576
|
],
|
|
1577
|
-
value:
|
|
1577
|
+
value: $(t.ninety_day_debt_spend, "0,0.00")
|
|
1578
1578
|
}
|
|
1579
1579
|
);
|
|
1580
|
-
}, sr =
|
|
1581
|
-
const { healthScore: t, allTransactions: o } = L(), { connect: n, finstrong: r } =
|
|
1580
|
+
}, sr = w(ir), cr = () => {
|
|
1581
|
+
const { healthScore: t, allTransactions: o } = L(), { connect: n, finstrong: r } = C(), [s, a] = h.useState(!1);
|
|
1582
1582
|
return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1583
1583
|
/* @__PURE__ */ e(
|
|
1584
1584
|
Ce,
|
|
@@ -1592,7 +1592,7 @@ const zo = ({ total: t }) => {
|
|
|
1592
1592
|
// TODO: Need to add More Transactions functionality
|
|
1593
1593
|
/* @__PURE__ */ e($e, { transactions: o.income.map((l) => l.transaction) })
|
|
1594
1594
|
) : /* @__PURE__ */ e(
|
|
1595
|
-
|
|
1595
|
+
B,
|
|
1596
1596
|
{
|
|
1597
1597
|
onClick: () => {
|
|
1598
1598
|
a(!0);
|
|
@@ -1602,7 +1602,7 @@ const zo = ({ total: t }) => {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
),
|
|
1604
1604
|
/* @__PURE__ */ e(
|
|
1605
|
-
|
|
1605
|
+
re,
|
|
1606
1606
|
{
|
|
1607
1607
|
onClose: () => a(!1),
|
|
1608
1608
|
showConnectWidget: s,
|
|
@@ -1610,8 +1610,8 @@ const zo = ({ total: t }) => {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
)
|
|
1612
1612
|
] });
|
|
1613
|
-
}, lr =
|
|
1614
|
-
const { allTransactions: t, healthScore: o } = L(), { connect: n, finstrong: r } =
|
|
1613
|
+
}, lr = w(cr), dr = () => {
|
|
1614
|
+
const { allTransactions: t, healthScore: o } = L(), { connect: n, finstrong: r } = C(), [s, a] = h.useState(!1);
|
|
1615
1615
|
return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1616
1616
|
/* @__PURE__ */ e(
|
|
1617
1617
|
Ce,
|
|
@@ -1631,7 +1631,7 @@ const zo = ({ total: t }) => {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
)
|
|
1633
1633
|
) : /* @__PURE__ */ e(
|
|
1634
|
-
|
|
1634
|
+
B,
|
|
1635
1635
|
{
|
|
1636
1636
|
onClick: () => {
|
|
1637
1637
|
a(!0);
|
|
@@ -1641,7 +1641,7 @@ const zo = ({ total: t }) => {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
),
|
|
1643
1643
|
/* @__PURE__ */ e(
|
|
1644
|
-
|
|
1644
|
+
re,
|
|
1645
1645
|
{
|
|
1646
1646
|
onClose: () => a(!1),
|
|
1647
1647
|
showConnectWidget: s,
|
|
@@ -1649,22 +1649,22 @@ const zo = ({ total: t }) => {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
)
|
|
1651
1651
|
] });
|
|
1652
|
-
}, pr =
|
|
1652
|
+
}, pr = w(dr), _r = ({
|
|
1653
1653
|
color: t,
|
|
1654
1654
|
data: o,
|
|
1655
1655
|
series: n,
|
|
1656
1656
|
style: r,
|
|
1657
1657
|
...s
|
|
1658
1658
|
}) => {
|
|
1659
|
-
const a =
|
|
1659
|
+
const a = E(), l = h.useRef(null), c = h.useRef(null), [d, p] = h.useState(r.width || 0);
|
|
1660
1660
|
h.useLayoutEffect(() => {
|
|
1661
1661
|
p(r.width || 0);
|
|
1662
1662
|
}, [r.width]), h.useLayoutEffect(() => {
|
|
1663
1663
|
const S = new ResizeObserver(() => {
|
|
1664
1664
|
window.requestAnimationFrame(() => {
|
|
1665
1665
|
if (l.current) {
|
|
1666
|
-
const { width:
|
|
1667
|
-
g && g.setAttribute("transform", `translate(${
|
|
1666
|
+
const { width: b } = l.current.getBoundingClientRect(), k = b / 2, g = l.current.querySelector("text");
|
|
1667
|
+
g && g.setAttribute("transform", `translate(${k}, -8)`);
|
|
1668
1668
|
}
|
|
1669
1669
|
});
|
|
1670
1670
|
});
|
|
@@ -1672,12 +1672,12 @@ const zo = ({ total: t }) => {
|
|
|
1672
1672
|
l.current && S.unobserve(l.current);
|
|
1673
1673
|
};
|
|
1674
1674
|
}, []);
|
|
1675
|
-
const { formattedComparison: u, formattedMain: m } = o[n.index],
|
|
1675
|
+
const { formattedComparison: u, formattedMain: m } = o[n.index], f = n.type === 0 ? m : u, v = {
|
|
1676
1676
|
...r,
|
|
1677
1677
|
transition: "all 0.3s ease-in-out"
|
|
1678
1678
|
}, x = `translate(${d / 2}, -5)`;
|
|
1679
1679
|
return /* @__PURE__ */ i("g", { children: [
|
|
1680
|
-
/* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style:
|
|
1680
|
+
/* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style: v }),
|
|
1681
1681
|
/* @__PURE__ */ e(
|
|
1682
1682
|
"text",
|
|
1683
1683
|
{
|
|
@@ -1690,14 +1690,14 @@ const zo = ({ total: t }) => {
|
|
|
1690
1690
|
transform: x,
|
|
1691
1691
|
x: r.x,
|
|
1692
1692
|
y: r.y,
|
|
1693
|
-
children:
|
|
1693
|
+
children: f
|
|
1694
1694
|
}
|
|
1695
1695
|
)
|
|
1696
1696
|
] });
|
|
1697
1697
|
}, Ae = (t, o = 1e3) => {
|
|
1698
1698
|
const n = Math.abs(t) >= o ? "0.[0]a" : "0";
|
|
1699
|
-
return
|
|
1700
|
-
},
|
|
1699
|
+
return $(t, n);
|
|
1700
|
+
}, Wt = ({
|
|
1701
1701
|
chartFor: t,
|
|
1702
1702
|
data: o,
|
|
1703
1703
|
title: n,
|
|
@@ -1708,7 +1708,7 @@ const zo = ({ total: t }) => {
|
|
|
1708
1708
|
totalComparison: c,
|
|
1709
1709
|
totalMain: d
|
|
1710
1710
|
}) => {
|
|
1711
|
-
const p =
|
|
1711
|
+
const p = E(), u = qn(p.breakpoints.down("xs")), m = h.useMemo(
|
|
1712
1712
|
() => o.sort((g, y) => g.year !== y.year ? g.year - y.year : g.month - y.month).map((g) => {
|
|
1713
1713
|
const y = Mn(g.month), A = {
|
|
1714
1714
|
spending_vs_income: {
|
|
@@ -1730,18 +1730,18 @@ const zo = ({ total: t }) => {
|
|
|
1730
1730
|
};
|
|
1731
1731
|
}),
|
|
1732
1732
|
[o, t]
|
|
1733
|
-
),
|
|
1733
|
+
), f = {
|
|
1734
1734
|
dataKey: "label",
|
|
1735
1735
|
scaleType: "band"
|
|
1736
|
-
},
|
|
1736
|
+
}, v = Math.max(...m.map((g) => Math.max(g.main, g.comparison))), S = Math.min(...m.map((g) => Math.min(g.main, g.comparison))) === 0 && v === 0 ? 100 : Math.ceil(v * 1.2 / 1e3) * 1e3, b = S / 3, k = {
|
|
1737
1737
|
scaleType: "linear",
|
|
1738
1738
|
min: 0,
|
|
1739
1739
|
max: S,
|
|
1740
1740
|
tickNumber: 4,
|
|
1741
|
-
tickMinStep:
|
|
1742
|
-
valueFormatter: (g) => g === 0 ? "$0" :
|
|
1741
|
+
tickMinStep: b,
|
|
1742
|
+
valueFormatter: (g) => g === 0 ? "$0" : $(g, "0.[0]a")
|
|
1743
1743
|
};
|
|
1744
|
-
return /* @__PURE__ */ i(
|
|
1744
|
+
return /* @__PURE__ */ i(Y, { children: [
|
|
1745
1745
|
/* @__PURE__ */ i(
|
|
1746
1746
|
_,
|
|
1747
1747
|
{
|
|
@@ -1755,9 +1755,9 @@ const zo = ({ total: t }) => {
|
|
|
1755
1755
|
px: 16
|
|
1756
1756
|
},
|
|
1757
1757
|
children: [
|
|
1758
|
-
/* @__PURE__ */ e(
|
|
1758
|
+
/* @__PURE__ */ e(V, { children: n }),
|
|
1759
1759
|
r && /* @__PURE__ */ e(
|
|
1760
|
-
|
|
1760
|
+
B,
|
|
1761
1761
|
{
|
|
1762
1762
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1763
1763
|
onClick: s,
|
|
@@ -1788,11 +1788,11 @@ const zo = ({ total: t }) => {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
),
|
|
1790
1790
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1791
|
-
/* @__PURE__ */ i(
|
|
1791
|
+
/* @__PURE__ */ i(T, { variant: "subtitle2", children: [
|
|
1792
1792
|
a,
|
|
1793
1793
|
" "
|
|
1794
1794
|
] }),
|
|
1795
|
-
!u && d && /* @__PURE__ */ e(
|
|
1795
|
+
!u && d && /* @__PURE__ */ e(T, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
|
|
1796
1796
|
] })
|
|
1797
1797
|
] }),
|
|
1798
1798
|
/* @__PURE__ */ i(_, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
@@ -1808,11 +1808,11 @@ const zo = ({ total: t }) => {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
),
|
|
1810
1810
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1811
|
-
/* @__PURE__ */ i(
|
|
1811
|
+
/* @__PURE__ */ i(T, { variant: "subtitle2", children: [
|
|
1812
1812
|
l,
|
|
1813
1813
|
" "
|
|
1814
1814
|
] }),
|
|
1815
|
-
!u && c && /* @__PURE__ */ e(
|
|
1815
|
+
!u && c && /* @__PURE__ */ e(T, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
|
|
1816
1816
|
] })
|
|
1817
1817
|
] })
|
|
1818
1818
|
] }),
|
|
@@ -1830,8 +1830,8 @@ const zo = ({ total: t }) => {
|
|
|
1830
1830
|
{ dataKey: "main", type: "bar" },
|
|
1831
1831
|
{ dataKey: "comparison", type: "bar" }
|
|
1832
1832
|
],
|
|
1833
|
-
xAxis: [
|
|
1834
|
-
yAxis: [
|
|
1833
|
+
xAxis: [f],
|
|
1834
|
+
yAxis: [k],
|
|
1835
1835
|
children: [
|
|
1836
1836
|
/* @__PURE__ */ e(
|
|
1837
1837
|
Un,
|
|
@@ -1906,17 +1906,17 @@ const zo = ({ total: t }) => {
|
|
|
1906
1906
|
] })
|
|
1907
1907
|
] });
|
|
1908
1908
|
}, ur = () => {
|
|
1909
|
-
const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = L(), [s, a] = h.useState(0), { finstrong: l } =
|
|
1909
|
+
const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = L(), [s, a] = h.useState(0), { finstrong: l } = C();
|
|
1910
1910
|
if (h.useEffect(() => {
|
|
1911
1911
|
t || (o().finally(), n().finally());
|
|
1912
1912
|
}, [t]), !t) return /* @__PURE__ */ e(U, {});
|
|
1913
1913
|
const c = r.some(
|
|
1914
1914
|
(d) => d.debt_spend !== 0 || d.income !== 0
|
|
1915
1915
|
);
|
|
1916
|
-
return /* @__PURE__ */ i(
|
|
1917
|
-
/* @__PURE__ */ i(
|
|
1916
|
+
return /* @__PURE__ */ i(G, { children: [
|
|
1917
|
+
/* @__PURE__ */ i(Y, { children: [
|
|
1918
1918
|
/* @__PURE__ */ i(
|
|
1919
|
-
|
|
1919
|
+
Ye,
|
|
1920
1920
|
{
|
|
1921
1921
|
"aria-label": l.key_indicators_save.drawer_title,
|
|
1922
1922
|
centered: !0,
|
|
@@ -1927,7 +1927,7 @@ const zo = ({ total: t }) => {
|
|
|
1927
1927
|
variant: "fullWidth",
|
|
1928
1928
|
children: [
|
|
1929
1929
|
/* @__PURE__ */ e(
|
|
1930
|
-
|
|
1930
|
+
pe,
|
|
1931
1931
|
{
|
|
1932
1932
|
"aria-controls": "income-details-tabpanel-0",
|
|
1933
1933
|
id: "income-details-tab-0",
|
|
@@ -1936,7 +1936,7 @@ const zo = ({ total: t }) => {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
),
|
|
1938
1938
|
/* @__PURE__ */ e(
|
|
1939
|
-
|
|
1939
|
+
pe,
|
|
1940
1940
|
{
|
|
1941
1941
|
"aria-controls": "debt-payment-details-tabpanel-1",
|
|
1942
1942
|
id: "debt-payment-details-tab-1",
|
|
@@ -1948,7 +1948,7 @@ const zo = ({ total: t }) => {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
),
|
|
1950
1950
|
/* @__PURE__ */ e(
|
|
1951
|
-
|
|
1951
|
+
_e,
|
|
1952
1952
|
{
|
|
1953
1953
|
"aria-labelledby": "income-details-tab-0",
|
|
1954
1954
|
index: 0,
|
|
@@ -1958,7 +1958,7 @@ const zo = ({ total: t }) => {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
),
|
|
1960
1960
|
/* @__PURE__ */ e(
|
|
1961
|
-
|
|
1961
|
+
_e,
|
|
1962
1962
|
{
|
|
1963
1963
|
"aria-labelledby": "debt-payment-details-tab-1",
|
|
1964
1964
|
index: 1,
|
|
@@ -1968,8 +1968,8 @@ const zo = ({ total: t }) => {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
)
|
|
1970
1970
|
] }),
|
|
1971
|
-
c ? /* @__PURE__ */ e(
|
|
1972
|
-
|
|
1971
|
+
c ? /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
|
|
1972
|
+
Wt,
|
|
1973
1973
|
{
|
|
1974
1974
|
chartFor: "debt_payment_vs_income",
|
|
1975
1975
|
data: r,
|
|
@@ -1997,10 +1997,10 @@ const zo = ({ total: t }) => {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
1999
|
),
|
|
2000
|
-
/* @__PURE__ */ e(
|
|
2000
|
+
/* @__PURE__ */ e(qe, { chartFor: "debtOverTime" })
|
|
2001
2001
|
] });
|
|
2002
|
-
}, hr =
|
|
2003
|
-
const { healthScore: t } = L(), { finstrong: o } =
|
|
2002
|
+
}, hr = w(ur), mr = () => {
|
|
2003
|
+
const { healthScore: t } = L(), { finstrong: o } = C(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, a = ft(n), l = {
|
|
2004
2004
|
GOOD: [{ percentage: `${r}%` }],
|
|
2005
2005
|
FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
2006
2006
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
@@ -2019,12 +2019,12 @@ const zo = ({ total: t }) => {
|
|
|
2019
2019
|
mt: 8
|
|
2020
2020
|
},
|
|
2021
2021
|
children: [
|
|
2022
|
-
/* @__PURE__ */ i(
|
|
2023
|
-
t.ninety_day_income <= 0 ? "-" :
|
|
2022
|
+
/* @__PURE__ */ i(T, { variant: "body2", children: [
|
|
2023
|
+
t.ninety_day_income <= 0 ? "-" : $(t.ninety_day_income, "0,0.00"),
|
|
2024
2024
|
" ",
|
|
2025
2025
|
o?.key_indicators_spend.spend_less_than_you_make_drawer.income
|
|
2026
2026
|
] }),
|
|
2027
|
-
/* @__PURE__ */ i(
|
|
2027
|
+
/* @__PURE__ */ i(T, { variant: "body2", children: [
|
|
2028
2028
|
r <= 0 ? "-%" : `${r}%`,
|
|
2029
2029
|
" ",
|
|
2030
2030
|
o?.key_indicators_spend.spend_less_than_you_make_drawer.spent
|
|
@@ -2035,33 +2035,33 @@ const zo = ({ total: t }) => {
|
|
|
2035
2035
|
label: o?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
|
|
2036
2036
|
status: a,
|
|
2037
2037
|
statusBarData: l,
|
|
2038
|
-
value: s ? "$0" :
|
|
2038
|
+
value: s ? "$0" : $(t.ninety_day_spend, "0,0.00")
|
|
2039
2039
|
}
|
|
2040
2040
|
);
|
|
2041
|
-
}, gr =
|
|
2042
|
-
const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } =
|
|
2041
|
+
}, gr = w(mr), yr = () => {
|
|
2042
|
+
const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = je(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: a } = L(), { appDataStore: l } = On(), { finstrong: c, goals: d, spending: p } = C(), u = E(), [m, f] = h.useState("");
|
|
2043
2043
|
h.useEffect(() => {
|
|
2044
2044
|
r(
|
|
2045
2045
|
t,
|
|
2046
|
-
|
|
2047
|
-
|
|
2046
|
+
It(/* @__PURE__ */ new Date()),
|
|
2047
|
+
Tt(/* @__PURE__ */ new Date())
|
|
2048
2048
|
).finally();
|
|
2049
2049
|
}, [t]);
|
|
2050
|
-
const
|
|
2050
|
+
const v = h.useMemo(
|
|
2051
2051
|
() => eo(o, d, u, n),
|
|
2052
2052
|
[o, n]
|
|
2053
|
-
), x = (
|
|
2054
|
-
|
|
2055
|
-
}, { totalSpending: S, totalIncome:
|
|
2056
|
-
(
|
|
2057
|
-
totalSpending:
|
|
2058
|
-
totalIncome:
|
|
2053
|
+
), x = (k) => {
|
|
2054
|
+
f(m === k ? "" : k);
|
|
2055
|
+
}, { totalSpending: S, totalIncome: b } = h.useMemo(() => s?.reduce(
|
|
2056
|
+
(k, { standard_spend: g = 0, income: y = 0 }) => ({
|
|
2057
|
+
totalSpending: k.totalSpending + g,
|
|
2058
|
+
totalIncome: k.totalIncome + y
|
|
2059
2059
|
}),
|
|
2060
2060
|
{ totalSpending: 0, totalIncome: 0 }
|
|
2061
2061
|
), [s]);
|
|
2062
2062
|
return /* @__PURE__ */ i(_, { sx: { gap: 24 }, children: [
|
|
2063
|
-
|
|
2064
|
-
|
|
2063
|
+
b > 0 || S > 0 ? /* @__PURE__ */ e(
|
|
2064
|
+
Wt,
|
|
2065
2065
|
{
|
|
2066
2066
|
...l.appData.client_profile?.allow_trends_widget && {
|
|
2067
2067
|
buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
@@ -2072,8 +2072,8 @@ const zo = ({ total: t }) => {
|
|
|
2072
2072
|
legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2073
2073
|
onClick: () => a("trends")(),
|
|
2074
2074
|
title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2075
|
-
totalComparison:
|
|
2076
|
-
totalMain:
|
|
2075
|
+
totalComparison: $(b, "0,0.00"),
|
|
2076
|
+
totalMain: $(S, "0,0.00")
|
|
2077
2077
|
}
|
|
2078
2078
|
) : /* @__PURE__ */ e(
|
|
2079
2079
|
Le,
|
|
@@ -2095,8 +2095,8 @@ const zo = ({ total: t }) => {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
2097
|
),
|
|
2098
|
-
|
|
2099
|
-
|
|
2098
|
+
v.donutData.length > 0 ? /* @__PURE__ */ i(
|
|
2099
|
+
Y,
|
|
2100
2100
|
{
|
|
2101
2101
|
sx: {
|
|
2102
2102
|
px: 16,
|
|
@@ -2116,9 +2116,9 @@ const zo = ({ total: t }) => {
|
|
|
2116
2116
|
px: 16
|
|
2117
2117
|
},
|
|
2118
2118
|
children: [
|
|
2119
|
-
/* @__PURE__ */ e(
|
|
2119
|
+
/* @__PURE__ */ e(V, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2120
2120
|
l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2121
|
-
|
|
2121
|
+
B,
|
|
2122
2122
|
{
|
|
2123
2123
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2124
2124
|
onClick: () => a("spending")(),
|
|
@@ -2142,7 +2142,7 @@ const zo = ({ total: t }) => {
|
|
|
2142
2142
|
/* @__PURE__ */ e(
|
|
2143
2143
|
to,
|
|
2144
2144
|
{
|
|
2145
|
-
data:
|
|
2145
|
+
data: v,
|
|
2146
2146
|
onSelected: x,
|
|
2147
2147
|
selectedId: m,
|
|
2148
2148
|
totalLabel: p.total_spending
|
|
@@ -2151,7 +2151,7 @@ const zo = ({ total: t }) => {
|
|
|
2151
2151
|
/* @__PURE__ */ e(
|
|
2152
2152
|
no,
|
|
2153
2153
|
{
|
|
2154
|
-
data:
|
|
2154
|
+
data: v,
|
|
2155
2155
|
onSelected: x,
|
|
2156
2156
|
selectedId: m
|
|
2157
2157
|
}
|
|
@@ -2182,12 +2182,12 @@ const zo = ({ total: t }) => {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
)
|
|
2184
2184
|
] });
|
|
2185
|
-
}, br =
|
|
2185
|
+
}, br = w(yr), fr = ({
|
|
2186
2186
|
drawerFor: t,
|
|
2187
2187
|
isOpen: o,
|
|
2188
2188
|
onClose: n
|
|
2189
2189
|
}) => {
|
|
2190
|
-
const { finstrong: r } =
|
|
2190
|
+
const { finstrong: r } = C(), a = {
|
|
2191
2191
|
spendLessThanYouMake: {
|
|
2192
2192
|
title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2193
2193
|
description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
@@ -2241,7 +2241,7 @@ const zo = ({ total: t }) => {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
}[t];
|
|
2243
2243
|
return /* @__PURE__ */ e(
|
|
2244
|
-
|
|
2244
|
+
Ft,
|
|
2245
2245
|
{
|
|
2246
2246
|
connectDescription: a?.connectDescription,
|
|
2247
2247
|
connectTitle: a?.connectTitle,
|
|
@@ -2256,16 +2256,16 @@ const zo = ({ total: t }) => {
|
|
|
2256
2256
|
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: a.content })
|
|
2257
2257
|
}
|
|
2258
2258
|
);
|
|
2259
|
-
}, xr =
|
|
2259
|
+
}, xr = w(fr), xe = ({
|
|
2260
2260
|
drawerFor: t,
|
|
2261
2261
|
title: o,
|
|
2262
2262
|
description: n,
|
|
2263
2263
|
cardState: r = "MISSING"
|
|
2264
2264
|
}) => {
|
|
2265
|
-
const { finstrong: s } =
|
|
2265
|
+
const { finstrong: s } = C(), [a, l] = h.useState(!1), c = (d) => {
|
|
2266
2266
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), l(!0));
|
|
2267
2267
|
};
|
|
2268
|
-
return /* @__PURE__ */ i(
|
|
2268
|
+
return /* @__PURE__ */ i(G, { children: [
|
|
2269
2269
|
/* @__PURE__ */ i(
|
|
2270
2270
|
_,
|
|
2271
2271
|
{
|
|
@@ -2288,10 +2288,10 @@ const zo = ({ total: t }) => {
|
|
|
2288
2288
|
children: [
|
|
2289
2289
|
/* @__PURE__ */ i(_, { sx: { gap: 8, minWidth: 0 }, children: [
|
|
2290
2290
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
2291
|
-
/* @__PURE__ */ e(
|
|
2291
|
+
/* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body1", children: o }),
|
|
2292
2292
|
/* @__PURE__ */ e(Pe, { status: r })
|
|
2293
2293
|
] }),
|
|
2294
|
-
/* @__PURE__ */ e(
|
|
2294
|
+
/* @__PURE__ */ e(I, { color: "secondary", variant: "subtitle2", children: n })
|
|
2295
2295
|
] }),
|
|
2296
2296
|
/* @__PURE__ */ e(Z, { color: "secondary", size: 24 })
|
|
2297
2297
|
]
|
|
@@ -2307,13 +2307,13 @@ const zo = ({ total: t }) => {
|
|
|
2307
2307
|
)
|
|
2308
2308
|
] });
|
|
2309
2309
|
}, Sr = () => {
|
|
2310
|
-
const { finstrong: t } =
|
|
2311
|
-
const c =
|
|
2310
|
+
const { finstrong: t } = C(), { key_indicators_spend: o } = t, { healthScore: n } = L(), r = (l) => {
|
|
2311
|
+
const c = ft(l), d = {
|
|
2312
2312
|
GOOD: o.ratio_good_description,
|
|
2313
2313
|
FAIR: o.ratio_fair_description,
|
|
2314
2314
|
OFF_TRACK: o.ratio_off_track_description,
|
|
2315
2315
|
MISSING: o.ratio_missing_description
|
|
2316
|
-
}, p = c === "MISSING" ? d[c] :
|
|
2316
|
+
}, p = c === "MISSING" ? d[c] : K(d[c], l);
|
|
2317
2317
|
return {
|
|
2318
2318
|
cardState: c,
|
|
2319
2319
|
description: p,
|
|
@@ -2337,7 +2337,7 @@ const zo = ({ total: t }) => {
|
|
|
2337
2337
|
{
|
|
2338
2338
|
cardState: s.cardState,
|
|
2339
2339
|
description: s.description,
|
|
2340
|
-
drawerFor:
|
|
2340
|
+
drawerFor: he.SpendLessThanYouMake,
|
|
2341
2341
|
title: s.title
|
|
2342
2342
|
}
|
|
2343
2343
|
),
|
|
@@ -2346,35 +2346,35 @@ const zo = ({ total: t }) => {
|
|
|
2346
2346
|
{
|
|
2347
2347
|
cardState: a.cardState,
|
|
2348
2348
|
description: a.description,
|
|
2349
|
-
drawerFor:
|
|
2349
|
+
drawerFor: he.PayBillsOnTime,
|
|
2350
2350
|
title: a.title
|
|
2351
2351
|
}
|
|
2352
2352
|
)
|
|
2353
2353
|
] });
|
|
2354
|
-
}, Cr =
|
|
2355
|
-
const { healthScore: t } = L(), { finstrong: o } =
|
|
2356
|
-
const d =
|
|
2354
|
+
}, Cr = w(Sr), vr = () => {
|
|
2355
|
+
const { healthScore: t } = L(), { finstrong: o } = C(), { key_indicators_save: n } = o, r = (c) => {
|
|
2356
|
+
const d = yt(c), p = {
|
|
2357
2357
|
GOOD: n.days_of_cash_good_description,
|
|
2358
2358
|
FAIR: n.days_of_cash_fair_description,
|
|
2359
2359
|
OFF_TRACK: n.days_of_cash_off_track_description,
|
|
2360
2360
|
MISSING: n.days_of_cash_missing_description
|
|
2361
|
-
}, u = d === "MISSING" ? p[d] :
|
|
2361
|
+
}, u = d === "MISSING" ? p[d] : K(p[d], c);
|
|
2362
2362
|
return {
|
|
2363
2363
|
cardState: d,
|
|
2364
2364
|
description: u,
|
|
2365
2365
|
title: n.days_of_cash_title
|
|
2366
2366
|
};
|
|
2367
2367
|
}, s = (c) => {
|
|
2368
|
-
const d =
|
|
2368
|
+
const d = gt(c), p = {
|
|
2369
2369
|
GOOD: n.emergency_savings_good_description,
|
|
2370
2370
|
FAIR: n.emergency_savings_fair_description,
|
|
2371
2371
|
OFF_TRACK: n.emergency_savings_off_track_description,
|
|
2372
2372
|
MISSING: n.emergency_savings_missing_description
|
|
2373
2373
|
};
|
|
2374
2374
|
let u;
|
|
2375
|
-
return d === "FAIR" && c !== null ? u =
|
|
2375
|
+
return d === "FAIR" && c !== null ? u = K(
|
|
2376
2376
|
p[d],
|
|
2377
|
-
|
|
2377
|
+
$(c, "0,0.00")
|
|
2378
2378
|
) : u = p[d], {
|
|
2379
2379
|
cardState: d,
|
|
2380
2380
|
description: u,
|
|
@@ -2395,7 +2395,7 @@ const zo = ({ total: t }) => {
|
|
|
2395
2395
|
{
|
|
2396
2396
|
cardState: a.cardState,
|
|
2397
2397
|
description: a.description,
|
|
2398
|
-
drawerFor:
|
|
2398
|
+
drawerFor: he.SaveEnoughToLiveOn,
|
|
2399
2399
|
title: a.title
|
|
2400
2400
|
}
|
|
2401
2401
|
),
|
|
@@ -2404,31 +2404,31 @@ const zo = ({ total: t }) => {
|
|
|
2404
2404
|
{
|
|
2405
2405
|
cardState: l.cardState,
|
|
2406
2406
|
description: l.description,
|
|
2407
|
-
drawerFor:
|
|
2407
|
+
drawerFor: he.MaintainEmergencySavings,
|
|
2408
2408
|
title: l.title
|
|
2409
2409
|
}
|
|
2410
2410
|
)
|
|
2411
2411
|
] });
|
|
2412
|
-
}, wr =
|
|
2413
|
-
const { healthScore: t } = L(), { finstrong: o } =
|
|
2414
|
-
const p =
|
|
2412
|
+
}, wr = w(vr), kr = () => {
|
|
2413
|
+
const { healthScore: t } = L(), { finstrong: o } = C(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (d) => {
|
|
2414
|
+
const p = bt(d), u = {
|
|
2415
2415
|
GOOD: n.manage_debit_good_description,
|
|
2416
2416
|
FAIR: n.manage_debit_fair_description,
|
|
2417
2417
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
2418
2418
|
MISSING: n.manage_debit_missing_description
|
|
2419
|
-
}, m = p === "FAIR" || p === "OFF_TRACK" ?
|
|
2419
|
+
}, m = p === "FAIR" || p === "OFF_TRACK" ? K(u[p], d) : u[p];
|
|
2420
2420
|
return {
|
|
2421
2421
|
cardState: p,
|
|
2422
2422
|
description: m,
|
|
2423
2423
|
title: n.manage_debit_title
|
|
2424
2424
|
};
|
|
2425
2425
|
}, a = (d) => {
|
|
2426
|
-
const p =
|
|
2426
|
+
const p = mt(d), u = {
|
|
2427
2427
|
GOOD: n.credit_score_good_description,
|
|
2428
2428
|
FAIR: n.credit_score_fair_description,
|
|
2429
2429
|
OFF_TRACK: n.credit_score_off_track_description,
|
|
2430
2430
|
MISSING: n.credit_score_missing_description
|
|
2431
|
-
}, m = p === "MISSING" ? u[p] :
|
|
2431
|
+
}, m = p === "MISSING" ? u[p] : K(u[p], d);
|
|
2432
2432
|
return {
|
|
2433
2433
|
cardState: p,
|
|
2434
2434
|
description: m,
|
|
@@ -2447,7 +2447,7 @@ const zo = ({ total: t }) => {
|
|
|
2447
2447
|
{
|
|
2448
2448
|
cardState: l.cardState,
|
|
2449
2449
|
description: l.description,
|
|
2450
|
-
drawerFor:
|
|
2450
|
+
drawerFor: he.HaveManageableDebt,
|
|
2451
2451
|
title: l.title
|
|
2452
2452
|
}
|
|
2453
2453
|
),
|
|
@@ -2456,16 +2456,16 @@ const zo = ({ total: t }) => {
|
|
|
2456
2456
|
{
|
|
2457
2457
|
cardState: c.cardState,
|
|
2458
2458
|
description: c.description,
|
|
2459
|
-
drawerFor:
|
|
2459
|
+
drawerFor: he.HaveAGoodCreditScore,
|
|
2460
2460
|
title: c.title
|
|
2461
2461
|
}
|
|
2462
2462
|
)
|
|
2463
2463
|
] });
|
|
2464
|
-
}, Mr =
|
|
2465
|
-
const [t, o] = h.useState(0), { finstrong: n } =
|
|
2466
|
-
return /* @__PURE__ */ i(
|
|
2464
|
+
}, Mr = w(kr), Dr = () => {
|
|
2465
|
+
const [t, o] = h.useState(0), { finstrong: n } = C();
|
|
2466
|
+
return /* @__PURE__ */ i(G, { children: [
|
|
2467
2467
|
/* @__PURE__ */ i(
|
|
2468
|
-
|
|
2468
|
+
Ye,
|
|
2469
2469
|
{
|
|
2470
2470
|
"aria-label": "Key Indicators",
|
|
2471
2471
|
centered: !0,
|
|
@@ -2482,10 +2482,10 @@ const zo = ({ total: t }) => {
|
|
|
2482
2482
|
variant: "fullWidth",
|
|
2483
2483
|
children: [
|
|
2484
2484
|
/* @__PURE__ */ e(
|
|
2485
|
-
|
|
2485
|
+
pe,
|
|
2486
2486
|
{
|
|
2487
2487
|
"aria-controls": "spend-details-tabpanel-0",
|
|
2488
|
-
icon: /* @__PURE__ */ e(
|
|
2488
|
+
icon: /* @__PURE__ */ e(_t, { sx: { mr: 8 } }),
|
|
2489
2489
|
iconPosition: "start",
|
|
2490
2490
|
id: "spend-details-tab-0",
|
|
2491
2491
|
label: n.key_indicators_spend.title,
|
|
@@ -2493,7 +2493,7 @@ const zo = ({ total: t }) => {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
),
|
|
2495
2495
|
/* @__PURE__ */ e(
|
|
2496
|
-
|
|
2496
|
+
pe,
|
|
2497
2497
|
{
|
|
2498
2498
|
"aria-controls": "save-details-tabpanel-1",
|
|
2499
2499
|
icon: /* @__PURE__ */ e(dn, { sx: { mr: 8 } }),
|
|
@@ -2504,7 +2504,7 @@ const zo = ({ total: t }) => {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
),
|
|
2506
2506
|
/* @__PURE__ */ e(
|
|
2507
|
-
|
|
2507
|
+
pe,
|
|
2508
2508
|
{
|
|
2509
2509
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2510
2510
|
icon: /* @__PURE__ */ e(pn, { sx: { mr: 8 } }),
|
|
@@ -2517,20 +2517,20 @@ const zo = ({ total: t }) => {
|
|
|
2517
2517
|
]
|
|
2518
2518
|
}
|
|
2519
2519
|
),
|
|
2520
|
-
/* @__PURE__ */ e(
|
|
2521
|
-
/* @__PURE__ */ e(
|
|
2522
|
-
/* @__PURE__ */ e(
|
|
2520
|
+
/* @__PURE__ */ e(_e, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(Cr, {}) }),
|
|
2521
|
+
/* @__PURE__ */ e(_e, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(wr, {}) }),
|
|
2522
|
+
/* @__PURE__ */ e(_e, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Mr, {}) })
|
|
2523
2523
|
] });
|
|
2524
|
-
}, Ir =
|
|
2525
|
-
const { finstrong: o } =
|
|
2524
|
+
}, Ir = w(Dr), Tr = ({ onClick: t }) => {
|
|
2525
|
+
const { finstrong: o } = C(), { isCopyLoaded: n } = J();
|
|
2526
2526
|
return n ? /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2527
2527
|
/* @__PURE__ */ e(_n, { size: 48 }),
|
|
2528
2528
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2529
|
-
/* @__PURE__ */ e(
|
|
2530
|
-
/* @__PURE__ */ e(
|
|
2529
|
+
/* @__PURE__ */ e(V, { children: o.missing_data_title }),
|
|
2530
|
+
/* @__PURE__ */ e(I, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
|
|
2531
2531
|
] }),
|
|
2532
2532
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
2533
|
-
|
|
2533
|
+
B,
|
|
2534
2534
|
{
|
|
2535
2535
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2536
2536
|
onClick: t,
|
|
@@ -2546,7 +2546,7 @@ const zo = ({ total: t }) => {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
) })
|
|
2548
2548
|
] }) : /* @__PURE__ */ e(U, {});
|
|
2549
|
-
}, Ar =
|
|
2549
|
+
}, Ar = w(Tr), Or = ({
|
|
2550
2550
|
firstDay: t,
|
|
2551
2551
|
frequency: o,
|
|
2552
2552
|
secondDay: n,
|
|
@@ -2557,17 +2557,17 @@ const zo = ({ total: t }) => {
|
|
|
2557
2557
|
setSecondDay: c,
|
|
2558
2558
|
transaction: d
|
|
2559
2559
|
}) => {
|
|
2560
|
-
const { finstrong: p } =
|
|
2560
|
+
const { finstrong: p } = C();
|
|
2561
2561
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2562
2562
|
/* @__PURE__ */ i(_, { children: [
|
|
2563
|
-
!!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u, m,
|
|
2563
|
+
!!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u, m, f) => {
|
|
2564
2564
|
if (m.guid === d.guid) return u;
|
|
2565
|
-
const
|
|
2565
|
+
const v = Nn(f, r), x = jn(f, r);
|
|
2566
2566
|
return u.push(
|
|
2567
2567
|
/* @__PURE__ */ i(h.Fragment, { children: [
|
|
2568
|
-
|
|
2568
|
+
v && /* @__PURE__ */ e(Kn, { children: Dt(m.date) }),
|
|
2569
2569
|
/* @__PURE__ */ e(Vn, { transaction: m }),
|
|
2570
|
-
/* @__PURE__ */ e(
|
|
2570
|
+
/* @__PURE__ */ e(ue, { sx: { ml: x ? 44 : 0 } })
|
|
2571
2571
|
] }, m.guid)
|
|
2572
2572
|
), u;
|
|
2573
2573
|
}, []) }),
|
|
@@ -2585,20 +2585,20 @@ const zo = ({ total: t }) => {
|
|
|
2585
2585
|
)
|
|
2586
2586
|
] }),
|
|
2587
2587
|
/* @__PURE__ */ e(M, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2588
|
-
|
|
2588
|
+
B,
|
|
2589
2589
|
{
|
|
2590
2590
|
fullWidth: !0,
|
|
2591
2591
|
onClick: () => s({ step: R.MonthlyIncome, type: "main" }),
|
|
2592
|
-
startIcon: /* @__PURE__ */ e(
|
|
2592
|
+
startIcon: /* @__PURE__ */ e(ut, {}),
|
|
2593
2593
|
children: p.onboarding_add_more_income
|
|
2594
2594
|
}
|
|
2595
2595
|
) })
|
|
2596
2596
|
] });
|
|
2597
|
-
}, Rr =
|
|
2598
|
-
const { finstrong: n } =
|
|
2597
|
+
}, Rr = w(Or), Lr = ({ selectedDate: t, setSelectedDate: o }) => {
|
|
2598
|
+
const { finstrong: n } = C(), r = E(), s = (a) => {
|
|
2599
2599
|
o(Math.floor(new Date(a).getTime() / 1e3));
|
|
2600
2600
|
};
|
|
2601
|
-
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter:
|
|
2601
|
+
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter: At, children: /* @__PURE__ */ e(
|
|
2602
2602
|
po,
|
|
2603
2603
|
{
|
|
2604
2604
|
disableFuture: !0,
|
|
@@ -2608,13 +2608,13 @@ const zo = ({ total: t }) => {
|
|
|
2608
2608
|
nextIconButton: {
|
|
2609
2609
|
sx: {
|
|
2610
2610
|
color: "primary.main",
|
|
2611
|
-
"&:hover": { bgcolor:
|
|
2611
|
+
"&:hover": { bgcolor: de(r.palette.primary.light, 0.1) }
|
|
2612
2612
|
}
|
|
2613
2613
|
},
|
|
2614
2614
|
previousIconButton: {
|
|
2615
2615
|
sx: {
|
|
2616
2616
|
color: "primary.main",
|
|
2617
|
-
"&:hover": { bgcolor:
|
|
2617
|
+
"&:hover": { bgcolor: de(r.palette.primary.light, 0.1) }
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
},
|
|
@@ -2622,14 +2622,14 @@ const zo = ({ total: t }) => {
|
|
|
2622
2622
|
width: "100%",
|
|
2623
2623
|
"& .MuiIconButton-edgeEnd": {
|
|
2624
2624
|
color: "primary.main",
|
|
2625
|
-
"&:hover": { bgcolor:
|
|
2625
|
+
"&:hover": { bgcolor: de(r.palette.primary.light, 0.1) }
|
|
2626
2626
|
}
|
|
2627
2627
|
},
|
|
2628
2628
|
value: t ? new Date(t * 1e3) : null
|
|
2629
2629
|
}
|
|
2630
2630
|
) }) });
|
|
2631
|
-
}, Fr =
|
|
2632
|
-
const { finstrong: n } =
|
|
2631
|
+
}, Fr = w(Lr), Br = ({ creditScore: t, setCreditScore: o }) => {
|
|
2632
|
+
const { finstrong: n } = C(), r = !isNaN(t);
|
|
2633
2633
|
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2634
2634
|
Re,
|
|
2635
2635
|
{
|
|
@@ -2645,7 +2645,7 @@ const zo = ({ total: t }) => {
|
|
|
2645
2645
|
value: r ? t : ""
|
|
2646
2646
|
}
|
|
2647
2647
|
) });
|
|
2648
|
-
}, Pr =
|
|
2648
|
+
}, Pr = w(Br), $t = ({ value: t, completeCopy: o }) => /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
|
|
2649
2649
|
/* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
|
|
2650
2650
|
M,
|
|
2651
2651
|
{
|
|
@@ -2658,7 +2658,7 @@ const zo = ({ total: t }) => {
|
|
|
2658
2658
|
},
|
|
2659
2659
|
r
|
|
2660
2660
|
)) }),
|
|
2661
|
-
/* @__PURE__ */ i(
|
|
2661
|
+
/* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "body2", children: [
|
|
2662
2662
|
t / 4 * 100,
|
|
2663
2663
|
"% ",
|
|
2664
2664
|
o
|
|
@@ -2670,19 +2670,19 @@ const zo = ({ total: t }) => {
|
|
|
2670
2670
|
value: r
|
|
2671
2671
|
}) => /* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
|
|
2672
2672
|
/* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
|
|
2673
|
-
/* @__PURE__ */ e(
|
|
2674
|
-
/* @__PURE__ */ e(
|
|
2673
|
+
/* @__PURE__ */ e(V, { children: o }),
|
|
2674
|
+
/* @__PURE__ */ e(I, { variant: "subtitle1", children: n })
|
|
2675
2675
|
] }),
|
|
2676
|
-
/* @__PURE__ */ e(
|
|
2677
|
-
] }),
|
|
2676
|
+
/* @__PURE__ */ e($t, { completeCopy: t, value: r })
|
|
2677
|
+
] }), ct = {
|
|
2678
2678
|
step: R.ConnectAccounts,
|
|
2679
2679
|
type: "main"
|
|
2680
2680
|
}, $r = ({ isOpen: t, onClose: o }) => {
|
|
2681
|
-
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = L(), { finstrong: s } =
|
|
2682
|
-
|
|
2683
|
-
), [g, y] = h.useState(1), [A,
|
|
2681
|
+
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = L(), { finstrong: s } = C(), { addRepeatingTransaction: a, setDateRange: l } = Ke(), { filter: c, setFilter: d, transactions: p } = Rn(), { user: u, userProfile: m, updateUser: f, updateUserProfile: v } = ee(), [x, S] = h.useState(u.credit_score || 0), [b, k] = h.useState(
|
|
2682
|
+
ct
|
|
2683
|
+
), [g, y] = h.useState(1), [A, P] = h.useState(kt.EveryMonth), [D, H] = h.useState([]), [W, N] = h.useState(!1), [ve, ae] = h.useState(!1), [X, te] = h.useState(u.birthday), [ie, q] = h.useState(15), [j, se] = h.useState("");
|
|
2684
2684
|
h.useEffect(() => {
|
|
2685
|
-
l({ start:
|
|
2685
|
+
l({ start: It(it()), end: Tt(it()) });
|
|
2686
2686
|
}, []), h.useEffect(() => {
|
|
2687
2687
|
d({
|
|
2688
2688
|
accounts: n.map((O) => O.guid),
|
|
@@ -2690,30 +2690,30 @@ const zo = ({ total: t }) => {
|
|
|
2690
2690
|
start: ao(/* @__PURE__ */ new Date(), 90),
|
|
2691
2691
|
end: /* @__PURE__ */ new Date()
|
|
2692
2692
|
},
|
|
2693
|
-
custom:
|
|
2693
|
+
custom: st
|
|
2694
2694
|
});
|
|
2695
2695
|
}, [n]);
|
|
2696
|
-
const
|
|
2697
|
-
() => p.find((O) => O.guid ===
|
|
2698
|
-
[
|
|
2696
|
+
const ce = h.useMemo(
|
|
2697
|
+
() => p.find((O) => O.guid === j),
|
|
2698
|
+
[j, p]
|
|
2699
2699
|
), we = h.useMemo(() => ({
|
|
2700
2700
|
[R.ConnectAccounts]: !0,
|
|
2701
|
-
[R.MonthlyIncome]: !!
|
|
2702
|
-
[R.Birthday]: !!u.birthday || !!
|
|
2701
|
+
[R.MonthlyIncome]: !!j,
|
|
2702
|
+
[R.Birthday]: !!u.birthday || !!X,
|
|
2703
2703
|
[R.CreditScore]: !!u.credit_score || !!x
|
|
2704
|
-
})[
|
|
2705
|
-
const { step: O } =
|
|
2706
|
-
let
|
|
2707
|
-
return O >= R.MonthlyIncome &&
|
|
2708
|
-
}, [
|
|
2704
|
+
})[b.step], [x, b, X, j, u]), z = n.length > 0, me = h.useMemo(() => {
|
|
2705
|
+
const { step: O } = b;
|
|
2706
|
+
let F = 0;
|
|
2707
|
+
return O >= R.MonthlyIncome && z && F++, O >= R.Birthday && D.length && F++, O >= R.CreditScore && (u.birthday || u.credit_score) && F++, F;
|
|
2708
|
+
}, [b.step, z, D.length, u.birthday, u.credit_score]), Ee = (O) => {
|
|
2709
2709
|
d({
|
|
2710
2710
|
...c,
|
|
2711
|
-
custom: (
|
|
2711
|
+
custom: (F) => O ? co(F, O) : st(F)
|
|
2712
2712
|
});
|
|
2713
|
-
},
|
|
2713
|
+
}, Et = {
|
|
2714
2714
|
[R.ConnectAccounts]: {
|
|
2715
|
-
main:
|
|
2716
|
-
mainActionContent:
|
|
2715
|
+
main: z ? /* @__PURE__ */ e(Bt, { shouldShowBalance: !1 }) : null,
|
|
2716
|
+
mainActionContent: z ? s.onboarding_next : s.onboarding_add_accounts,
|
|
2717
2717
|
primaryText: s.connect_your_accounts,
|
|
2718
2718
|
secondaryText: s.onboarding_connect_your_accounts_secondary
|
|
2719
2719
|
},
|
|
@@ -2723,19 +2723,19 @@ const zo = ({ total: t }) => {
|
|
|
2723
2723
|
{
|
|
2724
2724
|
firstDay: g,
|
|
2725
2725
|
frequency: A,
|
|
2726
|
-
incomeTransactions:
|
|
2727
|
-
secondDay:
|
|
2726
|
+
incomeTransactions: D,
|
|
2727
|
+
secondDay: ie,
|
|
2728
2728
|
setCurrentStep: (O) => {
|
|
2729
|
-
|
|
2730
|
-
if (
|
|
2731
|
-
const Te = p.find((
|
|
2732
|
-
return Te ? [...
|
|
2729
|
+
k(O), H((F) => {
|
|
2730
|
+
if (F.some((le) => le.guid === j)) return F.filter((le) => le.guid !== j);
|
|
2731
|
+
const Te = p.find((le) => le.guid === j);
|
|
2732
|
+
return Te ? [...F, { ...Te, firstDay: g, frequency: A, secondDay: ie }] : F;
|
|
2733
2733
|
});
|
|
2734
2734
|
},
|
|
2735
2735
|
setFirstDay: y,
|
|
2736
|
-
setFrequency:
|
|
2736
|
+
setFrequency: P,
|
|
2737
2737
|
setSecondDay: q,
|
|
2738
|
-
transaction:
|
|
2738
|
+
transaction: ce
|
|
2739
2739
|
}
|
|
2740
2740
|
),
|
|
2741
2741
|
detailActionContent: s.onboarding_confirm_income,
|
|
@@ -2744,7 +2744,7 @@ const zo = ({ total: t }) => {
|
|
|
2744
2744
|
{
|
|
2745
2745
|
onSearch: Ee,
|
|
2746
2746
|
onSelected: (O) => {
|
|
2747
|
-
|
|
2747
|
+
k({ step: R.MonthlyIncome, type: "detail" }), se(O);
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
2750
|
),
|
|
@@ -2753,7 +2753,7 @@ const zo = ({ total: t }) => {
|
|
|
2753
2753
|
secondaryText: s.onboarding_add_income_secondary
|
|
2754
2754
|
},
|
|
2755
2755
|
[R.Birthday]: {
|
|
2756
|
-
main: /* @__PURE__ */ e(Fr, { selectedDate:
|
|
2756
|
+
main: /* @__PURE__ */ e(Fr, { selectedDate: X, setSelectedDate: te }),
|
|
2757
2757
|
mainActionContent: s.onboarding_next,
|
|
2758
2758
|
primaryText: s.onboarding_birthday_primary,
|
|
2759
2759
|
secondaryText: s.onboarding_birthday_secondary
|
|
@@ -2764,65 +2764,65 @@ const zo = ({ total: t }) => {
|
|
|
2764
2764
|
primaryText: s.onboarding_credit_score_primary,
|
|
2765
2765
|
secondaryText: s.onboarding_credit_score_secondary
|
|
2766
2766
|
}
|
|
2767
|
-
},
|
|
2768
|
-
|
|
2769
|
-
},
|
|
2770
|
-
|
|
2767
|
+
}, Ue = () => {
|
|
2768
|
+
k(ct), N(!1), se(""), o();
|
|
2769
|
+
}, Qe = async () => {
|
|
2770
|
+
N(!0), await Nt(D), await r(), await v({ ...m, has_completed_finstrong_onboarding: !0 }), Ue();
|
|
2771
2771
|
}, zt = () => {
|
|
2772
|
-
if (
|
|
2773
|
-
|
|
2772
|
+
if (b.step === R.CreditScore) {
|
|
2773
|
+
Qe();
|
|
2774
2774
|
return;
|
|
2775
2775
|
}
|
|
2776
|
-
|
|
2776
|
+
k({ step: b.step + 1, type: "main" });
|
|
2777
2777
|
}, Gt = () => {
|
|
2778
|
-
const { step: O } =
|
|
2778
|
+
const { step: O } = b, F = O + 1;
|
|
2779
2779
|
switch (O) {
|
|
2780
2780
|
case R.Birthday:
|
|
2781
|
-
|
|
2781
|
+
X && X !== u.birthday && f({ ...u, birthday: X });
|
|
2782
2782
|
break;
|
|
2783
2783
|
case R.CreditScore:
|
|
2784
|
-
x && x !== u.credit_score &&
|
|
2784
|
+
x && x !== u.credit_score && f({ ...u, credit_score: x }), Qe();
|
|
2785
2785
|
return;
|
|
2786
2786
|
case R.MonthlyIncome:
|
|
2787
|
-
|
|
2787
|
+
j && D.findIndex(({ guid: ye }) => ye === j) === -1 && H((ye) => [
|
|
2788
2788
|
...ye,
|
|
2789
|
-
{ ...
|
|
2789
|
+
{ ...ce, firstDay: g, frequency: A, secondDay: ie }
|
|
2790
2790
|
]);
|
|
2791
2791
|
break;
|
|
2792
2792
|
case R.ConnectAccounts:
|
|
2793
|
-
if (!
|
|
2794
|
-
|
|
2793
|
+
if (!z) {
|
|
2794
|
+
ae(!0);
|
|
2795
2795
|
return;
|
|
2796
2796
|
}
|
|
2797
2797
|
break;
|
|
2798
2798
|
}
|
|
2799
|
-
|
|
2799
|
+
F in R && k({ step: F, type: "main" });
|
|
2800
2800
|
}, Ht = () => {
|
|
2801
|
-
const { step: O, type:
|
|
2802
|
-
if (
|
|
2803
|
-
|
|
2801
|
+
const { step: O, type: F } = b;
|
|
2802
|
+
if (F === "detail") {
|
|
2803
|
+
k({ step: O, type: "main" });
|
|
2804
2804
|
return;
|
|
2805
2805
|
}
|
|
2806
|
-
if (O === R.Birthday &&
|
|
2807
|
-
|
|
2806
|
+
if (O === R.Birthday && D.length) {
|
|
2807
|
+
k({ step: O - 1, type: "detail" });
|
|
2808
2808
|
return;
|
|
2809
2809
|
}
|
|
2810
|
-
O > R.ConnectAccounts &&
|
|
2810
|
+
O > R.ConnectAccounts && k({ step: O - 1, type: "main" });
|
|
2811
2811
|
}, Nt = async (O) => {
|
|
2812
|
-
for (const
|
|
2812
|
+
for (const F of O) {
|
|
2813
2813
|
const {
|
|
2814
2814
|
account_guid: ye,
|
|
2815
2815
|
amount: Te,
|
|
2816
|
-
date:
|
|
2816
|
+
date: le,
|
|
2817
2817
|
description: Vt,
|
|
2818
2818
|
feed_description: Yt,
|
|
2819
2819
|
firstDay: Xt,
|
|
2820
|
-
frequency:
|
|
2820
|
+
frequency: Ze,
|
|
2821
2821
|
secondDay: qt,
|
|
2822
2822
|
merchant_guid: Ut,
|
|
2823
2823
|
payee: Qt,
|
|
2824
2824
|
transaction_type: Zt
|
|
2825
|
-
} =
|
|
2825
|
+
} = F, Jt = zn(Ze, ro(le)), en = {
|
|
2826
2826
|
account_guid: ye,
|
|
2827
2827
|
amount: Te,
|
|
2828
2828
|
created_by: 0,
|
|
@@ -2830,41 +2830,41 @@ const zo = ({ total: t }) => {
|
|
|
2830
2830
|
merchant_guid: Ut,
|
|
2831
2831
|
predicted_occurs_on: oo(Jt, { representation: "date" }),
|
|
2832
2832
|
recurrence_day: Xt,
|
|
2833
|
-
recurrence_type:
|
|
2834
|
-
repeating_transaction_type:
|
|
2833
|
+
recurrence_type: Ze,
|
|
2834
|
+
repeating_transaction_type: Mt.Income,
|
|
2835
2835
|
second_recurrence_day: qt,
|
|
2836
2836
|
transaction_type: Zt,
|
|
2837
2837
|
user_guid: u.guid
|
|
2838
2838
|
};
|
|
2839
|
-
await a(en,
|
|
2839
|
+
await a(en, F);
|
|
2840
2840
|
}
|
|
2841
|
-
}, ge =
|
|
2841
|
+
}, ge = Et[b.step], Ie = b.step === R.ConnectAccounts, jt = {
|
|
2842
2842
|
fullWidth: !0,
|
|
2843
|
-
...Ie && !
|
|
2844
|
-
}, Kt = !Ie || Ie && !
|
|
2843
|
+
...Ie && !z && { startIcon: /* @__PURE__ */ e(ut, {}) }
|
|
2844
|
+
}, Kt = !Ie || Ie && !z;
|
|
2845
2845
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2846
2846
|
/* @__PURE__ */ e(
|
|
2847
|
-
|
|
2847
|
+
oe,
|
|
2848
2848
|
{
|
|
2849
2849
|
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2850
2850
|
hasSecondaryAction: !Ie,
|
|
2851
2851
|
isOpen: t,
|
|
2852
2852
|
isPrimaryDisabled: !we,
|
|
2853
|
-
onClose:
|
|
2853
|
+
onClose: Ue,
|
|
2854
2854
|
onSecondaryAction: Ht,
|
|
2855
2855
|
primaryButtonProps: jt,
|
|
2856
2856
|
primaryText: ge?.mainActionContent,
|
|
2857
2857
|
secondaryColor: "primary",
|
|
2858
2858
|
secondaryText: s.onboarding_back,
|
|
2859
2859
|
title: s.title,
|
|
2860
|
-
...!
|
|
2860
|
+
...!W && { onPrimaryAction: Gt },
|
|
2861
2861
|
children: /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2862
|
-
|
|
2862
|
+
W && /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2863
2863
|
/* @__PURE__ */ e("img", { alt: "", src: Ao, style: { minHeight: 100, width: 211 } }),
|
|
2864
2864
|
/* @__PURE__ */ e(Fe, { children: s.onboarding_calculate_primary }),
|
|
2865
|
-
/* @__PURE__ */ e(
|
|
2865
|
+
/* @__PURE__ */ e(I, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
|
|
2866
2866
|
] }),
|
|
2867
|
-
ge && !
|
|
2867
|
+
ge && !W && /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2868
2868
|
/* @__PURE__ */ e(
|
|
2869
2869
|
Wr,
|
|
2870
2870
|
{
|
|
@@ -2874,26 +2874,26 @@ const zo = ({ total: t }) => {
|
|
|
2874
2874
|
value: me
|
|
2875
2875
|
}
|
|
2876
2876
|
),
|
|
2877
|
-
|
|
2877
|
+
b.type === "main" && /* @__PURE__ */ i(M, { sx: { bgcolor: "background.default" }, children: [
|
|
2878
2878
|
ge.main,
|
|
2879
|
-
Kt && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(
|
|
2879
|
+
Kt && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(B, { fullWidth: !0, onClick: zt, children: s.onboarding_do_it_later }) })
|
|
2880
2880
|
] }),
|
|
2881
|
-
|
|
2881
|
+
b.type === "detail" && ge.detail
|
|
2882
2882
|
] })
|
|
2883
2883
|
] })
|
|
2884
2884
|
}
|
|
2885
2885
|
),
|
|
2886
2886
|
/* @__PURE__ */ e(
|
|
2887
|
-
|
|
2887
|
+
re,
|
|
2888
2888
|
{
|
|
2889
|
-
onClose: () =>
|
|
2889
|
+
onClose: () => ae(!1),
|
|
2890
2890
|
showConnectWidget: ve,
|
|
2891
2891
|
title: s.connect_more_accounts_button
|
|
2892
2892
|
}
|
|
2893
2893
|
)
|
|
2894
2894
|
] });
|
|
2895
|
-
}, Er =
|
|
2896
|
-
const { finstrong: t } =
|
|
2895
|
+
}, Er = w($r), zr = () => {
|
|
2896
|
+
const { finstrong: t } = C(), [o, n] = h.useState(!1);
|
|
2897
2897
|
return /* @__PURE__ */ i(h.Fragment, { children: [
|
|
2898
2898
|
/* @__PURE__ */ i(
|
|
2899
2899
|
_,
|
|
@@ -2912,21 +2912,21 @@ const zo = ({ total: t }) => {
|
|
|
2912
2912
|
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(un, { size: 72 }) }),
|
|
2913
2913
|
/* @__PURE__ */ i(_, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2914
2914
|
/* @__PURE__ */ e(Fe, { children: t.onboarding_title }),
|
|
2915
|
-
/* @__PURE__ */ e(
|
|
2915
|
+
/* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
|
|
2916
2916
|
] })
|
|
2917
2917
|
] }),
|
|
2918
|
-
/* @__PURE__ */ e(
|
|
2918
|
+
/* @__PURE__ */ e(B, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
|
|
2919
2919
|
]
|
|
2920
2920
|
}
|
|
2921
2921
|
),
|
|
2922
2922
|
/* @__PURE__ */ e(Er, { isOpen: o, onClose: () => n(!1) })
|
|
2923
2923
|
] });
|
|
2924
2924
|
}, Gr = ({ isOpen: t, onClose: o }) => {
|
|
2925
|
-
const { finstrong: n } =
|
|
2925
|
+
const { finstrong: n } = C(), r = E(), { updateUser: s, user: a } = ee(), { loadPeerScore: l } = L(), [c, d] = h.useState(a.birthday), p = (m) => {
|
|
2926
2926
|
d(Math.floor(new Date(m).getTime() / 1e3));
|
|
2927
2927
|
};
|
|
2928
2928
|
return /* @__PURE__ */ e(
|
|
2929
|
-
|
|
2929
|
+
oe,
|
|
2930
2930
|
{
|
|
2931
2931
|
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2932
2932
|
isOpen: t,
|
|
@@ -2938,7 +2938,7 @@ const zo = ({ total: t }) => {
|
|
|
2938
2938
|
},
|
|
2939
2939
|
onSecondaryAction: o,
|
|
2940
2940
|
title: n.date_of_birth,
|
|
2941
|
-
children: /* @__PURE__ */ e(_, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(ho, { dateAdapter:
|
|
2941
|
+
children: /* @__PURE__ */ e(_, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(ho, { dateAdapter: At, children: /* @__PURE__ */ e(
|
|
2942
2942
|
_o,
|
|
2943
2943
|
{
|
|
2944
2944
|
disableFuture: !0,
|
|
@@ -2947,19 +2947,19 @@ const zo = ({ total: t }) => {
|
|
|
2947
2947
|
nextIconButton: {
|
|
2948
2948
|
sx: {
|
|
2949
2949
|
color: "primary.main",
|
|
2950
|
-
"&:hover": { bgcolor:
|
|
2950
|
+
"&:hover": { bgcolor: de(r.palette.primary.light, 0.1) }
|
|
2951
2951
|
}
|
|
2952
2952
|
},
|
|
2953
2953
|
previousIconButton: {
|
|
2954
2954
|
sx: {
|
|
2955
2955
|
color: "primary.main",
|
|
2956
|
-
"&:hover": { bgcolor:
|
|
2956
|
+
"&:hover": { bgcolor: de(r.palette.primary.light, 0.1) }
|
|
2957
2957
|
}
|
|
2958
2958
|
},
|
|
2959
2959
|
switchViewButton: {
|
|
2960
2960
|
sx: {
|
|
2961
2961
|
color: "primary.main",
|
|
2962
|
-
"&:hover": { bgcolor:
|
|
2962
|
+
"&:hover": { bgcolor: de(r.palette.primary.light, 0.1) }
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
2965
|
},
|
|
@@ -2971,7 +2971,7 @@ const zo = ({ total: t }) => {
|
|
|
2971
2971
|
width: "100%",
|
|
2972
2972
|
"& .MuiIconButton-edgeEnd": {
|
|
2973
2973
|
color: "primary.main",
|
|
2974
|
-
"&:hover": { bgcolor:
|
|
2974
|
+
"&:hover": { bgcolor: de(r.palette.primary.light, 0.1) }
|
|
2975
2975
|
}
|
|
2976
2976
|
},
|
|
2977
2977
|
value: c ? new Date(c * 1e3) : /* @__PURE__ */ new Date()
|
|
@@ -2979,21 +2979,21 @@ const zo = ({ total: t }) => {
|
|
|
2979
2979
|
) }) })
|
|
2980
2980
|
}
|
|
2981
2981
|
);
|
|
2982
|
-
}, Hr =
|
|
2982
|
+
}, Hr = w(Gr), Nr = ({ isOpen: t, onClose: o }) => {
|
|
2983
2983
|
const { visibleFinstrongAccounts: n } = Se(), {
|
|
2984
2984
|
accounts: r,
|
|
2985
2985
|
common: s,
|
|
2986
2986
|
finstrong: a,
|
|
2987
2987
|
recurring: l
|
|
2988
|
-
} =
|
|
2989
|
-
const { repeating_transaction_type:
|
|
2990
|
-
return
|
|
2991
|
-
}, 0), [u, m] = h.useState(null),
|
|
2988
|
+
} = C(), { repeatingTransactions: c } = Ke(), { user: d } = ee(), p = c.reduce((x, S) => {
|
|
2989
|
+
const { repeating_transaction_type: b, transactions: k, recurrence_type: g, amount: y } = S;
|
|
2990
|
+
return b === Mt.Income && (k && k.length > 0 || g === kt.EveryYear) ? x + y : x;
|
|
2991
|
+
}, 0), [u, m] = h.useState(null), v = [
|
|
2992
2992
|
{
|
|
2993
2993
|
dynamicCopy: a.add_profile_item,
|
|
2994
2994
|
fallbackLabel: a.monthly_income,
|
|
2995
2995
|
icon: /* @__PURE__ */ e(hn, {}),
|
|
2996
|
-
key:
|
|
2996
|
+
key: ne.MonthlyIncome,
|
|
2997
2997
|
label: a.monthly_income,
|
|
2998
2998
|
value: p
|
|
2999
2999
|
},
|
|
@@ -3001,46 +3001,46 @@ const zo = ({ total: t }) => {
|
|
|
3001
3001
|
dynamicCopy: a.add_profile_item,
|
|
3002
3002
|
fallbackLabel: a.date_of_birth,
|
|
3003
3003
|
icon: /* @__PURE__ */ e(mn, {}),
|
|
3004
|
-
key:
|
|
3004
|
+
key: ne.DateOfBirth,
|
|
3005
3005
|
label: a.date_of_birth,
|
|
3006
3006
|
value: d.birthday
|
|
3007
3007
|
},
|
|
3008
3008
|
{
|
|
3009
3009
|
dynamicCopy: a.add_profile_item,
|
|
3010
3010
|
fallbackLabel: a.credit_score,
|
|
3011
|
-
icon: /* @__PURE__ */ e(
|
|
3012
|
-
key:
|
|
3011
|
+
icon: /* @__PURE__ */ e(_t, {}),
|
|
3012
|
+
key: ne.CreditScore,
|
|
3013
3013
|
label: a.credit_score,
|
|
3014
3014
|
value: d.credit_score
|
|
3015
3015
|
},
|
|
3016
3016
|
{
|
|
3017
3017
|
fallbackLabel: a.connect_your_accounts,
|
|
3018
|
-
icon: /* @__PURE__ */ e(
|
|
3019
|
-
key:
|
|
3018
|
+
icon: /* @__PURE__ */ e(pt, {}),
|
|
3019
|
+
key: ne.Connections,
|
|
3020
3020
|
label: a.connections,
|
|
3021
|
-
value: n.length > 0 ?
|
|
3021
|
+
value: n.length > 0 ? K(
|
|
3022
3022
|
a.connected_account,
|
|
3023
3023
|
String(n.length),
|
|
3024
3024
|
n.length > 1 ? a.accounts : a.account
|
|
3025
3025
|
) : void 0
|
|
3026
3026
|
}
|
|
3027
3027
|
].map((x) => In(x));
|
|
3028
|
-
return /* @__PURE__ */ i(
|
|
3028
|
+
return /* @__PURE__ */ i(oe, { isOpen: t, onClose: o, title: a.financial_profile, children: [
|
|
3029
3029
|
/* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
3030
3030
|
/* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
|
|
3031
3031
|
/* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
|
|
3032
|
-
/* @__PURE__ */ e(
|
|
3033
|
-
/* @__PURE__ */ e(
|
|
3032
|
+
/* @__PURE__ */ e(V, { children: a.your_financial_profile }),
|
|
3033
|
+
/* @__PURE__ */ e(I, { children: a.financial_profile_description })
|
|
3034
3034
|
] }),
|
|
3035
3035
|
/* @__PURE__ */ e(
|
|
3036
|
-
|
|
3036
|
+
$t,
|
|
3037
3037
|
{
|
|
3038
3038
|
completeCopy: a.complete,
|
|
3039
|
-
value:
|
|
3039
|
+
value: v.reduce((x, S) => x + (S.isComplete ? 1 : 0), 0)
|
|
3040
3040
|
}
|
|
3041
3041
|
)
|
|
3042
3042
|
] }),
|
|
3043
|
-
/* @__PURE__ */ e(Tn, { list:
|
|
3043
|
+
/* @__PURE__ */ e(Tn, { list: v, onClickItem: m }),
|
|
3044
3044
|
/* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
3045
3045
|
Be,
|
|
3046
3046
|
{
|
|
@@ -3053,27 +3053,27 @@ const zo = ({ total: t }) => {
|
|
|
3053
3053
|
) })
|
|
3054
3054
|
] }),
|
|
3055
3055
|
/* @__PURE__ */ e(
|
|
3056
|
-
|
|
3056
|
+
oe,
|
|
3057
3057
|
{
|
|
3058
|
-
isOpen: u ===
|
|
3058
|
+
isOpen: u === ne.MonthlyIncome,
|
|
3059
3059
|
onClose: () => m(null),
|
|
3060
3060
|
shouldShowHeaderBorders: !1,
|
|
3061
3061
|
title: l.action_title,
|
|
3062
3062
|
children: /* @__PURE__ */ e(uo, {})
|
|
3063
3063
|
}
|
|
3064
3064
|
),
|
|
3065
|
-
/* @__PURE__ */ e(Hr, { isOpen: u ===
|
|
3066
|
-
/* @__PURE__ */ e(
|
|
3065
|
+
/* @__PURE__ */ e(Hr, { isOpen: u === ne.DateOfBirth, onClose: () => m(null) }),
|
|
3066
|
+
/* @__PURE__ */ e(Lt, { isOpen: u === ne.CreditScore, onClose: () => m(null) }),
|
|
3067
3067
|
/* @__PURE__ */ e(
|
|
3068
|
-
|
|
3068
|
+
xt,
|
|
3069
3069
|
{
|
|
3070
3070
|
onClose: () => m(null),
|
|
3071
|
-
showConnectionsWidget: u ===
|
|
3071
|
+
showConnectionsWidget: u === ne.Connections,
|
|
3072
3072
|
title: r.manage_connections
|
|
3073
3073
|
}
|
|
3074
3074
|
)
|
|
3075
3075
|
] });
|
|
3076
|
-
}, jr =
|
|
3076
|
+
}, jr = w(Nr), lt = ({
|
|
3077
3077
|
content: t,
|
|
3078
3078
|
islast: o = !1
|
|
3079
3079
|
}) => /* @__PURE__ */ i(yo, { sx: { minHeight: 0 }, children: [
|
|
@@ -3092,9 +3092,9 @@ const zo = ({ total: t }) => {
|
|
|
3092
3092
|
}
|
|
3093
3093
|
)
|
|
3094
3094
|
] }),
|
|
3095
|
-
/* @__PURE__ */ e(xo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(
|
|
3095
|
+
/* @__PURE__ */ e(xo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(I, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
3096
3096
|
] }), Kr = ({ report: t }) => {
|
|
3097
|
-
const { finstrong: o } =
|
|
3097
|
+
const { finstrong: o } = C(), { score_history_drawer_timeline: n } = o, {
|
|
3098
3098
|
health_score_point_difference: r,
|
|
3099
3099
|
newer_credit_score: s,
|
|
3100
3100
|
older_credit_score: a,
|
|
@@ -3103,10 +3103,10 @@ const zo = ({ total: t }) => {
|
|
|
3103
3103
|
older_health_score: d,
|
|
3104
3104
|
newer_health_score: p,
|
|
3105
3105
|
newer_score_calculated_at: u
|
|
3106
|
-
} = t, m = mo(new Date(u), "MMM d"),
|
|
3106
|
+
} = t, m = mo(new Date(u), "MMM d"), f = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", v = () => r === 0 ? K(n.stayed_at, d) : r > 0 ? n.less_spending : n.more_spending, x = () => {
|
|
3107
3107
|
if (r === 0) return null;
|
|
3108
|
-
const S = r > 0 ? n.up_from : n.down_from,
|
|
3109
|
-
return /* @__PURE__ */ i(
|
|
3108
|
+
const S = r > 0 ? n.up_from : n.down_from, b = K(S, d, p);
|
|
3109
|
+
return /* @__PURE__ */ i(G, { children: [
|
|
3110
3110
|
/* @__PURE__ */ e(
|
|
3111
3111
|
on,
|
|
3112
3112
|
{
|
|
@@ -3115,10 +3115,10 @@ const zo = ({ total: t }) => {
|
|
|
3115
3115
|
sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
|
|
3116
3116
|
}
|
|
3117
3117
|
),
|
|
3118
|
-
|
|
3118
|
+
b
|
|
3119
3119
|
] });
|
|
3120
3120
|
};
|
|
3121
|
-
return /* @__PURE__ */ i(
|
|
3121
|
+
return /* @__PURE__ */ i(Y, { children: [
|
|
3122
3122
|
/* @__PURE__ */ e(
|
|
3123
3123
|
M,
|
|
3124
3124
|
{
|
|
@@ -3139,18 +3139,18 @@ const zo = ({ total: t }) => {
|
|
|
3139
3139
|
{
|
|
3140
3140
|
sx: {
|
|
3141
3141
|
alignItems: "center",
|
|
3142
|
-
backgroundColor:
|
|
3142
|
+
backgroundColor: f(),
|
|
3143
3143
|
borderRadius: 999,
|
|
3144
3144
|
height: 48,
|
|
3145
3145
|
justifyContent: "center",
|
|
3146
3146
|
width: 48
|
|
3147
3147
|
},
|
|
3148
|
-
children: /* @__PURE__ */ e(
|
|
3148
|
+
children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: r > 0 ? `+${r}` : r })
|
|
3149
3149
|
}
|
|
3150
3150
|
),
|
|
3151
3151
|
/* @__PURE__ */ i(_, { sx: { gap: 2, width: "80%" }, children: [
|
|
3152
|
-
/* @__PURE__ */ e(
|
|
3153
|
-
/* @__PURE__ */ i(
|
|
3152
|
+
/* @__PURE__ */ e(T, { fontWeight: 600, variant: "body1", children: v() }),
|
|
3153
|
+
/* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3154
3154
|
m,
|
|
3155
3155
|
" ",
|
|
3156
3156
|
x()
|
|
@@ -3174,9 +3174,9 @@ const zo = ({ total: t }) => {
|
|
|
3174
3174
|
},
|
|
3175
3175
|
children: [
|
|
3176
3176
|
/* @__PURE__ */ e(
|
|
3177
|
-
|
|
3177
|
+
lt,
|
|
3178
3178
|
{
|
|
3179
|
-
content:
|
|
3179
|
+
content: K(
|
|
3180
3180
|
n.spend_to_income_description,
|
|
3181
3181
|
Oe(l),
|
|
3182
3182
|
Oe(c)
|
|
@@ -3184,9 +3184,9 @@ const zo = ({ total: t }) => {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
),
|
|
3186
3186
|
/* @__PURE__ */ e(
|
|
3187
|
-
|
|
3187
|
+
lt,
|
|
3188
3188
|
{
|
|
3189
|
-
content:
|
|
3189
|
+
content: K(
|
|
3190
3190
|
n.credit_score_description,
|
|
3191
3191
|
a,
|
|
3192
3192
|
s
|
|
@@ -3198,12 +3198,12 @@ const zo = ({ total: t }) => {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
) })
|
|
3200
3200
|
] });
|
|
3201
|
-
}, Vr =
|
|
3202
|
-
const n =
|
|
3201
|
+
}, Vr = w(Kr), Yr = ({ isOpen: t, onClose: o }) => {
|
|
3202
|
+
const n = E(), { finstrong: r } = C(), { isCopyLoaded: s, isInitialized: a } = J(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: p } = L();
|
|
3203
3203
|
if (!s || !a) return /* @__PURE__ */ e(U, {});
|
|
3204
|
-
const u =
|
|
3204
|
+
const u = He(c.health_score || 0, r), m = d.slice().reverse();
|
|
3205
3205
|
return /* @__PURE__ */ e(
|
|
3206
|
-
|
|
3206
|
+
Ft,
|
|
3207
3207
|
{
|
|
3208
3208
|
additionalContent: /* @__PURE__ */ e(
|
|
3209
3209
|
_,
|
|
@@ -3214,7 +3214,7 @@ const zo = ({ total: t }) => {
|
|
|
3214
3214
|
borderColor: "divider"
|
|
3215
3215
|
},
|
|
3216
3216
|
children: /* @__PURE__ */ e(
|
|
3217
|
-
|
|
3217
|
+
Ve,
|
|
3218
3218
|
{
|
|
3219
3219
|
axisColor: n.palette.divider,
|
|
3220
3220
|
baseline: "min",
|
|
@@ -3249,7 +3249,7 @@ const zo = ({ total: t }) => {
|
|
|
3249
3249
|
},
|
|
3250
3250
|
children: /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
|
|
3251
3251
|
/* @__PURE__ */ e(
|
|
3252
|
-
|
|
3252
|
+
Rt,
|
|
3253
3253
|
{
|
|
3254
3254
|
arcRadius: 24,
|
|
3255
3255
|
healthScore: c?.health_score,
|
|
@@ -3258,17 +3258,17 @@ const zo = ({ total: t }) => {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
),
|
|
3260
3260
|
/* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
|
|
3261
|
-
/* @__PURE__ */ e(
|
|
3262
|
-
/* @__PURE__ */ e(
|
|
3261
|
+
/* @__PURE__ */ e(I, { variant: "h3", children: u.status }),
|
|
3262
|
+
/* @__PURE__ */ e(I, { variant: "caption", children: u.description })
|
|
3263
3263
|
] })
|
|
3264
3264
|
] })
|
|
3265
3265
|
}
|
|
3266
3266
|
),
|
|
3267
|
-
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: m.map((
|
|
3267
|
+
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: m.map((f, v) => /* @__PURE__ */ e(Vr, { report: f }, v)) })
|
|
3268
3268
|
}
|
|
3269
3269
|
);
|
|
3270
|
-
}, Xr =
|
|
3271
|
-
const o =
|
|
3270
|
+
}, Xr = w(Yr), qr = ({ copy: t }) => {
|
|
3271
|
+
const o = E(), n = [
|
|
3272
3272
|
o.palette.chartMono.chartMono5,
|
|
3273
3273
|
o.palette.chartMono.chartMono4,
|
|
3274
3274
|
o.palette.chartMono.chartMono3,
|
|
@@ -3282,8 +3282,8 @@ const zo = ({ total: t }) => {
|
|
|
3282
3282
|
{ color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
|
|
3283
3283
|
].map(({ color: r, text: s, value: a }) => /* @__PURE__ */ i(_, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
|
|
3284
3284
|
/* @__PURE__ */ i(M, { children: [
|
|
3285
|
-
/* @__PURE__ */ e(
|
|
3286
|
-
/* @__PURE__ */ i(
|
|
3285
|
+
/* @__PURE__ */ e(I, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: s }),
|
|
3286
|
+
/* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "caption", children: [
|
|
3287
3287
|
"(",
|
|
3288
3288
|
a,
|
|
3289
3289
|
")"
|
|
@@ -3320,7 +3320,7 @@ const zo = ({ total: t }) => {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
}
|
|
3322
3322
|
),
|
|
3323
|
-
/* @__PURE__ */ e(
|
|
3323
|
+
/* @__PURE__ */ e(T, { sx: { color: "text.secondary" }, variant: "tiny", children: r })
|
|
3324
3324
|
]
|
|
3325
3325
|
},
|
|
3326
3326
|
r
|
|
@@ -3328,19 +3328,19 @@ const zo = ({ total: t }) => {
|
|
|
3328
3328
|
] })
|
|
3329
3329
|
] });
|
|
3330
3330
|
}, Ur = ({ isOpen: t, onClose: o }) => {
|
|
3331
|
-
const { finstrong: n } =
|
|
3332
|
-
return r ? /* @__PURE__ */ e(
|
|
3331
|
+
const { finstrong: n } = C(), { isCopyLoaded: r } = J();
|
|
3332
|
+
return r ? /* @__PURE__ */ e(oe, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
|
|
3333
3333
|
/* @__PURE__ */ i(_, { sx: { gap: 20 }, children: [
|
|
3334
3334
|
/* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
|
|
3335
|
-
/* @__PURE__ */ e(
|
|
3336
|
-
/* @__PURE__ */ e(
|
|
3335
|
+
/* @__PURE__ */ e(V, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
|
|
3336
|
+
/* @__PURE__ */ e(I, { variant: "subtitle1", children: n.finstrong_freedom_description })
|
|
3337
3337
|
] }),
|
|
3338
3338
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(qr, { copy: n }) })
|
|
3339
3339
|
] }),
|
|
3340
3340
|
/* @__PURE__ */ i(_, { sx: { gap: 12 }, children: [
|
|
3341
|
-
/* @__PURE__ */ e(
|
|
3341
|
+
/* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
|
|
3342
3342
|
/* @__PURE__ */ i(
|
|
3343
|
-
|
|
3343
|
+
ze,
|
|
3344
3344
|
{
|
|
3345
3345
|
component: "ol",
|
|
3346
3346
|
sx: {
|
|
@@ -3378,9 +3378,9 @@ const zo = ({ total: t }) => {
|
|
|
3378
3378
|
)
|
|
3379
3379
|
] }),
|
|
3380
3380
|
/* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
|
|
3381
|
-
/* @__PURE__ */ e(
|
|
3381
|
+
/* @__PURE__ */ e(T, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
|
|
3382
3382
|
/* @__PURE__ */ i(
|
|
3383
|
-
|
|
3383
|
+
ze,
|
|
3384
3384
|
{
|
|
3385
3385
|
component: "ol",
|
|
3386
3386
|
sx: {
|
|
@@ -3407,13 +3407,13 @@ const zo = ({ total: t }) => {
|
|
|
3407
3407
|
)
|
|
3408
3408
|
] })
|
|
3409
3409
|
] }) }) : /* @__PURE__ */ e(U, {});
|
|
3410
|
-
}, Qr =
|
|
3411
|
-
const [t, o] = h.useState(!1), n =
|
|
3412
|
-
return !l || !c ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(
|
|
3410
|
+
}, Qr = w(Ur), Zr = w(() => {
|
|
3411
|
+
const [t, o] = h.useState(!1), n = E(), [r, { width: s }] = St(), { finstrong: a } = C(), { isCopyLoaded: l, isInitialized: c } = J(), { healthScore: d, healthScoreChange: p } = L(), u = n.palette.mode === "dark", m = He(d?.health_score, a);
|
|
3412
|
+
return !l || !c ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
3413
3413
|
/* @__PURE__ */ i(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3414
|
-
/* @__PURE__ */ e(
|
|
3414
|
+
/* @__PURE__ */ e(V, { children: a.financial_strength_header }),
|
|
3415
3415
|
/* @__PURE__ */ e(
|
|
3416
|
-
|
|
3416
|
+
B,
|
|
3417
3417
|
{
|
|
3418
3418
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3419
3419
|
onClick: () => o(!0),
|
|
@@ -3426,7 +3426,7 @@ const zo = ({ total: t }) => {
|
|
|
3426
3426
|
},
|
|
3427
3427
|
variant: "text",
|
|
3428
3428
|
children: /* @__PURE__ */ e(
|
|
3429
|
-
|
|
3429
|
+
T,
|
|
3430
3430
|
{
|
|
3431
3431
|
bold: !0,
|
|
3432
3432
|
sx: {
|
|
@@ -3440,7 +3440,7 @@ const zo = ({ total: t }) => {
|
|
|
3440
3440
|
)
|
|
3441
3441
|
] }),
|
|
3442
3442
|
/* @__PURE__ */ e(_, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
|
|
3443
|
-
|
|
3443
|
+
Rt,
|
|
3444
3444
|
{
|
|
3445
3445
|
arcRadius: s <= 323 ? 72.5 : 154,
|
|
3446
3446
|
footerCenterContent: p,
|
|
@@ -3477,10 +3477,10 @@ const zo = ({ total: t }) => {
|
|
|
3477
3477
|
minHeight: 0
|
|
3478
3478
|
}
|
|
3479
3479
|
},
|
|
3480
|
-
children: /* @__PURE__ */ e(
|
|
3480
|
+
children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
|
|
3481
3481
|
}
|
|
3482
3482
|
),
|
|
3483
|
-
/* @__PURE__ */ e(wo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(
|
|
3483
|
+
/* @__PURE__ */ e(wo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(I, { variant: "subtitle1", children: m.scoreContent }) })
|
|
3484
3484
|
]
|
|
3485
3485
|
}
|
|
3486
3486
|
) : /* @__PURE__ */ e(
|
|
@@ -3512,63 +3512,52 @@ const zo = ({ total: t }) => {
|
|
|
3512
3512
|
}
|
|
3513
3513
|
)
|
|
3514
3514
|
] });
|
|
3515
|
-
}), Jr = ({ onBackClick: t,
|
|
3516
|
-
const { visibleAccounts:
|
|
3517
|
-
augmentedChartData:
|
|
3518
|
-
calculateHealthScore:
|
|
3519
|
-
loadAugmentedChartData:
|
|
3520
|
-
loadMonthlySummaries:
|
|
3521
|
-
loadPeerScore:
|
|
3522
|
-
peerScore:
|
|
3523
|
-
healthScore:
|
|
3524
|
-
} =
|
|
3515
|
+
}), Jr = ({ onBackClick: t, onPrimaryCtaClick: o }) => {
|
|
3516
|
+
const { visibleAccounts: n } = Se(), { dateRange: r, isDataLoaded: s, loadBudgetData: a, setTheme: l } = Ln(), { reloadCategoryTotals: c } = je(), d = L(), {
|
|
3517
|
+
augmentedChartData: p,
|
|
3518
|
+
calculateHealthScore: u,
|
|
3519
|
+
loadAugmentedChartData: m,
|
|
3520
|
+
loadMonthlySummaries: f,
|
|
3521
|
+
loadPeerScore: v,
|
|
3522
|
+
peerScore: x,
|
|
3523
|
+
healthScore: S
|
|
3524
|
+
} = d, { finstrong: b, connect: k } = C(), { isInitialized: g } = J(), { loadRepeatingTransactionData: y, isDataLoaded: A } = Ke(), { isSmallMobile: P } = Xe(), D = E(), { userProfile: H } = ee(), [W, N] = h.useState(!1), [ve, ae] = h.useState(!1), [X, te] = h.useState(!1), [ie, q] = h.useState(!1), [j, se] = h.useState(!1);
|
|
3525
3525
|
Mo({
|
|
3526
3526
|
widgetName: "FinstrongWidget",
|
|
3527
|
-
isLoaded:
|
|
3527
|
+
isLoaded: W
|
|
3528
3528
|
}), h.useEffect(() => {
|
|
3529
|
-
|
|
3529
|
+
l(D);
|
|
3530
3530
|
}, []), h.useEffect(() => {
|
|
3531
|
-
|
|
3532
|
-
}, [
|
|
3533
|
-
|
|
3534
|
-
}, [
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
}),
|
|
3538
|
-
}, [
|
|
3539
|
-
|
|
3540
|
-
}, [
|
|
3541
|
-
const
|
|
3542
|
-
|
|
3543
|
-
|
|
3531
|
+
o && (d.handleFinstrongWidgetPrimaryCtaClick = o);
|
|
3532
|
+
}, [o, d]), h.useEffect(() => {
|
|
3533
|
+
g && (f().finally(), v().finally(), u().finally());
|
|
3534
|
+
}, [g]), h.useEffect(() => {
|
|
3535
|
+
g && (c(n, r.start, r.end).finally(() => {
|
|
3536
|
+
N(!0);
|
|
3537
|
+
}), s || (a(), y().finally()));
|
|
3538
|
+
}, [r, s, g, n]), h.useEffect(() => {
|
|
3539
|
+
S?.health_score && m().finally();
|
|
3540
|
+
}, [S.health_score]);
|
|
3541
|
+
const ce = () => te(!0), we = Math.round(x?.average_health_score?.average_health_score || 0), z = p.some((Ee) => Ee.y !== 0), me = () => {
|
|
3542
|
+
ae(!0), u(!1).finally(() => {
|
|
3543
|
+
ae(!1);
|
|
3544
3544
|
}), te(!1);
|
|
3545
3545
|
};
|
|
3546
|
-
return !
|
|
3546
|
+
return !g || !W || !A || ve ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(
|
|
3547
3547
|
Do,
|
|
3548
3548
|
{
|
|
3549
3549
|
actions: [
|
|
3550
3550
|
{
|
|
3551
3551
|
iconName: "person",
|
|
3552
|
-
label:
|
|
3553
|
-
onClick:
|
|
3552
|
+
label: b.profile,
|
|
3553
|
+
onClick: ce
|
|
3554
3554
|
}
|
|
3555
3555
|
],
|
|
3556
|
-
hasDivider: !0,
|
|
3557
3556
|
onBackClick: t,
|
|
3558
3557
|
showAccountFilter: !1,
|
|
3559
|
-
|
|
3560
|
-
"& .MuiCardHeader-root": {
|
|
3561
|
-
px: T ? 16 : 48,
|
|
3562
|
-
pt: T ? 12 : 48
|
|
3563
|
-
},
|
|
3564
|
-
"& .MuiDivider-root": {
|
|
3565
|
-
mt: T ? 12 : 24
|
|
3566
|
-
},
|
|
3567
|
-
...o
|
|
3568
|
-
},
|
|
3569
|
-
title: C.title,
|
|
3558
|
+
title: b.title,
|
|
3570
3559
|
children: [
|
|
3571
|
-
|
|
3560
|
+
H.has_completed_finstrong_onboarding ? /* @__PURE__ */ i(
|
|
3572
3561
|
_,
|
|
3573
3562
|
{
|
|
3574
3563
|
sx: {
|
|
@@ -3576,8 +3565,8 @@ const zo = ({ total: t }) => {
|
|
|
3576
3565
|
flexDirection: { md: "row" },
|
|
3577
3566
|
gap: 24,
|
|
3578
3567
|
justifyContent: "center",
|
|
3579
|
-
pt:
|
|
3580
|
-
px:
|
|
3568
|
+
pt: P ? 16 : 24,
|
|
3569
|
+
px: P ? 16 : 48
|
|
3581
3570
|
},
|
|
3582
3571
|
children: [
|
|
3583
3572
|
/* @__PURE__ */ i(_, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
|
|
@@ -3585,25 +3574,25 @@ const zo = ({ total: t }) => {
|
|
|
3585
3574
|
/* @__PURE__ */ e(
|
|
3586
3575
|
Be,
|
|
3587
3576
|
{
|
|
3588
|
-
description:
|
|
3577
|
+
description: b.connect_more_accounts_description,
|
|
3589
3578
|
drawerType: "connectDrawer",
|
|
3590
|
-
title:
|
|
3579
|
+
title: b.connect_more_accounts_title
|
|
3591
3580
|
}
|
|
3592
3581
|
)
|
|
3593
3582
|
] }),
|
|
3594
|
-
/* @__PURE__ */ e(_, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ i(
|
|
3583
|
+
/* @__PURE__ */ e(_, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ i(Y, { sx: { height: "100%", p: 16 }, children: [
|
|
3595
3584
|
/* @__PURE__ */ i(
|
|
3596
3585
|
_,
|
|
3597
3586
|
{
|
|
3598
3587
|
direction: "row",
|
|
3599
3588
|
sx: { alignItems: "center", gap: 12, justifyContent: "space-between" },
|
|
3600
3589
|
children: [
|
|
3601
|
-
/* @__PURE__ */ e(
|
|
3590
|
+
/* @__PURE__ */ e(V, { children: b.key_indicators }),
|
|
3602
3591
|
/* @__PURE__ */ e(
|
|
3603
|
-
|
|
3592
|
+
B,
|
|
3604
3593
|
{
|
|
3605
3594
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3606
|
-
onClick: () =>
|
|
3595
|
+
onClick: () => q(!0),
|
|
3607
3596
|
size: "small",
|
|
3608
3597
|
sx: {
|
|
3609
3598
|
"&.MuiButtonBase-root": {
|
|
@@ -3612,70 +3601,70 @@ const zo = ({ total: t }) => {
|
|
|
3612
3601
|
}
|
|
3613
3602
|
},
|
|
3614
3603
|
variant: "text",
|
|
3615
|
-
children: /* @__PURE__ */ e(
|
|
3604
|
+
children: /* @__PURE__ */ e(T, { bold: !0, variant: "body2", children: b.whats_changed })
|
|
3616
3605
|
}
|
|
3617
3606
|
)
|
|
3618
3607
|
]
|
|
3619
3608
|
}
|
|
3620
3609
|
),
|
|
3621
|
-
|
|
3622
|
-
|
|
3610
|
+
z ? /* @__PURE__ */ e(
|
|
3611
|
+
Ve,
|
|
3623
3612
|
{
|
|
3624
|
-
axisColor:
|
|
3613
|
+
axisColor: D.palette.divider,
|
|
3625
3614
|
baseline: "min",
|
|
3626
|
-
colors: [
|
|
3615
|
+
colors: [D.palette.primary.main],
|
|
3627
3616
|
curveType: "natural",
|
|
3628
3617
|
customLegendBoxSx: { borderRadius: "2px" },
|
|
3629
3618
|
customLegendSx: { left: 0 },
|
|
3630
3619
|
customLegendVariant: "caption",
|
|
3631
|
-
datasets: [
|
|
3620
|
+
datasets: [p],
|
|
3632
3621
|
height: 300,
|
|
3633
3622
|
isCurrency: !1,
|
|
3634
3623
|
isGraphClippingXAxis: !0,
|
|
3635
|
-
labelBackgroundColor:
|
|
3636
|
-
labelFontColor:
|
|
3637
|
-
labelFontSize: typeof
|
|
3638
|
-
labels: [
|
|
3624
|
+
labelBackgroundColor: D.palette.neutral.dark,
|
|
3625
|
+
labelFontColor: D.palette.common.white,
|
|
3626
|
+
labelFontSize: typeof D.typography.caption?.fontSize == "string" ? parseFloat(D.typography.caption.fontSize) : D.typography.caption?.fontSize,
|
|
3627
|
+
labels: [b.key_indicators_label],
|
|
3639
3628
|
margin: { right: 12, left: -37 },
|
|
3640
|
-
peerAverage:
|
|
3629
|
+
peerAverage: we,
|
|
3641
3630
|
showArea: !0,
|
|
3642
3631
|
showAverage: !0,
|
|
3643
3632
|
showLegend: !0,
|
|
3644
3633
|
showMarkLabel: !0,
|
|
3645
3634
|
showTooltip: !0,
|
|
3646
3635
|
showXAxis: !0,
|
|
3647
|
-
title:
|
|
3636
|
+
title: b.peer_average
|
|
3648
3637
|
}
|
|
3649
|
-
) : /* @__PURE__ */ e(Ar, { onClick: () =>
|
|
3638
|
+
) : /* @__PURE__ */ e(Ar, { onClick: () => se(!0) }),
|
|
3650
3639
|
/* @__PURE__ */ e(Ir, {})
|
|
3651
3640
|
] }) })
|
|
3652
3641
|
]
|
|
3653
3642
|
}
|
|
3654
3643
|
) : /* @__PURE__ */ e(zr, {}),
|
|
3655
|
-
/* @__PURE__ */ e(jr, { isOpen:
|
|
3644
|
+
/* @__PURE__ */ e(jr, { isOpen: X, onClose: me }),
|
|
3656
3645
|
/* @__PURE__ */ e(
|
|
3657
|
-
|
|
3646
|
+
re,
|
|
3658
3647
|
{
|
|
3659
|
-
onClose: () =>
|
|
3660
|
-
showConnectWidget:
|
|
3661
|
-
title:
|
|
3648
|
+
onClose: () => se(!1),
|
|
3649
|
+
showConnectWidget: j,
|
|
3650
|
+
title: k.mini_title
|
|
3662
3651
|
}
|
|
3663
3652
|
),
|
|
3664
3653
|
/* @__PURE__ */ e(
|
|
3665
3654
|
Xr,
|
|
3666
3655
|
{
|
|
3667
|
-
isOpen:
|
|
3668
|
-
onClose: () =>
|
|
3656
|
+
isOpen: ie,
|
|
3657
|
+
onClose: () => q(!1)
|
|
3669
3658
|
}
|
|
3670
3659
|
)
|
|
3671
3660
|
]
|
|
3672
3661
|
}
|
|
3673
3662
|
);
|
|
3674
|
-
}, fi =
|
|
3663
|
+
}, fi = w(Jr);
|
|
3675
3664
|
export {
|
|
3676
3665
|
To as CreditScoreGraph,
|
|
3677
|
-
|
|
3678
|
-
|
|
3666
|
+
Ot as DialScoreCard,
|
|
3667
|
+
Rt as FinancialStrengthGraph,
|
|
3679
3668
|
Ci as FinstrongApi,
|
|
3680
3669
|
vi as FinstrongStore,
|
|
3681
3670
|
fi as FinstrongWidget
|