@mx-cartographer/experiences 7.0.23-alpha.al1 → 7.0.23-alpha.al11
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.
|
@@ -118,30 +118,30 @@ class N {
|
|
|
118
118
|
n,
|
|
119
119
|
"MD_EXCLUDE_EXTERNAL_ACCOUNTS"
|
|
120
120
|
);
|
|
121
|
-
for (const
|
|
122
|
-
if (c &&
|
|
123
|
-
const
|
|
124
|
-
if (!
|
|
121
|
+
for (const o of t) {
|
|
122
|
+
if (c && o.member_is_managed_by_user) continue;
|
|
123
|
+
const r = this.members.find((m) => m.guid === o.member_guid);
|
|
124
|
+
if (!r) continue;
|
|
125
125
|
let u = h.Connected;
|
|
126
|
-
p.includes(
|
|
126
|
+
p.includes(r.connection_status) ? u = h.Error : y.includes(r.connection_status) ? u = h.Processing : I.includes(r.connection_status) && (u = h.RequiresMfa);
|
|
127
127
|
const A = [
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
o.user_name || o.feed_name || "",
|
|
129
|
+
o.account_number ? `*${o.account_number}` : ""
|
|
130
130
|
].join(" ").trim();
|
|
131
131
|
e.push({
|
|
132
|
-
...
|
|
132
|
+
...o,
|
|
133
133
|
connectionStatus: u,
|
|
134
134
|
institutionName: A,
|
|
135
|
-
memberName:
|
|
136
|
-
}),
|
|
135
|
+
memberName: r.name
|
|
136
|
+
}), r.connectionStatus = u;
|
|
137
137
|
}
|
|
138
138
|
return e;
|
|
139
139
|
};
|
|
140
140
|
loadAccounts = async (t) => {
|
|
141
|
-
await this.loadMembers();
|
|
141
|
+
await this.loadMembers(), console.log("inside load accounts, accounts is ", t);
|
|
142
142
|
try {
|
|
143
143
|
const e = t || await this.api.getAccounts();
|
|
144
|
-
a(() => {
|
|
144
|
+
console.log("inside loadaccounts try, accounts is now: ", e), a(() => {
|
|
145
145
|
this.accounts = this.sortAccounts(this.augmentAccounts(e));
|
|
146
146
|
});
|
|
147
147
|
} catch (e) {
|
|
@@ -172,10 +172,10 @@ class N {
|
|
|
172
172
|
try {
|
|
173
173
|
const e = await this.api.mergeAccounts(t), n = e[Object.keys(e)[0]];
|
|
174
174
|
a(() => {
|
|
175
|
-
const c = this.accounts.findIndex((
|
|
175
|
+
const c = this.accounts.findIndex((r) => r.guid === t[1]);
|
|
176
176
|
this.accounts.splice(c, 1);
|
|
177
|
-
const
|
|
178
|
-
this.accounts.splice(
|
|
177
|
+
const o = this.accounts.findIndex((r) => r.guid === t[0]);
|
|
178
|
+
this.accounts.splice(o, 1, n);
|
|
179
179
|
});
|
|
180
180
|
} catch (e) {
|
|
181
181
|
console.error(`Error occurred while merging accounts: ${e}`);
|
|
@@ -217,13 +217,13 @@ class N {
|
|
|
217
217
|
};
|
|
218
218
|
updateAccountFiltering = async (t, e) => {
|
|
219
219
|
for (const n of t) {
|
|
220
|
-
const c = this.accounts.find((
|
|
220
|
+
const c = this.accounts.find((o) => o.guid === n);
|
|
221
221
|
if (c) {
|
|
222
222
|
c.is_excluded_from_accounts = e, c.is_excluded_from_budgets = e, c.is_excluded_from_cash_flow = e, c.is_excluded_from_debts = e, c.is_excluded_from_goals = e, c.is_excluded_from_investments = e, c.is_excluded_from_net_worth = e, c.is_excluded_from_spending = e, c.is_excluded_from_transactions = e, c.is_excluded_from_trends = e;
|
|
223
223
|
try {
|
|
224
224
|
this.updateAccount(c);
|
|
225
|
-
} catch (
|
|
226
|
-
console.error(`Failed to update account ${n} (added):`,
|
|
225
|
+
} catch (o) {
|
|
226
|
+
console.error(`Failed to update account ${n} (added):`, o);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -24,7 +24,7 @@ import X from "@mui/material/ListItem";
|
|
|
24
24
|
import { M as U } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
25
25
|
import e1 from "@mui/material/Stack";
|
|
26
26
|
import { g as U1, a as j1 } from "../AccountFields-CIz-r3gP.mjs";
|
|
27
|
-
import { A as G1, a as K1 } from "../AccountStore-
|
|
27
|
+
import { A as G1, a as K1 } from "../AccountStore-DCDmxODy.mjs";
|
|
28
28
|
const t1 = () => {
|
|
29
29
|
const [c, L] = d.useState(""), { accounts: o } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = O(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
|
|
30
30
|
() => l.filter((t) => t.is_hidden),
|
package/dist/common/index.es.js
CHANGED
|
@@ -53,7 +53,7 @@ import { S as hr, T as gr } from "../RecurringTransactionsStore-D62XJtdL.mjs";
|
|
|
53
53
|
import { G as mr, A as _r, B as yr, W as fr, c as Sr, m as br, g as wr, t as xr, k as Cr, x as Dr, e as vr, w as Ar, u as Er, l as Tr, a as Br, j as Ir, y as Nr, s as Fr, b as Mr, q as $r, n as Rr, z as Ur, h as kr, r as Lr, f as Or, v as Gr, o as Hr, p as Pr } from "../hooks-DkUqN6JE.mjs";
|
|
54
54
|
import { u as Wr } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
55
55
|
import { makeAutoObservable as m, runInAction as p, reaction as _t } from "mobx";
|
|
56
|
-
import { a as yt } from "../AccountStore-
|
|
56
|
+
import { a as yt } from "../AccountStore-DCDmxODy.mjs";
|
|
57
57
|
import ft from "posthog-js";
|
|
58
58
|
import { B as St } from "../BeatStore-By4aGoRM.mjs";
|
|
59
59
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as e, jsxs as f, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import { Icon as
|
|
3
|
+
import { observer as A } from "mobx-react-lite";
|
|
4
|
+
import { Icon as re, Text as Z, CategoryIcon as Te, P as U, H3 as De, ChevronRightIcon as Ke } from "@mxenabled/mxui";
|
|
5
5
|
import O from "@mui/material/Box";
|
|
6
6
|
import _ from "@mui/material/Stack";
|
|
7
|
-
import
|
|
7
|
+
import Ce from "@mui/material/Button";
|
|
8
8
|
import { addSeconds as Ie } from "date-fns/addSeconds";
|
|
9
|
-
import { differenceInCalendarMonths as
|
|
9
|
+
import { differenceInCalendarMonths as se } from "date-fns/differenceInCalendarMonths";
|
|
10
10
|
import { a as $e, g as je, S as Ye, L as Ee, u as Ue } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
11
11
|
import { T as to } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
12
12
|
import { i as Xe, c as Ze, d as Qe, e as qe, f as Je, h as et, b as Le, g as xe, j as _e } from "../SpendingData-D5vsfYKo.mjs";
|
|
13
13
|
import tt from "@mui/material/ToggleButton";
|
|
14
14
|
import nt from "@mui/material/ToggleButtonGroup";
|
|
15
|
-
import { u as R, k as P, e as
|
|
15
|
+
import { u as R, k as P, e as N, a as K, f as ae, c as ie, v as J, l as ve, p as ot, m as st } from "../hooks-DkUqN6JE.mjs";
|
|
16
16
|
import { u as $ } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
17
|
-
import { f as
|
|
18
|
-
import { DataGridPro as
|
|
19
|
-
import { C as
|
|
17
|
+
import { f as Q, D as B } from "../Dialog-CWW597AF.mjs";
|
|
18
|
+
import { DataGridPro as rt } from "@mui/x-data-grid-pro";
|
|
19
|
+
import { C as at } from "../CurrencyText-YUhH2caW.mjs";
|
|
20
20
|
import { c as Me } from "../Category-CevNQ03n.mjs";
|
|
21
21
|
import { b as it } from "../Localization-2MODESHW.mjs";
|
|
22
22
|
import { H as be } from "../HeaderCell-DjuifqHJ.mjs";
|
|
23
|
-
import { T as
|
|
23
|
+
import { T as M, b as ct } from "../ViewMoreMicroCard-DFAY0tA8.mjs";
|
|
24
24
|
import { A as y, W as Ae } from "../WidgetContainer-CdBs9WOZ.mjs";
|
|
25
25
|
import { a as Re, T as ke } from "../TransactionDetails-C-z3HGTT.mjs";
|
|
26
26
|
import { D as fe } from "../Drawer-kEE73B87.mjs";
|
|
27
|
-
import { L as
|
|
28
|
-
import { useTheme as
|
|
27
|
+
import { L as q } from "../Loader-DUaFpDGv.mjs";
|
|
28
|
+
import { useTheme as Ne } from "@mui/material/styles";
|
|
29
29
|
import { L as ye } from "../LineChart-BWWmmJxV.mjs";
|
|
30
30
|
import { M as lt } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
31
31
|
import { subMonths as dt } from "date-fns";
|
|
32
32
|
import { TrendingUp as ht, TrendingDown as ut, MultilineChart as mt, ExpandLess as gt, ExpandMore as pt } from "@mxenabled/mx-icons";
|
|
33
|
-
import { a as Ct, f as
|
|
33
|
+
import { a as Ct, f as X } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
34
34
|
import { M as ft } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
|
|
35
35
|
import Tt from "@mui/material/Collapse";
|
|
36
36
|
import yt from "@mui/material/List";
|
|
@@ -38,7 +38,7 @@ import _t from "@mui/material/ListItem";
|
|
|
38
38
|
import bt from "@mui/material/ListItemButton";
|
|
39
39
|
import St from "@mui/material/ListItemIcon";
|
|
40
40
|
import wt from "@mui/material/ListItemText";
|
|
41
|
-
import
|
|
41
|
+
import He from "@mui/material/styles/useTheme";
|
|
42
42
|
import Dt from "@mui/material/Divider";
|
|
43
43
|
import { useTheme as It, Stack as Et } from "@mui/material";
|
|
44
44
|
import Lt from "@mui/material/Paper";
|
|
@@ -52,14 +52,14 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
52
52
|
onChange: o,
|
|
53
53
|
orientation: "horizontal",
|
|
54
54
|
value: n,
|
|
55
|
-
children: ["Chart", "Table"].map((t) => /* @__PURE__ */ e(tt, { color: "primary", sx: { width: 56 }, value: t, children: t === "Chart" ? /* @__PURE__ */ e(
|
|
55
|
+
children: ["Chart", "Table"].map((t) => /* @__PURE__ */ e(tt, { color: "primary", sx: { width: 56 }, value: t, children: t === "Chart" ? /* @__PURE__ */ e(re, { name: "table_chart_view" }) : /* @__PURE__ */ e(re, { name: "format_list_bulleted" }) }, t))
|
|
56
56
|
}
|
|
57
57
|
), Oe = ({ selectedDateRange: n, selectedCategoryGuid: o }) => {
|
|
58
|
-
const { trends: t } = R(), { isMobile: s, isDesktop:
|
|
59
|
-
const c =
|
|
58
|
+
const { trends: t } = R(), { isMobile: s, isDesktop: a } = $(), { getCategoryName: h } = P(), d = i.useMemo(() => {
|
|
59
|
+
const c = Q(
|
|
60
60
|
n.start,
|
|
61
61
|
s ? B.MONTH_SHORT_YEAR : B.MONTH_YEAR
|
|
62
|
-
), l =
|
|
62
|
+
), l = Q(
|
|
63
63
|
n.end,
|
|
64
64
|
s ? B.MONTH_SHORT_YEAR : B.MONTH_YEAR
|
|
65
65
|
);
|
|
@@ -67,7 +67,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
67
67
|
}, [n, s]);
|
|
68
68
|
return /* @__PURE__ */ f(O, { sx: { mr: 10, minWidth: "60%" }, children: [
|
|
69
69
|
/* @__PURE__ */ e(
|
|
70
|
-
|
|
70
|
+
Z,
|
|
71
71
|
{
|
|
72
72
|
display: "block",
|
|
73
73
|
fontWeight: 700,
|
|
@@ -76,15 +76,15 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
76
76
|
overflow: "visible",
|
|
77
77
|
textOverflow: "unset"
|
|
78
78
|
},
|
|
79
|
-
variant:
|
|
79
|
+
variant: a ? "H3" : "Body",
|
|
80
80
|
children: h(o) || t.sub_title
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
/* @__PURE__ */ e(
|
|
83
|
+
/* @__PURE__ */ e(Z, { variant: a ? "Body" : "Small", children: d })
|
|
84
84
|
] });
|
|
85
85
|
}, At = (n) => {
|
|
86
86
|
const o = n.row[n.field];
|
|
87
|
-
return /* @__PURE__ */ e(_, { alignItems: "flex-end", tabIndex: n.tabIndex, children: /* @__PURE__ */ e(
|
|
87
|
+
return /* @__PURE__ */ e(_, { alignItems: "flex-end", tabIndex: n.tabIndex, children: /* @__PURE__ */ e(at, { amount: o, variant: "Small" }) });
|
|
88
88
|
}, Rt = ({ categoryGuid: n, topLevelCategoryGuid: o }) => {
|
|
89
89
|
const { categories: t } = R(), s = t.default_categories[n]?.replace(/&/g, "&") ?? Me[n];
|
|
90
90
|
return /* @__PURE__ */ f(_, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
@@ -96,7 +96,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
96
96
|
children: /* @__PURE__ */ e(Te, { categoryGuid: o })
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
|
-
/* @__PURE__ */ e(
|
|
99
|
+
/* @__PURE__ */ e(Z, { sx: { ml: 12, pb: 6 }, variant: "Small", children: s })
|
|
100
100
|
] });
|
|
101
101
|
}, kt = (n) => /* @__PURE__ */ e(_, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
102
102
|
Rt,
|
|
@@ -104,11 +104,11 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
104
104
|
categoryGuid: n.row.category,
|
|
105
105
|
topLevelCategoryGuid: n.row.top_level_category_guid
|
|
106
106
|
}
|
|
107
|
-
) }),
|
|
107
|
+
) }), Nt = (n, o) => {
|
|
108
108
|
const t = [], s = new Date(n);
|
|
109
109
|
for (; s <= o; ) {
|
|
110
|
-
const
|
|
111
|
-
t.push(
|
|
110
|
+
const a = Q(s, B.MONTH);
|
|
111
|
+
t.push(a), s.setMonth(s.getMonth() + 1);
|
|
112
112
|
}
|
|
113
113
|
return t;
|
|
114
114
|
}, Ve = ({
|
|
@@ -116,12 +116,12 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
116
116
|
selectedDateRange: o,
|
|
117
117
|
selectedCategory: t,
|
|
118
118
|
onClickRow: s,
|
|
119
|
-
height:
|
|
119
|
+
height: a = "100dvh",
|
|
120
120
|
sx: h = {}
|
|
121
121
|
}) => {
|
|
122
|
-
const { onEvent: d } =
|
|
122
|
+
const { onEvent: d } = N(), c = Q(/* @__PURE__ */ new Date(), B.MONTH_SHORT), [l, m] = i.useState([
|
|
123
123
|
{ field: c, sort: "desc" }
|
|
124
|
-
]), C = i.useMemo(() =>
|
|
124
|
+
]), C = i.useMemo(() => Nt(o.start, o.end), [o]), u = [
|
|
125
125
|
{
|
|
126
126
|
field: "category",
|
|
127
127
|
flex: 1,
|
|
@@ -133,10 +133,10 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
133
133
|
type: "string"
|
|
134
134
|
},
|
|
135
135
|
...C.map(
|
|
136
|
-
(
|
|
137
|
-
field:
|
|
136
|
+
(r) => ({
|
|
137
|
+
field: r,
|
|
138
138
|
flex: 1,
|
|
139
|
-
headerName:
|
|
139
|
+
headerName: r,
|
|
140
140
|
minWidth: 100,
|
|
141
141
|
renderHeader: be,
|
|
142
142
|
renderCell: At,
|
|
@@ -149,42 +149,42 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
149
149
|
})
|
|
150
150
|
)
|
|
151
151
|
], b = i.useMemo(() => {
|
|
152
|
-
const
|
|
152
|
+
const r = n.filter(
|
|
153
153
|
(p) => !Xe(p) && !Ze(p)
|
|
154
|
-
), T = (t ?
|
|
154
|
+
), T = (t ? r.filter(
|
|
155
155
|
(p) => p.category_guid === t || p.top_level_category_guid === t
|
|
156
|
-
) :
|
|
157
|
-
(p,
|
|
158
|
-
const { category_guid: w, top_level_category_guid:
|
|
156
|
+
) : r).reduce(
|
|
157
|
+
(p, I) => {
|
|
158
|
+
const { category_guid: w, top_level_category_guid: E, month: k, total: D, year: H } = I, L = t ? w : E;
|
|
159
159
|
p[L] || (p[L] = {
|
|
160
160
|
id: L,
|
|
161
161
|
category: L,
|
|
162
162
|
category_guid: w,
|
|
163
|
-
top_level_category_guid:
|
|
163
|
+
top_level_category_guid: E
|
|
164
164
|
});
|
|
165
|
-
const x =
|
|
165
|
+
const x = Q(new Date(H, k - 1), B.MONTH_SHORT);
|
|
166
166
|
return p[L][x] || (p[L][x] = 0), p[L][x] = p[L][x] + Math.abs(D), p;
|
|
167
167
|
},
|
|
168
168
|
{}
|
|
169
169
|
);
|
|
170
170
|
return Object.values(T);
|
|
171
171
|
}, [n, t]);
|
|
172
|
-
return /* @__PURE__ */ e(O, { sx: { height:
|
|
173
|
-
|
|
172
|
+
return /* @__PURE__ */ e(O, { sx: { height: a, width: "100%", overflowX: "auto", boxShadow: "none", ...h }, children: /* @__PURE__ */ e(
|
|
173
|
+
rt,
|
|
174
174
|
{
|
|
175
175
|
columns: u,
|
|
176
176
|
disableColumnFilter: !0,
|
|
177
177
|
disableColumnMenu: !0,
|
|
178
178
|
hideFooter: !0,
|
|
179
179
|
initialState: { sorting: { sortModel: l } },
|
|
180
|
-
onRowClick: (
|
|
181
|
-
s?.(
|
|
182
|
-
...
|
|
183
|
-
listItem: Me[
|
|
180
|
+
onRowClick: (r) => {
|
|
181
|
+
s?.(r.row.category), d(y.TRENDS_CLICK_LIST_ITEM, {
|
|
182
|
+
...M,
|
|
183
|
+
listItem: Me[r.row.category]
|
|
184
184
|
});
|
|
185
185
|
},
|
|
186
|
-
onSortModelChange: (
|
|
187
|
-
m(
|
|
186
|
+
onSortModelChange: (r) => {
|
|
187
|
+
m(r), d(y.TRENDS_CLICK_TABLE_SORT, M);
|
|
188
188
|
},
|
|
189
189
|
rows: b,
|
|
190
190
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
@@ -192,7 +192,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
192
192
|
sortingOrder: ["asc", "desc"]
|
|
193
193
|
}
|
|
194
194
|
) });
|
|
195
|
-
},
|
|
195
|
+
}, Ht = {
|
|
196
196
|
title: "Transaction List"
|
|
197
197
|
}, Wt = ({
|
|
198
198
|
categoryGuid: n,
|
|
@@ -200,18 +200,18 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
200
200
|
isOpen: t,
|
|
201
201
|
onClose: s
|
|
202
202
|
}) => {
|
|
203
|
-
const { onEvent:
|
|
204
|
-
() => l.find((
|
|
203
|
+
const { onEvent: a } = N(), { selectedAccountGuids: h } = K(), { common: d } = R(), { setFilter: c, sortedTransactions: l } = ae(), [m, C] = i.useState(""), u = i.useMemo(
|
|
204
|
+
() => l.find((r) => r.guid === m),
|
|
205
205
|
[m, l]
|
|
206
206
|
);
|
|
207
207
|
i.useEffect(() => {
|
|
208
208
|
c({
|
|
209
209
|
accounts: h,
|
|
210
210
|
dateRange: o,
|
|
211
|
-
custom: (
|
|
211
|
+
custom: (r) => n === "" || n === r.category_guid || n === r.top_level_category_guid,
|
|
212
212
|
showSplits: !!n
|
|
213
213
|
});
|
|
214
|
-
}, [h, n, o]), i.useEffect(() =>
|
|
214
|
+
}, [h, n, o]), i.useEffect(() => a(y.TRENDS_VIEW_TRANSACTIONS), []);
|
|
215
215
|
const b = () => {
|
|
216
216
|
C(""), s();
|
|
217
217
|
};
|
|
@@ -221,17 +221,17 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
221
221
|
ariaLabelClose: d.close_aria,
|
|
222
222
|
isOpen: t,
|
|
223
223
|
onClose: b,
|
|
224
|
-
title:
|
|
224
|
+
title: Ht.title,
|
|
225
225
|
children: [
|
|
226
226
|
u && /* @__PURE__ */ e(Re, { transaction: u }),
|
|
227
227
|
!u && /* @__PURE__ */ e(ke, { onClick: C })
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
|
-
}, Ot =
|
|
232
|
-
const { onEvent: t } =
|
|
231
|
+
}, Ot = A(Wt), Vt = ({ onBackClick: n, sx: o }) => {
|
|
232
|
+
const { onEvent: t } = N(), { isDesktop: s, isTablet: a, isMobile: h } = $(), { visibleAccounts: d } = ie(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: l, getCategoryName: m } = P(), { sortedTransactions: C } = ae(), { selectedDateRange: u, setSelectedDateRange: b } = J(), { isCopyLoaded: r, isInitialized: g, selectedAccounts: T, setSelectedAccounts: p } = K(), { trends: I } = R(), [w, E] = i.useState(!1), [k, D] = i.useState(!1), [H, L] = i.useState("Chart"), [x, z] = i.useState(""), [ce, le] = i.useState(window.innerHeight), de = ce - (h ? 315 : 345);
|
|
233
233
|
i.useEffect(() => {
|
|
234
|
-
const S = () =>
|
|
234
|
+
const S = () => le(window.innerHeight);
|
|
235
235
|
return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
236
236
|
}, []), i.useEffect(() => {
|
|
237
237
|
p(d);
|
|
@@ -241,10 +241,10 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
241
241
|
u.start,
|
|
242
242
|
u.end
|
|
243
243
|
).finally(() => {
|
|
244
|
-
|
|
244
|
+
E(!0);
|
|
245
245
|
});
|
|
246
246
|
}, [g, T, u]);
|
|
247
|
-
const
|
|
247
|
+
const F = i.useMemo(() => {
|
|
248
248
|
if (!w) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
249
249
|
const S = je(
|
|
250
250
|
l,
|
|
@@ -257,44 +257,44 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
257
257
|
stackedDatasets: W.filter(qe),
|
|
258
258
|
unstackedDatasets: W.filter(Je)
|
|
259
259
|
};
|
|
260
|
-
}, [l, x, u]),
|
|
261
|
-
L(W ??
|
|
262
|
-
},
|
|
263
|
-
const W = Ie(S?.[0], 1), G = S?.[1],
|
|
260
|
+
}, [l, x, u]), ee = (S, W) => {
|
|
261
|
+
L(W ?? H), t(y.TRENDS_CLICK_TOGGLE_VIEW);
|
|
262
|
+
}, he = (S) => {
|
|
263
|
+
const W = Ie(S?.[0], 1), G = S?.[1], pe = se(G, W);
|
|
264
264
|
b({ start: W, end: G }), t(y.TRENDS_CLICK_TIME_WINDOW, {
|
|
265
|
-
time_period:
|
|
265
|
+
time_period: pe + "M"
|
|
266
266
|
});
|
|
267
|
-
},
|
|
267
|
+
}, te = () => {
|
|
268
268
|
t(y.TRENDS_CLICK_FILTER);
|
|
269
|
-
},
|
|
269
|
+
}, ne = (S) => {
|
|
270
270
|
z(S);
|
|
271
|
-
},
|
|
271
|
+
}, ue = (S) => {
|
|
272
272
|
z(S), t(y.TRENDS_CLICK_LEGEND, { category: m(S) });
|
|
273
|
-
},
|
|
273
|
+
}, oe = (S) => {
|
|
274
274
|
t(y.TRENDS_HOVER_LEGEND, { category: m(S) });
|
|
275
|
-
}, ue = (S) => {
|
|
276
|
-
t(y.TRENDS_HOVER_AREA, { category: S });
|
|
277
275
|
}, me = (S) => {
|
|
276
|
+
t(y.TRENDS_HOVER_AREA, { category: S });
|
|
277
|
+
}, ge = (S) => {
|
|
278
278
|
t(y.TRENDS_HOVER_POINT, { category: S });
|
|
279
279
|
};
|
|
280
|
-
return !
|
|
280
|
+
return !r || !g || !w ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ f(
|
|
281
281
|
Ae,
|
|
282
282
|
{
|
|
283
283
|
accountOptions: d,
|
|
284
|
-
calendarActions: { onRangeChanged:
|
|
284
|
+
calendarActions: { onRangeChanged: he },
|
|
285
285
|
dateRange: u,
|
|
286
286
|
dateRangeVariant: "timeframebuttons",
|
|
287
|
-
onAccountsFilterClick:
|
|
287
|
+
onAccountsFilterClick: te,
|
|
288
288
|
onBackClick: n,
|
|
289
289
|
sx: o,
|
|
290
|
-
title:
|
|
290
|
+
title: I.title,
|
|
291
291
|
children: [
|
|
292
292
|
/* @__PURE__ */ f(
|
|
293
293
|
_,
|
|
294
294
|
{
|
|
295
295
|
sx: {
|
|
296
296
|
// eslint-disable-next-line no-nested-ternary
|
|
297
|
-
px: s ? 48 :
|
|
297
|
+
px: s ? 48 : a ? 24 : 12
|
|
298
298
|
},
|
|
299
299
|
children: [
|
|
300
300
|
/* @__PURE__ */ f(
|
|
@@ -311,35 +311,35 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
311
311
|
selectedDateRange: u
|
|
312
312
|
}
|
|
313
313
|
),
|
|
314
|
-
/* @__PURE__ */ e(We, { onTabChange:
|
|
314
|
+
/* @__PURE__ */ e(We, { onTabChange: ee, selectedTab: H })
|
|
315
315
|
]
|
|
316
316
|
}
|
|
317
317
|
),
|
|
318
318
|
/* @__PURE__ */ f(_, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
319
|
-
/* @__PURE__ */ e(O, { flexGrow: 1, children: x && /* @__PURE__ */ f(
|
|
320
|
-
/* @__PURE__ */ e(
|
|
321
|
-
|
|
319
|
+
/* @__PURE__ */ e(O, { flexGrow: 1, children: x && /* @__PURE__ */ f(Ce, { onClick: () => z(""), sx: { p: 0, pr: 5 }, children: [
|
|
320
|
+
/* @__PURE__ */ e(re, { name: "arrow_back" }),
|
|
321
|
+
I.all_categories
|
|
322
322
|
] }) }),
|
|
323
|
-
/* @__PURE__ */ e(
|
|
323
|
+
/* @__PURE__ */ e(Ce, { onClick: () => D(!0), sx: { px: 5 }, children: `${I.view_transactions} (${C.length})` })
|
|
324
324
|
] }),
|
|
325
325
|
/* @__PURE__ */ f(O, { children: [
|
|
326
|
-
|
|
326
|
+
H === "Chart" && /* @__PURE__ */ e(
|
|
327
327
|
Ye,
|
|
328
328
|
{
|
|
329
|
-
availableHeight:
|
|
330
|
-
onClickLegend:
|
|
331
|
-
onHoverArea:
|
|
332
|
-
onHoverLegend:
|
|
333
|
-
onHoverPoint:
|
|
334
|
-
stackedDatasets:
|
|
335
|
-
unstackedDatasets:
|
|
329
|
+
availableHeight: de,
|
|
330
|
+
onClickLegend: ue,
|
|
331
|
+
onHoverArea: me,
|
|
332
|
+
onHoverLegend: oe,
|
|
333
|
+
onHoverPoint: ge,
|
|
334
|
+
stackedDatasets: F.stackedDatasets,
|
|
335
|
+
unstackedDatasets: F.unstackedDatasets
|
|
336
336
|
}
|
|
337
337
|
),
|
|
338
|
-
|
|
338
|
+
H === "Table" && /* @__PURE__ */ e(
|
|
339
339
|
Ve,
|
|
340
340
|
{
|
|
341
341
|
monthlyCategoryTotals: l,
|
|
342
|
-
onClickRow:
|
|
342
|
+
onClickRow: ne,
|
|
343
343
|
selectedCategory: x,
|
|
344
344
|
selectedDateRange: u
|
|
345
345
|
}
|
|
@@ -360,8 +360,8 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
360
360
|
]
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
|
-
}, Xn =
|
|
364
|
-
const n =
|
|
363
|
+
}, Xn = A(Vt), Gt = () => {
|
|
364
|
+
const n = Ne(), { monthlyCategoryTotals: o } = P(), { trends: t } = R(), s = et(o);
|
|
365
365
|
return /* @__PURE__ */ e(
|
|
366
366
|
ye,
|
|
367
367
|
{
|
|
@@ -378,13 +378,13 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
378
378
|
valueFormatterString: "0,0"
|
|
379
379
|
}
|
|
380
380
|
);
|
|
381
|
-
}, Bt =
|
|
382
|
-
const { visibleAccounts: t } = ie(), { loadMonthlyCategoryTotals: s, monthlyTotalsLoaded:
|
|
381
|
+
}, Bt = A(Gt), zt = ({ onPrimaryCtaClick: n, sx: o }) => {
|
|
382
|
+
const { visibleAccounts: t } = ie(), { loadMonthlyCategoryTotals: s, monthlyTotalsLoaded: a } = P(), { isInitialized: h } = ve(), { trends: d } = R(), { isCopyLoaded: c, selectedAccounts: l, setSelectedAccounts: m } = K();
|
|
383
383
|
return i.useEffect(() => {
|
|
384
384
|
m(t);
|
|
385
385
|
}, [t]), i.useEffect(() => {
|
|
386
386
|
h && s(l).finally();
|
|
387
|
-
}, [h, l]), !c || !h ? /* @__PURE__ */ e(
|
|
387
|
+
}, [h, l]), !c || !h ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
|
|
388
388
|
lt,
|
|
389
389
|
{
|
|
390
390
|
onPrimaryCtaClick: n,
|
|
@@ -392,21 +392,21 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
392
392
|
subTitle: d.sub_title,
|
|
393
393
|
sx: o,
|
|
394
394
|
title: d.mini_title,
|
|
395
|
-
children:
|
|
395
|
+
children: a ? /* @__PURE__ */ e(Bt, {}) : /* @__PURE__ */ e(q, {})
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
|
-
}, Zn =
|
|
398
|
+
}, Zn = A(zt), Ft = 70, Se = ({
|
|
399
399
|
title: n,
|
|
400
400
|
totalAmount: o,
|
|
401
401
|
transactionType: t,
|
|
402
402
|
percentage: s,
|
|
403
|
-
secondaryLabel:
|
|
403
|
+
secondaryLabel: a,
|
|
404
404
|
shouldDisplayPercentage: h
|
|
405
405
|
}) => {
|
|
406
406
|
const { availableWidth: d } = ot(), c = i.useRef(null), l = i.useRef(null), m = Ct(Number(Math.abs(s)), {
|
|
407
407
|
style: "percent",
|
|
408
408
|
minimumIntegerDigits: 1
|
|
409
|
-
}), C = d === 288 &&
|
|
409
|
+
}), C = d === 288 && X(o, "0,0.00").length > 10 ? X(o, "0,0") : X(o, "0,0.00"), u = t === "spending" ? s > 0 : s >= 0, b = t === "spending" ? "error.main" : "success.main", r = t === "spending" ? "success.main" : "text.secondary", g = c?.current, T = l?.current, p = g && T ? g.scrollWidth > T.clientWidth - Ft : !1;
|
|
410
410
|
return /* @__PURE__ */ f(
|
|
411
411
|
_,
|
|
412
412
|
{
|
|
@@ -429,14 +429,14 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
429
429
|
justifyContent: "space-between"
|
|
430
430
|
},
|
|
431
431
|
children: [
|
|
432
|
-
/* @__PURE__ */ e(
|
|
432
|
+
/* @__PURE__ */ e(U, { color: "text.secondary", variant: "caption", children: n }),
|
|
433
433
|
h && /* @__PURE__ */ f(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
434
|
-
u ? /* @__PURE__ */ e(ht, { size: 20, sx: { color: b } }) : /* @__PURE__ */ e(ut, { size: 20, sx: { color:
|
|
434
|
+
u ? /* @__PURE__ */ e(ht, { size: 20, sx: { color: b } }) : /* @__PURE__ */ e(ut, { size: 20, sx: { color: r } }),
|
|
435
435
|
/* @__PURE__ */ e(
|
|
436
|
-
|
|
436
|
+
U,
|
|
437
437
|
{
|
|
438
438
|
sx: {
|
|
439
|
-
color: u ? b :
|
|
439
|
+
color: u ? b : r,
|
|
440
440
|
fontWeight: 600
|
|
441
441
|
},
|
|
442
442
|
variant: "body2",
|
|
@@ -466,11 +466,11 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
466
466
|
}
|
|
467
467
|
),
|
|
468
468
|
h && d >= 450 && !p && /* @__PURE__ */ e(
|
|
469
|
-
|
|
469
|
+
U,
|
|
470
470
|
{
|
|
471
|
-
color: u ? b :
|
|
471
|
+
color: u ? b : r,
|
|
472
472
|
variant: "caption",
|
|
473
|
-
children:
|
|
473
|
+
children: a
|
|
474
474
|
}
|
|
475
475
|
)
|
|
476
476
|
]
|
|
@@ -479,24 +479,24 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
479
479
|
]
|
|
480
480
|
}
|
|
481
481
|
);
|
|
482
|
-
}, Pt =
|
|
482
|
+
}, Pt = A(() => {
|
|
483
483
|
const { trends: n } = R();
|
|
484
484
|
return /* @__PURE__ */ f(_, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
485
485
|
/* @__PURE__ */ e(mt, { size: 32 }),
|
|
486
486
|
/* @__PURE__ */ f(_, { children: [
|
|
487
|
-
/* @__PURE__ */ e(
|
|
488
|
-
/* @__PURE__ */ e(
|
|
487
|
+
/* @__PURE__ */ e(U, { fontWeight: 600, variant: "body1", children: n.zero_state_content_header }),
|
|
488
|
+
/* @__PURE__ */ e(U, { color: "text.secondary", variant: "subtitle2", children: n.zero_state_content_description })
|
|
489
489
|
] })
|
|
490
490
|
] });
|
|
491
|
-
}), Qn =
|
|
492
|
-
const { visibleAccounts: o } = ie(), { onEvent: t } =
|
|
491
|
+
}), Qn = A(({ onCtaClick: n }) => {
|
|
492
|
+
const { visibleAccounts: o } = ie(), { onEvent: t } = N(), { monthlyCategoryTotals: s, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: h } = P(), d = {
|
|
493
493
|
start: dt(/* @__PURE__ */ new Date(), 1),
|
|
494
494
|
end: /* @__PURE__ */ new Date()
|
|
495
495
|
}, { trends: c } = R(), { selectedAccounts: l, setSelectedAccounts: m, isInitialized: C } = K();
|
|
496
496
|
i.useEffect(() => {
|
|
497
497
|
m(o);
|
|
498
498
|
}, [o]), i.useEffect(() => {
|
|
499
|
-
C &&
|
|
499
|
+
C && a(l, d.start).then(() => {
|
|
500
500
|
t(y.TRENDS_LOAD_WIDGET, {
|
|
501
501
|
state: o?.length ? "default" : "zeroState"
|
|
502
502
|
});
|
|
@@ -508,20 +508,20 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
508
508
|
incomeData: xe(s, d)
|
|
509
509
|
}),
|
|
510
510
|
[s, d]
|
|
511
|
-
), [
|
|
511
|
+
), [r, g] = u, [T, p] = b, I = _e(g.y, r.y), w = _e(p.y, T.y), E = C && !o?.length, k = () => {
|
|
512
512
|
t(
|
|
513
|
-
|
|
513
|
+
E ? y.TRENDS_CLICK_GET_STARTED : y.TRENDS_CLICK_VIEW_MORE
|
|
514
514
|
), n();
|
|
515
515
|
};
|
|
516
|
-
return !h || !C ? /* @__PURE__ */ e(
|
|
516
|
+
return !h || !C ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
|
|
517
517
|
ft,
|
|
518
518
|
{
|
|
519
519
|
className: "mx-trends-microwidget",
|
|
520
520
|
ctaLabel: c.micro_primary_cta_label,
|
|
521
521
|
onCTAClick: k,
|
|
522
|
-
subHeader:
|
|
522
|
+
subHeader: E ? void 0 : c.micro_subheader,
|
|
523
523
|
title: c.title,
|
|
524
|
-
children:
|
|
524
|
+
children: E ? /* @__PURE__ */ e(Pt, {}) : /* @__PURE__ */ f(
|
|
525
525
|
_,
|
|
526
526
|
{
|
|
527
527
|
sx: {
|
|
@@ -533,9 +533,9 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
533
533
|
/* @__PURE__ */ e(
|
|
534
534
|
Se,
|
|
535
535
|
{
|
|
536
|
-
percentage:
|
|
536
|
+
percentage: I,
|
|
537
537
|
secondaryLabel: c.micro_secondary_label,
|
|
538
|
-
shouldDisplayPercentage: g.y !== 0 &&
|
|
538
|
+
shouldDisplayPercentage: g.y !== 0 && r.y !== 0,
|
|
539
539
|
title: c.spending_label,
|
|
540
540
|
totalAmount: g.y,
|
|
541
541
|
transactionType: "spending"
|
|
@@ -557,15 +557,15 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
557
557
|
)
|
|
558
558
|
}
|
|
559
559
|
);
|
|
560
|
-
}), Kt =
|
|
560
|
+
}), Kt = A(
|
|
561
561
|
({ isExpanded: n, onClick: o }) => {
|
|
562
|
-
const t =
|
|
562
|
+
const t = He();
|
|
563
563
|
return /* @__PURE__ */ e(_t, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(bt, { onClick: o, sx: { justifyContent: "center" }, children: /* @__PURE__ */ f(
|
|
564
564
|
_,
|
|
565
565
|
{
|
|
566
566
|
sx: { color: t.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
567
567
|
children: [
|
|
568
|
-
/* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(
|
|
568
|
+
/* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(Z, { bold: !0, variant: "body2", children: n ? "View less" : "View more" }) }),
|
|
569
569
|
/* @__PURE__ */ e(St, { sx: { color: t.palette.primary.main }, children: n ? /* @__PURE__ */ e(gt, {}) : /* @__PURE__ */ e(
|
|
570
570
|
pt,
|
|
571
571
|
{
|
|
@@ -579,19 +579,19 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
579
579
|
}
|
|
580
580
|
) }) });
|
|
581
581
|
}
|
|
582
|
-
), we =
|
|
582
|
+
), we = A(
|
|
583
583
|
({
|
|
584
584
|
totalAmount: n,
|
|
585
585
|
guid: o,
|
|
586
586
|
name: t,
|
|
587
587
|
transactions: s,
|
|
588
|
-
onClick:
|
|
588
|
+
onClick: a,
|
|
589
589
|
isLastItem: h = !1,
|
|
590
590
|
showDivider: d = !0
|
|
591
591
|
}) => {
|
|
592
|
-
const { trends: c } = R(), { onEvent: l } =
|
|
593
|
-
|
|
594
|
-
...
|
|
592
|
+
const { trends: c } = R(), { onEvent: l } = N(), m = `${s.length} ${s.length === 1 ? c.transaction : c.transactions}`, C = () => {
|
|
593
|
+
a?.(), l(y.TRENDS_CLICK_LIST_ITEM, {
|
|
594
|
+
...M,
|
|
595
595
|
listItem: t
|
|
596
596
|
});
|
|
597
597
|
};
|
|
@@ -601,8 +601,8 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
601
601
|
{
|
|
602
602
|
leftIcon: o ? /* @__PURE__ */ e(Te, { categoryGuid: o }) : void 0,
|
|
603
603
|
onClick: C,
|
|
604
|
-
rightContent:
|
|
605
|
-
rightIcon:
|
|
604
|
+
rightContent: X(Math.abs(n), "0,0.00"),
|
|
605
|
+
rightIcon: a ? /* @__PURE__ */ e(Ke, {}) : void 0,
|
|
606
606
|
subtitle: m,
|
|
607
607
|
title: t
|
|
608
608
|
}
|
|
@@ -610,25 +610,25 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
610
610
|
d && /* @__PURE__ */ e(Dt, { sx: { ml: h ? 24 : 68 } })
|
|
611
611
|
] }, o);
|
|
612
612
|
}
|
|
613
|
-
), $t =
|
|
613
|
+
), $t = A(
|
|
614
614
|
({ availableHeight: n = 0, onCategoryClick: o }) => {
|
|
615
|
-
const { collapsedCategories: t, visibleCategories: s, setVisibleListLength:
|
|
615
|
+
const { collapsedCategories: t, visibleCategories: s, setVisibleListLength: a } = J(), { isLargeDesktop: h, isDesktop: d } = $(), { trends: c } = R(), { onEvent: l } = N(), [m, C] = i.useState(!1), u = d || h;
|
|
616
616
|
i.useEffect(() => {
|
|
617
617
|
const g = Math.floor(n / 64) - 1, T = s.length + t.length;
|
|
618
|
-
g !== s.length && (
|
|
618
|
+
g !== s.length && (a(u ? Math.max(g, 5) : 5), C(g >= T));
|
|
619
619
|
}, [n]);
|
|
620
620
|
const b = () => {
|
|
621
621
|
C(!m), l(y.TRENDS_CLICK_VIEW_MORE, {
|
|
622
|
-
...
|
|
622
|
+
...M
|
|
623
623
|
});
|
|
624
|
-
},
|
|
624
|
+
}, r = s.length + (m ? t.length : 0);
|
|
625
625
|
return /* @__PURE__ */ e(_, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ f(yt, { children: [
|
|
626
626
|
/* @__PURE__ */ e(_, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(De, { children: c.categories }) }),
|
|
627
627
|
s.map((g, T) => /* @__PURE__ */ e(
|
|
628
628
|
we,
|
|
629
629
|
{
|
|
630
630
|
...g,
|
|
631
|
-
isLastItem: T ===
|
|
631
|
+
isLastItem: T === r - 1,
|
|
632
632
|
onClick: g.transactions.length > 0 ? () => o(g) : void 0,
|
|
633
633
|
showDivider: !0
|
|
634
634
|
},
|
|
@@ -645,7 +645,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
645
645
|
we,
|
|
646
646
|
{
|
|
647
647
|
...g,
|
|
648
|
-
isLastItem: p ===
|
|
648
|
+
isLastItem: p === r - 1,
|
|
649
649
|
onClick: g.transactions.length > 0 ? () => o(g) : void 0,
|
|
650
650
|
showDivider: !0
|
|
651
651
|
},
|
|
@@ -692,13 +692,13 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
692
692
|
"WeeklyNoSpendDays",
|
|
693
693
|
"WeeklySmallPurchasesSummary"
|
|
694
694
|
], Yt = ({ onInsightCardClick: n }) => {
|
|
695
|
-
const o = It(), { onEvent: t } =
|
|
695
|
+
const o = It(), { onEvent: t } = N(), { isMobile: s, isDesktop: a, isLargeDesktop: h } = $(), { beatStore: d, endpoint: c, sessionToken: l } = ve(), { isInitialized: m } = K(), [C, u] = i.useState(!1), b = o.palette.mode === "dark", r = a || h, g = r || s ? 1 : 2;
|
|
696
696
|
i.useEffect(() => {
|
|
697
697
|
m && d.loadBeats().finally(() => u(!0));
|
|
698
698
|
}, [m]);
|
|
699
|
-
const T = i.useMemo(() => C ? d.getFilteredBeats({ templates: jt }) : [], [C]), p = () => null,
|
|
700
|
-
n?.(D), t(y.TRENDS_CLICK_INSIGHT,
|
|
701
|
-
}, w =
|
|
699
|
+
const T = i.useMemo(() => C ? d.getFilteredBeats({ templates: jt }) : [], [C]), p = () => null, I = (D) => {
|
|
700
|
+
n?.(D), t(y.TRENDS_CLICK_INSIGHT, M);
|
|
701
|
+
}, w = r ? 200 : 170, E = r ? 170 : 124, k = T.length > 0 ? w : E;
|
|
702
702
|
return /* @__PURE__ */ e(Et, { sx: { height: k }, children: /* @__PURE__ */ e(
|
|
703
703
|
ct,
|
|
704
704
|
{
|
|
@@ -706,11 +706,11 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
706
706
|
beats: T,
|
|
707
707
|
endpoint: c,
|
|
708
708
|
logOutUser: p,
|
|
709
|
-
onCardClick:
|
|
709
|
+
onCardClick: I,
|
|
710
710
|
showBorder: !0,
|
|
711
711
|
showCTAColocatedWithText: !1,
|
|
712
712
|
showCarouselControls: !0,
|
|
713
|
-
showHeader:
|
|
713
|
+
showHeader: r,
|
|
714
714
|
showIcon: !0,
|
|
715
715
|
showWithMargin: !1,
|
|
716
716
|
token: l,
|
|
@@ -720,17 +720,17 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
720
720
|
visibleCardsCount: g
|
|
721
721
|
}
|
|
722
722
|
) });
|
|
723
|
-
}, Ut =
|
|
724
|
-
const { onEvent: t } =
|
|
725
|
-
categoryDetailsChartData: { monthlyAmounts: s, tooltipLabels:
|
|
726
|
-
} =
|
|
723
|
+
}, Ut = A(Yt), Xt = A(({ chartLabel: n, chartColor: o }) => {
|
|
724
|
+
const { onEvent: t } = N(), {
|
|
725
|
+
categoryDetailsChartData: { monthlyAmounts: s, tooltipLabels: a }
|
|
726
|
+
} = J();
|
|
727
727
|
return /* @__PURE__ */ e(_, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ e(
|
|
728
728
|
ye,
|
|
729
729
|
{
|
|
730
730
|
baseline: "min",
|
|
731
731
|
colors: [o],
|
|
732
732
|
curveType: "bump",
|
|
733
|
-
customTooltipLabels:
|
|
733
|
+
customTooltipLabels: a,
|
|
734
734
|
datasets: [s],
|
|
735
735
|
height: 265,
|
|
736
736
|
labels: [n],
|
|
@@ -738,7 +738,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
738
738
|
stroke: o
|
|
739
739
|
}),
|
|
740
740
|
onItemClick: () => {
|
|
741
|
-
t(y.TRENDS_CLICK_CHART,
|
|
741
|
+
t(y.TRENDS_CLICK_CHART, M);
|
|
742
742
|
},
|
|
743
743
|
showArea: !0,
|
|
744
744
|
showAverage: !0,
|
|
@@ -753,20 +753,20 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
753
753
|
valueFormatterString: "0,0"
|
|
754
754
|
}
|
|
755
755
|
) });
|
|
756
|
-
}), Zt =
|
|
757
|
-
const o =
|
|
756
|
+
}), Zt = A(({ onClose: n }) => {
|
|
757
|
+
const o = He(), { onEvent: t } = N(), { common: s, trends: a } = R(), { selectedCategoryData: h, selectedDateRangeMonthRange: d } = J(), { sortedTransactions: c } = ae(), [l, m] = i.useState(null);
|
|
758
758
|
if (!h)
|
|
759
759
|
return null;
|
|
760
|
-
const { guid: C, name: u, is_income: b, totalAmount:
|
|
760
|
+
const { guid: C, name: u, is_income: b, totalAmount: r } = h, g = b ? a.category_income : a.category_spending, T = xt(C, o), p = b ? a.income_label : a.spending_label, I = ` ${h.transactions.length === 1 ? a.transaction : a.transactions} (${h.transactions.length})`, w = i.useMemo(
|
|
761
761
|
() => c.find((D) => D.guid === l),
|
|
762
762
|
[l, c]
|
|
763
|
-
),
|
|
764
|
-
n?.(), t(y.TRENDS_CLICK_BACK,
|
|
763
|
+
), E = (D) => D.category_guid === C || D.top_level_category_guid === C, k = () => {
|
|
764
|
+
n?.(), t(y.TRENDS_CLICK_BACK, M);
|
|
765
765
|
};
|
|
766
766
|
return /* @__PURE__ */ f(
|
|
767
767
|
fe,
|
|
768
768
|
{
|
|
769
|
-
ariaLabelClose:
|
|
769
|
+
ariaLabelClose: a.close_category_details,
|
|
770
770
|
isOpen: !0,
|
|
771
771
|
onClose: k,
|
|
772
772
|
shouldShowHeaderShadow: !0,
|
|
@@ -778,22 +778,22 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
778
778
|
Ee,
|
|
779
779
|
{
|
|
780
780
|
leftIcon: /* @__PURE__ */ e(Te, { categoryGuid: C }),
|
|
781
|
-
rightContent:
|
|
781
|
+
rightContent: X(Math.abs(r), "0,0.00"),
|
|
782
782
|
subtitle: d,
|
|
783
783
|
title: u
|
|
784
784
|
}
|
|
785
785
|
),
|
|
786
786
|
/* @__PURE__ */ e(Xt, { chartColor: T, chartLabel: p }),
|
|
787
787
|
/* @__PURE__ */ f(_, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 24 }, children: [
|
|
788
|
-
/* @__PURE__ */ e(
|
|
789
|
-
/* @__PURE__ */ e(vt, { filter:
|
|
788
|
+
/* @__PURE__ */ e(Z, { bold: !0, variant: "body1", children: I }),
|
|
789
|
+
/* @__PURE__ */ e(vt, { filter: E })
|
|
790
790
|
] })
|
|
791
791
|
] }),
|
|
792
792
|
/* @__PURE__ */ e(
|
|
793
793
|
ke,
|
|
794
794
|
{
|
|
795
795
|
bgcolor: "transparent",
|
|
796
|
-
filter:
|
|
796
|
+
filter: E,
|
|
797
797
|
height: "calc(100vh - 475px)",
|
|
798
798
|
onClick: m
|
|
799
799
|
}
|
|
@@ -805,7 +805,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
805
805
|
ariaLabelClose: s.close_aria,
|
|
806
806
|
isOpen: !!w,
|
|
807
807
|
onClose: () => m(""),
|
|
808
|
-
title:
|
|
808
|
+
title: a.transaction,
|
|
809
809
|
children: w && /* @__PURE__ */ e(Re, { transaction: w })
|
|
810
810
|
}
|
|
811
811
|
)
|
|
@@ -814,11 +814,11 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
814
814
|
);
|
|
815
815
|
}), Qt = (n, o) => {
|
|
816
816
|
const t = xe(n, o), s = Le(n, o);
|
|
817
|
-
return [t, s].filter((
|
|
817
|
+
return [t, s].filter((a) => a.length > 0);
|
|
818
818
|
}, qt = (n, o) => {
|
|
819
|
-
const [t, s] = n,
|
|
820
|
-
if (
|
|
821
|
-
const c =
|
|
819
|
+
const [t, s] = n, a = t, h = s ?? t, d = [];
|
|
820
|
+
if (a) {
|
|
821
|
+
const c = a.reduce((l, m) => l + m.y, 0);
|
|
822
822
|
d.push({ label: o.income_label, amount: c });
|
|
823
823
|
}
|
|
824
824
|
if (h) {
|
|
@@ -832,7 +832,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
832
832
|
selectedDateRange: t,
|
|
833
833
|
totals: s
|
|
834
834
|
}) => {
|
|
835
|
-
const
|
|
835
|
+
const a = Ne(), { onEvent: h } = N(), { trends: d } = R(), { isSmallMobile: c, isMobile: l, isSmallTablet: m, isTablet: C } = $(), u = [a.palette.chart?.chart1, a.palette.chart?.chart2], b = Qt(s, t), r = qt(b, d), [g, T] = i.useState(0), p = 458, I = 195, w = 56, E = l || c ? I : m || C ? p : g;
|
|
836
836
|
return i.useEffect(() => {
|
|
837
837
|
const D = Math.max(n - w, o);
|
|
838
838
|
T(D);
|
|
@@ -843,10 +843,10 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
843
843
|
colors: u,
|
|
844
844
|
curveType: "bump",
|
|
845
845
|
datasets: b,
|
|
846
|
-
height:
|
|
847
|
-
labels:
|
|
846
|
+
height: E,
|
|
847
|
+
labels: r,
|
|
848
848
|
onItemClick: () => {
|
|
849
|
-
h(y.TRENDS_CLICK_CHART,
|
|
849
|
+
h(y.TRENDS_CLICK_CHART, M);
|
|
850
850
|
},
|
|
851
851
|
showArea: !0,
|
|
852
852
|
showAxisHighlight: !0,
|
|
@@ -859,166 +859,166 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
859
859
|
valueFormatterString: "0,0"
|
|
860
860
|
}
|
|
861
861
|
);
|
|
862
|
-
}, en =
|
|
863
|
-
const { onEvent: s } =
|
|
862
|
+
}, en = A(Jt), tn = ({ onBackClick: n, onInsightCardClick: o, sx: t }) => {
|
|
863
|
+
const { onEvent: s } = N(), { config: a } = st(), { isLargeDesktop: h, isDesktop: d, isMobile: c } = $(), { visibleAccounts: l } = ie(), { loadDateRangeCategoryTotals: m, loadMonthlyCategoryTotals: C, monthlyCategoryTotals: u } = P(), { setFilter: b } = ae(), { selectedDateRange: r, setSelectedCategoryData: g, setSelectedDateRange: T } = J(), {
|
|
864
864
|
isCopyLoaded: p,
|
|
865
|
-
isInitialized:
|
|
865
|
+
isInitialized: I,
|
|
866
866
|
selectedAccounts: w,
|
|
867
|
-
selectedAccountGuids:
|
|
867
|
+
selectedAccountGuids: E,
|
|
868
868
|
setSelectedAccounts: k
|
|
869
|
-
} = K(), { trends: D } = R(),
|
|
869
|
+
} = K(), { trends: D } = R(), H = Ue(), L = d || h, [x, z] = i.useState(!1), [ce, le] = i.useState(!1), [j, de] = i.useState("Chart"), [F, ee] = i.useState(""), [he, te] = i.useState(!1), [ne, ue] = i.useState(window.innerHeight), oe = ne - 208, me = ne - (H ? 494 : 266);
|
|
870
870
|
i.useEffect(() => {
|
|
871
|
-
const v = () =>
|
|
871
|
+
const v = () => ue(window.innerHeight);
|
|
872
872
|
return window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
|
|
873
873
|
}, []), i.useEffect(() => {
|
|
874
|
-
|
|
874
|
+
k(l);
|
|
875
875
|
}, [l]), i.useEffect(() => {
|
|
876
|
-
|
|
876
|
+
I && l?.length ? m(w, r.start, r.end).then(() => {
|
|
877
877
|
C(
|
|
878
878
|
w,
|
|
879
|
-
|
|
880
|
-
|
|
879
|
+
r.start,
|
|
880
|
+
r.end
|
|
881
881
|
);
|
|
882
882
|
}).finally(() => {
|
|
883
883
|
z(!0), s(y.TRENDS_LOAD_WIDGET, {
|
|
884
|
-
...
|
|
885
|
-
time_period: `${
|
|
884
|
+
...M,
|
|
885
|
+
time_period: `${se(r.end, r.start)}M`
|
|
886
886
|
});
|
|
887
|
-
})
|
|
888
|
-
|
|
887
|
+
}) : I && !l?.length && (le(!0), z(!0), s(y.TRENDS_LOAD_WIDGET, {
|
|
888
|
+
...M,
|
|
889
|
+
time_period: `${se(r.end, r.start)}M`
|
|
890
|
+
}));
|
|
891
|
+
}, [I, w, r]), i.useEffect(() => {
|
|
889
892
|
if (u.length !== 0) {
|
|
890
893
|
const v = {
|
|
891
|
-
accounts:
|
|
892
|
-
dateRange: { start:
|
|
894
|
+
accounts: E,
|
|
895
|
+
dateRange: { start: r.start, end: r.end }
|
|
893
896
|
};
|
|
894
897
|
b({
|
|
895
898
|
...v,
|
|
896
899
|
custom: (V) => !!u.find(
|
|
897
|
-
(
|
|
900
|
+
(Y) => Y.top_level_category_guid === V.top_level_category_guid || Y.category_guid === V.category_guid
|
|
898
901
|
)
|
|
899
902
|
});
|
|
900
903
|
}
|
|
901
904
|
}, [u]);
|
|
902
|
-
const
|
|
903
|
-
g(v),
|
|
905
|
+
const ge = (v) => {
|
|
906
|
+
g(v), te(!0);
|
|
904
907
|
}, S = () => {
|
|
905
|
-
g(null),
|
|
908
|
+
g(null), te(!1);
|
|
906
909
|
}, W = (v, V) => {
|
|
907
|
-
|
|
908
|
-
...
|
|
910
|
+
de(V ?? j), s(y.TRENDS_CLICK_TOGGLE_VIEW, {
|
|
911
|
+
...M,
|
|
909
912
|
toggleView: V
|
|
910
913
|
});
|
|
911
914
|
}, G = (v) => {
|
|
912
|
-
const V = Ie(v?.[0], 1),
|
|
913
|
-
T({ start: V, end:
|
|
914
|
-
...
|
|
915
|
+
const V = Ie(v?.[0], 1), Y = v?.[1], Fe = se(Y, V);
|
|
916
|
+
T({ start: V, end: Y }), s(y.TRENDS_CLICK_TIME_WINDOW, {
|
|
917
|
+
...M,
|
|
915
918
|
time_period: Fe + "M"
|
|
916
919
|
});
|
|
917
|
-
},
|
|
920
|
+
}, pe = (v) => {
|
|
918
921
|
s(y.TRENDS_CLICK_FILTER, {
|
|
919
|
-
...
|
|
922
|
+
...M,
|
|
920
923
|
filterValue: v
|
|
921
924
|
});
|
|
922
925
|
}, Ge = (v) => {
|
|
923
926
|
ee(v);
|
|
924
927
|
}, Be = () => {
|
|
925
|
-
ee(""), s(y.TRENDS_CLICK_ALL_CATEGORIES,
|
|
926
|
-
}, ze =
|
|
927
|
-
return /* @__PURE__ */
|
|
928
|
+
ee(""), s(y.TRENDS_CLICK_ALL_CATEGORIES, M);
|
|
929
|
+
}, ze = a.show_connections_widget_in_master ? "buttons" : "no-buttons";
|
|
930
|
+
return !p || !x ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
|
|
928
931
|
Ae,
|
|
929
932
|
{
|
|
930
933
|
accountOptions: l,
|
|
931
934
|
calendarActions: { onRangeChanged: G },
|
|
932
|
-
dateRange:
|
|
935
|
+
dateRange: r,
|
|
933
936
|
dateRangeVariant: c ? "timeframetabs" : "timeframebuttons",
|
|
934
|
-
onAccountsFilterClick:
|
|
937
|
+
onAccountsFilterClick: pe,
|
|
935
938
|
onBackClick: n,
|
|
936
939
|
sx: t,
|
|
937
940
|
title: D.title,
|
|
938
|
-
children:
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
/* @__PURE__ */ e(
|
|
967
|
-
Oe,
|
|
968
|
-
{
|
|
969
|
-
selectedCategoryGuid: J,
|
|
970
|
-
selectedDateRange: a
|
|
971
|
-
}
|
|
972
|
-
),
|
|
973
|
-
/* @__PURE__ */ e(We, { onTabChange: W, selectedTab: F })
|
|
974
|
-
]
|
|
975
|
-
}
|
|
976
|
-
),
|
|
977
|
-
/* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: J && /* @__PURE__ */ f(pe, { onClick: Be, sx: { p: 0, pr: 5 }, children: [
|
|
978
|
-
/* @__PURE__ */ e(ae, { name: "arrow_back" }),
|
|
979
|
-
D.all_categories
|
|
980
|
-
] }) }) }),
|
|
981
|
-
/* @__PURE__ */ f(_, { flexDirection: L ? "row" : "column", gap: L ? 48 : 16, children: [
|
|
982
|
-
F === "Chart" && /* @__PURE__ */ f(Pe, { children: [
|
|
983
|
-
/* @__PURE__ */ e(O, { sx: { width: L ? "68%" : "100%" }, children: /* @__PURE__ */ e(
|
|
984
|
-
en,
|
|
941
|
+
children: ce ? /* @__PURE__ */ e(
|
|
942
|
+
Mt,
|
|
943
|
+
{
|
|
944
|
+
header: D.zero_state_content_header,
|
|
945
|
+
icon: "",
|
|
946
|
+
onClick: () => {
|
|
947
|
+
},
|
|
948
|
+
primaryButton: D.empty_state_primary,
|
|
949
|
+
subText: D.empty_state_sub_text,
|
|
950
|
+
sx: { height: oe },
|
|
951
|
+
variant: ze
|
|
952
|
+
}
|
|
953
|
+
) : /* @__PURE__ */ f(
|
|
954
|
+
_,
|
|
955
|
+
{
|
|
956
|
+
sx: {
|
|
957
|
+
px: c ? 0 : 48
|
|
958
|
+
},
|
|
959
|
+
children: [
|
|
960
|
+
/* @__PURE__ */ f(
|
|
961
|
+
_,
|
|
962
|
+
{
|
|
963
|
+
flexDirection: "row",
|
|
964
|
+
justifyContent: "space-between",
|
|
965
|
+
sx: { pb: c ? 12 : 24, pt: c ? 24 : 48 },
|
|
966
|
+
children: [
|
|
967
|
+
/* @__PURE__ */ e(
|
|
968
|
+
Oe,
|
|
985
969
|
{
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
selectedDateRange: a,
|
|
989
|
-
totals: u
|
|
970
|
+
selectedCategoryGuid: F,
|
|
971
|
+
selectedDateRange: r
|
|
990
972
|
}
|
|
991
|
-
)
|
|
992
|
-
/* @__PURE__ */
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
Ve,
|
|
973
|
+
),
|
|
974
|
+
/* @__PURE__ */ e(We, { onTabChange: W, selectedTab: j })
|
|
975
|
+
]
|
|
976
|
+
}
|
|
977
|
+
),
|
|
978
|
+
/* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: F && /* @__PURE__ */ f(Ce, { onClick: Be, sx: { p: 0, pr: 5 }, children: [
|
|
979
|
+
/* @__PURE__ */ e(re, { name: "arrow_back" }),
|
|
980
|
+
D.all_categories
|
|
981
|
+
] }) }) }),
|
|
982
|
+
/* @__PURE__ */ f(_, { flexDirection: L ? "row" : "column", gap: L ? 48 : 16, children: [
|
|
983
|
+
j === "Chart" && /* @__PURE__ */ f(Pe, { children: [
|
|
984
|
+
/* @__PURE__ */ e(O, { sx: { width: L ? "68%" : "100%" }, children: /* @__PURE__ */ e(
|
|
985
|
+
en,
|
|
1005
986
|
{
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
selectedDateRange: a
|
|
987
|
+
availableHeight: oe,
|
|
988
|
+
minHeight: 450,
|
|
989
|
+
selectedDateRange: r,
|
|
990
|
+
totals: u
|
|
1011
991
|
}
|
|
1012
|
-
) })
|
|
992
|
+
) }),
|
|
993
|
+
/* @__PURE__ */ f(_, { gap: 16, sx: { width: L ? "32%" : "100%" }, children: [
|
|
994
|
+
H && /* @__PURE__ */ e(Ut, { onInsightCardClick: o }),
|
|
995
|
+
/* @__PURE__ */ e(
|
|
996
|
+
$t,
|
|
997
|
+
{
|
|
998
|
+
availableHeight: me,
|
|
999
|
+
onCategoryClick: ge
|
|
1000
|
+
}
|
|
1001
|
+
)
|
|
1002
|
+
] })
|
|
1013
1003
|
] }),
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1004
|
+
j === "Table" && /* @__PURE__ */ e(O, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
1005
|
+
Ve,
|
|
1006
|
+
{
|
|
1007
|
+
height: "unset",
|
|
1008
|
+
monthlyCategoryTotals: u,
|
|
1009
|
+
onClickRow: Ge,
|
|
1010
|
+
selectedCategory: F,
|
|
1011
|
+
selectedDateRange: r
|
|
1012
|
+
}
|
|
1013
|
+
) })
|
|
1014
|
+
] }),
|
|
1015
|
+
he && /* @__PURE__ */ e(Zt, { onClose: S })
|
|
1016
|
+
]
|
|
1017
|
+
}
|
|
1018
|
+
)
|
|
1019
1019
|
}
|
|
1020
1020
|
);
|
|
1021
|
-
}, qn =
|
|
1021
|
+
}, qn = A(tn);
|
|
1022
1022
|
export {
|
|
1023
1023
|
Xn as TrendsFullWidget,
|
|
1024
1024
|
Qn as TrendsMicroWidget,
|