@mx-cartographer/experiences 7.0.22-alpha.san2 → 7.0.22-alpha.san3
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/dist/trends/index.es.js +113 -113
- package/package.json +1 -1
package/dist/trends/index.es.js
CHANGED
|
@@ -3,16 +3,16 @@ import i from "react";
|
|
|
3
3
|
import { observer as M } from "mobx-react-lite";
|
|
4
4
|
import { Icon as se, Text as X, CategoryIcon as ye, P as Y, H3 as Ie, ChevronRightIcon as Pe } from "@mxenabled/mxui";
|
|
5
5
|
import O from "@mui/material/Box";
|
|
6
|
-
import
|
|
6
|
+
import b from "@mui/material/Stack";
|
|
7
7
|
import Ce from "@mui/material/Button";
|
|
8
8
|
import { addSeconds as Ee } from "date-fns/addSeconds";
|
|
9
9
|
import { differenceInCalendarMonths as fe } from "date-fns/differenceInCalendarMonths";
|
|
10
10
|
import { a as Ke, g as $e, S as je, L as Le, u as Ye } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
11
11
|
import { T as eo } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
12
|
-
import { i as Ue, c as Xe, d as Ze, e as
|
|
12
|
+
import { i as Ue, c as Xe, d as Ze, e as Je, f as Qe, h as qe, b as xe, g as ve, j as be } from "../SpendingData-D5vsfYKo.mjs";
|
|
13
13
|
import et from "@mui/material/ToggleButton";
|
|
14
14
|
import tt from "@mui/material/ToggleButtonGroup";
|
|
15
|
-
import { u as k, k as F, e as
|
|
15
|
+
import { u as k, k as F, e as N, a as P, f as re, c as ae, v as Q, l as Me, p as nt, m as ot } from "../hooks-DkUqN6JE.mjs";
|
|
16
16
|
import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { f as Z, D as B } from "../Dialog-CWW597AF.mjs";
|
|
18
18
|
import { DataGridPro as st } from "@mui/x-data-grid-pro";
|
|
@@ -21,11 +21,11 @@ import { c as Ae } from "../Category-CevNQ03n.mjs";
|
|
|
21
21
|
import { b as at } from "../Localization-2MODESHW.mjs";
|
|
22
22
|
import { H as Se } from "../HeaderCell-DjuifqHJ.mjs";
|
|
23
23
|
import { T as R, b as it } from "../ViewMoreMicroCard-DFAY0tA8.mjs";
|
|
24
|
-
import { A as
|
|
25
|
-
import { a as ke, T as
|
|
24
|
+
import { A as _, W as Re } from "../WidgetContainer-CdBs9WOZ.mjs";
|
|
25
|
+
import { a as ke, T as Ne } from "../TransactionDetails-C-z3HGTT.mjs";
|
|
26
26
|
import { D as Te } from "../Drawer-kEE73B87.mjs";
|
|
27
|
-
import { L as
|
|
28
|
-
import { useTheme as
|
|
27
|
+
import { L as J } from "../Loader-DUaFpDGv.mjs";
|
|
28
|
+
import { useTheme as He } from "@mui/material/styles";
|
|
29
29
|
import { L as _e } from "../LineChart-BWWmmJxV.mjs";
|
|
30
30
|
import { M as ct } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
31
31
|
import { subMonths as lt } from "date-fns";
|
|
@@ -84,10 +84,10 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
84
84
|
] });
|
|
85
85
|
}, Mt = (n) => {
|
|
86
86
|
const o = n.row[n.field];
|
|
87
|
-
return /* @__PURE__ */ e(
|
|
87
|
+
return /* @__PURE__ */ e(b, { alignItems: "flex-end", tabIndex: n.tabIndex, children: /* @__PURE__ */ e(rt, { amount: o, variant: "Small" }) });
|
|
88
88
|
}, At = ({ categoryGuid: n, topLevelCategoryGuid: o }) => {
|
|
89
89
|
const { categories: t } = k(), s = t.default_categories[n]?.replace(/&/g, "&") ?? Ae[n];
|
|
90
|
-
return /* @__PURE__ */ C(
|
|
90
|
+
return /* @__PURE__ */ C(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
92
|
O,
|
|
93
93
|
{
|
|
@@ -98,7 +98,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
98
98
|
),
|
|
99
99
|
/* @__PURE__ */ e(X, { sx: { ml: 12, pb: 6 }, variant: "Small", children: s })
|
|
100
100
|
] });
|
|
101
|
-
}, Rt = (n) => /* @__PURE__ */ e(
|
|
101
|
+
}, Rt = (n) => /* @__PURE__ */ e(b, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
102
102
|
At,
|
|
103
103
|
{
|
|
104
104
|
categoryGuid: n.row.category,
|
|
@@ -119,7 +119,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
119
119
|
height: a = "100dvh",
|
|
120
120
|
sx: h = {}
|
|
121
121
|
}) => {
|
|
122
|
-
const { onEvent: l } =
|
|
122
|
+
const { onEvent: l } = N(), c = Z(/* @__PURE__ */ new Date(), B.MONTH_SHORT), [d, m] = i.useState([
|
|
123
123
|
{ field: c, sort: "desc" }
|
|
124
124
|
]), f = i.useMemo(() => kt(o.start, o.end), [o]), u = [
|
|
125
125
|
{
|
|
@@ -148,21 +148,21 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
148
148
|
sortComparator: Ke
|
|
149
149
|
})
|
|
150
150
|
)
|
|
151
|
-
],
|
|
151
|
+
], y = i.useMemo(() => {
|
|
152
152
|
const r = n.filter(
|
|
153
153
|
(p) => !Ue(p) && !Xe(p)
|
|
154
154
|
), T = (t ? r.filter(
|
|
155
155
|
(p) => p.category_guid === t || p.top_level_category_guid === t
|
|
156
156
|
) : r).reduce(
|
|
157
157
|
(p, E) => {
|
|
158
|
-
const { category_guid: w, top_level_category_guid: I, month: A, total: D, year:
|
|
158
|
+
const { category_guid: w, top_level_category_guid: I, month: A, total: D, year: H } = E, x = t ? w : I;
|
|
159
159
|
p[x] || (p[x] = {
|
|
160
160
|
id: x,
|
|
161
161
|
category: x,
|
|
162
162
|
category_guid: w,
|
|
163
163
|
top_level_category_guid: I
|
|
164
164
|
});
|
|
165
|
-
const L = Z(new Date(
|
|
165
|
+
const L = Z(new Date(H, A - 1), B.MONTH_SHORT);
|
|
166
166
|
return p[x][L] || (p[x][L] = 0), p[x][L] = p[x][L] + Math.abs(D), p;
|
|
167
167
|
},
|
|
168
168
|
{}
|
|
@@ -178,29 +178,29 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
178
178
|
hideFooter: !0,
|
|
179
179
|
initialState: { sorting: { sortModel: d } },
|
|
180
180
|
onRowClick: (r) => {
|
|
181
|
-
s?.(r.row.category), l(
|
|
181
|
+
s?.(r.row.category), l(_.TRENDS_CLICK_LIST_ITEM, {
|
|
182
182
|
...R,
|
|
183
183
|
listItem: Ae[r.row.category]
|
|
184
184
|
});
|
|
185
185
|
},
|
|
186
186
|
onSortModelChange: (r) => {
|
|
187
|
-
m(r), l(
|
|
187
|
+
m(r), l(_.TRENDS_CLICK_TABLE_SORT, R);
|
|
188
188
|
},
|
|
189
|
-
rows:
|
|
189
|
+
rows: y,
|
|
190
190
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
191
191
|
sortModel: d,
|
|
192
192
|
sortingOrder: ["asc", "desc"]
|
|
193
193
|
}
|
|
194
194
|
) });
|
|
195
|
-
},
|
|
195
|
+
}, Nt = {
|
|
196
196
|
title: "Transaction List"
|
|
197
|
-
},
|
|
197
|
+
}, Ht = ({
|
|
198
198
|
categoryGuid: n,
|
|
199
199
|
dateRange: o,
|
|
200
200
|
isOpen: t,
|
|
201
201
|
onClose: s
|
|
202
202
|
}) => {
|
|
203
|
-
const { onEvent: a } =
|
|
203
|
+
const { onEvent: a } = N(), { selectedAccountGuids: h } = P(), { common: l } = k(), { setFilter: c, sortedTransactions: d } = re(), [m, f] = i.useState(""), u = i.useMemo(
|
|
204
204
|
() => d.find((r) => r.guid === m),
|
|
205
205
|
[m, d]
|
|
206
206
|
);
|
|
@@ -211,8 +211,8 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
211
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(() => a(
|
|
215
|
-
const
|
|
214
|
+
}, [h, n, o]), i.useEffect(() => a(_.TRENDS_VIEW_TRANSACTIONS), []);
|
|
215
|
+
const y = () => {
|
|
216
216
|
f(""), s();
|
|
217
217
|
};
|
|
218
218
|
return /* @__PURE__ */ C(
|
|
@@ -220,16 +220,16 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
220
220
|
{
|
|
221
221
|
ariaLabelClose: l.close_aria,
|
|
222
222
|
isOpen: t,
|
|
223
|
-
onClose:
|
|
224
|
-
title:
|
|
223
|
+
onClose: y,
|
|
224
|
+
title: Nt.title,
|
|
225
225
|
children: [
|
|
226
226
|
u && /* @__PURE__ */ e(ke, { transaction: u }),
|
|
227
|
-
!u && /* @__PURE__ */ e(
|
|
227
|
+
!u && /* @__PURE__ */ e(Ne, { onClick: f })
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
|
-
}, Wt = M(
|
|
232
|
-
const { onEvent: t } =
|
|
231
|
+
}, Wt = M(Ht), Ot = ({ onBackClick: n, sx: o }) => {
|
|
232
|
+
const { onEvent: t } = N(), { isDesktop: s, isTablet: a, isMobile: h } = K(), { visibleAccounts: l } = ae(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: m } = F(), { sortedTransactions: f } = re(), { selectedDateRange: u, setSelectedDateRange: y } = Q(), { isCopyLoaded: r, isInitialized: g, selectedAccounts: T, setSelectedAccounts: p } = P(), { trends: E } = k(), [w, I] = i.useState(!1), [A, D] = i.useState(!1), [H, x] = i.useState("Chart"), [L, $] = i.useState(""), [z, ie] = i.useState(window.innerHeight), ee = z - (h ? 315 : 345);
|
|
233
233
|
i.useEffect(() => {
|
|
234
234
|
const S = () => ie(window.innerHeight);
|
|
235
235
|
return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
@@ -254,30 +254,30 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
254
254
|
(G) => G.top_level_category_guid === L || G.category_guid === L
|
|
255
255
|
) : Ze(S);
|
|
256
256
|
return {
|
|
257
|
-
stackedDatasets: W.filter(
|
|
258
|
-
unstackedDatasets: W.filter(
|
|
257
|
+
stackedDatasets: W.filter(Je),
|
|
258
|
+
unstackedDatasets: W.filter(Qe)
|
|
259
259
|
};
|
|
260
260
|
}, [d, L, u]), ne = (S, W) => {
|
|
261
|
-
x(W ??
|
|
261
|
+
x(W ?? H), t(_.TRENDS_CLICK_TOGGLE_VIEW);
|
|
262
262
|
}, oe = (S) => {
|
|
263
263
|
const W = Ee(S?.[0], 1), G = S?.[1], ge = fe(G, W);
|
|
264
|
-
|
|
264
|
+
y({ start: W, end: G }), t(_.TRENDS_CLICK_TIME_WINDOW, {
|
|
265
265
|
time_period: ge + "M"
|
|
266
266
|
});
|
|
267
267
|
}, ce = () => {
|
|
268
|
-
t(
|
|
268
|
+
t(_.TRENDS_CLICK_FILTER);
|
|
269
269
|
}, le = (S) => {
|
|
270
270
|
$(S);
|
|
271
271
|
}, de = (S) => {
|
|
272
|
-
$(S), t(
|
|
272
|
+
$(S), t(_.TRENDS_CLICK_LEGEND, { category: m(S) });
|
|
273
273
|
}, he = (S) => {
|
|
274
|
-
t(
|
|
274
|
+
t(_.TRENDS_HOVER_LEGEND, { category: m(S) });
|
|
275
275
|
}, ue = (S) => {
|
|
276
|
-
t(
|
|
276
|
+
t(_.TRENDS_HOVER_AREA, { category: S });
|
|
277
277
|
}, me = (S) => {
|
|
278
|
-
t(
|
|
278
|
+
t(_.TRENDS_HOVER_POINT, { category: S });
|
|
279
279
|
};
|
|
280
|
-
return !r || !g || !w ? /* @__PURE__ */ e(
|
|
280
|
+
return !r || !g || !w ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ C(
|
|
281
281
|
Re,
|
|
282
282
|
{
|
|
283
283
|
accountOptions: l,
|
|
@@ -290,7 +290,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
290
290
|
title: E.title,
|
|
291
291
|
children: [
|
|
292
292
|
/* @__PURE__ */ C(
|
|
293
|
-
|
|
293
|
+
b,
|
|
294
294
|
{
|
|
295
295
|
sx: {
|
|
296
296
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -298,7 +298,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
298
298
|
},
|
|
299
299
|
children: [
|
|
300
300
|
/* @__PURE__ */ C(
|
|
301
|
-
|
|
301
|
+
b,
|
|
302
302
|
{
|
|
303
303
|
flexDirection: "row",
|
|
304
304
|
justifyContent: "space-between",
|
|
@@ -311,11 +311,11 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
311
311
|
selectedDateRange: u
|
|
312
312
|
}
|
|
313
313
|
),
|
|
314
|
-
/* @__PURE__ */ e(Oe, { onTabChange: ne, selectedTab:
|
|
314
|
+
/* @__PURE__ */ e(Oe, { onTabChange: ne, selectedTab: H })
|
|
315
315
|
]
|
|
316
316
|
}
|
|
317
317
|
),
|
|
318
|
-
/* @__PURE__ */ C(
|
|
318
|
+
/* @__PURE__ */ C(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
319
319
|
/* @__PURE__ */ e(O, { flexGrow: 1, children: L && /* @__PURE__ */ C(Ce, { onClick: () => $(""), sx: { p: 0, pr: 5 }, children: [
|
|
320
320
|
/* @__PURE__ */ e(se, { name: "arrow_back" }),
|
|
321
321
|
E.all_categories
|
|
@@ -323,7 +323,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
323
323
|
/* @__PURE__ */ e(Ce, { onClick: () => D(!0), sx: { px: 5 }, children: `${E.view_transactions} (${f.length})` })
|
|
324
324
|
] }),
|
|
325
325
|
/* @__PURE__ */ C(O, { children: [
|
|
326
|
-
|
|
326
|
+
H === "Chart" && /* @__PURE__ */ e(
|
|
327
327
|
je,
|
|
328
328
|
{
|
|
329
329
|
availableHeight: ee,
|
|
@@ -335,7 +335,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
335
335
|
unstackedDatasets: te.unstackedDatasets
|
|
336
336
|
}
|
|
337
337
|
),
|
|
338
|
-
|
|
338
|
+
H === "Table" && /* @__PURE__ */ e(
|
|
339
339
|
Ge,
|
|
340
340
|
{
|
|
341
341
|
monthlyCategoryTotals: d,
|
|
@@ -361,7 +361,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}, Un = M(Ot), Vt = () => {
|
|
364
|
-
const n =
|
|
364
|
+
const n = He(), { monthlyCategoryTotals: o } = F(), { trends: t } = k(), s = qe(o);
|
|
365
365
|
return /* @__PURE__ */ e(
|
|
366
366
|
_e,
|
|
367
367
|
{
|
|
@@ -384,7 +384,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
384
384
|
m(t);
|
|
385
385
|
}, [t]), i.useEffect(() => {
|
|
386
386
|
h && s(d).finally();
|
|
387
|
-
}, [h, d]), !c || !h ? /* @__PURE__ */ e(
|
|
387
|
+
}, [h, d]), !c || !h ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ e(
|
|
388
388
|
ct,
|
|
389
389
|
{
|
|
390
390
|
onPrimaryCtaClick: n,
|
|
@@ -392,7 +392,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
392
392
|
subTitle: l.sub_title,
|
|
393
393
|
sx: o,
|
|
394
394
|
title: l.mini_title,
|
|
395
|
-
children: a ? /* @__PURE__ */ e(Gt, {}) : /* @__PURE__ */ e(
|
|
395
|
+
children: a ? /* @__PURE__ */ e(Gt, {}) : /* @__PURE__ */ e(J, {})
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
398
|
}, Xn = M(Bt), zt = 70, we = ({
|
|
@@ -406,9 +406,9 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
406
406
|
const { availableWidth: l } = nt(), c = i.useRef(null), d = i.useRef(null), m = pt(Number(Math.abs(s)), {
|
|
407
407
|
style: "percent",
|
|
408
408
|
minimumIntegerDigits: 1
|
|
409
|
-
}), f = l === 288 && U(o, "0,0.00").length > 10 ? U(o, "0,0") : U(o, "0,0.00"), u = t === "spending" ? s > 0 : s >= 0,
|
|
409
|
+
}), f = l === 288 && U(o, "0,0.00").length > 10 ? U(o, "0,0") : U(o, "0,0.00"), u = t === "spending" ? s > 0 : s >= 0, y = t === "spending" ? "error.main" : "success.main", r = t === "spending" ? "success.main" : "text.secondary", g = c?.current, T = d?.current, p = g && T ? g.scrollWidth > T.clientWidth - zt : !1;
|
|
410
410
|
return /* @__PURE__ */ C(
|
|
411
|
-
|
|
411
|
+
b,
|
|
412
412
|
{
|
|
413
413
|
sx: {
|
|
414
414
|
border: 1,
|
|
@@ -421,7 +421,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
421
421
|
},
|
|
422
422
|
children: [
|
|
423
423
|
/* @__PURE__ */ C(
|
|
424
|
-
|
|
424
|
+
b,
|
|
425
425
|
{
|
|
426
426
|
sx: {
|
|
427
427
|
alignItems: "center",
|
|
@@ -430,13 +430,13 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
430
430
|
},
|
|
431
431
|
children: [
|
|
432
432
|
/* @__PURE__ */ e(Y, { color: "text.secondary", variant: "caption", children: n }),
|
|
433
|
-
h && /* @__PURE__ */ C(
|
|
434
|
-
u ? /* @__PURE__ */ e(dt, { size: 20, sx: { color:
|
|
433
|
+
h && /* @__PURE__ */ C(b, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
434
|
+
u ? /* @__PURE__ */ e(dt, { size: 20, sx: { color: y } }) : /* @__PURE__ */ e(ht, { size: 20, sx: { color: r } }),
|
|
435
435
|
/* @__PURE__ */ e(
|
|
436
436
|
Y,
|
|
437
437
|
{
|
|
438
438
|
sx: {
|
|
439
|
-
color: u ?
|
|
439
|
+
color: u ? y : r,
|
|
440
440
|
fontWeight: 600
|
|
441
441
|
},
|
|
442
442
|
variant: "body2",
|
|
@@ -448,7 +448,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
448
448
|
}
|
|
449
449
|
),
|
|
450
450
|
/* @__PURE__ */ C(
|
|
451
|
-
|
|
451
|
+
b,
|
|
452
452
|
{
|
|
453
453
|
ref: d,
|
|
454
454
|
sx: {
|
|
@@ -468,7 +468,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
468
468
|
h && l >= 450 && !p && /* @__PURE__ */ e(
|
|
469
469
|
Y,
|
|
470
470
|
{
|
|
471
|
-
color: u ?
|
|
471
|
+
color: u ? y : r,
|
|
472
472
|
variant: "caption",
|
|
473
473
|
children: a
|
|
474
474
|
}
|
|
@@ -481,15 +481,15 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
481
481
|
);
|
|
482
482
|
}, Ft = M(() => {
|
|
483
483
|
const { trends: n } = k();
|
|
484
|
-
return /* @__PURE__ */ C(
|
|
484
|
+
return /* @__PURE__ */ C(b, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
485
485
|
/* @__PURE__ */ e(ut, { size: 32 }),
|
|
486
|
-
/* @__PURE__ */ C(
|
|
486
|
+
/* @__PURE__ */ C(b, { children: [
|
|
487
487
|
/* @__PURE__ */ e(Y, { fontWeight: 600, variant: "body1", children: n.zero_state_content_header }),
|
|
488
488
|
/* @__PURE__ */ e(Y, { color: "text.secondary", variant: "subtitle2", children: n.zero_state_content_description })
|
|
489
489
|
] })
|
|
490
490
|
] });
|
|
491
491
|
}), Zn = M(({ onCtaClick: n }) => {
|
|
492
|
-
const { visibleAccounts: o } = ae(), { onEvent: t } =
|
|
492
|
+
const { visibleAccounts: o } = ae(), { onEvent: t } = N(), { monthlyCategoryTotals: s, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: h } = F(), l = {
|
|
493
493
|
start: lt(/* @__PURE__ */ new Date(), 1),
|
|
494
494
|
end: /* @__PURE__ */ new Date()
|
|
495
495
|
}, { trends: c } = k(), { selectedAccounts: d, setSelectedAccounts: m, isInitialized: f } = P();
|
|
@@ -497,23 +497,23 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
497
497
|
m(o);
|
|
498
498
|
}, [o]), i.useEffect(() => {
|
|
499
499
|
f && a(d, l.start).then(() => {
|
|
500
|
-
t(
|
|
500
|
+
t(_.TRENDS_LOAD_WIDGET, {
|
|
501
501
|
state: o?.length ? "default" : "zeroState"
|
|
502
502
|
});
|
|
503
503
|
});
|
|
504
504
|
}, [f, d]);
|
|
505
|
-
const { spendingData: u, incomeData:
|
|
505
|
+
const { spendingData: u, incomeData: y } = i.useMemo(
|
|
506
506
|
() => ({
|
|
507
507
|
spendingData: xe(s, l),
|
|
508
508
|
incomeData: ve(s, l)
|
|
509
509
|
}),
|
|
510
510
|
[s, l]
|
|
511
|
-
), [r, g] = u, [T, p] =
|
|
511
|
+
), [r, g] = u, [T, p] = y, E = be(g.y, r.y), w = be(p.y, T.y), I = f && !o?.length, A = () => {
|
|
512
512
|
t(
|
|
513
|
-
I ?
|
|
513
|
+
I ? _.TRENDS_CLICK_GET_STARTED : _.TRENDS_CLICK_VIEW_MORE
|
|
514
514
|
), n();
|
|
515
515
|
};
|
|
516
|
-
return !h || !f ? /* @__PURE__ */ e(
|
|
516
|
+
return !h || !f ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ e(
|
|
517
517
|
Ct,
|
|
518
518
|
{
|
|
519
519
|
className: "mx-trends-microwidget",
|
|
@@ -522,7 +522,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
522
522
|
subHeader: I ? void 0 : c.micro_subheader,
|
|
523
523
|
title: c.title,
|
|
524
524
|
children: I ? /* @__PURE__ */ e(Ft, {}) : /* @__PURE__ */ C(
|
|
525
|
-
|
|
525
|
+
b,
|
|
526
526
|
{
|
|
527
527
|
sx: {
|
|
528
528
|
alignItems: "stretch",
|
|
@@ -561,7 +561,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
561
561
|
({ isExpanded: n, onClick: o }) => {
|
|
562
562
|
const t = We();
|
|
563
563
|
return /* @__PURE__ */ e(yt, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(_t, { onClick: o, sx: { justifyContent: "center" }, children: /* @__PURE__ */ C(
|
|
564
|
-
|
|
564
|
+
b,
|
|
565
565
|
{
|
|
566
566
|
sx: { color: t.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
567
567
|
children: [
|
|
@@ -589,8 +589,8 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
589
589
|
isLastItem: h = !1,
|
|
590
590
|
showDivider: l = !0
|
|
591
591
|
}) => {
|
|
592
|
-
const { trends: c } = k(), { onEvent: d } =
|
|
593
|
-
a?.(), d(
|
|
592
|
+
const { trends: c } = k(), { onEvent: d } = N(), m = `${s.length} ${s.length === 1 ? c.transaction : c.transactions}`, f = () => {
|
|
593
|
+
a?.(), d(_.TRENDS_CLICK_LIST_ITEM, {
|
|
594
594
|
...R,
|
|
595
595
|
listItem: t
|
|
596
596
|
});
|
|
@@ -612,18 +612,18 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
612
612
|
}
|
|
613
613
|
), Kt = M(
|
|
614
614
|
({ availableHeight: n = 0, onCategoryClick: o }) => {
|
|
615
|
-
const { collapsedCategories: t, visibleCategories: s, setVisibleListLength: a } =
|
|
615
|
+
const { collapsedCategories: t, visibleCategories: s, setVisibleListLength: a } = Q(), { isLargeDesktop: h, isDesktop: l } = K(), { trends: c } = k(), { onEvent: d } = N(), [m, f] = i.useState(!1), u = l || h;
|
|
616
616
|
i.useEffect(() => {
|
|
617
617
|
const g = Math.floor(n / 64) - 1, T = s.length + t.length;
|
|
618
618
|
g !== s.length && (a(u ? Math.max(g, 5) : 5), f(g >= T));
|
|
619
619
|
}, [n]);
|
|
620
|
-
const
|
|
621
|
-
f(!m), d(
|
|
620
|
+
const y = () => {
|
|
621
|
+
f(!m), d(_.TRENDS_CLICK_VIEW_MORE, {
|
|
622
622
|
...R
|
|
623
623
|
});
|
|
624
624
|
}, r = s.length + (m ? t.length : 0);
|
|
625
|
-
return /* @__PURE__ */ e(
|
|
626
|
-
/* @__PURE__ */ e(
|
|
625
|
+
return /* @__PURE__ */ e(b, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ C(Tt, { children: [
|
|
626
|
+
/* @__PURE__ */ e(b, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(Ie, { children: c.categories }) }),
|
|
627
627
|
s.map((g, T) => /* @__PURE__ */ e(
|
|
628
628
|
De,
|
|
629
629
|
{
|
|
@@ -654,7 +654,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
654
654
|
})
|
|
655
655
|
}
|
|
656
656
|
),
|
|
657
|
-
t.length > 0 && /* @__PURE__ */ e(Pt, { isExpanded: m, onClick:
|
|
657
|
+
t.length > 0 && /* @__PURE__ */ e(Pt, { isExpanded: m, onClick: y })
|
|
658
658
|
] }) });
|
|
659
659
|
}
|
|
660
660
|
), $t = [
|
|
@@ -692,12 +692,12 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
692
692
|
"WeeklyNoSpendDays",
|
|
693
693
|
"WeeklySmallPurchasesSummary"
|
|
694
694
|
], jt = ({ onInsightCardClick: n }) => {
|
|
695
|
-
const o = Dt(), { onEvent: t } =
|
|
695
|
+
const o = Dt(), { onEvent: t } = N(), { isMobile: s, isDesktop: a, isLargeDesktop: h } = K(), { beatStore: l, endpoint: c, sessionToken: d } = Me(), { isInitialized: m } = P(), [f, u] = i.useState(!1), y = o.palette.mode === "dark", r = a || h, g = r || s ? 1 : 2;
|
|
696
696
|
i.useEffect(() => {
|
|
697
697
|
m && l.loadBeats().finally(() => u(!0));
|
|
698
698
|
}, [m]);
|
|
699
699
|
const T = i.useMemo(() => f ? l.getFilteredBeats({ templates: $t }) : [], [f]), p = () => null, E = (D) => {
|
|
700
|
-
n?.(D), t(
|
|
700
|
+
n?.(D), t(_.TRENDS_CLICK_INSIGHT, R);
|
|
701
701
|
}, w = r ? 200 : 170, I = r ? 170 : 124, A = T.length > 0 ? w : I;
|
|
702
702
|
return /* @__PURE__ */ e(It, { sx: { height: A }, children: /* @__PURE__ */ e(
|
|
703
703
|
it,
|
|
@@ -714,17 +714,17 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
714
714
|
showIcon: !0,
|
|
715
715
|
showWithMargin: !1,
|
|
716
716
|
token: d,
|
|
717
|
-
useDarkMode:
|
|
717
|
+
useDarkMode: y,
|
|
718
718
|
userHasFullInsightFeedBeats: !1,
|
|
719
719
|
variant: "outlined",
|
|
720
720
|
visibleCardsCount: g
|
|
721
721
|
}
|
|
722
722
|
) });
|
|
723
723
|
}, Yt = M(jt), Ut = M(({ chartLabel: n, chartColor: o }) => {
|
|
724
|
-
const { onEvent: t } =
|
|
724
|
+
const { onEvent: t } = N(), {
|
|
725
725
|
categoryDetailsChartData: { monthlyAmounts: s, tooltipLabels: a }
|
|
726
|
-
} =
|
|
727
|
-
return /* @__PURE__ */ e(
|
|
726
|
+
} = Q();
|
|
727
|
+
return /* @__PURE__ */ e(b, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ e(
|
|
728
728
|
_e,
|
|
729
729
|
{
|
|
730
730
|
baseline: "min",
|
|
@@ -738,7 +738,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
738
738
|
stroke: o
|
|
739
739
|
}),
|
|
740
740
|
onItemClick: () => {
|
|
741
|
-
t(
|
|
741
|
+
t(_.TRENDS_CLICK_CHART, R);
|
|
742
742
|
},
|
|
743
743
|
showArea: !0,
|
|
744
744
|
showAverage: !0,
|
|
@@ -754,14 +754,14 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
754
754
|
}
|
|
755
755
|
) });
|
|
756
756
|
}), Xt = M(({ onClose: n }) => {
|
|
757
|
-
const o = We(), { onEvent: t } =
|
|
757
|
+
const o = We(), { onEvent: t } = N(), { common: s, trends: a } = k(), { selectedCategoryData: h, selectedDateRangeMonthRange: l } = Q(), { sortedTransactions: c } = re(), [d, m] = i.useState(null);
|
|
758
758
|
if (!h)
|
|
759
759
|
return null;
|
|
760
|
-
const { guid: f, name: u, is_income:
|
|
760
|
+
const { guid: f, name: u, is_income: y, totalAmount: r } = h, g = y ? a.category_income : a.category_spending, T = Lt(f, o), p = y ? a.income_label : a.spending_label, E = ` ${h.transactions.length === 1 ? a.transaction : a.transactions} (${h.transactions.length})`, w = i.useMemo(
|
|
761
761
|
() => c.find((D) => D.guid === d),
|
|
762
762
|
[d, c]
|
|
763
763
|
), I = (D) => D.category_guid === f || D.top_level_category_guid === f, A = () => {
|
|
764
|
-
n?.(), t(
|
|
764
|
+
n?.(), t(_.TRENDS_CLICK_BACK, R);
|
|
765
765
|
};
|
|
766
766
|
return /* @__PURE__ */ C(
|
|
767
767
|
Te,
|
|
@@ -772,7 +772,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
772
772
|
shouldShowHeaderShadow: !0,
|
|
773
773
|
title: g,
|
|
774
774
|
children: [
|
|
775
|
-
/* @__PURE__ */ C(
|
|
775
|
+
/* @__PURE__ */ C(b, { sx: { alignItems: "center", height: "100%" }, children: [
|
|
776
776
|
/* @__PURE__ */ C(Et, { sx: { borderRadius: 0, pb: 4, pt: 16, width: "100%" }, children: [
|
|
777
777
|
/* @__PURE__ */ e(
|
|
778
778
|
Le,
|
|
@@ -784,13 +784,13 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
784
784
|
}
|
|
785
785
|
),
|
|
786
786
|
/* @__PURE__ */ e(Ut, { chartColor: T, chartLabel: p }),
|
|
787
|
-
/* @__PURE__ */ C(
|
|
787
|
+
/* @__PURE__ */ C(b, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 24 }, children: [
|
|
788
788
|
/* @__PURE__ */ e(X, { bold: !0, variant: "body1", children: E }),
|
|
789
789
|
/* @__PURE__ */ e(xt, { filter: I })
|
|
790
790
|
] })
|
|
791
791
|
] }),
|
|
792
792
|
/* @__PURE__ */ e(
|
|
793
|
-
|
|
793
|
+
Ne,
|
|
794
794
|
{
|
|
795
795
|
bgcolor: "transparent",
|
|
796
796
|
filter: I,
|
|
@@ -815,7 +815,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
815
815
|
}), Zt = (n, o) => {
|
|
816
816
|
const t = ve(n, o), s = xe(n, o);
|
|
817
817
|
return [t, s].filter((a) => a.length > 0);
|
|
818
|
-
},
|
|
818
|
+
}, Jt = (n, o) => {
|
|
819
819
|
const [t, s] = n, a = t, h = s ?? t, l = [];
|
|
820
820
|
if (a) {
|
|
821
821
|
const c = a.reduce((d, m) => d + m.y, 0);
|
|
@@ -826,21 +826,21 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
826
826
|
l.push({ label: o.spending_label, amount: c });
|
|
827
827
|
}
|
|
828
828
|
return l;
|
|
829
|
-
},
|
|
829
|
+
}, Qt = ({
|
|
830
830
|
availableHeight: n = 0,
|
|
831
831
|
minHeight: o = 500,
|
|
832
832
|
selectedDateRange: t,
|
|
833
833
|
totals: s
|
|
834
834
|
}) => {
|
|
835
|
-
const a =
|
|
835
|
+
const a = He(), { onEvent: h } = N(), { trends: l } = k(), { isSmallMobile: c, isMobile: d, isSmallTablet: m, isTablet: f } = K(), u = [a.palette.chart?.chart1, a.palette.chart?.chart2], y = Zt(s, t), r = Jt(y, l), [g, T] = i.useState(0), p = 458, E = 195, w = 56, I = d || c ? E : m || f ? p : g;
|
|
836
836
|
i.useEffect(() => {
|
|
837
837
|
const D = Math.max(n - w, o);
|
|
838
838
|
T(D);
|
|
839
839
|
}, [n]);
|
|
840
840
|
const A = () => {
|
|
841
|
-
h(
|
|
841
|
+
h(_.TRENDS_CLICK_CHART, R);
|
|
842
842
|
};
|
|
843
|
-
return console.log("test"), /* @__PURE__ */ C(pe, { children: [
|
|
843
|
+
return console.log("test", JSON.stringify(y)), /* @__PURE__ */ C(pe, { children: [
|
|
844
844
|
/* @__PURE__ */ e(pe, { children: "test" }),
|
|
845
845
|
/* @__PURE__ */ e(
|
|
846
846
|
_e,
|
|
@@ -848,7 +848,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
848
848
|
baseline: "min",
|
|
849
849
|
colors: u,
|
|
850
850
|
curveType: "bump",
|
|
851
|
-
datasets:
|
|
851
|
+
datasets: y,
|
|
852
852
|
height: I,
|
|
853
853
|
labels: r,
|
|
854
854
|
onItemClick: A,
|
|
@@ -860,18 +860,18 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
860
860
|
showXAxisTicks: !0,
|
|
861
861
|
showYAxis: !0,
|
|
862
862
|
showYAxisTicks: !0,
|
|
863
|
-
valueFormatterString: "0a"
|
|
863
|
+
valueFormatterString: "0.0a"
|
|
864
864
|
}
|
|
865
865
|
)
|
|
866
866
|
] });
|
|
867
|
-
},
|
|
868
|
-
const { onEvent: s } =
|
|
867
|
+
}, qt = M(Qt), en = ({ onBackClick: n, onInsightCardClick: o, sx: t }) => {
|
|
868
|
+
const { onEvent: s } = N(), { config: a } = ot(), { isLargeDesktop: h, isDesktop: l, isMobile: c } = K(), { visibleAccounts: d } = ae(), { loadDateRangeCategoryTotals: m, loadMonthlyCategoryTotals: f, monthlyCategoryTotals: u } = F(), { setFilter: y } = re(), { selectedDateRange: r, setSelectedCategoryData: g, setSelectedDateRange: T } = Q(), {
|
|
869
869
|
isCopyLoaded: p,
|
|
870
870
|
isInitialized: E,
|
|
871
871
|
selectedAccounts: w,
|
|
872
872
|
selectedAccountGuids: I,
|
|
873
873
|
setSelectedAccounts: A
|
|
874
|
-
} = P(), { trends: D } = k(),
|
|
874
|
+
} = P(), { trends: D } = k(), H = Ye(), x = l || h, [L, $] = i.useState(!1), [z, ie] = i.useState("Chart"), [q, ee] = i.useState(""), [te, ne] = i.useState(!1), [oe, ce] = i.useState(window.innerHeight), le = oe - 208, de = oe - (H ? 494 : 266);
|
|
875
875
|
i.useEffect(() => {
|
|
876
876
|
const v = () => ce(window.innerHeight);
|
|
877
877
|
return window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
|
|
@@ -885,7 +885,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
885
885
|
r.end
|
|
886
886
|
);
|
|
887
887
|
}).finally(() => {
|
|
888
|
-
$(!0), s(
|
|
888
|
+
$(!0), s(_.TRENDS_LOAD_WIDGET, {
|
|
889
889
|
...R,
|
|
890
890
|
time_period: `${fe(r.end, r.start)}M`
|
|
891
891
|
});
|
|
@@ -896,7 +896,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
896
896
|
accounts: I,
|
|
897
897
|
dateRange: { start: r.start, end: r.end }
|
|
898
898
|
};
|
|
899
|
-
|
|
899
|
+
y({
|
|
900
900
|
...v,
|
|
901
901
|
custom: (V) => !!u.find(
|
|
902
902
|
(j) => j.top_level_category_guid === V.top_level_category_guid || j.category_guid === V.category_guid
|
|
@@ -909,27 +909,27 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
909
909
|
}, ue = () => {
|
|
910
910
|
g(null), ne(!1);
|
|
911
911
|
}, me = (v, V) => {
|
|
912
|
-
ie(V ?? z), s(
|
|
912
|
+
ie(V ?? z), s(_.TRENDS_CLICK_TOGGLE_VIEW, {
|
|
913
913
|
...R,
|
|
914
914
|
toggleView: V
|
|
915
915
|
});
|
|
916
916
|
}, S = (v) => {
|
|
917
917
|
const V = Ee(v?.[0], 1), j = v?.[1], Fe = fe(j, V);
|
|
918
|
-
T({ start: V, end: j }), s(
|
|
918
|
+
T({ start: V, end: j }), s(_.TRENDS_CLICK_TIME_WINDOW, {
|
|
919
919
|
...R,
|
|
920
920
|
time_period: Fe + "M"
|
|
921
921
|
});
|
|
922
922
|
}, W = (v) => {
|
|
923
|
-
s(
|
|
923
|
+
s(_.TRENDS_CLICK_FILTER, {
|
|
924
924
|
...R,
|
|
925
925
|
filterValue: v
|
|
926
926
|
});
|
|
927
927
|
}, G = (v) => {
|
|
928
928
|
ee(v);
|
|
929
929
|
}, ge = () => {
|
|
930
|
-
ee(""), s(
|
|
930
|
+
ee(""), s(_.TRENDS_CLICK_ALL_CATEGORIES, R);
|
|
931
931
|
};
|
|
932
|
-
if (!p || !L) return /* @__PURE__ */ e(
|
|
932
|
+
if (!p || !L) return /* @__PURE__ */ e(J, {});
|
|
933
933
|
const Be = a.show_connections_widget_in_master ? "buttons" : "no-buttons", ze = L && d.length === 0;
|
|
934
934
|
return /* @__PURE__ */ C(
|
|
935
935
|
Re,
|
|
@@ -944,14 +944,14 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
944
944
|
title: D.title,
|
|
945
945
|
children: [
|
|
946
946
|
/* @__PURE__ */ C(
|
|
947
|
-
|
|
947
|
+
b,
|
|
948
948
|
{
|
|
949
949
|
sx: {
|
|
950
950
|
px: c ? 0 : 48
|
|
951
951
|
},
|
|
952
952
|
children: [
|
|
953
953
|
/* @__PURE__ */ C(
|
|
954
|
-
|
|
954
|
+
b,
|
|
955
955
|
{
|
|
956
956
|
flexDirection: "row",
|
|
957
957
|
justifyContent: "space-between",
|
|
@@ -960,7 +960,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
960
960
|
/* @__PURE__ */ e(
|
|
961
961
|
Ve,
|
|
962
962
|
{
|
|
963
|
-
selectedCategoryGuid:
|
|
963
|
+
selectedCategoryGuid: q,
|
|
964
964
|
selectedDateRange: r
|
|
965
965
|
}
|
|
966
966
|
),
|
|
@@ -980,14 +980,14 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
980
980
|
variant: Be
|
|
981
981
|
}
|
|
982
982
|
),
|
|
983
|
-
/* @__PURE__ */ e(
|
|
983
|
+
/* @__PURE__ */ e(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: q && /* @__PURE__ */ C(Ce, { onClick: ge, sx: { p: 0, pr: 5 }, children: [
|
|
984
984
|
/* @__PURE__ */ e(se, { name: "arrow_back" }),
|
|
985
985
|
D.all_categories
|
|
986
986
|
] }) }) }),
|
|
987
|
-
/* @__PURE__ */ C(
|
|
987
|
+
/* @__PURE__ */ C(b, { flexDirection: x ? "row" : "column", gap: x ? 48 : 16, children: [
|
|
988
988
|
z === "Chart" && /* @__PURE__ */ C(pe, { children: [
|
|
989
989
|
/* @__PURE__ */ e(O, { sx: { width: x ? "68%" : "100%" }, children: /* @__PURE__ */ e(
|
|
990
|
-
|
|
990
|
+
qt,
|
|
991
991
|
{
|
|
992
992
|
availableHeight: le,
|
|
993
993
|
minHeight: 450,
|
|
@@ -995,8 +995,8 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
995
995
|
totals: u
|
|
996
996
|
}
|
|
997
997
|
) }),
|
|
998
|
-
/* @__PURE__ */ C(
|
|
999
|
-
|
|
998
|
+
/* @__PURE__ */ C(b, { gap: 16, sx: { width: x ? "32%" : "100%" }, children: [
|
|
999
|
+
H && /* @__PURE__ */ e(Yt, { onInsightCardClick: o }),
|
|
1000
1000
|
/* @__PURE__ */ e(
|
|
1001
1001
|
Kt,
|
|
1002
1002
|
{
|
|
@@ -1012,7 +1012,7 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
1012
1012
|
height: "unset",
|
|
1013
1013
|
monthlyCategoryTotals: u,
|
|
1014
1014
|
onClickRow: G,
|
|
1015
|
-
selectedCategory:
|
|
1015
|
+
selectedCategory: q,
|
|
1016
1016
|
selectedDateRange: r
|
|
1017
1017
|
}
|
|
1018
1018
|
) })
|
|
@@ -1024,11 +1024,11 @@ const Oe = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
1024
1024
|
]
|
|
1025
1025
|
}
|
|
1026
1026
|
);
|
|
1027
|
-
},
|
|
1027
|
+
}, Jn = M(en);
|
|
1028
1028
|
export {
|
|
1029
1029
|
Un as TrendsFullWidget,
|
|
1030
1030
|
Zn as TrendsMicroWidget,
|
|
1031
1031
|
Xn as TrendsMiniWidget,
|
|
1032
1032
|
eo as TrendsStore,
|
|
1033
|
-
|
|
1033
|
+
Jn as TrendsWidget
|
|
1034
1034
|
};
|