@mx-cartographer/experiences 6.2.1-alpha.al0 → 6.2.1-alpha.al3

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
@@ -6,9 +6,9 @@ import k from "@mui/material/Divider";
6
6
  import ie from "@mui/material/List";
7
7
  import wt from "@mui/material/ListSubheader";
8
8
  import Ee from "@mui/system/Stack";
9
- import { AccountsIcon as rl, P as De, Icon as B, useTokens as Ct, Text as p, H2 as Hn, CategoryIcon as Mt, DialogHeader as ol, DialogFooter as sl, Drawer as cl, Footer as ll, DateRangePicker as Ur, H3 as mt, H1 as cn, TextField as An, IconWeight as ft, MerchantLogo as ln, CategoryIconVariants as ps, InstitutionLogo as ht, ChevronRightIcon as dl, THEMES as Vr } from "@mxenabled/mxui";
9
+ import { AccountsIcon as rl, P as Ne, Icon as B, useTokens as Ct, Text as p, H2 as Hn, CategoryIcon as Mt, DialogHeader as ol, DialogFooter as sl, Drawer as cl, Footer as ll, DateRangePicker as Ur, H3 as mt, H1 as cn, TextField as An, IconWeight as ft, MerchantLogo as ln, CategoryIconVariants as ps, InstitutionLogo as ht, ChevronRightIcon as dl, THEMES as Vr } from "@mxenabled/mxui";
10
10
  import ul from "bowser";
11
- import { getUnixTime as Ne } from "date-fns/getUnixTime";
11
+ import { getUnixTime as De } from "date-fns/getUnixTime";
12
12
  import { intlFormat as _l } from "date-fns/intlFormat";
13
13
  import { addMonths as gt } from "date-fns/addMonths";
14
14
  import { addQuarters as Sn } from "date-fns/addQuarters";
@@ -19,13 +19,13 @@ import { isBefore as Te } from "date-fns/isBefore";
19
19
  import { nextDay as Ei } from "date-fns/nextDay";
20
20
  import { setDate as Vi } from "date-fns/setDate";
21
21
  import { startOfToday as le } from "date-fns/startOfToday";
22
- import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
22
+ import { fromUnixTime as Re } from "date-fns/fromUnixTime";
23
23
  import { Honeybadger as Bi } from "@honeybadger-io/react";
24
24
  import Kr from "numeral";
25
25
  import J from "@mui/material/Button";
26
26
  import oi from "@mui/material/Tooltip";
27
27
  import Ke from "@mui/material/IconButton";
28
- import ja from "@mui/material/FormControlLabel";
28
+ import Xa from "@mui/material/FormControlLabel";
29
29
  import Y from "@mui/material/ListItem";
30
30
  import de from "@mui/material/ListItemButton";
31
31
  import ae from "@mui/material/ListItemText";
@@ -61,19 +61,19 @@ import { endOfToday as In } from "date-fns/endOfToday";
61
61
  import { endOfYear as jr } from "date-fns/endOfYear";
62
62
  import { startOfYear as Xr } from "date-fns/startOfYear";
63
63
  import { subDays as dt } from "date-fns/subDays";
64
- import { subYears as Xa } from "date-fns/subYears";
64
+ import { subYears as qa } from "date-fns/subYears";
65
65
  import Hl from "@mui/material/ButtonGroup";
66
66
  import Le from "@mui/material/Tab";
67
67
  import Dt from "@mui/material/Tabs";
68
68
  import aa from "@mui/material/ToggleButton";
69
- import sr from "@mui/material/ToggleButtonGroup";
69
+ import cr from "@mui/material/ToggleButtonGroup";
70
70
  import $l from "@mui/material/Dialog";
71
71
  import bs from "@mui/material/DialogContent";
72
72
  import Fl from "@mui/icons-material/ArrowBackOutlined";
73
73
  import wn from "@mui/material/CardHeader";
74
74
  import { Icon as Rt, AccountBalance as Wl, ChevronRight as Et, Payments as Ul, NoteStack as Vl, Person as Kl, CheckCircle as ra, ExpandLess as zl, ExpandMore as Yl, AddBox as ys, Star as jl, Settings as Xl, Delete as ql, Schedule as Zl, MonetizationOn as Ql, Cancel as Es, Add as Jl } from "@mxenabled/mx-icons";
75
75
  import { ConnectWidget as ed, ConnectionsWidget as td } from "@mxenabled/web-widget-sdk";
76
- import cr from "@mui/material/CircularProgress";
76
+ import lr from "@mui/material/CircularProgress";
77
77
  import { v4 as nd } from "uuid";
78
78
  import zi from "@mui/material/InputAdornment";
79
79
  import id from "@mui/material/Radio";
@@ -96,11 +96,11 @@ import Wt from "@mui/material/Skeleton";
96
96
  import { isAfter as Zt } from "date-fns/isAfter";
97
97
  import { subWeeks as Jr } from "date-fns/subWeeks";
98
98
  import { formatISO as si } from "date-fns/formatISO";
99
+ import { isValid as la } from "date-fns/isValid";
99
100
  import { AdapterDateFns as gn } from "@mui/x-date-pickers/AdapterDateFnsV3";
100
- import { DatePicker as la } from "@mui/x-date-pickers";
101
+ import { DatePicker as da } from "@mui/x-date-pickers";
101
102
  import { LocalizationProvider as Nn } from "@mui/x-date-pickers/LocalizationProvider";
102
103
  import rt from "@mui/material/TextField";
103
- import { isValid as lr } from "date-fns/isValid";
104
104
  import { subQuarters as Ts } from "date-fns/subQuarters";
105
105
  import { getMonth as Zn } from "date-fns/getMonth";
106
106
  import { DateCalendar as ci } from "@mui/x-date-pickers/DateCalendar";
@@ -109,7 +109,7 @@ import Ti from "@mui/material/Accordion";
109
109
  import Ai from "@mui/material/AccordionDetails";
110
110
  import Ii from "@mui/material/AccordionSummary";
111
111
  import md from "@mui/material/Breadcrumbs";
112
- import da from "@mui/material/MenuItem";
112
+ import ua from "@mui/material/MenuItem";
113
113
  import pd from "@mui/material/RadioGroup";
114
114
  import xi from "@mui/icons-material/DeleteOutlined";
115
115
  import Yi from "@mui/icons-material/Cancel";
@@ -124,14 +124,14 @@ import dr from "@mui/material/Badge";
124
124
  import { PickersDay as Is } from "@mui/x-date-pickers/PickersDay";
125
125
  import Td from "@mui/icons-material/AccessTimeFilled";
126
126
  import Ad from "@mui/icons-material/MonetizationOn";
127
- import ua from "@mui/icons-material/CheckCircle";
127
+ import _a from "@mui/icons-material/CheckCircle";
128
128
  import { getDate as Qn } from "date-fns/getDate";
129
129
  import zt from "@mui/material/Unstable_Grid2";
130
- import _a from "@mui/material/Collapse";
130
+ import ha from "@mui/material/Collapse";
131
131
  import xs from "@mui/material/CardActionArea";
132
132
  import Id from "@mui/icons-material/DragHandle";
133
- import qa from "@mui/material/AlertTitle";
134
- import ha from "@mui/icons-material/Error";
133
+ import Za from "@mui/material/AlertTitle";
134
+ import ga from "@mui/icons-material/Error";
135
135
  import xd from "@mui/material/Chip";
136
136
  import vd from "@mui/icons-material/EditOutlined";
137
137
  import { isToday as ur } from "date-fns/isToday";
@@ -161,7 +161,7 @@ const $d = async (e, n, i = "1.0.0", a = "Experiences") => {
161
161
  analytics_event: {
162
162
  ...c,
163
163
  app_version: "widgets-v2",
164
- created_at: Ne(/* @__PURE__ */ new Date()).toString(),
164
+ created_at: De(/* @__PURE__ */ new Date()).toString(),
165
165
  host: s,
166
166
  name: c?.label || "",
167
167
  session_id: o.guid,
@@ -173,7 +173,7 @@ const $d = async (e, n, i = "1.0.0", a = "Experiences") => {
173
173
  analytics_pageview: {
174
174
  ...c,
175
175
  app_version: "widgets-v2",
176
- created_at: Ne(/* @__PURE__ */ new Date()).toString(),
176
+ created_at: De(/* @__PURE__ */ new Date()).toString(),
177
177
  host: s,
178
178
  name: c.name,
179
179
  session_id: o.guid,
@@ -621,7 +621,7 @@ const Z2 = {
621
621
  N.CREDIT_CARD_PAYMENT,
622
622
  N.MORTGAGE_PAYMENT,
623
623
  N.AUTO_PAYMENT
624
- ], ga = {
624
+ ], ma = {
625
625
  // Top-level categories
626
626
  [N.AUTO_AND_TRANSPORT]: "Auto & Transport",
627
627
  [N.BILLS_AND_UTILITIES]: "Bills & Utilities",
@@ -835,14 +835,14 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
835
835
  }, nE = (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
- }, ma = (e) => {
838
+ }, pa = (e) => {
839
839
  const n = ti(e);
840
840
  let i = Ei(e, n);
841
841
  for (; Te(i, le()); )
842
842
  i = qn(i, 1);
843
843
  return i;
844
844
  }, Gs = (e) => {
845
- const n = ma(e);
845
+ const n = pa(e);
846
846
  return qn(n, 1);
847
847
  }, qi = (e) => {
848
848
  let n = Vi(le(), e.getDate());
@@ -850,7 +850,7 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
850
850
  n = gt(n, 1);
851
851
  return n;
852
852
  }, Ps = (e) => {
853
- const n = ma(e);
853
+ const n = pa(e);
854
854
  return gt(n, 1);
855
855
  }, pr = (e) => {
856
856
  let n = Sn(e, 1);
@@ -861,9 +861,9 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
861
861
  const n = pr(e);
862
862
  return Sn(n, 1);
863
863
  }, Hs = (e) => ei(e, 1), Ci = (e) => {
864
- const n = Oe(e);
864
+ const n = Re(e);
865
865
  return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
866
- }, Oi = (e) => ne(Oe(e), ee.DAY_OF_WEEK_MONTH_DAY), $s = (e) => e ? ne(Oe(e), ee.MONTH_YEAR) : "", Zd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, S = (e, ...n) => {
866
+ }, Oi = (e) => ne(Re(e), ee.DAY_OF_WEEK_MONTH_DAY), $s = (e) => e ? ne(Re(e), ee.MONTH_YEAR) : "", Zd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, S = (e, ...n) => {
867
867
  if (!e) return "";
868
868
  const i = n.some((o) => typeof o != "string"), r = [...e.matchAll(Zd)].reduce(
869
869
  (o, s, c) => {
@@ -962,11 +962,11 @@ const P = (e, n, i) => {
962
962
  default:
963
963
  return Xi.USD;
964
964
  }
965
- }, Za = (e) => e != null && e !== "" && isFinite(e), Jd = {
965
+ }, Qa = (e) => e != null && e !== "" && isFinite(e), Jd = {
966
966
  style: "percent",
967
967
  minimumFractionDigits: 2,
968
968
  maximumFractionDigits: 2
969
- }, pa = (e, n = Jd) => Za(e) ? new Intl.NumberFormat(Pn(), n).format(Number(e)) : e, eu = (e) => new Intl.PluralRules(Pn(), e), Fs = (e, n = { type: "ordinal" }, i = {
969
+ }, Ca = (e, n = Jd) => Qa(e) ? new Intl.NumberFormat(Pn(), n).format(Number(e)) : e, eu = (e) => new Intl.PluralRules(Pn(), e), Fs = (e, n = { type: "ordinal" }, i = {
970
970
  one: "st",
971
971
  two: "nd",
972
972
  few: "rd",
@@ -1168,7 +1168,7 @@ class co {
1168
1168
  updateScheduledPayment = async (n) => this.fetchInstance.put(`${G.SCHEDULED_PAYMENTS}/${n.guid}`, n).then((i) => i.scheduled_payment);
1169
1169
  deleteScheduledPayment = async (n) => this.fetchInstance.delete(`${G.SCHEDULED_PAYMENTS}/${n}`).then((i) => i);
1170
1170
  }
1171
- class Ga {
1171
+ class Pa {
1172
1172
  fetchInstance;
1173
1173
  constructor(n, i) {
1174
1174
  this.fetchInstance = new tt(n, i);
@@ -1184,7 +1184,7 @@ class lo {
1184
1184
  }
1185
1185
  requestWidgetUrl = async (n) => this.fetchInstance.post(G.WIDGET_URLS, n).then((i) => i.widget_url);
1186
1186
  }
1187
- const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}), nu = (e) => e.reduce((n, i) => {
1187
+ const Ba = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}), nu = (e) => e.reduce((n, i) => {
1188
1188
  const a = _r[i.account_type], r = {
1189
1189
  accountNumber: i.account_number,
1190
1190
  name: i.name || i.feed_name,
@@ -1234,8 +1234,8 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1234
1234
  },
1235
1235
  children: [
1236
1236
  /* @__PURE__ */ t(rl, { size: 32 }),
1237
- /* @__PURE__ */ t(De, { bold: !0, mt: 12, children: i.zeroStateTitle }),
1238
- /* @__PURE__ */ t(De, { mt: 12, children: i.zeroStateDescription }),
1237
+ /* @__PURE__ */ t(Ne, { bold: !0, mt: 12, children: i.zeroStateTitle }),
1238
+ /* @__PURE__ */ t(Ne, { mt: 12, children: i.zeroStateDescription }),
1239
1239
  /* @__PURE__ */ t(J, { onClick: s, children: i.zeroStateButton })
1240
1240
  ]
1241
1241
  }
@@ -1268,7 +1268,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1268
1268
  },
1269
1269
  children: [
1270
1270
  /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1271
- ja,
1271
+ Xa,
1272
1272
  {
1273
1273
  control: /* @__PURE__ */ t(
1274
1274
  Ki,
@@ -1339,7 +1339,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1339
1339
  disableGutters: !0,
1340
1340
  disablePadding: !0,
1341
1341
  children: /* @__PURE__ */ t(
1342
- ja,
1342
+ Xa,
1343
1343
  {
1344
1344
  control: /* @__PURE__ */ t(
1345
1345
  Ki,
@@ -1435,10 +1435,10 @@ const iu = (e, n) => {
1435
1435
  variant: c = "outlined"
1436
1436
  }) => {
1437
1437
  const { isMobile: d } = xe(), [_, u] = g.useState(null), [h, m] = g.useState(
1438
- Pa(e, r)
1438
+ Ba(e, r)
1439
1439
  );
1440
1440
  g.useEffect(() => {
1441
- m(Pa(e, r));
1441
+ m(Ba(e, r));
1442
1442
  }, [e, r]);
1443
1443
  const C = (E) => {
1444
1444
  u(E.currentTarget);
@@ -1488,7 +1488,7 @@ const iu = (e, n) => {
1488
1488
  }), m(x);
1489
1489
  },
1490
1490
  onCancelClick: () => {
1491
- m(Pa(e, r)), f();
1491
+ m(Ba(e, r)), f();
1492
1492
  },
1493
1493
  onConnectAccountClick: a,
1494
1494
  onFilterClick: () => {
@@ -2253,7 +2253,7 @@ const bu = ({
2253
2253
  if (!n)
2254
2254
  throw new Error(`${e}() must be used within the GlobalDataContext`);
2255
2255
  return n;
2256
- }, ve = () => je("useAccountStore").globalStore.accountStore, Ca = () => je("useAppConfig").globalStore.appDataStore.appConfig, fr = () => je("useAnalyticsStore").globalStore.analyticsStore, st = () => je("useBudgetsStore").globalStore.budgetsStore, br = () => je("useCashflowStore").globalStore.cashflowStore, We = () => je("useCategoryStore").globalStore.categoryStore, Ys = () => je("useConnectStore").globalStore.connectStore, fa = () => je("useDebtsStore").globalStore.debtsStore, ba = () => je("useGlobalStore").globalStore, ce = () => je("useGlobalUiStore").globalStore.globalUiStore, I = () => je("globalCopyStore").globalStore.copyStore.copy, nt = () => je("useGoalStore").globalStore.goalStore, yr = () => je("useHelpStore").globalStore.helpStore, js = () => je("useHoldingStore").globalStore.holdingStore, Nu = () => je("useMerchantStore").globalStore.merchantStore, Du = () => je("useNetWorthStore").globalStore.netWorthStore, Xs = () => je("useNotificationStore").globalStore.notificationStore, Qe = () => je("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Bt = () => je("useSettingsStore").globalStore.settingsStore, Ce = () => je("useTransactionStore").globalStore.transactionStore, dn = () => je("useUserStore").globalStore.userStore, V = () => ({ onEvent: je().onEvent }), lE = () => ({ onPageView: je().onPageView }), Ru = (e = "useWidgetContainerContext") => {
2256
+ }, ve = () => je("useAccountStore").globalStore.accountStore, fa = () => je("useAppConfig").globalStore.appDataStore.appConfig, fr = () => je("useAnalyticsStore").globalStore.analyticsStore, st = () => je("useBudgetsStore").globalStore.budgetsStore, br = () => je("useCashflowStore").globalStore.cashflowStore, We = () => je("useCategoryStore").globalStore.categoryStore, Ys = () => je("useConnectStore").globalStore.connectStore, ba = () => je("useDebtsStore").globalStore.debtsStore, ya = () => je("useGlobalStore").globalStore, ce = () => je("useGlobalUiStore").globalStore.globalUiStore, I = () => je("globalCopyStore").globalStore.copyStore.copy, nt = () => je("useGoalStore").globalStore.goalStore, yr = () => je("useHelpStore").globalStore.helpStore, js = () => je("useHoldingStore").globalStore.holdingStore, Nu = () => je("useMerchantStore").globalStore.merchantStore, Du = () => je("useNetWorthStore").globalStore.netWorthStore, Xs = () => je("useNotificationStore").globalStore.notificationStore, Qe = () => je("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Bt = () => je("useSettingsStore").globalStore.settingsStore, Ce = () => je("useTransactionStore").globalStore.transactionStore, dn = () => je("useUserStore").globalStore.userStore, V = () => ({ onEvent: je().onEvent }), lE = () => ({ onPageView: je().onPageView }), Ru = (e = "useWidgetContainerContext") => {
2257
2257
  const n = g.useContext(Ks);
2258
2258
  if (!n)
2259
2259
  throw new Error(`${e}() must be used within the WidgetContainerContext`);
@@ -2459,19 +2459,19 @@ const bu = ({
2459
2459
  }, ct = () => {
2460
2460
  const se = $e(String(E)).guid;
2461
2461
  se && a?.(se);
2462
- }, Re = (se) => {
2463
- const Be = String(se?.seriesId), Fe = $e(Be).guid, _n = Pe.find((di) => di.id === Be), Ra = _n && se?.dataIndex !== void 0, Oa = _n && se?.dataIndex === void 0;
2464
- if (Ra)
2462
+ }, Oe = (se) => {
2463
+ const Be = String(se?.seriesId), Fe = $e(Be).guid, _n = Pe.find((di) => di.id === Be), Oa = _n && se?.dataIndex !== void 0, La = _n && se?.dataIndex === void 0;
2464
+ if (Oa)
2465
2465
  f({
2466
2466
  hoveredSeriesId: Be,
2467
2467
  hoveredAreaData: null,
2468
2468
  isAreaHovered: !1,
2469
2469
  cursorPos: x
2470
2470
  }), n?.(Fe);
2471
- else if (Oa) {
2472
- const di = _n?.data.map((La, Ma) => ({
2473
- x: H[Ma],
2474
- y: La
2471
+ else if (La) {
2472
+ const di = _n?.data.map((Ma, ka) => ({
2473
+ x: H[ka],
2474
+ y: Ma
2475
2475
  })) ?? [];
2476
2476
  f({
2477
2477
  hoveredSeriesId: Be,
@@ -2531,7 +2531,7 @@ const bu = ({
2531
2531
  height: s || 400,
2532
2532
  margin: { bottom: 50 },
2533
2533
  onAreaClick: ct,
2534
- onHighlightChange: Re,
2534
+ onHighlightChange: Oe,
2535
2535
  series: Pe,
2536
2536
  skipAnimation: !0,
2537
2537
  slotProps: {
@@ -2818,7 +2818,7 @@ const bu = ({
2818
2818
  if (m === i.dateRangePickerCopy.dateRangeThisMonth)
2819
2819
  Z[0] = Se ? jt(we, 1) : gt(we, 1), Z[1] = ze(Se ? jt(re, 1) : gt(re, 1));
2820
2820
  else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
2821
- Z[0] = Se ? Xa(Xr(we), 1) : ei(Xr(we), 1), Z[1] = Se ? Xa(jr(we), 1) : ei(jr(we), 1);
2821
+ Z[0] = Se ? qa(Xr(we), 1) : ei(Xr(we), 1), Z[1] = Se ? qa(jr(we), 1) : ei(jr(we), 1);
2822
2822
  else {
2823
2823
  const Pe = Bl(re, we);
2824
2824
  Z[0] = W === "previous" ? dt(we, Pe) : Lt(we, Pe), Z[1] = W === "previous" ? dt(re, Pe) : Lt(re, Pe);
@@ -2924,7 +2924,7 @@ const bu = ({
2924
2924
  }
2925
2925
  ),
2926
2926
  s === "timeframebuttons" && /* @__PURE__ */ t(
2927
- sr,
2927
+ cr,
2928
2928
  {
2929
2929
  color: n,
2930
2930
  exclusive: !0,
@@ -3222,7 +3222,7 @@ const Dn = ({
3222
3222
  }, ue = ({ height: e = 250, label: n = "", size: i = 32 }) => {
3223
3223
  const a = Ct();
3224
3224
  return /* @__PURE__ */ l(y, { alignItems: "center", gap: a.Spacing.XLarge, height: e, justifyContent: "center", children: [
3225
- /* @__PURE__ */ t(cr, { size: i }),
3225
+ /* @__PURE__ */ t(lr, { size: i }),
3226
3226
  n && /* @__PURE__ */ t(p, { children: n })
3227
3227
  ] });
3228
3228
  }, $u = ({
@@ -3400,7 +3400,7 @@ const Dn = ({
3400
3400
  width: "100%"
3401
3401
  },
3402
3402
  children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
3403
- e === Gn.Loading && /* @__PURE__ */ t(cr, { color: "primary", size: 48 }),
3403
+ e === Gn.Loading && /* @__PURE__ */ t(lr, { color: "primary", size: 48 }),
3404
3404
  /* @__PURE__ */ t(
3405
3405
  p,
3406
3406
  {
@@ -3508,8 +3508,8 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
3508
3508
  An,
3509
3509
  {
3510
3510
  InputProps: {
3511
- endAdornment: Pn().includes("fr-ca") ? /* @__PURE__ */ t(De, { children: "$" }) : void 0,
3512
- startAdornment: Pn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(De, { children: "$" })
3511
+ endAdornment: Pn().includes("fr-ca") ? /* @__PURE__ */ t(Ne, { children: "$" }) : void 0,
3512
+ startAdornment: Pn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(Ne, { children: "$" })
3513
3513
  },
3514
3514
  "aria-label": n || E.enter_amount,
3515
3515
  className: `mx-cmn-currency-input ${T}`,
@@ -3619,7 +3619,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
3619
3619
  py: 4,
3620
3620
  sx: { "&:hover": { borderColor: o.palette.action.active }, ...i },
3621
3621
  children: /* @__PURE__ */ t(oi, { title: a, children: /* @__PURE__ */ t(
3622
- ja,
3622
+ Xa,
3623
3623
  {
3624
3624
  control: /* @__PURE__ */ t(
3625
3625
  id,
@@ -3734,7 +3734,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
3734
3734
  )
3735
3735
  }
3736
3736
  ), Js = ({ description: e, label: n, title: i }) => {
3737
- const { config: a } = Ca(), [r, o] = g.useState(!1);
3737
+ const { config: a } = fa(), [r, o] = g.useState(!1);
3738
3738
  if (a.show_connections_widget_in_master)
3739
3739
  return /* @__PURE__ */ l(g.Fragment, { children: [
3740
3740
  /* @__PURE__ */ l(kt, { sx: { m: 24 }, children: [
@@ -3898,7 +3898,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
3898
3898
  children: e
3899
3899
  }
3900
3900
  );
3901
- }, Qa = ({
3901
+ }, Ja = ({
3902
3902
  isChecked: e,
3903
3903
  isDisabled: n = !1,
3904
3904
  onClick: i,
@@ -4189,10 +4189,10 @@ const bo = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, yo = (e, n) =>
4189
4189
  });
4190
4190
  }
4191
4191
  return r;
4192
- }, Ja = (e, n) => e.find((i) => i.guid === n), Ju = (e, n, i) => {
4193
- const a = Ja(e, i);
4192
+ }, er = (e, n) => e.find((i) => i.guid === n), Ju = (e, n, i) => {
4193
+ const a = er(e, i);
4194
4194
  if (a)
4195
- return Ja(a.subBudgets, n);
4195
+ return er(a.subBudgets, n);
4196
4196
  };
4197
4197
  class e_ {
4198
4198
  api = new fo("/", "");
@@ -4213,7 +4213,7 @@ class e_ {
4213
4213
  (n) => {
4214
4214
  if (n) {
4215
4215
  const i = this.selectedBudget;
4216
- i && (this.selectedBudget = Ja(n, i.guid));
4216
+ i && (this.selectedBudget = er(n, i.guid));
4217
4217
  const a = this.selectedSubBudget;
4218
4218
  a && a.parent_guid && (this.selectedSubBudget = Ju(
4219
4219
  n,
@@ -4370,7 +4370,7 @@ const li = () => {
4370
4370
  children: [
4371
4371
  /* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
4372
4372
  /* @__PURE__ */ t(Ue, { amount: x, variant: "H2" }),
4373
- /* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: S(
4373
+ /* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: S(
4374
4374
  c.total_cash_accounts,
4375
4375
  h.length
4376
4376
  ) })
@@ -4378,19 +4378,19 @@ const li = () => {
4378
4378
  /* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "remove" }) }),
4379
4379
  /* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
4380
4380
  /* @__PURE__ */ t(Ue, { amount: w, variant: "H2" }),
4381
- /* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
4381
+ /* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
4382
4382
  ] }),
4383
4383
  /* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "equals" }) }),
4384
4384
  /* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
4385
4385
  /* @__PURE__ */ t(Ue, { amount: v, variant: "H2" }),
4386
4386
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
4387
- /* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
4387
+ /* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
4388
4388
  /* @__PURE__ */ t(Qi, { body: c.tooltip_body, title: c.tooltip_title })
4389
4389
  ] })
4390
4390
  ] }),
4391
4391
  /* @__PURE__ */ t(y, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(j, { children: [
4392
4392
  /* @__PURE__ */ t(p, { variant: "H2", children: S(c.days, _) }),
4393
- /* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
4393
+ /* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
4394
4394
  ] }) : /* @__PURE__ */ t(
4395
4395
  J,
4396
4396
  {
@@ -4905,7 +4905,7 @@ const r_ = [
4905
4905
  category: be.TRANSACTIONS_WIDGET,
4906
4906
  label: ye.DELETE_TRANSACTION
4907
4907
  }
4908
- }, c_ = async (e, n) => !n || !Eo[e] ? null : n.sendAnalyticEvent(Eo[e]), er = {
4908
+ }, c_ = async (e, n) => !n || !Eo[e] ? null : n.sendAnalyticEvent(Eo[e]), tr = {
4909
4909
  FLAG: "flag",
4910
4910
  DATE: "date",
4911
4911
  PAYEE: "payee",
@@ -4925,25 +4925,25 @@ const r_ = [
4925
4925
  custom: o = () => !0,
4926
4926
  searchTerm: s = ""
4927
4927
  } = e;
4928
- return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date > Ne(r.start) && c.date < Ne(r.end)).filter(o).filter((c) => {
4928
+ return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date > De(r.start) && c.date < De(r.end)).filter(o).filter((c) => {
4929
4929
  if (s === l_ && c.has_been_split)
4930
4930
  return !1;
4931
4931
  if (/^spl/i.test(s) && (c.has_been_split || c.parent_guid))
4932
4932
  return !0;
4933
4933
  const _ = c.tags.some(
4934
4934
  (h) => Ft(s, n.find((m) => m.guid === h)?.name)
4935
- ), u = Oe(c.date);
4935
+ ), u = Re(c.date);
4936
4936
  return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s, ne(u, ee.MONTH)) || Ft(s, ne(u, ee.DAY)) || Ft(s, ne(u, ee.FULL_MONTH_DAY)) || Ft(s, ne(u, ee.MONTH_DAY_YEAR)) || Ft(s, It(u, Ln)) || Ft(s, c.account) || Ft(s, `${c.amount}`) || Ft(s, c.memo) || _;
4937
4937
  });
4938
4938
  }, __ = (e, n, i) => [...e].sort((a, r) => {
4939
4939
  const o = n, s = (a[o] || "") > (r[o] || "");
4940
4940
  let c = s ? -1 : 1, d = s ? 1 : -1;
4941
- return (n === er.DATE || n === er.AMOUNT) && (c = s ? 1 : -1, d = s ? -1 : 1), i === ec.ASC ? c : d;
4941
+ return (n === tr.DATE || n === tr.AMOUNT) && (c = s ? 1 : -1, d = s ? -1 : 1), i === ec.ASC ? c : d;
4942
4942
  }), Ft = (e, n) => {
4943
4943
  const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
4944
4944
  return i.every((r) => a.indexOf(r) > -1);
4945
4945
  };
4946
- var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__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))(U || {}), tr = /* @__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))(tr || {}), At = /* @__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))(At || {}), Ve = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e))(Ve || {}), bt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(bt || {}), Sr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Sr || {}), p_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(p_ || {}), Ae = /* @__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))(Ae || {}), Je = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Je || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(on || {});
4946
+ var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__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))(U || {}), nr = /* @__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))(nr || {}), At = /* @__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))(At || {}), Ve = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e))(Ve || {}), bt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(bt || {}), Sr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Sr || {}), p_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(p_ || {}), Ae = /* @__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))(Ae || {}), Je = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Je || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(on || {});
4947
4947
  const tc = {
4948
4948
  account_guid: "",
4949
4949
  amount: 0,
@@ -5023,7 +5023,7 @@ class f_ {
5023
5023
  transactions = [];
5024
5024
  associatedBeats = [];
5025
5025
  cachedStartDate = dt(le(), 90);
5026
- sortColumn = er.DATE;
5026
+ sortColumn = tr.DATE;
5027
5027
  sortDirection = ec.DESC;
5028
5028
  filter = {};
5029
5029
  onAnalyticEvent = c_;
@@ -5107,8 +5107,8 @@ class f_ {
5107
5107
  this.setIsLoading(!0), this.transactions = [];
5108
5108
  try {
5109
5109
  const a = await this.api.getTransactionsByDateRange(
5110
- Ne(n),
5111
- Ne(i)
5110
+ De(n),
5111
+ De(i)
5112
5112
  );
5113
5113
  K(() => {
5114
5114
  this.transactions = this.augmentTransactions(a);
@@ -5122,7 +5122,7 @@ class f_ {
5122
5122
  loadTransactionsByDateRange = async (n, i) => {
5123
5123
  console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
5124
5124
  ...this.filter,
5125
- dateRange: { start: Oe(i), end: Oe(n) }
5125
+ dateRange: { start: Re(i), end: Re(n) }
5126
5126
  });
5127
5127
  };
5128
5128
  modifyTransactionByAccountGuid = (n, i) => {
@@ -5219,12 +5219,12 @@ const St = () => {
5219
5219
  const i = y_(b_(e, n)), a = encodeURIComponent(i), r = document.createElement("a");
5220
5220
  r.href = `data:attachment/csv;charset=utf-8,${a}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
5221
5221
  }, b_ = (e, n) => e.map((i) => ({
5222
- Date: ne(Oe(i.date), ee.YEAR_MONTH_DAY),
5222
+ Date: ne(Re(i.date), ee.YEAR_MONTH_DAY),
5223
5223
  Description: E_(i),
5224
5224
  "Original Description": i.feed_description,
5225
5225
  Amount: `${i.amount}`,
5226
5226
  Type: i.transaction_type === bt.CREDIT ? "Credit" : "Debit",
5227
- "Parent Category": ga[i.top_level_category_guid || ""],
5227
+ "Parent Category": ma[i.top_level_category_guid || ""],
5228
5228
  Category: i.category,
5229
5229
  Account: i.account,
5230
5230
  Tags: S_(i, n),
@@ -5289,7 +5289,7 @@ const St = () => {
5289
5289
  ]
5290
5290
  }
5291
5291
  );
5292
- }, ya = A(T_), Ea = ({
5292
+ }, Ea = A(T_), Sa = ({
5293
5293
  bgcolor: e = "background.default",
5294
5294
  children: n
5295
5295
  }) => /* @__PURE__ */ t(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: e, width: "100%" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: n }) }), A_ = ({ showIcon: e = !0, showSubtitle: n = !0 }) => {
@@ -5300,10 +5300,10 @@ const St = () => {
5300
5300
  n && /* @__PURE__ */ t(p, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
5301
5301
  ] });
5302
5302
  }, I_ = A(A_), So = (e, n) => {
5303
- const i = Oe(n[e].date), a = Oe(n[e - 1]?.date);
5303
+ const i = Re(n[e].date), a = Re(n[e - 1]?.date);
5304
5304
  return !lt(i, a);
5305
5305
  }, x_ = (e, n) => {
5306
- const i = Oe(n[e].date), a = Oe(n[e + 1]?.date);
5306
+ const i = Re(n[e].date), a = Re(n[e + 1]?.date);
5307
5307
  return lt(i, a);
5308
5308
  }, To = 65, Ao = 34, v_ = ({
5309
5309
  bgcolor: e,
@@ -5356,8 +5356,8 @@ const St = () => {
5356
5356
  width: "100%"
5357
5357
  },
5358
5358
  children: [
5359
- v && /* @__PURE__ */ t(Ea, { bgcolor: e, children: Oi(w.date) }),
5360
- /* @__PURE__ */ t(ya, { onClick: E, transaction: w }),
5359
+ v && /* @__PURE__ */ t(Sa, { bgcolor: e, children: Oi(w.date) }),
5360
+ /* @__PURE__ */ t(Ea, { onClick: E, transaction: w }),
5361
5361
  /* @__PURE__ */ t(k, { sx: { ml: R ? 24 : 0 } })
5362
5362
  ]
5363
5363
  },
@@ -5398,7 +5398,7 @@ const St = () => {
5398
5398
  ]
5399
5399
  }
5400
5400
  );
5401
- }, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(Oe(e.row.date), ee.MONTH_DAY) }), L_ = (e) => {
5401
+ }, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(Re(e.row.date), ee.MONTH_DAY) }), L_ = (e) => {
5402
5402
  const n = et(), { transactions: i } = I(), { is_flagged: a, is_hidden: r, has_been_viewed: o, parent_guid: s } = e.row, d = !o && !!!s;
5403
5403
  return /* @__PURE__ */ l(
5404
5404
  L,
@@ -5537,7 +5537,7 @@ const St = () => {
5537
5537
  ON_SUBCATEGORY_DELETED: "onSubcategoryDeleted",
5538
5538
  ON_SUBCATEGORY_SAVED: "onSubcategorySaved"
5539
5539
  };
5540
- var Sa = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(Sa || {});
5540
+ var Ta = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(Ta || {});
5541
5541
  const B_ = ({
5542
5542
  categoryName: e = "",
5543
5543
  onClose: n,
@@ -5611,7 +5611,7 @@ const B_ = ({
5611
5611
  isOpen: n,
5612
5612
  onClose: _,
5613
5613
  onSave: c,
5614
- type: Sa.ADD
5614
+ type: Ta.ADD
5615
5615
  }
5616
5616
  )
5617
5617
  ] });
@@ -5632,7 +5632,7 @@ const B_ = ({
5632
5632
  isOpen: i,
5633
5633
  onClose: s,
5634
5634
  onSave: o,
5635
- type: Sa.EDIT
5635
+ type: Ta.EDIT
5636
5636
  }
5637
5637
  );
5638
5638
  }, W_ = A(F_), U_ = ({
@@ -5653,7 +5653,7 @@ const B_ = ({
5653
5653
  isOpen: n,
5654
5654
  onClose: s,
5655
5655
  onSave: c,
5656
- type: Sa.DELETE
5656
+ type: Ta.DELETE
5657
5657
  }
5658
5658
  );
5659
5659
  }, V_ = A(U_), K_ = ({ parentCategory: e, subCategory: n }) => {
@@ -5691,7 +5691,7 @@ const B_ = ({
5691
5691
  primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
5692
5692
  }
5693
5693
  ),
5694
- s && b && /* @__PURE__ */ t(ua, { fontSize: "small" }),
5694
+ s && b && /* @__PURE__ */ t(_a, { fontSize: "small" }),
5695
5695
  !T && /* @__PURE__ */ t(xd, { label: d })
5696
5696
  ]
5697
5697
  }
@@ -5742,7 +5742,7 @@ const B_ = ({
5742
5742
  }, z_ = A(K_), Y_ = ({ categories: e, parentCategory: n }) => {
5743
5743
  const { expandedGuid: i, searchValue: a } = pn(), r = n.guid === i, o = !!a;
5744
5744
  return /* @__PURE__ */ t(
5745
- _a,
5745
+ ha,
5746
5746
  {
5747
5747
  in: r || o,
5748
5748
  sx: { backgroundColor: "background.default" },
@@ -5877,7 +5877,7 @@ const B_ = ({
5877
5877
  children: /* @__PURE__ */ t(J_, { ...r })
5878
5878
  }
5879
5879
  ) : /* @__PURE__ */ t(ue, {});
5880
- }, Ta = A(eh), th = 3, Io = 12, nh = (e, n, i) => e.filter((a) => !a.parent_guid).map(
5880
+ }, Aa = A(eh), th = 3, Io = 12, nh = (e, n, i) => e.filter((a) => !a.parent_guid).map(
5881
5881
  (a) => ac(
5882
5882
  a,
5883
5883
  n,
@@ -6011,8 +6011,8 @@ class ah {
6011
6011
  this.setIsLoadingCategoryTotals(!0);
6012
6012
  try {
6013
6013
  const r = await this.api.getDateRangeCategoryTotals(
6014
- Ne(i),
6015
- Ne(a),
6014
+ De(i),
6015
+ De(a),
6016
6016
  n
6017
6017
  );
6018
6018
  K(() => {
@@ -6023,7 +6023,7 @@ class ah {
6023
6023
  }
6024
6024
  };
6025
6025
  loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
6026
- const r = Ne(He(i ?? jt(/* @__PURE__ */ new Date(), 11))), o = Ne(ze(a ?? /* @__PURE__ */ new Date()));
6026
+ const r = De(He(i ?? jt(/* @__PURE__ */ new Date(), 11))), o = De(ze(a ?? /* @__PURE__ */ new Date()));
6027
6027
  try {
6028
6028
  const s = await this.api.getMonthlyCategoryTotals(r, o, n);
6029
6029
  K(() => {
@@ -6037,12 +6037,12 @@ class ah {
6037
6037
  this.setIsLoadingCategoryTotals(!0);
6038
6038
  try {
6039
6039
  const r = await this.api.getDateRangeCategoryTotals(
6040
- Ne(i),
6041
- Ne(a),
6040
+ De(i),
6041
+ De(a),
6042
6042
  n
6043
6043
  ), o = await this.api.getMonthlyCategoryTotals(
6044
- Ne(He(jt(a, 11))),
6045
- Ne(ze(a)),
6044
+ De(He(jt(a, 11))),
6045
+ De(ze(a)),
6046
6046
  n
6047
6047
  );
6048
6048
  K(() => {
@@ -6070,7 +6070,7 @@ class ah {
6070
6070
  }
6071
6071
  };
6072
6072
  // TODO: Remove this after refactoring Trends components to use detailedCategories
6073
- getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ga[n];
6073
+ getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ma[n];
6074
6074
  }
6075
6075
  const rc = ({ transaction: e }) => {
6076
6076
  const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ce(), { categories: a } = We(), { onEvent: r } = V(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = St(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (b) => {
@@ -6125,7 +6125,7 @@ const rc = ({ transaction: e }) => {
6125
6125
  }
6126
6126
  ) }),
6127
6127
  /* @__PURE__ */ t(
6128
- Ta,
6128
+ Aa,
6129
6129
  {
6130
6130
  initialSelected: e.category_guid,
6131
6131
  onClose: f,
@@ -6159,7 +6159,7 @@ const rc = ({ transaction: e }) => {
6159
6159
  ] });
6160
6160
  }, oc = ({ transaction: e }) => {
6161
6161
  const n = Ct(), { onEvent: i } = V(), { updateTransaction: a } = Ce(), { updateManualTransaction: r } = St(), { common: o, transactions: s } = I(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (C) => {
6162
- u(Ne(C));
6162
+ u(De(C));
6163
6163
  }, m = async () => {
6164
6164
  if (e.is_manual && !e.guid) {
6165
6165
  r({ ...e, date: _ }), d(!1);
@@ -6181,7 +6181,7 @@ const rc = ({ transaction: e }) => {
6181
6181
  {
6182
6182
  primary: s.date_title,
6183
6183
  primaryTypographyProps: { variant: "XSmall" },
6184
- secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(Oe(e.date), ee.YEAR_MONTH_DAY) })
6184
+ secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(Re(e.date), ee.YEAR_MONTH_DAY) })
6185
6185
  }
6186
6186
  ),
6187
6187
  /* @__PURE__ */ t(pt, { children: /* @__PURE__ */ t(B, { name: "chevron_right", weight: ft.Dark }) })
@@ -6201,7 +6201,7 @@ const rc = ({ transaction: e }) => {
6201
6201
  children: /* @__PURE__ */ t(y, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
6202
6202
  bu,
6203
6203
  {
6204
- beginDate: Oe(_),
6204
+ beginDate: Re(_),
6205
6205
  copy: {
6206
6206
  nextAria: s.date_next_aria,
6207
6207
  prevAria: s.date_prev_aria,
@@ -6540,7 +6540,7 @@ const rc = ({ transaction: e }) => {
6540
6540
  ] }) })
6541
6541
  ] }),
6542
6542
  /* @__PURE__ */ t(
6543
- Ta,
6543
+ Aa,
6544
6544
  {
6545
6545
  initialSelected: r.category_guid,
6546
6546
  onClose: () => h(!1),
@@ -6784,7 +6784,7 @@ const rc = ({ transaction: e }) => {
6784
6784
  value: s
6785
6785
  }
6786
6786
  ),
6787
- /* @__PURE__ */ t(De, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
6787
+ /* @__PURE__ */ t(Ne, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
6788
6788
  ]
6789
6789
  }
6790
6790
  )
@@ -6887,7 +6887,7 @@ const rc = ({ transaction: e }) => {
6887
6887
  value: m
6888
6888
  }
6889
6889
  ),
6890
- /* @__PURE__ */ t(De, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: f })
6890
+ /* @__PURE__ */ t(Ne, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: f })
6891
6891
  ]
6892
6892
  }
6893
6893
  ),
@@ -7219,7 +7219,7 @@ const rc = ({ transaction: e }) => {
7219
7219
  placeholder: i.manual_transaction_select,
7220
7220
  select: !0,
7221
7221
  sx: { bgcolor: "background.paper" },
7222
- children: u.map((b) => /* @__PURE__ */ t(da, { value: b.value, children: b.label }, b.value))
7222
+ children: u.map((b) => /* @__PURE__ */ t(ua, { value: b.value, children: b.label }, b.value))
7223
7223
  }
7224
7224
  )
7225
7225
  ] }),
@@ -7240,7 +7240,7 @@ const rc = ({ transaction: e }) => {
7240
7240
  };
7241
7241
  return /* @__PURE__ */ l(L, { className: "mx-txn-edit-category-action", children: [
7242
7242
  /* @__PURE__ */ t(
7243
- Ta,
7243
+ Aa,
7244
7244
  {
7245
7245
  initialSelected: n.category_guid,
7246
7246
  onClose: e,
@@ -7301,15 +7301,15 @@ const rc = ({ transaction: e }) => {
7301
7301
  selectedAccounts: we,
7302
7302
  setDisplayedDate: re,
7303
7303
  setSelectedAccounts: Se
7304
- } = ce(), [Pe, _e] = g.useState(""), [$e, it] = g.useState(""), [$t, ct] = g.useState(!1), [Re, ut] = g.useState(!1), [un, se] = g.useState(!1);
7304
+ } = ce(), [Pe, _e] = g.useState(""), [$e, it] = g.useState(""), [$t, ct] = g.useState(!1), [Oe, ut] = g.useState(!1), [un, se] = g.useState(!1);
7305
7305
  g.useEffect(() => {
7306
7306
  Se(r);
7307
7307
  }, [r]), g.useEffect(() => {
7308
7308
  const at = He(le()), Wr = ze(le());
7309
7309
  re(at, Wr), T({
7310
7310
  dateRange: { start: at, end: Wr },
7311
- accounts: we.map((ka) => ka.guid),
7312
- custom: (ka) => !ka.accountIsClosed
7311
+ accounts: we.map((Ga) => Ga.guid),
7312
+ custom: (Ga) => !Ga.accountIsClosed
7313
7313
  }), se(!0), O(F.TRANSACTIONS_VIEW);
7314
7314
  }, []), g.useEffect(() => {
7315
7315
  un && (T({
@@ -7323,25 +7323,25 @@ const rc = ({ transaction: e }) => {
7323
7323
  const Be = g.useMemo(
7324
7324
  () => r.filter((at) => at.is_manual),
7325
7325
  [r]
7326
- ), Fe = $e ? w.find((at) => at.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid, Ra = (at) => {
7326
+ ), Fe = $e ? w.find((at) => at.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid, Oa = (at) => {
7327
7327
  re(at[0], at[1]);
7328
- }, Oa = (at) => {
7328
+ }, La = (at) => {
7329
7329
  h(at), T({
7330
7330
  ...E,
7331
7331
  searchTerm: at
7332
7332
  }), O(F.TRANSACTIONS_CLICK_SEARCH, { search_term: at });
7333
7333
  }, di = () => {
7334
7334
  nc(w, x), O(F.TRANSACTIONS_CLICK_EXPORT);
7335
- }, La = () => {
7335
+ }, Ma = () => {
7336
7336
  Be.length > 0 ? (C({
7337
7337
  ...tc,
7338
- date: Ne(le()),
7338
+ date: De(le()),
7339
7339
  user_guid: H?.user_guid || ""
7340
7340
  }), _e(
7341
7341
  "addTransaction"
7342
7342
  /* AddTransaction */
7343
7343
  ), O(F.TRANSACTIONS_CLICK_ADD)) : (ct(!0), O(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7344
- }, Ma = async () => {
7344
+ }, ka = async () => {
7345
7345
  _n && await f(d), _e("");
7346
7346
  }, tl = () => {
7347
7347
  ct(!1), ut(!0);
@@ -7363,11 +7363,11 @@ const rc = ({ transaction: e }) => {
7363
7363
  {
7364
7364
  iconName: "add",
7365
7365
  label: D.add_transaction_btn,
7366
- onClick: La
7366
+ onClick: Ma
7367
7367
  }
7368
7368
  ],
7369
7369
  calendarActions: {
7370
- onRangeChanged: Ra
7370
+ onRangeChanged: Oa
7371
7371
  },
7372
7372
  onAccountsFilterClick: () => O(F.ACCOUNTS_CLICK_FILTER),
7373
7373
  onBackClick: e,
@@ -7377,7 +7377,7 @@ const rc = ({ transaction: e }) => {
7377
7377
  /* @__PURE__ */ t(L, { mt: 16, children: /* @__PURE__ */ t(
7378
7378
  Mi,
7379
7379
  {
7380
- onChange: Oa,
7380
+ onChange: La,
7381
7381
  placeholder: D.action_bar_search_placeholder,
7382
7382
  searchValue: u
7383
7383
  }
@@ -7458,7 +7458,7 @@ const rc = ({ transaction: e }) => {
7458
7458
  isOpen: Pe === "addTransaction",
7459
7459
  isPrimaryDisabled: !_n,
7460
7460
  onClose: () => _e(""),
7461
- onPrimaryAction: Ma,
7461
+ onPrimaryAction: ka,
7462
7462
  title: D.add_transaction_title,
7463
7463
  children: /* @__PURE__ */ t(kh, {})
7464
7464
  }
@@ -7478,7 +7478,7 @@ const rc = ({ transaction: e }) => {
7478
7478
  Li,
7479
7479
  {
7480
7480
  onClose: nl,
7481
- showConnectWidget: Re,
7481
+ showConnectWidget: Oe,
7482
7482
  title: D.add_manual_account
7483
7483
  }
7484
7484
  )
@@ -7492,7 +7492,7 @@ const rc = ({ transaction: e }) => {
7492
7492
  repeat_interval: null,
7493
7493
  repeat_month: null,
7494
7494
  repeat_weekday: null,
7495
- start_date: Ne(e.expectedDate)
7495
+ start_date: De(e.expectedDate)
7496
7496
  }, a = `${Qn(e.expectedDate)}`, r = `${Zn(e.expectedDate)}`, o = `${ti(e.expectedDate)}`;
7497
7497
  switch (e.recurrenceType) {
7498
7498
  case q.EveryWeek:
@@ -7754,12 +7754,12 @@ const rc = ({ transaction: e }) => {
7754
7754
  }
7755
7755
  )
7756
7756
  ] });
7757
- }, Vh = A(Uh), Aa = {
7757
+ }, Vh = A(Uh), Ia = {
7758
7758
  gridRow: 1,
7759
7759
  gridColumn: 1,
7760
7760
  zIndex: 2
7761
- }, Ia = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Ar = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Td, { color: "primary", sx: { fontSize: n, ...Aa } }) }), Ir = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Ad, { sx: { color: "categories.income", fontSize: n, ...Aa } }) }), xr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Yi, { color: "error", sx: { fontSize: n, ...Aa } }) }), vr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(ua, { color: "success", sx: { fontSize: n, ...Aa } }) }), No = ({ copy: e, date: n, type: i }) => {
7762
- let a = n && lr(n) ? S(e.monthly_ordinal, It(n, "do")) : e.monthly;
7761
+ }, xa = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Ar = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(Td, { color: "primary", sx: { fontSize: n, ...Ia } }) }), Ir = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(Ad, { sx: { color: "categories.income", fontSize: n, ...Ia } }) }), xr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(Yi, { color: "error", sx: { fontSize: n, ...Ia } }) }), vr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(_a, { color: "success", sx: { fontSize: n, ...Ia } }) }), No = ({ copy: e, date: n, type: i }) => {
7762
+ let a = n && la(n) ? S(e.monthly_ordinal, It(n, "do")) : e.monthly;
7763
7763
  switch (i) {
7764
7764
  case q.EveryQuarter:
7765
7765
  a = n ? S(e.quarterly_ordinal, It(n, "do")) : e.quarterly;
@@ -7925,7 +7925,7 @@ const rc = ({ transaction: e }) => {
7925
7925
  repeat_week: null,
7926
7926
  repeat_weekday: null,
7927
7927
  repeat_year: null,
7928
- start_date: Ne(i),
7928
+ start_date: De(i),
7929
7929
  transaction_type: e.transaction_type
7930
7930
  };
7931
7931
  switch (n) {
@@ -7988,7 +7988,7 @@ const rc = ({ transaction: e }) => {
7988
7988
  }) => {
7989
7989
  const { recurring: r } = I(), { searchValue: o, setSearchValue: s } = St();
7990
7990
  return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
7991
- n && /* @__PURE__ */ t(De, { sx: { mx: 24 }, children: n }),
7991
+ n && /* @__PURE__ */ t(Ne, { sx: { mx: 24 }, children: n }),
7992
7992
  /* @__PURE__ */ t(
7993
7993
  Mi,
7994
7994
  {
@@ -8022,14 +8022,14 @@ const rc = ({ transaction: e }) => {
8022
8022
  { id: q.EveryYear, label: c.frequency_every_year }
8023
8023
  ];
8024
8024
  g.useEffect(() => {
8025
- const u = Oe(s.date);
8025
+ const u = Re(s.date);
8026
8026
  o(qi(u)), r(q.EveryMonth);
8027
8027
  }, [s]);
8028
8028
  const _ = (u) => {
8029
- const h = Oe(s.date);
8029
+ const h = Re(s.date);
8030
8030
  switch (Number(u.target.value)) {
8031
8031
  case q.EveryWeek:
8032
- o(ma(h));
8032
+ o(pa(h));
8033
8033
  break;
8034
8034
  case q.EveryOtherWeek:
8035
8035
  o(Gs(h));
@@ -8054,8 +8054,8 @@ const rc = ({ transaction: e }) => {
8054
8054
  };
8055
8055
  return /* @__PURE__ */ l(y, { bgcolor: e, gap: 24, height: "100%", children: [
8056
8056
  /* @__PURE__ */ l(y, { children: [
8057
- /* @__PURE__ */ t(Ea, { bgcolor: e, children: Oi(s.date) }),
8058
- /* @__PURE__ */ t(ya, { transaction: s })
8057
+ /* @__PURE__ */ t(Sa, { bgcolor: e, children: Oi(s.date) }),
8058
+ /* @__PURE__ */ t(Ea, { transaction: s })
8059
8059
  ] }),
8060
8060
  /* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
8061
8061
  /* @__PURE__ */ t(
@@ -8072,11 +8072,11 @@ const rc = ({ transaction: e }) => {
8072
8072
  sx: { mx: 24 },
8073
8073
  value: n,
8074
8074
  variant: "outlined",
8075
- children: d.map((u) => /* @__PURE__ */ t(da, { value: u.id, children: u.label }, u.id))
8075
+ children: d.map((u) => /* @__PURE__ */ t(ua, { value: u.id, children: u.label }, u.id))
8076
8076
  }
8077
8077
  ),
8078
8078
  /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
8079
- la,
8079
+ da,
8080
8080
  {
8081
8081
  disablePast: !0,
8082
8082
  label: i ? c.income_date_label : c.expense_date_label,
@@ -8199,10 +8199,10 @@ const rc = ({ transaction: e }) => {
8199
8199
  ] }, d.scheduledPaymentGuid)),
8200
8200
  /* @__PURE__ */ t(Cc, { label: e.add_expense, onAddActivity: c })
8201
8201
  ] });
8202
- }, eg = A(Jh), nr = (e) => {
8202
+ }, eg = A(Jh), ir = (e) => {
8203
8203
  let n = e.user_name || e.feed_name || "";
8204
8204
  return e.account_number && (n = `${n} *${e.account_number}`), n;
8205
- }, ir = (e) => e ? e.repeat_interval === "1" ? q.EveryWeek : e.repeat_interval === "2" ? q.EveryOtherWeek : e.repeat_day && !e.repeat_month && !e.repeat_interval ? q.EveryMonth : e.repeat_day && e.repeat_interval === "3" ? q.EveryQuarter : e.repeat_day && e.repeat_month ? q.EveryYear : q.Unknown : q.Unknown, tg = (e, n, i, a, r, o) => {
8205
+ }, ar = (e) => e ? e.repeat_interval === "1" ? q.EveryWeek : e.repeat_interval === "2" ? q.EveryOtherWeek : e.repeat_day && !e.repeat_month && !e.repeat_interval ? q.EveryMonth : e.repeat_day && e.repeat_interval === "3" ? q.EveryQuarter : e.repeat_day && e.repeat_month ? q.EveryYear : q.Unknown : q.Unknown, tg = (e, n, i, a, r, o) => {
8206
8206
  const s = n.filter((u) => {
8207
8207
  const h = r.find((C) => C.guid === u.cashflow_sequence_guid), m = o.find((C) => C.guid === u.transaction_guid);
8208
8208
  return h?.end_date === null && m;
@@ -8217,16 +8217,16 @@ const rc = ({ transaction: e }) => {
8217
8217
  expectedDate: Ci(u.expected_date),
8218
8218
  occurredOnDate: u.occurred_on ? Ci(u.occurred_on) : void 0,
8219
8219
  name: u.name,
8220
- institution: C ? nr(C) : void 0,
8220
+ institution: C ? ir(C) : void 0,
8221
8221
  institutionGuid: C?.institution_guid,
8222
8222
  merchantGuid: m?.merchant_guid || void 0,
8223
- recurrenceType: ir(h),
8223
+ recurrenceType: ar(h),
8224
8224
  recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
8225
8225
  sequenceGuid: h?.guid,
8226
8226
  transactionGuid: u.transaction_guid
8227
8227
  };
8228
8228
  }), c = a.filter(
8229
- (u) => ni(Oe(u.expected_date), {
8229
+ (u) => ni(Re(u.expected_date), {
8230
8230
  start: He(le()),
8231
8231
  end: Lt(le(), 30)
8232
8232
  })
@@ -8247,17 +8247,17 @@ const rc = ({ transaction: e }) => {
8247
8247
  categoryGuid: u.category_guid,
8248
8248
  expectedDate: Ci(u.expected_date),
8249
8249
  name: u.name,
8250
- institution: f ? nr(f) : void 0,
8250
+ institution: f ? ir(f) : void 0,
8251
8251
  institutionGuid: f?.institution_guid,
8252
8252
  merchantGuid: C?.merchant_guid || void 0,
8253
- recurrenceType: ir(h),
8253
+ recurrenceType: ar(h),
8254
8254
  recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
8255
8255
  sequenceGuid: h?.guid,
8256
8256
  transactionGuid: void 0
8257
8257
  };
8258
8258
  }), d = [];
8259
8259
  return i && i.forEach((u) => d.push(...ng(e, u, o))), [...s, ...c, ...d].sort(
8260
- (u, h) => Ne(u.occurredOnDate || u.expectedDate) - Ne(h.occurredOnDate || h.expectedDate)
8260
+ (u, h) => De(u.occurredOnDate || u.expectedDate) - De(h.occurredOnDate || h.expectedDate)
8261
8261
  );
8262
8262
  }, ng = (e, n, i) => {
8263
8263
  const a = [], r = i.find((C) => C.scheduled_payment_guid === n.guid);
@@ -8270,7 +8270,7 @@ const rc = ({ transaction: e }) => {
8270
8270
  categoryGuid: r?.category_guid,
8271
8271
  expectedDate: s,
8272
8272
  name: n.description,
8273
- institution: o ? nr(o) : void 0,
8273
+ institution: o ? ir(o) : void 0,
8274
8274
  institutionGuid: o?.institution_guid,
8275
8275
  merchantGuid: n.merchant_guid,
8276
8276
  recurrenceType: n.recurrence_type,
@@ -8358,9 +8358,9 @@ const rc = ({ transaction: e }) => {
8358
8358
  }
8359
8359
  return a.forEach((C) => {
8360
8360
  const f = i.find(
8361
- (E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > Ne(dt(C.expectedDate, 3)) && E.date < Ne(Lt(C.expectedDate, 3))
8361
+ (E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > De(dt(C.expectedDate, 3)) && E.date < De(Lt(C.expectedDate, 3))
8362
8362
  );
8363
- f ? (C.transactionGuid = f.guid, C.occurredOnDate = Oe(f.date), C.activityStatus = Ze.Paid) : Te(C.expectedDate, dt(_, 3)) && (C.activityStatus = Ze.Missed);
8363
+ f ? (C.transactionGuid = f.guid, C.occurredOnDate = Re(f.date), C.activityStatus = Ze.Paid) : Te(C.expectedDate, dt(_, 3)) && (C.activityStatus = Ze.Missed);
8364
8364
  }), a;
8365
8365
  }, ig = (e, n, i, a, r) => a.map((o) => {
8366
8366
  const s = n.find((h) => h.cashflow_sequence_guid === o.guid), c = i.find((h) => h.cashflow_sequence_guid === o.guid), d = r.find((h) => h.guid === s?.transaction_guid), _ = e.find((h) => h.guid === d?.account_guid);
@@ -8375,7 +8375,7 @@ const rc = ({ transaction: e }) => {
8375
8375
  institution: _?.user_name,
8376
8376
  institutionGuid: _?.institution_guid,
8377
8377
  merchantGuid: d?.merchant_guid,
8378
- recurrenceType: ir(o),
8378
+ recurrenceType: ar(o),
8379
8379
  recurrenceDay: Number(o.repeat_day),
8380
8380
  sequenceGuid: o.guid
8381
8381
  };
@@ -8435,13 +8435,13 @@ const rc = ({ transaction: e }) => {
8435
8435
  e === 0 && /* @__PURE__ */ t(eg, {}),
8436
8436
  e === 1 && /* @__PURE__ */ t(Nr, {})
8437
8437
  ] });
8438
- }, fc = A(rg), _i = (e, n) => e + n.amount, Ba = (e) => e.activityType === Xe.Income && ni(e.expectedDate, {
8438
+ }, fc = A(rg), _i = (e, n) => e + n.amount, Ha = (e) => e.activityType === Xe.Income && ni(e.expectedDate, {
8439
8439
  start: He(le()),
8440
8440
  end: ze(le())
8441
8441
  }), Hi = (e) => e.activityType === Xe.Expense && ni(e.expectedDate, {
8442
8442
  start: He(le()),
8443
8443
  end: ze(le())
8444
- }), Ha = (e) => e.occurredOnDate && ni(e.occurredOnDate, {
8444
+ }), $a = (e) => e.occurredOnDate && ni(e.occurredOnDate, {
8445
8445
  start: He(/* @__PURE__ */ new Date()),
8446
8446
  end: Lt(le(), 30)
8447
8447
  }) || ni(e.expectedDate, {
@@ -8689,7 +8689,7 @@ const rc = ({ transaction: e }) => {
8689
8689
  selectedDayActivities: c,
8690
8690
  setSelectedDay: d,
8691
8691
  upcomingActivities: _
8692
- } = Qe(), [u, h] = g.useState(0), { onEvent: m } = V(), C = a.filter(Ha), f = o.filter(Ha), E = r.filter(Ha), b = C.filter(Hi).reduce(_i, 0), T = f.filter(Hi).reduce(_i, 0), x = E.filter(Hi).reduce(_i, 0), w = C.filter(Hi).length, v = C.filter(Ba).reduce(_i, 0), R = f.filter(Ba).reduce(_i, 0), D = C.filter(Ba).length, H = (X, W) => {
8692
+ } = Qe(), [u, h] = g.useState(0), { onEvent: m } = V(), C = a.filter($a), f = o.filter($a), E = r.filter($a), b = C.filter(Hi).reduce(_i, 0), T = f.filter(Hi).reduce(_i, 0), x = E.filter(Hi).reduce(_i, 0), w = C.filter(Hi).length, v = C.filter(Ha).reduce(_i, 0), R = f.filter(Ha).reduce(_i, 0), D = C.filter(Ha).length, H = (X, W) => {
8693
8693
  h(W);
8694
8694
  }, O = (X) => {
8695
8695
  m(F.RECURRING_ACTIVITY_CLICK_UPCOMING, {
@@ -9042,7 +9042,7 @@ class yg {
9042
9042
  const r = this.cashflowEvents.findLast((o) => o.guid === n.guid);
9043
9043
  await this.cashflowApi.updateCashflowSequence({
9044
9044
  ...a,
9045
- end_date: r?.occurred_on || Ne(/* @__PURE__ */ new Date())
9045
+ end_date: r?.occurred_on || De(/* @__PURE__ */ new Date())
9046
9046
  }), await this.addCashflowSequence({
9047
9047
  ...n,
9048
9048
  guid: void 0
@@ -9074,7 +9074,7 @@ const Eg = {
9074
9074
  gridRow: 1,
9075
9075
  gridColumn: 1,
9076
9076
  zIndex: 2
9077
- }, Sg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(ha, { color: "error", sx: { fontSize: e, ...Eg } }) }), Dr = (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), Tg = (e) => e.is_manual || !e.guid, Ag = (e) => e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.CHECKING_LINE_OF_CREDIT, Ig = (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, xg = (e) => e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, vg = (e, n) => {
9077
+ }, Sg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(ga, { color: "error", sx: { fontSize: e, ...Eg } }) }), Dr = (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), Tg = (e) => e.is_manual || !e.guid, Ag = (e) => e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.CHECKING_LINE_OF_CREDIT, Ig = (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, xg = (e) => e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, vg = (e, n) => {
9078
9078
  const i = [
9079
9079
  {
9080
9080
  event: "account_details_click_account_name",
@@ -9131,8 +9131,8 @@ const Eg = {
9131
9131
  name: r,
9132
9132
  placeholder: S(n.enter_value, a),
9133
9133
  type: Tt.Input,
9134
- validation: (o) => Za(o) ? "" : n.error_amount_is_invalid,
9135
- valueFormatter: (o) => Za(o) ? pa(o / 100) : o
9134
+ validation: (o) => Qa(o) ? "" : n.error_amount_is_invalid,
9135
+ valueFormatter: (o) => Qa(o) ? Ca(o / 100) : o
9136
9136
  });
9137
9137
  }
9138
9138
  return Dr(e) && (i.push({
@@ -9335,7 +9335,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
9335
9335
  ] })
9336
9336
  ] }),
9337
9337
  /* @__PURE__ */ t(y, { children: o.map((s) => {
9338
- const c = a.filter(Mo(s, r)).sort((h, m) => Ne(h.expectedDate) - Ne(m.expectedDate)), d = i.filter(
9338
+ const c = a.filter(Mo(s, r)).sort((h, m) => De(h.expectedDate) - De(m.expectedDate)), d = i.filter(
9339
9339
  Mo(s, r)
9340
9340
  ), _ = c.reduce(
9341
9341
  (h, m) => h + m.amount,
@@ -9818,9 +9818,9 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
9818
9818
  children: i.welcome_sub_title
9819
9819
  }
9820
9820
  ),
9821
- /* @__PURE__ */ t(De, { pb: 32, children: i.welcome_description }),
9821
+ /* @__PURE__ */ t(Ne, { pb: 32, children: i.welcome_description }),
9822
9822
  /* @__PURE__ */ l(y, { direction: "column", mb: 32, spacing: 32, children: [
9823
- /* @__PURE__ */ l(De, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9823
+ /* @__PURE__ */ l(Ne, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9824
9824
  /* @__PURE__ */ t(
9825
9825
  L,
9826
9826
  {
@@ -9836,7 +9836,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
9836
9836
  ),
9837
9837
  i.bullet_one
9838
9838
  ] }),
9839
- /* @__PURE__ */ l(De, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9839
+ /* @__PURE__ */ l(Ne, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9840
9840
  /* @__PURE__ */ t(
9841
9841
  L,
9842
9842
  {
@@ -9852,7 +9852,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
9852
9852
  ),
9853
9853
  i.bullet_two
9854
9854
  ] }),
9855
- /* @__PURE__ */ l(De, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9855
+ /* @__PURE__ */ l(Ne, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9856
9856
  /* @__PURE__ */ t(
9857
9857
  L,
9858
9858
  {
@@ -9882,7 +9882,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
9882
9882
  return /* @__PURE__ */ l(g.Fragment, { children: [
9883
9883
  /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("img", { alt: "Loading", src: Ec.CASHFLOW_LOADING_ANIMATION }) }),
9884
9884
  /* @__PURE__ */ t(cn, { pb: 12, children: e.loading_title }),
9885
- /* @__PURE__ */ t(De, { children: e.loading_description })
9885
+ /* @__PURE__ */ t(Ne, { children: e.loading_description })
9886
9886
  ] });
9887
9887
  }, Ug = A(Wg), Vg = vl`
9888
9888
  from {
@@ -9958,13 +9958,13 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
9958
9958
  },
9959
9959
  children: [
9960
9960
  /* @__PURE__ */ t(cn, { pb: 12, children: a.add_income_title }),
9961
- /* @__PURE__ */ t(De, { mb: 24, children: a.add_income_description }),
9961
+ /* @__PURE__ */ t(Ne, { mb: 24, children: a.add_income_description }),
9962
9962
  O.length > 0 && !Z && /* @__PURE__ */ l(j, { children: [
9963
9963
  /* @__PURE__ */ t(ie, { children: O.map((_e, $e) => /* @__PURE__ */ l(g.Fragment, { children: [
9964
- /* @__PURE__ */ t(Ea, { bgcolor: "background.paper", children: Oi(
9965
- Ne(_e.nextDate || _e.date)
9964
+ /* @__PURE__ */ t(Sa, { bgcolor: "background.paper", children: Oi(
9965
+ De(_e.nextDate || _e.date)
9966
9966
  ) }),
9967
- /* @__PURE__ */ t(ya, { transaction: _e }),
9967
+ /* @__PURE__ */ t(Ea, { transaction: _e }),
9968
9968
  $e !== O.length - 1 && /* @__PURE__ */ t(k, {})
9969
9969
  ] }, _e.guid)) }),
9970
9970
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", children: [
@@ -9992,7 +9992,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
9992
9992
  }
9993
9993
  }
9994
9994
  ),
9995
- !we && s && /* @__PURE__ */ t(De, { color: "error", mt: 16, children: a.confirm_error }),
9995
+ !we && s && /* @__PURE__ */ t(Ne, { color: "error", mt: 16, children: a.confirm_error }),
9996
9996
  Z && /* @__PURE__ */ l(j, { children: [
9997
9997
  /* @__PURE__ */ t(
9998
9998
  mc,
@@ -10136,13 +10136,13 @@ class Po {
10136
10136
  addCashflowSequence = async (n) => this.fetchInstance.post(G.CASHFLOW_SEQUENCES, { ...n }).then((i) => i.cashflow_sequence);
10137
10137
  getCashflowSequences = async () => this.fetchInstance.get(G.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
10138
10138
  getCashflowEventsByDateRange = async (n, i) => this.fetchInstance.get(
10139
- `${G.CASHFLOW_EVENTS}/from/${Ne(n)}/to/${Ne(i)}`
10139
+ `${G.CASHFLOW_EVENTS}/from/${De(n)}/to/${De(i)}`
10140
10140
  ).then((a) => a.cashflow_events);
10141
10141
  deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${G.CASHFLOW_SEQUENCES}/${n}`).then((i) => i);
10142
10142
  getProjectedCashflowEvents = async (n, i) => this.fetchInstance.get(
10143
- `${G.CASHFLOW_SEQUENCES}/projected_events/from/${Ne(
10143
+ `${G.CASHFLOW_SEQUENCES}/projected_events/from/${De(
10144
10144
  n
10145
- )}/to/${Ne(i)}`
10145
+ )}/to/${De(i)}`
10146
10146
  ).then((a) => a.cashflow_events);
10147
10147
  updateCashflowSequence = async (n) => this.fetchInstance.put(`${G.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((i) => i.cashflow_sequence);
10148
10148
  }
@@ -10240,7 +10240,7 @@ function qg(e, n, i = 0) {
10240
10240
  const Cn = () => {
10241
10241
  if (!g.useContext(zn))
10242
10242
  throw new Error("useCateUiStore() must be used within the GlobalDataContext");
10243
- return fa().uiStore;
10243
+ return ba().uiStore;
10244
10244
  }, Zg = ({ debts: e, onClickCta: n, sx: i }) => {
10245
10245
  const a = vn(), { isMobile: r } = xe(), { debts: o } = I(), { selectedDebtPriority: s } = Cn(), { monthlyCashFlowProfile: c } = nt(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
10246
10246
  const h = c?.extra_payment ?? 0;
@@ -10659,7 +10659,7 @@ const Cn = () => {
10659
10659
  if (!g.useContext(zn))
10660
10660
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
10661
10661
  return ve().uiStore;
10662
- }, xa = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, tm = (e) => !xa(e) && !Ac(e), Tc = (e) => no.includes(e.top_level_category_guid) || no.includes(e.category_guid), Ac = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, nm = (e) => !xa(e) && !Tc(e) && !Ac(e), im = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Rr = (e, n) => {
10662
+ }, va = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, tm = (e) => !va(e) && !Ac(e), Tc = (e) => no.includes(e.top_level_category_guid) || no.includes(e.category_guid), Ac = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, nm = (e) => !va(e) && !Tc(e) && !Ac(e), im = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Rr = (e, n) => {
10663
10663
  const i = [];
10664
10664
  let a = He(jt(/* @__PURE__ */ new Date(), 5));
10665
10665
  const r = /* @__PURE__ */ new Date();
@@ -10670,7 +10670,7 @@ const Cn = () => {
10670
10670
  }), a = gt(a, 1);
10671
10671
  return i;
10672
10672
  }, am = (e, n) => {
10673
- const i = e.filter(xa);
10673
+ const i = e.filter(va);
10674
10674
  return Rr(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
10675
10675
  }, rm = (e, n) => {
10676
10676
  const i = e.filter(Tc);
@@ -10721,7 +10721,7 @@ const Cn = () => {
10721
10721
  }
10722
10722
  ) });
10723
10723
  }, um = A(dm), _m = ({ sx: e }) => {
10724
- const { loadMonthlyCategoryTotals: n } = We(), { isInitialized: i } = ba(), { selectedAccount: a } = Ht(), [r, o] = g.useState(!1);
10724
+ const { loadMonthlyCategoryTotals: n } = We(), { isInitialized: i } = ya(), { selectedAccount: a } = Ht(), [r, o] = g.useState(!1);
10725
10725
  return g.useEffect(() => {
10726
10726
  i && n([a]).finally(() => {
10727
10727
  o(!0);
@@ -11022,7 +11022,7 @@ const Ic = ({
11022
11022
  onCancel: u,
11023
11023
  onSave: _,
11024
11024
  primaryText: n.details_interest_rate,
11025
- secondaryText: pa(Number(e.interest_rate) / 100),
11025
+ secondaryText: Ca(Number(e.interest_rate) / 100),
11026
11026
  zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
11027
11027
  children: /* @__PURE__ */ t(
11028
11028
  rt,
@@ -11121,7 +11121,7 @@ const Ic = ({
11121
11121
  onCancel: d,
11122
11122
  onSave: c,
11123
11123
  primaryText: n.details_interest_rate,
11124
- secondaryText: pa(Number(e.interest_rate) / 100),
11124
+ secondaryText: Ca(Number(e.interest_rate) / 100),
11125
11125
  zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
11126
11126
  children: /* @__PURE__ */ t(
11127
11127
  rt,
@@ -11227,7 +11227,7 @@ const Ic = ({
11227
11227
  /* @__PURE__ */ t(yt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
11228
11228
  xn,
11229
11229
  {
11230
- icon: a ? /* @__PURE__ */ t(ha, {}) : /* @__PURE__ */ t(ua, { color: "success" }),
11230
+ icon: a ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(_a, { color: "success" }),
11231
11231
  severity: "error",
11232
11232
  sx: {
11233
11233
  alignItems: "start",
@@ -11240,7 +11240,7 @@ const Ic = ({
11240
11240
  }
11241
11241
  },
11242
11242
  children: [
11243
- /* @__PURE__ */ t(qa, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a ? i.status_error_title : i.status_complete_title }),
11243
+ /* @__PURE__ */ t(Za, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a ? i.status_error_title : i.status_complete_title }),
11244
11244
  /* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a ? i.status_error_description : i.status_complete_description })
11245
11245
  ]
11246
11246
  }
@@ -11258,7 +11258,7 @@ const Ic = ({
11258
11258
  }
11259
11259
  },
11260
11260
  children: [
11261
- /* @__PURE__ */ t(qa, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: i.status_info_title }),
11261
+ /* @__PURE__ */ t(Za, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: i.status_info_title }),
11262
11262
  /* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: i.status_info_description })
11263
11263
  ]
11264
11264
  }
@@ -11352,7 +11352,7 @@ const Ic = ({
11352
11352
  }
11353
11353
  );
11354
11354
  }), Om = () => {
11355
- const { debts: e } = I(), { totalMonthlyPayments: n } = fa(), { monthlyCashFlowProfile: i } = nt(), a = n + Number(i?.extra_payment);
11355
+ const { debts: e } = I(), { totalMonthlyPayments: n } = ba(), { monthlyCashFlowProfile: i } = nt(), a = n + Number(i?.extra_payment);
11356
11356
  return /* @__PURE__ */ l(y, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
11357
11357
  /* @__PURE__ */ l(y, { p: 24, children: [
11358
11358
  /* @__PURE__ */ l(y, { alignItems: "center", gap: 4, mb: 24, children: [
@@ -11668,7 +11668,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11668
11668
  },
11669
11669
  children: [
11670
11670
  /* @__PURE__ */ t(p, { color: "inherit", variant: "Small", children: u }),
11671
- r === _ && /* @__PURE__ */ t(ua, { color: "inherit", fontSize: "small" })
11671
+ r === _ && /* @__PURE__ */ t(_a, { color: "inherit", fontSize: "small" })
11672
11672
  ]
11673
11673
  },
11674
11674
  _
@@ -11727,7 +11727,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11727
11727
  d.priority = !d.is_paid_off && !d.is_impossible ? c++ : void 0;
11728
11728
  }), o;
11729
11729
  }, Km = A(({ onClick: e }) => {
11730
- const { debts: n } = I(), { isDesktop: i } = xe(), { totalMonthlyPayments: a } = fa(), { monthlyCashFlowProfile: r } = nt(), o = a + Number(r?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
11730
+ const { debts: n } = I(), { isDesktop: i } = xe(), { totalMonthlyPayments: a } = ba(), { monthlyCashFlowProfile: r } = nt(), o = a + Number(r?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
11731
11731
  return /* @__PURE__ */ t(
11732
11732
  J,
11733
11733
  {
@@ -11741,7 +11741,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11741
11741
  }
11742
11742
  );
11743
11743
  }), zm = ({ onBackClick: e, sx: n }) => {
11744
- const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = xe(), { debts: m } = I(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = ce(), { setSelectedAccount: T } = Ht(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = nt(), { debts: O } = fa(), M = g.useMemo(() => {
11744
+ const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = xe(), { debts: m } = I(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = ce(), { setSelectedAccount: T } = Ht(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = nt(), { debts: O } = ba(), M = g.useMemo(() => {
11745
11745
  const Se = H?.extra_payment ?? 0;
11746
11746
  return Vm(O, x, Se);
11747
11747
  }, [O, x, H]);
@@ -11900,7 +11900,7 @@ class Ho {
11900
11900
  updateMonthlyCashFlowProfile = async (n) => this.fetchInstance.put(`${G.MONTHLY_CASH_FLOW_PROFILE}`, n).then((i) => i.monthly_cash_flow_profile);
11901
11901
  updateRetirementGoal = async (n) => this.fetchInstance.put(`${G.RETIREMENT_GOALS}/${n.guid}`, n).then((i) => i.retirement_goal);
11902
11902
  }
11903
- function $a({ title: e, subtitle: n }) {
11903
+ function Fa({ title: e, subtitle: n }) {
11904
11904
  return /* @__PURE__ */ l(y, { children: [
11905
11905
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
11906
11906
  /* @__PURE__ */ t(p, { sx: { fontWeight: 400 }, variant: "Body", children: n })
@@ -11916,9 +11916,9 @@ function Zm(e, n) {
11916
11916
  style: "percent",
11917
11917
  minimumFractionDigits: 0,
11918
11918
  maximumFractionDigits: 0
11919
- }, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Oe(c) : /* @__PURE__ */ new Date(), _ = S(
11919
+ }, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Re(c) : /* @__PURE__ */ new Date(), _ = S(
11920
11920
  e.goal_percentage,
11921
- pa(a, s)
11921
+ Ca(a, s)
11922
11922
  ), u = S(
11923
11923
  n.is_complete ? e.completed_label : e.goal_projection,
11924
11924
  ne(d, ee.MONTH_SHORT_YEAR)
@@ -12081,7 +12081,7 @@ const Jm = (e, n) => {
12081
12081
  /* @__PURE__ */ t(p, { variant: "XSmall", children: S(
12082
12082
  n.goal_projection,
12083
12083
  ne(
12084
- Oe(f.projected_to_complete_at || 0),
12084
+ Re(f.projected_to_complete_at || 0),
12085
12085
  ee.MONTH_SHORT_YEAR
12086
12086
  )
12087
12087
  ) })
@@ -12136,7 +12136,7 @@ const Jm = (e, n) => {
12136
12136
  onPrimaryAction: m,
12137
12137
  title: n.reorder_goals_title,
12138
12138
  children: /* @__PURE__ */ l(y, { children: [
12139
- /* @__PURE__ */ t(De, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
12139
+ /* @__PURE__ */ t(Ne, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
12140
12140
  /* @__PURE__ */ t(
12141
12141
  Kn,
12142
12142
  {
@@ -12184,7 +12184,7 @@ const Jm = (e, n) => {
12184
12184
  /* @__PURE__ */ t(p, { variant: "XSmall", children: S(
12185
12185
  i.goal_projection,
12186
12186
  ne(
12187
- Oe(e.projected_to_complete_at || 0),
12187
+ Re(e.projected_to_complete_at || 0),
12188
12188
  ee.MONTH_SHORT_YEAR
12189
12189
  )
12190
12190
  ) })
@@ -12202,7 +12202,7 @@ const Jm = (e, n) => {
12202
12202
  /* @__PURE__ */ t(p, { variant: "XSmall", children: S(
12203
12203
  n.completed_label,
12204
12204
  ne(
12205
- Oe(e.completed_at || 0),
12205
+ Re(e.completed_at || 0),
12206
12206
  ee.MONTH_SHORT_YEAR
12207
12207
  )
12208
12208
  ) })
@@ -12229,7 +12229,7 @@ const Jm = (e, n) => {
12229
12229
  children: /* @__PURE__ */ l(y, { children: [
12230
12230
  /* @__PURE__ */ l(y, { m: 24, children: [
12231
12231
  /* @__PURE__ */ t(mt, { children: h }),
12232
- /* @__PURE__ */ t(De, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
12232
+ /* @__PURE__ */ t(Ne, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
12233
12233
  ] }),
12234
12234
  /* @__PURE__ */ t(tp, { trackType: e }),
12235
12235
  /* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
@@ -12265,7 +12265,7 @@ const Jm = (e, n) => {
12265
12265
  }
12266
12266
  )
12267
12267
  ] });
12268
- }, Fa = A(({ trackType: e, onAddGoals: n }) => {
12268
+ }, Wa = A(({ trackType: e, onAddGoals: n }) => {
12269
12269
  const { isMobile: i } = xe(), { goals: a } = I(), { orderedGoals: r, setSelectedGoal: o } = nt(), s = r.filter((u) => u.track_type === e), c = s.filter(
12270
12270
  (u) => u.track_type === U.SAVINGS_TRACK && !u.has_been_spent || u.track_type !== U.SAVINGS_TRACK && !u.is_complete
12271
12271
  ), d = s.filter(
@@ -12290,7 +12290,7 @@ const Jm = (e, n) => {
12290
12290
  py: 18,
12291
12291
  children: [
12292
12292
  /* @__PURE__ */ t(
12293
- De,
12293
+ Ne,
12294
12294
  {
12295
12295
  sx: (u) => ({
12296
12296
  color: "text.secondary",
@@ -12310,7 +12310,7 @@ const Jm = (e, n) => {
12310
12310
  e !== U.RETIREMENT_TRACK && /* @__PURE__ */ l(y, { gap: 16, mt: 48, children: [
12311
12311
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.complete_title }),
12312
12312
  d.length === 0 && /* @__PURE__ */ t(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(
12313
- De,
12313
+ Ne,
12314
12314
  {
12315
12315
  sx: (u) => ({
12316
12316
  color: "text.secondary",
@@ -12352,7 +12352,7 @@ const Jm = (e, n) => {
12352
12352
  }
12353
12353
  ) }),
12354
12354
  /* @__PURE__ */ t(k, { variant: "inset" }),
12355
- h && /* @__PURE__ */ t(_a, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(Y, { sx: { pl: 48 }, children: /* @__PURE__ */ l(de, { onClick: () => n(m.label, m.metaType, d), children: [
12355
+ h && /* @__PURE__ */ t(ha, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(Y, { sx: { pl: 48 }, children: /* @__PURE__ */ l(de, { onClick: () => n(m.label, m.metaType, d), children: [
12356
12356
  /* @__PURE__ */ t(pt, { sx: { mr: 8 }, children: /* @__PURE__ */ t(Rt, { name: m.icon }) }),
12357
12357
  /* @__PURE__ */ t(
12358
12358
  ae,
@@ -12384,7 +12384,7 @@ const Jm = (e, n) => {
12384
12384
  onPrimaryAction: () => a(c),
12385
12385
  title: r,
12386
12386
  children: [
12387
- /* @__PURE__ */ t(De, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: o.select_debt_accounts_description }),
12387
+ /* @__PURE__ */ t(Ne, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: o.select_debt_accounts_description }),
12388
12388
  /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.white" }, children: [
12389
12389
  /* @__PURE__ */ t(k, { variant: "fullWidth" }),
12390
12390
  e.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
@@ -12424,7 +12424,7 @@ const Jm = (e, n) => {
12424
12424
  f === U.DEBT_TRACK ? d(!0) : o({
12425
12425
  amount: 0,
12426
12426
  current_amount: 0,
12427
- goal_type: tr.SAVE_AMOUNT,
12427
+ goal_type: nr.SAVE_AMOUNT,
12428
12428
  initial_amount: 0,
12429
12429
  meta_type: C,
12430
12430
  name: m,
@@ -12437,7 +12437,7 @@ const Jm = (e, n) => {
12437
12437
  account_guid: C.guid,
12438
12438
  amount: 0,
12439
12439
  current_amount: 0,
12440
- goal_type: tr.KEEP_BALANCE_BELOW,
12440
+ goal_type: nr.KEEP_BALANCE_BELOW,
12441
12441
  initial_amount: C.balance || 0,
12442
12442
  interest_rate: C.interest_rate || 0,
12443
12443
  meta_type: f,
@@ -12659,8 +12659,8 @@ const Jm = (e, n) => {
12659
12659
  }
12660
12660
  );
12661
12661
  }, _p = A(({ goal: e }) => {
12662
- const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = nt(), [o, s] = g.useState(Oe(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
12663
- o && lr(o) && (await a({ ...i, birthday: Ne(o) }), r(n.alert_goal_updated_birthday));
12662
+ const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = nt(), [o, s] = g.useState(Re(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
12663
+ o && la(o) && (await a({ ...i, birthday: De(o) }), r(n.alert_goal_updated_birthday));
12664
12664
  };
12665
12665
  return /* @__PURE__ */ t(
12666
12666
  tn,
@@ -12670,10 +12670,10 @@ const Jm = (e, n) => {
12670
12670
  label: n.details_birthday,
12671
12671
  onSave: u,
12672
12672
  primaryText: n.details_birthday,
12673
- secondaryText: `${ne(Oe(i.birthday ?? 0), ee.MONTH_DAY_YEAR)}`,
12673
+ secondaryText: `${ne(Re(i.birthday ?? 0), ee.MONTH_DAY_YEAR)}`,
12674
12674
  zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
12675
12675
  children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
12676
- la,
12676
+ da,
12677
12677
  {
12678
12678
  label: n.details_birthday,
12679
12679
  onChange: s,
@@ -12888,7 +12888,7 @@ const Jm = (e, n) => {
12888
12888
  Le,
12889
12889
  {
12890
12890
  disabled: re,
12891
- label: /* @__PURE__ */ t($a, { subtitle: O, title: d.tab_saving_title }),
12891
+ label: /* @__PURE__ */ t(Fa, { subtitle: O, title: d.tab_saving_title }),
12892
12892
  sx: { "&.Mui-selected": { color: "primary.light" } }
12893
12893
  }
12894
12894
  ),
@@ -12896,7 +12896,7 @@ const Jm = (e, n) => {
12896
12896
  Le,
12897
12897
  {
12898
12898
  disabled: re,
12899
- label: /* @__PURE__ */ t($a, { subtitle: M, title: d.tab_debt_title }),
12899
+ label: /* @__PURE__ */ t(Fa, { subtitle: M, title: d.tab_debt_title }),
12900
12900
  sx: { "&.Mui-selected": { color: "primary.light" } }
12901
12901
  }
12902
12902
  ),
@@ -12904,7 +12904,7 @@ const Jm = (e, n) => {
12904
12904
  Le,
12905
12905
  {
12906
12906
  disabled: re,
12907
- label: /* @__PURE__ */ t($a, { subtitle: X, title: d.tab_retirement_title }),
12907
+ label: /* @__PURE__ */ t(Fa, { subtitle: X, title: d.tab_retirement_title }),
12908
12908
  sx: { "&.Mui-selected": { color: "primary.light" } }
12909
12909
  }
12910
12910
  )
@@ -12927,9 +12927,9 @@ const Jm = (e, n) => {
12927
12927
  }
12928
12928
  }
12929
12929
  ) : /* @__PURE__ */ l(j, { children: [
12930
- T === 0 && /* @__PURE__ */ t(Fa, { onAddGoals: Z, trackType: U.SAVINGS_TRACK }),
12931
- T === 1 && /* @__PURE__ */ t(Fa, { onAddGoals: Z, trackType: U.DEBT_TRACK }),
12932
- T === 2 && /* @__PURE__ */ t(Fa, { onAddGoals: Z, trackType: U.RETIREMENT_TRACK })
12930
+ T === 0 && /* @__PURE__ */ t(Wa, { onAddGoals: Z, trackType: U.SAVINGS_TRACK }),
12931
+ T === 1 && /* @__PURE__ */ t(Wa, { onAddGoals: Z, trackType: U.DEBT_TRACK }),
12932
+ T === 2 && /* @__PURE__ */ t(Wa, { onAddGoals: Z, trackType: U.RETIREMENT_TRACK })
12933
12933
  ] })
12934
12934
  ] }),
12935
12935
  /* @__PURE__ */ t(mp, { onClose: we }),
@@ -13509,7 +13509,7 @@ const Oc = 13, xp = (e, n) => e.filter((i) => {
13509
13509
  return e[e.length - 1];
13510
13510
  }, wp = (e, n) => e.year_month - n.year_month, Np = () => Array.from({ length: Oc }, (e, n) => Math.floor(He(jt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Dp = (e, n, i) => !e.length || !n.length ? [] : Np().reduceRight((r, o) => {
13511
13511
  const s = n.filter(
13512
- ({ year_month: u }) => u === parseInt(It(Oe(o), "yyyyMM"))
13512
+ ({ year_month: u }) => u === parseInt(It(Re(o), "yyyyMM"))
13513
13513
  ), c = e.map((u) => {
13514
13514
  const h = s.find((C) => C.account_guid === u.guid), m = {
13515
13515
  change: 0,
@@ -13649,7 +13649,7 @@ const Mp = ({
13649
13649
  selectedData: o
13650
13650
  }) => {
13651
13651
  const { isMobile: s } = xe(), { availableWidth: c } = $n(), d = et(), _ = c - 320, u = e.map((f) => ({
13652
- x: It(Oe(f.x), "MMM"),
13652
+ x: It(Re(f.x), "MMM"),
13653
13653
  y: f.y
13654
13654
  })), h = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, C = (f) => ({
13655
13655
  fill: f === h?.index ? d.palette.success.main : "",
@@ -13846,7 +13846,7 @@ const Mp = ({
13846
13846
  /* @__PURE__ */ t(pt, { children: a ? /* @__PURE__ */ t(B, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(B, { name: "expand_more", size: 24 }) })
13847
13847
  ] }) }),
13848
13848
  /* @__PURE__ */ t(k, {}),
13849
- /* @__PURE__ */ t(_a, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
13849
+ /* @__PURE__ */ t(ha, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
13850
13850
  /* @__PURE__ */ t(Y, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
13851
13851
  ae,
13852
13852
  {
@@ -14016,8 +14016,8 @@ const Mp = ({
14016
14016
  }, [i, a]), g.useEffect(() => {
14017
14017
  x(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
14018
14018
  }, [R]);
14019
- const re = (ct, Re) => {
14020
- b(Re), ct.currentTarget instanceof HTMLDivElement && O(!0);
14019
+ const re = (ct, Oe) => {
14020
+ b(Oe), ct.currentTarget instanceof HTMLDivElement && O(!0);
14021
14021
  }, Se = (ct) => {
14022
14022
  E(ct);
14023
14023
  }, Pe = () => {
@@ -14025,8 +14025,8 @@ const Mp = ({
14025
14025
  }, _e = () => {
14026
14026
  x(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), X(!0);
14027
14027
  }, $e = async (ct) => {
14028
- const Re = ct[0], ut = ct[1];
14029
- Re && ut && D(dd(ut, Re));
14028
+ const Oe = ct[0], ut = ct[1];
14029
+ Oe && ut && D(dd(ut, Oe));
14030
14030
  }, it = {
14031
14031
  chartData: C,
14032
14032
  hoveredData: u,
@@ -14561,7 +14561,7 @@ const l1 = ({
14561
14561
  ] }),
14562
14562
  /* @__PURE__ */ t(Hn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
14563
14563
  ] });
14564
- }, ar = ({
14564
+ }, rr = ({
14565
14565
  altImage: e,
14566
14566
  content: n,
14567
14567
  hasDivider: i = !0,
@@ -14726,7 +14726,7 @@ const l1 = ({
14726
14726
  ] }) }),
14727
14727
  i && /* @__PURE__ */ t(k, {})
14728
14728
  ] });
14729
- }, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(De, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), ge = ({ content: e, sx: n }) => /* @__PURE__ */ t(mt, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), Q = ({
14729
+ }, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(Ne, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), ge = ({ content: e, sx: n }) => /* @__PURE__ */ t(mt, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), Q = ({
14730
14730
  items: e,
14731
14731
  listType: n = "ul",
14732
14732
  subItemPlacement: i,
@@ -15450,7 +15450,7 @@ const l1 = ({
15450
15450
  }
15451
15451
  ),
15452
15452
  "why-are-some-of-my-transactions-uncategorized": /* @__PURE__ */ t(
15453
- ar,
15453
+ rr,
15454
15454
  {
15455
15455
  altImage: e,
15456
15456
  content: /* @__PURE__ */ l(g.Fragment, { children: [
@@ -16404,7 +16404,7 @@ const l1 = ({
16404
16404
  }
16405
16405
  ),
16406
16406
  /* @__PURE__ */ t(
16407
- ar,
16407
+ rr,
16408
16408
  {
16409
16409
  altImage: e.transactions_widget_overview.categorizing_transactions_alt_image,
16410
16410
  content: /* @__PURE__ */ l(g.Fragment, { children: [
@@ -16447,7 +16447,7 @@ const l1 = ({
16447
16447
  }
16448
16448
  ),
16449
16449
  /* @__PURE__ */ t(
16450
- ar,
16450
+ rr,
16451
16451
  {
16452
16452
  altImage: e.transactions_widget_overview.transaction_rules_alt_image,
16453
16453
  content: /* @__PURE__ */ l(g.Fragment, { children: [
@@ -17139,7 +17139,7 @@ const l1 = ({
17139
17139
  ]
17140
17140
  }
17141
17141
  ),
17142
- e && /* @__PURE__ */ t(De, { color: "text.secondary", sx: { px: 24 }, variant: "Small", children: e })
17142
+ e && /* @__PURE__ */ t(Ne, { color: "text.secondary", sx: { px: 24 }, variant: "Small", children: e })
17143
17143
  ] }), D1 = ({
17144
17144
  alert: e,
17145
17145
  copy: n,
@@ -17295,13 +17295,13 @@ const l1 = ({
17295
17295
  }), Xo = {
17296
17296
  institutionName: "",
17297
17297
  institutionWebsite: ""
17298
- }, Wa = {
17298
+ }, Ua = {
17299
17299
  institutionName: "",
17300
17300
  institutionLoginPage: "",
17301
17301
  institutionWebsite: ""
17302
17302
  }, L1 = A(
17303
17303
  ({ copy: e, isOpen: n, onClose: i, onSave: a }) => {
17304
- const { alert: r, isLoading: o, setAlert: s } = yr(), [c, d] = g.useState(Xo), [_, u] = g.useState(Wa), h = [
17304
+ const { alert: r, isLoading: o, setAlert: s } = yr(), [c, d] = g.useState(Xo), [_, u] = g.useState(Ua), h = [
17305
17305
  { name: "institutionName", required: !0 },
17306
17306
  { name: "institutionWebsite", required: !0 },
17307
17307
  { name: "institutionLoginPage", required: !1 }
@@ -17309,7 +17309,7 @@ const l1 = ({
17309
17309
  ...E,
17310
17310
  label: e.popular_topics_missing_institution_fields[b.toString()]
17311
17311
  })), m = () => {
17312
- d(Xo), u(Wa), i();
17312
+ d(Xo), u(Ua), i();
17313
17313
  }, C = (E) => {
17314
17314
  const {
17315
17315
  target: { name: b, value: T }
@@ -17330,7 +17330,7 @@ const l1 = ({
17330
17330
  h.forEach(({ label: T, name: x, required: w }) => {
17331
17331
  const v = _[x];
17332
17332
  w && !v && (E[x] = `${T} ${e.request_support_required_message}`, b = !1), (x === "institutionWebsite" || x === "institutionLoginPage") && v && !/(.+)\.(.{2,})/g.test(v) && (E[x] = e.request_support_valid_url_message, b = !1);
17333
- }), d(E), b && (a(_), u(Wa));
17333
+ }), d(E), b && (a(_), u(Ua));
17334
17334
  },
17335
17335
  secondaryColor: "primary",
17336
17336
  title: e.request_support,
@@ -17453,7 +17453,7 @@ const l1 = ({
17453
17453
  }, P1 = ({ copy: e, onButtonClick: n }) => {
17454
17454
  const i = B1();
17455
17455
  return /* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 5 }, children: [
17456
- /* @__PURE__ */ t(De, { color: "text.secondary", sx: i, children: e.contact_support }),
17456
+ /* @__PURE__ */ t(Ne, { color: "text.secondary", sx: i, children: e.contact_support }),
17457
17457
  /* @__PURE__ */ t(
17458
17458
  p,
17459
17459
  {
@@ -17511,7 +17511,7 @@ const l1 = ({
17511
17511
  }
17512
17512
  ),
17513
17513
  /* @__PURE__ */ t(
17514
- De,
17514
+ Ne,
17515
17515
  {
17516
17516
  color: "secondary",
17517
17517
  sx: {
@@ -17542,7 +17542,7 @@ const l1 = ({
17542
17542
  /* @__PURE__ */ t(y, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(B, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
17543
17543
  /* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
17544
17544
  /* @__PURE__ */ t(Hn, { children: e.request_support_success }),
17545
- /* @__PURE__ */ t(De, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
17545
+ /* @__PURE__ */ t(Ne, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
17546
17546
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n })
17547
17547
  ] }),
17548
17548
  /* @__PURE__ */ t(J, { fullWidth: !0, onClick: r, variant: "contained", children: o.done_button }),
@@ -17877,10 +17877,18 @@ const l1 = ({
17877
17877
  )
17878
17878
  ] });
17879
17879
  }), Y1 = () => {
17880
- const e = et(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = xe(), { config: c } = Ca(), { updateUser: d } = Bt(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [b, T] = g.useState(_.phone), [x, w] = g.useState(_.postal_code), [v, R] = g.useState(_.credit_score), [D, H] = g.useState(Oe(_.birthday ?? 0)), O = f && !_.email_is_verified, M = b && !_.phone_is_verified;
17880
+ const e = et(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = xe(), { config: c } = fa(), { updateUser: d } = Bt(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [b, T] = g.useState(_.phone), [x, w] = g.useState(_.postal_code), [v, R] = g.useState(_.credit_score), [D, H] = g.useState(
17881
+ _.birthday && _.birthday > 0 ? new Date(
17882
+ Date.UTC(
17883
+ Re(_.birthday).getUTCFullYear(),
17884
+ Re(_.birthday).getUTCMonth(),
17885
+ Re(_.birthday).getUTCDate()
17886
+ )
17887
+ ) : null
17888
+ ), O = f && !_.email_is_verified, M = b && !_.phone_is_verified;
17881
17889
  g.useEffect(() => {
17882
17890
  console.log(_);
17883
- }, []);
17891
+ });
17884
17892
  const X = async () => {
17885
17893
  const W = {
17886
17894
  ..._,
@@ -17888,7 +17896,7 @@ const l1 = ({
17888
17896
  last_name: m,
17889
17897
  email: f,
17890
17898
  phone: b,
17891
- birthday: D ? Ne(D) : null,
17899
+ birthday: D ? Date.UTC(D.getUTCFullYear(), D.getUTCMonth(), D.getUTCDate()) / 1e3 : null,
17892
17900
  postal_code: x,
17893
17901
  credit_score: v
17894
17902
  };
@@ -17908,7 +17916,7 @@ const l1 = ({
17908
17916
  },
17909
17917
  children: [
17910
17918
  /* @__PURE__ */ t(mt, { children: i.personal_details }),
17911
- /* @__PURE__ */ t(De, { variant: "Body", children: i.update_information }),
17919
+ /* @__PURE__ */ t(Ne, { variant: "Body", children: i.update_information }),
17912
17920
  /* @__PURE__ */ l(
17913
17921
  y,
17914
17922
  {
@@ -17962,10 +17970,10 @@ const l1 = ({
17962
17970
  ] }),
17963
17971
  /* @__PURE__ */ l(y, { direction: r ? "column" : "row", spacing: r ? 44 : 24, sx: { mb: 44 }, children: [
17964
17972
  /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
17965
- la,
17973
+ da,
17966
17974
  {
17967
17975
  label: i.birthdate,
17968
- onChange: H,
17976
+ onChange: (W) => H(la(W) ? W : null),
17969
17977
  slotProps: {
17970
17978
  nextIconButton: {
17971
17979
  sx: {
@@ -18055,7 +18063,7 @@ const X1 = ({
18055
18063
  field: "created_at",
18056
18064
  headerName: r.mobile_devices_column_added,
18057
18065
  renderHeader: Ut,
18058
- valueFormatter: (c) => As(Oe(c), { addSuffix: !0 }),
18066
+ valueFormatter: (c) => As(Re(c), { addSuffix: !0 }),
18059
18067
  sortable: !0,
18060
18068
  hideSortIcons: !1,
18061
18069
  flex: 1,
@@ -18159,7 +18167,7 @@ const X1 = ({
18159
18167
  children: /* @__PURE__ */ l(y, { gap: 4, children: [
18160
18168
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.name }),
18161
18169
  /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: `${d.make} ${d.model}` }),
18162
- /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: As(Oe(d.created_at), { addSuffix: !0 }) })
18170
+ /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: As(Re(d.created_at), { addSuffix: !0 }) })
18163
18171
  ] })
18164
18172
  }
18165
18173
  ),
@@ -18340,7 +18348,7 @@ const X1 = ({
18340
18348
  /* @__PURE__ */ t(p, { truncate: !1, variant: "Small", children: c.mobile_devices_access_info_2 })
18341
18349
  ] }),
18342
18350
  e === ot.Edit && /* @__PURE__ */ t(y, { children: /* @__PURE__ */ t(rt, { onChange: (x) => C(x.target.value), value: m }) }),
18343
- e === ot.Delete && /* @__PURE__ */ t(De, { children: c.mobile_devices_delete_info })
18351
+ e === ot.Delete && /* @__PURE__ */ t(Ne, { children: c.mobile_devices_delete_info })
18344
18352
  ]
18345
18353
  }
18346
18354
  );
@@ -18370,7 +18378,7 @@ const X1 = ({
18370
18378
  children: [
18371
18379
  /* @__PURE__ */ l(y, { gap: 4, children: [
18372
18380
  /* @__PURE__ */ t(mt, { children: n.mobile_devices_title }),
18373
- /* @__PURE__ */ t(De, { variant: "Body", children: n.mobile_devices_info })
18381
+ /* @__PURE__ */ t(Ne, { variant: "Body", children: n.mobile_devices_info })
18374
18382
  ] }),
18375
18383
  e ? /* @__PURE__ */ t(
18376
18384
  q1,
@@ -18389,7 +18397,7 @@ const X1 = ({
18389
18397
  ),
18390
18398
  /* @__PURE__ */ l(y, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
18391
18399
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n.mobile_devices_access_title }),
18392
- /* @__PURE__ */ t(De, { align: "center", variant: "Small", children: n.mobile_devices_access_description }),
18400
+ /* @__PURE__ */ t(Ne, { align: "center", variant: "Small", children: n.mobile_devices_access_description }),
18393
18401
  /* @__PURE__ */ t(J, { onClick: f, variant: "text", children: n.mobile_devices_access_cta })
18394
18402
  ] }),
18395
18403
  /* @__PURE__ */ t(
@@ -18431,7 +18439,7 @@ const X1 = ({
18431
18439
  }
18432
18440
  ),
18433
18441
  /* @__PURE__ */ t(
18434
- Ta,
18442
+ Aa,
18435
18443
  {
18436
18444
  initialSelected: i?.category_guid ? i.category_guid : void 0,
18437
18445
  onClose: s,
@@ -18569,7 +18577,7 @@ const X1 = ({
18569
18577
  }, []), /* @__PURE__ */ l(y, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
18570
18578
  /* @__PURE__ */ l(y, { sx: { px: r || a ? 0 : 24 }, children: [
18571
18579
  /* @__PURE__ */ t(mt, { children: e.transaction_rules_label }),
18572
- /* @__PURE__ */ t(De, { variant: "Body", children: e.transaction_rules_description })
18580
+ /* @__PURE__ */ t(Ne, { variant: "Body", children: e.transaction_rules_description })
18573
18581
  ] }),
18574
18582
  /* @__PURE__ */ t(ie, { children: i.map((o, s) => /* @__PURE__ */ t(aC, { rule: o }, s)) })
18575
18583
  ] });
@@ -18636,7 +18644,7 @@ const X1 = ({
18636
18644
  };
18637
18645
  return /* @__PURE__ */ l(y, { children: [
18638
18646
  /* @__PURE__ */ t(
18639
- Qa,
18647
+ Ja,
18640
18648
  {
18641
18649
  isChecked: n.is_enabled,
18642
18650
  onClick: () => c(!0),
@@ -18740,7 +18748,7 @@ const X1 = ({
18740
18748
  }
18741
18749
  )
18742
18750
  ] }),
18743
- /* @__PURE__ */ t(De, { sx: { color: "text.secondary", mb: 32, mx: 24, mt: 12 }, variant: "ParagraphSmall", children: `* ${i.delivery_method_sms_note_2}` })
18751
+ /* @__PURE__ */ t(Ne, { sx: { color: "text.secondary", mb: 32, mx: 24, mt: 12 }, variant: "ParagraphSmall", children: `* ${i.delivery_method_sms_note_2}` })
18744
18752
  ] }),
18745
18753
  s && n.children?.length && n.children.length > 0 && /* @__PURE__ */ l(y, { children: [
18746
18754
  /* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: "Accounts" }),
@@ -18779,7 +18787,7 @@ const X1 = ({
18779
18787
  ] }),
18780
18788
  /* @__PURE__ */ t(mt, { mb: 24, children: n.accounts_title }),
18781
18789
  a.map((m) => /* @__PURE__ */ t(
18782
- Qa,
18790
+ Ja,
18783
18791
  {
18784
18792
  isChecked: m.is_enabled,
18785
18793
  isDisabled: !m.is_enabled,
@@ -18796,7 +18804,7 @@ const X1 = ({
18796
18804
  /* @__PURE__ */ t(k, { sx: { my: 24 } }),
18797
18805
  /* @__PURE__ */ t(mt, { mb: 24, children: n.budgets_title }),
18798
18806
  r.map((m) => /* @__PURE__ */ t(
18799
- Qa,
18807
+ Ja,
18800
18808
  {
18801
18809
  isChecked: m.is_enabled,
18802
18810
  isDisabled: !m.is_enabled,
@@ -18822,7 +18830,7 @@ const X1 = ({
18822
18830
  )
18823
18831
  ] });
18824
18832
  }), IE = A(({ onBackClick: e, sx: n }) => {
18825
- const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ca(), { alert: s, setAlert: c } = Bt(), { isMobile: d } = xe(), {
18833
+ const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = fa(), { alert: s, setAlert: c } = Bt(), { isMobile: d } = xe(), {
18826
18834
  display_user_profile_in_settings: _,
18827
18835
  display_mobile_devices_in_settings: u,
18828
18836
  display_notification_settings_in_settings: h,
@@ -19109,9 +19117,9 @@ const lC = (e) => {
19109
19117
  }
19110
19118
  for (const c of n) {
19111
19119
  const d = e.transactions.find(
19112
- (_) => _.repeating_transaction_guid === e.guid && _.date > Ne(dt(c.expectedDate, 5)) && _.date < Ne(Lt(c.expectedDate, 5))
19120
+ (_) => _.repeating_transaction_guid === e.guid && _.date > De(dt(c.expectedDate, 5)) && _.date < De(Lt(c.expectedDate, 5))
19113
19121
  );
19114
- d ? (c.transaction = d, c.status = Je.Paid, c.occurredOnDate = Oe(d.date)) : Te(c.expectedDate, dt(le(), 3)) && (c.status = Je.Missed);
19122
+ d ? (c.transaction = d, c.status = Je.Paid, c.occurredOnDate = Re(d.date)) : Te(c.expectedDate, dt(le(), 3)) && (c.status = Je.Missed);
19115
19123
  }
19116
19124
  return n;
19117
19125
  }, uC = (e, n, i) => {
@@ -19153,7 +19161,7 @@ const lC = (e) => {
19153
19161
  return a;
19154
19162
  }, CC = (e, n, i) => {
19155
19163
  const a = [], r = e.expectedDate;
19156
- let o = Te(r, i) ? r : Xa(r, 1);
19164
+ let o = Te(r, i) ? r : qa(r, 1);
19157
19165
  for (; Te(o, i); )
19158
19166
  Zt(o, n) && a.push({ ...e, expectedDate: o }), o = ei(o, 1);
19159
19167
  return a;
@@ -19164,9 +19172,9 @@ const lC = (e) => {
19164
19172
  n.push(...a);
19165
19173
  }
19166
19174
  return n.sort(
19167
- (i, a) => Ne(i.occurredOnDate || i.expectedDate) - Ne(a.occurredOnDate || a.expectedDate)
19175
+ (i, a) => De(i.occurredOnDate || i.expectedDate) - De(a.occurredOnDate || a.expectedDate)
19168
19176
  );
19169
- }, Ua = (e, n, i) => {
19177
+ }, Va = (e, n, i) => {
19170
19178
  const a = [];
19171
19179
  for (const r of n) {
19172
19180
  const o = i.filter(
@@ -19188,8 +19196,8 @@ const lC = (e) => {
19188
19196
  id: `date-${a}`,
19189
19197
  recurrences: [i]
19190
19198
  }), n;
19191
- }, []), rr = (e, n, i) => {
19192
- let a = n && lr(n) ? S(e.monthly_ordinal, On(n, Ln)) : e.monthly;
19199
+ }, []), or = (e, n, i) => {
19200
+ let a = n && la(n) ? S(e.monthly_ordinal, On(n, Ln)) : e.monthly;
19193
19201
  switch (i) {
19194
19202
  case Ae.EveryQuarter:
19195
19203
  a = n ? S(e.quarterly_ordinal, On(n, Ln)) : e.quarterly;
@@ -19295,7 +19303,7 @@ class yC {
19295
19303
  try {
19296
19304
  const n = await this.api.getRepeatingTransactions();
19297
19305
  K(() => {
19298
- this.repeatingTransactions = Ua(
19306
+ this.repeatingTransactions = Va(
19299
19307
  this.globalStore.accountStore.visibleAccounts,
19300
19308
  n,
19301
19309
  this.globalStore.transactionStore.transactions
@@ -19314,7 +19322,7 @@ class yC {
19314
19322
  }), K(() => {
19315
19323
  this.repeatingTransactions = [
19316
19324
  ...this.repeatingTransactions,
19317
- ...Ua(
19325
+ ...Va(
19318
19326
  this.globalStore.accountStore.visibleAccounts,
19319
19327
  [a],
19320
19328
  this.globalStore.transactionStore.transactions
@@ -19345,7 +19353,7 @@ class yC {
19345
19353
  K(() => {
19346
19354
  this.repeatingTransactions = [
19347
19355
  ...this.repeatingTransactions.slice(0, a),
19348
- ...Ua(
19356
+ ...Va(
19349
19357
  this.globalStore.accountStore.visibleAccounts,
19350
19358
  [i],
19351
19359
  this.globalStore.transactionStore.transactions
@@ -19471,15 +19479,15 @@ class TC {
19471
19479
  }
19472
19480
  class AC {
19473
19481
  globalStore;
19474
- api = new Ga("/", "");
19482
+ api = new Pa("/", "");
19475
19483
  userFeatures = [];
19476
19484
  constructor(n) {
19477
- this.globalStore = n, this.api = new Ga(n.endpoint, n.sessionToken), Ge(this);
19485
+ this.globalStore = n, this.api = new Pa(n.endpoint, n.sessionToken), Ge(this);
19478
19486
  }
19479
19487
  // DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
19480
19488
  // TODO: Remove this function
19481
19489
  initialize = async (n, i) => {
19482
- this.api = new Ga(n, i), await this.loadUserFeatures();
19490
+ this.api = new Pa(n, i), await this.loadUserFeatures();
19483
19491
  };
19484
19492
  get userProfile() {
19485
19493
  return this.globalStore.appDataStore.userProfile;
@@ -19562,7 +19570,7 @@ class vE {
19562
19570
  ]), this.globalUiStore.setInitialized(!0);
19563
19571
  };
19564
19572
  }
19565
- const Va = ({
19573
+ const Ka = ({
19566
19574
  children: e,
19567
19575
  isLast: n = !1,
19568
19576
  onClick: i,
@@ -19593,7 +19601,7 @@ const Va = ({
19593
19601
  return /* @__PURE__ */ l(j, { children: [
19594
19602
  /* @__PURE__ */ t(wt, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
19595
19603
  /* @__PURE__ */ t(
19596
- Va,
19604
+ Ka,
19597
19605
  {
19598
19606
  onClick: () => {
19599
19607
  E({ is_hidden: !d.is_hidden }), C(F.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
@@ -19604,7 +19612,7 @@ const Va = ({
19604
19612
  }
19605
19613
  ),
19606
19614
  /* @__PURE__ */ t(
19607
- Va,
19615
+ Ka,
19608
19616
  {
19609
19617
  onClick: () => {
19610
19618
  n(!0), C(F.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
@@ -19617,7 +19625,7 @@ const Va = ({
19617
19625
  }
19618
19626
  ),
19619
19627
  m.length > 0 && /* @__PURE__ */ t(
19620
- Va,
19628
+ Ka,
19621
19629
  {
19622
19630
  isLast: !0,
19623
19631
  onClick: () => {
@@ -19830,7 +19838,7 @@ const Va = ({
19830
19838
  };
19831
19839
  default: {
19832
19840
  const a = () => {
19833
- const r = e.successfully_aggregated_at ? Oe(e.successfully_aggregated_at) : void 0, o = r && ne(r, ee.TIME_STAMP_HOUR_MINUTE);
19841
+ const r = e.successfully_aggregated_at ? Re(e.successfully_aggregated_at) : void 0, o = r && ne(r, ee.TIME_STAMP_HOUR_MINUTE);
19834
19842
  if (o)
19835
19843
  return ur(r) ? S(n.last_updated_at, n.today, o) : Dd(r) ? S(n.last_updated_at, n.yesterday, o) : S(
19836
19844
  n.last_updated_at,
@@ -19845,7 +19853,7 @@ const Va = ({
19845
19853
  };
19846
19854
  }
19847
19855
  }
19848
- }, Ka = {
19856
+ }, za = {
19849
19857
  color: "background.default",
19850
19858
  fontSize: 20,
19851
19859
  gridRow: 1,
@@ -19857,12 +19865,12 @@ const Va = ({
19857
19865
  } = he(), { selectedMember: a } = Ht(), { accounts: r, connect: o } = I(), s = kc(a, o), c = Os.includes(a.connection_status) ? {
19858
19866
  color: "error.main",
19859
19867
  ctaCopy: s.cta ?? "",
19860
- icon: /* @__PURE__ */ t(ha, { sx: { ...Ka } }),
19868
+ icon: /* @__PURE__ */ t(ga, { sx: { ...za } }),
19861
19869
  mainMessage: s.statusName,
19862
19870
  secondaryMessage: `${s.title}.`
19863
19871
  } : {
19864
19872
  color: "success.main",
19865
- icon: /* @__PURE__ */ t(wd, { sx: { ...Ka } }),
19873
+ icon: /* @__PURE__ */ t(wd, { sx: { ...za } }),
19866
19874
  mainMessage: s.statusName,
19867
19875
  secondaryMessage: s.title
19868
19876
  };
@@ -19901,7 +19909,7 @@ const Va = ({
19901
19909
  Nd,
19902
19910
  {
19903
19911
  sx: {
19904
- ...Ka,
19912
+ ...za,
19905
19913
  color: i === Vr.LIGHT ? "grey.900" : "common.white"
19906
19914
  }
19907
19915
  }
@@ -19945,7 +19953,7 @@ const Va = ({
19945
19953
  onChange: (b) => c(b.target.value),
19946
19954
  placeholder: e.placeholder,
19947
19955
  value: s,
19948
- children: e.options?.map((b) => /* @__PURE__ */ t(da, { value: b.value, children: b.label }, b.value))
19956
+ children: e.options?.map((b) => /* @__PURE__ */ t(ua, { value: b.value, children: b.label }, b.value))
19949
19957
  }
19950
19958
  )
19951
19959
  ] });
@@ -20087,7 +20095,7 @@ const Va = ({
20087
20095
  children: /* @__PURE__ */ l(
20088
20096
  xn,
20089
20097
  {
20090
- icon: /* @__PURE__ */ t(ha, {}),
20098
+ icon: /* @__PURE__ */ t(ga, {}),
20091
20099
  severity: "error",
20092
20100
  sx: {
20093
20101
  borderLeft: 5,
@@ -20100,7 +20108,7 @@ const Va = ({
20100
20108
  }
20101
20109
  },
20102
20110
  children: [
20103
- c.title && /* @__PURE__ */ t(qa, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: c.title }),
20111
+ c.title && /* @__PURE__ */ t(Za, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: c.title }),
20104
20112
  /* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: c.main }),
20105
20113
  c.cta && /* @__PURE__ */ t(
20106
20114
  vs,
@@ -20326,7 +20334,7 @@ const Va = ({
20326
20334
  )
20327
20335
  ] });
20328
20336
  }, WC = A(FC), UC = ({ onBackClick: e, sx: n = {} }) => {
20329
- const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = Ca(), { accounts: c, refreshMembers: d } = ve(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = xe(), { onEvent: E } = V();
20337
+ const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = fa(), { accounts: c, refreshMembers: d } = ve(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = xe(), { onEvent: E } = V();
20330
20338
  g.useEffect(() => {
20331
20339
  m(c);
20332
20340
  }, [c]);
@@ -21102,7 +21110,7 @@ const ZC = () => {
21102
21110
  };
21103
21111
  return /* @__PURE__ */ l(g.Fragment, { children: [
21104
21112
  /* @__PURE__ */ t(
21105
- sr,
21113
+ cr,
21106
21114
  {
21107
21115
  exclusive: !0,
21108
21116
  onChange: s,
@@ -21634,7 +21642,7 @@ const gf = ({
21634
21642
  }
21635
21643
  )
21636
21644
  ] });
21637
- }, va = ({
21645
+ }, wa = ({
21638
21646
  amount: e,
21639
21647
  categoryName: n,
21640
21648
  onAmountChanged: i
@@ -21685,7 +21693,7 @@ const gf = ({
21685
21693
  onClose: () => o(!1),
21686
21694
  onPrimaryAction: () => n(e, Number(s)),
21687
21695
  primaryText: i.add_save_button,
21688
- children: /* @__PURE__ */ t(va, { amount: s, categoryName: e.name, onAmountChanged: c })
21696
+ children: /* @__PURE__ */ t(wa, { amount: s, categoryName: e.name, onAmountChanged: c })
21689
21697
  }
21690
21698
  )
21691
21699
  ] });
@@ -21795,7 +21803,7 @@ const gf = ({
21795
21803
  onPrimaryAction: b,
21796
21804
  primaryText: i.add_save_button,
21797
21805
  children: /* @__PURE__ */ t(
21798
- va,
21806
+ wa,
21799
21807
  {
21800
21808
  amount: h,
21801
21809
  categoryName: C?.name || "",
@@ -21862,7 +21870,7 @@ const gf = ({
21862
21870
  onPrimaryAction: T,
21863
21871
  primaryText: a.edit_save_button,
21864
21872
  children: /* @__PURE__ */ t(
21865
- va,
21873
+ wa,
21866
21874
  {
21867
21875
  amount: E,
21868
21876
  categoryName: s.category.name,
@@ -22005,7 +22013,7 @@ const gf = ({
22005
22013
  onPrimaryAction: w,
22006
22014
  primaryText: n.edit_save_button,
22007
22015
  children: /* @__PURE__ */ t(
22008
- va,
22016
+ wa,
22009
22017
  {
22010
22018
  amount: T,
22011
22019
  categoryName: o.category.name,
@@ -22272,7 +22280,7 @@ const gf = ({
22272
22280
  }), Of = A(() => {
22273
22281
  const e = he(), {
22274
22282
  appDataStore: { banner: n, loadBanner: i, user: a }
22275
- } = ba();
22283
+ } = ya();
22276
22284
  return g.useEffect(() => {
22277
22285
  i().finally();
22278
22286
  }, [a]), n?.image_url ? /* @__PURE__ */ t(
@@ -22348,9 +22356,9 @@ const gf = ({
22348
22356
  )
22349
22357
  ] }) });
22350
22358
  }, Mf = A(Lf);
22351
- var or = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(or || {});
22359
+ var sr = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(sr || {});
22352
22360
  const kf = ({ widgets: e, isLoading: n }) => {
22353
- const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } = ba(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = ve();
22361
+ const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } = ya(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = ve();
22354
22362
  g.useEffect(() => {
22355
22363
  o(s);
22356
22364
  }, [s]);
@@ -22358,10 +22366,10 @@ const kf = ({ widgets: e, isLoading: n }) => {
22358
22366
  () => e.sort((u, h) => u.index - h.index),
22359
22367
  [e]
22360
22368
  ), d = g.useMemo(
22361
- () => c.filter((u) => u.location === or.Main),
22369
+ () => c.filter((u) => u.location === sr.Main),
22362
22370
  [c]
22363
22371
  ), _ = g.useMemo(
22364
- () => c.filter((u) => u.location === or.RightSide),
22372
+ () => c.filter((u) => u.location === sr.RightSide),
22365
22373
  [c]
22366
22374
  );
22367
22375
  return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
@@ -23082,7 +23090,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
23082
23090
  }
23083
23091
  )
23084
23092
  ] });
23085
- }, Hf = A(Bf), za = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), kE = A(({ onBackClick: e, sx: n }) => {
23093
+ }, Hf = A(Bf), Ya = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), kE = A(({ onBackClick: e, sx: n }) => {
23086
23094
  const { onEvent: i } = V(), { isMobile: a } = xe(), { visibleInvestmentAccounts: r } = ve(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } = js();
23087
23095
  g.useEffect(() => {
23088
23096
  c && u().finally();
@@ -23110,21 +23118,21 @@ const kf = ({ widgets: e, isLoading: n }) => {
23110
23118
  /* @__PURE__ */ t(
23111
23119
  Le,
23112
23120
  {
23113
- label: /* @__PURE__ */ t(za, { title: o.tab_overview_title }),
23121
+ label: /* @__PURE__ */ t(Ya, { title: o.tab_overview_title }),
23114
23122
  sx: { "&.Mui-selected": { color: "primary.light" } }
23115
23123
  }
23116
23124
  ),
23117
23125
  /* @__PURE__ */ t(
23118
23126
  Le,
23119
23127
  {
23120
- label: /* @__PURE__ */ t(za, { title: o.tab_allocation_title }),
23128
+ label: /* @__PURE__ */ t(Ya, { title: o.tab_allocation_title }),
23121
23129
  sx: { "&.Mui-selected": { color: "primary.light" } }
23122
23130
  }
23123
23131
  ),
23124
23132
  /* @__PURE__ */ t(
23125
23133
  Le,
23126
23134
  {
23127
- label: /* @__PURE__ */ t(za, { title: o.tab_analysis_title }),
23135
+ label: /* @__PURE__ */ t(Ya, { title: o.tab_analysis_title }),
23128
23136
  sx: { "&.Mui-selected": { color: "primary.light" } }
23129
23137
  }
23130
23138
  )
@@ -23362,7 +23370,7 @@ const Gi = g.createContext(null), zf = ({
23362
23370
  onPageview: n,
23363
23371
  store: i,
23364
23372
  children: a
23365
- }) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), wa = g.forwardRef(
23373
+ }) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), Na = g.forwardRef(
23366
23374
  function({
23367
23375
  actionText: n,
23368
23376
  ariaLabel: i,
@@ -23386,7 +23394,7 @@ const Gi = g.createContext(null), zf = ({
23386
23394
  E && E <= 325 && x(3);
23387
23395
  }, [E]);
23388
23396
  const { cardStyle: R, linkTextStyle: D } = h, H = f ? R : { border: "none", boxShadow: "none", ...R }, O = /* @__PURE__ */ t(
23389
- De,
23397
+ Ne,
23390
23398
  {
23391
23399
  className: "mx-micro-card-description",
23392
23400
  color: m.textColor ? "undefined" : "text.primary",
@@ -24431,7 +24439,7 @@ const Gi = g.createContext(null), zf = ({
24431
24439
  });
24432
24440
  };
24433
24441
  return /* @__PURE__ */ t(
24434
- wa,
24442
+ Na,
24435
24443
  {
24436
24444
  actionText: i.micro_call_to_action || E.micro_card_cta,
24437
24445
  ariaLabel: e,
@@ -24601,11 +24609,11 @@ const Gi = g.createContext(null), zf = ({
24601
24609
  w.card_position_in_carousel_aria,
24602
24610
  Pe.toString(),
24603
24611
  _e.toString()
24604
- ), it = re.micro_title && re.micro_title.length > 0, $t = re.micro_description && re.micro_description.length > 0, ct = it ? re.micro_title : re.title, Re = $t ? re.micro_description : re.description;
24612
+ ), it = re.micro_title && re.micro_title.length > 0, $t = re.micro_description && re.micro_description.length > 0, ct = it ? re.micro_title : re.title, Oe = $t ? re.micro_description : re.description;
24605
24613
  return /* @__PURE__ */ t(
24606
24614
  i0,
24607
24615
  {
24608
- ariaLabel: `${$e}: ${ct}, ${Re}`,
24616
+ ariaLabel: `${$e}: ${ct}, ${Oe}`,
24609
24617
  beat: re,
24610
24618
  index: Se,
24611
24619
  isActiveCard: Se === Z,
@@ -24778,7 +24786,7 @@ const Gi = g.createContext(null), zf = ({
24778
24786
  });
24779
24787
  };
24780
24788
  return /* @__PURE__ */ t(
24781
- wa,
24789
+ Na,
24782
24790
  {
24783
24791
  actionText: u.micro_card_cta,
24784
24792
  ariaLabel: e,
@@ -24825,7 +24833,7 @@ const Gi = g.createContext(null), zf = ({
24825
24833
  return g.useEffect(() => {
24826
24834
  _(Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
24827
24835
  }, []), /* @__PURE__ */ t(
24828
- wa,
24836
+ Na,
24829
24837
  {
24830
24838
  ariaLabel: e,
24831
24839
  description: u.carousel_zero_state_description,
@@ -24862,7 +24870,7 @@ const Gi = g.createContext(null), zf = ({
24862
24870
  justifyContent: "center",
24863
24871
  width: "100%"
24864
24872
  },
24865
- children: /* @__PURE__ */ t(cr, {})
24873
+ children: /* @__PURE__ */ t(lr, {})
24866
24874
  }
24867
24875
  ), fn = new Kf(), h0 = ({
24868
24876
  areBeatsLoading: e,
@@ -24970,7 +24978,7 @@ const Gi = g.createContext(null), zf = ({
24970
24978
  });
24971
24979
  };
24972
24980
  return /* @__PURE__ */ t(
24973
- wa,
24981
+ Na,
24974
24982
  {
24975
24983
  actionText: m.micro_card_cta,
24976
24984
  ariaLabel: n,
@@ -25197,7 +25205,7 @@ const Gi = g.createContext(null), zf = ({
25197
25205
  const { recurring: i } = I(), [a, r] = g.useState(!1), o = g.useMemo(
25198
25206
  () => n.transactions.length === 0 ? "" : n.transactions[0].category_guid || "",
25199
25207
  [n]
25200
- ), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d = rr(
25208
+ ), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d = or(
25201
25209
  i,
25202
25210
  Ri(n.predicted_occurs_on),
25203
25211
  n.recurrence_type
@@ -25293,7 +25301,7 @@ const Gi = g.createContext(null), zf = ({
25293
25301
  }) => {
25294
25302
  const { recurring: r } = I(), { searchValue: o, setSearchValue: s } = St();
25295
25303
  return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
25296
- n && /* @__PURE__ */ t(De, { sx: { mx: 24 }, children: n }),
25304
+ n && /* @__PURE__ */ t(Ne, { sx: { mx: 24 }, children: n }),
25297
25305
  /* @__PURE__ */ t(
25298
25306
  Mi,
25299
25307
  {
@@ -25329,14 +25337,14 @@ const Gi = g.createContext(null), zf = ({
25329
25337
  { id: Ae.EveryYear, label: c.frequency_every_year }
25330
25338
  ];
25331
25339
  g.useEffect(() => {
25332
- const u = Oe(s.date);
25340
+ const u = Re(s.date);
25333
25341
  o(qi(u)), r(Ae.EveryMonth);
25334
25342
  }, [s]);
25335
25343
  const _ = (u) => {
25336
- const h = Oe(s.date);
25344
+ const h = Re(s.date);
25337
25345
  switch (Number(u.target.value)) {
25338
25346
  case Ae.EveryWeek:
25339
- o(ma(h));
25347
+ o(pa(h));
25340
25348
  break;
25341
25349
  case Ae.EveryOtherWeek:
25342
25350
  o(Gs(h));
@@ -25361,8 +25369,8 @@ const Gi = g.createContext(null), zf = ({
25361
25369
  };
25362
25370
  return /* @__PURE__ */ l(y, { bgcolor: e, gap: 24, height: "100%", children: [
25363
25371
  /* @__PURE__ */ l(y, { children: [
25364
- /* @__PURE__ */ t(Ea, { bgcolor: e, children: Oi(s.date) }),
25365
- /* @__PURE__ */ t(ya, { transaction: s })
25372
+ /* @__PURE__ */ t(Sa, { bgcolor: e, children: Oi(s.date) }),
25373
+ /* @__PURE__ */ t(Ea, { transaction: s })
25366
25374
  ] }),
25367
25375
  /* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
25368
25376
  /* @__PURE__ */ t(
@@ -25379,11 +25387,11 @@ const Gi = g.createContext(null), zf = ({
25379
25387
  sx: { mx: 24 },
25380
25388
  value: n,
25381
25389
  variant: "outlined",
25382
- children: d.map((u) => /* @__PURE__ */ t(da, { value: u.id, children: u.label }, u.id))
25390
+ children: d.map((u) => /* @__PURE__ */ t(ua, { value: u.id, children: u.label }, u.id))
25383
25391
  }
25384
25392
  ),
25385
25393
  /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
25386
- la,
25394
+ da,
25387
25395
  {
25388
25396
  disablePast: !0,
25389
25397
  label: i ? c.income_date_label : c.expense_date_label,
@@ -25540,17 +25548,17 @@ const Gi = g.createContext(null), zf = ({
25540
25548
  e === 0 && /* @__PURE__ */ t(y0, {}),
25541
25549
  e === 1 && /* @__PURE__ */ t(E0, {})
25542
25550
  ] });
25543
- }), Na = {
25551
+ }), Da = {
25544
25552
  gridRow: 1,
25545
25553
  gridColumn: 1,
25546
25554
  zIndex: 2
25547
- }, Da = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Br = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(Zl, { color: "primary", filled: !0, sx: { fontSize: n, ...Na } }) }), Hr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(
25555
+ }, Ra = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Br = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(Zl, { color: "primary", filled: !0, sx: { fontSize: n, ...Da } }) }), Hr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(
25548
25556
  Ql,
25549
25557
  {
25550
25558
  filled: !0,
25551
- sx: { color: "categories.income", fontSize: n, ...Na }
25559
+ sx: { color: "categories.income", fontSize: n, ...Da }
25552
25560
  }
25553
- ) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(Es, { color: "error", filled: !0, sx: { fontSize: n, ...Na } }) }), Fr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(ra, { color: "success", filled: !0, sx: { fontSize: n, ...Na } }) }), T0 = A(
25561
+ ) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(Es, { color: "error", filled: !0, sx: { fontSize: n, ...Da } }) }), Fr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(ra, { color: "success", filled: !0, sx: { fontSize: n, ...Da } }) }), T0 = A(
25554
25562
  ({ day: e, outsideCurrentMonth: n, ...i }) => {
25555
25563
  const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { recurrences: o, setSelectedDay: s } = Pt(), d = g.useMemo(
25556
25564
  () => o.filter((f) => r.includes(f.accountGuid)),
@@ -25729,7 +25737,7 @@ const Gi = g.createContext(null), zf = ({
25729
25737
  [e]
25730
25738
  ), _ = e.type === Yt.Income, u = e.status === Je.Paid, h = e.status === Je.Missed, m = e.status === Je.Upcoming;
25731
25739
  let C = r.paid?.toLowerCase();
25732
- return h ? C = r.missed?.toLowerCase() : m && (C = a ? rr(r, e.expectedDate, e.frequency) : rr(r, null, e.frequency)), /* @__PURE__ */ l(Y, { disableGutters: !0, disablePadding: !0, children: [
25740
+ return h ? C = r.missed?.toLowerCase() : m && (C = a ? or(r, e.expectedDate, e.frequency) : or(r, null, e.frequency)), /* @__PURE__ */ l(Y, { disableGutters: !0, disablePadding: !0, children: [
25733
25741
  /* @__PURE__ */ l(de, { onClick: () => {
25734
25742
  c(!0), i(e);
25735
25743
  }, children: [
@@ -26075,7 +26083,7 @@ const Gi = g.createContext(null), zf = ({
26075
26083
  }
26076
26084
  );
26077
26085
  }
26078
- ), Ya = 5, N0 = (e, n) => n.reduce((i, a) => {
26086
+ ), ja = 5, N0 = (e, n) => n.reduce((i, a) => {
26079
26087
  if (a.total > 0) {
26080
26088
  const r = e.find((_) => _.guid === a.category_guid);
26081
26089
  if (!r) return i;
@@ -26100,14 +26108,14 @@ const Gi = g.createContext(null), zf = ({
26100
26108
  const i = N0(e, n), a = i.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, _) => _.amount - d.amount), r = a.reduce(
26101
26109
  (d, _) => d + _.amount,
26102
26110
  0
26103
- ), o = a.length > Ya ? Ya : a.length, s = a.slice(0, o), c = s.map((d) => ({
26111
+ ), o = a.length > ja ? ja : a.length, s = a.slice(0, o), c = s.map((d) => ({
26104
26112
  id: d.guid,
26105
26113
  color: d.color,
26106
26114
  label: d.name,
26107
26115
  value: d.amount / r * 100
26108
26116
  }));
26109
26117
  if (a.length > 5) {
26110
- const d = a.slice(Ya, i.length), _ = d.reduce(
26118
+ const d = a.slice(ja, i.length), _ = d.reduce(
26111
26119
  (u, h) => u + h.amount,
26112
26120
  0
26113
26121
  );
@@ -26394,7 +26402,7 @@ const Gi = g.createContext(null), zf = ({
26394
26402
  }
26395
26403
  ),
26396
26404
  /* @__PURE__ */ t(k, {}),
26397
- s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(_a, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
26405
+ s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(ha, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
26398
26406
  o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
26399
26407
  Y,
26400
26408
  {
@@ -26613,7 +26621,7 @@ const Gi = g.createContext(null), zf = ({
26613
26621
  children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(H0, {}) })
26614
26622
  }
26615
26623
  );
26616
- }, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) => ga[e];
26624
+ }, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) => ma[e];
26617
26625
  function U0(e, n) {
26618
26626
  const i = [], a = new Date(e);
26619
26627
  for (; a <= n; ) {
@@ -26652,7 +26660,7 @@ const V0 = (e) => e.reduce((i, a) => {
26652
26660
  const n = e.row[e.field];
26653
26661
  return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ue, { amount: n, variant: "Small" }) });
26654
26662
  }, j0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
26655
- const { categories: i } = I(), a = ga[e];
26663
+ const { categories: i } = I(), a = ma[e];
26656
26664
  return /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "center", children: [
26657
26665
  /* @__PURE__ */ t(
26658
26666
  L,
@@ -26803,45 +26811,45 @@ const V0 = (e) => e.reduce((i, a) => {
26803
26811
  }, [C, f, X]);
26804
26812
  const Z = g.useMemo(() => {
26805
26813
  if (!x) return { stackedDatasets: [], unstackedDatasets: [] };
26806
- const Re = K0(
26814
+ const Oe = K0(
26807
26815
  _,
26808
26816
  X.start,
26809
26817
  X.end
26810
- ), ut = O.length ? Re.filter(
26818
+ ), ut = O.length ? Oe.filter(
26811
26819
  (un) => un.top_level_category_guid === O || un.category_guid === O
26812
- ) : im(Re);
26820
+ ) : im(Oe);
26813
26821
  return {
26814
26822
  stackedDatasets: ut.filter(tm),
26815
- unstackedDatasets: ut.filter(xa)
26823
+ unstackedDatasets: ut.filter(va)
26816
26824
  };
26817
26825
  }, [_, O, X]), we = g.useMemo(() => {
26818
- const Re = ne(
26826
+ const Oe = ne(
26819
26827
  X.start,
26820
26828
  s ? ee.MONTH_SHORT_YEAR : ee.MONTH_YEAR
26821
26829
  ), ut = ne(
26822
26830
  X.end,
26823
26831
  s ? ee.MONTH_SHORT_YEAR : ee.MONTH_YEAR
26824
26832
  );
26825
- return `${Re} - ${ut}`;
26826
- }, [X, s]), re = (Re, ut) => {
26833
+ return `${Oe} - ${ut}`;
26834
+ }, [X, s]), re = (Oe, ut) => {
26827
26835
  H(ut ?? D), a(F.TRENDS_CLICK_TOGGLE);
26828
- }, Se = (Re) => {
26829
- const ut = to(Re?.[0], 1), un = Re?.[1], se = Hd(un, ut);
26836
+ }, Se = (Oe) => {
26837
+ const ut = to(Oe?.[0], 1), un = Oe?.[1], se = Hd(un, ut);
26830
26838
  W({ start: ut, end: un }), a(F.TRENDS_CLICK_DATE, {
26831
26839
  time_period: se + "M"
26832
26840
  });
26833
26841
  }, Pe = () => {
26834
26842
  a(F.TRENDS_CLICK_FILTER);
26835
- }, _e = (Re) => {
26836
- M(Re);
26837
- }, $e = (Re) => {
26838
- M(Re), a(F.TRENDS_CLICK_LEGEND, { category: u(Re) });
26839
- }, it = (Re) => {
26840
- a(F.TRENDS_HOVER_LEGEND, { category: u(Re) });
26841
- }, $t = (Re) => {
26842
- a(F.TRENDS_HOVER_AREA, { category: Re });
26843
- }, ct = (Re) => {
26844
- a(F.TRENDS_HOVER_POINT, { category: Re });
26843
+ }, _e = (Oe) => {
26844
+ M(Oe);
26845
+ }, $e = (Oe) => {
26846
+ M(Oe), a(F.TRENDS_CLICK_LEGEND, { category: u(Oe) });
26847
+ }, it = (Oe) => {
26848
+ a(F.TRENDS_HOVER_LEGEND, { category: u(Oe) });
26849
+ }, $t = (Oe) => {
26850
+ a(F.TRENDS_HOVER_AREA, { category: Oe });
26851
+ }, ct = (Oe) => {
26852
+ a(F.TRENDS_HOVER_POINT, { category: Oe });
26845
26853
  };
26846
26854
  return !m || !C || !x ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
26847
26855
  Nt,
@@ -26888,13 +26896,13 @@ const V0 = (e) => e.reduce((i, a) => {
26888
26896
  /* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: we })
26889
26897
  ] }),
26890
26898
  /* @__PURE__ */ t(
26891
- sr,
26899
+ cr,
26892
26900
  {
26893
26901
  exclusive: !0,
26894
26902
  onChange: re,
26895
26903
  orientation: "horizontal",
26896
26904
  value: D,
26897
- children: ["Chart", "Table"].map((Re) => /* @__PURE__ */ t(
26905
+ children: ["Chart", "Table"].map((Oe) => /* @__PURE__ */ t(
26898
26906
  aa,
26899
26907
  {
26900
26908
  sx: {
@@ -26919,10 +26927,10 @@ const V0 = (e) => e.reduce((i, a) => {
26919
26927
  color: i.palette.grey[500]
26920
26928
  }
26921
26929
  },
26922
- value: Re,
26923
- children: Re === "Chart" ? /* @__PURE__ */ t(B, { name: "table_chart_view" }) : /* @__PURE__ */ t(B, { name: "format_list_bulleted" })
26930
+ value: Oe,
26931
+ children: Oe === "Chart" ? /* @__PURE__ */ t(B, { name: "table_chart_view" }) : /* @__PURE__ */ t(B, { name: "format_list_bulleted" })
26924
26932
  },
26925
- Re
26933
+ Oe
26926
26934
  ))
26927
26935
  }
26928
26936
  )
@@ -26990,7 +26998,7 @@ const V0 = (e) => e.reduce((i, a) => {
26990
26998
  }
26991
26999
  );
26992
27000
  }, ab = A(ib), rb = ({ onPrimaryCtaClick: e, sx: n }) => {
26993
- const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } = ba(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
27001
+ const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } = ya(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
26994
27002
  return g.useEffect(() => {
26995
27003
  r && i(c).finally();
26996
27004
  }, [r, c]), s ? /* @__PURE__ */ t(
@@ -27043,12 +27051,12 @@ export {
27043
27051
  fE as CashflowWidget,
27044
27052
  oo as CategoryApi,
27045
27053
  kn as CategoryColors,
27046
- ga as CategoryGuidToName,
27054
+ ma as CategoryGuidToName,
27047
27055
  N as CategoryGuids,
27048
27056
  Kd as CategoryIcon,
27049
27057
  ic as CategoryRow,
27050
27058
  J_ as CategorySelector,
27051
- Ta as CategorySelectorDrawer,
27059
+ Aa as CategorySelectorDrawer,
27052
27060
  ah as CategoryStore,
27053
27061
  Zf as ChartFilledIcon,
27054
27062
  Js as ConnectCard,
@@ -27063,7 +27071,7 @@ export {
27063
27071
  Ms as DEFAULT_DONUT_SIZE,
27064
27072
  ks as DEFAULT_STROKE_WIDTH,
27065
27073
  ME as Dashboard,
27066
- or as DashboardLocation,
27074
+ sr as DashboardLocation,
27067
27075
  Bn as DataRow,
27068
27076
  go as DateRangeSelector,
27069
27077
  Ic as DebtsChart,
@@ -27087,7 +27095,7 @@ export {
27087
27095
  vE as GlobalStore,
27088
27096
  Ho as GoalApi,
27089
27097
  pp as GoalStore,
27090
- tr as GoalType,
27098
+ nr as GoalType,
27091
27099
  EE as GoalsWidget,
27092
27100
  x1 as HelpContent,
27093
27101
  v1 as HelpList,
@@ -27112,7 +27120,7 @@ export {
27112
27120
  At as MetaType,
27113
27121
  Ds as MfaStatuses,
27114
27122
  s0 as MicroBeatCarousel,
27115
- wa as MicroInsightCard,
27123
+ Na as MicroInsightCard,
27116
27124
  Dn as MiniWidgetContainer,
27117
27125
  e0 as MonthlySpendComparisonIcon,
27118
27126
  dE as MultiSegmentDonut,
@@ -27170,14 +27178,14 @@ export {
27170
27178
  hn as TOUCH_TARGET,
27171
27179
  z as TRANSACTION_EVENTS,
27172
27180
  ri as TabContentContainer,
27173
- Qa as ToggleButtonListItem,
27181
+ Ja as ToggleButtonListItem,
27174
27182
  Jn as ToggleListItem,
27175
27183
  gi as TopActions,
27176
27184
  U as TrackType,
27177
27185
  Ji as TransactionApi,
27178
27186
  Yn as TransactionDetails,
27179
27187
  mn as TransactionList,
27180
- ya as TransactionRow,
27188
+ Ea as TransactionRow,
27181
27189
  rC as TransactionRulesTab,
27182
27190
  Sr as TransactionStatus,
27183
27191
  f_ as TransactionStore,
@@ -27186,7 +27194,7 @@ export {
27186
27194
  mE as TransactionWidget,
27187
27195
  UE as TrendsFullWidget,
27188
27196
  VE as TrendsMiniWidget,
27189
- Ga as UserApi,
27197
+ Pa as UserApi,
27190
27198
  AC as UserStore,
27191
27199
  h_ as UserVerification,
27192
27200
  m0 as ViewMoreMicroCard,
@@ -27203,7 +27211,7 @@ export {
27203
27211
  P as formatCurrency,
27204
27212
  ne as formatDate,
27205
27213
  Fs as formatOrdinal,
27206
- pa as formatPercentage,
27214
+ Ca as formatPercentage,
27207
27215
  $s as fromTimestampToMonthYear,
27208
27216
  yc as getAccountBalanceDetails,
27209
27217
  vg as getAccountDetailFields,
@@ -27216,21 +27224,21 @@ export {
27216
27224
  Pn as getLocale,
27217
27225
  AE as getNotificationDetailRoute,
27218
27226
  nE as isIncome,
27219
- Za as isValidNumber,
27227
+ Qa as isValidNumber,
27220
27228
  ve as useAccountStore,
27221
27229
  Ht as useAccountUiStore,
27222
- Ca as useAppConfig,
27230
+ fa as useAppConfig,
27223
27231
  st as useBudgetsStore,
27224
27232
  br as useCashflowStore,
27225
27233
  We as useCategoryStore,
27226
27234
  pn as useCategoryUiStore,
27227
27235
  iu as useCombineEvents,
27228
27236
  au as useCombinePageviews,
27229
- fa as useDebtStore,
27237
+ ba as useDebtStore,
27230
27238
  V as useEvent,
27231
27239
  IC as useGetMergeableAccounts,
27232
27240
  I as useGlobalCopyStore,
27233
- ba as useGlobalStore,
27241
+ ya as useGlobalStore,
27234
27242
  ce as useGlobalUiStore,
27235
27243
  nt as useGoalStore,
27236
27244
  yr as useHelpStore,