@mx-cartographer/experiences 7.4.7 → 7.4.8-alpha.mm0

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
  5. package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
  6. package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
  7. package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
  8. package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
  9. package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
  11. package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
  13. package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
  14. package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
  15. package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  16. package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
  17. package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
  18. package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
  19. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
  20. package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
  23. package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
  24. package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
  25. package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
  26. package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
  27. package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
  28. package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
  29. package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
  30. package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
  32. package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
  33. package/dist/accounts/index.es.js +148 -140
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/index.es.js +483 -478
  36. package/dist/cashflow/index.es.js +367 -362
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/hooks/index.d.ts +1 -0
  39. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  40. package/dist/common/index.es.js +35 -33
  41. package/dist/dashboard/index.es.js +90 -88
  42. package/dist/debts/index.es.js +346 -342
  43. package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
  44. package/dist/finstrong/index.es.js +352 -350
  45. package/dist/goals/index.es.js +518 -511
  46. package/dist/help/index.es.js +13 -9
  47. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  48. package/dist/investments/index.es.js +395 -393
  49. package/dist/merchants/index.es.js +1 -1
  50. package/dist/microinsights/index.es.js +1 -1
  51. package/dist/networth/index.es.js +245 -240
  52. package/dist/notifications/index.es.js +2 -2
  53. package/dist/recurringtransactions/index.es.js +293 -285
  54. package/dist/settings/index.es.js +252 -249
  55. package/dist/spending/index.es.js +136 -124
  56. package/dist/transactions/index.es.js +77 -73
  57. package/dist/trends/index.es.js +601 -588
  58. package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
  59. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  60. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
  61. package/package.json +1 -1
@@ -1,126 +1,127 @@
1
- import { jsxs as m, jsx as e, Fragment as ze } from "react/jsx-runtime";
1
+ import { jsxs as g, jsx as e, Fragment as ze } from "react/jsx-runtime";
2
2
  import l from "react";
3
3
  import { observer as I } from "mobx-react-lite";
4
- import { endOfMonth as pe } from "date-fns/endOfMonth";
5
- import { startOfMonth as Q } from "date-fns/startOfMonth";
4
+ import { endOfMonth as ge } from "date-fns/endOfMonth";
5
+ import { startOfMonth as J } from "date-fns/startOfMonth";
6
6
  import W from "@mui/material/Box";
7
- import S from "@mui/material/Stack";
8
- import te from "@mui/material/styles/useTheme";
9
- import { Text as b, CategoryIcon as K, Icon as N, H1 as Ue, H3 as Ae } from "@mxenabled/mxui";
10
- import X from "@mui/material/List";
11
- import { u as w, i as D, j as ne, m as z, q as oe, g as V, b as ae, h as re, a as Fe, d as Te, n as He } from "../hooks-C41HAxM5.mjs";
7
+ import B from "@mui/material/Stack";
8
+ import ee from "@mui/material/styles/useTheme";
9
+ import { Text as y, CategoryIcon as H, Icon as P, H1 as Ue, H3 as ve } from "@mxenabled/mxui";
10
+ import K from "@mui/material/List";
11
+ import { u as w, i as D, j as te, m as U, p as ne, g as X, b as oe, h as ae, a as Fe, d as Ae } from "../hooks-ZMp65DFz.mjs";
12
12
  import { f as T } from "../NumberFormatting-DjTD0t3W.mjs";
13
- import we from "@mui/material/Button";
14
- import se from "@mui/material/Divider";
15
- import Y from "@mui/material/ListItem";
16
- import ie from "@mui/material/ListItemAvatar";
17
- import Z from "@mui/material/ListItemButton";
18
- import q from "@mui/material/ListItemText";
13
+ import Te from "@mui/material/Button";
14
+ import re from "@mui/material/Divider";
15
+ import V from "@mui/material/ListItem";
16
+ import se from "@mui/material/ListItemAvatar";
17
+ import Y from "@mui/material/ListItemButton";
18
+ import Z from "@mui/material/ListItemText";
19
19
  import { b as R } from "../Localization-2MODESHW.mjs";
20
- import { D as k } from "../Drawer-BEtCk82g.mjs";
20
+ import { D as N } from "../Drawer-BEtCk82g.mjs";
21
21
  import We from "@mui/material/ListItemSecondaryAction";
22
- import { C as Ke } from "../CurrencyInput-BFKcs-_K.mjs";
23
- import { D as G } from "../Dialog-BPTr3qHE.mjs";
24
- import { C as Xe } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
22
+ import { C as He } from "../CurrencyInput-itK0R3wV.mjs";
23
+ import { D as j } from "../Dialog-BPTr3qHE.mjs";
24
+ import { C as Ke } from "../ConnectionsDrawer-DaK5uIL5.mjs";
25
25
  import * as O from "d3";
26
- import Ve from "@mui/material/Tooltip";
27
- import { useTheme as Ye } from "@mui/material/styles";
28
- import { u as ce } from "../useScreenSize-B6JyS_Lj.mjs";
29
- import { L as j } from "../Loader-DUaFpDGv.mjs";
30
- import { E as me } from "../EmptyState-DoxNUae-.mjs";
31
- import { A as L, W as Ze } from "../WidgetContainer-6dsjtOVg.mjs";
32
- import { u as qe } from "../BudgetUtil-Df2nII9u.mjs";
33
- import { M as Je } from "../MiniWidgetContainer-CmXpTylX.mjs";
34
- import { isAfter as Qe } from "date-fns/isAfter";
35
- import { startOfToday as J } from "date-fns/startOfToday";
36
- import et from "@mui/material/Alert";
37
- import tt from "@mui/material/Snackbar";
38
- import Ce from "@mui/material/Tab";
39
- import nt from "@mui/material/Tabs";
40
- import { e as ot } from "../exportTransactionsToCSV-Cz2t0lmA.mjs";
41
- import { T as De, a as at } from "../TransactionDetails-COH0OKNG.mjs";
42
- import fe from "@mui/material/Card";
43
- import be from "@mui/material/CardContent";
44
- import { S as he } from "../StatusBar-BK_uYHAB.mjs";
26
+ import Xe from "@mui/material/Tooltip";
27
+ import { useTheme as Ve } from "@mui/material/styles";
28
+ import { u as ie } from "../useScreenSize-B6JyS_Lj.mjs";
29
+ import { L as z } from "../Loader-DUaFpDGv.mjs";
30
+ import { E as ue } from "../EmptyState-DoxNUae-.mjs";
31
+ import { A as k, W as Ye } from "../WidgetContainer-CaPjoWeE.mjs";
32
+ import { u as Ze } from "../BudgetUtil-BmZXkL0C.mjs";
33
+ import { u as we } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
34
+ import { M as qe } from "../MiniWidgetContainer-98-hKFqm.mjs";
35
+ import { isAfter as Je } from "date-fns/isAfter";
36
+ import { startOfToday as q } from "date-fns/startOfToday";
37
+ import Qe from "@mui/material/Alert";
38
+ import et from "@mui/material/Snackbar";
39
+ import _e from "@mui/material/Tab";
40
+ import tt from "@mui/material/Tabs";
41
+ import { e as nt } from "../exportTransactionsToCSV-DuAaI5XA.mjs";
42
+ import { T as De, a as ot } from "../TransactionDetails-BA_E5nQ-.mjs";
43
+ import he from "@mui/material/Card";
44
+ import fe from "@mui/material/CardContent";
45
+ import { S as pe } from "../StatusBar-BK_uYHAB.mjs";
45
46
  import { S as Ie } from "../SingleSegmentDonut-BgbLgwHi.mjs";
46
- import { u as rt, b as st } from "../CategorySelectorDrawer-DqJK_rrL.mjs";
47
+ import { u as at, b as rt } from "../CategorySelectorDrawer-SUgfE5GN.mjs";
47
48
  import Ee from "@mui/material/CardHeader";
48
- import { subDays as it } from "date-fns/subDays";
49
- import ct from "@mui/material/IconButton";
50
- import { M as lt } from "../ManageIncome-A69EUO5u.mjs";
51
- const dt = I(() => {
52
- const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = ne(), s = i - o;
53
- return /* @__PURE__ */ m(S, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
54
- /* @__PURE__ */ m(S, { alignItems: "center", children: [
55
- /* @__PURE__ */ e(b, { bold: !0, variant: "Body", children: T(i, "0,0") }),
56
- /* @__PURE__ */ e(b, { color: "secondary", variant: "Small", children: t.projected_income })
49
+ import { subDays as st } from "date-fns/subDays";
50
+ import it from "@mui/material/IconButton";
51
+ import { M as ct } from "../ManageIncome-rcnDYsBJ.mjs";
52
+ const lt = I(() => {
53
+ const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = te(), s = i - o;
54
+ return /* @__PURE__ */ g(B, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
55
+ /* @__PURE__ */ g(B, { alignItems: "center", children: [
56
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: T(i, "0,0") }),
57
+ /* @__PURE__ */ e(y, { color: "secondary", variant: "Small", children: t.projected_income })
57
58
  ] }),
58
- /* @__PURE__ */ e(b, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
59
- /* @__PURE__ */ m(S, { alignItems: "center", children: [
60
- /* @__PURE__ */ e(b, { bold: !0, variant: "Body", children: T(o, "0,0") }),
61
- /* @__PURE__ */ e(b, { color: "secondary", variant: "Small", children: t.budgeted })
59
+ /* @__PURE__ */ e(y, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
60
+ /* @__PURE__ */ g(B, { alignItems: "center", children: [
61
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: T(o, "0,0") }),
62
+ /* @__PURE__ */ e(y, { color: "secondary", variant: "Small", children: t.budgeted })
62
63
  ] }),
63
- /* @__PURE__ */ e(b, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
64
- /* @__PURE__ */ m(S, { alignItems: "center", children: [
65
- /* @__PURE__ */ e(b, { bold: !0, variant: "Body", children: T(s, "0,0") }),
66
- /* @__PURE__ */ e(b, { color: "secondary", variant: "Small", children: t.remaining })
64
+ /* @__PURE__ */ e(y, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
65
+ /* @__PURE__ */ g(B, { alignItems: "center", children: [
66
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: T(s, "0,0") }),
67
+ /* @__PURE__ */ e(y, { color: "secondary", variant: "Small", children: t.remaining })
67
68
  ] })
68
69
  ] });
69
- }), ut = I(
70
+ }), dt = I(
70
71
  ({ category: t }) => {
71
72
  const { budgets: o } = w(), { budgets: i } = D(), s = l.useMemo(() => {
72
73
  const a = i.find((c) => c.category_guid === t.guid), n = T(t.totalAverageAmount, "0,0"), r = a ? R(o.recalculate_previous_budget, T(a.amount, "0,0")) : o.recalculate_new_budget;
73
74
  return `${n} - ${r}`;
74
75
  }, [o, i]);
75
- return /* @__PURE__ */ m(l.Fragment, { children: [
76
- /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ m(Z, { children: [
77
- /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ e(K, { categoryGuid: t.guid, variant: "filled" }) }),
78
- /* @__PURE__ */ e(q, { primary: t.name, secondary: s })
76
+ return /* @__PURE__ */ g(l.Fragment, { children: [
77
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ g(Y, { children: [
78
+ /* @__PURE__ */ e(se, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid, variant: "filled" }) }),
79
+ /* @__PURE__ */ e(Z, { primary: t.name, secondary: s })
79
80
  ] }) }),
80
- /* @__PURE__ */ e(se, {})
81
+ /* @__PURE__ */ e(re, {})
81
82
  ] }, t.guid);
82
83
  }
83
- ), mt = ({ onRecalculateBudgets: t }) => {
84
- const { budgets: o, common: i } = w(), { spendCategories: s } = z(), { recalculateBudgets: a, setAlert: n } = D(), [r, c] = l.useState(!1), g = s.filter((u) => u.totalAverageAmount > 0), d = async () => {
85
- await a(g), c(!1), n(o.alert_recalculated_budgets), t?.();
84
+ ), ut = ({ onRecalculateBudgets: t }) => {
85
+ const { budgets: o, common: i } = w(), { spendCategories: s } = U(), { recalculateBudgets: a, setAlert: n } = D(), [r, c] = l.useState(!1), d = s.filter((u) => u.totalAverageAmount > 0), m = async () => {
86
+ await a(d), c(!1), n(o.alert_recalculated_budgets), t?.();
86
87
  };
87
- return /* @__PURE__ */ m(l.Fragment, { children: [
88
- /* @__PURE__ */ e(we, { onClick: () => c(!0), sx: { mt: 24, mx: 24 }, variant: "text", children: o.recalculate_button }),
89
- /* @__PURE__ */ e(b, { sx: { mx: 24, my: 16, textAlign: "center", whiteSpace: "wrap" }, variant: "Paragraph", children: o.recalculate_help }),
88
+ return /* @__PURE__ */ g(l.Fragment, { children: [
89
+ /* @__PURE__ */ e(Te, { onClick: () => c(!0), sx: { mt: 24, mx: 24 }, variant: "text", children: o.recalculate_button }),
90
+ /* @__PURE__ */ e(y, { sx: { mx: 24, my: 16, textAlign: "center", whiteSpace: "wrap" }, variant: "Paragraph", children: o.recalculate_help }),
90
91
  /* @__PURE__ */ e(
91
- k,
92
+ N,
92
93
  {
93
94
  ariaLabelClose: i.close_aria,
94
95
  isOpen: r,
95
96
  onClose: () => c(!1),
96
- onPrimaryAction: d,
97
+ onPrimaryAction: m,
97
98
  title: o.recalculate_title,
98
- children: /* @__PURE__ */ m(S, { children: [
99
- /* @__PURE__ */ m(S, { mx: 24, my: 16, children: [
100
- /* @__PURE__ */ e(b, { bold: !0, variant: "Body", children: o.recalculate_description_top }),
101
- /* @__PURE__ */ e(b, { variant: "ParagraphSmall", children: o.recalculate_description_bottom })
99
+ children: /* @__PURE__ */ g(B, { children: [
100
+ /* @__PURE__ */ g(B, { mx: 24, my: 16, children: [
101
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: o.recalculate_description_top }),
102
+ /* @__PURE__ */ e(y, { variant: "ParagraphSmall", children: o.recalculate_description_bottom })
102
103
  ] }),
103
- /* @__PURE__ */ e(W, { bgcolor: "background.paper", children: /* @__PURE__ */ e(X, { children: g.map((u) => /* @__PURE__ */ e(ut, { category: u }, u.guid)) }) })
104
+ /* @__PURE__ */ e(W, { bgcolor: "background.paper", children: /* @__PURE__ */ e(K, { children: d.map((u) => /* @__PURE__ */ e(dt, { category: u }, u.guid)) }) })
104
105
  ] })
105
106
  }
106
107
  )
107
108
  ] });
108
- }, le = ({
109
+ }, ce = ({
109
110
  amount: t,
110
111
  categoryName: o,
111
112
  onAmountChanged: i
112
113
  }) => {
113
- const { budgets: s } = w(), { totalBudgeted: a } = D(), { incomeTotal: n } = ne(), r = n - a;
114
- return /* @__PURE__ */ m(S, { gap: 16, children: [
115
- /* @__PURE__ */ m(S, { children: [
116
- /* @__PURE__ */ e(b, { children: R(
114
+ const { budgets: s } = w(), { totalBudgeted: a } = D(), { incomeTotal: n } = te(), r = n - a;
115
+ return /* @__PURE__ */ g(B, { gap: 16, children: [
116
+ /* @__PURE__ */ g(B, { children: [
117
+ /* @__PURE__ */ e(y, { children: R(
117
118
  s.add_description_top,
118
119
  T(r, "0,0")
119
120
  ) }),
120
- /* @__PURE__ */ e(b, { children: R(s.add_description_bottom, o) })
121
+ /* @__PURE__ */ e(y, { children: R(s.add_description_bottom, o) })
121
122
  ] }),
122
123
  /* @__PURE__ */ e(
123
- Ke,
124
+ He,
124
125
  {
125
126
  amount: t,
126
127
  autoFocus: !0,
@@ -131,24 +132,24 @@ const dt = I(() => {
131
132
  }
132
133
  )
133
134
  ] });
134
- }, gt = I(({ category: t, onAddBudget: o }) => {
135
+ }, mt = I(({ category: t, onAddBudget: o }) => {
135
136
  const { budgets: i, common: s } = w(), [a, n] = l.useState(!1), [r, c] = l.useState(
136
137
  `${t.totalAmount === 0 ? "" : t.totalAmount}`
137
138
  );
138
- return /* @__PURE__ */ m(l.Fragment, { children: [
139
- /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ m(Z, { onClick: () => n(!0), children: [
140
- /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ e(K, { categoryGuid: t.guid }) }),
139
+ return /* @__PURE__ */ g(l.Fragment, { children: [
140
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ g(Y, { onClick: () => n(!0), children: [
141
+ /* @__PURE__ */ e(se, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid }) }),
141
142
  /* @__PURE__ */ e(
142
- q,
143
+ Z,
143
144
  {
144
145
  primary: t.name,
145
146
  secondary: T(t.totalAmount, "0,0")
146
147
  }
147
148
  ),
148
- /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(N, { name: "add", size: 20 }) })
149
+ /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(P, { name: "add", size: 20 }) })
149
150
  ] }) }, t.guid),
150
151
  /* @__PURE__ */ e(
151
- G,
152
+ j,
152
153
  {
153
154
  copy: { close_aria: s.close_aria, title: i.add_title },
154
155
  disablePrimaryButton: Number(r) <= 0,
@@ -156,7 +157,7 @@ const dt = I(() => {
156
157
  onClose: () => n(!1),
157
158
  onPrimaryAction: () => o(t, Number(r)),
158
159
  primaryText: i.add_save_button,
159
- children: /* @__PURE__ */ e(le, { amount: r, categoryName: t.name, onAmountChanged: c })
160
+ children: /* @__PURE__ */ e(ce, { amount: r, categoryName: t.name, onAmountChanged: c })
160
161
  }
161
162
  )
162
163
  ] });
@@ -164,19 +165,19 @@ const dt = I(() => {
164
165
  const { budgets: o } = w(), { addBudget: i, setAlert: s, unbudgetedCategories: a } = D(), n = async (r, c) => {
165
166
  await i(r, c), s(R(o.alert_budget_created, r.name));
166
167
  };
167
- return /* @__PURE__ */ m(S, { children: [
168
- /* @__PURE__ */ e(dt, {}),
169
- /* @__PURE__ */ e(W, { bgcolor: "background.paper", children: /* @__PURE__ */ e(X, { children: a.map((r) => /* @__PURE__ */ e(
170
- gt,
168
+ return /* @__PURE__ */ g(B, { children: [
169
+ /* @__PURE__ */ e(lt, {}),
170
+ /* @__PURE__ */ e(W, { bgcolor: "background.paper", children: /* @__PURE__ */ e(K, { children: a.map((r) => /* @__PURE__ */ e(
171
+ mt,
171
172
  {
172
173
  category: r,
173
174
  onAddBudget: n
174
175
  },
175
176
  r.guid
176
177
  )) }) }),
177
- /* @__PURE__ */ e(mt, { onRecalculateBudgets: t })
178
+ /* @__PURE__ */ e(ut, { onRecalculateBudgets: t })
178
179
  ] });
179
- }), Be = 5, Me = 100, ee = 25, pt = (t) => {
180
+ }), Ce = 5, Me = 100, Q = 25, gt = (t) => {
180
181
  const o = (a) => {
181
182
  a.active || t.alphaTarget(0.3).restart(), a.subject.fx = a.subject.x, a.subject.fy = a.subject.y;
182
183
  }, i = (a) => {
@@ -185,14 +186,14 @@ const dt = I(() => {
185
186
  a.active || t.alphaTarget(0), a.subject.fx = null, a.subject.fy = null;
186
187
  };
187
188
  return O.drag().on("start", o).on("drag", i).on("end", s);
188
- }, ht = (t) => {
189
+ }, pt = (t) => {
189
190
  let o = t.transaction_total / t.amount;
190
191
  o < 0 ? o = 0 : o > 1 && (o = 1);
191
- const i = o * 2 * Math.PI, s = O.interpolate(0, i), a = O.arc().cornerRadius(5).innerRadius(t.radius - Be * 2).outerRadius(t.radius - Be).startAngle(0).endAngle(0);
192
+ const i = o * 2 * Math.PI, s = O.interpolate(0, i), a = O.arc().cornerRadius(5).innerRadius(t.radius - Ce * 2).outerRadius(t.radius - Ce).startAngle(0).endAngle(0);
192
193
  return (n) => (a.endAngle(s(n)), a(t) || "");
193
- }, ft = (t) => {
194
- O.selectAll(".bubble").call(pt(t));
195
- }, Se = (t, o, i) => Math.min(Math.max(t, o), i), bt = (t, o, i) => {
194
+ }, ht = (t) => {
195
+ O.selectAll(".bubble").call(gt(t));
196
+ }, Be = (t, o, i) => Math.min(Math.max(t, o), i), ft = (t, o, i) => {
196
197
  t.alpha(1).restart().force(
197
198
  "x",
198
199
  O.forceX().x(i / 2).strength(0.01)
@@ -202,11 +203,11 @@ const dt = I(() => {
202
203
  ).on("tick", () => {
203
204
  const s = t.nodes();
204
205
  s.forEach((a) => {
205
- const n = a.radius ?? ee;
206
- a.x = Se(a.x ?? 0, n, i - n), a.y = Se(a.y ?? 0, n, o - n);
206
+ const n = a.radius ?? Q;
207
+ a.x = Be(a.x ?? 0, n, i - n), a.y = Be(a.y ?? 0, n, o - n);
207
208
  }), O.selectAll(".bubble").data(s).attr("transform", (a) => `translate(${a.x},${a.y})`);
208
209
  });
209
- }, Re = (t, o) => O.scaleLinear().domain([t, o]).range([ee, Me]), yt = (t) => {
210
+ }, Re = (t, o) => O.scaleLinear().domain([t, o]).range([Q, Me]), bt = (t) => {
210
211
  const o = t.reduce((n, r) => {
211
212
  const c = Math.max(r.transaction_total, r.amount);
212
213
  return c > n ? c : n;
@@ -221,25 +222,25 @@ const dt = I(() => {
221
222
  };
222
223
  });
223
224
  return O.forceSimulation(a).velocityDecay(0.05).force("collide", O.forceCollide((n) => n.radius + 2).strength(0.7));
224
- }, _t = (t, o, i) => {
225
- const a = Math.PI * ee ** 2 * t, n = i < 400 || o < 300, r = n ? 40 : 20, c = Math.max(100, i - r), g = Math.max(100, o - r), d = c * g;
226
- let u = ee;
227
- if (a < d) {
228
- const h = Math.sqrt(d / (t * Math.PI)), f = Math.min(c, g) / 4;
229
- u = Math.min(Me, h, f);
225
+ }, yt = (t, o, i) => {
226
+ const a = Math.PI * Q ** 2 * t, n = i < 400 || o < 300, r = n ? 40 : 20, c = Math.max(100, i - r), d = Math.max(100, o - r), m = c * d;
227
+ let u = Q;
228
+ if (a < m) {
229
+ const f = Math.sqrt(m / (t * Math.PI)), h = Math.min(c, d) / 4;
230
+ u = Math.min(Me, f, h);
230
231
  }
231
232
  return n && t <= 3 && (u = Math.min(u, 45)), { minRadius: Math.max(20, u * 0.6), maxRadius: u };
232
- }, Ct = (t, o, i, s, a) => {
233
- const { maxRadius: n, minRadius: r } = _t(t, o, a);
233
+ }, _t = (t, o, i, s, a) => {
234
+ const { maxRadius: n, minRadius: r } = yt(t, o, a);
234
235
  return O.scaleLinear().domain([s, i]).range([r, n]);
235
- }, Bt = (t, o, i = !1, s, a) => {
236
- const n = o.map((d) => Math.max(d.transaction_total, d.amount)), r = Math.min(...n), c = Math.max(...n), g = i ? Ct(t.length, s, c, r, a) : Re(r, c);
237
- return t.map((d) => ({
238
- ...d,
239
- radius: g(Math.max(d.transaction_total, d.amount))
236
+ }, Ct = (t, o, i = !1, s, a) => {
237
+ const n = o.map((m) => Math.max(m.transaction_total, m.amount)), r = Math.min(...n), c = Math.max(...n), d = i ? _t(t.length, s, c, r, a) : Re(r, c);
238
+ return t.map((m) => ({
239
+ ...m,
240
+ radius: d(Math.max(m.transaction_total, m.amount))
240
241
  }));
241
- }, xe = 5, St = 2e3, xt = ({ bubble: t }) => {
242
- const o = te(), {
242
+ }, Se = 5, Bt = 2e3, St = ({ bubble: t }) => {
243
+ const o = ee(), {
243
244
  amount: i,
244
245
  guid: s,
245
246
  budgetColors: { mercury: a },
@@ -247,20 +248,20 @@ const dt = I(() => {
247
248
  transaction_total: r
248
249
  } = t, c = `mercury-${s}`;
249
250
  l.useEffect(() => {
250
- O.select(`.${c}`).selectAll(".status").remove(), O.select(`.${c}`).append("path").transition().duration(St).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => ht(t));
251
+ O.select(`.${c}`).selectAll(".status").remove(), O.select(`.${c}`).append("path").transition().duration(Bt).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => pt(t));
251
252
  }, [i, n, r]);
252
- const g = O.arc().innerRadius((d) => d - 2 * xe).outerRadius((d) => d - xe).startAngle(0).endAngle(2 * Math.PI);
253
+ const d = O.arc().innerRadius((m) => m - 2 * Se).outerRadius((m) => m - Se).startAngle(0).endAngle(2 * Math.PI);
253
254
  return /* @__PURE__ */ e("g", { className: c, children: /* @__PURE__ */ e(
254
255
  "path",
255
256
  {
256
- d: g(n) || "",
257
+ d: d(n) || "",
257
258
  style: { fill: o.palette.common.white, fillOpacity: 0.35 }
258
259
  }
259
260
  ) });
260
- }, vt = l.memo(xt), P = 75, ge = 50;
261
- function At({ bubble: t, isDraggable: o, onClick: i = () => {
261
+ }, xt = l.memo(St), G = 75, me = 50;
262
+ function vt({ bubble: t, isDraggable: o, onClick: i = () => {
262
263
  } }) {
263
- const [s, a] = l.useState(!1), n = Ye(), { availableWidth: r } = oe(), c = l.useMemo(() => {
264
+ const [s, a] = l.useState(!1), n = Ve(), { availableWidth: r } = ne(), c = l.useMemo(() => {
264
265
  if (t)
265
266
  return {
266
267
  amount: t.amount,
@@ -272,41 +273,41 @@ function At({ bubble: t, isDraggable: o, onClick: i = () => {
272
273
  }, [t.amount, t.budgetColors, t.guid, t.radius, t.transaction_total]);
273
274
  if (!t) return;
274
275
  const {
275
- budgetColors: { background: g, text: d },
276
- category: { icon: u, name: B },
277
- guid: h,
278
- description: f,
276
+ budgetColors: { background: d, text: m },
277
+ category: { icon: u, name: _ },
278
+ guid: f,
279
+ description: h,
279
280
  radius: p,
280
- x: C,
281
- y
282
- } = t, _ = r < 400 ? -8 : -12;
283
- let v = _, A = _;
284
- p > P ? (v = -14, A = -45) : p > ge && (A = -32);
281
+ x: S,
282
+ y: b
283
+ } = t, C = r < 400 ? -8 : -12;
284
+ let v = C, A = C;
285
+ p > G ? (v = -14, A = -45) : p > me && (A = -32);
285
286
  let x = 32;
286
- p <= P && (x = r < 400 ? 16 : 24);
287
- const E = `${t.category.name}: ${f}`, M = {
287
+ p <= G && (x = r < 400 ? 16 : 24);
288
+ const E = `${t.category.name}: ${h}`, M = {
288
289
  modifiers: [
289
290
  {
290
291
  name: "offset",
291
292
  options: { offset: [0, 15] }
292
293
  }
293
294
  ]
294
- }, $ = (F) => {
295
- (F.key === "Enter" || F.key === " ") && (F.preventDefault(), i(t));
296
- }, U = () => {
295
+ }, $ = (L) => {
296
+ (L.key === "Enter" || L.key === " ") && (L.preventDefault(), i(t));
297
+ }, F = () => {
297
298
  a(!0);
298
- }, de = () => {
299
+ }, le = () => {
299
300
  a(!1);
300
301
  };
301
- return /* @__PURE__ */ m(
302
+ return /* @__PURE__ */ g(
302
303
  "g",
303
304
  {
304
- "aria-label": `${B} - ${f}`,
305
+ "aria-label": `${_} - ${h}`,
305
306
  className: "bubble",
306
- id: `bubble-${h}`,
307
- onBlur: de,
307
+ id: `bubble-${f}`,
308
+ onBlur: le,
308
309
  onClick: () => i(t),
309
- onFocus: U,
310
+ onFocus: F,
310
311
  onKeyDown: $,
311
312
  onMouseEnter: () => a(!0),
312
313
  onMouseLeave: () => a(!1),
@@ -314,8 +315,8 @@ function At({ bubble: t, isDraggable: o, onClick: i = () => {
314
315
  style: { cursor: o ? "pointer" : "default" },
315
316
  tabIndex: 0,
316
317
  textAnchor: "middle",
317
- x: C,
318
- y,
318
+ x: S,
319
+ y: b,
319
320
  children: [
320
321
  /* @__PURE__ */ e("style", { children: `
321
322
  .bubble:focus,
@@ -329,102 +330,102 @@ function At({ bubble: t, isDraggable: o, onClick: i = () => {
329
330
  stroke-opacity: 0.8;
330
331
  }
331
332
  ` }),
332
- /* @__PURE__ */ e(Ve, { open: s, slotProps: { popper: M }, title: E, children: /* @__PURE__ */ e("circle", { fill: g, id: `circle-${h}`, r: p }) }),
333
- /* @__PURE__ */ e("svg", { x: v, y: A, children: /* @__PURE__ */ e(N, { name: u, size: x, sx: { fill: d } }) }),
334
- p > P && /* @__PURE__ */ e(
335
- b,
333
+ /* @__PURE__ */ e(Xe, { open: s, slotProps: { popper: M }, title: E, children: /* @__PURE__ */ e("circle", { fill: d, id: `circle-${f}`, r: p }) }),
334
+ /* @__PURE__ */ e("svg", { x: v, y: A, children: /* @__PURE__ */ e(P, { name: u, size: x, sx: { fill: m } }) }),
335
+ p > G && /* @__PURE__ */ e(
336
+ y,
336
337
  {
337
338
  bold: !0,
338
339
  component: "text",
339
- id: `budget-category-${h}`,
340
- sx: { fill: d },
340
+ id: `budget-category-${f}`,
341
+ sx: { fill: m },
341
342
  variant: "Small",
342
343
  y: 4,
343
- children: B
344
+ children: _
344
345
  }
345
346
  ),
346
- p > ge && /* @__PURE__ */ e(
347
- b,
347
+ p > me && /* @__PURE__ */ e(
348
+ y,
348
349
  {
349
350
  bold: !0,
350
351
  component: "text",
351
- id: `budget-description-${h}-1`,
352
- sx: { fill: d },
352
+ id: `budget-description-${f}-1`,
353
+ sx: { fill: m },
353
354
  variant: "Body",
354
- y: p <= P ? 12 : 24,
355
- children: p <= P ? f.split(" ")[0] : f
355
+ y: p <= G ? 12 : 24,
356
+ children: p <= G ? h.split(" ")[0] : h
356
357
  }
357
358
  ),
358
- p <= P && p > ge && /* @__PURE__ */ e(
359
- b,
359
+ p <= G && p > me && /* @__PURE__ */ e(
360
+ y,
360
361
  {
361
362
  component: "text",
362
- id: `budget-description-${h}-2`,
363
- sx: { fill: d },
363
+ id: `budget-description-${f}-2`,
364
+ sx: { fill: m },
364
365
  variant: "XSmall",
365
366
  y: 28,
366
- children: f.split(" ")[1]
367
+ children: h.split(" ")[1]
367
368
  }
368
369
  ),
369
- /* @__PURE__ */ e(vt, { bubble: c })
370
+ /* @__PURE__ */ e(xt, { bubble: c })
370
371
  ]
371
372
  },
372
- h
373
+ f
373
374
  );
374
375
  }
375
- const Tt = ({
376
+ const At = ({
376
377
  height: t,
377
378
  width: o,
378
379
  isDraggable: i = !1,
379
380
  onClick: s = () => {
380
381
  }
381
382
  }) => {
382
- const [a, n] = l.useState([]), r = l.useRef(null), c = l.useRef(!1), { detailedBudgets: g } = D(), d = l.useCallback(() => {
383
- const u = r.current, B = yt(g), h = B.nodes();
383
+ const [a, n] = l.useState([]), r = l.useRef(null), c = l.useRef(!1), { detailedBudgets: d } = D(), m = l.useCallback(() => {
384
+ const u = r.current, _ = bt(d), f = _.nodes();
384
385
  if (u) {
385
- const f = u.nodes(), p = new Map(f.map((C) => [C.guid, C]));
386
- h.forEach((C) => {
387
- const y = p.get(C.guid);
388
- y && Object.assign(C, {
389
- vx: y.vx,
390
- vy: y.vy,
391
- x: y.x,
392
- y: y.y
386
+ const h = u.nodes(), p = new Map(h.map((S) => [S.guid, S]));
387
+ f.forEach((S) => {
388
+ const b = p.get(S.guid);
389
+ b && Object.assign(S, {
390
+ vx: b.vx,
391
+ vy: b.vy,
392
+ x: b.x,
393
+ y: b.y
393
394
  });
394
395
  });
395
396
  }
396
- r.current = B, c.current = !1, n(h);
397
- }, [g]);
397
+ r.current = _, c.current = !1, n(f);
398
+ }, [d]);
398
399
  return l.useEffect(() => {
399
- d();
400
- }, [d]), l.useEffect(() => () => {
400
+ m();
401
+ }, [m]), l.useEffect(() => () => {
401
402
  r.current && (r.current.stop(), r.current = null);
402
403
  }, []), l.useEffect(() => {
403
404
  const u = r.current;
404
405
  if (!u) return;
405
- const B = u.nodes(), h = o > 0 && o < 450 || t > 0 && t < 300, f = Bt(B, g, h, t, o);
406
- u.nodes(f), bt(u, t, o), i && setTimeout(() => {
407
- ft(u);
408
- }, 0), n([...f]);
409
- }, [t, o, i, g]), /* @__PURE__ */ e("svg", { height: t, style: { overflow: "visible" }, width: Math.abs(o), children: a.map((u) => /* @__PURE__ */ e(At, { bubble: u, isDraggable: i, onClick: s }, u.guid)) });
410
- }, wt = I(Tt), Dt = ({
406
+ const _ = u.nodes(), f = o > 0 && o < 450 || t > 0 && t < 300, h = Ct(_, d, f, t, o);
407
+ u.nodes(h), ft(u, t, o), i && setTimeout(() => {
408
+ ht(u);
409
+ }, 0), n([...h]);
410
+ }, [t, o, i, d]), /* @__PURE__ */ e("svg", { height: t, style: { overflow: "visible" }, width: Math.abs(o), children: a.map((u) => /* @__PURE__ */ e(vt, { bubble: u, isDraggable: i, onClick: s }, u.guid)) });
411
+ }, Tt = I(At), wt = ({
411
412
  isMiniWidget: t = !1,
412
413
  onConnectAccountsClick: o,
413
414
  createBudgetOnClick: i
414
415
  }) => {
415
- const { recalculateBudgets: s } = D(), { spendCategories: a } = z(), { budgets: n } = w(), { availableWidth: r } = oe(), { isMobile: c } = ce(r), g = t && c, [d, u] = l.useState(!1), [B, h] = l.useState(!1), [f, p] = l.useState(!1), C = l.useMemo(() => [...a.filter((_) => _.totalAverageAmount > 0)], [a]), y = async () => {
416
+ const { recalculateBudgets: s } = D(), { spendCategories: a } = U(), { budgets: n } = w(), { availableWidth: r } = ne(), { isMobile: c } = ie(r), d = t && c, [m, u] = l.useState(!1), [_, f] = l.useState(!1), [h, p] = l.useState(!1), S = l.useMemo(() => [...a.filter((C) => C.totalAverageAmount > 0)], [a]), b = async () => {
416
417
  p(!0);
417
- const { data: _, isSuccess: v } = await s(C);
418
- p(!1), v ? (_.length === 0 && h(!0), u(!1)) : u(!0);
418
+ const { data: C, isSuccess: v } = await s(S);
419
+ p(!1), v ? (C.length === 0 && f(!0), u(!1)) : u(!0);
419
420
  };
420
- return f ? /* @__PURE__ */ e(j, {}) : d ? /* @__PURE__ */ e(
421
- me,
421
+ return h ? /* @__PURE__ */ e(z, {}) : m ? /* @__PURE__ */ e(
422
+ ue,
422
423
  {
423
424
  header: n.autogenerate_budgets_error_header,
424
425
  icon: "error",
425
426
  iconColor: "#4D4D4D",
426
- onClick: (_) => {
427
- _ === "primary" ? y() : i();
427
+ onClick: (C) => {
428
+ C === "primary" ? b() : i();
428
429
  },
429
430
  primaryButton: n.autogenerate_budgets_error_primary_button,
430
431
  secondaryButton: n.zero_state_generate_budgets_secondary_button,
@@ -433,19 +434,19 @@ const Tt = ({
433
434
  width: { sm: 468 },
434
435
  ".buttons-footer": {
435
436
  width: 208,
436
- ...g && { mt: 16, button: { height: "max-content" } }
437
+ ...d && { mt: 16, button: { height: "max-content" } }
437
438
  },
438
- ...g && { justifyContent: "center", mt: 0, svg: { height: 32, width: 32 } }
439
+ ...d && { justifyContent: "center", mt: 0, svg: { height: 32, width: 32 } }
439
440
  }
440
441
  }
441
- ) : /* @__PURE__ */ e(ze, { children: B ? /* @__PURE__ */ e(
442
- me,
442
+ ) : /* @__PURE__ */ e(ze, { children: _ ? /* @__PURE__ */ e(
443
+ ue,
443
444
  {
444
445
  header: n.zero_state_generate_budgets_header,
445
446
  icon: "error",
446
447
  iconColor: "#4D4D4D",
447
- onClick: (_) => {
448
- _ === "primary" ? o() : i();
448
+ onClick: (C) => {
449
+ C === "primary" ? o() : i();
449
450
  },
450
451
  primaryButton: n.zero_state_generate_budgets_primary_button,
451
452
  secondaryButton: n.zero_state_generate_budgets_secondary_button,
@@ -453,24 +454,24 @@ const Tt = ({
453
454
  sx: {
454
455
  width: t ? "100%" : { sm: 500 },
455
456
  height: t ? "100%" : { sm: 468 },
456
- mt: g ? 0 : 50,
457
+ mt: d ? 0 : 50,
457
458
  ".buttons-footer": {
458
459
  width: 208,
459
460
  height: 100,
460
- ...g && { mt: 16, button: { height: "max-content" } }
461
+ ...d && { mt: 16, button: { height: "max-content" } }
461
462
  },
462
463
  padding: t ? 5 : 0,
463
- ...g && { justifyContent: "center", svg: { height: 32, width: 32 } }
464
+ ...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
464
465
  }
465
466
  }
466
467
  ) : /* @__PURE__ */ e(
467
- me,
468
+ ue,
468
469
  {
469
470
  header: n.create_budgets_title,
470
471
  icon: "bubble_chart",
471
472
  iconColor: "#1A1A1A",
472
- onClick: (_) => {
473
- _ === "primary" ? y() : i();
473
+ onClick: (C) => {
474
+ C === "primary" ? b() : i();
474
475
  },
475
476
  primaryButton: n.empty_state_primary_button,
476
477
  secondaryButton: t ? void 0 : n.empty_state_secondary_button,
@@ -478,14 +479,14 @@ const Tt = ({
478
479
  sx: {
479
480
  width: t ? "100%" : { sm: 432 },
480
481
  height: t ? "100%" : { sm: 468 },
481
- mt: g ? 0 : 50,
482
+ mt: d ? 0 : 50,
482
483
  ".buttons-footer": {
483
484
  width: 208,
484
485
  height: 100,
485
- ...g && { mt: 24, button: { height: "max-content" } }
486
+ ...d && { mt: 24, button: { height: "max-content" } }
486
487
  },
487
488
  padding: t ? 4 : 0,
488
- ...g && { justifyContent: "center", svg: { height: 32, width: 32 } }
489
+ ...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
489
490
  }
490
491
  }
491
492
  ) });
@@ -499,41 +500,41 @@ const Tt = ({
499
500
  shouldShowZeroState: a,
500
501
  unavailableWidth: n = 24
501
502
  }) => {
502
- const { onEvent: r } = V(), { setSelectedBudget: c } = D(), { isLoadingCategoryTotals: g } = z(), { isInitialized: d } = ae(), { accounts: u } = w(), { availableWidth: B } = oe(), { isMobile: h } = ce(), [f, p] = l.useState(!1), C = l.useMemo(() => B - n, [B]), y = (v) => {
503
- c(v), r(L.BUDGETS_CLICK_BUDGET_CATEGORY, {
503
+ const { onEvent: r } = X(), { setSelectedBudget: c } = D(), { isLoadingCategoryTotals: d } = U(), { isInitialized: m } = oe(), { accounts: u } = w(), { availableWidth: _ } = ne(), { isMobile: f } = ie(), [h, p] = l.useState(!1), S = l.useMemo(() => _ - n, [_]), b = (v) => {
504
+ c(v), r(k.BUDGETS_CLICK_BUDGET_CATEGORY, {
504
505
  budget_category: v.category.name,
505
506
  click_type: "bubble"
506
507
  });
507
- }, _ = () => {
508
- p(!0), r(L.ACCOUNTS_CLICK_CONNECT);
508
+ }, C = () => {
509
+ p(!0), r(k.ACCOUNTS_CLICK_CONNECT);
509
510
  };
510
- return g ? /* @__PURE__ */ e(S, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(C), children: /* @__PURE__ */ e(j, {}) }) : /* @__PURE__ */ m(
511
+ return d ? /* @__PURE__ */ e(B, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(S), children: /* @__PURE__ */ e(z, {}) }) : /* @__PURE__ */ g(
511
512
  W,
512
513
  {
513
- ml: a || h ? 0 : 24,
514
+ ml: a || f ? 0 : 24,
514
515
  sx: { alignSelf: "center", ...s && { height: "100%" } },
515
516
  children: [
516
- a || !d ? /* @__PURE__ */ e(
517
- Dt,
517
+ a || !m ? /* @__PURE__ */ e(
518
+ wt,
518
519
  {
519
520
  createBudgetOnClick: t,
520
521
  isMiniWidget: s,
521
- onConnectAccountsClick: _
522
+ onConnectAccountsClick: C
522
523
  }
523
524
  ) : /* @__PURE__ */ e(
524
- wt,
525
+ Tt,
525
526
  {
526
527
  height: o,
527
528
  isDraggable: i,
528
- onClick: y,
529
- width: C
529
+ onClick: b,
530
+ width: S
530
531
  }
531
532
  ),
532
533
  /* @__PURE__ */ e(
533
- Xe,
534
+ Ke,
534
535
  {
535
536
  onClose: () => p(!1),
536
- showConnectionsWidget: f,
537
+ showConnectionsWidget: h,
537
538
  title: u.manage_connections
538
539
  }
539
540
  )
@@ -541,13 +542,13 @@ const Tt = ({
541
542
  }
542
543
  );
543
544
  }
544
- ), It = ({
545
+ ), Dt = ({
545
546
  budgetsCopy: t,
546
547
  difference: o,
547
548
  handleAddClick: i,
548
549
  shouldShowZeroState: s
549
550
  }) => {
550
- const { availableHeight: a = 0 } = oe(), n = l.useRef(null);
551
+ const { availableHeight: a = 0 } = ne(), n = l.useRef(null);
551
552
  l.useEffect(() => {
552
553
  a > 0 && n.current === null && (n.current = a);
553
554
  }, [a]);
@@ -555,7 +556,7 @@ const Tt = ({
555
556
  const c = n.current ?? a;
556
557
  return c > 0 ? Math.round(Math.max(120, Math.min(450, c * 0.8))) - 40 : 450;
557
558
  }, [a]);
558
- return /* @__PURE__ */ m(S, { sx: { height: "100%", justifyContent: "space-between" }, children: [
559
+ return /* @__PURE__ */ g(B, { sx: { height: "100%", justifyContent: "space-between" }, children: [
559
560
  /* @__PURE__ */ e(
560
561
  Le,
561
562
  {
@@ -565,25 +566,28 @@ const Tt = ({
565
566
  shouldShowZeroState: s
566
567
  }
567
568
  ),
568
- !s && /* @__PURE__ */ m(W, { ml: 16, children: [
569
- /* @__PURE__ */ e(b, { bold: !0, color: o < 0 ? "error.main" : "success.main", children: T(Math.abs(o), "0,0") }),
570
- /* @__PURE__ */ e(b, { children: o < 0 ? t.overspent_in_budgets : t.left_in_budgets })
569
+ !s && /* @__PURE__ */ g(W, { ml: 16, children: [
570
+ /* @__PURE__ */ e(y, { bold: !0, color: o < 0 ? "error.main" : "success.main", children: T(Math.abs(o), "0,0") }),
571
+ /* @__PURE__ */ e(y, { children: o < 0 ? t.overspent_in_budgets : t.left_in_budgets })
571
572
  ] })
572
573
  ] });
573
- }, Et = (t) => {
574
- const o = te(), { onEvent: i } = V(), { detailedBudgets: s, isDataLoaded: a, loadBudgetData: n, setTheme: r } = D(), { budgets: c, common: g } = w(), { isCopyLoaded: d, isInitialized: u, selectedAccounts: B } = ae(), { reloadCategoryTotals: h } = z(), f = qe(), p = s.length === 0, [C, y] = l.useState(!1), _ = () => {
575
- y(!0), i(L.BUDGETS_CLICK_ADD);
576
- }, v = () => y(!1);
577
- return l.useEffect(() => {
574
+ }, It = (t) => {
575
+ const o = ee(), { onEvent: i } = X(), { detailedBudgets: s, isDataLoaded: a, loadBudgetData: n, setTheme: r } = D(), { budgets: c, common: d } = w(), { isCopyLoaded: m, isInitialized: u, selectedAccounts: _ } = oe(), { reloadCategoryTotals: f } = U(), h = Ze(), p = s.length === 0, [S, b] = l.useState(!1), C = () => {
576
+ b(!0), i(k.BUDGETS_CLICK_ADD);
577
+ }, v = () => b(!1);
578
+ return we({
579
+ widgetName: "BubbleBudgetsMiniWidget",
580
+ isLoaded: a
581
+ }), l.useEffect(() => {
578
582
  r(o);
579
583
  }, [o]), l.useEffect(() => {
580
- u && !a && h(B, Q(/* @__PURE__ */ new Date()), pe(/* @__PURE__ */ new Date())).then(
584
+ u && !a && f(_, J(/* @__PURE__ */ new Date()), ge(/* @__PURE__ */ new Date())).then(
581
585
  () => {
582
586
  n().finally();
583
587
  }
584
588
  );
585
- }, [u, B]), d ? /* @__PURE__ */ m(
586
- Je,
589
+ }, [u, _]), m ? /* @__PURE__ */ g(
590
+ qe,
587
591
  {
588
592
  contentStyles: { height: "calc(100% - 66px)", ":last-child": { pb: 0 } },
589
593
  primaryCtaLabel: p ? c.get_started_cta : c.details_cta,
@@ -592,28 +596,28 @@ const Tt = ({
592
596
  ...t,
593
597
  children: [
594
598
  a ? /* @__PURE__ */ e(
595
- It,
599
+ Dt,
596
600
  {
597
601
  budgetsCopy: c,
598
- difference: f,
599
- handleAddClick: _,
602
+ difference: h,
603
+ handleAddClick: C,
600
604
  shouldShowZeroState: p
601
605
  }
602
- ) : /* @__PURE__ */ e(j, {}),
606
+ ) : /* @__PURE__ */ e(z, {}),
603
607
  /* @__PURE__ */ e(
604
- k,
608
+ N,
605
609
  {
606
- ariaLabelClose: g.close_aria,
607
- isOpen: C,
608
- onClose: () => y(!1),
610
+ ariaLabelClose: d.close_aria,
611
+ isOpen: S,
612
+ onClose: () => b(!1),
609
613
  title: c.add_new_title,
610
614
  children: /* @__PURE__ */ e(Oe, { onRecalculateBudgets: v })
611
615
  }
612
616
  )
613
617
  ]
614
618
  }
615
- ) : /* @__PURE__ */ e(j, {});
616
- }, $n = I(Et), ke = ({ budget: t }) => {
619
+ ) : /* @__PURE__ */ e(z, {});
620
+ }, Nn = I(It), ke = ({ budget: t }) => {
617
621
  const {
618
622
  amount: o,
619
623
  budgetColors: { background: i },
@@ -627,20 +631,20 @@ const Tt = ({
627
631
  percentage: `${n}%`
628
632
  }
629
633
  ];
630
- return /* @__PURE__ */ e(fe, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(be, { children: /* @__PURE__ */ m(S, { alignItems: "center", gap: 16, children: [
631
- /* @__PURE__ */ e(K, { categoryGuid: a, size: 56 }),
634
+ return /* @__PURE__ */ e(he, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ g(B, { alignItems: "center", gap: 16, children: [
635
+ /* @__PURE__ */ e(H, { categoryGuid: a, size: 56 }),
632
636
  /* @__PURE__ */ e(Ue, { children: `${T(r, "0,0")} / ${T(o, "0,0")}` }),
633
- /* @__PURE__ */ e(b, { bold: !0, variant: "XSmall", children: s }),
634
- /* @__PURE__ */ e(he, { data: c, height: 10 })
637
+ /* @__PURE__ */ e(y, { bold: !0, variant: "XSmall", children: s }),
638
+ /* @__PURE__ */ e(pe, { data: c, height: 10 })
635
639
  ] }) }) });
636
- }, Ot = I(() => {
640
+ }, Et = I(() => {
637
641
  const { budgets: t } = w();
638
- return /* @__PURE__ */ m(S, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
639
- /* @__PURE__ */ e(N, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
640
- /* @__PURE__ */ e(b, { bold: !0, color: "secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
641
- /* @__PURE__ */ e(b, { color: "text.secondary", variant: "XSmall", children: t.zero_state_no_sub_budgets_description })
642
+ return /* @__PURE__ */ g(B, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
643
+ /* @__PURE__ */ e(P, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
644
+ /* @__PURE__ */ e(y, { bold: !0, color: "secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
645
+ /* @__PURE__ */ e(y, { color: "text.secondary", variant: "XSmall", children: t.zero_state_no_sub_budgets_description })
642
646
  ] });
643
- }), Mt = I(({ budget: t }) => {
647
+ }), Ot = I(({ budget: t }) => {
644
648
  const {
645
649
  amount: o,
646
650
  budgetColors: { background: i },
@@ -648,219 +652,219 @@ const Tt = ({
648
652
  percentage: a,
649
653
  transaction_total: n
650
654
  } = t, { setSelectedSubBudget: r } = D();
651
- return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ m(Z, { onClick: () => r(t), children: [
652
- /* @__PURE__ */ e(ie, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ie, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(K, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
655
+ return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ g(Y, { onClick: () => r(t), children: [
656
+ /* @__PURE__ */ e(se, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ie, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
653
657
  /* @__PURE__ */ e(
654
- q,
658
+ Z,
655
659
  {
656
- primary: /* @__PURE__ */ e(S, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(b, { bold: !0, variant: "Body", children: t.category.name }) }),
657
- secondary: /* @__PURE__ */ e(S, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(b, { fontWeight: 400, variant: "Body", children: `
660
+ primary: /* @__PURE__ */ e(B, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: t.category.name }) }),
661
+ secondary: /* @__PURE__ */ e(B, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(y, { fontWeight: 400, variant: "Body", children: `
658
662
  ${T(n, "0,0")} /
659
663
  ${T(o, "0,0")}
660
664
  ` }) })
661
665
  }
662
666
  )
663
667
  ] }) });
664
- }), Rt = I(({ category: t, parentBudget: o }) => {
665
- const { budgets: i, common: s } = w(), { setExpandedGuid: a, setOnSelect: n } = rt(), { addBudget: r } = D(), [c, g] = l.useState(!1), [d, u] = l.useState(!1), [B, h] = l.useState(""), [f, p] = l.useState(void 0);
668
+ }), Mt = I(({ category: t, parentBudget: o }) => {
669
+ const { budgets: i, common: s } = w(), { setExpandedGuid: a, setOnSelect: n } = at(), { addBudget: r } = D(), [c, d] = l.useState(!1), [m, u] = l.useState(!1), [_, f] = l.useState(""), [h, p] = l.useState(void 0);
666
670
  l.useEffect(() => {
667
- n((_) => {
668
- const v = t.subCategories.find((A) => A.guid === _);
669
- v && (p(v), h(`${v.currentAmount === 0 ? "" : v.currentAmount}`), u(!0));
671
+ n((C) => {
672
+ const v = t.subCategories.find((A) => A.guid === C);
673
+ v && (p(v), f(`${v.currentAmount === 0 ? "" : v.currentAmount}`), u(!0));
670
674
  });
671
675
  }, []);
672
- const C = () => {
673
- a(t.guid), g(!0);
674
- }, y = async () => {
675
- f && Number(B) > 0 && (await r(f, Number(B), o.guid), u(!1), g(!1), p(void 0));
676
+ const S = () => {
677
+ a(t.guid), d(!0);
678
+ }, b = async () => {
679
+ h && Number(_) > 0 && (await r(h, Number(_), o.guid), u(!1), d(!1), p(void 0));
676
680
  };
677
- return /* @__PURE__ */ m(W, { children: [
678
- /* @__PURE__ */ e(Y, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(Z, { onClick: C, children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ m(S, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
679
- /* @__PURE__ */ m(S, { alignItems: "center", direction: "row", gap: 8, children: [
680
- /* @__PURE__ */ e(N, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
681
- /* @__PURE__ */ e(b, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
681
+ return /* @__PURE__ */ g(W, { children: [
682
+ /* @__PURE__ */ e(V, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(Y, { onClick: S, children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ g(B, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
683
+ /* @__PURE__ */ g(B, { alignItems: "center", direction: "row", gap: 8, children: [
684
+ /* @__PURE__ */ e(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
685
+ /* @__PURE__ */ e(y, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
682
686
  ] }),
683
- /* @__PURE__ */ e(N, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
687
+ /* @__PURE__ */ e(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
684
688
  ] }) }) }) }),
685
- /* @__PURE__ */ e(se, {}),
689
+ /* @__PURE__ */ e(re, {}),
686
690
  /* @__PURE__ */ e(
687
- k,
691
+ N,
688
692
  {
689
693
  ariaLabelClose: s.close_aria,
690
694
  isOpen: c,
691
- onClose: () => g(!1),
695
+ onClose: () => d(!1),
692
696
  title: i.add_sub_budget_title,
693
- children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(st, { category: t, subCategories: t.subCategories }) })
697
+ children: /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(rt, { category: t, subCategories: t.subCategories }) })
694
698
  }
695
699
  ),
696
700
  /* @__PURE__ */ e(
697
- G,
701
+ j,
698
702
  {
699
703
  copy: { close_aria: s.close_aria, title: i.add_title },
700
- disablePrimaryButton: Number(B) <= 0,
701
- isOpen: d,
704
+ disablePrimaryButton: Number(_) <= 0,
705
+ isOpen: m,
702
706
  onClose: () => u(!1),
703
- onPrimaryAction: y,
707
+ onPrimaryAction: b,
704
708
  primaryText: i.add_save_button,
705
709
  children: /* @__PURE__ */ e(
706
- le,
710
+ ce,
707
711
  {
708
- amount: B,
709
- categoryName: f?.name || "",
710
- onAmountChanged: h
712
+ amount: _,
713
+ categoryName: h?.name || "",
714
+ onAmountChanged: f
711
715
  }
712
716
  )
713
717
  }
714
718
  )
715
719
  ] });
716
- }), Lt = I(({ budget: t }) => {
717
- const { category: o, subBudgets: i } = t, { budgets: s, common: a } = w(), { deleteBudget: n, selectedSubBudget: r, setSelectedSubBudget: c, updateBudget: g } = D(), { filter: d, setFilter: u } = re(), [B, h] = l.useState(!1), [f, p] = l.useState(!1), [C, y] = l.useState("");
720
+ }), Rt = I(({ budget: t }) => {
721
+ const { category: o, subBudgets: i } = t, { budgets: s, common: a } = w(), { deleteBudget: n, selectedSubBudget: r, setSelectedSubBudget: c, updateBudget: d } = D(), { filter: m, setFilter: u } = ae(), [_, f] = l.useState(!1), [h, p] = l.useState(!1), [S, b] = l.useState("");
718
722
  l.useEffect(() => {
719
- r && (y(`${r.amount}`), u({
720
- ...d,
723
+ r && (b(`${r.amount}`), u({
724
+ ...m,
721
725
  custom: (x) => x.category_guid === r.category_guid
722
726
  }));
723
727
  }, [r]);
724
- const _ = async () => {
725
- r && await g({
728
+ const C = async () => {
729
+ r && await d({
726
730
  ...r,
727
- amount: Number(C)
731
+ amount: Number(S)
728
732
  });
729
733
  }, v = async () => {
730
734
  r && await n(r.guid), p(!1), A();
731
735
  }, A = () => {
732
736
  u({
733
- ...d,
737
+ ...m,
734
738
  custom: (x) => x.category_guid === t.category_guid || x.top_level_category_guid === t.category_guid
735
739
  }), c(void 0);
736
740
  };
737
- return /* @__PURE__ */ m(l.Fragment, { children: [
738
- /* @__PURE__ */ m(X, { sx: { bgcolor: "background.paper" }, children: [
739
- i.length === 0 ? /* @__PURE__ */ e(Ot, {}) : i.map((x) => /* @__PURE__ */ m(l.Fragment, { children: [
740
- /* @__PURE__ */ e(Mt, { budget: x }),
741
- /* @__PURE__ */ e(se, {})
741
+ return /* @__PURE__ */ g(l.Fragment, { children: [
742
+ /* @__PURE__ */ g(K, { sx: { bgcolor: "background.paper" }, children: [
743
+ i.length === 0 ? /* @__PURE__ */ e(Et, {}) : i.map((x) => /* @__PURE__ */ g(l.Fragment, { children: [
744
+ /* @__PURE__ */ e(Ot, { budget: x }),
745
+ /* @__PURE__ */ e(re, {})
742
746
  ] }, x.guid)),
743
- /* @__PURE__ */ e(Rt, { category: o, parentBudget: t })
747
+ /* @__PURE__ */ e(Mt, { category: o, parentBudget: t })
744
748
  ] }),
745
749
  /* @__PURE__ */ e(
746
- k,
750
+ N,
747
751
  {
748
752
  ariaLabelClose: a.close_aria,
749
753
  isOpen: !!r,
750
754
  onClose: A,
751
- onPrimaryAction: () => h(!0),
755
+ onPrimaryAction: () => f(!0),
752
756
  onSecondaryAction: () => p(!0),
753
757
  primaryText: s.details_edit_button,
754
758
  secondaryText: s.details_delete_button,
755
759
  title: s.details_title,
756
- children: r && /* @__PURE__ */ m(S, { gap: 24, children: [
760
+ children: r && /* @__PURE__ */ g(B, { gap: 24, children: [
757
761
  /* @__PURE__ */ e(ke, { budget: r }),
758
762
  /* @__PURE__ */ e(De, { height: "100%" })
759
763
  ] })
760
764
  }
761
765
  ),
762
- r && /* @__PURE__ */ m(l.Fragment, { children: [
766
+ r && /* @__PURE__ */ g(l.Fragment, { children: [
763
767
  /* @__PURE__ */ e(
764
- G,
768
+ j,
765
769
  {
766
770
  copy: { close_aria: a.close_aria, title: s.details_edit_title },
767
- disablePrimaryButton: Number(C) <= 0,
768
- isOpen: B,
769
- onClose: () => h(!1),
770
- onPrimaryAction: _,
771
+ disablePrimaryButton: Number(S) <= 0,
772
+ isOpen: _,
773
+ onClose: () => f(!1),
774
+ onPrimaryAction: C,
771
775
  primaryText: s.edit_save_button,
772
776
  children: /* @__PURE__ */ e(
773
- le,
777
+ ce,
774
778
  {
775
- amount: C,
779
+ amount: S,
776
780
  categoryName: r.category.name,
777
- onAmountChanged: y
781
+ onAmountChanged: b
778
782
  }
779
783
  )
780
784
  }
781
785
  ),
782
786
  /* @__PURE__ */ e(
783
- G,
787
+ j,
784
788
  {
785
789
  copy: { close_aria: a.close_aria, title: s.delete_title },
786
- isOpen: f,
790
+ isOpen: h,
787
791
  onClose: () => p(!1),
788
792
  onPrimaryAction: v,
789
793
  primaryColor: "error",
790
794
  primaryText: "Delete",
791
795
  secondaryColor: "secondary",
792
- children: /* @__PURE__ */ e(b, { variant: "Paragraph", children: R(s.delete_description, r.category.name) })
796
+ children: /* @__PURE__ */ e(y, { variant: "Paragraph", children: R(s.delete_description, r.category.name) })
793
797
  }
794
798
  )
795
799
  ] })
796
800
  ] });
797
- }), kt = I(({ budget: t }) => {
798
- const { is_mobile_webview: o } = Fe(), { setAlert: i } = D(), { budgets: s, common: a, transactions: n } = w(), { isDesktop: r, isSmallTablet: c, isTablet: g } = ce(), {
799
- sortedTransactions: d,
801
+ }), Lt = I(({ budget: t }) => {
802
+ const { is_mobile_webview: o } = Fe(), { setAlert: i } = D(), { budgets: s, common: a, transactions: n } = w(), { isDesktop: r, isSmallTablet: c, isTablet: d } = ie(), {
803
+ sortedTransactions: m,
800
804
  sortedTransactionsWithSplits: u,
801
- tags: B
802
- } = re(), [h, f] = l.useState(0), [p, C] = l.useState(""), y = l.useMemo(
803
- () => d.find((x) => x.guid === p),
804
- [p, d]
805
- ), _ = (x, E) => {
806
- f(E);
805
+ tags: _
806
+ } = ae(), [f, h] = l.useState(0), [p, S] = l.useState(""), b = l.useMemo(
807
+ () => m.find((x) => x.guid === p),
808
+ [p, m]
809
+ ), C = (x, E) => {
810
+ h(E);
807
811
  }, v = () => {
808
- ot(u, B), i(s.alert_csv_downloaded);
809
- }, A = d.length > 0 && !o && (r || g && !c);
810
- return /* @__PURE__ */ m(S, { gap: 24, children: [
812
+ nt(u, _), i(s.alert_csv_downloaded);
813
+ }, A = m.length > 0 && !o && (r || d && !c);
814
+ return /* @__PURE__ */ g(B, { gap: 24, children: [
811
815
  /* @__PURE__ */ e(ke, { budget: t }),
812
- /* @__PURE__ */ m(S, { children: [
813
- /* @__PURE__ */ m(
814
- nt,
816
+ /* @__PURE__ */ g(B, { children: [
817
+ /* @__PURE__ */ g(
818
+ tt,
815
819
  {
816
- onChange: _,
820
+ onChange: C,
817
821
  sx: { width: "100%" },
818
822
  textColor: "primary",
819
- value: h,
823
+ value: f,
820
824
  variant: "fullWidth",
821
825
  children: [
822
- /* @__PURE__ */ e(Ce, { label: s.details_transactions_tab }),
823
- /* @__PURE__ */ e(Ce, { label: s.details_subbudgets_tab })
826
+ /* @__PURE__ */ e(_e, { label: s.details_transactions_tab }),
827
+ /* @__PURE__ */ e(_e, { label: s.details_subbudgets_tab })
824
828
  ]
825
829
  }
826
830
  ),
827
- h === 0 && /* @__PURE__ */ m(S, { children: [
828
- A && /* @__PURE__ */ e(S, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ e(
829
- we,
831
+ f === 0 && /* @__PURE__ */ g(B, { children: [
832
+ A && /* @__PURE__ */ e(B, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ e(
833
+ Te,
830
834
  {
831
835
  onClick: v,
832
- startIcon: /* @__PURE__ */ e(N, { name: "ios_share" }),
836
+ startIcon: /* @__PURE__ */ e(P, { name: "ios_share" }),
833
837
  variant: "text",
834
838
  children: n.export_csv_btn
835
839
  }
836
840
  ) }),
837
- /* @__PURE__ */ e(De, { height: "100%", onClick: C })
841
+ /* @__PURE__ */ e(De, { height: "100%", onClick: S })
838
842
  ] }),
839
- h === 1 && /* @__PURE__ */ e(Lt, { budget: t }),
843
+ f === 1 && /* @__PURE__ */ e(Rt, { budget: t }),
840
844
  /* @__PURE__ */ e(
841
- k,
845
+ N,
842
846
  {
843
847
  ariaLabelClose: a.close_aria,
844
- isOpen: !!y,
845
- onClose: () => C(""),
848
+ isOpen: !!b,
849
+ onClose: () => S(""),
846
850
  title: s.details_transaction_drawer,
847
- children: y && /* @__PURE__ */ e(at, { transaction: y })
851
+ children: b && /* @__PURE__ */ e(ot, { transaction: b })
848
852
  }
849
853
  )
850
854
  ] })
851
855
  ] });
852
- }), $t = I(() => {
853
- const { selectedAccountGuids: t } = ae(), { budgets: o, common: i } = w(), {
856
+ }), kt = I(() => {
857
+ const { selectedAccountGuids: t } = oe(), { budgets: o, common: i } = w(), {
854
858
  dateRange: s,
855
859
  deleteBudget: a,
856
860
  selectedBudget: n,
857
861
  selectedSubBudget: r,
858
862
  setAlert: c,
859
- setSelectedBudget: g,
860
- updateBudget: d
861
- } = D(), { setFilter: u } = re(), [B, h] = l.useState(!1), [f, p] = l.useState(!1), [C, y] = l.useState(!1), [_, v] = l.useState("");
863
+ setSelectedBudget: d,
864
+ updateBudget: m
865
+ } = D(), { setFilter: u } = ae(), [_, f] = l.useState(!1), [h, p] = l.useState(!1), [S, b] = l.useState(!1), [C, v] = l.useState("");
862
866
  l.useEffect(() => {
863
- n && !r && (v(`${n.amount}`), h(!0), u({
867
+ n && !r && (v(`${n.amount}`), f(!0), u({
864
868
  accounts: t,
865
869
  dateRange: s,
866
870
  custom: (M) => M.category_guid === n.category_guid || M.top_level_category_guid === n.category_guid,
@@ -868,48 +872,48 @@ const Tt = ({
868
872
  }));
869
873
  }, [n]);
870
874
  const A = async () => {
871
- n && (await d({
875
+ n && (await m({
872
876
  ...n,
873
- amount: Number(_),
874
- percentage: n.category.totalAmount / Number(_) * 100
877
+ amount: Number(C),
878
+ percentage: n.category.totalAmount / Number(C) * 100
875
879
  }), c(R(o.alert_budget_updated, n.category.name)));
876
880
  }, x = async () => {
877
- n && (await a(n.guid), c(R(o.alert_budget_deleted, n.category.name))), y(!1), E();
881
+ n && (await a(n.guid), c(R(o.alert_budget_deleted, n.category.name))), b(!1), E();
878
882
  }, E = () => {
879
- h(!1), setTimeout(() => {
880
- g(void 0);
883
+ f(!1), setTimeout(() => {
884
+ d(void 0);
881
885
  }, 250);
882
886
  };
883
887
  if (n)
884
- return /* @__PURE__ */ m(l.Fragment, { children: [
888
+ return /* @__PURE__ */ g(l.Fragment, { children: [
885
889
  /* @__PURE__ */ e(
886
- k,
890
+ N,
887
891
  {
888
892
  ariaLabelClose: i.close_aria,
889
- isOpen: B,
893
+ isOpen: _,
890
894
  onClose: E,
891
895
  onPrimaryAction: () => p(!0),
892
- onSecondaryAction: () => y(!0),
896
+ onSecondaryAction: () => b(!0),
893
897
  primaryText: o.details_edit_button,
894
898
  secondaryColor: "error",
895
899
  secondaryText: o.details_delete_button,
896
900
  title: o.details_title,
897
- children: /* @__PURE__ */ e(kt, { budget: n })
901
+ children: /* @__PURE__ */ e(Lt, { budget: n })
898
902
  }
899
903
  ),
900
904
  /* @__PURE__ */ e(
901
- G,
905
+ j,
902
906
  {
903
907
  copy: { close_aria: i.close_aria, title: o.details_edit_title },
904
- disablePrimaryButton: Number(_) <= 0,
905
- isOpen: f,
908
+ disablePrimaryButton: Number(C) <= 0,
909
+ isOpen: h,
906
910
  onClose: () => p(!1),
907
911
  onPrimaryAction: A,
908
912
  primaryText: o.edit_save_button,
909
913
  children: /* @__PURE__ */ e(
910
- le,
914
+ ce,
911
915
  {
912
- amount: _,
916
+ amount: C,
913
917
  categoryName: n.category.name,
914
918
  onAmountChanged: v
915
919
  }
@@ -917,16 +921,16 @@ const Tt = ({
917
921
  }
918
922
  ),
919
923
  /* @__PURE__ */ e(
920
- G,
924
+ j,
921
925
  {
922
926
  copy: { close_aria: i.close_aria, title: o.delete_title },
923
- isOpen: C,
924
- onClose: () => y(!1),
927
+ isOpen: S,
928
+ onClose: () => b(!1),
925
929
  onPrimaryAction: x,
926
930
  primaryColor: "error",
927
931
  primaryText: o.details_delete_button,
928
932
  secondaryColor: "secondary",
929
- children: /* @__PURE__ */ e(b, { variant: "Paragraph", children: R(o.delete_description, n.category.name) })
933
+ children: /* @__PURE__ */ e(y, { variant: "Paragraph", children: R(o.delete_description, n.category.name) })
930
934
  }
931
935
  )
932
936
  ] });
@@ -937,46 +941,46 @@ const Tt = ({
937
941
  category_guid: n,
938
942
  description: r,
939
943
  percentage: c,
940
- subBudgets: g,
941
- transaction_total: d
944
+ subBudgets: d,
945
+ transaction_total: m
942
946
  } = t;
943
- return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ m(Z, { onClick: () => o?.(t), children: [
944
- /* @__PURE__ */ e(ie, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ie, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(K, { categoryGuid: n, variant: "basic" }) }) }),
947
+ return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ g(Y, { onClick: () => o?.(t), children: [
948
+ /* @__PURE__ */ e(se, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(Ie, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: n, variant: "basic" }) }) }),
945
949
  /* @__PURE__ */ e(
946
- q,
950
+ Z,
947
951
  {
948
- primary: /* @__PURE__ */ m(S, { component: "span", direction: "row", justifyContent: "space-between", children: [
949
- /* @__PURE__ */ e(b, { bold: !0, variant: "Body", children: t.category.name }),
950
- /* @__PURE__ */ e(b, { fontWeight: 400, variant: "Body", children: `
951
- ${T(d, "0,0")} /
952
+ primary: /* @__PURE__ */ g(B, { component: "span", direction: "row", justifyContent: "space-between", children: [
953
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: t.category.name }),
954
+ /* @__PURE__ */ e(y, { fontWeight: 400, variant: "Body", children: `
955
+ ${T(m, "0,0")} /
952
956
  ${T(i, "0,0")}
953
957
  ` })
954
958
  ] }),
955
- secondary: /* @__PURE__ */ m(S, { component: "span", direction: "row", justifyContent: "space-between", children: [
956
- /* @__PURE__ */ e(b, { variant: "XSmall", children: `${g.length} Sub-budgets` }),
957
- /* @__PURE__ */ e(b, { bold: c > 100, color: a, variant: "XSmall", children: r })
959
+ secondary: /* @__PURE__ */ g(B, { component: "span", direction: "row", justifyContent: "space-between", children: [
960
+ /* @__PURE__ */ e(y, { variant: "XSmall", children: `${d.length} Sub-budgets` }),
961
+ /* @__PURE__ */ e(y, { bold: c > 100, color: a, variant: "XSmall", children: r })
958
962
  ] })
959
963
  }
960
964
  )
961
965
  ] }) });
962
- }, Pt = I(() => {
963
- const { onEvent: t } = V(), { budgets: o } = w(), { detailedBudgets: i, setSelectedBudget: s } = D(), a = (n) => {
964
- s(n), t(L.BUDGETS_CLICK_BUDGET_CATEGORY, {
966
+ }, $t = I(() => {
967
+ const { onEvent: t } = X(), { budgets: o } = w(), { detailedBudgets: i, setSelectedBudget: s } = D(), a = (n) => {
968
+ s(n), t(k.BUDGETS_CLICK_BUDGET_CATEGORY, {
965
969
  budget_category: n.category.name,
966
970
  click_type: "list"
967
971
  });
968
972
  };
969
- return /* @__PURE__ */ m(fe, { elevation: 2, children: [
970
- /* @__PURE__ */ e(Ee, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Ae, { children: o.budget_categories_title }) }),
971
- /* @__PURE__ */ e(be, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ e(X, { children: i.map((n) => /* @__PURE__ */ m(l.Fragment, { children: [
973
+ return /* @__PURE__ */ g(he, { elevation: 2, children: [
974
+ /* @__PURE__ */ e(Ee, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(ve, { children: o.budget_categories_title }) }),
975
+ /* @__PURE__ */ e(fe, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ e(K, { children: i.map((n) => /* @__PURE__ */ g(l.Fragment, { children: [
972
976
  /* @__PURE__ */ e(Nt, { budget: n, onClick: a }),
973
- /* @__PURE__ */ e(se, {})
977
+ /* @__PURE__ */ e(re, {})
974
978
  ] }, n.guid)) }) })
975
979
  ] });
976
- }), Gt = I(() => {
977
- const t = te(), { onEvent: o } = V(), { visibleAccounts: i } = Te(), { budgets: s, common: a, recurring: n } = w(), { incomeCategories: r, spendCategories: c } = z(), { detailedBudgets: g, totalBudgeted: d } = D(), { incomeTotal: u } = ne(), { setFilter: B } = re(), [h, f] = l.useState(!1), [p, C] = l.useMemo(() => {
978
- const A = c.reduce(($, U) => $ + U.totalAmount, 0);
979
- let x = A / d;
980
+ }), Pt = I(() => {
981
+ const t = ee(), { onEvent: o } = X(), { visibleAccounts: i } = Ae(), { budgets: s, common: a, recurring: n } = w(), { incomeCategories: r, spendCategories: c } = U(), { detailedBudgets: d, totalBudgeted: m } = D(), { incomeTotal: u } = te(), { setFilter: _ } = ae(), [f, h] = l.useState(!1), [p, S] = l.useMemo(() => {
982
+ const A = c.reduce(($, F) => $ + F.totalAmount, 0);
983
+ let x = A / m;
980
984
  x > 1 && (x = 1);
981
985
  let E = t.palette.success.main;
982
986
  x > 0.8 && x < 1 ? E = t.palette.warning.main : x >= 1 && (E = t.palette.error.main);
@@ -987,7 +991,7 @@ const Tt = ({
987
991
  }
988
992
  ];
989
993
  return [A, M];
990
- }, [g, c]), [y, _] = l.useMemo(() => {
994
+ }, [d, c]), [b, C] = l.useMemo(() => {
991
995
  const A = Math.abs(
992
996
  r.reduce((M, $) => M + $.totalAmount, 0)
993
997
  );
@@ -1001,168 +1005,169 @@ const Tt = ({
1001
1005
  ];
1002
1006
  return [A, E];
1003
1007
  }, [r, u]), v = () => {
1004
- B({
1008
+ _({
1005
1009
  accounts: i.map((A) => A.guid),
1006
1010
  dateRange: {
1007
- start: it(/* @__PURE__ */ new Date(), 90),
1011
+ start: st(/* @__PURE__ */ new Date(), 90),
1008
1012
  end: /* @__PURE__ */ new Date()
1009
1013
  }
1010
- }), f(!0), o(L.BUDGETS_CLICK_EDIT_INCOME);
1014
+ }), h(!0), o(k.BUDGETS_CLICK_EDIT_INCOME);
1011
1015
  };
1012
- return /* @__PURE__ */ m(fe, { elevation: 2, sx: { overflow: "visible" }, children: [
1013
- /* @__PURE__ */ e(Ee, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Ae, { children: s.overview_title }) }),
1014
- /* @__PURE__ */ e(be, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ m(S, { gap: 24, children: [
1015
- /* @__PURE__ */ m(S, { gap: 8, children: [
1016
- /* @__PURE__ */ e(b, { bold: !0, sx: { mb: 8 }, variant: "Body", children: s.spending_title }),
1017
- /* @__PURE__ */ e(he, { data: C, height: 16 }),
1018
- /* @__PURE__ */ e(b, { variant: "Small", children: R(
1016
+ return /* @__PURE__ */ g(he, { elevation: 2, sx: { overflow: "visible" }, children: [
1017
+ /* @__PURE__ */ e(Ee, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(ve, { children: s.overview_title }) }),
1018
+ /* @__PURE__ */ e(fe, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ g(B, { gap: 24, children: [
1019
+ /* @__PURE__ */ g(B, { gap: 8, children: [
1020
+ /* @__PURE__ */ e(y, { bold: !0, sx: { mb: 8 }, variant: "Body", children: s.spending_title }),
1021
+ /* @__PURE__ */ e(pe, { data: S, height: 16 }),
1022
+ /* @__PURE__ */ e(y, { variant: "Small", children: R(
1019
1023
  s.spending_description,
1020
1024
  T(p, "0,0"),
1021
- T(d, "0,0")
1025
+ T(m, "0,0")
1022
1026
  ) })
1023
1027
  ] }),
1024
- /* @__PURE__ */ m(S, { gap: 8, children: [
1025
- /* @__PURE__ */ m(S, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
1026
- /* @__PURE__ */ e(b, { bold: !0, variant: "Body", children: s.income_title }),
1028
+ /* @__PURE__ */ g(B, { gap: 8, children: [
1029
+ /* @__PURE__ */ g(B, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
1030
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: s.income_title }),
1027
1031
  /* @__PURE__ */ e(
1028
- ct,
1032
+ it,
1029
1033
  {
1030
1034
  "aria-label": n.manage_income,
1031
1035
  onClick: v,
1032
1036
  sx: { p: 0 },
1033
- children: /* @__PURE__ */ e(N, { color: "primary", name: "edit" })
1037
+ children: /* @__PURE__ */ e(P, { color: "primary", name: "edit" })
1034
1038
  }
1035
1039
  )
1036
1040
  ] }),
1037
- /* @__PURE__ */ e(he, { data: _, height: 16 }),
1038
- /* @__PURE__ */ e(b, { variant: "Small", children: R(
1041
+ /* @__PURE__ */ e(pe, { data: C, height: 16 }),
1042
+ /* @__PURE__ */ e(y, { variant: "Small", children: R(
1039
1043
  s.income_description,
1040
- T(y, "0,0"),
1044
+ T(b, "0,0"),
1041
1045
  T(u, "0,0")
1042
1046
  ) })
1043
1047
  ] })
1044
1048
  ] }) }),
1045
1049
  /* @__PURE__ */ e(
1046
- k,
1050
+ N,
1047
1051
  {
1048
1052
  ariaLabelClose: a.close_aria,
1049
- isOpen: h,
1050
- onClose: () => f(!1),
1053
+ isOpen: f,
1054
+ onClose: () => h(!1),
1051
1055
  title: n.manage_income,
1052
- children: /* @__PURE__ */ e(lt, { forOverview: !0 })
1056
+ children: /* @__PURE__ */ e(ct, { forOverview: !0 })
1053
1057
  }
1054
1058
  )
1055
1059
  ] });
1056
- }), ve = 480, Nn = I(({ onBackClick: t, sx: o }) => {
1057
- const i = te(), { onEvent: s } = V(), { onLoad: a } = He(), { visibleAccounts: n } = Te(), { budgets: r, common: c } = w(), { isCopyLoaded: g, isInitialized: d, selectedAccounts: u, setDisplayedDate: B, setSelectedAccounts: h } = ae(), {
1060
+ }), xe = 480, $n = I(({ onBackClick: t, sx: o }) => {
1061
+ const i = ee(), { onEvent: s } = X(), { visibleAccounts: a } = Ae(), { budgets: n, common: r } = w(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: m, setDisplayedDate: u, setSelectedAccounts: _ } = oe(), {
1058
1062
  alert: f,
1059
- dateRange: p,
1060
- isDataLoaded: C,
1061
- loadBudgetData: y,
1062
- setDateRange: _,
1063
- setAlert: v,
1064
- setTheme: A,
1065
- detailedBudgets: x
1066
- } = D(), { loadRepeatingTransactions: E, setDateRange: M } = ne(), { reloadCategoryTotals: $ } = z(), { isSmallTablet: U, isMobile: de, isSmallMobile: F } = ce(), H = U || de || F, [$e, ue] = l.useState(!1);
1067
- l.useEffect(() => (A(i), h(n), _({ start: Q(J()), end: pe(J()) }), s(L.BUDGETS_VIEW), () => {
1068
- _({ start: Q(J()), end: pe(J()) });
1063
+ dateRange: h,
1064
+ isDataLoaded: p,
1065
+ loadBudgetData: S,
1066
+ setDateRange: b,
1067
+ setAlert: C,
1068
+ setTheme: v,
1069
+ detailedBudgets: A
1070
+ } = D(), { loadRepeatingTransactions: x, setDateRange: E } = te(), { reloadCategoryTotals: M } = U(), { isSmallTablet: $, isMobile: F, isSmallMobile: le } = ie(), L = $ || F || le, [Ne, de] = l.useState(!1);
1071
+ l.useEffect(() => (v(i), _(a), b({ start: J(q()), end: ge(q()) }), s(k.BUDGETS_VIEW), () => {
1072
+ b({ start: J(q()), end: ge(q()) });
1069
1073
  }), []), l.useEffect(() => {
1070
- h(n);
1071
- }, [n]), l.useEffect(() => {
1072
- d && (B(p.start, p.end), $(u, p.start, p.end).finally(), M(p), C || (E().finally(), y().finally(() => {
1073
- a?.("BubbleBudgetsWidget");
1074
- })));
1075
- }, [d, u, p]);
1076
- const Ne = (_e) => {
1077
- _({ start: _e[0] || /* @__PURE__ */ new Date(), end: _e[1] || /* @__PURE__ */ new Date() });
1074
+ _(a);
1075
+ }, [a]), l.useEffect(() => {
1076
+ d && (u(h.start, h.end), M(m, h.start, h.end).finally(), E(h), p || (x().finally(), S().finally()));
1077
+ }, [d, m, h]), we({
1078
+ widgetName: "BubbleBudgetsWidget",
1079
+ isLoaded: p
1080
+ });
1081
+ const $e = (ye) => {
1082
+ b({ start: ye[0] || /* @__PURE__ */ new Date(), end: ye[1] || /* @__PURE__ */ new Date() });
1078
1083
  }, Pe = () => {
1079
- s(L.BUDGETS_CLICK_FILTER);
1080
- }, ye = () => {
1081
- ue(!0), s(L.BUDGETS_CLICK_ADD);
1084
+ s(k.BUDGETS_CLICK_FILTER);
1085
+ }, be = () => {
1086
+ de(!0), s(k.BUDGETS_CLICK_ADD);
1082
1087
  }, Ge = () => {
1083
- ue(!1);
1084
- }, je = Qe(p.end, Q(/* @__PURE__ */ new Date()));
1085
- return !g || !d || !C ? /* @__PURE__ */ e(j, {}) : /* @__PURE__ */ m(
1086
- Ze,
1088
+ de(!1);
1089
+ }, je = Je(h.end, J(/* @__PURE__ */ new Date()));
1090
+ return !c || !d || !p ? /* @__PURE__ */ e(z, {}) : /* @__PURE__ */ g(
1091
+ Ye,
1087
1092
  {
1088
- accountOptions: n,
1093
+ accountOptions: a,
1089
1094
  actions: [
1090
1095
  {
1091
1096
  iconName: "add",
1092
- label: r.add_title,
1093
- onClick: ye
1097
+ label: n.add_title,
1098
+ onClick: be
1094
1099
  }
1095
1100
  ],
1096
1101
  calendarActions: {
1097
- onRangeChanged: Ne,
1102
+ onRangeChanged: $e,
1098
1103
  shouldDisableNext: je,
1099
1104
  shouldDisablePicker: !0
1100
1105
  },
1101
1106
  onAccountsFilterClick: Pe,
1102
1107
  onBackClick: t,
1103
1108
  sx: o,
1104
- title: r.budgets_title,
1109
+ title: n.budgets_title,
1105
1110
  children: [
1106
- (!d || !C) && /* @__PURE__ */ e(j, {}),
1107
- d && C && /* @__PURE__ */ m(
1108
- S,
1111
+ (!d || !p) && /* @__PURE__ */ e(z, {}),
1112
+ d && p && /* @__PURE__ */ g(
1113
+ B,
1109
1114
  {
1110
- direction: H ? "column" : "row",
1115
+ direction: L ? "column" : "row",
1111
1116
  height: "100%",
1112
1117
  sx: { justifyContent: "center" },
1113
1118
  width: "100%",
1114
1119
  children: [
1115
- /* @__PURE__ */ e(S, { height: H ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ e(
1120
+ /* @__PURE__ */ e(B, { height: L ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ e(
1116
1121
  Le,
1117
1122
  {
1118
- createBudgetOnClick: ye,
1119
- height: H ? 450 : 800,
1123
+ createBudgetOnClick: be,
1124
+ height: L ? 450 : 800,
1120
1125
  isDraggable: !0,
1121
- shouldShowZeroState: x.length === 0,
1122
- unavailableWidth: H ? 0 : ve
1126
+ shouldShowZeroState: A.length === 0,
1127
+ unavailableWidth: L ? 0 : xe
1123
1128
  }
1124
1129
  ) }),
1125
- x.length !== 0 && /* @__PURE__ */ m(
1126
- S,
1130
+ A.length !== 0 && /* @__PURE__ */ g(
1131
+ B,
1127
1132
  {
1128
1133
  gap: 24,
1129
1134
  height: "100%",
1130
1135
  sx: { mr: 24, mt: 48 },
1131
- width: H ? "100%" : ve,
1136
+ width: L ? "100%" : xe,
1132
1137
  children: [
1133
- /* @__PURE__ */ e(Gt, {}),
1134
- /* @__PURE__ */ e(Pt, {})
1138
+ /* @__PURE__ */ e(Pt, {}),
1139
+ /* @__PURE__ */ e($t, {})
1135
1140
  ]
1136
1141
  }
1137
1142
  )
1138
1143
  ]
1139
1144
  }
1140
1145
  ),
1141
- /* @__PURE__ */ e($t, {}),
1146
+ /* @__PURE__ */ e(kt, {}),
1142
1147
  /* @__PURE__ */ e(
1143
- k,
1148
+ N,
1144
1149
  {
1145
- ariaLabelClose: c.close_aria,
1146
- isOpen: $e,
1147
- onClose: () => ue(!1),
1148
- title: r.add_new_title,
1150
+ ariaLabelClose: r.close_aria,
1151
+ isOpen: Ne,
1152
+ onClose: () => de(!1),
1153
+ title: n.add_new_title,
1149
1154
  children: /* @__PURE__ */ e(Oe, { onRecalculateBudgets: Ge })
1150
1155
  }
1151
1156
  ),
1152
1157
  /* @__PURE__ */ e(
1153
- tt,
1158
+ et,
1154
1159
  {
1155
1160
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
1156
1161
  autoHideDuration: 3500,
1157
1162
  onClose: () => {
1158
- v("");
1163
+ C("");
1159
1164
  },
1160
1165
  open: !!f,
1161
1166
  children: /* @__PURE__ */ e(
1162
- et,
1167
+ Qe,
1163
1168
  {
1164
1169
  onClose: () => {
1165
- v("");
1170
+ C("");
1166
1171
  },
1167
1172
  severity: "success",
1168
1173
  variant: "filled",
@@ -1176,6 +1181,6 @@ const Tt = ({
1176
1181
  );
1177
1182
  });
1178
1183
  export {
1179
- $n as BubbleBudgetsMiniWidget,
1180
- Nn as BubbleBudgetsWidget
1184
+ Nn as BubbleBudgetsMiniWidget,
1185
+ $n as BubbleBudgetsWidget
1181
1186
  };