@mx-cartographer/experiences 6.2.7-alpha.al4 → 6.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +222 -222
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -17,10 +17,10 @@ import { addYears as ni } from "date-fns/addYears";
|
|
17
17
|
import { getDay as ii } from "date-fns/getDay";
|
18
18
|
import { isBefore as we } from "date-fns/isBefore";
|
19
19
|
import { nextDay as Ti } from "date-fns/nextDay";
|
20
|
-
import { setDate as
|
20
|
+
import { setDate as ji } from "date-fns/setDate";
|
21
21
|
import { startOfToday as le } from "date-fns/startOfToday";
|
22
22
|
import { fromUnixTime as Me } from "date-fns/fromUnixTime";
|
23
|
-
import { Honeybadger as
|
23
|
+
import { Honeybadger as Fi } from "@honeybadger-io/react";
|
24
24
|
import Ja from "numeral";
|
25
25
|
import ee from "@mui/material/Button";
|
26
26
|
import Wn from "@mui/material/Tooltip";
|
@@ -31,8 +31,8 @@ import de from "@mui/material/ListItemButton";
|
|
31
31
|
import re from "@mui/material/ListItemText";
|
32
32
|
import xs from "@mui/material/Popover";
|
33
33
|
import b from "@mui/material/Stack";
|
34
|
-
import
|
35
|
-
import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as
|
34
|
+
import Xi from "@mui/material/Checkbox";
|
35
|
+
import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as ca, CardContent as Nl, Button as Dl, List as Rl, Divider as Ol } from "@mui/material";
|
36
36
|
import pe from "@mui/material/styles/useTheme";
|
37
37
|
import Mn from "@mui/material/useMediaQuery";
|
38
38
|
import { css as Qt, keyframes as Ll } from "@mxenabled/cssinjs";
|
@@ -66,26 +66,26 @@ import ed from "@mui/material/ButtonGroup";
|
|
66
66
|
import Ve from "@mui/material/Tab";
|
67
67
|
import Lt from "@mui/material/Tabs";
|
68
68
|
import Ni from "@mui/material/ToggleButton";
|
69
|
-
import
|
69
|
+
import la from "@mui/material/ToggleButtonGroup";
|
70
70
|
import td from "@mui/material/Dialog";
|
71
71
|
import ws from "@mui/material/DialogContent";
|
72
72
|
import nd from "@mui/icons-material/ArrowBackOutlined";
|
73
73
|
import wn from "@mui/material/CardHeader";
|
74
|
-
import { Icon as yt, AccountBalance as id, ChevronRight as At, Payments as ad, NoteStack as rd, Person as od, CheckCircle as
|
74
|
+
import { Icon as yt, AccountBalance as id, ChevronRight as At, Payments as ad, NoteStack as rd, Person as od, CheckCircle as da, ExpandLess as sd, ExpandMore as cd, AddBox as Ns, Star as ld, Settings as dd, Delete as ud, Schedule as _d, MonetizationOn as hd, Cancel as Ds, Add as gd } from "@mxenabled/mx-icons";
|
75
75
|
import { ConnectWidget as md, ConnectionsWidget as pd } from "@mxenabled/web-widget-sdk";
|
76
76
|
import _r from "@mui/material/CircularProgress";
|
77
77
|
import { v4 as Cd } from "uuid";
|
78
|
-
import
|
78
|
+
import qi from "@mui/material/InputAdornment";
|
79
79
|
import fd from "@mui/material/Radio";
|
80
80
|
import Jt from "@mui/material/Avatar";
|
81
81
|
import Ge from "@mui/material/ListItemAvatar";
|
82
82
|
import Ct from "@mui/material/ListItemIcon";
|
83
|
-
import
|
83
|
+
import ua from "@mui/material/Switch";
|
84
84
|
import { makeAutoObservable as Be, runInAction as Y, reaction as bd, observable as yd } from "mobx";
|
85
85
|
import Ed, { SurveyQuestionType as to } from "posthog-js";
|
86
86
|
import { differenceInDays as Sd } from "date-fns/differenceInDays";
|
87
|
-
import
|
88
|
-
import
|
87
|
+
import _a from "@mui/icons-material/ChevronRight";
|
88
|
+
import ha from "@mui/icons-material/ExpandMore";
|
89
89
|
import { DataGridPro as jn } from "@mui/x-data-grid-pro";
|
90
90
|
import { intervalToDuration as Td, formatDuration as Ad, getDate as no, fromUnixTime as Ai, startOfMonth as io, format as On, differenceInMonths as Id, isSameDay as xd, subDays as vd, startOfToday as wd, endOfToday as Nd } from "date-fns";
|
91
91
|
import xn from "@mui/material/Alert";
|
@@ -97,7 +97,7 @@ import { isAfter as Zt } from "date-fns/isAfter";
|
|
97
97
|
import { subWeeks as ao } from "date-fns/subWeeks";
|
98
98
|
import { formatISO as ci } from "date-fns/formatISO";
|
99
99
|
import { AdapterDateFns as gn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
100
|
-
import { DatePicker as
|
100
|
+
import { DatePicker as ga } from "@mui/x-date-pickers";
|
101
101
|
import { LocalizationProvider as Nn } from "@mui/x-date-pickers/LocalizationProvider";
|
102
102
|
import it from "@mui/material/TextField";
|
103
103
|
import { isValid as hr } from "date-fns/isValid";
|
@@ -109,29 +109,29 @@ import Oi from "@mui/material/Accordion";
|
|
109
109
|
import Li from "@mui/material/AccordionDetails";
|
110
110
|
import Mi from "@mui/material/AccordionSummary";
|
111
111
|
import Dd from "@mui/material/Breadcrumbs";
|
112
|
-
import
|
112
|
+
import ma from "@mui/material/MenuItem";
|
113
113
|
import Rd from "@mui/material/RadioGroup";
|
114
114
|
import Ii from "@mui/icons-material/DeleteOutlined";
|
115
|
-
import
|
115
|
+
import Zi from "@mui/icons-material/Cancel";
|
116
116
|
import Od from "@mui/icons-material/HighlightOff";
|
117
117
|
import Ld from "@mui/icons-material/Search";
|
118
118
|
import Md from "@mui/icons-material/Edit";
|
119
119
|
import kd from "@mui/material/FormGroup";
|
120
120
|
import Gd from "@mui/icons-material/FlagOutlined";
|
121
121
|
import Bd from "@mui/icons-material/ReceiptOutlined";
|
122
|
-
import { getWeeksInMonth as
|
122
|
+
import { getWeeksInMonth as Qi } from "date-fns/getWeeksInMonth";
|
123
123
|
import gr from "@mui/material/Badge";
|
124
124
|
import { PickersDay as Ms } from "@mui/x-date-pickers/PickersDay";
|
125
125
|
import Pd from "@mui/icons-material/AccessTimeFilled";
|
126
126
|
import Hd from "@mui/icons-material/MonetizationOn";
|
127
|
-
import
|
127
|
+
import pa from "@mui/icons-material/CheckCircle";
|
128
128
|
import { getDate as ei } from "date-fns/getDate";
|
129
129
|
import zt from "@mui/material/Unstable_Grid2";
|
130
|
-
import
|
130
|
+
import Ca from "@mui/material/Collapse";
|
131
131
|
import ks from "@mui/material/CardActionArea";
|
132
132
|
import $d from "@mui/icons-material/DragHandle";
|
133
133
|
import nr from "@mui/material/AlertTitle";
|
134
|
-
import
|
134
|
+
import fa from "@mui/icons-material/Error";
|
135
135
|
import Fd from "@mui/material/Chip";
|
136
136
|
import Wd from "@mui/icons-material/EditOutlined";
|
137
137
|
import { isToday as mr } from "date-fns/isToday";
|
@@ -621,7 +621,7 @@ const x2 = {
|
|
621
621
|
N.CREDIT_CARD_PAYMENT,
|
622
622
|
N.MORTGAGE_PAYMENT,
|
623
623
|
N.AUTO_PAYMENT
|
624
|
-
],
|
624
|
+
], ba = {
|
625
625
|
// Top-level categories
|
626
626
|
[N.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
627
627
|
[N.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
@@ -789,7 +789,7 @@ const x2 = {
|
|
789
789
|
[N.UNCATEGORIZED]: "category",
|
790
790
|
UNKNOWN: "help"
|
791
791
|
}, co = 9999999999e-2;
|
792
|
-
var
|
792
|
+
var Ji = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(Ji || {}), Q = /* @__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))(Q || {});
|
793
793
|
const w2 = [
|
794
794
|
{ id: 0, copy: "frequency_unknown" },
|
795
795
|
{ id: 1, copy: "frequency_every_week" },
|
@@ -835,22 +835,22 @@ const hn = 44, lo = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
835
835
|
}, R2 = (e, n) => {
|
836
836
|
const i = e.find((a) => a.guid === n);
|
837
837
|
return i ? i.guid === N.INCOME || i.parent_guid === N.INCOME : !1;
|
838
|
-
},
|
838
|
+
}, ya = (e) => {
|
839
839
|
const n = ii(e);
|
840
840
|
let i = Ti(e, n);
|
841
841
|
for (; we(i, le()); )
|
842
842
|
i = Qn(i, 1);
|
843
843
|
return i;
|
844
844
|
}, Ks = (e) => {
|
845
|
-
const n =
|
845
|
+
const n = ya(e);
|
846
846
|
return Qn(n, 1);
|
847
|
-
},
|
848
|
-
let n =
|
847
|
+
}, ea = (e) => {
|
848
|
+
let n = ji(le(), e.getDate());
|
849
849
|
for (; we(n, le()); )
|
850
850
|
n = gt(n, 1);
|
851
851
|
return n;
|
852
852
|
}, zs = (e) => {
|
853
|
-
const n =
|
853
|
+
const n = ya(e);
|
854
854
|
return gt(n, 1);
|
855
855
|
}, yr = (e) => {
|
856
856
|
let n = Sn(e, 1);
|
@@ -907,7 +907,7 @@ class rt {
|
|
907
907
|
return a.text();
|
908
908
|
throw a;
|
909
909
|
}).then((a) => a.length ? JSON.parse(a) : {}).then((a) => a).catch((a) => {
|
910
|
-
throw
|
910
|
+
throw Fi.notify(a), a;
|
911
911
|
});
|
912
912
|
};
|
913
913
|
post = async (n, i) => {
|
@@ -921,7 +921,7 @@ class rt {
|
|
921
921
|
throw o;
|
922
922
|
return o.text();
|
923
923
|
}).then((o) => o.length ? JSON.parse(o) : {}).then((o) => o).catch((o) => {
|
924
|
-
throw
|
924
|
+
throw Fi.notify(o), o;
|
925
925
|
});
|
926
926
|
};
|
927
927
|
put = async (n, i) => {
|
@@ -933,7 +933,7 @@ class rt {
|
|
933
933
|
return fetch(`${this.endpoint}${n}`, r).then((o) => o.ok ? o.text() : o.text().then((s) => {
|
934
934
|
throw new Error(s);
|
935
935
|
})).then((o) => o.length ? JSON.parse(o) : {}).then((o) => o).catch((o) => {
|
936
|
-
throw
|
936
|
+
throw Fi.notify(o), o;
|
937
937
|
});
|
938
938
|
};
|
939
939
|
delete = async (n) => {
|
@@ -944,7 +944,7 @@ class rt {
|
|
944
944
|
return fetch(`${this.endpoint}${n}`, i).then((a) => a.ok ? a.text() : a.text().then((r) => {
|
945
945
|
throw new Error(r);
|
946
946
|
})).then((a) => a.length ? JSON.parse(a) : {}).then((a) => a).catch((a) => {
|
947
|
-
throw
|
947
|
+
throw Fi.notify(a), a;
|
948
948
|
});
|
949
949
|
};
|
950
950
|
}
|
@@ -958,15 +958,15 @@ const B = (e, n, i) => {
|
|
958
958
|
}, hu = () => {
|
959
959
|
switch (Hn()) {
|
960
960
|
case "fr-ca":
|
961
|
-
return
|
961
|
+
return Ji.CAD;
|
962
962
|
default:
|
963
|
-
return
|
963
|
+
return Ji.USD;
|
964
964
|
}
|
965
965
|
}, ir = (e) => e != null && e !== "" && isFinite(e), gu = {
|
966
966
|
style: "percent",
|
967
967
|
minimumFractionDigits: 2,
|
968
968
|
maximumFractionDigits: 2
|
969
|
-
},
|
969
|
+
}, Ea = (e, n = gu) => ir(e) ? new Intl.NumberFormat(Hn(), n).format(Number(e)) : e, mu = (e) => new Intl.PluralRules(Hn(), e), qs = (e, n = { type: "ordinal" }, i = {
|
970
970
|
one: "st",
|
971
971
|
two: "nd",
|
972
972
|
few: "rd",
|
@@ -1271,7 +1271,7 @@ const Wa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1271
1271
|
er,
|
1272
1272
|
{
|
1273
1273
|
control: /* @__PURE__ */ t(
|
1274
|
-
|
1274
|
+
Xi,
|
1275
1275
|
{
|
1276
1276
|
checked: E,
|
1277
1277
|
"data-ui-test": `checked-${E}`,
|
@@ -1342,7 +1342,7 @@ const Wa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1342
1342
|
er,
|
1343
1343
|
{
|
1344
1344
|
control: /* @__PURE__ */ t(
|
1345
|
-
|
1345
|
+
Xi,
|
1346
1346
|
{
|
1347
1347
|
checked: x,
|
1348
1348
|
"data-ui-test": `checked-${x}`,
|
@@ -2253,7 +2253,7 @@ const Mu = ({
|
|
2253
2253
|
if (!n)
|
2254
2254
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2255
2255
|
return n;
|
2256
|
-
}, Re = () => Ze("useAccountStore").globalStore.accountStore,
|
2256
|
+
}, Re = () => Ze("useAccountStore").globalStore.accountStore, Gi = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, Sr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Tr = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, nc = () => Ze("useConnectStore").globalStore.connectStore, Sa = () => Ze("useDebtsStore").globalStore.debtsStore, Ta = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Ar = () => Ze("useHelpStore").globalStore.helpStore, ta = () => Ze("useHoldingStore").globalStore.holdingStore, Vu = () => Ze("useMerchantStore").globalStore.merchantStore, Ku = () => Ze("useNetWorthStore").globalStore.netWorthStore, ic = () => Ze("useNotificationStore").globalStore.notificationStore, nt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore, dn = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), P2 = () => ({ onPageView: Ze().onPageView }), zu = (e = "useWidgetContainerContext") => {
|
2257
2257
|
const n = g.useContext(ec);
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -2345,7 +2345,7 @@ const Mu = ({
|
|
2345
2345
|
xData: r
|
2346
2346
|
}) => {
|
2347
2347
|
const o = vn(), s = a.data[i], c = r[i];
|
2348
|
-
return s === void 0 || !c ? null : /* @__PURE__ */ t(
|
2348
|
+
return s === void 0 || !c ? null : /* @__PURE__ */ t(ca, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Nl, { children: /* @__PURE__ */ l(nn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2349
2349
|
/* @__PURE__ */ t(ac, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2350
2350
|
/* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "Small", children: ae(c, te.MONTH_SHORT_YEAR) }),
|
2351
2351
|
/* @__PURE__ */ t(Ye, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
@@ -2924,7 +2924,7 @@ const Mu = ({
|
|
2924
2924
|
}
|
2925
2925
|
),
|
2926
2926
|
s === "timeframebuttons" && /* @__PURE__ */ t(
|
2927
|
-
|
2927
|
+
la,
|
2928
2928
|
{
|
2929
2929
|
color: n,
|
2930
2930
|
exclusive: !0,
|
@@ -3414,7 +3414,7 @@ const Dn = ({
|
|
3414
3414
|
] })
|
3415
3415
|
}
|
3416
3416
|
);
|
3417
|
-
},
|
3417
|
+
}, na = A(n_);
|
3418
3418
|
var Bn = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Error = "error", e))(Bn || {}), xt = /* @__PURE__ */ ((e) => (e.Currency = "currency", e.Date = "date", e.Input = "input", e.Select = "select", e))(xt || {});
|
3419
3419
|
const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
3420
3420
|
loadWidgetProps: e,
|
@@ -3455,8 +3455,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3455
3455
|
},
|
3456
3456
|
title: a,
|
3457
3457
|
children: /* @__PURE__ */ l("div", { id: yo, children: [
|
3458
|
-
u && /* @__PURE__ */ t(
|
3459
|
-
d && /* @__PURE__ */ t(
|
3458
|
+
u && /* @__PURE__ */ t(na, { status: Bn.Error }),
|
3459
|
+
d && /* @__PURE__ */ t(na, { status: Bn.Loading })
|
3460
3460
|
] })
|
3461
3461
|
}
|
3462
3462
|
);
|
@@ -3479,7 +3479,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3479
3479
|
const D = g.useRef(Cd());
|
3480
3480
|
if (e)
|
3481
3481
|
switch (hu()) {
|
3482
|
-
case
|
3482
|
+
case Ji.CAD:
|
3483
3483
|
R = w;
|
3484
3484
|
break;
|
3485
3485
|
default:
|
@@ -3587,8 +3587,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3587
3587
|
An,
|
3588
3588
|
{
|
3589
3589
|
InputProps: {
|
3590
|
-
startAdornment: /* @__PURE__ */ t(
|
3591
|
-
endAdornment: /* @__PURE__ */ t(
|
3590
|
+
startAdornment: /* @__PURE__ */ t(qi, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
|
3591
|
+
endAdornment: /* @__PURE__ */ t(qi, { position: "end", sx: { p: 0 }, children: r ? s : null })
|
3592
3592
|
},
|
3593
3593
|
"aria-label": e,
|
3594
3594
|
name: "search",
|
@@ -3598,7 +3598,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3598
3598
|
value: r
|
3599
3599
|
}
|
3600
3600
|
) });
|
3601
|
-
},
|
3601
|
+
}, Bi = A(r_), So = ({
|
3602
3602
|
checked: e = !1,
|
3603
3603
|
label: n,
|
3604
3604
|
sx: i = {},
|
@@ -3701,7 +3701,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3701
3701
|
r,
|
3702
3702
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 }) })
|
3703
3703
|
] }) }) : /* @__PURE__ */ t(X, { disableGutters: !1, disablePadding: !1, children: r });
|
3704
|
-
},
|
3704
|
+
}, ia = ({
|
3705
3705
|
body: e,
|
3706
3706
|
iconName: n = "info",
|
3707
3707
|
title: i
|
@@ -3734,7 +3734,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3734
3734
|
)
|
3735
3735
|
}
|
3736
3736
|
), sc = ({ description: e, label: n, title: i }) => {
|
3737
|
-
const { config: a } =
|
3737
|
+
const { config: a } = Gi(), [r, o] = g.useState(!1);
|
3738
3738
|
if (a.show_connections_widget_in_master)
|
3739
3739
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
3740
3740
|
/* @__PURE__ */ l(Gt, { sx: { m: 24 }, children: [
|
@@ -3910,7 +3910,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3910
3910
|
return /* @__PURE__ */ t(
|
3911
3911
|
X,
|
3912
3912
|
{
|
3913
|
-
secondaryAction: /* @__PURE__ */ t(
|
3913
|
+
secondaryAction: /* @__PURE__ */ t(ua, { checked: e, onChange: a }),
|
3914
3914
|
sx: {
|
3915
3915
|
"& .MuiListItemSecondaryAction-root": {
|
3916
3916
|
right: s ? 24 : 64
|
@@ -3950,7 +3950,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3950
3950
|
X,
|
3951
3951
|
{
|
3952
3952
|
secondaryAction: /* @__PURE__ */ t(
|
3953
|
-
|
3953
|
+
ua,
|
3954
3954
|
{
|
3955
3955
|
checked: e,
|
3956
3956
|
disabled: n,
|
@@ -4385,7 +4385,7 @@ const ui = () => {
|
|
4385
4385
|
/* @__PURE__ */ t(Ye, { amount: x, variant: "H2" }),
|
4386
4386
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
4387
4387
|
/* @__PURE__ */ t(Oe, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4388
|
-
/* @__PURE__ */ t(
|
4388
|
+
/* @__PURE__ */ t(ia, { body: c.tooltip_body, title: c.tooltip_title })
|
4389
4389
|
] })
|
4390
4390
|
] }),
|
4391
4391
|
/* @__PURE__ */ t(b, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(Z, { children: [
|
@@ -4475,7 +4475,7 @@ const ui = () => {
|
|
4475
4475
|
}
|
4476
4476
|
) : /* @__PURE__ */ t(ue, {});
|
4477
4477
|
}, F2 = A(b_);
|
4478
|
-
class
|
4478
|
+
class aa {
|
4479
4479
|
fetchInstance;
|
4480
4480
|
constructor(n, i) {
|
4481
4481
|
this.fetchInstance = new rt(n, i);
|
@@ -4557,7 +4557,7 @@ class ia {
|
|
4557
4557
|
updateTag = async (n) => this.fetchInstance.put(`${k.TAGS}/${n.guid}`, n).then((i) => i.tag);
|
4558
4558
|
updateTransaction = async (n) => this.fetchInstance.put(`${k.TRANSACTIONS}/${n.guid}`, n).then((i) => i.transaction);
|
4559
4559
|
}
|
4560
|
-
var pi = /* @__PURE__ */ ((e) => (e[e.Category = 0] = "Category", e[e.Date = 1] = "Date", e[e.Memo = 2] = "Memo", e[e.Tags = 3] = "Tags", e))(pi || {}),
|
4560
|
+
var pi = /* @__PURE__ */ ((e) => (e[e.Category = 0] = "Category", e[e.Date = 1] = "Date", e[e.Memo = 2] = "Memo", e[e.Tags = 3] = "Tags", e))(pi || {}), zi = /* @__PURE__ */ ((e) => (e[e.SplitTransaction = 0] = "SplitTransaction", e[e.HideTransaction = 1] = "HideTransaction", e[e.MerchantLogo = 2] = "MerchantLogo", e))(zi || {});
|
4561
4561
|
const y_ = [
|
4562
4562
|
0,
|
4563
4563
|
1,
|
@@ -5014,7 +5014,7 @@ let O_ = class {
|
|
5014
5014
|
class L_ {
|
5015
5015
|
globalStore;
|
5016
5016
|
uiStore;
|
5017
|
-
api = new
|
5017
|
+
api = new aa("/", "");
|
5018
5018
|
beatApi = new ri("/", "");
|
5019
5019
|
isLoading = !0;
|
5020
5020
|
taggings = [];
|
@@ -5028,7 +5028,7 @@ class L_ {
|
|
5028
5028
|
filter = {};
|
5029
5029
|
onAnalyticEvent = T_;
|
5030
5030
|
constructor(n) {
|
5031
|
-
this.globalStore = n, this.uiStore = new O_(), this.api = new
|
5031
|
+
this.globalStore = n, this.uiStore = new O_(), this.api = new aa(n.endpoint, n.sessionToken), this.beatApi = new ri(n.endpoint, n.sessionToken), Be(this);
|
5032
5032
|
}
|
5033
5033
|
loadTransactionData = async () => {
|
5034
5034
|
await Promise.all([
|
@@ -5224,7 +5224,7 @@ const It = () => {
|
|
5224
5224
|
"Original Description": i.feed_description,
|
5225
5225
|
Amount: `${i.amount}`,
|
5226
5226
|
Type: i.transaction_type === St.CREDIT ? "Credit" : "Debit",
|
5227
|
-
"Parent Category":
|
5227
|
+
"Parent Category": ba[i.top_level_category_guid || ""],
|
5228
5228
|
Category: i.category,
|
5229
5229
|
Account: i.account,
|
5230
5230
|
Tags: B_(i, n),
|
@@ -5691,7 +5691,7 @@ const J_ = ({
|
|
5691
5691
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5692
5692
|
}
|
5693
5693
|
),
|
5694
|
-
s && y && /* @__PURE__ */ t(
|
5694
|
+
s && y && /* @__PURE__ */ t(pa, { fontSize: "small" }),
|
5695
5695
|
!T && /* @__PURE__ */ t(Fd, { label: d })
|
5696
5696
|
]
|
5697
5697
|
}
|
@@ -5742,7 +5742,7 @@ const J_ = ({
|
|
5742
5742
|
}, sh = A(oh), ch = ({ categories: e, parentCategory: n }) => {
|
5743
5743
|
const { expandedGuid: i, searchValue: a } = pn(), r = n.guid === i, o = !!a;
|
5744
5744
|
return /* @__PURE__ */ t(
|
5745
|
-
|
5745
|
+
Ca,
|
5746
5746
|
{
|
5747
5747
|
in: r || o,
|
5748
5748
|
sx: { backgroundColor: "background.default" },
|
@@ -5788,7 +5788,7 @@ const J_ = ({
|
|
5788
5788
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5789
5789
|
}
|
5790
5790
|
),
|
5791
|
-
/* @__PURE__ */ t(Ct, { children: s || a ? /* @__PURE__ */ t(
|
5791
|
+
/* @__PURE__ */ t(Ct, { children: s || a ? /* @__PURE__ */ t(ha, {}) : /* @__PURE__ */ t(_a, {}) })
|
5792
5792
|
]
|
5793
5793
|
},
|
5794
5794
|
e.guid
|
@@ -5846,7 +5846,7 @@ const J_ = ({
|
|
5846
5846
|
e && m(e), C(i), f(a), E(r);
|
5847
5847
|
}, [e, i, a, r]), d ? /* @__PURE__ */ l(b, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
|
5848
5848
|
/* @__PURE__ */ t(
|
5849
|
-
|
5849
|
+
Bi,
|
5850
5850
|
{
|
5851
5851
|
ariaLabel: c.search_aria,
|
5852
5852
|
cancelAriaLabel: c.cancel_search_aria,
|
@@ -6070,7 +6070,7 @@ class bh {
|
|
6070
6070
|
}
|
6071
6071
|
};
|
6072
6072
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
6073
|
-
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ??
|
6073
|
+
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ba[n];
|
6074
6074
|
}
|
6075
6075
|
const hc = ({ transaction: e }) => {
|
6076
6076
|
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Se(), { categories: a } = Ke(), { onEvent: r } = z(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = It(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
|
@@ -6333,7 +6333,7 @@ const hc = ({ transaction: e }) => {
|
|
6333
6333
|
}
|
6334
6334
|
),
|
6335
6335
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6336
|
-
|
6336
|
+
ua,
|
6337
6337
|
{
|
6338
6338
|
checked: d,
|
6339
6339
|
id: "hide-transaction",
|
@@ -6476,7 +6476,7 @@ const hc = ({ transaction: e }) => {
|
|
6476
6476
|
/* @__PURE__ */ t(
|
6477
6477
|
ee,
|
6478
6478
|
{
|
6479
|
-
endIcon: /* @__PURE__ */ t(
|
6479
|
+
endIcon: /* @__PURE__ */ t(_a, {}),
|
6480
6480
|
onClick: () => h(!0),
|
6481
6481
|
startIcon: /* @__PURE__ */ t(kt, { categoryGuid: r.top_level_category_guid }),
|
6482
6482
|
sx: { px: o.Spacing.Small, py: o.Spacing.XSmall },
|
@@ -6491,7 +6491,7 @@ const hc = ({ transaction: e }) => {
|
|
6491
6491
|
gap: o.Spacing.XSmall,
|
6492
6492
|
p: o.Spacing.Small,
|
6493
6493
|
children: [
|
6494
|
-
/* @__PURE__ */ t(
|
6494
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: o.FontSize.Body } }),
|
6495
6495
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.split_transaction_errors_select_category })
|
6496
6496
|
]
|
6497
6497
|
}
|
@@ -6532,7 +6532,7 @@ const hc = ({ transaction: e }) => {
|
|
6532
6532
|
gap: o.Spacing.XSmall,
|
6533
6533
|
py: o.Spacing.Small,
|
6534
6534
|
children: [
|
6535
|
-
/* @__PURE__ */ t(
|
6535
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: o.FontSize.Body } }),
|
6536
6536
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.split_transaction_errors_enter_an_amount })
|
6537
6537
|
]
|
6538
6538
|
}
|
@@ -6590,7 +6590,7 @@ const hc = ({ transaction: e }) => {
|
|
6590
6590
|
gap: s.Spacing.XSmall,
|
6591
6591
|
p: s.Spacing.Medium,
|
6592
6592
|
children: [
|
6593
|
-
/* @__PURE__ */ t(
|
6593
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: s.FontSize.Body } }),
|
6594
6594
|
/* @__PURE__ */ t(p, { variant: "Small", children: _ })
|
6595
6595
|
]
|
6596
6596
|
}
|
@@ -6802,8 +6802,8 @@ const hc = ({ transaction: e }) => {
|
|
6802
6802
|
An,
|
6803
6803
|
{
|
6804
6804
|
InputProps: {
|
6805
|
-
startAdornment: /* @__PURE__ */ t(
|
6806
|
-
endAdornment: /* @__PURE__ */ t(
|
6805
|
+
startAdornment: /* @__PURE__ */ t(qi, { position: "start", children: /* @__PURE__ */ t(Ld, { color: "disabled" }) }),
|
6806
|
+
endAdornment: /* @__PURE__ */ t(qi, { position: "end", sx: { padding: 0 }, children: n ? o : null })
|
6807
6807
|
},
|
6808
6808
|
"aria-label": i.search_aria,
|
6809
6809
|
name: "search",
|
@@ -6861,7 +6861,7 @@ const hc = ({ transaction: e }) => {
|
|
6861
6861
|
onClick: () => e(i.guid),
|
6862
6862
|
role: "checkbox",
|
6863
6863
|
children: [
|
6864
|
-
/* @__PURE__ */ t(Ct, { sx: { ml: 0 }, children: /* @__PURE__ */ t(
|
6864
|
+
/* @__PURE__ */ t(Ct, { sx: { ml: 0 }, children: /* @__PURE__ */ t(Xi, { checked: n.includes(i.guid), edge: "start", tabIndex: -1 }) }),
|
6865
6865
|
/* @__PURE__ */ t(re, { children: i.name })
|
6866
6866
|
]
|
6867
6867
|
}
|
@@ -7106,9 +7106,9 @@ const hc = ({ transaction: e }) => {
|
|
7106
7106
|
/* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
7107
7107
|
/* @__PURE__ */ t(Tt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(ie, { children: [
|
7108
7108
|
e.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
7109
|
-
s ===
|
7110
|
-
s ===
|
7111
|
-
s ===
|
7109
|
+
s === zi.SplitTransaction && /* @__PURE__ */ t(Oh, { transaction: i }),
|
7110
|
+
s === zi.HideTransaction && /* @__PURE__ */ t(Ih, { transaction: i }),
|
7111
|
+
s === zi.MerchantLogo && /* @__PURE__ */ t(Th, { transaction: i }),
|
7112
7112
|
/* @__PURE__ */ t(G, { variant: c < e.length - 1 ? "inset" : "fullWidth" })
|
7113
7113
|
] }, s)),
|
7114
7114
|
i.is_manual && /* @__PURE__ */ t(Eh, { transaction: i })
|
@@ -7213,13 +7213,13 @@ const hc = ({ transaction: e }) => {
|
|
7213
7213
|
An,
|
7214
7214
|
{
|
7215
7215
|
InputLabelProps: { shrink: !0 },
|
7216
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
7216
|
+
SelectProps: { defaultValue: -1, IconComponent: ha },
|
7217
7217
|
label: i.manual_transaction_select_an_account,
|
7218
7218
|
onChange: (y) => E(y.target.value),
|
7219
7219
|
placeholder: i.manual_transaction_select,
|
7220
7220
|
select: !0,
|
7221
7221
|
sx: { bgcolor: "background.paper" },
|
7222
|
-
children: u.map((y) => /* @__PURE__ */ t(
|
7222
|
+
children: u.map((y) => /* @__PURE__ */ t(ma, { value: y.value, children: y.label }, y.value))
|
7223
7223
|
}
|
7224
7224
|
)
|
7225
7225
|
] }),
|
@@ -7375,7 +7375,7 @@ const hc = ({ transaction: e }) => {
|
|
7375
7375
|
title: D.transactions_title,
|
7376
7376
|
children: [
|
7377
7377
|
/* @__PURE__ */ t(M, { mt: 16, children: /* @__PURE__ */ t(
|
7378
|
-
|
7378
|
+
Bi,
|
7379
7379
|
{
|
7380
7380
|
onChange: Ba,
|
7381
7381
|
placeholder: D.action_bar_search_placeholder,
|
@@ -7758,7 +7758,7 @@ const hc = ({ transaction: e }) => {
|
|
7758
7758
|
gridRow: 1,
|
7759
7759
|
gridColumn: 1,
|
7760
7760
|
zIndex: 2
|
7761
|
-
}, Na = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, wr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Pd, { color: "primary", sx: { fontSize: n, ...wa } }) }), Nr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Hd, { sx: { color: "categories.income", fontSize: n, ...wa } }) }), Dr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(
|
7761
|
+
}, Na = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, wr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Pd, { color: "primary", sx: { fontSize: n, ...wa } }) }), Nr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Hd, { sx: { color: "categories.income", fontSize: n, ...wa } }) }), Dr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Zi, { color: "error", sx: { fontSize: n, ...wa } }) }), Rr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(pa, { color: "success", sx: { fontSize: n, ...wa } }) }), Mo = ({ copy: e, date: n, type: i }) => {
|
7762
7762
|
let a = n && hr(n) ? S(e.monthly_ordinal, wt(n, "do")) : e.monthly;
|
7763
7763
|
switch (i) {
|
7764
7764
|
case Q.EveryQuarter:
|
@@ -7912,7 +7912,7 @@ const hc = ({ transaction: e }) => {
|
|
7912
7912
|
}
|
7913
7913
|
)
|
7914
7914
|
] });
|
7915
|
-
},
|
7915
|
+
}, ra = A(cg), yc = (e, n, i) => {
|
7916
7916
|
const a = {
|
7917
7917
|
account_guid: e.account_guid,
|
7918
7918
|
amount: e.amount,
|
@@ -7990,7 +7990,7 @@ const hc = ({ transaction: e }) => {
|
|
7990
7990
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
7991
7991
|
n && /* @__PURE__ */ t(Oe, { sx: { mx: 24 }, children: n }),
|
7992
7992
|
/* @__PURE__ */ t(
|
7993
|
-
|
7993
|
+
Bi,
|
7994
7994
|
{
|
7995
7995
|
ariaLabel: r.select_transaction_search_aria,
|
7996
7996
|
cancelAriaLabel: r.select_transaction_search_cancel_aria,
|
@@ -8023,19 +8023,19 @@ const hc = ({ transaction: e }) => {
|
|
8023
8023
|
];
|
8024
8024
|
g.useEffect(() => {
|
8025
8025
|
const u = Me(s.date);
|
8026
|
-
o(
|
8026
|
+
o(ea(u)), r(Q.EveryMonth);
|
8027
8027
|
}, [s]);
|
8028
8028
|
const _ = (u) => {
|
8029
8029
|
const h = Me(s.date);
|
8030
8030
|
switch (Number(u.target.value)) {
|
8031
8031
|
case Q.EveryWeek:
|
8032
|
-
o(
|
8032
|
+
o(ya(h));
|
8033
8033
|
break;
|
8034
8034
|
case Q.EveryOtherWeek:
|
8035
8035
|
o(Ks(h));
|
8036
8036
|
break;
|
8037
8037
|
case Q.EveryMonth:
|
8038
|
-
o(
|
8038
|
+
o(ea(h));
|
8039
8039
|
break;
|
8040
8040
|
case Q.EveryOtherMonth:
|
8041
8041
|
o(zs(h));
|
@@ -8072,11 +8072,11 @@ const hc = ({ transaction: e }) => {
|
|
8072
8072
|
sx: { mx: 24 },
|
8073
8073
|
value: n,
|
8074
8074
|
variant: "outlined",
|
8075
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
8075
|
+
children: d.map((u) => /* @__PURE__ */ t(ma, { value: u.id, children: u.label }, u.id))
|
8076
8076
|
}
|
8077
8077
|
),
|
8078
8078
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
8079
|
-
|
8079
|
+
ga,
|
8080
8080
|
{
|
8081
8081
|
disablePast: !0,
|
8082
8082
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -8194,7 +8194,7 @@ const hc = ({ transaction: e }) => {
|
|
8194
8194
|
};
|
8195
8195
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
8196
8196
|
o.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8197
|
-
/* @__PURE__ */ t(
|
8197
|
+
/* @__PURE__ */ t(ra, { activity: d, onActivityClick: s, showOrdinal: !0 }),
|
8198
8198
|
/* @__PURE__ */ t(G, { variant: _ < o.length - 1 ? "inset" : "fullWidth" })
|
8199
8199
|
] }, d.scheduledPaymentGuid)),
|
8200
8200
|
/* @__PURE__ */ t(Ic, { label: e.add_expense, onAddActivity: c })
|
@@ -8313,10 +8313,10 @@ const hc = ({ transaction: e }) => {
|
|
8313
8313
|
case Q.EveryMonth:
|
8314
8314
|
a.push({
|
8315
8315
|
...c,
|
8316
|
-
expectedDate:
|
8316
|
+
expectedDate: ji(m, d)
|
8317
8317
|
}), a.push({
|
8318
8318
|
...c,
|
8319
|
-
expectedDate: gt(
|
8319
|
+
expectedDate: gt(ji(m, d), 1)
|
8320
8320
|
});
|
8321
8321
|
break;
|
8322
8322
|
case Q.EveryOtherMonth:
|
@@ -8395,7 +8395,7 @@ const hc = ({ transaction: e }) => {
|
|
8395
8395
|
};
|
8396
8396
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
8397
8397
|
c.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8398
|
-
/* @__PURE__ */ t(
|
8398
|
+
/* @__PURE__ */ t(ra, { activity: u, onActivityClick: d, showOrdinal: !0 }),
|
8399
8399
|
/* @__PURE__ */ t(G, { variant: h < c.length - 1 ? "inset" : "fullWidth" })
|
8400
8400
|
] }, u.sequenceGuid)),
|
8401
8401
|
/* @__PURE__ */ t(Ic, { isIncome: !0, label: e.add_income, onAddActivity: _ })
|
@@ -8438,7 +8438,7 @@ const hc = ({ transaction: e }) => {
|
|
8438
8438
|
}, xc = A(yg), gi = (e, n) => e + n.amount, Ua = (e) => e.activityType === Qe.Income && ai(e.expectedDate, {
|
8439
8439
|
start: Fe(le()),
|
8440
8440
|
end: Xe(le())
|
8441
|
-
}),
|
8441
|
+
}), Wi = (e) => e.activityType === Qe.Expense && ai(e.expectedDate, {
|
8442
8442
|
start: Fe(le()),
|
8443
8443
|
end: Xe(le())
|
8444
8444
|
}), Va = (e) => e.occurredOnDate && ai(e.occurredOnDate, {
|
@@ -8500,7 +8500,7 @@ const hc = ({ transaction: e }) => {
|
|
8500
8500
|
)
|
8501
8501
|
}
|
8502
8502
|
);
|
8503
|
-
}, Sg = A(Eg),
|
8503
|
+
}, Sg = A(Eg), Ui = ({ icon: e, label: n }) => /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
8504
8504
|
/* @__PURE__ */ t(e, {}),
|
8505
8505
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: n })
|
8506
8506
|
] }), Tg = () => {
|
@@ -8515,18 +8515,18 @@ const hc = ({ transaction: e }) => {
|
|
8515
8515
|
justifyContent: "center",
|
8516
8516
|
mt: 12,
|
8517
8517
|
children: [
|
8518
|
-
/* @__PURE__ */ t(
|
8519
|
-
/* @__PURE__ */ t(
|
8520
|
-
/* @__PURE__ */ t(
|
8521
|
-
/* @__PURE__ */ t(
|
8518
|
+
/* @__PURE__ */ t(Ui, { icon: wr, label: e.expense }),
|
8519
|
+
/* @__PURE__ */ t(Ui, { icon: Nr, label: e.income }),
|
8520
|
+
/* @__PURE__ */ t(Ui, { icon: Dr, label: e.missed }),
|
8521
|
+
/* @__PURE__ */ t(Ui, { icon: Rr, label: e.paid })
|
8522
8522
|
]
|
8523
8523
|
}
|
8524
8524
|
);
|
8525
8525
|
}, Ag = A(Tg), ko = 58, Ig = () => {
|
8526
8526
|
const e = tt(), { onEvent: n } = z(), { selectedDay: i } = nt(), [a, r] = g.useState(
|
8527
|
-
|
8527
|
+
Qi(/* @__PURE__ */ new Date()) * hn + ko
|
8528
8528
|
), o = (c) => {
|
8529
|
-
r(
|
8529
|
+
r(Qi(c) * hn + ko), n(W.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
8530
8530
|
}, s = /* @__PURE__ */ t(
|
8531
8531
|
li,
|
8532
8532
|
{
|
@@ -8612,7 +8612,7 @@ const hc = ({ transaction: e }) => {
|
|
8612
8612
|
] }),
|
8613
8613
|
e.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: s.no_activities }) : /* @__PURE__ */ t(ie, { children: n ? e.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8614
8614
|
/* @__PURE__ */ t(
|
8615
|
-
|
8615
|
+
ra,
|
8616
8616
|
{
|
8617
8617
|
activity: d,
|
8618
8618
|
isMini: n,
|
@@ -8632,7 +8632,7 @@ const hc = ({ transaction: e }) => {
|
|
8632
8632
|
sx: { width: "100%" },
|
8633
8633
|
children: d.activities.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8634
8634
|
/* @__PURE__ */ t(
|
8635
|
-
|
8635
|
+
ra,
|
8636
8636
|
{
|
8637
8637
|
activity: u,
|
8638
8638
|
isMini: n,
|
@@ -8689,7 +8689,7 @@ const hc = ({ transaction: e }) => {
|
|
8689
8689
|
selectedDayActivities: c,
|
8690
8690
|
setSelectedDay: d,
|
8691
8691
|
upcomingActivities: _
|
8692
|
-
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(
|
8692
|
+
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(Wi).reduce(gi, 0), T = f.filter(Wi).reduce(gi, 0), v = E.filter(Wi).reduce(gi, 0), w = C.filter(Wi).length, x = C.filter(Ua).reduce(gi, 0), R = f.filter(Ua).reduce(gi, 0), D = C.filter(Ua).length, $ = (U, P) => {
|
8693
8693
|
h(P);
|
8694
8694
|
}, O = (U) => {
|
8695
8695
|
m(W.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
@@ -9074,7 +9074,7 @@ const Gg = {
|
|
9074
9074
|
gridRow: 1,
|
9075
9075
|
gridColumn: 1,
|
9076
9076
|
zIndex: 2
|
9077
|
-
}, Bg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(
|
9077
|
+
}, Bg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(fa, { color: "error", sx: { fontSize: e, ...Gg } }) }), Mr = (e) => e && (e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CHECKING_LINE_OF_CREDIT), Pg = (e) => e.is_manual || !e.guid, Hg = (e) => e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.CHECKING_LINE_OF_CREDIT, $g = (e) => e.account_type === oe.SAVINGS || e.account_type === oe.CHECKING || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, Fg = (e) => e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, Wg = (e, n) => {
|
9078
9078
|
const i = [
|
9079
9079
|
{
|
9080
9080
|
event: "account_details_click_account_name",
|
@@ -9132,7 +9132,7 @@ const Gg = {
|
|
9132
9132
|
placeholder: S(n.enter_value, a),
|
9133
9133
|
type: xt.Input,
|
9134
9134
|
validation: (o) => ir(o) ? "" : n.error_amount_is_invalid,
|
9135
|
-
valueFormatter: (o) => ir(o) ?
|
9135
|
+
valueFormatter: (o) => ir(o) ? Ea(o / 100) : o
|
9136
9136
|
});
|
9137
9137
|
}
|
9138
9138
|
return Mr(e) && (i.push({
|
@@ -9491,7 +9491,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9491
9491
|
}
|
9492
9492
|
),
|
9493
9493
|
/* @__PURE__ */ t(
|
9494
|
-
|
9494
|
+
ia,
|
9495
9495
|
{
|
9496
9496
|
body: i.table_tooltip_body,
|
9497
9497
|
title: i.table_tooltip_title
|
@@ -9746,7 +9746,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9746
9746
|
isTotal: !0,
|
9747
9747
|
label: a.remaining_cash,
|
9748
9748
|
tooltip: /* @__PURE__ */ t(
|
9749
|
-
|
9749
|
+
ia,
|
9750
9750
|
{
|
9751
9751
|
body: a.remaining_income_tooltip_body,
|
9752
9752
|
title: a.remaining_income_tooltip_title
|
@@ -9783,7 +9783,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9783
9783
|
amount: E,
|
9784
9784
|
label: a.remaining_cash,
|
9785
9785
|
tooltip: /* @__PURE__ */ t(
|
9786
|
-
|
9786
|
+
ia,
|
9787
9787
|
{
|
9788
9788
|
body: a.remaining_income_tooltip_body,
|
9789
9789
|
title: a.remaining_income_tooltip_title
|
@@ -10247,7 +10247,7 @@ const Cn = () => {
|
|
10247
10247
|
return um(e, s, h);
|
10248
10248
|
}, [e, s, c]);
|
10249
10249
|
return /* @__PURE__ */ t(
|
10250
|
-
|
10250
|
+
ca,
|
10251
10251
|
{
|
10252
10252
|
sx: {
|
10253
10253
|
boxShadow: a.shadows[2],
|
@@ -10311,7 +10311,7 @@ const Cn = () => {
|
|
10311
10311
|
/* @__PURE__ */ t(p, { variant: "H1", children: r.snowball_drawer_savings }),
|
10312
10312
|
/* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: r.snowball_drawer_duration_description })
|
10313
10313
|
] }),
|
10314
|
-
/* @__PURE__ */ l(
|
10314
|
+
/* @__PURE__ */ l(ca, { sx: { display: "grid", py: 16, px: 24 }, children: [
|
10315
10315
|
/* @__PURE__ */ t(p, { mb: 4, variant: "H3", children: r.snowball_drawer_question }),
|
10316
10316
|
/* @__PURE__ */ t(
|
10317
10317
|
p,
|
@@ -11022,7 +11022,7 @@ const Lc = ({
|
|
11022
11022
|
onCancel: u,
|
11023
11023
|
onSave: _,
|
11024
11024
|
primaryText: n.details_interest_rate,
|
11025
|
-
secondaryText:
|
11025
|
+
secondaryText: Ea(Number(e.interest_rate) / 100),
|
11026
11026
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11027
11027
|
children: /* @__PURE__ */ t(
|
11028
11028
|
it,
|
@@ -11121,7 +11121,7 @@ const Lc = ({
|
|
11121
11121
|
onCancel: d,
|
11122
11122
|
onSave: c,
|
11123
11123
|
primaryText: n.details_interest_rate,
|
11124
|
-
secondaryText:
|
11124
|
+
secondaryText: Ea(Number(e.interest_rate) / 100),
|
11125
11125
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11126
11126
|
children: /* @__PURE__ */ t(
|
11127
11127
|
it,
|
@@ -11227,7 +11227,7 @@ const Lc = ({
|
|
11227
11227
|
/* @__PURE__ */ t(Tt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
11228
11228
|
xn,
|
11229
11229
|
{
|
11230
|
-
icon: a ? /* @__PURE__ */ t(
|
11230
|
+
icon: a ? /* @__PURE__ */ t(fa, {}) : /* @__PURE__ */ t(pa, { color: "success" }),
|
11231
11231
|
severity: "error",
|
11232
11232
|
sx: {
|
11233
11233
|
alignItems: "start",
|
@@ -11668,7 +11668,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11668
11668
|
},
|
11669
11669
|
children: [
|
11670
11670
|
/* @__PURE__ */ t(p, { color: "inherit", variant: "Small", children: u }),
|
11671
|
-
r === _ && /* @__PURE__ */ t(
|
11671
|
+
r === _ && /* @__PURE__ */ t(pa, { color: "inherit", fontSize: "small" })
|
11672
11672
|
]
|
11673
11673
|
},
|
11674
11674
|
_
|
@@ -11918,7 +11918,7 @@ function _p(e, n) {
|
|
11918
11918
|
maximumFractionDigits: 0
|
11919
11919
|
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Me(c) : /* @__PURE__ */ new Date(), _ = S(
|
11920
11920
|
e.goal_percentage,
|
11921
|
-
|
11921
|
+
Ea(a, s)
|
11922
11922
|
), u = S(
|
11923
11923
|
n.is_complete ? e.completed_label : e.goal_projection,
|
11924
11924
|
ae(d, te.MONTH_SHORT_YEAR)
|
@@ -12195,7 +12195,7 @@ const gp = (e, n) => {
|
|
12195
12195
|
}, bp = ({ goal: e }) => {
|
12196
12196
|
const { goals: n } = I();
|
12197
12197
|
return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { children: [
|
12198
|
-
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
12198
|
+
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(da, { color: "success", filled: !0, size: 20 }) }),
|
12199
12199
|
/* @__PURE__ */ t(re, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12200
12200
|
/* @__PURE__ */ l(b, { children: [
|
12201
12201
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
@@ -12352,7 +12352,7 @@ const gp = (e, n) => {
|
|
12352
12352
|
}
|
12353
12353
|
) }),
|
12354
12354
|
/* @__PURE__ */ t(G, { variant: "inset" }),
|
12355
|
-
h && /* @__PURE__ */ t(
|
12355
|
+
h && /* @__PURE__ */ t(Ca, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(X, { sx: { pl: 48 }, children: /* @__PURE__ */ l(de, { onClick: () => n(m.label, m.metaType, d), children: [
|
12356
12356
|
/* @__PURE__ */ t(Ct, { sx: { mr: 8 }, children: /* @__PURE__ */ t(yt, { name: m.icon }) }),
|
12357
12357
|
/* @__PURE__ */ t(
|
12358
12358
|
re,
|
@@ -12403,7 +12403,7 @@ const gp = (e, n) => {
|
|
12403
12403
|
secondary: B(u.balance || 0, "0,0.00")
|
12404
12404
|
}
|
12405
12405
|
),
|
12406
|
-
/* @__PURE__ */ t(
|
12406
|
+
/* @__PURE__ */ t(Xi, { checked: c.some((m) => m.guid === u.guid) })
|
12407
12407
|
] }) }),
|
12408
12408
|
/* @__PURE__ */ t(G, { variant: h < e.length - 1 ? "inset" : "fullWidth" })
|
12409
12409
|
] }, u.guid))
|
@@ -12673,7 +12673,7 @@ const gp = (e, n) => {
|
|
12673
12673
|
secondaryText: `${ae(Me(i.birthday ?? 0), te.MONTH_DAY_YEAR)}`,
|
12674
12674
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
12675
12675
|
children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
12676
|
-
|
12676
|
+
ga,
|
12677
12677
|
{
|
12678
12678
|
label: n.details_birthday,
|
12679
12679
|
onChange: s,
|
@@ -13585,7 +13585,7 @@ const Vp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Kp = 50, Zo = 65, zp = ({
|
|
13585
13585
|
});
|
13586
13586
|
return g.useEffect(() => m.measure(), [a]), s ? /* @__PURE__ */ l(b, { className: "mx-mrt-lookup", children: [
|
13587
13587
|
/* @__PURE__ */ t(
|
13588
|
-
|
13588
|
+
Bi,
|
13589
13589
|
{
|
13590
13590
|
ariaLabel: o.search_aria,
|
13591
13591
|
cancelAriaLabel: o.cancel_search_aria,
|
@@ -13980,8 +13980,8 @@ const n1 = ({
|
|
13980
13980
|
},
|
13981
13981
|
title: i,
|
13982
13982
|
children: /* @__PURE__ */ l("div", { id: Eo, children: [
|
13983
|
-
u && /* @__PURE__ */ t(
|
13984
|
-
d && /* @__PURE__ */ t(
|
13983
|
+
u && /* @__PURE__ */ t(na, { status: Bn.Error }),
|
13984
|
+
d && /* @__PURE__ */ t(na, { status: Bn.Loading })
|
13985
13985
|
] })
|
13986
13986
|
}
|
13987
13987
|
);
|
@@ -13999,7 +13999,7 @@ const n1 = ({
|
|
13999
13999
|
/* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(H, { name: "expand_more", size: 24 }) })
|
14000
14000
|
] }) }),
|
14001
14001
|
/* @__PURE__ */ t(G, {}),
|
14002
|
-
/* @__PURE__ */ t(
|
14002
|
+
/* @__PURE__ */ t(Ca, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
|
14003
14003
|
/* @__PURE__ */ t(X, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
14004
14004
|
re,
|
14005
14005
|
{
|
@@ -14385,7 +14385,7 @@ const b1 = (e, n) => {
|
|
14385
14385
|
width: 8
|
14386
14386
|
}
|
14387
14387
|
};
|
14388
|
-
return /* @__PURE__ */ l(
|
14388
|
+
return /* @__PURE__ */ l(ca, { onClick: () => {
|
14389
14389
|
n(e), i({ ...e, has_been_viewed: !0 }).finally();
|
14390
14390
|
}, sx: r.card, children: [
|
14391
14391
|
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: r.dot }),
|
@@ -14481,14 +14481,14 @@ const is = "PARENT-ENTITY", x1 = (e, n) => {
|
|
14481
14481
|
class w1 {
|
14482
14482
|
globalStore;
|
14483
14483
|
api = new ns("/", "");
|
14484
|
-
transactionApi = new
|
14484
|
+
transactionApi = new aa("/", "");
|
14485
14485
|
alert = { message: "", severity: void 0 };
|
14486
14486
|
devices = [];
|
14487
14487
|
notificationProfiles = [];
|
14488
14488
|
selectedRule = void 0;
|
14489
14489
|
transactionRules = [];
|
14490
14490
|
constructor(n) {
|
14491
|
-
this.globalStore = n, this.api = new ns(n.endpoint, n.sessionToken), this.transactionApi = new
|
14491
|
+
this.globalStore = n, this.api = new ns(n.endpoint, n.sessionToken), this.transactionApi = new aa(n.endpoint, n.sessionToken), Be(this);
|
14492
14492
|
}
|
14493
14493
|
get accountProfiles() {
|
14494
14494
|
return this.detailedNotificationProfiles.filter(
|
@@ -17132,7 +17132,7 @@ const R1 = ({
|
|
17132
17132
|
/* @__PURE__ */ t(
|
17133
17133
|
Mi,
|
17134
17134
|
{
|
17135
|
-
expandIcon: /* @__PURE__ */ t(
|
17135
|
+
expandIcon: /* @__PURE__ */ t(ha, { sx: { color: "text.primary" } }),
|
17136
17136
|
sx: { height: 64, p: "14px 24px" },
|
17137
17137
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17138
17138
|
/* @__PURE__ */ t(H, { name: E, size: 24 }),
|
@@ -17264,7 +17264,7 @@ const R1 = ({
|
|
17264
17264
|
{
|
17265
17265
|
type: "internal"
|
17266
17266
|
}
|
17267
|
-
],
|
17267
|
+
], Pi = ({
|
17268
17268
|
content: e,
|
17269
17269
|
hasIcon: n = !0,
|
17270
17270
|
institution: i = "",
|
@@ -17322,7 +17322,7 @@ const R1 = ({
|
|
17322
17322
|
children: [
|
17323
17323
|
r ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
17324
17324
|
/* @__PURE__ */ t(
|
17325
|
-
|
17325
|
+
Pi,
|
17326
17326
|
{
|
17327
17327
|
hasIcon: !a,
|
17328
17328
|
institution: a,
|
@@ -17397,7 +17397,7 @@ const R1 = ({
|
|
17397
17397
|
/* @__PURE__ */ t(
|
17398
17398
|
Mi,
|
17399
17399
|
{
|
17400
|
-
expandIcon: /* @__PURE__ */ t(
|
17400
|
+
expandIcon: /* @__PURE__ */ t(ha, { sx: { color: "text.primary" } }),
|
17401
17401
|
sx: { p: "14px 24px", height: 64 },
|
17402
17402
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17403
17403
|
/* @__PURE__ */ t(H, { name: r, size: 24 }),
|
@@ -17490,7 +17490,7 @@ const R1 = ({
|
|
17490
17490
|
title: e.request_support,
|
17491
17491
|
children: [
|
17492
17492
|
/* @__PURE__ */ t(
|
17493
|
-
|
17493
|
+
Pi,
|
17494
17494
|
{
|
17495
17495
|
content: e.popular_topics_missing_institution_content,
|
17496
17496
|
hasIcon: !1,
|
@@ -17583,7 +17583,7 @@ const R1 = ({
|
|
17583
17583
|
);
|
17584
17584
|
return /* @__PURE__ */ t(ne, { isOpen: n, onClose: a, title: e.request_support, children: /* @__PURE__ */ l(b, { children: [
|
17585
17585
|
/* @__PURE__ */ t(
|
17586
|
-
|
17586
|
+
Pi,
|
17587
17587
|
{
|
17588
17588
|
hasIcon: !1,
|
17589
17589
|
reverse: !0,
|
@@ -17633,7 +17633,7 @@ const R1 = ({
|
|
17633
17633
|
const { common: s } = I();
|
17634
17634
|
return /* @__PURE__ */ l(ne, { isOpen: i, onClose: a, title: e.request_support, children: [
|
17635
17635
|
/* @__PURE__ */ t(
|
17636
|
-
|
17636
|
+
Pi,
|
17637
17637
|
{
|
17638
17638
|
hasIcon: !1,
|
17639
17639
|
institution: n,
|
@@ -17744,7 +17744,7 @@ const R1 = ({
|
|
17744
17744
|
return /* @__PURE__ */ t(ne, { isOpen: n, onClose: i, title: e.request_support, children: !d || o ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
17745
17745
|
/* @__PURE__ */ l(b, { children: [
|
17746
17746
|
/* @__PURE__ */ t(
|
17747
|
-
|
17747
|
+
Pi,
|
17748
17748
|
{
|
17749
17749
|
subtitle: e.request_support_short_content,
|
17750
17750
|
title: e.request_support_title
|
@@ -18031,7 +18031,7 @@ const R1 = ({
|
|
18031
18031
|
)
|
18032
18032
|
] });
|
18033
18033
|
}), mC = () => {
|
18034
|
-
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } =
|
18034
|
+
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Gi(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
|
18035
18035
|
g.useEffect(() => {
|
18036
18036
|
if (_.birthday) {
|
18037
18037
|
const P = new Date(_.birthday * 1e3), j = P.getUTCFullYear(), he = P.getUTCMonth(), V = P.getUTCDate();
|
@@ -18119,7 +18119,7 @@ const R1 = ({
|
|
18119
18119
|
] }),
|
18120
18120
|
/* @__PURE__ */ l(b, { direction: r ? "column" : "row", spacing: r ? 44 : 24, sx: { mb: 44 }, children: [
|
18121
18121
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
18122
|
-
|
18122
|
+
ga,
|
18123
18123
|
{
|
18124
18124
|
label: i.birthdate,
|
18125
18125
|
onChange: $,
|
@@ -18979,7 +18979,7 @@ const CC = ({
|
|
18979
18979
|
)
|
18980
18980
|
] });
|
18981
18981
|
}), e4 = A(({ onBackClick: e, sx: n }) => {
|
18982
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } =
|
18982
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Gi(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = ve(), _ = pe(), {
|
18983
18983
|
display_user_profile_in_settings: u,
|
18984
18984
|
display_mobile_devices_in_settings: h,
|
18985
18985
|
display_notification_settings_in_settings: m,
|
@@ -19267,7 +19267,7 @@ const RC = (e) => {
|
|
19267
19267
|
}
|
19268
19268
|
return a;
|
19269
19269
|
}, kC = (e) => {
|
19270
|
-
const n = [], i =
|
19270
|
+
const n = [], i = ji(le(), e.recurrenceDay);
|
19271
19271
|
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: gt(i, 1) }), n;
|
19272
19272
|
}, GC = (e, n, i) => {
|
19273
19273
|
const a = [], r = e.expectedDate;
|
@@ -19736,7 +19736,7 @@ const Xa = ({
|
|
19736
19736
|
},
|
19737
19737
|
primaryText: d.is_hidden ? h.unhide_account : h.hide_Account,
|
19738
19738
|
secondaryText: d.is_hidden ? h.include_this_account : h.exclude_this_account,
|
19739
|
-
children: /* @__PURE__ */ t(
|
19739
|
+
children: /* @__PURE__ */ t(ua, { checked: d.is_hidden })
|
19740
19740
|
}
|
19741
19741
|
),
|
19742
19742
|
/* @__PURE__ */ t(
|
@@ -19993,7 +19993,7 @@ const Xa = ({
|
|
19993
19993
|
} = pe(), { selectedMember: a } = $t(), { accounts: r, connect: o } = I(), s = qc(a, o), c = Fs.includes(a.connection_status) ? {
|
19994
19994
|
color: "error.main",
|
19995
19995
|
ctaCopy: s.cta ?? "",
|
19996
|
-
icon: /* @__PURE__ */ t(
|
19996
|
+
icon: /* @__PURE__ */ t(fa, { sx: { ...qa } }),
|
19997
19997
|
mainMessage: s.statusName,
|
19998
19998
|
secondaryMessage: `${s.title}.`
|
19999
19999
|
} : {
|
@@ -20081,7 +20081,7 @@ const Xa = ({
|
|
20081
20081
|
onChange: (y) => c(y.target.value),
|
20082
20082
|
placeholder: e.placeholder,
|
20083
20083
|
value: s,
|
20084
|
-
children: e.options?.map((y) => /* @__PURE__ */ t(
|
20084
|
+
children: e.options?.map((y) => /* @__PURE__ */ t(ma, { value: y.value, children: y.label }, y.value))
|
20085
20085
|
}
|
20086
20086
|
)
|
20087
20087
|
] });
|
@@ -20223,7 +20223,7 @@ const Xa = ({
|
|
20223
20223
|
children: /* @__PURE__ */ l(
|
20224
20224
|
xn,
|
20225
20225
|
{
|
20226
|
-
icon: /* @__PURE__ */ t(
|
20226
|
+
icon: /* @__PURE__ */ t(fa, {}),
|
20227
20227
|
severity: "error",
|
20228
20228
|
sx: {
|
20229
20229
|
borderLeft: 5,
|
@@ -20462,7 +20462,7 @@ const Xa = ({
|
|
20462
20462
|
)
|
20463
20463
|
] });
|
20464
20464
|
}, uf = A(df), _f = ({ onBackClick: e, sx: n = {} }) => {
|
20465
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } =
|
20465
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = Gi(), { accounts: c, refreshMembers: d } = Re(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = ve(), { onEvent: E } = z();
|
20466
20466
|
g.useEffect(() => {
|
20467
20467
|
m(c);
|
20468
20468
|
}, [c]);
|
@@ -21238,7 +21238,7 @@ const yf = () => {
|
|
21238
21238
|
};
|
21239
21239
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21240
21240
|
/* @__PURE__ */ t(
|
21241
|
-
|
21241
|
+
la,
|
21242
21242
|
{
|
21243
21243
|
exclusive: !0,
|
21244
21244
|
onChange: s,
|
@@ -22445,17 +22445,17 @@ const Gf = ({
|
|
22445
22445
|
}
|
22446
22446
|
) : null;
|
22447
22447
|
}), t0 = () => {
|
22448
|
-
const
|
22449
|
-
|
22448
|
+
const { common: e, connect: n } = I(), i = Mn("(max-width: 700px)"), [a, r] = g.useState(!1), o = () => {
|
22449
|
+
r(!0);
|
22450
22450
|
};
|
22451
22451
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22452
|
-
/* @__PURE__ */ t(M, { my: 4, children:
|
22452
|
+
/* @__PURE__ */ t(M, { my: 4, children: i ? /* @__PURE__ */ t(Wn, { id: "add-accounts", placement: "bottom", title: e.add_accounts, children: /* @__PURE__ */ t(
|
22453
22453
|
$e,
|
22454
22454
|
{
|
22455
22455
|
"aria-controls": "add_accounts",
|
22456
22456
|
"aria-describedby": "add-accounts",
|
22457
22457
|
"aria-haspopup": !0,
|
22458
|
-
"aria-label":
|
22458
|
+
"aria-label": e.add_accounts,
|
22459
22459
|
color: "primary",
|
22460
22460
|
onClick: o,
|
22461
22461
|
children: /* @__PURE__ */ t(H, { name: "add", size: 24 })
|
@@ -22465,7 +22465,7 @@ const Gf = ({
|
|
22465
22465
|
{
|
22466
22466
|
"aria-controls": "add_accounts",
|
22467
22467
|
"aria-haspopup": !0,
|
22468
|
-
"aria-label":
|
22468
|
+
"aria-label": e.add_accounts,
|
22469
22469
|
onClick: o,
|
22470
22470
|
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 24 }),
|
22471
22471
|
sx: {
|
@@ -22475,20 +22475,20 @@ const Gf = ({
|
|
22475
22475
|
minWidth: "max-content"
|
22476
22476
|
},
|
22477
22477
|
variant: "text",
|
22478
|
-
children:
|
22478
|
+
children: e.add_accounts
|
22479
22479
|
}
|
22480
22480
|
) }),
|
22481
|
-
|
22481
|
+
a && /* @__PURE__ */ t(
|
22482
22482
|
di,
|
22483
22483
|
{
|
22484
|
-
onClose: () =>
|
22485
|
-
showConnectWidget:
|
22486
|
-
title:
|
22484
|
+
onClose: () => r(!1),
|
22485
|
+
showConnectWidget: a,
|
22486
|
+
title: n.mini_title
|
22487
22487
|
}
|
22488
22488
|
)
|
22489
22489
|
] });
|
22490
22490
|
}, n0 = A(t0), i0 = () => {
|
22491
|
-
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), {
|
22491
|
+
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), { config: r } = Gi(), { isMobile: o } = ve(), s = {
|
22492
22492
|
accountFilterOptionsCopy: {
|
22493
22493
|
accountTypeAccounts: a.account_filter.account_type_accounts,
|
22494
22494
|
cancelButton: a.cancel_button,
|
@@ -22503,23 +22503,23 @@ const Gf = ({
|
|
22503
22503
|
},
|
22504
22504
|
title: a.filter_button
|
22505
22505
|
};
|
22506
|
-
return /* @__PURE__ */ t(Tt, { sx: { gap: 12, mb:
|
22506
|
+
return /* @__PURE__ */ t(Tt, { sx: { gap: 12, mb: o ? 24 : 0, p: 24 }, children: /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
22507
22507
|
/* @__PURE__ */ t(b, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(b, { children: [
|
22508
22508
|
/* @__PURE__ */ t(cn, { children: (() => {
|
22509
|
-
const
|
22510
|
-
return
|
22509
|
+
const _ = (/* @__PURE__ */ new Date()).getHours();
|
22510
|
+
return _ > 1 && _ < 12 ? a.good_morning : _ >= 12 && _ < 18 ? a.good_afternoon : a.good_evening;
|
22511
22511
|
})() }),
|
22512
22512
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: a.heres_your_spending_overview })
|
22513
22513
|
] }) }),
|
22514
22514
|
/* @__PURE__ */ l(b, { flexDirection: "row", children: [
|
22515
|
-
/* @__PURE__ */ t(n0, {}),
|
22515
|
+
r.show_connections_widget_in_master && /* @__PURE__ */ t(n0, {}),
|
22516
22516
|
/* @__PURE__ */ t(
|
22517
22517
|
Qs,
|
22518
22518
|
{
|
22519
22519
|
accounts: e,
|
22520
|
-
copy:
|
22521
|
-
onFilterClick: (
|
22522
|
-
i(
|
22520
|
+
copy: s,
|
22521
|
+
onFilterClick: (d) => {
|
22522
|
+
i(d);
|
22523
22523
|
},
|
22524
22524
|
selectedAccountGuids: n,
|
22525
22525
|
showAccountNumbers: !1,
|
@@ -22532,20 +22532,20 @@ const Gf = ({
|
|
22532
22532
|
] })
|
22533
22533
|
] }) });
|
22534
22534
|
}, a0 = A(i0);
|
22535
|
-
var
|
22535
|
+
var Yi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Yi || {});
|
22536
22536
|
const r0 = ({ widgets: e, isLoading: n }) => {
|
22537
22537
|
const { isDesktop: i, isMobile: a } = ve(), { copyStore: r } = Ta(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = Re();
|
22538
22538
|
g.useEffect(() => {
|
22539
22539
|
o(s);
|
22540
22540
|
}, [s]);
|
22541
22541
|
const c = g.useMemo(
|
22542
|
-
() => e.filter((u) => u.location !==
|
22542
|
+
() => e.filter((u) => u.location !== Yi.Disabled).sort((u, h) => u.index - h.index),
|
22543
22543
|
[e]
|
22544
22544
|
), d = g.useMemo(
|
22545
|
-
() => c.filter((u) => u.location ===
|
22545
|
+
() => c.filter((u) => u.location === Yi.Main),
|
22546
22546
|
[c]
|
22547
22547
|
), _ = g.useMemo(
|
22548
|
-
() => c.filter((u) => u.location ===
|
22548
|
+
() => c.filter((u) => u.location === Yi.RightSide),
|
22549
22549
|
[c]
|
22550
22550
|
);
|
22551
22551
|
return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
@@ -22581,7 +22581,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
22581
22581
|
];
|
22582
22582
|
return /* @__PURE__ */ l(b, { sx: { gap: 12, width: "100%" }, children: [
|
22583
22583
|
/* @__PURE__ */ t(
|
22584
|
-
|
22584
|
+
la,
|
22585
22585
|
{
|
22586
22586
|
color: "primary",
|
22587
22587
|
exclusive: !0,
|
@@ -22657,7 +22657,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
22657
22657
|
), d0 = () => {
|
22658
22658
|
const {
|
22659
22659
|
investments: { analysis: e }
|
22660
|
-
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } =
|
22660
|
+
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } = ta(), o = Mn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = ve(), d = tt().palette.mode === "dark", { cellDimension: _, columns: u, rows: h, textVariant: m } = g.useMemo(() => {
|
22661
22661
|
const C = a === Pn.Stocks, f = Object.values(C ? e.stock_column_labels : e.bond_column_labels), E = Object.values(C ? e.stock_row_labels : e.bond_row_labels);
|
22662
22662
|
return { cellDimension: s ? 72 : 100, columns: f, rows: E, textVariant: s ? "XSmall" : "Body" };
|
22663
22663
|
}, [e, s, a]);
|
@@ -22795,7 +22795,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
22795
22795
|
}
|
22796
22796
|
)
|
22797
22797
|
] });
|
22798
|
-
}, u0 = A(d0),
|
22798
|
+
}, u0 = A(d0), Vi = (e) => /* @__PURE__ */ l(ye, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
22799
22799
|
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: e.colDef.headerName }),
|
22800
22800
|
/* @__PURE__ */ t(yt, { name: "expand_all", size: 12 })
|
22801
22801
|
] }), _0 = ({
|
@@ -23035,7 +23035,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23035
23035
|
}
|
23036
23036
|
);
|
23037
23037
|
}, h0 = () => {
|
23038
|
-
const { isMobile: e } = ve(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } =
|
23038
|
+
const { isMobile: e } = ve(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } = ta(), [_, u] = g.useState(!1), [h, m] = Et({
|
23039
23039
|
accounts: [],
|
23040
23040
|
holdings: [],
|
23041
23041
|
members: []
|
@@ -23069,7 +23069,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23069
23069
|
field: "holding",
|
23070
23070
|
headerName: f.overview.holding_header,
|
23071
23071
|
flex: 1,
|
23072
|
-
renderHeader:
|
23072
|
+
renderHeader: Vi,
|
23073
23073
|
renderCell: (ge) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
|
23074
23074
|
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: ge.row.holding }),
|
23075
23075
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: ge.row.description })
|
@@ -23079,7 +23079,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23079
23079
|
field: "costBasis",
|
23080
23080
|
headerName: f.overview.cost_basis_header,
|
23081
23081
|
width: 132,
|
23082
|
-
renderHeader:
|
23082
|
+
renderHeader: Vi,
|
23083
23083
|
renderCell: (ge) => {
|
23084
23084
|
const ze = U === ge.row.id;
|
23085
23085
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
@@ -23129,7 +23129,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23129
23129
|
field: "totalGainLoss",
|
23130
23130
|
headerName: f.overview.total_gain_loss_header,
|
23131
23131
|
width: 196,
|
23132
|
-
renderHeader:
|
23132
|
+
renderHeader: Vi,
|
23133
23133
|
renderCell: (ge) => {
|
23134
23134
|
const ze = ge.row.costBasis, je = ze ? ge.row.totalGainLoss / ze * 100 : 0, Te = ge.value <= 0 ? "text.secondary" : "#0AC295";
|
23135
23135
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
@@ -23159,7 +23159,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23159
23159
|
field: "marketValue",
|
23160
23160
|
headerName: f.overview.market_value_header,
|
23161
23161
|
width: 132,
|
23162
|
-
renderHeader:
|
23162
|
+
renderHeader: Vi,
|
23163
23163
|
renderCell: (ge) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
|
23164
23164
|
currency: "USD",
|
23165
23165
|
maximumFractionDigits: 2,
|
@@ -23188,7 +23188,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23188
23188
|
...P,
|
23189
23189
|
[O]: U
|
23190
23190
|
}));
|
23191
|
-
}, { holdings: v } =
|
23191
|
+
}, { holdings: v } = ta(), { visibleInvestmentAccounts: w, members: x } = Re(), R = w.reduce((O, L) => O + (L.balance || 0), 0), D = v.reduce((O, L) => {
|
23192
23192
|
const U = L.market_value ? L.market_value - (L.cost_basis || 0) : 0;
|
23193
23193
|
return O + U;
|
23194
23194
|
}, 0), $ = () => {
|
@@ -23576,7 +23576,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23576
23576
|
)
|
23577
23577
|
] });
|
23578
23578
|
}, g0 = A(h0), Za = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), d4 = A(({ onBackClick: e, sx: n }) => {
|
23579
|
-
const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleInvestmentAccounts: r } = Re(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } =
|
23579
|
+
const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleInvestmentAccounts: r } = Re(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } = ta();
|
23580
23580
|
g.useEffect(() => {
|
23581
23581
|
c && u().finally();
|
23582
23582
|
}, [c]);
|
@@ -23850,12 +23850,12 @@ class y0 {
|
|
23850
23850
|
});
|
23851
23851
|
};
|
23852
23852
|
}
|
23853
|
-
const
|
23853
|
+
const Hi = g.createContext(null), E0 = ({
|
23854
23854
|
onEvent: e,
|
23855
23855
|
onPageview: n,
|
23856
23856
|
store: i,
|
23857
23857
|
children: a
|
23858
|
-
}) => /* @__PURE__ */ t(
|
23858
|
+
}) => /* @__PURE__ */ t(Hi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), La = g.forwardRef(
|
23859
23859
|
function({
|
23860
23860
|
actionText: n,
|
23861
23861
|
ariaLabel: i,
|
@@ -24840,24 +24840,24 @@ const Pi = g.createContext(null), E0 = ({
|
|
24840
24840
|
}
|
24841
24841
|
);
|
24842
24842
|
}, Vn = () => {
|
24843
|
-
const e = g.useContext(
|
24843
|
+
const e = g.useContext(Hi);
|
24844
24844
|
if (!e)
|
24845
24845
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
24846
24846
|
return e.store.copyStore;
|
24847
24847
|
}, D0 = () => {
|
24848
|
-
const e = g.useContext(
|
24848
|
+
const e = g.useContext(Hi);
|
24849
24849
|
if (!e?.store?.insightsMicroWidgetStore)
|
24850
24850
|
throw new Error(
|
24851
24851
|
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
24852
24852
|
);
|
24853
24853
|
return e.store.insightsMicroWidgetStore;
|
24854
|
-
},
|
24855
|
-
const e = g.useContext(
|
24854
|
+
}, $i = () => {
|
24855
|
+
const e = g.useContext(Hi);
|
24856
24856
|
if (!e)
|
24857
24857
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
24858
24858
|
return { onEvent: e.onEvent };
|
24859
24859
|
}, rl = () => {
|
24860
|
-
const e = g.useContext(
|
24860
|
+
const e = g.useContext(Hi);
|
24861
24861
|
if (!e)
|
24862
24862
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
24863
24863
|
return { onPageview: e.onPageview };
|
@@ -24883,7 +24883,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
24883
24883
|
}) => {
|
24884
24884
|
const { ref: C, inView: f } = Bs({
|
24885
24885
|
threshold: sl
|
24886
|
-
}), { cardsCopy: E } = Vn(), { onEvent: y } =
|
24886
|
+
}), { cardsCopy: E } = Vn(), { onEvent: y } = $i(), { updateBeat: T, updateOffer: v } = D0();
|
24887
24887
|
zn(() => {
|
24888
24888
|
f && (i.has_been_displayed ? y(tl(i.template)) : (i.guid.startsWith("OFR") ? v({
|
24889
24889
|
...i,
|
@@ -24998,7 +24998,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
24998
24998
|
disabled: h,
|
24999
24999
|
onClick: a,
|
25000
25000
|
children: /* @__PURE__ */ t(
|
25001
|
-
|
25001
|
+
_a,
|
25002
25002
|
{
|
25003
25003
|
style: {
|
25004
25004
|
color: h ? m : C
|
@@ -25038,7 +25038,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25038
25038
|
variant: _,
|
25039
25039
|
widthOverrides: u
|
25040
25040
|
}) => {
|
25041
|
-
const h = B0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, v] = g.useState(null), { carouselCopy: w } = Vn(), { onEvent: x } =
|
25041
|
+
const h = B0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, v] = g.useState(null), { carouselCopy: w } = Vn(), { onEvent: x } = $i(), R = () => {
|
25042
25042
|
x(Kt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
25043
25043
|
left: (
|
25044
25044
|
// Adds the flex gap to the carousel ref's width
|
@@ -25165,7 +25165,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25165
25165
|
posthog: i,
|
25166
25166
|
widthOverrides: a
|
25167
25167
|
}) => {
|
25168
|
-
const { carouselCopy: r } = Vn(), { onEvent: o } =
|
25168
|
+
const { carouselCopy: r } = Vn(), { onEvent: o } = $i(), s = () => {
|
25169
25169
|
o && (o(Kt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
|
25170
25170
|
};
|
25171
25171
|
return r ? /* @__PURE__ */ l(
|
@@ -25221,7 +25221,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25221
25221
|
children: r.view_all_insights_in_full_feed_cta_aria
|
25222
25222
|
}
|
25223
25223
|
),
|
25224
|
-
/* @__PURE__ */ t(
|
25224
|
+
/* @__PURE__ */ t(_a, { sx: { color: e?.primary_300, ml: "8px" } })
|
25225
25225
|
]
|
25226
25226
|
}
|
25227
25227
|
)
|
@@ -25261,7 +25261,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25261
25261
|
variant: d,
|
25262
25262
|
widthOverrides: _
|
25263
25263
|
}) => {
|
25264
|
-
const { cardsCopy: u } = Vn(), { onEvent: h } =
|
25264
|
+
const { cardsCopy: u } = Vn(), { onEvent: h } = $i(), { onPageview: m } = rl();
|
25265
25265
|
g.useEffect(() => {
|
25266
25266
|
m(kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
25267
25267
|
}, []);
|
@@ -25451,7 +25451,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25451
25451
|
}) => {
|
25452
25452
|
const _ = pe(), { ref: u, inView: h } = Bs({
|
25453
25453
|
threshold: sl
|
25454
|
-
}), { cardsCopy: m } = Vn(), { onEvent: C } =
|
25454
|
+
}), { cardsCopy: m } = Vn(), { onEvent: C } = $i();
|
25455
25455
|
zn(() => {
|
25456
25456
|
h && (C(il.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
|
25457
25457
|
template: "view_more_card"
|
@@ -25529,7 +25529,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25529
25529
|
primaryTypographyProps: { fontWeight: 400 }
|
25530
25530
|
}
|
25531
25531
|
),
|
25532
|
-
e.recurrence_type === h.id && /* @__PURE__ */ t(
|
25532
|
+
e.recurrence_type === h.id && /* @__PURE__ */ t(da, { color: "primary", filled: !0, size: 24 })
|
25533
25533
|
] }) }, h.id),
|
25534
25534
|
/* @__PURE__ */ t(G, {})
|
25535
25535
|
] }, h.id)) })
|
@@ -25788,7 +25788,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25788
25788
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
25789
25789
|
n && /* @__PURE__ */ t(Oe, { sx: { mx: 24 }, children: n }),
|
25790
25790
|
/* @__PURE__ */ t(
|
25791
|
-
|
25791
|
+
Bi,
|
25792
25792
|
{
|
25793
25793
|
ariaLabel: r.select_transaction_search_aria,
|
25794
25794
|
cancelAriaLabel: r.select_transaction_search_cancel_aria,
|
@@ -25823,19 +25823,19 @@ const Pi = g.createContext(null), E0 = ({
|
|
25823
25823
|
];
|
25824
25824
|
g.useEffect(() => {
|
25825
25825
|
const u = Me(s.date);
|
25826
|
-
o(
|
25826
|
+
o(ea(u)), r(Ne.EveryMonth);
|
25827
25827
|
}, [s]);
|
25828
25828
|
const _ = (u) => {
|
25829
25829
|
const h = Me(s.date);
|
25830
25830
|
switch (Number(u.target.value)) {
|
25831
25831
|
case Ne.EveryWeek:
|
25832
|
-
o(
|
25832
|
+
o(ya(h));
|
25833
25833
|
break;
|
25834
25834
|
case Ne.EveryOtherWeek:
|
25835
25835
|
o(Ks(h));
|
25836
25836
|
break;
|
25837
25837
|
case Ne.EveryMonth:
|
25838
|
-
o(
|
25838
|
+
o(ea(h));
|
25839
25839
|
break;
|
25840
25840
|
case Ne.EveryOtherMonth:
|
25841
25841
|
o(zs(h));
|
@@ -25872,11 +25872,11 @@ const Pi = g.createContext(null), E0 = ({
|
|
25872
25872
|
sx: { mx: 24 },
|
25873
25873
|
value: n,
|
25874
25874
|
variant: "outlined",
|
25875
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
25875
|
+
children: d.map((u) => /* @__PURE__ */ t(ma, { value: u.id, children: u.label }, u.id))
|
25876
25876
|
}
|
25877
25877
|
),
|
25878
25878
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
25879
|
-
|
25879
|
+
ga,
|
25880
25880
|
{
|
25881
25881
|
disablePast: !0,
|
25882
25882
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -26043,7 +26043,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26043
26043
|
filled: !0,
|
26044
26044
|
sx: { color: "categories.income", fontSize: n, ...Ma }
|
26045
26045
|
}
|
26046
|
-
) }), zr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(Ds, { color: "error", filled: !0, sx: { fontSize: n, ...Ma } }) }), Yr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(
|
26046
|
+
) }), zr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(Ds, { color: "error", filled: !0, sx: { fontSize: n, ...Ma } }) }), Yr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(da, { color: "success", filled: !0, sx: { fontSize: n, ...Ma } }) }), Q0 = A(
|
26047
26047
|
({ day: e, outsideCurrentMonth: n, ...i }) => {
|
26048
26048
|
const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { recurrences: o, setSelectedDay: s } = Pt(), d = g.useMemo(
|
26049
26049
|
() => o.filter((f) => r.includes(f.accountGuid)),
|
@@ -26098,7 +26098,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26098
26098
|
}
|
26099
26099
|
);
|
26100
26100
|
}
|
26101
|
-
),
|
26101
|
+
), Ki = ({ icon: e, label: n }) => /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
26102
26102
|
/* @__PURE__ */ t(e, {}),
|
26103
26103
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: n })
|
26104
26104
|
] }), J0 = A(() => {
|
@@ -26113,18 +26113,18 @@ const Pi = g.createContext(null), E0 = ({
|
|
26113
26113
|
justifyContent: "center",
|
26114
26114
|
mt: 12,
|
26115
26115
|
children: [
|
26116
|
-
/* @__PURE__ */ t(
|
26117
|
-
/* @__PURE__ */ t(
|
26118
|
-
/* @__PURE__ */ t(
|
26119
|
-
/* @__PURE__ */ t(
|
26116
|
+
/* @__PURE__ */ t(Ki, { icon: Vr, label: e.expense }),
|
26117
|
+
/* @__PURE__ */ t(Ki, { icon: Kr, label: e.income }),
|
26118
|
+
/* @__PURE__ */ t(Ki, { icon: zr, label: e.missed }),
|
26119
|
+
/* @__PURE__ */ t(Ki, { icon: Yr, label: e.paid })
|
26120
26120
|
]
|
26121
26121
|
}
|
26122
26122
|
);
|
26123
26123
|
}), bs = 58, hl = A(() => {
|
26124
26124
|
const e = pe(), { onEvent: n } = z(), { selectedDay: i } = Pt(), [a, r] = g.useState(
|
26125
|
-
|
26125
|
+
Qi(/* @__PURE__ */ new Date()) * hn + bs
|
26126
26126
|
), o = (c) => {
|
26127
|
-
r(
|
26127
|
+
r(Qi(c) * hn + bs), n(W.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
26128
26128
|
}, s = /* @__PURE__ */ t(
|
26129
26129
|
li,
|
26130
26130
|
{
|
@@ -26274,7 +26274,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26274
26274
|
width: "100%"
|
26275
26275
|
},
|
26276
26276
|
children: [
|
26277
|
-
u && /* @__PURE__ */ t(
|
26277
|
+
u && /* @__PURE__ */ t(da, { color: "success", filled: !0, size: 12 }),
|
26278
26278
|
h && /* @__PURE__ */ t(Ds, { color: "error", filled: !0, size: 12 }),
|
26279
26279
|
/* @__PURE__ */ t(p, { bold: !0, color: "text.secondary", variant: "caption", children: C })
|
26280
26280
|
]
|
@@ -26649,7 +26649,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26649
26649
|
donutData: s,
|
26650
26650
|
totalAmount: o
|
26651
26651
|
};
|
26652
|
-
},
|
26652
|
+
}, oa = ({ amount: e, label: n }) => /* @__PURE__ */ l(b, { direction: "column", children: [
|
26653
26653
|
/* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: n }),
|
26654
26654
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: B(e, "0,0") })
|
26655
26655
|
] }), rb = ({
|
@@ -26705,7 +26705,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26705
26705
|
}
|
26706
26706
|
)
|
26707
26707
|
] }) }) });
|
26708
|
-
},
|
26708
|
+
}, sa = A(rb), Ss = ({ data: e, onSelected: n, selectedId: i }) => /* @__PURE__ */ t(b, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: e.categoryData.map((a) => /* @__PURE__ */ l(
|
26709
26709
|
b,
|
26710
26710
|
{
|
26711
26711
|
alignItems: "center",
|
@@ -26763,7 +26763,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26763
26763
|
Ve,
|
26764
26764
|
{
|
26765
26765
|
label: /* @__PURE__ */ t(
|
26766
|
-
|
26766
|
+
oa,
|
26767
26767
|
{
|
26768
26768
|
amount: m.totalAmount,
|
26769
26769
|
label: n.spend_tab_title
|
@@ -26776,7 +26776,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26776
26776
|
Ve,
|
26777
26777
|
{
|
26778
26778
|
label: /* @__PURE__ */ t(
|
26779
|
-
|
26779
|
+
oa,
|
26780
26780
|
{
|
26781
26781
|
amount: C.totalAmount,
|
26782
26782
|
label: n.income_tab_title
|
@@ -26788,7 +26788,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26788
26788
|
] }),
|
26789
26789
|
u === 0 && /* @__PURE__ */ t(M, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
26790
26790
|
/* @__PURE__ */ t(
|
26791
|
-
|
26791
|
+
sa,
|
26792
26792
|
{
|
26793
26793
|
data: m,
|
26794
26794
|
onSelected: E,
|
@@ -26807,7 +26807,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26807
26807
|
] }) }),
|
26808
26808
|
u === 1 && /* @__PURE__ */ t(M, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
26809
26809
|
/* @__PURE__ */ t(
|
26810
|
-
|
26810
|
+
sa,
|
26811
26811
|
{
|
26812
26812
|
data: C,
|
26813
26813
|
isIncome: !0,
|
@@ -26887,7 +26887,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26887
26887
|
}
|
26888
26888
|
),
|
26889
26889
|
/* @__PURE__ */ t(G, {}),
|
26890
|
-
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(
|
26890
|
+
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(Ca, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
26891
26891
|
o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
26892
26892
|
X,
|
26893
26893
|
{
|
@@ -26930,7 +26930,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26930
26930
|
px: 8,
|
26931
26931
|
children: [
|
26932
26932
|
c && /* @__PURE__ */ t(
|
26933
|
-
|
26933
|
+
sa,
|
26934
26934
|
{
|
26935
26935
|
data: {
|
26936
26936
|
categoryData: [],
|
@@ -26946,7 +26946,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26946
26946
|
}
|
26947
26947
|
),
|
26948
26948
|
!c && /* @__PURE__ */ t(
|
26949
|
-
|
26949
|
+
sa,
|
26950
26950
|
{
|
26951
26951
|
data: e,
|
26952
26952
|
onSelected: n,
|
@@ -27020,7 +27020,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
27020
27020
|
Ve,
|
27021
27021
|
{
|
27022
27022
|
label: /* @__PURE__ */ t(
|
27023
|
-
|
27023
|
+
oa,
|
27024
27024
|
{
|
27025
27025
|
amount: v.totalAmount,
|
27026
27026
|
label: r.spend_tab_title
|
@@ -27033,7 +27033,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
27033
27033
|
Ve,
|
27034
27034
|
{
|
27035
27035
|
label: /* @__PURE__ */ t(
|
27036
|
-
|
27036
|
+
oa,
|
27037
27037
|
{
|
27038
27038
|
amount: w.totalAmount,
|
27039
27039
|
label: r.income_tab_title
|
@@ -27106,7 +27106,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
27106
27106
|
children: /* @__PURE__ */ t(M, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(gb, {}) })
|
27107
27107
|
}
|
27108
27108
|
);
|
27109
|
-
}, C4 = A(mb), pb = (e) => Gn[e] ?? Gn.default, Cb = (e) =>
|
27109
|
+
}, C4 = A(mb), pb = (e) => Gn[e] ?? Gn.default, Cb = (e) => ba[e];
|
27110
27110
|
function fb(e, n) {
|
27111
27111
|
const i = [], a = new Date(e);
|
27112
27112
|
for (; a <= n; ) {
|
@@ -27145,7 +27145,7 @@ const bb = (e) => e.reduce((i, a) => {
|
|
27145
27145
|
const n = e.row[e.field];
|
27146
27146
|
return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ye, { amount: n, variant: "Small" }) });
|
27147
27147
|
}, Tb = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
27148
|
-
const { categories: i } = I(), a =
|
27148
|
+
const { categories: i } = I(), a = ba[e];
|
27149
27149
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
27150
27150
|
/* @__PURE__ */ t(
|
27151
27151
|
M,
|
@@ -27381,7 +27381,7 @@ const bb = (e) => e.reduce((i, a) => {
|
|
27381
27381
|
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: he })
|
27382
27382
|
] }),
|
27383
27383
|
/* @__PURE__ */ t(
|
27384
|
-
|
27384
|
+
la,
|
27385
27385
|
{
|
27386
27386
|
exclusive: !0,
|
27387
27387
|
onChange: V,
|
@@ -27523,7 +27523,7 @@ export {
|
|
27523
27523
|
G2 as BarChart,
|
27524
27524
|
ri as BeatApi,
|
27525
27525
|
O0 as BeatCard,
|
27526
|
-
|
27526
|
+
zi as BottomActions,
|
27527
27527
|
s4 as BubbleBudgetsMiniWidget,
|
27528
27528
|
c4 as BubbleBudgetsWidget,
|
27529
27529
|
Mu as Calendar,
|
@@ -27536,7 +27536,7 @@ export {
|
|
27536
27536
|
Y2 as CashflowWidget,
|
27537
27537
|
_o as CategoryApi,
|
27538
27538
|
Gn as CategoryColors,
|
27539
|
-
|
27539
|
+
ba as CategoryGuidToName,
|
27540
27540
|
N as CategoryGuids,
|
27541
27541
|
ou as CategoryIcon,
|
27542
27542
|
uc as CategoryRow,
|
@@ -27549,14 +27549,14 @@ export {
|
|
27549
27549
|
r4 as ConnectMiniWidget,
|
27550
27550
|
Kn as ConnectionStatus,
|
27551
27551
|
ht as ConnectionStatusEnums,
|
27552
|
-
|
27552
|
+
Ji as CurrencyCodes,
|
27553
27553
|
en as CurrencyInput,
|
27554
27554
|
Ye as CurrencyText,
|
27555
27555
|
te as DATE_FORMATS_INTL,
|
27556
27556
|
Us as DEFAULT_DONUT_SIZE,
|
27557
27557
|
Vs as DEFAULT_STROKE_WIDTH,
|
27558
27558
|
l4 as Dashboard,
|
27559
|
-
|
27559
|
+
Yi as DashboardLocation,
|
27560
27560
|
$n as DataRow,
|
27561
27561
|
bo as DateRangeSelector,
|
27562
27562
|
Lc as DebtsChart,
|
@@ -27587,7 +27587,7 @@ export {
|
|
27587
27587
|
uC as HelpWidget,
|
27588
27588
|
Cr as INCOME_ACCOUNT_TYPES,
|
27589
27589
|
Xt as IconBacking,
|
27590
|
-
|
27590
|
+
ia as InformationTooltip,
|
27591
27591
|
h4 as InsightsMicroWidget,
|
27592
27592
|
E0 as InsightsMicroWidgetDataProvider,
|
27593
27593
|
d4 as InvestmentsWidget,
|
@@ -27647,7 +27647,7 @@ export {
|
|
27647
27647
|
D_ as ScheduledPaymentTypes,
|
27648
27648
|
go as ScheduledPaymentsApi,
|
27649
27649
|
R_ as ScreenSize,
|
27650
|
-
|
27650
|
+
Bi as SearchBox,
|
27651
27651
|
So as SelectionBox,
|
27652
27652
|
ns as SettingsApi,
|
27653
27653
|
w1 as SettingsStore,
|
@@ -27667,7 +27667,7 @@ export {
|
|
27667
27667
|
ti as ToggleListItem,
|
27668
27668
|
pi as TopActions,
|
27669
27669
|
K as TrackType,
|
27670
|
-
|
27670
|
+
aa as TransactionApi,
|
27671
27671
|
qn as TransactionDetails,
|
27672
27672
|
mn as TransactionList,
|
27673
27673
|
Aa as TransactionRow,
|
@@ -27696,7 +27696,7 @@ export {
|
|
27696
27696
|
B as formatCurrency,
|
27697
27697
|
ae as formatDate,
|
27698
27698
|
qs as formatOrdinal,
|
27699
|
-
|
27699
|
+
Ea as formatPercentage,
|
27700
27700
|
Xs as fromTimestampToMonthYear,
|
27701
27701
|
wc as getAccountBalanceDetails,
|
27702
27702
|
Wg as getAccountDetailFields,
|
@@ -27712,7 +27712,7 @@ export {
|
|
27712
27712
|
ir as isValidNumber,
|
27713
27713
|
Re as useAccountStore,
|
27714
27714
|
$t as useAccountUiStore,
|
27715
|
-
|
27715
|
+
Gi as useAppConfig,
|
27716
27716
|
lt as useBudgetsStore,
|
27717
27717
|
Tr as useCashflowStore,
|
27718
27718
|
Ke as useCategoryStore,
|
@@ -27727,7 +27727,7 @@ export {
|
|
27727
27727
|
ce as useGlobalUiStore,
|
27728
27728
|
ot as useGoalStore,
|
27729
27729
|
Ar as useHelpStore,
|
27730
|
-
|
27730
|
+
ta as useHoldingStore,
|
27731
27731
|
Vu as useMerchantStore,
|
27732
27732
|
Ku as useNetWorthStore,
|
27733
27733
|
ic as useNotificationStore,
|