@mx-cartographer/experiences 7.0.57-alpha.mega3 → 7.0.58-alpha-ram1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/dist/{Account-DoxALziV.mjs → Account-tMsdS_fR.mjs} +1 -1
- package/dist/{AccountDetailsContent-DsD3Wzu7.mjs → AccountDetailsContent-C8fH-FQB.mjs} +7 -7
- package/dist/{AccountDetailsHeader-DN2pk4QW.mjs → AccountDetailsHeader-DNAjoL-S.mjs} +4 -4
- package/dist/{AccountFields-CuivK48n.mjs → AccountFields-Dg6oj8cP.mjs} +2 -2
- package/dist/{AccountListItem-BAdwVscV.mjs → AccountListItem-Beq27kHX.mjs} +3 -3
- package/dist/{AccountStore-DWiQAs6V.mjs → AccountStore-CHPKVGWf.mjs} +1 -1
- package/dist/{Accounts-CNnOAmr2.mjs → Accounts-C5gB9veQ.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-BmenK5bu.mjs → CategorySelectorDrawer-CedQx6n6.mjs} +1 -1
- package/dist/{ConnectDrawer-DJA_S-rX.mjs → ConnectDrawer-CUKAktmo.mjs} +1 -1
- package/dist/{ConnectionsDrawer-CU3E2RLw.mjs → ConnectionsDrawer-CwmI5IXT.mjs} +2 -2
- package/dist/{DebtsStore-CoZ30R-_.mjs → DebtsStore-Blg0V9AH.mjs} +1 -1
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{GoalStore-DxOUk36P.mjs → GoalStore-BNyhflZu.mjs} +1 -1
- package/dist/{Help-CzBAsKA2.mjs → Help-BYF21T2N.mjs} +1 -1
- package/dist/{ManageIncome-BX7dzGF8.mjs → ManageIncome-BftkBLLt.mjs} +59 -57
- package/dist/{NetWorthStore-f6RQno5Z.mjs → NetWorthStore-DgWH61d0.mjs} +2 -2
- package/dist/{NotificationSettings-C215AwS0.mjs → NotificationSettings-4OsC52PM.mjs} +1 -1
- package/dist/{RecurringSettings-qv7DNYac.mjs → RecurringSettings-DWRuYGXq.mjs} +2 -2
- package/dist/{TransactionDetails-DAp_CPCP.mjs → TransactionDetails-Csjr1ivB.mjs} +3 -3
- package/dist/{WidgetContainer-B8MRJ5Y1.mjs → WidgetContainer-Dr9acAPp.mjs} +2 -2
- package/dist/accounts/components/AccountsListCompact.d.ts +9 -0
- package/dist/accounts/index.es.js +12 -12
- package/dist/budgets/index.es.js +6 -6
- package/dist/cashflow/index.es.js +6 -6
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/index.es.js +10 -10
- package/dist/common/types/Finstrong.d.ts +6 -0
- package/dist/common/types/localization/FinstrongCopy.d.ts +10 -0
- package/dist/dashboard/index.es.js +1 -1
- package/dist/debts/index.es.js +6 -6
- package/dist/finstrong/components/DoubleBarChart.d.ts +26 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +2 -0
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/Onboarding.d.ts +5 -0
- package/dist/finstrong/components/OnboardingAddMonthlyIncome.d.ts +11 -0
- package/dist/finstrong/components/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/constants/index.d.ts +8 -0
- package/dist/finstrong/index.es.js +1044 -810
- package/dist/finstrong/util/finstrongUtils.d.ts +9 -0
- package/dist/goals/index.es.js +8 -8
- package/dist/help/index.es.js +2 -2
- package/dist/investments/index.es.js +3 -3
- package/dist/networth/index.es.js +5 -5
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +6 -6
- package/dist/settings/index.es.js +6 -6
- package/dist/spending/index.es.js +3 -3
- package/dist/transactions/index.es.js +6 -6
- package/dist/trends/index.es.js +4 -4
- package/dist/{useAccountDisplayName-CyPD_TFR.mjs → useAccountDisplayName-Ngo3TWV4.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-kEE73B87.mjs +0 -113
|
@@ -1,57 +1,85 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { PieChart as
|
|
6
|
-
import { ChevronRight as
|
|
7
|
-
import { Text as W, P as
|
|
8
|
-
import { format as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { b } from "../Localization-2MODESHW.mjs";
|
|
18
|
-
import * as
|
|
19
|
-
import { observer as
|
|
20
|
-
import { u as
|
|
21
|
-
import { L as
|
|
22
|
-
import { F as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import { L as
|
|
26
|
-
import { k as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { u as
|
|
32
|
-
import { C as
|
|
33
|
-
import { R as
|
|
34
|
-
import
|
|
35
|
-
import { u as
|
|
36
|
-
import { a as
|
|
37
|
-
import { AdapterDateFns as
|
|
38
|
-
import { StaticDatePicker as
|
|
39
|
-
import { LocalizationProvider as
|
|
40
|
-
import { D as
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import it from "
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
|
|
1
|
+
import { jsx as t, jsxs as p, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import C from "@mui/material/Box";
|
|
3
|
+
import m from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as L, alpha as ot } from "@mui/material/styles";
|
|
5
|
+
import { PieChart as Mt } from "@mui/x-charts";
|
|
6
|
+
import { ChevronRight as Y, Check as Dt, TrendingUp as wt, ArrowRightAlt as Ft, TrendingDown as Rt, AccountBalance as mt, ExpandMore as Gt, Payments as Pt, CalendarMonth as Lt, CreditCard as _t, CheckCircle as Et, Savings as Bt, ContentCopy as Ht, MultilineChart as Wt } from "@mxenabled/mx-icons";
|
|
7
|
+
import { Text as W, P as f, H3 as E, H2 as zt, Icon as gt } from "@mxenabled/mxui";
|
|
8
|
+
import { format as ht } from "date-fns/format";
|
|
9
|
+
import b from "react";
|
|
10
|
+
import Nt from "@mui/material/Avatar";
|
|
11
|
+
import ft from "@mui/material/Divider";
|
|
12
|
+
import $t from "@mui/material/List";
|
|
13
|
+
import Kt from "@mui/material/ListItem";
|
|
14
|
+
import Xt from "@mui/material/ListItemAvatar";
|
|
15
|
+
import Yt from "@mui/material/ListItemButton";
|
|
16
|
+
import jt from "@mui/material/ListItemText";
|
|
17
|
+
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
18
|
+
import * as lt from "d3";
|
|
19
|
+
import { observer as S } from "mobx-react-lite";
|
|
20
|
+
import { u as y, b as N, w as $, o as Q, d as yt, i as St, m as Ut } from "../hooks-CE2TKk4a.mjs";
|
|
21
|
+
import { L as K } from "../Loader-DUaFpDGv.mjs";
|
|
22
|
+
import { F as po, a as uo } from "../FinstrongStore-F2c607dj.mjs";
|
|
23
|
+
import Z from "@mui/material/Button";
|
|
24
|
+
import j from "@mui/material/Card";
|
|
25
|
+
import { L as bt } from "../LineChart-B2Y7zwMu.mjs";
|
|
26
|
+
import { k as Ct } from "../ConnectDrawer-CUKAktmo.mjs";
|
|
27
|
+
import Vt from "@mui/material/Accordion";
|
|
28
|
+
import qt from "@mui/material/AccordionDetails";
|
|
29
|
+
import Jt from "@mui/material/AccordionSummary";
|
|
30
|
+
import Qt from "@mui/material/CardHeader";
|
|
31
|
+
import { u as Zt } from "../useDimensions-27p2evRx.mjs";
|
|
32
|
+
import { C as te } from "../ConnectionsDrawer-CwmI5IXT.mjs";
|
|
33
|
+
import { R as ee } from "../RecurringSettings-DWRuYGXq.mjs";
|
|
34
|
+
import ne from "@mui/material/TextField";
|
|
35
|
+
import { u as xt } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
36
|
+
import { a as oe } from "../Dialog-CWW597AF.mjs";
|
|
37
|
+
import { AdapterDateFns as re } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
38
|
+
import { StaticDatePicker as ie } from "@mui/x-date-pickers";
|
|
39
|
+
import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
40
|
+
import { D as q } from "../Drawer-BEtCk82g.mjs";
|
|
41
|
+
import rt from "@mui/material/Tab";
|
|
42
|
+
import se from "@mui/material/Tabs";
|
|
43
|
+
import ce from "@mui/material/Chip";
|
|
44
|
+
import { f as le } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
45
|
+
import { T as it } from "../TabContentContainer-j01JYR_7.mjs";
|
|
46
|
+
import de from "@mui/lab/Timeline";
|
|
47
|
+
import pe, { timelineItemClasses as ue } from "@mui/lab/TimelineItem";
|
|
48
|
+
import me from "@mui/lab/TimelineConnector";
|
|
49
|
+
import _e from "@mui/lab/TimelineContent";
|
|
50
|
+
import ge from "@mui/lab/TimelineDot";
|
|
51
|
+
import he from "@mui/lab/TimelineSeparator";
|
|
52
|
+
import { W as fe } from "../WidgetContainer-Dr9acAPp.mjs";
|
|
53
|
+
const U = {
|
|
54
|
+
creditScore: {
|
|
55
|
+
poor: 600,
|
|
56
|
+
good: 720
|
|
57
|
+
},
|
|
58
|
+
daysOfCashOnHand: {
|
|
59
|
+
poor: 30,
|
|
60
|
+
good: 90
|
|
61
|
+
},
|
|
62
|
+
debtToIncomeRatio: {
|
|
63
|
+
poor: 40,
|
|
64
|
+
good: 30
|
|
65
|
+
},
|
|
66
|
+
emergencySavings: {
|
|
67
|
+
poor: 750,
|
|
68
|
+
good: 1e3
|
|
69
|
+
},
|
|
70
|
+
spendToIncomeRatio: {
|
|
71
|
+
poor: 110,
|
|
72
|
+
good: 100
|
|
73
|
+
}
|
|
74
|
+
}, k = {
|
|
75
|
+
GOOD: "Good",
|
|
76
|
+
FAIR: "Fair",
|
|
77
|
+
OFF_TRACK: "Off Track",
|
|
78
|
+
MISSING: "Missing"
|
|
79
|
+
};
|
|
80
|
+
var v = /* @__PURE__ */ ((e) => (e.Connections = "connections", e.CreditScore = "credit_score", e.DateOfBirth = "date_of_birth", e.MonthlyIncome = "monthly_income", e))(v || {});
|
|
81
|
+
const ye = ({ list: e, onClickItem: o }) => /* @__PURE__ */ t(C, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(
|
|
82
|
+
$t,
|
|
55
83
|
{
|
|
56
84
|
sx: {
|
|
57
85
|
"& .MuiListItemSecondaryAction-root": {
|
|
@@ -59,14 +87,14 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
59
87
|
pr: 24
|
|
60
88
|
}
|
|
61
89
|
},
|
|
62
|
-
children:
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
90
|
+
children: e.map((n, r) => /* @__PURE__ */ p(b.Fragment, { children: [
|
|
91
|
+
/* @__PURE__ */ t(Kt, { secondaryAction: /* @__PURE__ */ t(Y, {}), children: /* @__PURE__ */ p(Yt, { onClick: () => o(n.key), children: [
|
|
92
|
+
/* @__PURE__ */ t(Xt, { children: /* @__PURE__ */ t(
|
|
93
|
+
Nt,
|
|
66
94
|
{
|
|
67
95
|
sx: {
|
|
68
96
|
bgcolor: "primary.main",
|
|
69
|
-
...!
|
|
97
|
+
...!n.isComplete && {
|
|
70
98
|
bgcolor: "transparent",
|
|
71
99
|
borderColor: "action.active",
|
|
72
100
|
borderStyle: "solid",
|
|
@@ -74,21 +102,21 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
74
102
|
color: "action.active"
|
|
75
103
|
}
|
|
76
104
|
},
|
|
77
|
-
children:
|
|
105
|
+
children: n.icon
|
|
78
106
|
}
|
|
79
107
|
) }),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
108
|
+
/* @__PURE__ */ t(
|
|
109
|
+
jt,
|
|
82
110
|
{
|
|
83
|
-
primary: /* @__PURE__ */
|
|
84
|
-
secondary: /* @__PURE__ */
|
|
111
|
+
primary: /* @__PURE__ */ t(W, { sx: { color: "text.secondary" }, variant: "caption", children: n.primaryText }),
|
|
112
|
+
secondary: /* @__PURE__ */ t(W, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: n.secondaryText })
|
|
85
113
|
}
|
|
86
114
|
)
|
|
87
115
|
] }) }),
|
|
88
|
-
|
|
89
|
-
] },
|
|
116
|
+
r < e.length - 1 && /* @__PURE__ */ t(ft, { sx: { color: "divider", ml: 68 } })
|
|
117
|
+
] }, n.key))
|
|
90
118
|
}
|
|
91
|
-
) }),
|
|
119
|
+
) }), Se = ye, dt = (e) => e * (180 / Math.PI), at = (e, o) => [
|
|
92
120
|
{
|
|
93
121
|
description: o.vulnerable_description,
|
|
94
122
|
max: 25,
|
|
@@ -113,7 +141,7 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
113
141
|
scoreContent: o.accordion_details_text.strong,
|
|
114
142
|
status: o.strong
|
|
115
143
|
}
|
|
116
|
-
].find((d) =>
|
|
144
|
+
].find((d) => e > 0 && e <= d.max) || { status: o.insufficient_data, description: "", scoreContent: "" }, A = {
|
|
117
145
|
POOR: "#8C0E0E",
|
|
118
146
|
FAIR: "#E32727",
|
|
119
147
|
GOOD: "#FFB70D",
|
|
@@ -125,156 +153,171 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
125
153
|
GOOD: "#FFC02C",
|
|
126
154
|
VERY_GOOD: "#29C76B",
|
|
127
155
|
EXCEPTIONAL: "#008A5A"
|
|
128
|
-
},
|
|
129
|
-
status:
|
|
130
|
-
color: o ? M.POOR :
|
|
131
|
-
} :
|
|
132
|
-
status:
|
|
133
|
-
color: o ? M.FAIR :
|
|
134
|
-
} :
|
|
135
|
-
status:
|
|
136
|
-
color: o ? M.GOOD :
|
|
137
|
-
} :
|
|
138
|
-
status:
|
|
139
|
-
color: o ? M.VERY_GOOD :
|
|
140
|
-
} :
|
|
141
|
-
status:
|
|
142
|
-
color: o ? M.EXCEPTIONAL :
|
|
143
|
-
} : { status:
|
|
144
|
-
const d =
|
|
145
|
-
let
|
|
146
|
-
const
|
|
147
|
-
const
|
|
148
|
-
return
|
|
149
|
-
...
|
|
150
|
-
startAngle:
|
|
151
|
-
endAngle:
|
|
156
|
+
}, be = (e, o, n) => e >= 300 && e < 580 ? {
|
|
157
|
+
status: n.poor,
|
|
158
|
+
color: o ? M.POOR : A.POOR
|
|
159
|
+
} : e >= 580 && e < 670 ? {
|
|
160
|
+
status: n.fair,
|
|
161
|
+
color: o ? M.FAIR : A.FAIR
|
|
162
|
+
} : e >= 670 && e < 740 ? {
|
|
163
|
+
status: n.good,
|
|
164
|
+
color: o ? M.GOOD : A.GOOD
|
|
165
|
+
} : e >= 740 && e < 800 ? {
|
|
166
|
+
status: n.very_good,
|
|
167
|
+
color: o ? M.VERY_GOOD : A.VERY_GOOD
|
|
168
|
+
} : e >= 800 && e <= 850 ? {
|
|
169
|
+
status: n.exceptional,
|
|
170
|
+
color: o ? M.EXCEPTIONAL : A.EXCEPTIONAL
|
|
171
|
+
} : { status: n.missing_data }, Ce = (e, o, n, r) => {
|
|
172
|
+
const d = e.reduce((a, s) => a + s.value, 0);
|
|
173
|
+
let c = 0;
|
|
174
|
+
const i = e.map((a) => {
|
|
175
|
+
const s = a.value / d * o, l = n + c, u = l + s;
|
|
176
|
+
return c += s, {
|
|
177
|
+
...a,
|
|
178
|
+
startAngle: l,
|
|
179
|
+
endAngle: u
|
|
152
180
|
};
|
|
153
181
|
});
|
|
154
|
-
return [
|
|
155
|
-
},
|
|
156
|
-
let
|
|
157
|
-
const
|
|
158
|
-
return
|
|
159
|
-
},
|
|
160
|
-
const
|
|
161
|
-
return [
|
|
162
|
-
},
|
|
163
|
-
dynamicCopy:
|
|
182
|
+
return [i[r].startAngle, i[r].endAngle];
|
|
183
|
+
}, xe = (e, o, n, r, d) => {
|
|
184
|
+
let c = 0, i = 0;
|
|
185
|
+
const a = Math.floor(r), s = r - a;
|
|
186
|
+
return a > n ? (c = e, i = o) : a === n && s > 0 && (c = e, i = d), [c, i];
|
|
187
|
+
}, Te = (e, o, n = 0) => {
|
|
188
|
+
const r = e * Math.sin(o - n), d = -e * Math.cos(o - n);
|
|
189
|
+
return [r, d];
|
|
190
|
+
}, ve = ({
|
|
191
|
+
dynamicCopy: e,
|
|
164
192
|
fallbackLabel: o,
|
|
165
|
-
icon:
|
|
166
|
-
key:
|
|
193
|
+
icon: n,
|
|
194
|
+
key: r,
|
|
167
195
|
label: d,
|
|
168
|
-
value:
|
|
196
|
+
value: c
|
|
169
197
|
}) => {
|
|
170
|
-
const
|
|
198
|
+
const i = !!c, a = i ? ke(r, c) : e && O(e, o) || o;
|
|
171
199
|
return {
|
|
172
|
-
icon:
|
|
173
|
-
isComplete:
|
|
174
|
-
key:
|
|
200
|
+
icon: i ? /* @__PURE__ */ t(Dt, {}) : n,
|
|
201
|
+
isComplete: i,
|
|
202
|
+
key: r,
|
|
175
203
|
primaryText: d,
|
|
176
|
-
secondaryText:
|
|
204
|
+
secondaryText: a
|
|
177
205
|
};
|
|
178
|
-
},
|
|
179
|
-
[
|
|
180
|
-
[
|
|
181
|
-
})[
|
|
182
|
-
|
|
206
|
+
}, ke = (e, o) => ({
|
|
207
|
+
[v.DateOfBirth]: (r) => ht(new Date(Number(r) * 1e3), "MMM d, yyyy"),
|
|
208
|
+
[v.MonthlyIncome]: (r) => `$${r}`
|
|
209
|
+
})[e]?.(o) ?? String(o), pt = (e) => e !== null ? Math.round(e * 100) : null, Oe = (e) => {
|
|
210
|
+
const { good: o, poor: n } = U.daysOfCashOnHand;
|
|
211
|
+
return e === null ? "MISSING" : e >= o ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
212
|
+
}, Ie = (e) => {
|
|
213
|
+
const { good: o, poor: n } = U.emergencySavings;
|
|
214
|
+
return e === null ? "MISSING" : e >= o ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
215
|
+
}, Ae = (e) => {
|
|
216
|
+
const { good: o, poor: n } = U.spendToIncomeRatio;
|
|
217
|
+
return e === null ? "MISSING" : e < o ? "GOOD" : e < n ? "FAIR" : "OFF_TRACK";
|
|
218
|
+
}, Me = (e) => {
|
|
219
|
+
const { good: o, poor: n } = U.debtToIncomeRatio;
|
|
220
|
+
return e === null ? "MISSING" : e <= o ? "GOOD" : e <= n ? "FAIR" : "OFF_TRACK";
|
|
221
|
+
}, De = (e) => {
|
|
222
|
+
const { good: o, poor: n } = U.creditScore;
|
|
223
|
+
return e === null ? "MISSING" : e >= o ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
224
|
+
}, we = (e) => e === null ? "MISSING" : e === 0 ? "GOOD" : "OFF_TRACK", Fe = ({
|
|
225
|
+
dialScoreData: e,
|
|
183
226
|
dataIndex: o,
|
|
184
|
-
arcColor:
|
|
185
|
-
arcStartAngle:
|
|
227
|
+
arcColor: n,
|
|
228
|
+
arcStartAngle: r,
|
|
186
229
|
totalAngularSpan: d,
|
|
187
|
-
centerX:
|
|
188
|
-
centerY:
|
|
189
|
-
arcRadius:
|
|
190
|
-
innerArcRadius:
|
|
191
|
-
outterArcRadius:
|
|
192
|
-
progressEndAngle:
|
|
193
|
-
unitsPerSegment:
|
|
194
|
-
isFinacialStrengthGraph:
|
|
230
|
+
centerX: c,
|
|
231
|
+
centerY: i,
|
|
232
|
+
arcRadius: a,
|
|
233
|
+
innerArcRadius: s,
|
|
234
|
+
outterArcRadius: l,
|
|
235
|
+
progressEndAngle: u,
|
|
236
|
+
unitsPerSegment: _,
|
|
237
|
+
isFinacialStrengthGraph: g
|
|
195
238
|
}) => {
|
|
196
|
-
const
|
|
197
|
-
{ offset: "13.62%", color:
|
|
198
|
-
{ offset: "36.67%", color:
|
|
199
|
-
{ offset: "59.72%", color:
|
|
200
|
-
{ offset: "83.46%", color:
|
|
201
|
-
], [
|
|
202
|
-
|
|
239
|
+
const h = L(), F = [
|
|
240
|
+
{ offset: "13.62%", color: h.palette.chartMono.chartMono2 },
|
|
241
|
+
{ offset: "36.67%", color: h.palette.chartMono.chartMono3 },
|
|
242
|
+
{ offset: "59.72%", color: h.palette.chartMono.chartMono4 },
|
|
243
|
+
{ offset: "83.46%", color: h.palette.chartMono.chartMono5 }
|
|
244
|
+
], [D, x] = Ce(
|
|
245
|
+
e,
|
|
203
246
|
d,
|
|
204
|
-
|
|
247
|
+
r,
|
|
205
248
|
o
|
|
206
|
-
), [
|
|
207
|
-
|
|
208
|
-
|
|
249
|
+
), [B, H] = xe(
|
|
250
|
+
D,
|
|
251
|
+
x,
|
|
209
252
|
o,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
),
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
253
|
+
_,
|
|
254
|
+
u
|
|
255
|
+
), X = lt.arc().innerRadius(s).outerRadius(l).startAngle(D).endAngle(x).padAngle(0.02).cornerRadius(8), R = lt.arc().innerRadius(s).outerRadius(l).startAngle(B).endAngle(H).padAngle(0.02).cornerRadius(8);
|
|
256
|
+
return /* @__PURE__ */ p(J, { children: [
|
|
257
|
+
/* @__PURE__ */ t(
|
|
215
258
|
"path",
|
|
216
259
|
{
|
|
217
|
-
d:
|
|
218
|
-
fill:
|
|
260
|
+
d: X({}),
|
|
261
|
+
fill: g ? h.palette.divider : n
|
|
219
262
|
}
|
|
220
263
|
),
|
|
221
|
-
|
|
222
|
-
/* @__PURE__ */
|
|
264
|
+
g && /* @__PURE__ */ t("path", { d: R({}), fill: "url(#arcGradient)" }),
|
|
265
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t(
|
|
223
266
|
"linearGradient",
|
|
224
267
|
{
|
|
225
|
-
gradientTransform: `rotate(5, ${
|
|
268
|
+
gradientTransform: `rotate(5, ${c}, ${i})`,
|
|
226
269
|
gradientUnits: "userSpaceOnUse",
|
|
227
270
|
id: "arcGradient",
|
|
228
|
-
x1:
|
|
229
|
-
x2:
|
|
230
|
-
y1:
|
|
231
|
-
y2:
|
|
232
|
-
children:
|
|
271
|
+
x1: c + a * 0.8 * Math.cos(Math.PI / 1.35),
|
|
272
|
+
x2: c - a * 0.8 * Math.cos(Math.PI / 1.35),
|
|
273
|
+
y1: i + a * 0.8 * Math.sin(Math.PI / 1.35),
|
|
274
|
+
y2: i - a * 0.8 * Math.sin(Math.PI / 1.35),
|
|
275
|
+
children: F.map((w, I) => /* @__PURE__ */ t("stop", { offset: w.offset, stopColor: w.color }, I))
|
|
233
276
|
}
|
|
234
277
|
) })
|
|
235
278
|
] });
|
|
236
|
-
},
|
|
237
|
-
arcRadius:
|
|
279
|
+
}, Tt = ({
|
|
280
|
+
arcRadius: e = 100,
|
|
238
281
|
healthScore: o,
|
|
239
|
-
size:
|
|
240
|
-
dialScoreData:
|
|
282
|
+
size: n = "L",
|
|
283
|
+
dialScoreData: r,
|
|
241
284
|
minValue: d = 0,
|
|
242
|
-
maxValue:
|
|
243
|
-
markerColor:
|
|
244
|
-
healthScoreStatus:
|
|
245
|
-
footerCenterContent:
|
|
246
|
-
footerLeftContent:
|
|
247
|
-
footerRightContent:
|
|
248
|
-
isFinacialStrengthGraph:
|
|
285
|
+
maxValue: c = 100,
|
|
286
|
+
markerColor: i,
|
|
287
|
+
healthScoreStatus: a,
|
|
288
|
+
footerCenterContent: s,
|
|
289
|
+
footerLeftContent: l,
|
|
290
|
+
footerRightContent: u,
|
|
291
|
+
isFinacialStrengthGraph: _ = !1
|
|
249
292
|
}) => {
|
|
250
|
-
const
|
|
293
|
+
const g = L(), h = -Math.PI / 1.35, F = Math.PI / 1.35, D = F - h, x = D / (c - d), B = (o - d) * x, H = h + B + 0.02, X = n !== "SM" ? 0.1 : 0.12, R = e, w = e * (1 - X), I = R * 2.5, T = I / 2, G = I / 2, V = (w + R) / 2, et = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [nt, Ot] = Te(V, H, et), It = o / 25, st = {
|
|
251
294
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
252
295
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
253
296
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
254
|
-
},
|
|
255
|
-
return /* @__PURE__ */
|
|
256
|
-
|
|
297
|
+
}, At = s === 0 ? Ft : Rt;
|
|
298
|
+
return /* @__PURE__ */ p(
|
|
299
|
+
m,
|
|
257
300
|
{
|
|
258
301
|
sx: {
|
|
259
|
-
width:
|
|
260
|
-
height:
|
|
302
|
+
width: I,
|
|
303
|
+
height: I,
|
|
261
304
|
position: "relative",
|
|
262
305
|
alignSelf: "center"
|
|
263
306
|
},
|
|
264
307
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
|
|
308
|
+
/* @__PURE__ */ t(
|
|
309
|
+
Mt,
|
|
267
310
|
{
|
|
268
|
-
height:
|
|
311
|
+
height: I,
|
|
269
312
|
margin: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
270
313
|
series: [
|
|
271
314
|
{
|
|
272
|
-
data:
|
|
315
|
+
data: r,
|
|
273
316
|
innerRadius: w,
|
|
274
|
-
outerRadius:
|
|
275
|
-
startAngle: Math.round(
|
|
317
|
+
outerRadius: R,
|
|
318
|
+
startAngle: Math.round(dt(h)),
|
|
276
319
|
// Use Math.degrees to convert
|
|
277
|
-
endAngle: Math.round(
|
|
320
|
+
endAngle: Math.round(dt(F))
|
|
278
321
|
// Use Math.degrees to convert
|
|
279
322
|
}
|
|
280
323
|
],
|
|
@@ -283,22 +326,22 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
283
326
|
legend: { hidden: !0 }
|
|
284
327
|
},
|
|
285
328
|
slots: {
|
|
286
|
-
pieArc: (
|
|
287
|
-
|
|
329
|
+
pieArc: (ct) => /* @__PURE__ */ t(
|
|
330
|
+
Fe,
|
|
288
331
|
{
|
|
289
|
-
arcColor:
|
|
290
|
-
arcRadius:
|
|
291
|
-
arcStartAngle:
|
|
292
|
-
centerX:
|
|
293
|
-
centerY:
|
|
294
|
-
dataIndex:
|
|
295
|
-
dialScoreData:
|
|
332
|
+
arcColor: ct.color,
|
|
333
|
+
arcRadius: e,
|
|
334
|
+
arcStartAngle: h,
|
|
335
|
+
centerX: T,
|
|
336
|
+
centerY: G,
|
|
337
|
+
dataIndex: ct.dataIndex,
|
|
338
|
+
dialScoreData: r,
|
|
296
339
|
innerArcRadius: w,
|
|
297
|
-
isFinacialStrengthGraph:
|
|
298
|
-
outterArcRadius:
|
|
299
|
-
progressEndAngle:
|
|
300
|
-
totalAngularSpan:
|
|
301
|
-
unitsPerSegment:
|
|
340
|
+
isFinacialStrengthGraph: _,
|
|
341
|
+
outterArcRadius: R,
|
|
342
|
+
progressEndAngle: H,
|
|
343
|
+
totalAngularSpan: D,
|
|
344
|
+
unitsPerSegment: It
|
|
302
345
|
}
|
|
303
346
|
)
|
|
304
347
|
},
|
|
@@ -307,267 +350,267 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
307
350
|
stroke: "none"
|
|
308
351
|
}
|
|
309
352
|
},
|
|
310
|
-
width:
|
|
311
|
-
children: o >= d && o <=
|
|
353
|
+
width: I,
|
|
354
|
+
children: o >= d && o <= c && /* @__PURE__ */ t(
|
|
312
355
|
"circle",
|
|
313
356
|
{
|
|
314
|
-
cx:
|
|
315
|
-
cy:
|
|
316
|
-
fill:
|
|
317
|
-
r:
|
|
318
|
-
stroke:
|
|
319
|
-
strokeWidth:
|
|
357
|
+
cx: T + nt,
|
|
358
|
+
cy: G + Ot,
|
|
359
|
+
fill: g.palette.common.white,
|
|
360
|
+
r: st[n].markerSize,
|
|
361
|
+
stroke: _ ? "url(#arcGradient)" : i,
|
|
362
|
+
strokeWidth: n !== "SM" ? 3 : 1
|
|
320
363
|
}
|
|
321
364
|
)
|
|
322
365
|
}
|
|
323
366
|
),
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
|
|
367
|
+
/* @__PURE__ */ t(
|
|
368
|
+
C,
|
|
326
369
|
{
|
|
327
370
|
sx: {
|
|
328
371
|
position: "absolute",
|
|
329
|
-
top: `${
|
|
330
|
-
left: `${
|
|
372
|
+
top: `${G}px`,
|
|
373
|
+
left: `${T}px`,
|
|
331
374
|
transform: "translate(-50%, -50%)",
|
|
332
375
|
textAlign: "center"
|
|
333
376
|
},
|
|
334
|
-
children: /* @__PURE__ */
|
|
335
|
-
|
|
377
|
+
children: /* @__PURE__ */ p(
|
|
378
|
+
m,
|
|
336
379
|
{
|
|
337
380
|
spacing: 1,
|
|
338
|
-
sx: { alignItems: "center", justifyContent: "center", gap:
|
|
381
|
+
sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
|
|
339
382
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
|
|
383
|
+
/* @__PURE__ */ t(
|
|
384
|
+
f,
|
|
342
385
|
{
|
|
343
386
|
sx: {
|
|
344
|
-
fontSize:
|
|
345
|
-
lineHeight:
|
|
387
|
+
fontSize: st[n].healthScoreFontSize,
|
|
388
|
+
lineHeight: n !== "SM" ? "48px" : "100%"
|
|
346
389
|
},
|
|
347
390
|
variant: "H1",
|
|
348
391
|
children: o
|
|
349
392
|
}
|
|
350
393
|
),
|
|
351
|
-
|
|
394
|
+
n !== "SM" && /* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: a })
|
|
352
395
|
]
|
|
353
396
|
}
|
|
354
397
|
)
|
|
355
398
|
}
|
|
356
399
|
),
|
|
357
|
-
|
|
358
|
-
|
|
400
|
+
s !== void 0 && /* @__PURE__ */ t(
|
|
401
|
+
C,
|
|
359
402
|
{
|
|
360
403
|
sx: {
|
|
361
404
|
position: "absolute",
|
|
362
|
-
top: `${
|
|
363
|
-
left: `${
|
|
405
|
+
top: `${G * 2 * 0.83}px`,
|
|
406
|
+
left: `${T}px`,
|
|
364
407
|
transform: "translate(-50%, -50%)",
|
|
365
408
|
textAlign: "center"
|
|
366
409
|
},
|
|
367
|
-
children: typeof
|
|
368
|
-
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
|
|
410
|
+
children: typeof s == "number" ? /* @__PURE__ */ p(m, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
411
|
+
s > 0 ? /* @__PURE__ */ t(wt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ t(At, { size: 16, sx: { color: "text.secondary" } }),
|
|
412
|
+
/* @__PURE__ */ t(
|
|
413
|
+
f,
|
|
371
414
|
{
|
|
372
415
|
sx: {
|
|
373
416
|
fontWeight: 600,
|
|
374
|
-
color:
|
|
417
|
+
color: s > 0 ? "success.main" : "text.secondary"
|
|
375
418
|
},
|
|
376
419
|
variant: "body1",
|
|
377
|
-
children:
|
|
420
|
+
children: s
|
|
378
421
|
}
|
|
379
422
|
)
|
|
380
|
-
] }) : /* @__PURE__ */
|
|
423
|
+
] }) : /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "subtitle2", children: s })
|
|
381
424
|
}
|
|
382
425
|
),
|
|
383
|
-
|
|
384
|
-
|
|
426
|
+
l !== void 0 && /* @__PURE__ */ t(
|
|
427
|
+
C,
|
|
385
428
|
{
|
|
386
429
|
sx: {
|
|
387
430
|
position: "absolute",
|
|
388
|
-
top: `${
|
|
389
|
-
left: `${
|
|
431
|
+
top: `${G * 2 * 0.83}px`,
|
|
432
|
+
left: `${T - T / 2}px`,
|
|
390
433
|
// shift left from center
|
|
391
434
|
transform: "translate(-50%, -50%)",
|
|
392
435
|
textAlign: "left"
|
|
393
436
|
},
|
|
394
|
-
children: /* @__PURE__ */
|
|
437
|
+
children: /* @__PURE__ */ t(f, { variant: "body1", children: l })
|
|
395
438
|
}
|
|
396
439
|
),
|
|
397
|
-
|
|
398
|
-
|
|
440
|
+
u !== void 0 && /* @__PURE__ */ t(
|
|
441
|
+
C,
|
|
399
442
|
{
|
|
400
443
|
sx: {
|
|
401
444
|
position: "absolute",
|
|
402
|
-
top: `${
|
|
403
|
-
left: `${
|
|
445
|
+
top: `${G * 2 * 0.83}px`,
|
|
446
|
+
left: `${T + T / 2}px`,
|
|
404
447
|
transform: "translate(-50%, -50%)",
|
|
405
448
|
textAlign: "right"
|
|
406
449
|
},
|
|
407
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ t(f, { variant: "body1", children: u })
|
|
408
451
|
}
|
|
409
452
|
)
|
|
410
453
|
]
|
|
411
454
|
}
|
|
412
455
|
);
|
|
413
|
-
},
|
|
414
|
-
({ arcRadius:
|
|
456
|
+
}, vt = S(
|
|
457
|
+
({ arcRadius: e, size: o = "L", healthScore: n, footerCenterContent: r }) => {
|
|
415
458
|
const d = [
|
|
416
459
|
{ id: 1, label: "Group A", value: 25 },
|
|
417
460
|
{ id: 2, label: "Group B", value: 25 },
|
|
418
461
|
{ id: 3, label: "Group C", value: 25 },
|
|
419
462
|
{ id: 4, label: "Group D", value: 25 }
|
|
420
|
-
], { finstrong:
|
|
421
|
-
return /* @__PURE__ */
|
|
422
|
-
|
|
463
|
+
], { finstrong: c } = y(), i = at(n, c);
|
|
464
|
+
return /* @__PURE__ */ t(
|
|
465
|
+
Tt,
|
|
423
466
|
{
|
|
424
|
-
arcRadius:
|
|
467
|
+
arcRadius: e,
|
|
425
468
|
dialScoreData: d,
|
|
426
|
-
footerCenterContent: o === "L" ?
|
|
427
|
-
healthScore:
|
|
428
|
-
healthScoreStatus:
|
|
469
|
+
footerCenterContent: o === "L" ? c.footer_center_content_updated_just_now : r,
|
|
470
|
+
healthScore: n,
|
|
471
|
+
healthScoreStatus: i.status,
|
|
429
472
|
isFinacialStrengthGraph: !0,
|
|
430
473
|
size: o
|
|
431
474
|
}
|
|
432
475
|
);
|
|
433
476
|
}
|
|
434
|
-
),
|
|
477
|
+
), ao = S(
|
|
435
478
|
({
|
|
436
|
-
arcRadius:
|
|
479
|
+
arcRadius: e,
|
|
437
480
|
size: o = "L",
|
|
438
|
-
healthScore:
|
|
439
|
-
maxValue:
|
|
481
|
+
healthScore: n,
|
|
482
|
+
maxValue: r = 850,
|
|
440
483
|
minValue: d = 300,
|
|
441
|
-
footerCenterContent:
|
|
484
|
+
footerCenterContent: c
|
|
442
485
|
}) => {
|
|
443
|
-
const
|
|
486
|
+
const a = L().palette.mode === "dark", s = [
|
|
444
487
|
{
|
|
445
488
|
id: 1,
|
|
446
489
|
label: "Poor",
|
|
447
490
|
value: 279,
|
|
448
|
-
color:
|
|
491
|
+
color: a ? M.POOR : A.POOR
|
|
449
492
|
},
|
|
450
493
|
{
|
|
451
494
|
id: 2,
|
|
452
495
|
label: "Fair",
|
|
453
496
|
value: 89,
|
|
454
|
-
color:
|
|
497
|
+
color: a ? M.FAIR : A.FAIR
|
|
455
498
|
},
|
|
456
499
|
{
|
|
457
500
|
id: 3,
|
|
458
501
|
label: "Good",
|
|
459
502
|
value: 69,
|
|
460
|
-
color:
|
|
503
|
+
color: a ? M.GOOD : A.GOOD
|
|
461
504
|
},
|
|
462
505
|
{
|
|
463
506
|
id: 4,
|
|
464
507
|
label: "Very Good",
|
|
465
508
|
value: 59,
|
|
466
|
-
color:
|
|
509
|
+
color: a ? M.VERY_GOOD : A.VERY_GOOD
|
|
467
510
|
},
|
|
468
511
|
{
|
|
469
512
|
id: 5,
|
|
470
513
|
label: "Exceptional",
|
|
471
514
|
value: 50,
|
|
472
|
-
color:
|
|
515
|
+
color: a ? M.EXCEPTIONAL : A.EXCEPTIONAL
|
|
473
516
|
}
|
|
474
|
-
], { finstrong:
|
|
475
|
-
if (!
|
|
476
|
-
const { status:
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
517
|
+
], { finstrong: l } = y(), { isCopyLoaded: u } = N();
|
|
518
|
+
if (!u) return /* @__PURE__ */ t(K, {});
|
|
519
|
+
const { status: _, color: g = "none" } = be(
|
|
520
|
+
n,
|
|
521
|
+
a,
|
|
522
|
+
l.credit_score_status
|
|
480
523
|
);
|
|
481
|
-
return /* @__PURE__ */
|
|
482
|
-
|
|
524
|
+
return /* @__PURE__ */ t(
|
|
525
|
+
Tt,
|
|
483
526
|
{
|
|
484
|
-
arcRadius:
|
|
485
|
-
dialScoreData:
|
|
486
|
-
footerCenterContent:
|
|
527
|
+
arcRadius: e,
|
|
528
|
+
dialScoreData: s,
|
|
529
|
+
footerCenterContent: c,
|
|
487
530
|
footerLeftContent: d,
|
|
488
|
-
footerRightContent:
|
|
489
|
-
healthScore:
|
|
490
|
-
healthScoreStatus:
|
|
491
|
-
markerColor:
|
|
492
|
-
maxValue:
|
|
531
|
+
footerRightContent: r,
|
|
532
|
+
healthScore: n,
|
|
533
|
+
healthScoreStatus: _,
|
|
534
|
+
markerColor: g,
|
|
535
|
+
maxValue: r,
|
|
493
536
|
minValue: d,
|
|
494
537
|
size: o
|
|
495
538
|
}
|
|
496
539
|
);
|
|
497
540
|
}
|
|
498
|
-
),
|
|
499
|
-
isDashboard:
|
|
541
|
+
), tt = ({
|
|
542
|
+
isDashboard: e = !1,
|
|
500
543
|
hasIcon: o = !0,
|
|
501
|
-
buttonText:
|
|
502
|
-
title:
|
|
544
|
+
buttonText: n,
|
|
545
|
+
title: r,
|
|
503
546
|
description: d,
|
|
504
|
-
sx:
|
|
547
|
+
sx: c
|
|
505
548
|
}) => {
|
|
506
|
-
const [
|
|
507
|
-
return /* @__PURE__ */
|
|
508
|
-
|
|
549
|
+
const [i, a] = b.useState(!1), { connect: s, finstrong: l } = y();
|
|
550
|
+
return /* @__PURE__ */ p(
|
|
551
|
+
j,
|
|
509
552
|
{
|
|
510
553
|
sx: {
|
|
511
554
|
pb: 24,
|
|
512
555
|
pt: 18,
|
|
513
556
|
px: 24,
|
|
514
557
|
width: "100%",
|
|
515
|
-
...
|
|
558
|
+
...c
|
|
516
559
|
},
|
|
517
560
|
children: [
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
|
|
561
|
+
/* @__PURE__ */ p(
|
|
562
|
+
m,
|
|
520
563
|
{
|
|
521
564
|
sx: {
|
|
522
565
|
gap: 8,
|
|
523
|
-
...
|
|
566
|
+
...e && { flexDirection: "row", alignItems: "center" }
|
|
524
567
|
},
|
|
525
568
|
children: [
|
|
526
|
-
o && /* @__PURE__ */
|
|
527
|
-
/* @__PURE__ */
|
|
569
|
+
o && /* @__PURE__ */ t(mt, { sx: { height: 20, width: 20 } }),
|
|
570
|
+
/* @__PURE__ */ t(E, { className: "connect-more-accounts-title", sx: { ...e && { fontSize: 15 } }, children: r || l.connect_more_accounts_title })
|
|
528
571
|
]
|
|
529
572
|
}
|
|
530
573
|
),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
|
|
574
|
+
/* @__PURE__ */ t(
|
|
575
|
+
f,
|
|
533
576
|
{
|
|
534
577
|
className: "connect-more-accounts-description",
|
|
535
578
|
sx: { color: "text.secondary", mt: 8 },
|
|
536
579
|
variant: "subtitle1",
|
|
537
|
-
children: d ||
|
|
580
|
+
children: d || l.connect_more_accounts_description
|
|
538
581
|
}
|
|
539
582
|
),
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
|
|
583
|
+
/* @__PURE__ */ t(
|
|
584
|
+
Z,
|
|
542
585
|
{
|
|
543
|
-
endIcon: /* @__PURE__ */
|
|
544
|
-
onClick: () =>
|
|
586
|
+
endIcon: /* @__PURE__ */ t(Y, {}),
|
|
587
|
+
onClick: () => a(!0),
|
|
545
588
|
size: "small",
|
|
546
589
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
547
|
-
children: /* @__PURE__ */
|
|
590
|
+
children: /* @__PURE__ */ t(W, { sx: { fontWeight: 600 }, variant: "body2", children: n || l.connect_more_accounts_button })
|
|
548
591
|
}
|
|
549
592
|
),
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
|
|
593
|
+
/* @__PURE__ */ t(
|
|
594
|
+
Ct,
|
|
552
595
|
{
|
|
553
|
-
onClose: () =>
|
|
554
|
-
showConnectWidget:
|
|
555
|
-
title:
|
|
596
|
+
onClose: () => a(!1),
|
|
597
|
+
showConnectWidget: i,
|
|
598
|
+
title: s.mini_title
|
|
556
599
|
}
|
|
557
600
|
)
|
|
558
601
|
]
|
|
559
602
|
}
|
|
560
603
|
);
|
|
561
|
-
},
|
|
562
|
-
const
|
|
563
|
-
return !d || !
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
|
|
604
|
+
}, Re = S(() => {
|
|
605
|
+
const e = L(), [o, { width: n }] = Zt(), { finstrong: r } = y(), { isCopyLoaded: d, isInitialized: c } = N(), { healthScore: i, healthScoreChange: a } = $(), s = e.palette.mode === "dark", l = at(i?.health_score, r);
|
|
606
|
+
return !d || !c ? /* @__PURE__ */ t(K, {}) : /* @__PURE__ */ p(j, { ref: o, sx: { p: 16 }, children: [
|
|
607
|
+
/* @__PURE__ */ t(
|
|
608
|
+
Qt,
|
|
566
609
|
{
|
|
567
|
-
action: /* @__PURE__ */
|
|
568
|
-
|
|
610
|
+
action: /* @__PURE__ */ t(
|
|
611
|
+
Z,
|
|
569
612
|
{
|
|
570
|
-
endIcon: /* @__PURE__ */
|
|
613
|
+
endIcon: /* @__PURE__ */ t(Y, {}),
|
|
571
614
|
sx: {
|
|
572
615
|
fontSize: 13,
|
|
573
616
|
lineHeight: "16px",
|
|
@@ -575,10 +618,10 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
575
618
|
color: "primary.main"
|
|
576
619
|
},
|
|
577
620
|
variant: "text",
|
|
578
|
-
children:
|
|
621
|
+
children: r.financial_strength_header_action
|
|
579
622
|
}
|
|
580
623
|
),
|
|
581
|
-
subheader: /* @__PURE__ */
|
|
624
|
+
subheader: /* @__PURE__ */ t(E, { color: "text.primary", children: r.financial_strength_header }),
|
|
582
625
|
sx: {
|
|
583
626
|
p: 0,
|
|
584
627
|
"& .MuiCardHeader-content": {
|
|
@@ -587,21 +630,21 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
587
630
|
}
|
|
588
631
|
}
|
|
589
632
|
),
|
|
590
|
-
/* @__PURE__ */
|
|
591
|
-
|
|
633
|
+
/* @__PURE__ */ t(m, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(
|
|
634
|
+
vt,
|
|
592
635
|
{
|
|
593
|
-
arcRadius:
|
|
594
|
-
footerCenterContent:
|
|
595
|
-
healthScore:
|
|
596
|
-
size:
|
|
636
|
+
arcRadius: n <= 323 ? 73 : 154,
|
|
637
|
+
footerCenterContent: a,
|
|
638
|
+
healthScore: i?.health_score || 0,
|
|
639
|
+
size: n <= 323 ? "M" : "L"
|
|
597
640
|
}
|
|
598
641
|
) }),
|
|
599
|
-
|
|
600
|
-
|
|
642
|
+
i?.health_score ? /* @__PURE__ */ p(
|
|
643
|
+
Vt,
|
|
601
644
|
{
|
|
602
645
|
sx: {
|
|
603
646
|
px: 16,
|
|
604
|
-
backgroundColor:
|
|
647
|
+
backgroundColor: s ? "grey.800" : "grey.50",
|
|
605
648
|
//TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
|
|
606
649
|
"&.Mui-expanded": {
|
|
607
650
|
m: 0
|
|
@@ -611,10 +654,10 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
611
654
|
}
|
|
612
655
|
},
|
|
613
656
|
children: [
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
|
|
657
|
+
/* @__PURE__ */ t(
|
|
658
|
+
Jt,
|
|
616
659
|
{
|
|
617
|
-
expandIcon: /* @__PURE__ */
|
|
660
|
+
expandIcon: /* @__PURE__ */ t(Gt, { size: 20 }),
|
|
618
661
|
sx: {
|
|
619
662
|
height: 52,
|
|
620
663
|
p: 0,
|
|
@@ -622,21 +665,21 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
622
665
|
minHeight: 0
|
|
623
666
|
}
|
|
624
667
|
},
|
|
625
|
-
children: /* @__PURE__ */
|
|
668
|
+
children: /* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: "body1", children: r.accordion_title_text })
|
|
626
669
|
}
|
|
627
670
|
),
|
|
628
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ t(qt, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ t(f, { variant: "subtitle1", children: l.scoreContent }) })
|
|
629
672
|
]
|
|
630
673
|
}
|
|
631
|
-
) : /* @__PURE__ */
|
|
632
|
-
|
|
674
|
+
) : /* @__PURE__ */ t(
|
|
675
|
+
tt,
|
|
633
676
|
{
|
|
634
|
-
buttonText:
|
|
635
|
-
description:
|
|
677
|
+
buttonText: r.connect_more_accounts_title,
|
|
678
|
+
description: r.health_score_zero_description,
|
|
636
679
|
hasIcon: !1,
|
|
637
680
|
isDashboard: !0,
|
|
638
681
|
sx: {
|
|
639
|
-
backgroundColor:
|
|
682
|
+
backgroundColor: s ? "grey.800" : "grey.50",
|
|
640
683
|
//TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
|
|
641
684
|
".connect-more-accounts-title": {
|
|
642
685
|
fontWeight: 600,
|
|
@@ -645,78 +688,78 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
645
688
|
},
|
|
646
689
|
".connect-more-accounts-description": { color: "text.primary" }
|
|
647
690
|
},
|
|
648
|
-
title:
|
|
691
|
+
title: r.health_score_zero_title
|
|
649
692
|
}
|
|
650
693
|
)
|
|
651
694
|
] });
|
|
652
|
-
}),
|
|
653
|
-
const { common:
|
|
654
|
-
o(), setTimeout(() =>
|
|
655
|
-
},
|
|
656
|
-
!
|
|
695
|
+
}), Ge = ({ isOpen: e, onClose: o }) => {
|
|
696
|
+
const { common: n, finstrong: r } = y(), { isMobile: d } = xt(), { updateUser: c, user: i } = Q(), [a, s] = b.useState(i.credit_score || 0), l = !isNaN(a), u = () => {
|
|
697
|
+
o(), setTimeout(() => s(i.credit_score || 0), 300);
|
|
698
|
+
}, _ = () => {
|
|
699
|
+
!a || a === i.credit_score || c({ ...i, credit_score: a });
|
|
657
700
|
};
|
|
658
|
-
return /* @__PURE__ */
|
|
659
|
-
|
|
701
|
+
return /* @__PURE__ */ t(
|
|
702
|
+
oe,
|
|
660
703
|
{
|
|
661
|
-
copy: { close_aria:
|
|
662
|
-
disablePrimaryButton: !
|
|
663
|
-
isOpen:
|
|
704
|
+
copy: { close_aria: n.close_aria, title: r.edit_credit_score },
|
|
705
|
+
disablePrimaryButton: !a || !l,
|
|
706
|
+
isOpen: e,
|
|
664
707
|
maxWidth: "xs",
|
|
665
|
-
onClose:
|
|
666
|
-
onPrimaryAction:
|
|
708
|
+
onClose: u,
|
|
709
|
+
onPrimaryAction: _,
|
|
667
710
|
primaryColor: "primary",
|
|
668
|
-
primaryText:
|
|
711
|
+
primaryText: n.save_button,
|
|
669
712
|
sx: {
|
|
670
713
|
"& .MuiDialog-paper": {
|
|
671
714
|
minWidth: d ? "100%" : 400
|
|
672
715
|
}
|
|
673
716
|
},
|
|
674
|
-
children: /* @__PURE__ */
|
|
675
|
-
|
|
717
|
+
children: /* @__PURE__ */ t(
|
|
718
|
+
ne,
|
|
676
719
|
{
|
|
677
|
-
error: !
|
|
720
|
+
error: !l,
|
|
678
721
|
fullWidth: !0,
|
|
679
722
|
inputMode: "numeric",
|
|
680
723
|
inputProps: {
|
|
681
724
|
noValidate: !0,
|
|
682
725
|
pattern: "[0-9]*"
|
|
683
726
|
},
|
|
684
|
-
onChange: (
|
|
685
|
-
value:
|
|
727
|
+
onChange: (g) => s(Number(g.target.value)),
|
|
728
|
+
value: l ? a : ""
|
|
686
729
|
}
|
|
687
730
|
)
|
|
688
731
|
}
|
|
689
732
|
);
|
|
690
|
-
},
|
|
691
|
-
const { finstrong:
|
|
692
|
-
|
|
733
|
+
}, Pe = S(Ge), Le = ({ isOpen: e, onClose: o }) => {
|
|
734
|
+
const { finstrong: n } = y(), r = L(), { updateUser: d, user: c } = Q(), [i, a] = b.useState(c.birthday), s = (u) => {
|
|
735
|
+
a(Math.floor(new Date(u).getTime() / 1e3));
|
|
693
736
|
};
|
|
694
|
-
return /* @__PURE__ */
|
|
695
|
-
|
|
737
|
+
return /* @__PURE__ */ t(
|
|
738
|
+
q,
|
|
696
739
|
{
|
|
697
|
-
isOpen:
|
|
740
|
+
isOpen: e,
|
|
698
741
|
onClose: o,
|
|
699
742
|
onPrimaryAction: () => {
|
|
700
|
-
!
|
|
743
|
+
!i || i === c.birthday || (d({ ...c, birthday: i }), o());
|
|
701
744
|
},
|
|
702
745
|
onSecondaryAction: o,
|
|
703
|
-
title:
|
|
704
|
-
children: /* @__PURE__ */
|
|
705
|
-
|
|
746
|
+
title: n.date_of_birth,
|
|
747
|
+
children: /* @__PURE__ */ t(ae, { dateAdapter: re, children: /* @__PURE__ */ t(
|
|
748
|
+
ie,
|
|
706
749
|
{
|
|
707
750
|
disableFuture: !0,
|
|
708
|
-
onChange:
|
|
751
|
+
onChange: s,
|
|
709
752
|
slotProps: {
|
|
710
753
|
nextIconButton: {
|
|
711
754
|
sx: {
|
|
712
755
|
color: "primary.main",
|
|
713
|
-
"&:hover": { bgcolor:
|
|
756
|
+
"&:hover": { bgcolor: ot(r.palette.primary.light, 0.1) }
|
|
714
757
|
}
|
|
715
758
|
},
|
|
716
759
|
previousIconButton: {
|
|
717
760
|
sx: {
|
|
718
761
|
color: "primary.main",
|
|
719
|
-
"&:hover": { bgcolor:
|
|
762
|
+
"&:hover": { bgcolor: ot(r.palette.primary.light, 0.1) }
|
|
720
763
|
}
|
|
721
764
|
}
|
|
722
765
|
},
|
|
@@ -728,502 +771,693 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
728
771
|
width: "100%",
|
|
729
772
|
"& .MuiIconButton-edgeEnd": {
|
|
730
773
|
color: "primary.main",
|
|
731
|
-
"&:hover": { bgcolor:
|
|
774
|
+
"&:hover": { bgcolor: ot(r.palette.primary.light, 0.1) }
|
|
732
775
|
}
|
|
733
776
|
},
|
|
734
|
-
value:
|
|
777
|
+
value: i ? new Date(i * 1e3) : /* @__PURE__ */ new Date()
|
|
735
778
|
}
|
|
736
779
|
) })
|
|
737
780
|
}
|
|
738
781
|
);
|
|
739
|
-
},
|
|
740
|
-
/* @__PURE__ */
|
|
741
|
-
|
|
782
|
+
}, Ee = S(Le), Be = ({ value: e, completeCopy: o }) => /* @__PURE__ */ p(m, { sx: { gap: 8 }, children: [
|
|
783
|
+
/* @__PURE__ */ t(m, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ t(
|
|
784
|
+
C,
|
|
742
785
|
{
|
|
743
786
|
sx: {
|
|
744
|
-
bgcolor:
|
|
787
|
+
bgcolor: r < e ? "primary.main" : "neutral.light",
|
|
745
788
|
borderRadius: "24px",
|
|
746
789
|
height: 4,
|
|
747
790
|
width: "100%"
|
|
748
791
|
}
|
|
749
792
|
},
|
|
750
|
-
|
|
793
|
+
r
|
|
751
794
|
)) }),
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
|
|
795
|
+
/* @__PURE__ */ p(W, { sx: { color: "text.secondary" }, variant: "body2", children: [
|
|
796
|
+
e / 4 * 100,
|
|
754
797
|
"% ",
|
|
755
798
|
o
|
|
756
799
|
] })
|
|
757
|
-
] }),
|
|
758
|
-
const { visibleFinstrongAccounts:
|
|
800
|
+
] }), He = ({ isOpen: e, onClose: o }) => {
|
|
801
|
+
const { visibleFinstrongAccounts: n } = yt(), { incomeBudget: r } = St(), {
|
|
759
802
|
accounts: d,
|
|
760
|
-
common:
|
|
761
|
-
finstrong:
|
|
762
|
-
} =
|
|
803
|
+
common: c,
|
|
804
|
+
finstrong: i
|
|
805
|
+
} = y(), { user: a } = Q(), [s, l] = b.useState(null), _ = [
|
|
763
806
|
{
|
|
764
|
-
dynamicCopy:
|
|
765
|
-
fallbackLabel:
|
|
766
|
-
icon: /* @__PURE__ */
|
|
767
|
-
key:
|
|
768
|
-
label:
|
|
769
|
-
value:
|
|
807
|
+
dynamicCopy: i.add_profile_item,
|
|
808
|
+
fallbackLabel: i.monthly_income,
|
|
809
|
+
icon: /* @__PURE__ */ t(Pt, {}),
|
|
810
|
+
key: v.MonthlyIncome,
|
|
811
|
+
label: i.monthly_income,
|
|
812
|
+
value: r
|
|
770
813
|
},
|
|
771
814
|
{
|
|
772
|
-
dynamicCopy:
|
|
773
|
-
fallbackLabel:
|
|
774
|
-
icon: /* @__PURE__ */
|
|
775
|
-
key:
|
|
776
|
-
label:
|
|
777
|
-
value:
|
|
815
|
+
dynamicCopy: i.add_profile_item,
|
|
816
|
+
fallbackLabel: i.date_of_birth,
|
|
817
|
+
icon: /* @__PURE__ */ t(Lt, {}),
|
|
818
|
+
key: v.DateOfBirth,
|
|
819
|
+
label: i.date_of_birth,
|
|
820
|
+
value: a.birthday
|
|
778
821
|
},
|
|
779
822
|
{
|
|
780
|
-
dynamicCopy:
|
|
781
|
-
fallbackLabel:
|
|
782
|
-
icon: /* @__PURE__ */
|
|
783
|
-
key:
|
|
784
|
-
label:
|
|
785
|
-
value:
|
|
823
|
+
dynamicCopy: i.add_profile_item,
|
|
824
|
+
fallbackLabel: i.credit_score,
|
|
825
|
+
icon: /* @__PURE__ */ t(_t, {}),
|
|
826
|
+
key: v.CreditScore,
|
|
827
|
+
label: i.credit_score,
|
|
828
|
+
value: a.credit_score
|
|
786
829
|
},
|
|
787
830
|
{
|
|
788
|
-
fallbackLabel:
|
|
789
|
-
icon: /* @__PURE__ */
|
|
790
|
-
key:
|
|
791
|
-
label:
|
|
792
|
-
value:
|
|
793
|
-
|
|
794
|
-
String(
|
|
795
|
-
|
|
831
|
+
fallbackLabel: i.connect_your_accounts,
|
|
832
|
+
icon: /* @__PURE__ */ t(mt, {}),
|
|
833
|
+
key: v.Connections,
|
|
834
|
+
label: i.connections,
|
|
835
|
+
value: n.length > 0 ? O(
|
|
836
|
+
i.connected_account,
|
|
837
|
+
String(n.length),
|
|
838
|
+
n.length > 1 ? i.accounts : i.account
|
|
796
839
|
) : void 0
|
|
797
840
|
}
|
|
798
|
-
].map((
|
|
799
|
-
return /* @__PURE__ */
|
|
800
|
-
/* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */
|
|
803
|
-
/* @__PURE__ */
|
|
841
|
+
].map((g) => ve(g));
|
|
842
|
+
return /* @__PURE__ */ p(q, { isOpen: e, onClose: o, title: i.financial_profile, children: [
|
|
843
|
+
/* @__PURE__ */ p(m, { sx: { gap: 20, p: 24 }, children: [
|
|
844
|
+
/* @__PURE__ */ p(m, { sx: { gap: 8 }, children: [
|
|
845
|
+
/* @__PURE__ */ t(E, { children: i.your_financial_profile }),
|
|
846
|
+
/* @__PURE__ */ t(f, { children: i.financial_profile_description })
|
|
804
847
|
] }),
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
|
|
848
|
+
/* @__PURE__ */ t(
|
|
849
|
+
Be,
|
|
807
850
|
{
|
|
808
|
-
completeCopy:
|
|
809
|
-
value:
|
|
851
|
+
completeCopy: i.complete,
|
|
852
|
+
value: _.reduce((g, h) => g + (h.isComplete ? 1 : 0), 0)
|
|
810
853
|
}
|
|
811
854
|
)
|
|
812
855
|
] }),
|
|
813
|
-
/* @__PURE__ */
|
|
814
|
-
/* @__PURE__ */
|
|
815
|
-
|
|
856
|
+
/* @__PURE__ */ t(Se, { list: _, onClickItem: l }),
|
|
857
|
+
/* @__PURE__ */ t(C, { sx: { p: 24 }, children: /* @__PURE__ */ t(
|
|
858
|
+
tt,
|
|
816
859
|
{
|
|
817
|
-
description:
|
|
860
|
+
description: i.connect_more_accounts_to_view_more_accurate_financial_picture,
|
|
818
861
|
isDashboard: !0,
|
|
819
|
-
title:
|
|
862
|
+
title: i.dont_see_all_your_accounts
|
|
820
863
|
}
|
|
821
864
|
) }),
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
|
|
865
|
+
/* @__PURE__ */ t(
|
|
866
|
+
q,
|
|
824
867
|
{
|
|
825
|
-
isOpen:
|
|
826
|
-
onClose: () =>
|
|
827
|
-
title:
|
|
828
|
-
children: /* @__PURE__ */
|
|
868
|
+
isOpen: s === v.MonthlyIncome,
|
|
869
|
+
onClose: () => l(null),
|
|
870
|
+
title: c.settings,
|
|
871
|
+
children: /* @__PURE__ */ t(ee, {})
|
|
829
872
|
}
|
|
830
873
|
),
|
|
831
|
-
/* @__PURE__ */
|
|
832
|
-
/* @__PURE__ */
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
|
|
874
|
+
/* @__PURE__ */ t(Ee, { isOpen: s === v.DateOfBirth, onClose: () => l(null) }),
|
|
875
|
+
/* @__PURE__ */ t(Pe, { isOpen: s === v.CreditScore, onClose: () => l(null) }),
|
|
876
|
+
/* @__PURE__ */ t(
|
|
877
|
+
te,
|
|
835
878
|
{
|
|
836
|
-
onClose: () =>
|
|
837
|
-
showConnectionsWidget:
|
|
879
|
+
onClose: () => l(null),
|
|
880
|
+
showConnectionsWidget: s === v.Connections,
|
|
838
881
|
title: d.manage_connections
|
|
839
882
|
}
|
|
840
883
|
)
|
|
841
884
|
] });
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
},
|
|
855
|
-
emergencySavings: {
|
|
856
|
-
poor: 750,
|
|
857
|
-
good: 1e3
|
|
858
|
-
},
|
|
859
|
-
spendToIncomeRatio: {
|
|
860
|
-
poor: 110,
|
|
861
|
-
good: 100
|
|
862
|
-
}
|
|
863
|
-
}, f = {
|
|
864
|
-
GOOD: "Good",
|
|
865
|
-
FAIR: "Fair",
|
|
866
|
-
OFF_TRACK: "Off Track",
|
|
867
|
-
MISSING: "Missing"
|
|
868
|
-
}, B = ({
|
|
869
|
-
title: n,
|
|
870
|
-
description: o,
|
|
871
|
-
cardState: t = f.MISSING,
|
|
872
|
-
stateTitle: i
|
|
885
|
+
}, We = S(He);
|
|
886
|
+
var P = /* @__PURE__ */ ((e) => (e.SpendLessThanYouMake = "spendLessThanYouMake", e.PayBillsOnTime = "payBillsOnTime", e.SaveEnoughToLiveOn = "saveEnoughToLiveOn", e.MaintainEmergencySavings = "maintainEmergencySavings", e.HaveManageableDebt = "haveManageableDebt", e.HaveAGoodCreditScore = "haveAGoodCreditScore", e))(P || {});
|
|
887
|
+
const ze = ({
|
|
888
|
+
additionalContent: e,
|
|
889
|
+
children: o,
|
|
890
|
+
description: n,
|
|
891
|
+
drawerTitle: r,
|
|
892
|
+
isOpen: d,
|
|
893
|
+
loadConnectAccountsCard: c = !0,
|
|
894
|
+
onClose: i,
|
|
895
|
+
stickyComponent: a,
|
|
896
|
+
title: s
|
|
873
897
|
}) => {
|
|
874
|
-
const
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
898
|
+
const { finstrong: l } = y(), { isCopyLoaded: u } = N();
|
|
899
|
+
return u ? /* @__PURE__ */ p(q, { isOpen: d, onClose: i, title: r || l.key_indicators, children: [
|
|
900
|
+
(s || n) && /* @__PURE__ */ p(m, { sx: { p: 24, pb: 0, gap: 8, backgroundColor: "background.paper" }, children: [
|
|
901
|
+
s && /* @__PURE__ */ t(E, { children: s }),
|
|
902
|
+
n && /* @__PURE__ */ t(f, { children: n })
|
|
903
|
+
] }),
|
|
904
|
+
a && /* @__PURE__ */ t(
|
|
905
|
+
C,
|
|
906
|
+
{
|
|
907
|
+
sx: {
|
|
908
|
+
position: "sticky",
|
|
909
|
+
top: 0,
|
|
910
|
+
zIndex: 1
|
|
911
|
+
},
|
|
912
|
+
children: a
|
|
913
|
+
}
|
|
914
|
+
),
|
|
915
|
+
e && /* @__PURE__ */ t(C, { children: e }),
|
|
916
|
+
/* @__PURE__ */ t(ft, {}),
|
|
917
|
+
/* @__PURE__ */ p(m, { sx: { p: 24, gap: 24 }, children: [
|
|
918
|
+
o,
|
|
919
|
+
c && /* @__PURE__ */ t(
|
|
920
|
+
tt,
|
|
921
|
+
{
|
|
922
|
+
isDashboard: !0,
|
|
923
|
+
sx: { backgroundColor: "background.paper" }
|
|
924
|
+
}
|
|
925
|
+
)
|
|
926
|
+
] })
|
|
927
|
+
] }) : /* @__PURE__ */ t(K, {});
|
|
928
|
+
}, kt = S(ze), Ne = () => {
|
|
929
|
+
const {
|
|
930
|
+
finstrong: {
|
|
931
|
+
key_indicators_spend: { pay_bills_on_time_drawer: e }
|
|
932
|
+
}
|
|
933
|
+
} = y();
|
|
934
|
+
return /* @__PURE__ */ p(
|
|
935
|
+
j,
|
|
882
936
|
{
|
|
883
|
-
alignItems: "center",
|
|
884
|
-
flexDirection: "row",
|
|
885
|
-
gap: 12,
|
|
886
|
-
justifyContent: "space-between",
|
|
887
937
|
sx: {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
938
|
+
px: 24,
|
|
939
|
+
pt: 32,
|
|
940
|
+
pb: 48,
|
|
941
|
+
width: "100%",
|
|
942
|
+
textAlign: "center",
|
|
943
|
+
backgroundColor: "background.paper"
|
|
892
944
|
},
|
|
893
945
|
children: [
|
|
894
|
-
/* @__PURE__ */
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
{
|
|
900
|
-
sx: {
|
|
901
|
-
borderRadius: 3,
|
|
902
|
-
backgroundColor: d.backgroundColor,
|
|
903
|
-
px: 8,
|
|
904
|
-
py: 2,
|
|
905
|
-
height: 16
|
|
906
|
-
},
|
|
907
|
-
children: /* @__PURE__ */ e(y, { fontWeight: 700, sx: { minHeight: 12 }, uppercase: !0, variant: "tiny", children: i })
|
|
908
|
-
}
|
|
909
|
-
)
|
|
910
|
-
] }),
|
|
911
|
-
/* @__PURE__ */ e(y, { color: "secondary", variant: "subtitle2", children: o })
|
|
912
|
-
] }),
|
|
913
|
-
/* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(he, { color: "secondary", name: "chevron_right", size: 24 }) })
|
|
946
|
+
/* @__PURE__ */ t(Et, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
947
|
+
/* @__PURE__ */ p(m, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
948
|
+
/* @__PURE__ */ t(E, { children: e.pay_bills_on_time_zero_fees_title }),
|
|
949
|
+
/* @__PURE__ */ t(f, { variant: "subtitle1", children: e.pay_bills_on_time_zero_fees_description })
|
|
950
|
+
] })
|
|
914
951
|
]
|
|
915
952
|
}
|
|
916
953
|
);
|
|
917
|
-
},
|
|
918
|
-
const {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
954
|
+
}, $e = S(Ne), Ke = () => {
|
|
955
|
+
const {
|
|
956
|
+
finstrong: {
|
|
957
|
+
key_indicators_spend: { pay_bills_on_time_drawer: e }
|
|
958
|
+
}
|
|
959
|
+
} = y();
|
|
960
|
+
return /* @__PURE__ */ p(m, { sx: { p: 24, backgroundColor: "background.paper" }, children: [
|
|
961
|
+
/* @__PURE__ */ t(f, { variant: "body2", children: e.pay_bills_on_time_sticky_description }),
|
|
962
|
+
/* @__PURE__ */ p(m, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
963
|
+
/* @__PURE__ */ t(zt, { children: e.pay_bills_on_time_sticky_fee_count }),
|
|
964
|
+
/* @__PURE__ */ t(
|
|
965
|
+
ce,
|
|
966
|
+
{
|
|
967
|
+
label: /* @__PURE__ */ t(f, { fontWeight: 700, sx: { minHeight: 12 }, uppercase: !0, variant: "tiny", children: "Good" }),
|
|
968
|
+
size: "small",
|
|
969
|
+
sx: { backgroundColor: "green", height: 16 }
|
|
970
|
+
}
|
|
971
|
+
)
|
|
972
|
+
] })
|
|
973
|
+
] });
|
|
974
|
+
}, Xe = S(Ke), Ye = ({
|
|
975
|
+
drawerFor: e,
|
|
976
|
+
isOpen: o,
|
|
977
|
+
onClose: n
|
|
978
|
+
}) => {
|
|
979
|
+
const { finstrong: r } = y(), c = {
|
|
980
|
+
spendLessThanYouMake: {
|
|
981
|
+
title: "",
|
|
982
|
+
description: "",
|
|
983
|
+
stickyComponent: null,
|
|
984
|
+
content: null
|
|
985
|
+
},
|
|
986
|
+
payBillsOnTime: {
|
|
987
|
+
title: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
|
|
988
|
+
description: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
|
|
989
|
+
stickyComponent: /* @__PURE__ */ t(Xe, {}),
|
|
990
|
+
content: /* @__PURE__ */ t($e, {})
|
|
991
|
+
},
|
|
992
|
+
maintainEmergencySavings: {
|
|
993
|
+
title: "",
|
|
994
|
+
description: "",
|
|
995
|
+
stickyComponent: null,
|
|
996
|
+
content: null
|
|
997
|
+
},
|
|
998
|
+
haveManageableDebt: {
|
|
999
|
+
title: "",
|
|
1000
|
+
description: "",
|
|
1001
|
+
stickyComponent: null,
|
|
1002
|
+
content: null
|
|
1003
|
+
},
|
|
1004
|
+
haveAGoodCreditScore: {
|
|
1005
|
+
title: "",
|
|
1006
|
+
description: "",
|
|
1007
|
+
stickyComponent: null,
|
|
1008
|
+
content: null
|
|
1009
|
+
},
|
|
1010
|
+
saveEnoughToLiveOn: {
|
|
1011
|
+
title: "",
|
|
1012
|
+
description: "",
|
|
1013
|
+
stickyComponent: null,
|
|
1014
|
+
content: null
|
|
1015
|
+
}
|
|
1016
|
+
}[e];
|
|
1017
|
+
return /* @__PURE__ */ t(
|
|
1018
|
+
kt,
|
|
1019
|
+
{
|
|
1020
|
+
description: c?.description,
|
|
1021
|
+
drawerTitle: r.key_indicators,
|
|
1022
|
+
isOpen: o,
|
|
1023
|
+
loadConnectAccountsCard: !0,
|
|
1024
|
+
onClose: n,
|
|
1025
|
+
stickyComponent: c.stickyComponent,
|
|
1026
|
+
title: c.title,
|
|
1027
|
+
children: /* @__PURE__ */ t(m, { sx: { gap: 16 }, children: c.content })
|
|
1028
|
+
}
|
|
1029
|
+
);
|
|
1030
|
+
}, je = S(Ye), z = ({
|
|
1031
|
+
drawerFor: e,
|
|
1032
|
+
title: o,
|
|
1033
|
+
description: n,
|
|
1034
|
+
cardState: r = k.MISSING,
|
|
1035
|
+
stateTitle: d
|
|
1036
|
+
}) => {
|
|
1037
|
+
const c = {
|
|
1038
|
+
[k.GOOD]: { backgroundColor: "success.lighter", color: "success.main" },
|
|
1039
|
+
[k.FAIR]: { backgroundColor: "warning.lighter", color: "warning.main" },
|
|
1040
|
+
[k.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.main" },
|
|
1041
|
+
[k.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
|
1042
|
+
}[r], [i, a] = b.useState(!1);
|
|
1043
|
+
return /* @__PURE__ */ p(J, { children: [
|
|
1044
|
+
/* @__PURE__ */ p(
|
|
1045
|
+
m,
|
|
1046
|
+
{
|
|
1047
|
+
alignItems: "center",
|
|
1048
|
+
flexDirection: "row",
|
|
1049
|
+
gap: 12,
|
|
1050
|
+
justifyContent: "space-between",
|
|
1051
|
+
onClick: () => a(!0),
|
|
1052
|
+
sx: {
|
|
1053
|
+
p: 16,
|
|
1054
|
+
border: "1px solid",
|
|
1055
|
+
borderColor: "divider",
|
|
1056
|
+
borderRadius: 2,
|
|
1057
|
+
cursor: "pointer"
|
|
1058
|
+
},
|
|
1059
|
+
children: [
|
|
1060
|
+
/* @__PURE__ */ p(C, { sx: { minHeight: 48 }, children: [
|
|
1061
|
+
/* @__PURE__ */ p(m, { flexDirection: "row", gap: 4, children: [
|
|
1062
|
+
/* @__PURE__ */ t(f, { fontWeight: 600, sx: { mb: 8 }, truncate: !0, variant: "body1", children: o }),
|
|
1063
|
+
/* @__PURE__ */ t(
|
|
1064
|
+
C,
|
|
1065
|
+
{
|
|
1066
|
+
sx: {
|
|
1067
|
+
borderRadius: 3,
|
|
1068
|
+
backgroundColor: c.backgroundColor,
|
|
1069
|
+
px: 8,
|
|
1070
|
+
py: 2,
|
|
1071
|
+
height: 16
|
|
1072
|
+
},
|
|
1073
|
+
children: /* @__PURE__ */ t(f, { fontWeight: 700, sx: { minHeight: 12 }, uppercase: !0, variant: "tiny", children: d })
|
|
1074
|
+
}
|
|
1075
|
+
)
|
|
1076
|
+
] }),
|
|
1077
|
+
/* @__PURE__ */ t(f, { color: "secondary", variant: "subtitle2", children: n })
|
|
1078
|
+
] }),
|
|
1079
|
+
/* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(gt, { color: "secondary", name: "chevron_right", size: 24 }) })
|
|
1080
|
+
]
|
|
1081
|
+
}
|
|
1082
|
+
),
|
|
1083
|
+
/* @__PURE__ */ t(
|
|
1084
|
+
je,
|
|
1085
|
+
{
|
|
1086
|
+
drawerFor: e,
|
|
1087
|
+
isOpen: i,
|
|
1088
|
+
onClose: () => a(!1)
|
|
1089
|
+
}
|
|
1090
|
+
)
|
|
1091
|
+
] });
|
|
1092
|
+
}, Ue = () => {
|
|
1093
|
+
const { finstrong: e } = y(), { key_indicators_spend: o } = e, { healthScore: n } = $(), r = (a) => {
|
|
1094
|
+
const s = Ae(a), l = {
|
|
1095
|
+
GOOD: {
|
|
1096
|
+
descriptionTemplate: o.ratio_good_description,
|
|
1097
|
+
stateTitle: e.key_indicators_good
|
|
1098
|
+
},
|
|
1099
|
+
FAIR: {
|
|
1100
|
+
descriptionTemplate: o.ratio_fair_description,
|
|
1101
|
+
stateTitle: e.key_indicators_fair
|
|
1102
|
+
},
|
|
1103
|
+
OFF_TRACK: {
|
|
1104
|
+
descriptionTemplate: o.ratio_off_track_description,
|
|
1105
|
+
stateTitle: e.key_indicators_off_track
|
|
1106
|
+
},
|
|
1107
|
+
MISSING: {
|
|
1108
|
+
descriptionTemplate: o.ratio_missing_description,
|
|
1109
|
+
stateTitle: e.key_indicators_missing
|
|
1110
|
+
}
|
|
1111
|
+
}, { descriptionTemplate: u, stateTitle: _ } = l[s], g = s === "MISSING" ? u : O(u, a);
|
|
1112
|
+
return {
|
|
1113
|
+
cardState: k[s],
|
|
1114
|
+
description: g,
|
|
1115
|
+
title: o.ratio_card_title,
|
|
1116
|
+
stateTitle: _
|
|
926
1117
|
};
|
|
927
|
-
}, d = (
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
1118
|
+
}, d = (a) => {
|
|
1119
|
+
const s = we(a), l = {
|
|
1120
|
+
GOOD: {
|
|
1121
|
+
description: o.count_good_description,
|
|
1122
|
+
stateTitle: e.key_indicators_good
|
|
1123
|
+
},
|
|
1124
|
+
OFF_TRACK: {
|
|
1125
|
+
description: o.count_off_track_description,
|
|
1126
|
+
stateTitle: e.key_indicators_off_track
|
|
1127
|
+
},
|
|
1128
|
+
MISSING: {
|
|
1129
|
+
description: o.count_missing_description,
|
|
1130
|
+
stateTitle: e.key_indicators_missing
|
|
1131
|
+
}
|
|
1132
|
+
}, { description: u, stateTitle: _ } = l[s];
|
|
1133
|
+
return {
|
|
1134
|
+
cardState: k[s],
|
|
1135
|
+
description: u,
|
|
1136
|
+
title: o.count_card_title,
|
|
1137
|
+
stateTitle: _
|
|
934
1138
|
};
|
|
935
|
-
}, { spendToIncomeRatio:
|
|
936
|
-
const
|
|
937
|
-
return { spendToIncomeRatio:
|
|
1139
|
+
}, { spendToIncomeRatio: c, spendFeeCount: i } = b.useMemo(() => {
|
|
1140
|
+
const a = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, s = r(a), l = d(n.spending_fee_transaction_count);
|
|
1141
|
+
return { spendToIncomeRatio: s, spendFeeCount: l };
|
|
938
1142
|
}, [
|
|
939
1143
|
n.spend_to_income_ratio,
|
|
940
1144
|
n.spending_fee_transaction_count,
|
|
941
|
-
|
|
942
|
-
|
|
1145
|
+
o,
|
|
1146
|
+
e
|
|
943
1147
|
]);
|
|
944
|
-
return /* @__PURE__ */
|
|
945
|
-
/* @__PURE__ */
|
|
946
|
-
|
|
1148
|
+
return /* @__PURE__ */ p(m, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
1149
|
+
/* @__PURE__ */ t(
|
|
1150
|
+
z,
|
|
947
1151
|
{
|
|
948
|
-
cardState:
|
|
949
|
-
description:
|
|
950
|
-
|
|
951
|
-
|
|
1152
|
+
cardState: c.cardState,
|
|
1153
|
+
description: c.description,
|
|
1154
|
+
drawerFor: P.SpendLessThanYouMake,
|
|
1155
|
+
stateTitle: c.stateTitle,
|
|
1156
|
+
title: c.title
|
|
952
1157
|
}
|
|
953
1158
|
),
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
|
|
1159
|
+
/* @__PURE__ */ t(
|
|
1160
|
+
z,
|
|
956
1161
|
{
|
|
957
|
-
cardState:
|
|
958
|
-
description:
|
|
959
|
-
|
|
960
|
-
|
|
1162
|
+
cardState: i.cardState,
|
|
1163
|
+
description: i.description,
|
|
1164
|
+
drawerFor: P.PayBillsOnTime,
|
|
1165
|
+
stateTitle: i.stateTitle,
|
|
1166
|
+
title: i.title
|
|
961
1167
|
}
|
|
962
1168
|
)
|
|
963
1169
|
] });
|
|
964
|
-
},
|
|
965
|
-
const { healthScore:
|
|
966
|
-
const
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1170
|
+
}, Ve = S(Ue), qe = () => {
|
|
1171
|
+
const { healthScore: e } = $(), { finstrong: o } = y(), { key_indicators_save: n } = o, r = (a) => {
|
|
1172
|
+
const s = Oe(a), l = {
|
|
1173
|
+
GOOD: {
|
|
1174
|
+
descriptionTemplate: n.days_of_cash_good_description,
|
|
1175
|
+
stateTitle: o.key_indicators_good
|
|
1176
|
+
},
|
|
1177
|
+
FAIR: {
|
|
1178
|
+
descriptionTemplate: n.days_of_cash_fair_description,
|
|
1179
|
+
stateTitle: o.key_indicators_fair
|
|
1180
|
+
},
|
|
1181
|
+
OFF_TRACK: {
|
|
1182
|
+
descriptionTemplate: n.days_of_cash_off_track_description,
|
|
1183
|
+
stateTitle: o.key_indicators_off_track
|
|
1184
|
+
},
|
|
1185
|
+
MISSING: {
|
|
1186
|
+
descriptionTemplate: n.days_of_cash_missing_description,
|
|
1187
|
+
stateTitle: o.key_indicators_missing
|
|
1188
|
+
}
|
|
1189
|
+
}, { descriptionTemplate: u, stateTitle: _ } = l[s], g = s === "MISSING" ? u : O(u, a);
|
|
1190
|
+
return {
|
|
1191
|
+
cardState: k[s],
|
|
1192
|
+
description: g,
|
|
1193
|
+
title: n.days_of_cash_title,
|
|
1194
|
+
stateTitle: _
|
|
973
1195
|
};
|
|
974
|
-
}, d = (
|
|
975
|
-
const
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1196
|
+
}, d = (a) => {
|
|
1197
|
+
const s = Ie(a), l = {
|
|
1198
|
+
GOOD: {
|
|
1199
|
+
descriptionTemplate: n.emergency_savings_good_description,
|
|
1200
|
+
stateTitle: o.key_indicators_good
|
|
1201
|
+
},
|
|
1202
|
+
FAIR: {
|
|
1203
|
+
descriptionTemplate: n.emergency_savings_fair_description,
|
|
1204
|
+
stateTitle: o.key_indicators_fair
|
|
1205
|
+
},
|
|
1206
|
+
OFF_TRACK: {
|
|
1207
|
+
descriptionTemplate: n.emergency_savings_off_track_description,
|
|
1208
|
+
stateTitle: o.key_indicators_off_track
|
|
1209
|
+
},
|
|
1210
|
+
MISSING: {
|
|
1211
|
+
descriptionTemplate: n.emergency_savings_missing_description,
|
|
1212
|
+
stateTitle: o.key_indicators_missing
|
|
1213
|
+
}
|
|
1214
|
+
}, { descriptionTemplate: u, stateTitle: _ } = l[s];
|
|
1215
|
+
let g;
|
|
1216
|
+
return s === "FAIR" && a !== null ? g = O(
|
|
1217
|
+
u,
|
|
1218
|
+
le(a, "0,0.00")
|
|
1219
|
+
) : g = u, {
|
|
1220
|
+
cardState: k[s],
|
|
1221
|
+
description: g,
|
|
1222
|
+
title: n.emergency_savings_title,
|
|
1223
|
+
stateTitle: _
|
|
985
1224
|
};
|
|
986
|
-
}, { daysOfCashOnHand:
|
|
987
|
-
const
|
|
988
|
-
return { daysOfCashOnHand:
|
|
1225
|
+
}, { daysOfCashOnHand: c, emergencySavings: i } = b.useMemo(() => {
|
|
1226
|
+
const a = e.months_of_cash_on_hand !== null ? Math.round(e.months_of_cash_on_hand * 30) : null, s = r(a), l = e.emergency_savings_on_hand !== null ? Math.round(e.emergency_savings_on_hand) : null, u = d(l);
|
|
1227
|
+
return { daysOfCashOnHand: s, emergencySavings: u };
|
|
989
1228
|
}, [
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1229
|
+
e.months_of_cash_on_hand,
|
|
1230
|
+
e.emergency_savings_on_hand,
|
|
1231
|
+
n,
|
|
993
1232
|
o
|
|
994
1233
|
]);
|
|
995
|
-
return /* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
|
|
1234
|
+
return /* @__PURE__ */ p(m, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
1235
|
+
/* @__PURE__ */ t(
|
|
1236
|
+
z,
|
|
998
1237
|
{
|
|
999
|
-
cardState:
|
|
1000
|
-
description:
|
|
1001
|
-
|
|
1002
|
-
|
|
1238
|
+
cardState: c.cardState,
|
|
1239
|
+
description: c.description,
|
|
1240
|
+
drawerFor: P.SaveEnoughToLiveOn,
|
|
1241
|
+
stateTitle: c.stateTitle,
|
|
1242
|
+
title: c.title
|
|
1003
1243
|
}
|
|
1004
1244
|
),
|
|
1005
|
-
/* @__PURE__ */
|
|
1006
|
-
|
|
1245
|
+
/* @__PURE__ */ t(
|
|
1246
|
+
z,
|
|
1007
1247
|
{
|
|
1008
|
-
cardState:
|
|
1009
|
-
description:
|
|
1010
|
-
|
|
1011
|
-
|
|
1248
|
+
cardState: i.cardState,
|
|
1249
|
+
description: i.description,
|
|
1250
|
+
drawerFor: P.MaintainEmergencySavings,
|
|
1251
|
+
stateTitle: i.stateTitle,
|
|
1252
|
+
title: i.title
|
|
1012
1253
|
}
|
|
1013
1254
|
)
|
|
1014
1255
|
] });
|
|
1015
|
-
},
|
|
1016
|
-
const { healthScore:
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1256
|
+
}, Je = S(qe), Qe = () => {
|
|
1257
|
+
const { healthScore: e } = $(), { finstrong: o } = y(), { key_indicators_borrow: n } = o, { user: r } = Q(), d = (s) => {
|
|
1258
|
+
const l = Me(s), u = {
|
|
1259
|
+
GOOD: {
|
|
1260
|
+
descriptionTemplate: n.manage_debit_good_description,
|
|
1261
|
+
stateTitle: o.key_indicators_good
|
|
1262
|
+
},
|
|
1263
|
+
FAIR: {
|
|
1264
|
+
descriptionTemplate: n.manage_debit_fair_description,
|
|
1265
|
+
stateTitle: o.key_indicators_fair
|
|
1266
|
+
},
|
|
1267
|
+
OFF_TRACK: {
|
|
1268
|
+
descriptionTemplate: n.manage_debit_off_track_description,
|
|
1269
|
+
stateTitle: o.key_indicators_off_track
|
|
1270
|
+
},
|
|
1271
|
+
MISSING: {
|
|
1272
|
+
descriptionTemplate: n.manage_debit_missing_description,
|
|
1273
|
+
stateTitle: o.key_indicators_missing
|
|
1274
|
+
}
|
|
1275
|
+
}, { descriptionTemplate: _, stateTitle: g } = u[l], h = l === "FAIR" || l === "OFF_TRACK" ? O(_, s) : _;
|
|
1276
|
+
return {
|
|
1277
|
+
cardState: k[l],
|
|
1278
|
+
description: h,
|
|
1279
|
+
title: n.manage_debit_title,
|
|
1280
|
+
stateTitle: g
|
|
1027
1281
|
};
|
|
1028
|
-
},
|
|
1029
|
-
const
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1282
|
+
}, c = (s) => {
|
|
1283
|
+
const l = De(s), u = {
|
|
1284
|
+
GOOD: {
|
|
1285
|
+
descriptionTemplate: n.credit_score_good_description,
|
|
1286
|
+
stateTitle: o.key_indicators_good
|
|
1287
|
+
},
|
|
1288
|
+
FAIR: {
|
|
1289
|
+
descriptionTemplate: n.credit_score_fair_description,
|
|
1290
|
+
stateTitle: o.key_indicators_fair
|
|
1291
|
+
},
|
|
1292
|
+
OFF_TRACK: {
|
|
1293
|
+
descriptionTemplate: n.credit_score_off_track_description,
|
|
1294
|
+
stateTitle: o.key_indicators_off_track
|
|
1295
|
+
},
|
|
1296
|
+
MISSING: {
|
|
1297
|
+
descriptionTemplate: n.credit_score_missing_description,
|
|
1298
|
+
stateTitle: o.key_indicators_missing
|
|
1299
|
+
}
|
|
1300
|
+
}, { descriptionTemplate: _, stateTitle: g } = u[l], h = l === "MISSING" ? _ : O(_, s);
|
|
1301
|
+
return {
|
|
1302
|
+
cardState: k[l],
|
|
1303
|
+
description: h,
|
|
1304
|
+
title: n.credit_score_title,
|
|
1305
|
+
stateTitle: g
|
|
1039
1306
|
};
|
|
1040
|
-
}, { manageDebtStatus:
|
|
1041
|
-
const
|
|
1307
|
+
}, { manageDebtStatus: i, creditScoreStatus: a } = b.useMemo(() => {
|
|
1308
|
+
const s = e.debt_to_income_ratio !== null ? Math.round(e.debt_to_income_ratio * 100) : null, l = d(s), u = c(r.credit_score || null);
|
|
1042
1309
|
return {
|
|
1043
|
-
manageDebtStatus:
|
|
1044
|
-
creditScoreStatus:
|
|
1310
|
+
manageDebtStatus: l,
|
|
1311
|
+
creditScoreStatus: u
|
|
1045
1312
|
};
|
|
1046
|
-
}, [
|
|
1047
|
-
return /* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
1049
|
-
|
|
1313
|
+
}, [e.debt_to_income_ratio, r.credit_score, n, o]);
|
|
1314
|
+
return /* @__PURE__ */ p(m, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
1315
|
+
/* @__PURE__ */ t(
|
|
1316
|
+
z,
|
|
1050
1317
|
{
|
|
1051
|
-
cardState:
|
|
1052
|
-
description:
|
|
1053
|
-
|
|
1054
|
-
|
|
1318
|
+
cardState: i.cardState,
|
|
1319
|
+
description: i.description,
|
|
1320
|
+
drawerFor: P.HaveManageableDebt,
|
|
1321
|
+
stateTitle: i.stateTitle,
|
|
1322
|
+
title: i.title
|
|
1055
1323
|
}
|
|
1056
1324
|
),
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
|
|
1325
|
+
/* @__PURE__ */ t(
|
|
1326
|
+
z,
|
|
1059
1327
|
{
|
|
1060
|
-
cardState:
|
|
1061
|
-
description:
|
|
1062
|
-
|
|
1063
|
-
|
|
1328
|
+
cardState: a.cardState,
|
|
1329
|
+
description: a.description,
|
|
1330
|
+
drawerFor: P.HaveAGoodCreditScore,
|
|
1331
|
+
stateTitle: a.stateTitle,
|
|
1332
|
+
title: a.title
|
|
1064
1333
|
}
|
|
1065
1334
|
)
|
|
1066
1335
|
] });
|
|
1067
|
-
},
|
|
1068
|
-
const [
|
|
1069
|
-
return /* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
-
|
|
1336
|
+
}, Ze = S(Qe), tn = () => {
|
|
1337
|
+
const [e, o] = b.useState(0), { finstrong: n } = y();
|
|
1338
|
+
return /* @__PURE__ */ p(J, { children: [
|
|
1339
|
+
/* @__PURE__ */ p(
|
|
1340
|
+
se,
|
|
1072
1341
|
{
|
|
1073
1342
|
"aria-label": "Key Indicators",
|
|
1074
1343
|
centered: !0,
|
|
1075
|
-
onChange: (
|
|
1344
|
+
onChange: (r, d) => o(d),
|
|
1076
1345
|
sx: { mb: 0 },
|
|
1077
1346
|
textColor: "primary",
|
|
1078
|
-
value:
|
|
1347
|
+
value: e,
|
|
1079
1348
|
variant: "fullWidth",
|
|
1080
1349
|
children: [
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
|
|
1350
|
+
/* @__PURE__ */ t(
|
|
1351
|
+
rt,
|
|
1083
1352
|
{
|
|
1084
1353
|
"aria-controls": "spend-details-tabpanel-0",
|
|
1085
|
-
icon: /* @__PURE__ */
|
|
1354
|
+
icon: /* @__PURE__ */ t(_t, { sx: { mr: 8 } }),
|
|
1086
1355
|
iconPosition: "start",
|
|
1087
1356
|
id: "spend-details-tab-0",
|
|
1088
|
-
label:
|
|
1357
|
+
label: n.key_indicators_spend.title,
|
|
1089
1358
|
sx: { minHeight: 44 }
|
|
1090
1359
|
}
|
|
1091
1360
|
),
|
|
1092
|
-
/* @__PURE__ */
|
|
1093
|
-
|
|
1361
|
+
/* @__PURE__ */ t(
|
|
1362
|
+
rt,
|
|
1094
1363
|
{
|
|
1095
1364
|
"aria-controls": "save-details-tabpanel-1",
|
|
1096
|
-
icon: /* @__PURE__ */
|
|
1365
|
+
icon: /* @__PURE__ */ t(Bt, { sx: { mr: 8 } }),
|
|
1097
1366
|
iconPosition: "start",
|
|
1098
1367
|
id: "save-details-tab-1",
|
|
1099
|
-
label:
|
|
1368
|
+
label: n.key_indicators_save.title,
|
|
1100
1369
|
sx: { minHeight: 44 }
|
|
1101
1370
|
}
|
|
1102
1371
|
),
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
|
|
1372
|
+
/* @__PURE__ */ t(
|
|
1373
|
+
rt,
|
|
1105
1374
|
{
|
|
1106
1375
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
1107
|
-
icon: /* @__PURE__ */
|
|
1376
|
+
icon: /* @__PURE__ */ t(Ht, { sx: { mr: 8 } }),
|
|
1108
1377
|
iconPosition: "start",
|
|
1109
1378
|
id: "borrow-details-tab-2",
|
|
1110
|
-
label:
|
|
1379
|
+
label: n.key_indicators_borrow.title,
|
|
1111
1380
|
sx: { minHeight: 44 }
|
|
1112
1381
|
}
|
|
1113
1382
|
)
|
|
1114
1383
|
]
|
|
1115
1384
|
}
|
|
1116
1385
|
),
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */
|
|
1119
|
-
/* @__PURE__ */
|
|
1386
|
+
/* @__PURE__ */ t(it, { index: 0, name: "spend-details", value: e, children: /* @__PURE__ */ t(Ve, {}) }),
|
|
1387
|
+
/* @__PURE__ */ t(it, { index: 1, name: "save-details", value: e, children: /* @__PURE__ */ t(Je, {}) }),
|
|
1388
|
+
/* @__PURE__ */ t(it, { index: 2, name: "borrow-details", value: e, children: /* @__PURE__ */ t(Ze, {}) })
|
|
1120
1389
|
] });
|
|
1121
|
-
},
|
|
1122
|
-
|
|
1123
|
-
children: o,
|
|
1124
|
-
description: t,
|
|
1125
|
-
drawerTitle: i,
|
|
1126
|
-
isOpen: d,
|
|
1127
|
-
loadConnectAccountsCard: l = !0,
|
|
1128
|
-
onClose: s,
|
|
1129
|
-
stickyComponent: r,
|
|
1130
|
-
title: a
|
|
1131
|
-
}) => {
|
|
1132
|
-
const { finstrong: c } = S(), { isCopyLoaded: p } = z();
|
|
1133
|
-
return p ? /* @__PURE__ */ u(V, { isOpen: d, onClose: s, title: i || c.key_indicators, children: [
|
|
1134
|
-
(a || t) && /* @__PURE__ */ u(g, { sx: { p: 24, pb: 0, gap: 8, backgroundColor: "background.paper" }, children: [
|
|
1135
|
-
a && /* @__PURE__ */ e(H, { children: a }),
|
|
1136
|
-
t && /* @__PURE__ */ e(y, { children: t })
|
|
1137
|
-
] }),
|
|
1138
|
-
r && /* @__PURE__ */ e(
|
|
1139
|
-
x,
|
|
1140
|
-
{
|
|
1141
|
-
sx: {
|
|
1142
|
-
position: "sticky",
|
|
1143
|
-
top: 0,
|
|
1144
|
-
zIndex: 1
|
|
1145
|
-
},
|
|
1146
|
-
children: r
|
|
1147
|
-
}
|
|
1148
|
-
),
|
|
1149
|
-
n && /* @__PURE__ */ e(x, { children: n }),
|
|
1150
|
-
/* @__PURE__ */ e(ge, {}),
|
|
1151
|
-
/* @__PURE__ */ u(g, { sx: { p: 24, gap: 24 }, children: [
|
|
1152
|
-
o,
|
|
1153
|
-
l && /* @__PURE__ */ e(Q, { isDashboard: !0 })
|
|
1154
|
-
] })
|
|
1155
|
-
] }) : /* @__PURE__ */ e(N, {});
|
|
1156
|
-
}, Gt = I(Pt), pe = ({
|
|
1157
|
-
content: n,
|
|
1390
|
+
}, en = S(tn), ut = ({
|
|
1391
|
+
content: e,
|
|
1158
1392
|
islast: o = !1
|
|
1159
|
-
}) => /* @__PURE__ */
|
|
1160
|
-
/* @__PURE__ */
|
|
1161
|
-
/* @__PURE__ */
|
|
1162
|
-
!o && /* @__PURE__ */
|
|
1393
|
+
}) => /* @__PURE__ */ p(pe, { sx: { minHeight: 0 }, children: [
|
|
1394
|
+
/* @__PURE__ */ p(he, { children: [
|
|
1395
|
+
/* @__PURE__ */ t(ge, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
|
|
1396
|
+
!o && /* @__PURE__ */ t(me, { sx: { bgcolor: "divider", width: 0.1 } })
|
|
1163
1397
|
] }),
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
] }),
|
|
1166
|
-
const { finstrong: o } =
|
|
1167
|
-
health_score_point_difference:
|
|
1398
|
+
/* @__PURE__ */ t(_e, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ t(f, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: e }) })
|
|
1399
|
+
] }), nn = ({ report: e }) => {
|
|
1400
|
+
const { finstrong: o } = y(), { score_history_drawer_timeline: n } = o, {
|
|
1401
|
+
health_score_point_difference: r,
|
|
1168
1402
|
newer_credit_score: d,
|
|
1169
|
-
older_credit_score:
|
|
1170
|
-
older_spend_to_income_ratio:
|
|
1171
|
-
newer_spend_to_income_ratio:
|
|
1172
|
-
older_health_score:
|
|
1173
|
-
newer_health_score:
|
|
1174
|
-
newer_score_calculated_at:
|
|
1175
|
-
} =
|
|
1176
|
-
if (
|
|
1177
|
-
const
|
|
1178
|
-
return /* @__PURE__ */
|
|
1179
|
-
/* @__PURE__ */
|
|
1180
|
-
|
|
1403
|
+
older_credit_score: c,
|
|
1404
|
+
older_spend_to_income_ratio: i,
|
|
1405
|
+
newer_spend_to_income_ratio: a,
|
|
1406
|
+
older_health_score: s,
|
|
1407
|
+
newer_health_score: l,
|
|
1408
|
+
newer_score_calculated_at: u
|
|
1409
|
+
} = e, _ = ht(new Date(u), "MMM d"), g = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", h = () => r === 0 ? O(n.stayed_at, s) : r > 0 ? n.less_spending : n.more_spending, F = () => {
|
|
1410
|
+
if (r === 0) return null;
|
|
1411
|
+
const D = r > 0 ? n.up_from : n.down_from, x = O(D, s, l);
|
|
1412
|
+
return /* @__PURE__ */ p(J, { children: [
|
|
1413
|
+
/* @__PURE__ */ t(
|
|
1414
|
+
gt,
|
|
1181
1415
|
{
|
|
1182
1416
|
fill: !0,
|
|
1183
1417
|
name: "circle",
|
|
1184
1418
|
sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
|
|
1185
1419
|
}
|
|
1186
1420
|
),
|
|
1187
|
-
|
|
1421
|
+
x
|
|
1188
1422
|
] });
|
|
1189
1423
|
};
|
|
1190
|
-
return /* @__PURE__ */
|
|
1191
|
-
/* @__PURE__ */
|
|
1192
|
-
|
|
1424
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ p(m, { sx: { backgroundColor: "background.paper" }, children: [
|
|
1425
|
+
/* @__PURE__ */ t(C, { sx: { borderBottom: "1px solid", borderBottomColor: "divider", p: 16 }, children: /* @__PURE__ */ p(
|
|
1426
|
+
m,
|
|
1193
1427
|
{
|
|
1194
1428
|
flexDirection: "row",
|
|
1195
1429
|
sx: { alignItems: "center", gap: 16, height: 48, width: "100%" },
|
|
1196
1430
|
children: [
|
|
1197
|
-
/* @__PURE__ */
|
|
1198
|
-
|
|
1431
|
+
/* @__PURE__ */ t(
|
|
1432
|
+
m,
|
|
1199
1433
|
{
|
|
1200
1434
|
sx: {
|
|
1201
1435
|
alignItems: "center",
|
|
1202
|
-
backgroundColor:
|
|
1436
|
+
backgroundColor: g(),
|
|
1203
1437
|
borderRadius: 999,
|
|
1204
1438
|
height: 48,
|
|
1205
1439
|
justifyContent: "center",
|
|
1206
1440
|
minWidth: 48
|
|
1207
1441
|
},
|
|
1208
|
-
children: /* @__PURE__ */
|
|
1442
|
+
children: /* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: "Body", children: r > 0 ? `+${r}` : r })
|
|
1209
1443
|
}
|
|
1210
1444
|
),
|
|
1211
|
-
/* @__PURE__ */
|
|
1212
|
-
/* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
1214
|
-
|
|
1445
|
+
/* @__PURE__ */ p(m, { sx: { gap: 2, width: "80%" }, children: [
|
|
1446
|
+
/* @__PURE__ */ t(W, { fontWeight: 600, variant: "Body", children: h() }),
|
|
1447
|
+
/* @__PURE__ */ p(W, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
1448
|
+
_,
|
|
1215
1449
|
" ",
|
|
1216
|
-
|
|
1450
|
+
F()
|
|
1217
1451
|
] })
|
|
1218
1452
|
] })
|
|
1219
1453
|
]
|
|
1220
1454
|
}
|
|
1221
1455
|
) }),
|
|
1222
|
-
|
|
1223
|
-
|
|
1456
|
+
r !== 0 && /* @__PURE__ */ t(C, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ p(
|
|
1457
|
+
de,
|
|
1224
1458
|
{
|
|
1225
1459
|
sx: {
|
|
1226
|
-
[`& .${
|
|
1460
|
+
[`& .${ue.root}:before`]: {
|
|
1227
1461
|
flex: 0,
|
|
1228
1462
|
padding: 0
|
|
1229
1463
|
},
|
|
@@ -1231,22 +1465,22 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
1231
1465
|
p: 0
|
|
1232
1466
|
},
|
|
1233
1467
|
children: [
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
|
|
1468
|
+
/* @__PURE__ */ t(
|
|
1469
|
+
ut,
|
|
1236
1470
|
{
|
|
1237
|
-
content:
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1471
|
+
content: O(
|
|
1472
|
+
n.spend_to_income_description,
|
|
1473
|
+
pt(i),
|
|
1474
|
+
pt(a)
|
|
1241
1475
|
)
|
|
1242
1476
|
}
|
|
1243
1477
|
),
|
|
1244
|
-
/* @__PURE__ */
|
|
1245
|
-
|
|
1478
|
+
/* @__PURE__ */ t(
|
|
1479
|
+
ut,
|
|
1246
1480
|
{
|
|
1247
|
-
content:
|
|
1248
|
-
|
|
1249
|
-
|
|
1481
|
+
content: O(
|
|
1482
|
+
n.credit_score_description,
|
|
1483
|
+
c,
|
|
1250
1484
|
d
|
|
1251
1485
|
),
|
|
1252
1486
|
islast: !0
|
|
@@ -1256,71 +1490,71 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
1256
1490
|
}
|
|
1257
1491
|
) })
|
|
1258
1492
|
] }) });
|
|
1259
|
-
},
|
|
1260
|
-
const
|
|
1261
|
-
if (!d || !
|
|
1262
|
-
const
|
|
1263
|
-
return /* @__PURE__ */
|
|
1264
|
-
|
|
1493
|
+
}, on = S(nn), rn = ({ isOpen: e, onClose: o }) => {
|
|
1494
|
+
const n = L(), { finstrong: r } = y(), { isCopyLoaded: d, isInitialized: c } = N(), { healthScore: i, healthScoreChangeReports: a, augmentedChartData: s } = $();
|
|
1495
|
+
if (!d || !c) return /* @__PURE__ */ t(K, {});
|
|
1496
|
+
const l = at(i.health_score || 0, r), u = a.slice().reverse();
|
|
1497
|
+
return /* @__PURE__ */ t(
|
|
1498
|
+
kt,
|
|
1265
1499
|
{
|
|
1266
|
-
additionalContent: /* @__PURE__ */
|
|
1267
|
-
|
|
1500
|
+
additionalContent: /* @__PURE__ */ t(m, { sx: { pl: 18, backgroundColor: "background.paper" }, children: /* @__PURE__ */ t(
|
|
1501
|
+
bt,
|
|
1268
1502
|
{
|
|
1269
|
-
axisColor:
|
|
1503
|
+
axisColor: n.palette.divider,
|
|
1270
1504
|
baseline: "min",
|
|
1271
|
-
colors: [
|
|
1505
|
+
colors: [n.palette.primary.main],
|
|
1272
1506
|
curveType: "natural",
|
|
1273
|
-
datasets: [
|
|
1507
|
+
datasets: [s],
|
|
1274
1508
|
height: 160,
|
|
1275
|
-
labels: [
|
|
1509
|
+
labels: [r.key_indicators_label],
|
|
1276
1510
|
margin: { top: 12, left: 24 },
|
|
1277
1511
|
showArea: !0,
|
|
1278
1512
|
showAverage: !0,
|
|
1279
|
-
title:
|
|
1513
|
+
title: r.peer_average,
|
|
1280
1514
|
useCustomMark: !0
|
|
1281
1515
|
}
|
|
1282
1516
|
) }),
|
|
1283
|
-
drawerTitle:
|
|
1284
|
-
isOpen:
|
|
1517
|
+
drawerTitle: r.score_history,
|
|
1518
|
+
isOpen: e,
|
|
1285
1519
|
loadConnectAccountsCard: !1,
|
|
1286
1520
|
onClose: o,
|
|
1287
|
-
stickyComponent: /* @__PURE__ */
|
|
1288
|
-
|
|
1521
|
+
stickyComponent: /* @__PURE__ */ p(
|
|
1522
|
+
m,
|
|
1289
1523
|
{
|
|
1290
1524
|
direction: "row",
|
|
1291
1525
|
sx: { backgroundColor: "background.paper", gap: 16, pb: 12, pt: 8, px: 24 },
|
|
1292
1526
|
children: [
|
|
1293
|
-
/* @__PURE__ */
|
|
1294
|
-
|
|
1527
|
+
/* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
|
|
1528
|
+
vt,
|
|
1295
1529
|
{
|
|
1296
1530
|
arcRadius: 20,
|
|
1297
|
-
healthScore:
|
|
1531
|
+
healthScore: i?.health_score,
|
|
1298
1532
|
size: "SM"
|
|
1299
1533
|
}
|
|
1300
1534
|
) }),
|
|
1301
|
-
/* @__PURE__ */
|
|
1302
|
-
/* @__PURE__ */
|
|
1303
|
-
/* @__PURE__ */
|
|
1535
|
+
/* @__PURE__ */ p(C, { children: [
|
|
1536
|
+
/* @__PURE__ */ t(f, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children: l.status }),
|
|
1537
|
+
/* @__PURE__ */ t(f, { variant: "caption", children: l.description })
|
|
1304
1538
|
] })
|
|
1305
1539
|
]
|
|
1306
1540
|
}
|
|
1307
1541
|
),
|
|
1308
|
-
children: /* @__PURE__ */
|
|
1542
|
+
children: /* @__PURE__ */ t(m, { sx: { gap: 16 }, children: u.map((_, g) => /* @__PURE__ */ t(on, { report: _ }, g)) })
|
|
1309
1543
|
}
|
|
1310
1544
|
);
|
|
1311
|
-
},
|
|
1312
|
-
const { finstrong: o } =
|
|
1313
|
-
return
|
|
1314
|
-
/* @__PURE__ */
|
|
1315
|
-
/* @__PURE__ */
|
|
1316
|
-
/* @__PURE__ */
|
|
1317
|
-
/* @__PURE__ */
|
|
1545
|
+
}, an = S(rn), sn = ({ onClick: e }) => {
|
|
1546
|
+
const { finstrong: o } = y(), { isCopyLoaded: n } = N();
|
|
1547
|
+
return n ? /* @__PURE__ */ p(m, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
1548
|
+
/* @__PURE__ */ t(Wt, { size: 48 }),
|
|
1549
|
+
/* @__PURE__ */ p(m, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
1550
|
+
/* @__PURE__ */ t(E, { children: o.missing_data_title }),
|
|
1551
|
+
/* @__PURE__ */ t(f, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
|
|
1318
1552
|
] }),
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
|
|
1553
|
+
/* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
|
|
1554
|
+
Z,
|
|
1321
1555
|
{
|
|
1322
|
-
endIcon: /* @__PURE__ */
|
|
1323
|
-
onClick:
|
|
1556
|
+
endIcon: /* @__PURE__ */ t(Y, {}),
|
|
1557
|
+
onClick: e,
|
|
1324
1558
|
size: "small",
|
|
1325
1559
|
sx: {
|
|
1326
1560
|
fontSize: 13,
|
|
@@ -1332,129 +1566,129 @@ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
|
|
|
1332
1566
|
children: o.connect_more_accounts_button
|
|
1333
1567
|
}
|
|
1334
1568
|
) })
|
|
1335
|
-
] }) : /* @__PURE__ */
|
|
1336
|
-
},
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
}, []),
|
|
1341
|
-
|
|
1342
|
-
}, [
|
|
1343
|
-
|
|
1344
|
-
}, [d,
|
|
1345
|
-
const [
|
|
1346
|
-
if (!
|
|
1347
|
-
const
|
|
1348
|
-
},
|
|
1349
|
-
return /* @__PURE__ */
|
|
1350
|
-
|
|
1569
|
+
] }) : /* @__PURE__ */ t(K, {});
|
|
1570
|
+
}, cn = S(sn), ln = ({ onBackClick: e, sx: o }) => {
|
|
1571
|
+
const n = L(), { visibleAccounts: r } = yt(), { dateRange: d, isDataLoaded: c, loadBudgetData: i, setTheme: a } = St(), { reloadCategoryTotals: s } = Ut(), { augmentedChartData: l, calculateHealthScore: u, healthScore: _, loadAugmentedChartData: g } = $(), { finstrong: h, connect: F } = y(), { isCopyLoaded: D, isInitialized: x, selectedAccounts: B, setSelectedAccounts: H } = N(), { isMobile: X } = xt(), [R, w] = b.useState(!1);
|
|
1572
|
+
b.useEffect(() => {
|
|
1573
|
+
a(n);
|
|
1574
|
+
}, []), b.useEffect(() => H(r), [r]), b.useEffect(() => {
|
|
1575
|
+
x && (u().finally(), g().finally());
|
|
1576
|
+
}, [x]), b.useEffect(() => {
|
|
1577
|
+
x && (s(B, d.start, d.end), c || i());
|
|
1578
|
+
}, [d, c, x, B]);
|
|
1579
|
+
const [I, T] = b.useState(!1), [G, V] = b.useState(!1);
|
|
1580
|
+
if (!D || !x) return /* @__PURE__ */ t(K, {});
|
|
1581
|
+
const et = () => {
|
|
1582
|
+
}, nt = () => T(!0);
|
|
1583
|
+
return /* @__PURE__ */ p(
|
|
1584
|
+
fe,
|
|
1351
1585
|
{
|
|
1352
|
-
accountOptions:
|
|
1586
|
+
accountOptions: r,
|
|
1353
1587
|
actions: [
|
|
1354
1588
|
{
|
|
1355
1589
|
iconName: "person",
|
|
1356
|
-
label:
|
|
1357
|
-
onClick:
|
|
1590
|
+
label: h.profile,
|
|
1591
|
+
onClick: nt
|
|
1358
1592
|
}
|
|
1359
1593
|
],
|
|
1360
1594
|
hasDivider: !0,
|
|
1361
|
-
onAccountsFilterClick:
|
|
1362
|
-
onBackClick:
|
|
1595
|
+
onAccountsFilterClick: et,
|
|
1596
|
+
onBackClick: e,
|
|
1363
1597
|
sx: o,
|
|
1364
|
-
title:
|
|
1598
|
+
title: h.title,
|
|
1365
1599
|
children: [
|
|
1366
|
-
/* @__PURE__ */
|
|
1367
|
-
|
|
1600
|
+
/* @__PURE__ */ p(
|
|
1601
|
+
m,
|
|
1368
1602
|
{
|
|
1369
1603
|
sx: {
|
|
1370
1604
|
flexDirection: { md: "row" },
|
|
1371
1605
|
gap: 24,
|
|
1372
1606
|
justifyContent: "center",
|
|
1373
|
-
pt:
|
|
1607
|
+
pt: X ? 24 : 16,
|
|
1374
1608
|
px: 24
|
|
1375
1609
|
},
|
|
1376
1610
|
children: [
|
|
1377
|
-
/* @__PURE__ */
|
|
1378
|
-
/* @__PURE__ */
|
|
1379
|
-
/* @__PURE__ */
|
|
1380
|
-
|
|
1611
|
+
/* @__PURE__ */ p(m, { sx: { gap: 24, width: { md: 432 } }, children: [
|
|
1612
|
+
/* @__PURE__ */ t(Re, {}),
|
|
1613
|
+
/* @__PURE__ */ t(
|
|
1614
|
+
tt,
|
|
1381
1615
|
{
|
|
1382
|
-
description:
|
|
1383
|
-
title:
|
|
1616
|
+
description: h.connect_more_accounts_description,
|
|
1617
|
+
title: h.connect_more_accounts_title
|
|
1384
1618
|
}
|
|
1385
1619
|
)
|
|
1386
1620
|
] }),
|
|
1387
|
-
/* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */
|
|
1389
|
-
/* @__PURE__ */
|
|
1390
|
-
/* @__PURE__ */
|
|
1391
|
-
|
|
1621
|
+
/* @__PURE__ */ t(m, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ p(j, { sx: { background: n.palette.background.paper, p: 16 }, children: [
|
|
1622
|
+
/* @__PURE__ */ p(m, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1623
|
+
/* @__PURE__ */ t(E, { children: h.key_indicators }),
|
|
1624
|
+
/* @__PURE__ */ t(
|
|
1625
|
+
Z,
|
|
1392
1626
|
{
|
|
1393
|
-
endIcon: /* @__PURE__ */
|
|
1394
|
-
onClick: () =>
|
|
1627
|
+
endIcon: /* @__PURE__ */ t(Y, {}),
|
|
1628
|
+
onClick: () => V(!0),
|
|
1395
1629
|
sx: {
|
|
1396
1630
|
fontSize: 13
|
|
1397
1631
|
},
|
|
1398
1632
|
variant: "text",
|
|
1399
|
-
children:
|
|
1633
|
+
children: h.whats_changed
|
|
1400
1634
|
}
|
|
1401
1635
|
)
|
|
1402
1636
|
] }),
|
|
1403
|
-
|
|
1404
|
-
|
|
1637
|
+
l.length ? /* @__PURE__ */ t(
|
|
1638
|
+
bt,
|
|
1405
1639
|
{
|
|
1406
|
-
axisColor:
|
|
1640
|
+
axisColor: n.palette.divider,
|
|
1407
1641
|
baseline: "min",
|
|
1408
|
-
colors: [
|
|
1642
|
+
colors: [n.palette.primary.main],
|
|
1409
1643
|
curveType: "natural",
|
|
1410
1644
|
customLegendVariant: "XSmall",
|
|
1411
|
-
datasets: [
|
|
1645
|
+
datasets: [l],
|
|
1412
1646
|
height: 300,
|
|
1413
1647
|
isGraphClippingXAxis: !0,
|
|
1414
|
-
labelBackgroundColor:
|
|
1415
|
-
labelFontColor:
|
|
1416
|
-
labelFontSize: typeof
|
|
1417
|
-
labels: [
|
|
1648
|
+
labelBackgroundColor: n.palette.border.dark,
|
|
1649
|
+
labelFontColor: n.palette.common.white,
|
|
1650
|
+
labelFontSize: typeof n.typography.XSmall?.fontSize == "string" ? parseFloat(n.typography.XSmall.fontSize) : n.typography.XSmall?.fontSize,
|
|
1651
|
+
labels: [h.key_indicators_label],
|
|
1418
1652
|
margin: { right: 20, left: 25 },
|
|
1419
1653
|
showArea: !0,
|
|
1420
1654
|
showAverage: !0,
|
|
1421
1655
|
showLegend: !0,
|
|
1422
1656
|
showMarkLabel: !0,
|
|
1423
1657
|
showXAxis: !0,
|
|
1424
|
-
title:
|
|
1658
|
+
title: h.peer_average,
|
|
1425
1659
|
useCustomMark: !0
|
|
1426
1660
|
}
|
|
1427
|
-
) : /* @__PURE__ */
|
|
1428
|
-
|
|
1661
|
+
) : /* @__PURE__ */ t(cn, { onClick: () => w(!0) }),
|
|
1662
|
+
_.health_score !== null && /* @__PURE__ */ t(en, {})
|
|
1429
1663
|
] }) })
|
|
1430
1664
|
]
|
|
1431
1665
|
}
|
|
1432
1666
|
),
|
|
1433
|
-
/* @__PURE__ */
|
|
1434
|
-
/* @__PURE__ */
|
|
1435
|
-
|
|
1667
|
+
/* @__PURE__ */ t(We, { isOpen: I, onClose: () => T(!1) }),
|
|
1668
|
+
/* @__PURE__ */ t(
|
|
1669
|
+
Ct,
|
|
1436
1670
|
{
|
|
1437
1671
|
onClose: () => w(!1),
|
|
1438
|
-
showConnectWidget:
|
|
1439
|
-
title:
|
|
1672
|
+
showConnectWidget: R,
|
|
1673
|
+
title: F.mini_title
|
|
1440
1674
|
}
|
|
1441
1675
|
),
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
|
|
1676
|
+
/* @__PURE__ */ t(
|
|
1677
|
+
an,
|
|
1444
1678
|
{
|
|
1445
|
-
isOpen:
|
|
1446
|
-
onClose: () =>
|
|
1679
|
+
isOpen: G,
|
|
1680
|
+
onClose: () => V(!1)
|
|
1447
1681
|
}
|
|
1448
1682
|
)
|
|
1449
1683
|
]
|
|
1450
1684
|
}
|
|
1451
1685
|
);
|
|
1452
|
-
},
|
|
1686
|
+
}, so = S(ln);
|
|
1453
1687
|
export {
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1688
|
+
ao as CreditScoreGraph,
|
|
1689
|
+
Tt as DialScoreCard,
|
|
1690
|
+
vt as FinancialStrengthGraph,
|
|
1691
|
+
po as FinstrongApi,
|
|
1692
|
+
uo as FinstrongStore,
|
|
1693
|
+
so as FinstrongWidget
|
|
1460
1694
|
};
|