@mx-cartographer/experiences 7.5.0-alpha.bb1 → 7.5.0

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.
@@ -9,7 +9,7 @@ import { g as fn, a as xn, r as et, b as Sn, c as Ne, d as mt, C as we, e as ke,
9
9
  import { y as Si, F as Ci } from "../FinstrongStore-BIrX0Xg2.mjs";
10
10
  import * as ot from "d3";
11
11
  import { observer as v } from "mobx-react-lite";
12
- import { u as x, b as q, a as je, o as ee, z as L, p as Fn, d as Se, m as Ke, f as Rn, j as Ve, h as Ln, i as Pn } from "../hooks-ZMp65DFz.mjs";
12
+ import { u as x, b as q, a as je, o as ee, z as L, p as Rn, d as Se, m as Ke, f as Fn, j as Ve, h as Ln, i as Pn } from "../hooks-ZMp65DFz.mjs";
13
13
  import { L as te } from "../Loader-DUaFpDGv.mjs";
14
14
  import m from "react";
15
15
  import B from "@mui/material/Button";
@@ -19,7 +19,7 @@ import { C as St } from "../ConnectionsDrawer-VmuVFHbL.mjs";
19
19
  import { l as re, g as Ct, A as Ge } from "../ConnectDrawer-BkvlItWx.mjs";
20
20
  import se from "@mui/material/Tab";
21
21
  import Xe from "@mui/material/Tabs";
22
- import Fe from "@mui/material/TextField";
22
+ import Re from "@mui/material/TextField";
23
23
  import { u as qe } from "../useScreenSize-B6JyS_Lj.mjs";
24
24
  import { D as Bn, f as Wn, a as $n } from "../Dialog-BPTr3qHE.mjs";
25
25
  import { u as vt } from "../useDimensions-27p2evRx.mjs";
@@ -40,7 +40,7 @@ import { S as Nn } from "../StatusBar-BK_uYHAB.mjs";
40
40
  import { h as It } from "../DateUtil-CBdcsyuk.mjs";
41
41
  import { T as jn, s as Kn, h as Vn, S as Yn, c as Xn } from "../TransactionDetails-m5PddMQn.mjs";
42
42
  import { T as ce } from "../TabContentContainer-j01JYR_7.mjs";
43
- import { E as Re } from "../EmptyState-DoxNUae-.mjs";
43
+ import { E as Fe } from "../EmptyState-DoxNUae-.mjs";
44
44
  import qn from "@mui/material/useMediaQuery";
45
45
  import { ChartsXAxis as Un } from "@mui/x-charts/ChartsXAxis";
46
46
  import { ChartsYAxis as Qn } from "@mui/x-charts/ChartsYAxis";
@@ -78,8 +78,8 @@ const Ao = ({
78
78
  arcStartAngle: r,
79
79
  totalAngularSpan: s,
80
80
  centerX: i,
81
- centerY: c,
82
- arcRadius: l,
81
+ centerY: l,
82
+ arcRadius: c,
83
83
  innerArcRadius: _,
84
84
  outterArcRadius: d,
85
85
  progressEndAngle: u,
@@ -115,33 +115,33 @@ const Ao = ({
115
115
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
116
116
  "linearGradient",
117
117
  {
118
- gradientTransform: `rotate(5, ${i}, ${c})`,
118
+ gradientTransform: `rotate(5, ${i}, ${l})`,
119
119
  gradientUnits: "userSpaceOnUse",
120
120
  id: "arcGradient",
121
- x1: i + l * 0.8 * Math.cos(Math.PI / 1.35),
122
- x2: i - l * 0.8 * Math.cos(Math.PI / 1.35),
123
- y1: c + l * 0.8 * Math.sin(Math.PI / 1.35),
124
- y2: c - l * 0.8 * Math.sin(Math.PI / 1.35),
125
- children: w.map((F, U) => /* @__PURE__ */ e("stop", { offset: F.offset, stopColor: F.color }, U))
121
+ x1: i + c * 0.8 * Math.cos(Math.PI / 1.35),
122
+ x2: i - c * 0.8 * Math.cos(Math.PI / 1.35),
123
+ y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
124
+ y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
125
+ children: w.map((R, U) => /* @__PURE__ */ e("stop", { offset: R.offset, stopColor: R.color }, U))
126
126
  }
127
127
  ) })
128
128
  ] });
129
- }, Ft = ({
129
+ }, Rt = ({
130
130
  arcRadius: t = 100,
131
131
  healthScore: o,
132
132
  size: n = "L",
133
133
  dialScoreData: r,
134
134
  minValue: s = 0,
135
135
  maxValue: i = 100,
136
- margin: c,
137
- markerColor: l,
136
+ margin: l,
137
+ markerColor: c,
138
138
  healthScoreStatus: _,
139
139
  footerCenterContent: d,
140
140
  footerLeftContent: u,
141
141
  footerRightContent: h,
142
142
  isFinacialStrengthGraph: y = !1
143
143
  }) => {
144
- const f = E(), w = -Math.PI / 1.35, S = Math.PI / 1.35, D = S - w, C = D / (i - s), g = (o - s) * C, b = w + g + 0.02, P = n !== "SM" ? 0.1 : 0.12, F = t, U = t * (1 - P), T = F * 2, $ = T / 2, z = T / 2, pe = (U + F) / 2, ve = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [Q, Y] = Sn(pe, b, ve), _e = o / 25, H = {
144
+ const f = E(), w = -Math.PI / 1.35, S = Math.PI / 1.35, D = S - w, C = D / (i - s), g = (o - s) * C, b = w + g + 0.02, P = n !== "SM" ? 0.1 : 0.12, R = t, U = t * (1 - P), T = R * 2, $ = T / 2, z = T / 2, pe = (U + R) / 2, ve = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [Q, Y] = Sn(pe, b, ve), _e = o / 25, H = {
145
145
  L: { markerSize: 12, healthScoreFontSize: 64 },
146
146
  M: { markerSize: 8, healthScoreFontSize: 48 },
147
147
  SM: { markerSize: 3, healthScoreFontSize: 14 }
@@ -150,7 +150,7 @@ const Ao = ({
150
150
  right: 0,
151
151
  bottom: 0,
152
152
  left: 0,
153
- ...c
153
+ ...l
154
154
  }, N = d === 0 ? sn : cn, ae = n !== "SM" ? 3 : 1, De = ae * 4, ue = H[n].markerSize * 2 + De;
155
155
  return /* @__PURE__ */ a(
156
156
  p,
@@ -172,7 +172,7 @@ const Ao = ({
172
172
  {
173
173
  data: r,
174
174
  innerRadius: U,
175
- outerRadius: F,
175
+ outerRadius: R,
176
176
  startAngle: Math.round(et(w)),
177
177
  // Use Math.degrees to convert
178
178
  endAngle: Math.round(et(S))
@@ -196,7 +196,7 @@ const Ao = ({
196
196
  dialScoreData: r,
197
197
  innerArcRadius: U,
198
198
  isFinacialStrengthGraph: y,
199
- outterArcRadius: F,
199
+ outterArcRadius: R,
200
200
  progressEndAngle: b,
201
201
  totalAngularSpan: D,
202
202
  unitsPerSegment: _e
@@ -230,7 +230,7 @@ const Ao = ({
230
230
  cy: z + Y,
231
231
  fill: f.palette.common.white,
232
232
  r: H[n].markerSize,
233
- stroke: y ? "url(#arcGradient)" : l,
233
+ stroke: y ? "url(#arcGradient)" : c,
234
234
  strokeWidth: ae
235
235
  }
236
236
  )
@@ -298,7 +298,7 @@ const Ao = ({
298
298
  color: d > 0 ? "success.main" : "text.secondary"
299
299
  },
300
300
  variant: "body1",
301
- children: d
301
+ children: Math.abs(d)
302
302
  }
303
303
  )
304
304
  ]
@@ -336,7 +336,7 @@ const Ao = ({
336
336
  ]
337
337
  }
338
338
  );
339
- }, Rt = v(
339
+ }, Ft = v(
340
340
  ({
341
341
  arcRadius: t,
342
342
  size: o = "L",
@@ -349,15 +349,15 @@ const Ao = ({
349
349
  { id: 2, label: "Group B", value: 25 },
350
350
  { id: 3, label: "Group C", value: 25 },
351
351
  { id: 4, label: "Group D", value: 25 }
352
- ], { finstrong: c } = x(), l = Ne(n, c);
352
+ ], { finstrong: l } = x(), c = Ne(n, l);
353
353
  return /* @__PURE__ */ e(
354
- Ft,
354
+ Rt,
355
355
  {
356
356
  arcRadius: t,
357
357
  dialScoreData: i,
358
- footerCenterContent: o === "L" ? c.footer_center_content_updated_just_now : r,
358
+ footerCenterContent: o === "L" ? l.footer_center_content_updated_just_now : r,
359
359
  healthScore: n,
360
- healthScoreStatus: l.status,
360
+ healthScoreStatus: c.status,
361
361
  isFinacialStrengthGraph: !0,
362
362
  margin: s,
363
363
  size: o
@@ -373,46 +373,46 @@ const Ao = ({
373
373
  minValue: s = 300,
374
374
  footerCenterContent: i
375
375
  }) => {
376
- const l = E().palette.mode === "dark", _ = [
376
+ const c = E().palette.mode === "dark", _ = [
377
377
  {
378
378
  id: 1,
379
379
  label: "Poor",
380
380
  value: 29,
381
- color: l ? we.POOR : ke.POOR
381
+ color: c ? we.POOR : ke.POOR
382
382
  },
383
383
  {
384
384
  id: 2,
385
385
  label: "Fair",
386
386
  value: 25,
387
- color: l ? we.FAIR : ke.FAIR
387
+ color: c ? we.FAIR : ke.FAIR
388
388
  },
389
389
  {
390
390
  id: 3,
391
391
  label: "Good",
392
392
  value: 17,
393
- color: l ? we.GOOD : ke.GOOD
393
+ color: c ? we.GOOD : ke.GOOD
394
394
  },
395
395
  {
396
396
  id: 4,
397
397
  label: "Very Good",
398
398
  value: 17,
399
- color: l ? we.VERY_GOOD : ke.VERY_GOOD
399
+ color: c ? we.VERY_GOOD : ke.VERY_GOOD
400
400
  },
401
401
  {
402
402
  id: 5,
403
403
  label: "Exceptional",
404
404
  value: 12,
405
- color: l ? we.EXCEPTIONAL : ke.EXCEPTIONAL
405
+ color: c ? we.EXCEPTIONAL : ke.EXCEPTIONAL
406
406
  }
407
407
  ], { finstrong: d } = x(), { isCopyLoaded: u } = q();
408
408
  if (!u) return /* @__PURE__ */ e(te, {});
409
409
  const { status: h, color: y = "none" } = mt(
410
410
  n,
411
- l,
411
+ c,
412
412
  d.credit_score_status
413
413
  );
414
414
  return /* @__PURE__ */ e(
415
- Ft,
415
+ Rt,
416
416
  {
417
417
  arcRadius: t,
418
418
  dialScoreData: _,
@@ -435,8 +435,8 @@ const Ao = ({
435
435
  buttonText: r,
436
436
  title: s,
437
437
  titleDrawer: i,
438
- description: c,
439
- sx: l
438
+ description: l,
439
+ sx: c
440
440
  }) => {
441
441
  const [_, d] = m.useState(!1), { connect: u, finstrong: h } = x(), { config: y } = je();
442
442
  return t && y.show_connections_widget_in_master ? /* @__PURE__ */ a(
@@ -447,7 +447,7 @@ const Ao = ({
447
447
  pt: 18,
448
448
  px: 24,
449
449
  width: "100%",
450
- ...l
450
+ ...c
451
451
  },
452
452
  children: [
453
453
  /* @__PURE__ */ a(
@@ -469,7 +469,7 @@ const Ao = ({
469
469
  className: "connect-more-accounts-description",
470
470
  sx: { color: "text.secondary", mt: 8 },
471
471
  variant: "subtitle1",
472
- children: c || h.connect_more_accounts_description
472
+ children: l || h.connect_more_accounts_description
473
473
  }
474
474
  ),
475
475
  /* @__PURE__ */ e(
@@ -503,17 +503,17 @@ const Ao = ({
503
503
  ) : null;
504
504
  };
505
505
  var de = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(de || {});
506
- const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Fo = ({ isOpen: t, onClose: o }) => {
507
- const { common: n, finstrong: r } = x(), { isMobile: s } = qe(), { updateUser: i, user: c } = ee(), [l, _] = m.useState(c.credit_score || 0), d = !isNaN(l), u = () => {
508
- o(), setTimeout(() => _(c.credit_score || 0), 300);
506
+ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Ro = ({ isOpen: t, onClose: o }) => {
507
+ const { common: n, finstrong: r } = x(), { isMobile: s } = qe(), { updateUser: i, user: l } = ee(), [c, _] = m.useState(l.credit_score || 0), d = !isNaN(c), u = () => {
508
+ o(), setTimeout(() => _(l.credit_score || 0), 300);
509
509
  }, h = () => {
510
- !l || l === c.credit_score || i({ ...c, credit_score: l });
510
+ !c || c === l.credit_score || i({ ...l, credit_score: c });
511
511
  };
512
512
  return /* @__PURE__ */ e(
513
513
  Bn,
514
514
  {
515
515
  copy: { close_aria: n.close_aria, title: r.edit_credit_score },
516
- disablePrimaryButton: !l || !d,
516
+ disablePrimaryButton: !c || !d,
517
517
  isOpen: t,
518
518
  maxWidth: "xs",
519
519
  onClose: u,
@@ -532,7 +532,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
532
532
  y.preventDefault(), h(), u();
533
533
  },
534
534
  children: /* @__PURE__ */ e(
535
- Fe,
535
+ Re,
536
536
  {
537
537
  error: !d,
538
538
  fullWidth: !0,
@@ -542,18 +542,18 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
542
542
  pattern: "[0-9]*"
543
543
  },
544
544
  onChange: (y) => _(Number(y.target.value)),
545
- value: d ? l : ""
545
+ value: d ? c : ""
546
546
  }
547
547
  )
548
548
  }
549
549
  )
550
550
  }
551
551
  );
552
- }, Lt = v(Fo), ze = {
552
+ }, Lt = v(Ro), ze = {
553
553
  credit_over_time_title: "Your Credit Over Time",
554
554
  credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
555
- }, Ro = ({ chartFor: t }) => {
556
- const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = L(), { user: s } = ee(), { finstrong: i } = x(), [c, { width: l }] = vt(), _ = {
555
+ }, Fo = ({ chartFor: t }) => {
556
+ const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = L(), { user: s } = ee(), { finstrong: i } = x(), [l, { width: c }] = vt(), _ = {
557
557
  savingsOverTime: {
558
558
  icon: /* @__PURE__ */ e(dt, { size: 48, sx: { marginBottom: 8 } }),
559
559
  title: i.key_indicators_save.zero_state_title,
@@ -582,17 +582,17 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
582
582
  title: ze.credit_over_time_title,
583
583
  valueKey: "credit_score"
584
584
  }
585
- }[t], h = Cn(r, u.valueKey), y = r.map((F) => F[u.valueKey]), f = Math.max(...y), w = Math.min(...y), S = () => f >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : f >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: D, leftMargin: C } = S(), g = u.title, b = t === "creditOverTime";
585
+ }[t], h = Cn(r, u.valueKey), y = r.map((R) => R[u.valueKey]), f = Math.max(...y), w = Math.min(...y), S = () => f >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : f >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: D, leftMargin: C } = S(), g = u.title, b = t === "creditOverTime";
586
586
  let P;
587
587
  if (b) {
588
- const { color: F } = mt(
588
+ const { color: R } = mt(
589
589
  s?.credit_score ?? 0,
590
590
  n,
591
591
  i.credit_score_status
592
592
  );
593
- P = F;
593
+ P = R;
594
594
  }
595
- return /* @__PURE__ */ e(V, { ref: c, sx: { backgroundColor: "background.paper" }, children: h.length >= 1 ? /* @__PURE__ */ a(p, { gap: 8, sx: { pl: 18 }, children: [
595
+ return /* @__PURE__ */ e(V, { ref: l, sx: { backgroundColor: "background.paper" }, children: h.length >= 1 ? /* @__PURE__ */ a(p, { gap: 8, sx: { pl: 18 }, children: [
596
596
  /* @__PURE__ */ e(M, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
597
597
  /* @__PURE__ */ e(
598
598
  Ye,
@@ -609,10 +609,10 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
609
609
  labelFontSize: b ? 13 : void 0,
610
610
  labels: [i.key_indicators_label],
611
611
  margin: { left: C, top: b ? 25 : 15, right: 20 },
612
- markStyles: (F) => b ? {
612
+ markStyles: (R) => b ? {
613
613
  markLabelStyles: {
614
614
  marginLeft: 16,
615
- transform: F === h.length - 1 ? "translateX(-16px)" : "translateX(16px)",
615
+ transform: R === h.length - 1 ? "translateX(-16px)" : "translateX(16px)",
616
616
  fontWeight: 600,
617
617
  fill: o.palette.text.primary
618
618
  },
@@ -632,7 +632,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
632
632
  showYAxisTicks: b,
633
633
  useCustomMark: !0,
634
634
  valueFormatterString: b ? void 0 : D,
635
- width: l < 342 ? l - 48 : 342
635
+ width: c < 342 ? c - 48 : 342
636
636
  }
637
637
  )
638
638
  ] }) : /* @__PURE__ */ a(p, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
@@ -640,23 +640,23 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
640
640
  /* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children: _.title }),
641
641
  /* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: _.description })
642
642
  ] }) });
643
- }, Ue = v(Ro), Lo = () => {
644
- const { healthScoreChange: t } = L(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } = Fn(), { isSmallMobile: s } = qe(r), [i, c] = m.useState(!1);
643
+ }, Ue = v(Fo), Lo = () => {
644
+ const { healthScoreChangeReports: t } = L(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } = Rn(), { isSmallMobile: s } = qe(r), [i, l] = m.useState(!1), c = t.at(-1);
645
645
  return /* @__PURE__ */ a(k, { children: [
646
646
  /* @__PURE__ */ a(p, { sx: { gap: 28 }, children: [
647
647
  /* @__PURE__ */ e(
648
648
  To,
649
649
  {
650
650
  arcRadius: s ? 124 : 154,
651
- footerCenterContent: t,
651
+ footerCenterContent: c ? c.newer_credit_score - c.older_credit_score : 0,
652
652
  healthScore: n.credit_score ?? 0,
653
653
  size: s ? "M" : "L"
654
654
  }
655
655
  ),
656
- /* @__PURE__ */ e(B, { onClick: () => c(!0), variant: "contained", children: o.credit_score_updated_score }),
656
+ /* @__PURE__ */ e(B, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
657
657
  /* @__PURE__ */ e(Ue, { chartFor: "creditOverTime" })
658
658
  ] }),
659
- /* @__PURE__ */ e(Lt, { isOpen: i, onClose: () => c(!1) })
659
+ /* @__PURE__ */ e(Lt, { isOpen: i, onClose: () => l(!1) })
660
660
  ] });
661
661
  }, Po = v(Lo), Be = ({ status: t }) => {
662
662
  const { finstrong: o } = x(), n = vn(wn[t]), r = {
@@ -699,15 +699,15 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
699
699
  children: r,
700
700
  description: s,
701
701
  drawerTitle: i,
702
- isOpen: c,
703
- loadConnectAccountsCard: l = !0,
702
+ isOpen: l,
703
+ loadConnectAccountsCard: c = !0,
704
704
  onClose: _,
705
705
  stickyComponent: d,
706
706
  title: u,
707
707
  drawerType: h
708
708
  }) => {
709
709
  const { finstrong: y } = x(), { isCopyLoaded: f } = q();
710
- return f ? /* @__PURE__ */ e(oe, { isOpen: c, onClose: _, title: i || y.key_indicators, children: /* @__PURE__ */ a(p, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
710
+ return f ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: _, title: i || y.key_indicators, children: /* @__PURE__ */ a(p, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
711
711
  (u || s) && /* @__PURE__ */ a(
712
712
  p,
713
713
  {
@@ -736,7 +736,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
736
736
  t && /* @__PURE__ */ e(k, { children: t }),
737
737
  /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
738
738
  r,
739
- l && /* @__PURE__ */ e(
739
+ c && /* @__PURE__ */ e(
740
740
  Pe,
741
741
  {
742
742
  description: n,
@@ -753,18 +753,18 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
753
753
  shouldShowBalance: o = !0,
754
754
  loadAccounts: n
755
755
  }) => {
756
- const { config: r } = je(), { accounts: s } = x(), { selectedAccounts: i } = q(), c = m.useCallback(
756
+ const { config: r } = je(), { accounts: s } = x(), { selectedAccounts: i } = q(), l = m.useCallback(
757
757
  (_) => {
758
758
  t?.(_);
759
759
  },
760
760
  [t]
761
- ), l = m.useMemo(
761
+ ), c = m.useMemo(
762
762
  () => Array.from(new Set(i.map((_) => _.account_type))).filter(
763
763
  (_) => n ? n.includes(_) : !0
764
764
  ),
765
765
  [i, n]
766
766
  );
767
- return i.length ? /* @__PURE__ */ e(m.Fragment, { children: l.map((_) => {
767
+ return i.length ? /* @__PURE__ */ e(m.Fragment, { children: c.map((_) => {
768
768
  const { accountsForType: d, totalBalanceForType: u } = i.reduce(
769
769
  (h, y) => (y.account_type === _ && (h.accountsForType.push(y), h.totalBalanceForType += y.balance || 0), h),
770
770
  { accountsForType: [], totalBalanceForType: 0 }
@@ -793,7 +793,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
793
793
  o && /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: W(f ?? 0, "0,0.00") })
794
794
  ] });
795
795
  return /* @__PURE__ */ a(m.Fragment, { children: [
796
- /* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Gn, { onClick: () => c(h), children: S }) : S }),
796
+ /* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Gn, { onClick: () => l(h), children: S }) : S }),
797
797
  y !== d.length - 1 && /* @__PURE__ */ e(le, { variant: "inset" })
798
798
  ] }, h.guid);
799
799
  }),
@@ -804,13 +804,13 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
804
804
  );
805
805
  }) }) : null;
806
806
  }, Bt = v(zo), Go = ({ loadAccounts: t, loadMoreLabel: o }) => {
807
- const n = E(), { config: r } = je(), { connect: s, finstrong: i } = x(), { accounts: c } = x(), { selectedAccounts: l } = q(), [_, d] = m.useState(!1), [u, h] = m.useState(!1), y = m.useMemo(
808
- () => l.filter(
807
+ const n = E(), { config: r } = je(), { connect: s, finstrong: i } = x(), { accounts: l } = x(), { selectedAccounts: c } = q(), [_, d] = m.useState(!1), [u, h] = m.useState(!1), y = m.useMemo(
808
+ () => c.filter(
809
809
  (S) => t ? t.includes(S.account_type) : !0
810
810
  ),
811
- [l, t]
811
+ [c, t]
812
812
  ), f = m.useMemo(() => y.slice(0, 3), [y]), w = (S) => {
813
- const { firstValue: D } = kt(S, c);
813
+ const { firstValue: D } = kt(S, l);
814
814
  return D;
815
815
  };
816
816
  return y.length >= 1 ? /* @__PURE__ */ a(G, { children: [
@@ -902,11 +902,11 @@ const Eo = ({ total: t }) => {
902
902
  { id: Me.Months, label: o.maintain_emergency_savings_months },
903
903
  { id: Me.Years, label: o.maintain_emergency_savings_years },
904
904
  { id: Me.Days, label: o.maintain_emergency_savings_days }
905
- ], i = Math.ceil((t + 1) / 1e3) * 1e3, [c, l] = m.useState(0), [_, d] = m.useState(tt(t)), [u, h] = m.useState(
905
+ ], i = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = m.useState(0), [_, d] = m.useState(tt(t)), [u, h] = m.useState(
906
906
  tt(t)
907
907
  ), [y, f] = m.useState(i), [w, S] = m.useState(kn(t)), [D, C] = m.useState(Me.Months);
908
908
  m.useEffect(() => {
909
- l(
909
+ c(
910
910
  nt({
911
911
  contribution: u,
912
912
  goalAmount: y,
@@ -917,7 +917,7 @@ const Eo = ({ total: t }) => {
917
917
  ), d(u);
918
918
  }, []);
919
919
  const g = (b) => {
920
- b.preventDefault(), l(
920
+ b.preventDefault(), c(
921
921
  nt({
922
922
  contribution: u,
923
923
  goalAmount: y,
@@ -932,7 +932,7 @@ const Eo = ({ total: t }) => {
932
932
  Ce,
933
933
  {
934
934
  balance: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", height: 32 }, children: [
935
- /* @__PURE__ */ e(I, { variant: "h2", children: W(c, "0,0") }),
935
+ /* @__PURE__ */ e(I, { variant: "h2", children: W(l, "0,0") }),
936
936
  /* @__PURE__ */ a(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
937
937
  "/",
938
938
  r[_]
@@ -942,7 +942,7 @@ const Eo = ({ total: t }) => {
942
942
  }
943
943
  ),
944
944
  /* @__PURE__ */ e(
945
- Fe,
945
+ Re,
946
946
  {
947
947
  "aria-label": o.maintain_emergency_savings_savings_goal,
948
948
  helperText: j(
@@ -972,7 +972,7 @@ const Eo = ({ total: t }) => {
972
972
  ),
973
973
  /* @__PURE__ */ a(p, { sx: { flexDirection: "row" }, children: [
974
974
  /* @__PURE__ */ e(
975
- Fe,
975
+ Re,
976
976
  {
977
977
  "aria-label": o.maintain_emergency_savings_meet_your_goal_within,
978
978
  fullWidth: !0,
@@ -1016,7 +1016,7 @@ const Eo = ({ total: t }) => {
1016
1016
  ] }) }) });
1017
1017
  }, Ho = v(Eo), No = () => {
1018
1018
  const { savingsAccounts: t } = Se(), { finstrong: o } = x(), [n, r] = m.useState(!1), s = m.useMemo(
1019
- () => t.reduce((i, c) => i + (c.balance ?? 0), 0),
1019
+ () => t.reduce((i, l) => i + (l.balance ?? 0), 0),
1020
1020
  [t]
1021
1021
  );
1022
1022
  return /* @__PURE__ */ a(p, { sx: { gap: 24 }, children: [
@@ -1055,12 +1055,12 @@ const Eo = ({ total: t }) => {
1055
1055
  MISSING: {
1056
1056
  progressBarColor: "text.secondary"
1057
1057
  }
1058
- }[n], c = s.map((l, _) => s.length === 2 ? {
1059
- color: _ === 0 ? "primary.main" : l.color || i?.progressBarColor,
1060
- percentage: l.percentage
1058
+ }[n], l = s.map((c, _) => s.length === 2 ? {
1059
+ color: _ === 0 ? "primary.main" : c.color || i?.progressBarColor,
1060
+ percentage: c.percentage
1061
1061
  } : {
1062
- color: l.color || i?.progressBarColor,
1063
- percentage: l.percentage
1062
+ color: c.color || i?.progressBarColor,
1063
+ percentage: c.percentage
1064
1064
  });
1065
1065
  return /* @__PURE__ */ a(
1066
1066
  p,
@@ -1093,7 +1093,7 @@ const Eo = ({ total: t }) => {
1093
1093
  )
1094
1094
  ] }),
1095
1095
  /* @__PURE__ */ a(p, { children: [
1096
- /* @__PURE__ */ e(Nn, { data: c, height: 16 }),
1096
+ /* @__PURE__ */ e(Nn, { data: l, height: 16 }),
1097
1097
  r
1098
1098
  ] })
1099
1099
  ]
@@ -1138,7 +1138,7 @@ const Eo = ({ total: t }) => {
1138
1138
  formatDate: r = It,
1139
1139
  secondaryIcon: s
1140
1140
  }) => {
1141
- const i = E(), { connect: c, finstrong: l, categories: _ } = x(), [d, u] = m.useState(!1), [h, y] = m.useState(!1), { getCategoryName: f } = Ke(), w = 3, S = t.length > w, D = t.length - w;
1141
+ const i = E(), { connect: l, finstrong: c, categories: _ } = x(), [d, u] = m.useState(!1), [h, y] = m.useState(!1), { getCategoryName: f } = Ke(), w = 3, S = t.length > w, D = t.length - w;
1142
1142
  let C = t;
1143
1143
  return S && (C = t.map((g) => ({
1144
1144
  ...g,
@@ -1154,7 +1154,7 @@ const Eo = ({ total: t }) => {
1154
1154
  size: "small",
1155
1155
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1156
1156
  variant: "contained",
1157
- children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: l.connect_more_accounts_button })
1157
+ children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
1158
1158
  }
1159
1159
  ) }),
1160
1160
  /* @__PURE__ */ e(
@@ -1162,7 +1162,7 @@ const Eo = ({ total: t }) => {
1162
1162
  {
1163
1163
  onClose: () => y(!1),
1164
1164
  showConnectWidget: h,
1165
- title: c.mini_title
1165
+ title: l.mini_title
1166
1166
  }
1167
1167
  )
1168
1168
  ] }) : /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
@@ -1228,7 +1228,7 @@ const Eo = ({ total: t }) => {
1228
1228
  children: /* @__PURE__ */ a(I, { bold: !0, variant: "body1", children: [
1229
1229
  D,
1230
1230
  " ",
1231
- l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1231
+ c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1232
1232
  ] })
1233
1233
  }
1234
1234
  ) }),
@@ -1237,7 +1237,7 @@ const Eo = ({ total: t }) => {
1237
1237
  {
1238
1238
  isOpen: d,
1239
1239
  onClose: () => u(!1),
1240
- title: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1240
+ title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1241
1241
  children: /* @__PURE__ */ e(jn, { transaction: C })
1242
1242
  }
1243
1243
  )
@@ -1347,9 +1347,9 @@ const Eo = ({ total: t }) => {
1347
1347
  m.useEffect(() => {
1348
1348
  o || (s().finally(), i().finally());
1349
1349
  }, [o]);
1350
- const c = m.useMemo(() => {
1351
- const l = r.spend.map((d) => d.transaction), _ = r.debtSpend.map((d) => d.transaction);
1352
- return [...l, ..._];
1350
+ const l = m.useMemo(() => {
1351
+ const c = r.spend.map((d) => d.transaction), _ = r.debtSpend.map((d) => d.transaction);
1352
+ return [...c, ..._];
1353
1353
  }, [r.spend, r.debtSpend]);
1354
1354
  return o ? /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1355
1355
  /* @__PURE__ */ e(
@@ -1359,7 +1359,7 @@ const Eo = ({ total: t }) => {
1359
1359
  title: t.key_indicators_save.drawer_daily_spend
1360
1360
  }
1361
1361
  ),
1362
- /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: c })
1362
+ /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: l })
1363
1363
  ] }) : /* @__PURE__ */ e(te, {});
1364
1364
  }, nr = v(tr), or = () => {
1365
1365
  const [t, o] = m.useState(0), { finstrong: n } = x();
@@ -1401,7 +1401,7 @@ const Eo = ({ total: t }) => {
1401
1401
  /* @__PURE__ */ e(Ue, { chartFor: "savingsOverTime" })
1402
1402
  ] });
1403
1403
  }, rr = v(or), ar = () => {
1404
- const { finstrong: t } = x(), { healthScore: o } = L(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null), s = 183 / 6, i = Math.floor(n), c = Math.round((n - i) * s), l = n / 6 * 100;
1404
+ const { finstrong: t } = x(), { healthScore: o } = L(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null), s = 183 / 6, i = Math.floor(n), l = Math.round((n - i) * s), c = n / 6 * 100;
1405
1405
  return /* @__PURE__ */ e(
1406
1406
  We,
1407
1407
  {
@@ -1444,10 +1444,10 @@ const Eo = ({ total: t }) => {
1444
1444
  status: r,
1445
1445
  statusBarData: [
1446
1446
  {
1447
- percentage: `${l}%`
1447
+ percentage: `${c}%`
1448
1448
  }
1449
1449
  ],
1450
- value: j(t.key_indicators_save.drawer_progress_bar_value, i, c)
1450
+ value: j(t.key_indicators_save.drawer_progress_bar_value, i, l)
1451
1451
  }
1452
1452
  );
1453
1453
  }, ir = v(ar), sr = () => {
@@ -1543,7 +1543,7 @@ const Eo = ({ total: t }) => {
1543
1543
  ),
1544
1544
  o.income.length ? (
1545
1545
  // TODO: Need to add More Transactions functionality
1546
- /* @__PURE__ */ e($e, { transactions: o.income.map((c) => c.transaction) })
1546
+ /* @__PURE__ */ e($e, { transactions: o.income.map((l) => l.transaction) })
1547
1547
  ) : /* @__PURE__ */ e(
1548
1548
  B,
1549
1549
  {
@@ -1580,7 +1580,7 @@ const Eo = ({ total: t }) => {
1580
1580
  $e,
1581
1581
  {
1582
1582
  amountColor: "text.primary",
1583
- transactions: t.debtSpend.map((c) => c.transaction)
1583
+ transactions: t.debtSpend.map((l) => l.transaction)
1584
1584
  }
1585
1585
  )
1586
1586
  ) : /* @__PURE__ */ e(
@@ -1609,25 +1609,25 @@ const Eo = ({ total: t }) => {
1609
1609
  style: r,
1610
1610
  ...s
1611
1611
  }) => {
1612
- const i = E(), c = m.useRef(null), { width: l } = Jn({
1612
+ const i = E(), l = m.useRef(null), { width: c } = Jn({
1613
1613
  width: r.width
1614
1614
  });
1615
1615
  m.useLayoutEffect(() => {
1616
1616
  const h = new ResizeObserver(() => {
1617
1617
  window.requestAnimationFrame(() => {
1618
- if (c.current) {
1619
- const { width: y } = c.current.getBoundingClientRect(), f = y / 2, w = c.current.querySelector("text");
1618
+ if (l.current) {
1619
+ const { width: y } = l.current.getBoundingClientRect(), f = y / 2, w = l.current.querySelector("text");
1620
1620
  w && w.setAttribute("transform", `translate(${f}, -8)`);
1621
1621
  }
1622
1622
  });
1623
1623
  });
1624
- return c.current && h.observe(c.current), () => {
1625
- c.current && h.unobserve(c.current);
1624
+ return l.current && h.observe(l.current), () => {
1625
+ l.current && h.unobserve(l.current);
1626
1626
  };
1627
1627
  }, []);
1628
1628
  const { formattedComparison: _, formattedMain: d } = o[n.index], u = n.type === 0 ? d : _;
1629
1629
  return /* @__PURE__ */ a("g", { children: [
1630
- /* @__PURE__ */ e(at.rect, { ...s, fill: t, ref: c, rx: 2, style: r }),
1630
+ /* @__PURE__ */ e(at.rect, { ...s, fill: t, ref: l, rx: 2, style: r }),
1631
1631
  /* @__PURE__ */ e(
1632
1632
  at.text,
1633
1633
  {
@@ -1635,7 +1635,7 @@ const Eo = ({ total: t }) => {
1635
1635
  fontSize: 9,
1636
1636
  fontWeight: 400,
1637
1637
  textAnchor: "middle",
1638
- transform: l.to((h) => `translate(${h / 2}, -5)`),
1638
+ transform: c.to((h) => `translate(${h / 2}, -5)`),
1639
1639
  x: r.x,
1640
1640
  y: r.y,
1641
1641
  children: u
@@ -1652,8 +1652,8 @@ const Eo = ({ total: t }) => {
1652
1652
  buttonLabel: r,
1653
1653
  onClick: s,
1654
1654
  legendLabelMain: i,
1655
- legendLabelComparison: c,
1656
- totalComparison: l,
1655
+ legendLabelComparison: l,
1656
+ totalComparison: c,
1657
1657
  totalMain: _
1658
1658
  }) => {
1659
1659
  const d = E(), u = qn(d.breakpoints.down("xs")), h = m.useMemo(
@@ -1761,10 +1761,10 @@ const Eo = ({ total: t }) => {
1761
1761
  ),
1762
1762
  /* @__PURE__ */ a(p, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1763
1763
  /* @__PURE__ */ a(I, { variant: "subtitle2", children: [
1764
- c,
1764
+ l,
1765
1765
  " "
1766
1766
  ] }),
1767
- !u && l && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
1767
+ !u && c && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
1768
1768
  ] })
1769
1769
  ] })
1770
1770
  ] }),
@@ -1787,11 +1787,11 @@ const Eo = ({ total: t }) => {
1787
1787
  {
1788
1788
  slots: {
1789
1789
  bar: (g) => {
1790
- const { ownerState: b, style: P, ...F } = g;
1790
+ const { ownerState: b, style: P, ...R } = g;
1791
1791
  return /* @__PURE__ */ e(
1792
1792
  hr,
1793
1793
  {
1794
- ...F,
1794
+ ...R,
1795
1795
  color: b.color,
1796
1796
  data: h,
1797
1797
  series: {
@@ -1852,7 +1852,7 @@ const Eo = ({ total: t }) => {
1852
1852
  }
1853
1853
  );
1854
1854
  }, ur = () => {
1855
- const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = L(), [s, i] = m.useState(0), { finstrong: c } = x();
1855
+ const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = L(), [s, i] = m.useState(0), { finstrong: l } = x();
1856
1856
  return m.useEffect(() => {
1857
1857
  t || (o().finally(), n().finally());
1858
1858
  }, [t]), t ? /* @__PURE__ */ a(G, { children: [
@@ -1860,9 +1860,9 @@ const Eo = ({ total: t }) => {
1860
1860
  /* @__PURE__ */ a(
1861
1861
  Xe,
1862
1862
  {
1863
- "aria-label": c.key_indicators_save.drawer_title,
1863
+ "aria-label": l.key_indicators_save.drawer_title,
1864
1864
  centered: !0,
1865
- onChange: (l, _) => i(_),
1865
+ onChange: (c, _) => i(_),
1866
1866
  selectionFollowsFocus: !0,
1867
1867
  sx: { mb: 0 },
1868
1868
  value: s,
@@ -1873,7 +1873,7 @@ const Eo = ({ total: t }) => {
1873
1873
  {
1874
1874
  "aria-controls": "income-details-tabpanel-0",
1875
1875
  id: "income-details-tab-0",
1876
- label: c.key_indicators_borrow.have_manageable_debt_drawer.income,
1876
+ label: l.key_indicators_borrow.have_manageable_debt_drawer.income,
1877
1877
  sx: { minHeight: 44 }
1878
1878
  }
1879
1879
  ),
@@ -1882,7 +1882,7 @@ const Eo = ({ total: t }) => {
1882
1882
  {
1883
1883
  "aria-controls": "debt-payment-details-tabpanel-1",
1884
1884
  id: "debt-payment-details-tab-1",
1885
- label: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1885
+ label: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1886
1886
  sx: { minHeight: 44 }
1887
1887
  }
1888
1888
  )
@@ -1916,19 +1916,19 @@ const Eo = ({ total: t }) => {
1916
1916
  {
1917
1917
  chartFor: "debt_payment_vs_income",
1918
1918
  data: r,
1919
- legendLabelComparison: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1920
- legendLabelMain: c.key_indicators_borrow.have_manageable_debt_drawer.income,
1921
- title: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1919
+ legendLabelComparison: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1920
+ legendLabelMain: l.key_indicators_borrow.have_manageable_debt_drawer.income,
1921
+ title: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1922
1922
  }
1923
1923
  ),
1924
1924
  /* @__PURE__ */ e(Ue, { chartFor: "debtOverTime" })
1925
1925
  ] }) : /* @__PURE__ */ a(G, { children: [
1926
1926
  /* @__PURE__ */ e(
1927
- Re,
1927
+ Fe,
1928
1928
  {
1929
- header: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1929
+ header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1930
1930
  icon: "multiline_chart",
1931
- subText: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
1931
+ subText: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
1932
1932
  sx: {
1933
1933
  backgroundColor: "background.paper",
1934
1934
  borderRadius: "8px",
@@ -1940,11 +1940,11 @@ const Eo = ({ total: t }) => {
1940
1940
  }
1941
1941
  ),
1942
1942
  /* @__PURE__ */ e(
1943
- Re,
1943
+ Fe,
1944
1944
  {
1945
- header: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
1945
+ header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
1946
1946
  icon: "multiline_chart",
1947
- subText: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
1947
+ subText: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
1948
1948
  sx: {
1949
1949
  backgroundColor: "background.paper",
1950
1950
  borderRadius: "8px",
@@ -1958,7 +1958,7 @@ const Eo = ({ total: t }) => {
1958
1958
  ] })
1959
1959
  ] }) : /* @__PURE__ */ e(te, {});
1960
1960
  }, mr = v(ur), gr = () => {
1961
- const { healthScore: t } = L(), { finstrong: o } = x(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, i = xt(n), c = {
1961
+ const { healthScore: t } = L(), { finstrong: o } = x(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, i = xt(n), l = {
1962
1962
  GOOD: [{ percentage: `${r}%` }],
1963
1963
  FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
1964
1964
  OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
@@ -1992,12 +1992,12 @@ const Eo = ({ total: t }) => {
1992
1992
  ),
1993
1993
  label: o?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
1994
1994
  status: i,
1995
- statusBarData: c,
1995
+ statusBarData: l,
1996
1996
  value: s ? "$0" : W(t.ninety_day_spend, "0,0.00")
1997
1997
  }
1998
1998
  );
1999
1999
  }, yr = v(gr), br = () => {
2000
- const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ke(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = L(), { appDataStore: c } = Rn(), { finstrong: l, goals: _, spending: d } = x(), u = E(), [h, y] = m.useState("");
2000
+ const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ke(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = L(), { appDataStore: l } = Fn(), { finstrong: c, goals: _, spending: d } = x(), u = E(), [h, y] = m.useState("");
2001
2001
  m.useEffect(() => {
2002
2002
  r(
2003
2003
  t,
@@ -2021,24 +2021,24 @@ const Eo = ({ total: t }) => {
2021
2021
  s.length ? /* @__PURE__ */ e(
2022
2022
  $t,
2023
2023
  {
2024
- ...c.appData.client_profile?.allow_trends_widget && {
2025
- buttonLabel: l.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2024
+ ...l.appData.client_profile?.allow_trends_widget && {
2025
+ buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2026
2026
  },
2027
2027
  chartFor: "spending_vs_income",
2028
2028
  data: s,
2029
- legendLabelComparison: l.key_indicators_spend.spend_less_than_you_make_drawer.income,
2030
- legendLabelMain: l.key_indicators_spend.spend_less_than_you_make_drawer.spending,
2029
+ legendLabelComparison: c.key_indicators_spend.spend_less_than_you_make_drawer.income,
2030
+ legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
2031
2031
  onClick: () => i("trends")(),
2032
- title: l.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2032
+ title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2033
2033
  totalComparison: W(D, "0,0.00"),
2034
2034
  totalMain: W(S, "0,0.00")
2035
2035
  }
2036
2036
  ) : /* @__PURE__ */ e(
2037
- Re,
2037
+ Fe,
2038
2038
  {
2039
- header: l.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
2039
+ header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
2040
2040
  icon: "multiline_chart",
2041
- subText: l.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_description,
2041
+ subText: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_description,
2042
2042
  sx: {
2043
2043
  backgroundColor: "background.paper",
2044
2044
  borderRadius: "8px",
@@ -2073,8 +2073,8 @@ const Eo = ({ total: t }) => {
2073
2073
  pb: 8
2074
2074
  },
2075
2075
  children: [
2076
- /* @__PURE__ */ e(K, { children: l.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2077
- c.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2076
+ /* @__PURE__ */ e(K, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2077
+ l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2078
2078
  B,
2079
2079
  {
2080
2080
  endIcon: /* @__PURE__ */ e(J, {}),
@@ -2085,7 +2085,7 @@ const Eo = ({ total: t }) => {
2085
2085
  height: 24
2086
2086
  },
2087
2087
  variant: "text",
2088
- children: l.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2088
+ children: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2089
2089
  }
2090
2090
  )
2091
2091
  ]
@@ -2113,11 +2113,11 @@ const Eo = ({ total: t }) => {
2113
2113
  ]
2114
2114
  }
2115
2115
  ) : /* @__PURE__ */ e(
2116
- Re,
2116
+ Fe,
2117
2117
  {
2118
- header: l.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
2118
+ header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
2119
2119
  icon: "donut_small",
2120
- subText: l.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_description,
2120
+ subText: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_description,
2121
2121
  sx: {
2122
2122
  backgroundColor: "background.paper",
2123
2123
  borderRadius: "8px",
@@ -2214,16 +2214,16 @@ const Eo = ({ total: t }) => {
2214
2214
  description: n,
2215
2215
  cardState: r = "MISSING"
2216
2216
  }) => {
2217
- const { finstrong: s } = x(), [i, c] = m.useState(!1), l = (_) => {
2218
- (_.key === "Enter" || _.key === " ") && (_.preventDefault(), c(!0));
2217
+ const { finstrong: s } = x(), [i, l] = m.useState(!1), c = (_) => {
2218
+ (_.key === "Enter" || _.key === " ") && (_.preventDefault(), l(!0));
2219
2219
  };
2220
2220
  return /* @__PURE__ */ a(G, { children: [
2221
2221
  /* @__PURE__ */ a(
2222
2222
  p,
2223
2223
  {
2224
2224
  "aria-label": `${s.key_indicators_open} ${o}`,
2225
- onClick: () => c(!0),
2226
- onKeyDown: l,
2225
+ onClick: () => l(!0),
2226
+ onKeyDown: c,
2227
2227
  role: "button",
2228
2228
  sx: {
2229
2229
  alignItems: "center",
@@ -2254,29 +2254,29 @@ const Eo = ({ total: t }) => {
2254
2254
  {
2255
2255
  drawerFor: t,
2256
2256
  isOpen: i,
2257
- onClose: () => c(!1)
2257
+ onClose: () => l(!1)
2258
2258
  }
2259
2259
  )
2260
2260
  ] });
2261
2261
  }, Cr = () => {
2262
- const { finstrong: t } = x(), { key_indicators_spend: o } = t, { healthScore: n } = L(), r = (c) => {
2263
- const l = xt(c), _ = {
2262
+ const { finstrong: t } = x(), { key_indicators_spend: o } = t, { healthScore: n } = L(), r = (l) => {
2263
+ const c = xt(l), _ = {
2264
2264
  GOOD: o.ratio_good_description,
2265
2265
  FAIR: o.ratio_fair_description,
2266
2266
  OFF_TRACK: o.ratio_off_track_description,
2267
2267
  MISSING: o.ratio_missing_description
2268
- }, d = l === "MISSING" ? _[l] : j(_[l], c);
2268
+ }, d = c === "MISSING" ? _[c] : j(_[c], l);
2269
2269
  return {
2270
- cardState: l,
2270
+ cardState: c,
2271
2271
  description: d,
2272
2272
  title: o.ratio_card_title
2273
2273
  };
2274
2274
  }, { spendToIncomeRatio: s, spendFeeCount: i } = m.useMemo(() => {
2275
- const c = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, l = r(c), _ = An(
2275
+ const l = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, c = r(l), _ = An(
2276
2276
  n.spending_fee_transaction_count,
2277
2277
  o
2278
2278
  );
2279
- return { spendToIncomeRatio: l, spendFeeCount: _ };
2279
+ return { spendToIncomeRatio: c, spendFeeCount: _ };
2280
2280
  }, [
2281
2281
  n.spend_to_income_ratio,
2282
2282
  n.spending_fee_transaction_count,
@@ -2304,36 +2304,36 @@ const Eo = ({ total: t }) => {
2304
2304
  )
2305
2305
  ] });
2306
2306
  }, vr = v(Cr), wr = () => {
2307
- const { healthScore: t } = L(), { finstrong: o } = x(), { key_indicators_save: n } = o, r = (l) => {
2308
- const _ = bt(l), d = {
2307
+ const { healthScore: t } = L(), { finstrong: o } = x(), { key_indicators_save: n } = o, r = (c) => {
2308
+ const _ = bt(c), d = {
2309
2309
  GOOD: n.days_of_cash_good_description,
2310
2310
  FAIR: n.days_of_cash_fair_description,
2311
2311
  OFF_TRACK: n.days_of_cash_off_track_description,
2312
2312
  MISSING: n.days_of_cash_missing_description
2313
- }, u = _ === "MISSING" ? d[_] : j(d[_], l);
2313
+ }, u = _ === "MISSING" ? d[_] : j(d[_], c);
2314
2314
  return {
2315
2315
  cardState: _,
2316
2316
  description: u,
2317
2317
  title: n.days_of_cash_title
2318
2318
  };
2319
- }, s = (l) => {
2320
- const _ = yt(l), d = {
2319
+ }, s = (c) => {
2320
+ const _ = yt(c), d = {
2321
2321
  GOOD: n.emergency_savings_good_description,
2322
2322
  FAIR: n.emergency_savings_fair_description,
2323
2323
  OFF_TRACK: n.emergency_savings_off_track_description,
2324
2324
  MISSING: n.emergency_savings_missing_description
2325
2325
  };
2326
2326
  let u;
2327
- return _ === "FAIR" && l !== null ? u = j(
2327
+ return _ === "FAIR" && c !== null ? u = j(
2328
2328
  d[_],
2329
- W(l, "0,0.00")
2329
+ W(c, "0,0.00")
2330
2330
  ) : u = d[_], {
2331
2331
  cardState: _,
2332
2332
  description: u,
2333
2333
  title: n.emergency_savings_title
2334
2334
  };
2335
- }, { daysOfCashOnHand: i, emergencySavings: c } = m.useMemo(() => {
2336
- const l = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, _ = r(l), d = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = s(d);
2335
+ }, { daysOfCashOnHand: i, emergencySavings: l } = m.useMemo(() => {
2336
+ const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, _ = r(c), d = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = s(d);
2337
2337
  return { daysOfCashOnHand: _, emergencySavings: u };
2338
2338
  }, [
2339
2339
  t.months_of_cash_on_hand,
@@ -2354,10 +2354,10 @@ const Eo = ({ total: t }) => {
2354
2354
  /* @__PURE__ */ e(
2355
2355
  xe,
2356
2356
  {
2357
- cardState: c.cardState,
2358
- description: c.description,
2357
+ cardState: l.cardState,
2358
+ description: l.description,
2359
2359
  drawerFor: de.MaintainEmergencySavings,
2360
- title: c.title
2360
+ title: l.title
2361
2361
  }
2362
2362
  )
2363
2363
  ] });
@@ -2386,7 +2386,7 @@ const Eo = ({ total: t }) => {
2386
2386
  description: h,
2387
2387
  title: n.credit_score_title
2388
2388
  };
2389
- }, { manageDebtStatus: c, creditScoreStatus: l } = m.useMemo(() => {
2389
+ }, { manageDebtStatus: l, creditScoreStatus: c } = m.useMemo(() => {
2390
2390
  const _ = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, d = s(_), u = i(r.credit_score || null);
2391
2391
  return {
2392
2392
  manageDebtStatus: d,
@@ -2397,19 +2397,19 @@ const Eo = ({ total: t }) => {
2397
2397
  /* @__PURE__ */ e(
2398
2398
  xe,
2399
2399
  {
2400
- cardState: c.cardState,
2401
- description: c.description,
2400
+ cardState: l.cardState,
2401
+ description: l.description,
2402
2402
  drawerFor: de.HaveManageableDebt,
2403
- title: c.title
2403
+ title: l.title
2404
2404
  }
2405
2405
  ),
2406
2406
  /* @__PURE__ */ e(
2407
2407
  xe,
2408
2408
  {
2409
- cardState: l.cardState,
2410
- description: l.description,
2409
+ cardState: c.cardState,
2410
+ description: c.description,
2411
2411
  drawerFor: de.HaveAGoodCreditScore,
2412
- title: l.title
2412
+ title: c.title
2413
2413
  }
2414
2414
  )
2415
2415
  ] });
@@ -2498,15 +2498,15 @@ const Eo = ({ total: t }) => {
2498
2498
  }
2499
2499
  ) })
2500
2500
  ] }) : /* @__PURE__ */ e(te, {});
2501
- }, Or = v(Tr), Fr = ({
2501
+ }, Or = v(Tr), Rr = ({
2502
2502
  firstDay: t,
2503
2503
  frequency: o,
2504
2504
  secondDay: n,
2505
2505
  incomeTransactions: r,
2506
2506
  setCurrentStep: s,
2507
2507
  setFirstDay: i,
2508
- setFrequency: c,
2509
- setSecondDay: l,
2508
+ setFrequency: l,
2509
+ setSecondDay: c,
2510
2510
  transaction: _
2511
2511
  }) => {
2512
2512
  const { finstrong: d } = x();
@@ -2529,8 +2529,8 @@ const Eo = ({ total: t }) => {
2529
2529
  firstDay: t,
2530
2530
  frequency: o,
2531
2531
  onFirstDayChange: i,
2532
- onFrequencyChange: c,
2533
- onSecondDayChange: l,
2532
+ onFrequencyChange: l,
2533
+ onSecondDayChange: c,
2534
2534
  secondDay: n,
2535
2535
  transaction: _
2536
2536
  }
@@ -2546,7 +2546,7 @@ const Eo = ({ total: t }) => {
2546
2546
  }
2547
2547
  ) })
2548
2548
  ] });
2549
- }, Rr = v(Fr), Lr = ({ selectedDate: t, setSelectedDate: o }) => {
2549
+ }, Fr = v(Rr), Lr = ({ selectedDate: t, setSelectedDate: o }) => {
2550
2550
  const { finstrong: n } = x(), r = E(), s = (i) => {
2551
2551
  o(Math.floor(new Date(i).getTime() / 1e3));
2552
2552
  };
@@ -2583,7 +2583,7 @@ const Eo = ({ total: t }) => {
2583
2583
  }, Pr = v(Lr), Br = ({ creditScore: t, setCreditScore: o }) => {
2584
2584
  const { finstrong: n } = x(), r = !isNaN(t);
2585
2585
  return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(
2586
- Fe,
2586
+ Re,
2587
2587
  {
2588
2588
  error: !r,
2589
2589
  fullWidth: !0,
@@ -2630,11 +2630,11 @@ const Eo = ({ total: t }) => {
2630
2630
  step: O.ConnectAccounts,
2631
2631
  type: "main"
2632
2632
  }, zr = ({ isOpen: t, onClose: o }) => {
2633
- const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = L(), { finstrong: s } = x(), { setSelectedAccounts: i } = q(), { addRepeatingTransaction: c, setDateRange: l } = Ve(), { filter: _, setFilter: d, transactions: u } = Ln(), { user: h, userProfile: y, updateUser: f, updateUserProfile: w } = ee(), [S, D] = m.useState(h.credit_score || 0), [C, g] = m.useState(
2633
+ const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = L(), { finstrong: s } = x(), { setSelectedAccounts: i } = q(), { addRepeatingTransaction: l, setDateRange: c } = Ve(), { filter: _, setFilter: d, transactions: u } = Ln(), { user: h, userProfile: y, updateUser: f, updateUserProfile: w } = ee(), [S, D] = m.useState(h.credit_score || 0), [C, g] = m.useState(
2634
2634
  ct
2635
- ), [b, P] = m.useState(1), [F, U] = m.useState(Mt.EveryMonth), [T, $] = m.useState([]), [z, pe] = m.useState(!1), [ve, Q] = m.useState(!1), [Y, _e] = m.useState(h.birthday), [H, he] = m.useState(15), [N, ae] = m.useState("");
2635
+ ), [b, P] = m.useState(1), [R, U] = m.useState(Mt.EveryMonth), [T, $] = m.useState([]), [z, pe] = m.useState(!1), [ve, Q] = m.useState(!1), [Y, _e] = m.useState(h.birthday), [H, he] = m.useState(15), [N, ae] = m.useState("");
2636
2636
  m.useEffect(() => {
2637
- l({ start: At(it()), end: Tt(it()) });
2637
+ c({ start: At(it()), end: Tt(it()) });
2638
2638
  }, []), m.useEffect(() => {
2639
2639
  d({
2640
2640
  accounts: n.map((A) => A.guid),
@@ -2655,12 +2655,12 @@ const Eo = ({ total: t }) => {
2655
2655
  [O.CreditScore]: !!h.credit_score || !!S
2656
2656
  })[C.step], [S, C, Y, N, h]), X = n.length > 0, Gt = m.useMemo(() => {
2657
2657
  const { step: A } = C;
2658
- let R = 0;
2659
- return A >= O.MonthlyIncome && X && R++, A >= O.Birthday && T.length && R++, A >= O.CreditScore && (h.birthday || h.credit_score) && R++, R;
2658
+ let F = 0;
2659
+ return A >= O.MonthlyIncome && X && F++, A >= O.Birthday && T.length && F++, A >= O.CreditScore && (h.birthday || h.credit_score) && F++, F;
2660
2660
  }, [C.step, X, T.length, h.birthday, h.credit_score]), Et = (A) => {
2661
2661
  d({
2662
2662
  ..._,
2663
- custom: (R) => A ? co(R, A) : st(R)
2663
+ custom: (F) => A ? co(F, A) : st(F)
2664
2664
  });
2665
2665
  }, Ht = {
2666
2666
  [O.ConnectAccounts]: {
@@ -2671,17 +2671,17 @@ const Eo = ({ total: t }) => {
2671
2671
  },
2672
2672
  [O.MonthlyIncome]: {
2673
2673
  detail: /* @__PURE__ */ e(
2674
- Rr,
2674
+ Fr,
2675
2675
  {
2676
2676
  firstDay: b,
2677
- frequency: F,
2677
+ frequency: R,
2678
2678
  incomeTransactions: T,
2679
2679
  secondDay: H,
2680
2680
  setCurrentStep: (A) => {
2681
- g(A), $((R) => {
2682
- if (R.some((ie) => ie.guid === N)) return R.filter((ie) => ie.guid !== N);
2681
+ g(A), $((F) => {
2682
+ if (F.some((ie) => ie.guid === N)) return F.filter((ie) => ie.guid !== N);
2683
2683
  const Ae = u.find((ie) => ie.guid === N);
2684
- return Ae ? [...R, { ...Ae, firstDay: b, frequency: F, secondDay: H }] : R;
2684
+ return Ae ? [...F, { ...Ae, firstDay: b, frequency: R, secondDay: H }] : F;
2685
2685
  });
2686
2686
  },
2687
2687
  setFirstDay: P,
@@ -2727,7 +2727,7 @@ const Eo = ({ total: t }) => {
2727
2727
  }
2728
2728
  g({ step: C.step + 1, type: "main" });
2729
2729
  }, jt = () => {
2730
- const { step: A } = C, R = A + 1;
2730
+ const { step: A } = C, F = A + 1;
2731
2731
  switch (A) {
2732
2732
  case O.Birthday:
2733
2733
  Y && Y !== h.birthday && f({ ...h, birthday: Y });
@@ -2738,7 +2738,7 @@ const Eo = ({ total: t }) => {
2738
2738
  case O.MonthlyIncome:
2739
2739
  N && T.findIndex(({ guid: ge }) => ge === N) === -1 && $((ge) => [
2740
2740
  ...ge,
2741
- { ...De, firstDay: b, frequency: F, secondDay: H }
2741
+ { ...De, firstDay: b, frequency: R, secondDay: H }
2742
2742
  ]);
2743
2743
  break;
2744
2744
  case O.ConnectAccounts:
@@ -2748,10 +2748,10 @@ const Eo = ({ total: t }) => {
2748
2748
  }
2749
2749
  break;
2750
2750
  }
2751
- R in O && g({ step: R, type: "main" });
2751
+ F in O && g({ step: F, type: "main" });
2752
2752
  }, Kt = () => {
2753
- const { step: A, type: R } = C;
2754
- if (R === "detail") {
2753
+ const { step: A, type: F } = C;
2754
+ if (F === "detail") {
2755
2755
  g({ step: A, type: "main" });
2756
2756
  return;
2757
2757
  }
@@ -2761,7 +2761,7 @@ const Eo = ({ total: t }) => {
2761
2761
  }
2762
2762
  A > O.ConnectAccounts && g({ step: A - 1, type: "main" });
2763
2763
  }, Vt = async (A) => {
2764
- for (const R of A) {
2764
+ for (const F of A) {
2765
2765
  const {
2766
2766
  account_guid: ge,
2767
2767
  amount: Ae,
@@ -2774,7 +2774,7 @@ const Eo = ({ total: t }) => {
2774
2774
  merchant_guid: Jt,
2775
2775
  payee: en,
2776
2776
  transaction_type: tn
2777
- } = R, nn = Hn(Je, ro(ie)), on = {
2777
+ } = F, nn = Hn(Je, ro(ie)), on = {
2778
2778
  account_guid: ge,
2779
2779
  amount: Ae,
2780
2780
  created_by: 0,
@@ -2788,7 +2788,7 @@ const Eo = ({ total: t }) => {
2788
2788
  transaction_type: tn,
2789
2789
  user_guid: h.guid
2790
2790
  };
2791
- await c(on, R);
2791
+ await l(on, F);
2792
2792
  }
2793
2793
  }, me = Ht[C.step], Ie = C.step === O.ConnectAccounts, Yt = {
2794
2794
  fullWidth: !0,
@@ -2872,8 +2872,8 @@ const Eo = ({ total: t }) => {
2872
2872
  /* @__PURE__ */ e(Gr, { isOpen: o, onClose: () => n(!1) })
2873
2873
  ] });
2874
2874
  }, Hr = ({ isOpen: t, onClose: o }) => {
2875
- const { finstrong: n } = x(), r = E(), { updateUser: s, user: i } = ee(), [c, l] = m.useState(i.birthday), _ = (u) => {
2876
- l(Math.floor(new Date(u).getTime() / 1e3));
2875
+ const { finstrong: n } = x(), r = E(), { updateUser: s, user: i } = ee(), [l, c] = m.useState(i.birthday), _ = (u) => {
2876
+ c(Math.floor(new Date(u).getTime() / 1e3));
2877
2877
  };
2878
2878
  return /* @__PURE__ */ e(
2879
2879
  oe,
@@ -2881,7 +2881,7 @@ const Eo = ({ total: t }) => {
2881
2881
  isOpen: t,
2882
2882
  onClose: o,
2883
2883
  onPrimaryAction: () => {
2884
- !c || c === i.birthday || (s({ ...i, birthday: c }), o());
2884
+ !l || l === i.birthday || (s({ ...i, birthday: l }), o());
2885
2885
  },
2886
2886
  onSecondaryAction: o,
2887
2887
  title: n.date_of_birth,
@@ -2915,7 +2915,7 @@ const Eo = ({ total: t }) => {
2915
2915
  "&:hover": { bgcolor: fe(r.palette.primary.light, 0.1) }
2916
2916
  }
2917
2917
  },
2918
- value: c ? new Date(c * 1e3) : /* @__PURE__ */ new Date()
2918
+ value: l ? new Date(l * 1e3) : /* @__PURE__ */ new Date()
2919
2919
  }
2920
2920
  ) }) })
2921
2921
  }
@@ -2925,7 +2925,7 @@ const Eo = ({ total: t }) => {
2925
2925
  accounts: r,
2926
2926
  common: s,
2927
2927
  finstrong: i
2928
- } = x(), { repeatingTransactions: c } = Ve(), { user: l } = ee(), _ = c.reduce((f, w) => {
2928
+ } = x(), { repeatingTransactions: l } = Ve(), { user: c } = ee(), _ = l.reduce((f, w) => {
2929
2929
  const { repeating_transaction_type: S, transactions: D, recurrence_type: C, amount: g } = w;
2930
2930
  return S === Dt.Income && (D.length > 0 || C === Mt.EveryYear) ? f + g : f;
2931
2931
  }, 0), [d, u] = m.useState(null), y = [
@@ -2943,7 +2943,7 @@ const Eo = ({ total: t }) => {
2943
2943
  icon: /* @__PURE__ */ e(mn, {}),
2944
2944
  key: ne.DateOfBirth,
2945
2945
  label: i.date_of_birth,
2946
- value: l.birthday
2946
+ value: c.birthday
2947
2947
  },
2948
2948
  {
2949
2949
  dynamicCopy: i.add_profile_item,
@@ -2951,7 +2951,7 @@ const Eo = ({ total: t }) => {
2951
2951
  icon: /* @__PURE__ */ e(He, {}),
2952
2952
  key: ne.CreditScore,
2953
2953
  label: i.credit_score,
2954
- value: l.credit_score
2954
+ value: c.credit_score
2955
2955
  },
2956
2956
  {
2957
2957
  fallbackLabel: i.connect_your_accounts,
@@ -3026,8 +3026,8 @@ const Eo = ({ total: t }) => {
3026
3026
  health_score_point_difference: r,
3027
3027
  newer_credit_score: s,
3028
3028
  older_credit_score: i,
3029
- older_spend_to_income_ratio: c,
3030
- newer_spend_to_income_ratio: l,
3029
+ older_spend_to_income_ratio: l,
3030
+ newer_spend_to_income_ratio: c,
3031
3031
  older_health_score: _,
3032
3032
  newer_health_score: d,
3033
3033
  newer_score_calculated_at: u
@@ -3106,8 +3106,8 @@ const Eo = ({ total: t }) => {
3106
3106
  {
3107
3107
  content: j(
3108
3108
  n.spend_to_income_description,
3109
- Oe(c),
3110
- Oe(l)
3109
+ Oe(l),
3110
+ Oe(c)
3111
3111
  )
3112
3112
  }
3113
3113
  ),
@@ -3127,9 +3127,9 @@ const Eo = ({ total: t }) => {
3127
3127
  ) })
3128
3128
  ] });
3129
3129
  }, Yr = v(Vr), Xr = ({ isOpen: t, onClose: o }) => {
3130
- const n = E(), { finstrong: r } = x(), { isCopyLoaded: s, isInitialized: i } = q(), { augmentedChartData: c, healthScore: l, healthScoreChangeReports: _, peerScore: d } = L();
3130
+ const n = E(), { finstrong: r } = x(), { isCopyLoaded: s, isInitialized: i } = q(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: _, peerScore: d } = L();
3131
3131
  if (!s || !i) return /* @__PURE__ */ e(te, {});
3132
- const u = Ne(l.health_score || 0, r), h = _.slice().reverse();
3132
+ const u = Ne(c.health_score || 0, r), h = _.slice().reverse();
3133
3133
  return /* @__PURE__ */ e(
3134
3134
  Pt,
3135
3135
  {
@@ -3140,7 +3140,7 @@ const Eo = ({ total: t }) => {
3140
3140
  baseline: "min",
3141
3141
  colors: [n.palette.primary.main],
3142
3142
  curveType: "natural",
3143
- datasets: [c],
3143
+ datasets: [l],
3144
3144
  height: 160,
3145
3145
  isGraphClippingXAxis: !0,
3146
3146
  labels: [r.key_indicators_label],
@@ -3169,10 +3169,10 @@ const Eo = ({ total: t }) => {
3169
3169
  },
3170
3170
  children: /* @__PURE__ */ a(p, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
3171
3171
  /* @__PURE__ */ e(
3172
- Rt,
3172
+ Ft,
3173
3173
  {
3174
3174
  arcRadius: 24,
3175
- healthScore: l?.health_score,
3175
+ healthScore: c?.health_score,
3176
3176
  margin: { top: 9 },
3177
3177
  size: "SM"
3178
3178
  }
@@ -3328,8 +3328,8 @@ const Eo = ({ total: t }) => {
3328
3328
  ] })
3329
3329
  ] }) }) : /* @__PURE__ */ e(te, {});
3330
3330
  }, Zr = v(Qr), Jr = v(() => {
3331
- const [t, o] = m.useState(!1), n = E(), [r, { width: s }] = vt(), { finstrong: i } = x(), { isCopyLoaded: c, isInitialized: l } = q(), { healthScore: _, healthScoreChange: d } = L(), u = n.palette.mode === "dark", h = Ne(_?.health_score, i);
3332
- return !c || !l ? /* @__PURE__ */ e(te, {}) : /* @__PURE__ */ a(V, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3331
+ const [t, o] = m.useState(!1), n = E(), [r, { width: s }] = vt(), { finstrong: i } = x(), { isCopyLoaded: l, isInitialized: c } = q(), { healthScore: _, healthScoreChange: d } = L(), u = n.palette.mode === "dark", h = Ne(_?.health_score, i);
3332
+ return !l || !c ? /* @__PURE__ */ e(te, {}) : /* @__PURE__ */ a(V, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3333
3333
  /* @__PURE__ */ e(
3334
3334
  Mo,
3335
3335
  {
@@ -3358,7 +3358,7 @@ const Eo = ({ total: t }) => {
3358
3358
  }
3359
3359
  ),
3360
3360
  /* @__PURE__ */ e(p, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
3361
- Rt,
3361
+ Ft,
3362
3362
  {
3363
3363
  arcRadius: s <= 323 ? 72.5 : 154,
3364
3364
  footerCenterContent: d,
@@ -3428,7 +3428,7 @@ const Eo = ({ total: t }) => {
3428
3428
  )
3429
3429
  ] });
3430
3430
  }), ea = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
3431
- const { visibleAccounts: r } = Se(), { dateRange: s, isDataLoaded: i, loadBudgetData: c, setTheme: l } = Pn(), { reloadCategoryTotals: _ } = Ke(), d = L(), {
3431
+ const { visibleAccounts: r } = Se(), { dateRange: s, isDataLoaded: i, loadBudgetData: l, setTheme: c } = Pn(), { reloadCategoryTotals: _ } = Ke(), d = L(), {
3432
3432
  augmentedChartData: u,
3433
3433
  calculateHealthScore: h,
3434
3434
  healthScore: y,
@@ -3436,12 +3436,12 @@ const Eo = ({ total: t }) => {
3436
3436
  loadMonthlySummaries: w,
3437
3437
  loadPeerScore: S,
3438
3438
  peerScore: D
3439
- } = d, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: P } = q(), { loadRepeatingTransactions: F } = Ve(), { isMobile: U } = qe(), T = E(), { userProfile: $ } = ee(), [z, pe] = m.useState(!1), [ve, Q] = m.useState(!1), [Y, _e] = m.useState(!1), [H, he] = m.useState(!1);
3439
+ } = d, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: P } = q(), { loadRepeatingTransactions: R } = Ve(), { isMobile: U } = qe(), T = E(), { userProfile: $ } = ee(), [z, pe] = m.useState(!1), [ve, Q] = m.useState(!1), [Y, _e] = m.useState(!1), [H, he] = m.useState(!1);
3440
3440
  if (Do({
3441
3441
  widgetName: "FinstrongWidget",
3442
3442
  isLoaded: z
3443
3443
  }), m.useEffect(() => {
3444
- l(T);
3444
+ c(T);
3445
3445
  }, []), m.useEffect(() => {
3446
3446
  n && (d.handleFinstrongWidgetPrimaryCtaClick = n);
3447
3447
  }, [n, d]), m.useEffect(() => {
@@ -3449,7 +3449,7 @@ const Eo = ({ total: t }) => {
3449
3449
  }, [P]), m.useEffect(() => {
3450
3450
  P && (_(r, s.start, s.end).finally(() => {
3451
3451
  pe(!0);
3452
- }), i || (c(), F().finally()));
3452
+ }), i || (l(), R().finally()));
3453
3453
  }, [s, i, P, r]), !b || !P || !z) return /* @__PURE__ */ e(te, {});
3454
3454
  const N = () => Q(!0), ae = Math.round(D?.average_health_score?.average_health_score || 0);
3455
3455
  return /* @__PURE__ */ a(
@@ -3562,8 +3562,8 @@ const Eo = ({ total: t }) => {
3562
3562
  }, bi = v(ea);
3563
3563
  export {
3564
3564
  To as CreditScoreGraph,
3565
- Ft as DialScoreCard,
3566
- Rt as FinancialStrengthGraph,
3565
+ Rt as DialScoreCard,
3566
+ Ft as FinancialStrengthGraph,
3567
3567
  Si as FinstrongApi,
3568
3568
  Ci as FinstrongStore,
3569
3569
  bi as FinstrongWidget