@mx-cartographer/experiences 6.26.6 → 6.26.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +805 -803
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import O from "@mui/material/Box";
|
|
|
5
5
|
import P from "@mui/material/Divider";
|
|
6
6
|
import oe from "@mui/material/List";
|
|
7
7
|
import Ft from "@mui/material/ListSubheader";
|
|
8
|
-
import
|
|
8
|
+
import Me from "@mui/system/Stack";
|
|
9
9
|
import { AccountsIcon as Pl, P as ne, Icon as U, useTokens as Tt, Text as f, H2 as gn, CategoryIcon as Rt, DialogHeader as Fl, DialogFooter as Wl, Drawer as $l, Footer as Ul, DateRangePicker as ar, H3 as tt, H1 as qt, TextField as Rn, IconWeight as xt, MerchantLogo as Qt, CategoryIconList as Vl, CategoryIconVariants as Rs, InstitutionLogo as St, ChevronRightIcon as Os, THEMES as or } from "@mxenabled/mxui";
|
|
10
10
|
import Kl from "bowser";
|
|
11
11
|
import { getUnixTime as Fe } from "date-fns/getUnixTime";
|
|
@@ -18,7 +18,7 @@ import { getDay as Yl } from "date-fns/getDay";
|
|
|
18
18
|
import { isBefore as et } from "date-fns/isBefore";
|
|
19
19
|
import { nextDay as Ji } from "date-fns/nextDay";
|
|
20
20
|
import { setDate as ea } from "date-fns/setDate";
|
|
21
|
-
import { startOfToday as
|
|
21
|
+
import { startOfToday as Ie } from "date-fns/startOfToday";
|
|
22
22
|
import { fromUnixTime as Ue } from "date-fns/fromUnixTime";
|
|
23
23
|
import Ya from "numeral";
|
|
24
24
|
import te from "@mui/material/Button";
|
|
@@ -26,7 +26,7 @@ import qn from "@mui/material/Tooltip";
|
|
|
26
26
|
import We from "@mui/material/IconButton";
|
|
27
27
|
import ja from "@mui/material/FormControlLabel";
|
|
28
28
|
import j from "@mui/material/ListItem";
|
|
29
|
-
import
|
|
29
|
+
import ge from "@mui/material/ListItemButton";
|
|
30
30
|
import re from "@mui/material/ListItemText";
|
|
31
31
|
import Ms from "@mui/material/Popover";
|
|
32
32
|
import b from "@mui/material/Stack";
|
|
@@ -337,7 +337,7 @@ const T_ = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
|
337
337
|
TRENDS_CLICK_GET_STARTED: "trends_click_getStarted",
|
|
338
338
|
TRENDS_CLICK_VIEW_MORE: "trends_click_viewMore",
|
|
339
339
|
TRENDS_LOAD_WIDGET: "trends_load_widget"
|
|
340
|
-
}, A_ = "do",
|
|
340
|
+
}, A_ = "do", bT = "MMM do, yyyy", ae = {
|
|
341
341
|
TIME_STAMP_HOUR_MINUTE: {
|
|
342
342
|
hour: "numeric",
|
|
343
343
|
minute: "numeric"
|
|
@@ -422,7 +422,7 @@ const I_ = [
|
|
|
422
422
|
/* IMPAIRED */
|
|
423
423
|
], sc = [...rc, ...oc];
|
|
424
424
|
var Yn = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(Yn || {});
|
|
425
|
-
const
|
|
425
|
+
const yT = {
|
|
426
426
|
3: "Challenged",
|
|
427
427
|
12: "Closed",
|
|
428
428
|
9: "Degraded",
|
|
@@ -472,7 +472,7 @@ const y2 = {
|
|
|
472
472
|
2: "savings"
|
|
473
473
|
}, v_ = {
|
|
474
474
|
5: "bid_landscape"
|
|
475
|
-
},
|
|
475
|
+
}, ST = {
|
|
476
476
|
0: "Real Estate",
|
|
477
477
|
1: "Vehicle",
|
|
478
478
|
2: "Art",
|
|
@@ -812,7 +812,7 @@ const y2 = {
|
|
|
812
812
|
UNKNOWN: "help"
|
|
813
813
|
}, pr = 9999999999e-2;
|
|
814
814
|
var aa = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(aa || {}), N_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(N_ || {});
|
|
815
|
-
const
|
|
815
|
+
const ET = [
|
|
816
816
|
{ id: 0, copy: "frequency_unknown" },
|
|
817
817
|
{ id: 1, copy: "frequency_every_week" },
|
|
818
818
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -821,7 +821,7 @@ const E2 = [
|
|
|
821
821
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
822
822
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
823
823
|
{ id: 7, copy: "frequency_every_year" }
|
|
824
|
-
],
|
|
824
|
+
], TT = {
|
|
825
825
|
ERROR: "ERROR",
|
|
826
826
|
LOADING: "LOADING",
|
|
827
827
|
SUCCESS: "SUCCESS"
|
|
@@ -833,7 +833,7 @@ const Si = 44, Cr = (e, n) => e.find((i) => i.guid === n), M_ = (e, n) => e.find
|
|
|
833
833
|
const i = e.find((a) => a.subCategories.find((o) => o.guid === n));
|
|
834
834
|
if (i)
|
|
835
835
|
return i.subCategories.find((a) => a.guid === n);
|
|
836
|
-
},
|
|
836
|
+
}, AT = (e, n) => {
|
|
837
837
|
const i = [];
|
|
838
838
|
for (const a of n) {
|
|
839
839
|
const o = Cr(e, a.category_guid);
|
|
@@ -854,21 +854,21 @@ const Si = 44, Cr = (e, n) => e.find((i) => i.guid === n), M_ = (e, n) => e.find
|
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
856
|
return i;
|
|
857
|
-
},
|
|
857
|
+
}, xT = (e, n) => {
|
|
858
858
|
const i = e.find((a) => a.guid === n);
|
|
859
859
|
return i ? i.guid === D.INCOME || i.parent_guid === D.INCOME : !1;
|
|
860
860
|
}, Ao = (e) => {
|
|
861
861
|
const n = Yl(e);
|
|
862
862
|
let i = Ji(e, n);
|
|
863
|
-
for (; et(i,
|
|
863
|
+
for (; et(i, Ie()); )
|
|
864
864
|
i = Ls(i, 1);
|
|
865
865
|
return i;
|
|
866
866
|
}, G_ = (e) => {
|
|
867
867
|
const n = Ao(e);
|
|
868
868
|
return Ls(n, 1);
|
|
869
869
|
}, B_ = (e) => {
|
|
870
|
-
let n = ea(
|
|
871
|
-
for (; et(n,
|
|
870
|
+
let n = ea(Ie(), e.getDate());
|
|
871
|
+
for (; et(n, Ie()); )
|
|
872
872
|
n = Zt(n, 1);
|
|
873
873
|
return n;
|
|
874
874
|
}, H_ = (e) => {
|
|
@@ -876,7 +876,7 @@ const Si = 44, Cr = (e, n) => e.find((i) => i.guid === n), M_ = (e, n) => e.find
|
|
|
876
876
|
return Zt(n, 1);
|
|
877
877
|
}, _c = (e) => {
|
|
878
878
|
let n = Di(e, 1);
|
|
879
|
-
for (; et(n,
|
|
879
|
+
for (; et(n, Ie()); )
|
|
880
880
|
n = Di(n, 1);
|
|
881
881
|
return n;
|
|
882
882
|
}, P_ = (e) => {
|
|
@@ -902,7 +902,7 @@ const Si = 44, Cr = (e, n) => e.find((i) => i.guid === n), M_ = (e, n) => e.find
|
|
|
902
902
|
[]
|
|
903
903
|
);
|
|
904
904
|
return i ? o : o.join("");
|
|
905
|
-
},
|
|
905
|
+
}, IT = (e, n, i, ...a) => !e || !n ? "" : T(i === 1 ? e : n, ...a), Wn = () => {
|
|
906
906
|
const e = "en-us", n = ["en-us", "en-ca", "fr", "fr-ca", "es"], i = window?.app?.options?.language?.toLowerCase() ?? "", a = window.navigator.language.toLowerCase();
|
|
907
907
|
return i === "browser" && n.includes(a) ? a : n.includes(i) ? i : e;
|
|
908
908
|
};
|
|
@@ -996,7 +996,7 @@ const H = (e, n, i) => {
|
|
|
996
996
|
}) => {
|
|
997
997
|
const a = V_(n).select(e);
|
|
998
998
|
return `${e}${i[a]}`;
|
|
999
|
-
},
|
|
999
|
+
}, vT = (e, n) => {
|
|
1000
1000
|
const i = e.palette.mode === "dark", a = (s, c) => {
|
|
1001
1001
|
const d = n?.[s];
|
|
1002
1002
|
return {
|
|
@@ -1222,7 +1222,7 @@ class Ii {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
getGlobalCopy = async (n, i) => this.fetchInstance.post(`${B.LOCALIZED_CONTENT}/${n}`, { translation_key: i }).then((a) => a);
|
|
1224
1224
|
}
|
|
1225
|
-
class
|
|
1225
|
+
class wT {
|
|
1226
1226
|
fetchInstance;
|
|
1227
1227
|
constructor(n, i) {
|
|
1228
1228
|
this.fetchInstance = new lt(n, i);
|
|
@@ -1246,7 +1246,7 @@ class yr {
|
|
|
1246
1246
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
|
1247
1247
|
markAllAsViewed = (n) => this.fetchInstance.put(`${B.NOTIFICATIONS}/mark_all_as_viewed`, { channel: n }).finally();
|
|
1248
1248
|
}
|
|
1249
|
-
class
|
|
1249
|
+
class DT {
|
|
1250
1250
|
fetchInstance;
|
|
1251
1251
|
constructor(n, i) {
|
|
1252
1252
|
this.fetchInstance = new lt(n, i);
|
|
@@ -1283,7 +1283,7 @@ const Ha = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1283
1283
|
guid: a.guid
|
|
1284
1284
|
};
|
|
1285
1285
|
return Object.prototype.hasOwnProperty.call(i, o) ? i[o] = i[o].concat(r) : i[o] = [r], i;
|
|
1286
|
-
}, {}), ti = g.createContext(null),
|
|
1286
|
+
}, {}), ti = g.createContext(null), NT = ({
|
|
1287
1287
|
children: e,
|
|
1288
1288
|
globalStore: n,
|
|
1289
1289
|
onEvent: i,
|
|
@@ -1314,7 +1314,7 @@ const Ha = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1314
1314
|
if (!n)
|
|
1315
1315
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
1316
1316
|
return n;
|
|
1317
|
-
}, ye = () => nt("useAccountStore").globalStore.accountStore, It = () => nt("useAppConfig").globalStore.appDataStore.appConfig, Io = () => nt("useAnalyticsStore").globalStore.analyticsStore, ut = () => nt("useBudgetsStore").globalStore.budgetsStore, vo = () => nt("useCashflowStore").globalStore.cashflowStore, $e = () => nt("useCategoryStore").globalStore.categoryStore, gc = () => nt("useConnectStore").globalStore.connectStore, ya = () => nt("useDebtsStore").globalStore.debtsStore, Sa = () => nt("useFinstrongStore").globalStore.finstrongStore, hi = () => nt("useGlobalStore").globalStore, _e = () => nt("useGlobalUiStore").globalStore.globalUiStore, A = () => nt("globalCopyStore").globalStore.copyStore.copy, dt = () => nt("useGoalStore").globalStore.goalStore, wo = () => nt("useHelpStore").globalStore.helpStore, Xn = () => nt("useHoldingStore").globalStore.holdingStore, Y_ = () => nt("useMerchantStore").globalStore.merchantStore, mc = () => nt("useNetWorthStore").globalStore.netWorthStore, pc = () => nt("useNotificationStore").globalStore.notificationStore, ot = () => nt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, bt = () => nt("useSettingsStore").globalStore.settingsStore,
|
|
1317
|
+
}, ye = () => nt("useAccountStore").globalStore.accountStore, It = () => nt("useAppConfig").globalStore.appDataStore.appConfig, Io = () => nt("useAnalyticsStore").globalStore.analyticsStore, ut = () => nt("useBudgetsStore").globalStore.budgetsStore, vo = () => nt("useCashflowStore").globalStore.cashflowStore, $e = () => nt("useCategoryStore").globalStore.categoryStore, gc = () => nt("useConnectStore").globalStore.connectStore, ya = () => nt("useDebtsStore").globalStore.debtsStore, Sa = () => nt("useFinstrongStore").globalStore.finstrongStore, hi = () => nt("useGlobalStore").globalStore, _e = () => nt("useGlobalUiStore").globalStore.globalUiStore, A = () => nt("globalCopyStore").globalStore.copyStore.copy, dt = () => nt("useGoalStore").globalStore.goalStore, wo = () => nt("useHelpStore").globalStore.helpStore, Xn = () => nt("useHoldingStore").globalStore.holdingStore, Y_ = () => nt("useMerchantStore").globalStore.merchantStore, mc = () => nt("useNetWorthStore").globalStore.netWorthStore, pc = () => nt("useNotificationStore").globalStore.notificationStore, ot = () => nt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, bt = () => nt("useSettingsStore").globalStore.settingsStore, ke = () => nt("useTransactionStore").globalStore.transactionStore, gi = () => nt("useTrendsStore").globalStore.trendsStore, Ct = () => nt("useUserStore").globalStore.userStore, X = () => ({ onEvent: nt().onEvent }), RT = () => ({ onPageView: nt().onPageView }), j_ = (e = "useWidgetContainerContext") => {
|
|
1318
1318
|
const n = g.useContext(hc);
|
|
1319
1319
|
if (!n)
|
|
1320
1320
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -1436,7 +1436,7 @@ const Ha = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1436
1436
|
className: "mx-cmn-account-options-group",
|
|
1437
1437
|
dense: !0,
|
|
1438
1438
|
subheader: /* @__PURE__ */ t(Ft, { disableGutters: !0, children: /* @__PURE__ */ t(
|
|
1439
|
-
|
|
1439
|
+
ge,
|
|
1440
1440
|
{
|
|
1441
1441
|
"aria-label": T(i.toggleAccountTypeAccounts, E),
|
|
1442
1442
|
"aria-pressed": v,
|
|
@@ -1571,7 +1571,7 @@ const X_ = (e, n) => {
|
|
|
1571
1571
|
// Between 600 and 1200
|
|
1572
1572
|
isTablet: e > a && e <= r
|
|
1573
1573
|
}), c;
|
|
1574
|
-
},
|
|
1574
|
+
}, OT = (e) => {
|
|
1575
1575
|
const n = Ns();
|
|
1576
1576
|
return Pn(() => {
|
|
1577
1577
|
n.current = e;
|
|
@@ -1846,7 +1846,7 @@ const X_ = (e, n) => {
|
|
|
1846
1846
|
}), nu = (e, n) => e + n, iu = (e, n) => Math.abs(n) > e ? Math.abs(n) : e, au = (e, n) => [...e, n.value], Ar = (e, n, i) => {
|
|
1847
1847
|
const a = e && n ? i / 2 : i;
|
|
1848
1848
|
return e ? a : 0;
|
|
1849
|
-
}, ou = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0,
|
|
1849
|
+
}, ou = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0, LT = ({
|
|
1850
1850
|
average: e,
|
|
1851
1851
|
barWidth: n = "8%",
|
|
1852
1852
|
color: i,
|
|
@@ -1928,7 +1928,7 @@ const X_ = (e, n) => {
|
|
|
1928
1928
|
gap: 4
|
|
1929
1929
|
}
|
|
1930
1930
|
}), lu = ({ beginDate: e, date: n, endDate: i, isInMonth: a, onClick: o }) => {
|
|
1931
|
-
const r = Ae(), s = du(r), c = e && i && lo(n, { start: e, end: i }) && !vt(n, e) && !vt(n, i), d = e && i && vt(e, n) && !vt(e, i), u = i && e && vt(i, n) && !vt(e, i), _ = e && vt(e, n) || i && vt(i, n), h = vt(n,
|
|
1931
|
+
const r = Ae(), s = du(r), c = e && i && lo(n, { start: e, end: i }) && !vt(n, e) && !vt(n, i), d = e && i && vt(e, n) && !vt(e, i), u = i && e && vt(i, n) && !vt(e, i), _ = e && vt(e, n) || i && vt(i, n), h = vt(n, Ie());
|
|
1932
1932
|
return /* @__PURE__ */ t(
|
|
1933
1933
|
"div",
|
|
1934
1934
|
{
|
|
@@ -2020,7 +2020,7 @@ const uu = ({
|
|
|
2020
2020
|
selectionType: r = "Single"
|
|
2021
2021
|
/* Single */
|
|
2022
2022
|
}) => {
|
|
2023
|
-
const s = Tt(), c = hu(s), [d, u] = g.useState(
|
|
2023
|
+
const s = Tt(), c = hu(s), [d, u] = g.useState(Ie), [_, h] = g.useState(n), [m, p] = g.useState(i);
|
|
2024
2024
|
g.useEffect(() => {
|
|
2025
2025
|
h(n), p(i), n && u(n);
|
|
2026
2026
|
}, [n, i]);
|
|
@@ -2042,7 +2042,7 @@ const uu = ({
|
|
|
2042
2042
|
!_ || m ? (h(v), p(void 0)) : et(v, _) ? (p(_), h(v), o?.(v, _)) : (p(v), o?.(_, v));
|
|
2043
2043
|
}
|
|
2044
2044
|
}, y = () => {
|
|
2045
|
-
const v =
|
|
2045
|
+
const v = Ie();
|
|
2046
2046
|
u(v), r !== "None" && (h(v), r === "Single" ? a?.(v) : (p(v), o?.(v, v)));
|
|
2047
2047
|
}, E = () => {
|
|
2048
2048
|
u(Zt(d, 1));
|
|
@@ -2388,16 +2388,16 @@ const mi = ({
|
|
|
2388
2388
|
valueFormatterString: K,
|
|
2389
2389
|
width: se
|
|
2390
2390
|
}) => {
|
|
2391
|
-
const ee = Ze(),
|
|
2391
|
+
const ee = Ze(), pe = r.flat().map((Q) => Q.x), Oe = r.flat().map((Q) => Q.y), Le = Math.round(Oe.reduce((Q, Ee) => Ee + Q, 0) / Oe.length), he = Math.floor(Math.min(...Oe) / 100) * 100, me = Math.ceil(Math.max(...Oe) / 100) * 100, ze = r.map((Q, Ee) => ({
|
|
2392
2392
|
type: I ? "bar" : "line",
|
|
2393
2393
|
curve: a,
|
|
2394
2394
|
color: I ? ee.palette.chart?.chart6 : i[Ee] ?? ee.palette.primary.main,
|
|
2395
|
-
data: Q.map((
|
|
2395
|
+
data: Q.map((fe) => fe.y),
|
|
2396
2396
|
area: S,
|
|
2397
2397
|
baseline: n,
|
|
2398
2398
|
showMark: !0,
|
|
2399
|
-
valueFormatter: (
|
|
2400
|
-
})),
|
|
2399
|
+
valueFormatter: (fe) => K ? H(fe || 0, K) : String(fe)
|
|
2400
|
+
})), Ce = {
|
|
2401
2401
|
...{
|
|
2402
2402
|
top: 60,
|
|
2403
2403
|
right: 35,
|
|
@@ -2411,7 +2411,7 @@ const mi = ({
|
|
|
2411
2411
|
fd,
|
|
2412
2412
|
{
|
|
2413
2413
|
height: s,
|
|
2414
|
-
margin:
|
|
2414
|
+
margin: Ce,
|
|
2415
2415
|
series: ze,
|
|
2416
2416
|
sx: {
|
|
2417
2417
|
p: 4,
|
|
@@ -2424,15 +2424,15 @@ const mi = ({
|
|
|
2424
2424
|
}
|
|
2425
2425
|
},
|
|
2426
2426
|
width: se,
|
|
2427
|
-
xAxis: [{ data:
|
|
2427
|
+
xAxis: [{ data: pe, scaleType: I ? "band" : "point" }],
|
|
2428
2428
|
yAxis: [
|
|
2429
2429
|
{
|
|
2430
|
-
min: c ? -22 :
|
|
2431
|
-
max:
|
|
2430
|
+
min: c ? -22 : he,
|
|
2431
|
+
max: me || 100,
|
|
2432
2432
|
colorMap: S && ze.length < 2 ? {
|
|
2433
2433
|
type: "continuous",
|
|
2434
|
-
min:
|
|
2435
|
-
max:
|
|
2434
|
+
min: he,
|
|
2435
|
+
max: me,
|
|
2436
2436
|
color: [
|
|
2437
2437
|
ee.palette.background.paper,
|
|
2438
2438
|
i[0] ?? ee.palette.primary.main
|
|
@@ -2450,7 +2450,7 @@ const mi = ({
|
|
|
2450
2450
|
strokeDasharray: "10, 8",
|
|
2451
2451
|
strokeWidth: 2
|
|
2452
2452
|
},
|
|
2453
|
-
y:
|
|
2453
|
+
y: Le
|
|
2454
2454
|
}
|
|
2455
2455
|
),
|
|
2456
2456
|
/* @__PURE__ */ t(yd, {}),
|
|
@@ -2482,7 +2482,7 @@ const mi = ({
|
|
|
2482
2482
|
showLabel: w,
|
|
2483
2483
|
style: C?.(Q.dataIndex) ?? {},
|
|
2484
2484
|
valueFormatterString: K,
|
|
2485
|
-
yData:
|
|
2485
|
+
yData: Oe,
|
|
2486
2486
|
...Q
|
|
2487
2487
|
}
|
|
2488
2488
|
)
|
|
@@ -2542,7 +2542,7 @@ const mi = ({
|
|
|
2542
2542
|
v && /* @__PURE__ */ t(
|
|
2543
2543
|
Su,
|
|
2544
2544
|
{
|
|
2545
|
-
average: y ?
|
|
2545
|
+
average: y ? Le : void 0,
|
|
2546
2546
|
customLegendVariant: o,
|
|
2547
2547
|
labels: d,
|
|
2548
2548
|
series: ze,
|
|
@@ -2756,9 +2756,9 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2756
2756
|
cursorPos: { x: 0, y: 0 }
|
|
2757
2757
|
}), { hoveredSeriesId: v, hoveredAreaData: w, isAreaHovered: N, cursorPos: R } = E, M = N && v && w, k = !M, G = [...o, ...r], L = G[0]?.dataset.length ?? 0, W = G.flatMap((Y) => Y.dataset.map((Be) => Be.x)), K = G.flatMap((Y) => Y.dataset.map((Be) => Be.y)), se = o[0]?.dataset?.map(
|
|
2758
2758
|
(Y, Be) => o.reduce((st, yn) => st + yn.dataset[Be]?.y || 0, 0)
|
|
2759
|
-
) ?? [0], ee = Math.max(...se),
|
|
2759
|
+
) ?? [0], ee = Math.max(...se), pe = Math.max(
|
|
2760
2760
|
...r.flatMap((Y) => Y.dataset.map((Be) => Be.y))
|
|
2761
|
-
),
|
|
2761
|
+
), Oe = Math.floor(Math.min(...K) / 100) * 100, Le = Math.ceil(Math.max(ee, pe) / 100) * 100, he = o.map((Y, Be) => ({
|
|
2762
2762
|
id: `stacked-${Be}`,
|
|
2763
2763
|
guid: Y.category_guid,
|
|
2764
2764
|
top_level_guid: Y.top_level_category_guid,
|
|
@@ -2770,7 +2770,7 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2770
2770
|
type: "line",
|
|
2771
2771
|
highlightScope: { highlight: "item" },
|
|
2772
2772
|
valueFormatter: (st) => H(st, "0,0")
|
|
2773
|
-
})),
|
|
2773
|
+
})), me = r.map((Y, Be) => ({
|
|
2774
2774
|
id: `unstacked-${Be}`,
|
|
2775
2775
|
guid: Y.category_guid,
|
|
2776
2776
|
top_level_guid: Y.top_level_category_guid,
|
|
@@ -2780,16 +2780,16 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2780
2780
|
label: Y.category_name,
|
|
2781
2781
|
type: "line",
|
|
2782
2782
|
valueFormatter: (st) => H(st, "0,0")
|
|
2783
|
-
})), ze = [...
|
|
2784
|
-
...
|
|
2783
|
+
})), ze = [...he, ...me], V = [
|
|
2784
|
+
...he.map(({ guid: Y, top_level_guid: Be }) => ({
|
|
2785
2785
|
guid: Y,
|
|
2786
2786
|
top_level_guid: Be
|
|
2787
2787
|
})),
|
|
2788
|
-
...
|
|
2788
|
+
...me.map(({ guid: Y, top_level_guid: Be }) => ({
|
|
2789
2789
|
guid: Y,
|
|
2790
2790
|
top_level_guid: Be
|
|
2791
2791
|
}))
|
|
2792
|
-
],
|
|
2792
|
+
], Ce = (Y) => {
|
|
2793
2793
|
const st = Y.startsWith("stacked-") ? o[parseInt(Y.split("-")[1])] : r[parseInt(Y.split("-")[1])];
|
|
2794
2794
|
return {
|
|
2795
2795
|
guid: st?.category_guid,
|
|
@@ -2799,11 +2799,11 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2799
2799
|
y(Y), i?.(Y ?? "");
|
|
2800
2800
|
}, Ee = (Y) => {
|
|
2801
2801
|
a?.(Y ?? "");
|
|
2802
|
-
},
|
|
2803
|
-
const Y =
|
|
2802
|
+
}, fe = () => {
|
|
2803
|
+
const Y = Ce(String(v)).guid;
|
|
2804
2804
|
Y && a?.(Y);
|
|
2805
2805
|
}, _t = (Y) => {
|
|
2806
|
-
const Be = String(Y?.seriesId), st =
|
|
2806
|
+
const Be = String(Y?.seriesId), st = Ce(Be).guid, yn = ze.find((yi) => yi.id === Be), Oa = yn && Y?.dataIndex !== void 0, La = yn && Y?.dataIndex === void 0;
|
|
2807
2807
|
if (Oa)
|
|
2808
2808
|
I({
|
|
2809
2809
|
hoveredSeriesId: Be,
|
|
@@ -2854,10 +2854,10 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2854
2854
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
|
2855
2855
|
strokeWidth: 3
|
|
2856
2856
|
},
|
|
2857
|
-
...S &&
|
|
2857
|
+
...S && he.reduce((Y, Be, st) => {
|
|
2858
2858
|
const yn = `.MuiAreaElement-series-stacked-${st}`;
|
|
2859
2859
|
return Y[yn] = {
|
|
2860
|
-
opacity:
|
|
2860
|
+
opacity: he[st].guid === S ? 0.9 : 0.2
|
|
2861
2861
|
}, Y;
|
|
2862
2862
|
}, {})
|
|
2863
2863
|
};
|
|
@@ -2873,7 +2873,7 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2873
2873
|
{
|
|
2874
2874
|
height: p,
|
|
2875
2875
|
margin: { bottom: 50 },
|
|
2876
|
-
onAreaClick:
|
|
2876
|
+
onAreaClick: fe,
|
|
2877
2877
|
onHighlightChange: _t,
|
|
2878
2878
|
series: ze,
|
|
2879
2879
|
skipAnimation: !0,
|
|
@@ -2886,7 +2886,7 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2886
2886
|
itemContent: (Y) => k && v ? /* @__PURE__ */ t(
|
|
2887
2887
|
Iu,
|
|
2888
2888
|
{
|
|
2889
|
-
categoryGuids:
|
|
2889
|
+
categoryGuids: Ce(v),
|
|
2890
2890
|
xData: W,
|
|
2891
2891
|
...Y
|
|
2892
2892
|
}
|
|
@@ -2907,8 +2907,8 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2907
2907
|
],
|
|
2908
2908
|
yAxis: [
|
|
2909
2909
|
{
|
|
2910
|
-
min:
|
|
2911
|
-
max:
|
|
2910
|
+
min: Oe,
|
|
2911
|
+
max: Le || 100
|
|
2912
2912
|
}
|
|
2913
2913
|
]
|
|
2914
2914
|
}
|
|
@@ -2927,7 +2927,7 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2927
2927
|
M && /* @__PURE__ */ t(
|
|
2928
2928
|
xu,
|
|
2929
2929
|
{
|
|
2930
|
-
categoryGuids:
|
|
2930
|
+
categoryGuids: Ce(v),
|
|
2931
2931
|
chartContainerRef: m,
|
|
2932
2932
|
cursorPosition: R,
|
|
2933
2933
|
hoveredAreaData: w.map((Y) => ({
|
|
@@ -3122,7 +3122,7 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3122
3122
|
calendarActions: e,
|
|
3123
3123
|
color: n = "primary",
|
|
3124
3124
|
copy: i,
|
|
3125
|
-
range: a = [Ve(
|
|
3125
|
+
range: a = [Ve(Ie()), je(hn())],
|
|
3126
3126
|
shouldShrinkToIcon: o = !0,
|
|
3127
3127
|
variant: r = "outlined"
|
|
3128
3128
|
}) => {
|
|
@@ -3339,7 +3339,7 @@ const Sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
)
|
|
3341
3341
|
] });
|
|
3342
|
-
},
|
|
3342
|
+
}, MT = ({
|
|
3343
3343
|
hasGap: e = !1,
|
|
3344
3344
|
segments: n,
|
|
3345
3345
|
size: i = lc,
|
|
@@ -3583,7 +3583,7 @@ const Ea = ({
|
|
|
3583
3583
|
dateRangeEditTitle: L.date_range_picker.edit_title,
|
|
3584
3584
|
dateRangeNextAria: L.date_range_picker.next_aria,
|
|
3585
3585
|
dateRangePreviousAria: L.date_range_picker.previous_aria
|
|
3586
|
-
},
|
|
3586
|
+
}, pe = o ? o.start : R.start, Oe = o ? o.end : R.end, Le = n?.length > 1;
|
|
3587
3587
|
return /* @__PURE__ */ l(
|
|
3588
3588
|
Et,
|
|
3589
3589
|
{
|
|
@@ -3605,7 +3605,7 @@ const Ea = ({
|
|
|
3605
3605
|
{
|
|
3606
3606
|
calendarActions: i,
|
|
3607
3607
|
copy: ee,
|
|
3608
|
-
range: [
|
|
3608
|
+
range: [pe, Oe],
|
|
3609
3609
|
shouldShrinkToIcon: !1,
|
|
3610
3610
|
variant: r
|
|
3611
3611
|
}
|
|
@@ -3616,36 +3616,36 @@ const Ea = ({
|
|
|
3616
3616
|
accounts: e,
|
|
3617
3617
|
copy: se,
|
|
3618
3618
|
onConnectAccountClick: () => C(!0),
|
|
3619
|
-
onFilterClick: (
|
|
3620
|
-
G(
|
|
3619
|
+
onFilterClick: (he) => {
|
|
3620
|
+
G(he), u?.();
|
|
3621
3621
|
},
|
|
3622
3622
|
selectedAccountGuids: k,
|
|
3623
3623
|
showAccountNumbers: !1,
|
|
3624
3624
|
variant: "text"
|
|
3625
3625
|
}
|
|
3626
3626
|
),
|
|
3627
|
-
n?.map((
|
|
3628
|
-
if (g.isValidElement(
|
|
3629
|
-
const { iconName:
|
|
3630
|
-
return
|
|
3627
|
+
n?.map((he) => {
|
|
3628
|
+
if (g.isValidElement(he)) return he;
|
|
3629
|
+
const { iconName: me, onClick: ze, label: V } = he;
|
|
3630
|
+
return Le ? v || N ? /* @__PURE__ */ t(
|
|
3631
3631
|
te,
|
|
3632
3632
|
{
|
|
3633
3633
|
onClick: ze,
|
|
3634
|
-
startIcon: /* @__PURE__ */ t(U, { name:
|
|
3634
|
+
startIcon: /* @__PURE__ */ t(U, { name: me, size: 24 }),
|
|
3635
3635
|
sx: { my: 4 },
|
|
3636
3636
|
children: V
|
|
3637
3637
|
},
|
|
3638
|
-
|
|
3639
|
-
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: ze, children: /* @__PURE__ */ t(U, { name:
|
|
3638
|
+
me
|
|
3639
|
+
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: ze, children: /* @__PURE__ */ t(U, { name: me, size: 24 }) }, me) : v || N ? /* @__PURE__ */ t(
|
|
3640
3640
|
te,
|
|
3641
3641
|
{
|
|
3642
3642
|
onClick: ze,
|
|
3643
|
-
startIcon: /* @__PURE__ */ t(U, { name:
|
|
3643
|
+
startIcon: /* @__PURE__ */ t(U, { name: me, size: 24 }),
|
|
3644
3644
|
sx: { my: 4 },
|
|
3645
3645
|
children: V
|
|
3646
3646
|
},
|
|
3647
|
-
|
|
3648
|
-
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: ze, children: /* @__PURE__ */ t(U, { name:
|
|
3647
|
+
me
|
|
3648
|
+
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: ze, children: /* @__PURE__ */ t(U, { name: me, size: 24 }) }, me);
|
|
3649
3649
|
})
|
|
3650
3650
|
] }),
|
|
3651
3651
|
sx: {
|
|
@@ -3683,7 +3683,7 @@ const Ea = ({
|
|
|
3683
3683
|
{
|
|
3684
3684
|
calendarActions: i,
|
|
3685
3685
|
copy: ee,
|
|
3686
|
-
range: [
|
|
3686
|
+
range: [pe, Oe],
|
|
3687
3687
|
shouldShrinkToIcon: !1,
|
|
3688
3688
|
variant: r
|
|
3689
3689
|
}
|
|
@@ -3843,7 +3843,7 @@ const Ir = "connect_widget", vr = "connections_widget", ku = ({
|
|
|
3843
3843
|
"& .MuiInputBase-adornedStart > .p": {
|
|
3844
3844
|
marginRight: e.Spacing.Tiny
|
|
3845
3845
|
}
|
|
3846
|
-
}),
|
|
3846
|
+
}), kT = ({
|
|
3847
3847
|
icon: e,
|
|
3848
3848
|
label: n,
|
|
3849
3849
|
onClick: i,
|
|
@@ -4009,7 +4009,7 @@ const Ir = "connect_widget", vr = "connections_widget", ku = ({
|
|
|
4009
4009
|
}
|
|
4010
4010
|
)
|
|
4011
4011
|
] });
|
|
4012
|
-
return i ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
4012
|
+
return i ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { onClick: i, children: [
|
|
4013
4013
|
o,
|
|
4014
4014
|
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(U, { name: "chevron_right", size: 24 }) })
|
|
4015
4015
|
] }) }) : /* @__PURE__ */ t(j, { disableGutters: !1, disablePadding: !1, children: o });
|
|
@@ -4150,7 +4150,7 @@ const Ir = "connect_widget", vr = "connections_widget", ku = ({
|
|
|
4150
4150
|
h(!1), r();
|
|
4151
4151
|
};
|
|
4152
4152
|
return /* @__PURE__ */ l(j, { children: [
|
|
4153
|
-
/* @__PURE__ */ l(
|
|
4153
|
+
/* @__PURE__ */ l(ge, { onClick: () => h(!n), children: [
|
|
4154
4154
|
/* @__PURE__ */ t(
|
|
4155
4155
|
re,
|
|
4156
4156
|
{
|
|
@@ -4194,7 +4194,7 @@ const Ir = "connect_widget", vr = "connections_widget", ku = ({
|
|
|
4194
4194
|
}) => {
|
|
4195
4195
|
const { onEvent: o } = X();
|
|
4196
4196
|
return i ? /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
|
|
4197
|
-
|
|
4197
|
+
ge,
|
|
4198
4198
|
{
|
|
4199
4199
|
onClick: () => {
|
|
4200
4200
|
n && o(n), i();
|
|
@@ -4246,7 +4246,7 @@ const Ir = "connect_widget", vr = "connections_widget", ku = ({
|
|
|
4246
4246
|
"& .MuiListItemSecondaryAction-root": { right: n ? 64 : 24 },
|
|
4247
4247
|
"& .MuiListItemButton-root": { pr: 24 }
|
|
4248
4248
|
},
|
|
4249
|
-
children: /* @__PURE__ */ l(
|
|
4249
|
+
children: /* @__PURE__ */ l(ge, { onClick: a ? void 0 : () => o(), children: [
|
|
4250
4250
|
e && /* @__PURE__ */ t(He, { children: e }),
|
|
4251
4251
|
/* @__PURE__ */ t(re, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ l(b, { children: [
|
|
4252
4252
|
/* @__PURE__ */ t(f, { variant: "body1", children: s }),
|
|
@@ -4525,7 +4525,7 @@ class zu {
|
|
|
4525
4525
|
api = new Dr("/", "");
|
|
4526
4526
|
globalStore;
|
|
4527
4527
|
alert = "";
|
|
4528
|
-
dateRange = { start: Ve(
|
|
4528
|
+
dateRange = { start: Ve(Ie()), end: je(Ie()) };
|
|
4529
4529
|
budgets = [];
|
|
4530
4530
|
selectedBudget;
|
|
4531
4531
|
selectedSubBudget;
|
|
@@ -4812,7 +4812,7 @@ const Ci = () => {
|
|
|
4812
4812
|
children: /* @__PURE__ */ t(Xu, { onAddIncomeClick: e })
|
|
4813
4813
|
}
|
|
4814
4814
|
) : /* @__PURE__ */ t(ue, {});
|
|
4815
|
-
},
|
|
4815
|
+
}, GT = x(Zu), qu = (e) => {
|
|
4816
4816
|
if (!e) return "";
|
|
4817
4817
|
let n = e.user_name || e.feed_name || "";
|
|
4818
4818
|
return e.account_number && (n = `${n} *${e.account_number}`), n;
|
|
@@ -4868,7 +4868,7 @@ const Ci = () => {
|
|
|
4868
4868
|
const u = e.transactions.find(
|
|
4869
4869
|
(_) => _.repeating_transaction_guid === e.guid && _.date > Fe(Nt(d.expectedDate, 5)) && _.date < Fe(Fn(d.expectedDate, 5))
|
|
4870
4870
|
);
|
|
4871
|
-
u ? (d.transaction = u, d.status = Qe.Paid, d.occurredOnDate = Ue(u.date)) : et(d.expectedDate, Nt(
|
|
4871
|
+
u ? (d.transaction = u, d.status = Qe.Paid, d.occurredOnDate = Ue(u.date)) : et(d.expectedDate, Nt(Ie(), 3)) && (d.status = Qe.Missed);
|
|
4872
4872
|
}
|
|
4873
4873
|
return i;
|
|
4874
4874
|
}, Ju = (e, n, i) => {
|
|
@@ -4949,7 +4949,7 @@ const Ci = () => {
|
|
|
4949
4949
|
recurrences: [i]
|
|
4950
4950
|
}), n;
|
|
4951
4951
|
}, []), ra = (e, n, i) => {
|
|
4952
|
-
const a = Ji(
|
|
4952
|
+
const a = Ji(Ie(), n.recurrence_day), o = qs(Ie(), n.recurrence_day), r = Ni(n.recurrence_day), s = n.second_recurrence_day ? Ni(n.second_recurrence_day) : "";
|
|
4953
4953
|
let c = i ? T(e.monthly_ordinal, r) : e.monthly;
|
|
4954
4954
|
switch (n.recurrence_type) {
|
|
4955
4955
|
case Se.EveryQuarter:
|
|
@@ -5161,7 +5161,7 @@ const lh = [
|
|
|
5161
5161
|
left: "flex-start",
|
|
5162
5162
|
right: "flex-end"
|
|
5163
5163
|
}
|
|
5164
|
-
},
|
|
5164
|
+
}, we = {
|
|
5165
5165
|
ADD: "Add",
|
|
5166
5166
|
ADD_CATEGORY: "Add Category",
|
|
5167
5167
|
CHANGE_CATEGORY: "Change Category",
|
|
@@ -5175,11 +5175,11 @@ const lh = [
|
|
|
5175
5175
|
SELECT: "Select",
|
|
5176
5176
|
UNHIDE: "Unhide",
|
|
5177
5177
|
UNSPLIT: "Unsplit"
|
|
5178
|
-
},
|
|
5178
|
+
}, De = {
|
|
5179
5179
|
TRANSACTION_DETAILS: "Transaction Details",
|
|
5180
5180
|
TRANSACTIONS_LIST: "Transactions List",
|
|
5181
5181
|
TRANSACTIONS_WIDGET: "Transactions Widget"
|
|
5182
|
-
},
|
|
5182
|
+
}, Ne = {
|
|
5183
5183
|
ADD_TRANSACTION: "Manual Transaction",
|
|
5184
5184
|
CATEGORY: "Category",
|
|
5185
5185
|
DATE: "Date",
|
|
@@ -5201,216 +5201,216 @@ const lh = [
|
|
|
5201
5201
|
}, Lr = {
|
|
5202
5202
|
// splits
|
|
5203
5203
|
[Z.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
5204
|
-
action:
|
|
5205
|
-
category:
|
|
5206
|
-
label:
|
|
5204
|
+
action: we.SELECT,
|
|
5205
|
+
category: De.TRANSACTION_DETAILS,
|
|
5206
|
+
label: Ne.SPLITS
|
|
5207
5207
|
},
|
|
5208
5208
|
[Z.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
5209
|
-
action:
|
|
5210
|
-
category:
|
|
5211
|
-
label:
|
|
5209
|
+
action: we.ADD_CATEGORY,
|
|
5210
|
+
category: De.TRANSACTION_DETAILS,
|
|
5211
|
+
label: Ne.SPLITS
|
|
5212
5212
|
},
|
|
5213
5213
|
[Z.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
5214
|
-
action:
|
|
5215
|
-
category:
|
|
5216
|
-
label:
|
|
5214
|
+
action: we.DELETE,
|
|
5215
|
+
category: De.TRANSACTION_DETAILS,
|
|
5216
|
+
label: Ne.SPLITS
|
|
5217
5217
|
},
|
|
5218
5218
|
[Z.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
5219
|
-
action:
|
|
5220
|
-
category:
|
|
5221
|
-
label:
|
|
5219
|
+
action: we.SPLIT,
|
|
5220
|
+
category: De.TRANSACTION_DETAILS,
|
|
5221
|
+
label: Ne.SPLITS
|
|
5222
5222
|
},
|
|
5223
5223
|
[Z.ON_TRANSACTION_UNSPLIT]: {
|
|
5224
|
-
action:
|
|
5225
|
-
category:
|
|
5226
|
-
label:
|
|
5224
|
+
action: we.UNSPLIT,
|
|
5225
|
+
category: De.TRANSACTION_DETAILS,
|
|
5226
|
+
label: Ne.SPLITS
|
|
5227
5227
|
},
|
|
5228
5228
|
// category
|
|
5229
5229
|
[Z.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
5230
|
-
action:
|
|
5231
|
-
category:
|
|
5232
|
-
label:
|
|
5230
|
+
action: we.SELECT,
|
|
5231
|
+
category: De.TRANSACTIONS_LIST,
|
|
5232
|
+
label: Ne.CATEGORY
|
|
5233
5233
|
},
|
|
5234
5234
|
[Z.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
5235
|
-
action:
|
|
5236
|
-
category:
|
|
5237
|
-
label:
|
|
5235
|
+
action: we.CHANGE_CATEGORY,
|
|
5236
|
+
category: De.TRANSACTION_DETAILS,
|
|
5237
|
+
label: Ne.CATEGORY
|
|
5238
5238
|
},
|
|
5239
5239
|
// date
|
|
5240
5240
|
[Z.ON_TRANSACTION_DATE_CHANGED]: {
|
|
5241
|
-
action:
|
|
5242
|
-
category:
|
|
5243
|
-
label:
|
|
5241
|
+
action: we.SAVE,
|
|
5242
|
+
category: De.TRANSACTION_DETAILS,
|
|
5243
|
+
label: Ne.DATE
|
|
5244
5244
|
},
|
|
5245
5245
|
[Z.ON_TRANSACTION_DATE_CLICK]: {
|
|
5246
|
-
action:
|
|
5247
|
-
category:
|
|
5248
|
-
label:
|
|
5246
|
+
action: we.SELECT,
|
|
5247
|
+
category: De.TRANSACTION_DETAILS,
|
|
5248
|
+
label: Ne.DATE
|
|
5249
5249
|
},
|
|
5250
5250
|
// merchant logo
|
|
5251
5251
|
[Z.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
5252
|
-
action:
|
|
5253
|
-
category:
|
|
5254
|
-
label:
|
|
5252
|
+
action: we.CLOSE,
|
|
5253
|
+
category: De.TRANSACTION_DETAILS,
|
|
5254
|
+
label: Ne.DELETE_MERCHANT_LOGO
|
|
5255
5255
|
},
|
|
5256
5256
|
[Z.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
5257
|
-
action:
|
|
5258
|
-
category:
|
|
5259
|
-
label:
|
|
5257
|
+
action: we.SELECT,
|
|
5258
|
+
category: De.TRANSACTION_DETAILS,
|
|
5259
|
+
label: Ne.DELETE_MERCHANT_LOGO
|
|
5260
5260
|
},
|
|
5261
5261
|
[Z.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
5262
|
-
action:
|
|
5263
|
-
category:
|
|
5264
|
-
label:
|
|
5262
|
+
action: we.DELETE,
|
|
5263
|
+
category: De.TRANSACTION_DETAILS,
|
|
5264
|
+
label: Ne.DELETE_MERCHANT_LOGO
|
|
5265
5265
|
},
|
|
5266
5266
|
// description
|
|
5267
5267
|
[Z.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
5268
|
-
action:
|
|
5269
|
-
category:
|
|
5270
|
-
label:
|
|
5268
|
+
action: we.EDIT,
|
|
5269
|
+
category: De.TRANSACTION_DETAILS,
|
|
5270
|
+
label: Ne.DESCRIPTION
|
|
5271
5271
|
},
|
|
5272
5272
|
[Z.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
5273
|
-
action:
|
|
5274
|
-
category:
|
|
5275
|
-
label:
|
|
5273
|
+
action: we.SAVE,
|
|
5274
|
+
category: De.TRANSACTION_DETAILS,
|
|
5275
|
+
label: Ne.DESCRIPTION
|
|
5276
5276
|
},
|
|
5277
5277
|
// hide transactions
|
|
5278
5278
|
[Z.ON_TRANSACTION_HIDDEN]: {
|
|
5279
|
-
action:
|
|
5280
|
-
category:
|
|
5281
|
-
label:
|
|
5279
|
+
action: we.SAVE,
|
|
5280
|
+
category: De.TRANSACTION_DETAILS,
|
|
5281
|
+
label: Ne.HIDE_TRANSACTION
|
|
5282
5282
|
},
|
|
5283
5283
|
[Z.ON_TRANSACTION_HIDE_CLICK]: {
|
|
5284
|
-
action:
|
|
5285
|
-
category:
|
|
5286
|
-
label:
|
|
5284
|
+
action: we.SELECT,
|
|
5285
|
+
category: De.TRANSACTION_DETAILS,
|
|
5286
|
+
label: Ne.HIDE_TRANSACTION
|
|
5287
5287
|
},
|
|
5288
5288
|
[Z.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
5289
|
-
action:
|
|
5290
|
-
category:
|
|
5291
|
-
label:
|
|
5289
|
+
action: we.CLOSE,
|
|
5290
|
+
category: De.TRANSACTION_DETAILS,
|
|
5291
|
+
label: Ne.HIDE_TRANSACTION
|
|
5292
5292
|
},
|
|
5293
5293
|
// transaction list
|
|
5294
5294
|
[Z.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
5295
|
-
action:
|
|
5296
|
-
category:
|
|
5297
|
-
label:
|
|
5295
|
+
action: we.SELECT,
|
|
5296
|
+
category: De.TRANSACTIONS_LIST,
|
|
5297
|
+
label: Ne.TRANSACTION
|
|
5298
5298
|
},
|
|
5299
5299
|
// memo
|
|
5300
5300
|
[Z.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
5301
|
-
action:
|
|
5302
|
-
category:
|
|
5303
|
-
label:
|
|
5301
|
+
action: we.SAVE,
|
|
5302
|
+
category: De.TRANSACTION_DETAILS,
|
|
5303
|
+
label: Ne.MEMO
|
|
5304
5304
|
},
|
|
5305
5305
|
[Z.ON_TRANSACTION_MEMO_CLICK]: {
|
|
5306
|
-
action:
|
|
5307
|
-
category:
|
|
5308
|
-
label:
|
|
5306
|
+
action: we.SELECT,
|
|
5307
|
+
category: De.TRANSACTION_DETAILS,
|
|
5308
|
+
label: Ne.MEMO
|
|
5309
5309
|
},
|
|
5310
5310
|
// tags
|
|
5311
5311
|
[Z.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
5312
|
-
action:
|
|
5313
|
-
category:
|
|
5314
|
-
label:
|
|
5312
|
+
action: we.SAVE,
|
|
5313
|
+
category: De.TRANSACTION_DETAILS,
|
|
5314
|
+
label: Ne.TAGS
|
|
5315
5315
|
},
|
|
5316
5316
|
[Z.ON_TRANSACTION_TAGS_CLICK]: {
|
|
5317
|
-
action:
|
|
5318
|
-
category:
|
|
5319
|
-
label:
|
|
5317
|
+
action: we.SELECT,
|
|
5318
|
+
category: De.TRANSACTION_DETAILS,
|
|
5319
|
+
label: Ne.TAGS
|
|
5320
5320
|
},
|
|
5321
5321
|
[Z.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
5322
|
-
action:
|
|
5323
|
-
category:
|
|
5324
|
-
label:
|
|
5322
|
+
action: we.CLOSE,
|
|
5323
|
+
category: De.TRANSACTION_DETAILS,
|
|
5324
|
+
label: Ne.TAGS
|
|
5325
5325
|
},
|
|
5326
5326
|
[Z.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
5327
|
-
action:
|
|
5328
|
-
category:
|
|
5329
|
-
label:
|
|
5327
|
+
action: we.ADD,
|
|
5328
|
+
category: De.TRANSACTION_DETAILS,
|
|
5329
|
+
label: Ne.TAG_ADD
|
|
5330
5330
|
},
|
|
5331
5331
|
[Z.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
5332
|
-
action:
|
|
5333
|
-
category:
|
|
5334
|
-
label:
|
|
5332
|
+
action: we.SAVE,
|
|
5333
|
+
category: De.TRANSACTION_DETAILS,
|
|
5334
|
+
label: Ne.TAG_ADD
|
|
5335
5335
|
},
|
|
5336
5336
|
[Z.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
5337
|
-
action:
|
|
5338
|
-
category:
|
|
5339
|
-
label:
|
|
5337
|
+
action: we.SELECT,
|
|
5338
|
+
category: De.TRANSACTION_DETAILS,
|
|
5339
|
+
label: Ne.TAG_DELETE
|
|
5340
5340
|
},
|
|
5341
5341
|
[Z.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
5342
|
-
action:
|
|
5343
|
-
category:
|
|
5344
|
-
label:
|
|
5342
|
+
action: we.CLOSE,
|
|
5343
|
+
category: De.TRANSACTION_DETAILS,
|
|
5344
|
+
label: Ne.TAG_DELETE
|
|
5345
5345
|
},
|
|
5346
5346
|
[Z.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
5347
|
-
action:
|
|
5348
|
-
category:
|
|
5349
|
-
label:
|
|
5347
|
+
action: we.SAVE,
|
|
5348
|
+
category: De.TRANSACTION_DETAILS,
|
|
5349
|
+
label: Ne.TAG_DELETE
|
|
5350
5350
|
},
|
|
5351
5351
|
[Z.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
5352
|
-
action:
|
|
5353
|
-
category:
|
|
5354
|
-
label:
|
|
5352
|
+
action: we.EDIT,
|
|
5353
|
+
category: De.TRANSACTION_DETAILS,
|
|
5354
|
+
label: Ne.TAG_EDIT
|
|
5355
5355
|
},
|
|
5356
5356
|
[Z.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
5357
|
-
action:
|
|
5358
|
-
category:
|
|
5359
|
-
label:
|
|
5357
|
+
action: we.SAVE,
|
|
5358
|
+
category: De.TRANSACTION_DETAILS,
|
|
5359
|
+
label: Ne.TAG_EDIT
|
|
5360
5360
|
},
|
|
5361
5361
|
// flag
|
|
5362
5362
|
[Z.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
5363
|
-
action:
|
|
5364
|
-
category:
|
|
5365
|
-
label:
|
|
5363
|
+
action: we.SELECT,
|
|
5364
|
+
category: De.TRANSACTION_DETAILS,
|
|
5365
|
+
label: Ne.FLAG
|
|
5366
5366
|
},
|
|
5367
5367
|
// hide
|
|
5368
5368
|
[Z.ON_TRANSACTION_UNHIDDEN]: {
|
|
5369
|
-
action:
|
|
5370
|
-
category:
|
|
5371
|
-
label:
|
|
5369
|
+
action: we.SAVE,
|
|
5370
|
+
category: De.TRANSACTION_DETAILS,
|
|
5371
|
+
label: Ne.UNHIDE_TRANSACTION
|
|
5372
5372
|
},
|
|
5373
5373
|
[Z.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
5374
|
-
action:
|
|
5375
|
-
category:
|
|
5376
|
-
label:
|
|
5374
|
+
action: we.SELECT,
|
|
5375
|
+
category: De.TRANSACTION_DETAILS,
|
|
5376
|
+
label: Ne.UNHIDE_TRANSACTION
|
|
5377
5377
|
},
|
|
5378
5378
|
[Z.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
5379
|
-
action:
|
|
5380
|
-
category:
|
|
5381
|
-
label:
|
|
5379
|
+
action: we.CLOSE,
|
|
5380
|
+
category: De.TRANSACTION_DETAILS,
|
|
5381
|
+
label: Ne.UNHIDE_TRANSACTION
|
|
5382
5382
|
},
|
|
5383
5383
|
// export CSV
|
|
5384
5384
|
[Z.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
5385
|
-
action:
|
|
5386
|
-
category:
|
|
5387
|
-
label:
|
|
5385
|
+
action: we.SELECT,
|
|
5386
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5387
|
+
label: Ne.EXPORT_CSV
|
|
5388
5388
|
},
|
|
5389
5389
|
// add transaction
|
|
5390
5390
|
[Z.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
5391
|
-
action:
|
|
5392
|
-
category:
|
|
5393
|
-
label:
|
|
5391
|
+
action: we.SELECT,
|
|
5392
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5393
|
+
label: Ne.ADD_TRANSACTION
|
|
5394
5394
|
},
|
|
5395
5395
|
[Z.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
5396
|
-
action:
|
|
5397
|
-
category:
|
|
5398
|
-
label:
|
|
5396
|
+
action: we.ADD,
|
|
5397
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5398
|
+
label: Ne.ADD_TRANSACTION
|
|
5399
5399
|
},
|
|
5400
5400
|
[Z.ON_TRANSACTION_DELETE_CLICK]: {
|
|
5401
|
-
action:
|
|
5402
|
-
category:
|
|
5403
|
-
label:
|
|
5401
|
+
action: we.SELECT,
|
|
5402
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5403
|
+
label: Ne.DELETE_TRANSACTION
|
|
5404
5404
|
},
|
|
5405
5405
|
[Z.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
5406
|
-
action:
|
|
5407
|
-
category:
|
|
5408
|
-
label:
|
|
5406
|
+
action: we.CLOSE,
|
|
5407
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5408
|
+
label: Ne.DELETE_TRANSACTION
|
|
5409
5409
|
},
|
|
5410
5410
|
[Z.ON_TRANSACTION_DELETE_DELETED]: {
|
|
5411
|
-
action:
|
|
5412
|
-
category:
|
|
5413
|
-
label:
|
|
5411
|
+
action: we.DELETE,
|
|
5412
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5413
|
+
label: Ne.DELETE_TRANSACTION
|
|
5414
5414
|
}
|
|
5415
5415
|
}, _h = async (e, n) => !n || !Lr[e] ? null : n.sendAnalyticEvent(Lr[e]), no = {
|
|
5416
5416
|
FLAG: "flag",
|
|
@@ -5496,7 +5496,7 @@ const Ac = (e, n) => {
|
|
|
5496
5496
|
}, Eh = (e, n, i) => {
|
|
5497
5497
|
const {
|
|
5498
5498
|
accounts: a = [],
|
|
5499
|
-
dateRange: o = { start: Ve(
|
|
5499
|
+
dateRange: o = { start: Ve(Ie()), end: hn() },
|
|
5500
5500
|
custom: r = () => !0,
|
|
5501
5501
|
searchTerm: s = ""
|
|
5502
5502
|
} = e;
|
|
@@ -5595,7 +5595,7 @@ class Dh {
|
|
|
5595
5595
|
api = new sa("/", "");
|
|
5596
5596
|
beatApi = new si("/", "");
|
|
5597
5597
|
associatedBeats = [];
|
|
5598
|
-
cachedStartDate = Nt(
|
|
5598
|
+
cachedStartDate = Nt(Ie(), 90);
|
|
5599
5599
|
filter = {};
|
|
5600
5600
|
isLoading = !0;
|
|
5601
5601
|
rawTransactions = [];
|
|
@@ -5795,7 +5795,7 @@ class Dh {
|
|
|
5795
5795
|
const Ot = () => {
|
|
5796
5796
|
if (!g.useContext(ti))
|
|
5797
5797
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
5798
|
-
return
|
|
5798
|
+
return ke().uiStore;
|
|
5799
5799
|
};
|
|
5800
5800
|
function Nh() {
|
|
5801
5801
|
return window.opener && window.opener.location ? window.opener.location.toString() : document.referrer;
|
|
@@ -5812,7 +5812,7 @@ function Oh(e) {
|
|
|
5812
5812
|
});
|
|
5813
5813
|
}
|
|
5814
5814
|
const Lh = ({ transaction: e, onClick: n }) => {
|
|
5815
|
-
const { associatedBeats: i } =
|
|
5815
|
+
const { associatedBeats: i } = ke(), { transactions: a } = A(), { showInsights: o } = Ot(), r = e.transaction_type === Yt.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
|
|
5816
5816
|
return (
|
|
5817
5817
|
//TODO: implement common/components/ListItemRow.tsx
|
|
5818
5818
|
/* @__PURE__ */ l(
|
|
@@ -5904,7 +5904,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
|
|
|
5904
5904
|
width: c = "100%",
|
|
5905
5905
|
zeroState: d = /* @__PURE__ */ t(kh, {})
|
|
5906
5906
|
}) => {
|
|
5907
|
-
const { isLoading: u, sortedTransactions: _ } =
|
|
5907
|
+
const { isLoading: u, sortedTransactions: _ } = ke(), h = g.useMemo(() => s ? _ : _.filter((v) => !v.is_hidden), [_, s]), { clearExpandedSplits: m, setShowInsights: p, toggleSplit: C } = Ot(), { onEvent: S } = X(), y = (v) => {
|
|
5908
5908
|
const w = h.find((N) => N.guid === v);
|
|
5909
5909
|
if (w?.has_been_split) {
|
|
5910
5910
|
C(w.guid);
|
|
@@ -5959,7 +5959,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
|
|
|
5959
5959
|
`${e.row.account}`,
|
|
5960
5960
|
e.row.number && ` | ${e.row.number}`
|
|
5961
5961
|
] }), Ph = (e) => {
|
|
5962
|
-
const { associatedBeats: n } =
|
|
5962
|
+
const { associatedBeats: n } = ke(), { showInsights: i } = Ot(), { amount: a, transaction_type: o } = e.row, r = n.find((c) => c.associated_transaction_guid === e.row.guid), s = o === Yt.CREDIT;
|
|
5963
5963
|
return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
|
|
5964
5964
|
/* @__PURE__ */ l(f, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
|
|
5965
5965
|
s ? "+" : "",
|
|
@@ -6028,7 +6028,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
|
|
|
6028
6028
|
onCategoryClick: n,
|
|
6029
6029
|
onRowClick: i
|
|
6030
6030
|
}) => {
|
|
6031
|
-
const { transactions: a } = A(), { isCopyLoaded: o } = _e(), { isLoading: r, sortedTransactions: s } =
|
|
6031
|
+
const { transactions: a } = A(), { isCopyLoaded: o } = _e(), { isLoading: r, sortedTransactions: s } = ke(), { clearExpandedSplits: c, toggleSplit: d } = Ot();
|
|
6032
6032
|
g.useEffect(() => () => c(), []);
|
|
6033
6033
|
const u = g.useMemo(
|
|
6034
6034
|
() => s.map((m) => ({
|
|
@@ -6192,7 +6192,7 @@ const jh = ({
|
|
|
6192
6192
|
i(!1), r(Xt.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
|
|
6193
6193
|
};
|
|
6194
6194
|
return /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
|
6195
|
-
/* @__PURE__ */ t(
|
|
6195
|
+
/* @__PURE__ */ t(ge, { onClick: d, sx: { ml: 60 }, children: /* @__PURE__ */ t(
|
|
6196
6196
|
re,
|
|
6197
6197
|
{
|
|
6198
6198
|
primary: o.add_subcategory_button,
|
|
@@ -6269,7 +6269,7 @@ const jh = ({
|
|
|
6269
6269
|
sx: { pl: 58 },
|
|
6270
6270
|
children: [
|
|
6271
6271
|
/* @__PURE__ */ l(
|
|
6272
|
-
|
|
6272
|
+
ge,
|
|
6273
6273
|
{
|
|
6274
6274
|
"aria-pressed": y,
|
|
6275
6275
|
color: "secondary",
|
|
@@ -6366,7 +6366,7 @@ const jh = ({
|
|
|
6366
6366
|
};
|
|
6367
6367
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6368
6368
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6369
|
-
|
|
6369
|
+
ge,
|
|
6370
6370
|
{
|
|
6371
6371
|
"aria-controls": `subcategories-${e.guid}`,
|
|
6372
6372
|
"aria-expanded": e.guid === i,
|
|
@@ -6524,7 +6524,7 @@ const jh = ({
|
|
|
6524
6524
|
)
|
|
6525
6525
|
);
|
|
6526
6526
|
}, Pr = (e) => {
|
|
6527
|
-
const n = [], i =
|
|
6527
|
+
const n = [], i = Ie();
|
|
6528
6528
|
for (let a = 0; a <= Br; a++) {
|
|
6529
6529
|
const o = Ve(Bt(i, Br - a)), s = e.filter(
|
|
6530
6530
|
(c) => c.year_month === Number(On(o, "yyyyMM"))
|
|
@@ -6678,7 +6678,7 @@ class gg {
|
|
|
6678
6678
|
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? fa[n];
|
|
6679
6679
|
}
|
|
6680
6680
|
const wc = ({ transaction: e }) => {
|
|
6681
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: i } =
|
|
6681
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: i } = ke(), { categories: a } = $e(), { onEvent: o } = X(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = Ot(), { transactions: c } = A(), [d, u] = g.useState(!1), [_, h] = g.useState(""), m = async (y) => {
|
|
6682
6682
|
await i({ ...e, category_guid: _ }), y && await n(_, e), h(""), o(F.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
6683
6683
|
transaction_guid: e.guid
|
|
6684
6684
|
});
|
|
@@ -6702,7 +6702,7 @@ const wc = ({ transaction: e }) => {
|
|
|
6702
6702
|
);
|
|
6703
6703
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6704
6704
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6705
|
-
|
|
6705
|
+
ge,
|
|
6706
6706
|
{
|
|
6707
6707
|
onClick: () => {
|
|
6708
6708
|
o(Z.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
@@ -6763,7 +6763,7 @@ const wc = ({ transaction: e }) => {
|
|
|
6763
6763
|
)
|
|
6764
6764
|
] });
|
|
6765
6765
|
}, Dc = ({ transaction: e }) => {
|
|
6766
|
-
const n = Tt(), { onEvent: i } = X(), { updateTransaction: a } =
|
|
6766
|
+
const n = Tt(), { onEvent: i } = X(), { updateTransaction: a } = ke(), { updateManualTransaction: o } = Ot(), { common: r, transactions: s } = A(), [c, d] = g.useState(!1), [u, _] = g.useState(e.date), h = (p) => {
|
|
6767
6767
|
_(Fe(p));
|
|
6768
6768
|
}, m = async () => {
|
|
6769
6769
|
if (e.is_manual && !e.guid) {
|
|
@@ -6774,7 +6774,7 @@ const wc = ({ transaction: e }) => {
|
|
|
6774
6774
|
};
|
|
6775
6775
|
return /* @__PURE__ */ l(O, { className: "mx-txn-date-action", children: [
|
|
6776
6776
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6777
|
-
|
|
6777
|
+
ge,
|
|
6778
6778
|
{
|
|
6779
6779
|
onClick: () => {
|
|
6780
6780
|
i(Z.ON_TRANSACTION_DATE_CLICK), d(!0);
|
|
@@ -6820,12 +6820,12 @@ const wc = ({ transaction: e }) => {
|
|
|
6820
6820
|
)
|
|
6821
6821
|
] });
|
|
6822
6822
|
}, mg = ({ transaction: e }) => {
|
|
6823
|
-
const { onEvent: n } = X(), { removeTransaction: i } =
|
|
6823
|
+
const { onEvent: n } = X(), { removeTransaction: i } = ke(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = A(), [s, c] = g.useState(!1), d = async () => {
|
|
6824
6824
|
await i(e.guid), n(Z.ON_TRANSACTION_DELETE_DELETED);
|
|
6825
6825
|
};
|
|
6826
6826
|
return /* @__PURE__ */ l(O, { className: "mx-txn-delete", children: [
|
|
6827
6827
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6828
|
-
|
|
6828
|
+
ge,
|
|
6829
6829
|
{
|
|
6830
6830
|
onClick: () => {
|
|
6831
6831
|
n(Z.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
@@ -6860,14 +6860,14 @@ const wc = ({ transaction: e }) => {
|
|
|
6860
6860
|
)
|
|
6861
6861
|
] });
|
|
6862
6862
|
}, pg = x(mg), Cg = ({ transaction: e }) => {
|
|
6863
|
-
const { onEvent: n } = X(), { updateTransaction: i } =
|
|
6863
|
+
const { onEvent: n } = X(), { updateTransaction: i } = ke(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = A(), [s, c] = g.useState(!1), d = async () => {
|
|
6864
6864
|
await i({ ...e, merchant_guid: "" }), n(F.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
6865
6865
|
transaction_guid: e.guid
|
|
6866
6866
|
});
|
|
6867
6867
|
};
|
|
6868
6868
|
return /* @__PURE__ */ l(O, { className: "mx-txn-delete-logo", children: [
|
|
6869
6869
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6870
|
-
|
|
6870
|
+
ge,
|
|
6871
6871
|
{
|
|
6872
6872
|
onClick: () => {
|
|
6873
6873
|
n(Z.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
|
@@ -6900,14 +6900,14 @@ const wc = ({ transaction: e }) => {
|
|
|
6900
6900
|
)
|
|
6901
6901
|
] });
|
|
6902
6902
|
}, fg = x(Cg), bg = ({ transaction: e }) => {
|
|
6903
|
-
const { onEvent: n } = X(), { updateTransaction: i } =
|
|
6903
|
+
const { onEvent: n } = X(), { updateTransaction: i } = ke(), { setShouldDisableDrawerScroll: a } = Ot(), { common: o, transactions: r } = A(), [s, c] = g.useState(!1), d = e.is_hidden, u = async () => {
|
|
6904
6904
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
|
6905
6905
|
d ? Z.ON_TRANSACTION_UNHIDDEN : Z.ON_TRANSACTION_HIDDEN
|
|
6906
6906
|
);
|
|
6907
6907
|
};
|
|
6908
6908
|
return /* @__PURE__ */ l(O, { className: "mx-txn-hide-transaction", children: [
|
|
6909
6909
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6910
|
-
|
|
6910
|
+
ge,
|
|
6911
6911
|
{
|
|
6912
6912
|
"aria-checked": d,
|
|
6913
6913
|
onClick: () => {
|
|
@@ -6989,7 +6989,7 @@ const wc = ({ transaction: e }) => {
|
|
|
6989
6989
|
] })
|
|
6990
6990
|
] });
|
|
6991
6991
|
}, Sg = ({ transaction: e }) => {
|
|
6992
|
-
const { onEvent: n } = X(), { updateTransaction: i } =
|
|
6992
|
+
const { onEvent: n } = X(), { updateTransaction: i } = ke(), { updateManualTransaction: a } = Ot(), { common: o, transactions: r } = A(), [s, c] = g.useState(!1), [d, u] = g.useState("");
|
|
6993
6993
|
g.useEffect(() => {
|
|
6994
6994
|
s && u(e.memo ? e.memo : "");
|
|
6995
6995
|
}, [s]);
|
|
@@ -7002,7 +7002,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7002
7002
|
};
|
|
7003
7003
|
return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
|
|
7004
7004
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
7005
|
-
|
|
7005
|
+
ge,
|
|
7006
7006
|
{
|
|
7007
7007
|
onClick: () => {
|
|
7008
7008
|
n(Z.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
|
@@ -7216,7 +7216,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7216
7216
|
) })
|
|
7217
7217
|
] });
|
|
7218
7218
|
}, xg = x(Ag), Ig = ({ transaction: e }) => {
|
|
7219
|
-
const { onEvent: n } = X(), { splitTransaction: i, unSplitTransaction: a } =
|
|
7219
|
+
const { onEvent: n } = X(), { splitTransaction: i, unSplitTransaction: a } = ke(), { common: o, transactions: r } = A(), { setShouldDisableDrawerScroll: s } = Ot(), { categories: c } = $e(), d = {
|
|
7220
7220
|
...e,
|
|
7221
7221
|
amount: e.amount - 1,
|
|
7222
7222
|
guid: "",
|
|
@@ -7276,7 +7276,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7276
7276
|
return G || L;
|
|
7277
7277
|
}, [C]);
|
|
7278
7278
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7279
|
-
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
7279
|
+
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { onClick: w, children: [
|
|
7280
7280
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Pt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: "call_split", sx: { color: "text.primary" }, weight: xt.Dark }) }) }),
|
|
7281
7281
|
/* @__PURE__ */ t(
|
|
7282
7282
|
re,
|
|
@@ -7336,7 +7336,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7336
7336
|
)
|
|
7337
7337
|
] });
|
|
7338
7338
|
}, vg = x(Ig), wg = () => {
|
|
7339
|
-
const e = Ae(), { onEvent: n } = X(), { addTag: i } =
|
|
7339
|
+
const e = Ae(), { onEvent: n } = X(), { addTag: i } = ke(), { transactions: a } = A(), [o, r] = g.useState(!1), [s, c] = g.useState(""), [d, u] = g.useState(""), _ = g.useRef(null);
|
|
7340
7340
|
g.useEffect(() => {
|
|
7341
7341
|
o && _?.current?.focus();
|
|
7342
7342
|
}, [o]);
|
|
@@ -7423,7 +7423,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7423
7423
|
}
|
|
7424
7424
|
) });
|
|
7425
7425
|
}, Rg = x(Ng), Og = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
|
|
7426
|
-
const { onEvent: a } = X(), { removeTag: o, updateTag: r } =
|
|
7426
|
+
const { onEvent: a } = X(), { removeTag: o, updateTag: r } = ke(), { common: s, transactions: c } = A(), [d, u] = g.useState(!1), [_, h] = g.useState(!1), [m, p] = g.useState(""), [C, S] = g.useState(""), y = async () => {
|
|
7427
7427
|
a(Z.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), u(!1);
|
|
7428
7428
|
}, E = async () => {
|
|
7429
7429
|
a(Z.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
|
|
@@ -7464,7 +7464,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7464
7464
|
] }),
|
|
7465
7465
|
children: [
|
|
7466
7466
|
/* @__PURE__ */ l(
|
|
7467
|
-
|
|
7467
|
+
ge,
|
|
7468
7468
|
{
|
|
7469
7469
|
"aria-checked": n.includes(i.guid),
|
|
7470
7470
|
onClick: () => e(i.guid),
|
|
@@ -7517,7 +7517,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7517
7517
|
}
|
|
7518
7518
|
);
|
|
7519
7519
|
}, Lg = x(Og), Mg = ({ selectedTags: e, onTagChecked: n }) => {
|
|
7520
|
-
const { tags: i } =
|
|
7520
|
+
const { tags: i } = ke(), [a, o] = g.useState(""), r = i.filter(
|
|
7521
7521
|
(s) => s.name.toLowerCase().includes(a.toLowerCase())
|
|
7522
7522
|
);
|
|
7523
7523
|
return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
|
|
@@ -7535,7 +7535,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7535
7535
|
] }, s.guid)) }) })
|
|
7536
7536
|
] });
|
|
7537
7537
|
}, kg = x(Mg), Gg = ({ transaction: e }) => {
|
|
7538
|
-
const { onEvent: n } = X(), { tags: i, updateTaggings: a, updateTransaction: o } =
|
|
7538
|
+
const { onEvent: n } = X(), { tags: i, updateTaggings: a, updateTransaction: o } = ke(), { common: r, transactions: s } = A(), { updateManualTransaction: c } = Ot(), [d, u] = g.useState(!1), [_, h] = g.useState(e.tags);
|
|
7539
7539
|
g.useEffect(() => {
|
|
7540
7540
|
h(e.tags);
|
|
7541
7541
|
}, [d, e]);
|
|
@@ -7556,7 +7556,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7556
7556
|
);
|
|
7557
7557
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7558
7558
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
7559
|
-
|
|
7559
|
+
ge,
|
|
7560
7560
|
{
|
|
7561
7561
|
onClick: () => {
|
|
7562
7562
|
n(Z.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
@@ -7590,7 +7590,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7590
7590
|
)
|
|
7591
7591
|
] });
|
|
7592
7592
|
}, Oc = x(Gg), Bg = ({ transaction: e }) => {
|
|
7593
|
-
const { updateTransaction: n } =
|
|
7593
|
+
const { updateTransaction: n } = ke(), { common: i, transactions: a } = A(), { onEvent: o } = X(), [r, s] = g.useState(!1), [c, d] = g.useState(""), u = g.useRef(null);
|
|
7594
7594
|
g.useEffect(() => {
|
|
7595
7595
|
r && (d(e.description), u?.current?.focus());
|
|
7596
7596
|
}, [r]);
|
|
@@ -7641,7 +7641,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7641
7641
|
)
|
|
7642
7642
|
] }) });
|
|
7643
7643
|
}, Hg = x(Bg), Pg = ({ transaction: e }) => {
|
|
7644
|
-
const { updateTransaction: n } =
|
|
7644
|
+
const { updateTransaction: n } = ke(), { transactions: i } = A(), { onEvent: a } = X(), o = Ae(), r = async () => {
|
|
7645
7645
|
a(F.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
|
|
7646
7646
|
};
|
|
7647
7647
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
|
@@ -7845,7 +7845,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7845
7845
|
] })
|
|
7846
7846
|
] });
|
|
7847
7847
|
}, Kg = x(Vg), zg = ({ onClose: e, transaction: n }) => {
|
|
7848
|
-
const { addOrUpdateTransactionRule: i, updateTransaction: a } =
|
|
7848
|
+
const { addOrUpdateTransactionRule: i, updateTransaction: a } = ke(), { transactions: o } = A(), { categories: r } = $e(), [s, c] = g.useState(""), d = g.useMemo(
|
|
7849
7849
|
() => r.find((_) => _.guid === s),
|
|
7850
7850
|
[s]
|
|
7851
7851
|
), u = async (_) => {
|
|
@@ -7907,16 +7907,16 @@ const wc = ({ transaction: e }) => {
|
|
|
7907
7907
|
tags: k,
|
|
7908
7908
|
transactions: G,
|
|
7909
7909
|
updateTransaction: L
|
|
7910
|
-
} =
|
|
7910
|
+
} = ke(), {
|
|
7911
7911
|
manualTransaction: W,
|
|
7912
7912
|
isAmountValid: K,
|
|
7913
7913
|
searchValue: se,
|
|
7914
7914
|
setSearchValue: ee,
|
|
7915
|
-
setShowInsights:
|
|
7916
|
-
updateManualTransaction:
|
|
7917
|
-
} = Ot(), { userProfile:
|
|
7915
|
+
setShowInsights: pe,
|
|
7916
|
+
updateManualTransaction: Oe
|
|
7917
|
+
} = Ot(), { userProfile: Le } = Ct(), [he, me] = g.useState(""), [ze, V] = g.useState(""), [Ce, Q] = g.useState(!1), [Ee, fe] = g.useState(!1), [_t, tn] = g.useState(!1);
|
|
7918
7918
|
g.useEffect(() => {
|
|
7919
|
-
const ht = o.filter((ni) => !ni.is_hidden), nr = Ve(
|
|
7919
|
+
const ht = o.filter((ni) => !ni.is_hidden), nr = Ve(Ie()), ir = je(Ie());
|
|
7920
7920
|
y(ht), S(nr, ir), R({
|
|
7921
7921
|
accounts: ht.map((ni) => ni.guid),
|
|
7922
7922
|
custom: (ni) => !ni.accountIsClosed && !ni.accountIsHidden,
|
|
@@ -7929,7 +7929,7 @@ const wc = ({ transaction: e }) => {
|
|
|
7929
7929
|
dateRange: { start: h.start, end: h.end }
|
|
7930
7930
|
}), N(h.start).finally());
|
|
7931
7931
|
}, [_t, h, C]), g.useEffect(() => {
|
|
7932
|
-
|
|
7932
|
+
pe(i);
|
|
7933
7933
|
}, [i]);
|
|
7934
7934
|
const Kn = g.useMemo(
|
|
7935
7935
|
() => o.filter((ht) => ht.is_manual),
|
|
@@ -7944,22 +7944,22 @@ const wc = ({ transaction: e }) => {
|
|
|
7944
7944
|
}, Oa = () => {
|
|
7945
7945
|
Ac(M, k), d(F.TRANSACTIONS_CLICK_EXPORT);
|
|
7946
7946
|
}, La = () => {
|
|
7947
|
-
Kn.length > 0 ? (
|
|
7947
|
+
Kn.length > 0 ? (Oe({
|
|
7948
7948
|
...xc,
|
|
7949
|
-
date: Fe(
|
|
7950
|
-
user_guid:
|
|
7951
|
-
}),
|
|
7949
|
+
date: Fe(Ie()),
|
|
7950
|
+
user_guid: Le?.user_guid || ""
|
|
7951
|
+
}), me(
|
|
7952
7952
|
"addTransaction"
|
|
7953
7953
|
/* AddTransaction */
|
|
7954
7954
|
), d(F.TRANSACTIONS_CLICK_ADD)) : (Q(!0), d(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7955
7955
|
}, yi = async () => {
|
|
7956
|
-
Be && await v(W),
|
|
7956
|
+
Be && await v(W), me("");
|
|
7957
7957
|
}, Ma = () => {
|
|
7958
|
-
Q(!1),
|
|
7958
|
+
Q(!1), fe(!0);
|
|
7959
7959
|
}, ka = async () => {
|
|
7960
|
-
|
|
7960
|
+
fe(!1), await r();
|
|
7961
7961
|
}, Bl = async () => {
|
|
7962
|
-
Y && !Y.has_been_viewed && await L({ ...Y, has_been_viewed: !0 }),
|
|
7962
|
+
Y && !Y.has_been_viewed && await L({ ...Y, has_been_viewed: !0 }), me("");
|
|
7963
7963
|
};
|
|
7964
7964
|
if (!m || !p || !_t)
|
|
7965
7965
|
return /* @__PURE__ */ t(ue, {});
|
|
@@ -8005,13 +8005,13 @@ const wc = ({ transaction: e }) => {
|
|
|
8005
8005
|
{
|
|
8006
8006
|
height: `calc(${n} - ${Fr}px)`,
|
|
8007
8007
|
onCategoryClick: (ht) => {
|
|
8008
|
-
V(ht),
|
|
8008
|
+
V(ht), me(
|
|
8009
8009
|
"category"
|
|
8010
8010
|
/* Category */
|
|
8011
8011
|
);
|
|
8012
8012
|
},
|
|
8013
8013
|
onRowClick: (ht) => {
|
|
8014
|
-
V(ht),
|
|
8014
|
+
V(ht), me(
|
|
8015
8015
|
"transaction"
|
|
8016
8016
|
/* Transaction */
|
|
8017
8017
|
), d(F.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: ht });
|
|
@@ -8032,7 +8032,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8032
8032
|
{
|
|
8033
8033
|
height: `calc(${n} - ${Fr}px)`,
|
|
8034
8034
|
onClick: (ht) => {
|
|
8035
|
-
V(ht),
|
|
8035
|
+
V(ht), me(
|
|
8036
8036
|
"transaction"
|
|
8037
8037
|
/* Transaction */
|
|
8038
8038
|
);
|
|
@@ -8047,17 +8047,17 @@ const wc = ({ transaction: e }) => {
|
|
|
8047
8047
|
de,
|
|
8048
8048
|
{
|
|
8049
8049
|
ariaLabelClose: u.close_aria,
|
|
8050
|
-
isOpen:
|
|
8050
|
+
isOpen: he === "transaction" && !!Y,
|
|
8051
8051
|
onClose: Bl,
|
|
8052
8052
|
title: _.details_title,
|
|
8053
8053
|
children: Y && /* @__PURE__ */ t(fi, { transaction: Y })
|
|
8054
8054
|
}
|
|
8055
8055
|
),
|
|
8056
|
-
Y &&
|
|
8056
|
+
Y && he === "category" && /* @__PURE__ */ t(
|
|
8057
8057
|
Yg,
|
|
8058
8058
|
{
|
|
8059
8059
|
onClose: () => {
|
|
8060
|
-
c(""),
|
|
8060
|
+
c(""), me(""), V("");
|
|
8061
8061
|
},
|
|
8062
8062
|
transaction: Y
|
|
8063
8063
|
}
|
|
@@ -8066,9 +8066,9 @@ const wc = ({ transaction: e }) => {
|
|
|
8066
8066
|
de,
|
|
8067
8067
|
{
|
|
8068
8068
|
ariaLabelClose: u.close_aria,
|
|
8069
|
-
isOpen:
|
|
8069
|
+
isOpen: he === "addTransaction",
|
|
8070
8070
|
isPrimaryDisabled: !Be,
|
|
8071
|
-
onClose: () =>
|
|
8071
|
+
onClose: () => me(""),
|
|
8072
8072
|
onPrimaryAction: yi,
|
|
8073
8073
|
title: _.add_transaction_title,
|
|
8074
8074
|
children: /* @__PURE__ */ t(Kg, {})
|
|
@@ -8078,7 +8078,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8078
8078
|
Ug,
|
|
8079
8079
|
{
|
|
8080
8080
|
copy: { title: _.add_manual_account },
|
|
8081
|
-
isOpen:
|
|
8081
|
+
isOpen: Ce,
|
|
8082
8082
|
onClose: () => {
|
|
8083
8083
|
Q(!1);
|
|
8084
8084
|
},
|
|
@@ -8096,7 +8096,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8096
8096
|
]
|
|
8097
8097
|
}
|
|
8098
8098
|
);
|
|
8099
|
-
},
|
|
8099
|
+
}, PT = x(jg), Lc = ({
|
|
8100
8100
|
frequency: e,
|
|
8101
8101
|
firstDay: n,
|
|
8102
8102
|
secondDay: i,
|
|
@@ -8129,7 +8129,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8129
8129
|
label: Ni(y + 1)
|
|
8130
8130
|
}));
|
|
8131
8131
|
u[30].label += ` (${s.last_day_of_month})`;
|
|
8132
|
-
const _ = u.slice(0, 15), h = u.slice(14), m = e === Se.EveryWeek || e === Se.EveryOtherWeek, p = e === Se.TwiceAMonth || e === Se.EveryMonth || e === Se.EveryOtherMonth || e === Se.EveryQuarter || e === Se.EveryOtherQuarter, C = qs(
|
|
8132
|
+
const _ = u.slice(0, 15), h = u.slice(14), m = e === Se.EveryWeek || e === Se.EveryOtherWeek, p = e === Se.TwiceAMonth || e === Se.EveryMonth || e === Se.EveryOtherMonth || e === Se.EveryQuarter || e === Se.EveryOtherQuarter, C = qs(Ie(), n), S = (y) => {
|
|
8133
8133
|
y && o(t_(y));
|
|
8134
8134
|
};
|
|
8135
8135
|
return /* @__PURE__ */ l(b, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -8224,11 +8224,11 @@ const wc = ({ transaction: e }) => {
|
|
|
8224
8224
|
] });
|
|
8225
8225
|
}), Mc = x(
|
|
8226
8226
|
({ onDeleted: e, recurringTransaction: n }) => {
|
|
8227
|
-
const { recurring: i } = A(), { selectedAccountGuids: a } = _e(), { onEvent: o } = X(), { deleteRepeatingTransaction: r } = ot(), { setFilter: s, transactions: c } =
|
|
8227
|
+
const { recurring: i } = A(), { selectedAccountGuids: a } = _e(), { onEvent: o } = X(), { deleteRepeatingTransaction: r } = ot(), { setFilter: s, transactions: c } = ke(), { amount: d, description: u, merchant_guid: _ } = n, [h, m] = g.useState(!1), [p, C] = g.useState("");
|
|
8228
8228
|
g.useEffect(() => {
|
|
8229
8229
|
s({
|
|
8230
8230
|
accounts: a,
|
|
8231
|
-
dateRange: { start: Nt(
|
|
8231
|
+
dateRange: { start: Nt(Ie(), 90), end: je(Ie()) },
|
|
8232
8232
|
custom: (v) => v.repeating_transaction_guid === n.guid
|
|
8233
8233
|
});
|
|
8234
8234
|
}, [n]);
|
|
@@ -8333,7 +8333,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8333
8333
|
[n]
|
|
8334
8334
|
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === sn.Income, d = ra(i, n, !0);
|
|
8335
8335
|
return /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
|
8336
|
-
/* @__PURE__ */ l(
|
|
8336
|
+
/* @__PURE__ */ l(ge, { onClick: () => {
|
|
8337
8337
|
e(n), o(!0);
|
|
8338
8338
|
}, children: [
|
|
8339
8339
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
@@ -8476,7 +8476,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8476
8476
|
label: n,
|
|
8477
8477
|
onAddRecurringTransaction: i = () => null
|
|
8478
8478
|
}) => {
|
|
8479
|
-
const { recurring: a } = A(), { filter: o, setFilter: r, transactions: s } =
|
|
8479
|
+
const { recurring: a } = A(), { filter: o, setFilter: r, transactions: s } = ke(), { addRepeatingTransaction: c } = ot(), { user: d } = Ct(), [u, _] = g.useState(!1), [h, m] = g.useState(""), [p, C] = g.useState(Se.EveryMonth), [S, y] = g.useState(1), [E, I] = g.useState(15), v = g.useMemo(
|
|
8480
8480
|
() => s.find((M) => M.guid === h),
|
|
8481
8481
|
[h, s]
|
|
8482
8482
|
), w = () => {
|
|
@@ -8507,7 +8507,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8507
8507
|
m(""), _(!1);
|
|
8508
8508
|
};
|
|
8509
8509
|
return /* @__PURE__ */ l(O, { children: [
|
|
8510
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
8510
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(ge, { onClick: w, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
8511
8511
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
8512
8512
|
/* @__PURE__ */ t(U, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.main" } }),
|
|
8513
8513
|
/* @__PURE__ */ t(f, { bold: !0, sx: { color: "primary.main" }, variant: "Body", children: n })
|
|
@@ -8824,7 +8824,7 @@ const wc = ({ transaction: e }) => {
|
|
|
8824
8824
|
let p = o.paid?.toLowerCase();
|
|
8825
8825
|
return h ? p = o.missed?.toLowerCase() : m && (p = a ? ra(o, d || {}, !0) : ra(o, d || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
8826
8826
|
/* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
|
8827
|
-
/* @__PURE__ */ l(
|
|
8827
|
+
/* @__PURE__ */ l(ge, { onClick: () => {
|
|
8828
8828
|
c(!0), i(e);
|
|
8829
8829
|
}, children: [
|
|
8830
8830
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
@@ -9117,13 +9117,13 @@ const wc = ({ transaction: e }) => {
|
|
|
9117
9117
|
)
|
|
9118
9118
|
] }) })
|
|
9119
9119
|
] });
|
|
9120
|
-
}),
|
|
9121
|
-
const { accounts: i } = ye(), { recurring: a } = A(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = _e(), { isDataLoaded: d, loadRepeatingTransactions: u, setDateRange: _ } = ot(), { setFilter: h } =
|
|
9120
|
+
}), FT = x(({ onBackClick: e, sx: n = {} }) => {
|
|
9121
|
+
const { accounts: i } = ye(), { recurring: a } = A(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = _e(), { isDataLoaded: d, loadRepeatingTransactions: u, setDateRange: _ } = ot(), { setFilter: h } = ke(), { onEvent: m } = X(), [p, C] = g.useState(!1);
|
|
9122
9122
|
return g.useEffect(() => {
|
|
9123
9123
|
c(i);
|
|
9124
9124
|
}, [i]), g.useEffect(() => {
|
|
9125
9125
|
r && (h({
|
|
9126
|
-
dateRange: { start: Nt(
|
|
9126
|
+
dateRange: { start: Nt(Ie(), 90), end: hn() },
|
|
9127
9127
|
accounts: s
|
|
9128
9128
|
}), _({ start: Ve(/* @__PURE__ */ new Date()), end: je(/* @__PURE__ */ new Date()) }), u().finally());
|
|
9129
9129
|
}, [r]), o ? /* @__PURE__ */ l(
|
|
@@ -9182,14 +9182,14 @@ const wc = ({ transaction: e }) => {
|
|
|
9182
9182
|
}
|
|
9183
9183
|
)
|
|
9184
9184
|
] });
|
|
9185
|
-
}),
|
|
9185
|
+
}), WT = x(
|
|
9186
9186
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
|
9187
|
-
const { accounts: i } = ye(), { recurring: a } = A(), { setFilter: o } =
|
|
9187
|
+
const { accounts: i } = ye(), { recurring: a } = A(), { setFilter: o } = ke(), { isDataLoaded: r, loadRepeatingTransactions: s } = ot(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: u, selectedAccountGuids: _ } = _e();
|
|
9188
9188
|
return g.useEffect(() => {
|
|
9189
9189
|
d && u(i);
|
|
9190
9190
|
}, [d]), g.useEffect(() => {
|
|
9191
9191
|
_.length > 0 && (o({
|
|
9192
|
-
dateRange: { start: Nt(
|
|
9192
|
+
dateRange: { start: Nt(Ie(), 90), end: hn() },
|
|
9193
9193
|
accounts: _
|
|
9194
9194
|
}), s().finally());
|
|
9195
9195
|
}, [_]), !c || !d ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
|
|
@@ -9283,7 +9283,7 @@ const wc = ({ transaction: e }) => {
|
|
|
9283
9283
|
/* @__PURE__ */ t(ne, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
|
|
9284
9284
|
] })
|
|
9285
9285
|
] });
|
|
9286
|
-
}), $
|
|
9286
|
+
}), $T = x(
|
|
9287
9287
|
({ onCTAClick: e }) => {
|
|
9288
9288
|
const [n, i] = g.useState(!1), { onEvent: a } = X(), o = Ae(), { accounts: r } = ye(), [s, { width: c }] = pi(), { isCopyLoaded: d, isInitialized: u, selectedAccountGuids: _, setSelectedAccounts: h } = _e(), {
|
|
9289
9289
|
loadRepeatingTransactions: m,
|
|
@@ -9291,73 +9291,75 @@ const wc = ({ transaction: e }) => {
|
|
|
9291
9291
|
expenseTotal: C,
|
|
9292
9292
|
missedExpenseTotal: S,
|
|
9293
9293
|
paidExpenseTotal: y,
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9294
|
+
repeatingTransactions: E,
|
|
9295
|
+
setDateRange: I,
|
|
9296
|
+
upcomingExpenseTotal: v,
|
|
9297
|
+
isDataLoaded: w
|
|
9298
|
+
} = ot(), { setFilter: N } = ke(), { recurring: R, budgets: M } = A();
|
|
9297
9299
|
g.useEffect(() => {
|
|
9298
9300
|
h(r);
|
|
9299
9301
|
}, [r]), g.useEffect(() => {
|
|
9300
|
-
u && (
|
|
9301
|
-
dateRange: { start: Nt(
|
|
9302
|
+
u && (N({
|
|
9303
|
+
dateRange: { start: Nt(Ie(), 90), end: hn() },
|
|
9302
9304
|
accounts: _
|
|
9303
|
-
}),
|
|
9305
|
+
}), I({ start: Ve(/* @__PURE__ */ new Date()), end: je(/* @__PURE__ */ new Date()) }), m().finally(), i(!0));
|
|
9304
9306
|
}, [u]), g.useEffect(() => {
|
|
9305
9307
|
n && a(F.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
9306
9308
|
state: p.length > 0 ? "default" : "zeroState"
|
|
9307
9309
|
});
|
|
9308
9310
|
}, [n]);
|
|
9309
|
-
const
|
|
9310
|
-
const
|
|
9311
|
+
const k = c <= 288, G = c >= 450, L = g.useMemo(() => {
|
|
9312
|
+
const he = [
|
|
9311
9313
|
{ color: o.palette.success.main, percentage: `${y / C}` }
|
|
9312
9314
|
];
|
|
9313
|
-
return S &&
|
|
9315
|
+
return S && he.push({
|
|
9314
9316
|
color: o.palette.error.main,
|
|
9315
9317
|
percentage: `${S / C}`
|
|
9316
|
-
}),
|
|
9318
|
+
}), he;
|
|
9317
9319
|
}, [
|
|
9318
9320
|
y,
|
|
9319
9321
|
C,
|
|
9320
9322
|
S,
|
|
9321
9323
|
o.palette.success.main,
|
|
9322
9324
|
o.palette.error.main
|
|
9323
|
-
]),
|
|
9325
|
+
]), W = g.useMemo(() => H(C, C === 0 ? "0,0" : "0,0.00"), [C]), K = () => {
|
|
9324
9326
|
a(
|
|
9325
9327
|
p.length > 0 ? F.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : F.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
9326
9328
|
), e();
|
|
9327
9329
|
};
|
|
9328
|
-
if (!d || !n) return /* @__PURE__ */ t(ue, { height: 100 });
|
|
9329
|
-
const
|
|
9330
|
+
if (!d || !n || !w) return /* @__PURE__ */ t(ue, { height: 100 });
|
|
9331
|
+
const se = 32, ee = p.length > 0, pe = () => ee ? k ? /* @__PURE__ */ t(
|
|
9330
9332
|
om,
|
|
9331
9333
|
{
|
|
9332
|
-
logoSize:
|
|
9334
|
+
logoSize: se,
|
|
9333
9335
|
maxLogos: 3,
|
|
9334
9336
|
upcomingRecurrences: p.slice(0, 3)
|
|
9335
9337
|
}
|
|
9336
|
-
) : /* @__PURE__ */ t(am, { maxLogos: 3, upcomingRecurrences: p.slice(0, 3) }) : /* @__PURE__ */ t(b, { sx: { width:
|
|
9338
|
+
) : /* @__PURE__ */ t(am, { maxLogos: 3, upcomingRecurrences: p.slice(0, 3) }) : /* @__PURE__ */ t(b, { sx: { width: k ? 64 : 104 } }), Oe = [
|
|
9337
9339
|
{
|
|
9338
9340
|
amount: y,
|
|
9339
9341
|
bgColor: "success.main",
|
|
9340
|
-
label:
|
|
9342
|
+
label: R.paid
|
|
9341
9343
|
},
|
|
9342
9344
|
{
|
|
9343
9345
|
amount: S,
|
|
9344
9346
|
bgColor: "error.main",
|
|
9345
|
-
label:
|
|
9347
|
+
label: R.missed
|
|
9346
9348
|
},
|
|
9347
9349
|
{
|
|
9348
|
-
amount:
|
|
9350
|
+
amount: v,
|
|
9349
9351
|
bgColor: "border.light",
|
|
9350
|
-
label:
|
|
9352
|
+
label: R.upcoming
|
|
9351
9353
|
}
|
|
9352
|
-
],
|
|
9354
|
+
], Le = !E?.length;
|
|
9353
9355
|
return /* @__PURE__ */ t(
|
|
9354
9356
|
Ea,
|
|
9355
9357
|
{
|
|
9356
9358
|
className: "mx-recurring-transaction-microwidget",
|
|
9357
|
-
ctaLabel:
|
|
9358
|
-
onCTAClick:
|
|
9359
|
-
title:
|
|
9360
|
-
children:
|
|
9359
|
+
ctaLabel: Le ? M.get_started_cta : R.primary_cta,
|
|
9360
|
+
onCTAClick: K,
|
|
9361
|
+
title: R.recurring_expenses,
|
|
9362
|
+
children: Le ? /* @__PURE__ */ t(sm, {}) : /* @__PURE__ */ l(q, { children: [
|
|
9361
9363
|
/* @__PURE__ */ l(
|
|
9362
9364
|
b,
|
|
9363
9365
|
{
|
|
@@ -9371,7 +9373,7 @@ const wc = ({ transaction: e }) => {
|
|
|
9371
9373
|
b,
|
|
9372
9374
|
{
|
|
9373
9375
|
sx: [
|
|
9374
|
-
|
|
9376
|
+
W.length >= 10 && k ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
9375
9377
|
{
|
|
9376
9378
|
alignItems: "baseline",
|
|
9377
9379
|
overflow: "hidden",
|
|
@@ -9384,8 +9386,8 @@ const wc = ({ transaction: e }) => {
|
|
|
9384
9386
|
f,
|
|
9385
9387
|
{
|
|
9386
9388
|
sx: { width: "100%" },
|
|
9387
|
-
variant:
|
|
9388
|
-
children:
|
|
9389
|
+
variant: W.length >= 10 && k ? "H3" : "H2",
|
|
9390
|
+
children: W
|
|
9389
9391
|
}
|
|
9390
9392
|
),
|
|
9391
9393
|
/* @__PURE__ */ t(
|
|
@@ -9395,18 +9397,18 @@ const wc = ({ transaction: e }) => {
|
|
|
9395
9397
|
pr: 12
|
|
9396
9398
|
},
|
|
9397
9399
|
variant: "XSmall",
|
|
9398
|
-
children:
|
|
9400
|
+
children: R.expected
|
|
9399
9401
|
}
|
|
9400
9402
|
)
|
|
9401
9403
|
]
|
|
9402
9404
|
}
|
|
9403
9405
|
),
|
|
9404
|
-
|
|
9406
|
+
pe()
|
|
9405
9407
|
]
|
|
9406
9408
|
}
|
|
9407
9409
|
),
|
|
9408
9410
|
/* @__PURE__ */ l(b, { sx: { pt: 12 }, children: [
|
|
9409
|
-
/* @__PURE__ */ t(ci, { data:
|
|
9411
|
+
/* @__PURE__ */ t(ci, { data: L }),
|
|
9410
9412
|
/* @__PURE__ */ t(
|
|
9411
9413
|
b,
|
|
9412
9414
|
{
|
|
@@ -9416,16 +9418,16 @@ const wc = ({ transaction: e }) => {
|
|
|
9416
9418
|
gap: 16,
|
|
9417
9419
|
mt: 4
|
|
9418
9420
|
},
|
|
9419
|
-
children:
|
|
9421
|
+
children: Oe.map((he, me) => /* @__PURE__ */ t(
|
|
9420
9422
|
rm,
|
|
9421
9423
|
{
|
|
9422
|
-
amount:
|
|
9423
|
-
bgcolor:
|
|
9424
|
-
isLargeScreen:
|
|
9425
|
-
isSmallScreen:
|
|
9426
|
-
label:
|
|
9424
|
+
amount: he.amount,
|
|
9425
|
+
bgcolor: he.bgColor,
|
|
9426
|
+
isLargeScreen: G,
|
|
9427
|
+
isSmallScreen: k,
|
|
9428
|
+
label: he.label
|
|
9427
9429
|
},
|
|
9428
|
-
`recurrence-legend-${
|
|
9430
|
+
`recurrence-legend-${me}`
|
|
9429
9431
|
))
|
|
9430
9432
|
}
|
|
9431
9433
|
)
|
|
@@ -9449,8 +9451,8 @@ class Vr {
|
|
|
9449
9451
|
deleteRepeatingTransaction = async (n) => this.fetchInstance.delete(`${B.REPEATING_TRANSACTIONS}/${n}`).then((i) => i);
|
|
9450
9452
|
}
|
|
9451
9453
|
const Kr = (e) => lo(e.expectedDate, {
|
|
9452
|
-
start: Ve(
|
|
9453
|
-
end: je(
|
|
9454
|
+
start: Ve(Ie()),
|
|
9455
|
+
end: je(Ie())
|
|
9454
9456
|
}), zn = (e, n) => e + n.amount;
|
|
9455
9457
|
class cm {
|
|
9456
9458
|
globalStore;
|
|
@@ -9458,7 +9460,7 @@ class cm {
|
|
|
9458
9460
|
transactions = [];
|
|
9459
9461
|
repeatingTransactions = [];
|
|
9460
9462
|
selectedDay;
|
|
9461
|
-
dateRange = { start: Ve(
|
|
9463
|
+
dateRange = { start: Ve(Ie()), end: je(Ie()) };
|
|
9462
9464
|
isDataLoaded = !1;
|
|
9463
9465
|
constructor(n) {
|
|
9464
9466
|
this.globalStore = n, this.api = new Vr(n.endpoint, n.sessionToken), Pe(this);
|
|
@@ -9484,7 +9486,7 @@ class cm {
|
|
|
9484
9486
|
*/
|
|
9485
9487
|
get upcomingRecurrences() {
|
|
9486
9488
|
return this.recurrences.filter(
|
|
9487
|
-
(n) => rn(n.expectedDate, Nt(
|
|
9489
|
+
(n) => rn(n.expectedDate, Nt(Ie(), 3)) && et(n.expectedDate, this.dateRange.end) && n.status === Qe.Upcoming
|
|
9488
9490
|
);
|
|
9489
9491
|
}
|
|
9490
9492
|
/**
|
|
@@ -9520,7 +9522,7 @@ class cm {
|
|
|
9520
9522
|
);
|
|
9521
9523
|
}
|
|
9522
9524
|
get nextIncomeRecurrence() {
|
|
9523
|
-
return this.upcomingIncome.find((n) => rn(n.expectedDate,
|
|
9525
|
+
return this.upcomingIncome.find((n) => rn(n.expectedDate, Ie()));
|
|
9524
9526
|
}
|
|
9525
9527
|
/**
|
|
9526
9528
|
* Returns the expense recurrences for the current month.
|
|
@@ -9868,7 +9870,7 @@ const lm = {
|
|
|
9868
9870
|
{
|
|
9869
9871
|
sx: { backgroundColor: "background.paper", color: e.is_closed ? "grey.700" : "" },
|
|
9870
9872
|
...i,
|
|
9871
|
-
children: n ? /* @__PURE__ */ t(
|
|
9873
|
+
children: n ? /* @__PURE__ */ t(ge, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
|
9872
9874
|
}
|
|
9873
9875
|
);
|
|
9874
9876
|
}, Oi = x(pm), Cm = ({ remaining: e }) => /* @__PURE__ */ t(
|
|
@@ -10064,9 +10066,9 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10064
10066
|
}
|
|
10065
10067
|
], d = g.useMemo(() => s.map((u) => {
|
|
10066
10068
|
const _ = a.filter(
|
|
10067
|
-
la(u, { start:
|
|
10069
|
+
la(u, { start: Ie(), end: Fn(Ie(), 30) })
|
|
10068
10070
|
).reduce((p, C) => p + C.amount, 0), h = o.filter(
|
|
10069
|
-
la(u, { start:
|
|
10071
|
+
la(u, { start: Ie(), end: Fn(Ie(), 30) })
|
|
10070
10072
|
).reduce((p, C) => p + C.amount, 0), m = (u.balance || 0) + h - _;
|
|
10071
10073
|
return {
|
|
10072
10074
|
account: u,
|
|
@@ -10486,37 +10488,37 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10486
10488
|
transform: rotate(360deg);
|
|
10487
10489
|
}
|
|
10488
10490
|
`, Lm = () => {
|
|
10489
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = vo(), { isDirty: r } = Ci(), { isMobile: s } = be(), { isCopyLoaded: c, setDisplayedDate: d } = _e(), { filter: u, setFilter: _, transactions: h } =
|
|
10490
|
-
() => h.find((
|
|
10491
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = vo(), { isDirty: r } = Ci(), { isMobile: s } = be(), { isCopyLoaded: c, setDisplayedDate: d } = _e(), { filter: u, setFilter: _, transactions: h } = ke(), m = Ae(), [p, C] = At(!0), [S, y] = g.useState(Se.EveryMonth), [E, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = At(!1), [M, k] = At(1), [G, L] = At([]), [W, K] = At(""), se = g.useMemo(
|
|
10492
|
+
() => h.find((he) => he.guid === W),
|
|
10491
10493
|
[W, h]
|
|
10492
10494
|
), ee = !!n.filter(
|
|
10493
|
-
(
|
|
10494
|
-
).length,
|
|
10495
|
+
(he) => he.repeating_transaction_type === sn.Income
|
|
10496
|
+
).length, pe = async () => {
|
|
10495
10497
|
k(2), d(
|
|
10496
10498
|
// Beginning of the month, 90 days before today
|
|
10497
|
-
Ve(Nt(
|
|
10498
|
-
|
|
10499
|
+
Ve(Nt(Ie(), 90)),
|
|
10500
|
+
Ie()
|
|
10499
10501
|
), _({ ...u, custom: Ri }), k(3);
|
|
10500
|
-
},
|
|
10502
|
+
}, Oe = async () => {
|
|
10501
10503
|
if (!(G.length < 1)) {
|
|
10502
10504
|
R(!0);
|
|
10503
|
-
for (let
|
|
10504
|
-
const
|
|
10505
|
-
account_guid:
|
|
10506
|
-
amount:
|
|
10507
|
-
merchant_guid:
|
|
10508
|
-
description:
|
|
10505
|
+
for (let he = 0; he < G.length; he++) {
|
|
10506
|
+
const me = G[he], ze = to(S, Ue(me.date)), V = {
|
|
10507
|
+
account_guid: me.account_guid,
|
|
10508
|
+
amount: me.amount,
|
|
10509
|
+
merchant_guid: me.merchant_guid,
|
|
10510
|
+
description: me.feed_description || me.description,
|
|
10509
10511
|
predicted_occurs_on: pa(ze, { representation: "date" }),
|
|
10510
10512
|
recurrence_day: ze.getDay(),
|
|
10511
10513
|
recurrence_type: S,
|
|
10512
10514
|
repeating_transaction_type: sn.Income,
|
|
10513
|
-
transaction_type:
|
|
10515
|
+
transaction_type: me.transaction_type
|
|
10514
10516
|
};
|
|
10515
|
-
await e(V,
|
|
10517
|
+
await e(V, me);
|
|
10516
10518
|
}
|
|
10517
10519
|
await o();
|
|
10518
10520
|
}
|
|
10519
|
-
},
|
|
10521
|
+
}, Le = !se && p || !se && G.length < 1;
|
|
10520
10522
|
return c ? /* @__PURE__ */ l(
|
|
10521
10523
|
O,
|
|
10522
10524
|
{
|
|
@@ -10537,7 +10539,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10537
10539
|
sx: {
|
|
10538
10540
|
...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
10539
10541
|
},
|
|
10540
|
-
children: /* @__PURE__ */ t(Dm, { handleNextStep:
|
|
10542
|
+
children: /* @__PURE__ */ t(Dm, { handleNextStep: pe })
|
|
10541
10543
|
}
|
|
10542
10544
|
),
|
|
10543
10545
|
M === 2 && /* @__PURE__ */ t(
|
|
@@ -10559,13 +10561,13 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10559
10561
|
/* @__PURE__ */ t(qt, { pb: 12, children: i.add_income_title }),
|
|
10560
10562
|
/* @__PURE__ */ t(ne, { mb: 24, children: i.add_income_description }),
|
|
10561
10563
|
G.length > 0 && !se && /* @__PURE__ */ l(q, { children: [
|
|
10562
|
-
/* @__PURE__ */ t(oe, { children: G.map((
|
|
10564
|
+
/* @__PURE__ */ t(oe, { children: G.map((he, me) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10563
10565
|
/* @__PURE__ */ t(Aa, { bgcolor: "background.paper", children: ba(
|
|
10564
|
-
Fe(
|
|
10566
|
+
Fe(he.nextDate || he.date)
|
|
10565
10567
|
) }),
|
|
10566
|
-
/* @__PURE__ */ t(Mo, { transaction:
|
|
10567
|
-
|
|
10568
|
-
] },
|
|
10568
|
+
/* @__PURE__ */ t(Mo, { transaction: he }),
|
|
10569
|
+
me !== G.length - 1 && /* @__PURE__ */ t(P, {})
|
|
10570
|
+
] }, he.guid)) }),
|
|
10569
10571
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", children: [
|
|
10570
10572
|
/* @__PURE__ */ t(P, { sx: { flexGrow: 1 } }),
|
|
10571
10573
|
/* @__PURE__ */ t(
|
|
@@ -10578,16 +10580,16 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10578
10580
|
)
|
|
10579
10581
|
] })
|
|
10580
10582
|
] }),
|
|
10581
|
-
|
|
10583
|
+
Le && /* @__PURE__ */ t(
|
|
10582
10584
|
Gc,
|
|
10583
10585
|
{
|
|
10584
10586
|
bgcolor: "background.paper",
|
|
10585
|
-
onSearch: (
|
|
10587
|
+
onSearch: (he) => _({
|
|
10586
10588
|
...u,
|
|
10587
|
-
custom: (
|
|
10589
|
+
custom: (me) => he ? Hc(me, he) : Ri(me)
|
|
10588
10590
|
}),
|
|
10589
|
-
onSelected: (
|
|
10590
|
-
K(
|
|
10591
|
+
onSelected: (he) => {
|
|
10592
|
+
K(he), C(!1);
|
|
10591
10593
|
}
|
|
10592
10594
|
}
|
|
10593
10595
|
),
|
|
@@ -10612,12 +10614,12 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10612
10614
|
{
|
|
10613
10615
|
"aria-disabled": !se,
|
|
10614
10616
|
onClick: () => {
|
|
10615
|
-
const
|
|
10616
|
-
|
|
10617
|
+
const he = [...G];
|
|
10618
|
+
he.push({
|
|
10617
10619
|
...se,
|
|
10618
10620
|
nextDate: to(S, Ue(se.date)),
|
|
10619
10621
|
frequency: S
|
|
10620
|
-
}), L(
|
|
10622
|
+
}), L(he), K("");
|
|
10621
10623
|
},
|
|
10622
10624
|
variant: "contained",
|
|
10623
10625
|
children: a.confirm_button
|
|
@@ -10627,7 +10629,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10627
10629
|
te,
|
|
10628
10630
|
{
|
|
10629
10631
|
onClick: () => {
|
|
10630
|
-
K(""), C(!0),
|
|
10632
|
+
K(""), C(!0), pe().finally();
|
|
10631
10633
|
},
|
|
10632
10634
|
variant: "outlined",
|
|
10633
10635
|
children: a.cancel_button
|
|
@@ -10640,7 +10642,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10640
10642
|
te,
|
|
10641
10643
|
{
|
|
10642
10644
|
"aria-disabled": G.length < 1 || N,
|
|
10643
|
-
onClick:
|
|
10645
|
+
onClick: Oe,
|
|
10644
10646
|
startIcon: N ? /* @__PURE__ */ t(
|
|
10645
10647
|
U,
|
|
10646
10648
|
{
|
|
@@ -10669,7 +10671,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10669
10671
|
setSelectedAccounts: o,
|
|
10670
10672
|
shouldDisableNextDate: r,
|
|
10671
10673
|
shouldDisablePrevDate: s
|
|
10672
|
-
} = _e(), { onEvent: c } = X(), { visibleCashAccounts: d } = ye(), { setFilter: u } =
|
|
10674
|
+
} = _e(), { onEvent: c } = X(), { visibleCashAccounts: d } = ye(), { setFilter: u } = ke(), { userProfile: _ } = Ct(), { dateRange: h, setSelectedCashAccounts: m } = Ci(), { loadRepeatingTransactions: p, setDateRange: C } = ot(), { cashflow: S } = A(), { isCopyLoaded: y, isInitialized: E } = _e(), [I, v] = g.useState(!1);
|
|
10673
10675
|
return g.useEffect(() => {
|
|
10674
10676
|
E && (C(h), p().finally());
|
|
10675
10677
|
}, [E]), g.useEffect(() => {
|
|
@@ -10679,7 +10681,7 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10679
10681
|
(R) => a.includes(R.guid) && w.includes(R.guid)
|
|
10680
10682
|
);
|
|
10681
10683
|
m(N), u({
|
|
10682
|
-
dateRange: { start: Nt(
|
|
10684
|
+
dateRange: { start: Nt(Ie(), 90), end: hn() },
|
|
10683
10685
|
accounts: N.map((R) => R.guid)
|
|
10684
10686
|
});
|
|
10685
10687
|
}, [d, i]), !y || !E ? /* @__PURE__ */ t(ue, {}) : _?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
|
|
@@ -10733,8 +10735,8 @@ const fm = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10733
10735
|
children: /* @__PURE__ */ t(Mm, {})
|
|
10734
10736
|
}
|
|
10735
10737
|
);
|
|
10736
|
-
},
|
|
10737
|
-
class
|
|
10738
|
+
}, UT = x(km);
|
|
10739
|
+
class VT {
|
|
10738
10740
|
fetchInstance;
|
|
10739
10741
|
constructor(n, i) {
|
|
10740
10742
|
this.fetchInstance = new lt(n, i);
|
|
@@ -10755,7 +10757,7 @@ class V2 {
|
|
|
10755
10757
|
}
|
|
10756
10758
|
let Gm = class {
|
|
10757
10759
|
// Cashflow is hard-coded to display 30 days starting from today
|
|
10758
|
-
dateRange = { start:
|
|
10760
|
+
dateRange = { start: Ie(), end: Fn(Ie(), 30) };
|
|
10759
10761
|
isDirty = !1;
|
|
10760
10762
|
nextIncome = void 0;
|
|
10761
10763
|
upcomingExpenses = [];
|
|
@@ -10765,7 +10767,7 @@ let Gm = class {
|
|
|
10765
10767
|
}
|
|
10766
10768
|
// Returns the number of days until the next income activity or 0 if there is no income activity
|
|
10767
10769
|
get daysUntilNextIncome() {
|
|
10768
|
-
return this.nextIncome ? Math.abs(Pd(
|
|
10770
|
+
return this.nextIncome ? Math.abs(Pd(Ie(), this.nextIncome.expectedDate)) : 0;
|
|
10769
10771
|
}
|
|
10770
10772
|
// Returns the expenses (Activities) until the next income activity or the end of the month
|
|
10771
10773
|
// if there is no income activity
|
|
@@ -12352,8 +12354,8 @@ const Vt = (e) => /* @__PURE__ */ t(f, { fontWeight: 600, variant: "Small", chil
|
|
|
12352
12354
|
);
|
|
12353
12355
|
}), Op = ({ onBackClick: e, sx: n }) => {
|
|
12354
12356
|
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, u] = g.useState(""), { isDesktop: _, isMobile: h } = be(), { debts: m } = A(), { onEvent: p } = X(), { isCopyLoaded: C, isInitialized: S, setSelectedAccounts: y } = _e(), { setSelectedAccount: E } = $t(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = bn(), { visibleDebtAccounts: w } = ye(), { goalsLoaded: N, loadGoals: R, monthlyCashFlowProfile: M } = dt(), { debts: k } = ya(), G = g.useMemo(() => {
|
|
12355
|
-
const
|
|
12356
|
-
return Np(k, I,
|
|
12357
|
+
const pe = M?.extra_payment ?? 0;
|
|
12358
|
+
return Np(k, I, pe);
|
|
12357
12359
|
}, [k, I, M]);
|
|
12358
12360
|
g.useEffect(() => {
|
|
12359
12361
|
y(w), p(F.DEBTS_VIEW);
|
|
@@ -12362,9 +12364,9 @@ const Vt = (e) => /* @__PURE__ */ t(f, { fontWeight: 600, variant: "Small", chil
|
|
|
12362
12364
|
}, [w]), g.useEffect(() => {
|
|
12363
12365
|
S && R().finally();
|
|
12364
12366
|
}, [S]);
|
|
12365
|
-
const L = (
|
|
12366
|
-
const
|
|
12367
|
-
|
|
12367
|
+
const L = (pe) => u(pe), W = () => {
|
|
12368
|
+
const pe = w.find((Le) => Le.guid === d), Oe = G.find((Le) => Le.guid === d);
|
|
12369
|
+
pe && E(pe), Oe && v(Oe), a(!0);
|
|
12368
12370
|
}, K = () => p(F.DEBTS_CLICK_FILTER), se = () => {
|
|
12369
12371
|
c(!0), p(F.DEBTS_CLICK_SNOWBALL_CTA);
|
|
12370
12372
|
}, ee = () => {
|
|
@@ -12437,7 +12439,7 @@ const Vt = (e) => /* @__PURE__ */ t(f, { fontWeight: 600, variant: "Small", chil
|
|
|
12437
12439
|
]
|
|
12438
12440
|
}
|
|
12439
12441
|
);
|
|
12440
|
-
},
|
|
12442
|
+
}, zT = x(Op), Lp = {
|
|
12441
12443
|
unnamed_label: "Unnamed Debt"
|
|
12442
12444
|
};
|
|
12443
12445
|
function Mp(e, n) {
|
|
@@ -12500,7 +12502,7 @@ const Bp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12500
12502
|
}
|
|
12501
12503
|
},
|
|
12502
12504
|
children: e.map((i, a) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
12503
|
-
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(Xe, {}), children: /* @__PURE__ */ l(
|
|
12505
|
+
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(Xe, {}), children: /* @__PURE__ */ l(ge, { onClick: () => n(i.key), children: [
|
|
12504
12506
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
12505
12507
|
Pt,
|
|
12506
12508
|
{
|
|
@@ -12703,15 +12705,15 @@ const Bp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12703
12705
|
legend: { hidden: !0 }
|
|
12704
12706
|
},
|
|
12705
12707
|
slots: {
|
|
12706
|
-
pieArc: (
|
|
12708
|
+
pieArc: (pe) => /* @__PURE__ */ t(
|
|
12707
12709
|
Kp,
|
|
12708
12710
|
{
|
|
12709
|
-
arcColor:
|
|
12711
|
+
arcColor: pe.color,
|
|
12710
12712
|
arcRadius: e,
|
|
12711
12713
|
arcStartAngle: p,
|
|
12712
12714
|
centerX: M,
|
|
12713
12715
|
centerY: k,
|
|
12714
|
-
dataIndex:
|
|
12716
|
+
dataIndex: pe.dataIndex,
|
|
12715
12717
|
dialScoreData: a,
|
|
12716
12718
|
innerArcRadius: N,
|
|
12717
12719
|
isFinacialStrengthGraph: h,
|
|
@@ -12820,7 +12822,7 @@ const Bp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12820
12822
|
]
|
|
12821
12823
|
}
|
|
12822
12824
|
);
|
|
12823
|
-
},
|
|
12825
|
+
}, YT = x(
|
|
12824
12826
|
({ arcRadius: e, size: n = "L", healthScore: i, footerCenterContent: a }) => {
|
|
12825
12827
|
const o = [
|
|
12826
12828
|
{ id: 1, label: "Group A", value: 25 },
|
|
@@ -12843,7 +12845,7 @@ const Bp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12843
12845
|
}
|
|
12844
12846
|
);
|
|
12845
12847
|
}
|
|
12846
|
-
),
|
|
12848
|
+
), jT = x(
|
|
12847
12849
|
({
|
|
12848
12850
|
arcRadius: e,
|
|
12849
12851
|
size: n = "L",
|
|
@@ -13695,7 +13697,7 @@ const qc = ({
|
|
|
13695
13697
|
]
|
|
13696
13698
|
}
|
|
13697
13699
|
);
|
|
13698
|
-
},
|
|
13700
|
+
}, XT = x(c1);
|
|
13699
13701
|
class es {
|
|
13700
13702
|
fetchInstance;
|
|
13701
13703
|
constructor(n, i) {
|
|
@@ -13931,7 +13933,7 @@ const d1 = (e, n) => {
|
|
|
13931
13933
|
await a(c), o(n.alert_goals_reordered), s(!1);
|
|
13932
13934
|
};
|
|
13933
13935
|
return /* @__PURE__ */ l(b, { children: [
|
|
13934
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
|
13936
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(ge, { onClick: () => s(!0), children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(
|
|
13935
13937
|
b,
|
|
13936
13938
|
{
|
|
13937
13939
|
alignItems: "center",
|
|
@@ -13982,7 +13984,7 @@ const d1 = (e, n) => {
|
|
|
13982
13984
|
] });
|
|
13983
13985
|
}, g1 = ({ goal: e, index: n }) => {
|
|
13984
13986
|
const { goals: i } = A();
|
|
13985
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
13987
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { children: [
|
|
13986
13988
|
e.track_type !== z.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
13987
13989
|
He,
|
|
13988
13990
|
{
|
|
@@ -14011,7 +14013,7 @@ const d1 = (e, n) => {
|
|
|
14011
14013
|
] }) });
|
|
14012
14014
|
}, m1 = ({ goal: e }) => {
|
|
14013
14015
|
const { goals: n } = A();
|
|
14014
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
14016
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { children: [
|
|
14015
14017
|
/* @__PURE__ */ t(He, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(ga, { color: "success", filled: !0, size: 20 }) }),
|
|
14016
14018
|
/* @__PURE__ */ t(re, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
14017
14019
|
/* @__PURE__ */ l(b, { children: [
|
|
@@ -14153,7 +14155,7 @@ const d1 = (e, n) => {
|
|
|
14153
14155
|
const { goals: i } = A(), { bgcolor: a, icon: o, label: r, description: s, subTypes: c, type: d } = e, [u, _] = g.useState(!1), h = c.length > 0;
|
|
14154
14156
|
return /* @__PURE__ */ t(b, { children: /* @__PURE__ */ l(oe, { sx: { bgcolor: "background.paper" }, children: [
|
|
14155
14157
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
14156
|
-
|
|
14158
|
+
ge,
|
|
14157
14159
|
{
|
|
14158
14160
|
onClick: h ? () => _(!u) : () => n(
|
|
14159
14161
|
d === z.RETIREMENT_TRACK ? i.retirement : "",
|
|
@@ -14169,7 +14171,7 @@ const d1 = (e, n) => {
|
|
|
14169
14171
|
}
|
|
14170
14172
|
) }),
|
|
14171
14173
|
/* @__PURE__ */ t(P, { variant: "inset" }),
|
|
14172
|
-
h && /* @__PURE__ */ t(ei, { in: u, children: /* @__PURE__ */ t(oe, { sx: { bgcolor: "background.default" }, children: c.map((m, p) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ l(
|
|
14174
|
+
h && /* @__PURE__ */ t(ei, { in: u, children: /* @__PURE__ */ t(oe, { sx: { bgcolor: "background.default" }, children: c.map((m, p) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ l(ge, { onClick: () => n(m.label, m.metaType, d), children: [
|
|
14173
14175
|
/* @__PURE__ */ t(gt, { sx: { mr: 8 }, children: /* @__PURE__ */ t(pt, { name: m.icon }) }),
|
|
14174
14176
|
/* @__PURE__ */ t(
|
|
14175
14177
|
re,
|
|
@@ -14205,7 +14207,7 @@ const d1 = (e, n) => {
|
|
|
14205
14207
|
/* @__PURE__ */ l(oe, { sx: { bgcolor: "background.white" }, children: [
|
|
14206
14208
|
/* @__PURE__ */ t(P, { variant: "fullWidth" }),
|
|
14207
14209
|
e.map((_, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
14208
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
14210
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => u(_), children: [
|
|
14209
14211
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
14210
14212
|
St,
|
|
14211
14213
|
{
|
|
@@ -14281,7 +14283,7 @@ const d1 = (e, n) => {
|
|
|
14281
14283
|
}, tl = ({ account: e }) => {
|
|
14282
14284
|
const { accounts: n } = A(), { setSelectedAccount: i } = $t(), [a, o] = g.useState(!1);
|
|
14283
14285
|
return /* @__PURE__ */ l(j, { sx: { bgcolor: "background.paper" }, children: [
|
|
14284
|
-
/* @__PURE__ */ l(
|
|
14286
|
+
/* @__PURE__ */ l(ge, { onClick: () => {
|
|
14285
14287
|
i(e), o(!0);
|
|
14286
14288
|
}, children: [
|
|
14287
14289
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
@@ -14345,7 +14347,7 @@ const d1 = (e, n) => {
|
|
|
14345
14347
|
d ? s(C) : (await c(C), r(o.alert_account_changed)), _(!1);
|
|
14346
14348
|
};
|
|
14347
14349
|
return /* @__PURE__ */ l(b, { children: [
|
|
14348
|
-
d && !e.account_guid ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
14350
|
+
d && !e.account_guid ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ge, { onClick: () => _(!0), children: [
|
|
14349
14351
|
/* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
14350
14352
|
/* @__PURE__ */ t(Ks, { filled: !0 }),
|
|
14351
14353
|
o.details_add_account
|
|
@@ -14365,7 +14367,7 @@ const d1 = (e, n) => {
|
|
|
14365
14367
|
] }),
|
|
14366
14368
|
/* @__PURE__ */ t(de, { isOpen: u, onClose: () => _(!1), title: o.details_change_account, children: /* @__PURE__ */ l(b, { children: [
|
|
14367
14369
|
/* @__PURE__ */ t(f, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
|
|
14368
|
-
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
14370
|
+
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => h(m), children: [
|
|
14369
14371
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
14370
14372
|
St,
|
|
14371
14373
|
{
|
|
@@ -14383,7 +14385,7 @@ const d1 = (e, n) => {
|
|
|
14383
14385
|
/* @__PURE__ */ t(Xe, {})
|
|
14384
14386
|
] }) }, m.guid)) }),
|
|
14385
14387
|
/* @__PURE__ */ t(f, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
|
14386
|
-
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
14388
|
+
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => h(m), children: [
|
|
14387
14389
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
14388
14390
|
St,
|
|
14389
14391
|
{
|
|
@@ -14534,7 +14536,7 @@ const d1 = (e, n) => {
|
|
|
14534
14536
|
/* @__PURE__ */ t(tl, { account: y }),
|
|
14535
14537
|
/* @__PURE__ */ t(P, {})
|
|
14536
14538
|
] }, y.guid)),
|
|
14537
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
14539
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ge, { onClick: () => h(!0), children: [
|
|
14538
14540
|
/* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
14539
14541
|
/* @__PURE__ */ t(Ks, { filled: !0 }),
|
|
14540
14542
|
n.details_add_account
|
|
@@ -14664,7 +14666,7 @@ const d1 = (e, n) => {
|
|
|
14664
14666
|
}
|
|
14665
14667
|
)
|
|
14666
14668
|
] });
|
|
14667
|
-
}),
|
|
14669
|
+
}), ZT = x(({ onBackClick: e, sx: n }) => {
|
|
14668
14670
|
const { onEvent: i } = X(), { isMobile: a } = be(), { visibleAccounts: o } = ye(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = _e(), { goals: d, common: u } = A(), { alert: _, goals: h, goalsLoaded: m, loadGoals: p, monthlyCashFlowProfile: C, setAlert: S, retirmentGoals: y } = dt(), [E, I] = g.useState(0), [v, w] = g.useState(!1), N = C?.amount_allocated_for_savings_goals || 0, R = C?.amount_allocated_for_debt_goals || 0, M = C?.amount_allocated_for_retirement_goals || 0, k = r ? T(
|
|
14669
14671
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
14670
14672
|
H(N, "0,0")
|
|
@@ -14684,10 +14686,10 @@ const d1 = (e, n) => {
|
|
|
14684
14686
|
i(F.GOALS_CLICK_FILTER);
|
|
14685
14687
|
}, K = () => {
|
|
14686
14688
|
w(!0), i(F.GOALS_CLICK_ADD);
|
|
14687
|
-
}, se = (
|
|
14688
|
-
w(!1),
|
|
14689
|
+
}, se = (pe) => {
|
|
14690
|
+
w(!1), pe === z.SAVINGS_TRACK ? I(0) : pe === z.DEBT_TRACK ? I(1) : pe === z.RETIREMENT_TRACK && I(2);
|
|
14689
14691
|
}, ee = g.useMemo(
|
|
14690
|
-
() => m && (h.length === 0 || h.every(({ track_type:
|
|
14692
|
+
() => m && (h.length === 0 || h.every(({ track_type: pe }) => !pe) && y.length === 0),
|
|
14691
14693
|
[h, m, y]
|
|
14692
14694
|
);
|
|
14693
14695
|
return !m || !r || !s ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
|
@@ -14710,7 +14712,7 @@ const d1 = (e, n) => {
|
|
|
14710
14712
|
/* @__PURE__ */ l(
|
|
14711
14713
|
Wt,
|
|
14712
14714
|
{
|
|
14713
|
-
onChange: (
|
|
14715
|
+
onChange: (pe, Oe) => I(Oe),
|
|
14714
14716
|
sx: { bgcolor: "background.paper" },
|
|
14715
14717
|
textColor: "primary",
|
|
14716
14718
|
value: ee ? !1 : E,
|
|
@@ -15004,7 +15006,7 @@ const w1 = x(({ goal: e }) => {
|
|
|
15004
15006
|
)
|
|
15005
15007
|
]
|
|
15006
15008
|
}
|
|
15007
|
-
),
|
|
15009
|
+
), qT = x(({ onCTAClick: e }) => {
|
|
15008
15010
|
const { visibleAccounts: n } = ye(), { onEvent: i } = X(), { goals: a } = A(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = _e(), { ongoingGoalsForMicroWidget: c, loadGoals: d, goalsLoaded: u } = dt();
|
|
15009
15011
|
g.useEffect(() => {
|
|
15010
15012
|
r(n);
|
|
@@ -15632,7 +15634,7 @@ const j1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, X1 = 50, as = 65, Z1 = ({
|
|
|
15632
15634
|
sx: { transform: `translateY(${p.start}px)` },
|
|
15633
15635
|
width: "100%",
|
|
15634
15636
|
children: [
|
|
15635
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
15637
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { onClick: () => u(C.guid), children: [
|
|
15636
15638
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Qt, { categoryGuid: "", merchantGuid: C.guid }) }),
|
|
15637
15639
|
/* @__PURE__ */ t(re, { primary: C.name })
|
|
15638
15640
|
] }) }),
|
|
@@ -15646,7 +15648,7 @@ const j1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, X1 = 50, as = 65, Z1 = ({
|
|
|
15646
15648
|
!a.length && /* @__PURE__ */ t(b, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(f, { bold: !0, color: "secondary", variant: "Small", children: r.search_zero_state }) })
|
|
15647
15649
|
] }) }) })
|
|
15648
15650
|
] }) : /* @__PURE__ */ t(ue, {});
|
|
15649
|
-
},
|
|
15651
|
+
}, QT = x(Z1);
|
|
15650
15652
|
class os {
|
|
15651
15653
|
fetchInstance;
|
|
15652
15654
|
constructor(n, i) {
|
|
@@ -15736,7 +15738,7 @@ const Q1 = ({
|
|
|
15736
15738
|
"&:hover": { color: a ? "inherit" : c.color }
|
|
15737
15739
|
},
|
|
15738
15740
|
children: /* @__PURE__ */ t(
|
|
15739
|
-
|
|
15741
|
+
ge,
|
|
15740
15742
|
{
|
|
15741
15743
|
onClick: (u) => o?.(u, e.x),
|
|
15742
15744
|
onMouseEnter: () => r(e.x),
|
|
@@ -15988,7 +15990,7 @@ const mC = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
15988
15990
|
/* @__PURE__ */ t(f, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: e.empty_widget_header }),
|
|
15989
15991
|
/* @__PURE__ */ t(ne, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
15990
15992
|
] })
|
|
15991
|
-
] }),
|
|
15993
|
+
] }), JT = x(({ onCTAClick: e }) => {
|
|
15992
15994
|
const [n, i] = g.useState(!1), { visibleAccounts: a } = ye(), { onEvent: o } = X(), { net_worth: r, common: s } = A(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: u } = _e(), { loadChartData: _, loadNetWorthData: h, netWorthData: m, selectedData: p } = mc(), C = async () => {
|
|
15993
15995
|
await h(d), await _(1), i(!0);
|
|
15994
15996
|
};
|
|
@@ -16022,7 +16024,7 @@ const mC = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16022
16024
|
}), CC = ({ accounts: e, name: n, icon: i }) => {
|
|
16023
16025
|
const [a, o] = g.useState(!1);
|
|
16024
16026
|
return /* @__PURE__ */ l(q, { children: [
|
|
16025
|
-
/* @__PURE__ */ t(j, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ l(
|
|
16027
|
+
/* @__PURE__ */ t(j, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ l(ge, { onClick: () => o(!a), children: [
|
|
16026
16028
|
i && /* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(U, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
16027
16029
|
/* @__PURE__ */ t(
|
|
16028
16030
|
re,
|
|
@@ -16180,7 +16182,7 @@ const mC = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16180
16182
|
] }))
|
|
16181
16183
|
] })
|
|
16182
16184
|
] });
|
|
16183
|
-
}, SC = x(yC),
|
|
16185
|
+
}, SC = x(yC), e2 = x(({ onBackClick: e }) => {
|
|
16184
16186
|
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = _e(), { accounts: r, net_worth: s } = A(), { visibleAccounts: c } = ye(), {
|
|
16185
16187
|
assetsLiabilities: d,
|
|
16186
16188
|
gainsLosses: u,
|
|
@@ -16203,24 +16205,24 @@ const mC = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16203
16205
|
}, [i, a]), g.useEffect(() => {
|
|
16204
16206
|
I(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: N + "M" }), h(N).finally();
|
|
16205
16207
|
}, [N]);
|
|
16206
|
-
const ee = (V,
|
|
16207
|
-
y(
|
|
16208
|
-
},
|
|
16208
|
+
const ee = (V, Ce) => {
|
|
16209
|
+
y(Ce), V.currentTarget instanceof HTMLDivElement && k(!0);
|
|
16210
|
+
}, pe = (V) => {
|
|
16209
16211
|
S(V);
|
|
16210
|
-
},
|
|
16212
|
+
}, Oe = () => {
|
|
16211
16213
|
S(null);
|
|
16212
|
-
},
|
|
16214
|
+
}, Le = () => {
|
|
16213
16215
|
I(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), L(!0);
|
|
16214
|
-
},
|
|
16215
|
-
const
|
|
16216
|
-
|
|
16217
|
-
},
|
|
16216
|
+
}, he = async (V) => {
|
|
16217
|
+
const Ce = V[0], Q = V[1];
|
|
16218
|
+
Ce && Q && R($d(Q, Ce));
|
|
16219
|
+
}, me = {
|
|
16218
16220
|
chartData: p,
|
|
16219
16221
|
hoveredData: _,
|
|
16220
|
-
onButtonClick:
|
|
16222
|
+
onButtonClick: Le,
|
|
16221
16223
|
onDataClick: ee,
|
|
16222
|
-
onMouseEnter:
|
|
16223
|
-
onMouseLeave:
|
|
16224
|
+
onMouseEnter: pe,
|
|
16225
|
+
onMouseLeave: Oe,
|
|
16224
16226
|
selectedData: C
|
|
16225
16227
|
}, ze = () => {
|
|
16226
16228
|
K(!0), I(F.ACCOUNTS_CLICK_CONNECT);
|
|
@@ -16230,7 +16232,7 @@ const mC = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16230
16232
|
{
|
|
16231
16233
|
accountOptions: c,
|
|
16232
16234
|
calendarActions: {
|
|
16233
|
-
onRangeChanged:
|
|
16235
|
+
onRangeChanged: he
|
|
16234
16236
|
},
|
|
16235
16237
|
dateRangeVariant: E ? "timeframetabs" : "timeframebuttons",
|
|
16236
16238
|
onAccountsFilterClick: () => I(F.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
@@ -16260,8 +16262,8 @@ const mC = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16260
16262
|
direction: E ? "column" : "row",
|
|
16261
16263
|
spacing: E ? 0 : 48,
|
|
16262
16264
|
children: [
|
|
16263
|
-
/* @__PURE__ */ t(J1, { ...
|
|
16264
|
-
/* @__PURE__ */ t(iC, { ...
|
|
16265
|
+
/* @__PURE__ */ t(J1, { ...me }),
|
|
16266
|
+
/* @__PURE__ */ t(iC, { ...me })
|
|
16265
16267
|
]
|
|
16266
16268
|
}
|
|
16267
16269
|
)
|
|
@@ -16316,7 +16318,7 @@ const mC = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16316
16318
|
] }) : /* @__PURE__ */ t(ue, {})
|
|
16317
16319
|
}
|
|
16318
16320
|
) : /* @__PURE__ */ t(ue, {});
|
|
16319
|
-
}),
|
|
16321
|
+
}), t2 = (e) => {
|
|
16320
16322
|
switch (e) {
|
|
16321
16323
|
case Zn.BudgetExceeded:
|
|
16322
16324
|
case Zn.BudgetOffTarget:
|
|
@@ -17441,7 +17443,7 @@ const HC = ({
|
|
|
17441
17443
|
}), qo = x(
|
|
17442
17444
|
({ onClick: e, primaryText: n, secondaryText: i, sx: a }) => {
|
|
17443
17445
|
const o = Ae();
|
|
17444
|
-
return /* @__PURE__ */ t(j, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(
|
|
17446
|
+
return /* @__PURE__ */ t(j, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(ge, { alignItems: "flex-start", onClick: e, sx: a, children: [
|
|
17445
17447
|
/* @__PURE__ */ t(re, { primary: n, secondary: i }),
|
|
17446
17448
|
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(Os, {}) })
|
|
17447
17449
|
] }) });
|
|
@@ -18062,15 +18064,15 @@ const HC = ({
|
|
|
18062
18064
|
/* @__PURE__ */ t(tt, { sx: { mb: 4 }, children: o.notification_types_title })
|
|
18063
18065
|
] }),
|
|
18064
18066
|
/* @__PURE__ */ l(oe, { children: [
|
|
18065
|
-
e.includes(Lt.Accounts) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
18067
|
+
e.includes(Lt.Accounts) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => u(Lt.Accounts), children: [
|
|
18066
18068
|
/* @__PURE__ */ t(re, { primary: o.accounts_title, secondary: o.accounts_subtitle }),
|
|
18067
18069
|
/* @__PURE__ */ t(Xe, {})
|
|
18068
18070
|
] }) }),
|
|
18069
|
-
e.includes(Lt.Budgets) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
18071
|
+
e.includes(Lt.Budgets) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => u(Lt.Budgets), children: [
|
|
18070
18072
|
/* @__PURE__ */ t(re, { primary: o.budgets_title, secondary: o.budgets_subtitle }),
|
|
18071
18073
|
/* @__PURE__ */ t(Xe, {})
|
|
18072
18074
|
] }) }),
|
|
18073
|
-
e.includes(Lt.Insights) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
18075
|
+
e.includes(Lt.Insights) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => u(Lt.Insights), children: [
|
|
18074
18076
|
/* @__PURE__ */ t(re, { primary: o.insights_title, secondary: o.insights_subtitle }),
|
|
18075
18077
|
/* @__PURE__ */ t(Xe, {})
|
|
18076
18078
|
] }) })
|
|
@@ -18166,7 +18168,7 @@ const HC = ({
|
|
|
18166
18168
|
p: 0
|
|
18167
18169
|
},
|
|
18168
18170
|
children: /* @__PURE__ */ t(oe, { disablePadding: !0, children: y.map(({ label: w, topicKey: N }) => /* @__PURE__ */ t(
|
|
18169
|
-
|
|
18171
|
+
ge,
|
|
18170
18172
|
{
|
|
18171
18173
|
"aria-label": w,
|
|
18172
18174
|
divider: !0,
|
|
@@ -18408,7 +18410,7 @@ const HC = ({
|
|
|
18408
18410
|
] }) }),
|
|
18409
18411
|
i && /* @__PURE__ */ t(P, {})
|
|
18410
18412
|
] });
|
|
18411
|
-
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(ne, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }),
|
|
18413
|
+
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(ne, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), xe = ({ content: e, sx: n }) => /* @__PURE__ */ t(tt, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), ie = ({
|
|
18412
18414
|
items: e,
|
|
18413
18415
|
listType: n = "ul",
|
|
18414
18416
|
subItemPlacement: i,
|
|
@@ -18420,49 +18422,49 @@ const HC = ({
|
|
|
18420
18422
|
/* @__PURE__ */ t($, { content: c, sx: { py: 1 } }),
|
|
18421
18423
|
i === d ? /* @__PURE__ */ t(s, { ...o === "ol" && { type: "a" }, children: a.map((u, _) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t($, { content: u, sx: { py: 1 } }) }, _)) }) : null
|
|
18422
18424
|
] }, d)) }) });
|
|
18423
|
-
},
|
|
18424
|
-
ACCOUNT_DETAILS: `${
|
|
18425
|
-
ACCOUNT_OVERVIEW: `${
|
|
18426
|
-
ACCOUNT_ADD: `${
|
|
18427
|
-
ACCOUNT_BROKEN_CONNECTION: `${
|
|
18428
|
-
ACCOUNT_HIDE: `${
|
|
18429
|
-
ACCOUNT_MANAGE_CONNECTIONS: `${
|
|
18430
|
-
BUDGETS_ADD_SUB_BUDGET: `${
|
|
18431
|
-
BUDGETS_WIDGET: `${
|
|
18432
|
-
BUDGETS_EDIT_INCOME: `${
|
|
18433
|
-
CASHFLOW_WIDGET: `${
|
|
18434
|
-
CASHFLOW_EXPENSE_DETAILS: `${
|
|
18435
|
-
CASHFLOW_MANAGE_EXPENSES: `${
|
|
18436
|
-
DEBTS_DETAILS: `${
|
|
18437
|
-
DEBTS_OVERVIEW: `${
|
|
18438
|
-
DEBTS_PRIORITIZATION: `${
|
|
18439
|
-
DEBTS_SNOWBALL_METHOD: `${
|
|
18440
|
-
GENERAL_CATEGORIZE_TRANSACTIONS: `${
|
|
18441
|
-
GOALS_CREATE_GOAL: `${
|
|
18442
|
-
GOALS_DEBT_GOALS: `${
|
|
18443
|
-
GOALS_WIDGET_OVERVIEW: `${
|
|
18444
|
-
GOALS_MANAGE_GOALS: `${
|
|
18445
|
-
GOALS_RETIREMENT_GOALS: `${
|
|
18446
|
-
GOALS_SAVINGS_GOALS: `${
|
|
18447
|
-
INSIGHTS_CAROUSEL: `${
|
|
18448
|
-
INSIGHTS_FEED: `${
|
|
18449
|
-
INVESTMENTS_WIDGET_DETAILS: `${
|
|
18450
|
-
MOBILE_ADD_MOBILE_DEVICE: `${
|
|
18451
|
-
NETWORTH_ASSETS_LIABILITIES: `${
|
|
18452
|
-
NETWORTH_GAINS_LOSSES: `${
|
|
18453
|
-
NETWORTH_WIDGET: `${
|
|
18454
|
-
NOTIFICATIONS_MANAGING: `${
|
|
18455
|
-
NOTIFICATIONS_OVERVIEW: `${
|
|
18456
|
-
RECURRING_TRANSACTIONS_EXPENSE_DETAILS: `${
|
|
18457
|
-
RECURRING_TRANSACTIONS_MANAGE_EXPENSES: `${
|
|
18458
|
-
RECURRING_TRANSACTIONS_OVERVIEW: `${
|
|
18459
|
-
SPENDING_WIDGET: `${
|
|
18460
|
-
TRANSACTIONS_CATEGORIZE: `${
|
|
18461
|
-
TRANSACTIONS_EDIT: `${
|
|
18462
|
-
TRANSACTIONS_EXPORT: `${
|
|
18463
|
-
TRANSACTIONS_OVERVIEW: `${
|
|
18464
|
-
TRANSACTIONS_RULES: `${
|
|
18465
|
-
TRENDS_WIDGET: `${
|
|
18425
|
+
}, ve = "https://content.moneydesktop.com/storage/MD_Assets/md/help", Re = {
|
|
18426
|
+
ACCOUNT_DETAILS: `${ve}/account/AccountDetails.png`,
|
|
18427
|
+
ACCOUNT_OVERVIEW: `${ve}/account/AccountsOverview.png`,
|
|
18428
|
+
ACCOUNT_ADD: `${ve}/account/AddAccount.png`,
|
|
18429
|
+
ACCOUNT_BROKEN_CONNECTION: `${ve}/account/BrokenConnection.png`,
|
|
18430
|
+
ACCOUNT_HIDE: `${ve}/account/AccountHide.png`,
|
|
18431
|
+
ACCOUNT_MANAGE_CONNECTIONS: `${ve}/account/ManageConnections.png`,
|
|
18432
|
+
BUDGETS_ADD_SUB_BUDGET: `${ve}/budgets/AddSubBudget.png`,
|
|
18433
|
+
BUDGETS_WIDGET: `${ve}/budgets/BudgetWidget.png`,
|
|
18434
|
+
BUDGETS_EDIT_INCOME: `${ve}/budgets/EditIncome.png`,
|
|
18435
|
+
CASHFLOW_WIDGET: `${ve}/cashflow/CashFlowWidget.png`,
|
|
18436
|
+
CASHFLOW_EXPENSE_DETAILS: `${ve}/cashflow/ExpenseDetailsCurrent.png`,
|
|
18437
|
+
CASHFLOW_MANAGE_EXPENSES: `${ve}/cashflow/ManageExpenses.png`,
|
|
18438
|
+
DEBTS_DETAILS: `${ve}/debts/DebtDetails.png`,
|
|
18439
|
+
DEBTS_OVERVIEW: `${ve}/debts/DebtOverview.png`,
|
|
18440
|
+
DEBTS_PRIORITIZATION: `${ve}/debts/DebtPrioritization.png`,
|
|
18441
|
+
DEBTS_SNOWBALL_METHOD: `${ve}/debts/SnowballMethod.png`,
|
|
18442
|
+
GENERAL_CATEGORIZE_TRANSACTIONS: `${ve}/general/CategorizeTransactions.png`,
|
|
18443
|
+
GOALS_CREATE_GOAL: `${ve}/goals/CreateGoal.png`,
|
|
18444
|
+
GOALS_DEBT_GOALS: `${ve}/goals/DebtGoals.png`,
|
|
18445
|
+
GOALS_WIDGET_OVERVIEW: `${ve}/goals/GoalsWidgetOverview.png`,
|
|
18446
|
+
GOALS_MANAGE_GOALS: `${ve}/goals/ManageGoals.png`,
|
|
18447
|
+
GOALS_RETIREMENT_GOALS: `${ve}/goals/RetirementGoals.png`,
|
|
18448
|
+
GOALS_SAVINGS_GOALS: `${ve}/goals/SavingsGoals.png`,
|
|
18449
|
+
INSIGHTS_CAROUSEL: `${ve}/insights/InsightsCarousel.png`,
|
|
18450
|
+
INSIGHTS_FEED: `${ve}/insights/InsightsFeed.png`,
|
|
18451
|
+
INVESTMENTS_WIDGET_DETAILS: `${ve}/investments/WidgetDetails.png`,
|
|
18452
|
+
MOBILE_ADD_MOBILE_DEVICE: `${ve}/mobile/AddMobileDevice.png`,
|
|
18453
|
+
NETWORTH_ASSETS_LIABILITIES: `${ve}/networth/AssetsLiabilities.png`,
|
|
18454
|
+
NETWORTH_GAINS_LOSSES: `${ve}/networth/GainsLosses.png`,
|
|
18455
|
+
NETWORTH_WIDGET: `${ve}/networth/NetWorthWidget.png`,
|
|
18456
|
+
NOTIFICATIONS_MANAGING: `${ve}/notifications/ManagingNotifications.png`,
|
|
18457
|
+
NOTIFICATIONS_OVERVIEW: `${ve}/notifications/NotificationOverview.png`,
|
|
18458
|
+
RECURRING_TRANSACTIONS_EXPENSE_DETAILS: `${ve}/recurringtransactions/expenseDetails.png`,
|
|
18459
|
+
RECURRING_TRANSACTIONS_MANAGE_EXPENSES: `${ve}/recurringtransactions/manageExpenses.png`,
|
|
18460
|
+
RECURRING_TRANSACTIONS_OVERVIEW: `${ve}/recurringtransactions/overview.png`,
|
|
18461
|
+
SPENDING_WIDGET: `${ve}/spending/SpendingWidget.png`,
|
|
18462
|
+
TRANSACTIONS_CATEGORIZE: `${ve}/transactions/CategorizeTransactions.png`,
|
|
18463
|
+
TRANSACTIONS_EDIT: `${ve}/transactions/EditTransactions.png`,
|
|
18464
|
+
TRANSACTIONS_EXPORT: `${ve}/transactions/ExportTransactions.png`,
|
|
18465
|
+
TRANSACTIONS_OVERVIEW: `${ve}/transactions/Overview.png`,
|
|
18466
|
+
TRANSACTIONS_RULES: `${ve}/transactions/TransactionRules.png`,
|
|
18467
|
+
TRENDS_WIDGET: `${ve}/trends/TrendsWidget.png`
|
|
18466
18468
|
}, tf = ({ copy: e, topicKey: n }) => ({
|
|
18467
18469
|
"accounts-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
|
18468
18470
|
/* @__PURE__ */ t(
|
|
@@ -18482,11 +18484,11 @@ const HC = ({
|
|
|
18482
18484
|
),
|
|
18483
18485
|
/* @__PURE__ */ t($, { content: e.accounts_overview.account_view_text, sx: { mt: 12 } })
|
|
18484
18486
|
] }),
|
|
18485
|
-
image:
|
|
18487
|
+
image: Re.ACCOUNT_OVERVIEW,
|
|
18486
18488
|
imageLargeBreakPoint: 5
|
|
18487
18489
|
}
|
|
18488
18490
|
),
|
|
18489
|
-
/* @__PURE__ */ t(
|
|
18491
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.edit_account_title, sx: { pt: 48 } }),
|
|
18490
18492
|
/* @__PURE__ */ t(
|
|
18491
18493
|
Gt,
|
|
18492
18494
|
{
|
|
@@ -18517,11 +18519,11 @@ const HC = ({
|
|
|
18517
18519
|
]
|
|
18518
18520
|
}
|
|
18519
18521
|
) }),
|
|
18520
|
-
image:
|
|
18522
|
+
image: Re.ACCOUNT_DETAILS,
|
|
18521
18523
|
imageLargeBreakPoint: 3
|
|
18522
18524
|
}
|
|
18523
18525
|
),
|
|
18524
|
-
/* @__PURE__ */ t(
|
|
18526
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.add_account_title, sx: { pt: 48 } }),
|
|
18525
18527
|
/* @__PURE__ */ t(
|
|
18526
18528
|
cn,
|
|
18527
18529
|
{
|
|
@@ -18561,7 +18563,7 @@ const HC = ({
|
|
|
18561
18563
|
)
|
|
18562
18564
|
}
|
|
18563
18565
|
),
|
|
18564
|
-
/* @__PURE__ */ t(
|
|
18566
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.hide_account_title }),
|
|
18565
18567
|
/* @__PURE__ */ t(
|
|
18566
18568
|
ie,
|
|
18567
18569
|
{
|
|
@@ -18578,7 +18580,7 @@ const HC = ({
|
|
|
18578
18580
|
listType: "ol"
|
|
18579
18581
|
}
|
|
18580
18582
|
),
|
|
18581
|
-
/* @__PURE__ */ t(
|
|
18583
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.unhide_account_title }),
|
|
18582
18584
|
/* @__PURE__ */ t(
|
|
18583
18585
|
ie,
|
|
18584
18586
|
{
|
|
@@ -18597,7 +18599,7 @@ const HC = ({
|
|
|
18597
18599
|
)
|
|
18598
18600
|
] }),
|
|
18599
18601
|
hasDivider: !1,
|
|
18600
|
-
image:
|
|
18602
|
+
image: Re.ACCOUNT_MANAGE_CONNECTIONS,
|
|
18601
18603
|
imageLargeBreakPoint: 10
|
|
18602
18604
|
}
|
|
18603
18605
|
)
|
|
@@ -18657,7 +18659,7 @@ const HC = ({
|
|
|
18657
18659
|
)
|
|
18658
18660
|
] }),
|
|
18659
18661
|
hasDivider: !1,
|
|
18660
|
-
image:
|
|
18662
|
+
image: Re.ACCOUNT_BROKEN_CONNECTION,
|
|
18661
18663
|
imageLargeBreakPoint: 3,
|
|
18662
18664
|
sx: { pt: 24 }
|
|
18663
18665
|
}
|
|
@@ -18674,8 +18676,8 @@ const HC = ({
|
|
|
18674
18676
|
at,
|
|
18675
18677
|
{
|
|
18676
18678
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
18677
|
-
/* @__PURE__ */ t(
|
|
18678
|
-
/* @__PURE__ */ t(
|
|
18679
|
+
/* @__PURE__ */ t(xe, { content: e.seeing_duplicate_accounts.warning_title }),
|
|
18680
|
+
/* @__PURE__ */ t(xe, { content: e.seeing_duplicate_accounts.instructions_title }),
|
|
18679
18681
|
/* @__PURE__ */ t(
|
|
18680
18682
|
ie,
|
|
18681
18683
|
{
|
|
@@ -18726,10 +18728,10 @@ const HC = ({
|
|
|
18726
18728
|
}
|
|
18727
18729
|
)
|
|
18728
18730
|
] }),
|
|
18729
|
-
image:
|
|
18731
|
+
image: Re.BUDGETS_WIDGET
|
|
18730
18732
|
}
|
|
18731
18733
|
),
|
|
18732
|
-
/* @__PURE__ */ t(
|
|
18734
|
+
/* @__PURE__ */ t(xe, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
|
18733
18735
|
/* @__PURE__ */ t(
|
|
18734
18736
|
Gt,
|
|
18735
18737
|
{
|
|
@@ -18753,10 +18755,10 @@ const HC = ({
|
|
|
18753
18755
|
}
|
|
18754
18756
|
)
|
|
18755
18757
|
] }),
|
|
18756
|
-
image:
|
|
18758
|
+
image: Re.BUDGETS_EDIT_INCOME
|
|
18757
18759
|
}
|
|
18758
18760
|
),
|
|
18759
|
-
/* @__PURE__ */ t(
|
|
18761
|
+
/* @__PURE__ */ t(xe, { content: i.create_budget_title, sx: { pt: 48 } }),
|
|
18760
18762
|
/* @__PURE__ */ t(
|
|
18761
18763
|
on,
|
|
18762
18764
|
{
|
|
@@ -18777,7 +18779,7 @@ const HC = ({
|
|
|
18777
18779
|
}
|
|
18778
18780
|
) }),
|
|
18779
18781
|
hasDivider: !1,
|
|
18780
|
-
image:
|
|
18782
|
+
image: Re.BUDGETS_ADD_SUB_BUDGET
|
|
18781
18783
|
}
|
|
18782
18784
|
),
|
|
18783
18785
|
/* @__PURE__ */ t(
|
|
@@ -18811,7 +18813,7 @@ const HC = ({
|
|
|
18811
18813
|
}
|
|
18812
18814
|
)
|
|
18813
18815
|
] }),
|
|
18814
|
-
image:
|
|
18816
|
+
image: Re.CASHFLOW_WIDGET,
|
|
18815
18817
|
sx: { pt: 8 }
|
|
18816
18818
|
}
|
|
18817
18819
|
),
|
|
@@ -18829,12 +18831,12 @@ const HC = ({
|
|
|
18829
18831
|
sx: { mt: 24 }
|
|
18830
18832
|
}
|
|
18831
18833
|
),
|
|
18832
|
-
image:
|
|
18834
|
+
image: Re.CASHFLOW_MANAGE_EXPENSES,
|
|
18833
18835
|
sx: { pt: 48 }
|
|
18834
18836
|
}
|
|
18835
18837
|
),
|
|
18836
18838
|
/* @__PURE__ */ t(
|
|
18837
|
-
|
|
18839
|
+
xe,
|
|
18838
18840
|
{
|
|
18839
18841
|
content: e.cashflow_overview.manage_expenses_section_title,
|
|
18840
18842
|
sx: { pt: 48 }
|
|
@@ -18846,7 +18848,7 @@ const HC = ({
|
|
|
18846
18848
|
altImage: e.cashflow_overview.alt_image_manage_expenses,
|
|
18847
18849
|
content: /* @__PURE__ */ t($, { content: e.cashflow_overview.manage_expenses_instruction, sx: { mt: 24 } }),
|
|
18848
18850
|
hasDivider: !1,
|
|
18849
|
-
image:
|
|
18851
|
+
image: Re.CASHFLOW_EXPENSE_DETAILS
|
|
18850
18852
|
}
|
|
18851
18853
|
)
|
|
18852
18854
|
] })
|
|
@@ -18865,7 +18867,7 @@ const HC = ({
|
|
|
18865
18867
|
)
|
|
18866
18868
|
}
|
|
18867
18869
|
),
|
|
18868
|
-
image:
|
|
18870
|
+
image: Re.DEBTS_OVERVIEW,
|
|
18869
18871
|
imageLargeBreakPoint: 7,
|
|
18870
18872
|
sx: { pt: 24 }
|
|
18871
18873
|
}
|
|
@@ -18875,7 +18877,7 @@ const HC = ({
|
|
|
18875
18877
|
{
|
|
18876
18878
|
altImage: n.snowball_method,
|
|
18877
18879
|
content: /* @__PURE__ */ t($, { content: n.snowball_method_desc, sx: { mt: 24 } }),
|
|
18878
|
-
image:
|
|
18880
|
+
image: Re.DEBTS_SNOWBALL_METHOD,
|
|
18879
18881
|
imageLargeBreakPoint: 2
|
|
18880
18882
|
}
|
|
18881
18883
|
),
|
|
@@ -18920,7 +18922,7 @@ const HC = ({
|
|
|
18920
18922
|
}
|
|
18921
18923
|
)
|
|
18922
18924
|
] }),
|
|
18923
|
-
image:
|
|
18925
|
+
image: Re.DEBTS_PRIORITIZATION,
|
|
18924
18926
|
imageLargeBreakPoint: 4
|
|
18925
18927
|
}
|
|
18926
18928
|
),
|
|
@@ -19006,7 +19008,7 @@ const HC = ({
|
|
|
19006
19008
|
}
|
|
19007
19009
|
)
|
|
19008
19010
|
] }),
|
|
19009
|
-
image:
|
|
19011
|
+
image: Re.DEBTS_DETAILS
|
|
19010
19012
|
}
|
|
19011
19013
|
),
|
|
19012
19014
|
hidingAccounts: /* @__PURE__ */ t(
|
|
@@ -19074,19 +19076,19 @@ const HC = ({
|
|
|
19074
19076
|
};
|
|
19075
19077
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19076
19078
|
i.overviewSection,
|
|
19077
|
-
/* @__PURE__ */ t(
|
|
19079
|
+
/* @__PURE__ */ t(xe, { content: n.snowball_method_title, sx: { pt: 48 } }),
|
|
19078
19080
|
i.snowballMethod,
|
|
19079
|
-
/* @__PURE__ */ t(
|
|
19081
|
+
/* @__PURE__ */ t(xe, { content: n.debt_prioritization, sx: { pt: 48 } }),
|
|
19080
19082
|
i.debtPrioritization,
|
|
19081
|
-
/* @__PURE__ */ t(
|
|
19083
|
+
/* @__PURE__ */ t(xe, { content: n.debt_chart, sx: { pt: 48 } }),
|
|
19082
19084
|
i.debtChart,
|
|
19083
|
-
/* @__PURE__ */ t(
|
|
19085
|
+
/* @__PURE__ */ t(xe, { content: n.debt_list, sx: { pt: 48 } }),
|
|
19084
19086
|
i.debtList,
|
|
19085
|
-
/* @__PURE__ */ t(
|
|
19087
|
+
/* @__PURE__ */ t(xe, { content: n.debt_details, sx: { pt: 48 } }),
|
|
19086
19088
|
i.debtDetails,
|
|
19087
|
-
/* @__PURE__ */ t(
|
|
19089
|
+
/* @__PURE__ */ t(xe, { content: n.hiding_accounts, sx: { pt: 48 } }),
|
|
19088
19090
|
i.hidingAccounts,
|
|
19089
|
-
/* @__PURE__ */ t(
|
|
19091
|
+
/* @__PURE__ */ t(xe, { content: n.extra_payments, sx: { pt: 48 } }),
|
|
19090
19092
|
i.extraPayments
|
|
19091
19093
|
] });
|
|
19092
19094
|
}, rf = ({ topicKey: e, copy: n }) => {
|
|
@@ -19187,7 +19189,7 @@ const HC = ({
|
|
|
19187
19189
|
)
|
|
19188
19190
|
] }),
|
|
19189
19191
|
hasDivider: !1,
|
|
19190
|
-
image:
|
|
19192
|
+
image: Re.GENERAL_CATEGORIZE_TRANSACTIONS,
|
|
19191
19193
|
imageLargeBreakPoint: 10
|
|
19192
19194
|
}
|
|
19193
19195
|
),
|
|
@@ -19249,7 +19251,7 @@ const HC = ({
|
|
|
19249
19251
|
at,
|
|
19250
19252
|
{
|
|
19251
19253
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19252
|
-
/* @__PURE__ */ t(
|
|
19254
|
+
/* @__PURE__ */ t(xe, { content: n.setting_goals_section_title }),
|
|
19253
19255
|
/* @__PURE__ */ t($, { content: `${n.setting_goals_title_text}:` }),
|
|
19254
19256
|
/* @__PURE__ */ t(
|
|
19255
19257
|
ie,
|
|
@@ -19274,7 +19276,7 @@ const HC = ({
|
|
|
19274
19276
|
hasDivider: !0
|
|
19275
19277
|
}
|
|
19276
19278
|
),
|
|
19277
|
-
/* @__PURE__ */ t(
|
|
19279
|
+
/* @__PURE__ */ t(xe, { content: n.create_goal_section_title, sx: { pt: 48 } }),
|
|
19278
19280
|
/* @__PURE__ */ t(
|
|
19279
19281
|
cn,
|
|
19280
19282
|
{
|
|
@@ -19304,11 +19306,11 @@ const HC = ({
|
|
|
19304
19306
|
}
|
|
19305
19307
|
),
|
|
19306
19308
|
hasDivider: !0,
|
|
19307
|
-
image:
|
|
19309
|
+
image: Re.GOALS_CREATE_GOAL,
|
|
19308
19310
|
imageLargeBreakPoint: 10
|
|
19309
19311
|
}
|
|
19310
19312
|
),
|
|
19311
|
-
/* @__PURE__ */ t(
|
|
19313
|
+
/* @__PURE__ */ t(xe, { content: n.savings_goal_section_title, sx: { pt: 48 } }),
|
|
19312
19314
|
/* @__PURE__ */ t(
|
|
19313
19315
|
Gt,
|
|
19314
19316
|
{
|
|
@@ -19328,11 +19330,11 @@ const HC = ({
|
|
|
19328
19330
|
}
|
|
19329
19331
|
),
|
|
19330
19332
|
hasDivider: !0,
|
|
19331
|
-
image:
|
|
19333
|
+
image: Re.GOALS_SAVINGS_GOALS,
|
|
19332
19334
|
imageLargeBreakPoint: 3
|
|
19333
19335
|
}
|
|
19334
19336
|
),
|
|
19335
|
-
/* @__PURE__ */ t(
|
|
19337
|
+
/* @__PURE__ */ t(xe, { content: n.debt_payoff_goal_section_title, sx: { pt: 48 } }),
|
|
19336
19338
|
/* @__PURE__ */ t(
|
|
19337
19339
|
Gt,
|
|
19338
19340
|
{
|
|
@@ -19354,11 +19356,11 @@ const HC = ({
|
|
|
19354
19356
|
}
|
|
19355
19357
|
) }),
|
|
19356
19358
|
hasDivider: !0,
|
|
19357
|
-
image:
|
|
19359
|
+
image: Re.GOALS_DEBT_GOALS,
|
|
19358
19360
|
imageLargeBreakPoint: 3
|
|
19359
19361
|
}
|
|
19360
19362
|
),
|
|
19361
|
-
/* @__PURE__ */ t(
|
|
19363
|
+
/* @__PURE__ */ t(xe, { content: n.retirement_goal_section_title, sx: { pt: 48 } }),
|
|
19362
19364
|
/* @__PURE__ */ t(
|
|
19363
19365
|
Gt,
|
|
19364
19366
|
{
|
|
@@ -19381,12 +19383,12 @@ const HC = ({
|
|
|
19381
19383
|
}
|
|
19382
19384
|
),
|
|
19383
19385
|
hasDivider: !0,
|
|
19384
|
-
image:
|
|
19386
|
+
image: Re.GOALS_RETIREMENT_GOALS,
|
|
19385
19387
|
imageLargeBreakPoint: 3
|
|
19386
19388
|
}
|
|
19387
19389
|
),
|
|
19388
19390
|
/* @__PURE__ */ t(
|
|
19389
|
-
|
|
19391
|
+
xe,
|
|
19390
19392
|
{
|
|
19391
19393
|
content: n.adjusting_contribution_priorities_section_title,
|
|
19392
19394
|
sx: { pt: 48 }
|
|
@@ -19419,7 +19421,7 @@ const HC = ({
|
|
|
19419
19421
|
}
|
|
19420
19422
|
),
|
|
19421
19423
|
hasDivider: !1,
|
|
19422
|
-
image:
|
|
19424
|
+
image: Re.GOALS_MANAGE_GOALS,
|
|
19423
19425
|
imageLargeBreakPoint: 3
|
|
19424
19426
|
}
|
|
19425
19427
|
)
|
|
@@ -19479,7 +19481,7 @@ const HC = ({
|
|
|
19479
19481
|
/* @__PURE__ */ t(ie, { items: [n.list_2_item_1, n.list_2_item_2] })
|
|
19480
19482
|
] }),
|
|
19481
19483
|
hasDivider: !1,
|
|
19482
|
-
image:
|
|
19484
|
+
image: Re.INVESTMENTS_WIDGET_DETAILS,
|
|
19483
19485
|
imageLargeBreakPoint: 10,
|
|
19484
19486
|
sx: { pt: 12 }
|
|
19485
19487
|
}
|
|
@@ -19522,13 +19524,13 @@ const HC = ({
|
|
|
19522
19524
|
),
|
|
19523
19525
|
/* @__PURE__ */ t($, { content: n.mobile_devices_overview_success })
|
|
19524
19526
|
] }),
|
|
19525
|
-
image:
|
|
19527
|
+
image: Re.MOBILE_ADD_MOBILE_DEVICE,
|
|
19526
19528
|
imageLargeBreakPoint: 10,
|
|
19527
19529
|
sx: { mt: 20 }
|
|
19528
19530
|
}
|
|
19529
19531
|
),
|
|
19530
19532
|
/* @__PURE__ */ t(
|
|
19531
|
-
|
|
19533
|
+
xe,
|
|
19532
19534
|
{
|
|
19533
19535
|
content: n.preventing_app_crashes_section_title,
|
|
19534
19536
|
sx: { pt: 48 }
|
|
@@ -19577,7 +19579,7 @@ const HC = ({
|
|
|
19577
19579
|
)
|
|
19578
19580
|
}
|
|
19579
19581
|
),
|
|
19580
|
-
image:
|
|
19582
|
+
image: Re.NETWORTH_WIDGET,
|
|
19581
19583
|
imageLargeBreakPoint: 8,
|
|
19582
19584
|
sx: { mt: 24 }
|
|
19583
19585
|
}
|
|
@@ -19587,7 +19589,7 @@ const HC = ({
|
|
|
19587
19589
|
{
|
|
19588
19590
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19589
19591
|
/* @__PURE__ */ t(
|
|
19590
|
-
|
|
19592
|
+
xe,
|
|
19591
19593
|
{
|
|
19592
19594
|
content: i.net_worth_history_section_title,
|
|
19593
19595
|
sx: { pt: 48 }
|
|
@@ -19606,7 +19608,7 @@ const HC = ({
|
|
|
19606
19608
|
] })
|
|
19607
19609
|
}
|
|
19608
19610
|
),
|
|
19609
|
-
/* @__PURE__ */ t(
|
|
19611
|
+
/* @__PURE__ */ t(xe, { content: i.gains_losses_section_title, sx: { mt: 36 } }),
|
|
19610
19612
|
/* @__PURE__ */ t(
|
|
19611
19613
|
Gt,
|
|
19612
19614
|
{
|
|
@@ -19637,12 +19639,12 @@ const HC = ({
|
|
|
19637
19639
|
}
|
|
19638
19640
|
)
|
|
19639
19641
|
] }),
|
|
19640
|
-
image:
|
|
19642
|
+
image: Re.NETWORTH_GAINS_LOSSES,
|
|
19641
19643
|
imageLargeBreakPoint: 3
|
|
19642
19644
|
}
|
|
19643
19645
|
),
|
|
19644
19646
|
/* @__PURE__ */ t(
|
|
19645
|
-
|
|
19647
|
+
xe,
|
|
19646
19648
|
{
|
|
19647
19649
|
content: i.assets_liabilities_section_title,
|
|
19648
19650
|
sx: { mt: 36 }
|
|
@@ -19684,7 +19686,7 @@ const HC = ({
|
|
|
19684
19686
|
)
|
|
19685
19687
|
] }),
|
|
19686
19688
|
hasDivider: !1,
|
|
19687
|
-
image:
|
|
19689
|
+
image: Re.NETWORTH_ASSETS_LIABILITIES,
|
|
19688
19690
|
imageLargeBreakPoint: 3
|
|
19689
19691
|
}
|
|
19690
19692
|
)
|
|
@@ -19706,12 +19708,12 @@ const HC = ({
|
|
|
19706
19708
|
)
|
|
19707
19709
|
}
|
|
19708
19710
|
),
|
|
19709
|
-
image:
|
|
19711
|
+
image: Re.NOTIFICATIONS_OVERVIEW,
|
|
19710
19712
|
sx: { pt: 8 }
|
|
19711
19713
|
}
|
|
19712
19714
|
),
|
|
19713
19715
|
/* @__PURE__ */ t(
|
|
19714
|
-
|
|
19716
|
+
xe,
|
|
19715
19717
|
{
|
|
19716
19718
|
content: e.notifications_overview.managing_notifications_section_title,
|
|
19717
19719
|
sx: { pt: 48 }
|
|
@@ -19741,14 +19743,14 @@ const HC = ({
|
|
|
19741
19743
|
subListType: "ul"
|
|
19742
19744
|
}
|
|
19743
19745
|
) }),
|
|
19744
|
-
image:
|
|
19746
|
+
image: Re.NOTIFICATIONS_MANAGING
|
|
19745
19747
|
}
|
|
19746
19748
|
),
|
|
19747
19749
|
/* @__PURE__ */ t(
|
|
19748
19750
|
at,
|
|
19749
19751
|
{
|
|
19750
19752
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19751
|
-
/* @__PURE__ */ t(
|
|
19753
|
+
/* @__PURE__ */ t(xe, { content: e.notifications_overview.notification_work_section_title }),
|
|
19752
19754
|
/* @__PURE__ */ t(
|
|
19753
19755
|
ie,
|
|
19754
19756
|
{
|
|
@@ -19780,7 +19782,7 @@ const HC = ({
|
|
|
19780
19782
|
at,
|
|
19781
19783
|
{
|
|
19782
19784
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19783
|
-
/* @__PURE__ */ t(
|
|
19785
|
+
/* @__PURE__ */ t(xe, { content: e.notifications_overview.verify_email_section_title }),
|
|
19784
19786
|
/* @__PURE__ */ t(
|
|
19785
19787
|
ie,
|
|
19786
19788
|
{
|
|
@@ -19814,7 +19816,7 @@ const HC = ({
|
|
|
19814
19816
|
)
|
|
19815
19817
|
}
|
|
19816
19818
|
),
|
|
19817
|
-
image:
|
|
19819
|
+
image: Re.RECURRING_TRANSACTIONS_OVERVIEW,
|
|
19818
19820
|
imageLargeBreakPoint: 7,
|
|
19819
19821
|
sx: { pt: 24 }
|
|
19820
19822
|
}
|
|
@@ -19851,7 +19853,7 @@ const HC = ({
|
|
|
19851
19853
|
),
|
|
19852
19854
|
/* @__PURE__ */ t($, { content: n.edit_recurring_transaction_dec_2 })
|
|
19853
19855
|
] }),
|
|
19854
|
-
image:
|
|
19856
|
+
image: Re.RECURRING_TRANSACTIONS_MANAGE_EXPENSES
|
|
19855
19857
|
}
|
|
19856
19858
|
),
|
|
19857
19859
|
paymentFrequencySection: /* @__PURE__ */ t(
|
|
@@ -19878,17 +19880,17 @@ const HC = ({
|
|
|
19878
19880
|
/* @__PURE__ */ t($, { content: n.payment_frequency_dec_2, sx: { pt: 24 } })
|
|
19879
19881
|
] }),
|
|
19880
19882
|
hasDivider: !1,
|
|
19881
|
-
image:
|
|
19883
|
+
image: Re.RECURRING_TRANSACTIONS_EXPENSE_DETAILS
|
|
19882
19884
|
}
|
|
19883
19885
|
)
|
|
19884
19886
|
};
|
|
19885
19887
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19886
19888
|
i.overviewSsction,
|
|
19887
|
-
/* @__PURE__ */ t(
|
|
19889
|
+
/* @__PURE__ */ t(xe, { content: n.calendar_title, sx: { pt: 48 } }),
|
|
19888
19890
|
i.calendarSection,
|
|
19889
|
-
/* @__PURE__ */ t(
|
|
19891
|
+
/* @__PURE__ */ t(xe, { content: n.edit_recurring_transaction_title, sx: { pt: 48 } }),
|
|
19890
19892
|
i.editSsction,
|
|
19891
|
-
/* @__PURE__ */ t(
|
|
19893
|
+
/* @__PURE__ */ t(xe, { content: n.payment_frequency_title, sx: { pt: 48 } }),
|
|
19892
19894
|
i.paymentFrequencySection
|
|
19893
19895
|
] });
|
|
19894
19896
|
}, hf = ({ copy: e, topicKey: n }) => {
|
|
@@ -19916,7 +19918,7 @@ const HC = ({
|
|
|
19916
19918
|
}
|
|
19917
19919
|
)
|
|
19918
19920
|
] }),
|
|
19919
|
-
image:
|
|
19921
|
+
image: Re.SPENDING_WIDGET,
|
|
19920
19922
|
imageLargeBreakPoint: 8,
|
|
19921
19923
|
sx: { pt: 48 }
|
|
19922
19924
|
}
|
|
@@ -19925,7 +19927,7 @@ const HC = ({
|
|
|
19925
19927
|
at,
|
|
19926
19928
|
{
|
|
19927
19929
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19928
|
-
/* @__PURE__ */ t(
|
|
19930
|
+
/* @__PURE__ */ t(xe, { content: i.date_range_section_title }),
|
|
19929
19931
|
/* @__PURE__ */ t($, { content: i.date_range_section }),
|
|
19930
19932
|
/* @__PURE__ */ t(
|
|
19931
19933
|
ie,
|
|
@@ -20021,13 +20023,13 @@ const HC = ({
|
|
|
20021
20023
|
}
|
|
20022
20024
|
)
|
|
20023
20025
|
] }),
|
|
20024
|
-
image:
|
|
20026
|
+
image: Re.TRANSACTIONS_OVERVIEW,
|
|
20025
20027
|
imageLargeBreakPoint: 8,
|
|
20026
20028
|
sx: { pt: 24 }
|
|
20027
20029
|
}
|
|
20028
20030
|
),
|
|
20029
20031
|
/* @__PURE__ */ t(
|
|
20030
|
-
|
|
20032
|
+
xe,
|
|
20031
20033
|
{
|
|
20032
20034
|
content: e.transactions_widget_overview.edit_transactions_title,
|
|
20033
20035
|
sx: { pt: 48 }
|
|
@@ -20075,11 +20077,11 @@ const HC = ({
|
|
|
20075
20077
|
}
|
|
20076
20078
|
)
|
|
20077
20079
|
] }),
|
|
20078
|
-
image:
|
|
20080
|
+
image: Re.TRANSACTIONS_EDIT
|
|
20079
20081
|
}
|
|
20080
20082
|
),
|
|
20081
20083
|
/* @__PURE__ */ t(
|
|
20082
|
-
|
|
20084
|
+
xe,
|
|
20083
20085
|
{
|
|
20084
20086
|
content: e.transactions_widget_overview.categorizing_transactions_title,
|
|
20085
20087
|
sx: { pt: 48 }
|
|
@@ -20117,12 +20119,12 @@ const HC = ({
|
|
|
20117
20119
|
}
|
|
20118
20120
|
)
|
|
20119
20121
|
] }),
|
|
20120
|
-
image:
|
|
20122
|
+
image: Re.TRANSACTIONS_CATEGORIZE,
|
|
20121
20123
|
imageLargeBreakPoint: 10
|
|
20122
20124
|
}
|
|
20123
20125
|
),
|
|
20124
20126
|
/* @__PURE__ */ t(
|
|
20125
|
-
|
|
20127
|
+
xe,
|
|
20126
20128
|
{
|
|
20127
20129
|
content: e.transactions_widget_overview.transaction_rules_title,
|
|
20128
20130
|
sx: { pt: 48 }
|
|
@@ -20203,7 +20205,7 @@ const HC = ({
|
|
|
20203
20205
|
}
|
|
20204
20206
|
)
|
|
20205
20207
|
] }),
|
|
20206
|
-
image:
|
|
20208
|
+
image: Re.TRANSACTIONS_RULES,
|
|
20207
20209
|
imageLargeBreakPoint: 10
|
|
20208
20210
|
}
|
|
20209
20211
|
),
|
|
@@ -20211,7 +20213,7 @@ const HC = ({
|
|
|
20211
20213
|
at,
|
|
20212
20214
|
{
|
|
20213
20215
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20214
|
-
/* @__PURE__ */ t(
|
|
20216
|
+
/* @__PURE__ */ t(xe, { content: e.transactions_widget_overview.split_transactions_title }),
|
|
20215
20217
|
/* @__PURE__ */ t($, { content: e.transactions_widget_overview.split_transactions_description }),
|
|
20216
20218
|
/* @__PURE__ */ t(
|
|
20217
20219
|
$,
|
|
@@ -20363,7 +20365,7 @@ const HC = ({
|
|
|
20363
20365
|
)
|
|
20364
20366
|
] }),
|
|
20365
20367
|
hasDivider: !1,
|
|
20366
|
-
image:
|
|
20368
|
+
image: Re.TRANSACTIONS_EXPORT,
|
|
20367
20369
|
imageLargeBreakPoint: 10,
|
|
20368
20370
|
sx: { pt: 24 }
|
|
20369
20371
|
}
|
|
@@ -20395,7 +20397,7 @@ const HC = ({
|
|
|
20395
20397
|
}
|
|
20396
20398
|
)
|
|
20397
20399
|
] }),
|
|
20398
|
-
image:
|
|
20400
|
+
image: Re.TRENDS_WIDGET,
|
|
20399
20401
|
imageLargeBreakPoint: 10,
|
|
20400
20402
|
sx: { pt: 24 }
|
|
20401
20403
|
}
|
|
@@ -20404,7 +20406,7 @@ const HC = ({
|
|
|
20404
20406
|
at,
|
|
20405
20407
|
{
|
|
20406
20408
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20407
|
-
/* @__PURE__ */ t(
|
|
20409
|
+
/* @__PURE__ */ t(xe, { content: e.trends_widget_overview.exploring_trends_title }),
|
|
20408
20410
|
/* @__PURE__ */ t(
|
|
20409
20411
|
ie,
|
|
20410
20412
|
{
|
|
@@ -20424,7 +20426,7 @@ const HC = ({
|
|
|
20424
20426
|
at,
|
|
20425
20427
|
{
|
|
20426
20428
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20427
|
-
/* @__PURE__ */ t(
|
|
20429
|
+
/* @__PURE__ */ t(xe, { content: e.trends_widget_overview.list_view_title }),
|
|
20428
20430
|
/* @__PURE__ */ t($, { content: e.trends_widget_overview.list_view_description }),
|
|
20429
20431
|
/* @__PURE__ */ t(
|
|
20430
20432
|
ie,
|
|
@@ -20449,7 +20451,7 @@ const HC = ({
|
|
|
20449
20451
|
at,
|
|
20450
20452
|
{
|
|
20451
20453
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20452
|
-
/* @__PURE__ */ t(
|
|
20454
|
+
/* @__PURE__ */ t(xe, { content: i.insights_work_section_title }),
|
|
20453
20455
|
/* @__PURE__ */ t($, { content: i.insights_work_description }),
|
|
20454
20456
|
/* @__PURE__ */ t(
|
|
20455
20457
|
ie,
|
|
@@ -20480,7 +20482,7 @@ const HC = ({
|
|
|
20480
20482
|
sx: { pt: 8 }
|
|
20481
20483
|
}
|
|
20482
20484
|
),
|
|
20483
|
-
/* @__PURE__ */ t(
|
|
20485
|
+
/* @__PURE__ */ t(xe, { content: i.dashboard_insights_section_title, sx: { mt: 48 } }),
|
|
20484
20486
|
/* @__PURE__ */ t(
|
|
20485
20487
|
on,
|
|
20486
20488
|
{
|
|
@@ -20499,10 +20501,10 @@ const HC = ({
|
|
|
20499
20501
|
),
|
|
20500
20502
|
/* @__PURE__ */ t($, { content: i.dashboard_insights_content_2, sx: { pt: 12 } })
|
|
20501
20503
|
] }),
|
|
20502
|
-
image:
|
|
20504
|
+
image: Re.INSIGHTS_CAROUSEL
|
|
20503
20505
|
}
|
|
20504
20506
|
),
|
|
20505
|
-
/* @__PURE__ */ t(
|
|
20507
|
+
/* @__PURE__ */ t(xe, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
|
20506
20508
|
/* @__PURE__ */ t(
|
|
20507
20509
|
Gt,
|
|
20508
20510
|
{
|
|
@@ -20539,11 +20541,11 @@ const HC = ({
|
|
|
20539
20541
|
}
|
|
20540
20542
|
)
|
|
20541
20543
|
] }),
|
|
20542
|
-
image:
|
|
20544
|
+
image: Re.INSIGHTS_FEED,
|
|
20543
20545
|
imageLargeBreakPoint: 3
|
|
20544
20546
|
}
|
|
20545
20547
|
),
|
|
20546
|
-
/* @__PURE__ */ t(
|
|
20548
|
+
/* @__PURE__ */ t(xe, { content: i.hide_insights_section_title, sx: { mt: 48 } }),
|
|
20547
20549
|
/* @__PURE__ */ t(
|
|
20548
20550
|
at,
|
|
20549
20551
|
{
|
|
@@ -20752,7 +20754,7 @@ const HC = ({
|
|
|
20752
20754
|
p: 0
|
|
20753
20755
|
},
|
|
20754
20756
|
children: /* @__PURE__ */ t(oe, { sx: { "& .MuiListItemButton-root": { pl: 6 } }, children: r.map(({ label: d, type: u }, _) => /* @__PURE__ */ t(
|
|
20755
|
-
|
|
20757
|
+
ge,
|
|
20756
20758
|
{
|
|
20757
20759
|
divider: !0,
|
|
20758
20760
|
onClick: () => n(d, u),
|
|
@@ -20871,7 +20873,7 @@ const HC = ({
|
|
|
20871
20873
|
subtitle: i,
|
|
20872
20874
|
guid: a,
|
|
20873
20875
|
sx: o
|
|
20874
|
-
}) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
20876
|
+
}) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ge, { "aria-label": e, onClick: n, children: [
|
|
20875
20877
|
a && /* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(St, { alt: e, institutionGuid: a || "", size: 32 }) }),
|
|
20876
20878
|
/* @__PURE__ */ t(
|
|
20877
20879
|
re,
|
|
@@ -21219,7 +21221,7 @@ const HC = ({
|
|
|
21219
21221
|
}
|
|
21220
21222
|
)
|
|
21221
21223
|
] });
|
|
21222
|
-
},
|
|
21224
|
+
}, n2 = x(({ sx: e }) => {
|
|
21223
21225
|
const { isCopyLoaded: n, isInitialized: i } = _e();
|
|
21224
21226
|
return !n || !i ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(ft, { sx: { p: 16 }, children: /* @__PURE__ */ t(ml, { sx: e }) });
|
|
21225
21227
|
}), Nf = x(({ selectedTab: e }) => {
|
|
@@ -21255,7 +21257,7 @@ const HC = ({
|
|
|
21255
21257
|
] });
|
|
21256
21258
|
});
|
|
21257
21259
|
var ai = /* @__PURE__ */ ((e) => (e[e.Profile = 0] = "Profile", e[e.Devices = 1] = "Devices", e[e.Notifications = 2] = "Notifications", e[e.TransactionRules = 3] = "TransactionRules", e[e.Help = 4] = "Help", e))(ai || {});
|
|
21258
|
-
const
|
|
21260
|
+
const i2 = x(({ onBackClick: e, sx: n }) => {
|
|
21259
21261
|
const { settings: i } = A(), { isCopyLoaded: a, isInitialized: o } = _e(), { config: r } = It(), { isMobile: s } = be(), {
|
|
21260
21262
|
display_user_profile_in_settings: c,
|
|
21261
21263
|
display_mobile_devices_in_settings: d,
|
|
@@ -21293,13 +21295,13 @@ const iT = x(({ onBackClick: e, sx: n }) => {
|
|
|
21293
21295
|
] })
|
|
21294
21296
|
}
|
|
21295
21297
|
);
|
|
21296
|
-
}),
|
|
21298
|
+
}), a2 = x((e) => {
|
|
21297
21299
|
const { clientConfig: n } = It(), i = n?.master?.deep_link_params?.view;
|
|
21298
21300
|
return i ? /* @__PURE__ */ t(da, { view: i }) : /* @__PURE__ */ t(ft, { ...e, children: /* @__PURE__ */ t(b, { my: 24, children: /* @__PURE__ */ t(da, {}) }) });
|
|
21299
|
-
}),
|
|
21301
|
+
}), o2 = (e) => {
|
|
21300
21302
|
const { isMobile: n } = be();
|
|
21301
21303
|
return /* @__PURE__ */ t(ft, { ...e, children: /* @__PURE__ */ t(b, { sx: { mx: n ? 0 : 48, my: 24 }, children: /* @__PURE__ */ t(ul, {}) }) });
|
|
21302
|
-
},
|
|
21304
|
+
}, r2 = x(
|
|
21303
21305
|
({ notificationTypes: e, isOpen: n, onClose: i, onNotificationClick: a }) => {
|
|
21304
21306
|
const { config: o } = It(), { notifications: r, settings: s } = A(), { isCopyLoaded: c } = _e(), [d, u] = g.useState(!1);
|
|
21305
21307
|
return c ? /* @__PURE__ */ l(q, { children: [
|
|
@@ -21636,7 +21638,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21636
21638
|
isOpen: i,
|
|
21637
21639
|
onClose: a
|
|
21638
21640
|
}) => {
|
|
21639
|
-
const { onEvent: o } = X(), { selectedAccountGuids: r } = _e(), { common: s } = A(), { setFilter: c, sortedTransactions: d } =
|
|
21641
|
+
const { onEvent: o } = X(), { selectedAccountGuids: r } = _e(), { common: s } = A(), { setFilter: c, sortedTransactions: d } = ke(), [u, _] = g.useState(""), h = g.useMemo(
|
|
21640
21642
|
() => d.find((p) => p.guid === u),
|
|
21641
21643
|
[u, d]
|
|
21642
21644
|
);
|
|
@@ -21664,7 +21666,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21664
21666
|
}
|
|
21665
21667
|
);
|
|
21666
21668
|
}, bl = x($f), Uf = ({ onBackClick: e, sx: n }) => {
|
|
21667
|
-
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = be(), { visibleAccounts: s } = ye(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: u } = $e(), { sortedTransactions: _ } =
|
|
21669
|
+
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = be(), { visibleAccounts: s } = ye(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: u } = $e(), { sortedTransactions: _ } = ke(), { selectedDateRange: h, setSelectedDateRange: m } = gi(), { isCopyLoaded: p, isInitialized: C, selectedAccounts: S, setSelectedAccounts: y } = _e(), { trends: E } = A(), [I, v] = g.useState(!1), [w, N] = g.useState(!1), [R, M] = g.useState("Chart"), [k, G] = g.useState(""), [L, W] = g.useState(window.innerHeight), se = L - (r ? 315 : 345);
|
|
21668
21670
|
g.useEffect(() => {
|
|
21669
21671
|
const Q = () => W(window.innerHeight);
|
|
21670
21672
|
return window.addEventListener("resize", Q), () => window.removeEventListener("resize", Q);
|
|
@@ -21686,40 +21688,40 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21686
21688
|
h.start,
|
|
21687
21689
|
h.end
|
|
21688
21690
|
), Ee = k.length ? Q.filter(
|
|
21689
|
-
(
|
|
21691
|
+
(fe) => fe.top_level_category_guid === k || fe.category_guid === k
|
|
21690
21692
|
) : Km(Q);
|
|
21691
21693
|
return {
|
|
21692
21694
|
stackedDatasets: Ee.filter(Um),
|
|
21693
21695
|
unstackedDatasets: Ee.filter(Da)
|
|
21694
21696
|
};
|
|
21695
|
-
}, [d, k, h]),
|
|
21697
|
+
}, [d, k, h]), pe = (Q, Ee) => {
|
|
21696
21698
|
M(Ee ?? R), i(F.TRENDS_CLICK_TOGGLE);
|
|
21697
|
-
},
|
|
21698
|
-
const Ee = go(Q?.[0], 1),
|
|
21699
|
-
m({ start: Ee, end:
|
|
21699
|
+
}, Oe = (Q) => {
|
|
21700
|
+
const Ee = go(Q?.[0], 1), fe = Q?.[1], _t = Qs(fe, Ee);
|
|
21701
|
+
m({ start: Ee, end: fe }), i(F.TRENDS_CLICK_DATE, {
|
|
21700
21702
|
time_period: _t + "M"
|
|
21701
21703
|
});
|
|
21702
|
-
},
|
|
21704
|
+
}, Le = () => {
|
|
21703
21705
|
i(F.TRENDS_CLICK_FILTER);
|
|
21704
|
-
},
|
|
21706
|
+
}, he = (Q) => {
|
|
21705
21707
|
G(Q);
|
|
21706
|
-
},
|
|
21708
|
+
}, me = (Q) => {
|
|
21707
21709
|
G(Q), i(F.TRENDS_CLICK_LEGEND, { category: u(Q) });
|
|
21708
21710
|
}, ze = (Q) => {
|
|
21709
21711
|
i(F.TRENDS_HOVER_LEGEND, { category: u(Q) });
|
|
21710
21712
|
}, V = (Q) => {
|
|
21711
21713
|
i(F.TRENDS_HOVER_AREA, { category: Q });
|
|
21712
|
-
},
|
|
21714
|
+
}, Ce = (Q) => {
|
|
21713
21715
|
i(F.TRENDS_HOVER_POINT, { category: Q });
|
|
21714
21716
|
};
|
|
21715
21717
|
return !p || !C || !I ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
|
21716
21718
|
ft,
|
|
21717
21719
|
{
|
|
21718
21720
|
accountOptions: s,
|
|
21719
|
-
calendarActions: { onRangeChanged:
|
|
21721
|
+
calendarActions: { onRangeChanged: Oe },
|
|
21720
21722
|
dateRange: h,
|
|
21721
21723
|
dateRangeVariant: "timeframebuttons",
|
|
21722
|
-
onAccountsFilterClick:
|
|
21724
|
+
onAccountsFilterClick: Le,
|
|
21723
21725
|
onBackClick: e,
|
|
21724
21726
|
sx: n,
|
|
21725
21727
|
title: E.title,
|
|
@@ -21746,7 +21748,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21746
21748
|
selectedDateRange: h
|
|
21747
21749
|
}
|
|
21748
21750
|
),
|
|
21749
|
-
/* @__PURE__ */ t(pl, { onTabChange:
|
|
21751
|
+
/* @__PURE__ */ t(pl, { onTabChange: pe, selectedTab: R })
|
|
21750
21752
|
]
|
|
21751
21753
|
}
|
|
21752
21754
|
),
|
|
@@ -21762,10 +21764,10 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21762
21764
|
wu,
|
|
21763
21765
|
{
|
|
21764
21766
|
availableHeight: se,
|
|
21765
|
-
onClickLegend:
|
|
21767
|
+
onClickLegend: me,
|
|
21766
21768
|
onHoverArea: V,
|
|
21767
21769
|
onHoverLegend: ze,
|
|
21768
|
-
onHoverPoint:
|
|
21770
|
+
onHoverPoint: Ce,
|
|
21769
21771
|
stackedDatasets: ee.stackedDatasets,
|
|
21770
21772
|
unstackedDatasets: ee.unstackedDatasets
|
|
21771
21773
|
}
|
|
@@ -21774,7 +21776,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21774
21776
|
fl,
|
|
21775
21777
|
{
|
|
21776
21778
|
monthlyCategoryTotals: d,
|
|
21777
|
-
onClickRow:
|
|
21779
|
+
onClickRow: he,
|
|
21778
21780
|
selectedCategory: k,
|
|
21779
21781
|
selectedDateRange: h
|
|
21780
21782
|
}
|
|
@@ -21795,7 +21797,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21795
21797
|
]
|
|
21796
21798
|
}
|
|
21797
21799
|
);
|
|
21798
|
-
},
|
|
21800
|
+
}, s2 = x(Uf), Vf = () => {
|
|
21799
21801
|
const e = Ze(), { monthlyCategoryTotals: n } = $e(), { trends: i } = A(), a = Ym(n);
|
|
21800
21802
|
return /* @__PURE__ */ t(
|
|
21801
21803
|
mi,
|
|
@@ -21830,7 +21832,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21830
21832
|
children: o ? /* @__PURE__ */ t(Kf, {}) : /* @__PURE__ */ t(ue, {})
|
|
21831
21833
|
}
|
|
21832
21834
|
);
|
|
21833
|
-
},
|
|
21835
|
+
}, c2 = x(zf), Yf = 70, ps = ({
|
|
21834
21836
|
title: e,
|
|
21835
21837
|
totalAmount: n,
|
|
21836
21838
|
transactionType: i,
|
|
@@ -21923,7 +21925,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21923
21925
|
/* @__PURE__ */ t(ne, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
|
|
21924
21926
|
] })
|
|
21925
21927
|
] });
|
|
21926
|
-
}),
|
|
21928
|
+
}), l2 = x(({ onCtaClick: e }) => {
|
|
21927
21929
|
const { visibleAccounts: n } = ye(), { onEvent: i } = X(), { monthlyCategoryTotals: a, loadMonthlyCategoryTotals: o, monthlyTotalsLoaded: r } = $e(), s = {
|
|
21928
21930
|
start: Vd(/* @__PURE__ */ new Date(), 1),
|
|
21929
21931
|
end: /* @__PURE__ */ new Date()
|
|
@@ -21995,7 +21997,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
21995
21997
|
}), Xf = x(
|
|
21996
21998
|
({ isExpanded: e, onClick: n }) => {
|
|
21997
21999
|
const i = Ae();
|
|
21998
|
-
return /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(
|
|
22000
|
+
return /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ge, { onClick: n, sx: { justifyContent: "center" }, children: /* @__PURE__ */ l(
|
|
21999
22001
|
b,
|
|
22000
22002
|
{
|
|
22001
22003
|
sx: { color: i.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
@@ -22048,7 +22050,7 @@ const Mf = (e) => e.reduce((i, a) => {
|
|
|
22048
22050
|
) })
|
|
22049
22051
|
] });
|
|
22050
22052
|
return /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper" }, children: e ? /* @__PURE__ */ t(
|
|
22051
|
-
|
|
22053
|
+
ge,
|
|
22052
22054
|
{
|
|
22053
22055
|
onClick: e,
|
|
22054
22056
|
sx: {
|
|
@@ -23563,11 +23565,11 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23563
23565
|
const C = g.useRef(null), S = g.useRef(null), [y, E] = g.useState(0), [I, v] = g.useState(null), [w, N] = g.useState(null), [R, M] = g.useState(null), [k, G] = g.useState(c), { carouselCopy: L } = Vn(), { onEvent: W } = Ui();
|
|
23564
23566
|
g.useEffect(() => {
|
|
23565
23567
|
if (C.current && !e) {
|
|
23566
|
-
const V = C.current.offsetWidth,
|
|
23568
|
+
const V = C.current.offsetWidth, Ce = 8;
|
|
23567
23569
|
let Q;
|
|
23568
23570
|
if (p > 1) {
|
|
23569
|
-
const
|
|
23570
|
-
Q = (V -
|
|
23571
|
+
const fe = (V - (p - 1) * Ce) / p / 3;
|
|
23572
|
+
Q = (V - fe - (p - 1) * Ce) / p;
|
|
23571
23573
|
} else
|
|
23572
23574
|
Q = V;
|
|
23573
23575
|
M(Q);
|
|
@@ -23575,7 +23577,7 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23575
23577
|
}, [p, C.current?.offsetWidth]), g.useEffect(() => {
|
|
23576
23578
|
const V = S.current?.offsetWidth;
|
|
23577
23579
|
if (typeof V == "number" && e) {
|
|
23578
|
-
const
|
|
23580
|
+
const Ce = (Ee) => {
|
|
23579
23581
|
G(!0);
|
|
23580
23582
|
const _t = [
|
|
23581
23583
|
{ maxWidth: 375, cardWidth: 268 },
|
|
@@ -23586,10 +23588,10 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23586
23588
|
].find((tn) => Ee <= tn.maxWidth);
|
|
23587
23589
|
return _t ? _t.cardWidth : 750;
|
|
23588
23590
|
};
|
|
23589
|
-
M(
|
|
23591
|
+
M(Ce(V));
|
|
23590
23592
|
const Q = () => {
|
|
23591
23593
|
const Ee = S.current?.offsetWidth;
|
|
23592
|
-
typeof Ee == "number" && M(
|
|
23594
|
+
typeof Ee == "number" && M(Ce(Ee));
|
|
23593
23595
|
};
|
|
23594
23596
|
return window.addEventListener("resize", Q), () => {
|
|
23595
23597
|
window.removeEventListener("resize", Q);
|
|
@@ -23610,21 +23612,21 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23610
23612
|
});
|
|
23611
23613
|
}, ee = () => {
|
|
23612
23614
|
C.current && E(C.current.scrollLeft);
|
|
23613
|
-
},
|
|
23615
|
+
}, pe = () => {
|
|
23614
23616
|
if (!w || !I) return;
|
|
23615
23617
|
w - I > g0 ? W(zt.ON_CAROUSEL_FORWARD_SWIPE) : W(zt.ON_CAROUSEL_BACK_SWIPE);
|
|
23616
|
-
},
|
|
23618
|
+
}, Oe = (V) => {
|
|
23617
23619
|
v(V.targetTouches[0].clientX);
|
|
23618
|
-
},
|
|
23620
|
+
}, Le = (V) => {
|
|
23619
23621
|
v(null), N(V.targetTouches[0].clientX);
|
|
23620
|
-
},
|
|
23622
|
+
}, he = {
|
|
23621
23623
|
clientColorScheme: i,
|
|
23622
23624
|
showCTAColocatedWithText: a,
|
|
23623
23625
|
heightOverrides: o,
|
|
23624
23626
|
posthog: s,
|
|
23625
23627
|
showIcon: u,
|
|
23626
23628
|
variant: h
|
|
23627
|
-
},
|
|
23629
|
+
}, me = R ? Math.round(y / (R + 8)) : 0, ze = C.current ? C.current.scrollWidth - C.current.offsetWidth : 0;
|
|
23628
23630
|
return /* @__PURE__ */ l(
|
|
23629
23631
|
b,
|
|
23630
23632
|
{
|
|
@@ -23644,9 +23646,9 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23644
23646
|
{
|
|
23645
23647
|
direction: "row",
|
|
23646
23648
|
onScroll: ee,
|
|
23647
|
-
onTouchEnd:
|
|
23648
|
-
onTouchMove:
|
|
23649
|
-
onTouchStart:
|
|
23649
|
+
onTouchEnd: pe,
|
|
23650
|
+
onTouchMove: Oe,
|
|
23651
|
+
onTouchStart: Le,
|
|
23650
23652
|
ref: C,
|
|
23651
23653
|
sx: {
|
|
23652
23654
|
alignItems: "center",
|
|
@@ -23666,8 +23668,8 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23666
23668
|
}
|
|
23667
23669
|
},
|
|
23668
23670
|
children: [
|
|
23669
|
-
n.map((V,
|
|
23670
|
-
const Q =
|
|
23671
|
+
n.map((V, Ce) => {
|
|
23672
|
+
const Q = Ce + 1, Ee = n.length + 1, fe = T(
|
|
23671
23673
|
L.card_position_in_carousel_aria,
|
|
23672
23674
|
Q.toString(),
|
|
23673
23675
|
Ee.toString()
|
|
@@ -23675,24 +23677,24 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23675
23677
|
return /* @__PURE__ */ t(
|
|
23676
23678
|
m0,
|
|
23677
23679
|
{
|
|
23678
|
-
ariaLabel: `${
|
|
23680
|
+
ariaLabel: `${fe}: ${Kn}, ${Y}`,
|
|
23679
23681
|
beat: V,
|
|
23680
|
-
index:
|
|
23681
|
-
isActiveCard:
|
|
23682
|
+
index: Ce,
|
|
23683
|
+
isActiveCard: Ce === me,
|
|
23682
23684
|
onCardClick: r,
|
|
23683
23685
|
widthOverrides: R || void 0,
|
|
23684
|
-
...
|
|
23686
|
+
...he
|
|
23685
23687
|
},
|
|
23686
|
-
`${V.guid} ${
|
|
23688
|
+
`${V.guid} ${Ce}`
|
|
23687
23689
|
);
|
|
23688
23690
|
}),
|
|
23689
23691
|
/* @__PURE__ */ t(
|
|
23690
23692
|
I0,
|
|
23691
23693
|
{
|
|
23692
|
-
isActiveCard:
|
|
23694
|
+
isActiveCard: me === n.length,
|
|
23693
23695
|
onCardClick: r,
|
|
23694
23696
|
widthOverrides: R || void 0,
|
|
23695
|
-
...
|
|
23697
|
+
...he
|
|
23696
23698
|
}
|
|
23697
23699
|
)
|
|
23698
23700
|
]
|
|
@@ -23702,7 +23704,7 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23702
23704
|
p0,
|
|
23703
23705
|
{
|
|
23704
23706
|
clientColorScheme: i,
|
|
23705
|
-
currentBeatIndex:
|
|
23707
|
+
currentBeatIndex: me + p - 1,
|
|
23706
23708
|
numBeats: n.length + 1,
|
|
23707
23709
|
onNextClick: K,
|
|
23708
23710
|
onPreviousClick: se,
|
|
@@ -23859,7 +23861,7 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23859
23861
|
widthOverrides: u
|
|
23860
23862
|
}
|
|
23861
23863
|
);
|
|
23862
|
-
},
|
|
23864
|
+
}, d2 = x(wl), Dl = ({
|
|
23863
23865
|
ariaLabel: e,
|
|
23864
23866
|
carouselSize: n,
|
|
23865
23867
|
heightOverrides: i,
|
|
@@ -23901,7 +23903,7 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23901
23903
|
widthOverrides: d
|
|
23902
23904
|
}
|
|
23903
23905
|
);
|
|
23904
|
-
},
|
|
23906
|
+
}, _2 = x(Dl), E0 = () => /* @__PURE__ */ t(
|
|
23905
23907
|
O,
|
|
23906
23908
|
{
|
|
23907
23909
|
sx: {
|
|
@@ -23948,12 +23950,12 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23948
23950
|
g.useEffect(() => {
|
|
23949
23951
|
Sn.isInitialized || Sn.initialize(r, I, c);
|
|
23950
23952
|
}, [r, I, c, Sn.isInitialized]), g.useEffect(() => {
|
|
23951
|
-
const
|
|
23952
|
-
|
|
23953
|
+
const Le = window.innerHeight;
|
|
23954
|
+
Le < 180 ? L("STANDARD") : Le >= 180 && Le < 200 ? L("LARGE") : Le >= 200 && Le < 248 ? L("XLARGE") : Le >= 248 && L("XXLARGE");
|
|
23953
23955
|
}, [window.innerHeight]), g.useEffect(() => {
|
|
23954
23956
|
K(!n && Sn.isInitialized);
|
|
23955
23957
|
}, [n, Sn.isInitialized]);
|
|
23956
|
-
const
|
|
23958
|
+
const pe = {
|
|
23957
23959
|
showCTAColocatedWithText: o,
|
|
23958
23960
|
heightOverrides: s,
|
|
23959
23961
|
onCardClick: d,
|
|
@@ -23962,10 +23964,10 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23962
23964
|
showWithMargin: E,
|
|
23963
23965
|
useDarkMode: v,
|
|
23964
23966
|
widthOverrides: M
|
|
23965
|
-
},
|
|
23967
|
+
}, Oe = {
|
|
23966
23968
|
carouselSize: G,
|
|
23967
23969
|
variant: N,
|
|
23968
|
-
...
|
|
23970
|
+
...pe
|
|
23969
23971
|
};
|
|
23970
23972
|
return (
|
|
23971
23973
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
@@ -23992,11 +23994,11 @@ const $i = g.createContext(null), a0 = ({
|
|
|
23992
23994
|
showCarouselControls: C,
|
|
23993
23995
|
variant: p ? N : void 0,
|
|
23994
23996
|
visibleCardsCount: R,
|
|
23995
|
-
...
|
|
23997
|
+
...pe
|
|
23996
23998
|
}
|
|
23997
23999
|
),
|
|
23998
|
-
W && !i.length && w && /* @__PURE__ */ t(wl, { clientColorScheme: a, ...
|
|
23999
|
-
W && !i.length && !w && /* @__PURE__ */ t(Dl, { ...
|
|
24000
|
+
W && !i.length && w && /* @__PURE__ */ t(wl, { clientColorScheme: a, ...Oe }),
|
|
24001
|
+
W && !i.length && !w && /* @__PURE__ */ t(Dl, { ...Oe })
|
|
24000
24002
|
] }) })
|
|
24001
24003
|
] })
|
|
24002
24004
|
);
|
|
@@ -24266,13 +24268,13 @@ const $i = g.createContext(null), a0 = ({
|
|
|
24266
24268
|
}
|
|
24267
24269
|
);
|
|
24268
24270
|
}, G0 = x(k0), B0 = ({ onBackClick: e, onInsightCardClick: n, sx: i }) => {
|
|
24269
|
-
const { onEvent: a } = X(), o = Ze(), { isLargeDesktop: r, isDesktop: s, isMobile: c } = be(), { visibleAccounts: d } = ye(), { loadMonthlyCategoryTotals: u, monthlyCategoryTotals: _ } = $e(), { setFilter: h, sortedTransactions: m } =
|
|
24271
|
+
const { onEvent: a } = X(), o = Ze(), { isLargeDesktop: r, isDesktop: s, isMobile: c } = be(), { visibleAccounts: d } = ye(), { loadMonthlyCategoryTotals: u, monthlyCategoryTotals: _ } = $e(), { setFilter: h, sortedTransactions: m } = ke(), { selectedDateRange: p, setSelectedCategoryData: C, setSelectedDateRange: S } = gi(), {
|
|
24270
24272
|
isCopyLoaded: y,
|
|
24271
24273
|
isInitialized: E,
|
|
24272
24274
|
selectedAccounts: I,
|
|
24273
24275
|
selectedAccountGuids: v,
|
|
24274
24276
|
setSelectedAccounts: w
|
|
24275
|
-
} = _e(), { trends: N } = A(), R = q_(), M = s || r, [k, G] = g.useState(!1), [L, W] = g.useState(!1), [K, se] = g.useState("Chart"), [ee,
|
|
24277
|
+
} = _e(), { trends: N } = A(), R = q_(), M = s || r, [k, G] = g.useState(!1), [L, W] = g.useState(!1), [K, se] = g.useState("Chart"), [ee, pe] = g.useState(""), [Oe, Le] = g.useState(!1);
|
|
24276
24278
|
g.useEffect(() => {
|
|
24277
24279
|
w(d);
|
|
24278
24280
|
}, [d]), g.useEffect(() => {
|
|
@@ -24291,28 +24293,28 @@ const $i = g.createContext(null), a0 = ({
|
|
|
24291
24293
|
};
|
|
24292
24294
|
h({
|
|
24293
24295
|
...Ee,
|
|
24294
|
-
custom: (
|
|
24295
|
-
(_t) => _t.top_level_category_guid ===
|
|
24296
|
+
custom: (fe) => !!_.find(
|
|
24297
|
+
(_t) => _t.top_level_category_guid === fe.top_level_category_guid || _t.category_guid === fe.category_guid
|
|
24296
24298
|
)
|
|
24297
24299
|
});
|
|
24298
24300
|
}
|
|
24299
24301
|
}, [_]);
|
|
24300
|
-
const
|
|
24301
|
-
const
|
|
24302
|
-
|
|
24303
|
-
},
|
|
24304
|
-
C(null),
|
|
24305
|
-
}, ze = (Ee,
|
|
24306
|
-
se(
|
|
24302
|
+
const he = (Ee) => {
|
|
24303
|
+
const fe = Ee;
|
|
24304
|
+
fe.color = ca(fe.guid, o), fe.chartLabel = Ee.name === "Income" ? N.monthly_income : N.monthly_spending, C(fe), Le(!0);
|
|
24305
|
+
}, me = () => {
|
|
24306
|
+
C(null), Le(!1);
|
|
24307
|
+
}, ze = (Ee, fe) => {
|
|
24308
|
+
se(fe ?? K), a(F.TRENDS_CLICK_TOGGLE);
|
|
24307
24309
|
}, V = (Ee) => {
|
|
24308
|
-
const
|
|
24309
|
-
S({ start:
|
|
24310
|
+
const fe = go(Ee?.[0], 1), _t = Ee?.[1], tn = Qs(_t, fe);
|
|
24311
|
+
S({ start: fe, end: _t }), a(F.TRENDS_CLICK_DATE, {
|
|
24310
24312
|
time_period: tn + "M"
|
|
24311
24313
|
});
|
|
24312
|
-
},
|
|
24314
|
+
}, Ce = () => {
|
|
24313
24315
|
a(F.TRENDS_CLICK_FILTER);
|
|
24314
24316
|
}, Q = (Ee) => {
|
|
24315
|
-
|
|
24317
|
+
pe(Ee);
|
|
24316
24318
|
};
|
|
24317
24319
|
return !y || !E || !k ? /* @__PURE__ */ t(ue, {}) : _.length === 0 ? /* @__PURE__ */ t(
|
|
24318
24320
|
jn,
|
|
@@ -24331,7 +24333,7 @@ const $i = g.createContext(null), a0 = ({
|
|
|
24331
24333
|
calendarActions: { onRangeChanged: V },
|
|
24332
24334
|
dateRange: p,
|
|
24333
24335
|
dateRangeVariant: c ? "timeframetabs" : "timeframebuttons",
|
|
24334
|
-
onAccountsFilterClick:
|
|
24336
|
+
onAccountsFilterClick: Ce,
|
|
24335
24337
|
onBackClick: e,
|
|
24336
24338
|
sx: i,
|
|
24337
24339
|
title: N.title,
|
|
@@ -24362,7 +24364,7 @@ const $i = g.createContext(null), a0 = ({
|
|
|
24362
24364
|
}
|
|
24363
24365
|
),
|
|
24364
24366
|
/* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
24365
|
-
/* @__PURE__ */ t(O, { flexGrow: 1, children: ee && /* @__PURE__ */ l(te, { onClick: () =>
|
|
24367
|
+
/* @__PURE__ */ t(O, { flexGrow: 1, children: ee && /* @__PURE__ */ l(te, { onClick: () => pe(""), sx: { p: 0, pr: 5 }, children: [
|
|
24366
24368
|
/* @__PURE__ */ t(U, { name: "arrow_back" }),
|
|
24367
24369
|
N.all_categories
|
|
24368
24370
|
] }) }),
|
|
@@ -24390,13 +24392,13 @@ const $i = g.createContext(null), a0 = ({
|
|
|
24390
24392
|
] }),
|
|
24391
24393
|
/* @__PURE__ */ l(b, { gap: 16, sx: { width: M ? "32%" : "100%" }, children: [
|
|
24392
24394
|
R && /* @__PURE__ */ t(D0, { onInsightCardClick: n }),
|
|
24393
|
-
/* @__PURE__ */ t(qf, { onListItemClick:
|
|
24395
|
+
/* @__PURE__ */ t(qf, { onListItemClick: he, transactions: m })
|
|
24394
24396
|
] })
|
|
24395
24397
|
] })
|
|
24396
24398
|
]
|
|
24397
24399
|
}
|
|
24398
24400
|
),
|
|
24399
|
-
|
|
24401
|
+
Oe && /* @__PURE__ */ t(O0, { onClose: me }),
|
|
24400
24402
|
/* @__PURE__ */ t(
|
|
24401
24403
|
bl,
|
|
24402
24404
|
{
|
|
@@ -24409,7 +24411,7 @@ const $i = g.createContext(null), a0 = ({
|
|
|
24409
24411
|
]
|
|
24410
24412
|
}
|
|
24411
24413
|
);
|
|
24412
|
-
},
|
|
24414
|
+
}, u2 = x(B0);
|
|
24413
24415
|
class H0 {
|
|
24414
24416
|
globalStore;
|
|
24415
24417
|
selectedCategoryData = null;
|
|
@@ -24627,7 +24629,7 @@ class $0 {
|
|
|
24627
24629
|
}
|
|
24628
24630
|
};
|
|
24629
24631
|
}
|
|
24630
|
-
class
|
|
24632
|
+
class h2 {
|
|
24631
24633
|
// Global properties
|
|
24632
24634
|
appConfig = ms;
|
|
24633
24635
|
endpoint = "/";
|
|
@@ -24696,7 +24698,7 @@ const Ua = ({
|
|
|
24696
24698
|
primaryText: a,
|
|
24697
24699
|
secondaryText: o
|
|
24698
24700
|
}) => /* @__PURE__ */ l(q, { children: [
|
|
24699
|
-
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
24701
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ge, { onClick: i, children: [
|
|
24700
24702
|
/* @__PURE__ */ t(re, { primary: a, secondary: o }),
|
|
24701
24703
|
e
|
|
24702
24704
|
] }) }),
|
|
@@ -24707,7 +24709,7 @@ const Ua = ({
|
|
|
24707
24709
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
|
24708
24710
|
);
|
|
24709
24711
|
}, V0 = () => {
|
|
24710
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = $t(), { mergeAccounts: u, updateAccount: _ } = ye(), { accounts: h } = A(), m = U0(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: C } =
|
|
24712
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = $t(), { mergeAccounts: u, updateAccount: _ } = ye(), { accounts: h } = A(), m = U0(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: C } = ke(), S = async (E) => {
|
|
24711
24713
|
await _({
|
|
24712
24714
|
...d,
|
|
24713
24715
|
...E
|
|
@@ -24998,7 +25000,7 @@ const Ua = ({
|
|
|
24998
25000
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
24999
25001
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Bn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
25000
25002
|
/* @__PURE__ */ t(re, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
|
25001
|
-
] }) : /* @__PURE__ */ l(
|
|
25003
|
+
] }) : /* @__PURE__ */ l(ge, { onClick: () => n(!0), children: [
|
|
25002
25004
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Bn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
25003
25005
|
/* @__PURE__ */ t(
|
|
25004
25006
|
re,
|
|
@@ -25015,7 +25017,7 @@ const Ua = ({
|
|
|
25015
25017
|
] }) }),
|
|
25016
25018
|
/* @__PURE__ */ t(P, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
25017
25019
|
!a.is_manual && a.institution_url && /* @__PURE__ */ l(q, { children: [
|
|
25018
|
-
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
25020
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ge, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
25019
25021
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
25020
25022
|
Bn,
|
|
25021
25023
|
{
|
|
@@ -25163,7 +25165,7 @@ const Ua = ({
|
|
|
25163
25165
|
);
|
|
25164
25166
|
return /* @__PURE__ */ t(g.Fragment, { children: r ? /* @__PURE__ */ l(q, { children: [
|
|
25165
25167
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
|
|
25166
|
-
|
|
25168
|
+
ge,
|
|
25167
25169
|
{
|
|
25168
25170
|
onClick: () => {
|
|
25169
25171
|
u(h), c(!0), h?.event && n(h.event, { account_guid: i.guid });
|
|
@@ -25253,7 +25255,7 @@ const Ua = ({
|
|
|
25253
25255
|
)
|
|
25254
25256
|
] });
|
|
25255
25257
|
}, tb = x(eb), nb = () => {
|
|
25256
|
-
const [e, n] = g.useState(""), { onEvent: i } = X(), { selectedAccount: a } = $t(), { accounts: o } = A(), { setFilter: r, sortedTransactions: s } =
|
|
25258
|
+
const [e, n] = g.useState(""), { onEvent: i } = X(), { selectedAccount: a } = $t(), { accounts: o } = A(), { setFilter: r, sortedTransactions: s } = ke(), c = g.useMemo(
|
|
25257
25259
|
() => s.find((d) => d.guid === e),
|
|
25258
25260
|
[e, s]
|
|
25259
25261
|
);
|
|
@@ -25344,7 +25346,7 @@ const Ua = ({
|
|
|
25344
25346
|
{
|
|
25345
25347
|
"aria-label": v,
|
|
25346
25348
|
subheader: /* @__PURE__ */ t(Ft, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
25347
|
-
|
|
25349
|
+
Me,
|
|
25348
25350
|
{
|
|
25349
25351
|
component: "span",
|
|
25350
25352
|
direction: "row",
|
|
@@ -25355,7 +25357,7 @@ const Ua = ({
|
|
|
25355
25357
|
]
|
|
25356
25358
|
}
|
|
25357
25359
|
) }),
|
|
25358
|
-
children: /* @__PURE__ */ t(
|
|
25360
|
+
children: /* @__PURE__ */ t(Me, { children: E.map((w, N, R) => {
|
|
25359
25361
|
const M = N === R.length - 1;
|
|
25360
25362
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
25361
25363
|
/* @__PURE__ */ t(
|
|
@@ -25401,7 +25403,7 @@ const Ua = ({
|
|
|
25401
25403
|
{
|
|
25402
25404
|
"aria-label": i.account_type_accounts[E[0]?.account_type],
|
|
25403
25405
|
subheader: /* @__PURE__ */ t(Ft, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
25404
|
-
|
|
25406
|
+
Me,
|
|
25405
25407
|
{
|
|
25406
25408
|
component: "span",
|
|
25407
25409
|
direction: "row",
|
|
@@ -25412,7 +25414,7 @@ const Ua = ({
|
|
|
25412
25414
|
]
|
|
25413
25415
|
}
|
|
25414
25416
|
) }),
|
|
25415
|
-
children: /* @__PURE__ */ t(
|
|
25417
|
+
children: /* @__PURE__ */ t(Me, { children: E.map((v) => {
|
|
25416
25418
|
const w = a.indexOf(v) === a.length - 1, N = E.indexOf(v) === E.length - 1;
|
|
25417
25419
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
25418
25420
|
/* @__PURE__ */ t(
|
|
@@ -25504,7 +25506,7 @@ const Ua = ({
|
|
|
25504
25506
|
] }) : /* @__PURE__ */ t(ue, {})
|
|
25505
25507
|
}
|
|
25506
25508
|
) : /* @__PURE__ */ t(ue, {});
|
|
25507
|
-
},
|
|
25509
|
+
}, g2 = x(sb), cb = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
25508
25510
|
const { visibleAccounts: i } = ye(), { accounts: a } = A(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = _e();
|
|
25509
25511
|
return g.useEffect(() => {
|
|
25510
25512
|
c(i);
|
|
@@ -25535,7 +25537,7 @@ const Ua = ({
|
|
|
25535
25537
|
] }) : /* @__PURE__ */ t(ue, {})
|
|
25536
25538
|
}
|
|
25537
25539
|
) : /* @__PURE__ */ t(ue, {});
|
|
25538
|
-
},
|
|
25540
|
+
}, m2 = x(cb), lb = () => /* @__PURE__ */ l(
|
|
25539
25541
|
"svg",
|
|
25540
25542
|
{
|
|
25541
25543
|
fill: "none",
|
|
@@ -26020,7 +26022,7 @@ const Ua = ({
|
|
|
26020
26022
|
]
|
|
26021
26023
|
}
|
|
26022
26024
|
) : /* @__PURE__ */ t(ue, {});
|
|
26023
|
-
},
|
|
26025
|
+
}, p2 = x(ub);
|
|
26024
26026
|
class As {
|
|
26025
26027
|
fetchInstance;
|
|
26026
26028
|
constructor(n, i) {
|
|
@@ -26397,7 +26399,7 @@ const mb = () => {
|
|
|
26397
26399
|
]
|
|
26398
26400
|
}
|
|
26399
26401
|
) : /* @__PURE__ */ t(ue, {});
|
|
26400
|
-
},
|
|
26402
|
+
}, C2 = x(bb), xs = 5, yb = 100, Sb = 25, Eb = (e) => {
|
|
26401
26403
|
const n = (o) => {
|
|
26402
26404
|
o.active || e.alphaTarget(0.3).restart(), o.subject.fx = o.subject.x, o.subject.fy = o.subject.y;
|
|
26403
26405
|
}, i = (o) => {
|
|
@@ -26704,7 +26706,7 @@ const Rb = ({
|
|
|
26704
26706
|
return `${r} - ${s}`;
|
|
26705
26707
|
}, [n, i]);
|
|
26706
26708
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
26707
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
26709
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { children: [
|
|
26708
26710
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Rt, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
26709
26711
|
/* @__PURE__ */ t(re, { primary: e.name, secondary: a })
|
|
26710
26712
|
] }) }),
|
|
@@ -26767,7 +26769,7 @@ const Rb = ({
|
|
|
26767
26769
|
`${e.totalAmount === 0 ? "" : e.totalAmount}`
|
|
26768
26770
|
);
|
|
26769
26771
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
26770
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
26772
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => r(!0), children: [
|
|
26771
26773
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Rt, { categoryGuid: e.guid }) }),
|
|
26772
26774
|
/* @__PURE__ */ t(
|
|
26773
26775
|
re,
|
|
@@ -26856,7 +26858,7 @@ const Rb = ({
|
|
|
26856
26858
|
]
|
|
26857
26859
|
}
|
|
26858
26860
|
) : /* @__PURE__ */ t(ue, {});
|
|
26859
|
-
},
|
|
26861
|
+
}, f2 = x(Hb), Ml = ({ budget: e }) => {
|
|
26860
26862
|
const {
|
|
26861
26863
|
amount: n,
|
|
26862
26864
|
budgetColors: { background: i },
|
|
@@ -26891,7 +26893,7 @@ const Rb = ({
|
|
|
26891
26893
|
percentage: o,
|
|
26892
26894
|
transaction_total: r
|
|
26893
26895
|
} = e, { setSelectedSubBudget: s } = ut();
|
|
26894
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
26896
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => s(e), children: [
|
|
26895
26897
|
/* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Do, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Rt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
|
26896
26898
|
/* @__PURE__ */ t(
|
|
26897
26899
|
re,
|
|
@@ -26918,7 +26920,7 @@ const Rb = ({
|
|
|
26918
26920
|
p && Number(h) > 0 && (await s(p, Number(h), n.guid), _(!1), d(!1), C(void 0));
|
|
26919
26921
|
};
|
|
26920
26922
|
return /* @__PURE__ */ l(O, { children: [
|
|
26921
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(
|
|
26923
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ge, { onClick: S, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
26922
26924
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
26923
26925
|
/* @__PURE__ */ t(U, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
|
26924
26926
|
/* @__PURE__ */ t(f, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
|
|
@@ -26957,7 +26959,7 @@ const Rb = ({
|
|
|
26957
26959
|
)
|
|
26958
26960
|
] });
|
|
26959
26961
|
}), $b = x(({ budget: e }) => {
|
|
26960
|
-
const { category: n, subBudgets: i } = e, { budgets: a, common: o } = A(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = ut(), { filter: u, setFilter: _ } =
|
|
26962
|
+
const { category: n, subBudgets: i } = e, { budgets: a, common: o } = A(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = ut(), { filter: u, setFilter: _ } = ke(), [h, m] = g.useState(!1), [p, C] = g.useState(!1), [S, y] = g.useState("");
|
|
26961
26963
|
g.useEffect(() => {
|
|
26962
26964
|
s && (y(`${s.amount}`), _({
|
|
26963
26965
|
...u,
|
|
@@ -27042,7 +27044,7 @@ const Rb = ({
|
|
|
27042
27044
|
sortedTransactions: c,
|
|
27043
27045
|
sortedTransactionsWithSplits: d,
|
|
27044
27046
|
tags: u
|
|
27045
|
-
} =
|
|
27047
|
+
} = ke(), [_, h] = g.useState(0), [m, p] = g.useState(""), C = g.useMemo(
|
|
27046
27048
|
() => c.find((I) => I.guid === m),
|
|
27047
27049
|
[m, c]
|
|
27048
27050
|
), S = (I, v) => {
|
|
@@ -27101,7 +27103,7 @@ const Rb = ({
|
|
|
27101
27103
|
setAlert: c,
|
|
27102
27104
|
setSelectedBudget: d,
|
|
27103
27105
|
updateBudget: u
|
|
27104
|
-
} = ut(), { setFilter: _ } =
|
|
27106
|
+
} = ut(), { setFilter: _ } = ke(), [h, m] = g.useState(!1), [p, C] = g.useState(!1), [S, y] = g.useState(!1), [E, I] = g.useState("");
|
|
27105
27107
|
g.useEffect(() => {
|
|
27106
27108
|
r && !s && (I(`${r.amount}`), m(!0), _({
|
|
27107
27109
|
accounts: e,
|
|
@@ -27182,7 +27184,7 @@ const Rb = ({
|
|
|
27182
27184
|
subBudgets: d,
|
|
27183
27185
|
transaction_total: u
|
|
27184
27186
|
} = e;
|
|
27185
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
|
27187
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ge, { onClick: () => n?.(e), children: [
|
|
27186
27188
|
/* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Do, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Rt, { categoryGuid: r, variant: "basic" }) }) }),
|
|
27187
27189
|
/* @__PURE__ */ t(
|
|
27188
27190
|
re,
|
|
@@ -27216,7 +27218,7 @@ const Rb = ({
|
|
|
27216
27218
|
] }, r.guid)) }) })
|
|
27217
27219
|
] });
|
|
27218
27220
|
}), Yb = x(() => {
|
|
27219
|
-
const e = Ae(), { onEvent: n } = X(), { visibleAccounts: i } = ye(), { budgets: a, common: o, recurring: r } = A(), { incomeCategories: s, spendCategories: c } = $e(), { detailedBudgets: d, totalBudgeted: u } = ut(), { incomeTotal: _ } = ot(), { setFilter: h } =
|
|
27221
|
+
const e = Ae(), { onEvent: n } = X(), { visibleAccounts: i } = ye(), { budgets: a, common: o, recurring: r } = A(), { incomeCategories: s, spendCategories: c } = $e(), { detailedBudgets: d, totalBudgeted: u } = ut(), { incomeTotal: _ } = ot(), { setFilter: h } = ke(), [m, p] = g.useState(!1), [C, S] = g.useMemo(() => {
|
|
27220
27222
|
const v = c.reduce((M, k) => M + k.totalAmount, 0);
|
|
27221
27223
|
let w = v / u;
|
|
27222
27224
|
w > 1 && (w = 1);
|
|
@@ -27298,7 +27300,7 @@ const Rb = ({
|
|
|
27298
27300
|
}
|
|
27299
27301
|
)
|
|
27300
27302
|
] });
|
|
27301
|
-
}), vs = 480,
|
|
27303
|
+
}), vs = 480, b2 = x(({ onBackClick: e, sx: n }) => {
|
|
27302
27304
|
const i = Ae(), { onEvent: a } = X(), { visibleAccounts: o } = ye(), { budgets: r, common: s } = A(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: u, setDisplayedDate: _, setSelectedAccounts: h } = _e(), {
|
|
27303
27305
|
alert: m,
|
|
27304
27306
|
dateRange: p,
|
|
@@ -27316,15 +27318,15 @@ const Rb = ({
|
|
|
27316
27318
|
}, [o]), g.useEffect(() => {
|
|
27317
27319
|
d && (R(u, p.start, p.end).finally(), N(p), C || (w().finally(), S().finally()));
|
|
27318
27320
|
}, [d, u, p]);
|
|
27319
|
-
const se = (
|
|
27320
|
-
y({ start:
|
|
27321
|
+
const se = (he) => {
|
|
27322
|
+
y({ start: he[0] || /* @__PURE__ */ new Date(), end: he[1] || /* @__PURE__ */ new Date() });
|
|
27321
27323
|
}, ee = () => {
|
|
27322
27324
|
a(F.BUDGETS_CLICK_FILTER);
|
|
27323
|
-
},
|
|
27325
|
+
}, pe = () => {
|
|
27324
27326
|
K(!0), a(F.BUDGETS_CLICK_ADD);
|
|
27325
|
-
},
|
|
27327
|
+
}, Oe = () => {
|
|
27326
27328
|
K(!1);
|
|
27327
|
-
},
|
|
27329
|
+
}, Le = rn(p.end, Ve(/* @__PURE__ */ new Date()));
|
|
27328
27330
|
return !c || !d || !C ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
|
27329
27331
|
ft,
|
|
27330
27332
|
{
|
|
@@ -27333,10 +27335,10 @@ const Rb = ({
|
|
|
27333
27335
|
{
|
|
27334
27336
|
iconName: "add",
|
|
27335
27337
|
label: r.add_title,
|
|
27336
|
-
onClick:
|
|
27338
|
+
onClick: pe
|
|
27337
27339
|
}
|
|
27338
27340
|
],
|
|
27339
|
-
calendarActions: { onRangeChanged: se, shouldDisableNext:
|
|
27341
|
+
calendarActions: { onRangeChanged: se, shouldDisableNext: Le },
|
|
27340
27342
|
onAccountsFilterClick: ee,
|
|
27341
27343
|
onBackClick: e,
|
|
27342
27344
|
sx: n,
|
|
@@ -27354,7 +27356,7 @@ const Rb = ({
|
|
|
27354
27356
|
/* @__PURE__ */ t(b, { height: L ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ t(
|
|
27355
27357
|
Ol,
|
|
27356
27358
|
{
|
|
27357
|
-
createBudgetOnClick:
|
|
27359
|
+
createBudgetOnClick: pe,
|
|
27358
27360
|
height: L ? 450 : 800,
|
|
27359
27361
|
isDraggable: !0,
|
|
27360
27362
|
shouldShowZeroState: v.length === 0,
|
|
@@ -27385,7 +27387,7 @@ const Rb = ({
|
|
|
27385
27387
|
isOpen: W,
|
|
27386
27388
|
onClose: () => K(!1),
|
|
27387
27389
|
title: r.add_new_title,
|
|
27388
|
-
children: /* @__PURE__ */ t(Ll, { onRecalculateBudgets:
|
|
27390
|
+
children: /* @__PURE__ */ t(Ll, { onRecalculateBudgets: Oe })
|
|
27389
27391
|
}
|
|
27390
27392
|
),
|
|
27391
27393
|
/* @__PURE__ */ t(
|
|
@@ -27571,7 +27573,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
27571
27573
|
/* @__PURE__ */ t(Tn, { height: 300, variant: "rounded", width: "100%" })
|
|
27572
27574
|
] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: u.map((_) => /* @__PURE__ */ t(g.Fragment, { children: _.component }, _.index)) }) })
|
|
27573
27575
|
] });
|
|
27574
|
-
},
|
|
27576
|
+
}, y2 = x(Jb), tr = ({ sx: e = {} }) => {
|
|
27575
27577
|
const { investments: n } = A(), { onEvent: i } = X(), { setShowConnectionsWidget: a } = Xn();
|
|
27576
27578
|
return /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...e }, children: [
|
|
27577
27579
|
/* @__PURE__ */ l(
|
|
@@ -27776,7 +27778,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
27776
27778
|
minHeight: 44
|
|
27777
27779
|
},
|
|
27778
27780
|
children: /* @__PURE__ */ l(
|
|
27779
|
-
|
|
27781
|
+
ge,
|
|
27780
27782
|
{
|
|
27781
27783
|
"aria-expanded": i === h.guid,
|
|
27782
27784
|
onClick: () => n(h.guid),
|
|
@@ -28208,7 +28210,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28208
28210
|
onClose: d,
|
|
28209
28211
|
title: u.overview.investment_details,
|
|
28210
28212
|
children: [
|
|
28211
|
-
/* @__PURE__ */ l(
|
|
28213
|
+
/* @__PURE__ */ l(Me, { sx: { gap: 8, p: 24 }, children: [
|
|
28212
28214
|
/* @__PURE__ */ t(
|
|
28213
28215
|
St,
|
|
28214
28216
|
{
|
|
@@ -28219,7 +28221,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28219
28221
|
),
|
|
28220
28222
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "Small", children: e.accounts.memberName }),
|
|
28221
28223
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "H2", children: e.accounts.user_name || e.accounts.name }),
|
|
28222
|
-
/* @__PURE__ */ l(
|
|
28224
|
+
/* @__PURE__ */ l(Me, { sx: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
28223
28225
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: u.overview.current_balance }),
|
|
28224
28226
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: e.accounts.balance?.toLocaleString("en-US", {
|
|
28225
28227
|
currency: "USD",
|
|
@@ -28230,7 +28232,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28230
28232
|
] })
|
|
28231
28233
|
] }),
|
|
28232
28234
|
/* @__PURE__ */ l(
|
|
28233
|
-
|
|
28235
|
+
Me,
|
|
28234
28236
|
{
|
|
28235
28237
|
sx: {
|
|
28236
28238
|
bgcolor: "background.default",
|
|
@@ -28271,10 +28273,10 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28271
28273
|
borderColor: "border.main"
|
|
28272
28274
|
}
|
|
28273
28275
|
],
|
|
28274
|
-
children: /* @__PURE__ */ l(
|
|
28276
|
+
children: /* @__PURE__ */ l(Me, { sx: { flexDirection: "row", width: "100%" }, children: [
|
|
28275
28277
|
/* @__PURE__ */ t("div", { style: { width: 24 } }),
|
|
28276
28278
|
/* @__PURE__ */ l(
|
|
28277
|
-
|
|
28279
|
+
Me,
|
|
28278
28280
|
{
|
|
28279
28281
|
sx: [
|
|
28280
28282
|
{
|
|
@@ -28292,21 +28294,21 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28292
28294
|
],
|
|
28293
28295
|
children: [
|
|
28294
28296
|
/* @__PURE__ */ t(
|
|
28295
|
-
|
|
28297
|
+
Me,
|
|
28296
28298
|
{
|
|
28297
28299
|
sx: {
|
|
28298
28300
|
alignItems: "center",
|
|
28299
28301
|
flexDirection: "row",
|
|
28300
28302
|
gap: 12
|
|
28301
28303
|
},
|
|
28302
|
-
children: /* @__PURE__ */ l(
|
|
28304
|
+
children: /* @__PURE__ */ l(Me, { sx: { overflow: "hidden", width: 98 }, children: [
|
|
28303
28305
|
/* @__PURE__ */ t(f, { sx: { fontWeight: 600 }, variant: "Body", children: p.holding }),
|
|
28304
28306
|
/* @__PURE__ */ t(f, { variant: "XSmall", children: p.description })
|
|
28305
28307
|
] })
|
|
28306
28308
|
}
|
|
28307
28309
|
),
|
|
28308
28310
|
/* @__PURE__ */ l(
|
|
28309
|
-
|
|
28311
|
+
Me,
|
|
28310
28312
|
{
|
|
28311
28313
|
sx: {
|
|
28312
28314
|
alignItems: "center",
|
|
@@ -28316,14 +28318,14 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28316
28318
|
justifyContent: "flex-end"
|
|
28317
28319
|
},
|
|
28318
28320
|
children: [
|
|
28319
|
-
/* @__PURE__ */ l(
|
|
28321
|
+
/* @__PURE__ */ l(Me, { children: [
|
|
28320
28322
|
/* @__PURE__ */ t(f, { sx: { fontWeight: 600, textAlign: "right" }, variant: "Body", children: p.marketValue?.toLocaleString("en-US", {
|
|
28321
28323
|
currency: "USD",
|
|
28322
28324
|
maximumFractionDigits: 2,
|
|
28323
28325
|
minimumFractionDigits: 2,
|
|
28324
28326
|
style: "currency"
|
|
28325
28327
|
}) }),
|
|
28326
|
-
/* @__PURE__ */ l(
|
|
28328
|
+
/* @__PURE__ */ l(Me, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
|
|
28327
28329
|
p.totalGainLoss !== 0 && /* @__PURE__ */ t(
|
|
28328
28330
|
pt,
|
|
28329
28331
|
{
|
|
@@ -28383,7 +28385,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28383
28385
|
}
|
|
28384
28386
|
),
|
|
28385
28387
|
/* @__PURE__ */ t(Pi, { children: /* @__PURE__ */ l(
|
|
28386
|
-
|
|
28388
|
+
Me,
|
|
28387
28389
|
{
|
|
28388
28390
|
sx: {
|
|
28389
28391
|
alignItems: "center",
|
|
@@ -28392,10 +28394,10 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28392
28394
|
pl: 24
|
|
28393
28395
|
},
|
|
28394
28396
|
children: [
|
|
28395
|
-
/* @__PURE__ */ t(
|
|
28396
|
-
/* @__PURE__ */ l(
|
|
28397
|
+
/* @__PURE__ */ t(Me, { sx: { width: 32 } }),
|
|
28398
|
+
/* @__PURE__ */ l(Me, { sx: { flex: 1 }, children: [
|
|
28397
28399
|
/* @__PURE__ */ l(
|
|
28398
|
-
|
|
28400
|
+
Me,
|
|
28399
28401
|
{
|
|
28400
28402
|
sx: {
|
|
28401
28403
|
alignItems: "center",
|
|
@@ -28413,7 +28415,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28413
28415
|
}
|
|
28414
28416
|
),
|
|
28415
28417
|
/* @__PURE__ */ l(
|
|
28416
|
-
|
|
28418
|
+
Me,
|
|
28417
28419
|
{
|
|
28418
28420
|
sx: {
|
|
28419
28421
|
alignItems: "center",
|
|
@@ -28425,7 +28427,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28425
28427
|
children: [
|
|
28426
28428
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary" }, variant: "Body", children: u.overview.cost_basis_header }),
|
|
28427
28429
|
/* @__PURE__ */ l(
|
|
28428
|
-
|
|
28430
|
+
Me,
|
|
28429
28431
|
{
|
|
28430
28432
|
direction: "row",
|
|
28431
28433
|
sx: {
|
|
@@ -28663,66 +28665,66 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28663
28665
|
const { isMobile: e } = be(), [n, i] = At({}), [a, o] = At(!1), { selectedAccountGuids: r } = _e(), { visibleHoldings: s, updateHoldings: c } = Xn(), [d, u] = g.useState(!1), [_, h] = At({
|
|
28664
28666
|
accounts: [],
|
|
28665
28667
|
holdings: []
|
|
28666
|
-
}), { accounts: m, investments: p } = A(), { isCopyLoaded: C } = _e(), [S, y] = At(null), [E, I] = At(""), w = Ae().palette.mode === "dark", N = w ? "#0AC295" : "#09A57F", R = w ? "grey.300" : "grey.700", M = (V,
|
|
28667
|
-
y(V), I(
|
|
28668
|
+
}), { accounts: m, investments: p } = A(), { isCopyLoaded: C } = _e(), [S, y] = At(null), [E, I] = At(""), w = Ae().palette.mode === "dark", N = w ? "#0AC295" : "#09A57F", R = w ? "grey.300" : "grey.700", M = (V, Ce = "lesserThan") => Ce === "greaterThan" ? V >= 0 ? N : R : V <= 0 ? R : N, k = (V, Ce) => {
|
|
28669
|
+
y(V), I(Ce.toFixed(2));
|
|
28668
28670
|
}, G = (V) => {
|
|
28669
|
-
const
|
|
28670
|
-
/^\d*\.?\d*$/.test(
|
|
28671
|
-
}, L = (V,
|
|
28672
|
-
V.key === "Enter" ? W(
|
|
28671
|
+
const Ce = V.target.value;
|
|
28672
|
+
/^\d*\.?\d*$/.test(Ce) && I(Ce);
|
|
28673
|
+
}, L = (V, Ce) => {
|
|
28674
|
+
V.key === "Enter" ? W(Ce) : V.key === "Escape" && y(null);
|
|
28673
28675
|
}, W = (V) => {
|
|
28674
|
-
const
|
|
28675
|
-
if (!
|
|
28676
|
+
const Ce = s.find(({ guid: Ee }) => Ee === V);
|
|
28677
|
+
if (!Ce) return;
|
|
28676
28678
|
const Q = Number(E);
|
|
28677
|
-
if (c({ ...
|
|
28679
|
+
if (c({ ...Ce, cost_basis: Q }), e) {
|
|
28678
28680
|
const Ee = _.holdings.map(
|
|
28679
|
-
(
|
|
28681
|
+
(fe) => fe.id === V ? { ...fe, costBasis: Q } : fe
|
|
28680
28682
|
);
|
|
28681
|
-
h((
|
|
28682
|
-
...
|
|
28683
|
+
h((fe) => ({
|
|
28684
|
+
...fe,
|
|
28683
28685
|
holdings: Ee
|
|
28684
28686
|
}));
|
|
28685
28687
|
}
|
|
28686
28688
|
y(null);
|
|
28687
|
-
}, K = (V) => (
|
|
28689
|
+
}, K = (V) => (Ce, Q) => {
|
|
28688
28690
|
i((Ee) => ({
|
|
28689
28691
|
...Ee,
|
|
28690
28692
|
[V]: Q
|
|
28691
28693
|
}));
|
|
28692
|
-
}, { visibleHoldings: se } = Xn(), { visibleInvestmentAccounts: ee } = ye(),
|
|
28694
|
+
}, { visibleHoldings: se } = Xn(), { visibleInvestmentAccounts: ee } = ye(), pe = ee.filter(
|
|
28693
28695
|
({ guid: V }) => r.includes(V)
|
|
28694
|
-
),
|
|
28695
|
-
({ account_guid: V }) =>
|
|
28696
|
-
).reduce((V,
|
|
28697
|
-
const Q =
|
|
28696
|
+
), Oe = pe.reduce((V, Ce) => V + (Ce.balance || 0), 0), Le = pe.map(({ guid: V }) => V), me = se.filter(
|
|
28697
|
+
({ account_guid: V }) => Le.includes(V)
|
|
28698
|
+
).reduce((V, Ce) => {
|
|
28699
|
+
const Q = Ce.market_value ? Ce.market_value - (Ce.cost_basis || 0) : 0;
|
|
28698
28700
|
return V + Q;
|
|
28699
28701
|
}, 0), ze = () => {
|
|
28700
28702
|
o(!1);
|
|
28701
28703
|
};
|
|
28702
|
-
return C ? /* @__PURE__ */ l(
|
|
28703
|
-
!!
|
|
28704
|
+
return C ? /* @__PURE__ */ l(Me, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
28705
|
+
!!pe.length && /* @__PURE__ */ l(Me, { sx: { alignItems: "center" }, children: [
|
|
28704
28706
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, children: p.overview.total_portfolio }),
|
|
28705
|
-
/* @__PURE__ */ t(qt, { children:
|
|
28707
|
+
/* @__PURE__ */ t(qt, { children: Oe.toLocaleString("en-US", {
|
|
28706
28708
|
currency: "USD",
|
|
28707
28709
|
maximumFractionDigits: 2,
|
|
28708
28710
|
minimumFractionDigits: 2,
|
|
28709
28711
|
style: "currency"
|
|
28710
28712
|
}) }),
|
|
28711
|
-
/* @__PURE__ */ l(
|
|
28713
|
+
/* @__PURE__ */ l(Me, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
28712
28714
|
/* @__PURE__ */ t(
|
|
28713
28715
|
pt,
|
|
28714
28716
|
{
|
|
28715
|
-
name:
|
|
28717
|
+
name: me >= 0 ? "trending_up" : "trending_down",
|
|
28716
28718
|
size: 20,
|
|
28717
|
-
sx: { color: M(
|
|
28719
|
+
sx: { color: M(me, "greaterThan") }
|
|
28718
28720
|
}
|
|
28719
28721
|
),
|
|
28720
28722
|
/* @__PURE__ */ t(
|
|
28721
28723
|
f,
|
|
28722
28724
|
{
|
|
28723
|
-
sx: { color: M(
|
|
28725
|
+
sx: { color: M(me, "greaterThan"), fontWeight: 700 },
|
|
28724
28726
|
variant: "Small",
|
|
28725
|
-
children:
|
|
28727
|
+
children: me.toLocaleString("en-US", {
|
|
28726
28728
|
currency: "USD",
|
|
28727
28729
|
maximumFractionDigits: 2,
|
|
28728
28730
|
minimumFractionDigits: 2,
|
|
@@ -28732,8 +28734,8 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28732
28734
|
)
|
|
28733
28735
|
] })
|
|
28734
28736
|
] }),
|
|
28735
|
-
|
|
28736
|
-
const
|
|
28737
|
+
pe.map((V) => {
|
|
28738
|
+
const Ce = se.filter((Y) => Y.account_guid === V.guid).map((Y) => ({
|
|
28737
28739
|
id: Y.guid,
|
|
28738
28740
|
qty: Y.shares || 0,
|
|
28739
28741
|
holding: Y.symbol || Y.description || "Unknown",
|
|
@@ -28741,17 +28743,17 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28741
28743
|
totalGainLoss: Y.market_value ? Y.market_value - (Y.cost_basis || 0) : 0,
|
|
28742
28744
|
marketValue: Y.market_value || 0,
|
|
28743
28745
|
description: Y.description || ""
|
|
28744
|
-
})), Q =
|
|
28746
|
+
})), Q = Ce.length > 0, Ee = V.balance, fe = Ce.reduce(
|
|
28745
28747
|
(Y, Be) => Be.totalGainLoss + Y,
|
|
28746
28748
|
0
|
|
28747
|
-
), _t = Ee ?
|
|
28749
|
+
), _t = Ee ? fe / Ee * 100 : 0;
|
|
28748
28750
|
if (e)
|
|
28749
28751
|
return /* @__PURE__ */ t(
|
|
28750
28752
|
wt,
|
|
28751
28753
|
{
|
|
28752
|
-
onClick:
|
|
28754
|
+
onClick: Ce.length ? () => {
|
|
28753
28755
|
o(!0), h({
|
|
28754
|
-
holdings:
|
|
28756
|
+
holdings: Ce,
|
|
28755
28757
|
accounts: V
|
|
28756
28758
|
});
|
|
28757
28759
|
} : void 0,
|
|
@@ -28760,7 +28762,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28760
28762
|
overflow: "hidden"
|
|
28761
28763
|
},
|
|
28762
28764
|
children: /* @__PURE__ */ l(
|
|
28763
|
-
|
|
28765
|
+
Me,
|
|
28764
28766
|
{
|
|
28765
28767
|
sx: {
|
|
28766
28768
|
border: 1,
|
|
@@ -28773,7 +28775,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28773
28775
|
},
|
|
28774
28776
|
children: [
|
|
28775
28777
|
/* @__PURE__ */ l(
|
|
28776
|
-
|
|
28778
|
+
Me,
|
|
28777
28779
|
{
|
|
28778
28780
|
sx: {
|
|
28779
28781
|
alignItems: "center",
|
|
@@ -28793,7 +28795,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28793
28795
|
size: 32
|
|
28794
28796
|
}
|
|
28795
28797
|
),
|
|
28796
|
-
/* @__PURE__ */ l(
|
|
28798
|
+
/* @__PURE__ */ l(Me, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
|
|
28797
28799
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: V.memberName }),
|
|
28798
28800
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: V.user_name || V.name })
|
|
28799
28801
|
] })
|
|
@@ -28801,7 +28803,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28801
28803
|
}
|
|
28802
28804
|
),
|
|
28803
28805
|
/* @__PURE__ */ l(
|
|
28804
|
-
|
|
28806
|
+
Me,
|
|
28805
28807
|
{
|
|
28806
28808
|
sx: {
|
|
28807
28809
|
alignItems: "center",
|
|
@@ -28812,7 +28814,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28812
28814
|
},
|
|
28813
28815
|
children: [
|
|
28814
28816
|
/* @__PURE__ */ l(
|
|
28815
|
-
|
|
28817
|
+
Me,
|
|
28816
28818
|
{
|
|
28817
28819
|
sx: {
|
|
28818
28820
|
alignItems: "center",
|
|
@@ -28828,7 +28830,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28828
28830
|
children: [
|
|
28829
28831
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary", fontSize: 11 }, variant: "Small", children: p.overview.total_gain_Loss }),
|
|
28830
28832
|
/* @__PURE__ */ l(
|
|
28831
|
-
|
|
28833
|
+
Me,
|
|
28832
28834
|
{
|
|
28833
28835
|
sx: {
|
|
28834
28836
|
alignItems: "center",
|
|
@@ -28837,19 +28839,19 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28837
28839
|
justifyContent: "flex-end"
|
|
28838
28840
|
},
|
|
28839
28841
|
children: [
|
|
28840
|
-
|
|
28842
|
+
fe !== 0 && /* @__PURE__ */ t(
|
|
28841
28843
|
pt,
|
|
28842
28844
|
{
|
|
28843
|
-
name:
|
|
28845
|
+
name: fe > 0 ? "trending_up" : "trending_down",
|
|
28844
28846
|
size: 20,
|
|
28845
|
-
sx: { color: M(
|
|
28847
|
+
sx: { color: M(fe) }
|
|
28846
28848
|
}
|
|
28847
28849
|
),
|
|
28848
28850
|
/* @__PURE__ */ l(
|
|
28849
28851
|
f,
|
|
28850
28852
|
{
|
|
28851
28853
|
sx: {
|
|
28852
|
-
color: M(
|
|
28854
|
+
color: M(fe),
|
|
28853
28855
|
fontWeight: 600
|
|
28854
28856
|
},
|
|
28855
28857
|
variant: "Body",
|
|
@@ -28864,11 +28866,11 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28864
28866
|
f,
|
|
28865
28867
|
{
|
|
28866
28868
|
sx: {
|
|
28867
|
-
color: M(
|
|
28869
|
+
color: M(fe),
|
|
28868
28870
|
fontWeight: 600
|
|
28869
28871
|
},
|
|
28870
28872
|
variant: "Body",
|
|
28871
|
-
children: Math.abs(
|
|
28873
|
+
children: Math.abs(fe).toLocaleString("en-US", {
|
|
28872
28874
|
currency: "USD",
|
|
28873
28875
|
maximumFractionDigits: 2,
|
|
28874
28876
|
minimumFractionDigits: 2,
|
|
@@ -28883,7 +28885,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28883
28885
|
}
|
|
28884
28886
|
),
|
|
28885
28887
|
/* @__PURE__ */ l(
|
|
28886
|
-
|
|
28888
|
+
Me,
|
|
28887
28889
|
{
|
|
28888
28890
|
sx: {
|
|
28889
28891
|
alignItems: "center",
|
|
@@ -28914,7 +28916,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28914
28916
|
},
|
|
28915
28917
|
V.guid
|
|
28916
28918
|
);
|
|
28917
|
-
const tn = w ? "grey.700" : "grey.400", Kn =
|
|
28919
|
+
const tn = w ? "grey.700" : "grey.400", Kn = Ce.length ? "text.primary" : tn;
|
|
28918
28920
|
return /* @__PURE__ */ l(
|
|
28919
28921
|
Hi,
|
|
28920
28922
|
{
|
|
@@ -28942,7 +28944,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28942
28944
|
],
|
|
28943
28945
|
children: [
|
|
28944
28946
|
/* @__PURE__ */ l(
|
|
28945
|
-
|
|
28947
|
+
Me,
|
|
28946
28948
|
{
|
|
28947
28949
|
sx: {
|
|
28948
28950
|
alignItems: "center",
|
|
@@ -28961,18 +28963,18 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28961
28963
|
size: 32
|
|
28962
28964
|
}
|
|
28963
28965
|
),
|
|
28964
|
-
/* @__PURE__ */ l(
|
|
28966
|
+
/* @__PURE__ */ l(Me, { sx: { alignItems: "flex-start" }, children: [
|
|
28965
28967
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: V.memberName }),
|
|
28966
28968
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: V.user_name || V.name })
|
|
28967
28969
|
] })
|
|
28968
28970
|
]
|
|
28969
28971
|
}
|
|
28970
28972
|
),
|
|
28971
|
-
/* @__PURE__ */ l(
|
|
28972
|
-
/* @__PURE__ */ l(
|
|
28973
|
+
/* @__PURE__ */ l(Me, { sx: { flexDirection: "row" }, children: [
|
|
28974
|
+
/* @__PURE__ */ l(Me, { sx: { alignItems: "flex-end", pb: 14, pl: 24, pr: 24, pt: 14 }, children: [
|
|
28973
28975
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_gain_Loss }),
|
|
28974
28976
|
/* @__PURE__ */ l(
|
|
28975
|
-
|
|
28977
|
+
Me,
|
|
28976
28978
|
{
|
|
28977
28979
|
sx: {
|
|
28978
28980
|
alignItems: "center",
|
|
@@ -28981,19 +28983,19 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
28981
28983
|
justifyContent: "flex-end"
|
|
28982
28984
|
},
|
|
28983
28985
|
children: [
|
|
28984
|
-
|
|
28986
|
+
fe !== 0 && /* @__PURE__ */ t(
|
|
28985
28987
|
pt,
|
|
28986
28988
|
{
|
|
28987
|
-
name:
|
|
28989
|
+
name: fe >= 0 ? "trending_up" : "trending_down",
|
|
28988
28990
|
size: 20,
|
|
28989
|
-
sx: { color: M(
|
|
28991
|
+
sx: { color: M(fe) }
|
|
28990
28992
|
}
|
|
28991
28993
|
),
|
|
28992
28994
|
/* @__PURE__ */ l(
|
|
28993
28995
|
f,
|
|
28994
28996
|
{
|
|
28995
28997
|
sx: {
|
|
28996
|
-
color: M(
|
|
28998
|
+
color: M(fe),
|
|
28997
28999
|
fontWeight: 600
|
|
28998
29000
|
},
|
|
28999
29001
|
variant: "Body",
|
|
@@ -29008,11 +29010,11 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29008
29010
|
f,
|
|
29009
29011
|
{
|
|
29010
29012
|
sx: {
|
|
29011
|
-
color: M(
|
|
29013
|
+
color: M(fe),
|
|
29012
29014
|
fontWeight: 600
|
|
29013
29015
|
},
|
|
29014
29016
|
variant: "Body",
|
|
29015
|
-
children: Math.abs(
|
|
29017
|
+
children: Math.abs(fe).toLocaleString("en-US", {
|
|
29016
29018
|
currency: "USD",
|
|
29017
29019
|
maximumFractionDigits: 2,
|
|
29018
29020
|
minimumFractionDigits: 2,
|
|
@@ -29024,7 +29026,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29024
29026
|
}
|
|
29025
29027
|
)
|
|
29026
29028
|
] }),
|
|
29027
|
-
/* @__PURE__ */ t(
|
|
29029
|
+
/* @__PURE__ */ t(Me, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ l(Me, { sx: { alignItems: "flex-end" }, children: [
|
|
29028
29030
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_value }),
|
|
29029
29031
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: Ee?.toLocaleString("en-US", {
|
|
29030
29032
|
currency: "USD",
|
|
@@ -29041,7 +29043,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29041
29043
|
py,
|
|
29042
29044
|
{
|
|
29043
29045
|
currentEditedCostBasis: E,
|
|
29044
|
-
data:
|
|
29046
|
+
data: Ce,
|
|
29045
29047
|
editingHoldingId: S,
|
|
29046
29048
|
handleCostBasisBlur: W,
|
|
29047
29049
|
handleCostBasisChange: G,
|
|
@@ -29078,7 +29080,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29078
29080
|
}
|
|
29079
29081
|
)
|
|
29080
29082
|
] }) : /* @__PURE__ */ t(ue, {});
|
|
29081
|
-
}, fy = x(Cy), by = ({ title: e }) => /* @__PURE__ */ t(f, { bold: !0, variant: "Body", children: e }),
|
|
29083
|
+
}, fy = x(Cy), by = ({ title: e }) => /* @__PURE__ */ t(f, { bold: !0, variant: "Body", children: e }), S2 = x(({ onBackClick: e, sx: n }) => {
|
|
29082
29084
|
const { onEvent: i } = X(), { isMobile: a } = be(), { visibleInvestmentAccounts: o } = ye(), {
|
|
29083
29085
|
visibleHoldings: r,
|
|
29084
29086
|
setShowConnectionsWidget: s,
|
|
@@ -29426,7 +29428,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29426
29428
|
children: /* @__PURE__ */ t(Ty, {})
|
|
29427
29429
|
}
|
|
29428
29430
|
);
|
|
29429
|
-
},
|
|
29431
|
+
}, E2 = x(Ay), xy = ({
|
|
29430
29432
|
data: e,
|
|
29431
29433
|
onSelected: n,
|
|
29432
29434
|
selectedId: i = "",
|
|
@@ -29446,7 +29448,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29446
29448
|
minHeight: 44
|
|
29447
29449
|
},
|
|
29448
29450
|
children: /* @__PURE__ */ l(
|
|
29449
|
-
|
|
29451
|
+
ge,
|
|
29450
29452
|
{
|
|
29451
29453
|
"aria-expanded": r?.guid === s.guid,
|
|
29452
29454
|
onClick: () => n(s.guid),
|
|
@@ -29563,7 +29565,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29563
29565
|
e.palette.chartMono.chartMono1,
|
|
29564
29566
|
e.palette.chartMono.chartMono6
|
|
29565
29567
|
], Dy = () => {
|
|
29566
|
-
const e = ln(), { clientConfig: n } = It(), { categories: i, dateRangeCategoryTotals: a, loadDateRangeCategoryTotals: o } = $e(), { goals: r, spending: s } = A(), { displayedDateRange: c, selectedAccounts: d, selectedAccountGuids: u } = _e(), { setFilter: _, sortedTransactions: h } =
|
|
29568
|
+
const e = ln(), { clientConfig: n } = It(), { categories: i, dateRangeCategoryTotals: a, loadDateRangeCategoryTotals: o } = $e(), { goals: r, spending: s } = A(), { displayedDateRange: c, selectedAccounts: d, selectedAccountGuids: u } = _e(), { setFilter: _, sortedTransactions: h } = ke(), m = n?.master?.deep_link_params?.account_guids, p = n?.master?.deep_link_params?.view, [C, S] = g.useState(""), [y, E] = g.useState(p === "income" ? 1 : 0), [I, v] = g.useState(""), [w, N] = g.useState(!1);
|
|
29567
29569
|
g.useEffect(() => {
|
|
29568
29570
|
o(
|
|
29569
29571
|
d,
|
|
@@ -29591,10 +29593,10 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29591
29593
|
};
|
|
29592
29594
|
if (y === 0)
|
|
29593
29595
|
if (K === "other") {
|
|
29594
|
-
const ee = R.categoryData.find((
|
|
29596
|
+
const ee = R.categoryData.find((pe) => pe.guid === "other");
|
|
29595
29597
|
_({
|
|
29596
29598
|
...se,
|
|
29597
|
-
custom: (
|
|
29599
|
+
custom: (pe) => !!ee?.categoryTotals?.find((Oe) => Oe.guid === pe.top_level_category_guid)
|
|
29598
29600
|
});
|
|
29599
29601
|
} else
|
|
29600
29602
|
_({
|
|
@@ -29681,7 +29683,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29681
29683
|
g.useEffect(() => {
|
|
29682
29684
|
c(i);
|
|
29683
29685
|
}, [i]), g.useEffect(() => {
|
|
29684
|
-
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(Ve(
|
|
29686
|
+
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(Ve(Ie()), je(Ie())), m(!0), d(F.SPENDING_VIEW);
|
|
29685
29687
|
}, []);
|
|
29686
29688
|
const p = (C) => {
|
|
29687
29689
|
s(C[0], C[1]);
|
|
@@ -29698,7 +29700,7 @@ const Jb = ({ widgets: e, isLoading: n }) => {
|
|
|
29698
29700
|
children: /* @__PURE__ */ t(O, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(Ny, {}) })
|
|
29699
29701
|
}
|
|
29700
29702
|
);
|
|
29701
|
-
},
|
|
29703
|
+
}, T2 = x(Ry);
|
|
29702
29704
|
export {
|
|
29703
29705
|
F as ANALYTICS_EVENTS,
|
|
29704
29706
|
As as AccountApi,
|
|
@@ -29713,30 +29715,30 @@ export {
|
|
|
29713
29715
|
x_ as AccountSubType,
|
|
29714
29716
|
ce as AccountType,
|
|
29715
29717
|
yo as AccountTypeName,
|
|
29716
|
-
|
|
29717
|
-
|
|
29718
|
+
m2 as AccountsMiniWidget,
|
|
29719
|
+
g2 as AccountsWidget,
|
|
29718
29720
|
Ug as AddAccountModal,
|
|
29719
29721
|
Bc as AddRecurringTransactionDetails,
|
|
29720
29722
|
K_ as AnalyticsApi,
|
|
29721
29723
|
B as ApiEndpoints,
|
|
29722
29724
|
i0 as AppStore,
|
|
29723
29725
|
fr as BannerApi,
|
|
29724
|
-
|
|
29726
|
+
LT as BarChart,
|
|
29725
29727
|
si as BeatApi,
|
|
29726
29728
|
m0 as BeatCard,
|
|
29727
29729
|
Xi as BottomActions,
|
|
29728
|
-
|
|
29729
|
-
|
|
29730
|
+
f2 as BubbleBudgetsMiniWidget,
|
|
29731
|
+
b2 as BubbleBudgetsWidget,
|
|
29730
29732
|
us as BudgetNotificationProfiles,
|
|
29731
29733
|
Zn as BudgetNotificationTypes,
|
|
29732
29734
|
uu as Calendar,
|
|
29733
29735
|
bc as CalendarSelectionTypes,
|
|
29734
29736
|
y0 as CarouselHeader,
|
|
29735
|
-
|
|
29736
|
-
|
|
29737
|
+
VT as CashflowApi,
|
|
29738
|
+
GT as CashflowMiniWidget,
|
|
29737
29739
|
Mm as CashflowOnboarding,
|
|
29738
29740
|
Bm as CashflowStore,
|
|
29739
|
-
|
|
29741
|
+
UT as CashflowWidget,
|
|
29740
29742
|
br as CategoryApi,
|
|
29741
29743
|
oi as CategoryColors,
|
|
29742
29744
|
fa as CategoryGuidToName,
|
|
@@ -29749,24 +29751,24 @@ export {
|
|
|
29749
29751
|
l0 as ChartFilledIcon,
|
|
29750
29752
|
Ec as ConnectCard,
|
|
29751
29753
|
Cn as ConnectDrawer,
|
|
29752
|
-
|
|
29754
|
+
p2 as ConnectMiniWidget,
|
|
29753
29755
|
Yn as ConnectionStatus,
|
|
29754
29756
|
yt as ConnectionStatusEnums,
|
|
29755
|
-
|
|
29757
|
+
jT as CreditScoreGraph,
|
|
29756
29758
|
aa as CurrencyCodes,
|
|
29757
29759
|
Jt as CurrencyInput,
|
|
29758
29760
|
Ye as CurrencyText,
|
|
29759
29761
|
ae as DATE_FORMATS_INTL,
|
|
29760
29762
|
lc as DEFAULT_DONUT_SIZE,
|
|
29761
29763
|
dc as DEFAULT_STROKE_WIDTH,
|
|
29762
|
-
|
|
29764
|
+
y2 as Dashboard,
|
|
29763
29765
|
Zi as DashboardLocation,
|
|
29764
29766
|
Ja as DataRow,
|
|
29765
29767
|
xr as DateRangeSelector,
|
|
29766
29768
|
zc as DebtsChart,
|
|
29767
29769
|
Gp as DebtsStore,
|
|
29768
29770
|
Ip as DebtsTable,
|
|
29769
|
-
|
|
29771
|
+
zT as DebtsWidget,
|
|
29770
29772
|
$C as DeviceTab,
|
|
29771
29773
|
Zc as DialScoreCard,
|
|
29772
29774
|
Ge as Dialog,
|
|
@@ -29778,23 +29780,23 @@ export {
|
|
|
29778
29780
|
xh as ExpenseStatus,
|
|
29779
29781
|
lt as Fetch,
|
|
29780
29782
|
Mt as FieldType,
|
|
29781
|
-
|
|
29783
|
+
YT as FinancialStrengthGraph,
|
|
29782
29784
|
Jr as FinstrongApi,
|
|
29783
29785
|
Yp as FinstrongStore,
|
|
29784
|
-
|
|
29786
|
+
XT as FinstrongWidget,
|
|
29785
29787
|
Se as Frequency,
|
|
29786
29788
|
Ii as GlobalCopyApi,
|
|
29787
29789
|
Pu as GlobalCopyStore,
|
|
29788
29790
|
ti as GlobalDataContext,
|
|
29789
|
-
|
|
29790
|
-
|
|
29791
|
+
NT as GlobalDataProvider,
|
|
29792
|
+
h2 as GlobalStore,
|
|
29791
29793
|
es as GoalApi,
|
|
29792
29794
|
v1 as GoalStore,
|
|
29793
29795
|
io as GoalType,
|
|
29794
|
-
|
|
29795
|
-
|
|
29796
|
+
qT as GoalsMicroWidget,
|
|
29797
|
+
ZT as GoalsWidget,
|
|
29796
29798
|
ml as Help,
|
|
29797
|
-
|
|
29799
|
+
n2 as HelpWidget,
|
|
29798
29800
|
So as INCOME_ACCOUNT_TYPES,
|
|
29799
29801
|
Bn as IconBacking,
|
|
29800
29802
|
No as InformationTooltip,
|
|
@@ -29802,18 +29804,18 @@ export {
|
|
|
29802
29804
|
A0 as InsightsMicroWidget,
|
|
29803
29805
|
a0 as InsightsMicroWidgetDataProvider,
|
|
29804
29806
|
hs as InsightsNotificationProfiles,
|
|
29805
|
-
|
|
29807
|
+
S2 as InvestmentsWidget,
|
|
29806
29808
|
O_ as IterationItemTypes,
|
|
29807
|
-
|
|
29809
|
+
TT as LOADING_STATUS,
|
|
29808
29810
|
mi as LineChart,
|
|
29809
29811
|
en as ListItemAction,
|
|
29810
29812
|
Hu as ListItemWrapper,
|
|
29811
29813
|
ue as Loader,
|
|
29812
|
-
|
|
29814
|
+
wT as LocalizedCopyApi,
|
|
29813
29815
|
qg as ManageExpenses,
|
|
29814
29816
|
Go as ManageIncome,
|
|
29815
29817
|
Gn as MemberConnectionStatus,
|
|
29816
|
-
|
|
29818
|
+
QT as MerchantLookup,
|
|
29817
29819
|
q1 as MerchantStore,
|
|
29818
29820
|
kt as MetaType,
|
|
29819
29821
|
oc as MfaStatuses,
|
|
@@ -29822,45 +29824,45 @@ export {
|
|
|
29822
29824
|
Ea as MicroWidgetContainer,
|
|
29823
29825
|
$n as MiniWidgetContainer,
|
|
29824
29826
|
u0 as MonthlySpendComparisonIcon,
|
|
29825
|
-
|
|
29827
|
+
MT as MultiSegmentDonut,
|
|
29826
29828
|
J1 as NetWorthChart,
|
|
29827
29829
|
iC as NetWorthList,
|
|
29828
|
-
|
|
29830
|
+
JT as NetWorthMicroWidget,
|
|
29829
29831
|
gC as NetWorthStore,
|
|
29830
29832
|
rC as NetWorthSummary,
|
|
29831
|
-
|
|
29832
|
-
|
|
29833
|
+
e2 as NetWorthWidget,
|
|
29834
|
+
d2 as NoRelevantInsightsCard,
|
|
29833
29835
|
sc as NonConnectedStatuses,
|
|
29834
29836
|
yr as NotificationApi,
|
|
29835
|
-
|
|
29837
|
+
r2 as NotificationDrawer,
|
|
29836
29838
|
RC as NotificationList,
|
|
29837
29839
|
da as NotificationSettings,
|
|
29838
|
-
|
|
29840
|
+
a2 as NotificationSettingsWidget,
|
|
29839
29841
|
AC as NotificationStore,
|
|
29840
29842
|
Lt as NotificationTypes,
|
|
29841
29843
|
A_ as ORDINAL_DATE_FORMAT,
|
|
29842
|
-
|
|
29844
|
+
bT as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
29843
29845
|
Eo as PAYMENT_ACCOUNT_TYPES,
|
|
29844
29846
|
mr as PaymentCategories,
|
|
29845
29847
|
R_ as PlanTypes,
|
|
29846
29848
|
I_ as ProcessingStatuses,
|
|
29847
29849
|
BC as ProfileTab,
|
|
29848
29850
|
ac as PropertyType,
|
|
29849
|
-
|
|
29850
|
-
|
|
29851
|
+
ST as PropertyTypeName,
|
|
29852
|
+
ET as RECURRENCE_COPY,
|
|
29851
29853
|
Qe as RecurrenceStatus,
|
|
29852
29854
|
jt as RecurrenceType,
|
|
29853
29855
|
N_ as RecurrenceTypes,
|
|
29854
29856
|
Bo as RecurringSettings,
|
|
29855
|
-
$
|
|
29856
|
-
|
|
29857
|
+
$T as RecurringTransactionsMicroWidget,
|
|
29858
|
+
WT as RecurringTransactionsMiniWidget,
|
|
29857
29859
|
cm as RecurringTransactionsStore,
|
|
29858
|
-
|
|
29860
|
+
FT as RecurringTransactionsWidget,
|
|
29859
29861
|
sn as RepeatingType,
|
|
29860
|
-
|
|
29862
|
+
kT as ResponsiveButton,
|
|
29861
29863
|
To as SPENDING_ACCOUNT_TYPES,
|
|
29862
29864
|
Ih as ScheduledPaymentTypes,
|
|
29863
|
-
|
|
29865
|
+
DT as ScheduledPaymentsApi,
|
|
29864
29866
|
vh as ScreenSize,
|
|
29865
29867
|
Ta as SearchBox,
|
|
29866
29868
|
Ki as Select,
|
|
@@ -29869,16 +29871,16 @@ export {
|
|
|
29869
29871
|
ls as SettingsApi,
|
|
29870
29872
|
MC as SettingsStore,
|
|
29871
29873
|
ai as SettingsTabs,
|
|
29872
|
-
|
|
29874
|
+
i2 as SettingsWidget,
|
|
29873
29875
|
Nf as SettingsWidgetContents,
|
|
29874
29876
|
Do as SingleSegmentDonut,
|
|
29875
29877
|
L_ as Sizes,
|
|
29876
|
-
|
|
29877
|
-
|
|
29878
|
+
E2 as SpendingMiniWidget,
|
|
29879
|
+
T2 as SpendingWidget,
|
|
29878
29880
|
wu as StackedLineChart,
|
|
29879
29881
|
ci as StatusBar,
|
|
29880
|
-
|
|
29881
|
-
|
|
29882
|
+
yT as StatusName,
|
|
29883
|
+
C2 as SurveyMiniWidget,
|
|
29882
29884
|
Si as TOUCH_TARGET,
|
|
29883
29885
|
Z as TRANSACTION_EVENTS,
|
|
29884
29886
|
Dn as TabContentContainer,
|
|
@@ -29891,17 +29893,17 @@ export {
|
|
|
29891
29893
|
Un as TransactionList,
|
|
29892
29894
|
Mo as TransactionRow,
|
|
29893
29895
|
ul as TransactionRulesTab,
|
|
29894
|
-
|
|
29896
|
+
o2 as TransactionRulesWidget,
|
|
29895
29897
|
Lo as TransactionStatus,
|
|
29896
29898
|
Dh as TransactionStore,
|
|
29897
29899
|
Yh as TransactionTable,
|
|
29898
29900
|
Yt as TransactionType,
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29901
|
+
PT as TransactionWidget,
|
|
29902
|
+
s2 as TrendsFullWidget,
|
|
29903
|
+
l2 as TrendsMicroWidget,
|
|
29904
|
+
c2 as TrendsMiniWidget,
|
|
29903
29905
|
H0 as TrendsStore,
|
|
29904
|
-
|
|
29906
|
+
u2 as TrendsWidget,
|
|
29905
29907
|
Ba as UserApi,
|
|
29906
29908
|
$0 as UserStore,
|
|
29907
29909
|
Ah as UserVerification,
|
|
@@ -29910,11 +29912,11 @@ export {
|
|
|
29910
29912
|
ft as WidgetContainer,
|
|
29911
29913
|
hc as WidgetContainerContext,
|
|
29912
29914
|
xo as WidgetContainerProvider,
|
|
29913
|
-
|
|
29915
|
+
_2 as ZeroStateCard,
|
|
29914
29916
|
Al as ZeroStateIcon,
|
|
29915
29917
|
T_ as analyticsSession,
|
|
29916
29918
|
T as buildDynamicCopy,
|
|
29917
|
-
|
|
29919
|
+
IT as buildPluralCopy,
|
|
29918
29920
|
Ac as exportTransactionsToCSV,
|
|
29919
29921
|
TC as filterRecentNotifications,
|
|
29920
29922
|
H as formatCurrency,
|
|
@@ -29925,14 +29927,14 @@ export {
|
|
|
29925
29927
|
Wc as getAccountBalanceDetails,
|
|
29926
29928
|
mm as getAccountDetailFields,
|
|
29927
29929
|
Cr as getCategory,
|
|
29928
|
-
|
|
29929
|
-
|
|
29930
|
+
AT as getCategoryTotalsByParent,
|
|
29931
|
+
vT as getClientTheme,
|
|
29930
29932
|
$_ as getCurrencyCodes,
|
|
29931
29933
|
M_ as getDetailedCategory,
|
|
29932
29934
|
k_ as getDetailedSubCategory,
|
|
29933
29935
|
Wn as getLocale,
|
|
29934
|
-
|
|
29935
|
-
|
|
29936
|
+
t2 as getNotificationDetailRoute,
|
|
29937
|
+
xT as isIncome,
|
|
29936
29938
|
Qa as isValidNumber,
|
|
29937
29939
|
ye as useAccountStore,
|
|
29938
29940
|
$t as useAccountUiStore,
|
|
@@ -29957,12 +29959,12 @@ export {
|
|
|
29957
29959
|
Y_ as useMerchantStore,
|
|
29958
29960
|
mc as useNetWorthStore,
|
|
29959
29961
|
pc as useNotificationStore,
|
|
29960
|
-
|
|
29961
|
-
|
|
29962
|
+
RT as usePageView,
|
|
29963
|
+
OT as usePrevious,
|
|
29962
29964
|
ot as useRecurringTransactionsStore,
|
|
29963
29965
|
be as useScreenSize,
|
|
29964
29966
|
bt as useSettingsStore,
|
|
29965
|
-
|
|
29967
|
+
ke as useTransactionStore,
|
|
29966
29968
|
Ot as useTransactionsUiStore,
|
|
29967
29969
|
gi as useTrendsStore,
|
|
29968
29970
|
Ct as useUserStore,
|