@mx-cartographer/experiences 8.0.0-alpha.sms1 → 8.0.0-alpha.sms2

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 (76) hide show
  1. package/dist/{Account-BDXA6PWh.mjs → Account-Cp30A3ad.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-CUztd3-b.mjs → AccountDetailsContent-C1HumFnW.mjs} +16 -16
  3. package/dist/{AccountDetailsHeader-i3KFhNuo.mjs → AccountDetailsHeader-NMx79DGs.mjs} +5 -5
  4. package/dist/{AccountFields-QZspYAji.mjs → AccountFields-CW6cIthP.mjs} +7 -5
  5. package/dist/{AccountListItem-DX5upmCS.mjs → AccountListItem-DxmAs98Z.mjs} +4 -4
  6. package/dist/{AccountStore-BcnDpyLL.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
  7. package/dist/{Accounts-DXfZotRC.mjs → Accounts-DUHkUyK4.mjs} +1 -1
  8. package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-CIDAPPPT.mjs} +1 -1
  9. package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-naOtJcwo.mjs} +12 -12
  10. package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +3 -3
  12. package/dist/{CategoryStore-DTgyAMM7.mjs → CategoryStore-MUwRWH9e.mjs} +2 -2
  13. package/dist/{CategoryUtil-C5cR-nfQ.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
  14. package/dist/{ConnectDrawer-BIbTqYOH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +28 -28
  15. package/dist/{ConnectionsDrawer-BFfY3_zB.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
  16. package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-BrGvhgVK.mjs} +8 -8
  17. package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-CDPZw_-m.mjs} +1 -1
  18. package/dist/{DebtsStore-BbJB0nmu.mjs → DebtsStore-hi1cqrRk.mjs} +1 -1
  19. package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CDV0kKxj.mjs} +24 -24
  20. package/dist/{Drawer-BEtCk82g.mjs → Drawer-Dqe5EqvA.mjs} +14 -14
  21. package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
  22. package/dist/{FinstrongStore-BIrX0Xg2.mjs → FinstrongStore-dKZOZ2hM.mjs} +53 -53
  23. package/dist/{GoalStore-DpWY3gVb.mjs → GoalStore-CFeAJloA.mjs} +2 -2
  24. package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
  25. package/dist/{Help-BnPXM_N2.mjs → Help-i4OasOO-.mjs} +177 -180
  26. package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
  27. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BNCWQAN_.mjs} +1 -1
  28. package/dist/{Loader-DUaFpDGv.mjs → Loader-BSWSYqvn.mjs} +3 -3
  29. package/dist/{ManageIncome-NpXHhO1n.mjs → ManageIncome-D_qVX5dN.mjs} +8 -8
  30. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
  31. package/dist/MiniWidgetContainer-D7MkHG15.mjs +56 -0
  32. package/dist/{NetWorthStore-lsuhEpn6.mjs → NetWorthStore-8FFC1Bs0.mjs} +4 -4
  33. package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-BsWiYD94.mjs} +14 -14
  34. package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-62e0mU_3.mjs} +2 -2
  35. package/dist/{RecurringSettings-CqZh1SQa.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
  36. package/dist/{RecurringTransactions-BKcYmpv3.mjs → RecurringTransactions-Bhx56aA3.mjs} +36 -36
  37. package/dist/{RecurringTransactionsStore-Ni5tSQIO.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
  38. package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-C6KH8JH4.mjs} +9 -9
  39. package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BASMQSIp.mjs} +1 -1
  40. package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
  41. package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-DPQ96k3x.mjs} +4 -4
  42. package/dist/{SpendingLegend-CjX-hX2O.mjs → SpendingLegend-CZzDb-7d.mjs} +3 -3
  43. package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
  44. package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
  45. package/dist/{TransactionDetails-5M2vfr59.mjs → TransactionDetails-Duv1X9ec.mjs} +9 -9
  46. package/dist/{TransactionStore-D-Q3BU9Z.mjs → TransactionStore-DgLrYW4C.mjs} +41 -58
  47. package/dist/{TrendsStore-BW9FGQeE.mjs → TrendsStore-_mRaFUdf.mjs} +37 -37
  48. package/dist/{User-wXzDI4M8.mjs → User-DqNX2GAK.mjs} +19 -19
  49. package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +68 -69
  50. package/dist/{WidgetContainer-BhQ1Kx2z.mjs → WidgetContainer-B1Jzb4XA.mjs} +33 -33
  51. package/dist/accounts/index.es.js +71 -71
  52. package/dist/analytics/index.es.js +7 -7
  53. package/dist/budgets/index.es.js +110 -110
  54. package/dist/cashflow/index.es.js +68 -68
  55. package/dist/categories/index.es.js +2 -2
  56. package/dist/common/index.es.js +248 -248
  57. package/dist/dashboard/index.es.js +7 -7
  58. package/dist/debts/index.es.js +12 -12
  59. package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +3 -3
  60. package/dist/finstrong/index.es.js +18 -18
  61. package/dist/goals/index.es.js +19 -19
  62. package/dist/help/index.es.js +6 -6
  63. package/dist/investments/index.es.js +4 -4
  64. package/dist/merchants/index.es.js +12 -12
  65. package/dist/microinsights/index.es.js +1 -1
  66. package/dist/networth/index.es.js +11 -11
  67. package/dist/notifications/index.es.js +4 -4
  68. package/dist/recurringtransactions/index.es.js +16 -16
  69. package/dist/settings/index.es.js +62 -62
  70. package/dist/spending/index.es.js +26 -26
  71. package/dist/transactions/index.es.js +58 -58
  72. package/dist/trends/index.es.js +59 -59
  73. package/dist/{useAccountDisplayName-CFNF8766.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
  74. package/package.json +16 -21
  75. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +0 -45
  76. package/dist/MiniWidgetContainer-CmXpTylX.mjs +0 -56
@@ -3,8 +3,8 @@ import { isBefore as d } from "date-fns/isBefore";
3
3
  import { startOfMonth as _ } from "date-fns/startOfMonth";
4
4
  import { subMonths as y } from "date-fns/subMonths";
5
5
  import { endOfMonth as M } from "date-fns/endOfMonth";
6
- import { b as n, P as l } from "./Category-CevNQ03n.mjs";
7
- import { f as m, a as T } from "./Dialog-BPTr3qHE.mjs";
6
+ import { b as n, P as l } from "./Category-Ccoew_sA.mjs";
7
+ import { f as m, a as T } from "./Dialog-CDV0kKxj.mjs";
8
8
  const i = (e) => (e.top_level_category_guid === n.INCOME || e.category_guid === n.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === n.TRANSFER || e.category_guid === n.TRANSFER, h = (e) => e.top_level_category_guid === n.INVESTMENTS || e.category_guid === n.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
9
9
  if (r === 0) return 0;
10
10
  const a = (e - r) / r;
@@ -46,8 +46,8 @@ export {
46
46
  x as b,
47
47
  f as c,
48
48
  w as d,
49
- C as e,
50
- i as f,
49
+ i as e,
50
+ C as f,
51
51
  b as g,
52
52
  H as h,
53
53
  h as i,
@@ -1,5 +1,5 @@
1
- import { b as T } from "./CategoryUtil-C5cR-nfQ.mjs";
2
- import { b as p } from "./Category-CevNQ03n.mjs";
1
+ import { b as T } from "./CategoryUtil-DfVKKkRf.mjs";
2
+ import { b as p } from "./Category-Ccoew_sA.mjs";
3
3
  import { jsxs as y, Fragment as v, jsx as c } from "react/jsx-runtime";
4
4
  import _ from "react";
5
5
  import { observer as w } from "mobx-react-lite";
@@ -8,7 +8,7 @@ import f from "@mui/material/Stack";
8
8
  import { useTheme as k } from "@mui/material/styles";
9
9
  import { CategoryIcon as M, CategoryIconVariants as A, Text as h } from "@mxenabled/mxui";
10
10
  import { D as G } from "./Donut-Dmy3JTWd.mjs";
11
- import { u as O } from "./TransactionDetails-5M2vfr59.mjs";
11
+ import { u as O } from "./TransactionDetails-Duv1X9ec.mjs";
12
12
  import { u as $ } from "./hooks-C41HAxM5.mjs";
13
13
  import { u as j } from "./useScreenSize-B6JyS_Lj.mjs";
14
14
  import { f as x } from "./NumberFormatting-DjTD0t3W.mjs";
@@ -1,9 +1,9 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as c } from "react/jsx-runtime";
2
2
  import i from "@mui/material/Box";
3
3
  import p from "@mui/material/Stack";
4
- const s = ({ data: c, height: r = 8 }) => {
4
+ const s = ({ data: a, height: r = 8 }) => {
5
5
  const o = `${r / 4}px`;
6
- return /* @__PURE__ */ a(
6
+ return /* @__PURE__ */ c(
7
7
  p,
8
8
  {
9
9
  bgcolor: "divider",
@@ -12,7 +12,7 @@ const s = ({ data: c, height: r = 8 }) => {
12
12
  gap: 2,
13
13
  height: r,
14
14
  width: "100%",
15
- children: c.map((t, d) => /* @__PURE__ */ a(
15
+ children: a.map((t, d) => /* @__PURE__ */ c(
16
16
  i,
17
17
  {
18
18
  bgcolor: t.color,
@@ -24,7 +24,7 @@ const s = ({ data: c, height: r = 8 }) => {
24
24
  ))
25
25
  }
26
26
  );
27
- }, l = s;
27
+ };
28
28
  export {
29
- l as S
29
+ s as S
30
30
  };
@@ -1,21 +1,21 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- const b = ({
2
+ const n = ({
3
3
  children: o,
4
4
  index: t,
5
5
  name: a,
6
- value: n,
7
- ...r
6
+ value: r,
7
+ ...b
8
8
  }) => /* @__PURE__ */ e(
9
9
  "div",
10
10
  {
11
11
  "aria-labelledby": `${a}-tab-${t}`,
12
- hidden: n !== t,
12
+ hidden: r !== t,
13
13
  id: `${a}-tabpanel-${t}`,
14
14
  role: "tabpanel",
15
- ...r,
16
- children: n === t && o
15
+ ...b,
16
+ children: r === t && o
17
17
  }
18
- ), i = b;
18
+ );
19
19
  export {
20
- i as T
20
+ n as T
21
21
  };
@@ -5,19 +5,19 @@ import { useVirtualizer as Re } from "@tanstack/react-virtual";
5
5
  import v from "@mui/material/Box";
6
6
  import J from "@mui/material/Divider";
7
7
  import Q from "@mui/material/List";
8
- import { MerchantLogo as ge, Icon as C, Text as h, useTokens as te, CategoryIcon as he, CategoryIconVariants as be, IconWeight as D, P as ce, H1 as Ae, TextField as Te } from "@mxenabled/mxui";
8
+ import { MerchantLogo as ge, Text as h, Icon as C, useTokens as te, CategoryIcon as he, CategoryIconVariants as be, IconWeight as D, P as ce, H1 as Ae, TextField as Te } from "@mxenabled/mxui";
9
9
  import $ from "@mui/material/ListItemAvatar";
10
10
  import M from "@mui/material/ListItemText";
11
11
  import b from "@mui/material/Stack";
12
- import { T as Pe, L as Ge, O as g, C as Me, b as Ke, i as $e } from "./User-wXzDI4M8.mjs";
12
+ import { T as Pe, L as Ge, O as g, C as Me, b as Ke, i as $e } from "./User-DqNX2GAK.mjs";
13
13
  import { G as Be, h as w, u as N, g as O, m as xe, b as Fe, p as He } from "./hooks-C41HAxM5.mjs";
14
14
  import { f as ae } from "./NumberFormatting-DjTD0t3W.mjs";
15
15
  import { Receipt as ze, Delete as ie, ChevronRight as Ue, Cancel as se, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
16
16
  import { fromUnixTime as Y } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
- import { h as Ye } from "./DateUtil-CBdcsyuk.mjs";
19
- import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-BhQ1Kx2z.mjs";
18
+ import { h as Ye } from "./DateUtil-CDPZw_-m.mjs";
19
+ import { L as Ie } from "./Loader-BSWSYqvn.mjs";
20
+ import { A as P } from "./WidgetContainer-B1Jzb4XA.mjs";
21
21
  import re from "@mui/material/Paper";
22
22
  import de from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
@@ -27,17 +27,17 @@ import qe from "@mui/material/ToggleButton";
27
27
  import De from "@mui/material/styles/useTheme";
28
28
  import z from "@mui/material/Avatar";
29
29
  import B from "@mui/material/ListItem";
30
- import { D as W, f as we, a as Ee } from "./Dialog-BPTr3qHE.mjs";
30
+ import { D as W, f as we, a as Ee } from "./Dialog-CDV0kKxj.mjs";
31
31
  import U from "@mui/material/ListItemButton";
32
32
  import X from "@mui/material/ListItemIcon";
33
- import { a as Oe } from "./CategorySelectorDrawer-DqJK_rrL.mjs";
33
+ import { a as Oe } from "./CategorySelectorDrawer-DqDAA_5I.mjs";
34
34
  import { b as le } from "./Localization-2MODESHW.mjs";
35
35
  import { getUnixTime as Ze } from "date-fns/getUnixTime";
36
- import { D as ue } from "./Drawer-BEtCk82g.mjs";
36
+ import { D as ue } from "./Drawer-Dqe5EqvA.mjs";
37
37
  import ye from "@mui/material/InputAdornment";
38
38
  import Je from "@mui/material/Checkbox";
39
39
  import pe from "@mui/material/Grid";
40
- import { C as Qe } from "./CurrencyInput-BFKcs-_K.mjs";
40
+ import { C as Qe } from "./CurrencyInput-BrGvhgVK.mjs";
41
41
  import et from "@mui/material/Switch";
42
42
  var Z = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(Z || {}), oe = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(oe || {});
43
43
  const tt = [
@@ -1,9 +1,9 @@
1
1
  import { jsx as g } from "react/jsx-runtime";
2
- import M from "@mui/material/Box";
3
- import H from "@mui/material/FormControlLabel";
4
- import P from "@mui/material/Radio";
5
- import U from "@mui/material/styles/useTheme";
6
- import K from "@mui/material/Tooltip";
2
+ import x from "@mui/material/Box";
3
+ import P from "@mui/material/FormControlLabel";
4
+ import H from "@mui/material/Radio";
5
+ import K from "@mui/material/styles/useTheme";
6
+ import U from "@mui/material/Tooltip";
7
7
  import { makeAutoObservable as p } from "mobx";
8
8
  import { endOfToday as f } from "date-fns/endOfToday";
9
9
  import { formatISO as V } from "date-fns/formatISO";
@@ -12,25 +12,25 @@ import { isBefore as v } from "date-fns/isBefore";
12
12
  import { startOfMonth as h } from "date-fns/startOfMonth";
13
13
  import { startOfToday as m } from "date-fns/startOfToday";
14
14
  import { subDays as B } from "date-fns/subDays";
15
- import { O as o, a as y, T as b } from "./User-wXzDI4M8.mjs";
16
- import { T as L } from "./TransactionApi-CjBoLleL.mjs";
17
- import { b as Y } from "./Category-CevNQ03n.mjs";
18
- import { f as F } from "./exportTransactionsToCSV-Cz2t0lmA.mjs";
15
+ import { O as o, a as y, T as b } from "./User-DqNX2GAK.mjs";
16
+ import { T as u } from "./TransactionApi-CjBoLleL.mjs";
17
+ import { b as Y } from "./Category-Ccoew_sA.mjs";
18
+ import { f as F } from "./exportTransactionsToCSV-BFpuIAXW.mjs";
19
19
  import { format as W } from "date-fns/format";
20
20
  import { fromUnixTime as $ } from "date-fns/fromUnixTime";
21
- import { f as I, a as C, O as k } from "./Dialog-BPTr3qHE.mjs";
21
+ import { f as I, a as C, O as k } from "./Dialog-CDV0kKxj.mjs";
22
22
  import { endOfMonth as z } from "date-fns/endOfMonth";
23
- import { B as u } from "./BeatApi-De2IaqH2.mjs";
24
- const X = ({
23
+ import { B as L } from "./BeatApi-De2IaqH2.mjs";
24
+ const Rt = ({
25
25
  checked: l = !1,
26
26
  label: t,
27
27
  sx: a = {},
28
28
  tooltip: e = "",
29
29
  value: A
30
30
  }) => {
31
- const d = U(), s = d.palette.mode === "light" ? d.palette.grey[400] : d.palette.grey[700], c = l ? d.palette.action.active : s;
31
+ const d = K(), s = d.palette.mode === "light" ? d.palette.grey[400] : d.palette.grey[700], c = l ? d.palette.action.active : s;
32
32
  return /* @__PURE__ */ g(
33
- M,
33
+ x,
34
34
  {
35
35
  bgcolor: "background.paper",
36
36
  border: `${l ? 3 : 1}px solid`,
@@ -41,11 +41,11 @@ const X = ({
41
41
  pr: 8,
42
42
  py: 4,
43
43
  sx: { "&:hover": { borderColor: d.palette.action.active }, ...a },
44
- children: /* @__PURE__ */ g(K, { title: e, children: /* @__PURE__ */ g(
45
- H,
44
+ children: /* @__PURE__ */ g(U, { title: e, children: /* @__PURE__ */ g(
45
+ P,
46
46
  {
47
47
  control: /* @__PURE__ */ g(
48
- P,
48
+ H,
49
49
  {
50
50
  disableRipple: !0,
51
51
  sx: { "&.Mui-checked": { color: d.palette.action.active } }
@@ -59,31 +59,19 @@ const X = ({
59
59
  ) })
60
60
  }
61
61
  );
62
- }, pt = X, G = {
62
+ }, G = {
63
63
  ASC: "ASC",
64
- DESC: "DESC",
65
- DIRECTION: {
66
- ASC: "ascending",
67
- DESC: "descending"
68
- },
69
- ALIGN: {
70
- center: "center",
71
- left: "flex-start",
72
- right: "flex-end"
73
- }
64
+ DESC: "DESC"
74
65
  }, n = {
75
66
  ADD: "Add",
76
67
  ADD_CATEGORY: "Add Category",
77
68
  CHANGE_CATEGORY: "Change Category",
78
- CHANGE_DATE: "Change Date",
79
69
  CLOSE: "Close",
80
70
  DELETE: "Delete",
81
71
  EDIT: "Edit",
82
- HIDE: "Hide",
83
72
  SAVE: "Save",
84
73
  SPLIT: "Split",
85
74
  SELECT: "Select",
86
- UNHIDE: "Unhide",
87
75
  UNSPLIT: "Unsplit"
88
76
  }, T = {
89
77
  TRANSACTION_DETAILS: "Transaction Details",
@@ -106,7 +94,6 @@ const X = ({
106
94
  TAG_DELETE: "Delete Tag",
107
95
  TAG_EDIT: "Edit Tag",
108
96
  TRANSACTION: "Transaction",
109
- TRANSACTIONS_LIST: "Transactions List",
110
97
  UNHIDE_TRANSACTION: "Unhide Transaction"
111
98
  }, R = {
112
99
  // splits
@@ -322,14 +309,10 @@ const X = ({
322
309
  category: T.TRANSACTIONS_WIDGET,
323
310
  label: r.DELETE_TRANSACTION
324
311
  }
325
- }, j = async (l, t) => !t || !R[l] ? null : t.sendAnalyticEvent(R[l]), D = {
326
- FLAG: "flag",
312
+ }, X = async (l, t) => !t || !R[l] ? null : t.sendAnalyticEvent(R[l]), D = {
327
313
  DATE: "date",
328
- PAYEE: "payee",
329
- CATEGORY: "category",
330
- ACCOUNT: "account",
331
314
  AMOUNT: "amount"
332
- }, Z = (l, t, a, e = []) => {
315
+ }, j = (l, t, a, e = []) => {
333
316
  const A = t.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), d = a.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), s = e.reduce((c, i) => {
334
317
  const { transaction_guid: S, tag_guid: E } = i;
335
318
  if (!c[S])
@@ -358,13 +341,13 @@ const X = ({
358
341
  tags: E
359
342
  };
360
343
  });
361
- }, q = "uncategorized", J = (l, t, a, e, A, d) => {
362
- const s = Q(l, A, d), c = tt(s, a, e);
344
+ }, Z = "uncategorized", q = (l, t, a, e, A, d) => {
345
+ const s = J(l, A, d), c = Q(s, a, e);
363
346
  return t.forEach((i) => {
364
347
  const S = c.findIndex((N) => N.guid === i), E = d.filter((N) => N.parent_guid === i);
365
348
  c.splice(S + 1, 0, ...E);
366
349
  }), c;
367
- }, Q = (l, t, a) => {
350
+ }, J = (l, t, a) => {
368
351
  const {
369
352
  accounts: e = [],
370
353
  dateRange: A = { start: h(m()), end: f() },
@@ -373,23 +356,23 @@ const X = ({
373
356
  showSplits: c = !1
374
357
  } = l;
375
358
  return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((S) => S === i.account_guid)).filter((i) => i.date >= O(A.start) && i.date <= O(A.end)).filter(d).filter((i) => {
376
- if (s === q && i.has_been_split)
359
+ if (s === Z && i.has_been_split)
377
360
  return !1;
378
361
  if (/^spl/i.test(s) && (i.has_been_split || i.parent_guid))
379
362
  return !0;
380
363
  const E = i.tags.some(
381
- (w) => _(s, t.find((x) => x.guid === w)?.name)
364
+ (w) => _(s, t.find((M) => M.guid === w)?.name)
382
365
  ), N = $(i.date);
383
366
  return _(s, i.payee) || _(s, i.feed_description) || _(s, i.category) || _(s, I(N, C.MONTH)) || _(s, I(N, C.DAY)) || _(s, I(N, C.FULL_MONTH_DAY)) || _(s, I(N, C.MONTH_DAY_YEAR)) || _(s, W(N, k)) || _(s, i.account) || _(s, `${i.amount}`) || _(s, i.memo) || E;
384
367
  });
385
- }, tt = (l, t, a) => [...l].sort((e, A) => {
368
+ }, Q = (l, t, a) => [...l].sort((e, A) => {
386
369
  const d = t, s = (e[d] || "") > (A[d] || "");
387
370
  let c = s ? -1 : 1, i = s ? 1 : -1;
388
371
  return (t === D.DATE || t === D.AMOUNT) && (c = s ? 1 : -1, i = s ? -1 : 1), a === G.ASC ? c : i;
389
372
  }), _ = (l, t) => {
390
373
  const a = l.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
391
374
  return a.every((A) => e.indexOf(A) > -1);
392
- }, at = {
375
+ }, tt = {
393
376
  account_guid: "",
394
377
  amount: 0,
395
378
  currency_code: "",
@@ -418,7 +401,7 @@ const X = ({
418
401
  memo: void 0,
419
402
  tags: []
420
403
  };
421
- class et {
404
+ class at {
422
405
  beginDate = h(/* @__PURE__ */ new Date());
423
406
  endDate = z(/* @__PURE__ */ new Date());
424
407
  expandedSplits = [];
@@ -427,7 +410,7 @@ class et {
427
410
  shouldDisableDrawerScroll = !1;
428
411
  searchValue = "";
429
412
  selectedAccountGuids = [];
430
- manualTransaction = at;
413
+ manualTransaction = tt;
431
414
  isAmountValid = !1;
432
415
  showInsights = !1;
433
416
  constructor() {
@@ -457,11 +440,11 @@ class et {
457
440
  this.manualTransaction = t;
458
441
  };
459
442
  }
460
- class ft {
443
+ class pt {
461
444
  globalStore;
462
445
  uiStore;
463
- api = new L("/", "");
464
- beatApi = new u("/", "");
446
+ api = new u("/", "");
447
+ beatApi = new L("/", "");
465
448
  associatedBeats = [];
466
449
  associatedBeatsLoaded = !1;
467
450
  transactions = [];
@@ -477,13 +460,13 @@ class ft {
477
460
  isLoading = !0;
478
461
  sortColumn = D.DATE;
479
462
  sortDirection = G.DESC;
480
- onAnalyticEvent = j;
463
+ onAnalyticEvent = X;
481
464
  constructor(t) {
482
- this.globalStore = t, this.uiStore = new et(), this.api = new L(
465
+ this.globalStore = t, this.uiStore = new at(), this.api = new u(
483
466
  t.endpoint,
484
467
  t.sessionToken,
485
468
  t.onError
486
- ), this.beatApi = new u(t.endpoint, t.sessionToken, t.onError), p(this);
469
+ ), this.beatApi = new L(t.endpoint, t.sessionToken, t.onError), p(this);
487
470
  }
488
471
  loadTransactionData = async () => {
489
472
  this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
@@ -499,7 +482,7 @@ class ft {
499
482
  return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
500
483
  }
501
484
  get detailedTransactions() {
502
- return this.isTransactionDataLoaded ? Z(
485
+ return this.isTransactionDataLoaded ? j(
503
486
  this.transactions,
504
487
  this.globalStore.accountStore.visibleAccounts,
505
488
  this.globalStore.categoryStore.categories,
@@ -507,7 +490,7 @@ class ft {
507
490
  ) : [];
508
491
  }
509
492
  get sortedTransactions() {
510
- return J(
493
+ return q(
511
494
  this.filter,
512
495
  this.uiStore.expandedSplits,
513
496
  this.sortColumn,
@@ -682,7 +665,7 @@ class ft {
682
665
  };
683
666
  }
684
667
  export {
685
- at as D,
686
- pt as S,
687
- ft as T
668
+ tt as D,
669
+ Rt as S,
670
+ pt as T
688
671
  };
@@ -11,14 +11,14 @@ import { addSeconds as v } from "date-fns/addSeconds";
11
11
  import { differenceInCalendarMonths as w } from "date-fns/differenceInCalendarMonths";
12
12
  import { endOfMonth as D } from "date-fns/endOfMonth";
13
13
  import { subMonths as I } from "date-fns/subMonths";
14
- import { b as E, C as _, c as O } from "./Category-CevNQ03n.mjs";
15
- import { f as L, a as T } from "./Dialog-BPTr3qHE.mjs";
16
- const at = ({
14
+ import { b as E, a as _, c as O } from "./Category-Ccoew_sA.mjs";
15
+ import { f as L, a as T } from "./Dialog-CDV0kKxj.mjs";
16
+ const rt = ({
17
17
  onClick: e,
18
18
  leftIcon: t,
19
19
  rightIcon: o,
20
- title: r,
21
- subtitle: a,
20
+ title: a,
21
+ subtitle: r,
22
22
  rightContent: n,
23
23
  titleBold: s = !0,
24
24
  rightContentBold: m = !0
@@ -35,8 +35,8 @@ const at = ({
35
35
  },
36
36
  children: [
37
37
  /* @__PURE__ */ d(h, { sx: { flex: 1, minWidth: 0 }, children: [
38
- /* @__PURE__ */ l(y, { bold: s, variant: "body1", children: r }),
39
- a && /* @__PURE__ */ l(y, { variant: "caption", children: a })
38
+ /* @__PURE__ */ l(y, { bold: s, variant: "body1", children: a }),
39
+ r && /* @__PURE__ */ l(y, { variant: "caption", children: r })
40
40
  ] }),
41
41
  /* @__PURE__ */ d(h, { sx: { flexDirection: "row", alignItems: "center", gap: 1 }, children: [
42
42
  n && /* @__PURE__ */ l(y, { bold: m, display: "flex", variant: "body1", children: n }),
@@ -70,27 +70,27 @@ const at = ({
70
70
  ) });
71
71
  }, W = (e) => _[e] ?? _.default, F = (e) => O[e];
72
72
  function G(e, t) {
73
- const o = [], r = new Date(e);
74
- for (; r <= t; ) {
75
- const a = r.getFullYear(), n = String(r.getMonth() + 1).padStart(2, "0");
76
- o.push(+`${a}${n}`), r.setMonth(r.getMonth() + 1);
73
+ const o = [], a = new Date(e);
74
+ for (; a <= t; ) {
75
+ const r = a.getFullYear(), n = String(a.getMonth() + 1).padStart(2, "0");
76
+ o.push(+`${r}${n}`), a.setMonth(a.getMonth() + 1);
77
77
  }
78
78
  return o;
79
79
  }
80
- const $ = (e) => e.reduce((o, r) => {
81
- const a = {
82
- top_level_category_guid: r.top_level_category_guid,
83
- category_guid: r.category_guid,
84
- amount: r.total,
85
- year_month: r.year_month
86
- }, { top_level_category_guid: n, category_guid: s } = a;
87
- return o[s] || (o[s] = []), o[s].push(a), n !== s && (o[n] || (o[n] = []), o[n].push(a)), o;
80
+ const $ = (e) => e.reduce((o, a) => {
81
+ const r = {
82
+ top_level_category_guid: a.top_level_category_guid,
83
+ category_guid: a.category_guid,
84
+ amount: a.total,
85
+ year_month: a.year_month
86
+ }, { top_level_category_guid: n, category_guid: s } = r;
87
+ return o[s] || (o[s] = []), o[s].push(r), n !== s && (o[n] || (o[n] = []), o[n].push(r)), o;
88
88
  }, {}), nt = (e, t, o) => {
89
- const r = $(e), a = G(t, o);
90
- return Object.entries(r).map(([s, m]) => {
91
- const c = m[0].top_level_category_guid, b = a.map((i) => {
92
- const g = m.filter((p) => p.year_month === i).reduce((p, M) => p + Math.abs(M.amount), 0), u = Number(String(i).slice(0, 4)), C = Number(String(i).slice(4));
93
- return { x: new Date(u, C - 1), y: g };
89
+ const a = $(e), r = G(t, o);
90
+ return Object.entries(a).map(([s, m]) => {
91
+ const c = m[0].top_level_category_guid, b = r.map((i) => {
92
+ const g = m.filter((p) => p.year_month === i).reduce((p, C) => p + Math.abs(C.amount), 0), u = Number(String(i).slice(0, 4)), M = Number(String(i).slice(4));
93
+ return { x: new Date(u, M - 1), y: g };
94
94
  }).sort((i, g) => i.x.getTime() - g.x.getTime());
95
95
  return {
96
96
  top_level_category_guid: c,
@@ -101,19 +101,19 @@ const $ = (e) => e.reduce((o, r) => {
101
101
  };
102
102
  });
103
103
  }, st = (e, t) => {
104
- const o = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e, r = typeof t == "string" ? parseFloat(t.replace(/[^0-9.-]+/g, "")) : t;
105
- return (o || 0) - (r || 0);
104
+ const o = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e, a = typeof t == "string" ? parseFloat(t.replace(/[^0-9.-]+/g, "")) : t;
105
+ return (o || 0) - (a || 0);
106
106
  }, j = (e, t) => {
107
- const o = e.subCategories.filter((n) => n.currentAmount !== 0), r = e.totalMonthlyAmounts.slice(-t), a = (n) => n.substring(0, 3) + " " + n.slice(-4);
108
- return r.map((n) => {
109
- const s = a(n.label), m = o.map((i) => {
110
- const g = i.monthlyAmounts.slice(-t).find((u) => a(u.label) === s);
107
+ const o = e.subCategories.filter((n) => n.currentAmount !== 0), a = e.totalMonthlyAmounts.slice(-t), r = (n) => n.substring(0, 3) + " " + n.slice(-4);
108
+ return a.map((n) => {
109
+ const s = r(n.label), m = o.map((i) => {
110
+ const g = i.monthlyAmounts.slice(-t).find((u) => r(u.label) === s);
111
111
  return {
112
112
  label: i.name,
113
113
  amount: Math.abs(g?.amount || 0),
114
114
  header: s
115
115
  };
116
- }), c = e.monthlyAmounts.slice(-t).find((i) => a(i.label) === s);
116
+ }), c = e.monthlyAmounts.slice(-t).find((i) => r(i.label) === s);
117
117
  return [{
118
118
  label: e.name,
119
119
  amount: Math.abs(c?.amount || 0),
@@ -121,11 +121,11 @@ const $ = (e) => e.reduce((o, r) => {
121
121
  }, ...m].sort((i, g) => g.amount - i.amount);
122
122
  });
123
123
  }, k = (e, t) => {
124
- const o = e ? e.totalMonthlyAmounts.slice(-t).map((a) => ({
125
- x: a.label.substring(0, 3),
126
- y: Math.abs(a.amount)
127
- })) : [], r = e ? j(e, t) : [];
128
- return { monthlyAmounts: o, tooltipLabels: r };
124
+ const o = e ? e.totalMonthlyAmounts.slice(-t).map((r) => ({
125
+ x: r.label.substring(0, 3),
126
+ y: Math.abs(r.amount)
127
+ })) : [], a = e ? j(e, t) : [];
128
+ return { monthlyAmounts: o, tooltipLabels: a };
129
129
  }, H = (e) => e.slice().filter(
130
130
  (t) => t.totalAmount !== 0 && t.isTransfer === !1 && t.guid !== E.INVESTMENTS
131
131
  ).sort((t, o) => Math.abs(o.totalAmount) - Math.abs(t.totalAmount));
@@ -175,7 +175,7 @@ class it {
175
175
  }
176
176
  }
177
177
  export {
178
- at as L,
178
+ rt as L,
179
179
  it as T,
180
180
  st as a,
181
181
  nt as g
@@ -16,7 +16,7 @@ import E from "@mui/material/Button";
16
16
  import Y from "@mui/material/Paper";
17
17
  import { useTokens as v, H2 as z, Text as G } from "@mxenabled/mxui";
18
18
  import { ChevronLeft as X, ChevronRight as Z } from "@mxenabled/mx-icons";
19
- import { f as q, a as J } from "./Dialog-BPTr3qHE.mjs";
19
+ import { f as q, a as J } from "./Dialog-CDV0kKxj.mjs";
20
20
  import { isSameDay as T } from "date-fns/isSameDay";
21
21
  import { isWithinInterval as Q } from "date-fns/isWithinInterval";
22
22
  import nn from "@mui/material/styles/useTheme";
@@ -130,7 +130,7 @@ const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
130
130
  }
131
131
  }), ln = 340, I = 44;
132
132
  var Cn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Cn || {});
133
- const Nn = ({
133
+ const bn = ({
134
134
  copy: n,
135
135
  beginDate: a = void 0,
136
136
  endDate: o = void 0,
@@ -139,14 +139,14 @@ const Nn = ({
139
139
  selectionType: l = "Single"
140
140
  /* Single */
141
141
  }) => {
142
- const S = v(), g = mn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
142
+ const S = v(), g = Nn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, d] = A.useState(o);
143
143
  A.useEffect(() => {
144
- C(a), _(o), a && N(a);
144
+ C(a), d(o), a && N(a);
145
145
  }, [a, o]);
146
146
  const D = A.useMemo(() => {
147
147
  const t = $({ start: V(s), end: U(s) }), m = [];
148
- for (let d = 0; d < t.length; d++) {
149
- const O = t[d], u = P({ start: O, end: b(O, 6) }), x = [];
148
+ for (let _ = 0; _ < t.length; _++) {
149
+ const O = t[_], u = P({ start: O, end: b(O, 6) }), x = [];
150
150
  for (let L = 0; L < u.length; L++)
151
151
  x.push(u[L]);
152
152
  m.push(x);
@@ -158,11 +158,11 @@ const Nn = ({
158
158
  C(t), r?.(t);
159
159
  return;
160
160
  }
161
- !i || R ? (C(t), _(void 0)) : j(t, i) ? (_(i), C(t), c?.(t, i)) : (_(t), c?.(i, t));
161
+ !i || R ? (C(t), d(void 0)) : j(t, i) ? (d(i), C(t), c?.(t, i)) : (d(t), c?.(i, t));
162
162
  }
163
163
  }, M = () => {
164
164
  const t = f();
165
- N(t), l !== "None" && (C(t), l === "Single" ? r?.(t) : (_(t), c?.(t, t)));
165
+ N(t), l !== "None" && (C(t), l === "Single" ? r?.(t) : (d(t), c?.(t, t)));
166
166
  }, w = () => {
167
167
  N(B(s, 1));
168
168
  }, H = () => {
@@ -179,20 +179,20 @@ const Nn = ({
179
179
  }
180
180
  ),
181
181
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: D[0].map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(G, { bold: !0, variant: "Small", children: y(t, "EEEEE") }) }, m)) }),
182
- D.map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: t.map((d, O) => /* @__PURE__ */ e(
182
+ D.map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: t.map((_, O) => /* @__PURE__ */ e(
183
183
  sn,
184
184
  {
185
185
  beginDate: i,
186
- date: d,
186
+ date: _,
187
187
  endDate: R,
188
- isInMonth: W(d, s),
188
+ isInMonth: W(_, s),
189
189
  onClick: K
190
190
  },
191
191
  O
192
192
  )) }, `w-${m}`)),
193
193
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e(E, { onClick: M, size: "small", variant: "text", children: n.today }) })
194
194
  ] }) });
195
- }, mn = (n) => p({
195
+ }, Nn = (n) => p({
196
196
  width: ln,
197
197
  "& .MuiPaper-root": {
198
198
  paddingLeft: 24,
@@ -233,7 +233,7 @@ const Nn = ({
233
233
  marginRight: "auto"
234
234
  }
235
235
  }
236
- }), Bn = Nn, Pn = ({
236
+ }), Bn = ({
237
237
  children: n,
238
238
  clickEventName: a,
239
239
  onClick: o,
@@ -257,7 +257,7 @@ const Nn = ({
257
257
  children: n
258
258
  }
259
259
  );
260
- }, $n = {
260
+ }, Pn = {
261
261
  ON_TRANSACTION_CATEGORY_CLICK: "onTransactionCategoryClick",
262
262
  ON_TRANSACTION_CATEGORY_CHANGED: "onTransactionCategoryChanged",
263
263
  ON_TRANSACTION_MANUAL_ADD_CLICK: "onTransactionManualAddClick",
@@ -301,13 +301,13 @@ const Nn = ({
301
301
  ON_TRANSACTION_UNHIDE_CANCEL_CLICK: "onTransactionUnHideCancelClick",
302
302
  ON_TRANSACTION_UNSPLIT: "onTransactionUnsplit",
303
303
  ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
304
- }, Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
304
+ }, $n = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
305
305
  export {
306
- Bn as C,
307
- Pn as L,
308
- $n as O,
306
+ bn as C,
307
+ Bn as L,
308
+ Pn as O,
309
309
  on as T,
310
310
  en as a,
311
311
  Cn as b,
312
- Un as i
312
+ $n as i
313
313
  };