@mx-cartographer/experiences 8.2.3 → 8.2.4-alpha-ram1-bug-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.
Files changed (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
  3. package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
  4. package/dist/{AccountListItem-BYyeeCf6.mjs → AccountListItem-BDXHs4tV.mjs} +7 -8
  5. package/dist/{CategorySelectorDrawer-Cu1ohxeM.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +71 -68
  6. package/dist/{ConnectCard-Dix8BoV_.mjs → ConnectCard-CCep7Zqe.mjs} +9 -9
  7. package/dist/{ConnectDrawer-DgfsTpyW.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +2 -2
  8. package/dist/{ConnectionsDrawer-D7IXAza2.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
  9. package/dist/{CurrencyDialog-d4dL7vA5.mjs → CurrencyDialog-DumQCTPO.mjs} +18 -16
  10. package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
  11. package/dist/{Dialog-iLlBR8TG.mjs → Dialog-CwWc0AbH.mjs} +11 -11
  12. package/dist/{Drawer-XPaLYjiO.mjs → Drawer-BXqqBMxg.mjs} +26 -28
  13. package/dist/{EmbeddedCard-BNl3quCs.mjs → EmbeddedCard-DPwJjqMH.mjs} +37 -37
  14. package/dist/{EmptyState-DHAkGsjk.mjs → EmptyState-CJUDc3kD.mjs} +17 -17
  15. package/dist/{ExportCsvAction-hDprC41l.mjs → ExportCsvAction-Bw02ZJEj.mjs} +2 -2
  16. package/dist/{GlobalAccountFilter-DrhtwPqh.mjs → GlobalAccountFilter-7Cg2-9A5.mjs} +25 -25
  17. package/dist/{Help-BSQm9o29.mjs → Help-DJ8PrVHX.mjs} +56 -73
  18. package/dist/{ListItemAction-DGjHxNDJ.mjs → ListItemAction-CwspSmQi.mjs} +22 -22
  19. package/dist/{ManageIncome-DwylSiWs.mjs → ManageIncome-B1JfqslT.mjs} +6 -6
  20. package/dist/{NotificationSettings-CCg-Tml2.mjs → NotificationSettings-6p-h5phZ.mjs} +48 -48
  21. package/dist/{OriginalBalanceAction-CvDx0K6k.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +2 -2
  22. package/dist/{RecurringSettings-CPXLW6AR.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
  23. package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-CC9F_Ezk.mjs} +1 -1
  24. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  25. package/dist/Select-BFt-HD-L.mjs +55 -0
  26. package/dist/{SelectionBox-Bx2a5rh4.mjs → SelectionBox-B4xELRgp.mjs} +1 -1
  27. package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
  28. package/dist/{SpendingLegend-BmkEr9Nh.mjs → SpendingLegend-5Ct_FZ8o.mjs} +1 -1
  29. package/dist/{ToggleListItem-BLu_fWA2.mjs → ToggleListItem-Dl1lXNwj.mjs} +29 -28
  30. package/dist/{TransactionDetails-CbBSxdOi.mjs → TransactionDetails-C3dlAzYf.mjs} +386 -393
  31. package/dist/{ViewMoreMicroCard-D_LoKlJU.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +526 -518
  32. package/dist/{WidgetContainer-CYcmwsSu.mjs → WidgetContainer-DNuz_s7W.mjs} +5 -5
  33. package/dist/accounts/index.es.js +199 -194
  34. package/dist/analytics/index.es.js +1 -1
  35. package/dist/budgets/index.es.js +183 -184
  36. package/dist/cashflow/index.es.js +70 -80
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  39. package/dist/common/components/WidgetContainer.d.ts +1 -1
  40. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
  41. package/dist/common/hooks/usePrevious.d.ts +1 -1
  42. package/dist/common/index.es.js +206 -194
  43. package/dist/common/utils/Theme.d.ts +6 -5
  44. package/dist/common/utils/index.d.ts +1 -1
  45. package/dist/dashboard/index.es.js +47 -47
  46. package/dist/debts/index.es.js +140 -140
  47. package/dist/finstrong/index.es.js +40 -32
  48. package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
  49. package/dist/goals/index.es.js +154 -165
  50. package/dist/help/index.es.js +2 -2
  51. package/dist/insights/components/insights/UserFeedback/Types.d.ts +1 -1
  52. package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +3 -3
  53. package/dist/insights/hooks/useContainerDimensions.d.ts +1 -1
  54. package/dist/insights/index.es.js +677 -687
  55. package/dist/insights/themes/Typography.d.ts +0 -2
  56. package/dist/investments/index.es.js +205 -207
  57. package/dist/merchants/index.es.js +1 -1
  58. package/dist/microinsights/cards/InsightCard.d.ts +2 -2
  59. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -5
  60. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -5
  61. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -5
  62. package/dist/microinsights/carousel/BeatList.d.ts +2 -2
  63. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
  64. package/dist/microinsights/index.es.js +1 -1
  65. package/dist/microinsights/interfaces.d.ts +11 -5
  66. package/dist/networth/index.es.js +85 -87
  67. package/dist/notifications/index.es.js +7 -8
  68. package/dist/recurringtransactions/index.es.js +53 -53
  69. package/dist/settings/index.es.js +111 -111
  70. package/dist/spending/index.es.js +7 -7
  71. package/dist/transactions/components/shared/TransactionList.d.ts +2 -2
  72. package/dist/transactions/index.es.js +138 -140
  73. package/dist/trends/index.es.js +293 -292
  74. package/dist/{useScreenSize-CeFhWTt_.mjs → useScreenSize-mWpmnh5w.mjs} +1 -1
  75. package/package.json +29 -23
  76. package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
  77. package/dist/Select-BZRUpOib.mjs +0 -51
@@ -2,17 +2,17 @@ import { jsx as e, jsxs as l, Fragment as R } from "react/jsx-runtime";
2
2
  import f from "react";
3
3
  import { observer as C } from "mobx-react-lite";
4
4
  import y from "@mui/material/Stack";
5
- import { useTheme as j, Card as ge, Stack as h, Box as W } from "@mui/material";
5
+ import { useTheme as j, Card as ge, Stack as u, Box as W } from "@mui/material";
6
6
  import { Text as i, P as xe, H3 as Be, InstitutionLogo as Pe, Icon as ne } from "@mxenabled/mxui";
7
7
  import { intervalToDuration as Re, formatDuration as Le } from "date-fns";
8
8
  import { s as Fe, D as F, t as $e, b as Oe } from "../DebtUtils-DD3186U-.mjs";
9
9
  import { f as I, a as We } from "../NumberFormatting--XMeeBfr.mjs";
10
10
  import { f as J, D as Q } from "../DateFormats-HudZ3Bjs.mjs";
11
11
  import { G as Ge, q as ee, u as w, k as V, g as k, d as te, a as He, b as ze } from "../hooks-BaO_gOI6.mjs";
12
- import { u as ae } from "../useScreenSize-CeFhWTt_.mjs";
12
+ import { u as ae } from "../useScreenSize-mWpmnh5w.mjs";
13
13
  import { b as T } from "../Localization-DnoVyBNK.mjs";
14
- import { D as ie } from "../Drawer-XPaLYjiO.mjs";
15
- import { A as je, u as Ve } from "../AccountDetailsHeader-CfdnKyJK.mjs";
14
+ import { D as ie } from "../Drawer-BXqqBMxg.mjs";
15
+ import { A as je, u as Ve } from "../AccountDetailsHeader-DIysk_4w.mjs";
16
16
  import Ye from "@mui/material/Card";
17
17
  import Ke from "@mui/material/CardContent";
18
18
  import Ue from "@mui/material/CardHeader";
@@ -20,15 +20,15 @@ import le from "@mui/material/Box";
20
20
  import { useTheme as qe } from "@mui/material/styles";
21
21
  import { LineChart as Xe } from "@mui/x-charts/LineChart";
22
22
  import { A as S } from "../Analytics-CzGzz_sE.mjs";
23
- import me from "@mui/material/Tab";
23
+ import be from "@mui/material/Tab";
24
24
  import Ze from "@mui/material/Tabs";
25
25
  import we from "@mui/material/List";
26
26
  import G from "@mui/material/Divider";
27
- import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-CvDx0K6k.mjs";
27
+ import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-CkJPnp2c.mjs";
28
28
  import tt from "@mui/material/TextField";
29
- import { L as re } from "../ListItemAction-DGjHxNDJ.mjs";
30
- import { C as se } from "../CurrencyInput-B59ugxPN.mjs";
31
- import be from "@mui/material/Alert";
29
+ import { L as re } from "../ListItemAction-CwspSmQi.mjs";
30
+ import { C as se } from "../CurrencyInput-adTIRtL3.mjs";
31
+ import me from "@mui/material/Alert";
32
32
  import _e from "@mui/material/AlertTitle";
33
33
  import ye from "@mui/material/Paper";
34
34
  import { Error as rt, CheckCircle as Ce } from "@mxenabled/mx-icons";
@@ -42,18 +42,18 @@ import it from "@mui/material/ListItem";
42
42
  import lt from "@mui/material/Popover";
43
43
  import { u as st } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
44
  import { L as ct } from "../Loader-CxeBwuPG.mjs";
45
- import { W as dt } from "../WidgetContainer-CYcmwsSu.mjs";
46
- import { E as pt } from "../EmptyState-DHAkGsjk.mjs";
47
- import { C as ht } from "../ConnectDrawer-DgfsTpyW.mjs";
48
- function ut(r, n, o = 0) {
49
- const t = r.map((m) => ({ ...m })).filter(
50
- (m) => m.interest_rate !== void 0 && m.monthly_payment !== void 0 && !m.is_paid_off
45
+ import { W as dt } from "../WidgetContainer-DNuz_s7W.mjs";
46
+ import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
47
+ import { C as ut } from "../ConnectDrawer-Cnjr3Ddg.mjs";
48
+ function ht(r, n, o = 0) {
49
+ const t = r.map((b) => ({ ...b })).filter(
50
+ (b) => b.interest_rate !== void 0 && b.monthly_payment !== void 0 && !b.is_paid_off
51
51
  );
52
52
  Fe(t, n);
53
53
  let a = 0, s = 0;
54
54
  const d = /* @__PURE__ */ new Date(), c = /* @__PURE__ */ new Date();
55
- for (; t.some((m) => m.balance >= 0.01 && !m.is_impossible); ) {
56
- let m = !1;
55
+ for (; t.some((b) => b.balance >= 0.01 && !b.is_impossible); ) {
56
+ let b = !1;
57
57
  for (const [v, x] of t.entries()) {
58
58
  if (x.balance <= 0.01 || x.is_impossible) continue;
59
59
  const L = (x.interest_rate ?? 0) / 100 / 12, N = x.balance * L;
@@ -64,25 +64,25 @@ function ut(r, n, o = 0) {
64
64
  x.is_impossible = !0;
65
65
  continue;
66
66
  }
67
- x.balance -= E, x.balance = x.balance < 0.01 ? 0 : x.balance, a += N, x.balance <= 0 && (s += A), E > 0 && (m = !0);
67
+ x.balance -= E, x.balance = x.balance < 0.01 ? 0 : x.balance, a += N, x.balance <= 0 && (s += A), E > 0 && (b = !0);
68
68
  }
69
- m && c.setMonth(c.getMonth() + 1);
69
+ b && c.setMonth(c.getMonth() + 1);
70
70
  }
71
- const b = t.some((m) => m.is_impossible && m.balance > 0), u = Re({ start: d, end: c });
71
+ const m = t.some((b) => b.is_impossible && b.balance > 0), h = Re({ start: d, end: c });
72
72
  return {
73
- payoffSavings: b ? "N/A" : I(a, "0,0.00"),
74
- payoffDate: b ? "Never" : J(c, Q.MONTH_YEAR),
75
- payoffDuration: b ? "Stagnant" : Le(u, { format: ["years", "months"] }) || "0 months"
73
+ payoffSavings: m ? "N/A" : I(a, "0,0.00"),
74
+ payoffDate: m ? "Never" : J(c, Q.MONTH_YEAR),
75
+ payoffDuration: m ? "Stagnant" : Le(h, { format: ["years", "months"] }) || "0 months"
76
76
  };
77
77
  }
78
78
  const P = () => {
79
79
  if (!f.useContext(Ge))
80
80
  throw new Error("useCateUiStore() must be used within the GlobalDataContext");
81
81
  return ee().uiStore;
82
- }, mt = ({ debts: r, onClickCta: n, sx: o }) => {
83
- const t = j(), { isMobile: a } = ae(), { debts: s } = w(), { selectedDebtPriority: d } = P(), { monthlyCashFlowProfile: c } = V(), { payoffDate: b, payoffSavings: u, payoffDuration: m } = f.useMemo(() => {
82
+ }, bt = ({ debts: r, onClickCta: n, sx: o }) => {
83
+ const t = j(), { isMobile: a } = ae(), { debts: s } = w(), { selectedDebtPriority: d } = P(), { monthlyCashFlowProfile: c } = V(), { payoffDate: m, payoffSavings: h, payoffDuration: b } = f.useMemo(() => {
84
84
  const v = c?.extra_payment ?? 0;
85
- return ut(r, d, v);
85
+ return ht(r, d, v);
86
86
  }, [r, d, c]);
87
87
  return /* @__PURE__ */ e(
88
88
  ge,
@@ -93,9 +93,9 @@ const P = () => {
93
93
  minWidth: "186px",
94
94
  ...o
95
95
  },
96
- children: /* @__PURE__ */ l(h, { sx: { gap: "12px", p: "16px" }, children: [
96
+ children: /* @__PURE__ */ l(u, { sx: { gap: "12px", p: "16px" }, children: [
97
97
  /* @__PURE__ */ l(
98
- h,
98
+ u,
99
99
  {
100
100
  gap: a ? "4px" : "0",
101
101
  sx: {
@@ -105,16 +105,16 @@ const P = () => {
105
105
  },
106
106
  children: [
107
107
  /* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_date_description }),
108
- /* @__PURE__ */ e(i, { bold: !0, color: t.palette.primary.main, variant: "body2", children: b })
108
+ /* @__PURE__ */ e(i, { bold: !0, color: t.palette.primary.main, variant: "body2", children: m })
109
109
  ]
110
110
  }
111
111
  ),
112
- /* @__PURE__ */ l(h, { gap: a ? "4px" : "0", children: [
113
- /* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: u }),
114
- /* @__PURE__ */ e(i, { sx: { whiteSpace: "normal" }, variant: "caption", children: s.snowball_card_amount_description })
112
+ /* @__PURE__ */ l(u, { gap: a ? "4px" : "0", children: [
113
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: h }),
114
+ /* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_amount_description })
115
115
  ] }),
116
- /* @__PURE__ */ l(h, { gap: a ? "4px" : "0", children: [
117
- /* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: m }),
116
+ /* @__PURE__ */ l(u, { gap: a ? "4px" : "0", children: [
117
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: b }),
118
118
  /* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_duration_description })
119
119
  ] }),
120
120
  /* @__PURE__ */ e(
@@ -131,7 +131,7 @@ const P = () => {
131
131
  ] })
132
132
  }
133
133
  );
134
- }, bt = C(mt), _t = ({ isOpen: r, onClose: n }) => {
134
+ }, mt = C(bt), _t = ({ isOpen: r, onClose: n }) => {
135
135
  const o = j(), { debts: t } = w(), [a, s] = f.useState(!1);
136
136
  return /* @__PURE__ */ e(
137
137
  ie,
@@ -140,22 +140,22 @@ const P = () => {
140
140
  isOpen: r,
141
141
  onClose: n,
142
142
  title: t.snowball_drawer_title,
143
- children: /* @__PURE__ */ l(h, { bgcolor: o.palette.background.default, height: "100%", children: [
144
- /* @__PURE__ */ l(h, { alignItems: "center", px: 24, py: 24, children: [
145
- /* @__PURE__ */ l(h, { alignItems: "center", pb: 24, children: [
146
- /* @__PURE__ */ e(i, { mb: 12, variant: "h3", children: t.snowball_drawer_subtitle }),
143
+ children: /* @__PURE__ */ l(u, { bgcolor: o.palette.background.default, height: "100%", children: [
144
+ /* @__PURE__ */ l(u, { alignItems: "center", px: 24, py: 24, children: [
145
+ /* @__PURE__ */ l(u, { alignItems: "center", pb: 24, children: [
146
+ /* @__PURE__ */ e(i, { mb: 12, truncate: !0, variant: "h3", children: t.snowball_drawer_subtitle }),
147
147
  /* @__PURE__ */ e(i, { color: o.palette.secondary.main, variant: "body2", children: t.snowball_drawer_amount_description }),
148
148
  /* @__PURE__ */ e(xe, { variant: "h1", children: t.snowball_drawer_savings }),
149
149
  /* @__PURE__ */ e(i, { color: o.palette.secondary.main, variant: "body2", children: t.snowball_drawer_duration_description })
150
150
  ] }),
151
151
  /* @__PURE__ */ l(ge, { sx: { display: "grid", py: 16, px: 24 }, children: [
152
- /* @__PURE__ */ e(i, { mb: 4, variant: "h3", children: t.snowball_drawer_question }),
152
+ /* @__PURE__ */ e(i, { mb: 4, truncate: !0, variant: "h3", children: t.snowball_drawer_question }),
153
153
  /* @__PURE__ */ e(
154
154
  i,
155
155
  {
156
156
  color: o.palette.secondary.main,
157
157
  mb: 8,
158
- sx: { whiteSpace: a ? "normal" : "nowrap" },
158
+ truncate: !a,
159
159
  variant: "subtitle2",
160
160
  children: t.snowball_drawer_answer
161
161
  }
@@ -173,23 +173,23 @@ const P = () => {
173
173
  )
174
174
  ] })
175
175
  ] }),
176
- /* @__PURE__ */ l(h, { children: [
176
+ /* @__PURE__ */ l(u, { children: [
177
177
  /* @__PURE__ */ e(
178
178
  i,
179
179
  {
180
180
  color: o.palette.secondary.main,
181
181
  px: 24,
182
- sx: { textAlign: "center", whiteSpace: "normal" },
182
+ sx: { textAlign: "center" },
183
183
  variant: "body2",
184
184
  children: t.snowball_drawer_disclaimer
185
185
  }
186
186
  ),
187
- /* @__PURE__ */ l(h, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
187
+ /* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
188
188
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 1) }),
189
189
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
190
190
  ] }),
191
- /* @__PURE__ */ l(h, { bgcolor: o.palette.background.paper, mb: 24, children: [
192
- /* @__PURE__ */ l(h, { alignItems: "center", flexDirection: "row", pl: 24, children: [
191
+ /* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
192
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
193
193
  /* @__PURE__ */ e(
194
194
  W,
195
195
  {
@@ -207,7 +207,7 @@ const P = () => {
207
207
  }
208
208
  ),
209
209
  /* @__PURE__ */ l(
210
- h,
210
+ u,
211
211
  {
212
212
  sx: {
213
213
  borderBottom: `1px solid ${o.palette.neutral.light}`,
@@ -217,7 +217,7 @@ const P = () => {
217
217
  pr: 24
218
218
  },
219
219
  children: [
220
- /* @__PURE__ */ l(h, { flexGrow: 1, children: [
220
+ /* @__PURE__ */ l(u, { flexGrow: 1, children: [
221
221
  /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "A") }),
222
222
  /* @__PURE__ */ l(i, { color: o.palette.secondary.main, variant: "caption", children: [
223
223
  T(
@@ -228,7 +228,7 @@ const P = () => {
228
228
  t.snowball_drawer_rollover_explainer_pt2
229
229
  ] })
230
230
  ] }),
231
- /* @__PURE__ */ l(h, { children: [
231
+ /* @__PURE__ */ l(u, { children: [
232
232
  /* @__PURE__ */ e(i, { variant: "body1", children: "$100.00" }),
233
233
  /* @__PURE__ */ e(
234
234
  i,
@@ -245,7 +245,7 @@ const P = () => {
245
245
  }
246
246
  )
247
247
  ] }),
248
- /* @__PURE__ */ l(h, { alignItems: "center", flexDirection: "row", pl: 24, children: [
248
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
249
249
  /* @__PURE__ */ e(
250
250
  W,
251
251
  {
@@ -259,7 +259,7 @@ const P = () => {
259
259
  }
260
260
  ),
261
261
  /* @__PURE__ */ l(
262
- h,
262
+ u,
263
263
  {
264
264
  sx: {
265
265
  borderBottom: `1px solid ${o.palette.neutral.light}`,
@@ -275,7 +275,7 @@ const P = () => {
275
275
  }
276
276
  )
277
277
  ] }),
278
- /* @__PURE__ */ l(h, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
278
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
279
279
  /* @__PURE__ */ e(
280
280
  W,
281
281
  {
@@ -288,13 +288,13 @@ const P = () => {
288
288
  }
289
289
  }
290
290
  ),
291
- /* @__PURE__ */ l(h, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
291
+ /* @__PURE__ */ l(u, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
292
292
  /* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }),
293
293
  /* @__PURE__ */ e(i, { variant: "body1", children: "$1,000.00" })
294
294
  ] })
295
295
  ] }),
296
296
  /* @__PURE__ */ l(
297
- h,
297
+ u,
298
298
  {
299
299
  sx: {
300
300
  py: 8,
@@ -311,12 +311,12 @@ const P = () => {
311
311
  }
312
312
  )
313
313
  ] }),
314
- /* @__PURE__ */ l(h, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
314
+ /* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
315
315
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 2) }),
316
316
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
317
317
  ] }),
318
- /* @__PURE__ */ l(h, { bgcolor: o.palette.background.paper, mb: 24, children: [
319
- /* @__PURE__ */ l(h, { alignItems: "center", flexDirection: "row", pl: 24, children: [
318
+ /* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
319
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
320
320
  /* @__PURE__ */ e(
321
321
  W,
322
322
  {
@@ -334,7 +334,7 @@ const P = () => {
334
334
  }
335
335
  ),
336
336
  /* @__PURE__ */ l(
337
- h,
337
+ u,
338
338
  {
339
339
  sx: {
340
340
  borderBottom: `1px solid ${o.palette.neutral.light}`,
@@ -344,7 +344,7 @@ const P = () => {
344
344
  pr: 24
345
345
  },
346
346
  children: [
347
- /* @__PURE__ */ l(h, { flexGrow: 1, children: [
347
+ /* @__PURE__ */ l(u, { flexGrow: 1, children: [
348
348
  /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "B") }),
349
349
  /* @__PURE__ */ l(i, { color: o.palette.secondary.main, variant: "caption", children: [
350
350
  T(
@@ -355,7 +355,7 @@ const P = () => {
355
355
  t.snowball_drawer_rollover_explainer_pt2
356
356
  ] })
357
357
  ] }),
358
- /* @__PURE__ */ l(h, { children: [
358
+ /* @__PURE__ */ l(u, { children: [
359
359
  /* @__PURE__ */ e(i, { variant: "body1", children: "$500.00" }),
360
360
  /* @__PURE__ */ e(
361
361
  i,
@@ -372,7 +372,7 @@ const P = () => {
372
372
  }
373
373
  )
374
374
  ] }),
375
- /* @__PURE__ */ l(h, { alignItems: "center", flexDirection: "row", pl: 24, children: [
375
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
376
376
  /* @__PURE__ */ e(
377
377
  W,
378
378
  {
@@ -386,7 +386,7 @@ const P = () => {
386
386
  }
387
387
  ),
388
388
  /* @__PURE__ */ l(
389
- h,
389
+ u,
390
390
  {
391
391
  sx: {
392
392
  flexDirection: "row",
@@ -402,7 +402,7 @@ const P = () => {
402
402
  )
403
403
  ] }),
404
404
  /* @__PURE__ */ l(
405
- h,
405
+ u,
406
406
  {
407
407
  sx: {
408
408
  py: 8,
@@ -419,12 +419,12 @@ const P = () => {
419
419
  }
420
420
  )
421
421
  ] }),
422
- /* @__PURE__ */ l(h, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
422
+ /* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
423
423
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 3) }),
424
424
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
425
425
  ] }),
426
- /* @__PURE__ */ l(h, { bgcolor: o.palette.background.paper, mb: 24, children: [
427
- /* @__PURE__ */ l(h, { alignItems: "center", flexDirection: "row", pl: 24, children: [
426
+ /* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
427
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
428
428
  /* @__PURE__ */ e(
429
429
  W,
430
430
  {
@@ -442,7 +442,7 @@ const P = () => {
442
442
  }
443
443
  ),
444
444
  /* @__PURE__ */ l(
445
- h,
445
+ u,
446
446
  {
447
447
  sx: {
448
448
  alignItems: "center",
@@ -452,8 +452,8 @@ const P = () => {
452
452
  pr: 24
453
453
  },
454
454
  children: [
455
- /* @__PURE__ */ e(h, { flexGrow: 1, children: /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }) }),
456
- /* @__PURE__ */ l(h, { children: [
455
+ /* @__PURE__ */ e(u, { flexGrow: 1, children: /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }) }),
456
+ /* @__PURE__ */ l(u, { children: [
457
457
  /* @__PURE__ */ e(i, { variant: "body1", children: "$1,500.00" }),
458
458
  /* @__PURE__ */ e(
459
459
  i,
@@ -471,7 +471,7 @@ const P = () => {
471
471
  )
472
472
  ] }),
473
473
  /* @__PURE__ */ l(
474
- h,
474
+ u,
475
475
  {
476
476
  sx: {
477
477
  py: 8,
@@ -510,14 +510,14 @@ const De = ({
510
510
  onClickArea: s,
511
511
  onHoverArea: d
512
512
  }) => {
513
- const c = qe(), { onEvent: b } = k(), u = t.filter((p) => !p.is_impossible), m = [
513
+ const c = qe(), { onEvent: m } = k(), h = t.filter((p) => !p.is_impossible), b = [
514
514
  ...new Set(
515
- u.flatMap((p) => p.dataset.map((g) => new Date(g.x).getTime()))
515
+ h.flatMap((p) => p.dataset.map((g) => new Date(g.x).getTime()))
516
516
  )
517
- ].sort((p, g) => p - g).map((p) => new Date(p)), v = u.map((p) => {
517
+ ].sort((p, g) => p - g).map((p) => new Date(p)), v = h.map((p) => {
518
518
  const g = new Map(p.dataset.map((B) => [new Date(B.x).getTime(), B.y]));
519
- let D = g.get(m[0].getTime()) ?? 0;
520
- const M = m.map((B) => {
519
+ let D = g.get(b[0].getTime()) ?? 0;
520
+ const M = b.map((B) => {
521
521
  const K = g.get(B.getTime()) ?? D;
522
522
  return D = K, { x: B, y: K };
523
523
  });
@@ -525,10 +525,10 @@ const De = ({
525
525
  }), x = v.reduce(
526
526
  (p, g) => p + (g.dataset[0]?.y ?? 0),
527
527
  0
528
- ), $ = m.map((p, g) => {
529
- const D = g / (m.length - 1), M = x * (1 - D);
528
+ ), $ = b.map((p, g) => {
529
+ const D = g / (b.length - 1), M = x * (1 - D);
530
530
  return { x: p, y: M };
531
- }), L = Math.ceil(x / 100) * 100, N = m, A = v.map((p, g) => {
531
+ }), L = Math.ceil(x / 100) * 100, N = b, A = v.map((p, g) => {
532
532
  const D = 1 - g / v.length * 0.5, M = gt(ft, D);
533
533
  return {
534
534
  id: `debt-${g}`,
@@ -581,7 +581,7 @@ const De = ({
581
581
  onAreaClick: (p, g) => {
582
582
  s?.();
583
583
  const D = A.find((M) => M.id === g.seriesId);
584
- b(S.DEBTS_CLICK_CHART_AREA, { account_guid: D?.guid });
584
+ m(S.DEBTS_CLICK_CHART_AREA, { account_guid: D?.guid });
585
585
  },
586
586
  onHighlightChange: (p) => {
587
587
  const g = A.find((D) => D.id === p?.seriesId)?.guid;
@@ -623,7 +623,7 @@ const De = ({
623
623
  {
624
624
  data: N,
625
625
  disableTicks: !0,
626
- min: m[0],
626
+ min: b[0],
627
627
  scaleType: "time",
628
628
  tickLabelMinGap: 24,
629
629
  valueFormatter: (p) => J(p, Q.MONTH_SHORT_YEAR)
@@ -662,7 +662,7 @@ const De = ({
662
662
  i,
663
663
  {
664
664
  color: r.palette.text.secondary,
665
- sx: { whiteSpace: "normal", textAlign: "center", px: 8, py: 12 },
665
+ sx: { textAlign: "center", px: 8, py: 12 },
666
666
  variant: "body2",
667
667
  children: n.details_chart_description
668
668
  }
@@ -675,7 +675,7 @@ const De = ({
675
675
  {
676
676
  color: r.palette.secondary.main,
677
677
  component: "div",
678
- sx: { p: 32, textAlign: "center", whiteSpace: "normal" },
678
+ sx: { p: 32, textAlign: "center" },
679
679
  variant: "body2",
680
680
  children: s ? o.schedule_error_message : o.schedule_complete_message
681
681
  }
@@ -684,7 +684,7 @@ const De = ({
684
684
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_month_heading }),
685
685
  /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_amount_heading })
686
686
  ] }),
687
- t.dataset.slice(1).map(({ x: d, y: c, payment: b }) => /* @__PURE__ */ e(y, { bgcolor: r.palette.background.paper, children: /* @__PURE__ */ e(y, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ l(
687
+ t.dataset.slice(1).map(({ x: d, y: c, payment: m }) => /* @__PURE__ */ e(y, { bgcolor: r.palette.background.paper, children: /* @__PURE__ */ e(y, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ l(
688
688
  y,
689
689
  {
690
690
  sx: {
@@ -708,7 +708,7 @@ const De = ({
708
708
  color: r.palette.success.main,
709
709
  textAlign: "end",
710
710
  variant: "tiny",
711
- children: `+${I(b, "0,0")}`
711
+ children: `+${I(m, "0,0")}`
712
712
  }
713
713
  )
714
714
  ] })
@@ -735,7 +735,7 @@ const De = ({
735
735
  }, vt = C(Ct), Dt = C(({ debt: r }) => {
736
736
  const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.interest_rate ?? 0), d = a < 0, c = async () => {
737
737
  await o({ ...r.account, interest_rate: a }), r.interest_rate = a, t(S.DEBTS_SAVE_RATE_ACTION, { account_guid: r.guid });
738
- }, b = () => {
738
+ }, m = () => {
739
739
  setTimeout(() => {
740
740
  s(r.interest_rate ?? 0);
741
741
  }, 250);
@@ -745,7 +745,7 @@ const De = ({
745
745
  {
746
746
  isSaveDisabled: d,
747
747
  label: `${n.details_interest_rate} (%)`,
748
- onCancel: b,
748
+ onCancel: m,
749
749
  onSave: c,
750
750
  primaryText: n.details_interest_rate,
751
751
  secondaryText: We(Number(r.interest_rate) / 100),
@@ -755,7 +755,7 @@ const De = ({
755
755
  {
756
756
  error: d,
757
757
  fullWidth: !0,
758
- onChange: (u) => s(isNaN(parseFloat(u.target.value)) ? 0 : parseFloat(u.target.value)),
758
+ onChange: (h) => s(isNaN(parseFloat(h.target.value)) ? 0 : parseFloat(h.target.value)),
759
759
  type: "number",
760
760
  value: a
761
761
  }
@@ -765,7 +765,7 @@ const De = ({
765
765
  }), St = C(({ debt: r }) => {
766
766
  const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.monthly_payment ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
767
767
  await o({ ...r.account, minimum_payment: a }), r.monthly_payment = a, t(S.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: r.guid });
768
- }, b = () => {
768
+ }, m = () => {
769
769
  setTimeout(() => {
770
770
  s(r.monthly_payment ?? 0);
771
771
  }, 250);
@@ -775,7 +775,7 @@ const De = ({
775
775
  {
776
776
  isSaveDisabled: d,
777
777
  label: n.details_monthly_payment,
778
- onCancel: b,
778
+ onCancel: m,
779
779
  onSave: c,
780
780
  primaryText: n.details_monthly_payment,
781
781
  secondaryText: I(r.monthly_payment, "0,0"),
@@ -788,7 +788,7 @@ const De = ({
788
788
  error: d,
789
789
  fullWidth: !0,
790
790
  minAmount: 0,
791
- setAmount: (u) => s(isNaN(Number(u)) ? a : Number(u)),
791
+ setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
792
792
  sx: { ".MuiTypography-body1": { p: 0 } }
793
793
  }
794
794
  )
@@ -797,7 +797,7 @@ const De = ({
797
797
  }), At = C(({ debt: r }) => {
798
798
  const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.original_balance ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
799
799
  await o({ ...r.account, original_balance: a }), r.original_balance = a, t(S.DEBTS_SAVE_BALANCE_ACTION, { account_guid: r.guid });
800
- }, b = () => {
800
+ }, m = () => {
801
801
  setTimeout(() => {
802
802
  s(r.original_balance ?? 0);
803
803
  }, 250);
@@ -807,7 +807,7 @@ const De = ({
807
807
  {
808
808
  isSaveDisabled: d,
809
809
  label: n.details_original_balance,
810
- onCancel: b,
810
+ onCancel: m,
811
811
  onSave: c,
812
812
  primaryText: n.details_original_balance,
813
813
  secondaryText: I(r.original_balance, "0,0"),
@@ -820,7 +820,7 @@ const De = ({
820
820
  error: d,
821
821
  fullWidth: !0,
822
822
  minAmount: 0,
823
- setAmount: (u) => s(isNaN(Number(u)) ? a : Number(u)),
823
+ setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
824
824
  sx: { ".MuiTypography-body1": { p: 0 } }
825
825
  }
826
826
  )
@@ -852,7 +852,7 @@ const De = ({
852
852
  t && r(1);
853
853
  }, [t]), !t && !a ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ l(y, { gap: 16, children: [
854
854
  /* @__PURE__ */ e(ye, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
855
- be,
855
+ me,
856
856
  {
857
857
  icon: t ? /* @__PURE__ */ e(rt, { filled: !0 }) : /* @__PURE__ */ e(Ce, { color: "success", filled: !0 }),
858
858
  severity: "error",
@@ -868,12 +868,12 @@ const De = ({
868
868
  },
869
869
  children: [
870
870
  /* @__PURE__ */ e(_e, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: t ? o.status_error_title : o.status_complete_title }),
871
- /* @__PURE__ */ e(i, { component: "p", sx: { whiteSpace: "wrap" }, variant: "subtitle2", children: t ? o.status_error_description : o.status_complete_description })
871
+ /* @__PURE__ */ e(i, { component: "p", variant: "subtitle2", children: t ? o.status_error_description : o.status_complete_description })
872
872
  ]
873
873
  }
874
874
  ) }),
875
875
  t && /* @__PURE__ */ e(ye, { sx: { mb: 16, mt: 100, mx: 24, ...n }, children: /* @__PURE__ */ l(
876
- be,
876
+ me,
877
877
  {
878
878
  icon: /* @__PURE__ */ e(R, {}),
879
879
  severity: "error",
@@ -886,7 +886,7 @@ const De = ({
886
886
  },
887
887
  children: [
888
888
  /* @__PURE__ */ e(_e, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: o.status_info_title }),
889
- /* @__PURE__ */ e(i, { component: "p", sx: { whiteSpace: "wrap" }, variant: "subtitle2", children: o.status_info_description })
889
+ /* @__PURE__ */ e(i, { component: "p", variant: "subtitle2", children: o.status_info_description })
890
890
  ]
891
891
  }
892
892
  ) })
@@ -906,7 +906,7 @@ const De = ({
906
906
  variant: "fullWidth",
907
907
  children: [
908
908
  /* @__PURE__ */ e(
909
- me,
909
+ be,
910
910
  {
911
911
  "aria-controls": "debt-schedule-tabpanel-0",
912
912
  id: "debt-schedule-tab-0",
@@ -914,7 +914,7 @@ const De = ({
914
914
  }
915
915
  ),
916
916
  /* @__PURE__ */ e(
917
- me,
917
+ be,
918
918
  {
919
919
  "aria-controls": "debt-details-tabpanel-1",
920
920
  id: "debt-details-tab-1",
@@ -947,7 +947,7 @@ const De = ({
947
947
  n && (await o({ ...n, extra_payment: a }), n.extra_payment = a, t(S.DEBTS_SAVE_PAYDOWN_ACTION, {
948
948
  user_guid: n?.user_guid
949
949
  }));
950
- }, b = () => {
950
+ }, m = () => {
951
951
  setTimeout(() => {
952
952
  s(n?.extra_payment ?? 0);
953
953
  }, 250);
@@ -957,7 +957,7 @@ const De = ({
957
957
  {
958
958
  isSaveDisabled: d,
959
959
  label: r.paydown_drawer_extra_payment,
960
- onCancel: b,
960
+ onCancel: m,
961
961
  onSave: c,
962
962
  primaryText: r.paydown_drawer_extra_payment,
963
963
  secondaryText: I(n?.extra_payment, "0,0"),
@@ -970,7 +970,7 @@ const De = ({
970
970
  error: d,
971
971
  fullWidth: !0,
972
972
  minAmount: 0,
973
- setAmount: (u) => s(isNaN(Number(u)) ? a : Number(u)),
973
+ setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
974
974
  sx: { ".MuiTypography-body1": { p: 0 } }
975
975
  }
976
976
  )
@@ -1067,12 +1067,12 @@ const Wt = (r) => {
1067
1067
  onHoverRow: t,
1068
1068
  onClickRow: a
1069
1069
  }) => {
1070
- const s = j(), { onEvent: d } = k(), { isMobile: c } = ae(), { debts: b, common: u } = w(), [m, v] = f.useState([
1070
+ const s = j(), { onEvent: d } = k(), { isMobile: c } = ae(), { debts: m, common: h } = w(), [b, v] = f.useState([
1071
1071
  { field: "priority", sort: "asc" }
1072
1072
  ]), x = [
1073
1073
  {
1074
1074
  field: "priority",
1075
- headerName: b.table_column_priority,
1075
+ headerName: m.table_column_priority,
1076
1076
  renderHeader: H,
1077
1077
  renderCell: Gt,
1078
1078
  sortComparator: $t,
@@ -1086,7 +1086,7 @@ const Wt = (r) => {
1086
1086
  },
1087
1087
  {
1088
1088
  field: "account",
1089
- headerName: b.table_column_account,
1089
+ headerName: m.table_column_account,
1090
1090
  renderHeader: H,
1091
1091
  renderCell: Ht,
1092
1092
  sortable: !1,
@@ -1098,7 +1098,7 @@ const Wt = (r) => {
1098
1098
  },
1099
1099
  {
1100
1100
  field: "balance",
1101
- headerName: b.table_column_balance,
1101
+ headerName: m.table_column_balance,
1102
1102
  renderHeader: H,
1103
1103
  renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: I(_.value, "0,0") }),
1104
1104
  sortable: !0,
@@ -1111,7 +1111,7 @@ const Wt = (r) => {
1111
1111
  },
1112
1112
  {
1113
1113
  field: "interest_rate",
1114
- headerName: b.table_column_interest_rate,
1114
+ headerName: m.table_column_interest_rate,
1115
1115
  renderHeader: H,
1116
1116
  renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: isNaN(_.value) ? "---" : `${Number(_.value).toFixed(2)}%` }),
1117
1117
  sortable: !0,
@@ -1124,7 +1124,7 @@ const Wt = (r) => {
1124
1124
  },
1125
1125
  {
1126
1126
  field: "projected_payoff_date",
1127
- headerName: b.table_column_payoff_date,
1127
+ headerName: m.table_column_payoff_date,
1128
1128
  renderHeader: H,
1129
1129
  renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: _.value ? J(_.value, Q.MONTH_SHORT_YEAR) : "---" }),
1130
1130
  sortable: !0,
@@ -1137,7 +1137,7 @@ const Wt = (r) => {
1137
1137
  },
1138
1138
  {
1139
1139
  field: "monthly_payment",
1140
- headerName: b.table_column_amount_due,
1140
+ headerName: m.table_column_amount_due,
1141
1141
  renderHeader: H,
1142
1142
  renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: typeof _.value == "number" ? I(_.value, "0,0") : "---" }),
1143
1143
  sortable: !0,
@@ -1154,7 +1154,7 @@ const Wt = (r) => {
1154
1154
  field: "chevron",
1155
1155
  headerClassName: "chevron-header",
1156
1156
  headerName: "",
1157
- renderCell: () => /* @__PURE__ */ e(h, { "aria-label": u.see_details, role: "button", children: /* @__PURE__ */ e(ne, { name: "chevron_right" }) }),
1157
+ renderCell: () => /* @__PURE__ */ e(u, { "aria-label": h.see_details, role: "button", children: /* @__PURE__ */ e(ne, { name: "chevron_right" }) }),
1158
1158
  sortable: !1,
1159
1159
  hideSortIcons: !0,
1160
1160
  type: "custom",
@@ -1193,7 +1193,7 @@ const Wt = (r) => {
1193
1193
  disableColumnFilter: !0,
1194
1194
  disableColumnMenu: !0,
1195
1195
  hideFooter: !0,
1196
- initialState: { sorting: { sortModel: m } },
1196
+ initialState: { sorting: { sortModel: b } },
1197
1197
  onRowClick: (_) => {
1198
1198
  a(), d(S.DEBTS_CLICK_TABLE_ROW, { account_guid: _.row.guid });
1199
1199
  },
@@ -1210,7 +1210,7 @@ const Wt = (r) => {
1210
1210
  onClick: c ? E : void 0
1211
1211
  }
1212
1212
  },
1213
- sortModel: m,
1213
+ sortModel: b,
1214
1214
  sortingOrder: ["asc", "desc"],
1215
1215
  sx: {
1216
1216
  "& .chevron-header": { display: "none" },
@@ -1274,8 +1274,8 @@ const Wt = (r) => {
1274
1274
  priority: F.HIGHEST_BALANCE,
1275
1275
  text: t.priority_sort_highest_balance
1276
1276
  }
1277
- ], b = (u) => {
1278
- s(u), o(S.DEBTS_CLICK_PRIORITY, { debts_priority: u });
1277
+ ], m = (h) => {
1278
+ s(h), o(S.DEBTS_CLICK_PRIORITY, { debts_priority: h });
1279
1279
  };
1280
1280
  return /* @__PURE__ */ e(
1281
1281
  lt,
@@ -1292,13 +1292,13 @@ const Wt = (r) => {
1292
1292
  vertical: "top",
1293
1293
  horizontal: "left"
1294
1294
  },
1295
- children: /* @__PURE__ */ e(we, { children: c.map(({ priority: u, text: m }) => /* @__PURE__ */ l(
1295
+ children: /* @__PURE__ */ e(we, { children: c.map(({ priority: h, text: b }) => /* @__PURE__ */ l(
1296
1296
  it,
1297
1297
  {
1298
- onClick: () => b(u),
1298
+ onClick: () => m(h),
1299
1299
  sx: {
1300
- bgcolor: a === u ? "primary.main" : void 0,
1301
- color: a === u ? "#fff" : void 0,
1300
+ bgcolor: a === h ? "primary.main" : void 0,
1301
+ color: a === h ? "#fff" : void 0,
1302
1302
  justifyContent: "space-between",
1303
1303
  minHeight: 44,
1304
1304
  minWidth: 268,
@@ -1311,37 +1311,37 @@ const Wt = (r) => {
1311
1311
  }
1312
1312
  },
1313
1313
  children: [
1314
- /* @__PURE__ */ e(i, { color: "inherit", variant: "body2", children: m }),
1315
- a === u && /* @__PURE__ */ e(Ce, { color: "inherit", filled: !0, fontSize: "small" })
1314
+ /* @__PURE__ */ e(i, { color: "inherit", variant: "body2", children: b }),
1315
+ a === h && /* @__PURE__ */ e(Ce, { color: "inherit", filled: !0, fontSize: "small" })
1316
1316
  ]
1317
1317
  },
1318
- u
1318
+ h
1319
1319
  )) })
1320
1320
  }
1321
1321
  );
1322
1322
  }), Yt = C(({ disabled: r, isDesktop: n }) => {
1323
1323
  const { onEvent: o } = k(), { debts: t } = w(), { selectedDebtPriority: a } = P(), [s, d] = f.useState(null), c = (v) => {
1324
1324
  d(v.currentTarget), o(S.DEBTS_CLICK_PRIORITIZE);
1325
- }, b = () => {
1325
+ }, m = () => {
1326
1326
  d(null);
1327
- }, u = !!s, m = f.useMemo(() => ({
1327
+ }, h = !!s, b = f.useMemo(() => ({
1328
1328
  [F.FASTEST_PAYOFF_FIRST]: t.priority_sort_fastest_payoff,
1329
1329
  [F.HIGHEST_INTEREST]: t.priority_sort_highest_interest,
1330
1330
  [F.HIGHEST_BALANCE]: t.priority_sort_highest_balance,
1331
1331
  [F.LOWEST_BALANCE]: t.priority_sort_lowest_balance
1332
1332
  })[a] ?? t.priority_sort_lowest_balance, [a]);
1333
- return /* @__PURE__ */ l(h, { children: [
1333
+ return /* @__PURE__ */ l(u, { children: [
1334
1334
  /* @__PURE__ */ e(
1335
1335
  jt,
1336
1336
  {
1337
- buttonText: m,
1337
+ buttonText: b,
1338
1338
  disabled: r,
1339
1339
  isDesktop: n,
1340
- isOpen: u,
1340
+ isOpen: h,
1341
1341
  onClick: c
1342
1342
  }
1343
1343
  ),
1344
- /* @__PURE__ */ e(Vt, { buttonEl: s, onClose: b })
1344
+ /* @__PURE__ */ e(Vt, { buttonEl: s, onClose: m })
1345
1345
  ] });
1346
1346
  }), Kt = C(({ disabled: r, onClick: n }) => {
1347
1347
  const { debts: o } = w(), { totalMonthlyPayments: t } = ee(), { monthlyCashFlowProfile: a } = V(), s = t + Number(a?.extra_payment), d = o.paydown_button_long;
@@ -1360,8 +1360,8 @@ const Wt = (r) => {
1360
1360
  ) });
1361
1361
  }), Ut = ({ onBackClick: r, onMenuClick: n, sx: o }) => {
1362
1362
  const { isDesktop: t, isMobile: a } = ae(), { connect: s, debts: d } = w(), { onEvent: c } = k(), {
1363
- config: { show_connections_widget_in_master: b }
1364
- } = He(), { isInitialized: u } = ze(), { setSelectedAccount: m } = Ve(), { selectedDebtPriority: v, setSelectedDebtChartData: x } = P(), {
1363
+ config: { show_connections_widget_in_master: m }
1364
+ } = He(), { isInitialized: h } = ze(), { setSelectedAccount: b } = Ve(), { selectedDebtPriority: v, setSelectedDebtChartData: x } = P(), {
1365
1365
  isAccountDataLoaded: $,
1366
1366
  loadAccountData: L,
1367
1367
  detailedAccounts: N,
@@ -1378,21 +1378,21 @@ const Wt = (r) => {
1378
1378
  f.useEffect(() => {
1379
1379
  $ || L().finally(), c(S.DEBTS_VIEW);
1380
1380
  }, []), f.useEffect(() => {
1381
- u && Y().finally();
1382
- }, [u]);
1383
- const pe = (O) => Se(O), he = () => {
1384
- const O = A.find((oe) => oe.guid === U), ue = q.find((oe) => oe.guid === U);
1385
- O && m(O), ue && x(ue), D(!0);
1381
+ h && Y().finally();
1382
+ }, [h]);
1383
+ const pe = (O) => Se(O), ue = () => {
1384
+ const O = A.find((oe) => oe.guid === U), he = q.find((oe) => oe.guid === U);
1385
+ O && b(O), he && x(he), D(!0);
1386
1386
  }, Te = () => c(S.DEBTS_CLICK_FILTER), Ee = () => {
1387
1387
  ce(!0), c(S.DEBTS_CLICK_SNOWBALL_CTA);
1388
1388
  }, Ie = () => {
1389
1389
  B(!0), c(S.DEBTS_CLICK_PAYDOWN);
1390
1390
  };
1391
- if (!u || !E)
1391
+ if (!h || !E)
1392
1392
  return /* @__PURE__ */ e(ct, {});
1393
1393
  const Me = N.length === 0, ke = A.length === 0, Ne = p.length === 0, X = Me || ke || Ne, Z = Oe(
1394
1394
  d,
1395
- b,
1395
+ m,
1396
1396
  () => de(!0)
1397
1397
  );
1398
1398
  return /* @__PURE__ */ l(
@@ -1442,13 +1442,13 @@ const Wt = (r) => {
1442
1442
  debts: q,
1443
1443
  height: a ? 250 : void 0,
1444
1444
  hoveredDebtGuid: U,
1445
- onClickArea: he,
1445
+ onClickArea: ue,
1446
1446
  onHoverArea: pe,
1447
1447
  sx: { mr: a ? "4px" : "-48px" }
1448
1448
  }
1449
1449
  ),
1450
1450
  /* @__PURE__ */ e(
1451
- bt,
1451
+ mt,
1452
1452
  {
1453
1453
  debts: q,
1454
1454
  onClickCta: Ee,
@@ -1463,7 +1463,7 @@ const Wt = (r) => {
1463
1463
  {
1464
1464
  debts: q,
1465
1465
  hoveredDebtGuid: U,
1466
- onClickRow: he,
1466
+ onClickRow: ue,
1467
1467
  onHoverRow: pe
1468
1468
  }
1469
1469
  ) })
@@ -1479,7 +1479,7 @@ const Wt = (r) => {
1479
1479
  /* @__PURE__ */ e(Bt, { isOpen: g, onClose: () => D(!1) }),
1480
1480
  /* @__PURE__ */ e(Ft, { isOpen: M, onClose: () => B(!1) }),
1481
1481
  /* @__PURE__ */ e(
1482
- ht,
1482
+ ut,
1483
1483
  {
1484
1484
  onClose: () => de(!1),
1485
1485
  showConnectWidget: Ae,