@mx-cartographer/experiences 5.3.1-alpha.mega2 → 5.3.1-alpha.mega4

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.
package/dist/index.es.js CHANGED
@@ -20,7 +20,7 @@ import W from "@mui/material/ListItem";
20
20
  import aA from "@mui/material/ListItemButton";
21
21
  import eA from "@mui/material/ListItemText";
22
22
  import wo from "@mui/material/Popover";
23
- import b from "@mui/material/Stack";
23
+ import P from "@mui/material/Stack";
24
24
  import li from "@mui/material/Checkbox";
25
25
  import { addMonths as Re } from "date-fns/addMonths";
26
26
  import { addQuarters as Pt } from "date-fns/addQuarters";
@@ -1129,7 +1129,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
1129
1129
  handleClose: f,
1130
1130
  showAccountNumbers: E
1131
1131
  }) => {
1132
- const l = oa(() => oc(A), [A]), v = A.length < 1, u = !!t, H = Object.values(c).every((P) => !!P);
1132
+ const l = oa(() => oc(A), [A]), v = A.length < 1, u = !!t, H = Object.values(c).every((b) => !!b);
1133
1133
  return /* @__PURE__ */ e(
1134
1134
  wo,
1135
1135
  {
@@ -1146,7 +1146,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
1146
1146
  horizontal: "left"
1147
1147
  },
1148
1148
  children: v ? /* @__PURE__ */ s(
1149
- b,
1149
+ P,
1150
1150
  {
1151
1151
  sx: {
1152
1152
  alignItems: "center",
@@ -1201,10 +1201,10 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
1201
1201
  "data-ui-test": `checked-${H}`,
1202
1202
  disableRipple: !0,
1203
1203
  onChange: () => {
1204
- const P = {};
1204
+ const b = {};
1205
1205
  Object.keys(c).forEach((p) => {
1206
- P[p] = !H;
1207
- }), d(P);
1206
+ b[p] = !H;
1207
+ }), d(b);
1208
1208
  },
1209
1209
  size: "small",
1210
1210
  sx: {
@@ -1218,24 +1218,24 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
1218
1218
  label: H ? i.unselectAllAccounts : i.selectAllAccounts
1219
1219
  }
1220
1220
  ) }),
1221
- Object.keys(l).map((P) => {
1222
- const p = l[P], y = p.every(
1221
+ Object.keys(l).map((b) => {
1222
+ const p = l[b], y = p.every(
1223
1223
  (x) => c[x.guid]
1224
1224
  );
1225
1225
  return /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(
1226
1226
  rA,
1227
1227
  {
1228
- "aria-label": z(i.accountTypeAccounts, P),
1228
+ "aria-label": z(i.accountTypeAccounts, b),
1229
1229
  className: "mx-cmn-account-options-group",
1230
1230
  dense: !0,
1231
1231
  subheader: /* @__PURE__ */ e(me, { disableGutters: !0, children: /* @__PURE__ */ e(
1232
1232
  aA,
1233
1233
  {
1234
- "aria-label": z(i.toggleAccountTypeAccounts, P),
1234
+ "aria-label": z(i.toggleAccountTypeAccounts, b),
1235
1235
  "aria-pressed": y,
1236
1236
  disableGutters: !0,
1237
1237
  onClick: () => r(
1238
- P,
1238
+ b,
1239
1239
  l,
1240
1240
  y
1241
1241
  ),
@@ -1247,7 +1247,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
1247
1247
  children: /* @__PURE__ */ e(
1248
1248
  eA,
1249
1249
  {
1250
- primary: P,
1250
+ primary: b,
1251
1251
  primaryTypographyProps: { variant: "XSmall", fontWeight: "bold" }
1252
1252
  }
1253
1253
  )
@@ -1292,12 +1292,12 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
1292
1292
  );
1293
1293
  })
1294
1294
  }
1295
- ) }, P);
1295
+ ) }, b);
1296
1296
  })
1297
1297
  ]
1298
1298
  }
1299
1299
  ),
1300
- /* @__PURE__ */ s(b, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, width: "100%", children: [
1300
+ /* @__PURE__ */ s(P, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, width: "100%", children: [
1301
1301
  /* @__PURE__ */ e($, { onClick: o, variant: "outlined", children: i.cancelButton }),
1302
1302
  /* @__PURE__ */ e(
1303
1303
  $,
@@ -1402,9 +1402,9 @@ const Ic = (A, t) => {
1402
1402
  onAccountClick: (H) => {
1403
1403
  l({ ...E, [H.guid]: !E[H.guid] });
1404
1404
  },
1405
- onAccountGroupClick: (H, P, p) => {
1405
+ onAccountGroupClick: (H, b, p) => {
1406
1406
  const y = { ...E };
1407
- P[H].forEach((x) => {
1407
+ b[H].forEach((x) => {
1408
1408
  y[x.guid] = !p;
1409
1409
  }), l(y);
1410
1410
  },
@@ -1546,7 +1546,7 @@ const Ic = (A, t) => {
1546
1546
  width: E,
1547
1547
  xAxisLabel: l = ""
1548
1548
  }) => {
1549
- const v = KA(), u = dc(v, E), H = d / I * c, P = Math.abs(d) / I * i, p = a === void 0 || a === r ? "primary" : "secondary";
1549
+ const v = KA(), u = dc(v, E), H = d / I * c, b = Math.abs(d) / I * i, p = a === void 0 || a === r ? "primary" : "secondary";
1550
1550
  return /* @__PURE__ */ s("div", { className: `mx-cmn-barchart-bar-column ${u}`, children: [
1551
1551
  /* @__PURE__ */ e("div", { style: { height: c }, children: d >= 0 && /* @__PURE__ */ e(
1552
1552
  wr,
@@ -1568,7 +1568,7 @@ const Ic = (A, t) => {
1568
1568
  {
1569
1569
  ariaLabel: A,
1570
1570
  color: n,
1571
- height: P,
1571
+ height: b,
1572
1572
  index: r,
1573
1573
  label: f,
1574
1574
  onClick: o,
@@ -1624,13 +1624,13 @@ const Ic = (A, t) => {
1624
1624
  selectedIndex: c,
1625
1625
  valueFormatter: d = (f) => `${f}`
1626
1626
  }) => {
1627
- const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l), P = l.reduce(hc, 0), p = u >= 0, y = H < 0, x = xr(p, y, r), w = xr(y, p, r), D = vc(v, u, H, x || w), m = (O) => c === void 0 || O === c ? i : `${i}80`, j = () => /* @__PURE__ */ e(
1627
+ const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l), b = l.reduce(hc, 0), p = u >= 0, y = H < 0, x = xr(p, y, r), w = xr(y, p, r), D = vc(v, u, H, x || w), j = (O) => c === void 0 || O === c ? i : `${i}80`, m = () => /* @__PURE__ */ e(
1628
1628
  yr,
1629
1629
  {
1630
1630
  averageLineHeight: D,
1631
1631
  bottomHeight: w,
1632
1632
  color: "",
1633
- range: P,
1633
+ range: b,
1634
1634
  topHeight: x,
1635
1635
  value: 0,
1636
1636
  width: void 0
@@ -1638,7 +1638,7 @@ const Ic = (A, t) => {
1638
1638
  );
1639
1639
  return /* @__PURE__ */ s("div", { className: `mx-cmn-bar-chart ${E}`, children: [
1640
1640
  /* @__PURE__ */ s("div", { className: "mx-cmn-chart-container", children: [
1641
- /* @__PURE__ */ e(j, {}),
1641
+ /* @__PURE__ */ e(m, {}),
1642
1642
  n.map((O, T) => /* @__PURE__ */ s(h.Fragment, { children: [
1643
1643
  /* @__PURE__ */ e(
1644
1644
  yr,
@@ -1646,10 +1646,10 @@ const Ic = (A, t) => {
1646
1646
  ariaLabel: O.ariaLabel,
1647
1647
  averageLineHeight: D,
1648
1648
  bottomHeight: w,
1649
- color: m(T),
1649
+ color: j(T),
1650
1650
  index: T,
1651
1651
  onClick: a,
1652
- range: P,
1652
+ range: b,
1653
1653
  selectedIndex: c,
1654
1654
  topHeight: x,
1655
1655
  value: O.value,
@@ -1658,7 +1658,7 @@ const Ic = (A, t) => {
1658
1658
  xAxisLabel: O.label
1659
1659
  }
1660
1660
  ),
1661
- /* @__PURE__ */ e(j, {})
1661
+ /* @__PURE__ */ e(m, {})
1662
1662
  ] }, `column-${T}`))
1663
1663
  ] }),
1664
1664
  /* @__PURE__ */ e(sc, { color: i, labelAverage: o, labelMain: I })
@@ -1793,9 +1793,9 @@ const Cc = ({
1793
1793
  const u = h.useMemo(() => {
1794
1794
  const x = ua({ start: QA(c), end: BA(c) }), w = [];
1795
1795
  for (let D = 0; D < x.length; D++) {
1796
- const m = x[D], j = Ra({ start: m, end: We(m, 6) }), O = [];
1797
- for (let T = 0; T < j.length; T++)
1798
- O.push(j[T]);
1796
+ const j = x[D], m = Ra({ start: j, end: We(j, 6) }), O = [];
1797
+ for (let T = 0; T < m.length; T++)
1798
+ O.push(m[T]);
1799
1799
  w.push(O);
1800
1800
  }
1801
1801
  return w;
@@ -1807,7 +1807,7 @@ const Cc = ({
1807
1807
  }
1808
1808
  !f || l ? (E(x), v(void 0)) : mA(x, f) ? (v(f), E(x), r?.(x, f)) : (v(x), r?.(f, x));
1809
1809
  }
1810
- }, P = () => {
1810
+ }, b = () => {
1811
1811
  const x = fA();
1812
1812
  d(x), o !== "None" && (E(x), o === "Single" ? n?.(x) : (v(x), r?.(x, x)));
1813
1813
  }, p = () => {
@@ -1826,7 +1826,7 @@ const Cc = ({
1826
1826
  }
1827
1827
  ),
1828
1828
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: u[0].map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: le(x, "EEEEE") }) }, w)) }),
1829
- u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D, m) => /* @__PURE__ */ e(
1829
+ u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D, j) => /* @__PURE__ */ e(
1830
1830
  bc,
1831
1831
  {
1832
1832
  beginDate: f,
@@ -1835,9 +1835,9 @@ const Cc = ({
1835
1835
  isInMonth: Pa(D, c),
1836
1836
  onClick: H
1837
1837
  },
1838
- m
1838
+ j
1839
1839
  )) }, `w-${w}`)),
1840
- /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e($, { onClick: P, size: "small", variant: "text", children: A.today }) })
1840
+ /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e($, { onClick: b, size: "small", variant: "text", children: A.today }) })
1841
1841
  ] }) });
1842
1842
  }, gc = (A) => He({
1843
1843
  width: zc,
@@ -2028,15 +2028,15 @@ const Cc = ({
2028
2028
  valueFormatterString: v = "0,0",
2029
2029
  width: u
2030
2030
  }) => {
2031
- const H = oe(), P = i.flat().map((m) => m.x), p = i.flat().map((m) => m.y), y = Math.round(p.reduce((m, j) => j + m, 0) / p.length), x = Math.floor(Math.min(...p) / 100) * 100, w = Math.ceil(Math.max(...p) / 100) * 100, D = i.map((m, j) => ({
2031
+ const H = oe(), b = i.flat().map((j) => j.x), p = i.flat().map((j) => j.y), y = Math.round(p.reduce((j, m) => m + j, 0) / p.length), x = Math.floor(Math.min(...p) / 100) * 100, w = Math.ceil(Math.max(...p) / 100) * 100, D = i.map((j, m) => ({
2032
2032
  type: c ? "bar" : "line",
2033
2033
  curve: "linear",
2034
- color: c ? H.palette.chart?.chart6 : t[j] ?? H.palette.primary.main,
2035
- data: m.map((O) => O.y),
2034
+ color: c ? H.palette.chart?.chart6 : t[m] ?? H.palette.primary.main,
2035
+ data: j.map((O) => O.y),
2036
2036
  area: d,
2037
2037
  baseline: A,
2038
2038
  showMark: !0,
2039
- label: r[j],
2039
+ label: r[m],
2040
2040
  valueFormatter: (O) => M(O || 0, v)
2041
2041
  }));
2042
2042
  return /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
@@ -2057,7 +2057,7 @@ const Cc = ({
2057
2057
  }
2058
2058
  },
2059
2059
  width: u,
2060
- xAxis: [{ data: P, scaleType: c ? "band" : "point" }],
2060
+ xAxis: [{ data: b, scaleType: c ? "band" : "point" }],
2061
2061
  yAxis: [
2062
2062
  {
2063
2063
  min: x,
@@ -2068,7 +2068,7 @@ const Cc = ({
2068
2068
  max: w,
2069
2069
  color: [H.palette.background.paper, t[0] ?? H.palette.primary.main]
2070
2070
  } : void 0,
2071
- valueFormatter: (m) => M(m, v)
2071
+ valueFormatter: (j) => M(j, v)
2072
2072
  }
2073
2073
  ],
2074
2074
  children: [
@@ -2077,7 +2077,7 @@ const Cc = ({
2077
2077
  xa,
2078
2078
  {
2079
2079
  slots: d && D.length < 2 ? {
2080
- line: (m) => /* @__PURE__ */ e(Dc, { ...m, lineColor: t[0] ?? H.palette.primary.main })
2080
+ line: (j) => /* @__PURE__ */ e(Dc, { ...j, lineColor: t[0] ?? H.palette.primary.main })
2081
2081
  } : void 0
2082
2082
  }
2083
2083
  ),
@@ -2085,14 +2085,14 @@ const Cc = ({
2085
2085
  Da,
2086
2086
  {
2087
2087
  slots: l ? {
2088
- mark: (m) => /* @__PURE__ */ e(
2088
+ mark: (j) => /* @__PURE__ */ e(
2089
2089
  xc,
2090
2090
  {
2091
2091
  handlers: I,
2092
2092
  showLabel: E,
2093
- style: a?.(m.dataIndex) ?? {},
2093
+ style: a?.(j.dataIndex) ?? {},
2094
2094
  yData: p,
2095
- ...m
2095
+ ...j
2096
2096
  }
2097
2097
  )
2098
2098
  } : void 0
@@ -2101,7 +2101,7 @@ const Cc = ({
2101
2101
  /* @__PURE__ */ e(
2102
2102
  ja,
2103
2103
  {
2104
- barLabel: (m) => Number(m.value) > 0 ? `$${m.value}` : null,
2104
+ barLabel: (j) => Number(j.value) > 0 ? `$${j.value}` : null,
2105
2105
  borderRadius: 10
2106
2106
  }
2107
2107
  ),
@@ -2181,7 +2181,7 @@ const Cc = ({
2181
2181
  return t;
2182
2182
  }, Xt = () => Qc(), nI = ({ categoryGuid: A, topLevelCategoryGuid: t }) => {
2183
2183
  const { categories: i } = X(), { getCategoryName: n } = qA(), r = n(A);
2184
- return /* @__PURE__ */ s(b, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
2184
+ return /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
2185
2185
  /* @__PURE__ */ e(
2186
2186
  L,
2187
2187
  {
@@ -2218,8 +2218,8 @@ const Cc = ({
2218
2218
  const E = I.current, l = r.current;
2219
2219
  if (!E || !l) return;
2220
2220
  const v = E.getBoundingClientRect(), u = l.getBoundingClientRect();
2221
- let H = n.x, P = n.y;
2222
- H + v.width * 2 > u.right ? H = n.x - v.width : H - v.width < u.left && (H = n.x), P + v.height * 2 > u.bottom && (P = n.y - v.height), c({ x: H, y: P });
2221
+ let H = n.x, b = n.y;
2222
+ H + v.width * 2 > u.right ? H = n.x - v.width : H - v.width < u.left && (H = n.x), b + v.height * 2 > u.bottom && (b = n.y - v.height), c({ x: H, y: b });
2223
2223
  })();
2224
2224
  }, [n, r]), !i) return null;
2225
2225
  const d = i.reduce((f, E) => f + E.y, 0);
@@ -2279,7 +2279,7 @@ const Cc = ({
2279
2279
  onClickLegend: r
2280
2280
  }) => {
2281
2281
  const { isMobile: o } = zA(), { getCategoryName: I } = qA();
2282
- return /* @__PURE__ */ e(b, { direction: "row", flexWrap: "wrap", gap: o ? 2 : 6, justifyContent: "start", sx: A, children: t.map(({ guid: a, top_level_guid: c }) => {
2282
+ return /* @__PURE__ */ e(P, { direction: "row", flexWrap: "wrap", gap: o ? 2 : 6, justifyContent: "start", sx: A, children: t.map(({ guid: a, top_level_guid: c }) => {
2283
2283
  const d = i === a, f = st[a], E = st[c], l = f ?? E ?? st.default, v = l + "33";
2284
2284
  return /* @__PURE__ */ s(
2285
2285
  $,
@@ -2332,7 +2332,7 @@ const Cc = ({
2332
2332
  hoveredAreaData: null,
2333
2333
  isAreaHovered: !1,
2334
2334
  cursorPos: { x: 0, y: 0 }
2335
- }), { hoveredSeriesId: H, hoveredAreaData: P, isAreaHovered: p, cursorPos: y } = v, x = p && H && P, w = !x, D = [...r, ...o], m = D[0]?.dataset.length ?? 0, j = D.flatMap((J) => J.dataset.map((wA) => wA.x)), O = D.flatMap((J) => J.dataset.map((wA) => wA.y)), T = r[0]?.dataset?.map(
2335
+ }), { hoveredSeriesId: H, hoveredAreaData: b, isAreaHovered: p, cursorPos: y } = v, x = p && H && b, w = !x, D = [...r, ...o], j = D[0]?.dataset.length ?? 0, m = D.flatMap((J) => J.dataset.map((wA) => wA.x)), O = D.flatMap((J) => J.dataset.map((wA) => wA.y)), T = r[0]?.dataset?.map(
2336
2336
  (J, wA) => r.reduce((VA, Ze) => VA + Ze.dataset[wA]?.y || 0, 0)
2337
2337
  ) ?? [0], tA = Math.max(...T), Y = Math.max(
2338
2338
  ...o.flatMap((J) => J.dataset.map((wA) => wA.y))
@@ -2391,7 +2391,7 @@ const Cc = ({
2391
2391
  }), t?.(VA);
2392
2392
  else if (Zi) {
2393
2393
  const Vt = Ze?.data.map((Ji, _i) => ({
2394
- x: j[_i],
2394
+ x: m[_i],
2395
2395
  y: Ji
2396
2396
  })) ?? [];
2397
2397
  u({
@@ -2440,7 +2440,7 @@ const Cc = ({
2440
2440
  }, {})
2441
2441
  };
2442
2442
  return /* @__PURE__ */ e(L, { onMouseMove: Ke, ref: f, style: { position: "relative" }, children: /* @__PURE__ */ s(
2443
- b,
2443
+ P,
2444
2444
  {
2445
2445
  direction: { xs: "column", md: "column" },
2446
2446
  spacing: { xs: 0, md: 4 },
@@ -2465,7 +2465,7 @@ const Cc = ({
2465
2465
  Mc,
2466
2466
  {
2467
2467
  categoryGuids: WA(H),
2468
- xData: j,
2468
+ xData: m,
2469
2469
  ...J
2470
2470
  }
2471
2471
  ) : null
@@ -2477,10 +2477,10 @@ const Cc = ({
2477
2477
  width: a,
2478
2478
  xAxis: [
2479
2479
  {
2480
- data: j,
2480
+ data: m,
2481
2481
  scaleType: "time",
2482
2482
  valueFormatter: (J) => nA(J, AA.MONTH_SHORT_YEAR),
2483
- tickNumber: m
2483
+ tickNumber: j
2484
2484
  // How many ticks to show on the x-axis
2485
2485
  }
2486
2486
  ],
@@ -2508,7 +2508,7 @@ const Cc = ({
2508
2508
  categoryGuids: WA(H),
2509
2509
  chartContainerRef: f,
2510
2510
  cursorPosition: y,
2511
- hoveredAreaData: P.map((J) => ({
2511
+ hoveredAreaData: b.map((J) => ({
2512
2512
  ...J,
2513
2513
  x: nA(J.x, AA.MONTH_SHORT_YEAR)
2514
2514
  }))
@@ -2520,7 +2520,7 @@ const Cc = ({
2520
2520
  }, ti = ({ data: A, height: t = 8 }) => {
2521
2521
  const i = `${t / 4}px`;
2522
2522
  return /* @__PURE__ */ e(
2523
- b,
2523
+ P,
2524
2524
  {
2525
2525
  bgcolor: "grey.300",
2526
2526
  borderRadius: i,
@@ -2608,7 +2608,7 @@ const Cc = ({
2608
2608
  shouldShowShadow: n,
2609
2609
  title: r
2610
2610
  }) => /* @__PURE__ */ s(
2611
- b,
2611
+ P,
2612
2612
  {
2613
2613
  "aria-level": 1,
2614
2614
  direction: "row",
@@ -2659,7 +2659,7 @@ const Cc = ({
2659
2659
  shouldShowHeaderBorders: v = !0,
2660
2660
  shouldShowHeaderShadow: u = !1,
2661
2661
  title: H,
2662
- ...P
2662
+ ...b
2663
2663
  }) => /* @__PURE__ */ e(
2664
2664
  ca,
2665
2665
  {
@@ -2675,8 +2675,8 @@ const Cc = ({
2675
2675
  backgroundColor: "background.paper"
2676
2676
  }
2677
2677
  },
2678
- ...P,
2679
- children: /* @__PURE__ */ s(b, { height: "100%", justifyContent: "space-between", children: [
2678
+ ...b,
2679
+ children: /* @__PURE__ */ s(P, { height: "100%", justifyContent: "space-between", children: [
2680
2680
  /* @__PURE__ */ e(
2681
2681
  Yc,
2682
2682
  {
@@ -2712,7 +2712,7 @@ const Cc = ({
2712
2712
  toolTipContent: o = "",
2713
2713
  variant: I = "outlined"
2714
2714
  }) => {
2715
- const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [P, p] = h.useState(!1), [y, x] = h.useState(!0), [w, D] = h.useState(6), m = {
2715
+ const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [b, p] = h.useState(!1), [y, x] = h.useState(!0), [w, D] = h.useState(6), j = {
2716
2716
  buttons: [
2717
2717
  { label: "3M", value: 3 },
2718
2718
  { label: "6M", value: 6 },
@@ -2729,9 +2729,9 @@ const Cc = ({
2729
2729
  h.useEffect(() => {
2730
2730
  H(n);
2731
2731
  }, [n]), h.useEffect(() => {
2732
- (I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(j());
2732
+ (I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(m());
2733
2733
  }, [w]);
2734
- const j = () => {
2734
+ const m = () => {
2735
2735
  const Y = BA(zt());
2736
2736
  return [BA(Ne(Y, w)), Y];
2737
2737
  }, O = (Y) => {
@@ -2782,7 +2782,7 @@ const Cc = ({
2782
2782
  [a.breakpoints.up("sm")]: { display: "inline-flex" }
2783
2783
  },
2784
2784
  children: [
2785
- I === "readonly" && /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 8, children: [
2785
+ I === "readonly" && /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
2786
2786
  /* @__PURE__ */ e(q, { name: "calendar_month", size: 24 }),
2787
2787
  /* @__PURE__ */ e(R, { bold: !0, children: nA(u[0], AA.MONTH_DAY) }),
2788
2788
  /* @__PURE__ */ e(q, { name: "remove" }),
@@ -2851,7 +2851,7 @@ const Cc = ({
2851
2851
  exclusive: !0,
2852
2852
  orientation: "horizontal",
2853
2853
  value: w,
2854
- children: m.buttons.map((Y) => /* @__PURE__ */ e(
2854
+ children: j.buttons.map((Y) => /* @__PURE__ */ e(
2855
2855
  gn,
2856
2856
  {
2857
2857
  onClick: () => tA(Y.value),
@@ -2893,7 +2893,7 @@ const Cc = ({
2893
2893
  textColor: "primary",
2894
2894
  value: w,
2895
2895
  variant: "fullWidth",
2896
- children: m.tabs.map((Y) => /* @__PURE__ */ e(
2896
+ children: j.tabs.map((Y) => /* @__PURE__ */ e(
2897
2897
  GA,
2898
2898
  {
2899
2899
  label: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: Y.label }),
@@ -2907,11 +2907,11 @@ const Cc = ({
2907
2907
  ]
2908
2908
  }
2909
2909
  ),
2910
- P && d && /* @__PURE__ */ e(
2910
+ b && d && /* @__PURE__ */ e(
2911
2911
  IA,
2912
2912
  {
2913
2913
  ariaLabelClose: i.dateRangeCloseAria,
2914
- isOpen: P,
2914
+ isOpen: b,
2915
2915
  onClose: () => p(!1),
2916
2916
  onPrimaryAction: () => {
2917
2917
  T(), p(!1);
@@ -2932,7 +2932,7 @@ const Cc = ({
2932
2932
  )
2933
2933
  }
2934
2934
  ),
2935
- P && !d && /* @__PURE__ */ e(
2935
+ b && !d && /* @__PURE__ */ e(
2936
2936
  XA,
2937
2937
  {
2938
2938
  copy: { title: i.dateRangeEditTitle },
@@ -3153,8 +3153,8 @@ const pt = ({
3153
3153
  sx: E = {},
3154
3154
  title: l = ""
3155
3155
  }) => {
3156
- const [v, { height: u, width: H }] = oI(), { onEvent: P } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: m, setSelectedAccountGuids: j } = pA(), { common: O } = X(), T = () => {
3157
- c && (c(), P(V.WIDGET_BACK_CLICK));
3156
+ const [v, { height: u, width: H }] = oI(), { onEvent: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: j, setSelectedAccountGuids: m } = pA(), { common: O } = X(), T = () => {
3157
+ c && (c(), b(V.WIDGET_BACK_CLICK));
3158
3158
  }, tA = {
3159
3159
  accountFilterOptionsCopy: {
3160
3160
  accountTypeAccounts: O.account_filter.account_type_accounts,
@@ -3208,7 +3208,7 @@ const pt = ({
3208
3208
  /* @__PURE__ */ e(
3209
3209
  rt,
3210
3210
  {
3211
- action: /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", children: [
3211
+ action: /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", children: [
3212
3212
  p && i && /* @__PURE__ */ e(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
3213
3213
  Dr,
3214
3214
  {
@@ -3225,9 +3225,9 @@ const pt = ({
3225
3225
  accounts: A,
3226
3226
  copy: tA,
3227
3227
  onFilterClick: (uA) => {
3228
- j(uA), d?.();
3228
+ m(uA), d?.();
3229
3229
  },
3230
- selectedAccountGuids: m,
3230
+ selectedAccountGuids: j,
3231
3231
  showAccountNumbers: !1,
3232
3232
  variant: "text"
3233
3233
  }
@@ -3266,7 +3266,7 @@ const pt = ({
3266
3266
  p: p ? 48 : 24,
3267
3267
  pb: 0
3268
3268
  },
3269
- title: p || w ? /* @__PURE__ */ e(it, { children: l }) : /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", children: [
3269
+ title: p || w ? /* @__PURE__ */ e(it, { children: l }) : /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", children: [
3270
3270
  x && c && /* @__PURE__ */ e(
3271
3271
  NA,
3272
3272
  {
@@ -3281,7 +3281,7 @@ const pt = ({
3281
3281
  }
3282
3282
  ),
3283
3283
  a && /* @__PURE__ */ e(G, { sx: { mt: p ? 48 : 24 } }),
3284
- i && (x || w) && /* @__PURE__ */ s(b, { gap: 24, justifyContent: "center", sx: { mt: 16 }, children: [
3284
+ i && (x || w) && /* @__PURE__ */ s(P, { gap: 24, justifyContent: "center", sx: { mt: 16 }, children: [
3285
3285
  f && /* @__PURE__ */ e(G, {}),
3286
3286
  /* @__PURE__ */ e(
3287
3287
  Dr,
@@ -3308,7 +3308,7 @@ const pt = ({
3308
3308
  position: "absolute",
3309
3309
  width: "100%"
3310
3310
  },
3311
- children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
3311
+ children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
3312
3312
  A === ct.Loading && /* @__PURE__ */ e(Xn, { color: "primary", size: 48 }),
3313
3313
  /* @__PURE__ */ e(
3314
3314
  R,
@@ -3383,9 +3383,9 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3383
3383
  setHasValidInput: f,
3384
3384
  ...E
3385
3385
  }) => {
3386
- const [l, v] = h.useState(""), { common: u } = X(), H = r || u.currency_input, P = KA(), p = Wc(P), y = /^[0-9]*$/, x = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\d)*(\.)?([0-9]{1,2})?$/;
3386
+ const [l, v] = h.useState(""), { common: u } = X(), H = r || u.currency_input, b = KA(), p = Wc(b), y = /^[0-9]*$/, x = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\d)*(\.)?([0-9]{1,2})?$/;
3387
3387
  let D;
3388
- const m = h.useRef(Fa());
3388
+ const j = h.useRef(Fa());
3389
3389
  if (A)
3390
3390
  switch (_s()) {
3391
3391
  case ui.CAD:
@@ -3398,9 +3398,9 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3398
3398
  else
3399
3399
  D = y;
3400
3400
  h.useEffect(() => {
3401
- j(i);
3401
+ m(i);
3402
3402
  }, [i]);
3403
- const j = (O) => {
3403
+ const m = (O) => {
3404
3404
  !n && (O === "" || O === "." || O === ",") ? (v(""), f?.(!1)) : Number(O) < c ? (v(
3405
3405
  z(
3406
3406
  H.error_amount_must_be_equal_to,
@@ -3430,8 +3430,8 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3430
3430
  pattern: "[0-9]*"
3431
3431
  },
3432
3432
  label: a,
3433
- name: `currency-input-${m.current}`,
3434
- onChange: (O) => j(O.target.value),
3433
+ name: `currency-input-${j.current}`,
3434
+ onChange: (O) => m(O.target.value),
3435
3435
  value: i,
3436
3436
  ...E
3437
3437
  }
@@ -3442,7 +3442,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3442
3442
  }
3443
3443
  }), ee = ({ label: A = "", size: t = 32 }) => {
3444
3444
  const i = KA();
3445
- return /* @__PURE__ */ s(b, { alignItems: "center", gap: i.Spacing.XLarge, height: 450, justifyContent: "center", children: [
3445
+ return /* @__PURE__ */ s(P, { alignItems: "center", gap: i.Spacing.XLarge, height: 450, justifyContent: "center", children: [
3446
3446
  /* @__PURE__ */ e(Xn, { size: t }),
3447
3447
  A && /* @__PURE__ */ e(R, { children: A })
3448
3448
  ] });
@@ -3572,7 +3572,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3572
3572
  size: i,
3573
3573
  sx: n
3574
3574
  }) => /* @__PURE__ */ s(
3575
- b,
3575
+ P,
3576
3576
  {
3577
3577
  sx: {
3578
3578
  display: "grid",
@@ -3623,7 +3623,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3623
3623
  qt,
3624
3624
  {
3625
3625
  enterTouchDelay: 500,
3626
- title: /* @__PURE__ */ s(b, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
3626
+ title: /* @__PURE__ */ s(P, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
3627
3627
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: i }),
3628
3628
  /* @__PURE__ */ e(R, { sx: { whiteSpace: "unset" }, variant: "Small", children: A })
3629
3629
  ] }),
@@ -3660,7 +3660,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3660
3660
  title: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: i })
3661
3661
  }
3662
3662
  ),
3663
- /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ s(b, { alignItems: "flex-start", spacing: 2, children: [
3663
+ /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ s(P, { alignItems: "flex-start", spacing: 2, children: [
3664
3664
  /* @__PURE__ */ e(R, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: A }),
3665
3665
  /* @__PURE__ */ e(
3666
3666
  $,
@@ -3710,7 +3710,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3710
3710
  /* @__PURE__ */ e(
3711
3711
  eA,
3712
3712
  {
3713
- primary: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
3713
+ primary: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
3714
3714
  /* @__PURE__ */ e(R, { variant: "Body", children: I }),
3715
3715
  /* @__PURE__ */ e(
3716
3716
  R,
@@ -3796,7 +3796,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3796
3796
  pl: 0
3797
3797
  },
3798
3798
  children: [
3799
- /* @__PURE__ */ e(eA, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ s(b, { children: [
3799
+ /* @__PURE__ */ e(eA, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ s(P, { children: [
3800
3800
  /* @__PURE__ */ e(R, { variant: "Body", children: r }),
3801
3801
  /* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: o })
3802
3802
  ] }) }) }),
@@ -4210,18 +4210,18 @@ const Nt = () => {
4210
4210
  }, [n, o]), h.useEffect(() => {
4211
4211
  u && E(u), v(H);
4212
4212
  }, [u, H]);
4213
- const P = h.useMemo(
4213
+ const b = h.useMemo(
4214
4214
  () => n.filter((w) => o.includes(w.guid)).reduce((w, D) => w + (D?.balance || 0), 0),
4215
4215
  [o, H]
4216
4216
  ), p = h.useMemo(
4217
4217
  () => d.filter((w) => o.includes(w.accountGuid || "")).reduce((w, D) => w + D.amount, 0),
4218
4218
  [o, d]
4219
4219
  ), y = h.useMemo(
4220
- () => P - p,
4221
- [P, p]
4220
+ () => b - p,
4221
+ [b, p]
4222
4222
  ), x = a?.has_completed_cash_flow_onboarding && !!A;
4223
4223
  return /* @__PURE__ */ e(L, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: i > 610 ? /* @__PURE__ */ s(
4224
- b,
4224
+ P,
4225
4225
  {
4226
4226
  border: `1px solid ${t.palette.border.light}`,
4227
4227
  borderRadius: 1,
@@ -4229,27 +4229,27 @@ const Nt = () => {
4229
4229
  justifyContent: "space-between",
4230
4230
  px: 24,
4231
4231
  children: [
4232
- /* @__PURE__ */ s(b, { pb: 14, pt: 12, children: [
4233
- /* @__PURE__ */ e(OA, { amount: P, variant: "H2" }),
4232
+ /* @__PURE__ */ s(P, { pb: 14, pt: 12, children: [
4233
+ /* @__PURE__ */ e(OA, { amount: b, variant: "H2" }),
4234
4234
  /* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: z(
4235
4235
  I.total_cash_accounts,
4236
4236
  f.length
4237
4237
  ) })
4238
4238
  ] }),
4239
- /* @__PURE__ */ e(b, { pt: 18, children: /* @__PURE__ */ e(q, { name: "remove" }) }),
4240
- /* @__PURE__ */ s(b, { pb: 14, pt: 12, children: [
4239
+ /* @__PURE__ */ e(P, { pt: 18, children: /* @__PURE__ */ e(q, { name: "remove" }) }),
4240
+ /* @__PURE__ */ s(P, { pb: 14, pt: 12, children: [
4241
4241
  /* @__PURE__ */ e(OA, { amount: p, variant: "H2" }),
4242
4242
  /* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: z(I.expenses_due, d.length) })
4243
4243
  ] }),
4244
- /* @__PURE__ */ e(b, { pt: 18, children: /* @__PURE__ */ e(q, { name: "equals" }) }),
4245
- /* @__PURE__ */ s(b, { pb: 14, pr: 24, pt: 12, children: [
4244
+ /* @__PURE__ */ e(P, { pt: 18, children: /* @__PURE__ */ e(q, { name: "equals" }) }),
4245
+ /* @__PURE__ */ s(P, { pb: 14, pr: 24, pt: 12, children: [
4246
4246
  /* @__PURE__ */ e(OA, { amount: y, variant: "H2" }),
4247
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 8, children: [
4247
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
4248
4248
  /* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: I.available_to_spend }),
4249
4249
  /* @__PURE__ */ e(Ci, { body: I.tooltip_body, title: I.tooltip_title })
4250
4250
  ] })
4251
4251
  ] }),
4252
- /* @__PURE__ */ e(b, { borderLeft: `1px solid ${t.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: x ? /* @__PURE__ */ s(Z, { children: [
4252
+ /* @__PURE__ */ e(P, { borderLeft: `1px solid ${t.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: x ? /* @__PURE__ */ s(Z, { children: [
4253
4253
  /* @__PURE__ */ e(R, { variant: "H2", children: z(I.days, c) }),
4254
4254
  /* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: I.next_paycheck })
4255
4255
  ] }) : /* @__PURE__ */ e(
@@ -4263,8 +4263,8 @@ const Nt = () => {
4263
4263
  ) })
4264
4264
  ]
4265
4265
  }
4266
- ) : /* @__PURE__ */ s(b, { border: `1px solid ${t.palette.border.light}`, borderRadius: 1, children: [
4267
- /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
4266
+ ) : /* @__PURE__ */ s(P, { border: `1px solid ${t.palette.border.light}`, borderRadius: 1, children: [
4267
+ /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", p: 16, children: [
4268
4268
  /* @__PURE__ */ e(R, { variant: "Small", children: z(
4269
4269
  I.total_cash_accounts,
4270
4270
  f.length
@@ -4272,13 +4272,13 @@ const Nt = () => {
4272
4272
  /* @__PURE__ */ e(OA, { amount: r, bold: !0, variant: "XSmall" })
4273
4273
  ] }),
4274
4274
  /* @__PURE__ */ e(G, {}),
4275
- /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
4275
+ /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", p: 16, children: [
4276
4276
  /* @__PURE__ */ e(R, { variant: "Small", children: z(I.expenses_due, d.length) }),
4277
4277
  /* @__PURE__ */ e(OA, { amount: p, bold: !0, symbol: "-", variant: "XSmall" })
4278
4278
  ] }),
4279
4279
  /* @__PURE__ */ e(G, {}),
4280
4280
  /* @__PURE__ */ e(
4281
- b,
4281
+ P,
4282
4282
  {
4283
4283
  alignItems: "center",
4284
4284
  bgcolor: "background.default",
@@ -4292,11 +4292,11 @@ const Nt = () => {
4292
4292
  }
4293
4293
  ),
4294
4294
  /* @__PURE__ */ e(G, {}),
4295
- x ? /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
4295
+ x ? /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", p: 16, children: [
4296
4296
  /* @__PURE__ */ e(R, { variant: "Small", children: I.next_paycheck }),
4297
4297
  /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: z(I.days, c) })
4298
4298
  ] }) : /* @__PURE__ */ s(
4299
- b,
4299
+ P,
4300
4300
  {
4301
4301
  alignItems: "center",
4302
4302
  direction: "row",
@@ -4498,7 +4498,7 @@ const cf = [
4498
4498
  [d]: E
4499
4499
  };
4500
4500
  }, {});
4501
- return A.filter((a) => !r[a.account_guid]?.is_closed).map((a) => {
4501
+ return A.map((a) => {
4502
4502
  const c = r[a.account_guid], d = a.category_guid ? o[a.category_guid] : null, f = I[a.guid] ?? [];
4503
4503
  return {
4504
4504
  ...a,
@@ -5108,8 +5108,8 @@ const Pe = () => {
5108
5108
  eA,
5109
5109
  {
5110
5110
  disableTypography: !0,
5111
- secondary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
5112
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 4, children: [
5111
+ secondary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
5112
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, children: [
5113
5113
  A.is_flagged && /* @__PURE__ */ e(q, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
5114
5114
  A.is_hidden && /* @__PURE__ */ e(q, { name: "visibility_off", size: 16 }),
5115
5115
  A.has_been_split && /* @__PURE__ */ e(q, { name: "call_split", size: 16 }),
@@ -5117,7 +5117,7 @@ const Pe = () => {
5117
5117
  ] }),
5118
5118
  I && r && /* @__PURE__ */ e(R, { bold: !0, color: "action.active", variant: "XSmall", children: I.short_title })
5119
5119
  ] }),
5120
- children: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
5120
+ children: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
5121
5121
  /* @__PURE__ */ s(R, { bold: !0, variant: "Body", children: [
5122
5122
  A.is_hidden && n.hide_trnx_cancel_hidden_note,
5123
5123
  A.payee || A.description || A.feed_description
@@ -5146,7 +5146,7 @@ const Pe = () => {
5146
5146
  children: t
5147
5147
  }) => /* @__PURE__ */ e(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: A, width: "100%" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t }) }), xf = ({ showIcon: A = !0, showSubtitle: t = !0 }) => {
5148
5148
  const i = KA(), { transactions: n } = X();
5149
- return /* @__PURE__ */ s(b, { alignItems: "center", gap: i.Spacing.Small, height: "auto", mt: i.Spacing.Large, children: [
5149
+ return /* @__PURE__ */ s(P, { alignItems: "center", gap: i.Spacing.Small, height: "auto", mt: i.Spacing.Large, children: [
5150
5150
  A && /* @__PURE__ */ e(bs, { color: "secondary", sx: { fontSize: 32 } }),
5151
5151
  /* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: n.zero_state_no_transactions }),
5152
5152
  t && /* @__PURE__ */ e(R, { color: "secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
@@ -5162,57 +5162,58 @@ const Pe = () => {
5162
5162
  height: t = "calc(100dvh - 36px)",
5163
5163
  loader: i = /* @__PURE__ */ e(ee, { label: "Loading", size: 40 }),
5164
5164
  onClick: n,
5165
- showInsights: r = !1,
5166
- showLoader: o = !1,
5167
- width: I = "100%",
5168
- zeroState: a = /* @__PURE__ */ e(Df, {})
5165
+ showClosedAccounts: r = !1,
5166
+ showInsights: o = !1,
5167
+ showLoader: I = !1,
5168
+ width: a = "100%",
5169
+ zeroState: c = /* @__PURE__ */ e(Df, {})
5169
5170
  }) => {
5170
- const { isLoading: c, sortedTransactions: d } = PA(), { setShowInsights: f, toggleSplit: E } = Pe(), { onEvent: l } = K(), v = (P) => {
5171
- const p = d.find((y) => y.guid === P);
5172
- if (p?.has_been_split) {
5173
- E(p.guid);
5171
+ const { isLoading: d, sortedTransactions: f } = PA(), E = h.useMemo(() => r ? f : f.filter((y) => !y.accountIsClosed), [f, r]), { setShowInsights: l, toggleSplit: v } = Pe(), { onEvent: u } = K(), H = (y) => {
5172
+ const x = E.find((w) => w.guid === y);
5173
+ if (x?.has_been_split) {
5174
+ v(x.guid);
5174
5175
  return;
5175
5176
  }
5176
- l(V.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5177
- account_guid: p?.account_guid,
5178
- transaction_guid: P
5179
- }), n?.(P);
5180
- }, u = h.useRef(null), H = mo({
5181
- count: d.length,
5182
- getScrollElement: () => u.current,
5183
- estimateSize: (P) => Tr + (Nr(P, d) ? Yr : 0),
5177
+ u(V.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5178
+ account_guid: x?.account_guid,
5179
+ transaction_guid: y
5180
+ }), n?.(y);
5181
+ }, b = h.useRef(null), p = mo({
5182
+ count: E.length,
5183
+ getScrollElement: () => b.current,
5184
+ estimateSize: (y) => Tr + (Nr(y, E) ? Yr : 0),
5184
5185
  overscan: 5
5185
5186
  });
5186
- return h.useEffect(() => H.measure(), [d]), h.useEffect(() => f(r), [r]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: u, width: I, children: /* @__PURE__ */ s(
5187
+ return h.useEffect(() => p.measure(), [E]), h.useEffect(() => l(o), [o]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: b, width: a, children: /* @__PURE__ */ s(
5187
5188
  L,
5188
5189
  {
5189
5190
  height: (
5190
5191
  // set the height to auto when there are no transactions so the zero state isn't set to 0
5191
- H.getVirtualItems().length === 0 ? "auto" : H.getTotalSize()
5192
+ p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize()
5192
5193
  ),
5193
5194
  position: "relative",
5194
5195
  width: "100%",
5195
5196
  children: [
5196
- (c || o) && i,
5197
- !c && !o && H.getVirtualItems().length === 0 && a,
5198
- !c && !o && H.getVirtualItems().length > 0 && H.getVirtualItems().map((P) => {
5199
- const p = d[P.index], y = Nr(P.index, d), x = jf(P.index, d), w = Tr + (y ? Yr : 0);
5197
+ (d || I) && i,
5198
+ !d && !I && p.getVirtualItems().length === 0 && c,
5199
+ !d && !I && p.getVirtualItems().length > 0 && p.getVirtualItems().map((y) => {
5200
+ const x = E[y.index], w = Nr(y.index, E), D = jf(y.index, E), j = Tr + (w ? Yr : 0);
5200
5201
  return /* @__PURE__ */ s(
5201
5202
  L,
5202
5203
  {
5203
5204
  sx: {
5204
- height: w,
5205
+ height: j,
5205
5206
  position: "absolute",
5206
- transform: `translateY(${P.start}px)`,
5207
+ transform: `translateY(${y.start}px)`,
5207
5208
  width: "100%"
5208
5209
  },
5209
5210
  children: [
5210
- y && /* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(p.date) }),
5211
- /* @__PURE__ */ e(Bn, { onClick: v, transaction: p }),
5212
- /* @__PURE__ */ e(G, { sx: { ml: x ? 24 : 0 } })
5211
+ w && /* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(x.date) }),
5212
+ /* @__PURE__ */ e(Bn, { onClick: H, transaction: x }),
5213
+ /* @__PURE__ */ e(G, { sx: { ml: D ? 24 : 0 } })
5213
5214
  ]
5214
5215
  },
5215
- p.guid
5216
+ x.guid
5216
5217
  );
5217
5218
  })
5218
5219
  ]
@@ -5223,7 +5224,7 @@ const Pe = () => {
5223
5224
  A.row.number && ` | ${A.row.number}`
5224
5225
  ] }), Lf = (A) => {
5225
5226
  const { associatedBeats: t } = PA(), { showInsights: i } = Pe(), { amount: n, transaction_type: r } = A.row, o = t.find((a) => a.associated_transaction_guid === A.row.guid), I = r === se.CREDIT;
5226
- return /* @__PURE__ */ s(b, { alignItems: "flex-end", tabIndex: A.tabIndex, children: [
5227
+ return /* @__PURE__ */ s(P, { alignItems: "flex-end", tabIndex: A.tabIndex, children: [
5227
5228
  /* @__PURE__ */ s(R, { color: I ? "success.main" : "text.primary", variant: "Small", children: [
5228
5229
  I ? "+" : "",
5229
5230
  M(n, "0,0.00")
@@ -5233,7 +5234,7 @@ const Pe = () => {
5233
5234
  }, Qf = (A) => {
5234
5235
  const { transactions: t } = X(), [i, n] = h.useState(!1);
5235
5236
  return /* @__PURE__ */ s(
5236
- b,
5237
+ P,
5237
5238
  {
5238
5239
  alignItems: "center",
5239
5240
  direction: "row",
@@ -5277,7 +5278,7 @@ const Pe = () => {
5277
5278
  ]
5278
5279
  }
5279
5280
  );
5280
- }, Nf = C(Mf), St = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", children: A.colDef.headerName }), Tf = (A) => /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 8, children: [
5281
+ }, Nf = C(Mf), St = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", children: A.colDef.headerName }), Tf = (A) => /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
5281
5282
  /* @__PURE__ */ e(
5282
5283
  vt,
5283
5284
  {
@@ -5513,7 +5514,7 @@ const Bf = ({
5513
5514
  showSelected: I,
5514
5515
  unselectable: a,
5515
5516
  unselectableText: c
5516
- } = ot(), { categories: d } = X(), { onEvent: f } = K(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), H = !!t.revision, P = t.guid === n, p = !a.some((x) => x === t.guid);
5517
+ } = ot(), { categories: d } = X(), { onEvent: f } = K(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), H = !!t.revision, b = t.guid === n, p = !a.some((x) => x === t.guid);
5517
5518
  return /* @__PURE__ */ s(
5518
5519
  W,
5519
5520
  {
@@ -5525,7 +5526,7 @@ const Bf = ({
5525
5526
  /* @__PURE__ */ s(
5526
5527
  aA,
5527
5528
  {
5528
- "aria-pressed": P,
5529
+ "aria-pressed": b,
5529
5530
  color: "secondary",
5530
5531
  onClick: () => {
5531
5532
  p && (r(t.guid), i(t.guid), f(je.ON_CATEGORY_SELECTED));
@@ -5539,7 +5540,7 @@ const Bf = ({
5539
5540
  primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
5540
5541
  }
5541
5542
  ),
5542
- I && P && /* @__PURE__ */ e(Oi, { fontSize: "small" }),
5543
+ I && b && /* @__PURE__ */ e(Oi, { fontSize: "small" }),
5543
5544
  !p && /* @__PURE__ */ e(Xs, { label: c })
5544
5545
  ]
5545
5546
  }
@@ -5698,7 +5699,7 @@ const Bf = ({
5698
5699
  {
5699
5700
  ariaLabel: c.search_aria,
5700
5701
  cancelAriaLabel: c.cancel_search_aria,
5701
- onChange: (P) => E(P),
5702
+ onChange: (b) => E(b),
5702
5703
  placeholder: c.search_placeholder,
5703
5704
  searchValue: d
5704
5705
  }
@@ -5926,26 +5927,26 @@ class cd {
5926
5927
  getCategoryName = (t) => this.categories.find((n) => n.guid === t)?.name ?? qi[t];
5927
5928
  }
5928
5929
  const EI = ({ transaction: A }) => {
5929
- const { addOrUpdateTransactionRule: t, updateTransaction: i } = PA(), { categories: n } = qA(), { onEvent: r } = K(), { setShouldDisableDrawerScroll: o, updateManualTransaction: I } = Pe(), { transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(""), l = async (P) => {
5930
- await i({ ...A, category_guid: f }), P && await t(f, A), E(""), r(V.TRANSACTION_DETAILS_CLICK_CATEGORY, {
5930
+ const { addOrUpdateTransactionRule: t, updateTransaction: i } = PA(), { categories: n } = qA(), { onEvent: r } = K(), { setShouldDisableDrawerScroll: o, updateManualTransaction: I } = Pe(), { transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(""), l = async (b) => {
5931
+ await i({ ...A, category_guid: f }), b && await t(f, A), E(""), r(V.TRANSACTION_DETAILS_CLICK_CATEGORY, {
5931
5932
  transaction_guid: A.guid
5932
5933
  });
5933
- }, v = (P) => {
5934
+ }, v = (b) => {
5934
5935
  if (A.is_manual && !A.guid) {
5935
- const p = n.find((y) => y.guid === P);
5936
+ const p = n.find((y) => y.guid === b);
5936
5937
  I({
5937
5938
  ...A,
5938
5939
  category: p?.name,
5939
- category_guid: P,
5940
- top_level_category_guid: p?.parent_guid || P
5940
+ category_guid: b,
5941
+ top_level_category_guid: p?.parent_guid || b
5941
5942
  });
5942
5943
  } else
5943
- E(P);
5944
+ E(b);
5944
5945
  u();
5945
5946
  }, u = () => {
5946
5947
  d(!1), o(!1);
5947
5948
  }, H = h.useMemo(
5948
- () => n.find((P) => P.guid === f),
5949
+ () => n.find((b) => b.guid === f),
5949
5950
  [f]
5950
5951
  );
5951
5952
  return /* @__PURE__ */ s(h.Fragment, { children: [
@@ -6051,7 +6052,7 @@ const EI = ({ transaction: A }) => {
6051
6052
  primaryText: o.save_button,
6052
6053
  secondaryText: o.cancel_button,
6053
6054
  title: I.date_edit_title,
6054
- children: /* @__PURE__ */ e(b, { alignItems: "center", mt: t.Spacing.XXLarge, children: /* @__PURE__ */ e(
6055
+ children: /* @__PURE__ */ e(P, { alignItems: "center", mt: t.Spacing.XXLarge, children: /* @__PURE__ */ e(
6055
6056
  Cc,
6056
6057
  {
6057
6058
  beginDate: yA(d),
@@ -6219,7 +6220,7 @@ const EI = ({ transaction: A }) => {
6219
6220
  ] });
6220
6221
  }, vd = C(ld), lI = ({ transaction: A }) => {
6221
6222
  const { amount: t, description: i, isIncome: n, merchant_guid: r, payee: o, top_level_category_guid: I } = A;
6222
- return /* @__PURE__ */ s(b, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
6223
+ return /* @__PURE__ */ s(P, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
6223
6224
  /* @__PURE__ */ e(
6224
6225
  vt,
6225
6226
  {
@@ -6228,7 +6229,7 @@ const EI = ({ transaction: A }) => {
6228
6229
  size: 64
6229
6230
  }
6230
6231
  ),
6231
- /* @__PURE__ */ s(b, { overflow: "hidden'", children: [
6232
+ /* @__PURE__ */ s(P, { overflow: "hidden'", children: [
6232
6233
  /* @__PURE__ */ e(R, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || o }),
6233
6234
  /* @__PURE__ */ s(it, { color: n ? "success.main" : "text.primary", truncate: !0, children: [
6234
6235
  n ? "+" : "",
@@ -6325,7 +6326,7 @@ const EI = ({ transaction: A }) => {
6325
6326
  px: o.Spacing.XSmall,
6326
6327
  children: [
6327
6328
  /* @__PURE__ */ s(YA, { alignItems: l ? "center" : "start", container: !0, children: [
6328
- /* @__PURE__ */ e(YA, { item: !0, xs: 7, children: /* @__PURE__ */ s(b, { alignItems: "start", children: [
6329
+ /* @__PURE__ */ e(YA, { item: !0, xs: 7, children: /* @__PURE__ */ s(P, { alignItems: "start", children: [
6329
6330
  /* @__PURE__ */ e(
6330
6331
  $,
6331
6332
  {
@@ -6337,7 +6338,7 @@ const EI = ({ transaction: A }) => {
6337
6338
  }
6338
6339
  ),
6339
6340
  /* @__PURE__ */ e(L, { children: !r.category_guid && /* @__PURE__ */ s(
6340
- b,
6341
+ P,
6341
6342
  {
6342
6343
  color: "error.main",
6343
6344
  direction: "row",
@@ -6350,8 +6351,8 @@ const EI = ({ transaction: A }) => {
6350
6351
  }
6351
6352
  ) })
6352
6353
  ] }) }),
6353
- /* @__PURE__ */ e(YA, { item: !0, xs: 5, children: l ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(R, { children: M(r.amount, "0,0.00") }) }) : /* @__PURE__ */ s(b, { alignItems: "start", children: [
6354
- /* @__PURE__ */ s(b, { alignItems: "start", direction: "row", gap: o.Spacing.XSmall, children: [
6354
+ /* @__PURE__ */ e(YA, { item: !0, xs: 5, children: l ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(R, { children: M(r.amount, "0,0.00") }) }) : /* @__PURE__ */ s(P, { alignItems: "start", children: [
6355
+ /* @__PURE__ */ s(P, { alignItems: "start", direction: "row", gap: o.Spacing.XSmall, children: [
6355
6356
  /* @__PURE__ */ e(
6356
6357
  qe,
6357
6358
  {
@@ -6378,7 +6379,7 @@ const EI = ({ transaction: A }) => {
6378
6379
  )
6379
6380
  ] }),
6380
6381
  !c && /* @__PURE__ */ s(
6381
- b,
6382
+ P,
6382
6383
  {
6383
6384
  color: "error.main",
6384
6385
  direction: "row",
@@ -6436,7 +6437,7 @@ const EI = ({ transaction: A }) => {
6436
6437
  l
6437
6438
  )),
6438
6439
  d && /* @__PURE__ */ s(
6439
- b,
6440
+ P,
6440
6441
  {
6441
6442
  color: "error.main",
6442
6443
  direction: "row",
@@ -6475,7 +6476,7 @@ const EI = ({ transaction: A }) => {
6475
6476
  has_been_split: !1,
6476
6477
  parent_guid: A.guid,
6477
6478
  top_level_category_guid: void 0
6478
- }, [f, E] = h.useState(!1), [l, v] = h.useState(!1), [u, H] = h.useState([]), P = () => {
6479
+ }, [f, E] = h.useState(!1), [l, v] = h.useState(!1), [u, H] = h.useState([]), b = () => {
6479
6480
  const T = [...u];
6480
6481
  T.push({ ...d }), T[0].amount -= 1, H(T);
6481
6482
  }, p = (T) => {
@@ -6507,9 +6508,9 @@ const EI = ({ transaction: A }) => {
6507
6508
  }), E(!0);
6508
6509
  }, D = async () => {
6509
6510
  t(S.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...A, has_been_split: !0 }, u), E(!1);
6510
- }, m = async () => {
6511
- t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
6512
6511
  }, j = async () => {
6512
+ t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
6513
+ }, m = async () => {
6513
6514
  t(V.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
6514
6515
  transaction_guid: A.guid
6515
6516
  });
@@ -6537,7 +6538,7 @@ const EI = ({ transaction: A }) => {
6537
6538
  ariaLabelClose: r.close_aria,
6538
6539
  isOpen: f,
6539
6540
  isPrimaryDisabled: O,
6540
- onClose: m,
6541
+ onClose: j,
6541
6542
  onPrimaryAction: D,
6542
6543
  primaryText: r.save_button,
6543
6544
  secondaryText: r.cancel_button,
@@ -6547,7 +6548,7 @@ const EI = ({ transaction: A }) => {
6547
6548
  /* @__PURE__ */ e(
6548
6549
  Hd,
6549
6550
  {
6550
- onAddSplit: P,
6551
+ onAddSplit: b,
6551
6552
  onCategoryChanged: x,
6552
6553
  onDeleteSplit: p,
6553
6554
  onUpdateAmount: y,
@@ -6566,7 +6567,7 @@ const EI = ({ transaction: A }) => {
6566
6567
  onClose: () => {
6567
6568
  I(!1), v(!1);
6568
6569
  },
6569
- onPrimaryAction: j,
6570
+ onPrimaryAction: m,
6570
6571
  onSecondaryAction: () => {
6571
6572
  t(S.ON_TRANSACTION_UNSPLIT_CANCEL);
6572
6573
  },
@@ -6595,7 +6596,7 @@ const EI = ({ transaction: A }) => {
6595
6596
  d(I.length > 40 ? n.tags_error_name_must_be_40_chars : "");
6596
6597
  }, [I]), /* @__PURE__ */ s(L, { className: "mx-txn-tag-manager-header", children: [
6597
6598
  /* @__PURE__ */ s(
6598
- b,
6599
+ P,
6599
6600
  {
6600
6601
  alignItems: "center",
6601
6602
  bgcolor: A.palette.background.default,
@@ -6667,7 +6668,7 @@ const EI = ({ transaction: A }) => {
6667
6668
  }
6668
6669
  ) });
6669
6670
  }, wd = C(pd), yd = ({ onTagChecked: A, selectedTags: t, tag: i }) => {
6670
- const { onEvent: n } = K(), { removeTag: r, updateTag: o } = PA(), { common: I, transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(""), P = async () => {
6671
+ const { onEvent: n } = K(), { removeTag: r, updateTag: o } = PA(), { common: I, transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(""), b = async () => {
6671
6672
  n(S.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await o({ ...i, name: l }), d(!1);
6672
6673
  }, p = async () => {
6673
6674
  n(S.ON_TRANSACTION_TAGS_TAG_DELETED), await r(i.guid), E(!1);
@@ -6686,7 +6687,7 @@ const EI = ({ transaction: A }) => {
6686
6687
  className: "mx-txn-transaction-manager-row",
6687
6688
  disableGutters: !0,
6688
6689
  disablePadding: !0,
6689
- secondaryAction: !i.is_default_tag && /* @__PURE__ */ s(b, { direction: "row", children: [
6690
+ secondaryAction: !i.is_default_tag && /* @__PURE__ */ s(P, { direction: "row", children: [
6690
6691
  /* @__PURE__ */ e(
6691
6692
  NA,
6692
6693
  {
@@ -6725,7 +6726,7 @@ const EI = ({ transaction: A }) => {
6725
6726
  copy: { title: "Update tag name" },
6726
6727
  isOpen: c,
6727
6728
  onClose: () => d(!1),
6728
- onPrimaryAction: P,
6729
+ onPrimaryAction: b,
6729
6730
  onSecondaryAction: () => d(!1),
6730
6731
  children: [
6731
6732
  /* @__PURE__ */ e(
@@ -6784,8 +6785,8 @@ const EI = ({ transaction: A }) => {
6784
6785
  E(A.tags);
6785
6786
  }, [c, A]);
6786
6787
  const l = (H) => {
6787
- const P = [...f], p = f.indexOf(H);
6788
- p >= 0 ? P.splice(p, 1) : P.push(H), E(P);
6788
+ const b = [...f], p = f.indexOf(H);
6789
+ p >= 0 ? b.splice(p, 1) : b.push(H), E(b);
6789
6790
  }, v = async () => {
6790
6791
  if (A.is_manual && !A.guid) {
6791
6792
  a({ ...A, tags: f }), d(!1);
@@ -6794,7 +6795,7 @@ const EI = ({ transaction: A }) => {
6794
6795
  await n(f, A.guid), await r({ ...A }), t(V.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), d(!1);
6795
6796
  }, u = h.useMemo(
6796
6797
  () => A.tags.map(
6797
- (H, P, p) => `${i.find((y) => y.guid === H)?.name}${P < p.length - 1 ? " / " : ""}`
6798
+ (H, b, p) => `${i.find((y) => y.guid === H)?.name}${b < p.length - 1 ? " / " : ""}`
6798
6799
  ),
6799
6800
  [i, A]
6800
6801
  );
@@ -6870,7 +6871,7 @@ const EI = ({ transaction: A }) => {
6870
6871
  children: i.save_button
6871
6872
  }
6872
6873
  )
6873
- ] }) : /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 4, children: [
6874
+ ] }) : /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, children: [
6874
6875
  /* @__PURE__ */ e(R, { bold: !0, children: A.description }),
6875
6876
  /* @__PURE__ */ e(
6876
6877
  NA,
@@ -6925,8 +6926,8 @@ const EI = ({ transaction: A }) => {
6925
6926
  return h.useEffect(
6926
6927
  () => o(V.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
6927
6928
  []
6928
- ), /* @__PURE__ */ e(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ s(b, { children: [
6929
- /* @__PURE__ */ s(b, { gap: n.Spacing.Small, p: n.Spacing.Large, children: [
6929
+ ), /* @__PURE__ */ e(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ s(P, { children: [
6930
+ /* @__PURE__ */ s(P, { gap: n.Spacing.Small, p: n.Spacing.Large, children: [
6930
6931
  /* @__PURE__ */ e(De, { elevation: 2, sx: { borderRadius: n.BorderRadius.Small, width: 64 }, children: /* @__PURE__ */ e(
6931
6932
  vt,
6932
6933
  {
@@ -6936,7 +6937,7 @@ const EI = ({ transaction: A }) => {
6936
6937
  }
6937
6938
  ) }),
6938
6939
  /* @__PURE__ */ e(Ld, { transaction: i }),
6939
- /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
6940
+ /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
6940
6941
  /* @__PURE__ */ s(it, { color: i.isIncome ? "success.main" : "text.primary", children: [
6941
6942
  i.isIncome ? "+" : "",
6942
6943
  M(i.amount, "0,0.00")
@@ -6944,7 +6945,7 @@ const EI = ({ transaction: A }) => {
6944
6945
  /* @__PURE__ */ e(qd, { transaction: i })
6945
6946
  ] }),
6946
6947
  /* @__PURE__ */ s(
6947
- b,
6948
+ P,
6948
6949
  {
6949
6950
  bgcolor: "background.highlight",
6950
6951
  borderRadius: n.BorderRadius.Small,
@@ -6997,29 +6998,29 @@ const EI = ({ transaction: A }) => {
6997
6998
  );
6998
6999
  }, Nd = C(Md), Td = () => {
6999
7000
  const { selectedAccounts: A } = pA(), { common: t, transactions: i } = X(), { manualTransaction: n, setIsAmountValid: r, updateManualTransaction: o } = Pe(), [I, a] = h.useState(""), [c, d] = h.useState(""), f = h.useMemo(
7000
- () => A.filter((P) => P.is_manual),
7001
+ () => A.filter((b) => b.is_manual),
7001
7002
  [A]
7002
- ).map((P) => ({
7003
- label: `${P.name} | ${M(P.balance, "0,0.00")}`,
7004
- value: P.guid
7003
+ ).map((b) => ({
7004
+ label: `${b.name} | ${M(b.balance, "0,0.00")}`,
7005
+ value: b.guid
7005
7006
  })), E = {
7006
7007
  error_amount_is_invalid: t.currency_input.error_amount_is_invalid,
7007
7008
  error_amount_must_be_equal_to: t.currency_input.error_amount_must_be_equal_to,
7008
7009
  error_amount_must_be_less_than_or_equal_to: t.currency_input.error_amount_must_be_less_than_or_equal_to,
7009
7010
  enter_amount: t.currency_input.enter_amount
7010
- }, l = (P) => {
7011
- a(P), o({ ...n, amount: Number(P) });
7012
- }, v = (P, p) => {
7011
+ }, l = (b) => {
7012
+ a(b), o({ ...n, amount: Number(b) });
7013
+ }, v = (b, p) => {
7013
7014
  o({ ...n, transaction_type: Number(p) });
7014
- }, u = (P) => {
7015
- d(P), o({ ...n, payee: P, description: P });
7016
- }, H = (P) => {
7017
- o({ ...n, account_guid: P });
7015
+ }, u = (b) => {
7016
+ d(b), o({ ...n, payee: b, description: b });
7017
+ }, H = (b) => {
7018
+ o({ ...n, account_guid: b });
7018
7019
  };
7019
7020
  return /* @__PURE__ */ s(L, { className: "mx-txn-manual-transaction-details", children: [
7020
- /* @__PURE__ */ s(b, { gap: 40, mx: 24, my: 32, children: [
7021
+ /* @__PURE__ */ s(P, { gap: 40, mx: 24, my: 32, children: [
7021
7022
  /* @__PURE__ */ s(
7022
- b,
7023
+ P,
7023
7024
  {
7024
7025
  direction: "row",
7025
7026
  sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
@@ -7037,7 +7038,7 @@ const EI = ({ transaction: A }) => {
7037
7038
  sx: { bgcolor: "background.paper" }
7038
7039
  }
7039
7040
  ),
7040
- /* @__PURE__ */ e(hs, { name: "TransactionType", onChange: v, row: !0, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", children: [
7041
+ /* @__PURE__ */ e(hs, { name: "TransactionType", onChange: v, row: !0, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
7041
7042
  /* @__PURE__ */ e(
7042
7043
  Or,
7043
7044
  {
@@ -7066,7 +7067,7 @@ const EI = ({ transaction: A }) => {
7066
7067
  {
7067
7068
  label: i.payee_title,
7068
7069
  name: "payee",
7069
- onChange: (P) => u(P.target.value),
7070
+ onChange: (b) => u(b.target.value),
7070
7071
  sx: { bgcolor: "background.paper" },
7071
7072
  value: c
7072
7073
  }
@@ -7077,11 +7078,11 @@ const EI = ({ transaction: A }) => {
7077
7078
  InputLabelProps: { shrink: !0 },
7078
7079
  SelectProps: { defaultValue: -1, IconComponent: ji },
7079
7080
  label: i.manual_transaction_select_an_account,
7080
- onChange: (P) => H(P.target.value),
7081
+ onChange: (b) => H(b.target.value),
7081
7082
  placeholder: i.manual_transaction_select,
7082
7083
  select: !0,
7083
7084
  sx: { bgcolor: "background.paper" },
7084
- children: f.map((P) => /* @__PURE__ */ e(jn, { value: P.value, children: P.label }, P.value))
7085
+ children: f.map((b) => /* @__PURE__ */ e(jn, { value: b.value, children: b.label }, b.value))
7085
7086
  }
7086
7087
  )
7087
7088
  ] }),
@@ -7151,11 +7152,11 @@ const EI = ({ transaction: A }) => {
7151
7152
  addTransaction: v,
7152
7153
  filter: u,
7153
7154
  loadAssociatedBeats: H,
7154
- setFilter: P,
7155
+ setFilter: b,
7155
7156
  tags: p,
7156
7157
  transactions: y,
7157
7158
  updateTransaction: x
7158
- } = PA(), { common: w, transactions: D } = X(), { userProfile: m } = Ue(), { onEvent: j } = K(), {
7159
+ } = PA(), { common: w, transactions: D } = X(), { userProfile: j } = Ue(), { onEvent: m } = K(), {
7159
7160
  displayedDateRange: O,
7160
7161
  isInitialized: T,
7161
7162
  selectedAccountGuids: tA,
@@ -7167,12 +7168,12 @@ const EI = ({ transaction: A }) => {
7167
7168
  oA(r);
7168
7169
  }, [r]), h.useEffect(() => {
7169
7170
  const kA = QA(fA()), nr = BA(fA());
7170
- iA(kA, nr), P({
7171
+ iA(kA, nr), b({
7171
7172
  dateRange: { start: kA, end: nr },
7172
7173
  accounts: Y.map((ra) => ra.guid)
7173
- }), Ke(!0), j(V.TRANSACTIONS_VIEW);
7174
+ }), Ke(!0), m(V.TRANSACTIONS_VIEW);
7174
7175
  }, []), h.useEffect(() => {
7175
- JA && (P({
7176
+ JA && (b({
7176
7177
  ...u,
7177
7178
  dateRange: { start: O.start, end: O.end },
7178
7179
  accounts: tA
@@ -7186,21 +7187,21 @@ const EI = ({ transaction: A }) => {
7186
7187
  ), J = cA ? y.find((kA) => kA.guid === cA) : void 0, wA = c && !!a.payee && !!a.account_guid && !!a.category_guid, VA = (kA) => {
7187
7188
  iA(kA[0], kA[1]);
7188
7189
  }, Ze = (kA) => {
7189
- f(kA), P({
7190
+ f(kA), b({
7190
7191
  ...u,
7191
7192
  searchTerm: kA
7192
- }), j(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
7193
+ }), m(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
7193
7194
  }, Ki = () => {
7194
- cI(y, p), j(V.TRANSACTIONS_CLICK_EXPORT);
7195
+ cI(y, p), m(V.TRANSACTIONS_CLICK_EXPORT);
7195
7196
  }, Zi = () => {
7196
7197
  Yt.length > 0 ? (l({
7197
7198
  ...sI,
7198
7199
  date: gA(fA()),
7199
- user_guid: m?.user_guid || ""
7200
+ user_guid: j?.user_guid || ""
7200
7201
  }), uA(
7201
7202
  "addTransaction"
7202
7203
  /* AddTransaction */
7203
- ), j(V.TRANSACTIONS_CLICK_ADD)) : (fe(!0), j(V.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7204
+ ), m(V.TRANSACTIONS_CLICK_ADD)) : (fe(!0), m(V.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7204
7205
  }, Vt = async () => {
7205
7206
  wA && await v(a), uA("");
7206
7207
  }, Ji = () => {
@@ -7227,7 +7228,7 @@ const EI = ({ transaction: A }) => {
7227
7228
  calendarActions: {
7228
7229
  onRangeChanged: VA
7229
7230
  },
7230
- onAccountsFilterClick: () => j(V.ACCOUNTS_CLICK_FILTER),
7231
+ onAccountsFilterClick: () => m(V.ACCOUNTS_CLICK_FILTER),
7231
7232
  onBackClick: A,
7232
7233
  sx: n,
7233
7234
  title: D.transactions_title,
@@ -7261,7 +7262,7 @@ const EI = ({ transaction: A }) => {
7261
7262
  jA(kA), uA(
7262
7263
  "transaction"
7263
7264
  /* Transaction */
7264
- ), j(V.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: kA });
7265
+ ), m(V.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: kA });
7265
7266
  }
7266
7267
  }
7267
7268
  )
@@ -7387,11 +7388,11 @@ const EI = ({ transaction: A }) => {
7387
7388
  ], E = async (u) => {
7388
7389
  const H = { ...A, recurrenceType: u };
7389
7390
  if (A.activityType === TA.Expense) {
7390
- const P = n.find((p) => p.guid === A.scheduledPaymentGuid);
7391
- P && await o(PI(H, P));
7391
+ const b = n.find((p) => p.guid === A.scheduledPaymentGuid);
7392
+ b && await o(PI(H, b));
7392
7393
  } else {
7393
- const P = i.find((p) => p.guid === A.sequenceGuid);
7394
- P && await r(uI(H, P));
7394
+ const b = i.find((p) => p.guid === A.sequenceGuid);
7395
+ b && await r(uI(H, b));
7395
7396
  }
7396
7397
  c(!1);
7397
7398
  }, l = () => {
@@ -7452,10 +7453,10 @@ const EI = ({ transaction: A }) => {
7452
7453
  }, v = async () => {
7453
7454
  const u = { ...A, expectedDate: d };
7454
7455
  if (A.activityType === TA.Expense) {
7455
- const H = n.find((P) => P.guid === A.scheduledPaymentGuid);
7456
+ const H = n.find((b) => b.guid === A.scheduledPaymentGuid);
7456
7457
  H && await o(PI(u, H));
7457
7458
  } else {
7458
- const H = i.find((P) => P.guid === A.sequenceGuid);
7459
+ const H = i.find((b) => b.guid === A.sequenceGuid);
7459
7460
  H && await r(uI(u, H));
7460
7461
  }
7461
7462
  c(!1);
@@ -7490,7 +7491,7 @@ const EI = ({ transaction: A }) => {
7490
7491
  )
7491
7492
  ] });
7492
7493
  }, kd = C(Wd), Kd = ({ activity: A, onDeleted: t }) => {
7493
- const { recurring: i } = X(), { categories: n } = qA(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), { selectedAccountGuids: f } = pA(), { onEvent: E } = K(), [l, v] = h.useState(!1), [u, H] = h.useState(""), P = n.find((D) => D.guid === A.categoryGuid), p = A.activityType === TA.Income, y = h.useMemo(
7494
+ const { recurring: i } = X(), { categories: n } = qA(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), { selectedAccountGuids: f } = pA(), { onEvent: E } = K(), [l, v] = h.useState(!1), [u, H] = h.useState(""), b = n.find((D) => D.guid === A.categoryGuid), p = A.activityType === TA.Income, y = h.useMemo(
7494
7495
  () => d.find((D) => D.guid === u),
7495
7496
  [u]
7496
7497
  );
@@ -7501,10 +7502,10 @@ const EI = ({ transaction: A }) => {
7501
7502
  });
7502
7503
  }, []), h.useEffect(() => {
7503
7504
  if (p && A.sequenceGuid) {
7504
- const D = I.filter((m) => m.sequenceGuid === A.sequenceGuid).map((m) => m.transactionGuid);
7505
+ const D = I.filter((j) => j.sequenceGuid === A.sequenceGuid).map((j) => j.transactionGuid);
7505
7506
  c({
7506
7507
  ...a,
7507
- custom: (m) => !!D.find((j) => m.guid === j)
7508
+ custom: (j) => !!D.find((m) => j.guid === m)
7508
7509
  });
7509
7510
  } else !p && A.scheduledPaymentGuid && c({
7510
7511
  ...a,
@@ -7521,8 +7522,8 @@ const EI = ({ transaction: A }) => {
7521
7522
  }
7522
7523
  );
7523
7524
  };
7524
- return /* @__PURE__ */ s(b, { bgcolor: "background.default", direction: "column", height: "100%", children: [
7525
- /* @__PURE__ */ s(b, { direction: "column", gap: 12, m: 24, children: [
7525
+ return /* @__PURE__ */ s(P, { bgcolor: "background.default", direction: "column", height: "100%", children: [
7526
+ /* @__PURE__ */ s(P, { direction: "column", gap: 12, m: 24, children: [
7526
7527
  /* @__PURE__ */ e(
7527
7528
  vt,
7528
7529
  {
@@ -7549,13 +7550,13 @@ const EI = ({ transaction: A }) => {
7549
7550
  ),
7550
7551
  /* @__PURE__ */ e(G, { color: "secondary", variant: "inset" })
7551
7552
  ] }),
7552
- P && /* @__PURE__ */ s(Z, { children: [
7553
+ b && /* @__PURE__ */ s(Z, { children: [
7553
7554
  /* @__PURE__ */ e(
7554
7555
  zi,
7555
7556
  {
7556
7557
  iconName: "monetization_on",
7557
7558
  label: i.category,
7558
- value: P.name
7559
+ value: b.name
7559
7560
  }
7560
7561
  ),
7561
7562
  /* @__PURE__ */ e(G, { color: "secondary", variant: "inset" })
@@ -7685,7 +7686,7 @@ const EI = ({ transaction: A }) => {
7685
7686
  }
7686
7687
  ) }),
7687
7688
  /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
7688
- b,
7689
+ P,
7689
7690
  {
7690
7691
  direction: "row",
7691
7692
  gap: 4,
@@ -7695,9 +7696,9 @@ const EI = ({ transaction: A }) => {
7695
7696
  justifyContent: "space-between"
7696
7697
  },
7697
7698
  children: [
7698
- /* @__PURE__ */ s(b, { direction: "column", width: "50%", children: [
7699
+ /* @__PURE__ */ s(P, { direction: "column", width: "50%", children: [
7699
7700
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.name }),
7700
- /* @__PURE__ */ e(b, { alignItems: "center", direction: "row", gap: 6, children: t ? /* @__PURE__ */ s(b, { direction: "row", gap: 4, children: [
7701
+ /* @__PURE__ */ e(P, { alignItems: "center", direction: "row", gap: 6, children: t ? /* @__PURE__ */ s(P, { direction: "row", gap: 4, children: [
7701
7702
  _d(A),
7702
7703
  /* @__PURE__ */ e(R, { variant: "XSmall", children: Jd(A, r) })
7703
7704
  ] }) : /* @__PURE__ */ s(Z, { children: [
@@ -7713,7 +7714,7 @@ const EI = ({ transaction: A }) => {
7713
7714
  ] }) })
7714
7715
  ] }),
7715
7716
  /* @__PURE__ */ e(
7716
- b,
7717
+ P,
7717
7718
  {
7718
7719
  alignItems: "center",
7719
7720
  direction: "row",
@@ -7721,13 +7722,13 @@ const EI = ({ transaction: A }) => {
7721
7722
  gap: 8,
7722
7723
  justifyContent: "flex-end",
7723
7724
  width: "50%",
7724
- children: /* @__PURE__ */ s(b, { alignItems: "flex-end", width: "100%", children: [
7725
+ children: /* @__PURE__ */ s(P, { alignItems: "flex-end", width: "100%", children: [
7725
7726
  /* @__PURE__ */ s(R, { bold: !0, color: a ? "success.main" : "text.primary", variant: "Body", children: [
7726
7727
  a ? "+" : "",
7727
7728
  M(A.amount, "0,0.00")
7728
7729
  ] }),
7729
7730
  !t && /* @__PURE__ */ s(
7730
- b,
7731
+ P,
7731
7732
  {
7732
7733
  alignItems: "center",
7733
7734
  direction: "row",
@@ -7835,7 +7836,7 @@ const EI = ({ transaction: A }) => {
7835
7836
  onSelected: n
7836
7837
  }) => {
7837
7838
  const { recurring: r } = X(), { searchValue: o, setSearchValue: I } = Pe();
7838
- return /* @__PURE__ */ s(b, { sx: { bgcolor: A, gap: 16, pt: 8 }, children: [
7839
+ return /* @__PURE__ */ s(P, { sx: { bgcolor: A, gap: 16, pt: 8 }, children: [
7839
7840
  t && /* @__PURE__ */ e(HA, { sx: { mx: 24 }, children: t }),
7840
7841
  /* @__PURE__ */ e(
7841
7842
  Ti,
@@ -7900,8 +7901,8 @@ const EI = ({ transaction: A }) => {
7900
7901
  }
7901
7902
  r(Number(f.target.value));
7902
7903
  };
7903
- return /* @__PURE__ */ s(b, { bgcolor: A, gap: 24, height: "100%", children: [
7904
- /* @__PURE__ */ s(b, { children: [
7904
+ return /* @__PURE__ */ s(P, { bgcolor: A, gap: 24, height: "100%", children: [
7905
+ /* @__PURE__ */ s(P, { children: [
7905
7906
  /* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(I.date) }),
7906
7907
  /* @__PURE__ */ e(Bn, { transaction: I })
7907
7908
  ] }),
@@ -7939,33 +7940,33 @@ const EI = ({ transaction: A }) => {
7939
7940
  label: t,
7940
7941
  onAddActivity: i = () => null
7941
7942
  }) => {
7942
- const { recurring: n } = X(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(U.EveryMonth), [P, p] = h.useState(null), y = h.useMemo(
7943
- () => d.find((m) => m.guid === l),
7943
+ const { recurring: n } = X(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(U.EveryMonth), [b, p] = h.useState(null), y = h.useMemo(
7944
+ () => d.find((j) => j.guid === l),
7944
7945
  [l]
7945
7946
  ), x = () => {
7946
7947
  E(!0), c(A ? { ...a, custom: ii } : { ...a, custom: Pn });
7947
7948
  }, w = async () => {
7948
- if (i(), !y || !P) {
7949
+ if (i(), !y || !b) {
7949
7950
  D();
7950
7951
  return;
7951
7952
  }
7952
7953
  if (A) {
7953
- const m = bI(y, u, P), j = await o(m);
7954
- if (j) {
7955
- const O = HI(j, y);
7954
+ const j = bI(y, u, b), m = await o(j);
7955
+ if (m) {
7956
+ const O = HI(m, y);
7956
7957
  await r(O);
7957
7958
  }
7958
7959
  } else {
7959
- const m = AE(y, u, P);
7960
- await I(m, y);
7960
+ const j = AE(y, u, b);
7961
+ await I(j, y);
7961
7962
  }
7962
7963
  D();
7963
7964
  }, D = () => {
7964
7965
  v(""), E(!1);
7965
7966
  };
7966
7967
  return /* @__PURE__ */ s(L, { children: [
7967
- /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(aA, { onClick: x, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
7968
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 8, children: [
7968
+ /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(aA, { onClick: x, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
7969
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
7969
7970
  /* @__PURE__ */ e(q, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
7970
7971
  /* @__PURE__ */ e(R, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: t })
7971
7972
  ] }),
@@ -7983,13 +7984,13 @@ const EI = ({ transaction: A }) => {
7983
7984
  zI,
7984
7985
  {
7985
7986
  description: A ? n.add_income_description : n.add_expense_description,
7986
- onSearch: (m) => {
7987
+ onSearch: (j) => {
7987
7988
  c({
7988
7989
  ...a,
7989
- custom: (j) => A ? m ? gI(j, m) : ii(j) : m ? iE(j, m) : Pn(j)
7990
+ custom: (m) => A ? j ? gI(m, j) : ii(m) : j ? iE(m, j) : Pn(m)
7990
7991
  });
7991
7992
  },
7992
- onSelected: (m) => v(m)
7993
+ onSelected: (j) => v(j)
7993
7994
  }
7994
7995
  )
7995
7996
  }
@@ -8007,7 +8008,7 @@ const EI = ({ transaction: A }) => {
8007
8008
  {
8008
8009
  frequency: u,
8009
8010
  isIncome: A,
8010
- nextDate: P,
8011
+ nextDate: b,
8011
8012
  onFrequencyChange: H,
8012
8013
  onNextDateChange: p,
8013
8014
  transaction: y
@@ -8336,13 +8337,13 @@ const EI = ({ transaction: A }) => {
8336
8337
  )
8337
8338
  }
8338
8339
  );
8339
- }, hE = C(EE), Ei = ({ icon: A, label: t }) => /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
8340
+ }, hE = C(EE), Ei = ({ icon: A, label: t }) => /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
8340
8341
  /* @__PURE__ */ e(A, {}),
8341
8342
  /* @__PURE__ */ e(R, { variant: "XSmall", children: t })
8342
8343
  ] }), lE = () => {
8343
8344
  const { recurring: A } = X();
8344
8345
  return /* @__PURE__ */ s(
8345
- b,
8346
+ P,
8346
8347
  {
8347
8348
  alignItems: "center",
8348
8349
  "aria-hidden": !0,
@@ -8409,7 +8410,7 @@ const EI = ({ transaction: A }) => {
8409
8410
  views: ["day"]
8410
8411
  }
8411
8412
  );
8412
- return /* @__PURE__ */ e(b, { justifyContent: "center", children: /* @__PURE__ */ s(Mt, { dateAdapter: Ct, children: [
8413
+ return /* @__PURE__ */ e(P, { justifyContent: "center", children: /* @__PURE__ */ s(Mt, { dateAdapter: Ct, children: [
8413
8414
  i && I,
8414
8415
  !i && I,
8415
8416
  /* @__PURE__ */ e(vE, {})
@@ -8432,8 +8433,8 @@ const EI = ({ transaction: A }) => {
8432
8433
  title: o
8433
8434
  }) => {
8434
8435
  const { recurring: I } = X(), a = uE(A);
8435
- return /* @__PURE__ */ s(b, { gap: 8, mt: 4, sx: r, children: [
8436
- o && /* @__PURE__ */ s(b, { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24, children: [
8436
+ return /* @__PURE__ */ s(P, { gap: 8, mt: 4, sx: r, children: [
8437
+ o && /* @__PURE__ */ s(P, { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24, children: [
8437
8438
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: o }),
8438
8439
  i && /* @__PURE__ */ e($, { onClick: i, sx: { mt: -12 }, variant: "text", children: I.reset })
8439
8440
  ] }),
@@ -8487,10 +8488,10 @@ const EI = ({ transaction: A }) => {
8487
8488
  return n && d.push({ color: a.palette.error.main, percentage: `${n / t}` }), d;
8488
8489
  }, [i, t, n]);
8489
8490
  return /* @__PURE__ */ s(L, { px: 24, children: [
8490
- /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
8491
+ /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
8491
8492
  /* @__PURE__ */ s(L, { children: [
8492
8493
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: `${r} ${A}` }),
8493
- /* @__PURE__ */ s(b, { direction: "row", gap: 2, mb: 8, children: [
8494
+ /* @__PURE__ */ s(P, { direction: "row", gap: 2, mb: 8, children: [
8494
8495
  /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: M(i, "0,0.00") }),
8495
8496
  /* @__PURE__ */ e(R, { variant: "XSmall", children: I.paid?.toLowerCase() }),
8496
8497
  n !== void 0 && /* @__PURE__ */ s(Z, { children: [
@@ -8516,7 +8517,7 @@ const EI = ({ transaction: A }) => {
8516
8517
  selectedDayActivities: a,
8517
8518
  setSelectedDay: c,
8518
8519
  upcomingActivities: d
8519
- } = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en), P = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(An).reduce(Ut, 0), D = u.filter(An).reduce(Ut, 0), m = v.filter(An).length, j = (tA, Y) => {
8520
+ } = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en), b = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(An).reduce(Ut, 0), D = u.filter(An).reduce(Ut, 0), j = v.filter(An).length, m = (tA, Y) => {
8520
8521
  E(Y);
8521
8522
  }, O = (tA) => {
8522
8523
  l(V.RECURRING_ACTIVITY_CLICK_UPCOMING, {
@@ -8528,11 +8529,11 @@ const EI = ({ transaction: A }) => {
8528
8529
  });
8529
8530
  };
8530
8531
  return /* @__PURE__ */ s(tt, { container: !0, pt: 16, px: 24, spacing: 24, children: [
8531
- /* @__PURE__ */ e(tt, { md: !0, sm: 12, children: /* @__PURE__ */ s(b, { gap: 24, children: [
8532
+ /* @__PURE__ */ e(tt, { md: !0, sm: 12, children: /* @__PURE__ */ s(P, { gap: 24, children: [
8532
8533
  /* @__PURE__ */ e(
8533
8534
  kr,
8534
8535
  {
8535
- expected: P,
8536
+ expected: b,
8536
8537
  missed: y,
8537
8538
  paid: p,
8538
8539
  title: A.expenses,
@@ -8545,7 +8546,7 @@ const EI = ({ transaction: A }) => {
8545
8546
  expected: w,
8546
8547
  paid: D,
8547
8548
  title: A.deposits,
8548
- total: m
8549
+ total: j
8549
8550
  }
8550
8551
  ),
8551
8552
  !i && !t && /* @__PURE__ */ e(
@@ -8557,7 +8558,7 @@ const EI = ({ transaction: A }) => {
8557
8558
  }
8558
8559
  ),
8559
8560
  (i || t) && /* @__PURE__ */ s(L, { children: [
8560
- /* @__PURE__ */ s(Se, { onChange: j, value: f, variant: "fullWidth", children: [
8561
+ /* @__PURE__ */ s(Se, { onChange: m, value: f, variant: "fullWidth", children: [
8561
8562
  /* @__PURE__ */ e(
8562
8563
  GA,
8563
8564
  {
@@ -8581,7 +8582,7 @@ const EI = ({ transaction: A }) => {
8581
8582
  f === 1 && /* @__PURE__ */ e(kt, { activities: u, onActivityClick: T })
8582
8583
  ] })
8583
8584
  ] }) }),
8584
- !i && !t && /* @__PURE__ */ e(tt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(b, { gap: 35, children: [
8585
+ !i && !t && /* @__PURE__ */ e(tt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(P, { gap: 35, children: [
8585
8586
  /* @__PURE__ */ e(wI, {}),
8586
8587
  /* @__PURE__ */ e(
8587
8588
  kt,
@@ -8626,7 +8627,7 @@ const EI = ({ transaction: A }) => {
8626
8627
  sx: t,
8627
8628
  title: n.title,
8628
8629
  children: [
8629
- r || !c ? /* @__PURE__ */ e(zE, {}) : /* @__PURE__ */ s(b, { direction: "column", p: 48, spacing: 24, children: [
8630
+ r || !c ? /* @__PURE__ */ e(zE, {}) : /* @__PURE__ */ s(P, { direction: "column", p: 48, spacing: 24, children: [
8630
8631
  /* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
8631
8632
  /* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
8632
8633
  /* @__PURE__ */ e(_e, { height: 600, variant: "rounded", width: "100%" })
@@ -8652,7 +8653,7 @@ const EI = ({ transaction: A }) => {
8652
8653
  ),
8653
8654
  [t, o]
8654
8655
  ), { availableWidth: a } = Xt(), c = a < 750;
8655
- return /* @__PURE__ */ s(b, { flexDirection: c ? "column" : "row", width: "100%", children: [
8656
+ return /* @__PURE__ */ s(P, { flexDirection: c ? "column" : "row", width: "100%", children: [
8656
8657
  /* @__PURE__ */ e(wI, {}),
8657
8658
  !c && /* @__PURE__ */ e(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
8658
8659
  /* @__PURE__ */ e(
@@ -9085,7 +9086,7 @@ const yE = {
9085
9086
  var ni = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(ni || {});
9086
9087
  const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9087
9088
  /* @__PURE__ */ s(W, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
9088
- /* @__PURE__ */ s(b, { alignItems: "center", height: 32, width: 32, children: [
9089
+ /* @__PURE__ */ s(P, { alignItems: "center", height: 32, width: 32, children: [
9089
9090
  /* @__PURE__ */ e(R, { bold: !0, sx: { fontSize: 11 }, children: nA(A.expectedDate, AA.MONTH) }),
9090
9091
  /* @__PURE__ */ e(R, { bold: !0, sx: { fontSize: 11 }, children: nA(A.expectedDate, AA.DAY) })
9091
9092
  ] }),
@@ -9128,8 +9129,8 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9128
9129
  ] });
9129
9130
  }, Zr = C(ME), Jr = (A, t) => (i) => i.accountGuid === A.guid && (mn(i.expectedDate) || Ot(i.expectedDate, t.start)) && mA(i.expectedDate, t.end), NE = () => {
9130
9131
  const { availableWidth: A } = Xt(), { cashflow: t } = X(), { upcomingExpenses: i, upcomingIncome: n } = ZA(), { dateRange: r, selectedCashAccounts: o } = Nt();
9131
- return /* @__PURE__ */ s(b, { children: [
9132
- /* @__PURE__ */ s(b, { direction: A < 400 ? "column" : "row", justifyContent: "space-between", children: [
9132
+ return /* @__PURE__ */ s(P, { children: [
9133
+ /* @__PURE__ */ s(P, { direction: A < 400 ? "column" : "row", justifyContent: "space-between", children: [
9133
9134
  /* @__PURE__ */ e(R, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: t.accounts_breakdown }),
9134
9135
  /* @__PURE__ */ s(R, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
9135
9136
  nA(r.start, AA.FULL_MONTH_DAY),
@@ -9138,7 +9139,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9138
9139
  nA(r.end, AA.FULL_MONTH_DAY)
9139
9140
  ] })
9140
9141
  ] }),
9141
- /* @__PURE__ */ e(b, { children: o.map((I) => {
9142
+ /* @__PURE__ */ e(P, { children: o.map((I) => {
9142
9143
  const a = n.filter(Jr(I, r)).sort((E, l) => gA(E.expectedDate) - gA(l.expectedDate)), c = i.filter(
9143
9144
  Jr(I, r)
9144
9145
  ), d = a.reduce(
@@ -9206,7 +9207,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9206
9207
  headerName: i.accounts,
9207
9208
  renderCell: ({ value: { name: d, nickname: f, institution_guid: E, account_number: l } }) => {
9208
9209
  const v = f || d;
9209
- return /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", gap: 12, children: [
9210
+ return /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", gap: 12, children: [
9210
9211
  /* @__PURE__ */ e(
9211
9212
  Oe,
9212
9213
  {
@@ -9276,13 +9277,13 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9276
9277
  },
9277
9278
  children: [
9278
9279
  /* @__PURE__ */ s(
9279
- b,
9280
+ P,
9280
9281
  {
9281
9282
  direction: A < 540 ? "column" : "row",
9282
9283
  justifyContent: "space-between",
9283
9284
  mb: 12,
9284
9285
  children: [
9285
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 8, children: [
9286
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
9286
9287
  /* @__PURE__ */ e(
9287
9288
  R,
9288
9289
  {
@@ -9340,9 +9341,9 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9340
9341
  borderRadius: 1,
9341
9342
  marginBottom: 24
9342
9343
  },
9343
- children: /* @__PURE__ */ e(W, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ s(b, { width: "100%", children: [
9344
+ children: /* @__PURE__ */ e(W, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ s(P, { width: "100%", children: [
9344
9345
  /* @__PURE__ */ s(
9345
- b,
9346
+ P,
9346
9347
  {
9347
9348
  alignItems: "center",
9348
9349
  flexDirection: "row",
@@ -9350,7 +9351,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9350
9351
  px: 16,
9351
9352
  py: 12,
9352
9353
  children: [
9353
- /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", gap: 8, width: "50%", children: [
9354
+ /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", gap: 8, width: "50%", children: [
9354
9355
  /* @__PURE__ */ e(
9355
9356
  Oe,
9356
9357
  {
@@ -9367,7 +9368,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9367
9368
  ),
9368
9369
  /* @__PURE__ */ e(G, { sx: { width: "100%" } }),
9369
9370
  /* @__PURE__ */ s(
9370
- b,
9371
+ P,
9371
9372
  {
9372
9373
  alignItems: "center",
9373
9374
  flexDirection: "row",
@@ -9382,7 +9383,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9382
9383
  ),
9383
9384
  /* @__PURE__ */ e(G, { sx: { width: "100%" } }),
9384
9385
  /* @__PURE__ */ s(
9385
- b,
9386
+ P,
9386
9387
  {
9387
9388
  alignItems: "center",
9388
9389
  flexDirection: "row",
@@ -9397,7 +9398,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9397
9398
  ),
9398
9399
  /* @__PURE__ */ e(G, { sx: { width: "100%" } }),
9399
9400
  /* @__PURE__ */ e(
9400
- b,
9401
+ P,
9401
9402
  {
9402
9403
  alignItems: "center",
9403
9404
  bgcolor: "background.default",
@@ -9467,7 +9468,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9467
9468
  symbol: r,
9468
9469
  tooltip: o
9469
9470
  }) => /* @__PURE__ */ s(
9470
- b,
9471
+ P,
9471
9472
  {
9472
9473
  bgcolor: i ? "background.default" : "transparent",
9473
9474
  direction: t ? "row" : "column",
@@ -9476,7 +9477,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9476
9477
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
9477
9478
  children: [
9478
9479
  !t && /* @__PURE__ */ e(OA, { amount: A, component: "h2", variant: "H2" }),
9479
- /* @__PURE__ */ s(b, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
9480
+ /* @__PURE__ */ s(P, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
9480
9481
  /* @__PURE__ */ e(R, { bold: i, variant: "Small", children: n }),
9481
9482
  o
9482
9483
  ] }),
@@ -9493,9 +9494,9 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9493
9494
  ), l = h.useMemo(
9494
9495
  () => c.reduce((y, x) => y + (x?.balance || 0), 0),
9495
9496
  [c]
9496
- ), v = f.reduce((y, x) => y + x.amount, 0), u = E.reduce((y, x) => y + x.amount, 0), H = l - v + u, P = o.length > 0 && d?.has_completed_cash_flow_onboarding, p = i < 725;
9497
- return /* @__PURE__ */ s(b, { flexDirection: "row", gap: 24, justifyContent: "center", my: p ? 24 : 42, children: [
9498
- p ? /* @__PURE__ */ s(b, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
9497
+ ), v = f.reduce((y, x) => y + x.amount, 0), u = E.reduce((y, x) => y + x.amount, 0), H = l - v + u, b = o.length > 0 && d?.has_completed_cash_flow_onboarding, p = i < 725;
9498
+ return /* @__PURE__ */ s(P, { flexDirection: "row", gap: 24, justifyContent: "center", my: p ? 24 : 42, children: [
9499
+ p ? /* @__PURE__ */ s(P, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
9499
9500
  /* @__PURE__ */ e(
9500
9501
  It,
9501
9502
  {
@@ -9505,7 +9506,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9505
9506
  }
9506
9507
  ),
9507
9508
  /* @__PURE__ */ e(G, {}),
9508
- P ? /* @__PURE__ */ e(
9509
+ b ? /* @__PURE__ */ e(
9509
9510
  It,
9510
9511
  {
9511
9512
  amount: u,
@@ -9551,7 +9552,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9551
9552
  )
9552
9553
  ] }) : /* @__PURE__ */ s(Z, { children: [
9553
9554
  /* @__PURE__ */ e(It, { amount: l, label: n.cash_and_bank }),
9554
- P ? /* @__PURE__ */ s(Z, { children: [
9555
+ b ? /* @__PURE__ */ s(Z, { children: [
9555
9556
  /* @__PURE__ */ e(R, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
9556
9557
  /* @__PURE__ */ e(
9557
9558
  It,
@@ -9601,7 +9602,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9601
9602
  ] });
9602
9603
  }, FE = C(UE), WE = ({ handleNextStep: A }) => {
9603
9604
  const { completeOnboarding: t } = Nn(), { cashflow: i } = X(), n = RA();
9604
- return /* @__PURE__ */ s(b, { children: [
9605
+ return /* @__PURE__ */ s(P, { children: [
9605
9606
  /* @__PURE__ */ e(it, { pb: 12, children: i.welcome_title }),
9606
9607
  /* @__PURE__ */ e(
9607
9608
  lt,
@@ -9614,7 +9615,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9614
9615
  }
9615
9616
  ),
9616
9617
  /* @__PURE__ */ e(HA, { pb: 32, children: i.welcome_description }),
9617
- /* @__PURE__ */ s(b, { direction: "column", mb: 32, spacing: 32, children: [
9618
+ /* @__PURE__ */ s(P, { direction: "column", mb: 32, spacing: 32, children: [
9618
9619
  /* @__PURE__ */ s(HA, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9619
9620
  /* @__PURE__ */ e(
9620
9621
  L,
@@ -9664,7 +9665,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9664
9665
  i.bullet_three
9665
9666
  ] })
9666
9667
  ] }),
9667
- /* @__PURE__ */ s(b, { direction: "row", spacing: 16, children: [
9668
+ /* @__PURE__ */ s(P, { direction: "row", spacing: 16, children: [
9668
9669
  /* @__PURE__ */ e($, { onClick: A, variant: "contained", children: i.get_started_button }),
9669
9670
  /* @__PURE__ */ e($, { onClick: t, variant: "outlined", children: i.skip_button })
9670
9671
  ] })
@@ -9684,20 +9685,20 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9684
9685
  transform: rotate(360deg);
9685
9686
  }
9686
9687
  `, Ah = () => {
9687
- const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, P] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, m] = Fe(1), [j, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
9688
+ const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, b] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, j] = Fe(1), [m, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
9688
9689
  () => E.find((cA) => cA.guid === T),
9689
9690
  [T]
9690
9691
  ), iA = !!i.length, oA = async () => {
9691
- m(2), c(
9692
+ j(2), c(
9692
9693
  // Beginning of the month, 90 days before today
9693
9694
  QA(Ve(fA(), 90)),
9694
9695
  fA()
9695
- ), f({ ...d, custom: ii }), m(3);
9696
+ ), f({ ...d, custom: ii }), j(3);
9696
9697
  }, sA = async () => {
9697
- if (!(j.length < 1)) {
9698
+ if (!(m.length < 1)) {
9698
9699
  y(!0);
9699
- for (let cA = 0; cA < j.length; cA++) {
9700
- const jA = j[cA], WA = bI(
9700
+ for (let cA = 0; cA < m.length; cA++) {
9701
+ const jA = m[cA], WA = bI(
9701
9702
  jA,
9702
9703
  jA.frequency,
9703
9704
  jA.nextDate
@@ -9709,7 +9710,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9709
9710
  }
9710
9711
  o();
9711
9712
  }
9712
- }, uA = !Y && v || !Y && j.length < 1;
9713
+ }, uA = !Y && v || !Y && m.length < 1;
9713
9714
  return /* @__PURE__ */ s(
9714
9715
  L,
9715
9716
  {
@@ -9751,15 +9752,15 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9751
9752
  children: [
9752
9753
  /* @__PURE__ */ e(it, { pb: 12, children: n.add_income_title }),
9753
9754
  /* @__PURE__ */ e(HA, { mb: 24, children: n.add_income_description }),
9754
- j.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
9755
- /* @__PURE__ */ e(rA, { children: j.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
9755
+ m.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
9756
+ /* @__PURE__ */ e(rA, { children: m.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
9756
9757
  /* @__PURE__ */ e(Sn, { bgcolor: "background.paper", children: Mi(
9757
9758
  gA(cA.nextDate || cA.date)
9758
9759
  ) }),
9759
9760
  /* @__PURE__ */ e(Bn, { transaction: cA }),
9760
- jA !== j.length - 1 && /* @__PURE__ */ e(G, {})
9761
+ jA !== m.length - 1 && /* @__PURE__ */ e(G, {})
9761
9762
  ] }, cA.guid)) }),
9762
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", children: [
9763
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
9763
9764
  /* @__PURE__ */ e(G, { sx: { flexGrow: 1 } }),
9764
9765
  /* @__PURE__ */ e(
9765
9766
  $,
@@ -9793,18 +9794,18 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9793
9794
  frequency: H,
9794
9795
  isIncome: !0,
9795
9796
  nextDate: x,
9796
- onFrequencyChange: P,
9797
+ onFrequencyChange: b,
9797
9798
  onNextDateChange: w,
9798
9799
  transaction: Y
9799
9800
  }
9800
9801
  ),
9801
- /* @__PURE__ */ s(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9802
+ /* @__PURE__ */ s(P, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9802
9803
  /* @__PURE__ */ e(
9803
9804
  $,
9804
9805
  {
9805
9806
  "aria-disabled": !Y || !x,
9806
9807
  onClick: () => {
9807
- const cA = [...j];
9808
+ const cA = [...m];
9808
9809
  cA.push({ ...Y, nextDate: x, frequency: H }), O(cA), tA("");
9809
9810
  },
9810
9811
  variant: "contained",
@@ -9823,11 +9824,11 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9823
9824
  )
9824
9825
  ] })
9825
9826
  ] }),
9826
- j.length > 0 && !Y && /* @__PURE__ */ s(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9827
+ m.length > 0 && !Y && /* @__PURE__ */ s(P, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9827
9828
  /* @__PURE__ */ e(
9828
9829
  $,
9829
9830
  {
9830
- "aria-disabled": j.length < 1 || p,
9831
+ "aria-disabled": m.length < 1 || p,
9831
9832
  onClick: sA,
9832
9833
  startIcon: p ? /* @__PURE__ */ e(
9833
9834
  q,
@@ -9861,8 +9862,8 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9861
9862
  return h.useEffect(() => {
9862
9863
  r(c);
9863
9864
  }, [c]), h.useEffect(() => {
9864
- const P = c.map((y) => y.guid), p = i.filter(
9865
- (y) => n.includes(y.guid) && P.includes(y.guid)
9865
+ const b = c.map((y) => y.guid), p = i.filter(
9866
+ (y) => n.includes(y.guid) && b.includes(y.guid)
9866
9867
  );
9867
9868
  l(p), d({ accounts: p.map((y) => y.guid) });
9868
9869
  }, [c, i]), f?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ s(
@@ -10022,14 +10023,14 @@ function oh(A, t, i = 0) {
10022
10023
  for (const [E, l] of n.entries()) {
10023
10024
  if (l.balance <= 0.01 || l.is_impossible) continue;
10024
10025
  const u = (l.interest_rate ?? 0) / 100 / 12, H = l.balance * u;
10025
- let P = l.monthly_payment ?? 0;
10026
- E === 0 && i && (P += i), l.balance += H;
10027
- const p = Math.min(l.balance, P + o);
10026
+ let b = l.monthly_payment ?? 0;
10027
+ E === 0 && i && (b += i), l.balance += H;
10028
+ const p = Math.min(l.balance, b + o);
10028
10029
  if (p <= H) {
10029
10030
  l.is_impossible = !0;
10030
10031
  continue;
10031
10032
  }
10032
- l.balance -= p, l.balance = l.balance < 0.01 ? 0 : l.balance, r += H, l.balance <= 0 && (o += P), p > 0 && (f = !0);
10033
+ l.balance -= p, l.balance = l.balance < 0.01 ? 0 : l.balance, r += H, l.balance <= 0 && (o += b), p > 0 && (f = !0);
10033
10034
  }
10034
10035
  f && a.setMonth(a.getMonth() + 1);
10035
10036
  }
@@ -10559,8 +10560,8 @@ const ke = () => {
10559
10560
  ...Qn,
10560
10561
  ...qn
10561
10562
  ].includes(i.account_type);
10562
- return /* @__PURE__ */ s(b, { bgcolor: "background.default", p: 24, children: [
10563
- /* @__PURE__ */ s(b, { gap: 12, children: [
10563
+ return /* @__PURE__ */ s(P, { bgcolor: "background.default", p: 24, children: [
10564
+ /* @__PURE__ */ s(P, { gap: 12, children: [
10564
10565
  /* @__PURE__ */ e(
10565
10566
  Oe,
10566
10567
  {
@@ -10571,18 +10572,18 @@ const ke = () => {
10571
10572
  ),
10572
10573
  /* @__PURE__ */ e(R, { variant: "Small", children: d?.name })
10573
10574
  ] }),
10574
- /* @__PURE__ */ s(b, { gap: 8, mb: 24, mt: 4, children: [
10575
+ /* @__PURE__ */ s(P, { gap: 8, mb: 24, mt: 4, children: [
10575
10576
  /* @__PURE__ */ e(lt, { children: i.name || i.feed_name }),
10576
- /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
10577
+ /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
10577
10578
  /* @__PURE__ */ e(R, { bold: I, variant: "Body", children: r }),
10578
10579
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(o, "0,0.00") })
10579
10580
  ] }),
10580
- /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
10581
+ /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
10581
10582
  /* @__PURE__ */ e(R, { variant: "Small", children: a }),
10582
10583
  /* @__PURE__ */ e(R, { variant: "Small", children: c })
10583
10584
  ] })
10584
10585
  ] }),
10585
- f && /* @__PURE__ */ e(b, { children: A || /* @__PURE__ */ e(Ch, {}) })
10586
+ f && /* @__PURE__ */ e(P, { children: A || /* @__PURE__ */ e(Ch, {}) })
10586
10587
  ] });
10587
10588
  }, $n = C(gh), Xh = "#FF7B08";
10588
10589
  function ph(A, t) {
@@ -10608,26 +10609,26 @@ const mI = ({
10608
10609
  )
10609
10610
  ].sort((w, D) => w - D).map((w) => new Date(w)), E = d.map((w) => {
10610
10611
  const D = new Map(w.dataset.map((O) => [new Date(O.x).getTime(), O.y]));
10611
- let m = D.get(f[0].getTime()) ?? 0;
10612
- const j = f.map((O) => {
10613
- const T = D.get(O.getTime()) ?? m;
10614
- return m = T, { x: O, y: T };
10612
+ let j = D.get(f[0].getTime()) ?? 0;
10613
+ const m = f.map((O) => {
10614
+ const T = D.get(O.getTime()) ?? j;
10615
+ return j = T, { x: O, y: T };
10615
10616
  });
10616
- return { ...w, dataset: j };
10617
+ return { ...w, dataset: m };
10617
10618
  }), l = E.reduce(
10618
10619
  (w, D) => w + (D.dataset[0]?.y ?? 0),
10619
10620
  0
10620
10621
  ), v = f.map((w, D) => {
10621
- const m = D / (f.length - 1), j = l * (1 - m);
10622
- return { x: w, y: j };
10623
- }), u = Math.ceil(l / 100) * 100, H = f, P = E.map((w, D) => {
10624
- const m = 1 - D / E.length * 0.5, j = ph(Xh, m);
10622
+ const j = D / (f.length - 1), m = l * (1 - j);
10623
+ return { x: w, y: m };
10624
+ }), u = Math.ceil(l / 100) * 100, H = f, b = E.map((w, D) => {
10625
+ const j = 1 - D / E.length * 0.5, m = ph(Xh, j);
10625
10626
  return {
10626
10627
  id: `debt-${D}`,
10627
10628
  guid: w.guid,
10628
10629
  label: w.name,
10629
10630
  data: w.dataset.map((O) => O.y),
10630
- color: j,
10631
+ color: m,
10631
10632
  curve: "linear",
10632
10633
  type: "line",
10633
10634
  area: !0,
@@ -10635,7 +10636,7 @@ const mI = ({
10635
10636
  showMark: !1
10636
10637
  };
10637
10638
  });
10638
- P.push({
10639
+ b.push({
10639
10640
  id: "payoff-line",
10640
10641
  label: "Payoff Line",
10641
10642
  data: v.map((w) => w.y),
@@ -10646,7 +10647,7 @@ const mI = ({
10646
10647
  showMark: !1,
10647
10648
  disableHighlight: !0
10648
10649
  });
10649
- const p = (w) => P.findIndex((D) => D?.guid === w);
10650
+ const p = (w) => b.findIndex((D) => D?.guid === w);
10650
10651
  return /* @__PURE__ */ e(
10651
10652
  yo,
10652
10653
  {
@@ -10655,14 +10656,14 @@ const mI = ({
10655
10656
  height: t,
10656
10657
  onAreaClick: (w, D) => {
10657
10658
  o?.();
10658
- const m = P.find((j) => j.id === D.seriesId);
10659
- c(V.DEBTS_CLICK_CHART_AREA, { account_guid: m?.guid });
10659
+ const j = b.find((m) => m.id === D.seriesId);
10660
+ c(V.DEBTS_CLICK_CHART_AREA, { account_guid: j?.guid });
10660
10661
  },
10661
10662
  onHighlightChange: (w) => {
10662
- const D = P.find((m) => m.id === w?.seriesId)?.guid;
10663
+ const D = b.find((j) => j.id === w?.seriesId)?.guid;
10663
10664
  I?.(D ?? "");
10664
10665
  },
10665
- series: P,
10666
+ series: b,
10666
10667
  skipAnimation: !0,
10667
10668
  slotProps: {
10668
10669
  legend: {
@@ -10755,12 +10756,12 @@ const mI = ({
10755
10756
  children: o ? i.schedule_error_message : i.schedule_complete_message
10756
10757
  }
10757
10758
  ) : /* @__PURE__ */ s(Z, { children: [
10758
- /* @__PURE__ */ s(b, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
10759
+ /* @__PURE__ */ s(P, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
10759
10760
  /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: i.schedule_month_heading }),
10760
10761
  /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: i.schedule_amount_heading })
10761
10762
  ] }),
10762
- n.dataset.slice(1).map(({ x: I, y: a, payment: c }) => /* @__PURE__ */ e(b, { bgcolor: A.palette.background.paper, children: /* @__PURE__ */ e(b, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ s(
10763
- b,
10763
+ n.dataset.slice(1).map(({ x: I, y: a, payment: c }) => /* @__PURE__ */ e(P, { bgcolor: A.palette.background.paper, children: /* @__PURE__ */ e(P, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ s(
10764
+ P,
10764
10765
  {
10765
10766
  sx: {
10766
10767
  borderBottom: `1px solid ${A.palette.border.light}`,
@@ -10770,11 +10771,11 @@ const mI = ({
10770
10771
  pr: 24
10771
10772
  },
10772
10773
  children: [
10773
- /* @__PURE__ */ s(b, { flexGrow: 1, children: [
10774
+ /* @__PURE__ */ s(P, { flexGrow: 1, children: [
10774
10775
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: nA(I, AA.MONTH_YEAR) }),
10775
10776
  /* @__PURE__ */ e(R, { color: A.palette.secondary.main, variant: "XSmall", children: i.schedule_month_label })
10776
10777
  ] }),
10777
- /* @__PURE__ */ s(b, { children: [
10778
+ /* @__PURE__ */ s(P, { children: [
10778
10779
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(a, "0,0.00") }),
10779
10780
  /* @__PURE__ */ e(
10780
10781
  R,
@@ -10790,8 +10791,8 @@ const mI = ({
10790
10791
  ]
10791
10792
  }
10792
10793
  ) }) }, String(I))),
10793
- /* @__PURE__ */ e(b, { bgcolor: "background.paper", children: /* @__PURE__ */ s(
10794
- b,
10794
+ /* @__PURE__ */ e(P, { bgcolor: "background.paper", children: /* @__PURE__ */ s(
10795
+ P,
10795
10796
  {
10796
10797
  sx: {
10797
10798
  alignItems: "center",
@@ -11004,7 +11005,7 @@ const mI = ({
11004
11005
  );
11005
11006
  }), Lh = () => {
11006
11007
  const { onEvent: A } = K(), { selectedDebtChartData: t } = ke();
11007
- return h.useEffect(() => A(V.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(b, { bgcolor: "background.paper", children: [
11008
+ return h.useEffect(() => A(V.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(P, { bgcolor: "background.paper", children: [
11008
11009
  t?.goal && /* @__PURE__ */ s(Z, { children: [
11009
11010
  /* @__PURE__ */ e(LI, { goal: t.goal }),
11010
11011
  /* @__PURE__ */ e(G, {}),
@@ -11112,7 +11113,7 @@ const mI = ({
11112
11113
  onClose: t,
11113
11114
  sx: { ...i },
11114
11115
  title: n.details_title,
11115
- children: /* @__PURE__ */ s(b, { bgcolor: "background.default", children: [
11116
+ children: /* @__PURE__ */ s(P, { bgcolor: "background.default", children: [
11116
11117
  /* @__PURE__ */ e($n, { customDetailsChart: I }),
11117
11118
  /* @__PURE__ */ e(Nh, {})
11118
11119
  ] })
@@ -11154,20 +11155,20 @@ const mI = ({
11154
11155
  );
11155
11156
  }), Vh = () => {
11156
11157
  const { debts: A } = X(), { totalMonthlyPayments: t } = Ni(), { monthlyCashFlowProfile: i } = FA(), n = t + Number(i?.extra_payment);
11157
- return /* @__PURE__ */ s(b, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
11158
- /* @__PURE__ */ s(b, { p: 24, children: [
11159
- /* @__PURE__ */ s(b, { alignItems: "center", gap: 4, mb: 24, children: [
11158
+ return /* @__PURE__ */ s(P, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
11159
+ /* @__PURE__ */ s(P, { p: 24, children: [
11160
+ /* @__PURE__ */ s(P, { alignItems: "center", gap: 4, mb: 24, children: [
11160
11161
  /* @__PURE__ */ e(R, { variant: "Body", children: A.paydown_drawer_mimimum_label }),
11161
11162
  /* @__PURE__ */ e(R, { bold: !0, variant: "H1", children: M(t, "0,0") }),
11162
11163
  /* @__PURE__ */ e(R, { textAlign: "center", truncate: !1, variant: "Small", width: 208, children: A.paydown_drawer_minimum_info })
11163
11164
  ] }),
11164
- /* @__PURE__ */ s(b, { children: [
11165
+ /* @__PURE__ */ s(P, { children: [
11165
11166
  /* @__PURE__ */ e(R, { variant: "H3", children: A.paydown_drawer_subtitle }),
11166
11167
  /* @__PURE__ */ e(R, { truncate: !1, variant: "ParagraphSmall", children: A.paydown_drawer_description })
11167
11168
  ] })
11168
11169
  ] }),
11169
- /* @__PURE__ */ e(b, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(Yh, {}) }),
11170
- /* @__PURE__ */ e(b, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ s(b, { gap: 4, children: [
11170
+ /* @__PURE__ */ e(P, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(Yh, {}) }),
11171
+ /* @__PURE__ */ e(P, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ s(P, { gap: 4, children: [
11171
11172
  /* @__PURE__ */ e(R, { variant: "Small", children: A.paydown_drawer_total_payment }),
11172
11173
  /* @__PURE__ */ e(R, { bold: !0, textAlign: "right", variant: "Body", children: M(n, "0,0") })
11173
11174
  ] }) })
@@ -11224,7 +11225,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11224
11225
  );
11225
11226
  }, Kh = (A) => {
11226
11227
  const t = A.row.account, i = On[t.account_type];
11227
- return /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", children: [
11228
+ return /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", children: [
11228
11229
  /* @__PURE__ */ e(
11229
11230
  Oe,
11230
11231
  {
@@ -11232,7 +11233,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11232
11233
  institutionGuid: t.institution_guid || ""
11233
11234
  }
11234
11235
  ),
11235
- /* @__PURE__ */ s(b, { ml: 12, children: [
11236
+ /* @__PURE__ */ s(P, { ml: 12, children: [
11236
11237
  /* @__PURE__ */ e(R, { variant: "Small", children: t.name }),
11237
11238
  /* @__PURE__ */ e(R, { variant: "XSmall", children: i })
11238
11239
  ] })
@@ -11277,7 +11278,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11277
11278
  field: "balance",
11278
11279
  headerName: c.table_column_balance,
11279
11280
  renderHeader: we,
11280
- valueFormatter: (P) => M(P, "0,0"),
11281
+ valueFormatter: (b) => M(b, "0,0"),
11281
11282
  sortable: !0,
11282
11283
  hideSortIcons: a,
11283
11284
  type: "number",
@@ -11290,7 +11291,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11290
11291
  field: "interest_rate",
11291
11292
  headerName: c.table_column_interest_rate,
11292
11293
  renderHeader: we,
11293
- valueFormatter: (P) => isNaN(P) ? "---" : `${Number(P).toFixed(2)}%`,
11294
+ valueFormatter: (b) => isNaN(b) ? "---" : `${Number(b).toFixed(2)}%`,
11294
11295
  sortable: !0,
11295
11296
  hideSortIcons: a,
11296
11297
  type: "number",
@@ -11303,7 +11304,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11303
11304
  field: "projected_payoff_date",
11304
11305
  headerName: c.table_column_payoff_date,
11305
11306
  renderHeader: we,
11306
- valueFormatter: (P) => P ? nA(P, AA.MONTH_SHORT_YEAR) : "---",
11307
+ valueFormatter: (b) => b ? nA(b, AA.MONTH_SHORT_YEAR) : "---",
11307
11308
  sortable: !0,
11308
11309
  hideSortIcons: a,
11309
11310
  type: "number",
@@ -11316,7 +11317,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11316
11317
  field: "monthly_payment",
11317
11318
  headerName: c.table_column_amount_due,
11318
11319
  renderHeader: we,
11319
- valueFormatter: (P) => typeof P == "number" ? M(P, "0,0") : "---",
11320
+ valueFormatter: (b) => typeof b == "number" ? M(b, "0,0") : "---",
11320
11321
  sortable: !0,
11321
11322
  hideSortIcons: a,
11322
11323
  type: "number",
@@ -11339,14 +11340,14 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11339
11340
  headerAlign: "right",
11340
11341
  width: 20
11341
11342
  }
11342
- ], v = h.useMemo(() => t.map((P, p) => ({
11343
- ...P,
11343
+ ], v = h.useMemo(() => t.map((b, p) => ({
11344
+ ...b,
11344
11345
  id: p,
11345
- priority: Fh(P)
11346
- })), [t]), u = (P) => {
11347
- const x = P.target.closest("[data-id]")?.getAttribute("data-id"), w = t[Number(x)];
11346
+ priority: Fh(b)
11347
+ })), [t]), u = (b) => {
11348
+ const x = b.target.closest("[data-id]")?.getAttribute("data-id"), w = t[Number(x)];
11348
11349
  n?.(w?.guid ?? "");
11349
- }, H = (P) => v.find((p) => p.guid === P)?.id;
11350
+ }, H = (b) => v.find((p) => p.guid === b)?.id;
11350
11351
  return /* @__PURE__ */ e(
11351
11352
  L,
11352
11353
  {
@@ -11366,11 +11367,11 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11366
11367
  disableColumnMenu: !0,
11367
11368
  hideFooter: !0,
11368
11369
  initialState: { sorting: { sortModel: d } },
11369
- onRowClick: (P) => {
11370
- r(), I(V.TRENDS_CLICK_TABLE_ROW, { account_guid: P.row.guid });
11370
+ onRowClick: (b) => {
11371
+ r(), I(V.TRENDS_CLICK_TABLE_ROW, { account_guid: b.row.guid });
11371
11372
  },
11372
- onSortModelChange: (P) => {
11373
- f(P), I(V.TRENDS_CLICK_TABLE_SORT);
11373
+ onSortModelChange: (b) => {
11374
+ f(b), I(V.TRENDS_CLICK_TABLE_SORT);
11374
11375
  },
11375
11376
  rows: v,
11376
11377
  slotProps: {
@@ -11508,17 +11509,17 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11508
11509
  const E = o[d].dataset, v = (f.interest_rate ?? 0) / 100 / 12, u = f.balance * v;
11509
11510
  let H = f.monthly_payment ?? 0;
11510
11511
  d === 0 && (H += i), f.balance += u;
11511
- const P = Math.min(f.balance, H + I);
11512
- if (P <= u) {
11512
+ const b = Math.min(f.balance, H + I);
11513
+ if (b <= u) {
11513
11514
  f.is_impossible = !0, o[d].is_impossible = !0, o[d].priority = void 0, E.push({ x: new Date(r), y: f.balance });
11514
11515
  continue;
11515
11516
  }
11516
- f.balance -= P, f.balance = f.balance < 0.01 ? 0 : f.balance, E.push({
11517
+ f.balance -= b, f.balance = f.balance < 0.01 ? 0 : f.balance, E.push({
11517
11518
  x: new Date(r),
11518
11519
  y: Math.max(0, f.balance),
11519
- payment: P,
11520
+ payment: b,
11520
11521
  extra: I
11521
- }), f.balance <= 0 && (I += H, o[d].projected_payoff_date = new Date(r)), P > 0 && (c = !0);
11522
+ }), f.balance <= 0 && (I += H, o[d].projected_payoff_date = new Date(r)), b > 0 && (c = !0);
11522
11523
  }
11523
11524
  c && r.setMonth(r.getMonth() + 1);
11524
11525
  }
@@ -11542,10 +11543,10 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11542
11543
  }
11543
11544
  );
11544
11545
  }), tl = ({ onBackClick: A, sx: t }) => {
11545
- const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount: P } = Xe(), { selectedDebtPriority: p, setSelectedDebtChartData: y } = ke(), { accounts: x } = CA(), { loadGoals: w, monthlyCashFlowProfile: D } = FA(), { debts: m } = Ni(), j = h.useMemo(() => {
11546
+ const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount: b } = Xe(), { selectedDebtPriority: p, setSelectedDebtChartData: y } = ke(), { accounts: x } = CA(), { loadGoals: w, monthlyCashFlowProfile: D } = FA(), { debts: j } = Ni(), m = h.useMemo(() => {
11546
11547
  const oA = D?.extra_payment ?? 0;
11547
- return Al(m, p, oA);
11548
- }, [m, p, D]);
11548
+ return Al(j, p, oA);
11549
+ }, [j, p, D]);
11549
11550
  h.useEffect(() => {
11550
11551
  H(x), v(V.DEBTS_VIEW);
11551
11552
  }, []), h.useEffect(() => {
@@ -11554,8 +11555,8 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11554
11555
  u && w().finally();
11555
11556
  }, [u]);
11556
11557
  const O = (oA) => d(oA), T = () => {
11557
- const oA = x.find((uA) => uA.guid === c), sA = j.find((uA) => uA.guid === c);
11558
- oA && P(oA), sA && y(sA), n(!0);
11558
+ const oA = x.find((uA) => uA.guid === c), sA = m.find((uA) => uA.guid === c);
11559
+ oA && b(oA), sA && y(sA), n(!0);
11559
11560
  }, tA = () => v(V.DEBTS_CLICK_FILTER), Y = () => {
11560
11561
  a(!0), v(V.DEBTS_CLICK_SNOWBALL_CTA);
11561
11562
  }, iA = () => {
@@ -11574,9 +11575,9 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11574
11575
  sx: t,
11575
11576
  title: l.title,
11576
11577
  children: [
11577
- /* @__PURE__ */ s(b, { sx: { px: f ? "48px" : "24px" }, children: [
11578
+ /* @__PURE__ */ s(P, { sx: { px: f ? "48px" : "24px" }, children: [
11578
11579
  /* @__PURE__ */ s(
11579
- b,
11580
+ P,
11580
11581
  {
11581
11582
  sx: {
11582
11583
  alignItems: E ? "flex-start" : "flex-end",
@@ -11587,7 +11588,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11587
11588
  /* @__PURE__ */ e(
11588
11589
  mI,
11589
11590
  {
11590
- debts: j,
11591
+ debts: m,
11591
11592
  height: E ? 250 : void 0,
11592
11593
  hoveredDebtGuid: c,
11593
11594
  onClickArea: T,
@@ -11598,7 +11599,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11598
11599
  /* @__PURE__ */ e(
11599
11600
  ah,
11600
11601
  {
11601
- debts: j,
11602
+ debts: m,
11602
11603
  onClickCta: Y,
11603
11604
  sx: { mb: E ? "0px" : "64px" }
11604
11605
  }
@@ -11606,10 +11607,10 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11606
11607
  ]
11607
11608
  }
11608
11609
  ),
11609
- /* @__PURE__ */ e(b, { sx: { mx: E ? "-24px" : 0 }, children: /* @__PURE__ */ e(
11610
+ /* @__PURE__ */ e(P, { sx: { mx: E ? "-24px" : 0 }, children: /* @__PURE__ */ e(
11610
11611
  Zh,
11611
11612
  {
11612
- debts: j,
11613
+ debts: m,
11613
11614
  hoveredDebtGuid: c,
11614
11615
  onClickRow: T,
11615
11616
  onHoverRow: O
@@ -11745,7 +11746,7 @@ class eo {
11745
11746
  updateRetirementGoal = async (t) => this.fetchInstance.put(`${Q.RETIREMENT_GOALS}/${t.guid}`, t).then((i) => i.retirement_goal);
11746
11747
  }
11747
11748
  function tn({ title: A, subtitle: t }) {
11748
- return /* @__PURE__ */ s(b, { children: [
11749
+ return /* @__PURE__ */ s(P, { children: [
11749
11750
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A }),
11750
11751
  /* @__PURE__ */ e(R, { sx: { fontWeight: 400 }, variant: "Body", children: t })
11751
11752
  ] });
@@ -11867,9 +11868,9 @@ const cl = (A, t) => {
11867
11868
  title: /* @__PURE__ */ e(lt, { color: "text.secondary", fontWeight: 400, variant: "Body", children: A.name })
11868
11869
  }
11869
11870
  ),
11870
- /* @__PURE__ */ e(Ce, { sx: { pt: 0 }, children: /* @__PURE__ */ s(b, { gap: 6, children: [
11871
+ /* @__PURE__ */ e(Ce, { sx: { pt: 0 }, children: /* @__PURE__ */ s(P, { gap: 6, children: [
11871
11872
  /* @__PURE__ */ e(ti, { data: v, height: 24 }),
11872
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
11873
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
11873
11874
  /* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: f }),
11874
11875
  A.projected_to_complete_at && /* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: E })
11875
11876
  ] })
@@ -11886,7 +11887,7 @@ const cl = (A, t) => {
11886
11887
  A === B.SAVINGS_TRACK ? d.amount_allocated_for_savings_goals = I : A === B.DEBT_TRACK ? d.amount_allocated_for_debt_goals = I : A === B.RETIREMENT_TRACK && (d.amount_allocated_for_retirement_goals = I), await r(d), i(t.alert_contribution_updated);
11887
11888
  }
11888
11889
  };
11889
- return /* @__PURE__ */ e(b, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
11890
+ return /* @__PURE__ */ e(P, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
11890
11891
  Ge,
11891
11892
  {
11892
11893
  isSaveDisabled: !I || isNaN(I),
@@ -11920,7 +11921,7 @@ const cl = (A, t) => {
11920
11921
  flex: 1,
11921
11922
  renderCell: (v) => {
11922
11923
  const u = v.row;
11923
- return /* @__PURE__ */ s(b, { children: [
11924
+ return /* @__PURE__ */ s(P, { children: [
11924
11925
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: u.name }),
11925
11926
  /* @__PURE__ */ e(R, { variant: "XSmall", children: z(
11926
11927
  t.goal_projection,
@@ -11951,15 +11952,15 @@ const cl = (A, t) => {
11951
11952
  })), E = ({ oldIndex: v, targetIndex: u }) => {
11952
11953
  const H = [...a];
11953
11954
  H.splice(u, 0, H.splice(v, 1)[0]);
11954
- for (let P = 0; P < H.length; P += 1)
11955
- H[P].position = P + 1;
11955
+ for (let b = 0; b < H.length; b += 1)
11956
+ H[b].position = b + 1;
11956
11957
  c(H);
11957
11958
  }, l = async () => {
11958
11959
  await n(a), r(t.alert_goals_reordered), I(!1);
11959
11960
  };
11960
- return /* @__PURE__ */ s(b, { children: [
11961
+ return /* @__PURE__ */ s(P, { children: [
11961
11962
  /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(aA, { onClick: () => I(!0), children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
11962
- b,
11963
+ P,
11963
11964
  {
11964
11965
  alignItems: "center",
11965
11966
  color: "action.active",
@@ -11979,7 +11980,7 @@ const cl = (A, t) => {
11979
11980
  onClose: () => I(!1),
11980
11981
  onPrimaryAction: l,
11981
11982
  title: t.reorder_goals_title,
11982
- children: /* @__PURE__ */ s(b, { children: [
11983
+ children: /* @__PURE__ */ s(P, { children: [
11983
11984
  /* @__PURE__ */ e(HA, { sx: { my: 12, mx: 24 }, children: t.reorder_goals_description }),
11984
11985
  /* @__PURE__ */ e(
11985
11986
  Gt,
@@ -12022,8 +12023,8 @@ const cl = (A, t) => {
12022
12023
  children: /* @__PURE__ */ e(Qe, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t + 1 }) })
12023
12024
  }
12024
12025
  ),
12025
- /* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12026
- /* @__PURE__ */ s(b, { children: [
12026
+ /* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12027
+ /* @__PURE__ */ s(P, { children: [
12027
12028
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.name }),
12028
12029
  /* @__PURE__ */ e(R, { variant: "XSmall", children: z(
12029
12030
  i.goal_projection,
@@ -12040,8 +12041,8 @@ const cl = (A, t) => {
12040
12041
  const { goals: t } = X();
12041
12042
  return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { children: [
12042
12043
  /* @__PURE__ */ e(xA, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(_a, { color: "success", filled: !0, size: 20 }) }),
12043
- /* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12044
- /* @__PURE__ */ s(b, { children: [
12044
+ /* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12045
+ /* @__PURE__ */ s(P, { children: [
12045
12046
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.name }),
12046
12047
  /* @__PURE__ */ e(R, { variant: "XSmall", children: z(
12047
12048
  t.completed_label,
@@ -12061,7 +12062,7 @@ const cl = (A, t) => {
12061
12062
  (v) => v.track_type === B.SAVINGS_TRACK && v.has_been_spent || v.track_type !== B.SAVINGS_TRACK && v.is_complete
12062
12063
  ), [a, c] = h.useState(!1);
12063
12064
  let d = t.manage_saving_goals, f = t.manage_saving_drawer_title, E = t.manage_saving_title, l = t.manage_saving_description;
12064
- return A === B.DEBT_TRACK ? (d = t.manage_debt_goals, f = t.manage_debt_drawer_title, E = t.manage_debt_title, l = t.manage_debt_description) : A === B.RETIREMENT_TRACK && (d = t.manage_retirement_goals, f = t.manage_retirement_drawer_title, E = t.manage_retirement_title, l = t.manage_retirement_description), /* @__PURE__ */ s(b, { children: [
12065
+ return A === B.DEBT_TRACK ? (d = t.manage_debt_goals, f = t.manage_debt_drawer_title, E = t.manage_debt_title, l = t.manage_debt_description) : A === B.RETIREMENT_TRACK && (d = t.manage_retirement_goals, f = t.manage_retirement_drawer_title, E = t.manage_retirement_title, l = t.manage_retirement_description), /* @__PURE__ */ s(P, { children: [
12065
12066
  /* @__PURE__ */ e($, { endIcon: /* @__PURE__ */ e(ce, {}), onClick: () => c(!0), children: d }),
12066
12067
  /* @__PURE__ */ e(
12067
12068
  IA,
@@ -12070,8 +12071,8 @@ const cl = (A, t) => {
12070
12071
  isOpen: a,
12071
12072
  onClose: () => c(!1),
12072
12073
  title: f,
12073
- children: /* @__PURE__ */ s(b, { children: [
12074
- /* @__PURE__ */ s(b, { m: 24, children: [
12074
+ children: /* @__PURE__ */ s(P, { children: [
12075
+ /* @__PURE__ */ s(P, { m: 24, children: [
12075
12076
  /* @__PURE__ */ e(ne, { children: E }),
12076
12077
  /* @__PURE__ */ e(HA, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: l })
12077
12078
  ] }),
@@ -12080,7 +12081,7 @@ const cl = (A, t) => {
12080
12081
  /* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
12081
12082
  o.map((v, u) => {
12082
12083
  const H = u >= o.length - 1;
12083
- return /* @__PURE__ */ s(b, { children: [
12084
+ return /* @__PURE__ */ s(P, { children: [
12084
12085
  /* @__PURE__ */ e(hl, { goal: v, index: u }),
12085
12086
  /* @__PURE__ */ e(
12086
12087
  G,
@@ -12090,16 +12091,16 @@ const cl = (A, t) => {
12090
12091
  )
12091
12092
  ] }, `ongoing-${v.guid}`);
12092
12093
  }),
12093
- A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(b, { children: [
12094
+ A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(P, { children: [
12094
12095
  /* @__PURE__ */ e(El, { goals: o }),
12095
12096
  /* @__PURE__ */ e(G, {})
12096
12097
  ] })
12097
12098
  ] }),
12098
- A !== B.RETIREMENT_TRACK && I.length > 0 && /* @__PURE__ */ s(b, { children: [
12099
+ A !== B.RETIREMENT_TRACK && I.length > 0 && /* @__PURE__ */ s(P, { children: [
12099
12100
  /* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: t.complete_title }),
12100
12101
  /* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: I.map((v, u) => {
12101
12102
  const H = u > o.length - 1;
12102
- return /* @__PURE__ */ s(b, { children: [
12103
+ return /* @__PURE__ */ s(P, { children: [
12103
12104
  /* @__PURE__ */ e(ll, { goal: v }),
12104
12105
  /* @__PURE__ */ e(G, { variant: H ? "fullWidth" : "inset" })
12105
12106
  ] }, `complete-${v.guid}`);
@@ -12115,8 +12116,8 @@ const cl = (A, t) => {
12115
12116
  ), c = I.filter(
12116
12117
  (f) => f.track_type === B.SAVINGS_TRACK && f.has_been_spent || f.track_type !== B.SAVINGS_TRACK && f.is_complete
12117
12118
  ), d = A === B.DEBT_TRACK ? n.zero_state_complete_debt : n.zero_state_complete_savings;
12118
- return /* @__PURE__ */ s(b, { mt: 16, mx: i ? 24 : 0, children: [
12119
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
12119
+ return /* @__PURE__ */ s(P, { mt: 16, mx: i ? 24 : 0, children: [
12120
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
12120
12121
  /* @__PURE__ */ e(R, { color: "text.secondary", variant: "Small", children: n.ongoing_title }),
12121
12122
  /* @__PURE__ */ e(vl, { trackType: A })
12122
12123
  ] }),
@@ -12124,7 +12125,7 @@ const cl = (A, t) => {
12124
12125
  // Goal should be full width in mobile or if it's the first goal (unless there are 2)
12125
12126
  /* @__PURE__ */ e(tt, { xs: i || E === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(qI, { goal: f, onClick: () => o(f) }, f.guid) }, E)
12126
12127
  )) }) : /* @__PURE__ */ s(
12127
- b,
12128
+ P,
12128
12129
  {
12129
12130
  alignItems: "center",
12130
12131
  bgcolor: "background.default",
@@ -12138,11 +12139,11 @@ const cl = (A, t) => {
12138
12139
  ]
12139
12140
  }
12140
12141
  ),
12141
- A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(b, { gap: 16, mt: 48, children: [
12142
+ A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(P, { gap: 16, mt: 48, children: [
12142
12143
  /* @__PURE__ */ e(R, { color: "text.secondary", variant: "Small", children: n.complete_title }),
12143
- c.length === 0 && /* @__PURE__ */ e(b, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(HA, { sx: { color: "text.secondary" }, variant: "Small", children: d }) }),
12144
- c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Go, { onClick: () => o(f), children: /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12145
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 6, children: [
12144
+ c.length === 0 && /* @__PURE__ */ e(P, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(HA, { sx: { color: "text.secondary" }, variant: "Small", children: d }) }),
12145
+ c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Go, { onClick: () => o(f), children: /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12146
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 6, children: [
12146
12147
  /* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 20 }),
12147
12148
  /* @__PURE__ */ e(R, { color: "text.secondary", variant: "Body", children: f.name })
12148
12149
  ] }),
@@ -12152,7 +12153,7 @@ const cl = (A, t) => {
12152
12153
  ] });
12153
12154
  }), Rl = ({ goalType: A, onClick: t }) => {
12154
12155
  const { goals: i } = X(), { bgcolor: n, icon: r, label: o, description: I, subTypes: a, type: c } = A, [d, f] = h.useState(!1), E = a.length > 0;
12155
- return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
12156
+ return /* @__PURE__ */ e(P, { children: /* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
12156
12157
  /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(
12157
12158
  aA,
12158
12159
  {
@@ -12266,7 +12267,7 @@ const cl = (A, t) => {
12266
12267
  }
12267
12268
  c(!1), A?.(B.DEBT_TRACK);
12268
12269
  };
12269
- return /* @__PURE__ */ s(b, { children: [
12270
+ return /* @__PURE__ */ s(P, { children: [
12270
12271
  /* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: d.map((l, v) => /* @__PURE__ */ e(Rl, { goalType: l, onClick: f }, v)) }),
12271
12272
  /* @__PURE__ */ e(
12272
12273
  GI,
@@ -12301,7 +12302,7 @@ const cl = (A, t) => {
12301
12302
  ),
12302
12303
  /* @__PURE__ */ e(ce, {})
12303
12304
  ] }),
12304
- /* @__PURE__ */ e(IA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ s(b, { children: [
12305
+ /* @__PURE__ */ e(IA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ s(P, { children: [
12305
12306
  /* @__PURE__ */ e($n, {}),
12306
12307
  /* @__PURE__ */ e(SI, {})
12307
12308
  ] }) })
@@ -12345,14 +12346,14 @@ const cl = (A, t) => {
12345
12346
  const v = { ...A, account_guid: l };
12346
12347
  c ? I(v) : (await a(v), o(r.alert_account_changed)), f(!1);
12347
12348
  };
12348
- return /* @__PURE__ */ s(b, { children: [
12349
+ return /* @__PURE__ */ s(P, { children: [
12349
12350
  c ? /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => f(!0), children: [
12350
- /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
12351
+ /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
12351
12352
  /* @__PURE__ */ e(jo, { filled: !0 }),
12352
12353
  r.details_add_account
12353
12354
  ] }) }),
12354
12355
  /* @__PURE__ */ e(ce, { color: "primary" })
12355
- ] }) }) : /* @__PURE__ */ s(b, { sx: { gap: 8, my: 24, mx: 24 }, children: [
12356
+ ] }) }) : /* @__PURE__ */ s(P, { sx: { gap: 8, my: 24, mx: 24 }, children: [
12356
12357
  /* @__PURE__ */ e($, { onClick: () => f(!0), variant: "text", children: r.details_change_account }),
12357
12358
  /* @__PURE__ */ e(
12358
12359
  R,
@@ -12364,7 +12365,7 @@ const cl = (A, t) => {
12364
12365
  }
12365
12366
  )
12366
12367
  ] }),
12367
- /* @__PURE__ */ e(IA, { isOpen: d, onClose: () => f(!1), title: r.details_change_account, children: /* @__PURE__ */ s(b, { children: [
12368
+ /* @__PURE__ */ e(IA, { isOpen: d, onClose: () => f(!1), title: r.details_change_account, children: /* @__PURE__ */ s(P, { children: [
12368
12369
  /* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: n.account_types[1] }),
12369
12370
  /* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: t.map((l) => /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => E(l.guid), children: [
12370
12371
  /* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(
@@ -12514,24 +12515,24 @@ const cl = (A, t) => {
12514
12515
  ), l = i.filter(
12515
12516
  (u) => !o.find((H) => H.account_guid === u.guid)
12516
12517
  ), v = async (u) => {
12517
- const H = u.map((P) => ({
12518
- account_guid: P.guid,
12518
+ const H = u.map((b) => ({
12519
+ account_guid: b.guid,
12519
12520
  retirement_goal_guid: A.guid
12520
12521
  }));
12521
12522
  if (f)
12522
12523
  a(H);
12523
12524
  else
12524
- for (const P of H)
12525
- await n(P), I(t.alert_account_added);
12525
+ for (const b of H)
12526
+ await n(b), I(t.alert_account_added);
12526
12527
  d(!1);
12527
12528
  };
12528
- return /* @__PURE__ */ s(b, { children: [
12529
- E.map((u) => /* @__PURE__ */ s(b, { children: [
12529
+ return /* @__PURE__ */ s(P, { children: [
12530
+ E.map((u) => /* @__PURE__ */ s(P, { children: [
12530
12531
  /* @__PURE__ */ e(MI, { account: u }),
12531
12532
  /* @__PURE__ */ e(G, {})
12532
12533
  ] }, u.guid)),
12533
12534
  /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => d(!0), children: [
12534
- /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
12535
+ /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
12535
12536
  /* @__PURE__ */ e(jo, { filled: !0 }),
12536
12537
  t.details_add_account
12537
12538
  ] }) }),
@@ -12554,8 +12555,8 @@ const cl = (A, t) => {
12554
12555
  [i, A]
12555
12556
  ), r = A.track_type;
12556
12557
  let o = t.details_save_title;
12557
- return A.track_type === B.DEBT_TRACK ? o = t.details_debt_title : A.track_type === B.RETIREMENT_TRACK && (o = t.details_retirement_title), /* @__PURE__ */ s(b, { children: [
12558
- /* @__PURE__ */ s(b, { mx: 24, children: [
12558
+ return A.track_type === B.DEBT_TRACK ? o = t.details_debt_title : A.track_type === B.RETIREMENT_TRACK && (o = t.details_retirement_title), /* @__PURE__ */ s(P, { children: [
12559
+ /* @__PURE__ */ s(P, { mx: 24, children: [
12559
12560
  /* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: o }),
12560
12561
  /* @__PURE__ */ e(qI, { goal: A, isInDrawer: !0 }),
12561
12562
  /* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: t.details_title })
@@ -12603,31 +12604,31 @@ const cl = (A, t) => {
12603
12604
  setAlert: c,
12604
12605
  setSelectedGoal: d,
12605
12606
  updateGoal: f
12606
- } = FA(), { user: E } = Ue(), [l, v] = h.useState(!1), u = !a?.guid, H = a?.track_type === B.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, P = h.useMemo(() => a ? a.track_type === B.SAVINGS_TRACK ? !!a.name && !!a.amount : a.track_type === B.DEBT_TRACK ? !0 : a.track_type === B.RETIREMENT_TRACK ? !!a.name && !!a.amount && !!a.retirement_age && !!E.birthday : !0 : !1, [a]);
12607
+ } = FA(), { user: E } = Ue(), [l, v] = h.useState(!1), u = !a?.guid, H = a?.track_type === B.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, b = h.useMemo(() => a ? a.track_type === B.SAVINGS_TRACK ? !!a.name && !!a.amount : a.track_type === B.DEBT_TRACK ? !0 : a.track_type === B.RETIREMENT_TRACK ? !!a.name && !!a.amount && !!a.retirement_age && !!E.birthday : !0 : !1, [a]);
12607
12608
  let p = i.delete_button, y = () => v(!0);
12608
12609
  u ? (y = () => x(), p = i.save_button) : H && (y = () => D(), p = t.mark_as_complete_button);
12609
12610
  const x = async () => {
12610
12611
  if (a) {
12611
- const m = a.track_type;
12612
- m !== B.RETIREMENT_TRACK ? await n(a) : m === B.RETIREMENT_TRACK && await r({ ...a, target_amount: a.amount }), c(t.alert_goal_added), d(void 0), m && A?.(m);
12612
+ const j = a.track_type;
12613
+ j !== B.RETIREMENT_TRACK ? await n(a) : j === B.RETIREMENT_TRACK && await r({ ...a, target_amount: a.amount }), c(t.alert_goal_added), d(void 0), j && A?.(j);
12613
12614
  }
12614
12615
  }, w = async () => {
12615
12616
  a && (a.track_type !== B.RETIREMENT_TRACK ? await o(a.guid) : a.track_type === B.RETIREMENT_TRACK && await I(a), c(t.alert_goal_deleted), d(void 0));
12616
12617
  }, D = async () => {
12617
- const m = {
12618
+ const j = {
12618
12619
  ...a,
12619
12620
  has_been_spent: !0
12620
12621
  };
12621
- await f(m), c(t.alert_goal_completed), d(void 0);
12622
+ await f(j), c(t.alert_goal_completed), d(void 0);
12622
12623
  };
12623
- return /* @__PURE__ */ s(b, { children: [
12624
+ return /* @__PURE__ */ s(P, { children: [
12624
12625
  /* @__PURE__ */ e(
12625
12626
  IA,
12626
12627
  {
12627
12628
  ariaLabelClose: i.close_aria,
12628
12629
  hasSecondaryAction: u,
12629
12630
  isOpen: !!a,
12630
- isPrimaryDisabled: !P,
12631
+ isPrimaryDisabled: !b,
12631
12632
  onClose: () => d(void 0),
12632
12633
  onPrimaryAction: y,
12633
12634
  primaryColor: u || H ? "primary" : "error",
@@ -12658,7 +12659,7 @@ const cl = (A, t) => {
12658
12659
  onClick: n,
12659
12660
  subText: r
12660
12661
  }) => /* @__PURE__ */ s(
12661
- b,
12662
+ P,
12662
12663
  {
12663
12664
  sx: {
12664
12665
  mt: 54,
@@ -12680,10 +12681,10 @@ const cl = (A, t) => {
12680
12681
  ]
12681
12682
  }
12682
12683
  ), jP = C(({ onBackClick: A, sx: t }) => {
12683
- const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H, P] = h.useState(0), [p, y] = h.useState(!1), x = l?.amount_allocated_for_savings_goals || 0, w = l?.amount_allocated_for_debt_goals || 0, D = l?.amount_allocated_for_retirement_goals || 0, m = z(
12684
+ const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H, b] = h.useState(0), [p, y] = h.useState(!1), x = l?.amount_allocated_for_savings_goals || 0, w = l?.amount_allocated_for_debt_goals || 0, D = l?.amount_allocated_for_retirement_goals || 0, j = z(
12684
12685
  n ? a.tab_subtitle_mobile : a.tab_subtitle,
12685
12686
  M(x, "0,0")
12686
- ), j = z(
12687
+ ), m = z(
12687
12688
  n ? a.tab_subtitle_mobile : a.tab_subtitle,
12688
12689
  M(w, "0,0")
12689
12690
  ), O = z(
@@ -12700,7 +12701,7 @@ const cl = (A, t) => {
12700
12701
  }, tA = () => {
12701
12702
  y(!0), i(V.GOALS_CLICK_ADD);
12702
12703
  }, Y = (oA) => {
12703
- y(!1), oA === B.SAVINGS_TRACK ? P(0) : oA === B.DEBT_TRACK ? P(1) : oA === B.RETIREMENT_TRACK && P(2);
12704
+ y(!1), oA === B.SAVINGS_TRACK ? b(0) : oA === B.DEBT_TRACK ? b(1) : oA === B.RETIREMENT_TRACK && b(2);
12704
12705
  }, iA = h.useMemo(
12705
12706
  () => f.length === 0 || f.every(({ track_type: oA }) => !oA) && u.length === 0,
12706
12707
  [f, u]
@@ -12722,11 +12723,11 @@ const cl = (A, t) => {
12722
12723
  title: a.title,
12723
12724
  children: [
12724
12725
  !o && /* @__PURE__ */ e(ee, {}),
12725
- o && /* @__PURE__ */ s(b, { mx: n ? 0 : 48, my: 24, children: [
12726
+ o && /* @__PURE__ */ s(P, { mx: n ? 0 : 48, my: 24, children: [
12726
12727
  /* @__PURE__ */ s(
12727
12728
  Se,
12728
12729
  {
12729
- onChange: (oA, sA) => P(sA),
12730
+ onChange: (oA, sA) => b(sA),
12730
12731
  sx: { bgcolor: "background.paper" },
12731
12732
  value: iA ? !1 : H,
12732
12733
  variant: "fullWidth",
@@ -12735,14 +12736,14 @@ const cl = (A, t) => {
12735
12736
  GA,
12736
12737
  {
12737
12738
  disabled: iA,
12738
- label: /* @__PURE__ */ e(tn, { subtitle: m, title: a.tab_saving_title })
12739
+ label: /* @__PURE__ */ e(tn, { subtitle: j, title: a.tab_saving_title })
12739
12740
  }
12740
12741
  ),
12741
12742
  /* @__PURE__ */ e(
12742
12743
  GA,
12743
12744
  {
12744
12745
  disabled: iA,
12745
- label: /* @__PURE__ */ e(tn, { subtitle: j, title: a.tab_debt_title })
12746
+ label: /* @__PURE__ */ e(tn, { subtitle: m, title: a.tab_debt_title })
12746
12747
  }
12747
12748
  ),
12748
12749
  /* @__PURE__ */ e(
@@ -13248,7 +13249,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
13248
13249
  estimateSize: () => io,
13249
13250
  overscan: 5
13250
13251
  });
13251
- return h.useEffect(() => E.measure(), [n]), /* @__PURE__ */ s(b, { className: "mx-mrt-lookup", children: [
13252
+ return h.useEffect(() => E.measure(), [n]), /* @__PURE__ */ s(P, { className: "mx-mrt-lookup", children: [
13252
13253
  /* @__PURE__ */ e(
13253
13254
  Ti,
13254
13255
  {
@@ -13283,7 +13284,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
13283
13284
  );
13284
13285
  })
13285
13286
  ] }),
13286
- !n.length && /* @__PURE__ */ e(b, { alignItems: "center", my: 24, children: /* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: o.search_zero_state }) })
13287
+ !n.length && /* @__PURE__ */ e(P, { alignItems: "center", my: 24, children: /* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: o.search_zero_state }) })
13287
13288
  ] }) }) })
13288
13289
  ] });
13289
13290
  }, mP = C(Ll);
@@ -13526,7 +13527,7 @@ const Sl = ({
13526
13527
  children: /* @__PURE__ */ e(
13527
13528
  eA,
13528
13529
  {
13529
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13530
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13530
13531
  /* @__PURE__ */ e(R, { variant: "Body", children: Ko(A.x) }),
13531
13532
  /* @__PURE__ */ e(OA, { amount: A.y, sx: { color: "inherit" }, variant: "Body" })
13532
13533
  ] })
@@ -13555,7 +13556,7 @@ const Sl = ({
13555
13556
  };
13556
13557
  return E && (v.color = l ? "inherit" : v.color, v.backgroundColor = c.palette.action.hover), l && (v.backgroundColor = c.palette.primary.main, v.borderBottom = c.palette.border.light, v.color = c.palette.common.white), v;
13557
13558
  };
13558
- return /* @__PURE__ */ s(b, { direction: "column", sx: { minWidth: 320 }, children: [
13559
+ return /* @__PURE__ */ s(P, { direction: "column", sx: { minWidth: 320 }, children: [
13559
13560
  /* @__PURE__ */ s(rA, { children: [
13560
13561
  /* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "Body", children: a.monthly_totals }) }),
13561
13562
  /* @__PURE__ */ e(G, {}),
@@ -13607,7 +13608,7 @@ const Sl = ({
13607
13608
  ] });
13608
13609
  }, Ar = C(Zl), Jl = ({ hoveredData: A, selectedData: t }) => {
13609
13610
  const { net_worth: i } = X(), n = oe(), r = A || t, o = Is(Ai(r.x), "MMMM");
13610
- return /* @__PURE__ */ s(b, { alignItems: "center", direction: "column", m: 24, children: [
13611
+ return /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", m: 24, children: [
13611
13612
  /* @__PURE__ */ e(R, { color: n.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
13612
13613
  /* @__PURE__ */ e(OA, { amount: r.y, variant: "H2" }),
13613
13614
  /* @__PURE__ */ e(Ar, { currencyLabel: i.this_month, netWorth: r, theme: n })
@@ -13630,7 +13631,7 @@ const Sl = ({
13630
13631
  /* @__PURE__ */ e(W, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ e(
13631
13632
  eA,
13632
13633
  {
13633
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13634
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13634
13635
  /* @__PURE__ */ e(R, { variant: "Body", children: o.accountName }),
13635
13636
  /* @__PURE__ */ e(OA, { amount: o.balance, variant: "Small" })
13636
13637
  ] }),
@@ -13679,7 +13680,7 @@ const Sl = ({
13679
13680
  /* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
13680
13681
  eA,
13681
13682
  {
13682
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
13683
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
13683
13684
  /* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.assets }),
13684
13685
  /* @__PURE__ */ e(OA, { amount: n, sx: { fontWeight: 400 }, variant: "XSmall" })
13685
13686
  ] })
@@ -13689,7 +13690,7 @@ const Sl = ({
13689
13690
  /* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
13690
13691
  eA,
13691
13692
  {
13692
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
13693
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
13693
13694
  /* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.liabilities }),
13694
13695
  /* @__PURE__ */ e(OA, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
13695
13696
  ] })
@@ -13707,7 +13708,7 @@ const Sl = ({
13707
13708
  }) => {
13708
13709
  const { net_worth: o } = X(), I = RA();
13709
13710
  return /* @__PURE__ */ s(Z, { children: [
13710
- /* @__PURE__ */ s(b, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
13711
+ /* @__PURE__ */ s(P, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
13711
13712
  /* @__PURE__ */ e(R, { variant: "Small", children: Ko(A?.x) }),
13712
13713
  /* @__PURE__ */ e(R, { variant: "Body", children: o.total_change }),
13713
13714
  A && /* @__PURE__ */ e(Ar, { currencyVariant: "H1", iconSize: 32, netWorth: A, theme: I })
@@ -13716,7 +13717,7 @@ const Sl = ({
13716
13717
  /* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
13717
13718
  eA,
13718
13719
  {
13719
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
13720
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
13720
13721
  /* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.gains }),
13721
13722
  /* @__PURE__ */ e(OA, { amount: n, sx: { fontWeight: 400 }, variant: "XSmall" })
13722
13723
  ] })
@@ -13726,7 +13727,7 @@ const Sl = ({
13726
13727
  /* @__PURE__ */ e(W, { sx: { backgroundColor: I.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
13727
13728
  eA,
13728
13729
  {
13729
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13730
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13730
13731
  /* @__PURE__ */ e(R, { variant: "Body", children: a.accountName }),
13731
13732
  /* @__PURE__ */ e(
13732
13733
  OA,
@@ -13745,7 +13746,7 @@ const Sl = ({
13745
13746
  /* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
13746
13747
  eA,
13747
13748
  {
13748
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", children: [
13749
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
13749
13750
  /* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.losses }),
13750
13751
  /* @__PURE__ */ e(OA, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
13751
13752
  ] })
@@ -13759,7 +13760,7 @@ const Sl = ({
13759
13760
  children: /* @__PURE__ */ e(
13760
13761
  eA,
13761
13762
  {
13762
- primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13763
+ primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13763
13764
  /* @__PURE__ */ e(R, { variant: "Body", children: a.accountName }),
13764
13765
  /* @__PURE__ */ e(OA, { amount: a.loss, sx: { fontWeight: 700 }, variant: "Body" })
13765
13766
  ] }),
@@ -13824,7 +13825,7 @@ const Sl = ({
13824
13825
  selectedData: v,
13825
13826
  setHoveredData: u,
13826
13827
  setSelectedData: H
13827
- } = Lc(), { isMobile: P } = zA(), { onEvent: p } = K(), [y, x] = h.useState(!1), [w, D] = h.useState(6), [m, j] = h.useState(!1), [O, T] = h.useState(!1), [tA, Y] = h.useState(!1), iA = async () => {
13828
+ } = Lc(), { isMobile: b } = zA(), { onEvent: p } = K(), [y, x] = h.useState(!1), [w, D] = h.useState(6), [j, m] = h.useState(!1), [O, T] = h.useState(!1), [tA, Y] = h.useState(!1), iA = async () => {
13828
13829
  await E(i), await f(w), x(!0);
13829
13830
  };
13830
13831
  h.useEffect(() => {
@@ -13837,7 +13838,7 @@ const Sl = ({
13837
13838
  p(V.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: w + "M" }), f(w);
13838
13839
  }, [w]);
13839
13840
  const oA = (Ie, bA) => {
13840
- H(bA), Ie.currentTarget instanceof HTMLDivElement && j(!0);
13841
+ H(bA), Ie.currentTarget instanceof HTMLDivElement && m(!0);
13841
13842
  }, sA = (Ie) => {
13842
13843
  u(Ie);
13843
13844
  }, uA = () => {
@@ -13865,21 +13866,21 @@ const Sl = ({
13865
13866
  calendarActions: {
13866
13867
  onRangeChanged: jA
13867
13868
  },
13868
- dateRangeVariant: P ? "timeframetabs" : "timeframebuttons",
13869
+ dateRangeVariant: b ? "timeframetabs" : "timeframebuttons",
13869
13870
  onAccountsFilterClick: () => p(V.NET_WORTH_WIDGET_CLICK_FILTER),
13870
13871
  onBackClick: A,
13871
13872
  showDividerAboveDateSelector: !1,
13872
- sx: { p: P ? 0 : 48 },
13873
+ sx: { p: b ? 0 : 48 },
13873
13874
  title: o.net_worth,
13874
13875
  children: y && /* @__PURE__ */ s(Z, { children: [
13875
13876
  l.length ? /* @__PURE__ */ s(Z, { children: [
13876
13877
  v && /* @__PURE__ */ e(_l, { hoveredData: d, selectedData: v }),
13877
13878
  /* @__PURE__ */ s(
13878
- b,
13879
+ P,
13879
13880
  {
13880
- alignItems: P ? "center" : "flex-start",
13881
- direction: P ? "column" : "row",
13882
- spacing: P ? 0 : 48,
13881
+ alignItems: b ? "center" : "flex-start",
13882
+ direction: b ? "column" : "row",
13883
+ spacing: b ? 0 : 48,
13883
13884
  children: [
13884
13885
  /* @__PURE__ */ e(Ul, { ...WA }),
13885
13886
  /* @__PURE__ */ e(Kl, { ...WA })
@@ -13908,8 +13909,8 @@ const Sl = ({
13908
13909
  IA,
13909
13910
  {
13910
13911
  ariaLabelClose: "Close",
13911
- isOpen: m,
13912
- onClose: () => j(!1),
13912
+ isOpen: j,
13913
+ onClose: () => m(!1),
13913
13914
  shouldShowHeaderBorders: !1,
13914
13915
  shouldShowHeaderShadow: !0,
13915
13916
  title: o.gains_and_losses,
@@ -14112,13 +14113,13 @@ const so = "PARENT-ENTITY", E9 = (A, t) => {
14112
14113
  } = r;
14113
14114
  for (const l of n.filter((v) => v.entity_guid === so)) {
14114
14115
  const v = E9(l.notification_type, i), u = n.filter(
14115
- (P) => P.entity_guid !== so && P.notification_type === l.notification_type
14116
+ (b) => b.entity_guid !== so && b.notification_type === l.notification_type
14116
14117
  ), H = [];
14117
14118
  I && !d && l.email_channel && H.push(i.delivery_method_email_label), a && !f && l.sms_channel && H.push(i.delivery_method_sms_label), c && !E && l.push_channel && H.push(i.delivery_method_push_label), o.push({
14118
14119
  ...l,
14119
- children: u.map((P) => ({
14120
- ...P,
14121
- account: A.find((p) => p.guid === P.entity_guid),
14120
+ children: u.map((b) => ({
14121
+ ...b,
14122
+ account: A.find((p) => p.guid === b.entity_guid),
14122
14123
  label: v
14123
14124
  })),
14124
14125
  deliveryMethodsLabel: H.join(", "),
@@ -16715,9 +16716,9 @@ const u9 = ({
16715
16716
  }
16716
16717
  )
16717
16718
  ] }),
16718
- /* @__PURE__ */ e(b, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((f) => {
16719
+ /* @__PURE__ */ e(P, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((f) => {
16719
16720
  const E = f === 0 ? 0 : d, l = f === 0 ? d : i.length, v = i.slice(E, l);
16720
- return /* @__PURE__ */ e(b, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: v.map(({ guid: u, icon: H, topics: P, title: p }, y) => {
16721
+ return /* @__PURE__ */ e(P, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: v.map(({ guid: u, icon: H, topics: b, title: p }, y) => {
16721
16722
  const x = y + E;
16722
16723
  return /* @__PURE__ */ s(
16723
16724
  yn,
@@ -16743,7 +16744,7 @@ const u9 = ({
16743
16744
  {
16744
16745
  expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
16745
16746
  sx: { height: 64, p: "14px 24px" },
16746
- children: /* @__PURE__ */ s(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
16747
+ children: /* @__PURE__ */ s(P, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
16747
16748
  /* @__PURE__ */ e(q, { name: H, size: 24 }),
16748
16749
  /* @__PURE__ */ e(R, { variant: "Body", children: p })
16749
16750
  ] })
@@ -16757,7 +16758,7 @@ const u9 = ({
16757
16758
  ml: 56,
16758
16759
  p: 0
16759
16760
  },
16760
- children: /* @__PURE__ */ e(rA, { disablePadding: !0, children: P.map(({ label: w, topicKey: D }) => /* @__PURE__ */ e(
16761
+ children: /* @__PURE__ */ e(rA, { disablePadding: !0, children: b.map(({ label: w, topicKey: D }) => /* @__PURE__ */ e(
16761
16762
  aA,
16762
16763
  {
16763
16764
  "aria-label": w,
@@ -16882,7 +16883,7 @@ const u9 = ({
16882
16883
  title: o
16883
16884
  }) => /* @__PURE__ */ s(h.Fragment, { children: [
16884
16885
  /* @__PURE__ */ s(
16885
- b,
16886
+ P,
16886
16887
  {
16887
16888
  sx: {
16888
16889
  gap: 8,
@@ -16892,7 +16893,7 @@ const u9 = ({
16892
16893
  },
16893
16894
  children: [
16894
16895
  /* @__PURE__ */ s(L, { children: [
16895
- /* @__PURE__ */ s(b, { gap: 4, sx: { alignItems: "center", flexDirection: "row" }, children: [
16896
+ /* @__PURE__ */ s(P, { gap: 4, sx: { alignItems: "center", flexDirection: "row" }, children: [
16896
16897
  t && /* @__PURE__ */ e(q, { name: "help", size: 20, sx: { color: "text.primary" } }),
16897
16898
  /* @__PURE__ */ e(R, { color: "text.primary", variant: "H3", children: o })
16898
16899
  ] }),
@@ -16993,7 +16994,7 @@ const u9 = ({
16993
16994
  onClick: t
16994
16995
  }) => {
16995
16996
  const [i, n] = h.useState(null);
16996
- return /* @__PURE__ */ e(b, { sx: { flex: 1, gap: 12, p: 12 }, children: A.map(({ icon: r, topics: o, title: I }, a) => /* @__PURE__ */ s(
16997
+ return /* @__PURE__ */ e(P, { sx: { flex: 1, gap: 12, p: 12 }, children: A.map(({ icon: r, topics: o, title: I }, a) => /* @__PURE__ */ s(
16997
16998
  yn,
16998
16999
  {
16999
17000
  disableGutters: !0,
@@ -17008,7 +17009,7 @@ const u9 = ({
17008
17009
  {
17009
17010
  expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
17010
17011
  sx: { p: "14px 24px", height: 64 },
17011
- children: /* @__PURE__ */ s(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
17012
+ children: /* @__PURE__ */ s(P, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
17012
17013
  /* @__PURE__ */ e(q, { name: r, size: 24 }),
17013
17014
  /* @__PURE__ */ e(R, { variant: "Body", children: I })
17014
17015
  ] })
@@ -17068,18 +17069,18 @@ const u9 = ({
17068
17069
  { name: "institutionName", required: !0 },
17069
17070
  { name: "institutionWebsite", required: !0 },
17070
17071
  { name: "institutionLoginPage", required: !1 }
17071
- ].map((H, P) => ({
17072
+ ].map((H, b) => ({
17072
17073
  ...H,
17073
- label: A.popular_topics_missing_institution_fields[P.toString()]
17074
+ label: A.popular_topics_missing_institution_fields[b.toString()]
17074
17075
  })), l = () => {
17075
17076
  c(co), f(rn), i();
17076
17077
  }, v = (H) => {
17077
17078
  const {
17078
- target: { name: P, value: p }
17079
+ target: { name: b, value: p }
17079
17080
  } = H;
17080
17081
  f((y) => ({
17081
17082
  ...y,
17082
- [P]: p
17083
+ [b]: p
17083
17084
  }));
17084
17085
  };
17085
17086
  return /* @__PURE__ */ s(
@@ -17089,11 +17090,11 @@ const u9 = ({
17089
17090
  onClose: l,
17090
17091
  onPrimaryAction: () => {
17091
17092
  const H = {};
17092
- let P = !0;
17093
+ let b = !0;
17093
17094
  E.forEach(({ label: p, name: y, required: x }) => {
17094
17095
  const w = d[y];
17095
- x && !w && (H[y] = `${p} ${A.request_support_required_message}`, P = !1), (y === "institutionWebsite" || y === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (H[y] = A.request_support_valid_url_message, P = !1);
17096
- }), c(H), P && (n(d), f(rn));
17096
+ x && !w && (H[y] = `${p} ${A.request_support_required_message}`, b = !1), (y === "institutionWebsite" || y === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (H[y] = A.request_support_valid_url_message, b = !1);
17097
+ }), c(H), b && (n(d), f(rn));
17097
17098
  },
17098
17099
  secondaryColor: "primary",
17099
17100
  title: A.request_support,
@@ -17108,19 +17109,19 @@ const u9 = ({
17108
17109
  title: A.popular_topics_missing_institution
17109
17110
  }
17110
17111
  ),
17111
- /* @__PURE__ */ e(b, { sx: { gap: 24, p: 24 }, children: E.map(({ label: H, name: P }) => /* @__PURE__ */ e(
17112
+ /* @__PURE__ */ e(P, { sx: { gap: 24, p: 24 }, children: E.map(({ label: H, name: b }) => /* @__PURE__ */ e(
17112
17113
  $A,
17113
17114
  {
17114
17115
  InputLabelProps: { shrink: !0 },
17115
- error: !!a[P],
17116
+ error: !!a[b],
17116
17117
  fullWidth: !0,
17117
- helperText: a[P] || "",
17118
+ helperText: a[b] || "",
17118
17119
  label: H,
17119
- name: P,
17120
+ name: b,
17120
17121
  onChange: v,
17121
- value: d[P]
17122
+ value: d[b]
17122
17123
  },
17123
- P
17124
+ b
17124
17125
  )) }),
17125
17126
  r.message && /* @__PURE__ */ e(
17126
17127
  ri,
@@ -17190,7 +17191,7 @@ const u9 = ({
17190
17191
  }),
17191
17192
  [o, I]
17192
17193
  );
17193
- return /* @__PURE__ */ e(IA, { isOpen: t, onClose: n, title: A.request_support, children: /* @__PURE__ */ s(b, { children: [
17194
+ return /* @__PURE__ */ e(IA, { isOpen: t, onClose: n, title: A.request_support, children: /* @__PURE__ */ s(P, { children: [
17194
17195
  /* @__PURE__ */ e(
17195
17196
  ai,
17196
17197
  {
@@ -17215,7 +17216,7 @@ const u9 = ({
17215
17216
  ] }) });
17216
17217
  }, jv = ({ copy: A, onButtonClick: t }) => {
17217
17218
  const i = mv();
17218
- return /* @__PURE__ */ s(b, { sx: { alignItems: "center", gap: 5 }, children: [
17219
+ return /* @__PURE__ */ s(P, { sx: { alignItems: "center", gap: 5 }, children: [
17219
17220
  /* @__PURE__ */ e(HA, { color: "text.secondary", sx: i, children: A.contact_support }),
17220
17221
  /* @__PURE__ */ e(
17221
17222
  R,
@@ -17288,7 +17289,7 @@ const u9 = ({
17288
17289
  ]
17289
17290
  }
17290
17291
  ),
17291
- /* @__PURE__ */ s(b, { direction: "column", spacing: 8, sx: { mx: 24 }, children: [
17292
+ /* @__PURE__ */ s(P, { direction: "column", spacing: 8, sx: { mx: 24 }, children: [
17292
17293
  /* @__PURE__ */ e($, { onClick: r, variant: "contained", children: I.done_button }),
17293
17294
  /* @__PURE__ */ e($, { onClick: n, variant: "text", children: A.request_support_institution_back })
17294
17295
  ] })
@@ -17302,8 +17303,8 @@ const u9 = ({
17302
17303
  }) => {
17303
17304
  const { common: o } = X();
17304
17305
  return /* @__PURE__ */ e(IA, { isOpen: i, onClose: r, title: A.request_support, children: /* @__PURE__ */ s(L, { sx: { px: 24 }, children: [
17305
- /* @__PURE__ */ e(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
17306
- /* @__PURE__ */ s(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
17306
+ /* @__PURE__ */ e(P, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
17307
+ /* @__PURE__ */ s(P, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
17307
17308
  /* @__PURE__ */ e(lt, { children: A.request_support_success }),
17308
17309
  /* @__PURE__ */ e(HA, { align: "center", variant: "Body", children: A.request_support_submit_success_message }),
17309
17310
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: t })
@@ -17317,41 +17318,41 @@ const u9 = ({
17317
17318
  isOpen: !1,
17318
17319
  topic: "",
17319
17320
  type: void 0
17320
- }), P = zv.map((j) => ({
17321
- ...j,
17322
- title: A.help_by_category_list[j.guid].label,
17323
- topics: j.topics.map(({ type: O }, T) => ({
17321
+ }), b = zv.map((m) => ({
17322
+ ...m,
17323
+ title: A.help_by_category_list[m.guid].label,
17324
+ topics: m.topics.map(({ type: O }, T) => ({
17324
17325
  type: O,
17325
- label: A.help_by_category_list[j.guid].topics[T]
17326
+ label: A.help_by_category_list[m.guid].topics[T]
17326
17327
  }))
17327
- })), p = Object.keys(A.popular_topics_list).map((j, O) => ({
17328
- name: A.popular_topics_list[j],
17328
+ })), p = Object.keys(A.popular_topics_list).map((m, O) => ({
17329
+ name: A.popular_topics_list[m],
17329
17330
  type: Cv[O].type
17330
17331
  })), y = () => {
17331
17332
  d(""), H({ isOpen: !1, topic: "", type: void 0 });
17332
- }, x = (j) => {
17333
+ }, x = (m) => {
17333
17334
  a.email && r({
17334
17335
  email: a.email,
17335
- message: c ? `Institution: ${c}, ${j}` : j,
17336
+ message: c ? `Institution: ${c}, ${m}` : m,
17336
17337
  title: u.topic || "Contact Support"
17337
17338
  });
17338
- }, w = (j, O) => {
17339
- O === "other" ? v(!0) : H({ isOpen: !0, topic: j, type: O });
17339
+ }, w = (m, O) => {
17340
+ O === "other" ? v(!0) : H({ isOpen: !0, topic: m, type: O });
17340
17341
  }, D = () => {
17341
17342
  I(""), E(!1), v(!1), y();
17342
- }, m = (j) => {
17343
+ }, j = (m) => {
17343
17344
  if (!a.email) {
17344
17345
  I(A.request_support_email_not_exists_message, "error");
17345
17346
  return;
17346
17347
  }
17347
17348
  r({
17348
17349
  email: a.email,
17349
- message: `Institution Website: ${j.institutionWebsite}${j.institutionLoginPage ? ` Institution Login Page: ${j.institutionLoginPage}` : ""} `,
17350
- title: `Institution Request: ${j.institutionName}`
17350
+ message: `Institution Website: ${m.institutionWebsite}${m.institutionLoginPage ? ` Institution Login Page: ${m.institutionLoginPage}` : ""} `,
17351
+ title: `Institution Request: ${m.institutionName}`
17351
17352
  });
17352
17353
  };
17353
17354
  return /* @__PURE__ */ e(IA, { isOpen: t, onClose: i, title: A.request_support, children: o ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(h.Fragment, { children: [
17354
- /* @__PURE__ */ s(b, { children: [
17355
+ /* @__PURE__ */ s(P, { children: [
17355
17356
  /* @__PURE__ */ e(
17356
17357
  ai,
17357
17358
  {
@@ -17392,7 +17393,7 @@ const u9 = ({
17392
17393
  /* @__PURE__ */ e(
17393
17394
  Xv,
17394
17395
  {
17395
- helpByCategory: P,
17396
+ helpByCategory: b,
17396
17397
  onClick: w
17397
17398
  }
17398
17399
  ),
@@ -17427,7 +17428,7 @@ const u9 = ({
17427
17428
  copy: A,
17428
17429
  isOpen: l,
17429
17430
  onClose: () => v(!1),
17430
- onSave: m
17431
+ onSave: j
17431
17432
  }
17432
17433
  ),
17433
17434
  /* @__PURE__ */ e(
@@ -17435,8 +17436,8 @@ const u9 = ({
17435
17436
  {
17436
17437
  copy: A,
17437
17438
  isOpen: u.isOpen,
17438
- onClick: (j) => {
17439
- d(j), u.type === "internal" && E(!0);
17439
+ onClick: (m) => {
17440
+ d(m), u.type === "internal" && E(!0);
17440
17441
  },
17441
17442
  onClose: y,
17442
17443
  topic: u.topic
@@ -17533,7 +17534,7 @@ const u9 = ({
17533
17534
  justifyContent: "center"
17534
17535
  }
17535
17536
  },
17536
- children: /* @__PURE__ */ s(b, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
17537
+ children: /* @__PURE__ */ s(P, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
17537
17538
  /* @__PURE__ */ e(R, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
17538
17539
  /* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: t.confirm_email }),
17539
17540
  /* @__PURE__ */ e(
@@ -17574,7 +17575,7 @@ const u9 = ({
17574
17575
  justifyContent: "flex-end"
17575
17576
  }
17576
17577
  },
17577
- children: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e($A, { onChange: (a) => I(a.target.value), sx: { width: 352 }, value: o }) })
17578
+ children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e($A, { onChange: (a) => I(a.target.value), sx: { width: 352 }, value: o }) })
17578
17579
  }
17579
17580
  );
17580
17581
  }
@@ -17615,7 +17616,7 @@ const u9 = ({
17615
17616
  justifyContent: "center"
17616
17617
  }
17617
17618
  },
17618
- children: /* @__PURE__ */ s(b, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
17619
+ children: /* @__PURE__ */ s(P, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
17619
17620
  /* @__PURE__ */ e(R, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
17620
17621
  /* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: t.confirm_phone }),
17621
17622
  /* @__PURE__ */ e(
@@ -17644,7 +17645,7 @@ const u9 = ({
17644
17645
  )
17645
17646
  ] });
17646
17647
  }), Yv = () => {
17647
- const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [P, p] = h.useState(a.postal_code), [y, x] = h.useState(a.credit_score), [w, D] = h.useState(yA(a.birthday ?? 0)), m = l && !a.email_is_verified, j = u && !a.phone_is_verified, O = async () => {
17648
+ const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [b, p] = h.useState(a.postal_code), [y, x] = h.useState(a.credit_score), [w, D] = h.useState(yA(a.birthday ?? 0)), j = l && !a.email_is_verified, m = u && !a.phone_is_verified, O = async () => {
17648
17649
  const T = {
17649
17650
  ...a,
17650
17651
  first_name: c,
@@ -17652,7 +17653,7 @@ const u9 = ({
17652
17653
  email: l,
17653
17654
  phone: u,
17654
17655
  birthday: w ? gA(w) : null,
17655
- postal_code: P,
17656
+ postal_code: b,
17656
17657
  credit_score: y
17657
17658
  };
17658
17659
  await I(T);
@@ -17673,7 +17674,7 @@ const u9 = ({
17673
17674
  /* @__PURE__ */ e(ne, { children: t.personal_details }),
17674
17675
  /* @__PURE__ */ e(HA, { variant: "Body", children: t.update_information }),
17675
17676
  /* @__PURE__ */ s(
17676
- b,
17677
+ P,
17677
17678
  {
17678
17679
  direction: n ? "column" : "row",
17679
17680
  spacing: n ? 44 : 24,
@@ -17698,8 +17699,8 @@ const u9 = ({
17698
17699
  ]
17699
17700
  }
17700
17701
  ),
17701
- /* @__PURE__ */ s(b, { direction: n ? "column" : "row", children: [
17702
- /* @__PURE__ */ s(b, { sx: { mb: m ? 20 : 44, mr: n ? 0 : 24 }, children: [
17702
+ /* @__PURE__ */ s(P, { direction: n ? "column" : "row", children: [
17703
+ /* @__PURE__ */ s(P, { sx: { mb: j ? 20 : 44, mr: n ? 0 : 24 }, children: [
17703
17704
  /* @__PURE__ */ e(
17704
17705
  $A,
17705
17706
  {
@@ -17708,9 +17709,9 @@ const u9 = ({
17708
17709
  onChange: (T) => v(T.target.value)
17709
17710
  }
17710
17711
  ),
17711
- m && /* @__PURE__ */ e(Mv, {})
17712
+ j && /* @__PURE__ */ e(Mv, {})
17712
17713
  ] }),
17713
- /* @__PURE__ */ s(b, { sx: { mb: j ? 20 : 44 }, children: [
17714
+ /* @__PURE__ */ s(P, { sx: { mb: m ? 20 : 44 }, children: [
17714
17715
  /* @__PURE__ */ e(
17715
17716
  $A,
17716
17717
  {
@@ -17720,10 +17721,10 @@ const u9 = ({
17720
17721
  type: "tel"
17721
17722
  }
17722
17723
  ),
17723
- j && /* @__PURE__ */ e(Tv, {})
17724
+ m && /* @__PURE__ */ e(Tv, {})
17724
17725
  ] })
17725
17726
  ] }),
17726
- /* @__PURE__ */ s(b, { direction: n ? "column" : "row", spacing: n ? 44 : 24, sx: { mb: 44 }, children: [
17727
+ /* @__PURE__ */ s(P, { direction: n ? "column" : "row", spacing: n ? 44 : 24, sx: { mb: 44 }, children: [
17727
17728
  /* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
17728
17729
  wn,
17729
17730
  {
@@ -17736,13 +17737,13 @@ const u9 = ({
17736
17737
  /* @__PURE__ */ e(
17737
17738
  $A,
17738
17739
  {
17739
- defaultValue: P,
17740
+ defaultValue: b,
17740
17741
  label: t.zip_code,
17741
17742
  onChange: (T) => p(T.target.value)
17742
17743
  }
17743
17744
  )
17744
17745
  ] }),
17745
- /* @__PURE__ */ s(b, { children: [
17746
+ /* @__PURE__ */ s(P, { children: [
17746
17747
  /* @__PURE__ */ e(
17747
17748
  $A,
17748
17749
  {
@@ -17769,7 +17770,7 @@ const Bv = ({
17769
17770
  field: "name",
17770
17771
  headerName: r.mobile_devices_column_name,
17771
17772
  renderHeader: we,
17772
- renderCell: (a) => /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 4, children: [
17773
+ renderCell: (a) => /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, children: [
17773
17774
  /* @__PURE__ */ e(R, { variant: "Small", children: a.value }),
17774
17775
  /* @__PURE__ */ e(
17775
17776
  NA,
@@ -17808,7 +17809,7 @@ const Bv = ({
17808
17809
  field: "delete",
17809
17810
  headerName: "",
17810
17811
  renderHeader: we,
17811
- renderCell: (a) => /* @__PURE__ */ e(b, { mr: 4, children: /* @__PURE__ */ e(
17812
+ renderCell: (a) => /* @__PURE__ */ e(P, { mr: 4, children: /* @__PURE__ */ e(
17812
17813
  NA,
17813
17814
  {
17814
17815
  "aria-label": r.mobile_devices_delete_label,
@@ -17873,7 +17874,7 @@ const Bv = ({
17873
17874
  const n = RA(), { settings: r } = X(), [o, I] = h.useState(!1), a = (c) => (d, f) => {
17874
17875
  I(f ? c : !1);
17875
17876
  };
17876
- return /* @__PURE__ */ s(b, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
17877
+ return /* @__PURE__ */ s(P, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
17877
17878
  A.map((c) => /* @__PURE__ */ s(
17878
17879
  yn,
17879
17880
  {
@@ -17890,7 +17891,7 @@ const Bv = ({
17890
17891
  borderBottom: "1px solid",
17891
17892
  borderColor: n.palette.border.light
17892
17893
  },
17893
- children: /* @__PURE__ */ s(b, { gap: 4, children: [
17894
+ children: /* @__PURE__ */ s(P, { gap: 4, children: [
17894
17895
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: c.name }),
17895
17896
  /* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: `${c.make} ${c.model}` }),
17896
17897
  /* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: Lo(yA(c.created_at), { addSuffix: !0 }) })
@@ -17903,7 +17904,7 @@ const Bv = ({
17903
17904
  sx: { backgroundColor: n.palette.background.default, p: "0 0 0 24px" },
17904
17905
  children: [
17905
17906
  /* @__PURE__ */ s(
17906
- b,
17907
+ P,
17907
17908
  {
17908
17909
  onClick: () => t(c),
17909
17910
  sx: {
@@ -17923,7 +17924,7 @@ const Bv = ({
17923
17924
  }
17924
17925
  ),
17925
17926
  /* @__PURE__ */ s(
17926
- b,
17927
+ P,
17927
17928
  {
17928
17929
  onClick: () => i(c),
17929
17930
  sx: {
@@ -17995,7 +17996,7 @@ const Bv = ({
17995
17996
  default:
17996
17997
  return "";
17997
17998
  }
17998
- }, P = () => {
17999
+ }, b = () => {
17999
18000
  const y = {
18000
18001
  "& .MuiDialogContent-root": {
18001
18002
  width: 400,
@@ -18054,9 +18055,9 @@ const Bv = ({
18054
18055
  primaryColor: A === _A.Delete ? "error" : void 0,
18055
18056
  primaryText: H(),
18056
18057
  secondaryText: A === _A.Token ? I.back : I.cancel_button,
18057
- sx: P(),
18058
+ sx: b(),
18058
18059
  children: [
18059
- A === _A.Token && /* @__PURE__ */ s(b, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
18060
+ A === _A.Token && /* @__PURE__ */ s(P, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
18060
18061
  /* @__PURE__ */ e(R, { bold: !0, truncate: !1, variant: "Body", children: a.mobile_devices_access_label }),
18061
18062
  /* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: a.mobile_devices_access_info_1 }),
18062
18063
  /* @__PURE__ */ e(
@@ -18073,7 +18074,7 @@ const Bv = ({
18073
18074
  ),
18074
18075
  /* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: a.mobile_devices_access_info_2 })
18075
18076
  ] }),
18076
- A === _A.Edit && /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e($A, { onChange: (y) => v(y.target.value), value: l }) }),
18077
+ A === _A.Edit && /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e($A, { onChange: (y) => v(y.target.value), value: l }) }),
18077
18078
  A === _A.Delete && /* @__PURE__ */ e(HA, { children: a.mobile_devices_delete_info })
18078
18079
  ]
18079
18080
  }
@@ -18084,17 +18085,17 @@ const Bv = ({
18084
18085
  r();
18085
18086
  }, []);
18086
18087
  const l = async () => {
18087
- const P = await o();
18088
- P ? (E(P), a({ open: !0, type: _A.Token })) : i(t.mobile_devices_access_error, "error");
18089
- }, v = (P) => {
18090
- d(P), a({ open: !0, type: _A.Edit });
18091
- }, u = (P) => {
18092
- d(P), a({ open: !0, type: _A.Delete });
18088
+ const b = await o();
18089
+ b ? (E(b), a({ open: !0, type: _A.Token })) : i(t.mobile_devices_access_error, "error");
18090
+ }, v = (b) => {
18091
+ d(b), a({ open: !0, type: _A.Edit });
18092
+ }, u = (b) => {
18093
+ d(b), a({ open: !0, type: _A.Delete });
18093
18094
  }, H = () => {
18094
18095
  a({ open: !1, type: "" }), d(void 0);
18095
18096
  };
18096
18097
  return /* @__PURE__ */ s(
18097
- b,
18098
+ P,
18098
18099
  {
18099
18100
  sx: {
18100
18101
  backgroundColor: "background.paper",
@@ -18102,7 +18103,7 @@ const Bv = ({
18102
18103
  gap: 24
18103
18104
  },
18104
18105
  children: [
18105
- /* @__PURE__ */ s(b, { gap: 4, children: [
18106
+ /* @__PURE__ */ s(P, { gap: 4, children: [
18106
18107
  /* @__PURE__ */ e(ne, { children: t.mobile_devices_title }),
18107
18108
  /* @__PURE__ */ e(HA, { variant: "Body", children: t.mobile_devices_info })
18108
18109
  ] }),
@@ -18121,7 +18122,7 @@ const Bv = ({
18121
18122
  onClickDeviceEdit: v
18122
18123
  }
18123
18124
  ),
18124
- /* @__PURE__ */ s(b, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
18125
+ /* @__PURE__ */ s(P, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
18125
18126
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: t.mobile_devices_access_title }),
18126
18127
  /* @__PURE__ */ e(HA, { align: "center", variant: "Small", children: t.mobile_devices_access_description }),
18127
18128
  /* @__PURE__ */ e($, { onClick: l, variant: "text", children: t.mobile_devices_access_cta })
@@ -18300,8 +18301,8 @@ const Bv = ({
18300
18301
  const { settings: A } = X(), { loadTransactionRules: t, transactionRules: i } = ge(), { isDesktop: n, isTablet: r } = zA();
18301
18302
  return h.useEffect(() => {
18302
18303
  t();
18303
- }, []), /* @__PURE__ */ s(b, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
18304
- /* @__PURE__ */ s(b, { sx: { px: r || n ? 0 : 24 }, children: [
18304
+ }, []), /* @__PURE__ */ s(P, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
18305
+ /* @__PURE__ */ s(P, { sx: { px: r || n ? 0 : 24 }, children: [
18305
18306
  /* @__PURE__ */ e(ne, { children: A.transaction_rules_label }),
18306
18307
  /* @__PURE__ */ e(HA, { variant: "Body", children: A.transaction_rules_description })
18307
18308
  ] }),
@@ -18311,7 +18312,7 @@ const Bv = ({
18311
18312
  const { settings: A } = X(), { clientCommunicationProfile: t, updateUserCommunicationsProfile: i, userCommunicationsProfile: n } = ge(), r = async (o) => {
18312
18313
  await i(o);
18313
18314
  };
18314
- return /* @__PURE__ */ s(b, { children: [
18315
+ return /* @__PURE__ */ s(P, { children: [
18315
18316
  /* @__PURE__ */ e(ne, { sx: { mt: 24 }, children: A.delivery_method_title }),
18316
18317
  t.email_notifications_enabled && /* @__PURE__ */ s(Z, { children: [
18317
18318
  /* @__PURE__ */ e(
@@ -18353,7 +18354,7 @@ const Bv = ({
18353
18354
  secondaryText: A.delivery_method_push_subtitle
18354
18355
  }
18355
18356
  ),
18356
- t.sms_notifications_enabled && /* @__PURE__ */ e(ze, { sx: { backgroundColor: "background.default", mt: 12 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(b, { alignItems: "flex-start", direction: "row", gap: 6, children: [
18357
+ t.sms_notifications_enabled && /* @__PURE__ */ e(ze, { sx: { backgroundColor: "background.default", mt: 12 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(P, { alignItems: "flex-start", direction: "row", gap: 6, children: [
18357
18358
  /* @__PURE__ */ e(es, { color: "primary", filled: !0 }),
18358
18359
  /* @__PURE__ */ e(R, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: A.delivery_method_sms_note_1 })
18359
18360
  ] }) }) })
@@ -18368,7 +18369,7 @@ const Bv = ({
18368
18369
  ) : n.notification_debt_payment_zero_state, u = o ? v : M(t.threshold ?? 0, "0,0"), H = async () => {
18369
18370
  o && t.account ? await r({ ...t.account, day_payment_is_due: f }) : A({ ...t, threshold: c });
18370
18371
  };
18371
- return /* @__PURE__ */ s(b, { children: [
18372
+ return /* @__PURE__ */ s(P, { children: [
18372
18373
  /* @__PURE__ */ e(
18373
18374
  ln,
18374
18375
  {
@@ -18396,8 +18397,8 @@ const Bv = ({
18396
18397
  {
18397
18398
  maxDate: Re(/* @__PURE__ */ new Date(), 1),
18398
18399
  minDate: /* @__PURE__ */ new Date(),
18399
- onChange: (P) => {
18400
- E(P.getDate());
18400
+ onChange: (b) => {
18401
+ E(b.getDate());
18401
18402
  },
18402
18403
  views: ["day"]
18403
18404
  }
@@ -18408,7 +18409,7 @@ const Bv = ({
18408
18409
  autoFocus: !0,
18409
18410
  fullWidth: !0,
18410
18411
  minAmount: 0,
18411
- setAmount: (P) => d(Number(P) || 0),
18412
+ setAmount: (b) => d(Number(b) || 0),
18412
18413
  sx: { ".MuiTypography-Body": { p: 0 } }
18413
18414
  }
18414
18415
  )
@@ -18423,7 +18424,7 @@ const Bv = ({
18423
18424
  opted_out_of_push_notifications: a,
18424
18425
  opted_out_of_sms_notifications: c
18425
18426
  } = r;
18426
- return /* @__PURE__ */ s(b, { children: [
18427
+ return /* @__PURE__ */ s(P, { children: [
18427
18428
  /* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: i.delivery_method_title }),
18428
18429
  /* @__PURE__ */ s(rA, { sx: { px: 24, bgcolor: "background.paper" }, children: [
18429
18430
  /* @__PURE__ */ e(
@@ -18459,7 +18460,7 @@ const Bv = ({
18459
18460
  )
18460
18461
  ] }),
18461
18462
  /* @__PURE__ */ e(HA, { sx: { color: "text.secondary", mb: 32, mx: 24, mt: 12 }, variant: "ParagraphSmall", children: `* ${i.delivery_method_sms_note_2}` }),
18462
- o && t.children?.length && t.children.length > 0 && /* @__PURE__ */ s(b, { children: [
18463
+ o && t.children?.length && t.children.length > 0 && /* @__PURE__ */ s(P, { children: [
18463
18464
  /* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: "Accounts" }),
18464
18465
  /* @__PURE__ */ e(rA, { sx: { px: 24, bgcolor: "background.paper" }, children: t.children?.map((d) => /* @__PURE__ */ e(
18465
18466
  eR,
@@ -18488,7 +18489,7 @@ const Bv = ({
18488
18489
  const f = async (E) => {
18489
18490
  await a(E);
18490
18491
  };
18491
- return /* @__PURE__ */ s(b, { sx: { px: i ? 24 : 0 }, children: [
18492
+ return /* @__PURE__ */ s(P, { sx: { px: i ? 24 : 0 }, children: [
18492
18493
  /* @__PURE__ */ e(AR, {}),
18493
18494
  /* @__PURE__ */ e(G, { sx: { my: 24 } }),
18494
18495
  /* @__PURE__ */ e(ne, { mb: 24, children: t.accounts_title }),
@@ -18543,7 +18544,7 @@ const Bv = ({
18543
18544
  onBackClick: A,
18544
18545
  sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...t },
18545
18546
  title: i.title,
18546
- children: /* @__PURE__ */ s(b, { mx: o ? 0 : 48, my: 24, children: [
18547
+ children: /* @__PURE__ */ s(P, { mx: o ? 0 : 48, my: 24, children: [
18547
18548
  /* @__PURE__ */ s(
18548
18549
  Se,
18549
18550
  {
@@ -18796,39 +18797,39 @@ const on = ({
18796
18797
  (n) => n.member_guid === i.guid && i.successfully_aggregated_at && n.guid !== t.guid
18797
18798
  );
18798
18799
  }, IR = () => {
18799
- const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), { mergeAccounts: c, updateAccount: d } = CA(), { selectedAccount: f } = Xe(), { onEvent: E } = K(), l = oR(), { accounts: v } = X(), { loadTransactions: u } = PA(), H = async (p) => {
18800
- await d({
18801
- ...f,
18800
+ const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), { selectedAccount: c } = Xe(), { mergeAccounts: d, updateAccount: f } = CA(), { accounts: E } = X(), l = oR(), { onEvent: v } = K(), { loadTransactions: u } = PA(), H = async (p) => {
18801
+ await f({
18802
+ ...c,
18802
18803
  ...p
18803
18804
  }), await u();
18804
- }, P = () => {
18805
- c([f.guid, I.guid]).finally(
18805
+ }, b = () => {
18806
+ d([c.guid, I.guid]).finally(
18806
18807
  () => n(!1)
18807
18808
  );
18808
18809
  };
18809
18810
  return /* @__PURE__ */ s(Z, { children: [
18810
- /* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children: v.actions }) }),
18811
+ /* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children: E.actions }) }),
18811
18812
  /* @__PURE__ */ e(
18812
18813
  on,
18813
18814
  {
18814
18815
  onClick: () => {
18815
- H({ is_hidden: !f.is_hidden }), E(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: f.guid });
18816
+ H({ is_hidden: !c.is_hidden }), v(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
18816
18817
  },
18817
- primaryText: f.is_hidden ? v.unhide_account : v.hide_Account,
18818
- secondaryText: f.is_hidden ? v.include_this_account : v.exclude_this_account,
18819
- children: /* @__PURE__ */ e(xi, { checked: f.is_hidden })
18818
+ primaryText: c.is_hidden ? E.unhide_account : E.hide_Account,
18819
+ secondaryText: c.is_hidden ? E.include_this_account : E.exclude_this_account,
18820
+ children: /* @__PURE__ */ e(xi, { checked: c.is_hidden })
18820
18821
  }
18821
18822
  ),
18822
18823
  /* @__PURE__ */ e(
18823
18824
  on,
18824
18825
  {
18825
18826
  onClick: () => {
18826
- t(!0), E(V.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
18827
- account_guid: f.guid
18827
+ t(!0), v(V.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
18828
+ account_guid: c.guid
18828
18829
  });
18829
18830
  },
18830
- primaryText: f.is_closed ? v.mark_as_open : v.mark_as_closed,
18831
- secondaryText: v.this_will_set_the_account_balance_to_0,
18831
+ primaryText: c.is_closed ? E.mark_as_open : E.mark_as_closed,
18832
+ secondaryText: E.this_will_set_the_account_balance_to_0,
18832
18833
  children: /* @__PURE__ */ e(q, { name: "chevron_right" })
18833
18834
  }
18834
18835
  ),
@@ -18837,12 +18838,12 @@ const on = ({
18837
18838
  {
18838
18839
  isLast: !0,
18839
18840
  onClick: () => {
18840
- n(!0), E(V.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
18841
- account_guid: f.guid
18841
+ n(!0), v(V.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
18842
+ account_guid: c.guid
18842
18843
  });
18843
18844
  },
18844
- primaryText: v.mark_as_duplicate,
18845
- secondaryText: v.if_a_connected_account_is_showing_up_twice,
18845
+ primaryText: E.mark_as_duplicate,
18846
+ secondaryText: E.if_a_connected_account_is_showing_up_twice,
18846
18847
  children: /* @__PURE__ */ e(q, { name: "chevron_right" })
18847
18848
  }
18848
18849
  ),
@@ -18850,27 +18851,27 @@ const on = ({
18850
18851
  XA,
18851
18852
  {
18852
18853
  copy: {
18853
- close_aria: v.close_modal,
18854
- title: f.is_closed ? v.confirm_mark_as_open : v.confirm_mark_closed
18854
+ close_aria: E.close_modal,
18855
+ title: c.is_closed ? E.confirm_mark_as_open : E.confirm_mark_closed
18855
18856
  },
18856
18857
  isOpen: A,
18857
18858
  onClose: () => {
18858
18859
  t(!1);
18859
18860
  },
18860
- onPrimaryAction: () => H({ is_closed: !f.is_closed }),
18861
+ onPrimaryAction: () => H({ is_closed: !c.is_closed }),
18861
18862
  children: z(
18862
- f.is_closed ? v.this_will_resume_updating_the_balance : v.this_will_set_the_balance_of_your_account,
18863
- f.name
18863
+ c.is_closed ? E.this_will_resume_updating_the_balance : E.this_will_set_the_balance_of_your_account,
18864
+ c.name
18864
18865
  )
18865
18866
  }
18866
18867
  ),
18867
18868
  /* @__PURE__ */ e(
18868
18869
  IA,
18869
18870
  {
18870
- ariaLabelClose: v.close_drawer,
18871
+ ariaLabelClose: E.close_drawer,
18871
18872
  isOpen: i,
18872
18873
  onClose: () => n(!1),
18873
- title: v.mark_as_duplicate,
18874
+ title: E.mark_as_duplicate,
18874
18875
  children: /* @__PURE__ */ e(rA, { children: l.map((p) => {
18875
18876
  const y = l.indexOf(p) === l.length - 1;
18876
18877
  return /* @__PURE__ */ s(h.Fragment, { children: [
@@ -18892,19 +18893,19 @@ const on = ({
18892
18893
  XA,
18893
18894
  {
18894
18895
  copy: {
18895
- close_aria: v.close_modal,
18896
- title: v.confirm_merge
18896
+ close_aria: E.close_modal,
18897
+ title: E.confirm_merge
18897
18898
  },
18898
18899
  isOpen: r,
18899
18900
  onClose: () => o(!1),
18900
- onPrimaryAction: P,
18901
+ onPrimaryAction: b,
18901
18902
  children: [
18902
18903
  z(
18903
- v.this_means_accounts_will_be_merged,
18904
- f.name,
18904
+ E.this_means_accounts_will_be_merged,
18905
+ c.name,
18905
18906
  I.name
18906
18907
  ),
18907
- /* @__PURE__ */ e(R, { color: "error", sx: { mt: 24 }, children: v.this_action_cannot_be_undone })
18908
+ /* @__PURE__ */ e(R, { color: "error", sx: { mt: 24 }, children: E.this_action_cannot_be_undone })
18908
18909
  ]
18909
18910
  }
18910
18911
  )
@@ -19084,7 +19085,7 @@ const on = ({
19084
19085
  };
19085
19086
  return /* @__PURE__ */ s(Z, { children: [
19086
19087
  /* @__PURE__ */ e(me, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
19087
- /* @__PURE__ */ e(W, { sx: { backgroundColor: "background.paper" }, children: n.is_manual || !a.ctaCopy ? /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
19088
+ /* @__PURE__ */ e(W, { sx: { backgroundColor: "background.paper" }, children: n.is_manual || !a.ctaCopy ? /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
19088
19089
  /* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(ft, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
19089
19090
  /* @__PURE__ */ e(eA, { primary: a.mainMessage, secondary: a.secondaryMessage })
19090
19091
  ] }) : /* @__PURE__ */ s(aA, { onClick: () => t(!0), children: [
@@ -19158,10 +19159,10 @@ const on = ({
19158
19159
  },
19159
19160
  label: A.label,
19160
19161
  labelId: `${A.label}-select-label`,
19161
- onChange: (P) => a(P.target.value),
19162
+ onChange: (b) => a(b.target.value),
19162
19163
  placeholder: A.placeholder,
19163
19164
  value: I,
19164
- children: A.options?.map((P) => /* @__PURE__ */ e(jn, { value: P.value, children: P.label }, P.value))
19165
+ children: A.options?.map((b) => /* @__PURE__ */ e(jn, { value: b.value, children: b.label }, b.value))
19165
19166
  }
19166
19167
  )
19167
19168
  ] });
@@ -19183,8 +19184,8 @@ const on = ({
19183
19184
  {
19184
19185
  maxDate: Re(/* @__PURE__ */ new Date(), 1),
19185
19186
  minDate: /* @__PURE__ */ new Date(),
19186
- onChange: (P) => {
19187
- r[A.name] && Number(r[A.name]) <= 31 ? a(P.getDate()) : a(P);
19187
+ onChange: (b) => {
19188
+ r[A.name] && Number(r[A.name]) <= 31 ? a(b.getDate()) : a(b);
19188
19189
  },
19189
19190
  views: ["day"]
19190
19191
  }
@@ -19207,8 +19208,8 @@ const on = ({
19207
19208
  ...r,
19208
19209
  [A.name]: I
19209
19210
  }), l();
19210
- }, H = (P) => {
19211
- a(P.target.value), A.validation && d(A.validation(P.target.value));
19211
+ }, H = (b) => {
19212
+ a(b.target.value), A.validation && d(A.validation(b.target.value));
19212
19213
  };
19213
19214
  return /* @__PURE__ */ e(
19214
19215
  XA,
@@ -19338,7 +19339,7 @@ const on = ({
19338
19339
  accounts: [n.guid]
19339
19340
  });
19340
19341
  }, [n]), h.useEffect(() => i(V.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ s(Z, { children: [
19341
- /* @__PURE__ */ e(Rt, { onClick: t }),
19342
+ /* @__PURE__ */ e(Rt, { onClick: t, showClosedAccounts: !0 }),
19342
19343
  a && /* @__PURE__ */ e(
19343
19344
  IA,
19344
19345
  {
@@ -19421,7 +19422,7 @@ const on = ({
19421
19422
  }
19422
19423
  ) }),
19423
19424
  children: /* @__PURE__ */ e(rr, { children: E.map((u) => {
19424
- const H = n.indexOf(u) === n.length - 1, P = E.indexOf(u) === E.length - 1;
19425
+ const H = n.indexOf(u) === n.length - 1, b = E.indexOf(u) === E.length - 1;
19425
19426
  return /* @__PURE__ */ s(h.Fragment, { children: [
19426
19427
  /* @__PURE__ */ e(
19427
19428
  Ui,
@@ -19435,8 +19436,8 @@ const on = ({
19435
19436
  G,
19436
19437
  {
19437
19438
  sx: {
19438
- mb: P ? 24 : 4,
19439
- ml: P ? 24 : 68
19439
+ mb: b ? 24 : 4,
19440
+ ml: b ? 24 : 68
19440
19441
  }
19441
19442
  }
19442
19443
  )
@@ -19988,7 +19989,7 @@ const on = ({
19988
19989
  primaryCtaLabel: i.primary_cta,
19989
19990
  sx: t,
19990
19991
  title: i.mini_title,
19991
- children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "column", m: 24, children: [
19992
+ children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", m: 24, children: [
19992
19993
  /* @__PURE__ */ e(wR, {}),
19993
19994
  /* @__PURE__ */ e(
19994
19995
  R,
@@ -20285,7 +20286,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
20285
20286
  } = A;
20286
20287
  let u = 13;
20287
20288
  E > 75 ? u = -20 : E > 50 && (u = -6);
20288
- const H = `${A.category.name}: ${f}`, P = {
20289
+ const H = `${A.category.name}: ${f}`, b = {
20289
20290
  modifiers: [
20290
20291
  {
20291
20292
  name: "offset",
@@ -20311,7 +20312,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
20311
20312
  {
20312
20313
  followCursor: !0,
20313
20314
  open: n,
20314
- slotProps: { popper: P },
20315
+ slotProps: { popper: b },
20315
20316
  title: H,
20316
20317
  children: /* @__PURE__ */ e("circle", { fill: o, id: `circle-${d}`, r: E })
20317
20318
  }
@@ -20384,7 +20385,7 @@ const SR = ({
20384
20385
  }, [Ft, A, t]), /* @__PURE__ */ e("svg", { height: A, style: { overflow: "visible" }, width: Math.abs(t), children: Ft.nodes().map((o) => /* @__PURE__ */ e(BR, { bubble: o, isDraggable: i, onClick: n }, o.guid)) });
20385
20386
  }, UR = C(SR), FR = () => {
20386
20387
  const { budgets: A } = X();
20387
- return /* @__PURE__ */ s(b, { alignItems: "center", gap: 12, sx: { mx: 24, textAlign: "center" }, children: [
20388
+ return /* @__PURE__ */ s(P, { alignItems: "center", gap: 12, sx: { mx: 24, textAlign: "center" }, children: [
20388
20389
  /* @__PURE__ */ e(q, { name: "bubble_chart", size: 48 }),
20389
20390
  /* @__PURE__ */ e(R, { bold: !0, variant: "Paragraph", children: A.zero_state_title }),
20390
20391
  /* @__PURE__ */ e(R, { sx: { whiteSpace: "wrap" }, variant: "Paragraph", children: A.zero_state_description })
@@ -20397,7 +20398,7 @@ const SR = ({
20397
20398
  click_type: "bubble"
20398
20399
  });
20399
20400
  };
20400
- return I ? /* @__PURE__ */ e(b, { alignItems: "center", height: A, justifyContent: "center", width: Math.abs(f), children: /* @__PURE__ */ e(ee, {}) }) : /* @__PURE__ */ e(L, { ml: i || d ? 0 : 24, children: i || !a ? /* @__PURE__ */ e(FR, {}) : /* @__PURE__ */ e(
20401
+ return I ? /* @__PURE__ */ e(P, { alignItems: "center", height: A, justifyContent: "center", width: Math.abs(f), children: /* @__PURE__ */ e(ee, {}) }) : /* @__PURE__ */ e(L, { ml: i || d ? 0 : 24, children: i || !a ? /* @__PURE__ */ e(FR, {}) : /* @__PURE__ */ e(
20401
20402
  UR,
20402
20403
  {
20403
20404
  height: A,
@@ -20417,7 +20418,7 @@ const SR = ({
20417
20418
  primaryCtaLabel: a ? o.get_started_cta : o.details_cta,
20418
20419
  title: o.budgets_title,
20419
20420
  ...A,
20420
- children: /* @__PURE__ */ s(b, { height: 450, mt: 32, children: [
20421
+ children: /* @__PURE__ */ s(P, { height: 450, mt: 32, children: [
20421
20422
  /* @__PURE__ */ e(UI, { height: 370, shouldShowZeroState: a }),
20422
20423
  !a && /* @__PURE__ */ s(L, { ml: 16, children: [
20423
20424
  /* @__PURE__ */ e(R, { bold: !0, color: I < 0 ? "error.main" : "success.main", children: M(Math.abs(I), "0,0") }),
@@ -20441,14 +20442,14 @@ const SR = ({
20441
20442
  /* @__PURE__ */ e(
20442
20443
  eA,
20443
20444
  {
20444
- primary: /* @__PURE__ */ s(b, { component: "span", direction: "row", justifyContent: "space-between", children: [
20445
+ primary: /* @__PURE__ */ s(P, { component: "span", direction: "row", justifyContent: "space-between", children: [
20445
20446
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.category.name }),
20446
20447
  /* @__PURE__ */ e(R, { fontWeight: 400, variant: "Body", children: `
20447
20448
  ${M(d, "0,0")} /
20448
20449
  ${M(i, "0,0")}
20449
20450
  ` })
20450
20451
  ] }),
20451
- secondary: /* @__PURE__ */ s(b, { component: "span", direction: "row", justifyContent: "space-between", children: [
20452
+ secondary: /* @__PURE__ */ s(P, { component: "span", direction: "row", justifyContent: "space-between", children: [
20452
20453
  /* @__PURE__ */ e(R, { variant: "XSmall", children: `${c.length} Sub-budgets` }),
20453
20454
  /* @__PURE__ */ e(R, { bold: a > 100, color: r, variant: "XSmall", children: I })
20454
20455
  ] })
@@ -20471,21 +20472,21 @@ const SR = ({
20471
20472
  ] });
20472
20473
  }), ZR = C(() => {
20473
20474
  const A = RA(), { onEvent: t } = K(), { accounts: i } = CA(), { budgets: n, common: r, recurring: o } = X(), { incomeCategories: I, spendCategories: a } = qA(), { detailedBudgets: c, totalBudgeted: d } = te(), { projectedIncome: f } = ZA(), { setFilter: E } = PA(), [l, v] = h.useState(!1), [u, H] = h.useMemo(() => {
20474
- const x = a.reduce((j, O) => j + O.totalAmount, 0);
20475
+ const x = a.reduce((m, O) => m + O.totalAmount, 0);
20475
20476
  let w = x / d;
20476
20477
  w > 1 && (w = 1);
20477
20478
  let D = A.palette.success.main;
20478
20479
  w > 0.8 && w < 1 ? D = A.palette.warning.main : w >= 1 && (D = A.palette.error.main);
20479
- const m = [
20480
+ const j = [
20480
20481
  {
20481
20482
  color: D,
20482
20483
  percentage: `${w}`
20483
20484
  }
20484
20485
  ];
20485
- return [x, m];
20486
- }, [c, a]), [P, p] = h.useMemo(() => {
20486
+ return [x, j];
20487
+ }, [c, a]), [b, p] = h.useMemo(() => {
20487
20488
  const x = Math.abs(
20488
- I.reduce((m, j) => m + j.totalAmount, 0)
20489
+ I.reduce((j, m) => j + m.totalAmount, 0)
20489
20490
  );
20490
20491
  let w = x / f;
20491
20492
  w > 1 && (w = 1);
@@ -20507,8 +20508,8 @@ const SR = ({
20507
20508
  };
20508
20509
  return /* @__PURE__ */ s(ze, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
20509
20510
  /* @__PURE__ */ e(rt, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(ne, { children: n.overview_title }) }),
20510
- /* @__PURE__ */ e(Ce, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ s(b, { gap: 24, children: [
20511
- /* @__PURE__ */ s(b, { gap: 8, children: [
20511
+ /* @__PURE__ */ e(Ce, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ s(P, { gap: 24, children: [
20512
+ /* @__PURE__ */ s(P, { gap: 8, children: [
20512
20513
  /* @__PURE__ */ e(R, { bold: !0, sx: { mb: 8 }, variant: "Body", children: n.spending_title }),
20513
20514
  /* @__PURE__ */ e(ti, { data: H, height: 16 }),
20514
20515
  /* @__PURE__ */ e(R, { variant: "Small", children: z(
@@ -20517,8 +20518,8 @@ const SR = ({
20517
20518
  M(d, "0,0")
20518
20519
  ) })
20519
20520
  ] }),
20520
- /* @__PURE__ */ s(b, { gap: 8, children: [
20521
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
20521
+ /* @__PURE__ */ s(P, { gap: 8, children: [
20522
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
20522
20523
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: n.income_title }),
20523
20524
  /* @__PURE__ */ e(
20524
20525
  NA,
@@ -20533,7 +20534,7 @@ const SR = ({
20533
20534
  /* @__PURE__ */ e(ti, { data: p, height: 16 }),
20534
20535
  /* @__PURE__ */ e(R, { variant: "Small", children: z(
20535
20536
  n.income_description,
20536
- M(P, "0,0"),
20537
+ M(b, "0,0"),
20537
20538
  M(f, "0,0")
20538
20539
  ) })
20539
20540
  ] })
@@ -20545,7 +20546,7 @@ const SR = ({
20545
20546
  isOpen: l,
20546
20547
  onClose: () => v(!1),
20547
20548
  title: o.manage_income,
20548
- children: /* @__PURE__ */ s(b, { gap: 4, children: [
20549
+ children: /* @__PURE__ */ s(P, { gap: 4, children: [
20549
20550
  /* @__PURE__ */ e(R, { bold: !0, sx: { mt: 12, mx: 24 }, variant: "Small", children: n.income_title }),
20550
20551
  /* @__PURE__ */ e(Zn, {})
20551
20552
  ] })
@@ -20554,18 +20555,18 @@ const SR = ({
20554
20555
  ] });
20555
20556
  }), JR = C(() => {
20556
20557
  const { budgets: A } = X(), { totalBudgeted: t } = te(), { projectedIncome: i } = ZA(), n = i - t;
20557
- return /* @__PURE__ */ s(b, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
20558
- /* @__PURE__ */ s(b, { alignItems: "center", children: [
20558
+ return /* @__PURE__ */ s(P, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
20559
+ /* @__PURE__ */ s(P, { alignItems: "center", children: [
20559
20560
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(i, "0,0") }),
20560
20561
  /* @__PURE__ */ e(R, { color: "secondary", variant: "Small", children: A.projected_income })
20561
20562
  ] }),
20562
20563
  /* @__PURE__ */ e(R, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
20563
- /* @__PURE__ */ s(b, { alignItems: "center", children: [
20564
+ /* @__PURE__ */ s(P, { alignItems: "center", children: [
20564
20565
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(t, "0,0") }),
20565
20566
  /* @__PURE__ */ e(R, { color: "secondary", variant: "Small", children: A.budgeted })
20566
20567
  ] }),
20567
20568
  /* @__PURE__ */ e(R, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
20568
- /* @__PURE__ */ s(b, { alignItems: "center", children: [
20569
+ /* @__PURE__ */ s(P, { alignItems: "center", children: [
20569
20570
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(n, "0,0") }),
20570
20571
  /* @__PURE__ */ e(R, { color: "secondary", variant: "Small", children: A.remaining })
20571
20572
  ] })
@@ -20599,8 +20600,8 @@ const SR = ({
20599
20600
  onClose: () => a(!1),
20600
20601
  onPrimaryAction: d,
20601
20602
  title: t.recalculate_title,
20602
- children: /* @__PURE__ */ s(b, { children: [
20603
- /* @__PURE__ */ s(b, { mx: 24, my: 16, children: [
20603
+ children: /* @__PURE__ */ s(P, { children: [
20604
+ /* @__PURE__ */ s(P, { mx: 24, my: 16, children: [
20604
20605
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: t.recalculate_description_top }),
20605
20606
  /* @__PURE__ */ e(R, { variant: "ParagraphSmall", children: t.recalculate_description_bottom })
20606
20607
  ] }),
@@ -20615,8 +20616,8 @@ const SR = ({
20615
20616
  onAmountChanged: i
20616
20617
  }) => {
20617
20618
  const { budgets: n } = X(), { totalBudgeted: r } = te(), { projectedIncome: o } = ZA(), I = o - r;
20618
- return /* @__PURE__ */ s(b, { gap: 16, children: [
20619
- /* @__PURE__ */ s(b, { children: [
20619
+ return /* @__PURE__ */ s(P, { gap: 16, children: [
20620
+ /* @__PURE__ */ s(P, { children: [
20620
20621
  /* @__PURE__ */ e(R, { children: z(
20621
20622
  n.add_description_top,
20622
20623
  M(I, "0,0")
@@ -20668,7 +20669,7 @@ const SR = ({
20668
20669
  const { budgets: t } = X(), { addBudget: i, setAlert: n, unbudgetedCategories: r } = te(), o = async (I, a) => {
20669
20670
  await i(I, a), n(z(t.alert_budget_created, I.name));
20670
20671
  };
20671
- return /* @__PURE__ */ s(b, { children: [
20672
+ return /* @__PURE__ */ s(P, { children: [
20672
20673
  /* @__PURE__ */ e(JR, {}),
20673
20674
  /* @__PURE__ */ e(L, { bgcolor: "background.paper", children: /* @__PURE__ */ e(rA, { children: r.map((I) => /* @__PURE__ */ e(
20674
20675
  A3,
@@ -20694,7 +20695,7 @@ const SR = ({
20694
20695
  percentage: `${o}%`
20695
20696
  }
20696
20697
  ];
20697
- return /* @__PURE__ */ e(ze, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(b, { alignItems: "center", gap: 16, children: [
20698
+ return /* @__PURE__ */ e(ze, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(P, { alignItems: "center", gap: 16, children: [
20698
20699
  /* @__PURE__ */ e(be, { categoryGuid: r, size: 56 }),
20699
20700
  /* @__PURE__ */ e(it, { children: `${M(I, "0,0")} / ${M(t, "0,0")}` }),
20700
20701
  /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: n }),
@@ -20702,7 +20703,7 @@ const SR = ({
20702
20703
  ] }) }) });
20703
20704
  }, t3 = C(() => {
20704
20705
  const { budgets: A } = X();
20705
- return /* @__PURE__ */ s(b, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
20706
+ return /* @__PURE__ */ s(P, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
20706
20707
  /* @__PURE__ */ e(q, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
20707
20708
  /* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: A.zero_state_no_sub_budgets }),
20708
20709
  /* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: A.zero_state_no_sub_budgets_description })
@@ -20720,8 +20721,8 @@ const SR = ({
20720
20721
  /* @__PURE__ */ e(
20721
20722
  eA,
20722
20723
  {
20723
- primary: /* @__PURE__ */ e(b, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.category.name }) }),
20724
- secondary: /* @__PURE__ */ e(b, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(R, { fontWeight: 400, variant: "Body", children: `
20724
+ primary: /* @__PURE__ */ e(P, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.category.name }) }),
20725
+ secondary: /* @__PURE__ */ e(P, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(R, { fontWeight: 400, variant: "Body", children: `
20725
20726
  ${M(o, "0,0")} /
20726
20727
  ${M(t, "0,0")}
20727
20728
  ` }) })
@@ -20738,12 +20739,12 @@ const SR = ({
20738
20739
  }, []);
20739
20740
  const H = () => {
20740
20741
  r(A.guid), c(!0);
20741
- }, P = async () => {
20742
+ }, b = async () => {
20742
20743
  v && Number(E) > 0 && (await I(v, Number(E), t.guid), f(!1), c(!1), u(void 0));
20743
20744
  };
20744
20745
  return /* @__PURE__ */ s(L, { children: [
20745
- /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(aA, { onClick: H, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
20746
- /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 8, children: [
20746
+ /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(aA, { onClick: H, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
20747
+ /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
20747
20748
  /* @__PURE__ */ e(q, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
20748
20749
  /* @__PURE__ */ e(R, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: i.add_sub_budget_button })
20749
20750
  ] }),
@@ -20767,7 +20768,7 @@ const SR = ({
20767
20768
  disablePrimaryButton: Number(E) <= 0,
20768
20769
  isOpen: d,
20769
20770
  onClose: () => f(!1),
20770
- onPrimaryAction: P,
20771
+ onPrimaryAction: b,
20771
20772
  primaryText: i.add_save_button,
20772
20773
  children: /* @__PURE__ */ e(
20773
20774
  Wi,
@@ -20781,9 +20782,9 @@ const SR = ({
20781
20782
  )
20782
20783
  ] });
20783
20784
  }), r3 = C(({ budget: A }) => {
20784
- const { category: t, subBudgets: i } = A, { budgets: n, common: r } = X(), { deleteBudget: o, selectedSubBudget: I, setSelectedSubBudget: a, updateBudget: c } = te(), { filter: d, setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H, P] = h.useState("");
20785
+ const { category: t, subBudgets: i } = A, { budgets: n, common: r } = X(), { deleteBudget: o, selectedSubBudget: I, setSelectedSubBudget: a, updateBudget: c } = te(), { filter: d, setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H, b] = h.useState("");
20785
20786
  h.useEffect(() => {
20786
- I && (P(`${I.amount}`), f({
20787
+ I && (b(`${I.amount}`), f({
20787
20788
  ...d,
20788
20789
  custom: (w) => w.category_guid === I.category_guid
20789
20790
  }));
@@ -20820,7 +20821,7 @@ const SR = ({
20820
20821
  primaryText: n.details_edit_button,
20821
20822
  secondaryText: n.details_delete_button,
20822
20823
  title: n.details_title,
20823
- children: I && /* @__PURE__ */ s(b, { gap: 24, children: [
20824
+ children: I && /* @__PURE__ */ s(P, { gap: 24, children: [
20824
20825
  /* @__PURE__ */ e(FI, { budget: I }),
20825
20826
  /* @__PURE__ */ e(Rt, { height: "100%" })
20826
20827
  ] })
@@ -20841,7 +20842,7 @@ const SR = ({
20841
20842
  {
20842
20843
  amount: H,
20843
20844
  categoryName: I.category.name,
20844
- onAmountChanged: P
20845
+ onAmountChanged: b
20845
20846
  }
20846
20847
  )
20847
20848
  }
@@ -20870,9 +20871,9 @@ const SR = ({
20870
20871
  }, v = () => {
20871
20872
  cI(o, I), r(t.alert_csv_downloaded);
20872
20873
  };
20873
- return /* @__PURE__ */ s(b, { gap: 24, children: [
20874
+ return /* @__PURE__ */ s(P, { gap: 24, children: [
20874
20875
  /* @__PURE__ */ e(FI, { budget: A }),
20875
- /* @__PURE__ */ s(b, { children: [
20876
+ /* @__PURE__ */ s(P, { children: [
20876
20877
  /* @__PURE__ */ s(
20877
20878
  Se,
20878
20879
  {
@@ -20886,8 +20887,8 @@ const SR = ({
20886
20887
  ]
20887
20888
  }
20888
20889
  ),
20889
- a === 0 && /* @__PURE__ */ s(b, { children: [
20890
- o.length > 0 && /* @__PURE__ */ e(b, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ e(
20890
+ a === 0 && /* @__PURE__ */ s(P, { children: [
20891
+ o.length > 0 && /* @__PURE__ */ e(P, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ e(
20891
20892
  $,
20892
20893
  {
20893
20894
  onClick: v,
@@ -20920,12 +20921,12 @@ const SR = ({
20920
20921
  setAlert: a,
20921
20922
  setSelectedBudget: c,
20922
20923
  updateBudget: d
20923
- } = te(), { setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H, P] = h.useState(!1), [p, y] = h.useState("");
20924
+ } = te(), { setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H, b] = h.useState(!1), [p, y] = h.useState("");
20924
20925
  h.useEffect(() => {
20925
20926
  o && !I && (y(`${o.amount}`), l(!0), f({
20926
20927
  accounts: A,
20927
20928
  dateRange: n,
20928
- custom: (m) => m.category_guid === o.category_guid || m.top_level_category_guid === o.category_guid
20929
+ custom: (j) => j.category_guid === o.category_guid || j.top_level_category_guid === o.category_guid
20929
20930
  }));
20930
20931
  }, [o]);
20931
20932
  const x = async () => {
@@ -20935,7 +20936,7 @@ const SR = ({
20935
20936
  percentage: o.category.totalAmount / Number(p) * 100
20936
20937
  }), a(z(t.alert_budget_updated, o.category.name)));
20937
20938
  }, w = async () => {
20938
- o && (await r(o.guid), a(z(t.alert_budget_deleted, o.category.name))), P(!1), D();
20939
+ o && (await r(o.guid), a(z(t.alert_budget_deleted, o.category.name))), b(!1), D();
20939
20940
  }, D = () => {
20940
20941
  l(!1), setTimeout(() => {
20941
20942
  c(void 0);
@@ -20950,7 +20951,7 @@ const SR = ({
20950
20951
  isOpen: E,
20951
20952
  onClose: D,
20952
20953
  onPrimaryAction: () => u(!0),
20953
- onSecondaryAction: () => P(!0),
20954
+ onSecondaryAction: () => b(!0),
20954
20955
  primaryText: t.details_edit_button,
20955
20956
  secondaryColor: "error",
20956
20957
  secondaryText: t.details_delete_button,
@@ -20982,7 +20983,7 @@ const SR = ({
20982
20983
  {
20983
20984
  copy: { close_aria: i.close_aria, title: t.delete_title },
20984
20985
  isOpen: H,
20985
- onClose: () => P(!1),
20986
+ onClose: () => b(!1),
20986
20987
  onPrimaryAction: w,
20987
20988
  primaryColor: "error",
20988
20989
  primaryText: t.details_delete_button,
@@ -20992,13 +20993,13 @@ const SR = ({
20992
20993
  )
20993
20994
  ] });
20994
20995
  }), vo = 480, VP = C(({ onBackClick: A, sx: t }) => {
20995
- const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: P } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, m] = h.useState(!1), [j, O] = h.useState(!1);
20996
+ const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: b } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, j] = h.useState(!1), [m, O] = h.useState(!1);
20996
20997
  h.useEffect(() => {
20997
- P(i), f(r), d(l.start, l.end), n(V.BUDGETS_VIEW);
20998
+ b(i), f(r), d(l.start, l.end), n(V.BUDGETS_VIEW);
20998
20999
  }, []), h.useEffect(() => {
20999
21000
  f(r);
21000
21001
  }, [r]), h.useEffect(() => {
21001
- a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() => m(!0))));
21002
+ a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() => j(!0))));
21002
21003
  }, [a, c, l]);
21003
21004
  const T = (sA) => {
21004
21005
  u({ start: sA[0] || /* @__PURE__ */ new Date(), end: sA[1] || /* @__PURE__ */ new Date() });
@@ -21027,8 +21028,8 @@ const SR = ({
21027
21028
  title: o.budgets_title,
21028
21029
  children: [
21029
21030
  (!a || !D) && /* @__PURE__ */ e(ee, {}),
21030
- a && D && /* @__PURE__ */ s(b, { direction: y || x ? "row" : "column", height: "100%", width: "100%", children: [
21031
- /* @__PURE__ */ e(b, { height: y || x ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ e(
21031
+ a && D && /* @__PURE__ */ s(P, { direction: y || x ? "row" : "column", height: "100%", width: "100%", children: [
21032
+ /* @__PURE__ */ e(P, { height: y || x ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ e(
21032
21033
  UI,
21033
21034
  {
21034
21035
  height: y || x ? 800 : 450,
@@ -21038,7 +21039,7 @@ const SR = ({
21038
21039
  }
21039
21040
  ) }),
21040
21041
  /* @__PURE__ */ s(
21041
- b,
21042
+ P,
21042
21043
  {
21043
21044
  gap: 24,
21044
21045
  height: "100%",
@@ -21056,7 +21057,7 @@ const SR = ({
21056
21057
  IA,
21057
21058
  {
21058
21059
  ariaLabelClose: I.close_aria,
21059
- isOpen: j,
21060
+ isOpen: m,
21060
21061
  onClose: () => O(!1),
21061
21062
  title: o.add_new_title,
21062
21063
  children: /* @__PURE__ */ e(e3, { onRecalculateBudgets: iA })
@@ -21082,7 +21083,7 @@ const a3 = C(() => {
21082
21083
  appDataStore: { banner: t }
21083
21084
  } = oi();
21084
21085
  return !t?.redirect_url || !t?.image_url ? null : /* @__PURE__ */ e(
21085
- b,
21086
+ P,
21086
21087
  {
21087
21088
  sx: {
21088
21089
  alignItems: "center",
@@ -21130,8 +21131,8 @@ const a3 = C(() => {
21130
21131
  },
21131
21132
  title: r.account_filter.title
21132
21133
  };
21133
- return /* @__PURE__ */ e(De, { sx: { mb: n ? 24 : 0, p: 24 }, children: /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
21134
- /* @__PURE__ */ s(b, { children: [
21134
+ return /* @__PURE__ */ e(De, { sx: { mb: n ? 24 : 0, p: 24 }, children: /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
21135
+ /* @__PURE__ */ s(P, { children: [
21135
21136
  /* @__PURE__ */ e(it, { children: (() => {
21136
21137
  const c = (/* @__PURE__ */ new Date()).getHours();
21137
21138
  return c > 1 && c < 12 ? r.good_morning : c >= 12 && c < 18 ? r.good_afternoon : r.good_evening;
@@ -21172,18 +21173,18 @@ const a3 = C(() => {
21172
21173
  /* @__PURE__ */ e(tt, { xs: 12, children: r.isInitialized && /* @__PURE__ */ e(c3, {}) }),
21173
21174
  /* @__PURE__ */ s(tt, { xl: 8, xs: 12, children: [
21174
21175
  /* @__PURE__ */ e(a3, {}),
21175
- t && /* @__PURE__ */ s(b, { direction: "column", spacing: 24, children: [
21176
+ t && /* @__PURE__ */ s(P, { direction: "column", spacing: 24, children: [
21176
21177
  /* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
21177
21178
  /* @__PURE__ */ e(_e, { height: 300, variant: "rounded", width: "100%" }),
21178
21179
  /* @__PURE__ */ e(_e, { height: 300, variant: "rounded", width: "100%" })
21179
21180
  ] }),
21180
- !t && /* @__PURE__ */ e(b, { direction: "column", spacing: 24, children: i ? c.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) : a.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) })
21181
+ !t && /* @__PURE__ */ e(P, { direction: "column", spacing: 24, children: i ? c.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) : a.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) })
21181
21182
  ] }),
21182
- i && /* @__PURE__ */ e(tt, { xl: 4, children: t ? /* @__PURE__ */ s(b, { direction: "column", spacing: 24, children: [
21183
+ i && /* @__PURE__ */ e(tt, { xl: 4, children: t ? /* @__PURE__ */ s(P, { direction: "column", spacing: 24, children: [
21183
21184
  /* @__PURE__ */ e(_e, { height: 200, variant: "rounded", width: "100%" }),
21184
21185
  /* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
21185
21186
  /* @__PURE__ */ e(_e, { height: 300, variant: "rounded", width: "100%" })
21186
- ] }) : /* @__PURE__ */ e(b, { direction: "column", spacing: 24, children: d.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) }) })
21187
+ ] }) : /* @__PURE__ */ e(P, { direction: "column", spacing: 24, children: d.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) }) })
21187
21188
  ] });
21188
21189
  }, BP = C(f3);
21189
21190
  class d3 {
@@ -21426,12 +21427,12 @@ const si = h.createContext(null), u3 = ({
21426
21427
  title: v,
21427
21428
  variant: u,
21428
21429
  widthOverrides: H
21429
- }, P) {
21430
+ }, b) {
21430
21431
  const [p, y] = h.useState(2);
21431
21432
  h.useEffect(() => {
21432
21433
  H && H <= 325 && y(3);
21433
21434
  }, [H]);
21434
- const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x }, m = /* @__PURE__ */ e(
21435
+ const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x }, j = /* @__PURE__ */ e(
21435
21436
  HA,
21436
21437
  {
21437
21438
  className: "mx-micro-card-description",
@@ -21456,7 +21457,7 @@ const si = h.createContext(null), u3 = ({
21456
21457
  "aria-hidden": !a,
21457
21458
  "aria-label": i,
21458
21459
  onClick: () => d(),
21459
- ref: P,
21460
+ ref: b,
21460
21461
  role: "button",
21461
21462
  style: {
21462
21463
  height: "100%",
@@ -21485,7 +21486,7 @@ const si = h.createContext(null), u3 = ({
21485
21486
  },
21486
21487
  variant: u,
21487
21488
  children: /* @__PURE__ */ s(
21488
- b,
21489
+ P,
21489
21490
  {
21490
21491
  sx: {
21491
21492
  gap: 8,
@@ -21496,18 +21497,18 @@ const si = h.createContext(null), u3 = ({
21496
21497
  rt,
21497
21498
  {
21498
21499
  avatar: f && I,
21499
- subheader: c && m,
21500
+ subheader: c && j,
21500
21501
  sx: { color: l.headerColor, p: 0 },
21501
21502
  title: v,
21502
21503
  titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
21503
21504
  }
21504
21505
  ),
21505
- /* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c && m }),
21506
+ /* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c && j }),
21506
21507
  !!t && /* @__PURE__ */ e(Qs, { sx: { padding: 0 }, children: /* @__PURE__ */ e(
21507
21508
  L,
21508
21509
  {
21509
- sx: (j) => ({
21510
- color: l.buttonColor ? l.buttonColor : j.palette.primary.main,
21510
+ sx: (m) => ({
21511
+ color: l.buttonColor ? l.buttonColor : m.palette.primary.main,
21511
21512
  // TODO: Per Cameron the theme package in @mxenabled/mxui will be getting a big update and this will be theme.palette.primary_main
21512
21513
  fontSize: 14,
21513
21514
  fontWeight: "bold",
@@ -22420,15 +22421,15 @@ const si = h.createContext(null), u3 = ({
22420
22421
  }) => {
22421
22422
  const { ref: v, inView: u } = No({
22422
22423
  threshold: Aa
22423
- }), { cardsCopy: H } = ut(), { onEvent: P } = ci(), { updateBeat: p, updateOffer: y } = w3();
22424
+ }), { cardsCopy: H } = ut(), { onEvent: b } = ci(), { updateBeat: p, updateOffer: y } = w3();
22424
22425
  Ht(() => {
22425
- u && (i.has_been_displayed ? P(kI(i.template)) : (i.guid.startsWith("OFR") ? y({
22426
+ u && (i.has_been_displayed ? b(kI(i.template)) : (i.guid.startsWith("OFR") ? y({
22426
22427
  ...i,
22427
22428
  has_been_displayed: !0
22428
22429
  }) : p({
22429
22430
  ...i,
22430
22431
  has_been_displayed: !0
22431
- }), P(KI(i.template))));
22432
+ }), b(KI(i.template))));
22432
22433
  }, [u]), Ht(() => {
22433
22434
  u && i && d?.capture("viewed_insight", {
22434
22435
  beat_guid: i.guid,
@@ -22437,7 +22438,7 @@ const si = h.createContext(null), u3 = ({
22437
22438
  });
22438
22439
  }, [i, I, u]);
22439
22440
  const x = () => {
22440
- c && c(i), P(WI(i.template)), d?.capture("clicked_insight", {
22441
+ c && c(i), b(WI(i.template)), d?.capture("clicked_insight", {
22441
22442
  beat_guid: i.guid,
22442
22443
  template: i.template,
22443
22444
  position: I
@@ -22558,7 +22559,7 @@ const si = h.createContext(null), u3 = ({
22558
22559
  variant: d,
22559
22560
  widthOverrides: f
22560
22561
  }) => {
22561
- const E = L3(n, c, f), l = h.useRef(null), [v, u] = h.useState(0), [H, P] = h.useState(null), [p, y] = h.useState(null), { carouselCopy: x } = ut(), { onEvent: w } = ci(), D = () => {
22562
+ const E = L3(n, c, f), l = h.useRef(null), [v, u] = h.useState(0), [H, b] = h.useState(null), [p, y] = h.useState(null), { carouselCopy: x } = ut(), { onEvent: w } = ci(), D = () => {
22562
22563
  w(xe.ON_CAROUSEL_FORWARD_CLICK), l.current && l.current.scrollTo({
22563
22564
  left: (
22564
22565
  // Adds the flex gap to the carousel ref's width
@@ -22567,21 +22568,21 @@ const si = h.createContext(null), u3 = ({
22567
22568
  top: 0,
22568
22569
  behavior: "smooth"
22569
22570
  });
22570
- }, m = () => {
22571
+ }, j = () => {
22571
22572
  w(xe.ON_CAROUSEL_BACK_CLICK), l.current && l.current.scrollTo({
22572
22573
  left: (l.current.offsetWidth + 8) * (Math.floor(v / (l.current.offsetWidth + 8)) - 1),
22573
22574
  top: 0,
22574
22575
  behavior: "smooth"
22575
22576
  });
22576
- }, j = () => {
22577
+ }, m = () => {
22577
22578
  l.current && u(l.current.scrollLeft);
22578
22579
  }, O = () => {
22579
22580
  if (!p || !H) return;
22580
22581
  p - H > y3 ? w(xe.ON_CAROUSEL_FORWARD_SWIPE) : w(xe.ON_CAROUSEL_BACK_SWIPE);
22581
22582
  }, T = (sA) => {
22582
- P(sA.targetTouches[0].clientX);
22583
+ b(sA.targetTouches[0].clientX);
22583
22584
  }, tA = (sA) => {
22584
- P(null), y(sA.targetTouches[0].clientX);
22585
+ b(null), y(sA.targetTouches[0].clientX);
22585
22586
  }, Y = {
22586
22587
  clientColorScheme: t,
22587
22588
  showCTAColocatedWithText: i,
@@ -22603,7 +22604,7 @@ const si = h.createContext(null), u3 = ({
22603
22604
  "div",
22604
22605
  {
22605
22606
  className: "mx-insights-micro-carousel-container",
22606
- onScroll: j,
22607
+ onScroll: m,
22607
22608
  onTouchEnd: O,
22608
22609
  onTouchMove: T,
22609
22610
  onTouchStart: tA,
@@ -22646,7 +22647,7 @@ const si = h.createContext(null), u3 = ({
22646
22647
  currentBeatIndex: iA,
22647
22648
  numBeats: A.length + 1,
22648
22649
  onNextClick: D,
22649
- onPreviousClick: m,
22650
+ onPreviousClick: j,
22650
22651
  scrollRightBoundary: oA,
22651
22652
  scrollX: v
22652
22653
  }
@@ -22689,7 +22690,7 @@ const si = h.createContext(null), u3 = ({
22689
22690
  o && (o(xe.ON_VIEW_MORE_CLICKED), t(), i?.capture("clicked_view_more"));
22690
22691
  };
22691
22692
  return /* @__PURE__ */ s(
22692
- b,
22693
+ P,
22693
22694
  {
22694
22695
  alignItems: "center",
22695
22696
  direction: "row",
@@ -22899,18 +22900,18 @@ const si = h.createContext(null), u3 = ({
22899
22900
  showHeader: v,
22900
22901
  showIcon: u,
22901
22902
  showWithMargin: H = !0,
22902
- token: P = "",
22903
+ token: b = "",
22903
22904
  useDarkMode: p,
22904
22905
  userHasFullInsightFeedBeats: y,
22905
22906
  variant: x,
22906
22907
  widthOverrides: w
22907
22908
  }) => {
22908
- const [D, m] = Fe("STANDARD"), [j, O] = Fe(!1), T = Ic([c], Je), tA = ac([d], Je);
22909
+ const [D, j] = Fe("STANDARD"), [m, O] = Fe(!1), T = Ic([c], Je), tA = ac([d], Je);
22909
22910
  h.useEffect(() => {
22910
- Je.isInitialized || Je.initialize(r, P, I);
22911
- }, [r, P, I, Je.isInitialized]), h.useEffect(() => {
22911
+ Je.isInitialized || Je.initialize(r, b, I);
22912
+ }, [r, b, I, Je.isInitialized]), h.useEffect(() => {
22912
22913
  const oA = window.innerHeight;
22913
- oA < 180 ? m("STANDARD") : oA >= 180 && oA < 200 ? m("LARGE") : oA >= 200 && oA < 248 ? m("XLARGE") : oA >= 248 && m("XXLARGE");
22914
+ oA < 180 ? j("STANDARD") : oA >= 180 && oA < 200 ? j("LARGE") : oA >= 200 && oA < 248 ? j("XLARGE") : oA >= 248 && j("XXLARGE");
22914
22915
  }, [window.innerHeight]), h.useEffect(() => {
22915
22916
  O(!A && Je.isInitialized);
22916
22917
  }, [A, Je.isInitialized]);
@@ -22934,7 +22935,7 @@ const si = h.createContext(null), u3 = ({
22934
22935
  /* @__PURE__ */ e(Gs, {}),
22935
22936
  /* @__PURE__ */ e(u3, { onEvent: T, onPageview: tA, store: Je, children: /* @__PURE__ */ s(G3, { heightOverrides: o, widthOverrides: w, children: [
22936
22937
  (A || !Je.isInitialized) && /* @__PURE__ */ e(M3, {}),
22937
- j && v && /* @__PURE__ */ e(
22938
+ m && v && /* @__PURE__ */ e(
22938
22939
  q3,
22939
22940
  {
22940
22941
  clientColorScheme: i,
@@ -22943,7 +22944,7 @@ const si = h.createContext(null), u3 = ({
22943
22944
  widthOverrides: w
22944
22945
  }
22945
22946
  ),
22946
- j && !!t.length && /* @__PURE__ */ e(
22947
+ m && !!t.length && /* @__PURE__ */ e(
22947
22948
  O3,
22948
22949
  {
22949
22950
  beats: t,
@@ -22953,8 +22954,8 @@ const si = h.createContext(null), u3 = ({
22953
22954
  ...Y
22954
22955
  }
22955
22956
  ),
22956
- j && !t.length && y && /* @__PURE__ */ e(ea, { clientColorScheme: i, ...iA }),
22957
- j && !t.length && !y && /* @__PURE__ */ e(ta, { ...iA })
22957
+ m && !t.length && y && /* @__PURE__ */ e(ea, { clientColorScheme: i, ...iA }),
22958
+ m && !t.length && !y && /* @__PURE__ */ e(ta, { ...iA })
22958
22959
  ] }) })
22959
22960
  ] })
22960
22961
  );
@@ -23087,7 +23088,7 @@ const si = h.createContext(null), u3 = ({
23087
23088
  donutData: I,
23088
23089
  totalAmount: o
23089
23090
  };
23090
- }, pi = ({ amount: A, label: t }) => /* @__PURE__ */ s(b, { direction: "column", children: [
23091
+ }, pi = ({ amount: A, label: t }) => /* @__PURE__ */ s(P, { direction: "column", children: [
23091
23092
  /* @__PURE__ */ e(R, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: t }),
23092
23093
  /* @__PURE__ */ e(R, { variant: "XSmall", children: M(A, "0,0") })
23093
23094
  ] }), B3 = ({
@@ -23106,9 +23107,9 @@ const si = h.createContext(null), u3 = ({
23106
23107
  ), l = h.useMemo(() => A.donutData.length > 0 ? A.donutData : [{ id: "0", color: d.palette.border.light, value: 100 }], [A, d]), v = () => {
23107
23108
  n?.(r);
23108
23109
  }, u = f ? 32 : 48;
23109
- return /* @__PURE__ */ e(yc, { data: l, onClick: i, selectedId: r, size: o, children: /* @__PURE__ */ e(b, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ s(b, { alignItems: "center", justifyContent: "center", minHeight: o, minWidth: o, children: [
23110
+ return /* @__PURE__ */ e(yc, { data: l, onClick: i, selectedId: r, size: o, children: /* @__PURE__ */ e(P, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ s(P, { alignItems: "center", justifyContent: "center", minHeight: o, minWidth: o, children: [
23110
23111
  E && /* @__PURE__ */ s(
23111
- b,
23112
+ P,
23112
23113
  {
23113
23114
  alignItems: "center",
23114
23115
  gap: a === "mini" ? 0 : 8,
@@ -23143,8 +23144,8 @@ const si = h.createContext(null), u3 = ({
23143
23144
  }
23144
23145
  )
23145
23146
  ] }) }) });
23146
- }, wi = C(B3), Co = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(b, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((n) => /* @__PURE__ */ s(
23147
- b,
23147
+ }, wi = C(B3), Co = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(P, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((n) => /* @__PURE__ */ s(
23148
+ P,
23148
23149
  {
23149
23150
  alignItems: "center",
23150
23151
  "aria-label": n.name,
@@ -23185,8 +23186,8 @@ const si = h.createContext(null), u3 = ({
23185
23186
  ), l = h.useMemo(
23186
23187
  () => na(r, o, n),
23187
23188
  [r, o, n]
23188
- ), v = (H, P) => {
23189
- f(P), c("");
23189
+ ), v = (H, b) => {
23190
+ f(b), c("");
23190
23191
  }, u = (H) => {
23191
23192
  c(a === H ? "" : H);
23192
23193
  };
@@ -23217,7 +23218,7 @@ const si = h.createContext(null), u3 = ({
23217
23218
  }
23218
23219
  )
23219
23220
  ] }),
23220
- d === 0 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23221
+ d === 0 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(P, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23221
23222
  /* @__PURE__ */ e(
23222
23223
  wi,
23223
23224
  {
@@ -23236,7 +23237,7 @@ const si = h.createContext(null), u3 = ({
23236
23237
  }
23237
23238
  )
23238
23239
  ] }) }),
23239
- d === 1 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23240
+ d === 1 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(P, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23240
23241
  /* @__PURE__ */ e(
23241
23242
  wi,
23242
23243
  {
@@ -23270,7 +23271,7 @@ const si = h.createContext(null), u3 = ({
23270
23271
  title: n
23271
23272
  }) => {
23272
23273
  const { spending: r } = X(), o = A.categoryData.find((I) => I.guid === i);
23273
- return /* @__PURE__ */ s(b, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
23274
+ return /* @__PURE__ */ s(P, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
23274
23275
  /* @__PURE__ */ e(R, { bold: !0, sx: { py: 12 }, children: `${n} ${r.by_category}` }),
23275
23276
  /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
23276
23277
  /* @__PURE__ */ e(rA, { children: A.categoryData.map((I) => /* @__PURE__ */ s(h.Fragment, { children: [
@@ -23300,7 +23301,7 @@ const si = h.createContext(null), u3 = ({
23300
23301
  }
23301
23302
  ),
23302
23303
  /* @__PURE__ */ s(
23303
- b,
23304
+ P,
23304
23305
  {
23305
23306
  alignItems: "center",
23306
23307
  direction: "row",
@@ -23327,7 +23328,7 @@ const si = h.createContext(null), u3 = ({
23327
23328
  pr: 8,
23328
23329
  py: 0
23329
23330
  },
23330
- children: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", width: "100%", children: [
23331
+ children: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", width: "100%", children: [
23331
23332
  /* @__PURE__ */ s(R, { children: [
23332
23333
  a.name,
23333
23334
  " "
@@ -23351,7 +23352,7 @@ const si = h.createContext(null), u3 = ({
23351
23352
  }) => {
23352
23353
  const { isDesktop: o, isMobile: I } = zA(), { isLoadingCategoryTotals: a } = qA(), { spending: c } = X();
23353
23354
  return /* @__PURE__ */ s(
23354
- b,
23355
+ P,
23355
23356
  {
23356
23357
  alignItems: I ? "center" : "flex-start",
23357
23358
  direction: I ? "column" : "row",
@@ -23400,7 +23401,7 @@ const si = h.createContext(null), u3 = ({
23400
23401
  A.palette.chartMono.chartMono1,
23401
23402
  A.palette.chartMono.chartMono6
23402
23403
  ], J3 = () => {
23403
- const A = nt(), { categories: t, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: n } = qA(), { spending: r } = X(), { displayedDateRange: o, selectedAccounts: I, selectedAccountGuids: a } = pA(), { setFilter: c, sortedTransactions: d } = PA(), [f, E] = h.useState(""), [l, v] = h.useState(0), [u, H] = h.useState(""), [P, p] = h.useState(!1);
23404
+ const A = nt(), { categories: t, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: n } = qA(), { spending: r } = X(), { displayedDateRange: o, selectedAccounts: I, selectedAccountGuids: a } = pA(), { setFilter: c, sortedTransactions: d } = PA(), [f, E] = h.useState(""), [l, v] = h.useState(0), [u, H] = h.useState(""), [b, p] = h.useState(!1);
23404
23405
  h.useEffect(() => {
23405
23406
  n(
23406
23407
  I,
@@ -23419,9 +23420,9 @@ const si = h.createContext(null), u3 = ({
23419
23420
  [u]
23420
23421
  ), D = (O, T) => {
23421
23422
  v(T), E("");
23422
- }, m = (O) => {
23423
- E(f === O || O === "0" ? "" : O);
23424
23423
  }, j = (O) => {
23424
+ E(f === O || O === "0" ? "" : O);
23425
+ }, m = (O) => {
23425
23426
  const T = {
23426
23427
  accounts: a,
23427
23428
  dateRange: o
@@ -23476,8 +23477,8 @@ const si = h.createContext(null), u3 = ({
23476
23477
  go,
23477
23478
  {
23478
23479
  data: y,
23479
- onSelected: m,
23480
- onViewTransactions: j,
23480
+ onSelected: j,
23481
+ onViewTransactions: m,
23481
23482
  selectedId: f,
23482
23483
  title: r.spend_tab_title
23483
23484
  }
@@ -23486,8 +23487,8 @@ const si = h.createContext(null), u3 = ({
23486
23487
  go,
23487
23488
  {
23488
23489
  data: x,
23489
- onSelected: m,
23490
- onViewTransactions: j,
23490
+ onSelected: j,
23491
+ onViewTransactions: m,
23491
23492
  selectedId: f,
23492
23493
  title: r.income_tab_title
23493
23494
  }
@@ -23496,7 +23497,7 @@ const si = h.createContext(null), u3 = ({
23496
23497
  IA,
23497
23498
  {
23498
23499
  ariaLabelClose: r.close_drawer_aria,
23499
- isOpen: P,
23500
+ isOpen: b,
23500
23501
  onClose: () => p(!1),
23501
23502
  title: r.transactions_drawer_title,
23502
23503
  children: /* @__PURE__ */ e(Rt, { onClick: H })
@@ -23556,7 +23557,7 @@ const i7 = (A) => A.reduce((i, n) => {
23556
23557
  const n = i7(A), r = t7(t, i);
23557
23558
  return Object.entries(n).map(([I, a]) => {
23558
23559
  const c = a[0].top_level_category_guid, d = r.map((f) => {
23559
- const E = a.filter((H) => H.year_month === f).reduce((H, P) => H + Math.abs(P.amount), 0), l = Number(String(f).slice(0, 4)), v = Number(String(f).slice(4));
23560
+ const E = a.filter((H) => H.year_month === f).reduce((H, b) => H + Math.abs(b.amount), 0), l = Number(String(f).slice(0, 4)), v = Number(String(f).slice(4));
23560
23561
  return { x: new Date(l, v - 1), y: E };
23561
23562
  }).sort((f, E) => f.x.getTime() - E.x.getTime());
23562
23563
  return {
@@ -23572,10 +23573,10 @@ const i7 = (A) => A.reduce((i, n) => {
23572
23573
  return (i || 0) - (n || 0);
23573
23574
  }, o7 = (A) => {
23574
23575
  const t = A.row[A.field];
23575
- return /* @__PURE__ */ e(b, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ e(OA, { amount: t, variant: "Small" }) });
23576
+ return /* @__PURE__ */ e(P, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ e(OA, { amount: t, variant: "Small" }) });
23576
23577
  }, I7 = ({ categoryGuid: A, topLevelCategoryGuid: t }) => {
23577
23578
  const { categories: i } = X(), n = qi[A];
23578
- return /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
23579
+ return /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "center", children: [
23579
23580
  /* @__PURE__ */ e(
23580
23581
  L,
23581
23582
  {
@@ -23586,7 +23587,7 @@ const i7 = (A) => A.reduce((i, n) => {
23586
23587
  ),
23587
23588
  /* @__PURE__ */ e(R, { sx: { ml: 12, pb: 6 }, variant: "Small", children: n })
23588
23589
  ] });
23589
- }, a7 = (A) => /* @__PURE__ */ e(b, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
23590
+ }, a7 = (A) => /* @__PURE__ */ e(P, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
23590
23591
  I7,
23591
23592
  {
23592
23593
  categoryGuid: A.row.category,
@@ -23638,16 +23639,16 @@ const i7 = (A) => A.reduce((i, n) => {
23638
23639
  const u = (i ? A.filter(
23639
23640
  (H) => H.category_guid === i || H.top_level_category_guid === i
23640
23641
  ) : A).reduce(
23641
- (H, P) => {
23642
- const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } = P, m = i ? p : y;
23643
- H[m] || (H[m] = {
23644
- id: m,
23645
- category: m,
23642
+ (H, b) => {
23643
+ const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } = b, j = i ? p : y;
23644
+ H[j] || (H[j] = {
23645
+ id: j,
23646
+ category: j,
23646
23647
  category_guid: p,
23647
23648
  top_level_category_guid: y
23648
23649
  });
23649
- const j = nA(new Date(D, x - 1), AA.MONTH_SHORT);
23650
- return H[m][j] || (H[m][j] = 0), H[m][j] = H[m][j] + w, H;
23650
+ const m = nA(new Date(D, x - 1), AA.MONTH_SHORT);
23651
+ return H[j][m] || (H[j][m] = 0), H[j][m] = H[j][m] + w, H;
23651
23652
  },
23652
23653
  {}
23653
23654
  );
@@ -23708,7 +23709,7 @@ const i7 = (A) => A.reduce((i, n) => {
23708
23709
  }, E7 = C(d7), h7 = {
23709
23710
  view_transactions: "View Transactions"
23710
23711
  }, l7 = ({ onBackClick: A, sx: t }) => {
23711
- const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), P = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, m] = h.useState("Chart"), [j, O] = h.useState(""), [T, tA] = h.useState({
23712
+ const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), b = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, j] = h.useState("Chart"), [m, O] = h.useState(""), [T, tA] = h.useState({
23712
23713
  start: Rr(BA(Ne(/* @__PURE__ */ new Date(), 6)), 1),
23713
23714
  end: BA(/* @__PURE__ */ new Date())
23714
23715
  });
@@ -23729,14 +23730,14 @@ const i7 = (A) => A.reduce((i, n) => {
23729
23730
  d,
23730
23731
  T.start,
23731
23732
  T.end
23732
- ), JA = j.length ? bA.filter(
23733
- (Ke) => Ke.top_level_category_guid === j || Ke.category_guid === j
23733
+ ), JA = m.length ? bA.filter(
23734
+ (Ke) => Ke.top_level_category_guid === m || Ke.category_guid === m
23734
23735
  ) : Eh(bA);
23735
23736
  return {
23736
23737
  stackedDatasets: JA.filter(fh),
23737
23738
  unstackedDatasets: JA.filter(Fi)
23738
23739
  };
23739
- }, [d, j, T]), iA = h.useMemo(() => {
23740
+ }, [d, m, T]), iA = h.useMemo(() => {
23740
23741
  const bA = nA(
23741
23742
  T.start,
23742
23743
  I ? AA.MONTH_SHORT_YEAR : AA.MONTH_YEAR
@@ -23746,7 +23747,7 @@ const i7 = (A) => A.reduce((i, n) => {
23746
23747
  );
23747
23748
  return `${bA} - ${JA}`;
23748
23749
  }, [T, I]), oA = (bA, JA) => {
23749
- m(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
23750
+ j(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
23750
23751
  }, sA = (bA) => {
23751
23752
  const JA = Rr(bA?.[0], 1), Ke = bA?.[1], Yt = Ms(Ke, JA);
23752
23753
  tA({ start: JA, end: Ke }), n(V.TRENDS_CLICK_DATE, {
@@ -23778,7 +23779,7 @@ const i7 = (A) => A.reduce((i, n) => {
23778
23779
  title: H.title,
23779
23780
  children: [
23780
23781
  /* @__PURE__ */ s(
23781
- b,
23782
+ P,
23782
23783
  {
23783
23784
  sx: {
23784
23785
  // eslint-disable-next-line no-nested-ternary
@@ -23786,7 +23787,7 @@ const i7 = (A) => A.reduce((i, n) => {
23786
23787
  },
23787
23788
  children: [
23788
23789
  /* @__PURE__ */ s(
23789
- b,
23790
+ P,
23790
23791
  {
23791
23792
  flexDirection: "row",
23792
23793
  justifyContent: "space-between",
@@ -23804,7 +23805,7 @@ const i7 = (A) => A.reduce((i, n) => {
23804
23805
  textOverflow: "unset"
23805
23806
  },
23806
23807
  variant: r ? "H3" : "Body",
23807
- children: f(j) || H.sub_title
23808
+ children: f(m) || H.sub_title
23808
23809
  }
23809
23810
  ),
23810
23811
  /* @__PURE__ */ e(R, { variant: r ? "Body" : "Small", children: iA })
@@ -23824,20 +23825,20 @@ const i7 = (A) => A.reduce((i, n) => {
23824
23825
  fontWeight: 600,
23825
23826
  height: 44,
23826
23827
  width: 56,
23827
- color: P ? i.palette.grey[200] : i.palette.grey[600],
23828
- borderColor: P ? i.palette.grey[600] : i.palette.grey[400],
23828
+ color: b ? i.palette.grey[200] : i.palette.grey[600],
23829
+ borderColor: b ? i.palette.grey[600] : i.palette.grey[400],
23829
23830
  "&:hover": {
23830
- backgroundColor: P ? `${i.palette.primary.darker}25` : "inherit",
23831
- borderColor: P ? i.palette.grey[500] : i.palette.primary.main,
23832
- color: P ? i.palette.primary.light : i.palette.primary.dark
23831
+ backgroundColor: b ? `${i.palette.primary.darker}25` : "inherit",
23832
+ borderColor: b ? i.palette.grey[500] : i.palette.primary.main,
23833
+ color: b ? i.palette.primary.light : i.palette.primary.dark
23833
23834
  },
23834
23835
  "&.Mui-selected": {
23835
- backgroundColor: P ? i.palette.primary.darker : i.palette.primary.lighter,
23836
- borderColor: P ? i.palette.primary.light : i.palette.primary.main,
23837
- color: P ? i.palette.common.white : i.palette.primary.dark
23836
+ backgroundColor: b ? i.palette.primary.darker : i.palette.primary.lighter,
23837
+ borderColor: b ? i.palette.primary.light : i.palette.primary.main,
23838
+ color: b ? i.palette.common.white : i.palette.primary.dark
23838
23839
  },
23839
23840
  "&.Mui-disabled": {
23840
- borderColor: P ? i.palette.grey[700] : i.palette.grey[400],
23841
+ borderColor: b ? i.palette.grey[700] : i.palette.grey[400],
23841
23842
  color: i.palette.grey[500]
23842
23843
  }
23843
23844
  },
@@ -23851,8 +23852,8 @@ const i7 = (A) => A.reduce((i, n) => {
23851
23852
  ]
23852
23853
  }
23853
23854
  ),
23854
- /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
23855
- /* @__PURE__ */ e(L, { flexGrow: 1, children: j && /* @__PURE__ */ s($, { onClick: () => O(""), sx: { p: 0, pr: 5 }, children: [
23855
+ /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", width: "100%", children: [
23856
+ /* @__PURE__ */ e(L, { flexGrow: 1, children: m && /* @__PURE__ */ s($, { onClick: () => O(""), sx: { p: 0, pr: 5 }, children: [
23856
23857
  /* @__PURE__ */ e(q, { name: "arrow_back" }),
23857
23858
  H.all_categories
23858
23859
  ] }) }),
@@ -23875,7 +23876,7 @@ const i7 = (A) => A.reduce((i, n) => {
23875
23876
  {
23876
23877
  monthlyCategoryTotals: d,
23877
23878
  onClickRow: cA,
23878
- selectedCategory: j,
23879
+ selectedCategory: m,
23879
23880
  selectedDateRange: T
23880
23881
  }
23881
23882
  )
@@ -23886,7 +23887,7 @@ const i7 = (A) => A.reduce((i, n) => {
23886
23887
  /* @__PURE__ */ e(
23887
23888
  E7,
23888
23889
  {
23889
- categoryGuid: j,
23890
+ categoryGuid: m,
23890
23891
  dateRange: T,
23891
23892
  isOpen: x,
23892
23893
  onClose: () => w(!1)