@mx-cartographer/experiences 4.1.2-alpha.mega7 → 4.1.2-alpha.mega9

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/dist/index.es.js CHANGED
@@ -15,7 +15,7 @@ import Xa from "numeral";
15
15
  import oe from "@mui/material/Button";
16
16
  import wt from "@mui/material/Tooltip";
17
17
  import Fe from "@mui/material/IconButton";
18
- import Un from "@mui/material/FormControlLabel";
18
+ import Qn from "@mui/material/FormControlLabel";
19
19
  import j from "@mui/material/ListItem";
20
20
  import ae from "@mui/material/ListItemButton";
21
21
  import J from "@mui/material/ListItemText";
@@ -28,8 +28,8 @@ import { addWeeks as Ct } from "date-fns/addWeeks";
28
28
  import { addYears as Kt } from "date-fns/addYears";
29
29
  import { getDay as qt } from "date-fns/getDay";
30
30
  import { isBefore as Te } from "date-fns/isBefore";
31
- import { nextDay as Qn } from "date-fns/nextDay";
32
- import { setDate as Wn } from "date-fns/setDate";
31
+ import { nextDay as Wn } from "date-fns/nextDay";
32
+ import { setDate as Yn } from "date-fns/setDate";
33
33
  import { startOfToday as ie } from "date-fns/startOfToday";
34
34
  import { fromUnixTime as Le } from "date-fns/fromUnixTime";
35
35
  import fe from "@mui/material/styles/useTheme";
@@ -65,14 +65,14 @@ import { subYears as Qa } from "date-fns/subYears";
65
65
  import Es from "@mui/material/ButtonGroup";
66
66
  import Ke from "@mui/material/Tab";
67
67
  import _A from "@mui/material/Tabs";
68
- import aa from "@mui/material/ToggleButton";
68
+ import ra from "@mui/material/ToggleButton";
69
69
  import si from "@mui/material/ToggleButtonGroup";
70
70
  import bs from "@mui/material/Dialog";
71
71
  import ci from "@mui/material/DialogContent";
72
72
  import ws from "@mui/icons-material/ArrowBackOutlined";
73
73
  import FA from "@mui/material/CardHeader";
74
74
  import { ConnectWidget as Ss, ConnectionsWidget as Ts } from "@mxenabled/web-widget-sdk";
75
- import ra from "@mui/material/CircularProgress";
75
+ import ia from "@mui/material/CircularProgress";
76
76
  import { v4 as Is } from "uuid";
77
77
  import an from "@mui/material/InputAdornment";
78
78
  import Ls from "@mui/material/Radio";
@@ -83,22 +83,22 @@ import { ChevronRight as wA, Payments as Ds, NoteStack as xs, Person as Os, Chec
83
83
  import { makeAutoObservable as De, runInAction as Y, reaction as Rs, observable as Hs } from "mobx";
84
84
  import { differenceInDays as Bs } from "date-fns/differenceInDays";
85
85
  import pn from "@mui/icons-material/ChevronRight";
86
- import ia from "@mui/icons-material/ExpandMore";
86
+ import oa from "@mui/icons-material/ExpandMore";
87
87
  import { DataGridPro as Qt } from "@mui/x-data-grid-pro";
88
88
  import { intervalToDuration as zs, formatDuration as Ks, getDate as Ya, fromUnixTime as kt, startOfMonth as Va, format as qs, differenceInMonths as ks, isSameDay as Gs, subDays as Fs, startOfToday as Xs, endOfToday as js } from "date-fns";
89
89
  import { getMonth as pt } from "date-fns/getMonth";
90
90
  import vt from "@mui/material/Alert";
91
- import oa from "@mui/material/Snackbar";
91
+ import sa from "@mui/material/Snackbar";
92
92
  import { useVirtualizer as di } from "@tanstack/react-virtual";
93
93
  import { parseISO as ui } from "date-fns/parseISO";
94
94
  import HA from "@mui/material/Skeleton";
95
95
  import { isAfter as yt } from "date-fns/isAfter";
96
96
  import { subWeeks as Ja } from "date-fns/subWeeks";
97
- import { formatISO as sa } from "date-fns/formatISO";
98
- import ca from "@mui/material/MenuItem";
97
+ import { formatISO as ca } from "date-fns/formatISO";
98
+ import la from "@mui/material/MenuItem";
99
99
  import Us from "@mui/material/RadioGroup";
100
100
  import Gt from "@mui/icons-material/DeleteOutlined";
101
- import la from "@mui/material/Switch";
101
+ import da from "@mui/material/Switch";
102
102
  import At from "@mui/material/TextField";
103
103
  import rn from "@mui/icons-material/Cancel";
104
104
  import Qs from "@mui/icons-material/HighlightOff";
@@ -109,13 +109,13 @@ import Js from "@mui/icons-material/FlagOutlined";
109
109
  import Zs from "@mui/icons-material/ReceiptOutlined";
110
110
  import { getWeeksInMonth as Za } from "date-fns/getWeeksInMonth";
111
111
  import { AdapterDateFns as Wt } from "@mui/x-date-pickers/AdapterDateFnsV3";
112
- import { DateCalendar as da } from "@mui/x-date-pickers/DateCalendar";
112
+ import { DateCalendar as ua } from "@mui/x-date-pickers/DateCalendar";
113
113
  import { LocalizationProvider as fn } from "@mui/x-date-pickers/LocalizationProvider";
114
114
  import hi from "@mui/material/Badge";
115
115
  import { PickersDay as $s } from "@mui/x-date-pickers/PickersDay";
116
116
  import ec from "@mui/icons-material/AccessTimeFilled";
117
117
  import Ac from "@mui/icons-material/MonetizationOn";
118
- import ua from "@mui/icons-material/CheckCircle";
118
+ import ha from "@mui/icons-material/CheckCircle";
119
119
  import { getDate as Rt } from "date-fns/getDate";
120
120
  import { isValid as gi } from "date-fns/isValid";
121
121
  import qA from "@mui/material/Unstable_Grid2";
@@ -123,11 +123,11 @@ import { DatePicker as mi } from "@mui/x-date-pickers";
123
123
  import vn from "@mui/material/Collapse";
124
124
  import Ci from "@mui/material/CardActionArea";
125
125
  import tc from "@mui/icons-material/DragHandle";
126
- import Yn from "@mui/material/AlertTitle";
126
+ import Vn from "@mui/material/AlertTitle";
127
127
  import yn from "@mui/icons-material/Error";
128
128
  import nc from "@mui/material/Chip";
129
129
  import ac from "@mui/icons-material/EditOutlined";
130
- import { isToday as ha } from "date-fns/isToday";
130
+ import { isToday as ga } from "date-fns/isToday";
131
131
  import rc from "@mui/icons-material/CheckCircleRounded";
132
132
  import ic from "@mui/icons-material/LanguageRounded";
133
133
  import { isYesterday as oc } from "date-fns/isYesterday";
@@ -387,7 +387,7 @@ const u8 = {
387
387
  5: "Locked",
388
388
  1: "Prevented",
389
389
  4: "Rejected"
390
- }, ga = {
390
+ }, ma = {
391
391
  0: "Any",
392
392
  9: "Cash",
393
393
  1: "Checking",
@@ -442,20 +442,20 @@ const u8 = {
442
442
  7: "camera_alt",
443
443
  8: "sports_baseball",
444
444
  9: "monetization_on"
445
- }, ma = [
445
+ }, Ca = [
446
446
  W.ANY,
447
447
  W.CASH,
448
448
  W.CHECKING,
449
449
  W.DIGITAL_WALLET,
450
450
  W.PREPAID,
451
451
  W.SAVINGS
452
- ], Ca = [
452
+ ], pa = [
453
453
  W.CHECKING_LINE_OF_CREDIT,
454
454
  W.CREDIT_CARD,
455
455
  W.LINE_OF_CREDIT,
456
456
  W.LOAN,
457
457
  W.MORTGAGE
458
- ], pa = [
458
+ ], fa = [
459
459
  W.ANY,
460
460
  W.CASH,
461
461
  W.CHECKING,
@@ -902,11 +902,11 @@ const R = (e, A, n) => {
902
902
  default:
903
903
  return on.USD;
904
904
  }
905
- }, Vn = (e) => e != null && e !== "" && isFinite(e), Kc = {
905
+ }, Jn = (e) => e != null && e !== "" && isFinite(e), Kc = {
906
906
  style: "percent",
907
907
  minimumFractionDigits: 2,
908
908
  maximumFractionDigits: 2
909
- }, bn = (e, A = Kc) => Vn(e) ? new Intl.NumberFormat(ZA(), A).format(Number(e)) : e, qc = (e) => new Intl.PluralRules(ZA(), e), kc = (e, A = { type: "ordinal" }, n = {
909
+ }, bn = (e, A = Kc) => Jn(e) ? new Intl.NumberFormat(ZA(), A).format(Number(e)) : e, qc = (e) => new Intl.PluralRules(ZA(), e), kc = (e, A = { type: "ordinal" }, n = {
910
910
  one: "st",
911
911
  two: "nd",
912
912
  few: "rd",
@@ -914,22 +914,22 @@ const R = (e, A, n) => {
914
914
  }) => {
915
915
  const a = qc(A).select(e);
916
916
  return `${e}${n[a]}`;
917
- }, fa = (e) => {
917
+ }, va = (e) => {
918
918
  const A = qt(e);
919
- let n = Qn(e, A);
919
+ let n = Wn(e, A);
920
920
  for (; Te(n, ie()); )
921
921
  n = Ct(n, 1);
922
922
  return n;
923
923
  }, Gc = (e) => {
924
- const A = fa(e);
924
+ const A = va(e);
925
925
  return Ct(A, 1);
926
926
  }, ar = (e) => {
927
- let A = Wn(ie(), e.getDate());
927
+ let A = Yn(ie(), e.getDate());
928
928
  for (; Te(A, ie()); )
929
929
  A = oA(A, 1);
930
930
  return A;
931
931
  }, Fc = (e) => {
932
- const A = fa(e);
932
+ const A = va(e);
933
933
  return oA(A, 1);
934
934
  }, Li = (e) => {
935
935
  let A = rt(e, 1);
@@ -1062,8 +1062,8 @@ class sr {
1062
1062
  }
1063
1063
  requestWidgetUrl = async (A) => this.fetchInstance.post(M.WIDGET_URLS, A).then((n) => n.widget_url);
1064
1064
  }
1065
- const Hn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}), Qc = (e) => e.reduce((A, n) => {
1066
- const a = ga[n.account_type], r = {
1065
+ const Bn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}), Qc = (e) => e.reduce((A, n) => {
1066
+ const a = ma[n.account_type], r = {
1067
1067
  accountNumber: n.account_number,
1068
1068
  name: n.name || n.feed_name,
1069
1069
  guid: n.guid
@@ -1146,7 +1146,7 @@ const Hn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}
1146
1146
  },
1147
1147
  children: [
1148
1148
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1149
- Un,
1149
+ Qn,
1150
1150
  {
1151
1151
  control: /* @__PURE__ */ t(
1152
1152
  zt,
@@ -1217,7 +1217,7 @@ const Hn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}
1217
1217
  disableGutters: !0,
1218
1218
  disablePadding: !0,
1219
1219
  children: /* @__PURE__ */ t(
1220
- Un,
1220
+ Qn,
1221
1221
  {
1222
1222
  control: /* @__PURE__ */ t(
1223
1223
  zt,
@@ -1309,10 +1309,10 @@ const Wc = (e, A) => {
1309
1309
  variant: s = "outlined"
1310
1310
  }) => {
1311
1311
  const { isMobile: c } = Be(), [d, u] = g.useState(null), [h, m] = g.useState(
1312
- Hn(e, r)
1312
+ Bn(e, r)
1313
1313
  );
1314
1314
  g.useEffect(() => {
1315
- m(Hn(e, r));
1315
+ m(Bn(e, r));
1316
1316
  }, [e, r]);
1317
1317
  const C = (v) => {
1318
1318
  u(v.currentTarget);
@@ -1359,7 +1359,7 @@ const Wc = (e, A) => {
1359
1359
  }), m(S);
1360
1360
  },
1361
1361
  onCancelClick: () => {
1362
- m(Hn(e, r)), f();
1362
+ m(Bn(e, r)), f();
1363
1363
  },
1364
1364
  onConnectAccountClick: a,
1365
1365
  onFilterClick: () => {
@@ -1961,7 +1961,7 @@ const ll = ({
1961
1961
  ] })
1962
1962
  ] })
1963
1963
  ] });
1964
- }, vl = T(fl), va = ({
1964
+ }, vl = T(fl), ya = ({
1965
1965
  baseline: e = "max",
1966
1966
  colors: A,
1967
1967
  datasets: n,
@@ -2124,7 +2124,7 @@ const ll = ({
2124
2124
  if (!A)
2125
2125
  throw new Error(`${e}() must be used within the GlobalDataContext`);
2126
2126
  return A;
2127
- }, ve = () => Ge("useAccountStore").globalStore.accountStore, Xe = () => Ge("useBudgetsStore").globalStore.budgetsStore, ya = () => Ge("useCashflowStore").globalStore.cashflowStore, _e = () => Ge("useCategoryStore").globalStore.categoryStore, Ri = () => Ge("useConnectStore").globalStore.connectStore, Hi = () => Ge("useDebtsStore").globalStore.debtsStore, Ea = () => Ge("useGlobalStore").globalStore, ye = () => Ge("useGlobalUiStore").globalStore.globalUiStore, L = () => Ge("globalCopyStore").globalStore.copyStore.copy, Ue = () => Ge("useGoalStore").globalStore.goalStore, yl = () => Ge("useHelpStore").globalStore.helpStore, El = () => Ge("useMerchantStore").globalStore.merchantStore, bl = () => Ge("useNetWorthStore").globalStore.netWorthStore, Bi = () => Ge("useNotificationStore").globalStore.notificationStore, ke = () => Ge("useRecurringActivityStore").globalStore.recurringActivityStore, ge = () => Ge("useTransactionStore").globalStore.transactionStore, St = () => Ge("useUserStore").globalStore.userStore, $ = () => ({ onEvent: Ge().onEvent }), b8 = () => ({ onPageView: Ge().onPageView }), wl = (e = "useWidgetContainerContext") => {
2127
+ }, ve = () => Ge("useAccountStore").globalStore.accountStore, Xe = () => Ge("useBudgetsStore").globalStore.budgetsStore, Ea = () => Ge("useCashflowStore").globalStore.cashflowStore, _e = () => Ge("useCategoryStore").globalStore.categoryStore, Ri = () => Ge("useConnectStore").globalStore.connectStore, Hi = () => Ge("useDebtsStore").globalStore.debtsStore, Sn = () => Ge("useGlobalStore").globalStore, ye = () => Ge("useGlobalUiStore").globalStore.globalUiStore, L = () => Ge("globalCopyStore").globalStore.copyStore.copy, Ue = () => Ge("useGoalStore").globalStore.goalStore, yl = () => Ge("useHelpStore").globalStore.helpStore, El = () => Ge("useMerchantStore").globalStore.merchantStore, bl = () => Ge("useNetWorthStore").globalStore.netWorthStore, Bi = () => Ge("useNotificationStore").globalStore.notificationStore, ke = () => Ge("useRecurringActivityStore").globalStore.recurringActivityStore, ge = () => Ge("useTransactionStore").globalStore.transactionStore, St = () => Ge("useUserStore").globalStore.userStore, $ = () => ({ onEvent: Ge().onEvent }), b8 = () => ({ onPageView: Ge().onPageView }), wl = (e = "useWidgetContainerContext") => {
2128
2128
  const A = g.useContext(Pi);
2129
2129
  if (!A)
2130
2130
  throw new Error(`${e}() must be used within the WidgetContainerContext`);
@@ -2331,18 +2331,18 @@ const ll = ({
2331
2331
  const U = iA(String(v)).guid;
2332
2332
  U && a?.(U);
2333
2333
  }, Je = (U) => {
2334
- const Ee = String(U?.seriesId), Pe = iA(Ee).guid, MA = he.find((Dt) => Dt.id === Ee), Nn = MA && U?.dataIndex !== void 0, Pn = MA && U?.dataIndex === void 0;
2335
- if (Nn)
2334
+ const Ee = String(U?.seriesId), Pe = iA(Ee).guid, MA = he.find((Dt) => Dt.id === Ee), Pn = MA && U?.dataIndex !== void 0, Mn = MA && U?.dataIndex === void 0;
2335
+ if (Pn)
2336
2336
  f({
2337
2337
  hoveredSeriesId: Ee,
2338
2338
  hoveredAreaData: null,
2339
2339
  isAreaHovered: !1,
2340
2340
  cursorPos: S
2341
2341
  }), A?.(Pe);
2342
- else if (Pn) {
2343
- const Dt = MA?.data.map((Mn, Rn) => ({
2344
- x: x[Rn],
2345
- y: Mn
2342
+ else if (Mn) {
2343
+ const Dt = MA?.data.map((Rn, Hn) => ({
2344
+ x: x[Hn],
2345
+ y: Rn
2346
2346
  })) ?? [];
2347
2347
  f({
2348
2348
  hoveredSeriesId: Ee,
@@ -2798,7 +2798,7 @@ const ll = ({
2798
2798
  orientation: "horizontal",
2799
2799
  value: _,
2800
2800
  children: x.buttons.map((V) => /* @__PURE__ */ t(
2801
- aa,
2801
+ ra,
2802
2802
  {
2803
2803
  onClick: () => F(V.value),
2804
2804
  sx: {
@@ -3254,7 +3254,7 @@ const lt = ({
3254
3254
  width: "100%"
3255
3255
  },
3256
3256
  children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
3257
- e === YA.Loading && /* @__PURE__ */ t(ra, { color: "primary", size: 48 }),
3257
+ e === YA.Loading && /* @__PURE__ */ t(ia, { color: "primary", size: 48 }),
3258
3258
  /* @__PURE__ */ t(
3259
3259
  p,
3260
3260
  {
@@ -3388,7 +3388,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
3388
3388
  }), Ve = ({ label: e = "", size: A = 32 }) => {
3389
3389
  const n = qe();
3390
3390
  return /* @__PURE__ */ l(y, { alignItems: "center", gap: n.Spacing.XLarge, height: 450, justifyContent: "center", children: [
3391
- /* @__PURE__ */ t(ra, { size: A }),
3391
+ /* @__PURE__ */ t(ia, { size: A }),
3392
3392
  e && /* @__PURE__ */ t(p, { children: e })
3393
3393
  ] });
3394
3394
  }, S8 = ({
@@ -3457,7 +3457,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
3457
3457
  value: r
3458
3458
  }
3459
3459
  ) });
3460
- }, Sn = T(Hl), mr = ({
3460
+ }, Tn = T(Hl), mr = ({
3461
3461
  checked: e = !1,
3462
3462
  label: A,
3463
3463
  sx: n = {},
@@ -3478,7 +3478,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
3478
3478
  py: 4,
3479
3479
  sx: { "&:hover": { borderColor: i.palette.action.active }, ...n },
3480
3480
  children: /* @__PURE__ */ t(wt, { title: a, children: /* @__PURE__ */ t(
3481
- Un,
3481
+ Qn,
3482
3482
  {
3483
3483
  control: /* @__PURE__ */ t(
3484
3484
  Ls,
@@ -3815,10 +3815,10 @@ const fr = (e, A) => !e && !A ? 0 : !e && A ? 101 : A / e * 100, vr = (e, A) =>
3815
3815
  });
3816
3816
  }
3817
3817
  return r;
3818
- }, Jn = (e, A) => e.find((n) => n.guid === A), Fl = (e, A, n) => {
3819
- const a = Jn(e, n);
3818
+ }, Zn = (e, A) => e.find((n) => n.guid === A), Fl = (e, A, n) => {
3819
+ const a = Zn(e, n);
3820
3820
  if (a)
3821
- return Jn(a.subBudgets, A);
3821
+ return Zn(a.subBudgets, A);
3822
3822
  };
3823
3823
  class Xl {
3824
3824
  api = new pr("/", "");
@@ -3839,7 +3839,7 @@ class Xl {
3839
3839
  (a) => {
3840
3840
  if (a) {
3841
3841
  const r = this.selectedBudget;
3842
- r && (this.selectedBudget = Jn(a, r.guid));
3842
+ r && (this.selectedBudget = Zn(a, r.guid));
3843
3843
  const i = this.selectedSubBudget;
3844
3844
  i && i.parent_guid && (this.selectedSubBudget = Fl(
3845
3845
  a,
@@ -3934,7 +3934,7 @@ class Xl {
3934
3934
  const Tt = () => {
3935
3935
  if (!g.useContext(st))
3936
3936
  throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
3937
- return ya().uiStore;
3937
+ return Ea().uiStore;
3938
3938
  }, jl = ({ remaining: e }) => {
3939
3939
  const { cashflow: A } = L();
3940
3940
  return /* @__PURE__ */ l(Q, { children: [
@@ -4521,7 +4521,7 @@ const Yl = [
4521
4521
  category: ce.TRANSACTIONS_WIDGET,
4522
4522
  label: le.DELETE_TRANSACTION
4523
4523
  }
4524
- }, Zl = async (e, A) => !A || !Er[e] ? null : A.sendAnalyticEvent(Er[e]), Zn = {
4524
+ }, Zl = async (e, A) => !A || !Er[e] ? null : A.sendAnalyticEvent(Er[e]), $n = {
4525
4525
  FLAG: "flag",
4526
4526
  DATE: "date",
4527
4527
  PAYEE: "payee",
@@ -4554,12 +4554,12 @@ const Yl = [
4554
4554
  }, td = (e, A, n) => [...e].sort((a, r) => {
4555
4555
  const i = A, o = (a[i] || "") > (r[i] || "");
4556
4556
  let s = o ? -1 : 1, c = o ? 1 : -1;
4557
- return (A === Zn.DATE || A === Zn.AMOUNT) && (s = o ? 1 : -1, c = o ? -1 : 1), n === ki.ASC ? s : c;
4557
+ return (A === $n.DATE || A === $n.AMOUNT) && (s = o ? 1 : -1, c = o ? -1 : 1), n === ki.ASC ? s : c;
4558
4558
  }), dA = (e, A) => {
4559
4559
  const n = e.toLowerCase().split(" "), a = A?.toString().toLowerCase() ?? "";
4560
4560
  return n.every((r) => a.indexOf(r) > -1);
4561
4561
  };
4562
- var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), nd = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(nd || {}), ad = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(ad || {}), rd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(rd || {}), ee = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(ee || {}), $n = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($n || {}), eA = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(eA || {}), AA = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(AA || {}), wa = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(wa || {}), id = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(id || {});
4562
+ var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), nd = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(nd || {}), ad = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(ad || {}), rd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(rd || {}), ee = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(ee || {}), ea = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(ea || {}), eA = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(eA || {}), AA = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(AA || {}), wa = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(wa || {}), id = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(id || {});
4563
4563
  const Gi = {
4564
4564
  account_guid: "",
4565
4565
  amount: 0,
@@ -4640,7 +4640,7 @@ class sd {
4640
4640
  associatedBeats = [];
4641
4641
  cachedStartDate = TA(ie(), 90);
4642
4642
  onAnalyticEvent = Zl;
4643
- sortColumn = Zn.DATE;
4643
+ sortColumn = $n.DATE;
4644
4644
  sortDirection = ki.DESC;
4645
4645
  filter = {};
4646
4646
  constructor(A) {
@@ -4702,7 +4702,7 @@ class sd {
4702
4702
  this.taggings
4703
4703
  );
4704
4704
  loadAssociatedBeats = async (A) => {
4705
- const n = A ? sa(A, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(n);
4705
+ const n = A ? ca(A, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(n);
4706
4706
  Y(() => this.associatedBeats = a);
4707
4707
  };
4708
4708
  loadTags = async () => {
@@ -5133,7 +5133,7 @@ const rA = () => {
5133
5133
  ON_SUBCATEGORY_DELETED: "onSubcategoryDeleted",
5134
5134
  ON_SUBCATEGORY_SAVED: "onSubcategorySaved"
5135
5135
  };
5136
- var Tn = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(Tn || {});
5136
+ var In = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(In || {});
5137
5137
  const Dd = ({
5138
5138
  categoryName: e = "",
5139
5139
  onClose: A,
@@ -5207,7 +5207,7 @@ const Dd = ({
5207
5207
  isOpen: A,
5208
5208
  onClose: d,
5209
5209
  onSave: s,
5210
- type: Tn.ADD
5210
+ type: In.ADD
5211
5211
  }
5212
5212
  )
5213
5213
  ] });
@@ -5228,7 +5228,7 @@ const Dd = ({
5228
5228
  isOpen: n,
5229
5229
  onClose: o,
5230
5230
  onSave: i,
5231
- type: Tn.EDIT
5231
+ type: In.EDIT
5232
5232
  }
5233
5233
  );
5234
5234
  }, Nd = T(_d), Pd = ({
@@ -5249,7 +5249,7 @@ const Dd = ({
5249
5249
  isOpen: A,
5250
5250
  onClose: o,
5251
5251
  onSave: s,
5252
- type: Tn.DELETE
5252
+ type: In.DELETE
5253
5253
  }
5254
5254
  );
5255
5255
  }, Md = T(Pd), Rd = ({ parentCategory: e, subCategory: A }) => {
@@ -5287,7 +5287,7 @@ const Dd = ({
5287
5287
  primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
5288
5288
  }
5289
5289
  ),
5290
- o && E && /* @__PURE__ */ t(ua, { fontSize: "small" }),
5290
+ o && E && /* @__PURE__ */ t(ha, { fontSize: "small" }),
5291
5291
  !I && /* @__PURE__ */ t(nc, { label: c })
5292
5292
  ]
5293
5293
  }
@@ -5384,7 +5384,7 @@ const Dd = ({
5384
5384
  primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
5385
5385
  }
5386
5386
  ),
5387
- /* @__PURE__ */ t(nA, { children: o || a ? /* @__PURE__ */ t(ia, {}) : /* @__PURE__ */ t(pn, {}) })
5387
+ /* @__PURE__ */ t(nA, { children: o || a ? /* @__PURE__ */ t(oa, {}) : /* @__PURE__ */ t(pn, {}) })
5388
5388
  ]
5389
5389
  },
5390
5390
  e.guid
@@ -5442,7 +5442,7 @@ const Dd = ({
5442
5442
  e && m(e), C(n), f(a), v(r);
5443
5443
  }, [e, n, a, r]), /* @__PURE__ */ l("div", { className: `mx-cat-category-selector ${i}`, children: [
5444
5444
  /* @__PURE__ */ t(
5445
- Sn,
5445
+ Tn,
5446
5446
  {
5447
5447
  ariaLabel: c.search_aria,
5448
5448
  cancelAriaLabel: c.cancel_search_aria,
@@ -5934,7 +5934,7 @@ const Ui = ({ transaction: e }) => {
5934
5934
  }
5935
5935
  ),
5936
5936
  /* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(
5937
- la,
5937
+ da,
5938
5938
  {
5939
5939
  checked: c,
5940
5940
  id: "hide-transaction",
@@ -6636,7 +6636,7 @@ const Ui = ({ transaction: e }) => {
6636
6636
  a(G.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await A({ ...e, is_flagged: !e.is_flagged });
6637
6637
  };
6638
6638
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
6639
- aa,
6639
+ ra,
6640
6640
  {
6641
6641
  "aria-label": n.flag_btn_aria,
6642
6642
  "aria-pressed": e.is_flagged,
@@ -6822,13 +6822,13 @@ const Ui = ({ transaction: e }) => {
6822
6822
  JA,
6823
6823
  {
6824
6824
  InputLabelProps: { shrink: !0 },
6825
- SelectProps: { defaultValue: -1, IconComponent: ia },
6825
+ SelectProps: { defaultValue: -1, IconComponent: oa },
6826
6826
  label: n.manual_transaction_select_an_account,
6827
6827
  onChange: (E) => v(E.target.value),
6828
6828
  placeholder: n.manual_transaction_select,
6829
6829
  select: !0,
6830
6830
  sx: { bgcolor: "background.paper" },
6831
- children: u.map((E) => /* @__PURE__ */ t(ca, { value: E.value, children: E.label }, E.value))
6831
+ children: u.map((E) => /* @__PURE__ */ t(la, { value: E.value, children: E.label }, E.value))
6832
6832
  }
6833
6833
  )
6834
6834
  ] }),
@@ -6937,9 +6937,9 @@ const Ui = ({ transaction: e }) => {
6937
6937
  ...f,
6938
6938
  searchTerm: ze
6939
6939
  }), x(G.TRANSACTIONS_CLICK_SEARCH, { search_term: ze });
6940
- }, Nn = () => {
6941
- Fi(S, I), x(G.TRANSACTIONS_CLICK_EXPORT);
6942
6940
  }, Pn = () => {
6941
+ Fi(S, I), x(G.TRANSACTIONS_CLICK_EXPORT);
6942
+ }, Mn = () => {
6943
6943
  Lt.length > 0 ? (m({
6944
6944
  ...Gi,
6945
6945
  date: pe(ie()),
@@ -6950,9 +6950,9 @@ const Ui = ({ transaction: e }) => {
6950
6950
  ), x(G.TRANSACTIONS_CLICK_ADD)) : (DA(!0), x(G.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
6951
6951
  }, Dt = async () => {
6952
6952
  Ee && await C(s), Ce("");
6953
- }, Mn = () => {
6954
- DA(!1), Se(!0);
6955
6953
  }, Rn = () => {
6954
+ DA(!1), Se(!0);
6955
+ }, Hn = () => {
6956
6956
  Se(!1), i();
6957
6957
  };
6958
6958
  return !K || !Je ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
@@ -6963,12 +6963,12 @@ const Ui = ({ transaction: e }) => {
6963
6963
  {
6964
6964
  iconName: "open_in_new",
6965
6965
  label: _.export_csv_btn,
6966
- onClick: Nn
6966
+ onClick: Pn
6967
6967
  },
6968
6968
  {
6969
6969
  iconName: "add",
6970
6970
  label: _.add_transaction_btn,
6971
- onClick: Pn
6971
+ onClick: Mn
6972
6972
  }
6973
6973
  ],
6974
6974
  calendarActions: {
@@ -6980,7 +6980,7 @@ const Ui = ({ transaction: e }) => {
6980
6980
  title: _.transactions_title,
6981
6981
  children: [
6982
6982
  /* @__PURE__ */ t(N, { mt: 16, children: /* @__PURE__ */ t(
6983
- Sn,
6983
+ Tn,
6984
6984
  {
6985
6985
  onChange: MA,
6986
6986
  placeholder: _.action_bar_search_placeholder,
@@ -7077,13 +7077,13 @@ const Ui = ({ transaction: e }) => {
7077
7077
  onClose: () => {
7078
7078
  DA(!1);
7079
7079
  },
7080
- onPrimaryAction: Mn
7080
+ onPrimaryAction: Rn
7081
7081
  }
7082
7082
  ),
7083
7083
  /* @__PURE__ */ t(
7084
7084
  Yt,
7085
7085
  {
7086
- onClose: Rn,
7086
+ onClose: Hn,
7087
7087
  showConnectWidget: at,
7088
7088
  title: _.add_manual_account
7089
7089
  }
@@ -7120,7 +7120,7 @@ const Ui = ({ transaction: e }) => {
7120
7120
  return n;
7121
7121
  }, Zi = (e, A) => ({
7122
7122
  ...A,
7123
- occurs_on: sa(e.expectedDate, { representation: "date" }),
7123
+ occurs_on: ca(e.expectedDate, { representation: "date" }),
7124
7124
  recurrence_type: e.recurrenceType
7125
7125
  }), Ou = ({ activity: e }) => {
7126
7126
  const { recurring: A } = L(), { cashflowSequences: n, scheduledPayments: a, updateCashflowSequence: r, updateScheduledPayment: i } = ke(), { onEvent: o } = $(), [s, c] = g.useState(!1), d = e.activityType === Ne.Income, u = [
@@ -7226,7 +7226,7 @@ const Ui = ({ transaction: e }) => {
7226
7226
  onPrimaryAction: C,
7227
7227
  title: A.activity_payment_date,
7228
7228
  children: /* @__PURE__ */ t(fn, { dateAdapter: Wt, children: /* @__PURE__ */ t(
7229
- da,
7229
+ ua,
7230
7230
  {
7231
7231
  minDate: ie(),
7232
7232
  onChange: (f) => u(f),
@@ -7349,11 +7349,11 @@ const Ui = ({ transaction: e }) => {
7349
7349
  }
7350
7350
  )
7351
7351
  ] });
7352
- }, Ru = T(Mu), In = {
7352
+ }, Ru = T(Mu), Ln = {
7353
7353
  gridRow: 1,
7354
7354
  gridColumn: 1,
7355
7355
  zIndex: 2
7356
- }, Ln = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Da = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Ln(e) }, children: /* @__PURE__ */ t(ec, { color: "primary", sx: { fontSize: A, ...In } }) }), xa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Ln(e) }, children: /* @__PURE__ */ t(Ac, { sx: { color: "categories.income", fontSize: A, ...In } }) }), Oa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Ln(e) }, children: /* @__PURE__ */ t(rn, { color: "error", sx: { fontSize: A, ...In } }) }), _a = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Ln(e) }, children: /* @__PURE__ */ t(ua, { color: "success", sx: { fontSize: A, ...In } }) }), xr = ({ copy: e, date: A, type: n }) => {
7356
+ }, Dn = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Da = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ec, { color: "primary", sx: { fontSize: A, ...Ln } }) }), xa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(Ac, { sx: { color: "categories.income", fontSize: A, ...Ln } }) }), Oa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(rn, { color: "error", sx: { fontSize: A, ...Ln } }) }), _a = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ha, { color: "success", sx: { fontSize: A, ...Ln } }) }), xr = ({ copy: e, date: A, type: n }) => {
7357
7357
  let a = A && gi(A) ? P(e.monthly_ordinal, Ye(A, "do")) : e.monthly;
7358
7358
  switch (n) {
7359
7359
  case X.EveryQuarter:
@@ -7533,7 +7533,7 @@ const Ui = ({ transaction: e }) => {
7533
7533
  description: e.feed_description || e.description,
7534
7534
  is_tracked_by_user: !0,
7535
7535
  merchant_guid: e.merchant_guid,
7536
- occurs_on: sa(n, { representation: "date" }),
7536
+ occurs_on: ca(n, { representation: "date" }),
7537
7537
  recurrence_day: 0,
7538
7538
  recurrence_type: X.EveryMonth
7539
7539
  };
@@ -7561,7 +7561,7 @@ const Ui = ({ transaction: e }) => {
7561
7561
  return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
7562
7562
  A && /* @__PURE__ */ t(Me, { sx: { mx: 24 }, children: A }),
7563
7563
  /* @__PURE__ */ t(
7564
- Sn,
7564
+ Tn,
7565
7565
  {
7566
7566
  ariaLabel: r.select_transaction_search_aria,
7567
7567
  cancelAriaLabel: r.select_transaction_search_cancel_aria,
@@ -7600,7 +7600,7 @@ const Ui = ({ transaction: e }) => {
7600
7600
  const h = Le(o.date);
7601
7601
  switch (Number(u.target.value)) {
7602
7602
  case X.EveryWeek:
7603
- i(fa(h));
7603
+ i(va(h));
7604
7604
  break;
7605
7605
  case X.EveryOtherWeek:
7606
7606
  i(Gc(h));
@@ -7643,7 +7643,7 @@ const Ui = ({ transaction: e }) => {
7643
7643
  sx: { mx: 24 },
7644
7644
  value: A,
7645
7645
  variant: "outlined",
7646
- children: c.map((u) => /* @__PURE__ */ t(ca, { value: u.id, children: u.label }, u.id))
7646
+ children: c.map((u) => /* @__PURE__ */ t(la, { value: u.id, children: u.label }, u.id))
7647
7647
  }
7648
7648
  ),
7649
7649
  /* @__PURE__ */ t(fn, { dateAdapter: Wt, children: /* @__PURE__ */ t(
@@ -7657,7 +7657,7 @@ const Ui = ({ transaction: e }) => {
7657
7657
  }
7658
7658
  ) })
7659
7659
  ] });
7660
- }, to = T(ku), ea = (e) => e.top_level_category_guid !== b.INCOME && e.transaction_type === AA.DEBIT, Gu = (e, A) => ea(e) ? e.payee?.toLowerCase().includes(A.toLowerCase()) || e.description.toLowerCase().includes(A.toLowerCase()) || e.feed_description.toLowerCase().includes(A.toLowerCase()) : !1, Xt = (e) => e.top_level_category_guid === b.INCOME || e.top_level_category_guid === b.TRANSFER && e.transaction_type === AA.CREDIT, no = (e, A) => Xt(e) ? e.payee?.toLowerCase().includes(A.toLowerCase()) || e.description?.toLowerCase().includes(A.toLowerCase()) || e.feed_description?.toLowerCase().includes(A.toLowerCase()) : !1, Fu = ({
7660
+ }, to = T(ku), Aa = (e) => e.top_level_category_guid !== b.INCOME && e.transaction_type === AA.DEBIT, Gu = (e, A) => Aa(e) ? e.payee?.toLowerCase().includes(A.toLowerCase()) || e.description.toLowerCase().includes(A.toLowerCase()) || e.feed_description.toLowerCase().includes(A.toLowerCase()) : !1, Xt = (e) => e.top_level_category_guid === b.INCOME || e.top_level_category_guid === b.TRANSFER && e.transaction_type === AA.CREDIT, no = (e, A) => Xt(e) ? e.payee?.toLowerCase().includes(A.toLowerCase()) || e.description?.toLowerCase().includes(A.toLowerCase()) || e.feed_description?.toLowerCase().includes(A.toLowerCase()) : !1, Fu = ({
7661
7661
  isIncome: e = !1,
7662
7662
  label: A,
7663
7663
  onAddActivity: n = () => null
@@ -7666,7 +7666,7 @@ const Ui = ({ transaction: e }) => {
7666
7666
  () => d.find((O) => O.guid === m),
7667
7667
  [m]
7668
7668
  ), w = () => {
7669
- h(!0), c(e ? { ...s, custom: Xt } : { ...s, custom: ea });
7669
+ h(!0), c(e ? { ...s, custom: Xt } : { ...s, custom: Aa });
7670
7670
  }, D = async () => {
7671
7671
  if (n(), !S || !E) {
7672
7672
  _();
@@ -7709,7 +7709,7 @@ const Ui = ({ transaction: e }) => {
7709
7709
  onSearch: (O) => {
7710
7710
  c({
7711
7711
  ...s,
7712
- custom: (x) => e ? O ? no(x, O) : Xt(x) : O ? Gu(x, O) : ea(x)
7712
+ custom: (x) => e ? O ? no(x, O) : Xt(x) : O ? Gu(x, O) : Aa(x)
7713
7713
  });
7714
7714
  },
7715
7715
  onSelected: (O) => C(O)
@@ -7770,10 +7770,10 @@ const Ui = ({ transaction: e }) => {
7770
7770
  ] }, c.scheduledPaymentGuid)),
7771
7771
  /* @__PURE__ */ t(ao, { label: e.add_expense, onAddActivity: s })
7772
7772
  ] });
7773
- }, Uu = T(ju), Aa = (e) => {
7773
+ }, Uu = T(ju), ta = (e) => {
7774
7774
  let A = e.user_name || e.feed_name || "";
7775
7775
  return e.account_number && (A = `${A} *${e.account_number}`), A;
7776
- }, ta = (e) => e ? e.repeat_interval === "1" ? X.EveryWeek : e.repeat_interval === "2" ? X.EveryOtherWeek : e.repeat_day && !e.repeat_month && !e.repeat_interval ? X.EveryMonth : e.repeat_day && e.repeat_interval === "3" ? X.EveryQuarter : e.repeat_day && e.repeat_month ? X.EveryYear : X.Unknown : X.Unknown, Qu = (e, A, n, a, r, i) => {
7776
+ }, na = (e) => e ? e.repeat_interval === "1" ? X.EveryWeek : e.repeat_interval === "2" ? X.EveryOtherWeek : e.repeat_day && !e.repeat_month && !e.repeat_interval ? X.EveryMonth : e.repeat_day && e.repeat_interval === "3" ? X.EveryQuarter : e.repeat_day && e.repeat_month ? X.EveryYear : X.Unknown : X.Unknown, Qu = (e, A, n, a, r, i) => {
7777
7777
  const o = A.filter((u) => {
7778
7778
  const h = r.find((C) => C.guid === u.cashflow_sequence_guid), m = i.find((C) => C.guid === u.transaction_guid);
7779
7779
  return h?.end_date === null && m;
@@ -7788,10 +7788,10 @@ const Ui = ({ transaction: e }) => {
7788
7788
  expectedDate: Ht(u.expected_date),
7789
7789
  occurredOnDate: u.occurred_on ? Ht(u.occurred_on) : void 0,
7790
7790
  name: u.name,
7791
- institution: C ? Aa(C) : void 0,
7791
+ institution: C ? ta(C) : void 0,
7792
7792
  institutionGuid: C?.institution_guid,
7793
7793
  merchantGuid: m?.merchant_guid || void 0,
7794
- recurrenceType: ta(h),
7794
+ recurrenceType: na(h),
7795
7795
  recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
7796
7796
  sequenceGuid: h?.guid,
7797
7797
  transactionGuid: u.transaction_guid
@@ -7818,10 +7818,10 @@ const Ui = ({ transaction: e }) => {
7818
7818
  categoryGuid: u.category_guid,
7819
7819
  expectedDate: Ht(u.expected_date),
7820
7820
  name: u.name,
7821
- institution: f ? Aa(f) : void 0,
7821
+ institution: f ? ta(f) : void 0,
7822
7822
  institutionGuid: f?.institution_guid,
7823
7823
  merchantGuid: C?.merchant_guid || void 0,
7824
- recurrenceType: ta(h),
7824
+ recurrenceType: na(h),
7825
7825
  recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
7826
7826
  sequenceGuid: h?.guid,
7827
7827
  transactionGuid: void 0
@@ -7841,7 +7841,7 @@ const Ui = ({ transaction: e }) => {
7841
7841
  categoryGuid: r?.category_guid,
7842
7842
  expectedDate: o,
7843
7843
  name: A.description,
7844
- institution: i ? Aa(i) : void 0,
7844
+ institution: i ? ta(i) : void 0,
7845
7845
  institutionGuid: i?.institution_guid,
7846
7846
  merchantGuid: A.merchant_guid,
7847
7847
  recurrenceType: A.recurrence_type,
@@ -7852,11 +7852,11 @@ const Ui = ({ transaction: e }) => {
7852
7852
  let m = u;
7853
7853
  switch (A.recurrence_type) {
7854
7854
  case X.EveryWeek:
7855
- for (m = Qn(m, c); Te(m, h); )
7855
+ for (m = Wn(m, c); Te(m, h); )
7856
7856
  a.push({
7857
7857
  ...s,
7858
7858
  expectedDate: m
7859
- }), m = Qn(m, c);
7859
+ }), m = Wn(m, c);
7860
7860
  break;
7861
7861
  case X.EveryOtherWeek:
7862
7862
  if (Te(o, u))
@@ -7884,10 +7884,10 @@ const Ui = ({ transaction: e }) => {
7884
7884
  case X.EveryMonth:
7885
7885
  a.push({
7886
7886
  ...s,
7887
- expectedDate: Wn(m, c)
7887
+ expectedDate: Yn(m, c)
7888
7888
  }), a.push({
7889
7889
  ...s,
7890
- expectedDate: oA(Wn(m, c), 1)
7890
+ expectedDate: oA(Yn(m, c), 1)
7891
7891
  });
7892
7892
  break;
7893
7893
  case X.EveryOtherMonth:
@@ -7946,7 +7946,7 @@ const Ui = ({ transaction: e }) => {
7946
7946
  institution: d?.user_name,
7947
7947
  institutionGuid: d?.institution_guid,
7948
7948
  merchantGuid: c?.merchant_guid,
7949
- recurrenceType: ta(i),
7949
+ recurrenceType: na(i),
7950
7950
  recurrenceDay: Number(i.repeat_day),
7951
7951
  sequenceGuid: i.guid
7952
7952
  };
@@ -7994,13 +7994,13 @@ const Ui = ({ transaction: e }) => {
7994
7994
  e === 0 && /* @__PURE__ */ t(Uu, {}),
7995
7995
  e === 1 && /* @__PURE__ */ t(Na, {})
7996
7996
  ] });
7997
- }, ro = T(Ju), _t = (e, A) => e + A.amount, Bn = (e) => e.activityType === Ne.Income && ft(e.expectedDate, {
7997
+ }, ro = T(Ju), _t = (e, A) => e + A.amount, zn = (e) => e.activityType === Ne.Income && ft(e.expectedDate, {
7998
7998
  start: xe(ie()),
7999
7999
  end: Re(ie())
8000
8000
  }), en = (e) => e.activityType === Ne.Expense && ft(e.expectedDate, {
8001
8001
  start: xe(ie()),
8002
8002
  end: Re(ie())
8003
- }), zn = (e) => e.occurredOnDate && ft(e.occurredOnDate, {
8003
+ }), Kn = (e) => e.occurredOnDate && ft(e.occurredOnDate, {
8004
8004
  start: xe(/* @__PURE__ */ new Date()),
8005
8005
  end: OA(ie(), 30)
8006
8006
  }) || ft(e.expectedDate, {
@@ -8087,7 +8087,7 @@ const Ui = ({ transaction: e }) => {
8087
8087
  ), i = (s) => {
8088
8088
  r(Za(s) * xt + Or), A(G.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
8089
8089
  }, o = /* @__PURE__ */ t(
8090
- da,
8090
+ ua,
8091
8091
  {
8092
8092
  maxDate: Re(oA(/* @__PURE__ */ new Date(), 1)),
8093
8093
  minDate: xe(/* @__PURE__ */ new Date()),
@@ -8239,7 +8239,7 @@ const Ui = ({ transaction: e }) => {
8239
8239
  selectedDayActivities: s,
8240
8240
  setSelectedDay: c,
8241
8241
  upcomingActivities: d
8242
- } = ke(), [u, h] = g.useState(0), { onEvent: m } = $(), C = a.filter(zn), f = i.filter(zn), v = r.filter(zn), E = C.filter(en).reduce(_t, 0), I = f.filter(en).reduce(_t, 0), S = v.filter(en).reduce(_t, 0), w = C.filter(en).length, D = C.filter(Bn).reduce(_t, 0), _ = f.filter(Bn).reduce(_t, 0), O = C.filter(Bn).length, x = (q, F) => {
8242
+ } = ke(), [u, h] = g.useState(0), { onEvent: m } = $(), C = a.filter(Kn), f = i.filter(Kn), v = r.filter(Kn), E = C.filter(en).reduce(_t, 0), I = f.filter(en).reduce(_t, 0), S = v.filter(en).reduce(_t, 0), w = C.filter(en).length, D = C.filter(zn).reduce(_t, 0), _ = f.filter(zn).reduce(_t, 0), O = C.filter(zn).length, x = (q, F) => {
8243
8243
  h(F);
8244
8244
  }, z = (q) => {
8245
8245
  m(G.RECURRING_ACTIVITY_CLICK_UPCOMING, {
@@ -8674,8 +8674,8 @@ const hh = {
8674
8674
  name: r,
8675
8675
  placeholder: P(A.enter_value, a),
8676
8676
  type: Ze.Input,
8677
- validation: (i) => Vn(i) ? "" : A.error_amount_is_invalid,
8678
- valueFormatter: (i) => Vn(i) ? bn(i / 100) : i
8677
+ validation: (i) => Jn(i) ? "" : A.error_amount_is_invalid,
8678
+ valueFormatter: (i) => Jn(i) ? bn(i / 100) : i
8679
8679
  });
8680
8680
  }
8681
8681
  return Pa(e) && (n.push({
@@ -8789,7 +8789,7 @@ const hh = {
8789
8789
  )
8790
8790
  ] });
8791
8791
  return /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, ...n, children: A ? /* @__PURE__ */ t(ae, { alignItems: "flex-start", onClick: A, sx: { px: 24 }, children: u }) : u });
8792
- }, Dn = T(yh), Eh = ({ remaining: e }) => /* @__PURE__ */ t(
8792
+ }, xn = T(yh), Eh = ({ remaining: e }) => /* @__PURE__ */ t(
8793
8793
  j,
8794
8794
  {
8795
8795
  sx: {
@@ -8849,7 +8849,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
8849
8849
  ),
8850
8850
  /* @__PURE__ */ t(H, {})
8851
8851
  ] });
8852
- }, Pr = T(wh), Mr = (e, A) => (n) => n.accountGuid === e.guid && (ha(n.expectedDate) || yt(n.expectedDate, A.start)) && Te(n.expectedDate, A.end), Sh = () => {
8852
+ }, Pr = T(wh), Mr = (e, A) => (n) => n.accountGuid === e.guid && (ga(n.expectedDate) || yt(n.expectedDate, A.start)) && Te(n.expectedDate, A.end), Sh = () => {
8853
8853
  const { availableWidth: e } = ct(), { cashflow: A } = L(), { upcomingExpenses: n, upcomingIncome: a } = ke(), { dateRange: r, selectedCashAccounts: i } = Tt();
8854
8854
  return /* @__PURE__ */ l(y, { children: [
8855
8855
  /* @__PURE__ */ l(y, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
@@ -8882,7 +8882,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
8882
8882
  },
8883
8883
  children: [
8884
8884
  /* @__PURE__ */ t(
8885
- Dn,
8885
+ xn,
8886
8886
  {
8887
8887
  account: o,
8888
8888
  listItemProps: {
@@ -9206,7 +9206,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9206
9206
  A && /* @__PURE__ */ t(Ie, { amount: e, component: "h2", symbol: r, variant: "Small" })
9207
9207
  ]
9208
9208
  }
9209
- ), Rr = (e, A) => (n) => n.accountGuid && e.includes(n.accountGuid) && (ha(n.expectedDate) || yt(n.expectedDate, A.start)) && Te(n.expectedDate, A.end), Oh = () => {
9209
+ ), Rr = (e, A) => (n) => n.accountGuid && e.includes(n.accountGuid) && (ga(n.expectedDate) || yt(n.expectedDate, A.start)) && Te(n.expectedDate, A.end), Oh = () => {
9210
9210
  const [e, A] = g.useState(!1), { availableWidth: n } = ct(), { cashflow: a } = L(), { upcomingExpenses: r, upcomingIncome: i } = ke(), { selectedAccountGuids: o } = ye(), { dateRange: s, selectedCashAccounts: c } = Tt(), { userProfile: d } = St(), u = g.useMemo(
9211
9211
  () => r.filter(Rr(o, s)),
9212
9212
  [s, o, r]
@@ -9323,7 +9323,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9323
9323
  )
9324
9324
  ] });
9325
9325
  }, _h = T(Oh), Nh = ({ handleNextStep: e }) => {
9326
- const { completeOnboarding: A } = ya(), { cashflow: n } = L(), a = fe();
9326
+ const { completeOnboarding: A } = Ea(), { cashflow: n } = L(), a = fe();
9327
9327
  return /* @__PURE__ */ l(y, { children: [
9328
9328
  /* @__PURE__ */ t(kA, { pb: 12, children: n.welcome_title }),
9329
9329
  /* @__PURE__ */ t(
@@ -9407,7 +9407,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9407
9407
  transform: rotate(360deg);
9408
9408
  }
9409
9409
  `, Kh = () => {
9410
- const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } = ya(), { isDirty: o } = Tt(), { isMobile: s } = Be(), { setDisplayedDate: c } = ye(), { filter: d, setFilter: u, transactions: h } = ge(), m = fe(), [C, f] = EA(!0), [v, E] = g.useState(X.EveryMonth), [I, S] = EA(!1), [w, D] = g.useState(null), [_, O] = EA(1), [x, z] = EA([]), [K, q] = EA(""), F = g.useMemo(
9410
+ const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } = Ea(), { isDirty: o } = Tt(), { isMobile: s } = Be(), { setDisplayedDate: c } = ye(), { filter: d, setFilter: u, transactions: h } = ge(), m = fe(), [C, f] = EA(!0), [v, E] = g.useState(X.EveryMonth), [I, S] = EA(!1), [w, D] = g.useState(null), [_, O] = EA(1), [x, z] = EA([]), [K, q] = EA(""), F = g.useMemo(
9411
9411
  () => h.find((he) => he.guid === K),
9412
9412
  [K]
9413
9413
  ), V = !!n.length, te = async () => {
@@ -10151,7 +10151,7 @@ const tn = {
10151
10151
  if (!g.useContext(st))
10152
10152
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
10153
10153
  return ve().uiStore;
10154
- }, xn = (e) => e.top_level_category_guid === b.INCOME || e.category_guid === b.INCOME, Vh = (e) => !xn(e) && !co(e), so = (e) => Ar.includes(e.top_level_category_guid) || Ar.includes(e.category_guid), co = (e) => e.top_level_category_guid === b.TRANSFER || e.category_guid === b.TRANSFER, Jh = (e) => !xn(e) && !so(e) && !co(e), Zh = (e) => e.filter((A) => A.category_guid === A.top_level_category_guid), Ma = (e, A) => {
10154
+ }, On = (e) => e.top_level_category_guid === b.INCOME || e.category_guid === b.INCOME, Vh = (e) => !On(e) && !co(e), so = (e) => Ar.includes(e.top_level_category_guid) || Ar.includes(e.category_guid), co = (e) => e.top_level_category_guid === b.TRANSFER || e.category_guid === b.TRANSFER, Jh = (e) => !On(e) && !so(e) && !co(e), Zh = (e) => e.filter((A) => A.category_guid === A.top_level_category_guid), Ma = (e, A) => {
10155
10155
  const n = [];
10156
10156
  let a = xe(bA(/* @__PURE__ */ new Date(), 5));
10157
10157
  const r = /* @__PURE__ */ new Date();
@@ -10162,7 +10162,7 @@ const tn = {
10162
10162
  }), a = oA(a, 1);
10163
10163
  return n;
10164
10164
  }, $h = (e, A) => {
10165
- const n = e.filter(xn);
10165
+ const n = e.filter(On);
10166
10166
  return Ma(n).map((a) => ({ ...a, y: Math.abs(a.y) }));
10167
10167
  }, eg = (e, A) => {
10168
10168
  const n = e.filter(so);
@@ -10183,18 +10183,18 @@ const tn = {
10183
10183
  }), a = oA(a, 1);
10184
10184
  return A;
10185
10185
  }, ng = (e, A) => {
10186
- const n = ma.includes(A) ? $h(e) : [], a = Ca.includes(A) ? eg(e) : [], r = pa.includes(A) ? Ag(e) : [];
10186
+ const n = Ca.includes(A) ? $h(e) : [], a = pa.includes(A) ? eg(e) : [], r = fa.includes(A) ? Ag(e) : [];
10187
10187
  return [n, a, r].filter((i) => i.length > 0);
10188
10188
  }, ag = (e, A, n) => {
10189
10189
  const [a, r] = e, i = a, o = r ?? a, s = [];
10190
- if (i && o && ma.includes(A)) {
10190
+ if (i && o && Ca.includes(A)) {
10191
10191
  const c = R(i[i.length - 1].y, "0,0");
10192
10192
  s.push(`${n.income_label} ${c}`);
10193
- } else if (Ca.includes(A)) {
10193
+ } else if (pa.includes(A)) {
10194
10194
  const c = R(i[i.length - 1].y, "0,0");
10195
10195
  s.push(`${n.payments_label} ${c}`);
10196
10196
  }
10197
- if (o && pa.includes(A)) {
10197
+ if (o && fa.includes(A)) {
10198
10198
  const c = R(o[o.length - 1].y, "0,0");
10199
10199
  s.push(`${n.spending_label} ${c}`);
10200
10200
  }
@@ -10202,7 +10202,7 @@ const tn = {
10202
10202
  }, rg = () => {
10203
10203
  const e = cA(), { selectedAccount: A } = lA(), { monthlyCategoryTotals: n } = _e(), { trends: a } = L(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], i = ng(n, A.account_type), o = ag(i, A.account_type, a), s = [W.LOAN, W.MORTGAGE].includes(A.account_type);
10204
10204
  return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
10205
- va,
10205
+ ya,
10206
10206
  {
10207
10207
  colors: r,
10208
10208
  datasets: i,
@@ -10213,7 +10213,7 @@ const tn = {
10213
10213
  }
10214
10214
  ) });
10215
10215
  }, ig = T(rg), og = ({ sx: e }) => {
10216
- const { loadMonthlyCategoryTotals: A } = _e(), { isInitialized: n } = Ea(), { selectedAccount: a } = lA(), [r, i] = g.useState(!1);
10216
+ const { loadMonthlyCategoryTotals: A } = _e(), { isInitialized: n } = Sn(), { selectedAccount: a } = lA(), [r, i] = g.useState(!1);
10217
10217
  return g.useEffect(() => {
10218
10218
  n && A([a]).finally(() => {
10219
10219
  i(!0);
@@ -10244,9 +10244,9 @@ const tn = {
10244
10244
  const { institutions: A } = ve(), { selectedAccount: n } = lA(), { accounts: a } = L(), { firstSubtitle: r, firstValue: i, hasAvailableBalance: o, secondSubtitle: s, secondValue: c } = oo(n, a), d = A.find(
10245
10245
  (h) => h.guid === n?.institution_guid
10246
10246
  ), u = [
10247
- ...ma,
10248
10247
  ...Ca,
10249
- ...pa
10248
+ ...pa,
10249
+ ...fa
10250
10250
  ].includes(n.account_type);
10251
10251
  return /* @__PURE__ */ l(y, { p: 24, children: [
10252
10252
  /* @__PURE__ */ l(y, { gap: 12, children: [
@@ -10736,7 +10736,7 @@ const lo = ({
10736
10736
  /* @__PURE__ */ t(gA, { sx: { my: 16, mx: 24, ...A }, children: /* @__PURE__ */ l(
10737
10737
  vt,
10738
10738
  {
10739
- icon: n ? /* @__PURE__ */ t(yn, {}) : /* @__PURE__ */ t(ua, { color: "success" }),
10739
+ icon: n ? /* @__PURE__ */ t(yn, {}) : /* @__PURE__ */ t(ha, { color: "success" }),
10740
10740
  severity: "error",
10741
10741
  sx: {
10742
10742
  alignItems: "start",
@@ -10750,7 +10750,7 @@ const lo = ({
10750
10750
  }
10751
10751
  },
10752
10752
  children: [
10753
- /* @__PURE__ */ t(Yn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: n ? gt.status_error_title : gt.status_complete_title }),
10753
+ /* @__PURE__ */ t(Vn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: n ? gt.status_error_title : gt.status_complete_title }),
10754
10754
  /* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: n ? gt.status_error_description : gt.status_complete_description })
10755
10755
  ]
10756
10756
  }
@@ -10767,13 +10767,13 @@ const lo = ({
10767
10767
  }
10768
10768
  },
10769
10769
  children: [
10770
- /* @__PURE__ */ t(Yn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: gt.status_info_title }),
10770
+ /* @__PURE__ */ t(Vn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: gt.status_info_title }),
10771
10771
  /* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: gt.status_info_description })
10772
10772
  ]
10773
10773
  }
10774
10774
  ) })
10775
10775
  ] });
10776
- }, bg = T(Eg), Kn = {
10776
+ }, bg = T(Eg), qn = {
10777
10777
  schedule_and_details_aria: "",
10778
10778
  schedule_tab_label: "Schedule",
10779
10779
  details_tab_label: "Details"
@@ -10784,7 +10784,7 @@ const lo = ({
10784
10784
  /* @__PURE__ */ l(
10785
10785
  _A,
10786
10786
  {
10787
- "aria-label": Kn.schedule_and_details_aria,
10787
+ "aria-label": qn.schedule_and_details_aria,
10788
10788
  centered: !0,
10789
10789
  onChange: (r, i) => a(i),
10790
10790
  value: n,
@@ -10795,7 +10795,7 @@ const lo = ({
10795
10795
  {
10796
10796
  "aria-controls": "debt-schedule-tabpanel-0",
10797
10797
  id: "debt-schedule-tab-0",
10798
- label: Kn.schedule_tab_label
10798
+ label: qn.schedule_tab_label
10799
10799
  }
10800
10800
  ),
10801
10801
  /* @__PURE__ */ t(
@@ -10803,7 +10803,7 @@ const lo = ({
10803
10803
  {
10804
10804
  "aria-controls": "debt-details-tabpanel-1",
10805
10805
  id: "debt-details-tab-1",
10806
- label: Kn.details_tab_label
10806
+ label: qn.details_tab_label
10807
10807
  }
10808
10808
  )
10809
10809
  ]
@@ -10857,7 +10857,7 @@ const lo = ({
10857
10857
  }
10858
10858
  );
10859
10859
  }, Dg = (e) => {
10860
- const A = e.row.account, n = ga[A.account_type];
10860
+ const A = e.row.account, n = ma[A.account_type];
10861
10861
  return /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
10862
10862
  /* @__PURE__ */ t(
10863
10863
  CA,
@@ -11234,7 +11234,7 @@ class qr {
11234
11234
  updateMonthlyCashFlowProfile = async (A) => this.fetchInstance.put(`${M.MONTHLY_CASH_FLOW_PROFILE}`, A).then((n) => n.monthly_cash_flow_profile);
11235
11235
  updateRetirementGoal = async (A) => this.fetchInstance.put(`${M.RETIREMENT_GOALS}/${A.guid}`, A).then((n) => n.retirement_goal);
11236
11236
  }
11237
- function qn({ title: e, subtitle: A }) {
11237
+ function kn({ title: e, subtitle: A }) {
11238
11238
  return /* @__PURE__ */ l(y, { children: [
11239
11239
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
11240
11240
  /* @__PURE__ */ t(p, { sx: { fontWeight: 400 }, variant: "Body", children: A })
@@ -11561,7 +11561,7 @@ const mo = T(
11561
11561
  }
11562
11562
  )
11563
11563
  ] });
11564
- }, kn = T(({ trackType: e }) => {
11564
+ }, Gn = T(({ trackType: e }) => {
11565
11565
  const { isMobile: A } = Be(), { goals: n } = L(), { orderedGoals: a, setSelectedGoal: r } = Ue(), i = a.filter((d) => d.track_type === e), o = i.filter((d) => !d.is_complete), s = i.filter((d) => d.is_complete), c = e === ee.DEBT_TRACK ? n.zero_state_complete_debt : n.zero_state_complete_savings;
11566
11566
  return /* @__PURE__ */ l(y, { mt: 16, mx: A ? 24 : 0, children: [
11567
11567
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
@@ -11706,7 +11706,7 @@ const mo = T(
11706
11706
  f === ee.DEBT_TRACK ? c(!0) : i({
11707
11707
  amount: 0,
11708
11708
  current_amount: 0,
11709
- goal_type: $n.SAVE_AMOUNT,
11709
+ goal_type: ea.SAVE_AMOUNT,
11710
11710
  initial_amount: 0,
11711
11711
  meta_type: C,
11712
11712
  name: m,
@@ -11719,7 +11719,7 @@ const mo = T(
11719
11719
  account_guid: C.guid,
11720
11720
  amount: 0,
11721
11721
  current_amount: 0,
11722
- goal_type: $n.KEEP_BALANCE_BELOW,
11722
+ goal_type: ea.KEEP_BALANCE_BELOW,
11723
11723
  initial_amount: C.balance || 0,
11724
11724
  interest_rate: C.interest_rate || 0,
11725
11725
  meta_type: f,
@@ -12153,20 +12153,20 @@ const mo = T(
12153
12153
  value: C,
12154
12154
  variant: "fullWidth",
12155
12155
  children: [
12156
- /* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(qn, { subtitle: D, title: s.tab_saving_title }) }),
12157
- /* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(qn, { subtitle: _, title: s.tab_debt_title }) }),
12156
+ /* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(kn, { subtitle: D, title: s.tab_saving_title }) }),
12157
+ /* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(kn, { subtitle: _, title: s.tab_debt_title }) }),
12158
12158
  /* @__PURE__ */ t(
12159
12159
  Ke,
12160
12160
  {
12161
- label: /* @__PURE__ */ t(qn, { subtitle: O, title: s.tab_retirement_title })
12161
+ label: /* @__PURE__ */ t(kn, { subtitle: O, title: s.tab_retirement_title })
12162
12162
  }
12163
12163
  )
12164
12164
  ]
12165
12165
  }
12166
12166
  ),
12167
- C === 0 && /* @__PURE__ */ t(kn, { trackType: ee.SAVINGS_TRACK }),
12168
- C === 1 && /* @__PURE__ */ t(kn, { trackType: ee.DEBT_TRACK }),
12169
- C === 2 && /* @__PURE__ */ t(kn, { trackType: ee.RETIREMENT_TRACK })
12167
+ C === 0 && /* @__PURE__ */ t(Gn, { trackType: ee.SAVINGS_TRACK }),
12168
+ C === 1 && /* @__PURE__ */ t(Gn, { trackType: ee.DEBT_TRACK }),
12169
+ C === 2 && /* @__PURE__ */ t(Gn, { trackType: ee.RETIREMENT_TRACK })
12170
12170
  ] }),
12171
12171
  /* @__PURE__ */ t(t1, { onClose: K }),
12172
12172
  /* @__PURE__ */ t(
@@ -12180,7 +12180,7 @@ const mo = T(
12180
12180
  }
12181
12181
  ),
12182
12182
  /* @__PURE__ */ t(
12183
- oa,
12183
+ sa,
12184
12184
  {
12185
12185
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
12186
12186
  autoHideDuration: 3500,
@@ -12592,26 +12592,19 @@ const a1 = [
12592
12592
  }
12593
12593
  ], r1 = (e, A) => e.flags ? e.flags.every((n) => A[n]) : !1, i1 = (e) => a1.filter((A) => r1(A, e));
12594
12594
  class o1 {
12595
- appConfig;
12596
12595
  globalStore;
12596
+ helpCategories = [];
12597
12597
  constructor(A) {
12598
- console.log("start::"), this.globalStore = A, De(this);
12598
+ this.globalStore = A, De(this);
12599
12599
  }
12600
12600
  setAppConfig(A) {
12601
- console.log(A, ":::config"), this.appConfig = A;
12602
- }
12603
- get helpCategories() {
12604
12601
  const {
12605
- appData: { client_communication_profile: A, client_profile: n }
12602
+ appData: { client_communication_profile: n, client_profile: a }
12606
12603
  } = this.globalStore.appDataStore;
12607
- return console.log(this.appConfig, "::appConfig"), console.log({
12608
- ...A,
12604
+ this.helpCategories = i1({
12609
12605
  ...n,
12610
- ...this.appConfig
12611
- }), i1({
12612
- ...A,
12613
- ...n,
12614
- ...this.appConfig
12606
+ ...a,
12607
+ ...A
12615
12608
  });
12616
12609
  }
12617
12610
  }
@@ -12635,7 +12628,7 @@ const s1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, c1 = 50, kr = 65, l1 = ({
12635
12628
  });
12636
12629
  return g.useEffect(() => h.measure(), [a]), /* @__PURE__ */ l(y, { className: "mx-mrt-lookup", children: [
12637
12630
  /* @__PURE__ */ t(
12638
- Sn,
12631
+ Tn,
12639
12632
  {
12640
12633
  ariaLabel: i.search_aria,
12641
12634
  cancelAriaLabel: i.cancel_search_aria,
@@ -12781,7 +12774,7 @@ const fo = 13, u1 = (e, A) => e.filter((n) => {
12781
12774
  }, {});
12782
12775
  return Object.entries(A).map(([n, a]) => ({
12783
12776
  icon: xc[+n] || Si[+n],
12784
- name: ga[+n],
12777
+ name: ma[+n],
12785
12778
  accounts: a
12786
12779
  }));
12787
12780
  };
@@ -12862,7 +12855,7 @@ const y1 = ({
12862
12855
  stroke: c.palette.success.main
12863
12856
  });
12864
12857
  return /* @__PURE__ */ t(
12865
- va,
12858
+ ya,
12866
12859
  {
12867
12860
  baseline: "min",
12868
12861
  colors: [c.palette.success.main],
@@ -13461,7 +13454,7 @@ class K8 {
13461
13454
  });
13462
13455
  };
13463
13456
  }
13464
- const Gn = ({
13457
+ const Fn = ({
13465
13458
  children: e,
13466
13459
  isLast: A = !1,
13467
13460
  onClick: n,
@@ -13492,18 +13485,18 @@ const Gn = ({
13492
13485
  return /* @__PURE__ */ l(Q, { children: [
13493
13486
  /* @__PURE__ */ t(SA, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
13494
13487
  /* @__PURE__ */ t(
13495
- Gn,
13488
+ Fn,
13496
13489
  {
13497
13490
  onClick: () => {
13498
13491
  f({ is_hidden: !c.is_hidden }), C(G.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
13499
13492
  },
13500
13493
  primaryText: c.is_hidden ? h.unhide_account : h.hide_Account,
13501
13494
  secondaryText: c.is_hidden ? h.include_this_account : h.exclude_this_account,
13502
- children: /* @__PURE__ */ t(la, { checked: c.is_hidden })
13495
+ children: /* @__PURE__ */ t(da, { checked: c.is_hidden })
13503
13496
  }
13504
13497
  ),
13505
13498
  /* @__PURE__ */ t(
13506
- Gn,
13499
+ Fn,
13507
13500
  {
13508
13501
  onClick: () => {
13509
13502
  A(!0), C(G.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
@@ -13516,7 +13509,7 @@ const Gn = ({
13516
13509
  }
13517
13510
  ),
13518
13511
  m.length > 0 && /* @__PURE__ */ t(
13519
- Gn,
13512
+ Fn,
13520
13513
  {
13521
13514
  isLast: !0,
13522
13515
  onClick: () => {
@@ -13558,7 +13551,7 @@ const Gn = ({
13558
13551
  const I = m.indexOf(E) === m.length - 1;
13559
13552
  return /* @__PURE__ */ l(g.Fragment, { children: [
13560
13553
  /* @__PURE__ */ t(
13561
- Dn,
13554
+ xn,
13562
13555
  {
13563
13556
  account: E,
13564
13557
  onRowClick: () => {
@@ -13731,7 +13724,7 @@ const Gn = ({
13731
13724
  const a = () => {
13732
13725
  const r = e.successfully_aggregated_at ? Le(e.successfully_aggregated_at) : void 0, i = r && ne(r, Z.TIME_STAMP_HOUR_MINUTE);
13733
13726
  if (i)
13734
- return ha(r) ? P(A.last_updated_at, A.today, i) : oc(r) ? P(A.last_updated_at, A.yesterday, i) : P(
13727
+ return ga(r) ? P(A.last_updated_at, A.today, i) : oc(r) ? P(A.last_updated_at, A.yesterday, i) : P(
13735
13728
  A.last_updated_at,
13736
13729
  ne(r, Z.MONTH_DAY_YEAR),
13737
13730
  i
@@ -13744,7 +13737,7 @@ const Gn = ({
13744
13737
  };
13745
13738
  }
13746
13739
  }
13747
- }, Fn = {
13740
+ }, Xn = {
13748
13741
  color: "background.default",
13749
13742
  fontSize: 20,
13750
13743
  gridRow: 1,
@@ -13756,12 +13749,12 @@ const Gn = ({
13756
13749
  } = fe(), { selectedMember: a } = lA(), { accounts: r, connect: i } = L(), o = vo(a, i), s = wi.includes(a.connection_status) ? {
13757
13750
  color: "error.main",
13758
13751
  ctaCopy: o.cta ?? "",
13759
- icon: /* @__PURE__ */ t(yn, { sx: { ...Fn } }),
13752
+ icon: /* @__PURE__ */ t(yn, { sx: { ...Xn } }),
13760
13753
  mainMessage: o.statusName,
13761
13754
  secondaryMessage: `${o.title}.`
13762
13755
  } : {
13763
13756
  color: "success.main",
13764
- icon: /* @__PURE__ */ t(rc, { sx: { ...Fn } }),
13757
+ icon: /* @__PURE__ */ t(rc, { sx: { ...Xn } }),
13765
13758
  mainMessage: o.statusName,
13766
13759
  secondaryMessage: o.title
13767
13760
  };
@@ -13800,7 +13793,7 @@ const Gn = ({
13800
13793
  ic,
13801
13794
  {
13802
13795
  sx: {
13803
- ...Fn,
13796
+ ...Xn,
13804
13797
  color: n === Fa.LIGHT ? "grey.900" : "common.white"
13805
13798
  }
13806
13799
  }
@@ -13844,7 +13837,7 @@ const Gn = ({
13844
13837
  onChange: (E) => s(E.target.value),
13845
13838
  placeholder: e.placeholder,
13846
13839
  value: o,
13847
- children: e.options?.map((E) => /* @__PURE__ */ t(ca, { value: E.value, children: E.label }, E.value))
13840
+ children: e.options?.map((E) => /* @__PURE__ */ t(la, { value: E.value, children: E.label }, E.value))
13848
13841
  }
13849
13842
  )
13850
13843
  ] });
@@ -13862,7 +13855,7 @@ const Gn = ({
13862
13855
  );
13863
13856
  case Ze.Date:
13864
13857
  return /* @__PURE__ */ t(lc, { dateAdapter: Wt, children: /* @__PURE__ */ t(
13865
- da,
13858
+ ua,
13866
13859
  {
13867
13860
  maxDate: oA(/* @__PURE__ */ new Date(), 1),
13868
13861
  minDate: /* @__PURE__ */ new Date(),
@@ -13988,7 +13981,7 @@ const Gn = ({
13988
13981
  }
13989
13982
  },
13990
13983
  children: [
13991
- s.title && /* @__PURE__ */ t(Yn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: s.title }),
13984
+ s.title && /* @__PURE__ */ t(Vn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: s.title }),
13992
13985
  /* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: s.main }),
13993
13986
  s.cta && /* @__PURE__ */ t(
13994
13987
  pi,
@@ -14107,7 +14100,7 @@ const Gn = ({
14107
14100
  const v = a.indexOf(f) === a.length - 1, E = h.indexOf(f) === h.length - 1;
14108
14101
  return /* @__PURE__ */ l(g.Fragment, { children: [
14109
14102
  /* @__PURE__ */ t(
14110
- Dn,
14103
+ xn,
14111
14104
  {
14112
14105
  account: f,
14113
14106
  onRowClick: () => C(f),
@@ -14249,7 +14242,7 @@ const Gn = ({
14249
14242
  const d = i.indexOf(s) === i.length - 1;
14250
14243
  return /* @__PURE__ */ l(g.Fragment, { children: [
14251
14244
  /* @__PURE__ */ t(
14252
- Dn,
14245
+ xn,
14253
14246
  {
14254
14247
  account: s,
14255
14248
  listItemProps: { sx: { px: 24 } },
@@ -15319,7 +15312,7 @@ const xm = ({
15319
15312
  }
15320
15313
  )
15321
15314
  ] });
15322
- }, On = ({
15315
+ }, _n = ({
15323
15316
  amount: e,
15324
15317
  categoryName: A,
15325
15318
  onAmountChanged: n
@@ -15370,7 +15363,7 @@ const xm = ({
15370
15363
  onClose: () => i(!1),
15371
15364
  onPrimaryAction: () => A(e, Number(o)),
15372
15365
  primaryText: n.add_save_button,
15373
- children: /* @__PURE__ */ t(On, { amount: o, categoryName: e.name, onAmountChanged: s })
15366
+ children: /* @__PURE__ */ t(_n, { amount: o, categoryName: e.name, onAmountChanged: s })
15374
15367
  }
15375
15368
  )
15376
15369
  ] });
@@ -15480,7 +15473,7 @@ const xm = ({
15480
15473
  onPrimaryAction: E,
15481
15474
  primaryText: n.add_save_button,
15482
15475
  children: /* @__PURE__ */ t(
15483
- On,
15476
+ _n,
15484
15477
  {
15485
15478
  amount: h,
15486
15479
  categoryName: C?.name || "",
@@ -15547,7 +15540,7 @@ const xm = ({
15547
15540
  onPrimaryAction: I,
15548
15541
  primaryText: a.edit_save_button,
15549
15542
  children: /* @__PURE__ */ t(
15550
- On,
15543
+ _n,
15551
15544
  {
15552
15545
  amount: v,
15553
15546
  categoryName: o.category.name,
@@ -15678,7 +15671,7 @@ const xm = ({
15678
15671
  onPrimaryAction: w,
15679
15672
  primaryText: A.edit_save_button,
15680
15673
  children: /* @__PURE__ */ t(
15681
- On,
15674
+ _n,
15682
15675
  {
15683
15676
  amount: I,
15684
15677
  categoryName: i.category.name,
@@ -15771,7 +15764,7 @@ const xm = ({
15771
15764
  }
15772
15765
  ),
15773
15766
  /* @__PURE__ */ t(
15774
- oa,
15767
+ sa,
15775
15768
  {
15776
15769
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
15777
15770
  autoHideDuration: 3500,
@@ -15784,7 +15777,7 @@ const xm = ({
15784
15777
  }
15785
15778
  );
15786
15779
  });
15787
- var na = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(na || {});
15780
+ var aa = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(aa || {});
15788
15781
  const Qm = () => {
15789
15782
  const { accounts: e } = ve(), { selectedAccountGuids: A, setSelectedAccountGuids: n } = ye(), { isMobile: a } = Be(), { common: r } = L(), i = {
15790
15783
  accountFilterOptionsCopy: {
@@ -15825,7 +15818,7 @@ const Qm = () => {
15825
15818
  )
15826
15819
  ] }) });
15827
15820
  }, Wm = T(Qm), Ym = ({ widgets: e, isLoading: A }) => {
15828
- const { isDesktop: n, isMobile: a } = Be(), { copyStore: r } = Ea(), { setSelectedAccounts: i } = ye(), { accounts: o } = ve();
15821
+ const { isDesktop: n, isMobile: a } = Be(), { copyStore: r } = Sn(), { setSelectedAccounts: i } = ye(), { accounts: o } = ve();
15829
15822
  g.useEffect(() => {
15830
15823
  i(o);
15831
15824
  }, [o]);
@@ -15833,10 +15826,10 @@ const Qm = () => {
15833
15826
  () => e.sort((u, h) => u.index - h.index),
15834
15827
  [e]
15835
15828
  ), c = g.useMemo(
15836
- () => s.filter((u) => u.location === na.Main),
15829
+ () => s.filter((u) => u.location === aa.Main),
15837
15830
  [e]
15838
15831
  ), d = g.useMemo(
15839
- () => s.filter((u) => u.location === na.RightSide),
15832
+ () => s.filter((u) => u.location === aa.RightSide),
15840
15833
  [e]
15841
15834
  );
15842
15835
  return /* @__PURE__ */ l(qA, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
@@ -15912,7 +15905,7 @@ const Qm = () => {
15912
15905
  /* @__PURE__ */ t(
15913
15906
  mc,
15914
15907
  {
15915
- expandIcon: /* @__PURE__ */ t(ia, { sx: { color: "text.primary" } }),
15908
+ expandIcon: /* @__PURE__ */ t(oa, { sx: { color: "text.primary" } }),
15916
15909
  sx: { p: "14px 24px" },
15917
15910
  children: /* @__PURE__ */ l(y, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
15918
15911
  /* @__PURE__ */ t(B, { name: f, size: 24 }),
@@ -15954,27 +15947,27 @@ const Qm = () => {
15954
15947
  }) }, d);
15955
15948
  }) })
15956
15949
  ] });
15957
- }, Xn = {
15950
+ }, jn = {
15958
15951
  button_text: "Request Help",
15959
15952
  help_content: "Find answers, get support, and learn how to make the most of your experience.",
15960
15953
  help_title: "Help Tool"
15961
15954
  }, U8 = () => {
15962
- const { helpCategories: e, setAppConfig: A } = yl(), n = window.app?.config;
15963
- console.log(n, "::widgetProfile"), console.log(e, "::helpCategories"), g.useEffect(() => {
15964
- A(n);
15965
- }, [n]);
15966
- const a = () => {
15967
- }, r = () => {
15968
- }, i = g.useMemo(() => e, [e]);
15969
- return console.log("storeHelpCategories::", i), /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
15955
+ const { isInitialized: e } = Sn(), { helpCategories: A, setAppConfig: n } = yl(), a = window.app?.config;
15956
+ console.log(a, "::widgetProfile"), console.log(A, "::helpCategories"), g.useEffect(() => {
15957
+ e && n(a);
15958
+ }, [e, a]);
15959
+ const r = () => {
15960
+ }, i = () => {
15961
+ };
15962
+ return /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
15970
15963
  Vm,
15971
15964
  {
15972
- buttonText: Xn.button_text,
15973
- helpCategories: i,
15974
- helpContent: Xn.help_content,
15975
- helpTitle: Xn.help_title,
15976
- onRequestHelp: a,
15977
- onTopicSelect: r
15965
+ buttonText: jn.button_text,
15966
+ helpCategories: A,
15967
+ helpContent: jn.help_content,
15968
+ helpTitle: jn.help_title,
15969
+ onRequestHelp: r,
15970
+ onTopicSelect: i
15978
15971
  }
15979
15972
  ) }) });
15980
15973
  }, Ba = ({
@@ -16035,7 +16028,7 @@ const Qm = () => {
16035
16028
  secondary: h.institutionName
16036
16029
  }
16037
16030
  ),
16038
- /* @__PURE__ */ t(la, { checked: !h.is_hidden })
16031
+ /* @__PURE__ */ t(da, { checked: !h.is_hidden })
16039
16032
  ] }) }),
16040
16033
  /* @__PURE__ */ t(H, { sx: { ml: m < e.length - 1 ? 24 : 0 } })
16041
16034
  ] }, h.guid)),
@@ -16177,7 +16170,7 @@ const Io = ({
16177
16170
  icon: i = /* @__PURE__ */ t(vc, { fontSize: "inherit" }),
16178
16171
  snackbarSx: o
16179
16172
  }) => /* @__PURE__ */ t(
16180
- oa,
16173
+ sa,
16181
16174
  {
16182
16175
  TransitionComponent: $m,
16183
16176
  autoHideDuration: a,
@@ -17803,7 +17796,7 @@ const Vt = g.createContext(null), hC = ({
17803
17796
  });
17804
17797
  };
17805
17798
  return /* @__PURE__ */ t(
17806
- _n,
17799
+ Nn,
17807
17800
  {
17808
17801
  actionText: n.micro_call_to_action || E.micro_card_cta,
17809
17802
  ariaLabel: e,
@@ -18023,7 +18016,7 @@ const Vt = g.createContext(null), hC = ({
18023
18016
  display: "none"
18024
18017
  }
18025
18018
  }
18026
- }), _n = g.forwardRef(
18019
+ }), Nn = g.forwardRef(
18027
18020
  function({
18028
18021
  actionText: A,
18029
18022
  ariaLabel: n,
@@ -18226,7 +18219,7 @@ const Vt = g.createContext(null), hC = ({
18226
18219
  justifyContent: "center",
18227
18220
  width: "100%"
18228
18221
  },
18229
- children: /* @__PURE__ */ t(ra, {})
18222
+ children: /* @__PURE__ */ t(ia, {})
18230
18223
  }
18231
18224
  ), RA = new uC(), MC = ({
18232
18225
  areBeatsLoading: e,
@@ -18343,7 +18336,7 @@ const Vt = g.createContext(null), hC = ({
18343
18336
  });
18344
18337
  };
18345
18338
  return /* @__PURE__ */ t(
18346
- _n,
18339
+ Nn,
18347
18340
  {
18348
18341
  actionText: u.micro_card_cta,
18349
18342
  ariaLabel: e,
@@ -18402,7 +18395,7 @@ const Vt = g.createContext(null), hC = ({
18402
18395
  });
18403
18396
  };
18404
18397
  return /* @__PURE__ */ t(
18405
- _n,
18398
+ Nn,
18406
18399
  {
18407
18400
  actionText: C.micro_card_cta,
18408
18401
  ariaLabel: A,
@@ -18438,7 +18431,7 @@ const Vt = g.createContext(null), hC = ({
18438
18431
  return g.useEffect(() => {
18439
18432
  c(UA.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
18440
18433
  }, []), /* @__PURE__ */ t(
18441
- _n,
18434
+ Nn,
18442
18435
  {
18443
18436
  ariaLabel: e,
18444
18437
  description: d.carousel_zero_state_description,
@@ -18463,7 +18456,7 @@ const Vt = g.createContext(null), hC = ({
18463
18456
  widthOverrides: s
18464
18457
  }
18465
18458
  );
18466
- }, qC = T(KC), jn = 5, kC = (e, A) => A.reduce((n, a) => {
18459
+ }, qC = T(KC), Un = 5, kC = (e, A) => A.reduce((n, a) => {
18467
18460
  if (a.total > 0) {
18468
18461
  const r = e.find((d) => d.guid === a.category_guid);
18469
18462
  if (!r) return n;
@@ -18488,14 +18481,14 @@ const Vt = g.createContext(null), hC = ({
18488
18481
  const n = kC(e, A), a = n.filter((c) => c.guid !== b.INCOME && c.guid !== b.TRANSFER).sort((c, d) => d.amount - c.amount), r = a.reduce(
18489
18482
  (c, d) => c + d.amount,
18490
18483
  0
18491
- ), i = a.length > jn ? jn : a.length, o = a.slice(0, i), s = o.map((c) => ({
18484
+ ), i = a.length > Un ? Un : a.length, o = a.slice(0, i), s = o.map((c) => ({
18492
18485
  id: c.guid,
18493
18486
  color: c.color,
18494
18487
  label: c.name,
18495
18488
  value: c.amount / r * 100
18496
18489
  }));
18497
18490
  if (a.length > 5) {
18498
- const c = a.slice(jn, n.length), d = c.reduce(
18491
+ const c = a.slice(Un, n.length), d = c.reduce(
18499
18492
  (u, h) => u + h.amount,
18500
18493
  0
18501
18494
  );
@@ -19191,7 +19184,7 @@ const tp = (e) => e.reduce((n, a) => {
19191
19184
  ) : Zh(Se);
19192
19185
  return {
19193
19186
  stackedDatasets: Je.filter(Vh),
19194
- unstackedDatasets: Je.filter(xn)
19187
+ unstackedDatasets: Je.filter(On)
19195
19188
  };
19196
19189
  }, [d, x, K]), V = g.useMemo(() => {
19197
19190
  const Se = ne(
@@ -19274,7 +19267,7 @@ const tp = (e) => e.reduce((n, a) => {
19274
19267
  orientation: "horizontal",
19275
19268
  value: _,
19276
19269
  children: ["Chart", "Table"].map((Se) => /* @__PURE__ */ t(
19277
- aa,
19270
+ ra,
19278
19271
  {
19279
19272
  sx: {
19280
19273
  fontSize: 15,
@@ -19355,7 +19348,7 @@ const tp = (e) => e.reduce((n, a) => {
19355
19348
  }, $8 = T(gp), mp = () => {
19356
19349
  const e = cA(), { monthlyCategoryTotals: A } = _e(), { trends: n } = L(), a = tg(A);
19357
19350
  return /* @__PURE__ */ t(
19358
- va,
19351
+ ya,
19359
19352
  {
19360
19353
  baseline: "min",
19361
19354
  colors: [e.palette.primary.main],
@@ -19369,7 +19362,7 @@ const tp = (e) => e.reduce((n, a) => {
19369
19362
  }
19370
19363
  );
19371
19364
  }, Cp = T(mp), pp = ({ onPrimaryCtaClick: e, sx: A }) => {
19372
- const { loadMonthlyCategoryTotals: n } = _e(), { isInitialized: a } = Ea(), { trends: r } = L(), { selectedAccounts: i } = ye(), [o, s] = g.useState(!1);
19365
+ const { loadMonthlyCategoryTotals: n } = _e(), { isInitialized: a } = Sn(), { trends: r } = L(), { selectedAccounts: i } = ye(), [o, s] = g.useState(!1);
19373
19366
  return g.useEffect(() => {
19374
19367
  a && n(i).finally(() => {
19375
19368
  s(!0);
@@ -19397,7 +19390,7 @@ export {
19397
19390
  pm as AccountStore,
19398
19391
  Lc as AccountSubType,
19399
19392
  W as AccountType,
19400
- ga as AccountTypeName,
19393
+ ma as AccountTypeName,
19401
19394
  k8 as AccountsMiniWidget,
19402
19395
  q8 as AccountsWidget,
19403
19396
  ro as ActivitySettings,
@@ -19442,7 +19435,7 @@ export {
19442
19435
  Ti as DEFAULT_DONUT_SIZE,
19443
19436
  Ii as DEFAULT_STROKE_WIDTH,
19444
19437
  j8 as Dashboard,
19445
- na as DashboardLocation,
19438
+ aa as DashboardLocation,
19446
19439
  dn as DataRow,
19447
19440
  ur as DateRangeSelector,
19448
19441
  lo as DebtsChart,
@@ -19463,19 +19456,19 @@ export {
19463
19456
  K8 as GlobalStore,
19464
19457
  qr as GoalApi,
19465
19458
  n1 as GoalStore,
19466
- $n as GoalType,
19459
+ ea as GoalType,
19467
19460
  M8 as GoalsWidget,
19468
19461
  U8 as Help,
19469
19462
  Vm as HelpList,
19470
19463
  W8 as HiddenInsightsDrawer,
19471
- ma as INCOME_ACCOUNT_TYPES,
19464
+ Ca as INCOME_ACCOUNT_TYPES,
19472
19465
  VA as IconBacking,
19473
19466
  un as InformationTooltip,
19474
19467
  V8 as InsightsMicroWidget,
19475
19468
  hC as InsightsMicroWidgetDataProvider,
19476
19469
  Pc as IterationItemTypes,
19477
19470
  m8 as LOADING_STATUS,
19478
- va as LineChart,
19471
+ ya as LineChart,
19479
19472
  LA as ListItemAction,
19480
19473
  Bl as ListItemWrapper,
19481
19474
  Ve as Loader,
@@ -19488,7 +19481,7 @@ export {
19488
19481
  eA as MetaType,
19489
19482
  Ei as MfaStatuses,
19490
19483
  DC as MicroBeatCarousel,
19491
- _n as MicroInsightCard,
19484
+ Nn as MicroInsightCard,
19492
19485
  lt as MiniWidgetContainer,
19493
19486
  EC as MonthlySpendComparisonIcon,
19494
19487
  w8 as MultiSegmentDonut,
@@ -19504,7 +19497,7 @@ export {
19504
19497
  R1 as NotificationStore,
19505
19498
  Ic as ORDINAL_DATE_FORMAT,
19506
19499
  d8 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
19507
- Ca as PAYMENT_ACCOUNT_TYPES,
19500
+ pa as PAYMENT_ACCOUNT_TYPES,
19508
19501
  Ar as PaymentCategories,
19509
19502
  Nc as PlanTypes,
19510
19503
  Dc as ProcessingStatuses,
@@ -19516,11 +19509,11 @@ export {
19516
19509
  uh as RecurringActivityStore,
19517
19510
  x8 as RecurringActivityWidget,
19518
19511
  S8 as ResponsiveButton,
19519
- pa as SPENDING_ACCOUNT_TYPES,
19512
+ fa as SPENDING_ACCOUNT_TYPES,
19520
19513
  rd as ScheduledPaymentTypes,
19521
19514
  ir as ScheduledPaymentsApi,
19522
19515
  id as ScreenSize,
19523
- Sn as SearchBox,
19516
+ Tn as SearchBox,
19524
19517
  mr as SelectionBox,
19525
19518
  Y8 as SettingsDrawer,
19526
19519
  Ki as SingleSegmentDonut,
@@ -19575,11 +19568,11 @@ export {
19575
19568
  ZA as getLocale,
19576
19569
  B8 as getNotificationDetailRoute,
19577
19570
  p8 as isIncome,
19578
- Vn as isValidNumber,
19571
+ Jn as isValidNumber,
19579
19572
  ve as useAccountStore,
19580
19573
  lA as useAccountUiStore,
19581
19574
  Xe as useBudgetsStore,
19582
- ya as useCashflowStore,
19575
+ Ea as useCashflowStore,
19583
19576
  _e as useCategoryStore,
19584
19577
  nt as useCategoryUiStore,
19585
19578
  Wc as useCombineEvents,
@@ -19588,7 +19581,7 @@ export {
19588
19581
  $ as useEvent,
19589
19582
  F1 as useGetMergeableAccounts,
19590
19583
  L as useGlobalCopyStore,
19591
- Ea as useGlobalStore,
19584
+ Sn as useGlobalStore,
19592
19585
  ye as useGlobalUiStore,
19593
19586
  Ue as useGoalStore,
19594
19587
  yl as useHelpStore,