@mx-cartographer/experiences 6.2.6 → 6.2.7-alpha.al0
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/index.es.js +525 -488
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { jsx as t, jsxs as l, Fragment as Z } from "react/jsx-runtime";
|
2
|
-
import g, { useMemo as bl, useRef as As, useEffect as
|
2
|
+
import g, { useMemo as bl, useRef as As, useEffect as zn, useState as Et } from "react";
|
3
3
|
import { observer as A } from "mobx-react-lite";
|
4
4
|
import M from "@mui/material/Box";
|
5
5
|
import G from "@mui/material/Divider";
|
6
6
|
import ie from "@mui/material/List";
|
7
7
|
import Rt from "@mui/material/ListSubheader";
|
8
8
|
import Ee from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as yl, P as Oe, Icon as
|
9
|
+
import { AccountsIcon as yl, P as Oe, Icon as H, useTokens as ft, Text as p, H2 as $n, CategoryIcon as kt, DialogHeader as El, DialogFooter as Sl, Drawer as Tl, Footer as Al, DateRangePicker as Xr, H3 as mt, H1 as cn, TextField as An, IconWeight as bt, MerchantLogo as ln, CategoryIconVariants as Is, InstitutionLogo as pt, ChevronRightIcon as Il, THEMES as qr } from "@mxenabled/mxui";
|
10
10
|
import xl from "bowser";
|
11
11
|
import { getUnixTime as Le } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as vl } from "date-fns/intlFormat";
|
@@ -16,15 +16,15 @@ import { addWeeks as Qn } from "date-fns/addWeeks";
|
|
16
16
|
import { addYears as ni } from "date-fns/addYears";
|
17
17
|
import { getDay as ii } from "date-fns/getDay";
|
18
18
|
import { isBefore as we } from "date-fns/isBefore";
|
19
|
-
import { nextDay as
|
19
|
+
import { nextDay as Ti } from "date-fns/nextDay";
|
20
20
|
import { setDate as Yi } from "date-fns/setDate";
|
21
21
|
import { startOfToday as le } from "date-fns/startOfToday";
|
22
22
|
import { fromUnixTime as Me } from "date-fns/fromUnixTime";
|
23
23
|
import { Honeybadger as $i } from "@honeybadger-io/react";
|
24
24
|
import Ja from "numeral";
|
25
25
|
import ee from "@mui/material/Button";
|
26
|
-
import
|
27
|
-
import
|
26
|
+
import Fn from "@mui/material/Tooltip";
|
27
|
+
import $e from "@mui/material/IconButton";
|
28
28
|
import er from "@mui/material/FormControlLabel";
|
29
29
|
import X from "@mui/material/ListItem";
|
30
30
|
import de from "@mui/material/ListItemButton";
|
@@ -34,7 +34,7 @@ import b from "@mui/material/Stack";
|
|
34
34
|
import ji from "@mui/material/Checkbox";
|
35
35
|
import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as sa, CardContent as Nl, Button as Dl, List as Rl, Divider as Ol } from "@mui/material";
|
36
36
|
import pe from "@mui/material/styles/useTheme";
|
37
|
-
import
|
37
|
+
import Vn from "@mui/material/useMediaQuery";
|
38
38
|
import { css as Qt, keyframes as Ll } from "@mxenabled/cssinjs";
|
39
39
|
import { addDays as Mt } from "date-fns/addDays";
|
40
40
|
import { eachDayOfInterval as Ml } from "date-fns/eachDayOfInterval";
|
@@ -42,7 +42,7 @@ import { eachWeekOfInterval as kl } from "date-fns/eachWeekOfInterval";
|
|
42
42
|
import { endOfMonth as Xe } from "date-fns/endOfMonth";
|
43
43
|
import { format as wt } from "date-fns/format";
|
44
44
|
import { isSameMonth as Gl } from "date-fns/isSameMonth";
|
45
|
-
import { startOfMonth as
|
45
|
+
import { startOfMonth as Fe } from "date-fns/startOfMonth";
|
46
46
|
import { subMonths as jt } from "date-fns/subMonths";
|
47
47
|
import Tt from "@mui/material/Paper";
|
48
48
|
import Bl from "@mui/icons-material/KeyboardArrowLeftRounded";
|
@@ -65,7 +65,7 @@ import { subYears as tr } from "date-fns/subYears";
|
|
65
65
|
import ed from "@mui/material/ButtonGroup";
|
66
66
|
import Ve from "@mui/material/Tab";
|
67
67
|
import Lt from "@mui/material/Tabs";
|
68
|
-
import
|
68
|
+
import Ni from "@mui/material/ToggleButton";
|
69
69
|
import ca from "@mui/material/ToggleButtonGroup";
|
70
70
|
import td from "@mui/material/Dialog";
|
71
71
|
import ws from "@mui/material/DialogContent";
|
@@ -87,11 +87,11 @@ import { differenceInDays as Sd } from "date-fns/differenceInDays";
|
|
87
87
|
import ua from "@mui/icons-material/ChevronRight";
|
88
88
|
import _a from "@mui/icons-material/ExpandMore";
|
89
89
|
import { DataGridPro as jn } from "@mui/x-data-grid-pro";
|
90
|
-
import { intervalToDuration as Td, formatDuration as Ad, getDate as no, fromUnixTime as
|
90
|
+
import { intervalToDuration as Td, formatDuration as Ad, getDate as no, fromUnixTime as Ai, startOfMonth as io, format as On, differenceInMonths as Id, isSameDay as xd, subDays as vd, startOfToday as wd, endOfToday as Nd } from "date-fns";
|
91
91
|
import xn from "@mui/material/Alert";
|
92
|
-
import
|
92
|
+
import Di from "@mui/material/Snackbar";
|
93
93
|
import { useVirtualizer as Rs } from "@tanstack/react-virtual";
|
94
|
-
import { parseISO as
|
94
|
+
import { parseISO as Ri } from "date-fns/parseISO";
|
95
95
|
import Wt from "@mui/material/Skeleton";
|
96
96
|
import { isAfter as Zt } from "date-fns/isAfter";
|
97
97
|
import { subWeeks as ao } from "date-fns/subWeeks";
|
@@ -105,13 +105,13 @@ import { subQuarters as Os } from "date-fns/subQuarters";
|
|
105
105
|
import { getMonth as Jn } from "date-fns/getMonth";
|
106
106
|
import { DateCalendar as li } from "@mui/x-date-pickers/DateCalendar";
|
107
107
|
import { formatDistanceToNow as Ls } from "date-fns/formatDistanceToNow";
|
108
|
-
import
|
109
|
-
import
|
110
|
-
import
|
108
|
+
import Oi from "@mui/material/Accordion";
|
109
|
+
import Li from "@mui/material/AccordionDetails";
|
110
|
+
import Mi from "@mui/material/AccordionSummary";
|
111
111
|
import Dd from "@mui/material/Breadcrumbs";
|
112
112
|
import ga from "@mui/material/MenuItem";
|
113
113
|
import Rd from "@mui/material/RadioGroup";
|
114
|
-
import
|
114
|
+
import Ii from "@mui/icons-material/DeleteOutlined";
|
115
115
|
import qi from "@mui/icons-material/Cancel";
|
116
116
|
import Od from "@mui/icons-material/HighlightOff";
|
117
117
|
import Ld from "@mui/icons-material/Search";
|
@@ -399,7 +399,7 @@ const iu = [
|
|
399
399
|
20
|
400
400
|
/* IMPAIRED */
|
401
401
|
], Fs = [...$s, ...Hs];
|
402
|
-
var
|
402
|
+
var Kn = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(Kn || {});
|
403
403
|
const A2 = {
|
404
404
|
3: "Challenged",
|
405
405
|
12: "Closed",
|
@@ -837,7 +837,7 @@ const hn = 44, lo = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
837
837
|
return i ? i.guid === N.INCOME || i.parent_guid === N.INCOME : !1;
|
838
838
|
}, ba = (e) => {
|
839
839
|
const n = ii(e);
|
840
|
-
let i =
|
840
|
+
let i = Ti(e, n);
|
841
841
|
for (; we(i, le()); )
|
842
842
|
i = Qn(i, 1);
|
843
843
|
return i;
|
@@ -860,10 +860,10 @@ const hn = 44, lo = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
860
860
|
}, Ys = (e) => {
|
861
861
|
const n = yr(e);
|
862
862
|
return Sn(n, 1);
|
863
|
-
}, js = (e) => ni(e, 1),
|
863
|
+
}, js = (e) => ni(e, 1), bi = (e) => {
|
864
864
|
const n = Me(e);
|
865
865
|
return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
|
866
|
-
},
|
866
|
+
}, ki = (e) => ae(Me(e), te.DAY_OF_WEEK_MONTH_DAY), Xs = (e) => e ? ae(Me(e), te.MONTH_YEAR) : "", _u = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, S = (e, ...n) => {
|
867
867
|
if (!e) return "";
|
868
868
|
const i = n.some((o) => typeof o != "string"), r = [...e.matchAll(_u)].reduce(
|
869
869
|
(o, s, c) => {
|
@@ -1123,7 +1123,7 @@ class _o {
|
|
1123
1123
|
removeCategory = async (n) => this.fetchInstance.delete(`${k.CATEGORIES}/${n}`);
|
1124
1124
|
updateCategory = async (n) => this.fetchInstance.put(`${k.CATEGORIES}/${n.guid}`, n).then((i) => i.category);
|
1125
1125
|
}
|
1126
|
-
class
|
1126
|
+
class yi {
|
1127
1127
|
fetchInstance;
|
1128
1128
|
constructor(n, i) {
|
1129
1129
|
this.fetchInstance = new rt(n, i);
|
@@ -1407,20 +1407,20 @@ const fu = (e, n) => {
|
|
1407
1407
|
}, [e, i]);
|
1408
1408
|
}, ve = () => ({
|
1409
1409
|
// Larger than 1400
|
1410
|
-
isLargeDesktop:
|
1410
|
+
isLargeDesktop: Vn(pe().breakpoints.up("xl")),
|
1411
1411
|
// Larger than 1200
|
1412
|
-
isDesktop:
|
1412
|
+
isDesktop: Vn(pe().breakpoints.up("lg")),
|
1413
1413
|
// Smaller than 768
|
1414
|
-
isMobile:
|
1414
|
+
isMobile: Vn(pe().breakpoints.down("sm")),
|
1415
1415
|
// Smaller than 400
|
1416
|
-
isSmallMobile:
|
1416
|
+
isSmallMobile: Vn(pe().breakpoints.down("xs")),
|
1417
1417
|
// Between 768 and 992
|
1418
|
-
isSmallTablet:
|
1418
|
+
isSmallTablet: Vn(pe().breakpoints.between("sm", "md")),
|
1419
1419
|
// Between 768 and 1200
|
1420
|
-
isTablet:
|
1420
|
+
isTablet: Vn(pe().breakpoints.between("sm", "lg"))
|
1421
1421
|
}), L2 = (e) => {
|
1422
1422
|
const n = As();
|
1423
|
-
return
|
1423
|
+
return zn(() => {
|
1424
1424
|
n.current = e;
|
1425
1425
|
}, [e]), n.current;
|
1426
1426
|
}, Qs = ({
|
@@ -1446,8 +1446,8 @@ const fu = (e, n) => {
|
|
1446
1446
|
u(null);
|
1447
1447
|
};
|
1448
1448
|
return /* @__PURE__ */ l(M, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
|
1449
|
-
d ? /* @__PURE__ */ t(
|
1450
|
-
|
1449
|
+
d ? /* @__PURE__ */ t(Fn, { id: "filter-accounts", placement: "bottom", title: n.title, children: /* @__PURE__ */ t(
|
1450
|
+
$e,
|
1451
1451
|
{
|
1452
1452
|
"aria-controls": "filter_accounts",
|
1453
1453
|
"aria-describedby": "filter-accounts",
|
@@ -1456,7 +1456,7 @@ const fu = (e, n) => {
|
|
1456
1456
|
color: "primary",
|
1457
1457
|
onClick: C,
|
1458
1458
|
sx: { p: 12 },
|
1459
|
-
children: /* @__PURE__ */ t(
|
1459
|
+
children: /* @__PURE__ */ t(H, { name: "filter_alt", size: 24 })
|
1460
1460
|
}
|
1461
1461
|
) }) : /* @__PURE__ */ t(
|
1462
1462
|
ee,
|
@@ -1465,7 +1465,7 @@ const fu = (e, n) => {
|
|
1465
1465
|
"aria-haspopup": !0,
|
1466
1466
|
"aria-label": n.title,
|
1467
1467
|
onClick: C,
|
1468
|
-
startIcon: /* @__PURE__ */ t(
|
1468
|
+
startIcon: /* @__PURE__ */ t(H, { name: "filter_alt", size: 24 }),
|
1469
1469
|
sx: { p: 12 },
|
1470
1470
|
variant: c,
|
1471
1471
|
children: n.title
|
@@ -1703,7 +1703,7 @@ const fu = (e, n) => {
|
|
1703
1703
|
selectedIndex: d,
|
1704
1704
|
valueFormatter: _ = (u) => `${u}`
|
1705
1705
|
}) => {
|
1706
|
-
const u = ft(), h = wu(u), m = a.reduce(xu, []), C = e !== void 0 ? e : m.reduce(Au, 0) / m.length, f = Math.max(...m), E = Math.min(...m), y = m.reduce(Iu, 0), T = f >= 0, v = E < 0, w = fo(T, v, r), x = fo(v, T, r), R = vu(C, f, E, w || x), D = (O) => d === void 0 || O === d ? i : `${i}80`,
|
1706
|
+
const u = ft(), h = wu(u), m = a.reduce(xu, []), C = e !== void 0 ? e : m.reduce(Au, 0) / m.length, f = Math.max(...m), E = Math.min(...m), y = m.reduce(Iu, 0), T = f >= 0, v = E < 0, w = fo(T, v, r), x = fo(v, T, r), R = vu(C, f, E, w || x), D = (O) => d === void 0 || O === d ? i : `${i}80`, $ = () => /* @__PURE__ */ t(
|
1707
1707
|
Co,
|
1708
1708
|
{
|
1709
1709
|
averageLineHeight: R,
|
@@ -1717,7 +1717,7 @@ const fu = (e, n) => {
|
|
1717
1717
|
);
|
1718
1718
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-bar-chart ${h}`, children: [
|
1719
1719
|
/* @__PURE__ */ l("div", { className: "mx-cmn-chart-container", children: [
|
1720
|
-
/* @__PURE__ */ t(
|
1720
|
+
/* @__PURE__ */ t($, {}),
|
1721
1721
|
a.map((O, L) => /* @__PURE__ */ l(g.Fragment, { children: [
|
1722
1722
|
/* @__PURE__ */ t(
|
1723
1723
|
Co,
|
@@ -1737,7 +1737,7 @@ const fu = (e, n) => {
|
|
1737
1737
|
xAxisLabel: O.label
|
1738
1738
|
}
|
1739
1739
|
),
|
1740
|
-
/* @__PURE__ */ t(
|
1740
|
+
/* @__PURE__ */ t($, {})
|
1741
1741
|
] }, `column-${L}`))
|
1742
1742
|
] }),
|
1743
1743
|
/* @__PURE__ */ t(yu, { color: i, labelAverage: o, labelMain: s })
|
@@ -1810,8 +1810,8 @@ const fu = (e, n) => {
|
|
1810
1810
|
}
|
1811
1811
|
);
|
1812
1812
|
}, Ou = (e) => Qt({
|
1813
|
-
height:
|
1814
|
-
width:
|
1813
|
+
height: Ei,
|
1814
|
+
width: Ei,
|
1815
1815
|
display: "flex",
|
1816
1816
|
justifyContent: "center",
|
1817
1817
|
"&.mx-cmn-out-of-month": {
|
@@ -1854,7 +1854,7 @@ const fu = (e, n) => {
|
|
1854
1854
|
paddingBottom: 5
|
1855
1855
|
}
|
1856
1856
|
}
|
1857
|
-
}), Lu = 340,
|
1857
|
+
}), Lu = 340, Ei = 44;
|
1858
1858
|
var Js = /* @__PURE__ */ ((e) => (e.None = "None", e.Single = "Single", e.Range = "Range", e))(Js || {});
|
1859
1859
|
const Mu = ({
|
1860
1860
|
copy: e,
|
@@ -1870,11 +1870,11 @@ const Mu = ({
|
|
1870
1870
|
h(n), C(i), n && _(n);
|
1871
1871
|
}, [n, i]);
|
1872
1872
|
const f = g.useMemo(() => {
|
1873
|
-
const w = kl({ start:
|
1873
|
+
const w = kl({ start: Fe(d), end: Xe(d) }), x = [];
|
1874
1874
|
for (let R = 0; R < w.length; R++) {
|
1875
|
-
const D = w[R],
|
1876
|
-
for (let L = 0; L <
|
1877
|
-
O.push(
|
1875
|
+
const D = w[R], $ = Ml({ start: D, end: Mt(D, 6) }), O = [];
|
1876
|
+
for (let L = 0; L < $.length; L++)
|
1877
|
+
O.push($[L]);
|
1878
1878
|
x.push(O);
|
1879
1879
|
}
|
1880
1880
|
return x;
|
@@ -1931,9 +1931,9 @@ const Mu = ({
|
|
1931
1931
|
justifyContent: "center",
|
1932
1932
|
textAlign: "center",
|
1933
1933
|
"& .mx-cmn-calendar-header-cell": {
|
1934
|
-
height:
|
1935
|
-
width:
|
1936
|
-
minWidth:
|
1934
|
+
height: Ei,
|
1935
|
+
width: Ei,
|
1936
|
+
minWidth: Ei,
|
1937
1937
|
"& .kmui-text": {
|
1938
1938
|
alignItems: "center",
|
1939
1939
|
display: "flex",
|
@@ -2107,15 +2107,15 @@ const Mu = ({
|
|
2107
2107
|
valueFormatterString: C = "0,0",
|
2108
2108
|
width: f
|
2109
2109
|
}) => {
|
2110
|
-
const E = tt(), y = i.flat().map((D) => D.x), T = i.flat().map((D) => D.y), v = Math.round(T.reduce((D,
|
2110
|
+
const E = tt(), y = i.flat().map((D) => D.x), T = i.flat().map((D) => D.y), v = Math.round(T.reduce((D, $) => $ + D, 0) / T.length), w = Math.floor(Math.min(...T) / 100) * 100, x = Math.ceil(Math.max(...T) / 100) * 100, R = i.map((D, $) => ({
|
2111
2111
|
type: d ? "bar" : "line",
|
2112
2112
|
curve: "linear",
|
2113
|
-
color: d ? E.palette.chart?.chart6 : n[
|
2113
|
+
color: d ? E.palette.chart?.chart6 : n[$] ?? E.palette.primary.main,
|
2114
2114
|
data: D.map((O) => O.y),
|
2115
2115
|
area: _,
|
2116
2116
|
baseline: e,
|
2117
2117
|
showMark: !0,
|
2118
|
-
label: r[
|
2118
|
+
label: r[$],
|
2119
2119
|
valueFormatter: (O) => B(O || 0, C)
|
2120
2120
|
}));
|
2121
2121
|
return /* @__PURE__ */ l("div", { style: { position: "relative" }, children: [
|
@@ -2258,7 +2258,7 @@ const Mu = ({
|
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
2260
2260
|
return n;
|
2261
|
-
},
|
2261
|
+
}, Wn = () => zu(), ac = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
2262
2262
|
const { categories: i } = I(), { getCategoryName: a } = Ke(), r = a(e);
|
2263
2263
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
2264
2264
|
/* @__PURE__ */ t(
|
@@ -2292,7 +2292,7 @@ const Mu = ({
|
|
2292
2292
|
chartContainerRef: r
|
2293
2293
|
}) => {
|
2294
2294
|
const o = tt(), s = As(null), [c, d] = Et({ x: a.x, y: a.y });
|
2295
|
-
if (
|
2295
|
+
if (zn(() => {
|
2296
2296
|
(() => {
|
2297
2297
|
const h = s.current, m = r.current;
|
2298
2298
|
if (!h || !m) return;
|
@@ -2411,8 +2411,8 @@ const Mu = ({
|
|
2411
2411
|
hoveredAreaData: null,
|
2412
2412
|
isAreaHovered: !1,
|
2413
2413
|
cursorPos: { x: 0, y: 0 }
|
2414
|
-
}), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: T, cursorPos: v } = C, w = T && E && y, x = !w, R = [...r, ...o], D = R[0]?.dataset.length ?? 0,
|
2415
|
-
(se, He) => r.reduce((
|
2414
|
+
}), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: T, cursorPos: v } = C, w = T && E && y, x = !w, R = [...r, ...o], D = R[0]?.dataset.length ?? 0, $ = R.flatMap((se) => se.dataset.map((He) => He.x)), O = R.flatMap((se) => se.dataset.map((He) => He.y)), L = r[0]?.dataset?.map(
|
2415
|
+
(se, He) => r.reduce((We, _n) => We + _n.dataset[He]?.y || 0, 0)
|
2416
2416
|
) ?? [0], U = Math.max(...L), P = Math.max(
|
2417
2417
|
...o.flatMap((se) => se.dataset.map((He) => He.y))
|
2418
2418
|
), j = Math.floor(Math.min(...O) / 100) * 100, he = Math.ceil(Math.max(U, P) / 100) * 100, V = r.map((se, He) => ({
|
@@ -2421,22 +2421,22 @@ const Mu = ({
|
|
2421
2421
|
top_level_guid: se.top_level_category_guid,
|
2422
2422
|
area: !0,
|
2423
2423
|
color: r[He].category_color ?? d.palette.primary.main,
|
2424
|
-
data: se.dataset.map((
|
2424
|
+
data: se.dataset.map((We) => We.y),
|
2425
2425
|
label: r[He].category_name,
|
2426
2426
|
stack: "total",
|
2427
2427
|
type: "line",
|
2428
2428
|
highlightScope: { highlight: "item" },
|
2429
|
-
valueFormatter: (
|
2429
|
+
valueFormatter: (We) => B(We, "0,0")
|
2430
2430
|
})), Ce = o.map((se, He) => ({
|
2431
2431
|
id: `unstacked-${He}`,
|
2432
2432
|
guid: se.category_guid,
|
2433
2433
|
top_level_guid: se.top_level_category_guid,
|
2434
2434
|
area: !1,
|
2435
2435
|
color: se.category_color,
|
2436
|
-
data: se.dataset.map((
|
2436
|
+
data: se.dataset.map((We) => We.y),
|
2437
2437
|
label: se.category_name,
|
2438
2438
|
type: "line",
|
2439
|
-
valueFormatter: (
|
2439
|
+
valueFormatter: (We) => B(We, "0,0")
|
2440
2440
|
})), me = [...V, ...Ce], _e = [
|
2441
2441
|
...V.map(({ guid: se, top_level_guid: He }) => ({
|
2442
2442
|
guid: se,
|
@@ -2447,10 +2447,10 @@ const Mu = ({
|
|
2447
2447
|
top_level_guid: He
|
2448
2448
|
}))
|
2449
2449
|
], Pe = (se) => {
|
2450
|
-
const
|
2450
|
+
const We = se.startsWith("stacked-") ? r[parseInt(se.split("-")[1])] : o[parseInt(se.split("-")[1])];
|
2451
2451
|
return {
|
2452
|
-
guid:
|
2453
|
-
topLevelGuid:
|
2452
|
+
guid: We?.category_guid,
|
2453
|
+
topLevelGuid: We?.top_level_category_guid
|
2454
2454
|
};
|
2455
2455
|
}, ge = (se) => {
|
2456
2456
|
m(se), i?.(se ?? "");
|
@@ -2460,25 +2460,25 @@ const Mu = ({
|
|
2460
2460
|
const se = Pe(String(E)).guid;
|
2461
2461
|
se && a?.(se);
|
2462
2462
|
}, Te = (se) => {
|
2463
|
-
const He = String(se?.seriesId),
|
2463
|
+
const He = String(se?.seriesId), We = Pe(He).guid, _n = me.find((_i) => _i.id === He), Ga = _n && se?.dataIndex !== void 0, Ba = _n && se?.dataIndex === void 0;
|
2464
2464
|
if (Ga)
|
2465
2465
|
f({
|
2466
2466
|
hoveredSeriesId: He,
|
2467
2467
|
hoveredAreaData: null,
|
2468
2468
|
isAreaHovered: !1,
|
2469
2469
|
cursorPos: v
|
2470
|
-
}), n?.(
|
2470
|
+
}), n?.(We);
|
2471
2471
|
else if (Ba) {
|
2472
|
-
const
|
2473
|
-
x:
|
2472
|
+
const _i = _n?.data.map((Pa, Ha) => ({
|
2473
|
+
x: $[Ha],
|
2474
2474
|
y: Pa
|
2475
2475
|
})) ?? [];
|
2476
2476
|
f({
|
2477
2477
|
hoveredSeriesId: He,
|
2478
|
-
hoveredAreaData:
|
2478
|
+
hoveredAreaData: _i,
|
2479
2479
|
isAreaHovered: !0,
|
2480
2480
|
cursorPos: v
|
2481
|
-
}), e?.(
|
2481
|
+
}), e?.(We);
|
2482
2482
|
} else
|
2483
2483
|
f({
|
2484
2484
|
hoveredSeriesId: null,
|
@@ -2488,8 +2488,8 @@ const Mu = ({
|
|
2488
2488
|
});
|
2489
2489
|
}, _t = (se) => {
|
2490
2490
|
const He = se.currentTarget.getBoundingClientRect();
|
2491
|
-
f((
|
2492
|
-
...
|
2491
|
+
f((We) => ({
|
2492
|
+
...We,
|
2493
2493
|
cursorPos: {
|
2494
2494
|
x: se.clientX - He.left,
|
2495
2495
|
y: se.clientY - He.top
|
@@ -2511,10 +2511,10 @@ const Mu = ({
|
|
2511
2511
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
2512
2512
|
strokeWidth: 3
|
2513
2513
|
},
|
2514
|
-
...h && V.reduce((se, He,
|
2515
|
-
const _n = `.MuiAreaElement-series-stacked-${
|
2514
|
+
...h && V.reduce((se, He, We) => {
|
2515
|
+
const _n = `.MuiAreaElement-series-stacked-${We}`;
|
2516
2516
|
return se[_n] = {
|
2517
|
-
opacity: V[
|
2517
|
+
opacity: V[We].guid === h ? 0.9 : 0.2
|
2518
2518
|
}, se;
|
2519
2519
|
}, {})
|
2520
2520
|
};
|
@@ -2544,7 +2544,7 @@ const Mu = ({
|
|
2544
2544
|
Xu,
|
2545
2545
|
{
|
2546
2546
|
categoryGuids: Pe(E),
|
2547
|
-
xData:
|
2547
|
+
xData: $,
|
2548
2548
|
...se
|
2549
2549
|
}
|
2550
2550
|
) : null
|
@@ -2556,7 +2556,7 @@ const Mu = ({
|
|
2556
2556
|
width: c,
|
2557
2557
|
xAxis: [
|
2558
2558
|
{
|
2559
|
-
data:
|
2559
|
+
data: $,
|
2560
2560
|
scaleType: "time",
|
2561
2561
|
valueFormatter: (se) => ae(se, te.MONTH_SHORT_YEAR),
|
2562
2562
|
tickNumber: D
|
@@ -2706,7 +2706,7 @@ const Mu = ({
|
|
2706
2706
|
padding: "8px 8px 8px 8px"
|
2707
2707
|
},
|
2708
2708
|
children: [
|
2709
|
-
/* @__PURE__ */ t(
|
2709
|
+
/* @__PURE__ */ t($e, { "aria-label": e, color: "primary", onClick: n, children: /* @__PURE__ */ t(nd, { color: "primary", sx: { fontSize: 22 } }) }),
|
2710
2710
|
/* @__PURE__ */ t(
|
2711
2711
|
M,
|
2712
2712
|
{
|
@@ -2786,7 +2786,7 @@ const Mu = ({
|
|
2786
2786
|
calendarActions: e,
|
2787
2787
|
color: n = "primary",
|
2788
2788
|
copy: i,
|
2789
|
-
range: a = [
|
2789
|
+
range: a = [Fe(le()), Xe(In())],
|
2790
2790
|
shouldShrinkToIcon: r = !0,
|
2791
2791
|
toolTipContent: o = "",
|
2792
2792
|
variant: s = "outlined"
|
@@ -2808,9 +2808,9 @@ const Mu = ({
|
|
2808
2808
|
g.useEffect(() => {
|
2809
2809
|
E(a);
|
2810
2810
|
}, [a]), g.useEffect(() => {
|
2811
|
-
(s === "timeframebuttons" || s === "timeframetabs") && e.onRangeChanged(
|
2811
|
+
(s === "timeframebuttons" || s === "timeframetabs") && e.onRangeChanged($());
|
2812
2812
|
}, [x]);
|
2813
|
-
const
|
2813
|
+
const $ = () => {
|
2814
2814
|
const P = Xe(In());
|
2815
2815
|
return [Xe(jt(P, x)), P];
|
2816
2816
|
}, O = (P) => {
|
@@ -2833,19 +2833,19 @@ const Mu = ({
|
|
2833
2833
|
};
|
2834
2834
|
return /* @__PURE__ */ l(M, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
2835
2835
|
/* @__PURE__ */ t(
|
2836
|
-
|
2836
|
+
Fn,
|
2837
2837
|
{
|
2838
2838
|
id: "select-date",
|
2839
2839
|
placement: "bottom",
|
2840
2840
|
sx: { display: { xs: r ? "inline-flex" : "none", sm: "none" } },
|
2841
2841
|
title: o,
|
2842
2842
|
children: /* @__PURE__ */ t(
|
2843
|
-
|
2843
|
+
$e,
|
2844
2844
|
{
|
2845
2845
|
"aria-describedby": "select-date",
|
2846
2846
|
"aria-label": "Select a date",
|
2847
2847
|
onClick: () => T(!0),
|
2848
|
-
children: /* @__PURE__ */ t(
|
2848
|
+
children: /* @__PURE__ */ t(H, { name: "calendar_month" })
|
2849
2849
|
}
|
2850
2850
|
)
|
2851
2851
|
}
|
@@ -2862,9 +2862,9 @@ const Mu = ({
|
|
2862
2862
|
},
|
2863
2863
|
children: [
|
2864
2864
|
s === "readonly" && /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
2865
|
-
/* @__PURE__ */ t(
|
2865
|
+
/* @__PURE__ */ t(H, { name: "calendar_month", size: 24 }),
|
2866
2866
|
/* @__PURE__ */ t(p, { bold: !0, children: ae(f[0], te.MONTH_DAY) }),
|
2867
|
-
/* @__PURE__ */ t(
|
2867
|
+
/* @__PURE__ */ t(H, { name: "remove" }),
|
2868
2868
|
/* @__PURE__ */ t(p, { bold: !0, children: ae(f[1], te.MONTH_DAY_YEAR) })
|
2869
2869
|
] }),
|
2870
2870
|
s !== "readonly" && s !== "timeframebuttons" && s !== "timeframetabs" && /* @__PURE__ */ l(
|
@@ -2889,7 +2889,7 @@ const Mu = ({
|
|
2889
2889
|
"aria-label": i.dateRangePreviousAria,
|
2890
2890
|
color: e.shouldDisablePrevious ? "secondary" : "primary",
|
2891
2891
|
onClick: () => e.shouldDisablePrevious ? null : O("previous"),
|
2892
|
-
children: /* @__PURE__ */ t(
|
2892
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_left", size: 20 })
|
2893
2893
|
}
|
2894
2894
|
),
|
2895
2895
|
/* @__PURE__ */ t(
|
@@ -2898,7 +2898,7 @@ const Mu = ({
|
|
2898
2898
|
"aria-disabled": e.shouldDisablePicker,
|
2899
2899
|
color: n,
|
2900
2900
|
onClick: () => e.shouldDisablePicker ? null : T(!0),
|
2901
|
-
startIcon: /* @__PURE__ */ t(
|
2901
|
+
startIcon: /* @__PURE__ */ t(H, { name: "calendar_month", size: 20 }),
|
2902
2902
|
sx: {
|
2903
2903
|
p: _ ? 0 : 8
|
2904
2904
|
},
|
@@ -2917,7 +2917,7 @@ const Mu = ({
|
|
2917
2917
|
"aria-label": i.dateRangeNextAria,
|
2918
2918
|
color: e.shouldDisableNext ? "secondary" : "primary",
|
2919
2919
|
onClick: () => e.shouldDisableNext ? null : O("next"),
|
2920
|
-
children: /* @__PURE__ */ t(
|
2920
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 20 })
|
2921
2921
|
}
|
2922
2922
|
)
|
2923
2923
|
]
|
@@ -2931,7 +2931,7 @@ const Mu = ({
|
|
2931
2931
|
orientation: "horizontal",
|
2932
2932
|
value: x,
|
2933
2933
|
children: D.buttons.map((P) => /* @__PURE__ */ t(
|
2934
|
-
|
2934
|
+
Ni,
|
2935
2935
|
{
|
2936
2936
|
onClick: () => U(P.value),
|
2937
2937
|
sx: {
|
@@ -3203,7 +3203,7 @@ const Dn = ({
|
|
3203
3203
|
/* @__PURE__ */ t(
|
3204
3204
|
wn,
|
3205
3205
|
{
|
3206
|
-
action: a ? /* @__PURE__ */ t(
|
3206
|
+
action: a ? /* @__PURE__ */ t($e, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(yt, { name: "close", size: 24 }) }) : r && /* @__PURE__ */ t(
|
3207
3207
|
ee,
|
3208
3208
|
{
|
3209
3209
|
endIcon: /* @__PURE__ */ t(yt, { name: "keyboard_arrow_right_rounded" }),
|
@@ -3240,7 +3240,7 @@ const Dn = ({
|
|
3240
3240
|
sx: h = {},
|
3241
3241
|
title: m = ""
|
3242
3242
|
}) => {
|
3243
|
-
const [C, { height: f, width: E }] = oc(), { onEvent: y } = z(), { isDesktop: T, isLargeDesktop: v, isMobile: w, isTablet: x } = ve(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids:
|
3243
|
+
const [C, { height: f, width: E }] = oc(), { onEvent: y } = z(), { isDesktop: T, isLargeDesktop: v, isMobile: w, isTablet: x } = ve(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids: $, setSelectedAccountGuids: O } = ce(), { common: L } = I(), U = () => {
|
3244
3244
|
d && (d(), y(W.WIDGET_BACK_CLICK));
|
3245
3245
|
};
|
3246
3246
|
if (!D)
|
@@ -3317,7 +3317,7 @@ const Dn = ({
|
|
3317
3317
|
onFilterClick: (me) => {
|
3318
3318
|
O(me), _?.();
|
3319
3319
|
},
|
3320
|
-
selectedAccountGuids:
|
3320
|
+
selectedAccountGuids: $,
|
3321
3321
|
showAccountNumbers: !1,
|
3322
3322
|
variant: "text"
|
3323
3323
|
}
|
@@ -3329,21 +3329,21 @@ const Dn = ({
|
|
3329
3329
|
ee,
|
3330
3330
|
{
|
3331
3331
|
onClick: Pe,
|
3332
|
-
startIcon: /* @__PURE__ */ t(
|
3332
|
+
startIcon: /* @__PURE__ */ t(H, { color: "primary", name: _e }),
|
3333
3333
|
sx: { my: 4 },
|
3334
3334
|
children: ge
|
3335
3335
|
},
|
3336
3336
|
_e
|
3337
|
-
) : /* @__PURE__ */ t(
|
3337
|
+
) : /* @__PURE__ */ t($e, { "aria-label": ge, color: "primary", onClick: Pe, children: /* @__PURE__ */ t(H, { name: _e }) }, _e) : T || x ? /* @__PURE__ */ t(
|
3338
3338
|
ee,
|
3339
3339
|
{
|
3340
3340
|
onClick: Pe,
|
3341
|
-
startIcon: /* @__PURE__ */ t(
|
3341
|
+
startIcon: /* @__PURE__ */ t(H, { name: _e }),
|
3342
3342
|
sx: { my: 4 },
|
3343
3343
|
children: ge
|
3344
3344
|
},
|
3345
3345
|
_e
|
3346
|
-
) : /* @__PURE__ */ t(
|
3346
|
+
) : /* @__PURE__ */ t($e, { "aria-label": ge, color: "primary", onClick: Pe, children: /* @__PURE__ */ t(H, { name: _e }) }, _e);
|
3347
3347
|
})
|
3348
3348
|
] }),
|
3349
3349
|
sx: {
|
@@ -3359,12 +3359,12 @@ const Dn = ({
|
|
3359
3359
|
},
|
3360
3360
|
title: T || x ? /* @__PURE__ */ t(cn, { children: m }) : /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", children: [
|
3361
3361
|
w && d && /* @__PURE__ */ t(
|
3362
|
-
|
3362
|
+
$e,
|
3363
3363
|
{
|
3364
3364
|
"aria-label": L.back_to_dashboard,
|
3365
3365
|
onClick: U,
|
3366
3366
|
sx: { p: 12, mr: 4 },
|
3367
|
-
children: /* @__PURE__ */ t(
|
3367
|
+
children: /* @__PURE__ */ t(H, { name: "arrow_back", size: 24 })
|
3368
3368
|
}
|
3369
3369
|
),
|
3370
3370
|
/* @__PURE__ */ t(mt, { children: m })
|
@@ -3460,7 +3460,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3460
3460
|
] })
|
3461
3461
|
}
|
3462
3462
|
);
|
3463
|
-
},
|
3463
|
+
}, di = A(i_), en = ({
|
3464
3464
|
allowDecimals: e = !0,
|
3465
3465
|
ariaLabel: n,
|
3466
3466
|
amount: i,
|
@@ -3489,9 +3489,9 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3489
3489
|
else
|
3490
3490
|
R = v;
|
3491
3491
|
g.useEffect(() => {
|
3492
|
-
|
3492
|
+
$(i);
|
3493
3493
|
}, [i]);
|
3494
|
-
const
|
3494
|
+
const $ = (O) => {
|
3495
3495
|
!a && (O === "" || O === "." || O === ",") ? (C(""), u?.(!1)) : Number(O) < d ? (C(
|
3496
3496
|
S(
|
3497
3497
|
E.error_amount_must_be_equal_to,
|
@@ -3522,7 +3522,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3522
3522
|
},
|
3523
3523
|
label: c,
|
3524
3524
|
name: `currency-input-${D.current}`,
|
3525
|
-
onChange: (O) =>
|
3525
|
+
onChange: (O) => $(O.target.value),
|
3526
3526
|
value: i,
|
3527
3527
|
...h
|
3528
3528
|
}
|
@@ -3556,13 +3556,13 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3556
3556
|
}
|
3557
3557
|
),
|
3558
3558
|
/* @__PURE__ */ t(
|
3559
|
-
|
3559
|
+
Fn,
|
3560
3560
|
{
|
3561
3561
|
describeChild: !0,
|
3562
3562
|
placement: a,
|
3563
3563
|
sx: { display: { xs: "inline-flex", lg: "none" } },
|
3564
3564
|
title: r,
|
3565
|
-
children: /* @__PURE__ */ t(
|
3565
|
+
children: /* @__PURE__ */ t($e, { onClick: i, children: e })
|
3566
3566
|
}
|
3567
3567
|
)
|
3568
3568
|
] });
|
@@ -3574,20 +3574,20 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3574
3574
|
searchValue: r
|
3575
3575
|
}) => {
|
3576
3576
|
const o = ft(), s = /* @__PURE__ */ t(
|
3577
|
-
|
3577
|
+
$e,
|
3578
3578
|
{
|
3579
3579
|
"aria-label": n,
|
3580
3580
|
className: "mx-cat-cancel-search-button",
|
3581
3581
|
color: "primary",
|
3582
3582
|
onClick: () => i(""),
|
3583
|
-
children: /* @__PURE__ */ t(
|
3583
|
+
children: /* @__PURE__ */ t(H, { name: "cancel", size: 24 })
|
3584
3584
|
}
|
3585
3585
|
);
|
3586
3586
|
return /* @__PURE__ */ t(M, { className: "mx-cmn-search-box", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ t(
|
3587
3587
|
An,
|
3588
3588
|
{
|
3589
3589
|
InputProps: {
|
3590
|
-
startAdornment: /* @__PURE__ */ t(Xi, { position: "start", children: /* @__PURE__ */ t(
|
3590
|
+
startAdornment: /* @__PURE__ */ t(Xi, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
|
3591
3591
|
endAdornment: /* @__PURE__ */ t(Xi, { position: "end", sx: { p: 0 }, children: r ? s : null })
|
3592
3592
|
},
|
3593
3593
|
"aria-label": e,
|
@@ -3618,7 +3618,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3618
3618
|
pr: 8,
|
3619
3619
|
py: 4,
|
3620
3620
|
sx: { "&:hover": { borderColor: o.palette.action.active }, ...i },
|
3621
|
-
children: /* @__PURE__ */ t(
|
3621
|
+
children: /* @__PURE__ */ t(Fn, { title: a, children: /* @__PURE__ */ t(
|
3622
3622
|
er,
|
3623
3623
|
{
|
3624
3624
|
control: /* @__PURE__ */ t(
|
@@ -3686,7 +3686,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3686
3686
|
}
|
3687
3687
|
), Hn = ({ iconName: e, label: n, onClick: i, value: a }) => {
|
3688
3688
|
const r = /* @__PURE__ */ l(Z, { children: [
|
3689
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
3689
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: e, sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
3690
3690
|
/* @__PURE__ */ t(
|
3691
3691
|
re,
|
3692
3692
|
{
|
@@ -3699,14 +3699,14 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3699
3699
|
] });
|
3700
3700
|
return i ? /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: i, children: [
|
3701
3701
|
r,
|
3702
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
3702
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 }) })
|
3703
3703
|
] }) }) : /* @__PURE__ */ t(X, { disableGutters: !1, disablePadding: !1, children: r });
|
3704
3704
|
}, na = ({
|
3705
3705
|
body: e,
|
3706
3706
|
iconName: n = "info",
|
3707
3707
|
title: i
|
3708
3708
|
}) => /* @__PURE__ */ t(
|
3709
|
-
|
3709
|
+
Fn,
|
3710
3710
|
{
|
3711
3711
|
enterTouchDelay: 500,
|
3712
3712
|
title: /* @__PURE__ */ l(b, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
|
@@ -3714,7 +3714,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3714
3714
|
/* @__PURE__ */ t(p, { sx: { whiteSpace: "unset" }, variant: "Small", children: e })
|
3715
3715
|
] }),
|
3716
3716
|
children: /* @__PURE__ */ t(
|
3717
|
-
|
3717
|
+
$e,
|
3718
3718
|
{
|
3719
3719
|
"aria-label": i,
|
3720
3720
|
sx: {
|
@@ -3723,7 +3723,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3723
3723
|
p: 0
|
3724
3724
|
},
|
3725
3725
|
children: /* @__PURE__ */ t(
|
3726
|
-
|
3726
|
+
H,
|
3727
3727
|
{
|
3728
3728
|
name: n,
|
3729
3729
|
sx: { color: "primary.light", fontSize: 16 },
|
@@ -3766,7 +3766,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3766
3766
|
] }) })
|
3767
3767
|
] }),
|
3768
3768
|
/* @__PURE__ */ t(
|
3769
|
-
|
3769
|
+
di,
|
3770
3770
|
{
|
3771
3771
|
onClose: () => o(!1),
|
3772
3772
|
showConnectWidget: r,
|
@@ -3774,7 +3774,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3774
3774
|
}
|
3775
3775
|
)
|
3776
3776
|
] });
|
3777
|
-
},
|
3777
|
+
}, Si = ({
|
3778
3778
|
iconColor: e,
|
3779
3779
|
header: n,
|
3780
3780
|
icon: i,
|
@@ -3977,17 +3977,17 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3977
3977
|
};
|
3978
3978
|
class s_ {
|
3979
3979
|
globalStore;
|
3980
|
-
api = new
|
3980
|
+
api = new yi("/", "");
|
3981
3981
|
copy = {};
|
3982
3982
|
featureNamespace = "experiences";
|
3983
3983
|
isInitialized = !1;
|
3984
3984
|
constructor(n) {
|
3985
|
-
this.globalStore = n, this.api = new
|
3985
|
+
this.globalStore = n, this.api = new yi(n.endpoint, n.sessionToken), Be(this);
|
3986
3986
|
}
|
3987
3987
|
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
3988
3988
|
// TODO: Remove this function
|
3989
3989
|
initialize = async (n, i) => {
|
3990
|
-
this.api = new
|
3990
|
+
this.api = new yi(n, i), await this.loadCopy();
|
3991
3991
|
};
|
3992
3992
|
loadCopy = async () => {
|
3993
3993
|
await this.getCopy(this.featureNamespace), Y(() => {
|
@@ -4198,7 +4198,7 @@ class m_ {
|
|
4198
4198
|
api = new To("/", "");
|
4199
4199
|
globalStore;
|
4200
4200
|
alert = "";
|
4201
|
-
dateRange = { start:
|
4201
|
+
dateRange = { start: Fe(le()), end: Xe(le()) };
|
4202
4202
|
budgets = [];
|
4203
4203
|
selectedBudget;
|
4204
4204
|
selectedSubBudget;
|
@@ -4312,7 +4312,7 @@ class m_ {
|
|
4312
4312
|
}
|
4313
4313
|
};
|
4314
4314
|
}
|
4315
|
-
const
|
4315
|
+
const ui = () => {
|
4316
4316
|
if (!g.useContext(Xn))
|
4317
4317
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
4318
4318
|
return Tr().uiStore;
|
@@ -4334,14 +4334,14 @@ const di = () => {
|
|
4334
4334
|
/* @__PURE__ */ t(Ye, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4335
4335
|
] });
|
4336
4336
|
}, Ir = A(p_), C_ = ({ onAddIncomeClick: e }) => {
|
4337
|
-
const n = pe(), { availableWidth: i } =
|
4337
|
+
const n = pe(), { availableWidth: i } = Wn(), { isMobile: a } = ve(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = dn(), {
|
4338
4338
|
daysUntilNextIncome: _,
|
4339
4339
|
expensesTilNextIncome: u,
|
4340
4340
|
selectedCashAccounts: h,
|
4341
4341
|
setNextIncome: m,
|
4342
4342
|
setSelectedCashAccounts: C,
|
4343
4343
|
setUpcomingExpenses: f
|
4344
|
-
} =
|
4344
|
+
} = ui(), { isDataLoaded: E, nextIncomeActivity: y, upcomingExpenses: T } = nt();
|
4345
4345
|
g.useEffect(() => {
|
4346
4346
|
C(
|
4347
4347
|
r.filter((D) => s.includes(D.guid))
|
@@ -4350,10 +4350,10 @@ const di = () => {
|
|
4350
4350
|
y && m(y), f(T);
|
4351
4351
|
}, [y, T]);
|
4352
4352
|
const v = g.useMemo(
|
4353
|
-
() => r.filter((D) => s.includes(D.guid)).reduce((D,
|
4353
|
+
() => r.filter((D) => s.includes(D.guid)).reduce((D, $) => D + ($?.balance || 0), 0),
|
4354
4354
|
[s, T]
|
4355
4355
|
), w = g.useMemo(
|
4356
|
-
() => u.filter((D) => s.includes(D.accountGuid || "")).reduce((D,
|
4356
|
+
() => u.filter((D) => s.includes(D.accountGuid || "")).reduce((D, $) => D + $.amount, 0),
|
4357
4357
|
[s, u]
|
4358
4358
|
), x = g.useMemo(
|
4359
4359
|
() => v - w,
|
@@ -4375,12 +4375,12 @@ const di = () => {
|
|
4375
4375
|
h.length
|
4376
4376
|
) })
|
4377
4377
|
] }),
|
4378
|
-
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(
|
4378
|
+
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(H, { name: "remove" }) }),
|
4379
4379
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
4380
4380
|
/* @__PURE__ */ t(Ye, { amount: w, variant: "H2" }),
|
4381
4381
|
/* @__PURE__ */ t(Oe, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
|
4382
4382
|
] }),
|
4383
|
-
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(
|
4383
|
+
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(H, { name: "equals" }) }),
|
4384
4384
|
/* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
|
4385
4385
|
/* @__PURE__ */ t(Ye, { amount: x, variant: "H2" }),
|
4386
4386
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
@@ -4395,7 +4395,7 @@ const di = () => {
|
|
4395
4395
|
ee,
|
4396
4396
|
{
|
4397
4397
|
onClick: e,
|
4398
|
-
startIcon: /* @__PURE__ */ t(
|
4398
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add" }),
|
4399
4399
|
sx: { fontSize: 13, lineHeight: "initial" },
|
4400
4400
|
children: c.add_income
|
4401
4401
|
}
|
@@ -4449,7 +4449,7 @@ const di = () => {
|
|
4449
4449
|
ee,
|
4450
4450
|
{
|
4451
4451
|
onClick: e,
|
4452
|
-
startIcon: /* @__PURE__ */ t(
|
4452
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add" }),
|
4453
4453
|
sx: { fontSize: 13 },
|
4454
4454
|
children: c.add_income
|
4455
4455
|
}
|
@@ -4557,7 +4557,7 @@ class ia {
|
|
4557
4557
|
updateTag = async (n) => this.fetchInstance.put(`${k.TAGS}/${n.guid}`, n).then((i) => i.tag);
|
4558
4558
|
updateTransaction = async (n) => this.fetchInstance.put(`${k.TRANSACTIONS}/${n.guid}`, n).then((i) => i.transaction);
|
4559
4559
|
}
|
4560
|
-
var
|
4560
|
+
var pi = /* @__PURE__ */ ((e) => (e[e.Category = 0] = "Category", e[e.Date = 1] = "Date", e[e.Memo = 2] = "Memo", e[e.Tags = 3] = "Tags", e))(pi || {}), Ki = /* @__PURE__ */ ((e) => (e[e.SplitTransaction = 0] = "SplitTransaction", e[e.HideTransaction = 1] = "HideTransaction", e[e.MerchantLogo = 2] = "MerchantLogo", e))(Ki || {});
|
4561
4561
|
const y_ = [
|
4562
4562
|
0,
|
4563
4563
|
1,
|
@@ -4921,7 +4921,7 @@ const y_ = [
|
|
4921
4921
|
}, x_ = (e, n, i) => {
|
4922
4922
|
const {
|
4923
4923
|
accounts: a = [],
|
4924
|
-
dateRange: r = { start:
|
4924
|
+
dateRange: r = { start: Fe(le()), end: In() },
|
4925
4925
|
custom: o = () => !0,
|
4926
4926
|
searchTerm: s = ""
|
4927
4927
|
} = e;
|
@@ -4943,7 +4943,7 @@ const y_ = [
|
|
4943
4943
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
4944
4944
|
return i.every((r) => a.indexOf(r) > -1);
|
4945
4945
|
};
|
4946
|
-
var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), w_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(w_ || {}), N_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(N_ || {}), D_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(D_ || {}), K = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(K || {}), sr = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(sr || {}), vt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(vt || {}),
|
4946
|
+
var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), w_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(w_ || {}), N_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(N_ || {}), D_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(D_ || {}), K = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(K || {}), sr = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(sr || {}), vt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(vt || {}), Ue = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(Ue || {}), St = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(St || {}), xr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(xr || {}), R_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(R_ || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ne || {}), at = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(at || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(on || {});
|
4947
4947
|
const lc = {
|
4948
4948
|
account_guid: "",
|
4949
4949
|
amount: 0,
|
@@ -4974,7 +4974,7 @@ const lc = {
|
|
4974
4974
|
tags: []
|
4975
4975
|
};
|
4976
4976
|
let O_ = class {
|
4977
|
-
beginDate =
|
4977
|
+
beginDate = Fe(/* @__PURE__ */ new Date());
|
4978
4978
|
endDate = Xe(/* @__PURE__ */ new Date());
|
4979
4979
|
expandedSplits = [];
|
4980
4980
|
isInitialized = !1;
|
@@ -5032,7 +5032,7 @@ class L_ {
|
|
5032
5032
|
}
|
5033
5033
|
loadTransactionData = async () => {
|
5034
5034
|
await Promise.all([
|
5035
|
-
this.loadAssociatedBeats(
|
5035
|
+
this.loadAssociatedBeats(Fe(/* @__PURE__ */ new Date())),
|
5036
5036
|
this.loadTags(),
|
5037
5037
|
this.loadTaggings(),
|
5038
5038
|
this.loadTransactionRules(),
|
@@ -5258,9 +5258,9 @@ const It = () => {
|
|
5258
5258
|
disableTypography: !0,
|
5259
5259
|
secondary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
5260
5260
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
|
5261
|
-
e.is_flagged && /* @__PURE__ */ t(
|
5262
|
-
e.is_hidden && /* @__PURE__ */ t(
|
5263
|
-
e.has_been_split && /* @__PURE__ */ t(
|
5261
|
+
e.is_flagged && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
5262
|
+
e.is_hidden && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 }),
|
5263
|
+
e.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
|
5264
5264
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: e.has_been_split ? a.split_transaction_category_label : e.category })
|
5265
5265
|
] }),
|
5266
5266
|
s && r && /* @__PURE__ */ t(p, { bold: !0, color: "action.active", variant: "XSmall", children: s.short_title })
|
@@ -5356,7 +5356,7 @@ const It = () => {
|
|
5356
5356
|
width: "100%"
|
5357
5357
|
},
|
5358
5358
|
children: [
|
5359
|
-
x && /* @__PURE__ */ t(Ia, { bgcolor: e, children:
|
5359
|
+
x && /* @__PURE__ */ t(Ia, { bgcolor: e, children: ki(w.date) }),
|
5360
5360
|
/* @__PURE__ */ t(Aa, { onClick: E, transaction: w }),
|
5361
5361
|
/* @__PURE__ */ t(G, { sx: { ml: R ? 24 : 0 } })
|
5362
5362
|
]
|
@@ -5392,9 +5392,9 @@ const It = () => {
|
|
5392
5392
|
onMouseLeave: () => a(!1),
|
5393
5393
|
width: "100%",
|
5394
5394
|
children: [
|
5395
|
-
e.row.has_been_split && /* @__PURE__ */ t(
|
5395
|
+
e.row.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
|
5396
5396
|
/* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: e.row.has_been_split ? n.split_transaction_category_label : e.row.category }),
|
5397
|
-
!e.row.has_been_split && i && /* @__PURE__ */ t(
|
5397
|
+
!e.row.has_been_split && i && /* @__PURE__ */ t(H, { name: "edit", sx: { color: "action.active" } })
|
5398
5398
|
]
|
5399
5399
|
}
|
5400
5400
|
);
|
@@ -5406,8 +5406,8 @@ const It = () => {
|
|
5406
5406
|
"aria-label": r ? i.is_hidden : i.is_flagged,
|
5407
5407
|
tabIndex: e.tabIndex,
|
5408
5408
|
children: [
|
5409
|
-
a && /* @__PURE__ */ t(
|
5410
|
-
!a && r && /* @__PURE__ */ t(
|
5409
|
+
a && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
5410
|
+
!a && r && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 }),
|
5411
5411
|
d && /* @__PURE__ */ t(
|
5412
5412
|
"svg",
|
5413
5413
|
{
|
@@ -5426,7 +5426,7 @@ const It = () => {
|
|
5426
5426
|
]
|
5427
5427
|
}
|
5428
5428
|
);
|
5429
|
-
}, X_ = A(j_),
|
5429
|
+
}, X_ = A(j_), hi = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", children: e.colDef.headerName }), q_ = (e) => /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
5430
5430
|
/* @__PURE__ */ t(
|
5431
5431
|
ln,
|
5432
5432
|
{
|
@@ -5466,7 +5466,7 @@ const It = () => {
|
|
5466
5466
|
field: "date",
|
5467
5467
|
headerName: o.date_title,
|
5468
5468
|
width: 103,
|
5469
|
-
renderHeader:
|
5469
|
+
renderHeader: hi,
|
5470
5470
|
renderCell: Y_,
|
5471
5471
|
sortingOrder: ["desc", "asc"]
|
5472
5472
|
},
|
@@ -5475,7 +5475,7 @@ const It = () => {
|
|
5475
5475
|
field: "payee",
|
5476
5476
|
headerName: o.payee_title,
|
5477
5477
|
flex: 0.33,
|
5478
|
-
renderHeader:
|
5478
|
+
renderHeader: hi,
|
5479
5479
|
renderCell: q_,
|
5480
5480
|
sortingOrder: ["asc", "desc"]
|
5481
5481
|
},
|
@@ -5483,7 +5483,7 @@ const It = () => {
|
|
5483
5483
|
field: "category",
|
5484
5484
|
headerName: o.category_title,
|
5485
5485
|
flex: 0.25,
|
5486
|
-
renderHeader:
|
5486
|
+
renderHeader: hi,
|
5487
5487
|
renderCell: (u) => /* @__PURE__ */ t(z_, { ...u }),
|
5488
5488
|
sortingOrder: ["asc", "desc"]
|
5489
5489
|
},
|
@@ -5491,7 +5491,7 @@ const It = () => {
|
|
5491
5491
|
field: "account",
|
5492
5492
|
headerName: o.account_title,
|
5493
5493
|
flex: 0.33,
|
5494
|
-
renderHeader:
|
5494
|
+
renderHeader: hi,
|
5495
5495
|
renderCell: U_,
|
5496
5496
|
sortingOrder: ["asc", "desc"]
|
5497
5497
|
},
|
@@ -5499,7 +5499,7 @@ const It = () => {
|
|
5499
5499
|
field: "amount",
|
5500
5500
|
headerName: o.amount_title,
|
5501
5501
|
flex: 0.25,
|
5502
|
-
renderHeader:
|
5502
|
+
renderHeader: hi,
|
5503
5503
|
renderCell: V_,
|
5504
5504
|
align: "right",
|
5505
5505
|
headerAlign: "right",
|
@@ -5698,7 +5698,7 @@ const J_ = ({
|
|
5698
5698
|
),
|
5699
5699
|
E && /* @__PURE__ */ l(M, { className: "mx-cat-subcategory-edit-container", sx: { marginRight: 24 }, children: [
|
5700
5700
|
/* @__PURE__ */ t(
|
5701
|
-
|
5701
|
+
$e,
|
5702
5702
|
{
|
5703
5703
|
"aria-label": S(_.edit_subcategory_aria, n.name),
|
5704
5704
|
onClick: () => {
|
@@ -5708,14 +5708,14 @@ const J_ = ({
|
|
5708
5708
|
}
|
5709
5709
|
),
|
5710
5710
|
/* @__PURE__ */ t(
|
5711
|
-
|
5711
|
+
$e,
|
5712
5712
|
{
|
5713
5713
|
"aria-label": S(_.delete_subcategory_aria, n.name),
|
5714
5714
|
edge: "end",
|
5715
5715
|
onClick: () => {
|
5716
5716
|
f(!0), o(!0), u(qt.ON_SUBCATEGORY_DELETE_CLICK);
|
5717
5717
|
},
|
5718
|
-
children: /* @__PURE__ */ t(
|
5718
|
+
children: /* @__PURE__ */ t(Ii, { color: "secondary" })
|
5719
5719
|
}
|
5720
5720
|
)
|
5721
5721
|
] }),
|
@@ -5921,7 +5921,7 @@ const J_ = ({
|
|
5921
5921
|
}, Oo = (e) => {
|
5922
5922
|
const n = [], i = le();
|
5923
5923
|
for (let a = 0; a <= Do; a++) {
|
5924
|
-
const r =
|
5924
|
+
const r = Fe(jt(i, Do - a)), s = e.filter(
|
5925
5925
|
(c) => c.year_month === Number(wt(r, "yyyyMM"))
|
5926
5926
|
).reduce((c, d) => c + d.total, 0);
|
5927
5927
|
n.push({
|
@@ -6023,7 +6023,7 @@ class bh {
|
|
6023
6023
|
}
|
6024
6024
|
};
|
6025
6025
|
loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
|
6026
|
-
const r = Le(
|
6026
|
+
const r = Le(Fe(i ?? jt(/* @__PURE__ */ new Date(), 11))), o = Le(Xe(a ?? /* @__PURE__ */ new Date()));
|
6027
6027
|
try {
|
6028
6028
|
const s = await this.api.getMonthlyCategoryTotals(r, o, n);
|
6029
6029
|
Y(() => {
|
@@ -6041,7 +6041,7 @@ class bh {
|
|
6041
6041
|
Le(a),
|
6042
6042
|
n
|
6043
6043
|
), o = await this.api.getMonthlyCategoryTotals(
|
6044
|
-
Le(
|
6044
|
+
Le(Fe(jt(a, 11))),
|
6045
6045
|
Le(Xe(a)),
|
6046
6046
|
n
|
6047
6047
|
);
|
@@ -6120,7 +6120,7 @@ const hc = ({ transaction: e }) => {
|
|
6120
6120
|
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category ?? c.actions_select_a_category })
|
6121
6121
|
}
|
6122
6122
|
),
|
6123
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6123
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
|
6124
6124
|
]
|
6125
6125
|
}
|
6126
6126
|
) }),
|
@@ -6175,7 +6175,7 @@ const hc = ({ transaction: e }) => {
|
|
6175
6175
|
i(q.ON_TRANSACTION_DATE_CLICK), d(!0);
|
6176
6176
|
},
|
6177
6177
|
children: [
|
6178
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6178
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "calendar_month", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6179
6179
|
/* @__PURE__ */ t(
|
6180
6180
|
re,
|
6181
6181
|
{
|
@@ -6184,7 +6184,7 @@ const hc = ({ transaction: e }) => {
|
|
6184
6184
|
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ae(Me(e.date), te.YEAR_MONTH_DAY) })
|
6185
6185
|
}
|
6186
6186
|
),
|
6187
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6187
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
|
6188
6188
|
]
|
6189
6189
|
}
|
6190
6190
|
) }),
|
@@ -6226,7 +6226,7 @@ const hc = ({ transaction: e }) => {
|
|
6226
6226
|
n(q.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
6227
6227
|
},
|
6228
6228
|
children: [
|
6229
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { variant: "rounded", children: /* @__PURE__ */ t(
|
6229
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { variant: "rounded", children: /* @__PURE__ */ t(Ii, { color: "secondary", fontSize: "small" }) }) }),
|
6230
6230
|
/* @__PURE__ */ t(
|
6231
6231
|
re,
|
6232
6232
|
{
|
@@ -6234,7 +6234,7 @@ const hc = ({ transaction: e }) => {
|
|
6234
6234
|
secondary: o.manual_transaction_delete_subtitle
|
6235
6235
|
}
|
6236
6236
|
),
|
6237
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6237
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(Ii, {}) })
|
6238
6238
|
]
|
6239
6239
|
}
|
6240
6240
|
) }),
|
@@ -6268,9 +6268,9 @@ const hc = ({ transaction: e }) => {
|
|
6268
6268
|
n(q.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
6269
6269
|
},
|
6270
6270
|
children: [
|
6271
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6271
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "delete", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6272
6272
|
/* @__PURE__ */ t(re, { primary: o.merchant_logo_title, secondary: o.merchant_logo_desc }),
|
6273
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6273
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
|
6274
6274
|
]
|
6275
6275
|
}
|
6276
6276
|
) }),
|
@@ -6318,13 +6318,13 @@ const hc = ({ transaction: e }) => {
|
|
6318
6318
|
role: "switch",
|
6319
6319
|
children: [
|
6320
6320
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ t(
|
6321
|
-
|
6321
|
+
H,
|
6322
6322
|
{
|
6323
6323
|
name: "visibilityOff",
|
6324
6324
|
sx: { color: "text.primary" },
|
6325
6325
|
weight: bt.Dark
|
6326
6326
|
}
|
6327
|
-
) : /* @__PURE__ */ t(
|
6327
|
+
) : /* @__PURE__ */ t(H, { name: "visibility", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6328
6328
|
/* @__PURE__ */ t(
|
6329
6329
|
re,
|
6330
6330
|
{
|
@@ -6403,7 +6403,7 @@ const hc = ({ transaction: e }) => {
|
|
6403
6403
|
n(q.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
6404
6404
|
},
|
6405
6405
|
children: [
|
6406
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6406
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "article", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6407
6407
|
/* @__PURE__ */ t(
|
6408
6408
|
re,
|
6409
6409
|
{
|
@@ -6420,7 +6420,7 @@ const hc = ({ transaction: e }) => {
|
|
6420
6420
|
)
|
6421
6421
|
}
|
6422
6422
|
),
|
6423
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6423
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
|
6424
6424
|
]
|
6425
6425
|
}
|
6426
6426
|
) }),
|
@@ -6512,7 +6512,7 @@ const hc = ({ transaction: e }) => {
|
|
6512
6512
|
}
|
6513
6513
|
),
|
6514
6514
|
/* @__PURE__ */ t(
|
6515
|
-
|
6515
|
+
$e,
|
6516
6516
|
{
|
6517
6517
|
"aria-label": c.split_transaction_delete_split_btn,
|
6518
6518
|
color: "secondary",
|
@@ -6520,7 +6520,7 @@ const hc = ({ transaction: e }) => {
|
|
6520
6520
|
s(q.ON_TRANSACTION_SPLIT_DELETE_CLICK), n(e);
|
6521
6521
|
},
|
6522
6522
|
sx: { w: 44, h: 44 },
|
6523
|
-
children: /* @__PURE__ */ t(
|
6523
|
+
children: /* @__PURE__ */ t(Ii, {})
|
6524
6524
|
}
|
6525
6525
|
)
|
6526
6526
|
] }),
|
@@ -6656,7 +6656,7 @@ const hc = ({ transaction: e }) => {
|
|
6656
6656
|
n(q.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...e, has_been_split: !0 }, f), h(!1);
|
6657
6657
|
}, D = async () => {
|
6658
6658
|
n(q.ON_TRANSACTION_SPLIT_CANCEL_CLICK), E([{ ...d }, { ..._ }]), h(!1);
|
6659
|
-
},
|
6659
|
+
}, $ = async () => {
|
6660
6660
|
n(W.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
6661
6661
|
transaction_guid: e.guid
|
6662
6662
|
});
|
@@ -6668,7 +6668,7 @@ const hc = ({ transaction: e }) => {
|
|
6668
6668
|
}, [f]);
|
6669
6669
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
6670
6670
|
e && /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: x, children: [
|
6671
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6671
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "call_split", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6672
6672
|
/* @__PURE__ */ t(
|
6673
6673
|
re,
|
6674
6674
|
{
|
@@ -6676,7 +6676,7 @@ const hc = ({ transaction: e }) => {
|
|
6676
6676
|
secondary: e.has_been_split || e.parent_guid ? o.split_transaction_unsplit_subtitle : o.split_transaction_desc
|
6677
6677
|
}
|
6678
6678
|
),
|
6679
|
-
/* @__PURE__ */ t(Ct, { children: e.has_been_split || e.parent_guid ? /* @__PURE__ */ t(
|
6679
|
+
/* @__PURE__ */ t(Ct, { children: e.has_been_split || e.parent_guid ? /* @__PURE__ */ t(H, { name: "delete", weight: bt.Dark }) : /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
|
6680
6680
|
] }) }),
|
6681
6681
|
/* @__PURE__ */ l(
|
6682
6682
|
ne,
|
@@ -6713,7 +6713,7 @@ const hc = ({ transaction: e }) => {
|
|
6713
6713
|
onClose: () => {
|
6714
6714
|
s(!1), C(!1);
|
6715
6715
|
},
|
6716
|
-
onPrimaryAction:
|
6716
|
+
onPrimaryAction: $,
|
6717
6717
|
onSecondaryAction: () => {
|
6718
6718
|
n(q.ON_TRANSACTION_UNSPLIT_CANCEL);
|
6719
6719
|
},
|
@@ -6791,7 +6791,7 @@ const hc = ({ transaction: e }) => {
|
|
6791
6791
|
] });
|
6792
6792
|
}, Mh = A(Lh), kh = ({ onSearchValueChanged: e, searchValue: n }) => {
|
6793
6793
|
const { common: i, transactions: a } = I(), r = ft(), o = /* @__PURE__ */ t(
|
6794
|
-
|
6794
|
+
$e,
|
6795
6795
|
{
|
6796
6796
|
"aria-label": a.tags_cancel_search || "Search",
|
6797
6797
|
onClick: () => e(""),
|
@@ -6835,7 +6835,7 @@ const hc = ({ transaction: e }) => {
|
|
6835
6835
|
disablePadding: !0,
|
6836
6836
|
secondaryAction: !i.is_default_tag && /* @__PURE__ */ l(b, { direction: "row", children: [
|
6837
6837
|
/* @__PURE__ */ t(
|
6838
|
-
|
6838
|
+
$e,
|
6839
6839
|
{
|
6840
6840
|
"aria-label": `Edit ${i.name} tag`,
|
6841
6841
|
color: "secondary",
|
@@ -6844,12 +6844,12 @@ const hc = ({ transaction: e }) => {
|
|
6844
6844
|
}
|
6845
6845
|
),
|
6846
6846
|
/* @__PURE__ */ t(
|
6847
|
-
|
6847
|
+
$e,
|
6848
6848
|
{
|
6849
6849
|
"aria-label": `Delete ${i.name} tag`,
|
6850
6850
|
color: "secondary",
|
6851
6851
|
onClick: w,
|
6852
|
-
children: /* @__PURE__ */ t(
|
6852
|
+
children: /* @__PURE__ */ t(Ii, { color: "secondary" })
|
6853
6853
|
}
|
6854
6854
|
)
|
6855
6855
|
] }),
|
@@ -6953,7 +6953,7 @@ const hc = ({ transaction: e }) => {
|
|
6953
6953
|
n(q.ON_TRANSACTION_TAGS_CLICK), _(!0);
|
6954
6954
|
},
|
6955
6955
|
children: [
|
6956
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6956
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "local_offer", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6957
6957
|
/* @__PURE__ */ t(
|
6958
6958
|
re,
|
6959
6959
|
{
|
@@ -6962,7 +6962,7 @@ const hc = ({ transaction: e }) => {
|
|
6962
6962
|
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.tags?.length > 0 ? f : s.tags_desc })
|
6963
6963
|
}
|
6964
6964
|
),
|
6965
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6965
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
|
6966
6966
|
]
|
6967
6967
|
}
|
6968
6968
|
) }),
|
@@ -7020,14 +7020,14 @@ const hc = ({ transaction: e }) => {
|
|
7020
7020
|
] }) : /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
|
7021
7021
|
/* @__PURE__ */ t(p, { bold: !0, children: e.description }),
|
7022
7022
|
/* @__PURE__ */ t(
|
7023
|
-
|
7023
|
+
$e,
|
7024
7024
|
{
|
7025
7025
|
"aria-label": a.description_edit_transaction_name,
|
7026
7026
|
onClick: () => {
|
7027
7027
|
s(!0), r(q.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
|
7028
7028
|
},
|
7029
7029
|
sx: { color: "action.active" },
|
7030
|
-
children: /* @__PURE__ */ t(
|
7030
|
+
children: /* @__PURE__ */ t(H, { name: "create", size: 22 })
|
7031
7031
|
}
|
7032
7032
|
)
|
7033
7033
|
] }) });
|
@@ -7036,7 +7036,7 @@ const hc = ({ transaction: e }) => {
|
|
7036
7036
|
a(W.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
|
7037
7037
|
};
|
7038
7038
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
7039
|
-
|
7039
|
+
Ni,
|
7040
7040
|
{
|
7041
7041
|
"aria-label": i.flag_btn_aria,
|
7042
7042
|
"aria-pressed": e.is_flagged,
|
@@ -7097,10 +7097,10 @@ const hc = ({ transaction: e }) => {
|
|
7097
7097
|
] })
|
7098
7098
|
] }),
|
7099
7099
|
/* @__PURE__ */ t(Tt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: n.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
7100
|
-
s ===
|
7101
|
-
s ===
|
7102
|
-
s ===
|
7103
|
-
s ===
|
7100
|
+
s === pi.Category && /* @__PURE__ */ t(hc, { transaction: i }),
|
7101
|
+
s === pi.Date && /* @__PURE__ */ t(gc, { transaction: i }),
|
7102
|
+
s === pi.Memo && /* @__PURE__ */ t(pc, { transaction: i }),
|
7103
|
+
s === pi.Tags && /* @__PURE__ */ t(Cc, { transaction: i }),
|
7104
7104
|
/* @__PURE__ */ t(G, { variant: c < n.length - 1 ? "inset" : "fullWidth" })
|
7105
7105
|
] }, s)) }) }),
|
7106
7106
|
/* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
@@ -7293,7 +7293,7 @@ const hc = ({ transaction: e }) => {
|
|
7293
7293
|
tags: v,
|
7294
7294
|
transactions: w,
|
7295
7295
|
updateTransaction: x
|
7296
|
-
} = Se(), { common: R, transactions: D } = I(), { userProfile:
|
7296
|
+
} = Se(), { common: R, transactions: D } = I(), { userProfile: $ } = dn(), { onEvent: O } = z(), {
|
7297
7297
|
displayedDateRange: L,
|
7298
7298
|
isCopyLoaded: U,
|
7299
7299
|
isInitialized: P,
|
@@ -7305,7 +7305,7 @@ const hc = ({ transaction: e }) => {
|
|
7305
7305
|
g.useEffect(() => {
|
7306
7306
|
Ce(r);
|
7307
7307
|
}, [r]), g.useEffect(() => {
|
7308
|
-
const st =
|
7308
|
+
const st = Fe(le()), jr = Xe(le());
|
7309
7309
|
V(st, jr), T({
|
7310
7310
|
dateRange: { start: st, end: jr },
|
7311
7311
|
accounts: he.map(($a) => $a.guid),
|
@@ -7323,20 +7323,20 @@ const hc = ({ transaction: e }) => {
|
|
7323
7323
|
const He = g.useMemo(
|
7324
7324
|
() => r.filter((st) => st.is_manual),
|
7325
7325
|
[r]
|
7326
|
-
),
|
7326
|
+
), We = Pe ? w.find((st) => st.guid === Pe) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid, Ga = (st) => {
|
7327
7327
|
V(st[0], st[1]);
|
7328
7328
|
}, Ba = (st) => {
|
7329
7329
|
h(st), T({
|
7330
7330
|
...E,
|
7331
7331
|
searchTerm: st
|
7332
7332
|
}), O(W.TRANSACTIONS_CLICK_SEARCH, { search_term: st });
|
7333
|
-
},
|
7333
|
+
}, _i = () => {
|
7334
7334
|
dc(w, v), O(W.TRANSACTIONS_CLICK_EXPORT);
|
7335
7335
|
}, Pa = () => {
|
7336
7336
|
He.length > 0 ? (C({
|
7337
7337
|
...lc,
|
7338
7338
|
date: Le(le()),
|
7339
|
-
user_guid:
|
7339
|
+
user_guid: $?.user_guid || ""
|
7340
7340
|
}), _e(
|
7341
7341
|
"addTransaction"
|
7342
7342
|
/* AddTransaction */
|
@@ -7348,7 +7348,7 @@ const hc = ({ transaction: e }) => {
|
|
7348
7348
|
}, Cl = async () => {
|
7349
7349
|
_t(!1), await o();
|
7350
7350
|
}, fl = async () => {
|
7351
|
-
|
7351
|
+
We && !We.has_been_viewed && await x({ ...We, has_been_viewed: !0 }), _e("");
|
7352
7352
|
};
|
7353
7353
|
return !U || !P || !un ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
7354
7354
|
Ot,
|
@@ -7358,7 +7358,7 @@ const hc = ({ transaction: e }) => {
|
|
7358
7358
|
{
|
7359
7359
|
iconName: "open_in_new",
|
7360
7360
|
label: D.export_csv_btn,
|
7361
|
-
onClick:
|
7361
|
+
onClick: _i
|
7362
7362
|
},
|
7363
7363
|
{
|
7364
7364
|
iconName: "add",
|
@@ -7439,16 +7439,16 @@ const hc = ({ transaction: e }) => {
|
|
7439
7439
|
isOpen: me === "transaction",
|
7440
7440
|
onClose: fl,
|
7441
7441
|
title: D.details_title,
|
7442
|
-
children:
|
7442
|
+
children: We && /* @__PURE__ */ t(qn, { transaction: We })
|
7443
7443
|
}
|
7444
7444
|
),
|
7445
|
-
|
7445
|
+
We && me === "category" && /* @__PURE__ */ t(
|
7446
7446
|
Qh,
|
7447
7447
|
{
|
7448
7448
|
onClose: () => {
|
7449
7449
|
c(""), _e(""), ge("");
|
7450
7450
|
},
|
7451
|
-
transaction:
|
7451
|
+
transaction: We
|
7452
7452
|
}
|
7453
7453
|
),
|
7454
7454
|
/* @__PURE__ */ t(
|
@@ -7475,7 +7475,7 @@ const hc = ({ transaction: e }) => {
|
|
7475
7475
|
}
|
7476
7476
|
),
|
7477
7477
|
/* @__PURE__ */ t(
|
7478
|
-
|
7478
|
+
di,
|
7479
7479
|
{
|
7480
7480
|
onClose: Cl,
|
7481
7481
|
showConnectWidget: Te,
|
@@ -7575,7 +7575,7 @@ const hc = ({ transaction: e }) => {
|
|
7575
7575
|
primaryTypographyProps: { fontWeight: 400 }
|
7576
7576
|
}
|
7577
7577
|
),
|
7578
|
-
e.recurrenceType === f.id && /* @__PURE__ */ t(
|
7578
|
+
e.recurrenceType === f.id && /* @__PURE__ */ t(H, { color: "primary", fill: !0, name: "check_circle", size: 24 })
|
7579
7579
|
] }) }, f.id),
|
7580
7580
|
/* @__PURE__ */ t(G, {})
|
7581
7581
|
] }, f.id)) })
|
@@ -7656,7 +7656,7 @@ const hc = ({ transaction: e }) => {
|
|
7656
7656
|
const R = s.filter((D) => D.sequenceGuid === e.sequenceGuid).map((D) => D.transactionGuid);
|
7657
7657
|
d({
|
7658
7658
|
...c,
|
7659
|
-
custom: (D) => !!R.find((
|
7659
|
+
custom: (D) => !!R.find(($) => D.guid === $)
|
7660
7660
|
});
|
7661
7661
|
} else !T && e.scheduledPaymentGuid && d({
|
7662
7662
|
...c,
|
@@ -7722,7 +7722,7 @@ const hc = ({ transaction: e }) => {
|
|
7722
7722
|
{
|
7723
7723
|
color: "error",
|
7724
7724
|
onClick: x,
|
7725
|
-
startIcon: /* @__PURE__ */ t(
|
7725
|
+
startIcon: /* @__PURE__ */ t(H, { name: "delete" }),
|
7726
7726
|
sx: { mx: 24, my: 16 },
|
7727
7727
|
variant: "text",
|
7728
7728
|
children: T ? i.delete_income_title : i.delete_expense_title
|
@@ -7888,8 +7888,8 @@ const hc = ({ transaction: e }) => {
|
|
7888
7888
|
textTransform: "uppercase",
|
7889
7889
|
width: "100%",
|
7890
7890
|
children: [
|
7891
|
-
d && /* @__PURE__ */ t(
|
7892
|
-
_ && /* @__PURE__ */ t(
|
7891
|
+
d && /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 12 }),
|
7892
|
+
_ && /* @__PURE__ */ t(H, { color: "error", fill: !0, name: "cancel", size: 12 }),
|
7893
7893
|
/* @__PURE__ */ t(p, { bold: !0, color: "secondary.light", variant: "XSmall", children: h })
|
7894
7894
|
]
|
7895
7895
|
}
|
@@ -8054,7 +8054,7 @@ const hc = ({ transaction: e }) => {
|
|
8054
8054
|
};
|
8055
8055
|
return /* @__PURE__ */ l(b, { bgcolor: e, gap: 24, height: "100%", children: [
|
8056
8056
|
/* @__PURE__ */ l(b, { children: [
|
8057
|
-
/* @__PURE__ */ t(Ia, { bgcolor: e, children:
|
8057
|
+
/* @__PURE__ */ t(Ia, { bgcolor: e, children: ki(s.date) }),
|
8058
8058
|
/* @__PURE__ */ t(Aa, { transaction: s })
|
8059
8059
|
] }),
|
8060
8060
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
@@ -8063,7 +8063,7 @@ const hc = ({ transaction: e }) => {
|
|
8063
8063
|
{
|
8064
8064
|
InputLabelProps: { shrink: !0 },
|
8065
8065
|
SelectProps: {
|
8066
|
-
IconComponent: (u) => /* @__PURE__ */ t(
|
8066
|
+
IconComponent: (u) => /* @__PURE__ */ t(H, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
|
8067
8067
|
},
|
8068
8068
|
defaultValue: 0,
|
8069
8069
|
label: c.frequency,
|
@@ -8086,7 +8086,7 @@ const hc = ({ transaction: e }) => {
|
|
8086
8086
|
}
|
8087
8087
|
) })
|
8088
8088
|
] });
|
8089
|
-
}, Tc = A(ug),
|
8089
|
+
}, Tc = A(ug), xi = (e) => e.top_level_category_guid !== N.INCOME && e.transaction_type === St.DEBIT, Ac = (e, n) => xi(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1, Yn = (e) => e.top_level_category_guid === N.INCOME || e.top_level_category_guid === N.TRANSFER && e.transaction_type === St.CREDIT, Or = (e, n) => Yn(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description?.toLowerCase().includes(n.toLowerCase()) || e.feed_description?.toLowerCase().includes(n.toLowerCase()) : !1, _g = ({
|
8090
8090
|
isIncome: e = !1,
|
8091
8091
|
label: n,
|
8092
8092
|
onAddActivity: i = () => null
|
@@ -8095,16 +8095,16 @@ const hc = ({ transaction: e }) => {
|
|
8095
8095
|
() => _.find((D) => D.guid === m),
|
8096
8096
|
[m]
|
8097
8097
|
), w = () => {
|
8098
|
-
h(!0), d(e ? { ...c, custom:
|
8098
|
+
h(!0), d(e ? { ...c, custom: Yn } : { ...c, custom: xi });
|
8099
8099
|
}, x = async () => {
|
8100
8100
|
if (i(), !v || !y) {
|
8101
8101
|
R();
|
8102
8102
|
return;
|
8103
8103
|
}
|
8104
8104
|
if (e) {
|
8105
|
-
const D = yc(v, f, y),
|
8106
|
-
if (
|
8107
|
-
const O = Ec(
|
8105
|
+
const D = yc(v, f, y), $ = await o(D);
|
8106
|
+
if ($) {
|
8107
|
+
const O = Ec($, v);
|
8108
8108
|
await r(O);
|
8109
8109
|
}
|
8110
8110
|
} else {
|
@@ -8118,10 +8118,10 @@ const hc = ({ transaction: e }) => {
|
|
8118
8118
|
return /* @__PURE__ */ l(M, { children: [
|
8119
8119
|
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(de, { onClick: w, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
8120
8120
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
8121
|
-
/* @__PURE__ */ t(
|
8121
|
+
/* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
8122
8122
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
8123
8123
|
] }),
|
8124
|
-
/* @__PURE__ */ t(
|
8124
|
+
/* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
8125
8125
|
] }) }) }) }),
|
8126
8126
|
/* @__PURE__ */ t(G, {}),
|
8127
8127
|
/* @__PURE__ */ t(
|
@@ -8138,7 +8138,7 @@ const hc = ({ transaction: e }) => {
|
|
8138
8138
|
onSearch: (D) => {
|
8139
8139
|
d({
|
8140
8140
|
...c,
|
8141
|
-
custom: (
|
8141
|
+
custom: ($) => e ? D ? Or($, D) : Yn($) : D ? Ac($, D) : xi($)
|
8142
8142
|
});
|
8143
8143
|
},
|
8144
8144
|
onSelected: (D) => C(D)
|
@@ -8175,7 +8175,7 @@ const hc = ({ transaction: e }) => {
|
|
8175
8175
|
activityType: Qe.Expense,
|
8176
8176
|
amount: a.amount,
|
8177
8177
|
categoryGuid: r?.category_guid,
|
8178
|
-
expectedDate:
|
8178
|
+
expectedDate: Ri(a.occurs_on),
|
8179
8179
|
name: a.description,
|
8180
8180
|
institution: o?.user_name,
|
8181
8181
|
institutionGuid: o?.institution_guid,
|
@@ -8214,8 +8214,8 @@ const hc = ({ transaction: e }) => {
|
|
8214
8214
|
activityType: Qe.Income,
|
8215
8215
|
amount: u.amount,
|
8216
8216
|
categoryGuid: u.category_guid,
|
8217
|
-
expectedDate:
|
8218
|
-
occurredOnDate: u.occurred_on ?
|
8217
|
+
expectedDate: bi(u.expected_date),
|
8218
|
+
occurredOnDate: u.occurred_on ? bi(u.occurred_on) : void 0,
|
8219
8219
|
name: u.name,
|
8220
8220
|
institution: C ? cr(C) : void 0,
|
8221
8221
|
institutionGuid: C?.institution_guid,
|
@@ -8227,7 +8227,7 @@ const hc = ({ transaction: e }) => {
|
|
8227
8227
|
};
|
8228
8228
|
}), c = a.filter(
|
8229
8229
|
(u) => ai(Me(u.expected_date), {
|
8230
|
-
start:
|
8230
|
+
start: Fe(le()),
|
8231
8231
|
end: Mt(le(), 30)
|
8232
8232
|
})
|
8233
8233
|
).filter((u) => {
|
@@ -8245,7 +8245,7 @@ const hc = ({ transaction: e }) => {
|
|
8245
8245
|
activityType: Qe.Income,
|
8246
8246
|
amount: u.amount,
|
8247
8247
|
categoryGuid: u.category_guid,
|
8248
|
-
expectedDate:
|
8248
|
+
expectedDate: bi(u.expected_date),
|
8249
8249
|
name: u.name,
|
8250
8250
|
institution: f ? cr(f) : void 0,
|
8251
8251
|
institutionGuid: f?.institution_guid,
|
@@ -8262,7 +8262,7 @@ const hc = ({ transaction: e }) => {
|
|
8262
8262
|
}, Cg = (e, n, i) => {
|
8263
8263
|
const a = [], r = i.find((C) => C.scheduled_payment_guid === n.guid);
|
8264
8264
|
if (!r) return [];
|
8265
|
-
const o = e.find((C) => C.guid === r?.account_guid), s =
|
8265
|
+
const o = e.find((C) => C.guid === r?.account_guid), s = Ri(n.occurs_on), c = {
|
8266
8266
|
accountGuid: o?.guid,
|
8267
8267
|
activityStatus: et.Upcoming,
|
8268
8268
|
activityType: Qe.Expense,
|
@@ -8277,15 +8277,15 @@ const hc = ({ transaction: e }) => {
|
|
8277
8277
|
recurrenceDay: n.recurrence_day,
|
8278
8278
|
scheduledPaymentGuid: n.guid,
|
8279
8279
|
transactionGuid: ""
|
8280
|
-
}, d = n.recurrence_day, _ = le(), u =
|
8280
|
+
}, d = n.recurrence_day, _ = le(), u = Fe(le()), h = Mt(le(), 30);
|
8281
8281
|
let m = u;
|
8282
8282
|
switch (n.recurrence_type) {
|
8283
8283
|
case Q.EveryWeek:
|
8284
|
-
for (m =
|
8284
|
+
for (m = Ti(m, d); we(m, h); )
|
8285
8285
|
a.push({
|
8286
8286
|
...c,
|
8287
8287
|
expectedDate: m
|
8288
|
-
}), m =
|
8288
|
+
}), m = Ti(m, d);
|
8289
8289
|
break;
|
8290
8290
|
case Q.EveryOtherWeek:
|
8291
8291
|
if (we(s, u))
|
@@ -8365,7 +8365,7 @@ const hc = ({ transaction: e }) => {
|
|
8365
8365
|
}, fg = (e, n, i, a, r) => a.map((o) => {
|
8366
8366
|
const s = n.find((h) => h.cashflow_sequence_guid === o.guid), c = i.find((h) => h.cashflow_sequence_guid === o.guid), d = r.find((h) => h.guid === s?.transaction_guid), _ = e.find((h) => h.guid === d?.account_guid);
|
8367
8367
|
let u = /* @__PURE__ */ new Date();
|
8368
|
-
return s ? u =
|
8368
|
+
return s ? u = bi(s.expected_date) : c && (u = bi(c.expected_date)), {
|
8369
8369
|
activityStatus: et.Upcoming,
|
8370
8370
|
activityType: Qe.Income,
|
8371
8371
|
amount: o.amount,
|
@@ -8435,17 +8435,17 @@ const hc = ({ transaction: e }) => {
|
|
8435
8435
|
e === 0 && /* @__PURE__ */ t(mg, {}),
|
8436
8436
|
e === 1 && /* @__PURE__ */ t(Lr, {})
|
8437
8437
|
] });
|
8438
|
-
}, xc = A(yg),
|
8439
|
-
start:
|
8438
|
+
}, xc = A(yg), gi = (e, n) => e + n.amount, Ua = (e) => e.activityType === Qe.Income && ai(e.expectedDate, {
|
8439
|
+
start: Fe(le()),
|
8440
8440
|
end: Xe(le())
|
8441
8441
|
}), Fi = (e) => e.activityType === Qe.Expense && ai(e.expectedDate, {
|
8442
|
-
start:
|
8442
|
+
start: Fe(le()),
|
8443
8443
|
end: Xe(le())
|
8444
8444
|
}), Va = (e) => e.occurredOnDate && ai(e.occurredOnDate, {
|
8445
|
-
start:
|
8445
|
+
start: Fe(/* @__PURE__ */ new Date()),
|
8446
8446
|
end: Mt(le(), 30)
|
8447
8447
|
}) || ai(e.expectedDate, {
|
8448
|
-
start:
|
8448
|
+
start: Fe(/* @__PURE__ */ new Date()),
|
8449
8449
|
end: Mt(le(), 30)
|
8450
8450
|
}), Eg = ({ day: e, outsideCurrentMonth: n, ...i }) => {
|
8451
8451
|
const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { activities: o, setSelectedDay: s } = nt(), d = g.useMemo(
|
@@ -8531,7 +8531,7 @@ const hc = ({ transaction: e }) => {
|
|
8531
8531
|
li,
|
8532
8532
|
{
|
8533
8533
|
maxDate: Xe(gt(/* @__PURE__ */ new Date(), 1)),
|
8534
|
-
minDate:
|
8534
|
+
minDate: Fe(/* @__PURE__ */ new Date()),
|
8535
8535
|
onMonthChange: o,
|
8536
8536
|
showDaysOutsideCurrentMonth: !0,
|
8537
8537
|
slots: {
|
@@ -8647,7 +8647,7 @@ const hc = ({ transaction: e }) => {
|
|
8647
8647
|
/* @__PURE__ */ t(G, { sx: { mx: 24 } })
|
8648
8648
|
] }, `activity-${_}`)) })
|
8649
8649
|
] });
|
8650
|
-
},
|
8650
|
+
}, Ci = A(vg), wg = ({
|
8651
8651
|
title: e,
|
8652
8652
|
expected: n,
|
8653
8653
|
paid: i,
|
@@ -8676,7 +8676,7 @@ const hc = ({ transaction: e }) => {
|
|
8676
8676
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: s.expected })
|
8677
8677
|
] })
|
8678
8678
|
] }),
|
8679
|
-
o && /* @__PURE__ */ t(ee, { onClick: o, startIcon: /* @__PURE__ */ t(
|
8679
|
+
o && /* @__PURE__ */ t(ee, { onClick: o, startIcon: /* @__PURE__ */ t(H, { name: "add" }), variant: "text", children: s.add_new })
|
8680
8680
|
] }),
|
8681
8681
|
/* @__PURE__ */ t(oi, { data: d })
|
8682
8682
|
] });
|
@@ -8689,7 +8689,7 @@ const hc = ({ transaction: e }) => {
|
|
8689
8689
|
selectedDayActivities: c,
|
8690
8690
|
setSelectedDay: d,
|
8691
8691
|
upcomingActivities: _
|
8692
|
-
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(Fi).reduce(
|
8692
|
+
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(Fi).reduce(gi, 0), T = f.filter(Fi).reduce(gi, 0), v = E.filter(Fi).reduce(gi, 0), w = C.filter(Fi).length, x = C.filter(Ua).reduce(gi, 0), R = f.filter(Ua).reduce(gi, 0), D = C.filter(Ua).length, $ = (U, P) => {
|
8693
8693
|
h(P);
|
8694
8694
|
}, O = (U) => {
|
8695
8695
|
m(W.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
@@ -8722,7 +8722,7 @@ const hc = ({ transaction: e }) => {
|
|
8722
8722
|
}
|
8723
8723
|
),
|
8724
8724
|
!i && !n && /* @__PURE__ */ t(
|
8725
|
-
|
8725
|
+
Ci,
|
8726
8726
|
{
|
8727
8727
|
activities: _,
|
8728
8728
|
onActivityClick: O,
|
@@ -8730,7 +8730,7 @@ const hc = ({ transaction: e }) => {
|
|
8730
8730
|
}
|
8731
8731
|
),
|
8732
8732
|
(i || n) && /* @__PURE__ */ l(M, { children: [
|
8733
|
-
/* @__PURE__ */ l(Lt, { onChange:
|
8733
|
+
/* @__PURE__ */ l(Lt, { onChange: $, value: u, variant: "fullWidth", children: [
|
8734
8734
|
/* @__PURE__ */ t(
|
8735
8735
|
Ve,
|
8736
8736
|
{
|
@@ -8745,19 +8745,19 @@ const hc = ({ transaction: e }) => {
|
|
8745
8745
|
)
|
8746
8746
|
] }),
|
8747
8747
|
u === 0 && /* @__PURE__ */ t(
|
8748
|
-
|
8748
|
+
Ci,
|
8749
8749
|
{
|
8750
8750
|
activities: _,
|
8751
8751
|
onActivityClick: O
|
8752
8752
|
}
|
8753
8753
|
),
|
8754
|
-
u === 1 && /* @__PURE__ */ t(
|
8754
|
+
u === 1 && /* @__PURE__ */ t(Ci, { activities: f, onActivityClick: L })
|
8755
8755
|
] })
|
8756
8756
|
] }) }),
|
8757
8757
|
!i && !n && /* @__PURE__ */ t(zt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(b, { gap: 35, children: [
|
8758
8758
|
/* @__PURE__ */ t(vc, {}),
|
8759
8759
|
/* @__PURE__ */ t(
|
8760
|
-
|
8760
|
+
Ci,
|
8761
8761
|
{
|
8762
8762
|
activities: c || f,
|
8763
8763
|
onActivityClick: L,
|
@@ -8832,12 +8832,12 @@ const hc = ({ transaction: e }) => {
|
|
8832
8832
|
g.useEffect(() => {
|
8833
8833
|
i();
|
8834
8834
|
}, []);
|
8835
|
-
const { availableWidth: c } =
|
8835
|
+
const { availableWidth: c } = Wn(), d = c < 750;
|
8836
8836
|
return n ? /* @__PURE__ */ l(b, { flexDirection: d ? "column" : "row", width: "100%", children: [
|
8837
8837
|
/* @__PURE__ */ t(vc, {}),
|
8838
8838
|
!d && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
8839
8839
|
/* @__PURE__ */ t(
|
8840
|
-
|
8840
|
+
Ci,
|
8841
8841
|
{
|
8842
8842
|
activities: r || s.slice(0, 5),
|
8843
8843
|
isMini: !0,
|
@@ -8994,7 +8994,7 @@ class kg {
|
|
8994
8994
|
loadExpectedEvents = async () => {
|
8995
8995
|
try {
|
8996
8996
|
const n = await this.cashflowApi.getProjectedCashflowEvents(
|
8997
|
-
|
8997
|
+
Fe(le()),
|
8998
8998
|
Mt(le(), 30)
|
8999
8999
|
);
|
9000
9000
|
Y(() => {
|
@@ -9097,7 +9097,7 @@ const Gg = {
|
|
9097
9097
|
const a = Object.keys(oe).filter((r) => Number(r)).map((r) => ({
|
9098
9098
|
label: n.account_types[r],
|
9099
9099
|
value: Number(r),
|
9100
|
-
icon: /* @__PURE__ */ t(
|
9100
|
+
icon: /* @__PURE__ */ t(H, { name: Ws[r] })
|
9101
9101
|
}));
|
9102
9102
|
i.push({
|
9103
9103
|
label: n.account_type,
|
@@ -9112,7 +9112,7 @@ const Gg = {
|
|
9112
9112
|
const a = Object.keys(Ps).filter((r) => Number(r)).map((r) => ({
|
9113
9113
|
label: n.property_types[r],
|
9114
9114
|
value: Number(r),
|
9115
|
-
icon: /* @__PURE__ */ t(
|
9115
|
+
icon: /* @__PURE__ */ t(H, { name: ru[r] })
|
9116
9116
|
}));
|
9117
9117
|
i.push({
|
9118
9118
|
label: n.property_type,
|
@@ -9208,7 +9208,7 @@ const Gg = {
|
|
9208
9208
|
o
|
9209
9209
|
);
|
9210
9210
|
let u;
|
9211
|
-
(e.connectionStatus ===
|
9211
|
+
(e.connectionStatus === Kn.Error || e.connectionStatus === Kn.RequiresMfa) && (u = /* @__PURE__ */ t(Bg, { size: 16 }));
|
9212
9212
|
const h = /* @__PURE__ */ l(Z, { children: [
|
9213
9213
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
9214
9214
|
gr,
|
@@ -9262,7 +9262,7 @@ const Gg = {
|
|
9262
9262
|
children: n ? /* @__PURE__ */ t(de, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
9263
9263
|
}
|
9264
9264
|
);
|
9265
|
-
},
|
9265
|
+
}, vi = A(Ug), Vg = ({ remaining: e }) => /* @__PURE__ */ t(
|
9266
9266
|
X,
|
9267
9267
|
{
|
9268
9268
|
sx: {
|
@@ -9278,7 +9278,7 @@ const Gg = {
|
|
9278
9278
|
children: /* @__PURE__ */ t(Ir, { remaining: e })
|
9279
9279
|
}
|
9280
9280
|
);
|
9281
|
-
var
|
9281
|
+
var wi = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(wi || {});
|
9282
9282
|
const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
9283
9283
|
/* @__PURE__ */ l(X, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
9284
9284
|
/* @__PURE__ */ l(b, { alignItems: "center", height: 32, width: 32, children: [
|
@@ -9312,9 +9312,9 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9312
9312
|
px: 24
|
9313
9313
|
},
|
9314
9314
|
children: [
|
9315
|
-
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 12 }, children: n ===
|
9315
|
+
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 12 }, children: n === wi.EXPENSE ? i.expenses : i.income }),
|
9316
9316
|
/* @__PURE__ */ l(p, { bold: !0, sx: { fontSize: 13 }, children: [
|
9317
|
-
n ===
|
9317
|
+
n === wi.EXPENSE ? "-" : "+",
|
9318
9318
|
B(e, "0,0.00")
|
9319
9319
|
] })
|
9320
9320
|
]
|
@@ -9323,7 +9323,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9323
9323
|
/* @__PURE__ */ t(G, {})
|
9324
9324
|
] });
|
9325
9325
|
}, Po = A(zg), Ho = (e, n) => (i) => i.accountGuid === e.guid && (mr(i.expectedDate) || Zt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Yg = () => {
|
9326
|
-
const { availableWidth: e } =
|
9326
|
+
const { availableWidth: e } = Wn(), { cashflow: n } = I(), { upcomingExpenses: i, upcomingIncome: a } = nt(), { dateRange: r, selectedCashAccounts: o } = ui();
|
9327
9327
|
return /* @__PURE__ */ l(b, { children: [
|
9328
9328
|
/* @__PURE__ */ l(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
9329
9329
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
@@ -9355,7 +9355,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9355
9355
|
},
|
9356
9356
|
children: [
|
9357
9357
|
/* @__PURE__ */ t(
|
9358
|
-
|
9358
|
+
vi,
|
9359
9359
|
{
|
9360
9360
|
account: s,
|
9361
9361
|
listItemProps: {
|
@@ -9369,7 +9369,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9369
9369
|
c.length > 0 && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(
|
9370
9370
|
ie,
|
9371
9371
|
{
|
9372
|
-
subheader: /* @__PURE__ */ t(Po, { total: _, type:
|
9372
|
+
subheader: /* @__PURE__ */ t(Po, { total: _, type: wi.INCOME }),
|
9373
9373
|
sx: { width: "100%" },
|
9374
9374
|
children: c.map((h) => /* @__PURE__ */ t(Bo, { activity: h }, h.sequenceGuid))
|
9375
9375
|
}
|
@@ -9377,7 +9377,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9377
9377
|
d.length > 0 && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(
|
9378
9378
|
ie,
|
9379
9379
|
{
|
9380
|
-
subheader: /* @__PURE__ */ t(Po, { total: u, type:
|
9380
|
+
subheader: /* @__PURE__ */ t(Po, { total: u, type: wi.EXPENSE }),
|
9381
9381
|
sx: { width: "100%" },
|
9382
9382
|
children: d.map((h) => /* @__PURE__ */ t(Bo, { activity: h }, h.scheduledPaymentGuid))
|
9383
9383
|
}
|
@@ -9395,7 +9395,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9395
9395
|
}) })
|
9396
9396
|
] });
|
9397
9397
|
}, jg = A(Yg), Xg = () => {
|
9398
|
-
const { availableWidth: e } =
|
9398
|
+
const { availableWidth: e } = Wn(), n = pe(), { cashflow: i } = I(), { upcomingExpenses: a, upcomingIncome: r } = nt(), { dateRange: o, selectedCashAccounts: s } = ui(), c = [
|
9399
9399
|
{
|
9400
9400
|
field: "account",
|
9401
9401
|
flex: 1.5,
|
@@ -9689,7 +9689,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9689
9689
|
]
|
9690
9690
|
}
|
9691
9691
|
), $o = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (mr(i.expectedDate) || Zt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Jg = () => {
|
9692
|
-
const [e, n] = g.useState(!1), { availableWidth: i } =
|
9692
|
+
const [e, n] = g.useState(!1), { availableWidth: i } = Wn(), { cashflow: a } = I(), { upcomingExpenses: r, upcomingIncome: o } = nt(), { selectedAccountGuids: s } = ce(), { dateRange: c, selectedCashAccounts: d } = ui(), { userProfile: _ } = dn(), u = g.useMemo(
|
9693
9693
|
() => r.filter($o(s, c)),
|
9694
9694
|
[c, s, r]
|
9695
9695
|
), h = g.useMemo(
|
@@ -9722,7 +9722,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9722
9722
|
ee,
|
9723
9723
|
{
|
9724
9724
|
onClick: () => n(!0),
|
9725
|
-
startIcon: /* @__PURE__ */ t(
|
9725
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add" }),
|
9726
9726
|
sx: { fontSize: 13 },
|
9727
9727
|
children: a.add_income
|
9728
9728
|
}
|
@@ -9769,7 +9769,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9769
9769
|
ee,
|
9770
9770
|
{
|
9771
9771
|
onClick: () => n(!0),
|
9772
|
-
startIcon: /* @__PURE__ */ t(
|
9772
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add" }),
|
9773
9773
|
sx: { fontSize: 13 },
|
9774
9774
|
children: a.add_income
|
9775
9775
|
}
|
@@ -9831,7 +9831,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9831
9831
|
mr: 24,
|
9832
9832
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
9833
9833
|
width: 44,
|
9834
|
-
children: /* @__PURE__ */ t(
|
9834
|
+
children: /* @__PURE__ */ t(H, { color: "primary", name: "currency_exchange" })
|
9835
9835
|
}
|
9836
9836
|
),
|
9837
9837
|
i.bullet_one
|
@@ -9847,7 +9847,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9847
9847
|
mr: 24,
|
9848
9848
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
9849
9849
|
width: 44,
|
9850
|
-
children: /* @__PURE__ */ t(
|
9850
|
+
children: /* @__PURE__ */ t(H, { color: "primary", name: "cardiology" })
|
9851
9851
|
}
|
9852
9852
|
),
|
9853
9853
|
i.bullet_two
|
@@ -9863,7 +9863,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9863
9863
|
mr: 24,
|
9864
9864
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
9865
9865
|
width: 44,
|
9866
|
-
children: /* @__PURE__ */ t(
|
9866
|
+
children: /* @__PURE__ */ t(H, { color: "primary", name: "flare" })
|
9867
9867
|
}
|
9868
9868
|
),
|
9869
9869
|
i.bullet_three
|
@@ -9892,15 +9892,15 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9892
9892
|
transform: rotate(360deg);
|
9893
9893
|
}
|
9894
9894
|
`, om = () => {
|
9895
|
-
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Tr(), { isDirty: s } =
|
9895
|
+
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Tr(), { isDirty: s } = ui(), { isMobile: c } = ve(), { isCopyLoaded: d, setDisplayedDate: _ } = ce(), { filter: u, setFilter: h, transactions: m } = Se(), C = pe(), [f, E] = Et(!0), [y, T] = g.useState(Q.EveryMonth), [v, w] = Et(!1), [x, R] = g.useState(null), [D, $] = Et(1), [O, L] = Et([]), [U, P] = Et(""), j = g.useMemo(
|
9896
9896
|
() => m.find((_e) => _e.guid === U),
|
9897
9897
|
[U]
|
9898
9898
|
), he = !!i.length, V = async () => {
|
9899
|
-
|
9899
|
+
$(2), _(
|
9900
9900
|
// Beginning of the month, 90 days before today
|
9901
|
-
|
9901
|
+
Fe(ut(le(), 90)),
|
9902
9902
|
le()
|
9903
|
-
), h({ ...u, custom:
|
9903
|
+
), h({ ...u, custom: Yn }), $(3);
|
9904
9904
|
}, Ce = async () => {
|
9905
9905
|
if (!(O.length < 1)) {
|
9906
9906
|
w(!0);
|
@@ -9961,7 +9961,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9961
9961
|
/* @__PURE__ */ t(Oe, { mb: 24, children: a.add_income_description }),
|
9962
9962
|
O.length > 0 && !j && /* @__PURE__ */ l(Z, { children: [
|
9963
9963
|
/* @__PURE__ */ t(ie, { children: O.map((_e, Pe) => /* @__PURE__ */ l(g.Fragment, { children: [
|
9964
|
-
/* @__PURE__ */ t(Ia, { bgcolor: "background.paper", children:
|
9964
|
+
/* @__PURE__ */ t(Ia, { bgcolor: "background.paper", children: ki(
|
9965
9965
|
Le(_e.nextDate || _e.date)
|
9966
9966
|
) }),
|
9967
9967
|
/* @__PURE__ */ t(Aa, { transaction: _e }),
|
@@ -9973,7 +9973,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9973
9973
|
ee,
|
9974
9974
|
{
|
9975
9975
|
onClick: () => E(!0),
|
9976
|
-
startIcon: /* @__PURE__ */ t(
|
9976
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 20 }),
|
9977
9977
|
children: a.add_additional_income_button
|
9978
9978
|
}
|
9979
9979
|
)
|
@@ -9985,7 +9985,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9985
9985
|
bgcolor: "background.paper",
|
9986
9986
|
onSearch: (_e) => h({
|
9987
9987
|
...u,
|
9988
|
-
custom: (Pe) => _e ? Or(Pe, _e) :
|
9988
|
+
custom: (Pe) => _e ? Or(Pe, _e) : Yn(Pe)
|
9989
9989
|
}),
|
9990
9990
|
onSelected: (_e) => {
|
9991
9991
|
P(_e), E(!1);
|
@@ -10038,7 +10038,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10038
10038
|
"aria-disabled": O.length < 1 || v,
|
10039
10039
|
onClick: Ce,
|
10040
10040
|
startIcon: v ? /* @__PURE__ */ t(
|
10041
|
-
|
10041
|
+
H,
|
10042
10042
|
{
|
10043
10043
|
name: "progress_activity",
|
10044
10044
|
sx: {
|
@@ -10065,7 +10065,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10065
10065
|
setSelectedAccounts: r,
|
10066
10066
|
shouldDisableNextDate: o,
|
10067
10067
|
shouldDisablePrevDate: s
|
10068
|
-
} = ce(), { onEvent: c } = z(), { visibleCashAccounts: d } = Re(), { setFilter: _ } = Se(), { userProfile: u } = dn(), { dateRange: h, setSelectedCashAccounts: m } =
|
10068
|
+
} = ce(), { onEvent: c } = z(), { visibleCashAccounts: d } = Re(), { setFilter: _ } = Se(), { userProfile: u } = dn(), { dateRange: h, setSelectedCashAccounts: m } = ui(), { loadActivity: C } = nt(), { cashflow: f } = I(), { isCopyLoaded: E, isInitialized: y } = ce(), [T, v] = g.useState(!1);
|
10069
10069
|
return g.useEffect(() => {
|
10070
10070
|
y && C();
|
10071
10071
|
}, [y]), g.useEffect(() => {
|
@@ -10661,7 +10661,7 @@ const Cn = () => {
|
|
10661
10661
|
return Re().uiStore;
|
10662
10662
|
}, Da = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, pm = (e) => !Da(e) && !Oc(e), Rc = (e) => so.includes(e.top_level_category_guid) || so.includes(e.category_guid), Oc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, Cm = (e) => !Da(e) && !Rc(e) && !Oc(e), fm = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), kr = (e, n) => {
|
10663
10663
|
const i = [];
|
10664
|
-
let a =
|
10664
|
+
let a = Fe(jt(/* @__PURE__ */ new Date(), 5));
|
10665
10665
|
const r = /* @__PURE__ */ new Date();
|
10666
10666
|
for (; we(a, r); )
|
10667
10667
|
i.push({
|
@@ -10682,7 +10682,7 @@ const Cn = () => {
|
|
10682
10682
|
const n = [], i = e.filter(
|
10683
10683
|
(o) => o.top_level_category_guid !== N.INCOME && o.top_level_category_guid !== N.TRANSFER && o.total > 0
|
10684
10684
|
);
|
10685
|
-
let a =
|
10685
|
+
let a = Fe(jt(/* @__PURE__ */ new Date(), 5));
|
10686
10686
|
const r = Xe(/* @__PURE__ */ new Date());
|
10687
10687
|
for (; we(a, r); )
|
10688
10688
|
n.push({
|
@@ -10806,25 +10806,25 @@ const Lc = ({
|
|
10806
10806
|
].sort((x, R) => x - R).map((x) => new Date(x)), h = _.map((x) => {
|
10807
10807
|
const R = new Map(x.dataset.map((O) => [new Date(O.x).getTime(), O.y]));
|
10808
10808
|
let D = R.get(u[0].getTime()) ?? 0;
|
10809
|
-
const
|
10809
|
+
const $ = u.map((O) => {
|
10810
10810
|
const L = R.get(O.getTime()) ?? D;
|
10811
10811
|
return D = L, { x: O, y: L };
|
10812
10812
|
});
|
10813
|
-
return { ...x, dataset:
|
10813
|
+
return { ...x, dataset: $ };
|
10814
10814
|
}), m = h.reduce(
|
10815
10815
|
(x, R) => x + (R.dataset[0]?.y ?? 0),
|
10816
10816
|
0
|
10817
10817
|
), C = u.map((x, R) => {
|
10818
|
-
const D = R / (u.length - 1),
|
10819
|
-
return { x, y:
|
10818
|
+
const D = R / (u.length - 1), $ = m * (1 - D);
|
10819
|
+
return { x, y: $ };
|
10820
10820
|
}), f = Math.ceil(m / 100) * 100, E = u, y = h.map((x, R) => {
|
10821
|
-
const D = 1 - R / h.length * 0.5,
|
10821
|
+
const D = 1 - R / h.length * 0.5, $ = Rm(Dm, D);
|
10822
10822
|
return {
|
10823
10823
|
id: `debt-${R}`,
|
10824
10824
|
guid: x.guid,
|
10825
10825
|
label: x.name,
|
10826
10826
|
data: x.dataset.map((O) => O.y),
|
10827
|
-
color:
|
10827
|
+
color: $,
|
10828
10828
|
curve: "linear",
|
10829
10829
|
type: "line",
|
10830
10830
|
area: !0,
|
@@ -10852,7 +10852,7 @@ const Lc = ({
|
|
10852
10852
|
height: n,
|
10853
10853
|
onAreaClick: (x, R) => {
|
10854
10854
|
o?.();
|
10855
|
-
const D = y.find((
|
10855
|
+
const D = y.find(($) => $.id === R.seriesId);
|
10856
10856
|
d(W.DEBTS_CLICK_CHART_AREA, { account_guid: D?.guid });
|
10857
10857
|
},
|
10858
10858
|
onHighlightChange: (x) => {
|
@@ -11530,7 +11530,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11530
11530
|
field: "chevron",
|
11531
11531
|
headerName: "",
|
11532
11532
|
renderHeader: void 0,
|
11533
|
-
renderCell: () => /* @__PURE__ */ t(
|
11533
|
+
renderCell: () => /* @__PURE__ */ t(H, { name: "chevron_right'" }),
|
11534
11534
|
sortable: !0,
|
11535
11535
|
hideSortIcons: !0,
|
11536
11536
|
type: "custom",
|
@@ -11601,19 +11601,19 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11601
11601
|
"aria-haspopup": !0,
|
11602
11602
|
"aria-label": "prioritize-debts",
|
11603
11603
|
onClick: i,
|
11604
|
-
startIcon: /* @__PURE__ */ t(
|
11604
|
+
startIcon: /* @__PURE__ */ t(H, { name: o }),
|
11605
11605
|
sx: { justifyContent: "start", minWidth: 214, mx: 4 },
|
11606
11606
|
children: e
|
11607
11607
|
}
|
11608
11608
|
) : /* @__PURE__ */ t(
|
11609
|
-
|
11609
|
+
$e,
|
11610
11610
|
{
|
11611
11611
|
"aria-controls": "prioritize-debts",
|
11612
11612
|
"aria-describedby": "prioritize-debts",
|
11613
11613
|
"aria-haspopup": !0,
|
11614
11614
|
"aria-label": "prioritize-debts",
|
11615
11615
|
onClick: i,
|
11616
|
-
children: /* @__PURE__ */ t(
|
11616
|
+
children: /* @__PURE__ */ t(H, { name: o })
|
11617
11617
|
}
|
11618
11618
|
);
|
11619
11619
|
}, ip = A(({ buttonEl: e, onClose: n }) => {
|
@@ -11741,10 +11741,10 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11741
11741
|
}
|
11742
11742
|
);
|
11743
11743
|
}), sp = ({ onBackClick: e, sx: n }) => {
|
11744
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = ve(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = ce(), { setSelectedAccount: T } = $t(), { selectedDebtPriority: v, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: x } = Re(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile:
|
11745
|
-
const Ce =
|
11744
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = ve(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = ce(), { setSelectedAccount: T } = $t(), { selectedDebtPriority: v, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: x } = Re(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: $ } = ot(), { debts: O } = Sa(), L = g.useMemo(() => {
|
11745
|
+
const Ce = $?.extra_payment ?? 0;
|
11746
11746
|
return rp(O, v, Ce);
|
11747
|
-
}, [O, v,
|
11747
|
+
}, [O, v, $]);
|
11748
11748
|
g.useEffect(() => {
|
11749
11749
|
y(x), C(W.DEBTS_VIEW);
|
11750
11750
|
}, []), g.useEffect(() => {
|
@@ -11839,10 +11839,10 @@ function lp(e, n) {
|
|
11839
11839
|
function Uo(e, n) {
|
11840
11840
|
const i = { account: e, goal: n, guid: e.guid };
|
11841
11841
|
if (n) {
|
11842
|
-
const a = n.payment_due_at ? no(
|
11842
|
+
const a = n.payment_due_at ? no(Ai(n.payment_due_at)) : 1, r = io(/* @__PURE__ */ new Date()).setDate(a);
|
11843
11843
|
i.balance = Math.abs(n.amount - n.current_amount), i.interest_rate = n.interest_rate, i.is_paid_off = n.is_complete, i.monthly_payment = n.monthly_payment, i.name = n.name, i.original_balance = n.initial_amount, i.payment_due_date = r;
|
11844
11844
|
} else {
|
11845
|
-
const a = e.payment_due_at ? no(
|
11845
|
+
const a = e.payment_due_at ? no(Ai(e.payment_due_at)) : 1, r = io(/* @__PURE__ */ new Date()).setDate(a), o = Math.abs(e.available_balance ?? e.balance ?? 0), s = e.minimum_payment ?? void 0, c = e.interest_rate ?? e.apr ?? e.apy;
|
11846
11846
|
i.balance = Math.abs(o), i.interest_rate = c, i.is_paid_off = o === 0, i.monthly_payment = s, i.name = e?.name ?? cp.unnamed_label, i.original_balance = e.original_balance, i.payment_due_date = r;
|
11847
11847
|
}
|
11848
11848
|
return i.is_impossible = !1, i.priority = void 0, i.projected_payoff_date = void 0, i;
|
@@ -12325,7 +12325,7 @@ const gp = (e, n) => {
|
|
12325
12325
|
) }),
|
12326
12326
|
d.map((u) => /* @__PURE__ */ t(Gt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(ks, { onClick: () => o(u), children: /* @__PURE__ */ t(Bt, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12327
12327
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 6, children: [
|
12328
|
-
/* @__PURE__ */ t(
|
12328
|
+
/* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
12329
12329
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: u.name })
|
12330
12330
|
] }),
|
12331
12331
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(u.amount, "0,0.00") })
|
@@ -12834,7 +12834,7 @@ const gp = (e, n) => {
|
|
12834
12834
|
)
|
12835
12835
|
] });
|
12836
12836
|
}), j2 = A(({ onBackClick: e, sx: n }) => {
|
12837
|
-
const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = ce(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ot(), [T, v] = g.useState(0), [w, x] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0,
|
12837
|
+
const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = ce(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ot(), [T, v] = g.useState(0), [w, x] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, $ = f?.amount_allocated_for_retirement_goals || 0, O = o ? S(
|
12838
12838
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
12839
12839
|
B(R, "0,0")
|
12840
12840
|
) : "", L = o ? S(
|
@@ -12842,13 +12842,13 @@ const gp = (e, n) => {
|
|
12842
12842
|
B(D, "0,0")
|
12843
12843
|
) : "", U = o ? S(
|
12844
12844
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
12845
|
-
B(
|
12845
|
+
B($, "0,0")
|
12846
12846
|
) : "";
|
12847
12847
|
g.useEffect(() => {
|
12848
12848
|
c(r), i(W.GOALS_VIEW);
|
12849
12849
|
}, []), g.useEffect(() => {
|
12850
12850
|
s && C().finally();
|
12851
|
-
}, [s, R, D,
|
12851
|
+
}, [s, R, D, $]);
|
12852
12852
|
const P = () => {
|
12853
12853
|
i(W.GOALS_CLICK_FILTER);
|
12854
12854
|
}, j = () => {
|
@@ -12912,7 +12912,7 @@ const gp = (e, n) => {
|
|
12912
12912
|
}
|
12913
12913
|
),
|
12914
12914
|
V ? /* @__PURE__ */ t(
|
12915
|
-
|
12915
|
+
Si,
|
12916
12916
|
{
|
12917
12917
|
header: d.create_goals_header,
|
12918
12918
|
icon: "trophy",
|
@@ -12944,7 +12944,7 @@ const gp = (e, n) => {
|
|
12944
12944
|
}
|
12945
12945
|
),
|
12946
12946
|
/* @__PURE__ */ t(
|
12947
|
-
|
12947
|
+
Di,
|
12948
12948
|
{
|
12949
12949
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
12950
12950
|
autoHideDuration: 3500,
|
@@ -13660,7 +13660,7 @@ const Yc = 13, jp = (e, n) => e.filter((i) => {
|
|
13660
13660
|
}), Xp = (e, n) => [...e, ...n], Jo = (e) => {
|
13661
13661
|
if (e && e.length > 0)
|
13662
13662
|
return e[e.length - 1];
|
13663
|
-
}, qp = (e, n) => e.year_month - n.year_month, Zp = () => Array.from({ length: Yc }, (e, n) => Math.floor(
|
13663
|
+
}, qp = (e, n) => e.year_month - n.year_month, Zp = () => Array.from({ length: Yc }, (e, n) => Math.floor(Fe(jt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Qp = (e, n, i) => !e.length || !n.length ? [] : Zp().reduceRight((r, o) => {
|
13664
13664
|
const s = n.filter(
|
13665
13665
|
({ year_month: u }) => u === parseInt(wt(Me(o), "yyyyMM"))
|
13666
13666
|
), c = e.map((u) => {
|
@@ -13801,7 +13801,7 @@ const n1 = ({
|
|
13801
13801
|
onMouseLeave: r,
|
13802
13802
|
selectedData: o
|
13803
13803
|
}) => {
|
13804
|
-
const { isMobile: s } = ve(), { availableWidth: c } =
|
13804
|
+
const { isMobile: s } = ve(), { availableWidth: c } = Wn(), d = tt(), _ = c - 320, u = e.map((f) => ({
|
13805
13805
|
x: wt(Me(f.x), "MMM"),
|
13806
13806
|
y: f.y
|
13807
13807
|
})), h = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, C = (f) => ({
|
@@ -13926,7 +13926,7 @@ const n1 = ({
|
|
13926
13926
|
let o = r.palette.secondary.main, s = r.palette.secondary.main, c = "trending_flat";
|
13927
13927
|
return a.change < 0 ? c = "trending_down" : a.change > 0 && (o = r.palette.success.main, s = r.palette.success.main, c = "trending_up"), /* @__PURE__ */ l(ye, { alignItems: "center", direction: "row", spacing: 4, children: [
|
13928
13928
|
/* @__PURE__ */ t(
|
13929
|
-
|
13929
|
+
H,
|
13930
13930
|
{
|
13931
13931
|
name: c,
|
13932
13932
|
size: i,
|
@@ -13939,7 +13939,7 @@ const n1 = ({
|
|
13939
13939
|
/* @__PURE__ */ t(p, { variant: "Small", children: e })
|
13940
13940
|
] });
|
13941
13941
|
}, $r = A(c1), l1 = ({ hoveredData: e, selectedData: n }) => {
|
13942
|
-
const { net_worth: i } = I(), a = tt(), r = e || n, o = On(
|
13942
|
+
const { net_worth: i } = I(), a = tt(), r = e || n, o = On(Ai(r.x), "MMMM");
|
13943
13943
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", m: 24, children: [
|
13944
13944
|
/* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
|
13945
13945
|
/* @__PURE__ */ t(Ye, { amount: r.y, variant: "H2" }),
|
@@ -13989,14 +13989,14 @@ const n1 = ({
|
|
13989
13989
|
const [a, r] = g.useState(!1);
|
13990
13990
|
return /* @__PURE__ */ l(Z, { children: [
|
13991
13991
|
/* @__PURE__ */ t(X, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ l(de, { onClick: () => r(!a), children: [
|
13992
|
-
i && /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
13992
|
+
i && /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: i, size: 24, sx: { mr: 12 } }) }),
|
13993
13993
|
/* @__PURE__ */ t(
|
13994
13994
|
re,
|
13995
13995
|
{
|
13996
13996
|
primary: /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Body", children: n })
|
13997
13997
|
}
|
13998
13998
|
),
|
13999
|
-
/* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(
|
13999
|
+
/* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(H, { name: "expand_more", size: 24 }) })
|
14000
14000
|
] }) }),
|
14001
14001
|
/* @__PURE__ */ t(G, {}),
|
14002
14002
|
/* @__PURE__ */ t(pa, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
|
@@ -14157,7 +14157,7 @@ const n1 = ({
|
|
14157
14157
|
selectedData: f,
|
14158
14158
|
setHoveredData: E,
|
14159
14159
|
setSelectedData: y
|
14160
|
-
} = Ku(), { isMobile: T } = ve(), { onEvent: v } = z(), [w, x] = g.useState(!1), [R, D] = g.useState(6), [
|
14160
|
+
} = Ku(), { isMobile: T } = ve(), { onEvent: v } = z(), [w, x] = g.useState(!1), [R, D] = g.useState(6), [$, O] = g.useState(!1), [L, U] = g.useState(!1), [P, j] = g.useState(!1), he = async () => {
|
14161
14161
|
await m(a), await h(R), x(!0);
|
14162
14162
|
};
|
14163
14163
|
g.useEffect(() => {
|
@@ -14232,7 +14232,7 @@ const n1 = ({
|
|
14232
14232
|
}
|
14233
14233
|
)
|
14234
14234
|
] }) : /* @__PURE__ */ t(M, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ t(
|
14235
|
-
|
14235
|
+
Si,
|
14236
14236
|
{
|
14237
14237
|
header: s.empty_widget_header,
|
14238
14238
|
icon: "elevation",
|
@@ -14259,7 +14259,7 @@ const n1 = ({
|
|
14259
14259
|
ne,
|
14260
14260
|
{
|
14261
14261
|
ariaLabelClose: "Close",
|
14262
|
-
isOpen:
|
14262
|
+
isOpen: $,
|
14263
14263
|
onClose: () => O(!1),
|
14264
14264
|
shouldShowHeaderBorders: !1,
|
14265
14265
|
shouldShowHeaderShadow: !0,
|
@@ -14284,16 +14284,16 @@ const n1 = ({
|
|
14284
14284
|
) : /* @__PURE__ */ t(ue, {});
|
14285
14285
|
}), Z2 = (e) => {
|
14286
14286
|
switch (e) {
|
14287
|
-
case
|
14288
|
-
case
|
14287
|
+
case Ue.BudgetExceeded:
|
14288
|
+
case Ue.BudgetOffTarget:
|
14289
14289
|
return k.BUDGETS;
|
14290
|
-
case
|
14291
|
-
case
|
14292
|
-
case
|
14290
|
+
case Ue.DebtPaymentReminder:
|
14291
|
+
case Ue.AccountBalanceLow:
|
14292
|
+
case Ue.AccountDepositLarge:
|
14293
14293
|
return k.ACCOUNTS;
|
14294
|
-
case
|
14295
|
-
case
|
14296
|
-
case
|
14294
|
+
case Ue.TransactionExpenseLarge:
|
14295
|
+
case Ue.TransactionFeeCharge:
|
14296
|
+
case Ue.InternationalTransaction:
|
14297
14297
|
return k.TRANSACTIONS;
|
14298
14298
|
default:
|
14299
14299
|
return null;
|
@@ -14338,7 +14338,7 @@ class f1 {
|
|
14338
14338
|
};
|
14339
14339
|
}
|
14340
14340
|
const b1 = (e, n) => {
|
14341
|
-
const i =
|
14341
|
+
const i = Ai(n[e].delivered_at), a = Ai(n[e - 1]?.delivered_at);
|
14342
14342
|
return !xd(i, a);
|
14343
14343
|
}, y1 = ({ notification: e }) => {
|
14344
14344
|
const { accounts: n } = Re(), { budgets: i } = lt(), { accounts: a } = I(), r = n.find((d) => d.guid === e.entity_guid), o = i.find((d) => d.guid === e.entity_guid), s = e.entity_guid.includes("GOL"), c = {
|
@@ -14392,11 +14392,11 @@ const b1 = (e, n) => {
|
|
14392
14392
|
/* @__PURE__ */ t(E1, { notification: e }),
|
14393
14393
|
/* @__PURE__ */ t(p, { bold: !e.has_been_viewed, truncate: !1, variant: "Small", children: e.content })
|
14394
14394
|
] });
|
14395
|
-
}, T1 = ({ date: e }) => /* @__PURE__ */ t(M, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children:
|
14395
|
+
}, T1 = ({ date: e }) => /* @__PURE__ */ t(M, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: ki(e) }) }), A1 = ({ onClick: e }) => {
|
14396
14396
|
const { isLoading: n, loadNotifications: i, recentNotifications: a, markAllAsViewed: r } = ic(), { notifications: o } = I(), { isCopyLoaded: s } = ce(), c = (d) => {
|
14397
14397
|
e?.(d);
|
14398
14398
|
};
|
14399
|
-
return
|
14399
|
+
return zn(() => (i().finally(), () => {
|
14400
14400
|
r().finally();
|
14401
14401
|
}), []), /* @__PURE__ */ l(Rl, { sx: { p: 16 }, children: [
|
14402
14402
|
(!s || n) && /* @__PURE__ */ t(ue, { label: o?.loading, size: 40 }),
|
@@ -14431,22 +14431,22 @@ class ns {
|
|
14431
14431
|
}
|
14432
14432
|
const is = "PARENT-ENTITY", x1 = (e, n) => {
|
14433
14433
|
switch (e) {
|
14434
|
-
case
|
14434
|
+
case Ue.BudgetExceeded:
|
14435
14435
|
return n.notification_budget_exceeded;
|
14436
|
-
case
|
14436
|
+
case Ue.BudgetOffTarget:
|
14437
14437
|
return n.notification_budget_off_target;
|
14438
|
-
case
|
14438
|
+
case Ue.DebtPaymentReminder:
|
14439
14439
|
return n.notification_debt_payment_reminder;
|
14440
|
-
case
|
14440
|
+
case Ue.AccountBalanceLow:
|
14441
14441
|
return n.notification_low_balance;
|
14442
|
-
case
|
14443
|
-
case
|
14442
|
+
case Ue.AccountDepositLargePosted:
|
14443
|
+
case Ue.AccountDepositLarge:
|
14444
14444
|
return n.notification_large_deposit;
|
14445
|
-
case
|
14445
|
+
case Ue.TransactionExpenseLarge:
|
14446
14446
|
return n.notification_large_expense;
|
14447
|
-
case
|
14447
|
+
case Ue.TransactionFeeCharge:
|
14448
14448
|
return n.notification_transaction_fee;
|
14449
|
-
case
|
14449
|
+
case Ue.InternationalTransaction:
|
14450
14450
|
return n.notification_transaction_is_international;
|
14451
14451
|
default:
|
14452
14452
|
return "";
|
@@ -14492,12 +14492,12 @@ class w1 {
|
|
14492
14492
|
}
|
14493
14493
|
get accountProfiles() {
|
14494
14494
|
return this.detailedNotificationProfiles.filter(
|
14495
|
-
(n) => n.notification_type ===
|
14495
|
+
(n) => n.notification_type === Ue.DebtPaymentReminder || n.notification_type === Ue.AccountBalanceLow || n.notification_type === Ue.AccountDepositLarge || n.notification_type === Ue.AccountDepositLargePosted || n.notification_type === Ue.TransactionExpenseLarge || n.notification_type === Ue.TransactionFeeCharge || n.notification_type === Ue.InternationalTransaction
|
14496
14496
|
);
|
14497
14497
|
}
|
14498
14498
|
get budgetProfiles() {
|
14499
14499
|
return this.detailedNotificationProfiles.filter(
|
14500
|
-
(n) => n.notification_type ===
|
14500
|
+
(n) => n.notification_type === Ue.BudgetExceeded || n.notification_type === Ue.BudgetOffTarget
|
14501
14501
|
);
|
14502
14502
|
}
|
14503
14503
|
get clientCommunicationProfile() {
|
@@ -17111,7 +17111,7 @@ const R1 = ({
|
|
17111
17111
|
return /* @__PURE__ */ t(b, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: C.map(({ guid: f, icon: E, topics: y, title: T }, v) => {
|
17112
17112
|
const w = v + h;
|
17113
17113
|
return /* @__PURE__ */ l(
|
17114
|
-
|
17114
|
+
Oi,
|
17115
17115
|
{
|
17116
17116
|
disableGutters: !0,
|
17117
17117
|
expanded: w === c,
|
@@ -17130,19 +17130,19 @@ const R1 = ({
|
|
17130
17130
|
}),
|
17131
17131
|
children: [
|
17132
17132
|
/* @__PURE__ */ t(
|
17133
|
-
|
17133
|
+
Mi,
|
17134
17134
|
{
|
17135
17135
|
expandIcon: /* @__PURE__ */ t(_a, { sx: { color: "text.primary" } }),
|
17136
17136
|
sx: { height: 64, p: "14px 24px" },
|
17137
17137
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17138
|
-
/* @__PURE__ */ t(
|
17138
|
+
/* @__PURE__ */ t(H, { name: E, size: 24 }),
|
17139
17139
|
/* @__PURE__ */ t(p, { variant: "Body", children: T })
|
17140
17140
|
] })
|
17141
17141
|
}
|
17142
17142
|
),
|
17143
17143
|
/* @__PURE__ */ t(G, {}),
|
17144
17144
|
/* @__PURE__ */ t(
|
17145
|
-
|
17145
|
+
Li,
|
17146
17146
|
{
|
17147
17147
|
sx: {
|
17148
17148
|
ml: 56,
|
@@ -17284,7 +17284,7 @@ const R1 = ({
|
|
17284
17284
|
children: [
|
17285
17285
|
/* @__PURE__ */ l(M, { children: [
|
17286
17286
|
/* @__PURE__ */ l(b, { gap: 4, sx: { alignItems: "center", flexDirection: "row" }, children: [
|
17287
|
-
n && /* @__PURE__ */ t(
|
17287
|
+
n && /* @__PURE__ */ t(H, { name: "help", size: 20, sx: { color: "text.primary" } }),
|
17288
17288
|
/* @__PURE__ */ t(p, { color: "text.primary", variant: "H3", children: o })
|
17289
17289
|
] }),
|
17290
17290
|
i && /* @__PURE__ */ t(p, { color: "text.primary", variant: "H3", children: i })
|
@@ -17367,7 +17367,7 @@ const R1 = ({
|
|
17367
17367
|
) })
|
17368
17368
|
] }),
|
17369
17369
|
e.message && /* @__PURE__ */ t(
|
17370
|
-
|
17370
|
+
Di,
|
17371
17371
|
{
|
17372
17372
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
17373
17373
|
autoHideDuration: 3500,
|
@@ -17385,7 +17385,7 @@ const R1 = ({
|
|
17385
17385
|
}) => {
|
17386
17386
|
const [i, a] = g.useState(null);
|
17387
17387
|
return /* @__PURE__ */ t(b, { sx: { flex: 1, gap: 12, p: 12 }, children: e.map(({ icon: r, topics: o, title: s }, c) => /* @__PURE__ */ l(
|
17388
|
-
|
17388
|
+
Oi,
|
17389
17389
|
{
|
17390
17390
|
disableGutters: !0,
|
17391
17391
|
expanded: c === i,
|
@@ -17395,19 +17395,19 @@ const R1 = ({
|
|
17395
17395
|
sx: eC,
|
17396
17396
|
children: [
|
17397
17397
|
/* @__PURE__ */ t(
|
17398
|
-
|
17398
|
+
Mi,
|
17399
17399
|
{
|
17400
17400
|
expandIcon: /* @__PURE__ */ t(_a, { sx: { color: "text.primary" } }),
|
17401
17401
|
sx: { p: "14px 24px", height: 64 },
|
17402
17402
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17403
|
-
/* @__PURE__ */ t(
|
17403
|
+
/* @__PURE__ */ t(H, { name: r, size: 24 }),
|
17404
17404
|
/* @__PURE__ */ t(p, { variant: "Body", children: s })
|
17405
17405
|
] })
|
17406
17406
|
}
|
17407
17407
|
),
|
17408
17408
|
/* @__PURE__ */ t(G, {}),
|
17409
17409
|
/* @__PURE__ */ t(
|
17410
|
-
|
17410
|
+
Li,
|
17411
17411
|
{
|
17412
17412
|
sx: {
|
17413
17413
|
ml: 56,
|
@@ -17514,7 +17514,7 @@ const R1 = ({
|
|
17514
17514
|
y
|
17515
17515
|
)) }),
|
17516
17516
|
r.message && /* @__PURE__ */ t(
|
17517
|
-
|
17517
|
+
Di,
|
17518
17518
|
{
|
17519
17519
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
17520
17520
|
autoHideDuration: 3500,
|
@@ -17693,7 +17693,7 @@ const R1 = ({
|
|
17693
17693
|
}) => {
|
17694
17694
|
const { common: o } = I();
|
17695
17695
|
return /* @__PURE__ */ t(ne, { isOpen: i, onClose: r, title: e.request_support, children: /* @__PURE__ */ l(M, { sx: { px: 24 }, children: [
|
17696
|
-
/* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(
|
17696
|
+
/* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
17697
17697
|
/* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
17698
17698
|
/* @__PURE__ */ t($n, { children: e.request_support_success }),
|
17699
17699
|
/* @__PURE__ */ t(Oe, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
|
@@ -17730,7 +17730,7 @@ const R1 = ({
|
|
17730
17730
|
L === "other" ? f(!0) : y({ isOpen: !0, topic: O, type: L });
|
17731
17731
|
}, D = () => {
|
17732
17732
|
s(""), m(!1), f(!1), w();
|
17733
|
-
},
|
17733
|
+
}, $ = (O) => {
|
17734
17734
|
if (!c.email) {
|
17735
17735
|
s(e.request_support_email_not_exists_message, "error");
|
17736
17736
|
return;
|
@@ -17818,7 +17818,7 @@ const R1 = ({
|
|
17818
17818
|
copy: e,
|
17819
17819
|
isOpen: C,
|
17820
17820
|
onClose: () => f(!1),
|
17821
|
-
onSave:
|
17821
|
+
onSave: $
|
17822
17822
|
}
|
17823
17823
|
),
|
17824
17824
|
/* @__PURE__ */ t(
|
@@ -18031,11 +18031,11 @@ const R1 = ({
|
|
18031
18031
|
)
|
18032
18032
|
] });
|
18033
18033
|
}), mC = () => {
|
18034
|
-
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Ea(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D,
|
18034
|
+
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Ea(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
|
18035
18035
|
g.useEffect(() => {
|
18036
18036
|
if (_.birthday) {
|
18037
18037
|
const P = new Date(_.birthday * 1e3), j = P.getUTCFullYear(), he = P.getUTCMonth(), V = P.getUTCDate();
|
18038
|
-
|
18038
|
+
$(new Date(j, he, V));
|
18039
18039
|
}
|
18040
18040
|
}, [_]);
|
18041
18041
|
const U = async () => {
|
@@ -18122,7 +18122,7 @@ const R1 = ({
|
|
18122
18122
|
ha,
|
18123
18123
|
{
|
18124
18124
|
label: i.birthdate,
|
18125
|
-
onChange:
|
18125
|
+
onChange: $,
|
18126
18126
|
slotProps: {
|
18127
18127
|
nextIconButton: {
|
18128
18128
|
sx: {
|
@@ -18186,12 +18186,12 @@ const CC = ({
|
|
18186
18186
|
renderCell: (c) => /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
|
18187
18187
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.value }),
|
18188
18188
|
/* @__PURE__ */ t(
|
18189
|
-
|
18189
|
+
$e,
|
18190
18190
|
{
|
18191
18191
|
"aria-label": r.mobile_devices_edit_label,
|
18192
18192
|
color: "secondary",
|
18193
18193
|
onClick: () => n(c.row),
|
18194
|
-
children: /* @__PURE__ */ t(
|
18194
|
+
children: /* @__PURE__ */ t(H, { name: "edit" })
|
18195
18195
|
}
|
18196
18196
|
)
|
18197
18197
|
] }),
|
@@ -18223,12 +18223,12 @@ const CC = ({
|
|
18223
18223
|
headerName: "",
|
18224
18224
|
renderHeader: Ut,
|
18225
18225
|
renderCell: (c) => /* @__PURE__ */ t(b, { mr: 4, children: /* @__PURE__ */ t(
|
18226
|
-
|
18226
|
+
$e,
|
18227
18227
|
{
|
18228
18228
|
"aria-label": r.mobile_devices_delete_label,
|
18229
18229
|
color: "secondary",
|
18230
18230
|
onClick: () => i(c.row),
|
18231
|
-
children: /* @__PURE__ */ t(
|
18231
|
+
children: /* @__PURE__ */ t(H, { name: "delete" })
|
18232
18232
|
}
|
18233
18233
|
) }),
|
18234
18234
|
sortable: !1,
|
@@ -18298,16 +18298,16 @@ const CC = ({
|
|
18298
18298
|
};
|
18299
18299
|
return /* @__PURE__ */ l(b, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
18300
18300
|
e.map((d) => /* @__PURE__ */ l(
|
18301
|
-
|
18301
|
+
Oi,
|
18302
18302
|
{
|
18303
18303
|
expanded: o === d.guid,
|
18304
18304
|
onChange: c(d.guid),
|
18305
18305
|
sx: { boxShadow: "none" },
|
18306
18306
|
children: [
|
18307
18307
|
/* @__PURE__ */ t(
|
18308
|
-
|
18308
|
+
Mi,
|
18309
18309
|
{
|
18310
|
-
expandIcon: /* @__PURE__ */ t(
|
18310
|
+
expandIcon: /* @__PURE__ */ t(H, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
|
18311
18311
|
sx: {
|
18312
18312
|
padding: "14px 24px",
|
18313
18313
|
borderBottom: "1px solid",
|
@@ -18321,7 +18321,7 @@ const CC = ({
|
|
18321
18321
|
}
|
18322
18322
|
),
|
18323
18323
|
/* @__PURE__ */ l(
|
18324
|
-
|
18324
|
+
Li,
|
18325
18325
|
{
|
18326
18326
|
sx: { backgroundColor: a.palette.background.default, p: "0 0 0 24px" },
|
18327
18327
|
children: [
|
@@ -18340,7 +18340,7 @@ const CC = ({
|
|
18340
18340
|
borderColor: a.palette.border.light
|
18341
18341
|
},
|
18342
18342
|
children: [
|
18343
|
-
/* @__PURE__ */ t(
|
18343
|
+
/* @__PURE__ */ t($e, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(H, { name: "edit" }) }),
|
18344
18344
|
/* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_edit_label })
|
18345
18345
|
]
|
18346
18346
|
}
|
@@ -18358,7 +18358,7 @@ const CC = ({
|
|
18358
18358
|
cursor: "pointer"
|
18359
18359
|
},
|
18360
18360
|
children: [
|
18361
|
-
/* @__PURE__ */ t(
|
18361
|
+
/* @__PURE__ */ t($e, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(H, { name: "delete" }) }),
|
18362
18362
|
/* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_delete_label })
|
18363
18363
|
]
|
18364
18364
|
}
|
@@ -18783,7 +18783,7 @@ const CC = ({
|
|
18783
18783
|
] });
|
18784
18784
|
}), NC = A(
|
18785
18785
|
({ onProfileUpdated: e, profile: n }) => {
|
18786
|
-
const { common: i, settings: a } = I(), { updateAccount: r } = Re(), o = n.notification_type ===
|
18786
|
+
const { common: i, settings: a } = I(), { updateAccount: r } = Re(), o = n.notification_type === Ue.DebtPaymentReminder, [s, c] = g.useState(!1), [d, _] = g.useState(n.threshold || 0), [u, h] = g.useState(
|
18787
18787
|
n.account?.day_payment_is_due || 0
|
18788
18788
|
), m = n.account?.name || n.account?.feed_name || "", C = n.account?.day_payment_is_due ? S(
|
18789
18789
|
a.notification_debt_payment_date,
|
@@ -19030,7 +19030,7 @@ const CC = ({
|
|
19030
19030
|
T === 3 && /* @__PURE__ */ t(vC, {}),
|
19031
19031
|
T === 4 && /* @__PURE__ */ t(uC, {}),
|
19032
19032
|
/* @__PURE__ */ t(
|
19033
|
-
|
19033
|
+
Di,
|
19034
19034
|
{
|
19035
19035
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
19036
19036
|
autoHideDuration: 3500,
|
@@ -19064,7 +19064,7 @@ const CC = ({
|
|
19064
19064
|
title: a.notifications_title,
|
19065
19065
|
children: [
|
19066
19066
|
!o && /* @__PURE__ */ t(
|
19067
|
-
|
19067
|
+
$e,
|
19068
19068
|
{
|
19069
19069
|
"aria-label": "Open notification settings",
|
19070
19070
|
onClick: () => s(!0),
|
@@ -19204,7 +19204,7 @@ const RC = (e) => {
|
|
19204
19204
|
(c) => c.repeating_transaction_guid === e.guid
|
19205
19205
|
);
|
19206
19206
|
if (!i) return [];
|
19207
|
-
const a =
|
19207
|
+
const a = Ri(e.predicted_occurs_on), r = {
|
19208
19208
|
accountGuid: e.account?.guid || "",
|
19209
19209
|
amount: e.amount,
|
19210
19210
|
categoryGuid: i.category_guid || "",
|
@@ -19219,7 +19219,7 @@ const RC = (e) => {
|
|
19219
19219
|
status: at.Upcoming,
|
19220
19220
|
type: e.repeating_transaction_type === on.Income ? Yt.Income : Yt.Expense,
|
19221
19221
|
transaction: void 0
|
19222
|
-
}, o =
|
19222
|
+
}, o = Fe(le()), s = Mt(le(), 30);
|
19223
19223
|
switch (e.recurrence_type) {
|
19224
19224
|
case Ne.EveryWeek:
|
19225
19225
|
n.push(...LC(r, o, s));
|
@@ -19252,9 +19252,9 @@ const RC = (e) => {
|
|
19252
19252
|
return n;
|
19253
19253
|
}, LC = (e, n, i) => {
|
19254
19254
|
const a = [];
|
19255
|
-
let r =
|
19255
|
+
let r = Ti(n, e.recurrenceDay);
|
19256
19256
|
for (; we(r, i); )
|
19257
|
-
a.push({ ...e, expectedDate: r }), r =
|
19257
|
+
a.push({ ...e, expectedDate: r }), r = Ti(r, e.recurrenceDay);
|
19258
19258
|
return a;
|
19259
19259
|
}, MC = (e, n, i) => {
|
19260
19260
|
const a = [], r = e.expectedDate;
|
@@ -19566,7 +19566,7 @@ class KC {
|
|
19566
19566
|
selectedAccountGuids = this.selectedAccounts.map((n) => n.guid);
|
19567
19567
|
displayedDate = /* @__PURE__ */ new Date();
|
19568
19568
|
displayedDateRange = {
|
19569
|
-
start:
|
19569
|
+
start: Fe(this.displayedDate),
|
19570
19570
|
end: Xe(this.displayedDate)
|
19571
19571
|
};
|
19572
19572
|
constructor(n) {
|
@@ -19749,7 +19749,7 @@ const Xa = ({
|
|
19749
19749
|
},
|
19750
19750
|
primaryText: d.is_closed ? h.mark_as_open : h.mark_as_closed,
|
19751
19751
|
secondaryText: d.is_closed ? h.this_will_set_the_closed_account : h.this_will_set_the_account_balance_to_0,
|
19752
|
-
children: /* @__PURE__ */ t(
|
19752
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_right" })
|
19753
19753
|
}
|
19754
19754
|
),
|
19755
19755
|
m.length > 0 && /* @__PURE__ */ t(
|
@@ -19763,7 +19763,7 @@ const Xa = ({
|
|
19763
19763
|
},
|
19764
19764
|
primaryText: h.mark_as_duplicate,
|
19765
19765
|
secondaryText: h.if_a_connected_account_is_showing_up_twice,
|
19766
|
-
children: /* @__PURE__ */ t(
|
19766
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_right" })
|
19767
19767
|
}
|
19768
19768
|
),
|
19769
19769
|
/* @__PURE__ */ t(
|
@@ -19795,7 +19795,7 @@ const Xa = ({
|
|
19795
19795
|
const v = m.indexOf(T) === m.length - 1;
|
19796
19796
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
19797
19797
|
/* @__PURE__ */ t(
|
19798
|
-
|
19798
|
+
vi,
|
19799
19799
|
{
|
19800
19800
|
account: T,
|
19801
19801
|
onRowClick: () => {
|
@@ -20020,7 +20020,7 @@ const Xa = ({
|
|
20020
20020
|
] })
|
20021
20021
|
}
|
20022
20022
|
),
|
20023
|
-
/* @__PURE__ */ t(
|
20023
|
+
/* @__PURE__ */ t(H, { name: "chevron_right" })
|
20024
20024
|
] }) }),
|
20025
20025
|
/* @__PURE__ */ t(G, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
20026
20026
|
!a.is_manual && a.institution_url && /* @__PURE__ */ l(Z, { children: [
|
@@ -20045,12 +20045,12 @@ const Xa = ({
|
|
20045
20045
|
}
|
20046
20046
|
) }),
|
20047
20047
|
/* @__PURE__ */ t(re, { primary: a.name, secondary: a.institution_url }),
|
20048
|
-
/* @__PURE__ */ t(
|
20048
|
+
/* @__PURE__ */ t(H, { name: "launch" })
|
20049
20049
|
] }) }),
|
20050
20050
|
/* @__PURE__ */ t(G, {})
|
20051
20051
|
] }),
|
20052
20052
|
e && /* @__PURE__ */ t(
|
20053
|
-
|
20053
|
+
di,
|
20054
20054
|
{
|
20055
20055
|
loadWidgetProps: { current_member_guid: a.guid },
|
20056
20056
|
onClose: () => n(!1),
|
@@ -20179,7 +20179,7 @@ const Xa = ({
|
|
20179
20179
|
},
|
20180
20180
|
children: [
|
20181
20181
|
f,
|
20182
|
-
/* @__PURE__ */ t(
|
20182
|
+
/* @__PURE__ */ t(H, { name: "chevron_right" })
|
20183
20183
|
]
|
20184
20184
|
}
|
20185
20185
|
) }),
|
@@ -20252,7 +20252,7 @@ const Xa = ({
|
|
20252
20252
|
}
|
20253
20253
|
),
|
20254
20254
|
n && /* @__PURE__ */ t(
|
20255
|
-
|
20255
|
+
di,
|
20256
20256
|
{
|
20257
20257
|
loadWidgetProps: { current_member_guid: a.guid },
|
20258
20258
|
onClose: () => i(!1),
|
@@ -20363,10 +20363,10 @@ const Xa = ({
|
|
20363
20363
|
}
|
20364
20364
|
) }),
|
20365
20365
|
children: /* @__PURE__ */ t(Ee, { children: T.map((x, R, D) => {
|
20366
|
-
const
|
20366
|
+
const $ = R === D.length - 1;
|
20367
20367
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
20368
20368
|
/* @__PURE__ */ t(
|
20369
|
-
|
20369
|
+
vi,
|
20370
20370
|
{
|
20371
20371
|
account: x,
|
20372
20372
|
onRowClick: () => f(x),
|
@@ -20377,11 +20377,11 @@ const Xa = ({
|
|
20377
20377
|
G,
|
20378
20378
|
{
|
20379
20379
|
sx: {
|
20380
|
-
mb:
|
20381
|
-
ml:
|
20380
|
+
mb: $ ? 24 : 4,
|
20381
|
+
ml: $ ? 24 : 68
|
20382
20382
|
}
|
20383
20383
|
}
|
20384
|
-
) :
|
20384
|
+
) : !$ && /* @__PURE__ */ t(
|
20385
20385
|
G,
|
20386
20386
|
{
|
20387
20387
|
sx: {
|
@@ -20423,7 +20423,7 @@ const Xa = ({
|
|
20423
20423
|
const x = a.indexOf(w) === a.length - 1, R = T.indexOf(w) === T.length - 1;
|
20424
20424
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
20425
20425
|
/* @__PURE__ */ t(
|
20426
|
-
|
20426
|
+
vi,
|
20427
20427
|
{
|
20428
20428
|
account: w,
|
20429
20429
|
onRowClick: () => f(w),
|
@@ -20527,7 +20527,7 @@ const Xa = ({
|
|
20527
20527
|
const u = s.indexOf(d) === s.length - 1;
|
20528
20528
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
20529
20529
|
/* @__PURE__ */ t(
|
20530
|
-
|
20530
|
+
vi,
|
20531
20531
|
{
|
20532
20532
|
account: d,
|
20533
20533
|
listItemProps: { sx: { px: 24 } },
|
@@ -21015,7 +21015,7 @@ const Xa = ({
|
|
21015
21015
|
children: [
|
21016
21016
|
/* @__PURE__ */ t(pf, {}),
|
21017
21017
|
r && /* @__PURE__ */ t(
|
21018
|
-
|
21018
|
+
di,
|
21019
21019
|
{
|
21020
21020
|
onClose: () => o(!1),
|
21021
21021
|
showConnectWidget: r,
|
@@ -21127,9 +21127,9 @@ class bf {
|
|
21127
21127
|
(o) => o.guid === a.member_guid
|
21128
21128
|
);
|
21129
21129
|
if (r > -1) {
|
21130
|
-
let o =
|
21130
|
+
let o = Kn.Connected;
|
21131
21131
|
const s = this.members[r];
|
21132
|
-
$s.includes(s.connection_status) ? o =
|
21132
|
+
$s.includes(s.connection_status) ? o = Kn.Error : iu.includes(s.connection_status) ? o = Kn.Processing : Hs.includes(s.connection_status) && (o = Kn.RequiresMfa);
|
21133
21133
|
let c = a.user_name || a.feed_name || "";
|
21134
21134
|
a.account_number && (c = `${c} *${a.account_number}`), i.push({
|
21135
21135
|
...a,
|
@@ -21250,7 +21250,7 @@ const yf = () => {
|
|
21250
21250
|
},
|
21251
21251
|
value: n,
|
21252
21252
|
children: Array.from({ length: o.scale }, (c, d) => /* @__PURE__ */ t(
|
21253
|
-
|
21253
|
+
Ni,
|
21254
21254
|
{
|
21255
21255
|
sx: {
|
21256
21256
|
borderColor: r.palette.border.light,
|
@@ -21489,7 +21489,7 @@ function kf({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
21489
21489
|
y: C,
|
21490
21490
|
children: [
|
21491
21491
|
/* @__PURE__ */ t(
|
21492
|
-
|
21492
|
+
Fn,
|
21493
21493
|
{
|
21494
21494
|
followCursor: !0,
|
21495
21495
|
open: a,
|
@@ -21499,7 +21499,7 @@ function kf({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
21499
21499
|
}
|
21500
21500
|
),
|
21501
21501
|
/* @__PURE__ */ t(
|
21502
|
-
|
21502
|
+
H,
|
21503
21503
|
{
|
21504
21504
|
className: `icon-${c}`,
|
21505
21505
|
component: "text",
|
@@ -21552,7 +21552,7 @@ function kf({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
21552
21552
|
_
|
21553
21553
|
);
|
21554
21554
|
}
|
21555
|
-
let
|
21555
|
+
let mi;
|
21556
21556
|
const Gf = ({
|
21557
21557
|
height: e,
|
21558
21558
|
width: n,
|
@@ -21561,9 +21561,9 @@ const Gf = ({
|
|
21561
21561
|
}
|
21562
21562
|
}) => {
|
21563
21563
|
const { detailedBudgets: r } = lt();
|
21564
|
-
return
|
21565
|
-
Df(
|
21566
|
-
}, [
|
21564
|
+
return mi = g.useMemo(() => Of(r), [r]), g.useEffect(() => {
|
21565
|
+
Df(mi, e, n), i && Nf(mi);
|
21566
|
+
}, [mi, e, n]), /* @__PURE__ */ t("svg", { height: e, style: { overflow: "visible" }, width: Math.abs(n), children: mi.nodes().map((o) => /* @__PURE__ */ t(kf, { bubble: o, isDraggable: i, onClick: a }, o.guid)) });
|
21567
21567
|
}, Bf = A(Gf), Pf = ({
|
21568
21568
|
isMiniWidget: e = !1,
|
21569
21569
|
onConnectAccountsClick: n,
|
@@ -21575,7 +21575,7 @@ const Gf = ({
|
|
21575
21575
|
h(!1), E ? (f.length === 0 && c(!0), _(!1)) : _(!0);
|
21576
21576
|
};
|
21577
21577
|
return u ? /* @__PURE__ */ t(ue, {}) : d ? /* @__PURE__ */ t(
|
21578
|
-
|
21578
|
+
Si,
|
21579
21579
|
{
|
21580
21580
|
header: o.autogenerate_budgets_error_header,
|
21581
21581
|
icon: "error",
|
@@ -21594,7 +21594,7 @@ const Gf = ({
|
|
21594
21594
|
}
|
21595
21595
|
}
|
21596
21596
|
) : /* @__PURE__ */ t(Z, { children: s ? /* @__PURE__ */ t(
|
21597
|
-
|
21597
|
+
Si,
|
21598
21598
|
{
|
21599
21599
|
header: o.zero_state_generate_budgets_header,
|
21600
21600
|
icon: "error",
|
@@ -21616,7 +21616,7 @@ const Gf = ({
|
|
21616
21616
|
}
|
21617
21617
|
}
|
21618
21618
|
) : /* @__PURE__ */ t(
|
21619
|
-
|
21619
|
+
Si,
|
21620
21620
|
{
|
21621
21621
|
header: o.create_budgets_title,
|
21622
21622
|
icon: "bubble_chart",
|
@@ -21648,7 +21648,7 @@ const Gf = ({
|
|
21648
21648
|
shouldShowZeroState: r,
|
21649
21649
|
unavailableWidth: o = 24
|
21650
21650
|
}) => {
|
21651
|
-
const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ke(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } =
|
21651
|
+
const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ke(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } = Wn(), { isMobile: m } = ve(), [C, f] = g.useState(!1), E = g.useMemo(() => h - o, [h]), y = (v) => {
|
21652
21652
|
c(v), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
21653
21653
|
budget_category: v.category.name,
|
21654
21654
|
click_type: "bubble"
|
@@ -21688,7 +21688,7 @@ const Gf = ({
|
|
21688
21688
|
return g.useEffect(() => {
|
21689
21689
|
s(n);
|
21690
21690
|
}, [n]), g.useEffect(() => {
|
21691
|
-
_ && !r && u(i,
|
21691
|
+
_ && !r && u(i, Fe(/* @__PURE__ */ new Date()), Xe(/* @__PURE__ */ new Date())).then(() => {
|
21692
21692
|
o().finally();
|
21693
21693
|
});
|
21694
21694
|
}, [_, i]), d ? /* @__PURE__ */ t(
|
@@ -21810,7 +21810,7 @@ const Gf = ({
|
|
21810
21810
|
secondary: B(e.totalAmount, "0,0")
|
21811
21811
|
}
|
21812
21812
|
),
|
21813
|
-
/* @__PURE__ */ t(qd, { children: /* @__PURE__ */ t(
|
21813
|
+
/* @__PURE__ */ t(qd, { children: /* @__PURE__ */ t(H, { name: "add", size: 20 }) })
|
21814
21814
|
] }) }, e.guid),
|
21815
21815
|
/* @__PURE__ */ t(
|
21816
21816
|
ke,
|
@@ -21864,7 +21864,7 @@ const Gf = ({
|
|
21864
21864
|
}, Kf = A(() => {
|
21865
21865
|
const { budgets: e } = I();
|
21866
21866
|
return /* @__PURE__ */ l(b, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
|
21867
|
-
/* @__PURE__ */ t(
|
21867
|
+
/* @__PURE__ */ t(H, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
|
21868
21868
|
/* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: e.zero_state_no_sub_budgets }),
|
21869
21869
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: e.zero_state_no_sub_budgets_description })
|
21870
21870
|
] });
|
@@ -21905,10 +21905,10 @@ const Gf = ({
|
|
21905
21905
|
return /* @__PURE__ */ l(M, { children: [
|
21906
21906
|
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(de, { onClick: E, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
21907
21907
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
21908
|
-
/* @__PURE__ */ t(
|
21908
|
+
/* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
21909
21909
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
|
21910
21910
|
] }),
|
21911
|
-
/* @__PURE__ */ t(
|
21911
|
+
/* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
21912
21912
|
] }) }) }) }),
|
21913
21913
|
/* @__PURE__ */ t(G, {}),
|
21914
21914
|
/* @__PURE__ */ t(
|
@@ -22064,7 +22064,7 @@ const Gf = ({
|
|
22064
22064
|
ee,
|
22065
22065
|
{
|
22066
22066
|
onClick: C,
|
22067
|
-
startIcon: /* @__PURE__ */ t(
|
22067
|
+
startIcon: /* @__PURE__ */ t(H, { name: "ios_share" }),
|
22068
22068
|
variant: "text",
|
22069
22069
|
children: a.export_csv_btn
|
22070
22070
|
}
|
@@ -22209,7 +22209,7 @@ const Gf = ({
|
|
22209
22209
|
] });
|
22210
22210
|
}), Jf = A(() => {
|
22211
22211
|
const e = pe(), { onEvent: n } = z(), { visibleAccounts: i } = Re(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } = Ke(), { detailedBudgets: d, totalBudgeted: _ } = lt(), { projectedIncome: u } = nt(), { setFilter: h } = Se(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
|
22212
|
-
const w = c.reduce((
|
22212
|
+
const w = c.reduce(($, O) => $ + O.totalAmount, 0);
|
22213
22213
|
let x = w / _;
|
22214
22214
|
x > 1 && (x = 1);
|
22215
22215
|
let R = e.palette.success.main;
|
@@ -22223,7 +22223,7 @@ const Gf = ({
|
|
22223
22223
|
return [w, D];
|
22224
22224
|
}, [d, c]), [y, T] = g.useMemo(() => {
|
22225
22225
|
const w = Math.abs(
|
22226
|
-
s.reduce((D,
|
22226
|
+
s.reduce((D, $) => D + $.totalAmount, 0)
|
22227
22227
|
);
|
22228
22228
|
let x = w / u;
|
22229
22229
|
x > 1 && (x = 1);
|
@@ -22259,12 +22259,12 @@ const Gf = ({
|
|
22259
22259
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
|
22260
22260
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: a.income_title }),
|
22261
22261
|
/* @__PURE__ */ t(
|
22262
|
-
|
22262
|
+
$e,
|
22263
22263
|
{
|
22264
22264
|
"aria-label": o.manage_income,
|
22265
22265
|
onClick: v,
|
22266
22266
|
sx: { p: 0 },
|
22267
|
-
children: /* @__PURE__ */ t(
|
22267
|
+
children: /* @__PURE__ */ t(H, { color: "primary", name: "edit" })
|
22268
22268
|
}
|
22269
22269
|
)
|
22270
22270
|
] }),
|
@@ -22300,13 +22300,13 @@ const Gf = ({
|
|
22300
22300
|
setAlert: T,
|
22301
22301
|
setTheme: v,
|
22302
22302
|
budgets: w
|
22303
|
-
} = lt(), { loadActivity: x } = nt(), { isDesktop: R, isTablet: D } = ve(), { reloadCategoryTotals:
|
22303
|
+
} = lt(), { loadActivity: x } = nt(), { isDesktop: R, isTablet: D } = ve(), { reloadCategoryTotals: $ } = Ke(), [O, L] = g.useState(!1);
|
22304
22304
|
g.useEffect(() => {
|
22305
22305
|
v(i), h(r), u(C.start, C.end), a(W.BUDGETS_VIEW);
|
22306
22306
|
}, []), g.useEffect(() => {
|
22307
22307
|
h(r);
|
22308
22308
|
}, [r]), g.useEffect(() => {
|
22309
|
-
d && (
|
22309
|
+
d && ($(_, C.start, C.end).finally(), f || (x(), E().finally()));
|
22310
22310
|
}, [d, _, C]);
|
22311
22311
|
const U = (Ce) => {
|
22312
22312
|
y({ start: Ce[0] || /* @__PURE__ */ new Date(), end: Ce[1] || /* @__PURE__ */ new Date() });
|
@@ -22316,7 +22316,7 @@ const Gf = ({
|
|
22316
22316
|
L(!0), a(W.BUDGETS_CLICK_ADD);
|
22317
22317
|
}, he = () => {
|
22318
22318
|
L(!1);
|
22319
|
-
}, V = Zt(C.end,
|
22319
|
+
}, V = Zt(C.end, Fe(/* @__PURE__ */ new Date()));
|
22320
22320
|
return !c || !d || !f ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
22321
22321
|
Ot,
|
22322
22322
|
{
|
@@ -22381,7 +22381,7 @@ const Gf = ({
|
|
22381
22381
|
}
|
22382
22382
|
),
|
22383
22383
|
/* @__PURE__ */ t(
|
22384
|
-
|
22384
|
+
Di,
|
22385
22385
|
{
|
22386
22386
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
22387
22387
|
autoHideDuration: 3500,
|
@@ -22445,7 +22445,9 @@ const Gf = ({
|
|
22445
22445
|
}
|
22446
22446
|
) : null;
|
22447
22447
|
}), t0 = () => {
|
22448
|
-
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { isMobile: a } = ve(), { common: r } = I(),
|
22448
|
+
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { isMobile: a } = ve(), { common: r, connect: o } = I(), [s, c] = g.useState(!1), d = () => {
|
22449
|
+
c(!0);
|
22450
|
+
}, _ = {
|
22449
22451
|
accountFilterOptionsCopy: {
|
22450
22452
|
accountTypeAccounts: r.account_filter.account_type_accounts,
|
22451
22453
|
cancelButton: r.cancel_button,
|
@@ -22460,29 +22462,64 @@ const Gf = ({
|
|
22460
22462
|
},
|
22461
22463
|
title: r.account_filter.title
|
22462
22464
|
};
|
22463
|
-
return /* @__PURE__ */
|
22464
|
-
/* @__PURE__ */ l(b, { children: [
|
22465
|
-
/* @__PURE__ */ t(
|
22466
|
-
|
22467
|
-
|
22468
|
-
|
22469
|
-
|
22465
|
+
return /* @__PURE__ */ l(Tt, { sx: { mb: a ? 24 : 0, p: 24 }, children: [
|
22466
|
+
/* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
22467
|
+
/* @__PURE__ */ t(b, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(b, { children: [
|
22468
|
+
/* @__PURE__ */ t(cn, { children: (() => {
|
22469
|
+
const m = (/* @__PURE__ */ new Date()).getHours();
|
22470
|
+
return m > 1 && m < 12 ? r.good_morning : m >= 12 && m < 18 ? r.good_afternoon : r.good_evening;
|
22471
|
+
})() }),
|
22472
|
+
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
|
22473
|
+
] }) }),
|
22474
|
+
/* @__PURE__ */ l(b, { flexDirection: "row", children: [
|
22475
|
+
a ? /* @__PURE__ */ t(Fn, { id: "add-accounts", placement: "bottom", title: "Add Accounts", children: /* @__PURE__ */ t(
|
22476
|
+
$e,
|
22477
|
+
{
|
22478
|
+
"aria-controls": "add_accounts",
|
22479
|
+
"aria-describedby": "add-accounts",
|
22480
|
+
"aria-haspopup": !0,
|
22481
|
+
"aria-label": "Add Accounts",
|
22482
|
+
color: "primary",
|
22483
|
+
onClick: d,
|
22484
|
+
sx: { p: 12 },
|
22485
|
+
children: /* @__PURE__ */ t(H, { name: "add", size: 20 })
|
22486
|
+
}
|
22487
|
+
) }) : /* @__PURE__ */ t(
|
22488
|
+
ee,
|
22489
|
+
{
|
22490
|
+
"aria-controls": "add_accounts",
|
22491
|
+
"aria-haspopup": !0,
|
22492
|
+
"aria-label": "Add Accounts",
|
22493
|
+
onClick: d,
|
22494
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 20 }),
|
22495
|
+
children: "Add Accounts"
|
22496
|
+
}
|
22497
|
+
),
|
22498
|
+
/* @__PURE__ */ t(
|
22499
|
+
Qs,
|
22500
|
+
{
|
22501
|
+
accounts: e,
|
22502
|
+
copy: _,
|
22503
|
+
onFilterClick: (h) => {
|
22504
|
+
i(h);
|
22505
|
+
},
|
22506
|
+
selectedAccountGuids: n,
|
22507
|
+
showAccountNumbers: !1,
|
22508
|
+
sx: { "& .mx-cmn-account-filter-title": { fontSize: 15 }, mx: 4 },
|
22509
|
+
variant: "text"
|
22510
|
+
}
|
22511
|
+
)
|
22512
|
+
] })
|
22470
22513
|
] }),
|
22471
|
-
/* @__PURE__ */ t(
|
22472
|
-
|
22514
|
+
s && /* @__PURE__ */ t(
|
22515
|
+
di,
|
22473
22516
|
{
|
22474
|
-
|
22475
|
-
|
22476
|
-
|
22477
|
-
i(c);
|
22478
|
-
},
|
22479
|
-
selectedAccountGuids: n,
|
22480
|
-
showAccountNumbers: !1,
|
22481
|
-
sx: { "& .mx-cmn-account-filter-title": { fontSize: 15 }, mx: 4 },
|
22482
|
-
variant: "text"
|
22517
|
+
onClose: () => c(!1),
|
22518
|
+
showConnectWidget: s,
|
22519
|
+
title: o.mini_title
|
22483
22520
|
}
|
22484
22521
|
)
|
22485
|
-
] })
|
22522
|
+
] });
|
22486
22523
|
}, n0 = A(t0);
|
22487
22524
|
var zi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(zi || {});
|
22488
22525
|
const i0 = ({ widgets: e, isLoading: n }) => {
|
@@ -22548,7 +22585,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22548
22585
|
},
|
22549
22586
|
value: n,
|
22550
22587
|
children: c.map(({ label: d, value: _ }) => /* @__PURE__ */ t(
|
22551
|
-
|
22588
|
+
Ni,
|
22552
22589
|
{
|
22553
22590
|
sx: {
|
22554
22591
|
width: "100%",
|
@@ -22599,17 +22636,17 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22599
22636
|
tooltip_info_body: n,
|
22600
22637
|
tooltip_info_title: i
|
22601
22638
|
}) => /* @__PURE__ */ t(
|
22602
|
-
|
22639
|
+
Fn,
|
22603
22640
|
{
|
22604
22641
|
enterTouchDelay: 500,
|
22605
22642
|
placement: e,
|
22606
22643
|
title: /* @__PURE__ */ t(o0, { body: n, title: i }),
|
22607
|
-
children: /* @__PURE__ */ t(
|
22644
|
+
children: /* @__PURE__ */ t($e, { "aria-label": i, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(yt, { name: "info", sx: { color: "info.main" } }) })
|
22608
22645
|
}
|
22609
22646
|
), c0 = () => {
|
22610
22647
|
const {
|
22611
22648
|
investments: { analysis: e }
|
22612
|
-
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } = ea(), o =
|
22649
|
+
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } = ea(), o = Vn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = ve(), d = tt().palette.mode === "dark", { cellDimension: _, columns: u, rows: h, textVariant: m } = g.useMemo(() => {
|
22613
22650
|
const C = a === Bn.Stocks, f = Object.values(C ? e.stock_column_labels : e.bond_column_labels), E = Object.values(C ? e.stock_row_labels : e.bond_row_labels);
|
22614
22651
|
return { cellDimension: s ? 72 : 100, columns: f, rows: E, textVariant: s ? "XSmall" : "Body" };
|
22615
22652
|
}, [e, s, a]);
|
@@ -22687,8 +22724,8 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22687
22724
|
),
|
22688
22725
|
n.map((C, f, E) => /* @__PURE__ */ t(b, { sx: { flexDirection: "row", gap: 4 }, children: C.map((y, T) => {
|
22689
22726
|
const v = f === 0, w = f === E.length - 1, x = T === 0, R = T === C.length - 1, D = Number(y.replace("%", "")) >= 25;
|
22690
|
-
let
|
22691
|
-
return d ? (
|
22727
|
+
let $ = "grey.200", O = "grey.900";
|
22728
|
+
return d ? ($ = D ? "grey.200" : "grey.700", O = D ? "grey.900" : "common.white") : ($ = D ? "grey.700" : "grey.200", O = D ? "common.white" : "grey.900"), /* @__PURE__ */ t(
|
22692
22729
|
b,
|
22693
22730
|
{
|
22694
22731
|
sx: {
|
@@ -22699,7 +22736,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22699
22736
|
borderTopRightRadius: v && R ? 4 : 0
|
22700
22737
|
},
|
22701
22738
|
alignItems: "center",
|
22702
|
-
bgcolor:
|
22739
|
+
bgcolor: $,
|
22703
22740
|
height: _,
|
22704
22741
|
justifyContent: "center",
|
22705
22742
|
width: _
|
@@ -22811,7 +22848,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22811
22848
|
}
|
22812
22849
|
),
|
22813
22850
|
i.holdings?.map((c) => /* @__PURE__ */ l(
|
22814
|
-
|
22851
|
+
Oi,
|
22815
22852
|
{
|
22816
22853
|
expanded: r[c.id] === !0,
|
22817
22854
|
onChange: c ? s(c?.id) : () => {
|
@@ -22819,7 +22856,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22819
22856
|
style: { margin: 0 },
|
22820
22857
|
children: [
|
22821
22858
|
/* @__PURE__ */ t(
|
22822
|
-
|
22859
|
+
Mi,
|
22823
22860
|
{
|
22824
22861
|
"aria-controls": "panel1a-content",
|
22825
22862
|
id: "panel1a-header",
|
@@ -22926,7 +22963,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22926
22963
|
)
|
22927
22964
|
}
|
22928
22965
|
),
|
22929
|
-
/* @__PURE__ */ t(
|
22966
|
+
/* @__PURE__ */ t(Li, { sx: { background: "background.default" }, children: /* @__PURE__ */ l(
|
22930
22967
|
Ee,
|
22931
22968
|
{
|
22932
22969
|
sx: {
|
@@ -23065,7 +23102,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23065
23102
|
style: "currency"
|
23066
23103
|
}) }),
|
23067
23104
|
/* @__PURE__ */ t(
|
23068
|
-
|
23105
|
+
$e,
|
23069
23106
|
{
|
23070
23107
|
onClick: () => V(ge.row.id, ge.row.costBasis),
|
23071
23108
|
sx: { minWidth: 12, minHeight: 12 },
|
@@ -23143,7 +23180,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23143
23180
|
}, { holdings: v } = ea(), { visibleInvestmentAccounts: w, members: x } = Re(), R = w.reduce((O, L) => O + (L.balance || 0), 0), D = v.reduce((O, L) => {
|
23144
23181
|
const U = L.market_value ? L.market_value - (L.cost_basis || 0) : 0;
|
23145
23182
|
return O + U;
|
23146
|
-
}, 0),
|
23183
|
+
}, 0), $ = () => {
|
23147
23184
|
o(!1);
|
23148
23185
|
};
|
23149
23186
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
@@ -23363,7 +23400,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23363
23400
|
},
|
23364
23401
|
U.guid
|
23365
23402
|
) : /* @__PURE__ */ l(
|
23366
|
-
|
23403
|
+
Oi,
|
23367
23404
|
{
|
23368
23405
|
expanded: i[U.guid] === !0,
|
23369
23406
|
onChange: j ? T(U.guid) : () => {
|
@@ -23376,7 +23413,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23376
23413
|
},
|
23377
23414
|
children: [
|
23378
23415
|
/* @__PURE__ */ l(
|
23379
|
-
|
23416
|
+
Mi,
|
23380
23417
|
{
|
23381
23418
|
"aria-controls": "panel1a-content",
|
23382
23419
|
id: "panel1a-header",
|
@@ -23496,7 +23533,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23496
23533
|
]
|
23497
23534
|
}
|
23498
23535
|
),
|
23499
|
-
/* @__PURE__ */ t(
|
23536
|
+
/* @__PURE__ */ t(Li, { sx: { background: "background.default", p: 12 }, children: /* @__PURE__ */ t(Tt, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(E, { data: P }) }) })
|
23500
23537
|
]
|
23501
23538
|
},
|
23502
23539
|
U.guid
|
@@ -23515,7 +23552,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23515
23552
|
{
|
23516
23553
|
accountHoldingsData: h,
|
23517
23554
|
isOpen: r,
|
23518
|
-
onClose:
|
23555
|
+
onClose: $
|
23519
23556
|
}
|
23520
23557
|
),
|
23521
23558
|
/* @__PURE__ */ t(
|
@@ -23584,7 +23621,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23584
23621
|
);
|
23585
23622
|
});
|
23586
23623
|
class h0 {
|
23587
|
-
copyApi = new
|
23624
|
+
copyApi = new yi("/", "");
|
23588
23625
|
copyObject = {};
|
23589
23626
|
namespace = "experiences";
|
23590
23627
|
translationKey = "micro_insights";
|
@@ -23592,7 +23629,7 @@ class h0 {
|
|
23592
23629
|
Be(this);
|
23593
23630
|
}
|
23594
23631
|
initialize = async (n, i) => {
|
23595
|
-
this.copyApi = new
|
23632
|
+
this.copyApi = new yi(n, i), await this.loadCopy();
|
23596
23633
|
};
|
23597
23634
|
loadCopy = async () => {
|
23598
23635
|
const n = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
@@ -23830,7 +23867,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
23830
23867
|
g.useEffect(() => {
|
23831
23868
|
E && E <= 325 && v(3);
|
23832
23869
|
}, [E]);
|
23833
|
-
const { cardStyle: R, linkTextStyle: D } = h,
|
23870
|
+
const { cardStyle: R, linkTextStyle: D } = h, $ = f ? R : { border: "none", boxShadow: "none", ...R }, O = /* @__PURE__ */ t(
|
23834
23871
|
Oe,
|
23835
23872
|
{
|
23836
23873
|
className: "mx-micro-card-description",
|
@@ -23890,7 +23927,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
23890
23927
|
cursor: "pointer",
|
23891
23928
|
height: o ? "100%" : 124,
|
23892
23929
|
p: 16,
|
23893
|
-
|
23930
|
+
...$,
|
23894
23931
|
"& .MuiCardHeader-avatar": {
|
23895
23932
|
color: m.iconColor,
|
23896
23933
|
mr: "8px"
|
@@ -23942,7 +23979,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
23942
23979
|
}
|
23943
23980
|
), y0 = ({ beat: e }) => {
|
23944
23981
|
const [n, i] = Et(N.UNCATEGORIZED);
|
23945
|
-
return
|
23982
|
+
return zn(() => {
|
23946
23983
|
e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
|
23947
23984
|
}, []), /* @__PURE__ */ t(kt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
23948
23985
|
}, E0 = ({ beat: e }) => {
|
@@ -23997,7 +24034,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
23997
24034
|
return !r.length || !o.length ? n.Color.Primary300 : r[0].amount > o[0].amount ? n.Color.Error300 : r[0].amount < o[0].amount ? n.Color.Success300 : n.Color.Primary300;
|
23998
24035
|
}, v0 = ({ beat: e }) => {
|
23999
24036
|
const n = ft(), i = x0(e.data_series, n);
|
24000
|
-
return /* @__PURE__ */ t(
|
24037
|
+
return /* @__PURE__ */ t(H, { name: "bar_chart", sx: { color: i } });
|
24001
24038
|
}, al = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
24002
24039
|
/* @__PURE__ */ t(
|
24003
24040
|
"path",
|
@@ -24781,8 +24818,8 @@ const Pi = g.createContext(null), b0 = ({
|
|
24781
24818
|
] })
|
24782
24819
|
] }), fs = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
|
24783
24820
|
const r = pe(), o = n?.primary_300 ? n.primary_300 : r.palette.primary.main;
|
24784
|
-
return a === 0 ? /* @__PURE__ */ t(
|
24785
|
-
|
24821
|
+
return a === 0 ? /* @__PURE__ */ t(H, { fill: !0, name: "error", sx: { color: i || o } }) : a === 1 && e ? /* @__PURE__ */ t(y0, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(T0, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(v0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t(H, { name: "campaign" }) : /* @__PURE__ */ t(
|
24822
|
+
H,
|
24786
24823
|
{
|
24787
24824
|
fill: !0,
|
24788
24825
|
name: "info",
|
@@ -24791,7 +24828,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24791
24828
|
}
|
24792
24829
|
}
|
24793
24830
|
);
|
24794
|
-
},
|
24831
|
+
}, Un = () => {
|
24795
24832
|
const e = g.useContext(Pi);
|
24796
24833
|
if (!e)
|
24797
24834
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
@@ -24835,8 +24872,8 @@ const Pi = g.createContext(null), b0 = ({
|
|
24835
24872
|
}) => {
|
24836
24873
|
const { ref: C, inView: f } = Bs({
|
24837
24874
|
threshold: sl
|
24838
|
-
}), { cardsCopy: E } =
|
24839
|
-
|
24875
|
+
}), { cardsCopy: E } = Un(), { onEvent: y } = Hi(), { updateBeat: T, updateOffer: v } = w0();
|
24876
|
+
zn(() => {
|
24840
24877
|
f && (i.has_been_displayed ? y(tl(i.template)) : (i.guid.startsWith("OFR") ? v({
|
24841
24878
|
...i,
|
24842
24879
|
has_been_displayed: !0
|
@@ -24844,7 +24881,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24844
24881
|
...i,
|
24845
24882
|
has_been_displayed: !0
|
24846
24883
|
}), y(nl(i.template))));
|
24847
|
-
}, [f]),
|
24884
|
+
}, [f]), zn(() => {
|
24848
24885
|
if (f && i)
|
24849
24886
|
if (i.template === "MarketingOffer") {
|
24850
24887
|
const x = i;
|
@@ -24913,10 +24950,10 @@ const Pi = g.createContext(null), b0 = ({
|
|
24913
24950
|
scrollRightBoundary: o,
|
24914
24951
|
scrollX: s
|
24915
24952
|
}) => {
|
24916
|
-
const c = O0(), d = tt(), { carouselCopy: _ } =
|
24953
|
+
const c = O0(), d = tt(), { carouselCopy: _ } = Un(), u = Math.floor(s) > o || n === 0, h = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
|
24917
24954
|
return /* @__PURE__ */ l(M, { className: c, children: [
|
24918
24955
|
/* @__PURE__ */ t(
|
24919
|
-
|
24956
|
+
$e,
|
24920
24957
|
{
|
24921
24958
|
"aria-disabled": u,
|
24922
24959
|
"aria-label": _.previous_insight_cta_aria,
|
@@ -24943,7 +24980,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24943
24980
|
`carousel-button-${E}`
|
24944
24981
|
)),
|
24945
24982
|
/* @__PURE__ */ t(
|
24946
|
-
|
24983
|
+
$e,
|
24947
24984
|
{
|
24948
24985
|
"aria-disabled": h,
|
24949
24986
|
"aria-label": _.next_insight_cta_aria,
|
@@ -24990,7 +25027,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24990
25027
|
variant: _,
|
24991
25028
|
widthOverrides: u
|
24992
25029
|
}) => {
|
24993
|
-
const h = k0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, v] = g.useState(null), { carouselCopy: w } =
|
25030
|
+
const h = k0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, v] = g.useState(null), { carouselCopy: w } = Un(), { onEvent: x } = Hi(), R = () => {
|
24994
25031
|
x(Kt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
24995
25032
|
left: (
|
24996
25033
|
// Adds the flex gap to the carousel ref's width
|
@@ -25005,7 +25042,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25005
25042
|
top: 0,
|
25006
25043
|
behavior: "smooth"
|
25007
25044
|
});
|
25008
|
-
},
|
25045
|
+
}, $ = () => {
|
25009
25046
|
m.current && f(m.current.scrollLeft);
|
25010
25047
|
}, O = () => {
|
25011
25048
|
if (!T || !E) return;
|
@@ -25035,7 +25072,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25035
25072
|
"div",
|
25036
25073
|
{
|
25037
25074
|
className: "mx-insights-micro-carousel-container",
|
25038
|
-
onScroll:
|
25075
|
+
onScroll: $,
|
25039
25076
|
onTouchEnd: O,
|
25040
25077
|
onTouchMove: L,
|
25041
25078
|
onTouchStart: U,
|
@@ -25117,7 +25154,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25117
25154
|
posthog: i,
|
25118
25155
|
widthOverrides: a
|
25119
25156
|
}) => {
|
25120
|
-
const { carouselCopy: r } =
|
25157
|
+
const { carouselCopy: r } = Un(), { onEvent: o } = Hi(), s = () => {
|
25121
25158
|
o && (o(Kt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
|
25122
25159
|
};
|
25123
25160
|
return r ? /* @__PURE__ */ l(
|
@@ -25185,7 +25222,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25185
25222
|
widthOverrides: n,
|
25186
25223
|
children: i
|
25187
25224
|
}) => {
|
25188
|
-
const { carouselCopy: a } =
|
25225
|
+
const { carouselCopy: a } = Un();
|
25189
25226
|
return /* @__PURE__ */ t(
|
25190
25227
|
M,
|
25191
25228
|
{
|
@@ -25213,7 +25250,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25213
25250
|
variant: d,
|
25214
25251
|
widthOverrides: _
|
25215
25252
|
}) => {
|
25216
|
-
const { cardsCopy: u } =
|
25253
|
+
const { cardsCopy: u } = Un(), { onEvent: h } = Hi(), { onPageview: m } = rl();
|
25217
25254
|
g.useEffect(() => {
|
25218
25255
|
m(Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
25219
25256
|
}, []);
|
@@ -25266,7 +25303,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25266
25303
|
variant: c,
|
25267
25304
|
widthOverrides: d
|
25268
25305
|
}) => {
|
25269
|
-
const { onPageview: _ } = rl(), { zeroStateCopy: u } =
|
25306
|
+
const { onPageview: _ } = rl(), { zeroStateCopy: u } = Un();
|
25270
25307
|
return g.useEffect(() => {
|
25271
25308
|
_(Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
25272
25309
|
}, []), /* @__PURE__ */ t(
|
@@ -25337,12 +25374,12 @@ const Pi = g.createContext(null), b0 = ({
|
|
25337
25374
|
variant: w,
|
25338
25375
|
widthOverrides: x
|
25339
25376
|
}) => {
|
25340
|
-
const R = tt(), [D,
|
25377
|
+
const R = tt(), [D, $] = Et("STANDARD"), [O, L] = Et(!1), U = fu([d], fn), P = bu([_], fn);
|
25341
25378
|
g.useEffect(() => {
|
25342
25379
|
fn.isInitialized || fn.initialize(r, y, s);
|
25343
25380
|
}, [r, y, s, fn.isInitialized]), g.useEffect(() => {
|
25344
25381
|
const V = window.innerHeight;
|
25345
|
-
V < 180 ?
|
25382
|
+
V < 180 ? $("STANDARD") : V >= 180 && V < 200 ? $("LARGE") : V >= 200 && V < 248 ? $("XLARGE") : V >= 248 && $("XXLARGE");
|
25346
25383
|
}, [window.innerHeight]), g.useEffect(() => {
|
25347
25384
|
L(!e && fn.isInitialized);
|
25348
25385
|
}, [e, fn.isInitialized]);
|
@@ -25403,8 +25440,8 @@ const Pi = g.createContext(null), b0 = ({
|
|
25403
25440
|
}) => {
|
25404
25441
|
const _ = pe(), { ref: u, inView: h } = Bs({
|
25405
25442
|
threshold: sl
|
25406
|
-
}), { cardsCopy: m } =
|
25407
|
-
|
25443
|
+
}), { cardsCopy: m } = Un(), { onEvent: C } = Hi();
|
25444
|
+
zn(() => {
|
25408
25445
|
h && (C(il.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
|
25409
25446
|
template: "view_more_card"
|
25410
25447
|
}));
|
@@ -25489,7 +25526,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25489
25526
|
)
|
25490
25527
|
] });
|
25491
25528
|
}), V0 = A(({ repeatingTransaction: e }) => {
|
25492
|
-
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), r =
|
25529
|
+
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), r = Ri(e.predicted_occurs_on), [o, s] = g.useState(!1), [c, d] = g.useState(r), _ = e.repeating_transaction_type === on.Income, u = () => {
|
25493
25530
|
d(r), s(!0), a(
|
25494
25531
|
_ ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
|
25495
25532
|
{
|
@@ -25644,7 +25681,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25644
25681
|
[n]
|
25645
25682
|
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d = ur(
|
25646
25683
|
i,
|
25647
|
-
|
25684
|
+
Ri(n.predicted_occurs_on),
|
25648
25685
|
n.recurrence_type
|
25649
25686
|
);
|
25650
25687
|
return /* @__PURE__ */ l(X, { disableGutters: !0, disablePadding: !0, children: [
|
@@ -25806,7 +25843,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25806
25843
|
};
|
25807
25844
|
return /* @__PURE__ */ l(b, { bgcolor: e, gap: 24, height: "100%", children: [
|
25808
25845
|
/* @__PURE__ */ l(b, { children: [
|
25809
|
-
/* @__PURE__ */ t(Ia, { bgcolor: e, children:
|
25846
|
+
/* @__PURE__ */ t(Ia, { bgcolor: e, children: ki(s.date) }),
|
25810
25847
|
/* @__PURE__ */ t(Aa, { transaction: s })
|
25811
25848
|
] }),
|
25812
25849
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
@@ -25815,7 +25852,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25815
25852
|
{
|
25816
25853
|
InputLabelProps: { shrink: !0 },
|
25817
25854
|
SelectProps: {
|
25818
|
-
IconComponent: (u) => /* @__PURE__ */ t(
|
25855
|
+
IconComponent: (u) => /* @__PURE__ */ t(H, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
|
25819
25856
|
},
|
25820
25857
|
defaultValue: 0,
|
25821
25858
|
label: c.frequency,
|
@@ -25849,7 +25886,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25849
25886
|
() => s.find((x) => x.guid === u),
|
25850
25887
|
[u]
|
25851
25888
|
), T = () => {
|
25852
|
-
_(!0), o(e ? { ...r, custom:
|
25889
|
+
_(!0), o(e ? { ...r, custom: Yn } : { ...r, custom: xi });
|
25853
25890
|
}, v = async () => {
|
25854
25891
|
if (!y || !f) {
|
25855
25892
|
w();
|
@@ -25874,10 +25911,10 @@ const Pi = g.createContext(null), b0 = ({
|
|
25874
25911
|
return /* @__PURE__ */ l(M, { children: [
|
25875
25912
|
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(de, { onClick: T, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
25876
25913
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
25877
|
-
/* @__PURE__ */ t(
|
25914
|
+
/* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
25878
25915
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
25879
25916
|
] }),
|
25880
|
-
/* @__PURE__ */ t(
|
25917
|
+
/* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
25881
25918
|
] }) }) }) }),
|
25882
25919
|
/* @__PURE__ */ t(G, {}),
|
25883
25920
|
/* @__PURE__ */ t(
|
@@ -25894,7 +25931,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25894
25931
|
onSearch: (x) => {
|
25895
25932
|
o({
|
25896
25933
|
...r,
|
25897
|
-
custom: (R) => e ? x ? Or(R, x) :
|
25934
|
+
custom: (R) => e ? x ? Or(R, x) : Yn(R) : x ? Ac(R, x) : xi(R)
|
25898
25935
|
});
|
25899
25936
|
},
|
25900
25937
|
onSelected: (x) => h(x)
|
@@ -26081,7 +26118,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26081
26118
|
li,
|
26082
26119
|
{
|
26083
26120
|
maxDate: Xe(gt(/* @__PURE__ */ new Date(), 1)),
|
26084
|
-
minDate:
|
26121
|
+
minDate: Fe(/* @__PURE__ */ new Date()),
|
26085
26122
|
onMonthChange: o,
|
26086
26123
|
showDaysOutsideCurrentMonth: !0,
|
26087
26124
|
slots: {
|
@@ -26254,7 +26291,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26254
26291
|
}
|
26255
26292
|
)
|
26256
26293
|
] });
|
26257
|
-
},
|
26294
|
+
}, fi = A(
|
26258
26295
|
({
|
26259
26296
|
recurrences: e,
|
26260
26297
|
isMini: n = !1,
|
@@ -26379,7 +26416,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26379
26416
|
}
|
26380
26417
|
),
|
26381
26418
|
!i && !n && /* @__PURE__ */ t(
|
26382
|
-
|
26419
|
+
fi,
|
26383
26420
|
{
|
26384
26421
|
onRecurrenceClick: v,
|
26385
26422
|
recurrences: f,
|
@@ -26402,14 +26439,14 @@ const Pi = g.createContext(null), b0 = ({
|
|
26402
26439
|
)
|
26403
26440
|
] }),
|
26404
26441
|
E === 0 && /* @__PURE__ */ t(
|
26405
|
-
|
26442
|
+
fi,
|
26406
26443
|
{
|
26407
26444
|
onRecurrenceClick: v,
|
26408
26445
|
recurrences: f
|
26409
26446
|
}
|
26410
26447
|
),
|
26411
26448
|
E === 1 && /* @__PURE__ */ t(
|
26412
|
-
|
26449
|
+
fi,
|
26413
26450
|
{
|
26414
26451
|
onRecurrenceClick: w,
|
26415
26452
|
recurrences: _
|
@@ -26420,7 +26457,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26420
26457
|
!i && !n && /* @__PURE__ */ t(zt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
26421
26458
|
/* @__PURE__ */ t(hl, {}),
|
26422
26459
|
/* @__PURE__ */ t(
|
26423
|
-
|
26460
|
+
fi,
|
26424
26461
|
{
|
26425
26462
|
onRecurrenceClick: w,
|
26426
26463
|
recurrences: C || _,
|
@@ -26479,12 +26516,12 @@ const Pi = g.createContext(null), b0 = ({
|
|
26479
26516
|
}
|
26480
26517
|
) : /* @__PURE__ */ t(ue, {});
|
26481
26518
|
}), tb = A(() => {
|
26482
|
-
const { recurring: e } = I(), { availableWidth: n } =
|
26519
|
+
const { recurring: e } = I(), { availableWidth: n } = Wn(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: o } = Pt(), s = n < 750;
|
26483
26520
|
return /* @__PURE__ */ l(b, { flexDirection: s ? "column" : "row", width: "100%", children: [
|
26484
26521
|
/* @__PURE__ */ t(hl, {}),
|
26485
26522
|
!s && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
26486
26523
|
/* @__PURE__ */ t(
|
26487
|
-
|
26524
|
+
fi,
|
26488
26525
|
{
|
26489
26526
|
isMini: !0,
|
26490
26527
|
onResetClick: i ? () => r(i) : void 0,
|
@@ -26694,7 +26731,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26694
26731
|
g.useEffect(() => {
|
26695
26732
|
s(
|
26696
26733
|
i,
|
26697
|
-
|
26734
|
+
Fe(/* @__PURE__ */ new Date()),
|
26698
26735
|
Xe(/* @__PURE__ */ new Date())
|
26699
26736
|
).finally();
|
26700
26737
|
}, [i]);
|
@@ -26942,7 +26979,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26942
26979
|
C(L), h("");
|
26943
26980
|
}, D = (O) => {
|
26944
26981
|
h(u === O || O === "0" ? "" : O);
|
26945
|
-
},
|
26982
|
+
}, $ = (O) => {
|
26946
26983
|
const L = {
|
26947
26984
|
accounts: c,
|
26948
26985
|
dateRange: o
|
@@ -27000,7 +27037,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
27000
27037
|
{
|
27001
27038
|
data: v,
|
27002
27039
|
onSelected: D,
|
27003
|
-
onViewTransactions:
|
27040
|
+
onViewTransactions: $,
|
27004
27041
|
selectedId: u,
|
27005
27042
|
title: r.spend_tab_title
|
27006
27043
|
}
|
@@ -27010,7 +27047,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
27010
27047
|
{
|
27011
27048
|
data: w,
|
27012
27049
|
onSelected: D,
|
27013
|
-
onViewTransactions:
|
27050
|
+
onViewTransactions: $,
|
27014
27051
|
selectedId: u,
|
27015
27052
|
title: r.income_tab_title
|
27016
27053
|
}
|
@@ -27041,7 +27078,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
27041
27078
|
g.useEffect(() => {
|
27042
27079
|
c(i);
|
27043
27080
|
}, [i]), g.useEffect(() => {
|
27044
|
-
s(
|
27081
|
+
s(Fe(le()), Xe(le())), u(!0), d(W.SPENDING_VIEW);
|
27045
27082
|
}, []);
|
27046
27083
|
const h = (m) => {
|
27047
27084
|
s(m[0], m[1]);
|
@@ -27169,8 +27206,8 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27169
27206
|
category_guid: T,
|
27170
27207
|
top_level_category_guid: v
|
27171
27208
|
});
|
27172
|
-
const
|
27173
|
-
return E[D][
|
27209
|
+
const $ = ae(new Date(R, w - 1), te.MONTH_SHORT);
|
27210
|
+
return E[D][$] || (E[D][$] = 0), E[D][$] = E[D][$] + x, E;
|
27174
27211
|
},
|
27175
27212
|
{}
|
27176
27213
|
);
|
@@ -27231,7 +27268,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27231
27268
|
}, vb = A(xb), wb = {
|
27232
27269
|
view_transactions: "View Transactions"
|
27233
27270
|
}, Nb = ({ onBackClick: e, sx: n }) => {
|
27234
|
-
const i = tt(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = ve(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [v, w] = g.useState(!1), [x, R] = g.useState(!1), [D,
|
27271
|
+
const i = tt(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = ve(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [v, w] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, P] = g.useState({
|
27235
27272
|
start: oo(Xe(jt(/* @__PURE__ */ new Date(), 6)), 1),
|
27236
27273
|
end: Xe(/* @__PURE__ */ new Date())
|
27237
27274
|
});
|
@@ -27269,7 +27306,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27269
27306
|
);
|
27270
27307
|
return `${Te} - ${_t}`;
|
27271
27308
|
}, [U, s]), V = (Te, _t) => {
|
27272
|
-
|
27309
|
+
$(_t ?? D), a(W.TRENDS_CLICK_TOGGLE);
|
27273
27310
|
}, Ce = (Te) => {
|
27274
27311
|
const _t = oo(Te?.[0], 1), un = Te?.[1], se = eu(un, _t);
|
27275
27312
|
P({ start: _t, end: un }), a(W.TRENDS_CLICK_DATE, {
|
@@ -27340,7 +27377,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27340
27377
|
orientation: "horizontal",
|
27341
27378
|
value: D,
|
27342
27379
|
children: ["Chart", "Table"].map((Te) => /* @__PURE__ */ t(
|
27343
|
-
|
27380
|
+
Ni,
|
27344
27381
|
{
|
27345
27382
|
sx: {
|
27346
27383
|
fontSize: 15,
|
@@ -27365,7 +27402,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27365
27402
|
}
|
27366
27403
|
},
|
27367
27404
|
value: Te,
|
27368
|
-
children: Te === "Chart" ? /* @__PURE__ */ t(
|
27405
|
+
children: Te === "Chart" ? /* @__PURE__ */ t(H, { name: "table_chart_view" }) : /* @__PURE__ */ t(H, { name: "format_list_bulleted" })
|
27369
27406
|
},
|
27370
27407
|
Te
|
27371
27408
|
))
|
@@ -27376,7 +27413,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27376
27413
|
),
|
27377
27414
|
/* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
27378
27415
|
/* @__PURE__ */ t(M, { flexGrow: 1, children: O && /* @__PURE__ */ l(ee, { onClick: () => L(""), sx: { p: 0, pr: 5 }, children: [
|
27379
|
-
/* @__PURE__ */ t(
|
27416
|
+
/* @__PURE__ */ t(H, { name: "arrow_back" }),
|
27380
27417
|
y.all_categories
|
27381
27418
|
] }) }),
|
27382
27419
|
/* @__PURE__ */ t(ee, { onClick: () => R(!0), sx: { px: 5 }, children: `${wb.view_transactions} (${h.length})` })
|
@@ -27497,9 +27534,9 @@ export {
|
|
27497
27534
|
bh as CategoryStore,
|
27498
27535
|
A0 as ChartFilledIcon,
|
27499
27536
|
sc as ConnectCard,
|
27500
|
-
|
27537
|
+
di as ConnectDrawer,
|
27501
27538
|
i4 as ConnectMiniWidget,
|
27502
|
-
|
27539
|
+
Kn as ConnectionStatus,
|
27503
27540
|
ht as ConnectionStatusEnums,
|
27504
27541
|
Qi as CurrencyCodes,
|
27505
27542
|
en as CurrencyInput,
|
@@ -27519,13 +27556,13 @@ export {
|
|
27519
27556
|
ke as Dialog,
|
27520
27557
|
Hu as Donut,
|
27521
27558
|
ne as Drawer,
|
27522
|
-
|
27559
|
+
Si as EmptyState,
|
27523
27560
|
$s as ErrorStatuses,
|
27524
27561
|
N_ as ExpenseStatus,
|
27525
27562
|
rt as Fetch,
|
27526
27563
|
xt as FieldType,
|
27527
27564
|
Ne as Frequency,
|
27528
|
-
|
27565
|
+
yi as GlobalCopyApi,
|
27529
27566
|
s_ as GlobalCopyStore,
|
27530
27567
|
Xn as GlobalDataContext,
|
27531
27568
|
k2 as GlobalDataProvider,
|
@@ -27573,7 +27610,7 @@ export {
|
|
27573
27610
|
I1 as NotificationList,
|
27574
27611
|
Xc as NotificationSettings,
|
27575
27612
|
f1 as NotificationStore,
|
27576
|
-
|
27613
|
+
Ue as NotificationType,
|
27577
27614
|
Ln as ORDINAL_DATE_FORMAT,
|
27578
27615
|
T2 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
27579
27616
|
fr as PAYMENT_ACCOUNT_TYPES,
|
@@ -27617,7 +27654,7 @@ export {
|
|
27617
27654
|
si as TabContentContainer,
|
27618
27655
|
ar as ToggleButtonListItem,
|
27619
27656
|
ti as ToggleListItem,
|
27620
|
-
|
27657
|
+
pi as TopActions,
|
27621
27658
|
K as TrackType,
|
27622
27659
|
ia as TransactionApi,
|
27623
27660
|
qn as TransactionDetails,
|
@@ -27692,6 +27729,6 @@ export {
|
|
27692
27729
|
Se as useTransactionStore,
|
27693
27730
|
It as useTransactionsUiStore,
|
27694
27731
|
dn as useUserStore,
|
27695
|
-
|
27732
|
+
Wn as useWidgetContainerProvider
|
27696
27733
|
};
|
27697
27734
|
//# sourceMappingURL=index.es.js.map
|