@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
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as D, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import K from "@mui/material/Box";
|
|
2
3
|
import { useTheme as N } from "@mui/material/styles";
|
|
3
|
-
import { ResponsiveChartContainer as
|
|
4
|
-
import
|
|
4
|
+
import { ResponsiveChartContainer as Z, ChartsReferenceLine as _, AreaPlot as ee, LinePlot as te, MarkPlot as ne, BarPlot as re, ChartsXAxis as ae, ChartsYAxis as ie, ChartsAxisHighlight as oe } from "@mui/x-charts";
|
|
5
|
+
import le from "@mui/material/useMediaQuery";
|
|
5
6
|
import { f as y } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
6
|
-
import { observer as
|
|
7
|
-
import { Stack as x, Box as
|
|
7
|
+
import { observer as se } from "mobx-react-lite";
|
|
8
|
+
import { Stack as x, Box as W, useTheme as ce } from "@mui/material";
|
|
8
9
|
import { Text as l } from "@mxenabled/mxui";
|
|
9
|
-
import { u as
|
|
10
|
-
import { ChartsTooltip as
|
|
11
|
-
const
|
|
12
|
-
const a = N(), o = e.showLabel, s = e.style, g = Number(e.x),
|
|
10
|
+
import { u as de } from "./hooks-DkUqN6JE.mjs";
|
|
11
|
+
import { ChartsTooltip as he } from "@mui/x-charts/ChartsTooltip";
|
|
12
|
+
const ue = (e) => {
|
|
13
|
+
const a = N(), o = e.showLabel, s = e.style, g = Number(e.x), m = Number(e.y), u = e.handlers?.onMarkClick, f = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, d = le(a.breakpoints.up("sm")), n = e.valueFormatterString ? y(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), h = d ? a.typography.Small?.fontSize : a.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, C = n.length * k + 8 + 8, M = 24, S = g - C / 2, T = m - 30;
|
|
13
14
|
return /* @__PURE__ */ i(D, { children: [
|
|
14
15
|
o && /* @__PURE__ */ i(D, { children: [
|
|
15
16
|
e.labelBackgroundColor && /* @__PURE__ */ t(
|
|
@@ -33,7 +34,7 @@ const he = (e) => {
|
|
|
33
34
|
},
|
|
34
35
|
textAnchor: "middle",
|
|
35
36
|
x: g,
|
|
36
|
-
y:
|
|
37
|
+
y: m - 28 + M / 2,
|
|
37
38
|
children: n
|
|
38
39
|
}
|
|
39
40
|
)
|
|
@@ -41,11 +42,11 @@ const he = (e) => {
|
|
|
41
42
|
/* @__PURE__ */ t(
|
|
42
43
|
"path",
|
|
43
44
|
{
|
|
44
|
-
cursor:
|
|
45
|
+
cursor: u ? "pointer" : "unset",
|
|
45
46
|
d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
46
47
|
height: "20px",
|
|
47
48
|
onClick: (w) => {
|
|
48
|
-
|
|
49
|
+
u?.(w, e.dataIndex);
|
|
49
50
|
},
|
|
50
51
|
onMouseEnter: () => {
|
|
51
52
|
f?.(e.dataIndex);
|
|
@@ -82,7 +83,7 @@ const he = (e) => {
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
) })
|
|
85
|
-
] }),
|
|
86
|
+
] }), xe = ({
|
|
86
87
|
label: e,
|
|
87
88
|
customLegendVariant: a
|
|
88
89
|
}) => {
|
|
@@ -91,16 +92,16 @@ const he = (e) => {
|
|
|
91
92
|
/* @__PURE__ */ t(l, { variant: o, children: e.label }),
|
|
92
93
|
/* @__PURE__ */ t(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: y(e.amount, "0,0") })
|
|
93
94
|
] }) : null;
|
|
94
|
-
},
|
|
95
|
+
}, fe = ({
|
|
95
96
|
average: e,
|
|
96
97
|
customLegendVariant: a,
|
|
97
98
|
labels: o = [],
|
|
98
99
|
series: s,
|
|
99
100
|
style: g,
|
|
100
|
-
title:
|
|
101
|
-
valueFormatterString:
|
|
101
|
+
title: m,
|
|
102
|
+
valueFormatterString: u
|
|
102
103
|
}) => {
|
|
103
|
-
const { common: f } =
|
|
104
|
+
const { common: f } = de(), c = a || "Small";
|
|
104
105
|
return /* @__PURE__ */ i(x, { style: { flexDirection: "row", gap: 24, ...g }, children: [
|
|
105
106
|
s.map((d, n) => {
|
|
106
107
|
const h = o[n];
|
|
@@ -110,7 +111,7 @@ const he = (e) => {
|
|
|
110
111
|
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
111
112
|
children: [
|
|
112
113
|
/* @__PURE__ */ t(
|
|
113
|
-
|
|
114
|
+
W,
|
|
114
115
|
{
|
|
115
116
|
sx: {
|
|
116
117
|
width: 10,
|
|
@@ -120,7 +121,7 @@ const he = (e) => {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
),
|
|
123
|
-
/* @__PURE__ */ t(
|
|
124
|
+
/* @__PURE__ */ t(xe, { customLegendVariant: a, label: h })
|
|
124
125
|
]
|
|
125
126
|
},
|
|
126
127
|
n
|
|
@@ -129,28 +130,28 @@ const he = (e) => {
|
|
|
129
130
|
e && /* @__PURE__ */ i(x, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
130
131
|
/* @__PURE__ */ t(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
131
132
|
/* @__PURE__ */ i(l, { variant: c, children: [
|
|
132
|
-
|
|
133
|
+
m || f.average,
|
|
133
134
|
" "
|
|
134
135
|
] }),
|
|
135
|
-
/* @__PURE__ */ t(l, { bold: !0, variant: c, children:
|
|
136
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: c, children: u ? y(e, u) : e })
|
|
136
137
|
] })
|
|
137
138
|
] });
|
|
138
|
-
},
|
|
139
|
-
function
|
|
139
|
+
}, ge = se(fe);
|
|
140
|
+
function ye({
|
|
140
141
|
customLabels: e,
|
|
141
142
|
labels: a = [],
|
|
142
143
|
valueFormatterString: o = "0,0"
|
|
143
144
|
}) {
|
|
144
|
-
const s =
|
|
145
|
+
const s = ce();
|
|
145
146
|
return /* @__PURE__ */ t(
|
|
146
|
-
|
|
147
|
+
he,
|
|
147
148
|
{
|
|
148
149
|
showCrosshair: !0,
|
|
149
150
|
slots: {
|
|
150
151
|
axisContent: (g) => {
|
|
151
|
-
const { axisValue:
|
|
152
|
+
const { axisValue: m, dataIndex: u, series: f } = g, c = u ?? 0;
|
|
152
153
|
if (e) {
|
|
153
|
-
const d = e[c]?.[0]?.header || String(
|
|
154
|
+
const d = e[c]?.[0]?.header || String(m);
|
|
154
155
|
return /* @__PURE__ */ i(
|
|
155
156
|
x,
|
|
156
157
|
{
|
|
@@ -209,7 +210,7 @@ function ge({
|
|
|
209
210
|
},
|
|
210
211
|
children: [
|
|
211
212
|
/* @__PURE__ */ t(
|
|
212
|
-
|
|
213
|
+
W,
|
|
213
214
|
{
|
|
214
215
|
sx: {
|
|
215
216
|
width: "12px",
|
|
@@ -248,7 +249,7 @@ function ge({
|
|
|
248
249
|
py: 12
|
|
249
250
|
},
|
|
250
251
|
children: [
|
|
251
|
-
/* @__PURE__ */ t(l, { variant: "H3", children: String(
|
|
252
|
+
/* @__PURE__ */ t(l, { variant: "H3", children: String(m) }),
|
|
252
253
|
f.map((d, n) => /* @__PURE__ */ i(
|
|
253
254
|
x,
|
|
254
255
|
{
|
|
@@ -263,7 +264,7 @@ function ge({
|
|
|
263
264
|
children: [
|
|
264
265
|
/* @__PURE__ */ i(x, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
265
266
|
/* @__PURE__ */ t(
|
|
266
|
-
|
|
267
|
+
W,
|
|
267
268
|
{
|
|
268
269
|
sx: {
|
|
269
270
|
width: "12px",
|
|
@@ -289,14 +290,14 @@ function ge({
|
|
|
289
290
|
}
|
|
290
291
|
);
|
|
291
292
|
}
|
|
292
|
-
const
|
|
293
|
+
const Re = ({
|
|
293
294
|
axisColor: e,
|
|
294
295
|
baseline: a = "max",
|
|
295
296
|
colors: o,
|
|
296
297
|
curveType: s = "linear",
|
|
297
298
|
customLegendVariant: g,
|
|
298
|
-
customTooltipLabels:
|
|
299
|
-
datasets:
|
|
299
|
+
customTooltipLabels: m,
|
|
300
|
+
datasets: u,
|
|
300
301
|
height: f,
|
|
301
302
|
isGraphClippingXAxis: c = !1,
|
|
302
303
|
labels: d,
|
|
@@ -323,10 +324,10 @@ const Te = ({
|
|
|
323
324
|
valueFormatterString: p,
|
|
324
325
|
width: V
|
|
325
326
|
}) => {
|
|
326
|
-
const b = N(), q =
|
|
327
|
+
const b = N(), q = u.flat().map((r) => r.x), L = u.flat().map((r) => r.y), z = Math.round(L.reduce((r, R) => R + r, 0) / L.length), I = Math.floor(Math.min(...L) / 100) * 100, P = Math.ceil(Math.max(...L) / 100) * 100, A = u.map((r, R) => ({
|
|
327
328
|
type: w ? "bar" : "line",
|
|
328
329
|
curve: s,
|
|
329
|
-
color: w ? b.palette.chart?.chart6 : o[
|
|
330
|
+
color: w ? b.palette.chart?.chart6 : o[R] ?? b.palette.primary.main,
|
|
330
331
|
data: r.map((v) => v.y),
|
|
331
332
|
area: M,
|
|
332
333
|
baseline: a,
|
|
@@ -341,162 +342,182 @@ const Te = ({
|
|
|
341
342
|
},
|
|
342
343
|
...B
|
|
343
344
|
};
|
|
344
|
-
return /* @__PURE__ */ i(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
{
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
},
|
|
357
|
-
"& .MuiAreaElement-root": {
|
|
358
|
-
opacity: 0.15
|
|
359
|
-
}
|
|
345
|
+
return /* @__PURE__ */ i(
|
|
346
|
+
K,
|
|
347
|
+
{
|
|
348
|
+
sx: {
|
|
349
|
+
position: "relative",
|
|
350
|
+
touchAction: "pan-y",
|
|
351
|
+
// Allow vertical scrolling
|
|
352
|
+
"& svg": {
|
|
353
|
+
touchAction: "pan-y",
|
|
354
|
+
// Allow vertical scrolling on SVG
|
|
355
|
+
userSelect: "none"
|
|
356
|
+
// Prevent text selection
|
|
360
357
|
},
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
358
|
+
"& .recharts-wrapper": {
|
|
359
|
+
touchAction: "pan-y"
|
|
360
|
+
// For Recharts library specifically
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
children: [
|
|
364
|
+
/* @__PURE__ */ i(
|
|
365
|
+
Z,
|
|
364
366
|
{
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
o[0] ?? b.palette.primary.main
|
|
374
|
-
]
|
|
375
|
-
} : void 0,
|
|
376
|
-
valueFormatter: (r) => p ? y(r, p) : String(r)
|
|
377
|
-
}
|
|
378
|
-
],
|
|
379
|
-
children: [
|
|
380
|
-
S && /* @__PURE__ */ t(
|
|
381
|
-
Z,
|
|
382
|
-
{
|
|
383
|
-
lineStyle: {
|
|
384
|
-
stroke: n ? b.palette.neutral.main : b.palette.neutral.dark,
|
|
385
|
-
strokeDasharray: "10, 8",
|
|
386
|
-
strokeWidth: 2
|
|
367
|
+
height: f,
|
|
368
|
+
margin: J,
|
|
369
|
+
series: A,
|
|
370
|
+
sx: {
|
|
371
|
+
p: 4,
|
|
372
|
+
"& .MuiBarLabel-root": {
|
|
373
|
+
fontSize: 10,
|
|
374
|
+
fontWeight: 600
|
|
387
375
|
},
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
),
|
|
391
|
-
/* @__PURE__ */ t(_, { onItemClick: C }),
|
|
392
|
-
/* @__PURE__ */ t(
|
|
393
|
-
ee,
|
|
394
|
-
{
|
|
395
|
-
onItemClick: C,
|
|
396
|
-
slots: {
|
|
397
|
-
line: (r) => /* @__PURE__ */ t(
|
|
398
|
-
me,
|
|
399
|
-
{
|
|
400
|
-
...r,
|
|
401
|
-
lineColor: r.ownerState.color ?? b.palette.primary.main
|
|
402
|
-
}
|
|
403
|
-
)
|
|
376
|
+
"& .MuiAreaElement-root": {
|
|
377
|
+
opacity: 0.15
|
|
404
378
|
}
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
435
|
-
),
|
|
436
|
-
/* @__PURE__ */ t(
|
|
437
|
-
re,
|
|
438
|
-
{
|
|
439
|
-
disableLine: !Y,
|
|
440
|
-
disableTicks: !F,
|
|
441
|
-
slotProps: e ? {
|
|
442
|
-
axisLine: {
|
|
443
|
-
style: {
|
|
444
|
-
stroke: e
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
axisTick: {
|
|
448
|
-
style: {
|
|
449
|
-
stroke: e
|
|
450
|
-
}
|
|
379
|
+
},
|
|
380
|
+
width: V,
|
|
381
|
+
xAxis: [{ data: q, scaleType: w ? "band" : "point" }],
|
|
382
|
+
yAxis: [
|
|
383
|
+
{
|
|
384
|
+
min: c ? -22 : I,
|
|
385
|
+
max: P || 100,
|
|
386
|
+
colorMap: M && A.length < 2 ? {
|
|
387
|
+
type: "continuous",
|
|
388
|
+
min: I,
|
|
389
|
+
max: P,
|
|
390
|
+
color: [
|
|
391
|
+
b.palette.background.paper,
|
|
392
|
+
o[0] ?? b.palette.primary.main
|
|
393
|
+
]
|
|
394
|
+
} : void 0,
|
|
395
|
+
valueFormatter: (r) => p ? y(r, p) : String(r)
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
children: [
|
|
399
|
+
S && /* @__PURE__ */ t(
|
|
400
|
+
_,
|
|
401
|
+
{
|
|
402
|
+
lineStyle: {
|
|
403
|
+
stroke: n ? b.palette.neutral.main : b.palette.neutral.dark,
|
|
404
|
+
strokeDasharray: "10, 8",
|
|
405
|
+
strokeWidth: 2
|
|
406
|
+
},
|
|
407
|
+
y: z
|
|
451
408
|
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
axisTick: {
|
|
467
|
-
style: {
|
|
468
|
-
stroke: e
|
|
409
|
+
),
|
|
410
|
+
/* @__PURE__ */ t(ee, { onItemClick: C }),
|
|
411
|
+
/* @__PURE__ */ t(
|
|
412
|
+
te,
|
|
413
|
+
{
|
|
414
|
+
onItemClick: C,
|
|
415
|
+
slots: {
|
|
416
|
+
line: (r) => /* @__PURE__ */ t(
|
|
417
|
+
me,
|
|
418
|
+
{
|
|
419
|
+
...r,
|
|
420
|
+
lineColor: r.ownerState.color ?? b.palette.primary.main
|
|
421
|
+
}
|
|
422
|
+
)
|
|
469
423
|
}
|
|
470
424
|
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
425
|
+
),
|
|
426
|
+
/* @__PURE__ */ t(
|
|
427
|
+
ne,
|
|
428
|
+
{
|
|
429
|
+
onItemClick: C,
|
|
430
|
+
slots: U ? {
|
|
431
|
+
mark: (r) => /* @__PURE__ */ t(
|
|
432
|
+
ue,
|
|
433
|
+
{
|
|
434
|
+
handlers: $,
|
|
435
|
+
labelBackgroundColor: n,
|
|
436
|
+
labelFontColor: h,
|
|
437
|
+
labelFontSize: k,
|
|
438
|
+
showLabel: E,
|
|
439
|
+
style: j?.(r.dataIndex) ?? {},
|
|
440
|
+
valueFormatterString: p,
|
|
441
|
+
yData: L,
|
|
442
|
+
...r
|
|
443
|
+
}
|
|
444
|
+
)
|
|
445
|
+
} : void 0
|
|
446
|
+
}
|
|
447
|
+
),
|
|
448
|
+
/* @__PURE__ */ t(
|
|
449
|
+
re,
|
|
450
|
+
{
|
|
451
|
+
barLabel: (r) => Number(r.value) > 0 ? `$${r.value}` : null,
|
|
452
|
+
borderRadius: 10
|
|
453
|
+
}
|
|
454
|
+
),
|
|
455
|
+
/* @__PURE__ */ t(
|
|
456
|
+
ae,
|
|
457
|
+
{
|
|
458
|
+
disableLine: !Y,
|
|
459
|
+
disableTicks: !F,
|
|
460
|
+
slotProps: e ? {
|
|
461
|
+
axisLine: {
|
|
462
|
+
style: {
|
|
463
|
+
stroke: e
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
axisTick: {
|
|
467
|
+
style: {
|
|
468
|
+
stroke: e
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
} : {}
|
|
472
|
+
}
|
|
473
|
+
),
|
|
474
|
+
/* @__PURE__ */ t(
|
|
475
|
+
ie,
|
|
476
|
+
{
|
|
477
|
+
disableLine: !G,
|
|
478
|
+
disableTicks: !O,
|
|
479
|
+
slotProps: e ? {
|
|
480
|
+
axisLine: {
|
|
481
|
+
style: {
|
|
482
|
+
stroke: e
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
axisTick: {
|
|
486
|
+
style: {
|
|
487
|
+
stroke: e
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
} : {}
|
|
491
|
+
}
|
|
492
|
+
),
|
|
493
|
+
T && /* @__PURE__ */ t(oe, { x: "line" }),
|
|
494
|
+
X && /* @__PURE__ */ t(
|
|
495
|
+
ye,
|
|
496
|
+
{
|
|
497
|
+
customLabels: m,
|
|
498
|
+
labels: d,
|
|
499
|
+
valueFormatterString: p
|
|
500
|
+
}
|
|
501
|
+
)
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
),
|
|
505
|
+
H && /* @__PURE__ */ t(
|
|
506
|
+
ge,
|
|
507
|
+
{
|
|
508
|
+
average: S ? z : void 0,
|
|
509
|
+
customLegendVariant: g,
|
|
510
|
+
labels: d,
|
|
511
|
+
series: A,
|
|
512
|
+
style: { position: "absolute", top: 16, left: 16 },
|
|
513
|
+
title: Q,
|
|
514
|
+
valueFormatterString: p
|
|
515
|
+
}
|
|
516
|
+
)
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
);
|
|
499
520
|
};
|
|
500
521
|
export {
|
|
501
|
-
|
|
522
|
+
Re as L
|
|
502
523
|
};
|
|
@@ -8,7 +8,7 @@ import L from "@mui/material/Stack";
|
|
|
8
8
|
import { ChevronRight as g } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as m } from "@mxenabled/mxui";
|
|
10
10
|
import { a as j } from "./Dialog-CWW597AF.mjs";
|
|
11
|
-
import { u as P } from "./hooks-
|
|
11
|
+
import { u as P } from "./hooks-DkUqN6JE.mjs";
|
|
12
12
|
const D = v(
|
|
13
13
|
({
|
|
14
14
|
children: n,
|
|
@@ -16,23 +16,23 @@ import { startOfToday as z } from "date-fns/startOfToday";
|
|
|
16
16
|
import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
17
17
|
import H from "@mui/material/Button";
|
|
18
18
|
import { Delete as me, Add as ye, ReceiptLong as pe } from "@mxenabled/mx-icons";
|
|
19
|
-
import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-
|
|
19
|
+
import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-DFDYdDae.mjs";
|
|
20
20
|
import { getDayOfYear as be } from "date-fns/getDayOfYear";
|
|
21
21
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
22
22
|
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
23
23
|
import { DatePicker as xe } from "@mui/x-date-pickers";
|
|
24
24
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
25
|
-
import { u as w, h as M, e as F, a as Ae, f as Z, o as De } from "./hooks-
|
|
25
|
+
import { u as w, h as M, e as F, a as Ae, f as Z, o as De } from "./hooks-DkUqN6JE.mjs";
|
|
26
26
|
import { b as Ie, f as J } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
27
27
|
import { D as O } from "./Drawer-kEE73B87.mjs";
|
|
28
|
-
import { A as R } from "./WidgetContainer-
|
|
28
|
+
import { A as R } from "./WidgetContainer-BHhhVctF.mjs";
|
|
29
29
|
import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
|
|
30
30
|
import { formatISO as Le } from "date-fns/formatISO";
|
|
31
31
|
import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
|
|
32
32
|
import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
|
|
33
33
|
import { h as Ne } from "./DateUtil-BcuH7ErC.mjs";
|
|
34
34
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
35
|
-
import { T as V } from "./Transaction-
|
|
35
|
+
import { T as V } from "./Transaction-Dns0Kuuy.mjs";
|
|
36
36
|
const ee = ({
|
|
37
37
|
frequency: n,
|
|
38
38
|
firstDay: t,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { makeAutoObservable as m, runInAction as s } from "mobx";
|
|
2
|
+
import { F as p, A as c } from "./Fetch-CkFKy79O.mjs";
|
|
3
|
+
class h {
|
|
4
|
+
fetchInstance;
|
|
5
|
+
constructor(t, n) {
|
|
6
|
+
this.fetchInstance = new p(t, n);
|
|
7
|
+
}
|
|
8
|
+
getMerchants = async (t = [], n = [], r = 1, o = 25) => {
|
|
9
|
+
let a = c.MERCHANTS;
|
|
10
|
+
return a += `?page=${r}&per_page=${o}`, t.length && t.forEach((e) => a += `&fuzzy_name[]=${e}`), n.length && n.forEach((e) => a += `&guid[]=${e}`), this.fetchInstance.get(a).then((e) => e.merchants);
|
|
11
|
+
};
|
|
12
|
+
getMerchantByGuid = async (t) => this.fetchInstance.get(`${c.MERCHANTS}/${t}`).then((n) => n.merchant);
|
|
13
|
+
}
|
|
14
|
+
class l {
|
|
15
|
+
globalStore;
|
|
16
|
+
api = new h("/", "");
|
|
17
|
+
merchant = null;
|
|
18
|
+
merchants = [];
|
|
19
|
+
isLoading = !1;
|
|
20
|
+
constructor(t) {
|
|
21
|
+
this.globalStore = t, this.api = new h(t.endpoint, t.sessionToken), m(this);
|
|
22
|
+
}
|
|
23
|
+
loadMerchants = async (t = "") => {
|
|
24
|
+
this.isLoading = !0;
|
|
25
|
+
const n = await this.api.getMerchants([t]);
|
|
26
|
+
s(() => {
|
|
27
|
+
this.merchants = n, this.isLoading = !1;
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
loadMerchantByGuid = async (t) => {
|
|
31
|
+
const n = await this.api.getMerchantByGuid(t);
|
|
32
|
+
s(() => this.merchant = n);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
l as M
|
|
37
|
+
};
|
|
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
|
|
|
6
6
|
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-
|
|
9
|
+
import { W as w } from "./hooks-DkUqN6JE.mjs";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: e,
|
|
12
12
|
className: o,
|
|
@@ -7,7 +7,7 @@ import b from "@mui/material/IconButton";
|
|
|
7
7
|
import { Icon as C, ChevronRight as v } from "@mxenabled/mx-icons";
|
|
8
8
|
import { Text as W, H3 as H } from "@mxenabled/mxui";
|
|
9
9
|
import { u as I } from "./useDimensions-27p2evRx.mjs";
|
|
10
|
-
import { W as M } from "./hooks-
|
|
10
|
+
import { W as M } from "./hooks-DkUqN6JE.mjs";
|
|
11
11
|
const j = ({
|
|
12
12
|
className: t = "mx-cmn-mini-widget",
|
|
13
13
|
closeLabel: a,
|
|
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
4
4
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
5
5
|
import { subMonths as B } from "date-fns/subMonths";
|
|
6
|
-
import { a as b } from "./Accounts-
|
|
7
|
-
import { e as N, a as M, f as v } from "./ConnectDrawer-
|
|
6
|
+
import { a as b } from "./Accounts-CYsoAdW-.mjs";
|
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer-BA9H_xx8.mjs";
|
|
8
8
|
const f = 13, L = (n, t) => n.filter((e) => {
|
|
9
9
|
const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
|
|
10
10
|
return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
|
|
@@ -15,11 +15,11 @@ import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
|
|
|
15
15
|
import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
17
|
import { A as oe, T as F, a as P, N as b } from "./Notification-ByMBpJ5u.mjs";
|
|
18
|
-
import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-
|
|
18
|
+
import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-DkUqN6JE.mjs";
|
|
19
19
|
import { b as le } from "./Localization-2MODESHW.mjs";
|
|
20
20
|
import { b as re, f as de } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
21
21
|
import { a as M } from "./Dialog-CWW597AF.mjs";
|
|
22
|
-
import { C as me } from "./CurrencyInput-
|
|
22
|
+
import { C as me } from "./CurrencyInput-bEx2Mbd0.mjs";
|
|
23
23
|
import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as J } from "./Drawer-kEE73B87.mjs";
|
|
25
25
|
import he from "@mui/material/Collapse";
|