@mx-cartographer/experiences 7.12.4 → 7.12.5

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,7 @@
1
+ ## [7.12.5] - 03-18-2026
2
+
3
+ - **FIXED** - ADA color contrast in BudgetDetails zero states
4
+
1
5
  ## [7.12.4] - 03-18-2026
2
6
 
3
7
  - **UPDATED** - Budget Details drawer ally | replace semantic `<H2>` with `<Text>`
@@ -17,8 +17,8 @@ import { endOfMonth as ue } from "date-fns/endOfMonth";
17
17
  import { parseISO as me } from "date-fns/parseISO";
18
18
  import J from "@mui/material/Button";
19
19
  import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
20
- import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-BWdlLG0b.mjs";
21
- import { T as be } from "./TransactionDetails-CzaNtpaw.mjs";
20
+ import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-Bo80rdKq.mjs";
21
+ import { T as be } from "./TransactionDetails-DWZuZgBw.mjs";
22
22
  import { addYears as j } from "date-fns/addYears";
23
23
  import { getDayOfYear as xe } from "date-fns/getDayOfYear";
24
24
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import b from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-CyvCAzdp.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-DE6JV3Mp.mjs";
11
11
  import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactions-CYNpe_RS.mjs";
13
13
  import { A as m } from "./Analytics-BYItVAe-.mjs";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import m from "react";
2
+ import p from "react";
3
3
  import { observer as v } from "mobx-react-lite";
4
4
  import { useVirtualizer as B } from "@tanstack/react-virtual";
5
5
  import T from "@mui/material/Box";
@@ -19,7 +19,7 @@ import { h as ne } from "./DateUtil-wcYTmDRD.mjs";
19
19
  import { L as oe } from "./Loader-D3rjKx72.mjs";
20
20
  import { A as ie } from "./Analytics-BYItVAe-.mjs";
21
21
  const I = () => {
22
- if (!m.useContext(X))
22
+ if (!p.useContext(X))
23
23
  throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
24
24
  return C().uiStore;
25
25
  };
@@ -38,7 +38,7 @@ function ce(e) {
38
38
  });
39
39
  }
40
40
  const le = ({ transaction: e, onClick: r }) => {
41
- const { associatedBeats: n } = C(), { expandedSplits: c } = I(), { transactions: h } = R(), { showInsights: g } = I(), d = e.transaction_type === J.CREDIT, u = m.useMemo(() => n.find((p) => p.associated_transaction_guid === e.guid), [n, e]);
41
+ const { associatedBeats: n } = C(), { expandedSplits: c } = I(), { transactions: h } = R(), { showInsights: g } = I(), d = e.transaction_type === J.CREDIT, u = p.useMemo(() => n.find((m) => m.associated_transaction_guid === e.guid), [n, e]);
42
42
  return (
43
43
  //TODO: implement common/components/ListItemRow.tsx
44
44
  /* @__PURE__ */ o(
@@ -47,7 +47,7 @@ const le = ({ transaction: e, onClick: r }) => {
47
47
  clickEventName: ee.ON_TRANSACTION_LIST_ITEM_CLICK,
48
48
  onClick: r ? () => r(e.guid) : void 0,
49
49
  children: [
50
- /* @__PURE__ */ t(F, { children: e.parent_guid && c.includes(e.parent_guid) ? /* @__PURE__ */ t(m.Fragment, {}) : /* @__PURE__ */ t(
50
+ /* @__PURE__ */ t(F, { children: e.parent_guid && c.includes(e.parent_guid) ? /* @__PURE__ */ t(p.Fragment, {}) : /* @__PURE__ */ t(
51
51
  P,
52
52
  {
53
53
  categoryGuid: e.top_level_category_guid || "",
@@ -70,8 +70,8 @@ const le = ({ transaction: e, onClick: r }) => {
70
70
  {
71
71
  bold: !0,
72
72
  color: "action.active",
73
- onClick: (p) => {
74
- p.stopPropagation(), p.preventDefault(), ce(u.guid);
73
+ onClick: (m) => {
74
+ m.stopPropagation(), m.preventDefault(), ce(u.guid);
75
75
  },
76
76
  variant: "XSmall",
77
77
  children: u.short_title
@@ -106,14 +106,14 @@ const le = ({ transaction: e, onClick: r }) => {
106
106
  }, de = v(le), ue = ({
107
107
  bgcolor: e = "background.default",
108
108
  children: r
109
- }) => /* @__PURE__ */ t(T, { display: "inline-block", sx: { bgcolor: e, py: 6, width: "100%" }, children: /* @__PURE__ */ t(l, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), pe = ({ showIcon: e = !0, showSubtitle: r = !0 }) => {
109
+ }) => /* @__PURE__ */ t(T, { display: "inline-block", sx: { bgcolor: e, py: 6, width: "100%" }, children: /* @__PURE__ */ t(l, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), me = ({ showIcon: e = !0, showSubtitle: r = !0 }) => {
110
110
  const { transactions: n } = R();
111
- return /* @__PURE__ */ o(s, { alignItems: "center", gap: 12, height: "auto", mt: 24, children: [
112
- e && /* @__PURE__ */ t(re, { color: "secondary", sx: { fontSize: 32 } }),
113
- /* @__PURE__ */ t(l, { bold: !0, color: "secondary", variant: "Small", children: n.zero_state_no_transactions }),
114
- r && /* @__PURE__ */ t(l, { color: "secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
111
+ return /* @__PURE__ */ o(s, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
112
+ e && /* @__PURE__ */ t(re, { color: "action", sx: { fontSize: 32 } }),
113
+ /* @__PURE__ */ t(l, { bold: !0, color: "text.secondary", variant: "Small", children: n.zero_state_no_transactions }),
114
+ r && /* @__PURE__ */ t(l, { color: "text.secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
115
115
  ] });
116
- }, me = v(pe), L = (e, r) => {
116
+ }, pe = v(me), L = (e, r) => {
117
117
  const n = S(r[e].date), c = S(r[e - 1]?.date);
118
118
  return !z(n, c);
119
119
  }, he = (e, r) => {
@@ -128,12 +128,12 @@ const le = ({ transaction: e, onClick: r }) => {
128
128
  showInsights: g = !1,
129
129
  showLoader: d = !1,
130
130
  showHiddenTransactions: u = !1,
131
- transaction: p,
131
+ transaction: m,
132
132
  width: D = "100%",
133
- zeroState: O = /* @__PURE__ */ t(me, {})
133
+ zeroState: O = /* @__PURE__ */ t(pe, {})
134
134
  }) => {
135
- const { isLoading: b, sortedTransactions: y } = C(), f = m.useMemo(() => {
136
- const i = r ? y.filter(r) : y, a = p ?? i;
135
+ const { isLoading: b, sortedTransactions: y } = C(), f = p.useMemo(() => {
136
+ const i = r ? y.filter(r) : y, a = m ?? i;
137
137
  return u ? a : a.filter((x) => !x.is_hidden);
138
138
  }, [y, u]), { clearExpandedSplits: k, setShowInsights: G, toggleSplit: V } = I(), { onEvent: M } = K(), $ = (i) => {
139
139
  const a = f.find((x) => x.guid === i);
@@ -145,13 +145,13 @@ const le = ({ transaction: e, onClick: r }) => {
145
145
  account_guid: a?.account_guid,
146
146
  transaction_guid: i
147
147
  }), h?.(i);
148
- }, E = m.useRef(null), _ = B({
148
+ }, E = p.useRef(null), _ = B({
149
149
  count: f.length,
150
150
  getScrollElement: () => E.current,
151
151
  estimateSize: (i) => A + (L(i, f) ? N : 0),
152
152
  overscan: 5
153
153
  });
154
- return m.useEffect(() => _.measure(), [f]), m.useEffect(() => G(g), [g]), m.useEffect(() => () => k(), []), /* @__PURE__ */ t(W, { sx: { width: D }, children: /* @__PURE__ */ t(T, { height: n, overflow: "auto", ref: E, width: D, children: /* @__PURE__ */ o(
154
+ return p.useEffect(() => _.measure(), [f]), p.useEffect(() => G(g), [g]), p.useEffect(() => () => k(), []), /* @__PURE__ */ t(W, { sx: { width: D }, children: /* @__PURE__ */ t(T, { height: n, overflow: "auto", ref: E, width: D, children: /* @__PURE__ */ o(
155
155
  T,
156
156
  {
157
157
  height: (
@@ -202,8 +202,8 @@ const le = ({ transaction: e, onClick: r }) => {
202
202
  leftLabel: g,
203
203
  percentComplete: d = 0,
204
204
  rightLabel: u,
205
- sx: p
206
- }) => /* @__PURE__ */ t(s, { sx: { p: 24, width: "100%", ...p }, children: /* @__PURE__ */ o(s, { className: "details-container", sx: { gap: 16 }, children: [
205
+ sx: m
206
+ }) => /* @__PURE__ */ t(s, { sx: { p: 24, width: "100%", ...m }, children: /* @__PURE__ */ o(s, { className: "details-container", sx: { gap: 16 }, children: [
207
207
  /* @__PURE__ */ o(s, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
208
208
  /* @__PURE__ */ t(T, { children: c }),
209
209
  /* @__PURE__ */ o(s, { children: [
@@ -29,7 +29,7 @@ import { f as Me, D as ke } from "./DateFormats-BMpMrZpW.mjs";
29
29
  import z from "@mui/material/ListItemButton";
30
30
  import W from "@mui/material/ListItemIcon";
31
31
  import { a as Pe } from "./CategorySelectorDrawer-wfUTIbLR.mjs";
32
- import { b as et, T as tt, u as J } from "./StatusIndicator-BWdlLG0b.mjs";
32
+ import { b as et, T as tt, u as J } from "./StatusIndicator-Bo80rdKq.mjs";
33
33
  import { D as q } from "./Dialog-Ck34yr-d.mjs";
34
34
  import { b as N } from "./Localization-CPkpIwIx.mjs";
35
35
  import { getUnixTime as rt } from "date-fns/getUnixTime";
@@ -55,8 +55,8 @@ import e3 from "@mui/material/AlertTitle";
55
55
  import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
58
- import { T as a3 } from "../StatusIndicator-BWdlLG0b.mjs";
59
- import { T as s3 } from "../TransactionDetails-CzaNtpaw.mjs";
58
+ import { T as a3 } from "../StatusIndicator-Bo80rdKq.mjs";
59
+ import { T as s3 } from "../TransactionDetails-DWZuZgBw.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
62
62
  import { C as l3 } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
@@ -6,7 +6,7 @@ import { isAfter as Ke } from "date-fns/isAfter";
6
6
  import { startOfMonth as re } from "date-fns/startOfMonth";
7
7
  import { startOfToday as oe } from "date-fns/startOfToday";
8
8
  import Se from "@mui/material/Alert";
9
- import Ae from "@mui/material/Snackbar";
9
+ import xe from "@mui/material/Snackbar";
10
10
  import v from "@mui/material/Stack";
11
11
  import ie from "@mui/material/styles/useTheme";
12
12
  import K from "@mui/material/Box";
@@ -31,13 +31,13 @@ import qe from "@mui/material/Tooltip";
31
31
  import { useTheme as $e, alpha as Je } from "@mui/material/styles";
32
32
  import { u as me } from "../useScreenSize-B6JyS_Lj.mjs";
33
33
  import { L as ge } from "../Loader-D3rjKx72.mjs";
34
- import { E as _e } from "../EmptyState-DHAkGsjk.mjs";
34
+ import { E as ye } from "../EmptyState-DHAkGsjk.mjs";
35
35
  import { A as P } from "../Analytics-BYItVAe-.mjs";
36
36
  import De from "@mui/material/Tab";
37
37
  import Qe from "@mui/material/Tabs";
38
38
  import { e as et } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
39
- import { T as xe } from "../StatusIndicator-BWdlLG0b.mjs";
40
- import { T as tt, c as nt } from "../TransactionDetails-CzaNtpaw.mjs";
39
+ import { T as Ae } from "../StatusIndicator-Bo80rdKq.mjs";
40
+ import { T as tt, c as nt } from "../TransactionDetails-DWZuZgBw.mjs";
41
41
  import ve from "@mui/material/Card";
42
42
  import Te from "@mui/material/CardContent";
43
43
  import { S as Be } from "../StatusBar-BK_uYHAB.mjs";
@@ -46,7 +46,7 @@ import { u as ot, b as at } from "../CategorySelectorDrawer-wfUTIbLR.mjs";
46
46
  import Ge from "@mui/material/CardHeader";
47
47
  import { subDays as rt } from "date-fns/subDays";
48
48
  import st from "@mui/material/IconButton";
49
- import { M as it } from "../ManageIncome-CyvCAzdp.mjs";
49
+ import { M as it } from "../ManageIncome-DE6JV3Mp.mjs";
50
50
  import { u as je } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
51
51
  import { W as ct } from "../WidgetContainer-B0ncgABX.mjs";
52
52
  import { u as lt, g as dt, C as ut } from "../BudgetUtil--_QXyszn.mjs";
@@ -180,7 +180,7 @@ const gt = w(() => {
180
180
  )) }) }),
181
181
  /* @__PURE__ */ e(ht, { onRecalculateBudgets: o })
182
182
  ] });
183
- }), we = 5, Fe = 100, se = 25, yt = (t) => {
183
+ }), we = 5, Fe = 100, se = 25, _t = (t) => {
184
184
  const o = (a) => {
185
185
  a.active || t.alphaTarget(0.3).restart(), a.subject.fx = a.subject.x, a.subject.fy = a.subject.y;
186
186
  }, i = (a) => {
@@ -189,13 +189,13 @@ const gt = w(() => {
189
189
  a.active || t.alphaTarget(0), a.subject.fx = null, a.subject.fy = null;
190
190
  };
191
191
  return M.drag().on("start", o).on("drag", i).on("end", s);
192
- }, _t = (t) => {
192
+ }, yt = (t) => {
193
193
  let o = t.transaction_total / t.amount;
194
194
  o < 0 ? o = 0 : o > 1 && (o = 1);
195
195
  const i = o * 2 * Math.PI, s = M.interpolate(0, i), a = M.arc().cornerRadius(5).innerRadius(t.radius - we * 2).outerRadius(t.radius - we).startAngle(0).endAngle(0);
196
196
  return (r) => (a.endAngle(s(r)), a(t) || "");
197
197
  }, bt = (t) => {
198
- M.selectAll(".bubble").call(yt(t));
198
+ M.selectAll(".bubble").call(_t(t));
199
199
  }, Ie = (t, o, i) => Math.min(Math.max(t, o), i), Ct = (t, o, i) => {
200
200
  t.alpha(1).restart().force(
201
201
  "x",
@@ -233,11 +233,11 @@ const gt = w(() => {
233
233
  u = Math.min(Fe, h, b);
234
234
  }
235
235
  return r && t <= 3 && (u = Math.min(u, 45)), { minRadius: Math.max(20, u * 0.6), maxRadius: u };
236
- }, At = (t, o, i, s, a) => {
236
+ }, xt = (t, o, i, s, a) => {
237
237
  const { maxRadius: r, minRadius: n } = St(t, o, a);
238
238
  return M.scaleLinear().domain([s, i]).range([n, r]);
239
- }, xt = (t, o, i = !1, s, a) => {
240
- const r = o.map((d) => Math.max(d.transaction_total, d.amount)), n = Math.min(...r), c = Math.max(...r), g = i ? At(t.length, s, c, n, a) : Ue(n, c);
239
+ }, At = (t, o, i = !1, s, a) => {
240
+ const r = o.map((d) => Math.max(d.transaction_total, d.amount)), n = Math.min(...r), c = Math.max(...r), g = i ? xt(t.length, s, c, n, a) : Ue(n, c);
241
241
  return t.map((d) => ({
242
242
  ...d,
243
243
  radius: g(Math.max(d.transaction_total, d.amount))
@@ -251,7 +251,7 @@ const gt = w(() => {
251
251
  transaction_total: n
252
252
  } = t, c = `mercury-${s}`;
253
253
  l.useEffect(() => {
254
- M.select(`.${c}`).selectAll(".status").remove(), M.select(`.${c}`).append("path").transition().duration(vt).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => _t(t));
254
+ M.select(`.${c}`).selectAll(".status").remove(), M.select(`.${c}`).append("path").transition().duration(vt).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => yt(t));
255
255
  }, [i, r, n]);
256
256
  const g = M.arc().innerRadius((d) => d - 2 * Oe).outerRadius((d) => d - Oe).startAngle(0).endAngle(2 * Math.PI);
257
257
  return /* @__PURE__ */ e("g", { className: c, children: /* @__PURE__ */ e(
@@ -280,14 +280,14 @@ function Et({ bubble: t, isDraggable: o, onClick: i = () => {
280
280
  category: { icon: u, name: p },
281
281
  guid: h,
282
282
  description: b,
283
- radius: y,
284
- x: _,
285
- y: x
286
- } = t, A = n < 400 ? -8 : -12;
287
- let C = A, f = A;
288
- y > F ? (C = -14, f = -45) : y > be && (f = -32);
283
+ radius: _,
284
+ x: y,
285
+ y: A
286
+ } = t, x = n < 400 ? -8 : -12;
287
+ let C = x, f = x;
288
+ _ > F ? (C = -14, f = -45) : _ > be && (f = -32);
289
289
  let S = 32;
290
- y <= F && (S = n < 400 ? 16 : 24);
290
+ _ <= F && (S = n < 400 ? 16 : 24);
291
291
  const I = `${t.category.name}: ${b}`, L = {
292
292
  modifiers: [
293
293
  {
@@ -318,8 +318,8 @@ function Et({ bubble: t, isDraggable: o, onClick: i = () => {
318
318
  style: { cursor: o ? "pointer" : "default" },
319
319
  tabIndex: 0,
320
320
  textAnchor: "middle",
321
- x: _,
322
- y: x,
321
+ x: y,
322
+ y: A,
323
323
  children: [
324
324
  /* @__PURE__ */ e("style", { children: `
325
325
  .bubble:focus,
@@ -333,9 +333,9 @@ function Et({ bubble: t, isDraggable: o, onClick: i = () => {
333
333
  stroke-opacity: 0.8;
334
334
  }
335
335
  ` }),
336
- /* @__PURE__ */ e(qe, { open: s, slotProps: { popper: L }, title: I, children: /* @__PURE__ */ e("circle", { fill: g, id: `circle-${h}`, r: y }) }),
336
+ /* @__PURE__ */ e(qe, { open: s, slotProps: { popper: L }, title: I, children: /* @__PURE__ */ e("circle", { fill: g, id: `circle-${h}`, r: _ }) }),
337
337
  /* @__PURE__ */ e("svg", { x: C, y: f, children: /* @__PURE__ */ e(j, { name: u, size: S, sx: { fill: d } }) }),
338
- y > F && /* @__PURE__ */ e(
338
+ _ > F && /* @__PURE__ */ e(
339
339
  B,
340
340
  {
341
341
  bold: !0,
@@ -347,7 +347,7 @@ function Et({ bubble: t, isDraggable: o, onClick: i = () => {
347
347
  children: p
348
348
  }
349
349
  ),
350
- y > be && /* @__PURE__ */ e(
350
+ _ > be && /* @__PURE__ */ e(
351
351
  B,
352
352
  {
353
353
  bold: !0,
@@ -355,11 +355,11 @@ function Et({ bubble: t, isDraggable: o, onClick: i = () => {
355
355
  id: `budget-description-${h}-1`,
356
356
  sx: { fill: d },
357
357
  variant: "Body",
358
- y: y <= F ? 12 : 24,
359
- children: y <= F ? b.split(" ")[0] : b
358
+ y: _ <= F ? 12 : 24,
359
+ children: _ <= F ? b.split(" ")[0] : b
360
360
  }
361
361
  ),
362
- y <= F && y > be && /* @__PURE__ */ e(
362
+ _ <= F && _ > be && /* @__PURE__ */ e(
363
363
  B,
364
364
  {
365
365
  component: "text",
@@ -386,14 +386,14 @@ const wt = ({
386
386
  const [a, r] = l.useState([]), n = l.useRef(null), c = l.useRef(!1), { detailedBudgets: g } = E(), d = l.useCallback(() => {
387
387
  const u = n.current, p = Bt(g), h = p.nodes();
388
388
  if (u) {
389
- const b = u.nodes(), y = new Map(b.map((_) => [_.guid, _]));
390
- h.forEach((_) => {
391
- const x = y.get(_.guid);
392
- x && Object.assign(_, {
393
- vx: x.vx,
394
- vy: x.vy,
395
- x: x.x,
396
- y: x.y
389
+ const b = u.nodes(), _ = new Map(b.map((y) => [y.guid, y]));
390
+ h.forEach((y) => {
391
+ const A = _.get(y.guid);
392
+ A && Object.assign(y, {
393
+ vx: A.vx,
394
+ vy: A.vy,
395
+ x: A.x,
396
+ y: A.y
397
397
  });
398
398
  });
399
399
  }
@@ -406,7 +406,7 @@ const wt = ({
406
406
  }, []), l.useEffect(() => {
407
407
  const u = n.current;
408
408
  if (!u) return;
409
- const p = u.nodes(), h = o > 0 && o < 450 || t > 0 && t < 300, b = xt(p, g, h, t, o);
409
+ const p = u.nodes(), h = o > 0 && o < 450 || t > 0 && t < 300, b = At(p, g, h, t, o);
410
410
  u.nodes(b), Ct(u, t, o), i && setTimeout(() => {
411
411
  bt(u);
412
412
  }, 0), r([...b]);
@@ -416,19 +416,19 @@ const wt = ({
416
416
  onConnectAccountsClick: o,
417
417
  createBudgetOnClick: i
418
418
  }) => {
419
- const { config: s } = Le(), { recalculateBudgets: a } = E(), { spendCategories: r } = Y(), { budgets: n } = D(), { availableWidth: c } = le(), { isMobile: g } = me(c), d = t && g, [u, p] = l.useState(!1), [h, b] = l.useState(!1), [y, _] = l.useState(!1), x = l.useMemo(() => [...r.filter((C) => C.totalAverageAmount > 0)], [r]), A = async () => {
420
- _(!0);
421
- const { data: C, isSuccess: f } = await a(x);
422
- _(!1), f ? (C.length === 0 && b(!0), p(!1)) : p(!0);
419
+ const { config: s } = Le(), { recalculateBudgets: a } = E(), { spendCategories: r } = Y(), { budgets: n } = D(), { availableWidth: c } = le(), { isMobile: g } = me(c), d = t && g, [u, p] = l.useState(!1), [h, b] = l.useState(!1), [_, y] = l.useState(!1), A = l.useMemo(() => [...r.filter((C) => C.totalAverageAmount > 0)], [r]), x = async () => {
420
+ y(!0);
421
+ const { data: C, isSuccess: f } = await a(A);
422
+ y(!1), f ? (C.length === 0 && b(!0), p(!1)) : p(!0);
423
423
  };
424
- return y ? /* @__PURE__ */ e(ge, {}) : u ? /* @__PURE__ */ e(
425
- _e,
424
+ return _ ? /* @__PURE__ */ e(ge, {}) : u ? /* @__PURE__ */ e(
425
+ ye,
426
426
  {
427
427
  header: n.autogenerate_budgets_error_header,
428
428
  icon: "error",
429
429
  iconColor: "#4D4D4D",
430
430
  onClick: (C) => {
431
- C === "primary" ? A() : i();
431
+ C === "primary" ? x() : i();
432
432
  },
433
433
  primaryButton: n.autogenerate_budgets_error_primary_button,
434
434
  secondaryButton: n.zero_state_generate_budgets_secondary_button,
@@ -443,7 +443,7 @@ const wt = ({
443
443
  }
444
444
  }
445
445
  ) : /* @__PURE__ */ e(Ve, { children: h ? /* @__PURE__ */ e(
446
- _e,
446
+ ye,
447
447
  {
448
448
  header: n.zero_state_generate_budgets_header,
449
449
  icon: "error",
@@ -468,13 +468,13 @@ const wt = ({
468
468
  }
469
469
  }
470
470
  ) : /* @__PURE__ */ e(
471
- _e,
471
+ ye,
472
472
  {
473
473
  header: n.create_budgets_title,
474
474
  icon: "bubble_chart",
475
475
  iconColor: "#1A1A1A",
476
476
  onClick: (C) => {
477
- C === "primary" ? A() : i();
477
+ C === "primary" ? x() : i();
478
478
  },
479
479
  primaryButton: n.empty_state_primary_button,
480
480
  secondaryButton: t ? void 0 : n.empty_state_secondary_button,
@@ -503,12 +503,12 @@ const wt = ({
503
503
  shouldShowZeroState: a,
504
504
  unavailableWidth: r = 24
505
505
  }) => {
506
- const { onEvent: n } = Z(), { setSelectedBudget: c } = E(), { isInitialized: g } = q(), { accounts: d } = D(), { availableWidth: u } = le(), { isMobile: p } = me(), [h, b] = l.useState(!1), y = l.useMemo(() => u - r, [u]), _ = (A) => {
507
- c(A), n(P.BUDGETS_CLICK_BUDGET_CATEGORY, {
508
- budget_category: A.category.name,
506
+ const { onEvent: n } = Z(), { setSelectedBudget: c } = E(), { isInitialized: g } = q(), { accounts: d } = D(), { availableWidth: u } = le(), { isMobile: p } = me(), [h, b] = l.useState(!1), _ = l.useMemo(() => u - r, [u]), y = (x) => {
507
+ c(x), n(P.BUDGETS_CLICK_BUDGET_CATEGORY, {
508
+ budget_category: x.category.name,
509
509
  click_type: "bubble"
510
510
  });
511
- }, x = () => {
511
+ }, A = () => {
512
512
  b(!0), n(P.ACCOUNTS_CLICK_CONNECT);
513
513
  };
514
514
  return /* @__PURE__ */ m(
@@ -522,15 +522,15 @@ const wt = ({
522
522
  {
523
523
  createBudgetOnClick: t,
524
524
  isMiniWidget: s,
525
- onConnectAccountsClick: x
525
+ onConnectAccountsClick: A
526
526
  }
527
527
  ) : /* @__PURE__ */ e(
528
528
  It,
529
529
  {
530
530
  height: o,
531
531
  isDraggable: i,
532
- onClick: _,
533
- width: y
532
+ onClick: y,
533
+ width: _
534
534
  }
535
535
  ),
536
536
  /* @__PURE__ */ e(
@@ -568,8 +568,8 @@ const wt = ({
568
568
  }, Rt = w(() => {
569
569
  const { budgets: t } = D();
570
570
  return /* @__PURE__ */ m(v, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
571
- /* @__PURE__ */ e(j, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
572
- /* @__PURE__ */ e(B, { bold: !0, color: "secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
571
+ /* @__PURE__ */ e(j, { color: "action", name: "bubble_chart", sx: { fontSize: 32 } }),
572
+ /* @__PURE__ */ e(B, { bold: !0, color: "text.secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
573
573
  /* @__PURE__ */ e(B, { color: "text.secondary", variant: "XSmall", children: t.zero_state_no_sub_budgets_description })
574
574
  ] });
575
575
  }), Mt = w(({ budget: t }) => {
@@ -594,20 +594,20 @@ const wt = ({
594
594
  )
595
595
  ] }) });
596
596
  }), Lt = w(({ category: t, parentBudget: o }) => {
597
- const { budgets: i, common: s } = D(), { setExpandedGuid: a, setOnSelect: r } = ot(), { addBudget: n } = E(), [c, g] = l.useState(!1), [d, u] = l.useState(!1), [p, h] = l.useState(""), [b, y] = l.useState(void 0);
597
+ const { budgets: i, common: s } = D(), { setExpandedGuid: a, setOnSelect: r } = ot(), { addBudget: n } = E(), [c, g] = l.useState(!1), [d, u] = l.useState(!1), [p, h] = l.useState(""), [b, _] = l.useState(void 0);
598
598
  l.useEffect(() => {
599
- r((A) => {
600
- const C = t.subCategories.find((f) => f.guid === A);
601
- C && (y(C), h(`${C.currentAmount === 0 ? "" : C.currentAmount}`), u(!0));
599
+ r((x) => {
600
+ const C = t.subCategories.find((f) => f.guid === x);
601
+ C && (_(C), h(`${C.currentAmount === 0 ? "" : C.currentAmount}`), u(!0));
602
602
  });
603
603
  }, []);
604
- const _ = () => {
604
+ const y = () => {
605
605
  a(t.guid), g(!0);
606
- }, x = async () => {
607
- b && Number(p) > 0 && (await n(b, Number(p), o.guid), u(!1), g(!1), y(void 0));
606
+ }, A = async () => {
607
+ b && Number(p) > 0 && (await n(b, Number(p), o.guid), u(!1), g(!1), _(void 0));
608
608
  };
609
609
  return /* @__PURE__ */ m(K, { children: [
610
- /* @__PURE__ */ e(Q, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(ee, { onClick: _, children: /* @__PURE__ */ e(te, { children: /* @__PURE__ */ m(v, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
610
+ /* @__PURE__ */ e(Q, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(ee, { onClick: y, children: /* @__PURE__ */ e(te, { children: /* @__PURE__ */ m(v, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
611
611
  /* @__PURE__ */ m(v, { alignItems: "center", direction: "row", gap: 8, children: [
612
612
  /* @__PURE__ */ e(j, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
613
613
  /* @__PURE__ */ e(B, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
@@ -632,7 +632,7 @@ const wt = ({
632
632
  disablePrimaryButton: Number(p) <= 0,
633
633
  isOpen: d,
634
634
  onClose: () => u(!1),
635
- onPrimaryAction: x,
635
+ onPrimaryAction: A,
636
636
  primaryText: i.add_save_button,
637
637
  children: /* @__PURE__ */ e(
638
638
  pe,
@@ -646,20 +646,20 @@ const wt = ({
646
646
  )
647
647
  ] });
648
648
  }), Nt = w(({ budget: t }) => {
649
- const { category: o, subBudgets: i } = t, { budgets: s, common: a } = D(), { deleteBudget: r, selectedSubBudget: n, setSelectedSubBudget: c, updateBudget: g } = E(), { filter: d, setFilter: u } = J(), [p, h] = l.useState(!1), [b, y] = l.useState(!1), [_, x] = l.useState("");
649
+ const { category: o, subBudgets: i } = t, { budgets: s, common: a } = D(), { deleteBudget: r, selectedSubBudget: n, setSelectedSubBudget: c, updateBudget: g } = E(), { filter: d, setFilter: u } = J(), [p, h] = l.useState(!1), [b, _] = l.useState(!1), [y, A] = l.useState("");
650
650
  l.useEffect(() => {
651
- n && (x(`${n.amount}`), u({
651
+ n && (A(`${n.amount}`), u({
652
652
  ...d,
653
653
  custom: (S) => S.category_guid === n.category_guid
654
654
  }));
655
655
  }, [n]);
656
- const A = async () => {
656
+ const x = async () => {
657
657
  n && await g({
658
658
  ...n,
659
- amount: Number(_)
659
+ amount: Number(y)
660
660
  });
661
661
  }, C = async () => {
662
- n && await r(n.guid), y(!1), f();
662
+ n && await r(n.guid), _(!1), f();
663
663
  }, f = () => {
664
664
  u({
665
665
  ...d,
@@ -681,13 +681,13 @@ const wt = ({
681
681
  isOpen: !!n,
682
682
  onClose: f,
683
683
  onPrimaryAction: () => h(!0),
684
- onSecondaryAction: () => y(!0),
684
+ onSecondaryAction: () => _(!0),
685
685
  primaryText: s.details_edit_button,
686
686
  secondaryText: s.details_delete_button,
687
687
  title: s.details_title,
688
688
  children: n && /* @__PURE__ */ m(v, { gap: 24, children: [
689
689
  /* @__PURE__ */ e(He, { budget: n }),
690
- /* @__PURE__ */ e(xe, { height: "100%" })
690
+ /* @__PURE__ */ e(Ae, { height: "100%" })
691
691
  ] })
692
692
  }
693
693
  ),
@@ -696,17 +696,17 @@ const wt = ({
696
696
  U,
697
697
  {
698
698
  copy: { close_aria: a.close_aria, title: s.details_edit_title },
699
- disablePrimaryButton: Number(_) <= 0,
699
+ disablePrimaryButton: Number(y) <= 0,
700
700
  isOpen: p,
701
701
  onClose: () => h(!1),
702
- onPrimaryAction: A,
702
+ onPrimaryAction: x,
703
703
  primaryText: s.edit_save_button,
704
704
  children: /* @__PURE__ */ e(
705
705
  pe,
706
706
  {
707
- amount: _,
707
+ amount: y,
708
708
  categoryName: n.category.name,
709
- onAmountChanged: x
709
+ onAmountChanged: A
710
710
  }
711
711
  )
712
712
  }
@@ -716,7 +716,7 @@ const wt = ({
716
716
  {
717
717
  copy: { close_aria: a.close_aria, title: s.delete_title },
718
718
  isOpen: b,
719
- onClose: () => y(!1),
719
+ onClose: () => _(!1),
720
720
  onPrimaryAction: C,
721
721
  primaryColor: "error",
722
722
  primaryText: "Delete",
@@ -731,10 +731,10 @@ const wt = ({
731
731
  sortedTransactions: d,
732
732
  sortedTransactionsWithSplits: u,
733
733
  tags: p
734
- } = J(), [h, b] = l.useState(0), [y, _] = l.useState(""), x = l.useMemo(
735
- () => d.find((S) => S.guid === y),
736
- [y, d]
737
- ), A = (S, I) => {
734
+ } = J(), [h, b] = l.useState(0), [_, y] = l.useState(""), A = l.useMemo(
735
+ () => d.find((S) => S.guid === _),
736
+ [_, d]
737
+ ), x = (S, I) => {
738
738
  b(I);
739
739
  }, C = () => {
740
740
  et(u, p), i(s.alert_csv_downloaded);
@@ -745,7 +745,7 @@ const wt = ({
745
745
  /* @__PURE__ */ m(
746
746
  Qe,
747
747
  {
748
- onChange: A,
748
+ onChange: x,
749
749
  sx: { width: "100%" },
750
750
  textColor: "primary",
751
751
  value: h,
@@ -766,17 +766,17 @@ const wt = ({
766
766
  children: r.export_csv_btn
767
767
  }
768
768
  ) }),
769
- /* @__PURE__ */ e(xe, { height: "100%", onClick: _ })
769
+ /* @__PURE__ */ e(Ae, { height: "100%", onClick: y })
770
770
  ] }),
771
771
  h === 1 && /* @__PURE__ */ e(Nt, { budget: t }),
772
772
  /* @__PURE__ */ e(
773
773
  $,
774
774
  {
775
775
  ariaLabelClose: a.close_aria,
776
- isOpen: !!x,
777
- onClose: () => _(""),
776
+ isOpen: !!A,
777
+ onClose: () => y(""),
778
778
  title: s.details_transaction_drawer,
779
- children: x && /* @__PURE__ */ e(tt, { transaction: x })
779
+ children: A && /* @__PURE__ */ e(tt, { transaction: A })
780
780
  }
781
781
  )
782
782
  ] })
@@ -791,7 +791,7 @@ const wt = ({
791
791
  setAlert: g,
792
792
  setSelectedBudget: d,
793
793
  updateBudget: u
794
- } = E(), { setFilter: p } = J(), [h, b] = l.useState(!1), [y, _] = l.useState(!1), [x, A] = l.useState(!1), [C, f] = l.useState("");
794
+ } = E(), { setFilter: p } = J(), [h, b] = l.useState(!1), [_, y] = l.useState(!1), [A, x] = l.useState(!1), [C, f] = l.useState("");
795
795
  l.useEffect(() => {
796
796
  n && !c && (f(`${n.amount}`), b(!0), p({
797
797
  accounts: t,
@@ -805,7 +805,7 @@ const wt = ({
805
805
  ...n,
806
806
  amount: Number(C),
807
807
  percentage: n.category.totalAmount / Number(C) * 100
808
- }), _(!1), g(N(o.alert_budget_updated, n.category.name)));
808
+ }), y(!1), g(N(o.alert_budget_updated, n.category.name)));
809
809
  }, I = async () => {
810
810
  n && (await r(n.guid), g(N(o.alert_budget_deleted, n.category.name))), L();
811
811
  }, L = () => {
@@ -813,7 +813,7 @@ const wt = ({
813
813
  d(void 0);
814
814
  }, 250);
815
815
  }, R = () => {
816
- _(!1), f(`${n?.amount}`);
816
+ y(!1), f(`${n?.amount}`);
817
817
  };
818
818
  if (n)
819
819
  return /* @__PURE__ */ m(l.Fragment, { children: [
@@ -823,8 +823,8 @@ const wt = ({
823
823
  ariaLabelClose: i.close_aria,
824
824
  isOpen: h,
825
825
  onClose: L,
826
- onPrimaryAction: () => _(!0),
827
- onSecondaryAction: () => A(!0),
826
+ onPrimaryAction: () => y(!0),
827
+ onSecondaryAction: () => x(!0),
828
828
  primaryText: o.details_edit_button,
829
829
  secondaryColor: "error",
830
830
  secondaryText: o.details_delete_button,
@@ -832,7 +832,7 @@ const wt = ({
832
832
  children: [
833
833
  /* @__PURE__ */ e(kt, { budget: n }),
834
834
  /* @__PURE__ */ e(
835
- Ae,
835
+ xe,
836
836
  {
837
837
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
838
838
  autoHideDuration: 3500,
@@ -849,7 +849,7 @@ const wt = ({
849
849
  {
850
850
  copy: { close_aria: i.close_aria, title: o.details_edit_title },
851
851
  disablePrimaryButton: Number(C) <= 0,
852
- isOpen: y,
852
+ isOpen: _,
853
853
  onClose: R,
854
854
  onPrimaryAction: S,
855
855
  onSecondaryAction: R,
@@ -868,8 +868,8 @@ const wt = ({
868
868
  U,
869
869
  {
870
870
  copy: { close_aria: i.close_aria, title: o.delete_title },
871
- isOpen: x,
872
- onClose: () => A(!1),
871
+ isOpen: A,
872
+ onClose: () => x(!1),
873
873
  onPrimaryAction: I,
874
874
  primaryColor: "error",
875
875
  primaryText: o.details_delete_button,
@@ -922,7 +922,7 @@ const wt = ({
922
922
  ] }, r.guid)) }) })
923
923
  ] });
924
924
  }), jt = w(() => {
925
- const t = ie(), { onEvent: o } = Z(), { visibleAccounts: i } = Ne(), { budgets: s, common: a, recurring: r } = D(), { incomeCategories: n, spendCategories: c } = Y(), { detailedBudgets: g, totalBudgeted: d } = E(), { incomeTotal: u } = ce(), { setFilter: p } = J(), [h, b] = l.useState(!1), [y, _] = l.useMemo(() => {
925
+ const t = ie(), { onEvent: o } = Z(), { visibleAccounts: i } = Ne(), { budgets: s, common: a, recurring: r } = D(), { incomeCategories: n, spendCategories: c } = Y(), { detailedBudgets: g, totalBudgeted: d } = E(), { incomeTotal: u } = ce(), { setFilter: p } = J(), [h, b] = l.useState(!1), [_, y] = l.useMemo(() => {
926
926
  const f = c.reduce((R, O) => R + O.totalAmount, 0);
927
927
  let S = f / d;
928
928
  S > 1 && (S = 1);
@@ -935,7 +935,7 @@ const wt = ({
935
935
  }
936
936
  ];
937
937
  return [f, L];
938
- }, [g, c]), [x, A] = l.useMemo(() => {
938
+ }, [g, c]), [A, x] = l.useMemo(() => {
939
939
  const f = Math.abs(
940
940
  n.reduce((L, R) => L + R.totalAmount, 0)
941
941
  );
@@ -962,10 +962,10 @@ const wt = ({
962
962
  /* @__PURE__ */ e(Te, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ m(v, { gap: 24, children: [
963
963
  /* @__PURE__ */ m(v, { gap: 8, children: [
964
964
  /* @__PURE__ */ e(B, { bold: !0, sx: { mb: 8 }, variant: "Body", children: s.spending_title }),
965
- /* @__PURE__ */ e(Be, { data: _, height: 16 }),
965
+ /* @__PURE__ */ e(Be, { data: y, height: 16 }),
966
966
  /* @__PURE__ */ e(B, { variant: "Small", children: N(
967
967
  s.spending_description,
968
- T(y, "0,0"),
968
+ T(_, "0,0"),
969
969
  T(d, "0,0")
970
970
  ) })
971
971
  ] }),
@@ -982,10 +982,10 @@ const wt = ({
982
982
  }
983
983
  )
984
984
  ] }),
985
- /* @__PURE__ */ e(Be, { data: A, height: 16 }),
985
+ /* @__PURE__ */ e(Be, { data: x, height: 16 }),
986
986
  /* @__PURE__ */ e(B, { variant: "Small", children: N(
987
987
  s.income_description,
988
- T(x, "0,0"),
988
+ T(A, "0,0"),
989
989
  T(u, "0,0")
990
990
  ) })
991
991
  ] })
@@ -1007,30 +1007,30 @@ const wt = ({
1007
1007
  dateRange: p,
1008
1008
  isDataLoaded: h,
1009
1009
  loadBudgetData: b,
1010
- setDateRange: y,
1011
- setAlert: _,
1012
- setTheme: x,
1013
- detailedBudgets: A
1010
+ setDateRange: _,
1011
+ setAlert: y,
1012
+ setTheme: A,
1013
+ detailedBudgets: x
1014
1014
  } = E(), { setDateRange: C } = ce(), { loadDateRangeCategoryTotals: f, loadMonthlyCategoryTotals: S } = Y(), { isSmallTablet: I, isMobile: L, isSmallMobile: R } = me(), O = I || L || R, [z, k] = l.useState(!1);
1015
1015
  je({
1016
1016
  widgetName: "BubbleBudgetsWidget",
1017
1017
  isLoaded: h
1018
1018
  }), l.useEffect(() => {
1019
- x(i), h || b().finally(() => {
1019
+ A(i), h || b().finally(() => {
1020
1020
  s(P.BUDGETS_VIEW);
1021
1021
  });
1022
- }, []), l.useEffect(() => (y({ start: re(oe()), end: Ce(oe()) }), () => {
1023
- y({ start: re(oe()), end: Ce(oe()) });
1022
+ }, []), l.useEffect(() => (_({ start: re(oe()), end: Ce(oe()) }), () => {
1023
+ _({ start: re(oe()), end: Ce(oe()) });
1024
1024
  }), [a]), l.useEffect(() => {
1025
1025
  c && (d(p.start, p.end), f(g, p.start, p.end).finally(), S(g).finally(), C(p));
1026
1026
  }, [c, g, p]);
1027
1027
  const he = (V) => {
1028
- y({ start: V[0] || /* @__PURE__ */ new Date(), end: V[1] || /* @__PURE__ */ new Date() });
1028
+ _({ start: V[0] || /* @__PURE__ */ new Date(), end: V[1] || /* @__PURE__ */ new Date() });
1029
1029
  }, fe = () => {
1030
1030
  s(P.BUDGETS_CLICK_FILTER);
1031
1031
  }, ne = () => {
1032
1032
  k(!0), s(P.BUDGETS_CLICK_ADD);
1033
- }, ye = () => {
1033
+ }, _e = () => {
1034
1034
  k(!1);
1035
1035
  }, G = () => {
1036
1036
  k(!1);
@@ -1069,11 +1069,11 @@ const wt = ({
1069
1069
  createBudgetOnClick: ne,
1070
1070
  height: O ? 450 : 800,
1071
1071
  isDraggable: !0,
1072
- shouldShowZeroState: A.length === 0,
1072
+ shouldShowZeroState: x.length === 0,
1073
1073
  unavailableWidth: O ? 0 : Re
1074
1074
  }
1075
1075
  ) }),
1076
- A.length !== 0 && /* @__PURE__ */ m(
1076
+ x.length !== 0 && /* @__PURE__ */ m(
1077
1077
  v,
1078
1078
  {
1079
1079
  gap: 24,
@@ -1100,19 +1100,19 @@ const wt = ({
1100
1100
  children: /* @__PURE__ */ e(
1101
1101
  ze,
1102
1102
  {
1103
- onAddBudget: ye,
1103
+ onAddBudget: _e,
1104
1104
  onRecalculateBudgets: G
1105
1105
  }
1106
1106
  )
1107
1107
  }
1108
1108
  ),
1109
1109
  /* @__PURE__ */ e(
1110
- Ae,
1110
+ xe,
1111
1111
  {
1112
1112
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
1113
1113
  autoHideDuration: 3500,
1114
1114
  onClose: () => {
1115
- _("");
1115
+ y("");
1116
1116
  },
1117
1117
  open: !!u,
1118
1118
  children: /* @__PURE__ */ e(
@@ -1120,7 +1120,7 @@ const wt = ({
1120
1120
  {
1121
1121
  closeText: "",
1122
1122
  onClose: () => {
1123
- _("");
1123
+ y("");
1124
1124
  },
1125
1125
  severity: "success",
1126
1126
  variant: "filled",
@@ -1162,7 +1162,7 @@ const wt = ({
1162
1162
  ] })
1163
1163
  ] });
1164
1164
  }, Ft = (t) => {
1165
- const o = ie(), { onEvent: i } = Z(), { detailedBudgets: s, isDataLoaded: a, loadBudgetData: r, setTheme: n } = E(), { budgets: c, common: g } = D(), { isInitialized: d, selectedAccounts: u } = q(), { loadDateRangeCategoryTotals: p, loadMonthlyCategoryTotals: h } = Y(), b = lt(), [y, _] = l.useState(!1);
1165
+ const o = ie(), { onEvent: i } = Z(), { detailedBudgets: s, isDataLoaded: a, loadBudgetData: r, setTheme: n } = E(), { budgets: c, common: g } = D(), { isInitialized: d, selectedAccounts: u } = q(), { loadDateRangeCategoryTotals: p, loadMonthlyCategoryTotals: h } = Y(), b = lt(), [_, y] = l.useState(!1);
1166
1166
  l.useEffect(() => {
1167
1167
  a || r().finally();
1168
1168
  }, []), l.useEffect(() => {
@@ -1174,11 +1174,11 @@ const wt = ({
1174
1174
  Ce(/* @__PURE__ */ new Date())
1175
1175
  ).finally(), h(u).finally());
1176
1176
  }, [d, u, a]);
1177
- const x = () => {
1178
- _(!0), i(P.BUDGETS_CLICK_ADD);
1179
- }, A = () => {
1180
- _(!1);
1181
- }, C = () => _(!1);
1177
+ const A = () => {
1178
+ y(!0), i(P.BUDGETS_CLICK_ADD);
1179
+ }, x = () => {
1180
+ y(!1);
1181
+ }, C = () => y(!1);
1182
1182
  if (je({
1183
1183
  widgetName: "BubbleBudgetsMiniWidget",
1184
1184
  isLoaded: a
@@ -1198,7 +1198,7 @@ const wt = ({
1198
1198
  {
1199
1199
  budgetsCopy: c,
1200
1200
  difference: b,
1201
- handleAddClick: x,
1201
+ handleAddClick: A,
1202
1202
  shouldShowZeroState: f
1203
1203
  }
1204
1204
  ),
@@ -1206,13 +1206,13 @@ const wt = ({
1206
1206
  $,
1207
1207
  {
1208
1208
  ariaLabelClose: g.close_aria,
1209
- isOpen: y,
1210
- onClose: () => _(!1),
1209
+ isOpen: _,
1210
+ onClose: () => y(!1),
1211
1211
  title: c.add_new_title,
1212
1212
  children: /* @__PURE__ */ e(
1213
1213
  ze,
1214
1214
  {
1215
- onAddBudget: A,
1215
+ onAddBudget: x,
1216
1216
  onRecalculateBudgets: C
1217
1217
  }
1218
1218
  )
@@ -1236,10 +1236,10 @@ const wt = ({
1236
1236
  setAlert: g,
1237
1237
  setSelectedBudget: d,
1238
1238
  updateBudget: u
1239
- } = E(), { budgets: p, common: h } = D(), { isCopyLoaded: b, selectedAccountGuids: y } = q(), _ = $e(), { setFilter: x } = J(), [A, C] = l.useState(""), [f, S] = l.useState(null), [I, L] = l.useState(!1), R = l.useRef(!1);
1239
+ } = E(), { budgets: p, common: h } = D(), { isCopyLoaded: b, selectedAccountGuids: _ } = q(), y = $e(), { setFilter: A } = J(), [x, C] = l.useState(""), [f, S] = l.useState(null), [I, L] = l.useState(!1), R = l.useRef(!1);
1240
1240
  if (l.useEffect(() => {
1241
- !n || c || (C(`${n.amount}`), x({
1242
- accounts: y,
1241
+ !n || c || (C(`${n.amount}`), A({
1242
+ accounts: _,
1243
1243
  dateRange: a,
1244
1244
  custom: ({ category_guid: G, top_level_category_guid: H }) => {
1245
1245
  const { category_guid: V } = n;
@@ -1254,22 +1254,22 @@ const wt = ({
1254
1254
  d(void 0), t?.();
1255
1255
  }, 250);
1256
1256
  }, z = () => {
1257
- f === "delete" && o?.(ae.CANCEL_DELETE, A), C(n.amount ? `${n.amount}` : ""), S(null);
1257
+ f === "delete" && o?.(ae.CANCEL_DELETE, x), C(n.amount ? `${n.amount}` : ""), S(null);
1258
1258
  }, k = async () => {
1259
1259
  if (f === "edit") {
1260
1260
  if (R.current) return;
1261
1261
  R.current = !0, await u({
1262
1262
  ...n,
1263
- amount: Number(A)
1264
- }), o?.(ae.END_SAVE, A), g(
1263
+ amount: Number(x)
1264
+ }), o?.(ae.END_SAVE, x), g(
1265
1265
  N(p.alert_budget_updated, n.category.name)
1266
1266
  ), S(null), R.current = !1;
1267
1267
  }
1268
- f === "delete" && (await r(n.guid), o?.(ae.END_DELETE, A), O());
1268
+ f === "delete" && (await r(n.guid), o?.(ae.END_DELETE, x), O());
1269
1269
  }, { remainingAmount: he, spentPercentage: fe, iconColor: ne } = dt(
1270
1270
  n.transaction_total ?? 0,
1271
1271
  n.amount ?? 0
1272
- ), ye = (G, H) => N(G, /* @__PURE__ */ e("b", { children: H }));
1272
+ ), _e = (G, H) => N(G, /* @__PURE__ */ e("b", { children: H }));
1273
1273
  return /* @__PURE__ */ m(l.Fragment, { children: [
1274
1274
  /* @__PURE__ */ m(
1275
1275
  $,
@@ -1286,7 +1286,7 @@ const wt = ({
1286
1286
  /* EDIT */
1287
1287
  ),
1288
1288
  onSecondaryAction: () => {
1289
- o?.(ae.START_DELETE, A), S(
1289
+ o?.(ae.START_DELETE, x), S(
1290
1290
  "delete"
1291
1291
  /* DELETE */
1292
1292
  );
@@ -1311,8 +1311,8 @@ const wt = ({
1311
1311
  categoryGuid: n.category.guid,
1312
1312
  size: 44,
1313
1313
  sx: {
1314
- bgcolor: Je(Ee(n.category.guid, _), 0.15),
1315
- border: `1px solid ${Ee(n.category.guid, _)}`,
1314
+ bgcolor: Je(Ee(n.category.guid, y), 0.15),
1315
+ border: `1px solid ${Ee(n.category.guid, y)}`,
1316
1316
  color: "text.primary"
1317
1317
  }
1318
1318
  }
@@ -1325,9 +1325,9 @@ const wt = ({
1325
1325
  totalTransaction: n.transaction_total
1326
1326
  }
1327
1327
  ),
1328
- /* @__PURE__ */ e(xe, {}),
1328
+ /* @__PURE__ */ e(Ae, {}),
1329
1329
  s && /* @__PURE__ */ e(
1330
- Ae,
1330
+ xe,
1331
1331
  {
1332
1332
  anchorOrigin: { horizontal: "right", vertical: "bottom" },
1333
1333
  autoHideDuration: 3500,
@@ -1343,7 +1343,7 @@ const wt = ({
1343
1343
  ut,
1344
1344
  {
1345
1345
  closeAriaLabel: h.close_aria,
1346
- content: ye(
1346
+ content: _e(
1347
1347
  p[f === "edit" ? "edit_budget_content" : "delete_description"],
1348
1348
  n.category.name
1349
1349
  ),
@@ -1352,7 +1352,7 @@ const wt = ({
1352
1352
  handlePrimaryAction: k,
1353
1353
  handleSecondaryAction: z,
1354
1354
  inputLabel: f === "edit" ? p.details_edit_title : "",
1355
- inputValue: A,
1355
+ inputValue: x,
1356
1356
  isOpen: !0,
1357
1357
  primaryColor: f === "edit" ? "primary" : "error",
1358
1358
  primaryText: p[f === "edit" ? "add_save_button" : "details_delete_button"],
@@ -18,7 +18,7 @@ import { b as $ } from "../Localization-CPkpIwIx.mjs";
18
18
  import { M as Je } from "../MiniWidgetContainer-Cu72GNsE.mjs";
19
19
  import { E as Ze } from "../EmptyState-DHAkGsjk.mjs";
20
20
  import { u as Oe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
21
- import { R as et } from "../RecurringSettings-Dsc3KBX3.mjs";
21
+ import { R as et } from "../RecurringSettings-CkVI8rR3.mjs";
22
22
  import tt from "@mui/material/Tabs";
23
23
  import ye from "@mui/material/Tab";
24
24
  import { getUnixTime as z } from "date-fns/getUnixTime";
@@ -36,7 +36,7 @@ import { alpha as at, keyframes as it } from "@mui/material/styles";
36
36
  import { DataGridPro as rt } from "@mui/x-data-grid-pro";
37
37
  import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
38
38
  import G from "@mui/material/Button";
39
- import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-CyvCAzdp.mjs";
39
+ import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-DE6JV3Mp.mjs";
40
40
  import { D as Ge } from "../Drawer-DV4NTsFg.mjs";
41
41
  import { subDays as Me } from "date-fns/subDays";
42
42
  import { endOfToday as mt } from "date-fns/endOfToday";
@@ -46,7 +46,7 @@ import { A as Q } from "../Account-BiB1F8lL.mjs";
46
46
  import { formatISO as ht } from "date-fns/formatISO";
47
47
  import { fromUnixTime as De } from "date-fns/fromUnixTime";
48
48
  import { startOfMonth as pt } from "date-fns/startOfMonth";
49
- import { S as ft, a as gt } from "../StatusIndicator-BWdlLG0b.mjs";
49
+ import { S as ft, a as gt } from "../StatusIndicator-Bo80rdKq.mjs";
50
50
  import { F as bt, R as ve, e as Ae } from "../RecurringTransactions-CYNpe_RS.mjs";
51
51
  import { h as xt } from "../DateUtil-wcYTmDRD.mjs";
52
52
  import { F as Ct, A as j } from "../Fetch-B6tMJC1r.mjs";
@@ -41,7 +41,7 @@ import { S as it, F as Mt, e as zn, R as Dt } from "../RecurringTransactions-CYN
41
41
  import { A as He } from "../Account-BiB1F8lL.mjs";
42
42
  import { S as Gn } from "../StatusBar-BK_uYHAB.mjs";
43
43
  import { h as It } from "../DateUtil-wcYTmDRD.mjs";
44
- import { T as Hn, s as Nn, h as jn, S as Kn, a as Vn } from "../StatusIndicator-BWdlLG0b.mjs";
44
+ import { T as Hn, s as Nn, h as jn, S as Kn, a as Vn } from "../StatusIndicator-Bo80rdKq.mjs";
45
45
  import { f as Xn, D as Yn } from "../DateFormats-BMpMrZpW.mjs";
46
46
  import { T as de } from "../TabContentContainer-j01JYR_7.mjs";
47
47
  import qn from "@mui/material/useMediaQuery";
@@ -56,10 +56,10 @@ 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";
58
58
  import { subDays as ao } from "date-fns/subDays";
59
- import { c as io, d as ct, S as so, i as co } from "../ManageIncome-CyvCAzdp.mjs";
59
+ import { c as io, d as ct, S as so, i as co } from "../ManageIncome-DE6JV3Mp.mjs";
60
60
  import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
61
61
  import { AdapterDateFns as Ot } from "@mui/x-date-pickers/AdapterDateFnsV3";
62
- import { R as uo } from "../RecurringSettings-Dsc3KBX3.mjs";
62
+ import { R as uo } from "../RecurringSettings-CkVI8rR3.mjs";
63
63
  import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
64
64
  import { format as mo } from "date-fns/format";
65
65
  import go from "@mui/lab/Timeline";
@@ -8,7 +8,7 @@ import E from "@mui/material/Stack";
8
8
  import { BottomSheetTransition as Be, Icon as pe, P as L, H3 as ae, Text as f, MerchantLogo as ee, InstitutionLogo as B, CategoryIcon as Ce, createMXTheme as qe, CheckmarkFilledIcon as _e, H2 as ce } from "@mxenabled/mxui";
9
9
  import { Icon as J } from "@mxenabled/mx-icons";
10
10
  import { e as $e } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
11
- import { T as e1, b as t1 } from "../StatusIndicator-BWdlLG0b.mjs";
11
+ import { T as e1, b as t1 } from "../StatusIndicator-Bo80rdKq.mjs";
12
12
  import r1 from "@mui/material/Tab";
13
13
  import i1 from "@mui/material/Tabs";
14
14
  import Q from "@mui/material/IconButton";
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
6
6
  import { startOfMonth as G } from "date-fns/startOfMonth";
7
7
  import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
- import { R as _e } from "../RecurringSettings-Dsc3KBX3.mjs";
10
- import { M as Un } from "../RecurringSettings-Dsc3KBX3.mjs";
9
+ import { R as _e } from "../RecurringSettings-CkVI8rR3.mjs";
10
+ import { M as Un } from "../RecurringSettings-CkVI8rR3.mjs";
11
11
  import { addMonths as Be } from "date-fns/addMonths";
12
12
  import { subMonths as Pe } from "date-fns/subMonths";
13
13
  import { isBefore as $e } from "date-fns/isBefore";
@@ -47,8 +47,8 @@ import dt from "@mui/material/ListSubheader";
47
47
  import mt from "@mui/material/ListItemAvatar";
48
48
  import ut from "@mui/material/ListItemButton";
49
49
  import pt from "@mui/material/ListItemText";
50
- import { b as gt } from "../ManageIncome-CyvCAzdp.mjs";
51
- import { c as Vn, M as Xn, S as qn } from "../ManageIncome-CyvCAzdp.mjs";
50
+ import { b as gt } from "../ManageIncome-DE6JV3Mp.mjs";
51
+ import { c as Vn, M as Xn, S as qn } from "../ManageIncome-DE6JV3Mp.mjs";
52
52
  import { f as E } from "../NumberFormatting-QCaNwbjv.mjs";
53
53
  import { D as ie } from "../Drawer-DV4NTsFg.mjs";
54
54
  import O from "@mui/material/Box";
@@ -19,8 +19,8 @@ import { startOfToday as q } from "date-fns/startOfToday";
19
19
  import Tt from "@mui/material/Button";
20
20
  import { useTheme as Mt } from "@mui/material";
21
21
  import { e as Dt } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
22
- import { T as xt } from "../StatusIndicator-BWdlLG0b.mjs";
23
- import { T as wt } from "../TransactionDetails-CzaNtpaw.mjs";
22
+ import { T as xt } from "../StatusIndicator-Bo80rdKq.mjs";
23
+ import { T as wt } from "../TransactionDetails-DWZuZgBw.mjs";
24
24
  import Lt from "@mui/material/Collapse";
25
25
  import F from "@mui/material/Divider";
26
26
  import J from "@mui/material/List";
@@ -1,12 +1,12 @@
1
1
  import { T as Sa } from "../TransactionApi-Ck5Ua-7F.mjs";
2
- import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-CzaNtpaw.mjs";
3
- import { B as Da, b as Ia } from "../TransactionDetails-CzaNtpaw.mjs";
2
+ import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-DWZuZgBw.mjs";
3
+ import { B as Da, b as Ia } from "../TransactionDetails-DWZuZgBw.mjs";
4
4
  import { T as E } from "../Transaction-B_2AG36b.mjs";
5
5
  import { O as Na } from "../Transaction-B_2AG36b.mjs";
6
6
  import { S as Z, D as Be } from "../TransactionStore-DIbZkSVI.mjs";
7
7
  import { T as Oa } from "../TransactionStore-DIbZkSVI.mjs";
8
- import { u as R, T as $e } from "../StatusIndicator-BWdlLG0b.mjs";
9
- import { a as La } from "../StatusIndicator-BWdlLG0b.mjs";
8
+ import { u as R, T as $e } from "../StatusIndicator-Bo80rdKq.mjs";
9
+ import { a as La } from "../StatusIndicator-Bo80rdKq.mjs";
10
10
  import { e as Ve } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
11
11
  import { E as Ra } from "../ExportCsvAction-Bg6gO_Cz.mjs";
12
12
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
@@ -35,8 +35,8 @@ import { useGridApiContext as zt, useGridRootProps as Kt, DataGridPro as Yt } fr
35
35
  import jt from "@mui/material/Badge";
36
36
  import Ut from "@mui/material/IconButton";
37
37
  import { A as v } from "../Analytics-BYItVAe-.mjs";
38
- import { T as lt } from "../StatusIndicator-BWdlLG0b.mjs";
39
- import { T as ct } from "../TransactionDetails-CzaNtpaw.mjs";
38
+ import { T as lt } from "../StatusIndicator-Bo80rdKq.mjs";
39
+ import { T as ct } from "../TransactionDetails-DWZuZgBw.mjs";
40
40
  import { D as We } from "../Drawer-DV4NTsFg.mjs";
41
41
  import { u as Ie } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
42
42
  import { L as Le } from "../Loader-D3rjKx72.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.12.4",
3
+ "version": "7.12.5",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",