@mx-cartographer/experiences 6.2.7-alpha.al4 → 6.2.8-alpha.al0
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 +229 -224
- 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,
|
@@ -3243,7 +3243,9 @@ const Dn = ({
|
|
3243
3243
|
const [C, { height: f, width: E }] = oc(), { onEvent: y } = z(), { isDesktop: T, isLargeDesktop: v, isMobile: w, isTablet: x } = ve(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids: $, setSelectedAccountGuids: O } = ce(), { common: L } = I(), U = () => {
|
3244
3244
|
d && (d(), y(W.WIDGET_BACK_CLICK));
|
3245
3245
|
};
|
3246
|
-
if (
|
3246
|
+
if (g.useEffect(() => {
|
3247
|
+
console.log("onback click is", d);
|
3248
|
+
}, []), !D)
|
3247
3249
|
return /* @__PURE__ */ t(ue, {});
|
3248
3250
|
const P = {
|
3249
3251
|
accountFilterOptionsCopy: {
|
@@ -3414,7 +3416,7 @@ const Dn = ({
|
|
3414
3416
|
] })
|
3415
3417
|
}
|
3416
3418
|
);
|
3417
|
-
},
|
3419
|
+
}, na = A(n_);
|
3418
3420
|
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
3421
|
const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
3420
3422
|
loadWidgetProps: e,
|
@@ -3455,8 +3457,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3455
3457
|
},
|
3456
3458
|
title: a,
|
3457
3459
|
children: /* @__PURE__ */ l("div", { id: yo, children: [
|
3458
|
-
u && /* @__PURE__ */ t(
|
3459
|
-
d && /* @__PURE__ */ t(
|
3460
|
+
u && /* @__PURE__ */ t(na, { status: Bn.Error }),
|
3461
|
+
d && /* @__PURE__ */ t(na, { status: Bn.Loading })
|
3460
3462
|
] })
|
3461
3463
|
}
|
3462
3464
|
);
|
@@ -3479,7 +3481,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3479
3481
|
const D = g.useRef(Cd());
|
3480
3482
|
if (e)
|
3481
3483
|
switch (hu()) {
|
3482
|
-
case
|
3484
|
+
case Ji.CAD:
|
3483
3485
|
R = w;
|
3484
3486
|
break;
|
3485
3487
|
default:
|
@@ -3587,8 +3589,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3587
3589
|
An,
|
3588
3590
|
{
|
3589
3591
|
InputProps: {
|
3590
|
-
startAdornment: /* @__PURE__ */ t(
|
3591
|
-
endAdornment: /* @__PURE__ */ t(
|
3592
|
+
startAdornment: /* @__PURE__ */ t(qi, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
|
3593
|
+
endAdornment: /* @__PURE__ */ t(qi, { position: "end", sx: { p: 0 }, children: r ? s : null })
|
3592
3594
|
},
|
3593
3595
|
"aria-label": e,
|
3594
3596
|
name: "search",
|
@@ -3598,7 +3600,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3598
3600
|
value: r
|
3599
3601
|
}
|
3600
3602
|
) });
|
3601
|
-
},
|
3603
|
+
}, Bi = A(r_), So = ({
|
3602
3604
|
checked: e = !1,
|
3603
3605
|
label: n,
|
3604
3606
|
sx: i = {},
|
@@ -3701,7 +3703,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3701
3703
|
r,
|
3702
3704
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 }) })
|
3703
3705
|
] }) }) : /* @__PURE__ */ t(X, { disableGutters: !1, disablePadding: !1, children: r });
|
3704
|
-
},
|
3706
|
+
}, ia = ({
|
3705
3707
|
body: e,
|
3706
3708
|
iconName: n = "info",
|
3707
3709
|
title: i
|
@@ -3734,7 +3736,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3734
3736
|
)
|
3735
3737
|
}
|
3736
3738
|
), sc = ({ description: e, label: n, title: i }) => {
|
3737
|
-
const { config: a } =
|
3739
|
+
const { config: a } = Gi(), [r, o] = g.useState(!1);
|
3738
3740
|
if (a.show_connections_widget_in_master)
|
3739
3741
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
3740
3742
|
/* @__PURE__ */ l(Gt, { sx: { m: 24 }, children: [
|
@@ -3910,7 +3912,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3910
3912
|
return /* @__PURE__ */ t(
|
3911
3913
|
X,
|
3912
3914
|
{
|
3913
|
-
secondaryAction: /* @__PURE__ */ t(
|
3915
|
+
secondaryAction: /* @__PURE__ */ t(ua, { checked: e, onChange: a }),
|
3914
3916
|
sx: {
|
3915
3917
|
"& .MuiListItemSecondaryAction-root": {
|
3916
3918
|
right: s ? 24 : 64
|
@@ -3950,7 +3952,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3950
3952
|
X,
|
3951
3953
|
{
|
3952
3954
|
secondaryAction: /* @__PURE__ */ t(
|
3953
|
-
|
3955
|
+
ua,
|
3954
3956
|
{
|
3955
3957
|
checked: e,
|
3956
3958
|
disabled: n,
|
@@ -4385,7 +4387,7 @@ const ui = () => {
|
|
4385
4387
|
/* @__PURE__ */ t(Ye, { amount: x, variant: "H2" }),
|
4386
4388
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
4387
4389
|
/* @__PURE__ */ t(Oe, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4388
|
-
/* @__PURE__ */ t(
|
4390
|
+
/* @__PURE__ */ t(ia, { body: c.tooltip_body, title: c.tooltip_title })
|
4389
4391
|
] })
|
4390
4392
|
] }),
|
4391
4393
|
/* @__PURE__ */ t(b, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(Z, { children: [
|
@@ -4475,7 +4477,7 @@ const ui = () => {
|
|
4475
4477
|
}
|
4476
4478
|
) : /* @__PURE__ */ t(ue, {});
|
4477
4479
|
}, F2 = A(b_);
|
4478
|
-
class
|
4480
|
+
class aa {
|
4479
4481
|
fetchInstance;
|
4480
4482
|
constructor(n, i) {
|
4481
4483
|
this.fetchInstance = new rt(n, i);
|
@@ -4557,7 +4559,7 @@ class ia {
|
|
4557
4559
|
updateTag = async (n) => this.fetchInstance.put(`${k.TAGS}/${n.guid}`, n).then((i) => i.tag);
|
4558
4560
|
updateTransaction = async (n) => this.fetchInstance.put(`${k.TRANSACTIONS}/${n.guid}`, n).then((i) => i.transaction);
|
4559
4561
|
}
|
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 || {}),
|
4562
|
+
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
4563
|
const y_ = [
|
4562
4564
|
0,
|
4563
4565
|
1,
|
@@ -5014,7 +5016,7 @@ let O_ = class {
|
|
5014
5016
|
class L_ {
|
5015
5017
|
globalStore;
|
5016
5018
|
uiStore;
|
5017
|
-
api = new
|
5019
|
+
api = new aa("/", "");
|
5018
5020
|
beatApi = new ri("/", "");
|
5019
5021
|
isLoading = !0;
|
5020
5022
|
taggings = [];
|
@@ -5028,7 +5030,7 @@ class L_ {
|
|
5028
5030
|
filter = {};
|
5029
5031
|
onAnalyticEvent = T_;
|
5030
5032
|
constructor(n) {
|
5031
|
-
this.globalStore = n, this.uiStore = new O_(), this.api = new
|
5033
|
+
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
5034
|
}
|
5033
5035
|
loadTransactionData = async () => {
|
5034
5036
|
await Promise.all([
|
@@ -5224,7 +5226,7 @@ const It = () => {
|
|
5224
5226
|
"Original Description": i.feed_description,
|
5225
5227
|
Amount: `${i.amount}`,
|
5226
5228
|
Type: i.transaction_type === St.CREDIT ? "Credit" : "Debit",
|
5227
|
-
"Parent Category":
|
5229
|
+
"Parent Category": ba[i.top_level_category_guid || ""],
|
5228
5230
|
Category: i.category,
|
5229
5231
|
Account: i.account,
|
5230
5232
|
Tags: B_(i, n),
|
@@ -5691,7 +5693,7 @@ const J_ = ({
|
|
5691
5693
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5692
5694
|
}
|
5693
5695
|
),
|
5694
|
-
s && y && /* @__PURE__ */ t(
|
5696
|
+
s && y && /* @__PURE__ */ t(pa, { fontSize: "small" }),
|
5695
5697
|
!T && /* @__PURE__ */ t(Fd, { label: d })
|
5696
5698
|
]
|
5697
5699
|
}
|
@@ -5742,7 +5744,7 @@ const J_ = ({
|
|
5742
5744
|
}, sh = A(oh), ch = ({ categories: e, parentCategory: n }) => {
|
5743
5745
|
const { expandedGuid: i, searchValue: a } = pn(), r = n.guid === i, o = !!a;
|
5744
5746
|
return /* @__PURE__ */ t(
|
5745
|
-
|
5747
|
+
Ca,
|
5746
5748
|
{
|
5747
5749
|
in: r || o,
|
5748
5750
|
sx: { backgroundColor: "background.default" },
|
@@ -5788,7 +5790,7 @@ const J_ = ({
|
|
5788
5790
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5789
5791
|
}
|
5790
5792
|
),
|
5791
|
-
/* @__PURE__ */ t(Ct, { children: s || a ? /* @__PURE__ */ t(
|
5793
|
+
/* @__PURE__ */ t(Ct, { children: s || a ? /* @__PURE__ */ t(ha, {}) : /* @__PURE__ */ t(_a, {}) })
|
5792
5794
|
]
|
5793
5795
|
},
|
5794
5796
|
e.guid
|
@@ -5846,7 +5848,7 @@ const J_ = ({
|
|
5846
5848
|
e && m(e), C(i), f(a), E(r);
|
5847
5849
|
}, [e, i, a, r]), d ? /* @__PURE__ */ l(b, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
|
5848
5850
|
/* @__PURE__ */ t(
|
5849
|
-
|
5851
|
+
Bi,
|
5850
5852
|
{
|
5851
5853
|
ariaLabel: c.search_aria,
|
5852
5854
|
cancelAriaLabel: c.cancel_search_aria,
|
@@ -6070,7 +6072,7 @@ class bh {
|
|
6070
6072
|
}
|
6071
6073
|
};
|
6072
6074
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
6073
|
-
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ??
|
6075
|
+
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ba[n];
|
6074
6076
|
}
|
6075
6077
|
const hc = ({ transaction: e }) => {
|
6076
6078
|
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 +6335,7 @@ const hc = ({ transaction: e }) => {
|
|
6333
6335
|
}
|
6334
6336
|
),
|
6335
6337
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6336
|
-
|
6338
|
+
ua,
|
6337
6339
|
{
|
6338
6340
|
checked: d,
|
6339
6341
|
id: "hide-transaction",
|
@@ -6476,7 +6478,7 @@ const hc = ({ transaction: e }) => {
|
|
6476
6478
|
/* @__PURE__ */ t(
|
6477
6479
|
ee,
|
6478
6480
|
{
|
6479
|
-
endIcon: /* @__PURE__ */ t(
|
6481
|
+
endIcon: /* @__PURE__ */ t(_a, {}),
|
6480
6482
|
onClick: () => h(!0),
|
6481
6483
|
startIcon: /* @__PURE__ */ t(kt, { categoryGuid: r.top_level_category_guid }),
|
6482
6484
|
sx: { px: o.Spacing.Small, py: o.Spacing.XSmall },
|
@@ -6491,7 +6493,7 @@ const hc = ({ transaction: e }) => {
|
|
6491
6493
|
gap: o.Spacing.XSmall,
|
6492
6494
|
p: o.Spacing.Small,
|
6493
6495
|
children: [
|
6494
|
-
/* @__PURE__ */ t(
|
6496
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: o.FontSize.Body } }),
|
6495
6497
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.split_transaction_errors_select_category })
|
6496
6498
|
]
|
6497
6499
|
}
|
@@ -6532,7 +6534,7 @@ const hc = ({ transaction: e }) => {
|
|
6532
6534
|
gap: o.Spacing.XSmall,
|
6533
6535
|
py: o.Spacing.Small,
|
6534
6536
|
children: [
|
6535
|
-
/* @__PURE__ */ t(
|
6537
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: o.FontSize.Body } }),
|
6536
6538
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.split_transaction_errors_enter_an_amount })
|
6537
6539
|
]
|
6538
6540
|
}
|
@@ -6590,7 +6592,7 @@ const hc = ({ transaction: e }) => {
|
|
6590
6592
|
gap: s.Spacing.XSmall,
|
6591
6593
|
p: s.Spacing.Medium,
|
6592
6594
|
children: [
|
6593
|
-
/* @__PURE__ */ t(
|
6595
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: s.FontSize.Body } }),
|
6594
6596
|
/* @__PURE__ */ t(p, { variant: "Small", children: _ })
|
6595
6597
|
]
|
6596
6598
|
}
|
@@ -6802,8 +6804,8 @@ const hc = ({ transaction: e }) => {
|
|
6802
6804
|
An,
|
6803
6805
|
{
|
6804
6806
|
InputProps: {
|
6805
|
-
startAdornment: /* @__PURE__ */ t(
|
6806
|
-
endAdornment: /* @__PURE__ */ t(
|
6807
|
+
startAdornment: /* @__PURE__ */ t(qi, { position: "start", children: /* @__PURE__ */ t(Ld, { color: "disabled" }) }),
|
6808
|
+
endAdornment: /* @__PURE__ */ t(qi, { position: "end", sx: { padding: 0 }, children: n ? o : null })
|
6807
6809
|
},
|
6808
6810
|
"aria-label": i.search_aria,
|
6809
6811
|
name: "search",
|
@@ -6861,7 +6863,7 @@ const hc = ({ transaction: e }) => {
|
|
6861
6863
|
onClick: () => e(i.guid),
|
6862
6864
|
role: "checkbox",
|
6863
6865
|
children: [
|
6864
|
-
/* @__PURE__ */ t(Ct, { sx: { ml: 0 }, children: /* @__PURE__ */ t(
|
6866
|
+
/* @__PURE__ */ t(Ct, { sx: { ml: 0 }, children: /* @__PURE__ */ t(Xi, { checked: n.includes(i.guid), edge: "start", tabIndex: -1 }) }),
|
6865
6867
|
/* @__PURE__ */ t(re, { children: i.name })
|
6866
6868
|
]
|
6867
6869
|
}
|
@@ -7106,9 +7108,9 @@ const hc = ({ transaction: e }) => {
|
|
7106
7108
|
/* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
7107
7109
|
/* @__PURE__ */ t(Tt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(ie, { children: [
|
7108
7110
|
e.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
7109
|
-
s ===
|
7110
|
-
s ===
|
7111
|
-
s ===
|
7111
|
+
s === zi.SplitTransaction && /* @__PURE__ */ t(Oh, { transaction: i }),
|
7112
|
+
s === zi.HideTransaction && /* @__PURE__ */ t(Ih, { transaction: i }),
|
7113
|
+
s === zi.MerchantLogo && /* @__PURE__ */ t(Th, { transaction: i }),
|
7112
7114
|
/* @__PURE__ */ t(G, { variant: c < e.length - 1 ? "inset" : "fullWidth" })
|
7113
7115
|
] }, s)),
|
7114
7116
|
i.is_manual && /* @__PURE__ */ t(Eh, { transaction: i })
|
@@ -7213,13 +7215,13 @@ const hc = ({ transaction: e }) => {
|
|
7213
7215
|
An,
|
7214
7216
|
{
|
7215
7217
|
InputLabelProps: { shrink: !0 },
|
7216
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
7218
|
+
SelectProps: { defaultValue: -1, IconComponent: ha },
|
7217
7219
|
label: i.manual_transaction_select_an_account,
|
7218
7220
|
onChange: (y) => E(y.target.value),
|
7219
7221
|
placeholder: i.manual_transaction_select,
|
7220
7222
|
select: !0,
|
7221
7223
|
sx: { bgcolor: "background.paper" },
|
7222
|
-
children: u.map((y) => /* @__PURE__ */ t(
|
7224
|
+
children: u.map((y) => /* @__PURE__ */ t(ma, { value: y.value, children: y.label }, y.value))
|
7223
7225
|
}
|
7224
7226
|
)
|
7225
7227
|
] }),
|
@@ -7375,7 +7377,7 @@ const hc = ({ transaction: e }) => {
|
|
7375
7377
|
title: D.transactions_title,
|
7376
7378
|
children: [
|
7377
7379
|
/* @__PURE__ */ t(M, { mt: 16, children: /* @__PURE__ */ t(
|
7378
|
-
|
7380
|
+
Bi,
|
7379
7381
|
{
|
7380
7382
|
onChange: Ba,
|
7381
7383
|
placeholder: D.action_bar_search_placeholder,
|
@@ -7758,7 +7760,7 @@ const hc = ({ transaction: e }) => {
|
|
7758
7760
|
gridRow: 1,
|
7759
7761
|
gridColumn: 1,
|
7760
7762
|
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(
|
7763
|
+
}, 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
7764
|
let a = n && hr(n) ? S(e.monthly_ordinal, wt(n, "do")) : e.monthly;
|
7763
7765
|
switch (i) {
|
7764
7766
|
case Q.EveryQuarter:
|
@@ -7912,7 +7914,7 @@ const hc = ({ transaction: e }) => {
|
|
7912
7914
|
}
|
7913
7915
|
)
|
7914
7916
|
] });
|
7915
|
-
},
|
7917
|
+
}, ra = A(cg), yc = (e, n, i) => {
|
7916
7918
|
const a = {
|
7917
7919
|
account_guid: e.account_guid,
|
7918
7920
|
amount: e.amount,
|
@@ -7990,7 +7992,7 @@ const hc = ({ transaction: e }) => {
|
|
7990
7992
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
7991
7993
|
n && /* @__PURE__ */ t(Oe, { sx: { mx: 24 }, children: n }),
|
7992
7994
|
/* @__PURE__ */ t(
|
7993
|
-
|
7995
|
+
Bi,
|
7994
7996
|
{
|
7995
7997
|
ariaLabel: r.select_transaction_search_aria,
|
7996
7998
|
cancelAriaLabel: r.select_transaction_search_cancel_aria,
|
@@ -8023,19 +8025,19 @@ const hc = ({ transaction: e }) => {
|
|
8023
8025
|
];
|
8024
8026
|
g.useEffect(() => {
|
8025
8027
|
const u = Me(s.date);
|
8026
|
-
o(
|
8028
|
+
o(ea(u)), r(Q.EveryMonth);
|
8027
8029
|
}, [s]);
|
8028
8030
|
const _ = (u) => {
|
8029
8031
|
const h = Me(s.date);
|
8030
8032
|
switch (Number(u.target.value)) {
|
8031
8033
|
case Q.EveryWeek:
|
8032
|
-
o(
|
8034
|
+
o(ya(h));
|
8033
8035
|
break;
|
8034
8036
|
case Q.EveryOtherWeek:
|
8035
8037
|
o(Ks(h));
|
8036
8038
|
break;
|
8037
8039
|
case Q.EveryMonth:
|
8038
|
-
o(
|
8040
|
+
o(ea(h));
|
8039
8041
|
break;
|
8040
8042
|
case Q.EveryOtherMonth:
|
8041
8043
|
o(zs(h));
|
@@ -8072,11 +8074,11 @@ const hc = ({ transaction: e }) => {
|
|
8072
8074
|
sx: { mx: 24 },
|
8073
8075
|
value: n,
|
8074
8076
|
variant: "outlined",
|
8075
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
8077
|
+
children: d.map((u) => /* @__PURE__ */ t(ma, { value: u.id, children: u.label }, u.id))
|
8076
8078
|
}
|
8077
8079
|
),
|
8078
8080
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
8079
|
-
|
8081
|
+
ga,
|
8080
8082
|
{
|
8081
8083
|
disablePast: !0,
|
8082
8084
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -8194,7 +8196,7 @@ const hc = ({ transaction: e }) => {
|
|
8194
8196
|
};
|
8195
8197
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
8196
8198
|
o.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8197
|
-
/* @__PURE__ */ t(
|
8199
|
+
/* @__PURE__ */ t(ra, { activity: d, onActivityClick: s, showOrdinal: !0 }),
|
8198
8200
|
/* @__PURE__ */ t(G, { variant: _ < o.length - 1 ? "inset" : "fullWidth" })
|
8199
8201
|
] }, d.scheduledPaymentGuid)),
|
8200
8202
|
/* @__PURE__ */ t(Ic, { label: e.add_expense, onAddActivity: c })
|
@@ -8313,10 +8315,10 @@ const hc = ({ transaction: e }) => {
|
|
8313
8315
|
case Q.EveryMonth:
|
8314
8316
|
a.push({
|
8315
8317
|
...c,
|
8316
|
-
expectedDate:
|
8318
|
+
expectedDate: ji(m, d)
|
8317
8319
|
}), a.push({
|
8318
8320
|
...c,
|
8319
|
-
expectedDate: gt(
|
8321
|
+
expectedDate: gt(ji(m, d), 1)
|
8320
8322
|
});
|
8321
8323
|
break;
|
8322
8324
|
case Q.EveryOtherMonth:
|
@@ -8395,7 +8397,7 @@ const hc = ({ transaction: e }) => {
|
|
8395
8397
|
};
|
8396
8398
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
8397
8399
|
c.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8398
|
-
/* @__PURE__ */ t(
|
8400
|
+
/* @__PURE__ */ t(ra, { activity: u, onActivityClick: d, showOrdinal: !0 }),
|
8399
8401
|
/* @__PURE__ */ t(G, { variant: h < c.length - 1 ? "inset" : "fullWidth" })
|
8400
8402
|
] }, u.sequenceGuid)),
|
8401
8403
|
/* @__PURE__ */ t(Ic, { isIncome: !0, label: e.add_income, onAddActivity: _ })
|
@@ -8438,7 +8440,7 @@ const hc = ({ transaction: e }) => {
|
|
8438
8440
|
}, xc = A(yg), gi = (e, n) => e + n.amount, Ua = (e) => e.activityType === Qe.Income && ai(e.expectedDate, {
|
8439
8441
|
start: Fe(le()),
|
8440
8442
|
end: Xe(le())
|
8441
|
-
}),
|
8443
|
+
}), Wi = (e) => e.activityType === Qe.Expense && ai(e.expectedDate, {
|
8442
8444
|
start: Fe(le()),
|
8443
8445
|
end: Xe(le())
|
8444
8446
|
}), Va = (e) => e.occurredOnDate && ai(e.occurredOnDate, {
|
@@ -8500,7 +8502,7 @@ const hc = ({ transaction: e }) => {
|
|
8500
8502
|
)
|
8501
8503
|
}
|
8502
8504
|
);
|
8503
|
-
}, Sg = A(Eg),
|
8505
|
+
}, Sg = A(Eg), Ui = ({ icon: e, label: n }) => /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
8504
8506
|
/* @__PURE__ */ t(e, {}),
|
8505
8507
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: n })
|
8506
8508
|
] }), Tg = () => {
|
@@ -8515,18 +8517,18 @@ const hc = ({ transaction: e }) => {
|
|
8515
8517
|
justifyContent: "center",
|
8516
8518
|
mt: 12,
|
8517
8519
|
children: [
|
8518
|
-
/* @__PURE__ */ t(
|
8519
|
-
/* @__PURE__ */ t(
|
8520
|
-
/* @__PURE__ */ t(
|
8521
|
-
/* @__PURE__ */ t(
|
8520
|
+
/* @__PURE__ */ t(Ui, { icon: wr, label: e.expense }),
|
8521
|
+
/* @__PURE__ */ t(Ui, { icon: Nr, label: e.income }),
|
8522
|
+
/* @__PURE__ */ t(Ui, { icon: Dr, label: e.missed }),
|
8523
|
+
/* @__PURE__ */ t(Ui, { icon: Rr, label: e.paid })
|
8522
8524
|
]
|
8523
8525
|
}
|
8524
8526
|
);
|
8525
8527
|
}, Ag = A(Tg), ko = 58, Ig = () => {
|
8526
8528
|
const e = tt(), { onEvent: n } = z(), { selectedDay: i } = nt(), [a, r] = g.useState(
|
8527
|
-
|
8529
|
+
Qi(/* @__PURE__ */ new Date()) * hn + ko
|
8528
8530
|
), o = (c) => {
|
8529
|
-
r(
|
8531
|
+
r(Qi(c) * hn + ko), n(W.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
8530
8532
|
}, s = /* @__PURE__ */ t(
|
8531
8533
|
li,
|
8532
8534
|
{
|
@@ -8612,7 +8614,7 @@ const hc = ({ transaction: e }) => {
|
|
8612
8614
|
] }),
|
8613
8615
|
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
8616
|
/* @__PURE__ */ t(
|
8615
|
-
|
8617
|
+
ra,
|
8616
8618
|
{
|
8617
8619
|
activity: d,
|
8618
8620
|
isMini: n,
|
@@ -8632,7 +8634,7 @@ const hc = ({ transaction: e }) => {
|
|
8632
8634
|
sx: { width: "100%" },
|
8633
8635
|
children: d.activities.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8634
8636
|
/* @__PURE__ */ t(
|
8635
|
-
|
8637
|
+
ra,
|
8636
8638
|
{
|
8637
8639
|
activity: u,
|
8638
8640
|
isMini: n,
|
@@ -8689,7 +8691,7 @@ const hc = ({ transaction: e }) => {
|
|
8689
8691
|
selectedDayActivities: c,
|
8690
8692
|
setSelectedDay: d,
|
8691
8693
|
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(
|
8694
|
+
} = 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
8695
|
h(P);
|
8694
8696
|
}, O = (U) => {
|
8695
8697
|
m(W.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
@@ -9074,7 +9076,7 @@ const Gg = {
|
|
9074
9076
|
gridRow: 1,
|
9075
9077
|
gridColumn: 1,
|
9076
9078
|
zIndex: 2
|
9077
|
-
}, Bg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(
|
9079
|
+
}, 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
9080
|
const i = [
|
9079
9081
|
{
|
9080
9082
|
event: "account_details_click_account_name",
|
@@ -9132,7 +9134,7 @@ const Gg = {
|
|
9132
9134
|
placeholder: S(n.enter_value, a),
|
9133
9135
|
type: xt.Input,
|
9134
9136
|
validation: (o) => ir(o) ? "" : n.error_amount_is_invalid,
|
9135
|
-
valueFormatter: (o) => ir(o) ?
|
9137
|
+
valueFormatter: (o) => ir(o) ? Ea(o / 100) : o
|
9136
9138
|
});
|
9137
9139
|
}
|
9138
9140
|
return Mr(e) && (i.push({
|
@@ -9491,7 +9493,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9491
9493
|
}
|
9492
9494
|
),
|
9493
9495
|
/* @__PURE__ */ t(
|
9494
|
-
|
9496
|
+
ia,
|
9495
9497
|
{
|
9496
9498
|
body: i.table_tooltip_body,
|
9497
9499
|
title: i.table_tooltip_title
|
@@ -9746,7 +9748,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9746
9748
|
isTotal: !0,
|
9747
9749
|
label: a.remaining_cash,
|
9748
9750
|
tooltip: /* @__PURE__ */ t(
|
9749
|
-
|
9751
|
+
ia,
|
9750
9752
|
{
|
9751
9753
|
body: a.remaining_income_tooltip_body,
|
9752
9754
|
title: a.remaining_income_tooltip_title
|
@@ -9783,7 +9785,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9783
9785
|
amount: E,
|
9784
9786
|
label: a.remaining_cash,
|
9785
9787
|
tooltip: /* @__PURE__ */ t(
|
9786
|
-
|
9788
|
+
ia,
|
9787
9789
|
{
|
9788
9790
|
body: a.remaining_income_tooltip_body,
|
9789
9791
|
title: a.remaining_income_tooltip_title
|
@@ -10058,7 +10060,10 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10058
10060
|
]
|
10059
10061
|
}
|
10060
10062
|
) : /* @__PURE__ */ t(ue, {});
|
10061
|
-
}, sm = A(om), cm = ({
|
10063
|
+
}, sm = A(om), cm = ({
|
10064
|
+
onBackClick: e,
|
10065
|
+
sx: n = { border: "1px solid red" }
|
10066
|
+
}) => {
|
10062
10067
|
const {
|
10063
10068
|
selectedAccounts: i,
|
10064
10069
|
selectedAccountGuids: a,
|
@@ -10247,7 +10252,7 @@ const Cn = () => {
|
|
10247
10252
|
return um(e, s, h);
|
10248
10253
|
}, [e, s, c]);
|
10249
10254
|
return /* @__PURE__ */ t(
|
10250
|
-
|
10255
|
+
ca,
|
10251
10256
|
{
|
10252
10257
|
sx: {
|
10253
10258
|
boxShadow: a.shadows[2],
|
@@ -10311,7 +10316,7 @@ const Cn = () => {
|
|
10311
10316
|
/* @__PURE__ */ t(p, { variant: "H1", children: r.snowball_drawer_savings }),
|
10312
10317
|
/* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: r.snowball_drawer_duration_description })
|
10313
10318
|
] }),
|
10314
|
-
/* @__PURE__ */ l(
|
10319
|
+
/* @__PURE__ */ l(ca, { sx: { display: "grid", py: 16, px: 24 }, children: [
|
10315
10320
|
/* @__PURE__ */ t(p, { mb: 4, variant: "H3", children: r.snowball_drawer_question }),
|
10316
10321
|
/* @__PURE__ */ t(
|
10317
10322
|
p,
|
@@ -11022,7 +11027,7 @@ const Lc = ({
|
|
11022
11027
|
onCancel: u,
|
11023
11028
|
onSave: _,
|
11024
11029
|
primaryText: n.details_interest_rate,
|
11025
|
-
secondaryText:
|
11030
|
+
secondaryText: Ea(Number(e.interest_rate) / 100),
|
11026
11031
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11027
11032
|
children: /* @__PURE__ */ t(
|
11028
11033
|
it,
|
@@ -11121,7 +11126,7 @@ const Lc = ({
|
|
11121
11126
|
onCancel: d,
|
11122
11127
|
onSave: c,
|
11123
11128
|
primaryText: n.details_interest_rate,
|
11124
|
-
secondaryText:
|
11129
|
+
secondaryText: Ea(Number(e.interest_rate) / 100),
|
11125
11130
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11126
11131
|
children: /* @__PURE__ */ t(
|
11127
11132
|
it,
|
@@ -11227,7 +11232,7 @@ const Lc = ({
|
|
11227
11232
|
/* @__PURE__ */ t(Tt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
11228
11233
|
xn,
|
11229
11234
|
{
|
11230
|
-
icon: a ? /* @__PURE__ */ t(
|
11235
|
+
icon: a ? /* @__PURE__ */ t(fa, {}) : /* @__PURE__ */ t(pa, { color: "success" }),
|
11231
11236
|
severity: "error",
|
11232
11237
|
sx: {
|
11233
11238
|
alignItems: "start",
|
@@ -11668,7 +11673,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11668
11673
|
},
|
11669
11674
|
children: [
|
11670
11675
|
/* @__PURE__ */ t(p, { color: "inherit", variant: "Small", children: u }),
|
11671
|
-
r === _ && /* @__PURE__ */ t(
|
11676
|
+
r === _ && /* @__PURE__ */ t(pa, { color: "inherit", fontSize: "small" })
|
11672
11677
|
]
|
11673
11678
|
},
|
11674
11679
|
_
|
@@ -11918,7 +11923,7 @@ function _p(e, n) {
|
|
11918
11923
|
maximumFractionDigits: 0
|
11919
11924
|
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Me(c) : /* @__PURE__ */ new Date(), _ = S(
|
11920
11925
|
e.goal_percentage,
|
11921
|
-
|
11926
|
+
Ea(a, s)
|
11922
11927
|
), u = S(
|
11923
11928
|
n.is_complete ? e.completed_label : e.goal_projection,
|
11924
11929
|
ae(d, te.MONTH_SHORT_YEAR)
|
@@ -12195,7 +12200,7 @@ const gp = (e, n) => {
|
|
12195
12200
|
}, bp = ({ goal: e }) => {
|
12196
12201
|
const { goals: n } = I();
|
12197
12202
|
return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { children: [
|
12198
|
-
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
12203
|
+
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(da, { color: "success", filled: !0, size: 20 }) }),
|
12199
12204
|
/* @__PURE__ */ t(re, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12200
12205
|
/* @__PURE__ */ l(b, { children: [
|
12201
12206
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
@@ -12352,7 +12357,7 @@ const gp = (e, n) => {
|
|
12352
12357
|
}
|
12353
12358
|
) }),
|
12354
12359
|
/* @__PURE__ */ t(G, { variant: "inset" }),
|
12355
|
-
h && /* @__PURE__ */ t(
|
12360
|
+
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
12361
|
/* @__PURE__ */ t(Ct, { sx: { mr: 8 }, children: /* @__PURE__ */ t(yt, { name: m.icon }) }),
|
12357
12362
|
/* @__PURE__ */ t(
|
12358
12363
|
re,
|
@@ -12403,7 +12408,7 @@ const gp = (e, n) => {
|
|
12403
12408
|
secondary: B(u.balance || 0, "0,0.00")
|
12404
12409
|
}
|
12405
12410
|
),
|
12406
|
-
/* @__PURE__ */ t(
|
12411
|
+
/* @__PURE__ */ t(Xi, { checked: c.some((m) => m.guid === u.guid) })
|
12407
12412
|
] }) }),
|
12408
12413
|
/* @__PURE__ */ t(G, { variant: h < e.length - 1 ? "inset" : "fullWidth" })
|
12409
12414
|
] }, u.guid))
|
@@ -12673,7 +12678,7 @@ const gp = (e, n) => {
|
|
12673
12678
|
secondaryText: `${ae(Me(i.birthday ?? 0), te.MONTH_DAY_YEAR)}`,
|
12674
12679
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
12675
12680
|
children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
12676
|
-
|
12681
|
+
ga,
|
12677
12682
|
{
|
12678
12683
|
label: n.details_birthday,
|
12679
12684
|
onChange: s,
|
@@ -13585,7 +13590,7 @@ const Vp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Kp = 50, Zo = 65, zp = ({
|
|
13585
13590
|
});
|
13586
13591
|
return g.useEffect(() => m.measure(), [a]), s ? /* @__PURE__ */ l(b, { className: "mx-mrt-lookup", children: [
|
13587
13592
|
/* @__PURE__ */ t(
|
13588
|
-
|
13593
|
+
Bi,
|
13589
13594
|
{
|
13590
13595
|
ariaLabel: o.search_aria,
|
13591
13596
|
cancelAriaLabel: o.cancel_search_aria,
|
@@ -13980,8 +13985,8 @@ const n1 = ({
|
|
13980
13985
|
},
|
13981
13986
|
title: i,
|
13982
13987
|
children: /* @__PURE__ */ l("div", { id: Eo, children: [
|
13983
|
-
u && /* @__PURE__ */ t(
|
13984
|
-
d && /* @__PURE__ */ t(
|
13988
|
+
u && /* @__PURE__ */ t(na, { status: Bn.Error }),
|
13989
|
+
d && /* @__PURE__ */ t(na, { status: Bn.Loading })
|
13985
13990
|
] })
|
13986
13991
|
}
|
13987
13992
|
);
|
@@ -13999,7 +14004,7 @@ const n1 = ({
|
|
13999
14004
|
/* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(H, { name: "expand_more", size: 24 }) })
|
14000
14005
|
] }) }),
|
14001
14006
|
/* @__PURE__ */ t(G, {}),
|
14002
|
-
/* @__PURE__ */ t(
|
14007
|
+
/* @__PURE__ */ t(Ca, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
|
14003
14008
|
/* @__PURE__ */ t(X, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
14004
14009
|
re,
|
14005
14010
|
{
|
@@ -14385,7 +14390,7 @@ const b1 = (e, n) => {
|
|
14385
14390
|
width: 8
|
14386
14391
|
}
|
14387
14392
|
};
|
14388
|
-
return /* @__PURE__ */ l(
|
14393
|
+
return /* @__PURE__ */ l(ca, { onClick: () => {
|
14389
14394
|
n(e), i({ ...e, has_been_viewed: !0 }).finally();
|
14390
14395
|
}, sx: r.card, children: [
|
14391
14396
|
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: r.dot }),
|
@@ -14481,14 +14486,14 @@ const is = "PARENT-ENTITY", x1 = (e, n) => {
|
|
14481
14486
|
class w1 {
|
14482
14487
|
globalStore;
|
14483
14488
|
api = new ns("/", "");
|
14484
|
-
transactionApi = new
|
14489
|
+
transactionApi = new aa("/", "");
|
14485
14490
|
alert = { message: "", severity: void 0 };
|
14486
14491
|
devices = [];
|
14487
14492
|
notificationProfiles = [];
|
14488
14493
|
selectedRule = void 0;
|
14489
14494
|
transactionRules = [];
|
14490
14495
|
constructor(n) {
|
14491
|
-
this.globalStore = n, this.api = new ns(n.endpoint, n.sessionToken), this.transactionApi = new
|
14496
|
+
this.globalStore = n, this.api = new ns(n.endpoint, n.sessionToken), this.transactionApi = new aa(n.endpoint, n.sessionToken), Be(this);
|
14492
14497
|
}
|
14493
14498
|
get accountProfiles() {
|
14494
14499
|
return this.detailedNotificationProfiles.filter(
|
@@ -17132,7 +17137,7 @@ const R1 = ({
|
|
17132
17137
|
/* @__PURE__ */ t(
|
17133
17138
|
Mi,
|
17134
17139
|
{
|
17135
|
-
expandIcon: /* @__PURE__ */ t(
|
17140
|
+
expandIcon: /* @__PURE__ */ t(ha, { sx: { color: "text.primary" } }),
|
17136
17141
|
sx: { height: 64, p: "14px 24px" },
|
17137
17142
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17138
17143
|
/* @__PURE__ */ t(H, { name: E, size: 24 }),
|
@@ -17264,7 +17269,7 @@ const R1 = ({
|
|
17264
17269
|
{
|
17265
17270
|
type: "internal"
|
17266
17271
|
}
|
17267
|
-
],
|
17272
|
+
], Pi = ({
|
17268
17273
|
content: e,
|
17269
17274
|
hasIcon: n = !0,
|
17270
17275
|
institution: i = "",
|
@@ -17322,7 +17327,7 @@ const R1 = ({
|
|
17322
17327
|
children: [
|
17323
17328
|
r ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
17324
17329
|
/* @__PURE__ */ t(
|
17325
|
-
|
17330
|
+
Pi,
|
17326
17331
|
{
|
17327
17332
|
hasIcon: !a,
|
17328
17333
|
institution: a,
|
@@ -17397,7 +17402,7 @@ const R1 = ({
|
|
17397
17402
|
/* @__PURE__ */ t(
|
17398
17403
|
Mi,
|
17399
17404
|
{
|
17400
|
-
expandIcon: /* @__PURE__ */ t(
|
17405
|
+
expandIcon: /* @__PURE__ */ t(ha, { sx: { color: "text.primary" } }),
|
17401
17406
|
sx: { p: "14px 24px", height: 64 },
|
17402
17407
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17403
17408
|
/* @__PURE__ */ t(H, { name: r, size: 24 }),
|
@@ -17490,7 +17495,7 @@ const R1 = ({
|
|
17490
17495
|
title: e.request_support,
|
17491
17496
|
children: [
|
17492
17497
|
/* @__PURE__ */ t(
|
17493
|
-
|
17498
|
+
Pi,
|
17494
17499
|
{
|
17495
17500
|
content: e.popular_topics_missing_institution_content,
|
17496
17501
|
hasIcon: !1,
|
@@ -17583,7 +17588,7 @@ const R1 = ({
|
|
17583
17588
|
);
|
17584
17589
|
return /* @__PURE__ */ t(ne, { isOpen: n, onClose: a, title: e.request_support, children: /* @__PURE__ */ l(b, { children: [
|
17585
17590
|
/* @__PURE__ */ t(
|
17586
|
-
|
17591
|
+
Pi,
|
17587
17592
|
{
|
17588
17593
|
hasIcon: !1,
|
17589
17594
|
reverse: !0,
|
@@ -17633,7 +17638,7 @@ const R1 = ({
|
|
17633
17638
|
const { common: s } = I();
|
17634
17639
|
return /* @__PURE__ */ l(ne, { isOpen: i, onClose: a, title: e.request_support, children: [
|
17635
17640
|
/* @__PURE__ */ t(
|
17636
|
-
|
17641
|
+
Pi,
|
17637
17642
|
{
|
17638
17643
|
hasIcon: !1,
|
17639
17644
|
institution: n,
|
@@ -17744,7 +17749,7 @@ const R1 = ({
|
|
17744
17749
|
return /* @__PURE__ */ t(ne, { isOpen: n, onClose: i, title: e.request_support, children: !d || o ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
17745
17750
|
/* @__PURE__ */ l(b, { children: [
|
17746
17751
|
/* @__PURE__ */ t(
|
17747
|
-
|
17752
|
+
Pi,
|
17748
17753
|
{
|
17749
17754
|
subtitle: e.request_support_short_content,
|
17750
17755
|
title: e.request_support_title
|
@@ -18031,7 +18036,7 @@ const R1 = ({
|
|
18031
18036
|
)
|
18032
18037
|
] });
|
18033
18038
|
}), mC = () => {
|
18034
|
-
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } =
|
18039
|
+
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
18040
|
g.useEffect(() => {
|
18036
18041
|
if (_.birthday) {
|
18037
18042
|
const P = new Date(_.birthday * 1e3), j = P.getUTCFullYear(), he = P.getUTCMonth(), V = P.getUTCDate();
|
@@ -18119,7 +18124,7 @@ const R1 = ({
|
|
18119
18124
|
] }),
|
18120
18125
|
/* @__PURE__ */ l(b, { direction: r ? "column" : "row", spacing: r ? 44 : 24, sx: { mb: 44 }, children: [
|
18121
18126
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
18122
|
-
|
18127
|
+
ga,
|
18123
18128
|
{
|
18124
18129
|
label: i.birthdate,
|
18125
18130
|
onChange: $,
|
@@ -18979,7 +18984,7 @@ const CC = ({
|
|
18979
18984
|
)
|
18980
18985
|
] });
|
18981
18986
|
}), e4 = A(({ onBackClick: e, sx: n }) => {
|
18982
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } =
|
18987
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Gi(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = ve(), _ = pe(), {
|
18983
18988
|
display_user_profile_in_settings: u,
|
18984
18989
|
display_mobile_devices_in_settings: h,
|
18985
18990
|
display_notification_settings_in_settings: m,
|
@@ -19267,7 +19272,7 @@ const RC = (e) => {
|
|
19267
19272
|
}
|
19268
19273
|
return a;
|
19269
19274
|
}, kC = (e) => {
|
19270
|
-
const n = [], i =
|
19275
|
+
const n = [], i = ji(le(), e.recurrenceDay);
|
19271
19276
|
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: gt(i, 1) }), n;
|
19272
19277
|
}, GC = (e, n, i) => {
|
19273
19278
|
const a = [], r = e.expectedDate;
|
@@ -19736,7 +19741,7 @@ const Xa = ({
|
|
19736
19741
|
},
|
19737
19742
|
primaryText: d.is_hidden ? h.unhide_account : h.hide_Account,
|
19738
19743
|
secondaryText: d.is_hidden ? h.include_this_account : h.exclude_this_account,
|
19739
|
-
children: /* @__PURE__ */ t(
|
19744
|
+
children: /* @__PURE__ */ t(ua, { checked: d.is_hidden })
|
19740
19745
|
}
|
19741
19746
|
),
|
19742
19747
|
/* @__PURE__ */ t(
|
@@ -19993,7 +19998,7 @@ const Xa = ({
|
|
19993
19998
|
} = pe(), { selectedMember: a } = $t(), { accounts: r, connect: o } = I(), s = qc(a, o), c = Fs.includes(a.connection_status) ? {
|
19994
19999
|
color: "error.main",
|
19995
20000
|
ctaCopy: s.cta ?? "",
|
19996
|
-
icon: /* @__PURE__ */ t(
|
20001
|
+
icon: /* @__PURE__ */ t(fa, { sx: { ...qa } }),
|
19997
20002
|
mainMessage: s.statusName,
|
19998
20003
|
secondaryMessage: `${s.title}.`
|
19999
20004
|
} : {
|
@@ -20081,7 +20086,7 @@ const Xa = ({
|
|
20081
20086
|
onChange: (y) => c(y.target.value),
|
20082
20087
|
placeholder: e.placeholder,
|
20083
20088
|
value: s,
|
20084
|
-
children: e.options?.map((y) => /* @__PURE__ */ t(
|
20089
|
+
children: e.options?.map((y) => /* @__PURE__ */ t(ma, { value: y.value, children: y.label }, y.value))
|
20085
20090
|
}
|
20086
20091
|
)
|
20087
20092
|
] });
|
@@ -20223,7 +20228,7 @@ const Xa = ({
|
|
20223
20228
|
children: /* @__PURE__ */ l(
|
20224
20229
|
xn,
|
20225
20230
|
{
|
20226
|
-
icon: /* @__PURE__ */ t(
|
20231
|
+
icon: /* @__PURE__ */ t(fa, {}),
|
20227
20232
|
severity: "error",
|
20228
20233
|
sx: {
|
20229
20234
|
borderLeft: 5,
|
@@ -20462,7 +20467,7 @@ const Xa = ({
|
|
20462
20467
|
)
|
20463
20468
|
] });
|
20464
20469
|
}, uf = A(df), _f = ({ onBackClick: e, sx: n = {} }) => {
|
20465
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } =
|
20470
|
+
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
20471
|
g.useEffect(() => {
|
20467
20472
|
m(c);
|
20468
20473
|
}, [c]);
|
@@ -21238,7 +21243,7 @@ const yf = () => {
|
|
21238
21243
|
};
|
21239
21244
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21240
21245
|
/* @__PURE__ */ t(
|
21241
|
-
|
21246
|
+
la,
|
21242
21247
|
{
|
21243
21248
|
exclusive: !0,
|
21244
21249
|
onChange: s,
|
@@ -22445,17 +22450,17 @@ const Gf = ({
|
|
22445
22450
|
}
|
22446
22451
|
) : null;
|
22447
22452
|
}), t0 = () => {
|
22448
|
-
const
|
22449
|
-
|
22453
|
+
const { common: e, connect: n } = I(), i = Mn("(max-width: 700px)"), [a, r] = g.useState(!1), o = () => {
|
22454
|
+
r(!0);
|
22450
22455
|
};
|
22451
22456
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22452
|
-
/* @__PURE__ */ t(M, { my: 4, children:
|
22457
|
+
/* @__PURE__ */ t(M, { my: 4, children: i ? /* @__PURE__ */ t(Wn, { id: "add-accounts", placement: "bottom", title: e.add_accounts, children: /* @__PURE__ */ t(
|
22453
22458
|
$e,
|
22454
22459
|
{
|
22455
22460
|
"aria-controls": "add_accounts",
|
22456
22461
|
"aria-describedby": "add-accounts",
|
22457
22462
|
"aria-haspopup": !0,
|
22458
|
-
"aria-label":
|
22463
|
+
"aria-label": e.add_accounts,
|
22459
22464
|
color: "primary",
|
22460
22465
|
onClick: o,
|
22461
22466
|
children: /* @__PURE__ */ t(H, { name: "add", size: 24 })
|
@@ -22465,7 +22470,7 @@ const Gf = ({
|
|
22465
22470
|
{
|
22466
22471
|
"aria-controls": "add_accounts",
|
22467
22472
|
"aria-haspopup": !0,
|
22468
|
-
"aria-label":
|
22473
|
+
"aria-label": e.add_accounts,
|
22469
22474
|
onClick: o,
|
22470
22475
|
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 24 }),
|
22471
22476
|
sx: {
|
@@ -22475,20 +22480,20 @@ const Gf = ({
|
|
22475
22480
|
minWidth: "max-content"
|
22476
22481
|
},
|
22477
22482
|
variant: "text",
|
22478
|
-
children:
|
22483
|
+
children: e.add_accounts
|
22479
22484
|
}
|
22480
22485
|
) }),
|
22481
|
-
|
22486
|
+
a && /* @__PURE__ */ t(
|
22482
22487
|
di,
|
22483
22488
|
{
|
22484
|
-
onClose: () =>
|
22485
|
-
showConnectWidget:
|
22486
|
-
title:
|
22489
|
+
onClose: () => r(!1),
|
22490
|
+
showConnectWidget: a,
|
22491
|
+
title: n.mini_title
|
22487
22492
|
}
|
22488
22493
|
)
|
22489
22494
|
] });
|
22490
22495
|
}, n0 = A(t0), i0 = () => {
|
22491
|
-
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), {
|
22496
|
+
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), { config: r } = Gi(), { isMobile: o } = ve(), s = {
|
22492
22497
|
accountFilterOptionsCopy: {
|
22493
22498
|
accountTypeAccounts: a.account_filter.account_type_accounts,
|
22494
22499
|
cancelButton: a.cancel_button,
|
@@ -22503,23 +22508,23 @@ const Gf = ({
|
|
22503
22508
|
},
|
22504
22509
|
title: a.filter_button
|
22505
22510
|
};
|
22506
|
-
return /* @__PURE__ */ t(Tt, { sx: { gap: 12, mb:
|
22511
|
+
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
22512
|
/* @__PURE__ */ t(b, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(b, { children: [
|
22508
22513
|
/* @__PURE__ */ t(cn, { children: (() => {
|
22509
|
-
const
|
22510
|
-
return
|
22514
|
+
const _ = (/* @__PURE__ */ new Date()).getHours();
|
22515
|
+
return _ > 1 && _ < 12 ? a.good_morning : _ >= 12 && _ < 18 ? a.good_afternoon : a.good_evening;
|
22511
22516
|
})() }),
|
22512
22517
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: a.heres_your_spending_overview })
|
22513
22518
|
] }) }),
|
22514
22519
|
/* @__PURE__ */ l(b, { flexDirection: "row", children: [
|
22515
|
-
/* @__PURE__ */ t(n0, {}),
|
22520
|
+
r.show_connections_widget_in_master && /* @__PURE__ */ t(n0, {}),
|
22516
22521
|
/* @__PURE__ */ t(
|
22517
22522
|
Qs,
|
22518
22523
|
{
|
22519
22524
|
accounts: e,
|
22520
|
-
copy:
|
22521
|
-
onFilterClick: (
|
22522
|
-
i(
|
22525
|
+
copy: s,
|
22526
|
+
onFilterClick: (d) => {
|
22527
|
+
i(d);
|
22523
22528
|
},
|
22524
22529
|
selectedAccountGuids: n,
|
22525
22530
|
showAccountNumbers: !1,
|
@@ -22532,20 +22537,20 @@ const Gf = ({
|
|
22532
22537
|
] })
|
22533
22538
|
] }) });
|
22534
22539
|
}, a0 = A(i0);
|
22535
|
-
var
|
22540
|
+
var Yi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Yi || {});
|
22536
22541
|
const r0 = ({ widgets: e, isLoading: n }) => {
|
22537
22542
|
const { isDesktop: i, isMobile: a } = ve(), { copyStore: r } = Ta(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = Re();
|
22538
22543
|
g.useEffect(() => {
|
22539
22544
|
o(s);
|
22540
22545
|
}, [s]);
|
22541
22546
|
const c = g.useMemo(
|
22542
|
-
() => e.filter((u) => u.location !==
|
22547
|
+
() => e.filter((u) => u.location !== Yi.Disabled).sort((u, h) => u.index - h.index),
|
22543
22548
|
[e]
|
22544
22549
|
), d = g.useMemo(
|
22545
|
-
() => c.filter((u) => u.location ===
|
22550
|
+
() => c.filter((u) => u.location === Yi.Main),
|
22546
22551
|
[c]
|
22547
22552
|
), _ = g.useMemo(
|
22548
|
-
() => c.filter((u) => u.location ===
|
22553
|
+
() => c.filter((u) => u.location === Yi.RightSide),
|
22549
22554
|
[c]
|
22550
22555
|
);
|
22551
22556
|
return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
@@ -22581,7 +22586,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
22581
22586
|
];
|
22582
22587
|
return /* @__PURE__ */ l(b, { sx: { gap: 12, width: "100%" }, children: [
|
22583
22588
|
/* @__PURE__ */ t(
|
22584
|
-
|
22589
|
+
la,
|
22585
22590
|
{
|
22586
22591
|
color: "primary",
|
22587
22592
|
exclusive: !0,
|
@@ -22657,7 +22662,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
22657
22662
|
), d0 = () => {
|
22658
22663
|
const {
|
22659
22664
|
investments: { analysis: e }
|
22660
|
-
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } =
|
22665
|
+
} = 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
22666
|
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
22667
|
return { cellDimension: s ? 72 : 100, columns: f, rows: E, textVariant: s ? "XSmall" : "Body" };
|
22663
22668
|
}, [e, s, a]);
|
@@ -22795,7 +22800,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
22795
22800
|
}
|
22796
22801
|
)
|
22797
22802
|
] });
|
22798
|
-
}, u0 = A(d0),
|
22803
|
+
}, u0 = A(d0), Vi = (e) => /* @__PURE__ */ l(ye, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
22799
22804
|
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: e.colDef.headerName }),
|
22800
22805
|
/* @__PURE__ */ t(yt, { name: "expand_all", size: 12 })
|
22801
22806
|
] }), _0 = ({
|
@@ -23035,7 +23040,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23035
23040
|
}
|
23036
23041
|
);
|
23037
23042
|
}, h0 = () => {
|
23038
|
-
const { isMobile: e } = ve(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } =
|
23043
|
+
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
23044
|
accounts: [],
|
23040
23045
|
holdings: [],
|
23041
23046
|
members: []
|
@@ -23069,7 +23074,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23069
23074
|
field: "holding",
|
23070
23075
|
headerName: f.overview.holding_header,
|
23071
23076
|
flex: 1,
|
23072
|
-
renderHeader:
|
23077
|
+
renderHeader: Vi,
|
23073
23078
|
renderCell: (ge) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
|
23074
23079
|
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: ge.row.holding }),
|
23075
23080
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: ge.row.description })
|
@@ -23079,7 +23084,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23079
23084
|
field: "costBasis",
|
23080
23085
|
headerName: f.overview.cost_basis_header,
|
23081
23086
|
width: 132,
|
23082
|
-
renderHeader:
|
23087
|
+
renderHeader: Vi,
|
23083
23088
|
renderCell: (ge) => {
|
23084
23089
|
const ze = U === ge.row.id;
|
23085
23090
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
@@ -23129,7 +23134,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23129
23134
|
field: "totalGainLoss",
|
23130
23135
|
headerName: f.overview.total_gain_loss_header,
|
23131
23136
|
width: 196,
|
23132
|
-
renderHeader:
|
23137
|
+
renderHeader: Vi,
|
23133
23138
|
renderCell: (ge) => {
|
23134
23139
|
const ze = ge.row.costBasis, je = ze ? ge.row.totalGainLoss / ze * 100 : 0, Te = ge.value <= 0 ? "text.secondary" : "#0AC295";
|
23135
23140
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
@@ -23159,7 +23164,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23159
23164
|
field: "marketValue",
|
23160
23165
|
headerName: f.overview.market_value_header,
|
23161
23166
|
width: 132,
|
23162
|
-
renderHeader:
|
23167
|
+
renderHeader: Vi,
|
23163
23168
|
renderCell: (ge) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
|
23164
23169
|
currency: "USD",
|
23165
23170
|
maximumFractionDigits: 2,
|
@@ -23188,7 +23193,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23188
23193
|
...P,
|
23189
23194
|
[O]: U
|
23190
23195
|
}));
|
23191
|
-
}, { holdings: v } =
|
23196
|
+
}, { holdings: v } = ta(), { visibleInvestmentAccounts: w, members: x } = Re(), R = w.reduce((O, L) => O + (L.balance || 0), 0), D = v.reduce((O, L) => {
|
23192
23197
|
const U = L.market_value ? L.market_value - (L.cost_basis || 0) : 0;
|
23193
23198
|
return O + U;
|
23194
23199
|
}, 0), $ = () => {
|
@@ -23576,7 +23581,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
|
|
23576
23581
|
)
|
23577
23582
|
] });
|
23578
23583
|
}, 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 } =
|
23584
|
+
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
23585
|
g.useEffect(() => {
|
23581
23586
|
c && u().finally();
|
23582
23587
|
}, [c]);
|
@@ -23850,12 +23855,12 @@ class y0 {
|
|
23850
23855
|
});
|
23851
23856
|
};
|
23852
23857
|
}
|
23853
|
-
const
|
23858
|
+
const Hi = g.createContext(null), E0 = ({
|
23854
23859
|
onEvent: e,
|
23855
23860
|
onPageview: n,
|
23856
23861
|
store: i,
|
23857
23862
|
children: a
|
23858
|
-
}) => /* @__PURE__ */ t(
|
23863
|
+
}) => /* @__PURE__ */ t(Hi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), La = g.forwardRef(
|
23859
23864
|
function({
|
23860
23865
|
actionText: n,
|
23861
23866
|
ariaLabel: i,
|
@@ -24840,24 +24845,24 @@ const Pi = g.createContext(null), E0 = ({
|
|
24840
24845
|
}
|
24841
24846
|
);
|
24842
24847
|
}, Vn = () => {
|
24843
|
-
const e = g.useContext(
|
24848
|
+
const e = g.useContext(Hi);
|
24844
24849
|
if (!e)
|
24845
24850
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
24846
24851
|
return e.store.copyStore;
|
24847
24852
|
}, D0 = () => {
|
24848
|
-
const e = g.useContext(
|
24853
|
+
const e = g.useContext(Hi);
|
24849
24854
|
if (!e?.store?.insightsMicroWidgetStore)
|
24850
24855
|
throw new Error(
|
24851
24856
|
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
24852
24857
|
);
|
24853
24858
|
return e.store.insightsMicroWidgetStore;
|
24854
|
-
},
|
24855
|
-
const e = g.useContext(
|
24859
|
+
}, $i = () => {
|
24860
|
+
const e = g.useContext(Hi);
|
24856
24861
|
if (!e)
|
24857
24862
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
24858
24863
|
return { onEvent: e.onEvent };
|
24859
24864
|
}, rl = () => {
|
24860
|
-
const e = g.useContext(
|
24865
|
+
const e = g.useContext(Hi);
|
24861
24866
|
if (!e)
|
24862
24867
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
24863
24868
|
return { onPageview: e.onPageview };
|
@@ -24883,7 +24888,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
24883
24888
|
}) => {
|
24884
24889
|
const { ref: C, inView: f } = Bs({
|
24885
24890
|
threshold: sl
|
24886
|
-
}), { cardsCopy: E } = Vn(), { onEvent: y } =
|
24891
|
+
}), { cardsCopy: E } = Vn(), { onEvent: y } = $i(), { updateBeat: T, updateOffer: v } = D0();
|
24887
24892
|
zn(() => {
|
24888
24893
|
f && (i.has_been_displayed ? y(tl(i.template)) : (i.guid.startsWith("OFR") ? v({
|
24889
24894
|
...i,
|
@@ -24998,7 +25003,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
24998
25003
|
disabled: h,
|
24999
25004
|
onClick: a,
|
25000
25005
|
children: /* @__PURE__ */ t(
|
25001
|
-
|
25006
|
+
_a,
|
25002
25007
|
{
|
25003
25008
|
style: {
|
25004
25009
|
color: h ? m : C
|
@@ -25038,7 +25043,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25038
25043
|
variant: _,
|
25039
25044
|
widthOverrides: u
|
25040
25045
|
}) => {
|
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 } =
|
25046
|
+
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
25047
|
x(Kt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
25043
25048
|
left: (
|
25044
25049
|
// Adds the flex gap to the carousel ref's width
|
@@ -25165,7 +25170,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25165
25170
|
posthog: i,
|
25166
25171
|
widthOverrides: a
|
25167
25172
|
}) => {
|
25168
|
-
const { carouselCopy: r } = Vn(), { onEvent: o } =
|
25173
|
+
const { carouselCopy: r } = Vn(), { onEvent: o } = $i(), s = () => {
|
25169
25174
|
o && (o(Kt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
|
25170
25175
|
};
|
25171
25176
|
return r ? /* @__PURE__ */ l(
|
@@ -25221,7 +25226,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25221
25226
|
children: r.view_all_insights_in_full_feed_cta_aria
|
25222
25227
|
}
|
25223
25228
|
),
|
25224
|
-
/* @__PURE__ */ t(
|
25229
|
+
/* @__PURE__ */ t(_a, { sx: { color: e?.primary_300, ml: "8px" } })
|
25225
25230
|
]
|
25226
25231
|
}
|
25227
25232
|
)
|
@@ -25261,7 +25266,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25261
25266
|
variant: d,
|
25262
25267
|
widthOverrides: _
|
25263
25268
|
}) => {
|
25264
|
-
const { cardsCopy: u } = Vn(), { onEvent: h } =
|
25269
|
+
const { cardsCopy: u } = Vn(), { onEvent: h } = $i(), { onPageview: m } = rl();
|
25265
25270
|
g.useEffect(() => {
|
25266
25271
|
m(kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
25267
25272
|
}, []);
|
@@ -25451,7 +25456,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25451
25456
|
}) => {
|
25452
25457
|
const _ = pe(), { ref: u, inView: h } = Bs({
|
25453
25458
|
threshold: sl
|
25454
|
-
}), { cardsCopy: m } = Vn(), { onEvent: C } =
|
25459
|
+
}), { cardsCopy: m } = Vn(), { onEvent: C } = $i();
|
25455
25460
|
zn(() => {
|
25456
25461
|
h && (C(il.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
|
25457
25462
|
template: "view_more_card"
|
@@ -25529,7 +25534,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25529
25534
|
primaryTypographyProps: { fontWeight: 400 }
|
25530
25535
|
}
|
25531
25536
|
),
|
25532
|
-
e.recurrence_type === h.id && /* @__PURE__ */ t(
|
25537
|
+
e.recurrence_type === h.id && /* @__PURE__ */ t(da, { color: "primary", filled: !0, size: 24 })
|
25533
25538
|
] }) }, h.id),
|
25534
25539
|
/* @__PURE__ */ t(G, {})
|
25535
25540
|
] }, h.id)) })
|
@@ -25788,7 +25793,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
25788
25793
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
25789
25794
|
n && /* @__PURE__ */ t(Oe, { sx: { mx: 24 }, children: n }),
|
25790
25795
|
/* @__PURE__ */ t(
|
25791
|
-
|
25796
|
+
Bi,
|
25792
25797
|
{
|
25793
25798
|
ariaLabel: r.select_transaction_search_aria,
|
25794
25799
|
cancelAriaLabel: r.select_transaction_search_cancel_aria,
|
@@ -25823,19 +25828,19 @@ const Pi = g.createContext(null), E0 = ({
|
|
25823
25828
|
];
|
25824
25829
|
g.useEffect(() => {
|
25825
25830
|
const u = Me(s.date);
|
25826
|
-
o(
|
25831
|
+
o(ea(u)), r(Ne.EveryMonth);
|
25827
25832
|
}, [s]);
|
25828
25833
|
const _ = (u) => {
|
25829
25834
|
const h = Me(s.date);
|
25830
25835
|
switch (Number(u.target.value)) {
|
25831
25836
|
case Ne.EveryWeek:
|
25832
|
-
o(
|
25837
|
+
o(ya(h));
|
25833
25838
|
break;
|
25834
25839
|
case Ne.EveryOtherWeek:
|
25835
25840
|
o(Ks(h));
|
25836
25841
|
break;
|
25837
25842
|
case Ne.EveryMonth:
|
25838
|
-
o(
|
25843
|
+
o(ea(h));
|
25839
25844
|
break;
|
25840
25845
|
case Ne.EveryOtherMonth:
|
25841
25846
|
o(zs(h));
|
@@ -25872,11 +25877,11 @@ const Pi = g.createContext(null), E0 = ({
|
|
25872
25877
|
sx: { mx: 24 },
|
25873
25878
|
value: n,
|
25874
25879
|
variant: "outlined",
|
25875
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
25880
|
+
children: d.map((u) => /* @__PURE__ */ t(ma, { value: u.id, children: u.label }, u.id))
|
25876
25881
|
}
|
25877
25882
|
),
|
25878
25883
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
25879
|
-
|
25884
|
+
ga,
|
25880
25885
|
{
|
25881
25886
|
disablePast: !0,
|
25882
25887
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -26043,7 +26048,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26043
26048
|
filled: !0,
|
26044
26049
|
sx: { color: "categories.income", fontSize: n, ...Ma }
|
26045
26050
|
}
|
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(
|
26051
|
+
) }), 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
26052
|
({ day: e, outsideCurrentMonth: n, ...i }) => {
|
26048
26053
|
const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { recurrences: o, setSelectedDay: s } = Pt(), d = g.useMemo(
|
26049
26054
|
() => o.filter((f) => r.includes(f.accountGuid)),
|
@@ -26098,7 +26103,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26098
26103
|
}
|
26099
26104
|
);
|
26100
26105
|
}
|
26101
|
-
),
|
26106
|
+
), Ki = ({ icon: e, label: n }) => /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
26102
26107
|
/* @__PURE__ */ t(e, {}),
|
26103
26108
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: n })
|
26104
26109
|
] }), J0 = A(() => {
|
@@ -26113,18 +26118,18 @@ const Pi = g.createContext(null), E0 = ({
|
|
26113
26118
|
justifyContent: "center",
|
26114
26119
|
mt: 12,
|
26115
26120
|
children: [
|
26116
|
-
/* @__PURE__ */ t(
|
26117
|
-
/* @__PURE__ */ t(
|
26118
|
-
/* @__PURE__ */ t(
|
26119
|
-
/* @__PURE__ */ t(
|
26121
|
+
/* @__PURE__ */ t(Ki, { icon: Vr, label: e.expense }),
|
26122
|
+
/* @__PURE__ */ t(Ki, { icon: Kr, label: e.income }),
|
26123
|
+
/* @__PURE__ */ t(Ki, { icon: zr, label: e.missed }),
|
26124
|
+
/* @__PURE__ */ t(Ki, { icon: Yr, label: e.paid })
|
26120
26125
|
]
|
26121
26126
|
}
|
26122
26127
|
);
|
26123
26128
|
}), bs = 58, hl = A(() => {
|
26124
26129
|
const e = pe(), { onEvent: n } = z(), { selectedDay: i } = Pt(), [a, r] = g.useState(
|
26125
|
-
|
26130
|
+
Qi(/* @__PURE__ */ new Date()) * hn + bs
|
26126
26131
|
), o = (c) => {
|
26127
|
-
r(
|
26132
|
+
r(Qi(c) * hn + bs), n(W.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
26128
26133
|
}, s = /* @__PURE__ */ t(
|
26129
26134
|
li,
|
26130
26135
|
{
|
@@ -26274,7 +26279,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26274
26279
|
width: "100%"
|
26275
26280
|
},
|
26276
26281
|
children: [
|
26277
|
-
u && /* @__PURE__ */ t(
|
26282
|
+
u && /* @__PURE__ */ t(da, { color: "success", filled: !0, size: 12 }),
|
26278
26283
|
h && /* @__PURE__ */ t(Ds, { color: "error", filled: !0, size: 12 }),
|
26279
26284
|
/* @__PURE__ */ t(p, { bold: !0, color: "text.secondary", variant: "caption", children: C })
|
26280
26285
|
]
|
@@ -26649,7 +26654,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26649
26654
|
donutData: s,
|
26650
26655
|
totalAmount: o
|
26651
26656
|
};
|
26652
|
-
},
|
26657
|
+
}, oa = ({ amount: e, label: n }) => /* @__PURE__ */ l(b, { direction: "column", children: [
|
26653
26658
|
/* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: n }),
|
26654
26659
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: B(e, "0,0") })
|
26655
26660
|
] }), rb = ({
|
@@ -26705,7 +26710,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26705
26710
|
}
|
26706
26711
|
)
|
26707
26712
|
] }) }) });
|
26708
|
-
},
|
26713
|
+
}, 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
26714
|
b,
|
26710
26715
|
{
|
26711
26716
|
alignItems: "center",
|
@@ -26763,7 +26768,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26763
26768
|
Ve,
|
26764
26769
|
{
|
26765
26770
|
label: /* @__PURE__ */ t(
|
26766
|
-
|
26771
|
+
oa,
|
26767
26772
|
{
|
26768
26773
|
amount: m.totalAmount,
|
26769
26774
|
label: n.spend_tab_title
|
@@ -26776,7 +26781,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26776
26781
|
Ve,
|
26777
26782
|
{
|
26778
26783
|
label: /* @__PURE__ */ t(
|
26779
|
-
|
26784
|
+
oa,
|
26780
26785
|
{
|
26781
26786
|
amount: C.totalAmount,
|
26782
26787
|
label: n.income_tab_title
|
@@ -26788,7 +26793,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26788
26793
|
] }),
|
26789
26794
|
u === 0 && /* @__PURE__ */ t(M, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
26790
26795
|
/* @__PURE__ */ t(
|
26791
|
-
|
26796
|
+
sa,
|
26792
26797
|
{
|
26793
26798
|
data: m,
|
26794
26799
|
onSelected: E,
|
@@ -26807,7 +26812,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26807
26812
|
] }) }),
|
26808
26813
|
u === 1 && /* @__PURE__ */ t(M, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
26809
26814
|
/* @__PURE__ */ t(
|
26810
|
-
|
26815
|
+
sa,
|
26811
26816
|
{
|
26812
26817
|
data: C,
|
26813
26818
|
isIncome: !0,
|
@@ -26887,7 +26892,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26887
26892
|
}
|
26888
26893
|
),
|
26889
26894
|
/* @__PURE__ */ t(G, {}),
|
26890
|
-
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(
|
26895
|
+
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(Ca, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
26891
26896
|
o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
26892
26897
|
X,
|
26893
26898
|
{
|
@@ -26930,7 +26935,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26930
26935
|
px: 8,
|
26931
26936
|
children: [
|
26932
26937
|
c && /* @__PURE__ */ t(
|
26933
|
-
|
26938
|
+
sa,
|
26934
26939
|
{
|
26935
26940
|
data: {
|
26936
26941
|
categoryData: [],
|
@@ -26946,7 +26951,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
26946
26951
|
}
|
26947
26952
|
),
|
26948
26953
|
!c && /* @__PURE__ */ t(
|
26949
|
-
|
26954
|
+
sa,
|
26950
26955
|
{
|
26951
26956
|
data: e,
|
26952
26957
|
onSelected: n,
|
@@ -27020,7 +27025,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
27020
27025
|
Ve,
|
27021
27026
|
{
|
27022
27027
|
label: /* @__PURE__ */ t(
|
27023
|
-
|
27028
|
+
oa,
|
27024
27029
|
{
|
27025
27030
|
amount: v.totalAmount,
|
27026
27031
|
label: r.spend_tab_title
|
@@ -27033,7 +27038,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
27033
27038
|
Ve,
|
27034
27039
|
{
|
27035
27040
|
label: /* @__PURE__ */ t(
|
27036
|
-
|
27041
|
+
oa,
|
27037
27042
|
{
|
27038
27043
|
amount: w.totalAmount,
|
27039
27044
|
label: r.income_tab_title
|
@@ -27106,7 +27111,7 @@ const Pi = g.createContext(null), E0 = ({
|
|
27106
27111
|
children: /* @__PURE__ */ t(M, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(gb, {}) })
|
27107
27112
|
}
|
27108
27113
|
);
|
27109
|
-
}, C4 = A(mb), pb = (e) => Gn[e] ?? Gn.default, Cb = (e) =>
|
27114
|
+
}, C4 = A(mb), pb = (e) => Gn[e] ?? Gn.default, Cb = (e) => ba[e];
|
27110
27115
|
function fb(e, n) {
|
27111
27116
|
const i = [], a = new Date(e);
|
27112
27117
|
for (; a <= n; ) {
|
@@ -27145,7 +27150,7 @@ const bb = (e) => e.reduce((i, a) => {
|
|
27145
27150
|
const n = e.row[e.field];
|
27146
27151
|
return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ye, { amount: n, variant: "Small" }) });
|
27147
27152
|
}, Tb = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
27148
|
-
const { categories: i } = I(), a =
|
27153
|
+
const { categories: i } = I(), a = ba[e];
|
27149
27154
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
27150
27155
|
/* @__PURE__ */ t(
|
27151
27156
|
M,
|
@@ -27381,7 +27386,7 @@ const bb = (e) => e.reduce((i, a) => {
|
|
27381
27386
|
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: he })
|
27382
27387
|
] }),
|
27383
27388
|
/* @__PURE__ */ t(
|
27384
|
-
|
27389
|
+
la,
|
27385
27390
|
{
|
27386
27391
|
exclusive: !0,
|
27387
27392
|
onChange: V,
|
@@ -27523,7 +27528,7 @@ export {
|
|
27523
27528
|
G2 as BarChart,
|
27524
27529
|
ri as BeatApi,
|
27525
27530
|
O0 as BeatCard,
|
27526
|
-
|
27531
|
+
zi as BottomActions,
|
27527
27532
|
s4 as BubbleBudgetsMiniWidget,
|
27528
27533
|
c4 as BubbleBudgetsWidget,
|
27529
27534
|
Mu as Calendar,
|
@@ -27536,7 +27541,7 @@ export {
|
|
27536
27541
|
Y2 as CashflowWidget,
|
27537
27542
|
_o as CategoryApi,
|
27538
27543
|
Gn as CategoryColors,
|
27539
|
-
|
27544
|
+
ba as CategoryGuidToName,
|
27540
27545
|
N as CategoryGuids,
|
27541
27546
|
ou as CategoryIcon,
|
27542
27547
|
uc as CategoryRow,
|
@@ -27549,14 +27554,14 @@ export {
|
|
27549
27554
|
r4 as ConnectMiniWidget,
|
27550
27555
|
Kn as ConnectionStatus,
|
27551
27556
|
ht as ConnectionStatusEnums,
|
27552
|
-
|
27557
|
+
Ji as CurrencyCodes,
|
27553
27558
|
en as CurrencyInput,
|
27554
27559
|
Ye as CurrencyText,
|
27555
27560
|
te as DATE_FORMATS_INTL,
|
27556
27561
|
Us as DEFAULT_DONUT_SIZE,
|
27557
27562
|
Vs as DEFAULT_STROKE_WIDTH,
|
27558
27563
|
l4 as Dashboard,
|
27559
|
-
|
27564
|
+
Yi as DashboardLocation,
|
27560
27565
|
$n as DataRow,
|
27561
27566
|
bo as DateRangeSelector,
|
27562
27567
|
Lc as DebtsChart,
|
@@ -27587,7 +27592,7 @@ export {
|
|
27587
27592
|
uC as HelpWidget,
|
27588
27593
|
Cr as INCOME_ACCOUNT_TYPES,
|
27589
27594
|
Xt as IconBacking,
|
27590
|
-
|
27595
|
+
ia as InformationTooltip,
|
27591
27596
|
h4 as InsightsMicroWidget,
|
27592
27597
|
E0 as InsightsMicroWidgetDataProvider,
|
27593
27598
|
d4 as InvestmentsWidget,
|
@@ -27647,7 +27652,7 @@ export {
|
|
27647
27652
|
D_ as ScheduledPaymentTypes,
|
27648
27653
|
go as ScheduledPaymentsApi,
|
27649
27654
|
R_ as ScreenSize,
|
27650
|
-
|
27655
|
+
Bi as SearchBox,
|
27651
27656
|
So as SelectionBox,
|
27652
27657
|
ns as SettingsApi,
|
27653
27658
|
w1 as SettingsStore,
|
@@ -27667,7 +27672,7 @@ export {
|
|
27667
27672
|
ti as ToggleListItem,
|
27668
27673
|
pi as TopActions,
|
27669
27674
|
K as TrackType,
|
27670
|
-
|
27675
|
+
aa as TransactionApi,
|
27671
27676
|
qn as TransactionDetails,
|
27672
27677
|
mn as TransactionList,
|
27673
27678
|
Aa as TransactionRow,
|
@@ -27696,7 +27701,7 @@ export {
|
|
27696
27701
|
B as formatCurrency,
|
27697
27702
|
ae as formatDate,
|
27698
27703
|
qs as formatOrdinal,
|
27699
|
-
|
27704
|
+
Ea as formatPercentage,
|
27700
27705
|
Xs as fromTimestampToMonthYear,
|
27701
27706
|
wc as getAccountBalanceDetails,
|
27702
27707
|
Wg as getAccountDetailFields,
|
@@ -27712,7 +27717,7 @@ export {
|
|
27712
27717
|
ir as isValidNumber,
|
27713
27718
|
Re as useAccountStore,
|
27714
27719
|
$t as useAccountUiStore,
|
27715
|
-
|
27720
|
+
Gi as useAppConfig,
|
27716
27721
|
lt as useBudgetsStore,
|
27717
27722
|
Tr as useCashflowStore,
|
27718
27723
|
Ke as useCategoryStore,
|
@@ -27727,7 +27732,7 @@ export {
|
|
27727
27732
|
ce as useGlobalUiStore,
|
27728
27733
|
ot as useGoalStore,
|
27729
27734
|
Ar as useHelpStore,
|
27730
|
-
|
27735
|
+
ta as useHoldingStore,
|
27731
27736
|
Vu as useMerchantStore,
|
27732
27737
|
Ku as useNetWorthStore,
|
27733
27738
|
ic as useNotificationStore,
|