@mx-cartographer/experiences 8.0.0-alpha.sms1 → 8.0.0-alpha.sms2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Account-BDXA6PWh.mjs → Account-Cp30A3ad.mjs} +1 -1
- package/dist/{AccountDetailsContent-CUztd3-b.mjs → AccountDetailsContent-C1HumFnW.mjs} +16 -16
- package/dist/{AccountDetailsHeader-i3KFhNuo.mjs → AccountDetailsHeader-NMx79DGs.mjs} +5 -5
- package/dist/{AccountFields-QZspYAji.mjs → AccountFields-CW6cIthP.mjs} +7 -5
- package/dist/{AccountListItem-DX5upmCS.mjs → AccountListItem-DxmAs98Z.mjs} +4 -4
- package/dist/{AccountStore-BcnDpyLL.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-DXfZotRC.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-CIDAPPPT.mjs} +1 -1
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-naOtJcwo.mjs} +12 -12
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +3 -3
- package/dist/{CategoryStore-DTgyAMM7.mjs → CategoryStore-MUwRWH9e.mjs} +2 -2
- package/dist/{CategoryUtil-C5cR-nfQ.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BIbTqYOH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +28 -28
- package/dist/{ConnectionsDrawer-BFfY3_zB.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-BrGvhgVK.mjs} +8 -8
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-CDPZw_-m.mjs} +1 -1
- package/dist/{DebtsStore-BbJB0nmu.mjs → DebtsStore-hi1cqrRk.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Drawer-BEtCk82g.mjs → Drawer-Dqe5EqvA.mjs} +14 -14
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BIrX0Xg2.mjs → FinstrongStore-dKZOZ2hM.mjs} +53 -53
- package/dist/{GoalStore-DpWY3gVb.mjs → GoalStore-CFeAJloA.mjs} +2 -2
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{Help-BnPXM_N2.mjs → Help-i4OasOO-.mjs} +177 -180
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BNCWQAN_.mjs} +1 -1
- package/dist/{Loader-DUaFpDGv.mjs → Loader-BSWSYqvn.mjs} +3 -3
- package/dist/{ManageIncome-NpXHhO1n.mjs → ManageIncome-D_qVX5dN.mjs} +8 -8
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-D7MkHG15.mjs +56 -0
- package/dist/{NetWorthStore-lsuhEpn6.mjs → NetWorthStore-8FFC1Bs0.mjs} +4 -4
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-BsWiYD94.mjs} +14 -14
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-62e0mU_3.mjs} +2 -2
- package/dist/{RecurringSettings-CqZh1SQa.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-BKcYmpv3.mjs → RecurringTransactions-Bhx56aA3.mjs} +36 -36
- package/dist/{RecurringTransactionsStore-Ni5tSQIO.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-C6KH8JH4.mjs} +9 -9
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BASMQSIp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-DPQ96k3x.mjs} +4 -4
- package/dist/{SpendingLegend-CjX-hX2O.mjs → SpendingLegend-CZzDb-7d.mjs} +3 -3
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-5M2vfr59.mjs → TransactionDetails-Duv1X9ec.mjs} +9 -9
- package/dist/{TransactionStore-D-Q3BU9Z.mjs → TransactionStore-DgLrYW4C.mjs} +41 -58
- package/dist/{TrendsStore-BW9FGQeE.mjs → TrendsStore-_mRaFUdf.mjs} +37 -37
- package/dist/{User-wXzDI4M8.mjs → User-DqNX2GAK.mjs} +19 -19
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +68 -69
- package/dist/{WidgetContainer-BhQ1Kx2z.mjs → WidgetContainer-B1Jzb4XA.mjs} +33 -33
- package/dist/accounts/index.es.js +71 -71
- package/dist/analytics/index.es.js +7 -7
- package/dist/budgets/index.es.js +110 -110
- package/dist/cashflow/index.es.js +68 -68
- package/dist/categories/index.es.js +2 -2
- package/dist/common/index.es.js +248 -248
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +12 -12
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +3 -3
- package/dist/finstrong/index.es.js +18 -18
- package/dist/goals/index.es.js +19 -19
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +12 -12
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +11 -11
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +16 -16
- package/dist/settings/index.es.js +62 -62
- package/dist/spending/index.es.js +26 -26
- package/dist/transactions/index.es.js +58 -58
- package/dist/trends/index.es.js +59 -59
- package/dist/{useAccountDisplayName-CFNF8766.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
- package/package.json +16 -21
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +0 -45
- package/dist/MiniWidgetContainer-CmXpTylX.mjs +0 -56
package/dist/budgets/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
|
6
6
|
import F from "@mui/material/Box";
|
|
7
7
|
import B from "@mui/material/Stack";
|
|
8
8
|
import ee from "@mui/material/styles/useTheme";
|
|
9
|
-
import { Text as
|
|
9
|
+
import { Text as _, CategoryIcon as H, Icon as P, H1 as je, H3 as Ae } from "@mxenabled/mxui";
|
|
10
10
|
import W from "@mui/material/List";
|
|
11
11
|
import { u as w, i as D, j as te, m as K, q as ne, g as X, b as oe, d as pe, h as ae, a as ze, n as Ue } from "../hooks-C41HAxM5.mjs";
|
|
12
12
|
import { f as T } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
@@ -17,53 +17,53 @@ import se from "@mui/material/ListItemAvatar";
|
|
|
17
17
|
import Y from "@mui/material/ListItemButton";
|
|
18
18
|
import Z from "@mui/material/ListItemText";
|
|
19
19
|
import { b as R } from "../Localization-2MODESHW.mjs";
|
|
20
|
-
import { D as L } from "../Drawer-
|
|
20
|
+
import { D as L } from "../Drawer-Dqe5EqvA.mjs";
|
|
21
21
|
import Fe from "@mui/material/ListItemSecondaryAction";
|
|
22
|
-
import { C as He } from "../CurrencyInput-
|
|
23
|
-
import { D as j } from "../Dialog-
|
|
24
|
-
import { C as We } from "../ConnectionsDrawer-
|
|
22
|
+
import { C as He } from "../CurrencyInput-BrGvhgVK.mjs";
|
|
23
|
+
import { D as j } from "../Dialog-CDV0kKxj.mjs";
|
|
24
|
+
import { C as We } from "../ConnectionsDrawer-CSo6AFkG.mjs";
|
|
25
25
|
import * as O from "d3";
|
|
26
26
|
import Ke from "@mui/material/Tooltip";
|
|
27
27
|
import { useTheme as Xe } from "@mui/material/styles";
|
|
28
|
+
import { L as he } from "../Loader-BSWSYqvn.mjs";
|
|
28
29
|
import { u as ie } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
29
|
-
import { L as he } from "../Loader-DUaFpDGv.mjs";
|
|
30
30
|
import { E as de } from "../EmptyState-DoxNUae-.mjs";
|
|
31
|
-
import { A as k, W as Ve } from "../WidgetContainer-
|
|
32
|
-
import { u as Ye } from "../BudgetUtil-
|
|
33
|
-
import { M as Ze } from "../MiniWidgetContainer-
|
|
31
|
+
import { A as k, W as Ve } from "../WidgetContainer-B1Jzb4XA.mjs";
|
|
32
|
+
import { u as Ye } from "../BudgetUtil-CIDAPPPT.mjs";
|
|
33
|
+
import { M as Ze } from "../MiniWidgetContainer-D7MkHG15.mjs";
|
|
34
34
|
import { isAfter as qe } from "date-fns/isAfter";
|
|
35
35
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
36
36
|
import Je from "@mui/material/Alert";
|
|
37
37
|
import Qe from "@mui/material/Snackbar";
|
|
38
38
|
import Ce from "@mui/material/Tab";
|
|
39
39
|
import et from "@mui/material/Tabs";
|
|
40
|
-
import { e as tt } from "../exportTransactionsToCSV-
|
|
41
|
-
import { T as we, a as nt } from "../TransactionDetails-
|
|
40
|
+
import { e as tt } from "../exportTransactionsToCSV-BFpuIAXW.mjs";
|
|
41
|
+
import { T as we, a as nt } from "../TransactionDetails-Duv1X9ec.mjs";
|
|
42
42
|
import fe from "@mui/material/Card";
|
|
43
43
|
import be from "@mui/material/CardContent";
|
|
44
|
-
import { S as ge } from "../StatusBar-
|
|
45
|
-
import { S as De } from "../SingleSegmentDonut-
|
|
46
|
-
import { u as ot, b as at } from "../CategorySelectorDrawer-
|
|
44
|
+
import { S as ge } from "../StatusBar-CPfSXe80.mjs";
|
|
45
|
+
import { S as De } from "../SingleSegmentDonut-PsRQPkmV.mjs";
|
|
46
|
+
import { u as ot, b as at } from "../CategorySelectorDrawer-DqDAA_5I.mjs";
|
|
47
47
|
import Ee from "@mui/material/CardHeader";
|
|
48
48
|
import { subDays as rt } from "date-fns/subDays";
|
|
49
49
|
import st from "@mui/material/IconButton";
|
|
50
|
-
import { M as it } from "../ManageIncome-
|
|
50
|
+
import { M as it } from "../ManageIncome-D_qVX5dN.mjs";
|
|
51
51
|
const ct = E(() => {
|
|
52
52
|
const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = te(), s = i - o;
|
|
53
53
|
return /* @__PURE__ */ g(B, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
54
54
|
/* @__PURE__ */ g(B, { alignItems: "center", children: [
|
|
55
|
-
/* @__PURE__ */ e(
|
|
56
|
-
/* @__PURE__ */ e(
|
|
55
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "Body", children: T(i, "0,0") }),
|
|
56
|
+
/* @__PURE__ */ e(_, { color: "secondary", variant: "Small", children: t.projected_income })
|
|
57
57
|
] }),
|
|
58
|
-
/* @__PURE__ */ e(
|
|
58
|
+
/* @__PURE__ */ e(_, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
|
|
59
59
|
/* @__PURE__ */ g(B, { alignItems: "center", children: [
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
/* @__PURE__ */ e(
|
|
60
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "Body", children: T(o, "0,0") }),
|
|
61
|
+
/* @__PURE__ */ e(_, { color: "secondary", variant: "Small", children: t.budgeted })
|
|
62
62
|
] }),
|
|
63
|
-
/* @__PURE__ */ e(
|
|
63
|
+
/* @__PURE__ */ e(_, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
|
|
64
64
|
/* @__PURE__ */ g(B, { alignItems: "center", children: [
|
|
65
|
-
/* @__PURE__ */ e(
|
|
66
|
-
/* @__PURE__ */ e(
|
|
65
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "Body", children: T(s, "0,0") }),
|
|
66
|
+
/* @__PURE__ */ e(_, { color: "secondary", variant: "Small", children: t.remaining })
|
|
67
67
|
] })
|
|
68
68
|
] });
|
|
69
69
|
}), lt = E(
|
|
@@ -86,7 +86,7 @@ const ct = E(() => {
|
|
|
86
86
|
};
|
|
87
87
|
return /* @__PURE__ */ g(c.Fragment, { children: [
|
|
88
88
|
/* @__PURE__ */ e(Te, { onClick: () => l(!0), sx: { mt: 24, mx: 24 }, variant: "text", children: o.recalculate_button }),
|
|
89
|
-
/* @__PURE__ */ e(
|
|
89
|
+
/* @__PURE__ */ e(_, { sx: { mx: 24, my: 16, textAlign: "center", whiteSpace: "wrap" }, variant: "Paragraph", children: o.recalculate_help }),
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
91
|
L,
|
|
92
92
|
{
|
|
@@ -97,8 +97,8 @@ const ct = E(() => {
|
|
|
97
97
|
title: o.recalculate_title,
|
|
98
98
|
children: /* @__PURE__ */ g(B, { children: [
|
|
99
99
|
/* @__PURE__ */ g(B, { mx: 24, my: 16, children: [
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
/* @__PURE__ */ e(
|
|
100
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "Body", children: o.recalculate_description_top }),
|
|
101
|
+
/* @__PURE__ */ e(_, { variant: "ParagraphSmall", children: o.recalculate_description_bottom })
|
|
102
102
|
] }),
|
|
103
103
|
/* @__PURE__ */ e(F, { bgcolor: "background.paper", children: /* @__PURE__ */ e(W, { children: d.map((u) => /* @__PURE__ */ e(lt, { category: u }, u.guid)) }) })
|
|
104
104
|
] })
|
|
@@ -113,11 +113,11 @@ const ct = E(() => {
|
|
|
113
113
|
const { budgets: s } = w(), { totalBudgeted: a } = D(), { incomeTotal: n } = te(), r = n - a;
|
|
114
114
|
return /* @__PURE__ */ g(B, { gap: 16, children: [
|
|
115
115
|
/* @__PURE__ */ g(B, { children: [
|
|
116
|
-
/* @__PURE__ */ e(
|
|
116
|
+
/* @__PURE__ */ e(_, { children: R(
|
|
117
117
|
s.add_description_top,
|
|
118
118
|
T(r, "0,0")
|
|
119
119
|
) }),
|
|
120
|
-
/* @__PURE__ */ e(
|
|
120
|
+
/* @__PURE__ */ e(_, { children: R(s.add_description_bottom, o) })
|
|
121
121
|
] }),
|
|
122
122
|
/* @__PURE__ */ e(
|
|
123
123
|
He,
|
|
@@ -229,11 +229,11 @@ const ct = E(() => {
|
|
|
229
229
|
u = Math.min(Oe, h, p);
|
|
230
230
|
}
|
|
231
231
|
return n && t <= 3 && (u = Math.min(u, 45)), { minRadius: Math.max(20, u * 0.6), maxRadius: u };
|
|
232
|
-
},
|
|
232
|
+
}, _t = (t, o, i, s, a) => {
|
|
233
233
|
const { maxRadius: n, minRadius: r } = bt(t, o, a);
|
|
234
234
|
return O.scaleLinear().domain([s, i]).range([r, n]);
|
|
235
|
-
},
|
|
236
|
-
const n = o.map((m) => Math.max(m.transaction_total, m.amount)), r = Math.min(...n), l = Math.max(...n), d = i ?
|
|
235
|
+
}, yt = (t, o, i = !1, s, a) => {
|
|
236
|
+
const n = o.map((m) => Math.max(m.transaction_total, m.amount)), r = Math.min(...n), l = Math.max(...n), d = i ? _t(t.length, s, l, r, a) : Me(r, l);
|
|
237
237
|
return t.map((m) => ({
|
|
238
238
|
...m,
|
|
239
239
|
radius: d(Math.max(m.transaction_total, m.amount))
|
|
@@ -278,7 +278,7 @@ function xt({ bubble: t, isDraggable: o, onClick: i = () => {
|
|
|
278
278
|
description: p,
|
|
279
279
|
radius: f,
|
|
280
280
|
x: S,
|
|
281
|
-
y
|
|
281
|
+
y
|
|
282
282
|
} = t, b = r < 400 ? -8 : -12;
|
|
283
283
|
let A = b, v = b;
|
|
284
284
|
f > G ? (A = -14, v = -45) : f > ue && (v = -32);
|
|
@@ -291,11 +291,11 @@ function xt({ bubble: t, isDraggable: o, onClick: i = () => {
|
|
|
291
291
|
options: { offset: [0, 15] }
|
|
292
292
|
}
|
|
293
293
|
]
|
|
294
|
-
},
|
|
294
|
+
}, N = (U) => {
|
|
295
295
|
(U.key === "Enter" || U.key === " ") && (U.preventDefault(), i(t));
|
|
296
296
|
}, z = () => {
|
|
297
297
|
a(!0);
|
|
298
|
-
},
|
|
298
|
+
}, $ = () => {
|
|
299
299
|
a(!1);
|
|
300
300
|
};
|
|
301
301
|
return /* @__PURE__ */ g(
|
|
@@ -304,10 +304,10 @@ function xt({ bubble: t, isDraggable: o, onClick: i = () => {
|
|
|
304
304
|
"aria-label": `${C} - ${p}`,
|
|
305
305
|
className: "bubble",
|
|
306
306
|
id: `bubble-${h}`,
|
|
307
|
-
onBlur:
|
|
307
|
+
onBlur: $,
|
|
308
308
|
onClick: () => i(t),
|
|
309
309
|
onFocus: z,
|
|
310
|
-
onKeyDown:
|
|
310
|
+
onKeyDown: N,
|
|
311
311
|
onMouseEnter: () => a(!0),
|
|
312
312
|
onMouseLeave: () => a(!1),
|
|
313
313
|
role: "button",
|
|
@@ -315,7 +315,7 @@ function xt({ bubble: t, isDraggable: o, onClick: i = () => {
|
|
|
315
315
|
tabIndex: 0,
|
|
316
316
|
textAnchor: "middle",
|
|
317
317
|
x: S,
|
|
318
|
-
y
|
|
318
|
+
y,
|
|
319
319
|
children: [
|
|
320
320
|
/* @__PURE__ */ e("style", { children: `
|
|
321
321
|
.bubble:focus,
|
|
@@ -332,7 +332,7 @@ function xt({ bubble: t, isDraggable: o, onClick: i = () => {
|
|
|
332
332
|
/* @__PURE__ */ e(Ke, { open: s, slotProps: { popper: M }, title: I, children: /* @__PURE__ */ e("circle", { fill: d, id: `circle-${h}`, r: f }) }),
|
|
333
333
|
/* @__PURE__ */ e("svg", { x: A, y: v, children: /* @__PURE__ */ e(P, { name: u, size: x, sx: { fill: m } }) }),
|
|
334
334
|
f > G && /* @__PURE__ */ e(
|
|
335
|
-
|
|
335
|
+
_,
|
|
336
336
|
{
|
|
337
337
|
bold: !0,
|
|
338
338
|
component: "text",
|
|
@@ -344,7 +344,7 @@ function xt({ bubble: t, isDraggable: o, onClick: i = () => {
|
|
|
344
344
|
}
|
|
345
345
|
),
|
|
346
346
|
f > ue && /* @__PURE__ */ e(
|
|
347
|
-
|
|
347
|
+
_,
|
|
348
348
|
{
|
|
349
349
|
bold: !0,
|
|
350
350
|
component: "text",
|
|
@@ -356,7 +356,7 @@ function xt({ bubble: t, isDraggable: o, onClick: i = () => {
|
|
|
356
356
|
}
|
|
357
357
|
),
|
|
358
358
|
f <= G && f > ue && /* @__PURE__ */ e(
|
|
359
|
-
|
|
359
|
+
_,
|
|
360
360
|
{
|
|
361
361
|
component: "text",
|
|
362
362
|
id: `budget-description-${h}-2`,
|
|
@@ -384,12 +384,12 @@ const vt = ({
|
|
|
384
384
|
if (u) {
|
|
385
385
|
const p = u.nodes(), f = new Map(p.map((S) => [S.guid, S]));
|
|
386
386
|
h.forEach((S) => {
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
vx:
|
|
390
|
-
vy:
|
|
391
|
-
x:
|
|
392
|
-
y:
|
|
387
|
+
const y = f.get(S.guid);
|
|
388
|
+
y && Object.assign(S, {
|
|
389
|
+
vx: y.vx,
|
|
390
|
+
vy: y.vy,
|
|
391
|
+
x: y.x,
|
|
392
|
+
y: y.y
|
|
393
393
|
});
|
|
394
394
|
});
|
|
395
395
|
}
|
|
@@ -402,7 +402,7 @@ const vt = ({
|
|
|
402
402
|
}, []), c.useEffect(() => {
|
|
403
403
|
const u = r.current;
|
|
404
404
|
if (!u) return;
|
|
405
|
-
const C = u.nodes(), h = o > 0 && o < 450 || t > 0 && t < 300, p =
|
|
405
|
+
const C = u.nodes(), h = o > 0 && o < 450 || t > 0 && t < 300, p = yt(C, d, h, t, o);
|
|
406
406
|
u.nodes(p), ht(u, t, o), i && setTimeout(() => {
|
|
407
407
|
pt(u);
|
|
408
408
|
}, 0), n([...p]);
|
|
@@ -412,7 +412,7 @@ const vt = ({
|
|
|
412
412
|
onConnectAccountsClick: o,
|
|
413
413
|
createBudgetOnClick: i
|
|
414
414
|
}) => {
|
|
415
|
-
const { recalculateBudgets: s } = D(), { spendCategories: a } = K(), { budgets: n } = w(), { availableWidth: r } = ne(), { isMobile: l } = ie(r), d = t && l, [m, u] = c.useState(!1), [C, h] = c.useState(!1), [p, f] = c.useState(!1), S = c.useMemo(() => [...a.filter((b) => b.totalAverageAmount > 0)], [a]),
|
|
415
|
+
const { recalculateBudgets: s } = D(), { spendCategories: a } = K(), { budgets: n } = w(), { availableWidth: r } = ne(), { isMobile: l } = ie(r), d = t && l, [m, u] = c.useState(!1), [C, h] = c.useState(!1), [p, f] = c.useState(!1), S = c.useMemo(() => [...a.filter((b) => b.totalAverageAmount > 0)], [a]), y = async () => {
|
|
416
416
|
f(!0);
|
|
417
417
|
const { data: b, isSuccess: A } = await s(S);
|
|
418
418
|
f(!1), A ? (b.length === 0 && h(!0), u(!1)) : u(!0);
|
|
@@ -424,7 +424,7 @@ const vt = ({
|
|
|
424
424
|
icon: "error",
|
|
425
425
|
iconColor: "#4D4D4D",
|
|
426
426
|
onClick: (b) => {
|
|
427
|
-
b === "primary" ?
|
|
427
|
+
b === "primary" ? y() : i();
|
|
428
428
|
},
|
|
429
429
|
primaryButton: n.autogenerate_budgets_error_primary_button,
|
|
430
430
|
secondaryButton: n.zero_state_generate_budgets_secondary_button,
|
|
@@ -470,7 +470,7 @@ const vt = ({
|
|
|
470
470
|
icon: "bubble_chart",
|
|
471
471
|
iconColor: "#1A1A1A",
|
|
472
472
|
onClick: (b) => {
|
|
473
|
-
b === "primary" ?
|
|
473
|
+
b === "primary" ? y() : i();
|
|
474
474
|
},
|
|
475
475
|
primaryButton: n.empty_state_primary_button,
|
|
476
476
|
secondaryButton: t ? void 0 : n.empty_state_secondary_button,
|
|
@@ -504,7 +504,7 @@ const vt = ({
|
|
|
504
504
|
budget_category: b.category.name,
|
|
505
505
|
click_type: "bubble"
|
|
506
506
|
});
|
|
507
|
-
},
|
|
507
|
+
}, y = () => {
|
|
508
508
|
p(!0), r(k.ACCOUNTS_CLICK_CONNECT);
|
|
509
509
|
};
|
|
510
510
|
return /* @__PURE__ */ g(
|
|
@@ -518,7 +518,7 @@ const vt = ({
|
|
|
518
518
|
{
|
|
519
519
|
createBudgetOnClick: t,
|
|
520
520
|
isMiniWidget: s,
|
|
521
|
-
onConnectAccountsClick:
|
|
521
|
+
onConnectAccountsClick: y
|
|
522
522
|
}
|
|
523
523
|
) : /* @__PURE__ */ e(
|
|
524
524
|
At,
|
|
@@ -566,12 +566,12 @@ const vt = ({
|
|
|
566
566
|
}
|
|
567
567
|
),
|
|
568
568
|
!s && /* @__PURE__ */ g(F, { ml: 16, children: [
|
|
569
|
-
/* @__PURE__ */ e(
|
|
570
|
-
/* @__PURE__ */ e(
|
|
569
|
+
/* @__PURE__ */ e(_, { bold: !0, color: o < 0 ? "error.main" : "success.main", children: T(Math.abs(o), "0,0") }),
|
|
570
|
+
/* @__PURE__ */ e(_, { children: o < 0 ? t.overspent_in_budgets : t.left_in_budgets })
|
|
571
571
|
] })
|
|
572
572
|
] });
|
|
573
573
|
}, Dt = (t) => {
|
|
574
|
-
const o = ee(), { onEvent: i } = X(), { visibleAccounts: s } = pe(), { detailedBudgets: a, isDataLoaded: n, loadBudgetData: r, setTheme: l } = D(), { budgets: d, common: m } = w(), { isInitialized: u, selectedAccounts: C, setSelectedAccounts: h } = oe(), { reloadCategoryTotals: p } = K(), f = Ye(), S = a.length === 0, [
|
|
574
|
+
const o = ee(), { onEvent: i } = X(), { visibleAccounts: s } = pe(), { detailedBudgets: a, isDataLoaded: n, loadBudgetData: r, setTheme: l } = D(), { budgets: d, common: m } = w(), { isInitialized: u, selectedAccounts: C, setSelectedAccounts: h } = oe(), { reloadCategoryTotals: p } = K(), f = Ye(), S = a.length === 0, [y, b] = c.useState(!1);
|
|
575
575
|
c.useEffect(() => {
|
|
576
576
|
n || r().finally();
|
|
577
577
|
}, []), c.useEffect(() => {
|
|
@@ -610,7 +610,7 @@ const vt = ({
|
|
|
610
610
|
L,
|
|
611
611
|
{
|
|
612
612
|
ariaLabelClose: m.close_aria,
|
|
613
|
-
isOpen:
|
|
613
|
+
isOpen: y,
|
|
614
614
|
onClose: () => b(!1),
|
|
615
615
|
title: d.add_new_title,
|
|
616
616
|
children: /* @__PURE__ */ e(Ie, { onRecalculateBudgets: v })
|
|
@@ -636,15 +636,15 @@ const vt = ({
|
|
|
636
636
|
return /* @__PURE__ */ e(fe, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(be, { children: /* @__PURE__ */ g(B, { alignItems: "center", gap: 16, children: [
|
|
637
637
|
/* @__PURE__ */ e(H, { categoryGuid: a, size: 56 }),
|
|
638
638
|
/* @__PURE__ */ e(je, { children: `${T(r, "0,0")} / ${T(o, "0,0")}` }),
|
|
639
|
-
/* @__PURE__ */ e(
|
|
639
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "XSmall", children: s }),
|
|
640
640
|
/* @__PURE__ */ e(ge, { data: l, height: 10 })
|
|
641
641
|
] }) }) });
|
|
642
642
|
}, Et = E(() => {
|
|
643
643
|
const { budgets: t } = w();
|
|
644
644
|
return /* @__PURE__ */ g(B, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
|
|
645
645
|
/* @__PURE__ */ e(P, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
|
|
646
|
-
/* @__PURE__ */ e(
|
|
647
|
-
/* @__PURE__ */ e(
|
|
646
|
+
/* @__PURE__ */ e(_, { bold: !0, color: "secondary", variant: "Small", children: t.zero_state_no_sub_budgets }),
|
|
647
|
+
/* @__PURE__ */ e(_, { color: "text.secondary", variant: "XSmall", children: t.zero_state_no_sub_budgets_description })
|
|
648
648
|
] });
|
|
649
649
|
}), It = E(({ budget: t }) => {
|
|
650
650
|
const {
|
|
@@ -659,8 +659,8 @@ const vt = ({
|
|
|
659
659
|
/* @__PURE__ */ e(
|
|
660
660
|
Z,
|
|
661
661
|
{
|
|
662
|
-
primary: /* @__PURE__ */ e(B, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(
|
|
663
|
-
secondary: /* @__PURE__ */ e(B, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(
|
|
662
|
+
primary: /* @__PURE__ */ e(B, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(_, { bold: !0, variant: "Body", children: t.category.name }) }),
|
|
663
|
+
secondary: /* @__PURE__ */ e(B, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(_, { fontWeight: 400, variant: "Body", children: `
|
|
664
664
|
${T(n, "0,0")} /
|
|
665
665
|
${T(o, "0,0")}
|
|
666
666
|
` }) })
|
|
@@ -677,14 +677,14 @@ const vt = ({
|
|
|
677
677
|
}, []);
|
|
678
678
|
const S = () => {
|
|
679
679
|
a(t.guid), d(!0);
|
|
680
|
-
},
|
|
680
|
+
}, y = async () => {
|
|
681
681
|
p && Number(C) > 0 && (await r(p, Number(C), o.guid), u(!1), d(!1), f(void 0));
|
|
682
682
|
};
|
|
683
683
|
return /* @__PURE__ */ g(F, { children: [
|
|
684
684
|
/* @__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: [
|
|
685
685
|
/* @__PURE__ */ g(B, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
686
686
|
/* @__PURE__ */ e(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
|
687
|
-
/* @__PURE__ */ e(
|
|
687
|
+
/* @__PURE__ */ e(_, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
|
|
688
688
|
] }),
|
|
689
689
|
/* @__PURE__ */ e(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
|
690
690
|
] }) }) }) }),
|
|
@@ -706,7 +706,7 @@ const vt = ({
|
|
|
706
706
|
disablePrimaryButton: Number(C) <= 0,
|
|
707
707
|
isOpen: m,
|
|
708
708
|
onClose: () => u(!1),
|
|
709
|
-
onPrimaryAction:
|
|
709
|
+
onPrimaryAction: y,
|
|
710
710
|
primaryText: i.add_save_button,
|
|
711
711
|
children: /* @__PURE__ */ e(
|
|
712
712
|
ce,
|
|
@@ -720,9 +720,9 @@ const vt = ({
|
|
|
720
720
|
)
|
|
721
721
|
] });
|
|
722
722
|
}), Mt = E(({ budget: t }) => {
|
|
723
|
-
const { category: o, subBudgets: i } = t, { budgets: s, common: a } = w(), { deleteBudget: n, selectedSubBudget: r, setSelectedSubBudget: l, updateBudget: d } = D(), { filter: m, setFilter: u } = ae(), [C, h] = c.useState(!1), [p, f] = c.useState(!1), [S,
|
|
723
|
+
const { category: o, subBudgets: i } = t, { budgets: s, common: a } = w(), { deleteBudget: n, selectedSubBudget: r, setSelectedSubBudget: l, updateBudget: d } = D(), { filter: m, setFilter: u } = ae(), [C, h] = c.useState(!1), [p, f] = c.useState(!1), [S, y] = c.useState("");
|
|
724
724
|
c.useEffect(() => {
|
|
725
|
-
r && (
|
|
725
|
+
r && (y(`${r.amount}`), u({
|
|
726
726
|
...m,
|
|
727
727
|
custom: (x) => x.category_guid === r.category_guid
|
|
728
728
|
}));
|
|
@@ -780,7 +780,7 @@ const vt = ({
|
|
|
780
780
|
{
|
|
781
781
|
amount: S,
|
|
782
782
|
categoryName: r.category.name,
|
|
783
|
-
onAmountChanged:
|
|
783
|
+
onAmountChanged: y
|
|
784
784
|
}
|
|
785
785
|
)
|
|
786
786
|
}
|
|
@@ -795,7 +795,7 @@ const vt = ({
|
|
|
795
795
|
primaryColor: "error",
|
|
796
796
|
primaryText: "Delete",
|
|
797
797
|
secondaryColor: "secondary",
|
|
798
|
-
children: /* @__PURE__ */ e(
|
|
798
|
+
children: /* @__PURE__ */ e(_, { variant: "Paragraph", children: R(s.delete_description, r.category.name) })
|
|
799
799
|
}
|
|
800
800
|
)
|
|
801
801
|
] })
|
|
@@ -805,7 +805,7 @@ const vt = ({
|
|
|
805
805
|
sortedTransactions: m,
|
|
806
806
|
sortedTransactionsWithSplits: u,
|
|
807
807
|
tags: C
|
|
808
|
-
} = ae(), [h, p] = c.useState(0), [f, S] = c.useState(""),
|
|
808
|
+
} = ae(), [h, p] = c.useState(0), [f, S] = c.useState(""), y = c.useMemo(
|
|
809
809
|
() => m.find((x) => x.guid === f),
|
|
810
810
|
[f, m]
|
|
811
811
|
), b = (x, I) => {
|
|
@@ -847,10 +847,10 @@ const vt = ({
|
|
|
847
847
|
L,
|
|
848
848
|
{
|
|
849
849
|
ariaLabelClose: a.close_aria,
|
|
850
|
-
isOpen: !!
|
|
850
|
+
isOpen: !!y,
|
|
851
851
|
onClose: () => S(""),
|
|
852
852
|
title: s.details_transaction_drawer,
|
|
853
|
-
children:
|
|
853
|
+
children: y && /* @__PURE__ */ e(nt, { transaction: y })
|
|
854
854
|
}
|
|
855
855
|
)
|
|
856
856
|
] })
|
|
@@ -864,7 +864,7 @@ const vt = ({
|
|
|
864
864
|
setAlert: l,
|
|
865
865
|
setSelectedBudget: d,
|
|
866
866
|
updateBudget: m
|
|
867
|
-
} = D(), { setFilter: u } = ae(), [C, h] = c.useState(!1), [p, f] = c.useState(!1), [S,
|
|
867
|
+
} = D(), { setFilter: u } = ae(), [C, h] = c.useState(!1), [p, f] = c.useState(!1), [S, y] = c.useState(!1), [b, A] = c.useState("");
|
|
868
868
|
c.useEffect(() => {
|
|
869
869
|
n && !r && (A(`${n.amount}`), h(!0), u({
|
|
870
870
|
accounts: t,
|
|
@@ -880,7 +880,7 @@ const vt = ({
|
|
|
880
880
|
percentage: n.category.totalAmount / Number(b) * 100
|
|
881
881
|
}), l(R(o.alert_budget_updated, n.category.name)));
|
|
882
882
|
}, x = async () => {
|
|
883
|
-
n && (await a(n.guid), l(R(o.alert_budget_deleted, n.category.name))),
|
|
883
|
+
n && (await a(n.guid), l(R(o.alert_budget_deleted, n.category.name))), y(!1), I();
|
|
884
884
|
}, I = () => {
|
|
885
885
|
h(!1), setTimeout(() => {
|
|
886
886
|
d(void 0);
|
|
@@ -895,7 +895,7 @@ const vt = ({
|
|
|
895
895
|
isOpen: C,
|
|
896
896
|
onClose: I,
|
|
897
897
|
onPrimaryAction: () => f(!0),
|
|
898
|
-
onSecondaryAction: () =>
|
|
898
|
+
onSecondaryAction: () => y(!0),
|
|
899
899
|
primaryText: o.details_edit_button,
|
|
900
900
|
secondaryColor: "error",
|
|
901
901
|
secondaryText: o.details_delete_button,
|
|
@@ -927,12 +927,12 @@ const vt = ({
|
|
|
927
927
|
{
|
|
928
928
|
copy: { close_aria: i.close_aria, title: o.delete_title },
|
|
929
929
|
isOpen: S,
|
|
930
|
-
onClose: () =>
|
|
930
|
+
onClose: () => y(!1),
|
|
931
931
|
onPrimaryAction: x,
|
|
932
932
|
primaryColor: "error",
|
|
933
933
|
primaryText: o.details_delete_button,
|
|
934
934
|
secondaryColor: "secondary",
|
|
935
|
-
children: /* @__PURE__ */ e(
|
|
935
|
+
children: /* @__PURE__ */ e(_, { variant: "Paragraph", children: R(o.delete_description, n.category.name) })
|
|
936
936
|
}
|
|
937
937
|
)
|
|
938
938
|
] });
|
|
@@ -952,20 +952,20 @@ const vt = ({
|
|
|
952
952
|
Z,
|
|
953
953
|
{
|
|
954
954
|
primary: /* @__PURE__ */ g(B, { component: "span", direction: "row", justifyContent: "space-between", children: [
|
|
955
|
-
/* @__PURE__ */ e(
|
|
956
|
-
/* @__PURE__ */ e(
|
|
955
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "Body", children: t.category.name }),
|
|
956
|
+
/* @__PURE__ */ e(_, { fontWeight: 400, variant: "Body", children: `
|
|
957
957
|
${T(m, "0,0")} /
|
|
958
958
|
${T(i, "0,0")}
|
|
959
959
|
` })
|
|
960
960
|
] }),
|
|
961
961
|
secondary: /* @__PURE__ */ g(B, { component: "span", direction: "row", justifyContent: "space-between", children: [
|
|
962
|
-
/* @__PURE__ */ e(
|
|
963
|
-
/* @__PURE__ */ e(
|
|
962
|
+
/* @__PURE__ */ e(_, { variant: "XSmall", children: `${d.length} Sub-budgets` }),
|
|
963
|
+
/* @__PURE__ */ e(_, { bold: l > 100, color: a, variant: "XSmall", children: r })
|
|
964
964
|
] })
|
|
965
965
|
}
|
|
966
966
|
)
|
|
967
967
|
] }) });
|
|
968
|
-
},
|
|
968
|
+
}, Nt = E(() => {
|
|
969
969
|
const { onEvent: t } = X(), { budgets: o } = w(), { detailedBudgets: i, setSelectedBudget: s } = D(), a = (n) => {
|
|
970
970
|
s(n), t(k.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
971
971
|
budget_category: n.category.name,
|
|
@@ -979,9 +979,9 @@ const vt = ({
|
|
|
979
979
|
/* @__PURE__ */ e(re, {})
|
|
980
980
|
] }, n.guid)) }) })
|
|
981
981
|
] });
|
|
982
|
-
}),
|
|
982
|
+
}), $t = E(() => {
|
|
983
983
|
const t = ee(), { onEvent: o } = X(), { visibleAccounts: i } = pe(), { budgets: s, common: a, recurring: n } = w(), { incomeCategories: r, spendCategories: l } = K(), { detailedBudgets: d, totalBudgeted: m } = D(), { incomeTotal: u } = te(), { setFilter: C } = ae(), [h, p] = c.useState(!1), [f, S] = c.useMemo(() => {
|
|
984
|
-
const v = l.reduce((
|
|
984
|
+
const v = l.reduce((N, z) => N + z.totalAmount, 0);
|
|
985
985
|
let x = v / m;
|
|
986
986
|
x > 1 && (x = 1);
|
|
987
987
|
let I = t.palette.success.main;
|
|
@@ -993,9 +993,9 @@ const vt = ({
|
|
|
993
993
|
}
|
|
994
994
|
];
|
|
995
995
|
return [v, M];
|
|
996
|
-
}, [d, l]), [
|
|
996
|
+
}, [d, l]), [y, b] = c.useMemo(() => {
|
|
997
997
|
const v = Math.abs(
|
|
998
|
-
r.reduce((M,
|
|
998
|
+
r.reduce((M, N) => M + N.totalAmount, 0)
|
|
999
999
|
);
|
|
1000
1000
|
let x = v / u;
|
|
1001
1001
|
x > 1 && (x = 1);
|
|
@@ -1019,9 +1019,9 @@ const vt = ({
|
|
|
1019
1019
|
/* @__PURE__ */ e(Ee, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Ae, { children: s.overview_title }) }),
|
|
1020
1020
|
/* @__PURE__ */ e(be, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ g(B, { gap: 24, children: [
|
|
1021
1021
|
/* @__PURE__ */ g(B, { gap: 8, children: [
|
|
1022
|
-
/* @__PURE__ */ e(
|
|
1022
|
+
/* @__PURE__ */ e(_, { bold: !0, sx: { mb: 8 }, variant: "Body", children: s.spending_title }),
|
|
1023
1023
|
/* @__PURE__ */ e(ge, { data: S, height: 16 }),
|
|
1024
|
-
/* @__PURE__ */ e(
|
|
1024
|
+
/* @__PURE__ */ e(_, { variant: "Small", children: R(
|
|
1025
1025
|
s.spending_description,
|
|
1026
1026
|
T(f, "0,0"),
|
|
1027
1027
|
T(m, "0,0")
|
|
@@ -1029,7 +1029,7 @@ const vt = ({
|
|
|
1029
1029
|
] }),
|
|
1030
1030
|
/* @__PURE__ */ g(B, { gap: 8, children: [
|
|
1031
1031
|
/* @__PURE__ */ g(B, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
|
|
1032
|
-
/* @__PURE__ */ e(
|
|
1032
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "Body", children: s.income_title }),
|
|
1033
1033
|
/* @__PURE__ */ e(
|
|
1034
1034
|
st,
|
|
1035
1035
|
{
|
|
@@ -1041,9 +1041,9 @@ const vt = ({
|
|
|
1041
1041
|
)
|
|
1042
1042
|
] }),
|
|
1043
1043
|
/* @__PURE__ */ e(ge, { data: b, height: 16 }),
|
|
1044
|
-
/* @__PURE__ */ e(
|
|
1044
|
+
/* @__PURE__ */ e(_, { variant: "Small", children: R(
|
|
1045
1045
|
s.income_description,
|
|
1046
|
-
T(
|
|
1046
|
+
T(y, "0,0"),
|
|
1047
1047
|
T(u, "0,0")
|
|
1048
1048
|
) })
|
|
1049
1049
|
] })
|
|
@@ -1065,27 +1065,27 @@ const vt = ({
|
|
|
1065
1065
|
dateRange: p,
|
|
1066
1066
|
isDataLoaded: f,
|
|
1067
1067
|
loadBudgetData: S,
|
|
1068
|
-
setDateRange:
|
|
1068
|
+
setDateRange: y,
|
|
1069
1069
|
setAlert: b,
|
|
1070
1070
|
setTheme: A,
|
|
1071
1071
|
detailedBudgets: v
|
|
1072
|
-
} = D(), { setDateRange: x } = te(), { reloadCategoryTotals: I } = K(), { isSmallTablet: M, isMobile:
|
|
1072
|
+
} = D(), { setDateRange: x } = te(), { reloadCategoryTotals: I } = K(), { isSmallTablet: M, isMobile: N, isSmallMobile: z } = ie(), $ = M || N || z, [U, le] = c.useState(!1);
|
|
1073
1073
|
c.useEffect(() => {
|
|
1074
1074
|
A(i), S().finally(() => {
|
|
1075
1075
|
s(k.BUDGETS_VIEW), a?.("BubbleBudgetsWidget");
|
|
1076
1076
|
});
|
|
1077
|
-
}, []), c.useEffect(() => (C(n),
|
|
1078
|
-
|
|
1077
|
+
}, []), c.useEffect(() => (C(n), y({ start: J(q()), end: me(q()) }), () => {
|
|
1078
|
+
y({ start: J(q()), end: me(q()) });
|
|
1079
1079
|
}), [n]), c.useEffect(() => {
|
|
1080
1080
|
d && (u(p.start, p.end), I(m, p.start, p.end).finally(), x(p));
|
|
1081
1081
|
}, [d, m, p]);
|
|
1082
|
-
const Le = (
|
|
1083
|
-
|
|
1084
|
-
},
|
|
1082
|
+
const Le = (ye) => {
|
|
1083
|
+
y({ start: ye[0] || /* @__PURE__ */ new Date(), end: ye[1] || /* @__PURE__ */ new Date() });
|
|
1084
|
+
}, Ne = () => {
|
|
1085
1085
|
s(k.BUDGETS_CLICK_FILTER);
|
|
1086
|
-
},
|
|
1086
|
+
}, _e = () => {
|
|
1087
1087
|
le(!0), s(k.BUDGETS_CLICK_ADD);
|
|
1088
|
-
},
|
|
1088
|
+
}, $e = () => {
|
|
1089
1089
|
le(!1);
|
|
1090
1090
|
}, Pe = qe(p.end, J(/* @__PURE__ */ new Date()));
|
|
1091
1091
|
return !d || !f ? /* @__PURE__ */ e(he, {}) : /* @__PURE__ */ g(
|
|
@@ -1096,7 +1096,7 @@ const vt = ({
|
|
|
1096
1096
|
{
|
|
1097
1097
|
iconName: "add",
|
|
1098
1098
|
label: r.add_title,
|
|
1099
|
-
onClick:
|
|
1099
|
+
onClick: _e
|
|
1100
1100
|
}
|
|
1101
1101
|
],
|
|
1102
1102
|
calendarActions: {
|
|
@@ -1104,7 +1104,7 @@ const vt = ({
|
|
|
1104
1104
|
shouldDisableNext: Pe,
|
|
1105
1105
|
shouldDisablePicker: !0
|
|
1106
1106
|
},
|
|
1107
|
-
onAccountsFilterClick:
|
|
1107
|
+
onAccountsFilterClick: Ne,
|
|
1108
1108
|
onBackClick: t,
|
|
1109
1109
|
sx: o,
|
|
1110
1110
|
title: r.budgets_title,
|
|
@@ -1112,19 +1112,19 @@ const vt = ({
|
|
|
1112
1112
|
/* @__PURE__ */ g(
|
|
1113
1113
|
B,
|
|
1114
1114
|
{
|
|
1115
|
-
direction:
|
|
1115
|
+
direction: $ ? "column" : "row",
|
|
1116
1116
|
height: "100%",
|
|
1117
1117
|
sx: { justifyContent: "center" },
|
|
1118
1118
|
width: "100%",
|
|
1119
1119
|
children: [
|
|
1120
|
-
/* @__PURE__ */ e(B, { height:
|
|
1120
|
+
/* @__PURE__ */ e(B, { height: $ ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ e(
|
|
1121
1121
|
Re,
|
|
1122
1122
|
{
|
|
1123
|
-
createBudgetOnClick:
|
|
1124
|
-
height:
|
|
1123
|
+
createBudgetOnClick: _e,
|
|
1124
|
+
height: $ ? 450 : 800,
|
|
1125
1125
|
isDraggable: !0,
|
|
1126
1126
|
shouldShowZeroState: v.length === 0,
|
|
1127
|
-
unavailableWidth:
|
|
1127
|
+
unavailableWidth: $ ? 0 : ve
|
|
1128
1128
|
}
|
|
1129
1129
|
) }),
|
|
1130
1130
|
v.length !== 0 && /* @__PURE__ */ g(
|
|
@@ -1133,10 +1133,10 @@ const vt = ({
|
|
|
1133
1133
|
gap: 24,
|
|
1134
1134
|
height: "100%",
|
|
1135
1135
|
sx: { mr: 24, mt: 48 },
|
|
1136
|
-
width:
|
|
1136
|
+
width: $ ? "100%" : ve,
|
|
1137
1137
|
children: [
|
|
1138
|
-
/* @__PURE__ */ e(
|
|
1139
|
-
/* @__PURE__ */ e(
|
|
1138
|
+
/* @__PURE__ */ e($t, {}),
|
|
1139
|
+
/* @__PURE__ */ e(Nt, {})
|
|
1140
1140
|
]
|
|
1141
1141
|
}
|
|
1142
1142
|
)
|
|
@@ -1151,7 +1151,7 @@ const vt = ({
|
|
|
1151
1151
|
isOpen: U,
|
|
1152
1152
|
onClose: () => le(!1),
|
|
1153
1153
|
title: r.add_new_title,
|
|
1154
|
-
children: /* @__PURE__ */ e(Ie, { onRecalculateBudgets:
|
|
1154
|
+
children: /* @__PURE__ */ e(Ie, { onRecalculateBudgets: $e })
|
|
1155
1155
|
}
|
|
1156
1156
|
),
|
|
1157
1157
|
/* @__PURE__ */ e(
|