@mx-cartographer/experiences 6.16.5 → 6.16.6-alpha.mega1
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 +587 -579
- package/dist/index.es.js.map +1 -1
- package/dist/transactions/stores/UiStore.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import H from "@mui/material/Divider";
|
|
|
6
6
|
import ie from "@mui/material/List";
|
|
7
7
|
import kt from "@mui/material/ListSubheader";
|
|
8
8
|
import we from "@mui/system/Stack";
|
|
9
|
-
import { AccountsIcon as el, P as
|
|
9
|
+
import { AccountsIcon as el, P as Ee, Icon as $, useTokens as gt, Text as p, H2 as cn, CategoryIcon as Gt, DialogHeader as tl, DialogFooter as nl, Drawer as il, Footer as al, DateRangePicker as ko, H3 as mt, H1 as Xt, TextField as yn, IconWeight as ft, MerchantLogo as rn, CategoryIconVariants as os, InstitutionLogo as ut, ChevronRightIcon as ol, THEMES as Go } from "@mxenabled/mxui";
|
|
10
10
|
import rl from "bowser";
|
|
11
11
|
import { getUnixTime as He } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as sl } from "date-fns/intlFormat";
|
|
@@ -49,12 +49,12 @@ import pl from "@mui/icons-material/KeyboardArrowLeftRounded";
|
|
|
49
49
|
import Cl from "@mui/icons-material/KeyboardArrowRightRounded";
|
|
50
50
|
import { isSameDay as yt } from "date-fns/isSameDay";
|
|
51
51
|
import { isWithinInterval as Ua } from "date-fns/isWithinInterval";
|
|
52
|
-
import * as
|
|
52
|
+
import * as Rt from "d3";
|
|
53
53
|
import { selectAll as fl, interpolateString as bl, arc as yl } from "d3";
|
|
54
54
|
import { useTheme as at, alpha as zn, keyframes as El, ThemeProvider as Sl } from "@mui/material/styles";
|
|
55
55
|
import { ResponsiveChartContainer as Tl, AreaPlot as Al, LinePlot as Il, MarkPlot as xl, BarPlot as vl, ChartsXAxis as wl, ChartsYAxis as Nl, ChartsReferenceLine as Dl, ChartsLegend as Rl, LineChart as cs } from "@mui/x-charts";
|
|
56
|
-
import
|
|
57
|
-
import
|
|
56
|
+
import Ot from "@mui/material/Card";
|
|
57
|
+
import Lt from "@mui/material/CardContent";
|
|
58
58
|
import je from "@mui/material/Grid";
|
|
59
59
|
import { differenceInCalendarDays as Ol } from "date-fns/differenceInCalendarDays";
|
|
60
60
|
import { endOfToday as En } from "date-fns/endOfToday";
|
|
@@ -78,7 +78,7 @@ import { v4 as jl } from "uuid";
|
|
|
78
78
|
import Ki from "@mui/material/InputAdornment";
|
|
79
79
|
import Xl from "@mui/material/Radio";
|
|
80
80
|
import Bt from "@mui/material/Avatar";
|
|
81
|
-
import
|
|
81
|
+
import Ge from "@mui/material/ListItemAvatar";
|
|
82
82
|
import ht from "@mui/material/ListItemIcon";
|
|
83
83
|
import Ya from "@mui/material/MenuItem";
|
|
84
84
|
import nt from "@mui/material/TextField";
|
|
@@ -325,7 +325,7 @@ const Bd = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
|
325
325
|
TRENDS_HOVER_POINT: "trends_widget_hover_chart_point",
|
|
326
326
|
TRENDS_VIEW_TRANSACTIONS: "trends_widget_view_transactions",
|
|
327
327
|
WIDGET_BACK_CLICK: "widget_back_button_click"
|
|
328
|
-
}, Hd = "do",
|
|
328
|
+
}, Hd = "do", ZE = "MMM do, yyyy", re = {
|
|
329
329
|
TIME_STAMP_HOUR_MINUTE: {
|
|
330
330
|
hour: "numeric",
|
|
331
331
|
minute: "numeric"
|
|
@@ -410,7 +410,7 @@ const Fd = [
|
|
|
410
410
|
/* IMPAIRED */
|
|
411
411
|
], xs = [...Is, ...As];
|
|
412
412
|
var Ln = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(Ln || {});
|
|
413
|
-
const
|
|
413
|
+
const qE = {
|
|
414
414
|
3: "Challenged",
|
|
415
415
|
12: "Closed",
|
|
416
416
|
9: "Degraded",
|
|
@@ -460,7 +460,7 @@ const q4 = {
|
|
|
460
460
|
2: "savings"
|
|
461
461
|
}, Wd = {
|
|
462
462
|
5: "bid_landscape"
|
|
463
|
-
},
|
|
463
|
+
}, QE = {
|
|
464
464
|
0: "Real Estate",
|
|
465
465
|
1: "Vehicle",
|
|
466
466
|
2: "Art",
|
|
@@ -800,7 +800,7 @@ const q4 = {
|
|
|
800
800
|
UNKNOWN: "help"
|
|
801
801
|
}, jo = 9999999999e-2;
|
|
802
802
|
var zi = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(zi || {}), Vd = /* @__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))(Vd || {});
|
|
803
|
-
const
|
|
803
|
+
const JE = [
|
|
804
804
|
{ id: 0, copy: "frequency_unknown" },
|
|
805
805
|
{ id: 1, copy: "frequency_every_week" },
|
|
806
806
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -809,7 +809,7 @@ const J4 = [
|
|
|
809
809
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
810
810
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
811
811
|
{ id: 7, copy: "frequency_every_year" }
|
|
812
|
-
],
|
|
812
|
+
], e4 = {
|
|
813
813
|
ERROR: "ERROR",
|
|
814
814
|
LOADING: "LOADING",
|
|
815
815
|
SUCCESS: "SUCCESS"
|
|
@@ -821,7 +821,7 @@ const oi = 44, Xo = (e, n) => e.find((i) => i.guid === n), jd = (e, n) => e.find
|
|
|
821
821
|
const i = e.find((a) => a.subCategories.find((o) => o.guid === n));
|
|
822
822
|
if (i)
|
|
823
823
|
return i.subCategories.find((a) => a.guid === n);
|
|
824
|
-
},
|
|
824
|
+
}, t4 = (e, n) => {
|
|
825
825
|
const i = [];
|
|
826
826
|
for (const a of n) {
|
|
827
827
|
const o = Xo(e, a.category_guid);
|
|
@@ -842,7 +842,7 @@ const oi = 44, Xo = (e, n) => e.find((i) => i.guid === n), jd = (e, n) => e.find
|
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
844
|
return i;
|
|
845
|
-
},
|
|
845
|
+
}, n4 = (e, n) => {
|
|
846
846
|
const i = e.find((a) => a.guid === n);
|
|
847
847
|
return i ? i.guid === N.INCOME || i.parent_guid === N.INCOME : !1;
|
|
848
848
|
}, no = (e) => {
|
|
@@ -890,7 +890,7 @@ const oi = 44, Xo = (e, n) => e.find((i) => i.guid === n), jd = (e, n) => e.find
|
|
|
890
890
|
[]
|
|
891
891
|
);
|
|
892
892
|
return i ? o : o.join("");
|
|
893
|
-
},
|
|
893
|
+
}, i4 = (e, n, i, ...a) => !e || !n ? "" : T(i === 1 ? e : n, ...a), Nn = () => {
|
|
894
894
|
const e = "en-us", n = ["en-us", "en-ca", "fr", "fr-ca", "es"], i = window?.app?.options?.language?.toLowerCase() ?? "", a = window.navigator.language.toLowerCase();
|
|
895
895
|
return i === "browser" && n.includes(a) ? a : n.includes(i) ? i : e;
|
|
896
896
|
};
|
|
@@ -984,7 +984,7 @@ const P = (e, n, i) => {
|
|
|
984
984
|
}) => {
|
|
985
985
|
const a = a_(n).select(e);
|
|
986
986
|
return `${e}${i[a]}`;
|
|
987
|
-
},
|
|
987
|
+
}, a4 = (e, n) => {
|
|
988
988
|
const i = e.palette.mode === "dark", a = (s, c) => {
|
|
989
989
|
const d = n?.[s];
|
|
990
990
|
return {
|
|
@@ -1210,7 +1210,7 @@ class _i {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
getGlobalCopy = async (n, i) => this.fetchInstance.post(`${G.LOCALIZED_CONTENT}/${n}`, { translation_key: i }).then((a) => a);
|
|
1212
1212
|
}
|
|
1213
|
-
class
|
|
1213
|
+
class o4 {
|
|
1214
1214
|
fetchInstance;
|
|
1215
1215
|
constructor(n, i) {
|
|
1216
1216
|
this.fetchInstance = new ot(n, i);
|
|
@@ -1234,7 +1234,7 @@ class Qo {
|
|
|
1234
1234
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
|
1235
1235
|
markAllAsViewed = (n) => this.fetchInstance.put(`${G.NOTIFICATIONS}/mark_all_as_viewed`, { channel: n }).finally();
|
|
1236
1236
|
}
|
|
1237
|
-
class
|
|
1237
|
+
class r4 {
|
|
1238
1238
|
fetchInstance;
|
|
1239
1239
|
constructor(n, i) {
|
|
1240
1240
|
this.fetchInstance = new ot(n, i);
|
|
@@ -1271,7 +1271,7 @@ const Ea = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1271
1271
|
guid: a.guid
|
|
1272
1272
|
};
|
|
1273
1273
|
return Object.prototype.hasOwnProperty.call(i, o) ? i[o] = i[o].concat(r) : i[o] = [r], i;
|
|
1274
|
-
}, {}), Pn = g.createContext(null),
|
|
1274
|
+
}, {}), Pn = g.createContext(null), s4 = ({
|
|
1275
1275
|
children: e,
|
|
1276
1276
|
globalStore: n,
|
|
1277
1277
|
onEvent: i,
|
|
@@ -1302,7 +1302,7 @@ const Ea = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1302
1302
|
if (!n)
|
|
1303
1303
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
1304
1304
|
return n;
|
|
1305
|
-
},
|
|
1305
|
+
}, Se = () => qe("useAccountStore").globalStore.accountStore, Fn = () => qe("useAppConfig").globalStore.appDataStore.appConfig, io = () => qe("useAnalyticsStore").globalStore.analyticsStore, lt = () => qe("useBudgetsStore").globalStore.budgetsStore, ao = () => qe("useCashflowStore").globalStore.cashflowStore, $e = () => qe("useCategoryStore").globalStore.categoryStore, Ms = () => qe("useConnectStore").globalStore.connectStore, ca = () => qe("useDebtsStore").globalStore.debtsStore, la = () => qe("useGlobalStore").globalStore, de = () => qe("useGlobalUiStore").globalStore.globalUiStore, x = () => qe("globalCopyStore").globalStore.copyStore.copy, tt = () => qe("useGoalStore").globalStore.goalStore, oo = () => qe("useHelpStore").globalStore.helpStore, Gn = () => qe("useHoldingStore").globalStore.holdingStore, s_ = () => qe("useMerchantStore").globalStore.merchantStore, ks = () => qe("useNetWorthStore").globalStore.netWorthStore, Gs = () => qe("useNotificationStore").globalStore.notificationStore, ze = () => qe("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, pt = () => qe("useSettingsStore").globalStore.settingsStore, Ne = () => qe("useTransactionStore").globalStore.transactionStore, Mt = () => qe("useUserStore").globalStore.userStore, j = () => ({ onEvent: qe().onEvent }), c4 = () => ({ onPageView: qe().onPageView }), c_ = (e = "useWidgetContainerContext") => {
|
|
1306
1306
|
const n = g.useContext(Os);
|
|
1307
1307
|
if (!n)
|
|
1308
1308
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -1353,8 +1353,8 @@ const Ea = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1353
1353
|
},
|
|
1354
1354
|
children: [
|
|
1355
1355
|
/* @__PURE__ */ t(el, { size: 32 }),
|
|
1356
|
-
/* @__PURE__ */ t(
|
|
1357
|
-
/* @__PURE__ */ t(
|
|
1356
|
+
/* @__PURE__ */ t(Ee, { bold: !0, mt: 12, children: i.zeroStateTitle }),
|
|
1357
|
+
/* @__PURE__ */ t(Ee, { mt: 12, children: i.zeroStateDescription }),
|
|
1358
1358
|
/* @__PURE__ */ t(te, { onClick: s, children: i.zeroStateButton })
|
|
1359
1359
|
]
|
|
1360
1360
|
}
|
|
@@ -1554,7 +1554,7 @@ const l_ = (e, n) => {
|
|
|
1554
1554
|
// Between 600 and 1200
|
|
1555
1555
|
isTablet: e > a && e <= r
|
|
1556
1556
|
}), c;
|
|
1557
|
-
},
|
|
1557
|
+
}, l4 = (e) => {
|
|
1558
1558
|
const n = as();
|
|
1559
1559
|
return Mn(() => {
|
|
1560
1560
|
n.current = e;
|
|
@@ -1828,7 +1828,7 @@ const l_ = (e, n) => {
|
|
|
1828
1828
|
}), m_ = (e, n) => e + n, p_ = (e, n) => Math.abs(n) > e ? Math.abs(n) : e, C_ = (e, n) => [...e, n.value], nr = (e, n, i) => {
|
|
1829
1829
|
const a = e && n ? i / 2 : i;
|
|
1830
1830
|
return e ? a : 0;
|
|
1831
|
-
}, f_ = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0,
|
|
1831
|
+
}, f_ = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0, d4 = ({
|
|
1832
1832
|
average: e,
|
|
1833
1833
|
barWidth: n = "8%",
|
|
1834
1834
|
color: i,
|
|
@@ -2419,7 +2419,7 @@ const I_ = ({
|
|
|
2419
2419
|
}, [a, o]), !i) return null;
|
|
2420
2420
|
const u = i.reduce((_, h) => _ + h.y, 0);
|
|
2421
2421
|
return /* @__PURE__ */ t(
|
|
2422
|
-
|
|
2422
|
+
Ot,
|
|
2423
2423
|
{
|
|
2424
2424
|
ref: s,
|
|
2425
2425
|
sx: {
|
|
@@ -2429,7 +2429,7 @@ const I_ = ({
|
|
|
2429
2429
|
width: 250,
|
|
2430
2430
|
pointerEvents: "none"
|
|
2431
2431
|
},
|
|
2432
|
-
children: /* @__PURE__ */ l(
|
|
2432
|
+
children: /* @__PURE__ */ l(Lt, { children: [
|
|
2433
2433
|
/* @__PURE__ */ l(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2434
2434
|
/* @__PURE__ */ t(Ws, { categoryGuid: e, topLevelCategoryGuid: n }),
|
|
2435
2435
|
/* @__PURE__ */ t(p, { variant: "Small", children: `${i.length}-month total` }),
|
|
@@ -2528,7 +2528,7 @@ const I_ = ({
|
|
|
2528
2528
|
isAreaHovered: !1,
|
|
2529
2529
|
cursorPos: { x: 0, y: 0 }
|
|
2530
2530
|
}), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: S, cursorPos: A } = C, w = S && E && y, v = !w, R = [...o, ...r], B = R[0]?.dataset.length ?? 0, M = R.flatMap((K) => K.dataset.map((Le) => Le.x)), D = R.flatMap((K) => K.dataset.map((Le) => Le.y)), k = o[0]?.dataset?.map(
|
|
2531
|
-
(K, Le) => o.reduce((
|
|
2531
|
+
(K, Le) => o.reduce((ke, Pt) => ke + Pt.dataset[Le]?.y || 0, 0)
|
|
2532
2532
|
) ?? [0], O = Math.max(...k), U = Math.max(
|
|
2533
2533
|
...r.flatMap((K) => K.dataset.map((Le) => Le.y))
|
|
2534
2534
|
), Q = Math.floor(Math.min(...D) / 100) * 100, oe = Math.ceil(Math.max(O, U) / 100) * 100, J = o.map((K, Le) => ({
|
|
@@ -2537,22 +2537,22 @@ const I_ = ({
|
|
|
2537
2537
|
top_level_guid: K.top_level_category_guid,
|
|
2538
2538
|
area: !0,
|
|
2539
2539
|
color: o[Le].category_color ?? d.palette.primary.main,
|
|
2540
|
-
data: K.dataset.map((
|
|
2540
|
+
data: K.dataset.map((ke) => ke.y),
|
|
2541
2541
|
label: o[Le].category_name,
|
|
2542
2542
|
stack: "total",
|
|
2543
2543
|
type: "line",
|
|
2544
2544
|
highlightScope: { highlight: "item" },
|
|
2545
|
-
valueFormatter: (
|
|
2545
|
+
valueFormatter: (ke) => P(ke, "0,0")
|
|
2546
2546
|
})), ge = r.map((K, Le) => ({
|
|
2547
2547
|
id: `unstacked-${Le}`,
|
|
2548
2548
|
guid: K.category_guid,
|
|
2549
2549
|
top_level_guid: K.top_level_category_guid,
|
|
2550
2550
|
area: !1,
|
|
2551
2551
|
color: K.category_color,
|
|
2552
|
-
data: K.dataset.map((
|
|
2552
|
+
data: K.dataset.map((ke) => ke.y),
|
|
2553
2553
|
label: K.category_name,
|
|
2554
2554
|
type: "line",
|
|
2555
|
-
valueFormatter: (
|
|
2555
|
+
valueFormatter: (ke) => P(ke, "0,0")
|
|
2556
2556
|
})), De = [...J, ...ge], Re = [
|
|
2557
2557
|
...J.map(({ guid: K, top_level_guid: Le }) => ({
|
|
2558
2558
|
guid: K,
|
|
@@ -2562,28 +2562,28 @@ const I_ = ({
|
|
|
2562
2562
|
guid: K,
|
|
2563
2563
|
top_level_guid: Le
|
|
2564
2564
|
}))
|
|
2565
|
-
],
|
|
2566
|
-
const
|
|
2565
|
+
], Te = (K) => {
|
|
2566
|
+
const ke = K.startsWith("stacked-") ? o[parseInt(K.split("-")[1])] : r[parseInt(K.split("-")[1])];
|
|
2567
2567
|
return {
|
|
2568
|
-
guid:
|
|
2569
|
-
topLevelGuid:
|
|
2568
|
+
guid: ke?.category_guid,
|
|
2569
|
+
topLevelGuid: ke?.top_level_category_guid
|
|
2570
2570
|
};
|
|
2571
2571
|
}, Oe = (K) => {
|
|
2572
2572
|
m(K), i?.(K ?? "");
|
|
2573
|
-
},
|
|
2573
|
+
}, xt = (K) => {
|
|
2574
2574
|
a?.(K ?? "");
|
|
2575
2575
|
}, ee = () => {
|
|
2576
|
-
const K =
|
|
2576
|
+
const K = Te(String(E)).guid;
|
|
2577
2577
|
K && a?.(K);
|
|
2578
2578
|
}, ne = (K) => {
|
|
2579
|
-
const Le = String(K?.seriesId),
|
|
2579
|
+
const Le = String(K?.seriesId), ke = Te(Le).guid, Pt = De.find((ai) => ai.id === Le), dt = Pt && K?.dataIndex !== void 0, ii = Pt && K?.dataIndex === void 0;
|
|
2580
2580
|
if (dt)
|
|
2581
2581
|
f({
|
|
2582
2582
|
hoveredSeriesId: Le,
|
|
2583
2583
|
hoveredAreaData: null,
|
|
2584
2584
|
isAreaHovered: !1,
|
|
2585
2585
|
cursorPos: A
|
|
2586
|
-
}), n?.(
|
|
2586
|
+
}), n?.(ke);
|
|
2587
2587
|
else if (ii) {
|
|
2588
2588
|
const ai = Pt?.data.map((fa, ba) => ({
|
|
2589
2589
|
x: M[ba],
|
|
@@ -2594,7 +2594,7 @@ const I_ = ({
|
|
|
2594
2594
|
hoveredAreaData: ai,
|
|
2595
2595
|
isAreaHovered: !0,
|
|
2596
2596
|
cursorPos: A
|
|
2597
|
-
}), e?.(
|
|
2597
|
+
}), e?.(ke);
|
|
2598
2598
|
} else
|
|
2599
2599
|
f({
|
|
2600
2600
|
hoveredSeriesId: null,
|
|
@@ -2604,8 +2604,8 @@ const I_ = ({
|
|
|
2604
2604
|
});
|
|
2605
2605
|
}, Ue = (K) => {
|
|
2606
2606
|
const Le = K.currentTarget.getBoundingClientRect();
|
|
2607
|
-
f((
|
|
2608
|
-
...
|
|
2607
|
+
f((ke) => ({
|
|
2608
|
+
...ke,
|
|
2609
2609
|
cursorPos: {
|
|
2610
2610
|
x: K.clientX - Le.left,
|
|
2611
2611
|
y: K.clientY - Le.top
|
|
@@ -2627,10 +2627,10 @@ const I_ = ({
|
|
|
2627
2627
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
|
2628
2628
|
strokeWidth: 3
|
|
2629
2629
|
},
|
|
2630
|
-
...h && J.reduce((K, Le,
|
|
2631
|
-
const Pt = `.MuiAreaElement-series-stacked-${
|
|
2630
|
+
...h && J.reduce((K, Le, ke) => {
|
|
2631
|
+
const Pt = `.MuiAreaElement-series-stacked-${ke}`;
|
|
2632
2632
|
return K[Pt] = {
|
|
2633
|
-
opacity: J[
|
|
2633
|
+
opacity: J[ke].guid === h ? 0.9 : 0.2
|
|
2634
2634
|
}, K;
|
|
2635
2635
|
}, {})
|
|
2636
2636
|
};
|
|
@@ -2659,7 +2659,7 @@ const I_ = ({
|
|
|
2659
2659
|
itemContent: (K) => v && E ? /* @__PURE__ */ t(
|
|
2660
2660
|
G_,
|
|
2661
2661
|
{
|
|
2662
|
-
categoryGuids:
|
|
2662
|
+
categoryGuids: Te(E),
|
|
2663
2663
|
xData: M,
|
|
2664
2664
|
...K
|
|
2665
2665
|
}
|
|
@@ -2692,7 +2692,7 @@ const I_ = ({
|
|
|
2692
2692
|
{
|
|
2693
2693
|
categoryGuids: Re,
|
|
2694
2694
|
hoveredLegend: h,
|
|
2695
|
-
onClickLegend:
|
|
2695
|
+
onClickLegend: xt,
|
|
2696
2696
|
onHoverLegend: Oe,
|
|
2697
2697
|
sx: { px: u ? 0 : 24 }
|
|
2698
2698
|
}
|
|
@@ -2700,7 +2700,7 @@ const I_ = ({
|
|
|
2700
2700
|
w && /* @__PURE__ */ t(
|
|
2701
2701
|
k_,
|
|
2702
2702
|
{
|
|
2703
|
-
categoryGuids:
|
|
2703
|
+
categoryGuids: Te(E),
|
|
2704
2704
|
chartContainerRef: _,
|
|
2705
2705
|
cursorPosition: A,
|
|
2706
2706
|
hoveredAreaData: y.map((K) => ({
|
|
@@ -3142,7 +3142,7 @@ const I_ = ({
|
|
|
3142
3142
|
}
|
|
3143
3143
|
)
|
|
3144
3144
|
] });
|
|
3145
|
-
},
|
|
3145
|
+
}, _4 = ({
|
|
3146
3146
|
hasGap: e = !1,
|
|
3147
3147
|
segments: n,
|
|
3148
3148
|
size: i = ws,
|
|
@@ -3280,7 +3280,7 @@ const co = ({
|
|
|
3280
3280
|
title: r
|
|
3281
3281
|
}) => (
|
|
3282
3282
|
// Override Material UI styles by applying this className/sx (passed from the caller)
|
|
3283
|
-
/* @__PURE__ */ t(b, { className: n, sx: { alignItems: "center", ...o }, children: /* @__PURE__ */ l(
|
|
3283
|
+
/* @__PURE__ */ t(b, { className: n, sx: { alignItems: "center", ...o }, children: /* @__PURE__ */ l(Ot, { sx: { boxShadow: "0px 2px 8px 0px #0000001F" }, children: [
|
|
3284
3284
|
/* @__PURE__ */ t(
|
|
3285
3285
|
dn,
|
|
3286
3286
|
{
|
|
@@ -3303,7 +3303,7 @@ const co = ({
|
|
|
3303
3303
|
title: /* @__PURE__ */ t(mt, { sx: { width: "calc(100% - 10px)" }, children: r })
|
|
3304
3304
|
}
|
|
3305
3305
|
),
|
|
3306
|
-
/* @__PURE__ */ t(
|
|
3306
|
+
/* @__PURE__ */ t(Lt, { sx: { p: 0, ":last-child": { pb: 0 } }, children: e })
|
|
3307
3307
|
] }) })
|
|
3308
3308
|
), U_ = (e, n) => g.useMemo(() => {
|
|
3309
3309
|
let i = null;
|
|
@@ -3349,7 +3349,7 @@ const Dn = ({
|
|
|
3349
3349
|
title: d = ""
|
|
3350
3350
|
}) => {
|
|
3351
3351
|
const [u, { height: _, width: h }] = $s();
|
|
3352
|
-
return /* @__PURE__ */ l(
|
|
3352
|
+
return /* @__PURE__ */ l(Ot, { className: e, sx: { ...c }, children: [
|
|
3353
3353
|
/* @__PURE__ */ t(
|
|
3354
3354
|
dn,
|
|
3355
3355
|
{
|
|
@@ -3360,7 +3360,7 @@ const Dn = ({
|
|
|
3360
3360
|
title: d ? /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children: d }) : null
|
|
3361
3361
|
}
|
|
3362
3362
|
),
|
|
3363
|
-
/* @__PURE__ */ t(
|
|
3363
|
+
/* @__PURE__ */ t(Lt, { ref: u, sx: { p: 0 }, children: /* @__PURE__ */ t(Ls, { availableHeight: _, availableWidth: h, children: i }) })
|
|
3364
3364
|
] });
|
|
3365
3365
|
}, _e = ({ height: e = 250, label: n = "", size: i = 32 }) => {
|
|
3366
3366
|
const a = gt();
|
|
@@ -3422,7 +3422,7 @@ const Dn = ({
|
|
|
3422
3422
|
dateRangePreviousAria: D.date_range_picker.previous_aria
|
|
3423
3423
|
}, Q = o ? o.start : v.start, oe = o ? o.end : v.end, J = n?.length > 1;
|
|
3424
3424
|
return /* @__PURE__ */ l(
|
|
3425
|
-
|
|
3425
|
+
Ot,
|
|
3426
3426
|
{
|
|
3427
3427
|
className: s,
|
|
3428
3428
|
sx: {
|
|
@@ -3462,26 +3462,26 @@ const Dn = ({
|
|
|
3462
3462
|
),
|
|
3463
3463
|
n?.map((ge) => {
|
|
3464
3464
|
if (g.isValidElement(ge)) return ge;
|
|
3465
|
-
const { iconName: De, onClick: Re, label:
|
|
3465
|
+
const { iconName: De, onClick: Re, label: Te } = ge;
|
|
3466
3466
|
return J ? S || w ? /* @__PURE__ */ t(
|
|
3467
3467
|
te,
|
|
3468
3468
|
{
|
|
3469
3469
|
onClick: Re,
|
|
3470
3470
|
startIcon: /* @__PURE__ */ t($, { name: De, size: 24 }),
|
|
3471
3471
|
sx: { my: 4 },
|
|
3472
|
-
children:
|
|
3472
|
+
children: Te
|
|
3473
3473
|
},
|
|
3474
3474
|
De
|
|
3475
|
-
) : /* @__PURE__ */ t(Pe, { "aria-label":
|
|
3475
|
+
) : /* @__PURE__ */ t(Pe, { "aria-label": Te, onClick: Re, children: /* @__PURE__ */ t($, { name: De, size: 24 }) }, De) : S || w ? /* @__PURE__ */ t(
|
|
3476
3476
|
te,
|
|
3477
3477
|
{
|
|
3478
3478
|
onClick: Re,
|
|
3479
3479
|
startIcon: /* @__PURE__ */ t($, { name: De, size: 24 }),
|
|
3480
3480
|
sx: { my: 4 },
|
|
3481
|
-
children:
|
|
3481
|
+
children: Te
|
|
3482
3482
|
},
|
|
3483
3483
|
De
|
|
3484
|
-
) : /* @__PURE__ */ t(Pe, { "aria-label":
|
|
3484
|
+
) : /* @__PURE__ */ t(Pe, { "aria-label": Te, onClick: Re, children: /* @__PURE__ */ t($, { name: De, size: 24 }) }, De);
|
|
3485
3485
|
})
|
|
3486
3486
|
] }),
|
|
3487
3487
|
sx: {
|
|
@@ -3521,7 +3521,7 @@ const Dn = ({
|
|
|
3521
3521
|
}
|
|
3522
3522
|
)
|
|
3523
3523
|
] }),
|
|
3524
|
-
/* @__PURE__ */ t(
|
|
3524
|
+
/* @__PURE__ */ t(Lt, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(Ls, { availableHeight: f, availableWidth: E, children: a }) })
|
|
3525
3525
|
]
|
|
3526
3526
|
}
|
|
3527
3527
|
);
|
|
@@ -3551,7 +3551,7 @@ const Dn = ({
|
|
|
3551
3551
|
}
|
|
3552
3552
|
);
|
|
3553
3553
|
}, Yi = I(K_);
|
|
3554
|
-
var xn = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Error = "error", e))(xn || {}),
|
|
3554
|
+
var xn = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Error = "error", e))(xn || {}), wt = /* @__PURE__ */ ((e) => (e.Currency = "currency", e.Date = "date", e.Input = "input", e.Select = "select", e))(wt || {});
|
|
3555
3555
|
const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
3556
3556
|
loadWidgetProps: e,
|
|
3557
3557
|
onClose: n,
|
|
@@ -3559,7 +3559,7 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
3559
3559
|
title: a
|
|
3560
3560
|
}) => {
|
|
3561
3561
|
let o;
|
|
3562
|
-
const { refreshAccounts: r } =
|
|
3562
|
+
const { refreshAccounts: r } = Se(), { loadWidget: s } = Ms(), { connect: c } = x(), [d, u] = g.useState(!1), [_, h] = g.useState(!1), {
|
|
3563
3563
|
palette: { mode: m }
|
|
3564
3564
|
} = pe();
|
|
3565
3565
|
return g.useEffect(() => (i ? (u(!0), s({ mode: m, ...e }).then((C) => {
|
|
@@ -3644,8 +3644,8 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
3644
3644
|
yn,
|
|
3645
3645
|
{
|
|
3646
3646
|
InputProps: {
|
|
3647
|
-
endAdornment: Nn().includes("fr-ca") ? /* @__PURE__ */ t(
|
|
3648
|
-
startAdornment: Nn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(
|
|
3647
|
+
endAdornment: Nn().includes("fr-ca") ? /* @__PURE__ */ t(Ee, { children: "$" }) : void 0,
|
|
3648
|
+
startAdornment: Nn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(Ee, { children: "$" })
|
|
3649
3649
|
},
|
|
3650
3650
|
"aria-label": n || E.enter_amount,
|
|
3651
3651
|
className: `mx-cmn-currency-input ${S}`,
|
|
@@ -3667,7 +3667,7 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
3667
3667
|
"& .MuiInputBase-adornedStart > .p": {
|
|
3668
3668
|
marginRight: e.Spacing.Tiny
|
|
3669
3669
|
}
|
|
3670
|
-
}),
|
|
3670
|
+
}), u4 = ({
|
|
3671
3671
|
icon: e,
|
|
3672
3672
|
label: n,
|
|
3673
3673
|
onClick: i,
|
|
@@ -3822,7 +3822,7 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
3822
3822
|
}
|
|
3823
3823
|
), ka = ({ iconName: e, label: n, onClick: i, value: a }) => {
|
|
3824
3824
|
const o = /* @__PURE__ */ l(q, { children: [
|
|
3825
|
-
/* @__PURE__ */ t(
|
|
3825
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: e, sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
3826
3826
|
/* @__PURE__ */ t(
|
|
3827
3827
|
ae,
|
|
3828
3828
|
{
|
|
@@ -3873,7 +3873,7 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
3873
3873
|
const { config: a } = Fn(), [o, r] = g.useState(!1);
|
|
3874
3874
|
if (a.show_connections_widget_in_master)
|
|
3875
3875
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
3876
|
-
/* @__PURE__ */ l(
|
|
3876
|
+
/* @__PURE__ */ l(Ot, { sx: { m: 24 }, children: [
|
|
3877
3877
|
/* @__PURE__ */ t(
|
|
3878
3878
|
dn,
|
|
3879
3879
|
{
|
|
@@ -3882,7 +3882,7 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
3882
3882
|
title: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i })
|
|
3883
3883
|
}
|
|
3884
3884
|
),
|
|
3885
|
-
/* @__PURE__ */ t(
|
|
3885
|
+
/* @__PURE__ */ t(Lt, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ l(b, { alignItems: "flex-start", spacing: 2, children: [
|
|
3886
3886
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: e }),
|
|
3887
3887
|
/* @__PURE__ */ t(
|
|
3888
3888
|
te,
|
|
@@ -4069,7 +4069,7 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
4069
4069
|
"& .MuiListItemButton-root": { pr: 24 }
|
|
4070
4070
|
},
|
|
4071
4071
|
children: /* @__PURE__ */ l(ue, { disabled: a, onClick: o, children: [
|
|
4072
|
-
e && /* @__PURE__ */ t(
|
|
4072
|
+
e && /* @__PURE__ */ t(Ge, { children: e }),
|
|
4073
4073
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ l(b, { children: [
|
|
4074
4074
|
/* @__PURE__ */ t(p, { variant: "body1", children: s }),
|
|
4075
4075
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "caption", children: c })
|
|
@@ -4467,7 +4467,7 @@ const ti = () => {
|
|
|
4467
4467
|
/* @__PURE__ */ t(We, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
|
4468
4468
|
] });
|
|
4469
4469
|
}, uo = I(ou), ru = ({ onAddIncomeClick: e }) => {
|
|
4470
|
-
const n = pe(), { availableWidth: i } = Wn(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } =
|
|
4470
|
+
const n = pe(), { availableWidth: i } = Wn(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } = Se(), { selectedAccountGuids: s } = de(), { cashflow: c } = x(), { userProfile: d } = Mt(), {
|
|
4471
4471
|
daysUntilNextIncome: u,
|
|
4472
4472
|
expensesTilNextIncome: _,
|
|
4473
4473
|
selectedCashAccounts: h,
|
|
@@ -4503,7 +4503,7 @@ const ti = () => {
|
|
|
4503
4503
|
children: [
|
|
4504
4504
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
|
4505
4505
|
/* @__PURE__ */ t(We, { amount: A, variant: "H2" }),
|
|
4506
|
-
/* @__PURE__ */ t(
|
|
4506
|
+
/* @__PURE__ */ t(Ee, { variant: "XSmall", whiteSpace: "nowrap", children: T(
|
|
4507
4507
|
c.total_cash_accounts,
|
|
4508
4508
|
h.length
|
|
4509
4509
|
) })
|
|
@@ -4511,19 +4511,19 @@ const ti = () => {
|
|
|
4511
4511
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "remove" }) }),
|
|
4512
4512
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
|
4513
4513
|
/* @__PURE__ */ t(We, { amount: w, variant: "H2" }),
|
|
4514
|
-
/* @__PURE__ */ t(
|
|
4514
|
+
/* @__PURE__ */ t(Ee, { variant: "XSmall", whiteSpace: "nowrap", children: T(c.expenses_due, _.length) })
|
|
4515
4515
|
] }),
|
|
4516
4516
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "equals" }) }),
|
|
4517
4517
|
/* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
|
|
4518
4518
|
/* @__PURE__ */ t(We, { amount: v, variant: "H2" }),
|
|
4519
4519
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
4520
|
-
/* @__PURE__ */ t(
|
|
4520
|
+
/* @__PURE__ */ t(Ee, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
|
4521
4521
|
/* @__PURE__ */ t(lo, { body: c.tooltip_body, title: c.tooltip_title })
|
|
4522
4522
|
] })
|
|
4523
4523
|
] }),
|
|
4524
4524
|
/* @__PURE__ */ t(b, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(q, { children: [
|
|
4525
4525
|
/* @__PURE__ */ t(p, { variant: "H2", children: T(c.days, u) }),
|
|
4526
|
-
/* @__PURE__ */ t(
|
|
4526
|
+
/* @__PURE__ */ t(Ee, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
|
|
4527
4527
|
] }) : /* @__PURE__ */ t(
|
|
4528
4528
|
te,
|
|
4529
4529
|
{
|
|
@@ -4607,7 +4607,7 @@ const ti = () => {
|
|
|
4607
4607
|
children: /* @__PURE__ */ t(su, { onAddIncomeClick: e })
|
|
4608
4608
|
}
|
|
4609
4609
|
) : /* @__PURE__ */ t(_e, {});
|
|
4610
|
-
},
|
|
4610
|
+
}, h4 = I(cu), lu = (e) => {
|
|
4611
4611
|
if (!e) return "";
|
|
4612
4612
|
let n = e.user_name || e.feed_name || "";
|
|
4613
4613
|
return e.account_number && (n = `${n} *${e.account_number}`), n;
|
|
@@ -4985,7 +4985,7 @@ const Eu = [
|
|
|
4985
4985
|
tags: _
|
|
4986
4986
|
};
|
|
4987
4987
|
});
|
|
4988
|
-
},
|
|
4988
|
+
}, Ae = {
|
|
4989
4989
|
ADD: "Add",
|
|
4990
4990
|
ADD_CATEGORY: "Add Category",
|
|
4991
4991
|
CHANGE_CATEGORY: "Change Category",
|
|
@@ -4999,11 +4999,11 @@ const Eu = [
|
|
|
4999
4999
|
SELECT: "Select",
|
|
5000
5000
|
UNHIDE: "Unhide",
|
|
5001
5001
|
UNSPLIT: "Unsplit"
|
|
5002
|
-
},
|
|
5002
|
+
}, Ie = {
|
|
5003
5003
|
TRANSACTION_DETAILS: "Transaction Details",
|
|
5004
5004
|
TRANSACTIONS_LIST: "Transactions List",
|
|
5005
5005
|
TRANSACTIONS_WIDGET: "Transactions Widget"
|
|
5006
|
-
},
|
|
5006
|
+
}, xe = {
|
|
5007
5007
|
ADD_TRANSACTION: "Manual Transaction",
|
|
5008
5008
|
CATEGORY: "Category",
|
|
5009
5009
|
DATE: "Date",
|
|
@@ -5025,216 +5025,216 @@ const Eu = [
|
|
|
5025
5025
|
}, dr = {
|
|
5026
5026
|
// splits
|
|
5027
5027
|
[Y.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
5028
|
-
action:
|
|
5029
|
-
category:
|
|
5030
|
-
label:
|
|
5028
|
+
action: Ae.SELECT,
|
|
5029
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5030
|
+
label: xe.SPLITS
|
|
5031
5031
|
},
|
|
5032
5032
|
[Y.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
5033
|
-
action:
|
|
5034
|
-
category:
|
|
5035
|
-
label:
|
|
5033
|
+
action: Ae.ADD_CATEGORY,
|
|
5034
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5035
|
+
label: xe.SPLITS
|
|
5036
5036
|
},
|
|
5037
5037
|
[Y.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
5038
|
-
action:
|
|
5039
|
-
category:
|
|
5040
|
-
label:
|
|
5038
|
+
action: Ae.DELETE,
|
|
5039
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5040
|
+
label: xe.SPLITS
|
|
5041
5041
|
},
|
|
5042
5042
|
[Y.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
5043
|
-
action:
|
|
5044
|
-
category:
|
|
5045
|
-
label:
|
|
5043
|
+
action: Ae.SPLIT,
|
|
5044
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5045
|
+
label: xe.SPLITS
|
|
5046
5046
|
},
|
|
5047
5047
|
[Y.ON_TRANSACTION_UNSPLIT]: {
|
|
5048
|
-
action:
|
|
5049
|
-
category:
|
|
5050
|
-
label:
|
|
5048
|
+
action: Ae.UNSPLIT,
|
|
5049
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5050
|
+
label: xe.SPLITS
|
|
5051
5051
|
},
|
|
5052
5052
|
// category
|
|
5053
5053
|
[Y.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
5054
|
-
action:
|
|
5055
|
-
category:
|
|
5056
|
-
label:
|
|
5054
|
+
action: Ae.SELECT,
|
|
5055
|
+
category: Ie.TRANSACTIONS_LIST,
|
|
5056
|
+
label: xe.CATEGORY
|
|
5057
5057
|
},
|
|
5058
5058
|
[Y.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
5059
|
-
action:
|
|
5060
|
-
category:
|
|
5061
|
-
label:
|
|
5059
|
+
action: Ae.CHANGE_CATEGORY,
|
|
5060
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5061
|
+
label: xe.CATEGORY
|
|
5062
5062
|
},
|
|
5063
5063
|
// date
|
|
5064
5064
|
[Y.ON_TRANSACTION_DATE_CHANGED]: {
|
|
5065
|
-
action:
|
|
5066
|
-
category:
|
|
5067
|
-
label:
|
|
5065
|
+
action: Ae.SAVE,
|
|
5066
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5067
|
+
label: xe.DATE
|
|
5068
5068
|
},
|
|
5069
5069
|
[Y.ON_TRANSACTION_DATE_CLICK]: {
|
|
5070
|
-
action:
|
|
5071
|
-
category:
|
|
5072
|
-
label:
|
|
5070
|
+
action: Ae.SELECT,
|
|
5071
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5072
|
+
label: xe.DATE
|
|
5073
5073
|
},
|
|
5074
5074
|
// merchant logo
|
|
5075
5075
|
[Y.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
5076
|
-
action:
|
|
5077
|
-
category:
|
|
5078
|
-
label:
|
|
5076
|
+
action: Ae.CLOSE,
|
|
5077
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5078
|
+
label: xe.DELETE_MERCHANT_LOGO
|
|
5079
5079
|
},
|
|
5080
5080
|
[Y.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
5081
|
-
action:
|
|
5082
|
-
category:
|
|
5083
|
-
label:
|
|
5081
|
+
action: Ae.SELECT,
|
|
5082
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5083
|
+
label: xe.DELETE_MERCHANT_LOGO
|
|
5084
5084
|
},
|
|
5085
5085
|
[Y.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
5086
|
-
action:
|
|
5087
|
-
category:
|
|
5088
|
-
label:
|
|
5086
|
+
action: Ae.DELETE,
|
|
5087
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5088
|
+
label: xe.DELETE_MERCHANT_LOGO
|
|
5089
5089
|
},
|
|
5090
5090
|
// description
|
|
5091
5091
|
[Y.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
5092
|
-
action:
|
|
5093
|
-
category:
|
|
5094
|
-
label:
|
|
5092
|
+
action: Ae.EDIT,
|
|
5093
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5094
|
+
label: xe.DESCRIPTION
|
|
5095
5095
|
},
|
|
5096
5096
|
[Y.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
5097
|
-
action:
|
|
5098
|
-
category:
|
|
5099
|
-
label:
|
|
5097
|
+
action: Ae.SAVE,
|
|
5098
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5099
|
+
label: xe.DESCRIPTION
|
|
5100
5100
|
},
|
|
5101
5101
|
// hide transactions
|
|
5102
5102
|
[Y.ON_TRANSACTION_HIDDEN]: {
|
|
5103
|
-
action:
|
|
5104
|
-
category:
|
|
5105
|
-
label:
|
|
5103
|
+
action: Ae.SAVE,
|
|
5104
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5105
|
+
label: xe.HIDE_TRANSACTION
|
|
5106
5106
|
},
|
|
5107
5107
|
[Y.ON_TRANSACTION_HIDE_CLICK]: {
|
|
5108
|
-
action:
|
|
5109
|
-
category:
|
|
5110
|
-
label:
|
|
5108
|
+
action: Ae.SELECT,
|
|
5109
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5110
|
+
label: xe.HIDE_TRANSACTION
|
|
5111
5111
|
},
|
|
5112
5112
|
[Y.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
5113
|
-
action:
|
|
5114
|
-
category:
|
|
5115
|
-
label:
|
|
5113
|
+
action: Ae.CLOSE,
|
|
5114
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5115
|
+
label: xe.HIDE_TRANSACTION
|
|
5116
5116
|
},
|
|
5117
5117
|
// transaction list
|
|
5118
5118
|
[Y.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
5119
|
-
action:
|
|
5120
|
-
category:
|
|
5121
|
-
label:
|
|
5119
|
+
action: Ae.SELECT,
|
|
5120
|
+
category: Ie.TRANSACTIONS_LIST,
|
|
5121
|
+
label: xe.TRANSACTION
|
|
5122
5122
|
},
|
|
5123
5123
|
// memo
|
|
5124
5124
|
[Y.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
5125
|
-
action:
|
|
5126
|
-
category:
|
|
5127
|
-
label:
|
|
5125
|
+
action: Ae.SAVE,
|
|
5126
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5127
|
+
label: xe.MEMO
|
|
5128
5128
|
},
|
|
5129
5129
|
[Y.ON_TRANSACTION_MEMO_CLICK]: {
|
|
5130
|
-
action:
|
|
5131
|
-
category:
|
|
5132
|
-
label:
|
|
5130
|
+
action: Ae.SELECT,
|
|
5131
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5132
|
+
label: xe.MEMO
|
|
5133
5133
|
},
|
|
5134
5134
|
// tags
|
|
5135
5135
|
[Y.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
5136
|
-
action:
|
|
5137
|
-
category:
|
|
5138
|
-
label:
|
|
5136
|
+
action: Ae.SAVE,
|
|
5137
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5138
|
+
label: xe.TAGS
|
|
5139
5139
|
},
|
|
5140
5140
|
[Y.ON_TRANSACTION_TAGS_CLICK]: {
|
|
5141
|
-
action:
|
|
5142
|
-
category:
|
|
5143
|
-
label:
|
|
5141
|
+
action: Ae.SELECT,
|
|
5142
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5143
|
+
label: xe.TAGS
|
|
5144
5144
|
},
|
|
5145
5145
|
[Y.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
5146
|
-
action:
|
|
5147
|
-
category:
|
|
5148
|
-
label:
|
|
5146
|
+
action: Ae.CLOSE,
|
|
5147
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5148
|
+
label: xe.TAGS
|
|
5149
5149
|
},
|
|
5150
5150
|
[Y.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
5151
|
-
action:
|
|
5152
|
-
category:
|
|
5153
|
-
label:
|
|
5151
|
+
action: Ae.ADD,
|
|
5152
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5153
|
+
label: xe.TAG_ADD
|
|
5154
5154
|
},
|
|
5155
5155
|
[Y.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
5156
|
-
action:
|
|
5157
|
-
category:
|
|
5158
|
-
label:
|
|
5156
|
+
action: Ae.SAVE,
|
|
5157
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5158
|
+
label: xe.TAG_ADD
|
|
5159
5159
|
},
|
|
5160
5160
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
5161
|
-
action:
|
|
5162
|
-
category:
|
|
5163
|
-
label:
|
|
5161
|
+
action: Ae.SELECT,
|
|
5162
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5163
|
+
label: xe.TAG_DELETE
|
|
5164
5164
|
},
|
|
5165
5165
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
5166
|
-
action:
|
|
5167
|
-
category:
|
|
5168
|
-
label:
|
|
5166
|
+
action: Ae.CLOSE,
|
|
5167
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5168
|
+
label: xe.TAG_DELETE
|
|
5169
5169
|
},
|
|
5170
5170
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
5171
|
-
action:
|
|
5172
|
-
category:
|
|
5173
|
-
label:
|
|
5171
|
+
action: Ae.SAVE,
|
|
5172
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5173
|
+
label: xe.TAG_DELETE
|
|
5174
5174
|
},
|
|
5175
5175
|
[Y.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
5176
|
-
action:
|
|
5177
|
-
category:
|
|
5178
|
-
label:
|
|
5176
|
+
action: Ae.EDIT,
|
|
5177
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5178
|
+
label: xe.TAG_EDIT
|
|
5179
5179
|
},
|
|
5180
5180
|
[Y.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
5181
|
-
action:
|
|
5182
|
-
category:
|
|
5183
|
-
label:
|
|
5181
|
+
action: Ae.SAVE,
|
|
5182
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5183
|
+
label: xe.TAG_EDIT
|
|
5184
5184
|
},
|
|
5185
5185
|
// flag
|
|
5186
5186
|
[Y.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
5187
|
-
action:
|
|
5188
|
-
category:
|
|
5189
|
-
label:
|
|
5187
|
+
action: Ae.SELECT,
|
|
5188
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5189
|
+
label: xe.FLAG
|
|
5190
5190
|
},
|
|
5191
5191
|
// hide
|
|
5192
5192
|
[Y.ON_TRANSACTION_UNHIDDEN]: {
|
|
5193
|
-
action:
|
|
5194
|
-
category:
|
|
5195
|
-
label:
|
|
5193
|
+
action: Ae.SAVE,
|
|
5194
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5195
|
+
label: xe.UNHIDE_TRANSACTION
|
|
5196
5196
|
},
|
|
5197
5197
|
[Y.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
5198
|
-
action:
|
|
5199
|
-
category:
|
|
5200
|
-
label:
|
|
5198
|
+
action: Ae.SELECT,
|
|
5199
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5200
|
+
label: xe.UNHIDE_TRANSACTION
|
|
5201
5201
|
},
|
|
5202
5202
|
[Y.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
5203
|
-
action:
|
|
5204
|
-
category:
|
|
5205
|
-
label:
|
|
5203
|
+
action: Ae.CLOSE,
|
|
5204
|
+
category: Ie.TRANSACTION_DETAILS,
|
|
5205
|
+
label: xe.UNHIDE_TRANSACTION
|
|
5206
5206
|
},
|
|
5207
5207
|
// export CSV
|
|
5208
5208
|
[Y.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
5209
|
-
action:
|
|
5210
|
-
category:
|
|
5211
|
-
label:
|
|
5209
|
+
action: Ae.SELECT,
|
|
5210
|
+
category: Ie.TRANSACTIONS_WIDGET,
|
|
5211
|
+
label: xe.EXPORT_CSV
|
|
5212
5212
|
},
|
|
5213
5213
|
// add transaction
|
|
5214
5214
|
[Y.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
5215
|
-
action:
|
|
5216
|
-
category:
|
|
5217
|
-
label:
|
|
5215
|
+
action: Ae.SELECT,
|
|
5216
|
+
category: Ie.TRANSACTIONS_WIDGET,
|
|
5217
|
+
label: xe.ADD_TRANSACTION
|
|
5218
5218
|
},
|
|
5219
5219
|
[Y.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
5220
|
-
action:
|
|
5221
|
-
category:
|
|
5222
|
-
label:
|
|
5220
|
+
action: Ae.ADD,
|
|
5221
|
+
category: Ie.TRANSACTIONS_WIDGET,
|
|
5222
|
+
label: xe.ADD_TRANSACTION
|
|
5223
5223
|
},
|
|
5224
5224
|
[Y.ON_TRANSACTION_DELETE_CLICK]: {
|
|
5225
|
-
action:
|
|
5226
|
-
category:
|
|
5227
|
-
label:
|
|
5225
|
+
action: Ae.SELECT,
|
|
5226
|
+
category: Ie.TRANSACTIONS_WIDGET,
|
|
5227
|
+
label: xe.DELETE_TRANSACTION
|
|
5228
5228
|
},
|
|
5229
5229
|
[Y.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
5230
|
-
action:
|
|
5231
|
-
category:
|
|
5232
|
-
label:
|
|
5230
|
+
action: Ae.CLOSE,
|
|
5231
|
+
category: Ie.TRANSACTIONS_WIDGET,
|
|
5232
|
+
label: xe.DELETE_TRANSACTION
|
|
5233
5233
|
},
|
|
5234
5234
|
[Y.ON_TRANSACTION_DELETE_DELETED]: {
|
|
5235
|
-
action:
|
|
5236
|
-
category:
|
|
5237
|
-
label:
|
|
5235
|
+
action: Ae.DELETE,
|
|
5236
|
+
category: Ie.TRANSACTIONS_WIDGET,
|
|
5237
|
+
label: xe.DELETE_TRANSACTION
|
|
5238
5238
|
}
|
|
5239
5239
|
}, Au = async (e, n) => !n || !dr[e] ? null : n.sendAnalyticEvent(dr[e]), Ha = {
|
|
5240
5240
|
FLAG: "flag",
|
|
@@ -5274,7 +5274,7 @@ const Eu = [
|
|
|
5274
5274
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
|
5275
5275
|
return i.every((o) => a.indexOf(o) > -1);
|
|
5276
5276
|
};
|
|
5277
|
-
var Nu = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(Nu || {}), Du = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(Du || {}), Ru = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(Ru || {}), V = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(V || {}), Pa = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(Pa || {}),
|
|
5277
|
+
var Nu = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(Nu || {}), Du = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(Du || {}), Ru = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(Ru || {}), V = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(V || {}), Pa = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(Pa || {}), Nt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(Nt || {}), vt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e))(vt || {}), Ct = /* @__PURE__ */ ((e) => (e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(Ct || {}), qn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(qn || {}), Ve = /* @__PURE__ */ ((e) => (e[e.AccountBalanceLow = 33] = "AccountBalanceLow", e[e.BillAmountNotStandard = 49] = "BillAmountNotStandard", e[e.CategorySpending = 50] = "CategorySpending", e[e.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", e[e.DebtPaymentReminder = 37] = "DebtPaymentReminder", e[e.DuplicatePayment = 42] = "DuplicatePayment", e[e.MonthlySpendComparison = 53] = "MonthlySpendComparison", e[e.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", e[e.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", e[e.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", e[e.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", e[e.SavingsOpportunity = 58] = "SavingsOpportunity", e[e.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", e[e.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", e[e.UncategorizedTransactions = 61] = "UncategorizedTransactions", e[e.UnifiedDeposit = 62] = "UnifiedDeposit", e[e.UpcomingBill = 63] = "UpcomingBill", e[e.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", e[e.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", e[e.DiscoveredAccounts = 52] = "DiscoveredAccounts", e[e.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", e[e.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", e[e.TransparentOverdraft = 68] = "TransparentOverdraft", e))(Ve || {}), Kt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Kt || {}), ho = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(ho || {}), Ou = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(Ou || {}), me = /* @__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[e.TwiceAMonth = 8] = "TwiceAMonth", e))(me || {}), Je = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Je || {}), zt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(zt || {}), an = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(an || {});
|
|
5278
5278
|
const Ks = {
|
|
5279
5279
|
account_guid: "",
|
|
5280
5280
|
amount: 0,
|
|
@@ -5338,6 +5338,9 @@ let Lu = class {
|
|
|
5338
5338
|
const i = [...this.expandedSplits], a = this.expandedSplits.findIndex((o) => o === n);
|
|
5339
5339
|
a >= 0 ? i.splice(a, 1) : i.push(n), this.expandedSplits = i;
|
|
5340
5340
|
};
|
|
5341
|
+
clearExpandedSplits = () => {
|
|
5342
|
+
this.expandedSplits.length !== 0 && (this.expandedSplits = []);
|
|
5343
|
+
};
|
|
5341
5344
|
updateManualTransaction = (n) => {
|
|
5342
5345
|
this.manualTransaction = n;
|
|
5343
5346
|
};
|
|
@@ -5540,7 +5543,7 @@ class Mu {
|
|
|
5540
5543
|
);
|
|
5541
5544
|
};
|
|
5542
5545
|
}
|
|
5543
|
-
const
|
|
5546
|
+
const It = () => {
|
|
5544
5547
|
if (!g.useContext(Pn))
|
|
5545
5548
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
5546
5549
|
return Ne().uiStore;
|
|
@@ -5582,14 +5585,14 @@ function Wu(e) {
|
|
|
5582
5585
|
});
|
|
5583
5586
|
}
|
|
5584
5587
|
const $u = ({ transaction: e, onClick: n }) => {
|
|
5585
|
-
const { associatedBeats: i } = Ne(), { transactions: a } = x(), { showInsights: o } =
|
|
5588
|
+
const { associatedBeats: i } = Ne(), { transactions: a } = x(), { showInsights: o } = It(), r = e.transaction_type === Kt.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
|
|
5586
5589
|
return /* @__PURE__ */ l(
|
|
5587
5590
|
X_,
|
|
5588
5591
|
{
|
|
5589
5592
|
clickEventName: Y.ON_TRANSACTION_LIST_ITEM_CLICK,
|
|
5590
5593
|
onClick: n ? () => n(e.guid) : void 0,
|
|
5591
5594
|
children: [
|
|
5592
|
-
/* @__PURE__ */ t(
|
|
5595
|
+
/* @__PURE__ */ t(Ge, { children: e.parent_guid ? /* @__PURE__ */ t(g.Fragment, {}) : /* @__PURE__ */ t(
|
|
5593
5596
|
rn,
|
|
5594
5597
|
{
|
|
5595
5598
|
categoryGuid: e.top_level_category_guid || "",
|
|
@@ -5671,52 +5674,52 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5671
5674
|
width: c = "100%",
|
|
5672
5675
|
zeroState: d = /* @__PURE__ */ t(Vu, {})
|
|
5673
5676
|
}) => {
|
|
5674
|
-
const { isLoading: u, sortedTransactions: _ } = Ne(), h = g.useMemo(() => s ? _ : _.filter((
|
|
5675
|
-
const
|
|
5676
|
-
if (
|
|
5677
|
-
|
|
5677
|
+
const { isLoading: u, sortedTransactions: _ } = Ne(), h = g.useMemo(() => s ? _ : _.filter((w) => !w.is_hidden), [_, s]), { clearExpandedSplits: m, setShowInsights: C, toggleSplit: f } = It(), { onEvent: E } = j(), y = (w) => {
|
|
5678
|
+
const v = h.find((R) => R.guid === w);
|
|
5679
|
+
if (v?.has_been_split) {
|
|
5680
|
+
f(v.guid);
|
|
5678
5681
|
return;
|
|
5679
5682
|
}
|
|
5680
|
-
|
|
5681
|
-
account_guid:
|
|
5682
|
-
transaction_guid:
|
|
5683
|
-
}), a?.(
|
|
5684
|
-
},
|
|
5683
|
+
E(W.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
5684
|
+
account_guid: v?.account_guid,
|
|
5685
|
+
transaction_guid: w
|
|
5686
|
+
}), a?.(w);
|
|
5687
|
+
}, S = g.useRef(null), A = ms({
|
|
5685
5688
|
count: h.length,
|
|
5686
|
-
getScrollElement: () =>
|
|
5687
|
-
estimateSize: (
|
|
5689
|
+
getScrollElement: () => S.current,
|
|
5690
|
+
estimateSize: (w) => ur + (_r(w, h) ? hr : 0),
|
|
5688
5691
|
overscan: 5
|
|
5689
5692
|
});
|
|
5690
|
-
return g.useEffect(() =>
|
|
5693
|
+
return g.useEffect(() => A.measure(), [h]), g.useEffect(() => C(o), [o]), g.useEffect(() => () => m(), []), /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ t(L, { height: n, overflow: "auto", ref: S, width: c, children: /* @__PURE__ */ l(
|
|
5691
5694
|
L,
|
|
5692
5695
|
{
|
|
5693
5696
|
height: (
|
|
5694
5697
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
5695
|
-
|
|
5698
|
+
A.getVirtualItems().length === 0 ? "auto" : A.getTotalSize()
|
|
5696
5699
|
),
|
|
5697
5700
|
position: "relative",
|
|
5698
5701
|
width: "100%",
|
|
5699
5702
|
children: [
|
|
5700
5703
|
(u || r) && i,
|
|
5701
|
-
!u && !r &&
|
|
5702
|
-
!u && !r &&
|
|
5703
|
-
const
|
|
5704
|
+
!u && !r && A.getVirtualItems().length === 0 && d,
|
|
5705
|
+
!u && !r && A.getVirtualItems().length > 0 && A.getVirtualItems().map((w) => {
|
|
5706
|
+
const v = h[w.index], R = _r(w.index, h), B = Ku(w.index, h), M = ur + (R ? hr : 0);
|
|
5704
5707
|
return /* @__PURE__ */ l(
|
|
5705
5708
|
L,
|
|
5706
5709
|
{
|
|
5707
5710
|
sx: {
|
|
5708
|
-
height:
|
|
5711
|
+
height: M,
|
|
5709
5712
|
position: "absolute",
|
|
5710
|
-
transform: `translateY(${
|
|
5713
|
+
transform: `translateY(${w.start}px)`,
|
|
5711
5714
|
width: "100%"
|
|
5712
5715
|
},
|
|
5713
5716
|
children: [
|
|
5714
|
-
|
|
5715
|
-
/* @__PURE__ */ t(go, { onClick:
|
|
5716
|
-
/* @__PURE__ */ t(H, { sx: { ml:
|
|
5717
|
+
R && /* @__PURE__ */ t(mo, { bgcolor: e, children: sa(v.date) }),
|
|
5718
|
+
/* @__PURE__ */ t(go, { onClick: y, transaction: v }),
|
|
5719
|
+
/* @__PURE__ */ t(H, { sx: { ml: B ? 24 : 0 } })
|
|
5717
5720
|
]
|
|
5718
5721
|
},
|
|
5719
|
-
|
|
5722
|
+
v.guid
|
|
5720
5723
|
);
|
|
5721
5724
|
})
|
|
5722
5725
|
]
|
|
@@ -5726,7 +5729,7 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5726
5729
|
`${e.row.account}`,
|
|
5727
5730
|
e.row.number && ` | ${e.row.number}`
|
|
5728
5731
|
] }), ju = (e) => {
|
|
5729
|
-
const { associatedBeats: n } = Ne(), { showInsights: i } =
|
|
5732
|
+
const { associatedBeats: n } = Ne(), { showInsights: i } = It(), { amount: a, transaction_type: o } = e.row, r = n.find((c) => c.associated_transaction_guid === e.row.guid), s = o === Kt.CREDIT;
|
|
5730
5733
|
return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
|
|
5731
5734
|
/* @__PURE__ */ l(p, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
|
|
5732
5735
|
s ? "+" : "",
|
|
@@ -5795,40 +5798,40 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5795
5798
|
onCategoryClick: n,
|
|
5796
5799
|
onRowClick: i
|
|
5797
5800
|
}) => {
|
|
5798
|
-
const {
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
+
const { transactions: a } = x(), { isCopyLoaded: o } = de(), { isLoading: r, sortedTransactions: s } = Ne(), { clearExpandedSplits: c, toggleSplit: d } = It();
|
|
5802
|
+
g.useEffect(() => () => c(), []);
|
|
5803
|
+
const u = g.useMemo(
|
|
5804
|
+
() => s.map((m) => ({
|
|
5805
|
+
id: m.guid,
|
|
5801
5806
|
isHovering: !1,
|
|
5802
|
-
...
|
|
5807
|
+
...m
|
|
5803
5808
|
})),
|
|
5804
|
-
[
|
|
5805
|
-
),
|
|
5806
|
-
|
|
5807
|
-
};
|
|
5808
|
-
if (!s)
|
|
5809
|
+
[s]
|
|
5810
|
+
), _ = ({ row: { id: m, guid: C, has_been_split: f }, field: E }) => f ? d(m) : E === "category" ? n?.(C) : i?.(C);
|
|
5811
|
+
if (!o)
|
|
5809
5812
|
return /* @__PURE__ */ t(_e, {});
|
|
5810
|
-
const
|
|
5813
|
+
const h = [
|
|
5811
5814
|
{
|
|
5812
5815
|
field: "flag",
|
|
5813
5816
|
headerName: "",
|
|
5814
5817
|
minWidth: 32,
|
|
5815
5818
|
width: 32,
|
|
5816
5819
|
sortable: !1,
|
|
5817
|
-
renderCell: (
|
|
5818
|
-
renderHeader: () => /* @__PURE__ */ t("span", { "aria-label":
|
|
5820
|
+
renderCell: (m) => /* @__PURE__ */ t(Ju, { ...m }),
|
|
5821
|
+
renderHeader: () => /* @__PURE__ */ t("span", { "aria-label": a.transaction_status, role: "presentation" })
|
|
5819
5822
|
},
|
|
5820
5823
|
{
|
|
5821
5824
|
field: "date",
|
|
5822
|
-
headerName:
|
|
5825
|
+
headerName: a.date_title,
|
|
5823
5826
|
width: 103,
|
|
5824
5827
|
renderHeader: ri,
|
|
5825
|
-
renderCell: qu,
|
|
5828
|
+
renderCell: (m) => m.row.parent_guid ? null : /* @__PURE__ */ t(qu, { ...m }),
|
|
5826
5829
|
sortingOrder: ["desc", "asc"]
|
|
5827
5830
|
},
|
|
5828
5831
|
{
|
|
5829
5832
|
cellClassName: "vertical-align-center",
|
|
5830
5833
|
field: "payee",
|
|
5831
|
-
headerName:
|
|
5834
|
+
headerName: a.payee_title,
|
|
5832
5835
|
flex: 0.33,
|
|
5833
5836
|
renderHeader: ri,
|
|
5834
5837
|
renderCell: eh,
|
|
@@ -5836,23 +5839,23 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5836
5839
|
},
|
|
5837
5840
|
{
|
|
5838
5841
|
field: "category",
|
|
5839
|
-
headerName:
|
|
5842
|
+
headerName: a.category_title,
|
|
5840
5843
|
flex: 0.25,
|
|
5841
5844
|
renderHeader: ri,
|
|
5842
|
-
renderCell: (
|
|
5845
|
+
renderCell: (m) => /* @__PURE__ */ t(Zu, { ...m }),
|
|
5843
5846
|
sortingOrder: ["asc", "desc"]
|
|
5844
5847
|
},
|
|
5845
5848
|
{
|
|
5846
5849
|
field: "account",
|
|
5847
|
-
headerName:
|
|
5850
|
+
headerName: a.account_title,
|
|
5848
5851
|
flex: 0.33,
|
|
5849
5852
|
renderHeader: ri,
|
|
5850
|
-
renderCell: Yu,
|
|
5853
|
+
renderCell: (m) => m.row.parent_guid ? null : /* @__PURE__ */ t(Yu, { ...m }),
|
|
5851
5854
|
sortingOrder: ["asc", "desc"]
|
|
5852
5855
|
},
|
|
5853
5856
|
{
|
|
5854
5857
|
field: "amount",
|
|
5855
|
-
headerName:
|
|
5858
|
+
headerName: a.amount_title,
|
|
5856
5859
|
flex: 0.25,
|
|
5857
5860
|
renderHeader: ri,
|
|
5858
5861
|
renderCell: ju,
|
|
@@ -5864,15 +5867,20 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5864
5867
|
return /* @__PURE__ */ t(St, { sx: { height: e, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ t(
|
|
5865
5868
|
Hn,
|
|
5866
5869
|
{
|
|
5867
|
-
columns:
|
|
5870
|
+
columns: h,
|
|
5868
5871
|
disableColumnFilter: !0,
|
|
5869
5872
|
disableColumnMenu: !0,
|
|
5873
|
+
getCellClassName: (m) => m.row.parent_guid ? "split-row" : "",
|
|
5870
5874
|
hideFooter: !0,
|
|
5871
5875
|
initialState: { sorting: { sortModel: [{ field: "date", sort: "desc" }] } },
|
|
5872
|
-
loading:
|
|
5873
|
-
onCellClick:
|
|
5874
|
-
rows:
|
|
5875
|
-
|
|
5876
|
+
loading: r,
|
|
5877
|
+
onCellClick: _,
|
|
5878
|
+
rows: u,
|
|
5879
|
+
sx: {
|
|
5880
|
+
"& .split-row": {
|
|
5881
|
+
bgcolor: "background.default"
|
|
5882
|
+
}
|
|
5883
|
+
}
|
|
5876
5884
|
}
|
|
5877
5885
|
) });
|
|
5878
5886
|
}, nh = I(th), _n = () => {
|
|
@@ -6135,7 +6143,7 @@ const ih = ({
|
|
|
6135
6143
|
id: `category-${e.guid}`,
|
|
6136
6144
|
onClick: c,
|
|
6137
6145
|
children: [
|
|
6138
|
-
/* @__PURE__ */ t(
|
|
6146
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
|
6139
6147
|
/* @__PURE__ */ t(
|
|
6140
6148
|
ae,
|
|
6141
6149
|
{
|
|
@@ -6428,7 +6436,7 @@ class Th {
|
|
|
6428
6436
|
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ra[n];
|
|
6429
6437
|
}
|
|
6430
6438
|
const Xs = ({ transaction: e }) => {
|
|
6431
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ne(), { categories: a } = $e(), { onEvent: o } = j(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } =
|
|
6439
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ne(), { categories: a } = $e(), { onEvent: o } = j(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = It(), { transactions: c } = x(), [d, u] = g.useState(!1), [_, h] = g.useState(""), m = async (y) => {
|
|
6432
6440
|
await i({ ...e, category_guid: _ }), y && await n(_, e), h(""), o(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
6433
6441
|
transaction_guid: e.guid
|
|
6434
6442
|
});
|
|
@@ -6458,7 +6466,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6458
6466
|
o(Y.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
6459
6467
|
},
|
|
6460
6468
|
children: [
|
|
6461
|
-
/* @__PURE__ */ t(
|
|
6469
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
|
6462
6470
|
Gt,
|
|
6463
6471
|
{
|
|
6464
6472
|
categoryGuid: e.top_level_category_guid,
|
|
@@ -6513,7 +6521,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6513
6521
|
)
|
|
6514
6522
|
] });
|
|
6515
6523
|
}, Zs = ({ transaction: e }) => {
|
|
6516
|
-
const n = gt(), { onEvent: i } = j(), { updateTransaction: a } = Ne(), { updateManualTransaction: o } =
|
|
6524
|
+
const n = gt(), { onEvent: i } = j(), { updateTransaction: a } = Ne(), { updateManualTransaction: o } = It(), { common: r, transactions: s } = x(), [c, d] = g.useState(!1), [u, _] = g.useState(e.date), h = (C) => {
|
|
6517
6525
|
_(He(C));
|
|
6518
6526
|
}, m = async () => {
|
|
6519
6527
|
if (e.is_manual && !e.guid) {
|
|
@@ -6530,7 +6538,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6530
6538
|
i(Y.ON_TRANSACTION_DATE_CLICK), d(!0);
|
|
6531
6539
|
},
|
|
6532
6540
|
children: [
|
|
6533
|
-
/* @__PURE__ */ t(
|
|
6541
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "calendar_month", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
6534
6542
|
/* @__PURE__ */ t(
|
|
6535
6543
|
ae,
|
|
6536
6544
|
{
|
|
@@ -6570,7 +6578,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6570
6578
|
)
|
|
6571
6579
|
] });
|
|
6572
6580
|
}, Ah = ({ transaction: e }) => {
|
|
6573
|
-
const { onEvent: n } = j(), { removeTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } =
|
|
6581
|
+
const { onEvent: n } = j(), { removeTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = It(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6574
6582
|
await i(e.guid), n(Y.ON_TRANSACTION_DELETE_DELETED);
|
|
6575
6583
|
};
|
|
6576
6584
|
return /* @__PURE__ */ l(L, { className: "mx-txn-delete", children: [
|
|
@@ -6581,7 +6589,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6581
6589
|
n(Y.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
6582
6590
|
},
|
|
6583
6591
|
children: [
|
|
6584
|
-
/* @__PURE__ */ t(
|
|
6592
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { variant: "rounded", children: /* @__PURE__ */ t(pi, { color: "secondary", fontSize: "small" }) }) }),
|
|
6585
6593
|
/* @__PURE__ */ t(
|
|
6586
6594
|
ae,
|
|
6587
6595
|
{
|
|
@@ -6610,7 +6618,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6610
6618
|
)
|
|
6611
6619
|
] });
|
|
6612
6620
|
}, Ih = I(Ah), xh = ({ transaction: e }) => {
|
|
6613
|
-
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } =
|
|
6621
|
+
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = It(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6614
6622
|
await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
6615
6623
|
transaction_guid: e.guid
|
|
6616
6624
|
});
|
|
@@ -6623,7 +6631,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6623
6631
|
n(Y.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
|
6624
6632
|
},
|
|
6625
6633
|
children: [
|
|
6626
|
-
/* @__PURE__ */ t(
|
|
6634
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "delete", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
6627
6635
|
/* @__PURE__ */ t(ae, { primary: r.merchant_logo_title, secondary: r.merchant_logo_desc }),
|
|
6628
6636
|
/* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: ft.Dark }) })
|
|
6629
6637
|
]
|
|
@@ -6650,7 +6658,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6650
6658
|
)
|
|
6651
6659
|
] });
|
|
6652
6660
|
}, vh = I(xh), wh = ({ transaction: e }) => {
|
|
6653
|
-
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } =
|
|
6661
|
+
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = It(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = e.is_hidden, u = async () => {
|
|
6654
6662
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
|
6655
6663
|
d ? Y.ON_TRANSACTION_UNHIDDEN : Y.ON_TRANSACTION_HIDDEN
|
|
6656
6664
|
);
|
|
@@ -6672,7 +6680,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6672
6680
|
},
|
|
6673
6681
|
role: "switch",
|
|
6674
6682
|
children: [
|
|
6675
|
-
/* @__PURE__ */ t(
|
|
6683
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ t(
|
|
6676
6684
|
$,
|
|
6677
6685
|
{
|
|
6678
6686
|
name: "visibilityOff",
|
|
@@ -6739,7 +6747,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6739
6747
|
] })
|
|
6740
6748
|
] });
|
|
6741
6749
|
}, Dh = ({ transaction: e }) => {
|
|
6742
|
-
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { updateManualTransaction: a } =
|
|
6750
|
+
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { updateManualTransaction: a } = It(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), [d, u] = g.useState("");
|
|
6743
6751
|
g.useEffect(() => {
|
|
6744
6752
|
s && u(e.memo ? e.memo : "");
|
|
6745
6753
|
}, [s]);
|
|
@@ -6758,7 +6766,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6758
6766
|
n(Y.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
|
6759
6767
|
},
|
|
6760
6768
|
children: [
|
|
6761
|
-
/* @__PURE__ */ t(
|
|
6769
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "article", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
6762
6770
|
/* @__PURE__ */ t(
|
|
6763
6771
|
ae,
|
|
6764
6772
|
{
|
|
@@ -6966,7 +6974,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6966
6974
|
) })
|
|
6967
6975
|
] });
|
|
6968
6976
|
}, Mh = I(Lh), kh = ({ transaction: e }) => {
|
|
6969
|
-
const { onEvent: n } = j(), { splitTransaction: i, unSplitTransaction: a } = Ne(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } =
|
|
6977
|
+
const { onEvent: n } = j(), { splitTransaction: i, unSplitTransaction: a } = Ne(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } = It(), { categories: c } = $e(), d = {
|
|
6970
6978
|
...e,
|
|
6971
6979
|
amount: e.amount - 1,
|
|
6972
6980
|
guid: "",
|
|
@@ -7027,7 +7035,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7027
7035
|
}, [f]);
|
|
7028
7036
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7029
7037
|
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: v, children: [
|
|
7030
|
-
/* @__PURE__ */ t(
|
|
7038
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "call_split", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
7031
7039
|
/* @__PURE__ */ t(
|
|
7032
7040
|
ae,
|
|
7033
7041
|
{
|
|
@@ -7078,7 +7086,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7078
7086
|
},
|
|
7079
7087
|
primaryText: o.delete_button,
|
|
7080
7088
|
secondaryText: o.cancel_button,
|
|
7081
|
-
children: /* @__PURE__ */ t(
|
|
7089
|
+
children: /* @__PURE__ */ t(Ee, { variant: "Paragraph", children: T(
|
|
7082
7090
|
r.split_transaction_unsplit_description,
|
|
7083
7091
|
e.description
|
|
7084
7092
|
) })
|
|
@@ -7143,7 +7151,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7143
7151
|
value: s
|
|
7144
7152
|
}
|
|
7145
7153
|
),
|
|
7146
|
-
/* @__PURE__ */ t(
|
|
7154
|
+
/* @__PURE__ */ t(Ee, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
|
|
7147
7155
|
]
|
|
7148
7156
|
}
|
|
7149
7157
|
)
|
|
@@ -7246,7 +7254,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7246
7254
|
value: m
|
|
7247
7255
|
}
|
|
7248
7256
|
),
|
|
7249
|
-
/* @__PURE__ */ t(
|
|
7257
|
+
/* @__PURE__ */ t(Ee, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: f })
|
|
7250
7258
|
]
|
|
7251
7259
|
}
|
|
7252
7260
|
),
|
|
@@ -7285,7 +7293,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7285
7293
|
] }, s.guid)) }) })
|
|
7286
7294
|
] });
|
|
7287
7295
|
}, Vh = I(Uh), Kh = ({ transaction: e }) => {
|
|
7288
|
-
const { onEvent: n } = j(), { tags: i, updateTaggings: a, updateTransaction: o } = Ne(), { common: r, transactions: s } = x(), { updateManualTransaction: c } =
|
|
7296
|
+
const { onEvent: n } = j(), { tags: i, updateTaggings: a, updateTransaction: o } = Ne(), { common: r, transactions: s } = x(), { updateManualTransaction: c } = It(), [d, u] = g.useState(!1), [_, h] = g.useState(e.tags);
|
|
7289
7297
|
g.useEffect(() => {
|
|
7290
7298
|
h(e.tags);
|
|
7291
7299
|
}, [d, e]);
|
|
@@ -7312,7 +7320,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7312
7320
|
n(Y.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
7313
7321
|
},
|
|
7314
7322
|
children: [
|
|
7315
|
-
/* @__PURE__ */ t(
|
|
7323
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "local_offer", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
7316
7324
|
/* @__PURE__ */ t(
|
|
7317
7325
|
ae,
|
|
7318
7326
|
{
|
|
@@ -7470,7 +7478,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7470
7478
|
s === Hi.MerchantLogo && /* @__PURE__ */ t(vh, { transaction: i }),
|
|
7471
7479
|
/* @__PURE__ */ t(H, { variant: c < e.length - 1 ? "inset" : "fullWidth" })
|
|
7472
7480
|
] }, s)),
|
|
7473
|
-
i.is_manual && /* @__PURE__ */ t(Ih, { transaction: i })
|
|
7481
|
+
i.is_manual && !i.parent_guid && !i.has_been_split && /* @__PURE__ */ t(Ih, { transaction: i })
|
|
7474
7482
|
] }) })
|
|
7475
7483
|
] }) }) : /* @__PURE__ */ t(_e, {});
|
|
7476
7484
|
}, ni = I(Zh), qh = ({ copy: e, isOpen: n, onClose: i, onPrimaryAction: a }) => {
|
|
@@ -7493,7 +7501,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7493
7501
|
}
|
|
7494
7502
|
) : /* @__PURE__ */ t(_e, {});
|
|
7495
7503
|
}, Qh = I(qh), Jh = () => {
|
|
7496
|
-
const { selectedAccounts: e } = de(), { common: n, transactions: i } = x(), { manualTransaction: a, setIsAmountValid: o, updateManualTransaction: r } =
|
|
7504
|
+
const { selectedAccounts: e } = de(), { common: n, transactions: i } = x(), { manualTransaction: a, setIsAmountValid: o, updateManualTransaction: r } = It(), [s, c] = g.useState(""), [d, u] = g.useState(""), _ = g.useMemo(
|
|
7497
7505
|
() => e.filter((y) => y.is_manual),
|
|
7498
7506
|
[e]
|
|
7499
7507
|
).map((y) => ({
|
|
@@ -7623,7 +7631,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7623
7631
|
onSecondaryAction: () => u(!1),
|
|
7624
7632
|
primaryText: o.actions_apply_to_all,
|
|
7625
7633
|
secondaryText: o.actions_this_time_only,
|
|
7626
|
-
children: /* @__PURE__ */ t(
|
|
7634
|
+
children: /* @__PURE__ */ t(Ee, { variant: "Paragraph", children: T(
|
|
7627
7635
|
o.actions_all_past_and_future,
|
|
7628
7636
|
n.description,
|
|
7629
7637
|
d?.name
|
|
@@ -7637,14 +7645,14 @@ const Xs = ({ transaction: e }) => {
|
|
|
7637
7645
|
showInsights: i = !1,
|
|
7638
7646
|
sx: a = {}
|
|
7639
7647
|
}) => {
|
|
7640
|
-
const { visibleAccounts: o, refreshAccounts: r } =
|
|
7648
|
+
const { visibleAccounts: o, refreshAccounts: r } = Se(), s = pe(), { setSearchValue: c } = _n(), {
|
|
7641
7649
|
manualTransaction: d,
|
|
7642
7650
|
isAmountValid: u,
|
|
7643
7651
|
searchValue: _,
|
|
7644
7652
|
setSearchValue: h,
|
|
7645
7653
|
setShowInsights: m,
|
|
7646
7654
|
updateManualTransaction: C
|
|
7647
|
-
} =
|
|
7655
|
+
} = It(), {
|
|
7648
7656
|
addTransaction: f,
|
|
7649
7657
|
filter: E,
|
|
7650
7658
|
loadAssociatedBeats: y,
|
|
@@ -7653,14 +7661,14 @@ const Xs = ({ transaction: e }) => {
|
|
|
7653
7661
|
tags: w,
|
|
7654
7662
|
transactions: v,
|
|
7655
7663
|
updateTransaction: R
|
|
7656
|
-
} = Ne(), { common: B, transactions: M } = x(), { userProfile: D } =
|
|
7664
|
+
} = Ne(), { common: B, transactions: M } = x(), { userProfile: D } = Mt(), { onEvent: k } = j(), {
|
|
7657
7665
|
displayedDateRange: O,
|
|
7658
7666
|
isCopyLoaded: U,
|
|
7659
7667
|
isInitialized: Q,
|
|
7660
7668
|
selectedAccountGuids: oe,
|
|
7661
7669
|
setDisplayedDate: J,
|
|
7662
7670
|
setSelectedAccounts: ge
|
|
7663
|
-
} = de(), [De, Re] = g.useState(""), [
|
|
7671
|
+
} = de(), [De, Re] = g.useState(""), [Te, Oe] = g.useState(""), [xt, ee] = g.useState(!1), [ne, Ue] = g.useState(!1), [Qe, K] = g.useState(!1);
|
|
7664
7672
|
g.useEffect(() => {
|
|
7665
7673
|
const rt = o.filter((Un) => !Un.is_hidden), Lo = Ze(he()), Mo = Ye(he());
|
|
7666
7674
|
ge(rt), J(Lo, Mo), S({
|
|
@@ -7680,7 +7688,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7680
7688
|
const Le = g.useMemo(
|
|
7681
7689
|
() => o.filter((rt) => rt.is_manual),
|
|
7682
7690
|
[o]
|
|
7683
|
-
),
|
|
7691
|
+
), ke = Te ? v.find((rt) => rt.guid === Te) : void 0, Pt = u && !!d.payee && !!d.account_guid && !!d.category_guid, dt = (rt) => {
|
|
7684
7692
|
J(rt[0], rt[1]);
|
|
7685
7693
|
}, ii = (rt) => {
|
|
7686
7694
|
h(rt), S({
|
|
@@ -7705,7 +7713,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7705
7713
|
}, qc = async () => {
|
|
7706
7714
|
Ue(!1), await r();
|
|
7707
7715
|
}, Qc = async () => {
|
|
7708
|
-
|
|
7716
|
+
ke && !ke.has_been_viewed && await R({ ...ke, has_been_viewed: !0 }), Re("");
|
|
7709
7717
|
};
|
|
7710
7718
|
return !U || !Q || !Qe ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
7711
7719
|
bt,
|
|
@@ -7793,19 +7801,19 @@ const Xs = ({ transaction: e }) => {
|
|
|
7793
7801
|
le,
|
|
7794
7802
|
{
|
|
7795
7803
|
ariaLabelClose: B.close_aria,
|
|
7796
|
-
isOpen: De === "transaction",
|
|
7804
|
+
isOpen: De === "transaction" && !!ke,
|
|
7797
7805
|
onClose: Qc,
|
|
7798
7806
|
title: M.details_title,
|
|
7799
|
-
children:
|
|
7807
|
+
children: ke && /* @__PURE__ */ t(ni, { transaction: ke })
|
|
7800
7808
|
}
|
|
7801
7809
|
),
|
|
7802
|
-
|
|
7810
|
+
ke && De === "category" && /* @__PURE__ */ t(
|
|
7803
7811
|
ng,
|
|
7804
7812
|
{
|
|
7805
7813
|
onClose: () => {
|
|
7806
7814
|
c(""), Re(""), Oe("");
|
|
7807
7815
|
},
|
|
7808
|
-
transaction:
|
|
7816
|
+
transaction: ke
|
|
7809
7817
|
}
|
|
7810
7818
|
),
|
|
7811
7819
|
/* @__PURE__ */ t(
|
|
@@ -7824,7 +7832,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7824
7832
|
Qh,
|
|
7825
7833
|
{
|
|
7826
7834
|
copy: { title: M.add_manual_account },
|
|
7827
|
-
isOpen:
|
|
7835
|
+
isOpen: xt,
|
|
7828
7836
|
onClose: () => {
|
|
7829
7837
|
ee(!1);
|
|
7830
7838
|
},
|
|
@@ -7842,7 +7850,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7842
7850
|
]
|
|
7843
7851
|
}
|
|
7844
7852
|
);
|
|
7845
|
-
},
|
|
7853
|
+
}, p4 = I(ig), ec = ({
|
|
7846
7854
|
frequency: e,
|
|
7847
7855
|
firstDay: n,
|
|
7848
7856
|
secondDay: i,
|
|
@@ -8050,7 +8058,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8050
8058
|
le,
|
|
8051
8059
|
{
|
|
8052
8060
|
ariaLabelClose: i.close_drawer_aria,
|
|
8053
|
-
isOpen: !!C,
|
|
8061
|
+
isOpen: !!C && !!E,
|
|
8054
8062
|
onClose: () => f(""),
|
|
8055
8063
|
title: i.transaction_details_drawer_title,
|
|
8056
8064
|
children: E && /* @__PURE__ */ t(ni, { transaction: E })
|
|
@@ -8082,7 +8090,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8082
8090
|
/* @__PURE__ */ l(ue, { onClick: () => {
|
|
8083
8091
|
e(n), o(!0);
|
|
8084
8092
|
}, children: [
|
|
8085
|
-
/* @__PURE__ */ t(
|
|
8093
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
8086
8094
|
rn,
|
|
8087
8095
|
{
|
|
8088
8096
|
categoryGuid: r,
|
|
@@ -8167,9 +8175,9 @@ const Xs = ({ transaction: e }) => {
|
|
|
8167
8175
|
onSearch: i,
|
|
8168
8176
|
onSelected: a
|
|
8169
8177
|
}) => {
|
|
8170
|
-
const { recurring: o } = x(), { searchValue: r, setSearchValue: s } =
|
|
8178
|
+
const { recurring: o } = x(), { searchValue: r, setSearchValue: s } = It();
|
|
8171
8179
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
|
8172
|
-
n && /* @__PURE__ */ t(
|
|
8180
|
+
n && /* @__PURE__ */ t(Ee, { sx: { mx: 24 }, children: n }),
|
|
8173
8181
|
/* @__PURE__ */ t(
|
|
8174
8182
|
da,
|
|
8175
8183
|
{
|
|
@@ -8222,7 +8230,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8222
8230
|
label: n,
|
|
8223
8231
|
onAddRecurringTransaction: i = () => null
|
|
8224
8232
|
}) => {
|
|
8225
|
-
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Ne(), { addRepeatingTransaction: c } = ze(), { user: d } =
|
|
8233
|
+
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Ne(), { addRepeatingTransaction: c } = ze(), { user: d } = Mt(), [u, _] = g.useState(!1), [h, m] = g.useState(""), [C, f] = g.useState(me.EveryMonth), [E, y] = g.useState(1), [S, A] = g.useState(15), w = g.useMemo(
|
|
8226
8234
|
() => s.find((M) => M.guid === h),
|
|
8227
8235
|
[h, s]
|
|
8228
8236
|
), v = () => {
|
|
@@ -8564,7 +8572,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8564
8572
|
/* @__PURE__ */ l(ue, { onClick: () => {
|
|
8565
8573
|
c(!0), i(e);
|
|
8566
8574
|
}, children: [
|
|
8567
|
-
/* @__PURE__ */ t(
|
|
8575
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
8568
8576
|
rn,
|
|
8569
8577
|
{
|
|
8570
8578
|
categoryGuid: e.categoryGuid,
|
|
@@ -8818,8 +8826,8 @@ const Xs = ({ transaction: e }) => {
|
|
|
8818
8826
|
)
|
|
8819
8827
|
] }) })
|
|
8820
8828
|
] });
|
|
8821
|
-
}),
|
|
8822
|
-
const { accounts: i } =
|
|
8829
|
+
}), C4 = I(({ onBackClick: e, sx: n = {} }) => {
|
|
8830
|
+
const { accounts: i } = Se(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = de(), { isDataLoaded: d, loadRepeatingTransactions: u } = ze(), { setFilter: _ } = Ne(), { onEvent: h } = j(), [m, C] = g.useState(!1);
|
|
8823
8831
|
return g.useEffect(() => {
|
|
8824
8832
|
c(i);
|
|
8825
8833
|
}, [i]), g.useEffect(() => {
|
|
@@ -8883,9 +8891,9 @@ const Xs = ({ transaction: e }) => {
|
|
|
8883
8891
|
}
|
|
8884
8892
|
)
|
|
8885
8893
|
] });
|
|
8886
|
-
}),
|
|
8894
|
+
}), f4 = I(
|
|
8887
8895
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
|
8888
|
-
const { accounts: i } =
|
|
8896
|
+
const { accounts: i } = Se(), { recurring: a } = x(), { setFilter: o } = Ne(), { isDataLoaded: r, loadRepeatingTransactions: s } = ze(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: u, selectedAccountGuids: _ } = de();
|
|
8889
8897
|
return g.useEffect(() => {
|
|
8890
8898
|
d && u(i);
|
|
8891
8899
|
}, [d]), g.useEffect(() => {
|
|
@@ -8980,13 +8988,13 @@ const Xs = ({ transaction: e }) => {
|
|
|
8980
8988
|
return /* @__PURE__ */ l(b, { sx: { alignItems: "start", flexDirection: "row", gap: 12, pb: 16, px: 16 }, children: [
|
|
8981
8989
|
/* @__PURE__ */ t(Wl, { size: 32 }),
|
|
8982
8990
|
/* @__PURE__ */ l(b, { children: [
|
|
8983
|
-
/* @__PURE__ */ t(
|
|
8984
|
-
/* @__PURE__ */ t(
|
|
8991
|
+
/* @__PURE__ */ t(Ee, { fontWeight: 600, variant: "body1", children: e.zero_state_content_header }),
|
|
8992
|
+
/* @__PURE__ */ t(Ee, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
|
|
8985
8993
|
] })
|
|
8986
8994
|
] });
|
|
8987
|
-
}),
|
|
8995
|
+
}), b4 = I(
|
|
8988
8996
|
({ onCTAClick: e }) => {
|
|
8989
|
-
const [n, i] = g.useState(!1), { accounts: a } =
|
|
8997
|
+
const [n, i] = g.useState(!1), { accounts: a } = Se(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = de(), {
|
|
8990
8998
|
loadRepeatingTransactions: d,
|
|
8991
8999
|
upcomingRecurrences: u,
|
|
8992
9000
|
expenseTotal: _,
|
|
@@ -9085,7 +9093,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
9085
9093
|
}
|
|
9086
9094
|
),
|
|
9087
9095
|
/* @__PURE__ */ t(
|
|
9088
|
-
|
|
9096
|
+
Ee,
|
|
9089
9097
|
{
|
|
9090
9098
|
sx: {
|
|
9091
9099
|
pr: 12
|
|
@@ -9381,7 +9389,7 @@ const fg = {
|
|
|
9381
9389
|
label: n.account_name,
|
|
9382
9390
|
name: "user_name",
|
|
9383
9391
|
placeholder: T(n.enter_value, n.account_name),
|
|
9384
|
-
type:
|
|
9392
|
+
type: wt.Input,
|
|
9385
9393
|
validation: (a) => a ? "" : T(n.field_is_required, n.account_name),
|
|
9386
9394
|
valueFormatter: (a) => a
|
|
9387
9395
|
}
|
|
@@ -9391,7 +9399,7 @@ const fg = {
|
|
|
9391
9399
|
label: n.account_balance,
|
|
9392
9400
|
name: "balance",
|
|
9393
9401
|
placeholder: T(n.enter_value, n.account_balance),
|
|
9394
|
-
type:
|
|
9402
|
+
type: wt.Currency,
|
|
9395
9403
|
valueFormatter: (o) => P(o, "0,0.00")
|
|
9396
9404
|
});
|
|
9397
9405
|
const a = Object.keys(se).filter((o) => Number(o)).map((o) => ({
|
|
@@ -9404,7 +9412,7 @@ const fg = {
|
|
|
9404
9412
|
name: "account_type",
|
|
9405
9413
|
options: a,
|
|
9406
9414
|
placeholder: T(n.select_value, n.account_type),
|
|
9407
|
-
type:
|
|
9415
|
+
type: wt.Select,
|
|
9408
9416
|
valueFormatter: (o) => a.find((r) => r.value === o)?.label
|
|
9409
9417
|
});
|
|
9410
9418
|
}
|
|
@@ -9419,7 +9427,7 @@ const fg = {
|
|
|
9419
9427
|
name: "property_type",
|
|
9420
9428
|
options: a,
|
|
9421
9429
|
placeholder: T(n.select_value, n.property_type),
|
|
9422
|
-
type:
|
|
9430
|
+
type: wt.Select,
|
|
9423
9431
|
valueFormatter: (o) => a.find((r) => r.value === o)?.label
|
|
9424
9432
|
});
|
|
9425
9433
|
}
|
|
@@ -9430,7 +9438,7 @@ const fg = {
|
|
|
9430
9438
|
label: a,
|
|
9431
9439
|
name: o,
|
|
9432
9440
|
placeholder: T(n.enter_value, a),
|
|
9433
|
-
type:
|
|
9441
|
+
type: wt.Input,
|
|
9434
9442
|
validation: (r) => Ma(r) ? "" : n.error_amount_is_invalid,
|
|
9435
9443
|
valueFormatter: (r) => Ma(r) ? vi(r / 100) : r
|
|
9436
9444
|
});
|
|
@@ -9439,12 +9447,12 @@ const fg = {
|
|
|
9439
9447
|
label: n.minimum_payment,
|
|
9440
9448
|
name: "minimum_payment",
|
|
9441
9449
|
placeholder: T(n.enter_value, n.minimum_payment),
|
|
9442
|
-
type:
|
|
9450
|
+
type: wt.Currency,
|
|
9443
9451
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9444
9452
|
}), e.payment_due_at ? i.push({
|
|
9445
9453
|
label: n.next_payment,
|
|
9446
9454
|
name: "payment_due_at",
|
|
9447
|
-
type:
|
|
9455
|
+
type: wt.Date,
|
|
9448
9456
|
valueFormatter: (a) => {
|
|
9449
9457
|
const o = typeof a == "number" ? new Date(a * 1e3) : a;
|
|
9450
9458
|
return ce(o, re.MED_MONTH_SHORT_DAY_FULL_YEAR);
|
|
@@ -9453,7 +9461,7 @@ const fg = {
|
|
|
9453
9461
|
label: n.day_payment_due,
|
|
9454
9462
|
name: "day_payment_is_due",
|
|
9455
9463
|
placeholder: T(n.enter_value, n.day_payment_due),
|
|
9456
|
-
type:
|
|
9464
|
+
type: wt.Date,
|
|
9457
9465
|
valueFormatter: (a) => T(
|
|
9458
9466
|
n.day_of_every_month,
|
|
9459
9467
|
Ci(a <= 31 ? a : new Date(a).getDate())
|
|
@@ -9462,14 +9470,14 @@ const fg = {
|
|
|
9462
9470
|
label: n.credit_limit,
|
|
9463
9471
|
name: "credit_limit",
|
|
9464
9472
|
placeholder: T(n.enter_value, n.credit_limit),
|
|
9465
|
-
type:
|
|
9473
|
+
type: wt.Currency,
|
|
9466
9474
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9467
9475
|
}), Tg(e) && i.push({
|
|
9468
9476
|
label: n.original_balance,
|
|
9469
9477
|
minAmount: 1,
|
|
9470
9478
|
name: "original_balance",
|
|
9471
9479
|
placeholder: T(n.enter_value, n.original_balance),
|
|
9472
|
-
type:
|
|
9480
|
+
type: wt.Currency,
|
|
9473
9481
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9474
9482
|
}), i;
|
|
9475
9483
|
}, lc = (e, n) => {
|
|
@@ -9510,7 +9518,7 @@ const fg = {
|
|
|
9510
9518
|
let _;
|
|
9511
9519
|
(e.connectionStatus === Ln.Error || e.connectionStatus === Ln.RequiresMfa) && (_ = /* @__PURE__ */ t(bg, { size: 16 }));
|
|
9512
9520
|
const h = /* @__PURE__ */ l(q, { children: [
|
|
9513
|
-
/* @__PURE__ */ t(
|
|
9521
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
9514
9522
|
fs,
|
|
9515
9523
|
{
|
|
9516
9524
|
badgeContent: a ? _ : void 0,
|
|
@@ -9997,7 +10005,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9997
10005
|
]
|
|
9998
10006
|
}
|
|
9999
10007
|
), Ir = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (qa(i.expectedDate) || nn(i.expectedDate, n.start)) && Xe(i.expectedDate, n.end), kg = () => {
|
|
10000
|
-
const { availableWidth: e } = Wn(), { cashflow: n } = x(), { upcomingExpenses: i, upcomingIncome: a } = ze(), { selectedAccountGuids: o } = de(), { dateRange: r, selectedCashAccounts: s } = ti(), { userProfile: c } =
|
|
10008
|
+
const { availableWidth: e } = Wn(), { cashflow: n } = x(), { upcomingExpenses: i, upcomingIncome: a } = ze(), { selectedAccountGuids: o } = de(), { dateRange: r, selectedCashAccounts: s } = ti(), { userProfile: c } = Mt(), [d, u] = g.useState(!1), _ = g.useMemo(
|
|
10001
10009
|
() => i.filter(Ir(o, r)),
|
|
10002
10010
|
[r, o, i]
|
|
10003
10011
|
), h = g.useMemo(
|
|
@@ -10103,9 +10111,9 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10103
10111
|
children: i.welcome_sub_title
|
|
10104
10112
|
}
|
|
10105
10113
|
),
|
|
10106
|
-
/* @__PURE__ */ t(
|
|
10114
|
+
/* @__PURE__ */ t(Ee, { pb: 32, children: i.welcome_description }),
|
|
10107
10115
|
/* @__PURE__ */ l(b, { direction: "column", mb: 32, spacing: 32, children: [
|
|
10108
|
-
/* @__PURE__ */ l(
|
|
10116
|
+
/* @__PURE__ */ l(Ee, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
10109
10117
|
/* @__PURE__ */ t(
|
|
10110
10118
|
L,
|
|
10111
10119
|
{
|
|
@@ -10121,7 +10129,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10121
10129
|
),
|
|
10122
10130
|
i.bullet_one
|
|
10123
10131
|
] }),
|
|
10124
|
-
/* @__PURE__ */ l(
|
|
10132
|
+
/* @__PURE__ */ l(Ee, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
10125
10133
|
/* @__PURE__ */ t(
|
|
10126
10134
|
L,
|
|
10127
10135
|
{
|
|
@@ -10137,7 +10145,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10137
10145
|
),
|
|
10138
10146
|
i.bullet_two
|
|
10139
10147
|
] }),
|
|
10140
|
-
/* @__PURE__ */ l(
|
|
10148
|
+
/* @__PURE__ */ l(Ee, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
10141
10149
|
/* @__PURE__ */ t(
|
|
10142
10150
|
L,
|
|
10143
10151
|
{
|
|
@@ -10167,7 +10175,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10167
10175
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10168
10176
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("img", { alt: "Loading", src: dc.CASHFLOW_LOADING_ANIMATION }) }),
|
|
10169
10177
|
/* @__PURE__ */ t(Xt, { pb: 12, children: e.loading_title }),
|
|
10170
|
-
/* @__PURE__ */ t(
|
|
10178
|
+
/* @__PURE__ */ t(Ee, { children: e.loading_description })
|
|
10171
10179
|
] });
|
|
10172
10180
|
}, Fg = I(Pg), Wg = El`
|
|
10173
10181
|
from {
|
|
@@ -10178,10 +10186,10 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10178
10186
|
}
|
|
10179
10187
|
`, $g = () => {
|
|
10180
10188
|
const { addRepeatingTransaction: e, repeatingTransactions: n } = ze(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = ao(), { isDirty: r } = ti(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = de(), { filter: u, setFilter: _, transactions: h } = Ne(), m = pe(), [C, f] = Et(!0), [E, y] = g.useState(me.EveryMonth), [S, A] = g.useState(1), [w, v] = g.useState(15), [R, B] = Et(!1), [M, D] = Et(1), [k, O] = Et([]), [U, Q] = Et(""), oe = g.useMemo(
|
|
10181
|
-
() => h.find((
|
|
10189
|
+
() => h.find((Te) => Te.guid === U),
|
|
10182
10190
|
[U, h]
|
|
10183
10191
|
), J = !!n.filter(
|
|
10184
|
-
(
|
|
10192
|
+
(Te) => Te.repeating_transaction_type === an.Income
|
|
10185
10193
|
).length, ge = async () => {
|
|
10186
10194
|
D(2), d(
|
|
10187
10195
|
// Beginning of the month, 90 days before today
|
|
@@ -10191,14 +10199,14 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10191
10199
|
}, De = async () => {
|
|
10192
10200
|
if (!(k.length < 1)) {
|
|
10193
10201
|
B(!0);
|
|
10194
|
-
for (let
|
|
10195
|
-
const Oe = k[
|
|
10202
|
+
for (let Te = 0; Te < k.length; Te++) {
|
|
10203
|
+
const Oe = k[Te], xt = Ba(E, Fe(Oe.date)), ee = {
|
|
10196
10204
|
account_guid: Oe.account_guid,
|
|
10197
10205
|
amount: Oe.amount,
|
|
10198
10206
|
merchant_guid: Oe.merchant_guid,
|
|
10199
10207
|
description: Oe.feed_description || Oe.description,
|
|
10200
|
-
predicted_occurs_on: na(
|
|
10201
|
-
recurrence_day:
|
|
10208
|
+
predicted_occurs_on: na(xt, { representation: "date" }),
|
|
10209
|
+
recurrence_day: xt.getDay(),
|
|
10202
10210
|
recurrence_type: E,
|
|
10203
10211
|
repeating_transaction_type: an.Income,
|
|
10204
10212
|
transaction_type: Oe.transaction_type
|
|
@@ -10248,15 +10256,15 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10248
10256
|
},
|
|
10249
10257
|
children: [
|
|
10250
10258
|
/* @__PURE__ */ t(Xt, { pb: 12, children: i.add_income_title }),
|
|
10251
|
-
/* @__PURE__ */ t(
|
|
10259
|
+
/* @__PURE__ */ t(Ee, { mb: 24, children: i.add_income_description }),
|
|
10252
10260
|
k.length > 0 && !oe && /* @__PURE__ */ l(q, { children: [
|
|
10253
|
-
/* @__PURE__ */ t(ie, { children: k.map((
|
|
10261
|
+
/* @__PURE__ */ t(ie, { children: k.map((Te, Oe) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10254
10262
|
/* @__PURE__ */ t(mo, { bgcolor: "background.paper", children: sa(
|
|
10255
|
-
He(
|
|
10263
|
+
He(Te.nextDate || Te.date)
|
|
10256
10264
|
) }),
|
|
10257
|
-
/* @__PURE__ */ t(go, { transaction:
|
|
10265
|
+
/* @__PURE__ */ t(go, { transaction: Te }),
|
|
10258
10266
|
Oe !== k.length - 1 && /* @__PURE__ */ t(H, {})
|
|
10259
|
-
] },
|
|
10267
|
+
] }, Te.guid)) }),
|
|
10260
10268
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", children: [
|
|
10261
10269
|
/* @__PURE__ */ t(H, { sx: { flexGrow: 1 } }),
|
|
10262
10270
|
/* @__PURE__ */ t(
|
|
@@ -10273,16 +10281,16 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10273
10281
|
ic,
|
|
10274
10282
|
{
|
|
10275
10283
|
bgcolor: "background.paper",
|
|
10276
|
-
onSearch: (
|
|
10284
|
+
onSearch: (Te) => _({
|
|
10277
10285
|
...u,
|
|
10278
|
-
custom: (Oe) =>
|
|
10286
|
+
custom: (Oe) => Te ? oc(Oe, Te) : fi(Oe)
|
|
10279
10287
|
}),
|
|
10280
|
-
onSelected: (
|
|
10281
|
-
Q(
|
|
10288
|
+
onSelected: (Te) => {
|
|
10289
|
+
Q(Te), f(!1);
|
|
10282
10290
|
}
|
|
10283
10291
|
}
|
|
10284
10292
|
),
|
|
10285
|
-
!J && r && /* @__PURE__ */ t(
|
|
10293
|
+
!J && r && /* @__PURE__ */ t(Ee, { color: "error", mt: 16, children: i.confirm_error }),
|
|
10286
10294
|
oe && /* @__PURE__ */ l(q, { children: [
|
|
10287
10295
|
/* @__PURE__ */ t(
|
|
10288
10296
|
ac,
|
|
@@ -10303,12 +10311,12 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10303
10311
|
{
|
|
10304
10312
|
"aria-disabled": !oe,
|
|
10305
10313
|
onClick: () => {
|
|
10306
|
-
const
|
|
10307
|
-
|
|
10314
|
+
const Te = [...k];
|
|
10315
|
+
Te.push({
|
|
10308
10316
|
...oe,
|
|
10309
10317
|
nextDate: Ba(E, Fe(oe.date)),
|
|
10310
10318
|
frequency: E
|
|
10311
|
-
}), O(
|
|
10319
|
+
}), O(Te), Q("");
|
|
10312
10320
|
},
|
|
10313
10321
|
variant: "contained",
|
|
10314
10322
|
children: a.confirm_button
|
|
@@ -10360,7 +10368,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10360
10368
|
setSelectedAccounts: o,
|
|
10361
10369
|
shouldDisableNextDate: r,
|
|
10362
10370
|
shouldDisablePrevDate: s
|
|
10363
|
-
} = de(), { onEvent: c } = j(), { visibleCashAccounts: d } =
|
|
10371
|
+
} = de(), { onEvent: c } = j(), { visibleCashAccounts: d } = Se(), { setFilter: u } = Ne(), { userProfile: _ } = Mt(), { dateRange: h, setSelectedCashAccounts: m } = ti(), { loadRepeatingTransactions: C } = ze(), { cashflow: f } = x(), { isCopyLoaded: E, isInitialized: y } = de(), [S, A] = g.useState(!1);
|
|
10364
10372
|
return g.useEffect(() => {
|
|
10365
10373
|
y && C().finally();
|
|
10366
10374
|
}, [y]), g.useEffect(() => {
|
|
@@ -10424,8 +10432,8 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10424
10432
|
children: /* @__PURE__ */ t(Ug, {})
|
|
10425
10433
|
}
|
|
10426
10434
|
);
|
|
10427
|
-
},
|
|
10428
|
-
class
|
|
10435
|
+
}, y4 = I(Vg);
|
|
10436
|
+
class E4 {
|
|
10429
10437
|
fetchInstance;
|
|
10430
10438
|
constructor(n, i) {
|
|
10431
10439
|
this.fetchInstance = new ot(n, i);
|
|
@@ -10956,7 +10964,7 @@ const un = () => {
|
|
|
10956
10964
|
}, qg = I(Zg), Ht = () => {
|
|
10957
10965
|
if (!g.useContext(Pn))
|
|
10958
10966
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10959
|
-
return
|
|
10967
|
+
return Se().uiStore;
|
|
10960
10968
|
}, ma = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, Qg = (e) => !ma(e) && !hc(e), uc = (e) => Yo.includes(e.top_level_category_guid) || Yo.includes(e.category_guid), hc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, Jg = (e) => !ma(e) && !uc(e) && !hc(e), em = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), To = (e, n) => {
|
|
10961
10969
|
const i = [];
|
|
10962
10970
|
let a = Ze(Yt(/* @__PURE__ */ new Date(), 5));
|
|
@@ -11025,7 +11033,7 @@ const un = () => {
|
|
|
11025
11033
|
r(!0);
|
|
11026
11034
|
});
|
|
11027
11035
|
}, [i, a]), !i || !o ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
11028
|
-
|
|
11036
|
+
Ot,
|
|
11029
11037
|
{
|
|
11030
11038
|
sx: {
|
|
11031
11039
|
"& .MuiCardContent-root:last-child": {
|
|
@@ -11041,12 +11049,12 @@ const un = () => {
|
|
|
11041
11049
|
title: /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children: ce(/* @__PURE__ */ new Date(), re.MONTH_LONG) })
|
|
11042
11050
|
}
|
|
11043
11051
|
),
|
|
11044
|
-
/* @__PURE__ */ t(
|
|
11052
|
+
/* @__PURE__ */ t(Lt, { sx: { p: 0 }, children: /* @__PURE__ */ t(cm, {}) })
|
|
11045
11053
|
]
|
|
11046
11054
|
}
|
|
11047
11055
|
);
|
|
11048
11056
|
}, dm = I(lm), _m = ({ customDetailsChart: e }) => {
|
|
11049
|
-
const { institutions: n } =
|
|
11057
|
+
const { institutions: n } = Se(), { selectedAccount: i } = Ht(), { accounts: a } = x(), { firstSubtitle: o, firstValue: r, hasAvailableBalance: s, secondSubtitle: c, secondValue: d } = lc(i, a), u = n.find(
|
|
11050
11058
|
(h) => h.guid === i?.institution_guid
|
|
11051
11059
|
), _ = [
|
|
11052
11060
|
...Ja,
|
|
@@ -11213,7 +11221,7 @@ const gc = ({
|
|
|
11213
11221
|
const e = ln(), { debts: n } = x(), { selectedDebtChartData: i } = un();
|
|
11214
11222
|
return /* @__PURE__ */ l(q, { children: [
|
|
11215
11223
|
/* @__PURE__ */ l(
|
|
11216
|
-
|
|
11224
|
+
Ot,
|
|
11217
11225
|
{
|
|
11218
11226
|
sx: {
|
|
11219
11227
|
"& .MuiCardContent-root:last-child": {
|
|
@@ -11222,7 +11230,7 @@ const gc = ({
|
|
|
11222
11230
|
},
|
|
11223
11231
|
children: [
|
|
11224
11232
|
/* @__PURE__ */ t(dn, { sx: { pb: 0 }, title: /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children: n.details_chart_title }) }),
|
|
11225
|
-
/* @__PURE__ */ t(
|
|
11233
|
+
/* @__PURE__ */ t(Lt, { sx: { p: 0 }, children: /* @__PURE__ */ t(gc, { debts: [i], height: 250 }) })
|
|
11226
11234
|
]
|
|
11227
11235
|
}
|
|
11228
11236
|
),
|
|
@@ -11402,7 +11410,7 @@ const gc = ({
|
|
|
11402
11410
|
}
|
|
11403
11411
|
);
|
|
11404
11412
|
}), fm = I(({ debt: e }) => {
|
|
11405
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11413
|
+
const { debts: n } = x(), { updateAccount: i } = Se(), { onEvent: a } = j(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
|
|
11406
11414
|
await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(W.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
|
|
11407
11415
|
}, d = () => {
|
|
11408
11416
|
setTimeout(() => {
|
|
@@ -11432,7 +11440,7 @@ const gc = ({
|
|
|
11432
11440
|
}
|
|
11433
11441
|
);
|
|
11434
11442
|
}), bm = I(({ debt: e }) => {
|
|
11435
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11443
|
+
const { debts: n } = x(), { updateAccount: i } = Se(), { onEvent: a } = j(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
|
11436
11444
|
await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(W.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
|
|
11437
11445
|
}, d = () => {
|
|
11438
11446
|
setTimeout(() => {
|
|
@@ -11464,7 +11472,7 @@ const gc = ({
|
|
|
11464
11472
|
}
|
|
11465
11473
|
);
|
|
11466
11474
|
}), ym = I(({ debt: e }) => {
|
|
11467
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11475
|
+
const { debts: n } = x(), { updateAccount: i } = Se(), { onEvent: a } = j(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
|
11468
11476
|
await i({ ...e.account, original_balance: o }), e.original_balance = o, a(W.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
|
|
11469
11477
|
}, d = () => {
|
|
11470
11478
|
setTimeout(() => {
|
|
@@ -12036,7 +12044,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12036
12044
|
}
|
|
12037
12045
|
);
|
|
12038
12046
|
}), Um = ({ onBackClick: e, sx: n }) => {
|
|
12039
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, u] = g.useState(""), { isDesktop: _, isMobile: h } = Ce(), { debts: m } = x(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = de(), { setSelectedAccount: S } = Ht(), { selectedDebtPriority: A, setSelectedDebtChartData: w } = un(), { visibleDebtAccounts: v } =
|
|
12047
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, u] = g.useState(""), { isDesktop: _, isMobile: h } = Ce(), { debts: m } = x(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = de(), { setSelectedAccount: S } = Ht(), { selectedDebtPriority: A, setSelectedDebtChartData: w } = un(), { visibleDebtAccounts: v } = Se(), { goalsLoaded: R, loadGoals: B, monthlyCashFlowProfile: M } = tt(), { debts: D } = ca(), k = g.useMemo(() => {
|
|
12040
12048
|
const ge = M?.extra_payment ?? 0;
|
|
12041
12049
|
return Wm(D, A, ge);
|
|
12042
12050
|
}, [D, A, M]);
|
|
@@ -12122,7 +12130,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12122
12130
|
]
|
|
12123
12131
|
}
|
|
12124
12132
|
);
|
|
12125
|
-
},
|
|
12133
|
+
}, T4 = I(Um), Vm = {
|
|
12126
12134
|
unnamed_label: "Unnamed Debt"
|
|
12127
12135
|
};
|
|
12128
12136
|
function Km(e, n) {
|
|
@@ -12237,27 +12245,27 @@ function jm(e) {
|
|
|
12237
12245
|
{
|
|
12238
12246
|
icon: "ecg_heart",
|
|
12239
12247
|
label: e.saving_goal_emergency_fund,
|
|
12240
|
-
metaType:
|
|
12248
|
+
metaType: Nt.EMERGENCY_FUND
|
|
12241
12249
|
},
|
|
12242
12250
|
{
|
|
12243
12251
|
icon: "directions_car",
|
|
12244
12252
|
label: e.saving_gaol_automobile,
|
|
12245
|
-
metaType:
|
|
12253
|
+
metaType: Nt.AUTOMOBILE
|
|
12246
12254
|
},
|
|
12247
|
-
{ icon: "school", label: e.saving_goal_college, metaType:
|
|
12248
|
-
{ icon: "home", label: e.saving_goal_home, metaType:
|
|
12255
|
+
{ icon: "school", label: e.saving_goal_college, metaType: Nt.COLLEGE },
|
|
12256
|
+
{ icon: "home", label: e.saving_goal_home, metaType: Nt.HOUSE },
|
|
12249
12257
|
{
|
|
12250
12258
|
icon: "mountain_flag",
|
|
12251
12259
|
label: e.saving_goal_recreational,
|
|
12252
|
-
metaType:
|
|
12260
|
+
metaType: Nt.RECREATIONAL_VEHICLE
|
|
12253
12261
|
},
|
|
12254
|
-
{ icon: "airplane_ticket", label: e.saving_goal_vacation, metaType:
|
|
12262
|
+
{ icon: "airplane_ticket", label: e.saving_goal_vacation, metaType: Nt.VACATION },
|
|
12255
12263
|
{
|
|
12256
12264
|
icon: "desktop_windows",
|
|
12257
12265
|
label: e.saving_goal_electronic,
|
|
12258
|
-
metaType:
|
|
12266
|
+
metaType: Nt.ELECTRONIC
|
|
12259
12267
|
},
|
|
12260
|
-
{ icon: "payments", label: e.saving_goal_other, metaType:
|
|
12268
|
+
{ icon: "payments", label: e.saving_goal_other, metaType: Nt.OTHER }
|
|
12261
12269
|
],
|
|
12262
12270
|
type: V.SAVINGS_TRACK
|
|
12263
12271
|
},
|
|
@@ -12306,7 +12314,7 @@ const Xm = (e, n) => {
|
|
|
12306
12314
|
}
|
|
12307
12315
|
];
|
|
12308
12316
|
let f = /* @__PURE__ */ t(_s, {});
|
|
12309
|
-
return e.track_type === V.DEBT_TRACK ? f = /* @__PURE__ */ t(us, {}) : e.track_type === V.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(hs, {})), /* @__PURE__ */ t(
|
|
12317
|
+
return e.track_type === V.DEBT_TRACK ? f = /* @__PURE__ */ t(us, {}) : e.track_type === V.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(hs, {})), /* @__PURE__ */ t(Ot, { elevation: 2, children: /* @__PURE__ */ l(ys, { disabled: !i, onClick: i, children: [
|
|
12310
12318
|
/* @__PURE__ */ t(
|
|
12311
12319
|
dn,
|
|
12312
12320
|
{
|
|
@@ -12318,7 +12326,7 @@ const Xm = (e, n) => {
|
|
|
12318
12326
|
title: /* @__PURE__ */ t(cn, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
|
|
12319
12327
|
}
|
|
12320
12328
|
),
|
|
12321
|
-
/* @__PURE__ */ t(
|
|
12329
|
+
/* @__PURE__ */ t(Lt, { sx: { pt: 0 }, children: /* @__PURE__ */ l(b, { gap: 6, children: [
|
|
12322
12330
|
/* @__PURE__ */ t(Xn, { data: C, height: 24 }),
|
|
12323
12331
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12324
12332
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: _ }),
|
|
@@ -12431,7 +12439,7 @@ const Xm = (e, n) => {
|
|
|
12431
12439
|
onPrimaryAction: m,
|
|
12432
12440
|
title: n.reorder_goals_title,
|
|
12433
12441
|
children: /* @__PURE__ */ l(b, { children: [
|
|
12434
|
-
/* @__PURE__ */ t(
|
|
12442
|
+
/* @__PURE__ */ t(Ee, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
|
|
12435
12443
|
/* @__PURE__ */ t(
|
|
12436
12444
|
Hn,
|
|
12437
12445
|
{
|
|
@@ -12462,7 +12470,7 @@ const Xm = (e, n) => {
|
|
|
12462
12470
|
const { goals: i } = x();
|
|
12463
12471
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
12464
12472
|
e.track_type !== V.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
12465
|
-
|
|
12473
|
+
Ge,
|
|
12466
12474
|
{
|
|
12467
12475
|
sx: {
|
|
12468
12476
|
alignItems: "center",
|
|
@@ -12490,7 +12498,7 @@ const Xm = (e, n) => {
|
|
|
12490
12498
|
}, ep = ({ goal: e }) => {
|
|
12491
12499
|
const { goals: n } = x();
|
|
12492
12500
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
12493
|
-
/* @__PURE__ */ t(
|
|
12501
|
+
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(Ka, { color: "success", filled: !0, size: 20 }) }),
|
|
12494
12502
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12495
12503
|
/* @__PURE__ */ l(b, { children: [
|
|
12496
12504
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
@@ -12524,7 +12532,7 @@ const Xm = (e, n) => {
|
|
|
12524
12532
|
children: /* @__PURE__ */ l(b, { children: [
|
|
12525
12533
|
/* @__PURE__ */ l(b, { m: 24, children: [
|
|
12526
12534
|
/* @__PURE__ */ t(mt, { children: h }),
|
|
12527
|
-
/* @__PURE__ */ t(
|
|
12535
|
+
/* @__PURE__ */ t(Ee, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
|
|
12528
12536
|
] }),
|
|
12529
12537
|
/* @__PURE__ */ t(qm, { trackType: e }),
|
|
12530
12538
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
|
|
@@ -12585,7 +12593,7 @@ const Xm = (e, n) => {
|
|
|
12585
12593
|
py: 18,
|
|
12586
12594
|
children: [
|
|
12587
12595
|
/* @__PURE__ */ t(
|
|
12588
|
-
|
|
12596
|
+
Ee,
|
|
12589
12597
|
{
|
|
12590
12598
|
sx: (_) => ({
|
|
12591
12599
|
color: "text.secondary",
|
|
@@ -12605,7 +12613,7 @@ const Xm = (e, n) => {
|
|
|
12605
12613
|
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ l(b, { gap: 16, mt: 48, children: [
|
|
12606
12614
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.complete_title }),
|
|
12607
12615
|
d.length === 0 && /* @__PURE__ */ t(b, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(
|
|
12608
|
-
|
|
12616
|
+
Ee,
|
|
12609
12617
|
{
|
|
12610
12618
|
sx: (_) => ({
|
|
12611
12619
|
color: "text.secondary",
|
|
@@ -12618,7 +12626,7 @@ const Xm = (e, n) => {
|
|
|
12618
12626
|
children: u
|
|
12619
12627
|
}
|
|
12620
12628
|
) }),
|
|
12621
|
-
d.map((_) => /* @__PURE__ */ t(
|
|
12629
|
+
d.map((_) => /* @__PURE__ */ t(Ot, { elevation: 2, children: /* @__PURE__ */ t(ys, { onClick: () => r(_), children: /* @__PURE__ */ t(Lt, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12622
12630
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
12623
12631
|
/* @__PURE__ */ t($, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
12624
12632
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: _.name })
|
|
@@ -12635,11 +12643,11 @@ const Xm = (e, n) => {
|
|
|
12635
12643
|
{
|
|
12636
12644
|
onClick: h ? () => _(!u) : () => n(
|
|
12637
12645
|
d === V.RETIREMENT_TRACK ? i.retirement : "",
|
|
12638
|
-
d === V.RETIREMENT_TRACK ?
|
|
12646
|
+
d === V.RETIREMENT_TRACK ? Nt.RETIREMENT : Nt.OTHER,
|
|
12639
12647
|
d
|
|
12640
12648
|
),
|
|
12641
12649
|
children: [
|
|
12642
|
-
/* @__PURE__ */ t(
|
|
12650
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(ct, { name: o, sx: { color: "grey.900" } }) }) }),
|
|
12643
12651
|
/* @__PURE__ */ t(ae, { primary: r, secondary: s, sx: { mr: 24 } }),
|
|
12644
12652
|
!h && /* @__PURE__ */ t(it, {}),
|
|
12645
12653
|
h && (u ? /* @__PURE__ */ t($l, {}) : /* @__PURE__ */ t(Va, {}))
|
|
@@ -12679,12 +12687,12 @@ const Xm = (e, n) => {
|
|
|
12679
12687
|
onPrimaryAction: () => a(c),
|
|
12680
12688
|
title: o,
|
|
12681
12689
|
children: [
|
|
12682
|
-
/* @__PURE__ */ t(
|
|
12690
|
+
/* @__PURE__ */ t(Ee, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: r.select_debt_accounts_description }),
|
|
12683
12691
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.white" }, children: [
|
|
12684
12692
|
/* @__PURE__ */ t(H, { variant: "fullWidth" }),
|
|
12685
12693
|
e.map((_, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
12686
12694
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => u(_), children: [
|
|
12687
|
-
/* @__PURE__ */ t(
|
|
12695
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
12688
12696
|
ut,
|
|
12689
12697
|
{
|
|
12690
12698
|
alt: _?.name || "",
|
|
@@ -12715,7 +12723,7 @@ const Xm = (e, n) => {
|
|
|
12715
12723
|
}
|
|
12716
12724
|
);
|
|
12717
12725
|
}, ip = ({ onClose: e }) => {
|
|
12718
|
-
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = tt(), { visibleDebtAccounts: s } =
|
|
12726
|
+
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = tt(), { visibleDebtAccounts: s } = Se(), [c, d] = g.useState(!1), u = jm(n), _ = (m, C, f) => {
|
|
12719
12727
|
f === V.DEBT_TRACK ? d(!0) : r({
|
|
12720
12728
|
amount: 0,
|
|
12721
12729
|
current_amount: 0,
|
|
@@ -12727,8 +12735,8 @@ const Xm = (e, n) => {
|
|
|
12727
12735
|
});
|
|
12728
12736
|
}, h = async (m) => {
|
|
12729
12737
|
for (const C of m) {
|
|
12730
|
-
let f =
|
|
12731
|
-
C.account_type === se.LOAN ? f =
|
|
12738
|
+
let f = Nt.CREDIT_CARD;
|
|
12739
|
+
C.account_type === se.LOAN ? f = Nt.LOANS : C.account_type === se.LINE_OF_CREDIT && (f = Nt.LINE_OF_CREDIT), await i({
|
|
12732
12740
|
account_guid: C.guid,
|
|
12733
12741
|
amount: 0,
|
|
12734
12742
|
current_amount: 0,
|
|
@@ -12762,7 +12770,7 @@ const Xm = (e, n) => {
|
|
|
12762
12770
|
/* @__PURE__ */ l(ue, { onClick: () => {
|
|
12763
12771
|
i(e), o(!0);
|
|
12764
12772
|
}, children: [
|
|
12765
|
-
/* @__PURE__ */ t(
|
|
12773
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
12766
12774
|
ut,
|
|
12767
12775
|
{
|
|
12768
12776
|
alt: e.name || "",
|
|
@@ -12818,7 +12826,7 @@ const Xm = (e, n) => {
|
|
|
12818
12826
|
}
|
|
12819
12827
|
);
|
|
12820
12828
|
}), op = ({ goal: e }) => {
|
|
12821
|
-
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } =
|
|
12829
|
+
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } = Se(), { accounts: a, goals: o } = x(), { setAlert: r, setSelectedGoal: s, updateGoal: c } = tt(), d = !e.guid, [u, _] = g.useState(!1), h = async ({ balance: m, guid: C }) => {
|
|
12822
12830
|
const f = { ...e, account_guid: C, current_amount: m || 0 };
|
|
12823
12831
|
d ? s(f) : (await c(f), r(o.alert_account_changed)), _(!1);
|
|
12824
12832
|
};
|
|
@@ -12844,7 +12852,7 @@ const Xm = (e, n) => {
|
|
|
12844
12852
|
/* @__PURE__ */ t(le, { isOpen: u, onClose: () => _(!1), title: o.details_change_account, children: /* @__PURE__ */ l(b, { children: [
|
|
12845
12853
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
|
|
12846
12854
|
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => h(m), children: [
|
|
12847
|
-
/* @__PURE__ */ t(
|
|
12855
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
12848
12856
|
ut,
|
|
12849
12857
|
{
|
|
12850
12858
|
alt: m?.name || "",
|
|
@@ -12862,7 +12870,7 @@ const Xm = (e, n) => {
|
|
|
12862
12870
|
] }) }, m.guid)) }),
|
|
12863
12871
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
|
12864
12872
|
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => h(m), children: [
|
|
12865
|
-
/* @__PURE__ */ t(
|
|
12873
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
12866
12874
|
ut,
|
|
12867
12875
|
{
|
|
12868
12876
|
alt: m?.name || "",
|
|
@@ -12954,7 +12962,7 @@ const Xm = (e, n) => {
|
|
|
12954
12962
|
}
|
|
12955
12963
|
);
|
|
12956
12964
|
}, cp = I(({ goal: e }) => {
|
|
12957
|
-
const { goals: n } = x(), { user: i, updateUser: a } =
|
|
12965
|
+
const { goals: n } = x(), { user: i, updateUser: a } = Mt(), { setAlert: o } = tt(), [r, s] = g.useState(Fe(i.birthday ?? 0)), [c, d] = g.useState(null), u = e.is_complete, _ = async () => {
|
|
12958
12966
|
r && Sd(r) && (await a({ ...i, birthday: He(r) }), o(n.alert_goal_updated_birthday));
|
|
12959
12967
|
};
|
|
12960
12968
|
return /* @__PURE__ */ t(
|
|
@@ -12980,7 +12988,7 @@ const Xm = (e, n) => {
|
|
|
12980
12988
|
}
|
|
12981
12989
|
);
|
|
12982
12990
|
}), lp = ({ goal: e }) => {
|
|
12983
|
-
const { goals: n } = x(), { visibleInvestmentAccounts: i } =
|
|
12991
|
+
const { goals: n } = x(), { visibleInvestmentAccounts: i } = Se(), {
|
|
12984
12992
|
addRetirementGoalAccount: a,
|
|
12985
12993
|
newRetirementGoalAccounts: o,
|
|
12986
12994
|
retirementGoalAccounts: r,
|
|
@@ -13031,7 +13039,7 @@ const Xm = (e, n) => {
|
|
|
13031
13039
|
)
|
|
13032
13040
|
] });
|
|
13033
13041
|
}, dp = I(({ goal: e }) => {
|
|
13034
|
-
const { goals: n } = x(), { visibleAccounts: i } =
|
|
13042
|
+
const { goals: n } = x(), { visibleAccounts: i } = Se(), a = g.useMemo(
|
|
13035
13043
|
() => i.find((s) => s.guid === e.account_guid),
|
|
13036
13044
|
[i, e]
|
|
13037
13045
|
), o = e.track_type;
|
|
@@ -13076,7 +13084,7 @@ const Xm = (e, n) => {
|
|
|
13076
13084
|
e.track_type === V.SAVINGS_TRACK && !e.is_complete && /* @__PURE__ */ t(op, { goal: e })
|
|
13077
13085
|
] });
|
|
13078
13086
|
}), _p = I(({ onClose: e }) => {
|
|
13079
|
-
const { visibleInvestmentAccounts: n } =
|
|
13087
|
+
const { visibleInvestmentAccounts: n } = Se(), { goals: i, common: a } = x(), {
|
|
13080
13088
|
addGoal: o,
|
|
13081
13089
|
addRetirementGoal: r,
|
|
13082
13090
|
deleteGoal: s,
|
|
@@ -13087,7 +13095,7 @@ const Xm = (e, n) => {
|
|
|
13087
13095
|
setAlert: h,
|
|
13088
13096
|
setSelectedGoal: m,
|
|
13089
13097
|
updateGoal: C
|
|
13090
|
-
} = tt(), { user: f } =
|
|
13098
|
+
} = tt(), { user: f } = Mt(), [E, y] = g.useState(!1), S = !_?.guid, A = _?.track_type === V.SAVINGS_TRACK && _.is_complete && !_.has_been_spent, w = g.useMemo(() => {
|
|
13091
13099
|
const O = S ? d : u;
|
|
13092
13100
|
return n.filter((U) => O.some((Q) => Q.account_guid === U.guid));
|
|
13093
13101
|
}, [S, n, d, u]), v = g.useMemo(() => {
|
|
@@ -13142,8 +13150,8 @@ const Xm = (e, n) => {
|
|
|
13142
13150
|
}
|
|
13143
13151
|
)
|
|
13144
13152
|
] });
|
|
13145
|
-
}),
|
|
13146
|
-
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleAccounts: o } =
|
|
13153
|
+
}), A4 = I(({ onBackClick: e, sx: n }) => {
|
|
13154
|
+
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleAccounts: o } = Se(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = de(), { goals: d, common: u } = x(), { alert: _, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = tt(), [S, A] = g.useState(0), [w, v] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, B = f?.amount_allocated_for_debt_goals || 0, M = f?.amount_allocated_for_retirement_goals || 0, D = r ? T(
|
|
13147
13155
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13148
13156
|
P(R, "0,0")
|
|
13149
13157
|
) : "", k = r ? T(
|
|
@@ -13492,8 +13500,8 @@ const hp = I(({ goal: e }) => {
|
|
|
13492
13500
|
)
|
|
13493
13501
|
]
|
|
13494
13502
|
}
|
|
13495
|
-
),
|
|
13496
|
-
const { visibleAccounts: n } =
|
|
13503
|
+
), I4 = I(({ onCTAClick: e }) => {
|
|
13504
|
+
const { visibleAccounts: n } = Se(), { onEvent: i } = j(), { goals: a } = x(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = de(), { ongoingGoalsForMicroWidget: c, loadGoals: d, goalsLoaded: u } = tt();
|
|
13497
13505
|
g.useEffect(() => {
|
|
13498
13506
|
r(n), i(W.GOALS_VIEW);
|
|
13499
13507
|
}, []), g.useEffect(() => {
|
|
@@ -14118,7 +14126,7 @@ const Lp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Mp = 50, Or = 65, kp = ({
|
|
|
14118
14126
|
width: "100%",
|
|
14119
14127
|
children: [
|
|
14120
14128
|
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: () => u(f.guid), children: [
|
|
14121
|
-
/* @__PURE__ */ t(
|
|
14129
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(rn, { categoryGuid: "", merchantGuid: f.guid }) }),
|
|
14122
14130
|
/* @__PURE__ */ t(ae, { primary: f.name })
|
|
14123
14131
|
] }) }),
|
|
14124
14132
|
/* @__PURE__ */ t(H, { sx: { ml: 24 } })
|
|
@@ -14131,7 +14139,7 @@ const Lp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Mp = 50, Or = 65, kp = ({
|
|
|
14131
14139
|
!a.length && /* @__PURE__ */ t(b, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: r.search_zero_state }) })
|
|
14132
14140
|
] }) }) })
|
|
14133
14141
|
] }) : /* @__PURE__ */ t(_e, {});
|
|
14134
|
-
},
|
|
14142
|
+
}, x4 = I(kp);
|
|
14135
14143
|
class Lr {
|
|
14136
14144
|
fetchInstance;
|
|
14137
14145
|
constructor(n, i) {
|
|
@@ -14471,10 +14479,10 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14471
14479
|
/* @__PURE__ */ t(ct, { name: "elevation", size: 32, sx: { color: "text.primary" } }),
|
|
14472
14480
|
/* @__PURE__ */ l(b, { children: [
|
|
14473
14481
|
/* @__PURE__ */ t(p, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: e.empty_widget_header }),
|
|
14474
|
-
/* @__PURE__ */ t(
|
|
14482
|
+
/* @__PURE__ */ t(Ee, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
14475
14483
|
] })
|
|
14476
|
-
] }),
|
|
14477
|
-
const [n, i] = g.useState(!1), { visibleAccounts: a } =
|
|
14484
|
+
] }), v4 = I(({ onCTAClick: e }) => {
|
|
14485
|
+
const [n, i] = g.useState(!1), { visibleAccounts: a } = Se(), { onEvent: o } = j(), { net_worth: r, common: s } = x(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: u } = de(), { loadChartData: _, loadNetWorthData: h, netWorthData: m, selectedData: C } = ks(), f = async () => {
|
|
14478
14486
|
await h(d), await _(1), i(!0);
|
|
14479
14487
|
};
|
|
14480
14488
|
if (g.useEffect(() => u(a), [a]), g.useEffect(() => {
|
|
@@ -14507,7 +14515,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14507
14515
|
title: i
|
|
14508
14516
|
}) => {
|
|
14509
14517
|
let a;
|
|
14510
|
-
const { refreshAccounts: o } =
|
|
14518
|
+
const { refreshAccounts: o } = Se(), { loadWidget: r } = Ms(), { connect: s } = x(), c = at(), [d, u] = g.useState(!1), [_, h] = g.useState(!1);
|
|
14511
14519
|
return g.useEffect(() => (n ? (u(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
|
14512
14520
|
a = new Yl({
|
|
14513
14521
|
container: `#${or}`,
|
|
@@ -14702,8 +14710,8 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14702
14710
|
] }))
|
|
14703
14711
|
] })
|
|
14704
14712
|
] });
|
|
14705
|
-
}, s1 = I(r1),
|
|
14706
|
-
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = de(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } =
|
|
14713
|
+
}, s1 = I(r1), w4 = I(({ onBackClick: e }) => {
|
|
14714
|
+
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = de(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } = Se(), {
|
|
14707
14715
|
assetsLiabilities: d,
|
|
14708
14716
|
gainsLosses: u,
|
|
14709
14717
|
hoveredData: _,
|
|
@@ -14733,7 +14741,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14733
14741
|
E(null);
|
|
14734
14742
|
}, Re = () => {
|
|
14735
14743
|
A(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), O(!0);
|
|
14736
|
-
},
|
|
14744
|
+
}, Te = async (ee) => {
|
|
14737
14745
|
const ne = ee[0], Ue = ee[1];
|
|
14738
14746
|
ne && Ue && B(id(Ue, ne));
|
|
14739
14747
|
}, Oe = {
|
|
@@ -14744,7 +14752,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14744
14752
|
onMouseEnter: ge,
|
|
14745
14753
|
onMouseLeave: De,
|
|
14746
14754
|
selectedData: f
|
|
14747
|
-
},
|
|
14755
|
+
}, xt = () => {
|
|
14748
14756
|
Q(!0), A(W.ACCOUNTS_CLICK_CONNECT);
|
|
14749
14757
|
};
|
|
14750
14758
|
return n ? /* @__PURE__ */ t(
|
|
@@ -14752,7 +14760,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14752
14760
|
{
|
|
14753
14761
|
accountOptions: c,
|
|
14754
14762
|
calendarActions: {
|
|
14755
|
-
onRangeChanged:
|
|
14763
|
+
onRangeChanged: Te
|
|
14756
14764
|
},
|
|
14757
14765
|
dateRangeVariant: S ? "timeframetabs" : "timeframebuttons",
|
|
14758
14766
|
onAccountsFilterClick: () => A(W.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
@@ -14792,7 +14800,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14792
14800
|
{
|
|
14793
14801
|
header: s.empty_widget_header,
|
|
14794
14802
|
icon: "elevation",
|
|
14795
|
-
onClick:
|
|
14803
|
+
onClick: xt,
|
|
14796
14804
|
primaryButton: s.empty_widget_button,
|
|
14797
14805
|
subText: s.empty_widget_description,
|
|
14798
14806
|
sx: {
|
|
@@ -14838,7 +14846,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14838
14846
|
] }) : /* @__PURE__ */ t(_e, {})
|
|
14839
14847
|
}
|
|
14840
14848
|
) : /* @__PURE__ */ t(_e, {});
|
|
14841
|
-
}),
|
|
14849
|
+
}), N4 = (e) => {
|
|
14842
14850
|
switch (e) {
|
|
14843
14851
|
case qn.BudgetExceeded:
|
|
14844
14852
|
case qn.BudgetOffTarget:
|
|
@@ -14897,7 +14905,7 @@ const d1 = (e, n) => {
|
|
|
14897
14905
|
const i = mi(n[e].delivered_at), a = mi(n[e - 1]?.delivered_at);
|
|
14898
14906
|
return !ad(i, a);
|
|
14899
14907
|
}, _1 = ({ date: e }) => /* @__PURE__ */ t(L, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: sa(e) }) }), u1 = ({ notification: e }) => {
|
|
14900
|
-
const { accounts: n } =
|
|
14908
|
+
const { accounts: n } = Se(), { budgets: i } = lt(), { accounts: a } = x(), o = n.find((d) => d.guid === e.entity_guid), r = i.find((d) => d.guid === e.entity_guid), s = e.entity_guid.includes("GOL"), c = {
|
|
14901
14909
|
badge: {
|
|
14902
14910
|
display: "flex",
|
|
14903
14911
|
alignItems: "center",
|
|
@@ -15247,7 +15255,7 @@ class y1 {
|
|
|
15247
15255
|
};
|
|
15248
15256
|
}
|
|
15249
15257
|
const E1 = I(() => {
|
|
15250
|
-
const { common: e, settings: n } = x(), { sendEmailVerification: i } = pt(), { user: a } =
|
|
15258
|
+
const { common: e, settings: n } = x(), { sendEmailVerification: i } = pt(), { user: a } = Mt(), o = pe(), [r, s] = g.useState(!1), c = () => {
|
|
15251
15259
|
s(!1);
|
|
15252
15260
|
}, d = () => {
|
|
15253
15261
|
s(!0);
|
|
@@ -15321,7 +15329,7 @@ const E1 = I(() => {
|
|
|
15321
15329
|
);
|
|
15322
15330
|
}
|
|
15323
15331
|
), T1 = I(() => {
|
|
15324
|
-
const { common: e, settings: n } = x(), { sendPhoneVerification: i, verifyPhoneToken: a } = pt(), { user: o } =
|
|
15332
|
+
const { common: e, settings: n } = x(), { sendPhoneVerification: i, verifyPhoneToken: a } = pt(), { user: o } = Mt(), r = pe(), [s, c] = g.useState(!1), [d, u] = g.useState(!1), _ = () => {
|
|
15325
15333
|
c(!1);
|
|
15326
15334
|
}, h = () => {
|
|
15327
15335
|
c(!0);
|
|
@@ -15386,7 +15394,7 @@ const E1 = I(() => {
|
|
|
15386
15394
|
)
|
|
15387
15395
|
] });
|
|
15388
15396
|
}), A1 = ({ availableWidth: e, handleOnLeavClick: n }) => {
|
|
15389
|
-
const i = at(), { common: a, settings: o } = x(), { isDesktop: r, isMobile: s, isSmallMobile: c, isTablet: d } = Ce(e), { config: u } = Fn(), { updateUser: _ } = pt(), { user: h } =
|
|
15397
|
+
const i = at(), { common: a, settings: o } = x(), { isDesktop: r, isMobile: s, isSmallMobile: c, isTablet: d } = Ce(e), { config: u } = Fn(), { updateUser: _ } = pt(), { user: h } = Mt(), [m, C] = g.useState({
|
|
15390
15398
|
first_name: h.first_name,
|
|
15391
15399
|
last_name: h.last_name,
|
|
15392
15400
|
email: h.email,
|
|
@@ -15439,7 +15447,7 @@ const E1 = I(() => {
|
|
|
15439
15447
|
},
|
|
15440
15448
|
children: [
|
|
15441
15449
|
/* @__PURE__ */ t(mt, { children: o.personal_details }),
|
|
15442
|
-
/* @__PURE__ */ t(
|
|
15450
|
+
/* @__PURE__ */ t(Ee, { variant: "Body", children: o.update_information }),
|
|
15443
15451
|
/* @__PURE__ */ l(
|
|
15444
15452
|
b,
|
|
15445
15453
|
{
|
|
@@ -15893,7 +15901,7 @@ const x1 = ({
|
|
|
15893
15901
|
/* @__PURE__ */ t(p, { truncate: !1, variant: "Small", children: c.mobile_devices_access_info_2 })
|
|
15894
15902
|
] }),
|
|
15895
15903
|
e === st.Edit && /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(nt, { onChange: (A) => C(A.target.value), value: m }) }),
|
|
15896
|
-
e === st.Delete && /* @__PURE__ */ t(
|
|
15904
|
+
e === st.Delete && /* @__PURE__ */ t(Ee, { children: c.mobile_devices_delete_info })
|
|
15897
15905
|
]
|
|
15898
15906
|
}
|
|
15899
15907
|
);
|
|
@@ -15923,7 +15931,7 @@ const x1 = ({
|
|
|
15923
15931
|
children: [
|
|
15924
15932
|
/* @__PURE__ */ l(b, { gap: 4, children: [
|
|
15925
15933
|
/* @__PURE__ */ t(mt, { children: n.mobile_devices_title }),
|
|
15926
|
-
/* @__PURE__ */ t(
|
|
15934
|
+
/* @__PURE__ */ t(Ee, { variant: "Body", children: n.mobile_devices_info })
|
|
15927
15935
|
] }),
|
|
15928
15936
|
e ? /* @__PURE__ */ t(
|
|
15929
15937
|
v1,
|
|
@@ -15942,7 +15950,7 @@ const x1 = ({
|
|
|
15942
15950
|
),
|
|
15943
15951
|
/* @__PURE__ */ l(b, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
|
15944
15952
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n.mobile_devices_access_title }),
|
|
15945
|
-
/* @__PURE__ */ t(
|
|
15953
|
+
/* @__PURE__ */ t(Ee, { align: "center", variant: "Small", children: n.mobile_devices_access_description }),
|
|
15946
15954
|
/* @__PURE__ */ t(te, { onClick: f, variant: "text", children: n.mobile_devices_access_cta })
|
|
15947
15955
|
] }),
|
|
15948
15956
|
/* @__PURE__ */ t(
|
|
@@ -16122,13 +16130,13 @@ const x1 = ({
|
|
|
16122
16130
|
}, []), /* @__PURE__ */ l(b, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
|
16123
16131
|
/* @__PURE__ */ l(b, { sx: { px: o || a ? 0 : 24 }, children: [
|
|
16124
16132
|
/* @__PURE__ */ t(mt, { children: e.transaction_rules_label }),
|
|
16125
|
-
/* @__PURE__ */ t(
|
|
16133
|
+
/* @__PURE__ */ t(Ee, { variant: "Body", children: e.transaction_rules_description })
|
|
16126
16134
|
] }),
|
|
16127
16135
|
/* @__PURE__ */ t(ie, { children: i.map((r, s) => /* @__PURE__ */ t(k1, { rule: r }, s)) })
|
|
16128
16136
|
] });
|
|
16129
16137
|
}), G1 = I(
|
|
16130
16138
|
({ onProfileUpdated: e, profile: n }) => {
|
|
16131
|
-
const { common: i, recurring: a, settings: o } = x(), { updateAccount: r } =
|
|
16139
|
+
const { common: i, recurring: a, settings: o } = x(), { updateAccount: r } = Se(), s = n.notification_type === Ct.DebtPaymentReminder, [c, d] = g.useState(!1), [u, _] = g.useState(n.threshold || 0), [h, m] = g.useState(
|
|
16132
16140
|
n.account?.day_payment_is_due || 0
|
|
16133
16141
|
), C = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ? T(
|
|
16134
16142
|
o.notification_debt_payment_date,
|
|
@@ -16208,7 +16216,7 @@ const x1 = ({
|
|
|
16208
16216
|
}
|
|
16209
16217
|
), B1 = I(
|
|
16210
16218
|
({ onUpdateProfile: e, profile: n }) => {
|
|
16211
|
-
const { settings: i } = x(), { user: a } =
|
|
16219
|
+
const { settings: i } = x(), { user: a } = Mt(), { clientCommunicationProfile: o, userCommunicationsProfile: r } = pt(), { isMobile: s } = Ce(), c = n.notification_type > 2, {
|
|
16212
16220
|
opted_out_of_email_notifications: d,
|
|
16213
16221
|
opted_out_of_push_notifications: u,
|
|
16214
16222
|
opted_out_of_sms_notifications: _
|
|
@@ -16327,7 +16335,7 @@ const x1 = ({
|
|
|
16327
16335
|
opted_out_of_push_notifications: c,
|
|
16328
16336
|
opted_out_of_sms_notifications: d
|
|
16329
16337
|
}
|
|
16330
|
-
} = pt(), { user: u } =
|
|
16338
|
+
} = pt(), { user: u } = Mt(), [_, h] = g.useState(!1), m = async () => {
|
|
16331
16339
|
await C({ ...e, is_enabled: !e.is_enabled }), e.is_enabled && h(!1);
|
|
16332
16340
|
}, C = async (E) => {
|
|
16333
16341
|
await r(E);
|
|
@@ -16400,7 +16408,7 @@ const x1 = ({
|
|
|
16400
16408
|
const { budgetProfiles: e } = pt();
|
|
16401
16409
|
return /* @__PURE__ */ t(b, { children: e.map((n) => /* @__PURE__ */ t(Rc, { profile: n }, n.guid)) });
|
|
16402
16410
|
}), H1 = I(() => {
|
|
16403
|
-
const { onEvent: e } = j(), { settings: n } = x(), { clientCommunicationProfile: i, updateUserCommunicationProfile: a, userCommunicationsProfile: o } = pt(), { user: r } =
|
|
16411
|
+
const { onEvent: e } = j(), { settings: n } = x(), { clientCommunicationProfile: i, updateUserCommunicationProfile: a, userCommunicationsProfile: o } = pt(), { user: r } = Mt(), s = async (c, d) => {
|
|
16404
16412
|
const u = {
|
|
16405
16413
|
...o,
|
|
16406
16414
|
[c]: d
|
|
@@ -16458,7 +16466,7 @@ const x1 = ({
|
|
|
16458
16466
|
useExtraPadding: !1
|
|
16459
16467
|
}
|
|
16460
16468
|
),
|
|
16461
|
-
i.sms_notifications_enabled && /* @__PURE__ */ t(
|
|
16469
|
+
i.sms_notifications_enabled && /* @__PURE__ */ t(Ot, { sx: { backgroundColor: "background.default", mt: 12 }, children: /* @__PURE__ */ t(Lt, { children: /* @__PURE__ */ l(b, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
16462
16470
|
/* @__PURE__ */ t(Vl, { color: "primary", filled: !0 }),
|
|
16463
16471
|
/* @__PURE__ */ t(p, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: n.delivery_method_sms_note_1 })
|
|
16464
16472
|
] }) }) })
|
|
@@ -16467,7 +16475,7 @@ const x1 = ({
|
|
|
16467
16475
|
const { insightsProfiles: e } = pt();
|
|
16468
16476
|
return /* @__PURE__ */ t(b, { children: e.map((n) => /* @__PURE__ */ t(Rc, { profile: n }, n.guid)) });
|
|
16469
16477
|
}), qi = I(
|
|
16470
|
-
({ notificationTypes: e = [
|
|
16478
|
+
({ notificationTypes: e = [vt.Accounts, vt.Budgets], view: n }) => {
|
|
16471
16479
|
const { settings: i } = x(), { isInitialized: a } = de(), { clientCommunicationProfile: o, loadNotificationProfiles: r } = pt(), { isMobile: s } = Ce(), [c, d] = g.useState(
|
|
16472
16480
|
void 0
|
|
16473
16481
|
);
|
|
@@ -16476,7 +16484,7 @@ const x1 = ({
|
|
|
16476
16484
|
}, [a]), !a)
|
|
16477
16485
|
return /* @__PURE__ */ t(_e, {});
|
|
16478
16486
|
let u = i.manage_account_notifications;
|
|
16479
|
-
c ===
|
|
16487
|
+
c === vt.Budgets ? u = i.manage_budget_notifications : c === vt.Insights && (u = i.manage_insights_notifications);
|
|
16480
16488
|
const {
|
|
16481
16489
|
email_notifications_enabled: _,
|
|
16482
16490
|
sms_notifications_enabled: h,
|
|
@@ -16491,15 +16499,15 @@ const x1 = ({
|
|
|
16491
16499
|
/* @__PURE__ */ t(mt, { sx: { mb: 4 }, children: "Notification Types" })
|
|
16492
16500
|
] }),
|
|
16493
16501
|
/* @__PURE__ */ l(ie, { children: [
|
|
16494
|
-
e.includes(
|
|
16502
|
+
e.includes(vt.Accounts) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => d(vt.Accounts), children: [
|
|
16495
16503
|
/* @__PURE__ */ t(ae, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
|
16496
16504
|
/* @__PURE__ */ t(it, {})
|
|
16497
16505
|
] }) }),
|
|
16498
|
-
e.includes(
|
|
16506
|
+
e.includes(vt.Budgets) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => d(vt.Budgets), children: [
|
|
16499
16507
|
/* @__PURE__ */ t(ae, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
|
16500
16508
|
/* @__PURE__ */ t(it, {})
|
|
16501
16509
|
] }) }),
|
|
16502
|
-
e.includes(
|
|
16510
|
+
e.includes(vt.Insights) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => d(vt.Insights), children: [
|
|
16503
16511
|
/* @__PURE__ */ t(ae, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
|
16504
16512
|
/* @__PURE__ */ t(it, {})
|
|
16505
16513
|
] }) })
|
|
@@ -16511,9 +16519,9 @@ const x1 = ({
|
|
|
16511
16519
|
onClose: () => d(void 0),
|
|
16512
16520
|
title: u,
|
|
16513
16521
|
children: /* @__PURE__ */ l(b, { children: [
|
|
16514
|
-
c ===
|
|
16515
|
-
c ===
|
|
16516
|
-
c ===
|
|
16522
|
+
c === vt.Accounts && /* @__PURE__ */ t(Pr, {}),
|
|
16523
|
+
c === vt.Budgets && /* @__PURE__ */ t(Fr, {}),
|
|
16524
|
+
c === vt.Insights && /* @__PURE__ */ t(Wr, {})
|
|
16517
16525
|
] })
|
|
16518
16526
|
}
|
|
16519
16527
|
)
|
|
@@ -16711,7 +16719,7 @@ const x1 = ({
|
|
|
16711
16719
|
] }),
|
|
16712
16720
|
/* @__PURE__ */ t(cn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: r })
|
|
16713
16721
|
] });
|
|
16714
|
-
},
|
|
16722
|
+
}, Dt = ({
|
|
16715
16723
|
altImage: e,
|
|
16716
16724
|
content: n,
|
|
16717
16725
|
hasDivider: i = !0,
|
|
@@ -16836,7 +16844,7 @@ const x1 = ({
|
|
|
16836
16844
|
] }) }),
|
|
16837
16845
|
i && /* @__PURE__ */ t(H, {})
|
|
16838
16846
|
] });
|
|
16839
|
-
}, F = ({ content: e, sx: n }) => /* @__PURE__ */ t(
|
|
16847
|
+
}, F = ({ content: e, sx: n }) => /* @__PURE__ */ t(Ee, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), fe = ({ content: e, sx: n }) => /* @__PURE__ */ t(mt, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), X = ({
|
|
16840
16848
|
items: e,
|
|
16841
16849
|
listType: n = "ul",
|
|
16842
16850
|
subItemPlacement: i,
|
|
@@ -16916,7 +16924,7 @@ const x1 = ({
|
|
|
16916
16924
|
),
|
|
16917
16925
|
/* @__PURE__ */ t(fe, { content: e.accounts_overview.edit_account_title, sx: { pt: 48 } }),
|
|
16918
16926
|
/* @__PURE__ */ t(
|
|
16919
|
-
|
|
16927
|
+
Dt,
|
|
16920
16928
|
{
|
|
16921
16929
|
altImage: e.accounts_overview.alt_image_account_details,
|
|
16922
16930
|
content: /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
|
@@ -17057,7 +17065,7 @@ const x1 = ({
|
|
|
17057
17065
|
}
|
|
17058
17066
|
),
|
|
17059
17067
|
"need-to-fix-a-broken-account": /* @__PURE__ */ t(
|
|
17060
|
-
|
|
17068
|
+
Dt,
|
|
17061
17069
|
{
|
|
17062
17070
|
altImage: e.need_to_fix_a_broken_account.alt_image,
|
|
17063
17071
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -17159,7 +17167,7 @@ const x1 = ({
|
|
|
17159
17167
|
),
|
|
17160
17168
|
/* @__PURE__ */ t(fe, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
|
17161
17169
|
/* @__PURE__ */ t(
|
|
17162
|
-
|
|
17170
|
+
Dt,
|
|
17163
17171
|
{
|
|
17164
17172
|
altImage: i.adjusting_income_alt_image,
|
|
17165
17173
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -17308,7 +17316,7 @@ const x1 = ({
|
|
|
17308
17316
|
}
|
|
17309
17317
|
),
|
|
17310
17318
|
debtPrioritization: /* @__PURE__ */ t(
|
|
17311
|
-
|
|
17319
|
+
Dt,
|
|
17312
17320
|
{
|
|
17313
17321
|
altImage: n.debt_prioritization,
|
|
17314
17322
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -17400,7 +17408,7 @@ const x1 = ({
|
|
|
17400
17408
|
}
|
|
17401
17409
|
),
|
|
17402
17410
|
debtDetails: /* @__PURE__ */ t(
|
|
17403
|
-
|
|
17411
|
+
Dt,
|
|
17404
17412
|
{
|
|
17405
17413
|
altImage: n.debt_details,
|
|
17406
17414
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -17738,7 +17746,7 @@ const x1 = ({
|
|
|
17738
17746
|
),
|
|
17739
17747
|
/* @__PURE__ */ t(fe, { content: n.savings_goal_section_title, sx: { pt: 48 } }),
|
|
17740
17748
|
/* @__PURE__ */ t(
|
|
17741
|
-
|
|
17749
|
+
Dt,
|
|
17742
17750
|
{
|
|
17743
17751
|
altImage: "savings_goal",
|
|
17744
17752
|
content: /* @__PURE__ */ t(
|
|
@@ -17762,7 +17770,7 @@ const x1 = ({
|
|
|
17762
17770
|
),
|
|
17763
17771
|
/* @__PURE__ */ t(fe, { content: n.debt_payoff_goal_section_title, sx: { pt: 48 } }),
|
|
17764
17772
|
/* @__PURE__ */ t(
|
|
17765
|
-
|
|
17773
|
+
Dt,
|
|
17766
17774
|
{
|
|
17767
17775
|
altImage: "debt_payoff",
|
|
17768
17776
|
content: /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
|
@@ -17788,7 +17796,7 @@ const x1 = ({
|
|
|
17788
17796
|
),
|
|
17789
17797
|
/* @__PURE__ */ t(fe, { content: n.retirement_goal_section_title, sx: { pt: 48 } }),
|
|
17790
17798
|
/* @__PURE__ */ t(
|
|
17791
|
-
|
|
17799
|
+
Dt,
|
|
17792
17800
|
{
|
|
17793
17801
|
altImage: "retirement_goal",
|
|
17794
17802
|
content: /* @__PURE__ */ t(
|
|
@@ -17821,7 +17829,7 @@ const x1 = ({
|
|
|
17821
17829
|
}
|
|
17822
17830
|
),
|
|
17823
17831
|
/* @__PURE__ */ t(
|
|
17824
|
-
|
|
17832
|
+
Dt,
|
|
17825
17833
|
{
|
|
17826
17834
|
altImage: "manage_goal",
|
|
17827
17835
|
content: /* @__PURE__ */ t(
|
|
@@ -18036,7 +18044,7 @@ const x1 = ({
|
|
|
18036
18044
|
),
|
|
18037
18045
|
/* @__PURE__ */ t(fe, { content: i.gains_losses_section_title, sx: { mt: 36 } }),
|
|
18038
18046
|
/* @__PURE__ */ t(
|
|
18039
|
-
|
|
18047
|
+
Dt,
|
|
18040
18048
|
{
|
|
18041
18049
|
altImage: i.alt_image_gains_losses,
|
|
18042
18050
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -18077,7 +18085,7 @@ const x1 = ({
|
|
|
18077
18085
|
}
|
|
18078
18086
|
),
|
|
18079
18087
|
/* @__PURE__ */ t(
|
|
18080
|
-
|
|
18088
|
+
Dt,
|
|
18081
18089
|
{
|
|
18082
18090
|
altImage: i.alt_image_assets_liabilities,
|
|
18083
18091
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -18262,7 +18270,7 @@ const x1 = ({
|
|
|
18262
18270
|
}
|
|
18263
18271
|
),
|
|
18264
18272
|
editSsction: /* @__PURE__ */ t(
|
|
18265
|
-
|
|
18273
|
+
Dt,
|
|
18266
18274
|
{
|
|
18267
18275
|
altImage: n.manage_alt_image,
|
|
18268
18276
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -18283,7 +18291,7 @@ const x1 = ({
|
|
|
18283
18291
|
}
|
|
18284
18292
|
),
|
|
18285
18293
|
paymentFrequencySection: /* @__PURE__ */ t(
|
|
18286
|
-
|
|
18294
|
+
Dt,
|
|
18287
18295
|
{
|
|
18288
18296
|
altImage: n.payment_alt_image,
|
|
18289
18297
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -18932,7 +18940,7 @@ const x1 = ({
|
|
|
18932
18940
|
),
|
|
18933
18941
|
/* @__PURE__ */ t(fe, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
|
18934
18942
|
/* @__PURE__ */ t(
|
|
18935
|
-
|
|
18943
|
+
Dt,
|
|
18936
18944
|
{
|
|
18937
18945
|
altImage: i.alt_image_full_feed,
|
|
18938
18946
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -19059,7 +19067,7 @@ const x1 = ({
|
|
|
19059
19067
|
]
|
|
19060
19068
|
}
|
|
19061
19069
|
),
|
|
19062
|
-
e && /* @__PURE__ */ t(
|
|
19070
|
+
e && /* @__PURE__ */ t(Ee, { color: "text.secondary", sx: { px: 24 }, variant: "Small", children: e })
|
|
19063
19071
|
] }), aC = ({
|
|
19064
19072
|
alert: e,
|
|
19065
19073
|
copy: n,
|
|
@@ -19300,7 +19308,7 @@ const x1 = ({
|
|
|
19300
19308
|
guid: a,
|
|
19301
19309
|
sx: o
|
|
19302
19310
|
}) => /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { "aria-label": e, onClick: n, children: [
|
|
19303
|
-
a && /* @__PURE__ */ t(
|
|
19311
|
+
a && /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(ut, { alt: e, institutionGuid: a || "", size: 32 }) }),
|
|
19304
19312
|
/* @__PURE__ */ t(
|
|
19305
19313
|
ae,
|
|
19306
19314
|
{
|
|
@@ -19330,7 +19338,7 @@ const x1 = ({
|
|
|
19330
19338
|
onClose: a,
|
|
19331
19339
|
topic: o
|
|
19332
19340
|
}) => {
|
|
19333
|
-
const { institutions: r, accounts: s } =
|
|
19341
|
+
const { institutions: r, accounts: s } = Se(), c = g.useMemo(
|
|
19334
19342
|
() => yp(r, s, {
|
|
19335
19343
|
singular: e.request_support_institution_account,
|
|
19336
19344
|
plural: e.request_support_institution_accounts
|
|
@@ -19363,7 +19371,7 @@ const x1 = ({
|
|
|
19363
19371
|
}, dC = ({ copy: e, onButtonClick: n }) => {
|
|
19364
19372
|
const i = _C();
|
|
19365
19373
|
return /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 5 }, children: [
|
|
19366
|
-
/* @__PURE__ */ t(
|
|
19374
|
+
/* @__PURE__ */ t(Ee, { color: "text.secondary", sx: i, children: e.contact_support }),
|
|
19367
19375
|
/* @__PURE__ */ t(
|
|
19368
19376
|
p,
|
|
19369
19377
|
{
|
|
@@ -19421,7 +19429,7 @@ const x1 = ({
|
|
|
19421
19429
|
}
|
|
19422
19430
|
),
|
|
19423
19431
|
/* @__PURE__ */ t(
|
|
19424
|
-
|
|
19432
|
+
Ee,
|
|
19425
19433
|
{
|
|
19426
19434
|
color: "secondary",
|
|
19427
19435
|
sx: {
|
|
@@ -19452,7 +19460,7 @@ const x1 = ({
|
|
|
19452
19460
|
/* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t($, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
|
19453
19461
|
/* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
|
19454
19462
|
/* @__PURE__ */ t(cn, { children: e.request_support_success }),
|
|
19455
|
-
/* @__PURE__ */ t(
|
|
19463
|
+
/* @__PURE__ */ t(Ee, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
|
|
19456
19464
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n })
|
|
19457
19465
|
] }),
|
|
19458
19466
|
/* @__PURE__ */ t(te, { fullWidth: !0, onClick: o, variant: "contained", children: r.done_button }),
|
|
@@ -19460,7 +19468,7 @@ const x1 = ({
|
|
|
19460
19468
|
] }) });
|
|
19461
19469
|
}, gC = I(
|
|
19462
19470
|
({ copy: e, isOpen: n, onClose: i }) => {
|
|
19463
|
-
const { alert: a, createSupportTicket: o, isLoading: r, setAlert: s } = oo(), { user: c } =
|
|
19471
|
+
const { alert: a, createSupportTicket: o, isLoading: r, setAlert: s } = oo(), { user: c } = Mt(), { isInitialized: d } = de(), [u, _] = g.useState(""), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState({
|
|
19464
19472
|
isOpen: !1,
|
|
19465
19473
|
topic: "",
|
|
19466
19474
|
type: void 0
|
|
@@ -19647,7 +19655,7 @@ const x1 = ({
|
|
|
19647
19655
|
}
|
|
19648
19656
|
)
|
|
19649
19657
|
] });
|
|
19650
|
-
},
|
|
19658
|
+
}, D4 = I(({ sx: e }) => {
|
|
19651
19659
|
const { isCopyLoaded: n, isInitialized: i } = de();
|
|
19652
19660
|
return !n || !i ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(bt, { sx: { p: 16 }, children: /* @__PURE__ */ t(Lc, { sx: e }) });
|
|
19653
19661
|
}), mC = I(({ selectedTab: e }) => {
|
|
@@ -19681,7 +19689,7 @@ const x1 = ({
|
|
|
19681
19689
|
] });
|
|
19682
19690
|
});
|
|
19683
19691
|
var Kn = /* @__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))(Kn || {});
|
|
19684
|
-
const
|
|
19692
|
+
const R4 = I(({ onBackClick: e, sx: n }) => {
|
|
19685
19693
|
const { settings: i } = x(), { isCopyLoaded: a, isInitialized: o } = de(), { config: r } = Fn(), { isMobile: s } = Ce(), {
|
|
19686
19694
|
display_user_profile_in_settings: c,
|
|
19687
19695
|
display_mobile_devices_in_settings: d,
|
|
@@ -19720,13 +19728,13 @@ const RE = I(({ onBackClick: e, sx: n }) => {
|
|
|
19720
19728
|
] })
|
|
19721
19729
|
}
|
|
19722
19730
|
);
|
|
19723
|
-
}),
|
|
19731
|
+
}), O4 = I((e) => {
|
|
19724
19732
|
const { isMobile: n } = Ce(), { clientConfig: i } = Fn(), a = i?.master?.deep_link_params?.view;
|
|
19725
19733
|
return a ? /* @__PURE__ */ t(qi, { view: a }) : /* @__PURE__ */ t(bt, { ...e, children: /* @__PURE__ */ t(b, { mx: n ? 0 : 48, my: 24, children: /* @__PURE__ */ t(qi, {}) }) });
|
|
19726
|
-
}),
|
|
19734
|
+
}), L4 = (e) => {
|
|
19727
19735
|
const { isMobile: n } = Ce();
|
|
19728
19736
|
return /* @__PURE__ */ t(bt, { ...e, children: /* @__PURE__ */ t(b, { sx: { mx: n ? 0 : 48, my: 24 }, children: /* @__PURE__ */ t(Dc, {}) }) });
|
|
19729
|
-
},
|
|
19737
|
+
}, M4 = I(
|
|
19730
19738
|
({ notificationTypes: e, isOpen: n, onClose: i, onNotificationClick: a }) => {
|
|
19731
19739
|
const { notifications: o } = x(), { isCopyLoaded: r } = de(), { isMobile: s } = Ce(), [c, d] = g.useState(!1);
|
|
19732
19740
|
return r ? /* @__PURE__ */ l(
|
|
@@ -20022,7 +20030,7 @@ class bC {
|
|
|
20022
20030
|
}
|
|
20023
20031
|
};
|
|
20024
20032
|
}
|
|
20025
|
-
class
|
|
20033
|
+
class k4 {
|
|
20026
20034
|
// Global properties
|
|
20027
20035
|
appConfig = Ur;
|
|
20028
20036
|
endpoint = "/";
|
|
@@ -20082,12 +20090,12 @@ const xa = ({
|
|
|
20082
20090
|
] }) }),
|
|
20083
20091
|
/* @__PURE__ */ t(H, { sx: { ml: n ? 0 : 24 } })
|
|
20084
20092
|
] }), yC = () => {
|
|
20085
|
-
const { accounts: e } =
|
|
20093
|
+
const { accounts: e } = Se(), { selectedAccount: n, selectedMember: i } = Ht();
|
|
20086
20094
|
return e.filter(
|
|
20087
20095
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
|
20088
20096
|
);
|
|
20089
20097
|
}, EC = () => {
|
|
20090
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ht(), { mergeAccounts: u, updateAccount: _ } =
|
|
20098
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ht(), { mergeAccounts: u, updateAccount: _ } = Se(), { accounts: h } = x(), m = yC(), { onEvent: C } = j(), { modifyTransactionByAccountGuid: f } = Ne(), E = async (S) => {
|
|
20091
20099
|
await _({
|
|
20092
20100
|
...d,
|
|
20093
20101
|
...S
|
|
@@ -20376,10 +20384,10 @@ const xa = ({
|
|
|
20376
20384
|
return /* @__PURE__ */ l(q, { children: [
|
|
20377
20385
|
/* @__PURE__ */ t(kt, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: o.connection_status }) }),
|
|
20378
20386
|
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
20379
|
-
/* @__PURE__ */ t(
|
|
20387
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(vn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
20380
20388
|
/* @__PURE__ */ t(ae, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
|
20381
20389
|
] }) : /* @__PURE__ */ l(ue, { onClick: () => n(!0), children: [
|
|
20382
|
-
/* @__PURE__ */ t(
|
|
20390
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(vn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
20383
20391
|
/* @__PURE__ */ t(
|
|
20384
20392
|
ae,
|
|
20385
20393
|
{
|
|
@@ -20396,7 +20404,7 @@ const xa = ({
|
|
|
20396
20404
|
/* @__PURE__ */ t(H, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
20397
20405
|
!a.is_manual && a.institution_url && /* @__PURE__ */ l(q, { children: [
|
|
20398
20406
|
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ue, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
20399
|
-
/* @__PURE__ */ t(
|
|
20407
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
|
20400
20408
|
vn,
|
|
20401
20409
|
{
|
|
20402
20410
|
backingSx: {
|
|
@@ -20431,11 +20439,11 @@ const xa = ({
|
|
|
20431
20439
|
)
|
|
20432
20440
|
] });
|
|
20433
20441
|
}, AC = I(TC), IC = ({ field: e, isOpen: n, onClose: i }) => {
|
|
20434
|
-
const { updateAccount: a } =
|
|
20442
|
+
const { updateAccount: a } = Se(), { selectedAccount: o } = Ht(), { accounts: r } = x(), [s, c] = g.useState(o[e.name]), [d, u] = g.useState(""), [_, h] = g.useState(!0), m = () => {
|
|
20435
20443
|
c(""), u(""), i();
|
|
20436
20444
|
}, C = () => {
|
|
20437
20445
|
switch (e.type) {
|
|
20438
|
-
case
|
|
20446
|
+
case wt.Select:
|
|
20439
20447
|
return /* @__PURE__ */ l(wd, { fullWidth: !0, children: [
|
|
20440
20448
|
/* @__PURE__ */ t(Nd, { id: `${e.label}-select-label`, children: e.label }),
|
|
20441
20449
|
/* @__PURE__ */ t(
|
|
@@ -20456,7 +20464,7 @@ const xa = ({
|
|
|
20456
20464
|
}
|
|
20457
20465
|
)
|
|
20458
20466
|
] });
|
|
20459
|
-
case
|
|
20467
|
+
case wt.Currency:
|
|
20460
20468
|
return /* @__PURE__ */ t(
|
|
20461
20469
|
Qt,
|
|
20462
20470
|
{
|
|
@@ -20468,7 +20476,7 @@ const xa = ({
|
|
|
20468
20476
|
setHasValidInput: h
|
|
20469
20477
|
}
|
|
20470
20478
|
);
|
|
20471
|
-
case
|
|
20479
|
+
case wt.Date:
|
|
20472
20480
|
return /* @__PURE__ */ t(Dd, { dateAdapter: Jn, children: /* @__PURE__ */ t(
|
|
20473
20481
|
Xa,
|
|
20474
20482
|
{
|
|
@@ -20692,7 +20700,7 @@ const xa = ({
|
|
|
20692
20700
|
/* @__PURE__ */ t(Zn, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(DC, {}) })
|
|
20693
20701
|
] });
|
|
20694
20702
|
}, kc = I(kC), GC = () => {
|
|
20695
|
-
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = de(), { setSelectedAccount: o, setSelectedMember: r } = Ht(), { members: s } =
|
|
20703
|
+
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = de(), { setSelectedAccount: o, setSelectedMember: r } = Ht(), { members: s } = Se(), { onEvent: c } = j(), d = [...new Set(a.map((y) => y.account_type))], u = a.find((y) => e === y.guid), _ = g.useMemo(
|
|
20696
20704
|
() => a.filter((y) => y.is_hidden),
|
|
20697
20705
|
[a]
|
|
20698
20706
|
), h = g.useMemo(
|
|
@@ -20835,7 +20843,7 @@ const xa = ({
|
|
|
20835
20843
|
)
|
|
20836
20844
|
] });
|
|
20837
20845
|
}, BC = I(GC), HC = ({ onBackClick: e, sx: n = {} }) => {
|
|
20838
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Fn(), { accounts: c } =
|
|
20846
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Fn(), { accounts: c } = Se(), { accounts: d, connect: u } = x(), { isCopyLoaded: _, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = de(), { isDesktop: f } = Ce(), { onEvent: E } = j();
|
|
20839
20847
|
g.useEffect(() => {
|
|
20840
20848
|
m(c);
|
|
20841
20849
|
}, [c]);
|
|
@@ -20884,8 +20892,8 @@ const xa = ({
|
|
|
20884
20892
|
] }) : /* @__PURE__ */ t(_e, {})
|
|
20885
20893
|
}
|
|
20886
20894
|
) : /* @__PURE__ */ t(_e, {});
|
|
20887
|
-
},
|
|
20888
|
-
const { visibleAccounts: i } =
|
|
20895
|
+
}, G4 = I(HC), PC = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
20896
|
+
const { visibleAccounts: i } = Se(), { accounts: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = de();
|
|
20889
20897
|
return g.useEffect(() => {
|
|
20890
20898
|
c(i);
|
|
20891
20899
|
}, [i]), o ? /* @__PURE__ */ t(
|
|
@@ -20915,7 +20923,7 @@ const xa = ({
|
|
|
20915
20923
|
] }) : /* @__PURE__ */ t(_e, {})
|
|
20916
20924
|
}
|
|
20917
20925
|
) : /* @__PURE__ */ t(_e, {});
|
|
20918
|
-
},
|
|
20926
|
+
}, B4 = I(PC), FC = () => /* @__PURE__ */ l(
|
|
20919
20927
|
"svg",
|
|
20920
20928
|
{
|
|
20921
20929
|
fill: "none",
|
|
@@ -21400,7 +21408,7 @@ const xa = ({
|
|
|
21400
21408
|
]
|
|
21401
21409
|
}
|
|
21402
21410
|
) : /* @__PURE__ */ t(_e, {});
|
|
21403
|
-
},
|
|
21411
|
+
}, H4 = I(UC);
|
|
21404
21412
|
class Kr {
|
|
21405
21413
|
fetchInstance;
|
|
21406
21414
|
constructor(n, i) {
|
|
@@ -21760,7 +21768,7 @@ const zC = () => {
|
|
|
21760
21768
|
]
|
|
21761
21769
|
}
|
|
21762
21770
|
) : /* @__PURE__ */ t(_e, {});
|
|
21763
|
-
},
|
|
21771
|
+
}, P4 = I(ZC), zr = 5, qC = 100, QC = 25, JC = (e) => {
|
|
21764
21772
|
const n = (o) => {
|
|
21765
21773
|
o.active || e.alphaTarget(0.3).restart(), o.subject.fx = o.subject.x, o.subject.fy = o.subject.y;
|
|
21766
21774
|
}, i = (o) => {
|
|
@@ -21768,23 +21776,23 @@ const zC = () => {
|
|
|
21768
21776
|
}, a = (o) => {
|
|
21769
21777
|
o.active || e.alphaTarget(0), o.subject.fx = null, o.subject.fy = null;
|
|
21770
21778
|
};
|
|
21771
|
-
return
|
|
21779
|
+
return Rt.drag().on("start", n).on("drag", i).on("end", a);
|
|
21772
21780
|
}, e0 = (e) => {
|
|
21773
21781
|
let n = e.transaction_total / e.amount;
|
|
21774
21782
|
n < 0 ? n = 0 : n > 1 && (n = 1);
|
|
21775
|
-
const i = n * 2 * Math.PI, a =
|
|
21783
|
+
const i = n * 2 * Math.PI, a = Rt.interpolate(0, i), o = Rt.arc().cornerRadius(5).innerRadius(e.radius - zr * 2).outerRadius(e.radius - zr).startAngle(0).endAngle(0);
|
|
21776
21784
|
return (r) => (o.endAngle(a(r)), o(e) || "");
|
|
21777
21785
|
}, t0 = (e) => {
|
|
21778
|
-
|
|
21786
|
+
Rt.selectAll(".bubble").call(JC(e));
|
|
21779
21787
|
}, n0 = (e, n, i) => {
|
|
21780
21788
|
e.alpha(1).restart().force(
|
|
21781
21789
|
"x",
|
|
21782
|
-
|
|
21790
|
+
Rt.forceX().x(i / 2).strength(0.01)
|
|
21783
21791
|
).force(
|
|
21784
21792
|
"y",
|
|
21785
|
-
|
|
21793
|
+
Rt.forceY().y(n / 2).strength(0.01)
|
|
21786
21794
|
);
|
|
21787
|
-
}, i0 = (e, n) =>
|
|
21795
|
+
}, i0 = (e, n) => Rt.scaleLinear().domain([e, n]).range([QC, qC]), a0 = (e) => {
|
|
21788
21796
|
const n = e.reduce((r, s) => {
|
|
21789
21797
|
const c = Math.max(s.transaction_total, s.amount);
|
|
21790
21798
|
return c > r ? c : r;
|
|
@@ -21798,8 +21806,8 @@ const zC = () => {
|
|
|
21798
21806
|
radius: s
|
|
21799
21807
|
};
|
|
21800
21808
|
});
|
|
21801
|
-
return
|
|
21802
|
-
|
|
21809
|
+
return Rt.forceSimulation(o).velocityDecay(0.05).force("collide", Rt.forceCollide((r) => r.radius + 2).strength(0.5)).on("tick", () => {
|
|
21810
|
+
Rt.selectAll(".bubble").data(o).attr("transform", (r) => `translate(${r.x},${r.y})`);
|
|
21803
21811
|
});
|
|
21804
21812
|
}, Yr = 5, o0 = 2e3;
|
|
21805
21813
|
function r0({ bubble: e }) {
|
|
@@ -21809,9 +21817,9 @@ function r0({ bubble: e }) {
|
|
|
21809
21817
|
radius: o
|
|
21810
21818
|
} = e, r = `mercury-${i}`;
|
|
21811
21819
|
g.useEffect(() => {
|
|
21812
|
-
|
|
21820
|
+
Rt.select(`.${r}`).selectAll(".status").remove(), Rt.select(`.${r}`).append("path").transition().duration(o0).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => e0(e));
|
|
21813
21821
|
}, [e]);
|
|
21814
|
-
const s =
|
|
21822
|
+
const s = Rt.arc().innerRadius((c) => c - 2 * Yr).outerRadius((c) => c - Yr).startAngle(0).endAngle(2 * Math.PI);
|
|
21815
21823
|
return /* @__PURE__ */ t("g", { className: r, children: /* @__PURE__ */ t(
|
|
21816
21824
|
"path",
|
|
21817
21825
|
{
|
|
@@ -21826,7 +21834,7 @@ function s0({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
|
21826
21834
|
const [a, o] = g.useState(!1);
|
|
21827
21835
|
if (g.useEffect(() => {
|
|
21828
21836
|
document.fonts.ready.then(() => {
|
|
21829
|
-
const S =
|
|
21837
|
+
const S = Rt.select(`.icon-${c}`), A = S.node()?.getComputedTextLength();
|
|
21830
21838
|
S.attr("x", () => h < Vn ? A ? A / 2 - 12 : 12 : A ? A / 2 - 16 : 16);
|
|
21831
21839
|
});
|
|
21832
21840
|
}, []), !e) return;
|
|
@@ -22060,7 +22068,7 @@ const c0 = ({
|
|
|
22060
22068
|
] });
|
|
22061
22069
|
}
|
|
22062
22070
|
), _0 = (e) => {
|
|
22063
|
-
const n = pe(), { accounts: i } =
|
|
22071
|
+
const n = pe(), { accounts: i } = Se(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = lt(), { budgets: c } = x(), { isCopyLoaded: d, isInitialized: u } = de(), { reloadCategoryTotals: _ } = $e(), h = tu(), m = a.length === 0;
|
|
22064
22072
|
return g.useEffect(() => {
|
|
22065
22073
|
s(n);
|
|
22066
22074
|
}, [n]), g.useEffect(() => {
|
|
@@ -22089,7 +22097,7 @@ const c0 = ({
|
|
|
22089
22097
|
] }) : /* @__PURE__ */ t(_e, {})
|
|
22090
22098
|
}
|
|
22091
22099
|
) : /* @__PURE__ */ t(_e, {});
|
|
22092
|
-
},
|
|
22100
|
+
}, F4 = I(_0), u0 = I(() => {
|
|
22093
22101
|
const { budgets: e } = x(), { totalBudgeted: n } = lt(), { projectedIncome: i } = ze(), a = i - n;
|
|
22094
22102
|
return /* @__PURE__ */ l(b, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
22095
22103
|
/* @__PURE__ */ l(b, { alignItems: "center", children: [
|
|
@@ -22115,7 +22123,7 @@ const c0 = ({
|
|
|
22115
22123
|
}, [n, i]);
|
|
22116
22124
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22117
22125
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
22118
|
-
/* @__PURE__ */ t(
|
|
22126
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
22119
22127
|
/* @__PURE__ */ t(ae, { primary: e.name, secondary: a })
|
|
22120
22128
|
] }) }),
|
|
22121
22129
|
/* @__PURE__ */ t(H, {})
|
|
@@ -22178,7 +22186,7 @@ const c0 = ({
|
|
|
22178
22186
|
);
|
|
22179
22187
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22180
22188
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => r(!0), children: [
|
|
22181
|
-
/* @__PURE__ */ t(
|
|
22189
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
|
22182
22190
|
/* @__PURE__ */ t(
|
|
22183
22191
|
ae,
|
|
22184
22192
|
{
|
|
@@ -22231,7 +22239,7 @@ const c0 = ({
|
|
|
22231
22239
|
percentage: `${r}%`
|
|
22232
22240
|
}
|
|
22233
22241
|
];
|
|
22234
|
-
return /* @__PURE__ */ t(
|
|
22242
|
+
return /* @__PURE__ */ t(Ot, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Lt, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
|
|
22235
22243
|
/* @__PURE__ */ t(Gt, { categoryGuid: o, size: 56 }),
|
|
22236
22244
|
/* @__PURE__ */ t(Xt, { children: `${P(s, "0,0")} / ${P(n, "0,0")}` }),
|
|
22237
22245
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
|
|
@@ -22253,7 +22261,7 @@ const c0 = ({
|
|
|
22253
22261
|
transaction_total: r
|
|
22254
22262
|
} = e, { setSelectedSubBudget: s } = lt();
|
|
22255
22263
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => s(e), children: [
|
|
22256
|
-
/* @__PURE__ */ t(
|
|
22264
|
+
/* @__PURE__ */ t(Ge, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(so, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Gt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
|
22257
22265
|
/* @__PURE__ */ t(
|
|
22258
22266
|
ae,
|
|
22259
22267
|
{
|
|
@@ -22540,7 +22548,7 @@ const c0 = ({
|
|
|
22540
22548
|
transaction_total: u
|
|
22541
22549
|
} = e;
|
|
22542
22550
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => n?.(e), children: [
|
|
22543
|
-
/* @__PURE__ */ t(
|
|
22551
|
+
/* @__PURE__ */ t(Ge, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(so, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Gt, { categoryGuid: r, variant: "basic" }) }) }),
|
|
22544
22552
|
/* @__PURE__ */ t(
|
|
22545
22553
|
ae,
|
|
22546
22554
|
{
|
|
@@ -22565,15 +22573,15 @@ const c0 = ({
|
|
|
22565
22573
|
click_type: "list"
|
|
22566
22574
|
});
|
|
22567
22575
|
};
|
|
22568
|
-
return /* @__PURE__ */ l(
|
|
22576
|
+
return /* @__PURE__ */ l(Ot, { elevation: 2, children: [
|
|
22569
22577
|
/* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: n.budget_categories_title }) }),
|
|
22570
|
-
/* @__PURE__ */ t(
|
|
22578
|
+
/* @__PURE__ */ t(Lt, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ie, { children: i.map((r) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22571
22579
|
/* @__PURE__ */ t(T0, { budget: r, onClick: o }),
|
|
22572
22580
|
/* @__PURE__ */ t(H, {})
|
|
22573
22581
|
] }, r.guid)) }) })
|
|
22574
22582
|
] });
|
|
22575
22583
|
}), I0 = I(() => {
|
|
22576
|
-
const e = pe(), { onEvent: n } = j(), { visibleAccounts: i } =
|
|
22584
|
+
const e = pe(), { onEvent: n } = j(), { visibleAccounts: i } = Se(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = $e(), { detailedBudgets: d, totalBudgeted: u } = lt(), { projectedIncome: _ } = ze(), { setFilter: h } = Ne(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
|
|
22577
22585
|
const w = c.reduce((M, D) => M + D.totalAmount, 0);
|
|
22578
22586
|
let v = w / u;
|
|
22579
22587
|
v > 1 && (v = 1);
|
|
@@ -22608,9 +22616,9 @@ const c0 = ({
|
|
|
22608
22616
|
}
|
|
22609
22617
|
}), C(!0), n(W.BUDGETS_CLICK_EDIT_INCOME);
|
|
22610
22618
|
};
|
|
22611
|
-
return /* @__PURE__ */ l(
|
|
22619
|
+
return /* @__PURE__ */ l(Ot, { elevation: 2, sx: { overflow: "visible" }, children: [
|
|
22612
22620
|
/* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: a.overview_title }) }),
|
|
22613
|
-
/* @__PURE__ */ t(
|
|
22621
|
+
/* @__PURE__ */ t(Lt, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
|
22614
22622
|
/* @__PURE__ */ l(b, { gap: 8, children: [
|
|
22615
22623
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
|
22616
22624
|
/* @__PURE__ */ t(Xn, { data: E, height: 16 }),
|
|
@@ -22655,8 +22663,8 @@ const c0 = ({
|
|
|
22655
22663
|
}
|
|
22656
22664
|
)
|
|
22657
22665
|
] });
|
|
22658
|
-
}), Xr = 480,
|
|
22659
|
-
const i = pe(), { onEvent: a } = j(), { visibleAccounts: o } =
|
|
22666
|
+
}), Xr = 480, W4 = I(({ onBackClick: e, sx: n }) => {
|
|
22667
|
+
const i = pe(), { onEvent: a } = j(), { visibleAccounts: o } = Se(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: u, setDisplayedDate: _, setSelectedAccounts: h } = de(), {
|
|
22660
22668
|
alert: m,
|
|
22661
22669
|
dateRange: C,
|
|
22662
22670
|
isDataLoaded: f,
|
|
@@ -22840,7 +22848,7 @@ const c0 = ({
|
|
|
22840
22848
|
}
|
|
22841
22849
|
) });
|
|
22842
22850
|
}, w0 = I(v0), N0 = () => {
|
|
22843
|
-
const [e, n] = g.useState(!1), { visibleAccounts: i } =
|
|
22851
|
+
const [e, n] = g.useState(!1), { visibleAccounts: i } = Se(), { selectedAccountGuids: a, setSelectedAccountGuids: o } = de(), { common: r, connect: s } = x(), { config: c } = Fn(), { isMobile: d } = Ce(), u = {
|
|
22844
22852
|
accountFilterOptionsCopy: {
|
|
22845
22853
|
accountTypeAccounts: r.account_filter.account_type_accounts,
|
|
22846
22854
|
cancelButton: r.cancel_button,
|
|
@@ -22897,7 +22905,7 @@ const c0 = ({
|
|
|
22897
22905
|
}, D0 = I(N0);
|
|
22898
22906
|
var Pi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Pi || {});
|
|
22899
22907
|
const R0 = ({ widgets: e, isLoading: n }) => {
|
|
22900
|
-
const { isDesktop: i, isMobile: a } = Ce(), { copyStore: o } = la(), { setSelectedAccounts: r } = de(), { visibleAccounts: s } =
|
|
22908
|
+
const { isDesktop: i, isMobile: a } = Ce(), { copyStore: o } = la(), { setSelectedAccounts: r } = de(), { visibleAccounts: s } = Se();
|
|
22901
22909
|
g.useEffect(() => {
|
|
22902
22910
|
r(s);
|
|
22903
22911
|
}, [s]);
|
|
@@ -22928,7 +22936,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
22928
22936
|
/* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" })
|
|
22929
22937
|
] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: u.map((_) => /* @__PURE__ */ t(g.Fragment, { children: _.component }, _.index)) }) })
|
|
22930
22938
|
] });
|
|
22931
|
-
}, $
|
|
22939
|
+
}, $4 = I(R0), Do = ({ sx: e = {} }) => {
|
|
22932
22940
|
const { investments: n } = x(), { onEvent: i } = j(), { setShowConnectionsWidget: a } = Gn();
|
|
22933
22941
|
return /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...e }, children: [
|
|
22934
22942
|
/* @__PURE__ */ l(
|
|
@@ -23284,7 +23292,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23284
23292
|
}, P0 = () => {
|
|
23285
23293
|
const [e, n] = g.useState(0), [i, a] = g.useState(""), [o, r] = g.useState(""), s = (f) => {
|
|
23286
23294
|
i !== f ? a(f) : (a(""), r(""));
|
|
23287
|
-
}, { selectedAccountGuids: c } = de(), { visibleHoldings: d } = Gn(), { visibleInvestmentAccounts: u } =
|
|
23295
|
+
}, { selectedAccountGuids: c } = de(), { visibleHoldings: d } = Gn(), { visibleInvestmentAccounts: u } = Se(), {
|
|
23288
23296
|
investments: { allocation: _ }
|
|
23289
23297
|
} = x(), h = G0(
|
|
23290
23298
|
u.filter(({ guid: f }) => c.includes(f)),
|
|
@@ -23425,7 +23433,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23425
23433
|
] });
|
|
23426
23434
|
}, $0 = ({ body: e, title: n }) => /* @__PURE__ */ l(b, { sx: { gap: 4, p: 12 }, children: [
|
|
23427
23435
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n }),
|
|
23428
|
-
/* @__PURE__ */ t(
|
|
23436
|
+
/* @__PURE__ */ t(Ee, { variant: "ParagraphSmall", children: e })
|
|
23429
23437
|
] }), U0 = ({
|
|
23430
23438
|
placement: e = "bottom",
|
|
23431
23439
|
tooltip_info_body: n,
|
|
@@ -23478,7 +23486,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23478
23486
|
writingMode: "vertical-rl"
|
|
23479
23487
|
},
|
|
23480
23488
|
children: [
|
|
23481
|
-
/* @__PURE__ */ t(
|
|
23489
|
+
/* @__PURE__ */ t(Ee, { bold: !0, color: "secondary.main", variant: m, children: a === wn.Stocks ? e.market_capitalization : e.credit_quality }),
|
|
23482
23490
|
/* @__PURE__ */ t(
|
|
23483
23491
|
b,
|
|
23484
23492
|
{
|
|
@@ -24097,14 +24105,14 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24097
24105
|
...Qe,
|
|
24098
24106
|
[ee]: Ue
|
|
24099
24107
|
}));
|
|
24100
|
-
}, { visibleHoldings: oe } = Gn(), { visibleInvestmentAccounts: J } =
|
|
24108
|
+
}, { visibleHoldings: oe } = Gn(), { visibleInvestmentAccounts: J } = Se(), ge = J.filter(
|
|
24101
24109
|
({ guid: ee }) => r.includes(ee)
|
|
24102
24110
|
), De = ge.reduce((ee, ne) => ee + (ne.balance || 0), 0), Re = ge.map(({ guid: ee }) => ee), Oe = oe.filter(
|
|
24103
24111
|
({ account_guid: ee }) => Re.includes(ee)
|
|
24104
24112
|
).reduce((ee, ne) => {
|
|
24105
24113
|
const Ue = ne.market_value ? ne.market_value - (ne.cost_basis || 0) : 0;
|
|
24106
24114
|
return ee + Ue;
|
|
24107
|
-
}, 0),
|
|
24115
|
+
}, 0), xt = () => {
|
|
24108
24116
|
o(!1);
|
|
24109
24117
|
};
|
|
24110
24118
|
return f ? /* @__PURE__ */ l(we, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
@@ -24322,7 +24330,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24322
24330
|
},
|
|
24323
24331
|
ee.guid
|
|
24324
24332
|
);
|
|
24325
|
-
const
|
|
24333
|
+
const ke = v ? "grey.700" : "grey.400", Pt = ne.length ? "text.primary" : ke;
|
|
24326
24334
|
return /* @__PURE__ */ l(
|
|
24327
24335
|
Ai,
|
|
24328
24336
|
{
|
|
@@ -24474,7 +24482,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24474
24482
|
handleCostBasisClick: D,
|
|
24475
24483
|
handleCostBasisKeyDown: O,
|
|
24476
24484
|
isOpen: a,
|
|
24477
|
-
onClose:
|
|
24485
|
+
onClose: xt
|
|
24478
24486
|
}
|
|
24479
24487
|
),
|
|
24480
24488
|
/* @__PURE__ */ t(
|
|
@@ -24486,8 +24494,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24486
24494
|
}
|
|
24487
24495
|
)
|
|
24488
24496
|
] }) : /* @__PURE__ */ t(_e, {});
|
|
24489
|
-
}, Z0 = I(X0), q0 = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
|
|
24490
|
-
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleInvestmentAccounts: o } =
|
|
24497
|
+
}, Z0 = I(X0), q0 = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), U4 = I(({ onBackClick: e, sx: n }) => {
|
|
24498
|
+
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleInvestmentAccounts: o } = Se(), {
|
|
24491
24499
|
visibleHoldings: r,
|
|
24492
24500
|
setShowConnectionsWidget: s,
|
|
24493
24501
|
showConnectionsWidget: c
|
|
@@ -24821,7 +24829,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24821
24829
|
E && E <= 325 && A(3);
|
|
24822
24830
|
}, [E]);
|
|
24823
24831
|
const { cardStyle: R, linkTextStyle: B } = h, M = f ? R : { border: "none", boxShadow: "none", ...R }, D = /* @__PURE__ */ t(
|
|
24824
|
-
|
|
24832
|
+
Ee,
|
|
24825
24833
|
{
|
|
24826
24834
|
className: "mx-micro-card-description",
|
|
24827
24835
|
color: m.textColor ? "undefined" : "text.primary",
|
|
@@ -24869,7 +24877,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24869
24877
|
},
|
|
24870
24878
|
tabIndex: c ? 0 : -1,
|
|
24871
24879
|
children: /* @__PURE__ */ t(
|
|
24872
|
-
|
|
24880
|
+
Ot,
|
|
24873
24881
|
{
|
|
24874
24882
|
"aria-roledescription": "slide",
|
|
24875
24883
|
className: "mx-micro-card",
|
|
@@ -24904,7 +24912,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24904
24912
|
titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
|
|
24905
24913
|
}
|
|
24906
24914
|
),
|
|
24907
|
-
/* @__PURE__ */ t(
|
|
24915
|
+
/* @__PURE__ */ t(Lt, { sx: { p: 0 }, children: !d && D }),
|
|
24908
24916
|
!!n && /* @__PURE__ */ t(Ld, { sx: { padding: 0 }, children: /* @__PURE__ */ t(
|
|
24909
24917
|
L,
|
|
24910
24918
|
{
|
|
@@ -26031,15 +26039,15 @@ const Di = g.createContext(null), of = ({
|
|
|
26031
26039
|
ref: m,
|
|
26032
26040
|
children: [
|
|
26033
26041
|
e.map((J, ge) => {
|
|
26034
|
-
const De = ge + 1, Re = e.length + 1,
|
|
26042
|
+
const De = ge + 1, Re = e.length + 1, Te = T(
|
|
26035
26043
|
w.card_position_in_carousel_aria,
|
|
26036
26044
|
De.toString(),
|
|
26037
26045
|
Re.toString()
|
|
26038
|
-
), Oe = J.micro_title && J.micro_title.length > 0,
|
|
26046
|
+
), Oe = J.micro_title && J.micro_title.length > 0, xt = J.micro_description && J.micro_description.length > 0, ee = Oe ? J.micro_title : J.title, ne = xt ? J.micro_description : J.description;
|
|
26039
26047
|
return /* @__PURE__ */ t(
|
|
26040
26048
|
pf,
|
|
26041
26049
|
{
|
|
26042
|
-
ariaLabel: `${
|
|
26050
|
+
ariaLabel: `${Te}: ${ee}, ${ne}`,
|
|
26043
26051
|
beat: J,
|
|
26044
26052
|
index: ge,
|
|
26045
26053
|
isActiveCard: ge === Q,
|
|
@@ -26244,7 +26252,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26244
26252
|
widthOverrides: u
|
|
26245
26253
|
}
|
|
26246
26254
|
);
|
|
26247
|
-
},
|
|
26255
|
+
}, V4 = I(zc), Yc = ({
|
|
26248
26256
|
ariaLabel: e,
|
|
26249
26257
|
carouselSize: n,
|
|
26250
26258
|
heightOverrides: i,
|
|
@@ -26286,7 +26294,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26286
26294
|
widthOverrides: d
|
|
26287
26295
|
}
|
|
26288
26296
|
);
|
|
26289
|
-
},
|
|
26297
|
+
}, K4 = I(Yc), If = () => /* @__PURE__ */ t(
|
|
26290
26298
|
L,
|
|
26291
26299
|
{
|
|
26292
26300
|
sx: {
|
|
@@ -26379,7 +26387,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26379
26387
|
] }) })
|
|
26380
26388
|
] })
|
|
26381
26389
|
);
|
|
26382
|
-
},
|
|
26390
|
+
}, z4 = I(xf), vf = ({
|
|
26383
26391
|
isActiveCard: e,
|
|
26384
26392
|
ariaLabel: n,
|
|
26385
26393
|
clientColorScheme: i,
|
|
@@ -26684,7 +26692,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26684
26692
|
children: /* @__PURE__ */ t(Of, {})
|
|
26685
26693
|
}
|
|
26686
26694
|
) : /* @__PURE__ */ t(_e, {});
|
|
26687
|
-
},
|
|
26695
|
+
}, Y4 = I(Lf), Mf = ({
|
|
26688
26696
|
data: e,
|
|
26689
26697
|
onSelected: n,
|
|
26690
26698
|
selectedId: i = "",
|
|
@@ -26935,7 +26943,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26935
26943
|
)
|
|
26936
26944
|
] });
|
|
26937
26945
|
}, Pf = I(Hf), Ff = ({ onBackClick: e, sx: n = {} }) => {
|
|
26938
|
-
const { visibleAccounts: i } =
|
|
26946
|
+
const { visibleAccounts: i } = Se(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = de(), { onEvent: d } = j(), [u, _] = g.useState(!1);
|
|
26939
26947
|
g.useEffect(() => {
|
|
26940
26948
|
c(i);
|
|
26941
26949
|
}, [i]), g.useEffect(() => {
|
|
@@ -26956,7 +26964,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26956
26964
|
children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(Pf, {}) })
|
|
26957
26965
|
}
|
|
26958
26966
|
);
|
|
26959
|
-
},
|
|
26967
|
+
}, j4 = I(Ff), Wf = (e) => In[e] ?? In.default, $f = (e) => ra[e];
|
|
26960
26968
|
function Uf(e, n) {
|
|
26961
26969
|
const i = [], a = new Date(e);
|
|
26962
26970
|
for (; a <= n; ) {
|
|
@@ -27132,7 +27140,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27132
27140
|
}, eb = I(Jf), tb = {
|
|
27133
27141
|
view_transactions: "View Transactions"
|
|
27134
27142
|
}, nb = ({ onBackClick: e, sx: n }) => {
|
|
27135
|
-
const i = at(), { onEvent: a } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } =
|
|
27143
|
+
const i = at(), { onEvent: a } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = Se(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: u, getCategoryName: _ } = $e(), { sortedTransactions: h } = Ne(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = de(), { trends: y } = x(), S = i.palette.mode === "dark", [A, w] = g.useState(!1), [v, R] = g.useState(!1), [B, M] = g.useState("Chart"), [D, k] = g.useState(""), [O, U] = g.useState({
|
|
27136
27144
|
start: zo(Ye(Yt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
27137
27145
|
end: Ye(/* @__PURE__ */ new Date())
|
|
27138
27146
|
});
|
|
@@ -27180,11 +27188,11 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27180
27188
|
a(W.TRENDS_CLICK_FILTER);
|
|
27181
27189
|
}, Re = (ne) => {
|
|
27182
27190
|
k(ne);
|
|
27183
|
-
},
|
|
27191
|
+
}, Te = (ne) => {
|
|
27184
27192
|
k(ne), a(W.TRENDS_CLICK_LEGEND, { category: _(ne) });
|
|
27185
27193
|
}, Oe = (ne) => {
|
|
27186
27194
|
a(W.TRENDS_HOVER_LEGEND, { category: _(ne) });
|
|
27187
|
-
},
|
|
27195
|
+
}, xt = (ne) => {
|
|
27188
27196
|
a(W.TRENDS_HOVER_AREA, { category: ne });
|
|
27189
27197
|
}, ee = (ne) => {
|
|
27190
27198
|
a(W.TRENDS_HOVER_POINT, { category: ne });
|
|
@@ -27286,8 +27294,8 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27286
27294
|
B === "Chart" && /* @__PURE__ */ t(
|
|
27287
27295
|
H_,
|
|
27288
27296
|
{
|
|
27289
|
-
onClickLegend:
|
|
27290
|
-
onHoverArea:
|
|
27297
|
+
onClickLegend: Te,
|
|
27298
|
+
onHoverArea: xt,
|
|
27291
27299
|
onHoverLegend: Oe,
|
|
27292
27300
|
onHoverPoint: ee,
|
|
27293
27301
|
stackedDatasets: Q.stackedDatasets,
|
|
@@ -27319,7 +27327,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27319
27327
|
]
|
|
27320
27328
|
}
|
|
27321
27329
|
);
|
|
27322
|
-
},
|
|
27330
|
+
}, X4 = I(nb), ib = () => {
|
|
27323
27331
|
const e = at(), { monthlyCategoryTotals: n } = $e(), { trends: i } = x(), a = am(n);
|
|
27324
27332
|
return /* @__PURE__ */ t(
|
|
27325
27333
|
ro,
|
|
@@ -27350,7 +27358,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27350
27358
|
children: a ? /* @__PURE__ */ t(ab, {}) : /* @__PURE__ */ t(_e, {})
|
|
27351
27359
|
}
|
|
27352
27360
|
) : /* @__PURE__ */ t(_e, {});
|
|
27353
|
-
},
|
|
27361
|
+
}, Z4 = I(ob);
|
|
27354
27362
|
export {
|
|
27355
27363
|
W as ANALYTICS_EVENTS,
|
|
27356
27364
|
Kr as AccountApi,
|
|
@@ -27365,30 +27373,30 @@ export {
|
|
|
27365
27373
|
Pd as AccountSubType,
|
|
27366
27374
|
se as AccountType,
|
|
27367
27375
|
Qa as AccountTypeName,
|
|
27368
|
-
|
|
27369
|
-
|
|
27376
|
+
B4 as AccountsMiniWidget,
|
|
27377
|
+
G4 as AccountsWidget,
|
|
27370
27378
|
Qh as AddAccountModal,
|
|
27371
27379
|
ac as AddRecurringTransactionDetails,
|
|
27372
27380
|
o_ as AnalyticsApi,
|
|
27373
27381
|
G as ApiEndpoints,
|
|
27374
27382
|
af as AppStore,
|
|
27375
27383
|
Zo as BannerApi,
|
|
27376
|
-
|
|
27384
|
+
d4 as BarChart,
|
|
27377
27385
|
jn as BeatApi,
|
|
27378
27386
|
pf as BeatCard,
|
|
27379
27387
|
Hi as BottomActions,
|
|
27380
|
-
|
|
27381
|
-
|
|
27388
|
+
F4 as BubbleBudgetsMiniWidget,
|
|
27389
|
+
W4 as BubbleBudgetsWidget,
|
|
27382
27390
|
Fr as BudgetNotificationProfiles,
|
|
27383
27391
|
qn as BudgetNotificationTypes,
|
|
27384
27392
|
I_ as Calendar,
|
|
27385
27393
|
Ps as CalendarSelectionTypes,
|
|
27386
27394
|
Tf as CarouselHeader,
|
|
27387
|
-
|
|
27388
|
-
|
|
27395
|
+
E4 as CashflowApi,
|
|
27396
|
+
h4 as CashflowMiniWidget,
|
|
27389
27397
|
Ug as CashflowOnboarding,
|
|
27390
27398
|
zg as CashflowStore,
|
|
27391
|
-
|
|
27399
|
+
y4 as CashflowWidget,
|
|
27392
27400
|
qo as CategoryApi,
|
|
27393
27401
|
In as CategoryColors,
|
|
27394
27402
|
ra as CategoryGuidToName,
|
|
@@ -27401,7 +27409,7 @@ export {
|
|
|
27401
27409
|
df as ChartFilledIcon,
|
|
27402
27410
|
Us as ConnectCard,
|
|
27403
27411
|
$n as ConnectDrawer,
|
|
27404
|
-
|
|
27412
|
+
H4 as ConnectMiniWidget,
|
|
27405
27413
|
Ln as ConnectionStatus,
|
|
27406
27414
|
_t as ConnectionStatusEnums,
|
|
27407
27415
|
zi as CurrencyCodes,
|
|
@@ -27410,14 +27418,14 @@ export {
|
|
|
27410
27418
|
re as DATE_FORMATS_INTL,
|
|
27411
27419
|
ws as DEFAULT_DONUT_SIZE,
|
|
27412
27420
|
Ns as DEFAULT_STROKE_WIDTH,
|
|
27413
|
-
$
|
|
27421
|
+
$4 as Dashboard,
|
|
27414
27422
|
Pi as DashboardLocation,
|
|
27415
27423
|
ka as DataRow,
|
|
27416
27424
|
ir as DateRangeSelector,
|
|
27417
27425
|
gc as DebtsChart,
|
|
27418
27426
|
Ym as DebtsStore,
|
|
27419
27427
|
Bm as DebtsTable,
|
|
27420
|
-
|
|
27428
|
+
T4 as DebtsWidget,
|
|
27421
27429
|
D1 as DeviceTab,
|
|
27422
27430
|
Me as Dialog,
|
|
27423
27431
|
Fs as Donut,
|
|
@@ -27427,86 +27435,86 @@ export {
|
|
|
27427
27435
|
Is as ErrorStatuses,
|
|
27428
27436
|
Du as ExpenseStatus,
|
|
27429
27437
|
ot as Fetch,
|
|
27430
|
-
|
|
27438
|
+
wt as FieldType,
|
|
27431
27439
|
me as Frequency,
|
|
27432
27440
|
_i as GlobalCopyApi,
|
|
27433
27441
|
Z_ as GlobalCopyStore,
|
|
27434
27442
|
Pn as GlobalDataContext,
|
|
27435
|
-
|
|
27436
|
-
|
|
27443
|
+
s4 as GlobalDataProvider,
|
|
27444
|
+
k4 as GlobalStore,
|
|
27437
27445
|
wr as GoalApi,
|
|
27438
27446
|
up as GoalStore,
|
|
27439
27447
|
Pa as GoalType,
|
|
27440
|
-
|
|
27441
|
-
|
|
27448
|
+
I4 as GoalsMicroWidget,
|
|
27449
|
+
A4 as GoalsWidget,
|
|
27442
27450
|
Lc as Help,
|
|
27443
|
-
|
|
27451
|
+
D4 as HelpWidget,
|
|
27444
27452
|
Ja as INCOME_ACCOUNT_TYPES,
|
|
27445
27453
|
vn as IconBacking,
|
|
27446
27454
|
lo as InformationTooltip,
|
|
27447
27455
|
Ve as InsightNotificationTypes,
|
|
27448
|
-
|
|
27456
|
+
z4 as InsightsMicroWidget,
|
|
27449
27457
|
of as InsightsMicroWidgetDataProvider,
|
|
27450
27458
|
Wr as InsightsNotificationProfiles,
|
|
27451
|
-
|
|
27459
|
+
U4 as InvestmentsWidget,
|
|
27452
27460
|
zd as IterationItemTypes,
|
|
27453
|
-
|
|
27461
|
+
e4 as LOADING_STATUS,
|
|
27454
27462
|
ro as LineChart,
|
|
27455
27463
|
Jt as ListItemAction,
|
|
27456
27464
|
X_ as ListItemWrapper,
|
|
27457
27465
|
_e as Loader,
|
|
27458
|
-
|
|
27466
|
+
o4 as LocalizedCopyApi,
|
|
27459
27467
|
rg as ManageExpenses,
|
|
27460
27468
|
Co as ManageIncome,
|
|
27461
27469
|
xn as MemberConnectionStatus,
|
|
27462
|
-
|
|
27470
|
+
x4 as MerchantLookup,
|
|
27463
27471
|
Gp as MerchantStore,
|
|
27464
|
-
|
|
27472
|
+
Nt as MetaType,
|
|
27465
27473
|
As as MfaStatuses,
|
|
27466
27474
|
yf as MicroBeatCarousel,
|
|
27467
27475
|
Ca as MicroInsightCard,
|
|
27468
27476
|
co as MicroWidgetContainer,
|
|
27469
27477
|
Dn as MiniWidgetContainer,
|
|
27470
27478
|
hf as MonthlySpendComparisonIcon,
|
|
27471
|
-
|
|
27479
|
+
_4 as MultiSegmentDonut,
|
|
27472
27480
|
Hp as NetWorthChart,
|
|
27473
27481
|
$p as NetWorthList,
|
|
27474
|
-
|
|
27482
|
+
v4 as NetWorthMicroWidget,
|
|
27475
27483
|
Jp as NetWorthStore,
|
|
27476
27484
|
Kp as NetWorthSummary,
|
|
27477
|
-
|
|
27478
|
-
|
|
27485
|
+
w4 as NetWorthWidget,
|
|
27486
|
+
V4 as NoRelevantInsightsCard,
|
|
27479
27487
|
xs as NonConnectedStatuses,
|
|
27480
27488
|
Qo as NotificationApi,
|
|
27481
|
-
|
|
27489
|
+
M4 as NotificationDrawer,
|
|
27482
27490
|
C1 as NotificationList,
|
|
27483
27491
|
qi as NotificationSettings,
|
|
27484
|
-
|
|
27492
|
+
O4 as NotificationSettingsWidget,
|
|
27485
27493
|
l1 as NotificationStore,
|
|
27486
|
-
|
|
27494
|
+
vt as NotificationTypes,
|
|
27487
27495
|
Hd as ORDINAL_DATE_FORMAT,
|
|
27488
|
-
|
|
27496
|
+
ZE as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
27489
27497
|
eo as PAYMENT_ACCOUNT_TYPES,
|
|
27490
27498
|
Yo as PaymentCategories,
|
|
27491
27499
|
Kd as PlanTypes,
|
|
27492
27500
|
Fd as ProcessingStatuses,
|
|
27493
27501
|
I1 as ProfileTab,
|
|
27494
27502
|
Ts as PropertyType,
|
|
27495
|
-
|
|
27496
|
-
|
|
27503
|
+
QE as PropertyTypeName,
|
|
27504
|
+
JE as RECURRENCE_COPY,
|
|
27497
27505
|
Je as RecurrenceStatus,
|
|
27498
27506
|
zt as RecurrenceType,
|
|
27499
27507
|
Vd as RecurrenceTypes,
|
|
27500
27508
|
sc as RecurringSettings,
|
|
27501
|
-
|
|
27502
|
-
|
|
27509
|
+
b4 as RecurringTransactionsMicroWidget,
|
|
27510
|
+
f4 as RecurringTransactionsMiniWidget,
|
|
27503
27511
|
Cg as RecurringTransactionsStore,
|
|
27504
|
-
|
|
27512
|
+
C4 as RecurringTransactionsWidget,
|
|
27505
27513
|
an as RepeatingType,
|
|
27506
|
-
|
|
27514
|
+
u4 as ResponsiveButton,
|
|
27507
27515
|
to as SPENDING_ACCOUNT_TYPES,
|
|
27508
27516
|
Ru as ScheduledPaymentTypes,
|
|
27509
|
-
|
|
27517
|
+
r4 as ScheduledPaymentsApi,
|
|
27510
27518
|
Ou as ScreenSize,
|
|
27511
27519
|
da as SearchBox,
|
|
27512
27520
|
Mi as Select,
|
|
@@ -27515,16 +27523,16 @@ export {
|
|
|
27515
27523
|
Br as SettingsApi,
|
|
27516
27524
|
y1 as SettingsStore,
|
|
27517
27525
|
Kn as SettingsTabs,
|
|
27518
|
-
|
|
27526
|
+
R4 as SettingsWidget,
|
|
27519
27527
|
mC as SettingsWidgetContents,
|
|
27520
27528
|
so as SingleSegmentDonut,
|
|
27521
27529
|
Yd as Sizes,
|
|
27522
|
-
|
|
27523
|
-
|
|
27530
|
+
Y4 as SpendingMiniWidget,
|
|
27531
|
+
j4 as SpendingWidget,
|
|
27524
27532
|
H_ as StackedLineChart,
|
|
27525
27533
|
Xn as StatusBar,
|
|
27526
|
-
|
|
27527
|
-
|
|
27534
|
+
qE as StatusName,
|
|
27535
|
+
P4 as SurveyMiniWidget,
|
|
27528
27536
|
oi as TOUCH_TARGET,
|
|
27529
27537
|
Y as TRANSACTION_EVENTS,
|
|
27530
27538
|
Zn as TabContentContainer,
|
|
@@ -27537,14 +27545,14 @@ export {
|
|
|
27537
27545
|
Rn as TransactionList,
|
|
27538
27546
|
go as TransactionRow,
|
|
27539
27547
|
Dc as TransactionRulesTab,
|
|
27540
|
-
|
|
27548
|
+
L4 as TransactionRulesWidget,
|
|
27541
27549
|
ho as TransactionStatus,
|
|
27542
27550
|
Mu as TransactionStore,
|
|
27543
27551
|
nh as TransactionTable,
|
|
27544
27552
|
Kt as TransactionType,
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27553
|
+
p4 as TransactionWidget,
|
|
27554
|
+
X4 as TrendsFullWidget,
|
|
27555
|
+
Z4 as TrendsMiniWidget,
|
|
27548
27556
|
ya as UserApi,
|
|
27549
27557
|
bC as UserStore,
|
|
27550
27558
|
Nu as UserVerification,
|
|
@@ -27553,11 +27561,11 @@ export {
|
|
|
27553
27561
|
bt as WidgetContainer,
|
|
27554
27562
|
Os as WidgetContainerContext,
|
|
27555
27563
|
Ls as WidgetContainerProvider,
|
|
27556
|
-
|
|
27564
|
+
K4 as ZeroStateCard,
|
|
27557
27565
|
$c as ZeroStateIcon,
|
|
27558
27566
|
Bd as analyticsSession,
|
|
27559
27567
|
T as buildDynamicCopy,
|
|
27560
|
-
|
|
27568
|
+
i4 as buildPluralCopy,
|
|
27561
27569
|
zs as exportTransactionsToCSV,
|
|
27562
27570
|
P as formatCurrency,
|
|
27563
27571
|
ce as formatDate,
|
|
@@ -27567,16 +27575,16 @@ export {
|
|
|
27567
27575
|
lc as getAccountBalanceDetails,
|
|
27568
27576
|
Ag as getAccountDetailFields,
|
|
27569
27577
|
Xo as getCategory,
|
|
27570
|
-
|
|
27571
|
-
|
|
27578
|
+
t4 as getCategoryTotalsByParent,
|
|
27579
|
+
a4 as getClientTheme,
|
|
27572
27580
|
n_ as getCurrencyCodes,
|
|
27573
27581
|
jd as getDetailedCategory,
|
|
27574
27582
|
Xd as getDetailedSubCategory,
|
|
27575
27583
|
Nn as getLocale,
|
|
27576
|
-
|
|
27577
|
-
|
|
27584
|
+
N4 as getNotificationDetailRoute,
|
|
27585
|
+
n4 as isIncome,
|
|
27578
27586
|
Ma as isValidNumber,
|
|
27579
|
-
|
|
27587
|
+
Se as useAccountStore,
|
|
27580
27588
|
Ht as useAccountUiStore,
|
|
27581
27589
|
Fn as useAppConfig,
|
|
27582
27590
|
lt as useBudgetsStore,
|
|
@@ -27597,14 +27605,14 @@ export {
|
|
|
27597
27605
|
s_ as useMerchantStore,
|
|
27598
27606
|
ks as useNetWorthStore,
|
|
27599
27607
|
Gs as useNotificationStore,
|
|
27600
|
-
|
|
27601
|
-
|
|
27608
|
+
c4 as usePageView,
|
|
27609
|
+
l4 as usePrevious,
|
|
27602
27610
|
ze as useRecurringTransactionsStore,
|
|
27603
27611
|
Ce as useScreenSize,
|
|
27604
27612
|
pt as useSettingsStore,
|
|
27605
27613
|
Ne as useTransactionStore,
|
|
27606
|
-
|
|
27607
|
-
|
|
27614
|
+
It as useTransactionsUiStore,
|
|
27615
|
+
Mt as useUserStore,
|
|
27608
27616
|
Wn as useWidgetContainerProvider
|
|
27609
27617
|
};
|
|
27610
27618
|
//# sourceMappingURL=index.es.js.map
|