@mx-cartographer/experiences 7.13.21 → 7.13.22-alpha.al0

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