@mx-cartographer/experiences 7.2.15-alpha.sms4 → 7.3.0-alpha.sms1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/{Account-vp_TAbGt.mjs → Account-Bxw0_4FU.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-Vj4LO6cx.mjs → AccountDetailsContent-CAM9y39M.mjs} +6 -6
  3. package/dist/{AccountDetailsHeader-Df1JkzYi.mjs → AccountDetailsHeader-JtSX6Uf9.mjs} +4 -4
  4. package/dist/{AccountFields-DUToRRqW.mjs → AccountFields-C9FlatNb.mjs} +2 -2
  5. package/dist/{AccountListItem-CeY_WIpj.mjs → AccountListItem-JFMZROh7.mjs} +7 -7
  6. package/dist/{AccountStore-BkoLK9Tq.mjs → AccountStore-BgNOyMdp.mjs} +74 -100
  7. package/dist/Accounts-BRf_YeTf.mjs +27 -0
  8. package/dist/CategoryStore-yHI0hWmK.mjs +174 -0
  9. package/dist/CategoryUtil-pZRIYOgN.mjs +80 -0
  10. package/dist/{ConnectDrawer-Bw5s6Dw1.mjs → ConnectDrawer-BQNs-hjk.mjs} +9 -9
  11. package/dist/{ConnectionsDrawer-BDvVuJQf.mjs → ConnectionsDrawer-ByGQE7D5.mjs} +3 -3
  12. package/dist/{DebtsStore-BD_XwsI7.mjs → DebtsStore-C9bblOgW.mjs} +1 -1
  13. package/dist/{GoalStore-DZ_Jvsa_.mjs → GoalStore-D-aB35SY.mjs} +151 -111
  14. package/dist/{ManageIncome-B9yGuahc.mjs → ManageIncome-1s_q5W4X.mjs} +3 -3
  15. package/dist/{NetWorthStore-D1NiDUcc.mjs → NetWorthStore-DCsTZpuS.mjs} +2 -2
  16. package/dist/{NotificationStore-C6PH6MKm.mjs → NotificationStore-BxP_P2dA.mjs} +23 -15
  17. package/dist/{RecurringSettings-D9GFcsXV.mjs → RecurringSettings-A_rAGCTP.mjs} +3 -3
  18. package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-DK8dWldr.mjs} +3 -3
  19. package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4YOD7_D.mjs} +29 -26
  20. package/dist/{TransactionDetails-BqCr2FTh.mjs → TransactionDetails-oP1eSuiS.mjs} +43 -43
  21. package/dist/TransactionStore-ai3uII_r.mjs +690 -0
  22. package/dist/{WidgetContainer-EbrN1oIo.mjs → WidgetContainer-BHWANqT4.mjs} +1 -1
  23. package/dist/accounts/index.es.js +29 -29
  24. package/dist/accounts/stores/AccountStore.d.ts +25 -22
  25. package/dist/accounts/utils/Accounts.d.ts +2 -1
  26. package/dist/budgets/index.es.js +4 -4
  27. package/dist/budgets/store/BudgetsStore.d.ts +1 -0
  28. package/dist/cashflow/index.es.js +6 -6
  29. package/dist/categories/index.es.js +1 -1
  30. package/dist/categories/stores/CategoryStore.d.ts +5 -1
  31. package/dist/categories/util/CategoryUtil.d.ts +3 -2
  32. package/dist/common/index.es.js +206 -219
  33. package/dist/common/stores/AppDataStore.d.ts +3 -1
  34. package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
  35. package/dist/common/stores/GlobalStore.d.ts +3 -6
  36. package/dist/common/stores/UserStore.d.ts +3 -2
  37. package/dist/common/types/Account.d.ts +9 -6
  38. package/dist/dashboard/index.es.js +1 -1
  39. package/dist/debts/index.es.js +5 -5
  40. package/dist/finstrong/index.es.js +4 -4
  41. package/dist/goals/index.es.js +7 -7
  42. package/dist/goals/stores/GoalStore.d.ts +17 -4
  43. package/dist/help/index.es.js +1 -1
  44. package/dist/investments/index.es.js +2 -2
  45. package/dist/investments/stores/HoldingStore.d.ts +1 -0
  46. package/dist/networth/index.es.js +4 -4
  47. package/dist/notifications/index.es.js +2 -2
  48. package/dist/notifications/stores/NotificationStore.d.ts +3 -1
  49. package/dist/recurringtransactions/index.es.js +8 -8
  50. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +3 -2
  51. package/dist/settings/index.es.js +1 -1
  52. package/dist/spending/index.es.js +3 -3
  53. package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +2 -2
  54. package/dist/transactions/index.es.js +6 -6
  55. package/dist/transactions/stores/TransactionStore.d.ts +21 -77
  56. package/dist/trends/index.es.js +4 -4
  57. package/dist/{useAccountDisplayName-jS05A6-6.mjs → useAccountDisplayName-BUAApBIb.mjs} +1 -1
  58. package/package.json +4 -4
  59. package/dist/Accounts-C1QxUB-e.mjs +0 -9
  60. package/dist/CategoryStore-BCcpI3oJ.mjs +0 -183
  61. package/dist/CategoryUtil-BR3H5i6n.mjs +0 -78
  62. package/dist/TransactionStore-RGu9PZK8.mjs +0 -677
@@ -1,31 +1,31 @@
1
1
  import { jsxs as n, jsx as e, Fragment as G } from "react/jsx-runtime";
2
2
  import d from "react";
3
- import { observer as g } from "mobx-react-lite";
3
+ import { observer as M } from "mobx-react-lite";
4
4
  import B from "@mui/material/Box";
5
5
  import A from "@mui/material/Divider";
6
6
  import E from "@mui/material/List";
7
7
  import O from "@mui/material/ListSubheader";
8
8
  import _ from "@mui/system/Stack";
9
9
  import { Text as v } from "@mxenabled/mxui";
10
- import { A as K } from "../AccountDetailsContent-Vj4LO6cx.mjs";
11
- import { u as D1 } from "../AccountDetailsContent-Vj4LO6cx.mjs";
12
- import { u as z, A as P } from "../AccountDetailsHeader-Df1JkzYi.mjs";
13
- import { A as W } from "../AccountListItem-CeY_WIpj.mjs";
14
- import { a as Y } from "../AccountFields-DUToRRqW.mjs";
15
- import { g as U1, b as $1 } from "../AccountFields-DUToRRqW.mjs";
10
+ import { A as K } from "../AccountDetailsContent-CAM9y39M.mjs";
11
+ import { u as D1 } from "../AccountDetailsContent-CAM9y39M.mjs";
12
+ import { u as z, A as P } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
13
+ import { A as W } from "../AccountListItem-JFMZROh7.mjs";
14
+ import { a as Y } from "../AccountFields-C9FlatNb.mjs";
15
+ import { g as U1, b as $1 } from "../AccountFields-C9FlatNb.mjs";
16
16
  import { u as w, b as S, d as T, g as D, a as q } from "../hooks-D6XlXHf4.mjs";
17
17
  import { f as I } from "../NumberFormatting-Buh7u8Oi.mjs";
18
18
  import { D as J } from "../Drawer-kEE73B87.mjs";
19
- import { A as y, W as Q } from "../WidgetContainer-EbrN1oIo.mjs";
20
- import { C as X } from "../ConnectionsDrawer-BDvVuJQf.mjs";
19
+ import { A as y, W as Q } from "../WidgetContainer-BHWANqT4.mjs";
20
+ import { C as X } from "../ConnectionsDrawer-ByGQE7D5.mjs";
21
21
  import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
22
- import { L as R } from "../Loader-DUaFpDGv.mjs";
23
- import { l as U, m as e1 } from "../ConnectDrawer-Bw5s6Dw1.mjs";
24
- import { F as G1, M as K1 } from "../ConnectDrawer-Bw5s6Dw1.mjs";
22
+ import { L as g } from "../Loader-DUaFpDGv.mjs";
23
+ import { l as U, m as e1 } from "../ConnectDrawer-BQNs-hjk.mjs";
24
+ import { F as G1, f as K1 } from "../ConnectDrawer-BQNs-hjk.mjs";
25
25
  import t1 from "@mui/material/ListItem";
26
26
  import { M as $ } from "../MiniWidgetContainer-D0gfmbaF.mjs";
27
27
  import l1 from "@mui/material/Stack";
28
- import { A as P1, a as Y1 } from "../AccountStore-BkoLK9Tq.mjs";
28
+ import { A as P1, a as Y1 } from "../AccountStore-BgNOyMdp.mjs";
29
29
  const i1 = () => {
30
30
  const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
31
31
  () => l.filter((t) => t.is_hidden),
@@ -33,7 +33,7 @@ const i1 = () => {
33
33
  ), p = d.useMemo(
34
34
  () => l.filter((t) => t.is_closed),
35
35
  [l]
36
- ), M = u.reduce(
36
+ ), R = u.reduce(
37
37
  (t, i) => (i.available_balance || i.balance || 0) + t,
38
38
  0
39
39
  ), b = Y(p, C);
@@ -50,7 +50,7 @@ const i1 = () => {
50
50
  account_type: t.account_type
51
51
  });
52
52
  }, m = (t) => {
53
- const i = t === "hidden" ? u : p, k = t === "hidden" ? M : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
53
+ const i = t === "hidden" ? u : p, k = t === "hidden" ? R : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
54
54
  return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
55
55
  E,
56
56
  {
@@ -166,10 +166,10 @@ const i1 = () => {
166
166
  }
167
167
  )
168
168
  ] });
169
- }, n1 = g(i1), C1 = ({ onBackClick: c, sx: H = {} }) => {
170
- const [C, l] = d.useState(!1), [h, r] = d.useState(!1), { config: L } = q(), { accounts: f } = T(), { accounts: s, connect: a } = w(), { isCopyLoaded: u, isInitialized: p, setSelectedAccounts: M, selectedAccountGuids: b } = S(), { isDesktop: Z } = N(), { onEvent: m } = D();
169
+ }, n1 = M(i1), C1 = ({ onBackClick: c, sx: H = {} }) => {
170
+ const [C, l] = d.useState(!1), [h, r] = d.useState(!1), { config: L } = q(), { accounts: f } = T(), { accounts: s, connect: a } = w(), { isCopyLoaded: u, isInitialized: p, setSelectedAccounts: R, selectedAccountGuids: b } = S(), { isDesktop: Z } = N(), { onEvent: m } = D();
171
171
  d.useEffect(() => {
172
- M(f);
172
+ R(f);
173
173
  }, [f]);
174
174
  const t = () => {
175
175
  l(!0), m(y.ACCOUNTS_CLICK_CONNECT);
@@ -213,10 +213,10 @@ const i1 = () => {
213
213
  title: s.manage_connections
214
214
  }
215
215
  )
216
- ] }) : /* @__PURE__ */ e(R, {})
216
+ ] }) : /* @__PURE__ */ e(g, {})
217
217
  }
218
- ) : /* @__PURE__ */ e(R, {});
219
- }, E1 = g(C1), o1 = ({ onPrimaryCtaClick: c, sx: H }) => {
218
+ ) : /* @__PURE__ */ e(g, {});
219
+ }, E1 = M(C1), o1 = ({ onPrimaryCtaClick: c, sx: H }) => {
220
220
  const { visibleAccounts: C } = T(), { accounts: l } = w(), { isCopyLoaded: h, isInitialized: r, selectedAccounts: L, setSelectedAccounts: f } = S(), { isDesktop: s } = N();
221
221
  d.useEffect(() => {
222
222
  f(C);
@@ -236,7 +236,7 @@ const i1 = () => {
236
236
  children: r ? /* @__PURE__ */ n(E, { children: [
237
237
  L.length === 0 && /* @__PURE__ */ e(t1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
238
238
  a.map((u, p) => {
239
- const M = a.indexOf(u) === a.length - 1;
239
+ const R = a.indexOf(u) === a.length - 1;
240
240
  return /* @__PURE__ */ n(d.Fragment, { children: [
241
241
  /* @__PURE__ */ e(
242
242
  W,
@@ -246,13 +246,13 @@ const i1 = () => {
246
246
  shouldShowConnectionStatus: !0
247
247
  }
248
248
  ),
249
- !M && /* @__PURE__ */ e(A, { "aria-hidden": "true", variant: "inset" })
249
+ !R && /* @__PURE__ */ e(A, { "aria-hidden": "true", variant: "inset" })
250
250
  ] }, `account-item${p}`);
251
251
  })
252
- ] }) : /* @__PURE__ */ e(R, {})
252
+ ] }) : /* @__PURE__ */ e(g, {})
253
253
  }
254
- ) : /* @__PURE__ */ e(R, {});
255
- }, W1 = g(o1), d1 = () => /* @__PURE__ */ n(
254
+ ) : /* @__PURE__ */ e(g, {});
255
+ }, W1 = M(o1), d1 = () => /* @__PURE__ */ n(
256
256
  "svg",
257
257
  {
258
258
  fill: "none",
@@ -708,7 +708,7 @@ const i1 = () => {
708
708
  }
709
709
  )
710
710
  ] });
711
- }, s1 = g(c1), a1 = ({
711
+ }, s1 = M(c1), a1 = ({
712
712
  onPrimaryCtaClick: c = () => {
713
713
  },
714
714
  sx: H
@@ -736,8 +736,8 @@ const i1 = () => {
736
736
  )
737
737
  ]
738
738
  }
739
- ) : /* @__PURE__ */ e(R, {});
740
- }, T1 = g(a1);
739
+ ) : /* @__PURE__ */ e(g, {});
740
+ }, T1 = M(a1);
741
741
  export {
742
742
  P1 as AccountApi,
743
743
  K as AccountDetailsContent,
@@ -1,42 +1,45 @@
1
- import { Account, GlobalStore, Institution, Member } from '../../common';
1
+ import { Account, DetailedAccount, Institution, Member, GlobalStore } from '../../common';
2
2
  import { AccountApi } from '../api/AccountApi';
3
3
  import { UiStore } from './UiStore';
4
4
  export declare class AccountStore {
5
5
  globalStore: GlobalStore;
6
6
  api: AccountApi;
7
7
  accounts: Account[];
8
+ accountsLoaded: boolean;
8
9
  institutions: Institution[];
10
+ institutionsLoaded: boolean;
9
11
  members: Member[];
12
+ membersLoaded: boolean;
10
13
  uiStore: UiStore;
11
14
  constructor(globalStore: GlobalStore);
12
- loadAccountData: ({ accounts, institutions, }?: {
13
- accounts?: Account[];
14
- institutions?: Institution[];
15
- }) => Promise<void>;
16
- get cashAccounts(): Account[];
15
+ loadAccountData: () => Promise<void>;
16
+ get isAccountDataLoaded(): boolean;
17
+ get detailedAccounts(): DetailedAccount[];
18
+ get cashAccounts(): DetailedAccount[];
17
19
  get cashBalance(): number;
18
- get checkingAccounts(): Account[];
19
- get debtAccounts(): Account[];
20
- get finstrongAccounts(): Account[];
21
- get investmentAccounts(): Account[];
22
- get savingsAccounts(): Account[];
20
+ get checkingAccounts(): DetailedAccount[];
21
+ get debtAccounts(): DetailedAccount[];
22
+ get finstrongAccounts(): DetailedAccount[];
23
+ get investmentAccounts(): DetailedAccount[];
24
+ get savingsAccounts(): DetailedAccount[];
23
25
  get retirementAccounts(): Account[];
24
- get visibleAccounts(): Account[];
25
- get visibleCashAccounts(): Account[];
26
+ get visibleAccounts(): DetailedAccount[];
27
+ get visibleCashAccounts(): DetailedAccount[];
26
28
  get visibleCashBalance(): number;
27
- get visibleCheckingAccounts(): Account[];
28
- get visibleDebtAccounts(): Account[];
29
- get visibleFinstrongAccounts(): Account[];
29
+ get visibleCheckingAccounts(): DetailedAccount[];
30
+ get visibleDebtAccounts(): DetailedAccount[];
31
+ get visibleFinstrongAccounts(): DetailedAccount[];
30
32
  get visibleRetirementAccounts(): Account[];
31
- get visibleInvestmentAccounts(): Account[];
32
- get visibleSavingsAccounts(): Account[];
33
+ get visibleInvestmentAccounts(): DetailedAccount[];
34
+ get visibleSavingsAccounts(): DetailedAccount[];
35
+ setAccounts: (accounts: Account[]) => void;
36
+ setMembers: (members: Member[]) => void;
37
+ setInstitutions: (institutions: Institution[]) => void;
33
38
  addAccount: (account: Account) => Promise<void>;
34
- augmentAccounts: (accounts?: Account[]) => Account[];
35
- loadAccounts: (accountsOverride?: Account[]) => Promise<void>;
36
- loadInstitutions: (institutionsOverride?: Institution[]) => Promise<void>;
39
+ loadAccounts: () => Promise<void>;
40
+ loadInstitutions: () => Promise<void>;
37
41
  loadMembers: () => Promise<void>;
38
42
  mergeAccounts: (accountGuids: string[]) => Promise<void>;
39
- sortAccounts: (accounts?: Account[]) => Account[];
40
43
  refreshAccounts: () => Promise<void>;
41
44
  refreshMembers: () => Promise<void>;
42
45
  removeAccount: (accountGuid: string) => Promise<void>;
@@ -1,6 +1,7 @@
1
- import { Account } from '../../common/types';
1
+ import { Account, DetailedAccount, Institution, Member } from '../../common';
2
2
  export declare const isAccountLiability: (account: Account) => boolean;
3
3
  export declare const isManual: (account: Account) => boolean;
4
4
  export declare const usesCreditLimitField: (account: Account) => boolean;
5
5
  export declare const usesInterestRateField: (account: Account) => boolean;
6
6
  export declare const usesOriginalBalanceField: (account: Account) => boolean;
7
+ export declare const augmentAccounts: (accounts: Account[], institutions: Institution[], members: Member[], shouldExcludeExternalAccounts: boolean) => DetailedAccount[];
@@ -21,14 +21,14 @@ import { D as $ } from "../Drawer-kEE73B87.mjs";
21
21
  import Fe from "@mui/material/ListItemSecondaryAction";
22
22
  import { C as He } from "../CurrencyInput-DUsQbkXb.mjs";
23
23
  import { a as j } from "../Dialog-CWW597AF.mjs";
24
- import { C as We } from "../ConnectionsDrawer-BDvVuJQf.mjs";
24
+ import { C as We } from "../ConnectionsDrawer-ByGQE7D5.mjs";
25
25
  import * as O from "d3";
26
26
  import Ke from "@mui/material/Tooltip";
27
27
  import { useTheme as Xe } from "@mui/material/styles";
28
28
  import { u as ie } from "../useScreenSize-B6JyS_Lj.mjs";
29
29
  import { L as z } from "../Loader-DUaFpDGv.mjs";
30
30
  import { E as ue } from "../EmptyState-DA_lfRBv.mjs";
31
- import { A as k, W as Ve } from "../WidgetContainer-EbrN1oIo.mjs";
31
+ import { A as k, W as Ve } from "../WidgetContainer-BHWANqT4.mjs";
32
32
  import { u as Ye } from "../BudgetUtil-B2ZXyw-g.mjs";
33
33
  import { M as Ze } from "../MiniWidgetContainer-D0gfmbaF.mjs";
34
34
  import { isAfter as qe } from "date-fns/isAfter";
@@ -38,7 +38,7 @@ import Qe from "@mui/material/Snackbar";
38
38
  import _e from "@mui/material/Tab";
39
39
  import et from "@mui/material/Tabs";
40
40
  import { e as tt } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
41
- import { T as we, a as nt } from "../TransactionDetails-BqCr2FTh.mjs";
41
+ import { T as we, a as nt } from "../TransactionDetails-oP1eSuiS.mjs";
42
42
  import he from "@mui/material/Card";
43
43
  import fe from "@mui/material/CardContent";
44
44
  import { S as pe } from "../StatusBar-BK_uYHAB.mjs";
@@ -47,7 +47,7 @@ import { u as ot, b as at } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
47
47
  import Ie from "@mui/material/CardHeader";
48
48
  import { subDays as rt } from "date-fns/subDays";
49
49
  import st from "@mui/material/IconButton";
50
- import { M as it } from "../ManageIncome-B9yGuahc.mjs";
50
+ import { M as it } from "../ManageIncome-1s_q5W4X.mjs";
51
51
  const ct = I(() => {
52
52
  const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = te(), s = i - o;
53
53
  return /* @__PURE__ */ g(B, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
@@ -21,6 +21,7 @@ export declare class BudgetsStore {
21
21
  deleteBudget: (guid: string) => Promise<void>;
22
22
  loadBudgets: () => Promise<void>;
23
23
  setAlert: (alert: string) => string;
24
+ setBudgets: (budgets: Budget[]) => void;
24
25
  setDateRange: (dateRange: DateRange) => DateRange;
25
26
  setSelectedBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
26
27
  setSelectedSubBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
@@ -17,13 +17,13 @@ import { C as jn } from "../CashflowStore-D9Dpuz7X.mjs";
17
17
  import { b as M } from "../Localization-2MODESHW.mjs";
18
18
  import { M as Ke } from "../MiniWidgetContainer-D0gfmbaF.mjs";
19
19
  import { E as Je } from "../EmptyState-DA_lfRBv.mjs";
20
- import { R as Ze } from "../RecurringSettings-D9GFcsXV.mjs";
20
+ import { R as Ze } from "../RecurringSettings-A_rAGCTP.mjs";
21
21
  import et from "@mui/material/Tabs";
22
22
  import Ce from "@mui/material/Tab";
23
23
  import { getUnixTime as U } from "date-fns/getUnixTime";
24
24
  import ne from "@mui/material/List";
25
25
  import ae from "@mui/material/ListItem";
26
- import { A as tt } from "../AccountListItem-CeY_WIpj.mjs";
26
+ import { A as tt } from "../AccountListItem-JFMZROh7.mjs";
27
27
  import { f as Y, D as Q } from "../Dialog-CWW597AF.mjs";
28
28
  import nt from "@mui/material/ListSubheader";
29
29
  import { f as te } from "../NumberFormatting-Buh7u8Oi.mjs";
@@ -35,17 +35,17 @@ import { alpha as ot, keyframes as at } from "@mui/material/styles";
35
35
  import { DataGridPro as it } from "@mui/x-data-grid-pro";
36
36
  import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
37
37
  import G from "@mui/material/Button";
38
- import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-B9yGuahc.mjs";
38
+ import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-1s_q5W4X.mjs";
39
39
  import { D as Ge } from "../Drawer-kEE73B87.mjs";
40
40
  import { formatISO as dt } from "date-fns/formatISO";
41
41
  import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
42
42
  import { startOfMonth as mt } from "date-fns/startOfMonth";
43
43
  import { subDays as je } from "date-fns/subDays";
44
- import { S as ut, b as ht } from "../TransactionDetails-BqCr2FTh.mjs";
45
- import { F as pt, R as De, e as ve } from "../RecurringTransactions-ej39mgA6.mjs";
44
+ import { S as ut, b as ht } from "../TransactionDetails-oP1eSuiS.mjs";
45
+ import { F as pt, R as De, e as ve } from "../RecurringTransactions-DK8dWldr.mjs";
46
46
  import { h as ft } from "../DateUtil-BcuH7ErC.mjs";
47
47
  import { endOfToday as gt } from "date-fns/endOfToday";
48
- import { W as Ae, A as Ee } from "../WidgetContainer-EbrN1oIo.mjs";
48
+ import { W as Ae, A as Ee } from "../WidgetContainer-BHWANqT4.mjs";
49
49
  import { F as bt, A as B } from "../Fetch-87LIQbEA.mjs";
50
50
  const V = () => {
51
51
  if (!f.useContext(Qe))
@@ -1,5 +1,5 @@
1
1
  import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
2
- import { C as g } from "../CategoryStore-BCcpI3oJ.mjs";
2
+ import { C as g } from "../CategoryStore-yHI0hWmK.mjs";
3
3
  export {
4
4
  o as CategoryRow,
5
5
  a as CategorySelector,
@@ -5,6 +5,7 @@ export declare class CategoryStore {
5
5
  uiStore: UiStore;
6
6
  api: CategoryApi;
7
7
  categories: Category[];
8
+ categoriesLoaded: boolean;
8
9
  dateRangeCategoryTotals: DateRangeCategoryTotals[];
9
10
  monthlyCategoryTotals: MonthlyCategoryTotals[];
10
11
  dataRangeTotalsLoaded: boolean;
@@ -16,8 +17,11 @@ export declare class CategoryStore {
16
17
  get incomeCategories(): DetailedCategory[];
17
18
  get spendCategories(): DetailedCategory[];
18
19
  get transferCategories(): DetailedCategory[];
20
+ setCategories: (categories: Category[]) => void;
21
+ setMonthlyCategoryTotals: (totals: MonthlyCategoryTotals[]) => void;
22
+ setDateRangeCategoryTotals: (totals: DateRangeCategoryTotals[]) => void;
19
23
  addCategory: (name: string, parentGuid: string) => Promise<void>;
20
- loadCategories: (categoriesOverride?: Category[]) => Promise<void>;
24
+ loadCategories: () => Promise<void>;
21
25
  loadDateRangeCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
22
26
  loadMonthlyCategoryTotals: (accounts?: Account[], startDate?: Date, endDate?: Date) => Promise<void>;
23
27
  reloadCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
@@ -1,12 +1,13 @@
1
1
  import { Theme } from '@mui/material';
2
- import { Category, DateRangeCategoryTotals, DetailedCategory, DetailedCategoryWithTransactions, MonthlyCategoryTotals, Transaction } from '../../common';
2
+ import { Category, DateRangeCategoryTotals, DetailedCategory, DetailedCategoryWithTransactions, MonthlyCategoryTotals, Transaction, CategoryCopy } from '../../common';
3
3
  /**
4
4
  * Augment categories
5
5
  * @param categories - Categories to augment
6
6
  * @param monthlyCategoryTotals - Monthly category totals
7
7
  * @param currentCategoryTotals - Current month category totals
8
+ * @param copy - Category copy
8
9
  */
9
- export declare const augmentCategories: (categories: Category[], currentCategoryTotals: DateRangeCategoryTotals[], monthlyCategoryTotals: MonthlyCategoryTotals[]) => DetailedCategory[];
10
+ export declare const augmentCategories: (categories: Category[], copy: CategoryCopy, currentCategoryTotals: DateRangeCategoryTotals[], monthlyCategoryTotals: MonthlyCategoryTotals[]) => DetailedCategory[];
10
11
  export declare const getCategoryColor: (guid: string, theme: Theme) => string;
11
12
  export declare const getCategoryIcon: (guid: string) => string | undefined;
12
13
  /**