@mx-cartographer/experiences 7.11.11 → 7.11.12

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.
@@ -1,64 +1,64 @@
1
- import { jsxs as u, jsx as e, Fragment as qe } from "react/jsx-runtime";
1
+ import { jsxs as u, jsx as e, Fragment as Je } from "react/jsx-runtime";
2
2
  import l from "react";
3
3
  import { observer as I } from "mobx-react-lite";
4
4
  import { endOfMonth as Be } from "date-fns/endOfMonth";
5
- import { isAfter as Je } from "date-fns/isAfter";
6
- import { startOfMonth as ce } from "date-fns/startOfMonth";
7
- import { startOfToday as se } from "date-fns/startOfToday";
5
+ import { isAfter as Qe } from "date-fns/isAfter";
6
+ import { startOfMonth as ie } from "date-fns/startOfMonth";
7
+ import { startOfToday as re } from "date-fns/startOfToday";
8
8
  import Ae from "@mui/material/Alert";
9
9
  import ve from "@mui/material/Snackbar";
10
10
  import x from "@mui/material/Stack";
11
- import de from "@mui/material/styles/useTheme";
12
- import W from "@mui/material/Box";
11
+ import le from "@mui/material/styles/useTheme";
12
+ import V from "@mui/material/Box";
13
13
  import Z from "@mui/material/List";
14
- import { Text as S, CategoryIcon as H, Icon as j, H2 as Pe, H3 as Ge, P as ye } from "@mxenabled/mxui";
15
- import { u as D, i as E, j as ue, m as q, p as me, a as je, g as J, b as Q, h as ee, d as Fe } from "../hooks-zu7yblbi.mjs";
14
+ import { Text as S, CategoryIcon as K, Icon as j, H2 as Pe, H3 as Ge, P as ye } from "@mxenabled/mxui";
15
+ import { u as E, i as w, j as de, m as q, p as ue, a as je, g as J, b as Q, h as ee, d as Fe } from "../hooks-zu7yblbi.mjs";
16
16
  import { f as T } from "../NumberFormatting-DjTD0t3W.mjs";
17
17
  import Te from "@mui/material/Button";
18
- import ge from "@mui/material/Divider";
18
+ import me from "@mui/material/Divider";
19
19
  import te from "@mui/material/ListItem";
20
- import pe from "@mui/material/ListItemAvatar";
20
+ import ge from "@mui/material/ListItemAvatar";
21
21
  import oe from "@mui/material/ListItemButton";
22
22
  import ne from "@mui/material/ListItemText";
23
23
  import { b as R } from "../Localization-2MODESHW.mjs";
24
- import { D as k } from "../Drawer-DV4NTsFg.mjs";
25
- import Qe from "@mui/material/ListItemSecondaryAction";
26
- import { C as et } from "../CurrencyInput-CDY0awYV.mjs";
27
- import { D as U } from "../Dialog-DdCwLgrl.mjs";
28
- import { C as tt } from "../ConnectionsDrawer-c7HaKeRj.mjs";
24
+ import { D as $ } from "../Drawer-DV4NTsFg.mjs";
25
+ import et from "@mui/material/ListItemSecondaryAction";
26
+ import { C as tt } from "../CurrencyInput-CDY0awYV.mjs";
27
+ import { D as H } from "../Dialog-DdCwLgrl.mjs";
28
+ import { C as ot } from "../ConnectionsDrawer-c7HaKeRj.mjs";
29
29
  import * as M from "d3";
30
- import ot from "@mui/material/Tooltip";
31
- import { useTheme as ze, alpha as nt } from "@mui/material/styles";
32
- import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
33
- import { L as fe } from "../Loader-D3rjKx72.mjs";
30
+ import nt from "@mui/material/Tooltip";
31
+ import { useTheme as ze, alpha as at } from "@mui/material/styles";
32
+ import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
33
+ import { L as he } from "../Loader-D3rjKx72.mjs";
34
34
  import { E as Ce } from "../EmptyState-DHAkGsjk.mjs";
35
- import { A as G } from "../Analytics-i5h6BxR1.mjs";
35
+ import { A as P } from "../Analytics-i5h6BxR1.mjs";
36
36
  import Re from "@mui/material/Tab";
37
- import at from "@mui/material/Tabs";
38
- import { e as rt } from "../exportTransactionsToCSV-YXwmzmUp.mjs";
37
+ import rt from "@mui/material/Tabs";
38
+ import { e as st } from "../exportTransactionsToCSV-YXwmzmUp.mjs";
39
39
  import { T as De } from "../TransactionList-BibbhhS9.mjs";
40
- import { T as st } from "../TransactionDetails-Cedp4OOg.mjs";
40
+ import { T as it } from "../TransactionDetails-CCLMsk_N.mjs";
41
41
  import Ee from "@mui/material/Card";
42
42
  import we from "@mui/material/CardContent";
43
43
  import { S as xe } from "../StatusBar-BK_uYHAB.mjs";
44
44
  import { S as Ue } from "../SingleSegmentDonut-BgbLgwHi.mjs";
45
- import { u as it, b as ct } from "../CategorySelectorDrawer-BMmxw2oY.mjs";
45
+ import { u as ct, b as lt } from "../CategorySelectorDrawer-BMmxw2oY.mjs";
46
46
  import We from "@mui/material/CardHeader";
47
- import { subDays as lt } from "date-fns/subDays";
48
- import dt from "@mui/material/IconButton";
49
- import { M as ut } from "../ManageIncome-Bx6Uw4fv.mjs";
47
+ import { subDays as dt } from "date-fns/subDays";
48
+ import ut from "@mui/material/IconButton";
49
+ import { M as mt } from "../ManageIncome-CerJpiYw.mjs";
50
50
  import { u as He } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
51
- import { W as mt } from "../WidgetContainer-sC5KLXHI.mjs";
52
- import { u as gt } from "../BudgetUtil-CTpLz9lw.mjs";
53
- import { M as pt } from "../MiniWidgetContainer-DhEx4qKi.mjs";
54
- import { ChevronRight as ht } from "@mxenabled/mx-icons";
51
+ import { W as gt } from "../WidgetContainer-sC5KLXHI.mjs";
52
+ import { u as pt } from "../BudgetUtil-CTpLz9lw.mjs";
53
+ import { M as ht } from "../MiniWidgetContainer-DhEx4qKi.mjs";
54
+ import { ChevronRight as ft } from "@mxenabled/mx-icons";
55
55
  import { b as Me } from "../CategoryUtil-Cufq3fxg.mjs";
56
- import { S as ft } from "../StatusIndicator-0iX3Gnnu.mjs";
57
- import { b as bt } from "../User-CCSM9p05.mjs";
58
- import { i as _t } from "../DateUtil-CVXVMbjf.mjs";
59
- import { f as yt } from "../DateFormats-Cs-NbEZ7.mjs";
60
- const Ct = I(() => {
61
- const { budgets: t } = D(), { totalBudgeted: n } = E(), { incomeTotal: i } = ue(), s = i - n;
56
+ import { S as bt } from "../StatusIndicator-0iX3Gnnu.mjs";
57
+ import { b as _t } from "../User-CoANIQIA.mjs";
58
+ import { i as yt } from "../DateUtil-CVXVMbjf.mjs";
59
+ import { f as Ct } from "../DateFormats-Cs-NbEZ7.mjs";
60
+ const St = I(() => {
61
+ const { budgets: t } = E(), { totalBudgeted: n } = w(), { incomeTotal: i } = de(), s = i - n;
62
62
  return /* @__PURE__ */ u(x, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
63
63
  /* @__PURE__ */ u(x, { alignItems: "center", children: [
64
64
  /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: T(i, "0,0") }),
@@ -75,29 +75,29 @@ const Ct = I(() => {
75
75
  /* @__PURE__ */ e(S, { color: "secondary", variant: "Small", children: t.remaining })
76
76
  ] })
77
77
  ] });
78
- }), St = I(
78
+ }), Bt = I(
79
79
  ({ category: t }) => {
80
- const { budgets: n } = D(), { budgets: i } = E(), s = l.useMemo(() => {
80
+ const { budgets: n } = E(), { budgets: i } = w(), s = l.useMemo(() => {
81
81
  const a = i.find((c) => c.category_guid === t.guid), r = T(t.totalAverageAmount, "0,0"), o = a ? R(n.recalculate_previous_budget, T(a.amount, "0,0")) : n.recalculate_new_budget;
82
82
  return `${r} - ${o}`;
83
83
  }, [n, i]);
84
84
  return /* @__PURE__ */ u(l.Fragment, { children: [
85
85
  /* @__PURE__ */ e(te, { children: /* @__PURE__ */ u(oe, { children: [
86
- /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid, variant: "filled" }) }),
86
+ /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(K, { categoryGuid: t.guid, variant: "filled" }) }),
87
87
  /* @__PURE__ */ e(ne, { primary: t.name, secondary: s })
88
88
  ] }) }),
89
- /* @__PURE__ */ e(ge, {})
89
+ /* @__PURE__ */ e(me, {})
90
90
  ] }, t.guid);
91
91
  }
92
- ), Bt = ({ onRecalculateBudgets: t }) => {
93
- const { budgets: n, common: i } = D(), { spendCategories: s } = q(), { recalculateBudgets: a, setAlert: r } = E(), [o, c] = l.useState(!1), g = s.filter((m) => m.totalAverageAmount > 0), d = async () => {
92
+ ), xt = ({ onRecalculateBudgets: t }) => {
93
+ const { budgets: n, common: i } = E(), { spendCategories: s } = q(), { recalculateBudgets: a, setAlert: r } = w(), [o, c] = l.useState(!1), g = s.filter((m) => m.totalAverageAmount > 0), d = async () => {
94
94
  await a(g), c(!1), r(n.alert_recalculated_budgets), t?.();
95
95
  };
96
96
  return /* @__PURE__ */ u(l.Fragment, { children: [
97
97
  /* @__PURE__ */ e(Te, { onClick: () => c(!0), sx: { mt: 24, mx: 24 }, variant: "text", children: n.recalculate_button }),
98
98
  /* @__PURE__ */ e(S, { sx: { mx: 24, my: 16, textAlign: "center", whiteSpace: "wrap" }, variant: "Paragraph", children: n.recalculate_help }),
99
99
  /* @__PURE__ */ e(
100
- k,
100
+ $,
101
101
  {
102
102
  ariaLabelClose: i.close_aria,
103
103
  isOpen: o,
@@ -109,17 +109,17 @@ const Ct = I(() => {
109
109
  /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: n.recalculate_description_top }),
110
110
  /* @__PURE__ */ e(S, { variant: "ParagraphSmall", children: n.recalculate_description_bottom })
111
111
  ] }),
112
- /* @__PURE__ */ e(W, { bgcolor: "background.paper", children: /* @__PURE__ */ e(Z, { children: g.map((m) => /* @__PURE__ */ e(St, { category: m }, m.guid)) }) })
112
+ /* @__PURE__ */ e(V, { bgcolor: "background.paper", children: /* @__PURE__ */ e(Z, { children: g.map((m) => /* @__PURE__ */ e(Bt, { category: m }, m.guid)) }) })
113
113
  ] })
114
114
  }
115
115
  )
116
116
  ] });
117
- }, be = ({
117
+ }, fe = ({
118
118
  amount: t,
119
119
  categoryName: n,
120
120
  onAmountChanged: i
121
121
  }) => {
122
- const { budgets: s } = D(), { totalBudgeted: a } = E(), { incomeTotal: r } = ue(), o = r - a;
122
+ const { budgets: s } = E(), { totalBudgeted: a } = w(), { incomeTotal: r } = de(), o = r - a;
123
123
  return /* @__PURE__ */ u(x, { gap: 16, children: [
124
124
  /* @__PURE__ */ u(x, { children: [
125
125
  /* @__PURE__ */ e(S, { children: R(
@@ -129,7 +129,7 @@ const Ct = I(() => {
129
129
  /* @__PURE__ */ e(S, { children: R(s.add_description_bottom, n) })
130
130
  ] }),
131
131
  /* @__PURE__ */ e(
132
- et,
132
+ tt,
133
133
  {
134
134
  amount: t,
135
135
  autoFocus: !0,
@@ -140,13 +140,13 @@ const Ct = I(() => {
140
140
  }
141
141
  )
142
142
  ] });
143
- }, xt = I(({ category: t, onAddBudget: n }) => {
144
- const { budgets: i, common: s } = D(), [a, r] = l.useState(!1), [o, c] = l.useState(
143
+ }, At = I(({ category: t, onAddBudget: n }) => {
144
+ const { budgets: i, common: s } = E(), [a, r] = l.useState(!1), [o, c] = l.useState(
145
145
  `${t.totalAmount === 0 ? "" : t.totalAmount}`
146
146
  );
147
147
  return /* @__PURE__ */ u(l.Fragment, { children: [
148
148
  /* @__PURE__ */ e(te, { children: /* @__PURE__ */ u(oe, { onClick: () => r(!0), children: [
149
- /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid }) }),
149
+ /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(K, { categoryGuid: t.guid }) }),
150
150
  /* @__PURE__ */ e(
151
151
  ne,
152
152
  {
@@ -154,10 +154,10 @@ const Ct = I(() => {
154
154
  secondary: T(t.totalAmount, "0,0")
155
155
  }
156
156
  ),
157
- /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e(j, { name: "add", size: 20 }) })
157
+ /* @__PURE__ */ e(et, { children: /* @__PURE__ */ e(j, { name: "add", size: 20 }) })
158
158
  ] }) }, t.guid),
159
159
  /* @__PURE__ */ e(
160
- U,
160
+ H,
161
161
  {
162
162
  copy: { close_aria: s.close_aria, title: i.add_title },
163
163
  disablePrimaryButton: Number(o) <= 0,
@@ -165,27 +165,27 @@ const Ct = I(() => {
165
165
  onClose: () => r(!1),
166
166
  onPrimaryAction: () => n(t, Number(o)),
167
167
  primaryText: i.add_save_button,
168
- children: /* @__PURE__ */ e(be, { amount: o, categoryName: t.name, onAmountChanged: c })
168
+ children: /* @__PURE__ */ e(fe, { amount: o, categoryName: t.name, onAmountChanged: c })
169
169
  }
170
170
  )
171
171
  ] });
172
172
  }), Ve = I(({ onAddBudget: t, onRecalculateBudgets: n }) => {
173
- const { budgets: i } = D(), { addBudget: s, setAlert: a, unbudgetedCategories: r } = E(), o = async (c, g) => {
173
+ const { budgets: i } = E(), { addBudget: s, setAlert: a, unbudgetedCategories: r } = w(), o = async (c, g) => {
174
174
  await s(c, g), t?.(), a(R(i.alert_budget_created, c.name));
175
175
  };
176
176
  return /* @__PURE__ */ u(x, { children: [
177
- /* @__PURE__ */ e(Ct, {}),
178
- /* @__PURE__ */ e(W, { bgcolor: "background.paper", children: /* @__PURE__ */ e(Z, { children: r.map((c) => /* @__PURE__ */ e(
179
- xt,
177
+ /* @__PURE__ */ e(St, {}),
178
+ /* @__PURE__ */ e(V, { bgcolor: "background.paper", children: /* @__PURE__ */ e(Z, { children: r.map((c) => /* @__PURE__ */ e(
179
+ At,
180
180
  {
181
181
  category: c,
182
182
  onAddBudget: o
183
183
  },
184
184
  c.guid
185
185
  )) }) }),
186
- /* @__PURE__ */ e(Bt, { onRecalculateBudgets: n })
186
+ /* @__PURE__ */ e(xt, { onRecalculateBudgets: n })
187
187
  ] });
188
- }), Le = 5, Ke = 100, le = 25, At = (t) => {
188
+ }), Le = 5, Ke = 100, ce = 25, vt = (t) => {
189
189
  const n = (a) => {
190
190
  a.active || t.alphaTarget(0.3).restart(), a.subject.fx = a.subject.x, a.subject.fy = a.subject.y;
191
191
  }, i = (a) => {
@@ -194,14 +194,14 @@ const Ct = I(() => {
194
194
  a.active || t.alphaTarget(0), a.subject.fx = null, a.subject.fy = null;
195
195
  };
196
196
  return M.drag().on("start", n).on("drag", i).on("end", s);
197
- }, vt = (t) => {
197
+ }, Tt = (t) => {
198
198
  let n = t.transaction_total / t.amount;
199
199
  n < 0 ? n = 0 : n > 1 && (n = 1);
200
200
  const i = n * 2 * Math.PI, s = M.interpolate(0, i), a = M.arc().cornerRadius(5).innerRadius(t.radius - Le * 2).outerRadius(t.radius - Le).startAngle(0).endAngle(0);
201
201
  return (r) => (a.endAngle(s(r)), a(t) || "");
202
- }, Tt = (t) => {
203
- M.selectAll(".bubble").call(At(t));
204
- }, Ne = (t, n, i) => Math.min(Math.max(t, n), i), Dt = (t, n, i) => {
202
+ }, Dt = (t) => {
203
+ M.selectAll(".bubble").call(vt(t));
204
+ }, Ne = (t, n, i) => Math.min(Math.max(t, n), i), Et = (t, n, i) => {
205
205
  t.alpha(1).restart().force(
206
206
  "x",
207
207
  M.forceX().x(i / 2).strength(0.01)
@@ -211,11 +211,11 @@ const Ct = I(() => {
211
211
  ).on("tick", () => {
212
212
  const s = t.nodes();
213
213
  s.forEach((a) => {
214
- const r = a.radius ?? le;
214
+ const r = a.radius ?? ce;
215
215
  a.x = Ne(a.x ?? 0, r, i - r), a.y = Ne(a.y ?? 0, r, n - r);
216
216
  }), M.selectAll(".bubble").data(s).attr("transform", (a) => `translate(${a.x},${a.y})`);
217
217
  });
218
- }, Xe = (t, n) => M.scaleLinear().domain([t, n]).range([le, Ke]), Et = (t) => {
218
+ }, Xe = (t, n) => M.scaleLinear().domain([t, n]).range([ce, Ke]), wt = (t) => {
219
219
  const n = t.reduce((r, o) => {
220
220
  const c = Math.max(o.transaction_total, o.amount);
221
221
  return c > r ? c : r;
@@ -230,25 +230,25 @@ const Ct = I(() => {
230
230
  };
231
231
  });
232
232
  return M.forceSimulation(a).velocityDecay(0.05).force("collide", M.forceCollide((r) => r.radius + 2).strength(0.7));
233
- }, wt = (t, n, i) => {
234
- const a = Math.PI * le ** 2 * t, r = i < 400 || n < 300, o = r ? 40 : 20, c = Math.max(100, i - o), g = Math.max(100, n - o), d = c * g;
235
- let m = le;
233
+ }, It = (t, n, i) => {
234
+ const a = Math.PI * ce ** 2 * t, r = i < 400 || n < 300, o = r ? 40 : 20, c = Math.max(100, i - o), g = Math.max(100, n - o), d = c * g;
235
+ let m = ce;
236
236
  if (a < d) {
237
237
  const h = Math.sqrt(d / (t * Math.PI)), _ = Math.min(c, g) / 4;
238
238
  m = Math.min(Ke, h, _);
239
239
  }
240
240
  return r && t <= 3 && (m = Math.min(m, 45)), { minRadius: Math.max(20, m * 0.6), maxRadius: m };
241
- }, It = (t, n, i, s, a) => {
242
- const { maxRadius: r, minRadius: o } = wt(t, n, a);
241
+ }, Ot = (t, n, i, s, a) => {
242
+ const { maxRadius: r, minRadius: o } = It(t, n, a);
243
243
  return M.scaleLinear().domain([s, i]).range([o, r]);
244
- }, Ot = (t, n, i = !1, s, a) => {
245
- const r = n.map((d) => Math.max(d.transaction_total, d.amount)), o = Math.min(...r), c = Math.max(...r), g = i ? It(t.length, s, c, o, a) : Xe(o, c);
244
+ }, Rt = (t, n, i = !1, s, a) => {
245
+ const r = n.map((d) => Math.max(d.transaction_total, d.amount)), o = Math.min(...r), c = Math.max(...r), g = i ? Ot(t.length, s, c, o, a) : Xe(o, c);
246
246
  return t.map((d) => ({
247
247
  ...d,
248
248
  radius: g(Math.max(d.transaction_total, d.amount))
249
249
  }));
250
- }, ke = 5, Rt = 2e3, Mt = ({ bubble: t }) => {
251
- const n = de(), {
250
+ }, ke = 5, Mt = 2e3, Lt = ({ bubble: t }) => {
251
+ const n = le(), {
252
252
  amount: i,
253
253
  guid: s,
254
254
  budgetColors: { mercury: a },
@@ -256,7 +256,7 @@ const Ct = I(() => {
256
256
  transaction_total: o
257
257
  } = t, c = `mercury-${s}`;
258
258
  l.useEffect(() => {
259
- M.select(`.${c}`).selectAll(".status").remove(), M.select(`.${c}`).append("path").transition().duration(Rt).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => vt(t));
259
+ M.select(`.${c}`).selectAll(".status").remove(), M.select(`.${c}`).append("path").transition().duration(Mt).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => Tt(t));
260
260
  }, [i, r, o]);
261
261
  const g = M.arc().innerRadius((d) => d - 2 * ke).outerRadius((d) => d - ke).startAngle(0).endAngle(2 * Math.PI);
262
262
  return /* @__PURE__ */ e("g", { className: c, children: /* @__PURE__ */ e(
@@ -266,10 +266,10 @@ const Ct = I(() => {
266
266
  style: { fill: n.palette.common.white, fillOpacity: 0.35 }
267
267
  }
268
268
  ) });
269
- }, Lt = l.memo(Mt), z = 75, Se = 50;
270
- function Nt({ bubble: t, isDraggable: n, onClick: i = () => {
269
+ }, Nt = l.memo(Lt), W = 75, Se = 50;
270
+ function kt({ bubble: t, isDraggable: n, onClick: i = () => {
271
271
  } }) {
272
- const [s, a] = l.useState(!1), r = ze(), { availableWidth: o } = me(), c = l.useMemo(() => {
272
+ const [s, a] = l.useState(!1), r = ze(), { availableWidth: o } = ue(), c = l.useMemo(() => {
273
273
  if (t)
274
274
  return {
275
275
  amount: t.amount,
@@ -290,9 +290,9 @@ function Nt({ bubble: t, isDraggable: n, onClick: i = () => {
290
290
  y: v
291
291
  } = t, A = o < 400 ? -8 : -12;
292
292
  let b = A, y = A;
293
- f > z ? (b = -14, y = -45) : f > Se && (y = -32);
293
+ f > W ? (b = -14, y = -45) : f > Se && (y = -32);
294
294
  let B = 32;
295
- f <= z && (B = o < 400 ? 16 : 24);
295
+ f <= W && (B = o < 400 ? 16 : 24);
296
296
  const O = `${t.category.name}: ${_}`, L = {
297
297
  modifiers: [
298
298
  {
@@ -300,11 +300,11 @@ function Nt({ bubble: t, isDraggable: n, onClick: i = () => {
300
300
  options: { offset: [0, 15] }
301
301
  }
302
302
  ]
303
- }, w = (P) => {
304
- (P.key === "Enter" || P.key === " ") && (P.preventDefault(), i(t));
303
+ }, D = (G) => {
304
+ (G.key === "Enter" || G.key === " ") && (G.preventDefault(), i(t));
305
305
  }, N = () => {
306
306
  a(!0);
307
- }, $ = () => {
307
+ }, k = () => {
308
308
  a(!1);
309
309
  };
310
310
  return /* @__PURE__ */ u(
@@ -313,10 +313,10 @@ function Nt({ bubble: t, isDraggable: n, onClick: i = () => {
313
313
  "aria-label": `${p} - ${_}`,
314
314
  className: "bubble",
315
315
  id: `bubble-${h}`,
316
- onBlur: $,
316
+ onBlur: k,
317
317
  onClick: () => i(t),
318
318
  onFocus: N,
319
- onKeyDown: w,
319
+ onKeyDown: D,
320
320
  onMouseEnter: () => a(!0),
321
321
  onMouseLeave: () => a(!1),
322
322
  role: "button",
@@ -338,9 +338,9 @@ function Nt({ bubble: t, isDraggable: n, onClick: i = () => {
338
338
  stroke-opacity: 0.8;
339
339
  }
340
340
  ` }),
341
- /* @__PURE__ */ e(ot, { open: s, slotProps: { popper: L }, title: O, children: /* @__PURE__ */ e("circle", { fill: g, id: `circle-${h}`, r: f }) }),
341
+ /* @__PURE__ */ e(nt, { open: s, slotProps: { popper: L }, title: O, children: /* @__PURE__ */ e("circle", { fill: g, id: `circle-${h}`, r: f }) }),
342
342
  /* @__PURE__ */ e("svg", { x: b, y, children: /* @__PURE__ */ e(j, { name: m, size: B, sx: { fill: d } }) }),
343
- f > z && /* @__PURE__ */ e(
343
+ f > W && /* @__PURE__ */ e(
344
344
  S,
345
345
  {
346
346
  bold: !0,
@@ -360,11 +360,11 @@ function Nt({ bubble: t, isDraggable: n, onClick: i = () => {
360
360
  id: `budget-description-${h}-1`,
361
361
  sx: { fill: d },
362
362
  variant: "Body",
363
- y: f <= z ? 12 : 24,
364
- children: f <= z ? _.split(" ")[0] : _
363
+ y: f <= W ? 12 : 24,
364
+ children: f <= W ? _.split(" ")[0] : _
365
365
  }
366
366
  ),
367
- f <= z && f > Se && /* @__PURE__ */ e(
367
+ f <= W && f > Se && /* @__PURE__ */ e(
368
368
  S,
369
369
  {
370
370
  component: "text",
@@ -375,21 +375,21 @@ function Nt({ bubble: t, isDraggable: n, onClick: i = () => {
375
375
  children: _.split(" ")[1]
376
376
  }
377
377
  ),
378
- /* @__PURE__ */ e(Lt, { bubble: c })
378
+ /* @__PURE__ */ e(Nt, { bubble: c })
379
379
  ]
380
380
  },
381
381
  h
382
382
  );
383
383
  }
384
- const kt = ({
384
+ const $t = ({
385
385
  height: t,
386
386
  width: n,
387
387
  isDraggable: i = !1,
388
388
  onClick: s = () => {
389
389
  }
390
390
  }) => {
391
- const [a, r] = l.useState([]), o = l.useRef(null), c = l.useRef(!1), { detailedBudgets: g } = E(), d = l.useCallback(() => {
392
- const m = o.current, p = Et(g), h = p.nodes();
391
+ const [a, r] = l.useState([]), o = l.useRef(null), c = l.useRef(!1), { detailedBudgets: g } = w(), d = l.useCallback(() => {
392
+ const m = o.current, p = wt(g), h = p.nodes();
393
393
  if (m) {
394
394
  const _ = m.nodes(), f = new Map(_.map((C) => [C.guid, C]));
395
395
  h.forEach((C) => {
@@ -411,22 +411,22 @@ const kt = ({
411
411
  }, []), l.useEffect(() => {
412
412
  const m = o.current;
413
413
  if (!m) return;
414
- const p = m.nodes(), h = n > 0 && n < 450 || t > 0 && t < 300, _ = Ot(p, g, h, t, n);
415
- m.nodes(_), Dt(m, t, n), i && setTimeout(() => {
416
- Tt(m);
414
+ const p = m.nodes(), h = n > 0 && n < 450 || t > 0 && t < 300, _ = Rt(p, g, h, t, n);
415
+ m.nodes(_), Et(m, t, n), i && setTimeout(() => {
416
+ Dt(m);
417
417
  }, 0), r([..._]);
418
- }, [t, n, i, g]), /* @__PURE__ */ e("svg", { height: t, style: { overflow: "visible" }, width: Math.abs(n), children: a.map((m) => /* @__PURE__ */ e(Nt, { bubble: m, isDraggable: i, onClick: s }, m.guid)) });
419
- }, $t = I(kt), Pt = ({
418
+ }, [t, n, i, g]), /* @__PURE__ */ e("svg", { height: t, style: { overflow: "visible" }, width: Math.abs(n), children: a.map((m) => /* @__PURE__ */ e(kt, { bubble: m, isDraggable: i, onClick: s }, m.guid)) });
419
+ }, Pt = I($t), Gt = ({
420
420
  isMiniWidget: t = !1,
421
421
  onConnectAccountsClick: n,
422
422
  createBudgetOnClick: i
423
423
  }) => {
424
- const { config: s } = je(), { recalculateBudgets: a } = E(), { spendCategories: r } = q(), { budgets: o } = D(), { availableWidth: c } = me(), { isMobile: g } = he(c), d = t && g, [m, p] = l.useState(!1), [h, _] = l.useState(!1), [f, C] = l.useState(!1), v = l.useMemo(() => [...r.filter((b) => b.totalAverageAmount > 0)], [r]), A = async () => {
424
+ const { config: s } = je(), { recalculateBudgets: a } = w(), { spendCategories: r } = q(), { budgets: o } = E(), { availableWidth: c } = ue(), { isMobile: g } = pe(c), d = t && g, [m, p] = l.useState(!1), [h, _] = l.useState(!1), [f, C] = l.useState(!1), v = l.useMemo(() => [...r.filter((b) => b.totalAverageAmount > 0)], [r]), A = async () => {
425
425
  C(!0);
426
426
  const { data: b, isSuccess: y } = await a(v);
427
427
  C(!1), y ? (b.length === 0 && _(!0), p(!1)) : p(!0);
428
428
  };
429
- return f ? /* @__PURE__ */ e(fe, {}) : m ? /* @__PURE__ */ e(
429
+ return f ? /* @__PURE__ */ e(he, {}) : m ? /* @__PURE__ */ e(
430
430
  Ce,
431
431
  {
432
432
  header: o.autogenerate_budgets_error_header,
@@ -447,7 +447,7 @@ const kt = ({
447
447
  ...d && { justifyContent: "center", mt: 0, svg: { height: 32, width: 32 } }
448
448
  }
449
449
  }
450
- ) : /* @__PURE__ */ e(qe, { children: h ? /* @__PURE__ */ e(
450
+ ) : /* @__PURE__ */ e(Je, { children: h ? /* @__PURE__ */ e(
451
451
  Ce,
452
452
  {
453
453
  header: o.zero_state_generate_budgets_header,
@@ -508,29 +508,29 @@ const kt = ({
508
508
  shouldShowZeroState: a,
509
509
  unavailableWidth: r = 24
510
510
  }) => {
511
- const { onEvent: o } = J(), { setSelectedBudget: c } = E(), { isInitialized: g } = Q(), { accounts: d } = D(), { availableWidth: m } = me(), { isMobile: p } = he(), [h, _] = l.useState(!1), f = l.useMemo(() => m - r, [m]), C = (A) => {
512
- c(A), o(G.BUDGETS_CLICK_BUDGET_CATEGORY, {
511
+ const { onEvent: o } = J(), { setSelectedBudget: c } = w(), { isInitialized: g } = Q(), { accounts: d } = E(), { availableWidth: m } = ue(), { isMobile: p } = pe(), [h, _] = l.useState(!1), f = l.useMemo(() => m - r, [m]), C = (A) => {
512
+ c(A), o(P.BUDGETS_CLICK_BUDGET_CATEGORY, {
513
513
  budget_category: A.category.name,
514
514
  click_type: "bubble"
515
515
  });
516
516
  }, v = () => {
517
- _(!0), o(G.ACCOUNTS_CLICK_CONNECT);
517
+ _(!0), o(P.ACCOUNTS_CLICK_CONNECT);
518
518
  };
519
519
  return /* @__PURE__ */ u(
520
- W,
520
+ V,
521
521
  {
522
522
  ml: a || p ? 0 : 24,
523
523
  sx: { alignSelf: "center", ...s && { height: "100%" } },
524
524
  children: [
525
525
  a || !g ? /* @__PURE__ */ e(
526
- Pt,
526
+ Gt,
527
527
  {
528
528
  createBudgetOnClick: t,
529
529
  isMiniWidget: s,
530
530
  onConnectAccountsClick: v
531
531
  }
532
532
  ) : /* @__PURE__ */ e(
533
- $t,
533
+ Pt,
534
534
  {
535
535
  height: n,
536
536
  isDraggable: i,
@@ -539,7 +539,7 @@ const kt = ({
539
539
  }
540
540
  ),
541
541
  /* @__PURE__ */ e(
542
- tt,
542
+ ot,
543
543
  {
544
544
  onClose: () => _(!1),
545
545
  showConnectionsWidget: h,
@@ -565,28 +565,28 @@ const kt = ({
565
565
  }
566
566
  ];
567
567
  return /* @__PURE__ */ e(Ee, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(we, { children: /* @__PURE__ */ u(x, { alignItems: "center", gap: 16, children: [
568
- /* @__PURE__ */ e(H, { categoryGuid: a, size: 56 }),
568
+ /* @__PURE__ */ e(K, { categoryGuid: a, size: 56 }),
569
569
  /* @__PURE__ */ e(Pe, { variant: "H1", children: `${T(o, "0,0")} / ${T(n, "0,0")}` }),
570
570
  /* @__PURE__ */ e(S, { bold: !0, variant: "XSmall", children: s }),
571
571
  /* @__PURE__ */ e(xe, { data: c, height: 10 })
572
572
  ] }) }) });
573
- }, Gt = I(() => {
574
- const { budgets: t } = D();
573
+ }, jt = I(() => {
574
+ const { budgets: t } = E();
575
575
  return /* @__PURE__ */ u(x, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
576
576
  /* @__PURE__ */ e(j, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
577
577
  /* @__PURE__ */ e(S, { bold: !0, color: "secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
578
578
  /* @__PURE__ */ e(S, { color: "text.secondary", variant: "XSmall", children: t.zero_state_no_sub_budgets_description })
579
579
  ] });
580
- }), jt = I(({ budget: t }) => {
580
+ }), Ft = I(({ budget: t }) => {
581
581
  const {
582
582
  amount: n,
583
583
  budgetColors: { background: i },
584
584
  category: s,
585
585
  percentage: a,
586
586
  transaction_total: r
587
- } = t, { setSelectedSubBudget: o } = E();
587
+ } = t, { setSelectedSubBudget: o } = w();
588
588
  return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ u(oe, { onClick: () => o(t), children: [
589
- /* @__PURE__ */ e(pe, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ue, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
589
+ /* @__PURE__ */ e(ge, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ue, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(K, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
590
590
  /* @__PURE__ */ e(
591
591
  ne,
592
592
  {
@@ -598,8 +598,8 @@ const kt = ({
598
598
  }
599
599
  )
600
600
  ] }) });
601
- }), Ft = I(({ category: t, parentBudget: n }) => {
602
- const { budgets: i, common: s } = D(), { setExpandedGuid: a, setOnSelect: r } = it(), { addBudget: o } = E(), [c, g] = l.useState(!1), [d, m] = l.useState(!1), [p, h] = l.useState(""), [_, f] = l.useState(void 0);
601
+ }), zt = I(({ category: t, parentBudget: n }) => {
602
+ const { budgets: i, common: s } = E(), { setExpandedGuid: a, setOnSelect: r } = ct(), { addBudget: o } = w(), [c, g] = l.useState(!1), [d, m] = l.useState(!1), [p, h] = l.useState(""), [_, f] = l.useState(void 0);
603
603
  l.useEffect(() => {
604
604
  r((A) => {
605
605
  const b = t.subCategories.find((y) => y.guid === A);
@@ -611,7 +611,7 @@ const kt = ({
611
611
  }, v = async () => {
612
612
  _ && Number(p) > 0 && (await o(_, Number(p), n.guid), m(!1), g(!1), f(void 0));
613
613
  };
614
- return /* @__PURE__ */ u(W, { children: [
614
+ return /* @__PURE__ */ u(V, { children: [
615
615
  /* @__PURE__ */ e(te, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(oe, { onClick: C, children: /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ u(x, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
616
616
  /* @__PURE__ */ u(x, { alignItems: "center", direction: "row", gap: 8, children: [
617
617
  /* @__PURE__ */ e(j, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
@@ -619,19 +619,19 @@ const kt = ({
619
619
  ] }),
620
620
  /* @__PURE__ */ e(j, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
621
621
  ] }) }) }) }),
622
- /* @__PURE__ */ e(ge, {}),
622
+ /* @__PURE__ */ e(me, {}),
623
623
  /* @__PURE__ */ e(
624
- k,
624
+ $,
625
625
  {
626
626
  ariaLabelClose: s.close_aria,
627
627
  isOpen: c,
628
628
  onClose: () => g(!1),
629
629
  title: i.add_sub_budget_title,
630
- children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(ct, { category: t, subCategories: t.subCategories }) })
630
+ children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(lt, { category: t, subCategories: t.subCategories }) })
631
631
  }
632
632
  ),
633
633
  /* @__PURE__ */ e(
634
- U,
634
+ H,
635
635
  {
636
636
  copy: { close_aria: s.close_aria, title: i.add_title },
637
637
  disablePrimaryButton: Number(p) <= 0,
@@ -640,7 +640,7 @@ const kt = ({
640
640
  onPrimaryAction: v,
641
641
  primaryText: i.add_save_button,
642
642
  children: /* @__PURE__ */ e(
643
- be,
643
+ fe,
644
644
  {
645
645
  amount: p,
646
646
  categoryName: _?.name || "",
@@ -650,8 +650,8 @@ const kt = ({
650
650
  }
651
651
  )
652
652
  ] });
653
- }), zt = I(({ budget: t }) => {
654
- const { category: n, subBudgets: i } = t, { budgets: s, common: a } = D(), { deleteBudget: r, selectedSubBudget: o, setSelectedSubBudget: c, updateBudget: g } = E(), { filter: d, setFilter: m } = ee(), [p, h] = l.useState(!1), [_, f] = l.useState(!1), [C, v] = l.useState("");
653
+ }), Ut = I(({ budget: t }) => {
654
+ const { category: n, subBudgets: i } = t, { budgets: s, common: a } = E(), { deleteBudget: r, selectedSubBudget: o, setSelectedSubBudget: c, updateBudget: g } = w(), { filter: d, setFilter: m } = ee(), [p, h] = l.useState(!1), [_, f] = l.useState(!1), [C, v] = l.useState("");
655
655
  l.useEffect(() => {
656
656
  o && (v(`${o.amount}`), m({
657
657
  ...d,
@@ -673,14 +673,14 @@ const kt = ({
673
673
  };
674
674
  return /* @__PURE__ */ u(l.Fragment, { children: [
675
675
  /* @__PURE__ */ u(Z, { sx: { bgcolor: "background.paper" }, children: [
676
- i.length === 0 ? /* @__PURE__ */ e(Gt, {}) : i.map((B) => /* @__PURE__ */ u(l.Fragment, { children: [
677
- /* @__PURE__ */ e(jt, { budget: B }),
678
- /* @__PURE__ */ e(ge, {})
676
+ i.length === 0 ? /* @__PURE__ */ e(jt, {}) : i.map((B) => /* @__PURE__ */ u(l.Fragment, { children: [
677
+ /* @__PURE__ */ e(Ft, { budget: B }),
678
+ /* @__PURE__ */ e(me, {})
679
679
  ] }, B.guid)),
680
- /* @__PURE__ */ e(Ft, { category: n, parentBudget: t })
680
+ /* @__PURE__ */ e(zt, { category: n, parentBudget: t })
681
681
  ] }),
682
682
  /* @__PURE__ */ e(
683
- k,
683
+ $,
684
684
  {
685
685
  ariaLabelClose: a.close_aria,
686
686
  isOpen: !!o,
@@ -698,7 +698,7 @@ const kt = ({
698
698
  ),
699
699
  o && /* @__PURE__ */ u(l.Fragment, { children: [
700
700
  /* @__PURE__ */ e(
701
- U,
701
+ H,
702
702
  {
703
703
  copy: { close_aria: a.close_aria, title: s.details_edit_title },
704
704
  disablePrimaryButton: Number(C) <= 0,
@@ -707,7 +707,7 @@ const kt = ({
707
707
  onPrimaryAction: A,
708
708
  primaryText: s.edit_save_button,
709
709
  children: /* @__PURE__ */ e(
710
- be,
710
+ fe,
711
711
  {
712
712
  amount: C,
713
713
  categoryName: o.category.name,
@@ -717,7 +717,7 @@ const kt = ({
717
717
  }
718
718
  ),
719
719
  /* @__PURE__ */ e(
720
- U,
720
+ H,
721
721
  {
722
722
  copy: { close_aria: a.close_aria, title: s.delete_title },
723
723
  isOpen: _,
@@ -731,8 +731,8 @@ const kt = ({
731
731
  )
732
732
  ] })
733
733
  ] });
734
- }), Ut = I(({ budget: t }) => {
735
- const { is_mobile_webview: n } = je(), { setAlert: i } = E(), { budgets: s, common: a, transactions: r } = D(), { isDesktop: o, isSmallTablet: c, isTablet: g } = he(), {
734
+ }), Wt = I(({ budget: t }) => {
735
+ const { is_mobile_webview: n } = je(), { setAlert: i } = w(), { budgets: s, common: a, transactions: r } = E(), { isDesktop: o, isSmallTablet: c, isTablet: g } = pe(), {
736
736
  sortedTransactions: d,
737
737
  sortedTransactionsWithSplits: m,
738
738
  tags: p
@@ -742,13 +742,13 @@ const kt = ({
742
742
  ), A = (B, O) => {
743
743
  _(O);
744
744
  }, b = () => {
745
- rt(m, p), i(s.alert_csv_downloaded);
745
+ st(m, p), i(s.alert_csv_downloaded);
746
746
  }, y = d.length > 0 && !n && (o || g && !c);
747
747
  return /* @__PURE__ */ u(x, { gap: 24, children: [
748
748
  /* @__PURE__ */ e(Ze, { budget: t }),
749
749
  /* @__PURE__ */ u(x, { children: [
750
750
  /* @__PURE__ */ u(
751
- at,
751
+ rt,
752
752
  {
753
753
  onChange: A,
754
754
  sx: { width: "100%" },
@@ -773,21 +773,21 @@ const kt = ({
773
773
  ) }),
774
774
  /* @__PURE__ */ e(De, { height: "100%", onClick: C })
775
775
  ] }),
776
- h === 1 && /* @__PURE__ */ e(zt, { budget: t }),
776
+ h === 1 && /* @__PURE__ */ e(Ut, { budget: t }),
777
777
  /* @__PURE__ */ e(
778
- k,
778
+ $,
779
779
  {
780
780
  ariaLabelClose: a.close_aria,
781
781
  isOpen: !!v,
782
782
  onClose: () => C(""),
783
783
  title: s.details_transaction_drawer,
784
- children: v && /* @__PURE__ */ e(st, { transaction: v })
784
+ children: v && /* @__PURE__ */ e(it, { transaction: v })
785
785
  }
786
786
  )
787
787
  ] })
788
788
  ] });
789
- }), Wt = I(() => {
790
- const { selectedAccountGuids: t } = Q(), { budgets: n, common: i } = D(), {
789
+ }), Ht = I(() => {
790
+ const { selectedAccountGuids: t } = Q(), { budgets: n, common: i } = E(), {
791
791
  alert: s,
792
792
  dateRange: a,
793
793
  deleteBudget: r,
@@ -796,7 +796,7 @@ const kt = ({
796
796
  setAlert: g,
797
797
  setSelectedBudget: d,
798
798
  updateBudget: m
799
- } = E(), { setFilter: p } = ee(), [h, _] = l.useState(!1), [f, C] = l.useState(!1), [v, A] = l.useState(!1), [b, y] = l.useState("");
799
+ } = w(), { setFilter: p } = ee(), [h, _] = l.useState(!1), [f, C] = l.useState(!1), [v, A] = l.useState(!1), [b, y] = l.useState("");
800
800
  l.useEffect(() => {
801
801
  o && !c && (y(`${o.amount}`), _(!0), p({
802
802
  accounts: t,
@@ -817,13 +817,13 @@ const kt = ({
817
817
  _(!1), setTimeout(() => {
818
818
  d(void 0);
819
819
  }, 250);
820
- }, w = () => {
820
+ }, D = () => {
821
821
  C(!1), y(`${o?.amount}`);
822
822
  };
823
823
  if (o)
824
824
  return /* @__PURE__ */ u(l.Fragment, { children: [
825
825
  /* @__PURE__ */ u(
826
- k,
826
+ $,
827
827
  {
828
828
  ariaLabelClose: i.close_aria,
829
829
  isOpen: h,
@@ -835,7 +835,7 @@ const kt = ({
835
835
  secondaryText: n.details_delete_button,
836
836
  title: n.details_title,
837
837
  children: [
838
- /* @__PURE__ */ e(Ut, { budget: o }),
838
+ /* @__PURE__ */ e(Wt, { budget: o }),
839
839
  /* @__PURE__ */ e(
840
840
  ve,
841
841
  {
@@ -850,17 +850,17 @@ const kt = ({
850
850
  }
851
851
  ),
852
852
  /* @__PURE__ */ e(
853
- U,
853
+ H,
854
854
  {
855
855
  copy: { close_aria: i.close_aria, title: n.details_edit_title },
856
856
  disablePrimaryButton: Number(b) <= 0,
857
857
  isOpen: f,
858
- onClose: w,
858
+ onClose: D,
859
859
  onPrimaryAction: B,
860
- onSecondaryAction: w,
860
+ onSecondaryAction: D,
861
861
  primaryText: n.edit_save_button,
862
862
  children: /* @__PURE__ */ e(
863
- be,
863
+ fe,
864
864
  {
865
865
  amount: b,
866
866
  categoryName: o.category.name,
@@ -870,7 +870,7 @@ const kt = ({
870
870
  }
871
871
  ),
872
872
  /* @__PURE__ */ e(
873
- U,
873
+ H,
874
874
  {
875
875
  copy: { close_aria: i.close_aria, title: n.delete_title },
876
876
  isOpen: v,
@@ -883,7 +883,7 @@ const kt = ({
883
883
  }
884
884
  )
885
885
  ] });
886
- }), Ht = ({ budget: t, onClick: n }) => {
886
+ }), Vt = ({ budget: t, onClick: n }) => {
887
887
  const {
888
888
  amount: i,
889
889
  budgetColors: { background: s, description: a },
@@ -894,7 +894,7 @@ const kt = ({
894
894
  transaction_total: d
895
895
  } = t;
896
896
  return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ u(oe, { onClick: () => n?.(t), children: [
897
- /* @__PURE__ */ e(pe, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ue, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: r, variant: "basic" }) }) }),
897
+ /* @__PURE__ */ e(ge, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ue, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(K, { categoryGuid: r, variant: "basic" }) }) }),
898
898
  /* @__PURE__ */ e(
899
899
  ne,
900
900
  {
@@ -912,9 +912,9 @@ const kt = ({
912
912
  }
913
913
  )
914
914
  ] }) });
915
- }, Vt = I(() => {
916
- const { onEvent: t } = J(), { budgets: n } = D(), { detailedBudgets: i, setSelectedBudget: s } = E(), a = (r) => {
917
- s(r), t(G.BUDGETS_CLICK_BUDGET_CATEGORY, {
915
+ }, Kt = I(() => {
916
+ const { onEvent: t } = J(), { budgets: n } = E(), { detailedBudgets: i, setSelectedBudget: s } = w(), a = (r) => {
917
+ s(r), t(P.BUDGETS_CLICK_BUDGET_CATEGORY, {
918
918
  budget_category: r.category.name,
919
919
  click_type: "list"
920
920
  });
@@ -922,13 +922,13 @@ const kt = ({
922
922
  return /* @__PURE__ */ u(Ee, { elevation: 2, children: [
923
923
  /* @__PURE__ */ e(We, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Ge, { children: n.budget_categories_title }) }),
924
924
  /* @__PURE__ */ e(we, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ e(Z, { children: i.map((r) => /* @__PURE__ */ u(l.Fragment, { children: [
925
- /* @__PURE__ */ e(Ht, { budget: r, onClick: a }),
926
- /* @__PURE__ */ e(ge, {})
925
+ /* @__PURE__ */ e(Vt, { budget: r, onClick: a }),
926
+ /* @__PURE__ */ e(me, {})
927
927
  ] }, r.guid)) }) })
928
928
  ] });
929
- }), Kt = I(() => {
930
- const t = de(), { onEvent: n } = J(), { visibleAccounts: i } = Fe(), { budgets: s, common: a, recurring: r } = D(), { incomeCategories: o, spendCategories: c } = q(), { detailedBudgets: g, totalBudgeted: d } = E(), { incomeTotal: m } = ue(), { setFilter: p } = ee(), [h, _] = l.useState(!1), [f, C] = l.useMemo(() => {
931
- const y = c.reduce((w, N) => w + N.totalAmount, 0);
929
+ }), Xt = I(() => {
930
+ const t = le(), { onEvent: n } = J(), { visibleAccounts: i } = Fe(), { budgets: s, common: a, recurring: r } = E(), { incomeCategories: o, spendCategories: c } = q(), { detailedBudgets: g, totalBudgeted: d } = w(), { incomeTotal: m } = de(), { setFilter: p } = ee(), [h, _] = l.useState(!1), [f, C] = l.useMemo(() => {
931
+ const y = c.reduce((D, N) => D + N.totalAmount, 0);
932
932
  let B = y / d;
933
933
  B > 1 && (B = 1);
934
934
  let O = t.palette.success.main;
@@ -942,7 +942,7 @@ const kt = ({
942
942
  return [y, L];
943
943
  }, [g, c]), [v, A] = l.useMemo(() => {
944
944
  const y = Math.abs(
945
- o.reduce((L, w) => L + w.totalAmount, 0)
945
+ o.reduce((L, D) => L + D.totalAmount, 0)
946
946
  );
947
947
  let B = y / m;
948
948
  B > 1 && (B = 1);
@@ -957,10 +957,10 @@ const kt = ({
957
957
  p({
958
958
  accounts: i.map((y) => y.guid),
959
959
  dateRange: {
960
- start: lt(/* @__PURE__ */ new Date(), 90),
960
+ start: dt(/* @__PURE__ */ new Date(), 90),
961
961
  end: /* @__PURE__ */ new Date()
962
962
  }
963
- }), _(!0), n(G.BUDGETS_CLICK_EDIT_INCOME);
963
+ }), _(!0), n(P.BUDGETS_CLICK_EDIT_INCOME);
964
964
  };
965
965
  return /* @__PURE__ */ u(Ee, { elevation: 2, sx: { overflow: "visible" }, children: [
966
966
  /* @__PURE__ */ e(We, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Ge, { children: s.overview_title }) }),
@@ -978,7 +978,7 @@ const kt = ({
978
978
  /* @__PURE__ */ u(x, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
979
979
  /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: s.income_title }),
980
980
  /* @__PURE__ */ e(
981
- dt,
981
+ ut,
982
982
  {
983
983
  "aria-label": r.manage_income,
984
984
  onClick: b,
@@ -996,18 +996,18 @@ const kt = ({
996
996
  ] })
997
997
  ] }) }),
998
998
  /* @__PURE__ */ e(
999
- k,
999
+ $,
1000
1000
  {
1001
1001
  ariaLabelClose: a.close_aria,
1002
1002
  isOpen: h,
1003
1003
  onClose: () => _(!1),
1004
1004
  title: r.manage_income,
1005
- children: /* @__PURE__ */ e(ut, { forOverview: !0 })
1005
+ children: /* @__PURE__ */ e(mt, { forOverview: !0 })
1006
1006
  }
1007
1007
  )
1008
1008
  ] });
1009
- }), $e = 480, on = I(({ onBackClick: t, sx: n }) => {
1010
- const i = de(), { onEvent: s } = J(), { visibleAccounts: a } = Fe(), { budgets: r, common: o } = D(), { isInitialized: c, selectedAccounts: g, setDisplayedDate: d } = Q(), {
1009
+ }), $e = 480, nn = I(({ onBackClick: t, sx: n }) => {
1010
+ const i = le(), { onEvent: s } = J(), { visibleAccounts: a } = Fe(), { budgets: r, common: o } = E(), { isInitialized: c, selectedAccounts: g, setDisplayedDate: d } = Q(), {
1011
1011
  alert: m,
1012
1012
  dateRange: p,
1013
1013
  isDataLoaded: h,
@@ -1016,46 +1016,46 @@ const kt = ({
1016
1016
  setAlert: C,
1017
1017
  setTheme: v,
1018
1018
  detailedBudgets: A
1019
- } = E(), { setDateRange: b } = ue(), { loadDateRangeCategoryTotals: y } = q(), { isSmallTablet: B, isMobile: O, isSmallMobile: L } = he(), w = B || O || L, [N, $] = l.useState(!1);
1019
+ } = w(), { setDateRange: b } = de(), { loadDateRangeCategoryTotals: y } = q(), { isSmallTablet: B, isMobile: O, isSmallMobile: L } = pe(), D = B || O || L, [N, k] = l.useState(!1);
1020
1020
  He({
1021
1021
  widgetName: "BubbleBudgetsWidget",
1022
1022
  isLoaded: h
1023
1023
  }), l.useEffect(() => {
1024
1024
  v(i), h || _().finally(() => {
1025
- s(G.BUDGETS_VIEW);
1025
+ s(P.BUDGETS_VIEW);
1026
1026
  });
1027
- }, []), l.useEffect(() => (f({ start: ce(se()), end: Be(se()) }), () => {
1028
- f({ start: ce(se()), end: Be(se()) });
1027
+ }, []), l.useEffect(() => (f({ start: ie(re()), end: Be(re()) }), () => {
1028
+ f({ start: ie(re()), end: Be(re()) });
1029
1029
  }), [a]), l.useEffect(() => {
1030
1030
  c && (d(p.start, p.end), y(g, p.start, p.end).finally(), b(p));
1031
1031
  }, [c, g, p]);
1032
- const P = (re) => {
1033
- f({ start: re[0] || /* @__PURE__ */ new Date(), end: re[1] || /* @__PURE__ */ new Date() });
1034
- }, V = () => {
1035
- s(G.BUDGETS_CLICK_FILTER);
1032
+ const G = (U) => {
1033
+ f({ start: U[0] || /* @__PURE__ */ new Date(), end: U[1] || /* @__PURE__ */ new Date() });
1036
1034
  }, ae = () => {
1037
- $(!0), s(G.BUDGETS_CLICK_ADD);
1035
+ s(P.BUDGETS_CLICK_FILTER);
1038
1036
  }, F = () => {
1039
- $(!1);
1040
- }, K = () => {
1041
- $(!1);
1042
- }, X = Je(p.end, ce(/* @__PURE__ */ new Date()));
1043
- return !c || !h ? /* @__PURE__ */ e(fe, {}) : /* @__PURE__ */ u(
1044
- mt,
1037
+ k(!0), s(P.BUDGETS_CLICK_ADD);
1038
+ }, be = () => {
1039
+ k(!1);
1040
+ }, z = () => {
1041
+ k(!1);
1042
+ }, X = Qe(p.end, ie(/* @__PURE__ */ new Date()));
1043
+ return !c || !h ? /* @__PURE__ */ e(he, {}) : /* @__PURE__ */ u(
1044
+ gt,
1045
1045
  {
1046
1046
  actions: [
1047
1047
  {
1048
1048
  iconName: "add",
1049
1049
  label: r.add_title,
1050
- onClick: ae
1050
+ onClick: F
1051
1051
  }
1052
1052
  ],
1053
1053
  calendarActions: {
1054
- onRangeChanged: P,
1054
+ onRangeChanged: G,
1055
1055
  shouldDisableNext: X,
1056
1056
  shouldDisablePicker: !0
1057
1057
  },
1058
- onAccountsFilterClick: V,
1058
+ onAccountsFilterClick: ae,
1059
1059
  onBackClick: t,
1060
1060
  sx: n,
1061
1061
  title: r.budgets_title,
@@ -1063,19 +1063,19 @@ const kt = ({
1063
1063
  /* @__PURE__ */ u(
1064
1064
  x,
1065
1065
  {
1066
- direction: w ? "column" : "row",
1066
+ direction: D ? "column" : "row",
1067
1067
  height: "100%",
1068
1068
  sx: { justifyContent: "center" },
1069
1069
  width: "100%",
1070
1070
  children: [
1071
- /* @__PURE__ */ e(x, { height: w ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ e(
1071
+ /* @__PURE__ */ e(x, { height: D ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ e(
1072
1072
  Ye,
1073
1073
  {
1074
- createBudgetOnClick: ae,
1075
- height: w ? 450 : 800,
1074
+ createBudgetOnClick: F,
1075
+ height: D ? 450 : 800,
1076
1076
  isDraggable: !0,
1077
1077
  shouldShowZeroState: A.length === 0,
1078
- unavailableWidth: w ? 0 : $e
1078
+ unavailableWidth: D ? 0 : $e
1079
1079
  }
1080
1080
  ) }),
1081
1081
  A.length !== 0 && /* @__PURE__ */ u(
@@ -1084,29 +1084,29 @@ const kt = ({
1084
1084
  gap: 24,
1085
1085
  height: "100%",
1086
1086
  sx: { mr: 24, mt: 48 },
1087
- width: w ? "100%" : $e,
1087
+ width: D ? "100%" : $e,
1088
1088
  children: [
1089
- /* @__PURE__ */ e(Kt, {}),
1090
- /* @__PURE__ */ e(Vt, {})
1089
+ /* @__PURE__ */ e(Xt, {}),
1090
+ /* @__PURE__ */ e(Kt, {})
1091
1091
  ]
1092
1092
  }
1093
1093
  )
1094
1094
  ]
1095
1095
  }
1096
1096
  ),
1097
- /* @__PURE__ */ e(Wt, {}),
1097
+ /* @__PURE__ */ e(Ht, {}),
1098
1098
  /* @__PURE__ */ e(
1099
- k,
1099
+ $,
1100
1100
  {
1101
1101
  ariaLabelClose: o.close_aria,
1102
1102
  isOpen: N,
1103
- onClose: () => $(!1),
1103
+ onClose: () => k(!1),
1104
1104
  title: r.add_new_title,
1105
1105
  children: /* @__PURE__ */ e(
1106
1106
  Ve,
1107
1107
  {
1108
- onAddBudget: F,
1109
- onRecalculateBudgets: K
1108
+ onAddBudget: be,
1109
+ onRecalculateBudgets: z
1110
1110
  }
1111
1111
  )
1112
1112
  }
@@ -1137,13 +1137,13 @@ const kt = ({
1137
1137
  ]
1138
1138
  }
1139
1139
  );
1140
- }), Xt = ({
1140
+ }), Yt = ({
1141
1141
  budgetsCopy: t,
1142
1142
  difference: n,
1143
1143
  handleAddClick: i,
1144
1144
  shouldShowZeroState: s
1145
1145
  }) => {
1146
- const { availableHeight: a = 0 } = me(), r = l.useRef(null);
1146
+ const { availableHeight: a = 0 } = ue(), r = l.useRef(null);
1147
1147
  l.useEffect(() => {
1148
1148
  a > 0 && r.current === null && (r.current = a);
1149
1149
  }, [a]);
@@ -1161,13 +1161,13 @@ const kt = ({
1161
1161
  shouldShowZeroState: s
1162
1162
  }
1163
1163
  ),
1164
- !s && /* @__PURE__ */ u(W, { ml: 16, children: [
1164
+ !s && /* @__PURE__ */ u(V, { ml: 16, children: [
1165
1165
  /* @__PURE__ */ e(S, { bold: !0, color: n < 0 ? "error.main" : "success.main", children: T(Math.abs(n), "0,0") }),
1166
1166
  /* @__PURE__ */ e(S, { children: n < 0 ? t.overspent_in_budgets : t.left_in_budgets })
1167
1167
  ] })
1168
1168
  ] });
1169
- }, Yt = (t) => {
1170
- const n = de(), { onEvent: i } = J(), { detailedBudgets: s, isDataLoaded: a, loadBudgetData: r, setTheme: o } = E(), { budgets: c, common: g } = D(), { isInitialized: d, selectedAccounts: m } = Q(), { loadDateRangeCategoryTotals: p } = q(), h = gt(), [_, f] = l.useState(!1);
1169
+ }, Zt = (t) => {
1170
+ const n = le(), { onEvent: i } = J(), { detailedBudgets: s, isDataLoaded: a, loadBudgetData: r, setTheme: o } = w(), { budgets: c, common: g } = E(), { isInitialized: d, selectedAccounts: m } = Q(), { loadDateRangeCategoryTotals: p } = q(), h = pt(), [_, f] = l.useState(!1);
1171
1171
  l.useEffect(() => {
1172
1172
  a || r().finally();
1173
1173
  }, []), l.useEffect(() => {
@@ -1175,22 +1175,22 @@ const kt = ({
1175
1175
  }, [n]), l.useEffect(() => {
1176
1176
  d && !a && p(
1177
1177
  m,
1178
- ce(/* @__PURE__ */ new Date()),
1178
+ ie(/* @__PURE__ */ new Date()),
1179
1179
  Be(/* @__PURE__ */ new Date())
1180
1180
  ).finally();
1181
1181
  }, [d, m, a]);
1182
1182
  const C = () => {
1183
- f(!0), i(G.BUDGETS_CLICK_ADD);
1183
+ f(!0), i(P.BUDGETS_CLICK_ADD);
1184
1184
  }, v = () => {
1185
1185
  f(!1);
1186
1186
  }, A = () => f(!1);
1187
1187
  if (He({
1188
1188
  widgetName: "BubbleBudgetsMiniWidget",
1189
1189
  isLoaded: a
1190
- }), !d || !a) return /* @__PURE__ */ e(fe, {});
1190
+ }), !d || !a) return /* @__PURE__ */ e(he, {});
1191
1191
  const b = s.length === 0;
1192
1192
  return /* @__PURE__ */ u(
1193
- pt,
1193
+ ht,
1194
1194
  {
1195
1195
  contentStyles: { height: "calc(100% - 66px)", ":last-child": { pb: 0 } },
1196
1196
  primaryCtaLabel: b ? c.get_started_cta : c.details_cta,
@@ -1199,7 +1199,7 @@ const kt = ({
1199
1199
  ...t,
1200
1200
  children: [
1201
1201
  /* @__PURE__ */ e(
1202
- Xt,
1202
+ Yt,
1203
1203
  {
1204
1204
  budgetsCopy: c,
1205
1205
  difference: h,
@@ -1208,7 +1208,7 @@ const kt = ({
1208
1208
  }
1209
1209
  ),
1210
1210
  /* @__PURE__ */ e(
1211
- k,
1211
+ $,
1212
1212
  {
1213
1213
  ariaLabelClose: g.close_aria,
1214
1214
  isOpen: _,
@@ -1226,12 +1226,12 @@ const kt = ({
1226
1226
  ]
1227
1227
  }
1228
1228
  );
1229
- }, nn = I(Yt), ie = {
1229
+ }, an = I(Zt), se = {
1230
1230
  CANCEL_DELETE: "Cancel - Delete",
1231
1231
  END_SAVE: "End - Save",
1232
- END_START: "End - Start",
1232
+ END_DELETE: "End - Delete",
1233
1233
  START_DELETE: "Start - Delete"
1234
- }, Zt = ({ onClose: t, onEvent: n, onViewHistory: i }) => {
1234
+ }, qt = ({ onClose: t, onEvent: n, onViewHistory: i }) => {
1235
1235
  const {
1236
1236
  alert: s,
1237
1237
  dateRange: a,
@@ -1241,7 +1241,7 @@ const kt = ({
1241
1241
  setAlert: g,
1242
1242
  setSelectedBudget: d,
1243
1243
  updateBudget: m
1244
- } = E(), { budgets: p, common: h } = D(), { isCopyLoaded: _, selectedAccountGuids: f } = Q(), C = ze(), { setFilter: v } = ee(), [A, b] = l.useState(""), [y, B] = l.useState(null), [O, L] = l.useState(!1);
1244
+ } = w(), { budgets: p, common: h } = E(), { isCopyLoaded: _, selectedAccountGuids: f } = Q(), C = ze(), { setFilter: v } = ee(), [A, b] = l.useState(""), [y, B] = l.useState(null), [O, L] = l.useState(!1), D = l.useRef(!1);
1245
1245
  if (l.useEffect(() => {
1246
1246
  !o || c || (b(`${o.amount}`), v({
1247
1247
  accounts: f,
@@ -1252,22 +1252,26 @@ const kt = ({
1252
1252
  },
1253
1253
  showSplits: !0
1254
1254
  }), L(!0));
1255
- }, [o]), !_) return /* @__PURE__ */ e(fe, {});
1255
+ }, [o]), !_) return /* @__PURE__ */ e(he, {});
1256
1256
  if (!o) return null;
1257
- const w = () => {
1257
+ const N = () => {
1258
1258
  b(""), B(null), L(!1), setTimeout(() => {
1259
1259
  d(void 0), t?.();
1260
1260
  }, 250);
1261
- }, N = () => {
1262
- y === "delete" && n?.(ie.CANCEL_DELETE, A), b(o.amount ? `${o.amount}` : ""), B(null);
1263
- }, $ = async () => {
1264
- y === "edit" && (await m({
1265
- ...o,
1266
- amount: Number(A)
1267
- }), n?.(ie.END_SAVE, A), g(
1268
- R(p.alert_budget_updated, o.category.name)
1269
- ), B(null)), y === "delete" && (await r(o.guid), n?.(ie.END_START, A), w());
1270
- }, P = o.transaction_total ?? 0, V = o.amount ?? 0, ae = Math.max(0, V - P), F = V > 0 ? Math.min(100, P / V * 100) : 0, K = {
1261
+ }, k = () => {
1262
+ y === "delete" && n?.(se.CANCEL_DELETE, A), b(o.amount ? `${o.amount}` : ""), B(null);
1263
+ }, G = async () => {
1264
+ if (y === "edit") {
1265
+ if (D.current) return;
1266
+ D.current = !0, await m({
1267
+ ...o,
1268
+ amount: Number(A)
1269
+ }), n?.(se.END_SAVE, A), g(
1270
+ R(p.alert_budget_updated, o.category.name)
1271
+ ), B(null), D.current = !1;
1272
+ }
1273
+ y === "delete" && (await r(o.guid), n?.(se.END_DELETE, A), N());
1274
+ }, ae = o.transaction_total ?? 0, F = o.amount ?? 0, be = Math.max(0, F - ae), z = F > 0 ? Math.min(100, ae / F * 100) : 0, X = {
1271
1275
  off: {
1272
1276
  iconColor: "error"
1273
1277
  },
@@ -1278,12 +1282,12 @@ const kt = ({
1278
1282
  iconColor: "warning"
1279
1283
  }
1280
1284
  };
1281
- let X = K.on;
1282
- F >= 100 ? X = K.off : F >= 50 && (X = K.near);
1283
- const { iconColor: re } = X, Ie = (Y, _e) => R(Y, /* @__PURE__ */ e("b", { children: _e }));
1285
+ let U = X.on;
1286
+ z >= 100 ? U = X.off : z >= 50 && (U = X.near);
1287
+ const { iconColor: qe } = U, Ie = (Y, _e) => R(Y, /* @__PURE__ */ e("b", { children: _e }));
1284
1288
  return /* @__PURE__ */ u(l.Fragment, { children: [
1285
1289
  /* @__PURE__ */ u(
1286
- k,
1290
+ $,
1287
1291
  {
1288
1292
  ariaLabelClose: h.close_aria,
1289
1293
  footerStyles: {
@@ -1291,13 +1295,13 @@ const kt = ({
1291
1295
  py: 16
1292
1296
  },
1293
1297
  isOpen: O,
1294
- onClose: w,
1298
+ onClose: N,
1295
1299
  onPrimaryAction: () => B(
1296
1300
  "edit"
1297
1301
  /* EDIT */
1298
1302
  ),
1299
1303
  onSecondaryAction: () => {
1300
- n?.(ie.START_DELETE, A), B(
1304
+ n?.(se.START_DELETE, A), B(
1301
1305
  "delete"
1302
1306
  /* DELETE */
1303
1307
  );
@@ -1313,7 +1317,7 @@ const kt = ({
1313
1317
  title: R(p.details_type_title, o.category.name),
1314
1318
  children: [
1315
1319
  /* @__PURE__ */ u(
1316
- W,
1320
+ V,
1317
1321
  {
1318
1322
  sx: {
1319
1323
  bgcolor: "background.paper",
@@ -1334,27 +1338,27 @@ const kt = ({
1334
1338
  px: 24
1335
1339
  },
1336
1340
  children: [
1337
- /* @__PURE__ */ e(ye, { bold: !0, variant: "subtitle1", children: _t(o.start_date) }),
1338
- i && /* @__PURE__ */ e(Te, { endIcon: /* @__PURE__ */ e(ht, {}), onClick: i, sx: { height: 28 }, children: /* @__PURE__ */ e(S, { bold: !0, variant: "body2", children: "Spending History" }) })
1341
+ /* @__PURE__ */ e(ye, { bold: !0, variant: "subtitle1", children: yt(o.start_date) }),
1342
+ i && /* @__PURE__ */ e(Te, { endIcon: /* @__PURE__ */ e(ft, {}), onClick: i, sx: { height: 28 }, children: /* @__PURE__ */ e(S, { bold: !0, variant: "body2", children: "Spending History" }) })
1339
1343
  ]
1340
1344
  }
1341
1345
  ),
1342
1346
  /* @__PURE__ */ e(
1343
- ft,
1347
+ bt,
1344
1348
  {
1345
1349
  amount: /* @__PURE__ */ u(x, { sx: { alignItems: "baseline", flexDirection: "row", gap: 4 }, children: [
1346
1350
  /* @__PURE__ */ e(Pe, { children: T(o.transaction_total, "0,0.00") }),
1347
1351
  /* @__PURE__ */ e(ye, { color: "text.secondary", variant: "body2", children: "/" }),
1348
1352
  /* @__PURE__ */ e(ye, { color: "text.secondary", variant: "body2", children: T(o.amount, "0,0.00") })
1349
1353
  ] }),
1350
- completeColor: `${re}.main`,
1354
+ completeColor: `${qe}.main`,
1351
1355
  icon: /* @__PURE__ */ e(
1352
- H,
1356
+ K,
1353
1357
  {
1354
1358
  categoryGuid: o.category.guid,
1355
1359
  size: 44,
1356
1360
  sx: {
1357
- bgcolor: nt(Me(o.category.guid, C), 0.15),
1361
+ bgcolor: at(Me(o.category.guid, C), 0.15),
1358
1362
  border: `1px solid ${Me(o.category.guid, C)}`,
1359
1363
  color: "text.primary"
1360
1364
  }
@@ -1362,13 +1366,13 @@ const kt = ({
1362
1366
  ),
1363
1367
  label: Ie(
1364
1368
  p.spent_label,
1365
- yt(new Date(o.start_date * 1e3), { month: "short" })
1369
+ Ct(new Date(o.start_date * 1e3), { month: "short" })
1366
1370
  ),
1367
- leftLabel: R(p.percent_spent, F.toFixed()),
1368
- percentComplete: F,
1371
+ leftLabel: R(p.percent_spent, z.toFixed()),
1372
+ percentComplete: z,
1369
1373
  rightLabel: R(
1370
1374
  p.balance_left,
1371
- T(ae, "0,0.00")
1375
+ T(be, "0,0.00")
1372
1376
  ),
1373
1377
  sx: {
1374
1378
  pb: 24,
@@ -1395,7 +1399,7 @@ const kt = ({
1395
1399
  }
1396
1400
  ),
1397
1401
  y && /* @__PURE__ */ e(
1398
- bt,
1402
+ _t,
1399
1403
  {
1400
1404
  closeAriaLabel: h.close_aria,
1401
1405
  content: Ie(
@@ -1403,9 +1407,9 @@ const kt = ({
1403
1407
  o.category.name
1404
1408
  ),
1405
1409
  handleInputChange: (Y) => b(Y.toString()),
1406
- handleModalClose: N,
1407
- handlePrimaryAction: $,
1408
- handleSecondaryAction: N,
1410
+ handleModalClose: k,
1411
+ handlePrimaryAction: G,
1412
+ handleSecondaryAction: k,
1409
1413
  inputLabel: y === "edit" ? p.details_edit_title : "",
1410
1414
  inputValue: A,
1411
1415
  isOpen: !0,
@@ -1417,9 +1421,9 @@ const kt = ({
1417
1421
  }
1418
1422
  )
1419
1423
  ] });
1420
- }, an = I(Zt);
1424
+ }, rn = I(qt);
1421
1425
  export {
1422
- nn as BubbleBudgetsMiniWidget,
1423
- on as BubbleBudgetsWidget,
1424
- an as BudgetDetailsDrawerV2
1426
+ an as BubbleBudgetsMiniWidget,
1427
+ nn as BubbleBudgetsWidget,
1428
+ rn as BudgetDetailsDrawerV2
1425
1429
  };