@mx-cartographer/experiences 7.2.9-alpha.san3 → 7.2.9-alpha.san4

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