@mx-cartographer/experiences 6.26.3-alpha.sms2 → 6.26.3-alpha.sms4

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`);
@@ -5604,11 +5604,11 @@ class Dh {
5604
5604
  this.sortColumn,
5605
5605
  this.sortDirection,
5606
5606
  this.tags,
5607
- this.transactions
5607
+ this.rawTransactions
5608
5608
  );
5609
5609
  }
5610
5610
  get sortedTransactionsWithSplits() {
5611
- return mh(this.sortedTransactions, this.transactions);
5611
+ return mh(this.sortedTransactions, this.rawTransactions);
5612
5612
  }
5613
5613
  get transactions() {
5614
5614
  return this.augmentTransactions(this.rawTransactions);
@@ -5638,7 +5638,7 @@ class Dh {
5638
5638
  };
5639
5639
  addTransaction = async (n) => {
5640
5640
  const i = await this.api.addTransaction(n);
5641
- i && J(() => this.rawTransactions = [i, ...this.transactions]);
5641
+ i && J(() => this.rawTransactions = [i, ...this.rawTransactions]);
5642
5642
  };
5643
5643
  augmentTransactions = (n) => _h(
5644
5644
  n,
@@ -5683,7 +5683,7 @@ class Dh {
5683
5683
  });
5684
5684
  };
5685
5685
  modifyTransactionByAccountGuid = (n, i) => {
5686
- this.rawTransactions = this.transactions.map(
5686
+ this.rawTransactions = this.rawTransactions.map(
5687
5687
  (a) => a.account_guid === n ? { ...a, ...i } : a
5688
5688
  );
5689
5689
  };
@@ -5695,9 +5695,9 @@ class Dh {
5695
5695
  };
5696
5696
  removeTransaction = async (n) => {
5697
5697
  await this.api.removeTransaction(n);
5698
- const i = this.transactions.findIndex((a) => a.guid === n);
5698
+ const i = this.rawTransactions.findIndex((a) => a.guid === n);
5699
5699
  if (i >= 0) {
5700
- const a = [...this.transactions];
5700
+ const a = [...this.rawTransactions];
5701
5701
  a.splice(i, 1), J(() => this.rawTransactions = a);
5702
5702
  }
5703
5703
  };
@@ -5716,20 +5716,20 @@ class Dh {
5716
5716
  const c = await this.api.addTransaction(i[s]);
5717
5717
  o.push(c);
5718
5718
  }
5719
- const r = this.transactions.findIndex((s) => s.guid === n.guid);
5719
+ const r = this.rawTransactions.findIndex((s) => s.guid === n.guid);
5720
5720
  r >= 0 && J(
5721
5721
  () => this.rawTransactions = [
5722
- ...this.transactions.slice(0, r),
5722
+ ...this.rawTransactions.slice(0, r),
5723
5723
  a,
5724
- ...this.transactions.slice(r + 1),
5724
+ ...this.rawTransactions.slice(r + 1),
5725
5725
  ...o
5726
5726
  ]
5727
5727
  );
5728
5728
  };
5729
5729
  unSplitTransaction = async (n) => {
5730
- const i = this.transactions.filter((s) => s.parent_guid === n);
5730
+ const i = this.rawTransactions.filter((s) => s.parent_guid === n);
5731
5731
  await this.api.removeTransactionSplit(n);
5732
- const a = [...this.transactions];
5732
+ const a = [...this.rawTransactions];
5733
5733
  i.forEach((s) => {
5734
5734
  const c = a.findIndex((d) => d.guid === s.guid);
5735
5735
  c >= 0 && a.splice(c, 1);
@@ -5755,12 +5755,12 @@ class Dh {
5755
5755
  await this.api.updateTag(n), await this.loadTags();
5756
5756
  };
5757
5757
  updateTransaction = async (n) => {
5758
- const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
5758
+ const i = await this.api.updateTransaction(n), a = this.rawTransactions.findIndex((o) => o.guid === n.guid);
5759
5759
  a >= 0 && J(
5760
5760
  () => this.rawTransactions = [
5761
- ...this.transactions.slice(0, a),
5761
+ ...this.rawTransactions.slice(0, a),
5762
5762
  i,
5763
- ...this.transactions.slice(a + 1)
5763
+ ...this.rawTransactions.slice(a + 1)
5764
5764
  ]
5765
5765
  );
5766
5766
  };
@@ -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,8 +5877,8 @@ 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, rawTransactions: h } = Me();
5881
- console.log("exp allTransactions", u), console.log("exp rawTransactions", h);
5880
+ const { isLoading: _, sortedTransactions: u } = Le(), h = Le();
5881
+ console.log("exp tStore", h);
5882
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
5883
  const N = m.find((R) => R.guid === w);
5884
5884
  if (N?.has_been_split) {
@@ -5934,7 +5934,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
5934
5934
  `${e.row.account}`,
5935
5935
  e.row.number && ` | ${e.row.number}`
5936
5936
  ] }), Ph = (e) => {
5937
- 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;
5938
5938
  return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
5939
5939
  /* @__PURE__ */ l(f, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
5940
5940
  s ? "+" : "",
@@ -6003,7 +6003,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
6003
6003
  onCategoryClick: n,
6004
6004
  onRowClick: i
6005
6005
  }) => {
6006
- 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();
6007
6007
  g.useEffect(() => () => c(), []);
6008
6008
  const _ = g.useMemo(
6009
6009
  () => s.map((m) => ({
@@ -6653,7 +6653,7 @@ class gg {
6653
6653
  getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? fa[n];
6654
6654
  }
6655
6655
  const wc = ({ transaction: e }) => {
6656
- 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) => {
6657
6657
  await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(F.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6658
6658
  transaction_guid: e.guid
6659
6659
  });
@@ -6738,7 +6738,7 @@ const wc = ({ transaction: e }) => {
6738
6738
  )
6739
6739
  ] });
6740
6740
  }, vc = ({ transaction: e }) => {
6741
- 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) => {
6742
6742
  u(Fe(p));
6743
6743
  }, m = async () => {
6744
6744
  if (e.is_manual && !e.guid) {
@@ -6795,7 +6795,7 @@ const wc = ({ transaction: e }) => {
6795
6795
  )
6796
6796
  ] });
6797
6797
  }, mg = ({ transaction: e }) => {
6798
- 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 () => {
6799
6799
  await i(e.guid), n(q.ON_TRANSACTION_DELETE_DELETED);
6800
6800
  };
6801
6801
  return /* @__PURE__ */ l(O, { className: "mx-txn-delete", children: [
@@ -6835,7 +6835,7 @@ const wc = ({ transaction: e }) => {
6835
6835
  )
6836
6836
  ] });
6837
6837
  }, pg = x(mg), Cg = ({ transaction: e }) => {
6838
- 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 () => {
6839
6839
  await i({ ...e, merchant_guid: "" }), n(F.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
6840
6840
  transaction_guid: e.guid
6841
6841
  });
@@ -6875,7 +6875,7 @@ const wc = ({ transaction: e }) => {
6875
6875
  )
6876
6876
  ] });
6877
6877
  }, fg = x(Cg), bg = ({ transaction: e }) => {
6878
- 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 () => {
6879
6879
  await i({ ...e, is_hidden: !e.is_hidden }), n(
6880
6880
  d ? q.ON_TRANSACTION_UNHIDDEN : q.ON_TRANSACTION_HIDDEN
6881
6881
  );
@@ -6964,7 +6964,7 @@ const wc = ({ transaction: e }) => {
6964
6964
  ] })
6965
6965
  ] });
6966
6966
  }, Eg = ({ transaction: e }) => {
6967
- 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("");
6968
6968
  g.useEffect(() => {
6969
6969
  s && _(e.memo ? e.memo : "");
6970
6970
  }, [s]);
@@ -7191,7 +7191,7 @@ const wc = ({ transaction: e }) => {
7191
7191
  ) })
7192
7192
  ] });
7193
7193
  }, xg = x(Tg), Ig = ({ transaction: e }) => {
7194
- 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 = {
7195
7195
  ...e,
7196
7196
  amount: e.amount - 1,
7197
7197
  guid: "",
@@ -7311,7 +7311,7 @@ const wc = ({ transaction: e }) => {
7311
7311
  )
7312
7312
  ] });
7313
7313
  }, wg = x(Ig), vg = () => {
7314
- 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);
7315
7315
  g.useEffect(() => {
7316
7316
  o && u?.current?.focus();
7317
7317
  }, [o]);
@@ -7398,7 +7398,7 @@ const wc = ({ transaction: e }) => {
7398
7398
  }
7399
7399
  ) });
7400
7400
  }, Rg = x(Ng), Og = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
7401
- 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 () => {
7402
7402
  a(q.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), _(!1);
7403
7403
  }, S = async () => {
7404
7404
  a(q.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
@@ -7492,7 +7492,7 @@ const wc = ({ transaction: e }) => {
7492
7492
  }
7493
7493
  );
7494
7494
  }, Lg = x(Og), Mg = ({ selectedTags: e, onTagChecked: n }) => {
7495
- const { tags: i } = Me(), [a, o] = g.useState(""), r = i.filter(
7495
+ const { tags: i } = Le(), [a, o] = g.useState(""), r = i.filter(
7496
7496
  (s) => s.name.toLowerCase().includes(a.toLowerCase())
7497
7497
  );
7498
7498
  return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
@@ -7510,7 +7510,7 @@ const wc = ({ transaction: e }) => {
7510
7510
  ] }, s.guid)) }) })
7511
7511
  ] });
7512
7512
  }, kg = x(Mg), Gg = ({ transaction: e }) => {
7513
- 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);
7514
7514
  g.useEffect(() => {
7515
7515
  h(e.tags);
7516
7516
  }, [d, e]);
@@ -7565,7 +7565,7 @@ const wc = ({ transaction: e }) => {
7565
7565
  )
7566
7566
  ] });
7567
7567
  }, Rc = x(Gg), Bg = ({ transaction: e }) => {
7568
- 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);
7569
7569
  g.useEffect(() => {
7570
7570
  r && (d(e.description), _?.current?.focus());
7571
7571
  }, [r]);
@@ -7616,7 +7616,7 @@ const wc = ({ transaction: e }) => {
7616
7616
  )
7617
7617
  ] }) });
7618
7618
  }, Hg = x(Bg), Pg = ({ transaction: e }) => {
7619
- 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 () => {
7620
7620
  a(F.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
7621
7621
  };
7622
7622
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
@@ -7820,7 +7820,7 @@ const wc = ({ transaction: e }) => {
7820
7820
  ] })
7821
7821
  ] });
7822
7822
  }, Yg = x(Kg), zg = ({ onClose: e, transaction: n }) => {
7823
- 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(
7824
7824
  () => r.find((u) => u.guid === s),
7825
7825
  [s]
7826
7826
  ), _ = async (u) => {
@@ -7882,7 +7882,7 @@ const wc = ({ transaction: e }) => {
7882
7882
  tags: k,
7883
7883
  transactions: G,
7884
7884
  updateTransaction: L
7885
- } = Me(), {
7885
+ } = Le(), {
7886
7886
  manualTransaction: W,
7887
7887
  isAmountValid: Y,
7888
7888
  searchValue: se,
@@ -8199,7 +8199,7 @@ const wc = ({ transaction: e }) => {
8199
8199
  ] });
8200
8200
  }), Lc = x(
8201
8201
  ({ onDeleted: e, recurringTransaction: n }) => {
8202
- 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("");
8203
8203
  g.useEffect(() => {
8204
8204
  s({
8205
8205
  accounts: a,
@@ -8451,7 +8451,7 @@ const wc = ({ transaction: e }) => {
8451
8451
  label: n,
8452
8452
  onAddRecurringTransaction: i = () => null
8453
8453
  }) => {
8454
- 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(
8455
8455
  () => s.find((M) => M.guid === h),
8456
8456
  [h, s]
8457
8457
  ), w = () => {
@@ -9093,7 +9093,7 @@ const wc = ({ transaction: e }) => {
9093
9093
  ] }) })
9094
9094
  ] });
9095
9095
  }), P2 = x(({ onBackClick: e, sx: n = {} }) => {
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 } = 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);
9097
9097
  return g.useEffect(() => {
9098
9098
  c(i);
9099
9099
  }, [i]), g.useEffect(() => {
@@ -9159,7 +9159,7 @@ const wc = ({ transaction: e }) => {
9159
9159
  ] });
9160
9160
  }), F2 = x(
9161
9161
  ({ onPrimaryCtaClick: e, sx: n }) => {
9162
- 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();
9163
9163
  return g.useEffect(() => {
9164
9164
  d && _(i);
9165
9165
  }, [d]), g.useEffect(() => {
@@ -9268,7 +9268,7 @@ const wc = ({ transaction: e }) => {
9268
9268
  paidExpenseTotal: y,
9269
9269
  setDateRange: S,
9270
9270
  upcomingExpenseTotal: I
9271
- } = ot(), { setFilter: v } = Me(), { recurring: w, budgets: N } = T();
9271
+ } = ot(), { setFilter: v } = Le(), { recurring: w, budgets: N } = T();
9272
9272
  g.useEffect(() => {
9273
9273
  h(r);
9274
9274
  }, [r]), g.useEffect(() => {
@@ -10461,7 +10461,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10461
10461
  transform: rotate(360deg);
10462
10462
  }
10463
10463
  `, Lm = () => {
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 } = 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(
10465
10465
  () => h.find((fe) => fe.guid === W),
10466
10466
  [W, h]
10467
10467
  ), ee = !!n.filter(
@@ -10644,7 +10644,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10644
10644
  setSelectedAccounts: o,
10645
10645
  shouldDisableNextDate: r,
10646
10646
  shouldDisablePrevDate: s
10647
- } = 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);
10648
10648
  return g.useEffect(() => {
10649
10649
  S && (C(h), p().finally());
10650
10650
  }, [S]), g.useEffect(() => {
@@ -21577,7 +21577,7 @@ const Mf = (e) => e.reduce((i, a) => {
21577
21577
  isOpen: i,
21578
21578
  onClose: a
21579
21579
  }) => {
21580
- 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(
21581
21581
  () => d.find((p) => p.guid === _),
21582
21582
  [_, d]
21583
21583
  );
@@ -21605,7 +21605,7 @@ const Mf = (e) => e.reduce((i, a) => {
21605
21605
  }
21606
21606
  );
21607
21607
  }, fl = x(Uf), Vf = ({ onBackClick: e, sx: n }) => {
21608
- 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);
21609
21609
  g.useEffect(() => {
21610
21610
  const Q = () => W(window.innerHeight);
21611
21611
  return window.addEventListener("resize", Q), () => window.removeEventListener("resize", Q);
@@ -24172,7 +24172,7 @@ const Ui = g.createContext(null), a0 = ({
24172
24172
  }
24173
24173
  );
24174
24174
  }, k0 = x(M0), G0 = ({ onBackClick: e, onInsightCardClick: n, sx: i }) => {
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 } = 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(), {
24176
24176
  isCopyLoaded: y,
24177
24177
  isInitialized: S,
24178
24178
  selectedAccounts: I,
@@ -24613,7 +24613,7 @@ const Va = ({
24613
24613
  (a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
24614
24614
  );
24615
24615
  }, V0 = () => {
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 } = 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) => {
24617
24617
  await u({
24618
24618
  ...d,
24619
24619
  ...S
@@ -25159,7 +25159,7 @@ const Va = ({
25159
25159
  )
25160
25160
  ] });
25161
25161
  }, eb = x(J0), tb = () => {
25162
- 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(
25163
25163
  () => s.find((d) => d.guid === e),
25164
25164
  [e, s]
25165
25165
  );
@@ -25250,7 +25250,7 @@ const Va = ({
25250
25250
  {
25251
25251
  "aria-label": v,
25252
25252
  subheader: /* @__PURE__ */ t(Ft, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
25253
- Le,
25253
+ Me,
25254
25254
  {
25255
25255
  component: "span",
25256
25256
  direction: "row",
@@ -25261,7 +25261,7 @@ const Va = ({
25261
25261
  ]
25262
25262
  }
25263
25263
  ) }),
25264
- children: /* @__PURE__ */ t(Le, { children: S.map((w, N, R) => {
25264
+ children: /* @__PURE__ */ t(Me, { children: S.map((w, N, R) => {
25265
25265
  const M = N === R.length - 1;
25266
25266
  return /* @__PURE__ */ l(g.Fragment, { children: [
25267
25267
  /* @__PURE__ */ t(
@@ -25307,7 +25307,7 @@ const Va = ({
25307
25307
  {
25308
25308
  "aria-label": i.account_type_accounts[S[0]?.account_type],
25309
25309
  subheader: /* @__PURE__ */ t(Ft, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
25310
- Le,
25310
+ Me,
25311
25311
  {
25312
25312
  component: "span",
25313
25313
  direction: "row",
@@ -25318,7 +25318,7 @@ const Va = ({
25318
25318
  ]
25319
25319
  }
25320
25320
  ) }),
25321
- children: /* @__PURE__ */ t(Le, { children: S.map((v) => {
25321
+ children: /* @__PURE__ */ t(Me, { children: S.map((v) => {
25322
25322
  const w = a.indexOf(v) === a.length - 1, N = S.indexOf(v) === S.length - 1;
25323
25323
  return /* @__PURE__ */ l(g.Fragment, { children: [
25324
25324
  /* @__PURE__ */ t(
@@ -26863,7 +26863,7 @@ const Nb = ({
26863
26863
  )
26864
26864
  ] });
26865
26865
  }), Wb = x(({ budget: e }) => {
26866
- 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("");
26867
26867
  g.useEffect(() => {
26868
26868
  s && (y(`${s.amount}`), u({
26869
26869
  ..._,
@@ -26948,7 +26948,7 @@ const Nb = ({
26948
26948
  sortedTransactions: c,
26949
26949
  sortedTransactionsWithSplits: d,
26950
26950
  tags: _
26951
- } = 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(
26952
26952
  () => c.find((I) => I.guid === m),
26953
26953
  [m, c]
26954
26954
  ), E = (I, v) => {
@@ -27007,7 +27007,7 @@ const Nb = ({
27007
27007
  setAlert: c,
27008
27008
  setSelectedBudget: d,
27009
27009
  updateBudget: _
27010
- } = _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("");
27011
27011
  g.useEffect(() => {
27012
27012
  r && !s && (I(`${r.amount}`), m(!0), u({
27013
27013
  accounts: e,
@@ -27122,7 +27122,7 @@ const Nb = ({
27122
27122
  ] }, r.guid)) }) })
27123
27123
  ] });
27124
27124
  }), zb = x(() => {
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 } = 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(() => {
27126
27126
  const v = c.reduce((M, k) => M + k.totalAmount, 0);
27127
27127
  let w = v / _;
27128
27128
  w > 1 && (w = 1);
@@ -28114,7 +28114,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28114
28114
  onClose: d,
28115
28115
  title: _.overview.investment_details,
28116
28116
  children: [
28117
- /* @__PURE__ */ l(Le, { sx: { gap: 8, p: 24 }, children: [
28117
+ /* @__PURE__ */ l(Me, { sx: { gap: 8, p: 24 }, children: [
28118
28118
  /* @__PURE__ */ t(
28119
28119
  Et,
28120
28120
  {
@@ -28125,7 +28125,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28125
28125
  ),
28126
28126
  /* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "Small", children: e.accounts.memberName }),
28127
28127
  /* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "H2", children: e.accounts.user_name || e.accounts.name }),
28128
- /* @__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: [
28129
28129
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: _.overview.current_balance }),
28130
28130
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: e.accounts.balance?.toLocaleString("en-US", {
28131
28131
  currency: "USD",
@@ -28136,7 +28136,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28136
28136
  ] })
28137
28137
  ] }),
28138
28138
  /* @__PURE__ */ l(
28139
- Le,
28139
+ Me,
28140
28140
  {
28141
28141
  sx: {
28142
28142
  bgcolor: "background.default",
@@ -28177,10 +28177,10 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28177
28177
  borderColor: "border.main"
28178
28178
  }
28179
28179
  ],
28180
- children: /* @__PURE__ */ l(Le, { sx: { flexDirection: "row", width: "100%" }, children: [
28180
+ children: /* @__PURE__ */ l(Me, { sx: { flexDirection: "row", width: "100%" }, children: [
28181
28181
  /* @__PURE__ */ t("div", { style: { width: 24 } }),
28182
28182
  /* @__PURE__ */ l(
28183
- Le,
28183
+ Me,
28184
28184
  {
28185
28185
  sx: [
28186
28186
  {
@@ -28198,21 +28198,21 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28198
28198
  ],
28199
28199
  children: [
28200
28200
  /* @__PURE__ */ t(
28201
- Le,
28201
+ Me,
28202
28202
  {
28203
28203
  sx: {
28204
28204
  alignItems: "center",
28205
28205
  flexDirection: "row",
28206
28206
  gap: 12
28207
28207
  },
28208
- children: /* @__PURE__ */ l(Le, { sx: { overflow: "hidden", width: 98 }, children: [
28208
+ children: /* @__PURE__ */ l(Me, { sx: { overflow: "hidden", width: 98 }, children: [
28209
28209
  /* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: "Body", children: p.holding }),
28210
28210
  /* @__PURE__ */ t(f, { variant: "XSmall", children: p.description })
28211
28211
  ] })
28212
28212
  }
28213
28213
  ),
28214
28214
  /* @__PURE__ */ l(
28215
- Le,
28215
+ Me,
28216
28216
  {
28217
28217
  sx: {
28218
28218
  alignItems: "center",
@@ -28222,14 +28222,14 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28222
28222
  justifyContent: "flex-end"
28223
28223
  },
28224
28224
  children: [
28225
- /* @__PURE__ */ l(Le, { children: [
28225
+ /* @__PURE__ */ l(Me, { children: [
28226
28226
  /* @__PURE__ */ t(f, { sx: { fontWeight: 600, textAlign: "right" }, variant: "Body", children: p.marketValue?.toLocaleString("en-US", {
28227
28227
  currency: "USD",
28228
28228
  maximumFractionDigits: 2,
28229
28229
  minimumFractionDigits: 2,
28230
28230
  style: "currency"
28231
28231
  }) }),
28232
- /* @__PURE__ */ l(Le, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
28232
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
28233
28233
  p.totalGainLoss !== 0 && /* @__PURE__ */ t(
28234
28234
  pt,
28235
28235
  {
@@ -28289,7 +28289,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28289
28289
  }
28290
28290
  ),
28291
28291
  /* @__PURE__ */ t(Pi, { children: /* @__PURE__ */ l(
28292
- Le,
28292
+ Me,
28293
28293
  {
28294
28294
  sx: {
28295
28295
  alignItems: "center",
@@ -28298,10 +28298,10 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28298
28298
  pl: 24
28299
28299
  },
28300
28300
  children: [
28301
- /* @__PURE__ */ t(Le, { sx: { width: 32 } }),
28302
- /* @__PURE__ */ l(Le, { sx: { flex: 1 }, children: [
28301
+ /* @__PURE__ */ t(Me, { sx: { width: 32 } }),
28302
+ /* @__PURE__ */ l(Me, { sx: { flex: 1 }, children: [
28303
28303
  /* @__PURE__ */ l(
28304
- Le,
28304
+ Me,
28305
28305
  {
28306
28306
  sx: {
28307
28307
  alignItems: "center",
@@ -28319,7 +28319,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28319
28319
  }
28320
28320
  ),
28321
28321
  /* @__PURE__ */ l(
28322
- Le,
28322
+ Me,
28323
28323
  {
28324
28324
  sx: {
28325
28325
  alignItems: "center",
@@ -28331,7 +28331,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28331
28331
  children: [
28332
28332
  /* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "Body", children: _.overview.cost_basis_header }),
28333
28333
  /* @__PURE__ */ l(
28334
- Le,
28334
+ Me,
28335
28335
  {
28336
28336
  direction: "row",
28337
28337
  sx: {
@@ -28605,8 +28605,8 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28605
28605
  }, 0), ze = () => {
28606
28606
  o(!1);
28607
28607
  };
28608
- return C ? /* @__PURE__ */ l(Le, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
28609
- !!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: [
28610
28610
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, children: p.overview.total_portfolio }),
28611
28611
  /* @__PURE__ */ t(Zt, { children: xe.toLocaleString("en-US", {
28612
28612
  currency: "USD",
@@ -28614,7 +28614,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28614
28614
  minimumFractionDigits: 2,
28615
28615
  style: "currency"
28616
28616
  }) }),
28617
- /* @__PURE__ */ l(Le, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
28617
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
28618
28618
  /* @__PURE__ */ t(
28619
28619
  pt,
28620
28620
  {
@@ -28666,7 +28666,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28666
28666
  overflow: "hidden"
28667
28667
  },
28668
28668
  children: /* @__PURE__ */ l(
28669
- Le,
28669
+ Me,
28670
28670
  {
28671
28671
  sx: {
28672
28672
  border: 1,
@@ -28679,7 +28679,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28679
28679
  },
28680
28680
  children: [
28681
28681
  /* @__PURE__ */ l(
28682
- Le,
28682
+ Me,
28683
28683
  {
28684
28684
  sx: {
28685
28685
  alignItems: "center",
@@ -28699,7 +28699,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28699
28699
  size: 32
28700
28700
  }
28701
28701
  ),
28702
- /* @__PURE__ */ l(Le, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
28702
+ /* @__PURE__ */ l(Me, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
28703
28703
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: K.memberName }),
28704
28704
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: K.user_name || K.name })
28705
28705
  ] })
@@ -28707,7 +28707,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28707
28707
  }
28708
28708
  ),
28709
28709
  /* @__PURE__ */ l(
28710
- Le,
28710
+ Me,
28711
28711
  {
28712
28712
  sx: {
28713
28713
  alignItems: "center",
@@ -28718,7 +28718,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28718
28718
  },
28719
28719
  children: [
28720
28720
  /* @__PURE__ */ l(
28721
- Le,
28721
+ Me,
28722
28722
  {
28723
28723
  sx: {
28724
28724
  alignItems: "center",
@@ -28734,7 +28734,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28734
28734
  children: [
28735
28735
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary", fontSize: 11 }, variant: "Small", children: p.overview.total_gain_Loss }),
28736
28736
  /* @__PURE__ */ l(
28737
- Le,
28737
+ Me,
28738
28738
  {
28739
28739
  sx: {
28740
28740
  alignItems: "center",
@@ -28789,7 +28789,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28789
28789
  }
28790
28790
  ),
28791
28791
  /* @__PURE__ */ l(
28792
- Le,
28792
+ Me,
28793
28793
  {
28794
28794
  sx: {
28795
28795
  alignItems: "center",
@@ -28848,7 +28848,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28848
28848
  ],
28849
28849
  children: [
28850
28850
  /* @__PURE__ */ l(
28851
- Le,
28851
+ Me,
28852
28852
  {
28853
28853
  sx: {
28854
28854
  alignItems: "center",
@@ -28867,18 +28867,18 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28867
28867
  size: 32
28868
28868
  }
28869
28869
  ),
28870
- /* @__PURE__ */ l(Le, { sx: { alignItems: "flex-start" }, children: [
28870
+ /* @__PURE__ */ l(Me, { sx: { alignItems: "flex-start" }, children: [
28871
28871
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: K.memberName }),
28872
28872
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: K.user_name || K.name })
28873
28873
  ] })
28874
28874
  ]
28875
28875
  }
28876
28876
  ),
28877
- /* @__PURE__ */ l(Le, { sx: { flexDirection: "row" }, children: [
28878
- /* @__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: [
28879
28879
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_gain_Loss }),
28880
28880
  /* @__PURE__ */ l(
28881
- Le,
28881
+ Me,
28882
28882
  {
28883
28883
  sx: {
28884
28884
  alignItems: "center",
@@ -28930,7 +28930,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28930
28930
  }
28931
28931
  )
28932
28932
  ] }),
28933
- /* @__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: [
28934
28934
  /* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_value }),
28935
28935
  /* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: Ae?.toLocaleString("en-US", {
28936
28936
  currency: "USD",
@@ -29469,7 +29469,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29469
29469
  e.palette.chartMono.chartMono1,
29470
29470
  e.palette.chartMono.chartMono6
29471
29471
  ], vy = () => {
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 } = 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);
29473
29473
  g.useEffect(() => {
29474
29474
  o(
29475
29475
  d,
@@ -29868,7 +29868,7 @@ export {
29868
29868
  ot as useRecurringTransactionsStore,
29869
29869
  be as useScreenSize,
29870
29870
  bt as useSettingsStore,
29871
- Me as useTransactionStore,
29871
+ Le as useTransactionStore,
29872
29872
  Ot as useTransactionsUiStore,
29873
29873
  gi as useTrendsStore,
29874
29874
  Ct as useUserStore,