@mx-cartographer/experiences 8.1.0 → 8.1.2
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 +9 -0
- package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
- package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
- package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
- package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
- package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
- package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
- package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
- package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
- package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
- package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
- package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
- package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
- package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
- package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
- package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
- package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
- package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
- package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
- package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
- package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
- package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
- package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
- package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
- package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
- package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
- package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
- package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
- package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
- package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
- package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
- package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
- package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
- package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
- package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
- package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
- package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
- package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
- 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-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
- package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
- package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
- package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
- package/dist/accounts/index.es.js +29 -29
- package/dist/analytics/index.es.js +10 -10
- package/dist/budgets/index.es.js +19 -19
- package/dist/cashflow/index.es.js +110 -110
- package/dist/categories/index.es.js +2 -2
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
- package/dist/common/index.es.js +250 -250
- package/dist/core/index.es.js +64 -64
- package/dist/dashboard/index.es.js +22 -22
- package/dist/debts/index.es.js +22 -22
- package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
- package/dist/finstrong/index.es.js +22 -22
- package/dist/goals/index.es.js +17 -17
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
- package/dist/insights/index.es.js +328 -328
- package/dist/investments/index.es.js +10 -10
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +25 -25
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +23 -23
- package/dist/settings/index.es.js +96 -96
- package/dist/spending/index.es.js +65 -65
- package/dist/transactions/index.es.js +74 -74
- package/dist/trends/index.es.js +55 -55
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
- package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
- package/package.json +20 -20
- package/dist/DateUtil-C57sqxn4.mjs +0 -54
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
- package/dist/WidgetContainer-Bc75FqK7.mjs +0 -468
package/dist/trends/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as C, jsx as e, Fragment as vt } from "react/jsx-runtime";
|
|
2
2
|
import g, { useRef as Dt, useState as It, useEffect as Lt } from "react";
|
|
3
3
|
import { observer as A } from "mobx-react-lite";
|
|
4
|
-
import { CategoryIcon as we, Text as
|
|
4
|
+
import { CategoryIcon as we, Text as z, Icon as He, H3 as Ge, P as pe } from "@mxenabled/mxui";
|
|
5
5
|
import H from "@mui/material/Box";
|
|
6
6
|
import S from "@mui/material/Stack";
|
|
7
7
|
import Te from "@mui/material/Button";
|
|
@@ -11,41 +11,41 @@ import Et from "numeral";
|
|
|
11
11
|
import { useTheme as re, styled as Mt, alpha as At } from "@mui/material/styles";
|
|
12
12
|
import { useItemTooltip as Rt, ChartsTooltipContainer as kt } from "@mui/x-charts/ChartsTooltip";
|
|
13
13
|
import { LineChart as Ht } from "@mui/x-charts/LineChart";
|
|
14
|
-
import { u as Z } from "../useScreenSize-
|
|
14
|
+
import { u as Z } from "../useScreenSize-CeFhWTt_.mjs";
|
|
15
15
|
import { u as Nt } from "../useDimensions-CeDR9V8N.mjs";
|
|
16
16
|
import tt from "@mui/material/Card";
|
|
17
17
|
import ot from "@mui/material/CardContent";
|
|
18
18
|
import Ne from "@mui/material/Divider";
|
|
19
|
-
import
|
|
20
|
-
import { u as R, l as Q, g as
|
|
19
|
+
import ze from "@mui/material/Grid";
|
|
20
|
+
import { u as R, l as Q, g as $, b as fe, h as ve, d as De, D as ye, p as nt, f as Be, a as st } from "../hooks-HwStH7q_.mjs";
|
|
21
21
|
import { b as rt } from "../Localization-CkQ49EKr.mjs";
|
|
22
22
|
import { C as xe } from "../CurrencyText-oqd6cX3M.mjs";
|
|
23
|
-
import {
|
|
23
|
+
import { a as Re, b as $e, c as Wt } from "../Category-Ccoew_sA.mjs";
|
|
24
24
|
import { f as X, D as G } from "../DateFormats-CaOj_4eI.mjs";
|
|
25
25
|
import { f as se, a as Ot } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
26
|
-
import {
|
|
27
|
-
import { T as ms } from "../TrendsStore-
|
|
28
|
-
import { c as Vt, i as Ft, d as
|
|
26
|
+
import { a as Ke, c as Gt, g as Bt, L as Pt } from "../TrendsStore-bYjIGqyR.mjs";
|
|
27
|
+
import { T as ms } from "../TrendsStore-bYjIGqyR.mjs";
|
|
28
|
+
import { c as Vt, i as Ft, d as zt, e as $t, g as at, b as it, f as Ye } from "../SpendingData-Dj85XEUp.mjs";
|
|
29
29
|
import Kt from "@mui/material/ToggleButton";
|
|
30
30
|
import Yt from "@mui/material/ToggleButtonGroup";
|
|
31
31
|
import { parseISO as lt } from "date-fns/parseISO";
|
|
32
32
|
import { H as ke } from "../HeaderCell-P8w6CmfO.mjs";
|
|
33
|
-
import { T as W,
|
|
33
|
+
import { T as W, a as jt } from "../ViewMoreMicroCard-C7dC9lDT.mjs";
|
|
34
34
|
import { useGridApiContext as Ut, useGridRootProps as Xt, DataGridPro as Zt } from "@mui/x-data-grid-pro";
|
|
35
35
|
import Qt from "@mui/material/Badge";
|
|
36
36
|
import qt from "@mui/material/IconButton";
|
|
37
37
|
import { A as v } from "../Analytics-0Xm_BjHU.mjs";
|
|
38
|
-
import { T as ct } from "../EmbeddedCard-
|
|
39
|
-
import { T as dt } from "../TransactionDetails-
|
|
40
|
-
import { D as Pe } from "../Drawer-
|
|
41
|
-
import { u as Ie } from "../useWidgetLoadTimer-
|
|
42
|
-
import { L as Le } from "../Loader-
|
|
43
|
-
import { W as ut } from "../WidgetContainer-
|
|
44
|
-
import { L as Ve } from "../LineChart-
|
|
45
|
-
import { M as Jt } from "../MiniWidgetContainer-
|
|
38
|
+
import { T as ct } from "../EmbeddedCard-BCcn_fK2.mjs";
|
|
39
|
+
import { T as dt } from "../TransactionDetails-Db8dwHoM.mjs";
|
|
40
|
+
import { D as Pe } from "../Drawer-XPaLYjiO.mjs";
|
|
41
|
+
import { u as Ie } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
42
|
+
import { L as Le } from "../Loader-CxeBwuPG.mjs";
|
|
43
|
+
import { W as ut } from "../WidgetContainer-CCR7I0gu.mjs";
|
|
44
|
+
import { L as Ve } from "../LineChart-jJVBE8V8.mjs";
|
|
45
|
+
import { M as Jt } from "../MiniWidgetContainer-CmTGSUL5.mjs";
|
|
46
46
|
import { subMonths as eo } from "date-fns";
|
|
47
47
|
import { TrendingUp as to, TrendingDown as oo, MultilineChart as no, ExpandLess as so, ExpandMore as ro, ChevronRight as ao, ArrowBack as io } from "@mxenabled/mx-icons";
|
|
48
|
-
import { M as lo } from "../MicroWidgetContainer-
|
|
48
|
+
import { M as lo } from "../MicroWidgetContainer-CEcwdfti.mjs";
|
|
49
49
|
import co from "@mui/material/Collapse";
|
|
50
50
|
import We from "@mui/material/List";
|
|
51
51
|
import mt from "@mui/material/ListItem";
|
|
@@ -53,13 +53,13 @@ import uo from "@mui/material/ListItemButton";
|
|
|
53
53
|
import mo from "@mui/material/ListItemIcon";
|
|
54
54
|
import ht from "@mui/material/ListItemText";
|
|
55
55
|
import gt from "@mui/material/styles/useTheme";
|
|
56
|
-
import { b as Oe } from "../CategoryUtil-
|
|
56
|
+
import { b as Oe } from "../CategoryUtil-BJOHgYKS.mjs";
|
|
57
57
|
import { Stack as ho } from "@mui/material";
|
|
58
58
|
import go from "@mui/material/ListItemAvatar";
|
|
59
|
-
import { E as po } from "../ExportCsvAction-
|
|
60
|
-
import { u as fo } from "../useInsightsEnabled-
|
|
59
|
+
import { E as po } from "../ExportCsvAction-BPjdEUXx.mjs";
|
|
60
|
+
import { u as fo } from "../useInsightsEnabled-DzvRm5Bo.mjs";
|
|
61
61
|
import { E as yo } from "../EmptyState-DHAkGsjk.mjs";
|
|
62
|
-
import { C as Co } from "../ConnectDrawer-
|
|
62
|
+
import { C as Co } from "../ConnectDrawer-5BpU4IQU.mjs";
|
|
63
63
|
const pt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
|
|
64
64
|
const { categories: s } = R(), { getCategoryName: o } = Q(), r = o(t);
|
|
65
65
|
return /* @__PURE__ */ C(S, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
@@ -72,7 +72,7 @@ const pt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
|
|
|
72
72
|
children: /* @__PURE__ */ e(we, { categoryGuid: n })
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
/* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e(z, { variant: "body1", children: r })
|
|
76
76
|
] });
|
|
77
77
|
}, _o = ({
|
|
78
78
|
categoryGuids: { guid: t, topLevelGuid: n },
|
|
@@ -105,14 +105,14 @@ const pt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
|
|
|
105
105
|
children: /* @__PURE__ */ C(ot, { children: [
|
|
106
106
|
/* @__PURE__ */ C(H, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
107
107
|
/* @__PURE__ */ e(pt, { categoryGuid: t, topLevelCategoryGuid: n }),
|
|
108
|
-
/* @__PURE__ */ e(
|
|
108
|
+
/* @__PURE__ */ e(z, { variant: "body2", children: `${s.length}-month total` }),
|
|
109
109
|
/* @__PURE__ */ e(xe, { amount: i, bold: !0, formatString: "0,0", variant: "body2" })
|
|
110
110
|
] }),
|
|
111
111
|
/* @__PURE__ */ e(Ne, { sx: { my: 16, width: "100%" } }),
|
|
112
|
-
/* @__PURE__ */ e(
|
|
112
|
+
/* @__PURE__ */ e(ze, { container: !0, children: s.map((f, m) => /* @__PURE__ */ C(g.Fragment, { children: [
|
|
113
113
|
m > 0 && m % 3 === 0 && /* @__PURE__ */ e(Ne, { sx: { my: 16, width: "100%" } }),
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
/* @__PURE__ */ e(
|
|
114
|
+
/* @__PURE__ */ e(ze, { item: !0, xs: 4, children: /* @__PURE__ */ C(H, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
115
|
+
/* @__PURE__ */ e(z, { color: c.palette.text.secondary, variant: "caption", children: f.x }),
|
|
116
116
|
/* @__PURE__ */ e(
|
|
117
117
|
xe,
|
|
118
118
|
{
|
|
@@ -177,7 +177,7 @@ const pt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
),
|
|
180
|
-
/* @__PURE__ */ e(
|
|
180
|
+
/* @__PURE__ */ e(z, { variant: "body1", children: d(u) })
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
183
|
u
|
|
@@ -197,7 +197,7 @@ const pt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
|
|
|
197
197
|
const i = s.find((m) => m.id === d)?.data?.[a], f = o?.[a];
|
|
198
198
|
return i === void 0 || !f ? null : /* @__PURE__ */ e(tt, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ C(H, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
199
199
|
/* @__PURE__ */ e(pt, { categoryGuid: t, topLevelCategoryGuid: n }),
|
|
200
|
-
/* @__PURE__ */ e(
|
|
200
|
+
/* @__PURE__ */ e(z, { color: c.palette.text.secondary, variant: "body2", children: X(f, G.MONTH_SHORT_YEAR) }),
|
|
201
201
|
/* @__PURE__ */ e(xe, { amount: String(i), bold: !0, formatString: "0,0", variant: "body1" })
|
|
202
202
|
] }) }) });
|
|
203
203
|
}, xo = ({
|
|
@@ -474,16 +474,16 @@ const pt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
|
|
|
474
474
|
children: u
|
|
475
475
|
}
|
|
476
476
|
),
|
|
477
|
-
/* @__PURE__ */ e(
|
|
477
|
+
/* @__PURE__ */ e(z, { variant: r ? "subtitle1" : "body2", children: a })
|
|
478
478
|
] });
|
|
479
479
|
}, wo = (t) => {
|
|
480
480
|
const n = t.id === "total";
|
|
481
481
|
return /* @__PURE__ */ C(S, { alignItems: "center", direction: "row", role: "rowheader", tabIndex: t.tabIndex, children: [
|
|
482
482
|
!n && /* @__PURE__ */ e(H, { "aria-hidden": !0, children: /* @__PURE__ */ e(we, { categoryGuid: t.row.top_level_category_guid, variant: "twotone" }) }),
|
|
483
|
-
/* @__PURE__ */ e(
|
|
483
|
+
/* @__PURE__ */ e(z, { bold: n, sx: { ml: 12 }, variant: n ? "body1" : "body2", children: t.row.category })
|
|
484
484
|
] });
|
|
485
485
|
}, je = (t) => {
|
|
486
|
-
const n = t.row.category_guid, s = t.row.top_level_category_guid, o = n ===
|
|
486
|
+
const n = t.row.category_guid, s = t.row.top_level_category_guid, o = n === $e.INCOME || s === $e.INCOME, r = t.id === "total", c = t.field === "total", a = c ? t.row[t.field] : t.row.monthlyAmounts[t.field];
|
|
487
487
|
return /* @__PURE__ */ e(S, { alignItems: "flex-end", direction: "row", tabIndex: t.tabIndex, children: /* @__PURE__ */ e(
|
|
488
488
|
xe,
|
|
489
489
|
{
|
|
@@ -618,7 +618,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
618
618
|
rows: o,
|
|
619
619
|
totalRow: r
|
|
620
620
|
}) => {
|
|
621
|
-
const c = re(), { onEvent: a } =
|
|
621
|
+
const c = re(), { onEvent: a } = $(), d = c.palette.mode === "light";
|
|
622
622
|
return /* @__PURE__ */ e(
|
|
623
623
|
Zt,
|
|
624
624
|
{
|
|
@@ -724,7 +724,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
724
724
|
isOpen: s,
|
|
725
725
|
onClose: o
|
|
726
726
|
}) => {
|
|
727
|
-
const { onEvent: r } =
|
|
727
|
+
const { onEvent: r } = $(), { selectedAccountGuids: c } = fe(), { common: a } = R(), { setFilter: d, sortedTransactions: u } = ve(), [i, f] = g.useState(""), m = g.useMemo(
|
|
728
728
|
() => u.find((h) => h.guid === i),
|
|
729
729
|
[i, u]
|
|
730
730
|
);
|
|
@@ -753,7 +753,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
753
753
|
}
|
|
754
754
|
);
|
|
755
755
|
}, Ro = A(Ao), ko = ({ onBackClick: t, onMenuClick: n, sx: s }) => {
|
|
756
|
-
const { onEvent: o } =
|
|
756
|
+
const { onEvent: o } = $(), { isDesktop: r, isTablet: c, isMobile: a } = Z(), { isAccountDataLoaded: d, loadAccountData: u } = De(), {
|
|
757
757
|
categoriesLoaded: i,
|
|
758
758
|
loadCategories: f,
|
|
759
759
|
loadDateRangeCategoryTotals: m,
|
|
@@ -795,8 +795,8 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
795
795
|
(b) => b.top_level_category_guid === O || b.category_guid === O
|
|
796
796
|
) : Vt(D);
|
|
797
797
|
return {
|
|
798
|
-
stackedDatasets: l.filter(
|
|
799
|
-
unstackedDatasets: l.filter(
|
|
798
|
+
stackedDatasets: l.filter(zt),
|
|
799
|
+
unstackedDatasets: l.filter(Ft)
|
|
800
800
|
};
|
|
801
801
|
}, [h, O, x]), U = (D, l) => {
|
|
802
802
|
V(l ?? P), o(v.TRENDS_CLICK_TOGGLE_VIEW);
|
|
@@ -901,7 +901,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
901
901
|
}
|
|
902
902
|
);
|
|
903
903
|
}, as = A(ko), Ho = () => {
|
|
904
|
-
const { monthlyCategoryTotals: t } = Q(), { trends: n } = R(), s = re(), { availableHeight: o = 300 } = nt(), r = g.useMemo(() =>
|
|
904
|
+
const { monthlyCategoryTotals: t } = Q(), { trends: n } = R(), s = re(), { availableHeight: o = 300 } = nt(), r = g.useMemo(() => $t(t), [t]);
|
|
905
905
|
return /* @__PURE__ */ e(
|
|
906
906
|
Ve,
|
|
907
907
|
{
|
|
@@ -1037,7 +1037,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1037
1037
|
g.useEffect(() => {
|
|
1038
1038
|
n || s().finally();
|
|
1039
1039
|
}, []);
|
|
1040
|
-
const { onEvent: r } =
|
|
1040
|
+
const { onEvent: r } = $(), { monthlyCategoryTotals: c, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: d } = Q(), u = {
|
|
1041
1041
|
start: eo(/* @__PURE__ */ new Date(), 1),
|
|
1042
1042
|
end: /* @__PURE__ */ new Date()
|
|
1043
1043
|
}, { trends: i } = R(), { selectedAccounts: f, isInitialized: m } = fe();
|
|
@@ -1053,8 +1053,8 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1053
1053
|
}, [m, f]);
|
|
1054
1054
|
const { spendingData: _, incomeData: h } = g.useMemo(
|
|
1055
1055
|
() => ({
|
|
1056
|
-
spendingData:
|
|
1057
|
-
incomeData:
|
|
1056
|
+
spendingData: it(c, u),
|
|
1057
|
+
incomeData: at(c, u)
|
|
1058
1058
|
}),
|
|
1059
1059
|
[c, u]
|
|
1060
1060
|
), [p, y] = _, [T, N] = h, x = Ye(y.y, p.y), L = Ye(N.y, T.y), M = m && !o?.length, E = () => {
|
|
@@ -1114,7 +1114,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1114
1114
|
{
|
|
1115
1115
|
sx: { color: s.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
1116
1116
|
children: [
|
|
1117
|
-
/* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
1117
|
+
/* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(z, { bold: !0, variant: "body2", children: t ? "View less" : "View more" }) }),
|
|
1118
1118
|
/* @__PURE__ */ e(mo, { sx: { color: s.palette.primary.main }, children: t ? /* @__PURE__ */ e(so, {}) : /* @__PURE__ */ e(
|
|
1119
1119
|
ro,
|
|
1120
1120
|
{
|
|
@@ -1138,7 +1138,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1138
1138
|
isLastItem: c = !1,
|
|
1139
1139
|
showDivider: a = !0
|
|
1140
1140
|
}) => {
|
|
1141
|
-
const { trends: d } = R(), { onEvent: u } =
|
|
1141
|
+
const { trends: d } = R(), { onEvent: u } = $(), i = re(), f = `${o.length} ${o.length === 1 ? d.transaction : d.transactions}`, m = () => {
|
|
1142
1142
|
r?.(), u(v.TRENDS_CLICK_LIST_ITEM, {
|
|
1143
1143
|
...W,
|
|
1144
1144
|
listItem: s
|
|
@@ -1171,7 +1171,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1171
1171
|
}
|
|
1172
1172
|
), Po = A(
|
|
1173
1173
|
({ availableHeight: t = 0, onCategoryClick: n }) => {
|
|
1174
|
-
const { collapsedCategories: s, visibleCategories: o, setVisibleListLength: r } = ye(), { isLargeDesktop: c, isDesktop: a } = Z(), { trends: d } = R(), { onEvent: u } =
|
|
1174
|
+
const { collapsedCategories: s, visibleCategories: o, setVisibleListLength: r } = ye(), { isLargeDesktop: c, isDesktop: a } = Z(), { trends: d } = R(), { onEvent: u } = $(), [i, f] = g.useState(!1), m = a || c;
|
|
1175
1175
|
g.useEffect(() => {
|
|
1176
1176
|
const p = Math.floor(t / 64) - 1, y = o.length + s.length;
|
|
1177
1177
|
p !== o.length && (r(m ? Math.max(p, 5) : 5), f(p >= y));
|
|
@@ -1220,7 +1220,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1220
1220
|
] });
|
|
1221
1221
|
}
|
|
1222
1222
|
), Vo = ({ beats: t, onInsightCardClick: n }) => {
|
|
1223
|
-
const { onEvent: s } =
|
|
1223
|
+
const { onEvent: s } = $(), { isMobile: o, isDesktop: r, isLargeDesktop: c } = Z(), { beatStore: a, endpoint: d, sessionToken: u } = Be(), i = r || c, f = i || o ? 1 : 2, m = () => null, _ = (T) => {
|
|
1224
1224
|
n?.(T), s(v.TRENDS_CLICK_INSIGHT, W);
|
|
1225
1225
|
}, h = i ? 200 : 170, p = i ? 170 : 124, y = t.length > 0 ? h : p;
|
|
1226
1226
|
return /* @__PURE__ */ e(ho, { sx: { height: y }, children: /* @__PURE__ */ e(
|
|
@@ -1243,8 +1243,8 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1243
1243
|
visibleCardsCount: f
|
|
1244
1244
|
}
|
|
1245
1245
|
) });
|
|
1246
|
-
}, Fo = A(Vo),
|
|
1247
|
-
const { onEvent: s } =
|
|
1246
|
+
}, Fo = A(Vo), zo = A(({ chartLabel: t, chartColor: n }) => {
|
|
1247
|
+
const { onEvent: s } = $(), {
|
|
1248
1248
|
categoryDetailsChartData: { monthlyAmounts: o, tooltipLabels: r }
|
|
1249
1249
|
} = ye();
|
|
1250
1250
|
return /* @__PURE__ */ e(S, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ e(
|
|
@@ -1276,7 +1276,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1276
1276
|
valueFormatterString: "0,0"
|
|
1277
1277
|
}
|
|
1278
1278
|
) });
|
|
1279
|
-
}),
|
|
1279
|
+
}), $o = A(() => {
|
|
1280
1280
|
const t = gt(), { is_mobile_webview: n } = st(), { isDesktop: s, isSmallTablet: o, isTablet: r } = Z(), { common: c, trends: a } = R(), { selectedCategoryData: d, selectedDateRangeMonthRange: u } = ye(), { sortedTransactions: i } = ve(), [f, m] = g.useState(null);
|
|
1281
1281
|
if (!d)
|
|
1282
1282
|
return null;
|
|
@@ -1297,11 +1297,11 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1297
1297
|
secondaryTypographyProps: { component: "div", variant: "body2" }
|
|
1298
1298
|
}
|
|
1299
1299
|
),
|
|
1300
|
-
/* @__PURE__ */ e(
|
|
1300
|
+
/* @__PURE__ */ e(z, { component: "div", variant: "h3", children: se(Math.abs(y), "0,0.00") })
|
|
1301
1301
|
] }) }),
|
|
1302
|
-
/* @__PURE__ */ e(
|
|
1302
|
+
/* @__PURE__ */ e(zo, { chartColor: T, chartLabel: N }),
|
|
1303
1303
|
/* @__PURE__ */ C(S, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 12 }, children: [
|
|
1304
|
-
/* @__PURE__ */ e(
|
|
1304
|
+
/* @__PURE__ */ e(z, { bold: !0, variant: "body1", children: x }),
|
|
1305
1305
|
M && /* @__PURE__ */ e(po, { filter: E })
|
|
1306
1306
|
] })
|
|
1307
1307
|
] }),
|
|
@@ -1326,7 +1326,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1326
1326
|
)
|
|
1327
1327
|
] });
|
|
1328
1328
|
}), Ko = (t, n) => {
|
|
1329
|
-
const s =
|
|
1329
|
+
const s = at(t, n), o = it(t, n);
|
|
1330
1330
|
return [s, o].filter((r) => r.length > 0);
|
|
1331
1331
|
}, Yo = (t, n) => {
|
|
1332
1332
|
const [s, o] = t, r = s, c = o ?? s, a = [];
|
|
@@ -1345,7 +1345,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1345
1345
|
selectedDateRange: s,
|
|
1346
1346
|
totals: o
|
|
1347
1347
|
}) => {
|
|
1348
|
-
const r = re(), { onEvent: c } =
|
|
1348
|
+
const r = re(), { onEvent: c } = $(), { trends: a } = R(), { isSmallMobile: d, isMobile: u, isSmallTablet: i, isTablet: f } = Z(), m = [r.palette.chart?.chart1, r.palette.chart?.chart2], _ = Ko(o, s), h = Yo(_, a), [p, y] = g.useState(0), T = 458, N = 195, x = 56, L = u || d ? N : i || f ? T : p;
|
|
1349
1349
|
return g.useEffect(() => {
|
|
1350
1350
|
const E = Math.max(t - x, n);
|
|
1351
1351
|
y(E);
|
|
@@ -1417,7 +1417,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1417
1417
|
onInsightCardClick: s,
|
|
1418
1418
|
sx: o
|
|
1419
1419
|
}) => {
|
|
1420
|
-
const { onEvent: r } =
|
|
1420
|
+
const { onEvent: r } = $(), { config: c } = st(), { isDesktop: a, isLargeDesktop: d, isMobile: u } = Z(), { isAccountDataLoaded: i, loadAccountData: f, visibleAccounts: m } = De(), {
|
|
1421
1421
|
categoriesLoaded: _,
|
|
1422
1422
|
loadCategories: h,
|
|
1423
1423
|
loadDateRangeCategoryTotals: p,
|
|
@@ -1588,7 +1588,7 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1588
1588
|
onClose: Me,
|
|
1589
1589
|
shouldShowHeaderShadow: !0,
|
|
1590
1590
|
title: E?.is_income ? V.category_income : V.category_spending,
|
|
1591
|
-
children: E && /* @__PURE__ */ e(
|
|
1591
|
+
children: E && /* @__PURE__ */ e($o, {})
|
|
1592
1592
|
}
|
|
1593
1593
|
)
|
|
1594
1594
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as r, useEffect as c } from "react";
|
|
2
|
-
import { g as l } from "./hooks-
|
|
2
|
+
import { g as l } from "./hooks-HwStH7q_.mjs";
|
|
3
3
|
let n = !0;
|
|
4
4
|
const d = ({ widgetName: i, isLoaded: u = !0 }) => {
|
|
5
5
|
const { onEvent: o } = l(), t = r(null), s = r(!1), e = r(!1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"author": "MX",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,31 +190,31 @@
|
|
|
190
190
|
},
|
|
191
191
|
"dependencies": {
|
|
192
192
|
"@emotion/react": "^11.14.0",
|
|
193
|
-
"@emotion/styled": "^11.14.
|
|
193
|
+
"@emotion/styled": "^11.14.1",
|
|
194
194
|
"@mui/lab": "^5.0.0-alpha.177",
|
|
195
195
|
"@mui/material": "^5.18.0",
|
|
196
196
|
"@mui/system": "^5.18.0",
|
|
197
|
-
"@mui/x-charts": "^8.
|
|
198
|
-
"@mui/x-data-grid-pro": "^7.29.
|
|
197
|
+
"@mui/x-charts": "^8.28.2",
|
|
198
|
+
"@mui/x-data-grid-pro": "^7.29.12",
|
|
199
199
|
"@mui/x-date-pickers": "^7.29.4",
|
|
200
200
|
"@mui/x-date-pickers-pro": "^7.29.4",
|
|
201
201
|
"@mxenabled/cssinjs": "^0.6.0",
|
|
202
|
-
"@mxenabled/mx-icons": "^1.
|
|
202
|
+
"@mxenabled/mx-icons": "^1.8.0",
|
|
203
203
|
"@mxenabled/mxui": "^1.5.16",
|
|
204
|
-
"@mxenabled/web-widget-sdk": "^0.0.
|
|
205
|
-
"@tanstack/react-virtual": "^3.13.
|
|
206
|
-
"bowser": "^2.
|
|
204
|
+
"@mxenabled/web-widget-sdk": "^0.0.15",
|
|
205
|
+
"@tanstack/react-virtual": "^3.13.24",
|
|
206
|
+
"bowser": "^2.14.1",
|
|
207
207
|
"d3": "^7.9.0",
|
|
208
208
|
"date-fns": "^4.1.0",
|
|
209
|
-
"mobx": "^6.
|
|
210
|
-
"mobx-react-lite": "^4.1.
|
|
209
|
+
"mobx": "^6.15.0",
|
|
210
|
+
"mobx-react-lite": "^4.1.1",
|
|
211
211
|
"numeral": "^2.0.6",
|
|
212
|
-
"posthog-js": "^1.
|
|
212
|
+
"posthog-js": "^1.370.1",
|
|
213
213
|
"react": "^18.3.1",
|
|
214
|
-
"react-confetti": "^6.0
|
|
214
|
+
"react-confetti": "^6.4.0",
|
|
215
215
|
"react-dom": "^18.3.1",
|
|
216
|
-
"react-intersection-observer": "^
|
|
217
|
-
"uuid": "^
|
|
216
|
+
"react-intersection-observer": "^10.0.3",
|
|
217
|
+
"uuid": "^14.0.0"
|
|
218
218
|
},
|
|
219
219
|
"devDependencies": {
|
|
220
220
|
"@babel/core": "^7.26.10",
|
|
@@ -262,16 +262,16 @@
|
|
|
262
262
|
"path": "^0.12.7",
|
|
263
263
|
"prettier": "^3.5.3",
|
|
264
264
|
"prop-types": "^15.8.1",
|
|
265
|
-
"storybook": "^8.6.
|
|
265
|
+
"storybook": "^8.6.18",
|
|
266
266
|
"storybook-addon-mock": "^5.0.0",
|
|
267
267
|
"storybook-dark-mode": "4.0.1",
|
|
268
|
-
"typescript": "^5.
|
|
268
|
+
"typescript": "^5.9.3",
|
|
269
269
|
"vi-canvas-mock": "^1.0.0",
|
|
270
|
-
"vite": "
|
|
271
|
-
"vite-plugin-dts": "^4.5.
|
|
272
|
-
"vite-plugin-svgr": "^4.
|
|
270
|
+
"vite": "5.4.21",
|
|
271
|
+
"vite-plugin-dts": "^4.5.4",
|
|
272
|
+
"vite-plugin-svgr": "^4.5.0",
|
|
273
273
|
"vite-tsconfig-paths": "^5.1.4",
|
|
274
|
-
"vitest": "^3.
|
|
274
|
+
"vitest": "^3.2.4"
|
|
275
275
|
},
|
|
276
276
|
"peerDependencies": {
|
|
277
277
|
"@mui/material": "^5",
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { addMonths as s } from "date-fns/addMonths";
|
|
2
|
-
import { addQuarters as n } from "date-fns/addQuarters";
|
|
3
|
-
import { addWeeks as m } from "date-fns/addWeeks";
|
|
4
|
-
import { addYears as l } from "date-fns/addYears";
|
|
5
|
-
import { getDay as x } from "date-fns/getDay";
|
|
6
|
-
import { isBefore as a } from "date-fns/isBefore";
|
|
7
|
-
import { nextDay as p } from "date-fns/nextDay";
|
|
8
|
-
import { setDate as y } from "date-fns/setDate";
|
|
9
|
-
import { startOfToday as r } from "date-fns/startOfToday";
|
|
10
|
-
import { fromUnixTime as i } from "date-fns/fromUnixTime";
|
|
11
|
-
import { f as D, D as f } from "./DateFormats-CaOj_4eI.mjs";
|
|
12
|
-
const A = (e) => {
|
|
13
|
-
const t = x(e);
|
|
14
|
-
let o = p(e, t);
|
|
15
|
-
for (; a(o, r()); )
|
|
16
|
-
o = m(o, 1);
|
|
17
|
-
return o;
|
|
18
|
-
}, W = (e) => {
|
|
19
|
-
let t = e;
|
|
20
|
-
for (; a(t, r()); )
|
|
21
|
-
t = m(t, 2);
|
|
22
|
-
return t;
|
|
23
|
-
}, Y = (e) => {
|
|
24
|
-
let t = y(r(), e.getDate());
|
|
25
|
-
for (; a(t, r()); )
|
|
26
|
-
t = s(t, 1);
|
|
27
|
-
return t;
|
|
28
|
-
}, k = (e) => {
|
|
29
|
-
let t = e;
|
|
30
|
-
for (; a(t, r()); )
|
|
31
|
-
t = s(t, 2);
|
|
32
|
-
return t;
|
|
33
|
-
}, B = (e) => {
|
|
34
|
-
let t = n(e, 1);
|
|
35
|
-
for (; a(t, r()); )
|
|
36
|
-
t = n(t, 1);
|
|
37
|
-
return t;
|
|
38
|
-
}, E = (e) => {
|
|
39
|
-
let t = e;
|
|
40
|
-
for (; a(t, r()); )
|
|
41
|
-
t = n(t, 2);
|
|
42
|
-
return t;
|
|
43
|
-
}, Q = (e) => l(e, 1), F = (e) => D(i(e), f.DAY_OF_WEEK_MONTH_DAY), H = (e) => e ? D(i(e), f.MONTH_YEAR) : "";
|
|
44
|
-
export {
|
|
45
|
-
E as a,
|
|
46
|
-
B as b,
|
|
47
|
-
k as c,
|
|
48
|
-
Y as d,
|
|
49
|
-
W as e,
|
|
50
|
-
A as f,
|
|
51
|
-
Q as g,
|
|
52
|
-
F as h,
|
|
53
|
-
H as i
|
|
54
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Button";
|
|
3
|
-
import C from "@mui/material/Card";
|
|
4
|
-
import g from "@mui/material/CardContent";
|
|
5
|
-
import b from "@mui/material/CardHeader";
|
|
6
|
-
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
|
-
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
|
-
import { u as M } from "./useDimensions-CeDR9V8N.mjs";
|
|
9
|
-
import { W as w } from "./hooks-BxkfR-Ff.mjs";
|
|
10
|
-
const H = ({
|
|
11
|
-
children: e,
|
|
12
|
-
className: o,
|
|
13
|
-
ctaLabel: n,
|
|
14
|
-
onCTAClick: a,
|
|
15
|
-
subHeader: t,
|
|
16
|
-
sx: s,
|
|
17
|
-
title: c,
|
|
18
|
-
variant: d = "borderless"
|
|
19
|
-
}) => {
|
|
20
|
-
const [m, { height: l, width: h }] = M(), i = /* @__PURE__ */ p(f, { children: [
|
|
21
|
-
/* @__PURE__ */ r(
|
|
22
|
-
b,
|
|
23
|
-
{
|
|
24
|
-
action: /* @__PURE__ */ r(
|
|
25
|
-
x,
|
|
26
|
-
{
|
|
27
|
-
endIcon: /* @__PURE__ */ r(W, { size: 20 }),
|
|
28
|
-
onClick: a,
|
|
29
|
-
size: "small",
|
|
30
|
-
variant: "text",
|
|
31
|
-
children: n
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
subheader: t && /* @__PURE__ */ r(u, { sx: { color: "text.secondary" }, variant: "body2", children: t }),
|
|
35
|
-
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
|
36
|
-
title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ r(g, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: l, availableWidth: h, children: e }) })
|
|
40
|
-
] });
|
|
41
|
-
return d === "borderless" ? i : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: i });
|
|
42
|
-
}, F = H;
|
|
43
|
-
export {
|
|
44
|
-
F as M
|
|
45
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as i, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import b from "@mui/material/Box";
|
|
3
|
-
import C from "@mui/material/Button";
|
|
4
|
-
import u from "@mui/material/Card";
|
|
5
|
-
import v from "@mui/material/CardHeader";
|
|
6
|
-
import W from "@mui/material/CardContent";
|
|
7
|
-
import z from "@mui/material/IconButton";
|
|
8
|
-
import { Icon as H, ChevronRight as I } from "@mxenabled/mx-icons";
|
|
9
|
-
import { H3 as y, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
|
-
import { u as j } from "./useDimensions-CeDR9V8N.mjs";
|
|
11
|
-
import { W as w } from "./hooks-BxkfR-Ff.mjs";
|
|
12
|
-
const R = ({
|
|
13
|
-
children: a,
|
|
14
|
-
className: m = "mx-cmn-mini-widget",
|
|
15
|
-
closeLabel: d,
|
|
16
|
-
contentStyles: l,
|
|
17
|
-
onClose: e,
|
|
18
|
-
onPrimaryCtaClick: o,
|
|
19
|
-
primaryCtaLabel: s = "",
|
|
20
|
-
primaryCtaLabelAria: c = "",
|
|
21
|
-
subTitle: n = "",
|
|
22
|
-
sx: p = {},
|
|
23
|
-
title: t = ""
|
|
24
|
-
}) => {
|
|
25
|
-
const [h, { height: f, width: g }] = j();
|
|
26
|
-
return /* @__PURE__ */ r(u, { className: m, sx: { ...p }, children: [
|
|
27
|
-
/* @__PURE__ */ i(
|
|
28
|
-
v,
|
|
29
|
-
{
|
|
30
|
-
sx: { pb: 8 },
|
|
31
|
-
title: /* @__PURE__ */ r(x, { children: [
|
|
32
|
-
/* @__PURE__ */ r(
|
|
33
|
-
b,
|
|
34
|
-
{
|
|
35
|
-
sx: {
|
|
36
|
-
alignItems: "center",
|
|
37
|
-
display: "grid",
|
|
38
|
-
gap: 2,
|
|
39
|
-
gridTemplateColumns: "1fr auto",
|
|
40
|
-
pb: 4
|
|
41
|
-
},
|
|
42
|
-
children: [
|
|
43
|
-
t && /* @__PURE__ */ i(y, { children: t }),
|
|
44
|
-
e ? /* @__PURE__ */ i(z, { "aria-label": d, onClick: e, size: "small", children: /* @__PURE__ */ i(H, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(
|
|
45
|
-
C,
|
|
46
|
-
{
|
|
47
|
-
"aria-label": c,
|
|
48
|
-
endIcon: /* @__PURE__ */ i(I, {}),
|
|
49
|
-
onClick: o,
|
|
50
|
-
size: "small",
|
|
51
|
-
children: /* @__PURE__ */ i(B, { bold: !0, variant: "body2", children: s })
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "body2", children: n })
|
|
58
|
-
] })
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ i(W, { ref: h, sx: { p: 0, ...l }, children: /* @__PURE__ */ i(w, { availableHeight: f, availableWidth: g, children: a }) })
|
|
62
|
-
] });
|
|
63
|
-
}, J = R;
|
|
64
|
-
export {
|
|
65
|
-
J as M
|
|
66
|
-
};
|