@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11
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 +4 -0
- package/dist/{Account-D_kRKI6x.mjs → Account-BVKkr6ft.mjs} +1 -1
- package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-BmQ5a3Lk.mjs} +8 -8
- package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-vSwO-5Wk.mjs} +5 -5
- package/dist/{AccountFields-DeebSePp.mjs → AccountFields-VRK4zgvW.mjs} +2 -2
- package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-SkBUCsb0.mjs} +3 -3
- package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-3Umlm7QY.mjs} +5 -5
- package/dist/{Accounts-DppzmFak.mjs → Accounts-CYsoAdW-.mjs} +1 -1
- package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
- package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-BA9H_xx8.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-Bs-NUsAs.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-BwmpJMik.mjs} +1 -1
- package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CvyiKLTh.mjs} +3 -3
- package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
- package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BH5TWxYr.mjs} +21 -21
- package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
- package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-DCUX6T2b.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-NKD8a-19.mjs} +2 -2
- package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
- package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-BD_CIXnV.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{Transaction-CXMMfhz-.mjs → Transaction-Dns0Kuuy.mjs} +1 -1
- package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/{TransactionDetails-v77agHHP.mjs → TransactionDetails-DFDYdDae.mjs} +5 -5
- package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-BVKUoEHj.mjs} +25 -29
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
- package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-BHhhVctF.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +315 -321
- package/dist/common/stores/GlobalStore.d.ts +1 -2
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +197 -180
- package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-B4JW8rfR.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-h96aTml7.mjs +0 -37
- package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-DcS6DyRl.mjs +0 -74
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
import M, { useState as J, useEffect as K, useRef as vt } from "react";
|
|
2
|
+
import { l as St, u as _t, k as Q } from "./hooks-DkUqN6JE.mjs";
|
|
3
|
+
import { jsxs as f, jsx as s } from "react/jsx-runtime";
|
|
4
|
+
import L from "@mui/material/Box";
|
|
5
|
+
import T from "@mui/material/Stack";
|
|
6
|
+
import { useTheme as U } from "@mui/material/styles";
|
|
7
|
+
import { LineChart as Mt } from "@mui/x-charts";
|
|
8
|
+
import { u as Z } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
9
|
+
import { u as Tt } from "./useDimensions-27p2evRx.mjs";
|
|
10
|
+
import { observer as Dt } from "mobx-react-lite";
|
|
11
|
+
import At from "@mui/material/Card";
|
|
12
|
+
import Lt from "@mui/material/CardContent";
|
|
13
|
+
import P from "@mui/material/Divider";
|
|
14
|
+
import X from "@mui/material/Grid";
|
|
15
|
+
import { CategoryIcon as Rt, Text as S } from "@mxenabled/mxui";
|
|
16
|
+
import { b as It } from "./Localization-2MODESHW.mjs";
|
|
17
|
+
import { C as O } from "./CurrencyText-YUhH2caW.mjs";
|
|
18
|
+
import { useTheme as wt, Card as Ht, CardContent as Et, Box as kt } from "@mui/material";
|
|
19
|
+
import { f as R, D as I } from "./Dialog-CWW597AF.mjs";
|
|
20
|
+
import Gt from "@mui/material/Button";
|
|
21
|
+
import { C as A, b as Nt, c as Bt } from "./Category-CevNQ03n.mjs";
|
|
22
|
+
import { f as z } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
23
|
+
import Ot from "@mui/material/ListItem";
|
|
24
|
+
import $t from "@mui/material/ListItemButton";
|
|
25
|
+
import V from "@mui/material/ListItemIcon";
|
|
26
|
+
import Wt from "@mui/material/ListItemText";
|
|
27
|
+
import { makeAutoObservable as jt } from "mobx";
|
|
28
|
+
import { addSeconds as Ft } from "date-fns/addSeconds";
|
|
29
|
+
import { differenceInCalendarMonths as Yt } from "date-fns/differenceInCalendarMonths";
|
|
30
|
+
import { endOfMonth as q } from "date-fns/endOfMonth";
|
|
31
|
+
import { subMonths as Pt } from "date-fns/subMonths";
|
|
32
|
+
const Ee = () => {
|
|
33
|
+
const { isInitialized: o, appDataStore: e } = St(), [r, n] = J(!1);
|
|
34
|
+
return K(() => {
|
|
35
|
+
o && e.clientInsightProfile?.is_enabled && n(!0);
|
|
36
|
+
}, [o, e.clientInsightProfile]), r;
|
|
37
|
+
}, tt = ({ categoryGuid: o, topLevelCategoryGuid: e }) => {
|
|
38
|
+
const { categories: r } = _t(), { getCategoryName: n } = Q(), a = n(o);
|
|
39
|
+
return /* @__PURE__ */ f(T, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
40
|
+
/* @__PURE__ */ s(
|
|
41
|
+
L,
|
|
42
|
+
{
|
|
43
|
+
"aria-label": It(r.category_icon_label_aria, a),
|
|
44
|
+
mb: 4,
|
|
45
|
+
role: "img",
|
|
46
|
+
children: /* @__PURE__ */ s(Rt, { categoryGuid: e })
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ s(S, { variant: "Body", children: a })
|
|
50
|
+
] });
|
|
51
|
+
}, Xt = ({
|
|
52
|
+
categoryGuids: { guid: o, topLevelGuid: e },
|
|
53
|
+
hoveredAreaData: r,
|
|
54
|
+
cursorPosition: n,
|
|
55
|
+
chartContainerRef: a
|
|
56
|
+
}) => {
|
|
57
|
+
const i = U(), c = vt(null), [h, g] = J({ x: n.x, y: n.y });
|
|
58
|
+
if (K(() => {
|
|
59
|
+
(() => {
|
|
60
|
+
const u = c.current, x = a.current;
|
|
61
|
+
if (!u || !x) return;
|
|
62
|
+
const y = u.getBoundingClientRect(), C = x.getBoundingClientRect();
|
|
63
|
+
let p = n.x, v = n.y;
|
|
64
|
+
p + y.width * 2 > C.right ? p = n.x - y.width : p - y.width < C.left && (p = n.x), v + y.height * 2 > C.bottom && (v = n.y - y.height), g({ x: p, y: v });
|
|
65
|
+
})();
|
|
66
|
+
}, [n, a]), !r) return null;
|
|
67
|
+
const b = r.reduce((d, u) => d + u.y, 0);
|
|
68
|
+
return /* @__PURE__ */ s(
|
|
69
|
+
At,
|
|
70
|
+
{
|
|
71
|
+
ref: c,
|
|
72
|
+
sx: {
|
|
73
|
+
position: "absolute",
|
|
74
|
+
top: h.y,
|
|
75
|
+
left: h.x,
|
|
76
|
+
width: 250,
|
|
77
|
+
pointerEvents: "none"
|
|
78
|
+
},
|
|
79
|
+
children: /* @__PURE__ */ f(Lt, { children: [
|
|
80
|
+
/* @__PURE__ */ f(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
81
|
+
/* @__PURE__ */ s(tt, { categoryGuid: o, topLevelCategoryGuid: e }),
|
|
82
|
+
/* @__PURE__ */ s(S, { variant: "Small", children: `${r.length}-month total` }),
|
|
83
|
+
/* @__PURE__ */ s(O, { amount: b, bold: !0, formatString: "0,0", variant: "body2" })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ s(P, { sx: { my: 16, width: "100%" } }),
|
|
86
|
+
/* @__PURE__ */ s(X, { container: !0, children: r.map((d, u) => /* @__PURE__ */ f(M.Fragment, { children: [
|
|
87
|
+
u > 0 && u % 3 === 0 && /* @__PURE__ */ s(P, { sx: { my: 16, width: "100%" } }),
|
|
88
|
+
/* @__PURE__ */ s(X, { item: !0, xs: 4, children: /* @__PURE__ */ f(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
89
|
+
/* @__PURE__ */ s(S, { color: i.palette.text.secondary, variant: "XSmall", children: d.x }),
|
|
90
|
+
/* @__PURE__ */ s(
|
|
91
|
+
O,
|
|
92
|
+
{
|
|
93
|
+
amount: d.y,
|
|
94
|
+
bold: !0,
|
|
95
|
+
formatString: "0,0",
|
|
96
|
+
variant: "Body"
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] }) })
|
|
100
|
+
] }, u)) })
|
|
101
|
+
] })
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}, zt = Dt(Xt), Vt = ({
|
|
105
|
+
categoryGuids: { guid: o, topLevelGuid: e },
|
|
106
|
+
itemData: { dataIndex: r },
|
|
107
|
+
series: n,
|
|
108
|
+
xData: a
|
|
109
|
+
}) => {
|
|
110
|
+
const i = wt(), c = n.data[r], h = a[r];
|
|
111
|
+
return c === void 0 || !h ? null : /* @__PURE__ */ s(Ht, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ s(Et, { children: /* @__PURE__ */ f(kt, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
112
|
+
/* @__PURE__ */ s(tt, { categoryGuid: o, topLevelCategoryGuid: e }),
|
|
113
|
+
/* @__PURE__ */ s(S, { color: i.palette.text.secondary, variant: "Small", children: R(h, I.MONTH_SHORT_YEAR) }),
|
|
114
|
+
/* @__PURE__ */ s(O, { amount: String(c), bold: !0, formatString: "0,0", variant: "Body" })
|
|
115
|
+
] }) }) });
|
|
116
|
+
}, qt = ({
|
|
117
|
+
sx: o,
|
|
118
|
+
categoryGuids: e,
|
|
119
|
+
hoveredLegend: r,
|
|
120
|
+
legendRef: n,
|
|
121
|
+
onHoverLegend: a,
|
|
122
|
+
onClickLegend: i
|
|
123
|
+
}) => {
|
|
124
|
+
const { isMobile: c } = Z(), { getCategoryName: h } = Q();
|
|
125
|
+
return /* @__PURE__ */ s(
|
|
126
|
+
T,
|
|
127
|
+
{
|
|
128
|
+
direction: "row",
|
|
129
|
+
flexWrap: "wrap",
|
|
130
|
+
gap: c ? 2 : 6,
|
|
131
|
+
justifyContent: "start",
|
|
132
|
+
ref: n,
|
|
133
|
+
sx: o,
|
|
134
|
+
children: e.map(({ guid: g, top_level_guid: b }) => {
|
|
135
|
+
const d = r === g, u = A[g], x = A[b], y = u ?? x ?? A.default, C = y + "33";
|
|
136
|
+
return /* @__PURE__ */ f(
|
|
137
|
+
Gt,
|
|
138
|
+
{
|
|
139
|
+
onClick: () => i(g),
|
|
140
|
+
onMouseEnter: () => a(g),
|
|
141
|
+
onMouseLeave: () => a(null),
|
|
142
|
+
sx: {
|
|
143
|
+
color: "text.primary",
|
|
144
|
+
fontWeight: "normal",
|
|
145
|
+
display: "flex",
|
|
146
|
+
justifyContent: "center",
|
|
147
|
+
alignItems: "center",
|
|
148
|
+
paddingX: 8,
|
|
149
|
+
paddingY: 4,
|
|
150
|
+
borderRadius: 1,
|
|
151
|
+
opacity: d ? 1 : 0.7
|
|
152
|
+
},
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ s(
|
|
155
|
+
L,
|
|
156
|
+
{
|
|
157
|
+
sx: {
|
|
158
|
+
width: 16,
|
|
159
|
+
height: 16,
|
|
160
|
+
marginRight: c ? 5 : 10,
|
|
161
|
+
borderRadius: "2px",
|
|
162
|
+
backgroundColor: r ? d ? y : C : y
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
/* @__PURE__ */ s(S, { variant: "Body", children: h(g) })
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
g
|
|
170
|
+
);
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
}, ke = ({
|
|
175
|
+
onHoverArea: o,
|
|
176
|
+
onHoverPoint: e,
|
|
177
|
+
onHoverLegend: r,
|
|
178
|
+
onClickLegend: n,
|
|
179
|
+
stackedDatasets: a,
|
|
180
|
+
unstackedDatasets: i = [],
|
|
181
|
+
availableHeight: c = 0,
|
|
182
|
+
minimumHeight: h = 350
|
|
183
|
+
}) => {
|
|
184
|
+
const g = U(), { isMobile: b } = Z(), [d, { height: u }] = Tt(), x = M.useRef(null), [y, C] = M.useState(0);
|
|
185
|
+
M.useEffect(() => {
|
|
186
|
+
const t = Math.max(c - u, h);
|
|
187
|
+
C(t);
|
|
188
|
+
}, [c, u]);
|
|
189
|
+
const [p, v] = M.useState(null), [et, w] = M.useState({
|
|
190
|
+
hoveredSeriesId: null,
|
|
191
|
+
hoveredAreaData: null,
|
|
192
|
+
isAreaHovered: !1,
|
|
193
|
+
cursorPos: { x: 0, y: 0 }
|
|
194
|
+
}), { hoveredSeriesId: D, hoveredAreaData: $, isAreaHovered: ot, cursorPos: H } = et, W = ot && D && $, j = !W, G = [...a, ...i], rt = G[0]?.dataset.length ?? 0, N = G.flatMap((t) => t.dataset.map((l) => l.x)), nt = G.flatMap((t) => t.dataset.map((l) => l.y)), at = a[0]?.dataset?.map(
|
|
195
|
+
(t, l) => a.reduce((m, _) => m + _.dataset[l]?.y || 0, 0)
|
|
196
|
+
) ?? [0], st = Math.max(...at), it = Math.max(
|
|
197
|
+
...i.flatMap((t) => t.dataset.map((l) => l.y))
|
|
198
|
+
), lt = Math.floor(Math.min(...nt) / 100) * 100, ct = Math.ceil(Math.max(st, it) / 100) * 100, E = a.map((t, l) => ({
|
|
199
|
+
id: `stacked-${l}`,
|
|
200
|
+
guid: t.category_guid,
|
|
201
|
+
top_level_guid: t.top_level_category_guid,
|
|
202
|
+
area: !0,
|
|
203
|
+
color: a[l].category_color ?? g.palette.primary.main,
|
|
204
|
+
data: t.dataset.map((m) => m.y),
|
|
205
|
+
label: a[l].category_name,
|
|
206
|
+
stack: "total",
|
|
207
|
+
type: "line",
|
|
208
|
+
highlightScope: { highlight: "item" },
|
|
209
|
+
valueFormatter: (m) => z(m, "0,0")
|
|
210
|
+
})), F = i.map((t, l) => ({
|
|
211
|
+
id: `unstacked-${l}`,
|
|
212
|
+
guid: t.category_guid,
|
|
213
|
+
top_level_guid: t.top_level_category_guid,
|
|
214
|
+
area: !1,
|
|
215
|
+
color: t.category_color,
|
|
216
|
+
data: t.dataset.map((m) => m.y),
|
|
217
|
+
label: t.category_name,
|
|
218
|
+
type: "line",
|
|
219
|
+
valueFormatter: (m) => z(m, "0,0")
|
|
220
|
+
})), Y = [...E, ...F], dt = [
|
|
221
|
+
...E.map(({ guid: t, top_level_guid: l }) => ({
|
|
222
|
+
guid: t,
|
|
223
|
+
top_level_guid: l
|
|
224
|
+
})),
|
|
225
|
+
...F.map(({ guid: t, top_level_guid: l }) => ({
|
|
226
|
+
guid: t,
|
|
227
|
+
top_level_guid: l
|
|
228
|
+
}))
|
|
229
|
+
], k = (t) => {
|
|
230
|
+
const m = t.startsWith("stacked-") ? a[parseInt(t.split("-")[1])] : i[parseInt(t.split("-")[1])];
|
|
231
|
+
return {
|
|
232
|
+
guid: m?.category_guid,
|
|
233
|
+
topLevelGuid: m?.top_level_category_guid
|
|
234
|
+
};
|
|
235
|
+
}, ut = (t) => {
|
|
236
|
+
v(t), r?.(t ?? "");
|
|
237
|
+
}, mt = (t) => {
|
|
238
|
+
n?.(t ?? "");
|
|
239
|
+
}, gt = () => {
|
|
240
|
+
const t = k(String(D)).guid;
|
|
241
|
+
t && n?.(t);
|
|
242
|
+
}, ht = (t) => {
|
|
243
|
+
const l = String(t?.seriesId), m = k(l).guid, _ = Y.find((B) => B.id === l), ft = _ && t?.dataIndex !== void 0, xt = _ && t?.dataIndex === void 0;
|
|
244
|
+
if (ft)
|
|
245
|
+
w({
|
|
246
|
+
hoveredSeriesId: l,
|
|
247
|
+
hoveredAreaData: null,
|
|
248
|
+
isAreaHovered: !1,
|
|
249
|
+
cursorPos: H
|
|
250
|
+
}), e?.(m);
|
|
251
|
+
else if (xt) {
|
|
252
|
+
const B = _?.data.map((bt, Ct) => ({
|
|
253
|
+
x: N[Ct],
|
|
254
|
+
y: bt
|
|
255
|
+
})) ?? [];
|
|
256
|
+
w({
|
|
257
|
+
hoveredSeriesId: l,
|
|
258
|
+
hoveredAreaData: B,
|
|
259
|
+
isAreaHovered: !0,
|
|
260
|
+
cursorPos: H
|
|
261
|
+
}), o?.(m);
|
|
262
|
+
} else
|
|
263
|
+
w({
|
|
264
|
+
hoveredSeriesId: null,
|
|
265
|
+
hoveredAreaData: null,
|
|
266
|
+
isAreaHovered: !1,
|
|
267
|
+
cursorPos: H
|
|
268
|
+
});
|
|
269
|
+
}, pt = (t) => {
|
|
270
|
+
const l = t.currentTarget.getBoundingClientRect();
|
|
271
|
+
w((m) => ({
|
|
272
|
+
...m,
|
|
273
|
+
cursorPos: {
|
|
274
|
+
x: t.clientX - l.left,
|
|
275
|
+
y: t.clientY - l.top
|
|
276
|
+
}
|
|
277
|
+
}));
|
|
278
|
+
}, yt = {
|
|
279
|
+
p: 4,
|
|
280
|
+
"& .MuiBarLabel-root": {
|
|
281
|
+
fontSize: 10,
|
|
282
|
+
fontWeight: 600
|
|
283
|
+
},
|
|
284
|
+
"& .MuiAreaElement-root": {
|
|
285
|
+
opacity: 0.4,
|
|
286
|
+
transition: "opacity 0.3s ease"
|
|
287
|
+
},
|
|
288
|
+
"& .MuiAreaElement-root:hover": {
|
|
289
|
+
opacity: 1
|
|
290
|
+
},
|
|
291
|
+
'& [class*="MuiLineElement-series-unstacked-"]': {
|
|
292
|
+
strokeWidth: 3
|
|
293
|
+
},
|
|
294
|
+
...p && E.reduce((t, l, m) => {
|
|
295
|
+
const _ = `.MuiAreaElement-series-stacked-${m}`;
|
|
296
|
+
return t[_] = {
|
|
297
|
+
opacity: E[m].guid === p ? 0.9 : 0.2
|
|
298
|
+
}, t;
|
|
299
|
+
}, {})
|
|
300
|
+
};
|
|
301
|
+
return /* @__PURE__ */ s(
|
|
302
|
+
L,
|
|
303
|
+
{
|
|
304
|
+
onMouseMove: pt,
|
|
305
|
+
ref: x,
|
|
306
|
+
sx: {
|
|
307
|
+
position: "relative",
|
|
308
|
+
touchAction: "pan-y",
|
|
309
|
+
"& svg": {
|
|
310
|
+
touchAction: "pan-y",
|
|
311
|
+
userSelect: "none"
|
|
312
|
+
},
|
|
313
|
+
"& .recharts-wrapper": {
|
|
314
|
+
touchAction: "pan-y"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
children: /* @__PURE__ */ f(
|
|
318
|
+
T,
|
|
319
|
+
{
|
|
320
|
+
direction: { xs: "column", md: "column" },
|
|
321
|
+
spacing: { xs: 0, md: 4 },
|
|
322
|
+
sx: { width: "100%", position: "relative" },
|
|
323
|
+
children: [
|
|
324
|
+
/* @__PURE__ */ s(
|
|
325
|
+
Mt,
|
|
326
|
+
{
|
|
327
|
+
height: y,
|
|
328
|
+
margin: { bottom: 50 },
|
|
329
|
+
onAreaClick: gt,
|
|
330
|
+
onHighlightChange: ht,
|
|
331
|
+
series: Y,
|
|
332
|
+
skipAnimation: !0,
|
|
333
|
+
slotProps: {
|
|
334
|
+
legend: {
|
|
335
|
+
hidden: !0
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
slots: {
|
|
339
|
+
itemContent: (t) => j && D ? /* @__PURE__ */ s(
|
|
340
|
+
Vt,
|
|
341
|
+
{
|
|
342
|
+
categoryGuids: k(D),
|
|
343
|
+
xData: N,
|
|
344
|
+
...t
|
|
345
|
+
}
|
|
346
|
+
) : null
|
|
347
|
+
},
|
|
348
|
+
sx: yt,
|
|
349
|
+
tooltip: {
|
|
350
|
+
trigger: j ? "item" : "none"
|
|
351
|
+
},
|
|
352
|
+
xAxis: [
|
|
353
|
+
{
|
|
354
|
+
data: N,
|
|
355
|
+
scaleType: "time",
|
|
356
|
+
valueFormatter: (t) => R(t, I.MONTH_SHORT_YEAR),
|
|
357
|
+
tickNumber: rt
|
|
358
|
+
// How many ticks to show on the x-axis
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
yAxis: [
|
|
362
|
+
{
|
|
363
|
+
min: lt,
|
|
364
|
+
max: ct || 100
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
),
|
|
369
|
+
/* @__PURE__ */ s(
|
|
370
|
+
qt,
|
|
371
|
+
{
|
|
372
|
+
categoryGuids: dt,
|
|
373
|
+
hoveredLegend: p,
|
|
374
|
+
legendRef: d,
|
|
375
|
+
onClickLegend: mt,
|
|
376
|
+
onHoverLegend: ut,
|
|
377
|
+
sx: { px: b ? 0 : 24 }
|
|
378
|
+
}
|
|
379
|
+
),
|
|
380
|
+
W && /* @__PURE__ */ s(
|
|
381
|
+
zt,
|
|
382
|
+
{
|
|
383
|
+
categoryGuids: k(D),
|
|
384
|
+
chartContainerRef: x,
|
|
385
|
+
cursorPosition: H,
|
|
386
|
+
hoveredAreaData: $.map((t) => ({
|
|
387
|
+
...t,
|
|
388
|
+
x: R(t.x, I.MONTH_SHORT_YEAR)
|
|
389
|
+
}))
|
|
390
|
+
}
|
|
391
|
+
)
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
}
|
|
396
|
+
);
|
|
397
|
+
}, Ge = ({
|
|
398
|
+
onClick: o,
|
|
399
|
+
leftIcon: e,
|
|
400
|
+
rightIcon: r,
|
|
401
|
+
title: n,
|
|
402
|
+
subtitle: a,
|
|
403
|
+
rightContent: i,
|
|
404
|
+
titleBold: c = !0,
|
|
405
|
+
rightContentBold: h = !0
|
|
406
|
+
}) => {
|
|
407
|
+
const g = /* @__PURE__ */ f(M.Fragment, { children: [
|
|
408
|
+
e && /* @__PURE__ */ s(V, { sx: { ml: 0 }, children: e }),
|
|
409
|
+
/* @__PURE__ */ s(Wt, { children: /* @__PURE__ */ f(
|
|
410
|
+
T,
|
|
411
|
+
{
|
|
412
|
+
sx: {
|
|
413
|
+
alignItems: "center",
|
|
414
|
+
flexDirection: "row",
|
|
415
|
+
marginLeft: 12
|
|
416
|
+
},
|
|
417
|
+
children: [
|
|
418
|
+
/* @__PURE__ */ f(T, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
419
|
+
/* @__PURE__ */ s(S, { bold: c, variant: "body1", children: n }),
|
|
420
|
+
a && /* @__PURE__ */ s(S, { variant: "caption", children: a })
|
|
421
|
+
] }),
|
|
422
|
+
/* @__PURE__ */ f(T, { sx: { flexDirection: "row", alignItems: "center", gap: 1 }, children: [
|
|
423
|
+
i && /* @__PURE__ */ s(S, { bold: h, display: "flex", variant: "body1", children: i }),
|
|
424
|
+
r && /* @__PURE__ */ s(V, { children: r })
|
|
425
|
+
] })
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
) })
|
|
429
|
+
] });
|
|
430
|
+
return /* @__PURE__ */ s(Ot, { sx: { bgcolor: "background.paper" }, children: o ? /* @__PURE__ */ s(
|
|
431
|
+
$t,
|
|
432
|
+
{
|
|
433
|
+
onClick: o,
|
|
434
|
+
sx: {
|
|
435
|
+
py: 14
|
|
436
|
+
},
|
|
437
|
+
children: g
|
|
438
|
+
}
|
|
439
|
+
) : /* @__PURE__ */ s(
|
|
440
|
+
T,
|
|
441
|
+
{
|
|
442
|
+
sx: {
|
|
443
|
+
py: 14,
|
|
444
|
+
px: 24,
|
|
445
|
+
width: "100%",
|
|
446
|
+
flexDirection: "row",
|
|
447
|
+
alignItems: "center"
|
|
448
|
+
},
|
|
449
|
+
children: g
|
|
450
|
+
}
|
|
451
|
+
) });
|
|
452
|
+
}, Jt = (o) => A[o] ?? A.default, Kt = (o) => Bt[o];
|
|
453
|
+
function Qt(o, e) {
|
|
454
|
+
const r = [], n = new Date(o);
|
|
455
|
+
for (; n <= e; ) {
|
|
456
|
+
const a = n.getFullYear(), i = String(n.getMonth() + 1).padStart(2, "0");
|
|
457
|
+
r.push(+`${a}${i}`), n.setMonth(n.getMonth() + 1);
|
|
458
|
+
}
|
|
459
|
+
return r;
|
|
460
|
+
}
|
|
461
|
+
const Ut = (o) => o.reduce((r, n) => {
|
|
462
|
+
const a = {
|
|
463
|
+
top_level_category_guid: n.top_level_category_guid,
|
|
464
|
+
category_guid: n.category_guid,
|
|
465
|
+
amount: n.total,
|
|
466
|
+
year_month: n.year_month
|
|
467
|
+
}, { top_level_category_guid: i, category_guid: c } = a;
|
|
468
|
+
return r[c] || (r[c] = []), r[c].push(a), i !== c && (r[i] || (r[i] = []), r[i].push(a)), r;
|
|
469
|
+
}, {}), Ne = (o, e, r) => {
|
|
470
|
+
const n = Ut(o), a = Qt(e, r);
|
|
471
|
+
return Object.entries(n).map(([c, h]) => {
|
|
472
|
+
const g = h[0].top_level_category_guid, b = a.map((d) => {
|
|
473
|
+
const u = h.filter((p) => p.year_month === d).reduce((p, v) => p + Math.abs(v.amount), 0), x = Number(String(d).slice(0, 4)), y = Number(String(d).slice(4));
|
|
474
|
+
return { x: new Date(x, y - 1), y: u };
|
|
475
|
+
}).sort((d, u) => d.x.getTime() - u.x.getTime());
|
|
476
|
+
return {
|
|
477
|
+
top_level_category_guid: g,
|
|
478
|
+
category_guid: c,
|
|
479
|
+
category_name: Kt(c),
|
|
480
|
+
category_color: Jt(g),
|
|
481
|
+
dataset: b
|
|
482
|
+
};
|
|
483
|
+
});
|
|
484
|
+
}, Be = (o, e) => {
|
|
485
|
+
const r = typeof o == "string" ? parseFloat(o.replace(/[^0-9.-]+/g, "")) : o, n = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e;
|
|
486
|
+
return (r || 0) - (n || 0);
|
|
487
|
+
}, Zt = (o, e) => {
|
|
488
|
+
const r = o.subCategories.filter((i) => i.currentAmount !== 0), n = o.totalMonthlyAmounts.slice(-e), a = (i) => i.substring(0, 3) + " " + i.slice(-4);
|
|
489
|
+
return n.map((i) => {
|
|
490
|
+
const c = a(i.label), h = r.map((d) => {
|
|
491
|
+
const u = d.monthlyAmounts.slice(-e).find((x) => a(x.label) === c);
|
|
492
|
+
return {
|
|
493
|
+
label: d.name,
|
|
494
|
+
amount: Math.abs(u?.amount || 0),
|
|
495
|
+
header: c
|
|
496
|
+
};
|
|
497
|
+
}), g = o.monthlyAmounts.slice(-e).find((d) => a(d.label) === c);
|
|
498
|
+
return [{
|
|
499
|
+
label: o.name,
|
|
500
|
+
amount: Math.abs(g?.amount || 0),
|
|
501
|
+
header: c
|
|
502
|
+
}, ...h].sort((d, u) => u.amount - d.amount);
|
|
503
|
+
});
|
|
504
|
+
}, te = (o, e) => {
|
|
505
|
+
const r = o ? o.totalMonthlyAmounts.slice(-e).map((a) => ({
|
|
506
|
+
x: a.label.substring(0, 3),
|
|
507
|
+
y: Math.abs(a.amount)
|
|
508
|
+
})) : [], n = o ? Zt(o, e) : [];
|
|
509
|
+
return { monthlyAmounts: r, tooltipLabels: n };
|
|
510
|
+
}, ee = (o) => o.slice().filter(
|
|
511
|
+
(e) => e.totalAmount !== 0 && e.isTransfer === !1 && e.guid !== Nt.INVESTMENTS
|
|
512
|
+
).sort((e, r) => Math.abs(r.totalAmount) - Math.abs(e.totalAmount));
|
|
513
|
+
class Oe {
|
|
514
|
+
globalStore;
|
|
515
|
+
selectedCategoryData = null;
|
|
516
|
+
selectedDateRange;
|
|
517
|
+
visibleListLength = 5;
|
|
518
|
+
constructor(e) {
|
|
519
|
+
this.globalStore = e, this.selectedDateRange = {
|
|
520
|
+
start: Ft(q(Pt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
521
|
+
end: q(/* @__PURE__ */ new Date())
|
|
522
|
+
}, jt(this);
|
|
523
|
+
}
|
|
524
|
+
setSelectedCategoryData = (e) => {
|
|
525
|
+
this.selectedCategoryData = e;
|
|
526
|
+
};
|
|
527
|
+
setSelectedDateRange = (e) => {
|
|
528
|
+
this.selectedDateRange = e;
|
|
529
|
+
};
|
|
530
|
+
setVisibleListLength = (e) => {
|
|
531
|
+
this.visibleListLength = e;
|
|
532
|
+
};
|
|
533
|
+
get sortedDetailedCategoriesWithTransactions() {
|
|
534
|
+
return ee(
|
|
535
|
+
this.globalStore.categoryStore.detailedCategoriesWithTransactions
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
get selectedDateRangeMonthCount() {
|
|
539
|
+
return Yt(this.selectedDateRange.end, this.selectedDateRange.start) + 1;
|
|
540
|
+
}
|
|
541
|
+
get selectedDateRangeMonthRange() {
|
|
542
|
+
const e = R(this.selectedDateRange.start, I.MONTH_LONG), r = R(this.selectedDateRange.end, I.MONTH_LONG);
|
|
543
|
+
return `${e} - ${r}`;
|
|
544
|
+
}
|
|
545
|
+
get visibleCategories() {
|
|
546
|
+
return this.sortedDetailedCategoriesWithTransactions.slice(0, this.visibleListLength);
|
|
547
|
+
}
|
|
548
|
+
get collapsedCategories() {
|
|
549
|
+
return this.sortedDetailedCategoriesWithTransactions.slice(this.visibleListLength);
|
|
550
|
+
}
|
|
551
|
+
get categoryDetailsChartData() {
|
|
552
|
+
return te(
|
|
553
|
+
this.selectedCategoryData,
|
|
554
|
+
this.selectedDateRangeMonthCount
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
export {
|
|
559
|
+
Ge as L,
|
|
560
|
+
ke as S,
|
|
561
|
+
Oe as T,
|
|
562
|
+
Be as a,
|
|
563
|
+
Ne as g,
|
|
564
|
+
Ee as u
|
|
565
|
+
};
|
|
@@ -18,8 +18,8 @@ import { css as qe } from "@mxenabled/cssinjs";
|
|
|
18
18
|
import { b as Je } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import et from "@mui/material/CircularProgress";
|
|
20
20
|
import { makeAutoObservable as ce, runInAction as Te } from "mobx";
|
|
21
|
-
import { G as pe, a as tt, u as it, b as ot } from "./useCombineEvents-
|
|
22
|
-
import { B as _e } from "./BeatApi-
|
|
21
|
+
import { G as pe, a as tt, u as it, b as ot } from "./useCombineEvents-DaDBSR_1.mjs";
|
|
22
|
+
import { B as _e } from "./BeatApi-DLu87ijw.mjs";
|
|
23
23
|
import rt from "@mui/material/Card";
|
|
24
24
|
import lt from "@mui/material/CardActions";
|
|
25
25
|
import nt from "@mui/material/CardContent";
|
|
@@ -35,9 +35,6 @@ class ct {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
ce(this);
|
|
37
37
|
}
|
|
38
|
-
// NOTE: Not sure if this is special case, but other stores have this deprecation todo
|
|
39
|
-
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
|
40
|
-
// TODO: Remove this function
|
|
41
38
|
initialize = async (o, t) => {
|
|
42
39
|
this.copyApi = new pe(o, t), await this.loadCopy();
|
|
43
40
|
};
|
|
@@ -12,7 +12,7 @@ import Y from "@mui/material/Stack";
|
|
|
12
12
|
import { Icon as s, Text as z, DateRangePicker as q, H1 as se, H3 as le } from "@mxenabled/mxui";
|
|
13
13
|
import { u as Ce } from "./useDimensions-27p2evRx.mjs";
|
|
14
14
|
import { L as de } from "./Loader-Dp1P2gNw.mjs";
|
|
15
|
-
import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-
|
|
15
|
+
import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-DkUqN6JE.mjs";
|
|
16
16
|
import { u as ae } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { addMonths as J } from "date-fns/addMonths";
|
|
18
18
|
import { addDays as ge } from "date-fns/addDays";
|
|
@@ -35,7 +35,7 @@ import Oe from "@mui/material/ToggleButtonGroup";
|
|
|
35
35
|
import fe from "@mui/material/styles/useTheme";
|
|
36
36
|
import { f as K, D as G, a as be } from "./Dialog-CWW597AF.mjs";
|
|
37
37
|
import { D as we } from "./Drawer-kEE73B87.mjs";
|
|
38
|
-
import { g as Ke, h as Ge } from "./ConnectDrawer-
|
|
38
|
+
import { g as Ke, h as Ge } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
39
39
|
const Me = {
|
|
40
40
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
41
41
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../../common/utils/Fetch';
|
|
2
|
-
import { Account
|
|
2
|
+
import { Account } from '../../common';
|
|
3
3
|
export declare class AccountApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
createAccount: (account: Account) => Promise<any>;
|
|
7
7
|
deleteAccount: (accountGuid: string) => Promise<any>;
|
|
8
8
|
getAccounts: () => Promise<any>;
|
|
@@ -7,24 +7,24 @@ import E from "@mui/material/List";
|
|
|
7
7
|
import T from "@mui/material/ListSubheader";
|
|
8
8
|
import x from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as G } from "../AccountDetailsContent-
|
|
11
|
-
import { u as O1 } from "../AccountDetailsContent-
|
|
12
|
-
import { u as K, A as z } from "../AccountDetailsHeader-
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { u as g, a as y, c as O, e as N, m as P } from "../hooks-
|
|
10
|
+
import { A as G } from "../AccountDetailsContent-BmQ5a3Lk.mjs";
|
|
11
|
+
import { u as O1 } from "../AccountDetailsContent-BmQ5a3Lk.mjs";
|
|
12
|
+
import { u as K, A as z } from "../AccountDetailsHeader-vSwO-5Wk.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-SkBUCsb0.mjs";
|
|
14
|
+
import { u as g, a as y, c as O, e as N, m as P } from "../hooks-DkUqN6JE.mjs";
|
|
15
15
|
import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
16
16
|
import { D as Y } from "../Drawer-kEE73B87.mjs";
|
|
17
|
-
import { A, W as q } from "../WidgetContainer-
|
|
18
|
-
import { C as J } from "../ConnectionsDrawer-
|
|
17
|
+
import { A, W as q } from "../WidgetContainer-BHhhVctF.mjs";
|
|
18
|
+
import { C as J } from "../ConnectionsDrawer-Bs-NUsAs.mjs";
|
|
19
19
|
import { u as Q } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
20
20
|
import { L as R } from "../Loader-Dp1P2gNw.mjs";
|
|
21
|
-
import { h as D } from "../ConnectDrawer-
|
|
22
|
-
import { F as I1, M as N1 } from "../ConnectDrawer-
|
|
21
|
+
import { h as D } from "../ConnectDrawer-BA9H_xx8.mjs";
|
|
22
|
+
import { F as I1, M as N1 } from "../ConnectDrawer-BA9H_xx8.mjs";
|
|
23
23
|
import X from "@mui/material/ListItem";
|
|
24
|
-
import { M as U } from "../MiniWidgetContainer-
|
|
24
|
+
import { M as U } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
25
25
|
import e1 from "@mui/material/Stack";
|
|
26
|
-
import { g as U1, a as $1 } from "../AccountFields-
|
|
27
|
-
import { A as G1, a as K1 } from "../AccountStore-
|
|
26
|
+
import { g as U1, a as $1 } from "../AccountFields-VRK4zgvW.mjs";
|
|
27
|
+
import { A as G1, a as K1 } from "../AccountStore-3Umlm7QY.mjs";
|
|
28
28
|
const t1 = () => {
|
|
29
29
|
const [c, L] = d.useState(""), { accounts: o } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = O(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
|
|
30
30
|
() => l.filter((t) => t.is_hidden),
|
|
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-Dp1P2gNw.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
12
|
-
import { i as f, u as b, e as q, a as E } from "../hooks-
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
12
|
+
import { i as f, u as b, e as q, a as E } from "../hooks-DkUqN6JE.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Budget, Category, Fetch } from '../../common';
|
|
2
2
|
export declare class BudgetsApi {
|
|
3
3
|
fetchInstance: Fetch;
|
|
4
|
-
constructor(endpoint: string, token: string
|
|
4
|
+
constructor(endpoint: string, token: string);
|
|
5
5
|
addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
|
|
6
6
|
deleteBudget: (guid: string) => Promise<any>;
|
|
7
7
|
getBudgets: () => Promise<any>;
|