@mx-cartographer/experiences 6.14.2-alpha.mega12 → 6.14.2-alpha.mega13

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
@@ -18,7 +18,7 @@ import { getDay as nl } from "date-fns/getDay";
18
18
  import { isBefore as Xe } from "date-fns/isBefore";
19
19
  import { nextDay as Fi } from "date-fns/nextDay";
20
20
  import { setDate as Wi } from "date-fns/setDate";
21
- import { startOfToday as ue } from "date-fns/startOfToday";
21
+ import { startOfToday as he } from "date-fns/startOfToday";
22
22
  import { fromUnixTime as $e } from "date-fns/fromUnixTime";
23
23
  import { Honeybadger as Di } from "@honeybadger-io/react";
24
24
  import xa from "numeral";
@@ -27,7 +27,7 @@ import Bn from "@mui/material/Tooltip";
27
27
  import We from "@mui/material/IconButton";
28
28
  import va from "@mui/material/FormControlLabel";
29
29
  import j from "@mui/material/ListItem";
30
- import he from "@mui/material/ListItemButton";
30
+ import ge from "@mui/material/ListItemButton";
31
31
  import se from "@mui/material/ListItemText";
32
32
  import ns from "@mui/material/Popover";
33
33
  import y from "@mui/material/Stack";
@@ -848,15 +848,15 @@ const ai = 44, zo = (e, n) => e.find((i) => i.guid === n), $d = (e, n) => e.find
848
848
  }, eo = (e) => {
849
849
  const n = nl(e);
850
850
  let i = Fi(e, n);
851
- for (; Xe(i, ue()); )
851
+ for (; Xe(i, he()); )
852
852
  i = ts(i, 1);
853
853
  return i;
854
854
  }, Vd = (e) => {
855
855
  const n = eo(e);
856
856
  return ts(n, 1);
857
857
  }, Kd = (e) => {
858
- let n = Wi(ue(), e.getDate());
859
- for (; Xe(n, ue()); )
858
+ let n = Wi(he(), e.getDate());
859
+ for (; Xe(n, he()); )
860
860
  n = ft(n, 1);
861
861
  return n;
862
862
  }, zd = (e) => {
@@ -864,7 +864,7 @@ const ai = 44, zo = (e, n) => e.find((i) => i.guid === n), $d = (e, n) => e.find
864
864
  return ft(n, 1);
865
865
  }, Is = (e) => {
866
866
  let n = hi(e, 1);
867
- for (; Xe(n, ue()); )
867
+ for (; Xe(n, he()); )
868
868
  n = hi(n, 1);
869
869
  return n;
870
870
  }, Yd = (e) => {
@@ -1385,7 +1385,7 @@ const fa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1385
1385
  className: "mx-cmn-account-options-group",
1386
1386
  dense: !0,
1387
1387
  subheader: /* @__PURE__ */ t(Lt, { disableGutters: !0, children: /* @__PURE__ */ t(
1388
- he,
1388
+ ge,
1389
1389
  {
1390
1390
  "aria-label": T(i.toggleAccountTypeAccounts, b),
1391
1391
  "aria-pressed": A,
@@ -1871,7 +1871,7 @@ const t_ = (e, n) => {
1871
1871
  gap: 4
1872
1872
  }
1873
1873
  }), g_ = ({ beginDate: e, date: n, endDate: i, isInMonth: a, onClick: o }) => {
1874
- const r = Ce(), s = m_(r), c = e && i && Wa(n, { start: e, end: i }) && !yt(n, e) && !yt(n, i), d = e && i && yt(e, n) && !yt(e, i), u = i && e && yt(i, n) && !yt(e, i), _ = e && yt(e, n) || i && yt(i, n), g = yt(n, ue());
1874
+ const r = Ce(), s = m_(r), c = e && i && Wa(n, { start: e, end: i }) && !yt(n, e) && !yt(n, i), d = e && i && yt(e, n) && !yt(e, i), u = i && e && yt(i, n) && !yt(e, i), _ = e && yt(e, n) || i && yt(i, n), g = yt(n, he());
1875
1875
  return /* @__PURE__ */ t(
1876
1876
  "div",
1877
1877
  {
@@ -1963,7 +1963,7 @@ const C_ = ({
1963
1963
  selectionType: r = "Single"
1964
1964
  /* Single */
1965
1965
  }) => {
1966
- const s = mt(), c = f_(s), [d, u] = h.useState(ue), [_, g] = h.useState(n), [m, C] = h.useState(i);
1966
+ const s = mt(), c = f_(s), [d, u] = h.useState(he), [_, g] = h.useState(n), [m, C] = h.useState(i);
1967
1967
  h.useEffect(() => {
1968
1968
  g(n), C(i), n && u(n);
1969
1969
  }, [n, i]);
@@ -1985,7 +1985,7 @@ const C_ = ({
1985
1985
  !_ || m ? (g(v), C(void 0)) : Xe(v, _) ? (C(_), g(v), o?.(v, _)) : (C(v), o?.(_, v));
1986
1986
  }
1987
1987
  }, b = () => {
1988
- const v = ue();
1988
+ const v = he();
1989
1989
  u(v), r !== "None" && (g(v), r === "Single" ? a?.(v) : (C(v), o?.(v, v)));
1990
1990
  }, S = () => {
1991
1991
  u(ft(d, 1));
@@ -2540,7 +2540,7 @@ const C_ = ({
2540
2540
  type: "line",
2541
2541
  highlightScope: { highlight: "item" },
2542
2542
  valueFormatter: (Ge) => P(Ge, "0,0")
2543
- })), ge = r.map((K, Me) => ({
2543
+ })), ue = r.map((K, Me) => ({
2544
2544
  id: `unstacked-${Me}`,
2545
2545
  guid: K.category_guid,
2546
2546
  top_level_guid: K.top_level_category_guid,
@@ -2550,12 +2550,12 @@ const C_ = ({
2550
2550
  label: K.category_name,
2551
2551
  type: "line",
2552
2552
  valueFormatter: (Ge) => P(Ge, "0,0")
2553
- })), Re = [...te, ...ge], Oe = [
2553
+ })), Re = [...te, ...ue], Oe = [
2554
2554
  ...te.map(({ guid: K, top_level_guid: Me }) => ({
2555
2555
  guid: K,
2556
2556
  top_level_guid: Me
2557
2557
  })),
2558
- ...ge.map(({ guid: K, top_level_guid: Me }) => ({
2558
+ ...ue.map(({ guid: K, top_level_guid: Me }) => ({
2559
2559
  guid: K,
2560
2560
  top_level_guid: Me
2561
2561
  }))
@@ -2900,7 +2900,7 @@ const C_ = ({
2900
2900
  calendarActions: e,
2901
2901
  color: n = "primary",
2902
2902
  copy: i,
2903
- range: a = [tt(ue()), Je(yn())],
2903
+ range: a = [tt(he()), Je(yn())],
2904
2904
  shouldShrinkToIcon: o = !0,
2905
2905
  variant: r = "outlined"
2906
2906
  }) => {
@@ -2933,8 +2933,8 @@ const C_ = ({
2933
2933
  else if (g === i.dateRangePickerCopy.dateRangeYTD || g === i.dateRangePickerCopy.dateRangeLastYear)
2934
2934
  U[0] = te ? wa(Bo(ee), 1) : Hi(Bo(ee), 1), U[1] = te ? wa(Go(ee), 1) : Hi(Go(ee), 1);
2935
2935
  else {
2936
- const ge = xl(_e, ee);
2937
- U[0] = O === "previous" ? Tt(ee, ge) : sn(ee, ge), U[1] = O === "previous" ? Tt(_e, ge) : sn(_e, ge);
2936
+ const ue = xl(_e, ee);
2937
+ U[0] = O === "previous" ? Tt(ee, ue) : sn(ee, ue), U[1] = O === "previous" ? Tt(_e, ue) : sn(_e, ue);
2938
2938
  }
2939
2939
  _(U), e.onRangeChanged(U);
2940
2940
  }, D = () => {
@@ -3449,17 +3449,17 @@ const Nn = ({
3449
3449
  {
3450
3450
  accounts: e,
3451
3451
  copy: O,
3452
- onFilterClick: (ge) => {
3453
- M(ge), u?.();
3452
+ onFilterClick: (ue) => {
3453
+ M(ue), u?.();
3454
3454
  },
3455
3455
  selectedAccountGuids: B,
3456
3456
  showAccountNumbers: !1,
3457
3457
  variant: "text"
3458
3458
  }
3459
3459
  ),
3460
- n?.map((ge) => {
3461
- if (h.isValidElement(ge)) return ge;
3462
- const { iconName: Re, onClick: Oe, label: Te } = ge;
3460
+ n?.map((ue) => {
3461
+ if (h.isValidElement(ue)) return ue;
3462
+ const { iconName: Re, onClick: Oe, label: Te } = ue;
3463
3463
  return te ? S || v ? /* @__PURE__ */ t(
3464
3464
  J,
3465
3465
  {
@@ -3830,7 +3830,7 @@ const tr = "connect_widget", nr = "connections_widget", F_ = ({
3830
3830
  }
3831
3831
  )
3832
3832
  ] });
3833
- return i ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(he, { onClick: i, children: [
3833
+ return i ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { onClick: i, children: [
3834
3834
  o,
3835
3835
  /* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t($, { name: "chevron_right", size: 24 }) })
3836
3836
  ] }) }) : /* @__PURE__ */ t(j, { disableGutters: !1, disablePadding: !1, children: o });
@@ -3971,7 +3971,7 @@ const tr = "connect_widget", nr = "connections_widget", F_ = ({
3971
3971
  g(!1), r();
3972
3972
  };
3973
3973
  return /* @__PURE__ */ l(j, { children: [
3974
- /* @__PURE__ */ l(he, { onClick: () => g(!n), children: [
3974
+ /* @__PURE__ */ l(ge, { onClick: () => g(!n), children: [
3975
3975
  /* @__PURE__ */ t(
3976
3976
  se,
3977
3977
  {
@@ -4015,7 +4015,7 @@ const tr = "connect_widget", nr = "connections_widget", F_ = ({
4015
4015
  }) => {
4016
4016
  const { onEvent: o } = Y();
4017
4017
  return i ? /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
4018
- he,
4018
+ ge,
4019
4019
  {
4020
4020
  onClick: () => {
4021
4021
  n && o(n), i();
@@ -4070,7 +4070,7 @@ const tr = "connect_widget", nr = "connections_widget", F_ = ({
4070
4070
  }
4071
4071
  },
4072
4072
  children: /* @__PURE__ */ l(
4073
- he,
4073
+ ge,
4074
4074
  {
4075
4075
  disabled: n,
4076
4076
  onClick: i,
@@ -4337,7 +4337,7 @@ class Q_ {
4337
4337
  api = new ar("/", "");
4338
4338
  globalStore;
4339
4339
  alert = "";
4340
- dateRange = { start: tt(ue()), end: Je(ue()) };
4340
+ dateRange = { start: tt(he()), end: Je(he()) };
4341
4341
  budgets = [];
4342
4342
  selectedBudget;
4343
4343
  selectedSubBudget;
@@ -4638,7 +4638,7 @@ const ei = () => {
4638
4638
  status: Qe.Upcoming,
4639
4639
  type: e.repeating_transaction_type === nn.Income ? Kt.Income : Kt.Expense,
4640
4640
  transaction: void 0
4641
- }, r = tt(ue()), s = Je(ft(ue(), 1));
4641
+ }, r = tt(he()), s = Je(ft(he(), 1));
4642
4642
  switch (e.recurrence_type) {
4643
4643
  case pe.EveryWeek:
4644
4644
  n.push(...ou(o, r, s));
@@ -4669,7 +4669,7 @@ const ei = () => {
4669
4669
  const d = e.transactions.find(
4670
4670
  (u) => u.repeating_transaction_guid === e.guid && u.date > Fe(Tt(c.expectedDate, 5)) && u.date < Fe(sn(c.expectedDate, 5))
4671
4671
  );
4672
- d ? (c.transaction = d, c.status = Qe.Paid, c.occurredOnDate = $e(d.date)) : Xe(c.expectedDate, Tt(ue(), 3)) && (c.status = Qe.Missed);
4672
+ d ? (c.transaction = d, c.status = Qe.Paid, c.occurredOnDate = $e(d.date)) : Xe(c.expectedDate, Tt(he(), 3)) && (c.status = Qe.Missed);
4673
4673
  }
4674
4674
  return n;
4675
4675
  }, ou = (e, n, i) => {
@@ -4689,10 +4689,10 @@ const ei = () => {
4689
4689
  }
4690
4690
  return a;
4691
4691
  }, su = (e) => {
4692
- const n = [], i = Wi(ue(), e.recurrenceDay), a = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? Wi(ue(), e.secondRecurrenceDay) : ad(ue());
4692
+ const n = [], i = Wi(he(), e.recurrenceDay), a = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? Wi(he(), e.secondRecurrenceDay) : ad(he());
4693
4693
  return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: a }), n.push({ ...e, expectedDate: ft(i, 1) }), n.push({ ...e, expectedDate: ft(a, 1) }), n;
4694
4694
  }, cu = (e) => {
4695
- const n = [], i = Wi(ue(), e.recurrenceDay);
4695
+ const n = [], i = Wi(he(), e.recurrenceDay);
4696
4696
  return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: ft(i, 1) }), n;
4697
4697
  }, lu = (e, n, i) => {
4698
4698
  const a = [], o = e.expectedDate;
@@ -4750,7 +4750,7 @@ const ei = () => {
4750
4750
  recurrences: [i]
4751
4751
  }), n;
4752
4752
  }, []), zi = (e, n, i) => {
4753
- const a = Fi(ue(), n.recurrence_day), o = us(ue(), n.recurrence_day), r = pi(n.recurrence_day), s = n.second_recurrence_day ? pi(n.second_recurrence_day) : "";
4753
+ const a = Fi(he(), n.recurrence_day), o = us(he(), n.recurrence_day), r = pi(n.recurrence_day), s = n.second_recurrence_day ? pi(n.second_recurrence_day) : "";
4754
4754
  let c = i ? T(e.monthly_ordinal, r) : e.monthly;
4755
4755
  switch (n.recurrence_type) {
4756
4756
  case pe.EveryQuarter:
@@ -5258,7 +5258,7 @@ const mu = [
5258
5258
  }, Eu = (e, n, i) => {
5259
5259
  const {
5260
5260
  accounts: a = [],
5261
- dateRange: o = { start: tt(ue()), end: yn() },
5261
+ dateRange: o = { start: tt(he()), end: yn() },
5262
5262
  custom: r = () => !0,
5263
5263
  searchTerm: s = ""
5264
5264
  } = e;
@@ -5359,7 +5359,7 @@ class wu {
5359
5359
  transactionRules = [];
5360
5360
  transactions = [];
5361
5361
  associatedBeats = [];
5362
- cachedStartDate = Tt(ue(), 90);
5362
+ cachedStartDate = Tt(he(), 90);
5363
5363
  sortColumn = Ga.DATE;
5364
5364
  sortDirection = Hs.DESC;
5365
5365
  filter = {};
@@ -5958,7 +5958,7 @@ const qu = ({
5958
5958
  i(!1), r(Yt.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
5959
5959
  };
5960
5960
  return /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
5961
- /* @__PURE__ */ t(he, { onClick: d, sx: { ml: 60 }, children: /* @__PURE__ */ t(
5961
+ /* @__PURE__ */ t(ge, { onClick: d, sx: { ml: 60 }, children: /* @__PURE__ */ t(
5962
5962
  se,
5963
5963
  {
5964
5964
  primary: o.add_subcategory_button,
@@ -6035,7 +6035,7 @@ const qu = ({
6035
6035
  sx: { pl: 58 },
6036
6036
  children: [
6037
6037
  /* @__PURE__ */ l(
6038
- he,
6038
+ ge,
6039
6039
  {
6040
6040
  "aria-pressed": b,
6041
6041
  color: "secondary",
@@ -6132,7 +6132,7 @@ const qu = ({
6132
6132
  };
6133
6133
  return /* @__PURE__ */ l(h.Fragment, { children: [
6134
6134
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6135
- he,
6135
+ ge,
6136
6136
  {
6137
6137
  "aria-controls": `subcategories-${e.guid}`,
6138
6138
  "aria-expanded": e.guid === i,
@@ -6279,7 +6279,7 @@ const qu = ({
6279
6279
  )
6280
6280
  );
6281
6281
  }, hr = (e) => {
6282
- const n = [], i = ue();
6282
+ const n = [], i = he();
6283
6283
  for (let a = 0; a <= _r; a++) {
6284
6284
  const o = tt(zt(i, _r - a)), s = e.filter(
6285
6285
  (c) => c.year_month === Number(kn(o, "yyyyMM"))
@@ -6457,7 +6457,7 @@ const Vs = ({ transaction: e }) => {
6457
6457
  );
6458
6458
  return /* @__PURE__ */ l(h.Fragment, { children: [
6459
6459
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6460
- he,
6460
+ ge,
6461
6461
  {
6462
6462
  onClick: () => {
6463
6463
  o(z.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
@@ -6529,7 +6529,7 @@ const Vs = ({ transaction: e }) => {
6529
6529
  };
6530
6530
  return /* @__PURE__ */ l(L, { className: "mx-txn-date-action", children: [
6531
6531
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6532
- he,
6532
+ ge,
6533
6533
  {
6534
6534
  onClick: () => {
6535
6535
  i(z.ON_TRANSACTION_DATE_CLICK), d(!0);
@@ -6580,7 +6580,7 @@ const Vs = ({ transaction: e }) => {
6580
6580
  };
6581
6581
  return /* @__PURE__ */ l(L, { className: "mx-txn-delete", children: [
6582
6582
  e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6583
- he,
6583
+ ge,
6584
6584
  {
6585
6585
  onClick: () => {
6586
6586
  n(z.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
@@ -6622,7 +6622,7 @@ const Vs = ({ transaction: e }) => {
6622
6622
  };
6623
6623
  return /* @__PURE__ */ l(L, { className: "mx-txn-delete-logo", children: [
6624
6624
  e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6625
- he,
6625
+ ge,
6626
6626
  {
6627
6627
  onClick: () => {
6628
6628
  n(z.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
@@ -6662,7 +6662,7 @@ const Vs = ({ transaction: e }) => {
6662
6662
  };
6663
6663
  return /* @__PURE__ */ l(L, { className: "mx-txn-hide-transaction", children: [
6664
6664
  e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6665
- he,
6665
+ ge,
6666
6666
  {
6667
6667
  "aria-checked": d,
6668
6668
  onClick: () => {
@@ -6757,7 +6757,7 @@ const Vs = ({ transaction: e }) => {
6757
6757
  };
6758
6758
  return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
6759
6759
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6760
- he,
6760
+ ge,
6761
6761
  {
6762
6762
  onClick: () => {
6763
6763
  n(z.ON_TRANSACTION_MEMO_CLICK), c(!0);
@@ -7031,7 +7031,7 @@ const Vs = ({ transaction: e }) => {
7031
7031
  return k || O;
7032
7032
  }, [f]);
7033
7033
  return /* @__PURE__ */ l(h.Fragment, { children: [
7034
- e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(he, { onClick: w, children: [
7034
+ e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { onClick: w, children: [
7035
7035
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(kt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "call_split", sx: { color: "text.primary" }, weight: pt.Dark }) }) }),
7036
7036
  /* @__PURE__ */ t(
7037
7037
  se,
@@ -7219,7 +7219,7 @@ const Vs = ({ transaction: e }) => {
7219
7219
  ] }),
7220
7220
  children: [
7221
7221
  /* @__PURE__ */ l(
7222
- he,
7222
+ ge,
7223
7223
  {
7224
7224
  "aria-checked": n.includes(i.guid),
7225
7225
  onClick: () => e(i.guid),
@@ -7311,7 +7311,7 @@ const Vs = ({ transaction: e }) => {
7311
7311
  );
7312
7312
  return /* @__PURE__ */ l(h.Fragment, { children: [
7313
7313
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
7314
- he,
7314
+ ge,
7315
7315
  {
7316
7316
  onClick: () => {
7317
7317
  n(z.ON_TRANSACTION_TAGS_CLICK), u(!0);
@@ -7664,17 +7664,17 @@ const Vs = ({ transaction: e }) => {
7664
7664
  isInitialized: ee,
7665
7665
  selectedAccountGuids: _e,
7666
7666
  setDisplayedDate: te,
7667
- setSelectedAccounts: ge
7667
+ setSelectedAccounts: ue
7668
7668
  } = le(), [Re, Oe] = h.useState(""), [Te, Le] = h.useState(""), [At, Q] = h.useState(!1), [ne, Ke] = h.useState(!1), [qe, K] = h.useState(!1);
7669
7669
  h.useEffect(() => {
7670
- const rt = tt(ue()), Ro = Je(ue());
7671
- ge(o), te(rt, Ro), S({
7670
+ ue(o), k(W.TRANSACTIONS_VIEW);
7671
+ }, []), h.useEffect(() => {
7672
+ const rt = tt(he()), Ro = Je(he());
7673
+ ue(o), te(rt, Ro), S({
7672
7674
  accounts: o.map((Ni) => Ni.guid),
7673
7675
  custom: (Ni) => !Ni.accountIsClosed && !Ni.accountIsHidden,
7674
7676
  dateRange: { start: rt, end: Ro }
7675
- }), K(!0), k(W.TRANSACTIONS_VIEW);
7676
- }, []), h.useEffect(() => {
7677
- ge(o);
7677
+ }), K(!0), ue(o);
7678
7678
  }, [o]), h.useEffect(() => {
7679
7679
  qe && (S({
7680
7680
  ...E,
@@ -7699,7 +7699,7 @@ const Vs = ({ transaction: e }) => {
7699
7699
  }, ma = () => {
7700
7700
  Me.length > 0 ? (C({
7701
7701
  ...Fs,
7702
- date: Fe(ue()),
7702
+ date: Fe(he()),
7703
7703
  user_guid: D?.user_guid || ""
7704
7704
  }), Oe(
7705
7705
  "addTransaction"
@@ -7882,7 +7882,7 @@ const Vs = ({ transaction: e }) => {
7882
7882
  label: pi(b + 1)
7883
7883
  }));
7884
7884
  u[30].label += ` (${s.last_day_of_month})`;
7885
- const _ = u.slice(0, 15), g = u.slice(14), m = e === pe.EveryWeek || e === pe.EveryOtherWeek, C = e === pe.TwiceAMonth || e === pe.EveryMonth || e === pe.EveryOtherMonth || e === pe.EveryQuarter || e === pe.EveryOtherQuarter, f = us(ue(), n), E = (b) => {
7885
+ const _ = u.slice(0, 15), g = u.slice(14), m = e === pe.EveryWeek || e === pe.EveryOtherWeek, C = e === pe.TwiceAMonth || e === pe.EveryMonth || e === pe.EveryOtherMonth || e === pe.EveryQuarter || e === pe.EveryOtherQuarter, f = us(he(), n), E = (b) => {
7886
7886
  b && o(od(b));
7887
7887
  };
7888
7888
  return /* @__PURE__ */ l(y, { gap: 24, sx: { m: 24 }, children: [
@@ -7981,7 +7981,7 @@ const Vs = ({ transaction: e }) => {
7981
7981
  h.useEffect(() => {
7982
7982
  s({
7983
7983
  accounts: a,
7984
- dateRange: { start: Tt(ue(), 90), end: Je(ue()) },
7984
+ dateRange: { start: Tt(he(), 90), end: Je(he()) },
7985
7985
  custom: (v) => v.repeating_transaction_guid === n.guid
7986
7986
  });
7987
7987
  }, [n]);
@@ -8086,7 +8086,7 @@ const Vs = ({ transaction: e }) => {
8086
8086
  [n]
8087
8087
  ), s = n.account?.institutionName || "", c = n.repeating_transaction_type === nn.Income, d = zi(i, n, !0);
8088
8088
  return /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
8089
- /* @__PURE__ */ l(he, { onClick: () => {
8089
+ /* @__PURE__ */ l(ge, { onClick: () => {
8090
8090
  e(n), o(!0);
8091
8091
  }, children: [
8092
8092
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
@@ -8260,7 +8260,7 @@ const Vs = ({ transaction: e }) => {
8260
8260
  m(""), _(!1);
8261
8261
  };
8262
8262
  return /* @__PURE__ */ l(L, { children: [
8263
- /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(he, { onClick: w, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8263
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(ge, { onClick: w, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8264
8264
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
8265
8265
  /* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
8266
8266
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
@@ -8568,7 +8568,7 @@ const Vs = ({ transaction: e }) => {
8568
8568
  ), u = e.type === Kt.Income, _ = e.status === Qe.Paid, g = e.status === Qe.Missed, m = e.status === Qe.Upcoming;
8569
8569
  let C = o.paid?.toLowerCase();
8570
8570
  return g ? C = o.missed?.toLowerCase() : m && (C = a ? zi(o, d || {}, !0) : zi(o, d || {}, !1)), /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
8571
- /* @__PURE__ */ l(he, { onClick: () => {
8571
+ /* @__PURE__ */ l(ge, { onClick: () => {
8572
8572
  c(!0), i(e);
8573
8573
  }, children: [
8574
8574
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
@@ -8831,7 +8831,7 @@ const Vs = ({ transaction: e }) => {
8831
8831
  c(i);
8832
8832
  }, [i]), h.useEffect(() => {
8833
8833
  r && (_({
8834
- dateRange: { start: Tt(ue(), 90), end: yn() },
8834
+ dateRange: { start: Tt(he(), 90), end: yn() },
8835
8835
  accounts: s
8836
8836
  }), u().finally());
8837
8837
  }, [r]), o ? /* @__PURE__ */ l(
@@ -8897,7 +8897,7 @@ const Vs = ({ transaction: e }) => {
8897
8897
  d && u(i);
8898
8898
  }, [d]), h.useEffect(() => {
8899
8899
  _.length > 0 && (o({
8900
- dateRange: { start: Tt(ue(), 90), end: yn() },
8900
+ dateRange: { start: Tt(he(), 90), end: yn() },
8901
8901
  accounts: _
8902
8902
  }), s().finally());
8903
8903
  }, [_]), !c || !d ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ t(
@@ -9003,7 +9003,7 @@ const Vs = ({ transaction: e }) => {
9003
9003
  r(n);
9004
9004
  }, [n]), h.useEffect(() => {
9005
9005
  a && (m({
9006
- dateRange: { start: Tt(ue(), 90), end: yn() },
9006
+ dateRange: { start: Tt(he(), 90), end: yn() },
9007
9007
  accounts: o
9008
9008
  }), s().finally());
9009
9009
  }, [a]);
@@ -9134,8 +9134,8 @@ class fr {
9134
9134
  deleteRepeatingTransaction = async (n) => this.fetchInstance.delete(`${G.REPEATING_TRANSACTIONS}/${n}`).then((i) => i);
9135
9135
  }
9136
9136
  const br = (e) => Wa(e.expectedDate, {
9137
- start: tt(ue()),
9138
- end: Je(ue())
9137
+ start: tt(he()),
9138
+ end: Je(he())
9139
9139
  }), ri = (e, n) => e + n.amount;
9140
9140
  class _g {
9141
9141
  globalStore;
@@ -9170,7 +9170,7 @@ class _g {
9170
9170
  */
9171
9171
  get upcomingRecurrences() {
9172
9172
  return this.recurrences.filter(
9173
- (n) => tn(n.expectedDate, Tt(ue(), 3)) && Xe(n.expectedDate, sn(ue(), 30)) && n.status === Qe.Upcoming
9173
+ (n) => tn(n.expectedDate, Tt(he(), 3)) && Xe(n.expectedDate, sn(he(), 30)) && n.status === Qe.Upcoming
9174
9174
  );
9175
9175
  }
9176
9176
  /**
@@ -9211,13 +9211,13 @@ class _g {
9211
9211
  get projectedIncome() {
9212
9212
  return this.upcomingIncome.filter(
9213
9213
  (n) => Wa(n.expectedDate, {
9214
- start: ue(),
9215
- end: sn(ue(), 30)
9214
+ start: he(),
9215
+ end: sn(he(), 30)
9216
9216
  })
9217
9217
  ).reduce((n, i) => n + Math.abs(i.amount), 0);
9218
9218
  }
9219
9219
  get nextIncomeRecurrence() {
9220
- return this.upcomingIncome.find((n) => tn(n.expectedDate, ue()));
9220
+ return this.upcomingIncome.find((n) => tn(n.expectedDate, he()));
9221
9221
  }
9222
9222
  /**
9223
9223
  * Returns the expense recurrences for the current month.
@@ -9548,7 +9548,7 @@ const ug = {
9548
9548
  {
9549
9549
  sx: { backgroundColor: "background.paper", color: e.is_closed ? "grey.700" : "" },
9550
9550
  ...i,
9551
- children: n ? /* @__PURE__ */ t(he, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: g }) : g
9551
+ children: n ? /* @__PURE__ */ t(ge, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: g }) : g
9552
9552
  }
9553
9553
  );
9554
9554
  }, fi = x(bg), yg = ({ remaining: e }) => /* @__PURE__ */ t(
@@ -9744,9 +9744,9 @@ const Eg = ({ recurrence: e }) => /* @__PURE__ */ l(X, { children: [
9744
9744
  }
9745
9745
  ], d = h.useMemo(() => s.map((u) => {
9746
9746
  const _ = a.filter(
9747
- ji(u, { start: ue(), end: sn(ue(), 30) })
9747
+ ji(u, { start: he(), end: sn(he(), 30) })
9748
9748
  ).reduce((C, f) => C + f.amount, 0), g = o.filter(
9749
- ji(u, { start: ue(), end: sn(ue(), 30) })
9749
+ ji(u, { start: he(), end: sn(he(), 30) })
9750
9750
  ).reduce((C, f) => C + f.amount, 0), m = (u.balance || 0) + g - _;
9751
9751
  return {
9752
9752
  account: u,
@@ -10171,11 +10171,11 @@ const Eg = ({ recurrence: e }) => /* @__PURE__ */ l(X, { children: [
10171
10171
  [U, g]
10172
10172
  ), te = !!n.filter(
10173
10173
  (Te) => Te.repeating_transaction_type === nn.Income
10174
- ).length, ge = async () => {
10174
+ ).length, ue = async () => {
10175
10175
  D(2), d(
10176
10176
  // Beginning of the month, 90 days before today
10177
- tt(Tt(ue(), 90)),
10178
- ue()
10177
+ tt(Tt(he(), 90)),
10178
+ he()
10179
10179
  ), _({ ...u, custom: Ci }), D(3);
10180
10180
  }, Re = async () => {
10181
10181
  if (!(k.length < 1)) {
@@ -10217,7 +10217,7 @@ const Eg = ({ recurrence: e }) => /* @__PURE__ */ l(X, { children: [
10217
10217
  sx: {
10218
10218
  ...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
10219
10219
  },
10220
- children: /* @__PURE__ */ t(Og, { handleNextStep: ge })
10220
+ children: /* @__PURE__ */ t(Og, { handleNextStep: ue })
10221
10221
  }
10222
10222
  ),
10223
10223
  M === 2 && /* @__PURE__ */ t(
@@ -10307,7 +10307,7 @@ const Eg = ({ recurrence: e }) => /* @__PURE__ */ l(X, { children: [
10307
10307
  J,
10308
10308
  {
10309
10309
  onClick: () => {
10310
- ee(""), f(!0), ge().finally();
10310
+ ee(""), f(!0), ue().finally();
10311
10311
  },
10312
10312
  variant: "outlined",
10313
10313
  children: a.cancel_button
@@ -10359,7 +10359,7 @@ const Eg = ({ recurrence: e }) => /* @__PURE__ */ l(X, { children: [
10359
10359
  (R) => a.includes(R.guid) && v.includes(R.guid)
10360
10360
  );
10361
10361
  m(w), u({
10362
- dateRange: { start: Tt(ue(), 90), end: yn() },
10362
+ dateRange: { start: Tt(he(), 90), end: yn() },
10363
10363
  accounts: w.map((R) => R.guid)
10364
10364
  });
10365
10365
  }, [d, i]), !E || !b ? /* @__PURE__ */ t(de, {}) : _?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
@@ -10435,7 +10435,7 @@ class CE {
10435
10435
  }
10436
10436
  let Hg = class {
10437
10437
  // Cashflow is hard-coded to display 30 days starting from today
10438
- dateRange = { start: ue(), end: sn(ue(), 30) };
10438
+ dateRange = { start: he(), end: sn(he(), 30) };
10439
10439
  isDirty = !1;
10440
10440
  nextIncome = void 0;
10441
10441
  upcomingExpenses = [];
@@ -10445,7 +10445,7 @@ let Hg = class {
10445
10445
  }
10446
10446
  // Returns the number of days until the next income activity or 0 if there is no income activity
10447
10447
  get daysUntilNextIncome() {
10448
- return this.nextIncome ? Math.abs(Yl(ue(), this.nextIncome.expectedDate)) : 0;
10448
+ return this.nextIncome ? Math.abs(Yl(he(), this.nextIncome.expectedDate)) : 0;
10449
10449
  }
10450
10450
  // Returns the expenses (Activities) until the next income activity or the end of the month
10451
10451
  // if there is no income activity
@@ -12026,8 +12026,8 @@ const Wt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
12026
12026
  );
12027
12027
  }), Bm = ({ onBackClick: e, sx: n }) => {
12028
12028
  const [i, a] = h.useState(!1), [o, r] = h.useState(!1), [s, c] = h.useState(!1), [d, u] = h.useState(""), { isDesktop: _, isMobile: g } = fe(), { debts: m } = I(), { onEvent: C } = Y(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = le(), { setSelectedAccount: S } = Bt(), { selectedDebtPriority: A, setSelectedDebtChartData: v } = un(), { visibleDebtAccounts: w } = Se(), { goalsLoaded: R, loadGoals: B, monthlyCashFlowProfile: M } = nt(), { debts: D } = oa(), k = h.useMemo(() => {
12029
- const ge = M?.extra_payment ?? 0;
12030
- return km(D, A, ge);
12029
+ const ue = M?.extra_payment ?? 0;
12030
+ return km(D, A, ue);
12031
12031
  }, [D, A, M]);
12032
12032
  h.useEffect(() => {
12033
12033
  b(w), C(W.DEBTS_VIEW);
@@ -12036,9 +12036,9 @@ const Wt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
12036
12036
  }, [w]), h.useEffect(() => {
12037
12037
  E && B().finally();
12038
12038
  }, [E]);
12039
- const O = (ge) => u(ge), U = () => {
12040
- const ge = w.find((Oe) => Oe.guid === d), Re = k.find((Oe) => Oe.guid === d);
12041
- ge && S(ge), Re && v(Re), a(!0);
12039
+ const O = (ue) => u(ue), U = () => {
12040
+ const ue = w.find((Oe) => Oe.guid === d), Re = k.find((Oe) => Oe.guid === d);
12041
+ ue && S(ue), Re && v(Re), a(!0);
12042
12042
  }, ee = () => C(W.DEBTS_CLICK_FILTER), _e = () => {
12043
12043
  c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
12044
12044
  }, te = () => {
@@ -12398,7 +12398,7 @@ const Um = (e, n) => {
12398
12398
  await a(c), o(n.alert_goals_reordered), s(!1);
12399
12399
  };
12400
12400
  return /* @__PURE__ */ l(y, { children: [
12401
- /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(he, { onClick: () => s(!0), children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(
12401
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(ge, { onClick: () => s(!0), children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(
12402
12402
  y,
12403
12403
  {
12404
12404
  alignItems: "center",
@@ -12449,7 +12449,7 @@ const Um = (e, n) => {
12449
12449
  ] });
12450
12450
  }, Ym = ({ goal: e, index: n }) => {
12451
12451
  const { goals: i } = I();
12452
- return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { children: [
12452
+ return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { children: [
12453
12453
  e.track_type !== V.RETIREMENT_TRACK && /* @__PURE__ */ t(
12454
12454
  Be,
12455
12455
  {
@@ -12478,7 +12478,7 @@ const Um = (e, n) => {
12478
12478
  ] }) });
12479
12479
  }, jm = ({ goal: e }) => {
12480
12480
  const { goals: n } = I();
12481
- return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { children: [
12481
+ return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { children: [
12482
12482
  /* @__PURE__ */ t(Be, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(Ua, { color: "success", filled: !0, size: 20 }) }),
12483
12483
  /* @__PURE__ */ t(se, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12484
12484
  /* @__PURE__ */ l(y, { children: [
@@ -12620,7 +12620,7 @@ const Um = (e, n) => {
12620
12620
  const { goals: i } = I(), { bgcolor: a, icon: o, label: r, description: s, subTypes: c, type: d } = e, [u, _] = h.useState(!1), g = c.length > 0;
12621
12621
  return /* @__PURE__ */ t(y, { children: /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
12622
12622
  /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
12623
- he,
12623
+ ge,
12624
12624
  {
12625
12625
  onClick: g ? () => _(!u) : () => n(
12626
12626
  d === V.RETIREMENT_TRACK ? i.retirement : "",
@@ -12636,7 +12636,7 @@ const Um = (e, n) => {
12636
12636
  }
12637
12637
  ) }),
12638
12638
  /* @__PURE__ */ t(H, { variant: "inset" }),
12639
- g && /* @__PURE__ */ t(Ti, { in: u, children: /* @__PURE__ */ t(ae, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ l(he, { onClick: () => n(m.label, m.metaType, d), children: [
12639
+ g && /* @__PURE__ */ t(Ti, { in: u, children: /* @__PURE__ */ t(ae, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ l(ge, { onClick: () => n(m.label, m.metaType, d), children: [
12640
12640
  /* @__PURE__ */ t(gt, { sx: { mr: 8 }, children: /* @__PURE__ */ t(ct, { name: m.icon }) }),
12641
12641
  /* @__PURE__ */ t(
12642
12642
  se,
@@ -12672,7 +12672,7 @@ const Um = (e, n) => {
12672
12672
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.white" }, children: [
12673
12673
  /* @__PURE__ */ t(H, { variant: "fullWidth" }),
12674
12674
  e.map((_, g) => /* @__PURE__ */ l(h.Fragment, { children: [
12675
- /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { onClick: () => u(_), children: [
12675
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => u(_), children: [
12676
12676
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
12677
12677
  Ct,
12678
12678
  {
@@ -12748,7 +12748,7 @@ const Um = (e, n) => {
12748
12748
  }, pc = ({ account: e }) => {
12749
12749
  const { accounts: n } = I(), { setSelectedAccount: i } = Bt(), [a, o] = h.useState(!1);
12750
12750
  return /* @__PURE__ */ l(j, { sx: { bgcolor: "background.paper" }, children: [
12751
- /* @__PURE__ */ l(he, { onClick: () => {
12751
+ /* @__PURE__ */ l(ge, { onClick: () => {
12752
12752
  i(e), o(!0);
12753
12753
  }, children: [
12754
12754
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
@@ -12812,7 +12812,7 @@ const Um = (e, n) => {
12812
12812
  d ? s(f) : (await c(f), r(o.alert_account_changed)), _(!1);
12813
12813
  };
12814
12814
  return /* @__PURE__ */ l(y, { children: [
12815
- d && !e.account_guid ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(he, { onClick: () => _(!0), children: [
12815
+ d && !e.account_guid ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ge, { onClick: () => _(!0), children: [
12816
12816
  /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
12817
12817
  /* @__PURE__ */ t(ls, { filled: !0 }),
12818
12818
  o.details_add_account
@@ -12832,7 +12832,7 @@ const Um = (e, n) => {
12832
12832
  ] }),
12833
12833
  /* @__PURE__ */ t(ce, { isOpen: u, onClose: () => _(!1), title: o.details_change_account, children: /* @__PURE__ */ l(y, { children: [
12834
12834
  /* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
12835
- /* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { onClick: () => g(m), children: [
12835
+ /* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => g(m), children: [
12836
12836
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
12837
12837
  Ct,
12838
12838
  {
@@ -12850,7 +12850,7 @@ const Um = (e, n) => {
12850
12850
  /* @__PURE__ */ t(ht, {})
12851
12851
  ] }) }, m.guid)) }),
12852
12852
  /* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
12853
- /* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { onClick: () => g(m), children: [
12853
+ /* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => g(m), children: [
12854
12854
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
12855
12855
  Ct,
12856
12856
  {
@@ -13001,7 +13001,7 @@ const Um = (e, n) => {
13001
13001
  /* @__PURE__ */ t(pc, { account: b }),
13002
13002
  /* @__PURE__ */ t(H, {})
13003
13003
  ] }, b.guid)),
13004
- /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(he, { onClick: () => g(!0), children: [
13004
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ge, { onClick: () => g(!0), children: [
13005
13005
  /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
13006
13006
  /* @__PURE__ */ t(ls, { filled: !0 }),
13007
13007
  n.details_add_account
@@ -13151,10 +13151,10 @@ const Um = (e, n) => {
13151
13151
  i(W.GOALS_CLICK_FILTER);
13152
13152
  }, ee = () => {
13153
13153
  w(!0), i(W.GOALS_CLICK_ADD);
13154
- }, _e = (ge) => {
13155
- w(!1), ge === V.SAVINGS_TRACK ? A(0) : ge === V.DEBT_TRACK ? A(1) : ge === V.RETIREMENT_TRACK && A(2);
13154
+ }, _e = (ue) => {
13155
+ w(!1), ue === V.SAVINGS_TRACK ? A(0) : ue === V.DEBT_TRACK ? A(1) : ue === V.RETIREMENT_TRACK && A(2);
13156
13156
  }, te = h.useMemo(
13157
- () => m && (g.length === 0 || g.every(({ track_type: ge }) => !ge) && b.length === 0),
13157
+ () => m && (g.length === 0 || g.every(({ track_type: ue }) => !ue) && b.length === 0),
13158
13158
  [g, m, b]
13159
13159
  );
13160
13160
  return !m || !r || !s ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
@@ -13177,7 +13177,7 @@ const Um = (e, n) => {
13177
13177
  /* @__PURE__ */ l(
13178
13178
  Zt,
13179
13179
  {
13180
- onChange: (ge, Re) => A(Re),
13180
+ onChange: (ue, Re) => A(Re),
13181
13181
  sx: { bgcolor: "background.paper" },
13182
13182
  textColor: "primary",
13183
13183
  value: te ? !1 : S,
@@ -14106,7 +14106,7 @@ const vp = /^[ a-zA-ZÀ-ÿ0-9]+$/, wp = 50, Nr = 65, Np = ({
14106
14106
  sx: { transform: `translateY(${C.start}px)` },
14107
14107
  width: "100%",
14108
14108
  children: [
14109
- /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(he, { onClick: () => u(f.guid), children: [
14109
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { onClick: () => u(f.guid), children: [
14110
14110
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(on, { categoryGuid: "", merchantGuid: f.guid }) }),
14111
14111
  /* @__PURE__ */ t(se, { primary: f.name })
14112
14112
  ] }) }),
@@ -14210,7 +14210,7 @@ const Rp = ({
14210
14210
  "&:hover": { color: a ? "inherit" : c.color }
14211
14211
  },
14212
14212
  children: /* @__PURE__ */ t(
14213
- he,
14213
+ ge,
14214
14214
  {
14215
14215
  onClick: (u) => o?.(u, e.x),
14216
14216
  onMouseEnter: () => r(e.x),
@@ -14536,7 +14536,7 @@ const jp = ({ amount: e, copy: n, trendValue: i }) => {
14536
14536
  }, Ii = x(Zp), qp = ({ accounts: e, name: n, icon: i }) => {
14537
14537
  const [a, o] = h.useState(!1);
14538
14538
  return /* @__PURE__ */ l(X, { children: [
14539
- /* @__PURE__ */ t(j, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ l(he, { onClick: () => o(!a), children: [
14539
+ /* @__PURE__ */ t(j, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ l(ge, { onClick: () => o(!a), children: [
14540
14540
  i && /* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t($, { name: i, size: 24, sx: { mr: 12 } }) }),
14541
14541
  /* @__PURE__ */ t(
14542
14542
  se,
@@ -14719,7 +14719,7 @@ const jp = ({ amount: e, copy: n, trendValue: i }) => {
14719
14719
  }, [R]);
14720
14720
  const te = (Q, ne) => {
14721
14721
  b(ne), Q.currentTarget instanceof HTMLDivElement && D(!0);
14722
- }, ge = (Q) => {
14722
+ }, ue = (Q) => {
14723
14723
  E(Q);
14724
14724
  }, Re = () => {
14725
14725
  E(null);
@@ -14733,7 +14733,7 @@ const jp = ({ amount: e, copy: n, trendValue: i }) => {
14733
14733
  hoveredData: _,
14734
14734
  onButtonClick: Oe,
14735
14735
  onDataClick: te,
14736
- onMouseEnter: ge,
14736
+ onMouseEnter: ue,
14737
14737
  onMouseLeave: Re,
14738
14738
  selectedData: f
14739
14739
  }, At = () => {
@@ -16021,7 +16021,7 @@ const p1 = x(() => {
16021
16021
  }), xo = x(
16022
16022
  ({ onClick: e, primaryText: n, secondaryText: i, sx: a }) => {
16023
16023
  const o = Ce();
16024
- return /* @__PURE__ */ t(j, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(he, { alignItems: "flex-start", onClick: e, sx: a, children: [
16024
+ return /* @__PURE__ */ t(j, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(ge, { alignItems: "flex-start", onClick: e, sx: a, children: [
16025
16025
  /* @__PURE__ */ t(se, { primary: n, secondary: i }),
16026
16026
  /* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(Jc, {}) })
16027
16027
  ] }) });
@@ -16645,7 +16645,7 @@ const p1 = x(() => {
16645
16645
  p: 0
16646
16646
  },
16647
16647
  children: /* @__PURE__ */ t(ae, { disablePadding: !0, children: b.map(({ label: w, topicKey: R }) => /* @__PURE__ */ t(
16648
- he,
16648
+ ge,
16649
16649
  {
16650
16650
  "aria-label": w,
16651
16651
  divider: !0,
@@ -19231,7 +19231,7 @@ const p1 = x(() => {
19231
19231
  p: 0
19232
19232
  },
19233
19233
  children: /* @__PURE__ */ t(ae, { sx: { "& .MuiListItemButton-root": { pl: 6 } }, children: r.map(({ label: d, type: u }, _) => /* @__PURE__ */ t(
19234
- he,
19234
+ ge,
19235
19235
  {
19236
19236
  divider: !0,
19237
19237
  onClick: () => n(d, u),
@@ -19350,7 +19350,7 @@ const p1 = x(() => {
19350
19350
  subtitle: i,
19351
19351
  guid: a,
19352
19352
  sx: o
19353
- }) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(he, { "aria-label": e, onClick: n, children: [
19353
+ }) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { "aria-label": e, onClick: n, children: [
19354
19354
  a && /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Ct, { alt: e, institutionGuid: a || "", size: 32 }) }),
19355
19355
  /* @__PURE__ */ t(
19356
19356
  se,
@@ -20126,7 +20126,7 @@ const Ta = ({
20126
20126
  primaryText: a,
20127
20127
  secondaryText: o
20128
20128
  }) => /* @__PURE__ */ l(X, { children: [
20129
- /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(he, { onClick: i, children: [
20129
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ge, { onClick: i, children: [
20130
20130
  /* @__PURE__ */ t(se, { primary: a, secondary: o }),
20131
20131
  e
20132
20132
  ] }) }),
@@ -20428,7 +20428,7 @@ const Ta = ({
20428
20428
  /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
20429
20429
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(xn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
20430
20430
  /* @__PURE__ */ t(se, { primary: c.mainMessage, secondary: c.secondaryMessage })
20431
- ] }) : /* @__PURE__ */ l(he, { onClick: () => n(!0), children: [
20431
+ ] }) : /* @__PURE__ */ l(ge, { onClick: () => n(!0), children: [
20432
20432
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(xn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
20433
20433
  /* @__PURE__ */ t(
20434
20434
  se,
@@ -20445,7 +20445,7 @@ const Ta = ({
20445
20445
  ] }) }),
20446
20446
  /* @__PURE__ */ t(H, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
20447
20447
  !a.is_manual && a.institution_url && /* @__PURE__ */ l(X, { children: [
20448
- /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(he, { component: "a", href: a.institution_url, target: "_blank", children: [
20448
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ge, { component: "a", href: a.institution_url, target: "_blank", children: [
20449
20449
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
20450
20450
  xn,
20451
20451
  {
@@ -20593,7 +20593,7 @@ const Ta = ({
20593
20593
  );
20594
20594
  return /* @__PURE__ */ t(h.Fragment, { children: r ? /* @__PURE__ */ l(X, { children: [
20595
20595
  /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
20596
- he,
20596
+ ge,
20597
20597
  {
20598
20598
  onClick: () => {
20599
20599
  u(g), c(!0), g?.event && n(g.event, { account_guid: i.guid });
@@ -22164,7 +22164,7 @@ const of = ({
22164
22164
  return `${r} - ${s}`;
22165
22165
  }, [n, i]);
22166
22166
  return /* @__PURE__ */ l(h.Fragment, { children: [
22167
- /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { children: [
22167
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { children: [
22168
22168
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Mt, { categoryGuid: e.guid, variant: "filled" }) }),
22169
22169
  /* @__PURE__ */ t(se, { primary: e.name, secondary: a })
22170
22170
  ] }) }),
@@ -22227,7 +22227,7 @@ const of = ({
22227
22227
  `${e.totalAmount === 0 ? "" : e.totalAmount}`
22228
22228
  );
22229
22229
  return /* @__PURE__ */ l(h.Fragment, { children: [
22230
- /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { onClick: () => r(!0), children: [
22230
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => r(!0), children: [
22231
22231
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Mt, { categoryGuid: e.guid }) }),
22232
22232
  /* @__PURE__ */ t(
22233
22233
  se,
@@ -22302,7 +22302,7 @@ const of = ({
22302
22302
  percentage: o,
22303
22303
  transaction_total: r
22304
22304
  } = e, { setSelectedSubBudget: s } = dt();
22305
- return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { onClick: () => s(e), children: [
22305
+ return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => s(e), children: [
22306
22306
  /* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(oo, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Mt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
22307
22307
  /* @__PURE__ */ t(
22308
22308
  se,
@@ -22329,7 +22329,7 @@ const of = ({
22329
22329
  C && Number(g) > 0 && (await s(C, Number(g), n.guid), _(!1), d(!1), f(void 0));
22330
22330
  };
22331
22331
  return /* @__PURE__ */ l(L, { children: [
22332
- /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(he, { onClick: E, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
22332
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ge, { onClick: E, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
22333
22333
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
22334
22334
  /* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
22335
22335
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
@@ -22589,7 +22589,7 @@ const of = ({
22589
22589
  subBudgets: d,
22590
22590
  transaction_total: u
22591
22591
  } = e;
22592
- return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(he, { onClick: () => n?.(e), children: [
22592
+ return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => n?.(e), children: [
22593
22593
  /* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(oo, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Mt, { categoryGuid: r, variant: "basic" }) }) }),
22594
22594
  /* @__PURE__ */ t(
22595
22595
  se,
@@ -22729,7 +22729,7 @@ const of = ({
22729
22729
  a(W.BUDGETS_CLICK_FILTER);
22730
22730
  }, te = () => {
22731
22731
  U(!0), a(W.BUDGETS_CLICK_ADD);
22732
- }, ge = () => {
22732
+ }, ue = () => {
22733
22733
  U(!1);
22734
22734
  }, Re = tn(C.end, tt(/* @__PURE__ */ new Date()));
22735
22735
  return !c || !d || !f ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
@@ -22792,7 +22792,7 @@ const of = ({
22792
22792
  isOpen: O,
22793
22793
  onClose: () => U(!1),
22794
22794
  title: r.add_new_title,
22795
- children: /* @__PURE__ */ t(hf, { onRecalculateBudgets: ge })
22795
+ children: /* @__PURE__ */ t(hf, { onRecalculateBudgets: ue })
22796
22796
  }
22797
22797
  ),
22798
22798
  /* @__PURE__ */ t(
@@ -23207,7 +23207,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23207
23207
  minHeight: 44
23208
23208
  },
23209
23209
  children: /* @__PURE__ */ l(
23210
- he,
23210
+ ge,
23211
23211
  {
23212
23212
  "aria-expanded": i === S.guid,
23213
23213
  onClick: () => n(S.guid),
@@ -24147,9 +24147,9 @@ const wf = ({ widgets: e, isLoading: n }) => {
24147
24147
  ...qe,
24148
24148
  [Q]: Ke
24149
24149
  }));
24150
- }, { visibleHoldings: _e } = Gn(), { visibleInvestmentAccounts: te } = Se(), ge = te.filter(
24150
+ }, { visibleHoldings: _e } = Gn(), { visibleInvestmentAccounts: te } = Se(), ue = te.filter(
24151
24151
  ({ guid: Q }) => r.includes(Q)
24152
- ), Re = ge.reduce((Q, ne) => Q + (ne.balance || 0), 0), Oe = ge.map(({ guid: Q }) => Q), Le = _e.filter(
24152
+ ), Re = ue.reduce((Q, ne) => Q + (ne.balance || 0), 0), Oe = ue.map(({ guid: Q }) => Q), Le = _e.filter(
24153
24153
  ({ account_guid: Q }) => Oe.includes(Q)
24154
24154
  ).reduce((Q, ne) => {
24155
24155
  const Ke = ne.market_value ? ne.market_value - (ne.cost_basis || 0) : 0;
@@ -24158,7 +24158,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24158
24158
  o(!1);
24159
24159
  };
24160
24160
  return f ? /* @__PURE__ */ l(Ne, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
24161
- !!ge.length && /* @__PURE__ */ l(Ne, { sx: { alignItems: "center" }, children: [
24161
+ !!ue.length && /* @__PURE__ */ l(Ne, { sx: { alignItems: "center" }, children: [
24162
24162
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, children: C.overview.total_portfolio }),
24163
24163
  /* @__PURE__ */ t(jt, { children: Re.toLocaleString("en-US", {
24164
24164
  currency: "USD",
@@ -24190,7 +24190,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24190
24190
  )
24191
24191
  ] })
24192
24192
  ] }),
24193
- ge.map((Q) => {
24193
+ ue.map((Q) => {
24194
24194
  const ne = _e.filter((_t) => _t.account_guid === Q.guid).map((_t) => ({
24195
24195
  id: _t.guid,
24196
24196
  qty: _t.shares || 0,
@@ -26080,8 +26080,8 @@ const vi = h.createContext(null), t0 = ({
26080
26080
  onTouchStart: O,
26081
26081
  ref: m,
26082
26082
  children: [
26083
- e.map((te, ge) => {
26084
- const Re = ge + 1, Oe = e.length + 1, Te = T(
26083
+ e.map((te, ue) => {
26084
+ const Re = ue + 1, Oe = e.length + 1, Te = T(
26085
26085
  v.card_position_in_carousel_aria,
26086
26086
  Re.toString(),
26087
26087
  Oe.toString()
@@ -26091,12 +26091,12 @@ const vi = h.createContext(null), t0 = ({
26091
26091
  {
26092
26092
  ariaLabel: `${Te}: ${Q}, ${ne}`,
26093
26093
  beat: te,
26094
- index: ge,
26095
- isActiveCard: ge === ee,
26094
+ index: ue,
26095
+ isActiveCard: ue === ee,
26096
26096
  onCardClick: o,
26097
26097
  ...U
26098
26098
  },
26099
- `${te.guid} ${ge}`
26099
+ `${te.guid} ${ue}`
26100
26100
  );
26101
26101
  }),
26102
26102
  /* @__PURE__ */ t(
@@ -26754,7 +26754,7 @@ const vi = h.createContext(null), t0 = ({
26754
26754
  minHeight: 44
26755
26755
  },
26756
26756
  children: /* @__PURE__ */ l(
26757
- he,
26757
+ ge,
26758
26758
  {
26759
26759
  "aria-expanded": r?.guid === s.guid,
26760
26760
  onClick: () => n(s.guid),
@@ -26989,7 +26989,7 @@ const vi = h.createContext(null), t0 = ({
26989
26989
  h.useEffect(() => {
26990
26990
  c(i);
26991
26991
  }, [i]), h.useEffect(() => {
26992
- s(tt(ue()), Je(ue())), _(!0), d(W.SPENDING_VIEW);
26992
+ s(tt(he()), Je(he())), _(!0), d(W.SPENDING_VIEW);
26993
26993
  }, []);
26994
26994
  const g = (m) => {
26995
26995
  s(m[0], m[1]);
@@ -27221,7 +27221,7 @@ const F0 = (e) => e.reduce((i, a) => {
27221
27221
  return `${ne} - ${Ke}`;
27222
27222
  }, [O, s]), te = (ne, Ke) => {
27223
27223
  M(Ke ?? B), a(W.TRENDS_CLICK_TOGGLE);
27224
- }, ge = (ne) => {
27224
+ }, ue = (ne) => {
27225
27225
  const Ke = Uo(ne?.[0], 1), qe = ne?.[1], K = Dd(qe, Ke);
27226
27226
  U({ start: Ke, end: qe }), a(W.TRENDS_CLICK_DATE, {
27227
27227
  time_period: K + "M"
@@ -27243,7 +27243,7 @@ const F0 = (e) => e.reduce((i, a) => {
27243
27243
  bt,
27244
27244
  {
27245
27245
  accountOptions: c,
27246
- calendarActions: { onRangeChanged: ge },
27246
+ calendarActions: { onRangeChanged: ue },
27247
27247
  dateRange: O,
27248
27248
  dateRangeVariant: "timeframebuttons",
27249
27249
  onAccountsFilterClick: Re,