@mx-cartographer/experiences 7.2.12-alpha-ram1-finstrong-testing → 7.2.12-alpha-ram2-finstrong-testing

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.
@@ -3,14 +3,14 @@ import C from "@mui/material/Box";
3
3
  import u from "@mui/material/Stack";
4
4
  import { useTheme as E, alpha as _e } from "@mui/material/styles";
5
5
  import { PieChart as Vt, BarPlot as Yt } from "@mui/x-charts";
6
- import { TrendingUp as dt, ArrowRightAlt as Xt, TrendingDown as Ut, AccountBalance as pt, ChevronRight as Z, MultilineChart as ut, CreditCard as Ee, CheckCircle as qt, Cancel as Zt, Savings as Qt, ContentCopy as Jt, Add as _t, Cardiology as en, Payments as tn, CalendarMonth as nn, ExpandMore as on } from "@mxenabled/mx-icons";
6
+ import { TrendingUp as dt, ArrowRightAlt as Xt, TrendingDown as Ut, AccountBalance as pt, ChevronRight as Q, MultilineChart as ut, CreditCard as Ee, CheckCircle as qt, Cancel as Zt, Savings as Qt, ContentCopy as Jt, Add as _t, Cardiology as en, Payments as tn, CalendarMonth as nn, ExpandMore as on } from "@mxenabled/mx-icons";
7
7
  import { P as M, H3 as K, Text as A, InstitutionLogo as ht, H2 as Ie, MerchantLogo as rn, Icon as an } from "@mxenabled/mxui";
8
- import { g as sn, a as cn, r as Qe, b as ln, c as Ge, d as mt, C as be, e as fe, f as dn, h as pn, i as un, j as gt, k as Je, l as _n, m as et, n as hn, o as yt, p as mn, q as bt, s as ke, t as gn, u as yn, v as bn, w as fn, A as ee, x as xn, P as Sn } from "../FinstrongStore-CJBV4K5Y.mjs";
9
- import { y as yi, F as bi } from "../FinstrongStore-CJBV4K5Y.mjs";
8
+ import { g as sn, a as cn, r as Qe, b as ln, c as Ge, d as mt, C as be, e as fe, f as dn, h as pn, i as un, j as gt, k as Je, l as _n, m as et, n as hn, o as yt, p as mn, q as bt, s as ke, t as gn, u as yn, v as bn, w as fn, A as ee, x as xn, P as Sn } from "../FinstrongStore-D7r-rru1.mjs";
9
+ import { y as yi, F as bi } from "../FinstrongStore-D7r-rru1.mjs";
10
10
  import * as tt from "d3";
11
11
  import { observer as S } from "mobx-react-lite";
12
- import { u as v, b as V, p as Q, z as R, q as Cn, a as ft, d as Se, m as He, g as vn, f as wn, j as kn, h as Mn, i as xt } from "../hooks-C41HAxM5.mjs";
13
- import { L as J } from "../Loader-DUaFpDGv.mjs";
12
+ import { u as v, b as V, p as J, z as R, q as Cn, a as ft, d as Se, m as He, g as vn, f as wn, j as kn, h as Mn, i as xt } from "../hooks-C41HAxM5.mjs";
13
+ import { L as q } from "../Loader-DUaFpDGv.mjs";
14
14
  import h from "react";
15
15
  import $ from "@mui/material/Button";
16
16
  import j from "@mui/material/Card";
@@ -75,11 +75,11 @@ const yo = ({
75
75
  dataIndex: o,
76
76
  arcColor: n,
77
77
  arcStartAngle: r,
78
- totalAngularSpan: l,
78
+ totalAngularSpan: c,
79
79
  centerX: s,
80
80
  centerY: i,
81
81
  arcRadius: d,
82
- innerArcRadius: c,
82
+ innerArcRadius: l,
83
83
  outterArcRadius: p,
84
84
  progressEndAngle: _,
85
85
  unitsPerSegment: m,
@@ -92,7 +92,7 @@ const yo = ({
92
92
  { offset: "83.46%", color: b.palette.chartMono.chartMono5 }
93
93
  ], [f, x] = sn(
94
94
  t,
95
- l,
95
+ c,
96
96
  r,
97
97
  o
98
98
  ), [y, k] = cn(
@@ -101,7 +101,7 @@ const yo = ({
101
101
  o,
102
102
  m,
103
103
  _
104
- ), D = tt.arc().innerRadius(c).outerRadius(p).startAngle(f).endAngle(x).padAngle(0.02).cornerRadius(8), I = tt.arc().innerRadius(c).outerRadius(p).startAngle(y).endAngle(k).padAngle(0.02).cornerRadius(8);
104
+ ), D = tt.arc().innerRadius(l).outerRadius(p).startAngle(f).endAngle(x).padAngle(0.02).cornerRadius(8), I = tt.arc().innerRadius(l).outerRadius(p).startAngle(y).endAngle(k).padAngle(0.02).cornerRadius(8);
105
105
  return /* @__PURE__ */ a(z, { children: [
106
106
  /* @__PURE__ */ e(
107
107
  "path",
@@ -130,20 +130,20 @@ const yo = ({
130
130
  healthScore: o,
131
131
  size: n = "L",
132
132
  dialScoreData: r,
133
- minValue: l = 0,
133
+ minValue: c = 0,
134
134
  maxValue: s = 100,
135
135
  markerColor: i,
136
136
  healthScoreStatus: d,
137
- footerCenterContent: c,
137
+ footerCenterContent: l,
138
138
  footerLeftContent: p,
139
139
  footerRightContent: _,
140
140
  isFinacialStrengthGraph: m = !1
141
141
  }) => {
142
- const g = E(), b = -Math.PI / 1.35, w = Math.PI / 1.35, f = w - b, x = f / (s - l), y = (o - l) * x, k = b + y + 0.02, D = n !== "SM" ? 0.1 : 0.12, I = t, N = t * (1 - D), G = I * 2.5, H = G / 2, W = G / 2, ce = (N + I) / 2, Y = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [re, le] = ln(ce, k, Y), ge = o / 25, U = {
142
+ const g = E(), b = -Math.PI / 1.35, w = Math.PI / 1.35, f = w - b, x = f / (s - c), y = (o - c) * x, k = b + y + 0.02, D = n !== "SM" ? 0.1 : 0.12, I = t, N = t * (1 - D), G = I * 2.5, H = G / 2, W = G / 2, ce = (N + I) / 2, Y = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [re, le] = ln(ce, k, Y), ge = o / 25, U = {
143
143
  L: { markerSize: 12, healthScoreFontSize: 64 },
144
144
  M: { markerSize: 10, healthScoreFontSize: 48 },
145
145
  SM: { markerSize: 3, healthScoreFontSize: 14 }
146
- }, Pe = c === 0 ? Xt : Ut;
146
+ }, Pe = l === 0 ? Xt : Ut;
147
147
  return /* @__PURE__ */ a(
148
148
  u,
149
149
  {
@@ -200,7 +200,7 @@ const yo = ({
200
200
  }
201
201
  },
202
202
  width: G,
203
- children: o >= l && o <= s && /* @__PURE__ */ e(
203
+ children: o >= c && o <= s && /* @__PURE__ */ e(
204
204
  "circle",
205
205
  {
206
206
  cx: H + re,
@@ -246,7 +246,7 @@ const yo = ({
246
246
  )
247
247
  }
248
248
  ),
249
- c !== void 0 && /* @__PURE__ */ e(
249
+ l !== void 0 && /* @__PURE__ */ e(
250
250
  C,
251
251
  {
252
252
  sx: {
@@ -256,20 +256,20 @@ const yo = ({
256
256
  transform: "translate(-50%, -50%)",
257
257
  textAlign: "center"
258
258
  },
259
- children: typeof c == "number" ? /* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
260
- c > 0 ? /* @__PURE__ */ e(dt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(Pe, { size: 16, sx: { color: "text.secondary" } }),
259
+ children: typeof l == "number" ? /* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
260
+ l > 0 ? /* @__PURE__ */ e(dt, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(Pe, { size: 16, sx: { color: "text.secondary" } }),
261
261
  /* @__PURE__ */ e(
262
262
  M,
263
263
  {
264
264
  sx: {
265
265
  fontWeight: 600,
266
- color: c > 0 ? "success.main" : "text.secondary"
266
+ color: l > 0 ? "success.main" : "text.secondary"
267
267
  },
268
268
  variant: "body1",
269
- children: c
269
+ children: l
270
270
  }
271
271
  )
272
- ] }) : /* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle2", children: c })
272
+ ] }) : /* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle2", children: l })
273
273
  }
274
274
  ),
275
275
  p !== void 0 && /* @__PURE__ */ e(
@@ -304,7 +304,7 @@ const yo = ({
304
304
  );
305
305
  }, Ft = S(
306
306
  ({ arcRadius: t, size: o = "L", healthScore: n, footerCenterContent: r }) => {
307
- const l = [
307
+ const c = [
308
308
  { id: 1, label: "Group A", value: 25 },
309
309
  { id: 2, label: "Group B", value: 25 },
310
310
  { id: 3, label: "Group C", value: 25 },
@@ -314,7 +314,7 @@ const yo = ({
314
314
  Rt,
315
315
  {
316
316
  arcRadius: t,
317
- dialScoreData: l,
317
+ dialScoreData: c,
318
318
  footerCenterContent: o === "L" ? s.footer_center_content_updated_just_now : r,
319
319
  healthScore: n,
320
320
  healthScoreStatus: i.status,
@@ -329,10 +329,10 @@ const yo = ({
329
329
  size: o = "L",
330
330
  healthScore: n,
331
331
  maxValue: r = 850,
332
- minValue: l = 300,
332
+ minValue: c = 300,
333
333
  footerCenterContent: s
334
334
  }) => {
335
- const d = E().palette.mode === "dark", c = [
335
+ const d = E().palette.mode === "dark", l = [
336
336
  {
337
337
  id: 1,
338
338
  label: "Poor",
@@ -364,7 +364,7 @@ const yo = ({
364
364
  color: d ? be.EXCEPTIONAL : fe.EXCEPTIONAL
365
365
  }
366
366
  ], { finstrong: p } = v(), { isCopyLoaded: _ } = V();
367
- if (!_) return /* @__PURE__ */ e(J, {});
367
+ if (!_) return /* @__PURE__ */ e(q, {});
368
368
  const { status: m, color: g = "none" } = mt(
369
369
  n,
370
370
  d,
@@ -374,15 +374,15 @@ const yo = ({
374
374
  Rt,
375
375
  {
376
376
  arcRadius: t,
377
- dialScoreData: c,
377
+ dialScoreData: l,
378
378
  footerCenterContent: s,
379
- footerLeftContent: l,
379
+ footerLeftContent: c,
380
380
  footerRightContent: r,
381
381
  healthScore: n,
382
382
  healthScoreStatus: m,
383
383
  markerColor: g,
384
384
  maxValue: r,
385
- minValue: l,
385
+ minValue: c,
386
386
  size: o
387
387
  }
388
388
  );
@@ -392,12 +392,12 @@ const yo = ({
392
392
  isDashboard: o = !1,
393
393
  hasIcon: n = !0,
394
394
  buttonText: r,
395
- title: l,
395
+ title: c,
396
396
  titleDrawer: s,
397
397
  description: i,
398
398
  sx: d
399
399
  }) => {
400
- const [c, p] = h.useState(!1), { connect: _, finstrong: m } = v();
400
+ const [l, p] = h.useState(!1), { connect: _, finstrong: m } = v();
401
401
  return t ? /* @__PURE__ */ a(
402
402
  j,
403
403
  {
@@ -418,7 +418,7 @@ const yo = ({
418
418
  },
419
419
  children: [
420
420
  n && /* @__PURE__ */ e(pt, { sx: { height: 20, width: 20 } }),
421
- /* @__PURE__ */ e(K, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: l || m.connect_more_accounts_title })
421
+ /* @__PURE__ */ e(K, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: c || m.connect_more_accounts_title })
422
422
  ]
423
423
  }
424
424
  ),
@@ -434,7 +434,7 @@ const yo = ({
434
434
  /* @__PURE__ */ e(
435
435
  $,
436
436
  {
437
- endIcon: /* @__PURE__ */ e(Z, {}),
437
+ endIcon: /* @__PURE__ */ e(Q, {}),
438
438
  onClick: () => p(!0),
439
439
  size: "small",
440
440
  sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
@@ -445,7 +445,7 @@ const yo = ({
445
445
  oe,
446
446
  {
447
447
  onClose: () => p(!1),
448
- showConnectWidget: c,
448
+ showConnectWidget: l,
449
449
  title: s || _.mini_title
450
450
  }
451
451
  ),
@@ -453,7 +453,7 @@ const yo = ({
453
453
  St,
454
454
  {
455
455
  onClose: () => p(!1),
456
- showConnectionsWidget: c,
456
+ showConnectionsWidget: l,
457
457
  title: s || _.mini_title
458
458
  }
459
459
  )
@@ -463,8 +463,8 @@ const yo = ({
463
463
  };
464
464
  var se = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(se || {});
465
465
  const fo = ({ isOpen: t, onClose: o }) => {
466
- const { common: n, finstrong: r } = v(), { isMobile: l } = je(), { updateUser: s, user: i } = Q(), [d, c] = h.useState(i.credit_score || 0), p = !isNaN(d), _ = () => {
467
- o(), setTimeout(() => c(i.credit_score || 0), 300);
466
+ const { common: n, finstrong: r } = v(), { isMobile: c } = je(), { updateUser: s, user: i } = J(), [d, l] = h.useState(i.credit_score || 0), p = !isNaN(d), _ = () => {
467
+ o(), setTimeout(() => l(i.credit_score || 0), 300);
468
468
  }, m = () => {
469
469
  !d || d === i.credit_score || s({ ...i, credit_score: d });
470
470
  };
@@ -481,7 +481,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
481
481
  primaryText: n.save_button,
482
482
  sx: {
483
483
  "& .MuiDialog-paper": {
484
- minWidth: l ? "100%" : 400
484
+ minWidth: c ? "100%" : 400
485
485
  }
486
486
  },
487
487
  children: /* @__PURE__ */ e(
@@ -500,7 +500,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
500
500
  noValidate: !0,
501
501
  pattern: "[0-9]*"
502
502
  },
503
- onChange: (g) => c(Number(g.target.value)),
503
+ onChange: (g) => l(Number(g.target.value)),
504
504
  value: p ? d : ""
505
505
  }
506
506
  )
@@ -512,7 +512,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
512
512
  credit_over_time_title: "Your Credit Over Time",
513
513
  credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
514
514
  }, xo = ({ chartFor: t }) => {
515
- const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = R(), { user: l } = Q(), { finstrong: s } = v(), [i, { width: d }] = vt(), c = {
515
+ const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = R(), { user: c } = J(), { finstrong: s } = v(), [i, { width: d }] = vt(), l = {
516
516
  savingsOverTime: {
517
517
  icon: /* @__PURE__ */ e(dt, { size: 48, sx: { marginBottom: 8 } }),
518
518
  title: s.key_indicators_save.zero_state_title,
@@ -545,7 +545,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
545
545
  let k;
546
546
  if (y) {
547
547
  const { color: D } = mt(
548
- l?.credit_score ?? 0,
548
+ c?.credit_score ?? 0,
549
549
  n,
550
550
  s.credit_score_status
551
551
  );
@@ -590,14 +590,14 @@ const fo = ({ isOpen: t, onClose: o }) => {
590
590
  }
591
591
  )
592
592
  ] }) : /* @__PURE__ */ a(u, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
593
- c.icon,
594
- /* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children: c.title }),
595
- /* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: c.description })
593
+ l.icon,
594
+ /* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children: l.title }),
595
+ /* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: l.description })
596
596
  ] }) });
597
597
  }, Ye = S(xo), So = {
598
598
  updated_score: "Updated Score"
599
599
  }, Co = () => {
600
- const { healthScoreChange: t } = R(), { user: o } = Q(), { availableWidth: n } = Cn(), { isSmallMobile: r } = je(n), [l, s] = h.useState(!1);
600
+ const { healthScoreChange: t } = R(), { user: o } = J(), { availableWidth: n } = Cn(), { isSmallMobile: r } = je(n), [c, s] = h.useState(!1);
601
601
  return /* @__PURE__ */ a(u, { sx: { gap: 28 }, children: [
602
602
  /* @__PURE__ */ e(
603
603
  bo,
@@ -609,7 +609,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
609
609
  }
610
610
  ),
611
611
  /* @__PURE__ */ e($, { onClick: () => s(!0), variant: "contained", children: So.updated_score }),
612
- /* @__PURE__ */ e(Pt, { isOpen: l, onClose: () => s(!1) }),
612
+ /* @__PURE__ */ e(Pt, { isOpen: c, onClose: () => s(!1) }),
613
613
  /* @__PURE__ */ e(Ye, { chartFor: "creditOverTime" })
614
614
  ] });
615
615
  }, vo = S(Co), Oe = ({ status: t }) => {
@@ -643,7 +643,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
643
643
  }, wo = {
644
644
  keep_strong_credit_score: "Keep a Strong Credit Score"
645
645
  }, ko = () => {
646
- const { user: t } = Q(), o = gt(t.credit_score ?? null);
646
+ const { user: t } = J(), o = gt(t.credit_score ?? null);
647
647
  return /* @__PURE__ */ a(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
648
648
  /* @__PURE__ */ e(K, { children: wo.keep_strong_credit_score }),
649
649
  /* @__PURE__ */ e(Oe, { status: o })
@@ -653,18 +653,18 @@ const fo = ({ isOpen: t, onClose: o }) => {
653
653
  connectTitle: o,
654
654
  connectDescription: n,
655
655
  children: r,
656
- description: l,
656
+ description: c,
657
657
  drawerTitle: s,
658
658
  isOpen: i,
659
659
  loadConnectAccountsCard: d = !0,
660
- onClose: c,
660
+ onClose: l,
661
661
  stickyComponent: p,
662
662
  title: _,
663
663
  drawerType: m
664
664
  }) => {
665
665
  const { finstrong: g } = v(), { isCopyLoaded: b } = V();
666
- return b ? /* @__PURE__ */ a(te, { isOpen: i, onClose: c, title: s || g.key_indicators, children: [
667
- (_ || l) && /* @__PURE__ */ a(
666
+ return b ? /* @__PURE__ */ a(te, { isOpen: i, onClose: l, title: s || g.key_indicators, children: [
667
+ (_ || c) && /* @__PURE__ */ a(
668
668
  u,
669
669
  {
670
670
  sx: {
@@ -674,7 +674,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
674
674
  },
675
675
  children: [
676
676
  _ && typeof _ == "string" ? /* @__PURE__ */ e(K, { children: _ }) : _,
677
- l && /* @__PURE__ */ e(M, { children: l })
677
+ c && /* @__PURE__ */ e(M, { children: c })
678
678
  ]
679
679
  }
680
680
  ),
@@ -703,39 +703,39 @@ const fo = ({ isOpen: t, onClose: o }) => {
703
703
  }
704
704
  )
705
705
  ] })
706
- ] }) : /* @__PURE__ */ e(J, {});
706
+ ] }) : /* @__PURE__ */ e(q, {});
707
707
  }, Bt = S(Do), Ao = ({
708
708
  onClick: t,
709
709
  shouldShowBalance: o = !0,
710
710
  loadAccounts: n
711
711
  }) => {
712
- const { config: r } = ft(), { accounts: l } = v(), { selectedAccounts: s } = V(), i = h.useCallback(
713
- (c) => {
714
- t?.(c);
712
+ const { config: r } = ft(), { accounts: c } = v(), { selectedAccounts: s } = V(), i = h.useCallback(
713
+ (l) => {
714
+ t?.(l);
715
715
  },
716
716
  [t]
717
717
  ), d = h.useMemo(
718
- () => Array.from(new Set(s.map((c) => c.account_type))).filter(
719
- (c) => n ? n.includes(c) : !0
718
+ () => Array.from(new Set(s.map((l) => l.account_type))).filter(
719
+ (l) => n ? n.includes(l) : !0
720
720
  ),
721
721
  [s, n]
722
722
  );
723
- return s.length ? /* @__PURE__ */ e(h.Fragment, { children: d.map((c) => {
723
+ return s.length ? /* @__PURE__ */ e(h.Fragment, { children: d.map((l) => {
724
724
  const { accountsForType: p, totalBalanceForType: _ } = s.reduce(
725
- (m, g) => (g.account_type === c && (m.accountsForType.push(g), m.totalBalanceForType += g.balance || 0), m),
725
+ (m, g) => (g.account_type === l && (m.accountsForType.push(g), m.totalBalanceForType += g.balance || 0), m),
726
726
  { accountsForType: [], totalBalanceForType: 0 }
727
727
  );
728
728
  return /* @__PURE__ */ a(
729
729
  De,
730
730
  {
731
731
  subheader: /* @__PURE__ */ e(Rn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ a(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
732
- /* @__PURE__ */ e(A, { bold: !0, variant: "caption", children: l.account_types[c] }),
732
+ /* @__PURE__ */ e(A, { bold: !0, variant: "caption", children: c.account_types[l] }),
733
733
  o && /* @__PURE__ */ e(A, { bold: !0, variant: "caption", children: B(_, "0,0.00") })
734
734
  ] }) }),
735
735
  sx: { bgcolor: "background.paper" },
736
736
  children: [
737
737
  p.map((m, g) => {
738
- const { firstValue: b } = kt(m, l), w = Ct(m, {
738
+ const { firstValue: b } = kt(m, c), w = Ct(m, {
739
739
  allowNickname: r?.show_account_nicknames_in_master
740
740
  }), f = /* @__PURE__ */ a(z, { children: [
741
741
  /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ht, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
@@ -756,11 +756,11 @@ const fo = ({ isOpen: t, onClose: o }) => {
756
756
  /* @__PURE__ */ e(ne, {})
757
757
  ]
758
758
  },
759
- c
759
+ l
760
760
  );
761
761
  }) }) : null;
762
762
  }, Lt = S(Ao), Io = ({ loadAccounts: t, loadMoreLabel: o }) => {
763
- const n = E(), { config: r } = ft(), { connect: l, finstrong: s } = v(), { accounts: i } = v(), { selectedAccounts: d } = V(), [c, p] = h.useState(!1), [_, m] = h.useState(!1), g = h.useMemo(
763
+ const n = E(), { config: r } = ft(), { connect: c, finstrong: s } = v(), { accounts: i } = v(), { selectedAccounts: d } = V(), [l, p] = h.useState(!1), [_, m] = h.useState(!1), g = h.useMemo(
764
764
  () => d.filter(
765
765
  (f) => t ? t.includes(f.account_type) : !0
766
766
  ),
@@ -791,7 +791,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
791
791
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
792
792
  $,
793
793
  {
794
- endIcon: /* @__PURE__ */ e(Z, {}),
794
+ endIcon: /* @__PURE__ */ e(Q, {}),
795
795
  onClick: () => p(!0),
796
796
  size: "small",
797
797
  sx: { my: 0, px: 16, py: 12, width: "100%" },
@@ -802,7 +802,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
802
802
  ] })
803
803
  }
804
804
  ) }),
805
- /* @__PURE__ */ e(te, { isOpen: c, onClose: () => p(!1), title: s.accounts, children: /* @__PURE__ */ e(Lt, { loadAccounts: t }) })
805
+ /* @__PURE__ */ e(te, { isOpen: l, onClose: () => p(!1), title: s.accounts, children: /* @__PURE__ */ e(Lt, { loadAccounts: t }) })
806
806
  ] })
807
807
  ] }) : /* @__PURE__ */ a(z, { children: [
808
808
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
@@ -820,7 +820,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
820
820
  {
821
821
  onClose: () => m(!1),
822
822
  showConnectWidget: _,
823
- title: l.mini_title
823
+ title: c.mini_title
824
824
  }
825
825
  )
826
826
  ] });
@@ -842,7 +842,7 @@ const fo = ({ isOpen: t, onClose: o }) => {
842
842
  ]
843
843
  }
844
844
  );
845
- var O = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(O || {}), xe = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(xe || {}), q = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(q || {});
845
+ var O = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(O || {}), xe = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(xe || {}), Z = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Z || {});
846
846
  const P = {
847
847
  bi_weekly: "Bi-Weekly",
848
848
  calculate: "Calculate",
@@ -863,28 +863,28 @@ const P = {
863
863
  weekly: "Weekly",
864
864
  years: "Years"
865
865
  }, To = [
866
- { id: q.Monthly, label: P.monthly },
867
- { id: q.BiWeekly, label: P.bi_weekly },
868
- { id: q.Weekly, label: P.weekly },
869
- { id: q.Daily, label: P.daily }
866
+ { id: Z.Monthly, label: P.monthly },
867
+ { id: Z.BiWeekly, label: P.bi_weekly },
868
+ { id: Z.Weekly, label: P.weekly },
869
+ { id: Z.Daily, label: P.daily }
870
870
  ], Oo = {
871
- [q.Monthly]: P.estimated_period_monthly,
872
- [q.BiWeekly]: P.estimated_period_bi_weekly,
873
- [q.Weekly]: P.estimated_period_weekly,
874
- [q.Daily]: P.estimated_period_daily
871
+ [Z.Monthly]: P.estimated_period_monthly,
872
+ [Z.BiWeekly]: P.estimated_period_bi_weekly,
873
+ [Z.Weekly]: P.estimated_period_weekly,
874
+ [Z.Daily]: P.estimated_period_daily
875
875
  }, Ro = [
876
876
  { id: xe.Months, label: P.months },
877
877
  { id: xe.Years, label: P.years },
878
878
  { id: xe.Days, label: P.days }
879
879
  ], Fo = ({ total: t }) => {
880
- const o = Math.ceil((t + 1) / 1e3) * 1e3, [n, r] = h.useState(0), [l, s] = h.useState(Je(t)), [i, d] = h.useState(
880
+ const o = Math.ceil((t + 1) / 1e3) * 1e3, [n, r] = h.useState(0), [c, s] = h.useState(Je(t)), [i, d] = h.useState(
881
881
  Je(t)
882
- ), [c, p] = h.useState(o), [_, m] = h.useState(_n(t)), [g, b] = h.useState(xe.Months);
882
+ ), [l, p] = h.useState(o), [_, m] = h.useState(_n(t)), [g, b] = h.useState(xe.Months);
883
883
  h.useEffect(() => {
884
884
  r(
885
885
  et({
886
886
  contribution: i,
887
- goalAmount: c,
887
+ goalAmount: l,
888
888
  goalPeriod: _,
889
889
  targetPeriod: g,
890
890
  totalSaved: t
@@ -895,7 +895,7 @@ const P = {
895
895
  f.preventDefault(), r(
896
896
  et({
897
897
  contribution: i,
898
- goalAmount: c,
898
+ goalAmount: l,
899
899
  goalPeriod: _,
900
900
  targetPeriod: g,
901
901
  totalSaved: t
@@ -910,7 +910,7 @@ const P = {
910
910
  /* @__PURE__ */ e(A, { variant: "h2", children: B(n, "0,0") }),
911
911
  /* @__PURE__ */ a(A, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
912
912
  "/",
913
- Oo[l]
913
+ Oo[c]
914
914
  ] })
915
915
  ] }),
916
916
  title: P.estimated_contribution
@@ -929,7 +929,7 @@ const P = {
929
929
  onChange: (f) => {
930
930
  f.target.value && p(Number(f.target.value.replace(/[^0-9]/g, "")));
931
931
  },
932
- value: c ? B(c, "0,0") : ""
932
+ value: l ? B(l, "0,0") : ""
933
933
  }
934
934
  ),
935
935
  /* @__PURE__ */ e(
@@ -990,7 +990,7 @@ const P = {
990
990
  your_savings: "Your Savings"
991
991
  }, Bo = () => {
992
992
  const { savingsAccounts: t } = Se(), [o, n] = h.useState(!1), r = h.useMemo(
993
- () => t.reduce((l, s) => l + (s.balance ?? 0), 0),
993
+ () => t.reduce((c, s) => c + (s.balance ?? 0), 0),
994
994
  [t]
995
995
  );
996
996
  return /* @__PURE__ */ a(u, { sx: { gap: 24 }, children: [
@@ -1009,7 +1009,7 @@ const P = {
1009
1009
  )
1010
1010
  ] });
1011
1011
  }, Lo = S(Bo), Re = S(
1012
- ({ label: t, value: o, status: n, bottomComponent: r, statusBarData: l = [] }) => {
1012
+ ({ label: t, value: o, status: n, bottomComponent: r, statusBarData: c = [] }) => {
1013
1013
  const { finstrong: s } = v(), i = {
1014
1014
  GOOD: {
1015
1015
  backgroundColor: "success.lighter",
@@ -1035,12 +1035,12 @@ const P = {
1035
1035
  progressBarColor: "text.secondary",
1036
1036
  label: s?.key_indicators_missing
1037
1037
  }
1038
- }[n], d = l.map((c, p) => l.length === 2 ? {
1039
- color: p === 0 ? "primary.main" : c.color || i?.progressBarColor,
1040
- percentage: c.percentage
1038
+ }[n], d = c.map((l, p) => c.length === 2 ? {
1039
+ color: p === 0 ? "primary.main" : l.color || i?.progressBarColor,
1040
+ percentage: l.percentage
1041
1041
  } : {
1042
- color: c.color || i?.progressBarColor,
1043
- percentage: c.percentage
1042
+ color: l.color || i?.progressBarColor,
1043
+ percentage: l.percentage
1044
1044
  });
1045
1045
  return /* @__PURE__ */ a(
1046
1046
  u,
@@ -1087,7 +1087,7 @@ const P = {
1087
1087
  return /* @__PURE__ */ e(
1088
1088
  Re,
1089
1089
  {
1090
- bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Wo.map((l) => /* @__PURE__ */ a(u, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1090
+ bottomComponent: /* @__PURE__ */ e(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Wo.map((c) => /* @__PURE__ */ a(u, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1091
1091
  /* @__PURE__ */ e(
1092
1092
  ne,
1093
1093
  {
@@ -1099,8 +1099,8 @@ const P = {
1099
1099
  }
1100
1100
  }
1101
1101
  ),
1102
- /* @__PURE__ */ e(A, { variant: "caption", children: l })
1103
- ] }, l)) }),
1102
+ /* @__PURE__ */ e(A, { variant: "caption", children: c })
1103
+ ] }, c)) }),
1104
1104
  label: $o.sticky_label,
1105
1105
  status: r,
1106
1106
  statusBarData: [
@@ -1115,12 +1115,12 @@ const P = {
1115
1115
  transactions: t,
1116
1116
  bgcolor: o,
1117
1117
  height: n = "calc(100dvh - 36px)",
1118
- loader: r = /* @__PURE__ */ e(J, { label: "Loading", size: 40 }),
1119
- onClick: l,
1118
+ loader: r = /* @__PURE__ */ e(q, { label: "Loading", size: 40 }),
1119
+ onClick: c,
1120
1120
  showInsights: s = !1,
1121
1121
  showLoader: i = !1,
1122
1122
  width: d = "100%",
1123
- zeroState: c = /* @__PURE__ */ e(Wn, {})
1123
+ zeroState: l = /* @__PURE__ */ e(Wn, {})
1124
1124
  }) => {
1125
1125
  const { getCategoryName: p } = He(), { onEvent: _ } = vn(), { categories: m } = v(), { clearExpandedSplits: g, setShowInsights: b, toggleSplit: w } = $n(), f = (k) => {
1126
1126
  const D = t.find((I) => I.guid === k);
@@ -1131,7 +1131,7 @@ const P = {
1131
1131
  _(zn.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
1132
1132
  account_guid: D?.account_guid,
1133
1133
  transaction_guid: k
1134
- }), l?.(k);
1134
+ }), c?.(k);
1135
1135
  }, x = h.useRef(null), y = Ln({
1136
1136
  count: t.length,
1137
1137
  getScrollElement: () => x.current,
@@ -1149,7 +1149,7 @@ const P = {
1149
1149
  width: "100%",
1150
1150
  children: [
1151
1151
  i && r,
1152
- !i && y.getVirtualItems().length === 0 && c,
1152
+ !i && y.getVirtualItems().length === 0 && l,
1153
1153
  !i && y.getVirtualItems().length > 0 && y.getVirtualItems().map((k) => {
1154
1154
  const D = t[k.index], I = ze(k.index, t), N = Mt(k.index, t), G = it + (I ? st : 0);
1155
1155
  return /* @__PURE__ */ a(
@@ -1166,7 +1166,7 @@ const P = {
1166
1166
  /* @__PURE__ */ e(
1167
1167
  At,
1168
1168
  {
1169
- ...l && { onClick: f },
1169
+ ...c && { onClick: f },
1170
1170
  transaction: {
1171
1171
  ...D,
1172
1172
  category: m.default_categories[D.top_level_category_guid]?.replace(
@@ -1190,9 +1190,9 @@ const P = {
1190
1190
  amountColor: o = "success.main",
1191
1191
  amountPosition: n = "center",
1192
1192
  formatDate: r = Ve,
1193
- secondaryIcon: l
1193
+ secondaryIcon: c
1194
1194
  }) => {
1195
- const s = E(), { connect: i, finstrong: d } = v(), [c, p] = h.useState(!1), [_, m] = h.useState(!1), g = 3, b = t.length > g, w = t.length - g;
1195
+ const s = E(), { connect: i, finstrong: d } = v(), [l, p] = h.useState(!1), [_, m] = h.useState(!1), g = 3, b = t.length > g, w = t.length - g;
1196
1196
  return !t || t.length === 0 ? /* @__PURE__ */ a(z, { children: [
1197
1197
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
1198
1198
  $,
@@ -1251,7 +1251,7 @@ const P = {
1251
1251
  /* @__PURE__ */ a(u, { sx: { gap: 4 }, children: [
1252
1252
  /* @__PURE__ */ e(M, { bold: !0, variant: "body1", children: f.description }),
1253
1253
  /* @__PURE__ */ a(u, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
1254
- !!l && l,
1254
+ !!c && c,
1255
1255
  /* @__PURE__ */ e(A, { variant: "caption", children: r(f.date) })
1256
1256
  ] })
1257
1257
  ] }),
@@ -1268,7 +1268,7 @@ const P = {
1268
1268
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
1269
1269
  $,
1270
1270
  {
1271
- endIcon: /* @__PURE__ */ e(Z, {}),
1271
+ endIcon: /* @__PURE__ */ e(Q, {}),
1272
1272
  onClick: () => p(!0),
1273
1273
  size: "small",
1274
1274
  sx: { my: 0, px: 16, py: 12, width: "100%" },
@@ -1282,7 +1282,7 @@ const P = {
1282
1282
  /* @__PURE__ */ e(
1283
1283
  te,
1284
1284
  {
1285
- isOpen: c,
1285
+ isOpen: l,
1286
1286
  onClose: () => p(!1),
1287
1287
  title: d.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1288
1288
  children: /* @__PURE__ */ e(Ho, { transactions: t })
@@ -1295,10 +1295,10 @@ const P = {
1295
1295
  finstrong: {
1296
1296
  key_indicators_spend: { pay_bills_on_time_drawer: t }
1297
1297
  }
1298
- } = v(), { getSpendingFeeTransactions: o, allTransactions: n } = R();
1298
+ } = v(), { getSpendingFeeTransactions: o, allTransactions: n, isLoading: r } = R();
1299
1299
  return h.useEffect(() => {
1300
1300
  o().finally();
1301
- }, []), /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ a(
1301
+ }, []), r ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ a(
1302
1302
  j,
1303
1303
  {
1304
1304
  sx: {
@@ -1332,7 +1332,7 @@ const P = {
1332
1332
  {
1333
1333
  amountColor: "text.primary",
1334
1334
  amountPosition: "flex-start",
1335
- formatDate: (r) => An(new Date(r * 1e3), In.MONTH_DAY),
1335
+ formatDate: (c) => An(new Date(c * 1e3), In.MONTH_DAY),
1336
1336
  secondaryIcon: /* @__PURE__ */ e(Zt, { color: "error", filled: !0, size: 12 }),
1337
1337
  transactions: n.spendingFee
1338
1338
  }
@@ -1341,7 +1341,7 @@ const P = {
1341
1341
  }
1342
1342
  ) });
1343
1343
  }, Ko = S(No), jo = () => {
1344
- const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, l = mn(t.spending_fee_transaction_count);
1344
+ const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, c = mn(t.spending_fee_transaction_count);
1345
1345
  return /* @__PURE__ */ a(
1346
1346
  u,
1347
1347
  {
@@ -1359,7 +1359,7 @@ const P = {
1359
1359
  " ",
1360
1360
  r.pay_bills_on_time_sticky_fee_count
1361
1361
  ] }),
1362
- /* @__PURE__ */ e(Oe, { status: l })
1362
+ /* @__PURE__ */ e(Oe, { status: c })
1363
1363
  ] })
1364
1364
  ]
1365
1365
  }
@@ -1383,13 +1383,13 @@ const P = {
1383
1383
  )
1384
1384
  ] });
1385
1385
  }, Xo = S(Yo), Uo = () => {
1386
- const { finstrong: t } = v(), { healthScore: o, allTransactions: n, loadSpendTransactions: r, loadDebtSpend: l } = R(), { isInitialized: s } = V();
1386
+ const { finstrong: t } = v(), { healthScore: o, allTransactions: n, loadSpendTransactions: r, loadDebtSpend: c } = R(), { isInitialized: s } = V();
1387
1387
  h.useEffect(() => {
1388
- s && (r().finally(), l().finally());
1388
+ s && (r().finally(), c().finally());
1389
1389
  }, [s]);
1390
1390
  const i = h.useMemo(() => {
1391
- const d = n.spend.map((p) => p.transaction), c = n.debtSpend.map((p) => p.transaction);
1392
- return [...d, ...c];
1391
+ const d = n.spend.map((p) => p.transaction), l = n.debtSpend.map((p) => p.transaction);
1392
+ return [...d, ...l];
1393
1393
  }, [n.spend, n.debtSpend]);
1394
1394
  return s ? /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
1395
1395
  /* @__PURE__ */ e(
@@ -1400,7 +1400,7 @@ const P = {
1400
1400
  }
1401
1401
  ),
1402
1402
  /* @__PURE__ */ e(Fe, { amountColor: "text.primary", transactions: i })
1403
- ] }) : /* @__PURE__ */ e(J, {});
1403
+ ] }) : /* @__PURE__ */ e(q, {});
1404
1404
  }, qo = S(Uo), Zo = () => {
1405
1405
  const [t, o] = h.useState(0), { finstrong: n } = v();
1406
1406
  return /* @__PURE__ */ a(z, { children: [
@@ -1410,7 +1410,7 @@ const P = {
1410
1410
  {
1411
1411
  "aria-label": n.key_indicators_save.drawer_title,
1412
1412
  centered: !0,
1413
- onChange: (r, l) => o(l),
1413
+ onChange: (r, c) => o(c),
1414
1414
  sx: { mb: 0 },
1415
1415
  value: t,
1416
1416
  variant: "fullWidth",
@@ -1440,7 +1440,7 @@ const P = {
1440
1440
  /* @__PURE__ */ e(Ye, { chartFor: "savingsOverTime" })
1441
1441
  ] });
1442
1442
  }, Qo = S(Zo), Jo = () => {
1443
- const { finstrong: t } = v(), { healthScore: o } = R(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null), l = 183 / 6, s = Math.floor(n), i = Math.round((n - s) * l), d = n / 6 * 100;
1443
+ const { finstrong: t } = v(), { healthScore: o } = R(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null), c = 183 / 6, s = Math.floor(n), i = Math.round((n - s) * c), d = n / 6 * 100;
1444
1444
  return /* @__PURE__ */ e(
1445
1445
  Re,
1446
1446
  {
@@ -1570,7 +1570,7 @@ const P = {
1570
1570
  }
1571
1571
  );
1572
1572
  }, nr = S(tr), or = () => {
1573
- const { healthScore: t, allTransactions: o } = R(), { connect: n, finstrong: r } = v(), [l, s] = h.useState(!1);
1573
+ const { healthScore: t, allTransactions: o } = R(), { connect: n, finstrong: r } = v(), [c, s] = h.useState(!1);
1574
1574
  return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
1575
1575
  /* @__PURE__ */ e(
1576
1576
  me,
@@ -1597,13 +1597,13 @@ const P = {
1597
1597
  oe,
1598
1598
  {
1599
1599
  onClose: () => s(!1),
1600
- showConnectWidget: l,
1600
+ showConnectWidget: c,
1601
1601
  title: n.mini_title
1602
1602
  }
1603
1603
  )
1604
1604
  ] });
1605
1605
  }, rr = S(or), ar = () => {
1606
- const { allTransactions: t, healthScore: o } = R(), { connect: n, finstrong: r } = v(), [l, s] = h.useState(!1);
1606
+ const { allTransactions: t, healthScore: o } = R(), { connect: n, finstrong: r } = v(), [c, s] = h.useState(!1);
1607
1607
  return /* @__PURE__ */ a(u, { gap: 16, sx: { p: 16 }, children: [
1608
1608
  /* @__PURE__ */ e(
1609
1609
  me,
@@ -1636,7 +1636,7 @@ const P = {
1636
1636
  oe,
1637
1637
  {
1638
1638
  onClose: () => s(!1),
1639
- showConnectWidget: l,
1639
+ showConnectWidget: c,
1640
1640
  title: n.mini_title
1641
1641
  }
1642
1642
  )
@@ -1646,7 +1646,7 @@ const P = {
1646
1646
  data: o,
1647
1647
  series: n,
1648
1648
  style: r,
1649
- ...l
1649
+ ...c
1650
1650
  }) => {
1651
1651
  const s = E(), i = h.useRef(null), { width: d } = jn({
1652
1652
  width: r.width
@@ -1664,9 +1664,9 @@ const P = {
1664
1664
  i.current && m.unobserve(i.current);
1665
1665
  };
1666
1666
  }, []);
1667
- const { formattedComparison: c, formattedMain: p } = o[n.index], _ = n.type === 0 ? p : c;
1667
+ const { formattedComparison: l, formattedMain: p } = o[n.index], _ = n.type === 0 ? p : l;
1668
1668
  return /* @__PURE__ */ a("g", { children: [
1669
- /* @__PURE__ */ e(ot.rect, { ...l, fill: t, ref: i, rx: 2, style: r }),
1669
+ /* @__PURE__ */ e(ot.rect, { ...c, fill: t, ref: i, rx: 2, style: r }),
1670
1670
  /* @__PURE__ */ e(
1671
1671
  ot.text,
1672
1672
  {
@@ -1686,11 +1686,11 @@ const P = {
1686
1686
  data: o,
1687
1687
  title: n,
1688
1688
  buttonLabel: r,
1689
- onClick: l,
1689
+ onClick: c,
1690
1690
  legendLabelMain: s,
1691
1691
  legendLabelComparison: i,
1692
1692
  totalComparison: d,
1693
- totalMain: c
1693
+ totalMain: l
1694
1694
  }) => {
1695
1695
  const p = E(), _ = Gn(p.breakpoints.down("xs")), m = h.useMemo(
1696
1696
  () => o.sort((y, k) => y.month - k.month).map((y) => {
@@ -1748,8 +1748,8 @@ const P = {
1748
1748
  r && /* @__PURE__ */ e(
1749
1749
  $,
1750
1750
  {
1751
- endIcon: /* @__PURE__ */ e(Z, {}),
1752
- onClick: l,
1751
+ endIcon: /* @__PURE__ */ e(Q, {}),
1752
+ onClick: c,
1753
1753
  size: "small",
1754
1754
  sx: {
1755
1755
  pl: 8,
@@ -1780,7 +1780,7 @@ const P = {
1780
1780
  s,
1781
1781
  " "
1782
1782
  ] }),
1783
- !_ && c && /* @__PURE__ */ e(A, { bold: !0, variant: "subtitle2", children: c })
1783
+ !_ && l && /* @__PURE__ */ e(A, { bold: !0, variant: "subtitle2", children: l })
1784
1784
  ] })
1785
1785
  ] }),
1786
1786
  /* @__PURE__ */ a(u, { alignItems: "center", direction: "row", spacing: 8, children: [
@@ -1888,7 +1888,7 @@ const P = {
1888
1888
  }
1889
1889
  );
1890
1890
  }, cr = () => {
1891
- const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } = R(), { isInitialized: r } = V(), [l, s] = h.useState(0), { finstrong: i } = v();
1891
+ const { loadDebtSpend: t, loadIncome: o, monthlySummaries: n } = R(), { isInitialized: r } = V(), [c, s] = h.useState(0), { finstrong: i } = v();
1892
1892
  return h.useEffect(() => {
1893
1893
  r && (t().finally(), o().finally());
1894
1894
  }, [r]), /* @__PURE__ */ a(z, { children: [
@@ -1898,9 +1898,9 @@ const P = {
1898
1898
  {
1899
1899
  "aria-label": i.key_indicators_save.drawer_title,
1900
1900
  centered: !0,
1901
- onChange: (d, c) => s(c),
1901
+ onChange: (d, l) => s(l),
1902
1902
  sx: { mb: 0 },
1903
- value: l,
1903
+ value: c,
1904
1904
  variant: "fullWidth",
1905
1905
  children: [
1906
1906
  /* @__PURE__ */ e(
@@ -1930,7 +1930,7 @@ const P = {
1930
1930
  "aria-labelledby": "income-details-tab-0",
1931
1931
  index: 0,
1932
1932
  name: "income-details",
1933
- value: l,
1933
+ value: c,
1934
1934
  children: /* @__PURE__ */ e(rr, {})
1935
1935
  }
1936
1936
  ),
@@ -1940,7 +1940,7 @@ const P = {
1940
1940
  "aria-labelledby": "debt-payment-details-tab-1",
1941
1941
  index: 1,
1942
1942
  name: "debt-payment-details",
1943
- value: l,
1943
+ value: c,
1944
1944
  children: /* @__PURE__ */ e(ir, {})
1945
1945
  }
1946
1946
  )
@@ -2031,9 +2031,9 @@ const P = {
2031
2031
  }
2032
2032
  );
2033
2033
  }, pr = S(dr), ur = () => {
2034
- const t = E(), { monthlySummaries: o } = R(), { finstrong: n, goals: r, spending: l } = v(), { selectedAccounts: s } = V(), { categories: i, dateRangeCategoryTotals: d, loadDateRangeCategoryTotals: c } = He(), { appDataStore: p } = wn(), [_, m] = h.useState("");
2034
+ const t = E(), { monthlySummaries: o } = R(), { finstrong: n, goals: r, spending: c } = v(), { selectedAccounts: s } = V(), { categories: i, dateRangeCategoryTotals: d, loadDateRangeCategoryTotals: l } = He(), { appDataStore: p } = wn(), [_, m] = h.useState("");
2035
2035
  h.useEffect(() => {
2036
- c(
2036
+ l(
2037
2037
  s,
2038
2038
  It(/* @__PURE__ */ new Date()),
2039
2039
  Tt(/* @__PURE__ */ new Date())
@@ -2105,7 +2105,7 @@ const P = {
2105
2105
  p.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2106
2106
  $,
2107
2107
  {
2108
- endIcon: /* @__PURE__ */ e(Z, {}),
2108
+ endIcon: /* @__PURE__ */ e(Q, {}),
2109
2109
  size: "small",
2110
2110
  sx: {
2111
2111
  pl: 8,
@@ -2125,7 +2125,7 @@ const P = {
2125
2125
  data: g,
2126
2126
  onSelected: b,
2127
2127
  selectedId: _,
2128
- totalLabel: l.total_spending
2128
+ totalLabel: c.total_spending
2129
2129
  }
2130
2130
  ),
2131
2131
  /* @__PURE__ */ e(
@@ -2240,7 +2240,7 @@ const P = {
2240
2240
  description: n,
2241
2241
  cardState: r = "MISSING"
2242
2242
  }) => {
2243
- const [l, s] = h.useState(!1);
2243
+ const [c, s] = h.useState(!1);
2244
2244
  return /* @__PURE__ */ a(z, { children: [
2245
2245
  /* @__PURE__ */ a(
2246
2246
  u,
@@ -2265,7 +2265,7 @@ const P = {
2265
2265
  ] }),
2266
2266
  /* @__PURE__ */ e(M, { color: "secondary", variant: "subtitle2", children: n })
2267
2267
  ] }),
2268
- /* @__PURE__ */ e(Z, { color: "secondary", size: 24 })
2268
+ /* @__PURE__ */ e(Q, { color: "secondary", size: 24 })
2269
2269
  ]
2270
2270
  }
2271
2271
  ),
@@ -2273,30 +2273,30 @@ const P = {
2273
2273
  mr,
2274
2274
  {
2275
2275
  drawerFor: t,
2276
- isOpen: l,
2276
+ isOpen: c,
2277
2277
  onClose: () => s(!1)
2278
2278
  }
2279
2279
  )
2280
2280
  ] });
2281
2281
  }, gr = () => {
2282
2282
  const { finstrong: t } = v(), { key_indicators_spend: o } = t, { healthScore: n } = R(), r = (i) => {
2283
- const d = bn(i), c = {
2283
+ const d = bn(i), l = {
2284
2284
  GOOD: o.ratio_good_description,
2285
2285
  FAIR: o.ratio_fair_description,
2286
2286
  OFF_TRACK: o.ratio_off_track_description,
2287
2287
  MISSING: o.ratio_missing_description
2288
- }, p = d === "MISSING" ? c[d] : X(c[d], i);
2288
+ }, p = d === "MISSING" ? l[d] : X(l[d], i);
2289
2289
  return {
2290
2290
  cardState: d,
2291
2291
  description: p,
2292
2292
  title: o.ratio_card_title
2293
2293
  };
2294
- }, { spendToIncomeRatio: l, spendFeeCount: s } = h.useMemo(() => {
2295
- const i = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = r(i), c = yn(
2294
+ }, { spendToIncomeRatio: c, spendFeeCount: s } = h.useMemo(() => {
2295
+ const i = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = r(i), l = yn(
2296
2296
  n.spending_fee_transaction_count,
2297
2297
  o
2298
2298
  );
2299
- return { spendToIncomeRatio: d, spendFeeCount: c };
2299
+ return { spendToIncomeRatio: d, spendFeeCount: l };
2300
2300
  }, [
2301
2301
  n.spend_to_income_ratio,
2302
2302
  n.spending_fee_transaction_count,
@@ -2307,10 +2307,10 @@ const P = {
2307
2307
  /* @__PURE__ */ e(
2308
2308
  he,
2309
2309
  {
2310
- cardState: l.cardState,
2311
- description: l.description,
2310
+ cardState: c.cardState,
2311
+ description: c.description,
2312
2312
  drawerFor: se.SpendLessThanYouMake,
2313
- title: l.title
2313
+ title: c.title
2314
2314
  }
2315
2315
  ),
2316
2316
  /* @__PURE__ */ e(
@@ -2325,36 +2325,36 @@ const P = {
2325
2325
  ] });
2326
2326
  }, yr = S(gr), br = () => {
2327
2327
  const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_save: n } = o, r = (d) => {
2328
- const c = bt(d), p = {
2328
+ const l = bt(d), p = {
2329
2329
  GOOD: n.days_of_cash_good_description,
2330
2330
  FAIR: n.days_of_cash_fair_description,
2331
2331
  OFF_TRACK: n.days_of_cash_off_track_description,
2332
2332
  MISSING: n.days_of_cash_missing_description
2333
- }, _ = c === "MISSING" ? p[c] : X(p[c], d);
2333
+ }, _ = l === "MISSING" ? p[l] : X(p[l], d);
2334
2334
  return {
2335
- cardState: c,
2335
+ cardState: l,
2336
2336
  description: _,
2337
2337
  title: n.days_of_cash_title
2338
2338
  };
2339
- }, l = (d) => {
2340
- const c = yt(d), p = {
2339
+ }, c = (d) => {
2340
+ const l = yt(d), p = {
2341
2341
  GOOD: n.emergency_savings_good_description,
2342
2342
  FAIR: n.emergency_savings_fair_description,
2343
2343
  OFF_TRACK: n.emergency_savings_off_track_description,
2344
2344
  MISSING: n.emergency_savings_missing_description
2345
2345
  };
2346
2346
  let _;
2347
- return c === "FAIR" && d !== null ? _ = X(
2348
- p[c],
2347
+ return l === "FAIR" && d !== null ? _ = X(
2348
+ p[l],
2349
2349
  B(d, "0,0.00")
2350
- ) : _ = p[c], {
2351
- cardState: c,
2350
+ ) : _ = p[l], {
2351
+ cardState: l,
2352
2352
  description: _,
2353
2353
  title: n.emergency_savings_title
2354
2354
  };
2355
2355
  }, { daysOfCashOnHand: s, emergencySavings: i } = h.useMemo(() => {
2356
- const d = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, c = r(d), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, _ = l(p);
2357
- return { daysOfCashOnHand: c, emergencySavings: _ };
2356
+ const d = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, l = r(d), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, _ = c(p);
2357
+ return { daysOfCashOnHand: l, emergencySavings: _ };
2358
2358
  }, [
2359
2359
  t.months_of_cash_on_hand,
2360
2360
  t.emergency_savings_on_hand,
@@ -2382,32 +2382,32 @@ const P = {
2382
2382
  )
2383
2383
  ] });
2384
2384
  }, fr = S(br), xr = () => {
2385
- const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_borrow: n } = o, { user: r } = Q(), l = (c) => {
2386
- const p = fn(c), _ = {
2385
+ const { healthScore: t } = R(), { finstrong: o } = v(), { key_indicators_borrow: n } = o, { user: r } = J(), c = (l) => {
2386
+ const p = fn(l), _ = {
2387
2387
  GOOD: n.manage_debit_good_description,
2388
2388
  FAIR: n.manage_debit_fair_description,
2389
2389
  OFF_TRACK: n.manage_debit_off_track_description,
2390
2390
  MISSING: n.manage_debit_missing_description
2391
- }, m = p === "FAIR" || p === "OFF_TRACK" ? X(_[p], c) : _[p];
2391
+ }, m = p === "FAIR" || p === "OFF_TRACK" ? X(_[p], l) : _[p];
2392
2392
  return {
2393
2393
  cardState: p,
2394
2394
  description: m,
2395
2395
  title: n.manage_debit_title
2396
2396
  };
2397
- }, s = (c) => {
2398
- const p = gt(c), _ = {
2397
+ }, s = (l) => {
2398
+ const p = gt(l), _ = {
2399
2399
  GOOD: n.credit_score_good_description,
2400
2400
  FAIR: n.credit_score_fair_description,
2401
2401
  OFF_TRACK: n.credit_score_off_track_description,
2402
2402
  MISSING: n.credit_score_missing_description
2403
- }, m = p === "MISSING" ? _[p] : X(_[p], c);
2403
+ }, m = p === "MISSING" ? _[p] : X(_[p], l);
2404
2404
  return {
2405
2405
  cardState: p,
2406
2406
  description: m,
2407
2407
  title: n.credit_score_title
2408
2408
  };
2409
2409
  }, { manageDebtStatus: i, creditScoreStatus: d } = h.useMemo(() => {
2410
- const c = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = l(c), _ = s(r.credit_score || null);
2410
+ const l = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = c(l), _ = s(r.credit_score || null);
2411
2411
  return {
2412
2412
  manageDebtStatus: p,
2413
2413
  creditScoreStatus: _
@@ -2441,7 +2441,7 @@ const P = {
2441
2441
  {
2442
2442
  "aria-label": "Key Indicators",
2443
2443
  centered: !0,
2444
- onChange: (r, l) => o(l),
2444
+ onChange: (r, c) => o(c),
2445
2445
  sx: {
2446
2446
  mb: 0,
2447
2447
  "& .MuiTab-root": {
@@ -2503,7 +2503,7 @@ const P = {
2503
2503
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
2504
2504
  $,
2505
2505
  {
2506
- endIcon: /* @__PURE__ */ e(Z, {}),
2506
+ endIcon: /* @__PURE__ */ e(Q, {}),
2507
2507
  onClick: t,
2508
2508
  size: "small",
2509
2509
  sx: {
@@ -2516,7 +2516,7 @@ const P = {
2516
2516
  children: o.connect_more_accounts_button
2517
2517
  }
2518
2518
  ) })
2519
- ] }) : /* @__PURE__ */ e(J, {});
2519
+ ] }) : /* @__PURE__ */ e(q, {});
2520
2520
  }, kr = S(wr), Mr = {
2521
2521
  add_more_income: "Add More Income"
2522
2522
  }, Dr = ({
@@ -2525,15 +2525,15 @@ const P = {
2525
2525
  transaction: n
2526
2526
  }) => /* @__PURE__ */ a(h.Fragment, { children: [
2527
2527
  /* @__PURE__ */ a(u, { children: [
2528
- !!t.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: t.reduce((r, l, s) => {
2529
- if (l.guid === n.guid) return r;
2528
+ !!t.length && /* @__PURE__ */ e(C, { sx: { pb: 24 }, children: t.reduce((r, c, s) => {
2529
+ if (c.guid === n.guid) return r;
2530
2530
  const i = ze(s, t), d = Mt(s, t);
2531
2531
  return r.push(
2532
2532
  /* @__PURE__ */ a(h.Fragment, { children: [
2533
- i && /* @__PURE__ */ e(Dt, { children: Ve(l.date) }),
2534
- /* @__PURE__ */ e(At, { transaction: l }),
2533
+ i && /* @__PURE__ */ e(Dt, { children: Ve(c.date) }),
2534
+ /* @__PURE__ */ e(At, { transaction: c }),
2535
2535
  /* @__PURE__ */ e(ne, { sx: { ml: d ? 44 : 0 } })
2536
- ] }, l.guid)
2536
+ ] }, c.guid)
2537
2537
  ), r;
2538
2538
  }, []) }),
2539
2539
  /* @__PURE__ */ e(
@@ -2564,8 +2564,8 @@ const P = {
2564
2564
  ] }), Ar = S(Dr), Ir = {
2565
2565
  select_date: "Select Date"
2566
2566
  }, Tr = ({ selectedDate: t, setSelectedDate: o }) => {
2567
- const n = E(), r = (l) => {
2568
- o(Math.floor(new Date(l).getTime() / 1e3));
2567
+ const n = E(), r = (c) => {
2568
+ o(Math.floor(new Date(c).getTime() / 1e3));
2569
2569
  };
2570
2570
  return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(Jn, { dateAdapter: Ot, children: /* @__PURE__ */ e(
2571
2571
  eo,
@@ -2667,13 +2667,13 @@ const P = {
2667
2667
  do_it_later: "Do It Later",
2668
2668
  next: "Next"
2669
2669
  }, Lr = ({ isOpen: t, onClose: o }) => {
2670
- const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = R(), { finstrong: l } = v(), { setSelectedAccounts: s } = V(), { setDateRange: i } = kn(), { filter: d, setFilter: c, transactions: p } = Mn(), { user: _, userProfile: m, updateUser: g, updateUserProfile: b } = Q(), [w, f] = h.useState(_.credit_score || 0), [x, y] = h.useState(
2670
+ const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = R(), { finstrong: c } = v(), { setSelectedAccounts: s } = V(), { setDateRange: i } = kn(), { filter: d, setFilter: l, transactions: p } = Mn(), { user: _, userProfile: m, updateUser: g, updateUserProfile: b } = J(), [w, f] = h.useState(_.credit_score || 0), [x, y] = h.useState(
2671
2671
  ct
2672
2672
  ), [k, D] = h.useState([]), [I, N] = h.useState(!1), [G, H] = h.useState(!1), [W, ce] = h.useState(_.birthday), [Y, re] = h.useState("");
2673
2673
  h.useEffect(() => {
2674
2674
  i({ start: It(rt()), end: Tt(rt()) });
2675
2675
  }, []), h.useEffect(() => {
2676
- c({
2676
+ l({
2677
2677
  accounts: n.map((T) => T.guid),
2678
2678
  dateRange: {
2679
2679
  start: Un(/* @__PURE__ */ new Date(), 90),
@@ -2695,7 +2695,7 @@ const P = {
2695
2695
  let L = 0;
2696
2696
  return T >= O.MonthlyIncome && U && L++, T >= O.Birthday && k.length && L++, T >= O.CreditScore && (_.birthday || _.credit_score) && L++, L;
2697
2697
  }, [x.step, U, k.length, _.birthday, _.credit_score]), Ce = (T) => {
2698
- c({
2698
+ l({
2699
2699
  ...d,
2700
2700
  custom: (L) => T ? Qn(L, T) : at(L)
2701
2701
  });
@@ -2806,7 +2806,7 @@ const P = {
2806
2806
  primaryText: de?.mainActionContent,
2807
2807
  secondaryColor: "primary",
2808
2808
  secondaryText: F.back,
2809
- title: l.title,
2809
+ title: c.title,
2810
2810
  ...!I && { onPrimaryAction: Ht },
2811
2811
  children: [
2812
2812
  I && /* @__PURE__ */ a(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
@@ -2817,7 +2817,7 @@ const P = {
2817
2817
  /* @__PURE__ */ e(
2818
2818
  Br,
2819
2819
  {
2820
- completeCopy: l.complete,
2820
+ completeCopy: c.complete,
2821
2821
  primaryText: de.primaryText,
2822
2822
  secondaryText: de.secondaryText,
2823
2823
  value: Pe
@@ -2873,7 +2873,7 @@ const P = {
2873
2873
  /* @__PURE__ */ e($r, { isOpen: t, onClose: () => o(!1) })
2874
2874
  ] });
2875
2875
  }, zr = ({ isOpen: t, onClose: o }) => {
2876
- const { finstrong: n } = v(), r = E(), { updateUser: l, user: s } = Q(), [i, d] = h.useState(s.birthday), c = (_) => {
2876
+ const { finstrong: n } = v(), r = E(), { updateUser: c, user: s } = J(), [i, d] = h.useState(s.birthday), l = (_) => {
2877
2877
  d(Math.floor(new Date(_).getTime() / 1e3));
2878
2878
  };
2879
2879
  return /* @__PURE__ */ e(
@@ -2882,7 +2882,7 @@ const P = {
2882
2882
  isOpen: t,
2883
2883
  onClose: o,
2884
2884
  onPrimaryAction: () => {
2885
- !i || i === s.birthday || (l({ ...s, birthday: i }), o());
2885
+ !i || i === s.birthday || (c({ ...s, birthday: i }), o());
2886
2886
  },
2887
2887
  onSecondaryAction: o,
2888
2888
  title: n.date_of_birth,
@@ -2890,7 +2890,7 @@ const P = {
2890
2890
  to,
2891
2891
  {
2892
2892
  disableFuture: !0,
2893
- onChange: c,
2893
+ onChange: l,
2894
2894
  slotProps: {
2895
2895
  nextIconButton: {
2896
2896
  sx: {
@@ -2923,10 +2923,10 @@ const P = {
2923
2923
  );
2924
2924
  }, Er = S(zr), Gr = ({ isOpen: t, onClose: o }) => {
2925
2925
  const { visibleFinstrongAccounts: n } = Se(), { incomeBudget: r } = xt(), {
2926
- accounts: l,
2926
+ accounts: c,
2927
2927
  common: s,
2928
2928
  finstrong: i
2929
- } = v(), { user: d } = Q(), [c, p] = h.useState(null), m = [
2929
+ } = v(), { user: d } = J(), [l, p] = h.useState(null), m = [
2930
2930
  {
2931
2931
  dynamicCopy: i.add_profile_item,
2932
2932
  fallbackLabel: i.monthly_income,
@@ -2991,20 +2991,20 @@ const P = {
2991
2991
  /* @__PURE__ */ e(
2992
2992
  te,
2993
2993
  {
2994
- isOpen: c === ee.MonthlyIncome,
2994
+ isOpen: l === ee.MonthlyIncome,
2995
2995
  onClose: () => p(null),
2996
2996
  title: s.settings,
2997
2997
  children: /* @__PURE__ */ e(no, {})
2998
2998
  }
2999
2999
  ),
3000
- /* @__PURE__ */ e(Er, { isOpen: c === ee.DateOfBirth, onClose: () => p(null) }),
3001
- /* @__PURE__ */ e(Pt, { isOpen: c === ee.CreditScore, onClose: () => p(null) }),
3000
+ /* @__PURE__ */ e(Er, { isOpen: l === ee.DateOfBirth, onClose: () => p(null) }),
3001
+ /* @__PURE__ */ e(Pt, { isOpen: l === ee.CreditScore, onClose: () => p(null) }),
3002
3002
  /* @__PURE__ */ e(
3003
3003
  St,
3004
3004
  {
3005
3005
  onClose: () => p(null),
3006
- showConnectionsWidget: c === ee.Connections,
3007
- title: l.manage_connections
3006
+ showConnectionsWidget: l === ee.Connections,
3007
+ title: c.manage_connections
3008
3008
  }
3009
3009
  )
3010
3010
  ] });
@@ -3020,16 +3020,16 @@ const P = {
3020
3020
  ] }), Nr = ({ report: t }) => {
3021
3021
  const { finstrong: o } = v(), { score_history_drawer_timeline: n } = o, {
3022
3022
  health_score_point_difference: r,
3023
- newer_credit_score: l,
3023
+ newer_credit_score: c,
3024
3024
  older_credit_score: s,
3025
3025
  older_spend_to_income_ratio: i,
3026
3026
  newer_spend_to_income_ratio: d,
3027
- older_health_score: c,
3027
+ older_health_score: l,
3028
3028
  newer_health_score: p,
3029
3029
  newer_score_calculated_at: _
3030
- } = t, m = ro(new Date(_), "MMM d"), g = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", b = () => r === 0 ? X(n.stayed_at, c) : r > 0 ? n.less_spending : n.more_spending, w = () => {
3030
+ } = t, m = ro(new Date(_), "MMM d"), g = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", b = () => r === 0 ? X(n.stayed_at, l) : r > 0 ? n.less_spending : n.more_spending, w = () => {
3031
3031
  if (r === 0) return null;
3032
- const f = r > 0 ? n.up_from : n.down_from, x = X(f, c, p);
3032
+ const f = r > 0 ? n.up_from : n.down_from, x = X(f, l, p);
3033
3033
  return /* @__PURE__ */ a(z, { children: [
3034
3034
  /* @__PURE__ */ e(
3035
3035
  an,
@@ -3102,7 +3102,7 @@ const P = {
3102
3102
  content: X(
3103
3103
  n.credit_score_description,
3104
3104
  s,
3105
- l
3105
+ c
3106
3106
  ),
3107
3107
  islast: !0
3108
3108
  }
@@ -3112,8 +3112,8 @@ const P = {
3112
3112
  ) })
3113
3113
  ] }) });
3114
3114
  }, Kr = S(Nr), jr = ({ isOpen: t, onClose: o }) => {
3115
- const n = E(), { finstrong: r } = v(), { isCopyLoaded: l, isInitialized: s } = V(), { healthScore: i, healthScoreChangeReports: d, augmentedChartData: c } = R();
3116
- if (!l || !s) return /* @__PURE__ */ e(J, {});
3115
+ const n = E(), { finstrong: r } = v(), { isCopyLoaded: c, isInitialized: s } = V(), { healthScore: i, healthScoreChangeReports: d, augmentedChartData: l } = R();
3116
+ if (!c || !s) return /* @__PURE__ */ e(q, {});
3117
3117
  const p = Ge(i.health_score || 0, r), _ = d.slice().reverse();
3118
3118
  return /* @__PURE__ */ e(
3119
3119
  Bt,
@@ -3125,7 +3125,7 @@ const P = {
3125
3125
  baseline: "min",
3126
3126
  colors: [n.palette.primary.main],
3127
3127
  curveType: "natural",
3128
- datasets: [c],
3128
+ datasets: [l],
3129
3129
  height: 160,
3130
3130
  labels: [r.key_indicators_label],
3131
3131
  margin: { top: 12, left: 24 },
@@ -3176,9 +3176,9 @@ const P = {
3176
3176
  { color: "chartMono.chartMono3", text: t.building, value: "26-50" },
3177
3177
  { color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
3178
3178
  { color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
3179
- ].map(({ color: r, text: l, value: s }) => /* @__PURE__ */ a(u, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3179
+ ].map(({ color: r, text: c, value: s }) => /* @__PURE__ */ a(u, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3180
3180
  /* @__PURE__ */ a(C, { children: [
3181
- /* @__PURE__ */ e(M, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: l }),
3181
+ /* @__PURE__ */ e(M, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: c }),
3182
3182
  /* @__PURE__ */ a(A, { sx: { color: "text.secondary" }, variant: "caption", children: [
3183
3183
  "(",
3184
3184
  s,
@@ -3186,7 +3186,7 @@ const P = {
3186
3186
  ] })
3187
3187
  ] }),
3188
3188
  /* @__PURE__ */ e(C, { sx: { border: "2px solid", borderColor: r, borderRadius: "3px" } })
3189
- ] }, l)) }),
3189
+ ] }, c)) }),
3190
3190
  /* @__PURE__ */ a(C, { children: [
3191
3191
  /* @__PURE__ */ e(
3192
3192
  C,
@@ -3302,17 +3302,17 @@ const P = {
3302
3302
  }
3303
3303
  )
3304
3304
  ] })
3305
- ] }) }) : /* @__PURE__ */ e(J, {});
3305
+ ] }) }) : /* @__PURE__ */ e(q, {});
3306
3306
  }, Ur = S(Xr), qr = S(() => {
3307
- const [t, o] = h.useState(!1), n = E(), [r, { width: l }] = vt(), { finstrong: s } = v(), { isCopyLoaded: i, isInitialized: d } = V(), { healthScore: c, healthScoreChange: p } = R(), _ = n.palette.mode === "dark", m = Ge(c?.health_score, s);
3308
- return !i || !d ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ a(j, { ref: r, sx: { p: 16 }, children: [
3307
+ const [t, o] = h.useState(!1), n = E(), [r, { width: c }] = vt(), { finstrong: s } = v(), { isCopyLoaded: i, isInitialized: d } = V(), { healthScore: l, healthScoreChange: p } = R(), _ = n.palette.mode === "dark", m = Ge(l?.health_score, s);
3308
+ return !i || !d ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ a(j, { ref: r, sx: { p: 16 }, children: [
3309
3309
  /* @__PURE__ */ e(
3310
3310
  go,
3311
3311
  {
3312
3312
  action: /* @__PURE__ */ e(
3313
3313
  $,
3314
3314
  {
3315
- endIcon: /* @__PURE__ */ e(Z, {}),
3315
+ endIcon: /* @__PURE__ */ e(Q, {}),
3316
3316
  onClick: () => o(!0),
3317
3317
  sx: {
3318
3318
  fontSize: 13,
@@ -3336,13 +3336,13 @@ const P = {
3336
3336
  /* @__PURE__ */ e(u, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(
3337
3337
  Ft,
3338
3338
  {
3339
- arcRadius: l <= 323 ? 73 : 154,
3339
+ arcRadius: c <= 323 ? 73 : 154,
3340
3340
  footerCenterContent: p,
3341
- healthScore: c?.health_score || 0,
3342
- size: l <= 323 ? "M" : "L"
3341
+ healthScore: l?.health_score || 0,
3342
+ size: c <= 323 ? "M" : "L"
3343
3343
  }
3344
3344
  ) }),
3345
- c?.health_score ? /* @__PURE__ */ a(
3345
+ l?.health_score ? /* @__PURE__ */ a(
3346
3346
  _o,
3347
3347
  {
3348
3348
  sx: {
@@ -3404,20 +3404,20 @@ const P = {
3404
3404
  )
3405
3405
  ] });
3406
3406
  }), Zr = ({ onBackClick: t, sx: o }) => {
3407
- const { visibleAccounts: n } = Se(), { dateRange: r, isDataLoaded: l, loadBudgetData: s, setTheme: i } = xt(), { reloadCategoryTotals: d } = He(), {
3408
- augmentedChartData: c,
3407
+ const { visibleAccounts: n } = Se(), { dateRange: r, isDataLoaded: c, loadBudgetData: s, setTheme: i } = xt(), { reloadCategoryTotals: d } = He(), {
3408
+ augmentedChartData: l,
3409
3409
  calculateHealthScore: p,
3410
3410
  healthScore: _,
3411
3411
  loadAugmentedChartData: m,
3412
3412
  loadMonthlySummaries: g
3413
- } = R(), { finstrong: b, connect: w } = v(), { isCopyLoaded: f, isInitialized: x, selectedAccounts: y, setSelectedAccounts: k } = V(), { isMobile: D } = je(), I = E(), { userProfile: N } = Q(), [G, H] = h.useState(!1), [W, ce] = h.useState(!1), [Y, re] = h.useState(!1);
3413
+ } = R(), { finstrong: b, connect: w } = v(), { isCopyLoaded: f, isInitialized: x, selectedAccounts: y, setSelectedAccounts: k } = V(), { isMobile: D } = je(), I = E(), { userProfile: N } = J(), [G, H] = h.useState(!1), [W, ce] = h.useState(!1), [Y, re] = h.useState(!1);
3414
3414
  if (h.useEffect(() => {
3415
3415
  i(I);
3416
3416
  }, []), h.useEffect(() => k(n), [n]), h.useEffect(() => {
3417
3417
  x && (p().finally(), m().finally(), g().finally());
3418
3418
  }, [x]), h.useEffect(() => {
3419
- x && (d(y, r.start, r.end), l || s());
3420
- }, [r, l, x, y]), !f || !x) return /* @__PURE__ */ e(J, {});
3419
+ x && (d(y, r.start, r.end), c || s());
3420
+ }, [r, c, x, y]), !f || !x) return /* @__PURE__ */ e(q, {});
3421
3421
  const le = () => {
3422
3422
  }, ge = () => H(!0);
3423
3423
  return /* @__PURE__ */ a(
@@ -3465,7 +3465,7 @@ const P = {
3465
3465
  /* @__PURE__ */ e(
3466
3466
  $,
3467
3467
  {
3468
- endIcon: /* @__PURE__ */ e(Z, {}),
3468
+ endIcon: /* @__PURE__ */ e(Q, {}),
3469
3469
  onClick: () => ce(!0),
3470
3470
  sx: {
3471
3471
  fontSize: 13
@@ -3475,7 +3475,7 @@ const P = {
3475
3475
  }
3476
3476
  )
3477
3477
  ] }),
3478
- c.length ? /* @__PURE__ */ e(
3478
+ l.length ? /* @__PURE__ */ e(
3479
3479
  Ne,
3480
3480
  {
3481
3481
  axisColor: I.palette.divider,
@@ -3483,7 +3483,7 @@ const P = {
3483
3483
  colors: [I.palette.primary.main],
3484
3484
  curveType: "natural",
3485
3485
  customLegendVariant: "XSmall",
3486
- datasets: [c],
3486
+ datasets: [l],
3487
3487
  height: 300,
3488
3488
  isGraphClippingXAxis: !0,
3489
3489
  labelBackgroundColor: I.palette.border.dark,