@mx-cartographer/experiences 4.1.2-alpha.mega3 → 4.1.2-alpha.mega4

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
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as l, Fragment as Q } from "react/jsx-runtime";
2
- import g, { useMemo as zo, useRef as ri, useEffect as wA, useState as yA, createContext as Ko, useContext as qo } from "react";
2
+ import g, { useMemo as zo, useRef as ri, useEffect as xA, useState as EA, createContext as Ko, useContext as qo } from "react";
3
3
  import { observer as T } from "mobx-react-lite";
4
4
  import N from "@mui/material/Box";
5
5
  import H from "@mui/material/Divider";
@@ -42,7 +42,7 @@ import { endOfMonth as Re } from "date-fns/endOfMonth";
42
42
  import { format as Ye } from "date-fns/format";
43
43
  import { isSameMonth as $o } from "date-fns/isSameMonth";
44
44
  import { startOfMonth as xe } from "date-fns/startOfMonth";
45
- import { subMonths as EA } from "date-fns/subMonths";
45
+ import { subMonths as bA } from "date-fns/subMonths";
46
46
  import gA from "@mui/material/Paper";
47
47
  import es from "@mui/icons-material/KeyboardArrowLeftRounded";
48
48
  import As from "@mui/icons-material/KeyboardArrowRightRounded";
@@ -52,9 +52,9 @@ import * as tA from "d3";
52
52
  import { selectAll as ts, interpolateString as ns, arc as as } from "d3";
53
53
  import { useTheme as cA, keyframes as rs, ThemeProvider as is } from "@mui/material/styles";
54
54
  import { ResponsiveChartContainer as os, AreaPlot as ss, LinePlot as cs, MarkPlot as ls, BarPlot as ds, ChartsXAxis as us, ChartsYAxis as hs, ChartsReferenceLine as gs, ChartsLegend as ms, LineChart as oi } from "@mui/x-charts";
55
- import { Stack as de, Box as vA, useTheme as GA, Card as Cn, CardContent as Cs, Button as ps, List as fs, Divider as vs } from "@mui/material";
56
- import pA from "@mui/material/Card";
57
- import LA from "@mui/material/CardContent";
55
+ import { Stack as de, Box as yA, useTheme as GA, Card as Cn, CardContent as Cs, Button as ps, List as fs, Divider as vs } from "@mui/material";
56
+ import fA from "@mui/material/Card";
57
+ import IA from "@mui/material/CardContent";
58
58
  import QA from "@mui/material/Grid";
59
59
  import { differenceInCalendarDays as ys } from "date-fns/differenceInCalendarDays";
60
60
  import { endOfToday as ot } from "date-fns/endOfToday";
@@ -76,10 +76,10 @@ import ra from "@mui/material/CircularProgress";
76
76
  import { v4 as Is } from "uuid";
77
77
  import an from "@mui/material/InputAdornment";
78
78
  import Ls from "@mui/material/Radio";
79
- import fA from "@mui/material/Avatar";
79
+ import vA from "@mui/material/Avatar";
80
80
  import be from "@mui/material/ListItemAvatar";
81
81
  import nA from "@mui/material/ListItemIcon";
82
- import { ChevronRight as bA, Payments as Ds, NoteStack as xs, Person as Os, CheckCircle as _s, Icon as Wa, ExpandLess as Ns, ExpandMore as Ps, AccountBalance as Ms, AddBox as li } from "@mxenabled/mx-icons";
82
+ import { ChevronRight as wA, Payments as Ds, NoteStack as xs, Person as Os, CheckCircle as _s, Icon as Wa, ExpandLess as Ns, ExpandMore as Ps, AccountBalance as Ms, AddBox as li } from "@mxenabled/mx-icons";
83
83
  import { makeAutoObservable as De, runInAction as Y, reaction as Rs, observable as Hs } from "mobx";
84
84
  import { differenceInDays as Bs } from "date-fns/differenceInDays";
85
85
  import pn from "@mui/icons-material/ChevronRight";
@@ -1294,7 +1294,7 @@ const Wc = (e, A) => {
1294
1294
  isTablet: $t(fe().breakpoints.between("md", "xl"))
1295
1295
  }), Oi = (e) => {
1296
1296
  const A = ri();
1297
- return wA(() => {
1297
+ return xA(() => {
1298
1298
  A.current = e;
1299
1299
  }, [e]), A.current;
1300
1300
  }, _i = ({
@@ -1763,7 +1763,7 @@ const ll = ({
1763
1763
  }, I = () => {
1764
1764
  d(oA(c, 1));
1765
1765
  }, S = () => {
1766
- d(EA(c, 1));
1766
+ d(bA(c, 1));
1767
1767
  };
1768
1768
  return /* @__PURE__ */ t("div", { className: `mx-cmn-calendar ${s}`, children: /* @__PURE__ */ l(gA, { sx: { boxShadow: "none" }, children: [
1769
1769
  /* @__PURE__ */ t(
@@ -1940,7 +1940,7 @@ const ll = ({
1940
1940
  return /* @__PURE__ */ l(de, { style: { flexDirection: "row", gap: 25, ...n }, children: [
1941
1941
  e.map((r, i) => /* @__PURE__ */ l(de, { style: { alignItems: "center", flexDirection: "row" }, children: [
1942
1942
  /* @__PURE__ */ t(
1943
- vA,
1943
+ yA,
1944
1944
  {
1945
1945
  sx: {
1946
1946
  width: 10,
@@ -2162,8 +2162,8 @@ const ll = ({
2162
2162
  cursorPosition: a,
2163
2163
  chartContainerRef: r
2164
2164
  }) => {
2165
- const i = cA(), o = ri(null), [s, c] = yA({ x: a.x, y: a.y });
2166
- if (wA(() => {
2165
+ const i = cA(), o = ri(null), [s, c] = EA({ x: a.x, y: a.y });
2166
+ if (xA(() => {
2167
2167
  (() => {
2168
2168
  const h = o.current, m = r.current;
2169
2169
  if (!h || !m) return;
@@ -2174,7 +2174,7 @@ const ll = ({
2174
2174
  }, [a, r]), !n) return null;
2175
2175
  const d = n.reduce((u, h) => u + h.y, 0);
2176
2176
  return /* @__PURE__ */ t(
2177
- pA,
2177
+ fA,
2178
2178
  {
2179
2179
  ref: o,
2180
2180
  sx: {
@@ -2184,7 +2184,7 @@ const ll = ({
2184
2184
  width: 250,
2185
2185
  pointerEvents: "none"
2186
2186
  },
2187
- children: /* @__PURE__ */ l(LA, { children: [
2187
+ children: /* @__PURE__ */ l(IA, { children: [
2188
2188
  /* @__PURE__ */ l(N, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2189
2189
  /* @__PURE__ */ t(zi, { categoryGuid: e, topLevelCategoryGuid: A }),
2190
2190
  /* @__PURE__ */ t(p, { variant: "Small", children: `${n.length}-month total` }),
@@ -2216,7 +2216,7 @@ const ll = ({
2216
2216
  xData: r
2217
2217
  }) => {
2218
2218
  const i = GA(), o = a.data[n], s = r[n];
2219
- return o === void 0 || !s ? null : /* @__PURE__ */ t(Cn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Cs, { children: /* @__PURE__ */ l(vA, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2219
+ return o === void 0 || !s ? null : /* @__PURE__ */ t(Cn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Cs, { children: /* @__PURE__ */ l(yA, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2220
2220
  /* @__PURE__ */ t(zi, { categoryGuid: e, topLevelCategoryGuid: A }),
2221
2221
  /* @__PURE__ */ t(p, { color: i.palette.text.secondary, variant: "Small", children: ne(s, Z.MONTH_SHORT_YEAR) }),
2222
2222
  /* @__PURE__ */ t(Ie, { amount: String(o), bold: !0, formatString: "0,0", variant: "Body" })
@@ -2323,7 +2323,7 @@ const ll = ({
2323
2323
  guid: Pe?.category_guid,
2324
2324
  topLevelGuid: Pe?.top_level_category_guid
2325
2325
  };
2326
- }, xA = (U) => {
2326
+ }, DA = (U) => {
2327
2327
  m(U), n?.(U ?? "");
2328
2328
  }, at = (U) => {
2329
2329
  a?.(U ?? "");
@@ -2448,7 +2448,7 @@ const ll = ({
2448
2448
  categoryGuids: we,
2449
2449
  hoveredLegend: h,
2450
2450
  onClickLegend: at,
2451
- onHoverLegend: xA,
2451
+ onHoverLegend: DA,
2452
2452
  sx: { px: d ? 0 : 24 }
2453
2453
  }
2454
2454
  ),
@@ -2681,11 +2681,11 @@ const ll = ({
2681
2681
  }, [_]);
2682
2682
  const z = () => {
2683
2683
  const V = Re(ot());
2684
- return [Re(EA(V, _)), V];
2684
+ return [Re(bA(V, _)), V];
2685
2685
  }, K = (V) => {
2686
2686
  const te = [...h], ue = h[0], Ce = h[1], he = V === "previous";
2687
2687
  if (C === n.dateRangePickerCopy.dateRangeThisMonth)
2688
- te[0] = he ? EA(ue, 1) : oA(ue, 1), te[1] = Re(he ? EA(Ce, 1) : oA(Ce, 1));
2688
+ te[0] = he ? bA(ue, 1) : oA(ue, 1), te[1] = Re(he ? bA(Ce, 1) : oA(Ce, 1));
2689
2689
  else if (C === n.dateRangePickerCopy.dateRangeYTD || C === n.dateRangePickerCopy.dateRangeLastYear)
2690
2690
  te[0] = he ? Qa(Ua(ue), 1) : Kt(Ua(ue), 1), te[1] = he ? Qa(ja(ue), 1) : Kt(ja(ue), 1);
2691
2691
  else {
@@ -3064,7 +3064,7 @@ const lt = ({
3064
3064
  title: o = ""
3065
3065
  }) => {
3066
3066
  const [s, { height: c, width: d }] = qi();
3067
- return /* @__PURE__ */ l(pA, { className: e, sx: { borderRadius: "8px", ...i }, children: [
3067
+ return /* @__PURE__ */ l(fA, { className: e, sx: { borderRadius: "8px", ...i }, children: [
3068
3068
  /* @__PURE__ */ t(
3069
3069
  FA,
3070
3070
  {
@@ -3082,7 +3082,7 @@ const lt = ({
3082
3082
  title: o ? /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: o }) : null
3083
3083
  }
3084
3084
  ),
3085
- /* @__PURE__ */ t(LA, { ref: s, sx: { p: 0 }, children: /* @__PURE__ */ t(Mi, { availableHeight: c, availableWidth: d, children: A }) })
3085
+ /* @__PURE__ */ t(IA, { ref: s, sx: { p: 0 }, children: /* @__PURE__ */ t(Mi, { availableHeight: c, availableWidth: d, children: A }) })
3086
3086
  ] });
3087
3087
  }, Nl = ({
3088
3088
  accountOptions: e,
@@ -3135,7 +3135,7 @@ const lt = ({
3135
3135
  dateRangePreviousAria: x.date_range_picker.previous_aria
3136
3136
  }, F = r ? r.start : D.start, V = r ? r.end : D.end;
3137
3137
  return /* @__PURE__ */ l(
3138
- pA,
3138
+ fA,
3139
3139
  {
3140
3140
  className: o,
3141
3141
  sx: {
@@ -3239,11 +3239,11 @@ const lt = ({
3239
3239
  }
3240
3240
  )
3241
3241
  ] }),
3242
- /* @__PURE__ */ t(LA, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(Mi, { availableHeight: f, availableWidth: v, children: a }) })
3242
+ /* @__PURE__ */ t(IA, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(Mi, { availableHeight: f, availableWidth: v, children: a }) })
3243
3243
  ]
3244
3244
  }
3245
3245
  );
3246
- }, IA = T(Nl), Pl = ({ status: e = YA.Loading }) => {
3246
+ }, pA = T(Nl), Pl = ({ status: e = YA.Loading }) => {
3247
3247
  const { connect: A } = L();
3248
3248
  return /* @__PURE__ */ t(
3249
3249
  N,
@@ -3545,7 +3545,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
3545
3545
  }
3546
3546
  ), dn = ({ iconName: e, label: A, onClick: n, value: a }) => {
3547
3547
  const r = /* @__PURE__ */ l(Q, { children: [
3548
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: e, sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
3548
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: e, sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
3549
3549
  /* @__PURE__ */ t(
3550
3550
  J,
3551
3551
  {
@@ -3592,7 +3592,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
3592
3592
  }
3593
3593
  )
3594
3594
  }
3595
- ), DA = T(
3595
+ ), LA = T(
3596
3596
  ({
3597
3597
  children: e,
3598
3598
  isDisabled: A = !1,
@@ -3630,7 +3630,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
3630
3630
  primaryTypographyProps: { variant: "Body" }
3631
3631
  }
3632
3632
  ),
3633
- !A && !c && /* @__PURE__ */ t(bA, {})
3633
+ !A && !c && /* @__PURE__ */ t(wA, {})
3634
3634
  ] }),
3635
3635
  /* @__PURE__ */ t(
3636
3636
  Oe,
@@ -5521,7 +5521,7 @@ const Dd = ({
5521
5521
  }, Lr = (e) => {
5522
5522
  const A = [], n = ie();
5523
5523
  for (let a = 0; a <= Tr; a++) {
5524
- const r = xe(EA(n, Tr - a)), o = e.filter(
5524
+ const r = xe(bA(n, Tr - a)), o = e.filter(
5525
5525
  (s) => s.year_month === Number(Ye(r, "yyyyMM"))
5526
5526
  ).reduce((s, c) => s + c.total, 0);
5527
5527
  A.push({
@@ -5624,7 +5624,7 @@ class Yd {
5624
5624
  }
5625
5625
  };
5626
5626
  loadMonthlyCategoryTotals = async (A = this.globalStore.accountStore.accounts, n, a) => {
5627
- const r = pe(xe(n ?? EA(/* @__PURE__ */ new Date(), 11))), i = pe(Re(a ?? /* @__PURE__ */ new Date()));
5627
+ const r = pe(xe(n ?? bA(/* @__PURE__ */ new Date(), 11))), i = pe(Re(a ?? /* @__PURE__ */ new Date()));
5628
5628
  try {
5629
5629
  const o = await this.api.getMonthlyCategoryTotals(r, i, A);
5630
5630
  Y(() => {
@@ -5642,7 +5642,7 @@ class Yd {
5642
5642
  pe(a),
5643
5643
  A
5644
5644
  ), i = await this.api.getMonthlyCategoryTotals(
5645
- pe(xe(EA(a, 11))),
5645
+ pe(xe(bA(a, 11))),
5646
5646
  pe(Re(a)),
5647
5647
  A
5648
5648
  );
@@ -5704,7 +5704,7 @@ const Ui = ({ transaction: e }) => {
5704
5704
  r(k.ON_TRANSACTION_CATEGORY_CLICK), d(!0);
5705
5705
  },
5706
5706
  children: [
5707
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
5707
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
5708
5708
  sA,
5709
5709
  {
5710
5710
  categoryGuid: e.top_level_category_guid,
@@ -5776,7 +5776,7 @@ const Ui = ({ transaction: e }) => {
5776
5776
  n(k.ON_TRANSACTION_DATE_CLICK), c(!0);
5777
5777
  },
5778
5778
  children: [
5779
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "calendar_month", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
5779
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "calendar_month", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
5780
5780
  /* @__PURE__ */ t(
5781
5781
  J,
5782
5782
  {
@@ -5827,7 +5827,7 @@ const Ui = ({ transaction: e }) => {
5827
5827
  A(k.ON_TRANSACTION_DELETE_CLICK), a(!0), s(!0);
5828
5828
  },
5829
5829
  children: [
5830
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { variant: "rounded", children: /* @__PURE__ */ t(Gt, { color: "secondary", fontSize: "small" }) }) }),
5830
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { variant: "rounded", children: /* @__PURE__ */ t(Gt, { color: "secondary", fontSize: "small" }) }) }),
5831
5831
  /* @__PURE__ */ t(
5832
5832
  J,
5833
5833
  {
@@ -5869,7 +5869,7 @@ const Ui = ({ transaction: e }) => {
5869
5869
  A(k.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
5870
5870
  },
5871
5871
  children: [
5872
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "delete", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
5872
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "delete", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
5873
5873
  /* @__PURE__ */ t(J, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
5874
5874
  /* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(B, { name: "chevron_right", weight: Qe.Dark }) })
5875
5875
  ]
@@ -5918,7 +5918,7 @@ const Ui = ({ transaction: e }) => {
5918
5918
  },
5919
5919
  role: "switch",
5920
5920
  children: [
5921
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: c ? /* @__PURE__ */ t(
5921
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: c ? /* @__PURE__ */ t(
5922
5922
  B,
5923
5923
  {
5924
5924
  name: "visibilityOff",
@@ -6004,7 +6004,7 @@ const Ui = ({ transaction: e }) => {
6004
6004
  A(k.ON_TRANSACTION_MEMO_CLICK), s(!0);
6005
6005
  },
6006
6006
  children: [
6007
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "article", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
6007
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "article", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
6008
6008
  /* @__PURE__ */ t(
6009
6009
  J,
6010
6010
  {
@@ -6268,7 +6268,7 @@ const Ui = ({ transaction: e }) => {
6268
6268
  }, [f]);
6269
6269
  return /* @__PURE__ */ l(g.Fragment, { children: [
6270
6270
  e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ae, { onClick: D, children: [
6271
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "call_split", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
6271
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "call_split", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
6272
6272
  /* @__PURE__ */ t(
6273
6273
  J,
6274
6274
  {
@@ -6553,7 +6553,7 @@ const Ui = ({ transaction: e }) => {
6553
6553
  A(k.ON_TRANSACTION_TAGS_CLICK), d(!0);
6554
6554
  },
6555
6555
  children: [
6556
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "local_offer", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
6556
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "local_offer", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
6557
6557
  /* @__PURE__ */ t(
6558
6558
  J,
6559
6559
  {
@@ -6909,7 +6909,7 @@ const Ui = ({ transaction: e }) => {
6909
6909
  selectedAccounts: F,
6910
6910
  setDisplayedDate: V,
6911
6911
  setSelectedAccounts: te
6912
- } = ye(), [ue, Ce] = g.useState(""), [he, we] = g.useState(""), [iA, xA] = g.useState(!1), [at, Se] = g.useState(!1), [Je, PA] = g.useState(!1);
6912
+ } = ye(), [ue, Ce] = g.useState(""), [he, we] = g.useState(""), [iA, DA] = g.useState(!1), [at, Se] = g.useState(!1), [Je, PA] = g.useState(!1);
6913
6913
  g.useEffect(() => {
6914
6914
  te(r);
6915
6915
  }, [r]), g.useEffect(() => {
@@ -6947,16 +6947,16 @@ const Ui = ({ transaction: e }) => {
6947
6947
  }), Ce(
6948
6948
  "addTransaction"
6949
6949
  /* AddTransaction */
6950
- ), x(G.TRANSACTIONS_CLICK_ADD)) : (xA(!0), x(G.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
6950
+ ), x(G.TRANSACTIONS_CLICK_ADD)) : (DA(!0), x(G.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
6951
6951
  }, Dt = async () => {
6952
6952
  Ee && await C(s), Ce("");
6953
6953
  }, Mn = () => {
6954
- xA(!1), Se(!0);
6954
+ DA(!1), Se(!0);
6955
6955
  }, Rn = () => {
6956
6956
  Se(!1), i();
6957
6957
  };
6958
6958
  return !K || !Je ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
6959
- IA,
6959
+ pA,
6960
6960
  {
6961
6961
  accountOptions: r,
6962
6962
  actions: [
@@ -7075,7 +7075,7 @@ const Ui = ({ transaction: e }) => {
7075
7075
  copy: { title: _.add_manual_account },
7076
7076
  isOpen: iA,
7077
7077
  onClose: () => {
7078
- xA(!1);
7078
+ DA(!1);
7079
7079
  },
7080
7080
  onPrimaryAction: Mn
7081
7081
  }
@@ -8332,7 +8332,7 @@ const Ui = ({ transaction: e }) => {
8332
8332
  }, [r, i]);
8333
8333
  const [u, h] = g.useState(!1);
8334
8334
  return /* @__PURE__ */ l(
8335
- IA,
8335
+ pA,
8336
8336
  {
8337
8337
  accountOptions: n,
8338
8338
  actions: [
@@ -9407,7 +9407,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9407
9407
  transform: rotate(360deg);
9408
9408
  }
9409
9409
  `, Kh = () => {
9410
- const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } = ya(), { isDirty: o } = Tt(), { isMobile: s } = Be(), { setDisplayedDate: c } = ye(), { filter: d, setFilter: u, transactions: h } = ge(), m = fe(), [C, f] = yA(!0), [v, E] = g.useState(X.EveryMonth), [I, S] = yA(!1), [w, D] = g.useState(null), [_, O] = yA(1), [x, z] = yA([]), [K, q] = yA(""), F = g.useMemo(
9410
+ const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } = ya(), { isDirty: o } = Tt(), { isMobile: s } = Be(), { setDisplayedDate: c } = ye(), { filter: d, setFilter: u, transactions: h } = ge(), m = fe(), [C, f] = EA(!0), [v, E] = g.useState(X.EveryMonth), [I, S] = EA(!1), [w, D] = g.useState(null), [_, O] = EA(1), [x, z] = EA([]), [K, q] = EA(""), F = g.useMemo(
9411
9411
  () => h.find((he) => he.guid === K),
9412
9412
  [K]
9413
9413
  ), V = !!n.length, te = async () => {
@@ -9424,9 +9424,9 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9424
9424
  we,
9425
9425
  we.frequency,
9426
9426
  we.nextDate
9427
- ), xA = await A(iA);
9428
- if (xA) {
9429
- const at = eo(xA, we);
9427
+ ), DA = await A(iA);
9428
+ if (DA) {
9429
+ const at = eo(DA, we);
9430
9430
  await e(at);
9431
9431
  }
9432
9432
  }
@@ -9589,7 +9589,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9589
9589
  );
9590
9590
  m(I), d({ accounts: I.map((S) => S.guid) });
9591
9591
  }, [c, n]), u?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
9592
- IA,
9592
+ pA,
9593
9593
  {
9594
9594
  accountOptions: c,
9595
9595
  actions: [
@@ -9631,7 +9631,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9631
9631
  ]
9632
9632
  }
9633
9633
  ) : /* @__PURE__ */ t(
9634
- IA,
9634
+ pA,
9635
9635
  {
9636
9636
  onBackClick: e,
9637
9637
  sx: { height: "100%", overflow: "auto" },
@@ -9854,7 +9854,7 @@ const tn = {
9854
9854
  /* @__PURE__ */ l(de, { bgcolor: a.palette.background.paper, mb: 24, children: [
9855
9855
  /* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
9856
9856
  /* @__PURE__ */ t(
9857
- vA,
9857
+ yA,
9858
9858
  {
9859
9859
  sx: {
9860
9860
  display: "flex",
@@ -9907,7 +9907,7 @@ const tn = {
9907
9907
  ] }),
9908
9908
  /* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
9909
9909
  /* @__PURE__ */ t(
9910
- vA,
9910
+ yA,
9911
9911
  {
9912
9912
  sx: {
9913
9913
  width: 20,
@@ -9937,7 +9937,7 @@ const tn = {
9937
9937
  ] }),
9938
9938
  /* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
9939
9939
  /* @__PURE__ */ t(
9940
- vA,
9940
+ yA,
9941
9941
  {
9942
9942
  sx: {
9943
9943
  width: 20,
@@ -9978,7 +9978,7 @@ const tn = {
9978
9978
  /* @__PURE__ */ l(de, { bgcolor: a.palette.background.paper, mb: 24, children: [
9979
9979
  /* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
9980
9980
  /* @__PURE__ */ t(
9981
- vA,
9981
+ yA,
9982
9982
  {
9983
9983
  sx: {
9984
9984
  display: "flex",
@@ -10031,7 +10031,7 @@ const tn = {
10031
10031
  ] }),
10032
10032
  /* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
10033
10033
  /* @__PURE__ */ t(
10034
- vA,
10034
+ yA,
10035
10035
  {
10036
10036
  sx: {
10037
10037
  width: 20,
@@ -10083,7 +10083,7 @@ const tn = {
10083
10083
  /* @__PURE__ */ l(de, { bgcolor: a.palette.background.paper, mb: 24, children: [
10084
10084
  /* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
10085
10085
  /* @__PURE__ */ t(
10086
- vA,
10086
+ yA,
10087
10087
  {
10088
10088
  sx: {
10089
10089
  display: "flex",
@@ -10153,7 +10153,7 @@ const tn = {
10153
10153
  return ve().uiStore;
10154
10154
  }, xn = (e) => e.top_level_category_guid === b.INCOME || e.category_guid === b.INCOME, Vh = (e) => !xn(e) && !co(e), so = (e) => Ar.includes(e.top_level_category_guid) || Ar.includes(e.category_guid), co = (e) => e.top_level_category_guid === b.TRANSFER || e.category_guid === b.TRANSFER, Jh = (e) => !xn(e) && !so(e) && !co(e), Zh = (e) => e.filter((A) => A.category_guid === A.top_level_category_guid), Ma = (e, A) => {
10155
10155
  const n = [];
10156
- let a = xe(EA(/* @__PURE__ */ new Date(), 5));
10156
+ let a = xe(bA(/* @__PURE__ */ new Date(), 5));
10157
10157
  const r = /* @__PURE__ */ new Date();
10158
10158
  for (; Te(a, r); )
10159
10159
  n.push({
@@ -10174,7 +10174,7 @@ const tn = {
10174
10174
  const A = [], n = e.filter(
10175
10175
  (i) => i.top_level_category_guid !== b.INCOME && i.top_level_category_guid !== b.TRANSFER && i.total > 0
10176
10176
  );
10177
- let a = xe(EA(/* @__PURE__ */ new Date(), 5));
10177
+ let a = xe(bA(/* @__PURE__ */ new Date(), 5));
10178
10178
  const r = Re(/* @__PURE__ */ new Date());
10179
10179
  for (; Te(a, r); )
10180
10180
  A.push({
@@ -10219,7 +10219,7 @@ const tn = {
10219
10219
  i(!0);
10220
10220
  });
10221
10221
  }, [n, a]), !n || !r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
10222
- pA,
10222
+ fA,
10223
10223
  {
10224
10224
  sx: {
10225
10225
  borderRadius: 2,
@@ -10236,7 +10236,7 @@ const tn = {
10236
10236
  title: /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: ne(/* @__PURE__ */ new Date(), Z.MONTH_LONG) })
10237
10237
  }
10238
10238
  ),
10239
- /* @__PURE__ */ t(LA, { sx: { p: 0 }, children: /* @__PURE__ */ t(ig, {}) })
10239
+ /* @__PURE__ */ t(IA, { sx: { p: 0 }, children: /* @__PURE__ */ t(ig, {}) })
10240
10240
  ]
10241
10241
  }
10242
10242
  );
@@ -10411,7 +10411,7 @@ const lo = ({
10411
10411
  const e = GA(), { selectedDebtChartData: A } = dt();
10412
10412
  return /* @__PURE__ */ l(Q, { children: [
10413
10413
  /* @__PURE__ */ l(
10414
- pA,
10414
+ fA,
10415
10415
  {
10416
10416
  sx: {
10417
10417
  borderRadius: 2,
@@ -10421,7 +10421,7 @@ const lo = ({
10421
10421
  },
10422
10422
  children: [
10423
10423
  /* @__PURE__ */ t(FA, { sx: { pb: 0 }, title: /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: Br.card_title }) }),
10424
- /* @__PURE__ */ t(LA, { sx: { p: 0 }, children: /* @__PURE__ */ t(lo, { debts: [A], height: 250 }) })
10424
+ /* @__PURE__ */ t(IA, { sx: { p: 0 }, children: /* @__PURE__ */ t(lo, { debts: [A], height: 250 }) })
10425
10425
  ]
10426
10426
  }
10427
10427
  ),
@@ -10518,7 +10518,7 @@ const lo = ({
10518
10518
  }, 250);
10519
10519
  };
10520
10520
  return /* @__PURE__ */ t(
10521
- DA,
10521
+ LA,
10522
10522
  {
10523
10523
  isDisabled: e.is_complete,
10524
10524
  isSaveDisabled: !i || Number.isNaN(Number(i)),
@@ -10550,7 +10550,7 @@ const lo = ({
10550
10550
  }, 250);
10551
10551
  };
10552
10552
  return /* @__PURE__ */ t(
10553
- DA,
10553
+ LA,
10554
10554
  {
10555
10555
  isDisabled: e.is_complete,
10556
10556
  isSaveDisabled: i === 0,
@@ -10584,7 +10584,7 @@ const lo = ({
10584
10584
  }, 250);
10585
10585
  };
10586
10586
  return /* @__PURE__ */ t(
10587
- DA,
10587
+ LA,
10588
10588
  {
10589
10589
  isDisabled: e.is_complete,
10590
10590
  isSaveDisabled: i === 0,
@@ -10617,7 +10617,7 @@ const lo = ({
10617
10617
  }, 250);
10618
10618
  }, s = !a || isNaN(Number(a));
10619
10619
  return /* @__PURE__ */ t(
10620
- DA,
10620
+ LA,
10621
10621
  {
10622
10622
  isSaveDisabled: s,
10623
10623
  label: `${A.details_interest_rate} (%)`,
@@ -10646,7 +10646,7 @@ const lo = ({
10646
10646
  }, 250);
10647
10647
  };
10648
10648
  return /* @__PURE__ */ t(
10649
- DA,
10649
+ LA,
10650
10650
  {
10651
10651
  isSaveDisabled: isNaN(a),
10652
10652
  label: A.details_monthly_payment,
@@ -10678,7 +10678,7 @@ const lo = ({
10678
10678
  }, 250);
10679
10679
  };
10680
10680
  return /* @__PURE__ */ t(
10681
- DA,
10681
+ LA,
10682
10682
  {
10683
10683
  isSaveDisabled: isNaN(a),
10684
10684
  label: A.details_original_balance,
@@ -11069,7 +11069,7 @@ const _g = ({
11069
11069
  }, O = () => {
11070
11070
  };
11071
11071
  return !u || !n ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
11072
- IA,
11072
+ pA,
11073
11073
  {
11074
11074
  accountOptions: I,
11075
11075
  onAccountsFilterClick: O,
@@ -11332,11 +11332,11 @@ const mo = T(
11332
11332
  }
11333
11333
  ];
11334
11334
  let u = /* @__PURE__ */ t(Ds, {});
11335
- return e.track_type === ee.DEBT_TRACK ? u = /* @__PURE__ */ t(xs, {}) : e.track_type === ee.RETIREMENT_TRACK && (u = /* @__PURE__ */ t(Os, {})), /* @__PURE__ */ t(pA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(Ci, { disabled: !n, onClick: n, children: [
11335
+ return e.track_type === ee.DEBT_TRACK ? u = /* @__PURE__ */ t(xs, {}) : e.track_type === ee.RETIREMENT_TRACK && (u = /* @__PURE__ */ t(Os, {})), /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(Ci, { disabled: !n, onClick: n, children: [
11336
11336
  /* @__PURE__ */ t(
11337
11337
  FA,
11338
11338
  {
11339
- avatar: /* @__PURE__ */ t(fA, { sx: { bgcolor: r, color: i, height: 48, width: 48 }, variant: "rounded", children: u }),
11339
+ avatar: /* @__PURE__ */ t(vA, { sx: { bgcolor: r, color: i, height: 48, width: 48 }, variant: "rounded", children: u }),
11340
11340
  subheader: /* @__PURE__ */ t(p, { variant: A ? "H3" : "H2", children: `
11341
11341
  ${R(e.current_amount, "0,0.00")}/
11342
11342
  ${R(e.amount, "0,0.00")}
@@ -11344,7 +11344,7 @@ const mo = T(
11344
11344
  title: /* @__PURE__ */ t(Ut, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
11345
11345
  }
11346
11346
  ),
11347
- /* @__PURE__ */ t(LA, { sx: { pt: 0 }, children: /* @__PURE__ */ l(y, { gap: 6, children: [
11347
+ /* @__PURE__ */ t(IA, { sx: { pt: 0 }, children: /* @__PURE__ */ l(y, { gap: 6, children: [
11348
11348
  /* @__PURE__ */ t(Ft, { data: d, height: 24 }),
11349
11349
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
11350
11350
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: s }),
@@ -11364,7 +11364,7 @@ const mo = T(
11364
11364
  }
11365
11365
  };
11366
11366
  return /* @__PURE__ */ t(y, { bgcolor: "background.paper", children: /* @__PURE__ */ t(
11367
- DA,
11367
+ LA,
11368
11368
  {
11369
11369
  label: A.contribution_label,
11370
11370
  onSave: c,
@@ -11442,7 +11442,7 @@ const mo = T(
11442
11442
  justifyContent: "space-between",
11443
11443
  children: [
11444
11444
  /* @__PURE__ */ t(p, { variant: "Body", children: A.reorder_goals_title }),
11445
- /* @__PURE__ */ t(bA, {})
11445
+ /* @__PURE__ */ t(wA, {})
11446
11446
  ]
11447
11447
  }
11448
11448
  ) }) }) }),
@@ -11494,7 +11494,7 @@ const mo = T(
11494
11494
  justifyContent: "center",
11495
11495
  ".MuiAvatar-root": { height: "16px", width: "16px" }
11496
11496
  },
11497
- children: /* @__PURE__ */ t(fA, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: A + 1 }) })
11497
+ children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: A + 1 }) })
11498
11498
  }
11499
11499
  ),
11500
11500
  /* @__PURE__ */ t(J, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
@@ -11533,7 +11533,7 @@ const mo = T(
11533
11533
  const { goals: A, common: n } = L(), { orderedGoals: a } = Ue(), r = a.filter((C) => C.track_type === e), i = r.filter((C) => !C.is_complete), o = r.filter((C) => C.is_complete), [s, c] = g.useState(!1);
11534
11534
  let d = A.manage_saving_goals, u = A.manage_saving_drawer_title, h = A.manage_saving_title, m = A.manage_saving_description;
11535
11535
  return e === ee.DEBT_TRACK ? (d = A.manage_debt_goals, u = A.manage_debt_drawer_title, h = A.manage_debt_title, m = A.manage_debt_description) : e === ee.RETIREMENT_TRACK && (d = A.manage_retirement_goals, u = A.manage_retirement_drawer_title, h = A.manage_retirement_title, m = A.manage_retirement_description), /* @__PURE__ */ l(y, { children: [
11536
- /* @__PURE__ */ t(oe, { endIcon: /* @__PURE__ */ t(bA, {}), onClick: () => c(!0), children: d }),
11536
+ /* @__PURE__ */ t(oe, { endIcon: /* @__PURE__ */ t(wA, {}), onClick: () => c(!0), children: d }),
11537
11537
  /* @__PURE__ */ t(
11538
11538
  re,
11539
11539
  {
@@ -11575,7 +11575,7 @@ const mo = T(
11575
11575
  e !== ee.RETIREMENT_TRACK && /* @__PURE__ */ l(y, { gap: 16, mt: 48, children: [
11576
11576
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: n.complete_title }),
11577
11577
  s.length === 0 && /* @__PURE__ */ t(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(p, { variant: "Small", children: c }) }),
11578
- s.map((d) => /* @__PURE__ */ t(pA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(Ci, { onClick: () => r(d), children: /* @__PURE__ */ t(LA, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
11578
+ s.map((d) => /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(Ci, { onClick: () => r(d), children: /* @__PURE__ */ t(IA, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
11579
11579
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 6, children: [
11580
11580
  /* @__PURE__ */ t(B, { color: "success", fill: !0, name: "check_circle", size: 20 }),
11581
11581
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: d.name })
@@ -11596,9 +11596,9 @@ const mo = T(
11596
11596
  c
11597
11597
  ),
11598
11598
  children: [
11599
- /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(fA, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(Wa, { name: r, sx: { color: "grey.900" } }) }) }),
11599
+ /* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(Wa, { name: r, sx: { color: "grey.900" } }) }) }),
11600
11600
  /* @__PURE__ */ t(J, { primary: i, secondary: o, sx: { mr: 24 } }),
11601
- !h && /* @__PURE__ */ t(bA, {}),
11601
+ !h && /* @__PURE__ */ t(wA, {}),
11602
11602
  h && (d ? /* @__PURE__ */ t(Ns, {}) : /* @__PURE__ */ t(Ps, {}))
11603
11603
  ]
11604
11604
  }
@@ -11613,7 +11613,7 @@ const mo = T(
11613
11613
  primaryTypographyProps: { variant: "Body" }
11614
11614
  }
11615
11615
  ),
11616
- /* @__PURE__ */ t(bA, {})
11616
+ /* @__PURE__ */ t(wA, {})
11617
11617
  ] }) }, C)) }) })
11618
11618
  ] }) });
11619
11619
  }, Co = ({
@@ -11662,7 +11662,7 @@ const mo = T(
11662
11662
  /* @__PURE__ */ t(H, { variant: f < e.length - 1 ? "inset" : "fullWidth" })
11663
11663
  ] }, C.guid))
11664
11664
  ] }),
11665
- /* @__PURE__ */ l(pA, { sx: { m: 24 }, children: [
11665
+ /* @__PURE__ */ l(fA, { sx: { m: 24 }, children: [
11666
11666
  /* @__PURE__ */ t(
11667
11667
  FA,
11668
11668
  {
@@ -11671,12 +11671,12 @@ const mo = T(
11671
11671
  title: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i.connect_title })
11672
11672
  }
11673
11673
  ),
11674
- /* @__PURE__ */ t(LA, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ l(y, { alignItems: "flex-start", spacing: 2, children: [
11674
+ /* @__PURE__ */ t(IA, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ l(y, { alignItems: "flex-start", spacing: 2, children: [
11675
11675
  /* @__PURE__ */ t(p, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: i.connect_description }),
11676
11676
  /* @__PURE__ */ t(
11677
11677
  oe,
11678
11678
  {
11679
- endIcon: /* @__PURE__ */ t(bA, {}),
11679
+ endIcon: /* @__PURE__ */ t(wA, {}),
11680
11680
  onClick: m,
11681
11681
  sx: {
11682
11682
  pl: 0,
@@ -11763,7 +11763,7 @@ const mo = T(
11763
11763
  secondary: R(e.balance || 0, "0,0.00")
11764
11764
  }
11765
11765
  ),
11766
- /* @__PURE__ */ t(bA, {})
11766
+ /* @__PURE__ */ t(wA, {})
11767
11767
  ] }),
11768
11768
  /* @__PURE__ */ t(re, { isOpen: a, onClose: () => r(!1), title: A.account_details, children: /* @__PURE__ */ l(y, { children: [
11769
11769
  /* @__PURE__ */ t(Ra, {}),
@@ -11780,7 +11780,7 @@ const mo = T(
11780
11780
  }, 250);
11781
11781
  };
11782
11782
  return /* @__PURE__ */ t(
11783
- DA,
11783
+ LA,
11784
11784
  {
11785
11785
  isDisabled: e.is_complete,
11786
11786
  isSaveDisabled: i === 0,
@@ -11815,7 +11815,7 @@ const mo = T(
11815
11815
  /* @__PURE__ */ t(li, { filled: !0 }),
11816
11816
  r.details_add_account
11817
11817
  ] }) }),
11818
- /* @__PURE__ */ t(bA, { color: "primary" })
11818
+ /* @__PURE__ */ t(wA, { color: "primary" })
11819
11819
  ] }) }) : /* @__PURE__ */ l(y, { gap: 8, mt: 24, mx: 24, children: [
11820
11820
  /* @__PURE__ */ t(oe, { onClick: () => u(!0), variant: "text", children: r.details_change_account }),
11821
11821
  /* @__PURE__ */ t(
@@ -11845,7 +11845,7 @@ const mo = T(
11845
11845
  secondary: R(m?.balance || 0, "0,0.00")
11846
11846
  }
11847
11847
  ),
11848
- /* @__PURE__ */ t(bA, {})
11848
+ /* @__PURE__ */ t(wA, {})
11849
11849
  ] }) }, m.guid)) }),
11850
11850
  /* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
11851
11851
  /* @__PURE__ */ t(Ae, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { onClick: () => h(m.guid), children: [
@@ -11863,7 +11863,7 @@ const mo = T(
11863
11863
  secondary: R(m?.balance || 0, "0,0.00")
11864
11864
  }
11865
11865
  ),
11866
- /* @__PURE__ */ t(bA, {})
11866
+ /* @__PURE__ */ t(wA, {})
11867
11867
  ] }) }, m.guid)) })
11868
11868
  ] }) })
11869
11869
  ] });
@@ -11877,7 +11877,7 @@ const mo = T(
11877
11877
  }, 250);
11878
11878
  };
11879
11879
  return /* @__PURE__ */ t(
11880
- DA,
11880
+ LA,
11881
11881
  {
11882
11882
  isDisabled: e.is_complete,
11883
11883
  isSaveDisabled: !i,
@@ -11910,7 +11910,7 @@ const mo = T(
11910
11910
  }, 250);
11911
11911
  };
11912
11912
  return /* @__PURE__ */ t(
11913
- DA,
11913
+ LA,
11914
11914
  {
11915
11915
  isDisabled: e.is_complete,
11916
11916
  isSaveDisabled: !i || Number.isNaN(Number(i)) || i < 20 || i >= 100,
@@ -11937,7 +11937,7 @@ const mo = T(
11937
11937
  i && gi(i) && (await a({ ...n, birthday: pe(i) }), r(A.alert_goal_updated_birthday));
11938
11938
  };
11939
11939
  return /* @__PURE__ */ t(
11940
- DA,
11940
+ LA,
11941
11941
  {
11942
11942
  isDisabled: d,
11943
11943
  isSaveDisabled: !!s,
@@ -11988,7 +11988,7 @@ const mo = T(
11988
11988
  /* @__PURE__ */ t(li, { filled: !0 }),
11989
11989
  A.details_add_account
11990
11990
  ] }) }),
11991
- /* @__PURE__ */ t(bA, { color: "primary" })
11991
+ /* @__PURE__ */ t(wA, { color: "primary" })
11992
11992
  ] }) }),
11993
11993
  /* @__PURE__ */ t(
11994
11994
  Co,
@@ -12128,7 +12128,7 @@ const mo = T(
12128
12128
  E(!1), q === ee.SAVINGS_TRACK ? f(0) : q === ee.DEBT_TRACK ? f(1) : q === ee.RETIREMENT_TRACK && f(2);
12129
12129
  };
12130
12130
  return /* @__PURE__ */ l(
12131
- IA,
12131
+ pA,
12132
12132
  {
12133
12133
  accountOptions: r,
12134
12134
  actions: [
@@ -12708,7 +12708,7 @@ const fo = 13, u1 = (e, A) => e.filter((n) => {
12708
12708
  }), h1 = (e, A) => [...e, ...A], Fr = (e) => {
12709
12709
  if (e && e.length > 0)
12710
12710
  return e[e.length - 1];
12711
- }, g1 = (e, A) => e.year_month - A.year_month, m1 = () => Array.from({ length: fo }, (e, A) => Math.floor(xe(EA(/* @__PURE__ */ new Date(), A)).getTime() / 1e3)).sort(), C1 = (e, A, n) => !e.length || !A.length ? [] : m1().reduceRight((r, i) => {
12711
+ }, g1 = (e, A) => e.year_month - A.year_month, m1 = () => Array.from({ length: fo }, (e, A) => Math.floor(xe(bA(/* @__PURE__ */ new Date(), A)).getTime() / 1e3)).sort(), C1 = (e, A, n) => !e.length || !A.length ? [] : m1().reduceRight((r, i) => {
12712
12712
  const o = A.filter(
12713
12713
  ({ year_month: u }) => u === parseInt(Ye(Le(i), "yyyyMM"))
12714
12714
  ), s = e.map((u) => {
@@ -13197,7 +13197,7 @@ const y1 = ({
13197
13197
  selectedData: m
13198
13198
  };
13199
13199
  return I ? /* @__PURE__ */ t(
13200
- IA,
13200
+ pA,
13201
13201
  {
13202
13202
  accountOptions: i,
13203
13203
  calendarActions: {
@@ -13367,15 +13367,15 @@ const H1 = (e, A) => {
13367
13367
  const { isLoading: A, recentNotifications: n, markAllAsViewed: a } = Bi(), { notifications: r } = L(), i = (o) => {
13368
13368
  e?.(o);
13369
13369
  };
13370
- return wA(() => () => {
13370
+ return xA(() => () => {
13371
13371
  a().finally();
13372
13372
  }, []), /* @__PURE__ */ l(fs, { sx: { p: 16 }, children: [
13373
13373
  A && /* @__PURE__ */ t(Ve, { label: r?.loading, size: 40 }),
13374
- !A && n.length === 0 && /* @__PURE__ */ t(vA, { sx: { p: 16 }, children: /* @__PURE__ */ t(p, { fontStyle: "italic", sx: { textAlign: "center" }, children: r.no_notifications }) }),
13374
+ !A && n.length === 0 && /* @__PURE__ */ t(yA, { sx: { p: 16 }, children: /* @__PURE__ */ t(p, { fontStyle: "italic", sx: { textAlign: "center" }, children: r.no_notifications }) }),
13375
13375
  !A && n.slice().sort((o, s) => s.delivered_at - o.delivered_at).map((o, s) => {
13376
13376
  const c = H1(s, n);
13377
- return /* @__PURE__ */ l(vA, { sx: { mb: 12 }, children: [
13378
- c && /* @__PURE__ */ l(vA, { sx: { mb: 12 }, children: [
13377
+ return /* @__PURE__ */ l(yA, { sx: { mb: 12 }, children: [
13378
+ c && /* @__PURE__ */ l(yA, { sx: { mb: 12 }, children: [
13379
13379
  /* @__PURE__ */ t(q1, { date: o.delivered_at }),
13380
13380
  /* @__PURE__ */ t(vs, {})
13381
13381
  ] }),
@@ -14192,7 +14192,7 @@ const Gn = ({
14192
14192
  a(!0), m(G.ACCOUNTS_CLICK_CONNECT);
14193
14193
  };
14194
14194
  return /* @__PURE__ */ t(
14195
- IA,
14195
+ pA,
14196
14196
  {
14197
14197
  accountOptions: o,
14198
14198
  actions: [
@@ -15168,9 +15168,9 @@ const xm = ({
15168
15168
  click_type: "list"
15169
15169
  });
15170
15170
  };
15171
- return /* @__PURE__ */ l(pA, { elevation: 2, sx: { borderRadius: 2 }, children: [
15171
+ return /* @__PURE__ */ l(fA, { elevation: 2, sx: { borderRadius: 2 }, children: [
15172
15172
  /* @__PURE__ */ t(FA, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t($A, { children: A.budget_categories_title }) }),
15173
- /* @__PURE__ */ t(LA, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(Ae, { children: n.map((i) => /* @__PURE__ */ l(g.Fragment, { children: [
15173
+ /* @__PURE__ */ t(IA, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(Ae, { children: n.map((i) => /* @__PURE__ */ l(g.Fragment, { children: [
15174
15174
  /* @__PURE__ */ t(Pm, { budget: i, onClick: r }),
15175
15175
  /* @__PURE__ */ t(H, {})
15176
15176
  ] }, i.guid)) }) })
@@ -15211,9 +15211,9 @@ const xm = ({
15211
15211
  }
15212
15212
  }), C(!0), A(G.BUDGETS_CLICK_EDIT_INCOME);
15213
15213
  };
15214
- return /* @__PURE__ */ l(pA, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
15214
+ return /* @__PURE__ */ l(fA, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
15215
15215
  /* @__PURE__ */ t(FA, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t($A, { children: a.overview_title }) }),
15216
- /* @__PURE__ */ t(LA, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ l(y, { gap: 24, children: [
15216
+ /* @__PURE__ */ t(IA, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ l(y, { gap: 24, children: [
15217
15217
  /* @__PURE__ */ l(y, { gap: 8, children: [
15218
15218
  /* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
15219
15219
  /* @__PURE__ */ t(Ft, { data: v, height: 16 }),
@@ -15400,7 +15400,7 @@ const xm = ({
15400
15400
  percentage: `${i}%`
15401
15401
  }
15402
15402
  ];
15403
- return /* @__PURE__ */ t(pA, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(LA, { children: /* @__PURE__ */ l(y, { alignItems: "center", gap: 16, children: [
15403
+ return /* @__PURE__ */ t(fA, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(IA, { children: /* @__PURE__ */ l(y, { alignItems: "center", gap: 16, children: [
15404
15404
  /* @__PURE__ */ t(sA, { categoryGuid: r, size: 56 }),
15405
15405
  /* @__PURE__ */ t(kA, { children: `${R(o, "0,0")} / ${R(A, "0,0")}` }),
15406
15406
  /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
@@ -15714,7 +15714,7 @@ const xm = ({
15714
15714
  z(!1);
15715
15715
  }, te = yt(m.end, xe(/* @__PURE__ */ new Date()));
15716
15716
  return !s || !_ ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
15717
- IA,
15717
+ pA,
15718
15718
  {
15719
15719
  accountOptions: r,
15720
15720
  actions: [
@@ -15859,7 +15859,7 @@ const Qm = () => {
15859
15859
  onRequestHelp: r,
15860
15860
  onTopicSelect: i
15861
15861
  }) => {
15862
- const [o, s] = yA(null), c = Math.ceil(A.length / 2);
15862
+ const [o, s] = EA(null), c = Math.ceil(A.length / 2);
15863
15863
  return /* @__PURE__ */ l(Q, { children: [
15864
15864
  /* @__PURE__ */ l(QA, { container: !0, sx: { alignItems: "center", mb: 24 }, children: [
15865
15865
  /* @__PURE__ */ l(QA, { item: !0, md: 6, sm: 6, xs: 12, children: [
@@ -15956,13 +15956,13 @@ const Qm = () => {
15956
15956
  help_title: "Help Tool"
15957
15957
  }, U8 = () => {
15958
15958
  const { helpCategories: e, setAppConfig: A } = yl(), n = window.app?.config;
15959
- console.log(n, "::widgetProfile"), wA(() => {
15959
+ console.log(n, "::widgetProfile"), g.useEffect(() => {
15960
15960
  A(n);
15961
15961
  }, [n]);
15962
15962
  const a = () => {
15963
15963
  }, r = () => {
15964
15964
  };
15965
- return /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
15965
+ return /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
15966
15966
  Vm,
15967
15967
  {
15968
15968
  buttonText: Xn.button_text,
@@ -15972,7 +15972,7 @@ const Qm = () => {
15972
15972
  onRequestHelp: a,
15973
15973
  onTopicSelect: r
15974
15974
  }
15975
- ) });
15975
+ ) }) });
15976
15976
  }, Ba = ({
15977
15977
  bgcolor: e = "background.default",
15978
15978
  children: A
@@ -16133,7 +16133,7 @@ const Qm = () => {
16133
16133
  )
16134
16134
  ] });
16135
16135
  }, So = Ko(void 0), Zm = ({ children: e }) => {
16136
- const [A, n] = yA({
16136
+ const [A, n] = EA({
16137
16137
  isOpen: !1,
16138
16138
  message: "",
16139
16139
  severity: "success"
@@ -16259,7 +16259,7 @@ const Io = ({
16259
16259
  () => A.reduce((w, D) => ({ ...w, [D.name]: !1 }), {}),
16260
16260
  [A]
16261
16261
  ), [d, u] = g.useState(c), { toastState: h, hideToast: m } = To(), C = Oi(r);
16262
- wA(() => {
16262
+ xA(() => {
16263
16263
  C && !r && u(c);
16264
16264
  }, [C, r, c, u]);
16265
16265
  const f = (w) => {
@@ -16507,7 +16507,7 @@ const Io = ({
16507
16507
  isUpdateError: r,
16508
16508
  isUpdateLoading: i
16509
16509
  } = A, [o, s, c] = rC(n), { toastState: d, showToast: u, hideToast: h, setMessage: m } = To(), [C, f] = g.useState(!1), [v, E] = g.useState(!1), [I, S] = g.useState(""), [w, D] = g.useState(""), _ = Oi(i);
16510
- wA(() => {
16510
+ xA(() => {
16511
16511
  _ && !i && (r ? u(e.something_went_wrong, "error") : u(void 0, "success"));
16512
16512
  }, [_, r]);
16513
16513
  const O = () => {
@@ -16882,8 +16882,8 @@ const Vt = g.createContext(null), hC = ({
16882
16882
  store: n,
16883
16883
  children: a
16884
16884
  }) => /* @__PURE__ */ t(Vt.Provider, { value: { onEvent: e, onPageview: A, store: n, children: a }, children: a }), gC = ({ beat: e }) => {
16885
- const [A, n] = yA(b.UNCATEGORIZED);
16886
- return wA(() => {
16885
+ const [A, n] = EA(b.UNCATEGORIZED);
16886
+ return xA(() => {
16887
16887
  e.primary_category_guid ? n(e.primary_category_guid) : e.category_guids?.length && n(e.category_guids[0]);
16888
16888
  }, []), /* @__PURE__ */ t(sA, { categoryGuid: A, size: 16, sx: { minWidth: 16 } });
16889
16889
  }, mC = ({ beat: e }) => {
@@ -17777,12 +17777,12 @@ const Vt = g.createContext(null), hC = ({
17777
17777
  const C = window.app?.config.client_guid, { ref: f, inView: v } = vi({
17778
17778
  threshold: Po
17779
17779
  }), { cardsCopy: E } = ut(), { onEvent: I } = Jt(), { updateBeat: S } = wC();
17780
- wA(() => {
17780
+ xA(() => {
17781
17781
  v && (n.has_been_displayed ? I(Do(n.template)) : (S({
17782
17782
  ...n,
17783
17783
  has_been_displayed: !0
17784
17784
  }), I(xo(n.template))));
17785
- }, [v]), wA(() => {
17785
+ }, [v]), xA(() => {
17786
17786
  d?.capture && v && n && C && d.capture("micro_widget_viewed_insight", {
17787
17787
  beat_guid: n.guid,
17788
17788
  insight_template: n.template,
@@ -18061,7 +18061,7 @@ const Vt = g.createContext(null), hC = ({
18061
18061
  tabIndex: c ? 0 : -1,
18062
18062
  children: [
18063
18063
  n && /* @__PURE__ */ t("span", { "aria-label": n, style: { visibility: "hidden" } }),
18064
- /* @__PURE__ */ l(pA, { className: "mx-micro-card", sx: { backgroundColor: a }, variant: f, children: [
18064
+ /* @__PURE__ */ l(fA, { className: "mx-micro-card", sx: { backgroundColor: a }, variant: f, children: [
18065
18065
  /* @__PURE__ */ t(
18066
18066
  FA,
18067
18067
  {
@@ -18252,7 +18252,7 @@ const Vt = g.createContext(null), hC = ({
18252
18252
  variant: w,
18253
18253
  widthOverrides: D
18254
18254
  }) => {
18255
- const [_, O] = yA("STANDARD"), [x, z] = yA(!1), K = Wc([c], RA), q = Yc([d], RA);
18255
+ const [_, O] = EA("STANDARD"), [x, z] = EA(!1), K = Wc([c], RA), q = Yc([d], RA);
18256
18256
  g.useEffect(() => {
18257
18257
  RA.isInitialized || RA.initialize(r, E, o);
18258
18258
  }, [r, E, o, RA.isInitialized]), g.useEffect(() => {
@@ -18383,9 +18383,9 @@ const Vt = g.createContext(null), hC = ({
18383
18383
  const d = qe(), u = window.app?.config.client_guid, { ref: h, inView: m } = vi({
18384
18384
  threshold: Po
18385
18385
  }), { cardsCopy: C } = ut(), { onEvent: f } = Jt();
18386
- wA(() => {
18386
+ xA(() => {
18387
18387
  m && f(Oo.ON_VIEW_MORE_VIEWED);
18388
- }, [m]), wA(() => {
18388
+ }, [m]), xA(() => {
18389
18389
  i?.capture && m && u && i.capture("micro_widget_viewed_insight", {
18390
18390
  insight_template: "read_more_card",
18391
18391
  $groups: { client: u }
@@ -18977,7 +18977,7 @@ const Vt = g.createContext(null), hC = ({
18977
18977
  i(h[0], h[1]);
18978
18978
  };
18979
18979
  return !r || !c ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ t(
18980
- IA,
18980
+ pA,
18981
18981
  {
18982
18982
  accountOptions: n,
18983
18983
  calendarActions: { onRangeChanged: u },
@@ -19162,7 +19162,7 @@ const tp = (e) => e.reduce((n, a) => {
19162
19162
  view_transactions: "View Transactions"
19163
19163
  }, gp = ({ onBackClick: e, sx: A }) => {
19164
19164
  const n = cA(), { onEvent: a } = $(), { isDesktop: r, isTablet: i, isMobile: o } = Be(), { accounts: s } = ve(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: u } = _e(), { sortedTransactions: h } = ge(), { isInitialized: m, selectedAccounts: C, setSelectedAccounts: f } = ye(), { trends: v } = L(), E = n.palette.mode === "dark", [I, S] = g.useState(!1), [w, D] = g.useState(!1), [_, O] = g.useState("Chart"), [x, z] = g.useState(""), [K, q] = g.useState({
19165
- start: er(Re(EA(/* @__PURE__ */ new Date(), 6)), 1),
19165
+ start: er(Re(bA(/* @__PURE__ */ new Date(), 6)), 1),
19166
19166
  end: Re(/* @__PURE__ */ new Date())
19167
19167
  });
19168
19168
  g.useEffect(() => {
@@ -19213,13 +19213,13 @@ const tp = (e) => e.reduce((n, a) => {
19213
19213
  z(Se), a(G.TRENDS_CLICK_LEGEND, { category: u(Se) });
19214
19214
  }, iA = (Se) => {
19215
19215
  a(G.TRENDS_HOVER_LEGEND, { category: u(Se) });
19216
- }, xA = (Se) => {
19216
+ }, DA = (Se) => {
19217
19217
  a(G.TRENDS_HOVER_AREA, { category: Se });
19218
19218
  }, at = (Se) => {
19219
19219
  a(G.TRENDS_HOVER_POINT, { category: Se });
19220
19220
  };
19221
19221
  return !m || !I ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
19222
- IA,
19222
+ pA,
19223
19223
  {
19224
19224
  accountOptions: s,
19225
19225
  calendarActions: { onRangeChanged: ue },
@@ -19316,7 +19316,7 @@ const tp = (e) => e.reduce((n, a) => {
19316
19316
  Dl,
19317
19317
  {
19318
19318
  onClickLegend: we,
19319
- onHoverArea: xA,
19319
+ onHoverArea: DA,
19320
19320
  onHoverLegend: iA,
19321
19321
  onHoverPoint: at,
19322
19322
  stackedDatasets: F.stackedDatasets,
@@ -19472,7 +19472,7 @@ export {
19472
19472
  Pc as IterationItemTypes,
19473
19473
  m8 as LOADING_STATUS,
19474
19474
  va as LineChart,
19475
- DA as ListItemAction,
19475
+ LA as ListItemAction,
19476
19476
  Bl as ListItemWrapper,
19477
19477
  Ve as Loader,
19478
19478
  v8 as LocalizedCopyApi,
@@ -19547,7 +19547,7 @@ export {
19547
19547
  nd as UserVerification,
19548
19548
  zC as ViewMoreMicroCard,
19549
19549
  sr as WidgetApi,
19550
- IA as WidgetContainer,
19550
+ pA as WidgetContainer,
19551
19551
  Pi as WidgetContainerContext,
19552
19552
  Mi as WidgetContainerProvider,
19553
19553
  qC as ZeroStateCard,