@mx-cartographer/experiences 7.2.9-alpha-finstrong-testing → 7.2.9-alpha-ram1

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