@mx-cartographer/experiences 7.0.6 → 7.0.7
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 +8 -3
- package/dist/trends/index.es.js +156 -156
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
## [7.0.7] - 09-18-2025
|
|
2
|
+
|
|
3
|
+
- **FIXED** - Trends Widget table to show positive income values
|
|
4
|
+
- **FIXED** - Trends Widget table to fill the width of its container
|
|
5
|
+
|
|
1
6
|
## [7.0.6] - 09-18-2025
|
|
2
7
|
|
|
3
8
|
- **UPDATED** - Replace `@mui/icons-material` with `@mxenabled/mx-icons`
|
|
4
9
|
|
|
5
10
|
## [7.0.5] - 09-17-2025
|
|
6
11
|
|
|
7
|
-
- **FIXED** -
|
|
12
|
+
- **FIXED** - Layout issue with income/expenses actions in standalone widgets
|
|
8
13
|
|
|
9
14
|
## [7.0.4] - 09-17-2025
|
|
10
15
|
|
|
@@ -12,8 +17,8 @@
|
|
|
12
17
|
|
|
13
18
|
## [7.0.3] - 09-12-2025
|
|
14
19
|
|
|
15
|
-
- **UPDATED** - `Recurring Setting` | design change in `ManageExpenses` and `ManageIncome`.
|
|
16
|
-
- **ADDED** - `Recurring Setting` | Zero state added for `ManageExpenses` and `ManageIncome`.
|
|
20
|
+
- **UPDATED** - `Recurring Setting` | design change in `ManageExpenses` and `ManageIncome`.
|
|
21
|
+
- **ADDED** - `Recurring Setting` | Zero state added for `ManageExpenses` and `ManageIncome`.
|
|
17
22
|
|
|
18
23
|
## [7.0.2] - 09-17-2025
|
|
19
24
|
|
package/dist/trends/index.es.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { jsx as e, jsxs as T } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as e, jsxs as T, Fragment as Ge } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
3
|
import { observer as M } from "mobx-react-lite";
|
|
4
|
-
import { Icon as te, Text as Z, CategoryIcon as fe, P as U, H3 as we, ChevronRightIcon as
|
|
5
|
-
import
|
|
4
|
+
import { Icon as te, Text as Z, CategoryIcon as fe, P as U, H3 as we, ChevronRightIcon as Be } from "@mxenabled/mxui";
|
|
5
|
+
import O from "@mui/material/Box";
|
|
6
6
|
import b from "@mui/material/Stack";
|
|
7
7
|
import ge from "@mui/material/Button";
|
|
8
8
|
import { addSeconds as De } from "date-fns/addSeconds";
|
|
9
9
|
import { differenceInCalendarMonths as pe } from "date-fns/differenceInCalendarMonths";
|
|
10
|
-
import { a as
|
|
11
|
-
import { T as
|
|
12
|
-
import { i as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { u as k, l as F, e as N, a as P, f as ne, c as oe, v as J, m as xe, p as
|
|
10
|
+
import { a as ze, g as Fe, S as Pe, L as Ie, u as Ke } from "../TrendsStore-DR8etTL2.mjs";
|
|
11
|
+
import { T as Zn } from "../TrendsStore-DR8etTL2.mjs";
|
|
12
|
+
import { i as $e, c as je, d as Ye, e as Ue, f as Xe, h as Ze, b as Ee, g as Le, j as ye } from "../SpendingData-D5vsfYKo.mjs";
|
|
13
|
+
import Qe from "@mui/material/ToggleButton";
|
|
14
|
+
import qe from "@mui/material/ToggleButtonGroup";
|
|
15
|
+
import { u as k, l as F, e as N, a as P, f as ne, c as oe, v as J, m as xe, p as Je } from "../hooks-02T565vf.mjs";
|
|
16
16
|
import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { f as Q, D as z } from "../Dialog-CWW597AF.mjs";
|
|
18
|
-
import { DataGridPro as
|
|
19
|
-
import { C as
|
|
18
|
+
import { DataGridPro as et } from "@mui/x-data-grid-pro";
|
|
19
|
+
import { C as tt } from "../CurrencyText-YUhH2caW.mjs";
|
|
20
20
|
import { c as ve } from "../Category-CevNQ03n.mjs";
|
|
21
|
-
import { b as
|
|
21
|
+
import { b as nt } from "../Localization-2MODESHW.mjs";
|
|
22
22
|
import { H as _e } from "../HeaderCell-DjuifqHJ.mjs";
|
|
23
|
-
import { T as R, b as
|
|
23
|
+
import { T as R, b as ot } from "../ViewMoreMicroCard-BZI5VMNW.mjs";
|
|
24
24
|
import { A as _, W as Me } from "../WidgetContainer-BG-fdDOf.mjs";
|
|
25
25
|
import { a as Ae, T as Re } from "../TransactionDetails-BSfXqkpH.mjs";
|
|
26
26
|
import { D as Ce } from "../Drawer-kEE73B87.mjs";
|
|
27
27
|
import { L as q } from "../Loader-Dp1P2gNw.mjs";
|
|
28
28
|
import { useTheme as ke } from "@mui/material/styles";
|
|
29
29
|
import { L as Te } from "../LineChart-CYiUS-px.mjs";
|
|
30
|
-
import { M as
|
|
31
|
-
import { subMonths as
|
|
32
|
-
import { TrendingUp as
|
|
33
|
-
import { a as
|
|
34
|
-
import { M as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
30
|
+
import { M as st } from "../MiniWidgetContainer-DqKQNubH.mjs";
|
|
31
|
+
import { subMonths as rt } from "date-fns";
|
|
32
|
+
import { TrendingUp as at, TrendingDown as it, MultilineChart as ct, ExpandLess as lt, ExpandMore as dt } from "@mxenabled/mx-icons";
|
|
33
|
+
import { a as ht, f as X } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
34
|
+
import { M as ut } from "../MicroWidgetContainer-DmYiksbT.mjs";
|
|
35
|
+
import mt from "@mui/material/Collapse";
|
|
36
|
+
import gt from "@mui/material/List";
|
|
37
|
+
import pt from "@mui/material/ListItem";
|
|
38
|
+
import Ct from "@mui/material/ListItemButton";
|
|
39
|
+
import ft from "@mui/material/ListItemIcon";
|
|
40
|
+
import Tt from "@mui/material/ListItemText";
|
|
41
41
|
import He from "@mui/material/styles/useTheme";
|
|
42
|
-
import
|
|
43
|
-
import { useTheme as
|
|
44
|
-
import
|
|
45
|
-
import { b as
|
|
46
|
-
import { E as
|
|
47
|
-
import { E as
|
|
42
|
+
import yt from "@mui/material/Divider";
|
|
43
|
+
import { useTheme as _t, Stack as bt } from "@mui/material";
|
|
44
|
+
import St from "@mui/material/Paper";
|
|
45
|
+
import { b as wt } from "../CategoryUtil-BR3H5i6n.mjs";
|
|
46
|
+
import { E as Dt } from "../ExportCsvAction-dpvaZxbS.mjs";
|
|
47
|
+
import { E as It } from "../EmptyState-Dcb-o2tl.mjs";
|
|
48
48
|
const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
49
|
-
|
|
49
|
+
qe,
|
|
50
50
|
{
|
|
51
51
|
exclusive: !0,
|
|
52
52
|
onChange: o,
|
|
53
53
|
orientation: "horizontal",
|
|
54
54
|
value: n,
|
|
55
|
-
children: ["Chart", "Table"].map((t) => /* @__PURE__ */ e(
|
|
55
|
+
children: ["Chart", "Table"].map((t) => /* @__PURE__ */ e(Qe, { color: "primary", sx: { width: 56 }, value: t, children: t === "Chart" ? /* @__PURE__ */ e(te, { name: "table_chart_view" }) : /* @__PURE__ */ e(te, { name: "format_list_bulleted" }) }, t))
|
|
56
56
|
}
|
|
57
57
|
), We = ({ selectedDateRange: n, selectedCategoryGuid: o }) => {
|
|
58
58
|
const { trends: t } = k(), { isMobile: s, isDesktop: r } = K(), { getCategoryName: d } = F(), a = i.useMemo(() => {
|
|
@@ -65,7 +65,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
65
65
|
);
|
|
66
66
|
return `${c} - ${h}`;
|
|
67
67
|
}, [n, s]);
|
|
68
|
-
return /* @__PURE__ */ T(
|
|
68
|
+
return /* @__PURE__ */ T(O, { sx: { mr: 10, minWidth: "60%" }, children: [
|
|
69
69
|
/* @__PURE__ */ e(
|
|
70
70
|
Z,
|
|
71
71
|
{
|
|
@@ -82,29 +82,29 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
82
82
|
),
|
|
83
83
|
/* @__PURE__ */ e(Z, { variant: r ? "Body" : "Small", children: a })
|
|
84
84
|
] });
|
|
85
|
-
},
|
|
85
|
+
}, Et = (n) => {
|
|
86
86
|
const o = n.row[n.field];
|
|
87
|
-
return /* @__PURE__ */ e(b, { alignItems: "flex-end", tabIndex: n.tabIndex, children: /* @__PURE__ */ e(
|
|
88
|
-
},
|
|
87
|
+
return /* @__PURE__ */ e(b, { alignItems: "flex-end", tabIndex: n.tabIndex, children: /* @__PURE__ */ e(tt, { amount: o, variant: "Small" }) });
|
|
88
|
+
}, Lt = ({ categoryGuid: n, topLevelCategoryGuid: o }) => {
|
|
89
89
|
const { categories: t } = k(), s = t.default_categories[n]?.replace(/&/g, "&") ?? ve[n];
|
|
90
90
|
return /* @__PURE__ */ T(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
|
-
|
|
92
|
+
O,
|
|
93
93
|
{
|
|
94
|
-
"aria-label":
|
|
94
|
+
"aria-label": nt(t.category_icon_label_aria, s),
|
|
95
95
|
role: "img",
|
|
96
96
|
children: /* @__PURE__ */ e(fe, { categoryGuid: o })
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
99
|
/* @__PURE__ */ e(Z, { sx: { ml: 12, pb: 6 }, variant: "Small", children: s })
|
|
100
100
|
] });
|
|
101
|
-
},
|
|
102
|
-
|
|
101
|
+
}, xt = (n) => /* @__PURE__ */ e(b, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
102
|
+
Lt,
|
|
103
103
|
{
|
|
104
104
|
categoryGuid: n.row.category,
|
|
105
105
|
topLevelCategoryGuid: n.row.top_level_category_guid
|
|
106
106
|
}
|
|
107
|
-
) }),
|
|
107
|
+
) }), vt = (n, o) => {
|
|
108
108
|
const t = [], s = new Date(n);
|
|
109
109
|
for (; s <= o; ) {
|
|
110
110
|
const r = Q(s, z.MONTH);
|
|
@@ -121,13 +121,13 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
121
121
|
}) => {
|
|
122
122
|
const { onEvent: a } = N(), c = Q(/* @__PURE__ */ new Date(), z.MONTH_SHORT), [h, m] = i.useState([
|
|
123
123
|
{ field: c, sort: "desc" }
|
|
124
|
-
]), g = i.useMemo(() =>
|
|
124
|
+
]), g = i.useMemo(() => vt(o.start, o.end), [o]), C = [
|
|
125
125
|
{
|
|
126
126
|
field: "category",
|
|
127
127
|
headerName: "Category",
|
|
128
128
|
minWidth: 175,
|
|
129
129
|
renderHeader: _e,
|
|
130
|
-
renderCell:
|
|
130
|
+
renderCell: xt,
|
|
131
131
|
sortable: !0,
|
|
132
132
|
type: "string"
|
|
133
133
|
},
|
|
@@ -137,18 +137,18 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
137
137
|
headerName: l,
|
|
138
138
|
minWidth: 75,
|
|
139
139
|
renderHeader: _e,
|
|
140
|
-
renderCell:
|
|
140
|
+
renderCell: Et,
|
|
141
141
|
align: "right",
|
|
142
142
|
headerAlign: "right",
|
|
143
143
|
sortable: !0,
|
|
144
144
|
hideSortIcons: !1,
|
|
145
145
|
type: "number",
|
|
146
|
-
sortComparator:
|
|
146
|
+
sortComparator: ze
|
|
147
147
|
})
|
|
148
148
|
)
|
|
149
149
|
], u = i.useMemo(() => {
|
|
150
150
|
const l = n.filter(
|
|
151
|
-
(f) =>
|
|
151
|
+
(f) => !$e(f) && !je(f)
|
|
152
152
|
), y = (t ? l.filter(
|
|
153
153
|
(f) => f.category_guid === t || f.top_level_category_guid === t
|
|
154
154
|
) : l).reduce(
|
|
@@ -161,14 +161,14 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
161
161
|
top_level_category_guid: I
|
|
162
162
|
});
|
|
163
163
|
const v = Q(new Date(H, x - 1), z.MONTH_SHORT);
|
|
164
|
-
return f[A][v] || (f[A][v] = 0), f[A][v] = f[A][v] + E, f;
|
|
164
|
+
return f[A][v] || (f[A][v] = 0), f[A][v] = f[A][v] + Math.abs(E), f;
|
|
165
165
|
},
|
|
166
166
|
{}
|
|
167
167
|
);
|
|
168
168
|
return Object.values(y);
|
|
169
169
|
}, [n, t]);
|
|
170
|
-
return /* @__PURE__ */ e(
|
|
171
|
-
|
|
170
|
+
return /* @__PURE__ */ e(O, { sx: { height: r, width: "100%", overflowX: "auto", boxShadow: "none", ...d }, children: /* @__PURE__ */ e(
|
|
171
|
+
et,
|
|
172
172
|
{
|
|
173
173
|
columns: C,
|
|
174
174
|
disableColumnFilter: !0,
|
|
@@ -190,9 +190,9 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
190
190
|
sortingOrder: ["asc", "desc"]
|
|
191
191
|
}
|
|
192
192
|
) });
|
|
193
|
-
},
|
|
193
|
+
}, Mt = {
|
|
194
194
|
title: "Transaction List"
|
|
195
|
-
},
|
|
195
|
+
}, At = ({
|
|
196
196
|
categoryGuid: n,
|
|
197
197
|
dateRange: o,
|
|
198
198
|
isOpen: t,
|
|
@@ -219,15 +219,15 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
219
219
|
ariaLabelClose: a.close_aria,
|
|
220
220
|
isOpen: t,
|
|
221
221
|
onClose: u,
|
|
222
|
-
title:
|
|
222
|
+
title: Mt.title,
|
|
223
223
|
children: [
|
|
224
224
|
C && /* @__PURE__ */ e(Ae, { transaction: C }),
|
|
225
225
|
!C && /* @__PURE__ */ e(Re, { onClick: g })
|
|
226
226
|
]
|
|
227
227
|
}
|
|
228
228
|
);
|
|
229
|
-
},
|
|
230
|
-
const { onEvent: t } = N(), { isDesktop: s, isTablet: r, isMobile: d } = K(), { visibleAccounts: a } = oe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h, getCategoryName: m } = F(), { sortedTransactions: g } = ne(), { selectedDateRange: C, setSelectedDateRange: u } = J(), { isCopyLoaded: l, isInitialized: p, selectedAccounts: y, setSelectedAccounts: f } = P(), { trends: w } = k(), [D, I] = i.useState(!1), [x, E] = i.useState(!1), [H, A] = i.useState("Chart"), [v,
|
|
229
|
+
}, Rt = M(At), kt = ({ onBackClick: n, sx: o }) => {
|
|
230
|
+
const { onEvent: t } = N(), { isDesktop: s, isTablet: r, isMobile: d } = K(), { visibleAccounts: a } = oe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h, getCategoryName: m } = F(), { sortedTransactions: g } = ne(), { selectedDateRange: C, setSelectedDateRange: u } = J(), { isCopyLoaded: l, isInitialized: p, selectedAccounts: y, setSelectedAccounts: f } = P(), { trends: w } = k(), [D, I] = i.useState(!1), [x, E] = i.useState(!1), [H, A] = i.useState("Chart"), [v, V] = i.useState(""), [se, $] = i.useState(window.innerHeight), ae = se - (d ? 315 : 345);
|
|
231
231
|
i.useEffect(() => {
|
|
232
232
|
const S = () => $(window.innerHeight);
|
|
233
233
|
return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
@@ -244,30 +244,30 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
244
244
|
}, [p, y, C]);
|
|
245
245
|
const j = i.useMemo(() => {
|
|
246
246
|
if (!D) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
247
|
-
const S =
|
|
247
|
+
const S = Fe(
|
|
248
248
|
h,
|
|
249
249
|
C.start,
|
|
250
250
|
C.end
|
|
251
|
-
),
|
|
251
|
+
), W = v.length ? S.filter(
|
|
252
252
|
(B) => B.top_level_category_guid === v || B.category_guid === v
|
|
253
|
-
) :
|
|
253
|
+
) : Ye(S);
|
|
254
254
|
return {
|
|
255
|
-
stackedDatasets:
|
|
256
|
-
unstackedDatasets:
|
|
255
|
+
stackedDatasets: W.filter(Ue),
|
|
256
|
+
unstackedDatasets: W.filter(Xe)
|
|
257
257
|
};
|
|
258
|
-
}, [h, v, C]), ee = (S,
|
|
259
|
-
A(
|
|
258
|
+
}, [h, v, C]), ee = (S, W) => {
|
|
259
|
+
A(W ?? H), t(_.TRENDS_CLICK_TOGGLE_VIEW);
|
|
260
260
|
}, ie = (S) => {
|
|
261
|
-
const
|
|
262
|
-
u({ start:
|
|
261
|
+
const W = De(S?.[0], 1), B = S?.[1], L = pe(B, W);
|
|
262
|
+
u({ start: W, end: B }), t(_.TRENDS_CLICK_TIME_WINDOW, {
|
|
263
263
|
time_period: L + "M"
|
|
264
264
|
});
|
|
265
265
|
}, ce = () => {
|
|
266
266
|
t(_.TRENDS_CLICK_FILTER);
|
|
267
267
|
}, le = (S) => {
|
|
268
|
-
|
|
268
|
+
V(S);
|
|
269
269
|
}, de = (S) => {
|
|
270
|
-
|
|
270
|
+
V(S), t(_.TRENDS_CLICK_LEGEND, { category: m(S) });
|
|
271
271
|
}, he = (S) => {
|
|
272
272
|
t(_.TRENDS_HOVER_LEGEND, { category: m(S) });
|
|
273
273
|
}, ue = (S) => {
|
|
@@ -314,15 +314,15 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
316
|
/* @__PURE__ */ T(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
317
|
-
/* @__PURE__ */ e(
|
|
317
|
+
/* @__PURE__ */ e(O, { flexGrow: 1, children: v && /* @__PURE__ */ T(ge, { onClick: () => V(""), sx: { p: 0, pr: 5 }, children: [
|
|
318
318
|
/* @__PURE__ */ e(te, { name: "arrow_back" }),
|
|
319
319
|
w.all_categories
|
|
320
320
|
] }) }),
|
|
321
321
|
/* @__PURE__ */ e(ge, { onClick: () => E(!0), sx: { px: 5 }, children: `${w.view_transactions} (${g.length})` })
|
|
322
322
|
] }),
|
|
323
|
-
/* @__PURE__ */ T(
|
|
323
|
+
/* @__PURE__ */ T(O, { children: [
|
|
324
324
|
H === "Chart" && /* @__PURE__ */ e(
|
|
325
|
-
|
|
325
|
+
Pe,
|
|
326
326
|
{
|
|
327
327
|
availableHeight: ae,
|
|
328
328
|
onClickLegend: de,
|
|
@@ -347,7 +347,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
347
347
|
}
|
|
348
348
|
),
|
|
349
349
|
/* @__PURE__ */ e(
|
|
350
|
-
|
|
350
|
+
Rt,
|
|
351
351
|
{
|
|
352
352
|
categoryGuid: v,
|
|
353
353
|
dateRange: C,
|
|
@@ -358,8 +358,8 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
358
358
|
]
|
|
359
359
|
}
|
|
360
360
|
);
|
|
361
|
-
},
|
|
362
|
-
const n = ke(), { monthlyCategoryTotals: o } = F(), { trends: t } = k(), s =
|
|
361
|
+
}, Kn = M(kt), Ht = () => {
|
|
362
|
+
const n = ke(), { monthlyCategoryTotals: o } = F(), { trends: t } = k(), s = Ze(o);
|
|
363
363
|
return /* @__PURE__ */ e(
|
|
364
364
|
Te,
|
|
365
365
|
{
|
|
@@ -376,24 +376,24 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
376
376
|
valueFormatterString: "0,0"
|
|
377
377
|
}
|
|
378
378
|
);
|
|
379
|
-
},
|
|
379
|
+
}, Nt = M(Ht), Wt = ({ onPrimaryCtaClick: n, sx: o }) => {
|
|
380
380
|
const { visibleAccounts: t } = oe(), { loadMonthlyCategoryTotals: s, monthlyTotalsLoaded: r } = F(), { isInitialized: d } = xe(), { trends: a } = k(), { isCopyLoaded: c, selectedAccounts: h, setSelectedAccounts: m } = P();
|
|
381
381
|
return i.useEffect(() => {
|
|
382
382
|
m(t);
|
|
383
383
|
}, [t]), i.useEffect(() => {
|
|
384
384
|
d && s(h).finally();
|
|
385
385
|
}, [d, h]), !c || !d ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
|
|
386
|
-
|
|
386
|
+
st,
|
|
387
387
|
{
|
|
388
388
|
onPrimaryCtaClick: n,
|
|
389
389
|
primaryCtaLabel: a.primary_cta,
|
|
390
390
|
subTitle: a.sub_title,
|
|
391
391
|
sx: o,
|
|
392
392
|
title: a.mini_title,
|
|
393
|
-
children: r ? /* @__PURE__ */ e(
|
|
393
|
+
children: r ? /* @__PURE__ */ e(Nt, {}) : /* @__PURE__ */ e(q, {})
|
|
394
394
|
}
|
|
395
395
|
);
|
|
396
|
-
},
|
|
396
|
+
}, $n = M(Wt), Ot = 70, be = ({
|
|
397
397
|
title: n,
|
|
398
398
|
totalAmount: o,
|
|
399
399
|
transactionType: t,
|
|
@@ -401,10 +401,10 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
401
401
|
secondaryLabel: r,
|
|
402
402
|
shouldDisplayPercentage: d
|
|
403
403
|
}) => {
|
|
404
|
-
const { availableWidth: a } =
|
|
404
|
+
const { availableWidth: a } = Je(), c = i.useRef(null), h = i.useRef(null), m = ht(Number(Math.abs(s)), {
|
|
405
405
|
style: "percent",
|
|
406
406
|
minimumIntegerDigits: 1
|
|
407
|
-
}), g = a === 288 && X(o, "0,0.00").length > 10 ? X(o, "0,0") : X(o, "0,0.00"), C = t === "spending" ? s > 0 : s >= 0, u = t === "spending" ? "error.main" : "success.main", l = t === "spending" ? "success.main" : "text.secondary", p = c?.current, y = h?.current, f = p && y ? p.scrollWidth > y.clientWidth -
|
|
407
|
+
}), g = a === 288 && X(o, "0,0.00").length > 10 ? X(o, "0,0") : X(o, "0,0.00"), C = t === "spending" ? s > 0 : s >= 0, u = t === "spending" ? "error.main" : "success.main", l = t === "spending" ? "success.main" : "text.secondary", p = c?.current, y = h?.current, f = p && y ? p.scrollWidth > y.clientWidth - Ot : !1;
|
|
408
408
|
return /* @__PURE__ */ T(
|
|
409
409
|
b,
|
|
410
410
|
{
|
|
@@ -429,7 +429,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
429
429
|
children: [
|
|
430
430
|
/* @__PURE__ */ e(U, { color: "text.secondary", variant: "caption", children: n }),
|
|
431
431
|
d && /* @__PURE__ */ T(b, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
432
|
-
C ? /* @__PURE__ */ e(
|
|
432
|
+
C ? /* @__PURE__ */ e(at, { size: 20, sx: { color: u } }) : /* @__PURE__ */ e(it, { size: 20, sx: { color: l } }),
|
|
433
433
|
/* @__PURE__ */ e(
|
|
434
434
|
U,
|
|
435
435
|
{
|
|
@@ -456,7 +456,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
456
456
|
},
|
|
457
457
|
children: [
|
|
458
458
|
/* @__PURE__ */ e(
|
|
459
|
-
|
|
459
|
+
O,
|
|
460
460
|
{
|
|
461
461
|
ref: c,
|
|
462
462
|
sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
@@ -477,18 +477,18 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
477
477
|
]
|
|
478
478
|
}
|
|
479
479
|
);
|
|
480
|
-
},
|
|
480
|
+
}, Vt = M(() => {
|
|
481
481
|
const { trends: n } = k();
|
|
482
482
|
return /* @__PURE__ */ T(b, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
483
|
-
/* @__PURE__ */ e(
|
|
483
|
+
/* @__PURE__ */ e(ct, { size: 32 }),
|
|
484
484
|
/* @__PURE__ */ T(b, { children: [
|
|
485
485
|
/* @__PURE__ */ e(U, { fontWeight: 600, variant: "body1", children: n.zero_state_content_header }),
|
|
486
486
|
/* @__PURE__ */ e(U, { color: "text.secondary", variant: "subtitle2", children: n.zero_state_content_description })
|
|
487
487
|
] })
|
|
488
488
|
] });
|
|
489
|
-
}),
|
|
489
|
+
}), jn = M(({ onCtaClick: n }) => {
|
|
490
490
|
const { visibleAccounts: o } = oe(), { onEvent: t } = N(), { monthlyCategoryTotals: s, loadMonthlyCategoryTotals: r, monthlyTotalsLoaded: d } = F(), a = {
|
|
491
|
-
start:
|
|
491
|
+
start: rt(/* @__PURE__ */ new Date(), 1),
|
|
492
492
|
end: /* @__PURE__ */ new Date()
|
|
493
493
|
}, { trends: c } = k(), { selectedAccounts: h, setSelectedAccounts: m, isInitialized: g } = P();
|
|
494
494
|
i.useEffect(() => {
|
|
@@ -512,14 +512,14 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
512
512
|
), n();
|
|
513
513
|
};
|
|
514
514
|
return !d || !g ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
|
|
515
|
-
|
|
515
|
+
ut,
|
|
516
516
|
{
|
|
517
517
|
className: "mx-trends-microwidget",
|
|
518
518
|
ctaLabel: c.micro_primary_cta_label,
|
|
519
519
|
onCTAClick: x,
|
|
520
520
|
subHeader: I ? void 0 : c.micro_subheader,
|
|
521
521
|
title: c.title,
|
|
522
|
-
children: I ? /* @__PURE__ */ e(
|
|
522
|
+
children: I ? /* @__PURE__ */ e(Vt, {}) : /* @__PURE__ */ T(
|
|
523
523
|
b,
|
|
524
524
|
{
|
|
525
525
|
sx: {
|
|
@@ -555,17 +555,17 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
555
555
|
)
|
|
556
556
|
}
|
|
557
557
|
);
|
|
558
|
-
}),
|
|
558
|
+
}), Gt = M(
|
|
559
559
|
({ isExpanded: n, onClick: o }) => {
|
|
560
560
|
const t = He();
|
|
561
|
-
return /* @__PURE__ */ e(
|
|
561
|
+
return /* @__PURE__ */ e(pt, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(Ct, { onClick: o, sx: { justifyContent: "center" }, children: /* @__PURE__ */ T(
|
|
562
562
|
b,
|
|
563
563
|
{
|
|
564
564
|
sx: { color: t.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
565
565
|
children: [
|
|
566
|
-
/* @__PURE__ */ e(
|
|
567
|
-
/* @__PURE__ */ e(
|
|
568
|
-
|
|
566
|
+
/* @__PURE__ */ e(Tt, { children: /* @__PURE__ */ e(Z, { bold: !0, variant: "body2", children: n ? "View less" : "View more" }) }),
|
|
567
|
+
/* @__PURE__ */ e(ft, { sx: { color: t.palette.primary.main }, children: n ? /* @__PURE__ */ e(lt, {}) : /* @__PURE__ */ e(
|
|
568
|
+
dt,
|
|
569
569
|
{
|
|
570
570
|
sx: {
|
|
571
571
|
transition: "transform 0.3s ease-in-out",
|
|
@@ -600,15 +600,15 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
600
600
|
leftIcon: o ? /* @__PURE__ */ e(fe, { categoryGuid: o }) : void 0,
|
|
601
601
|
onClick: g,
|
|
602
602
|
rightContent: X(Math.abs(n), "0,0.00"),
|
|
603
|
-
rightIcon: r ? /* @__PURE__ */ e(
|
|
603
|
+
rightIcon: r ? /* @__PURE__ */ e(Be, {}) : void 0,
|
|
604
604
|
subtitle: m,
|
|
605
605
|
title: t
|
|
606
606
|
}
|
|
607
607
|
),
|
|
608
|
-
a && /* @__PURE__ */ e(
|
|
608
|
+
a && /* @__PURE__ */ e(yt, { sx: { ml: d ? 24 : 68 } })
|
|
609
609
|
] }, o);
|
|
610
610
|
}
|
|
611
|
-
),
|
|
611
|
+
), Bt = M(
|
|
612
612
|
({ availableHeight: n = 0, onCategoryClick: o }) => {
|
|
613
613
|
const { collapsedCategories: t, visibleCategories: s, setVisibleListLength: r } = J(), { isLargeDesktop: d, isDesktop: a } = K(), { trends: c } = k(), { onEvent: h } = N(), [m, g] = i.useState(!1), C = a || d;
|
|
614
614
|
i.useEffect(() => {
|
|
@@ -620,7 +620,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
620
620
|
...R
|
|
621
621
|
});
|
|
622
622
|
}, l = s.length + (m ? t.length : 0);
|
|
623
|
-
return /* @__PURE__ */ e(b, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ T(
|
|
623
|
+
return /* @__PURE__ */ e(b, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ T(gt, { children: [
|
|
624
624
|
/* @__PURE__ */ e(b, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(we, { children: c.categories }) }),
|
|
625
625
|
s.map((p, y) => /* @__PURE__ */ e(
|
|
626
626
|
Se,
|
|
@@ -633,7 +633,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
633
633
|
p.guid
|
|
634
634
|
)),
|
|
635
635
|
/* @__PURE__ */ e(
|
|
636
|
-
|
|
636
|
+
mt,
|
|
637
637
|
{
|
|
638
638
|
in: m,
|
|
639
639
|
sx: { "&.MuiCollapse-root .MuiListItemButton-root": { paddingLeft: 24 } },
|
|
@@ -652,10 +652,10 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
652
652
|
})
|
|
653
653
|
}
|
|
654
654
|
),
|
|
655
|
-
t.length > 0 && /* @__PURE__ */ e(
|
|
655
|
+
t.length > 0 && /* @__PURE__ */ e(Gt, { isExpanded: m, onClick: u })
|
|
656
656
|
] }) });
|
|
657
657
|
}
|
|
658
|
-
),
|
|
658
|
+
), zt = [
|
|
659
659
|
"BillAmountNotStandard",
|
|
660
660
|
"CategorySpendingV2",
|
|
661
661
|
"CostOfLivingToIncome",
|
|
@@ -689,16 +689,16 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
689
689
|
"WeeklyNewMerchantsV2",
|
|
690
690
|
"WeeklyNoSpendDays",
|
|
691
691
|
"WeeklySmallPurchasesSummary"
|
|
692
|
-
],
|
|
693
|
-
const o =
|
|
692
|
+
], Ft = ({ onInsightCardClick: n }) => {
|
|
693
|
+
const o = _t(), { onEvent: t } = N(), { isMobile: s, isDesktop: r, isLargeDesktop: d } = K(), { beatStore: a, endpoint: c, sessionToken: h } = xe(), { isInitialized: m } = P(), [g, C] = i.useState(!1), u = o.palette.mode === "dark", l = r || d, p = l || s ? 1 : 2;
|
|
694
694
|
i.useEffect(() => {
|
|
695
695
|
m && a.loadBeats().finally(() => C(!0));
|
|
696
696
|
}, [m]);
|
|
697
|
-
const y = i.useMemo(() => g ? a.getFilteredBeats({ templates:
|
|
697
|
+
const y = i.useMemo(() => g ? a.getFilteredBeats({ templates: zt }) : [], [g]), f = () => null, w = (E) => {
|
|
698
698
|
n?.(E), t(_.TRENDS_CLICK_INSIGHT, R);
|
|
699
699
|
}, D = l ? 200 : 170, I = l ? 170 : 124, x = y.length > 0 ? D : I;
|
|
700
|
-
return /* @__PURE__ */ e(
|
|
701
|
-
|
|
700
|
+
return /* @__PURE__ */ e(bt, { sx: { height: x }, children: /* @__PURE__ */ e(
|
|
701
|
+
ot,
|
|
702
702
|
{
|
|
703
703
|
areBeatsLoading: a.isLoading,
|
|
704
704
|
beats: y,
|
|
@@ -718,7 +718,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
718
718
|
visibleCardsCount: p
|
|
719
719
|
}
|
|
720
720
|
) });
|
|
721
|
-
},
|
|
721
|
+
}, Pt = M(Ft), Kt = M(({ chartLabel: n, chartColor: o }) => {
|
|
722
722
|
const { onEvent: t } = N(), {
|
|
723
723
|
categoryDetailsChartData: { monthlyAmounts: s, tooltipLabels: r }
|
|
724
724
|
} = J();
|
|
@@ -751,11 +751,11 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
751
751
|
valueFormatterString: "0,0"
|
|
752
752
|
}
|
|
753
753
|
) });
|
|
754
|
-
}),
|
|
754
|
+
}), $t = M(({ onClose: n }) => {
|
|
755
755
|
const o = He(), { onEvent: t } = N(), { common: s, trends: r } = k(), { selectedCategoryData: d, selectedDateRangeMonthRange: a } = J(), { sortedTransactions: c } = ne(), [h, m] = i.useState(null);
|
|
756
756
|
if (!d)
|
|
757
757
|
return null;
|
|
758
|
-
const { guid: g, name: C, is_income: u, totalAmount: l } = d, p = u ? r.category_income : r.category_spending, y =
|
|
758
|
+
const { guid: g, name: C, is_income: u, totalAmount: l } = d, p = u ? r.category_income : r.category_spending, y = wt(g, o), f = u ? r.income_label : r.spending_label, w = ` ${d.transactions.length === 1 ? r.transaction : r.transactions} (${d.transactions.length})`, D = i.useMemo(
|
|
759
759
|
() => c.find((E) => E.guid === h),
|
|
760
760
|
[h, c]
|
|
761
761
|
), I = (E) => E.category_guid === g || E.top_level_category_guid === g, x = () => {
|
|
@@ -771,7 +771,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
771
771
|
title: p,
|
|
772
772
|
children: [
|
|
773
773
|
/* @__PURE__ */ T(b, { sx: { alignItems: "center", height: "100%" }, children: [
|
|
774
|
-
/* @__PURE__ */ T(
|
|
774
|
+
/* @__PURE__ */ T(St, { sx: { borderRadius: 0, pb: 4, pt: 16, width: "100%" }, children: [
|
|
775
775
|
/* @__PURE__ */ e(
|
|
776
776
|
Ie,
|
|
777
777
|
{
|
|
@@ -781,10 +781,10 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
781
781
|
title: C
|
|
782
782
|
}
|
|
783
783
|
),
|
|
784
|
-
/* @__PURE__ */ e(
|
|
784
|
+
/* @__PURE__ */ e(Kt, { chartColor: y, chartLabel: f }),
|
|
785
785
|
/* @__PURE__ */ T(b, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 24 }, children: [
|
|
786
786
|
/* @__PURE__ */ e(Z, { bold: !0, variant: "body1", children: w }),
|
|
787
|
-
/* @__PURE__ */ e(
|
|
787
|
+
/* @__PURE__ */ e(Dt, { filter: I })
|
|
788
788
|
] })
|
|
789
789
|
] }),
|
|
790
790
|
/* @__PURE__ */ e(
|
|
@@ -809,10 +809,10 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
809
809
|
]
|
|
810
810
|
}
|
|
811
811
|
);
|
|
812
|
-
}),
|
|
812
|
+
}), jt = (n, o) => {
|
|
813
813
|
const t = Le(n, o), s = Ee(n, o);
|
|
814
814
|
return [t, s].filter((r) => r.length > 0);
|
|
815
|
-
},
|
|
815
|
+
}, Yt = (n, o) => {
|
|
816
816
|
const [t, s] = n, r = t, d = s ?? t, a = [];
|
|
817
817
|
if (r) {
|
|
818
818
|
const c = r.reduce((h, m) => h + m.y, 0);
|
|
@@ -823,13 +823,13 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
823
823
|
a.push({ label: o.spending_label, amount: c });
|
|
824
824
|
}
|
|
825
825
|
return a;
|
|
826
|
-
},
|
|
826
|
+
}, Ut = ({
|
|
827
827
|
availableHeight: n = 0,
|
|
828
828
|
minHeight: o = 500,
|
|
829
829
|
selectedDateRange: t,
|
|
830
830
|
totals: s
|
|
831
831
|
}) => {
|
|
832
|
-
const r = ke(), { onEvent: d } = N(), { trends: a } = k(), { isSmallMobile: c, isMobile: h, isSmallTablet: m, isTablet: g } = K(), C = [r.palette.chart?.chart1, r.palette.chart?.chart2], u =
|
|
832
|
+
const r = ke(), { onEvent: d } = N(), { trends: a } = k(), { isSmallMobile: c, isMobile: h, isSmallTablet: m, isTablet: g } = K(), C = [r.palette.chart?.chart1, r.palette.chart?.chart2], u = jt(s, t), l = Yt(u, a), [p, y] = i.useState(0), f = 458, w = 195, D = 56, I = h || c ? w : m || g ? f : p;
|
|
833
833
|
return i.useEffect(() => {
|
|
834
834
|
const E = Math.max(n - D, o);
|
|
835
835
|
y(E);
|
|
@@ -856,14 +856,14 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
856
856
|
valueFormatterString: "0,0"
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
|
-
},
|
|
859
|
+
}, Xt = M(Ut), Zt = ({ onBackClick: n, onInsightCardClick: o, sx: t }) => {
|
|
860
860
|
const { onEvent: s } = N(), { isLargeDesktop: r, isDesktop: d, isMobile: a } = K(), { visibleAccounts: c } = oe(), { loadDateRangeCategoryTotals: h, loadMonthlyCategoryTotals: m, monthlyCategoryTotals: g } = F(), { setFilter: C } = ne(), { selectedDateRange: u, setSelectedCategoryData: l, setSelectedDateRange: p } = J(), {
|
|
861
861
|
isCopyLoaded: y,
|
|
862
862
|
isInitialized: f,
|
|
863
863
|
selectedAccounts: w,
|
|
864
864
|
selectedAccountGuids: D,
|
|
865
865
|
setSelectedAccounts: I
|
|
866
|
-
} = P(), { trends: x } = k(), E =
|
|
866
|
+
} = P(), { trends: x } = k(), E = Ke(), H = d || r, [A, v] = i.useState(!1), [V, se] = i.useState("Chart"), [$, re] = i.useState(""), [ae, j] = i.useState(!1), [ee, ie] = i.useState(window.innerHeight), ce = ee - 208, le = ee - (E ? 494 : 266);
|
|
867
867
|
i.useEffect(() => {
|
|
868
868
|
const L = () => ie(window.innerHeight);
|
|
869
869
|
return window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
|
|
@@ -890,8 +890,8 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
890
890
|
};
|
|
891
891
|
C({
|
|
892
892
|
...L,
|
|
893
|
-
custom: (
|
|
894
|
-
(Y) => Y.top_level_category_guid ===
|
|
893
|
+
custom: (G) => !!g.find(
|
|
894
|
+
(Y) => Y.top_level_category_guid === G.top_level_category_guid || Y.category_guid === G.category_guid
|
|
895
895
|
)
|
|
896
896
|
});
|
|
897
897
|
}
|
|
@@ -900,14 +900,14 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
900
900
|
l(L), j(!0);
|
|
901
901
|
}, he = () => {
|
|
902
902
|
l(null), j(!1);
|
|
903
|
-
}, ue = (L,
|
|
904
|
-
se(
|
|
903
|
+
}, ue = (L, G) => {
|
|
904
|
+
se(G ?? V), s(_.TRENDS_CLICK_TOGGLE_VIEW, {
|
|
905
905
|
...R,
|
|
906
|
-
toggleView:
|
|
906
|
+
toggleView: G
|
|
907
907
|
});
|
|
908
908
|
}, me = (L) => {
|
|
909
|
-
const
|
|
910
|
-
p({ start:
|
|
909
|
+
const G = De(L?.[0], 1), Y = L?.[1], Ve = pe(Y, G);
|
|
910
|
+
p({ start: G, end: Y }), s(_.TRENDS_CLICK_TIME_WINDOW, {
|
|
911
911
|
...R,
|
|
912
912
|
time_period: Ve + "M"
|
|
913
913
|
});
|
|
@@ -916,7 +916,7 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
916
916
|
...R,
|
|
917
917
|
filterValue: L
|
|
918
918
|
});
|
|
919
|
-
},
|
|
919
|
+
}, W = (L) => {
|
|
920
920
|
re(L);
|
|
921
921
|
}, B = () => {
|
|
922
922
|
re(""), s(_.TRENDS_CLICK_ALL_CATEGORIES, R);
|
|
@@ -954,12 +954,12 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
954
954
|
selectedDateRange: u
|
|
955
955
|
}
|
|
956
956
|
),
|
|
957
|
-
/* @__PURE__ */ e(Ne, { onTabChange: ue, selectedTab:
|
|
957
|
+
/* @__PURE__ */ e(Ne, { onTabChange: ue, selectedTab: V })
|
|
958
958
|
]
|
|
959
959
|
}
|
|
960
960
|
),
|
|
961
961
|
A && c.length === 0 && /* @__PURE__ */ e(
|
|
962
|
-
|
|
962
|
+
It,
|
|
963
963
|
{
|
|
964
964
|
header: "",
|
|
965
965
|
icon: "",
|
|
@@ -969,55 +969,55 @@ const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
969
969
|
subText: x.empty_state_sub_text
|
|
970
970
|
}
|
|
971
971
|
),
|
|
972
|
-
/* @__PURE__ */ e(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(
|
|
972
|
+
/* @__PURE__ */ e(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: $ && /* @__PURE__ */ T(ge, { onClick: B, sx: { p: 0, pr: 5 }, children: [
|
|
973
973
|
/* @__PURE__ */ e(te, { name: "arrow_back" }),
|
|
974
974
|
x.all_categories
|
|
975
975
|
] }) }) }),
|
|
976
976
|
/* @__PURE__ */ T(b, { flexDirection: H ? "row" : "column", gap: H ? 48 : 16, children: [
|
|
977
|
-
/* @__PURE__ */ T(
|
|
978
|
-
|
|
979
|
-
|
|
977
|
+
V === "Chart" && /* @__PURE__ */ T(Ge, { children: [
|
|
978
|
+
/* @__PURE__ */ e(O, { sx: { width: H ? "68%" : "100%" }, children: /* @__PURE__ */ e(
|
|
979
|
+
Xt,
|
|
980
980
|
{
|
|
981
981
|
availableHeight: ce,
|
|
982
982
|
minHeight: 450,
|
|
983
983
|
selectedDateRange: u,
|
|
984
984
|
totals: g
|
|
985
985
|
}
|
|
986
|
-
),
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
)
|
|
986
|
+
) }),
|
|
987
|
+
/* @__PURE__ */ T(b, { gap: 16, sx: { width: H ? "32%" : "100%" }, children: [
|
|
988
|
+
E && /* @__PURE__ */ e(Pt, { onInsightCardClick: o }),
|
|
989
|
+
/* @__PURE__ */ e(
|
|
990
|
+
Bt,
|
|
991
|
+
{
|
|
992
|
+
availableHeight: le,
|
|
993
|
+
onCategoryClick: de
|
|
994
|
+
}
|
|
995
|
+
)
|
|
996
|
+
] })
|
|
997
997
|
] }),
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
998
|
+
V === "Table" && /* @__PURE__ */ e(O, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
999
|
+
Oe,
|
|
1000
|
+
{
|
|
1001
|
+
height: "unset",
|
|
1002
|
+
monthlyCategoryTotals: g,
|
|
1003
|
+
onClickRow: W,
|
|
1004
|
+
selectedCategory: $,
|
|
1005
|
+
selectedDateRange: u
|
|
1006
|
+
}
|
|
1007
|
+
) })
|
|
1008
1008
|
] })
|
|
1009
1009
|
]
|
|
1010
1010
|
}
|
|
1011
1011
|
),
|
|
1012
|
-
ae && /* @__PURE__ */ e(
|
|
1012
|
+
ae && /* @__PURE__ */ e($t, { onClose: he })
|
|
1013
1013
|
]
|
|
1014
1014
|
}
|
|
1015
1015
|
);
|
|
1016
|
-
},
|
|
1016
|
+
}, Yn = M(Zt);
|
|
1017
1017
|
export {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1018
|
+
Kn as TrendsFullWidget,
|
|
1019
|
+
jn as TrendsMicroWidget,
|
|
1020
|
+
$n as TrendsMiniWidget,
|
|
1021
|
+
Zn as TrendsStore,
|
|
1022
|
+
Yn as TrendsWidget
|
|
1023
1023
|
};
|