@mx-cartographer/experiences 8.1.0 → 8.1.2
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/CHANGELOG.md +9 -0
- package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
- package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
- package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
- package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
- package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
- package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
- package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
- package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
- package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
- package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
- package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
- package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
- package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
- package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
- package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
- package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
- package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
- package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
- package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
- package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
- package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
- package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
- package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
- package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
- package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
- package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
- package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
- package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
- package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
- package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
- package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
- package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
- package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
- package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
- package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
- package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
- package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
- 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-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
- package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
- package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
- package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
- package/dist/accounts/index.es.js +29 -29
- package/dist/analytics/index.es.js +10 -10
- package/dist/budgets/index.es.js +19 -19
- package/dist/cashflow/index.es.js +110 -110
- package/dist/categories/index.es.js +2 -2
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
- package/dist/common/index.es.js +250 -250
- package/dist/core/index.es.js +64 -64
- package/dist/dashboard/index.es.js +22 -22
- package/dist/debts/index.es.js +22 -22
- package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
- package/dist/finstrong/index.es.js +22 -22
- package/dist/goals/index.es.js +17 -17
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
- package/dist/insights/index.es.js +328 -328
- package/dist/investments/index.es.js +10 -10
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +25 -25
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +23 -23
- package/dist/settings/index.es.js +96 -96
- package/dist/spending/index.es.js +65 -65
- package/dist/transactions/index.es.js +74 -74
- package/dist/trends/index.es.js +55 -55
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
- package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
- package/package.json +20 -20
- package/dist/DateUtil-C57sqxn4.mjs +0 -54
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
- package/dist/WidgetContainer-Bc75FqK7.mjs +0 -468
|
@@ -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
|
};
|
|
@@ -12,14 +12,14 @@ import { endOfMonth as Pe } from "date-fns/endOfMonth";
|
|
|
12
12
|
import { getUnixTime as Ae } from "date-fns/getUnixTime";
|
|
13
13
|
import { isBefore as ze } from "date-fns/isBefore";
|
|
14
14
|
import { startOfMonth as Ne } from "date-fns/startOfMonth";
|
|
15
|
-
import { l as Ve,
|
|
15
|
+
import { l as Ve, d as We, C as Ye, c as je, i as qe } from "./BudgetUtil-DalEN9--.mjs";
|
|
16
16
|
import ue from "@mui/material/Button";
|
|
17
17
|
import Qe from "@mui/material/FormGroup";
|
|
18
18
|
import de from "@mui/material/IconButton";
|
|
19
19
|
import Ge from "@mui/material/TextField";
|
|
20
20
|
import { u as fe } from "./useAriaLive-MkYebyUR.mjs";
|
|
21
|
-
import { O as C } from "./exportTransactionsToCSV-
|
|
22
|
-
import { u as v, h as M, m as Xe, d as Ze, l as Oe, g as k, b as Je, o as et } from "./hooks-
|
|
21
|
+
import { O as C } from "./exportTransactionsToCSV-B2Lp7AMl.mjs";
|
|
22
|
+
import { u as v, h as M, m as Xe, d as Ze, l as Oe, g as k, b as Je, o as et } from "./hooks-HwStH7q_.mjs";
|
|
23
23
|
import { A as j } from "./Analytics-0Xm_BjHU.mjs";
|
|
24
24
|
import tt from "@mui/material/ToggleButton";
|
|
25
25
|
import { ChevronRight as Be, Icon as R, Delete as be, Cancel as Ce, Search as at, Edit as rt, Flag as nt } from "@mxenabled/mx-icons";
|
|
@@ -30,22 +30,22 @@ import Q from "@mui/material/ListItemAvatar";
|
|
|
30
30
|
import z from "@mui/material/ListItemText";
|
|
31
31
|
import { f as Le, D as we } from "./DateFormats-CaOj_4eI.mjs";
|
|
32
32
|
import { BarChart as ot } from "@mui/x-charts";
|
|
33
|
-
import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-
|
|
33
|
+
import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-BCcn_fK2.mjs";
|
|
34
|
+
import { L as mt } from "./Loader-CxeBwuPG.mjs";
|
|
35
|
+
import { f as W } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
36
|
+
import { b as D } from "./Localization-CkQ49EKr.mjs";
|
|
34
37
|
import X from "@mui/material/ListItemButton";
|
|
35
38
|
import Z from "@mui/material/ListItemIcon";
|
|
36
|
-
import {
|
|
37
|
-
import { D as ne } from "./Dialog-
|
|
38
|
-
import {
|
|
39
|
-
import
|
|
40
|
-
import { f as W } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
41
|
-
import mt from "@mui/material/styles/useTheme";
|
|
39
|
+
import { b as $e } from "./CategorySelectorDrawer-DjeHNx71.mjs";
|
|
40
|
+
import { D as ne } from "./Dialog-iLlBR8TG.mjs";
|
|
41
|
+
import { D as me } from "./Drawer-XPaLYjiO.mjs";
|
|
42
|
+
import _t from "@mui/material/styles/useTheme";
|
|
42
43
|
import Re from "@mui/material/InputAdornment";
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
44
|
+
import pt from "@mui/material/Checkbox";
|
|
45
|
+
import { j as gt } from "./DateUtil-D0TO0DaZ.mjs";
|
|
45
46
|
import xe from "@mui/material/Grid";
|
|
46
|
-
import { C as
|
|
47
|
-
import
|
|
48
|
-
import { L as yt } from "./Loader-D3rjKx72.mjs";
|
|
47
|
+
import { C as ht } from "./CurrencyInput-CSJ3zMgE.mjs";
|
|
48
|
+
import yt from "@mui/material/Switch";
|
|
49
49
|
var ce = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(ce || {}), se = /* @__PURE__ */ ((t) => (t[t.MerchantBudget = 0] = "MerchantBudget", t[t.SplitTransaction = 1] = "SplitTransaction", t[t.HideTransaction = 2] = "HideTransaction", t[t.MerchantLogo = 3] = "MerchantLogo", t))(se || {});
|
|
50
50
|
const Tt = [
|
|
51
51
|
0,
|
|
@@ -91,7 +91,7 @@ const Tt = [
|
|
|
91
91
|
px: 24
|
|
92
92
|
},
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */ e(ae, { bold: !0, variant: "subtitle1", children:
|
|
94
|
+
/* @__PURE__ */ e(ae, { bold: !0, variant: "subtitle1", children: gt(t) }),
|
|
95
95
|
r && /* @__PURE__ */ e(ue, { endIcon: /* @__PURE__ */ e(Be, {}), onClick: r, sx: { height: 28 }, children: /* @__PURE__ */ e(x, { bold: !0, variant: "body2", children: c.spending_history }) })
|
|
96
96
|
]
|
|
97
97
|
}
|
|
@@ -601,7 +601,7 @@ const xt = O(({ transaction: t }) => {
|
|
|
601
601
|
}
|
|
602
602
|
),
|
|
603
603
|
/* @__PURE__ */ e(Z, { "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
604
|
-
|
|
604
|
+
yt,
|
|
605
605
|
{
|
|
606
606
|
checked: i,
|
|
607
607
|
inputProps: { tabIndex: -1 },
|
|
@@ -751,7 +751,7 @@ const xt = O(({ transaction: t }) => {
|
|
|
751
751
|
/* @__PURE__ */ e(xe, { item: !0, xs: 5, children: p ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(x, { children: W(o.amount, "0,0.00") }) }) : /* @__PURE__ */ u(E, { alignItems: "start", children: [
|
|
752
752
|
/* @__PURE__ */ u(E, { alignItems: "start", direction: "row", gap: 8, children: [
|
|
753
753
|
/* @__PURE__ */ e(
|
|
754
|
-
|
|
754
|
+
ht,
|
|
755
755
|
{
|
|
756
756
|
amount: m,
|
|
757
757
|
ariaLabel: l.split_transaction_edit_split_amount,
|
|
@@ -987,7 +987,7 @@ const xt = O(({ transaction: t }) => {
|
|
|
987
987
|
)
|
|
988
988
|
] }) });
|
|
989
989
|
}, $t = O(Bt), Kt = () => {
|
|
990
|
-
const t =
|
|
990
|
+
const t = _t(), { onEvent: r } = k(), { addTag: s } = M(), { transactions: a } = v(), [o, n] = d.useState(!1), [l, m] = d.useState(""), [c, i] = d.useState(""), _ = d.useRef(null);
|
|
991
991
|
d.useEffect(() => {
|
|
992
992
|
o && _?.current?.focus();
|
|
993
993
|
}, [o]);
|
|
@@ -1122,7 +1122,7 @@ const xt = O(({ transaction: t }) => {
|
|
|
1122
1122
|
role: "checkbox",
|
|
1123
1123
|
children: [
|
|
1124
1124
|
/* @__PURE__ */ e(Z, { sx: { ml: 0 }, children: /* @__PURE__ */ e(
|
|
1125
|
-
|
|
1125
|
+
pt,
|
|
1126
1126
|
{
|
|
1127
1127
|
"aria-hidden": !0,
|
|
1128
1128
|
checked: r.includes(s.guid),
|
|
@@ -1549,7 +1549,7 @@ const xt = O(({ transaction: t }) => {
|
|
|
1549
1549
|
return y.filter((V) => V.date >= Ae(B) && V.date <= Ae(F) && V.guid === g);
|
|
1550
1550
|
}, [K, S, y, w]);
|
|
1551
1551
|
if (!n)
|
|
1552
|
-
return /* @__PURE__ */ e(
|
|
1552
|
+
return /* @__PURE__ */ e(mt, {});
|
|
1553
1553
|
const re = qe(l, "MX_TXN_DETAILS_VIEW_ONLY"), N = J.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
1554
1554
|
return /* @__PURE__ */ u(Y, { className: "mx-txn-transaction-details", width: "100%", children: [
|
|
1555
1555
|
a && /* @__PURE__ */ u(E, { children: [
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import x from "@mui/material/Box";
|
|
3
|
+
import P from "@mui/material/FormControlLabel";
|
|
4
|
+
import H from "@mui/material/Radio";
|
|
5
5
|
import B from "@mui/material/styles/useTheme";
|
|
6
|
-
import
|
|
6
|
+
import K from "@mui/material/Tooltip";
|
|
7
7
|
import { makeAutoObservable as f } from "mobx";
|
|
8
8
|
import { endOfToday as h } from "date-fns/endOfToday";
|
|
9
|
-
import { formatISO as
|
|
9
|
+
import { formatISO as U } from "date-fns/formatISO";
|
|
10
10
|
import { getUnixTime as E } from "date-fns/getUnixTime";
|
|
11
11
|
import { isBefore as V } from "date-fns/isBefore";
|
|
12
|
-
import { startOfMonth as
|
|
12
|
+
import { startOfMonth as L } from "date-fns/startOfMonth";
|
|
13
13
|
import { startOfToday as m } from "date-fns/startOfToday";
|
|
14
14
|
import { subDays as v } from "date-fns/subDays";
|
|
15
15
|
import { B as D } from "./BeatApi-C6pBa0Rb.mjs";
|
|
16
|
-
import { O as n, f as Y } from "./exportTransactionsToCSV-
|
|
16
|
+
import { O as n, f as Y } from "./exportTransactionsToCSV-B2Lp7AMl.mjs";
|
|
17
17
|
import { T as R } from "./TransactionApi-CLG2eSNe.mjs";
|
|
18
|
-
import { b as F } from "./Category-CevNQ03n.mjs";
|
|
19
18
|
import { a as y, T as b } from "./Transaction-Cn5_iFm0.mjs";
|
|
19
|
+
import { b as F } from "./Category-Ccoew_sA.mjs";
|
|
20
20
|
import { format as W } from "date-fns/format";
|
|
21
21
|
import { fromUnixTime as $ } from "date-fns/fromUnixTime";
|
|
22
22
|
import { f as C, D as O, O as k } from "./DateFormats-CaOj_4eI.mjs";
|
|
23
23
|
import { f as z } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
24
24
|
import { endOfMonth as X } from "date-fns/endOfMonth";
|
|
25
|
-
const
|
|
25
|
+
const ft = ({
|
|
26
26
|
checked: l = !1,
|
|
27
27
|
label: t,
|
|
28
28
|
sx: a = {},
|
|
@@ -31,7 +31,7 @@ const j = ({
|
|
|
31
31
|
}) => {
|
|
32
32
|
const d = B(), e = d.palette.mode === "light" ? d.palette.grey[400] : d.palette.grey[700], c = l ? d.palette.action.active : e;
|
|
33
33
|
return /* @__PURE__ */ I(
|
|
34
|
-
|
|
34
|
+
x,
|
|
35
35
|
{
|
|
36
36
|
bgcolor: "background.paper",
|
|
37
37
|
border: `${l ? 3 : 1}px solid`,
|
|
@@ -42,11 +42,11 @@ const j = ({
|
|
|
42
42
|
pr: 8,
|
|
43
43
|
py: 4,
|
|
44
44
|
sx: { "&:hover": { borderColor: d.palette.action.active }, ...a },
|
|
45
|
-
children: /* @__PURE__ */ I(
|
|
46
|
-
|
|
45
|
+
children: /* @__PURE__ */ I(K, { title: s, children: /* @__PURE__ */ I(
|
|
46
|
+
P,
|
|
47
47
|
{
|
|
48
48
|
control: /* @__PURE__ */ I(
|
|
49
|
-
|
|
49
|
+
H,
|
|
50
50
|
{
|
|
51
51
|
disableRipple: !0,
|
|
52
52
|
sx: { "&.Mui-checked": { color: d.palette.action.active } }
|
|
@@ -60,31 +60,19 @@ const j = ({
|
|
|
60
60
|
) })
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
|
-
},
|
|
63
|
+
}, G = {
|
|
64
64
|
ASC: "ASC",
|
|
65
|
-
DESC: "DESC"
|
|
66
|
-
DIRECTION: {
|
|
67
|
-
ASC: "ascending",
|
|
68
|
-
DESC: "descending"
|
|
69
|
-
},
|
|
70
|
-
ALIGN: {
|
|
71
|
-
center: "center",
|
|
72
|
-
left: "flex-start",
|
|
73
|
-
right: "flex-end"
|
|
74
|
-
}
|
|
65
|
+
DESC: "DESC"
|
|
75
66
|
}, o = {
|
|
76
67
|
ADD: "Add",
|
|
77
68
|
ADD_CATEGORY: "Add Category",
|
|
78
69
|
CHANGE_CATEGORY: "Change Category",
|
|
79
|
-
CHANGE_DATE: "Change Date",
|
|
80
70
|
CLOSE: "Close",
|
|
81
71
|
DELETE: "Delete",
|
|
82
72
|
EDIT: "Edit",
|
|
83
|
-
HIDE: "Hide",
|
|
84
73
|
SAVE: "Save",
|
|
85
74
|
SPLIT: "Split",
|
|
86
75
|
SELECT: "Select",
|
|
87
|
-
UNHIDE: "Unhide",
|
|
88
76
|
UNSPLIT: "Unsplit"
|
|
89
77
|
}, T = {
|
|
90
78
|
TRANSACTION_DETAILS: "Transaction Details",
|
|
@@ -107,7 +95,6 @@ const j = ({
|
|
|
107
95
|
TAG_DELETE: "Delete Tag",
|
|
108
96
|
TAG_EDIT: "Edit Tag",
|
|
109
97
|
TRANSACTION: "Transaction",
|
|
110
|
-
TRANSACTIONS_LIST: "Transactions List",
|
|
111
98
|
UNHIDE_TRANSACTION: "Unhide Transaction"
|
|
112
99
|
}, p = {
|
|
113
100
|
// splits
|
|
@@ -323,14 +310,10 @@ const j = ({
|
|
|
323
310
|
category: T.TRANSACTIONS_WIDGET,
|
|
324
311
|
label: r.DELETE_TRANSACTION
|
|
325
312
|
}
|
|
326
|
-
},
|
|
327
|
-
FLAG: "flag",
|
|
313
|
+
}, j = async (l, t) => !t || !p[l] ? null : t.sendAnalyticEvent(p[l]), u = {
|
|
328
314
|
DATE: "date",
|
|
329
|
-
PAYEE: "payee",
|
|
330
|
-
CATEGORY: "category",
|
|
331
|
-
ACCOUNT: "account",
|
|
332
315
|
AMOUNT: "amount"
|
|
333
|
-
},
|
|
316
|
+
}, Z = (l, t, a, s = []) => {
|
|
334
317
|
const A = t.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), d = a.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), e = s.reduce((c, i) => {
|
|
335
318
|
const { transaction_guid: S, tag_guid: N } = i;
|
|
336
319
|
if (!c[S])
|
|
@@ -359,38 +342,38 @@ const j = ({
|
|
|
359
342
|
tags: N
|
|
360
343
|
};
|
|
361
344
|
});
|
|
362
|
-
},
|
|
363
|
-
const e =
|
|
345
|
+
}, q = "uncategorized", J = (l, t, a, s, A, d) => {
|
|
346
|
+
const e = Q(l, A, d), c = tt(e, a, s);
|
|
364
347
|
return t.forEach((i) => {
|
|
365
348
|
const S = c.findIndex((g) => g.guid === i), N = d.filter((g) => g.parent_guid === i);
|
|
366
349
|
c.splice(S + 1, 0, ...N);
|
|
367
350
|
}), c;
|
|
368
|
-
},
|
|
351
|
+
}, Q = (l, t, a) => {
|
|
369
352
|
const {
|
|
370
353
|
accounts: s = [],
|
|
371
|
-
dateRange: A = { start:
|
|
354
|
+
dateRange: A = { start: L(m()), end: h() },
|
|
372
355
|
custom: d = () => !0,
|
|
373
356
|
searchTerm: e = "",
|
|
374
357
|
showSplits: c = !1
|
|
375
358
|
} = l;
|
|
376
359
|
return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!s.find((S) => S === i.account_guid)).filter((i) => i.date >= E(A.start) && i.date <= E(A.end)).filter(d).filter((i) => {
|
|
377
|
-
if (e ===
|
|
360
|
+
if (e === q && i.has_been_split)
|
|
378
361
|
return !1;
|
|
379
362
|
if (/^spl/i.test(e) && (i.has_been_split || i.parent_guid))
|
|
380
363
|
return !0;
|
|
381
364
|
const N = i.tags.some(
|
|
382
|
-
(w) => _(e, t.find((
|
|
365
|
+
(w) => _(e, t.find((M) => M.guid === w)?.name)
|
|
383
366
|
), g = $(i.date);
|
|
384
367
|
return _(e, i.payee) || _(e, i.feed_description) || _(e, i.category) || _(e, C(g, O.MONTH)) || _(e, C(g, O.DAY)) || _(e, C(g, O.FULL_MONTH_DAY)) || _(e, C(g, O.MONTH_DAY_YEAR)) || _(e, W(g, k)) || _(e, i.account) || _(e, z(i.amount, "0,0.00")) || _(e, i.memo) || N;
|
|
385
368
|
});
|
|
386
|
-
},
|
|
369
|
+
}, tt = (l, t, a) => [...l].sort((s, A) => {
|
|
387
370
|
const d = t, e = (s[d] || "") > (A[d] || "");
|
|
388
371
|
let c = e ? -1 : 1, i = e ? 1 : -1;
|
|
389
|
-
return (t ===
|
|
372
|
+
return (t === u.DATE || t === u.AMOUNT) && (c = e ? 1 : -1, i = e ? -1 : 1), a === G.ASC ? c : i;
|
|
390
373
|
}), _ = (l, t) => {
|
|
391
374
|
const a = l.toLowerCase().split(" "), s = t?.toString().toLowerCase() ?? "";
|
|
392
375
|
return a.every((A) => s.indexOf(A) > -1);
|
|
393
|
-
},
|
|
376
|
+
}, at = {
|
|
394
377
|
account_guid: "",
|
|
395
378
|
amount: 0,
|
|
396
379
|
currency_code: "",
|
|
@@ -419,8 +402,8 @@ const j = ({
|
|
|
419
402
|
memo: void 0,
|
|
420
403
|
tags: []
|
|
421
404
|
};
|
|
422
|
-
class
|
|
423
|
-
beginDate =
|
|
405
|
+
class et {
|
|
406
|
+
beginDate = L(/* @__PURE__ */ new Date());
|
|
424
407
|
endDate = X(/* @__PURE__ */ new Date());
|
|
425
408
|
expandedSplits = [];
|
|
426
409
|
height = 550;
|
|
@@ -428,7 +411,7 @@ class st {
|
|
|
428
411
|
shouldDisableDrawerScroll = !1;
|
|
429
412
|
searchValue = "";
|
|
430
413
|
selectedAccountGuids = [];
|
|
431
|
-
manualTransaction =
|
|
414
|
+
manualTransaction = at;
|
|
432
415
|
isAmountValid = !1;
|
|
433
416
|
showInsights = !1;
|
|
434
417
|
constructor() {
|
|
@@ -458,7 +441,7 @@ class st {
|
|
|
458
441
|
this.manualTransaction = t;
|
|
459
442
|
};
|
|
460
443
|
}
|
|
461
|
-
class
|
|
444
|
+
class mt {
|
|
462
445
|
globalStore;
|
|
463
446
|
uiStore;
|
|
464
447
|
api = new R("/", "");
|
|
@@ -481,11 +464,11 @@ class yt {
|
|
|
481
464
|
cachedStartDate = v(m(), 90);
|
|
482
465
|
filter = {};
|
|
483
466
|
isLoading = !0;
|
|
484
|
-
sortColumn =
|
|
467
|
+
sortColumn = u.DATE;
|
|
485
468
|
sortDirection = G.DESC;
|
|
486
|
-
onAnalyticEvent =
|
|
469
|
+
onAnalyticEvent = j;
|
|
487
470
|
constructor(t) {
|
|
488
|
-
this.globalStore = t, this.uiStore = new
|
|
471
|
+
this.globalStore = t, this.uiStore = new et(), this.api = new R(
|
|
489
472
|
t.endpoint,
|
|
490
473
|
t.sessionToken,
|
|
491
474
|
t.onError
|
|
@@ -493,7 +476,7 @@ class yt {
|
|
|
493
476
|
}
|
|
494
477
|
loadTransactionData = async () => {
|
|
495
478
|
this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
|
|
496
|
-
this.loadAssociatedBeats(
|
|
479
|
+
this.loadAssociatedBeats(L(/* @__PURE__ */ new Date())),
|
|
497
480
|
this.loadTags(),
|
|
498
481
|
this.loadTaggings(),
|
|
499
482
|
this.loadTransactionRules(),
|
|
@@ -505,7 +488,7 @@ class yt {
|
|
|
505
488
|
return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
|
|
506
489
|
}
|
|
507
490
|
get detailedTransactions() {
|
|
508
|
-
return this.isTransactionDataLoaded ?
|
|
491
|
+
return this.isTransactionDataLoaded ? Z(
|
|
509
492
|
this.transactions,
|
|
510
493
|
this.globalStore.accountStore.visibleAccounts,
|
|
511
494
|
this.globalStore.categoryStore.categories,
|
|
@@ -513,7 +496,7 @@ class yt {
|
|
|
513
496
|
) : [];
|
|
514
497
|
}
|
|
515
498
|
get sortedTransactions() {
|
|
516
|
-
return
|
|
499
|
+
return J(
|
|
517
500
|
this.filter,
|
|
518
501
|
this.uiStore.expandedSplits,
|
|
519
502
|
this.sortColumn,
|
|
@@ -574,7 +557,7 @@ class yt {
|
|
|
574
557
|
loadAssociatedBeats = async (t) => {
|
|
575
558
|
if (this.associatedBeatsLoading) return;
|
|
576
559
|
this.associatedBeatsLoading = !0;
|
|
577
|
-
const a = t ?
|
|
560
|
+
const a = t ? U(t, { representation: "date" }) : void 0;
|
|
578
561
|
try {
|
|
579
562
|
const s = await this.beatApi.getBeatsWithAssociatedTransaction(a);
|
|
580
563
|
this.setAssociatedBeats(s);
|
|
@@ -717,7 +700,7 @@ class yt {
|
|
|
717
700
|
};
|
|
718
701
|
}
|
|
719
702
|
export {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
703
|
+
at as D,
|
|
704
|
+
ft as S,
|
|
705
|
+
mt as T
|
|
723
706
|
};
|
|
@@ -11,7 +11,7 @@ import { addSeconds as N } from "date-fns/addSeconds";
|
|
|
11
11
|
import { differenceInCalendarMonths as v } from "date-fns/differenceInCalendarMonths";
|
|
12
12
|
import { endOfMonth as D } from "date-fns/endOfMonth";
|
|
13
13
|
import { subMonths as w } from "date-fns/subMonths";
|
|
14
|
-
import { b as I,
|
|
14
|
+
import { b as I, a as _, c as O } from "./Category-Ccoew_sA.mjs";
|
|
15
15
|
import { f as C, D as L } from "./DateFormats-CaOj_4eI.mjs";
|
|
16
16
|
const rt = ({
|
|
17
17
|
onClick: e,
|