@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.
- package/dist/{Account-BDXA6PWh.mjs → Account-Cp30A3ad.mjs} +1 -1
- package/dist/{AccountDetailsContent-CUztd3-b.mjs → AccountDetailsContent-C1HumFnW.mjs} +16 -16
- package/dist/{AccountDetailsHeader-i3KFhNuo.mjs → AccountDetailsHeader-NMx79DGs.mjs} +5 -5
- package/dist/{AccountFields-QZspYAji.mjs → AccountFields-CW6cIthP.mjs} +7 -5
- package/dist/{AccountListItem-DX5upmCS.mjs → AccountListItem-DxmAs98Z.mjs} +4 -4
- package/dist/{AccountStore-BcnDpyLL.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-DXfZotRC.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-CIDAPPPT.mjs} +1 -1
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-naOtJcwo.mjs} +12 -12
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +3 -3
- package/dist/{CategoryStore-DTgyAMM7.mjs → CategoryStore-MUwRWH9e.mjs} +2 -2
- package/dist/{CategoryUtil-C5cR-nfQ.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BIbTqYOH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +28 -28
- package/dist/{ConnectionsDrawer-BFfY3_zB.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-BrGvhgVK.mjs} +8 -8
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-CDPZw_-m.mjs} +1 -1
- package/dist/{DebtsStore-BbJB0nmu.mjs → DebtsStore-hi1cqrRk.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Drawer-BEtCk82g.mjs → Drawer-Dqe5EqvA.mjs} +14 -14
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BIrX0Xg2.mjs → FinstrongStore-dKZOZ2hM.mjs} +53 -53
- package/dist/{GoalStore-DpWY3gVb.mjs → GoalStore-CFeAJloA.mjs} +2 -2
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{Help-BnPXM_N2.mjs → Help-i4OasOO-.mjs} +177 -180
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BNCWQAN_.mjs} +1 -1
- package/dist/{Loader-DUaFpDGv.mjs → Loader-BSWSYqvn.mjs} +3 -3
- package/dist/{ManageIncome-NpXHhO1n.mjs → ManageIncome-D_qVX5dN.mjs} +8 -8
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-D7MkHG15.mjs +56 -0
- package/dist/{NetWorthStore-lsuhEpn6.mjs → NetWorthStore-8FFC1Bs0.mjs} +4 -4
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-BsWiYD94.mjs} +14 -14
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-62e0mU_3.mjs} +2 -2
- package/dist/{RecurringSettings-CqZh1SQa.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-BKcYmpv3.mjs → RecurringTransactions-Bhx56aA3.mjs} +36 -36
- package/dist/{RecurringTransactionsStore-Ni5tSQIO.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-C6KH8JH4.mjs} +9 -9
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BASMQSIp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-DPQ96k3x.mjs} +4 -4
- package/dist/{SpendingLegend-CjX-hX2O.mjs → SpendingLegend-CZzDb-7d.mjs} +3 -3
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-5M2vfr59.mjs → TransactionDetails-Duv1X9ec.mjs} +9 -9
- package/dist/{TransactionStore-D-Q3BU9Z.mjs → TransactionStore-DgLrYW4C.mjs} +41 -58
- package/dist/{TrendsStore-BW9FGQeE.mjs → TrendsStore-_mRaFUdf.mjs} +37 -37
- package/dist/{User-wXzDI4M8.mjs → User-DqNX2GAK.mjs} +19 -19
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +68 -69
- package/dist/{WidgetContainer-BhQ1Kx2z.mjs → WidgetContainer-B1Jzb4XA.mjs} +33 -33
- package/dist/accounts/index.es.js +71 -71
- package/dist/analytics/index.es.js +7 -7
- package/dist/budgets/index.es.js +110 -110
- package/dist/cashflow/index.es.js +68 -68
- package/dist/categories/index.es.js +2 -2
- package/dist/common/index.es.js +248 -248
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +12 -12
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +3 -3
- package/dist/finstrong/index.es.js +18 -18
- package/dist/goals/index.es.js +19 -19
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +12 -12
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +11 -11
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +16 -16
- package/dist/settings/index.es.js +62 -62
- package/dist/spending/index.es.js +26 -26
- package/dist/transactions/index.es.js +58 -58
- package/dist/trends/index.es.js +59 -59
- package/dist/{useAccountDisplayName-CFNF8766.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
- package/package.json +16 -21
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +0 -45
- 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-
|
|
7
|
-
import { f as m, a as T } from "./Dialog-
|
|
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
|
-
|
|
50
|
-
|
|
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-
|
|
2
|
-
import { b as p } from "./Category-
|
|
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-
|
|
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
|
|
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:
|
|
4
|
+
const s = ({ data: a, height: r = 8 }) => {
|
|
5
5
|
const o = `${r / 4}px`;
|
|
6
|
-
return /* @__PURE__ */
|
|
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:
|
|
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
|
-
}
|
|
27
|
+
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
s as S
|
|
30
30
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
2
|
+
const n = ({
|
|
3
3
|
children: o,
|
|
4
4
|
index: t,
|
|
5
5
|
name: a,
|
|
6
|
-
value:
|
|
7
|
-
...
|
|
6
|
+
value: r,
|
|
7
|
+
...b
|
|
8
8
|
}) => /* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
"aria-labelledby": `${a}-tab-${t}`,
|
|
12
|
-
hidden:
|
|
12
|
+
hidden: r !== t,
|
|
13
13
|
id: `${a}-tabpanel-${t}`,
|
|
14
14
|
role: "tabpanel",
|
|
15
|
-
...
|
|
16
|
-
children:
|
|
15
|
+
...b,
|
|
16
|
+
children: r === t && o
|
|
17
17
|
}
|
|
18
|
-
)
|
|
18
|
+
);
|
|
19
19
|
export {
|
|
20
|
-
|
|
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,
|
|
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-
|
|
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-
|
|
19
|
-
import { L as Ie } from "./Loader-
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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-
|
|
16
|
-
import { T as
|
|
17
|
-
import { b as Y } from "./Category-
|
|
18
|
-
import { f as F } from "./exportTransactionsToCSV-
|
|
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-
|
|
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
|
|
24
|
-
const
|
|
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 =
|
|
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
|
-
|
|
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(
|
|
45
|
-
|
|
44
|
+
children: /* @__PURE__ */ g(U, { title: e, children: /* @__PURE__ */ g(
|
|
45
|
+
P,
|
|
46
46
|
{
|
|
47
47
|
control: /* @__PURE__ */ g(
|
|
48
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
362
|
-
const s =
|
|
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
|
-
},
|
|
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 ===
|
|
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((
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
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 =
|
|
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
|
|
443
|
+
class pt {
|
|
461
444
|
globalStore;
|
|
462
445
|
uiStore;
|
|
463
|
-
api = new
|
|
464
|
-
beatApi = new
|
|
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 =
|
|
463
|
+
onAnalyticEvent = X;
|
|
481
464
|
constructor(t) {
|
|
482
|
-
this.globalStore = t, this.uiStore = new
|
|
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
|
|
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 ?
|
|
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
|
|
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
|
-
|
|
686
|
-
|
|
687
|
-
|
|
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,
|
|
15
|
-
import { f as L, a as T } from "./Dialog-
|
|
16
|
-
const
|
|
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:
|
|
21
|
-
subtitle:
|
|
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:
|
|
39
|
-
|
|
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 = [],
|
|
74
|
-
for (;
|
|
75
|
-
const
|
|
76
|
-
o.push(+`${
|
|
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,
|
|
81
|
-
const
|
|
82
|
-
top_level_category_guid:
|
|
83
|
-
category_guid:
|
|
84
|
-
amount:
|
|
85
|
-
year_month:
|
|
86
|
-
}, { top_level_category_guid: n, category_guid: s } =
|
|
87
|
-
return o[s] || (o[s] = []), o[s].push(
|
|
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
|
|
90
|
-
return Object.entries(
|
|
91
|
-
const c = m[0].top_level_category_guid, b =
|
|
92
|
-
const g = m.filter((p) => p.year_month === i).reduce((p,
|
|
93
|
-
return { x: new Date(u,
|
|
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,
|
|
105
|
-
return (o || 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),
|
|
108
|
-
return
|
|
109
|
-
const s =
|
|
110
|
-
const g = i.monthlyAmounts.slice(-t).find((u) =>
|
|
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) =>
|
|
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((
|
|
125
|
-
x:
|
|
126
|
-
y: Math.abs(
|
|
127
|
-
})) : [],
|
|
128
|
-
return { monthlyAmounts: o, tooltipLabels:
|
|
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
|
-
|
|
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-
|
|
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
|
|
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 =
|
|
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),
|
|
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
|
|
149
|
-
const O = t[
|
|
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),
|
|
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) : (
|
|
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((
|
|
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:
|
|
186
|
+
date: _,
|
|
187
187
|
endDate: R,
|
|
188
|
-
isInMonth: W(
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
304
|
+
}, $n = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
|
|
305
305
|
export {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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
|
-
|
|
312
|
+
$n as i
|
|
313
313
|
};
|