@mx-cartographer/experiences 6.26.3-alpha.sms3 → 6.26.3-alpha.sms5

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
@@ -5,7 +5,7 @@ import O from "@mui/material/Box";
5
5
  import P from "@mui/material/Divider";
6
6
  import oe from "@mui/material/List";
7
7
  import Ft from "@mui/material/ListSubheader";
8
- import Le from "@mui/system/Stack";
8
+ import Me from "@mui/system/Stack";
9
9
  import { AccountsIcon as Hl, P as ie, Icon as V, useTokens as At, Text as f, H2 as gn, CategoryIcon as Rt, DialogHeader as Pl, DialogFooter as Fl, Drawer as Wl, Footer as Ul, DateRangePicker as ar, H3 as at, H1 as Zt, TextField as Rn, IconWeight as xt, MerchantLogo as Qt, CategoryIconList as Vl, CategoryIconVariants as Rs, InstitutionLogo as Et, ChevronRightIcon as Os, THEMES as or } from "@mxenabled/mxui";
10
10
  import Kl from "bowser";
11
11
  import { getUnixTime as Fe } from "date-fns/getUnixTime";
@@ -1314,7 +1314,7 @@ const Ha = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1314
1314
  if (!n)
1315
1315
  throw new Error(`${e}() must be used within the GlobalDataContext`);
1316
1316
  return n;
1317
- }, ye = () => tt("useAccountStore").globalStore.accountStore, It = () => tt("useAppConfig").globalStore.appDataStore.appConfig, Io = () => tt("useAnalyticsStore").globalStore.analyticsStore, _t = () => tt("useBudgetsStore").globalStore.budgetsStore, wo = () => tt("useCashflowStore").globalStore.cashflowStore, Ue = () => tt("useCategoryStore").globalStore.categoryStore, hc = () => tt("useConnectStore").globalStore.connectStore, ya = () => tt("useDebtsStore").globalStore.debtsStore, Ea = () => tt("useFinstrongStore").globalStore.finstrongStore, hi = () => tt("useGlobalStore").globalStore, ue = () => tt("useGlobalUiStore").globalStore.globalUiStore, T = () => tt("globalCopyStore").globalStore.copyStore.copy, dt = () => tt("useGoalStore").globalStore.goalStore, vo = () => tt("useHelpStore").globalStore.helpStore, Xn = () => tt("useHoldingStore").globalStore.holdingStore, ju = () => tt("useMerchantStore").globalStore.merchantStore, gc = () => tt("useNetWorthStore").globalStore.netWorthStore, mc = () => tt("useNotificationStore").globalStore.notificationStore, ot = () => tt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, bt = () => tt("useSettingsStore").globalStore.settingsStore, Me = () => tt("useTransactionStore").globalStore.transactionStore, gi = () => tt("useTrendsStore").globalStore.trendsStore, Ct = () => tt("useUserStore").globalStore.userStore, X = () => ({ onEvent: tt().onEvent }), N2 = () => ({ onPageView: tt().onPageView }), $u = (e = "useWidgetContainerContext") => {
1317
+ }, ye = () => tt("useAccountStore").globalStore.accountStore, It = () => tt("useAppConfig").globalStore.appDataStore.appConfig, Io = () => tt("useAnalyticsStore").globalStore.analyticsStore, _t = () => tt("useBudgetsStore").globalStore.budgetsStore, wo = () => tt("useCashflowStore").globalStore.cashflowStore, Ue = () => tt("useCategoryStore").globalStore.categoryStore, hc = () => tt("useConnectStore").globalStore.connectStore, ya = () => tt("useDebtsStore").globalStore.debtsStore, Ea = () => tt("useFinstrongStore").globalStore.finstrongStore, hi = () => tt("useGlobalStore").globalStore, ue = () => tt("useGlobalUiStore").globalStore.globalUiStore, T = () => tt("globalCopyStore").globalStore.copyStore.copy, dt = () => tt("useGoalStore").globalStore.goalStore, vo = () => tt("useHelpStore").globalStore.helpStore, Xn = () => tt("useHoldingStore").globalStore.holdingStore, ju = () => tt("useMerchantStore").globalStore.merchantStore, gc = () => tt("useNetWorthStore").globalStore.netWorthStore, mc = () => tt("useNotificationStore").globalStore.notificationStore, ot = () => tt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, bt = () => tt("useSettingsStore").globalStore.settingsStore, Le = () => tt("useTransactionStore").globalStore.transactionStore, gi = () => tt("useTrendsStore").globalStore.trendsStore, Ct = () => tt("useUserStore").globalStore.userStore, X = () => ({ onEvent: tt().onEvent }), N2 = () => ({ onPageView: tt().onPageView }), $u = (e = "useWidgetContainerContext") => {
1318
1318
  const n = g.useContext(_c);
1319
1319
  if (!n)
1320
1320
  throw new Error(`${e}() must be used within the WidgetContainerContext`);
@@ -5598,7 +5598,7 @@ class Dh {
5598
5598
  });
5599
5599
  };
5600
5600
  get sortedTransactions() {
5601
- return Eh(
5601
+ return console.log("sortedTransactions", this.rawTransactions), Eh(
5602
5602
  this.filter,
5603
5603
  this.uiStore.expandedSplits,
5604
5604
  this.sortColumn,
@@ -5768,7 +5768,7 @@ class Dh {
5768
5768
  const Ot = () => {
5769
5769
  if (!g.useContext(ti))
5770
5770
  throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
5771
- return Me().uiStore;
5771
+ return Le().uiStore;
5772
5772
  };
5773
5773
  function Nh() {
5774
5774
  return window.opener && window.opener.location ? window.opener.location.toString() : document.referrer;
@@ -5785,7 +5785,7 @@ function Oh(e) {
5785
5785
  });
5786
5786
  }
5787
5787
  const Lh = ({ transaction: e, onClick: n }) => {
5788
- const { associatedBeats: i } = Me(), { transactions: a } = T(), { showInsights: o } = Ot(), r = e.transaction_type === jt.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
5788
+ const { associatedBeats: i } = Le(), { transactions: a } = T(), { showInsights: o } = Ot(), r = e.transaction_type === jt.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
5789
5789
  return (
5790
5790
  //TODO: implement common/components/ListItemRow.tsx
5791
5791
  /* @__PURE__ */ l(
@@ -5877,52 +5877,54 @@ const Lh = ({ transaction: e, onClick: n }) => {
5877
5877
  width: c = "100%",
5878
5878
  zeroState: d = /* @__PURE__ */ t(kh, {})
5879
5879
  }) => {
5880
- const { isLoading: _, sortedTransactions: u } = Me(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, s]), { clearExpandedSplits: m, setShowInsights: p, toggleSplit: C } = Ot(), { onEvent: E } = X(), y = (v) => {
5881
- const w = h.find((N) => N.guid === v);
5882
- if (w?.has_been_split) {
5883
- C(w.guid);
5880
+ const { isLoading: _, sortedTransactions: u } = Le(), h = Le();
5881
+ console.log("exp tStore", h);
5882
+ const m = g.useMemo(() => s ? u : u.filter((w) => !w.is_hidden), [u, _, s]), { clearExpandedSplits: p, setShowInsights: C, toggleSplit: E } = Ot(), { onEvent: y } = X(), S = (w) => {
5883
+ const N = m.find((R) => R.guid === w);
5884
+ if (N?.has_been_split) {
5885
+ E(N.guid);
5884
5886
  return;
5885
5887
  }
5886
- E(F.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5887
- account_guid: w?.account_guid,
5888
- transaction_guid: v
5889
- }), a?.(v);
5890
- }, S = g.useRef(null), I = $s({
5891
- count: h.length,
5892
- getScrollElement: () => S.current,
5893
- estimateSize: (v) => kr + (Mr(v, h) ? Gr : 0),
5888
+ y(F.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5889
+ account_guid: N?.account_guid,
5890
+ transaction_guid: w
5891
+ }), a?.(w);
5892
+ }, I = g.useRef(null), v = $s({
5893
+ count: m.length,
5894
+ getScrollElement: () => I.current,
5895
+ estimateSize: (w) => kr + (Mr(w, m) ? Gr : 0),
5894
5896
  overscan: 5
5895
5897
  });
5896
- return g.useEffect(() => I.measure(), [h]), g.useEffect(() => p(o), [o]), g.useEffect(() => () => m(), []), console.log("exp transactions", h), /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(O, { height: n, overflow: "auto", ref: S, width: c, children: /* @__PURE__ */ l(
5898
+ return g.useEffect(() => v.measure(), [m]), g.useEffect(() => C(o), [o]), g.useEffect(() => () => p(), []), console.log("exp transactions", m), /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(O, { height: n, overflow: "auto", ref: I, width: c, children: /* @__PURE__ */ l(
5897
5899
  O,
5898
5900
  {
5899
5901
  height: (
5900
5902
  // set the height to auto when there are no transactions so the zero state isn't set to 0
5901
- I.getVirtualItems().length === 0 ? "auto" : I.getTotalSize()
5903
+ v.getVirtualItems().length === 0 ? "auto" : v.getTotalSize()
5902
5904
  ),
5903
5905
  position: "relative",
5904
5906
  width: "100%",
5905
5907
  children: [
5906
5908
  (_ || r) && i,
5907
- !_ && !r && I.getVirtualItems().length === 0 && d,
5908
- !_ && !r && I.getVirtualItems().length > 0 && I.getVirtualItems().map((v) => {
5909
- const w = h[v.index], N = Mr(v.index, h), R = Gh(v.index, h), M = kr + (N ? Gr : 0);
5909
+ !_ && !r && v.getVirtualItems().length === 0 && d,
5910
+ !_ && !r && v.getVirtualItems().length > 0 && v.getVirtualItems().map((w) => {
5911
+ const N = m[w.index], R = Mr(w.index, m), M = Gh(w.index, m), k = kr + (R ? Gr : 0);
5910
5912
  return /* @__PURE__ */ l(
5911
5913
  O,
5912
5914
  {
5913
5915
  sx: {
5914
- height: M,
5916
+ height: k,
5915
5917
  position: "absolute",
5916
- transform: `translateY(${v.start}px)`,
5918
+ transform: `translateY(${w.start}px)`,
5917
5919
  width: "100%"
5918
5920
  },
5919
5921
  children: [
5920
- N && /* @__PURE__ */ t(Ta, { bgcolor: e, children: ba(w.date) }),
5921
- /* @__PURE__ */ t(Mo, { onClick: y, transaction: w }),
5922
- /* @__PURE__ */ t(P, { sx: { ml: R ? 24 : 0 } })
5922
+ R && /* @__PURE__ */ t(Ta, { bgcolor: e, children: ba(N.date) }),
5923
+ /* @__PURE__ */ t(Mo, { onClick: S, transaction: N }),
5924
+ /* @__PURE__ */ t(P, { sx: { ml: M ? 24 : 0 } })
5923
5925
  ]
5924
5926
  },
5925
- w.guid
5927
+ N.guid
5926
5928
  );
5927
5929
  })
5928
5930
  ]
@@ -5932,7 +5934,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
5932
5934
  `${e.row.account}`,
5933
5935
  e.row.number && ` | ${e.row.number}`
5934
5936
  ] }), Ph = (e) => {
5935
- const { associatedBeats: n } = Me(), { showInsights: i } = Ot(), { amount: a, transaction_type: o } = e.row, r = n.find((c) => c.associated_transaction_guid === e.row.guid), s = o === jt.CREDIT;
5937
+ const { associatedBeats: n } = Le(), { showInsights: i } = Ot(), { amount: a, transaction_type: o } = e.row, r = n.find((c) => c.associated_transaction_guid === e.row.guid), s = o === jt.CREDIT;
5936
5938
  return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
5937
5939
  /* @__PURE__ */ l(f, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
5938
5940
  s ? "+" : "",
@@ -6001,7 +6003,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
6001
6003
  onCategoryClick: n,
6002
6004
  onRowClick: i
6003
6005
  }) => {
6004
- const { transactions: a } = T(), { isCopyLoaded: o } = ue(), { isLoading: r, sortedTransactions: s } = Me(), { clearExpandedSplits: c, toggleSplit: d } = Ot();
6006
+ const { transactions: a } = T(), { isCopyLoaded: o } = ue(), { isLoading: r, sortedTransactions: s } = Le(), { clearExpandedSplits: c, toggleSplit: d } = Ot();
6005
6007
  g.useEffect(() => () => c(), []);
6006
6008
  const _ = g.useMemo(
6007
6009
  () => s.map((m) => ({
@@ -6651,7 +6653,7 @@ class gg {
6651
6653
  getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? fa[n];
6652
6654
  }
6653
6655
  const wc = ({ transaction: e }) => {
6654
- const { addOrUpdateTransactionRule: n, updateTransaction: i } = Me(), { categories: a } = Ue(), { onEvent: o } = X(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = Ot(), { transactions: c } = T(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6656
+ const { addOrUpdateTransactionRule: n, updateTransaction: i } = Le(), { categories: a } = Ue(), { onEvent: o } = X(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = Ot(), { transactions: c } = T(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6655
6657
  await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(F.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6656
6658
  transaction_guid: e.guid
6657
6659
  });
@@ -6736,7 +6738,7 @@ const wc = ({ transaction: e }) => {
6736
6738
  )
6737
6739
  ] });
6738
6740
  }, vc = ({ transaction: e }) => {
6739
- const n = At(), { onEvent: i } = X(), { updateTransaction: a } = Me(), { updateManualTransaction: o } = Ot(), { common: r, transactions: s } = T(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (p) => {
6741
+ const n = At(), { onEvent: i } = X(), { updateTransaction: a } = Le(), { updateManualTransaction: o } = Ot(), { common: r, transactions: s } = T(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (p) => {
6740
6742
  u(Fe(p));
6741
6743
  }, m = async () => {
6742
6744
  if (e.is_manual && !e.guid) {
@@ -6793,7 +6795,7 @@ const wc = ({ transaction: e }) => {
6793
6795
  )
6794
6796
  ] });
6795
6797
  }, mg = ({ transaction: e }) => {
6796
- const { onEvent: n } = X(), { removeTransaction: i } = Me(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), d = async () => {
6798
+ const { onEvent: n } = X(), { removeTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), d = async () => {
6797
6799
  await i(e.guid), n(q.ON_TRANSACTION_DELETE_DELETED);
6798
6800
  };
6799
6801
  return /* @__PURE__ */ l(O, { className: "mx-txn-delete", children: [
@@ -6833,7 +6835,7 @@ const wc = ({ transaction: e }) => {
6833
6835
  )
6834
6836
  ] });
6835
6837
  }, pg = x(mg), Cg = ({ transaction: e }) => {
6836
- const { onEvent: n } = X(), { updateTransaction: i } = Me(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), d = async () => {
6838
+ const { onEvent: n } = X(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), d = async () => {
6837
6839
  await i({ ...e, merchant_guid: "" }), n(F.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
6838
6840
  transaction_guid: e.guid
6839
6841
  });
@@ -6873,7 +6875,7 @@ const wc = ({ transaction: e }) => {
6873
6875
  )
6874
6876
  ] });
6875
6877
  }, fg = x(Cg), bg = ({ transaction: e }) => {
6876
- const { onEvent: n } = X(), { updateTransaction: i } = Me(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
6878
+ const { onEvent: n } = X(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
6877
6879
  await i({ ...e, is_hidden: !e.is_hidden }), n(
6878
6880
  d ? q.ON_TRANSACTION_UNHIDDEN : q.ON_TRANSACTION_HIDDEN
6879
6881
  );
@@ -6962,7 +6964,7 @@ const wc = ({ transaction: e }) => {
6962
6964
  ] })
6963
6965
  ] });
6964
6966
  }, Eg = ({ transaction: e }) => {
6965
- const { onEvent: n } = X(), { updateTransaction: i } = Me(), { updateManualTransaction: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), [d, _] = g.useState("");
6967
+ const { onEvent: n } = X(), { updateTransaction: i } = Le(), { updateManualTransaction: a } = Ot(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), [d, _] = g.useState("");
6966
6968
  g.useEffect(() => {
6967
6969
  s && _(e.memo ? e.memo : "");
6968
6970
  }, [s]);
@@ -7189,7 +7191,7 @@ const wc = ({ transaction: e }) => {
7189
7191
  ) })
7190
7192
  ] });
7191
7193
  }, xg = x(Tg), Ig = ({ transaction: e }) => {
7192
- const { onEvent: n } = X(), { splitTransaction: i, unSplitTransaction: a } = Me(), { common: o, transactions: r } = T(), { setShouldDisableDrawerScroll: s } = Ot(), { categories: c } = Ue(), d = {
7194
+ const { onEvent: n } = X(), { splitTransaction: i, unSplitTransaction: a } = Le(), { common: o, transactions: r } = T(), { setShouldDisableDrawerScroll: s } = Ot(), { categories: c } = Ue(), d = {
7193
7195
  ...e,
7194
7196
  amount: e.amount - 1,
7195
7197
  guid: "",
@@ -7309,7 +7311,7 @@ const wc = ({ transaction: e }) => {
7309
7311
  )
7310
7312
  ] });
7311
7313
  }, wg = x(Ig), vg = () => {
7312
- const e = Se(), { onEvent: n } = X(), { addTag: i } = Me(), { transactions: a } = T(), [o, r] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
7314
+ const e = Se(), { onEvent: n } = X(), { addTag: i } = Le(), { transactions: a } = T(), [o, r] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
7313
7315
  g.useEffect(() => {
7314
7316
  o && u?.current?.focus();
7315
7317
  }, [o]);
@@ -7396,7 +7398,7 @@ const wc = ({ transaction: e }) => {
7396
7398
  }
7397
7399
  ) });
7398
7400
  }, Rg = x(Ng), Og = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
7399
- const { onEvent: a } = X(), { removeTag: o, updateTag: r } = Me(), { common: s, transactions: c } = T(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, p] = g.useState(""), [C, E] = g.useState(""), y = async () => {
7401
+ const { onEvent: a } = X(), { removeTag: o, updateTag: r } = Le(), { common: s, transactions: c } = T(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, p] = g.useState(""), [C, E] = g.useState(""), y = async () => {
7400
7402
  a(q.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), _(!1);
7401
7403
  }, S = async () => {
7402
7404
  a(q.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
@@ -7490,7 +7492,7 @@ const wc = ({ transaction: e }) => {
7490
7492
  }
7491
7493
  );
7492
7494
  }, Lg = x(Og), Mg = ({ selectedTags: e, onTagChecked: n }) => {
7493
- const { tags: i } = Me(), [a, o] = g.useState(""), r = i.filter(
7495
+ const { tags: i } = Le(), [a, o] = g.useState(""), r = i.filter(
7494
7496
  (s) => s.name.toLowerCase().includes(a.toLowerCase())
7495
7497
  );
7496
7498
  return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
@@ -7508,7 +7510,7 @@ const wc = ({ transaction: e }) => {
7508
7510
  ] }, s.guid)) }) })
7509
7511
  ] });
7510
7512
  }, kg = x(Mg), Gg = ({ transaction: e }) => {
7511
- const { onEvent: n } = X(), { tags: i, updateTaggings: a, updateTransaction: o } = Me(), { common: r, transactions: s } = T(), { updateManualTransaction: c } = Ot(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
7513
+ const { onEvent: n } = X(), { tags: i, updateTaggings: a, updateTransaction: o } = Le(), { common: r, transactions: s } = T(), { updateManualTransaction: c } = Ot(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
7512
7514
  g.useEffect(() => {
7513
7515
  h(e.tags);
7514
7516
  }, [d, e]);
@@ -7563,7 +7565,7 @@ const wc = ({ transaction: e }) => {
7563
7565
  )
7564
7566
  ] });
7565
7567
  }, Rc = x(Gg), Bg = ({ transaction: e }) => {
7566
- const { updateTransaction: n } = Me(), { common: i, transactions: a } = T(), { onEvent: o } = X(), [r, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
7568
+ const { updateTransaction: n } = Le(), { common: i, transactions: a } = T(), { onEvent: o } = X(), [r, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
7567
7569
  g.useEffect(() => {
7568
7570
  r && (d(e.description), _?.current?.focus());
7569
7571
  }, [r]);
@@ -7614,7 +7616,7 @@ const wc = ({ transaction: e }) => {
7614
7616
  )
7615
7617
  ] }) });
7616
7618
  }, Hg = x(Bg), Pg = ({ transaction: e }) => {
7617
- const { updateTransaction: n } = Me(), { transactions: i } = T(), { onEvent: a } = X(), o = Se(), r = async () => {
7619
+ const { updateTransaction: n } = Le(), { transactions: i } = T(), { onEvent: a } = X(), o = Se(), r = async () => {
7618
7620
  a(F.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
7619
7621
  };
7620
7622
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
@@ -7818,7 +7820,7 @@ const wc = ({ transaction: e }) => {
7818
7820
  ] })
7819
7821
  ] });
7820
7822
  }, Yg = x(Kg), zg = ({ onClose: e, transaction: n }) => {
7821
- const { addOrUpdateTransactionRule: i, updateTransaction: a } = Me(), { transactions: o } = T(), { categories: r } = Ue(), [s, c] = g.useState(""), d = g.useMemo(
7823
+ const { addOrUpdateTransactionRule: i, updateTransaction: a } = Le(), { transactions: o } = T(), { categories: r } = Ue(), [s, c] = g.useState(""), d = g.useMemo(
7822
7824
  () => r.find((u) => u.guid === s),
7823
7825
  [s]
7824
7826
  ), _ = async (u) => {
@@ -7880,7 +7882,7 @@ const wc = ({ transaction: e }) => {
7880
7882
  tags: k,
7881
7883
  transactions: G,
7882
7884
  updateTransaction: L
7883
- } = Me(), {
7885
+ } = Le(), {
7884
7886
  manualTransaction: W,
7885
7887
  isAmountValid: Y,
7886
7888
  searchValue: se,
@@ -8197,7 +8199,7 @@ const wc = ({ transaction: e }) => {
8197
8199
  ] });
8198
8200
  }), Lc = x(
8199
8201
  ({ onDeleted: e, recurringTransaction: n }) => {
8200
- const { recurring: i } = T(), { selectedAccountGuids: a } = ue(), { onEvent: o } = X(), { deleteRepeatingTransaction: r } = ot(), { setFilter: s, transactions: c } = Me(), { amount: d, description: _, merchant_guid: u } = n, [h, m] = g.useState(!1), [p, C] = g.useState("");
8202
+ const { recurring: i } = T(), { selectedAccountGuids: a } = ue(), { onEvent: o } = X(), { deleteRepeatingTransaction: r } = ot(), { setFilter: s, transactions: c } = Le(), { amount: d, description: _, merchant_guid: u } = n, [h, m] = g.useState(!1), [p, C] = g.useState("");
8201
8203
  g.useEffect(() => {
8202
8204
  s({
8203
8205
  accounts: a,
@@ -8449,7 +8451,7 @@ const wc = ({ transaction: e }) => {
8449
8451
  label: n,
8450
8452
  onAddRecurringTransaction: i = () => null
8451
8453
  }) => {
8452
- const { recurring: a } = T(), { filter: o, setFilter: r, transactions: s } = Me(), { addRepeatingTransaction: c } = ot(), { user: d } = Ct(), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, C] = g.useState(Ee.EveryMonth), [E, y] = g.useState(1), [S, I] = g.useState(15), v = g.useMemo(
8454
+ const { recurring: a } = T(), { filter: o, setFilter: r, transactions: s } = Le(), { addRepeatingTransaction: c } = ot(), { user: d } = Ct(), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, C] = g.useState(Ee.EveryMonth), [E, y] = g.useState(1), [S, I] = g.useState(15), v = g.useMemo(
8453
8455
  () => s.find((M) => M.guid === h),
8454
8456
  [h, s]
8455
8457
  ), w = () => {
@@ -9091,7 +9093,7 @@ const wc = ({ transaction: e }) => {
9091
9093
  ] }) })
9092
9094
  ] });
9093
9095
  }), P2 = x(({ onBackClick: e, sx: n = {} }) => {
9094
- const { accounts: i } = ye(), { recurring: a } = T(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = ue(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = ot(), { setFilter: h } = Me(), { onEvent: m } = X(), [p, C] = g.useState(!1);
9096
+ const { accounts: i } = ye(), { recurring: a } = T(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = ue(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = ot(), { setFilter: h } = Le(), { onEvent: m } = X(), [p, C] = g.useState(!1);
9095
9097
  return g.useEffect(() => {
9096
9098
  c(i);
9097
9099
  }, [i]), g.useEffect(() => {
@@ -9157,7 +9159,7 @@ const wc = ({ transaction: e }) => {
9157
9159
  ] });
9158
9160
  }), F2 = x(
9159
9161
  ({ onPrimaryCtaClick: e, sx: n }) => {
9160
- const { accounts: i } = ye(), { recurring: a } = T(), { setFilter: o } = Me(), { isDataLoaded: r, loadRepeatingTransactions: s } = ot(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = ue();
9162
+ const { accounts: i } = ye(), { recurring: a } = T(), { setFilter: o } = Le(), { isDataLoaded: r, loadRepeatingTransactions: s } = ot(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = ue();
9161
9163
  return g.useEffect(() => {
9162
9164
  d && _(i);
9163
9165
  }, [d]), g.useEffect(() => {
@@ -9266,7 +9268,7 @@ const wc = ({ transaction: e }) => {
9266
9268
  paidExpenseTotal: y,
9267
9269
  setDateRange: S,
9268
9270
  upcomingExpenseTotal: I
9269
- } = ot(), { setFilter: v } = Me(), { recurring: w, budgets: N } = T();
9271
+ } = ot(), { setFilter: v } = Le(), { recurring: w, budgets: N } = T();
9270
9272
  g.useEffect(() => {
9271
9273
  h(r);
9272
9274
  }, [r]), g.useEffect(() => {
@@ -10459,7 +10461,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10459
10461
  transform: rotate(360deg);
10460
10462
  }
10461
10463
  `, Lm = () => {
10462
- const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = T(), { completeOnboarding: o } = wo(), { isDirty: r } = Ci(), { isMobile: s } = be(), { isCopyLoaded: c, setDisplayedDate: d } = ue(), { filter: _, setFilter: u, transactions: h } = Me(), m = Se(), [p, C] = Tt(!0), [E, y] = g.useState(Ee.EveryMonth), [S, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = Tt(!1), [M, k] = Tt(1), [G, L] = Tt([]), [W, Y] = Tt(""), se = g.useMemo(
10464
+ const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = T(), { completeOnboarding: o } = wo(), { isDirty: r } = Ci(), { isMobile: s } = be(), { isCopyLoaded: c, setDisplayedDate: d } = ue(), { filter: _, setFilter: u, transactions: h } = Le(), m = Se(), [p, C] = Tt(!0), [E, y] = g.useState(Ee.EveryMonth), [S, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = Tt(!1), [M, k] = Tt(1), [G, L] = Tt([]), [W, Y] = Tt(""), se = g.useMemo(
10463
10465
  () => h.find((fe) => fe.guid === W),
10464
10466
  [W, h]
10465
10467
  ), ee = !!n.filter(
@@ -10642,7 +10644,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10642
10644
  setSelectedAccounts: o,
10643
10645
  shouldDisableNextDate: r,
10644
10646
  shouldDisablePrevDate: s
10645
- } = ue(), { onEvent: c } = X(), { visibleCashAccounts: d } = ye(), { setFilter: _ } = Me(), { userProfile: u } = Ct(), { dateRange: h, setSelectedCashAccounts: m } = Ci(), { loadRepeatingTransactions: p, setDateRange: C } = ot(), { cashflow: E } = T(), { isCopyLoaded: y, isInitialized: S } = ue(), [I, v] = g.useState(!1);
10647
+ } = ue(), { onEvent: c } = X(), { visibleCashAccounts: d } = ye(), { setFilter: _ } = Le(), { userProfile: u } = Ct(), { dateRange: h, setSelectedCashAccounts: m } = Ci(), { loadRepeatingTransactions: p, setDateRange: C } = ot(), { cashflow: E } = T(), { isCopyLoaded: y, isInitialized: S } = ue(), [I, v] = g.useState(!1);
10646
10648
  return g.useEffect(() => {
10647
10649
  S && (C(h), p().finally());
10648
10650
  }, [S]), g.useEffect(() => {
@@ -21575,7 +21577,7 @@ const Mf = (e) => e.reduce((i, a) => {
21575
21577
  isOpen: i,
21576
21578
  onClose: a
21577
21579
  }) => {
21578
- const { onEvent: o } = X(), { selectedAccountGuids: r } = ue(), { common: s } = T(), { setFilter: c, sortedTransactions: d } = Me(), [_, u] = g.useState(""), h = g.useMemo(
21580
+ const { onEvent: o } = X(), { selectedAccountGuids: r } = ue(), { common: s } = T(), { setFilter: c, sortedTransactions: d } = Le(), [_, u] = g.useState(""), h = g.useMemo(
21579
21581
  () => d.find((p) => p.guid === _),
21580
21582
  [_, d]
21581
21583
  );
@@ -21603,7 +21605,7 @@ const Mf = (e) => e.reduce((i, a) => {
21603
21605
  }
21604
21606
  );
21605
21607
  }, fl = x(Uf), Vf = ({ onBackClick: e, sx: n }) => {
21606
- const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = be(), { visibleAccounts: s } = ye(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ue(), { sortedTransactions: u } = Me(), { selectedDateRange: h, setSelectedDateRange: m } = gi(), { isCopyLoaded: p, isInitialized: C, selectedAccounts: E, setSelectedAccounts: y } = ue(), { trends: S } = T(), [I, v] = g.useState(!1), [w, N] = g.useState(!1), [R, M] = g.useState("Chart"), [k, G] = g.useState(""), [L, W] = g.useState(window.innerHeight), se = L - (r ? 315 : 345);
21608
+ const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = be(), { visibleAccounts: s } = ye(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ue(), { sortedTransactions: u } = Le(), { selectedDateRange: h, setSelectedDateRange: m } = gi(), { isCopyLoaded: p, isInitialized: C, selectedAccounts: E, setSelectedAccounts: y } = ue(), { trends: S } = T(), [I, v] = g.useState(!1), [w, N] = g.useState(!1), [R, M] = g.useState("Chart"), [k, G] = g.useState(""), [L, W] = g.useState(window.innerHeight), se = L - (r ? 315 : 345);
21607
21609
  g.useEffect(() => {
21608
21610
  const Q = () => W(window.innerHeight);
21609
21611
  return window.addEventListener("resize", Q), () => window.removeEventListener("resize", Q);
@@ -24170,7 +24172,7 @@ const Ui = g.createContext(null), a0 = ({
24170
24172
  }
24171
24173
  );
24172
24174
  }, k0 = x(M0), G0 = ({ onBackClick: e, onInsightCardClick: n, sx: i }) => {
24173
- const { onEvent: a } = X(), o = Xe(), { isLargeDesktop: r, isDesktop: s, isMobile: c } = be(), { visibleAccounts: d } = ye(), { loadMonthlyCategoryTotals: _, monthlyCategoryTotals: u } = Ue(), { setFilter: h, sortedTransactions: m } = Me(), { selectedDateRange: p, setSelectedCategoryData: C, setSelectedDateRange: E } = gi(), {
24175
+ const { onEvent: a } = X(), o = Xe(), { isLargeDesktop: r, isDesktop: s, isMobile: c } = be(), { visibleAccounts: d } = ye(), { loadMonthlyCategoryTotals: _, monthlyCategoryTotals: u } = Ue(), { setFilter: h, sortedTransactions: m } = Le(), { selectedDateRange: p, setSelectedCategoryData: C, setSelectedDateRange: E } = gi(), {
24174
24176
  isCopyLoaded: y,
24175
24177
  isInitialized: S,
24176
24178
  selectedAccounts: I,
@@ -24611,7 +24613,7 @@ const Va = ({
24611
24613
  (a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
24612
24614
  );
24613
24615
  }, V0 = () => {
24614
- const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ut(), { mergeAccounts: _, updateAccount: u } = ye(), { accounts: h } = T(), m = U0(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: C } = Me(), E = async (S) => {
24616
+ const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ut(), { mergeAccounts: _, updateAccount: u } = ye(), { accounts: h } = T(), m = U0(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: C } = Le(), E = async (S) => {
24615
24617
  await u({
24616
24618
  ...d,
24617
24619
  ...S
@@ -25157,7 +25159,7 @@ const Va = ({
25157
25159
  )
25158
25160
  ] });
25159
25161
  }, eb = x(J0), tb = () => {
25160
- const [e, n] = g.useState(""), { onEvent: i } = X(), { selectedAccount: a } = Ut(), { accounts: o } = T(), { setFilter: r, sortedTransactions: s } = Me(), c = g.useMemo(
25162
+ const [e, n] = g.useState(""), { onEvent: i } = X(), { selectedAccount: a } = Ut(), { accounts: o } = T(), { setFilter: r, sortedTransactions: s } = Le(), c = g.useMemo(
25161
25163
  () => s.find((d) => d.guid === e),
25162
25164
  [e, s]
25163
25165
  );
@@ -25248,7 +25250,7 @@ const Va = ({
25248
25250
  {
25249
25251
  "aria-label": v,
25250
25252
  subheader: /* @__PURE__ */ t(Ft, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
25251
- Le,
25253
+ Me,
25252
25254
  {
25253
25255
  component: "span",
25254
25256
  direction: "row",
@@ -25259,7 +25261,7 @@ const Va = ({
25259
25261
  ]
25260
25262
  }
25261
25263
  ) }),
25262
- children: /* @__PURE__ */ t(Le, { children: S.map((w, N, R) => {
25264
+ children: /* @__PURE__ */ t(Me, { children: S.map((w, N, R) => {
25263
25265
  const M = N === R.length - 1;
25264
25266
  return /* @__PURE__ */ l(g.Fragment, { children: [
25265
25267
  /* @__PURE__ */ t(
@@ -25305,7 +25307,7 @@ const Va = ({
25305
25307
  {
25306
25308
  "aria-label": i.account_type_accounts[S[0]?.account_type],
25307
25309
  subheader: /* @__PURE__ */ t(Ft, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
25308
- Le,
25310
+ Me,
25309
25311
  {
25310
25312
  component: "span",
25311
25313
  direction: "row",
@@ -25316,7 +25318,7 @@ const Va = ({
25316
25318
  ]
25317
25319
  }
25318
25320
  ) }),
25319
- children: /* @__PURE__ */ t(Le, { children: S.map((v) => {
25321
+ children: /* @__PURE__ */ t(Me, { children: S.map((v) => {
25320
25322
  const w = a.indexOf(v) === a.length - 1, N = S.indexOf(v) === S.length - 1;
25321
25323
  return /* @__PURE__ */ l(g.Fragment, { children: [
25322
25324
  /* @__PURE__ */ t(
@@ -26861,7 +26863,7 @@ const Nb = ({
26861
26863
  )
26862
26864
  ] });
26863
26865
  }), Wb = x(({ budget: e }) => {
26864
- const { category: n, subBudgets: i } = e, { budgets: a, common: o } = T(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = _t(), { filter: _, setFilter: u } = Me(), [h, m] = g.useState(!1), [p, C] = g.useState(!1), [E, y] = g.useState("");
26866
+ const { category: n, subBudgets: i } = e, { budgets: a, common: o } = T(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = _t(), { filter: _, setFilter: u } = Le(), [h, m] = g.useState(!1), [p, C] = g.useState(!1), [E, y] = g.useState("");
26865
26867
  g.useEffect(() => {
26866
26868
  s && (y(`${s.amount}`), u({
26867
26869
  ..._,
@@ -26946,7 +26948,7 @@ const Nb = ({
26946
26948
  sortedTransactions: c,
26947
26949
  sortedTransactionsWithSplits: d,
26948
26950
  tags: _
26949
- } = Me(), [u, h] = g.useState(0), [m, p] = g.useState(""), C = g.useMemo(
26951
+ } = Le(), [u, h] = g.useState(0), [m, p] = g.useState(""), C = g.useMemo(
26950
26952
  () => c.find((I) => I.guid === m),
26951
26953
  [m, c]
26952
26954
  ), E = (I, v) => {
@@ -27005,7 +27007,7 @@ const Nb = ({
27005
27007
  setAlert: c,
27006
27008
  setSelectedBudget: d,
27007
27009
  updateBudget: _
27008
- } = _t(), { setFilter: u } = Me(), [h, m] = g.useState(!1), [p, C] = g.useState(!1), [E, y] = g.useState(!1), [S, I] = g.useState("");
27010
+ } = _t(), { setFilter: u } = Le(), [h, m] = g.useState(!1), [p, C] = g.useState(!1), [E, y] = g.useState(!1), [S, I] = g.useState("");
27009
27011
  g.useEffect(() => {
27010
27012
  r && !s && (I(`${r.amount}`), m(!0), u({
27011
27013
  accounts: e,
@@ -27120,7 +27122,7 @@ const Nb = ({
27120
27122
  ] }, r.guid)) }) })
27121
27123
  ] });
27122
27124
  }), zb = x(() => {
27123
- const e = Se(), { onEvent: n } = X(), { visibleAccounts: i } = ye(), { budgets: a, common: o, recurring: r } = T(), { incomeCategories: s, spendCategories: c } = Ue(), { detailedBudgets: d, totalBudgeted: _ } = _t(), { incomeTotal: u } = ot(), { setFilter: h } = Me(), [m, p] = g.useState(!1), [C, E] = g.useMemo(() => {
27125
+ const e = Se(), { onEvent: n } = X(), { visibleAccounts: i } = ye(), { budgets: a, common: o, recurring: r } = T(), { incomeCategories: s, spendCategories: c } = Ue(), { detailedBudgets: d, totalBudgeted: _ } = _t(), { incomeTotal: u } = ot(), { setFilter: h } = Le(), [m, p] = g.useState(!1), [C, E] = g.useMemo(() => {
27124
27126
  const v = c.reduce((M, k) => M + k.totalAmount, 0);
27125
27127
  let w = v / _;
27126
27128
  w > 1 && (w = 1);
@@ -28112,7 +28114,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28112
28114
  onClose: d,
28113
28115
  title: _.overview.investment_details,
28114
28116
  children: [
28115
- /* @__PURE__ */ l(Le, { sx: { gap: 8, p: 24 }, children: [
28117
+ /* @__PURE__ */ l(Me, { sx: { gap: 8, p: 24 }, children: [
28116
28118
  /* @__PURE__ */ t(
28117
28119
  Et,
28118
28120
  {
@@ -28123,7 +28125,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28123
28125
  ),
28124
28126
  /* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "Small", children: e.accounts.memberName }),
28125
28127
  /* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "H2", children: e.accounts.user_name || e.accounts.name }),
28126
- /* @__PURE__ */ l(Le, { sx: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" }, children: [
28128
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" }, children: [
28127
28129
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: _.overview.current_balance }),
28128
28130
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: e.accounts.balance?.toLocaleString("en-US", {
28129
28131
  currency: "USD",
@@ -28134,7 +28136,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28134
28136
  ] })
28135
28137
  ] }),
28136
28138
  /* @__PURE__ */ l(
28137
- Le,
28139
+ Me,
28138
28140
  {
28139
28141
  sx: {
28140
28142
  bgcolor: "background.default",
@@ -28175,10 +28177,10 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28175
28177
  borderColor: "border.main"
28176
28178
  }
28177
28179
  ],
28178
- children: /* @__PURE__ */ l(Le, { sx: { flexDirection: "row", width: "100%" }, children: [
28180
+ children: /* @__PURE__ */ l(Me, { sx: { flexDirection: "row", width: "100%" }, children: [
28179
28181
  /* @__PURE__ */ t("div", { style: { width: 24 } }),
28180
28182
  /* @__PURE__ */ l(
28181
- Le,
28183
+ Me,
28182
28184
  {
28183
28185
  sx: [
28184
28186
  {
@@ -28196,21 +28198,21 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28196
28198
  ],
28197
28199
  children: [
28198
28200
  /* @__PURE__ */ t(
28199
- Le,
28201
+ Me,
28200
28202
  {
28201
28203
  sx: {
28202
28204
  alignItems: "center",
28203
28205
  flexDirection: "row",
28204
28206
  gap: 12
28205
28207
  },
28206
- children: /* @__PURE__ */ l(Le, { sx: { overflow: "hidden", width: 98 }, children: [
28208
+ children: /* @__PURE__ */ l(Me, { sx: { overflow: "hidden", width: 98 }, children: [
28207
28209
  /* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: "Body", children: p.holding }),
28208
28210
  /* @__PURE__ */ t(f, { variant: "XSmall", children: p.description })
28209
28211
  ] })
28210
28212
  }
28211
28213
  ),
28212
28214
  /* @__PURE__ */ l(
28213
- Le,
28215
+ Me,
28214
28216
  {
28215
28217
  sx: {
28216
28218
  alignItems: "center",
@@ -28220,14 +28222,14 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28220
28222
  justifyContent: "flex-end"
28221
28223
  },
28222
28224
  children: [
28223
- /* @__PURE__ */ l(Le, { children: [
28225
+ /* @__PURE__ */ l(Me, { children: [
28224
28226
  /* @__PURE__ */ t(f, { sx: { fontWeight: 600, textAlign: "right" }, variant: "Body", children: p.marketValue?.toLocaleString("en-US", {
28225
28227
  currency: "USD",
28226
28228
  maximumFractionDigits: 2,
28227
28229
  minimumFractionDigits: 2,
28228
28230
  style: "currency"
28229
28231
  }) }),
28230
- /* @__PURE__ */ l(Le, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
28232
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
28231
28233
  p.totalGainLoss !== 0 && /* @__PURE__ */ t(
28232
28234
  pt,
28233
28235
  {
@@ -28287,7 +28289,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28287
28289
  }
28288
28290
  ),
28289
28291
  /* @__PURE__ */ t(Pi, { children: /* @__PURE__ */ l(
28290
- Le,
28292
+ Me,
28291
28293
  {
28292
28294
  sx: {
28293
28295
  alignItems: "center",
@@ -28296,10 +28298,10 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28296
28298
  pl: 24
28297
28299
  },
28298
28300
  children: [
28299
- /* @__PURE__ */ t(Le, { sx: { width: 32 } }),
28300
- /* @__PURE__ */ l(Le, { sx: { flex: 1 }, children: [
28301
+ /* @__PURE__ */ t(Me, { sx: { width: 32 } }),
28302
+ /* @__PURE__ */ l(Me, { sx: { flex: 1 }, children: [
28301
28303
  /* @__PURE__ */ l(
28302
- Le,
28304
+ Me,
28303
28305
  {
28304
28306
  sx: {
28305
28307
  alignItems: "center",
@@ -28317,7 +28319,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28317
28319
  }
28318
28320
  ),
28319
28321
  /* @__PURE__ */ l(
28320
- Le,
28322
+ Me,
28321
28323
  {
28322
28324
  sx: {
28323
28325
  alignItems: "center",
@@ -28329,7 +28331,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28329
28331
  children: [
28330
28332
  /* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "Body", children: _.overview.cost_basis_header }),
28331
28333
  /* @__PURE__ */ l(
28332
- Le,
28334
+ Me,
28333
28335
  {
28334
28336
  direction: "row",
28335
28337
  sx: {
@@ -28603,8 +28605,8 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28603
28605
  }, 0), ze = () => {
28604
28606
  o(!1);
28605
28607
  };
28606
- return C ? /* @__PURE__ */ l(Le, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
28607
- !!ge.length && /* @__PURE__ */ l(Le, { sx: { alignItems: "center" }, children: [
28608
+ return C ? /* @__PURE__ */ l(Me, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
28609
+ !!ge.length && /* @__PURE__ */ l(Me, { sx: { alignItems: "center" }, children: [
28608
28610
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, children: p.overview.total_portfolio }),
28609
28611
  /* @__PURE__ */ t(Zt, { children: xe.toLocaleString("en-US", {
28610
28612
  currency: "USD",
@@ -28612,7 +28614,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28612
28614
  minimumFractionDigits: 2,
28613
28615
  style: "currency"
28614
28616
  }) }),
28615
- /* @__PURE__ */ l(Le, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
28617
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
28616
28618
  /* @__PURE__ */ t(
28617
28619
  pt,
28618
28620
  {
@@ -28664,7 +28666,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28664
28666
  overflow: "hidden"
28665
28667
  },
28666
28668
  children: /* @__PURE__ */ l(
28667
- Le,
28669
+ Me,
28668
28670
  {
28669
28671
  sx: {
28670
28672
  border: 1,
@@ -28677,7 +28679,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28677
28679
  },
28678
28680
  children: [
28679
28681
  /* @__PURE__ */ l(
28680
- Le,
28682
+ Me,
28681
28683
  {
28682
28684
  sx: {
28683
28685
  alignItems: "center",
@@ -28697,7 +28699,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28697
28699
  size: 32
28698
28700
  }
28699
28701
  ),
28700
- /* @__PURE__ */ l(Le, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
28702
+ /* @__PURE__ */ l(Me, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
28701
28703
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: K.memberName }),
28702
28704
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: K.user_name || K.name })
28703
28705
  ] })
@@ -28705,7 +28707,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28705
28707
  }
28706
28708
  ),
28707
28709
  /* @__PURE__ */ l(
28708
- Le,
28710
+ Me,
28709
28711
  {
28710
28712
  sx: {
28711
28713
  alignItems: "center",
@@ -28716,7 +28718,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28716
28718
  },
28717
28719
  children: [
28718
28720
  /* @__PURE__ */ l(
28719
- Le,
28721
+ Me,
28720
28722
  {
28721
28723
  sx: {
28722
28724
  alignItems: "center",
@@ -28732,7 +28734,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28732
28734
  children: [
28733
28735
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary", fontSize: 11 }, variant: "Small", children: p.overview.total_gain_Loss }),
28734
28736
  /* @__PURE__ */ l(
28735
- Le,
28737
+ Me,
28736
28738
  {
28737
28739
  sx: {
28738
28740
  alignItems: "center",
@@ -28787,7 +28789,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28787
28789
  }
28788
28790
  ),
28789
28791
  /* @__PURE__ */ l(
28790
- Le,
28792
+ Me,
28791
28793
  {
28792
28794
  sx: {
28793
28795
  alignItems: "center",
@@ -28846,7 +28848,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28846
28848
  ],
28847
28849
  children: [
28848
28850
  /* @__PURE__ */ l(
28849
- Le,
28851
+ Me,
28850
28852
  {
28851
28853
  sx: {
28852
28854
  alignItems: "center",
@@ -28865,18 +28867,18 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28865
28867
  size: 32
28866
28868
  }
28867
28869
  ),
28868
- /* @__PURE__ */ l(Le, { sx: { alignItems: "flex-start" }, children: [
28870
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "flex-start" }, children: [
28869
28871
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: K.memberName }),
28870
28872
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: K.user_name || K.name })
28871
28873
  ] })
28872
28874
  ]
28873
28875
  }
28874
28876
  ),
28875
- /* @__PURE__ */ l(Le, { sx: { flexDirection: "row" }, children: [
28876
- /* @__PURE__ */ l(Le, { sx: { alignItems: "flex-end", pb: 14, pl: 24, pr: 24, pt: 14 }, children: [
28877
+ /* @__PURE__ */ l(Me, { sx: { flexDirection: "row" }, children: [
28878
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "flex-end", pb: 14, pl: 24, pr: 24, pt: 14 }, children: [
28877
28879
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_gain_Loss }),
28878
28880
  /* @__PURE__ */ l(
28879
- Le,
28881
+ Me,
28880
28882
  {
28881
28883
  sx: {
28882
28884
  alignItems: "center",
@@ -28928,7 +28930,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28928
28930
  }
28929
28931
  )
28930
28932
  ] }),
28931
- /* @__PURE__ */ t(Le, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ l(Le, { sx: { alignItems: "flex-end" }, children: [
28933
+ /* @__PURE__ */ t(Me, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ l(Me, { sx: { alignItems: "flex-end" }, children: [
28932
28934
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_value }),
28933
28935
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: Ae?.toLocaleString("en-US", {
28934
28936
  currency: "USD",
@@ -29467,7 +29469,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29467
29469
  e.palette.chartMono.chartMono1,
29468
29470
  e.palette.chartMono.chartMono6
29469
29471
  ], vy = () => {
29470
- const e = ln(), { clientConfig: n } = It(), { categories: i, dateRangeCategoryTotals: a, loadDateRangeCategoryTotals: o } = Ue(), { goals: r, spending: s } = T(), { displayedDateRange: c, selectedAccounts: d, selectedAccountGuids: _ } = ue(), { setFilter: u, sortedTransactions: h } = Me(), m = n?.master?.deep_link_params?.account_guids, p = n?.master?.deep_link_params?.view, [C, E] = g.useState(""), [y, S] = g.useState(p === "income" ? 1 : 0), [I, v] = g.useState(""), [w, N] = g.useState(!1);
29472
+ const e = ln(), { clientConfig: n } = It(), { categories: i, dateRangeCategoryTotals: a, loadDateRangeCategoryTotals: o } = Ue(), { goals: r, spending: s } = T(), { displayedDateRange: c, selectedAccounts: d, selectedAccountGuids: _ } = ue(), { setFilter: u, sortedTransactions: h } = Le(), m = n?.master?.deep_link_params?.account_guids, p = n?.master?.deep_link_params?.view, [C, E] = g.useState(""), [y, S] = g.useState(p === "income" ? 1 : 0), [I, v] = g.useState(""), [w, N] = g.useState(!1);
29471
29473
  g.useEffect(() => {
29472
29474
  o(
29473
29475
  d,
@@ -29866,7 +29868,7 @@ export {
29866
29868
  ot as useRecurringTransactionsStore,
29867
29869
  be as useScreenSize,
29868
29870
  bt as useSettingsStore,
29869
- Me as useTransactionStore,
29871
+ Le as useTransactionStore,
29870
29872
  Ot as useTransactionsUiStore,
29871
29873
  gi as useTrendsStore,
29872
29874
  Ct as useUserStore,