@mx-cartographer/experiences 7.0.59-alpha.al0 → 7.0.59
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 -0
- package/dist/{EmptyState-w2yYDuKG.mjs → EmptyState-DsXpMcro.mjs} +26 -24
- package/dist/{RecurringSettings-qv7DNYac.mjs → RecurringSettings-B486z99o.mjs} +29 -29
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/components/CashflowWidgetContent.d.ts +3 -5
- package/dist/cashflow/index.es.js +410 -424
- package/dist/common/components/EmptyState.d.ts +1 -0
- package/dist/common/index.es.js +1 -1
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +4 -4
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/index.es.js +10 -10
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/components/RecurringSettingsDrawer.d.ts +2 -1
- package/dist/recurringtransactions/components/shared/RecurringSettings.d.ts +5 -1
- package/dist/recurringtransactions/index.es.js +50 -50
- package/dist/trends/index.es.js +351 -350
- package/package.json +1 -1
package/dist/trends/index.es.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { jsx as e, jsxs as C, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as C, Fragment as qe } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
3
|
import { observer as v } from "mobx-react-lite";
|
|
4
|
-
import { Icon as
|
|
4
|
+
import { Icon as ae, Text as Q, CategoryIcon as fe, P as X, H3 as xe, ChevronRightIcon as Je } from "@mxenabled/mxui";
|
|
5
5
|
import W from "@mui/material/Box";
|
|
6
6
|
import _ from "@mui/material/Stack";
|
|
7
|
-
import
|
|
8
|
-
import { addSeconds as
|
|
7
|
+
import me from "@mui/material/Button";
|
|
8
|
+
import { addSeconds as ve } from "date-fns/addSeconds";
|
|
9
9
|
import { differenceInCalendarMonths as pe } from "date-fns/differenceInCalendarMonths";
|
|
10
|
-
import { a as
|
|
10
|
+
import { a as et, g as tt, S as nt, L as Me } from "../TrendsStore-BKBnNQba.mjs";
|
|
11
11
|
import { T as mo } from "../TrendsStore-BKBnNQba.mjs";
|
|
12
|
-
import { i as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { u as R, m as K, g as
|
|
12
|
+
import { i as ot, c as st, d as rt, e as at, f as it, h as ct, b as Ae, g as Re, j as De } from "../SpendingData-D5vsfYKo.mjs";
|
|
13
|
+
import lt from "@mui/material/ToggleButton";
|
|
14
|
+
import dt from "@mui/material/ToggleButtonGroup";
|
|
15
|
+
import { u as R, m as K, g as N, b as ee, h as ie, d as ce, v as te, f as Te, p as ht, a as ut } from "../hooks-CE2TKk4a.mjs";
|
|
16
16
|
import { u as $ } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
17
|
-
import { f as q, D as
|
|
18
|
-
import { DataGridPro as
|
|
17
|
+
import { f as q, D as z } from "../Dialog-CWW597AF.mjs";
|
|
18
|
+
import { DataGridPro as gt } from "@mui/x-data-grid-pro";
|
|
19
19
|
import { C as mt } from "../CurrencyText-YUhH2caW.mjs";
|
|
20
|
-
import { c as
|
|
21
|
-
import { b as
|
|
22
|
-
import { H as
|
|
23
|
-
import { T as A, b as
|
|
24
|
-
import { A as
|
|
25
|
-
import { a as
|
|
20
|
+
import { c as ke } from "../Category-CevNQ03n.mjs";
|
|
21
|
+
import { b as pt } from "../Localization-2MODESHW.mjs";
|
|
22
|
+
import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
|
|
23
|
+
import { T as A, b as Ct } from "../ViewMoreMicroCard-BAz2NyEO.mjs";
|
|
24
|
+
import { A as y, W as Ne } from "../WidgetContainer-B8MRJ5Y1.mjs";
|
|
25
|
+
import { a as He, T as We } from "../TransactionDetails-DAp_CPCP.mjs";
|
|
26
26
|
import { D as Ce } from "../Drawer-kEE73B87.mjs";
|
|
27
27
|
import { L as J } from "../Loader-DUaFpDGv.mjs";
|
|
28
|
-
import { useTheme as
|
|
28
|
+
import { useTheme as Oe } from "@mui/material/styles";
|
|
29
29
|
import { L as ye } from "../LineChart-B2Y7zwMu.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
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import { useTheme as
|
|
44
|
-
import
|
|
45
|
-
import { b as
|
|
46
|
-
import { E as
|
|
47
|
-
import { u as
|
|
48
|
-
import { E as
|
|
49
|
-
import { k as
|
|
50
|
-
const
|
|
51
|
-
|
|
30
|
+
import { M as ft } from "../MiniWidgetContainer-DTQdRK-3.mjs";
|
|
31
|
+
import { subMonths as Tt } from "date-fns";
|
|
32
|
+
import { TrendingUp as yt, TrendingDown as _t, MultilineChart as bt, ExpandLess as St, ExpandMore as wt } from "@mxenabled/mx-icons";
|
|
33
|
+
import { a as Dt, f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
34
|
+
import { M as It } from "../MicroWidgetContainer-C4QQHfD7.mjs";
|
|
35
|
+
import Et from "@mui/material/Collapse";
|
|
36
|
+
import Lt from "@mui/material/List";
|
|
37
|
+
import xt from "@mui/material/ListItem";
|
|
38
|
+
import vt from "@mui/material/ListItemButton";
|
|
39
|
+
import Mt from "@mui/material/ListItemIcon";
|
|
40
|
+
import At from "@mui/material/ListItemText";
|
|
41
|
+
import Ve from "@mui/material/styles/useTheme";
|
|
42
|
+
import Rt from "@mui/material/Divider";
|
|
43
|
+
import { useTheme as kt, Stack as Nt } from "@mui/material";
|
|
44
|
+
import Ht from "@mui/material/Paper";
|
|
45
|
+
import { b as Wt } from "../CategoryUtil-BR3H5i6n.mjs";
|
|
46
|
+
import { E as Ot } from "../ExportCsvAction-CBJAfyAw.mjs";
|
|
47
|
+
import { u as Vt } from "../useInsightsEnabled-DSnpkUq0.mjs";
|
|
48
|
+
import { E as Gt } from "../EmptyState-DsXpMcro.mjs";
|
|
49
|
+
import { k as Bt } from "../ConnectDrawer-DJA_S-rX.mjs";
|
|
50
|
+
const Ge = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
51
|
+
dt,
|
|
52
52
|
{
|
|
53
53
|
exclusive: !0,
|
|
54
54
|
onChange: o,
|
|
55
55
|
orientation: "horizontal",
|
|
56
56
|
value: t,
|
|
57
|
-
children: ["Chart", "Table"].map((n) => /* @__PURE__ */ e(
|
|
57
|
+
children: ["Chart", "Table"].map((n) => /* @__PURE__ */ e(lt, { color: "primary", sx: { width: 56 }, value: n, children: n === "Chart" ? /* @__PURE__ */ e(ae, { name: "table_chart_view" }) : /* @__PURE__ */ e(ae, { name: "format_list_bulleted" }) }, n))
|
|
58
58
|
}
|
|
59
|
-
),
|
|
59
|
+
), Be = ({ selectedDateRange: t, selectedCategoryGuid: o }) => {
|
|
60
60
|
const { trends: n } = R(), { isMobile: s, isDesktop: a } = $(), { getCategoryName: h } = K(), u = i.useMemo(() => {
|
|
61
|
-
const
|
|
61
|
+
const d = q(
|
|
62
62
|
t.start,
|
|
63
|
-
s ?
|
|
64
|
-
),
|
|
63
|
+
s ? z.MONTH_SHORT_YEAR : z.MONTH_YEAR
|
|
64
|
+
), l = q(
|
|
65
65
|
t.end,
|
|
66
|
-
s ?
|
|
66
|
+
s ? z.MONTH_SHORT_YEAR : z.MONTH_YEAR
|
|
67
67
|
);
|
|
68
|
-
return `${
|
|
68
|
+
return `${d} - ${l}`;
|
|
69
69
|
}, [t, s]);
|
|
70
70
|
return /* @__PURE__ */ C(W, { sx: { mr: 10, minWidth: "60%" }, children: [
|
|
71
71
|
/* @__PURE__ */ e(
|
|
@@ -84,16 +84,16 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
84
84
|
),
|
|
85
85
|
/* @__PURE__ */ e(Q, { variant: a ? "Body" : "Small", children: u })
|
|
86
86
|
] });
|
|
87
|
-
},
|
|
87
|
+
}, zt = (t) => {
|
|
88
88
|
const o = t.row[t.field];
|
|
89
89
|
return /* @__PURE__ */ e(_, { alignItems: "flex-end", tabIndex: t.tabIndex, children: /* @__PURE__ */ e(mt, { amount: o, variant: "Small" }) });
|
|
90
|
-
},
|
|
91
|
-
const { categories: n } = R(), s = n.default_categories[t]?.replace(/&/g, "&") ??
|
|
90
|
+
}, Pt = ({ categoryGuid: t, topLevelCategoryGuid: o }) => {
|
|
91
|
+
const { categories: n } = R(), s = n.default_categories[t]?.replace(/&/g, "&") ?? ke[t];
|
|
92
92
|
return /* @__PURE__ */ C(_, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
93
93
|
/* @__PURE__ */ e(
|
|
94
94
|
W,
|
|
95
95
|
{
|
|
96
|
-
"aria-label":
|
|
96
|
+
"aria-label": pt(n.category_icon_label_aria, s),
|
|
97
97
|
role: "img",
|
|
98
98
|
children: /* @__PURE__ */ e(fe, { categoryGuid: o })
|
|
99
99
|
}
|
|
@@ -101,19 +101,19 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
101
101
|
/* @__PURE__ */ e(Q, { sx: { ml: 12, pb: 6 }, variant: "Small", children: s })
|
|
102
102
|
] });
|
|
103
103
|
}, Ft = (t) => /* @__PURE__ */ e(_, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
104
|
-
|
|
104
|
+
Pt,
|
|
105
105
|
{
|
|
106
106
|
categoryGuid: t.row.category,
|
|
107
107
|
topLevelCategoryGuid: t.row.top_level_category_guid
|
|
108
108
|
}
|
|
109
|
-
) }),
|
|
109
|
+
) }), Kt = (t, o) => {
|
|
110
110
|
const n = [], s = new Date(t);
|
|
111
111
|
for (; s <= o; ) {
|
|
112
|
-
const a = q(s,
|
|
112
|
+
const a = q(s, z.MONTH);
|
|
113
113
|
n.push(a), s.setMonth(s.getMonth() + 1);
|
|
114
114
|
}
|
|
115
115
|
return n;
|
|
116
|
-
},
|
|
116
|
+
}, ze = ({
|
|
117
117
|
monthlyCategoryTotals: t,
|
|
118
118
|
selectedDateRange: o,
|
|
119
119
|
selectedCategory: n,
|
|
@@ -121,15 +121,15 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
121
121
|
height: a = "100dvh",
|
|
122
122
|
sx: h = {}
|
|
123
123
|
}) => {
|
|
124
|
-
const { onEvent: u } =
|
|
125
|
-
{ field:
|
|
126
|
-
]), f = i.useMemo(() =>
|
|
124
|
+
const { onEvent: u } = N(), d = q(/* @__PURE__ */ new Date(), z.MONTH_SHORT), [l, m] = i.useState([
|
|
125
|
+
{ field: d, sort: "desc" }
|
|
126
|
+
]), f = i.useMemo(() => Kt(o.start, o.end), [o]), c = [
|
|
127
127
|
{
|
|
128
128
|
field: "category",
|
|
129
129
|
flex: 1,
|
|
130
130
|
headerName: "Category",
|
|
131
131
|
minWidth: 175,
|
|
132
|
-
renderHeader:
|
|
132
|
+
renderHeader: Ie,
|
|
133
133
|
renderCell: Ft,
|
|
134
134
|
sortable: !0,
|
|
135
135
|
type: "string"
|
|
@@ -140,80 +140,80 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
140
140
|
flex: 1,
|
|
141
141
|
headerName: r,
|
|
142
142
|
minWidth: 100,
|
|
143
|
-
renderHeader:
|
|
144
|
-
renderCell:
|
|
143
|
+
renderHeader: Ie,
|
|
144
|
+
renderCell: zt,
|
|
145
145
|
align: "right",
|
|
146
146
|
headerAlign: "right",
|
|
147
147
|
sortable: !0,
|
|
148
148
|
hideSortIcons: !1,
|
|
149
149
|
type: "number",
|
|
150
|
-
sortComparator:
|
|
150
|
+
sortComparator: et
|
|
151
151
|
})
|
|
152
152
|
)
|
|
153
153
|
], b = i.useMemo(() => {
|
|
154
154
|
const r = t.filter(
|
|
155
|
-
(p) => !
|
|
156
|
-
),
|
|
155
|
+
(p) => !ot(p) && !st(p)
|
|
156
|
+
), T = (n ? r.filter(
|
|
157
157
|
(p) => p.category_guid === n || p.top_level_category_guid === n
|
|
158
158
|
) : r).reduce(
|
|
159
159
|
(p, D) => {
|
|
160
|
-
const { category_guid: w, top_level_category_guid:
|
|
160
|
+
const { category_guid: w, top_level_category_guid: I, month: k, total: E, year: O } = D, M = n ? w : I;
|
|
161
161
|
p[M] || (p[M] = {
|
|
162
162
|
id: M,
|
|
163
163
|
category: M,
|
|
164
164
|
category_guid: w,
|
|
165
|
-
top_level_category_guid:
|
|
165
|
+
top_level_category_guid: I
|
|
166
166
|
});
|
|
167
|
-
const L = q(new Date(O,
|
|
168
|
-
return p[M][L] || (p[M][L] = 0), p[M][L] = p[M][L] + Math.abs(
|
|
167
|
+
const L = q(new Date(O, k - 1), z.MONTH_SHORT);
|
|
168
|
+
return p[M][L] || (p[M][L] = 0), p[M][L] = p[M][L] + Math.abs(E), p;
|
|
169
169
|
},
|
|
170
170
|
{}
|
|
171
171
|
);
|
|
172
|
-
return Object.values(
|
|
172
|
+
return Object.values(T);
|
|
173
173
|
}, [t, n]);
|
|
174
174
|
return /* @__PURE__ */ e(W, { sx: { height: a, width: "100%", overflowX: "auto", boxShadow: "none", ...h }, children: /* @__PURE__ */ e(
|
|
175
|
-
|
|
175
|
+
gt,
|
|
176
176
|
{
|
|
177
|
-
columns:
|
|
177
|
+
columns: c,
|
|
178
178
|
disableColumnFilter: !0,
|
|
179
179
|
disableColumnMenu: !0,
|
|
180
180
|
hideFooter: !0,
|
|
181
|
-
initialState: { sorting: { sortModel:
|
|
181
|
+
initialState: { sorting: { sortModel: l } },
|
|
182
182
|
onRowClick: (r) => {
|
|
183
|
-
s?.(r.row.category), u(
|
|
183
|
+
s?.(r.row.category), u(y.TRENDS_CLICK_LIST_ITEM, {
|
|
184
184
|
...A,
|
|
185
|
-
listItem:
|
|
185
|
+
listItem: ke[r.row.category]
|
|
186
186
|
});
|
|
187
187
|
},
|
|
188
188
|
onSortModelChange: (r) => {
|
|
189
|
-
|
|
189
|
+
m(r), u(y.TRENDS_CLICK_TABLE_SORT, A);
|
|
190
190
|
},
|
|
191
191
|
rows: b,
|
|
192
192
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
193
|
-
sortModel:
|
|
193
|
+
sortModel: l,
|
|
194
194
|
sortingOrder: ["asc", "desc"]
|
|
195
195
|
}
|
|
196
196
|
) });
|
|
197
|
-
},
|
|
197
|
+
}, $t = {
|
|
198
198
|
title: "Transaction List"
|
|
199
|
-
},
|
|
199
|
+
}, jt = ({
|
|
200
200
|
categoryGuid: t,
|
|
201
201
|
dateRange: o,
|
|
202
202
|
isOpen: n,
|
|
203
203
|
onClose: s
|
|
204
204
|
}) => {
|
|
205
|
-
const { onEvent: a } =
|
|
206
|
-
() =>
|
|
207
|
-
[
|
|
205
|
+
const { onEvent: a } = N(), { selectedAccountGuids: h } = ee(), { common: u } = R(), { setFilter: d, sortedTransactions: l } = ie(), [m, f] = i.useState(""), c = i.useMemo(
|
|
206
|
+
() => l.find((r) => r.guid === m),
|
|
207
|
+
[m, l]
|
|
208
208
|
);
|
|
209
209
|
i.useEffect(() => {
|
|
210
|
-
|
|
210
|
+
d({
|
|
211
211
|
accounts: h,
|
|
212
212
|
dateRange: o,
|
|
213
213
|
custom: (r) => t === "" || t === r.category_guid || t === r.top_level_category_guid,
|
|
214
214
|
showSplits: !!t
|
|
215
215
|
});
|
|
216
|
-
}, [h, t, o]), i.useEffect(() => a(
|
|
216
|
+
}, [h, t, o]), i.useEffect(() => a(y.TRENDS_VIEW_TRANSACTIONS), []);
|
|
217
217
|
const b = () => {
|
|
218
218
|
f(""), s();
|
|
219
219
|
};
|
|
@@ -223,68 +223,68 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
223
223
|
ariaLabelClose: u.close_aria,
|
|
224
224
|
isOpen: n,
|
|
225
225
|
onClose: b,
|
|
226
|
-
title:
|
|
226
|
+
title: $t.title,
|
|
227
227
|
children: [
|
|
228
|
-
|
|
229
|
-
!
|
|
228
|
+
c && /* @__PURE__ */ e(He, { transaction: c }),
|
|
229
|
+
!c && /* @__PURE__ */ e(We, { onClick: f })
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
|
-
},
|
|
234
|
-
const { onEvent: n } =
|
|
233
|
+
}, Yt = v(jt), Ut = ({ onBackClick: t, sx: o }) => {
|
|
234
|
+
const { onEvent: n } = N(), { isDesktop: s, isTablet: a, isMobile: h } = $(), { visibleAccounts: u } = ce(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: l, getCategoryName: m } = K(), { sortedTransactions: f } = ie(), { selectedDateRange: c, setSelectedDateRange: b } = te(), { isCopyLoaded: r, isInitialized: g, selectedAccounts: T, setSelectedAccounts: p } = ee(), { trends: D } = R(), [w, I] = i.useState(!1), [k, E] = i.useState(!1), [O, M] = i.useState("Chart"), [L, P] = i.useState(""), [G, le] = i.useState(window.innerHeight), j = G - (h ? 315 : 345);
|
|
235
235
|
i.useEffect(() => {
|
|
236
|
-
const S = () =>
|
|
236
|
+
const S = () => le(window.innerHeight);
|
|
237
237
|
return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
238
238
|
}, []), i.useEffect(() => {
|
|
239
239
|
p(u);
|
|
240
240
|
}, [u]), i.useEffect(() => {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
241
|
+
g && d(
|
|
242
|
+
T,
|
|
243
|
+
c.start,
|
|
244
|
+
c.end
|
|
245
245
|
).finally(() => {
|
|
246
|
-
|
|
246
|
+
I(!0);
|
|
247
247
|
});
|
|
248
|
-
}, [
|
|
248
|
+
}, [g, T, c]);
|
|
249
249
|
const ne = i.useMemo(() => {
|
|
250
250
|
if (!w) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
251
|
-
const S =
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
const S = tt(
|
|
252
|
+
l,
|
|
253
|
+
c.start,
|
|
254
|
+
c.end
|
|
255
255
|
), H = L.length ? S.filter(
|
|
256
|
-
(
|
|
257
|
-
) :
|
|
256
|
+
(B) => B.top_level_category_guid === L || B.category_guid === L
|
|
257
|
+
) : rt(S);
|
|
258
258
|
return {
|
|
259
|
-
stackedDatasets: H.filter(
|
|
260
|
-
unstackedDatasets: H.filter(
|
|
259
|
+
stackedDatasets: H.filter(at),
|
|
260
|
+
unstackedDatasets: H.filter(it)
|
|
261
261
|
};
|
|
262
|
-
}, [
|
|
263
|
-
M(H ?? O), n(
|
|
264
|
-
},
|
|
265
|
-
const H =
|
|
266
|
-
b({ start: H, end:
|
|
267
|
-
time_period:
|
|
262
|
+
}, [l, L, c]), F = (S, H) => {
|
|
263
|
+
M(H ?? O), n(y.TRENDS_CLICK_TOGGLE_VIEW);
|
|
264
|
+
}, de = (S) => {
|
|
265
|
+
const H = ve(S?.[0], 1), B = S?.[1], ge = pe(B, H);
|
|
266
|
+
b({ start: H, end: B }), n(y.TRENDS_CLICK_TIME_WINDOW, {
|
|
267
|
+
time_period: ge + "M"
|
|
268
268
|
});
|
|
269
269
|
}, Y = () => {
|
|
270
|
-
n(
|
|
270
|
+
n(y.TRENDS_CLICK_FILTER);
|
|
271
271
|
}, oe = (S) => {
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
|
|
272
|
+
P(S);
|
|
273
|
+
}, he = (S) => {
|
|
274
|
+
P(S), n(y.TRENDS_CLICK_LEGEND, { category: m(S) });
|
|
275
275
|
}, se = (S) => {
|
|
276
|
-
n(
|
|
276
|
+
n(y.TRENDS_HOVER_LEGEND, { category: m(S) });
|
|
277
277
|
}, re = (S) => {
|
|
278
|
-
n(
|
|
279
|
-
},
|
|
280
|
-
n(
|
|
278
|
+
n(y.TRENDS_HOVER_AREA, { category: S });
|
|
279
|
+
}, ue = (S) => {
|
|
280
|
+
n(y.TRENDS_HOVER_POINT, { category: S });
|
|
281
281
|
};
|
|
282
|
-
return !r || !
|
|
283
|
-
|
|
282
|
+
return !r || !g || !w ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ C(
|
|
283
|
+
Ne,
|
|
284
284
|
{
|
|
285
285
|
accountOptions: u,
|
|
286
|
-
calendarActions: { onRangeChanged:
|
|
287
|
-
dateRange:
|
|
286
|
+
calendarActions: { onRangeChanged: de },
|
|
287
|
+
dateRange: c,
|
|
288
288
|
dateRangeVariant: "timeframebuttons",
|
|
289
289
|
onAccountsFilterClick: Y,
|
|
290
290
|
onBackClick: t,
|
|
@@ -307,43 +307,43 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
307
307
|
sx: { pb: h ? 12 : 24, pt: h ? 24 : 48 },
|
|
308
308
|
children: [
|
|
309
309
|
/* @__PURE__ */ e(
|
|
310
|
-
|
|
310
|
+
Be,
|
|
311
311
|
{
|
|
312
312
|
selectedCategoryGuid: L,
|
|
313
|
-
selectedDateRange:
|
|
313
|
+
selectedDateRange: c
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
|
-
/* @__PURE__ */ e(
|
|
316
|
+
/* @__PURE__ */ e(Ge, { onTabChange: F, selectedTab: O })
|
|
317
317
|
]
|
|
318
318
|
}
|
|
319
319
|
),
|
|
320
320
|
/* @__PURE__ */ C(_, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
321
|
-
/* @__PURE__ */ e(W, { flexGrow: 1, children: L && /* @__PURE__ */ C(
|
|
322
|
-
/* @__PURE__ */ e(
|
|
321
|
+
/* @__PURE__ */ e(W, { flexGrow: 1, children: L && /* @__PURE__ */ C(me, { onClick: () => P(""), sx: { p: 0, pr: 5 }, children: [
|
|
322
|
+
/* @__PURE__ */ e(ae, { name: "arrow_back" }),
|
|
323
323
|
D.all_categories
|
|
324
324
|
] }) }),
|
|
325
|
-
/* @__PURE__ */ e(
|
|
325
|
+
/* @__PURE__ */ e(me, { onClick: () => E(!0), sx: { px: 5 }, children: `${D.view_transactions} (${f.length})` })
|
|
326
326
|
] }),
|
|
327
327
|
/* @__PURE__ */ C(W, { children: [
|
|
328
328
|
O === "Chart" && /* @__PURE__ */ e(
|
|
329
|
-
|
|
329
|
+
nt,
|
|
330
330
|
{
|
|
331
331
|
availableHeight: j,
|
|
332
|
-
onClickLegend:
|
|
332
|
+
onClickLegend: he,
|
|
333
333
|
onHoverArea: re,
|
|
334
334
|
onHoverLegend: se,
|
|
335
|
-
onHoverPoint:
|
|
335
|
+
onHoverPoint: ue,
|
|
336
336
|
stackedDatasets: ne.stackedDatasets,
|
|
337
337
|
unstackedDatasets: ne.unstackedDatasets
|
|
338
338
|
}
|
|
339
339
|
),
|
|
340
340
|
O === "Table" && /* @__PURE__ */ e(
|
|
341
|
-
|
|
341
|
+
ze,
|
|
342
342
|
{
|
|
343
|
-
monthlyCategoryTotals:
|
|
343
|
+
monthlyCategoryTotals: l,
|
|
344
344
|
onClickRow: oe,
|
|
345
345
|
selectedCategory: L,
|
|
346
|
-
selectedDateRange:
|
|
346
|
+
selectedDateRange: c
|
|
347
347
|
}
|
|
348
348
|
)
|
|
349
349
|
] })
|
|
@@ -351,19 +351,19 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
351
351
|
}
|
|
352
352
|
),
|
|
353
353
|
/* @__PURE__ */ e(
|
|
354
|
-
|
|
354
|
+
Yt,
|
|
355
355
|
{
|
|
356
356
|
categoryGuid: L,
|
|
357
|
-
dateRange:
|
|
358
|
-
isOpen:
|
|
359
|
-
onClose: () =>
|
|
357
|
+
dateRange: c,
|
|
358
|
+
isOpen: k,
|
|
359
|
+
onClose: () => E(!1)
|
|
360
360
|
}
|
|
361
361
|
)
|
|
362
362
|
]
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
|
-
},
|
|
366
|
-
const t =
|
|
365
|
+
}, io = v(Ut), Xt = () => {
|
|
366
|
+
const t = Oe(), { monthlyCategoryTotals: o } = K(), { trends: n } = R(), s = ct(o);
|
|
367
367
|
return /* @__PURE__ */ e(
|
|
368
368
|
ye,
|
|
369
369
|
{
|
|
@@ -380,24 +380,24 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
380
380
|
valueFormatterString: "0,0"
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
|
-
},
|
|
384
|
-
const { visibleAccounts: n } =
|
|
383
|
+
}, Zt = v(Xt), Qt = ({ onPrimaryCtaClick: t, sx: o }) => {
|
|
384
|
+
const { visibleAccounts: n } = ce(), { loadMonthlyCategoryTotals: s, monthlyTotalsLoaded: a } = K(), { isInitialized: h } = Te(), { trends: u } = R(), { isCopyLoaded: d, selectedAccounts: l, setSelectedAccounts: m } = ee();
|
|
385
385
|
return i.useEffect(() => {
|
|
386
|
-
|
|
386
|
+
m(n);
|
|
387
387
|
}, [n]), i.useEffect(() => {
|
|
388
|
-
h && s(
|
|
389
|
-
}, [h,
|
|
390
|
-
|
|
388
|
+
h && s(l).finally();
|
|
389
|
+
}, [h, l]), !d || !h ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ e(
|
|
390
|
+
ft,
|
|
391
391
|
{
|
|
392
392
|
onPrimaryCtaClick: t,
|
|
393
393
|
primaryCtaLabel: u.primary_cta,
|
|
394
394
|
subTitle: u.sub_title,
|
|
395
395
|
sx: o,
|
|
396
396
|
title: u.mini_title,
|
|
397
|
-
children: a ? /* @__PURE__ */ e(
|
|
397
|
+
children: a ? /* @__PURE__ */ e(Zt, {}) : /* @__PURE__ */ e(J, {})
|
|
398
398
|
}
|
|
399
399
|
);
|
|
400
|
-
},
|
|
400
|
+
}, co = v(Qt), qt = 70, Ee = ({
|
|
401
401
|
title: t,
|
|
402
402
|
totalAmount: o,
|
|
403
403
|
transactionType: n,
|
|
@@ -405,10 +405,10 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
405
405
|
secondaryLabel: a,
|
|
406
406
|
shouldDisplayPercentage: h
|
|
407
407
|
}) => {
|
|
408
|
-
const { availableWidth: u } =
|
|
408
|
+
const { availableWidth: u } = ht(), d = i.useRef(null), l = i.useRef(null), m = Dt(Number(Math.abs(s)), {
|
|
409
409
|
style: "percent",
|
|
410
410
|
minimumIntegerDigits: 1
|
|
411
|
-
}), f = u === 288 && Z(o, "0,0.00").length > 10 ? Z(o, "0,0") : Z(o, "0,0.00"),
|
|
411
|
+
}), f = u === 288 && Z(o, "0,0.00").length > 10 ? Z(o, "0,0") : Z(o, "0,0.00"), c = n === "spending" ? s > 0 : s >= 0, b = n === "spending" ? "error.main" : "success.main", r = n === "spending" ? "success.main" : "text.secondary", g = d?.current, T = l?.current, p = g && T ? g.scrollWidth > T.clientWidth - qt : !1;
|
|
412
412
|
return /* @__PURE__ */ C(
|
|
413
413
|
_,
|
|
414
414
|
{
|
|
@@ -433,16 +433,16 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
433
433
|
children: [
|
|
434
434
|
/* @__PURE__ */ e(X, { color: "text.secondary", variant: "caption", children: t }),
|
|
435
435
|
h && /* @__PURE__ */ C(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
436
|
-
|
|
436
|
+
c ? /* @__PURE__ */ e(yt, { size: 20, sx: { color: b } }) : /* @__PURE__ */ e(_t, { size: 20, sx: { color: r } }),
|
|
437
437
|
/* @__PURE__ */ e(
|
|
438
438
|
X,
|
|
439
439
|
{
|
|
440
440
|
sx: {
|
|
441
|
-
color:
|
|
441
|
+
color: c ? b : r,
|
|
442
442
|
fontWeight: 600
|
|
443
443
|
},
|
|
444
444
|
variant: "body2",
|
|
445
|
-
children:
|
|
445
|
+
children: m
|
|
446
446
|
}
|
|
447
447
|
)
|
|
448
448
|
] })
|
|
@@ -452,7 +452,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
452
452
|
/* @__PURE__ */ C(
|
|
453
453
|
_,
|
|
454
454
|
{
|
|
455
|
-
ref:
|
|
455
|
+
ref: l,
|
|
456
456
|
sx: {
|
|
457
457
|
alignItems: "center",
|
|
458
458
|
flexDirection: "row",
|
|
@@ -462,15 +462,15 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
462
462
|
/* @__PURE__ */ e(
|
|
463
463
|
W,
|
|
464
464
|
{
|
|
465
|
-
ref:
|
|
465
|
+
ref: d,
|
|
466
466
|
sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
467
|
-
children: /* @__PURE__ */ e(
|
|
467
|
+
children: /* @__PURE__ */ e(xe, { children: f })
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
470
|
h && u >= 450 && !p && /* @__PURE__ */ e(
|
|
471
471
|
X,
|
|
472
472
|
{
|
|
473
|
-
color:
|
|
473
|
+
color: c ? b : r,
|
|
474
474
|
variant: "caption",
|
|
475
475
|
children: a
|
|
476
476
|
}
|
|
@@ -481,49 +481,49 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
481
481
|
]
|
|
482
482
|
}
|
|
483
483
|
);
|
|
484
|
-
},
|
|
484
|
+
}, Jt = v(() => {
|
|
485
485
|
const { trends: t } = R();
|
|
486
486
|
return /* @__PURE__ */ C(_, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
487
|
-
/* @__PURE__ */ e(
|
|
487
|
+
/* @__PURE__ */ e(bt, { size: 32 }),
|
|
488
488
|
/* @__PURE__ */ C(_, { children: [
|
|
489
489
|
/* @__PURE__ */ e(X, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
490
490
|
/* @__PURE__ */ e(X, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
491
491
|
] })
|
|
492
492
|
] });
|
|
493
|
-
}),
|
|
494
|
-
const { visibleAccounts: o } =
|
|
495
|
-
start:
|
|
493
|
+
}), lo = v(({ onCtaClick: t }) => {
|
|
494
|
+
const { visibleAccounts: o } = ce(), { onEvent: n } = N(), { monthlyCategoryTotals: s, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: h } = K(), u = {
|
|
495
|
+
start: Tt(/* @__PURE__ */ new Date(), 1),
|
|
496
496
|
end: /* @__PURE__ */ new Date()
|
|
497
|
-
}, { trends:
|
|
497
|
+
}, { trends: d } = R(), { selectedAccounts: l, setSelectedAccounts: m, isInitialized: f } = ee();
|
|
498
498
|
i.useEffect(() => {
|
|
499
|
-
|
|
499
|
+
m(o);
|
|
500
500
|
}, [o]), i.useEffect(() => {
|
|
501
|
-
f && a(
|
|
502
|
-
n(
|
|
501
|
+
f && a(l, u.start).then(() => {
|
|
502
|
+
n(y.TRENDS_LOAD_WIDGET, {
|
|
503
503
|
state: o?.length ? "default" : "zeroState"
|
|
504
504
|
});
|
|
505
505
|
});
|
|
506
|
-
}, [f,
|
|
507
|
-
const { spendingData:
|
|
506
|
+
}, [f, l]);
|
|
507
|
+
const { spendingData: c, incomeData: b } = i.useMemo(
|
|
508
508
|
() => ({
|
|
509
|
-
spendingData:
|
|
510
|
-
incomeData:
|
|
509
|
+
spendingData: Ae(s, u),
|
|
510
|
+
incomeData: Re(s, u)
|
|
511
511
|
}),
|
|
512
512
|
[s, u]
|
|
513
|
-
), [r,
|
|
513
|
+
), [r, g] = c, [T, p] = b, D = De(g.y, r.y), w = De(p.y, T.y), I = f && !o?.length, k = () => {
|
|
514
514
|
n(
|
|
515
|
-
|
|
515
|
+
I ? y.TRENDS_CLICK_GET_STARTED : y.TRENDS_CLICK_VIEW_MORE
|
|
516
516
|
), t();
|
|
517
517
|
};
|
|
518
518
|
return !h || !f ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ e(
|
|
519
|
-
|
|
519
|
+
It,
|
|
520
520
|
{
|
|
521
521
|
className: "mx-trends-microwidget",
|
|
522
|
-
ctaLabel:
|
|
523
|
-
onCTAClick:
|
|
524
|
-
subHeader:
|
|
525
|
-
title:
|
|
526
|
-
children:
|
|
522
|
+
ctaLabel: d.micro_primary_cta_label,
|
|
523
|
+
onCTAClick: k,
|
|
524
|
+
subHeader: I ? void 0 : d.micro_subheader,
|
|
525
|
+
title: d.title,
|
|
526
|
+
children: I ? /* @__PURE__ */ e(Jt, {}) : /* @__PURE__ */ C(
|
|
527
527
|
_,
|
|
528
528
|
{
|
|
529
529
|
sx: {
|
|
@@ -533,23 +533,23 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
533
533
|
},
|
|
534
534
|
children: [
|
|
535
535
|
/* @__PURE__ */ e(
|
|
536
|
-
|
|
536
|
+
Ee,
|
|
537
537
|
{
|
|
538
538
|
percentage: D,
|
|
539
|
-
secondaryLabel:
|
|
540
|
-
shouldDisplayPercentage:
|
|
541
|
-
title:
|
|
542
|
-
totalAmount:
|
|
539
|
+
secondaryLabel: d.micro_secondary_label,
|
|
540
|
+
shouldDisplayPercentage: g.y !== 0 && r.y !== 0,
|
|
541
|
+
title: d.spending_label,
|
|
542
|
+
totalAmount: g.y,
|
|
543
543
|
transactionType: "spending"
|
|
544
544
|
}
|
|
545
545
|
),
|
|
546
546
|
/* @__PURE__ */ e(
|
|
547
|
-
|
|
547
|
+
Ee,
|
|
548
548
|
{
|
|
549
549
|
percentage: w,
|
|
550
|
-
secondaryLabel:
|
|
551
|
-
shouldDisplayPercentage: p.y !== 0 &&
|
|
552
|
-
title:
|
|
550
|
+
secondaryLabel: d.micro_secondary_label,
|
|
551
|
+
shouldDisplayPercentage: p.y !== 0 && T.y !== 0,
|
|
552
|
+
title: d.income_label,
|
|
553
553
|
totalAmount: p.y,
|
|
554
554
|
transactionType: "income"
|
|
555
555
|
}
|
|
@@ -559,17 +559,17 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
559
559
|
)
|
|
560
560
|
}
|
|
561
561
|
);
|
|
562
|
-
}),
|
|
562
|
+
}), en = v(
|
|
563
563
|
({ isExpanded: t, onClick: o }) => {
|
|
564
|
-
const n =
|
|
565
|
-
return /* @__PURE__ */ e(
|
|
564
|
+
const n = Ve();
|
|
565
|
+
return /* @__PURE__ */ e(xt, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(vt, { onClick: o, sx: { justifyContent: "center" }, children: /* @__PURE__ */ C(
|
|
566
566
|
_,
|
|
567
567
|
{
|
|
568
568
|
sx: { color: n.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
569
569
|
children: [
|
|
570
|
-
/* @__PURE__ */ e(
|
|
571
|
-
/* @__PURE__ */ e(
|
|
572
|
-
|
|
570
|
+
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(Q, { bold: !0, variant: "body2", children: t ? "View less" : "View more" }) }),
|
|
571
|
+
/* @__PURE__ */ e(Mt, { sx: { color: n.palette.primary.main }, children: t ? /* @__PURE__ */ e(St, {}) : /* @__PURE__ */ e(
|
|
572
|
+
wt,
|
|
573
573
|
{
|
|
574
574
|
sx: {
|
|
575
575
|
transition: "transform 0.3s ease-in-out",
|
|
@@ -581,7 +581,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
581
581
|
}
|
|
582
582
|
) }) });
|
|
583
583
|
}
|
|
584
|
-
),
|
|
584
|
+
), Le = v(
|
|
585
585
|
({
|
|
586
586
|
totalAmount: t,
|
|
587
587
|
guid: o,
|
|
@@ -591,101 +591,102 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
591
591
|
isLastItem: h = !1,
|
|
592
592
|
showDivider: u = !0
|
|
593
593
|
}) => {
|
|
594
|
-
const { trends:
|
|
595
|
-
a?.(),
|
|
594
|
+
const { trends: d } = R(), { onEvent: l } = N(), m = `${s.length} ${s.length === 1 ? d.transaction : d.transactions}`, f = () => {
|
|
595
|
+
a?.(), l(y.TRENDS_CLICK_LIST_ITEM, {
|
|
596
596
|
...A,
|
|
597
597
|
listItem: n
|
|
598
598
|
});
|
|
599
599
|
};
|
|
600
600
|
return /* @__PURE__ */ C(i.Fragment, { children: [
|
|
601
601
|
/* @__PURE__ */ e(
|
|
602
|
-
|
|
602
|
+
Me,
|
|
603
603
|
{
|
|
604
604
|
leftIcon: o ? /* @__PURE__ */ e(fe, { categoryGuid: o }) : void 0,
|
|
605
605
|
onClick: f,
|
|
606
606
|
rightContent: Z(Math.abs(t), "0,0.00"),
|
|
607
|
-
rightIcon: a ? /* @__PURE__ */ e(
|
|
608
|
-
subtitle:
|
|
607
|
+
rightIcon: a ? /* @__PURE__ */ e(Je, {}) : void 0,
|
|
608
|
+
subtitle: m,
|
|
609
609
|
title: n
|
|
610
610
|
}
|
|
611
611
|
),
|
|
612
|
-
u && /* @__PURE__ */ e(
|
|
612
|
+
u && /* @__PURE__ */ e(Rt, { sx: { ml: h ? 24 : 68 } })
|
|
613
613
|
] }, o);
|
|
614
614
|
}
|
|
615
|
-
),
|
|
615
|
+
), tn = v(
|
|
616
616
|
({ availableHeight: t = 0, onCategoryClick: o }) => {
|
|
617
|
-
const { collapsedCategories: n, visibleCategories: s, setVisibleListLength: a } = te(), { isLargeDesktop: h, isDesktop: u } = $(), { trends:
|
|
617
|
+
const { collapsedCategories: n, visibleCategories: s, setVisibleListLength: a } = te(), { isLargeDesktop: h, isDesktop: u } = $(), { trends: d } = R(), { onEvent: l } = N(), [m, f] = i.useState(!1), c = u || h;
|
|
618
618
|
i.useEffect(() => {
|
|
619
|
-
const
|
|
620
|
-
|
|
619
|
+
const g = Math.floor(t / 64) - 1, T = s.length + n.length;
|
|
620
|
+
g !== s.length && (a(c ? Math.max(g, 5) : 5), f(g >= T));
|
|
621
621
|
}, [t]);
|
|
622
622
|
const b = () => {
|
|
623
|
-
f(!
|
|
623
|
+
f(!m), l(y.TRENDS_CLICK_VIEW_MORE, {
|
|
624
624
|
...A
|
|
625
625
|
});
|
|
626
|
-
}, r = s.length + (
|
|
627
|
-
return /* @__PURE__ */ e(_, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ C(
|
|
628
|
-
/* @__PURE__ */ e(_, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(
|
|
629
|
-
s.map((
|
|
630
|
-
|
|
626
|
+
}, r = s.length + (m ? n.length : 0);
|
|
627
|
+
return /* @__PURE__ */ e(_, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ C(Lt, { children: [
|
|
628
|
+
/* @__PURE__ */ e(_, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(xe, { children: d.categories }) }),
|
|
629
|
+
s.map((g, T) => /* @__PURE__ */ e(
|
|
630
|
+
Le,
|
|
631
631
|
{
|
|
632
|
-
...
|
|
633
|
-
isLastItem:
|
|
634
|
-
onClick:
|
|
632
|
+
...g,
|
|
633
|
+
isLastItem: T === r - 1,
|
|
634
|
+
onClick: g.transactions.length > 0 ? () => o(g) : void 0,
|
|
635
635
|
showDivider: !0
|
|
636
636
|
},
|
|
637
|
-
|
|
637
|
+
g.guid
|
|
638
638
|
)),
|
|
639
639
|
/* @__PURE__ */ e(
|
|
640
|
-
|
|
640
|
+
Et,
|
|
641
641
|
{
|
|
642
|
-
in:
|
|
642
|
+
in: m,
|
|
643
643
|
sx: { "&.MuiCollapse-root .MuiListItemButton-root": { paddingLeft: 24 } },
|
|
644
|
-
children: n.map((
|
|
645
|
-
const p = s.length +
|
|
644
|
+
children: n.map((g, T) => {
|
|
645
|
+
const p = s.length + T;
|
|
646
646
|
return /* @__PURE__ */ e(
|
|
647
|
-
|
|
647
|
+
Le,
|
|
648
648
|
{
|
|
649
|
-
...
|
|
649
|
+
...g,
|
|
650
650
|
isLastItem: p === r - 1,
|
|
651
|
-
onClick:
|
|
651
|
+
onClick: g.transactions.length > 0 ? () => o(g) : void 0,
|
|
652
652
|
showDivider: !0
|
|
653
653
|
},
|
|
654
|
-
|
|
654
|
+
g.guid
|
|
655
655
|
);
|
|
656
656
|
})
|
|
657
657
|
}
|
|
658
658
|
),
|
|
659
|
-
n.length > 0 && /* @__PURE__ */ e(
|
|
659
|
+
n.length > 0 && /* @__PURE__ */ e(en, { isExpanded: m, onClick: b })
|
|
660
660
|
] }) });
|
|
661
661
|
}
|
|
662
|
-
),
|
|
663
|
-
const n =
|
|
664
|
-
o?.(
|
|
665
|
-
},
|
|
666
|
-
return /* @__PURE__ */ e(
|
|
667
|
-
|
|
662
|
+
), nn = ({ beats: t, onInsightCardClick: o }) => {
|
|
663
|
+
const n = kt(), { onEvent: s } = N(), { isMobile: a, isDesktop: h, isLargeDesktop: u } = $(), { beatStore: d, endpoint: l, sessionToken: m } = Te(), f = n.palette.mode === "dark", c = h || u, b = c || a ? 1 : 2, r = () => null, g = (k) => {
|
|
664
|
+
o?.(k), s(y.TRENDS_CLICK_INSIGHT, A);
|
|
665
|
+
}, T = c ? 200 : 170, p = c ? 170 : 124, D = c ? 56 : 0, w = t.length > 0 ? T + D : p, I = c && t.length > 0 ? T : void 0;
|
|
666
|
+
return /* @__PURE__ */ e(Nt, { sx: { height: w }, children: /* @__PURE__ */ e(
|
|
667
|
+
Ct,
|
|
668
668
|
{
|
|
669
|
-
areBeatsLoading:
|
|
669
|
+
areBeatsLoading: d.isLoading,
|
|
670
670
|
beats: t,
|
|
671
|
-
endpoint:
|
|
671
|
+
endpoint: l,
|
|
672
|
+
heightOverrides: I,
|
|
672
673
|
logOutUser: r,
|
|
673
|
-
onCardClick:
|
|
674
|
+
onCardClick: g,
|
|
674
675
|
showBorder: !0,
|
|
675
676
|
showCTAColocatedWithText: !1,
|
|
676
677
|
showCarouselControls: !0,
|
|
677
|
-
showHeader:
|
|
678
|
+
showHeader: c,
|
|
678
679
|
showIcon: !0,
|
|
679
680
|
showWithMargin: !1,
|
|
680
|
-
token:
|
|
681
|
+
token: m,
|
|
681
682
|
useDarkMode: f,
|
|
682
683
|
userHasFullInsightFeedBeats: !1,
|
|
683
684
|
variant: "outlined",
|
|
684
685
|
visibleCardsCount: b
|
|
685
686
|
}
|
|
686
687
|
) });
|
|
687
|
-
},
|
|
688
|
-
const { onEvent: n } =
|
|
688
|
+
}, on = v(nn), sn = v(({ chartLabel: t, chartColor: o }) => {
|
|
689
|
+
const { onEvent: n } = N(), {
|
|
689
690
|
categoryDetailsChartData: { monthlyAmounts: s, tooltipLabels: a }
|
|
690
691
|
} = te();
|
|
691
692
|
return /* @__PURE__ */ e(_, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ e(
|
|
@@ -702,7 +703,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
702
703
|
stroke: o
|
|
703
704
|
}),
|
|
704
705
|
onItemClick: () => {
|
|
705
|
-
n(
|
|
706
|
+
n(y.TRENDS_CLICK_CHART, A);
|
|
706
707
|
},
|
|
707
708
|
showArea: !0,
|
|
708
709
|
showAverage: !0,
|
|
@@ -717,49 +718,49 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
717
718
|
valueFormatterString: "0,0"
|
|
718
719
|
}
|
|
719
720
|
) });
|
|
720
|
-
}),
|
|
721
|
-
const o =
|
|
721
|
+
}), rn = v(({ onClose: t }) => {
|
|
722
|
+
const o = Ve(), { onEvent: n } = N(), { common: s, trends: a } = R(), { selectedCategoryData: h, selectedDateRangeMonthRange: u } = te(), { sortedTransactions: d } = ie(), [l, m] = i.useState(null);
|
|
722
723
|
if (!h)
|
|
723
724
|
return null;
|
|
724
|
-
const { guid: f, name:
|
|
725
|
-
() =>
|
|
726
|
-
[
|
|
727
|
-
),
|
|
728
|
-
t?.(), n(
|
|
725
|
+
const { guid: f, name: c, is_income: b, totalAmount: r } = h, g = b ? a.category_income : a.category_spending, T = Wt(f, o), p = b ? a.income_label : a.spending_label, D = ` ${h.transactions.length === 1 ? a.transaction : a.transactions} (${h.transactions.length})`, w = i.useMemo(
|
|
726
|
+
() => d.find((E) => E.guid === l),
|
|
727
|
+
[l, d]
|
|
728
|
+
), I = (E) => E.category_guid === f || E.top_level_category_guid === f, k = () => {
|
|
729
|
+
t?.(), n(y.TRENDS_CLICK_BACK, A);
|
|
729
730
|
};
|
|
730
731
|
return /* @__PURE__ */ C(
|
|
731
732
|
Ce,
|
|
732
733
|
{
|
|
733
734
|
ariaLabelClose: a.close_category_details,
|
|
734
735
|
isOpen: !0,
|
|
735
|
-
onClose:
|
|
736
|
+
onClose: k,
|
|
736
737
|
shouldShowHeaderShadow: !0,
|
|
737
|
-
title:
|
|
738
|
+
title: g,
|
|
738
739
|
children: [
|
|
739
740
|
/* @__PURE__ */ C(_, { sx: { alignItems: "center", height: "100%" }, children: [
|
|
740
|
-
/* @__PURE__ */ C(
|
|
741
|
+
/* @__PURE__ */ C(Ht, { sx: { borderRadius: 0, pb: 4, pt: 16, width: "100%" }, children: [
|
|
741
742
|
/* @__PURE__ */ e(
|
|
742
|
-
|
|
743
|
+
Me,
|
|
743
744
|
{
|
|
744
745
|
leftIcon: /* @__PURE__ */ e(fe, { categoryGuid: f }),
|
|
745
746
|
rightContent: Z(Math.abs(r), "0,0.00"),
|
|
746
747
|
subtitle: u,
|
|
747
|
-
title:
|
|
748
|
+
title: c
|
|
748
749
|
}
|
|
749
750
|
),
|
|
750
|
-
/* @__PURE__ */ e(
|
|
751
|
+
/* @__PURE__ */ e(sn, { chartColor: T, chartLabel: p }),
|
|
751
752
|
/* @__PURE__ */ C(_, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 24 }, children: [
|
|
752
753
|
/* @__PURE__ */ e(Q, { bold: !0, variant: "body1", children: D }),
|
|
753
|
-
/* @__PURE__ */ e(
|
|
754
|
+
/* @__PURE__ */ e(Ot, { filter: I })
|
|
754
755
|
] })
|
|
755
756
|
] }),
|
|
756
757
|
/* @__PURE__ */ e(
|
|
757
|
-
|
|
758
|
+
We,
|
|
758
759
|
{
|
|
759
760
|
bgcolor: "transparent",
|
|
760
|
-
filter:
|
|
761
|
+
filter: I,
|
|
761
762
|
height: "calc(100vh - 475px)",
|
|
762
|
-
onClick:
|
|
763
|
+
onClick: m
|
|
763
764
|
}
|
|
764
765
|
)
|
|
765
766
|
] }),
|
|
@@ -768,49 +769,49 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
768
769
|
{
|
|
769
770
|
ariaLabelClose: s.close_aria,
|
|
770
771
|
isOpen: !!w,
|
|
771
|
-
onClose: () =>
|
|
772
|
+
onClose: () => m(""),
|
|
772
773
|
title: a.transaction,
|
|
773
|
-
children: w && /* @__PURE__ */ e(
|
|
774
|
+
children: w && /* @__PURE__ */ e(He, { transaction: w })
|
|
774
775
|
}
|
|
775
776
|
)
|
|
776
777
|
]
|
|
777
778
|
}
|
|
778
779
|
);
|
|
779
|
-
}),
|
|
780
|
-
const n =
|
|
780
|
+
}), an = (t, o) => {
|
|
781
|
+
const n = Re(t, o), s = Ae(t, o);
|
|
781
782
|
return [n, s].filter((a) => a.length > 0);
|
|
782
|
-
},
|
|
783
|
+
}, cn = (t, o) => {
|
|
783
784
|
const [n, s] = t, a = n, h = s ?? n, u = [];
|
|
784
785
|
if (a) {
|
|
785
|
-
const
|
|
786
|
-
u.push({ label: o.income_label, amount:
|
|
786
|
+
const d = a.reduce((l, m) => l + m.y, 0);
|
|
787
|
+
u.push({ label: o.income_label, amount: d });
|
|
787
788
|
}
|
|
788
789
|
if (h) {
|
|
789
|
-
const
|
|
790
|
-
u.push({ label: o.spending_label, amount:
|
|
790
|
+
const d = h.reduce((l, m) => l + m.y, 0);
|
|
791
|
+
u.push({ label: o.spending_label, amount: d });
|
|
791
792
|
}
|
|
792
793
|
return u;
|
|
793
|
-
},
|
|
794
|
+
}, ln = ({
|
|
794
795
|
availableHeight: t = 0,
|
|
795
796
|
minHeight: o = 500,
|
|
796
797
|
selectedDateRange: n,
|
|
797
798
|
totals: s
|
|
798
799
|
}) => {
|
|
799
|
-
const a =
|
|
800
|
+
const a = Oe(), { onEvent: h } = N(), { trends: u } = R(), { isSmallMobile: d, isMobile: l, isSmallTablet: m, isTablet: f } = $(), c = [a.palette.chart?.chart1, a.palette.chart?.chart2], b = an(s, n), r = cn(b, u), [g, T] = i.useState(0), p = 458, D = 195, w = 56, I = l || d ? D : m || f ? p : g;
|
|
800
801
|
return i.useEffect(() => {
|
|
801
|
-
const
|
|
802
|
-
|
|
802
|
+
const E = Math.max(t - w, o);
|
|
803
|
+
T(E);
|
|
803
804
|
}, [t]), /* @__PURE__ */ e(
|
|
804
805
|
ye,
|
|
805
806
|
{
|
|
806
807
|
baseline: "min",
|
|
807
|
-
colors:
|
|
808
|
+
colors: c,
|
|
808
809
|
curveType: "bump",
|
|
809
810
|
datasets: b,
|
|
810
|
-
height:
|
|
811
|
+
height: I,
|
|
811
812
|
labels: r,
|
|
812
813
|
onItemClick: () => {
|
|
813
|
-
h(
|
|
814
|
+
h(y.TRENDS_CLICK_CHART, A);
|
|
814
815
|
},
|
|
815
816
|
showArea: !0,
|
|
816
817
|
showAxisHighlight: !0,
|
|
@@ -823,7 +824,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
823
824
|
valueFormatterString: "0.0a"
|
|
824
825
|
}
|
|
825
826
|
);
|
|
826
|
-
},
|
|
827
|
+
}, dn = v(ln), hn = [
|
|
827
828
|
"BillAmountNotStandard",
|
|
828
829
|
"CategorySpendingV2",
|
|
829
830
|
"CostOfLivingToIncome",
|
|
@@ -857,109 +858,109 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
857
858
|
"WeeklyNewMerchantsV2",
|
|
858
859
|
"WeeklyNoSpendDays",
|
|
859
860
|
"WeeklySmallPurchasesSummary"
|
|
860
|
-
],
|
|
861
|
-
const { onEvent: s } =
|
|
861
|
+
], un = ({ onBackClick: t, onInsightCardClick: o, sx: n }) => {
|
|
862
|
+
const { onEvent: s } = N(), { config: a } = ut(), { isLargeDesktop: h, isDesktop: u, isMobile: d } = $(), { visibleAccounts: l } = ce(), { loadDateRangeCategoryTotals: m, loadMonthlyCategoryTotals: f, monthlyCategoryTotals: c } = K(), { setFilter: b } = ie(), { selectedDateRange: r, setSelectedCategoryData: g, setSelectedDateRange: T } = te(), {
|
|
862
863
|
isCopyLoaded: p,
|
|
863
864
|
isInitialized: D,
|
|
864
865
|
selectedAccounts: w,
|
|
865
|
-
selectedAccountGuids:
|
|
866
|
-
setSelectedAccounts:
|
|
867
|
-
} = ee(), { trends:
|
|
868
|
-
() =>
|
|
869
|
-
[
|
|
866
|
+
selectedAccountGuids: I,
|
|
867
|
+
setSelectedAccounts: k
|
|
868
|
+
} = ee(), { trends: E, connect: O } = R(), { beatStore: M } = Te(), P = Vt() && a.show_insights_widget_in_master, G = u || h, [le, _e] = i.useState(!1), [j, ne] = i.useState(!1), [F, de] = i.useState("Chart"), [Y, oe] = i.useState(""), [he, se] = i.useState(!1), [re, ue] = i.useState(window.innerHeight), S = G ? 56 : 0, H = re - 208, B = re - (P ? 550 + S : 266), [ge, be] = i.useState(!1), Pe = a.show_connections_widget_in_master ? "buttons" : "no-buttons", Se = i.useMemo(
|
|
869
|
+
() => l && l.length === 0 || c.length === 0,
|
|
870
|
+
[l, c]
|
|
870
871
|
);
|
|
871
872
|
i.useEffect(() => {
|
|
872
873
|
D && M.loadBeats().finally(() => ne(!0));
|
|
873
874
|
}, [D]);
|
|
874
|
-
const
|
|
875
|
+
const we = i.useMemo(() => j ? M.getFilteredBeats({ templates: hn }) : [], [j]);
|
|
875
876
|
i.useEffect(() => {
|
|
876
|
-
const x = () =>
|
|
877
|
+
const x = () => ue(window.innerHeight);
|
|
877
878
|
return window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
|
|
878
879
|
}, []), i.useEffect(() => {
|
|
879
|
-
|
|
880
|
-
}, [
|
|
881
|
-
D &&
|
|
880
|
+
k(l);
|
|
881
|
+
}, [l]), i.useEffect(() => {
|
|
882
|
+
D && m(w, r.start, r.end).then(() => {
|
|
882
883
|
f(
|
|
883
884
|
w,
|
|
884
885
|
r.start,
|
|
885
886
|
r.end
|
|
886
887
|
);
|
|
887
888
|
}).finally(() => {
|
|
888
|
-
_e(!0), s(
|
|
889
|
+
_e(!0), s(y.TRENDS_LOAD_WIDGET, {
|
|
889
890
|
...A,
|
|
890
891
|
time_period: `${pe(r.end, r.start)}M`
|
|
891
892
|
});
|
|
892
893
|
});
|
|
893
894
|
}, [D, w, r]), i.useEffect(() => {
|
|
894
|
-
if (
|
|
895
|
+
if (c.length !== 0) {
|
|
895
896
|
const x = {
|
|
896
|
-
accounts:
|
|
897
|
+
accounts: I,
|
|
897
898
|
dateRange: { start: r.start, end: r.end }
|
|
898
899
|
};
|
|
899
900
|
b({
|
|
900
901
|
...x,
|
|
901
|
-
custom: (V) => !!
|
|
902
|
+
custom: (V) => !!c.find(
|
|
902
903
|
(U) => U.top_level_category_guid === V.top_level_category_guid || U.category_guid === V.category_guid
|
|
903
904
|
)
|
|
904
905
|
});
|
|
905
906
|
}
|
|
906
|
-
}, [
|
|
907
|
+
}, [c]);
|
|
907
908
|
const Fe = (x) => {
|
|
908
|
-
|
|
909
|
-
}, Pe = () => {
|
|
910
|
-
m(null), se(!1);
|
|
909
|
+
g(x), se(!0);
|
|
911
910
|
}, Ke = () => {
|
|
912
|
-
|
|
913
|
-
}, $e = (
|
|
914
|
-
|
|
911
|
+
g(null), se(!1);
|
|
912
|
+
}, $e = () => {
|
|
913
|
+
be(!0), s(y.TRENDS_CLICK_CONNECT_ACCOUNTS);
|
|
914
|
+
}, je = (x, V) => {
|
|
915
|
+
de(V ?? F), s(y.TRENDS_CLICK_TOGGLE_VIEW, {
|
|
915
916
|
...A,
|
|
916
917
|
toggleView: V
|
|
917
918
|
});
|
|
918
|
-
},
|
|
919
|
-
const V =
|
|
920
|
-
|
|
919
|
+
}, Ye = (x) => {
|
|
920
|
+
const V = ve(x?.[0], 1), U = x?.[1], Qe = pe(U, V);
|
|
921
|
+
T({ start: V, end: U }), s(y.TRENDS_CLICK_TIME_WINDOW, {
|
|
921
922
|
...A,
|
|
922
|
-
time_period:
|
|
923
|
+
time_period: Qe + "M"
|
|
923
924
|
});
|
|
924
|
-
},
|
|
925
|
-
s(
|
|
925
|
+
}, Ue = (x) => {
|
|
926
|
+
s(y.TRENDS_CLICK_FILTER, {
|
|
926
927
|
...A,
|
|
927
928
|
filterValue: x
|
|
928
929
|
});
|
|
929
|
-
},
|
|
930
|
+
}, Xe = (x) => {
|
|
930
931
|
oe(x);
|
|
931
|
-
},
|
|
932
|
-
oe(""), s(
|
|
932
|
+
}, Ze = () => {
|
|
933
|
+
oe(""), s(y.TRENDS_CLICK_ALL_CATEGORIES, A);
|
|
933
934
|
};
|
|
934
|
-
return !p || !
|
|
935
|
-
|
|
935
|
+
return !p || !le ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ C(
|
|
936
|
+
Ne,
|
|
936
937
|
{
|
|
937
|
-
accountOptions:
|
|
938
|
-
calendarActions: { onRangeChanged:
|
|
938
|
+
accountOptions: l,
|
|
939
|
+
calendarActions: { onRangeChanged: Ye },
|
|
939
940
|
dateRange: r,
|
|
940
|
-
dateRangeVariant:
|
|
941
|
-
onAccountsFilterClick:
|
|
941
|
+
dateRangeVariant: d ? "timeframetabs" : "timeframebuttons",
|
|
942
|
+
onAccountsFilterClick: Ue,
|
|
942
943
|
onBackClick: t,
|
|
943
944
|
sx: n,
|
|
944
|
-
title:
|
|
945
|
+
title: E.title,
|
|
945
946
|
children: [
|
|
946
|
-
|
|
947
|
-
|
|
947
|
+
Se && /* @__PURE__ */ e(
|
|
948
|
+
Gt,
|
|
948
949
|
{
|
|
949
|
-
header:
|
|
950
|
+
header: E.zero_state_content_header,
|
|
950
951
|
icon: "",
|
|
951
|
-
onClick:
|
|
952
|
-
primaryButton:
|
|
953
|
-
subText:
|
|
954
|
-
sx: { height:
|
|
955
|
-
variant:
|
|
952
|
+
onClick: $e,
|
|
953
|
+
primaryButton: E.empty_state_primary,
|
|
954
|
+
subText: E.empty_state_sub_text,
|
|
955
|
+
sx: { height: H },
|
|
956
|
+
variant: Pe
|
|
956
957
|
}
|
|
957
958
|
),
|
|
958
|
-
!
|
|
959
|
+
!Se && /* @__PURE__ */ C(
|
|
959
960
|
_,
|
|
960
961
|
{
|
|
961
962
|
sx: {
|
|
962
|
-
px:
|
|
963
|
+
px: d ? 0 : 48
|
|
963
964
|
},
|
|
964
965
|
children: [
|
|
965
966
|
/* @__PURE__ */ C(
|
|
@@ -967,82 +968,82 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
967
968
|
{
|
|
968
969
|
flexDirection: "row",
|
|
969
970
|
justifyContent: "space-between",
|
|
970
|
-
sx: { pb:
|
|
971
|
+
sx: { pb: d ? 12 : 24, pt: d ? 24 : 48 },
|
|
971
972
|
children: [
|
|
972
973
|
/* @__PURE__ */ e(
|
|
973
|
-
|
|
974
|
+
Be,
|
|
974
975
|
{
|
|
975
976
|
selectedCategoryGuid: Y,
|
|
976
977
|
selectedDateRange: r
|
|
977
978
|
}
|
|
978
979
|
),
|
|
979
|
-
/* @__PURE__ */ e(
|
|
980
|
+
/* @__PURE__ */ e(Ge, { onTabChange: je, selectedTab: F })
|
|
980
981
|
]
|
|
981
982
|
}
|
|
982
983
|
),
|
|
983
|
-
/* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(W, { flexGrow: 1, children: Y && /* @__PURE__ */ C(
|
|
984
|
-
/* @__PURE__ */ e(
|
|
985
|
-
|
|
984
|
+
/* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(W, { flexGrow: 1, children: Y && /* @__PURE__ */ C(me, { onClick: Ze, sx: { p: 0, pr: 5 }, children: [
|
|
985
|
+
/* @__PURE__ */ e(ae, { name: "arrow_back" }),
|
|
986
|
+
E.all_categories
|
|
986
987
|
] }) }) }),
|
|
987
|
-
/* @__PURE__ */ C(_, { flexDirection:
|
|
988
|
-
|
|
989
|
-
/* @__PURE__ */ e(W, { sx: { width:
|
|
990
|
-
|
|
988
|
+
/* @__PURE__ */ C(_, { flexDirection: G ? "row" : "column", gap: G ? 48 : 16, children: [
|
|
989
|
+
F === "Chart" && /* @__PURE__ */ C(qe, { children: [
|
|
990
|
+
/* @__PURE__ */ e(W, { sx: { width: G ? "68%" : "100%" }, children: /* @__PURE__ */ e(
|
|
991
|
+
dn,
|
|
991
992
|
{
|
|
992
|
-
availableHeight:
|
|
993
|
+
availableHeight: H,
|
|
993
994
|
minHeight: 450,
|
|
994
995
|
selectedDateRange: r,
|
|
995
|
-
totals:
|
|
996
|
+
totals: c
|
|
996
997
|
}
|
|
997
998
|
) }),
|
|
998
|
-
/* @__PURE__ */ C(_, { gap: 16, sx: { width:
|
|
999
|
-
|
|
1000
|
-
|
|
999
|
+
/* @__PURE__ */ C(_, { gap: 16, sx: { width: G ? "32%" : "100%" }, children: [
|
|
1000
|
+
P && j && we.length > 0 && /* @__PURE__ */ e(
|
|
1001
|
+
on,
|
|
1001
1002
|
{
|
|
1002
|
-
beats:
|
|
1003
|
+
beats: we,
|
|
1003
1004
|
onInsightCardClick: o
|
|
1004
1005
|
}
|
|
1005
1006
|
),
|
|
1006
1007
|
/* @__PURE__ */ e(
|
|
1007
|
-
|
|
1008
|
+
tn,
|
|
1008
1009
|
{
|
|
1009
|
-
availableHeight:
|
|
1010
|
+
availableHeight: B,
|
|
1010
1011
|
onCategoryClick: Fe
|
|
1011
1012
|
}
|
|
1012
1013
|
)
|
|
1013
1014
|
] })
|
|
1014
1015
|
] }),
|
|
1015
|
-
|
|
1016
|
-
|
|
1016
|
+
F === "Table" && /* @__PURE__ */ e(W, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
1017
|
+
ze,
|
|
1017
1018
|
{
|
|
1018
1019
|
height: "unset",
|
|
1019
|
-
monthlyCategoryTotals:
|
|
1020
|
-
onClickRow:
|
|
1020
|
+
monthlyCategoryTotals: c,
|
|
1021
|
+
onClickRow: Xe,
|
|
1021
1022
|
selectedCategory: Y,
|
|
1022
1023
|
selectedDateRange: r
|
|
1023
1024
|
}
|
|
1024
1025
|
) })
|
|
1025
1026
|
] }),
|
|
1026
|
-
|
|
1027
|
+
he && /* @__PURE__ */ e(rn, { onClose: Ke })
|
|
1027
1028
|
]
|
|
1028
1029
|
}
|
|
1029
1030
|
),
|
|
1030
1031
|
/* @__PURE__ */ e(
|
|
1031
|
-
|
|
1032
|
+
Bt,
|
|
1032
1033
|
{
|
|
1033
|
-
onClose: () =>
|
|
1034
|
-
showConnectWidget:
|
|
1034
|
+
onClose: () => be(!1),
|
|
1035
|
+
showConnectWidget: ge,
|
|
1035
1036
|
title: O.mini_title
|
|
1036
1037
|
}
|
|
1037
1038
|
)
|
|
1038
1039
|
]
|
|
1039
1040
|
}
|
|
1040
1041
|
);
|
|
1041
|
-
},
|
|
1042
|
+
}, ho = v(un);
|
|
1042
1043
|
export {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1044
|
+
io as TrendsFullWidget,
|
|
1045
|
+
lo as TrendsMicroWidget,
|
|
1046
|
+
co as TrendsMiniWidget,
|
|
1046
1047
|
mo as TrendsStore,
|
|
1047
|
-
|
|
1048
|
+
ho as TrendsWidget
|
|
1048
1049
|
};
|