@mx-cartographer/experiences 7.2.14-alpha.san5 → 7.2.14-alpha.san7

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,18 +1,18 @@
1
- import { jsxs as a, Fragment as z, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, Fragment as z, jsx as e } from "react/jsx-runtime";
2
2
  import C from "@mui/material/Box";
3
3
  import u from "@mui/material/Stack";
4
- import { useTheme as E, alpha as fe } from "@mui/material/styles";
4
+ import { useTheme as E, alpha as be } from "@mui/material/styles";
5
5
  import { PieChart as _n, BarPlot as hn } from "@mui/x-charts";
6
6
  import { TrendingUp as gt, ArrowRightAlt as mn, TrendingDown as gn, AccountBalance as yt, ChevronRight as Z, MultilineChart as bt, CreditCard as Ke, CheckCircle as yn, Cancel as bn, Savings as fn, ContentCopy as xn, Add as ft, Cardiology as Sn, Payments as Cn, CalendarMonth as vn, ExpandMore as wn } from "@mxenabled/mx-icons";
7
7
  import { P as k, H3 as N, Text as I, InstitutionLogo as xt, H2 as Pe, MerchantLogo as kn, Icon as Mn } from "@mxenabled/mxui";
8
- import { g as Dn, a as In, r as rt, b as An, c as je, d as St, C as ve, e as we, f as Tn, h as On, i as Rn, j as Ct, k as at, l as Fn, m as it, n as Pn, o as vt, p as Bn, q as wt, s as Te, t as Ln, u as Wn, v as $n, w as zn, A as ee, x as En, P as Gn } from "../FinstrongStore-1MFI6RcM.mjs";
8
+ import { g as Dn, a as In, r as rt, b as An, c as je, d as St, C as Ce, e as ve, f as Tn, h as On, i as Rn, j as Ct, k as at, l as Fn, m as it, n as Pn, o as vt, p as Bn, q as wt, s as Te, t as Ln, u as Wn, v as $n, w as zn, A as ee, x as En, P as Gn } from "../FinstrongStore-1MFI6RcM.mjs";
9
9
  import { y as Gi, F as Hi } from "../FinstrongStore-1MFI6RcM.mjs";
10
10
  import * as st from "d3";
11
11
  import { observer as S } from "mobx-react-lite";
12
- import { u as v, b as j, p as Q, z as F, q as Hn, a as kt, d as Me, m as Ye, g as Nn, f as Kn, j as Ve, h as jn, i as Yn } from "../hooks-C41HAxM5.mjs";
12
+ import { u as v, b as j, p as Q, z as F, q as Hn, a as kt, d as ke, m as Ye, g as Nn, f as Kn, j as Ve, h as jn, i as Yn } from "../hooks-C41HAxM5.mjs";
13
13
  import { L as J } from "../Loader-DUaFpDGv.mjs";
14
14
  import m from "react";
15
- import W from "@mui/material/Button";
15
+ import $ from "@mui/material/Button";
16
16
  import K from "@mui/material/Card";
17
17
  import { L as Xe } from "../LineChart-Ct9DNmhS.mjs";
18
18
  import { C as Mt } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
@@ -26,9 +26,9 @@ import { u as It } from "../useDimensions-27p2evRx.mjs";
26
26
  import Un from "@mui/material/Chip";
27
27
  import { D as te } from "../Drawer-BEtCk82g.mjs";
28
28
  import ne from "@mui/material/Divider";
29
- import ye from "@mui/material/ListItem";
29
+ import ge from "@mui/material/ListItem";
30
30
  import At from "@mui/material/ListItemAvatar";
31
- import be from "@mui/material/ListItemText";
31
+ import ye from "@mui/material/ListItemText";
32
32
  import { g as Tt } from "../AccountFields-CPkGZ3SD.mjs";
33
33
  import Re from "@mui/material/List";
34
34
  import Zn from "@mui/material/ListItemButton";
@@ -77,14 +77,14 @@ const zo = ({
77
77
  dataIndex: r,
78
78
  arcColor: n,
79
79
  arcStartAngle: o,
80
- totalAngularSpan: s,
81
- centerX: i,
82
- centerY: c,
83
- arcRadius: p,
80
+ totalAngularSpan: c,
81
+ centerX: a,
82
+ centerY: s,
83
+ arcRadius: d,
84
84
  innerArcRadius: l,
85
- outterArcRadius: d,
86
- progressEndAngle: _,
87
- unitsPerSegment: h,
85
+ outterArcRadius: p,
86
+ progressEndAngle: h,
87
+ unitsPerSegment: _,
88
88
  isFinacialStrengthGraph: b
89
89
  }) => {
90
90
  const f = E(), w = [
@@ -94,17 +94,17 @@ const zo = ({
94
94
  { offset: "83.46%", color: f.palette.chartMono.chartMono5 }
95
95
  ], [y, D] = Dn(
96
96
  t,
97
- s,
97
+ c,
98
98
  o,
99
99
  r
100
100
  ), [g, x] = In(
101
101
  y,
102
102
  D,
103
103
  r,
104
- h,
105
- _
106
- ), M = st.arc().innerRadius(l).outerRadius(d).startAngle(y).endAngle(D).padAngle(0.02).cornerRadius(8), $ = st.arc().innerRadius(l).outerRadius(d).startAngle(g).endAngle(x).padAngle(0.02).cornerRadius(8);
107
- return /* @__PURE__ */ a(z, { children: [
104
+ _,
105
+ h
106
+ ), M = st.arc().innerRadius(l).outerRadius(p).startAngle(y).endAngle(D).padAngle(0.02).cornerRadius(8), W = st.arc().innerRadius(l).outerRadius(p).startAngle(g).endAngle(x).padAngle(0.02).cornerRadius(8);
107
+ return /* @__PURE__ */ i(z, { children: [
108
108
  /* @__PURE__ */ e(
109
109
  "path",
110
110
  {
@@ -112,17 +112,17 @@ const zo = ({
112
112
  fill: b ? f.palette.divider : n
113
113
  }
114
114
  ),
115
- b && /* @__PURE__ */ e("path", { d: $({}), fill: "url(#arcGradient)" }),
115
+ b && /* @__PURE__ */ e("path", { d: W({}), fill: "url(#arcGradient)" }),
116
116
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
117
117
  "linearGradient",
118
118
  {
119
- gradientTransform: `rotate(5, ${i}, ${c})`,
119
+ gradientTransform: `rotate(5, ${a}, ${s})`,
120
120
  gradientUnits: "userSpaceOnUse",
121
121
  id: "arcGradient",
122
- x1: i + p * 0.8 * Math.cos(Math.PI / 1.35),
123
- x2: i - p * 0.8 * Math.cos(Math.PI / 1.35),
124
- y1: c + p * 0.8 * Math.sin(Math.PI / 1.35),
125
- y2: c - p * 0.8 * Math.sin(Math.PI / 1.35),
122
+ x1: a + d * 0.8 * Math.cos(Math.PI / 1.35),
123
+ x2: a - d * 0.8 * Math.cos(Math.PI / 1.35),
124
+ y1: s + d * 0.8 * Math.sin(Math.PI / 1.35),
125
+ y2: s - d * 0.8 * Math.sin(Math.PI / 1.35),
126
126
  children: w.map((G, H) => /* @__PURE__ */ e("stop", { offset: G.offset, stopColor: G.color }, H))
127
127
  }
128
128
  ) })
@@ -132,21 +132,21 @@ const zo = ({
132
132
  healthScore: r,
133
133
  size: n = "L",
134
134
  dialScoreData: o,
135
- minValue: s = 0,
136
- maxValue: i = 100,
137
- markerColor: c,
138
- healthScoreStatus: p,
135
+ minValue: c = 0,
136
+ maxValue: a = 100,
137
+ markerColor: s,
138
+ healthScoreStatus: d,
139
139
  footerCenterContent: l,
140
- footerLeftContent: d,
141
- footerRightContent: _,
142
- isFinacialStrengthGraph: h = !1
140
+ footerLeftContent: p,
141
+ footerRightContent: h,
142
+ isFinacialStrengthGraph: _ = !1
143
143
  }) => {
144
- const b = E(), f = -Math.PI / 1.35, w = Math.PI / 1.35, y = w - f, D = y / (i - s), g = (r - s) * D, x = f + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, $ = t, G = t * (1 - M), H = $ * 2.5, T = H / 2, V = H / 2, re = (G + $) / 2, ae = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [Ce, ie] = An(re, x, ae), X = r / 25, se = {
144
+ const b = E(), f = -Math.PI / 1.35, w = Math.PI / 1.35, y = w - f, D = y / (a - c), g = (r - c) * D, x = f + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, W = t, G = t * (1 - M), H = W * 2.5, T = H / 2, V = H / 2, re = (G + W) / 2, ae = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [Se, ie] = An(re, x, ae), X = r / 25, se = {
145
145
  L: { markerSize: 12, healthScoreFontSize: 64 },
146
146
  M: { markerSize: 10, healthScoreFontSize: 48 },
147
147
  SM: { markerSize: 3, healthScoreFontSize: 14 }
148
148
  }, ce = l === 0 ? mn : gn;
149
- return /* @__PURE__ */ a(
149
+ return /* @__PURE__ */ i(
150
150
  u,
151
151
  {
152
152
  sx: {
@@ -165,7 +165,7 @@ const zo = ({
165
165
  {
166
166
  data: o,
167
167
  innerRadius: G,
168
- outerRadius: $,
168
+ outerRadius: W,
169
169
  startAngle: Math.round(rt(f)),
170
170
  // Use Math.degrees to convert
171
171
  endAngle: Math.round(rt(w))
@@ -177,19 +177,19 @@ const zo = ({
177
177
  legend: { hidden: !0 }
178
178
  },
179
179
  slots: {
180
- pieArc: (he) => /* @__PURE__ */ e(
180
+ pieArc: (Me) => /* @__PURE__ */ e(
181
181
  zo,
182
182
  {
183
- arcColor: he.color,
183
+ arcColor: Me.color,
184
184
  arcRadius: t,
185
185
  arcStartAngle: f,
186
186
  centerX: T,
187
187
  centerY: V,
188
- dataIndex: he.dataIndex,
188
+ dataIndex: Me.dataIndex,
189
189
  dialScoreData: o,
190
190
  innerArcRadius: G,
191
- isFinacialStrengthGraph: h,
192
- outterArcRadius: $,
191
+ isFinacialStrengthGraph: _,
192
+ outterArcRadius: W,
193
193
  progressEndAngle: x,
194
194
  totalAngularSpan: y,
195
195
  unitsPerSegment: X
@@ -202,14 +202,14 @@ const zo = ({
202
202
  }
203
203
  },
204
204
  width: H,
205
- children: r >= s && r <= i && /* @__PURE__ */ e(
205
+ children: r >= c && r <= a && /* @__PURE__ */ e(
206
206
  "circle",
207
207
  {
208
- cx: T + Ce,
208
+ cx: T + Se,
209
209
  cy: V + ie,
210
210
  fill: b.palette.common.white,
211
211
  r: se[n].markerSize,
212
- stroke: h ? "url(#arcGradient)" : c,
212
+ stroke: _ ? "url(#arcGradient)" : s,
213
213
  strokeWidth: n !== "SM" ? 3 : 1
214
214
  }
215
215
  )
@@ -225,7 +225,7 @@ const zo = ({
225
225
  transform: "translate(-50%, -50%)",
226
226
  textAlign: "center"
227
227
  },
228
- children: /* @__PURE__ */ a(
228
+ children: /* @__PURE__ */ i(
229
229
  u,
230
230
  {
231
231
  spacing: 1,
@@ -242,7 +242,7 @@ const zo = ({
242
242
  children: r
243
243
  }
244
244
  ),
245
- n !== "SM" && /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: p })
245
+ n !== "SM" && /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: d })
246
246
  ]
247
247
  }
248
248
  )
@@ -258,7 +258,7 @@ const zo = ({
258
258
  transform: "translate(-50%, -50%)",
259
259
  textAlign: "center"
260
260
  },
261
- children: typeof l == "number" ? /* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
261
+ children: typeof l == "number" ? /* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
262
262
  l > 0 ? /* @__PURE__ */ e(gt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(ce, { size: 16, sx: { color: "text.secondary" } }),
263
263
  /* @__PURE__ */ e(
264
264
  k,
@@ -274,7 +274,7 @@ const zo = ({
274
274
  ] }) : /* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle2", children: l })
275
275
  }
276
276
  ),
277
- d !== void 0 && /* @__PURE__ */ e(
277
+ p !== void 0 && /* @__PURE__ */ e(
278
278
  C,
279
279
  {
280
280
  sx: {
@@ -285,10 +285,10 @@ const zo = ({
285
285
  transform: "translate(-50%, -50%)",
286
286
  textAlign: "left"
287
287
  },
288
- children: /* @__PURE__ */ e(k, { variant: "body1", children: d })
288
+ children: /* @__PURE__ */ e(k, { variant: "body1", children: p })
289
289
  }
290
290
  ),
291
- _ !== void 0 && /* @__PURE__ */ e(
291
+ h !== void 0 && /* @__PURE__ */ e(
292
292
  C,
293
293
  {
294
294
  sx: {
@@ -298,7 +298,7 @@ const zo = ({
298
298
  transform: "translate(-50%, -50%)",
299
299
  textAlign: "right"
300
300
  },
301
- children: /* @__PURE__ */ e(k, { variant: "body1", children: _ })
301
+ children: /* @__PURE__ */ e(k, { variant: "body1", children: h })
302
302
  }
303
303
  )
304
304
  ]
@@ -306,20 +306,20 @@ const zo = ({
306
306
  );
307
307
  }, Et = S(
308
308
  ({ arcRadius: t, size: r = "L", healthScore: n, footerCenterContent: o }) => {
309
- const s = [
309
+ const c = [
310
310
  { id: 1, label: "Group A", value: 25 },
311
311
  { id: 2, label: "Group B", value: 25 },
312
312
  { id: 3, label: "Group C", value: 25 },
313
313
  { id: 4, label: "Group D", value: 25 }
314
- ], { finstrong: i } = v(), c = je(n, i);
314
+ ], { finstrong: a } = v(), s = je(n, a);
315
315
  return /* @__PURE__ */ e(
316
316
  zt,
317
317
  {
318
318
  arcRadius: t,
319
- dialScoreData: s,
320
- footerCenterContent: r === "L" ? i.footer_center_content_updated_just_now : o,
319
+ dialScoreData: c,
320
+ footerCenterContent: r === "L" ? a.footer_center_content_updated_just_now : o,
321
321
  healthScore: n,
322
- healthScoreStatus: c.status,
322
+ healthScoreStatus: s.status,
323
323
  isFinacialStrengthGraph: !0,
324
324
  size: r
325
325
  }
@@ -331,60 +331,60 @@ const zo = ({
331
331
  size: r = "L",
332
332
  healthScore: n,
333
333
  maxValue: o = 850,
334
- minValue: s = 300,
335
- footerCenterContent: i
334
+ minValue: c = 300,
335
+ footerCenterContent: a
336
336
  }) => {
337
- const p = E().palette.mode === "dark", l = [
337
+ const d = E().palette.mode === "dark", l = [
338
338
  {
339
339
  id: 1,
340
340
  label: "Poor",
341
341
  value: 29,
342
- color: p ? ve.POOR : we.POOR
342
+ color: d ? Ce.POOR : ve.POOR
343
343
  },
344
344
  {
345
345
  id: 2,
346
346
  label: "Fair",
347
347
  value: 25,
348
- color: p ? ve.FAIR : we.FAIR
348
+ color: d ? Ce.FAIR : ve.FAIR
349
349
  },
350
350
  {
351
351
  id: 3,
352
352
  label: "Good",
353
353
  value: 17,
354
- color: p ? ve.GOOD : we.GOOD
354
+ color: d ? Ce.GOOD : ve.GOOD
355
355
  },
356
356
  {
357
357
  id: 4,
358
358
  label: "Very Good",
359
359
  value: 17,
360
- color: p ? ve.VERY_GOOD : we.VERY_GOOD
360
+ color: d ? Ce.VERY_GOOD : ve.VERY_GOOD
361
361
  },
362
362
  {
363
363
  id: 5,
364
364
  label: "Exceptional",
365
365
  value: 12,
366
- color: p ? ve.EXCEPTIONAL : we.EXCEPTIONAL
366
+ color: d ? Ce.EXCEPTIONAL : ve.EXCEPTIONAL
367
367
  }
368
- ], { finstrong: d } = v(), { isCopyLoaded: _ } = j();
369
- if (!_) return /* @__PURE__ */ e(J, {});
370
- const { status: h, color: b = "none" } = St(
368
+ ], { finstrong: p } = v(), { isCopyLoaded: h } = j();
369
+ if (!h) return /* @__PURE__ */ e(J, {});
370
+ const { status: _, color: b = "none" } = St(
371
371
  n,
372
- p,
373
- d.credit_score_status
372
+ d,
373
+ p.credit_score_status
374
374
  );
375
375
  return /* @__PURE__ */ e(
376
376
  zt,
377
377
  {
378
378
  arcRadius: t,
379
379
  dialScoreData: l,
380
- footerCenterContent: i,
381
- footerLeftContent: s,
380
+ footerCenterContent: a,
381
+ footerLeftContent: c,
382
382
  footerRightContent: o,
383
383
  healthScore: n,
384
- healthScoreStatus: h,
384
+ healthScoreStatus: _,
385
385
  markerColor: b,
386
386
  maxValue: o,
387
- minValue: s,
387
+ minValue: c,
388
388
  size: r
389
389
  }
390
390
  );
@@ -394,13 +394,13 @@ const zo = ({
394
394
  isDashboard: r = !1,
395
395
  hasIcon: n = !0,
396
396
  buttonText: o,
397
- title: s,
398
- titleDrawer: i,
399
- description: c,
400
- sx: p
397
+ title: c,
398
+ titleDrawer: a,
399
+ description: s,
400
+ sx: d
401
401
  }) => {
402
- const [l, d] = m.useState(!1), { connect: _, finstrong: h } = v();
403
- return t ? /* @__PURE__ */ a(
402
+ const [l, p] = m.useState(!1), { connect: h, finstrong: _ } = v();
403
+ return t ? /* @__PURE__ */ i(
404
404
  K,
405
405
  {
406
406
  sx: {
@@ -408,10 +408,10 @@ const zo = ({
408
408
  pt: 18,
409
409
  px: 24,
410
410
  width: "100%",
411
- ...p
411
+ ...d
412
412
  },
413
413
  children: [
414
- /* @__PURE__ */ a(
414
+ /* @__PURE__ */ i(
415
415
  u,
416
416
  {
417
417
  sx: {
@@ -420,7 +420,7 @@ const zo = ({
420
420
  },
421
421
  children: [
422
422
  n && /* @__PURE__ */ e(yt, { sx: { height: 20, width: 20 } }),
423
- /* @__PURE__ */ e(N, { className: "connect-more-accounts-title", sx: { ...r && { fontSize: 15 } }, children: s || h.connect_more_accounts_title })
423
+ /* @__PURE__ */ e(N, { className: "connect-more-accounts-title", sx: { ...r && { fontSize: 15 } }, children: c || _.connect_more_accounts_title })
424
424
  ]
425
425
  }
426
426
  ),
@@ -430,33 +430,33 @@ const zo = ({
430
430
  className: "connect-more-accounts-description",
431
431
  sx: { color: "text.secondary", mt: 8 },
432
432
  variant: "subtitle1",
433
- children: c || h.connect_more_accounts_description
433
+ children: s || _.connect_more_accounts_description
434
434
  }
435
435
  ),
436
436
  /* @__PURE__ */ e(
437
- W,
437
+ $,
438
438
  {
439
439
  endIcon: /* @__PURE__ */ e(Z, {}),
440
- onClick: () => d(!0),
440
+ onClick: () => p(!0),
441
441
  size: "small",
442
442
  sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
443
- children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body2", children: o || h.connect_more_accounts_button })
443
+ children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body2", children: o || _.connect_more_accounts_button })
444
444
  }
445
445
  ),
446
446
  t === "connectDrawer" && /* @__PURE__ */ e(
447
447
  oe,
448
448
  {
449
- onClose: () => d(!1),
449
+ onClose: () => p(!1),
450
450
  showConnectWidget: l,
451
- title: i || _.mini_title
451
+ title: a || h.mini_title
452
452
  }
453
453
  ),
454
454
  t === "connectionsDrawer" && /* @__PURE__ */ e(
455
455
  Mt,
456
456
  {
457
- onClose: () => d(!1),
457
+ onClose: () => p(!1),
458
458
  showConnectionsWidget: l,
459
- title: i || _.mini_title
459
+ title: a || h.mini_title
460
460
  }
461
461
  )
462
462
  ]
@@ -465,37 +465,37 @@ const zo = ({
465
465
  };
466
466
  var _e = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(_e || {});
467
467
  const Go = ({ isOpen: t, onClose: r }) => {
468
- const { common: n, finstrong: o } = v(), { isMobile: s } = Ue(), { updateUser: i, user: c } = Q(), [p, l] = m.useState(c.credit_score || 0), d = !isNaN(p), _ = () => {
469
- r(), setTimeout(() => l(c.credit_score || 0), 300);
470
- }, h = () => {
471
- !p || p === c.credit_score || i({ ...c, credit_score: p });
468
+ const { common: n, finstrong: o } = v(), { isMobile: c } = Ue(), { updateUser: a, user: s } = Q(), [d, l] = m.useState(s.credit_score || 0), p = !isNaN(d), h = () => {
469
+ r(), setTimeout(() => l(s.credit_score || 0), 300);
470
+ }, _ = () => {
471
+ !d || d === s.credit_score || a({ ...s, credit_score: d });
472
472
  };
473
473
  return /* @__PURE__ */ e(
474
474
  Vn,
475
475
  {
476
476
  copy: { close_aria: n.close_aria, title: o.edit_credit_score },
477
- disablePrimaryButton: !p || !d,
477
+ disablePrimaryButton: !d || !p,
478
478
  isOpen: t,
479
479
  maxWidth: "xs",
480
- onClose: _,
481
- onPrimaryAction: h,
480
+ onClose: h,
481
+ onPrimaryAction: _,
482
482
  primaryColor: "primary",
483
483
  primaryText: n.save_button,
484
484
  sx: {
485
485
  "& .MuiDialog-paper": {
486
- minWidth: s ? "100%" : 400
486
+ minWidth: c ? "100%" : 400
487
487
  }
488
488
  },
489
489
  children: /* @__PURE__ */ e(
490
490
  "form",
491
491
  {
492
492
  onSubmit: (b) => {
493
- b.preventDefault(), h(), _();
493
+ b.preventDefault(), _(), h();
494
494
  },
495
495
  children: /* @__PURE__ */ e(
496
496
  Oe,
497
497
  {
498
- error: !d,
498
+ error: !p,
499
499
  fullWidth: !0,
500
500
  inputMode: "numeric",
501
501
  inputProps: {
@@ -503,7 +503,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
503
503
  pattern: "[0-9]*"
504
504
  },
505
505
  onChange: (b) => l(Number(b.target.value)),
506
- value: d ? p : ""
506
+ value: p ? d : ""
507
507
  }
508
508
  )
509
509
  }
@@ -514,11 +514,11 @@ const Go = ({ isOpen: t, onClose: r }) => {
514
514
  credit_over_time_title: "Your Credit Over Time",
515
515
  credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
516
516
  }, Ho = ({ chartFor: t }) => {
517
- const r = E(), n = r.palette.mode === "dark", { monthlySummaries: o } = F(), { user: s } = Q(), { finstrong: i } = v(), [c, { width: p }] = It(), l = {
517
+ const r = E(), n = r.palette.mode === "dark", { monthlySummaries: o } = F(), { user: c } = Q(), { finstrong: a } = v(), [s, { width: d }] = It(), l = {
518
518
  savingsOverTime: {
519
519
  icon: /* @__PURE__ */ e(gt, { size: 48, sx: { marginBottom: 8 } }),
520
- title: i.key_indicators_save.zero_state_title,
521
- description: i.key_indicators_save.zero_state_description
520
+ title: a.key_indicators_save.zero_state_title,
521
+ description: a.key_indicators_save.zero_state_description
522
522
  },
523
523
  debtOverTime: {
524
524
  icon: /* @__PURE__ */ e(bt, { size: 48, sx: { marginBottom: 8 } }),
@@ -530,30 +530,30 @@ const Go = ({ isOpen: t, onClose: r }) => {
530
530
  title: ze.credit_over_time_title,
531
531
  description: ze.credit_over_time_zero_state_desc
532
532
  }
533
- }[t], _ = {
533
+ }[t], h = {
534
534
  savingsOverTime: {
535
- title: i.key_indicators_save.savings_over_time,
535
+ title: a.key_indicators_save.savings_over_time,
536
536
  valueKey: "available_cash"
537
537
  },
538
538
  debtOverTime: {
539
- title: i.key_indicators_borrow.have_manageable_debt_drawer.debt_over_time,
539
+ title: a.key_indicators_borrow.have_manageable_debt_drawer.debt_over_time,
540
540
  valueKey: "debt_balance"
541
541
  },
542
542
  creditOverTime: {
543
543
  title: ze.credit_over_time_title,
544
544
  valueKey: "credit_score"
545
545
  }
546
- }[t], h = Tn(o, _.valueKey), b = Math.max(...o.map((M) => M[_.valueKey])), f = () => b >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : b >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: w, leftMargin: y } = f(), D = _.title, g = t === "creditOverTime";
546
+ }[t], _ = Tn(o, h.valueKey), b = Math.max(...o.map((M) => M[h.valueKey])), f = () => b >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : b >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: w, leftMargin: y } = f(), D = h.title, g = t === "creditOverTime";
547
547
  let x;
548
548
  if (g) {
549
549
  const { color: M } = St(
550
- s?.credit_score ?? 0,
550
+ c?.credit_score ?? 0,
551
551
  n,
552
- i.credit_score_status
552
+ a.credit_score_status
553
553
  );
554
554
  x = M;
555
555
  }
556
- return /* @__PURE__ */ e(K, { ref: c, sx: { backgroundColor: "background.paper" }, children: h.length >= 1 ? /* @__PURE__ */ a(u, { gap: 8, sx: { pl: 18 }, children: [
556
+ return /* @__PURE__ */ e(K, { ref: s, sx: { backgroundColor: "background.paper" }, children: _.length >= 1 ? /* @__PURE__ */ i(u, { gap: 8, sx: { pl: 18 }, children: [
557
557
  /* @__PURE__ */ e(k, { sx: { pb: 8, pt: 16 }, variant: "h3", children: D }),
558
558
  /* @__PURE__ */ e(
559
559
  Xe,
@@ -564,16 +564,16 @@ const Go = ({ isOpen: t, onClose: r }) => {
564
564
  chartFor: t,
565
565
  colors: [r.palette.primary.main],
566
566
  curveType: g ? "linear" : "natural",
567
- datasets: h ? [h] : [],
567
+ datasets: _ ? [_] : [],
568
568
  height: 244,
569
569
  labelFontColor: g ? "text.primary" : "",
570
570
  labelFontSize: g ? 13 : void 0,
571
- labels: [i.key_indicators_label],
571
+ labels: [a.key_indicators_label],
572
572
  margin: { left: y, top: g ? 25 : 15, right: 20 },
573
573
  markStyles: (M) => g ? {
574
574
  markLabelStyles: {
575
575
  marginLeft: 16,
576
- transform: M === h.length - 1 ? "translateX(-16px)" : "translateX(16px)",
576
+ transform: M === _.length - 1 ? "translateX(-16px)" : "translateX(16px)",
577
577
  fontWeight: 600
578
578
  }
579
579
  } : {},
@@ -588,10 +588,10 @@ const Go = ({ isOpen: t, onClose: r }) => {
588
588
  showYAxisTicks: g,
589
589
  useCustomMark: !0,
590
590
  valueFormatterString: g ? void 0 : w,
591
- width: p < 342 ? p - 48 : 342
591
+ width: d < 342 ? d - 48 : 342
592
592
  }
593
593
  )
594
- ] }) : /* @__PURE__ */ a(u, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
594
+ ] }) : /* @__PURE__ */ i(u, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
595
595
  l.icon,
596
596
  /* @__PURE__ */ e(k, { fontWeight: 600, variant: "body1", children: l.title }),
597
597
  /* @__PURE__ */ e(k, { align: "center", variant: "subtitle1", children: l.description })
@@ -599,8 +599,8 @@ const Go = ({ isOpen: t, onClose: r }) => {
599
599
  }, Qe = S(Ho), No = {
600
600
  updated_score: "Updated Score"
601
601
  }, Ko = () => {
602
- const { healthScoreChange: t } = F(), { user: r } = Q(), { availableWidth: n } = Hn(), { isSmallMobile: o } = Ue(n), [s, i] = m.useState(!1);
603
- return /* @__PURE__ */ a(u, { sx: { gap: 28 }, children: [
602
+ const { healthScoreChange: t } = F(), { user: r } = Q(), { availableWidth: n } = Hn(), { isSmallMobile: o } = Ue(n), [c, a] = m.useState(!1);
603
+ return /* @__PURE__ */ i(u, { sx: { gap: 28 }, children: [
604
604
  /* @__PURE__ */ e(
605
605
  Eo,
606
606
  {
@@ -610,8 +610,8 @@ const Go = ({ isOpen: t, onClose: r }) => {
610
610
  size: o ? "M" : "L"
611
611
  }
612
612
  ),
613
- /* @__PURE__ */ e(W, { onClick: () => i(!0), variant: "contained", children: No.updated_score }),
614
- /* @__PURE__ */ e(Gt, { isOpen: s, onClose: () => i(!1) }),
613
+ /* @__PURE__ */ e($, { onClick: () => a(!0), variant: "contained", children: No.updated_score }),
614
+ /* @__PURE__ */ e(Gt, { isOpen: c, onClose: () => a(!1) }),
615
615
  /* @__PURE__ */ e(Qe, { chartFor: "creditOverTime" })
616
616
  ] });
617
617
  }, jo = S(Ko), Le = ({ status: t }) => {
@@ -646,7 +646,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
646
646
  keep_strong_credit_score: "Keep a Strong Credit Score"
647
647
  }, Vo = () => {
648
648
  const { user: t } = Q(), r = Ct(t.credit_score ?? null);
649
- return /* @__PURE__ */ a(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
649
+ return /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
650
650
  /* @__PURE__ */ e(N, { children: Yo.keep_strong_credit_score }),
651
651
  /* @__PURE__ */ e(Le, { status: r })
652
652
  ] });
@@ -655,18 +655,18 @@ const Go = ({ isOpen: t, onClose: r }) => {
655
655
  connectTitle: r,
656
656
  connectDescription: n,
657
657
  children: o,
658
- description: s,
659
- drawerTitle: i,
660
- isOpen: c,
661
- loadConnectAccountsCard: p = !0,
658
+ description: c,
659
+ drawerTitle: a,
660
+ isOpen: s,
661
+ loadConnectAccountsCard: d = !0,
662
662
  onClose: l,
663
- stickyComponent: d,
664
- title: _,
665
- drawerType: h
663
+ stickyComponent: p,
664
+ title: h,
665
+ drawerType: _
666
666
  }) => {
667
667
  const { finstrong: b } = v(), { isCopyLoaded: f } = j();
668
- return f ? /* @__PURE__ */ a(te, { isOpen: c, onClose: l, title: i || b.key_indicators, children: [
669
- (_ || s) && /* @__PURE__ */ a(
668
+ return f ? /* @__PURE__ */ i(te, { isOpen: s, onClose: l, title: a || b.key_indicators, children: [
669
+ (h || c) && /* @__PURE__ */ i(
670
670
  u,
671
671
  {
672
672
  sx: {
@@ -675,12 +675,12 @@ const Go = ({ isOpen: t, onClose: r }) => {
675
675
  p: 24
676
676
  },
677
677
  children: [
678
- _ && typeof _ == "string" ? /* @__PURE__ */ e(N, { children: _ }) : _,
679
- s && /* @__PURE__ */ e(k, { sx: { lineHeight: "24px" }, children: s })
678
+ h && typeof h == "string" ? /* @__PURE__ */ e(N, { children: h }) : h,
679
+ c && /* @__PURE__ */ e(k, { sx: { lineHeight: "24px" }, children: c })
680
680
  ]
681
681
  }
682
682
  ),
683
- d && /* @__PURE__ */ e(
683
+ p && /* @__PURE__ */ e(
684
684
  C,
685
685
  {
686
686
  sx: {
@@ -688,17 +688,17 @@ const Go = ({ isOpen: t, onClose: r }) => {
688
688
  top: 0,
689
689
  zIndex: 1
690
690
  },
691
- children: d
691
+ children: p
692
692
  }
693
693
  ),
694
694
  t && /* @__PURE__ */ e(C, { children: t }),
695
- /* @__PURE__ */ a(u, { sx: { p: 24, gap: 24 }, children: [
695
+ /* @__PURE__ */ i(u, { sx: { p: 24, gap: 24 }, children: [
696
696
  o,
697
- p && /* @__PURE__ */ e(
697
+ d && /* @__PURE__ */ e(
698
698
  Be,
699
699
  {
700
700
  description: n,
701
- drawerType: h,
701
+ drawerType: _,
702
702
  isDashboard: !0,
703
703
  sx: { backgroundColor: "background.paper" },
704
704
  title: r
@@ -711,49 +711,49 @@ const Go = ({ isOpen: t, onClose: r }) => {
711
711
  shouldShowBalance: r = !0,
712
712
  loadAccounts: n
713
713
  }) => {
714
- const { config: o } = kt(), { accounts: s } = v(), { selectedAccounts: i } = j(), c = m.useCallback(
714
+ const { config: o } = kt(), { accounts: c } = v(), { selectedAccounts: a } = j(), s = m.useCallback(
715
715
  (l) => {
716
716
  t?.(l);
717
717
  },
718
718
  [t]
719
- ), p = m.useMemo(
720
- () => Array.from(new Set(i.map((l) => l.account_type))).filter(
719
+ ), d = m.useMemo(
720
+ () => Array.from(new Set(a.map((l) => l.account_type))).filter(
721
721
  (l) => n ? n.includes(l) : !0
722
722
  ),
723
- [i, n]
723
+ [a, n]
724
724
  );
725
- return i.length ? /* @__PURE__ */ e(m.Fragment, { children: p.map((l) => {
726
- const { accountsForType: d, totalBalanceForType: _ } = i.reduce(
727
- (h, b) => (b.account_type === l && (h.accountsForType.push(b), h.totalBalanceForType += b.balance || 0), h),
725
+ return a.length ? /* @__PURE__ */ e(m.Fragment, { children: d.map((l) => {
726
+ const { accountsForType: p, totalBalanceForType: h } = a.reduce(
727
+ (_, b) => (b.account_type === l && (_.accountsForType.push(b), _.totalBalanceForType += b.balance || 0), _),
728
728
  { accountsForType: [], totalBalanceForType: 0 }
729
729
  );
730
- return /* @__PURE__ */ a(
730
+ return /* @__PURE__ */ i(
731
731
  Re,
732
732
  {
733
- subheader: /* @__PURE__ */ e(Qn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ a(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
734
- /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: s.account_types[l] }),
735
- r && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: L(_, "0,0.00") })
733
+ subheader: /* @__PURE__ */ e(Qn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
734
+ /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: c.account_types[l] }),
735
+ r && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: L(h, "0,0.00") })
736
736
  ] }) }),
737
737
  sx: { bgcolor: "background.paper" },
738
738
  children: [
739
- d.map((h, b) => {
740
- const { firstValue: f } = Tt(h, s), w = Dt(h, {
739
+ p.map((_, b) => {
740
+ const { firstValue: f } = Tt(_, c), w = Dt(_, {
741
741
  allowNickname: o?.show_account_nicknames_in_master
742
- }), y = /* @__PURE__ */ a(z, { children: [
743
- /* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid: h.institution_guid ?? "" }) }),
742
+ }), y = /* @__PURE__ */ i(z, { children: [
743
+ /* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid: _.institution_guid ?? "" }) }),
744
744
  /* @__PURE__ */ e(
745
- be,
745
+ ye,
746
746
  {
747
- primary: `${w}${h.account_number ? ` *${h.account_number}` : ""}`,
747
+ primary: `${w}${_.account_number ? ` *${_.account_number}` : ""}`,
748
748
  primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
749
749
  }
750
750
  ),
751
751
  r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: L(f ?? 0, "0,0.00") })
752
752
  ] });
753
- return /* @__PURE__ */ a(m.Fragment, { children: [
754
- /* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Zn, { onClick: () => c(h), children: y }) : y }),
755
- b !== d.length - 1 && /* @__PURE__ */ e(ne, { variant: "inset" })
756
- ] }, h.guid);
753
+ return /* @__PURE__ */ i(m.Fragment, { children: [
754
+ /* @__PURE__ */ e(ge, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Zn, { onClick: () => s(_), children: y }) : y }),
755
+ b !== p.length - 1 && /* @__PURE__ */ e(ne, { variant: "inset" })
756
+ ] }, _.guid);
757
757
  }),
758
758
  /* @__PURE__ */ e(ne, {})
759
759
  ]
@@ -762,21 +762,21 @@ const Go = ({ isOpen: t, onClose: r }) => {
762
762
  );
763
763
  }) }) : null;
764
764
  }, Nt = S(Uo), Zo = ({ loadAccounts: t, loadMoreLabel: r }) => {
765
- const n = E(), { config: o } = kt(), { connect: s, finstrong: i } = v(), { accounts: c } = v(), { selectedAccounts: p } = j(), [l, d] = m.useState(!1), [_, h] = m.useState(!1), b = m.useMemo(
766
- () => p.filter(
765
+ const n = E(), { config: o } = kt(), { connect: c, finstrong: a } = v(), { accounts: s } = v(), { selectedAccounts: d } = j(), [l, p] = m.useState(!1), [h, _] = m.useState(!1), b = m.useMemo(
766
+ () => d.filter(
767
767
  (y) => t ? t.includes(y.account_type) : !0
768
768
  ),
769
- [p, t]
769
+ [d, t]
770
770
  ), f = m.useMemo(() => b.slice(0, 3), [b]), w = (y) => {
771
- const { firstValue: D } = Tt(y, c);
771
+ const { firstValue: D } = Tt(y, s);
772
772
  return D;
773
773
  };
774
- return b.length >= 1 ? /* @__PURE__ */ a(z, { children: [
775
- /* @__PURE__ */ e(C, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((y, D) => /* @__PURE__ */ a(m.Fragment, { children: [
776
- /* @__PURE__ */ a(ye, { sx: { px: 24 }, children: [
774
+ return b.length >= 1 ? /* @__PURE__ */ i(z, { children: [
775
+ /* @__PURE__ */ e(C, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((y, D) => /* @__PURE__ */ i(m.Fragment, { children: [
776
+ /* @__PURE__ */ i(ge, { sx: { px: 24 }, children: [
777
777
  /* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(xt, { alt: "MX", institutionGuid: y.institution_guid ?? "" }) }),
778
778
  /* @__PURE__ */ e(
779
- be,
779
+ ye,
780
780
  {
781
781
  primary: `${Dt(y, {
782
782
  allowNickname: o?.show_account_nicknames_in_master
@@ -789,44 +789,44 @@ const Go = ({ isOpen: t, onClose: r }) => {
789
789
  ] }),
790
790
  D < f.length - 1 && /* @__PURE__ */ e(ne, { variant: "inset" })
791
791
  ] }, y.guid)) }),
792
- b.length > 3 && /* @__PURE__ */ a(z, { children: [
792
+ b.length > 3 && /* @__PURE__ */ i(z, { children: [
793
793
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
794
- W,
794
+ $,
795
795
  {
796
796
  endIcon: /* @__PURE__ */ e(Z, {}),
797
- onClick: () => d(!0),
797
+ onClick: () => p(!0),
798
798
  size: "small",
799
799
  sx: { my: 0, px: 16, py: 12, width: "100%" },
800
- children: /* @__PURE__ */ a(I, { bold: !0, variant: "body1", children: [
800
+ children: /* @__PURE__ */ i(I, { bold: !0, variant: "body1", children: [
801
801
  b.length - 3,
802
802
  " ",
803
803
  r
804
804
  ] })
805
805
  }
806
806
  ) }),
807
- /* @__PURE__ */ e(te, { isOpen: l, onClose: () => d(!1), title: i.accounts, children: /* @__PURE__ */ e(Nt, { loadAccounts: t }) })
807
+ /* @__PURE__ */ e(te, { isOpen: l, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(Nt, { loadAccounts: t }) })
808
808
  ] })
809
- ] }) : /* @__PURE__ */ a(z, { children: [
809
+ ] }) : /* @__PURE__ */ i(z, { children: [
810
810
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
811
- W,
811
+ $,
812
812
  {
813
- onClick: () => h(!0),
813
+ onClick: () => _(!0),
814
814
  size: "small",
815
815
  sx: { my: 0, px: 16, py: 12, width: "100%" },
816
816
  variant: "contained",
817
- children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: i.connect_more_accounts_button })
817
+ children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
818
818
  }
819
819
  ) }),
820
820
  /* @__PURE__ */ e(
821
821
  oe,
822
822
  {
823
- onClose: () => h(!1),
824
- showConnectWidget: _,
825
- title: s.mini_title
823
+ onClose: () => _(!1),
824
+ showConnectWidget: h,
825
+ title: c.mini_title
826
826
  }
827
827
  )
828
828
  ] });
829
- }, Kt = S(Zo), Se = ({ balance: t, title: r, sx: n }) => /* @__PURE__ */ a(
829
+ }, Kt = S(Zo), xe = ({ balance: t, title: r, sx: n }) => /* @__PURE__ */ i(
830
830
  u,
831
831
  {
832
832
  sx: {
@@ -844,7 +844,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
844
844
  ]
845
845
  }
846
846
  );
847
- 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 || {}), ke = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(ke || {}), U = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(U || {});
847
+ 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 || {}), we = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(we || {}), U = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(U || {});
848
848
  const B = {
849
849
  bi_weekly: "Bi-Weekly",
850
850
  calculate: "Calculate",
@@ -875,44 +875,44 @@ const B = {
875
875
  [U.Weekly]: B.estimated_period_weekly,
876
876
  [U.Daily]: B.estimated_period_daily
877
877
  }, er = [
878
- { id: ke.Months, label: B.months },
879
- { id: ke.Years, label: B.years },
880
- { id: ke.Days, label: B.days }
878
+ { id: we.Months, label: B.months },
879
+ { id: we.Years, label: B.years },
880
+ { id: we.Days, label: B.days }
881
881
  ], tr = ({ total: t }) => {
882
- const r = Math.ceil((t + 1) / 1e3) * 1e3, [n, o] = m.useState(0), [s, i] = m.useState(at(t)), [c, p] = m.useState(
882
+ const r = Math.ceil((t + 1) / 1e3) * 1e3, [n, o] = m.useState(0), [c, a] = m.useState(at(t)), [s, d] = m.useState(
883
883
  at(t)
884
- ), [l, d] = m.useState(r), [_, h] = m.useState(Fn(t)), [b, f] = m.useState(ke.Months);
884
+ ), [l, p] = m.useState(r), [h, _] = m.useState(Fn(t)), [b, f] = m.useState(we.Months);
885
885
  m.useEffect(() => {
886
886
  o(
887
887
  it({
888
- contribution: c,
888
+ contribution: s,
889
889
  goalAmount: l,
890
- goalPeriod: _,
890
+ goalPeriod: h,
891
891
  targetPeriod: b,
892
892
  totalSaved: t
893
893
  })
894
- ), i(c);
894
+ ), a(s);
895
895
  }, []);
896
896
  const w = (y) => {
897
897
  y.preventDefault(), o(
898
898
  it({
899
- contribution: c,
899
+ contribution: s,
900
900
  goalAmount: l,
901
- goalPeriod: _,
901
+ goalPeriod: h,
902
902
  targetPeriod: b,
903
903
  totalSaved: t
904
904
  })
905
- ), i(c);
905
+ ), a(s);
906
906
  };
907
- return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit: w, children: /* @__PURE__ */ a(u, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
907
+ return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("form", { onSubmit: w, children: /* @__PURE__ */ i(u, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
908
908
  /* @__PURE__ */ e(
909
- Se,
909
+ xe,
910
910
  {
911
- balance: /* @__PURE__ */ a(u, { sx: { flexDirection: "row", height: 32 }, children: [
911
+ balance: /* @__PURE__ */ i(u, { sx: { flexDirection: "row", height: 32 }, children: [
912
912
  /* @__PURE__ */ e(I, { variant: "h2", children: L(n, "0,0") }),
913
- /* @__PURE__ */ a(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
913
+ /* @__PURE__ */ i(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
914
914
  "/",
915
- Jo[s]
915
+ Jo[c]
916
916
  ] })
917
917
  ] }),
918
918
  title: B.estimated_contribution
@@ -929,7 +929,7 @@ const B = {
929
929
  },
930
930
  label: B.savings_goal,
931
931
  onChange: (y) => {
932
- y.target.value && d(Number(y.target.value.replace(/[^0-9]/g, "")));
932
+ y.target.value && p(Number(y.target.value.replace(/[^0-9]/g, "")));
933
933
  },
934
934
  value: l ? L(l, "0,0") : ""
935
935
  }
@@ -938,13 +938,13 @@ const B = {
938
938
  ct,
939
939
  {
940
940
  label: B.how_often_contribute,
941
- onChange: p,
941
+ onChange: d,
942
942
  options: Qo,
943
943
  required: !0,
944
- value: c
944
+ value: s
945
945
  }
946
946
  ),
947
- /* @__PURE__ */ a(u, { sx: { flexDirection: "row" }, children: [
947
+ /* @__PURE__ */ i(u, { sx: { flexDirection: "row" }, children: [
948
948
  /* @__PURE__ */ e(
949
949
  Oe,
950
950
  {
@@ -955,7 +955,7 @@ const B = {
955
955
  pattern: "[0-9]*"
956
956
  },
957
957
  label: B.meet_your_goal_within,
958
- onChange: (y) => h(Number(y.target.value)),
958
+ onChange: (y) => _(Number(y.target.value)),
959
959
  sx: {
960
960
  "& .MuiInputBase-root": {
961
961
  borderBottomRightRadius: 0,
@@ -965,7 +965,7 @@ const B = {
965
965
  }
966
966
  }
967
967
  },
968
- value: _
968
+ value: h
969
969
  }
970
970
  ),
971
971
  /* @__PURE__ */ e(
@@ -984,20 +984,20 @@ const B = {
984
984
  }
985
985
  )
986
986
  ] }),
987
- /* @__PURE__ */ e(W, { fullWidth: !0, onClick: w, type: "submit", variant: "contained", children: B.calculate })
987
+ /* @__PURE__ */ e($, { fullWidth: !0, onClick: w, type: "submit", variant: "contained", children: B.calculate })
988
988
  ] }) }) });
989
989
  }, nr = S(tr), Ae = {
990
990
  connect_accounts: "Connect Accounts",
991
991
  more_accounts: "More Accounts",
992
992
  your_savings: "Your Savings"
993
993
  }, or = () => {
994
- const { savingsAccounts: t } = Me(), [r, n] = m.useState(!1), o = m.useMemo(
995
- () => t.reduce((s, i) => s + (i.balance ?? 0), 0),
994
+ const { savingsAccounts: t } = ke(), [r, n] = m.useState(!1), o = m.useMemo(
995
+ () => t.reduce((c, a) => c + (a.balance ?? 0), 0),
996
996
  [t]
997
997
  );
998
- return /* @__PURE__ */ a(u, { sx: { gap: 24 }, children: [
999
- /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ a(u, { sx: { gap: 16 }, children: [
1000
- /* @__PURE__ */ e(Se, { balance: o, title: Ae.your_savings }),
998
+ return /* @__PURE__ */ i(u, { sx: { gap: 24 }, children: [
999
+ /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(u, { sx: { gap: 16 }, children: [
1000
+ /* @__PURE__ */ e(xe, { balance: o, title: Ae.your_savings }),
1001
1001
  t.length ? /* @__PURE__ */ e(Kt, { loadAccounts: [He.SAVINGS], loadMoreLabel: Ae.connect_accounts }) : /* @__PURE__ */ e(eo, { onClick: () => n(!0), variant: "contained", children: Ae.connect_accounts })
1002
1002
  ] }) }),
1003
1003
  /* @__PURE__ */ e(nr, { total: o }),
@@ -1011,8 +1011,8 @@ const B = {
1011
1011
  )
1012
1012
  ] });
1013
1013
  }, rr = S(or), We = S(
1014
- ({ label: t, value: r, status: n, bottomComponent: o, statusBarData: s = [] }) => {
1015
- const i = {
1014
+ ({ label: t, value: r, status: n, bottomComponent: o, statusBarData: c = [] }) => {
1015
+ const a = {
1016
1016
  GOOD: {
1017
1017
  progressBarColor: "primary.main"
1018
1018
  },
@@ -1025,14 +1025,14 @@ const B = {
1025
1025
  MISSING: {
1026
1026
  progressBarColor: "text.secondary"
1027
1027
  }
1028
- }[n], c = s.map((p, l) => s.length === 2 ? {
1029
- color: l === 0 ? "primary.main" : p.color || i?.progressBarColor,
1030
- percentage: p.percentage
1028
+ }[n], s = c.map((d, l) => c.length === 2 ? {
1029
+ color: l === 0 ? "primary.main" : d.color || a?.progressBarColor,
1030
+ percentage: d.percentage
1031
1031
  } : {
1032
- color: p.color || i?.progressBarColor,
1033
- percentage: p.percentage
1032
+ color: d.color || a?.progressBarColor,
1033
+ percentage: d.percentage
1034
1034
  });
1035
- return /* @__PURE__ */ a(
1035
+ return /* @__PURE__ */ i(
1036
1036
  u,
1037
1037
  {
1038
1038
  sx: {
@@ -1044,9 +1044,9 @@ const B = {
1044
1044
  borderColor: "divider"
1045
1045
  },
1046
1046
  children: [
1047
- /* @__PURE__ */ a(u, { sx: { gap: 2 }, children: [
1047
+ /* @__PURE__ */ i(u, { sx: { gap: 2 }, children: [
1048
1048
  /* @__PURE__ */ e(I, { variant: "body2", children: t }),
1049
- /* @__PURE__ */ a(
1049
+ /* @__PURE__ */ i(
1050
1050
  u,
1051
1051
  {
1052
1052
  sx: {
@@ -1062,8 +1062,8 @@ const B = {
1062
1062
  }
1063
1063
  )
1064
1064
  ] }),
1065
- /* @__PURE__ */ a(u, { children: [
1066
- /* @__PURE__ */ e(to, { data: c, height: 16 }),
1065
+ /* @__PURE__ */ i(u, { children: [
1066
+ /* @__PURE__ */ e(to, { data: s, height: 16 }),
1067
1067
  o
1068
1068
  ] })
1069
1069
  ]
@@ -1077,7 +1077,7 @@ const B = {
1077
1077
  return /* @__PURE__ */ e(
1078
1078
  We,
1079
1079
  {
1080
- bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: ir.map((s) => /* @__PURE__ */ a(u, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1080
+ bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: ir.map((c) => /* @__PURE__ */ i(u, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1081
1081
  /* @__PURE__ */ e(
1082
1082
  ne,
1083
1083
  {
@@ -1089,8 +1089,8 @@ const B = {
1089
1089
  }
1090
1090
  }
1091
1091
  ),
1092
- /* @__PURE__ */ e(I, { variant: "caption", children: s })
1093
- ] }, s)) }),
1092
+ /* @__PURE__ */ e(I, { variant: "caption", children: c })
1093
+ ] }, c)) }),
1094
1094
  label: ar.sticky_label,
1095
1095
  status: o,
1096
1096
  statusBarData: [
@@ -1106,29 +1106,29 @@ const B = {
1106
1106
  bgcolor: r,
1107
1107
  height: n = "calc(100dvh - 36px)",
1108
1108
  loader: o = /* @__PURE__ */ e(J, { label: "Loading", size: 40 }),
1109
- onClick: s,
1110
- showInsights: i = !1,
1111
- showLoader: c = !1,
1112
- width: p = "100%",
1109
+ onClick: c,
1110
+ showInsights: a = !1,
1111
+ showLoader: s = !1,
1112
+ width: d = "100%",
1113
1113
  zeroState: l = /* @__PURE__ */ e(ro, {})
1114
1114
  }) => {
1115
- const { getCategoryName: d } = Ye(), { onEvent: _ } = Nn(), { categories: h } = v(), { clearExpandedSplits: b, setShowInsights: f, toggleSplit: w } = oo(), y = (x) => {
1116
- const M = t.find(($) => $.guid === x);
1115
+ const { getCategoryName: p } = Ye(), { onEvent: h } = Nn(), { categories: _ } = v(), { clearExpandedSplits: b, setShowInsights: f, toggleSplit: w } = oo(), y = (x) => {
1116
+ const M = t.find((W) => W.guid === x);
1117
1117
  if (M?.has_been_split) {
1118
1118
  w(M.guid);
1119
1119
  return;
1120
1120
  }
1121
- _(ao.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
1121
+ h(ao.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
1122
1122
  account_guid: M?.account_guid,
1123
1123
  transaction_guid: x
1124
- }), s?.(x);
1124
+ }), c?.(x);
1125
1125
  }, D = m.useRef(null), g = no({
1126
1126
  count: t.length,
1127
1127
  getScrollElement: () => D.current,
1128
1128
  estimateSize: (x) => ut + (Ne(x, t) ? _t : 0),
1129
1129
  overscan: 5
1130
1130
  });
1131
- return m.useEffect(() => g.measure(), [t]), m.useEffect(() => f(i), [i]), m.useEffect(() => () => b(), []), /* @__PURE__ */ e(Re, { sx: { width: p }, children: /* @__PURE__ */ e(C, { height: n, overflow: "auto", ref: D, width: p, children: /* @__PURE__ */ a(
1131
+ return m.useEffect(() => g.measure(), [t]), m.useEffect(() => f(a), [a]), m.useEffect(() => () => b(), []), /* @__PURE__ */ e(Re, { sx: { width: d }, children: /* @__PURE__ */ e(C, { height: n, overflow: "auto", ref: D, width: d, children: /* @__PURE__ */ i(
1132
1132
  C,
1133
1133
  {
1134
1134
  height: (
@@ -1138,11 +1138,11 @@ const B = {
1138
1138
  position: "relative",
1139
1139
  width: "100%",
1140
1140
  children: [
1141
- c && o,
1142
- !c && g.getVirtualItems().length === 0 && l,
1143
- !c && g.getVirtualItems().length > 0 && g.getVirtualItems().map((x) => {
1144
- const M = t[x.index], $ = Ne(x.index, t), G = Ft(x.index, t), H = ut + ($ ? _t : 0);
1145
- return /* @__PURE__ */ a(
1141
+ s && o,
1142
+ !s && g.getVirtualItems().length === 0 && l,
1143
+ !s && g.getVirtualItems().length > 0 && g.getVirtualItems().map((x) => {
1144
+ const M = t[x.index], W = Ne(x.index, t), G = Ft(x.index, t), H = ut + (W ? _t : 0);
1145
+ return /* @__PURE__ */ i(
1146
1146
  C,
1147
1147
  {
1148
1148
  sx: {
@@ -1152,17 +1152,17 @@ const B = {
1152
1152
  width: "100%"
1153
1153
  },
1154
1154
  children: [
1155
- $ && /* @__PURE__ */ e(Pt, { bgcolor: r, children: Ze(M.date) }),
1155
+ W && /* @__PURE__ */ e(Pt, { bgcolor: r, children: Ze(M.date) }),
1156
1156
  /* @__PURE__ */ e(
1157
1157
  Bt,
1158
1158
  {
1159
- ...s && { onClick: y },
1159
+ ...c && { onClick: y },
1160
1160
  transaction: {
1161
1161
  ...M,
1162
- category: h.default_categories[M.top_level_category_guid]?.replace(
1162
+ category: _.default_categories[M.top_level_category_guid]?.replace(
1163
1163
  /&amp;/g,
1164
1164
  "&"
1165
- ) ?? d(M.top_level_category_guid)
1165
+ ) ?? p(M.top_level_category_guid)
1166
1166
  }
1167
1167
  }
1168
1168
  ),
@@ -1180,30 +1180,30 @@ const B = {
1180
1180
  amountColor: r = "success.main",
1181
1181
  amountPosition: n = "center",
1182
1182
  formatDate: o = Ze,
1183
- secondaryIcon: s
1183
+ secondaryIcon: c
1184
1184
  }) => {
1185
- const i = E(), { connect: c, finstrong: p } = v(), [l, d] = m.useState(!1), [_, h] = m.useState(!1), b = 3, f = t.length > b, w = t.length - b;
1186
- return !t || t.length === 0 ? /* @__PURE__ */ a(z, { children: [
1185
+ const a = E(), { connect: s, finstrong: d } = v(), [l, p] = m.useState(!1), [h, _] = m.useState(!1), b = 3, f = t.length > b, w = t.length - b;
1186
+ return !t || t.length === 0 ? /* @__PURE__ */ i(z, { children: [
1187
1187
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
1188
- W,
1188
+ $,
1189
1189
  {
1190
- onClick: () => h(!0),
1190
+ onClick: () => _(!0),
1191
1191
  size: "small",
1192
1192
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1193
1193
  variant: "contained",
1194
- children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: p.connect_more_accounts_button })
1194
+ children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: d.connect_more_accounts_button })
1195
1195
  }
1196
1196
  ) }),
1197
1197
  /* @__PURE__ */ e(
1198
1198
  oe,
1199
1199
  {
1200
- onClose: () => h(!1),
1201
- showConnectWidget: _,
1202
- title: c.mini_title
1200
+ onClose: () => _(!1),
1201
+ showConnectWidget: h,
1202
+ title: s.mini_title
1203
1203
  }
1204
1204
  )
1205
- ] }) : /* @__PURE__ */ a(u, { sx: { gap: 16 }, children: [
1206
- /* @__PURE__ */ e(C, { sx: { border: `1px solid ${i.palette.divider}`, borderRadius: 2 }, children: t.slice(0, b).map((y, D) => /* @__PURE__ */ a(
1205
+ ] }) : /* @__PURE__ */ i(u, { sx: { gap: 16 }, children: [
1206
+ /* @__PURE__ */ e(C, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, b).map((y, D) => /* @__PURE__ */ i(
1207
1207
  u,
1208
1208
  {
1209
1209
  sx: {
@@ -1222,7 +1222,7 @@ const B = {
1222
1222
  size: 32
1223
1223
  }
1224
1224
  ) }),
1225
- /* @__PURE__ */ a(
1225
+ /* @__PURE__ */ i(
1226
1226
  u,
1227
1227
  {
1228
1228
  sx: {
@@ -1231,17 +1231,17 @@ const B = {
1231
1231
  gap: 12,
1232
1232
  justifyContent: "space-between",
1233
1233
  ...D < Math.min(t.length, b) - 1 && {
1234
- borderBottom: `1px solid ${i.palette.divider}`
1234
+ borderBottom: `1px solid ${a.palette.divider}`
1235
1235
  },
1236
1236
  pb: 14,
1237
1237
  pr: 24,
1238
1238
  width: "100%"
1239
1239
  },
1240
1240
  children: [
1241
- /* @__PURE__ */ a(u, { sx: { gap: 4 }, children: [
1241
+ /* @__PURE__ */ i(u, { sx: { gap: 4 }, children: [
1242
1242
  /* @__PURE__ */ e(k, { bold: !0, variant: "body1", children: y.description }),
1243
- /* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
1244
- !!s && s,
1243
+ /* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
1244
+ !!c && c,
1245
1245
  /* @__PURE__ */ e(I, { variant: "caption", children: o(y.date) })
1246
1246
  ] })
1247
1247
  ] }),
@@ -1254,18 +1254,18 @@ const B = {
1254
1254
  },
1255
1255
  D
1256
1256
  )) }),
1257
- f && /* @__PURE__ */ a(z, { children: [
1257
+ f && /* @__PURE__ */ i(z, { children: [
1258
1258
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
1259
- W,
1259
+ $,
1260
1260
  {
1261
1261
  endIcon: /* @__PURE__ */ e(Z, {}),
1262
- onClick: () => d(!0),
1262
+ onClick: () => p(!0),
1263
1263
  size: "small",
1264
1264
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1265
- children: /* @__PURE__ */ a(I, { bold: !0, variant: "body1", children: [
1265
+ children: /* @__PURE__ */ i(I, { bold: !0, variant: "body1", children: [
1266
1266
  w,
1267
1267
  " ",
1268
- p.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1268
+ d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1269
1269
  ] })
1270
1270
  }
1271
1271
  ) }),
@@ -1273,8 +1273,8 @@ const B = {
1273
1273
  te,
1274
1274
  {
1275
1275
  isOpen: l,
1276
- onClose: () => d(!1),
1277
- title: p.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1276
+ onClose: () => p(!1),
1277
+ title: d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1278
1278
  children: /* @__PURE__ */ e(dr, { transactions: t })
1279
1279
  }
1280
1280
  )
@@ -1288,7 +1288,7 @@ const B = {
1288
1288
  } = v(), { getSpendingFeeTransactions: r, allTransactions: n } = F();
1289
1289
  return m.useEffect(() => {
1290
1290
  r().finally();
1291
- }, []), /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ a(
1291
+ }, []), /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ i(
1292
1292
  K,
1293
1293
  {
1294
1294
  sx: {
@@ -1301,13 +1301,13 @@ const B = {
1301
1301
  },
1302
1302
  children: [
1303
1303
  /* @__PURE__ */ e(yn, { filled: !0, size: 48, sx: { color: "success.main" } }),
1304
- /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
1304
+ /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
1305
1305
  /* @__PURE__ */ e(N, { children: t.pay_bills_on_time_zero_fees_title }),
1306
1306
  /* @__PURE__ */ e(k, { variant: "subtitle1", children: t.pay_bills_on_time_zero_fees_description })
1307
1307
  ] })
1308
1308
  ]
1309
1309
  }
1310
- ) : /* @__PURE__ */ a(
1310
+ ) : /* @__PURE__ */ i(
1311
1311
  K,
1312
1312
  {
1313
1313
  sx: {
@@ -1331,8 +1331,8 @@ const B = {
1331
1331
  }
1332
1332
  ) });
1333
1333
  }, ur = S(pr), _r = () => {
1334
- const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_spend: n } = r, { pay_bills_on_time_drawer: o } = n, s = Bn(t.spending_fee_transaction_count);
1335
- return /* @__PURE__ */ a(
1334
+ const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_spend: n } = r, { pay_bills_on_time_drawer: o } = n, c = Bn(t.spending_fee_transaction_count);
1335
+ return /* @__PURE__ */ i(
1336
1336
  u,
1337
1337
  {
1338
1338
  sx: {
@@ -1343,22 +1343,22 @@ const B = {
1343
1343
  },
1344
1344
  children: [
1345
1345
  /* @__PURE__ */ e(k, { variant: "body2", children: o.pay_bills_on_time_sticky_description }),
1346
- /* @__PURE__ */ a(u, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
1347
- /* @__PURE__ */ a(Pe, { children: [
1346
+ /* @__PURE__ */ i(u, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
1347
+ /* @__PURE__ */ i(Pe, { children: [
1348
1348
  t.spending_fee_transaction_count,
1349
1349
  " ",
1350
1350
  o.pay_bills_on_time_sticky_fee_count
1351
1351
  ] }),
1352
- /* @__PURE__ */ e(Le, { status: s })
1352
+ /* @__PURE__ */ e(Le, { status: c })
1353
1353
  ] })
1354
1354
  ]
1355
1355
  }
1356
1356
  );
1357
1357
  }, hr = S(_r), mr = () => {
1358
- const { savingsAndCheckingAccountsBalance: t } = Me(), { finstrong: r } = v();
1359
- return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
1358
+ const { savingsAndCheckingAccountsBalance: t } = ke(), { finstrong: r } = v();
1359
+ return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
1360
1360
  /* @__PURE__ */ e(
1361
- Se,
1361
+ xe,
1362
1362
  {
1363
1363
  balance: t,
1364
1364
  title: r.key_indicators_save.drawer_available_balance
@@ -1373,34 +1373,34 @@ const B = {
1373
1373
  )
1374
1374
  ] });
1375
1375
  }, gr = S(mr), yr = () => {
1376
- const { finstrong: t } = v(), { healthScore: r, allTransactions: n, loadSpendTransactions: o, loadDebtSpend: s } = F(), { isInitialized: i } = j();
1376
+ const { finstrong: t } = v(), { healthScore: r, allTransactions: n, loadSpendTransactions: o, loadDebtSpend: c } = F(), { isInitialized: a } = j();
1377
1377
  m.useEffect(() => {
1378
- i && (o().finally(), s().finally());
1379
- }, [i]);
1380
- const c = m.useMemo(() => {
1381
- const p = n.spend.map((d) => d.transaction), l = n.debtSpend.map((d) => d.transaction);
1382
- return [...p, ...l];
1378
+ a && (o().finally(), c().finally());
1379
+ }, [a]);
1380
+ const s = m.useMemo(() => {
1381
+ const d = n.spend.map((p) => p.transaction), l = n.debtSpend.map((p) => p.transaction);
1382
+ return [...d, ...l];
1383
1383
  }, [n.spend, n.debtSpend]);
1384
- return i ? /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
1384
+ return a ? /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
1385
1385
  /* @__PURE__ */ e(
1386
- Se,
1386
+ xe,
1387
1387
  {
1388
1388
  balance: r.ninety_day_spend / 90,
1389
1389
  title: t.key_indicators_save.drawer_daily_spend
1390
1390
  }
1391
1391
  ),
1392
- /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: c })
1392
+ /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: s })
1393
1393
  ] }) : /* @__PURE__ */ e(J, {});
1394
1394
  }, br = S(yr), fr = () => {
1395
1395
  const [t, r] = m.useState(0), { finstrong: n } = v();
1396
- return /* @__PURE__ */ a(z, { children: [
1397
- /* @__PURE__ */ a(K, { children: [
1398
- /* @__PURE__ */ a(
1396
+ return /* @__PURE__ */ i(z, { children: [
1397
+ /* @__PURE__ */ i(K, { children: [
1398
+ /* @__PURE__ */ i(
1399
1399
  qe,
1400
1400
  {
1401
1401
  "aria-label": n.key_indicators_save.drawer_title,
1402
1402
  centered: !0,
1403
- onChange: (o, s) => r(s),
1403
+ onChange: (o, c) => r(c),
1404
1404
  sx: { mb: 0 },
1405
1405
  value: t,
1406
1406
  variant: "fullWidth",
@@ -1430,7 +1430,7 @@ const B = {
1430
1430
  /* @__PURE__ */ e(Qe, { chartFor: "savingsOverTime" })
1431
1431
  ] });
1432
1432
  }, xr = S(fr), Sr = () => {
1433
- const { finstrong: t } = v(), { healthScore: r } = F(), n = r.months_of_cash_on_hand, o = wt(n ? n * 30 : null), s = 183 / 6, i = Math.floor(n), c = Math.round((n - i) * s), p = n / 6 * 100;
1433
+ const { finstrong: t } = v(), { healthScore: r } = F(), n = r.months_of_cash_on_hand, o = wt(n ? n * 30 : null), c = 183 / 6, a = Math.floor(n), s = Math.round((n - a) * c), d = n / 6 * 100;
1434
1434
  return /* @__PURE__ */ e(
1435
1435
  We,
1436
1436
  {
@@ -1444,7 +1444,7 @@ const B = {
1444
1444
  mt: 2,
1445
1445
  px: 1
1446
1446
  },
1447
- children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((d) => /* @__PURE__ */ a(
1447
+ children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((p) => /* @__PURE__ */ i(
1448
1448
  u,
1449
1449
  {
1450
1450
  sx: {
@@ -1462,10 +1462,10 @@ const B = {
1462
1462
  }
1463
1463
  }
1464
1464
  ),
1465
- /* @__PURE__ */ e(I, { variant: "XSmall", children: d })
1465
+ /* @__PURE__ */ e(I, { variant: "XSmall", children: p })
1466
1466
  ]
1467
1467
  },
1468
- d
1468
+ p
1469
1469
  ))
1470
1470
  }
1471
1471
  ),
@@ -1473,18 +1473,18 @@ const B = {
1473
1473
  status: o,
1474
1474
  statusBarData: [
1475
1475
  {
1476
- percentage: `${p}%`
1476
+ percentage: `${d}%`
1477
1477
  }
1478
1478
  ],
1479
- value: Y(t.key_indicators_save.drawer_progress_bar_value, i, c)
1479
+ value: Y(t.key_indicators_save.drawer_progress_bar_value, a, s)
1480
1480
  }
1481
1481
  );
1482
1482
  }, Cr = S(Sr), vr = () => {
1483
- const { healthScore: t } = F(), { finstrong: r } = v(), n = Te(t.debt_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, i = ((c) => o ? "MISSING" : c <= 30 ? "GOOD" : c >= 31 && c <= 39 ? "FAIR" : c >= 40 ? "OFF_TRACK" : "MISSING")(n);
1483
+ const { healthScore: t } = F(), { finstrong: r } = v(), n = Te(t.debt_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, a = ((s) => o ? "MISSING" : s <= 30 ? "GOOD" : s >= 31 && s <= 39 ? "FAIR" : s >= 40 ? "OFF_TRACK" : "MISSING")(n);
1484
1484
  return /* @__PURE__ */ e(
1485
1485
  We,
1486
1486
  {
1487
- bottomComponent: /* @__PURE__ */ a(
1487
+ bottomComponent: /* @__PURE__ */ i(
1488
1488
  u,
1489
1489
  {
1490
1490
  sx: {
@@ -1504,7 +1504,7 @@ const B = {
1504
1504
  position: "absolute",
1505
1505
  transform: "translateX(-50%)"
1506
1506
  },
1507
- children: /* @__PURE__ */ a(
1507
+ children: /* @__PURE__ */ i(
1508
1508
  u,
1509
1509
  {
1510
1510
  sx: {
@@ -1550,7 +1550,7 @@ const B = {
1550
1550
  }
1551
1551
  ),
1552
1552
  label: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_title,
1553
- status: i,
1553
+ status: a,
1554
1554
  statusBarData: [
1555
1555
  {
1556
1556
  percentage: `${n}%`
@@ -1560,10 +1560,10 @@ const B = {
1560
1560
  }
1561
1561
  );
1562
1562
  }, wr = S(vr), kr = () => {
1563
- const { healthScore: t, allTransactions: r } = F(), { connect: n, finstrong: o } = v(), [s, i] = m.useState(!1);
1564
- return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
1563
+ const { healthScore: t, allTransactions: r } = F(), { connect: n, finstrong: o } = v(), [c, a] = m.useState(!1);
1564
+ return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
1565
1565
  /* @__PURE__ */ e(
1566
- Se,
1566
+ xe,
1567
1567
  {
1568
1568
  balance: t.ninety_day_income,
1569
1569
  sx: { flexDirection: "column-reverse" },
@@ -1572,12 +1572,12 @@ const B = {
1572
1572
  ),
1573
1573
  r.income.length ? (
1574
1574
  // TODO: Need to add More Transactions functionality
1575
- /* @__PURE__ */ e($e, { transactions: r.income.map((c) => c.transaction) })
1575
+ /* @__PURE__ */ e($e, { transactions: r.income.map((s) => s.transaction) })
1576
1576
  ) : /* @__PURE__ */ e(
1577
- W,
1577
+ $,
1578
1578
  {
1579
1579
  onClick: () => {
1580
- i(!0);
1580
+ a(!0);
1581
1581
  },
1582
1582
  variant: "contained",
1583
1583
  children: o.connect_more_accounts_button
@@ -1586,17 +1586,17 @@ const B = {
1586
1586
  /* @__PURE__ */ e(
1587
1587
  oe,
1588
1588
  {
1589
- onClose: () => i(!1),
1590
- showConnectWidget: s,
1589
+ onClose: () => a(!1),
1590
+ showConnectWidget: c,
1591
1591
  title: n.mini_title
1592
1592
  }
1593
1593
  )
1594
1594
  ] });
1595
1595
  }, Mr = S(kr), Dr = () => {
1596
- const { allTransactions: t, healthScore: r } = F(), { connect: n, finstrong: o } = v(), [s, i] = m.useState(!1);
1597
- return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
1596
+ const { allTransactions: t, healthScore: r } = F(), { connect: n, finstrong: o } = v(), [c, a] = m.useState(!1);
1597
+ return /* @__PURE__ */ i(u, { gap: 16, sx: { p: 16 }, children: [
1598
1598
  /* @__PURE__ */ e(
1599
- Se,
1599
+ xe,
1600
1600
  {
1601
1601
  balance: r.ninety_day_debt_spend,
1602
1602
  sx: { flexDirection: "column-reverse" },
@@ -1609,14 +1609,14 @@ const B = {
1609
1609
  $e,
1610
1610
  {
1611
1611
  amountColor: "text.primary",
1612
- transactions: t.debtSpend.map((c) => c.transaction)
1612
+ transactions: t.debtSpend.map((s) => s.transaction)
1613
1613
  }
1614
1614
  )
1615
1615
  ) : /* @__PURE__ */ e(
1616
- W,
1616
+ $,
1617
1617
  {
1618
1618
  onClick: () => {
1619
- i(!0);
1619
+ a(!0);
1620
1620
  },
1621
1621
  variant: "contained",
1622
1622
  children: o.connect_more_accounts_button
@@ -1625,8 +1625,8 @@ const B = {
1625
1625
  /* @__PURE__ */ e(
1626
1626
  oe,
1627
1627
  {
1628
- onClose: () => i(!1),
1629
- showConnectWidget: s,
1628
+ onClose: () => a(!1),
1629
+ showConnectWidget: c,
1630
1630
  title: n.mini_title
1631
1631
  }
1632
1632
  )
@@ -1636,38 +1636,38 @@ const B = {
1636
1636
  data: r,
1637
1637
  series: n,
1638
1638
  style: o,
1639
- ...s
1639
+ ...c
1640
1640
  }) => {
1641
- const i = E(), c = m.useRef(null), { width: p } = uo({
1641
+ const a = E(), s = m.useRef(null), { width: d } = uo({
1642
1642
  width: o.width
1643
1643
  });
1644
1644
  m.useLayoutEffect(() => {
1645
- const h = new ResizeObserver(() => {
1645
+ const _ = new ResizeObserver(() => {
1646
1646
  window.requestAnimationFrame(() => {
1647
- if (c.current) {
1648
- const { width: b } = c.current.getBoundingClientRect(), f = b / 2, w = c.current.querySelector("text");
1647
+ if (s.current) {
1648
+ const { width: b } = s.current.getBoundingClientRect(), f = b / 2, w = s.current.querySelector("text");
1649
1649
  w && w.setAttribute("transform", `translate(${f}, -8)`);
1650
1650
  }
1651
1651
  });
1652
1652
  });
1653
- return c.current && h.observe(c.current), () => {
1654
- c.current && h.unobserve(c.current);
1653
+ return s.current && _.observe(s.current), () => {
1654
+ s.current && _.unobserve(s.current);
1655
1655
  };
1656
1656
  }, []);
1657
- const { formattedComparison: l, formattedMain: d } = r[n.index], _ = n.type === 0 ? d : l;
1658
- return /* @__PURE__ */ a("g", { children: [
1659
- /* @__PURE__ */ e(lt.rect, { ...s, fill: t, ref: c, rx: 2, style: o }),
1657
+ const { formattedComparison: l, formattedMain: p } = r[n.index], h = n.type === 0 ? p : l;
1658
+ return /* @__PURE__ */ i("g", { children: [
1659
+ /* @__PURE__ */ e(lt.rect, { ...c, fill: t, ref: s, rx: 2, style: o }),
1660
1660
  /* @__PURE__ */ e(
1661
1661
  lt.text,
1662
1662
  {
1663
- fill: i.palette.text.secondary,
1663
+ fill: a.palette.text.secondary,
1664
1664
  fontSize: 9,
1665
1665
  fontWeight: 400,
1666
1666
  textAnchor: "middle",
1667
- transform: p.to((h) => `translate(${h / 2}, -5)`),
1667
+ transform: d.to((_) => `translate(${_ / 2}, -5)`),
1668
1668
  x: o.x,
1669
1669
  y: o.y,
1670
- children: _
1670
+ children: h
1671
1671
  }
1672
1672
  )
1673
1673
  ] });
@@ -1676,13 +1676,13 @@ const B = {
1676
1676
  data: r,
1677
1677
  title: n,
1678
1678
  buttonLabel: o,
1679
- onClick: s,
1680
- legendLabelMain: i,
1681
- legendLabelComparison: c,
1682
- totalComparison: p,
1679
+ onClick: c,
1680
+ legendLabelMain: a,
1681
+ legendLabelComparison: s,
1682
+ totalComparison: d,
1683
1683
  totalMain: l
1684
1684
  }) => {
1685
- const d = E(), _ = so(d.breakpoints.down("xs")), h = m.useMemo(
1685
+ const p = E(), h = so(p.breakpoints.down("xs")), _ = m.useMemo(
1686
1686
  () => r.sort((g, x) => g.month - x.month).map((g) => {
1687
1687
  const x = Ln(g.month), M = {
1688
1688
  spending_vs_income: {
@@ -1707,7 +1707,7 @@ const B = {
1707
1707
  ), b = {
1708
1708
  dataKey: "label",
1709
1709
  scaleType: "band"
1710
- }, f = Math.max(...h.map((g) => Math.max(g.main, g.comparison))), w = Math.ceil(f * 1.2 / 1e3) * 1e3, y = w / 3, D = {
1710
+ }, f = Math.max(..._.map((g) => Math.max(g.main, g.comparison))), w = Math.ceil(f * 1.2 / 1e3) * 1e3, y = w / 3, D = {
1711
1711
  scaleType: "linear",
1712
1712
  min: 0,
1713
1713
  max: w,
@@ -1715,7 +1715,7 @@ const B = {
1715
1715
  tickMinStep: y,
1716
1716
  valueFormatter: (g) => g === 0 ? "$0" : `$${(g / 1e3).toFixed(0)}K`
1717
1717
  };
1718
- return /* @__PURE__ */ a(
1718
+ return /* @__PURE__ */ i(
1719
1719
  K,
1720
1720
  {
1721
1721
  sx: {
@@ -1723,7 +1723,7 @@ const B = {
1723
1723
  py: 24
1724
1724
  },
1725
1725
  children: [
1726
- /* @__PURE__ */ a(
1726
+ /* @__PURE__ */ i(
1727
1727
  u,
1728
1728
  {
1729
1729
  sx: {
@@ -1736,10 +1736,10 @@ const B = {
1736
1736
  children: [
1737
1737
  /* @__PURE__ */ e(N, { children: n }),
1738
1738
  o && /* @__PURE__ */ e(
1739
- W,
1739
+ $,
1740
1740
  {
1741
1741
  endIcon: /* @__PURE__ */ e(Z, {}),
1742
- onClick: s,
1742
+ onClick: c,
1743
1743
  size: "small",
1744
1744
  sx: {
1745
1745
  pl: 8,
@@ -1752,8 +1752,8 @@ const B = {
1752
1752
  ]
1753
1753
  }
1754
1754
  ),
1755
- /* @__PURE__ */ a(u, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
1756
- /* @__PURE__ */ a(u, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
1755
+ /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
1756
+ /* @__PURE__ */ i(u, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
1757
1757
  /* @__PURE__ */ e(
1758
1758
  C,
1759
1759
  {
@@ -1765,15 +1765,15 @@ const B = {
1765
1765
  }
1766
1766
  }
1767
1767
  ),
1768
- /* @__PURE__ */ a(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1769
- /* @__PURE__ */ a(I, { variant: "subtitle2", children: [
1770
- i,
1768
+ /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1769
+ /* @__PURE__ */ i(I, { variant: "subtitle2", children: [
1770
+ a,
1771
1771
  " "
1772
1772
  ] }),
1773
- !_ && l && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
1773
+ !h && l && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
1774
1774
  ] })
1775
1775
  ] }),
1776
- /* @__PURE__ */ a(u, { alignItems: "center", direction: "row", spacing: 8, children: [
1776
+ /* @__PURE__ */ i(u, { alignItems: "center", direction: "row", spacing: 8, children: [
1777
1777
  /* @__PURE__ */ e(
1778
1778
  C,
1779
1779
  {
@@ -1785,20 +1785,20 @@ const B = {
1785
1785
  }
1786
1786
  }
1787
1787
  ),
1788
- /* @__PURE__ */ a(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1789
- /* @__PURE__ */ a(I, { variant: "subtitle2", children: [
1790
- c,
1788
+ /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1789
+ /* @__PURE__ */ i(I, { variant: "subtitle2", children: [
1790
+ s,
1791
1791
  " "
1792
1792
  ] }),
1793
- !_ && p && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: p })
1793
+ !h && d && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
1794
1794
  ] })
1795
1795
  ] })
1796
1796
  ] }),
1797
- /* @__PURE__ */ a(
1797
+ /* @__PURE__ */ i(
1798
1798
  po,
1799
1799
  {
1800
- colors: [`${d.palette.chartMono.chartMono3}`, `${d.palette.chartMono.chartMono5}`],
1801
- dataset: h,
1800
+ colors: [`${p.palette.chartMono.chartMono3}`, `${p.palette.chartMono.chartMono5}`],
1801
+ dataset: _,
1802
1802
  height: 240,
1803
1803
  margin: { top: 20, bottom: 30, right: 10, left: 42 },
1804
1804
  series: [
@@ -1813,13 +1813,13 @@ const B = {
1813
1813
  {
1814
1814
  slots: {
1815
1815
  bar: (g) => {
1816
- const { ownerState: x, style: M, ...$ } = g;
1816
+ const { ownerState: x, style: M, ...W } = g;
1817
1817
  return /* @__PURE__ */ e(
1818
1818
  Ar,
1819
1819
  {
1820
- ...$,
1820
+ ...W,
1821
1821
  color: x.color,
1822
- data: h,
1822
+ data: _,
1823
1823
  series: {
1824
1824
  index: x.dataIndex,
1825
1825
  type: Number(x.id.toString().split("-").pop())
@@ -1836,10 +1836,10 @@ const B = {
1836
1836
  {
1837
1837
  sx: () => ({
1838
1838
  ".MuiChartsAxis-line": {
1839
- stroke: d.palette.divider
1839
+ stroke: p.palette.divider
1840
1840
  },
1841
1841
  ".MuiChartsAxis-tick": {
1842
- stroke: d.palette.divider
1842
+ stroke: p.palette.divider
1843
1843
  },
1844
1844
  ".MuiChartsAxis-tickLabel": {
1845
1845
  transform: "translateY(10px)"
@@ -1856,10 +1856,10 @@ const B = {
1856
1856
  {
1857
1857
  sx: () => ({
1858
1858
  ".MuiChartsAxis-line": {
1859
- stroke: d.palette.divider
1859
+ stroke: p.palette.divider
1860
1860
  },
1861
1861
  ".MuiChartsAxis-tick": {
1862
- stroke: d.palette.divider
1862
+ stroke: p.palette.divider
1863
1863
  },
1864
1864
  ".MuiChartsAxis-tickLabel": {
1865
1865
  transform: "translateX(-8px)"
@@ -1878,19 +1878,19 @@ const B = {
1878
1878
  }
1879
1879
  );
1880
1880
  }, Tr = () => {
1881
- const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } = F(), { isInitialized: o } = j(), [s, i] = m.useState(0), { finstrong: c } = v();
1881
+ const { loadDebtSpend: t, loadIncome: r, monthlySummaries: n } = F(), { isInitialized: o } = j(), [c, a] = m.useState(0), { finstrong: s } = v();
1882
1882
  return m.useEffect(() => {
1883
1883
  o && (t().finally(), r().finally());
1884
- }, [o]), /* @__PURE__ */ a(z, { children: [
1885
- /* @__PURE__ */ a(K, { children: [
1886
- /* @__PURE__ */ a(
1884
+ }, [o]), /* @__PURE__ */ i(z, { children: [
1885
+ /* @__PURE__ */ i(K, { children: [
1886
+ /* @__PURE__ */ i(
1887
1887
  qe,
1888
1888
  {
1889
- "aria-label": c.key_indicators_save.drawer_title,
1889
+ "aria-label": s.key_indicators_save.drawer_title,
1890
1890
  centered: !0,
1891
- onChange: (p, l) => i(l),
1891
+ onChange: (d, l) => a(l),
1892
1892
  sx: { mb: 0 },
1893
- value: s,
1893
+ value: c,
1894
1894
  variant: "fullWidth",
1895
1895
  children: [
1896
1896
  /* @__PURE__ */ e(
@@ -1898,7 +1898,7 @@ const B = {
1898
1898
  {
1899
1899
  "aria-controls": "income-details-tabpanel-0",
1900
1900
  id: "income-details-tab-0",
1901
- label: c.key_indicators_borrow.have_manageable_debt_drawer.income,
1901
+ label: s.key_indicators_borrow.have_manageable_debt_drawer.income,
1902
1902
  sx: { minHeight: 44 }
1903
1903
  }
1904
1904
  ),
@@ -1907,7 +1907,7 @@ const B = {
1907
1907
  {
1908
1908
  "aria-controls": "debt-payment-details-tabpanel-1",
1909
1909
  id: "debt-payment-details-tab-1",
1910
- label: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1910
+ label: s.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1911
1911
  sx: { minHeight: 44 }
1912
1912
  }
1913
1913
  )
@@ -1920,7 +1920,7 @@ const B = {
1920
1920
  "aria-labelledby": "income-details-tab-0",
1921
1921
  index: 0,
1922
1922
  name: "income-details",
1923
- value: s,
1923
+ value: c,
1924
1924
  children: /* @__PURE__ */ e(Mr, {})
1925
1925
  }
1926
1926
  ),
@@ -1930,30 +1930,30 @@ const B = {
1930
1930
  "aria-labelledby": "debt-payment-details-tab-1",
1931
1931
  index: 1,
1932
1932
  name: "debt-payment-details",
1933
- value: s,
1933
+ value: c,
1934
1934
  children: /* @__PURE__ */ e(Ir, {})
1935
1935
  }
1936
1936
  )
1937
1937
  ] }),
1938
- n.length ? /* @__PURE__ */ a(z, { children: [
1938
+ n.length ? /* @__PURE__ */ i(z, { children: [
1939
1939
  /* @__PURE__ */ e(
1940
1940
  jt,
1941
1941
  {
1942
1942
  chartFor: "debt_payment_vs_income",
1943
1943
  data: n,
1944
- legendLabelComparison: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1945
- legendLabelMain: c.key_indicators_borrow.have_manageable_debt_drawer.income,
1946
- title: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1944
+ legendLabelComparison: s.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1945
+ legendLabelMain: s.key_indicators_borrow.have_manageable_debt_drawer.income,
1946
+ title: s.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1947
1947
  }
1948
1948
  ),
1949
1949
  /* @__PURE__ */ e(Qe, { chartFor: "debtOverTime" })
1950
- ] }) : /* @__PURE__ */ a(z, { children: [
1950
+ ] }) : /* @__PURE__ */ i(z, { children: [
1951
1951
  /* @__PURE__ */ e(
1952
1952
  Fe,
1953
1953
  {
1954
- header: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1954
+ header: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1955
1955
  icon: "multiline_chart",
1956
- subText: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
1956
+ subText: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
1957
1957
  sx: {
1958
1958
  backgroundColor: "background.paper",
1959
1959
  borderRadius: "8px",
@@ -1967,9 +1967,9 @@ const B = {
1967
1967
  /* @__PURE__ */ e(
1968
1968
  Fe,
1969
1969
  {
1970
- header: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
1970
+ header: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
1971
1971
  icon: "multiline_chart",
1972
- subText: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
1972
+ subText: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
1973
1973
  sx: {
1974
1974
  backgroundColor: "background.paper",
1975
1975
  borderRadius: "8px",
@@ -1983,16 +1983,16 @@ const B = {
1983
1983
  ] })
1984
1984
  ] });
1985
1985
  }, Or = S(Tr), Rr = () => {
1986
- const { healthScore: t } = F(), { finstrong: r } = v(), n = Te(t.spend_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, i = ((p) => o ? "MISSING" : p < 100 ? "GOOD" : p >= 100 && p <= 109 ? "FAIR" : p >= 110 ? "OFF_TRACK" : "MISSING")(n), c = {
1986
+ const { healthScore: t } = F(), { finstrong: r } = v(), n = Te(t.spend_to_income_ratio) ?? 0, o = Object.keys(t).length === 0, a = ((d) => o ? "MISSING" : d < 100 ? "GOOD" : d >= 100 && d <= 109 ? "FAIR" : d >= 110 ? "OFF_TRACK" : "MISSING")(n), s = {
1987
1987
  GOOD: [{ percentage: `${n}%` }],
1988
1988
  FAIR: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
1989
1989
  OFF_TRACK: [{ percentage: "100%" }, { percentage: `${n - 100}%` }],
1990
1990
  MISSING: [{ percentage: "0%" }]
1991
- }[i];
1991
+ }[a];
1992
1992
  return /* @__PURE__ */ e(
1993
1993
  We,
1994
1994
  {
1995
- bottomComponent: /* @__PURE__ */ a(
1995
+ bottomComponent: /* @__PURE__ */ i(
1996
1996
  u,
1997
1997
  {
1998
1998
  sx: {
@@ -2002,12 +2002,12 @@ const B = {
2002
2002
  mt: 8
2003
2003
  },
2004
2004
  children: [
2005
- /* @__PURE__ */ a(I, { variant: "body2", children: [
2005
+ /* @__PURE__ */ i(I, { variant: "body2", children: [
2006
2006
  o ? "-" : L(t.ninety_day_income, "0,0.00"),
2007
2007
  " ",
2008
2008
  r?.key_indicators_spend.spend_less_than_you_make_drawer.income
2009
2009
  ] }),
2010
- /* @__PURE__ */ a(I, { variant: "body2", children: [
2010
+ /* @__PURE__ */ i(I, { variant: "body2", children: [
2011
2011
  o ? "-%" : `${n}%`,
2012
2012
  " ",
2013
2013
  r?.key_indicators_spend.spend_less_than_you_make_drawer.spent
@@ -2016,46 +2016,44 @@ const B = {
2016
2016
  }
2017
2017
  ),
2018
2018
  label: r?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
2019
- status: i,
2020
- statusBarData: c,
2019
+ status: a,
2020
+ statusBarData: s,
2021
2021
  value: o ? "$0" : L(t.ninety_day_spend, "0,0.00")
2022
2022
  }
2023
2023
  );
2024
- }, Fr = S(Rr), Pr = ({
2025
- onPrimaryCtaClick: t
2026
- }) => {
2027
- const r = E(), { monthlySummaries: n } = F(), { finstrong: o, goals: s, spending: i } = v(), { selectedAccounts: c } = j(), { categories: p, dateRangeCategoryTotals: l, loadDateRangeCategoryTotals: d } = Ye(), { appDataStore: _ } = Kn(), [h, b] = m.useState("");
2024
+ }, Fr = S(Rr), Pr = () => {
2025
+ const t = E(), { monthlySummaries: r, handleFinstrongWidgetPrimaryCtaClick: n } = F(), { finstrong: o, goals: c, spending: a } = v(), { selectedAccounts: s } = j(), { categories: d, dateRangeCategoryTotals: l, loadDateRangeCategoryTotals: p } = Ye(), { appDataStore: h } = Kn(), [_, b] = m.useState("");
2028
2026
  m.useEffect(() => {
2029
- d(
2030
- c,
2027
+ p(
2028
+ s,
2031
2029
  Lt(/* @__PURE__ */ new Date()),
2032
2030
  Wt(/* @__PURE__ */ new Date())
2033
2031
  ).finally();
2034
- }, [c]);
2032
+ }, [s]);
2035
2033
  const f = m.useMemo(
2036
- () => _o(p, s, r, l),
2037
- [p, l]
2034
+ () => _o(d, c, t, l),
2035
+ [d, l]
2038
2036
  ), w = (g) => {
2039
- b(h === g ? "" : g);
2040
- }, { totalSpending: y, totalIncome: D } = m.useMemo(() => n?.reduce(
2037
+ b(_ === g ? "" : g);
2038
+ }, { totalSpending: y, totalIncome: D } = m.useMemo(() => r?.reduce(
2041
2039
  (g, { standard_spend: x = 0, income: M = 0 }) => ({
2042
2040
  totalSpending: g.totalSpending + x,
2043
2041
  totalIncome: g.totalIncome + M
2044
2042
  }),
2045
2043
  { totalSpending: 0, totalIncome: 0 }
2046
- ), [n]);
2047
- return /* @__PURE__ */ a(u, { sx: { gap: 24 }, children: [
2048
- n.length ? /* @__PURE__ */ e(
2044
+ ), [r]);
2045
+ return /* @__PURE__ */ i(u, { sx: { gap: 24 }, children: [
2046
+ r.length ? /* @__PURE__ */ e(
2049
2047
  jt,
2050
2048
  {
2051
- ..._.appData.client_profile?.allow_trends_widget && {
2049
+ ...h.appData.client_profile?.allow_trends_widget && {
2052
2050
  buttonLabel: o.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2053
2051
  },
2054
2052
  chartFor: "spending_vs_income",
2055
- data: n,
2053
+ data: r,
2056
2054
  legendLabelComparison: o.key_indicators_spend.spend_less_than_you_make_drawer.income,
2057
2055
  legendLabelMain: o.key_indicators_spend.spend_less_than_you_make_drawer.spending,
2058
- onClick: () => t?.("trends"),
2056
+ onClick: () => n("Trends")(),
2059
2057
  title: o.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2060
2058
  totalComparison: L(D, "0,0.00"),
2061
2059
  totalMain: L(y, "0,0.00")
@@ -2081,7 +2079,7 @@ const B = {
2081
2079
  variant: "no-buttons"
2082
2080
  }
2083
2081
  ),
2084
- f ? /* @__PURE__ */ a(
2082
+ f ? /* @__PURE__ */ i(
2085
2083
  K,
2086
2084
  {
2087
2085
  sx: {
@@ -2089,7 +2087,7 @@ const B = {
2089
2087
  py: 24
2090
2088
  },
2091
2089
  children: [
2092
- /* @__PURE__ */ a(
2090
+ /* @__PURE__ */ i(
2093
2091
  u,
2094
2092
  {
2095
2093
  sx: {
@@ -2101,11 +2099,11 @@ const B = {
2101
2099
  },
2102
2100
  children: [
2103
2101
  /* @__PURE__ */ e(N, { children: o.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2104
- _.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2105
- W,
2102
+ h.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2103
+ $,
2106
2104
  {
2107
2105
  endIcon: /* @__PURE__ */ e(Z, {}),
2108
- onClick: () => t?.("spending"),
2106
+ onClick: () => n("Spending")(),
2109
2107
  size: "small",
2110
2108
  sx: {
2111
2109
  pl: 8,
@@ -2118,14 +2116,14 @@ const B = {
2118
2116
  ]
2119
2117
  }
2120
2118
  ),
2121
- /* @__PURE__ */ a(u, { sx: { gap: 12, py: 16, flexDirection: "row", justifyContent: "center" }, children: [
2119
+ /* @__PURE__ */ i(u, { sx: { gap: 12, py: 16, flexDirection: "row", justifyContent: "center" }, children: [
2122
2120
  /* @__PURE__ */ e(
2123
2121
  ho,
2124
2122
  {
2125
2123
  data: f,
2126
2124
  onSelected: w,
2127
- selectedId: h,
2128
- totalLabel: i.total_spending
2125
+ selectedId: _,
2126
+ totalLabel: a.total_spending
2129
2127
  }
2130
2128
  ),
2131
2129
  /* @__PURE__ */ e(
@@ -2133,7 +2131,7 @@ const B = {
2133
2131
  {
2134
2132
  data: f,
2135
2133
  onSelected: w,
2136
- selectedId: h
2134
+ selectedId: _
2137
2135
  }
2138
2136
  )
2139
2137
  ] })
@@ -2168,27 +2166,26 @@ const B = {
2168
2166
  }, Lr = ({
2169
2167
  drawerFor: t,
2170
2168
  isOpen: r,
2171
- onClose: n,
2172
- onPrimaryCtaClick: o
2169
+ onClose: n
2173
2170
  }) => {
2174
- const { finstrong: s } = v(), c = {
2171
+ const { finstrong: o } = v(), a = {
2175
2172
  spendLessThanYouMake: {
2176
- title: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
2177
- description: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
2173
+ title: o.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
2174
+ description: o.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
2178
2175
  stickyComponent: /* @__PURE__ */ e(Fr, {}),
2179
- content: /* @__PURE__ */ e(Br, { onPrimaryCtaClick: o }),
2176
+ content: /* @__PURE__ */ e(Br, {}),
2180
2177
  drawerType: "connectDrawer",
2181
- connectTitle: s.connect_your_accounts,
2182
- connectDescription: s.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2178
+ connectTitle: o.connect_your_accounts,
2179
+ connectDescription: o.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2183
2180
  },
2184
2181
  payBillsOnTime: {
2185
- title: s.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
2186
- description: s.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
2182
+ title: o.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
2183
+ description: o.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
2187
2184
  stickyComponent: /* @__PURE__ */ e(hr, {}),
2188
2185
  content: /* @__PURE__ */ e(ur, {}),
2189
2186
  drawerType: "connectDrawer",
2190
- connectTitle: s.connect_your_accounts,
2191
- connectDescription: s.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2187
+ connectTitle: o.connect_your_accounts,
2188
+ connectDescription: o.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2192
2189
  },
2193
2190
  maintainEmergencySavings: {
2194
2191
  content: /* @__PURE__ */ e(rr, {}),
@@ -2196,17 +2193,17 @@ const B = {
2196
2193
  stickyComponent: /* @__PURE__ */ e(cr, {}),
2197
2194
  title: Ee.maintain_emergency_savings_title,
2198
2195
  drawerType: "connectDrawer",
2199
- connectTitle: s.connect_your_accounts,
2200
- connectDescription: s.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2196
+ connectTitle: o.connect_your_accounts,
2197
+ connectDescription: o.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2201
2198
  },
2202
2199
  haveManageableDebt: {
2203
- title: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
2204
- description: s.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
2200
+ title: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
2201
+ description: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
2205
2202
  stickyComponent: /* @__PURE__ */ e(wr, {}),
2206
2203
  content: /* @__PURE__ */ e(Or, {}),
2207
2204
  drawerType: "connectDrawer",
2208
- connectTitle: s.dont_see_all_your_accounts,
2209
- connectDescription: s.connect_more_accounts_to_view_more_accurate_financial_picture
2205
+ connectTitle: o.dont_see_all_your_accounts,
2206
+ connectDescription: o.connect_more_accounts_to_view_more_accurate_financial_picture
2210
2207
  },
2211
2208
  haveAGoodCreditScore: {
2212
2209
  title: /* @__PURE__ */ e(Xo, {}),
@@ -2215,44 +2212,43 @@ const B = {
2215
2212
  content: /* @__PURE__ */ e(jo, {})
2216
2213
  },
2217
2214
  saveEnoughToLiveOn: {
2218
- title: s.key_indicators_save.drawer_title,
2219
- description: s.key_indicators_save.drawer_description,
2215
+ title: o.key_indicators_save.drawer_title,
2216
+ description: o.key_indicators_save.drawer_description,
2220
2217
  stickyComponent: /* @__PURE__ */ e(Cr, {}),
2221
2218
  content: /* @__PURE__ */ e(xr, {}),
2222
2219
  drawerType: "connectDrawer",
2223
- connectTitle: s.dont_see_all_your_accounts,
2224
- connectDescription: s.connect_more_accounts_to_view_more_accurate_financial_picture
2220
+ connectTitle: o.dont_see_all_your_accounts,
2221
+ connectDescription: o.connect_more_accounts_to_view_more_accurate_financial_picture
2225
2222
  }
2226
2223
  }[t];
2227
2224
  return /* @__PURE__ */ e(
2228
2225
  Ht,
2229
2226
  {
2230
- connectDescription: c?.connectDescription,
2231
- connectTitle: c?.connectTitle,
2232
- description: c?.description,
2233
- drawerTitle: s.key_indicators,
2234
- drawerType: c.drawerType,
2227
+ connectDescription: a?.connectDescription,
2228
+ connectTitle: a?.connectTitle,
2229
+ description: a?.description,
2230
+ drawerTitle: o.key_indicators,
2231
+ drawerType: a.drawerType,
2235
2232
  isOpen: r,
2236
2233
  loadConnectAccountsCard: !0,
2237
2234
  onClose: n,
2238
- stickyComponent: c.stickyComponent,
2239
- title: c.title,
2240
- children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: c.content })
2235
+ stickyComponent: a.stickyComponent,
2236
+ title: a.title,
2237
+ children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: a.content })
2241
2238
  }
2242
2239
  );
2243
- }, Wr = S(Lr), xe = ({
2240
+ }, Wr = S(Lr), fe = ({
2244
2241
  drawerFor: t,
2245
2242
  title: r,
2246
2243
  description: n,
2247
- cardState: o = "MISSING",
2248
- onPrimaryCtaClick: s
2244
+ cardState: o = "MISSING"
2249
2245
  }) => {
2250
- const [i, c] = m.useState(!1);
2251
- return /* @__PURE__ */ a(z, { children: [
2252
- /* @__PURE__ */ a(
2246
+ const [c, a] = m.useState(!1);
2247
+ return /* @__PURE__ */ i(z, { children: [
2248
+ /* @__PURE__ */ i(
2253
2249
  u,
2254
2250
  {
2255
- onClick: () => c(!0),
2251
+ onClick: () => a(!0),
2256
2252
  sx: {
2257
2253
  alignItems: "center",
2258
2254
  flexDirection: "row",
@@ -2265,8 +2261,8 @@ const B = {
2265
2261
  cursor: "pointer"
2266
2262
  },
2267
2263
  children: [
2268
- /* @__PURE__ */ a(u, { sx: { gap: 4 }, children: [
2269
- /* @__PURE__ */ a(u, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
2264
+ /* @__PURE__ */ i(u, { sx: { gap: 4 }, children: [
2265
+ /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
2270
2266
  /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: r }),
2271
2267
  /* @__PURE__ */ e(Le, { status: o })
2272
2268
  ] }),
@@ -2280,177 +2276,175 @@ const B = {
2280
2276
  Wr,
2281
2277
  {
2282
2278
  drawerFor: t,
2283
- isOpen: i,
2284
- onClose: () => c(!1),
2285
- onPrimaryCtaClick: s
2279
+ isOpen: c,
2280
+ onClose: () => a(!1)
2286
2281
  }
2287
2282
  )
2288
2283
  ] });
2289
- }, $r = ({ onPrimaryCtaClick: t }) => {
2290
- const { finstrong: r } = v(), { key_indicators_spend: n } = r, { healthScore: o } = F(), s = (p) => {
2291
- const l = $n(p), d = {
2292
- GOOD: n.ratio_good_description,
2293
- FAIR: n.ratio_fair_description,
2294
- OFF_TRACK: n.ratio_off_track_description,
2295
- MISSING: n.ratio_missing_description
2296
- }, _ = l === "MISSING" ? d[l] : Y(d[l], p);
2284
+ }, $r = () => {
2285
+ const { finstrong: t } = v(), { key_indicators_spend: r } = t, { healthScore: n } = F(), o = (s) => {
2286
+ const d = $n(s), l = {
2287
+ GOOD: r.ratio_good_description,
2288
+ FAIR: r.ratio_fair_description,
2289
+ OFF_TRACK: r.ratio_off_track_description,
2290
+ MISSING: r.ratio_missing_description
2291
+ }, p = d === "MISSING" ? l[d] : Y(l[d], s);
2297
2292
  return {
2298
- cardState: l,
2299
- description: _,
2300
- title: n.ratio_card_title
2293
+ cardState: d,
2294
+ description: p,
2295
+ title: r.ratio_card_title
2301
2296
  };
2302
- }, { spendToIncomeRatio: i, spendFeeCount: c } = m.useMemo(() => {
2303
- const p = o.spend_to_income_ratio !== null ? Math.round(o.spend_to_income_ratio * 100) : null, l = s(p), d = Wn(
2304
- o.spending_fee_transaction_count,
2305
- n
2297
+ }, { spendToIncomeRatio: c, spendFeeCount: a } = m.useMemo(() => {
2298
+ const s = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = o(s), l = Wn(
2299
+ n.spending_fee_transaction_count,
2300
+ r
2306
2301
  );
2307
- return { spendToIncomeRatio: l, spendFeeCount: d };
2302
+ return { spendToIncomeRatio: d, spendFeeCount: l };
2308
2303
  }, [
2309
- o.spend_to_income_ratio,
2310
- o.spending_fee_transaction_count,
2311
- n,
2312
- r
2304
+ n.spend_to_income_ratio,
2305
+ n.spending_fee_transaction_count,
2306
+ r,
2307
+ t
2313
2308
  ]);
2314
- return /* @__PURE__ */ a(u, { sx: { gap: 24, p: 8, pt: 24 }, children: [
2309
+ return /* @__PURE__ */ i(u, { sx: { gap: 24, p: 8, pt: 24 }, children: [
2315
2310
  /* @__PURE__ */ e(
2316
- xe,
2311
+ fe,
2317
2312
  {
2318
- cardState: i.cardState,
2319
- description: i.description,
2313
+ cardState: c.cardState,
2314
+ description: c.description,
2320
2315
  drawerFor: _e.SpendLessThanYouMake,
2321
- onPrimaryCtaClick: t,
2322
- title: i.title
2316
+ title: c.title
2323
2317
  }
2324
2318
  ),
2325
2319
  /* @__PURE__ */ e(
2326
- xe,
2320
+ fe,
2327
2321
  {
2328
- cardState: c.cardState,
2329
- description: c.description,
2322
+ cardState: a.cardState,
2323
+ description: a.description,
2330
2324
  drawerFor: _e.PayBillsOnTime,
2331
- title: c.title
2325
+ title: a.title
2332
2326
  }
2333
2327
  )
2334
2328
  ] });
2335
2329
  }, zr = S($r), Er = () => {
2336
- const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_save: n } = r, o = (p) => {
2337
- const l = wt(p), d = {
2330
+ const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_save: n } = r, o = (d) => {
2331
+ const l = wt(d), p = {
2338
2332
  GOOD: n.days_of_cash_good_description,
2339
2333
  FAIR: n.days_of_cash_fair_description,
2340
2334
  OFF_TRACK: n.days_of_cash_off_track_description,
2341
2335
  MISSING: n.days_of_cash_missing_description
2342
- }, _ = l === "MISSING" ? d[l] : Y(d[l], p);
2336
+ }, h = l === "MISSING" ? p[l] : Y(p[l], d);
2343
2337
  return {
2344
2338
  cardState: l,
2345
- description: _,
2339
+ description: h,
2346
2340
  title: n.days_of_cash_title
2347
2341
  };
2348
- }, s = (p) => {
2349
- const l = vt(p), d = {
2342
+ }, c = (d) => {
2343
+ const l = vt(d), p = {
2350
2344
  GOOD: n.emergency_savings_good_description,
2351
2345
  FAIR: n.emergency_savings_fair_description,
2352
2346
  OFF_TRACK: n.emergency_savings_off_track_description,
2353
2347
  MISSING: n.emergency_savings_missing_description
2354
2348
  };
2355
- let _;
2356
- return l === "FAIR" && p !== null ? _ = Y(
2357
- d[l],
2358
- L(p, "0,0.00")
2359
- ) : _ = d[l], {
2349
+ let h;
2350
+ return l === "FAIR" && d !== null ? h = Y(
2351
+ p[l],
2352
+ L(d, "0,0.00")
2353
+ ) : h = p[l], {
2360
2354
  cardState: l,
2361
- description: _,
2355
+ description: h,
2362
2356
  title: n.emergency_savings_title
2363
2357
  };
2364
- }, { daysOfCashOnHand: i, emergencySavings: c } = m.useMemo(() => {
2365
- const p = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, l = o(p), d = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, _ = s(d);
2366
- return { daysOfCashOnHand: l, emergencySavings: _ };
2358
+ }, { daysOfCashOnHand: a, emergencySavings: s } = m.useMemo(() => {
2359
+ 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, h = c(p);
2360
+ return { daysOfCashOnHand: l, emergencySavings: h };
2367
2361
  }, [
2368
2362
  t.months_of_cash_on_hand,
2369
2363
  t.emergency_savings_on_hand,
2370
2364
  n,
2371
2365
  r
2372
2366
  ]);
2373
- return /* @__PURE__ */ a(u, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2367
+ return /* @__PURE__ */ i(u, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2374
2368
  /* @__PURE__ */ e(
2375
- xe,
2369
+ fe,
2376
2370
  {
2377
- cardState: i.cardState,
2378
- description: i.description,
2371
+ cardState: a.cardState,
2372
+ description: a.description,
2379
2373
  drawerFor: _e.SaveEnoughToLiveOn,
2380
- title: i.title
2374
+ title: a.title
2381
2375
  }
2382
2376
  ),
2383
2377
  /* @__PURE__ */ e(
2384
- xe,
2378
+ fe,
2385
2379
  {
2386
- cardState: c.cardState,
2387
- description: c.description,
2380
+ cardState: s.cardState,
2381
+ description: s.description,
2388
2382
  drawerFor: _e.MaintainEmergencySavings,
2389
- title: c.title
2383
+ title: s.title
2390
2384
  }
2391
2385
  )
2392
2386
  ] });
2393
2387
  }, Gr = S(Er), Hr = () => {
2394
- const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_borrow: n } = r, { user: o } = Q(), s = (l) => {
2395
- const d = zn(l), _ = {
2388
+ const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_borrow: n } = r, { user: o } = Q(), c = (l) => {
2389
+ const p = zn(l), h = {
2396
2390
  GOOD: n.manage_debit_good_description,
2397
2391
  FAIR: n.manage_debit_fair_description,
2398
2392
  OFF_TRACK: n.manage_debit_off_track_description,
2399
2393
  MISSING: n.manage_debit_missing_description
2400
- }, h = d === "FAIR" || d === "OFF_TRACK" ? Y(_[d], l) : _[d];
2394
+ }, _ = p === "FAIR" || p === "OFF_TRACK" ? Y(h[p], l) : h[p];
2401
2395
  return {
2402
- cardState: d,
2403
- description: h,
2396
+ cardState: p,
2397
+ description: _,
2404
2398
  title: n.manage_debit_title
2405
2399
  };
2406
- }, i = (l) => {
2407
- const d = Ct(l), _ = {
2400
+ }, a = (l) => {
2401
+ const p = Ct(l), h = {
2408
2402
  GOOD: n.credit_score_good_description,
2409
2403
  FAIR: n.credit_score_fair_description,
2410
2404
  OFF_TRACK: n.credit_score_off_track_description,
2411
2405
  MISSING: n.credit_score_missing_description
2412
- }, h = d === "MISSING" ? _[d] : Y(_[d], l);
2406
+ }, _ = p === "MISSING" ? h[p] : Y(h[p], l);
2413
2407
  return {
2414
- cardState: d,
2415
- description: h,
2408
+ cardState: p,
2409
+ description: _,
2416
2410
  title: n.credit_score_title
2417
2411
  };
2418
- }, { manageDebtStatus: c, creditScoreStatus: p } = m.useMemo(() => {
2419
- const l = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, d = s(l), _ = i(o.credit_score || null);
2412
+ }, { manageDebtStatus: s, creditScoreStatus: d } = m.useMemo(() => {
2413
+ const l = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = c(l), h = a(o.credit_score || null);
2420
2414
  return {
2421
- manageDebtStatus: d,
2422
- creditScoreStatus: _
2415
+ manageDebtStatus: p,
2416
+ creditScoreStatus: h
2423
2417
  };
2424
2418
  }, [t.debt_to_income_ratio, o.credit_score, n, r]);
2425
- return /* @__PURE__ */ a(u, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2419
+ return /* @__PURE__ */ i(u, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2426
2420
  /* @__PURE__ */ e(
2427
- xe,
2421
+ fe,
2428
2422
  {
2429
- cardState: c.cardState,
2430
- description: c.description,
2423
+ cardState: s.cardState,
2424
+ description: s.description,
2431
2425
  drawerFor: _e.HaveManageableDebt,
2432
- title: c.title
2426
+ title: s.title
2433
2427
  }
2434
2428
  ),
2435
2429
  /* @__PURE__ */ e(
2436
- xe,
2430
+ fe,
2437
2431
  {
2438
- cardState: p.cardState,
2439
- description: p.description,
2432
+ cardState: d.cardState,
2433
+ description: d.description,
2440
2434
  drawerFor: _e.HaveAGoodCreditScore,
2441
- title: p.title
2435
+ title: d.title
2442
2436
  }
2443
2437
  )
2444
2438
  ] });
2445
- }, Nr = S(Hr), Kr = ({ onPrimaryCtaClick: t }) => {
2446
- const [r, n] = m.useState(0), { finstrong: o } = v();
2447
- return /* @__PURE__ */ a(z, { children: [
2448
- /* @__PURE__ */ a(
2439
+ }, Nr = S(Hr), Kr = () => {
2440
+ const [t, r] = m.useState(0), { finstrong: n } = v();
2441
+ return /* @__PURE__ */ i(z, { children: [
2442
+ /* @__PURE__ */ i(
2449
2443
  qe,
2450
2444
  {
2451
2445
  "aria-label": "Key Indicators",
2452
2446
  centered: !0,
2453
- onChange: (s, i) => n(i),
2447
+ onChange: (o, c) => r(c),
2454
2448
  sx: {
2455
2449
  mb: 0,
2456
2450
  "& .MuiTab-root": {
@@ -2458,7 +2452,7 @@ const B = {
2458
2452
  }
2459
2453
  },
2460
2454
  textColor: "primary",
2461
- value: r,
2455
+ value: t,
2462
2456
  variant: "fullWidth",
2463
2457
  children: [
2464
2458
  /* @__PURE__ */ e(
@@ -2468,7 +2462,7 @@ const B = {
2468
2462
  icon: /* @__PURE__ */ e(Ke, { sx: { mr: 8 } }),
2469
2463
  iconPosition: "start",
2470
2464
  id: "spend-details-tab-0",
2471
- label: o.key_indicators_spend.title,
2465
+ label: n.key_indicators_spend.title,
2472
2466
  sx: { minHeight: 44 }
2473
2467
  }
2474
2468
  ),
@@ -2479,7 +2473,7 @@ const B = {
2479
2473
  icon: /* @__PURE__ */ e(fn, { sx: { mr: 8 } }),
2480
2474
  iconPosition: "start",
2481
2475
  id: "save-details-tab-1",
2482
- label: o.key_indicators_save.title,
2476
+ label: n.key_indicators_save.title,
2483
2477
  sx: { minHeight: 44 }
2484
2478
  }
2485
2479
  ),
@@ -2490,27 +2484,27 @@ const B = {
2490
2484
  icon: /* @__PURE__ */ e(xn, { sx: { mr: 8 } }),
2491
2485
  iconPosition: "start",
2492
2486
  id: "borrow-details-tab-2",
2493
- label: o.key_indicators_borrow.title,
2487
+ label: n.key_indicators_borrow.title,
2494
2488
  sx: { minHeight: 44 }
2495
2489
  }
2496
2490
  )
2497
2491
  ]
2498
2492
  }
2499
2493
  ),
2500
- /* @__PURE__ */ e(ue, { index: 0, name: "spend-details", value: r, children: /* @__PURE__ */ e(zr, { onPrimaryCtaClick: t }) }),
2501
- /* @__PURE__ */ e(ue, { index: 1, name: "save-details", value: r, children: /* @__PURE__ */ e(Gr, {}) }),
2502
- /* @__PURE__ */ e(ue, { index: 2, name: "borrow-details", value: r, children: /* @__PURE__ */ e(Nr, {}) })
2494
+ /* @__PURE__ */ e(ue, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(zr, {}) }),
2495
+ /* @__PURE__ */ e(ue, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(Gr, {}) }),
2496
+ /* @__PURE__ */ e(ue, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Nr, {}) })
2503
2497
  ] });
2504
2498
  }, jr = S(Kr), Yr = ({ onClick: t }) => {
2505
2499
  const { finstrong: r } = v(), { isCopyLoaded: n } = j();
2506
- return n ? /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
2500
+ return n ? /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
2507
2501
  /* @__PURE__ */ e(bt, { size: 48 }),
2508
- /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
2502
+ /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
2509
2503
  /* @__PURE__ */ e(N, { children: r.missing_data_title }),
2510
2504
  /* @__PURE__ */ e(k, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: r.missing_data_description })
2511
2505
  ] }),
2512
2506
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
2513
- W,
2507
+ $,
2514
2508
  {
2515
2509
  endIcon: /* @__PURE__ */ e(Z, {}),
2516
2510
  onClick: t,
@@ -2533,42 +2527,42 @@ const B = {
2533
2527
  frequency: r,
2534
2528
  secondDay: n,
2535
2529
  incomeTransactions: o,
2536
- setCurrentStep: s,
2537
- setFirstDay: i,
2538
- setFrequency: c,
2539
- setSecondDay: p,
2530
+ setCurrentStep: c,
2531
+ setFirstDay: a,
2532
+ setFrequency: s,
2533
+ setSecondDay: d,
2540
2534
  transaction: l
2541
- }) => /* @__PURE__ */ a(m.Fragment, { children: [
2542
- /* @__PURE__ */ a(u, { children: [
2543
- !!o.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: o.reduce((d, _, h) => {
2544
- if (_.guid === l.guid) return d;
2545
- const b = Ne(h, o), f = Ft(h, o);
2546
- return d.push(
2547
- /* @__PURE__ */ a(m.Fragment, { children: [
2548
- b && /* @__PURE__ */ e(Pt, { children: Ze(_.date) }),
2549
- /* @__PURE__ */ e(Bt, { transaction: _ }),
2535
+ }) => /* @__PURE__ */ i(m.Fragment, { children: [
2536
+ /* @__PURE__ */ i(u, { children: [
2537
+ !!o.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: o.reduce((p, h, _) => {
2538
+ if (h.guid === l.guid) return p;
2539
+ const b = Ne(_, o), f = Ft(_, o);
2540
+ return p.push(
2541
+ /* @__PURE__ */ i(m.Fragment, { children: [
2542
+ b && /* @__PURE__ */ e(Pt, { children: Ze(h.date) }),
2543
+ /* @__PURE__ */ e(Bt, { transaction: h }),
2550
2544
  /* @__PURE__ */ e(ne, { sx: { ml: f ? 44 : 0 } })
2551
- ] }, _.guid)
2552
- ), d;
2545
+ ] }, h.guid)
2546
+ ), p;
2553
2547
  }, []) }),
2554
2548
  /* @__PURE__ */ e(
2555
2549
  fo,
2556
2550
  {
2557
2551
  firstDay: t,
2558
2552
  frequency: r,
2559
- onFirstDayChange: i,
2560
- onFrequencyChange: c,
2561
- onSecondDayChange: p,
2553
+ onFirstDayChange: a,
2554
+ onFrequencyChange: s,
2555
+ onSecondDayChange: d,
2562
2556
  secondDay: n,
2563
2557
  transaction: l
2564
2558
  }
2565
2559
  )
2566
2560
  ] }),
2567
2561
  /* @__PURE__ */ e(C, { sx: { px: 24 }, children: /* @__PURE__ */ e(
2568
- W,
2562
+ $,
2569
2563
  {
2570
2564
  fullWidth: !0,
2571
- onClick: () => s({ step: O.MonthlyIncome, type: "main" }),
2565
+ onClick: () => c({ step: O.MonthlyIncome, type: "main" }),
2572
2566
  startIcon: /* @__PURE__ */ e(ft, {}),
2573
2567
  children: Xr.add_more_income
2574
2568
  }
@@ -2576,8 +2570,8 @@ const B = {
2576
2570
  ] }), Ur = S(qr), Zr = {
2577
2571
  select_date: "Select Date"
2578
2572
  }, Qr = ({ selectedDate: t, setSelectedDate: r }) => {
2579
- const n = E(), o = (s) => {
2580
- r(Math.floor(new Date(s).getTime() / 1e3));
2573
+ const n = E(), o = (c) => {
2574
+ r(Math.floor(new Date(c).getTime() / 1e3));
2581
2575
  };
2582
2576
  return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(Co, { dateAdapter: $t, children: /* @__PURE__ */ e(
2583
2577
  vo,
@@ -2589,13 +2583,13 @@ const B = {
2589
2583
  nextIconButton: {
2590
2584
  sx: {
2591
2585
  color: "primary.main",
2592
- "&:hover": { bgcolor: fe(n.palette.primary.light, 0.1) }
2586
+ "&:hover": { bgcolor: be(n.palette.primary.light, 0.1) }
2593
2587
  }
2594
2588
  },
2595
2589
  previousIconButton: {
2596
2590
  sx: {
2597
2591
  color: "primary.main",
2598
- "&:hover": { bgcolor: fe(n.palette.primary.light, 0.1) }
2592
+ "&:hover": { bgcolor: be(n.palette.primary.light, 0.1) }
2599
2593
  }
2600
2594
  }
2601
2595
  },
@@ -2603,7 +2597,7 @@ const B = {
2603
2597
  width: "100%",
2604
2598
  "& .MuiIconButton-edgeEnd": {
2605
2599
  color: "primary.main",
2606
- "&:hover": { bgcolor: fe(n.palette.primary.light, 0.1) }
2600
+ "&:hover": { bgcolor: be(n.palette.primary.light, 0.1) }
2607
2601
  }
2608
2602
  },
2609
2603
  value: t ? new Date(t * 1e3) : null
@@ -2628,7 +2622,7 @@ const B = {
2628
2622
  value: n ? t : ""
2629
2623
  }
2630
2624
  ) });
2631
- }, na = S(ta), Yt = ({ value: t, completeCopy: r }) => /* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
2625
+ }, na = S(ta), Yt = ({ value: t, completeCopy: r }) => /* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
2632
2626
  /* @__PURE__ */ e(u, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, o) => /* @__PURE__ */ e(
2633
2627
  C,
2634
2628
  {
@@ -2641,7 +2635,7 @@ const B = {
2641
2635
  },
2642
2636
  o
2643
2637
  )) }),
2644
- /* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "body2", children: [
2638
+ /* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "body2", children: [
2645
2639
  t / 4 * 100,
2646
2640
  "% ",
2647
2641
  r
@@ -2651,8 +2645,8 @@ const B = {
2651
2645
  primaryText: r,
2652
2646
  secondaryText: n,
2653
2647
  value: o
2654
- }) => /* @__PURE__ */ a(u, { sx: { gap: 20, p: 24 }, children: [
2655
- /* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
2648
+ }) => /* @__PURE__ */ i(u, { sx: { gap: 20, p: 24 }, children: [
2649
+ /* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
2656
2650
  /* @__PURE__ */ e(N, { children: r }),
2657
2651
  /* @__PURE__ */ e(k, { variant: "subtitle1", children: n })
2658
2652
  ] }),
@@ -2679,35 +2673,35 @@ const B = {
2679
2673
  do_it_later: "Do It Later",
2680
2674
  next: "Next"
2681
2675
  }, ra = ({ isOpen: t, onClose: r }) => {
2682
- const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: s } = v(), { setSelectedAccounts: i } = j(), { addRepeatingTransaction: c, setDateRange: p } = Ve(), { filter: l, setFilter: d, transactions: _ } = jn(), { user: h, userProfile: b, updateUser: f, updateUserProfile: w } = Q(), [y, D] = m.useState(h.credit_score || 0), [g, x] = m.useState(
2676
+ const { visibleAccounts: n } = ke(), { calculateHealthScore: o } = F(), { finstrong: c } = v(), { setSelectedAccounts: a } = j(), { addRepeatingTransaction: s, setDateRange: d } = Ve(), { filter: l, setFilter: p, transactions: h } = jn(), { user: _, userProfile: b, updateUser: f, updateUserProfile: w } = Q(), [y, D] = m.useState(_.credit_score || 0), [g, x] = m.useState(
2683
2677
  ht
2684
- ), [M, $] = m.useState(1), [G, H] = m.useState(Ot.EveryMonth), [T, V] = m.useState([]), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(h.birthday), [ce, he] = m.useState(15), [q, Je] = m.useState("");
2678
+ ), [M, W] = m.useState(1), [G, H] = m.useState(Ot.EveryMonth), [T, V] = m.useState([]), [re, ae] = m.useState(!1), [Se, ie] = m.useState(!1), [X, se] = m.useState(_.birthday), [ce, Me] = m.useState(15), [q, Je] = m.useState("");
2685
2679
  m.useEffect(() => {
2686
- p({ start: Lt(dt()), end: Wt(dt()) });
2680
+ d({ start: Lt(dt()), end: Wt(dt()) });
2687
2681
  }, []), m.useEffect(() => {
2688
- d({
2682
+ p({
2689
2683
  accounts: n.map((A) => A.guid),
2690
2684
  dateRange: {
2691
2685
  start: bo(/* @__PURE__ */ new Date(), 90),
2692
2686
  end: /* @__PURE__ */ new Date()
2693
2687
  },
2694
2688
  custom: pt
2695
- }), i(n);
2689
+ }), a(n);
2696
2690
  }, [n]);
2697
2691
  const et = m.useMemo(
2698
- () => _.find((A) => A.guid === q),
2699
- [q, _]
2692
+ () => h.find((A) => A.guid === q),
2693
+ [q, h]
2700
2694
  ), Vt = m.useMemo(() => ({
2701
2695
  [O.ConnectAccounts]: !0,
2702
2696
  [O.MonthlyIncome]: !!q,
2703
- [O.Birthday]: !!h.birthday || !!X,
2704
- [O.CreditScore]: !!h.credit_score || !!y
2705
- })[g.step], [y, g, X, q, h]), le = n.length > 0, Xt = m.useMemo(() => {
2697
+ [O.Birthday]: !!_.birthday || !!X,
2698
+ [O.CreditScore]: !!_.credit_score || !!y
2699
+ })[g.step], [y, g, X, q, _]), le = n.length > 0, Xt = m.useMemo(() => {
2706
2700
  const { step: A } = g;
2707
2701
  let R = 0;
2708
- return A >= O.MonthlyIncome && le && R++, A >= O.Birthday && T.length && R++, A >= O.CreditScore && (h.birthday || h.credit_score) && R++, R;
2709
- }, [g.step, le, T.length, h.birthday, h.credit_score]), qt = (A) => {
2710
- d({
2702
+ return A >= O.MonthlyIncome && le && R++, A >= O.Birthday && T.length && R++, A >= O.CreditScore && (_.birthday || _.credit_score) && R++, R;
2703
+ }, [g.step, le, T.length, _.birthday, _.credit_score]), qt = (A) => {
2704
+ p({
2711
2705
  ...l,
2712
2706
  custom: (R) => A ? So(R, A) : pt(R)
2713
2707
  });
@@ -2729,13 +2723,13 @@ const B = {
2729
2723
  setCurrentStep: (A) => {
2730
2724
  x(A), V((R) => {
2731
2725
  if (R.some((de) => de.guid === q)) return R.filter((de) => de.guid !== q);
2732
- const Ie = _.find((de) => de.guid === q);
2726
+ const Ie = h.find((de) => de.guid === q);
2733
2727
  return Ie ? [...R, { ...Ie, firstDay: M, frequency: G, secondDay: ce }] : R;
2734
2728
  });
2735
2729
  },
2736
- setFirstDay: $,
2730
+ setFirstDay: W,
2737
2731
  setFrequency: H,
2738
- setSecondDay: he,
2732
+ setSecondDay: Me,
2739
2733
  transaction: et
2740
2734
  }
2741
2735
  ),
@@ -2779,14 +2773,14 @@ const B = {
2779
2773
  const { step: A } = g, R = A + 1;
2780
2774
  switch (A) {
2781
2775
  case O.Birthday:
2782
- X && X !== h.birthday && f({ ...h, birthday: X });
2776
+ X && X !== _.birthday && f({ ..._, birthday: X });
2783
2777
  break;
2784
2778
  case O.CreditScore:
2785
- y && y !== h.credit_score && f({ ...h, credit_score: y }), nt();
2779
+ y && y !== _.credit_score && f({ ..._, credit_score: y }), nt();
2786
2780
  return;
2787
2781
  case O.MonthlyIncome:
2788
- q && T.findIndex(({ guid: ge }) => ge === q) === -1 && V((ge) => [
2789
- ...ge,
2782
+ q && T.findIndex(({ guid: me }) => me === q) === -1 && V((me) => [
2783
+ ...me,
2790
2784
  { ...et, firstDay: M, frequency: G, secondDay: ce }
2791
2785
  ]);
2792
2786
  break;
@@ -2812,7 +2806,7 @@ const B = {
2812
2806
  }, en = async (A) => {
2813
2807
  for (const R of A) {
2814
2808
  const {
2815
- account_guid: ge,
2809
+ account_guid: me,
2816
2810
  amount: Ie,
2817
2811
  date: de,
2818
2812
  description: on,
@@ -2824,7 +2818,7 @@ const B = {
2824
2818
  payee: ln,
2825
2819
  transaction_type: dn
2826
2820
  } = R, pn = Jn(ot, yo(de)), un = {
2827
- account_guid: ge,
2821
+ account_guid: me,
2828
2822
  amount: Ie,
2829
2823
  created_by: 0,
2830
2824
  description: ln || on || rn,
@@ -2835,16 +2829,16 @@ const B = {
2835
2829
  repeating_transaction_type: Rt.Income,
2836
2830
  second_recurrence_day: sn,
2837
2831
  transaction_type: dn,
2838
- user_guid: h.guid
2832
+ user_guid: _.guid
2839
2833
  };
2840
- await c(un, R);
2834
+ await s(un, R);
2841
2835
  }
2842
- }, me = Ut[g.step], De = g.step === O.ConnectAccounts, tn = {
2836
+ }, he = Ut[g.step], De = g.step === O.ConnectAccounts, tn = {
2843
2837
  fullWidth: !0,
2844
2838
  ...De && !le && { startIcon: /* @__PURE__ */ e(ft, {}) }
2845
2839
  }, nn = !De || De && !le;
2846
- return /* @__PURE__ */ a(m.Fragment, { children: [
2847
- /* @__PURE__ */ a(
2840
+ return /* @__PURE__ */ i(m.Fragment, { children: [
2841
+ /* @__PURE__ */ i(
2848
2842
  te,
2849
2843
  {
2850
2844
  footerStyles: { px: 24, py: 16 },
@@ -2854,31 +2848,31 @@ const B = {
2854
2848
  onClose: tt,
2855
2849
  onSecondaryAction: Jt,
2856
2850
  primaryButtonProps: tn,
2857
- primaryText: me?.mainActionContent,
2851
+ primaryText: he?.mainActionContent,
2858
2852
  secondaryColor: "primary",
2859
2853
  secondaryText: P.back,
2860
- title: s.title,
2854
+ title: c.title,
2861
2855
  ...!re && { onPrimaryAction: Qt },
2862
2856
  children: [
2863
- re && /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
2857
+ re && /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
2864
2858
  /* @__PURE__ */ e(Pe, { children: P.calculate_primary }),
2865
2859
  /* @__PURE__ */ e(k, { sx: { textAlign: "center" }, variant: "subtitle1", children: P.calculate_secondary })
2866
2860
  ] }),
2867
- me && !re && /* @__PURE__ */ a(m.Fragment, { children: [
2861
+ he && !re && /* @__PURE__ */ i(m.Fragment, { children: [
2868
2862
  /* @__PURE__ */ e(
2869
2863
  oa,
2870
2864
  {
2871
- completeCopy: s.complete,
2872
- primaryText: me.primaryText,
2873
- secondaryText: me.secondaryText,
2865
+ completeCopy: c.complete,
2866
+ primaryText: he.primaryText,
2867
+ secondaryText: he.secondaryText,
2874
2868
  value: Xt
2875
2869
  }
2876
2870
  ),
2877
- g.type === "main" && /* @__PURE__ */ a(C, { children: [
2878
- me.main,
2879
- nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(W, { fullWidth: !0, onClick: Zt, children: P.do_it_later }) })
2871
+ g.type === "main" && /* @__PURE__ */ i(C, { children: [
2872
+ he.main,
2873
+ nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e($, { fullWidth: !0, onClick: Zt, children: P.do_it_later }) })
2880
2874
  ] }),
2881
- g.type === "detail" && me.detail
2875
+ g.type === "detail" && he.detail
2882
2876
  ] })
2883
2877
  ]
2884
2878
  }
@@ -2887,7 +2881,7 @@ const B = {
2887
2881
  oe,
2888
2882
  {
2889
2883
  onClose: () => ie(!1),
2890
- showConnectWidget: Ce,
2884
+ showConnectWidget: Se,
2891
2885
  title: P.connect_accounts
2892
2886
  }
2893
2887
  )
@@ -2898,8 +2892,8 @@ const B = {
2898
2892
  get_started: "Get Started"
2899
2893
  }, ia = () => {
2900
2894
  const [t, r] = m.useState(!1);
2901
- return /* @__PURE__ */ a(m.Fragment, { children: [
2902
- /* @__PURE__ */ a(
2895
+ return /* @__PURE__ */ i(m.Fragment, { children: [
2896
+ /* @__PURE__ */ i(
2903
2897
  u,
2904
2898
  {
2905
2899
  sx: {
@@ -2910,22 +2904,22 @@ const B = {
2910
2904
  px: 16
2911
2905
  },
2912
2906
  children: [
2913
- /* @__PURE__ */ a(u, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
2907
+ /* @__PURE__ */ i(u, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
2914
2908
  /* @__PURE__ */ e(C, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(Sn, { size: 72 }) }),
2915
- /* @__PURE__ */ a(u, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
2909
+ /* @__PURE__ */ i(u, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
2916
2910
  /* @__PURE__ */ e(Pe, { children: Ge.onboarding_title }),
2917
2911
  /* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children: Ge.onboarding_subtitle })
2918
2912
  ] })
2919
2913
  ] }),
2920
- /* @__PURE__ */ e(W, { onClick: () => r(!0), variant: "contained", children: Ge.get_started })
2914
+ /* @__PURE__ */ e($, { onClick: () => r(!0), variant: "contained", children: Ge.get_started })
2921
2915
  ]
2922
2916
  }
2923
2917
  ),
2924
2918
  /* @__PURE__ */ e(aa, { isOpen: t, onClose: () => r(!1) })
2925
2919
  ] });
2926
2920
  }, sa = ({ isOpen: t, onClose: r }) => {
2927
- const { finstrong: n } = v(), o = E(), { updateUser: s, user: i } = Q(), [c, p] = m.useState(i.birthday), l = (_) => {
2928
- p(Math.floor(new Date(_).getTime() / 1e3));
2921
+ const { finstrong: n } = v(), o = E(), { updateUser: c, user: a } = Q(), [s, d] = m.useState(a.birthday), l = (h) => {
2922
+ d(Math.floor(new Date(h).getTime() / 1e3));
2929
2923
  };
2930
2924
  return /* @__PURE__ */ e(
2931
2925
  te,
@@ -2933,7 +2927,7 @@ const B = {
2933
2927
  isOpen: t,
2934
2928
  onClose: r,
2935
2929
  onPrimaryAction: () => {
2936
- !c || c === i.birthday || (s({ ...i, birthday: c }), r());
2930
+ !s || s === a.birthday || (c({ ...a, birthday: s }), r());
2937
2931
  },
2938
2932
  onSecondaryAction: r,
2939
2933
  title: n.date_of_birth,
@@ -2946,13 +2940,13 @@ const B = {
2946
2940
  nextIconButton: {
2947
2941
  sx: {
2948
2942
  color: "primary.main",
2949
- "&:hover": { bgcolor: fe(o.palette.primary.light, 0.1) }
2943
+ "&:hover": { bgcolor: be(o.palette.primary.light, 0.1) }
2950
2944
  }
2951
2945
  },
2952
2946
  previousIconButton: {
2953
2947
  sx: {
2954
2948
  color: "primary.main",
2955
- "&:hover": { bgcolor: fe(o.palette.primary.light, 0.1) }
2949
+ "&:hover": { bgcolor: be(o.palette.primary.light, 0.1) }
2956
2950
  }
2957
2951
  }
2958
2952
  },
@@ -2964,100 +2958,100 @@ const B = {
2964
2958
  width: "100%",
2965
2959
  "& .MuiIconButton-edgeEnd": {
2966
2960
  color: "primary.main",
2967
- "&:hover": { bgcolor: fe(o.palette.primary.light, 0.1) }
2961
+ "&:hover": { bgcolor: be(o.palette.primary.light, 0.1) }
2968
2962
  }
2969
2963
  },
2970
- value: c ? new Date(c * 1e3) : /* @__PURE__ */ new Date()
2964
+ value: s ? new Date(s * 1e3) : /* @__PURE__ */ new Date()
2971
2965
  }
2972
2966
  ) })
2973
2967
  }
2974
2968
  );
2975
2969
  }, ca = S(sa), la = ({ isOpen: t, onClose: r }) => {
2976
- const { visibleFinstrongAccounts: n } = Me(), {
2970
+ const { visibleFinstrongAccounts: n } = ke(), {
2977
2971
  accounts: o,
2978
- common: s,
2979
- finstrong: i
2980
- } = v(), { repeatingTransactions: c } = Ve(), { user: p } = Q(), l = c.reduce((f, w) => {
2972
+ common: c,
2973
+ finstrong: a
2974
+ } = v(), { repeatingTransactions: s } = Ve(), { user: d } = Q(), l = s.reduce((f, w) => {
2981
2975
  const { repeating_transaction_type: y, transactions: D, recurrence_type: g, amount: x } = w;
2982
2976
  return y === Rt.Income && (D.length > 0 || g === Ot.EveryYear) ? f + x : f;
2983
- }, 0), [d, _] = m.useState(null), b = [
2977
+ }, 0), [p, h] = m.useState(null), b = [
2984
2978
  {
2985
- dynamicCopy: i.add_profile_item,
2986
- fallbackLabel: i.monthly_income,
2979
+ dynamicCopy: a.add_profile_item,
2980
+ fallbackLabel: a.monthly_income,
2987
2981
  icon: /* @__PURE__ */ e(Cn, {}),
2988
2982
  key: ee.MonthlyIncome,
2989
- label: i.monthly_income,
2983
+ label: a.monthly_income,
2990
2984
  value: l
2991
2985
  },
2992
2986
  {
2993
- dynamicCopy: i.add_profile_item,
2994
- fallbackLabel: i.date_of_birth,
2987
+ dynamicCopy: a.add_profile_item,
2988
+ fallbackLabel: a.date_of_birth,
2995
2989
  icon: /* @__PURE__ */ e(vn, {}),
2996
2990
  key: ee.DateOfBirth,
2997
- label: i.date_of_birth,
2998
- value: p.birthday
2991
+ label: a.date_of_birth,
2992
+ value: d.birthday
2999
2993
  },
3000
2994
  {
3001
- dynamicCopy: i.add_profile_item,
3002
- fallbackLabel: i.credit_score,
2995
+ dynamicCopy: a.add_profile_item,
2996
+ fallbackLabel: a.credit_score,
3003
2997
  icon: /* @__PURE__ */ e(Ke, {}),
3004
2998
  key: ee.CreditScore,
3005
- label: i.credit_score,
3006
- value: p.credit_score
2999
+ label: a.credit_score,
3000
+ value: d.credit_score
3007
3001
  },
3008
3002
  {
3009
- fallbackLabel: i.connect_your_accounts,
3003
+ fallbackLabel: a.connect_your_accounts,
3010
3004
  icon: /* @__PURE__ */ e(yt, {}),
3011
3005
  key: ee.Connections,
3012
- label: i.connections,
3006
+ label: a.connections,
3013
3007
  value: n.length > 0 ? Y(
3014
- i.connected_account,
3008
+ a.connected_account,
3015
3009
  String(n.length),
3016
- n.length > 1 ? i.accounts : i.account
3010
+ n.length > 1 ? a.accounts : a.account
3017
3011
  ) : void 0
3018
3012
  }
3019
3013
  ].map((f) => En(f));
3020
- return /* @__PURE__ */ a(te, { isOpen: t, onClose: r, title: i.financial_profile, children: [
3021
- /* @__PURE__ */ a(u, { sx: { gap: 20, p: 24 }, children: [
3022
- /* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
3023
- /* @__PURE__ */ e(N, { children: i.your_financial_profile }),
3024
- /* @__PURE__ */ e(k, { children: i.financial_profile_description })
3014
+ return /* @__PURE__ */ i(te, { isOpen: t, onClose: r, title: a.financial_profile, children: [
3015
+ /* @__PURE__ */ i(u, { sx: { gap: 20, p: 24 }, children: [
3016
+ /* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
3017
+ /* @__PURE__ */ e(N, { children: a.your_financial_profile }),
3018
+ /* @__PURE__ */ e(k, { children: a.financial_profile_description })
3025
3019
  ] }),
3026
3020
  /* @__PURE__ */ e(
3027
3021
  Yt,
3028
3022
  {
3029
- completeCopy: i.complete,
3023
+ completeCopy: a.complete,
3030
3024
  value: b.reduce((f, w) => f + (w.isComplete ? 1 : 0), 0)
3031
3025
  }
3032
3026
  )
3033
3027
  ] }),
3034
- /* @__PURE__ */ e(Gn, { list: b, onClickItem: _ }),
3028
+ /* @__PURE__ */ e(Gn, { list: b, onClickItem: h }),
3035
3029
  /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(
3036
3030
  Be,
3037
3031
  {
3038
- description: i.connect_more_accounts_to_view_more_accurate_financial_picture,
3032
+ description: a.connect_more_accounts_to_view_more_accurate_financial_picture,
3039
3033
  drawerType: "connectDrawer",
3040
3034
  isDashboard: !0,
3041
- title: i.dont_see_all_your_accounts,
3042
- titleDrawer: s.add_accounts
3035
+ title: a.dont_see_all_your_accounts,
3036
+ titleDrawer: c.add_accounts
3043
3037
  }
3044
3038
  ) }),
3045
3039
  /* @__PURE__ */ e(
3046
3040
  te,
3047
3041
  {
3048
- isOpen: d === ee.MonthlyIncome,
3049
- onClose: () => _(null),
3050
- title: s.settings,
3042
+ isOpen: p === ee.MonthlyIncome,
3043
+ onClose: () => h(null),
3044
+ title: c.settings,
3051
3045
  children: /* @__PURE__ */ e(ko, {})
3052
3046
  }
3053
3047
  ),
3054
- /* @__PURE__ */ e(ca, { isOpen: d === ee.DateOfBirth, onClose: () => _(null) }),
3055
- /* @__PURE__ */ e(Gt, { isOpen: d === ee.CreditScore, onClose: () => _(null) }),
3048
+ /* @__PURE__ */ e(ca, { isOpen: p === ee.DateOfBirth, onClose: () => h(null) }),
3049
+ /* @__PURE__ */ e(Gt, { isOpen: p === ee.CreditScore, onClose: () => h(null) }),
3056
3050
  /* @__PURE__ */ e(
3057
3051
  Mt,
3058
3052
  {
3059
- onClose: () => _(null),
3060
- showConnectionsWidget: d === ee.Connections,
3053
+ onClose: () => h(null),
3054
+ showConnectionsWidget: p === ee.Connections,
3061
3055
  title: o.manage_connections
3062
3056
  }
3063
3057
  )
@@ -3065,8 +3059,8 @@ const B = {
3065
3059
  }, da = S(la), mt = ({
3066
3060
  content: t,
3067
3061
  islast: r = !1
3068
- }) => /* @__PURE__ */ a(Ao, { sx: { minHeight: 0 }, children: [
3069
- /* @__PURE__ */ a(Po, { children: [
3062
+ }) => /* @__PURE__ */ i(Ao, { sx: { minHeight: 0 }, children: [
3063
+ /* @__PURE__ */ i(Po, { children: [
3070
3064
  /* @__PURE__ */ e(Fo, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
3071
3065
  !r && /* @__PURE__ */ e(Oo, { sx: { bgcolor: "divider", width: 0.1 } })
3072
3066
  ] }),
@@ -3074,17 +3068,17 @@ const B = {
3074
3068
  ] }), pa = ({ report: t }) => {
3075
3069
  const { finstrong: r } = v(), { score_history_drawer_timeline: n } = r, {
3076
3070
  health_score_point_difference: o,
3077
- newer_credit_score: s,
3078
- older_credit_score: i,
3079
- older_spend_to_income_ratio: c,
3080
- newer_spend_to_income_ratio: p,
3071
+ newer_credit_score: c,
3072
+ older_credit_score: a,
3073
+ older_spend_to_income_ratio: s,
3074
+ newer_spend_to_income_ratio: d,
3081
3075
  older_health_score: l,
3082
- newer_health_score: d,
3083
- newer_score_calculated_at: _
3084
- } = t, h = Do(new Date(_), "MMM d"), b = () => o === 0 ? "info.lighter" : o > 0 ? "success.lighter" : "error.lighter", f = () => o === 0 ? Y(n.stayed_at, l) : o > 0 ? n.less_spending : n.more_spending, w = () => {
3076
+ newer_health_score: p,
3077
+ newer_score_calculated_at: h
3078
+ } = t, _ = Do(new Date(h), "MMM d"), b = () => o === 0 ? "info.lighter" : o > 0 ? "success.lighter" : "error.lighter", f = () => o === 0 ? Y(n.stayed_at, l) : o > 0 ? n.less_spending : n.more_spending, w = () => {
3085
3079
  if (o === 0) return null;
3086
- const y = o > 0 ? n.up_from : n.down_from, D = Y(y, l, d);
3087
- return /* @__PURE__ */ a(z, { children: [
3080
+ const y = o > 0 ? n.up_from : n.down_from, D = Y(y, l, p);
3081
+ return /* @__PURE__ */ i(z, { children: [
3088
3082
  /* @__PURE__ */ e(
3089
3083
  Mn,
3090
3084
  {
@@ -3096,8 +3090,8 @@ const B = {
3096
3090
  D
3097
3091
  ] });
3098
3092
  };
3099
- return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ a(u, { sx: { backgroundColor: "background.paper" }, children: [
3100
- /* @__PURE__ */ e(C, { sx: { borderBottom: "1px solid", borderBottomColor: "divider", p: 16 }, children: /* @__PURE__ */ a(
3093
+ return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ i(u, { sx: { backgroundColor: "background.paper" }, children: [
3094
+ /* @__PURE__ */ e(C, { sx: { borderBottom: "1px solid", borderBottomColor: "divider", p: 16 }, children: /* @__PURE__ */ i(
3101
3095
  u,
3102
3096
  {
3103
3097
  flexDirection: "row",
@@ -3117,10 +3111,10 @@ const B = {
3117
3111
  children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "Body", children: o > 0 ? `+${o}` : o })
3118
3112
  }
3119
3113
  ),
3120
- /* @__PURE__ */ a(u, { sx: { gap: 2, width: "80%" }, children: [
3114
+ /* @__PURE__ */ i(u, { sx: { gap: 2, width: "80%" }, children: [
3121
3115
  /* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children: f() }),
3122
- /* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3123
- h,
3116
+ /* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3117
+ _,
3124
3118
  " ",
3125
3119
  w()
3126
3120
  ] })
@@ -3128,7 +3122,7 @@ const B = {
3128
3122
  ]
3129
3123
  }
3130
3124
  ) }),
3131
- o !== 0 && /* @__PURE__ */ e(C, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ a(
3125
+ o !== 0 && /* @__PURE__ */ e(C, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ i(
3132
3126
  Io,
3133
3127
  {
3134
3128
  sx: {
@@ -3145,8 +3139,8 @@ const B = {
3145
3139
  {
3146
3140
  content: Y(
3147
3141
  n.spend_to_income_description,
3148
- Te(c),
3149
- Te(p)
3142
+ Te(s),
3143
+ Te(d)
3150
3144
  )
3151
3145
  }
3152
3146
  ),
@@ -3155,8 +3149,8 @@ const B = {
3155
3149
  {
3156
3150
  content: Y(
3157
3151
  n.credit_score_description,
3158
- i,
3159
- s
3152
+ a,
3153
+ c
3160
3154
  ),
3161
3155
  islast: !0
3162
3156
  }
@@ -3166,9 +3160,9 @@ const B = {
3166
3160
  ) })
3167
3161
  ] }) });
3168
3162
  }, ua = S(pa), _a = ({ isOpen: t, onClose: r }) => {
3169
- const n = E(), { finstrong: o } = v(), { isCopyLoaded: s, isInitialized: i } = j(), { healthScore: c, healthScoreChangeReports: p, augmentedChartData: l } = F();
3170
- if (!s || !i) return /* @__PURE__ */ e(J, {});
3171
- const d = je(c.health_score || 0, o), _ = p.slice().reverse();
3163
+ const n = E(), { finstrong: o } = v(), { isCopyLoaded: c, isInitialized: a } = j(), { healthScore: s, healthScoreChangeReports: d, augmentedChartData: l } = F();
3164
+ if (!c || !a) return /* @__PURE__ */ e(J, {});
3165
+ const p = je(s.health_score || 0, o), h = d.slice().reverse();
3172
3166
  return /* @__PURE__ */ e(
3173
3167
  Ht,
3174
3168
  {
@@ -3193,7 +3187,7 @@ const B = {
3193
3187
  isOpen: t,
3194
3188
  loadConnectAccountsCard: !1,
3195
3189
  onClose: r,
3196
- stickyComponent: /* @__PURE__ */ a(
3190
+ stickyComponent: /* @__PURE__ */ i(
3197
3191
  u,
3198
3192
  {
3199
3193
  direction: "row",
@@ -3203,18 +3197,18 @@ const B = {
3203
3197
  Et,
3204
3198
  {
3205
3199
  arcRadius: 20,
3206
- healthScore: c?.health_score,
3200
+ healthScore: s?.health_score,
3207
3201
  size: "SM"
3208
3202
  }
3209
3203
  ) }),
3210
- /* @__PURE__ */ a(C, { children: [
3211
- /* @__PURE__ */ e(k, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children: d.status }),
3212
- /* @__PURE__ */ e(k, { variant: "caption", children: d.description })
3204
+ /* @__PURE__ */ i(C, { children: [
3205
+ /* @__PURE__ */ e(k, { fontSize: 18, fontWeight: 700, sx: { mb: 4 }, variant: "subtitle1", children: p.status }),
3206
+ /* @__PURE__ */ e(k, { variant: "caption", children: p.description })
3213
3207
  ] })
3214
3208
  ]
3215
3209
  }
3216
3210
  ),
3217
- children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: _.map((h, b) => /* @__PURE__ */ e(ua, { report: h }, b)) })
3211
+ children: /* @__PURE__ */ e(u, { sx: { gap: 16 }, children: h.map((_, b) => /* @__PURE__ */ e(ua, { report: _ }, b)) })
3218
3212
  }
3219
3213
  );
3220
3214
  }, ha = S(_a), ma = ({ copy: t }) => {
@@ -3224,24 +3218,24 @@ const B = {
3224
3218
  r.palette.chartMono.chartMono3,
3225
3219
  r.palette.chartMono.chartMono2
3226
3220
  ];
3227
- return /* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
3221
+ return /* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
3228
3222
  /* @__PURE__ */ e(u, { sx: { flexDirection: "row", gap: 8, px: 2 }, children: [
3229
3223
  { color: "chartMono.chartMono2", text: t.vulnerable, value: "0-25" },
3230
3224
  { color: "chartMono.chartMono3", text: t.building, value: "26-50" },
3231
3225
  { color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
3232
3226
  { color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
3233
- ].map(({ color: o, text: s, value: i }) => /* @__PURE__ */ a(u, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3234
- /* @__PURE__ */ a(C, { children: [
3235
- /* @__PURE__ */ e(k, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: s }),
3236
- /* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "caption", children: [
3227
+ ].map(({ color: o, text: c, value: a }) => /* @__PURE__ */ i(u, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3228
+ /* @__PURE__ */ i(C, { children: [
3229
+ /* @__PURE__ */ e(k, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: c }),
3230
+ /* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "caption", children: [
3237
3231
  "(",
3238
- i,
3232
+ a,
3239
3233
  ")"
3240
3234
  ] })
3241
3235
  ] }),
3242
3236
  /* @__PURE__ */ e(C, { sx: { border: "2px solid", borderColor: o, borderRadius: "3px" } })
3243
- ] }, s)) }),
3244
- /* @__PURE__ */ a(C, { children: [
3237
+ ] }, c)) }),
3238
+ /* @__PURE__ */ i(C, { children: [
3245
3239
  /* @__PURE__ */ e(
3246
3240
  C,
3247
3241
  {
@@ -3252,7 +3246,7 @@ const B = {
3252
3246
  }
3253
3247
  }
3254
3248
  ),
3255
- /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((o) => /* @__PURE__ */ a(
3249
+ /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((o) => /* @__PURE__ */ i(
3256
3250
  u,
3257
3251
  {
3258
3252
  sx: { alignItems: "center", height: 20, justifyContent: "space-between", width: 24 },
@@ -3279,17 +3273,17 @@ const B = {
3279
3273
  ] });
3280
3274
  }, ga = ({ isOpen: t, onClose: r }) => {
3281
3275
  const { finstrong: n } = v(), { isCopyLoaded: o } = j();
3282
- return o ? /* @__PURE__ */ e(te, { isOpen: t, onClose: r, title: n.score_rubric, children: /* @__PURE__ */ a(u, { sx: { gap: 36, p: 24 }, children: [
3283
- /* @__PURE__ */ a(u, { sx: { gap: 20 }, children: [
3284
- /* @__PURE__ */ a(u, { sx: { gap: 8 }, children: [
3276
+ return o ? /* @__PURE__ */ e(te, { isOpen: t, onClose: r, title: n.score_rubric, children: /* @__PURE__ */ i(u, { sx: { gap: 36, p: 24 }, children: [
3277
+ /* @__PURE__ */ i(u, { sx: { gap: 20 }, children: [
3278
+ /* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
3285
3279
  /* @__PURE__ */ e(N, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
3286
3280
  /* @__PURE__ */ e(k, { variant: "subtitle1", children: n.finstrong_freedom_description })
3287
3281
  ] }),
3288
3282
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(ma, { copy: n }) })
3289
3283
  ] }),
3290
- /* @__PURE__ */ a(u, { sx: { gap: 12 }, children: [
3284
+ /* @__PURE__ */ i(u, { sx: { gap: 12 }, children: [
3291
3285
  /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
3292
- /* @__PURE__ */ a(
3286
+ /* @__PURE__ */ i(
3293
3287
  Re,
3294
3288
  {
3295
3289
  component: "ol",
@@ -3309,15 +3303,15 @@ const B = {
3309
3303
  }
3310
3304
  },
3311
3305
  children: [
3312
- /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3313
- be,
3306
+ /* @__PURE__ */ e(ge, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3307
+ ye,
3314
3308
  {
3315
3309
  primary: n.understand_your_habits,
3316
3310
  secondary: n.understand_your_habits_description
3317
3311
  }
3318
3312
  ) }),
3319
- /* @__PURE__ */ e(ye, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3320
- be,
3313
+ /* @__PURE__ */ e(ge, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3314
+ ye,
3321
3315
  {
3322
3316
  primary: n.see_whats_possible,
3323
3317
  secondary: n.see_whats_possible_description
@@ -3327,9 +3321,9 @@ const B = {
3327
3321
  }
3328
3322
  )
3329
3323
  ] }),
3330
- /* @__PURE__ */ a(u, { sx: { gap: 4 }, children: [
3324
+ /* @__PURE__ */ i(u, { sx: { gap: 4 }, children: [
3331
3325
  /* @__PURE__ */ e(I, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
3332
- /* @__PURE__ */ a(
3326
+ /* @__PURE__ */ i(
3333
3327
  Re,
3334
3328
  {
3335
3329
  component: "ol",
@@ -3350,21 +3344,21 @@ const B = {
3350
3344
  }
3351
3345
  },
3352
3346
  children: [
3353
- /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_1 }) }),
3354
- /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_2 }) })
3347
+ /* @__PURE__ */ e(ge, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(ye, { secondary: n.we_ask_questions_description_1 }) }),
3348
+ /* @__PURE__ */ e(ge, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(ye, { secondary: n.we_ask_questions_description_2 }) })
3355
3349
  ]
3356
3350
  }
3357
3351
  )
3358
3352
  ] })
3359
3353
  ] }) }) : /* @__PURE__ */ e(J, {});
3360
3354
  }, ya = S(ga), ba = S(() => {
3361
- const [t, r] = m.useState(!1), n = E(), [o, { width: s }] = It(), { finstrong: i } = v(), { isCopyLoaded: c, isInitialized: p } = j(), { healthScore: l, healthScoreChange: d } = F(), _ = n.palette.mode === "dark", h = je(l?.health_score, i);
3362
- return !c || !p ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ a(K, { ref: o, sx: { p: 16 }, children: [
3355
+ const [t, r] = m.useState(!1), n = E(), [o, { width: c }] = It(), { finstrong: a } = v(), { isCopyLoaded: s, isInitialized: d } = j(), { healthScore: l, healthScoreChange: p } = F(), h = n.palette.mode === "dark", _ = je(l?.health_score, a);
3356
+ return !s || !d ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ i(K, { ref: o, sx: { p: 16 }, children: [
3363
3357
  /* @__PURE__ */ e(
3364
3358
  $o,
3365
3359
  {
3366
3360
  action: /* @__PURE__ */ e(
3367
- W,
3361
+ $,
3368
3362
  {
3369
3363
  endIcon: /* @__PURE__ */ e(Z, {}),
3370
3364
  onClick: () => r(!0),
@@ -3375,10 +3369,10 @@ const B = {
3375
3369
  color: "primary.main"
3376
3370
  },
3377
3371
  variant: "text",
3378
- children: i.financial_strength_header_action
3372
+ children: a.financial_strength_header_action
3379
3373
  }
3380
3374
  ),
3381
- subheader: /* @__PURE__ */ e(N, { color: "text.primary", children: i.financial_strength_header }),
3375
+ subheader: /* @__PURE__ */ e(N, { color: "text.primary", children: a.financial_strength_header }),
3382
3376
  sx: {
3383
3377
  p: 0,
3384
3378
  "& .MuiCardHeader-content": {
@@ -3390,18 +3384,18 @@ const B = {
3390
3384
  /* @__PURE__ */ e(u, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(
3391
3385
  Et,
3392
3386
  {
3393
- arcRadius: s <= 323 ? 73 : 154,
3394
- footerCenterContent: d,
3387
+ arcRadius: c <= 323 ? 73 : 154,
3388
+ footerCenterContent: p,
3395
3389
  healthScore: l?.health_score || 0,
3396
- size: s <= 323 ? "M" : "L"
3390
+ size: c <= 323 ? "M" : "L"
3397
3391
  }
3398
3392
  ) }),
3399
- l?.health_score ? /* @__PURE__ */ a(
3393
+ l?.health_score ? /* @__PURE__ */ i(
3400
3394
  Bo,
3401
3395
  {
3402
3396
  sx: {
3403
3397
  px: 16,
3404
- backgroundColor: _ ? "grey.800" : "grey.50",
3398
+ backgroundColor: h ? "grey.800" : "grey.50",
3405
3399
  //TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
3406
3400
  "&.Mui-expanded": {
3407
3401
  m: 0
@@ -3422,22 +3416,22 @@ const B = {
3422
3416
  minHeight: 0
3423
3417
  }
3424
3418
  },
3425
- children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: i.accordion_title_text })
3419
+ children: /* @__PURE__ */ e(k, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
3426
3420
  }
3427
3421
  ),
3428
- /* @__PURE__ */ e(Lo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(k, { variant: "subtitle1", children: h.scoreContent }) })
3422
+ /* @__PURE__ */ e(Lo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(k, { variant: "subtitle1", children: _.scoreContent }) })
3429
3423
  ]
3430
3424
  }
3431
3425
  ) : /* @__PURE__ */ e(
3432
3426
  Be,
3433
3427
  {
3434
- buttonText: i.connect_more_accounts_title,
3435
- description: i.health_score_zero_description,
3428
+ buttonText: a.connect_more_accounts_title,
3429
+ description: a.health_score_zero_description,
3436
3430
  drawerType: "connectDrawer",
3437
3431
  hasIcon: !1,
3438
3432
  isDashboard: !0,
3439
3433
  sx: {
3440
- backgroundColor: _ ? "grey.800" : "grey.50",
3434
+ backgroundColor: h ? "grey.800" : "grey.50",
3441
3435
  //TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
3442
3436
  ".connect-more-accounts-title": {
3443
3437
  fontWeight: 600,
@@ -3446,7 +3440,7 @@ const B = {
3446
3440
  },
3447
3441
  ".connect-more-accounts-description": { color: "text.primary" }
3448
3442
  },
3449
- title: i.health_score_zero_title
3443
+ title: a.health_score_zero_title
3450
3444
  }
3451
3445
  ),
3452
3446
  /* @__PURE__ */ e(
@@ -3458,25 +3452,24 @@ const B = {
3458
3452
  )
3459
3453
  ] });
3460
3454
  }), fa = ({ onBackClick: t, sx: r, onPrimaryCtaClick: n }) => {
3461
- const { visibleAccounts: o } = Me(), { dateRange: s, isDataLoaded: i, loadBudgetData: c, setTheme: p } = Yn(), { reloadCategoryTotals: l } = Ye(), d = F(), {
3462
- augmentedChartData: _,
3463
- calculateHealthScore: h,
3455
+ const { visibleAccounts: o } = ke(), { dateRange: c, isDataLoaded: a, loadBudgetData: s, setTheme: d } = Yn(), { reloadCategoryTotals: l } = Ye(), p = F(), {
3456
+ augmentedChartData: h,
3457
+ calculateHealthScore: _,
3464
3458
  healthScore: b,
3465
3459
  loadAugmentedChartData: f,
3466
3460
  loadMonthlySummaries: w
3467
- } = d, { finstrong: y, connect: D } = v(), { isCopyLoaded: g, isInitialized: x, selectedAccounts: M, setSelectedAccounts: $ } = j(), { loadRepeatingTransactions: G } = Ve(), { isMobile: H } = Ue(), T = E(), { userProfile: V } = Q(), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(!1);
3461
+ } = p, { finstrong: y, connect: D } = v(), { isCopyLoaded: g, isInitialized: x, selectedAccounts: M, setSelectedAccounts: W } = j(), { loadRepeatingTransactions: G } = Ve(), { isMobile: H } = Ue(), T = E(), { userProfile: V } = Q(), [re, ae] = m.useState(!1), [Se, ie] = m.useState(!1), [X, se] = m.useState(!1);
3468
3462
  if (m.useEffect(() => {
3469
- p(T);
3463
+ d(T);
3470
3464
  }, []), m.useEffect(() => {
3471
- n && (d.handleFinstrongWidgetPrimaryCtaClick = n);
3472
- }, [n, d]), m.useEffect(() => $(o), [o]), m.useEffect(() => {
3473
- x && (h().finally(), f().finally(), w().finally());
3465
+ n && (p.handleFinstrongWidgetPrimaryCtaClick = n);
3466
+ }, [n, p]), m.useEffect(() => W(o), [o]), m.useEffect(() => {
3467
+ x && (_().finally(), f().finally(), w().finally());
3474
3468
  }, [x]), m.useEffect(() => {
3475
- x && (l(M, s.start, s.end), i || (c(), G().finally()));
3476
- }, [s, i, x, M]), !g || !x) return /* @__PURE__ */ e(J, {});
3477
- const ce = () => {
3478
- }, he = () => ae(!0);
3479
- return /* @__PURE__ */ a(
3469
+ x && (l(M, c.start, c.end), a || (s(), G().finally()));
3470
+ }, [c, a, x, M]), !g || !x) return /* @__PURE__ */ e(J, {});
3471
+ const ce = () => ae(!0);
3472
+ return /* @__PURE__ */ i(
3480
3473
  io,
3481
3474
  {
3482
3475
  accountOptions: o,
@@ -3484,16 +3477,15 @@ const B = {
3484
3477
  {
3485
3478
  iconName: "person",
3486
3479
  label: y.profile,
3487
- onClick: he
3480
+ onClick: ce
3488
3481
  }
3489
3482
  ],
3490
3483
  hasDivider: !0,
3491
- onAccountsFilterClick: ce,
3492
3484
  onBackClick: t,
3493
3485
  sx: r,
3494
3486
  title: y.title,
3495
3487
  children: [
3496
- V.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
3488
+ V.has_completed_finstrong_onboarding ? /* @__PURE__ */ i(
3497
3489
  u,
3498
3490
  {
3499
3491
  sx: {
@@ -3504,7 +3496,7 @@ const B = {
3504
3496
  px: 24
3505
3497
  },
3506
3498
  children: [
3507
- /* @__PURE__ */ a(u, { sx: { gap: 24, width: { md: 432 } }, children: [
3499
+ /* @__PURE__ */ i(u, { sx: { gap: 24, width: { md: 432 } }, children: [
3508
3500
  /* @__PURE__ */ e(ba, {}),
3509
3501
  /* @__PURE__ */ e(
3510
3502
  Be,
@@ -3515,11 +3507,11 @@ const B = {
3515
3507
  }
3516
3508
  )
3517
3509
  ] }),
3518
- /* @__PURE__ */ e(u, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(K, { sx: { background: T.palette.background.paper, p: 16 }, children: [
3519
- /* @__PURE__ */ a(u, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3510
+ /* @__PURE__ */ e(u, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ i(K, { sx: { background: T.palette.background.paper, p: 16 }, children: [
3511
+ /* @__PURE__ */ i(u, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3520
3512
  /* @__PURE__ */ e(N, { children: y.key_indicators }),
3521
3513
  /* @__PURE__ */ e(
3522
- W,
3514
+ $,
3523
3515
  {
3524
3516
  endIcon: /* @__PURE__ */ e(Z, {}),
3525
3517
  onClick: () => ie(!0),
@@ -3531,7 +3523,7 @@ const B = {
3531
3523
  }
3532
3524
  )
3533
3525
  ] }),
3534
- _.length ? /* @__PURE__ */ e(
3526
+ h.length ? /* @__PURE__ */ e(
3535
3527
  Xe,
3536
3528
  {
3537
3529
  axisColor: T.palette.divider,
@@ -3539,7 +3531,7 @@ const B = {
3539
3531
  colors: [T.palette.primary.main],
3540
3532
  curveType: "natural",
3541
3533
  customLegendVariant: "XSmall",
3542
- datasets: [_],
3534
+ datasets: [h],
3543
3535
  height: 300,
3544
3536
  isGraphClippingXAxis: !0,
3545
3537
  labelBackgroundColor: T.palette.border.dark,
@@ -3557,17 +3549,7 @@ const B = {
3557
3549
  }
3558
3550
  ) : /* @__PURE__ */ e(Vr, { onClick: () => se(!0) }),
3559
3551
  b.health_score !== null && /* @__PURE__ */ e(jr, {})
3560
- ] }) }),
3561
- /* @__PURE__ */ e(
3562
- W,
3563
- {
3564
- sx: { background: "red", width: 100 },
3565
- onClick: () => {
3566
- console.log("test"), d.handleFinstrongWidgetPrimaryCtaClick("trends")();
3567
- },
3568
- children: "test"
3569
- }
3570
- )
3552
+ ] }) })
3571
3553
  ]
3572
3554
  }
3573
3555
  ) : /* @__PURE__ */ e(ia, {}),
@@ -3583,7 +3565,7 @@ const B = {
3583
3565
  /* @__PURE__ */ e(
3584
3566
  ha,
3585
3567
  {
3586
- isOpen: Ce,
3568
+ isOpen: Se,
3587
3569
  onClose: () => ie(!1)
3588
3570
  }
3589
3571
  )