@mx-cartographer/experiences 7.12.9 → 7.12.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [7.12.11] - 03-23-2026
2
+
3
+ - **FIXED** - ADA replace SpendingList dividers with border
4
+ - **FIXED** - ADA add `aria-hidden` and `role="presentation"` to SpendingList bullets
5
+ - **FIXED** - ADA add `aria-hidden` and `role="presentation"` to SpendingDonut icons
6
+ - **FIXED** - ADA darkened/lightened category color 2px stroke around SpendingDonut areas
7
+
8
+ ## [7.12.10] - 03-23-2026
9
+
10
+ - **ADDED** - font styling for mrs content tagged copy
11
+
1
12
  ## [7.12.9] - 03-23-2026
2
13
 
3
14
  - **FIXED** - semantic html in Transactions List
@@ -1,19 +1,19 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import b from "react";
3
- import { selectAll as m, interpolateString as x, arc as I } from "d3";
4
- import d from "@mui/material/Box";
5
- import { useTheme as S } from "@mui/material/styles";
6
- const k = 100, E = 140, _ = 10, v = ({
7
- data: u,
8
- hoveredId: h,
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import A from "react";
3
+ import { selectAll as b, interpolateString as x, arc as I } from "d3";
4
+ import u from "@mui/material/Box";
5
+ import { useTheme as S, darken as m, lighten as E } from "@mui/material/styles";
6
+ const _ = 100, v = 140, B = 10, N = ({
7
+ data: h,
8
+ hoveredId: p,
9
9
  onClick: a,
10
10
  onMouseEnter: s,
11
11
  onMouseLeave: l,
12
12
  selectedId: i,
13
13
  size: t = 300,
14
- children: p
14
+ children: f
15
15
  }) => {
16
- const f = S();
16
+ const c = S();
17
17
  let r = 0;
18
18
  const g = (o, n) => {
19
19
  (o.key === "Enter" || o.key === " ") && (o.preventDefault(), a?.(n));
@@ -22,11 +22,11 @@ const k = 100, E = 140, _ = 10, v = ({
22
22
  }, D = (o) => {
23
23
  l?.(o);
24
24
  };
25
- return b.useEffect(() => {
26
- m(".arc-outer").transition("roll").duration(500).attrTween("transform", () => x("rotate(0)", "rotate(360)"));
27
- }, []), /* @__PURE__ */ c(d, { height: t, position: "relative", width: t, children: [
28
- /* @__PURE__ */ e(d, { height: "100%", width: "100%", children: p }),
29
- /* @__PURE__ */ c(
25
+ return A.useEffect(() => {
26
+ b(".arc-outer").transition("roll").duration(500).attrTween("transform", () => x("rotate(0)", "rotate(360)"));
27
+ }, []), /* @__PURE__ */ d(u, { height: t, position: "relative", width: t, children: [
28
+ /* @__PURE__ */ e(u, { height: "100%", width: "100%", children: f }),
29
+ /* @__PURE__ */ d(
30
30
  "svg",
31
31
  {
32
32
  height: t,
@@ -37,19 +37,19 @@ const k = 100, E = 140, _ = 10, v = ({
37
37
  /* @__PURE__ */ e("style", { children: `
38
38
  .arc-outer:focus,
39
39
  .arc-outer:focus-visible {
40
- stroke: ${f.palette.primary.main};
40
+ stroke: ${c.palette.primary.main};
41
41
  stroke-width: 3;
42
42
  stroke-opacity: 0.8;
43
43
  }
44
44
  ` }),
45
- /* @__PURE__ */ e("g", { children: u.map((o) => {
45
+ /* @__PURE__ */ e("g", { children: h.map((o) => {
46
46
  const n = r;
47
47
  r = r + 2 * Math.PI * (o.value / 100);
48
- const w = r, R = I().cornerRadius(4)({
49
- innerRadius: k,
50
- outerRadius: E + (o.id === i || o.id === h ? _ : 0),
48
+ const k = r, w = I().cornerRadius(4)({
49
+ innerRadius: _,
50
+ outerRadius: v + (o.id === i || o.id === p ? B : 0),
51
51
  startAngle: n,
52
- endAngle: w,
52
+ endAngle: k,
53
53
  padAngle: 0.025
54
54
  });
55
55
  return /* @__PURE__ */ e(
@@ -58,15 +58,17 @@ const k = 100, E = 140, _ = 10, v = ({
58
58
  "aria-label": o.label || `Segment ${o.id}`,
59
59
  "aria-pressed": o.id === i,
60
60
  className: "arc-outer",
61
- d: R,
61
+ d: w,
62
62
  fill: o.color,
63
63
  onBlur: () => D(o.id),
64
64
  onClick: () => a?.(o.id),
65
65
  onFocus: () => y(o.id),
66
- onKeyDown: (A) => g(A, o.id),
66
+ onKeyDown: (R) => g(R, o.id),
67
67
  onMouseEnter: () => s?.(o.id),
68
68
  onMouseLeave: () => l?.(o.id),
69
69
  role: "button",
70
+ stroke: c.palette.mode === "light" ? m(o.color, 0.3) : E(o.color, 0.3),
71
+ strokeWidth: 2,
70
72
  style: {
71
73
  cursor: "pointer",
72
74
  outline: "none"
@@ -80,7 +82,7 @@ const k = 100, E = 140, _ = 10, v = ({
80
82
  }
81
83
  )
82
84
  ] });
83
- }, j = v;
85
+ }, K = N;
84
86
  export {
85
- j as D
87
+ K as D
86
88
  };
@@ -1,19 +1,19 @@
1
1
  import { b as T } from "./CategoryUtil-BVixr0d5.mjs";
2
2
  import { b as p } from "./Category-CevNQ03n.mjs";
3
- import { jsxs as f, Fragment as w, jsx as m } from "react/jsx-runtime";
3
+ import { jsxs as f, Fragment as N, jsx as d } from "react/jsx-runtime";
4
4
  import _ from "react";
5
- import { observer as N } from "mobx-react-lite";
6
- import k from "@mui/material/Button";
5
+ import { observer as k } from "mobx-react-lite";
6
+ import S from "@mui/material/Box";
7
+ import M from "@mui/material/Button";
7
8
  import h from "@mui/material/Stack";
8
- import { useTheme as M } from "@mui/material/styles";
9
- import { CategoryIcon as A, CategoryIconVariants as G, Text as y, P as O } from "@mxenabled/mxui";
10
- import { D as $ } from "./Donut-DSGXraiS.mjs";
11
- import { u as j } from "./useAriaLive-MkYebyUR.mjs";
12
- import { u as R } from "./hooks-BxkfR-Ff.mjs";
13
- import { u as v } from "./useScreenSize-B6JyS_Lj.mjs";
9
+ import { useTheme as A } from "@mui/material/styles";
10
+ import { CategoryIcon as G, CategoryIconVariants as O, Text as y, P as $ } from "@mxenabled/mxui";
11
+ import { D as j } from "./Donut-CpxJlVvJ.mjs";
12
+ import { u as R } from "./useAriaLive-MkYebyUR.mjs";
13
+ import { u as v } from "./hooks-BxkfR-Ff.mjs";
14
+ import { u as B } from "./useScreenSize-B6JyS_Lj.mjs";
14
15
  import { f as x } from "./NumberFormatting-QCaNwbjv.mjs";
15
- import B from "@mui/material/Box";
16
- const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
16
+ const D = 5, H = (i, l, g, m) => m.reduce((t, n) => {
17
17
  const a = i.find((s) => s.guid === n.category_guid);
18
18
  if (!a) return t;
19
19
  const o = a.parent_guid ?? a.guid, r = i.find((s) => s.guid === o);
@@ -31,8 +31,8 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
31
31
  categoryTotals: [c],
32
32
  amount: n.total
33
33
  }), t;
34
- }, []), no = (i, l, g, d) => {
35
- const t = H(i, l, g, d), n = t.filter(
34
+ }, []), no = (i, l, g, m) => {
35
+ const t = H(i, l, g, m), n = t.filter(
36
36
  (e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER && e.amount > 0
37
37
  ).sort((e, s) => s.amount - e.amount), a = n.reduce(
38
38
  (e, s) => e + s.amount,
@@ -67,9 +67,9 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
67
67
  totalAmount: a
68
68
  };
69
69
  }, eo = (i, l, g) => {
70
- const d = i.filter(
70
+ const m = i.filter(
71
71
  (o) => o.guid === p.INCOME || o.parent_guid === p.INCOME
72
- ), t = l.filter((o) => d.some((r) => r.guid === o.category_guid)).sort((o, r) => o.total - r.total).map((o, r) => ({
72
+ ), t = l.filter((o) => m.some((r) => r.guid === o.category_guid)).sort((o, r) => o.total - r.total).map((o, r) => ({
73
73
  guid: o.category_guid,
74
74
  name: i.find((c) => c.guid === o.category_guid)?.name,
75
75
  color: g[r],
@@ -93,13 +93,13 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
93
93
  data: i,
94
94
  isIncome: l = !1,
95
95
  onSelected: g,
96
- onViewTransactions: d,
96
+ onViewTransactions: m,
97
97
  selectedId: t,
98
98
  size: n = 150,
99
99
  totalLabel: a,
100
100
  variant: o = "mini"
101
101
  }) => {
102
- const { spending: r } = R(), c = M(), { isTablet: e } = v(), { announce: s, ariaLive: C } = j(), u = _.useMemo(
102
+ const { spending: r } = v(), c = A(), { isTablet: e } = B(), { announce: s, ariaLive: C } = R(), u = _.useMemo(
103
103
  () => t ? i.categoryData.find((b) => b.guid === t) : void 0,
104
104
  [t]
105
105
  );
@@ -109,12 +109,12 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
109
109
  s(`${u.name}: ${b}`);
110
110
  }
111
111
  }, [u, s, o]);
112
- const S = i.donutData.length > 0 ? i.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], E = () => {
113
- d?.(t);
114
- }, I = e ? 32 : 48;
115
- return /* @__PURE__ */ f(w, { children: [
112
+ const E = i.donutData.length > 0 ? i.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], I = () => {
113
+ m?.(t);
114
+ }, w = e ? 32 : 48;
115
+ return /* @__PURE__ */ f(N, { children: [
116
116
  C,
117
- /* @__PURE__ */ m($, { data: S, onClick: g, selectedId: t, size: n, children: /* @__PURE__ */ m(h, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ f(h, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
117
+ /* @__PURE__ */ d(j, { data: E, onClick: g, selectedId: t, size: n, children: /* @__PURE__ */ d(h, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ f(h, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
118
118
  u && /* @__PURE__ */ f(
119
119
  h,
120
120
  {
@@ -124,15 +124,15 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
124
124
  mt: o === "mini" ? 0 : -16,
125
125
  sx: o === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
126
126
  children: [
127
- /* @__PURE__ */ m(
128
- A,
127
+ /* @__PURE__ */ d(S, { "aria-hidden": "true", role: "presentation", children: /* @__PURE__ */ d(
128
+ G,
129
129
  {
130
130
  categoryGuid: l ? p.INCOME : u.guid,
131
- size: o === "mini" ? 24 : I,
132
- variant: G.Transparent
131
+ size: o === "mini" ? 24 : w,
132
+ variant: O.Transparent
133
133
  }
134
- ),
135
- /* @__PURE__ */ m(
134
+ ) }),
135
+ /* @__PURE__ */ d(
136
136
  y,
137
137
  {
138
138
  color: "secondary",
@@ -144,15 +144,15 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
144
144
  ]
145
145
  }
146
146
  ),
147
- !u && o === "full" && /* @__PURE__ */ m(y, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
148
- /* @__PURE__ */ m(O, { variant: o === "mini" ? "H2" : "H1", children: u ? x(u.amount, o === "mini" ? "0,0" : "0,0.00") : x(i.totalAmount, o === "mini" ? "0,0" : "0,0.00") }),
149
- !u && o === "mini" && /* @__PURE__ */ m(y, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
150
- o === "full" && /* @__PURE__ */ m(
151
- k,
147
+ !u && o === "full" && /* @__PURE__ */ d(y, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
148
+ /* @__PURE__ */ d($, { variant: o === "mini" ? "H2" : "H1", children: u ? x(u.amount, o === "mini" ? "0,0" : "0,0.00") : x(i.totalAmount, o === "mini" ? "0,0" : "0,0.00") }),
149
+ !u && o === "mini" && /* @__PURE__ */ d(y, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
150
+ o === "full" && /* @__PURE__ */ d(
151
+ M,
152
152
  {
153
153
  "aria-label": `View ${u?.name || ""} Transactions`,
154
154
  disabled: i.categoryData.length === 0,
155
- onClick: E,
155
+ onClick: I,
156
156
  sx: { mt: { xl: 4, xs: 0 }, zIndex: 1 },
157
157
  variant: "text",
158
158
  children: r.view_transactions
@@ -160,11 +160,11 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
160
160
  )
161
161
  ] }) }) })
162
162
  ] });
163
- }, ro = N(V), ao = ({ data: i, onSelected: l, selectedId: g }) => {
164
- const d = (t, n) => {
163
+ }, ro = k(V), ao = ({ data: i, onSelected: l, selectedId: g }) => {
164
+ const m = (t, n) => {
165
165
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(n));
166
166
  };
167
- return /* @__PURE__ */ m(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((t) => /* @__PURE__ */ f(
167
+ return /* @__PURE__ */ d(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((t) => /* @__PURE__ */ f(
168
168
  h,
169
169
  {
170
170
  alignItems: "center",
@@ -173,13 +173,13 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
173
173
  direction: "row",
174
174
  gap: 8,
175
175
  onClick: () => l(t.guid),
176
- onKeyDown: (n) => d(n, t.guid),
176
+ onKeyDown: (n) => m(n, t.guid),
177
177
  role: "button",
178
178
  sx: { cursor: "pointer" },
179
179
  tabIndex: 0,
180
180
  children: [
181
- /* @__PURE__ */ m(B, { borderRadius: 4, height: 8, sx: { backgroundColor: t.color }, width: 8 }),
182
- /* @__PURE__ */ m(y, { bold: t.guid === g, variant: "XSmall", children: t.name })
181
+ /* @__PURE__ */ d(S, { borderRadius: 4, height: 8, sx: { backgroundColor: t.color }, width: 8 }),
182
+ /* @__PURE__ */ d(y, { bold: t.guid === g, variant: "XSmall", children: t.name })
183
183
  ]
184
184
  },
185
185
  t.guid
@@ -536,7 +536,11 @@ const Y = h.createContext(null), lt = ({
536
536
  overflow: "hidden",
537
537
  textOverflow: "ellipsis",
538
538
  WebkitBoxOrient: "vertical",
539
- WebkitLineClamp: k ? 2 : 3
539
+ WebkitLineClamp: k ? 2 : 3,
540
+ "& .bold-copy": {
541
+ fontWeight: "bold",
542
+ fontFamily: "inherit"
543
+ }
540
544
  },
541
545
  variant: "subtitle2"
542
546
  }
@@ -37,7 +37,7 @@ import { L as Gs } from "../TrendsStore-st6GjDtg.mjs";
37
37
  import { A as Ws, B as qs, I as Ys, N as Qs, T as Ks, a as zs } from "../Notification-CMBNDGC-.mjs";
38
38
  import { G as Vs } from "../GlobalAccountFilter-B73Pw1hJ.mjs";
39
39
  import { S as Zs } from "../StatusBar-BK_uYHAB.mjs";
40
- import { D as tr } from "../Donut-DSGXraiS.mjs";
40
+ import { D as tr } from "../Donut-CpxJlVvJ.mjs";
41
41
  import { D as sr } from "../Dialog-Ck34yr-d.mjs";
42
42
  import { jsxs as D, jsx as b } from "react/jsx-runtime";
43
43
  import { css as j } from "@mxenabled/cssinjs";
@@ -51,7 +51,7 @@ import { ChartsXAxis as Zn } from "@mui/x-charts/ChartsXAxis";
51
51
  import { ChartsYAxis as Jn } from "@mui/x-charts/ChartsYAxis";
52
52
  import { startOfMonth as Tt } from "date-fns/startOfMonth";
53
53
  import { endOfMonth as At } from "date-fns/endOfMonth";
54
- import { g as eo, S as to, b as no } from "../SpendingLegend-DHi0vx8B.mjs";
54
+ import { g as eo, S as to, b as no } from "../SpendingLegend-Bq6aXMNh.mjs";
55
55
  import { formatISO as oo } from "date-fns/formatISO";
56
56
  import { fromUnixTime as ro } from "date-fns/fromUnixTime";
57
57
  import { startOfToday as st } from "date-fns/startOfToday";
@@ -22,7 +22,7 @@ import { a as Ue, f as ie } from "../NumberFormatting-QCaNwbjv.mjs";
22
22
  import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
23
23
  import ce from "@mui/material/styles/useTheme";
24
24
  import { Icon as k } from "@mxenabled/mx-icons";
25
- import { D as je } from "../Donut-DSGXraiS.mjs";
25
+ import { D as je } from "../Donut-CpxJlVvJ.mjs";
26
26
  import { useTheme as ze } from "@mui/material/styles";
27
27
  import { f as Oe, A as V } from "../InvestmentUtil-BItV7uEs.mjs";
28
28
  import Ve from "@mui/material/ListItemText";
@@ -1,4 +1,4 @@
1
- import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-DirvUT9O.mjs";
1
+ import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-BhG9hCoO.mjs";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  const a = ({
4
4
  color: i = "currentColor",
@@ -1,42 +1,42 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
2
  import l from "react";
3
- import { observer as v } from "mobx-react-lite";
4
- import { startOfMonth as at } from "date-fns/startOfMonth";
5
- import { endOfMonth as it } from "date-fns/endOfMonth";
6
- import L from "@mui/material/Box";
3
+ import { observer as L } from "mobx-react-lite";
4
+ import { startOfMonth as ot } from "date-fns/startOfMonth";
5
+ import { endOfMonth as at } from "date-fns/endOfMonth";
6
+ import w from "@mui/material/Box";
7
7
  import C from "@mui/material/Stack";
8
8
  import N from "@mui/material/Tab";
9
- import rt from "@mui/material/Tabs";
10
- import yt from "@mui/material/styles/useTheme";
11
- import { g as st, a as lt, S as $, b as Y } from "../SpendingLegend-DHi0vx8B.mjs";
9
+ import it from "@mui/material/Tabs";
10
+ import _t from "@mui/material/styles/useTheme";
11
+ import { g as rt, a as st, S as $, b as X } from "../SpendingLegend-Bq6aXMNh.mjs";
12
12
  import { Text as T, Icon as bt } from "@mxenabled/mxui";
13
13
  import { f as R } from "../NumberFormatting-QCaNwbjv.mjs";
14
- import { u as I, l as A, d as ct, b as z, a as V, h as dt, g as Ct } from "../hooks-BxkfR-Ff.mjs";
15
- import { u as gt } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
16
- import { L as pt } from "../Loader-D3rjKx72.mjs";
17
- import { M as St } from "../MiniWidgetContainer-Cu72GNsE.mjs";
18
- import { startOfToday as q } from "date-fns/startOfToday";
19
- import Tt from "@mui/material/Button";
20
- import { useTheme as Mt } from "@mui/material";
21
- import { e as Dt } from "../exportTransactionsToCSV-CdTF_RqL.mjs";
22
- import { T as xt } from "../StatusIndicator-BV3oFzxo.mjs";
23
- import { T as wt } from "../TransactionDetails-Bbt820BH.mjs";
24
- import Lt from "@mui/material/Collapse";
25
- import F from "@mui/material/Divider";
26
- import J from "@mui/material/List";
27
- import Q from "@mui/material/ListItem";
28
- import Z from "@mui/material/ListItemButton";
29
- import { u as vt } from "../useScreenSize-B6JyS_Lj.mjs";
30
- import { D as tt } from "../Drawer-DV4NTsFg.mjs";
31
- import { b as w } from "../Category-CevNQ03n.mjs";
32
- import { parseISO as et } from "date-fns/parseISO";
33
- import { A as nt } from "../Analytics-BYItVAe-.mjs";
14
+ import { u as I, l as A, d as lt, b as V, a as F, h as dt, g as yt } from "../hooks-BxkfR-Ff.mjs";
15
+ import { u as ct } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
16
+ import { L as gt } from "../Loader-D3rjKx72.mjs";
17
+ import { M as Ct } from "../MiniWidgetContainer-Cu72GNsE.mjs";
18
+ import { startOfToday as Y } from "date-fns/startOfToday";
19
+ import St from "@mui/material/Button";
20
+ import { useTheme as Tt } from "@mui/material";
21
+ import { e as Mt } from "../exportTransactionsToCSV-CdTF_RqL.mjs";
22
+ import { T as Dt } from "../StatusIndicator-BV3oFzxo.mjs";
23
+ import { T as xt } from "../TransactionDetails-Bbt820BH.mjs";
24
+ import vt from "@mui/material/Collapse";
25
+ import wt from "@mui/material/Divider";
26
+ import q from "@mui/material/List";
27
+ import J from "@mui/material/ListItem";
28
+ import Q from "@mui/material/ListItemButton";
29
+ import { u as Lt } from "../useScreenSize-B6JyS_Lj.mjs";
30
+ import { D as Z } from "../Drawer-DV4NTsFg.mjs";
31
+ import { b as v } from "../Category-CevNQ03n.mjs";
32
+ import { parseISO as tt } from "date-fns/parseISO";
33
+ import { A as et } from "../Analytics-BYItVAe-.mjs";
34
34
  import { W as It } from "../WidgetContainer-B0ncgABX.mjs";
35
- const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C, { direction: "column", children: [
35
+ const B = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(C, { direction: "column", children: [
36
36
  /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: d }),
37
37
  /* @__PURE__ */ t(T, { variant: "XSmall", children: R(n, o === "mini" ? "0,0" : "0,0.00") })
38
38
  ] }), At = () => {
39
- const n = yt(), { goals: d, spending: o } = I(), { categories: a, dateRangeCategoryTotals: i } = A(), g = l.useMemo(
39
+ const n = _t(), { goals: d, spending: o } = I(), { categories: a, dateRangeCategoryTotals: i } = A(), c = l.useMemo(
40
40
  () => [
41
41
  n.palette.chartMono.chartMono5,
42
42
  n.palette.chartMono.chartMono4,
@@ -46,24 +46,24 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
46
46
  n.palette.chartMono.chartMono6
47
47
  ],
48
48
  [n]
49
- ), [e, r] = l.useState(""), [p, y] = l.useState(0), u = l.useMemo(
50
- () => st(a, d, n, i),
49
+ ), [e, r] = l.useState(""), [g, b] = l.useState(0), u = l.useMemo(
50
+ () => rt(a, d, n, i),
51
51
  [a, i]
52
52
  ), m = l.useMemo(
53
- () => lt(a, i, g),
54
- [a, i, g]
53
+ () => st(a, i, c),
54
+ [a, i, c]
55
55
  ), M = (f, D) => {
56
- y(D), r("");
57
- }, b = (f) => {
56
+ b(D), r("");
57
+ }, y = (f) => {
58
58
  r(e === f ? "" : f);
59
59
  };
60
- return /* @__PURE__ */ c(L, { width: "100%", children: [
61
- /* @__PURE__ */ c(
62
- rt,
60
+ return /* @__PURE__ */ p(w, { width: "100%", children: [
61
+ /* @__PURE__ */ p(
62
+ it,
63
63
  {
64
64
  "aria-label": o.mini_title,
65
65
  onChange: M,
66
- value: p,
66
+ value: g,
67
67
  variant: "fullWidth",
68
68
  children: [
69
69
  /* @__PURE__ */ t(
@@ -72,14 +72,14 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
72
72
  "aria-controls": "spending-tabpanel",
73
73
  id: "spending-tab",
74
74
  label: /* @__PURE__ */ t(
75
- O,
75
+ B,
76
76
  {
77
77
  amount: u.totalAmount,
78
78
  label: o.spend_tab_title,
79
79
  variant: "mini"
80
80
  }
81
81
  ),
82
- tabIndex: p === 0 ? 0 : -1
82
+ tabIndex: g === 0 ? 0 : -1
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ t(
@@ -88,125 +88,129 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
88
88
  "aria-controls": "income-tabpanel",
89
89
  id: "income-tab",
90
90
  label: /* @__PURE__ */ t(
91
- O,
91
+ B,
92
92
  {
93
93
  amount: m.totalAmount,
94
94
  label: o.income_tab_title,
95
95
  variant: "mini"
96
96
  }
97
97
  ),
98
- tabIndex: p === 1 ? 0 : -1
98
+ tabIndex: g === 1 ? 0 : -1
99
99
  }
100
100
  )
101
101
  ]
102
102
  }
103
103
  ),
104
104
  /* @__PURE__ */ t(
105
- L,
105
+ w,
106
106
  {
107
107
  "aria-labelledby": "spending-tab",
108
- hidden: p !== 0,
108
+ hidden: g !== 0,
109
109
  id: "spending-tabpanel",
110
110
  role: "tabpanel",
111
- children: /* @__PURE__ */ c(C, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
111
+ children: /* @__PURE__ */ p(C, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
112
112
  /* @__PURE__ */ t(
113
113
  $,
114
114
  {
115
115
  data: u,
116
- onSelected: b,
116
+ onSelected: y,
117
117
  selectedId: e,
118
118
  totalLabel: o.total_spending
119
119
  }
120
120
  ),
121
- /* @__PURE__ */ t(Y, { data: u, onSelected: b, selectedId: e })
121
+ /* @__PURE__ */ t(X, { data: u, onSelected: y, selectedId: e })
122
122
  ] })
123
123
  }
124
124
  ),
125
125
  /* @__PURE__ */ t(
126
- L,
126
+ w,
127
127
  {
128
128
  "aria-labelledby": "income-tab",
129
- hidden: p !== 1,
129
+ hidden: g !== 1,
130
130
  id: "income-tabpanel",
131
131
  role: "tabpanel",
132
- children: /* @__PURE__ */ c(C, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
132
+ children: /* @__PURE__ */ p(C, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
133
133
  /* @__PURE__ */ t(
134
134
  $,
135
135
  {
136
136
  data: m,
137
137
  isIncome: !0,
138
- onSelected: b,
138
+ onSelected: y,
139
139
  selectedId: e,
140
140
  totalLabel: o.total_income
141
141
  }
142
142
  ),
143
- /* @__PURE__ */ t(Y, { data: m, onSelected: b, selectedId: e })
143
+ /* @__PURE__ */ t(X, { data: m, onSelected: y, selectedId: e })
144
144
  ] })
145
145
  }
146
146
  )
147
147
  ] });
148
- }, Et = v(At), Wt = ({ onPrimaryCtaClick: n, sx: d = {} }) => {
149
- const { isAccountDataLoaded: o, loadAccountData: a } = ct(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = A(), { spending: p } = I(), { isInitialized: y, selectedAccounts: u } = z();
150
- return gt({
148
+ }, Et = L(At), Wt = ({ onPrimaryCtaClick: n, sx: d = {} }) => {
149
+ const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { dateRangeTotalsLoaded: i, categoriesLoaded: c, loadCategories: e, loadDateRangeCategoryTotals: r } = A(), { spending: g } = I(), { isInitialized: b, selectedAccounts: u } = V();
150
+ return ct({
151
151
  widgetName: "SpendingMiniWidget",
152
152
  isLoaded: i
153
153
  }), l.useEffect(() => {
154
- o || a().finally(), g || e().finally();
154
+ o || a().finally(), c || e().finally();
155
155
  }, []), l.useEffect(() => {
156
156
  r(
157
157
  u,
158
- at(/* @__PURE__ */ new Date()),
159
- it(/* @__PURE__ */ new Date())
158
+ ot(/* @__PURE__ */ new Date()),
159
+ at(/* @__PURE__ */ new Date())
160
160
  ).finally();
161
- }, [u]), y ? /* @__PURE__ */ t(
162
- St,
161
+ }, [u]), b ? /* @__PURE__ */ t(
162
+ Ct,
163
163
  {
164
164
  className: "mx-exp-spending-miniwidget",
165
165
  onPrimaryCtaClick: n,
166
- primaryCtaLabel: p.primary_cta,
166
+ primaryCtaLabel: g.primary_cta,
167
167
  sx: { height: "100%", ...d },
168
- title: p.mini_title,
168
+ title: g.mini_title,
169
169
  children: /* @__PURE__ */ t(Et, {})
170
170
  }
171
- ) : /* @__PURE__ */ t(pt, {});
172
- }, Ce = v(Wt), Rt = ({
171
+ ) : /* @__PURE__ */ t(gt, {});
172
+ }, Ce = L(Wt), Rt = ({
173
173
  data: n,
174
174
  onSelected: d,
175
175
  selectedId: o = "",
176
176
  title: a
177
177
  }) => {
178
- const { spending: i } = I(), g = n.categoryData.find((e) => e.guid === o);
179
- return /* @__PURE__ */ c(C, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
178
+ const { spending: i } = I(), c = n.categoryData.find((e) => e.guid === o);
179
+ return /* @__PURE__ */ p(C, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
180
180
  /* @__PURE__ */ t(T, { bold: !0, id: "spending-list-title", sx: { py: 12 }, variant: "h3", children: `${a} ${i.by_category}` }),
181
- /* @__PURE__ */ t(F, { "aria-hidden": "true" }),
182
- /* @__PURE__ */ t(J, { "aria-labelledby": "spending-list-title", children: n.categoryData.map((e) => /* @__PURE__ */ c(l.Fragment, { children: [
181
+ /* @__PURE__ */ t(wt, { "aria-hidden": "true" }),
182
+ /* @__PURE__ */ t(q, { "aria-labelledby": "spending-list-title", children: n.categoryData.map((e) => /* @__PURE__ */ p(l.Fragment, { children: [
183
183
  /* @__PURE__ */ t(
184
- Q,
184
+ J,
185
185
  {
186
186
  disableGutters: !0,
187
187
  disablePadding: !0,
188
188
  sx: {
189
+ borderBottom: 1,
190
+ borderColor: "divider",
189
191
  minHeight: 44
190
192
  },
191
- children: /* @__PURE__ */ c(
192
- Z,
193
+ children: /* @__PURE__ */ p(
194
+ Q,
193
195
  {
194
- "aria-expanded": g?.guid === e.guid,
196
+ "aria-expanded": c?.guid === e.guid,
195
197
  id: `spending-list-category-${e.guid}`,
196
198
  onClick: () => d(e.guid),
197
199
  sx: { minHeight: 44, px: 8, py: 0 },
198
200
  children: [
199
201
  /* @__PURE__ */ t(
200
- L,
202
+ w,
201
203
  {
204
+ "aria-hidden": "true",
202
205
  borderRadius: 4,
203
206
  flexShrink: 0,
204
207
  height: 8,
208
+ role: "presentation",
205
209
  sx: { backgroundColor: e.color, mr: 8 },
206
210
  width: 8
207
211
  }
208
212
  ),
209
- /* @__PURE__ */ c(
213
+ /* @__PURE__ */ p(
210
214
  C,
211
215
  {
212
216
  alignItems: "center",
@@ -224,47 +228,43 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
224
228
  )
225
229
  }
226
230
  ),
227
- /* @__PURE__ */ t(F, {}),
228
- e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(Lt, { in: g?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ c(J, { children: [
229
- g?.categoryTotals?.map((r) => /* @__PURE__ */ t(
230
- Q,
231
- {
232
- sx: {
233
- pl: 12,
234
- py: 0
235
- },
236
- children: /* @__PURE__ */ t(
237
- Z,
238
- {
239
- id: `spending-list-subcategory-${r.guid}`,
240
- onClick: () => d(r.guid, !0),
241
- sx: { minHeight: 44, px: 8, py: 0 },
242
- children: /* @__PURE__ */ c(C, { direction: "row", justifyContent: "space-between", width: "100%", children: [
243
- /* @__PURE__ */ c(T, { children: [
244
- r.name,
245
- " "
246
- ] }),
247
- /* @__PURE__ */ t(T, { children: R(r.amount, "0,0.00") })
248
- ] })
249
- }
250
- )
231
+ e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(vt, { in: c?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ t(q, { sx: { borderBottom: 1, borderColor: "divider" }, children: c?.categoryTotals?.map((r) => /* @__PURE__ */ t(
232
+ J,
233
+ {
234
+ sx: {
235
+ pl: 12,
236
+ py: 0
251
237
  },
252
- r.guid
253
- )),
254
- /* @__PURE__ */ t(F, {})
255
- ] }) })
238
+ children: /* @__PURE__ */ t(
239
+ Q,
240
+ {
241
+ id: `spending-list-subcategory-${r.guid}`,
242
+ onClick: () => d(r.guid, !0),
243
+ sx: { minHeight: 44, px: 8, py: 0 },
244
+ children: /* @__PURE__ */ p(C, { direction: "row", justifyContent: "space-between", width: "100%", children: [
245
+ /* @__PURE__ */ p(T, { children: [
246
+ r.name,
247
+ " "
248
+ ] }),
249
+ /* @__PURE__ */ t(T, { children: R(r.amount, "0,0.00") })
250
+ ] })
251
+ }
252
+ )
253
+ },
254
+ r.guid
255
+ )) }) })
256
256
  ] }, e.guid)) }),
257
257
  /* @__PURE__ */ t(T, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${i.total}: ${R(n.totalAmount, "0,0.00")}` })
258
258
  ] });
259
- }, Nt = v(Rt), $t = ({
259
+ }, Nt = L(Rt), $t = ({
260
260
  data: n,
261
261
  onSelected: d,
262
262
  onViewTransactions: o,
263
263
  selectedId: a,
264
264
  title: i
265
265
  }) => {
266
- const { isDesktop: g, isMobile: e } = vt(), { dateRangeTotalsLoading: r } = A(), { spending: p } = I();
267
- return /* @__PURE__ */ c(
266
+ const { isDesktop: c, isMobile: e } = Lt(), { dateRangeTotalsLoading: r } = A(), { spending: g } = I();
267
+ return /* @__PURE__ */ p(
268
268
  C,
269
269
  {
270
270
  alignItems: e ? "center" : "flex-start",
@@ -285,7 +285,7 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
285
285
  onSelected: () => {
286
286
  },
287
287
  selectedId: "",
288
- size: g ? 400 : 300,
288
+ size: c ? 400 : 300,
289
289
  totalLabel: "Loading ...",
290
290
  variant: "full"
291
291
  }
@@ -299,8 +299,8 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
299
299
  },
300
300
  onViewTransactions: o,
301
301
  selectedId: a,
302
- size: g ? 400 : 300,
303
- totalLabel: p.total_amount,
302
+ size: c ? 400 : 300,
303
+ totalLabel: g.total_amount,
304
304
  variant: "full"
305
305
  }
306
306
  ),
@@ -308,81 +308,81 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
308
308
  ]
309
309
  }
310
310
  );
311
- }, ot = v($t), Ot = (n) => [
311
+ }, nt = L($t), Bt = (n) => [
312
312
  n.palette.chartMono.chartMono5,
313
313
  n.palette.chartMono.chartMono4,
314
314
  n.palette.chartMono.chartMono3,
315
315
  n.palette.chartMono.chartMono2,
316
316
  n.palette.chartMono.chartMono1,
317
317
  n.palette.chartMono.chartMono6
318
- ], kt = () => {
319
- const n = Mt(), { is_mobile_webview: d } = V(), { clientConfig: o } = V(), { categories: a, dateRangeCategoryTotals: i } = A(), {
320
- goals: g,
318
+ ], Ot = () => {
319
+ const n = Tt(), { is_mobile_webview: d } = F(), { clientConfig: o } = F(), { categories: a, dateRangeCategoryTotals: i } = A(), {
320
+ goals: c,
321
321
  spending: e,
322
322
  transactions: r
323
- } = I(), { displayedDateRange: p, selectedAccountGuids: y } = z(), {
323
+ } = I(), { displayedDateRange: g, selectedAccountGuids: b } = V(), {
324
324
  setFilter: u,
325
325
  sortedTransactions: m,
326
326
  sortedTransactionsWithSplits: M,
327
- tags: b
328
- } = dt(), f = o?.master?.deep_link_params?.account_guids, D = o?.master?.deep_link_params?.view, [x, E] = l.useState(""), [_, W] = l.useState(D === "income" ? 1 : 0), [H, P] = l.useState(""), [ut, k] = l.useState(!1), B = l.useMemo(
329
- () => st(a, g, n, i),
327
+ tags: y
328
+ } = dt(), f = o?.master?.deep_link_params?.account_guids, D = o?.master?.deep_link_params?.view, [x, E] = l.useState(""), [_, W] = l.useState(D === "income" ? 1 : 0), [z, H] = l.useState(""), [pt, O] = l.useState(!1), k = l.useMemo(
329
+ () => rt(a, c, n, i),
330
330
  [a, i]
331
- ), K = l.useMemo(
332
- () => lt(a, i, Ot(n)),
331
+ ), P = l.useMemo(
332
+ () => st(a, i, Bt(n)),
333
333
  [a, i]
334
334
  ), G = l.useMemo(
335
- () => m.find((s) => s.guid === H),
336
- [H, m]
337
- ), mt = (s, S) => {
335
+ () => m.find((s) => s.guid === z),
336
+ [z, m]
337
+ ), ut = (s, S) => {
338
338
  W(S), E("");
339
- }, U = (s, S = !1) => {
340
- S ? ht(s) : E(x === s || s === "0" ? "" : s);
341
- }, ht = (s) => {
339
+ }, K = (s, S = !1) => {
340
+ S ? mt(s) : E(x === s || s === "0" ? "" : s);
341
+ }, mt = (s) => {
342
342
  u({
343
343
  ...{
344
- accounts: f || y,
345
- dateRange: p
344
+ accounts: f || b,
345
+ dateRange: g
346
346
  },
347
347
  custom: (h) => x === "other" ? h.top_level_category_guid === s : h.category_guid === s,
348
348
  showSplits: !0
349
- }), k(!0);
350
- }, X = (s) => {
349
+ }), O(!0);
350
+ }, U = (s) => {
351
351
  const S = {
352
- accounts: f || y,
353
- dateRange: p
352
+ accounts: f || b,
353
+ dateRange: g
354
354
  };
355
355
  if (_ === 0)
356
356
  if (s === "other") {
357
- const h = B.categoryData.find((j) => j.guid === "other");
357
+ const h = k.categoryData.find((j) => j.guid === "other");
358
358
  u({
359
359
  ...S,
360
- custom: (j) => !!h?.categoryTotals?.find((_t) => _t.guid === j.top_level_category_guid)
360
+ custom: (j) => !!h?.categoryTotals?.find((ft) => ft.guid === j.top_level_category_guid)
361
361
  });
362
362
  } else
363
363
  u({
364
364
  ...S,
365
- custom: (h) => s ? h.top_level_category_guid === s : h.top_level_category_guid !== w.INCOME && h.category_guid !== w.INCOME && h.top_level_category_guid !== w.INVESTMENTS && h.top_level_category_guid !== w.TRANSFER,
365
+ custom: (h) => s ? h.top_level_category_guid === s : h.top_level_category_guid !== v.INCOME && h.category_guid !== v.INCOME && h.top_level_category_guid !== v.INVESTMENTS && h.top_level_category_guid !== v.TRANSFER,
366
366
  showSplits: !!s
367
367
  });
368
368
  else
369
369
  u({
370
370
  ...S,
371
- custom: (h) => s ? h.category_guid === s : h.category_guid === w.INCOME || h.top_level_category_guid === w.INCOME
371
+ custom: (h) => s ? h.category_guid === s : h.category_guid === v.INCOME || h.top_level_category_guid === v.INCOME
372
372
  });
373
- k(!0);
374
- }, ft = () => {
375
- Dt(M, b);
373
+ O(!0);
374
+ }, ht = () => {
375
+ Mt(M, y);
376
376
  };
377
- return /* @__PURE__ */ c(L, { children: [
378
- /* @__PURE__ */ c(rt, { onChange: mt, value: _, variant: "fullWidth", children: [
377
+ return /* @__PURE__ */ p(w, { children: [
378
+ /* @__PURE__ */ p(it, { onChange: ut, value: _, variant: "fullWidth", children: [
379
379
  /* @__PURE__ */ t(
380
380
  N,
381
381
  {
382
382
  label: /* @__PURE__ */ t(
383
- O,
383
+ B,
384
384
  {
385
- amount: B.totalAmount,
385
+ amount: k.totalAmount,
386
386
  label: e.spend_tab_title
387
387
  }
388
388
  )
@@ -392,9 +392,9 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
392
392
  N,
393
393
  {
394
394
  label: /* @__PURE__ */ t(
395
- O,
395
+ B,
396
396
  {
397
- amount: K.totalAmount,
397
+ amount: P.totalAmount,
398
398
  label: e.income_tab_title
399
399
  }
400
400
  )
@@ -402,65 +402,65 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
402
402
  )
403
403
  ] }),
404
404
  _ === 0 && /* @__PURE__ */ t(
405
- ot,
405
+ nt,
406
406
  {
407
- data: B,
408
- onSelected: U,
409
- onViewTransactions: X,
407
+ data: k,
408
+ onSelected: K,
409
+ onViewTransactions: U,
410
410
  selectedId: x,
411
411
  title: e.spend_tab_title
412
412
  }
413
413
  ),
414
414
  _ === 1 && /* @__PURE__ */ t(
415
- ot,
415
+ nt,
416
416
  {
417
- data: K,
418
- onSelected: U,
419
- onViewTransactions: X,
417
+ data: P,
418
+ onSelected: K,
419
+ onViewTransactions: U,
420
420
  selectedId: x,
421
421
  title: e.income_tab_title
422
422
  }
423
423
  ),
424
424
  /* @__PURE__ */ t(
425
- tt,
425
+ Z,
426
426
  {
427
427
  ariaLabelClose: e.close_drawer_aria,
428
- isOpen: ut,
429
- onClose: () => k(!1),
428
+ isOpen: pt,
429
+ onClose: () => O(!1),
430
430
  title: e.transactions_drawer_title,
431
- children: /* @__PURE__ */ c(C, { children: [
431
+ children: /* @__PURE__ */ p(C, { children: [
432
432
  !d && m.length > 0 && /* @__PURE__ */ t(C, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ t(
433
- Tt,
433
+ St,
434
434
  {
435
- onClick: ft,
435
+ onClick: ht,
436
436
  startIcon: /* @__PURE__ */ t(bt, { name: "ios_share" }),
437
437
  variant: "text",
438
438
  children: r.export_csv_btn
439
439
  }
440
440
  ) }),
441
- /* @__PURE__ */ t(xt, { onClick: P })
441
+ /* @__PURE__ */ t(Dt, { onClick: H })
442
442
  ] })
443
443
  }
444
444
  ),
445
445
  /* @__PURE__ */ t(
446
- tt,
446
+ Z,
447
447
  {
448
448
  ariaLabelClose: e.close_drawer_aria,
449
449
  isOpen: !!G,
450
- onClose: () => P(""),
450
+ onClose: () => H(""),
451
451
  title: e.transaction_details_drawer_title,
452
- children: G && /* @__PURE__ */ t(wt, { transaction: G })
452
+ children: G && /* @__PURE__ */ t(xt, { transaction: G })
453
453
  }
454
454
  )
455
455
  ] });
456
- }, Bt = v(kt), Gt = ({ onBackClick: n, sx: d = {} }) => {
457
- const { isAccountDataLoaded: o, loadAccountData: a } = ct(), { categoriesLoaded: i, dateRangeTotalsLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = A(), { isTransactionDataLoaded: p, loadTransactionData: y } = dt(), { spending: u } = I(), { displayedDateRange: m, isInitialized: M, setDisplayedDate: b, selectedAccounts: f } = z(), { onEvent: D } = Ct(), { clientConfig: x } = V();
458
- gt({
456
+ }, kt = L(Ot), Gt = ({ onBackClick: n, sx: d = {} }) => {
457
+ const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { categoriesLoaded: i, dateRangeTotalsLoaded: c, loadCategories: e, loadDateRangeCategoryTotals: r } = A(), { isTransactionDataLoaded: g, loadTransactionData: b } = dt(), { spending: u } = I(), { displayedDateRange: m, isInitialized: M, setDisplayedDate: y, selectedAccounts: f } = V(), { onEvent: D } = yt(), { clientConfig: x } = F();
458
+ ct({
459
459
  widgetName: "SpendingWidget",
460
- isLoaded: g
460
+ isLoaded: c
461
461
  }), l.useEffect(() => {
462
- const _ = x?.master?.deep_link_params, W = _?.date_range ? [et(_.date_range.from), et(_.date_range.to)] : [at(q()), it(q())];
463
- b(W[0], W[1]), o || a().finally(), i || e().finally(), p || y().finally(), D(nt.SPENDING_VIEW);
462
+ const _ = x?.master?.deep_link_params, W = _?.date_range ? [tt(_.date_range.from), tt(_.date_range.to)] : [ot(Y()), at(Y())];
463
+ y(W[0], W[1]), o || a().finally(), i || e().finally(), g || b().finally(), D(et.SPENDING_VIEW);
464
464
  }, []), l.useEffect(() => {
465
465
  M && r(
466
466
  f,
@@ -469,20 +469,20 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
469
469
  ).finally();
470
470
  }, [m, M, f]);
471
471
  const E = (_) => {
472
- b(_[0], _[1]);
472
+ y(_[0], _[1]);
473
473
  };
474
474
  return M ? /* @__PURE__ */ t(
475
475
  It,
476
476
  {
477
477
  calendarActions: { onRangeChanged: E },
478
- onAccountsFilterClick: () => D(nt.SPENDING_CLICK_FILTER),
478
+ onAccountsFilterClick: () => D(et.SPENDING_CLICK_FILTER),
479
479
  onBackClick: n,
480
480
  sx: d,
481
481
  title: u.title,
482
- children: /* @__PURE__ */ t(L, { width: "100%", children: /* @__PURE__ */ t(Bt, {}) })
482
+ children: /* @__PURE__ */ t(w, { width: "100%", children: /* @__PURE__ */ t(kt, {}) })
483
483
  }
484
- ) : /* @__PURE__ */ t(pt, {});
485
- }, Se = v(Gt);
484
+ ) : /* @__PURE__ */ t(gt, {});
485
+ }, Se = L(Gt);
486
486
  export {
487
487
  Ce as SpendingMiniWidget,
488
488
  Se as SpendingWidget
@@ -30,7 +30,7 @@ import $t from "@mui/material/ToggleButton";
30
30
  import zt from "@mui/material/ToggleButtonGroup";
31
31
  import { parseISO as lt } from "date-fns/parseISO";
32
32
  import { H as ke } from "../HeaderCell-DjuifqHJ.mjs";
33
- import { T as G, b as Kt } from "../ViewMoreMicroCard-DirvUT9O.mjs";
33
+ import { T as G, b as Kt } from "../ViewMoreMicroCard-BhG9hCoO.mjs";
34
34
  import { useGridApiContext as Yt, useGridRootProps as jt, DataGridPro as Ut } from "@mui/x-data-grid-pro";
35
35
  import Xt from "@mui/material/Badge";
36
36
  import Zt from "@mui/material/IconButton";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.12.9",
3
+ "version": "7.12.11",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",