@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.
Files changed (64) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/{Account-DoxALziV.mjs → Account-tMsdS_fR.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-DsD3Wzu7.mjs → AccountDetailsContent-C8fH-FQB.mjs} +7 -7
  4. package/dist/{AccountDetailsHeader-DN2pk4QW.mjs → AccountDetailsHeader-DNAjoL-S.mjs} +4 -4
  5. package/dist/{AccountFields-CuivK48n.mjs → AccountFields-Dg6oj8cP.mjs} +2 -2
  6. package/dist/{AccountListItem-BAdwVscV.mjs → AccountListItem-Beq27kHX.mjs} +3 -3
  7. package/dist/{AccountStore-DWiQAs6V.mjs → AccountStore-CHPKVGWf.mjs} +1 -1
  8. package/dist/{Accounts-CNnOAmr2.mjs → Accounts-C5gB9veQ.mjs} +1 -1
  9. package/dist/{CategorySelectorDrawer-BmenK5bu.mjs → CategorySelectorDrawer-CedQx6n6.mjs} +1 -1
  10. package/dist/{ConnectDrawer-DJA_S-rX.mjs → ConnectDrawer-CUKAktmo.mjs} +1 -1
  11. package/dist/{ConnectionsDrawer-CU3E2RLw.mjs → ConnectionsDrawer-CwmI5IXT.mjs} +2 -2
  12. package/dist/{DebtsStore-CoZ30R-_.mjs → DebtsStore-Blg0V9AH.mjs} +1 -1
  13. package/dist/Drawer-BEtCk82g.mjs +163 -0
  14. package/dist/{GoalStore-DxOUk36P.mjs → GoalStore-BNyhflZu.mjs} +1 -1
  15. package/dist/{Help-CzBAsKA2.mjs → Help-BYF21T2N.mjs} +1 -1
  16. package/dist/{ManageIncome-BX7dzGF8.mjs → ManageIncome-BftkBLLt.mjs} +59 -57
  17. package/dist/{NetWorthStore-f6RQno5Z.mjs → NetWorthStore-DgWH61d0.mjs} +2 -2
  18. package/dist/{NotificationSettings-C215AwS0.mjs → NotificationSettings-4OsC52PM.mjs} +1 -1
  19. package/dist/{RecurringSettings-qv7DNYac.mjs → RecurringSettings-DWRuYGXq.mjs} +2 -2
  20. package/dist/{TransactionDetails-DAp_CPCP.mjs → TransactionDetails-Csjr1ivB.mjs} +3 -3
  21. package/dist/{WidgetContainer-B8MRJ5Y1.mjs → WidgetContainer-Dr9acAPp.mjs} +2 -2
  22. package/dist/accounts/components/AccountsListCompact.d.ts +9 -0
  23. package/dist/accounts/index.es.js +12 -12
  24. package/dist/budgets/index.es.js +6 -6
  25. package/dist/cashflow/index.es.js +6 -6
  26. package/dist/categories/index.es.js +1 -1
  27. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  28. package/dist/common/components/drawer/Footer.d.ts +17 -0
  29. package/dist/common/index.es.js +10 -10
  30. package/dist/common/types/Finstrong.d.ts +6 -0
  31. package/dist/common/types/localization/FinstrongCopy.d.ts +10 -0
  32. package/dist/dashboard/index.es.js +1 -1
  33. package/dist/debts/index.es.js +6 -6
  34. package/dist/finstrong/components/DoubleBarChart.d.ts +26 -0
  35. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  36. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  37. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  38. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +2 -0
  39. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  40. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  41. package/dist/finstrong/components/Onboarding.d.ts +5 -0
  42. package/dist/finstrong/components/OnboardingAddMonthlyIncome.d.ts +11 -0
  43. package/dist/finstrong/components/OnboardingStepsDrawer.d.ts +14 -0
  44. package/dist/finstrong/components/OnboardingStepsHeader.d.ts +8 -0
  45. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  46. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  47. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  48. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  49. package/dist/finstrong/constants/index.d.ts +8 -0
  50. package/dist/finstrong/index.es.js +1044 -810
  51. package/dist/finstrong/util/finstrongUtils.d.ts +9 -0
  52. package/dist/goals/index.es.js +8 -8
  53. package/dist/help/index.es.js +2 -2
  54. package/dist/investments/index.es.js +3 -3
  55. package/dist/networth/index.es.js +5 -5
  56. package/dist/notifications/index.es.js +2 -2
  57. package/dist/recurringtransactions/index.es.js +6 -6
  58. package/dist/settings/index.es.js +6 -6
  59. package/dist/spending/index.es.js +3 -3
  60. package/dist/transactions/index.es.js +6 -6
  61. package/dist/trends/index.es.js +4 -4
  62. package/dist/{useAccountDisplayName-CyPD_TFR.mjs → useAccountDisplayName-Ngo3TWV4.mjs} +1 -1
  63. package/package.json +1 -1
  64. package/dist/Drawer-kEE73B87.mjs +0 -113
@@ -1,57 +1,85 @@
1
- import { jsx as e, jsxs as u, Fragment as re } from "react/jsx-runtime";
2
- import x from "@mui/material/Box";
3
- import g from "@mui/material/Stack";
4
- import { useTheme as G, alpha as te } from "@mui/material/styles";
5
- import { PieChart as Oe } from "@mui/x-charts";
6
- import { ChevronRight as j, Check as De, TrendingUp as Me, ArrowRightAlt as Te, TrendingDown as we, AccountBalance as me, ExpandMore as Re, Payments as Fe, CalendarMonth as Pe, CreditCard as ue, Savings as Ge, ContentCopy as Le, MultilineChart as Ee } from "@mxenabled/mx-icons";
7
- import { Text as W, P as y, H3 as H, Icon as he } from "@mxenabled/mxui";
8
- import { format as _e } from "date-fns/format";
9
- import C from "react";
10
- import We from "@mui/material/Avatar";
11
- import ge from "@mui/material/Divider";
12
- import Be from "@mui/material/List";
13
- import He from "@mui/material/ListItem";
14
- import ze from "@mui/material/ListItemAvatar";
15
- import $e from "@mui/material/ListItemButton";
16
- import Ne from "@mui/material/ListItemText";
17
- import { b } from "../Localization-2MODESHW.mjs";
18
- import * as ce from "d3";
19
- import { observer as I } from "mobx-react-lite";
20
- import { u as S, b as z, w as $, o as Y, d as fe, i as ye, m as Ke } from "../hooks-CE2TKk4a.mjs";
21
- import { L as N } from "../Loader-DUaFpDGv.mjs";
22
- import { F as No, a as Ko } from "../FinstrongStore-F2c607dj.mjs";
23
- import q from "@mui/material/Button";
24
- import J from "@mui/material/Card";
25
- import { L as be } from "../LineChart-B2Y7zwMu.mjs";
26
- import { k as xe } from "../ConnectDrawer-DJA_S-rX.mjs";
27
- import Xe from "@mui/material/Accordion";
28
- import je from "@mui/material/AccordionDetails";
29
- import Ue from "@mui/material/AccordionSummary";
30
- import Ve from "@mui/material/CardHeader";
31
- import { u as Ye } from "../useDimensions-27p2evRx.mjs";
32
- import { C as qe } from "../ConnectionsDrawer-CU3E2RLw.mjs";
33
- import { R as Je } from "../RecurringSettings-qv7DNYac.mjs";
34
- import Qe from "@mui/material/TextField";
35
- import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
36
- import { a as Ze } from "../Dialog-CWW597AF.mjs";
37
- import { AdapterDateFns as et } from "@mui/x-date-pickers/AdapterDateFnsV3";
38
- import { StaticDatePicker as tt } from "@mui/x-date-pickers";
39
- import { LocalizationProvider as ot } from "@mui/x-date-pickers/LocalizationProvider";
40
- import { D as V } from "../Drawer-kEE73B87.mjs";
41
- import oe from "@mui/material/Tab";
42
- import nt from "@mui/material/Tabs";
43
- import { f as rt } from "../NumberFormatting-CtWHhyBX.mjs";
44
- import { T as ne } from "../TabContentContainer-j01JYR_7.mjs";
45
- import it from "@mui/lab/Timeline";
46
- import st, { timelineItemClasses as at } from "@mui/lab/TimelineItem";
47
- import ct from "@mui/lab/TimelineConnector";
48
- import lt from "@mui/lab/TimelineContent";
49
- import dt from "@mui/lab/TimelineDot";
50
- import pt from "@mui/lab/TimelineSeparator";
51
- import { W as mt } from "../WidgetContainer-B8MRJ5Y1.mjs";
52
- var A = /* @__PURE__ */ ((n) => (n.Connections = "connections", n.CreditScore = "credit_score", n.DateOfBirth = "date_of_birth", n.MonthlyIncome = "monthly_income", n))(A || {});
53
- const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(
54
- Be,
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: n.map((t, i) => /* @__PURE__ */ u(C.Fragment, { children: [
63
- /* @__PURE__ */ e(He, { secondaryAction: /* @__PURE__ */ e(j, {}), children: /* @__PURE__ */ u($e, { onClick: () => o(t.key), children: [
64
- /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(
65
- We,
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
- ...!t.isComplete && {
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: t.icon
105
+ children: n.icon
78
106
  }
79
107
  ) }),
80
- /* @__PURE__ */ e(
81
- Ne,
108
+ /* @__PURE__ */ t(
109
+ jt,
82
110
  {
83
- primary: /* @__PURE__ */ e(W, { sx: { color: "text.secondary" }, variant: "caption", children: t.primaryText }),
84
- secondary: /* @__PURE__ */ e(W, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: t.secondaryText })
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
- i < n.length - 1 && /* @__PURE__ */ e(ge, { sx: { color: "divider", ml: 68 } })
89
- ] }, t.key))
116
+ r < e.length - 1 && /* @__PURE__ */ t(ft, { sx: { color: "divider", ml: 68 } })
117
+ ] }, n.key))
90
118
  }
91
- ) }), ht = ut, le = (n) => n * (180 / Math.PI), ie = (n, o) => [
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) => n > 0 && n <= d.max) || { status: o.insufficient_data, description: "", scoreContent: "" }, 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
- }, _t = (n, o, t) => n >= 300 && n < 580 ? {
129
- status: t.poor,
130
- color: o ? M.POOR : D.POOR
131
- } : n >= 580 && n < 670 ? {
132
- status: t.fair,
133
- color: o ? M.FAIR : D.FAIR
134
- } : n >= 670 && n < 740 ? {
135
- status: t.good,
136
- color: o ? M.GOOD : D.GOOD
137
- } : n >= 740 && n < 800 ? {
138
- status: t.very_good,
139
- color: o ? M.VERY_GOOD : D.VERY_GOOD
140
- } : n >= 800 && n <= 850 ? {
141
- status: t.exceptional,
142
- color: o ? M.EXCEPTIONAL : D.EXCEPTIONAL
143
- } : { status: t.missing_data }, gt = (n, o, t, i) => {
144
- const d = n.reduce((r, a) => r + a.value, 0);
145
- let l = 0;
146
- const s = n.map((r) => {
147
- const a = r.value / d * o, c = t + l, p = c + a;
148
- return l += a, {
149
- ...r,
150
- startAngle: c,
151
- endAngle: p
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 [s[i].startAngle, s[i].endAngle];
155
- }, ft = (n, o, t, i, d) => {
156
- let l = 0, s = 0;
157
- const r = Math.floor(i), a = i - r;
158
- return r > t ? (l = n, s = o) : r === t && a > 0 && (l = n, s = d), [l, s];
159
- }, yt = (n, o, t = 0) => {
160
- const i = n * Math.sin(o - t), d = -n * Math.cos(o - t);
161
- return [i, d];
162
- }, bt = ({
163
- dynamicCopy: n,
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: t,
166
- key: i,
193
+ icon: n,
194
+ key: r,
167
195
  label: d,
168
- value: l
196
+ value: c
169
197
  }) => {
170
- const s = !!l, r = s ? xt(i, l) : n && b(n, o) || o;
198
+ const i = !!c, a = i ? ke(r, c) : e && O(e, o) || o;
171
199
  return {
172
- icon: s ? /* @__PURE__ */ e(De, {}) : t,
173
- isComplete: s,
174
- key: i,
200
+ icon: i ? /* @__PURE__ */ t(Dt, {}) : n,
201
+ isComplete: i,
202
+ key: r,
175
203
  primaryText: d,
176
- secondaryText: r
204
+ secondaryText: a
177
205
  };
178
- }, xt = (n, o) => ({
179
- [A.DateOfBirth]: (i) => _e(new Date(Number(i) * 1e3), "MMM d, yyyy"),
180
- [A.MonthlyIncome]: (i) => `$${i}`
181
- })[n]?.(o) ?? String(o), de = (n) => n !== null ? Math.round(n * 100) : null, Ct = ({
182
- dialScoreData: n,
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: t,
185
- arcStartAngle: i,
227
+ arcColor: n,
228
+ arcStartAngle: r,
186
229
  totalAngularSpan: d,
187
- centerX: l,
188
- centerY: s,
189
- arcRadius: r,
190
- innerArcRadius: a,
191
- outterArcRadius: c,
192
- progressEndAngle: p,
193
- unitsPerSegment: h,
194
- isFinacialStrengthGraph: m
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 _ = G(), R = [
197
- { offset: "13.62%", color: _.palette.chartMono.chartMono2 },
198
- { offset: "36.67%", color: _.palette.chartMono.chartMono3 },
199
- { offset: "59.72%", color: _.palette.chartMono.chartMono4 },
200
- { offset: "83.46%", color: _.palette.chartMono.chartMono5 }
201
- ], [T, v] = gt(
202
- n,
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
- i,
247
+ r,
205
248
  o
206
- ), [L, E] = ft(
207
- T,
208
- v,
249
+ ), [B, H] = xe(
250
+ D,
251
+ x,
209
252
  o,
210
- h,
211
- p
212
- ), K = ce.arc().innerRadius(a).outerRadius(c).startAngle(T).endAngle(v).padAngle(0.02).cornerRadius(8), F = ce.arc().innerRadius(a).outerRadius(c).startAngle(L).endAngle(E).padAngle(0.02).cornerRadius(8);
213
- return /* @__PURE__ */ u(re, { children: [
214
- /* @__PURE__ */ e(
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: K({}),
218
- fill: m ? _.palette.divider : t
260
+ d: X({}),
261
+ fill: g ? h.palette.divider : n
219
262
  }
220
263
  ),
221
- m && /* @__PURE__ */ e("path", { d: F({}), fill: "url(#arcGradient)" }),
222
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
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, ${l}, ${s})`,
268
+ gradientTransform: `rotate(5, ${c}, ${i})`,
226
269
  gradientUnits: "userSpaceOnUse",
227
270
  id: "arcGradient",
228
- x1: l + r * 0.8 * Math.cos(Math.PI / 1.35),
229
- x2: l - r * 0.8 * Math.cos(Math.PI / 1.35),
230
- y1: s + r * 0.8 * Math.sin(Math.PI / 1.35),
231
- y2: s - r * 0.8 * Math.sin(Math.PI / 1.35),
232
- children: R.map((w, O) => /* @__PURE__ */ e("stop", { offset: w.offset, stopColor: w.color }, O))
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
- }, Se = ({
237
- arcRadius: n = 100,
279
+ }, Tt = ({
280
+ arcRadius: e = 100,
238
281
  healthScore: o,
239
- size: t = "L",
240
- dialScoreData: i,
282
+ size: n = "L",
283
+ dialScoreData: r,
241
284
  minValue: d = 0,
242
- maxValue: l = 100,
243
- markerColor: s,
244
- healthScoreStatus: r,
245
- footerCenterContent: a,
246
- footerLeftContent: c,
247
- footerRightContent: p,
248
- isFinacialStrengthGraph: h = !1
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 m = G(), _ = -Math.PI / 1.35, R = Math.PI / 1.35, T = R - _, v = T / (l - d), L = (o - d) * v, E = _ + L + 0.02, K = t !== "SM" ? 0.1 : 0.12, F = n, w = n * (1 - K), O = F * 2.5, k = O / 2, P = O / 2, U = (w + F) / 2, Z = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [ee, ke] = yt(U, E, Z), Ae = o / 25, se = {
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
- }, Ie = a === 0 ? Te : we;
255
- return /* @__PURE__ */ u(
256
- g,
297
+ }, At = s === 0 ? Ft : Rt;
298
+ return /* @__PURE__ */ p(
299
+ m,
257
300
  {
258
301
  sx: {
259
- width: O,
260
- height: O,
302
+ width: I,
303
+ height: I,
261
304
  position: "relative",
262
305
  alignSelf: "center"
263
306
  },
264
307
  children: [
265
- /* @__PURE__ */ e(
266
- Oe,
308
+ /* @__PURE__ */ t(
309
+ Mt,
267
310
  {
268
- height: O,
311
+ height: I,
269
312
  margin: { top: 0, right: 0, bottom: 0, left: 0 },
270
313
  series: [
271
314
  {
272
- data: i,
315
+ data: r,
273
316
  innerRadius: w,
274
- outerRadius: F,
275
- startAngle: Math.round(le(_)),
317
+ outerRadius: R,
318
+ startAngle: Math.round(dt(h)),
276
319
  // Use Math.degrees to convert
277
- endAngle: Math.round(le(R))
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: (ae) => /* @__PURE__ */ e(
287
- Ct,
329
+ pieArc: (ct) => /* @__PURE__ */ t(
330
+ Fe,
288
331
  {
289
- arcColor: ae.color,
290
- arcRadius: n,
291
- arcStartAngle: _,
292
- centerX: k,
293
- centerY: P,
294
- dataIndex: ae.dataIndex,
295
- dialScoreData: i,
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: h,
298
- outterArcRadius: F,
299
- progressEndAngle: E,
300
- totalAngularSpan: T,
301
- unitsPerSegment: Ae
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: O,
311
- children: o >= d && o <= l && /* @__PURE__ */ e(
353
+ width: I,
354
+ children: o >= d && o <= c && /* @__PURE__ */ t(
312
355
  "circle",
313
356
  {
314
- cx: k + ee,
315
- cy: P + ke,
316
- fill: m.palette.common.white,
317
- r: se[t].markerSize,
318
- stroke: h ? "url(#arcGradient)" : s,
319
- strokeWidth: t !== "SM" ? 3 : 1
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__ */ e(
325
- x,
367
+ /* @__PURE__ */ t(
368
+ C,
326
369
  {
327
370
  sx: {
328
371
  position: "absolute",
329
- top: `${P}px`,
330
- left: `${k}px`,
372
+ top: `${G}px`,
373
+ left: `${T}px`,
331
374
  transform: "translate(-50%, -50%)",
332
375
  textAlign: "center"
333
376
  },
334
- children: /* @__PURE__ */ u(
335
- g,
377
+ children: /* @__PURE__ */ p(
378
+ m,
336
379
  {
337
380
  spacing: 1,
338
- sx: { alignItems: "center", justifyContent: "center", gap: t !== "M" ? 10 : 3 },
381
+ sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
339
382
  children: [
340
- /* @__PURE__ */ e(
341
- y,
383
+ /* @__PURE__ */ t(
384
+ f,
342
385
  {
343
386
  sx: {
344
- fontSize: se[t].healthScoreFontSize,
345
- lineHeight: t !== "SM" ? "48px" : "100%"
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
- t !== "SM" && /* @__PURE__ */ e(y, { sx: { fontWeight: 600 }, variant: t === "L" ? "body1" : "body2", children: r })
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
- a !== void 0 && /* @__PURE__ */ e(
358
- x,
400
+ s !== void 0 && /* @__PURE__ */ t(
401
+ C,
359
402
  {
360
403
  sx: {
361
404
  position: "absolute",
362
- top: `${P * 2 * 0.83}px`,
363
- left: `${k}px`,
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 a == "number" ? /* @__PURE__ */ u(g, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
368
- a > 0 ? /* @__PURE__ */ e(Me, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(Ie, { size: 16, sx: { color: "text.secondary" } }),
369
- /* @__PURE__ */ e(
370
- y,
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: a > 0 ? "success.main" : "text.secondary"
417
+ color: s > 0 ? "success.main" : "text.secondary"
375
418
  },
376
419
  variant: "body1",
377
- children: a
420
+ children: s
378
421
  }
379
422
  )
380
- ] }) : /* @__PURE__ */ e(y, { sx: { color: "text.secondary" }, variant: "subtitle2", children: a })
423
+ ] }) : /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "subtitle2", children: s })
381
424
  }
382
425
  ),
383
- c !== void 0 && /* @__PURE__ */ e(
384
- x,
426
+ l !== void 0 && /* @__PURE__ */ t(
427
+ C,
385
428
  {
386
429
  sx: {
387
430
  position: "absolute",
388
- top: `${P * 2 * 0.83}px`,
389
- left: `${k - k / 2}px`,
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__ */ e(y, { variant: "body1", children: c })
437
+ children: /* @__PURE__ */ t(f, { variant: "body1", children: l })
395
438
  }
396
439
  ),
397
- p !== void 0 && /* @__PURE__ */ e(
398
- x,
440
+ u !== void 0 && /* @__PURE__ */ t(
441
+ C,
399
442
  {
400
443
  sx: {
401
444
  position: "absolute",
402
- top: `${P * 2 * 0.83}px`,
403
- left: `${k + k / 2}px`,
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__ */ e(y, { variant: "body1", children: p })
450
+ children: /* @__PURE__ */ t(f, { variant: "body1", children: u })
408
451
  }
409
452
  )
410
453
  ]
411
454
  }
412
455
  );
413
- }, ve = I(
414
- ({ arcRadius: n, size: o = "L", healthScore: t, footerCenterContent: i }) => {
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: l } = S(), s = ie(t, l);
421
- return /* @__PURE__ */ e(
422
- Se,
463
+ ], { finstrong: c } = y(), i = at(n, c);
464
+ return /* @__PURE__ */ t(
465
+ Tt,
423
466
  {
424
- arcRadius: n,
467
+ arcRadius: e,
425
468
  dialScoreData: d,
426
- footerCenterContent: o === "L" ? l.footer_center_content_updated_just_now : i,
427
- healthScore: t,
428
- healthScoreStatus: s.status,
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
- ), Bo = I(
477
+ ), ao = S(
435
478
  ({
436
- arcRadius: n,
479
+ arcRadius: e,
437
480
  size: o = "L",
438
- healthScore: t,
439
- maxValue: i = 850,
481
+ healthScore: n,
482
+ maxValue: r = 850,
440
483
  minValue: d = 300,
441
- footerCenterContent: l
484
+ footerCenterContent: c
442
485
  }) => {
443
- const r = G().palette.mode === "dark", a = [
486
+ const a = L().palette.mode === "dark", s = [
444
487
  {
445
488
  id: 1,
446
489
  label: "Poor",
447
490
  value: 279,
448
- color: r ? M.POOR : D.POOR
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: r ? M.FAIR : D.FAIR
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: r ? M.GOOD : D.GOOD
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: r ? M.VERY_GOOD : D.VERY_GOOD
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: r ? M.EXCEPTIONAL : D.EXCEPTIONAL
515
+ color: a ? M.EXCEPTIONAL : A.EXCEPTIONAL
473
516
  }
474
- ], { finstrong: c } = S(), { isCopyLoaded: p } = z();
475
- if (!p) return /* @__PURE__ */ e(N, {});
476
- const { status: h, color: m = "none" } = _t(
477
- t,
478
- r,
479
- c.credit_score_status
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__ */ e(
482
- Se,
524
+ return /* @__PURE__ */ t(
525
+ Tt,
483
526
  {
484
- arcRadius: n,
485
- dialScoreData: a,
486
- footerCenterContent: l,
527
+ arcRadius: e,
528
+ dialScoreData: s,
529
+ footerCenterContent: c,
487
530
  footerLeftContent: d,
488
- footerRightContent: i,
489
- healthScore: t,
490
- healthScoreStatus: h,
491
- markerColor: m,
492
- maxValue: i,
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
- ), Q = ({
499
- isDashboard: n = !1,
541
+ ), tt = ({
542
+ isDashboard: e = !1,
500
543
  hasIcon: o = !0,
501
- buttonText: t,
502
- title: i,
544
+ buttonText: n,
545
+ title: r,
503
546
  description: d,
504
- sx: l
547
+ sx: c
505
548
  }) => {
506
- const [s, r] = C.useState(!1), { connect: a, finstrong: c } = S();
507
- return /* @__PURE__ */ u(
508
- J,
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
- ...l
558
+ ...c
516
559
  },
517
560
  children: [
518
- /* @__PURE__ */ u(
519
- g,
561
+ /* @__PURE__ */ p(
562
+ m,
520
563
  {
521
564
  sx: {
522
565
  gap: 8,
523
- ...n && { flexDirection: "row", alignItems: "center" }
566
+ ...e && { flexDirection: "row", alignItems: "center" }
524
567
  },
525
568
  children: [
526
- o && /* @__PURE__ */ e(me, { sx: { height: 20, width: 20 } }),
527
- /* @__PURE__ */ e(H, { className: "connect-more-accounts-title", sx: { ...n && { fontSize: 15 } }, children: i || c.connect_more_accounts_title })
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__ */ e(
532
- y,
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 || c.connect_more_accounts_description
580
+ children: d || l.connect_more_accounts_description
538
581
  }
539
582
  ),
540
- /* @__PURE__ */ e(
541
- q,
583
+ /* @__PURE__ */ t(
584
+ Z,
542
585
  {
543
- endIcon: /* @__PURE__ */ e(j, {}),
544
- onClick: () => r(!0),
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__ */ e(W, { sx: { fontWeight: 600 }, variant: "body2", children: t || c.connect_more_accounts_button })
590
+ children: /* @__PURE__ */ t(W, { sx: { fontWeight: 600 }, variant: "body2", children: n || l.connect_more_accounts_button })
548
591
  }
549
592
  ),
550
- /* @__PURE__ */ e(
551
- xe,
593
+ /* @__PURE__ */ t(
594
+ Ct,
552
595
  {
553
- onClose: () => r(!1),
554
- showConnectWidget: s,
555
- title: a.mini_title
596
+ onClose: () => a(!1),
597
+ showConnectWidget: i,
598
+ title: s.mini_title
556
599
  }
557
600
  )
558
601
  ]
559
602
  }
560
603
  );
561
- }, St = I(() => {
562
- const n = G(), [o, { width: t }] = Ye(), { finstrong: i } = S(), { isCopyLoaded: d, isInitialized: l } = z(), { healthScore: s, healthScoreChange: r } = $(), a = n.palette.mode === "dark", c = ie(s?.health_score, i);
563
- return !d || !l ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ u(J, { ref: o, sx: { p: 16 }, children: [
564
- /* @__PURE__ */ e(
565
- Ve,
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__ */ e(
568
- q,
610
+ action: /* @__PURE__ */ t(
611
+ Z,
569
612
  {
570
- endIcon: /* @__PURE__ */ e(j, {}),
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: i.financial_strength_header_action
621
+ children: r.financial_strength_header_action
579
622
  }
580
623
  ),
581
- subheader: /* @__PURE__ */ e(H, { color: "text.primary", children: i.financial_strength_header }),
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__ */ e(g, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(
591
- ve,
633
+ /* @__PURE__ */ t(m, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(
634
+ vt,
592
635
  {
593
- arcRadius: t <= 323 ? 73 : 154,
594
- footerCenterContent: r,
595
- healthScore: s?.health_score || 0,
596
- size: t <= 323 ? "M" : "L"
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
- s?.health_score ? /* @__PURE__ */ u(
600
- Xe,
642
+ i?.health_score ? /* @__PURE__ */ p(
643
+ Vt,
601
644
  {
602
645
  sx: {
603
646
  px: 16,
604
- backgroundColor: a ? "grey.800" : "grey.50",
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__ */ e(
615
- Ue,
657
+ /* @__PURE__ */ t(
658
+ Jt,
616
659
  {
617
- expandIcon: /* @__PURE__ */ e(Re, { size: 20 }),
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__ */ e(y, { sx: { fontWeight: 600 }, variant: "body1", children: i.accordion_title_text })
668
+ children: /* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: "body1", children: r.accordion_title_text })
626
669
  }
627
670
  ),
628
- /* @__PURE__ */ e(je, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(y, { variant: "subtitle1", children: c.scoreContent }) })
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__ */ e(
632
- Q,
674
+ ) : /* @__PURE__ */ t(
675
+ tt,
633
676
  {
634
- buttonText: i.connect_more_accounts_title,
635
- description: i.health_score_zero_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: a ? "grey.800" : "grey.50",
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: i.health_score_zero_title
691
+ title: r.health_score_zero_title
649
692
  }
650
693
  )
651
694
  ] });
652
- }), vt = ({ isOpen: n, onClose: o }) => {
653
- const { common: t, finstrong: i } = S(), { isMobile: d } = Ce(), { updateUser: l, user: s } = Y(), [r, a] = C.useState(s.credit_score || 0), c = !isNaN(r), p = () => {
654
- o(), setTimeout(() => a(s.credit_score || 0), 300);
655
- }, h = () => {
656
- !r || r === s.credit_score || l({ ...s, credit_score: r });
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__ */ e(
659
- Ze,
701
+ return /* @__PURE__ */ t(
702
+ oe,
660
703
  {
661
- copy: { close_aria: t.close_aria, title: i.edit_credit_score },
662
- disablePrimaryButton: !r || !c,
663
- isOpen: n,
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: p,
666
- onPrimaryAction: h,
708
+ onClose: u,
709
+ onPrimaryAction: _,
667
710
  primaryColor: "primary",
668
- primaryText: t.save_button,
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__ */ e(
675
- Qe,
717
+ children: /* @__PURE__ */ t(
718
+ ne,
676
719
  {
677
- error: !c,
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: (m) => a(Number(m.target.value)),
685
- value: c ? r : ""
727
+ onChange: (g) => s(Number(g.target.value)),
728
+ value: l ? a : ""
686
729
  }
687
730
  )
688
731
  }
689
732
  );
690
- }, kt = I(vt), At = ({ isOpen: n, onClose: o }) => {
691
- const { finstrong: t } = S(), i = G(), { updateUser: d, user: l } = Y(), [s, r] = C.useState(l.birthday), a = (p) => {
692
- r(Math.floor(new Date(p).getTime() / 1e3));
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__ */ e(
695
- V,
737
+ return /* @__PURE__ */ t(
738
+ q,
696
739
  {
697
- isOpen: n,
740
+ isOpen: e,
698
741
  onClose: o,
699
742
  onPrimaryAction: () => {
700
- !s || s === l.birthday || (d({ ...l, birthday: s }), o());
743
+ !i || i === c.birthday || (d({ ...c, birthday: i }), o());
701
744
  },
702
745
  onSecondaryAction: o,
703
- title: t.date_of_birth,
704
- children: /* @__PURE__ */ e(ot, { dateAdapter: et, children: /* @__PURE__ */ e(
705
- tt,
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: a,
751
+ onChange: s,
709
752
  slotProps: {
710
753
  nextIconButton: {
711
754
  sx: {
712
755
  color: "primary.main",
713
- "&:hover": { bgcolor: te(i.palette.primary.light, 0.1) }
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: te(i.palette.primary.light, 0.1) }
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: te(i.palette.primary.light, 0.1) }
774
+ "&:hover": { bgcolor: ot(r.palette.primary.light, 0.1) }
732
775
  }
733
776
  },
734
- value: s ? new Date(s * 1e3) : /* @__PURE__ */ new Date()
777
+ value: i ? new Date(i * 1e3) : /* @__PURE__ */ new Date()
735
778
  }
736
779
  ) })
737
780
  }
738
781
  );
739
- }, It = I(At), Ot = ({ value: n, completeCopy: o }) => /* @__PURE__ */ u(g, { sx: { gap: 8 }, children: [
740
- /* @__PURE__ */ e(g, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((t, i) => /* @__PURE__ */ e(
741
- x,
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: i < n ? "primary.main" : "neutral.light",
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
- i
793
+ r
751
794
  )) }),
752
- /* @__PURE__ */ u(W, { sx: { color: "text.secondary" }, variant: "body2", children: [
753
- n / 4 * 100,
795
+ /* @__PURE__ */ p(W, { sx: { color: "text.secondary" }, variant: "body2", children: [
796
+ e / 4 * 100,
754
797
  "% ",
755
798
  o
756
799
  ] })
757
- ] }), Dt = ({ isOpen: n, onClose: o }) => {
758
- const { visibleFinstrongAccounts: t } = fe(), { incomeBudget: i } = ye(), {
800
+ ] }), He = ({ isOpen: e, onClose: o }) => {
801
+ const { visibleFinstrongAccounts: n } = yt(), { incomeBudget: r } = St(), {
759
802
  accounts: d,
760
- common: l,
761
- finstrong: s
762
- } = S(), { user: r } = Y(), [a, c] = C.useState(null), h = [
803
+ common: c,
804
+ finstrong: i
805
+ } = y(), { user: a } = Q(), [s, l] = b.useState(null), _ = [
763
806
  {
764
- dynamicCopy: s.add_profile_item,
765
- fallbackLabel: s.monthly_income,
766
- icon: /* @__PURE__ */ e(Fe, {}),
767
- key: A.MonthlyIncome,
768
- label: s.monthly_income,
769
- value: i
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: s.add_profile_item,
773
- fallbackLabel: s.date_of_birth,
774
- icon: /* @__PURE__ */ e(Pe, {}),
775
- key: A.DateOfBirth,
776
- label: s.date_of_birth,
777
- value: r.birthday
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: s.add_profile_item,
781
- fallbackLabel: s.credit_score,
782
- icon: /* @__PURE__ */ e(ue, {}),
783
- key: A.CreditScore,
784
- label: s.credit_score,
785
- value: r.credit_score
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: s.connect_your_accounts,
789
- icon: /* @__PURE__ */ e(me, {}),
790
- key: A.Connections,
791
- label: s.connections,
792
- value: t.length > 0 ? b(
793
- s.connected_account,
794
- String(t.length),
795
- t.length > 1 ? s.accounts : s.account
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((m) => bt(m));
799
- return /* @__PURE__ */ u(V, { isOpen: n, onClose: o, title: s.financial_profile, children: [
800
- /* @__PURE__ */ u(g, { sx: { gap: 20, p: 24 }, children: [
801
- /* @__PURE__ */ u(g, { sx: { gap: 8 }, children: [
802
- /* @__PURE__ */ e(H, { children: s.your_financial_profile }),
803
- /* @__PURE__ */ e(y, { children: s.financial_profile_description })
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__ */ e(
806
- Ot,
848
+ /* @__PURE__ */ t(
849
+ Be,
807
850
  {
808
- completeCopy: s.complete,
809
- value: h.reduce((m, _) => m + (_.isComplete ? 1 : 0), 0)
851
+ completeCopy: i.complete,
852
+ value: _.reduce((g, h) => g + (h.isComplete ? 1 : 0), 0)
810
853
  }
811
854
  )
812
855
  ] }),
813
- /* @__PURE__ */ e(ht, { list: h, onClickItem: c }),
814
- /* @__PURE__ */ e(x, { sx: { p: 24 }, children: /* @__PURE__ */ e(
815
- Q,
856
+ /* @__PURE__ */ t(Se, { list: _, onClickItem: l }),
857
+ /* @__PURE__ */ t(C, { sx: { p: 24 }, children: /* @__PURE__ */ t(
858
+ tt,
816
859
  {
817
- description: s.connect_more_accounts_to_view_more_accurate_financial_picture,
860
+ description: i.connect_more_accounts_to_view_more_accurate_financial_picture,
818
861
  isDashboard: !0,
819
- title: s.dont_see_all_your_accounts
862
+ title: i.dont_see_all_your_accounts
820
863
  }
821
864
  ) }),
822
- /* @__PURE__ */ e(
823
- V,
865
+ /* @__PURE__ */ t(
866
+ q,
824
867
  {
825
- isOpen: a === A.MonthlyIncome,
826
- onClose: () => c(null),
827
- title: l.settings,
828
- children: /* @__PURE__ */ e(Je, {})
868
+ isOpen: s === v.MonthlyIncome,
869
+ onClose: () => l(null),
870
+ title: c.settings,
871
+ children: /* @__PURE__ */ t(ee, {})
829
872
  }
830
873
  ),
831
- /* @__PURE__ */ e(It, { isOpen: a === A.DateOfBirth, onClose: () => c(null) }),
832
- /* @__PURE__ */ e(kt, { isOpen: a === A.CreditScore, onClose: () => c(null) }),
833
- /* @__PURE__ */ e(
834
- qe,
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: () => c(null),
837
- showConnectionsWidget: a === A.Connections,
879
+ onClose: () => l(null),
880
+ showConnectionsWidget: s === v.Connections,
838
881
  title: d.manage_connections
839
882
  }
840
883
  )
841
884
  ] });
842
- }, Mt = I(Dt), X = {
843
- creditScore: {
844
- poor: 600,
845
- good: 720
846
- },
847
- daysOfCashOnHand: {
848
- poor: 30,
849
- good: 90
850
- },
851
- debtToIncomeRatio: {
852
- poor: 40,
853
- good: 30
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 d = {
875
- [f.GOOD]: { backgroundColor: "success.lighter", color: "success.main" },
876
- [f.FAIR]: { backgroundColor: "warning.lighter", color: "warning.main" },
877
- [f.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.main" },
878
- [f.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
879
- }[t];
880
- return /* @__PURE__ */ u(
881
- g,
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
- p: 16,
889
- border: "1px solid",
890
- borderColor: "divider",
891
- borderRadius: 2
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__ */ u(x, { sx: { minHeight: 48 }, children: [
895
- /* @__PURE__ */ u(g, { flexDirection: "row", gap: 4, children: [
896
- /* @__PURE__ */ e(y, { fontWeight: 600, sx: { mb: 8 }, truncate: !0, variant: "body1", children: n }),
897
- /* @__PURE__ */ e(
898
- x,
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
- }, Tt = () => {
918
- const { healthScore: n } = $(), { finstrong: o } = S(), { key_indicators_spend: t } = o, i = (r) => {
919
- const { good: a, poor: c } = X.spendToIncomeRatio;
920
- let p = f.MISSING, h = t.ratio_missing_description, m = o.key_indicators_missing;
921
- return r !== null && (r < a ? (p = f.GOOD, h = b(t.ratio_good_description, r), m = o.key_indicators_good) : r >= a && r < c ? (p = f.FAIR, h = b(t.ratio_fair_description, r), m = o.key_indicators_fair) : r >= c && (p = f.OFF_TRACK, h = b(t.ratio_off_track_description, r), m = o.key_indicators_off_track)), {
922
- cardState: p,
923
- description: h,
924
- title: t.ratio_card_title,
925
- stateTitle: m
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 = (r) => {
928
- let a = f.MISSING, c = t.count_missing_description, p = o.key_indicators_missing;
929
- return r !== null && (r === 0 ? (a = f.GOOD, c = t.count_good_description, p = o.key_indicators_good) : r >= 1 && (a = f.OFF_TRACK, c = t.count_off_track_description, p = o.key_indicators_off_track)), {
930
- cardState: a,
931
- description: c,
932
- title: t.count_card_title,
933
- stateTitle: p
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: l, spendFeeCount: s } = C.useMemo(() => {
936
- const r = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, a = i(r), c = d(n.spending_fee_transaction_count);
937
- return { spendToIncomeRatio: a, spendFeeCount: c };
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
- t,
942
- o
1145
+ o,
1146
+ e
943
1147
  ]);
944
- return /* @__PURE__ */ u(g, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
945
- /* @__PURE__ */ e(
946
- B,
1148
+ return /* @__PURE__ */ p(m, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
1149
+ /* @__PURE__ */ t(
1150
+ z,
947
1151
  {
948
- cardState: l.cardState,
949
- description: l.description,
950
- stateTitle: l.stateTitle,
951
- title: l.title
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__ */ e(
955
- B,
1159
+ /* @__PURE__ */ t(
1160
+ z,
956
1161
  {
957
- cardState: s.cardState,
958
- description: s.description,
959
- stateTitle: s.stateTitle,
960
- title: s.title
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
- }, wt = () => {
965
- const { healthScore: n } = $(), { finstrong: o } = S(), { key_indicators_save: t } = o, i = (r) => {
966
- const { good: a, poor: c } = X.daysOfCashOnHand;
967
- let p = f.MISSING, h = t.days_of_cash_missing_description, m = o.key_indicators_missing;
968
- return r !== null && (r >= a ? (p = f.GOOD, h = b(t.days_of_cash_good_description, r), m = o.key_indicators_good) : r < a && r >= c ? (p = f.FAIR, h = b(t.days_of_cash_fair_description, r), m = o.key_indicators_fair) : r < c && (p = f.OFF_TRACK, h = b(t.days_of_cash_off_track_description, r), m = o.key_indicators_off_track)), {
969
- cardState: p,
970
- description: h,
971
- title: t.days_of_cash_title,
972
- stateTitle: m
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 = (r) => {
975
- const { good: a, poor: c } = X.emergencySavings;
976
- let p = f.MISSING, h = t.emergency_savings_missing_description, m = o.key_indicators_missing;
977
- return r !== null && (r >= a ? (p = f.GOOD, h = t.emergency_savings_good_description, m = o.key_indicators_good) : r < a && r >= c ? (p = f.FAIR, h = b(
978
- t.emergency_savings_fair_description,
979
- rt(r, "0,0.00")
980
- ), m = o.key_indicators_fair) : r < c && (p = f.OFF_TRACK, h = t.emergency_savings_off_track_description, m = o.key_indicators_off_track)), {
981
- cardState: p,
982
- description: h,
983
- title: t.emergency_savings_title,
984
- stateTitle: m
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: l, emergencySavings: s } = C.useMemo(() => {
987
- const r = n.months_of_cash_on_hand !== null ? Math.round(n.months_of_cash_on_hand * 30) : null, a = i(r), c = n.emergency_savings_on_hand !== null ? Math.round(n.emergency_savings_on_hand) : null, p = d(c);
988
- return { daysOfCashOnHand: a, emergencySavings: p };
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
- n.months_of_cash_on_hand,
991
- n.emergency_savings_on_hand,
992
- t,
1229
+ e.months_of_cash_on_hand,
1230
+ e.emergency_savings_on_hand,
1231
+ n,
993
1232
  o
994
1233
  ]);
995
- return /* @__PURE__ */ u(g, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
996
- /* @__PURE__ */ e(
997
- B,
1234
+ return /* @__PURE__ */ p(m, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
1235
+ /* @__PURE__ */ t(
1236
+ z,
998
1237
  {
999
- cardState: l.cardState,
1000
- description: l.description,
1001
- stateTitle: l.stateTitle,
1002
- title: l.title
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__ */ e(
1006
- B,
1245
+ /* @__PURE__ */ t(
1246
+ z,
1007
1247
  {
1008
- cardState: s.cardState,
1009
- description: s.description,
1010
- stateTitle: s.stateTitle,
1011
- title: s.title
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
- }, Rt = () => {
1016
- const { healthScore: n } = $(), { finstrong: o } = S(), { key_indicators_borrow: t } = o, { user: i } = Y(), d = (a) => {
1017
- const { good: c, poor: p } = X.debtToIncomeRatio;
1018
- let h = f.MISSING, m = t.manage_debit_missing_description, _ = o.key_indicators_missing;
1019
- return a != null && (a <= c ? (h = f.GOOD, m = t.manage_debit_good_description, _ = o.key_indicators_good) : a > c && a <= p ? (h = f.FAIR, m = b(t.manage_debit_fair_description, a), _ = o.key_indicators_fair) : a > p && (h = f.OFF_TRACK, m = b(
1020
- t.manage_debit_off_track_description,
1021
- a
1022
- ), _ = o.key_indicators_off_track)), {
1023
- cardState: h,
1024
- description: m,
1025
- title: t.manage_debit_title,
1026
- stateTitle: _
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
- }, l = (a) => {
1029
- const { good: c, poor: p } = X.creditScore;
1030
- let h = f.MISSING, m = t.credit_score_missing_description, _ = o.key_indicators_missing;
1031
- return a !== null && (a >= c ? (h = f.GOOD, m = b(t.credit_score_good_description, a), _ = o.key_indicators_good) : a < c && a >= p ? (h = f.FAIR, m = b(t.credit_score_fair_description, a), _ = o.key_indicators_fair) : a < p && (h = f.OFF_TRACK, m = b(
1032
- t.credit_score_off_track_description,
1033
- a
1034
- ), _ = o.key_indicators_off_track)), {
1035
- cardState: h,
1036
- description: m,
1037
- title: t.credit_score_title,
1038
- stateTitle: _
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: s, creditScoreStatus: r } = C.useMemo(() => {
1041
- const a = n.debt_to_income_ratio !== null ? Math.round(n.debt_to_income_ratio * 100) : null, c = d(a), p = l(i.credit_score || null);
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: c,
1044
- creditScoreStatus: p
1310
+ manageDebtStatus: l,
1311
+ creditScoreStatus: u
1045
1312
  };
1046
- }, [n.debt_to_income_ratio, i.credit_score, t, o]);
1047
- return /* @__PURE__ */ u(g, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
1048
- /* @__PURE__ */ e(
1049
- B,
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: s.cardState,
1052
- description: s.description,
1053
- stateTitle: s.stateTitle,
1054
- title: s.title
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__ */ e(
1058
- B,
1325
+ /* @__PURE__ */ t(
1326
+ z,
1059
1327
  {
1060
- cardState: r.cardState,
1061
- description: r.description,
1062
- stateTitle: r.stateTitle,
1063
- title: r.title
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
- }, Ft = () => {
1068
- const [n, o] = C.useState(0), { finstrong: t } = S();
1069
- return /* @__PURE__ */ u(re, { children: [
1070
- /* @__PURE__ */ u(
1071
- nt,
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: (i, d) => o(d),
1344
+ onChange: (r, d) => o(d),
1076
1345
  sx: { mb: 0 },
1077
1346
  textColor: "primary",
1078
- value: n,
1347
+ value: e,
1079
1348
  variant: "fullWidth",
1080
1349
  children: [
1081
- /* @__PURE__ */ e(
1082
- oe,
1350
+ /* @__PURE__ */ t(
1351
+ rt,
1083
1352
  {
1084
1353
  "aria-controls": "spend-details-tabpanel-0",
1085
- icon: /* @__PURE__ */ e(ue, { sx: { mr: 8 } }),
1354
+ icon: /* @__PURE__ */ t(_t, { sx: { mr: 8 } }),
1086
1355
  iconPosition: "start",
1087
1356
  id: "spend-details-tab-0",
1088
- label: t.key_indicators_spend.title,
1357
+ label: n.key_indicators_spend.title,
1089
1358
  sx: { minHeight: 44 }
1090
1359
  }
1091
1360
  ),
1092
- /* @__PURE__ */ e(
1093
- oe,
1361
+ /* @__PURE__ */ t(
1362
+ rt,
1094
1363
  {
1095
1364
  "aria-controls": "save-details-tabpanel-1",
1096
- icon: /* @__PURE__ */ e(Ge, { sx: { mr: 8 } }),
1365
+ icon: /* @__PURE__ */ t(Bt, { sx: { mr: 8 } }),
1097
1366
  iconPosition: "start",
1098
1367
  id: "save-details-tab-1",
1099
- label: t.key_indicators_save.title,
1368
+ label: n.key_indicators_save.title,
1100
1369
  sx: { minHeight: 44 }
1101
1370
  }
1102
1371
  ),
1103
- /* @__PURE__ */ e(
1104
- oe,
1372
+ /* @__PURE__ */ t(
1373
+ rt,
1105
1374
  {
1106
1375
  "aria-controls": "borrow-details-tabpanel-2",
1107
- icon: /* @__PURE__ */ e(Le, { sx: { mr: 8 } }),
1376
+ icon: /* @__PURE__ */ t(Ht, { sx: { mr: 8 } }),
1108
1377
  iconPosition: "start",
1109
1378
  id: "borrow-details-tab-2",
1110
- label: t.key_indicators_borrow.title,
1379
+ label: n.key_indicators_borrow.title,
1111
1380
  sx: { minHeight: 44 }
1112
1381
  }
1113
1382
  )
1114
1383
  ]
1115
1384
  }
1116
1385
  ),
1117
- /* @__PURE__ */ e(ne, { index: 0, name: "spend-details", value: n, children: /* @__PURE__ */ e(Tt, {}) }),
1118
- /* @__PURE__ */ e(ne, { index: 1, name: "save-details", value: n, children: /* @__PURE__ */ e(wt, {}) }),
1119
- /* @__PURE__ */ e(ne, { index: 2, name: "borrow-details", value: n, children: /* @__PURE__ */ e(Rt, {}) })
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
- }, Pt = ({
1122
- additionalContent: n,
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__ */ u(st, { sx: { minHeight: 0 }, children: [
1160
- /* @__PURE__ */ u(pt, { children: [
1161
- /* @__PURE__ */ e(dt, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
1162
- !o && /* @__PURE__ */ e(ct, { sx: { bgcolor: "divider", width: 0.1 } })
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__ */ e(lt, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(y, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: n }) })
1165
- ] }), Lt = ({ report: n }) => {
1166
- const { finstrong: o } = S(), { score_history_drawer_timeline: t } = o, {
1167
- health_score_point_difference: i,
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: l,
1170
- older_spend_to_income_ratio: s,
1171
- newer_spend_to_income_ratio: r,
1172
- older_health_score: a,
1173
- newer_health_score: c,
1174
- newer_score_calculated_at: p
1175
- } = n, h = _e(new Date(p), "MMM d"), m = () => i === 0 ? "info.lighter" : i > 0 ? "success.lighter" : "error.lighter", _ = () => i === 0 ? b(t.stayed_at, a) : i > 0 ? t.less_spending : t.more_spending, R = () => {
1176
- if (i === 0) return null;
1177
- const T = i > 0 ? t.up_from : t.down_from, v = b(T, a, c);
1178
- return /* @__PURE__ */ u(re, { children: [
1179
- /* @__PURE__ */ e(
1180
- he,
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
- v
1421
+ x
1188
1422
  ] });
1189
1423
  };
1190
- return /* @__PURE__ */ e(J, { children: /* @__PURE__ */ u(g, { sx: { backgroundColor: "background.paper" }, children: [
1191
- /* @__PURE__ */ e(x, { sx: { borderBottom: "1px solid", borderBottomColor: "divider", p: 16 }, children: /* @__PURE__ */ u(
1192
- g,
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__ */ e(
1198
- g,
1431
+ /* @__PURE__ */ t(
1432
+ m,
1199
1433
  {
1200
1434
  sx: {
1201
1435
  alignItems: "center",
1202
- backgroundColor: m(),
1436
+ backgroundColor: g(),
1203
1437
  borderRadius: 999,
1204
1438
  height: 48,
1205
1439
  justifyContent: "center",
1206
1440
  minWidth: 48
1207
1441
  },
1208
- children: /* @__PURE__ */ e(y, { sx: { fontWeight: 600 }, variant: "Body", children: i > 0 ? `+${i}` : i })
1442
+ children: /* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: "Body", children: r > 0 ? `+${r}` : r })
1209
1443
  }
1210
1444
  ),
1211
- /* @__PURE__ */ u(g, { sx: { gap: 2, width: "80%" }, children: [
1212
- /* @__PURE__ */ e(W, { fontWeight: 600, variant: "Body", children: _() }),
1213
- /* @__PURE__ */ u(W, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
1214
- h,
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
- R()
1450
+ F()
1217
1451
  ] })
1218
1452
  ] })
1219
1453
  ]
1220
1454
  }
1221
1455
  ) }),
1222
- i !== 0 && /* @__PURE__ */ e(x, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ u(
1223
- it,
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
- [`& .${at.root}:before`]: {
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__ */ e(
1235
- pe,
1468
+ /* @__PURE__ */ t(
1469
+ ut,
1236
1470
  {
1237
- content: b(
1238
- t.spend_to_income_description,
1239
- de(s),
1240
- de(r)
1471
+ content: O(
1472
+ n.spend_to_income_description,
1473
+ pt(i),
1474
+ pt(a)
1241
1475
  )
1242
1476
  }
1243
1477
  ),
1244
- /* @__PURE__ */ e(
1245
- pe,
1478
+ /* @__PURE__ */ t(
1479
+ ut,
1246
1480
  {
1247
- content: b(
1248
- t.credit_score_description,
1249
- l,
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
- }, Et = I(Lt), Wt = ({ isOpen: n, onClose: o }) => {
1260
- const t = G(), { finstrong: i } = S(), { isCopyLoaded: d, isInitialized: l } = z(), { healthScore: s, healthScoreChangeReports: r, augmentedChartData: a } = $();
1261
- if (!d || !l) return /* @__PURE__ */ e(N, {});
1262
- const c = ie(s.health_score || 0, i), p = r.slice().reverse();
1263
- return /* @__PURE__ */ e(
1264
- Gt,
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__ */ e(g, { sx: { pl: 18, backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(
1267
- be,
1500
+ additionalContent: /* @__PURE__ */ t(m, { sx: { pl: 18, backgroundColor: "background.paper" }, children: /* @__PURE__ */ t(
1501
+ bt,
1268
1502
  {
1269
- axisColor: t.palette.divider,
1503
+ axisColor: n.palette.divider,
1270
1504
  baseline: "min",
1271
- colors: [t.palette.primary.main],
1505
+ colors: [n.palette.primary.main],
1272
1506
  curveType: "natural",
1273
- datasets: [a],
1507
+ datasets: [s],
1274
1508
  height: 160,
1275
- labels: [i.key_indicators_label],
1509
+ labels: [r.key_indicators_label],
1276
1510
  margin: { top: 12, left: 24 },
1277
1511
  showArea: !0,
1278
1512
  showAverage: !0,
1279
- title: i.peer_average,
1513
+ title: r.peer_average,
1280
1514
  useCustomMark: !0
1281
1515
  }
1282
1516
  ) }),
1283
- drawerTitle: i.score_history,
1284
- isOpen: n,
1517
+ drawerTitle: r.score_history,
1518
+ isOpen: e,
1285
1519
  loadConnectAccountsCard: !1,
1286
1520
  onClose: o,
1287
- stickyComponent: /* @__PURE__ */ u(
1288
- g,
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__ */ e(x, { children: /* @__PURE__ */ e(
1294
- ve,
1527
+ /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
1528
+ vt,
1295
1529
  {
1296
1530
  arcRadius: 20,
1297
- healthScore: s?.health_score,
1531
+ healthScore: i?.health_score,
1298
1532
  size: "SM"
1299
1533
  }
1300
1534
  ) }),
1301
- /* @__PURE__ */ u(x, { children: [
1302
- /* @__PURE__ */ e(y, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children: c.status }),
1303
- /* @__PURE__ */ e(y, { variant: "caption", children: c.description })
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__ */ e(g, { sx: { gap: 16 }, children: p.map((h, m) => /* @__PURE__ */ e(Et, { report: h }, m)) })
1542
+ children: /* @__PURE__ */ t(m, { sx: { gap: 16 }, children: u.map((_, g) => /* @__PURE__ */ t(on, { report: _ }, g)) })
1309
1543
  }
1310
1544
  );
1311
- }, Bt = I(Wt), Ht = ({ onClick: n }) => {
1312
- const { finstrong: o } = S(), { isCopyLoaded: t } = z();
1313
- return t ? /* @__PURE__ */ u(g, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
1314
- /* @__PURE__ */ e(Ee, { size: 48 }),
1315
- /* @__PURE__ */ u(g, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
1316
- /* @__PURE__ */ e(H, { children: o.missing_data_title }),
1317
- /* @__PURE__ */ e(y, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
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__ */ e(x, { children: /* @__PURE__ */ e(
1320
- q,
1553
+ /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
1554
+ Z,
1321
1555
  {
1322
- endIcon: /* @__PURE__ */ e(j, {}),
1323
- onClick: n,
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__ */ e(N, {});
1336
- }, zt = I(Ht), $t = ({ onBackClick: n, sx: o }) => {
1337
- const t = G(), { visibleAccounts: i } = fe(), { dateRange: d, isDataLoaded: l, loadBudgetData: s, setTheme: r } = ye(), { reloadCategoryTotals: a } = Ke(), { augmentedChartData: c, calculateHealthScore: p, healthScore: h, loadAugmentedChartData: m } = $(), { finstrong: _, connect: R } = S(), { isCopyLoaded: T, isInitialized: v, selectedAccounts: L, setSelectedAccounts: E } = z(), { isMobile: K } = Ce(), [F, w] = C.useState(!1);
1338
- C.useEffect(() => {
1339
- r(t);
1340
- }, []), C.useEffect(() => E(i), [i]), C.useEffect(() => {
1341
- v && (p().finally(), m().finally());
1342
- }, [v]), C.useEffect(() => {
1343
- v && (a(L, d.start, d.end), l || s());
1344
- }, [d, l, v, L]);
1345
- const [O, k] = C.useState(!1), [P, U] = C.useState(!1);
1346
- if (!T || !v) return /* @__PURE__ */ e(N, {});
1347
- const Z = () => {
1348
- }, ee = () => k(!0);
1349
- return /* @__PURE__ */ u(
1350
- mt,
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: i,
1586
+ accountOptions: r,
1353
1587
  actions: [
1354
1588
  {
1355
1589
  iconName: "person",
1356
- label: _.profile,
1357
- onClick: ee
1590
+ label: h.profile,
1591
+ onClick: nt
1358
1592
  }
1359
1593
  ],
1360
1594
  hasDivider: !0,
1361
- onAccountsFilterClick: Z,
1362
- onBackClick: n,
1595
+ onAccountsFilterClick: et,
1596
+ onBackClick: e,
1363
1597
  sx: o,
1364
- title: _.title,
1598
+ title: h.title,
1365
1599
  children: [
1366
- /* @__PURE__ */ u(
1367
- g,
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: K ? 24 : 16,
1607
+ pt: X ? 24 : 16,
1374
1608
  px: 24
1375
1609
  },
1376
1610
  children: [
1377
- /* @__PURE__ */ u(g, { sx: { gap: 24, width: { md: 432 } }, children: [
1378
- /* @__PURE__ */ e(St, {}),
1379
- /* @__PURE__ */ e(
1380
- Q,
1611
+ /* @__PURE__ */ p(m, { sx: { gap: 24, width: { md: 432 } }, children: [
1612
+ /* @__PURE__ */ t(Re, {}),
1613
+ /* @__PURE__ */ t(
1614
+ tt,
1381
1615
  {
1382
- description: _.connect_more_accounts_description,
1383
- title: _.connect_more_accounts_title
1616
+ description: h.connect_more_accounts_description,
1617
+ title: h.connect_more_accounts_title
1384
1618
  }
1385
1619
  )
1386
1620
  ] }),
1387
- /* @__PURE__ */ e(g, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ u(J, { sx: { background: t.palette.background.paper, p: 16 }, children: [
1388
- /* @__PURE__ */ u(g, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
1389
- /* @__PURE__ */ e(H, { children: _.key_indicators }),
1390
- /* @__PURE__ */ e(
1391
- q,
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__ */ e(j, {}),
1394
- onClick: () => U(!0),
1627
+ endIcon: /* @__PURE__ */ t(Y, {}),
1628
+ onClick: () => V(!0),
1395
1629
  sx: {
1396
1630
  fontSize: 13
1397
1631
  },
1398
1632
  variant: "text",
1399
- children: _.whats_changed
1633
+ children: h.whats_changed
1400
1634
  }
1401
1635
  )
1402
1636
  ] }),
1403
- c.length ? /* @__PURE__ */ e(
1404
- be,
1637
+ l.length ? /* @__PURE__ */ t(
1638
+ bt,
1405
1639
  {
1406
- axisColor: t.palette.divider,
1640
+ axisColor: n.palette.divider,
1407
1641
  baseline: "min",
1408
- colors: [t.palette.primary.main],
1642
+ colors: [n.palette.primary.main],
1409
1643
  curveType: "natural",
1410
1644
  customLegendVariant: "XSmall",
1411
- datasets: [c],
1645
+ datasets: [l],
1412
1646
  height: 300,
1413
1647
  isGraphClippingXAxis: !0,
1414
- labelBackgroundColor: t.palette.border.dark,
1415
- labelFontColor: t.palette.common.white,
1416
- labelFontSize: typeof t.typography.XSmall?.fontSize == "string" ? parseFloat(t.typography.XSmall.fontSize) : t.typography.XSmall?.fontSize,
1417
- labels: [_.key_indicators_label],
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: _.peer_average,
1658
+ title: h.peer_average,
1425
1659
  useCustomMark: !0
1426
1660
  }
1427
- ) : /* @__PURE__ */ e(zt, { onClick: () => w(!0) }),
1428
- h.health_score !== null && /* @__PURE__ */ e(Ft, {})
1661
+ ) : /* @__PURE__ */ t(cn, { onClick: () => w(!0) }),
1662
+ _.health_score !== null && /* @__PURE__ */ t(en, {})
1429
1663
  ] }) })
1430
1664
  ]
1431
1665
  }
1432
1666
  ),
1433
- /* @__PURE__ */ e(Mt, { isOpen: O, onClose: () => k(!1) }),
1434
- /* @__PURE__ */ e(
1435
- xe,
1667
+ /* @__PURE__ */ t(We, { isOpen: I, onClose: () => T(!1) }),
1668
+ /* @__PURE__ */ t(
1669
+ Ct,
1436
1670
  {
1437
1671
  onClose: () => w(!1),
1438
- showConnectWidget: F,
1439
- title: R.mini_title
1672
+ showConnectWidget: R,
1673
+ title: F.mini_title
1440
1674
  }
1441
1675
  ),
1442
- /* @__PURE__ */ e(
1443
- Bt,
1676
+ /* @__PURE__ */ t(
1677
+ an,
1444
1678
  {
1445
- isOpen: P,
1446
- onClose: () => U(!1)
1679
+ isOpen: G,
1680
+ onClose: () => V(!1)
1447
1681
  }
1448
1682
  )
1449
1683
  ]
1450
1684
  }
1451
1685
  );
1452
- }, Ho = I($t);
1686
+ }, so = S(ln);
1453
1687
  export {
1454
- Bo as CreditScoreGraph,
1455
- Se as DialScoreCard,
1456
- ve as FinancialStrengthGraph,
1457
- No as FinstrongApi,
1458
- Ko as FinstrongStore,
1459
- Ho as FinstrongWidget
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
  };