@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,30 +1,30 @@
1
1
  import { makeAutoObservable as c, observable as f, runInAction as h } from "mobx";
2
2
  import { fromUnixTime as o, isSameDay as d } from "date-fns";
3
- import { F as l, A as n } from "./Fetch-87LIQbEA.mjs";
3
+ import { F as l, A as a } from "./Fetch-87LIQbEA.mjs";
4
4
  class s {
5
5
  fetchInstance;
6
- constructor(t, i, a) {
7
- this.fetchInstance = new l(t, i, void 0, a);
6
+ constructor(t, i, n) {
7
+ this.fetchInstance = new l(t, i, void 0, n);
8
8
  }
9
- getNotifications = () => this.fetchInstance.get(n.NOTIFICATIONS).then(
9
+ getNotifications = () => this.fetchInstance.get(a.NOTIFICATIONS).then(
10
10
  (t) => t.notifications.map((i) => i.notification)
11
11
  ).finally();
12
- updateNotification = (t) => this.fetchInstance.put(`${n.NOTIFICATIONS}/${t.guid}`, {
12
+ updateNotification = (t) => this.fetchInstance.put(`${a.NOTIFICATIONS}/${t.guid}`, {
13
13
  guid: t.guid,
14
14
  has_been_viewed: t.has_been_viewed
15
15
  }).then((i) => i.notification).finally();
16
16
  // Note: The notifications/mark_all_as_viewed endpoint is broken, but still returns 202.
17
17
  // A bug ticket has been filed to fix it, but should not require any changes here.
18
- markAllAsViewed = (t) => this.fetchInstance.put(`${n.NOTIFICATIONS}/mark_all_as_viewed`, { channel: t }).finally();
18
+ markAllAsViewed = (t) => this.fetchInstance.put(`${a.NOTIFICATIONS}/mark_all_as_viewed`, { channel: t }).finally();
19
19
  }
20
20
  const w = (e, t) => {
21
- const i = o(t[e].delivered_at), a = o(t[e - 1]?.delivered_at);
22
- return !d(i, a);
21
+ const i = o(t[e].delivered_at), n = o(t[e - 1]?.delivered_at);
22
+ return !d(i, n);
23
23
  };
24
24
  function u(e) {
25
25
  const i = Math.floor(Date.now() / 1e3);
26
- return e.filter((a) => {
27
- const r = a.delivered_at;
26
+ return e.filter((n) => {
27
+ const r = n.delivered_at;
28
28
  return i - r <= 604800;
29
29
  });
30
30
  }
@@ -33,7 +33,7 @@ class A {
33
33
  api = new s("/", "");
34
34
  isLoading = !0;
35
35
  notifications = [];
36
- recentNotifications = [];
36
+ notificationsLoaded = !1;
37
37
  constructor(t) {
38
38
  this.globalStore = t, this.api = new s(
39
39
  t.endpoint,
@@ -45,15 +45,23 @@ class A {
45
45
  get newNotifications() {
46
46
  return this.recentNotifications.filter((t) => !t.has_been_viewed);
47
47
  }
48
+ get recentNotifications() {
49
+ return u(this.notifications);
50
+ }
51
+ setNotifications = (t) => {
52
+ this.notifications = t, this.notificationsLoaded = !0;
53
+ };
48
54
  loadNotifications = async () => {
55
+ this.isLoading = !0;
49
56
  try {
50
- this.isLoading = !0;
51
57
  const t = await this.api.getNotifications();
52
- h(() => {
53
- this.notifications = t, this.recentNotifications = u(t), this.isLoading = !1;
54
- });
58
+ this.setNotifications(t);
55
59
  } catch (t) {
56
60
  console.error(`Error occurred while loading notifications: ${t}`);
61
+ } finally {
62
+ h(() => {
63
+ this.isLoading = !1;
64
+ });
57
65
  }
58
66
  };
59
67
  markAllAsViewed = async () => {
@@ -7,10 +7,10 @@ import b from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-B9yGuahc.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-1s_q5W4X.mjs";
11
11
  import { u as _, j as A, g as f } from "./hooks-D6XlXHf4.mjs";
12
- import { R as y, F as N } from "./RecurringTransactions-ej39mgA6.mjs";
13
- import { A as m } from "./WidgetContainer-EbrN1oIo.mjs";
12
+ import { R as y, F as N } from "./RecurringTransactions-DK8dWldr.mjs";
13
+ import { A as m } from "./WidgetContainer-BHWANqT4.mjs";
14
14
  const I = h(() => {
15
15
  const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
16
16
  o(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
@@ -281,10 +281,10 @@ export {
281
281
  s as F,
282
282
  Y as R,
283
283
  Re as S,
284
- p as a,
284
+ tt as a,
285
285
  et as b,
286
- O as c,
287
- tt as d,
286
+ p as c,
287
+ O as d,
288
288
  at as e,
289
289
  rt as f,
290
290
  ot as g
@@ -1,14 +1,14 @@
1
- import { makeAutoObservable as f, runInAction as i } from "mobx";
2
- import { endOfMonth as R } from "date-fns/endOfMonth";
1
+ import { makeAutoObservable as R, runInAction as o } from "mobx";
2
+ import { endOfMonth as f } from "date-fns/endOfMonth";
3
3
  import { isAfter as p } from "date-fns/isAfter";
4
4
  import { isBefore as I } from "date-fns/isBefore";
5
5
  import { isSameDay as g } from "date-fns/isSameDay";
6
6
  import { isWithinInterval as m } from "date-fns/isWithinInterval";
7
7
  import { startOfMonth as S } from "date-fns/startOfMonth";
8
- import { startOfToday as c } from "date-fns/startOfToday";
8
+ import { startOfToday as i } from "date-fns/startOfToday";
9
9
  import { subDays as y } from "date-fns/subDays";
10
- import { F as x, A as o } from "./Fetch-87LIQbEA.mjs";
11
- import { b as E, a, c as d, d as u } from "./RecurringTransactions-ej39mgA6.mjs";
10
+ import { F as x, A as c } from "./Fetch-87LIQbEA.mjs";
11
+ import { a as u, b as E, c as a, d } from "./RecurringTransactions-DK8dWldr.mjs";
12
12
  var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
13
13
  const U = 44;
14
14
  class h {
@@ -16,36 +16,42 @@ class h {
16
16
  constructor(e, t, n) {
17
17
  this.fetchInstance = new x(e, t, void 0, n);
18
18
  }
19
- addRepeatingTransaction = async (e) => this.fetchInstance.post(o.REPEATING_TRANSACTIONS, e).then((t) => t.repeating_transaction);
20
- getRepeatingTransactions = async () => this.fetchInstance.get(o.REPEATING_TRANSACTIONS).then((e) => e.repeating_transactions);
19
+ addRepeatingTransaction = async (e) => this.fetchInstance.post(c.REPEATING_TRANSACTIONS, e).then((t) => t.repeating_transaction);
20
+ getRepeatingTransactions = async () => this.fetchInstance.get(c.REPEATING_TRANSACTIONS).then((e) => e.repeating_transactions);
21
21
  updateRepeatingTransaction = async (e) => this.fetchInstance.put(
22
- `${o.REPEATING_TRANSACTIONS}/${e.guid}`,
22
+ `${c.REPEATING_TRANSACTIONS}/${e.guid}`,
23
23
  e
24
24
  ).then((t) => t.repeating_transaction);
25
- deleteRepeatingTransaction = async (e) => this.fetchInstance.delete(`${o.REPEATING_TRANSACTIONS}/${e}`).then((t) => t);
25
+ deleteRepeatingTransaction = async (e) => this.fetchInstance.delete(`${c.REPEATING_TRANSACTIONS}/${e}`).then((t) => t);
26
26
  }
27
27
  const l = (r, e) => m(e.expectedDate, r), s = (r, e) => r + e.amount;
28
28
  class C {
29
29
  globalStore;
30
30
  api = new h("/", "");
31
- transactions = [];
32
31
  repeatingTransactions = [];
33
- selectedDay;
34
- dateRange = { start: S(c()), end: R(c()) };
35
32
  isDataLoaded = !1;
33
+ selectedDay;
34
+ dateRange = { start: S(i()), end: f(i()) };
36
35
  constructor(e) {
37
36
  this.globalStore = e, this.api = new h(
38
37
  e.endpoint,
39
38
  e.sessionToken,
40
39
  e.onError
41
- ), f(this);
40
+ ), R(this);
41
+ }
42
+ get detailedRepeatingTransactions() {
43
+ return u(
44
+ this.globalStore.accountStore.visibleAccounts,
45
+ this.repeatingTransactions,
46
+ this.globalStore.transactionStore.transactions
47
+ );
42
48
  }
43
49
  /**
44
50
  * Returns all recurrences built from repeating transactions and filtered by accounts.
45
51
  */
46
52
  get recurrences() {
47
53
  const e = this.globalStore.accountStore.visibleAccounts;
48
- return E(this.repeatingTransactions, this.dateRange).filter((t) => e.some((n) => n.guid === t.accountGuid && !n.is_excluded_from_accounts)).filter((t) => m(t.expectedDate, this.dateRange));
54
+ return E(this.detailedRepeatingTransactions, this.dateRange).filter((t) => e.some((n) => n.guid === t.accountGuid && !n.is_excluded_from_accounts)).filter((t) => m(t.expectedDate, this.dateRange));
49
55
  }
50
56
  /**
51
57
  * Returns all recurrences that have occurred in the past, including those that are paid or missed
@@ -61,7 +67,7 @@ class C {
61
67
  */
62
68
  get upcomingRecurrences() {
63
69
  return this.recurrences.filter(
64
- (e) => p(e.expectedDate, y(c(), 3)) && I(e.expectedDate, this.dateRange.end) && e.status === a.Upcoming
70
+ (e) => p(e.expectedDate, y(i(), 3)) && I(e.expectedDate, this.dateRange.end) && e.status === a.Upcoming
65
71
  );
66
72
  }
67
73
  /**
@@ -97,7 +103,7 @@ class C {
97
103
  );
98
104
  }
99
105
  get nextIncomeRecurrence() {
100
- return this.upcomingIncome.find((e) => p(e.expectedDate, c()));
106
+ return this.upcomingIncome.find((e) => p(e.expectedDate, i()));
101
107
  }
102
108
  /**
103
109
  * Returns the expense recurrences for the current month.
@@ -165,6 +171,9 @@ class C {
165
171
  (e) => this.selectedDay && g(e.occurredOnDate || e.expectedDate, this.selectedDay)
166
172
  );
167
173
  }
174
+ setRepeatingTransactions = (e) => {
175
+ this.repeatingTransactions = e, this.isDataLoaded = !0;
176
+ };
168
177
  /**
169
178
  * Set the date range for filtering recurrences.
170
179
  * @param dateRange - The date range to set.
@@ -183,13 +192,7 @@ class C {
183
192
  loadRepeatingTransactions = async () => {
184
193
  try {
185
194
  const e = await this.api.getRepeatingTransactions();
186
- i(() => {
187
- this.repeatingTransactions = u(
188
- this.globalStore.accountStore.visibleAccounts,
189
- e,
190
- this.globalStore.transactionStore.transactions
191
- ), this.isDataLoaded = !0;
192
- });
195
+ this.setRepeatingTransactions(e);
193
196
  } catch (e) {
194
197
  console.error(`Error occurred while getting repeating transactions: ${e}`);
195
198
  }
@@ -205,7 +208,7 @@ class C {
205
208
  await this.globalStore.transactionStore.updateTransaction({
206
209
  ...t,
207
210
  repeating_transaction_guid: n.guid
208
- }), i(() => {
211
+ }), o(() => {
209
212
  this.repeatingTransactions = [
210
213
  ...this.repeatingTransactions,
211
214
  ...u(
@@ -225,7 +228,7 @@ class C {
225
228
  */
226
229
  deleteRepeatingTransaction = async (e) => {
227
230
  try {
228
- await this.api.deleteRepeatingTransaction(e), i(() => {
231
+ await this.api.deleteRepeatingTransaction(e), o(() => {
229
232
  this.repeatingTransactions = [
230
233
  ...this.repeatingTransactions.filter((t) => t.guid !== e)
231
234
  ];
@@ -244,7 +247,7 @@ class C {
244
247
  (T) => T.guid === t.guid
245
248
  );
246
249
  if (n < 0) return;
247
- i(() => {
250
+ o(() => {
248
251
  this.repeatingTransactions = [
249
252
  ...this.repeatingTransactions.slice(0, n),
250
253
  ...u(
@@ -17,7 +17,7 @@ import { fromUnixTime as W } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
18
  import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-EbrN1oIo.mjs";
20
+ import { A as P } from "./WidgetContainer-BHWANqT4.mjs";
21
21
  import ne from "@mui/material/Paper";
22
22
  import ce from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
@@ -218,7 +218,7 @@ const it = ({ transaction: t, onClick: r }) => {
218
218
  ]
219
219
  }
220
220
  ) }) });
221
- }, ka = b(ut), mt = ({ transaction: t }) => {
221
+ }, Ra = b(ut), mt = ({ transaction: t }) => {
222
222
  const { addOrUpdateTransactionRule: r, updateTransaction: a } = v(), { categories: s } = xe(), { onEvent: o } = L(), { setShouldDisableDrawerScroll: n, updateManualTransaction: c } = G(), { transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(""), p = async (C) => {
223
223
  await a({ ...t, category_guid: m }), C && await r(m, t), g(""), o(P.TRANSACTION_DETAILS_CLICK_CATEGORY, {
224
224
  transaction_guid: t.guid
@@ -360,7 +360,7 @@ const it = ({ transaction: t, onClick: r }) => {
360
360
  }
361
361
  )
362
362
  ] });
363
- }, pt = b(gt), ht = ({ transaction: t }) => {
363
+ }, pt = ({ transaction: t }) => {
364
364
  const { onEvent: r } = L(), { removeTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = async () => {
365
365
  await a(t.guid), r(h.ON_TRANSACTION_DELETE_DELETED);
366
366
  };
@@ -400,7 +400,7 @@ const it = ({ transaction: t, onClick: r }) => {
400
400
  }
401
401
  )
402
402
  ] });
403
- }, Tt = b(ht), yt = ({ transaction: t }) => {
403
+ }, ht = b(pt), Tt = ({ transaction: t }) => {
404
404
  const { onEvent: r } = L(), { updateTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = async () => {
405
405
  await a({ ...t, merchant_guid: "" }), r(P.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
406
406
  transaction_guid: t.guid
@@ -440,7 +440,7 @@ const it = ({ transaction: t, onClick: r }) => {
440
440
  }
441
441
  )
442
442
  ] });
443
- }, St = b(yt), Ct = ({ transaction: t }) => {
443
+ }, yt = b(Tt), St = ({ transaction: t }) => {
444
444
  const { onEvent: r } = L(), { updateTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = t.is_hidden, u = async () => {
445
445
  await a({ ...t, is_hidden: !t.is_hidden }), r(
446
446
  i ? h.ON_TRANSACTION_UNHIDDEN : h.ON_TRANSACTION_HIDDEN
@@ -510,7 +510,7 @@ const it = ({ transaction: t, onClick: r }) => {
510
510
  }
511
511
  )
512
512
  ] });
513
- }, ft = b(Ct), Le = ({ transaction: t }) => {
513
+ }, Ct = b(St), Le = ({ transaction: t }) => {
514
514
  const { amount: r, description: a, isIncome: s, merchant_guid: o, payee: n, top_level_category_guid: c } = t;
515
515
  return /* @__PURE__ */ l(f, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
516
516
  /* @__PURE__ */ e(
@@ -529,7 +529,7 @@ const it = ({ transaction: t, onClick: r }) => {
529
529
  ] })
530
530
  ] })
531
531
  ] });
532
- }, bt = ({ transaction: t }) => {
532
+ }, ft = ({ transaction: t }) => {
533
533
  const { onEvent: r } = L(), { updateTransaction: a } = v(), { updateManualTransaction: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), [i, u] = _.useState("");
534
534
  _.useEffect(() => {
535
535
  c && u(t.memo ? t.memo : "");
@@ -599,7 +599,7 @@ const it = ({ transaction: t, onClick: r }) => {
599
599
  }
600
600
  )
601
601
  ] });
602
- }, At = b(bt), xt = ({
602
+ }, bt = b(ft), At = ({
603
603
  index: t,
604
604
  onDeleteRow: r,
605
605
  onCategoryChanged: a,
@@ -701,7 +701,7 @@ const it = ({ transaction: t, onClick: r }) => {
701
701
  ]
702
702
  }
703
703
  );
704
- }, Nt = b(xt), It = ({
704
+ }, xt = b(At), Nt = ({
705
705
  onAddSplit: t,
706
706
  onCategoryChanged: r,
707
707
  onDeleteSplit: a,
@@ -719,7 +719,7 @@ const it = ({ transaction: t, onClick: r }) => {
719
719
  );
720
720
  }, [o]), /* @__PURE__ */ l(w, { className: "mx-txn-split-manager", children: [
721
721
  o.map((g, p) => /* @__PURE__ */ e(
722
- Nt,
722
+ xt,
723
723
  {
724
724
  index: p,
725
725
  onCategoryChanged: r,
@@ -753,7 +753,7 @@ const it = ({ transaction: t, onClick: r }) => {
753
753
  }
754
754
  ) })
755
755
  ] });
756
- }, Dt = b(It), vt = ({ transaction: t }) => {
756
+ }, It = b(Nt), Dt = ({ transaction: t }) => {
757
757
  const { onEvent: r } = L(), { splitTransaction: a, unSplitTransaction: s } = v(), { common: o, transactions: n } = A(), { setShouldDisableDrawerScroll: c } = G(), { categories: d } = xe(), i = {
758
758
  ...t,
759
759
  amount: t.amount - 1,
@@ -839,7 +839,7 @@ const it = ({ transaction: t, onClick: r }) => {
839
839
  children: [
840
840
  /* @__PURE__ */ e(Le, { transaction: t }),
841
841
  /* @__PURE__ */ e(
842
- Dt,
842
+ It,
843
843
  {
844
844
  onAddSplit: C,
845
845
  onCategoryChanged: $,
@@ -873,7 +873,7 @@ const it = ({ transaction: t, onClick: r }) => {
873
873
  }
874
874
  )
875
875
  ] });
876
- }, Et = b(vt), Ot = () => {
876
+ }, vt = b(Dt), Et = () => {
877
877
  const t = ve(), { onEvent: r } = L(), { addTag: a } = v(), { transactions: s } = A(), [o, n] = _.useState(!1), [c, d] = _.useState(""), [i, u] = _.useState(""), m = _.useRef(null);
878
878
  _.useEffect(() => {
879
879
  o && m?.current?.focus();
@@ -936,7 +936,7 @@ const it = ({ transaction: t, onClick: r }) => {
936
936
  }
937
937
  )
938
938
  ] });
939
- }, wt = b(Ot), Lt = ({ onSearchValueChanged: t, searchValue: r }) => {
939
+ }, Ot = b(Et), wt = ({ onSearchValueChanged: t, searchValue: r }) => {
940
940
  const { common: a, transactions: s } = A(), o = ee(), n = /* @__PURE__ */ e(
941
941
  Q,
942
942
  {
@@ -960,7 +960,7 @@ const it = ({ transaction: t, onClick: r }) => {
960
960
  value: r
961
961
  }
962
962
  ) });
963
- }, Rt = b(Lt), kt = ({ onTagChecked: t, selectedTags: r, tag: a }) => {
963
+ }, Lt = b(wt), Rt = ({ onTagChecked: t, selectedTags: r, tag: a }) => {
964
964
  const { onEvent: s } = L(), { removeTag: o, updateTag: n } = v(), { common: c, transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(!1), [p, x] = _.useState(""), [y, N] = _.useState(""), C = async () => {
965
965
  s(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), a && await n({ ...a, name: p }), u(!1);
966
966
  }, R = async () => {
@@ -1054,25 +1054,25 @@ const it = ({ transaction: t, onClick: r }) => {
1054
1054
  ]
1055
1055
  }
1056
1056
  );
1057
- }, Pt = b(kt), Gt = ({ selectedTags: t, onTagChecked: r }) => {
1057
+ }, kt = b(Rt), Pt = ({ selectedTags: t, onTagChecked: r }) => {
1058
1058
  const { tags: a } = v(), [s, o] = _.useState(""), n = a.filter(
1059
1059
  (c) => c.name.toLowerCase().includes(s.toLowerCase())
1060
1060
  );
1061
1061
  return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
1062
1062
  /* @__PURE__ */ e(
1063
- Rt,
1063
+ Lt,
1064
1064
  {
1065
1065
  onSearchValueChanged: (c) => o(c),
1066
1066
  searchValue: s
1067
1067
  }
1068
1068
  ),
1069
- /* @__PURE__ */ e(wt, {}),
1069
+ /* @__PURE__ */ e(Ot, {}),
1070
1070
  /* @__PURE__ */ e(ne, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(J, { children: n.map((c) => /* @__PURE__ */ l(_.Fragment, { children: [
1071
- /* @__PURE__ */ e(Pt, { onTagChecked: r, selectedTags: t, tag: c }),
1071
+ /* @__PURE__ */ e(kt, { onTagChecked: r, selectedTags: t, tag: c }),
1072
1072
  /* @__PURE__ */ e(Z, { sx: { ml: 24 } })
1073
1073
  ] }, c.guid)) }) })
1074
1074
  ] });
1075
- }, Mt = b(Gt), Kt = ({ transaction: t }) => {
1075
+ }, Gt = b(Pt), Mt = ({ transaction: t }) => {
1076
1076
  const { onEvent: r } = L(), { tags: a, updateTaggings: s, updateTransaction: o } = v(), { common: n, transactions: c } = A(), { updateManualTransaction: d } = G(), [i, u] = _.useState(!1), [m, g] = _.useState(t.tags);
1077
1077
  _.useEffect(() => {
1078
1078
  g(t.tags);
@@ -1123,11 +1123,11 @@ const it = ({ transaction: t, onClick: r }) => {
1123
1123
  primaryText: n.save_button,
1124
1124
  secondaryText: n.cancel_button,
1125
1125
  title: c.tags_title,
1126
- children: /* @__PURE__ */ e(Mt, { onTagChecked: p, selectedTags: m })
1126
+ children: /* @__PURE__ */ e(Gt, { onTagChecked: p, selectedTags: m })
1127
1127
  }
1128
1128
  )
1129
1129
  ] });
1130
- }, $t = b(Kt), Bt = ({ transaction: t, viewOnly: r = !1 }) => {
1130
+ }, Kt = b(Mt), $t = ({ transaction: t, viewOnly: r = !1 }) => {
1131
1131
  const { updateTransaction: a } = v(), { common: s, transactions: o } = A(), { onEvent: n } = L(), [c, d] = _.useState(!1), [i, u] = _.useState(""), m = _.useRef(null);
1132
1132
  _.useEffect(() => {
1133
1133
  c && (u(t.description), m?.current?.focus());
@@ -1178,7 +1178,7 @@ const it = ({ transaction: t, onClick: r }) => {
1178
1178
  }
1179
1179
  )
1180
1180
  ] }) });
1181
- }, Ft = b(Bt), Ht = ({ transaction: t }) => {
1181
+ }, Bt = b($t), Ft = ({ transaction: t }) => {
1182
1182
  const { updateTransaction: r } = v(), { transactions: a } = A(), { onEvent: s } = L(), o = ve(), n = async () => {
1183
1183
  s(P.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await r({ ...t, is_flagged: !t.is_flagged });
1184
1184
  };
@@ -1210,7 +1210,7 @@ const it = ({ transaction: t, onClick: r }) => {
1210
1210
  children: /* @__PURE__ */ e(We, { color: "inherit" })
1211
1211
  }
1212
1212
  ) });
1213
- }, zt = b(Ht), ae = (t, r, a, s = !0, o = "inset") => s ? /* @__PURE__ */ l(_.Fragment, { children: [
1213
+ }, Ht = b(Ft), ae = (t, r, a, s = !0, o = "inset") => s ? /* @__PURE__ */ l(_.Fragment, { children: [
1214
1214
  /* @__PURE__ */ l(F, { disableGutters: !0, disablePadding: !0, children: [
1215
1215
  /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
1216
1216
  /* @__PURE__ */ e(
@@ -1223,7 +1223,7 @@ const it = ({ transaction: t, onClick: r }) => {
1223
1223
  )
1224
1224
  ] }),
1225
1225
  /* @__PURE__ */ e(Z, { variant: o })
1226
- ] }) : null, Ut = ({ transaction: t }) => {
1226
+ ] }) : null, zt = ({ transaction: t }) => {
1227
1227
  const { transactions: r } = A(), { tags: a } = v(), s = _.useMemo(() => {
1228
1228
  const o = new Map(a.map((n) => [n.guid, n.name]));
1229
1229
  return t.tags.map((n) => o.get(n)).filter(Boolean).join(" / ");
@@ -1262,7 +1262,7 @@ const it = ({ transaction: t, onClick: r }) => {
1262
1262
  "fullWidth"
1263
1263
  )
1264
1264
  ] });
1265
- }, Xt = b(Ut), Vt = ({
1265
+ }, Ut = b(zt), Xt = ({
1266
1266
  bottomActions: t = at,
1267
1267
  topActions: r = tt,
1268
1268
  transaction: a
@@ -1284,51 +1284,51 @@ const it = ({ transaction: t, onClick: r }) => {
1284
1284
  size: 64
1285
1285
  }
1286
1286
  ) }),
1287
- /* @__PURE__ */ e(Ft, { transaction: a, viewOnly: d }),
1287
+ /* @__PURE__ */ e(Bt, { transaction: a, viewOnly: d }),
1288
1288
  /* @__PURE__ */ l(f, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
1289
1289
  /* @__PURE__ */ l(Ae, { color: a.isIncome ? "success.main" : "text.primary", children: [
1290
1290
  a.isIncome ? "+" : "",
1291
1291
  te(a.amount, "0,0.00")
1292
1292
  ] }),
1293
- !d && /* @__PURE__ */ e(zt, { transaction: a })
1293
+ !d && /* @__PURE__ */ e(Ht, { transaction: a })
1294
1294
  ] }),
1295
1295
  /* @__PURE__ */ l(f, { bgcolor: "background.highlight", borderRadius: "12px", gap: 4, p: 8, children: [
1296
1296
  /* @__PURE__ */ e(T, { bold: !0, children: `${a.account}
1297
1297
  ${c ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
1298
- /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.description || a.feed_description })
1298
+ /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.feed_description })
1299
1299
  ] })
1300
1300
  ] }),
1301
- /* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Xt, { transaction: a }) : /* @__PURE__ */ e(J, { children: r.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
1301
+ /* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Ut, { transaction: a }) : /* @__PURE__ */ e(J, { children: r.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
1302
1302
  i === q.Category && /* @__PURE__ */ e(mt, { transaction: a }),
1303
- i === q.Date && /* @__PURE__ */ e(pt, { transaction: a }),
1304
- i === q.Memo && /* @__PURE__ */ e(At, { transaction: a }),
1305
- i === q.Tags && /* @__PURE__ */ e($t, { transaction: a }),
1303
+ i === q.Date && /* @__PURE__ */ e(gt, { transaction: a }),
1304
+ i === q.Memo && /* @__PURE__ */ e(bt, { transaction: a }),
1305
+ i === q.Tags && /* @__PURE__ */ e(Kt, { transaction: a }),
1306
1306
  /* @__PURE__ */ e(Z, { variant: u < r.length - 1 ? "inset" : "fullWidth" })
1307
1307
  ] }, i)) }) }),
1308
1308
  !d && /* @__PURE__ */ l(_.Fragment, { children: [
1309
1309
  /* @__PURE__ */ e(T, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
1310
1310
  /* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(J, { children: [
1311
1311
  t.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
1312
- i === re.SplitTransaction && /* @__PURE__ */ e(Et, { transaction: a }),
1313
- i === re.HideTransaction && /* @__PURE__ */ e(ft, { transaction: a }),
1314
- i === re.MerchantLogo && /* @__PURE__ */ e(St, { transaction: a }),
1312
+ i === re.SplitTransaction && /* @__PURE__ */ e(vt, { transaction: a }),
1313
+ i === re.HideTransaction && /* @__PURE__ */ e(Ct, { transaction: a }),
1314
+ i === re.MerchantLogo && /* @__PURE__ */ e(yt, { transaction: a }),
1315
1315
  /* @__PURE__ */ e(Z, { variant: u < t.length - 1 ? "inset" : "fullWidth" })
1316
1316
  ] }, i)),
1317
- a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(Tt, { transaction: a })
1317
+ a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(ht, { transaction: a })
1318
1318
  ] }) })
1319
1319
  ] })
1320
1320
  ] }) });
1321
- }, Pa = b(Vt);
1321
+ }, ka = b(Xt);
1322
1322
  export {
1323
1323
  re as B,
1324
1324
  mt as C,
1325
- pt as D,
1326
- At as M,
1325
+ gt as D,
1326
+ bt as M,
1327
1327
  lt as S,
1328
- ka as T,
1329
- Pa as a,
1328
+ Ra as T,
1329
+ ka as a,
1330
1330
  st as b,
1331
- $t as c,
1331
+ Kt as c,
1332
1332
  q as d,
1333
1333
  G as u
1334
1334
  };