@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.mega2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
- package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
- package/dist/Accounts-Bzy1_REQ.mjs +9 -0
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
- package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-BF4QA-Lx.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
- package/dist/Loader-DUaFpDGv.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
- package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
- package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
- package/dist/accounts/index.es.js +200 -197
- package/dist/accounts/stores/AccountStore.d.ts +22 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +703 -669
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +420 -404
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +3 -6
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +712 -436
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +93 -91
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +529 -527
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +876 -867
- package/dist/goals/index.es.js +526 -525
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
- package/dist/investments/index.es.js +534 -531
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +8 -8
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- package/dist/microinsights/index.d.ts +1 -0
- package/dist/microinsights/index.es.js +101 -14
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +284 -285
- package/dist/notifications/index.es.js +95 -94
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +582 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
- package/dist/settings/index.es.js +340 -337
- package/dist/spending/index.es.js +281 -268
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +253 -255
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/transactions/stores/UiStore.d.ts +2 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +838 -793
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- package/package.json +57 -52
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/Accounts-CRUehOiy.mjs +0 -27
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/Drawer-BF40nbsH.mjs +0 -163
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/LineChart-C1PxNf7P.mjs +0 -581
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
- package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
- package/dist/TransactionStore-DbwAutwC.mjs +0 -671
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { b as p } from "./Category-
|
|
3
|
-
import { jsxs as y, Fragment as v, jsx as
|
|
4
|
-
import
|
|
1
|
+
import { b as _ } from "./CategoryUtil-DUM8NuGO.mjs";
|
|
2
|
+
import { b as p } from "./Category-CevNQ03n.mjs";
|
|
3
|
+
import { jsxs as y, Fragment as v, jsx as m } from "react/jsx-runtime";
|
|
4
|
+
import x from "react";
|
|
5
5
|
import { observer as w } from "mobx-react-lite";
|
|
6
|
-
import
|
|
6
|
+
import M from "@mui/material/Button";
|
|
7
7
|
import f from "@mui/material/Stack";
|
|
8
|
-
import { useTheme as
|
|
9
|
-
import { CategoryIcon as
|
|
8
|
+
import { useTheme as N } from "@mui/material/styles";
|
|
9
|
+
import { CategoryIcon as k, CategoryIconVariants as A, Text as h } from "@mxenabled/mxui";
|
|
10
10
|
import { D as G } from "./Donut-Dmy3JTWd.mjs";
|
|
11
|
-
import { u as O } from "./TransactionDetails-
|
|
12
|
-
import { u as $ } from "./hooks-
|
|
13
|
-
import { u as j } from "./useScreenSize-
|
|
14
|
-
import { f as
|
|
11
|
+
import { u as O } from "./TransactionDetails-m5PddMQn.mjs";
|
|
12
|
+
import { u as $ } from "./hooks-ZMp65DFz.mjs";
|
|
13
|
+
import { u as j } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
|
+
import { f as D } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import R from "@mui/material/Box";
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
if (!r) return o;
|
|
19
|
-
const t = r.parent_guid ?? r.guid, a = i.find((s) => s.guid === t);
|
|
16
|
+
const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
|
|
17
|
+
const a = i.find((s) => s.guid === n.category_guid);
|
|
20
18
|
if (!a) return o;
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
const t = a.parent_guid ?? a.guid, r = i.find((s) => s.guid === t);
|
|
20
|
+
if (!r) return o;
|
|
21
|
+
const c = {
|
|
22
|
+
guid: a.guid,
|
|
23
|
+
name: a.guid === t ? `${l.parent_category_totals_label_general} ${a.name}` : a.name,
|
|
24
|
+
color: _(r.guid, g),
|
|
25
25
|
amount: n.total
|
|
26
26
|
}, e = o.find((s) => s.guid === t);
|
|
27
|
-
return e ? (e.amount += n.total, e.categoryTotals?.push(
|
|
27
|
+
return e ? (e.amount += n.total, e.categoryTotals?.push(c)) : o.push({
|
|
28
28
|
guid: t,
|
|
29
|
-
name:
|
|
30
|
-
color:
|
|
31
|
-
categoryTotals: [
|
|
29
|
+
name: r.name,
|
|
30
|
+
color: _(r.guid, g),
|
|
31
|
+
categoryTotals: [c],
|
|
32
32
|
amount: n.total
|
|
33
33
|
}), o;
|
|
34
34
|
}, []), ot = (i, l, g, d) => {
|
|
35
|
-
const o =
|
|
36
|
-
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER
|
|
37
|
-
).sort((e, s) => s.amount - e.amount),
|
|
35
|
+
const o = B(i, l, g, d), n = o.filter(
|
|
36
|
+
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER && e.amount > 0
|
|
37
|
+
).sort((e, s) => s.amount - e.amount), a = n.reduce(
|
|
38
38
|
(e, s) => e + s.amount,
|
|
39
39
|
0
|
|
40
|
-
), t = n.length >
|
|
40
|
+
), t = n.length > T ? T : n.length, r = n.slice(0, t), c = r.map((e) => ({
|
|
41
41
|
id: e.guid,
|
|
42
|
-
color:
|
|
42
|
+
color: _(e.guid, g),
|
|
43
43
|
label: e.name,
|
|
44
|
-
value: e.amount /
|
|
44
|
+
value: e.amount / a * 100
|
|
45
45
|
}));
|
|
46
46
|
if (n.length > 5) {
|
|
47
|
-
const e = n.slice(
|
|
47
|
+
const e = n.slice(T, o.length), s = e.reduce(
|
|
48
48
|
(C, u) => C + u.amount,
|
|
49
49
|
0
|
|
50
50
|
);
|
|
51
|
-
|
|
51
|
+
r.push({
|
|
52
52
|
guid: "other",
|
|
53
53
|
color: g.palette.categories.others || "",
|
|
54
54
|
name: l.saving_goal_other,
|
|
55
55
|
categoryTotals: e,
|
|
56
56
|
amount: s
|
|
57
|
-
}),
|
|
57
|
+
}), c.push({
|
|
58
58
|
id: "other",
|
|
59
59
|
color: g.palette.categories.others || "",
|
|
60
60
|
label: l.saving_goal_other,
|
|
61
|
-
value: s /
|
|
61
|
+
value: s / a * 100
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
|
-
categoryData:
|
|
66
|
-
donutData:
|
|
67
|
-
totalAmount:
|
|
65
|
+
categoryData: r,
|
|
66
|
+
donutData: c,
|
|
67
|
+
totalAmount: a
|
|
68
68
|
};
|
|
69
69
|
}, nt = (i, l, g) => {
|
|
70
70
|
const d = i.filter(
|
|
71
71
|
(t) => t.guid === p.INCOME || t.parent_guid === p.INCOME
|
|
72
|
-
), o = l.filter((t) => d.some((
|
|
72
|
+
), o = l.filter((t) => d.some((r) => r.guid === t.category_guid)).sort((t, r) => t.total - r.total).map((t, r) => ({
|
|
73
73
|
guid: t.category_guid,
|
|
74
|
-
name: i.find((
|
|
75
|
-
color: g[
|
|
74
|
+
name: i.find((c) => c.guid === t.category_guid)?.name,
|
|
75
|
+
color: g[r],
|
|
76
76
|
categoryTotals: [],
|
|
77
77
|
amount: Math.abs(t.total)
|
|
78
78
|
})), n = o.reduce(
|
|
79
|
-
(t,
|
|
79
|
+
(t, r) => t + r.amount,
|
|
80
80
|
0
|
|
81
|
-
),
|
|
81
|
+
), a = o.map((t) => ({
|
|
82
82
|
id: t.guid,
|
|
83
83
|
color: t.color,
|
|
84
84
|
label: t.name,
|
|
@@ -86,35 +86,35 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
86
86
|
}));
|
|
87
87
|
return {
|
|
88
88
|
categoryData: o,
|
|
89
|
-
donutData:
|
|
89
|
+
donutData: a,
|
|
90
90
|
totalAmount: n
|
|
91
91
|
};
|
|
92
|
-
},
|
|
92
|
+
}, H = ({
|
|
93
93
|
data: i,
|
|
94
94
|
isIncome: l = !1,
|
|
95
95
|
onSelected: g,
|
|
96
96
|
onViewTransactions: d,
|
|
97
97
|
selectedId: o,
|
|
98
98
|
size: n = 150,
|
|
99
|
-
totalLabel:
|
|
99
|
+
totalLabel: a,
|
|
100
100
|
variant: t = "mini"
|
|
101
101
|
}) => {
|
|
102
|
-
const { spending:
|
|
102
|
+
const { spending: r } = $(), c = N(), { isTablet: e } = j(), { announce: s, ariaLive: C } = O(), u = x.useMemo(
|
|
103
103
|
() => o ? i.categoryData.find((b) => b.guid === o) : void 0,
|
|
104
104
|
[o]
|
|
105
105
|
);
|
|
106
|
-
|
|
106
|
+
x.useEffect(() => {
|
|
107
107
|
if (u) {
|
|
108
|
-
const b =
|
|
108
|
+
const b = D(u.amount, "0,0");
|
|
109
109
|
s(`${u.name}: ${b}`);
|
|
110
110
|
}
|
|
111
111
|
}, [u, s]);
|
|
112
|
-
const S = i.donutData.length > 0 ? i.donutData : [{ id: "0", color:
|
|
112
|
+
const S = x.useMemo(() => i.donutData.length > 0 ? i.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], [i, c]), E = () => {
|
|
113
113
|
d?.(o);
|
|
114
114
|
}, I = e ? 32 : 48;
|
|
115
115
|
return /* @__PURE__ */ y(v, { children: [
|
|
116
116
|
C,
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ m(G, { data: S, onClick: g, selectedId: o, size: n, children: /* @__PURE__ */ m(f, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ y(f, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
|
|
118
118
|
u && /* @__PURE__ */ y(
|
|
119
119
|
f,
|
|
120
120
|
{
|
|
@@ -124,47 +124,47 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
124
124
|
mt: t === "mini" ? 0 : -16,
|
|
125
125
|
sx: t === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
127
|
+
/* @__PURE__ */ m(
|
|
128
|
+
k,
|
|
129
129
|
{
|
|
130
130
|
categoryGuid: l ? p.INCOME : u.guid,
|
|
131
131
|
size: t === "mini" ? 24 : I,
|
|
132
132
|
variant: A.Transparent
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ m(
|
|
136
136
|
h,
|
|
137
137
|
{
|
|
138
138
|
color: "secondary",
|
|
139
139
|
noWrap: !0,
|
|
140
|
-
variant: t === "mini" ? "
|
|
141
|
-
children: u ? u.name :
|
|
140
|
+
variant: t === "mini" ? "Tiny" : "Body",
|
|
141
|
+
children: u ? u.name : a
|
|
142
142
|
}
|
|
143
143
|
)
|
|
144
144
|
]
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
|
-
!u && t === "full" && /* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
!u && t === "mini" && /* @__PURE__ */
|
|
150
|
-
t === "full" && /* @__PURE__ */
|
|
151
|
-
|
|
147
|
+
!u && t === "full" && /* @__PURE__ */ m(h, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
|
|
148
|
+
/* @__PURE__ */ m(h, { variant: t === "mini" ? "H2" : "H1", children: u ? D(u.amount, "0,0") : D(i.totalAmount, "0,0") }),
|
|
149
|
+
!u && t === "mini" && /* @__PURE__ */ m(h, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
|
|
150
|
+
t === "full" && /* @__PURE__ */ m(
|
|
151
|
+
M,
|
|
152
152
|
{
|
|
153
153
|
"aria-label": `View ${u?.name || ""} Transactions`,
|
|
154
154
|
disabled: i.categoryData.length === 0,
|
|
155
155
|
onClick: E,
|
|
156
156
|
sx: { mt: { xl: 4, xs: 0 }, zIndex: 1 },
|
|
157
157
|
variant: "text",
|
|
158
|
-
children:
|
|
158
|
+
children: r.view_transactions
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
] }) }) })
|
|
162
162
|
] });
|
|
163
|
-
}, et = w(
|
|
163
|
+
}, et = w(H), rt = ({ data: i, onSelected: l, selectedId: g }) => {
|
|
164
164
|
const d = (o, n) => {
|
|
165
165
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), l(n));
|
|
166
166
|
};
|
|
167
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ m(f, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((o) => /* @__PURE__ */ y(
|
|
168
168
|
f,
|
|
169
169
|
{
|
|
170
170
|
alignItems: "center",
|
|
@@ -178,8 +178,8 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
178
178
|
sx: { cursor: "pointer" },
|
|
179
179
|
tabIndex: 0,
|
|
180
180
|
children: [
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ m(R, { borderRadius: 4, height: 8, sx: { backgroundColor: o.color }, width: 8 }),
|
|
182
|
+
/* @__PURE__ */ m(h, { bold: o.guid === g, variant: "XSmall", children: o.name })
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
o.guid
|
|
@@ -188,6 +188,6 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
188
188
|
export {
|
|
189
189
|
et as S,
|
|
190
190
|
nt as a,
|
|
191
|
-
|
|
191
|
+
rt as b,
|
|
192
192
|
ot as g
|
|
193
193
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import i from "@mui/material/Box";
|
|
3
3
|
import p from "@mui/material/Stack";
|
|
4
|
-
const s = ({ data:
|
|
4
|
+
const s = ({ data: c, height: r = 8 }) => {
|
|
5
5
|
const o = `${r / 4}px`;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ a(
|
|
7
7
|
p,
|
|
8
8
|
{
|
|
9
9
|
bgcolor: "divider",
|
|
@@ -12,7 +12,7 @@ const s = ({ data: a, height: r = 8 }) => {
|
|
|
12
12
|
gap: 2,
|
|
13
13
|
height: r,
|
|
14
14
|
width: "100%",
|
|
15
|
-
children:
|
|
15
|
+
children: c.map((t, d) => /* @__PURE__ */ a(
|
|
16
16
|
i,
|
|
17
17
|
{
|
|
18
18
|
bgcolor: t.color,
|
|
@@ -24,7 +24,7 @@ const s = ({ data: a, height: r = 8 }) => {
|
|
|
24
24
|
))
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
};
|
|
27
|
+
}, l = s;
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
l as S
|
|
30
30
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
2
|
+
const b = ({
|
|
3
3
|
children: o,
|
|
4
4
|
index: t,
|
|
5
5
|
name: a,
|
|
6
|
-
value:
|
|
7
|
-
...
|
|
6
|
+
value: n,
|
|
7
|
+
...r
|
|
8
8
|
}) => /* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
"aria-labelledby": `${a}-tab-${t}`,
|
|
12
|
-
hidden:
|
|
12
|
+
hidden: n !== t,
|
|
13
13
|
id: `${a}-tabpanel-${t}`,
|
|
14
14
|
role: "tabpanel",
|
|
15
|
-
...
|
|
16
|
-
children:
|
|
15
|
+
...r,
|
|
16
|
+
children: n === t && o
|
|
17
17
|
}
|
|
18
|
-
);
|
|
18
|
+
), i = b;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
i as T
|
|
21
21
|
};
|