@mx-cartographer/experiences 4.0.1 → 4.0.2-alpha.al1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +522 -514
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as l, Fragment as eA } from "react/jsx-runtime";
|
|
|
2
2
|
import g, { useMemo as ao, useRef as Ra, useEffect as me, useState as Ce, createContext as io, useContext as oo } from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import O from "@mui/material/Box";
|
|
5
|
-
import
|
|
5
|
+
import q from "@mui/material/Divider";
|
|
6
6
|
import nA from "@mui/material/List";
|
|
7
7
|
import le from "@mui/material/ListSubheader";
|
|
8
8
|
import wr from "@mui/system/Stack";
|
|
@@ -205,7 +205,7 @@ const Ks = async (A, e, n = "1.0.0", r = "Experiences") => {
|
|
|
205
205
|
TRANSACTIONS: "transactions",
|
|
206
206
|
USER_PROFILES: "user_profiles",
|
|
207
207
|
WIDGET_URLS: "widget_urls"
|
|
208
|
-
},
|
|
208
|
+
}, k = {
|
|
209
209
|
ACCOUNTS_CLICK_SYNC: "accounts_widget_click_sync",
|
|
210
210
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
211
211
|
ACCOUNTS_CLICK_FILTER: "accounts_widget_click_filter_accounts",
|
|
@@ -746,7 +746,7 @@ const N7 = {
|
|
|
746
746
|
[b.UNCATEGORIZED]: "category",
|
|
747
747
|
UNKNOWN: "help"
|
|
748
748
|
}, _r = 9999999999e-2;
|
|
749
|
-
var Ft = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Ft || {}),
|
|
749
|
+
var Ft = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Ft || {}), G = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.EveryWeek = 1] = "EveryWeek", A[A.EveryOtherWeek = 2] = "EveryOtherWeek", A[A.EveryMonth = 3] = "EveryMonth", A[A.EveryOtherMonth = 4] = "EveryOtherMonth", A[A.EveryQuarter = 5] = "EveryQuarter", A[A.EveryOtherQuarter = 6] = "EveryOtherQuarter", A[A.EveryYear = 7] = "EveryYear", A))(G || {});
|
|
750
750
|
const _7 = [
|
|
751
751
|
{ id: 0, copy: "frequency_unknown" },
|
|
752
752
|
{ id: 1, copy: "frequency_every_week" },
|
|
@@ -792,7 +792,7 @@ const ut = 44, Rr = (A, e) => A.find((n) => n.guid === e), Ys = (A, e) => A.find
|
|
|
792
792
|
}, Js = (A, e) => {
|
|
793
793
|
const n = A.find((r) => r.guid === e);
|
|
794
794
|
return n ? n.guid === b.INCOME || n.parent_guid === b.INCOME : !1;
|
|
795
|
-
}, Zs = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g,
|
|
795
|
+
}, Zs = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, _ = (A, ...e) => {
|
|
796
796
|
if (!A) return "";
|
|
797
797
|
const n = e.some((i) => typeof i != "string"), a = [...A.matchAll(Zs)].reduce(
|
|
798
798
|
(i, o, s) => {
|
|
@@ -812,7 +812,7 @@ const ut = 44, Rr = (A, e) => A.find((n) => n.guid === e), Ys = (A, e) => A.find
|
|
|
812
812
|
[]
|
|
813
813
|
);
|
|
814
814
|
return n ? a : a.join("");
|
|
815
|
-
}, z7 = (A, e, n, ...r) => !A || !e ? "" :
|
|
815
|
+
}, z7 = (A, e, n, ...r) => !A || !e ? "" : _(n === 1 ? A : e, ...r), qe = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
|
|
816
816
|
class UA {
|
|
817
817
|
endpoint = "/";
|
|
818
818
|
headers = {};
|
|
@@ -1166,13 +1166,13 @@ const yn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1166
1166
|
return /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
1167
1167
|
nA,
|
|
1168
1168
|
{
|
|
1169
|
-
"aria-label":
|
|
1169
|
+
"aria-label": _(n.accountTypeAccounts, E),
|
|
1170
1170
|
className: "mx-cmn-account-options-group",
|
|
1171
1171
|
dense: !0,
|
|
1172
1172
|
subheader: /* @__PURE__ */ t(le, { disableGutters: !0, children: /* @__PURE__ */ t(
|
|
1173
1173
|
dA,
|
|
1174
1174
|
{
|
|
1175
|
-
"aria-label":
|
|
1175
|
+
"aria-label": _(n.toggleAccountTypeAccounts, E),
|
|
1176
1176
|
"aria-pressed": L,
|
|
1177
1177
|
disableGutters: !0,
|
|
1178
1178
|
onClick: () => a(
|
|
@@ -1561,7 +1561,7 @@ const cc = (A, e) => {
|
|
|
1561
1561
|
selectedIndex: c,
|
|
1562
1562
|
valueFormatter: h = (d) => `${d}`
|
|
1563
1563
|
}) => {
|
|
1564
|
-
const d = RA(), u = vc(d), C = r.reduce(mc, []), f = A !== void 0 ? A : C.reduce(Cc, 0) / C.length, m = Math.max(...C), v = Math.min(...C), E = C.reduce(fc, 0), S = m >= 0, L = v < 0, w = Fr(S, L, a), D = Fr(L, S, a), P = pc(f, m, v, w || D),
|
|
1564
|
+
const d = RA(), u = vc(d), C = r.reduce(mc, []), f = A !== void 0 ? A : C.reduce(Cc, 0) / C.length, m = Math.max(...C), v = Math.min(...C), E = C.reduce(fc, 0), S = m >= 0, L = v < 0, w = Fr(S, L, a), D = Fr(L, S, a), P = pc(f, m, v, w || D), N = (R) => c === void 0 || R === c ? n : `${n}80`, x = () => /* @__PURE__ */ t(
|
|
1565
1565
|
Gr,
|
|
1566
1566
|
{
|
|
1567
1567
|
averageLineHeight: P,
|
|
@@ -1576,27 +1576,27 @@ const cc = (A, e) => {
|
|
|
1576
1576
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-bar-chart ${u}`, children: [
|
|
1577
1577
|
/* @__PURE__ */ l("div", { className: "mx-cmn-chart-container", children: [
|
|
1578
1578
|
/* @__PURE__ */ t(x, {}),
|
|
1579
|
-
r.map((
|
|
1579
|
+
r.map((R, j) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
1580
1580
|
/* @__PURE__ */ t(
|
|
1581
1581
|
Gr,
|
|
1582
1582
|
{
|
|
1583
|
-
ariaLabel:
|
|
1583
|
+
ariaLabel: R.ariaLabel,
|
|
1584
1584
|
averageLineHeight: P,
|
|
1585
1585
|
bottomHeight: D,
|
|
1586
|
-
color:
|
|
1587
|
-
index:
|
|
1586
|
+
color: N(j),
|
|
1587
|
+
index: j,
|
|
1588
1588
|
onClick: s,
|
|
1589
1589
|
range: E,
|
|
1590
1590
|
selectedIndex: c,
|
|
1591
1591
|
topHeight: w,
|
|
1592
|
-
value:
|
|
1593
|
-
valueLabel: h(
|
|
1592
|
+
value: R.value,
|
|
1593
|
+
valueLabel: h(R.value),
|
|
1594
1594
|
width: e,
|
|
1595
|
-
xAxisLabel:
|
|
1595
|
+
xAxisLabel: R.label
|
|
1596
1596
|
}
|
|
1597
1597
|
),
|
|
1598
1598
|
/* @__PURE__ */ t(x, {})
|
|
1599
|
-
] }, `column-${
|
|
1599
|
+
] }, `column-${j}`))
|
|
1600
1600
|
] }),
|
|
1601
1601
|
/* @__PURE__ */ t(dc, { color: n, labelAverage: i, labelMain: o })
|
|
1602
1602
|
] });
|
|
@@ -1730,10 +1730,10 @@ const Tc = ({
|
|
|
1730
1730
|
const m = g.useMemo(() => {
|
|
1731
1731
|
const w = Eo({ start: yA(c), end: NA(c) }), D = [];
|
|
1732
1732
|
for (let P = 0; P < w.length; P++) {
|
|
1733
|
-
const
|
|
1734
|
-
for (let
|
|
1735
|
-
|
|
1736
|
-
D.push(
|
|
1733
|
+
const N = w[P], x = vo({ start: N, end: pe(N, 6) }), R = [];
|
|
1734
|
+
for (let j = 0; j < x.length; j++)
|
|
1735
|
+
R.push(x[j]);
|
|
1736
|
+
D.push(R);
|
|
1737
1737
|
}
|
|
1738
1738
|
return D;
|
|
1739
1739
|
}, [c]), v = (w) => {
|
|
@@ -1763,7 +1763,7 @@ const Tc = ({
|
|
|
1763
1763
|
}
|
|
1764
1764
|
),
|
|
1765
1765
|
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: m[0].map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: XA(w, "EEEEE") }) }, D)) }),
|
|
1766
|
-
m.map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((P,
|
|
1766
|
+
m.map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((P, N) => /* @__PURE__ */ t(
|
|
1767
1767
|
bc,
|
|
1768
1768
|
{
|
|
1769
1769
|
beginDate: d,
|
|
@@ -1772,7 +1772,7 @@ const Tc = ({
|
|
|
1772
1772
|
isInMonth: yo(P, c),
|
|
1773
1773
|
onClick: v
|
|
1774
1774
|
},
|
|
1775
|
-
|
|
1775
|
+
N
|
|
1776
1776
|
)) }, `w-${D}`)),
|
|
1777
1777
|
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(sA, { onClick: E, size: "small", variant: "text", children: A.today }) })
|
|
1778
1778
|
] }) });
|
|
@@ -1965,16 +1965,16 @@ const Tc = ({
|
|
|
1965
1965
|
valueFormatterString: f = "0,0",
|
|
1966
1966
|
width: m
|
|
1967
1967
|
}) => {
|
|
1968
|
-
const v = re(), E = n.flat().map((N) => N.x), S = n.flat().map((N) => N.y), L = Math.round(S.reduce((N,
|
|
1968
|
+
const v = re(), E = n.flat().map((N) => N.x), S = n.flat().map((N) => N.y), L = Math.round(S.reduce((N, x) => x + N, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, D = Math.ceil(Math.max(...S) / 100) * 100, P = n.map((N, x) => ({
|
|
1969
1969
|
type: c ? "bar" : "line",
|
|
1970
1970
|
curve: "linear",
|
|
1971
|
-
color: c ? v.palette.chart?.chart6 : e[
|
|
1972
|
-
data: N.map((
|
|
1971
|
+
color: c ? v.palette.chart?.chart6 : e[x] ?? v.palette.primary.main,
|
|
1972
|
+
data: N.map((R) => R.y),
|
|
1973
1973
|
area: h,
|
|
1974
1974
|
baseline: A,
|
|
1975
1975
|
showMark: !0,
|
|
1976
|
-
label: a[
|
|
1977
|
-
valueFormatter: (
|
|
1976
|
+
label: a[x],
|
|
1977
|
+
valueFormatter: (R) => z(R || 0, f)
|
|
1978
1978
|
}));
|
|
1979
1979
|
return /* @__PURE__ */ l("div", { style: { position: "relative" }, children: [
|
|
1980
1980
|
/* @__PURE__ */ l(
|
|
@@ -1982,12 +1982,20 @@ const Tc = ({
|
|
|
1982
1982
|
{
|
|
1983
1983
|
height: r,
|
|
1984
1984
|
margin: i,
|
|
1985
|
-
series:
|
|
1985
|
+
series: P,
|
|
1986
1986
|
sx: {
|
|
1987
1987
|
p: 4,
|
|
1988
1988
|
"& .MuiBarLabel-root": {
|
|
1989
1989
|
fontSize: 10,
|
|
1990
1990
|
fontWeight: 600
|
|
1991
|
+
},
|
|
1992
|
+
// '& .MuiAreaElement-root': {
|
|
1993
|
+
// fill: `linear-gradient(to bottom, ${theme.palette.background.paper} 0%, ${
|
|
1994
|
+
// colors[0] ?? theme.palette.primary.main
|
|
1995
|
+
// } 15%)`,
|
|
1996
|
+
// },
|
|
1997
|
+
"& .MuiAreaElement-root": {
|
|
1998
|
+
opacity: 0.15
|
|
1991
1999
|
}
|
|
1992
2000
|
},
|
|
1993
2001
|
width: m,
|
|
@@ -1998,8 +2006,8 @@ const Tc = ({
|
|
|
1998
2006
|
max: D || 100,
|
|
1999
2007
|
colorMap: h ? {
|
|
2000
2008
|
type: "continuous",
|
|
2001
|
-
min:
|
|
2002
|
-
max:
|
|
2009
|
+
min: w,
|
|
2010
|
+
max: D,
|
|
2003
2011
|
color: [v.palette.background.paper, e[0] ?? v.palette.primary.main]
|
|
2004
2012
|
} : void 0,
|
|
2005
2013
|
valueFormatter: (N) => z(N, f)
|
|
@@ -2010,7 +2018,7 @@ const Tc = ({
|
|
|
2010
2018
|
/* @__PURE__ */ t(
|
|
2011
2019
|
Po,
|
|
2012
2020
|
{
|
|
2013
|
-
slots: h &&
|
|
2021
|
+
slots: h && P.length < 2 ? {
|
|
2014
2022
|
line: (N) => /* @__PURE__ */ t(Nc, { ...N, lineColor: e[0] ?? v.palette.primary.main })
|
|
2015
2023
|
} : void 0
|
|
2016
2024
|
}
|
|
@@ -2072,7 +2080,7 @@ const Tc = ({
|
|
|
2072
2080
|
_c,
|
|
2073
2081
|
{
|
|
2074
2082
|
average: L,
|
|
2075
|
-
series:
|
|
2083
|
+
series: P,
|
|
2076
2084
|
style: { position: "absolute", top: 16, left: 16 }
|
|
2077
2085
|
}
|
|
2078
2086
|
)
|
|
@@ -2119,7 +2127,7 @@ const Tc = ({
|
|
|
2119
2127
|
/* @__PURE__ */ t(
|
|
2120
2128
|
O,
|
|
2121
2129
|
{
|
|
2122
|
-
"aria-label":
|
|
2130
|
+
"aria-label": _(n.category_icon_label_aria, r),
|
|
2123
2131
|
mb: 4,
|
|
2124
2132
|
role: "img",
|
|
2125
2133
|
children: /* @__PURE__ */ t(ne, { categoryGuid: e })
|
|
@@ -2174,9 +2182,9 @@ const Tc = ({
|
|
|
2174
2182
|
/* @__PURE__ */ t(p, { variant: "Small", children: i.six_month_total }),
|
|
2175
2183
|
/* @__PURE__ */ t(wA, { amount: d, bold: !0, formatString: "0,0", variant: "body2" })
|
|
2176
2184
|
] }),
|
|
2177
|
-
/* @__PURE__ */ t(
|
|
2185
|
+
/* @__PURE__ */ t(q, { sx: { my: 16, width: "100%" } }),
|
|
2178
2186
|
/* @__PURE__ */ t(vt, { container: !0, children: n.map((u, C) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
2179
|
-
C > 0 && C % 3 === 0 && /* @__PURE__ */ t(
|
|
2187
|
+
C > 0 && C % 3 === 0 && /* @__PURE__ */ t(q, { sx: { my: 16, width: "100%" } }),
|
|
2180
2188
|
/* @__PURE__ */ t(vt, { item: !0, xs: 4, children: /* @__PURE__ */ l(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2181
2189
|
/* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "XSmall", children: $(String(u.x), Z.MONTH_SHORT) }),
|
|
2182
2190
|
/* @__PURE__ */ t(
|
|
@@ -2266,11 +2274,11 @@ const Tc = ({
|
|
|
2266
2274
|
hoveredAreaData: null,
|
|
2267
2275
|
isAreaHovered: !1,
|
|
2268
2276
|
cursorPos: { x: 0, y: 0 }
|
|
2269
|
-
}), { hoveredSeriesId: v, hoveredAreaData: E, isAreaHovered: S, cursorPos: L } = f, w = S && v && E, D = !w, P = [...a, ...i],
|
|
2277
|
+
}), { hoveredSeriesId: v, hoveredAreaData: E, isAreaHovered: S, cursorPos: L } = f, w = S && v && E, D = !w, P = [...a, ...i], N = P[0]?.dataset.length ?? 0, x = P.flatMap((K) => K.dataset.map((hA) => hA.x)), R = P.flatMap((K) => K.dataset.map((hA) => hA.y)), j = a[0]?.dataset?.map(
|
|
2270
2278
|
(K, hA) => a.reduce((EA, Ee) => EA + Ee.dataset[hA]?.y || 0, 0)
|
|
2271
|
-
) ?? [0],
|
|
2279
|
+
) ?? [0], F = Math.max(...j), X = Math.max(
|
|
2272
2280
|
...i.flatMap((K) => K.dataset.map((hA) => hA.y))
|
|
2273
|
-
), Q = Math.floor(Math.min(...
|
|
2281
|
+
), Q = Math.floor(Math.min(...R) / 100) * 100, U = Math.ceil(Math.max(F, X) / 100) * 100, rA = a.map((K, hA) => ({
|
|
2274
2282
|
id: `stacked-${hA}`,
|
|
2275
2283
|
guid: K.category_guid,
|
|
2276
2284
|
top_level_guid: K.top_level_category_guid,
|
|
@@ -2414,7 +2422,7 @@ const Tc = ({
|
|
|
2414
2422
|
data: x,
|
|
2415
2423
|
scaleType: "time",
|
|
2416
2424
|
valueFormatter: (K) => $(K, Z.MONTH_SHORT_YEAR),
|
|
2417
|
-
tickNumber:
|
|
2425
|
+
tickNumber: N
|
|
2418
2426
|
// How many ticks to show on the x-axis
|
|
2419
2427
|
}
|
|
2420
2428
|
],
|
|
@@ -2644,7 +2652,7 @@ const Tc = ({
|
|
|
2644
2652
|
toolTipContent: i = "",
|
|
2645
2653
|
variant: o = "outlined"
|
|
2646
2654
|
}) => {
|
|
2647
|
-
const s = CA(), c = s.palette.mode === "dark", { isDesktop: h, isMobile: d } = MA(), [u, C] = g.useState(r), [f, m] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [v, E] = g.useState(u), [S, L] = g.useState(!1), [w, D] = g.useState(!0), [P,
|
|
2655
|
+
const s = CA(), c = s.palette.mode === "dark", { isDesktop: h, isMobile: d } = MA(), [u, C] = g.useState(r), [f, m] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [v, E] = g.useState(u), [S, L] = g.useState(!1), [w, D] = g.useState(!0), [P, N] = g.useState(6), x = {
|
|
2648
2656
|
buttons: [
|
|
2649
2657
|
{ label: "3M", value: 3 },
|
|
2650
2658
|
{ label: "6M", value: 6 },
|
|
@@ -2661,12 +2669,12 @@ const Tc = ({
|
|
|
2661
2669
|
g.useEffect(() => {
|
|
2662
2670
|
E(r);
|
|
2663
2671
|
}, [r]), g.useEffect(() => {
|
|
2664
|
-
(o === "timeframebuttons" || o === "timeframetabs") && A.onRangeChanged(
|
|
2672
|
+
(o === "timeframebuttons" || o === "timeframetabs") && A.onRangeChanged(R());
|
|
2665
2673
|
}, [P]);
|
|
2666
|
-
const
|
|
2674
|
+
const R = () => {
|
|
2667
2675
|
const Q = NA(Ue());
|
|
2668
2676
|
return [NA(ce(Q, P)), Q];
|
|
2669
|
-
},
|
|
2677
|
+
}, j = (Q) => {
|
|
2670
2678
|
const U = [...u], rA = u[0], gA = u[1], cA = Q === "previous";
|
|
2671
2679
|
if (f === n.dateRangePickerCopy.dateRangeThisMonth)
|
|
2672
2680
|
U[0] = cA ? ce(rA, 1) : ee(rA, 1), U[1] = NA(cA ? ce(gA, 1) : ee(gA, 1));
|
|
@@ -2677,12 +2685,12 @@ const Tc = ({
|
|
|
2677
2685
|
U[0] = Q === "previous" ? de(rA, vA) : pe(rA, vA), U[1] = Q === "previous" ? de(gA, vA) : pe(gA, vA);
|
|
2678
2686
|
}
|
|
2679
2687
|
C(U), A.onRangeChanged(U);
|
|
2680
|
-
},
|
|
2688
|
+
}, F = () => {
|
|
2681
2689
|
C(v), D(
|
|
2682
2690
|
f === n.dateRangePickerCopy.dateRangeThisMonth || f === n.dateRangePickerCopy.dateRangeLastMonth
|
|
2683
2691
|
), A.onRangeChanged(v);
|
|
2684
|
-
},
|
|
2685
|
-
|
|
2692
|
+
}, X = (Q) => {
|
|
2693
|
+
N(Q);
|
|
2686
2694
|
};
|
|
2687
2695
|
return /* @__PURE__ */ l(O, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
2688
2696
|
/* @__PURE__ */ t(
|
|
@@ -2738,7 +2746,7 @@ const Tc = ({
|
|
|
2738
2746
|
"aria-disabled": A.shouldDisablePrevious,
|
|
2739
2747
|
"aria-label": n.dateRangePreviousAria,
|
|
2740
2748
|
color: A.shouldDisablePrevious ? "secondary" : "primary",
|
|
2741
|
-
onClick: () => A.shouldDisablePrevious ? null :
|
|
2749
|
+
onClick: () => A.shouldDisablePrevious ? null : j("previous"),
|
|
2742
2750
|
children: /* @__PURE__ */ t(M, { name: "chevron_left", size: 28 })
|
|
2743
2751
|
}
|
|
2744
2752
|
),
|
|
@@ -2767,7 +2775,7 @@ const Tc = ({
|
|
|
2767
2775
|
"aria-disabled": A.shouldDisableNext,
|
|
2768
2776
|
"aria-label": n.dateRangeNextAria,
|
|
2769
2777
|
color: A.shouldDisableNext ? "secondary" : "primary",
|
|
2770
|
-
onClick: () => A.shouldDisableNext ? null :
|
|
2778
|
+
onClick: () => A.shouldDisableNext ? null : j("next"),
|
|
2771
2779
|
children: /* @__PURE__ */ t(M, { name: "chevron_right", size: 28 })
|
|
2772
2780
|
}
|
|
2773
2781
|
)
|
|
@@ -2784,7 +2792,7 @@ const Tc = ({
|
|
|
2784
2792
|
children: x.buttons.map((Q) => /* @__PURE__ */ t(
|
|
2785
2793
|
Kn,
|
|
2786
2794
|
{
|
|
2787
|
-
onClick: () =>
|
|
2795
|
+
onClick: () => X(Q.value),
|
|
2788
2796
|
sx: {
|
|
2789
2797
|
fontSize: 15,
|
|
2790
2798
|
fontWeight: 600,
|
|
@@ -2819,7 +2827,7 @@ const Tc = ({
|
|
|
2819
2827
|
Oe,
|
|
2820
2828
|
{
|
|
2821
2829
|
indicatorColor: "primary",
|
|
2822
|
-
onChange: (Q, U) =>
|
|
2830
|
+
onChange: (Q, U) => X(U),
|
|
2823
2831
|
textColor: "primary",
|
|
2824
2832
|
value: P,
|
|
2825
2833
|
variant: "fullWidth",
|
|
@@ -2844,7 +2852,7 @@ const Tc = ({
|
|
|
2844
2852
|
isOpen: S,
|
|
2845
2853
|
onClose: () => L(!1),
|
|
2846
2854
|
onPrimaryAction: () => {
|
|
2847
|
-
|
|
2855
|
+
F(), L(!1);
|
|
2848
2856
|
},
|
|
2849
2857
|
primaryText: n.dateRangeEditApply,
|
|
2850
2858
|
title: n.dateRangeEditTitle,
|
|
@@ -2868,7 +2876,7 @@ const Tc = ({
|
|
|
2868
2876
|
copy: { title: n.dateRangeEditTitle },
|
|
2869
2877
|
isOpen: !0,
|
|
2870
2878
|
onClose: () => L(!1),
|
|
2871
|
-
onPrimaryAction: () =>
|
|
2879
|
+
onPrimaryAction: () => F(),
|
|
2872
2880
|
primaryText: n.dateRangeEditApply,
|
|
2873
2881
|
sx: {
|
|
2874
2882
|
"& .MuiDialogContent-root": {
|
|
@@ -3083,9 +3091,9 @@ const Ye = ({
|
|
|
3083
3091
|
sx: u = {},
|
|
3084
3092
|
title: C = ""
|
|
3085
3093
|
}) => {
|
|
3086
|
-
const [f, { height: m, width: v }] = fi(), { onEvent: E } = V(), { isDesktop: S, isMobile: L, isTablet: w } = MA(), { displayedDateRange: D, selectedAccountGuids: P, setSelectedAccountGuids:
|
|
3087
|
-
c && (c(), E(
|
|
3088
|
-
},
|
|
3094
|
+
const [f, { height: m, width: v }] = fi(), { onEvent: E } = V(), { isDesktop: S, isMobile: L, isTablet: w } = MA(), { displayedDateRange: D, selectedAccountGuids: P, setSelectedAccountGuids: N } = fA(), { common: x } = I(), R = () => {
|
|
3095
|
+
c && (c(), E(k.WIDGET_BACK_CLICK));
|
|
3096
|
+
}, j = {
|
|
3089
3097
|
accountFilterOptionsCopy: {
|
|
3090
3098
|
accountTypeAccounts: x.account_filter.account_type_accounts,
|
|
3091
3099
|
cancelButton: x.cancel_button,
|
|
@@ -3099,7 +3107,7 @@ const Ye = ({
|
|
|
3099
3107
|
zeroStateTitle: x.account_filter.zero_state_title
|
|
3100
3108
|
},
|
|
3101
3109
|
title: x.account_filter.title
|
|
3102
|
-
},
|
|
3110
|
+
}, F = {
|
|
3103
3111
|
dateRangePickerCopy: {
|
|
3104
3112
|
dateRangeFrom: x.date_range_picker.from,
|
|
3105
3113
|
dateRangeTo: x.date_range_picker.to,
|
|
@@ -3117,7 +3125,7 @@ const Ye = ({
|
|
|
3117
3125
|
dateRangeEditTitle: x.date_range_picker.edit_title,
|
|
3118
3126
|
dateRangeNextAria: x.date_range_picker.next_aria,
|
|
3119
3127
|
dateRangePreviousAria: x.date_range_picker.previous_aria
|
|
3120
|
-
},
|
|
3128
|
+
}, X = a ? a.start : D.start, Q = a ? a.end : D.end;
|
|
3121
3129
|
return /* @__PURE__ */ l(
|
|
3122
3130
|
ve,
|
|
3123
3131
|
{
|
|
@@ -3143,8 +3151,8 @@ const Ye = ({
|
|
|
3143
3151
|
Xr,
|
|
3144
3152
|
{
|
|
3145
3153
|
calendarActions: n,
|
|
3146
|
-
copy:
|
|
3147
|
-
range: [
|
|
3154
|
+
copy: F,
|
|
3155
|
+
range: [X, Q],
|
|
3148
3156
|
shouldShrinkToIcon: !1,
|
|
3149
3157
|
variant: i
|
|
3150
3158
|
}
|
|
@@ -3153,10 +3161,10 @@ const Ye = ({
|
|
|
3153
3161
|
si,
|
|
3154
3162
|
{
|
|
3155
3163
|
accounts: A,
|
|
3156
|
-
copy:
|
|
3164
|
+
copy: j,
|
|
3157
3165
|
onFilterClick: (U) => {
|
|
3158
3166
|
const rA = A.filter((gA) => U.includes(gA.guid)).map((gA) => gA.guid);
|
|
3159
|
-
|
|
3167
|
+
N(rA), h?.();
|
|
3160
3168
|
},
|
|
3161
3169
|
selectedAccountGuids: P,
|
|
3162
3170
|
showAccountNumbers: !1,
|
|
@@ -3200,7 +3208,7 @@ const Ye = ({
|
|
|
3200
3208
|
KA,
|
|
3201
3209
|
{
|
|
3202
3210
|
"aria-label": x.back_to_dashboard,
|
|
3203
|
-
onClick:
|
|
3211
|
+
onClick: R,
|
|
3204
3212
|
sx: { ml: -16, mr: 16 },
|
|
3205
3213
|
children: /* @__PURE__ */ t(M, { name: "arrow_back" })
|
|
3206
3214
|
}
|
|
@@ -3209,15 +3217,15 @@ const Ye = ({
|
|
|
3209
3217
|
] })
|
|
3210
3218
|
}
|
|
3211
3219
|
),
|
|
3212
|
-
s && /* @__PURE__ */ t(
|
|
3220
|
+
s && /* @__PURE__ */ t(q, { sx: { mt: S ? 48 : 24 } }),
|
|
3213
3221
|
n && (L || w) && /* @__PURE__ */ l(y, { gap: 24, justifyContent: "center", sx: { mt: 16 }, children: [
|
|
3214
|
-
d && /* @__PURE__ */ t(
|
|
3222
|
+
d && /* @__PURE__ */ t(q, {}),
|
|
3215
3223
|
/* @__PURE__ */ t(
|
|
3216
3224
|
Xr,
|
|
3217
3225
|
{
|
|
3218
3226
|
calendarActions: n,
|
|
3219
|
-
copy:
|
|
3220
|
-
range: [
|
|
3227
|
+
copy: F,
|
|
3228
|
+
range: [X, Q],
|
|
3221
3229
|
shouldShrinkToIcon: !1,
|
|
3222
3230
|
variant: i
|
|
3223
3231
|
}
|
|
@@ -3314,7 +3322,7 @@ const jr = "connect_widget", Qr = "connections_widget", Yc = ({
|
|
|
3314
3322
|
}) => {
|
|
3315
3323
|
const [C, f] = g.useState(""), { common: m } = I(), v = a || m.currency_input, E = RA(), S = Vc(E), L = /^[0-9]*$/, w = /^(\d)*(\,)?([0-9]{1,2})?$/, D = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
3316
3324
|
let P;
|
|
3317
|
-
const
|
|
3325
|
+
const N = g.useRef(Wo());
|
|
3318
3326
|
if (A)
|
|
3319
3327
|
switch ($s()) {
|
|
3320
3328
|
case Ft.CAD:
|
|
@@ -3329,18 +3337,18 @@ const jr = "connect_widget", Qr = "connections_widget", Yc = ({
|
|
|
3329
3337
|
g.useEffect(() => {
|
|
3330
3338
|
x(n);
|
|
3331
3339
|
}, [n]);
|
|
3332
|
-
const x = (
|
|
3333
|
-
!r && (
|
|
3334
|
-
|
|
3340
|
+
const x = (R) => {
|
|
3341
|
+
!r && (R === "" || R === "." || R === ",") ? (f(""), d?.(!1)) : Number(R) < c ? (f(
|
|
3342
|
+
_(
|
|
3335
3343
|
v.error_amount_must_be_equal_to,
|
|
3336
3344
|
z(c, "0")
|
|
3337
3345
|
)
|
|
3338
|
-
), d?.(!1)) : Number(
|
|
3339
|
-
|
|
3346
|
+
), d?.(!1)) : Number(R) > _r ? (f(
|
|
3347
|
+
_(
|
|
3340
3348
|
v.error_amount_must_be_less_than_or_equal_to,
|
|
3341
3349
|
z(_r, A ? "0,0.00" : "0,0", Math.floor)
|
|
3342
3350
|
)
|
|
3343
|
-
), d?.(!1)) :
|
|
3351
|
+
), d?.(!1)) : R.toString().match(P) ? i() ? (f(""), d?.(!0)) : (f(o), d?.(!1)) : (f(v.error_amount_is_invalid), d?.(!1)), h(R.toString());
|
|
3344
3352
|
};
|
|
3345
3353
|
return /* @__PURE__ */ t(
|
|
3346
3354
|
Be,
|
|
@@ -3359,8 +3367,8 @@ const jr = "connect_widget", Qr = "connections_widget", Yc = ({
|
|
|
3359
3367
|
pattern: "[0-9]*"
|
|
3360
3368
|
},
|
|
3361
3369
|
label: s,
|
|
3362
|
-
name: `currency-input-${
|
|
3363
|
-
onChange: (
|
|
3370
|
+
name: `currency-input-${N.current}`,
|
|
3371
|
+
onChange: (R) => x(R.target.value),
|
|
3364
3372
|
value: n,
|
|
3365
3373
|
...u
|
|
3366
3374
|
}
|
|
@@ -3669,7 +3677,7 @@ const Yr = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, Vr = (A, e) =>
|
|
|
3669
3677
|
...i,
|
|
3670
3678
|
budgetColors: Vr(c, r),
|
|
3671
3679
|
category: o,
|
|
3672
|
-
description:
|
|
3680
|
+
description: _(
|
|
3673
3681
|
h < 0 ? n.budget_remaining_over : n.budget_remaining_left,
|
|
3674
3682
|
z(Math.abs(h), "0,0")
|
|
3675
3683
|
),
|
|
@@ -3688,7 +3696,7 @@ const Yr = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, Vr = (A, e) =>
|
|
|
3688
3696
|
...i,
|
|
3689
3697
|
budgetColors: Vr(d, r),
|
|
3690
3698
|
category: o,
|
|
3691
|
-
description:
|
|
3699
|
+
description: _(
|
|
3692
3700
|
h < 0 ? n.budget_remaining_over : n.budget_remaining_left,
|
|
3693
3701
|
z(Math.abs(h), "0,0")
|
|
3694
3702
|
),
|
|
@@ -3872,7 +3880,7 @@ const st = () => {
|
|
|
3872
3880
|
children: [
|
|
3873
3881
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
|
3874
3882
|
/* @__PURE__ */ t(wA, { amount: E, variant: "H2" }),
|
|
3875
|
-
/* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children:
|
|
3883
|
+
/* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: _(
|
|
3876
3884
|
o.total_cash_accounts,
|
|
3877
3885
|
d.length
|
|
3878
3886
|
) })
|
|
@@ -3880,7 +3888,7 @@ const st = () => {
|
|
|
3880
3888
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(M, { name: "remove" }) }),
|
|
3881
3889
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
|
3882
3890
|
/* @__PURE__ */ t(wA, { amount: S, variant: "H2" }),
|
|
3883
|
-
/* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children:
|
|
3891
|
+
/* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: _(o.expenses_due, h.length) })
|
|
3884
3892
|
] }),
|
|
3885
3893
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(M, { name: "equals" }) }),
|
|
3886
3894
|
/* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
|
|
@@ -3891,7 +3899,7 @@ const st = () => {
|
|
|
3891
3899
|
] })
|
|
3892
3900
|
] }),
|
|
3893
3901
|
/* @__PURE__ */ t(y, { borderLeft: `1px solid ${e.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ l(eA, { children: [
|
|
3894
|
-
/* @__PURE__ */ t(p, { variant: "H2", children:
|
|
3902
|
+
/* @__PURE__ */ t(p, { variant: "H2", children: _(o.days, c) }),
|
|
3895
3903
|
/* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: o.next_paycheck })
|
|
3896
3904
|
] }) : /* @__PURE__ */ t(
|
|
3897
3905
|
sA,
|
|
@@ -3906,18 +3914,18 @@ const st = () => {
|
|
|
3906
3914
|
}
|
|
3907
3915
|
) : /* @__PURE__ */ l(y, { border: `1px solid ${e.palette.border.light}`, borderRadius: 1, children: [
|
|
3908
3916
|
/* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
3909
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
3917
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: _(
|
|
3910
3918
|
o.total_cash_accounts,
|
|
3911
3919
|
d.length
|
|
3912
3920
|
) }),
|
|
3913
3921
|
/* @__PURE__ */ t(wA, { amount: a, bold: !0, variant: "XSmall" })
|
|
3914
3922
|
] }),
|
|
3915
|
-
/* @__PURE__ */ t(
|
|
3923
|
+
/* @__PURE__ */ t(q, {}),
|
|
3916
3924
|
/* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
3917
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
3925
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: _(o.expenses_due, h.length) }),
|
|
3918
3926
|
/* @__PURE__ */ t(wA, { amount: S, bold: !0, symbol: "-", variant: "XSmall" })
|
|
3919
3927
|
] }),
|
|
3920
|
-
/* @__PURE__ */ t(
|
|
3928
|
+
/* @__PURE__ */ t(q, {}),
|
|
3921
3929
|
/* @__PURE__ */ t(
|
|
3922
3930
|
y,
|
|
3923
3931
|
{
|
|
@@ -3932,10 +3940,10 @@ const st = () => {
|
|
|
3932
3940
|
children: /* @__PURE__ */ t(ar, { remaining: L })
|
|
3933
3941
|
}
|
|
3934
3942
|
),
|
|
3935
|
-
/* @__PURE__ */ t(
|
|
3943
|
+
/* @__PURE__ */ t(q, {}),
|
|
3936
3944
|
w ? /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
3937
3945
|
/* @__PURE__ */ t(p, { variant: "Small", children: o.next_paycheck }),
|
|
3938
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children:
|
|
3946
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: _(o.days, c) })
|
|
3939
3947
|
] }) : /* @__PURE__ */ l(
|
|
3940
3948
|
y,
|
|
3941
3949
|
{
|
|
@@ -4804,7 +4812,7 @@ const ZA = () => {
|
|
|
4804
4812
|
u(S.guid);
|
|
4805
4813
|
return;
|
|
4806
4814
|
}
|
|
4807
|
-
C(
|
|
4815
|
+
C(k.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
4808
4816
|
account_guid: S?.account_guid,
|
|
4809
4817
|
transaction_guid: E
|
|
4810
4818
|
}), r?.(E);
|
|
@@ -4840,7 +4848,7 @@ const ZA = () => {
|
|
|
4840
4848
|
children: [
|
|
4841
4849
|
L && /* @__PURE__ */ t(sr, { bgcolor: A, children: rn(S.date) }),
|
|
4842
4850
|
/* @__PURE__ */ t(or, { onClick: f, transaction: S }),
|
|
4843
|
-
/* @__PURE__ */ t(
|
|
4851
|
+
/* @__PURE__ */ t(q, { sx: { ml: w ? 24 : 0 } })
|
|
4844
4852
|
]
|
|
4845
4853
|
},
|
|
4846
4854
|
S.guid
|
|
@@ -5032,12 +5040,12 @@ const Gl = ({
|
|
|
5032
5040
|
h = s.add_subcategory_title;
|
|
5033
5041
|
break;
|
|
5034
5042
|
case "edit":
|
|
5035
|
-
h =
|
|
5043
|
+
h = _(s.edit_subcategory_title, A);
|
|
5036
5044
|
break;
|
|
5037
5045
|
case "delete":
|
|
5038
|
-
h = s.delete_subcategory_heading, d =
|
|
5046
|
+
h = s.delete_subcategory_heading, d = _(
|
|
5039
5047
|
s.all_transactions_in_this_subcategory,
|
|
5040
|
-
/* @__PURE__ */ t(p, { bold: !0, children:
|
|
5048
|
+
/* @__PURE__ */ t(p, { bold: !0, children: _(s.all_parent_category, A) })
|
|
5041
5049
|
);
|
|
5042
5050
|
break;
|
|
5043
5051
|
}
|
|
@@ -5179,7 +5187,7 @@ const Gl = ({
|
|
|
5179
5187
|
/* @__PURE__ */ t(
|
|
5180
5188
|
KA,
|
|
5181
5189
|
{
|
|
5182
|
-
"aria-label":
|
|
5190
|
+
"aria-label": _(h.edit_subcategory_aria, e.name),
|
|
5183
5191
|
onClick: () => {
|
|
5184
5192
|
C(!0), i(!0), d(se.ON_SUBCATEGORY_EDIT_CLICK);
|
|
5185
5193
|
},
|
|
@@ -5189,7 +5197,7 @@ const Gl = ({
|
|
|
5189
5197
|
/* @__PURE__ */ t(
|
|
5190
5198
|
KA,
|
|
5191
5199
|
{
|
|
5192
|
-
"aria-label":
|
|
5200
|
+
"aria-label": _(h.delete_subcategory_aria, e.name),
|
|
5193
5201
|
edge: "end",
|
|
5194
5202
|
onClick: () => {
|
|
5195
5203
|
m(!0), i(!0), d(se.ON_SUBCATEGORY_DELETE_CLICK);
|
|
@@ -5236,7 +5244,7 @@ const Gl = ({
|
|
|
5236
5244
|
children: [
|
|
5237
5245
|
A.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
5238
5246
|
/* @__PURE__ */ t(Vl, { parentCategory: e, subCategory: o }),
|
|
5239
|
-
/* @__PURE__ */ t(
|
|
5247
|
+
/* @__PURE__ */ t(q, { sx: { ml: 58 } })
|
|
5240
5248
|
] }, o.guid)),
|
|
5241
5249
|
!i && /* @__PURE__ */ t(Xl, { parentCategory: e })
|
|
5242
5250
|
]
|
|
@@ -5272,7 +5280,7 @@ const Gl = ({
|
|
|
5272
5280
|
},
|
|
5273
5281
|
A.guid
|
|
5274
5282
|
) }),
|
|
5275
|
-
/* @__PURE__ */ t(
|
|
5283
|
+
/* @__PURE__ */ t(q, { sx: { ml: 58 } }),
|
|
5276
5284
|
/* @__PURE__ */ t(Zl, { categories: e, parentCategory: A })
|
|
5277
5285
|
] });
|
|
5278
5286
|
}, Ei = T($l), Ad = () => {
|
|
@@ -5281,7 +5289,7 @@ const Gl = ({
|
|
|
5281
5289
|
const d = [
|
|
5282
5290
|
{
|
|
5283
5291
|
...c,
|
|
5284
|
-
name:
|
|
5292
|
+
name: _(n.all_parent_category, c.name),
|
|
5285
5293
|
parent_guid: c.guid
|
|
5286
5294
|
},
|
|
5287
5295
|
...i
|
|
@@ -5556,7 +5564,7 @@ class cd {
|
|
|
5556
5564
|
}
|
|
5557
5565
|
const bi = ({ transaction: A }) => {
|
|
5558
5566
|
const { addOrUpdateTransactionRule: e, updateTransaction: n } = uA(), { categories: r } = PA(), { onEvent: a } = V(), { setShouldDisableDrawerScroll: i, updateManualTransaction: o } = ZA(), { transactions: s } = I(), [c, h] = g.useState(!1), [d, u] = g.useState(""), C = async (E) => {
|
|
5559
|
-
await n({ ...A, category_guid: d }), E && await e(d, A), u(""), a(
|
|
5567
|
+
await n({ ...A, category_guid: d }), E && await e(d, A), u(""), a(k.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
5560
5568
|
transaction_guid: A.guid
|
|
5561
5569
|
});
|
|
5562
5570
|
}, f = (E) => {
|
|
@@ -5620,7 +5628,7 @@ const bi = ({ transaction: A }) => {
|
|
|
5620
5628
|
DA,
|
|
5621
5629
|
{
|
|
5622
5630
|
copy: {
|
|
5623
|
-
title:
|
|
5631
|
+
title: _(
|
|
5624
5632
|
s.actions_apply_to_all_transaction_types,
|
|
5625
5633
|
A.description
|
|
5626
5634
|
)
|
|
@@ -5631,7 +5639,7 @@ const bi = ({ transaction: A }) => {
|
|
|
5631
5639
|
onSecondaryAction: () => C(!1),
|
|
5632
5640
|
primaryText: s.actions_apply_to_all,
|
|
5633
5641
|
secondaryText: s.actions_this_time_only,
|
|
5634
|
-
children: /* @__PURE__ */ t(p, { children:
|
|
5642
|
+
children: /* @__PURE__ */ t(p, { children: _(
|
|
5635
5643
|
s.actions_all_past_and_future,
|
|
5636
5644
|
A.description,
|
|
5637
5645
|
v?.name
|
|
@@ -5647,7 +5655,7 @@ const bi = ({ transaction: A }) => {
|
|
|
5647
5655
|
a({ ...A, date: h }), c(!1);
|
|
5648
5656
|
return;
|
|
5649
5657
|
}
|
|
5650
|
-
await r({ ...A, date: h }), n(
|
|
5658
|
+
await r({ ...A, date: h }), n(k.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: A.guid }), c(!1);
|
|
5651
5659
|
};
|
|
5652
5660
|
return /* @__PURE__ */ l(O, { className: "mx-txn-date-action", children: [
|
|
5653
5661
|
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
@@ -5738,7 +5746,7 @@ const bi = ({ transaction: A }) => {
|
|
|
5738
5746
|
] });
|
|
5739
5747
|
}, dd = T(ld), ud = ({ transaction: A }) => {
|
|
5740
5748
|
const { onEvent: e } = V(), { updateTransaction: n } = uA(), { setShouldDisableDrawerScroll: r } = ZA(), { common: a, transactions: i } = I(), [o, s] = g.useState(!1), c = async () => {
|
|
5741
|
-
await n({ ...A, merchant_guid: "" }), e(
|
|
5749
|
+
await n({ ...A, merchant_guid: "" }), e(k.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
5742
5750
|
transaction_guid: A.guid
|
|
5743
5751
|
});
|
|
5744
5752
|
};
|
|
@@ -5875,7 +5883,7 @@ const bi = ({ transaction: A }) => {
|
|
|
5875
5883
|
r({ ...A, memo: c }), s(!1);
|
|
5876
5884
|
return;
|
|
5877
5885
|
}
|
|
5878
|
-
await n({ ...A, memo: c }), e(
|
|
5886
|
+
await n({ ...A, memo: c }), e(k.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: A.guid }), s(!1);
|
|
5879
5887
|
};
|
|
5880
5888
|
return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
|
|
5881
5889
|
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
@@ -6038,7 +6046,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6038
6046
|
const o = RA(), { transactions: s } = I(), { onEvent: c } = V(), [h, d] = g.useState("");
|
|
6039
6047
|
return g.useEffect(() => {
|
|
6040
6048
|
d(a.length <= 1 ? s.split_transaction_errors_min_splits : ""), d(
|
|
6041
|
-
a[0].amount < 0 ?
|
|
6049
|
+
a[0].amount < 0 ? _(
|
|
6042
6050
|
s.split_transaction_errors_totals_must_equal_amount,
|
|
6043
6051
|
z(i.amount, "0,0.00")
|
|
6044
6052
|
) : ""
|
|
@@ -6096,48 +6104,48 @@ const bi = ({ transaction: A }) => {
|
|
|
6096
6104
|
parent_guid: A.guid,
|
|
6097
6105
|
top_level_category_guid: void 0
|
|
6098
6106
|
}, [d, u] = g.useState(!1), [C, f] = g.useState(!1), [m, v] = g.useState([]), E = () => {
|
|
6099
|
-
const X = [...m];
|
|
6100
|
-
X.push({ ...h }), X[0].amount -= 1, v(X);
|
|
6101
|
-
}, S = (X) => {
|
|
6102
|
-
if (X > 0) {
|
|
6103
|
-
const q = m[X], j = [...m];
|
|
6104
|
-
j.splice(X, 1), j[0].amount += q.amount, v(j);
|
|
6105
|
-
}
|
|
6106
|
-
}, L = (X, q) => {
|
|
6107
6107
|
const j = [...m];
|
|
6108
|
-
j
|
|
6108
|
+
j.push({ ...h }), j[0].amount -= 1, v(j);
|
|
6109
|
+
}, S = (j) => {
|
|
6110
|
+
if (j > 0) {
|
|
6111
|
+
const F = m[j], X = [...m];
|
|
6112
|
+
X.splice(j, 1), X[0].amount += F.amount, v(X);
|
|
6113
|
+
}
|
|
6114
|
+
}, L = (j, F) => {
|
|
6115
|
+
const X = [...m];
|
|
6116
|
+
X[j].amount = F, X[0].amount = A.amount - X.reduce(
|
|
6109
6117
|
(Q, U, rA) => Q + (rA !== 0 ? U.amount : 0),
|
|
6110
6118
|
0
|
|
6111
|
-
), v(
|
|
6112
|
-
}, w = (
|
|
6113
|
-
const
|
|
6114
|
-
Q && (j
|
|
6115
|
-
...j
|
|
6116
|
-
category_guid:
|
|
6119
|
+
), v(X);
|
|
6120
|
+
}, w = (j, F) => {
|
|
6121
|
+
const X = [...m], Q = s.find((U) => U.guid === F);
|
|
6122
|
+
Q && (X[j] = {
|
|
6123
|
+
...X[j],
|
|
6124
|
+
category_guid: F,
|
|
6117
6125
|
category: Q.name,
|
|
6118
|
-
top_level_category_guid: Q.parent_guid ||
|
|
6119
|
-
}, v(
|
|
6126
|
+
top_level_category_guid: Q.parent_guid || F
|
|
6127
|
+
}, v(X));
|
|
6120
6128
|
}, D = () => {
|
|
6121
6129
|
if (A.parent_guid || A.has_been_split) {
|
|
6122
6130
|
f(!0);
|
|
6123
6131
|
return;
|
|
6124
6132
|
}
|
|
6125
|
-
v([{ ...c }, { ...h }]), e(
|
|
6133
|
+
v([{ ...c }, { ...h }]), e(k.TRANSACTION_DETAILS_CLICK_SPLIT, {
|
|
6126
6134
|
transaction_guid: A.guid
|
|
6127
6135
|
}), u(!0);
|
|
6128
6136
|
}, P = async () => {
|
|
6129
6137
|
e(B.ON_TRANSACTION_SPLIT_SAVE_CLICK), await n({ ...A, has_been_split: !0 }, m), u(!1);
|
|
6130
|
-
},
|
|
6138
|
+
}, N = async () => {
|
|
6131
6139
|
e(B.ON_TRANSACTION_SPLIT_CANCEL_CLICK), v([{ ...c }, { ...h }]), u(!1);
|
|
6132
6140
|
}, x = async () => {
|
|
6133
|
-
e(
|
|
6141
|
+
e(k.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
6134
6142
|
transaction_guid: A.guid
|
|
6135
6143
|
});
|
|
6136
|
-
const
|
|
6137
|
-
await r(
|
|
6138
|
-
},
|
|
6139
|
-
const
|
|
6140
|
-
return
|
|
6144
|
+
const j = A.parent_guid ?? A.guid;
|
|
6145
|
+
await r(j);
|
|
6146
|
+
}, R = g.useMemo(() => {
|
|
6147
|
+
const j = m.some((X) => !X.category_guid), F = m.some((X) => X.amount <= 0);
|
|
6148
|
+
return j || F;
|
|
6141
6149
|
}, [m]);
|
|
6142
6150
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6143
6151
|
A && /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(dA, { onClick: D, children: [
|
|
@@ -6156,8 +6164,8 @@ const bi = ({ transaction: A }) => {
|
|
|
6156
6164
|
{
|
|
6157
6165
|
ariaLabelClose: a.close_aria,
|
|
6158
6166
|
isOpen: d,
|
|
6159
|
-
isPrimaryDisabled:
|
|
6160
|
-
onClose:
|
|
6167
|
+
isPrimaryDisabled: R,
|
|
6168
|
+
onClose: N,
|
|
6161
6169
|
onPrimaryAction: P,
|
|
6162
6170
|
primaryText: a.save_button,
|
|
6163
6171
|
secondaryText: a.cancel_button,
|
|
@@ -6192,7 +6200,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6192
6200
|
},
|
|
6193
6201
|
primaryText: a.delete_button,
|
|
6194
6202
|
secondaryText: a.cancel_button,
|
|
6195
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
6203
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: _(
|
|
6196
6204
|
i.split_transaction_unsplit_description,
|
|
6197
6205
|
A.description
|
|
6198
6206
|
) })
|
|
@@ -6395,7 +6403,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6395
6403
|
/* @__PURE__ */ t(Sd, {}),
|
|
6396
6404
|
/* @__PURE__ */ t(fe, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(nA, { children: i.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6397
6405
|
/* @__PURE__ */ t(Dd, { onTagChecked: e, selectedTags: A, tag: o }),
|
|
6398
|
-
/* @__PURE__ */ t(
|
|
6406
|
+
/* @__PURE__ */ t(q, { sx: { ml: 24 } })
|
|
6399
6407
|
] }, o.guid)) }) })
|
|
6400
6408
|
] });
|
|
6401
6409
|
}, xd = T(Od), Pd = ({ transaction: A }) => {
|
|
@@ -6411,7 +6419,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6411
6419
|
s({ ...A, tags: d }), h(!1);
|
|
6412
6420
|
return;
|
|
6413
6421
|
}
|
|
6414
|
-
await r(d, A.guid), await a({ ...A }), e(
|
|
6422
|
+
await r(d, A.guid), await a({ ...A }), e(k.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), h(!1);
|
|
6415
6423
|
}, m = g.useMemo(
|
|
6416
6424
|
() => A.tags.map(
|
|
6417
6425
|
(v, E, S) => `${n.find((L) => L.guid === v)?.name}${E < S.length - 1 ? " / " : ""}`
|
|
@@ -6459,7 +6467,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6459
6467
|
i && (c(A.description), h?.current?.focus());
|
|
6460
6468
|
}, [i]);
|
|
6461
6469
|
const d = async () => {
|
|
6462
|
-
a(
|
|
6470
|
+
a(k.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
|
|
6463
6471
|
transaction_guid: A.guid
|
|
6464
6472
|
}), await e({ ...A, description: s }), o(!1);
|
|
6465
6473
|
};
|
|
@@ -6506,7 +6514,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6506
6514
|
] }) });
|
|
6507
6515
|
}, Md = T(Nd), _d = ({ transaction: A }) => {
|
|
6508
6516
|
const { updateTransaction: e } = uA(), { transactions: n } = I(), { onEvent: r } = V(), a = CA(), i = async () => {
|
|
6509
|
-
r(
|
|
6517
|
+
r(k.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: A.guid }), await e({ ...A, is_flagged: !A.is_flagged });
|
|
6510
6518
|
};
|
|
6511
6519
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
|
6512
6520
|
Kn,
|
|
@@ -6543,7 +6551,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6543
6551
|
}) => {
|
|
6544
6552
|
const r = RA(), a = n?.number && n.number.length > 4, { onEvent: i } = V();
|
|
6545
6553
|
return g.useEffect(
|
|
6546
|
-
() => i(
|
|
6554
|
+
() => i(k.TRANSACTION_DETAILS_VIEW, { transaction_guid: n.guid }),
|
|
6547
6555
|
[]
|
|
6548
6556
|
), /* @__PURE__ */ t(O, { className: "mx-txn-transaction-details", width: "100%", children: n && /* @__PURE__ */ l(y, { children: [
|
|
6549
6557
|
/* @__PURE__ */ l(y, { gap: r.Spacing.Small, p: r.Spacing.Large, children: [
|
|
@@ -6583,7 +6591,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6583
6591
|
o === ft.Date && /* @__PURE__ */ t(wi, { transaction: n }),
|
|
6584
6592
|
o === ft.Memo && /* @__PURE__ */ t(Ti, { transaction: n }),
|
|
6585
6593
|
o === ft.Tags && /* @__PURE__ */ t(Li, { transaction: n }),
|
|
6586
|
-
/* @__PURE__ */ t(
|
|
6594
|
+
/* @__PURE__ */ t(q, { variant: s < e.length - 1 ? "inset" : "fullWidth" })
|
|
6587
6595
|
] }, o)) }) }),
|
|
6588
6596
|
/* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
6589
6597
|
/* @__PURE__ */ t(fe, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(nA, { children: [
|
|
@@ -6591,7 +6599,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6591
6599
|
o === Bt.SplitTransaction && /* @__PURE__ */ t(bd, { transaction: n }),
|
|
6592
6600
|
o === Bt.HideTransaction && /* @__PURE__ */ t(Cd, { transaction: n }),
|
|
6593
6601
|
o === Bt.MerchantLogo && /* @__PURE__ */ t(hd, { transaction: n }),
|
|
6594
|
-
/* @__PURE__ */ t(
|
|
6602
|
+
/* @__PURE__ */ t(q, { variant: s < A.length - 1 ? "inset" : "fullWidth" })
|
|
6595
6603
|
] }, o)),
|
|
6596
6604
|
n.is_manual && /* @__PURE__ */ t(dd, { transaction: n })
|
|
6597
6605
|
] }) })
|
|
@@ -6705,7 +6713,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6705
6713
|
}
|
|
6706
6714
|
)
|
|
6707
6715
|
] }),
|
|
6708
|
-
/* @__PURE__ */ t(
|
|
6716
|
+
/* @__PURE__ */ t(q, { light: !0 }),
|
|
6709
6717
|
/* @__PURE__ */ l(O, { bgcolor: "background.paper", children: [
|
|
6710
6718
|
/* @__PURE__ */ t(bi, { transaction: r }),
|
|
6711
6719
|
/* @__PURE__ */ t(wi, { transaction: r }),
|
|
@@ -6735,7 +6743,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6735
6743
|
DA,
|
|
6736
6744
|
{
|
|
6737
6745
|
copy: {
|
|
6738
|
-
title:
|
|
6746
|
+
title: _(
|
|
6739
6747
|
a.actions_apply_to_all_transaction_types,
|
|
6740
6748
|
e.description
|
|
6741
6749
|
)
|
|
@@ -6746,7 +6754,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6746
6754
|
onSecondaryAction: () => h(!1),
|
|
6747
6755
|
primaryText: a.actions_apply_to_all,
|
|
6748
6756
|
secondaryText: a.actions_this_time_only,
|
|
6749
|
-
children: /* @__PURE__ */ t(p, { children:
|
|
6757
|
+
children: /* @__PURE__ */ t(p, { children: _(
|
|
6750
6758
|
a.actions_all_past_and_future,
|
|
6751
6759
|
e.description,
|
|
6752
6760
|
c?.name
|
|
@@ -6775,11 +6783,11 @@ const bi = ({ transaction: A }) => {
|
|
|
6775
6783
|
tags: S,
|
|
6776
6784
|
transactions: L,
|
|
6777
6785
|
updateTransaction: w
|
|
6778
|
-
} = uA(), { common: D, transactions: P } = I(), { userProfile:
|
|
6779
|
-
displayedDateRange:
|
|
6780
|
-
isInitialized:
|
|
6781
|
-
selectedAccountGuids:
|
|
6782
|
-
selectedAccounts:
|
|
6786
|
+
} = uA(), { common: D, transactions: P } = I(), { userProfile: N } = an(), { onEvent: x } = V(), {
|
|
6787
|
+
displayedDateRange: R,
|
|
6788
|
+
isInitialized: j,
|
|
6789
|
+
selectedAccountGuids: F,
|
|
6790
|
+
selectedAccounts: X,
|
|
6783
6791
|
setDisplayedDate: Q,
|
|
6784
6792
|
setSelectedAccounts: U
|
|
6785
6793
|
} = fA(), [rA, gA] = g.useState(""), [cA, vA] = g.useState(""), [$A, ge] = g.useState(!1), [Xe, Je] = g.useState(!1), [Ze, lt] = g.useState(!1);
|
|
@@ -6789,15 +6797,15 @@ const bi = ({ transaction: A }) => {
|
|
|
6789
6797
|
const _A = yA(AA()), br = NA(AA());
|
|
6790
6798
|
Q(_A, br), E({
|
|
6791
6799
|
dateRange: { start: _A, end: br },
|
|
6792
|
-
accounts:
|
|
6793
|
-
}), lt(!0), x(
|
|
6800
|
+
accounts: X.map((ro) => ro.guid)
|
|
6801
|
+
}), lt(!0), x(k.TRANSACTIONS_VIEW);
|
|
6794
6802
|
}, []), g.useEffect(() => {
|
|
6795
6803
|
Ze && (E({
|
|
6796
6804
|
...m,
|
|
6797
|
-
dateRange: { start:
|
|
6798
|
-
accounts:
|
|
6799
|
-
}), v(
|
|
6800
|
-
}, [
|
|
6805
|
+
dateRange: { start: R.start, end: R.end },
|
|
6806
|
+
accounts: F
|
|
6807
|
+
}), v(R.start));
|
|
6808
|
+
}, [R, F]), g.useEffect(() => {
|
|
6801
6809
|
u(n);
|
|
6802
6810
|
}, [n]);
|
|
6803
6811
|
const pA = g.useMemo(
|
|
@@ -6809,18 +6817,18 @@ const bi = ({ transaction: A }) => {
|
|
|
6809
6817
|
d(_A), E({
|
|
6810
6818
|
...m,
|
|
6811
6819
|
searchTerm: _A
|
|
6812
|
-
}), x(
|
|
6820
|
+
}), x(k.TRANSACTIONS_CLICK_SEARCH, { search_term: _A });
|
|
6813
6821
|
}, mn = () => {
|
|
6814
|
-
vi(L, S), x(
|
|
6822
|
+
vi(L, S), x(k.TRANSACTIONS_CLICK_EXPORT);
|
|
6815
6823
|
}, pn = () => {
|
|
6816
6824
|
pA.length > 0 ? (C({
|
|
6817
6825
|
...pi,
|
|
6818
6826
|
date: mA(AA()),
|
|
6819
|
-
user_guid:
|
|
6827
|
+
user_guid: N?.user_guid || ""
|
|
6820
6828
|
}), gA(
|
|
6821
6829
|
"addTransaction"
|
|
6822
6830
|
/* AddTransaction */
|
|
6823
|
-
), x(
|
|
6831
|
+
), x(k.TRANSACTIONS_CLICK_ADD)) : (ge(!0), x(k.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
6824
6832
|
}, dt = async () => {
|
|
6825
6833
|
hA && await f(s), gA("");
|
|
6826
6834
|
}, vn = () => {
|
|
@@ -6828,7 +6836,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6828
6836
|
}, En = () => {
|
|
6829
6837
|
Je(!1), i();
|
|
6830
6838
|
};
|
|
6831
|
-
return !
|
|
6839
|
+
return !j || !Ze ? /* @__PURE__ */ t(QA, {}) : /* @__PURE__ */ l(
|
|
6832
6840
|
ue,
|
|
6833
6841
|
{
|
|
6834
6842
|
accountOptions: a,
|
|
@@ -6847,7 +6855,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6847
6855
|
calendarActions: {
|
|
6848
6856
|
onRangeChanged: EA
|
|
6849
6857
|
},
|
|
6850
|
-
onAccountsFilterClick: () => x(
|
|
6858
|
+
onAccountsFilterClick: () => x(k.ACCOUNTS_CLICK_FILTER),
|
|
6851
6859
|
onBackClick: A,
|
|
6852
6860
|
sx: r,
|
|
6853
6861
|
title: P.transactions_title,
|
|
@@ -6881,7 +6889,7 @@ const bi = ({ transaction: A }) => {
|
|
|
6881
6889
|
vA(_A), gA(
|
|
6882
6890
|
"transaction"
|
|
6883
6891
|
/* Transaction */
|
|
6884
|
-
), x(
|
|
6892
|
+
), x(k.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: _A });
|
|
6885
6893
|
}
|
|
6886
6894
|
}
|
|
6887
6895
|
)
|
|
@@ -6974,19 +6982,19 @@ const bi = ({ transaction: A }) => {
|
|
|
6974
6982
|
start_date: mA(A.expectedDate)
|
|
6975
6983
|
}, r = `${Et(A.expectedDate)}`, a = `${et(A.expectedDate)}`, i = `${St(A.expectedDate)}`;
|
|
6976
6984
|
switch (A.recurrenceType) {
|
|
6977
|
-
case
|
|
6985
|
+
case G.EveryWeek:
|
|
6978
6986
|
n.repeat_interval = "1", n.repeat_weekday = i;
|
|
6979
6987
|
break;
|
|
6980
|
-
case
|
|
6988
|
+
case G.EveryOtherWeek:
|
|
6981
6989
|
n.repeat_interval = "2", n.repeat_weekday = i;
|
|
6982
6990
|
break;
|
|
6983
|
-
case
|
|
6991
|
+
case G.EveryMonth:
|
|
6984
6992
|
n.repeat_day = r;
|
|
6985
6993
|
break;
|
|
6986
|
-
case
|
|
6994
|
+
case G.EveryQuarter:
|
|
6987
6995
|
n.repeat_day = r, n.repeat_interval = "3";
|
|
6988
6996
|
break;
|
|
6989
|
-
case
|
|
6997
|
+
case G.EveryYear:
|
|
6990
6998
|
n.repeat_day = r, n.repeat_month = a;
|
|
6991
6999
|
break;
|
|
6992
7000
|
}
|
|
@@ -6997,13 +7005,13 @@ const bi = ({ transaction: A }) => {
|
|
|
6997
7005
|
recurrence_type: A.recurrenceType
|
|
6998
7006
|
}), Xd = ({ activity: A }) => {
|
|
6999
7007
|
const { recurring: e } = I(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = HA(), { onEvent: o } = V(), [s, c] = g.useState(!1), h = A.activityType === LA.Income, d = [
|
|
7000
|
-
{ id:
|
|
7001
|
-
{ id:
|
|
7002
|
-
{ id:
|
|
7003
|
-
{ id:
|
|
7004
|
-
{ id:
|
|
7005
|
-
{ id:
|
|
7006
|
-
{ id:
|
|
7008
|
+
{ id: G.EveryWeek, label: e.frequency_every_week },
|
|
7009
|
+
{ id: G.EveryOtherWeek, label: e.frequency_every_other_week },
|
|
7010
|
+
{ id: G.EveryMonth, label: e.frequency_every_month },
|
|
7011
|
+
{ id: G.EveryOtherMonth, label: e.frequency_every_other_month },
|
|
7012
|
+
{ id: G.EveryQuarter, label: e.frequency_every_quarter },
|
|
7013
|
+
{ id: G.EveryOtherQuarter, label: e.frequency_every_other_quarter },
|
|
7014
|
+
{ id: G.EveryYear, label: e.frequency_every_year }
|
|
7007
7015
|
], u = async (m) => {
|
|
7008
7016
|
const v = { ...A, recurrenceType: m };
|
|
7009
7017
|
if (A.activityType === LA.Expense) {
|
|
@@ -7043,7 +7051,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7043
7051
|
(m) => (
|
|
7044
7052
|
// Filter out every other month and every other quarter when income since cashflow
|
|
7045
7053
|
// sequence doesn't support them
|
|
7046
|
-
A.activityType === LA.Expense || m.id !==
|
|
7054
|
+
A.activityType === LA.Expense || m.id !== G.EveryOtherMonth && m.id !== G.EveryOtherQuarter
|
|
7047
7055
|
)
|
|
7048
7056
|
).map((m) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7049
7057
|
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(dA, { onClick: () => u(m.id), children: [
|
|
@@ -7056,7 +7064,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7056
7064
|
),
|
|
7057
7065
|
A.recurrenceType === m.id && /* @__PURE__ */ t(M, { color: "primary", fill: !0, name: "check_circle", size: 24 })
|
|
7058
7066
|
] }) }, m.id),
|
|
7059
|
-
/* @__PURE__ */ t(
|
|
7067
|
+
/* @__PURE__ */ t(q, {})
|
|
7060
7068
|
] }, m.id)) })
|
|
7061
7069
|
}
|
|
7062
7070
|
)
|
|
@@ -7121,10 +7129,10 @@ const bi = ({ transaction: A }) => {
|
|
|
7121
7129
|
});
|
|
7122
7130
|
}, []), g.useEffect(() => {
|
|
7123
7131
|
if (S && A.sequenceGuid) {
|
|
7124
|
-
const P = o.filter((
|
|
7132
|
+
const P = o.filter((N) => N.sequenceGuid === A.sequenceGuid).map((N) => N.transactionGuid);
|
|
7125
7133
|
c({
|
|
7126
7134
|
...s,
|
|
7127
|
-
custom: (
|
|
7135
|
+
custom: (N) => !!P.find((x) => N.guid === x)
|
|
7128
7136
|
});
|
|
7129
7137
|
} else !S && A.scheduledPaymentGuid && c({
|
|
7130
7138
|
...s,
|
|
@@ -7167,7 +7175,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7167
7175
|
value: A.institution
|
|
7168
7176
|
}
|
|
7169
7177
|
),
|
|
7170
|
-
/* @__PURE__ */ t(
|
|
7178
|
+
/* @__PURE__ */ t(q, { color: "secondary", variant: "inset" })
|
|
7171
7179
|
] }),
|
|
7172
7180
|
E && /* @__PURE__ */ l(eA, { children: [
|
|
7173
7181
|
/* @__PURE__ */ t(
|
|
@@ -7178,12 +7186,12 @@ const bi = ({ transaction: A }) => {
|
|
|
7178
7186
|
value: E.name
|
|
7179
7187
|
}
|
|
7180
7188
|
),
|
|
7181
|
-
/* @__PURE__ */ t(
|
|
7189
|
+
/* @__PURE__ */ t(q, { color: "secondary", variant: "inset" })
|
|
7182
7190
|
] }),
|
|
7183
7191
|
/* @__PURE__ */ t(jd, { activity: A }),
|
|
7184
|
-
/* @__PURE__ */ t(
|
|
7192
|
+
/* @__PURE__ */ t(q, { color: "secondary", variant: "inset" }),
|
|
7185
7193
|
/* @__PURE__ */ t(Ud, { activity: A }),
|
|
7186
|
-
/* @__PURE__ */ t(
|
|
7194
|
+
/* @__PURE__ */ t(q, { color: "secondary" })
|
|
7187
7195
|
] }),
|
|
7188
7196
|
/* @__PURE__ */ t(
|
|
7189
7197
|
sA,
|
|
@@ -7227,42 +7235,42 @@ const bi = ({ transaction: A }) => {
|
|
|
7227
7235
|
gridColumn: 1,
|
|
7228
7236
|
zIndex: 2
|
|
7229
7237
|
}, un = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, dr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(Cs, { color: "primary", sx: { fontSize: e, ...dn } }) }), ur = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(fs, { sx: { color: "categories.income", fontSize: e, ...dn } }) }), hr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(Gt, { color: "error", sx: { fontSize: e, ...dn } }) }), gr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(ja, { color: "success", sx: { fontSize: e, ...dn } }) }), ia = ({ copy: A, date: e, type: n }) => {
|
|
7230
|
-
let r = e && ms(e) ?
|
|
7238
|
+
let r = e && ms(e) ? _(A.monthly_ordinal, XA(e, "do")) : A.monthly;
|
|
7231
7239
|
switch (n) {
|
|
7232
|
-
case
|
|
7233
|
-
r = e ?
|
|
7240
|
+
case G.EveryQuarter:
|
|
7241
|
+
r = e ? _(A.quarterly_ordinal, XA(e, "do")) : A.quarterly;
|
|
7234
7242
|
break;
|
|
7235
|
-
case
|
|
7236
|
-
r = e ?
|
|
7243
|
+
case G.EveryWeek:
|
|
7244
|
+
r = e ? _(A.weekly_ordinal, XA(e, "do")) : A.weekly;
|
|
7237
7245
|
break;
|
|
7238
|
-
case
|
|
7239
|
-
r = e ?
|
|
7246
|
+
case G.EveryYear:
|
|
7247
|
+
r = e ? _(A.anually_ordinal, XA(e, "do")) : A.anually;
|
|
7240
7248
|
break;
|
|
7241
|
-
case
|
|
7242
|
-
r = e ?
|
|
7249
|
+
case G.EveryOtherWeek:
|
|
7250
|
+
r = e ? _(A.every_other_week_ordinal, XA(e, "do")) : A.every_other_week;
|
|
7243
7251
|
break;
|
|
7244
|
-
case
|
|
7245
|
-
r = e ?
|
|
7252
|
+
case G.EveryOtherMonth:
|
|
7253
|
+
r = e ? _(A.every_other_month_ordinal, XA(e, "do")) : A.every_other_month;
|
|
7246
7254
|
break;
|
|
7247
|
-
case
|
|
7248
|
-
r = e ?
|
|
7255
|
+
case G.EveryOtherQuarter:
|
|
7256
|
+
r = e ? _(A.every_other_quarter_ordinal, XA(e, "do")) : A.every_other_quarter;
|
|
7249
7257
|
break;
|
|
7250
7258
|
}
|
|
7251
7259
|
return r;
|
|
7252
7260
|
}, Vd = (A, e) => {
|
|
7253
7261
|
switch (A.activityStatus) {
|
|
7254
7262
|
case xA.Paid:
|
|
7255
|
-
return A.occurredOnDate ?
|
|
7263
|
+
return A.occurredOnDate ? _(
|
|
7256
7264
|
e.paid_on,
|
|
7257
7265
|
$(A.occurredOnDate, Z.MONTH_DAY)
|
|
7258
7266
|
) : e.paid;
|
|
7259
7267
|
case xA.Missed:
|
|
7260
|
-
return
|
|
7268
|
+
return _(
|
|
7261
7269
|
e.missed_on,
|
|
7262
7270
|
$(A.expectedDate, Z.MONTH_DAY)
|
|
7263
7271
|
);
|
|
7264
7272
|
case xA.Upcoming:
|
|
7265
|
-
return
|
|
7273
|
+
return _(
|
|
7266
7274
|
e.upcoming_on,
|
|
7267
7275
|
$(A.expectedDate, Z.MONTH_DAY)
|
|
7268
7276
|
);
|
|
@@ -7373,19 +7381,19 @@ const bi = ({ transaction: A }) => {
|
|
|
7373
7381
|
transaction_type: A.transaction_type
|
|
7374
7382
|
};
|
|
7375
7383
|
switch (e) {
|
|
7376
|
-
case
|
|
7384
|
+
case G.EveryWeek:
|
|
7377
7385
|
r.repeat_interval = "1", r.repeat_weekday = `${St(n)}`;
|
|
7378
7386
|
break;
|
|
7379
|
-
case
|
|
7387
|
+
case G.EveryOtherWeek:
|
|
7380
7388
|
r.repeat_interval = "2", r.repeat_weekday = `${St(n)}`;
|
|
7381
7389
|
break;
|
|
7382
|
-
case
|
|
7390
|
+
case G.EveryMonth:
|
|
7383
7391
|
r.repeat_day = `${Et(n)}`;
|
|
7384
7392
|
break;
|
|
7385
|
-
case
|
|
7393
|
+
case G.EveryQuarter:
|
|
7386
7394
|
r.repeat_interval = "3", r.repeat_day = `${Et(n)}`;
|
|
7387
7395
|
break;
|
|
7388
|
-
case
|
|
7396
|
+
case G.EveryYear:
|
|
7389
7397
|
r.repeat_day = `${Et(n)}`, r.repeat_month = `${et(n)}`;
|
|
7390
7398
|
break;
|
|
7391
7399
|
}
|
|
@@ -7408,18 +7416,18 @@ const bi = ({ transaction: A }) => {
|
|
|
7408
7416
|
merchant_guid: A.merchant_guid,
|
|
7409
7417
|
occurs_on: kn(n, { representation: "date" }),
|
|
7410
7418
|
recurrence_day: 0,
|
|
7411
|
-
recurrence_type:
|
|
7419
|
+
recurrence_type: G.EveryMonth
|
|
7412
7420
|
};
|
|
7413
7421
|
switch (e) {
|
|
7414
|
-
case
|
|
7415
|
-
case
|
|
7422
|
+
case G.EveryWeek:
|
|
7423
|
+
case G.EveryOtherWeek:
|
|
7416
7424
|
r.recurrence_day = St(n);
|
|
7417
7425
|
break;
|
|
7418
|
-
case
|
|
7419
|
-
case
|
|
7420
|
-
case
|
|
7421
|
-
case
|
|
7422
|
-
case
|
|
7426
|
+
case G.EveryMonth:
|
|
7427
|
+
case G.EveryOtherMonth:
|
|
7428
|
+
case G.EveryQuarter:
|
|
7429
|
+
case G.EveryOtherQuarter:
|
|
7430
|
+
case G.EveryYear:
|
|
7423
7431
|
r.recurrence_day = Et(n);
|
|
7424
7432
|
break;
|
|
7425
7433
|
}
|
|
@@ -7457,40 +7465,40 @@ const bi = ({ transaction: A }) => {
|
|
|
7457
7465
|
transaction: o
|
|
7458
7466
|
}) => {
|
|
7459
7467
|
const { recurring: s } = I(), c = [
|
|
7460
|
-
{ id:
|
|
7461
|
-
{ id:
|
|
7462
|
-
{ id:
|
|
7463
|
-
{ id:
|
|
7464
|
-
{ id:
|
|
7465
|
-
{ id:
|
|
7466
|
-
{ id:
|
|
7468
|
+
{ id: G.EveryWeek, label: s.frequency_every_week },
|
|
7469
|
+
{ id: G.EveryOtherWeek, label: s.frequency_every_other_week },
|
|
7470
|
+
{ id: G.EveryMonth, label: s.frequency_every_month },
|
|
7471
|
+
{ id: G.EveryOtherMonth, label: s.frequency_every_other_month },
|
|
7472
|
+
{ id: G.EveryQuarter, label: s.frequency_every_quarter },
|
|
7473
|
+
{ id: G.EveryOtherQuarter, label: s.frequency_every_other_quarter },
|
|
7474
|
+
{ id: G.EveryYear, label: s.frequency_every_year }
|
|
7467
7475
|
];
|
|
7468
7476
|
g.useEffect(() => {
|
|
7469
7477
|
const d = IA(o.date);
|
|
7470
|
-
i(Hr(d)), a(
|
|
7478
|
+
i(Hr(d)), a(G.EveryMonth);
|
|
7471
7479
|
}, [o]);
|
|
7472
7480
|
const h = (d) => {
|
|
7473
7481
|
const u = IA(o.date);
|
|
7474
7482
|
switch (Number(d.target.value)) {
|
|
7475
|
-
case
|
|
7483
|
+
case G.EveryWeek:
|
|
7476
7484
|
i(Ar(u));
|
|
7477
7485
|
break;
|
|
7478
|
-
case
|
|
7486
|
+
case G.EveryOtherWeek:
|
|
7479
7487
|
i(nc(u));
|
|
7480
7488
|
break;
|
|
7481
|
-
case
|
|
7489
|
+
case G.EveryMonth:
|
|
7482
7490
|
i(Hr(u));
|
|
7483
7491
|
break;
|
|
7484
|
-
case
|
|
7492
|
+
case G.EveryOtherMonth:
|
|
7485
7493
|
i(rc(u));
|
|
7486
7494
|
break;
|
|
7487
|
-
case
|
|
7495
|
+
case G.EveryQuarter:
|
|
7488
7496
|
i(ri(u));
|
|
7489
7497
|
break;
|
|
7490
|
-
case
|
|
7498
|
+
case G.EveryOtherQuarter:
|
|
7491
7499
|
i(ac(u));
|
|
7492
7500
|
break;
|
|
7493
|
-
case
|
|
7501
|
+
case G.EveryYear:
|
|
7494
7502
|
i(ic(u));
|
|
7495
7503
|
break;
|
|
7496
7504
|
}
|
|
@@ -7535,8 +7543,8 @@ const bi = ({ transaction: A }) => {
|
|
|
7535
7543
|
label: e,
|
|
7536
7544
|
onAddActivity: n = () => null
|
|
7537
7545
|
}) => {
|
|
7538
|
-
const { recurring: r } = I(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = HA(), { filter: s, setFilter: c, transactions: h } = uA(), [d, u] = g.useState(!1), [C, f] = g.useState(""), [m, v] = g.useState(
|
|
7539
|
-
() => h.find((
|
|
7546
|
+
const { recurring: r } = I(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = HA(), { filter: s, setFilter: c, transactions: h } = uA(), [d, u] = g.useState(!1), [C, f] = g.useState(""), [m, v] = g.useState(G.EveryMonth), [E, S] = g.useState(null), L = g.useMemo(
|
|
7547
|
+
() => h.find((N) => N.guid === C),
|
|
7540
7548
|
[C]
|
|
7541
7549
|
), w = () => {
|
|
7542
7550
|
u(!0), c(A ? { ...s, custom: It } : { ...s, custom: Rn });
|
|
@@ -7546,14 +7554,14 @@ const bi = ({ transaction: A }) => {
|
|
|
7546
7554
|
return;
|
|
7547
7555
|
}
|
|
7548
7556
|
if (A) {
|
|
7549
|
-
const
|
|
7557
|
+
const N = Oi(L, m, E), x = await i(N);
|
|
7550
7558
|
if (x) {
|
|
7551
|
-
const
|
|
7552
|
-
await a(
|
|
7559
|
+
const R = xi(x, L);
|
|
7560
|
+
await a(R);
|
|
7553
7561
|
}
|
|
7554
7562
|
} else {
|
|
7555
|
-
const
|
|
7556
|
-
await o(
|
|
7563
|
+
const N = $d(L, m, E);
|
|
7564
|
+
await o(N, L);
|
|
7557
7565
|
}
|
|
7558
7566
|
P();
|
|
7559
7567
|
}, P = () => {
|
|
@@ -7567,7 +7575,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7567
7575
|
] }),
|
|
7568
7576
|
/* @__PURE__ */ t(M, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
|
7569
7577
|
] }) }) }) }),
|
|
7570
|
-
/* @__PURE__ */ t(
|
|
7578
|
+
/* @__PURE__ */ t(q, {}),
|
|
7571
7579
|
/* @__PURE__ */ t(
|
|
7572
7580
|
lA,
|
|
7573
7581
|
{
|
|
@@ -7579,13 +7587,13 @@ const bi = ({ transaction: A }) => {
|
|
|
7579
7587
|
Pi,
|
|
7580
7588
|
{
|
|
7581
7589
|
description: A ? r.add_income_description : r.add_expense_description,
|
|
7582
|
-
onSearch: (
|
|
7590
|
+
onSearch: (N) => {
|
|
7583
7591
|
c({
|
|
7584
7592
|
...s,
|
|
7585
|
-
custom: (x) => A ?
|
|
7593
|
+
custom: (x) => A ? N ? Mi(x, N) : It(x) : N ? tu(x, N) : Rn(x)
|
|
7586
7594
|
});
|
|
7587
7595
|
},
|
|
7588
|
-
onSelected: (
|
|
7596
|
+
onSelected: (N) => f(N)
|
|
7589
7597
|
}
|
|
7590
7598
|
)
|
|
7591
7599
|
}
|
|
@@ -7630,23 +7638,23 @@ const bi = ({ transaction: A }) => {
|
|
|
7630
7638
|
};
|
|
7631
7639
|
}), au = () => {
|
|
7632
7640
|
const { recurring: A } = I(), { scheduledPayments: e } = HA(), { transactions: n } = uA(), { selectedAccounts: r } = fA(), { onEvent: a } = V(), i = ru(r, e, n), o = (c) => {
|
|
7633
|
-
a(
|
|
7641
|
+
a(k.RECURRING_ACTIVITY_CLICK_EXPENSE, {
|
|
7634
7642
|
transaction_guid: c.transactionGuid
|
|
7635
7643
|
});
|
|
7636
7644
|
}, s = () => {
|
|
7637
|
-
a(
|
|
7645
|
+
a(k.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE);
|
|
7638
7646
|
};
|
|
7639
7647
|
return /* @__PURE__ */ l(nA, { sx: { bgcolor: "background.paper" }, children: [
|
|
7640
7648
|
i.map((c, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7641
7649
|
/* @__PURE__ */ t(Vt, { activity: c, onActivityClick: o, showOrdinal: !0 }),
|
|
7642
|
-
/* @__PURE__ */ t(
|
|
7650
|
+
/* @__PURE__ */ t(q, { variant: h < i.length - 1 ? "inset" : "fullWidth" })
|
|
7643
7651
|
] }, c.scheduledPaymentGuid)),
|
|
7644
7652
|
/* @__PURE__ */ t(_i, { label: A.add_expense, onAddActivity: s })
|
|
7645
7653
|
] });
|
|
7646
7654
|
}, iu = T(au), Hn = (A) => {
|
|
7647
7655
|
let e = A.user_name || A.feed_name || "";
|
|
7648
7656
|
return A.account_number && (e = `${e} *${A.account_number}`), e;
|
|
7649
|
-
}, zn = (A) => A ? A.repeat_interval === "1" ?
|
|
7657
|
+
}, zn = (A) => A ? A.repeat_interval === "1" ? G.EveryWeek : A.repeat_interval === "2" ? G.EveryOtherWeek : A.repeat_day && !A.repeat_month && !A.repeat_interval ? G.EveryMonth : A.repeat_day && A.repeat_interval === "3" ? G.EveryQuarter : A.repeat_day && A.repeat_month ? G.EveryYear : G.Unknown : G.Unknown, ou = (A, e, n, r, a, i) => {
|
|
7650
7658
|
const o = e.filter((d) => {
|
|
7651
7659
|
const u = a.find((f) => f.guid === d.cashflow_sequence_guid), C = i.find((f) => f.guid === d.transaction_guid);
|
|
7652
7660
|
return u?.end_date === null && C;
|
|
@@ -7724,14 +7732,14 @@ const bi = ({ transaction: A }) => {
|
|
|
7724
7732
|
}, c = e.recurrence_day, h = AA(), d = yA(AA()), u = pe(AA(), 30);
|
|
7725
7733
|
let C = d;
|
|
7726
7734
|
switch (e.recurrence_type) {
|
|
7727
|
-
case
|
|
7735
|
+
case G.EveryWeek:
|
|
7728
7736
|
for (C = xn(C, c); bA(C, u); )
|
|
7729
7737
|
r.push({
|
|
7730
7738
|
...s,
|
|
7731
7739
|
expectedDate: C
|
|
7732
7740
|
}), C = xn(C, c);
|
|
7733
7741
|
break;
|
|
7734
|
-
case
|
|
7742
|
+
case G.EveryOtherWeek:
|
|
7735
7743
|
if (bA(o, d))
|
|
7736
7744
|
for (C = At(o, 2); bA(C, u); )
|
|
7737
7745
|
nt(C, d) && r.push({
|
|
@@ -7754,7 +7762,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7754
7762
|
}), C = At(C, 2);
|
|
7755
7763
|
}
|
|
7756
7764
|
break;
|
|
7757
|
-
case
|
|
7765
|
+
case G.EveryMonth:
|
|
7758
7766
|
r.push({
|
|
7759
7767
|
...s,
|
|
7760
7768
|
expectedDate: Pn(C, c)
|
|
@@ -7763,7 +7771,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7763
7771
|
expectedDate: ee(Pn(C, c), 1)
|
|
7764
7772
|
});
|
|
7765
7773
|
break;
|
|
7766
|
-
case
|
|
7774
|
+
case G.EveryOtherMonth:
|
|
7767
7775
|
bA(o, d) ? bA(ee(o, 2), u) && r.push({
|
|
7768
7776
|
...s,
|
|
7769
7777
|
expectedDate: ee(o, 2)
|
|
@@ -7772,7 +7780,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7772
7780
|
expectedDate: o
|
|
7773
7781
|
});
|
|
7774
7782
|
break;
|
|
7775
|
-
case
|
|
7783
|
+
case G.EveryQuarter:
|
|
7776
7784
|
bA(o, d) ? bA(je(o, 1), u) && r.push({
|
|
7777
7785
|
...s,
|
|
7778
7786
|
expectedDate: je(o, 1)
|
|
@@ -7781,7 +7789,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7781
7789
|
expectedDate: o
|
|
7782
7790
|
});
|
|
7783
7791
|
break;
|
|
7784
|
-
case
|
|
7792
|
+
case G.EveryOtherQuarter:
|
|
7785
7793
|
bA(o, d) ? bA(je(o, 2), u) && r.push({
|
|
7786
7794
|
...s,
|
|
7787
7795
|
expectedDate: je(o, 2)
|
|
@@ -7790,7 +7798,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7790
7798
|
expectedDate: o
|
|
7791
7799
|
});
|
|
7792
7800
|
break;
|
|
7793
|
-
case
|
|
7801
|
+
case G.EveryYear:
|
|
7794
7802
|
bA(o, d) ? bA(wt(o, 1), u) && r.push({
|
|
7795
7803
|
...s,
|
|
7796
7804
|
expectedDate: wt(o, 1)
|
|
@@ -7831,16 +7839,16 @@ const bi = ({ transaction: A }) => {
|
|
|
7831
7839
|
r.filter((d) => !d.end_date),
|
|
7832
7840
|
i
|
|
7833
7841
|
), c = (d) => {
|
|
7834
|
-
o(
|
|
7842
|
+
o(k.RECURRING_ACTIVITY_CLICK_INCOME, {
|
|
7835
7843
|
transaction_guid: d.transactionGuid
|
|
7836
7844
|
});
|
|
7837
7845
|
}, h = () => {
|
|
7838
|
-
o(
|
|
7846
|
+
o(k.RECURRING_ACTIVITY_CLICK_ADD_INCOME);
|
|
7839
7847
|
};
|
|
7840
7848
|
return /* @__PURE__ */ l(nA, { sx: { bgcolor: "background.paper" }, children: [
|
|
7841
7849
|
s.map((d, u) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7842
7850
|
/* @__PURE__ */ t(Vt, { activity: d, onActivityClick: c, showOrdinal: !0 }),
|
|
7843
|
-
/* @__PURE__ */ t(
|
|
7851
|
+
/* @__PURE__ */ t(q, { variant: u < s.length - 1 ? "inset" : "fullWidth" })
|
|
7844
7852
|
] }, d.sequenceGuid)),
|
|
7845
7853
|
/* @__PURE__ */ t(_i, { isIncome: !0, label: A.add_income, onAddActivity: h })
|
|
7846
7854
|
] });
|
|
@@ -7958,7 +7966,7 @@ const bi = ({ transaction: A }) => {
|
|
|
7958
7966
|
const A = CA(), { onEvent: e } = V(), { selectedDay: n } = HA(), [r, a] = g.useState(
|
|
7959
7967
|
Pr(/* @__PURE__ */ new Date()) * ut + oa
|
|
7960
7968
|
), i = (s) => {
|
|
7961
|
-
a(Pr(s) * ut + oa), e(
|
|
7969
|
+
a(Pr(s) * ut + oa), e(k.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
|
7962
7970
|
}, o = /* @__PURE__ */ t(
|
|
7963
7971
|
Xn,
|
|
7964
7972
|
{
|
|
@@ -8043,7 +8051,7 @@ const bi = ({ transaction: A }) => {
|
|
|
8043
8051
|
},
|
|
8044
8052
|
c.expectedDate.toString() + h
|
|
8045
8053
|
),
|
|
8046
|
-
/* @__PURE__ */ t(
|
|
8054
|
+
/* @__PURE__ */ t(q, { sx: { mx: 24 } })
|
|
8047
8055
|
] })) : s.map((c) => /* @__PURE__ */ l(eA, { children: [
|
|
8048
8056
|
/* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
|
|
8049
8057
|
nA,
|
|
@@ -8063,11 +8071,11 @@ const bi = ({ transaction: A }) => {
|
|
|
8063
8071
|
},
|
|
8064
8072
|
h.expectedDate.toString() + d
|
|
8065
8073
|
),
|
|
8066
|
-
d !== c.activities.length - 1 && /* @__PURE__ */ t(
|
|
8074
|
+
d !== c.activities.length - 1 && /* @__PURE__ */ t(q, { sx: { ml: 64, mr: 24 } })
|
|
8067
8075
|
] }))
|
|
8068
8076
|
}
|
|
8069
8077
|
) }, c.id),
|
|
8070
|
-
/* @__PURE__ */ t(
|
|
8078
|
+
/* @__PURE__ */ t(q, { sx: { mx: 24 } })
|
|
8071
8079
|
] })) })
|
|
8072
8080
|
] });
|
|
8073
8081
|
}, mt = T(pu), vu = ({
|
|
@@ -8112,15 +8120,15 @@ const bi = ({ transaction: A }) => {
|
|
|
8112
8120
|
selectedDayActivities: o,
|
|
8113
8121
|
setSelectedDay: s,
|
|
8114
8122
|
upcomingActivities: c
|
|
8115
|
-
} = HA(), [h, d] = g.useState(0), { onEvent: u } = V(), C = n.filter(wn), f = a.filter(wn), m = r.filter(wn), v = C.filter(Rt).reduce(gt, 0), E = f.filter(Rt).reduce(gt, 0), S = m.filter(Rt).reduce(gt, 0), L = C.filter(Rt).length, w = C.filter(bn).reduce(gt, 0), D = f.filter(bn).reduce(gt, 0), P = C.filter(bn).length,
|
|
8116
|
-
d(
|
|
8117
|
-
}, x = (
|
|
8118
|
-
u(
|
|
8119
|
-
transaction_guid:
|
|
8123
|
+
} = HA(), [h, d] = g.useState(0), { onEvent: u } = V(), C = n.filter(wn), f = a.filter(wn), m = r.filter(wn), v = C.filter(Rt).reduce(gt, 0), E = f.filter(Rt).reduce(gt, 0), S = m.filter(Rt).reduce(gt, 0), L = C.filter(Rt).length, w = C.filter(bn).reduce(gt, 0), D = f.filter(bn).reduce(gt, 0), P = C.filter(bn).length, N = (j, F) => {
|
|
8124
|
+
d(F);
|
|
8125
|
+
}, x = (j) => {
|
|
8126
|
+
u(k.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
8127
|
+
transaction_guid: j.transactionGuid
|
|
8120
8128
|
});
|
|
8121
|
-
},
|
|
8122
|
-
u(
|
|
8123
|
-
transaction_guid:
|
|
8129
|
+
}, R = (j) => {
|
|
8130
|
+
u(k.RECURRING_ACTIVITY_CLICK_PAID, {
|
|
8131
|
+
transaction_guid: j.transactionGuid
|
|
8124
8132
|
});
|
|
8125
8133
|
};
|
|
8126
8134
|
return /* @__PURE__ */ l(Le, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
|
@@ -8153,7 +8161,7 @@ const bi = ({ transaction: A }) => {
|
|
|
8153
8161
|
}
|
|
8154
8162
|
),
|
|
8155
8163
|
e && /* @__PURE__ */ l(O, { children: [
|
|
8156
|
-
/* @__PURE__ */ l(Oe, { onChange:
|
|
8164
|
+
/* @__PURE__ */ l(Oe, { onChange: N, value: h, variant: "fullWidth", children: [
|
|
8157
8165
|
/* @__PURE__ */ t(
|
|
8158
8166
|
BA,
|
|
8159
8167
|
{
|
|
@@ -8174,7 +8182,7 @@ const bi = ({ transaction: A }) => {
|
|
|
8174
8182
|
onActivityClick: x
|
|
8175
8183
|
}
|
|
8176
8184
|
),
|
|
8177
|
-
h === 1 && /* @__PURE__ */ t(mt, { activities: f, onActivityClick:
|
|
8185
|
+
h === 1 && /* @__PURE__ */ t(mt, { activities: f, onActivityClick: R })
|
|
8178
8186
|
] })
|
|
8179
8187
|
] }) }),
|
|
8180
8188
|
!e && /* @__PURE__ */ t(Le, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(y, { gap: 35, children: [
|
|
@@ -8183,9 +8191,9 @@ const bi = ({ transaction: A }) => {
|
|
|
8183
8191
|
mt,
|
|
8184
8192
|
{
|
|
8185
8193
|
activities: o || f,
|
|
8186
|
-
onActivityClick:
|
|
8194
|
+
onActivityClick: R,
|
|
8187
8195
|
onResetClick: i ? () => s(i) : void 0,
|
|
8188
|
-
title: i ?
|
|
8196
|
+
title: i ? _(
|
|
8189
8197
|
A.day_transactions,
|
|
8190
8198
|
$(i, Z.MONTH_DAY)
|
|
8191
8199
|
) : A.paid_activity
|
|
@@ -8213,11 +8221,11 @@ const bi = ({ transaction: A }) => {
|
|
|
8213
8221
|
label: r.settings,
|
|
8214
8222
|
iconName: "settings",
|
|
8215
8223
|
onClick: () => {
|
|
8216
|
-
u(!0), h(
|
|
8224
|
+
u(!0), h(k.RECURRING_ACTIVITY_CLICK_SETTINGS);
|
|
8217
8225
|
}
|
|
8218
8226
|
}
|
|
8219
8227
|
],
|
|
8220
|
-
onAccountsFilterClick: () => h(
|
|
8228
|
+
onAccountsFilterClick: () => h(k.RECURRING_ACTIVITY_CLICK_FILTER),
|
|
8221
8229
|
onBackClick: A,
|
|
8222
8230
|
sx: e,
|
|
8223
8231
|
title: r.title,
|
|
@@ -8250,7 +8258,7 @@ const bi = ({ transaction: A }) => {
|
|
|
8250
8258
|
), { availableWidth: s } = ot(), c = s < 750;
|
|
8251
8259
|
return /* @__PURE__ */ l(y, { flexDirection: c ? "column" : "row", width: "100%", children: [
|
|
8252
8260
|
/* @__PURE__ */ t(Hi, {}),
|
|
8253
|
-
!c && /* @__PURE__ */ t(
|
|
8261
|
+
!c && /* @__PURE__ */ t(q, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
8254
8262
|
/* @__PURE__ */ t(
|
|
8255
8263
|
mt,
|
|
8256
8264
|
{
|
|
@@ -8258,7 +8266,7 @@ const bi = ({ transaction: A }) => {
|
|
|
8258
8266
|
isMini: !0,
|
|
8259
8267
|
onResetClick: n ? () => a(n) : void 0,
|
|
8260
8268
|
sx: { width: c ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
8261
|
-
title: n ?
|
|
8269
|
+
title: n ? _(
|
|
8262
8270
|
A.day_transactions,
|
|
8263
8271
|
$(n, Z.MONTH_DAY)
|
|
8264
8272
|
) : A.upcoming_activity
|
|
@@ -8497,9 +8505,9 @@ const Iu = {
|
|
|
8497
8505
|
event: "account_details_click_account_name",
|
|
8498
8506
|
label: e.account_name,
|
|
8499
8507
|
name: "user_name",
|
|
8500
|
-
placeholder:
|
|
8508
|
+
placeholder: _(e.enter_value, e.account_name),
|
|
8501
8509
|
type: WA.Input,
|
|
8502
|
-
validation: (r) => r ? "" :
|
|
8510
|
+
validation: (r) => r ? "" : _(e.field_is_required, e.account_name),
|
|
8503
8511
|
valueFormatter: (r) => r
|
|
8504
8512
|
}
|
|
8505
8513
|
];
|
|
@@ -8507,7 +8515,7 @@ const Iu = {
|
|
|
8507
8515
|
n.unshift({
|
|
8508
8516
|
label: e.account_balance,
|
|
8509
8517
|
name: "balance",
|
|
8510
|
-
placeholder:
|
|
8518
|
+
placeholder: _(e.enter_value, e.account_balance),
|
|
8511
8519
|
type: WA.Currency,
|
|
8512
8520
|
valueFormatter: (a) => z(a, "0,0.00")
|
|
8513
8521
|
});
|
|
@@ -8520,7 +8528,7 @@ const Iu = {
|
|
|
8520
8528
|
label: e.account_type,
|
|
8521
8529
|
name: "account_type",
|
|
8522
8530
|
options: r,
|
|
8523
|
-
placeholder:
|
|
8531
|
+
placeholder: _(e.select_value, e.account_type),
|
|
8524
8532
|
type: WA.Select,
|
|
8525
8533
|
valueFormatter: (a) => r.find((i) => i.value === a)?.label
|
|
8526
8534
|
});
|
|
@@ -8535,7 +8543,7 @@ const Iu = {
|
|
|
8535
8543
|
label: e.property_type,
|
|
8536
8544
|
name: "property_type",
|
|
8537
8545
|
options: r,
|
|
8538
|
-
placeholder:
|
|
8546
|
+
placeholder: _(e.select_value, e.property_type),
|
|
8539
8547
|
type: WA.Select,
|
|
8540
8548
|
valueFormatter: (a) => r.find((i) => i.value === a)?.label
|
|
8541
8549
|
});
|
|
@@ -8546,7 +8554,7 @@ const Iu = {
|
|
|
8546
8554
|
event: "account_details_click_interest_rate",
|
|
8547
8555
|
label: r,
|
|
8548
8556
|
name: a,
|
|
8549
|
-
placeholder:
|
|
8557
|
+
placeholder: _(e.enter_value, r),
|
|
8550
8558
|
type: WA.Input,
|
|
8551
8559
|
validation: (i) => Nn(i) ? "" : e.error_amount_is_invalid,
|
|
8552
8560
|
valueFormatter: (i) => Nn(i) ? ni(i / 100) : i
|
|
@@ -8555,7 +8563,7 @@ const Iu = {
|
|
|
8555
8563
|
return fr(A) && (n.push({
|
|
8556
8564
|
label: e.minimum_payment,
|
|
8557
8565
|
name: "minimum_payment",
|
|
8558
|
-
placeholder:
|
|
8566
|
+
placeholder: _(e.enter_value, e.minimum_payment),
|
|
8559
8567
|
type: WA.Currency,
|
|
8560
8568
|
valueFormatter: (r) => z(r, "0,0.00")
|
|
8561
8569
|
}), A.payment_due_at ? n.push({
|
|
@@ -8569,23 +8577,23 @@ const Iu = {
|
|
|
8569
8577
|
}) : n.push({
|
|
8570
8578
|
label: e.day_payment_due,
|
|
8571
8579
|
name: "day_payment_is_due",
|
|
8572
|
-
placeholder:
|
|
8580
|
+
placeholder: _(e.enter_value, e.day_payment_due),
|
|
8573
8581
|
type: WA.Date,
|
|
8574
|
-
valueFormatter: (r) =>
|
|
8582
|
+
valueFormatter: (r) => _(
|
|
8575
8583
|
e.day_of_every_month,
|
|
8576
8584
|
tc(r <= 31 ? r : new Date(r).getDate())
|
|
8577
8585
|
)
|
|
8578
8586
|
})), xu(A) && n.push({
|
|
8579
8587
|
label: e.credit_limit,
|
|
8580
8588
|
name: "credit_limit",
|
|
8581
|
-
placeholder:
|
|
8589
|
+
placeholder: _(e.enter_value, e.credit_limit),
|
|
8582
8590
|
type: WA.Currency,
|
|
8583
8591
|
valueFormatter: (r) => z(r, "0,0.00")
|
|
8584
8592
|
}), Nu(A) && n.push({
|
|
8585
8593
|
label: e.original_balance,
|
|
8586
8594
|
minAmount: 1,
|
|
8587
8595
|
name: "original_balance",
|
|
8588
|
-
placeholder:
|
|
8596
|
+
placeholder: _(e.enter_value, e.original_balance),
|
|
8589
8597
|
type: WA.Currency,
|
|
8590
8598
|
valueFormatter: (r) => z(r, "0,0.00")
|
|
8591
8599
|
}), n;
|
|
@@ -8600,7 +8608,7 @@ const Iu = {
|
|
|
8600
8608
|
default:
|
|
8601
8609
|
if (n = e.current_balance, r = A.balance, A.minimum_payment && A.payment_due_at) {
|
|
8602
8610
|
const s = typeof A.payment_due_at == "number" ? new Date(A.payment_due_at * 1e3) : A.payment_due_at;
|
|
8603
|
-
a = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children:
|
|
8611
|
+
a = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: _(
|
|
8604
8612
|
e.payment_due_on,
|
|
8605
8613
|
z(A.minimum_payment, "0,0.00"),
|
|
8606
8614
|
$(s, Z.FULL_MONTH_DAY)
|
|
@@ -8696,7 +8704,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
8696
8704
|
}
|
|
8697
8705
|
)
|
|
8698
8706
|
] }),
|
|
8699
|
-
/* @__PURE__ */ t(
|
|
8707
|
+
/* @__PURE__ */ t(q, {})
|
|
8700
8708
|
] }), ca = T(Hu), zu = ({ total: A, type: e }) => {
|
|
8701
8709
|
const { cashflow: n } = I();
|
|
8702
8710
|
return /* @__PURE__ */ l(eA, { children: [
|
|
@@ -8721,7 +8729,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
8721
8729
|
]
|
|
8722
8730
|
}
|
|
8723
8731
|
),
|
|
8724
|
-
/* @__PURE__ */ t(
|
|
8732
|
+
/* @__PURE__ */ t(q, {})
|
|
8725
8733
|
] });
|
|
8726
8734
|
}, la = T(zu), da = (A, e) => (n) => n.accountGuid === A.guid && (Wn(n.expectedDate) || nt(n.expectedDate, e.start)) && bA(n.expectedDate, e.end), Bu = () => {
|
|
8727
8735
|
const { cashflow: A } = I(), { upcomingExpenses: e, upcomingIncome: n } = HA(), { dateRange: r, selectedCashAccounts: a } = st();
|
|
@@ -8766,7 +8774,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
8766
8774
|
}
|
|
8767
8775
|
}
|
|
8768
8776
|
),
|
|
8769
|
-
/* @__PURE__ */ t(
|
|
8777
|
+
/* @__PURE__ */ t(q, {}),
|
|
8770
8778
|
o.length > 0 && /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
|
|
8771
8779
|
nA,
|
|
8772
8780
|
{
|
|
@@ -8944,7 +8952,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
8944
8952
|
]
|
|
8945
8953
|
}
|
|
8946
8954
|
),
|
|
8947
|
-
/* @__PURE__ */ t(
|
|
8955
|
+
/* @__PURE__ */ t(q, { sx: { width: "100%" } }),
|
|
8948
8956
|
/* @__PURE__ */ l(
|
|
8949
8957
|
y,
|
|
8950
8958
|
{
|
|
@@ -8959,7 +8967,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
8959
8967
|
]
|
|
8960
8968
|
}
|
|
8961
8969
|
),
|
|
8962
|
-
/* @__PURE__ */ t(
|
|
8970
|
+
/* @__PURE__ */ t(q, { sx: { width: "100%" } }),
|
|
8963
8971
|
/* @__PURE__ */ l(
|
|
8964
8972
|
y,
|
|
8965
8973
|
{
|
|
@@ -8974,7 +8982,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
8974
8982
|
]
|
|
8975
8983
|
}
|
|
8976
8984
|
),
|
|
8977
|
-
/* @__PURE__ */ t(
|
|
8985
|
+
/* @__PURE__ */ t(q, { sx: { width: "100%" } }),
|
|
8978
8986
|
/* @__PURE__ */ t(
|
|
8979
8987
|
y,
|
|
8980
8988
|
{
|
|
@@ -9083,7 +9091,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9083
9091
|
label: r.cash_and_bank
|
|
9084
9092
|
}
|
|
9085
9093
|
),
|
|
9086
|
-
/* @__PURE__ */ t(
|
|
9094
|
+
/* @__PURE__ */ t(q, {}),
|
|
9087
9095
|
E ? /* @__PURE__ */ t(
|
|
9088
9096
|
Pe,
|
|
9089
9097
|
{
|
|
@@ -9101,7 +9109,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9101
9109
|
children: r.add_income
|
|
9102
9110
|
}
|
|
9103
9111
|
),
|
|
9104
|
-
/* @__PURE__ */ t(
|
|
9112
|
+
/* @__PURE__ */ t(q, {}),
|
|
9105
9113
|
/* @__PURE__ */ t(
|
|
9106
9114
|
Pe,
|
|
9107
9115
|
{
|
|
@@ -9111,7 +9119,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9111
9119
|
symbol: "-"
|
|
9112
9120
|
}
|
|
9113
9121
|
),
|
|
9114
|
-
/* @__PURE__ */ t(
|
|
9122
|
+
/* @__PURE__ */ t(q, {}),
|
|
9115
9123
|
/* @__PURE__ */ t(
|
|
9116
9124
|
Pe,
|
|
9117
9125
|
{
|
|
@@ -9263,15 +9271,15 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9263
9271
|
transform: rotate(360deg);
|
|
9264
9272
|
}
|
|
9265
9273
|
`, $u = () => {
|
|
9266
|
-
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = HA(), { cashflow: r, common: a } = I(), { completeOnboarding: i } = tr(), { isDirty: o } = st(), { isMobile: s } = MA(), { setDisplayedDate: c } = fA(), { filter: h, setFilter: d, transactions: u } = uA(), C = CA(), [f, m] = Ce(!0), [v, E] = g.useState(
|
|
9267
|
-
() => u.find((cA) => cA.guid ===
|
|
9268
|
-
[
|
|
9274
|
+
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = HA(), { cashflow: r, common: a } = I(), { completeOnboarding: i } = tr(), { isDirty: o } = st(), { isMobile: s } = MA(), { setDisplayedDate: c } = fA(), { filter: h, setFilter: d, transactions: u } = uA(), C = CA(), [f, m] = Ce(!0), [v, E] = g.useState(G.EveryMonth), [S, L] = Ce(!1), [w, D] = g.useState(null), [P, N] = Ce(1), [x, R] = Ce([]), [j, F] = Ce(""), X = g.useMemo(
|
|
9275
|
+
() => u.find((cA) => cA.guid === j),
|
|
9276
|
+
[j]
|
|
9269
9277
|
), Q = !!n.length, U = async () => {
|
|
9270
|
-
|
|
9278
|
+
N(2), c(
|
|
9271
9279
|
// Beginning of the month, 90 days before today
|
|
9272
9280
|
yA(de(AA(), 90)),
|
|
9273
9281
|
AA()
|
|
9274
|
-
), d({ ...h, custom: It }),
|
|
9282
|
+
), d({ ...h, custom: It }), N(3);
|
|
9275
9283
|
}, rA = async () => {
|
|
9276
9284
|
if (!(x.length < 1)) {
|
|
9277
9285
|
L(!0);
|
|
@@ -9288,7 +9296,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9288
9296
|
}
|
|
9289
9297
|
i();
|
|
9290
9298
|
}
|
|
9291
|
-
}, gA = !
|
|
9299
|
+
}, gA = !X && f || !X && x.length < 1;
|
|
9292
9300
|
return /* @__PURE__ */ l(
|
|
9293
9301
|
O,
|
|
9294
9302
|
{
|
|
@@ -9330,16 +9338,16 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9330
9338
|
children: [
|
|
9331
9339
|
/* @__PURE__ */ t(Ie, { pb: 12, children: r.add_income_title }),
|
|
9332
9340
|
/* @__PURE__ */ t(zA, { mb: 24, children: r.add_income_description }),
|
|
9333
|
-
x.length > 0 && !
|
|
9341
|
+
x.length > 0 && !X && /* @__PURE__ */ l(eA, { children: [
|
|
9334
9342
|
/* @__PURE__ */ t(nA, { children: x.map((cA, vA) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
9335
9343
|
/* @__PURE__ */ t(sr, { bgcolor: "background.paper", children: rn(
|
|
9336
9344
|
mA(cA.nextDate || cA.date)
|
|
9337
9345
|
) }),
|
|
9338
9346
|
/* @__PURE__ */ t(or, { transaction: cA }),
|
|
9339
|
-
vA !== x.length - 1 && /* @__PURE__ */ t(
|
|
9347
|
+
vA !== x.length - 1 && /* @__PURE__ */ t(q, {})
|
|
9340
9348
|
] }, cA.guid)) }),
|
|
9341
9349
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", children: [
|
|
9342
|
-
/* @__PURE__ */ t(
|
|
9350
|
+
/* @__PURE__ */ t(q, { sx: { flexGrow: 1 } }),
|
|
9343
9351
|
/* @__PURE__ */ t(
|
|
9344
9352
|
sA,
|
|
9345
9353
|
{
|
|
@@ -9359,12 +9367,12 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9359
9367
|
custom: (vA) => cA ? Mi(vA, cA) : It(vA)
|
|
9360
9368
|
}),
|
|
9361
9369
|
onSelected: (cA) => {
|
|
9362
|
-
|
|
9370
|
+
F(cA), m(!1);
|
|
9363
9371
|
}
|
|
9364
9372
|
}
|
|
9365
9373
|
),
|
|
9366
9374
|
!Q && o && /* @__PURE__ */ t(zA, { color: "error", mt: 16, children: r.confirm_error }),
|
|
9367
|
-
|
|
9375
|
+
X && /* @__PURE__ */ l(eA, { children: [
|
|
9368
9376
|
/* @__PURE__ */ t(
|
|
9369
9377
|
Ni,
|
|
9370
9378
|
{
|
|
@@ -9374,17 +9382,17 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9374
9382
|
nextDate: w,
|
|
9375
9383
|
onFrequencyChange: E,
|
|
9376
9384
|
onNextDateChange: D,
|
|
9377
|
-
transaction:
|
|
9385
|
+
transaction: X
|
|
9378
9386
|
}
|
|
9379
9387
|
),
|
|
9380
9388
|
/* @__PURE__ */ l(y, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
9381
9389
|
/* @__PURE__ */ t(
|
|
9382
9390
|
sA,
|
|
9383
9391
|
{
|
|
9384
|
-
"aria-disabled": !
|
|
9392
|
+
"aria-disabled": !X || !w,
|
|
9385
9393
|
onClick: () => {
|
|
9386
9394
|
const cA = [...x];
|
|
9387
|
-
cA.push({ ...
|
|
9395
|
+
cA.push({ ...X, nextDate: w, frequency: v }), R(cA), F("");
|
|
9388
9396
|
},
|
|
9389
9397
|
variant: "contained",
|
|
9390
9398
|
children: a.confirm_button
|
|
@@ -9394,7 +9402,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9394
9402
|
sA,
|
|
9395
9403
|
{
|
|
9396
9404
|
onClick: () => {
|
|
9397
|
-
|
|
9405
|
+
F(""), m(!0), U();
|
|
9398
9406
|
},
|
|
9399
9407
|
variant: "outlined",
|
|
9400
9408
|
children: a.cancel_button
|
|
@@ -9402,7 +9410,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9402
9410
|
)
|
|
9403
9411
|
] })
|
|
9404
9412
|
] }),
|
|
9405
|
-
x.length > 0 && !
|
|
9413
|
+
x.length > 0 && !X && /* @__PURE__ */ l(y, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
9406
9414
|
/* @__PURE__ */ t(
|
|
9407
9415
|
sA,
|
|
9408
9416
|
{
|
|
@@ -9453,7 +9461,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9453
9461
|
label: f.cashflow_settings,
|
|
9454
9462
|
iconName: "settings",
|
|
9455
9463
|
onClick: () => {
|
|
9456
|
-
v(!0), s(
|
|
9464
|
+
v(!0), s(k.CASH_FLOW_CLICK_SETTINGS);
|
|
9457
9465
|
}
|
|
9458
9466
|
}
|
|
9459
9467
|
],
|
|
@@ -9466,7 +9474,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9466
9474
|
},
|
|
9467
9475
|
dateRange: u,
|
|
9468
9476
|
dateRangeVariant: "readonly",
|
|
9469
|
-
onAccountsFilterClick: () => s(
|
|
9477
|
+
onAccountsFilterClick: () => s(k.CASH_FLOW_CLICK_FILTER),
|
|
9470
9478
|
onBackClick: A,
|
|
9471
9479
|
sx: e,
|
|
9472
9480
|
title: f.title,
|
|
@@ -9822,10 +9830,10 @@ const uh = ({
|
|
|
9822
9830
|
hideFooter: !0,
|
|
9823
9831
|
initialState: { sorting: { sortModel: a } },
|
|
9824
9832
|
onRowClick: (c) => {
|
|
9825
|
-
e?.(c.row.category), r(
|
|
9833
|
+
e?.(c.row.category), r(k.TRENDS_CLICK_TABLE_ROW);
|
|
9826
9834
|
},
|
|
9827
9835
|
onSortModelChange: (c) => {
|
|
9828
|
-
i(c), r(
|
|
9836
|
+
i(c), r(k.TRENDS_CLICK_TABLE_SORT);
|
|
9829
9837
|
},
|
|
9830
9838
|
rows: s,
|
|
9831
9839
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
@@ -9969,10 +9977,10 @@ function Eh(A, e) {
|
|
|
9969
9977
|
style: "percent",
|
|
9970
9978
|
minimumFractionDigits: 0,
|
|
9971
9979
|
maximumFractionDigits: 0
|
|
9972
|
-
}, i = e.projected_to_complete_at ? IA(e.projected_to_complete_at) : /* @__PURE__ */ new Date(), o =
|
|
9980
|
+
}, i = e.projected_to_complete_at ? IA(e.projected_to_complete_at) : /* @__PURE__ */ new Date(), o = _(
|
|
9973
9981
|
A.goal_percentage,
|
|
9974
9982
|
ni(n, a)
|
|
9975
|
-
), s =
|
|
9983
|
+
), s = _(
|
|
9976
9984
|
A.goal_projection,
|
|
9977
9985
|
$(i, Z.MONTH_SHORT_YEAR)
|
|
9978
9986
|
);
|
|
@@ -10036,25 +10044,25 @@ const yh = T(({ goal: A }) => {
|
|
|
10036
10044
|
] })
|
|
10037
10045
|
] });
|
|
10038
10046
|
}), $7 = T(({ onBackClick: A, sx: e }) => {
|
|
10039
|
-
const { onEvent: n } = V(), { isMobile: r } = MA(), { accounts: a } = TA(), { isInitialized: i, setSelectedAccounts: o } = fA(), { goals: s } = I(), { loadGoals: c } = rr(), [h, d] = g.useState(0), u = 400, C = 205, f = 624, m =
|
|
10047
|
+
const { onEvent: n } = V(), { isMobile: r } = MA(), { accounts: a } = TA(), { isInitialized: i, setSelectedAccounts: o } = fA(), { goals: s } = I(), { loadGoals: c } = rr(), [h, d] = g.useState(0), u = 400, C = 205, f = 624, m = _(
|
|
10040
10048
|
r ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
10041
10049
|
z(u, "0,0")
|
|
10042
|
-
), v =
|
|
10050
|
+
), v = _(
|
|
10043
10051
|
r ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
10044
10052
|
z(C, "0,0")
|
|
10045
|
-
), E =
|
|
10053
|
+
), E = _(
|
|
10046
10054
|
r ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
10047
10055
|
z(f, "0,0")
|
|
10048
10056
|
);
|
|
10049
10057
|
g.useEffect(() => {
|
|
10050
|
-
o(a), n(
|
|
10058
|
+
o(a), n(k.GOALS_VIEW);
|
|
10051
10059
|
}, []), g.useEffect(() => {
|
|
10052
10060
|
i && c().finally();
|
|
10053
10061
|
}, [i]);
|
|
10054
10062
|
const S = () => {
|
|
10055
|
-
n(
|
|
10063
|
+
n(k.GOALS_CLICK_FILTER);
|
|
10056
10064
|
}, L = () => {
|
|
10057
|
-
n(
|
|
10065
|
+
n(k.GOALS_CLICK_ADD);
|
|
10058
10066
|
};
|
|
10059
10067
|
return /* @__PURE__ */ l(
|
|
10060
10068
|
ue,
|
|
@@ -10191,7 +10199,7 @@ const wh = /^[ a-zA-ZÀ-ÿ0-9]+$/, Sh = 50, fa = 65, Th = ({
|
|
|
10191
10199
|
/* @__PURE__ */ t(OA, { children: /* @__PURE__ */ t(ke, { categoryGuid: "", merchantGuid: f.guid }) }),
|
|
10192
10200
|
/* @__PURE__ */ t(tA, { primary: f.name })
|
|
10193
10201
|
] }) }),
|
|
10194
|
-
/* @__PURE__ */ t(
|
|
10202
|
+
/* @__PURE__ */ t(q, { sx: { ml: 24 } })
|
|
10195
10203
|
]
|
|
10196
10204
|
},
|
|
10197
10205
|
f.guid
|
|
@@ -10451,7 +10459,7 @@ const Rh = ({
|
|
|
10451
10459
|
)
|
|
10452
10460
|
}
|
|
10453
10461
|
),
|
|
10454
|
-
/* @__PURE__ */ t(
|
|
10462
|
+
/* @__PURE__ */ t(q, {})
|
|
10455
10463
|
] }, A.x);
|
|
10456
10464
|
}, Bh = T(zh), Kh = ({
|
|
10457
10465
|
chartData: A,
|
|
@@ -10474,7 +10482,7 @@ const Rh = ({
|
|
|
10474
10482
|
return /* @__PURE__ */ l(y, { direction: "column", width: 320, children: [
|
|
10475
10483
|
/* @__PURE__ */ l(nA, { children: [
|
|
10476
10484
|
/* @__PURE__ */ t(le, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "Body", children: s.monthly_totals }) }),
|
|
10477
|
-
/* @__PURE__ */ t(
|
|
10485
|
+
/* @__PURE__ */ t(q, {}),
|
|
10478
10486
|
A.map((d, u) => /* @__PURE__ */ t(
|
|
10479
10487
|
Bh,
|
|
10480
10488
|
{
|
|
@@ -10541,7 +10549,7 @@ const Rh = ({
|
|
|
10541
10549
|
),
|
|
10542
10550
|
/* @__PURE__ */ t(te, { children: r ? /* @__PURE__ */ t(M, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(M, { name: "expand_more", size: 24 }) })
|
|
10543
10551
|
] }) }),
|
|
10544
|
-
/* @__PURE__ */ t(
|
|
10552
|
+
/* @__PURE__ */ t(q, {}),
|
|
10545
10553
|
/* @__PURE__ */ t(Qn, { in: r, timeout: "auto", unmountOnExit: !0, children: A.map((i, o) => /* @__PURE__ */ l(nA, { children: [
|
|
10546
10554
|
/* @__PURE__ */ t(Y, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
|
10547
10555
|
tA,
|
|
@@ -10553,7 +10561,7 @@ const Rh = ({
|
|
|
10553
10561
|
sx: { pl: 72, pr: 16 }
|
|
10554
10562
|
}
|
|
10555
10563
|
) }),
|
|
10556
|
-
o < A.length - 1 ? /* @__PURE__ */ t(
|
|
10564
|
+
o < A.length - 1 ? /* @__PURE__ */ t(q, { variant: "inset" }) : /* @__PURE__ */ t(q, {})
|
|
10557
10565
|
] }, i.accountName)) })
|
|
10558
10566
|
] });
|
|
10559
10567
|
}, Ea = ({ groupedAccounts: A }) => /* @__PURE__ */ t(eA, { children: A.map(({ accounts: e, icon: n, name: r }) => /* @__PURE__ */ t(Xh, { accounts: e, icon: n, name: r }, r)) }), jh = ({
|
|
@@ -10656,7 +10664,7 @@ const Rh = ({
|
|
|
10656
10664
|
sx: { px: 16 }
|
|
10657
10665
|
}
|
|
10658
10666
|
) }),
|
|
10659
|
-
/* @__PURE__ */ t(
|
|
10667
|
+
/* @__PURE__ */ t(q, {})
|
|
10660
10668
|
] }, s.accountName)),
|
|
10661
10669
|
/* @__PURE__ */ t(le, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
10662
10670
|
tA,
|
|
@@ -10685,7 +10693,7 @@ const Rh = ({
|
|
|
10685
10693
|
},
|
|
10686
10694
|
s.accountName
|
|
10687
10695
|
),
|
|
10688
|
-
/* @__PURE__ */ t(
|
|
10696
|
+
/* @__PURE__ */ t(q, {})
|
|
10689
10697
|
] }))
|
|
10690
10698
|
] })
|
|
10691
10699
|
] });
|
|
@@ -10700,24 +10708,24 @@ const Rh = ({
|
|
|
10700
10708
|
selectedData: C,
|
|
10701
10709
|
setHoveredData: f,
|
|
10702
10710
|
setSelectedData: m
|
|
10703
|
-
} = zc(), { isMobile: v } = MA(), { onEvent: E } = V(), [S, L] = g.useState(!1), [w, D] = g.useState(6), [P,
|
|
10711
|
+
} = zc(), { isMobile: v } = MA(), { onEvent: E } = V(), [S, L] = g.useState(!1), [w, D] = g.useState(6), [P, N] = g.useState(!1), [x, R] = g.useState(!1), j = async () => {
|
|
10704
10712
|
await d(n), await h(w), L(!0);
|
|
10705
10713
|
};
|
|
10706
10714
|
g.useEffect(() => {
|
|
10707
|
-
E(
|
|
10715
|
+
E(k.NET_WORTH_VIEW), r(i);
|
|
10708
10716
|
}, []), g.useEffect(() => {
|
|
10709
|
-
e &&
|
|
10717
|
+
e && j();
|
|
10710
10718
|
}, [e, n]), g.useEffect(() => {
|
|
10711
|
-
E(
|
|
10719
|
+
E(k.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: w + "M" }), h(w);
|
|
10712
10720
|
}, [w]);
|
|
10713
|
-
const
|
|
10714
|
-
m(vA), cA.currentTarget instanceof HTMLDivElement &&
|
|
10715
|
-
},
|
|
10721
|
+
const F = (cA, vA) => {
|
|
10722
|
+
m(vA), cA.currentTarget instanceof HTMLDivElement && N(!0);
|
|
10723
|
+
}, X = (cA) => {
|
|
10716
10724
|
f(cA);
|
|
10717
10725
|
}, Q = () => {
|
|
10718
10726
|
f(null);
|
|
10719
10727
|
}, U = () => {
|
|
10720
|
-
E(
|
|
10728
|
+
E(k.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), R(!0);
|
|
10721
10729
|
}, rA = async (cA) => {
|
|
10722
10730
|
const vA = cA[0], $A = cA[1];
|
|
10723
10731
|
vA && $A && D(ts($A, vA));
|
|
@@ -10725,8 +10733,8 @@ const Rh = ({
|
|
|
10725
10733
|
chartData: u,
|
|
10726
10734
|
hoveredData: c,
|
|
10727
10735
|
onButtonClick: U,
|
|
10728
|
-
onDataClick:
|
|
10729
|
-
onMouseEnter:
|
|
10736
|
+
onDataClick: F,
|
|
10737
|
+
onMouseEnter: X,
|
|
10730
10738
|
onMouseLeave: Q,
|
|
10731
10739
|
selectedData: C
|
|
10732
10740
|
};
|
|
@@ -10738,7 +10746,7 @@ const Rh = ({
|
|
|
10738
10746
|
onRangeChanged: rA
|
|
10739
10747
|
},
|
|
10740
10748
|
dateRangeVariant: v ? "timeframetabs" : "timeframebuttons",
|
|
10741
|
-
onAccountsFilterClick: () => E(
|
|
10749
|
+
onAccountsFilterClick: () => E(k.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
10742
10750
|
onBackClick: A,
|
|
10743
10751
|
showDividerAboveDateSelector: !1,
|
|
10744
10752
|
sx: { p: v ? 0 : 48 },
|
|
@@ -10762,7 +10770,7 @@ const Rh = ({
|
|
|
10762
10770
|
{
|
|
10763
10771
|
ariaLabelClose: "Close",
|
|
10764
10772
|
isOpen: P,
|
|
10765
|
-
onClose: () =>
|
|
10773
|
+
onClose: () => N(!1),
|
|
10766
10774
|
shouldShowHeaderBorders: !1,
|
|
10767
10775
|
shouldShowHeaderShadow: !0,
|
|
10768
10776
|
title: a.gains_and_losses,
|
|
@@ -10774,7 +10782,7 @@ const Rh = ({
|
|
|
10774
10782
|
{
|
|
10775
10783
|
ariaLabelClose: "Close",
|
|
10776
10784
|
isOpen: x,
|
|
10777
|
-
onClose: () =>
|
|
10785
|
+
onClose: () => R(!1),
|
|
10778
10786
|
shouldShowHeaderBorders: !1,
|
|
10779
10787
|
shouldShowHeaderShadow: !0,
|
|
10780
10788
|
title: a.assets_and_liabilities,
|
|
@@ -10998,7 +11006,7 @@ const Ln = ({
|
|
|
10998
11006
|
/* @__PURE__ */ t(tA, { primary: r, secondary: a }),
|
|
10999
11007
|
A
|
|
11000
11008
|
] }) }),
|
|
11001
|
-
/* @__PURE__ */ t(
|
|
11009
|
+
/* @__PURE__ */ t(q, { sx: { ml: e ? 0 : 24 } })
|
|
11002
11010
|
] }), he = () => {
|
|
11003
11011
|
if (!g.useContext(it))
|
|
11004
11012
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
@@ -11025,7 +11033,7 @@ const Ln = ({
|
|
|
11025
11033
|
Ln,
|
|
11026
11034
|
{
|
|
11027
11035
|
onClick: () => {
|
|
11028
|
-
m({ is_hidden: !c.is_hidden }), f(
|
|
11036
|
+
m({ is_hidden: !c.is_hidden }), f(k.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
|
|
11029
11037
|
},
|
|
11030
11038
|
primaryText: c.is_hidden ? u.unhide_account : u.hide_Account,
|
|
11031
11039
|
secondaryText: c.is_hidden ? u.include_this_account : u.exclude_this_account,
|
|
@@ -11036,7 +11044,7 @@ const Ln = ({
|
|
|
11036
11044
|
Ln,
|
|
11037
11045
|
{
|
|
11038
11046
|
onClick: () => {
|
|
11039
|
-
e(!0), f(
|
|
11047
|
+
e(!0), f(k.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
11040
11048
|
account_guid: c.guid
|
|
11041
11049
|
});
|
|
11042
11050
|
},
|
|
@@ -11050,7 +11058,7 @@ const Ln = ({
|
|
|
11050
11058
|
{
|
|
11051
11059
|
isLast: !0,
|
|
11052
11060
|
onClick: () => {
|
|
11053
|
-
r(!0), f(
|
|
11061
|
+
r(!0), f(k.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
11054
11062
|
account_guid: c.guid
|
|
11055
11063
|
});
|
|
11056
11064
|
},
|
|
@@ -11071,7 +11079,7 @@ const Ln = ({
|
|
|
11071
11079
|
e(!1);
|
|
11072
11080
|
},
|
|
11073
11081
|
onPrimaryAction: () => m({ is_closed: !c.is_closed }),
|
|
11074
|
-
children:
|
|
11082
|
+
children: _(
|
|
11075
11083
|
c.is_closed ? u.this_will_resume_updating_the_balance : u.this_will_set_the_balance_of_your_account,
|
|
11076
11084
|
c.name
|
|
11077
11085
|
)
|
|
@@ -11112,7 +11120,7 @@ const Ln = ({
|
|
|
11112
11120
|
onClose: () => i(!1),
|
|
11113
11121
|
onPrimaryAction: v,
|
|
11114
11122
|
children: [
|
|
11115
|
-
|
|
11123
|
+
_(
|
|
11116
11124
|
u.this_means_accounts_will_be_merged,
|
|
11117
11125
|
c.name,
|
|
11118
11126
|
o.name
|
|
@@ -11128,7 +11136,7 @@ const Ln = ({
|
|
|
11128
11136
|
case GA.CHALLENGED:
|
|
11129
11137
|
return {
|
|
11130
11138
|
cta: n.challenged_cta,
|
|
11131
|
-
main:
|
|
11139
|
+
main: _(
|
|
11132
11140
|
n.challenged_connection_description,
|
|
11133
11141
|
A.name
|
|
11134
11142
|
),
|
|
@@ -11149,7 +11157,7 @@ const Ln = ({
|
|
|
11149
11157
|
};
|
|
11150
11158
|
case GA.DELAYED:
|
|
11151
11159
|
return {
|
|
11152
|
-
main:
|
|
11160
|
+
main: _(
|
|
11153
11161
|
n.delayed_connection_description,
|
|
11154
11162
|
A.name
|
|
11155
11163
|
),
|
|
@@ -11159,7 +11167,7 @@ const Ln = ({
|
|
|
11159
11167
|
case GA.DENIED:
|
|
11160
11168
|
return {
|
|
11161
11169
|
cta: n.denied_cta,
|
|
11162
|
-
main:
|
|
11170
|
+
main: _(
|
|
11163
11171
|
n.denied_connection_description,
|
|
11164
11172
|
A.name
|
|
11165
11173
|
),
|
|
@@ -11174,7 +11182,7 @@ const Ln = ({
|
|
|
11174
11182
|
};
|
|
11175
11183
|
case GA.DISCONNECTED:
|
|
11176
11184
|
return {
|
|
11177
|
-
main:
|
|
11185
|
+
main: _(
|
|
11178
11186
|
n.disconnected_connection_description,
|
|
11179
11187
|
A.name
|
|
11180
11188
|
),
|
|
@@ -11196,7 +11204,7 @@ const Ln = ({
|
|
|
11196
11204
|
};
|
|
11197
11205
|
case GA.FAILED:
|
|
11198
11206
|
return {
|
|
11199
|
-
main:
|
|
11207
|
+
main: _(
|
|
11200
11208
|
n.failed_connection_description,
|
|
11201
11209
|
A.name
|
|
11202
11210
|
),
|
|
@@ -11206,7 +11214,7 @@ const Ln = ({
|
|
|
11206
11214
|
case GA.IMPAIRED:
|
|
11207
11215
|
return {
|
|
11208
11216
|
cta: n.impaired_cta,
|
|
11209
|
-
main:
|
|
11217
|
+
main: _(
|
|
11210
11218
|
n.impaired_connection_description,
|
|
11211
11219
|
A.name
|
|
11212
11220
|
),
|
|
@@ -11215,7 +11223,7 @@ const Ln = ({
|
|
|
11215
11223
|
};
|
|
11216
11224
|
case GA.IMPEDED:
|
|
11217
11225
|
return {
|
|
11218
|
-
main:
|
|
11226
|
+
main: _(
|
|
11219
11227
|
n.impeded_connection_description,
|
|
11220
11228
|
A.name,
|
|
11221
11229
|
A.name
|
|
@@ -11226,7 +11234,7 @@ const Ln = ({
|
|
|
11226
11234
|
case GA.IMPORTED:
|
|
11227
11235
|
return {
|
|
11228
11236
|
cta: n.imported_cta,
|
|
11229
|
-
main:
|
|
11237
|
+
main: _(
|
|
11230
11238
|
n.imported_connection_description,
|
|
11231
11239
|
A.name
|
|
11232
11240
|
),
|
|
@@ -11236,7 +11244,7 @@ const Ln = ({
|
|
|
11236
11244
|
case GA.LOCKED:
|
|
11237
11245
|
return {
|
|
11238
11246
|
cta: n.locked_cta,
|
|
11239
|
-
main:
|
|
11247
|
+
main: _(
|
|
11240
11248
|
n.locked_connection_description,
|
|
11241
11249
|
A.name
|
|
11242
11250
|
),
|
|
@@ -11261,7 +11269,7 @@ const Ln = ({
|
|
|
11261
11269
|
const r = () => {
|
|
11262
11270
|
const a = A.successfully_aggregated_at ? IA(A.successfully_aggregated_at) : void 0, i = a && $(a, Z.TIME_STAMP_HOUR_MINUTE);
|
|
11263
11271
|
if (i)
|
|
11264
|
-
return Wn(a) ?
|
|
11272
|
+
return Wn(a) ? _(e.last_updated_at, e.today, i) : ws(a) ? _(e.last_updated_at, e.yesterday, i) : _(
|
|
11265
11273
|
e.last_updated_at,
|
|
11266
11274
|
$(a, Z.MONTH_DAY_YEAR),
|
|
11267
11275
|
i
|
|
@@ -11315,7 +11323,7 @@ const Ln = ({
|
|
|
11315
11323
|
),
|
|
11316
11324
|
/* @__PURE__ */ t(M, { name: "chevron_right" })
|
|
11317
11325
|
] }) }),
|
|
11318
|
-
/* @__PURE__ */ t(
|
|
11326
|
+
/* @__PURE__ */ t(q, { sx: { ml: r.is_manual || !r.institution_url ? 0 : 24 } }),
|
|
11319
11327
|
!r.is_manual && r.institution_url && /* @__PURE__ */ l(eA, { children: [
|
|
11320
11328
|
/* @__PURE__ */ t(Y, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(dA, { component: "a", href: r.institution_url, target: "_blank", children: [
|
|
11321
11329
|
/* @__PURE__ */ t(OA, { children: /* @__PURE__ */ t(
|
|
@@ -11340,7 +11348,7 @@ const Ln = ({
|
|
|
11340
11348
|
/* @__PURE__ */ t(tA, { primary: r.name, secondary: r.institution_url }),
|
|
11341
11349
|
/* @__PURE__ */ t(M, { name: "launch" })
|
|
11342
11350
|
] }) }),
|
|
11343
|
-
/* @__PURE__ */ t(
|
|
11351
|
+
/* @__PURE__ */ t(q, {})
|
|
11344
11352
|
] }),
|
|
11345
11353
|
A && /* @__PURE__ */ t(
|
|
11346
11354
|
on,
|
|
@@ -11428,7 +11436,7 @@ const Ln = ({
|
|
|
11428
11436
|
{
|
|
11429
11437
|
copy: {
|
|
11430
11438
|
close_aria: i.close_aria,
|
|
11431
|
-
title:
|
|
11439
|
+
title: _(i.edit_field, A.label)
|
|
11432
11440
|
},
|
|
11433
11441
|
disablePrimaryButton: !!c || !d,
|
|
11434
11442
|
isOpen: e,
|
|
@@ -11465,10 +11473,10 @@ const Ln = ({
|
|
|
11465
11473
|
]
|
|
11466
11474
|
}
|
|
11467
11475
|
) }),
|
|
11468
|
-
/* @__PURE__ */ t(
|
|
11476
|
+
/* @__PURE__ */ t(q, { sx: { ml: f ? 0 : 24 } })
|
|
11469
11477
|
] }) : C && /* @__PURE__ */ l(eA, { children: [
|
|
11470
11478
|
/* @__PURE__ */ t(Y, { sx: { backgroundColor: "background.paper", px: 24 }, children: m }),
|
|
11471
|
-
/* @__PURE__ */ t(
|
|
11479
|
+
/* @__PURE__ */ t(q, { sx: { ml: f ? 0 : 24 } })
|
|
11472
11480
|
] }) }, u.name);
|
|
11473
11481
|
}),
|
|
11474
11482
|
o && c && /* @__PURE__ */ t(
|
|
@@ -11482,7 +11490,7 @@ const Ln = ({
|
|
|
11482
11490
|
] });
|
|
11483
11491
|
}, u1 = T(d1), h1 = () => {
|
|
11484
11492
|
const { onEvent: A } = V();
|
|
11485
|
-
return g.useEffect(() => A(
|
|
11493
|
+
return g.useEffect(() => A(k.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(nA, { children: [
|
|
11486
11494
|
/* @__PURE__ */ t(u1, {}),
|
|
11487
11495
|
/* @__PURE__ */ t(s1, {}),
|
|
11488
11496
|
/* @__PURE__ */ t(i1, {})
|
|
@@ -11550,7 +11558,7 @@ const Ln = ({
|
|
|
11550
11558
|
dateRange: { start: rs(as(), 90), end: is() },
|
|
11551
11559
|
accounts: [r.guid]
|
|
11552
11560
|
});
|
|
11553
|
-
}, [r]), g.useEffect(() => n(
|
|
11561
|
+
}, [r]), g.useEffect(() => n(k.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(eA, { children: [
|
|
11554
11562
|
/* @__PURE__ */ t(Ge, { onClick: e }),
|
|
11555
11563
|
s && /* @__PURE__ */ t(
|
|
11556
11564
|
lA,
|
|
@@ -11722,7 +11730,7 @@ const Ln = ({
|
|
|
11722
11730
|
(m, v) => (v.available_balance || v.balance || 0) + m,
|
|
11723
11731
|
0
|
|
11724
11732
|
), f = (m) => {
|
|
11725
|
-
e(m.guid), s(
|
|
11733
|
+
e(m.guid), s(k.ACCOUNTS_CLICK_ACCOUNT, {
|
|
11726
11734
|
account_guid: m.guid,
|
|
11727
11735
|
account_type: m.account_type
|
|
11728
11736
|
});
|
|
@@ -11755,7 +11763,7 @@ const Ln = ({
|
|
|
11755
11763
|
}
|
|
11756
11764
|
),
|
|
11757
11765
|
!v && /* @__PURE__ */ t(
|
|
11758
|
-
|
|
11766
|
+
q,
|
|
11759
11767
|
{
|
|
11760
11768
|
sx: {
|
|
11761
11769
|
mb: E ? 24 : 4,
|
|
@@ -11831,9 +11839,9 @@ const Ln = ({
|
|
|
11831
11839
|
const f = () => {
|
|
11832
11840
|
i(!0), s().finally(() => {
|
|
11833
11841
|
i(!1);
|
|
11834
|
-
}), C(
|
|
11842
|
+
}), C(k.ACCOUNTS_CLICK_SYNC);
|
|
11835
11843
|
}, m = () => {
|
|
11836
|
-
r(!0), C(
|
|
11844
|
+
r(!0), C(k.ACCOUNTS_CLICK_CONNECT);
|
|
11837
11845
|
};
|
|
11838
11846
|
return /* @__PURE__ */ t(
|
|
11839
11847
|
ue,
|
|
@@ -11851,7 +11859,7 @@ const Ln = ({
|
|
|
11851
11859
|
onClick: f
|
|
11852
11860
|
}
|
|
11853
11861
|
],
|
|
11854
|
-
onAccountsFilterClick: () => C(
|
|
11862
|
+
onAccountsFilterClick: () => C(k.ACCOUNTS_CLICK_FILTER),
|
|
11855
11863
|
onBackClick: A,
|
|
11856
11864
|
sx: e,
|
|
11857
11865
|
title: c.title,
|
|
@@ -11896,7 +11904,7 @@ const Ln = ({
|
|
|
11896
11904
|
shouldShowConnectionStatus: !0
|
|
11897
11905
|
}
|
|
11898
11906
|
),
|
|
11899
|
-
!h && /* @__PURE__ */ t(
|
|
11907
|
+
!h && /* @__PURE__ */ t(q, { "aria-hidden": "true", variant: "inset" })
|
|
11900
11908
|
] }, `account-item${c}`);
|
|
11901
11909
|
})
|
|
11902
11910
|
] })
|
|
@@ -12731,7 +12739,7 @@ const ag = ({
|
|
|
12731
12739
|
}, Gi = T(
|
|
12732
12740
|
({ height: A, isDraggable: e = !1, shouldShowZeroState: n, unavailableWidth: r = 24 }) => {
|
|
12733
12741
|
const { onEvent: a } = V(), { setSelectedBudget: i } = kA(), { isLoadingCategoryTotals: o } = PA(), { isInitialized: s } = fA(), { availableWidth: c } = ot(), { isMobile: h } = MA(), d = g.useMemo(() => c - r, [c]), u = (C) => {
|
|
12734
|
-
i(C), a(
|
|
12742
|
+
i(C), a(k.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
12735
12743
|
budget_category: C.category.name,
|
|
12736
12744
|
click_type: "bubble"
|
|
12737
12745
|
});
|
|
@@ -12796,7 +12804,7 @@ const ag = ({
|
|
|
12796
12804
|
] }) });
|
|
12797
12805
|
}, lg = T(() => {
|
|
12798
12806
|
const { onEvent: A } = V(), { budgets: e } = I(), { detailedBudgets: n, setSelectedBudget: r } = kA(), a = (i) => {
|
|
12799
|
-
r(i), A(
|
|
12807
|
+
r(i), A(k.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
12800
12808
|
budget_category: i.category.name,
|
|
12801
12809
|
click_type: "list"
|
|
12802
12810
|
});
|
|
@@ -12805,26 +12813,26 @@ const ag = ({
|
|
|
12805
12813
|
/* @__PURE__ */ t(We, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(xt, { children: e.budget_categories_title }) }),
|
|
12806
12814
|
/* @__PURE__ */ t(De, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(nA, { children: n.map((i) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
12807
12815
|
/* @__PURE__ */ t(cg, { budget: i, onClick: a }),
|
|
12808
|
-
/* @__PURE__ */ t(
|
|
12816
|
+
/* @__PURE__ */ t(q, {})
|
|
12809
12817
|
] }, i.guid)) }) })
|
|
12810
12818
|
] });
|
|
12811
12819
|
}), dg = T(() => {
|
|
12812
12820
|
const A = CA(), { onEvent: e } = V(), { accounts: n } = TA(), { budgets: r, common: a, recurring: i } = I(), { incomeCategories: o, spendCategories: s } = PA(), { detailedBudgets: c, totalBudgeted: h } = kA(), { projectedIncome: d } = HA(), { setFilter: u } = uA(), [C, f] = g.useState(!1), [m, v] = g.useMemo(() => {
|
|
12813
|
-
const w = s.reduce((x,
|
|
12821
|
+
const w = s.reduce((x, R) => x + R.totalAmount, 0);
|
|
12814
12822
|
let D = w / h;
|
|
12815
12823
|
D > 1 && (D = 1);
|
|
12816
12824
|
let P = A.palette.success.main;
|
|
12817
12825
|
D > 0.8 && D < 1 ? P = A.palette.warning.main : D >= 1 && (P = A.palette.error.main);
|
|
12818
|
-
const
|
|
12826
|
+
const N = [
|
|
12819
12827
|
{
|
|
12820
12828
|
color: P,
|
|
12821
12829
|
percentage: `${D}`
|
|
12822
12830
|
}
|
|
12823
12831
|
];
|
|
12824
|
-
return [w,
|
|
12832
|
+
return [w, N];
|
|
12825
12833
|
}, [c, s]), [E, S] = g.useMemo(() => {
|
|
12826
12834
|
const w = Math.abs(
|
|
12827
|
-
o.reduce((
|
|
12835
|
+
o.reduce((N, x) => N + x.totalAmount, 0)
|
|
12828
12836
|
);
|
|
12829
12837
|
let D = w / d;
|
|
12830
12838
|
D > 1 && (D = 1);
|
|
@@ -12842,7 +12850,7 @@ const ag = ({
|
|
|
12842
12850
|
start: de(/* @__PURE__ */ new Date(), 90),
|
|
12843
12851
|
end: /* @__PURE__ */ new Date()
|
|
12844
12852
|
}
|
|
12845
|
-
}), f(!0), e(
|
|
12853
|
+
}), f(!0), e(k.BUDGETS_CLICK_EDIT_INCOME);
|
|
12846
12854
|
};
|
|
12847
12855
|
return /* @__PURE__ */ l(ve, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
|
|
12848
12856
|
/* @__PURE__ */ t(We, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(xt, { children: r.overview_title }) }),
|
|
@@ -12850,7 +12858,7 @@ const ag = ({
|
|
|
12850
12858
|
/* @__PURE__ */ l(y, { gap: 8, children: [
|
|
12851
12859
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: r.spending_title }),
|
|
12852
12860
|
/* @__PURE__ */ t(Lt, { data: v, height: 16 }),
|
|
12853
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
12861
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: _(
|
|
12854
12862
|
r.spending_description,
|
|
12855
12863
|
z(m, "0,0"),
|
|
12856
12864
|
z(h, "0,0")
|
|
@@ -12870,7 +12878,7 @@ const ag = ({
|
|
|
12870
12878
|
)
|
|
12871
12879
|
] }),
|
|
12872
12880
|
/* @__PURE__ */ t(Lt, { data: S, height: 16 }),
|
|
12873
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
12881
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: _(
|
|
12874
12882
|
r.income_description,
|
|
12875
12883
|
z(E, "0,0"),
|
|
12876
12884
|
z(d, "0,0")
|
|
@@ -12912,7 +12920,7 @@ const ag = ({
|
|
|
12912
12920
|
}), hg = T(
|
|
12913
12921
|
({ category: A }) => {
|
|
12914
12922
|
const { budgets: e } = I(), { budgets: n } = kA(), r = g.useMemo(() => {
|
|
12915
|
-
const a = n.find((s) => s.category_guid === A.guid), i = z(A.totalAverageAmount, "0,0"), o = a ?
|
|
12923
|
+
const a = n.find((s) => s.category_guid === A.guid), i = z(A.totalAverageAmount, "0,0"), o = a ? _(e.recalculate_previous_budget, z(a.amount, "0,0")) : e.recalculate_new_budget;
|
|
12916
12924
|
return `${i} - ${o}`;
|
|
12917
12925
|
}, [e, n]);
|
|
12918
12926
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -12920,7 +12928,7 @@ const ag = ({
|
|
|
12920
12928
|
/* @__PURE__ */ t(OA, { children: /* @__PURE__ */ t(ne, { categoryGuid: A.guid, variant: "filled" }) }),
|
|
12921
12929
|
/* @__PURE__ */ t(tA, { primary: A.name, secondary: r })
|
|
12922
12930
|
] }) }),
|
|
12923
|
-
/* @__PURE__ */ t(
|
|
12931
|
+
/* @__PURE__ */ t(q, {})
|
|
12924
12932
|
] }, A.guid);
|
|
12925
12933
|
}
|
|
12926
12934
|
), gg = ({ onRecalculateBudgets: A }) => {
|
|
@@ -12956,11 +12964,11 @@ const ag = ({
|
|
|
12956
12964
|
const { budgets: r } = I(), { totalBudgeted: a } = kA(), { projectedIncome: i } = HA(), o = i - a;
|
|
12957
12965
|
return /* @__PURE__ */ l(y, { gap: 16, children: [
|
|
12958
12966
|
/* @__PURE__ */ l(y, { children: [
|
|
12959
|
-
/* @__PURE__ */ t(p, { children:
|
|
12967
|
+
/* @__PURE__ */ t(p, { children: _(
|
|
12960
12968
|
r.add_description_top,
|
|
12961
12969
|
z(o, "0,0")
|
|
12962
12970
|
) }),
|
|
12963
|
-
/* @__PURE__ */ t(p, { children:
|
|
12971
|
+
/* @__PURE__ */ t(p, { children: _(r.add_description_bottom, e) })
|
|
12964
12972
|
] }),
|
|
12965
12973
|
/* @__PURE__ */ t(
|
|
12966
12974
|
sn,
|
|
@@ -13005,7 +13013,7 @@ const ag = ({
|
|
|
13005
13013
|
] });
|
|
13006
13014
|
}), fg = T(({ onRecalculateBudgets: A }) => {
|
|
13007
13015
|
const { budgets: e } = I(), { addBudget: n, setAlert: r, unbudgetedCategories: a } = kA(), i = async (o, s) => {
|
|
13008
|
-
await n(o, s), r(
|
|
13016
|
+
await n(o, s), r(_(e.alert_budget_created, o.name));
|
|
13009
13017
|
};
|
|
13010
13018
|
return /* @__PURE__ */ l(y, { children: [
|
|
13011
13019
|
/* @__PURE__ */ t(ug, {}),
|
|
@@ -13088,7 +13096,7 @@ const ag = ({
|
|
|
13088
13096
|
] }),
|
|
13089
13097
|
/* @__PURE__ */ t(M, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
|
13090
13098
|
] }) }) }) }),
|
|
13091
|
-
/* @__PURE__ */ t(
|
|
13099
|
+
/* @__PURE__ */ t(q, {}),
|
|
13092
13100
|
/* @__PURE__ */ t(
|
|
13093
13101
|
lA,
|
|
13094
13102
|
{
|
|
@@ -13144,7 +13152,7 @@ const ag = ({
|
|
|
13144
13152
|
/* @__PURE__ */ l(nA, { sx: { bgcolor: "background.paper" }, children: [
|
|
13145
13153
|
n.length === 0 ? /* @__PURE__ */ t(mg, {}) : n.map((D) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
13146
13154
|
/* @__PURE__ */ t(pg, { budget: D }),
|
|
13147
|
-
/* @__PURE__ */ t(
|
|
13155
|
+
/* @__PURE__ */ t(q, {})
|
|
13148
13156
|
] }, D.guid)),
|
|
13149
13157
|
/* @__PURE__ */ t(vg, { category: e, parentBudget: A })
|
|
13150
13158
|
] }),
|
|
@@ -13195,7 +13203,7 @@ const ag = ({
|
|
|
13195
13203
|
primaryColor: "error",
|
|
13196
13204
|
primaryText: "Delete",
|
|
13197
13205
|
secondaryColor: "secondary",
|
|
13198
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
13206
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: _(r.delete_description, o.category.name) })
|
|
13199
13207
|
}
|
|
13200
13208
|
)
|
|
13201
13209
|
] })
|
|
@@ -13264,7 +13272,7 @@ const ag = ({
|
|
|
13264
13272
|
i && !o && (L(`${i.amount}`), C(!0), d({
|
|
13265
13273
|
accounts: A,
|
|
13266
13274
|
dateRange: r,
|
|
13267
|
-
custom: (
|
|
13275
|
+
custom: (N) => N.category_guid === i.category_guid || N.top_level_category_guid === i.category_guid
|
|
13268
13276
|
}));
|
|
13269
13277
|
}, [i]);
|
|
13270
13278
|
const w = async () => {
|
|
@@ -13272,9 +13280,9 @@ const ag = ({
|
|
|
13272
13280
|
...i,
|
|
13273
13281
|
amount: Number(S),
|
|
13274
13282
|
percentage: i.category.totalAmount / Number(S) * 100
|
|
13275
|
-
}), s(
|
|
13283
|
+
}), s(_(e.alert_budget_updated, i.category.name)));
|
|
13276
13284
|
}, D = async () => {
|
|
13277
|
-
i && (await a(i.guid), s(
|
|
13285
|
+
i && (await a(i.guid), s(_(e.alert_budget_deleted, i.category.name))), E(!1), P();
|
|
13278
13286
|
}, P = () => {
|
|
13279
13287
|
C(!1), setTimeout(() => {
|
|
13280
13288
|
c(void 0);
|
|
@@ -13326,25 +13334,25 @@ const ag = ({
|
|
|
13326
13334
|
primaryColor: "error",
|
|
13327
13335
|
primaryText: e.details_delete_button,
|
|
13328
13336
|
secondaryColor: "secondary",
|
|
13329
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
13337
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: _(e.delete_description, i.category.name) })
|
|
13330
13338
|
}
|
|
13331
13339
|
)
|
|
13332
13340
|
] });
|
|
13333
13341
|
}), Ta = 480, lf = T(({ onBackClick: A, sx: e }) => {
|
|
13334
|
-
const n = CA(), { onEvent: r } = V(), { accounts: a } = TA(), { budgets: i, common: o } = I(), { isInitialized: s, selectedAccounts: c, setDisplayedDate: h, setSelectedAccounts: d } = fA(), { alert: u, dateRange: C, loadBudgets: f, setDateRange: m, setAlert: v, setTheme: E } = kA(), { loadCashflowSequences: S } = HA(), { isDesktop: L, isTablet: w } = MA(), { reloadCategoryTotals: D } = PA(), [P,
|
|
13342
|
+
const n = CA(), { onEvent: r } = V(), { accounts: a } = TA(), { budgets: i, common: o } = I(), { isInitialized: s, selectedAccounts: c, setDisplayedDate: h, setSelectedAccounts: d } = fA(), { alert: u, dateRange: C, loadBudgets: f, setDateRange: m, setAlert: v, setTheme: E } = kA(), { loadCashflowSequences: S } = HA(), { isDesktop: L, isTablet: w } = MA(), { reloadCategoryTotals: D } = PA(), [P, N] = g.useState(!1), [x, R] = g.useState(!1);
|
|
13335
13343
|
g.useEffect(() => {
|
|
13336
|
-
E(n), d(a), h(C.start, C.end), r(
|
|
13344
|
+
E(n), d(a), h(C.start, C.end), r(k.BUDGETS_VIEW);
|
|
13337
13345
|
}, []), g.useEffect(() => {
|
|
13338
|
-
s && (D(c, C.start, C.end).finally(), P || (S().finally(), f().finally(() =>
|
|
13346
|
+
s && (D(c, C.start, C.end).finally(), P || (S().finally(), f().finally(() => N(!0))));
|
|
13339
13347
|
}, [s, c, C]);
|
|
13340
|
-
const
|
|
13348
|
+
const j = (rA) => {
|
|
13341
13349
|
m({ start: rA[0] || /* @__PURE__ */ new Date(), end: rA[1] || /* @__PURE__ */ new Date() });
|
|
13342
|
-
},
|
|
13343
|
-
r(
|
|
13344
|
-
},
|
|
13345
|
-
|
|
13350
|
+
}, F = () => {
|
|
13351
|
+
r(k.BUDGETS_CLICK_FILTER);
|
|
13352
|
+
}, X = () => {
|
|
13353
|
+
R(!0), r(k.BUDGETS_CLICK_ADD);
|
|
13346
13354
|
}, Q = () => {
|
|
13347
|
-
|
|
13355
|
+
R(!1);
|
|
13348
13356
|
}, U = nt(C.end, yA(/* @__PURE__ */ new Date()));
|
|
13349
13357
|
return !s || !P ? /* @__PURE__ */ t(QA, {}) : /* @__PURE__ */ l(
|
|
13350
13358
|
ue,
|
|
@@ -13354,11 +13362,11 @@ const ag = ({
|
|
|
13354
13362
|
{
|
|
13355
13363
|
iconName: "add",
|
|
13356
13364
|
label: i.add_title,
|
|
13357
|
-
onClick:
|
|
13365
|
+
onClick: X
|
|
13358
13366
|
}
|
|
13359
13367
|
],
|
|
13360
|
-
calendarActions: { onRangeChanged:
|
|
13361
|
-
onAccountsFilterClick:
|
|
13368
|
+
calendarActions: { onRangeChanged: j, shouldDisableNext: U },
|
|
13369
|
+
onAccountsFilterClick: F,
|
|
13362
13370
|
onBackClick: A,
|
|
13363
13371
|
sx: e,
|
|
13364
13372
|
title: i.budgets_title,
|
|
@@ -13394,7 +13402,7 @@ const ag = ({
|
|
|
13394
13402
|
{
|
|
13395
13403
|
ariaLabelClose: o.close_aria,
|
|
13396
13404
|
isOpen: x,
|
|
13397
|
-
onClose: () =>
|
|
13405
|
+
onClose: () => R(!1),
|
|
13398
13406
|
title: i.add_new_title,
|
|
13399
13407
|
children: /* @__PURE__ */ t(fg, { onRecalculateBudgets: Q })
|
|
13400
13408
|
}
|
|
@@ -13544,7 +13552,7 @@ const wg = () => {
|
|
|
13544
13552
|
),
|
|
13545
13553
|
/* @__PURE__ */ t(Fn, { checked: !u.is_hidden })
|
|
13546
13554
|
] }) }),
|
|
13547
|
-
/* @__PURE__ */ t(
|
|
13555
|
+
/* @__PURE__ */ t(q, { sx: { ml: C < A.length - 1 ? 24 : 0 } })
|
|
13548
13556
|
] }, u.guid)),
|
|
13549
13557
|
/* @__PURE__ */ l(
|
|
13550
13558
|
DA,
|
|
@@ -13597,7 +13605,7 @@ const wg = () => {
|
|
|
13597
13605
|
),
|
|
13598
13606
|
/* @__PURE__ */ t(Ps, { sx: { fontSize: 22 } })
|
|
13599
13607
|
] }) }),
|
|
13600
|
-
/* @__PURE__ */ t(
|
|
13608
|
+
/* @__PURE__ */ t(q, {})
|
|
13601
13609
|
] });
|
|
13602
13610
|
}, uf = ({ content: A, manageAccountsStore: e }) => {
|
|
13603
13611
|
const { groupedAccounts: n, toggleAccount: r } = e, [a, i] = g.useState(!1);
|
|
@@ -13628,7 +13636,7 @@ const wg = () => {
|
|
|
13628
13636
|
},
|
|
13629
13637
|
title: A.manage_accounts,
|
|
13630
13638
|
children: [
|
|
13631
|
-
/* @__PURE__ */ t(
|
|
13639
|
+
/* @__PURE__ */ t(q, {}),
|
|
13632
13640
|
/* @__PURE__ */ t(nA, { sx: { height: "100%" }, children: n.map(({ accountType: o, accounts: s, title: c }) => /* @__PURE__ */ t(
|
|
13633
13641
|
Lg,
|
|
13634
13642
|
{
|
|
@@ -13775,8 +13783,8 @@ const Ui = ({
|
|
|
13775
13783
|
}, [f, a, c, d]);
|
|
13776
13784
|
const m = (w) => {
|
|
13777
13785
|
const { name: D, checked: P } = w.target;
|
|
13778
|
-
d((
|
|
13779
|
-
...
|
|
13786
|
+
d((N) => ({
|
|
13787
|
+
...N,
|
|
13780
13788
|
[D]: P
|
|
13781
13789
|
}));
|
|
13782
13790
|
}, v = Object.values(h).filter(Boolean).length, E = () => {
|
|
@@ -13811,7 +13819,7 @@ const Ui = ({
|
|
|
13811
13819
|
},
|
|
13812
13820
|
title: o.replace(/&/g, "&"),
|
|
13813
13821
|
children: [
|
|
13814
|
-
/* @__PURE__ */ t(
|
|
13822
|
+
/* @__PURE__ */ t(q, {}),
|
|
13815
13823
|
/* @__PURE__ */ t(O, { px: 24, py: 16, children: /* @__PURE__ */ t(
|
|
13816
13824
|
p,
|
|
13817
13825
|
{
|
|
@@ -13824,7 +13832,7 @@ const Ui = ({
|
|
|
13824
13832
|
children: A.select_insights_for_feed
|
|
13825
13833
|
}
|
|
13826
13834
|
) }),
|
|
13827
|
-
/* @__PURE__ */ t(
|
|
13835
|
+
/* @__PURE__ */ t(q, {}),
|
|
13828
13836
|
/* @__PURE__ */ l(y, { height: "calc(100vh - 142px)", children: [
|
|
13829
13837
|
/* @__PURE__ */ t(
|
|
13830
13838
|
nA,
|
|
@@ -13895,7 +13903,7 @@ const Ui = ({
|
|
|
13895
13903
|
]
|
|
13896
13904
|
}
|
|
13897
13905
|
) }),
|
|
13898
|
-
/* @__PURE__ */ t(
|
|
13906
|
+
/* @__PURE__ */ t(q, { sx: { ml: D < e.length - 1 ? 24 : 0 } })
|
|
13899
13907
|
] }, D))
|
|
13900
13908
|
}
|
|
13901
13909
|
),
|
|
@@ -14021,16 +14029,16 @@ const Ui = ({
|
|
|
14021
14029
|
me(() => {
|
|
14022
14030
|
P && !i && (a ? d(A.something_went_wrong, "error") : d(void 0, "success"));
|
|
14023
14031
|
}, [P, a]);
|
|
14024
|
-
const
|
|
14032
|
+
const N = () => {
|
|
14025
14033
|
C(
|
|
14026
14034
|
n.length > 1 ? A.insights_unhidden : A.insight_unhidden
|
|
14027
|
-
), r(n.map((
|
|
14028
|
-
}, x = (
|
|
14029
|
-
E(!0), L(
|
|
14030
|
-
},
|
|
14035
|
+
), r(n.map((F) => F.name));
|
|
14036
|
+
}, x = (F, X) => {
|
|
14037
|
+
E(!0), L(F), D(X);
|
|
14038
|
+
}, R = () => {
|
|
14031
14039
|
E(!1), D(""), L("");
|
|
14032
|
-
},
|
|
14033
|
-
r(
|
|
14040
|
+
}, j = (F, X) => {
|
|
14041
|
+
r(F), X && E(!1), C(F.length > 1 ? A.insights_unhidden : A.insight_unhidden);
|
|
14034
14042
|
};
|
|
14035
14043
|
return /* @__PURE__ */ l(eA, { children: [
|
|
14036
14044
|
/* @__PURE__ */ t(
|
|
@@ -14056,31 +14064,31 @@ const Ui = ({
|
|
|
14056
14064
|
},
|
|
14057
14065
|
title: A.manage_hidden_insights,
|
|
14058
14066
|
children: [
|
|
14059
|
-
/* @__PURE__ */ t(
|
|
14067
|
+
/* @__PURE__ */ t(q, {}),
|
|
14060
14068
|
/* @__PURE__ */ l(y, { height: "calc(100vh - 61px)", children: [
|
|
14061
14069
|
n.length > 0 ? /* @__PURE__ */ t(nA, { sx: { height: "100%" }, children: o.map(
|
|
14062
|
-
(
|
|
14070
|
+
(F) => s[F.key] !== "" && /* @__PURE__ */ t(
|
|
14063
14071
|
nA,
|
|
14064
14072
|
{
|
|
14065
|
-
subheader: /* @__PURE__ */ t(vr, { children: s[
|
|
14066
|
-
children:
|
|
14067
|
-
(
|
|
14073
|
+
subheader: /* @__PURE__ */ t(vr, { children: s[F.key] }),
|
|
14074
|
+
children: F.subcategories.map(
|
|
14075
|
+
(X, Q) => X.beats.length > 0 && /* @__PURE__ */ l(O, { children: [
|
|
14068
14076
|
/* @__PURE__ */ t(Y, { disablePadding: !0, children: /* @__PURE__ */ l(
|
|
14069
14077
|
dA,
|
|
14070
14078
|
{
|
|
14071
|
-
onClick: () => x(
|
|
14079
|
+
onClick: () => x(F.key, X.key),
|
|
14072
14080
|
children: [
|
|
14073
14081
|
/* @__PURE__ */ t(
|
|
14074
14082
|
tA,
|
|
14075
14083
|
{
|
|
14076
|
-
primary: c[
|
|
14084
|
+
primary: c[X.key].replace(
|
|
14077
14085
|
/&/g,
|
|
14078
14086
|
"&"
|
|
14079
14087
|
),
|
|
14080
14088
|
secondary: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
14081
|
-
|
|
14089
|
+
X.beats.length,
|
|
14082
14090
|
" ",
|
|
14083
|
-
|
|
14091
|
+
X.beats.length > 1 ? A.insights_hidden : A.insight_hidden
|
|
14084
14092
|
] })
|
|
14085
14093
|
}
|
|
14086
14094
|
),
|
|
@@ -14089,15 +14097,15 @@ const Ui = ({
|
|
|
14089
14097
|
}
|
|
14090
14098
|
) }),
|
|
14091
14099
|
/* @__PURE__ */ t(
|
|
14092
|
-
|
|
14100
|
+
q,
|
|
14093
14101
|
{
|
|
14094
|
-
sx: { ml: Q <
|
|
14102
|
+
sx: { ml: Q < F.subcategories.length - 1 ? 24 : 0 }
|
|
14095
14103
|
}
|
|
14096
14104
|
)
|
|
14097
|
-
] },
|
|
14105
|
+
] }, X.key)
|
|
14098
14106
|
)
|
|
14099
14107
|
},
|
|
14100
|
-
|
|
14108
|
+
F.key
|
|
14101
14109
|
)
|
|
14102
14110
|
) }) : /* @__PURE__ */ t(xg, { content: A }),
|
|
14103
14111
|
/* @__PURE__ */ l(O, { boxSizing: "border-box", pb: 32, pt: 24, px: 24, children: [
|
|
@@ -14107,7 +14115,7 @@ const Ui = ({
|
|
|
14107
14115
|
color: "primary",
|
|
14108
14116
|
fullWidth: !0,
|
|
14109
14117
|
loading: i,
|
|
14110
|
-
onClick:
|
|
14118
|
+
onClick: N,
|
|
14111
14119
|
variant: "contained",
|
|
14112
14120
|
children: A.show_all_hidden_insights
|
|
14113
14121
|
}
|
|
@@ -14132,11 +14140,11 @@ const Ui = ({
|
|
|
14132
14140
|
Pg,
|
|
14133
14141
|
{
|
|
14134
14142
|
content: A,
|
|
14135
|
-
disabledBeatTemplates: w !== "" ? o.filter((
|
|
14136
|
-
handleEnableBeatTemplates:
|
|
14143
|
+
disabledBeatTemplates: w !== "" ? o.filter((F) => F.key === S)[0].subcategories.filter((F) => F.key === w)[0].beats : [],
|
|
14144
|
+
handleEnableBeatTemplates: j,
|
|
14137
14145
|
isOpen: v,
|
|
14138
14146
|
isUpdateLoading: i,
|
|
14139
|
-
onClose:
|
|
14147
|
+
onClose: R,
|
|
14140
14148
|
translatedSubCatetgory: c[w]
|
|
14141
14149
|
}
|
|
14142
14150
|
)
|
|
@@ -14168,7 +14176,7 @@ const Ui = ({
|
|
|
14168
14176
|
shouldShowHeaderBorders: !1,
|
|
14169
14177
|
title: e.settings,
|
|
14170
14178
|
children: /* @__PURE__ */ l(nA, { children: [
|
|
14171
|
-
/* @__PURE__ */ t(
|
|
14179
|
+
/* @__PURE__ */ t(q, {}),
|
|
14172
14180
|
A
|
|
14173
14181
|
] })
|
|
14174
14182
|
}
|
|
@@ -15430,7 +15438,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15430
15438
|
top: 0,
|
|
15431
15439
|
behavior: "smooth"
|
|
15432
15440
|
});
|
|
15433
|
-
},
|
|
15441
|
+
}, N = () => {
|
|
15434
15442
|
D(oe.ON_CAROUSEL_BACK_CLICK), C.current && C.current.scrollTo({
|
|
15435
15443
|
left: (C.current.offsetWidth + 8) * (Math.floor(f / (C.current.offsetWidth + 8)) - 1),
|
|
15436
15444
|
top: 0,
|
|
@@ -15438,14 +15446,14 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15438
15446
|
});
|
|
15439
15447
|
}, x = () => {
|
|
15440
15448
|
C.current && m(C.current.scrollLeft);
|
|
15441
|
-
},
|
|
15449
|
+
}, R = () => {
|
|
15442
15450
|
if (!S || !v) return;
|
|
15443
15451
|
S - v > Jg ? D(oe.ON_CAROUSEL_FORWARD_SWIPE) : D(oe.ON_CAROUSEL_BACK_SWIPE);
|
|
15444
|
-
},
|
|
15452
|
+
}, j = (rA) => {
|
|
15445
15453
|
E(rA.targetTouches[0].clientX);
|
|
15446
|
-
},
|
|
15454
|
+
}, F = (rA) => {
|
|
15447
15455
|
E(null), L(rA.targetTouches[0].clientX);
|
|
15448
|
-
},
|
|
15456
|
+
}, X = {
|
|
15449
15457
|
clientColorScheme: e,
|
|
15450
15458
|
showCTAColocatedWithText: n,
|
|
15451
15459
|
heightOverrides: r,
|
|
@@ -15459,15 +15467,15 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15459
15467
|
{
|
|
15460
15468
|
className: "mx-insights-micro-carousel-container",
|
|
15461
15469
|
onScroll: x,
|
|
15462
|
-
onTouchEnd:
|
|
15463
|
-
onTouchMove:
|
|
15464
|
-
onTouchStart:
|
|
15470
|
+
onTouchEnd: R,
|
|
15471
|
+
onTouchMove: j,
|
|
15472
|
+
onTouchStart: F,
|
|
15465
15473
|
ref: C,
|
|
15466
15474
|
children: [
|
|
15467
15475
|
A.map((rA, gA) => /* @__PURE__ */ t(
|
|
15468
15476
|
$g,
|
|
15469
15477
|
{
|
|
15470
|
-
ariaLabel:
|
|
15478
|
+
ariaLabel: _(
|
|
15471
15479
|
w.card_position_in_carousel_aria,
|
|
15472
15480
|
gA + 1,
|
|
15473
15481
|
A.length + 1
|
|
@@ -15477,7 +15485,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15477
15485
|
isActiveCard: gA === Q,
|
|
15478
15486
|
onCardClick: a,
|
|
15479
15487
|
posthog: i,
|
|
15480
|
-
...
|
|
15488
|
+
...X
|
|
15481
15489
|
},
|
|
15482
15490
|
`${rA.guid} ${gA}`
|
|
15483
15491
|
)),
|
|
@@ -15486,7 +15494,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15486
15494
|
{
|
|
15487
15495
|
isActiveCard: Q === A.length,
|
|
15488
15496
|
onCardClick: a,
|
|
15489
|
-
...
|
|
15497
|
+
...X
|
|
15490
15498
|
}
|
|
15491
15499
|
)
|
|
15492
15500
|
]
|
|
@@ -15499,7 +15507,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15499
15507
|
currentBeatIndex: Q,
|
|
15500
15508
|
numBeats: A.length + 1,
|
|
15501
15509
|
onNextClick: P,
|
|
15502
|
-
onPreviousClick:
|
|
15510
|
+
onPreviousClick: N,
|
|
15503
15511
|
scrollRightBoundary: U,
|
|
15504
15512
|
scrollX: f
|
|
15505
15513
|
}
|
|
@@ -15553,7 +15561,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15553
15561
|
g.useEffect(() => {
|
|
15554
15562
|
v && v <= 325 && L(3), v && v > 325 && L(2);
|
|
15555
15563
|
}, [v]);
|
|
15556
|
-
const { cardStyle: w, linkTextStyle: D } = u, P = m ? w : { border: "none", boxShadow: "none", ...w },
|
|
15564
|
+
const { cardStyle: w, linkTextStyle: D } = u, P = m ? w : { border: "none", boxShadow: "none", ...w }, N = aC(
|
|
15557
15565
|
P,
|
|
15558
15566
|
a,
|
|
15559
15567
|
C,
|
|
@@ -15565,7 +15573,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15565
15573
|
"li",
|
|
15566
15574
|
{
|
|
15567
15575
|
"aria-hidden": !c,
|
|
15568
|
-
className:
|
|
15576
|
+
className: N,
|
|
15569
15577
|
onClick: () => h(),
|
|
15570
15578
|
ref: E,
|
|
15571
15579
|
role: "button",
|
|
@@ -15763,16 +15771,16 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15763
15771
|
variant: w,
|
|
15764
15772
|
widthOverrides: D
|
|
15765
15773
|
}) => {
|
|
15766
|
-
const [P,
|
|
15774
|
+
const [P, N] = Ce("STANDARD"), [x, R] = Ce(!1), j = cc([c], ye), F = lc([h], ye);
|
|
15767
15775
|
g.useEffect(() => {
|
|
15768
15776
|
ye.isInitialized || ye.initialize(a, E, o);
|
|
15769
15777
|
}, [a, E, o, ye.isInitialized]), g.useEffect(() => {
|
|
15770
15778
|
const U = window.innerHeight;
|
|
15771
|
-
U < 180 ?
|
|
15779
|
+
U < 180 ? N("STANDARD") : U >= 180 && U < 200 ? N("LARGE") : U >= 200 && U < 248 ? N("XLARGE") : U >= 248 && N("XXLARGE");
|
|
15772
15780
|
}, [window.innerHeight]), g.useEffect(() => {
|
|
15773
|
-
|
|
15781
|
+
R(!A && ye.isInitialized);
|
|
15774
15782
|
}, [A, ye.isInitialized]);
|
|
15775
|
-
const
|
|
15783
|
+
const X = {
|
|
15776
15784
|
showCTAColocatedWithText: r,
|
|
15777
15785
|
heightOverrides: i,
|
|
15778
15786
|
onCardClick: s,
|
|
@@ -15784,13 +15792,13 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15784
15792
|
carouselSize: P,
|
|
15785
15793
|
posthog: d,
|
|
15786
15794
|
variant: w,
|
|
15787
|
-
...
|
|
15795
|
+
...X
|
|
15788
15796
|
};
|
|
15789
15797
|
return (
|
|
15790
15798
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
15791
15799
|
/* @__PURE__ */ l(Do, { theme: go(S ? "dark" : "light"), children: [
|
|
15792
15800
|
/* @__PURE__ */ t(zs, {}),
|
|
15793
|
-
/* @__PURE__ */ t(Gg, { onEvent:
|
|
15801
|
+
/* @__PURE__ */ t(Gg, { onEvent: j, onPageview: F, store: ye, children: /* @__PURE__ */ l(
|
|
15794
15802
|
O,
|
|
15795
15803
|
{
|
|
15796
15804
|
sx: {
|
|
@@ -15817,7 +15825,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
15817
15825
|
clientColorScheme: n,
|
|
15818
15826
|
showCarouselControls: C,
|
|
15819
15827
|
variant: u ? w : void 0,
|
|
15820
|
-
...
|
|
15828
|
+
...X
|
|
15821
15829
|
}
|
|
15822
15830
|
),
|
|
15823
15831
|
x && !e.length && L && /* @__PURE__ */ t(dC, { clientColorScheme: n, ...Q }),
|
|
@@ -16236,7 +16244,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16236
16244
|
const { spending: a } = I(), i = A.categoryData.find((o) => o.guid === n);
|
|
16237
16245
|
return /* @__PURE__ */ l(y, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
|
|
16238
16246
|
/* @__PURE__ */ t(p, { bold: !0, sx: { py: 12 }, children: `${r} ${a.by_category}` }),
|
|
16239
|
-
/* @__PURE__ */ t(
|
|
16247
|
+
/* @__PURE__ */ t(q, { "aria-hidden": "true" }),
|
|
16240
16248
|
/* @__PURE__ */ t(nA, { children: A.categoryData.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
16241
16249
|
/* @__PURE__ */ t(
|
|
16242
16250
|
Y,
|
|
@@ -16281,7 +16289,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16281
16289
|
)
|
|
16282
16290
|
}
|
|
16283
16291
|
),
|
|
16284
|
-
/* @__PURE__ */ t(
|
|
16292
|
+
/* @__PURE__ */ t(q, {}),
|
|
16285
16293
|
o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(Qn, { in: i?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(nA, { children: [
|
|
16286
16294
|
i?.categoryTotals?.map((s) => /* @__PURE__ */ t(
|
|
16287
16295
|
Y,
|
|
@@ -16301,7 +16309,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16301
16309
|
},
|
|
16302
16310
|
s.guid
|
|
16303
16311
|
)),
|
|
16304
|
-
/* @__PURE__ */ t(
|
|
16312
|
+
/* @__PURE__ */ t(q, {})
|
|
16305
16313
|
] }) })
|
|
16306
16314
|
] }, o.guid)) }),
|
|
16307
16315
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${a.total}: ${z(A.totalAmount, "0,0")}` })
|
|
@@ -16379,33 +16387,33 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16379
16387
|
() => no(e, n, SC(A)),
|
|
16380
16388
|
[e, n]
|
|
16381
16389
|
), D = g.useMemo(
|
|
16382
|
-
() => h.find((
|
|
16390
|
+
() => h.find((R) => R.guid === m),
|
|
16383
16391
|
[m]
|
|
16384
|
-
), P = (
|
|
16385
|
-
f(
|
|
16386
|
-
},
|
|
16387
|
-
u(d ===
|
|
16388
|
-
}, x = (
|
|
16389
|
-
const
|
|
16392
|
+
), P = (R, j) => {
|
|
16393
|
+
f(j), u("");
|
|
16394
|
+
}, N = (R) => {
|
|
16395
|
+
u(d === R || R === "0" ? "" : R);
|
|
16396
|
+
}, x = (R) => {
|
|
16397
|
+
const j = {
|
|
16390
16398
|
accounts: s,
|
|
16391
16399
|
dateRange: i
|
|
16392
16400
|
};
|
|
16393
16401
|
if (C === 0)
|
|
16394
|
-
if (
|
|
16395
|
-
const
|
|
16402
|
+
if (R === "other") {
|
|
16403
|
+
const F = L.categoryData.find((X) => X.guid === "other");
|
|
16396
16404
|
c({
|
|
16397
|
-
...
|
|
16398
|
-
custom: (
|
|
16405
|
+
...j,
|
|
16406
|
+
custom: (X) => !!F?.categoryTotals?.find((Q) => Q.guid === X.top_level_category_guid)
|
|
16399
16407
|
});
|
|
16400
16408
|
} else
|
|
16401
16409
|
c({
|
|
16402
|
-
...
|
|
16403
|
-
custom: (
|
|
16410
|
+
...j,
|
|
16411
|
+
custom: (F) => R ? F.top_level_category_guid === R : F.top_level_category_guid !== b.INCOME
|
|
16404
16412
|
});
|
|
16405
16413
|
else
|
|
16406
16414
|
c({
|
|
16407
|
-
...
|
|
16408
|
-
custom: (
|
|
16415
|
+
...j,
|
|
16416
|
+
custom: (F) => R ? F.category_guid === R : F.top_level_category_guid === b.INCOME
|
|
16409
16417
|
});
|
|
16410
16418
|
S(!0);
|
|
16411
16419
|
};
|
|
@@ -16440,7 +16448,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16440
16448
|
Ma,
|
|
16441
16449
|
{
|
|
16442
16450
|
data: L,
|
|
16443
|
-
onSelected:
|
|
16451
|
+
onSelected: N,
|
|
16444
16452
|
onViewTransactions: x,
|
|
16445
16453
|
selectedId: d,
|
|
16446
16454
|
title: a.spend_tab_title
|
|
@@ -16450,7 +16458,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16450
16458
|
Ma,
|
|
16451
16459
|
{
|
|
16452
16460
|
data: w,
|
|
16453
|
-
onSelected:
|
|
16461
|
+
onSelected: N,
|
|
16454
16462
|
onViewTransactions: x,
|
|
16455
16463
|
selectedId: d,
|
|
16456
16464
|
title: a.income_tab_title
|
|
@@ -16482,7 +16490,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16482
16490
|
g.useEffect(() => {
|
|
16483
16491
|
o(n);
|
|
16484
16492
|
}, [n]), g.useEffect(() => {
|
|
16485
|
-
i(yA(AA()), NA(AA())), h(!0), s(
|
|
16493
|
+
i(yA(AA()), NA(AA())), h(!0), s(k.SPENDING_VIEW);
|
|
16486
16494
|
}, []);
|
|
16487
16495
|
const d = (u) => {
|
|
16488
16496
|
i(u[0], u[1]);
|
|
@@ -16492,7 +16500,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16492
16500
|
{
|
|
16493
16501
|
accountOptions: n,
|
|
16494
16502
|
calendarActions: { onRangeChanged: d },
|
|
16495
|
-
onAccountsFilterClick: () => s(
|
|
16503
|
+
onAccountsFilterClick: () => s(k.SPENDING_CLICK_FILTER),
|
|
16496
16504
|
onBackClick: A,
|
|
16497
16505
|
sx: e,
|
|
16498
16506
|
title: r.title,
|
|
@@ -16543,7 +16551,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16543
16551
|
/* @__PURE__ */ t(
|
|
16544
16552
|
O,
|
|
16545
16553
|
{
|
|
16546
|
-
"aria-label":
|
|
16554
|
+
"aria-label": _(n.category_icon_label_aria, r),
|
|
16547
16555
|
role: "img",
|
|
16548
16556
|
children: /* @__PURE__ */ t(ne, { categoryGuid: e })
|
|
16549
16557
|
}
|
|
@@ -16611,8 +16619,8 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16611
16619
|
category_guid: E,
|
|
16612
16620
|
top_level_category_guid: S
|
|
16613
16621
|
});
|
|
16614
|
-
const
|
|
16615
|
-
return m[P][
|
|
16622
|
+
const N = $(new Date(D, L, 1), Z.MONTH_SHORT);
|
|
16623
|
+
return m[P][N] = w, m;
|
|
16616
16624
|
},
|
|
16617
16625
|
{}
|
|
16618
16626
|
);
|
|
@@ -16627,10 +16635,10 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16627
16635
|
hideFooter: !0,
|
|
16628
16636
|
initialState: { sorting: { sortModel: s } },
|
|
16629
16637
|
onRowClick: (C) => {
|
|
16630
|
-
n?.(C.row.category), i(
|
|
16638
|
+
n?.(C.row.category), i(k.TRENDS_CLICK_TABLE_ROW);
|
|
16631
16639
|
},
|
|
16632
16640
|
onSortModelChange: (C) => {
|
|
16633
|
-
c(C), i(
|
|
16641
|
+
c(C), i(k.TRENDS_CLICK_TABLE_SORT);
|
|
16634
16642
|
},
|
|
16635
16643
|
rows: u,
|
|
16636
16644
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
@@ -16653,7 +16661,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16653
16661
|
dateRange: e,
|
|
16654
16662
|
custom: (f) => A === "" || A === f.category_guid || A === f.top_level_category_guid
|
|
16655
16663
|
});
|
|
16656
|
-
}, [i, A, e]), g.useEffect(() => a(
|
|
16664
|
+
}, [i, A, e]), g.useEffect(() => a(k.TRENDS_VIEW_TRANSACTIONS), []);
|
|
16657
16665
|
const C = () => {
|
|
16658
16666
|
d(""), r();
|
|
16659
16667
|
};
|
|
@@ -16673,79 +16681,79 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16673
16681
|
}, KC = T(BC), qC = {
|
|
16674
16682
|
view_transactions: "View Transactions"
|
|
16675
16683
|
}, kC = ({ onBackClick: A, sx: e }) => {
|
|
16676
|
-
const n = re(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = MA(), { accounts: s } = TA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h } = PA(), { sortedTransactions: d } = uA(), { isInitialized: u, selectedAccounts: C, setSelectedAccounts: f } = fA(), { trends: m } = I(), v = n.palette.mode === "dark", [E, S] = g.useState(!1), [L, w] = g.useState(!1), [D, P] = g.useState("Chart"), [
|
|
16684
|
+
const n = re(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = MA(), { accounts: s } = TA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h } = PA(), { sortedTransactions: d } = uA(), { isInitialized: u, selectedAccounts: C, setSelectedAccounts: f } = fA(), { trends: m } = I(), v = n.palette.mode === "dark", [E, S] = g.useState(!1), [L, w] = g.useState(!1), [D, P] = g.useState("Chart"), [N, x] = g.useState(""), [R, j] = g.useState({
|
|
16677
16685
|
start: yA(ce(/* @__PURE__ */ new Date(), 5)),
|
|
16678
16686
|
end: NA(/* @__PURE__ */ new Date())
|
|
16679
|
-
}), [
|
|
16687
|
+
}), [F, X] = g.useState(6);
|
|
16680
16688
|
g.useEffect(() => {
|
|
16681
16689
|
f(s);
|
|
16682
16690
|
}, [s]), g.useEffect(() => {
|
|
16683
16691
|
u && c(
|
|
16684
16692
|
C,
|
|
16685
|
-
|
|
16686
|
-
|
|
16693
|
+
R.start,
|
|
16694
|
+
R.end
|
|
16687
16695
|
).finally(() => {
|
|
16688
16696
|
S(!0);
|
|
16689
16697
|
});
|
|
16690
|
-
}, [u, C,
|
|
16698
|
+
}, [u, C, R]);
|
|
16691
16699
|
const Q = g.useMemo(
|
|
16692
16700
|
() => PC(h),
|
|
16693
16701
|
[h]
|
|
16694
16702
|
), U = g.useMemo(() => {
|
|
16695
|
-
const pA =
|
|
16696
|
-
(EA) => EA.top_level_category_guid ===
|
|
16703
|
+
const pA = N.length ? Q.filter(
|
|
16704
|
+
(EA) => EA.top_level_category_guid === N || EA.category_guid === N
|
|
16697
16705
|
) : w1(Q), K = pA.filter(y1), hA = pA.filter(gn);
|
|
16698
16706
|
return {
|
|
16699
16707
|
stackedDatasets: K,
|
|
16700
16708
|
unstackedDatasets: hA
|
|
16701
16709
|
};
|
|
16702
|
-
}, [Q,
|
|
16710
|
+
}, [Q, N]), rA = g.useMemo(() => {
|
|
16703
16711
|
const pA = _a(
|
|
16704
16712
|
U.stackedDatasets,
|
|
16705
|
-
|
|
16713
|
+
F
|
|
16706
16714
|
), K = _a(
|
|
16707
16715
|
U.unstackedDatasets,
|
|
16708
|
-
|
|
16716
|
+
F
|
|
16709
16717
|
);
|
|
16710
16718
|
return {
|
|
16711
16719
|
stackedDatasets: pA,
|
|
16712
16720
|
unstackedDatasets: K
|
|
16713
16721
|
};
|
|
16714
|
-
}, [U,
|
|
16722
|
+
}, [U, F]), gA = g.useMemo(() => {
|
|
16715
16723
|
const pA = $(
|
|
16716
|
-
|
|
16724
|
+
R.start,
|
|
16717
16725
|
o ? Z.MONTH_SHORT_YEAR : Z.MONTH_YEAR
|
|
16718
16726
|
), K = $(
|
|
16719
|
-
|
|
16727
|
+
R.end,
|
|
16720
16728
|
o ? Z.MONTH_SHORT_YEAR : Z.MONTH_YEAR
|
|
16721
16729
|
);
|
|
16722
16730
|
return `${pA} - ${K}`;
|
|
16723
|
-
}, [
|
|
16724
|
-
P(K ?? D), r(
|
|
16731
|
+
}, [R, o]), cA = (pA, K) => {
|
|
16732
|
+
P(K ?? D), r(k.TRENDS_CLICK_TOGGLE);
|
|
16725
16733
|
}, vA = (pA) => {
|
|
16726
16734
|
const K = pA?.[0], hA = pA?.[1], EA = Bs(hA, K);
|
|
16727
|
-
|
|
16735
|
+
j({ start: K, end: hA }), r(k.TRENDS_CLICK_DATE, {
|
|
16728
16736
|
time_period: EA + "M"
|
|
16729
|
-
}),
|
|
16737
|
+
}), X(EA);
|
|
16730
16738
|
}, $A = () => {
|
|
16731
|
-
r(
|
|
16739
|
+
r(k.TRENDS_CLICK_FILTER);
|
|
16732
16740
|
}, ge = (pA) => {
|
|
16733
16741
|
x(pA);
|
|
16734
16742
|
}, Xe = (pA) => {
|
|
16735
|
-
x(pA), r(
|
|
16743
|
+
x(pA), r(k.TRENDS_CLICK_LEGEND, { category: _e[pA] });
|
|
16736
16744
|
}, Je = (pA) => {
|
|
16737
|
-
r(
|
|
16745
|
+
r(k.TRENDS_HOVER_LEGEND, { category: _e[pA] });
|
|
16738
16746
|
}, Ze = (pA) => {
|
|
16739
|
-
r(
|
|
16747
|
+
r(k.TRENDS_HOVER_AREA, { category: pA });
|
|
16740
16748
|
}, lt = (pA) => {
|
|
16741
|
-
r(
|
|
16749
|
+
r(k.TRENDS_HOVER_POINT, { category: pA });
|
|
16742
16750
|
};
|
|
16743
16751
|
return !u || !E ? /* @__PURE__ */ t(QA, {}) : /* @__PURE__ */ l(
|
|
16744
16752
|
ue,
|
|
16745
16753
|
{
|
|
16746
16754
|
accountOptions: s,
|
|
16747
16755
|
calendarActions: { onRangeChanged: vA },
|
|
16748
|
-
dateRange:
|
|
16756
|
+
dateRange: R,
|
|
16749
16757
|
dateRangeVariant: "timeframebuttons",
|
|
16750
16758
|
onAccountsFilterClick: $A,
|
|
16751
16759
|
onBackClick: A,
|
|
@@ -16779,7 +16787,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16779
16787
|
textOverflow: "unset"
|
|
16780
16788
|
},
|
|
16781
16789
|
variant: a ? "H3" : "Body",
|
|
16782
|
-
children: _e[
|
|
16790
|
+
children: _e[N] || m.sub_title
|
|
16783
16791
|
}
|
|
16784
16792
|
),
|
|
16785
16793
|
/* @__PURE__ */ t(p, { variant: a ? "Body" : "Small", children: gA })
|
|
@@ -16827,7 +16835,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16827
16835
|
}
|
|
16828
16836
|
),
|
|
16829
16837
|
/* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
16830
|
-
/* @__PURE__ */ t(O, { flexGrow: 1, children:
|
|
16838
|
+
/* @__PURE__ */ t(O, { flexGrow: 1, children: N && /* @__PURE__ */ l(sA, { onClick: () => x(""), sx: { p: 0, pr: 5 }, children: [
|
|
16831
16839
|
/* @__PURE__ */ t(M, { name: "arrow_back" }),
|
|
16832
16840
|
m.all_categories
|
|
16833
16841
|
] }) }),
|
|
@@ -16850,7 +16858,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16850
16858
|
{
|
|
16851
16859
|
monthlyCategoryTotals: h,
|
|
16852
16860
|
onClickRow: ge,
|
|
16853
|
-
selectedCategory:
|
|
16861
|
+
selectedCategory: N
|
|
16854
16862
|
}
|
|
16855
16863
|
)
|
|
16856
16864
|
] })
|
|
@@ -16860,8 +16868,8 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16860
16868
|
/* @__PURE__ */ t(
|
|
16861
16869
|
KC,
|
|
16862
16870
|
{
|
|
16863
|
-
categoryGuid:
|
|
16864
|
-
dateRange:
|
|
16871
|
+
categoryGuid: N,
|
|
16872
|
+
dateRange: R,
|
|
16865
16873
|
isOpen: L,
|
|
16866
16874
|
onClose: () => w(!1)
|
|
16867
16875
|
}
|
|
@@ -16915,7 +16923,7 @@ const Pt = g.createContext(null), Gg = ({
|
|
|
16915
16923
|
);
|
|
16916
16924
|
}, vf = T(jC);
|
|
16917
16925
|
export {
|
|
16918
|
-
|
|
16926
|
+
k as ANALYTICS_EVENTS,
|
|
16919
16927
|
ya as AccountApi,
|
|
16920
16928
|
si as AccountFilter,
|
|
16921
16929
|
Ai as AccountIcon,
|
|
@@ -17031,7 +17039,7 @@ export {
|
|
|
17031
17039
|
Va as PropertyType,
|
|
17032
17040
|
M7 as PropertyTypeName,
|
|
17033
17041
|
_7 as RECURRENCE_COPY,
|
|
17034
|
-
|
|
17042
|
+
G as RecurrenceTypes,
|
|
17035
17043
|
Y7 as RecurringActivityMiniWidget,
|
|
17036
17044
|
Lu as RecurringActivityStore,
|
|
17037
17045
|
W7 as RecurringActivityWidget,
|
|
@@ -17077,7 +17085,7 @@ export {
|
|
|
17077
17085
|
CC as ZeroStateCard,
|
|
17078
17086
|
Zi as ZeroStateIcon,
|
|
17079
17087
|
Ks as analyticsSession,
|
|
17080
|
-
|
|
17088
|
+
_ as buildDynamicCopy,
|
|
17081
17089
|
z7 as buildPluralCopy,
|
|
17082
17090
|
vi as exportTransactionsToCSV,
|
|
17083
17091
|
z as formatCurrency,
|