@mx-cartographer/experiences 6.26.27-alpha.mega2 → 6.26.27-alpha.mm1
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 +1 -1
- package/dist/index.es.js +714 -722
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -6,20 +6,20 @@ import P from "@mui/material/Divider";
|
|
6
6
|
import ae from "@mui/material/List";
|
7
7
|
import $t from "@mui/material/ListSubheader";
|
8
8
|
import Me from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as Ul, P as X, Icon as V, useTokens as At, Text as C, H2 as fn, CategoryIcon as Lt, DialogHeader as Vl, DialogFooter as Kl, Drawer as zl, Footer as Yl, DateRangePicker as sr, H3 as
|
9
|
+
import { AccountsIcon as Ul, P as X, Icon as V, useTokens as At, Text as C, H2 as fn, CategoryIcon as Lt, DialogHeader as Vl, DialogFooter as Kl, Drawer as zl, Footer as Yl, DateRangePicker as sr, H3 as Ze, H1 as Qt, TextField as On, IconWeight as It, MerchantLogo as Jt, CategoryIconList as jl, CategoryIconVariants as Bs, InstitutionLogo as Tt, ChevronRightIcon as Hs, THEMES as cr } from "@mxenabled/mxui";
|
10
10
|
import Xl from "bowser";
|
11
11
|
import { getUnixTime as We } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as Zl } from "date-fns/intlFormat";
|
13
13
|
import { addMonths as rn } from "date-fns/addMonths";
|
14
|
-
import { addQuarters as
|
14
|
+
import { addQuarters as Li } from "date-fns/addQuarters";
|
15
15
|
import { addWeeks as Ps } from "date-fns/addWeeks";
|
16
16
|
import { addYears as Ji } from "date-fns/addYears";
|
17
17
|
import { getDay as ql } from "date-fns/getDay";
|
18
18
|
import { isBefore as ot } from "date-fns/isBefore";
|
19
19
|
import { nextDay as ea } from "date-fns/nextDay";
|
20
20
|
import { setDate as ta } from "date-fns/setDate";
|
21
|
-
import { startOfToday as
|
22
|
-
import { fromUnixTime as
|
21
|
+
import { startOfToday as we } from "date-fns/startOfToday";
|
22
|
+
import { fromUnixTime as Ve } from "date-fns/fromUnixTime";
|
23
23
|
import ja from "numeral";
|
24
24
|
import te from "@mui/material/Button";
|
25
25
|
import qn from "@mui/material/Tooltip";
|
@@ -38,18 +38,18 @@ import { css as Cn, keyframes as td } from "@mxenabled/cssinjs";
|
|
38
38
|
import { addDays as Fn } from "date-fns/addDays";
|
39
39
|
import { eachDayOfInterval as nd } from "date-fns/eachDayOfInterval";
|
40
40
|
import { eachWeekOfInterval as id } from "date-fns/eachWeekOfInterval";
|
41
|
-
import { endOfMonth as
|
41
|
+
import { endOfMonth as Qe } from "date-fns/endOfMonth";
|
42
42
|
import { format as Ln } from "date-fns/format";
|
43
43
|
import { isSameMonth as ad } from "date-fns/isSameMonth";
|
44
|
-
import { startOfMonth as
|
44
|
+
import { startOfMonth as Xe } from "date-fns/startOfMonth";
|
45
45
|
import { subMonths as Ht } from "date-fns/subMonths";
|
46
46
|
import Nt from "@mui/material/Paper";
|
47
|
-
import { ChevronLeft as Ws, ChevronRight as
|
47
|
+
import { ChevronLeft as Ws, ChevronRight as ze, ArrowBack as od, Icon as pt, AccountBalance as co, ExpandMore as ui, CheckCircle as ma, Edit as rd, Delete as $s, Schedule as sd, MonetizationOn as cd, Cancel as Us, CurrencyExchange as ld, Check as dd, TrendingUp as Vs, ArrowRightAlt as _d, TrendingDown as Ks, Payments as lo, CalendarMonth as ud, CreditCard as zs, Savings as hd, ContentCopy as gd, MultilineChart as Ys, NoteStack as js, Person as Xs, ExpandLess as Zs, AddBox as qs, Trophy as md, Star as pd, Settings as fd } from "@mxenabled/mx-icons";
|
48
48
|
import { isSameDay as Dt } from "date-fns/isSameDay";
|
49
49
|
import { isWithinInterval as _o } from "date-fns/isWithinInterval";
|
50
50
|
import * as Rt from "d3";
|
51
51
|
import { selectAll as Cd, interpolateString as bd, arc as yd } from "d3";
|
52
|
-
import { useTheme as
|
52
|
+
import { useTheme as Ye, alpha as Dn, keyframes as Sd, ThemeProvider as Ed } from "@mui/material/styles";
|
53
53
|
import { ResponsiveChartContainer as Td, ChartsReferenceLine as Ad, AreaPlot as xd, LinePlot as Id, MarkPlot as wd, BarPlot as vd, ChartsXAxis as Dd, ChartsYAxis as Nd, ChartsAxisHighlight as Rd, LineChart as Qs, PieChart as Od } from "@mui/x-charts";
|
54
54
|
import { ChartsTooltip as Ld } from "@mui/x-charts/ChartsTooltip";
|
55
55
|
import bt from "@mui/material/Card";
|
@@ -65,7 +65,7 @@ import kd from "@mui/material/ButtonGroup";
|
|
65
65
|
import tt from "@mui/material/Tab";
|
66
66
|
import Ut from "@mui/material/Tabs";
|
67
67
|
import hi from "@mui/material/ToggleButton";
|
68
|
-
import
|
68
|
+
import Pi from "@mui/material/ToggleButtonGroup";
|
69
69
|
import Gd from "@mui/material/Dialog";
|
70
70
|
import Js from "@mui/material/DialogContent";
|
71
71
|
import _n from "@mui/material/CardHeader";
|
@@ -80,14 +80,14 @@ import gt from "@mui/material/ListItemIcon";
|
|
80
80
|
import ho from "@mui/material/MenuItem";
|
81
81
|
import it from "@mui/material/TextField";
|
82
82
|
import pa from "@mui/material/Switch";
|
83
|
-
import { makeAutoObservable as Fe, runInAction as
|
83
|
+
import { makeAutoObservable as Fe, runInAction as J, reaction as Wd, observable as $d } from "mobx";
|
84
84
|
import Ud, { SurveyQuestionType as hr } from "posthog-js";
|
85
85
|
import { formatISO as fa } from "date-fns/formatISO";
|
86
86
|
import { differenceInDays as Vd } from "date-fns/differenceInDays";
|
87
87
|
import { DataGridPro as Qn } from "@mui/x-data-grid-pro";
|
88
88
|
import { intervalToDuration as Kd, formatDuration as zd, getDate as gr, fromUnixTime as ci, startOfMonth as mr, format as ec, differenceInMonths as Yd, isSameDay as jd, subMonths as Xd, subDays as Zd, startOfToday as qd, endOfToday as Qd } from "date-fns";
|
89
89
|
import Mn from "@mui/material/Alert";
|
90
|
-
import
|
90
|
+
import Fi from "@mui/material/Snackbar";
|
91
91
|
import Jd from "@mui/material/Stack/Stack";
|
92
92
|
import { useVirtualizer as tc } from "@tanstack/react-virtual";
|
93
93
|
import { AdapterDateFns as Jn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
@@ -836,7 +836,7 @@ const qT = [
|
|
836
836
|
var V_ = /* @__PURE__ */ ((e) => (e[e.SpendingPlan = 0] = "SpendingPlan", e[e.Budgets = 1] = "Budgets", e))(V_ || {}), K_ = /* @__PURE__ */ ((e) => (e[e.RecurringExpense = 0] = "RecurringExpense", e[e.PlannedExpense = 1] = "PlannedExpense", e[e.Other = 2] = "Other", e[e.Income = 3] = "Income", e))(K_ || {});
|
837
837
|
const gc = 48, mc = 4;
|
838
838
|
var z_ = /* @__PURE__ */ ((e) => (e.Small = "small", e.Medium = "medium", e.Large = "large", e))(z_ || {});
|
839
|
-
const
|
839
|
+
const xi = 44, yr = (e, n) => e.find((i) => i.guid === n), Y_ = (e, n) => e.find((i) => i.guid === n), j_ = (e, n) => {
|
840
840
|
const i = e.find((a) => a.subCategories.find((o) => o.guid === n));
|
841
841
|
if (i)
|
842
842
|
return i.subCategories.find((a) => a.guid === n);
|
@@ -867,29 +867,29 @@ const Ii = 44, yr = (e, n) => e.find((i) => i.guid === n), Y_ = (e, n) => e.find
|
|
867
867
|
}, Io = (e) => {
|
868
868
|
const n = ql(e);
|
869
869
|
let i = ea(e, n);
|
870
|
-
for (; ot(i,
|
870
|
+
for (; ot(i, we()); )
|
871
871
|
i = Ps(i, 1);
|
872
872
|
return i;
|
873
873
|
}, X_ = (e) => {
|
874
874
|
const n = Io(e);
|
875
875
|
return Ps(n, 1);
|
876
876
|
}, Z_ = (e) => {
|
877
|
-
let n = ta(
|
878
|
-
for (; ot(n,
|
877
|
+
let n = ta(we(), e.getDate());
|
878
|
+
for (; ot(n, we()); )
|
879
879
|
n = rn(n, 1);
|
880
880
|
return n;
|
881
881
|
}, q_ = (e) => {
|
882
882
|
const n = Io(e);
|
883
883
|
return rn(n, 1);
|
884
884
|
}, pc = (e) => {
|
885
|
-
let n =
|
886
|
-
for (; ot(n,
|
887
|
-
n =
|
885
|
+
let n = Li(e, 1);
|
886
|
+
for (; ot(n, we()); )
|
887
|
+
n = Li(n, 1);
|
888
888
|
return n;
|
889
889
|
}, Q_ = (e) => {
|
890
890
|
const n = pc(e);
|
891
|
-
return
|
892
|
-
}, J_ = (e) => Ji(e, 1), ya = (e) => de(
|
891
|
+
return Li(n, 1);
|
892
|
+
}, J_ = (e) => Ji(e, 1), ya = (e) => de(Ve(e), ie.DAY_OF_WEEK_MONTH_DAY), fc = (e) => e ? de(Ve(e), ie.MONTH_YEAR) : "", eu = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, T = (e, ...n) => {
|
893
893
|
if (!e) return "";
|
894
894
|
const i = n.some((r) => typeof r != "string"), o = [...e.matchAll(eu)].reduce(
|
895
895
|
(r, s, c) => {
|
@@ -995,7 +995,7 @@ const H = (e, n, i) => {
|
|
995
995
|
style: "percent",
|
996
996
|
minimumFractionDigits: 2,
|
997
997
|
maximumFractionDigits: 2
|
998
|
-
}, Ci = (e, n = nu) => Ja(e) ? new Intl.NumberFormat(Wn(), n).format(Number(e)) : e, iu = (e) => new Intl.PluralRules(Wn(), e),
|
998
|
+
}, Ci = (e, n = nu) => Ja(e) ? new Intl.NumberFormat(Wn(), n).format(Number(e)) : e, iu = (e) => new Intl.PluralRules(Wn(), e), Mi = (e, n = { type: "ordinal" }, i = {
|
999
999
|
one: "st",
|
1000
1000
|
two: "nd",
|
1001
1001
|
few: "rd",
|
@@ -1222,7 +1222,7 @@ class Er {
|
|
1222
1222
|
removeCategory = async (n) => this.fetchInstance.delete(`${B.CATEGORIES}/${n}`);
|
1223
1223
|
updateCategory = async (n) => this.fetchInstance.put(`${B.CATEGORIES}/${n.guid}`, n).then((i) => i.category);
|
1224
1224
|
}
|
1225
|
-
class
|
1225
|
+
class Ni {
|
1226
1226
|
fetchInstance;
|
1227
1227
|
constructor(n, i) {
|
1228
1228
|
this.fetchInstance = new lt(n, i);
|
@@ -1321,7 +1321,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1321
1321
|
if (!n)
|
1322
1322
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
1323
1323
|
return n;
|
1324
|
-
}, Se = () => nt("useAccountStore").globalStore.accountStore, vt = () => nt("useAppConfig").globalStore.appDataStore.appConfig, vo = () => nt("useAnalyticsStore").globalStore.analyticsStore, ut = () => nt("useBudgetsStore").globalStore.budgetsStore, Do = () => nt("useCashflowStore").globalStore.cashflowStore, Ue = () => nt("useCategoryStore").globalStore.categoryStore, bc = () => nt("useConnectStore").globalStore.connectStore, Sa = () => nt("useDebtsStore").globalStore.debtsStore, bi = () => nt("useFinstrongStore").globalStore.finstrongStore, yi = () => nt("useGlobalStore").globalStore, re = () => nt("useGlobalUiStore").globalStore.globalUiStore, A = () => nt("globalCopyStore").globalStore.copyStore.copy, dt = () => nt("useGoalStore").globalStore.goalStore, No = () => nt("useHelpStore").globalStore.helpStore, Xn = () => nt("useHoldingStore").globalStore.holdingStore, ru = () => nt("useMerchantStore").globalStore.merchantStore, yc = () => nt("useNetWorthStore").globalStore.netWorthStore, Sc = () => nt("useNotificationStore").globalStore.notificationStore, rt = () => nt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, yt = () => nt("useSettingsStore").globalStore.settingsStore, ke = () => nt("useTransactionStore").globalStore.transactionStore,
|
1324
|
+
}, Se = () => nt("useAccountStore").globalStore.accountStore, vt = () => nt("useAppConfig").globalStore.appDataStore.appConfig, vo = () => nt("useAnalyticsStore").globalStore.analyticsStore, ut = () => nt("useBudgetsStore").globalStore.budgetsStore, Do = () => nt("useCashflowStore").globalStore.cashflowStore, Ue = () => nt("useCategoryStore").globalStore.categoryStore, bc = () => nt("useConnectStore").globalStore.connectStore, Sa = () => nt("useDebtsStore").globalStore.debtsStore, bi = () => nt("useFinstrongStore").globalStore.finstrongStore, yi = () => nt("useGlobalStore").globalStore, re = () => nt("useGlobalUiStore").globalStore.globalUiStore, A = () => nt("globalCopyStore").globalStore.copyStore.copy, dt = () => nt("useGoalStore").globalStore.goalStore, No = () => nt("useHelpStore").globalStore.helpStore, Xn = () => nt("useHoldingStore").globalStore.holdingStore, ru = () => nt("useMerchantStore").globalStore.merchantStore, yc = () => nt("useNetWorthStore").globalStore.netWorthStore, Sc = () => nt("useNotificationStore").globalStore.notificationStore, rt = () => nt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, yt = () => nt("useSettingsStore").globalStore.settingsStore, ke = () => nt("useTransactionStore").globalStore.transactionStore, Wi = () => nt("useTrendsStore").globalStore.trendsStore, ft = () => nt("useUserStore").globalStore.userStore, q = () => ({ onEvent: nt().onEvent }), r2 = () => ({ onPageView: nt().onPageView }), su = (e = "useWidgetContainerContext") => {
|
1325
1325
|
const n = g.useContext(Cc);
|
1326
1326
|
if (!n)
|
1327
1327
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -1918,7 +1918,7 @@ const cu = (e, n) => {
|
|
1918
1918
|
/* @__PURE__ */ t(fn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: de(n, ie.MONTH_YEAR) }),
|
1919
1919
|
/* @__PURE__ */ d("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
1920
1920
|
/* @__PURE__ */ t(te, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(Ws, { size: 24 }) }),
|
1921
|
-
/* @__PURE__ */ t(te, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(
|
1921
|
+
/* @__PURE__ */ t(te, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(ze, { size: 24 }) })
|
1922
1922
|
] })
|
1923
1923
|
] });
|
1924
1924
|
}, Su = (e) => Cn({
|
@@ -1935,7 +1935,7 @@ const cu = (e, n) => {
|
|
1935
1935
|
gap: 4
|
1936
1936
|
}
|
1937
1937
|
}), Eu = ({ beginDate: e, date: n, endDate: i, isInMonth: a, onClick: o }) => {
|
1938
|
-
const r = Te(), s = Tu(r), c = e && i && _o(n, { start: e, end: i }) && !Dt(n, e) && !Dt(n, i), l = e && i && Dt(e, n) && !Dt(e, i), u = i && e && Dt(i, n) && !Dt(e, i), _ = e && Dt(e, n) || i && Dt(i, n), h = Dt(n,
|
1938
|
+
const r = Te(), s = Tu(r), c = e && i && _o(n, { start: e, end: i }) && !Dt(n, e) && !Dt(n, i), l = e && i && Dt(e, n) && !Dt(e, i), u = i && e && Dt(i, n) && !Dt(e, i), _ = e && Dt(e, n) || i && Dt(i, n), h = Dt(n, we());
|
1939
1939
|
return /* @__PURE__ */ t(
|
1940
1940
|
"div",
|
1941
1941
|
{
|
@@ -1972,8 +1972,8 @@ const cu = (e, n) => {
|
|
1972
1972
|
}
|
1973
1973
|
);
|
1974
1974
|
}, Tu = (e) => Cn({
|
1975
|
-
height:
|
1976
|
-
width:
|
1975
|
+
height: Ri,
|
1976
|
+
width: Ri,
|
1977
1977
|
display: "flex",
|
1978
1978
|
justifyContent: "center",
|
1979
1979
|
"&.mx-cmn-out-of-month": {
|
@@ -2016,7 +2016,7 @@ const cu = (e, n) => {
|
|
2016
2016
|
paddingBottom: 5
|
2017
2017
|
}
|
2018
2018
|
}
|
2019
|
-
}), Au = 340,
|
2019
|
+
}), Au = 340, Ri = 44;
|
2020
2020
|
var Ac = /* @__PURE__ */ ((e) => (e.None = "None", e.Single = "Single", e.Range = "Range", e))(Ac || {});
|
2021
2021
|
const xu = ({
|
2022
2022
|
copy: e,
|
@@ -2027,12 +2027,12 @@ const xu = ({
|
|
2027
2027
|
selectionType: r = "Single"
|
2028
2028
|
/* Single */
|
2029
2029
|
}) => {
|
2030
|
-
const s = At(), c = Iu(s), [l, u] = g.useState(
|
2030
|
+
const s = At(), c = Iu(s), [l, u] = g.useState(we), [_, h] = g.useState(n), [m, p] = g.useState(i);
|
2031
2031
|
g.useEffect(() => {
|
2032
2032
|
h(n), p(i), n && u(n);
|
2033
2033
|
}, [n, i]);
|
2034
2034
|
const f = g.useMemo(() => {
|
2035
|
-
const w = id({ start:
|
2035
|
+
const w = id({ start: Xe(l), end: Qe(l) }), v = [];
|
2036
2036
|
for (let N = 0; N < w.length; N++) {
|
2037
2037
|
const R = w[N], M = nd({ start: R, end: Fn(R, 6) }), k = [];
|
2038
2038
|
for (let G = 0; G < M.length; G++)
|
@@ -2049,7 +2049,7 @@ const xu = ({
|
|
2049
2049
|
!_ || m ? (h(w), p(void 0)) : ot(w, _) ? (p(_), h(w), o?.(w, _)) : (p(w), o?.(_, w));
|
2050
2050
|
}
|
2051
2051
|
}, y = () => {
|
2052
|
-
const w =
|
2052
|
+
const w = we();
|
2053
2053
|
u(w), r !== "None" && (h(w), r === "Single" ? a?.(w) : (p(w), o?.(w, w)));
|
2054
2054
|
}, E = () => {
|
2055
2055
|
u(rn(l, 1));
|
@@ -2093,9 +2093,9 @@ const xu = ({
|
|
2093
2093
|
justifyContent: "center",
|
2094
2094
|
textAlign: "center",
|
2095
2095
|
"& .mx-cmn-calendar-header-cell": {
|
2096
|
-
height:
|
2097
|
-
width:
|
2098
|
-
minWidth:
|
2096
|
+
height: Ri,
|
2097
|
+
width: Ri,
|
2098
|
+
minWidth: Ri,
|
2099
2099
|
"& .kmui-text": {
|
2100
2100
|
alignItems: "center",
|
2101
2101
|
display: "flex",
|
@@ -2171,7 +2171,7 @@ const xu = ({
|
|
2171
2171
|
)
|
2172
2172
|
] });
|
2173
2173
|
}, Nu = (e) => {
|
2174
|
-
const n =
|
2174
|
+
const n = Ye(), i = e.showLabel, a = e.style, o = Number(e.x), r = Number(e.y), s = e.handlers?.onMarkClick, c = e.handlers?.onMouseEnter, l = e.handlers?.onMouseLeave, u = hn(n.breakpoints.up("sm")), _ = e.valueFormatterString ? H(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), h = u ? n.typography.Small?.fontSize : n.typography.XSmall?.fontSize, m = h ? parseFloat(h.toString()) * 0.6 : 8, y = _.length * m + 8 + 8, E = 24, I = o - y / 2, w = r - 30;
|
2175
2175
|
return /* @__PURE__ */ d(Z, { children: [
|
2176
2176
|
i && /* @__PURE__ */ d(Z, { children: [
|
2177
2177
|
e.labelBackgroundColor && /* @__PURE__ */ t(
|
@@ -2469,18 +2469,18 @@ const ni = ({
|
|
2469
2469
|
showYAxisTicks: L = !1,
|
2470
2470
|
title: W,
|
2471
2471
|
useCustomMark: Y = !1,
|
2472
|
-
valueFormatterString:
|
2473
|
-
width:
|
2472
|
+
valueFormatterString: ee,
|
2473
|
+
width: ue
|
2474
2474
|
}) => {
|
2475
|
-
const _e =
|
2475
|
+
const _e = Ye(), Le = s.flat().map((fe) => fe.x), Re = s.flat().map((fe) => fe.y), he = Math.round(Re.reduce((fe, Ie) => Ie + fe, 0) / Re.length), me = Math.floor(Math.min(...Re) / 100) * 100, qe = Math.ceil(Math.max(...Re) / 100) * 100, $ = s.map((fe, Ie) => ({
|
2476
2476
|
type: w ? "bar" : "line",
|
2477
2477
|
curve: a,
|
2478
|
-
color: w ? _e.palette.chart?.chart6 : i[
|
2478
|
+
color: w ? _e.palette.chart?.chart6 : i[Ie] ?? _e.palette.primary.main,
|
2479
2479
|
data: fe.map((Ge) => Ge.y),
|
2480
2480
|
area: y,
|
2481
2481
|
baseline: n,
|
2482
2482
|
showMark: !0,
|
2483
|
-
valueFormatter: (Ge) =>
|
2483
|
+
valueFormatter: (Ge) => ee ? H(Ge || 0, ee) : String(Ge)
|
2484
2484
|
})), be = {
|
2485
2485
|
...{
|
2486
2486
|
top: 60,
|
@@ -2507,22 +2507,22 @@ const ni = ({
|
|
2507
2507
|
opacity: 0.15
|
2508
2508
|
}
|
2509
2509
|
},
|
2510
|
-
width:
|
2510
|
+
width: ue,
|
2511
2511
|
xAxis: [{ data: Le, scaleType: w ? "band" : "point" }],
|
2512
2512
|
yAxis: [
|
2513
2513
|
{
|
2514
2514
|
min: l ? -22 : me,
|
2515
|
-
max:
|
2515
|
+
max: qe || 100,
|
2516
2516
|
colorMap: y && $.length < 2 ? {
|
2517
2517
|
type: "continuous",
|
2518
2518
|
min: me,
|
2519
|
-
max:
|
2519
|
+
max: qe,
|
2520
2520
|
color: [
|
2521
2521
|
_e.palette.background.paper,
|
2522
2522
|
i[0] ?? _e.palette.primary.main
|
2523
2523
|
]
|
2524
2524
|
} : void 0,
|
2525
|
-
valueFormatter: (fe) =>
|
2525
|
+
valueFormatter: (fe) => ee ? H(fe, ee) : String(fe)
|
2526
2526
|
}
|
2527
2527
|
],
|
2528
2528
|
children: [
|
@@ -2534,7 +2534,7 @@ const ni = ({
|
|
2534
2534
|
strokeDasharray: "10, 8",
|
2535
2535
|
strokeWidth: 2
|
2536
2536
|
},
|
2537
|
-
y:
|
2537
|
+
y: he
|
2538
2538
|
}
|
2539
2539
|
),
|
2540
2540
|
/* @__PURE__ */ t(xd, {}),
|
@@ -2565,7 +2565,7 @@ const ni = ({
|
|
2565
2565
|
labelFontSize: m,
|
2566
2566
|
showLabel: N,
|
2567
2567
|
style: S?.(fe.dataIndex) ?? {},
|
2568
|
-
valueFormatterString:
|
2568
|
+
valueFormatterString: ee,
|
2569
2569
|
yData: Re,
|
2570
2570
|
...fe
|
2571
2571
|
}
|
@@ -2624,7 +2624,7 @@ const ni = ({
|
|
2624
2624
|
{
|
2625
2625
|
customLabels: r,
|
2626
2626
|
labels: u,
|
2627
|
-
valueFormatterString:
|
2627
|
+
valueFormatterString: ee
|
2628
2628
|
}
|
2629
2629
|
)
|
2630
2630
|
]
|
@@ -2633,13 +2633,13 @@ const ni = ({
|
|
2633
2633
|
v && /* @__PURE__ */ t(
|
2634
2634
|
Mu,
|
2635
2635
|
{
|
2636
|
-
average: E ?
|
2636
|
+
average: E ? he : void 0,
|
2637
2637
|
customLegendVariant: o,
|
2638
2638
|
labels: u,
|
2639
2639
|
series: $,
|
2640
2640
|
style: { position: "absolute", top: 16, left: 16 },
|
2641
2641
|
title: W,
|
2642
|
-
valueFormatterString:
|
2642
|
+
valueFormatterString: ee
|
2643
2643
|
}
|
2644
2644
|
)
|
2645
2645
|
] });
|
@@ -2689,7 +2689,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2689
2689
|
),
|
2690
2690
|
/* @__PURE__ */ t(C, { variant: "Body", children: o })
|
2691
2691
|
] });
|
2692
|
-
},
|
2692
|
+
}, je = ({
|
2693
2693
|
isIncome: e = !1,
|
2694
2694
|
amount: n = 0,
|
2695
2695
|
bold: i,
|
@@ -2708,7 +2708,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2708
2708
|
cursorPosition: a,
|
2709
2709
|
chartContainerRef: o
|
2710
2710
|
}) => {
|
2711
|
-
const r =
|
2711
|
+
const r = Ye(), s = Gs(null), [c, l] = xt({ x: a.x, y: a.y });
|
2712
2712
|
if (Pn(() => {
|
2713
2713
|
(() => {
|
2714
2714
|
const h = s.current, m = o.current;
|
@@ -2734,7 +2734,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2734
2734
|
/* @__PURE__ */ d(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2735
2735
|
/* @__PURE__ */ t(Ic, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2736
2736
|
/* @__PURE__ */ t(C, { variant: "Small", children: `${i.length}-month total` }),
|
2737
|
-
/* @__PURE__ */ t(
|
2737
|
+
/* @__PURE__ */ t(je, { amount: u, bold: !0, formatString: "0,0", variant: "body2" })
|
2738
2738
|
] }),
|
2739
2739
|
/* @__PURE__ */ t(P, { sx: { my: 16, width: "100%" } }),
|
2740
2740
|
/* @__PURE__ */ t(_t, { container: !0, children: i.map((_, h) => /* @__PURE__ */ d(g.Fragment, { children: [
|
@@ -2742,7 +2742,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2742
2742
|
/* @__PURE__ */ t(_t, { item: !0, xs: 4, children: /* @__PURE__ */ d(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2743
2743
|
/* @__PURE__ */ t(C, { color: r.palette.text.secondary, variant: "XSmall", children: _.x }),
|
2744
2744
|
/* @__PURE__ */ t(
|
2745
|
-
|
2745
|
+
je,
|
2746
2746
|
{
|
2747
2747
|
amount: _.y,
|
2748
2748
|
bold: !0,
|
@@ -2765,7 +2765,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2765
2765
|
return s === void 0 || !c ? null : /* @__PURE__ */ t(ga, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Jl, { children: /* @__PURE__ */ d(un, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2766
2766
|
/* @__PURE__ */ t(Ic, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2767
2767
|
/* @__PURE__ */ t(C, { color: r.palette.text.secondary, variant: "Small", children: de(c, ie.MONTH_SHORT_YEAR) }),
|
2768
|
-
/* @__PURE__ */ t(
|
2768
|
+
/* @__PURE__ */ t(je, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
2769
2769
|
] }) }) });
|
2770
2770
|
}, Fu = ({
|
2771
2771
|
sx: e,
|
@@ -2835,7 +2835,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2835
2835
|
availableHeight: s = 0,
|
2836
2836
|
minimumHeight: c = 350
|
2837
2837
|
}) => {
|
2838
|
-
const l =
|
2838
|
+
const l = Ye(), { isMobile: u } = Ce(), [_, { height: h }] = ii(), m = g.useRef(null), [p, f] = g.useState(0);
|
2839
2839
|
g.useEffect(() => {
|
2840
2840
|
const K = Math.max(s - h, c);
|
2841
2841
|
f(K);
|
@@ -2845,11 +2845,11 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2845
2845
|
hoveredAreaData: null,
|
2846
2846
|
isAreaHovered: !1,
|
2847
2847
|
cursorPos: { x: 0, y: 0 }
|
2848
|
-
}), { hoveredSeriesId: w, hoveredAreaData: v, isAreaHovered: N, cursorPos: R } = E, M = N && w && v, k = !M, G = [...o, ...r], L = G[0]?.dataset.length ?? 0, W = G.flatMap((K) => K.dataset.map((He) => He.x)), Y = G.flatMap((K) => K.dataset.map((He) => He.y)),
|
2848
|
+
}), { hoveredSeriesId: w, hoveredAreaData: v, isAreaHovered: N, cursorPos: R } = E, M = N && w && v, k = !M, G = [...o, ...r], L = G[0]?.dataset.length ?? 0, W = G.flatMap((K) => K.dataset.map((He) => He.x)), Y = G.flatMap((K) => K.dataset.map((He) => He.y)), ee = o[0]?.dataset?.map(
|
2849
2849
|
(K, He) => o.reduce((st, En) => st + En.dataset[He]?.y || 0, 0)
|
2850
|
-
) ?? [0],
|
2850
|
+
) ?? [0], ue = Math.max(...ee), _e = Math.max(
|
2851
2851
|
...r.flatMap((K) => K.dataset.map((He) => He.y))
|
2852
|
-
), Le = Math.floor(Math.min(...Y) / 100) * 100, Re = Math.ceil(Math.max(
|
2852
|
+
), Le = Math.floor(Math.min(...Y) / 100) * 100, Re = Math.ceil(Math.max(ue, _e) / 100) * 100, he = o.map((K, He) => ({
|
2853
2853
|
id: `stacked-${He}`,
|
2854
2854
|
guid: K.category_guid,
|
2855
2855
|
top_level_guid: K.top_level_category_guid,
|
@@ -2871,8 +2871,8 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2871
2871
|
label: K.category_name,
|
2872
2872
|
type: "line",
|
2873
2873
|
valueFormatter: (st) => H(st, "0,0")
|
2874
|
-
})),
|
2875
|
-
...
|
2874
|
+
})), qe = [...he, ...me], $ = [
|
2875
|
+
...he.map(({ guid: K, top_level_guid: He }) => ({
|
2876
2876
|
guid: K,
|
2877
2877
|
top_level_guid: He
|
2878
2878
|
})),
|
@@ -2890,11 +2890,11 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2890
2890
|
y(K), i?.(K ?? "");
|
2891
2891
|
}, fe = (K) => {
|
2892
2892
|
a?.(K ?? "");
|
2893
|
-
},
|
2893
|
+
}, Ie = () => {
|
2894
2894
|
const K = pe(String(w)).guid;
|
2895
2895
|
K && a?.(K);
|
2896
2896
|
}, Ge = (K) => {
|
2897
|
-
const He = String(K?.seriesId), st = pe(He).guid, En =
|
2897
|
+
const He = String(K?.seriesId), st = pe(He).guid, En = qe.find((Ai) => Ai.id === He), La = En && K?.dataIndex !== void 0, Ma = En && K?.dataIndex === void 0;
|
2898
2898
|
if (La)
|
2899
2899
|
I({
|
2900
2900
|
hoveredSeriesId: He,
|
@@ -2903,13 +2903,13 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2903
2903
|
cursorPos: R
|
2904
2904
|
}), n?.(st);
|
2905
2905
|
else if (Ma) {
|
2906
|
-
const
|
2906
|
+
const Ai = En?.data.map((ka, Ga) => ({
|
2907
2907
|
x: W[Ga],
|
2908
2908
|
y: ka
|
2909
2909
|
})) ?? [];
|
2910
2910
|
I({
|
2911
2911
|
hoveredSeriesId: He,
|
2912
|
-
hoveredAreaData:
|
2912
|
+
hoveredAreaData: Ai,
|
2913
2913
|
isAreaHovered: !0,
|
2914
2914
|
cursorPos: R
|
2915
2915
|
}), e?.(st);
|
@@ -2945,10 +2945,10 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2945
2945
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
2946
2946
|
strokeWidth: 3
|
2947
2947
|
},
|
2948
|
-
...S &&
|
2948
|
+
...S && he.reduce((K, He, st) => {
|
2949
2949
|
const En = `.MuiAreaElement-series-stacked-${st}`;
|
2950
2950
|
return K[En] = {
|
2951
|
-
opacity:
|
2951
|
+
opacity: he[st].guid === S ? 0.9 : 0.2
|
2952
2952
|
}, K;
|
2953
2953
|
}, {})
|
2954
2954
|
};
|
@@ -2964,9 +2964,9 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2964
2964
|
{
|
2965
2965
|
height: p,
|
2966
2966
|
margin: { bottom: 50 },
|
2967
|
-
onAreaClick:
|
2967
|
+
onAreaClick: Ie,
|
2968
2968
|
onHighlightChange: Ge,
|
2969
|
-
series:
|
2969
|
+
series: qe,
|
2970
2970
|
skipAnimation: !0,
|
2971
2971
|
slotProps: {
|
2972
2972
|
legend: {
|
@@ -3213,7 +3213,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3213
3213
|
calendarActions: e,
|
3214
3214
|
color: n = "primary",
|
3215
3215
|
copy: i,
|
3216
|
-
range: a = [
|
3216
|
+
range: a = [Xe(we()), Qe(pn())],
|
3217
3217
|
shouldShrinkToIcon: o = !0,
|
3218
3218
|
variant: r = "outlined"
|
3219
3219
|
}) => {
|
@@ -3232,22 +3232,22 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3232
3232
|
]
|
3233
3233
|
};
|
3234
3234
|
g.useEffect(() => {
|
3235
|
-
|
3235
|
+
p(a);
|
3236
3236
|
}, [a]), g.useEffect(() => {
|
3237
3237
|
(r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(N());
|
3238
3238
|
}, [I]);
|
3239
3239
|
const N = () => {
|
3240
|
-
const G =
|
3241
|
-
return [
|
3240
|
+
const G = Qe(pn());
|
3241
|
+
return [Qe(Ht(G, I)), G];
|
3242
3242
|
}, R = (G) => {
|
3243
|
-
const L = [...l], W = l[0], Y = l[1],
|
3243
|
+
const L = [...l], W = l[0], Y = l[1], ee = G === "previous";
|
3244
3244
|
if (_ === i.dateRangePickerCopy.dateRangeThisMonth)
|
3245
|
-
L[0] =
|
3245
|
+
L[0] = ee ? Ht(W, 1) : rn(W, 1), L[1] = Qe(ee ? Ht(Y, 1) : rn(Y, 1));
|
3246
3246
|
else if (_ === i.dateRangePickerCopy.dateRangeYTD || _ === i.dateRangePickerCopy.dateRangeLastYear)
|
3247
|
-
L[0] =
|
3247
|
+
L[0] = ee ? Za(ur(W), 1) : Ji(ur(W), 1), L[1] = ee ? Za(_r(W), 1) : Ji(_r(W), 1);
|
3248
3248
|
else {
|
3249
|
-
const
|
3250
|
-
|
3249
|
+
const ue = Md(Y, W);
|
3250
|
+
L[0] = G === "previous" ? Ot(W, ue) : Fn(W, ue), L[1] = G === "previous" ? Ot(Y, ue) : Fn(Y, ue);
|
3251
3251
|
}
|
3252
3252
|
u(L), e.onRangeChanged(L);
|
3253
3253
|
}, M = () => {
|
@@ -3332,7 +3332,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3332
3332
|
}
|
3333
3333
|
),
|
3334
3334
|
r === "timeframebuttons" && /* @__PURE__ */ t(
|
3335
|
-
|
3335
|
+
Pi,
|
3336
3336
|
{
|
3337
3337
|
color: n,
|
3338
3338
|
exclusive: !0,
|
@@ -3389,7 +3389,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3389
3389
|
copy: i.dateRangePickerCopy,
|
3390
3390
|
dateRange: m,
|
3391
3391
|
onRangeChanged: (G, L) => {
|
3392
|
-
|
3392
|
+
p(G), h(L);
|
3393
3393
|
},
|
3394
3394
|
selectedShortcut: _,
|
3395
3395
|
sx: { p: 16 }
|
@@ -3416,7 +3416,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3416
3416
|
copy: i.dateRangePickerCopy,
|
3417
3417
|
dateRange: m,
|
3418
3418
|
onRangeChanged: (G, L) => {
|
3419
|
-
|
3419
|
+
p(G), h(L);
|
3420
3420
|
},
|
3421
3421
|
selectedShortcut: _,
|
3422
3422
|
sx: {
|
@@ -3556,7 +3556,7 @@ class Ku extends g.Component {
|
|
3556
3556
|
return { hasError: !0 };
|
3557
3557
|
}
|
3558
3558
|
render() {
|
3559
|
-
return this.state.hasError ? /* @__PURE__ */ t(
|
3559
|
+
return this.state.hasError ? /* @__PURE__ */ t(Ze, { sx: { pt: 24 }, children: Vu.text }) : this.props.children;
|
3560
3560
|
}
|
3561
3561
|
}
|
3562
3562
|
const Ea = ({
|
@@ -3576,7 +3576,7 @@ const Ea = ({
|
|
3576
3576
|
action: /* @__PURE__ */ t(
|
3577
3577
|
te,
|
3578
3578
|
{
|
3579
|
-
endIcon: /* @__PURE__ */ t(
|
3579
|
+
endIcon: /* @__PURE__ */ t(ze, { size: 20 }),
|
3580
3580
|
onClick: a,
|
3581
3581
|
size: "small",
|
3582
3582
|
variant: "text",
|
@@ -3585,7 +3585,7 @@ const Ea = ({
|
|
3585
3585
|
),
|
3586
3586
|
subheader: o && /* @__PURE__ */ t(X, { sx: { color: "text.secondary" }, variant: "body2", children: o }),
|
3587
3587
|
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
3588
|
-
title: /* @__PURE__ */ t(
|
3588
|
+
title: /* @__PURE__ */ t(Ze, { sx: { width: "calc(100% - 10px)" }, children: s })
|
3589
3589
|
}
|
3590
3590
|
),
|
3591
3591
|
/* @__PURE__ */ t(Pt, { ref: l, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ t(wo, { availableHeight: u, availableWidth: _, children: e }) })
|
@@ -3607,11 +3607,11 @@ const Ea = ({
|
|
3607
3607
|
/* @__PURE__ */ t(
|
3608
3608
|
_n,
|
3609
3609
|
{
|
3610
|
-
action: a ? /* @__PURE__ */ t($e, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(pt, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(
|
3610
|
+
action: a ? /* @__PURE__ */ t($e, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(pt, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(ze, {}), onClick: o, children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: r }) }),
|
3611
3611
|
subheader: s || null,
|
3612
3612
|
subheaderTypographyProps: { variant: "Small" },
|
3613
3613
|
sx: { pb: 4 },
|
3614
|
-
title: l ? /* @__PURE__ */ t(
|
3614
|
+
title: l ? /* @__PURE__ */ t(Ze, { sx: { pb: 4 }, children: l }) : null
|
3615
3615
|
}
|
3616
3616
|
),
|
3617
3617
|
/* @__PURE__ */ t(Pt, { ref: u, sx: { p: 0 }, children: /* @__PURE__ */ t(wo, { availableHeight: _, availableWidth: h, children: i }) })
|
@@ -3642,7 +3642,7 @@ const Ea = ({
|
|
3642
3642
|
};
|
3643
3643
|
if (!M)
|
3644
3644
|
return /* @__PURE__ */ t(ce, {});
|
3645
|
-
const
|
3645
|
+
const ee = {
|
3646
3646
|
accountFilterOptionsCopy: {
|
3647
3647
|
accountTypeAccounts: L.account_filter.account_type_accounts,
|
3648
3648
|
cancelButton: L.cancel_button,
|
@@ -3656,7 +3656,7 @@ const Ea = ({
|
|
3656
3656
|
zeroStateTitle: L.account_filter.zero_state_title
|
3657
3657
|
},
|
3658
3658
|
title: L.account_filter.title
|
3659
|
-
},
|
3659
|
+
}, ue = {
|
3660
3660
|
dateRangePickerCopy: {
|
3661
3661
|
dateRangeFrom: L.date_range_picker.from,
|
3662
3662
|
dateRangeTo: L.date_range_picker.to,
|
@@ -3695,7 +3695,7 @@ const Ea = ({
|
|
3695
3695
|
vr,
|
3696
3696
|
{
|
3697
3697
|
calendarActions: i,
|
3698
|
-
copy:
|
3698
|
+
copy: ue,
|
3699
3699
|
range: [_e, Le],
|
3700
3700
|
shouldShrinkToIcon: !1,
|
3701
3701
|
variant: r
|
@@ -3705,38 +3705,38 @@ const Ea = ({
|
|
3705
3705
|
Tc,
|
3706
3706
|
{
|
3707
3707
|
accounts: e,
|
3708
|
-
copy:
|
3708
|
+
copy: ee,
|
3709
3709
|
onConnectAccountClick: () => f(!0),
|
3710
|
-
onFilterClick: (
|
3711
|
-
G(
|
3710
|
+
onFilterClick: (he) => {
|
3711
|
+
G(he), u?.();
|
3712
3712
|
},
|
3713
3713
|
selectedAccountGuids: k,
|
3714
3714
|
showAccountNumbers: !1,
|
3715
3715
|
variant: "text"
|
3716
3716
|
}
|
3717
3717
|
),
|
3718
|
-
n?.map((
|
3719
|
-
if (g.isValidElement(
|
3720
|
-
const { iconName: me, onClick:
|
3718
|
+
n?.map((he) => {
|
3719
|
+
if (g.isValidElement(he)) return he;
|
3720
|
+
const { iconName: me, onClick: qe, label: $ } = he;
|
3721
3721
|
return Re ? w || N ? /* @__PURE__ */ t(
|
3722
3722
|
te,
|
3723
3723
|
{
|
3724
|
-
onClick:
|
3724
|
+
onClick: qe,
|
3725
3725
|
startIcon: /* @__PURE__ */ t(V, { name: me, size: 24 }),
|
3726
3726
|
sx: { my: 4 },
|
3727
3727
|
children: $
|
3728
3728
|
},
|
3729
3729
|
me
|
3730
|
-
) : /* @__PURE__ */ t($e, { "aria-label": $, color: "primary", onClick:
|
3730
|
+
) : /* @__PURE__ */ t($e, { "aria-label": $, color: "primary", onClick: qe, children: /* @__PURE__ */ t(V, { name: me, size: 24 }) }, me) : w || N ? /* @__PURE__ */ t(
|
3731
3731
|
te,
|
3732
3732
|
{
|
3733
|
-
onClick:
|
3733
|
+
onClick: qe,
|
3734
3734
|
startIcon: /* @__PURE__ */ t(V, { name: me, size: 24 }),
|
3735
3735
|
sx: { my: 4 },
|
3736
3736
|
children: $
|
3737
3737
|
},
|
3738
3738
|
me
|
3739
|
-
) : /* @__PURE__ */ t($e, { "aria-label": $, color: "primary", onClick:
|
3739
|
+
) : /* @__PURE__ */ t($e, { "aria-label": $, color: "primary", onClick: qe, children: /* @__PURE__ */ t(V, { name: me, size: 24 }) }, me);
|
3740
3740
|
})
|
3741
3741
|
] }),
|
3742
3742
|
sx: {
|
@@ -3762,7 +3762,7 @@ const Ea = ({
|
|
3762
3762
|
children: /* @__PURE__ */ t(V, { name: "arrow_back", size: 24 })
|
3763
3763
|
}
|
3764
3764
|
),
|
3765
|
-
/* @__PURE__ */ t(
|
3765
|
+
/* @__PURE__ */ t(Ze, { children: m })
|
3766
3766
|
] })
|
3767
3767
|
}
|
3768
3768
|
),
|
@@ -3773,7 +3773,7 @@ const Ea = ({
|
|
3773
3773
|
vr,
|
3774
3774
|
{
|
3775
3775
|
calendarActions: i,
|
3776
|
-
copy:
|
3776
|
+
copy: ue,
|
3777
3777
|
range: [_e, Le],
|
3778
3778
|
shouldShrinkToIcon: !1,
|
3779
3779
|
variant: r
|
@@ -4154,7 +4154,7 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
4154
4154
|
/* @__PURE__ */ t(
|
4155
4155
|
te,
|
4156
4156
|
{
|
4157
|
-
endIcon: /* @__PURE__ */ t(
|
4157
|
+
endIcon: /* @__PURE__ */ t(ze, {}),
|
4158
4158
|
onClick: () => r(!0),
|
4159
4159
|
sx: {
|
4160
4160
|
pl: 0,
|
@@ -4261,7 +4261,7 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
4261
4261
|
primaryTypographyProps: { variant: "body1" }
|
4262
4262
|
}
|
4263
4263
|
),
|
4264
|
-
!n && !l && /* @__PURE__ */ t(
|
4264
|
+
!n && !l && /* @__PURE__ */ t(ze, {})
|
4265
4265
|
] }),
|
4266
4266
|
/* @__PURE__ */ t(
|
4267
4267
|
Be,
|
@@ -4380,27 +4380,27 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
4380
4380
|
);
|
4381
4381
|
class Qu {
|
4382
4382
|
globalStore;
|
4383
|
-
api = new
|
4383
|
+
api = new Ni("/", "");
|
4384
4384
|
copy = {};
|
4385
4385
|
featureNamespace = "experiences";
|
4386
4386
|
isInitialized = !1;
|
4387
4387
|
constructor(n) {
|
4388
|
-
this.globalStore = n, this.api = new
|
4388
|
+
this.globalStore = n, this.api = new Ni(n.endpoint, n.sessionToken), Fe(this);
|
4389
4389
|
}
|
4390
4390
|
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
4391
4391
|
// TODO: Remove this function
|
4392
4392
|
initialize = async (n, i) => {
|
4393
|
-
this.api = new
|
4393
|
+
this.api = new Ni(n, i), await this.loadCopy();
|
4394
4394
|
};
|
4395
4395
|
loadCopy = async () => {
|
4396
|
-
await this.getCopy(this.featureNamespace),
|
4396
|
+
await this.getCopy(this.featureNamespace), J(() => {
|
4397
4397
|
this.isInitialized = !0;
|
4398
4398
|
});
|
4399
4399
|
};
|
4400
4400
|
getCopy = async (n, i = "") => {
|
4401
4401
|
try {
|
4402
4402
|
const a = await this.api.getGlobalCopy(n, i);
|
4403
|
-
|
4403
|
+
J(() => {
|
4404
4404
|
this.copy = a[n];
|
4405
4405
|
});
|
4406
4406
|
} catch (a) {
|
@@ -4439,7 +4439,7 @@ class Ju {
|
|
4439
4439
|
}
|
4440
4440
|
loadSurvey = (n = !1) => {
|
4441
4441
|
Ud.getActiveMatchingSurveys((i) => {
|
4442
|
-
|
4442
|
+
J(() => {
|
4443
4443
|
if (i.length > 0) {
|
4444
4444
|
const a = i.find((o) => o.id === this.surveyId);
|
4445
4445
|
a && (this.survey = a, this.currentQuestionIndex = 0, this.question = a.questions[0], this.response = null, this.responses = {});
|
@@ -4515,7 +4515,7 @@ class nh {
|
|
4515
4515
|
loadBeats = async () => {
|
4516
4516
|
this.isLoading = !0;
|
4517
4517
|
const n = await this.api.getBeats(), a = (await this.api.getOffers()).map((o) => th(o));
|
4518
|
-
|
4518
|
+
J(() => {
|
4519
4519
|
this.beats = eh(n, a, "active_at", "desc"), this.isLoading = !1;
|
4520
4520
|
});
|
4521
4521
|
};
|
@@ -4616,7 +4616,7 @@ class oh {
|
|
4616
4616
|
api = new Or("/", "");
|
4617
4617
|
globalStore;
|
4618
4618
|
alert = "";
|
4619
|
-
dateRange = { start:
|
4619
|
+
dateRange = { start: Xe(we()), end: Qe(we()) };
|
4620
4620
|
budgets = [];
|
4621
4621
|
selectedBudget;
|
4622
4622
|
selectedSubBudget;
|
@@ -4674,7 +4674,7 @@ class oh {
|
|
4674
4674
|
addBudget = async (n, i, a = null) => {
|
4675
4675
|
try {
|
4676
4676
|
const o = await this.api.addBudget(n, i, a);
|
4677
|
-
|
4677
|
+
J(() => {
|
4678
4678
|
this.budgets.push(o);
|
4679
4679
|
});
|
4680
4680
|
} catch (o) {
|
@@ -4683,7 +4683,7 @@ class oh {
|
|
4683
4683
|
};
|
4684
4684
|
deleteBudget = async (n) => {
|
4685
4685
|
try {
|
4686
|
-
await this.api.deleteBudget(n),
|
4686
|
+
await this.api.deleteBudget(n), J(() => {
|
4687
4687
|
const i = this.budgets.findIndex((a) => a.guid === n);
|
4688
4688
|
i >= 0 && this.budgets.splice(i, 1);
|
4689
4689
|
});
|
@@ -4694,7 +4694,7 @@ class oh {
|
|
4694
4694
|
loadBudgets = async () => {
|
4695
4695
|
try {
|
4696
4696
|
const n = await this.api.getBudgets();
|
4697
|
-
|
4697
|
+
J(() => {
|
4698
4698
|
this.budgets = n, this.isDataLoaded = !0;
|
4699
4699
|
});
|
4700
4700
|
} catch (n) {
|
@@ -4732,7 +4732,7 @@ class oh {
|
|
4732
4732
|
updateBudget = async (n) => {
|
4733
4733
|
try {
|
4734
4734
|
const i = await this.api.updateBudget(n);
|
4735
|
-
|
4735
|
+
J(() => {
|
4736
4736
|
const a = this.budgets.findIndex((o) => o.guid === n.guid);
|
4737
4737
|
a >= 0 && (this.budgets[a] = i);
|
4738
4738
|
});
|
@@ -4741,7 +4741,7 @@ class oh {
|
|
4741
4741
|
}
|
4742
4742
|
};
|
4743
4743
|
}
|
4744
|
-
const
|
4744
|
+
const Si = () => {
|
4745
4745
|
if (!g.useContext(ti))
|
4746
4746
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
4747
4747
|
return Do().uiStore;
|
@@ -4760,7 +4760,7 @@ const Ei = () => {
|
|
4760
4760
|
}
|
4761
4761
|
),
|
4762
4762
|
/* @__PURE__ */ t(C, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
|
4763
|
-
/* @__PURE__ */ t(
|
4763
|
+
/* @__PURE__ */ t(je, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4764
4764
|
] });
|
4765
4765
|
}, Mo = x(rh), sh = ({ onAddIncomeClick: e }) => {
|
4766
4766
|
const n = Te(), { availableWidth: i } = $n(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } = Se(), { selectedAccountGuids: s } = re(), { cashflow: c } = A(), { userProfile: l } = ft(), {
|
@@ -4770,7 +4770,7 @@ const Ei = () => {
|
|
4770
4770
|
setNextIncome: m,
|
4771
4771
|
setSelectedCashAccounts: p,
|
4772
4772
|
setUpcomingExpenses: f
|
4773
|
-
} =
|
4773
|
+
} = Si(), { isDataLoaded: S, nextIncomeRecurrence: y, upcomingExpenses: E } = rt();
|
4774
4774
|
g.useEffect(() => {
|
4775
4775
|
p(
|
4776
4776
|
o.filter((R) => s.includes(R.guid))
|
@@ -4798,7 +4798,7 @@ const Ei = () => {
|
|
4798
4798
|
px: 24,
|
4799
4799
|
children: [
|
4800
4800
|
/* @__PURE__ */ d(b, { pb: 14, pt: 12, children: [
|
4801
|
-
/* @__PURE__ */ t(
|
4801
|
+
/* @__PURE__ */ t(je, { amount: I, variant: "H2" }),
|
4802
4802
|
/* @__PURE__ */ t(X, { variant: "XSmall", whiteSpace: "nowrap", children: T(
|
4803
4803
|
c.total_cash_accounts,
|
4804
4804
|
h.length
|
@@ -4806,12 +4806,12 @@ const Ei = () => {
|
|
4806
4806
|
] }),
|
4807
4807
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(V, { name: "remove" }) }),
|
4808
4808
|
/* @__PURE__ */ d(b, { pb: 14, pt: 12, children: [
|
4809
|
-
/* @__PURE__ */ t(
|
4809
|
+
/* @__PURE__ */ t(je, { amount: w, variant: "H2" }),
|
4810
4810
|
/* @__PURE__ */ t(X, { variant: "XSmall", whiteSpace: "nowrap", children: T(c.expenses_due, _.length) })
|
4811
4811
|
] }),
|
4812
4812
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(V, { name: "equal" }) }),
|
4813
4813
|
/* @__PURE__ */ d(b, { pb: 14, pr: 24, pt: 12, children: [
|
4814
|
-
/* @__PURE__ */ t(
|
4814
|
+
/* @__PURE__ */ t(je, { amount: v, variant: "H2" }),
|
4815
4815
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
4816
4816
|
/* @__PURE__ */ t(X, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4817
4817
|
/* @__PURE__ */ t(Oo, { body: c.tooltip_body, title: c.tooltip_title })
|
@@ -4837,12 +4837,12 @@ const Ei = () => {
|
|
4837
4837
|
c.total_cash_accounts,
|
4838
4838
|
h.length
|
4839
4839
|
) }),
|
4840
|
-
/* @__PURE__ */ t(
|
4840
|
+
/* @__PURE__ */ t(je, { amount: r, bold: !0, variant: "XSmall" })
|
4841
4841
|
] }),
|
4842
4842
|
/* @__PURE__ */ t(P, {}),
|
4843
4843
|
/* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
4844
4844
|
/* @__PURE__ */ t(C, { variant: "Small", children: T(c.expenses_due, _.length) }),
|
4845
|
-
/* @__PURE__ */ t(
|
4845
|
+
/* @__PURE__ */ t(je, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
4846
4846
|
] }),
|
4847
4847
|
/* @__PURE__ */ t(P, {}),
|
4848
4848
|
/* @__PURE__ */ t(
|
@@ -4959,7 +4959,7 @@ const Ei = () => {
|
|
4959
4959
|
const u = e.transactions.find(
|
4960
4960
|
(_) => _.repeating_transaction_guid === e.guid && _.date > We(Ot(l.expectedDate, 5)) && _.date < We(Fn(l.expectedDate, 5))
|
4961
4961
|
);
|
4962
|
-
u ? (l.transaction = u, l.status = et.Paid, l.occurredOnDate =
|
4962
|
+
u ? (l.transaction = u, l.status = et.Paid, l.occurredOnDate = Ve(u.date)) : ot(l.expectedDate, Ot(we(), 3)) && (l.status = et.Missed);
|
4963
4963
|
}
|
4964
4964
|
return i;
|
4965
4965
|
}, uh = (e, n, i) => {
|
@@ -4994,13 +4994,13 @@ const Ei = () => {
|
|
4994
4994
|
const a = [], o = e.expectedDate;
|
4995
4995
|
let r = ot(o, i) ? o : nc(o, 1);
|
4996
4996
|
for (; ot(r, i); )
|
4997
|
-
sn(r, n) && a.push({ ...e, expectedDate: r }), r =
|
4997
|
+
sn(r, n) && a.push({ ...e, expectedDate: r }), r = Li(r, 1);
|
4998
4998
|
return a;
|
4999
4999
|
}, Ch = (e, n, i) => {
|
5000
5000
|
const a = [], o = e.expectedDate;
|
5001
5001
|
let r = ot(o, i) ? o : nc(o, 2);
|
5002
5002
|
for (; ot(r, i); )
|
5003
|
-
sn(r, n) && a.push({ ...e, expectedDate: r }), r =
|
5003
|
+
sn(r, n) && a.push({ ...e, expectedDate: r }), r = Li(r, 2);
|
5004
5004
|
return a;
|
5005
5005
|
}, bh = (e, n, i) => {
|
5006
5006
|
const a = [], o = e.expectedDate;
|
@@ -5040,7 +5040,7 @@ const Ei = () => {
|
|
5040
5040
|
recurrences: [i]
|
5041
5041
|
}), n;
|
5042
5042
|
}, []), sa = (e, n, i) => {
|
5043
|
-
const a = ea(
|
5043
|
+
const a = ea(we(), n.recurrence_day), o = ic(we(), n.recurrence_day), r = Mi(n.recurrence_day), s = n.second_recurrence_day ? Mi(n.second_recurrence_day) : "";
|
5044
5044
|
let c = i ? T(e.monthly_ordinal, r) : e.monthly;
|
5045
5045
|
switch (n.recurrence_type) {
|
5046
5046
|
case Ee.EveryQuarter:
|
@@ -5184,7 +5184,7 @@ class ca {
|
|
5184
5184
|
updateTag = async (n) => this.fetchInstance.put(`${B.TAGS}/${n.guid}`, n).then((i) => i.tag);
|
5185
5185
|
updateTransaction = async (n) => this.fetchInstance.put(`${B.TRANSACTIONS}/${n.guid}`, n).then((i) => i.transaction);
|
5186
5186
|
}
|
5187
|
-
var
|
5187
|
+
var vi = /* @__PURE__ */ ((e) => (e[e.Category = 0] = "Category", e[e.Date = 1] = "Date", e[e.Memo = 2] = "Memo", e[e.Tags = 3] = "Tags", e))(vi || {}), Zi = /* @__PURE__ */ ((e) => (e[e.SplitTransaction = 0] = "SplitTransaction", e[e.HideTransaction = 1] = "HideTransaction", e[e.MerchantLogo = 2] = "MerchantLogo", e))(Zi || {});
|
5188
5188
|
const Eh = [
|
5189
5189
|
0,
|
5190
5190
|
1,
|
@@ -5560,7 +5560,7 @@ const Dc = (e, n) => {
|
|
5560
5560
|
const i = Nh(Dh(e, n)), a = encodeURIComponent(i), o = document.createElement("a");
|
5561
5561
|
o.href = `data:attachment/csv;charset=utf-8,${a}`, o.download = "transactions.csv", document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
5562
5562
|
}, Dh = (e, n) => e.map((i) => ({
|
5563
|
-
Date: de(
|
5563
|
+
Date: de(Ve(i.date), ie.YEAR_MONTH_DAY),
|
5564
5564
|
Description: Rh(i),
|
5565
5565
|
"Original Description": i.feed_description,
|
5566
5566
|
Amount: `${i.amount}`,
|
@@ -5587,7 +5587,7 @@ const Dc = (e, n) => {
|
|
5587
5587
|
}, kh = (e, n, i) => {
|
5588
5588
|
const {
|
5589
5589
|
accounts: a = [],
|
5590
|
-
dateRange: o = { start:
|
5590
|
+
dateRange: o = { start: Xe(we()), end: pn() },
|
5591
5591
|
custom: r = () => !0,
|
5592
5592
|
searchTerm: s = "",
|
5593
5593
|
showSplits: c = !1
|
@@ -5599,7 +5599,7 @@ const Dc = (e, n) => {
|
|
5599
5599
|
return !0;
|
5600
5600
|
const _ = l.tags.some(
|
5601
5601
|
(m) => Kt(s, n.find((p) => p.guid === m)?.name)
|
5602
|
-
), h =
|
5602
|
+
), h = Ve(l.date);
|
5603
5603
|
return Kt(s, l.payee) || Kt(s, l.feed_description) || Kt(s, l.category) || Kt(s, de(h, ie.MONTH)) || Kt(s, de(h, ie.DAY)) || Kt(s, de(h, ie.FULL_MONTH_DAY)) || Kt(s, de(h, ie.MONTH_DAY_YEAR)) || Kt(s, Ln(h, B_)) || Kt(s, l.account) || Kt(s, `${l.amount}`) || Kt(s, l.memo) || _;
|
5604
5604
|
});
|
5605
5605
|
}, Gh = (e, n, i) => [...e].sort((a, o) => {
|
@@ -5641,8 +5641,8 @@ const Nc = {
|
|
5641
5641
|
tags: []
|
5642
5642
|
};
|
5643
5643
|
let Wh = class {
|
5644
|
-
beginDate =
|
5645
|
-
endDate =
|
5644
|
+
beginDate = Xe(/* @__PURE__ */ new Date());
|
5645
|
+
endDate = Qe(/* @__PURE__ */ new Date());
|
5646
5646
|
expandedSplits = [];
|
5647
5647
|
isInitialized = !1;
|
5648
5648
|
height = 550;
|
@@ -5687,7 +5687,7 @@ class $h {
|
|
5687
5687
|
api = new ca("/", "");
|
5688
5688
|
beatApi = new li("/", "");
|
5689
5689
|
associatedBeats = [];
|
5690
|
-
cachedStartDate = Ot(
|
5690
|
+
cachedStartDate = Ot(we(), 90);
|
5691
5691
|
filter = {};
|
5692
5692
|
isLoading = !0;
|
5693
5693
|
rawTransactions = [];
|
@@ -5706,13 +5706,13 @@ class $h {
|
|
5706
5706
|
transactions: a
|
5707
5707
|
} = {}) => {
|
5708
5708
|
await Promise.all([
|
5709
|
-
this.loadAssociatedBeats(
|
5709
|
+
this.loadAssociatedBeats(Xe(/* @__PURE__ */ new Date()), n),
|
5710
5710
|
this.loadTags(),
|
5711
5711
|
this.loadTaggings(),
|
5712
5712
|
this.loadTransactionRules(i),
|
5713
5713
|
// By default loads 90 days of transactions
|
5714
5714
|
this.loadTransactions(this.cachedStartDate, pn(), a)
|
5715
|
-
]),
|
5715
|
+
]), J(() => {
|
5716
5716
|
this.uiStore.setIsInitialized(!0);
|
5717
5717
|
});
|
5718
5718
|
};
|
@@ -5757,7 +5757,7 @@ class $h {
|
|
5757
5757
|
};
|
5758
5758
|
addTransaction = async (n) => {
|
5759
5759
|
const i = await this.api.addTransaction(n);
|
5760
|
-
i &&
|
5760
|
+
i && J(() => this.rawTransactions = [i, ...this.transactions]);
|
5761
5761
|
};
|
5762
5762
|
augmentTransactions = (n) => xh(
|
5763
5763
|
n,
|
@@ -5768,25 +5768,25 @@ class $h {
|
|
5768
5768
|
getTransactionData = () => ({});
|
5769
5769
|
loadAssociatedBeats = async (n, i) => {
|
5770
5770
|
const a = n ? fa(n, { representation: "date" }) : void 0, o = i ?? await this.beatApi.getBeatsWithAssociatedTransaction(a);
|
5771
|
-
|
5771
|
+
J(() => this.associatedBeats = o);
|
5772
5772
|
};
|
5773
5773
|
loadTags = async () => {
|
5774
5774
|
const n = await this.api.getTags();
|
5775
|
-
|
5775
|
+
J(() => this.tags = n);
|
5776
5776
|
};
|
5777
5777
|
loadTaggings = async () => {
|
5778
5778
|
const n = await this.api.getTaggings();
|
5779
|
-
|
5779
|
+
J(() => this.taggings = n);
|
5780
5780
|
};
|
5781
5781
|
loadTransactionRules = async (n) => {
|
5782
5782
|
const i = n ?? await this.api.getTransactionRules();
|
5783
|
-
|
5783
|
+
J(() => this.transactionRules = i);
|
5784
5784
|
};
|
5785
5785
|
loadTransactions = async (n = this.cachedStartDate, i = pn(), a) => {
|
5786
5786
|
this.setIsLoading(!0), this.rawTransactions = [];
|
5787
5787
|
try {
|
5788
5788
|
const o = a ?? await this.api.getTransactionsByDateRange(We(n), We(i));
|
5789
|
-
|
5789
|
+
J(() => {
|
5790
5790
|
this.rawTransactions = o;
|
5791
5791
|
});
|
5792
5792
|
} catch (o) {
|
@@ -5798,7 +5798,7 @@ class $h {
|
|
5798
5798
|
loadTransactionsByDateRange = async (n, i) => {
|
5799
5799
|
console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
|
5800
5800
|
...this.filter,
|
5801
|
-
dateRange: { start:
|
5801
|
+
dateRange: { start: Ve(i), end: Ve(n) }
|
5802
5802
|
});
|
5803
5803
|
};
|
5804
5804
|
modifyTransactionByAccountGuid = (n, i) => {
|
@@ -5817,7 +5817,7 @@ class $h {
|
|
5817
5817
|
const i = this.transactions.findIndex((a) => a.guid === n);
|
5818
5818
|
if (i >= 0) {
|
5819
5819
|
const a = [...this.transactions];
|
5820
|
-
a.splice(i, 1),
|
5820
|
+
a.splice(i, 1), J(() => this.rawTransactions = a);
|
5821
5821
|
}
|
5822
5822
|
};
|
5823
5823
|
setFilter = (n) => {
|
@@ -5836,7 +5836,7 @@ class $h {
|
|
5836
5836
|
o.push(c);
|
5837
5837
|
}
|
5838
5838
|
const r = this.transactions.findIndex((s) => s.guid === n.guid);
|
5839
|
-
r >= 0 &&
|
5839
|
+
r >= 0 && J(
|
5840
5840
|
() => this.rawTransactions = [
|
5841
5841
|
...this.transactions.slice(0, r),
|
5842
5842
|
a,
|
@@ -5854,7 +5854,7 @@ class $h {
|
|
5854
5854
|
c >= 0 && a.splice(c, 1);
|
5855
5855
|
});
|
5856
5856
|
const o = a.findIndex((s) => s.guid === n), r = a[o];
|
5857
|
-
r.has_been_split = !1, o >= 0 &&
|
5857
|
+
r.has_been_split = !1, o >= 0 && J(
|
5858
5858
|
() => this.rawTransactions = [
|
5859
5859
|
...a.slice(0, o),
|
5860
5860
|
r,
|
@@ -5875,7 +5875,7 @@ class $h {
|
|
5875
5875
|
};
|
5876
5876
|
updateTransaction = async (n) => {
|
5877
5877
|
const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
|
5878
|
-
a >= 0 &&
|
5878
|
+
a >= 0 && J(
|
5879
5879
|
() => this.rawTransactions = [
|
5880
5880
|
...this.transactions.slice(0, a),
|
5881
5881
|
i,
|
@@ -5980,10 +5980,10 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
5980
5980
|
n && /* @__PURE__ */ t(C, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
|
5981
5981
|
] });
|
5982
5982
|
}, jh = x(Yh), Br = (e, n) => {
|
5983
|
-
const i =
|
5983
|
+
const i = Ve(n[e].date), a = Ve(n[e - 1]?.date);
|
5984
5984
|
return !Dt(i, a);
|
5985
5985
|
}, Xh = (e, n) => {
|
5986
|
-
const i =
|
5986
|
+
const i = Ve(n[e].date), a = Ve(n[e + 1]?.date);
|
5987
5987
|
return Dt(i, a);
|
5988
5988
|
}, Hr = 65, Pr = 34, Zh = ({
|
5989
5989
|
bgcolor: e,
|
@@ -6078,8 +6078,8 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6078
6078
|
]
|
6079
6079
|
}
|
6080
6080
|
);
|
6081
|
-
}, eg = x(Jh), tg = (e) => /* @__PURE__ */ t(C, { tabIndex: e.tabIndex, variant: "Small", children: de(
|
6082
|
-
const n =
|
6081
|
+
}, eg = x(Jh), tg = (e) => /* @__PURE__ */ t(C, { tabIndex: e.tabIndex, variant: "Small", children: de(Ve(e.row.date), ie.MONTH_DAY) }), ng = (e) => {
|
6082
|
+
const n = Ye(), { transactions: i } = A(), { is_flagged: a, is_hidden: o, has_been_viewed: r, parent_guid: s } = e.row, l = !r && !!!s;
|
6083
6083
|
return /* @__PURE__ */ d(
|
6084
6084
|
O,
|
6085
6085
|
{
|
@@ -6106,7 +6106,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6106
6106
|
]
|
6107
6107
|
}
|
6108
6108
|
);
|
6109
|
-
}, ig = x(ng),
|
6109
|
+
}, ig = x(ng), Ii = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", children: e.colDef.headerName }), ag = (e) => /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
6110
6110
|
/* @__PURE__ */ t(
|
6111
6111
|
Jt,
|
6112
6112
|
{
|
@@ -6146,7 +6146,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6146
6146
|
field: "date",
|
6147
6147
|
headerName: a.date_title,
|
6148
6148
|
width: 103,
|
6149
|
-
renderHeader:
|
6149
|
+
renderHeader: Ii,
|
6150
6150
|
renderCell: (m) => m.row.parent_guid ? null : /* @__PURE__ */ t(tg, { ...m }),
|
6151
6151
|
sortingOrder: ["desc", "asc"]
|
6152
6152
|
},
|
@@ -6155,7 +6155,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6155
6155
|
field: "payee",
|
6156
6156
|
headerName: a.payee_title,
|
6157
6157
|
flex: 0.33,
|
6158
|
-
renderHeader:
|
6158
|
+
renderHeader: Ii,
|
6159
6159
|
renderCell: ag,
|
6160
6160
|
sortingOrder: ["asc", "desc"]
|
6161
6161
|
},
|
@@ -6163,7 +6163,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6163
6163
|
field: "category",
|
6164
6164
|
headerName: a.category_title,
|
6165
6165
|
flex: 0.25,
|
6166
|
-
renderHeader:
|
6166
|
+
renderHeader: Ii,
|
6167
6167
|
renderCell: (m) => /* @__PURE__ */ t(eg, { ...m }),
|
6168
6168
|
sortingOrder: ["asc", "desc"]
|
6169
6169
|
},
|
@@ -6171,7 +6171,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6171
6171
|
field: "account",
|
6172
6172
|
headerName: a.account_title,
|
6173
6173
|
flex: 0.33,
|
6174
|
-
renderHeader:
|
6174
|
+
renderHeader: Ii,
|
6175
6175
|
renderCell: (m) => m.row.parent_guid ? null : /* @__PURE__ */ t(qh, { ...m }),
|
6176
6176
|
sortingOrder: ["asc", "desc"]
|
6177
6177
|
},
|
@@ -6179,7 +6179,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6179
6179
|
field: "amount",
|
6180
6180
|
headerName: a.amount_title,
|
6181
6181
|
flex: 0.25,
|
6182
|
-
renderHeader:
|
6182
|
+
renderHeader: Ii,
|
6183
6183
|
renderCell: Qh,
|
6184
6184
|
align: "right",
|
6185
6185
|
headerAlign: "right",
|
@@ -6624,9 +6624,9 @@ const sg = ({
|
|
6624
6624
|
)
|
6625
6625
|
);
|
6626
6626
|
}, $r = (e) => {
|
6627
|
-
const n = [], i =
|
6627
|
+
const n = [], i = we();
|
6628
6628
|
for (let a = 0; a <= Fr; a++) {
|
6629
|
-
const o =
|
6629
|
+
const o = Xe(Ht(i, Fr - a)), s = e.filter(
|
6630
6630
|
(c) => c.year_month === Number(Ln(o, "yyyyMM"))
|
6631
6631
|
).reduce((c, l) => c + l.total, 0);
|
6632
6632
|
n.push({
|
@@ -6708,7 +6708,7 @@ class vg {
|
|
6708
6708
|
loadCategories = async (n) => {
|
6709
6709
|
try {
|
6710
6710
|
const i = n || await this.api.getCategories(), { default_categories: a } = this.globalStore.copyStore.copy.categories;
|
6711
|
-
|
6711
|
+
J(() => {
|
6712
6712
|
this.categories = i.map((o) => ({
|
6713
6713
|
...o,
|
6714
6714
|
name: a[o.guid] ? a[o.guid].replace(/&/g, "&") : o.name
|
@@ -6726,7 +6726,7 @@ class vg {
|
|
6726
6726
|
We(a),
|
6727
6727
|
n
|
6728
6728
|
);
|
6729
|
-
|
6729
|
+
J(() => {
|
6730
6730
|
this.dateRangeCategoryTotals = o, this.setIsLoadingCategoryTotals(!1), this.dataRangeTotalsLoaded = !0;
|
6731
6731
|
});
|
6732
6732
|
} catch (o) {
|
@@ -6734,10 +6734,10 @@ class vg {
|
|
6734
6734
|
}
|
6735
6735
|
};
|
6736
6736
|
loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
|
6737
|
-
const o = We(
|
6737
|
+
const o = We(Xe(i ?? Ht(/* @__PURE__ */ new Date(), 11))), r = We(Qe(a ?? /* @__PURE__ */ new Date()));
|
6738
6738
|
try {
|
6739
6739
|
const s = await this.api.getMonthlyCategoryTotals(o, r, n);
|
6740
|
-
|
6740
|
+
J(() => {
|
6741
6741
|
this.monthlyCategoryTotals = s, this.monthlyTotalsLoaded = !0;
|
6742
6742
|
});
|
6743
6743
|
} catch (s) {
|
@@ -6752,11 +6752,11 @@ class vg {
|
|
6752
6752
|
We(a),
|
6753
6753
|
n
|
6754
6754
|
), r = await this.api.getMonthlyCategoryTotals(
|
6755
|
-
We(
|
6756
|
-
We(
|
6755
|
+
We(Xe(Ht(a, 11))),
|
6756
|
+
We(Qe(a)),
|
6757
6757
|
n
|
6758
6758
|
);
|
6759
|
-
|
6759
|
+
J(() => {
|
6760
6760
|
this.dateRangeCategoryTotals = o, this.monthlyCategoryTotals = r, this.dataRangeTotalsLoaded = !0, this.monthlyTotalsLoaded = !0, this.setIsLoadingCategoryTotals(!1);
|
6761
6761
|
});
|
6762
6762
|
} catch (o) {
|
@@ -6892,7 +6892,7 @@ const Lc = ({ transaction: e }) => {
|
|
6892
6892
|
{
|
6893
6893
|
primary: s.date_title,
|
6894
6894
|
primaryTypographyProps: { variant: "XSmall" },
|
6895
|
-
secondary: /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: de(
|
6895
|
+
secondary: /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: de(Ve(e.date), ie.YEAR_MONTH_DAY) })
|
6896
6896
|
}
|
6897
6897
|
),
|
6898
6898
|
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(V, { name: "chevron_right", weight: It.Dark }) })
|
@@ -6912,7 +6912,7 @@ const Lc = ({ transaction: e }) => {
|
|
6912
6912
|
children: /* @__PURE__ */ t(b, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
|
6913
6913
|
xu,
|
6914
6914
|
{
|
6915
|
-
beginDate:
|
6915
|
+
beginDate: Ve(u),
|
6916
6916
|
copy: {
|
6917
6917
|
nextAria: s.date_next_aria,
|
6918
6918
|
prevAria: s.date_prev_aria,
|
@@ -7348,11 +7348,11 @@ const Lc = ({ transaction: e }) => {
|
|
7348
7348
|
}, I = (G, L) => {
|
7349
7349
|
const W = [...f];
|
7350
7350
|
W[G].amount = L, W[0].amount = e.amount - W.reduce(
|
7351
|
-
(Y,
|
7351
|
+
(Y, ee, ue) => Y + (ue !== 0 ? ee.amount : 0),
|
7352
7352
|
0
|
7353
7353
|
), S(W);
|
7354
7354
|
}, w = (G, L) => {
|
7355
|
-
const W = [...f], Y = c.find((
|
7355
|
+
const W = [...f], Y = c.find((ee) => ee.guid === L);
|
7356
7356
|
Y && (W[G] = {
|
7357
7357
|
...W[G],
|
7358
7358
|
category_guid: L,
|
@@ -7812,10 +7812,10 @@ const Lc = ({ transaction: e }) => {
|
|
7812
7812
|
] })
|
7813
7813
|
] }),
|
7814
7814
|
/* @__PURE__ */ t(Nt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ae, { children: n.map((s, c) => /* @__PURE__ */ d(g.Fragment, { children: [
|
7815
|
-
s ===
|
7816
|
-
s ===
|
7817
|
-
s ===
|
7818
|
-
s ===
|
7815
|
+
s === vi.Category && /* @__PURE__ */ t(Lc, { transaction: i }),
|
7816
|
+
s === vi.Date && /* @__PURE__ */ t(Mc, { transaction: i }),
|
7817
|
+
s === vi.Memo && /* @__PURE__ */ t(Gc, { transaction: i }),
|
7818
|
+
s === vi.Tags && /* @__PURE__ */ t(Bc, { transaction: i }),
|
7819
7819
|
/* @__PURE__ */ t(P, { variant: c < n.length - 1 ? "inset" : "fullWidth" })
|
7820
7820
|
] }, s)) }) }),
|
7821
7821
|
/* @__PURE__ */ t(C, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
@@ -7829,7 +7829,7 @@ const Lc = ({ transaction: e }) => {
|
|
7829
7829
|
i.is_manual && !i.parent_guid && !i.has_been_split && /* @__PURE__ */ t(Ng, { transaction: i })
|
7830
7830
|
] }) })
|
7831
7831
|
] }) }) : /* @__PURE__ */ t(ce, {});
|
7832
|
-
},
|
7832
|
+
}, Ei = x(tm), nm = ({ copy: e, isOpen: n, onClose: i, onPrimaryAction: a }) => {
|
7833
7833
|
const { common: o, transactions: r } = A(), { isCopyLoaded: s } = re();
|
7834
7834
|
return s ? /* @__PURE__ */ d(
|
7835
7835
|
Be,
|
@@ -8016,13 +8016,13 @@ const Lc = ({ transaction: e }) => {
|
|
8016
8016
|
} = ke(), {
|
8017
8017
|
manualTransaction: W,
|
8018
8018
|
isAmountValid: Y,
|
8019
|
-
searchValue:
|
8020
|
-
setSearchValue:
|
8019
|
+
searchValue: ee,
|
8020
|
+
setSearchValue: ue,
|
8021
8021
|
setShowInsights: _e,
|
8022
8022
|
updateManualTransaction: Le
|
8023
|
-
} = wt(), { userProfile: Re } = ft(), [
|
8023
|
+
} = wt(), { userProfile: Re } = ft(), [he, me] = g.useState(""), [qe, $] = g.useState(""), [pe, be] = g.useState(!1), [fe, Ie] = g.useState(!1), [Ge, St] = g.useState(!1);
|
8024
8024
|
g.useEffect(() => {
|
8025
|
-
const ht = o.filter((ai) => !ai.is_hidden), or =
|
8025
|
+
const ht = o.filter((ai) => !ai.is_hidden), or = Xe(we()), rr = Qe(we());
|
8026
8026
|
y(ht), S(or, rr), R({
|
8027
8027
|
accounts: ht.map((ai) => ai.guid),
|
8028
8028
|
custom: (ai) => !ai.accountIsClosed && !ai.accountIsHidden,
|
@@ -8040,10 +8040,10 @@ const Lc = ({ transaction: e }) => {
|
|
8040
8040
|
const Wt = g.useMemo(
|
8041
8041
|
() => o.filter((ht) => ht.is_manual),
|
8042
8042
|
[o]
|
8043
|
-
), K =
|
8043
|
+
), K = qe ? G.find((ht) => ht.guid === qe) : void 0, He = Y && !!W.payee && !!W.account_guid && !!W.category_guid, st = (ht) => {
|
8044
8044
|
S(ht[0], ht[1]);
|
8045
8045
|
}, En = (ht) => {
|
8046
|
-
|
8046
|
+
ue(ht), R({
|
8047
8047
|
...v,
|
8048
8048
|
searchTerm: ht
|
8049
8049
|
}), l(F.TRANSACTIONS_CLICK_SEARCH, { search_term: ht });
|
@@ -8052,18 +8052,18 @@ const Lc = ({ transaction: e }) => {
|
|
8052
8052
|
}, Ma = () => {
|
8053
8053
|
Wt.length > 0 ? (Le({
|
8054
8054
|
...Nc,
|
8055
|
-
date: We(
|
8055
|
+
date: We(we()),
|
8056
8056
|
user_guid: Re?.user_guid || ""
|
8057
8057
|
}), me(
|
8058
8058
|
"addTransaction"
|
8059
8059
|
/* AddTransaction */
|
8060
8060
|
), l(F.TRANSACTIONS_CLICK_ADD)) : (be(!0), l(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
8061
|
-
},
|
8061
|
+
}, Ai = async () => {
|
8062
8062
|
He && await w(W), me("");
|
8063
8063
|
}, ka = () => {
|
8064
|
-
be(!1),
|
8064
|
+
be(!1), Ie(!0);
|
8065
8065
|
}, Ga = async () => {
|
8066
|
-
|
8066
|
+
Ie(!1), await r();
|
8067
8067
|
}, Wl = async () => {
|
8068
8068
|
K && !K.has_been_viewed && await L({ ...K, has_been_viewed: !0 }), me("");
|
8069
8069
|
};
|
@@ -8096,7 +8096,7 @@ const Lc = ({ transaction: e }) => {
|
|
8096
8096
|
{
|
8097
8097
|
onChange: En,
|
8098
8098
|
placeholder: _.action_bar_search_placeholder,
|
8099
|
-
searchValue:
|
8099
|
+
searchValue: ee
|
8100
8100
|
}
|
8101
8101
|
) }),
|
8102
8102
|
/* @__PURE__ */ t(
|
@@ -8153,13 +8153,13 @@ const Lc = ({ transaction: e }) => {
|
|
8153
8153
|
se,
|
8154
8154
|
{
|
8155
8155
|
ariaLabelClose: u.close_aria,
|
8156
|
-
isOpen:
|
8156
|
+
isOpen: he === "transaction" && !!K,
|
8157
8157
|
onClose: Wl,
|
8158
8158
|
title: _.details_title,
|
8159
|
-
children: K && /* @__PURE__ */ t(
|
8159
|
+
children: K && /* @__PURE__ */ t(Ei, { transaction: K })
|
8160
8160
|
}
|
8161
8161
|
),
|
8162
|
-
K &&
|
8162
|
+
K && he === "category" && /* @__PURE__ */ t(
|
8163
8163
|
sm,
|
8164
8164
|
{
|
8165
8165
|
onClose: () => {
|
@@ -8172,10 +8172,10 @@ const Lc = ({ transaction: e }) => {
|
|
8172
8172
|
se,
|
8173
8173
|
{
|
8174
8174
|
ariaLabelClose: u.close_aria,
|
8175
|
-
isOpen:
|
8175
|
+
isOpen: he === "addTransaction",
|
8176
8176
|
isPrimaryDisabled: !He,
|
8177
8177
|
onClose: () => me(""),
|
8178
|
-
onPrimaryAction:
|
8178
|
+
onPrimaryAction: Ai,
|
8179
8179
|
title: _.add_transaction_title,
|
8180
8180
|
children: /* @__PURE__ */ t(om, {})
|
8181
8181
|
}
|
@@ -8232,10 +8232,10 @@ const Lc = ({ transaction: e }) => {
|
|
8232
8232
|
{ id: 6, label: s.weekday_saturday }
|
8233
8233
|
], u = [...Array(31).keys()].map((y) => ({
|
8234
8234
|
id: y + 1,
|
8235
|
-
label:
|
8235
|
+
label: Mi(y + 1)
|
8236
8236
|
}));
|
8237
8237
|
u[30].label += ` (${s.last_day_of_month})`;
|
8238
|
-
const _ = u.slice(0, 15), h = u.slice(14), m = e === Ee.EveryWeek || e === Ee.EveryOtherWeek, p = e === Ee.TwiceAMonth || e === Ee.EveryMonth || e === Ee.EveryOtherMonth || e === Ee.EveryQuarter || e === Ee.EveryOtherQuarter, f = ic(
|
8238
|
+
const _ = u.slice(0, 15), h = u.slice(14), m = e === Ee.EveryWeek || e === Ee.EveryOtherWeek, p = e === Ee.TwiceAMonth || e === Ee.EveryMonth || e === Ee.EveryOtherMonth || e === Ee.EveryQuarter || e === Ee.EveryOtherQuarter, f = ic(we(), n), S = (y) => {
|
8239
8239
|
y && o(r_(y));
|
8240
8240
|
};
|
8241
8241
|
return /* @__PURE__ */ d(b, { gap: 24, sx: { m: 24 }, children: [
|
@@ -8334,7 +8334,7 @@ const Lc = ({ transaction: e }) => {
|
|
8334
8334
|
g.useEffect(() => {
|
8335
8335
|
s({
|
8336
8336
|
accounts: a,
|
8337
|
-
dateRange: { start: Ot(
|
8337
|
+
dateRange: { start: Ot(we(), 90), end: Qe(we()) },
|
8338
8338
|
custom: (w) => w.repeating_transaction_guid === n.guid
|
8339
8339
|
});
|
8340
8340
|
}, [n]);
|
@@ -8413,7 +8413,7 @@ const Lc = ({ transaction: e }) => {
|
|
8413
8413
|
isOpen: !!p && !!S,
|
8414
8414
|
onClose: () => f(""),
|
8415
8415
|
title: i.transaction_details_drawer_title,
|
8416
|
-
children: S && /* @__PURE__ */ t(
|
8416
|
+
children: S && /* @__PURE__ */ t(Ei, { transaction: S })
|
8417
8417
|
}
|
8418
8418
|
),
|
8419
8419
|
/* @__PURE__ */ t(
|
@@ -8576,7 +8576,7 @@ const Lc = ({ transaction: e }) => {
|
|
8576
8576
|
)
|
8577
8577
|
] });
|
8578
8578
|
}
|
8579
|
-
), oo = (e) => e.top_level_category_guid !== D.INCOME && e.transaction_type === Xt.DEBIT, dm = (e, n) => oo(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1,
|
8579
|
+
), oo = (e) => e.top_level_category_guid !== D.INCOME && e.transaction_type === Xt.DEBIT, dm = (e, n) => oo(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1, ki = (e) => e.top_level_category_guid === D.INCOME || e.top_level_category_guid === D.TRANSFER && e.transaction_type === Xt.CREDIT, Uc = (e, n) => ki(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description?.toLowerCase().includes(n.toLowerCase()) || e.feed_description?.toLowerCase().includes(n.toLowerCase()) : !1, Vc = x(
|
8580
8580
|
({
|
8581
8581
|
isIncome: e = !1,
|
8582
8582
|
label: n,
|
@@ -8586,14 +8586,14 @@ const Lc = ({ transaction: e }) => {
|
|
8586
8586
|
() => s.find((M) => M.guid === h),
|
8587
8587
|
[h, s]
|
8588
8588
|
), v = () => {
|
8589
|
-
_(!0), r(e ? { ...o, custom:
|
8589
|
+
_(!0), r(e ? { ...o, custom: ki } : { ...o, custom: oo });
|
8590
8590
|
}, N = async () => {
|
8591
8591
|
if (!w) {
|
8592
8592
|
R();
|
8593
8593
|
return;
|
8594
8594
|
}
|
8595
8595
|
i();
|
8596
|
-
const M = no(p,
|
8596
|
+
const M = no(p, Ve(w.date)), k = {
|
8597
8597
|
account_guid: w.account_guid,
|
8598
8598
|
amount: w.amount,
|
8599
8599
|
created_by: 0,
|
@@ -8635,7 +8635,7 @@ const Lc = ({ transaction: e }) => {
|
|
8635
8635
|
onSearch: (M) => {
|
8636
8636
|
r({
|
8637
8637
|
...o,
|
8638
|
-
custom: (k) => e ? M ? Uc(k, M) :
|
8638
|
+
custom: (k) => e ? M ? Uc(k, M) : ki(k) : M ? dm(k, M) : oo(k)
|
8639
8639
|
});
|
8640
8640
|
},
|
8641
8641
|
onSelected: (M) => m(M)
|
@@ -8820,16 +8820,16 @@ const Lc = ({ transaction: e }) => {
|
|
8820
8820
|
);
|
8821
8821
|
}), Vr = 58, Kc = x(() => {
|
8822
8822
|
const e = Te(), { onEvent: n } = q(), { selectedDay: i, setDateRange: a } = rt(), [o, r] = g.useState(
|
8823
|
-
fr(/* @__PURE__ */ new Date()) *
|
8823
|
+
fr(/* @__PURE__ */ new Date()) * xi + Vr
|
8824
8824
|
), s = (l) => {
|
8825
|
-
r(fr(l) *
|
8826
|
-
start:
|
8827
|
-
end:
|
8825
|
+
r(fr(l) * xi + Vr), a({
|
8826
|
+
start: Xe(l),
|
8827
|
+
end: Qe(l)
|
8828
8828
|
}), n(F.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
8829
8829
|
}, c = /* @__PURE__ */ t(
|
8830
8830
|
bo,
|
8831
8831
|
{
|
8832
|
-
minDate:
|
8832
|
+
minDate: Xe(/* @__PURE__ */ new Date()),
|
8833
8833
|
onMonthChange: s,
|
8834
8834
|
showDaysOutsideCurrentMonth: !0,
|
8835
8835
|
slots: {
|
@@ -8861,11 +8861,11 @@ const Lc = ({ transaction: e }) => {
|
|
8861
8861
|
minHeight: o
|
8862
8862
|
},
|
8863
8863
|
"&.MuiDateCalendar-root": {
|
8864
|
-
minHeight: o +
|
8864
|
+
minHeight: o + xi
|
8865
8865
|
},
|
8866
8866
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
8867
|
-
height:
|
8868
|
-
width:
|
8867
|
+
height: xi,
|
8868
|
+
width: xi,
|
8869
8869
|
margin: 0
|
8870
8870
|
},
|
8871
8871
|
"& .MuiDayCalendar-weekDayLabel": {
|
@@ -9009,7 +9009,7 @@ const Lc = ({ transaction: e }) => {
|
|
9009
9009
|
}
|
9010
9010
|
)
|
9011
9011
|
] });
|
9012
|
-
},
|
9012
|
+
}, Di = x(
|
9013
9013
|
({
|
9014
9014
|
recurrences: e,
|
9015
9015
|
isMini: n = !1,
|
@@ -9117,20 +9117,20 @@ const Lc = ({ transaction: e }) => {
|
|
9117
9117
|
}, G = () => {
|
9118
9118
|
const W = rn(s.start, 1);
|
9119
9119
|
S({
|
9120
|
-
start:
|
9121
|
-
end:
|
9120
|
+
start: Xe(W),
|
9121
|
+
end: Qe(W)
|
9122
9122
|
});
|
9123
9123
|
}, L = () => {
|
9124
9124
|
const W = Ht(s.start, 1);
|
9125
9125
|
S({
|
9126
|
-
start:
|
9127
|
-
end:
|
9126
|
+
start: Xe(W),
|
9127
|
+
end: Qe(W)
|
9128
9128
|
});
|
9129
9129
|
};
|
9130
9130
|
return /* @__PURE__ */ d(vn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
|
9131
9131
|
/* @__PURE__ */ t(vn, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ d(b, { sx: { gap: 16 }, children: [
|
9132
9132
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
9133
|
-
/* @__PURE__ */ t(
|
9133
|
+
/* @__PURE__ */ t(Ze, { sx: { px: 24 }, children: T(
|
9134
9134
|
e.header_title,
|
9135
9135
|
de(s.start, ie.MONTH_LONG)
|
9136
9136
|
) }),
|
@@ -9144,7 +9144,7 @@ const Lc = ({ transaction: e }) => {
|
|
9144
9144
|
children: /* @__PURE__ */ t(Ws, {})
|
9145
9145
|
}
|
9146
9146
|
),
|
9147
|
-
/* @__PURE__ */ t($e, { color: "primary", onClick: G, children: /* @__PURE__ */ t(
|
9147
|
+
/* @__PURE__ */ t($e, { color: "primary", onClick: G, children: /* @__PURE__ */ t(ze, {}) })
|
9148
9148
|
] })
|
9149
9149
|
] }),
|
9150
9150
|
/* @__PURE__ */ t(
|
@@ -9170,7 +9170,7 @@ const Lc = ({ transaction: e }) => {
|
|
9170
9170
|
}
|
9171
9171
|
),
|
9172
9172
|
n && /* @__PURE__ */ t(
|
9173
|
-
|
9173
|
+
Di,
|
9174
9174
|
{
|
9175
9175
|
onRecurrenceClick: M,
|
9176
9176
|
recurrences: I,
|
@@ -9193,14 +9193,14 @@ const Lc = ({ transaction: e }) => {
|
|
9193
9193
|
)
|
9194
9194
|
] }),
|
9195
9195
|
w === 0 && /* @__PURE__ */ t(
|
9196
|
-
|
9196
|
+
Di,
|
9197
9197
|
{
|
9198
9198
|
onRecurrenceClick: M,
|
9199
9199
|
recurrences: I
|
9200
9200
|
}
|
9201
9201
|
),
|
9202
9202
|
w === 1 && /* @__PURE__ */ t(
|
9203
|
-
|
9203
|
+
Di,
|
9204
9204
|
{
|
9205
9205
|
onRecurrenceClick: k,
|
9206
9206
|
recurrences: _
|
@@ -9211,7 +9211,7 @@ const Lc = ({ transaction: e }) => {
|
|
9211
9211
|
n && /* @__PURE__ */ t(vn, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ d(b, { gap: 24, children: [
|
9212
9212
|
/* @__PURE__ */ t(Kc, {}),
|
9213
9213
|
/* @__PURE__ */ t(
|
9214
|
-
|
9214
|
+
Di,
|
9215
9215
|
{
|
9216
9216
|
onRecurrenceClick: k,
|
9217
9217
|
recurrences: f || _,
|
@@ -9229,9 +9229,9 @@ const Lc = ({ transaction: e }) => {
|
|
9229
9229
|
c(i);
|
9230
9230
|
}, [i]), g.useEffect(() => {
|
9231
9231
|
r && (h({
|
9232
|
-
dateRange: { start: Ot(
|
9232
|
+
dateRange: { start: Ot(we(), 90), end: pn() },
|
9233
9233
|
accounts: s
|
9234
|
-
}), _({ start:
|
9234
|
+
}), _({ start: Xe(/* @__PURE__ */ new Date()), end: Qe(/* @__PURE__ */ new Date()) }), u().finally());
|
9235
9235
|
}, [r]), o ? /* @__PURE__ */ d(
|
9236
9236
|
Ct,
|
9237
9237
|
{
|
@@ -9275,7 +9275,7 @@ const Lc = ({ transaction: e }) => {
|
|
9275
9275
|
/* @__PURE__ */ t(Kc, {}),
|
9276
9276
|
!s && /* @__PURE__ */ t(P, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
9277
9277
|
/* @__PURE__ */ t(
|
9278
|
-
|
9278
|
+
Di,
|
9279
9279
|
{
|
9280
9280
|
isMini: !0,
|
9281
9281
|
onResetClick: i ? () => o(i) : void 0,
|
@@ -9295,7 +9295,7 @@ const Lc = ({ transaction: e }) => {
|
|
9295
9295
|
l && u(i);
|
9296
9296
|
}, [l]), g.useEffect(() => {
|
9297
9297
|
_.length > 0 && (o({
|
9298
|
-
dateRange: { start: Ot(
|
9298
|
+
dateRange: { start: Ot(we(), 90), end: pn() },
|
9299
9299
|
accounts: _
|
9300
9300
|
}), s().finally());
|
9301
9301
|
}, [_]), !c || !l ? /* @__PURE__ */ t(ce, {}) : /* @__PURE__ */ t(
|
@@ -9406,22 +9406,22 @@ const Lc = ({ transaction: e }) => {
|
|
9406
9406
|
h(r);
|
9407
9407
|
}, [r]), g.useEffect(() => {
|
9408
9408
|
u && (N({
|
9409
|
-
dateRange: { start: Ot(
|
9409
|
+
dateRange: { start: Ot(we(), 90), end: pn() },
|
9410
9410
|
accounts: _
|
9411
|
-
}), I({ start:
|
9411
|
+
}), I({ start: Xe(/* @__PURE__ */ new Date()), end: Qe(/* @__PURE__ */ new Date()) }), m().finally(), i(!0));
|
9412
9412
|
}, [u]), g.useEffect(() => {
|
9413
9413
|
n && a(F.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
9414
9414
|
state: p.length > 0 ? "default" : "zeroState"
|
9415
9415
|
});
|
9416
9416
|
}, [n]);
|
9417
9417
|
const k = c <= 288, G = c >= 450, L = g.useMemo(() => {
|
9418
|
-
const
|
9418
|
+
const he = [
|
9419
9419
|
{ color: o.palette.success.main, percentage: `${y / f}` }
|
9420
9420
|
];
|
9421
|
-
return S &&
|
9421
|
+
return S && he.push({
|
9422
9422
|
color: o.palette.error.main,
|
9423
9423
|
percentage: `${S / f}`
|
9424
|
-
}),
|
9424
|
+
}), he;
|
9425
9425
|
}, [
|
9426
9426
|
y,
|
9427
9427
|
f,
|
@@ -9434,10 +9434,10 @@ const Lc = ({ transaction: e }) => {
|
|
9434
9434
|
), e();
|
9435
9435
|
};
|
9436
9436
|
if (!l || !n || !v) return /* @__PURE__ */ t(ce, { height: 100 });
|
9437
|
-
const
|
9437
|
+
const ee = 32, ue = p.length > 0, _e = () => ue ? k ? /* @__PURE__ */ t(
|
9438
9438
|
bm,
|
9439
9439
|
{
|
9440
|
-
logoSize:
|
9440
|
+
logoSize: ee,
|
9441
9441
|
maxLogos: 3,
|
9442
9442
|
upcomingRecurrences: p.slice(0, 3)
|
9443
9443
|
}
|
@@ -9524,14 +9524,14 @@ const Lc = ({ transaction: e }) => {
|
|
9524
9524
|
gap: 16,
|
9525
9525
|
mt: 4
|
9526
9526
|
},
|
9527
|
-
children: Le.map((
|
9527
|
+
children: Le.map((he, me) => /* @__PURE__ */ t(
|
9528
9528
|
ym,
|
9529
9529
|
{
|
9530
|
-
amount:
|
9531
|
-
bgcolor:
|
9530
|
+
amount: he.amount,
|
9531
|
+
bgcolor: he.bgColor,
|
9532
9532
|
isLargeScreen: G,
|
9533
9533
|
isSmallScreen: k,
|
9534
|
-
label:
|
9534
|
+
label: he.label
|
9535
9535
|
},
|
9536
9536
|
`recurrence-legend-${me}`
|
9537
9537
|
))
|
@@ -9563,7 +9563,7 @@ class Em {
|
|
9563
9563
|
transactions = [];
|
9564
9564
|
repeatingTransactions = [];
|
9565
9565
|
selectedDay;
|
9566
|
-
dateRange = { start:
|
9566
|
+
dateRange = { start: Xe(we()), end: Qe(we()) };
|
9567
9567
|
isDataLoaded = !1;
|
9568
9568
|
constructor(n) {
|
9569
9569
|
this.globalStore = n, this.api = new Yr(n.endpoint, n.sessionToken), Fe(this);
|
@@ -9589,7 +9589,7 @@ class Em {
|
|
9589
9589
|
*/
|
9590
9590
|
get upcomingRecurrences() {
|
9591
9591
|
return this.recurrences.filter(
|
9592
|
-
(n) => sn(n.expectedDate, Ot(
|
9592
|
+
(n) => sn(n.expectedDate, Ot(we(), 3)) && ot(n.expectedDate, this.dateRange.end) && n.status === et.Upcoming
|
9593
9593
|
);
|
9594
9594
|
}
|
9595
9595
|
/**
|
@@ -9625,7 +9625,7 @@ class Em {
|
|
9625
9625
|
);
|
9626
9626
|
}
|
9627
9627
|
get nextIncomeRecurrence() {
|
9628
|
-
return this.upcomingIncome.find((n) => sn(n.expectedDate,
|
9628
|
+
return this.upcomingIncome.find((n) => sn(n.expectedDate, we()));
|
9629
9629
|
}
|
9630
9630
|
/**
|
9631
9631
|
* Returns the expense recurrences for the current month.
|
@@ -9711,7 +9711,7 @@ class Em {
|
|
9711
9711
|
loadRepeatingTransactions = async () => {
|
9712
9712
|
try {
|
9713
9713
|
const n = await this.api.getRepeatingTransactions();
|
9714
|
-
|
9714
|
+
J(() => {
|
9715
9715
|
this.repeatingTransactions = Fa(
|
9716
9716
|
this.globalStore.accountStore.visibleAccounts,
|
9717
9717
|
n,
|
@@ -9733,7 +9733,7 @@ class Em {
|
|
9733
9733
|
await this.globalStore.transactionStore.updateTransaction({
|
9734
9734
|
...i,
|
9735
9735
|
repeating_transaction_guid: a.guid
|
9736
|
-
}),
|
9736
|
+
}), J(() => {
|
9737
9737
|
this.repeatingTransactions = [
|
9738
9738
|
...this.repeatingTransactions,
|
9739
9739
|
...Fa(
|
@@ -9753,7 +9753,7 @@ class Em {
|
|
9753
9753
|
*/
|
9754
9754
|
deleteRepeatingTransaction = async (n) => {
|
9755
9755
|
try {
|
9756
|
-
await this.api.deleteRepeatingTransaction(n),
|
9756
|
+
await this.api.deleteRepeatingTransaction(n), J(() => {
|
9757
9757
|
this.repeatingTransactions = [
|
9758
9758
|
...this.repeatingTransactions.filter((i) => i.guid !== n)
|
9759
9759
|
];
|
@@ -9772,7 +9772,7 @@ class Em {
|
|
9772
9772
|
(o) => o.guid === i.guid
|
9773
9773
|
);
|
9774
9774
|
if (a < 0) return;
|
9775
|
-
|
9775
|
+
J(() => {
|
9776
9776
|
this.repeatingTransactions = [
|
9777
9777
|
...this.repeatingTransactions.slice(0, a),
|
9778
9778
|
...Fa(
|
@@ -9874,7 +9874,7 @@ const Tm = {
|
|
9874
9874
|
type: kt.Date,
|
9875
9875
|
valueFormatter: (a) => T(
|
9876
9876
|
n.day_of_every_month,
|
9877
|
-
|
9877
|
+
Mi(a <= 31 ? a : new Date(a).getDate())
|
9878
9878
|
)
|
9879
9879
|
})), Im(e) && i.push({
|
9880
9880
|
label: n.credit_limit,
|
@@ -9980,7 +9980,7 @@ const Tm = {
|
|
9980
9980
|
children: n ? /* @__PURE__ */ t(ge, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
9981
9981
|
}
|
9982
9982
|
);
|
9983
|
-
},
|
9983
|
+
}, Gi = x(Nm), Rm = ({ remaining: e }) => /* @__PURE__ */ t(
|
9984
9984
|
j,
|
9985
9985
|
{
|
9986
9986
|
sx: {
|
@@ -9996,7 +9996,7 @@ const Tm = {
|
|
9996
9996
|
children: /* @__PURE__ */ t(Mo, { remaining: e })
|
9997
9997
|
}
|
9998
9998
|
);
|
9999
|
-
var
|
9999
|
+
var Bi = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(Bi || {});
|
10000
10000
|
const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
10001
10001
|
/* @__PURE__ */ d(j, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
10002
10002
|
/* @__PURE__ */ d(b, { alignItems: "center", height: 32, width: 32, children: [
|
@@ -10005,7 +10005,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10005
10005
|
] }),
|
10006
10006
|
/* @__PURE__ */ t(C, { sx: { flexGrow: 1, fontSize: 13 }, children: e.name }),
|
10007
10007
|
/* @__PURE__ */ t(
|
10008
|
-
|
10008
|
+
je,
|
10009
10009
|
{
|
10010
10010
|
amount: e.amount,
|
10011
10011
|
bold: !0,
|
@@ -10030,9 +10030,9 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10030
10030
|
px: 24
|
10031
10031
|
},
|
10032
10032
|
children: [
|
10033
|
-
/* @__PURE__ */ t(C, { bold: !0, sx: { fontSize: 12 }, children: n ===
|
10033
|
+
/* @__PURE__ */ t(C, { bold: !0, sx: { fontSize: 12 }, children: n === Bi.EXPENSE ? i.expenses : i.income }),
|
10034
10034
|
/* @__PURE__ */ d(C, { bold: !0, sx: { fontSize: 13 }, children: [
|
10035
|
-
n ===
|
10035
|
+
n === Bi.EXPENSE ? "-" : "+",
|
10036
10036
|
H(e, "0,0.00")
|
10037
10037
|
] })
|
10038
10038
|
]
|
@@ -10041,7 +10041,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10041
10041
|
/* @__PURE__ */ t(P, {})
|
10042
10042
|
] });
|
10043
10043
|
}, Zr = x(Lm), da = (e, n) => (i) => i.accountGuid === e.guid && (So(i.expectedDate) || sn(i.expectedDate, n.start)) && ot(i.expectedDate, n.end), Mm = () => {
|
10044
|
-
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { dateRange: o, selectedCashAccounts: r } =
|
10044
|
+
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { dateRange: o, selectedCashAccounts: r } = Si();
|
10045
10045
|
return /* @__PURE__ */ d(b, { children: [
|
10046
10046
|
/* @__PURE__ */ d(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
10047
10047
|
/* @__PURE__ */ t(C, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
@@ -10073,7 +10073,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10073
10073
|
},
|
10074
10074
|
children: [
|
10075
10075
|
/* @__PURE__ */ t(
|
10076
|
-
|
10076
|
+
Gi,
|
10077
10077
|
{
|
10078
10078
|
account: s,
|
10079
10079
|
listItemProps: {
|
@@ -10087,7 +10087,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10087
10087
|
c.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
10088
10088
|
ae,
|
10089
10089
|
{
|
10090
|
-
subheader: /* @__PURE__ */ t(Zr, { total: u, type:
|
10090
|
+
subheader: /* @__PURE__ */ t(Zr, { total: u, type: Bi.INCOME }),
|
10091
10091
|
sx: { width: "100%" },
|
10092
10092
|
children: c.map((h) => /* @__PURE__ */ t(Xr, { recurrence: h }, h.repeatingTransactionGuid))
|
10093
10093
|
}
|
@@ -10095,7 +10095,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10095
10095
|
l.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
10096
10096
|
ae,
|
10097
10097
|
{
|
10098
|
-
subheader: /* @__PURE__ */ t(Zr, { total: _, type:
|
10098
|
+
subheader: /* @__PURE__ */ t(Zr, { total: _, type: Bi.EXPENSE }),
|
10099
10099
|
sx: { width: "100%" },
|
10100
10100
|
children: l.map((h) => /* @__PURE__ */ t(Xr, { recurrence: h }, h.repeatingTransactionGuid))
|
10101
10101
|
}
|
@@ -10113,7 +10113,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10113
10113
|
}) })
|
10114
10114
|
] });
|
10115
10115
|
}, km = x(Mm), Gm = () => {
|
10116
|
-
const { availableWidth: e } = $n(), n = Te(), { cashflow: i } = A(), { upcomingExpenses: a, upcomingIncome: o } = rt(), { dateRange: r, selectedCashAccounts: s } =
|
10116
|
+
const { availableWidth: e } = $n(), n = Te(), { cashflow: i } = A(), { upcomingExpenses: a, upcomingIncome: o } = rt(), { dateRange: r, selectedCashAccounts: s } = Si(), c = [
|
10117
10117
|
{
|
10118
10118
|
field: "account",
|
10119
10119
|
flex: 1.5,
|
@@ -10173,9 +10173,9 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10173
10173
|
}
|
10174
10174
|
], l = g.useMemo(() => s.map((u) => {
|
10175
10175
|
const _ = a.filter(
|
10176
|
-
da(u, { start:
|
10176
|
+
da(u, { start: we(), end: Fn(we(), 30) })
|
10177
10177
|
).reduce((p, f) => p + f.amount, 0), h = o.filter(
|
10178
|
-
da(u, { start:
|
10178
|
+
da(u, { start: we(), end: Fn(we(), 30) })
|
10179
10179
|
).reduce((p, f) => p + f.amount, 0), m = (u.balance || 0) + h - _;
|
10180
10180
|
return {
|
10181
10181
|
account: u,
|
@@ -10287,7 +10287,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10287
10287
|
),
|
10288
10288
|
/* @__PURE__ */ t(C, { variant: "Small", children: `${f} ${p ? `*${p}` : ""}` })
|
10289
10289
|
] }),
|
10290
|
-
/* @__PURE__ */ t(
|
10290
|
+
/* @__PURE__ */ t(je, { amount: u.balance, bold: !0, variant: "Small" })
|
10291
10291
|
]
|
10292
10292
|
}
|
10293
10293
|
),
|
@@ -10302,7 +10302,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10302
10302
|
py: 12,
|
10303
10303
|
children: [
|
10304
10304
|
/* @__PURE__ */ t(C, { variant: "Small", children: i.projected_income }),
|
10305
|
-
/* @__PURE__ */ t(
|
10305
|
+
/* @__PURE__ */ t(je, { amount: u.income, bold: !0, symbol: "+", variant: "Small" })
|
10306
10306
|
]
|
10307
10307
|
}
|
10308
10308
|
),
|
@@ -10317,7 +10317,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10317
10317
|
py: 12,
|
10318
10318
|
children: [
|
10319
10319
|
/* @__PURE__ */ t(C, { variant: "Small", children: i.projected_expenses }),
|
10320
|
-
/* @__PURE__ */ t(
|
10320
|
+
/* @__PURE__ */ t(je, { amount: u.expenses, bold: !0, symbol: "-", variant: "Small" })
|
10321
10321
|
]
|
10322
10322
|
}
|
10323
10323
|
),
|
@@ -10406,16 +10406,16 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10406
10406
|
padding: n ? "14px 16px" : 0,
|
10407
10407
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
10408
10408
|
children: [
|
10409
|
-
!n && /* @__PURE__ */ t(
|
10409
|
+
!n && /* @__PURE__ */ t(je, { amount: e, component: "h2", variant: "H2" }),
|
10410
10410
|
/* @__PURE__ */ d(b, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
|
10411
10411
|
/* @__PURE__ */ t(C, { bold: i, variant: "Small", children: a }),
|
10412
10412
|
r
|
10413
10413
|
] }),
|
10414
|
-
n && /* @__PURE__ */ t(
|
10414
|
+
n && /* @__PURE__ */ t(je, { amount: e, component: "h2", symbol: o, variant: "Small" })
|
10415
10415
|
]
|
10416
10416
|
}
|
10417
10417
|
), qr = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (So(i.expectedDate) || sn(i.expectedDate, n.start)) && ot(i.expectedDate, n.end), Fm = () => {
|
10418
|
-
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { selectedAccountGuids: o } = re(), { dateRange: r, selectedCashAccounts: s } =
|
10418
|
+
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { selectedAccountGuids: o } = re(), { dateRange: r, selectedCashAccounts: s } = Si(), { userProfile: c } = ft(), [l, u] = g.useState(!1), _ = g.useMemo(
|
10419
10419
|
() => i.filter(qr(o, r)),
|
10420
10420
|
[r, o, i]
|
10421
10421
|
), h = g.useMemo(
|
@@ -10595,28 +10595,28 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10595
10595
|
transform: rotate(360deg);
|
10596
10596
|
}
|
10597
10597
|
`, Ym = () => {
|
10598
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = rt(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = Do(), { isDirty: r } =
|
10599
|
-
() => h.find((
|
10598
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = rt(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = Do(), { isDirty: r } = Si(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: l } = re(), { filter: u, setFilter: _, transactions: h } = ke(), m = Te(), [p, f] = xt(!0), [S, y] = g.useState(Ee.EveryMonth), [E, I] = g.useState(1), [w, v] = g.useState(15), [N, R] = xt(!1), [M, k] = xt(1), [G, L] = xt([]), [W, Y] = xt(""), ee = g.useMemo(
|
10599
|
+
() => h.find((he) => he.guid === W),
|
10600
10600
|
[W, h]
|
10601
|
-
),
|
10602
|
-
(
|
10601
|
+
), ue = !!n.filter(
|
10602
|
+
(he) => he.repeating_transaction_type === cn.Income
|
10603
10603
|
).length, _e = async () => {
|
10604
10604
|
k(2), l(
|
10605
10605
|
// Beginning of the month, 90 days before today
|
10606
|
-
|
10607
|
-
|
10608
|
-
), _({ ...u, custom:
|
10606
|
+
Xe(Ot(we(), 90)),
|
10607
|
+
we()
|
10608
|
+
), _({ ...u, custom: ki }), k(3);
|
10609
10609
|
}, Le = async () => {
|
10610
10610
|
if (!(G.length < 1)) {
|
10611
10611
|
R(!0);
|
10612
|
-
for (let
|
10613
|
-
const me = G[
|
10612
|
+
for (let he = 0; he < G.length; he++) {
|
10613
|
+
const me = G[he], qe = no(S, Ve(me.date)), $ = {
|
10614
10614
|
account_guid: me.account_guid,
|
10615
10615
|
amount: me.amount,
|
10616
10616
|
merchant_guid: me.merchant_guid,
|
10617
10617
|
description: me.feed_description || me.description,
|
10618
|
-
predicted_occurs_on: fa(
|
10619
|
-
recurrence_day:
|
10618
|
+
predicted_occurs_on: fa(qe, { representation: "date" }),
|
10619
|
+
recurrence_day: qe.getDay(),
|
10620
10620
|
recurrence_type: S,
|
10621
10621
|
repeating_transaction_type: cn.Income,
|
10622
10622
|
transaction_type: me.transaction_type
|
@@ -10625,7 +10625,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10625
10625
|
}
|
10626
10626
|
await o();
|
10627
10627
|
}
|
10628
|
-
}, Re = !
|
10628
|
+
}, Re = !ee && p || !ee && G.length < 1;
|
10629
10629
|
return c ? /* @__PURE__ */ d(
|
10630
10630
|
O,
|
10631
10631
|
{
|
@@ -10667,14 +10667,14 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10667
10667
|
children: [
|
10668
10668
|
/* @__PURE__ */ t(Qt, { pb: 12, children: i.add_income_title }),
|
10669
10669
|
/* @__PURE__ */ t(X, { mb: 24, children: i.add_income_description }),
|
10670
|
-
G.length > 0 && !
|
10671
|
-
/* @__PURE__ */ t(ae, { children: G.map((
|
10670
|
+
G.length > 0 && !ee && /* @__PURE__ */ d(Z, { children: [
|
10671
|
+
/* @__PURE__ */ t(ae, { children: G.map((he, me) => /* @__PURE__ */ d(g.Fragment, { children: [
|
10672
10672
|
/* @__PURE__ */ t(Aa, { bgcolor: "background.paper", children: ya(
|
10673
|
-
We(
|
10673
|
+
We(he.nextDate || he.date)
|
10674
10674
|
) }),
|
10675
|
-
/* @__PURE__ */ t(Go, { transaction:
|
10675
|
+
/* @__PURE__ */ t(Go, { transaction: he }),
|
10676
10676
|
me !== G.length - 1 && /* @__PURE__ */ t(P, {})
|
10677
|
-
] },
|
10677
|
+
] }, he.guid)) }),
|
10678
10678
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", children: [
|
10679
10679
|
/* @__PURE__ */ t(P, { sx: { flexGrow: 1 } }),
|
10680
10680
|
/* @__PURE__ */ t(
|
@@ -10691,17 +10691,17 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10691
10691
|
Wc,
|
10692
10692
|
{
|
10693
10693
|
bgcolor: "background.paper",
|
10694
|
-
onSearch: (
|
10694
|
+
onSearch: (he) => _({
|
10695
10695
|
...u,
|
10696
|
-
custom: (me) =>
|
10696
|
+
custom: (me) => he ? Uc(me, he) : ki(me)
|
10697
10697
|
}),
|
10698
|
-
onSelected: (
|
10699
|
-
Y(
|
10698
|
+
onSelected: (he) => {
|
10699
|
+
Y(he), f(!1);
|
10700
10700
|
}
|
10701
10701
|
}
|
10702
10702
|
),
|
10703
|
-
!
|
10704
|
-
|
10703
|
+
!ue && r && /* @__PURE__ */ t(X, { color: "error", mt: 16, children: i.confirm_error }),
|
10704
|
+
ee && /* @__PURE__ */ d(Z, { children: [
|
10705
10705
|
/* @__PURE__ */ t(
|
10706
10706
|
$c,
|
10707
10707
|
{
|
@@ -10712,21 +10712,21 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10712
10712
|
onFrequencyChange: y,
|
10713
10713
|
onSecondDayChange: v,
|
10714
10714
|
secondDay: w,
|
10715
|
-
transaction:
|
10715
|
+
transaction: ee
|
10716
10716
|
}
|
10717
10717
|
),
|
10718
10718
|
/* @__PURE__ */ d(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10719
10719
|
/* @__PURE__ */ t(
|
10720
10720
|
te,
|
10721
10721
|
{
|
10722
|
-
"aria-disabled": !
|
10722
|
+
"aria-disabled": !ee,
|
10723
10723
|
onClick: () => {
|
10724
|
-
const
|
10725
|
-
|
10726
|
-
...
|
10727
|
-
nextDate: no(S,
|
10724
|
+
const he = [...G];
|
10725
|
+
he.push({
|
10726
|
+
...ee,
|
10727
|
+
nextDate: no(S, Ve(ee.date)),
|
10728
10728
|
frequency: S
|
10729
|
-
}), L(
|
10729
|
+
}), L(he), Y("");
|
10730
10730
|
},
|
10731
10731
|
variant: "contained",
|
10732
10732
|
children: a.confirm_button
|
@@ -10744,7 +10744,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10744
10744
|
)
|
10745
10745
|
] })
|
10746
10746
|
] }),
|
10747
|
-
G.length > 0 && !
|
10747
|
+
G.length > 0 && !ee && /* @__PURE__ */ d(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10748
10748
|
/* @__PURE__ */ t(
|
10749
10749
|
te,
|
10750
10750
|
{
|
@@ -10778,7 +10778,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10778
10778
|
setSelectedAccounts: o,
|
10779
10779
|
shouldDisableNextDate: r,
|
10780
10780
|
shouldDisablePrevDate: s
|
10781
|
-
} = re(), { onEvent: c } = q(), { visibleCashAccounts: l } = Se(), { setFilter: u } = ke(), { userProfile: _ } = ft(), { dateRange: h, setSelectedCashAccounts: m } =
|
10781
|
+
} = re(), { onEvent: c } = q(), { visibleCashAccounts: l } = Se(), { setFilter: u } = ke(), { userProfile: _ } = ft(), { dateRange: h, setSelectedCashAccounts: m } = Si(), { loadRepeatingTransactions: p, setDateRange: f } = rt(), { cashflow: S } = A(), { isCopyLoaded: y, isInitialized: E } = re(), [I, w] = g.useState(!1);
|
10782
10782
|
return g.useEffect(() => {
|
10783
10783
|
E && (f(h), p().finally());
|
10784
10784
|
}, [E]), g.useEffect(() => {
|
@@ -10788,7 +10788,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10788
10788
|
(R) => a.includes(R.guid) && v.includes(R.guid)
|
10789
10789
|
);
|
10790
10790
|
m(N), u({
|
10791
|
-
dateRange: { start: Ot(
|
10791
|
+
dateRange: { start: Ot(we(), 90), end: pn() },
|
10792
10792
|
accounts: N.map((R) => R.guid)
|
10793
10793
|
});
|
10794
10794
|
}, [l, i]), !y || !E ? /* @__PURE__ */ t(ce, {}) : _?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ d(
|
@@ -10864,7 +10864,7 @@ class b2 {
|
|
10864
10864
|
}
|
10865
10865
|
let Zm = class {
|
10866
10866
|
// Cashflow is hard-coded to display 30 days starting from today
|
10867
|
-
dateRange = { start:
|
10867
|
+
dateRange = { start: we(), end: Fn(we(), 30) };
|
10868
10868
|
isDirty = !1;
|
10869
10869
|
nextIncome = void 0;
|
10870
10870
|
upcomingExpenses = [];
|
@@ -10874,13 +10874,13 @@ let Zm = class {
|
|
10874
10874
|
}
|
10875
10875
|
// Returns the number of days until the next income activity or 0 if there is no income activity
|
10876
10876
|
get daysUntilNextIncome() {
|
10877
|
-
return this.nextIncome ? Math.abs(Vd(
|
10877
|
+
return this.nextIncome ? Math.abs(Vd(we(), this.nextIncome.expectedDate)) : 0;
|
10878
10878
|
}
|
10879
10879
|
// Returns the expenses (Activities) until the next income activity or the end of the month
|
10880
10880
|
// if there is no income activity
|
10881
10881
|
get expensesTilNextIncome() {
|
10882
10882
|
return this.upcomingExpenses.filter(
|
10883
|
-
(n) => ot(n.expectedDate, this.nextIncome?.expectedDate ||
|
10883
|
+
(n) => ot(n.expectedDate, this.nextIncome?.expectedDate || Qe(/* @__PURE__ */ new Date()))
|
10884
10884
|
);
|
10885
10885
|
}
|
10886
10886
|
setNextIncome = (n) => {
|
@@ -11381,7 +11381,7 @@ const Sn = () => {
|
|
11381
11381
|
return isNaN(i) ? 0 : i;
|
11382
11382
|
}, Ko = (e, n) => {
|
11383
11383
|
const i = [];
|
11384
|
-
let a =
|
11384
|
+
let a = Xe(n?.start ?? Ht(/* @__PURE__ */ new Date(), 5));
|
11385
11385
|
const o = n?.end ?? /* @__PURE__ */ new Date();
|
11386
11386
|
for (; ot(a, o); )
|
11387
11387
|
i.push({
|
@@ -11402,8 +11402,8 @@ const Sn = () => {
|
|
11402
11402
|
const n = [], i = e.filter(
|
11403
11403
|
(r) => r.top_level_category_guid !== D.INCOME && r.top_level_category_guid !== D.TRANSFER && r.total > 0
|
11404
11404
|
);
|
11405
|
-
let a =
|
11406
|
-
const o =
|
11405
|
+
let a = Xe(Ht(/* @__PURE__ */ new Date(), 5));
|
11406
|
+
const o = Qe(/* @__PURE__ */ new Date());
|
11407
11407
|
for (; ot(a, o); )
|
11408
11408
|
n.push({
|
11409
11409
|
x: de(a, ie.MONTH_SHORT),
|
@@ -11428,7 +11428,7 @@ const Sn = () => {
|
|
11428
11428
|
}
|
11429
11429
|
return c;
|
11430
11430
|
}, dp = () => {
|
11431
|
-
const e =
|
11431
|
+
const e = Ye(), { selectedAccount: n } = Vt(), { monthlyCategoryTotals: i } = Ue(), { trends: a } = A(), o = [e.palette.chart?.chart1, e.palette.chart?.chart2], r = cp(i, n.account_type), s = lp(r, n.account_type, a), c = [le.LOAN, le.MORTGAGE].includes(n.account_type);
|
11432
11432
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
11433
11433
|
ni,
|
11434
11434
|
{
|
@@ -11462,7 +11462,7 @@ const Sn = () => {
|
|
11462
11462
|
_n,
|
11463
11463
|
{
|
11464
11464
|
sx: { pb: 0 },
|
11465
|
-
title: /* @__PURE__ */ t(
|
11465
|
+
title: /* @__PURE__ */ t(Ze, { sx: { pb: 4 }, children: de(/* @__PURE__ */ new Date(), ie.MONTH_LONG) })
|
11466
11466
|
}
|
11467
11467
|
),
|
11468
11468
|
/* @__PURE__ */ t(Pt, { sx: { p: 0 }, children: /* @__PURE__ */ t(_p, {}) })
|
@@ -11520,7 +11520,7 @@ const qc = ({
|
|
11520
11520
|
onClickArea: r,
|
11521
11521
|
onHoverArea: s
|
11522
11522
|
}) => {
|
11523
|
-
const c =
|
11523
|
+
const c = Ye(), { onEvent: l } = q(), u = a.filter((v) => !v.is_impossible), _ = [
|
11524
11524
|
...new Set(
|
11525
11525
|
u.flatMap((v) => v.dataset.map((N) => new Date(N.x).getTime()))
|
11526
11526
|
)
|
@@ -11645,7 +11645,7 @@ const qc = ({
|
|
11645
11645
|
}
|
11646
11646
|
},
|
11647
11647
|
children: [
|
11648
|
-
/* @__PURE__ */ t(_n, { sx: { pb: 0 }, title: /* @__PURE__ */ t(
|
11648
|
+
/* @__PURE__ */ t(_n, { sx: { pb: 0 }, title: /* @__PURE__ */ t(Ze, { sx: { pb: 4 }, children: n.details_chart_title }) }),
|
11649
11649
|
/* @__PURE__ */ t(Pt, { sx: { p: 0 }, children: /* @__PURE__ */ t(qc, { debts: [i], height: 250 }) })
|
11650
11650
|
]
|
11651
11651
|
}
|
@@ -12474,9 +12474,9 @@ const zt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
12474
12474
|
const L = (_e) => u(_e), W = () => {
|
12475
12475
|
const _e = v.find((Re) => Re.guid === l), Le = G.find((Re) => Re.guid === l);
|
12476
12476
|
_e && E(_e), Le && w(Le), a(!0);
|
12477
|
-
}, Y = () => p(F.DEBTS_CLICK_FILTER),
|
12477
|
+
}, Y = () => p(F.DEBTS_CLICK_FILTER), ee = () => {
|
12478
12478
|
c(!0), p(F.DEBTS_CLICK_SNOWBALL_CTA);
|
12479
|
-
},
|
12479
|
+
}, ue = () => {
|
12480
12480
|
r(!0), p(F.DEBTS_CLICK_PAYDOWN);
|
12481
12481
|
};
|
12482
12482
|
return !N || !f || !S ? /* @__PURE__ */ t(ce, {}) : /* @__PURE__ */ d(
|
@@ -12485,7 +12485,7 @@ const zt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
12485
12485
|
accountOptions: v,
|
12486
12486
|
actions: [
|
12487
12487
|
/* @__PURE__ */ t(Up, {}, "prioritize-debts"),
|
12488
|
-
/* @__PURE__ */ t(Kp, { onClick:
|
12488
|
+
/* @__PURE__ */ t(Kp, { onClick: ue }, "extra-paydown")
|
12489
12489
|
],
|
12490
12490
|
onAccountsFilterClick: Y,
|
12491
12491
|
onBackClick: e,
|
@@ -12517,7 +12517,7 @@ const zt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
12517
12517
|
ep,
|
12518
12518
|
{
|
12519
12519
|
debts: G,
|
12520
|
-
onClickCta:
|
12520
|
+
onClickCta: ee,
|
12521
12521
|
sx: { mb: h ? "0px" : "64px" }
|
12522
12522
|
}
|
12523
12523
|
)
|
@@ -12609,7 +12609,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12609
12609
|
}
|
12610
12610
|
},
|
12611
12611
|
children: e.map((i, a) => /* @__PURE__ */ d(g.Fragment, { children: [
|
12612
|
-
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(
|
12612
|
+
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(ze, {}), children: /* @__PURE__ */ d(ge, { onClick: () => n(i.key), children: [
|
12613
12613
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
12614
12614
|
Ft,
|
12615
12615
|
{
|
@@ -12742,7 +12742,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12742
12742
|
unitsPerSegment: h,
|
12743
12743
|
isFinacialStrengthGraph: m
|
12744
12744
|
}) => {
|
12745
|
-
const p =
|
12745
|
+
const p = Ye(), f = [
|
12746
12746
|
{ offset: "13.62%", color: p.palette.chartMono.chartMono2 },
|
12747
12747
|
{ offset: "36.67%", color: p.palette.chartMono.chartMono3 },
|
12748
12748
|
{ offset: "59.72%", color: p.palette.chartMono.chartMono4 },
|
@@ -12796,7 +12796,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12796
12796
|
footerRightContent: _,
|
12797
12797
|
isFinacialStrengthGraph: h = !1
|
12798
12798
|
}) => {
|
12799
|
-
const m =
|
12799
|
+
const m = Ye(), p = -Math.PI / 1.35, f = Math.PI / 1.35, S = f - p, y = S / (r - o), E = (n - o) * y, I = p + E + 0.02, w = i !== "SM" ? 0.1 : 0.12, v = e, N = e * (1 - w), R = v * 2.5, M = R / 2, k = R / 2, G = (N + v) / 2, L = n !== 25 && n !== 50 && n !== 75 && n !== 100 ? 0 : 0.12, [W, Y] = t1(G, I, L), ee = n / 25, ue = {
|
12800
12800
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
12801
12801
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
12802
12802
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
@@ -12847,7 +12847,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12847
12847
|
outterArcRadius: v,
|
12848
12848
|
progressEndAngle: I,
|
12849
12849
|
totalAngularSpan: S,
|
12850
|
-
unitsPerSegment:
|
12850
|
+
unitsPerSegment: ee
|
12851
12851
|
}
|
12852
12852
|
)
|
12853
12853
|
},
|
@@ -12863,7 +12863,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12863
12863
|
cx: M + W,
|
12864
12864
|
cy: k + Y,
|
12865
12865
|
fill: m.palette.common.white,
|
12866
|
-
r:
|
12866
|
+
r: ue[i].markerSize,
|
12867
12867
|
stroke: h ? "url(#arcGradient)" : s,
|
12868
12868
|
strokeWidth: i !== "SM" ? 3 : 1
|
12869
12869
|
}
|
@@ -12890,7 +12890,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12890
12890
|
X,
|
12891
12891
|
{
|
12892
12892
|
sx: {
|
12893
|
-
fontSize:
|
12893
|
+
fontSize: ue[i].healthScoreFontSize,
|
12894
12894
|
lineHeight: i !== "SM" ? "48px" : "100%"
|
12895
12895
|
},
|
12896
12896
|
variant: "H1",
|
@@ -12989,7 +12989,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12989
12989
|
minValue: o = 300,
|
12990
12990
|
footerCenterContent: r
|
12991
12991
|
}) => {
|
12992
|
-
const c =
|
12992
|
+
const c = Ye().palette.mode === "dark", l = [
|
12993
12993
|
{
|
12994
12994
|
id: 1,
|
12995
12995
|
label: "Poor",
|
@@ -13082,7 +13082,7 @@ class r1 {
|
|
13082
13082
|
let i = 0;
|
13083
13083
|
await this.loadHealthScoreChangeReports();
|
13084
13084
|
const a = n?.health_score || 0, o = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
13085
|
-
i = a - o,
|
13085
|
+
i = a - o, J(() => {
|
13086
13086
|
this.healthScore = n, this.healthScoreChange = i;
|
13087
13087
|
});
|
13088
13088
|
} catch (n) {
|
@@ -13092,7 +13092,7 @@ class r1 {
|
|
13092
13092
|
loadAverageHealthScores = async () => {
|
13093
13093
|
try {
|
13094
13094
|
const n = await this.api.getAverageHealthScores();
|
13095
|
-
|
13095
|
+
J(() => {
|
13096
13096
|
this.averageHealthScores = n;
|
13097
13097
|
});
|
13098
13098
|
} catch (n) {
|
@@ -13106,7 +13106,7 @@ class r1 {
|
|
13106
13106
|
n,
|
13107
13107
|
i
|
13108
13108
|
);
|
13109
|
-
|
13109
|
+
J(() => {
|
13110
13110
|
this.healthScoreChangeReports = a;
|
13111
13111
|
});
|
13112
13112
|
} catch (a) {
|
@@ -13114,10 +13114,10 @@ class r1 {
|
|
13114
13114
|
}
|
13115
13115
|
};
|
13116
13116
|
loadPeerScore = async () => {
|
13117
|
-
const n = Ln(
|
13117
|
+
const n = Ln(Ve(this.globalStore.appDataStore.user.birthday), "yyyy");
|
13118
13118
|
try {
|
13119
13119
|
const i = await this.api.getPeerScore(n);
|
13120
|
-
|
13120
|
+
J(() => {
|
13121
13121
|
this.peerScore = i;
|
13122
13122
|
});
|
13123
13123
|
} catch (i) {
|
@@ -13127,7 +13127,7 @@ class r1 {
|
|
13127
13127
|
loadAugmentedChartData = async () => {
|
13128
13128
|
try {
|
13129
13129
|
const n = await this.api.getAverageHealthScores();
|
13130
|
-
|
13130
|
+
J(() => {
|
13131
13131
|
this.augmentedChartData = o1(n);
|
13132
13132
|
});
|
13133
13133
|
} catch (n) {
|
@@ -13164,7 +13164,7 @@ const Na = ({
|
|
13164
13164
|
},
|
13165
13165
|
children: [
|
13166
13166
|
n && /* @__PURE__ */ t(co, { sx: { height: 20, width: 20 } }),
|
13167
|
-
/* @__PURE__ */ t(
|
13167
|
+
/* @__PURE__ */ t(Ze, { className: "connect-more-accounts-title", sx: { ...e && { fontSize: 15 } }, children: a || u.connect_more_accounts_title })
|
13168
13168
|
]
|
13169
13169
|
}
|
13170
13170
|
),
|
@@ -13180,7 +13180,7 @@ const Na = ({
|
|
13180
13180
|
/* @__PURE__ */ t(
|
13181
13181
|
te,
|
13182
13182
|
{
|
13183
|
-
endIcon: /* @__PURE__ */ t(
|
13183
|
+
endIcon: /* @__PURE__ */ t(ze, {}),
|
13184
13184
|
onClick: () => c(!0),
|
13185
13185
|
size: "small",
|
13186
13186
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
@@ -13199,7 +13199,7 @@ const Na = ({
|
|
13199
13199
|
}
|
13200
13200
|
);
|
13201
13201
|
}, s1 = x(() => {
|
13202
|
-
const e =
|
13202
|
+
const e = Ye(), [n, { width: i }] = ii(), { finstrong: a } = A(), { isCopyLoaded: o, isInitialized: r } = re(), { healthScore: s, healthScoreChange: c } = bi(), l = e.palette.mode === "dark", u = Xo(s?.health_score, a);
|
13203
13203
|
return !o || !r ? /* @__PURE__ */ t(ce, {}) : /* @__PURE__ */ d(bt, { ref: n, sx: { p: 16 }, children: [
|
13204
13204
|
/* @__PURE__ */ t(
|
13205
13205
|
_n,
|
@@ -13207,7 +13207,7 @@ const Na = ({
|
|
13207
13207
|
action: /* @__PURE__ */ t(
|
13208
13208
|
te,
|
13209
13209
|
{
|
13210
|
-
endIcon: /* @__PURE__ */ t(
|
13210
|
+
endIcon: /* @__PURE__ */ t(ze, {}),
|
13211
13211
|
sx: {
|
13212
13212
|
fontSize: 13,
|
13213
13213
|
lineHeight: "16px",
|
@@ -13218,7 +13218,7 @@ const Na = ({
|
|
13218
13218
|
children: a.financial_strength_header_action
|
13219
13219
|
}
|
13220
13220
|
),
|
13221
|
-
subheader: /* @__PURE__ */ t(
|
13221
|
+
subheader: /* @__PURE__ */ t(Ze, { color: "text.primary", children: a.financial_strength_header }),
|
13222
13222
|
sx: {
|
13223
13223
|
p: 0,
|
13224
13224
|
"& .MuiCardHeader-content": {
|
@@ -13295,7 +13295,7 @@ const Na = ({
|
|
13295
13295
|
title: i
|
13296
13296
|
}) => {
|
13297
13297
|
let a;
|
13298
|
-
const { refreshAccounts: o } = Se(), { loadWidget: r } = bc(), { connect: s } = A(), c =
|
13298
|
+
const { refreshAccounts: o } = Se(), { loadWidget: r } = bc(), { connect: s } = A(), c = Ye(), [l, u] = g.useState(!1), [_, h] = g.useState(!1);
|
13299
13299
|
return g.useEffect(() => (n ? (u(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
13300
13300
|
a = new Hd({
|
13301
13301
|
container: `#${Nr}`,
|
@@ -13329,7 +13329,7 @@ const Na = ({
|
|
13329
13329
|
] })
|
13330
13330
|
}
|
13331
13331
|
);
|
13332
|
-
},
|
13332
|
+
}, Ti = x(c1), l1 = ({ isOpen: e, onClose: n }) => {
|
13333
13333
|
const { common: i, finstrong: a } = A(), { isMobile: o } = Ce(), { updateUser: r, user: s } = ft(), [c, l] = g.useState(s.credit_score || 0), u = !isNaN(c), _ = () => {
|
13334
13334
|
n(), setTimeout(() => l(s.credit_score || 0), 300);
|
13335
13335
|
}, h = () => {
|
@@ -13368,7 +13368,7 @@ const Na = ({
|
|
13368
13368
|
}
|
13369
13369
|
);
|
13370
13370
|
}, d1 = x(l1), _1 = ({ isOpen: e, onClose: n }) => {
|
13371
|
-
const { finstrong: i } = A(), a =
|
13371
|
+
const { finstrong: i } = A(), a = Ye(), { updateUser: o, user: r } = ft(), [s, c] = g.useState(r.birthday), l = (_) => {
|
13372
13372
|
c(Math.floor(new Date(_).getTime() / 1e3));
|
13373
13373
|
};
|
13374
13374
|
return /* @__PURE__ */ t(
|
@@ -13479,7 +13479,7 @@ const Na = ({
|
|
13479
13479
|
return /* @__PURE__ */ d(se, { isOpen: e, onClose: n, title: s.financial_profile, children: [
|
13480
13480
|
/* @__PURE__ */ d(b, { sx: { gap: 20, p: 24 }, children: [
|
13481
13481
|
/* @__PURE__ */ d(b, { sx: { gap: 8 }, children: [
|
13482
|
-
/* @__PURE__ */ t(
|
13482
|
+
/* @__PURE__ */ t(Ze, { children: s.your_financial_profile }),
|
13483
13483
|
/* @__PURE__ */ t(X, { children: s.financial_profile_description })
|
13484
13484
|
] }),
|
13485
13485
|
/* @__PURE__ */ t(
|
@@ -13511,7 +13511,7 @@ const Na = ({
|
|
13511
13511
|
/* @__PURE__ */ t(u1, { isOpen: l === nn.DateOfBirth, onClose: () => u(null) }),
|
13512
13512
|
/* @__PURE__ */ t(d1, { isOpen: l === nn.CreditScore, onClose: () => u(null) }),
|
13513
13513
|
/* @__PURE__ */ t(
|
13514
|
-
|
13514
|
+
Ti,
|
13515
13515
|
{
|
13516
13516
|
onClose: () => u(null),
|
13517
13517
|
showConnectionsWidget: l === nn.Connections,
|
@@ -13519,7 +13519,7 @@ const Na = ({
|
|
13519
13519
|
}
|
13520
13520
|
)
|
13521
13521
|
] });
|
13522
|
-
}, m1 = x(g1),
|
13522
|
+
}, m1 = x(g1), Hi = {
|
13523
13523
|
creditScore: {
|
13524
13524
|
poor: 600,
|
13525
13525
|
good: 720
|
@@ -13540,7 +13540,7 @@ const Na = ({
|
|
13540
13540
|
poor: 110,
|
13541
13541
|
good: 100
|
13542
13542
|
}
|
13543
|
-
},
|
13543
|
+
}, Ke = {
|
13544
13544
|
GOOD: "Good",
|
13545
13545
|
FAIR: "Fair",
|
13546
13546
|
OFF_TRACK: "Off Track",
|
@@ -13548,14 +13548,14 @@ const Na = ({
|
|
13548
13548
|
}, _i = ({
|
13549
13549
|
title: e,
|
13550
13550
|
description: n,
|
13551
|
-
cardState: i =
|
13551
|
+
cardState: i = Ke.MISSING,
|
13552
13552
|
stateTitle: a
|
13553
13553
|
}) => {
|
13554
13554
|
const o = {
|
13555
|
-
[
|
13556
|
-
[
|
13557
|
-
[
|
13558
|
-
[
|
13555
|
+
[Ke.GOOD]: { backgroundColor: "success.lighter", color: "success.main" },
|
13556
|
+
[Ke.FAIR]: { backgroundColor: "warning.lighter", color: "warning.main" },
|
13557
|
+
[Ke.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.main" },
|
13558
|
+
[Ke.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
13559
13559
|
}[i];
|
13560
13560
|
return /* @__PURE__ */ d(
|
13561
13561
|
b,
|
@@ -13596,17 +13596,17 @@ const Na = ({
|
|
13596
13596
|
);
|
13597
13597
|
}, p1 = () => {
|
13598
13598
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_spend: i } = n, a = (c) => {
|
13599
|
-
const { good: l, poor: u } =
|
13600
|
-
let _ =
|
13601
|
-
return c !== null && (c < l ? (_ =
|
13599
|
+
const { good: l, poor: u } = Hi.spendToIncomeRatio;
|
13600
|
+
let _ = Ke.MISSING, h = i.ratio_missing_description, m = n.key_indicators_missing;
|
13601
|
+
return c !== null && (c < l ? (_ = Ke.GOOD, h = T(i.ratio_good_description, c), m = n.key_indicators_good) : c >= l && c < u ? (_ = Ke.FAIR, h = T(i.ratio_fair_description, c), m = n.key_indicators_fair) : c >= u && (_ = Ke.OFF_TRACK, h = T(i.ratio_off_track_description, c), m = n.key_indicators_off_track)), {
|
13602
13602
|
cardState: _,
|
13603
13603
|
description: h,
|
13604
13604
|
title: i.ratio_card_title,
|
13605
13605
|
stateTitle: m
|
13606
13606
|
};
|
13607
13607
|
}, o = (c) => {
|
13608
|
-
let l =
|
13609
|
-
return c !== null && (c === 0 ? (l =
|
13608
|
+
let l = Ke.MISSING, u = i.count_missing_description, _ = n.key_indicators_missing;
|
13609
|
+
return c !== null && (c === 0 ? (l = Ke.GOOD, u = i.count_good_description, _ = n.key_indicators_good) : c >= 1 && (l = Ke.OFF_TRACK, u = i.count_off_track_description, _ = n.key_indicators_off_track)), {
|
13610
13610
|
cardState: l,
|
13611
13611
|
description: u,
|
13612
13612
|
title: i.count_card_title,
|
@@ -13643,21 +13643,21 @@ const Na = ({
|
|
13643
13643
|
] });
|
13644
13644
|
}, f1 = () => {
|
13645
13645
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_save: i } = n, a = (c) => {
|
13646
|
-
const { good: l, poor: u } =
|
13647
|
-
let _ =
|
13648
|
-
return c !== null && (c >= l ? (_ =
|
13646
|
+
const { good: l, poor: u } = Hi.daysOfCashOnHand;
|
13647
|
+
let _ = Ke.MISSING, h = i.days_of_cash_missing_description, m = n.key_indicators_missing;
|
13648
|
+
return c !== null && (c >= l ? (_ = Ke.GOOD, h = T(i.days_of_cash_good_description, c), m = n.key_indicators_good) : c < l && c >= u ? (_ = Ke.FAIR, h = T(i.days_of_cash_fair_description, c), m = n.key_indicators_fair) : c < u && (_ = Ke.OFF_TRACK, h = T(i.days_of_cash_off_track_description, c), m = n.key_indicators_off_track)), {
|
13649
13649
|
cardState: _,
|
13650
13650
|
description: h,
|
13651
13651
|
title: i.days_of_cash_title,
|
13652
13652
|
stateTitle: m
|
13653
13653
|
};
|
13654
13654
|
}, o = (c) => {
|
13655
|
-
const { good: l, poor: u } =
|
13656
|
-
let _ =
|
13657
|
-
return c !== null && (c >= l ? (_ =
|
13655
|
+
const { good: l, poor: u } = Hi.emergencySavings;
|
13656
|
+
let _ = Ke.MISSING, h = i.emergency_savings_missing_description, m = n.key_indicators_missing;
|
13657
|
+
return c !== null && (c >= l ? (_ = Ke.GOOD, h = i.emergency_savings_good_description, m = n.key_indicators_good) : c < l && c >= u ? (_ = Ke.FAIR, h = T(
|
13658
13658
|
i.emergency_savings_fair_description,
|
13659
13659
|
H(c, "0,0.00")
|
13660
|
-
), m = n.key_indicators_fair) : c < u && (_ =
|
13660
|
+
), m = n.key_indicators_fair) : c < u && (_ = Ke.OFF_TRACK, h = i.emergency_savings_off_track_description, m = n.key_indicators_off_track)), {
|
13661
13661
|
cardState: _,
|
13662
13662
|
description: h,
|
13663
13663
|
title: i.emergency_savings_title,
|
@@ -13694,9 +13694,9 @@ const Na = ({
|
|
13694
13694
|
] });
|
13695
13695
|
}, C1 = () => {
|
13696
13696
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_borrow: i } = n, { user: a } = ft(), o = (l) => {
|
13697
|
-
const { good: u, poor: _ } =
|
13698
|
-
let h =
|
13699
|
-
return l != null && (l <= u ? (h =
|
13697
|
+
const { good: u, poor: _ } = Hi.debtToIncomeRatio;
|
13698
|
+
let h = Ke.MISSING, m = i.manage_debit_missing_description, p = n.key_indicators_missing;
|
13699
|
+
return l != null && (l <= u ? (h = Ke.GOOD, m = i.manage_debit_good_description, p = n.key_indicators_good) : l > u && l <= _ ? (h = Ke.FAIR, m = T(i.manage_debit_fair_description, l), p = n.key_indicators_fair) : l > _ && (h = Ke.OFF_TRACK, m = T(
|
13700
13700
|
i.manage_debit_off_track_description,
|
13701
13701
|
l
|
13702
13702
|
), p = n.key_indicators_off_track)), {
|
@@ -13706,9 +13706,9 @@ const Na = ({
|
|
13706
13706
|
stateTitle: p
|
13707
13707
|
};
|
13708
13708
|
}, r = (l) => {
|
13709
|
-
const { good: u, poor: _ } =
|
13710
|
-
let h =
|
13711
|
-
return l !== null && (l >= u ? (h =
|
13709
|
+
const { good: u, poor: _ } = Hi.creditScore;
|
13710
|
+
let h = Ke.MISSING, m = i.credit_score_missing_description, p = n.key_indicators_missing;
|
13711
|
+
return l !== null && (l >= u ? (h = Ke.GOOD, m = T(i.credit_score_good_description, l), p = n.key_indicators_good) : l < u && l >= _ ? (h = Ke.FAIR, m = T(i.credit_score_fair_description, l), p = n.key_indicators_fair) : l < _ && (h = Ke.OFF_TRACK, m = T(
|
13712
13712
|
i.credit_score_off_track_description,
|
13713
13713
|
l
|
13714
13714
|
), p = n.key_indicators_off_track)), {
|
@@ -13812,7 +13812,7 @@ const Na = ({
|
|
13812
13812
|
const { finstrong: u } = A(), { isCopyLoaded: _ } = re();
|
13813
13813
|
return _ ? /* @__PURE__ */ d(se, { isOpen: o, onClose: s, title: a || u.key_indicators, children: [
|
13814
13814
|
(l || i) && /* @__PURE__ */ d(b, { sx: { p: 24, pb: 0, gap: 8, backgroundColor: "background.paper" }, children: [
|
13815
|
-
l && /* @__PURE__ */ t(
|
13815
|
+
l && /* @__PURE__ */ t(Ze, { children: l }),
|
13816
13816
|
i && /* @__PURE__ */ t(X, { children: i })
|
13817
13817
|
] }),
|
13818
13818
|
c && /* @__PURE__ */ t(
|
@@ -13931,7 +13931,7 @@ const Na = ({
|
|
13931
13931
|
) })
|
13932
13932
|
] }) });
|
13933
13933
|
}, T1 = x(E1), A1 = ({ isOpen: e, onClose: n }) => {
|
13934
|
-
const i =
|
13934
|
+
const i = Ye(), { finstrong: a } = A(), { isCopyLoaded: o, isInitialized: r } = re(), { healthScore: s, healthScoreChangeReports: c, augmentedChartData: l } = bi();
|
13935
13935
|
if (!o || !r) return /* @__PURE__ */ t(ce, {});
|
13936
13936
|
const u = Xo(s.health_score || 0, a), _ = c.slice().reverse();
|
13937
13937
|
return /* @__PURE__ */ t(
|
@@ -13987,13 +13987,13 @@ const Na = ({
|
|
13987
13987
|
return i ? /* @__PURE__ */ d(b, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
13988
13988
|
/* @__PURE__ */ t(Ys, { size: 48 }),
|
13989
13989
|
/* @__PURE__ */ d(b, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
13990
|
-
/* @__PURE__ */ t(
|
13990
|
+
/* @__PURE__ */ t(Ze, { children: n.missing_data_title }),
|
13991
13991
|
/* @__PURE__ */ t(X, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: n.missing_data_description })
|
13992
13992
|
] }),
|
13993
13993
|
/* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(
|
13994
13994
|
te,
|
13995
13995
|
{
|
13996
|
-
endIcon: /* @__PURE__ */ t(
|
13996
|
+
endIcon: /* @__PURE__ */ t(ze, {}),
|
13997
13997
|
onClick: e,
|
13998
13998
|
size: "small",
|
13999
13999
|
sx: {
|
@@ -14008,7 +14008,7 @@ const Na = ({
|
|
14008
14008
|
) })
|
14009
14009
|
] }) : /* @__PURE__ */ t(ce, {});
|
14010
14010
|
}, w1 = x(I1), v1 = ({ onBackClick: e, sx: n }) => {
|
14011
|
-
const i =
|
14011
|
+
const i = Ye(), { visibleAccounts: a } = Se(), { dateRange: o, isDataLoaded: r, loadBudgetData: s, setTheme: c } = ut(), { reloadCategoryTotals: l } = Ue(), { augmentedChartData: u, calculateHealthScore: _, healthScore: h, loadAugmentedChartData: m } = bi(), { finstrong: p, connect: f } = A(), { isCopyLoaded: S, isInitialized: y, selectedAccounts: E, setSelectedAccounts: I } = re(), { isMobile: w } = Ce(), [v, N] = g.useState(!1);
|
14012
14012
|
g.useEffect(() => {
|
14013
14013
|
c(i);
|
14014
14014
|
}, []), g.useEffect(() => I(a), [a]), g.useEffect(() => {
|
@@ -14060,11 +14060,11 @@ const Na = ({
|
|
14060
14060
|
] }),
|
14061
14061
|
/* @__PURE__ */ t(b, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ d(bt, { sx: { background: i.palette.background.paper, p: 16 }, children: [
|
14062
14062
|
/* @__PURE__ */ d(b, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
14063
|
-
/* @__PURE__ */ t(
|
14063
|
+
/* @__PURE__ */ t(Ze, { children: p.key_indicators }),
|
14064
14064
|
/* @__PURE__ */ t(
|
14065
14065
|
te,
|
14066
14066
|
{
|
14067
|
-
endIcon: /* @__PURE__ */ t(
|
14067
|
+
endIcon: /* @__PURE__ */ t(ze, {}),
|
14068
14068
|
onClick: () => G(!0),
|
14069
14069
|
sx: {
|
14070
14070
|
fontSize: 13
|
@@ -14161,7 +14161,7 @@ function il(e, n) {
|
|
14161
14161
|
style: "percent",
|
14162
14162
|
minimumFractionDigits: 0,
|
14163
14163
|
maximumFractionDigits: 0
|
14164
|
-
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, l = c ?
|
14164
|
+
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, l = c ? Ve(c) : /* @__PURE__ */ new Date(), u = T(
|
14165
14165
|
e.goal_percentage,
|
14166
14166
|
Ci(a, s)
|
14167
14167
|
), _ = T(
|
@@ -14326,7 +14326,7 @@ const N1 = (e, n) => {
|
|
14326
14326
|
/* @__PURE__ */ t(C, { variant: "XSmall", children: T(
|
14327
14327
|
n.goal_projection,
|
14328
14328
|
de(
|
14329
|
-
|
14329
|
+
Ve(f.projected_to_complete_at || 0),
|
14330
14330
|
ie.MONTH_SHORT_YEAR
|
14331
14331
|
)
|
14332
14332
|
) })
|
@@ -14368,7 +14368,7 @@ const N1 = (e, n) => {
|
|
14368
14368
|
justifyContent: "space-between",
|
14369
14369
|
children: [
|
14370
14370
|
/* @__PURE__ */ t(C, { color: "primary.light", variant: "Body", children: n.reorder_goals_title }),
|
14371
|
-
/* @__PURE__ */ t(
|
14371
|
+
/* @__PURE__ */ t(ze, { color: "primary" })
|
14372
14372
|
]
|
14373
14373
|
}
|
14374
14374
|
) }) }) }),
|
@@ -14429,7 +14429,7 @@ const N1 = (e, n) => {
|
|
14429
14429
|
/* @__PURE__ */ t(C, { variant: "XSmall", children: T(
|
14430
14430
|
i.goal_projection,
|
14431
14431
|
de(
|
14432
|
-
|
14432
|
+
Ve(e.projected_to_complete_at || 0),
|
14433
14433
|
ie.MONTH_SHORT_YEAR
|
14434
14434
|
)
|
14435
14435
|
) })
|
@@ -14447,7 +14447,7 @@ const N1 = (e, n) => {
|
|
14447
14447
|
/* @__PURE__ */ t(C, { variant: "XSmall", children: T(
|
14448
14448
|
n.completed_label,
|
14449
14449
|
de(
|
14450
|
-
|
14450
|
+
Ve(e.completed_at || 0),
|
14451
14451
|
ie.MONTH_SHORT_YEAR
|
14452
14452
|
)
|
14453
14453
|
) })
|
@@ -14463,7 +14463,7 @@ const N1 = (e, n) => {
|
|
14463
14463
|
), [c, l] = g.useState(!1);
|
14464
14464
|
let u = n.manage_saving_goals, _ = n.manage_saving_drawer_title, h = n.manage_saving_title, m = n.manage_saving_description;
|
14465
14465
|
return e === z.DEBT_TRACK ? (u = n.manage_debt_goals, _ = n.manage_debt_drawer_title, h = n.manage_debt_title, m = n.manage_debt_description) : e === z.RETIREMENT_TRACK && (u = n.manage_retirement_goals, _ = n.manage_retirement_drawer_title, h = n.manage_retirement_title, m = n.manage_retirement_description), /* @__PURE__ */ d(b, { children: [
|
14466
|
-
/* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(
|
14466
|
+
/* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(ze, {}), onClick: () => l(!0), children: u }),
|
14467
14467
|
/* @__PURE__ */ t(
|
14468
14468
|
se,
|
14469
14469
|
{
|
@@ -14473,7 +14473,7 @@ const N1 = (e, n) => {
|
|
14473
14473
|
title: _,
|
14474
14474
|
children: /* @__PURE__ */ d(b, { children: [
|
14475
14475
|
/* @__PURE__ */ d(b, { m: 24, children: [
|
14476
|
-
/* @__PURE__ */ t(
|
14476
|
+
/* @__PURE__ */ t(Ze, { children: h }),
|
14477
14477
|
/* @__PURE__ */ t(X, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
|
14478
14478
|
] }),
|
14479
14479
|
/* @__PURE__ */ t(O1, { trackType: e }),
|
@@ -14591,7 +14591,7 @@ const N1 = (e, n) => {
|
|
14591
14591
|
children: [
|
14592
14592
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(pt, { name: o, sx: { color: "grey.900" } }) }) }),
|
14593
14593
|
/* @__PURE__ */ t(oe, { primary: r, secondary: s, sx: { mr: 24 } }),
|
14594
|
-
!h && /* @__PURE__ */ t(
|
14594
|
+
!h && /* @__PURE__ */ t(ze, {}),
|
14595
14595
|
h && (u ? /* @__PURE__ */ t(Zs, {}) : /* @__PURE__ */ t(ui, {}))
|
14596
14596
|
]
|
14597
14597
|
}
|
@@ -14606,7 +14606,7 @@ const N1 = (e, n) => {
|
|
14606
14606
|
primaryTypographyProps: { variant: "Body" }
|
14607
14607
|
}
|
14608
14608
|
),
|
14609
|
-
/* @__PURE__ */ t(
|
14609
|
+
/* @__PURE__ */ t(ze, {})
|
14610
14610
|
] }) }, p)) }) })
|
14611
14611
|
] }) });
|
14612
14612
|
}, ol = ({
|
@@ -14726,7 +14726,7 @@ const N1 = (e, n) => {
|
|
14726
14726
|
secondary: H(e.balance || 0, "0,0.00")
|
14727
14727
|
}
|
14728
14728
|
),
|
14729
|
-
/* @__PURE__ */ t(
|
14729
|
+
/* @__PURE__ */ t(ze, {})
|
14730
14730
|
] }),
|
14731
14731
|
/* @__PURE__ */ t(se, { isOpen: a, onClose: () => o(!1), title: n.account_details, children: /* @__PURE__ */ d(b, { children: [
|
14732
14732
|
/* @__PURE__ */ t(jo, {}),
|
@@ -14778,7 +14778,7 @@ const N1 = (e, n) => {
|
|
14778
14778
|
/* @__PURE__ */ t(qs, { filled: !0 }),
|
14779
14779
|
o.details_add_account
|
14780
14780
|
] }) }),
|
14781
|
-
/* @__PURE__ */ t(
|
14781
|
+
/* @__PURE__ */ t(ze, { color: "primary" })
|
14782
14782
|
] }) }) : /* @__PURE__ */ d(b, { sx: { gap: 8, my: 24, mx: 24 }, children: [
|
14783
14783
|
/* @__PURE__ */ t(te, { onClick: () => _(!0), variant: "text", children: o.details_change_account }),
|
14784
14784
|
/* @__PURE__ */ t(
|
@@ -14808,7 +14808,7 @@ const N1 = (e, n) => {
|
|
14808
14808
|
secondary: H(m?.balance || 0, "0,0.00")
|
14809
14809
|
}
|
14810
14810
|
),
|
14811
|
-
/* @__PURE__ */ t(
|
14811
|
+
/* @__PURE__ */ t(ze, {})
|
14812
14812
|
] }) }, m.guid)) }),
|
14813
14813
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
14814
14814
|
/* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => h(m), children: [
|
@@ -14826,7 +14826,7 @@ const N1 = (e, n) => {
|
|
14826
14826
|
secondary: H(m?.balance || 0, "0,0.00")
|
14827
14827
|
}
|
14828
14828
|
),
|
14829
|
-
/* @__PURE__ */ t(
|
14829
|
+
/* @__PURE__ */ t(ze, {})
|
14830
14830
|
] }) }, m.guid)) }),
|
14831
14831
|
/* @__PURE__ */ t(
|
14832
14832
|
wc,
|
@@ -14904,7 +14904,7 @@ const N1 = (e, n) => {
|
|
14904
14904
|
}
|
14905
14905
|
);
|
14906
14906
|
}, U1 = x(({ goal: e }) => {
|
14907
|
-
const { goals: n } = A(), { user: i, updateUser: a } = ft(), { setAlert: o } = dt(), [r, s] = g.useState(
|
14907
|
+
const { goals: n } = A(), { user: i, updateUser: a } = ft(), { setAlert: o } = dt(), [r, s] = g.useState(Ve(i.birthday ?? 0)), [c, l] = g.useState(null), u = e.is_complete, _ = async () => {
|
14908
14908
|
r && f_(r) && (await a({ ...i, birthday: We(r) }), o(n.alert_goal_updated_birthday));
|
14909
14909
|
};
|
14910
14910
|
return /* @__PURE__ */ t(
|
@@ -14915,7 +14915,7 @@ const N1 = (e, n) => {
|
|
14915
14915
|
label: n.details_birthday,
|
14916
14916
|
onSave: _,
|
14917
14917
|
primaryText: n.details_birthday,
|
14918
|
-
secondaryText: `${de(
|
14918
|
+
secondaryText: `${de(Ve(i.birthday ?? 0), ie.MONTH_DAY_YEAR)}`,
|
14919
14919
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
14920
14920
|
children: /* @__PURE__ */ t(gi, { dateAdapter: Jn, children: /* @__PURE__ */ t(
|
14921
14921
|
go,
|
@@ -14967,7 +14967,7 @@ const N1 = (e, n) => {
|
|
14967
14967
|
/* @__PURE__ */ t(qs, { filled: !0 }),
|
14968
14968
|
n.details_add_account
|
14969
14969
|
] }) }),
|
14970
|
-
/* @__PURE__ */ t(
|
14970
|
+
/* @__PURE__ */ t(ze, { color: "primary" })
|
14971
14971
|
] }) }),
|
14972
14972
|
/* @__PURE__ */ t(
|
14973
14973
|
ol,
|
@@ -15042,8 +15042,8 @@ const N1 = (e, n) => {
|
|
15042
15042
|
return n.filter((W) => L.some((Y) => Y.account_guid === W.guid));
|
15043
15043
|
}, [E, n, l, u]), v = g.useMemo(() => {
|
15044
15044
|
if (!_) return !1;
|
15045
|
-
const { account_guid: L, track_type: W, name: Y, amount:
|
15046
|
-
return W === z.SAVINGS_TRACK ? L ? !!Y && !!
|
15045
|
+
const { account_guid: L, track_type: W, name: Y, amount: ee, retirement_age: ue } = _;
|
15046
|
+
return W === z.SAVINGS_TRACK ? L ? !!Y && !!ee : !1 : W === z.RETIREMENT_TRACK ? w.length ? !!Y && !!ee && !!ue && !!f.birthday : !1 : !0;
|
15047
15047
|
}, [_, w, f.birthday]);
|
15048
15048
|
let N = a.delete_button, R = () => y(!0);
|
15049
15049
|
E ? (R = () => M(), N = a.save_button) : I && (R = () => G(), N = i.mark_as_complete_button);
|
@@ -15112,9 +15112,9 @@ const N1 = (e, n) => {
|
|
15112
15112
|
i(F.GOALS_CLICK_FILTER);
|
15113
15113
|
}, Y = () => {
|
15114
15114
|
v(!0), i(F.GOALS_CLICK_ADD);
|
15115
|
-
},
|
15115
|
+
}, ee = (_e) => {
|
15116
15116
|
v(!1), _e === z.SAVINGS_TRACK ? I(0) : _e === z.DEBT_TRACK ? I(1) : _e === z.RETIREMENT_TRACK && I(2);
|
15117
|
-
},
|
15117
|
+
}, ue = g.useMemo(
|
15118
15118
|
() => m && (h.length === 0 || h.every(({ track_type: _e }) => !_e) && y.length === 0),
|
15119
15119
|
[h, m, y]
|
15120
15120
|
);
|
@@ -15141,34 +15141,34 @@ const N1 = (e, n) => {
|
|
15141
15141
|
onChange: (_e, Le) => I(Le),
|
15142
15142
|
sx: { bgcolor: "background.paper" },
|
15143
15143
|
textColor: "primary",
|
15144
|
-
value:
|
15144
|
+
value: ue ? !1 : E,
|
15145
15145
|
variant: "fullWidth",
|
15146
15146
|
children: [
|
15147
15147
|
/* @__PURE__ */ t(
|
15148
15148
|
tt,
|
15149
15149
|
{
|
15150
|
-
disabled:
|
15150
|
+
disabled: ue,
|
15151
15151
|
label: /* @__PURE__ */ t(Wa, { subtitle: k, title: l.tab_saving_title })
|
15152
15152
|
}
|
15153
15153
|
),
|
15154
15154
|
/* @__PURE__ */ t(
|
15155
15155
|
tt,
|
15156
15156
|
{
|
15157
|
-
disabled:
|
15157
|
+
disabled: ue,
|
15158
15158
|
label: /* @__PURE__ */ t(Wa, { subtitle: G, title: l.tab_debt_title })
|
15159
15159
|
}
|
15160
15160
|
),
|
15161
15161
|
/* @__PURE__ */ t(
|
15162
15162
|
tt,
|
15163
15163
|
{
|
15164
|
-
disabled:
|
15164
|
+
disabled: ue,
|
15165
15165
|
label: /* @__PURE__ */ t(Wa, { subtitle: L, title: l.tab_retirement_title })
|
15166
15166
|
}
|
15167
15167
|
)
|
15168
15168
|
]
|
15169
15169
|
}
|
15170
15170
|
),
|
15171
|
-
|
15171
|
+
ue ? /* @__PURE__ */ t(
|
15172
15172
|
jn,
|
15173
15173
|
{
|
15174
15174
|
header: l.create_goals_header,
|
@@ -15189,7 +15189,7 @@ const N1 = (e, n) => {
|
|
15189
15189
|
E === 2 && /* @__PURE__ */ t($a, { onAddGoals: Y, trackType: z.RETIREMENT_TRACK })
|
15190
15190
|
] })
|
15191
15191
|
] }),
|
15192
|
-
/* @__PURE__ */ t(z1, { onClose:
|
15192
|
+
/* @__PURE__ */ t(z1, { onClose: ee }),
|
15193
15193
|
/* @__PURE__ */ t(
|
15194
15194
|
se,
|
15195
15195
|
{
|
@@ -15197,10 +15197,10 @@ const N1 = (e, n) => {
|
|
15197
15197
|
isOpen: w,
|
15198
15198
|
onClose: () => v(!1),
|
15199
15199
|
title: l.add_goal_title,
|
15200
|
-
children: /* @__PURE__ */ t(H1, { onClose:
|
15200
|
+
children: /* @__PURE__ */ t(H1, { onClose: ee })
|
15201
15201
|
}
|
15202
15202
|
),
|
15203
|
-
/* @__PURE__ */ t(
|
15203
|
+
/* @__PURE__ */ t(Fi, { onClose: () => S(""), open: !!_, children: /* @__PURE__ */ t(Mn, { onClose: () => S(""), severity: "success", variant: "filled", children: _ }) })
|
15204
15204
|
]
|
15205
15205
|
}
|
15206
15206
|
);
|
@@ -15246,7 +15246,7 @@ class Y1 {
|
|
15246
15246
|
addGoal = async (n) => {
|
15247
15247
|
try {
|
15248
15248
|
const i = await this.api.addGoal(n);
|
15249
|
-
|
15249
|
+
J(() => {
|
15250
15250
|
this.goals = [...this.goals, i];
|
15251
15251
|
});
|
15252
15252
|
} catch (i) {
|
@@ -15264,7 +15264,7 @@ class Y1 {
|
|
15264
15264
|
});
|
15265
15265
|
o.push(s);
|
15266
15266
|
}
|
15267
|
-
this.setNewRetirementGoalAccounts([]),
|
15267
|
+
this.setNewRetirementGoalAccounts([]), J(() => {
|
15268
15268
|
this.goals = [
|
15269
15269
|
...this.goals,
|
15270
15270
|
{
|
@@ -15282,7 +15282,7 @@ class Y1 {
|
|
15282
15282
|
addRetirementGoalAccount = async (n) => {
|
15283
15283
|
try {
|
15284
15284
|
const i = await this.api.addRetirementGoalAccount(n);
|
15285
|
-
|
15285
|
+
J(() => {
|
15286
15286
|
this.retirementGoalAccounts = [...this.retirementGoalAccounts, i];
|
15287
15287
|
});
|
15288
15288
|
} catch (i) {
|
@@ -15301,7 +15301,7 @@ class Y1 {
|
|
15301
15301
|
track_type: z.RETIREMENT_TRACK
|
15302
15302
|
}))
|
15303
15303
|
];
|
15304
|
-
|
15304
|
+
J(() => {
|
15305
15305
|
this.goals = s, this.retirementGoalAccounts = o, this.monthlyCashFlowProfile = r, this.goalsLoaded = !0;
|
15306
15306
|
});
|
15307
15307
|
} catch (i) {
|
@@ -15310,7 +15310,7 @@ class Y1 {
|
|
15310
15310
|
};
|
15311
15311
|
deleteGoal = async (n) => {
|
15312
15312
|
try {
|
15313
|
-
await this.api.removeGoal(n),
|
15313
|
+
await this.api.removeGoal(n), J(() => {
|
15314
15314
|
const i = this.goals.findIndex((a) => a.guid === n);
|
15315
15315
|
i >= 0 && this.goals.splice(i, 1);
|
15316
15316
|
});
|
@@ -15325,7 +15325,7 @@ class Y1 {
|
|
15325
15325
|
);
|
15326
15326
|
for (const a of i)
|
15327
15327
|
await this.deleteRetirementGoalAccount(a.guid);
|
15328
|
-
await this.api.removeRetirementGoal(n.guid),
|
15328
|
+
await this.api.removeRetirementGoal(n.guid), J(() => {
|
15329
15329
|
const a = this.goals.findIndex((o) => o.guid === n.guid);
|
15330
15330
|
a >= 0 && this.goals.splice(a, 1);
|
15331
15331
|
});
|
@@ -15335,7 +15335,7 @@ class Y1 {
|
|
15335
15335
|
};
|
15336
15336
|
deleteRetirementGoalAccount = async (n) => {
|
15337
15337
|
try {
|
15338
|
-
await this.api.removeRetirementGoalAccount(n),
|
15338
|
+
await this.api.removeRetirementGoalAccount(n), J(() => {
|
15339
15339
|
const i = this.retirementGoalAccounts.findIndex((a) => a.guid === n);
|
15340
15340
|
i >= 0 && this.retirementGoalAccounts.splice(i, 1);
|
15341
15341
|
});
|
@@ -15346,7 +15346,7 @@ class Y1 {
|
|
15346
15346
|
reorderGoals = async (n) => {
|
15347
15347
|
try {
|
15348
15348
|
const i = await this.api.reorderGoals(n);
|
15349
|
-
|
15349
|
+
J(() => {
|
15350
15350
|
for (const a of i) {
|
15351
15351
|
const o = this.goals.findIndex((r) => r.guid === a.guid);
|
15352
15352
|
o >= 0 && (this.goals[o].position = a.position);
|
@@ -15364,7 +15364,7 @@ class Y1 {
|
|
15364
15364
|
updateGoal = async (n) => {
|
15365
15365
|
try {
|
15366
15366
|
const i = await this.api.updateGoal(n);
|
15367
|
-
|
15367
|
+
J(() => {
|
15368
15368
|
const a = this.goals.findIndex((o) => o.guid === n.guid);
|
15369
15369
|
a >= 0 && (this.goals[a] = i), this.selectedGoal?.guid === n.guid && this.setSelectedGoal(i);
|
15370
15370
|
});
|
@@ -15375,7 +15375,7 @@ class Y1 {
|
|
15375
15375
|
updateMonthlyCashFlowProfile = async (n) => {
|
15376
15376
|
try {
|
15377
15377
|
const i = await this.api.updateMonthlyCashFlowProfile(n);
|
15378
|
-
|
15378
|
+
J(() => {
|
15379
15379
|
this.monthlyCashFlowProfile = i;
|
15380
15380
|
});
|
15381
15381
|
} catch (i) {
|
@@ -15993,7 +15993,7 @@ class gf {
|
|
15993
15993
|
loadHoldings = async () => {
|
15994
15994
|
try {
|
15995
15995
|
const n = await this.api.getHoldings();
|
15996
|
-
|
15996
|
+
J(() => {
|
15997
15997
|
this.holdings = [...n], this.holdingsLoaded = !0;
|
15998
15998
|
});
|
15999
15999
|
} catch (n) {
|
@@ -16009,7 +16009,7 @@ class gf {
|
|
16009
16009
|
const i = await this.api.updateHoldings(n), a = this.holdings.findIndex(({ guid: o }) => o === n.guid);
|
16010
16010
|
if (a >= 0) {
|
16011
16011
|
const o = [...this.holdings];
|
16012
|
-
o[a] = i,
|
16012
|
+
o[a] = i, J(() => {
|
16013
16013
|
this.holdings = o, this.holdingsLoaded = !0;
|
16014
16014
|
});
|
16015
16015
|
}
|
@@ -16098,13 +16098,13 @@ class Cf {
|
|
16098
16098
|
loadMerchants = async (n = "") => {
|
16099
16099
|
this.isLoading = !0;
|
16100
16100
|
const i = await this.api.getMerchants([n]);
|
16101
|
-
|
16101
|
+
J(() => {
|
16102
16102
|
this.merchants = i, this.isLoading = !1;
|
16103
16103
|
});
|
16104
16104
|
};
|
16105
16105
|
loadMerchantByGuid = async (n) => {
|
16106
16106
|
const i = await this.api.getMerchantByGuid(n);
|
16107
|
-
|
16107
|
+
J(() => this.merchant = i);
|
16108
16108
|
};
|
16109
16109
|
}
|
16110
16110
|
const bf = ({
|
@@ -16115,8 +16115,8 @@ const bf = ({
|
|
16115
16115
|
onMouseLeave: o,
|
16116
16116
|
selectedData: r
|
16117
16117
|
}) => {
|
16118
|
-
const { isMobile: s } = Ce(), { availableWidth: c } = $n(), l =
|
16119
|
-
x: de(
|
16118
|
+
const { isMobile: s } = Ce(), { availableWidth: c } = $n(), l = Ye(), u = c - 320, _ = e.map((f) => ({
|
16119
|
+
x: de(Ve(f.x), ie.MONTH_SHORT),
|
16120
16120
|
y: f.y
|
16121
16121
|
})), h = r ? { index: e.findIndex((f) => f.x === r.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, p = (f) => ({
|
16122
16122
|
fill: f === h?.index ? l.palette.success.main : "",
|
@@ -16175,7 +16175,7 @@ const bf = ({
|
|
16175
16175
|
{
|
16176
16176
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
16177
16177
|
/* @__PURE__ */ t(C, { variant: "Body", children: fc(e.x) }),
|
16178
|
-
/* @__PURE__ */ t(
|
16178
|
+
/* @__PURE__ */ t(je, { amount: e.y, sx: { color: "inherit" }, variant: "Body" })
|
16179
16179
|
] })
|
16180
16180
|
}
|
16181
16181
|
)
|
@@ -16194,7 +16194,7 @@ const bf = ({
|
|
16194
16194
|
onMouseLeave: r,
|
16195
16195
|
selectedData: s
|
16196
16196
|
}) => {
|
16197
|
-
const { net_worth: c } = A(), l =
|
16197
|
+
const { net_worth: c } = A(), l = Ye(), u = (_) => {
|
16198
16198
|
const h = _.x === n?.x, m = _.x === s?.x, p = {
|
16199
16199
|
backgroundColor: "inherit",
|
16200
16200
|
borderBottom: "inherit",
|
@@ -16249,14 +16249,14 @@ const bf = ({
|
|
16249
16249
|
}
|
16250
16250
|
}
|
16251
16251
|
),
|
16252
|
-
/* @__PURE__ */ t(
|
16252
|
+
/* @__PURE__ */ t(je, { amount: a.change, color: s, variant: n }),
|
16253
16253
|
/* @__PURE__ */ t(C, { variant: "Small", children: e })
|
16254
16254
|
] });
|
16255
16255
|
}, Jo = x(xf), If = ({ hoveredData: e, selectedData: n }) => {
|
16256
|
-
const { net_worth: i } = A(), a =
|
16256
|
+
const { net_worth: i } = A(), a = Ye(), o = e || n, r = ec(ci(o.x), "MMMM");
|
16257
16257
|
return /* @__PURE__ */ d(b, { alignItems: "center", direction: "column", m: 24, children: [
|
16258
16258
|
/* @__PURE__ */ t(C, { color: a.palette.secondary.main, variant: "Small", children: `${r} ${i.net_worth}` }),
|
16259
|
-
/* @__PURE__ */ t(
|
16259
|
+
/* @__PURE__ */ t(je, { amount: o.y, variant: "H2" }),
|
16260
16260
|
/* @__PURE__ */ t(Jo, { currencyLabel: i.this_month, netWorth: o, theme: a })
|
16261
16261
|
] });
|
16262
16262
|
}, wf = x(If), gl = 13, vf = (e, n) => e.filter((i) => {
|
@@ -16265,9 +16265,9 @@ const bf = ({
|
|
16265
16265
|
}), Df = (e, n) => [...e, ...n], _s = (e) => {
|
16266
16266
|
if (e && e.length > 0)
|
16267
16267
|
return e[e.length - 1];
|
16268
|
-
}, Nf = (e, n) => e.year_month - n.year_month, Rf = () => Array.from({ length: gl }, (e, n) => Math.floor(
|
16268
|
+
}, Nf = (e, n) => e.year_month - n.year_month, Rf = () => Array.from({ length: gl }, (e, n) => Math.floor(Xe(Ht(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Of = (e, n, i) => !e.length || !n.length ? [] : Rf().reduceRight((o, r) => {
|
16269
16269
|
const s = n.filter(
|
16270
|
-
({ year_month: _ }) => _ === parseInt(Ln(
|
16270
|
+
({ year_month: _ }) => _ === parseInt(Ln(Ve(r), "yyyyMM"))
|
16271
16271
|
), c = e.map((_) => {
|
16272
16272
|
const h = s.find((p) => p.account_guid === _.guid), m = {
|
16273
16273
|
change: 0,
|
@@ -16352,7 +16352,7 @@ class kf {
|
|
16352
16352
|
const i = this.globalStore.accountStore.members, a = vf(n, i), r = await (await Promise.all(
|
16353
16353
|
a.map((s) => this.globalStore.accountStore.api.getMonthlyAccountBalances(s.guid))
|
16354
16354
|
)).reduce(Df, []).sort(Nf);
|
16355
|
-
|
16355
|
+
J(() => {
|
16356
16356
|
this.netWorthData = {
|
16357
16357
|
accounts: a,
|
16358
16358
|
monthlyAccountBalances: r
|
@@ -16365,7 +16365,7 @@ class kf {
|
|
16365
16365
|
loadChartData = async (n) => {
|
16366
16366
|
try {
|
16367
16367
|
const { accounts: i, monthlyAccountBalances: a } = this.netWorthData, o = await Of(i, a, n), r = _s(o);
|
16368
|
-
|
16368
|
+
J(() => {
|
16369
16369
|
this.netWorthChartData = o, this.selectedData = r;
|
16370
16370
|
});
|
16371
16371
|
} catch (i) {
|
@@ -16388,12 +16388,12 @@ class kf {
|
|
16388
16388
|
};
|
16389
16389
|
}
|
16390
16390
|
setSelectedData = (n) => {
|
16391
|
-
|
16391
|
+
J(() => {
|
16392
16392
|
this.selectedData = this.netWorthChartData[n];
|
16393
16393
|
});
|
16394
16394
|
};
|
16395
16395
|
setHoveredData = (n) => {
|
16396
|
-
|
16396
|
+
J(() => {
|
16397
16397
|
this.hoveredData = n !== null ? this.netWorthChartData[n] : void 0;
|
16398
16398
|
});
|
16399
16399
|
};
|
@@ -16477,7 +16477,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16477
16477
|
}
|
16478
16478
|
),
|
16479
16479
|
/* @__PURE__ */ t(
|
16480
|
-
|
16480
|
+
je,
|
16481
16481
|
{
|
16482
16482
|
amount: r.balance,
|
16483
16483
|
sx: {
|
@@ -16515,7 +16515,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16515
16515
|
},
|
16516
16516
|
children: [
|
16517
16517
|
/* @__PURE__ */ t(C, { variant: "Body", children: r.current_net_worth }),
|
16518
|
-
/* @__PURE__ */ t(
|
16518
|
+
/* @__PURE__ */ t(je, { amount: e?.y ?? 0, variant: "H1" }),
|
16519
16519
|
e && /* @__PURE__ */ t(
|
16520
16520
|
Jo,
|
16521
16521
|
{
|
@@ -16534,7 +16534,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16534
16534
|
{
|
16535
16535
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16536
16536
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.assets }),
|
16537
|
-
/* @__PURE__ */ t(
|
16537
|
+
/* @__PURE__ */ t(je, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16538
16538
|
] })
|
16539
16539
|
}
|
16540
16540
|
) }),
|
@@ -16544,7 +16544,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16544
16544
|
{
|
16545
16545
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16546
16546
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.liabilities }),
|
16547
|
-
/* @__PURE__ */ t(
|
16547
|
+
/* @__PURE__ */ t(je, { amount: o, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16548
16548
|
] })
|
16549
16549
|
}
|
16550
16550
|
) }),
|
@@ -16571,7 +16571,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16571
16571
|
{
|
16572
16572
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16573
16573
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.gains }),
|
16574
|
-
/* @__PURE__ */ t(
|
16574
|
+
/* @__PURE__ */ t(je, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16575
16575
|
] })
|
16576
16576
|
}
|
16577
16577
|
) }),
|
@@ -16582,7 +16582,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16582
16582
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
16583
16583
|
/* @__PURE__ */ t(C, { variant: "Body", children: c.accountName }),
|
16584
16584
|
/* @__PURE__ */ t(
|
16585
|
-
|
16585
|
+
je,
|
16586
16586
|
{
|
16587
16587
|
amount: c.gain,
|
16588
16588
|
sx: { color: s.palette.success.main, fontWeight: 700 },
|
@@ -16600,7 +16600,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16600
16600
|
{
|
16601
16601
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16602
16602
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.losses }),
|
16603
|
-
/* @__PURE__ */ t(
|
16603
|
+
/* @__PURE__ */ t(je, { amount: o, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16604
16604
|
] })
|
16605
16605
|
}
|
16606
16606
|
) }),
|
@@ -16614,7 +16614,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16614
16614
|
{
|
16615
16615
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
16616
16616
|
/* @__PURE__ */ t(C, { variant: "Body", children: c.accountName }),
|
16617
|
-
/* @__PURE__ */ t(
|
16617
|
+
/* @__PURE__ */ t(je, { amount: c.loss, sx: { fontWeight: 700 }, variant: "Body" })
|
16618
16618
|
] }),
|
16619
16619
|
sx: { px: 16 }
|
16620
16620
|
}
|
@@ -16637,7 +16637,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16637
16637
|
selectedData: f,
|
16638
16638
|
setHoveredData: S,
|
16639
16639
|
setSelectedData: y
|
16640
|
-
} = yc(), { isMobile: E } = Ce(), { onEvent: I } = q(), [w, v] = g.useState(!1), [N, R] = g.useState(6), [M, k] = g.useState(!1), [G, L] = g.useState(!1), [W, Y] = g.useState(!1),
|
16640
|
+
} = yc(), { isMobile: E } = Ce(), { onEvent: I } = q(), [w, v] = g.useState(!1), [N, R] = g.useState(6), [M, k] = g.useState(!1), [G, L] = g.useState(!1), [W, Y] = g.useState(!1), ee = async () => {
|
16641
16641
|
await m(a), await h(N), v(!0);
|
16642
16642
|
};
|
16643
16643
|
g.useEffect(() => {
|
@@ -16645,11 +16645,11 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16645
16645
|
}, []), g.useEffect(() => {
|
16646
16646
|
o(c);
|
16647
16647
|
}, [c]), g.useEffect(() => {
|
16648
|
-
i &&
|
16648
|
+
i && ee().finally();
|
16649
16649
|
}, [i, a]), g.useEffect(() => {
|
16650
16650
|
I(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: N + "M" }), h(N).finally();
|
16651
16651
|
}, [N]);
|
16652
|
-
const
|
16652
|
+
const ue = ($, pe) => {
|
16653
16653
|
y(pe), $.currentTarget instanceof HTMLDivElement && k(!0);
|
16654
16654
|
}, _e = ($) => {
|
16655
16655
|
S($);
|
@@ -16657,18 +16657,18 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16657
16657
|
S(null);
|
16658
16658
|
}, Re = () => {
|
16659
16659
|
I(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), L(!0);
|
16660
|
-
},
|
16660
|
+
}, he = async ($) => {
|
16661
16661
|
const pe = $[0], be = $[1];
|
16662
16662
|
pe && be && R(Yd(be, pe));
|
16663
16663
|
}, me = {
|
16664
16664
|
chartData: p,
|
16665
16665
|
hoveredData: _,
|
16666
16666
|
onButtonClick: Re,
|
16667
|
-
onDataClick:
|
16667
|
+
onDataClick: ue,
|
16668
16668
|
onMouseEnter: _e,
|
16669
16669
|
onMouseLeave: Le,
|
16670
16670
|
selectedData: f
|
16671
|
-
},
|
16671
|
+
}, qe = () => {
|
16672
16672
|
Y(!0), I(F.ACCOUNTS_CLICK_CONNECT);
|
16673
16673
|
};
|
16674
16674
|
return n ? /* @__PURE__ */ t(
|
@@ -16676,7 +16676,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16676
16676
|
{
|
16677
16677
|
accountOptions: c,
|
16678
16678
|
calendarActions: {
|
16679
|
-
onRangeChanged:
|
16679
|
+
onRangeChanged: he
|
16680
16680
|
},
|
16681
16681
|
dateRangeVariant: E ? "timeframetabs" : "timeframebuttons",
|
16682
16682
|
onAccountsFilterClick: () => I(F.NET_WORTH_WIDGET_CLICK_FILTER),
|
@@ -16716,7 +16716,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16716
16716
|
{
|
16717
16717
|
header: s.empty_widget_header,
|
16718
16718
|
icon: "elevation",
|
16719
|
-
onClick:
|
16719
|
+
onClick: qe,
|
16720
16720
|
primaryButton: s.empty_widget_button,
|
16721
16721
|
subText: s.empty_widget_description,
|
16722
16722
|
sx: {
|
@@ -16728,7 +16728,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16728
16728
|
}
|
16729
16729
|
) }),
|
16730
16730
|
/* @__PURE__ */ t(
|
16731
|
-
|
16731
|
+
Ti,
|
16732
16732
|
{
|
16733
16733
|
onClose: () => Y(!1),
|
16734
16734
|
showConnectionsWidget: W,
|
@@ -16806,7 +16806,7 @@ class Kf {
|
|
16806
16806
|
try {
|
16807
16807
|
this.isLoading = !0;
|
16808
16808
|
const n = await this.api.getNotifications();
|
16809
|
-
|
16809
|
+
J(() => {
|
16810
16810
|
this.notifications = n, this.recentNotifications = Vf(n), this.isLoading = !1;
|
16811
16811
|
});
|
16812
16812
|
} catch (n) {
|
@@ -17045,7 +17045,7 @@ class tC {
|
|
17045
17045
|
try {
|
17046
17046
|
await this.api.deleteDevice(n);
|
17047
17047
|
const i = this.devices.findIndex((a) => a.guid === n);
|
17048
|
-
return i >= 0 &&
|
17048
|
+
return i >= 0 && J(() => {
|
17049
17049
|
this.devices.splice(i, 1);
|
17050
17050
|
}), { success: !0 };
|
17051
17051
|
} catch {
|
@@ -17069,7 +17069,7 @@ class tC {
|
|
17069
17069
|
loadDevices = async () => {
|
17070
17070
|
try {
|
17071
17071
|
const n = await this.api.getDevices();
|
17072
|
-
|
17072
|
+
J(() => {
|
17073
17073
|
this.devices = n;
|
17074
17074
|
});
|
17075
17075
|
} catch (n) {
|
@@ -17079,7 +17079,7 @@ class tC {
|
|
17079
17079
|
loadNotificationProfiles = async () => {
|
17080
17080
|
try {
|
17081
17081
|
const n = await this.api.getNotificationProfiles();
|
17082
|
-
|
17082
|
+
J(() => {
|
17083
17083
|
this.notificationProfiles = n;
|
17084
17084
|
});
|
17085
17085
|
} catch (n) {
|
@@ -17089,7 +17089,7 @@ class tC {
|
|
17089
17089
|
loadTransactionRules = async () => {
|
17090
17090
|
try {
|
17091
17091
|
const n = await this.transactionApi.getTransactionRules();
|
17092
|
-
|
17092
|
+
J(() => {
|
17093
17093
|
this.transactionRules = n;
|
17094
17094
|
});
|
17095
17095
|
} catch (n) {
|
@@ -17117,7 +17117,7 @@ class tC {
|
|
17117
17117
|
updateDevice = async (n) => {
|
17118
17118
|
try {
|
17119
17119
|
const i = await this.api.updateDevice(n), a = this.devices.findIndex((o) => o.guid === n.guid);
|
17120
|
-
return a >= 0 &&
|
17120
|
+
return a >= 0 && J(() => {
|
17121
17121
|
this.devices[a] = i;
|
17122
17122
|
}), { success: !0 };
|
17123
17123
|
} catch (i) {
|
@@ -17127,7 +17127,7 @@ class tC {
|
|
17127
17127
|
updateNotificationProfile = async (n) => {
|
17128
17128
|
try {
|
17129
17129
|
const i = await this.api.updateNotificationProfile(n), a = this.notificationProfiles.findIndex((o) => o.guid === n.guid);
|
17130
|
-
a >= 0 &&
|
17130
|
+
a >= 0 && J(() => {
|
17131
17131
|
this.notificationProfiles[a] = i;
|
17132
17132
|
});
|
17133
17133
|
} catch (i) {
|
@@ -17181,7 +17181,7 @@ const ml = x(() => {
|
|
17181
17181
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
17182
17182
|
/* @__PURE__ */ d(te, { onClick: l, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
17183
17183
|
/* @__PURE__ */ t(C, { variant: "Small", children: n.verify_email }),
|
17184
|
-
/* @__PURE__ */ t(
|
17184
|
+
/* @__PURE__ */ t(ze, {})
|
17185
17185
|
] }),
|
17186
17186
|
/* @__PURE__ */ t(
|
17187
17187
|
Be,
|
@@ -17263,7 +17263,7 @@ const ml = x(() => {
|
|
17263
17263
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
17264
17264
|
/* @__PURE__ */ d(te, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
17265
17265
|
/* @__PURE__ */ t(C, { variant: "Small", children: n.verify_phone }),
|
17266
|
-
/* @__PURE__ */ t(
|
17266
|
+
/* @__PURE__ */ t(ze, {})
|
17267
17267
|
] }),
|
17268
17268
|
/* @__PURE__ */ t(
|
17269
17269
|
Be,
|
@@ -17312,7 +17312,7 @@ const ml = x(() => {
|
|
17312
17312
|
)
|
17313
17313
|
] });
|
17314
17314
|
}), iC = ({ availableWidth: e, handleOnLeavClick: n }) => {
|
17315
|
-
const i =
|
17315
|
+
const i = Ye(), { common: a, settings: o } = A(), { isDesktop: r, isMobile: s, isSmallMobile: c, isTablet: l } = Ce(e), { config: u } = vt(), { updateUser: _ } = yt(), { user: h } = ft(), [m, p] = g.useState({
|
17316
17316
|
first_name: h.first_name,
|
17317
17317
|
last_name: h.last_name,
|
17318
17318
|
email: h.email,
|
@@ -17333,8 +17333,8 @@ const ml = x(() => {
|
|
17333
17333
|
}, [f]);
|
17334
17334
|
const N = () => {
|
17335
17335
|
if (m.birthday) {
|
17336
|
-
const L = new Date(m.birthday * 1e3), W = L.getUTCFullYear(), Y = L.getUTCMonth(),
|
17337
|
-
return new Date(W, Y,
|
17336
|
+
const L = new Date(m.birthday * 1e3), W = L.getUTCFullYear(), Y = L.getUTCMonth(), ee = L.getUTCDate();
|
17337
|
+
return new Date(W, Y, ee);
|
17338
17338
|
}
|
17339
17339
|
}, R = async () => {
|
17340
17340
|
await _({ ...h, ...m }), S(!1);
|
@@ -17364,7 +17364,7 @@ const ml = x(() => {
|
|
17364
17364
|
}
|
17365
17365
|
},
|
17366
17366
|
children: [
|
17367
|
-
/* @__PURE__ */ t(
|
17367
|
+
/* @__PURE__ */ t(Ze, { children: o.personal_details }),
|
17368
17368
|
/* @__PURE__ */ t(X, { variant: "Body", children: o.update_information }),
|
17369
17369
|
/* @__PURE__ */ d(
|
17370
17370
|
b,
|
@@ -17534,7 +17534,7 @@ const oC = ({
|
|
17534
17534
|
field: "created_at",
|
17535
17535
|
headerName: o.mobile_devices_column_added,
|
17536
17536
|
renderHeader: zt,
|
17537
|
-
valueFormatter: (c) => rc(
|
17537
|
+
valueFormatter: (c) => rc(Ve(c), { addSuffix: !0 }),
|
17538
17538
|
sortable: !0,
|
17539
17539
|
hideSortIcons: !1,
|
17540
17540
|
flex: 1,
|
@@ -17638,7 +17638,7 @@ const oC = ({
|
|
17638
17638
|
children: /* @__PURE__ */ d(b, { gap: 4, children: [
|
17639
17639
|
/* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: l.name }),
|
17640
17640
|
/* @__PURE__ */ t(C, { color: a.palette.text.secondary, variant: "Small", children: `${l.make} ${l.model}` }),
|
17641
|
-
/* @__PURE__ */ t(C, { color: a.palette.text.secondary, variant: "Small", children: rc(
|
17641
|
+
/* @__PURE__ */ t(C, { color: a.palette.text.secondary, variant: "Small", children: rc(Ve(l.created_at), { addSuffix: !0 }) })
|
17642
17642
|
] })
|
17643
17643
|
}
|
17644
17644
|
),
|
@@ -17848,7 +17848,7 @@ const oC = ({
|
|
17848
17848
|
},
|
17849
17849
|
children: [
|
17850
17850
|
/* @__PURE__ */ d(b, { gap: 4, children: [
|
17851
|
-
/* @__PURE__ */ t(
|
17851
|
+
/* @__PURE__ */ t(Ze, { children: n.mobile_devices_title }),
|
17852
17852
|
/* @__PURE__ */ t(X, { variant: "Body", children: n.mobile_devices_info })
|
17853
17853
|
] }),
|
17854
17854
|
e ? /* @__PURE__ */ t(
|
@@ -18046,7 +18046,7 @@ const oC = ({
|
|
18046
18046
|
n().finally();
|
18047
18047
|
}, []), /* @__PURE__ */ d(b, { sx: { gap: 24, py: 24 }, children: [
|
18048
18048
|
/* @__PURE__ */ d(b, { sx: { px: 24 }, children: [
|
18049
|
-
/* @__PURE__ */ t(
|
18049
|
+
/* @__PURE__ */ t(Ze, { children: e.transaction_rules_label }),
|
18050
18050
|
/* @__PURE__ */ t(X, { variant: "Body", children: e.transaction_rules_description })
|
18051
18051
|
] }),
|
18052
18052
|
/* @__PURE__ */ t(ae, { children: i.map((a, o) => /* @__PURE__ */ t(gC, { rule: a }, o)) })
|
@@ -18057,7 +18057,7 @@ const oC = ({
|
|
18057
18057
|
n.account?.day_payment_is_due || 0
|
18058
18058
|
), p = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ? T(
|
18059
18059
|
o.notification_debt_payment_date,
|
18060
|
-
|
18060
|
+
Mi(n.account?.day_payment_is_due)
|
18061
18061
|
) : o.notification_debt_payment_zero_state, S = s ? f : H(n.threshold ?? 0, "0,0"), y = async () => {
|
18062
18062
|
s && n.account ? await r({ ...n.account, day_payment_is_due: h }) : e({ ...n, threshold: u });
|
18063
18063
|
};
|
@@ -18072,7 +18072,7 @@ const oC = ({
|
|
18072
18072
|
institutionGuid: n.account?.institution_guid
|
18073
18073
|
}
|
18074
18074
|
) : void 0,
|
18075
|
-
endIcon: /* @__PURE__ */ t(
|
18075
|
+
endIcon: /* @__PURE__ */ t(ze, {}),
|
18076
18076
|
isChecked: n.is_enabled,
|
18077
18077
|
onClick: () => l(!0),
|
18078
18078
|
onToggle: () => e({
|
@@ -18098,8 +18098,8 @@ const oC = ({
|
|
18098
18098
|
children: s ? /* @__PURE__ */ t(gi, { dateAdapter: Jn, children: /* @__PURE__ */ t(
|
18099
18099
|
bo,
|
18100
18100
|
{
|
18101
|
-
maxDate:
|
18102
|
-
minDate:
|
18101
|
+
maxDate: Qe(/* @__PURE__ */ new Date()),
|
18102
|
+
minDate: Xe(/* @__PURE__ */ new Date()),
|
18103
18103
|
onChange: (E) => {
|
18104
18104
|
m(E.getDate());
|
18105
18105
|
},
|
@@ -18213,7 +18213,7 @@ const oC = ({
|
|
18213
18213
|
e.filter((c) => c.children && c.children.length > 0).map((c) => /* @__PURE__ */ t(
|
18214
18214
|
Lo,
|
18215
18215
|
{
|
18216
|
-
endIcon: /* @__PURE__ */ t(
|
18216
|
+
endIcon: /* @__PURE__ */ t(ze, {}),
|
18217
18217
|
isChecked: c.is_enabled,
|
18218
18218
|
isDisabled: !c.is_enabled,
|
18219
18219
|
onClick: () => a(c.guid),
|
@@ -18338,7 +18338,7 @@ const oC = ({
|
|
18338
18338
|
await a(u);
|
18339
18339
|
};
|
18340
18340
|
return /* @__PURE__ */ d(b, { children: [
|
18341
|
-
/* @__PURE__ */ t(
|
18341
|
+
/* @__PURE__ */ t(Ze, { sx: { mt: 24 }, children: n.delivery_method_title }),
|
18342
18342
|
i.email_notifications_enabled && /* @__PURE__ */ d(Z, { children: [
|
18343
18343
|
/* @__PURE__ */ t(
|
18344
18344
|
Rn,
|
@@ -18403,7 +18403,7 @@ const oC = ({
|
|
18403
18403
|
return /* @__PURE__ */ d(b, { ref: n, children: [
|
18404
18404
|
/* @__PURE__ */ t(P, {}),
|
18405
18405
|
/* @__PURE__ */ d(b, { sx: { pt: 12 }, children: [
|
18406
|
-
/* @__PURE__ */ t(
|
18406
|
+
/* @__PURE__ */ t(Ze, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: o.personal_details }),
|
18407
18407
|
/* @__PURE__ */ d(b, { sx: { flexDirection: i <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
18408
18408
|
e.display_email_edit_field_in_settings && /* @__PURE__ */ d(b, { sx: { flex: 1, pb: 14 }, children: [
|
18409
18409
|
/* @__PURE__ */ t(
|
@@ -18505,20 +18505,20 @@ const oC = ({
|
|
18505
18505
|
/* @__PURE__ */ t(fC, {}),
|
18506
18506
|
/* @__PURE__ */ t(P, { sx: { my: 24 } })
|
18507
18507
|
] }),
|
18508
|
-
/* @__PURE__ */ t(
|
18508
|
+
/* @__PURE__ */ t(Ze, { sx: { mb: 4 }, children: o.notification_types_title })
|
18509
18509
|
] }),
|
18510
18510
|
/* @__PURE__ */ d(ae, { children: [
|
18511
18511
|
e.includes(Mt.Accounts) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => u(Mt.Accounts), children: [
|
18512
18512
|
/* @__PURE__ */ t(oe, { primary: o.accounts_title, secondary: o.accounts_subtitle }),
|
18513
|
-
/* @__PURE__ */ t(
|
18513
|
+
/* @__PURE__ */ t(ze, {})
|
18514
18514
|
] }) }),
|
18515
18515
|
e.includes(Mt.Budgets) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => u(Mt.Budgets), children: [
|
18516
18516
|
/* @__PURE__ */ t(oe, { primary: o.budgets_title, secondary: o.budgets_subtitle }),
|
18517
|
-
/* @__PURE__ */ t(
|
18517
|
+
/* @__PURE__ */ t(ze, {})
|
18518
18518
|
] }) }),
|
18519
18519
|
e.includes(Mt.Insights) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => u(Mt.Insights), children: [
|
18520
18520
|
/* @__PURE__ */ t(oe, { primary: o.insights_title, secondary: o.insights_subtitle }),
|
18521
|
-
/* @__PURE__ */ t(
|
18521
|
+
/* @__PURE__ */ t(ze, {})
|
18522
18522
|
] }) })
|
18523
18523
|
] }),
|
18524
18524
|
y && /* @__PURE__ */ t(b, { sx: { px: 24 }, children: /* @__PURE__ */ t(bC, {}) }),
|
@@ -18559,7 +18559,7 @@ const oC = ({
|
|
18559
18559
|
},
|
18560
18560
|
children: [
|
18561
18561
|
/* @__PURE__ */ d(b, { children: [
|
18562
|
-
/* @__PURE__ */ t(
|
18562
|
+
/* @__PURE__ */ t(Ze, { children: o }),
|
18563
18563
|
/* @__PURE__ */ t(X, { variant: "Body", children: a })
|
18564
18564
|
] }),
|
18565
18565
|
n && /* @__PURE__ */ t(
|
@@ -18654,7 +18654,7 @@ const oC = ({
|
|
18654
18654
|
imageLargeBreakPoint: o = 12,
|
18655
18655
|
sx: r
|
18656
18656
|
}) => {
|
18657
|
-
const s =
|
18657
|
+
const s = Ye();
|
18658
18658
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18659
18659
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, rowSpacing: 24, children: [
|
18660
18660
|
/* @__PURE__ */ t(_t, { item: !0, lg: 12, md: 12, sm: 12, xs: 12, children: n }),
|
@@ -18698,7 +18698,7 @@ const oC = ({
|
|
18698
18698
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18699
18699
|
/* @__PURE__ */ d(_t, { container: !0, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
18700
18700
|
/* @__PURE__ */ d(_t, { item: !0, sm: 6, xs: 12, children: [
|
18701
|
-
/* @__PURE__ */ t(
|
18701
|
+
/* @__PURE__ */ t(Ze, { color: "text.primary", children: o }),
|
18702
18702
|
/* @__PURE__ */ d(
|
18703
18703
|
c_,
|
18704
18704
|
{
|
@@ -18745,7 +18745,7 @@ const oC = ({
|
|
18745
18745
|
imageLargeBreakPoint: o = 4,
|
18746
18746
|
sx: r
|
18747
18747
|
}) => {
|
18748
|
-
const s =
|
18748
|
+
const s = Ye();
|
18749
18749
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18750
18750
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
18751
18751
|
/* @__PURE__ */ t(
|
@@ -18792,7 +18792,7 @@ const oC = ({
|
|
18792
18792
|
imageLargeBreakPoint: o = 4,
|
18793
18793
|
sx: r
|
18794
18794
|
}) => {
|
18795
|
-
const s =
|
18795
|
+
const s = Ye();
|
18796
18796
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18797
18797
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
18798
18798
|
/* @__PURE__ */ t(_t, { item: !0, lg: 12 - o, md: 12, sm: 12, xs: 12, children: n }),
|
@@ -18830,7 +18830,7 @@ const oC = ({
|
|
18830
18830
|
imageLargeBreakPoint: o = 12,
|
18831
18831
|
sx: r
|
18832
18832
|
}) => {
|
18833
|
-
const s =
|
18833
|
+
const s = Ye();
|
18834
18834
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18835
18835
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, rowSpacing: 24, children: [
|
18836
18836
|
/* @__PURE__ */ t(
|
@@ -18862,7 +18862,7 @@ const oC = ({
|
|
18862
18862
|
] }) }),
|
18863
18863
|
i && /* @__PURE__ */ t(P, {})
|
18864
18864
|
] });
|
18865
|
-
}, U = ({ content: e, sx: n }) => /* @__PURE__ */ t(X, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }),
|
18865
|
+
}, U = ({ content: e, sx: n }) => /* @__PURE__ */ t(X, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), Ae = ({ content: e, sx: n }) => /* @__PURE__ */ t(Ze, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), ne = ({
|
18866
18866
|
items: e,
|
18867
18867
|
listType: n = "ul",
|
18868
18868
|
subItemPlacement: i,
|
@@ -18874,49 +18874,49 @@ const oC = ({
|
|
18874
18874
|
/* @__PURE__ */ t(U, { content: c, sx: { py: 1 } }),
|
18875
18875
|
i === l ? /* @__PURE__ */ t(s, { ...o === "ol" && { type: "a" }, children: a.map((u, _) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(U, { content: u, sx: { py: 1 } }) }, _)) }) : null
|
18876
18876
|
] }, l)) }) });
|
18877
|
-
},
|
18878
|
-
ACCOUNT_DETAILS: `${
|
18879
|
-
ACCOUNT_OVERVIEW: `${
|
18880
|
-
ACCOUNT_ADD: `${
|
18881
|
-
ACCOUNT_BROKEN_CONNECTION: `${
|
18882
|
-
ACCOUNT_HIDE: `${
|
18883
|
-
ACCOUNT_MANAGE_CONNECTIONS: `${
|
18884
|
-
BUDGETS_ADD_SUB_BUDGET: `${
|
18885
|
-
BUDGETS_WIDGET: `${
|
18886
|
-
BUDGETS_EDIT_INCOME: `${
|
18887
|
-
CASHFLOW_WIDGET: `${
|
18888
|
-
CASHFLOW_EXPENSE_DETAILS: `${
|
18889
|
-
CASHFLOW_MANAGE_EXPENSES: `${
|
18890
|
-
DEBTS_DETAILS: `${
|
18891
|
-
DEBTS_OVERVIEW: `${
|
18892
|
-
DEBTS_PRIORITIZATION: `${
|
18893
|
-
DEBTS_SNOWBALL_METHOD: `${
|
18894
|
-
GENERAL_CATEGORIZE_TRANSACTIONS: `${
|
18895
|
-
GOALS_CREATE_GOAL: `${
|
18896
|
-
GOALS_DEBT_GOALS: `${
|
18897
|
-
GOALS_WIDGET_OVERVIEW: `${
|
18898
|
-
GOALS_MANAGE_GOALS: `${
|
18899
|
-
GOALS_RETIREMENT_GOALS: `${
|
18900
|
-
GOALS_SAVINGS_GOALS: `${
|
18901
|
-
INSIGHTS_CAROUSEL: `${
|
18902
|
-
INSIGHTS_FEED: `${
|
18903
|
-
INVESTMENTS_WIDGET_DETAILS: `${
|
18904
|
-
MOBILE_ADD_MOBILE_DEVICE: `${
|
18905
|
-
NETWORTH_ASSETS_LIABILITIES: `${
|
18906
|
-
NETWORTH_GAINS_LOSSES: `${
|
18907
|
-
NETWORTH_WIDGET: `${
|
18908
|
-
NOTIFICATIONS_MANAGING: `${
|
18909
|
-
NOTIFICATIONS_OVERVIEW: `${
|
18910
|
-
RECURRING_TRANSACTIONS_EXPENSE_DETAILS: `${
|
18911
|
-
RECURRING_TRANSACTIONS_MANAGE_EXPENSES: `${
|
18912
|
-
RECURRING_TRANSACTIONS_OVERVIEW: `${
|
18913
|
-
SPENDING_WIDGET: `${
|
18914
|
-
TRANSACTIONS_CATEGORIZE: `${
|
18915
|
-
TRANSACTIONS_EDIT: `${
|
18916
|
-
TRANSACTIONS_EXPORT: `${
|
18917
|
-
TRANSACTIONS_OVERVIEW: `${
|
18918
|
-
TRANSACTIONS_RULES: `${
|
18919
|
-
TRENDS_WIDGET: `${
|
18877
|
+
}, xe = "https://content.moneydesktop.com/storage/MD_Assets/md/help", Oe = {
|
18878
|
+
ACCOUNT_DETAILS: `${xe}/account/AccountDetails.png`,
|
18879
|
+
ACCOUNT_OVERVIEW: `${xe}/account/AccountsOverview.png`,
|
18880
|
+
ACCOUNT_ADD: `${xe}/account/AddAccount.png`,
|
18881
|
+
ACCOUNT_BROKEN_CONNECTION: `${xe}/account/BrokenConnection.png`,
|
18882
|
+
ACCOUNT_HIDE: `${xe}/account/AccountHide.png`,
|
18883
|
+
ACCOUNT_MANAGE_CONNECTIONS: `${xe}/account/ManageConnections.png`,
|
18884
|
+
BUDGETS_ADD_SUB_BUDGET: `${xe}/budgets/AddSubBudget.png`,
|
18885
|
+
BUDGETS_WIDGET: `${xe}/budgets/BudgetWidget.png`,
|
18886
|
+
BUDGETS_EDIT_INCOME: `${xe}/budgets/EditIncome.png`,
|
18887
|
+
CASHFLOW_WIDGET: `${xe}/cashflow/CashFlowWidget.png`,
|
18888
|
+
CASHFLOW_EXPENSE_DETAILS: `${xe}/cashflow/ExpenseDetailsCurrent.png`,
|
18889
|
+
CASHFLOW_MANAGE_EXPENSES: `${xe}/cashflow/ManageExpenses.png`,
|
18890
|
+
DEBTS_DETAILS: `${xe}/debts/DebtDetails.png`,
|
18891
|
+
DEBTS_OVERVIEW: `${xe}/debts/DebtOverview.png`,
|
18892
|
+
DEBTS_PRIORITIZATION: `${xe}/debts/DebtPrioritization.png`,
|
18893
|
+
DEBTS_SNOWBALL_METHOD: `${xe}/debts/SnowballMethod.png`,
|
18894
|
+
GENERAL_CATEGORIZE_TRANSACTIONS: `${xe}/general/CategorizeTransactions.png`,
|
18895
|
+
GOALS_CREATE_GOAL: `${xe}/goals/CreateGoal.png`,
|
18896
|
+
GOALS_DEBT_GOALS: `${xe}/goals/DebtGoals.png`,
|
18897
|
+
GOALS_WIDGET_OVERVIEW: `${xe}/goals/GoalsWidgetOverview.png`,
|
18898
|
+
GOALS_MANAGE_GOALS: `${xe}/goals/ManageGoals.png`,
|
18899
|
+
GOALS_RETIREMENT_GOALS: `${xe}/goals/RetirementGoals.png`,
|
18900
|
+
GOALS_SAVINGS_GOALS: `${xe}/goals/SavingsGoals.png`,
|
18901
|
+
INSIGHTS_CAROUSEL: `${xe}/insights/InsightsCarousel.png`,
|
18902
|
+
INSIGHTS_FEED: `${xe}/insights/InsightsFeed.png`,
|
18903
|
+
INVESTMENTS_WIDGET_DETAILS: `${xe}/investments/WidgetDetails.png`,
|
18904
|
+
MOBILE_ADD_MOBILE_DEVICE: `${xe}/mobile/AddMobileDevice.png`,
|
18905
|
+
NETWORTH_ASSETS_LIABILITIES: `${xe}/networth/AssetsLiabilities.png`,
|
18906
|
+
NETWORTH_GAINS_LOSSES: `${xe}/networth/GainsLosses.png`,
|
18907
|
+
NETWORTH_WIDGET: `${xe}/networth/NetWorthWidget.png`,
|
18908
|
+
NOTIFICATIONS_MANAGING: `${xe}/notifications/ManagingNotifications.png`,
|
18909
|
+
NOTIFICATIONS_OVERVIEW: `${xe}/notifications/NotificationOverview.png`,
|
18910
|
+
RECURRING_TRANSACTIONS_EXPENSE_DETAILS: `${xe}/recurringtransactions/expenseDetails.png`,
|
18911
|
+
RECURRING_TRANSACTIONS_MANAGE_EXPENSES: `${xe}/recurringtransactions/manageExpenses.png`,
|
18912
|
+
RECURRING_TRANSACTIONS_OVERVIEW: `${xe}/recurringtransactions/overview.png`,
|
18913
|
+
SPENDING_WIDGET: `${xe}/spending/SpendingWidget.png`,
|
18914
|
+
TRANSACTIONS_CATEGORIZE: `${xe}/transactions/CategorizeTransactions.png`,
|
18915
|
+
TRANSACTIONS_EDIT: `${xe}/transactions/EditTransactions.png`,
|
18916
|
+
TRANSACTIONS_EXPORT: `${xe}/transactions/ExportTransactions.png`,
|
18917
|
+
TRANSACTIONS_OVERVIEW: `${xe}/transactions/Overview.png`,
|
18918
|
+
TRANSACTIONS_RULES: `${xe}/transactions/TransactionRules.png`,
|
18919
|
+
TRENDS_WIDGET: `${xe}/trends/TrendsWidget.png`
|
18920
18920
|
}, EC = ({ copy: e, topicKey: n }) => ({
|
18921
18921
|
"accounts-overview": /* @__PURE__ */ d(g.Fragment, { children: [
|
18922
18922
|
/* @__PURE__ */ t(
|
@@ -18940,7 +18940,7 @@ const oC = ({
|
|
18940
18940
|
imageLargeBreakPoint: 5
|
18941
18941
|
}
|
18942
18942
|
),
|
18943
|
-
/* @__PURE__ */ t(
|
18943
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.edit_account_title, sx: { pt: 48 } }),
|
18944
18944
|
/* @__PURE__ */ t(
|
18945
18945
|
Bt,
|
18946
18946
|
{
|
@@ -18975,7 +18975,7 @@ const oC = ({
|
|
18975
18975
|
imageLargeBreakPoint: 3
|
18976
18976
|
}
|
18977
18977
|
),
|
18978
|
-
/* @__PURE__ */ t(
|
18978
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.add_account_title, sx: { pt: 48 } }),
|
18979
18979
|
/* @__PURE__ */ t(
|
18980
18980
|
ln,
|
18981
18981
|
{
|
@@ -19015,7 +19015,7 @@ const oC = ({
|
|
19015
19015
|
)
|
19016
19016
|
}
|
19017
19017
|
),
|
19018
|
-
/* @__PURE__ */ t(
|
19018
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.hide_account_title }),
|
19019
19019
|
/* @__PURE__ */ t(
|
19020
19020
|
ne,
|
19021
19021
|
{
|
@@ -19032,7 +19032,7 @@ const oC = ({
|
|
19032
19032
|
listType: "ol"
|
19033
19033
|
}
|
19034
19034
|
),
|
19035
|
-
/* @__PURE__ */ t(
|
19035
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.unhide_account_title }),
|
19036
19036
|
/* @__PURE__ */ t(
|
19037
19037
|
ne,
|
19038
19038
|
{
|
@@ -19128,8 +19128,8 @@ const oC = ({
|
|
19128
19128
|
at,
|
19129
19129
|
{
|
19130
19130
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
19131
|
-
/* @__PURE__ */ t(
|
19132
|
-
/* @__PURE__ */ t(
|
19131
|
+
/* @__PURE__ */ t(Ae, { content: e.seeing_duplicate_accounts.warning_title }),
|
19132
|
+
/* @__PURE__ */ t(Ae, { content: e.seeing_duplicate_accounts.instructions_title }),
|
19133
19133
|
/* @__PURE__ */ t(
|
19134
19134
|
ne,
|
19135
19135
|
{
|
@@ -19183,7 +19183,7 @@ const oC = ({
|
|
19183
19183
|
image: Oe.BUDGETS_WIDGET
|
19184
19184
|
}
|
19185
19185
|
),
|
19186
|
-
/* @__PURE__ */ t(
|
19186
|
+
/* @__PURE__ */ t(Ae, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
19187
19187
|
/* @__PURE__ */ t(
|
19188
19188
|
Bt,
|
19189
19189
|
{
|
@@ -19210,7 +19210,7 @@ const oC = ({
|
|
19210
19210
|
image: Oe.BUDGETS_EDIT_INCOME
|
19211
19211
|
}
|
19212
19212
|
),
|
19213
|
-
/* @__PURE__ */ t(
|
19213
|
+
/* @__PURE__ */ t(Ae, { content: i.create_budget_title, sx: { pt: 48 } }),
|
19214
19214
|
/* @__PURE__ */ t(
|
19215
19215
|
on,
|
19216
19216
|
{
|
@@ -19288,7 +19288,7 @@ const oC = ({
|
|
19288
19288
|
}
|
19289
19289
|
),
|
19290
19290
|
/* @__PURE__ */ t(
|
19291
|
-
|
19291
|
+
Ae,
|
19292
19292
|
{
|
19293
19293
|
content: e.cashflow_overview.manage_expenses_section_title,
|
19294
19294
|
sx: { pt: 48 }
|
@@ -19528,19 +19528,19 @@ const oC = ({
|
|
19528
19528
|
};
|
19529
19529
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
19530
19530
|
i.overviewSection,
|
19531
|
-
/* @__PURE__ */ t(
|
19531
|
+
/* @__PURE__ */ t(Ae, { content: n.snowball_method_title, sx: { pt: 48 } }),
|
19532
19532
|
i.snowballMethod,
|
19533
|
-
/* @__PURE__ */ t(
|
19533
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_prioritization, sx: { pt: 48 } }),
|
19534
19534
|
i.debtPrioritization,
|
19535
|
-
/* @__PURE__ */ t(
|
19535
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_chart, sx: { pt: 48 } }),
|
19536
19536
|
i.debtChart,
|
19537
|
-
/* @__PURE__ */ t(
|
19537
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_list, sx: { pt: 48 } }),
|
19538
19538
|
i.debtList,
|
19539
|
-
/* @__PURE__ */ t(
|
19539
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_details, sx: { pt: 48 } }),
|
19540
19540
|
i.debtDetails,
|
19541
|
-
/* @__PURE__ */ t(
|
19541
|
+
/* @__PURE__ */ t(Ae, { content: n.hiding_accounts, sx: { pt: 48 } }),
|
19542
19542
|
i.hidingAccounts,
|
19543
|
-
/* @__PURE__ */ t(
|
19543
|
+
/* @__PURE__ */ t(Ae, { content: n.extra_payments, sx: { pt: 48 } }),
|
19544
19544
|
i.extraPayments
|
19545
19545
|
] });
|
19546
19546
|
}, IC = ({ topicKey: e, copy: n }) => {
|
@@ -19703,7 +19703,7 @@ const oC = ({
|
|
19703
19703
|
at,
|
19704
19704
|
{
|
19705
19705
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
19706
|
-
/* @__PURE__ */ t(
|
19706
|
+
/* @__PURE__ */ t(Ae, { content: n.setting_goals_section_title }),
|
19707
19707
|
/* @__PURE__ */ t(U, { content: `${n.setting_goals_title_text}:` }),
|
19708
19708
|
/* @__PURE__ */ t(
|
19709
19709
|
ne,
|
@@ -19728,7 +19728,7 @@ const oC = ({
|
|
19728
19728
|
hasDivider: !0
|
19729
19729
|
}
|
19730
19730
|
),
|
19731
|
-
/* @__PURE__ */ t(
|
19731
|
+
/* @__PURE__ */ t(Ae, { content: n.create_goal_section_title, sx: { pt: 48 } }),
|
19732
19732
|
/* @__PURE__ */ t(
|
19733
19733
|
ln,
|
19734
19734
|
{
|
@@ -19762,7 +19762,7 @@ const oC = ({
|
|
19762
19762
|
imageLargeBreakPoint: 10
|
19763
19763
|
}
|
19764
19764
|
),
|
19765
|
-
/* @__PURE__ */ t(
|
19765
|
+
/* @__PURE__ */ t(Ae, { content: n.savings_goal_section_title, sx: { pt: 48 } }),
|
19766
19766
|
/* @__PURE__ */ t(
|
19767
19767
|
Bt,
|
19768
19768
|
{
|
@@ -19786,7 +19786,7 @@ const oC = ({
|
|
19786
19786
|
imageLargeBreakPoint: 3
|
19787
19787
|
}
|
19788
19788
|
),
|
19789
|
-
/* @__PURE__ */ t(
|
19789
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_payoff_goal_section_title, sx: { pt: 48 } }),
|
19790
19790
|
/* @__PURE__ */ t(
|
19791
19791
|
Bt,
|
19792
19792
|
{
|
@@ -19812,7 +19812,7 @@ const oC = ({
|
|
19812
19812
|
imageLargeBreakPoint: 3
|
19813
19813
|
}
|
19814
19814
|
),
|
19815
|
-
/* @__PURE__ */ t(
|
19815
|
+
/* @__PURE__ */ t(Ae, { content: n.retirement_goal_section_title, sx: { pt: 48 } }),
|
19816
19816
|
/* @__PURE__ */ t(
|
19817
19817
|
Bt,
|
19818
19818
|
{
|
@@ -19840,7 +19840,7 @@ const oC = ({
|
|
19840
19840
|
}
|
19841
19841
|
),
|
19842
19842
|
/* @__PURE__ */ t(
|
19843
|
-
|
19843
|
+
Ae,
|
19844
19844
|
{
|
19845
19845
|
content: n.adjusting_contribution_priorities_section_title,
|
19846
19846
|
sx: { pt: 48 }
|
@@ -19982,7 +19982,7 @@ const oC = ({
|
|
19982
19982
|
}
|
19983
19983
|
),
|
19984
19984
|
/* @__PURE__ */ t(
|
19985
|
-
|
19985
|
+
Ae,
|
19986
19986
|
{
|
19987
19987
|
content: n.preventing_app_crashes_section_title,
|
19988
19988
|
sx: { pt: 48 }
|
@@ -20041,7 +20041,7 @@ const oC = ({
|
|
20041
20041
|
{
|
20042
20042
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20043
20043
|
/* @__PURE__ */ t(
|
20044
|
-
|
20044
|
+
Ae,
|
20045
20045
|
{
|
20046
20046
|
content: i.net_worth_history_section_title,
|
20047
20047
|
sx: { pt: 48 }
|
@@ -20060,7 +20060,7 @@ const oC = ({
|
|
20060
20060
|
] })
|
20061
20061
|
}
|
20062
20062
|
),
|
20063
|
-
/* @__PURE__ */ t(
|
20063
|
+
/* @__PURE__ */ t(Ae, { content: i.gains_losses_section_title, sx: { mt: 36 } }),
|
20064
20064
|
/* @__PURE__ */ t(
|
20065
20065
|
Bt,
|
20066
20066
|
{
|
@@ -20096,7 +20096,7 @@ const oC = ({
|
|
20096
20096
|
}
|
20097
20097
|
),
|
20098
20098
|
/* @__PURE__ */ t(
|
20099
|
-
|
20099
|
+
Ae,
|
20100
20100
|
{
|
20101
20101
|
content: i.assets_liabilities_section_title,
|
20102
20102
|
sx: { mt: 36 }
|
@@ -20165,7 +20165,7 @@ const oC = ({
|
|
20165
20165
|
}
|
20166
20166
|
),
|
20167
20167
|
/* @__PURE__ */ t(
|
20168
|
-
|
20168
|
+
Ae,
|
20169
20169
|
{
|
20170
20170
|
content: e.notifications_overview.managing_notifications_section_title,
|
20171
20171
|
sx: { pt: 48 }
|
@@ -20202,7 +20202,7 @@ const oC = ({
|
|
20202
20202
|
at,
|
20203
20203
|
{
|
20204
20204
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20205
|
-
/* @__PURE__ */ t(
|
20205
|
+
/* @__PURE__ */ t(Ae, { content: e.notifications_overview.notification_work_section_title }),
|
20206
20206
|
/* @__PURE__ */ t(
|
20207
20207
|
ne,
|
20208
20208
|
{
|
@@ -20234,7 +20234,7 @@ const oC = ({
|
|
20234
20234
|
at,
|
20235
20235
|
{
|
20236
20236
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20237
|
-
/* @__PURE__ */ t(
|
20237
|
+
/* @__PURE__ */ t(Ae, { content: e.notifications_overview.verify_email_section_title }),
|
20238
20238
|
/* @__PURE__ */ t(
|
20239
20239
|
ne,
|
20240
20240
|
{
|
@@ -20338,11 +20338,11 @@ const oC = ({
|
|
20338
20338
|
};
|
20339
20339
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
20340
20340
|
i.overviewSsction,
|
20341
|
-
/* @__PURE__ */ t(
|
20341
|
+
/* @__PURE__ */ t(Ae, { content: n.calendar_title, sx: { pt: 48 } }),
|
20342
20342
|
i.calendarSection,
|
20343
|
-
/* @__PURE__ */ t(
|
20343
|
+
/* @__PURE__ */ t(Ae, { content: n.edit_recurring_transaction_title, sx: { pt: 48 } }),
|
20344
20344
|
i.editSsction,
|
20345
|
-
/* @__PURE__ */ t(
|
20345
|
+
/* @__PURE__ */ t(Ae, { content: n.payment_frequency_title, sx: { pt: 48 } }),
|
20346
20346
|
i.paymentFrequencySection
|
20347
20347
|
] });
|
20348
20348
|
}, LC = ({ copy: e, topicKey: n }) => {
|
@@ -20379,7 +20379,7 @@ const oC = ({
|
|
20379
20379
|
at,
|
20380
20380
|
{
|
20381
20381
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20382
|
-
/* @__PURE__ */ t(
|
20382
|
+
/* @__PURE__ */ t(Ae, { content: i.date_range_section_title }),
|
20383
20383
|
/* @__PURE__ */ t(U, { content: i.date_range_section }),
|
20384
20384
|
/* @__PURE__ */ t(
|
20385
20385
|
ne,
|
@@ -20481,7 +20481,7 @@ const oC = ({
|
|
20481
20481
|
}
|
20482
20482
|
),
|
20483
20483
|
/* @__PURE__ */ t(
|
20484
|
-
|
20484
|
+
Ae,
|
20485
20485
|
{
|
20486
20486
|
content: e.transactions_widget_overview.edit_transactions_title,
|
20487
20487
|
sx: { pt: 48 }
|
@@ -20533,7 +20533,7 @@ const oC = ({
|
|
20533
20533
|
}
|
20534
20534
|
),
|
20535
20535
|
/* @__PURE__ */ t(
|
20536
|
-
|
20536
|
+
Ae,
|
20537
20537
|
{
|
20538
20538
|
content: e.transactions_widget_overview.categorizing_transactions_title,
|
20539
20539
|
sx: { pt: 48 }
|
@@ -20576,7 +20576,7 @@ const oC = ({
|
|
20576
20576
|
}
|
20577
20577
|
),
|
20578
20578
|
/* @__PURE__ */ t(
|
20579
|
-
|
20579
|
+
Ae,
|
20580
20580
|
{
|
20581
20581
|
content: e.transactions_widget_overview.transaction_rules_title,
|
20582
20582
|
sx: { pt: 48 }
|
@@ -20665,7 +20665,7 @@ const oC = ({
|
|
20665
20665
|
at,
|
20666
20666
|
{
|
20667
20667
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20668
|
-
/* @__PURE__ */ t(
|
20668
|
+
/* @__PURE__ */ t(Ae, { content: e.transactions_widget_overview.split_transactions_title }),
|
20669
20669
|
/* @__PURE__ */ t(U, { content: e.transactions_widget_overview.split_transactions_description }),
|
20670
20670
|
/* @__PURE__ */ t(
|
20671
20671
|
U,
|
@@ -20858,7 +20858,7 @@ const oC = ({
|
|
20858
20858
|
at,
|
20859
20859
|
{
|
20860
20860
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20861
|
-
/* @__PURE__ */ t(
|
20861
|
+
/* @__PURE__ */ t(Ae, { content: e.trends_widget_overview.exploring_trends_title }),
|
20862
20862
|
/* @__PURE__ */ t(
|
20863
20863
|
ne,
|
20864
20864
|
{
|
@@ -20878,7 +20878,7 @@ const oC = ({
|
|
20878
20878
|
at,
|
20879
20879
|
{
|
20880
20880
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20881
|
-
/* @__PURE__ */ t(
|
20881
|
+
/* @__PURE__ */ t(Ae, { content: e.trends_widget_overview.list_view_title }),
|
20882
20882
|
/* @__PURE__ */ t(U, { content: e.trends_widget_overview.list_view_description }),
|
20883
20883
|
/* @__PURE__ */ t(
|
20884
20884
|
ne,
|
@@ -20903,7 +20903,7 @@ const oC = ({
|
|
20903
20903
|
at,
|
20904
20904
|
{
|
20905
20905
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20906
|
-
/* @__PURE__ */ t(
|
20906
|
+
/* @__PURE__ */ t(Ae, { content: i.insights_work_section_title }),
|
20907
20907
|
/* @__PURE__ */ t(U, { content: i.insights_work_description }),
|
20908
20908
|
/* @__PURE__ */ t(
|
20909
20909
|
ne,
|
@@ -20934,7 +20934,7 @@ const oC = ({
|
|
20934
20934
|
sx: { pt: 8 }
|
20935
20935
|
}
|
20936
20936
|
),
|
20937
|
-
/* @__PURE__ */ t(
|
20937
|
+
/* @__PURE__ */ t(Ae, { content: i.dashboard_insights_section_title, sx: { mt: 48 } }),
|
20938
20938
|
/* @__PURE__ */ t(
|
20939
20939
|
on,
|
20940
20940
|
{
|
@@ -20956,7 +20956,7 @@ const oC = ({
|
|
20956
20956
|
image: Oe.INSIGHTS_CAROUSEL
|
20957
20957
|
}
|
20958
20958
|
),
|
20959
|
-
/* @__PURE__ */ t(
|
20959
|
+
/* @__PURE__ */ t(Ae, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
20960
20960
|
/* @__PURE__ */ t(
|
20961
20961
|
Bt,
|
20962
20962
|
{
|
@@ -20997,7 +20997,7 @@ const oC = ({
|
|
20997
20997
|
imageLargeBreakPoint: 3
|
20998
20998
|
}
|
20999
20999
|
),
|
21000
|
-
/* @__PURE__ */ t(
|
21000
|
+
/* @__PURE__ */ t(Ae, { content: i.hide_insights_section_title, sx: { mt: 48 } }),
|
21001
21001
|
/* @__PURE__ */ t(
|
21002
21002
|
at,
|
21003
21003
|
{
|
@@ -21159,7 +21159,7 @@ const oC = ({
|
|
21159
21159
|
) })
|
21160
21160
|
] }),
|
21161
21161
|
e.message && /* @__PURE__ */ t(
|
21162
|
-
|
21162
|
+
Fi,
|
21163
21163
|
{
|
21164
21164
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
21165
21165
|
autoHideDuration: 3500,
|
@@ -21306,7 +21306,7 @@ const oC = ({
|
|
21306
21306
|
y
|
21307
21307
|
)) }),
|
21308
21308
|
o.message && /* @__PURE__ */ t(
|
21309
|
-
|
21309
|
+
Fi,
|
21310
21310
|
{
|
21311
21311
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
21312
21312
|
autoHideDuration: 3500,
|
@@ -21336,7 +21336,7 @@ const oC = ({
|
|
21336
21336
|
secondaryTypographyProps: { variant: "XSmall" }
|
21337
21337
|
}
|
21338
21338
|
),
|
21339
|
-
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(
|
21339
|
+
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(ze, {}) })
|
21340
21340
|
] }) }), bl = ({ list: e, onClick: n, sx: i }) => /* @__PURE__ */ t(O, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ae, { sx: { "& .MuiDivider-root:last-child": { ml: 0 } }, children: e.map(({ name: a, guid: o, subtitle: r, type: s }, c) => /* @__PURE__ */ d(g.Fragment, { children: [
|
21341
21341
|
/* @__PURE__ */ t(
|
21342
21342
|
UC,
|
@@ -21687,7 +21687,7 @@ const oC = ({
|
|
21687
21687
|
e === ri.TransactionRules && /* @__PURE__ */ t(fl, {}),
|
21688
21688
|
e === ri.Help && /* @__PURE__ */ t(b, { sx: { px: 24 }, children: /* @__PURE__ */ t(yl, {}) }),
|
21689
21689
|
/* @__PURE__ */ t(
|
21690
|
-
|
21690
|
+
Fi,
|
21691
21691
|
{
|
21692
21692
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
21693
21693
|
autoHideDuration: 3500,
|
@@ -21966,7 +21966,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
21966
21966
|
})) : [], a = e ? i0(e, n) : [];
|
21967
21967
|
return { monthlyAmounts: i, tooltipLabels: a };
|
21968
21968
|
}, Sl = ({ selectedTab: e, onTabChange: n }) => /* @__PURE__ */ t(
|
21969
|
-
|
21969
|
+
Pi,
|
21970
21970
|
{
|
21971
21971
|
exclusive: !0,
|
21972
21972
|
onChange: n,
|
@@ -22004,7 +22004,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22004
22004
|
] });
|
22005
22005
|
}, o0 = (e) => {
|
22006
22006
|
const n = e.row[e.field];
|
22007
|
-
return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(
|
22007
|
+
return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(je, { amount: n, variant: "Small" }) });
|
22008
22008
|
}, r0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
22009
22009
|
const { categories: i } = A(), a = i.default_categories[e]?.replace(/&/g, "&") ?? ba[e];
|
22010
22010
|
return /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
@@ -22136,13 +22136,13 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22136
22136
|
onClose: m,
|
22137
22137
|
title: l0.title,
|
22138
22138
|
children: [
|
22139
|
-
h && /* @__PURE__ */ t(
|
22139
|
+
h && /* @__PURE__ */ t(Ei, { transaction: h }),
|
22140
22140
|
!h && /* @__PURE__ */ t(Vn, { onClick: _ })
|
22141
22141
|
]
|
22142
22142
|
}
|
22143
22143
|
);
|
22144
22144
|
}, _0 = x(d0), u0 = ({ onBackClick: e, sx: n }) => {
|
22145
|
-
const { onEvent: i } = q(), { isDesktop: a, isTablet: o, isMobile: r } = Ce(), { visibleAccounts: s } = Se(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: l, getCategoryName: u } = Ue(), { sortedTransactions: _ } = ke(), { selectedDateRange: h, setSelectedDateRange: m } =
|
22145
|
+
const { onEvent: i } = q(), { isDesktop: a, isTablet: o, isMobile: r } = Ce(), { visibleAccounts: s } = Se(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: l, getCategoryName: u } = Ue(), { sortedTransactions: _ } = ke(), { selectedDateRange: h, setSelectedDateRange: m } = Wi(), { isCopyLoaded: p, isInitialized: f, selectedAccounts: S, setSelectedAccounts: y } = re(), { trends: E } = A(), [I, w] = g.useState(!1), [v, N] = g.useState(!1), [R, M] = g.useState("Chart"), [k, G] = g.useState(""), [L, W] = g.useState(window.innerHeight), ee = L - (r ? 315 : 345);
|
22146
22146
|
g.useEffect(() => {
|
22147
22147
|
const be = () => W(window.innerHeight);
|
22148
22148
|
return window.addEventListener("resize", be), () => window.removeEventListener("resize", be);
|
@@ -22157,14 +22157,14 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22157
22157
|
w(!0);
|
22158
22158
|
});
|
22159
22159
|
}, [f, S, h]);
|
22160
|
-
const
|
22160
|
+
const ue = g.useMemo(() => {
|
22161
22161
|
if (!I) return { stackedDatasets: [], unstackedDatasets: [] };
|
22162
22162
|
const be = t0(
|
22163
22163
|
l,
|
22164
22164
|
h.start,
|
22165
22165
|
h.end
|
22166
22166
|
), fe = k.length ? be.filter(
|
22167
|
-
(
|
22167
|
+
(Ie) => Ie.top_level_category_guid === k || Ie.category_guid === k
|
22168
22168
|
) : op(be);
|
22169
22169
|
return {
|
22170
22170
|
stackedDatasets: fe.filter(ip),
|
@@ -22173,17 +22173,17 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22173
22173
|
}, [l, k, h]), _e = (be, fe) => {
|
22174
22174
|
M(fe ?? R), i(F.TRENDS_CLICK_TOGGLE);
|
22175
22175
|
}, Le = (be) => {
|
22176
|
-
const fe = mo(be?.[0], 1),
|
22177
|
-
m({ start: fe, end:
|
22176
|
+
const fe = mo(be?.[0], 1), Ie = be?.[1], Ge = po(Ie, fe);
|
22177
|
+
m({ start: fe, end: Ie }), i(F.TRENDS_CLICK_DATE, {
|
22178
22178
|
time_period: Ge + "M"
|
22179
22179
|
});
|
22180
22180
|
}, Re = () => {
|
22181
22181
|
i(F.TRENDS_CLICK_FILTER);
|
22182
|
-
},
|
22182
|
+
}, he = (be) => {
|
22183
22183
|
G(be);
|
22184
22184
|
}, me = (be) => {
|
22185
22185
|
G(be), i(F.TRENDS_CLICK_LEGEND, { category: u(be) });
|
22186
|
-
},
|
22186
|
+
}, qe = (be) => {
|
22187
22187
|
i(F.TRENDS_HOVER_LEGEND, { category: u(be) });
|
22188
22188
|
}, $ = (be) => {
|
22189
22189
|
i(F.TRENDS_HOVER_AREA, { category: be });
|
@@ -22239,20 +22239,20 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22239
22239
|
R === "Chart" && /* @__PURE__ */ t(
|
22240
22240
|
Wu,
|
22241
22241
|
{
|
22242
|
-
availableHeight:
|
22242
|
+
availableHeight: ee,
|
22243
22243
|
onClickLegend: me,
|
22244
22244
|
onHoverArea: $,
|
22245
|
-
onHoverLegend:
|
22245
|
+
onHoverLegend: qe,
|
22246
22246
|
onHoverPoint: pe,
|
22247
|
-
stackedDatasets:
|
22248
|
-
unstackedDatasets:
|
22247
|
+
stackedDatasets: ue.stackedDatasets,
|
22248
|
+
unstackedDatasets: ue.unstackedDatasets
|
22249
22249
|
}
|
22250
22250
|
),
|
22251
22251
|
R === "Table" && /* @__PURE__ */ t(
|
22252
22252
|
Tl,
|
22253
22253
|
{
|
22254
22254
|
monthlyCategoryTotals: l,
|
22255
|
-
onClickRow:
|
22255
|
+
onClickRow: he,
|
22256
22256
|
selectedCategory: k,
|
22257
22257
|
selectedDateRange: h
|
22258
22258
|
}
|
@@ -22274,7 +22274,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22274
22274
|
}
|
22275
22275
|
);
|
22276
22276
|
}, k2 = x(u0), h0 = () => {
|
22277
|
-
const e =
|
22277
|
+
const e = Ye(), { monthlyCategoryTotals: n } = Ue(), { trends: i } = A(), a = sp(n);
|
22278
22278
|
return /* @__PURE__ */ t(
|
22279
22279
|
ni,
|
22280
22280
|
{
|
@@ -22375,7 +22375,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22375
22375
|
{
|
22376
22376
|
ref: c,
|
22377
22377
|
sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
22378
|
-
children: /* @__PURE__ */ t(
|
22378
|
+
children: /* @__PURE__ */ t(Ze, { children: _ })
|
22379
22379
|
}
|
22380
22380
|
),
|
22381
22381
|
r && s >= 450 && !y && /* @__PURE__ */ t(
|
@@ -22575,7 +22575,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22575
22575
|
}
|
22576
22576
|
), b0 = x(
|
22577
22577
|
({ availableHeight: e = 0, onCategoryClick: n }) => {
|
22578
|
-
const { collapsedCategories: i, visibleCategories: a, setVisibleListLength: o } =
|
22578
|
+
const { collapsedCategories: i, visibleCategories: a, setVisibleListLength: o } = Wi(), { isLargeDesktop: r, isDesktop: s } = Ce(), { trends: c } = A(), [l, u] = g.useState(!1), _ = s || r;
|
22579
22579
|
g.useEffect(() => {
|
22580
22580
|
const p = Math.floor(e / 64) - 1, f = a.length + i.length;
|
22581
22581
|
p !== a.length && (o(_ ? Math.max(p, 5) : 5), u(p >= f));
|
@@ -22584,7 +22584,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22584
22584
|
u(!l);
|
22585
22585
|
}, m = a.length + (l ? i.length : 0);
|
22586
22586
|
return /* @__PURE__ */ t(b, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ d(ae, { children: [
|
22587
|
-
/* @__PURE__ */ t(b, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ t(
|
22587
|
+
/* @__PURE__ */ t(b, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ t(Ze, { children: c.categories }) }),
|
22588
22588
|
a.map((p, f) => /* @__PURE__ */ t(
|
22589
22589
|
Es,
|
22590
22590
|
{
|
@@ -22620,7 +22620,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22620
22620
|
}
|
22621
22621
|
);
|
22622
22622
|
class y0 {
|
22623
|
-
copyApi = new
|
22623
|
+
copyApi = new Ni("/", "");
|
22624
22624
|
copyObject = {};
|
22625
22625
|
namespace = "experiences";
|
22626
22626
|
translationKey = "micro_insights";
|
@@ -22628,11 +22628,11 @@ class y0 {
|
|
22628
22628
|
Fe(this);
|
22629
22629
|
}
|
22630
22630
|
initialize = async (n, i) => {
|
22631
|
-
this.copyApi = new
|
22631
|
+
this.copyApi = new Ni(n, i), await this.loadCopy();
|
22632
22632
|
};
|
22633
22633
|
loadCopy = async () => {
|
22634
22634
|
const n = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
22635
|
-
|
22635
|
+
J(() => {
|
22636
22636
|
this.copyObject = n[this.translationKey];
|
22637
22637
|
});
|
22638
22638
|
};
|
@@ -22833,7 +22833,7 @@ class x0 {
|
|
22833
22833
|
initialize = async (n, i, a) => {
|
22834
22834
|
await this.copyStore.initialize(n, i), await this.insightsMicroWidgetStore.initialize(n, i, a);
|
22835
22835
|
const o = await G_(n, i, "1.0.0", "Micro Insights Carousel");
|
22836
|
-
|
22836
|
+
J(() => {
|
22837
22837
|
this.session = o, this.isInitialized = !0;
|
22838
22838
|
});
|
22839
22839
|
};
|
@@ -23957,7 +23957,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
23957
23957
|
shouldApplyNewAnimation: c = !1,
|
23958
23958
|
visibleCardsCount: l = 1
|
23959
23959
|
}) => {
|
23960
|
-
const u =
|
23960
|
+
const u = Ye(), { carouselCopy: _ } = Kn(), h = Math.floor(s) > r || n - l + 1 === 0, m = s < 0 || i - 1 === n, p = u.palette.grey[500], f = e?.primary_300 ?? u.palette.primary.main;
|
23961
23961
|
return /* @__PURE__ */ d(
|
23962
23962
|
b,
|
23963
23963
|
{
|
@@ -24059,8 +24059,8 @@ const Ui = g.createContext(null), I0 = ({
|
|
24059
24059
|
const $ = f.current.offsetWidth, pe = 8;
|
24060
24060
|
let be;
|
24061
24061
|
if (p > 1) {
|
24062
|
-
const
|
24063
|
-
be = ($ -
|
24062
|
+
const Ie = ($ - (p - 1) * pe) / p / 3;
|
24063
|
+
be = ($ - Ie - (p - 1) * pe) / p;
|
24064
24064
|
} else
|
24065
24065
|
be = $;
|
24066
24066
|
M(be);
|
@@ -24095,13 +24095,13 @@ const Ui = g.createContext(null), I0 = ({
|
|
24095
24095
|
top: 0,
|
24096
24096
|
behavior: "smooth"
|
24097
24097
|
});
|
24098
|
-
},
|
24098
|
+
}, ee = () => {
|
24099
24099
|
W(jt.ON_CAROUSEL_BACK_CLICK), f.current && R && f.current.scrollTo({
|
24100
24100
|
left: Math.max(0, y - (R + 8)),
|
24101
24101
|
top: 0,
|
24102
24102
|
behavior: "smooth"
|
24103
24103
|
});
|
24104
|
-
},
|
24104
|
+
}, ue = () => {
|
24105
24105
|
f.current && E(f.current.scrollLeft);
|
24106
24106
|
}, _e = () => {
|
24107
24107
|
if (!v || !I) return;
|
@@ -24110,14 +24110,14 @@ const Ui = g.createContext(null), I0 = ({
|
|
24110
24110
|
w($.targetTouches[0].clientX);
|
24111
24111
|
}, Re = ($) => {
|
24112
24112
|
w(null), N($.targetTouches[0].clientX);
|
24113
|
-
},
|
24113
|
+
}, he = {
|
24114
24114
|
clientColorScheme: i,
|
24115
24115
|
showCTAColocatedWithText: a,
|
24116
24116
|
heightOverrides: o,
|
24117
24117
|
posthog: s,
|
24118
24118
|
showIcon: u,
|
24119
24119
|
variant: h
|
24120
|
-
}, me = R ? Math.round(y / (R + 8)) : 0,
|
24120
|
+
}, me = R ? Math.round(y / (R + 8)) : 0, qe = f.current ? f.current.scrollWidth - f.current.offsetWidth : 0;
|
24121
24121
|
return /* @__PURE__ */ d(
|
24122
24122
|
b,
|
24123
24123
|
{
|
@@ -24136,7 +24136,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24136
24136
|
b,
|
24137
24137
|
{
|
24138
24138
|
direction: "row",
|
24139
|
-
onScroll:
|
24139
|
+
onScroll: ue,
|
24140
24140
|
onTouchEnd: _e,
|
24141
24141
|
onTouchMove: Le,
|
24142
24142
|
onTouchStart: Re,
|
@@ -24160,7 +24160,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24160
24160
|
},
|
24161
24161
|
children: [
|
24162
24162
|
n.map(($, pe) => {
|
24163
|
-
const be = pe + 1, fe = n.length + 1,
|
24163
|
+
const be = pe + 1, fe = n.length + 1, Ie = T(
|
24164
24164
|
L.card_position_in_carousel_aria,
|
24165
24165
|
be.toString(),
|
24166
24166
|
fe.toString()
|
@@ -24168,13 +24168,13 @@ const Ui = g.createContext(null), I0 = ({
|
|
24168
24168
|
return /* @__PURE__ */ t(
|
24169
24169
|
B0,
|
24170
24170
|
{
|
24171
|
-
ariaLabel: `${
|
24171
|
+
ariaLabel: `${Ie}: ${Wt}, ${K}`,
|
24172
24172
|
beat: $,
|
24173
24173
|
index: pe,
|
24174
24174
|
isActiveCard: pe === me,
|
24175
24175
|
onCardClick: r,
|
24176
24176
|
widthOverrides: R || void 0,
|
24177
|
-
...
|
24177
|
+
...he
|
24178
24178
|
},
|
24179
24179
|
`${$.guid} ${pe}`
|
24180
24180
|
);
|
@@ -24185,7 +24185,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24185
24185
|
isActiveCard: me === n.length,
|
24186
24186
|
onCardClick: r,
|
24187
24187
|
widthOverrides: R || void 0,
|
24188
|
-
...
|
24188
|
+
...he
|
24189
24189
|
}
|
24190
24190
|
)
|
24191
24191
|
]
|
@@ -24198,8 +24198,8 @@ const Ui = g.createContext(null), I0 = ({
|
|
24198
24198
|
currentBeatIndex: me + p - 1,
|
24199
24199
|
numBeats: n.length + 1,
|
24200
24200
|
onNextClick: Y,
|
24201
|
-
onPreviousClick:
|
24202
|
-
scrollRightBoundary:
|
24201
|
+
onPreviousClick: ee,
|
24202
|
+
scrollRightBoundary: qe,
|
24203
24203
|
scrollX: y,
|
24204
24204
|
shouldApplyNewAnimation: k,
|
24205
24205
|
visibleCardsCount: p
|
@@ -24437,7 +24437,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24437
24437
|
visibleCardsCount: R = 1,
|
24438
24438
|
widthOverrides: M
|
24439
24439
|
}) => {
|
24440
|
-
const k =
|
24440
|
+
const k = Ye(), [G, L] = xt("STANDARD"), [W, Y] = xt(!1), ee = cu([u], Tn), ue = lu([_], Tn);
|
24441
24441
|
g.useEffect(() => {
|
24442
24442
|
Tn.isInitialized || Tn.initialize(r, I, c);
|
24443
24443
|
}, [r, I, c, Tn.isInitialized]), g.useEffect(() => {
|
@@ -24464,7 +24464,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24464
24464
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
24465
24465
|
/* @__PURE__ */ d(Ed, { theme: k, children: [
|
24466
24466
|
/* @__PURE__ */ t(o_, {}),
|
24467
|
-
/* @__PURE__ */ t(I0, { onEvent:
|
24467
|
+
/* @__PURE__ */ t(I0, { onEvent: ee, onPageview: ue, store: Tn, children: /* @__PURE__ */ d(U0, { heightOverrides: s, widthOverrides: M, children: [
|
24468
24468
|
(n || !Tn.isInitialized) && /* @__PURE__ */ t(V0, {}),
|
24469
24469
|
W && S && /* @__PURE__ */ t(
|
24470
24470
|
$0,
|
@@ -24571,34 +24571,30 @@ const Ui = g.createContext(null), I0 = ({
|
|
24571
24571
|
"WeeklyNoSpendDays",
|
24572
24572
|
"WeeklySmallPurchasesSummary"
|
24573
24573
|
], Z0 = ({ onInsightCardClick: e }) => {
|
24574
|
-
const n = dn(), { isMobile: i, isDesktop: a, isLargeDesktop: o } = Ce(), { beatStore: r, endpoint: s, sessionToken: c } = yi(), { isInitialized: l } = re(),
|
24574
|
+
const n = dn(), { isMobile: i, isDesktop: a, isLargeDesktop: o } = Ce(), { beatStore: r, endpoint: s, sessionToken: c } = yi(), { isInitialized: l } = re(), [u, _] = g.useState(!1), h = n.palette.mode === "dark", m = a || o, p = m || i ? 1 : 2;
|
24575
24575
|
g.useEffect(() => {
|
24576
|
-
l && r.loadBeats().finally(() =>
|
24576
|
+
l && r.loadBeats().finally(() => _(!0));
|
24577
24577
|
}, [l]);
|
24578
|
-
const
|
24579
|
-
|
24580
|
-
const v = u.map((N) => N.guid);
|
24581
|
-
return r.getFilteredBeats({ categoryGuids: v, templates: X0 });
|
24582
|
-
}, [_, u]), y = () => null, E = p ? 200 : 170, I = p ? 170 : 124, w = S.length > 0 ? E : I;
|
24583
|
-
return /* @__PURE__ */ t(ye, { sx: { height: w }, children: /* @__PURE__ */ t(
|
24578
|
+
const f = g.useMemo(() => u ? r.getFilteredBeats({ templates: X0 }) : [], [u]), S = () => null, y = m ? 200 : 170, E = m ? 170 : 124, I = f.length > 0 ? y : E;
|
24579
|
+
return /* @__PURE__ */ t(ye, { sx: { height: I }, children: /* @__PURE__ */ t(
|
24584
24580
|
z0,
|
24585
24581
|
{
|
24586
24582
|
areBeatsLoading: r.isLoading,
|
24587
|
-
beats:
|
24583
|
+
beats: f,
|
24588
24584
|
endpoint: s,
|
24589
|
-
logOutUser:
|
24585
|
+
logOutUser: S,
|
24590
24586
|
onCardClick: e,
|
24591
24587
|
showBorder: !0,
|
24592
24588
|
showCTAColocatedWithText: !1,
|
24593
24589
|
showCarouselControls: !0,
|
24594
|
-
showHeader:
|
24590
|
+
showHeader: m,
|
24595
24591
|
showIcon: !0,
|
24596
24592
|
showWithMargin: !1,
|
24597
24593
|
token: c,
|
24598
|
-
useDarkMode:
|
24594
|
+
useDarkMode: h,
|
24599
24595
|
userHasFullInsightFeedBeats: !1,
|
24600
24596
|
variant: "outlined",
|
24601
|
-
visibleCardsCount:
|
24597
|
+
visibleCardsCount: p
|
24602
24598
|
}
|
24603
24599
|
) });
|
24604
24600
|
}, q0 = x(Z0), Q0 = x(({ transactions: e }) => {
|
@@ -24667,7 +24663,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24667
24663
|
}), J0 = x(({ chartLabel: e, chartColor: n }) => {
|
24668
24664
|
const {
|
24669
24665
|
categoryDetailsChartData: { monthlyAmounts: i, tooltipLabels: a }
|
24670
|
-
} =
|
24666
|
+
} = Wi();
|
24671
24667
|
return /* @__PURE__ */ t(b, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ t(
|
24672
24668
|
ni,
|
24673
24669
|
{
|
@@ -24695,7 +24691,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24695
24691
|
}
|
24696
24692
|
) });
|
24697
24693
|
}), eb = x(({ onClose: e }) => {
|
24698
|
-
const { trends: n } = A(), i = Te(), { selectedCategoryData: a, selectedDateRangeMonthRange: o } =
|
24694
|
+
const { trends: n } = A(), i = Te(), { selectedCategoryData: a, selectedDateRangeMonthRange: o } = Wi();
|
24699
24695
|
if (!a)
|
24700
24696
|
return null;
|
24701
24697
|
const { guid: r, name: s, is_income: c, totalAmount: l, transactions: u } = a, _ = c ? n.category_income : n.category_spending, h = la(r, i), m = c ? n.income_label : n.spending_label, p = () => {
|
@@ -24744,7 +24740,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24744
24740
|
selectedDateRange: i,
|
24745
24741
|
totals: a
|
24746
24742
|
}) => {
|
24747
|
-
const o =
|
24743
|
+
const o = Ye(), { trends: r } = A(), { isSmallMobile: s, isMobile: c, isSmallTablet: l, isTablet: u } = Ce(), _ = [o.palette.chart?.chart1, o.palette.chart?.chart2], h = tb(a, i), m = nb(h, r), [p, f] = g.useState(0), S = 458, y = 195, E = 56, I = c || s ? y : l || u ? S : p;
|
24748
24744
|
return g.useEffect(() => {
|
24749
24745
|
const w = Math.max(e - E, n);
|
24750
24746
|
f(w);
|
@@ -24774,13 +24770,13 @@ const Ui = g.createContext(null), I0 = ({
|
|
24774
24770
|
loadMonthlyCategoryTotals: u,
|
24775
24771
|
monthlyCategoryTotals: _,
|
24776
24772
|
monthlyTotalsLoaded: h
|
24777
|
-
} = Ue(), { setFilter: m } = ke(), { selectedDateRange: p, setSelectedCategoryData: f, setSelectedDateRange: S } =
|
24773
|
+
} = Ue(), { setFilter: m } = ke(), { selectedDateRange: p, setSelectedCategoryData: f, setSelectedDateRange: S } = Wi(), {
|
24778
24774
|
isCopyLoaded: y,
|
24779
24775
|
isInitialized: E,
|
24780
24776
|
selectedAccounts: I,
|
24781
24777
|
selectedAccountGuids: w,
|
24782
24778
|
setSelectedAccounts: v
|
24783
|
-
} = re(), { trends: N } = A(), R = du(), M = r || o, [k, G] = g.useState(!1), [L, W] = g.useState("Chart"), [Y,
|
24779
|
+
} = re(), { trends: N } = A(), R = du(), M = r || o, [k, G] = g.useState(!1), [L, W] = g.useState("Chart"), [Y, ee] = g.useState(""), [ue, _e] = g.useState(!1), [Le, Re] = g.useState(window.innerHeight), he = Le - 208, me = Le - (R ? 494 : 266);
|
24784
24780
|
g.useEffect(() => {
|
24785
24781
|
const Ge = () => Re(window.innerHeight);
|
24786
24782
|
return window.addEventListener("resize", Ge), () => window.removeEventListener("resize", Ge);
|
@@ -24810,7 +24806,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24810
24806
|
});
|
24811
24807
|
}
|
24812
24808
|
}, [_]);
|
24813
|
-
const
|
24809
|
+
const qe = (Ge) => {
|
24814
24810
|
f(Ge), _e(!0);
|
24815
24811
|
}, $ = () => {
|
24816
24812
|
f(null), _e(!1);
|
@@ -24823,8 +24819,8 @@ const Ui = g.createContext(null), I0 = ({
|
|
24823
24819
|
});
|
24824
24820
|
}, fe = () => {
|
24825
24821
|
a(F.TRENDS_CLICK_FILTER);
|
24826
|
-
},
|
24827
|
-
|
24822
|
+
}, Ie = (Ge) => {
|
24823
|
+
ee(Ge);
|
24828
24824
|
};
|
24829
24825
|
return !y || !k ? /* @__PURE__ */ t(ce, {}) : h && _.length === 0 ? /* @__PURE__ */ t(
|
24830
24826
|
jn,
|
@@ -24873,7 +24869,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24873
24869
|
]
|
24874
24870
|
}
|
24875
24871
|
),
|
24876
|
-
/* @__PURE__ */ t(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ t(O, { flexGrow: 1, children: Y && /* @__PURE__ */ d(te, { onClick: () =>
|
24872
|
+
/* @__PURE__ */ t(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ t(O, { flexGrow: 1, children: Y && /* @__PURE__ */ d(te, { onClick: () => ee(""), sx: { p: 0, pr: 5 }, children: [
|
24877
24873
|
/* @__PURE__ */ t(V, { name: "arrow_back" }),
|
24878
24874
|
N.all_categories
|
24879
24875
|
] }) }) }),
|
@@ -24882,7 +24878,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24882
24878
|
L === "Chart" && /* @__PURE__ */ t(
|
24883
24879
|
ab,
|
24884
24880
|
{
|
24885
|
-
availableHeight:
|
24881
|
+
availableHeight: he,
|
24886
24882
|
minHeight: 450,
|
24887
24883
|
selectedDateRange: p,
|
24888
24884
|
totals: _
|
@@ -24893,7 +24889,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24893
24889
|
{
|
24894
24890
|
height: "unset",
|
24895
24891
|
monthlyCategoryTotals: _,
|
24896
|
-
onClickRow:
|
24892
|
+
onClickRow: Ie,
|
24897
24893
|
selectedCategory: Y,
|
24898
24894
|
selectedDateRange: p
|
24899
24895
|
}
|
@@ -24905,7 +24901,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24905
24901
|
b0,
|
24906
24902
|
{
|
24907
24903
|
availableHeight: me,
|
24908
|
-
onCategoryClick:
|
24904
|
+
onCategoryClick: qe
|
24909
24905
|
}
|
24910
24906
|
)
|
24911
24907
|
] })
|
@@ -24913,7 +24909,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24913
24909
|
]
|
24914
24910
|
}
|
24915
24911
|
),
|
24916
|
-
|
24912
|
+
ue && /* @__PURE__ */ t(eb, { onClose: $ })
|
24917
24913
|
]
|
24918
24914
|
}
|
24919
24915
|
);
|
@@ -24925,8 +24921,8 @@ class rb {
|
|
24925
24921
|
visibleListLength = 5;
|
24926
24922
|
constructor(n) {
|
24927
24923
|
this.globalStore = n, this.selectedDateRange = {
|
24928
|
-
start: mo(
|
24929
|
-
end:
|
24924
|
+
start: mo(Qe(Ht(/* @__PURE__ */ new Date(), 6)), 1),
|
24925
|
+
end: Qe(/* @__PURE__ */ new Date())
|
24930
24926
|
}, Fe(this);
|
24931
24927
|
}
|
24932
24928
|
setSelectedCategoryData = (n) => {
|
@@ -24998,7 +24994,7 @@ class sb {
|
|
24998
24994
|
loadAppData = async (n) => {
|
24999
24995
|
try {
|
25000
24996
|
const i = n || await this.api.getAppData();
|
25001
|
-
|
24997
|
+
J(() => {
|
25002
24998
|
this.appData = i, this.bannerApi = new Sr(i.address?.bullseye || "/");
|
25003
24999
|
});
|
25004
25000
|
} catch (i) {
|
@@ -25008,7 +25004,7 @@ class sb {
|
|
25008
25004
|
loadBanner = async () => {
|
25009
25005
|
try {
|
25010
25006
|
const n = this.user?.guid ?? null, i = n ? await this.bannerApi.getBanner(n) : {};
|
25011
|
-
|
25007
|
+
J(() => {
|
25012
25008
|
this.banner = i;
|
25013
25009
|
});
|
25014
25010
|
} catch (n) {
|
@@ -25036,8 +25032,8 @@ class lb {
|
|
25036
25032
|
selectedAccountGuids = this.selectedAccounts.map((n) => n.guid);
|
25037
25033
|
displayedDate = /* @__PURE__ */ new Date();
|
25038
25034
|
displayedDateRange = {
|
25039
|
-
start:
|
25040
|
-
end:
|
25035
|
+
start: Xe(this.displayedDate),
|
25036
|
+
end: Qe(this.displayedDate)
|
25041
25037
|
};
|
25042
25038
|
constructor(n) {
|
25043
25039
|
Fe(this), this.globalStore = n;
|
@@ -25096,7 +25092,7 @@ class db {
|
|
25096
25092
|
loadUserFeatures = async (n) => {
|
25097
25093
|
try {
|
25098
25094
|
const i = n || await this.api.getUserFeatures();
|
25099
|
-
|
25095
|
+
J(() => {
|
25100
25096
|
this.userFeatures = i;
|
25101
25097
|
});
|
25102
25098
|
} catch (i) {
|
@@ -25279,7 +25275,7 @@ const Va = ({
|
|
25279
25275
|
const I = m.indexOf(E) === m.length - 1;
|
25280
25276
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
25281
25277
|
/* @__PURE__ */ t(
|
25282
|
-
|
25278
|
+
Gi,
|
25283
25279
|
{
|
25284
25280
|
account: E,
|
25285
25281
|
onRowClick: () => {
|
@@ -25450,7 +25446,7 @@ const Va = ({
|
|
25450
25446
|
};
|
25451
25447
|
default: {
|
25452
25448
|
const a = () => {
|
25453
|
-
const o = e.successfully_aggregated_at ?
|
25449
|
+
const o = e.successfully_aggregated_at ? Ve(e.successfully_aggregated_at) : void 0, r = o && de(o, ie.TIME_STAMP_HOUR_MINUTE);
|
25454
25450
|
if (r)
|
25455
25451
|
return So(o) ? T(n.last_updated_at, n.today, r) : D_(o) ? T(n.last_updated_at, n.yesterday, r) : T(
|
25456
25452
|
n.last_updated_at,
|
@@ -25764,7 +25760,7 @@ const Va = ({
|
|
25764
25760
|
isOpen: !!e,
|
25765
25761
|
onClose: () => n(""),
|
25766
25762
|
title: o.transaction_drawer_title,
|
25767
|
-
children: /* @__PURE__ */ t(
|
25763
|
+
children: /* @__PURE__ */ t(Ei, { transaction: c })
|
25768
25764
|
}
|
25769
25765
|
)
|
25770
25766
|
] });
|
@@ -25852,7 +25848,7 @@ const Va = ({
|
|
25852
25848
|
const M = N === R.length - 1;
|
25853
25849
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
25854
25850
|
/* @__PURE__ */ t(
|
25855
|
-
|
25851
|
+
Gi,
|
25856
25852
|
{
|
25857
25853
|
account: v,
|
25858
25854
|
onRowClick: () => f(v),
|
@@ -25909,7 +25905,7 @@ const Va = ({
|
|
25909
25905
|
const v = a.indexOf(w) === a.length - 1, N = E.indexOf(w) === E.length - 1;
|
25910
25906
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
25911
25907
|
/* @__PURE__ */ t(
|
25912
|
-
|
25908
|
+
Gi,
|
25913
25909
|
{
|
25914
25910
|
account: w,
|
25915
25911
|
onRowClick: () => f(w),
|
@@ -25987,7 +25983,7 @@ const Va = ({
|
|
25987
25983
|
}
|
25988
25984
|
),
|
25989
25985
|
/* @__PURE__ */ t(
|
25990
|
-
|
25986
|
+
Ti,
|
25991
25987
|
{
|
25992
25988
|
onClose: () => r(!1),
|
25993
25989
|
showConnectionsWidget: o,
|
@@ -26015,7 +26011,7 @@ const Va = ({
|
|
26015
26011
|
const _ = s.indexOf(l) === s.length - 1;
|
26016
26012
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
26017
26013
|
/* @__PURE__ */ t(
|
26018
|
-
|
26014
|
+
Gi,
|
26019
26015
|
{
|
26020
26016
|
account: l,
|
26021
26017
|
listItemProps: { sx: { px: 24 } },
|
@@ -26618,7 +26614,7 @@ class Gb {
|
|
26618
26614
|
addAccount = async (n) => {
|
26619
26615
|
try {
|
26620
26616
|
const i = await this.api.createAccount(n);
|
26621
|
-
|
26617
|
+
J(() => {
|
26622
26618
|
this.accounts = [...this.accounts, i];
|
26623
26619
|
});
|
26624
26620
|
} catch (i) {
|
@@ -26649,7 +26645,7 @@ class Gb {
|
|
26649
26645
|
await this.loadMembers();
|
26650
26646
|
try {
|
26651
26647
|
const i = n || await this.api.getAccounts();
|
26652
|
-
|
26648
|
+
J(() => {
|
26653
26649
|
this.accounts = this.sortAccounts(this.augmentAccounts(i));
|
26654
26650
|
});
|
26655
26651
|
} catch (i) {
|
@@ -26659,7 +26655,7 @@ class Gb {
|
|
26659
26655
|
loadInstitutions = async (n) => {
|
26660
26656
|
try {
|
26661
26657
|
const i = n || await this.api.getInstitutions();
|
26662
|
-
|
26658
|
+
J(() => {
|
26663
26659
|
this.institutions = i;
|
26664
26660
|
});
|
26665
26661
|
} catch (i) {
|
@@ -26669,7 +26665,7 @@ class Gb {
|
|
26669
26665
|
loadMembers = async () => {
|
26670
26666
|
try {
|
26671
26667
|
const n = await this.api.getMembers();
|
26672
|
-
|
26668
|
+
J(() => {
|
26673
26669
|
this.members = n;
|
26674
26670
|
});
|
26675
26671
|
} catch (n) {
|
@@ -26679,7 +26675,7 @@ class Gb {
|
|
26679
26675
|
mergeAccounts = async (n) => {
|
26680
26676
|
try {
|
26681
26677
|
const i = await this.api.mergeAccounts(n), a = i[Object.keys(i)[0]];
|
26682
|
-
|
26678
|
+
J(() => {
|
26683
26679
|
const o = this.accounts.findIndex((s) => s.guid === n[1]);
|
26684
26680
|
this.accounts.splice(o, 1);
|
26685
26681
|
const r = this.accounts.findIndex((s) => s.guid === n[0]);
|
@@ -26702,7 +26698,7 @@ class Gb {
|
|
26702
26698
|
};
|
26703
26699
|
removeAccount = async (n) => {
|
26704
26700
|
try {
|
26705
|
-
await this.api.deleteAccount(n),
|
26701
|
+
await this.api.deleteAccount(n), J(() => {
|
26706
26702
|
const i = this.accounts.findIndex((a) => a.guid === n);
|
26707
26703
|
this.accounts.splice(i, 1);
|
26708
26704
|
});
|
@@ -26713,7 +26709,7 @@ class Gb {
|
|
26713
26709
|
updateAccount = async (n) => {
|
26714
26710
|
try {
|
26715
26711
|
const i = await this.api.updateAccount(n);
|
26716
|
-
|
26712
|
+
J(() => {
|
26717
26713
|
const a = this.accounts.findIndex(
|
26718
26714
|
(o) => o.guid === i.guid
|
26719
26715
|
);
|
@@ -26743,7 +26739,7 @@ const Bb = () => {
|
|
26743
26739
|
};
|
26744
26740
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
26745
26741
|
/* @__PURE__ */ t(
|
26746
|
-
|
26742
|
+
Pi,
|
26747
26743
|
{
|
26748
26744
|
exclusive: !0,
|
26749
26745
|
onChange: s,
|
@@ -27039,7 +27035,7 @@ function Qb({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
27039
27035
|
u
|
27040
27036
|
);
|
27041
27037
|
}
|
27042
|
-
let
|
27038
|
+
let wi;
|
27043
27039
|
const Jb = ({
|
27044
27040
|
height: e,
|
27045
27041
|
width: n,
|
@@ -27048,9 +27044,9 @@ const Jb = ({
|
|
27048
27044
|
}
|
27049
27045
|
}) => {
|
27050
27046
|
const { detailedBudgets: o } = ut();
|
27051
|
-
return
|
27052
|
-
Yb(
|
27053
|
-
}, [
|
27047
|
+
return wi = g.useMemo(() => Xb(o), [o]), g.useEffect(() => {
|
27048
|
+
Yb(wi, e, n), i && zb(wi);
|
27049
|
+
}, [wi, e, n]), /* @__PURE__ */ t("svg", { height: e, style: { overflow: "visible" }, width: Math.abs(n), children: wi.nodes().map((r) => /* @__PURE__ */ t(Qb, { bubble: r, isDraggable: i, onClick: a }, r.guid)) });
|
27054
27050
|
}, ey = x(Jb), ty = ({
|
27055
27051
|
isMiniWidget: e = !1,
|
27056
27052
|
onConnectAccountsClick: n,
|
@@ -27163,7 +27159,7 @@ const Jb = ({
|
|
27163
27159
|
}
|
27164
27160
|
),
|
27165
27161
|
/* @__PURE__ */ t(
|
27166
|
-
|
27162
|
+
Ti,
|
27167
27163
|
{
|
27168
27164
|
onClose: () => f(!1),
|
27169
27165
|
showConnectionsWidget: p,
|
@@ -27309,7 +27305,7 @@ const Jb = ({
|
|
27309
27305
|
return g.useEffect(() => {
|
27310
27306
|
s(n);
|
27311
27307
|
}, [n]), g.useEffect(() => {
|
27312
|
-
_ && !o && m(h,
|
27308
|
+
_ && !o && m(h, Xe(/* @__PURE__ */ new Date()), Qe(/* @__PURE__ */ new Date())).then(
|
27313
27309
|
() => {
|
27314
27310
|
r().finally();
|
27315
27311
|
}
|
@@ -27580,7 +27576,7 @@ const Jb = ({
|
|
27580
27576
|
isOpen: !!f,
|
27581
27577
|
onClose: () => p(""),
|
27582
27578
|
title: a.details_transaction_drawer,
|
27583
|
-
children: f && /* @__PURE__ */ t(
|
27579
|
+
children: f && /* @__PURE__ */ t(Ei, { transaction: f })
|
27584
27580
|
}
|
27585
27581
|
)
|
27586
27582
|
] })
|
@@ -27703,7 +27699,7 @@ const Jb = ({
|
|
27703
27699
|
});
|
27704
27700
|
};
|
27705
27701
|
return /* @__PURE__ */ d(bt, { elevation: 2, children: [
|
27706
|
-
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(
|
27702
|
+
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Ze, { children: n.budget_categories_title }) }),
|
27707
27703
|
/* @__PURE__ */ t(Pt, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ae, { children: i.map((r) => /* @__PURE__ */ d(g.Fragment, { children: [
|
27708
27704
|
/* @__PURE__ */ t(hy, { budget: r, onClick: o }),
|
27709
27705
|
/* @__PURE__ */ t(P, {})
|
@@ -27746,7 +27742,7 @@ const Jb = ({
|
|
27746
27742
|
}), p(!0), n(F.BUDGETS_CLICK_EDIT_INCOME);
|
27747
27743
|
};
|
27748
27744
|
return /* @__PURE__ */ d(bt, { elevation: 2, sx: { overflow: "visible" }, children: [
|
27749
|
-
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(
|
27745
|
+
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Ze, { children: a.overview_title }) }),
|
27750
27746
|
/* @__PURE__ */ t(Pt, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ d(b, { gap: 24, children: [
|
27751
27747
|
/* @__PURE__ */ d(b, { gap: 8, children: [
|
27752
27748
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
@@ -27803,22 +27799,22 @@ const Jb = ({
|
|
27803
27799
|
setTheme: I,
|
27804
27800
|
detailedBudgets: w
|
27805
27801
|
} = ut(), { loadRepeatingTransactions: v, setDateRange: N } = rt(), { reloadCategoryTotals: R } = Ue(), { isSmallTablet: M, isMobile: k, isSmallMobile: G } = Ce(), L = M || k || G, [W, Y] = g.useState(!1);
|
27806
|
-
g.useEffect(() =>
|
27807
|
-
|
27808
|
-
}
|
27802
|
+
g.useEffect(() => {
|
27803
|
+
I(i), h(o), _(p.start, p.end), a(F.BUDGETS_VIEW);
|
27804
|
+
}, []), g.useEffect(() => {
|
27809
27805
|
h(o);
|
27810
27806
|
}, [o]), g.useEffect(() => {
|
27811
|
-
l && (
|
27807
|
+
l && (R(u, p.start, p.end).finally(), N(p), f || (v().finally(), S().finally()));
|
27812
27808
|
}, [l, u, p]);
|
27813
|
-
const
|
27814
|
-
y({ start:
|
27815
|
-
},
|
27809
|
+
const ee = (he) => {
|
27810
|
+
y({ start: he[0] || /* @__PURE__ */ new Date(), end: he[1] || /* @__PURE__ */ new Date() });
|
27811
|
+
}, ue = () => {
|
27816
27812
|
a(F.BUDGETS_CLICK_FILTER);
|
27817
27813
|
}, _e = () => {
|
27818
27814
|
Y(!0), a(F.BUDGETS_CLICK_ADD);
|
27819
27815
|
}, Le = () => {
|
27820
27816
|
Y(!1);
|
27821
|
-
}, Re = sn(p.end,
|
27817
|
+
}, Re = sn(p.end, Xe(/* @__PURE__ */ new Date()));
|
27822
27818
|
return !c || !l || !f ? /* @__PURE__ */ t(ce, {}) : /* @__PURE__ */ d(
|
27823
27819
|
Ct,
|
27824
27820
|
{
|
@@ -27830,12 +27826,8 @@ const Jb = ({
|
|
27830
27826
|
onClick: _e
|
27831
27827
|
}
|
27832
27828
|
],
|
27833
|
-
calendarActions: {
|
27834
|
-
|
27835
|
-
shouldDisableNext: Re,
|
27836
|
-
shouldDisablePicker: !0
|
27837
|
-
},
|
27838
|
-
onAccountsFilterClick: he,
|
27829
|
+
calendarActions: { onRangeChanged: ee, shouldDisableNext: Re },
|
27830
|
+
onAccountsFilterClick: ue,
|
27839
27831
|
onBackClick: e,
|
27840
27832
|
sx: n,
|
27841
27833
|
title: r.budgets_title,
|
@@ -27887,7 +27879,7 @@ const Jb = ({
|
|
27887
27879
|
}
|
27888
27880
|
),
|
27889
27881
|
/* @__PURE__ */ t(
|
27890
|
-
|
27882
|
+
Fi,
|
27891
27883
|
{
|
27892
27884
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
27893
27885
|
autoHideDuration: 3500,
|
@@ -28238,7 +28230,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28238
28230
|
totalMarketValue: m,
|
28239
28231
|
totalGainLossPercentage: h / u
|
28240
28232
|
};
|
28241
|
-
}, so = (e) => e < 1e-3 ? "< 0.1%" : Ci(e),
|
28233
|
+
}, so = (e) => e < 1e-3 ? "< 0.1%" : Ci(e), Oi = (e) => e === 0 ? H(e, "0,0.00") : Ay(e, -0.01, 0.01) ? "< $0.01" : H(e, "0,0.00"), wy = ({
|
28242
28234
|
data: e,
|
28243
28235
|
onSelected: n,
|
28244
28236
|
selectedId: i,
|
@@ -28255,7 +28247,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28255
28247
|
], u = !e?.investmentsData.length, { isSmallMobile: _ } = Ce();
|
28256
28248
|
return /* @__PURE__ */ d(b, { sx: { mt: 15, gap: 12, width: s ? 250 : 412 }, children: [
|
28257
28249
|
/* @__PURE__ */ t(
|
28258
|
-
|
28250
|
+
Pi,
|
28259
28251
|
{
|
28260
28252
|
exclusive: !0,
|
28261
28253
|
fullWidth: !0,
|
@@ -28299,7 +28291,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28299
28291
|
width: "100%",
|
28300
28292
|
children: [
|
28301
28293
|
/* @__PURE__ */ t(C, { bold: i === h.guid, children: h.displayName }),
|
28302
|
-
/* @__PURE__ */ t(C, { bold: i === h.guid, variant: "Body", children: a === 0 ?
|
28294
|
+
/* @__PURE__ */ t(C, { bold: i === h.guid, variant: "Body", children: a === 0 ? Oi(h.value) : so(h.percentage) })
|
28303
28295
|
]
|
28304
28296
|
}
|
28305
28297
|
)
|
@@ -28323,7 +28315,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28323
28315
|
m.displayName,
|
28324
28316
|
" "
|
28325
28317
|
] }),
|
28326
|
-
/* @__PURE__ */ t(C, { children: a === 0 ?
|
28318
|
+
/* @__PURE__ */ t(C, { children: a === 0 ? Oi(m.value) : so(m.percentage) })
|
28327
28319
|
] })
|
28328
28320
|
},
|
28329
28321
|
m.displayName
|
@@ -28342,7 +28334,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28342
28334
|
}
|
28343
28335
|
}
|
28344
28336
|
)
|
28345
|
-
] }) : a === 0 && /* @__PURE__ */ t(C, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${c.total_label_text} ${
|
28337
|
+
] }) : a === 0 && /* @__PURE__ */ t(C, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${c.total_label_text} ${Oi(e.totalAmount)}` })
|
28346
28338
|
] });
|
28347
28339
|
}, vy = ({
|
28348
28340
|
data: e,
|
@@ -28360,7 +28352,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28360
28352
|
[s]
|
28361
28353
|
), {
|
28362
28354
|
investments: { allocation: m }
|
28363
|
-
} = A(), p = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [e, u]), f = _ ? "#0AC295" : "#09A57F", S = _ ? "grey.300" : "grey.700", y = () => h ? m.pie_chart_centered_click_for_details : i ? so(e.totalGainLossPercentage) :
|
28355
|
+
} = A(), p = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [e, u]), f = _ ? "#0AC295" : "#09A57F", S = _ ? "grey.300" : "grey.700", y = () => h ? m.pie_chart_centered_click_for_details : i ? so(e.totalGainLossPercentage) : Oi(e.totalGainLoss), E = e.totalGainLoss >= 0 ? f : S;
|
28364
28356
|
return /* @__PURE__ */ t(
|
28365
28357
|
xc,
|
28366
28358
|
{
|
@@ -28373,7 +28365,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28373
28365
|
size: c,
|
28374
28366
|
children: /* @__PURE__ */ t(b, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ t(b, { alignItems: "center", justifyContent: "center", minHeight: c, minWidth: c, children: /* @__PURE__ */ d(b, { alignItems: "center", sx: { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } }, children: [
|
28375
28367
|
/* @__PURE__ */ t(C, { color: "text.secondary", noWrap: !0, children: h?.displayName ?? l }),
|
28376
|
-
/* @__PURE__ */ t(Qt, { color: "text.primary", children:
|
28368
|
+
/* @__PURE__ */ t(Qt, { color: "text.primary", children: Oi(h?.value ?? e.totalMarketValue) }),
|
28377
28369
|
/* @__PURE__ */ d(b, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
28378
28370
|
!h && /* @__PURE__ */ t(
|
28379
28371
|
pt,
|
@@ -28467,7 +28459,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28467
28459
|
];
|
28468
28460
|
return /* @__PURE__ */ d(b, { sx: { gap: 12, width: { md: 412 } }, children: [
|
28469
28461
|
/* @__PURE__ */ t(
|
28470
|
-
|
28462
|
+
Pi,
|
28471
28463
|
{
|
28472
28464
|
color: "primary",
|
28473
28465
|
exclusive: !0,
|
@@ -28531,7 +28523,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28531
28523
|
), My = () => {
|
28532
28524
|
const {
|
28533
28525
|
investments: { analysis: e }
|
28534
|
-
} = A(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Xn(), r = hn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = Ce(), l =
|
28526
|
+
} = A(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Xn(), r = hn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = Ce(), l = Ye().palette.mode === "dark", { cellDimension: u, columns: _, rows: h, textVariant: m } = g.useMemo(() => {
|
28535
28527
|
const p = a === Hn.Stocks, f = Object.values(p ? e.stock_column_labels : e.bond_column_labels), S = Object.values(p ? e.stock_row_labels : e.bond_row_labels);
|
28536
28528
|
return { cellDimension: s ? 72 : 100, columns: f, rows: S, textVariant: s ? "XSmall" : "Body" };
|
28537
28529
|
}, [e, s, a]);
|
@@ -29174,10 +29166,10 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29174
29166
|
const be = Number(E);
|
29175
29167
|
if (c({ ...pe, cost_basis: be }), e) {
|
29176
29168
|
const fe = _.holdings.map(
|
29177
|
-
(
|
29169
|
+
(Ie) => Ie.id === $ ? { ...Ie, costBasis: be } : Ie
|
29178
29170
|
);
|
29179
|
-
h((
|
29180
|
-
...
|
29171
|
+
h((Ie) => ({
|
29172
|
+
...Ie,
|
29181
29173
|
holdings: fe
|
29182
29174
|
}));
|
29183
29175
|
}
|
@@ -29187,14 +29179,14 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29187
29179
|
...fe,
|
29188
29180
|
[$]: be
|
29189
29181
|
}));
|
29190
|
-
}, { visibleHoldings:
|
29182
|
+
}, { visibleHoldings: ee } = Xn(), { visibleInvestmentAccounts: ue } = Se(), _e = ue.filter(
|
29191
29183
|
({ guid: $ }) => r.includes($)
|
29192
|
-
), Le = _e.reduce(($, pe) => $ + (pe.balance || 0), 0), Re = _e.map(({ guid: $ }) => $), me =
|
29184
|
+
), Le = _e.reduce(($, pe) => $ + (pe.balance || 0), 0), Re = _e.map(({ guid: $ }) => $), me = ee.filter(
|
29193
29185
|
({ account_guid: $ }) => Re.includes($)
|
29194
29186
|
).reduce(($, pe) => {
|
29195
29187
|
const be = pe.market_value ? pe.market_value - (pe.cost_basis || 0) : 0;
|
29196
29188
|
return $ + be;
|
29197
|
-
}, 0),
|
29189
|
+
}, 0), qe = () => {
|
29198
29190
|
o(!1);
|
29199
29191
|
};
|
29200
29192
|
return f ? /* @__PURE__ */ d(Me, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
@@ -29231,7 +29223,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29231
29223
|
] })
|
29232
29224
|
] }),
|
29233
29225
|
_e.map(($) => {
|
29234
|
-
const pe =
|
29226
|
+
const pe = ee.filter((K) => K.account_guid === $.guid).map((K) => ({
|
29235
29227
|
id: K.guid,
|
29236
29228
|
qty: K.shares || 0,
|
29237
29229
|
holding: K.symbol || K.description || "Unknown",
|
@@ -29239,10 +29231,10 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29239
29231
|
totalGainLoss: K.market_value ? K.market_value - (K.cost_basis || 0) : 0,
|
29240
29232
|
marketValue: K.market_value || 0,
|
29241
29233
|
description: K.description || ""
|
29242
|
-
})), be = pe.length > 0, fe = $.balance,
|
29234
|
+
})), be = pe.length > 0, fe = $.balance, Ie = pe.reduce(
|
29243
29235
|
(K, He) => He.totalGainLoss + K,
|
29244
29236
|
0
|
29245
|
-
), Ge = fe ?
|
29237
|
+
), Ge = fe ? Ie / fe * 100 : 0;
|
29246
29238
|
if (e)
|
29247
29239
|
return /* @__PURE__ */ t(
|
29248
29240
|
Nt,
|
@@ -29335,19 +29327,19 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29335
29327
|
justifyContent: "flex-end"
|
29336
29328
|
},
|
29337
29329
|
children: [
|
29338
|
-
|
29330
|
+
Ie !== 0 && /* @__PURE__ */ t(
|
29339
29331
|
pt,
|
29340
29332
|
{
|
29341
|
-
name:
|
29333
|
+
name: Ie > 0 ? "trending_up" : "trending_down",
|
29342
29334
|
size: 20,
|
29343
|
-
sx: { color: M(
|
29335
|
+
sx: { color: M(Ie) }
|
29344
29336
|
}
|
29345
29337
|
),
|
29346
29338
|
/* @__PURE__ */ d(
|
29347
29339
|
C,
|
29348
29340
|
{
|
29349
29341
|
sx: {
|
29350
|
-
color: M(
|
29342
|
+
color: M(Ie),
|
29351
29343
|
fontWeight: 600
|
29352
29344
|
},
|
29353
29345
|
variant: "Body",
|
@@ -29362,11 +29354,11 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29362
29354
|
C,
|
29363
29355
|
{
|
29364
29356
|
sx: {
|
29365
|
-
color: M(
|
29357
|
+
color: M(Ie),
|
29366
29358
|
fontWeight: 600
|
29367
29359
|
},
|
29368
29360
|
variant: "Body",
|
29369
|
-
children: Math.abs(
|
29361
|
+
children: Math.abs(Ie).toLocaleString("en-US", {
|
29370
29362
|
currency: "USD",
|
29371
29363
|
maximumFractionDigits: 2,
|
29372
29364
|
minimumFractionDigits: 2,
|
@@ -29479,19 +29471,19 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29479
29471
|
justifyContent: "flex-end"
|
29480
29472
|
},
|
29481
29473
|
children: [
|
29482
|
-
|
29474
|
+
Ie !== 0 && /* @__PURE__ */ t(
|
29483
29475
|
pt,
|
29484
29476
|
{
|
29485
|
-
name:
|
29477
|
+
name: Ie >= 0 ? "trending_up" : "trending_down",
|
29486
29478
|
size: 20,
|
29487
|
-
sx: { color: M(
|
29479
|
+
sx: { color: M(Ie) }
|
29488
29480
|
}
|
29489
29481
|
),
|
29490
29482
|
/* @__PURE__ */ d(
|
29491
29483
|
C,
|
29492
29484
|
{
|
29493
29485
|
sx: {
|
29494
|
-
color: M(
|
29486
|
+
color: M(Ie),
|
29495
29487
|
fontWeight: 600
|
29496
29488
|
},
|
29497
29489
|
variant: "Body",
|
@@ -29506,11 +29498,11 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29506
29498
|
C,
|
29507
29499
|
{
|
29508
29500
|
sx: {
|
29509
|
-
color: M(
|
29501
|
+
color: M(Ie),
|
29510
29502
|
fontWeight: 600
|
29511
29503
|
},
|
29512
29504
|
variant: "Body",
|
29513
|
-
children: Math.abs(
|
29505
|
+
children: Math.abs(Ie).toLocaleString("en-US", {
|
29514
29506
|
currency: "USD",
|
29515
29507
|
maximumFractionDigits: 2,
|
29516
29508
|
minimumFractionDigits: 2,
|
@@ -29564,11 +29556,11 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29564
29556
|
handleCostBasisClick: k,
|
29565
29557
|
handleCostBasisKeyDown: L,
|
29566
29558
|
isOpen: a,
|
29567
|
-
onClose:
|
29559
|
+
onClose: qe
|
29568
29560
|
}
|
29569
29561
|
),
|
29570
29562
|
/* @__PURE__ */ t(
|
29571
|
-
|
29563
|
+
Ti,
|
29572
29564
|
{
|
29573
29565
|
onClose: () => u(!1),
|
29574
29566
|
showConnectionsWidget: l,
|
@@ -29652,7 +29644,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29652
29644
|
] })
|
29653
29645
|
] }),
|
29654
29646
|
/* @__PURE__ */ t(
|
29655
|
-
|
29647
|
+
Ti,
|
29656
29648
|
{
|
29657
29649
|
onClose: () => s(!1),
|
29658
29650
|
showConnectionsWidget: c,
|
@@ -29834,8 +29826,8 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29834
29826
|
g.useEffect(() => {
|
29835
29827
|
c(
|
29836
29828
|
a,
|
29837
|
-
|
29838
|
-
|
29829
|
+
Xe(/* @__PURE__ */ new Date()),
|
29830
|
+
Qe(/* @__PURE__ */ new Date())
|
29839
29831
|
).finally();
|
29840
29832
|
}, [a]);
|
29841
29833
|
const [u, _] = g.useState(""), [h, m] = g.useState(0), p = g.useMemo(
|
@@ -30078,32 +30070,32 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
30078
30070
|
), k = g.useMemo(
|
30079
30071
|
() => h.find((Y) => Y.guid === I),
|
30080
30072
|
[I, h]
|
30081
|
-
), G = (Y,
|
30082
|
-
E(
|
30073
|
+
), G = (Y, ee) => {
|
30074
|
+
E(ee), S("");
|
30083
30075
|
}, L = (Y) => {
|
30084
30076
|
S(f === Y || Y === "0" ? "" : Y);
|
30085
30077
|
}, W = (Y) => {
|
30086
|
-
const
|
30078
|
+
const ee = {
|
30087
30079
|
accounts: m || u,
|
30088
30080
|
dateRange: c
|
30089
30081
|
};
|
30090
30082
|
if (y === 0)
|
30091
30083
|
if (Y === "other") {
|
30092
|
-
const
|
30084
|
+
const ue = R.categoryData.find((_e) => _e.guid === "other");
|
30093
30085
|
_({
|
30094
|
-
...
|
30095
|
-
custom: (_e) => !!
|
30086
|
+
...ee,
|
30087
|
+
custom: (_e) => !!ue?.categoryTotals?.find((Le) => Le.guid === _e.top_level_category_guid)
|
30096
30088
|
});
|
30097
30089
|
} else
|
30098
30090
|
_({
|
30099
|
-
...
|
30100
|
-
custom: (
|
30091
|
+
...ee,
|
30092
|
+
custom: (ue) => Y ? ue.top_level_category_guid === Y : ue.top_level_category_guid !== D.INCOME && ue.top_level_category_guid !== D.INVESTMENTS && ue.top_level_category_guid !== D.TRANSFER,
|
30101
30093
|
showSplits: !!Y
|
30102
30094
|
});
|
30103
30095
|
else
|
30104
30096
|
_({
|
30105
|
-
...
|
30106
|
-
custom: (
|
30097
|
+
...ee,
|
30098
|
+
custom: (ue) => Y ? ue.category_guid === Y : ue.category_guid === D.INCOME || ue.top_level_category_guid === D.INCOME
|
30107
30099
|
});
|
30108
30100
|
N(!0);
|
30109
30101
|
};
|
@@ -30171,7 +30163,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
30171
30163
|
isOpen: !!k,
|
30172
30164
|
onClose: () => w(""),
|
30173
30165
|
title: s.transaction_details_drawer_title,
|
30174
|
-
children: k && /* @__PURE__ */ t(
|
30166
|
+
children: k && /* @__PURE__ */ t(Ei, { transaction: k })
|
30175
30167
|
}
|
30176
30168
|
)
|
30177
30169
|
] });
|
@@ -30180,7 +30172,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
30180
30172
|
g.useEffect(() => {
|
30181
30173
|
c(i);
|
30182
30174
|
}, [i]), g.useEffect(() => {
|
30183
|
-
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(
|
30175
|
+
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(Xe(we()), Qe(we())), m(!0), l(F.SPENDING_VIEW);
|
30184
30176
|
}, []);
|
30185
30177
|
const p = (f) => {
|
30186
30178
|
s(f[0], f[1]);
|
@@ -30254,7 +30246,7 @@ export {
|
|
30254
30246
|
E2 as CreditScoreGraph,
|
30255
30247
|
oa as CurrencyCodes,
|
30256
30248
|
en as CurrencyInput,
|
30257
|
-
|
30249
|
+
je as CurrencyText,
|
30258
30250
|
ie as DATE_FORMATS_INTL,
|
30259
30251
|
gc as DEFAULT_DONUT_SIZE,
|
30260
30252
|
mc as DEFAULT_STROKE_WIDTH,
|
@@ -30282,7 +30274,7 @@ export {
|
|
30282
30274
|
r1 as FinstrongStore,
|
30283
30275
|
T2 as FinstrongWidget,
|
30284
30276
|
Ee as Frequency,
|
30285
|
-
|
30277
|
+
Ni as GlobalCopyApi,
|
30286
30278
|
Qu as GlobalCopyStore,
|
30287
30279
|
ti as GlobalDataContext,
|
30288
30280
|
o2 as GlobalDataProvider,
|
@@ -30378,15 +30370,15 @@ export {
|
|
30378
30370
|
di as StatusBar,
|
30379
30371
|
XT as StatusName,
|
30380
30372
|
K2 as SurveyMiniWidget,
|
30381
|
-
|
30373
|
+
xi as TOUCH_TARGET,
|
30382
30374
|
Q as TRANSACTION_EVENTS,
|
30383
30375
|
Nn as TabContentContainer,
|
30384
30376
|
Lo as ToggleButtonListItem,
|
30385
30377
|
Rn as ToggleListItem,
|
30386
|
-
|
30378
|
+
vi as TopActions,
|
30387
30379
|
z as TrackType,
|
30388
30380
|
ca as TransactionApi,
|
30389
|
-
|
30381
|
+
Ei as TransactionDetails,
|
30390
30382
|
Vn as TransactionList,
|
30391
30383
|
Go as TransactionRow,
|
30392
30384
|
fl as TransactionRulesTab,
|
@@ -30418,7 +30410,7 @@ export {
|
|
30418
30410
|
Vf as filterRecentNotifications,
|
30419
30411
|
H as formatCurrency,
|
30420
30412
|
de as formatDate,
|
30421
|
-
|
30413
|
+
Mi as formatOrdinal,
|
30422
30414
|
Ci as formatPercentage,
|
30423
30415
|
fc as fromTimestampToMonthYear,
|
30424
30416
|
zc as getAccountBalanceDetails,
|
@@ -30463,7 +30455,7 @@ export {
|
|
30463
30455
|
yt as useSettingsStore,
|
30464
30456
|
ke as useTransactionStore,
|
30465
30457
|
wt as useTransactionsUiStore,
|
30466
|
-
|
30458
|
+
Wi as useTrendsStore,
|
30467
30459
|
ft as useUserStore,
|
30468
30460
|
$n as useWidgetContainerProvider
|
30469
30461
|
};
|