@mx-cartographer/experiences 7.12.3 → 7.12.4

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.4] - 03-18-2026
2
+
3
+ - **UPDATED** - Budget Details drawer ally | replace semantic `<H2>` with `<Text>`
4
+
1
5
  ## [7.12.3] - 03-18-2026
2
6
 
3
7
  - **ADDED** - Help widget analytics
@@ -11,7 +11,7 @@ import v from "@mui/material/Stack";
11
11
  import ie from "@mui/material/styles/useTheme";
12
12
  import K from "@mui/material/Box";
13
13
  import X from "@mui/material/List";
14
- import { Text as S, CategoryIcon as H, Icon as j, H2 as Xe, H3 as Me } from "@mxenabled/mxui";
14
+ import { Text as B, CategoryIcon as W, Icon as j, H3 as Me } from "@mxenabled/mxui";
15
15
  import { u as D, m as E, i as ce, l as Y, p as le, a as Le, g as Z, b as q, h as J, d as Ne } from "../hooks-BxkfR-Ff.mjs";
16
16
  import { f as T } from "../NumberFormatting-QCaNwbjv.mjs";
17
17
  import ke from "@mui/material/Button";
@@ -22,55 +22,55 @@ import ee from "@mui/material/ListItemButton";
22
22
  import te from "@mui/material/ListItemText";
23
23
  import { b as N } from "../Localization-CPkpIwIx.mjs";
24
24
  import { D as $ } from "../Drawer-DV4NTsFg.mjs";
25
- import Ye from "@mui/material/ListItemSecondaryAction";
26
- import { C as Ze } from "../CurrencyInput-DuMktPu3.mjs";
25
+ import Xe from "@mui/material/ListItemSecondaryAction";
26
+ import { C as Ye } from "../CurrencyInput-DuMktPu3.mjs";
27
27
  import { D as U } from "../Dialog-Ck34yr-d.mjs";
28
- import { C as qe } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
28
+ import { C as Ze } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
29
29
  import * as M from "d3";
30
- import Je from "@mui/material/Tooltip";
31
- import { useTheme as $e, alpha as Qe } from "@mui/material/styles";
30
+ import qe from "@mui/material/Tooltip";
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
34
  import { E as _e } from "../EmptyState-DHAkGsjk.mjs";
35
35
  import { A as P } from "../Analytics-BYItVAe-.mjs";
36
36
  import De from "@mui/material/Tab";
37
- import et from "@mui/material/Tabs";
38
- import { e as tt } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
37
+ import Qe from "@mui/material/Tabs";
38
+ import { e as et } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
39
39
  import { T as xe } from "../StatusIndicator-BWdlLG0b.mjs";
40
- import { T as nt, c as ot } from "../TransactionDetails-CzaNtpaw.mjs";
40
+ import { T as tt, c as nt } from "../TransactionDetails-CzaNtpaw.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";
44
44
  import { S as Pe } from "../SingleSegmentDonut-BgbLgwHi.mjs";
45
- import { u as at, b as rt } from "../CategorySelectorDrawer-wfUTIbLR.mjs";
45
+ import { u as ot, b as at } from "../CategorySelectorDrawer-wfUTIbLR.mjs";
46
46
  import Ge from "@mui/material/CardHeader";
47
- import { subDays as st } from "date-fns/subDays";
48
- import it from "@mui/material/IconButton";
49
- import { M as ct } from "../ManageIncome-CyvCAzdp.mjs";
47
+ import { subDays as rt } from "date-fns/subDays";
48
+ import st from "@mui/material/IconButton";
49
+ import { M as it } from "../ManageIncome-CyvCAzdp.mjs";
50
50
  import { u as je } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
51
- import { W as lt } from "../WidgetContainer-B0ncgABX.mjs";
52
- import { u as dt, g as ut, C as mt } from "../BudgetUtil--_QXyszn.mjs";
53
- import { M as gt } from "../MiniWidgetContainer-Cu72GNsE.mjs";
51
+ import { W as ct } from "../WidgetContainer-B0ncgABX.mjs";
52
+ import { u as lt, g as dt, C as ut } from "../BudgetUtil--_QXyszn.mjs";
53
+ import { M as mt } from "../MiniWidgetContainer-Cu72GNsE.mjs";
54
54
  import { b as Ee } from "../CategoryUtil-BVixr0d5.mjs";
55
- const pt = w(() => {
55
+ const gt = w(() => {
56
56
  const { budgets: t } = D(), { totalBudgeted: o } = E(), { incomeTotal: i } = ce(), s = i - o;
57
57
  return /* @__PURE__ */ m(v, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
58
58
  /* @__PURE__ */ m(v, { alignItems: "center", children: [
59
- /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: T(i, "0,0") }),
60
- /* @__PURE__ */ e(S, { color: "secondary", variant: "Small", children: t.projected_income })
59
+ /* @__PURE__ */ e(B, { bold: !0, variant: "Body", children: T(i, "0,0") }),
60
+ /* @__PURE__ */ e(B, { color: "secondary", variant: "Small", children: t.projected_income })
61
61
  ] }),
62
- /* @__PURE__ */ e(S, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
62
+ /* @__PURE__ */ e(B, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
63
63
  /* @__PURE__ */ m(v, { alignItems: "center", children: [
64
- /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: T(o, "0,0") }),
65
- /* @__PURE__ */ e(S, { color: "secondary", variant: "Small", children: t.budgeted })
64
+ /* @__PURE__ */ e(B, { bold: !0, variant: "Body", children: T(o, "0,0") }),
65
+ /* @__PURE__ */ e(B, { color: "secondary", variant: "Small", children: t.budgeted })
66
66
  ] }),
67
- /* @__PURE__ */ e(S, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
67
+ /* @__PURE__ */ e(B, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
68
68
  /* @__PURE__ */ m(v, { alignItems: "center", children: [
69
- /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: T(s, "0,0") }),
70
- /* @__PURE__ */ e(S, { color: "secondary", variant: "Small", children: t.remaining })
69
+ /* @__PURE__ */ e(B, { bold: !0, variant: "Body", children: T(s, "0,0") }),
70
+ /* @__PURE__ */ e(B, { color: "secondary", variant: "Small", children: t.remaining })
71
71
  ] })
72
72
  ] });
73
- }), ht = w(
73
+ }), pt = w(
74
74
  ({ category: t }) => {
75
75
  const { budgets: o } = D(), { budgets: i } = E(), s = l.useMemo(() => {
76
76
  const a = i.find((c) => c.category_guid === t.guid), r = T(t.totalAverageAmount, "0,0"), n = a ? N(o.recalculate_previous_budget, T(a.amount, "0,0")) : o.recalculate_new_budget;
@@ -78,19 +78,19 @@ const pt = w(() => {
78
78
  }, [o, i]);
79
79
  return /* @__PURE__ */ m(l.Fragment, { children: [
80
80
  /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ m(ee, { children: [
81
- /* @__PURE__ */ e(ue, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid, variant: "filled" }) }),
81
+ /* @__PURE__ */ e(ue, { children: /* @__PURE__ */ e(W, { categoryGuid: t.guid, variant: "filled" }) }),
82
82
  /* @__PURE__ */ e(te, { primary: t.name, secondary: s })
83
83
  ] }) }),
84
84
  /* @__PURE__ */ e(de, {})
85
85
  ] }, t.guid);
86
86
  }
87
- ), ft = ({ onRecalculateBudgets: t }) => {
87
+ ), ht = ({ onRecalculateBudgets: t }) => {
88
88
  const { budgets: o, common: i } = D(), { spendCategories: s } = Y(), { recalculateBudgets: a, setAlert: r } = E(), [n, c] = l.useState(!1), g = s.filter((u) => u.totalAverageAmount > 0), d = async () => {
89
89
  await a(g), c(!1), r(o.alert_recalculated_budgets), t?.();
90
90
  };
91
91
  return /* @__PURE__ */ m(l.Fragment, { children: [
92
92
  /* @__PURE__ */ e(ke, { onClick: () => c(!0), sx: { mt: 24, mx: 24 }, variant: "text", children: o.recalculate_button }),
93
- /* @__PURE__ */ e(S, { sx: { mx: 24, my: 16, textAlign: "center", whiteSpace: "wrap" }, variant: "Paragraph", children: o.recalculate_help }),
93
+ /* @__PURE__ */ e(B, { sx: { mx: 24, my: 16, textAlign: "center", whiteSpace: "wrap" }, variant: "Paragraph", children: o.recalculate_help }),
94
94
  /* @__PURE__ */ e(
95
95
  $,
96
96
  {
@@ -101,10 +101,10 @@ const pt = w(() => {
101
101
  title: o.recalculate_title,
102
102
  children: /* @__PURE__ */ m(v, { children: [
103
103
  /* @__PURE__ */ m(v, { mx: 24, my: 16, children: [
104
- /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: o.recalculate_description_top }),
105
- /* @__PURE__ */ e(S, { variant: "ParagraphSmall", children: o.recalculate_description_bottom })
104
+ /* @__PURE__ */ e(B, { bold: !0, variant: "Body", children: o.recalculate_description_top }),
105
+ /* @__PURE__ */ e(B, { variant: "ParagraphSmall", children: o.recalculate_description_bottom })
106
106
  ] }),
107
- /* @__PURE__ */ e(K, { bgcolor: "background.paper", children: /* @__PURE__ */ e(X, { children: g.map((u) => /* @__PURE__ */ e(ht, { category: u }, u.guid)) }) })
107
+ /* @__PURE__ */ e(K, { bgcolor: "background.paper", children: /* @__PURE__ */ e(X, { children: g.map((u) => /* @__PURE__ */ e(pt, { category: u }, u.guid)) }) })
108
108
  ] })
109
109
  }
110
110
  )
@@ -117,14 +117,14 @@ const pt = w(() => {
117
117
  const { budgets: s } = D(), { totalBudgeted: a } = E(), { incomeTotal: r } = ce(), n = r - a;
118
118
  return /* @__PURE__ */ m(v, { gap: 16, children: [
119
119
  /* @__PURE__ */ m(v, { children: [
120
- /* @__PURE__ */ e(S, { children: N(
120
+ /* @__PURE__ */ e(B, { children: N(
121
121
  s.add_description_top,
122
122
  T(n, "0,0")
123
123
  ) }),
124
- /* @__PURE__ */ e(S, { children: N(s.add_description_bottom, o) })
124
+ /* @__PURE__ */ e(B, { children: N(s.add_description_bottom, o) })
125
125
  ] }),
126
126
  /* @__PURE__ */ e(
127
- Ze,
127
+ Ye,
128
128
  {
129
129
  amount: t,
130
130
  autoFocus: !0,
@@ -135,13 +135,13 @@ const pt = w(() => {
135
135
  }
136
136
  )
137
137
  ] });
138
- }, yt = w(({ category: t, onAddBudget: o }) => {
138
+ }, ft = w(({ category: t, onAddBudget: o }) => {
139
139
  const { budgets: i, common: s } = D(), [a, r] = l.useState(!1), [n, c] = l.useState(
140
140
  `${t.totalAmount === 0 ? "" : t.totalAmount}`
141
141
  );
142
142
  return /* @__PURE__ */ m(l.Fragment, { children: [
143
143
  /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ m(ee, { onClick: () => r(!0), children: [
144
- /* @__PURE__ */ e(ue, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid }) }),
144
+ /* @__PURE__ */ e(ue, { children: /* @__PURE__ */ e(W, { categoryGuid: t.guid }) }),
145
145
  /* @__PURE__ */ e(
146
146
  te,
147
147
  {
@@ -149,7 +149,7 @@ const pt = w(() => {
149
149
  secondary: T(t.totalAmount, "0,0")
150
150
  }
151
151
  ),
152
- /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(j, { name: "add", size: 20 }) })
152
+ /* @__PURE__ */ e(Xe, { children: /* @__PURE__ */ e(j, { name: "add", size: 20 }) })
153
153
  ] }) }, t.guid),
154
154
  /* @__PURE__ */ e(
155
155
  U,
@@ -169,18 +169,18 @@ const pt = w(() => {
169
169
  await s(c, g), t?.(), a(N(i.alert_budget_created, c.name));
170
170
  };
171
171
  return /* @__PURE__ */ m(v, { children: [
172
- /* @__PURE__ */ e(pt, {}),
172
+ /* @__PURE__ */ e(gt, {}),
173
173
  /* @__PURE__ */ e(K, { bgcolor: "background.paper", children: /* @__PURE__ */ e(X, { children: r.map((c) => /* @__PURE__ */ e(
174
- yt,
174
+ ft,
175
175
  {
176
176
  category: c,
177
177
  onAddBudget: n
178
178
  },
179
179
  c.guid
180
180
  )) }) }),
181
- /* @__PURE__ */ e(ft, { onRecalculateBudgets: o })
181
+ /* @__PURE__ */ e(ht, { onRecalculateBudgets: o })
182
182
  ] });
183
- }), we = 5, Fe = 100, se = 25, _t = (t) => {
183
+ }), we = 5, Fe = 100, se = 25, yt = (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,14 +189,14 @@ const pt = 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
- }, bt = (t) => {
192
+ }, _t = (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
- }, Ct = (t) => {
198
- M.selectAll(".bubble").call(_t(t));
199
- }, Ie = (t, o, i) => Math.min(Math.max(t, o), i), Bt = (t, o, i) => {
197
+ }, bt = (t) => {
198
+ M.selectAll(".bubble").call(yt(t));
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",
202
202
  M.forceX().x(i / 2).strength(0.01)
@@ -210,7 +210,7 @@ const pt = w(() => {
210
210
  a.x = Ie(a.x ?? 0, r, i - r), a.y = Ie(a.y ?? 0, r, o - r);
211
211
  }), M.selectAll(".bubble").data(s).attr("transform", (a) => `translate(${a.x},${a.y})`);
212
212
  });
213
- }, Ue = (t, o) => M.scaleLinear().domain([t, o]).range([se, Fe]), St = (t) => {
213
+ }, Ue = (t, o) => M.scaleLinear().domain([t, o]).range([se, Fe]), Bt = (t) => {
214
214
  const o = t.reduce((r, n) => {
215
215
  const c = Math.max(n.transaction_total, n.amount);
216
216
  return c > r ? c : r;
@@ -225,7 +225,7 @@ const pt = w(() => {
225
225
  };
226
226
  });
227
227
  return M.forceSimulation(a).velocityDecay(0.05).force("collide", M.forceCollide((r) => r.radius + 2).strength(0.7));
228
- }, At = (t, o, i) => {
228
+ }, St = (t, o, i) => {
229
229
  const a = Math.PI * se ** 2 * t, r = i < 400 || o < 300, n = r ? 40 : 20, c = Math.max(100, i - n), g = Math.max(100, o - n), d = c * g;
230
230
  let u = se;
231
231
  if (a < d) {
@@ -233,16 +233,16 @@ const pt = 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
- }, xt = (t, o, i, s, a) => {
237
- const { maxRadius: r, minRadius: n } = At(t, o, a);
236
+ }, At = (t, o, i, s, a) => {
237
+ const { maxRadius: r, minRadius: n } = St(t, o, a);
238
238
  return M.scaleLinear().domain([s, i]).range([n, r]);
239
- }, vt = (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);
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);
241
241
  return t.map((d) => ({
242
242
  ...d,
243
243
  radius: g(Math.max(d.transaction_total, d.amount))
244
244
  }));
245
- }, Oe = 5, Tt = 2e3, Dt = ({ bubble: t }) => {
245
+ }, Oe = 5, vt = 2e3, Tt = ({ bubble: t }) => {
246
246
  const o = ie(), {
247
247
  amount: i,
248
248
  guid: s,
@@ -251,7 +251,7 @@ const pt = 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(Tt).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => bt(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", () => _t(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(
@@ -261,8 +261,8 @@ const pt = w(() => {
261
261
  style: { fill: o.palette.common.white, fillOpacity: 0.35 }
262
262
  }
263
263
  ) });
264
- }, Et = l.memo(Dt), F = 75, be = 50;
265
- function wt({ bubble: t, isDraggable: o, onClick: i = () => {
264
+ }, Dt = l.memo(Tt), F = 75, be = 50;
265
+ function Et({ bubble: t, isDraggable: o, onClick: i = () => {
266
266
  } }) {
267
267
  const [s, a] = l.useState(!1), r = $e(), { availableWidth: n } = le(), c = l.useMemo(() => {
268
268
  if (t)
@@ -286,8 +286,8 @@ function wt({ bubble: t, isDraggable: o, onClick: i = () => {
286
286
  } = t, A = n < 400 ? -8 : -12;
287
287
  let C = A, f = A;
288
288
  y > F ? (C = -14, f = -45) : y > be && (f = -32);
289
- let B = 32;
290
- y <= F && (B = n < 400 ? 16 : 24);
289
+ let S = 32;
290
+ y <= F && (S = n < 400 ? 16 : 24);
291
291
  const I = `${t.category.name}: ${b}`, L = {
292
292
  modifiers: [
293
293
  {
@@ -333,10 +333,10 @@ function wt({ bubble: t, isDraggable: o, onClick: i = () => {
333
333
  stroke-opacity: 0.8;
334
334
  }
335
335
  ` }),
336
- /* @__PURE__ */ e(Je, { open: s, slotProps: { popper: L }, title: I, children: /* @__PURE__ */ e("circle", { fill: g, id: `circle-${h}`, r: y }) }),
337
- /* @__PURE__ */ e("svg", { x: C, y: f, children: /* @__PURE__ */ e(j, { name: u, size: B, sx: { fill: d } }) }),
336
+ /* @__PURE__ */ e(qe, { open: s, slotProps: { popper: L }, title: I, children: /* @__PURE__ */ e("circle", { fill: g, id: `circle-${h}`, r: y }) }),
337
+ /* @__PURE__ */ e("svg", { x: C, y: f, children: /* @__PURE__ */ e(j, { name: u, size: S, sx: { fill: d } }) }),
338
338
  y > F && /* @__PURE__ */ e(
339
- S,
339
+ B,
340
340
  {
341
341
  bold: !0,
342
342
  component: "text",
@@ -348,7 +348,7 @@ function wt({ bubble: t, isDraggable: o, onClick: i = () => {
348
348
  }
349
349
  ),
350
350
  y > be && /* @__PURE__ */ e(
351
- S,
351
+ B,
352
352
  {
353
353
  bold: !0,
354
354
  component: "text",
@@ -360,7 +360,7 @@ function wt({ bubble: t, isDraggable: o, onClick: i = () => {
360
360
  }
361
361
  ),
362
362
  y <= F && y > be && /* @__PURE__ */ e(
363
- S,
363
+ B,
364
364
  {
365
365
  component: "text",
366
366
  id: `budget-description-${h}-2`,
@@ -370,13 +370,13 @@ function wt({ bubble: t, isDraggable: o, onClick: i = () => {
370
370
  children: b.split(" ")[1]
371
371
  }
372
372
  ),
373
- /* @__PURE__ */ e(Et, { bubble: c })
373
+ /* @__PURE__ */ e(Dt, { bubble: c })
374
374
  ]
375
375
  },
376
376
  h
377
377
  );
378
378
  }
379
- const It = ({
379
+ const wt = ({
380
380
  height: t,
381
381
  width: o,
382
382
  isDraggable: i = !1,
@@ -384,7 +384,7 @@ const It = ({
384
384
  }
385
385
  }) => {
386
386
  const [a, r] = l.useState([]), n = l.useRef(null), c = l.useRef(!1), { detailedBudgets: g } = E(), d = l.useCallback(() => {
387
- const u = n.current, p = St(g), h = p.nodes();
387
+ const u = n.current, p = Bt(g), h = p.nodes();
388
388
  if (u) {
389
389
  const b = u.nodes(), y = new Map(b.map((_) => [_.guid, _]));
390
390
  h.forEach((_) => {
@@ -406,12 +406,12 @@ const It = ({
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 = vt(p, g, h, t, o);
410
- u.nodes(b), Bt(u, t, o), i && setTimeout(() => {
411
- Ct(u);
409
+ const p = u.nodes(), h = o > 0 && o < 450 || t > 0 && t < 300, b = xt(p, g, h, t, o);
410
+ u.nodes(b), Ct(u, t, o), i && setTimeout(() => {
411
+ bt(u);
412
412
  }, 0), r([...b]);
413
- }, [t, o, i, g]), /* @__PURE__ */ e("svg", { height: t, style: { overflow: "visible" }, width: Math.abs(o), children: a.map((u) => /* @__PURE__ */ e(wt, { bubble: u, isDraggable: i, onClick: s }, u.guid)) });
414
- }, Ot = w(It), Rt = ({
413
+ }, [t, o, i, g]), /* @__PURE__ */ e("svg", { height: t, style: { overflow: "visible" }, width: Math.abs(o), children: a.map((u) => /* @__PURE__ */ e(Et, { bubble: u, isDraggable: i, onClick: s }, u.guid)) });
414
+ }, It = w(wt), Ot = ({
415
415
  isMiniWidget: t = !1,
416
416
  onConnectAccountsClick: o,
417
417
  createBudgetOnClick: i
@@ -493,7 +493,7 @@ const It = ({
493
493
  }
494
494
  }
495
495
  ) });
496
- }, He = w(
496
+ }, We = w(
497
497
  ({
498
498
  createBudgetOnClick: t = () => {
499
499
  },
@@ -518,14 +518,14 @@ const It = ({
518
518
  sx: { alignSelf: "center", ...s && { height: "100%" } },
519
519
  children: [
520
520
  a || !g ? /* @__PURE__ */ e(
521
- Rt,
521
+ Ot,
522
522
  {
523
523
  createBudgetOnClick: t,
524
524
  isMiniWidget: s,
525
525
  onConnectAccountsClick: x
526
526
  }
527
527
  ) : /* @__PURE__ */ e(
528
- Ot,
528
+ It,
529
529
  {
530
530
  height: o,
531
531
  isDraggable: i,
@@ -534,7 +534,7 @@ const It = ({
534
534
  }
535
535
  ),
536
536
  /* @__PURE__ */ e(
537
- qe,
537
+ Ze,
538
538
  {
539
539
  onClose: () => b(!1),
540
540
  showConnectionsWidget: h,
@@ -545,7 +545,7 @@ const It = ({
545
545
  }
546
546
  );
547
547
  }
548
- ), We = ({ budget: t }) => {
548
+ ), He = ({ budget: t }) => {
549
549
  const {
550
550
  amount: o,
551
551
  budgetColors: { background: i },
@@ -560,19 +560,19 @@ const It = ({
560
560
  }
561
561
  ];
562
562
  return /* @__PURE__ */ e(ve, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ m(v, { alignItems: "center", gap: 16, children: [
563
- /* @__PURE__ */ e(H, { categoryGuid: a, size: 56 }),
564
- /* @__PURE__ */ e(Xe, { variant: "H1", children: `${T(n, "0,0")} / ${T(o, "0,0")}` }),
565
- /* @__PURE__ */ e(S, { bold: !0, variant: "XSmall", children: s }),
563
+ /* @__PURE__ */ e(W, { categoryGuid: a, size: 56 }),
564
+ /* @__PURE__ */ e(B, { variant: "H1", children: `${T(n, "0,0")} / ${T(o, "0,0")}` }),
565
+ /* @__PURE__ */ e(B, { bold: !0, variant: "XSmall", children: s }),
566
566
  /* @__PURE__ */ e(Be, { data: c, height: 10 })
567
567
  ] }) }) });
568
- }, Mt = w(() => {
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
571
  /* @__PURE__ */ e(j, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
572
- /* @__PURE__ */ e(S, { bold: !0, color: "secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
573
- /* @__PURE__ */ e(S, { color: "text.secondary", variant: "XSmall", children: t.zero_state_no_sub_budgets_description })
572
+ /* @__PURE__ */ e(B, { bold: !0, color: "secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
573
+ /* @__PURE__ */ e(B, { color: "text.secondary", variant: "XSmall", children: t.zero_state_no_sub_budgets_description })
574
574
  ] });
575
- }), Lt = w(({ budget: t }) => {
575
+ }), Mt = w(({ budget: t }) => {
576
576
  const {
577
577
  amount: o,
578
578
  budgetColors: { background: i },
@@ -581,20 +581,20 @@ const It = ({
581
581
  transaction_total: r
582
582
  } = t, { setSelectedSubBudget: n } = E();
583
583
  return /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ m(ee, { onClick: () => n(t), children: [
584
- /* @__PURE__ */ e(ue, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Pe, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
584
+ /* @__PURE__ */ e(ue, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Pe, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(W, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
585
585
  /* @__PURE__ */ e(
586
586
  te,
587
587
  {
588
- primary: /* @__PURE__ */ e(v, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: t.category.name }) }),
589
- secondary: /* @__PURE__ */ e(v, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(S, { fontWeight: 400, variant: "Body", children: `
588
+ primary: /* @__PURE__ */ e(v, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(B, { bold: !0, variant: "Body", children: t.category.name }) }),
589
+ secondary: /* @__PURE__ */ e(v, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(B, { fontWeight: 400, variant: "Body", children: `
590
590
  ${T(r, "0,0")} /
591
591
  ${T(o, "0,0")}
592
592
  ` }) })
593
593
  }
594
594
  )
595
595
  ] }) });
596
- }), Nt = w(({ category: t, parentBudget: o }) => {
597
- const { budgets: i, common: s } = D(), { setExpandedGuid: a, setOnSelect: r } = at(), { addBudget: n } = E(), [c, g] = l.useState(!1), [d, u] = l.useState(!1), [p, h] = l.useState(""), [b, y] = l.useState(void 0);
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);
598
598
  l.useEffect(() => {
599
599
  r((A) => {
600
600
  const C = t.subCategories.find((f) => f.guid === A);
@@ -610,7 +610,7 @@ const It = ({
610
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: [
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
- /* @__PURE__ */ e(S, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
613
+ /* @__PURE__ */ e(B, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
614
614
  ] }),
615
615
  /* @__PURE__ */ e(j, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
616
616
  ] }) }) }) }),
@@ -622,7 +622,7 @@ const It = ({
622
622
  isOpen: c,
623
623
  onClose: () => g(!1),
624
624
  title: i.add_sub_budget_title,
625
- children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(rt, { category: t, subCategories: t.subCategories }) })
625
+ children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(at, { category: t, subCategories: t.subCategories }) })
626
626
  }
627
627
  ),
628
628
  /* @__PURE__ */ e(
@@ -645,12 +645,12 @@ const It = ({
645
645
  }
646
646
  )
647
647
  ] });
648
- }), kt = w(({ budget: t }) => {
648
+ }), Nt = w(({ budget: t }) => {
649
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("");
650
650
  l.useEffect(() => {
651
651
  n && (x(`${n.amount}`), u({
652
652
  ...d,
653
- custom: (B) => B.category_guid === n.category_guid
653
+ custom: (S) => S.category_guid === n.category_guid
654
654
  }));
655
655
  }, [n]);
656
656
  const A = async () => {
@@ -663,16 +663,16 @@ const It = ({
663
663
  }, f = () => {
664
664
  u({
665
665
  ...d,
666
- custom: (B) => B.category_guid === t.category_guid || B.top_level_category_guid === t.category_guid
666
+ custom: (S) => S.category_guid === t.category_guid || S.top_level_category_guid === t.category_guid
667
667
  }), c(void 0);
668
668
  };
669
669
  return /* @__PURE__ */ m(l.Fragment, { children: [
670
670
  /* @__PURE__ */ m(X, { sx: { bgcolor: "background.paper" }, children: [
671
- i.length === 0 ? /* @__PURE__ */ e(Mt, {}) : i.map((B) => /* @__PURE__ */ m(l.Fragment, { children: [
672
- /* @__PURE__ */ e(Lt, { budget: B }),
671
+ i.length === 0 ? /* @__PURE__ */ e(Rt, {}) : i.map((S) => /* @__PURE__ */ m(l.Fragment, { children: [
672
+ /* @__PURE__ */ e(Mt, { budget: S }),
673
673
  /* @__PURE__ */ e(de, {})
674
- ] }, B.guid)),
675
- /* @__PURE__ */ e(Nt, { category: o, parentBudget: t })
674
+ ] }, S.guid)),
675
+ /* @__PURE__ */ e(Lt, { category: o, parentBudget: t })
676
676
  ] }),
677
677
  /* @__PURE__ */ e(
678
678
  $,
@@ -686,7 +686,7 @@ const It = ({
686
686
  secondaryText: s.details_delete_button,
687
687
  title: s.details_title,
688
688
  children: n && /* @__PURE__ */ m(v, { gap: 24, children: [
689
- /* @__PURE__ */ e(We, { budget: n }),
689
+ /* @__PURE__ */ e(He, { budget: n }),
690
690
  /* @__PURE__ */ e(xe, { height: "100%" })
691
691
  ] })
692
692
  }
@@ -721,29 +721,29 @@ const It = ({
721
721
  primaryColor: "error",
722
722
  primaryText: "Delete",
723
723
  secondaryColor: "secondary",
724
- children: /* @__PURE__ */ e(S, { variant: "Paragraph", children: N(s.delete_description, n.category.name) })
724
+ children: /* @__PURE__ */ e(B, { variant: "Paragraph", children: N(s.delete_description, n.category.name) })
725
725
  }
726
726
  )
727
727
  ] })
728
728
  ] });
729
- }), $t = w(({ budget: t }) => {
729
+ }), kt = w(({ budget: t }) => {
730
730
  const { is_mobile_webview: o } = Le(), { setAlert: i } = E(), { budgets: s, common: a, transactions: r } = D(), { isDesktop: n, isSmallTablet: c, isTablet: g } = me(), {
731
731
  sortedTransactions: d,
732
732
  sortedTransactionsWithSplits: u,
733
733
  tags: p
734
734
  } = J(), [h, b] = l.useState(0), [y, _] = l.useState(""), x = l.useMemo(
735
- () => d.find((B) => B.guid === y),
735
+ () => d.find((S) => S.guid === y),
736
736
  [y, d]
737
- ), A = (B, I) => {
737
+ ), A = (S, I) => {
738
738
  b(I);
739
739
  }, C = () => {
740
- tt(u, p), i(s.alert_csv_downloaded);
740
+ et(u, p), i(s.alert_csv_downloaded);
741
741
  }, f = d.length > 0 && !o && (n || g && !c);
742
742
  return /* @__PURE__ */ m(v, { gap: 24, children: [
743
- /* @__PURE__ */ e(We, { budget: t }),
743
+ /* @__PURE__ */ e(He, { budget: t }),
744
744
  /* @__PURE__ */ m(v, { children: [
745
745
  /* @__PURE__ */ m(
746
- et,
746
+ Qe,
747
747
  {
748
748
  onChange: A,
749
749
  sx: { width: "100%" },
@@ -768,7 +768,7 @@ const It = ({
768
768
  ) }),
769
769
  /* @__PURE__ */ e(xe, { height: "100%", onClick: _ })
770
770
  ] }),
771
- h === 1 && /* @__PURE__ */ e(kt, { budget: t }),
771
+ h === 1 && /* @__PURE__ */ e(Nt, { budget: t }),
772
772
  /* @__PURE__ */ e(
773
773
  $,
774
774
  {
@@ -776,12 +776,12 @@ const It = ({
776
776
  isOpen: !!x,
777
777
  onClose: () => _(""),
778
778
  title: s.details_transaction_drawer,
779
- children: x && /* @__PURE__ */ e(nt, { transaction: x })
779
+ children: x && /* @__PURE__ */ e(tt, { transaction: x })
780
780
  }
781
781
  )
782
782
  ] })
783
783
  ] });
784
- }), Pt = w(() => {
784
+ }), $t = w(() => {
785
785
  const { selectedAccountGuids: t } = q(), { budgets: o, common: i } = D(), {
786
786
  alert: s,
787
787
  dateRange: a,
@@ -800,7 +800,7 @@ const It = ({
800
800
  showSplits: !0
801
801
  }));
802
802
  }, [n]);
803
- const B = async () => {
803
+ const S = async () => {
804
804
  n && (await u({
805
805
  ...n,
806
806
  amount: Number(C),
@@ -830,7 +830,7 @@ const It = ({
830
830
  secondaryText: o.details_delete_button,
831
831
  title: o.details_title,
832
832
  children: [
833
- /* @__PURE__ */ e($t, { budget: n }),
833
+ /* @__PURE__ */ e(kt, { budget: n }),
834
834
  /* @__PURE__ */ e(
835
835
  Ae,
836
836
  {
@@ -851,7 +851,7 @@ const It = ({
851
851
  disablePrimaryButton: Number(C) <= 0,
852
852
  isOpen: y,
853
853
  onClose: R,
854
- onPrimaryAction: B,
854
+ onPrimaryAction: S,
855
855
  onSecondaryAction: R,
856
856
  primaryText: o.edit_save_button,
857
857
  children: /* @__PURE__ */ e(
@@ -874,11 +874,11 @@ const It = ({
874
874
  primaryColor: "error",
875
875
  primaryText: o.details_delete_button,
876
876
  secondaryColor: "secondary",
877
- children: /* @__PURE__ */ e(S, { variant: "Paragraph", children: N(o.delete_description, n.category.name) })
877
+ children: /* @__PURE__ */ e(B, { variant: "Paragraph", children: N(o.delete_description, n.category.name) })
878
878
  }
879
879
  )
880
880
  ] });
881
- }), Gt = ({ budget: t, onClick: o }) => {
881
+ }), Pt = ({ budget: t, onClick: o }) => {
882
882
  const {
883
883
  amount: i,
884
884
  budgetColors: { background: s, description: a },
@@ -889,25 +889,25 @@ const It = ({
889
889
  transaction_total: d
890
890
  } = t;
891
891
  return /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ m(ee, { onClick: () => o?.(t), children: [
892
- /* @__PURE__ */ e(ue, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Pe, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: r, variant: "basic" }) }) }),
892
+ /* @__PURE__ */ e(ue, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Pe, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(W, { categoryGuid: r, variant: "basic" }) }) }),
893
893
  /* @__PURE__ */ e(
894
894
  te,
895
895
  {
896
896
  primary: /* @__PURE__ */ m(v, { component: "span", direction: "row", justifyContent: "space-between", children: [
897
- /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: t.category.name }),
898
- /* @__PURE__ */ e(S, { fontWeight: 400, variant: "Body", children: `
897
+ /* @__PURE__ */ e(B, { bold: !0, variant: "Body", children: t.category.name }),
898
+ /* @__PURE__ */ e(B, { fontWeight: 400, variant: "Body", children: `
899
899
  ${T(d, "0,0")} /
900
900
  ${T(i, "0,0")}
901
901
  ` })
902
902
  ] }),
903
903
  secondary: /* @__PURE__ */ m(v, { component: "span", direction: "row", justifyContent: "space-between", children: [
904
- /* @__PURE__ */ e(S, { variant: "XSmall", children: `${g.length} Sub-budgets` }),
905
- /* @__PURE__ */ e(S, { bold: c > 100, color: a, variant: "XSmall", children: n })
904
+ /* @__PURE__ */ e(B, { variant: "XSmall", children: `${g.length} Sub-budgets` }),
905
+ /* @__PURE__ */ e(B, { bold: c > 100, color: a, variant: "XSmall", children: n })
906
906
  ] })
907
907
  }
908
908
  )
909
909
  ] }) });
910
- }, jt = w(() => {
910
+ }, Gt = w(() => {
911
911
  const { onEvent: t } = Z(), { budgets: o } = D(), { detailedBudgets: i, setSelectedBudget: s } = E(), a = (r) => {
912
912
  s(r), t(P.BUDGETS_CLICK_BUDGET_CATEGORY, {
913
913
  budget_category: r.category.name,
@@ -917,21 +917,21 @@ const It = ({
917
917
  return /* @__PURE__ */ m(ve, { elevation: 2, children: [
918
918
  /* @__PURE__ */ e(Ge, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Me, { children: o.budget_categories_title }) }),
919
919
  /* @__PURE__ */ e(Te, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ e(X, { children: i.map((r) => /* @__PURE__ */ m(l.Fragment, { children: [
920
- /* @__PURE__ */ e(Gt, { budget: r, onClick: a }),
920
+ /* @__PURE__ */ e(Pt, { budget: r, onClick: a }),
921
921
  /* @__PURE__ */ e(de, {})
922
922
  ] }, r.guid)) }) })
923
923
  ] });
924
- }), zt = w(() => {
924
+ }), jt = w(() => {
925
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
- let B = f / d;
928
- B > 1 && (B = 1);
927
+ let S = f / d;
928
+ S > 1 && (S = 1);
929
929
  let I = t.palette.success.main;
930
- B > 0.8 && B < 1 ? I = t.palette.warning.main : B >= 1 && (I = t.palette.error.main);
930
+ S > 0.8 && S < 1 ? I = t.palette.warning.main : S >= 1 && (I = t.palette.error.main);
931
931
  const L = [
932
932
  {
933
933
  color: I,
934
- percentage: `${B}`
934
+ percentage: `${S}`
935
935
  }
936
936
  ];
937
937
  return [f, L];
@@ -939,12 +939,12 @@ const It = ({
939
939
  const f = Math.abs(
940
940
  n.reduce((L, R) => L + R.totalAmount, 0)
941
941
  );
942
- let B = f / u;
943
- B > 1 && (B = 1);
942
+ let S = f / u;
943
+ S > 1 && (S = 1);
944
944
  const I = [
945
945
  {
946
946
  color: t.palette.secondary.main,
947
- percentage: `${B}`
947
+ percentage: `${S}`
948
948
  }
949
949
  ];
950
950
  return [f, I];
@@ -952,7 +952,7 @@ const It = ({
952
952
  p({
953
953
  accounts: i.map((f) => f.guid),
954
954
  dateRange: {
955
- start: st(/* @__PURE__ */ new Date(), 90),
955
+ start: rt(/* @__PURE__ */ new Date(), 90),
956
956
  end: /* @__PURE__ */ new Date()
957
957
  }
958
958
  }), b(!0), o(P.BUDGETS_CLICK_EDIT_INCOME);
@@ -961,9 +961,9 @@ const It = ({
961
961
  /* @__PURE__ */ e(Ge, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Me, { children: s.overview_title }) }),
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
- /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 8 }, variant: "Body", children: s.spending_title }),
964
+ /* @__PURE__ */ e(B, { bold: !0, sx: { mb: 8 }, variant: "Body", children: s.spending_title }),
965
965
  /* @__PURE__ */ e(Be, { data: _, height: 16 }),
966
- /* @__PURE__ */ e(S, { variant: "Small", children: N(
966
+ /* @__PURE__ */ e(B, { variant: "Small", children: N(
967
967
  s.spending_description,
968
968
  T(y, "0,0"),
969
969
  T(d, "0,0")
@@ -971,9 +971,9 @@ const It = ({
971
971
  ] }),
972
972
  /* @__PURE__ */ m(v, { gap: 8, children: [
973
973
  /* @__PURE__ */ m(v, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
974
- /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: s.income_title }),
974
+ /* @__PURE__ */ e(B, { bold: !0, variant: "Body", children: s.income_title }),
975
975
  /* @__PURE__ */ e(
976
- it,
976
+ st,
977
977
  {
978
978
  "aria-label": r.manage_income,
979
979
  onClick: C,
@@ -983,7 +983,7 @@ const It = ({
983
983
  )
984
984
  ] }),
985
985
  /* @__PURE__ */ e(Be, { data: A, height: 16 }),
986
- /* @__PURE__ */ e(S, { variant: "Small", children: N(
986
+ /* @__PURE__ */ e(B, { variant: "Small", children: N(
987
987
  s.income_description,
988
988
  T(x, "0,0"),
989
989
  T(u, "0,0")
@@ -997,7 +997,7 @@ const It = ({
997
997
  isOpen: h,
998
998
  onClose: () => b(!1),
999
999
  title: r.manage_income,
1000
- children: /* @__PURE__ */ e(ct, { forOverview: !0 })
1000
+ children: /* @__PURE__ */ e(it, { forOverview: !0 })
1001
1001
  }
1002
1002
  )
1003
1003
  ] });
@@ -1011,7 +1011,7 @@ const It = ({
1011
1011
  setAlert: _,
1012
1012
  setTheme: x,
1013
1013
  detailedBudgets: A
1014
- } = E(), { setDateRange: C } = ce(), { loadDateRangeCategoryTotals: f, loadMonthlyCategoryTotals: B } = Y(), { isSmallTablet: I, isMobile: L, isSmallMobile: R } = me(), O = I || L || R, [z, k] = l.useState(!1);
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
@@ -1022,7 +1022,7 @@ const It = ({
1022
1022
  }, []), l.useEffect(() => (y({ start: re(oe()), end: Ce(oe()) }), () => {
1023
1023
  y({ start: re(oe()), end: Ce(oe()) });
1024
1024
  }), [a]), l.useEffect(() => {
1025
- c && (d(p.start, p.end), f(g, p.start, p.end).finally(), B(g).finally(), C(p));
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
1028
  y({ start: V[0] || /* @__PURE__ */ new Date(), end: V[1] || /* @__PURE__ */ new Date() });
@@ -1034,9 +1034,9 @@ const It = ({
1034
1034
  k(!1);
1035
1035
  }, G = () => {
1036
1036
  k(!1);
1037
- }, W = Ke(p.end, re(/* @__PURE__ */ new Date()));
1037
+ }, H = Ke(p.end, re(/* @__PURE__ */ new Date()));
1038
1038
  return !c || !h ? /* @__PURE__ */ e(ge, {}) : /* @__PURE__ */ m(
1039
- lt,
1039
+ ct,
1040
1040
  {
1041
1041
  actions: [
1042
1042
  {
@@ -1047,7 +1047,7 @@ const It = ({
1047
1047
  ],
1048
1048
  calendarActions: {
1049
1049
  onRangeChanged: he,
1050
- shouldDisableNext: W,
1050
+ shouldDisableNext: H,
1051
1051
  shouldDisablePicker: !0
1052
1052
  },
1053
1053
  onAccountsFilterClick: fe,
@@ -1064,7 +1064,7 @@ const It = ({
1064
1064
  width: "100%",
1065
1065
  children: [
1066
1066
  /* @__PURE__ */ e(v, { height: O ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ e(
1067
- He,
1067
+ We,
1068
1068
  {
1069
1069
  createBudgetOnClick: ne,
1070
1070
  height: O ? 450 : 800,
@@ -1081,15 +1081,15 @@ const It = ({
1081
1081
  sx: { mr: 24, mt: 48 },
1082
1082
  width: O ? "100%" : Re,
1083
1083
  children: [
1084
- /* @__PURE__ */ e(zt, {}),
1085
- /* @__PURE__ */ e(jt, {})
1084
+ /* @__PURE__ */ e(jt, {}),
1085
+ /* @__PURE__ */ e(Gt, {})
1086
1086
  ]
1087
1087
  }
1088
1088
  )
1089
1089
  ]
1090
1090
  }
1091
1091
  ),
1092
- /* @__PURE__ */ e(Pt, {}),
1092
+ /* @__PURE__ */ e($t, {}),
1093
1093
  /* @__PURE__ */ e(
1094
1094
  $,
1095
1095
  {
@@ -1132,7 +1132,7 @@ const It = ({
1132
1132
  ]
1133
1133
  }
1134
1134
  );
1135
- }), Ft = ({
1135
+ }), zt = ({
1136
1136
  budgetsCopy: t,
1137
1137
  difference: o,
1138
1138
  handleAddClick: i,
@@ -1148,7 +1148,7 @@ const It = ({
1148
1148
  }, [a]);
1149
1149
  return /* @__PURE__ */ m(v, { sx: { height: "100%", justifyContent: "space-between" }, children: [
1150
1150
  /* @__PURE__ */ e(
1151
- He,
1151
+ We,
1152
1152
  {
1153
1153
  createBudgetOnClick: i,
1154
1154
  height: n,
@@ -1157,12 +1157,12 @@ const It = ({
1157
1157
  }
1158
1158
  ),
1159
1159
  !s && /* @__PURE__ */ m(K, { ml: 16, children: [
1160
- /* @__PURE__ */ e(S, { bold: !0, color: o < 0 ? "error.main" : "success.main", children: T(Math.abs(o), "0,0") }),
1161
- /* @__PURE__ */ e(S, { children: o < 0 ? t.overspent_in_budgets : t.left_in_budgets })
1160
+ /* @__PURE__ */ e(B, { bold: !0, color: o < 0 ? "error.main" : "success.main", children: T(Math.abs(o), "0,0") }),
1161
+ /* @__PURE__ */ e(B, { children: o < 0 ? t.overspent_in_budgets : t.left_in_budgets })
1162
1162
  ] })
1163
1163
  ] });
1164
- }, Ut = (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 = dt(), [y, _] = l.useState(!1);
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);
1166
1166
  l.useEffect(() => {
1167
1167
  a || r().finally();
1168
1168
  }, []), l.useEffect(() => {
@@ -1185,7 +1185,7 @@ const It = ({
1185
1185
  }), !d || !a) return /* @__PURE__ */ e(ge, {});
1186
1186
  const f = s.length === 0;
1187
1187
  return /* @__PURE__ */ m(
1188
- gt,
1188
+ mt,
1189
1189
  {
1190
1190
  contentStyles: { height: "calc(100% - 66px)", ":last-child": { pb: 0 } },
1191
1191
  primaryCtaLabel: f ? c.get_started_cta : c.details_cta,
@@ -1194,7 +1194,7 @@ const It = ({
1194
1194
  ...t,
1195
1195
  children: [
1196
1196
  /* @__PURE__ */ e(
1197
- Ft,
1197
+ zt,
1198
1198
  {
1199
1199
  budgetsCopy: c,
1200
1200
  difference: b,
@@ -1221,12 +1221,12 @@ const It = ({
1221
1221
  ]
1222
1222
  }
1223
1223
  );
1224
- }, Vn = w(Ut), ae = {
1224
+ }, Hn = w(Ft), ae = {
1225
1225
  CANCEL_DELETE: "Cancel - Delete",
1226
1226
  END_SAVE: "End - Save",
1227
1227
  END_DELETE: "End - Delete",
1228
1228
  START_DELETE: "Start - Delete"
1229
- }, Ht = ({ onClose: t, onEvent: o, onViewHistory: i }) => {
1229
+ }, Ut = ({ onClose: t, onEvent: o, onViewHistory: i }) => {
1230
1230
  const {
1231
1231
  alert: s,
1232
1232
  dateRange: a,
@@ -1236,25 +1236,25 @@ const It = ({
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, B] = l.useState(null), [I, L] = l.useState(!1), R = l.useRef(!1);
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);
1240
1240
  if (l.useEffect(() => {
1241
1241
  !n || c || (C(`${n.amount}`), x({
1242
1242
  accounts: y,
1243
1243
  dateRange: a,
1244
- custom: ({ category_guid: G, top_level_category_guid: W }) => {
1244
+ custom: ({ category_guid: G, top_level_category_guid: H }) => {
1245
1245
  const { category_guid: V } = n;
1246
- return G === V || W === V;
1246
+ return G === V || H === V;
1247
1247
  },
1248
1248
  showSplits: !0
1249
1249
  }), L(!0));
1250
1250
  }, [n]), !b) return /* @__PURE__ */ e(ge, {});
1251
1251
  if (!n) return null;
1252
1252
  const O = () => {
1253
- C(""), B(null), L(!1), setTimeout(() => {
1253
+ C(""), S(null), L(!1), setTimeout(() => {
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}` : ""), B(null);
1257
+ f === "delete" && o?.(ae.CANCEL_DELETE, A), C(n.amount ? `${n.amount}` : ""), S(null);
1258
1258
  }, k = async () => {
1259
1259
  if (f === "edit") {
1260
1260
  if (R.current) return;
@@ -1263,13 +1263,13 @@ const It = ({
1263
1263
  amount: Number(A)
1264
1264
  }), o?.(ae.END_SAVE, A), g(
1265
1265
  N(p.alert_budget_updated, n.category.name)
1266
- ), B(null), R.current = !1;
1266
+ ), S(null), R.current = !1;
1267
1267
  }
1268
1268
  f === "delete" && (await r(n.guid), o?.(ae.END_DELETE, A), O());
1269
- }, { remainingAmount: he, spentPercentage: fe, iconColor: ne } = ut(
1269
+ }, { remainingAmount: he, spentPercentage: fe, iconColor: ne } = dt(
1270
1270
  n.transaction_total ?? 0,
1271
1271
  n.amount ?? 0
1272
- ), ye = (G, W) => N(G, /* @__PURE__ */ e("b", { children: W }));
1272
+ ), ye = (G, H) => N(G, /* @__PURE__ */ e("b", { children: H }));
1273
1273
  return /* @__PURE__ */ m(l.Fragment, { children: [
1274
1274
  /* @__PURE__ */ m(
1275
1275
  $,
@@ -1281,12 +1281,12 @@ const It = ({
1281
1281
  },
1282
1282
  isOpen: I,
1283
1283
  onClose: O,
1284
- onPrimaryAction: () => B(
1284
+ onPrimaryAction: () => S(
1285
1285
  "edit"
1286
1286
  /* EDIT */
1287
1287
  ),
1288
1288
  onSecondaryAction: () => {
1289
- o?.(ae.START_DELETE, A), B(
1289
+ o?.(ae.START_DELETE, A), S(
1290
1290
  "delete"
1291
1291
  /* DELETE */
1292
1292
  );
@@ -1302,16 +1302,16 @@ const It = ({
1302
1302
  title: N(p.details_type_title, n.category.name),
1303
1303
  children: [
1304
1304
  /* @__PURE__ */ e(
1305
- ot,
1305
+ nt,
1306
1306
  {
1307
1307
  amount: n.amount,
1308
1308
  icon: /* @__PURE__ */ e(
1309
- H,
1309
+ W,
1310
1310
  {
1311
1311
  categoryGuid: n.category.guid,
1312
1312
  size: 44,
1313
1313
  sx: {
1314
- bgcolor: Qe(Ee(n.category.guid, _), 0.15),
1314
+ bgcolor: Je(Ee(n.category.guid, _), 0.15),
1315
1315
  border: `1px solid ${Ee(n.category.guid, _)}`,
1316
1316
  color: "text.primary"
1317
1317
  }
@@ -1340,7 +1340,7 @@ const It = ({
1340
1340
  }
1341
1341
  ),
1342
1342
  f && /* @__PURE__ */ e(
1343
- mt,
1343
+ ut,
1344
1344
  {
1345
1345
  closeAriaLabel: h.close_aria,
1346
1346
  content: ye(
@@ -1362,9 +1362,9 @@ const It = ({
1362
1362
  }
1363
1363
  )
1364
1364
  ] });
1365
- }, Kn = w(Ht);
1365
+ }, Vn = w(Ut);
1366
1366
  export {
1367
- Vn as BubbleBudgetsMiniWidget,
1367
+ Hn as BubbleBudgetsMiniWidget,
1368
1368
  Wn as BubbleBudgetsWidget,
1369
- Kn as BudgetDetailsDrawerV2
1369
+ Vn as BudgetDetailsDrawerV2
1370
1370
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.12.3",
3
+ "version": "7.12.4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",