@mx-cartographer/experiences 7.13.21 → 7.13.22-alpha.al1
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/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-CG9VtEpj.mjs} +2 -2
- package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-BDFCEhSI.mjs} +2 -2
- package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-Bn1eH2EU.mjs} +1 -1
- package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-BCSxP3M3.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-tvJUjmwZ.mjs} +1 -1
- package/dist/{Connect-eYIWqCEr.mjs → Connect-CmjOgy5v.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-Be0RkL7I.mjs} +2 -2
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-yeD_PsY1.mjs} +2 -2
- package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-xu9UcYZR.mjs} +1 -1
- package/dist/DateRangeSelector-DE4UR77m.mjs +275 -0
- package/dist/{ExportCsvAction-izkIdXj5.mjs → ExportCsvAction-CLUDN8jI.mjs} +3 -3
- package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-BkUeAltd.mjs} +90 -96
- package/dist/{GoalStore-DB58sKTC.mjs → GoalStore-DMhiGiF4.mjs} +1 -1
- package/dist/{Help-D-laTbKu.mjs → Help-pcoNjCaF.mjs} +1 -1
- package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DIjY-HBq.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-BQIdxB-9.mjs} +1 -1
- package/dist/{ManageIncome-B1j-AzI1.mjs → ManageIncome-DWVaWpCT.mjs} +4 -4
- package/dist/{MicroWidgetContainer-B_EnfvCq.mjs → MicroWidgetContainer-CTMkXRJM.mjs} +1 -1
- package/dist/{MiniWidgetContainer-Bhkv-hpz.mjs → MiniWidgetContainer-BKPN3c-6.mjs} +1 -1
- package/dist/{NotificationSettings-C77J42Ue.mjs → NotificationSettings-O3iUw7-O.mjs} +32 -32
- package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-2lCGZTRv.mjs} +3 -3
- package/dist/{RecurringSettings-Dyj3i0ZJ.mjs → RecurringSettings-DNko1CD0.mjs} +2 -2
- package/dist/{SpendingLegend-BgjazduU.mjs → SpendingLegend-CGYqNtOp.mjs} +1 -1
- package/dist/{StatusIndicator-CIKUOoN_.mjs → StatusIndicator-CnDblSmc.mjs} +2 -2
- package/dist/{Transaction-CqjlF6SO.mjs → Transaction-Bd0myZzA.mjs} +1 -1
- package/dist/{TransactionDetails-CwqokbQo.mjs → TransactionDetails-DAB5arBD.mjs} +6 -6
- package/dist/{TransactionStore-rpqhGX8m.mjs → TransactionStore-hzVucfUK.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-D24H9kDm.mjs → ViewMoreMicroCard-BWCe3UeO.mjs} +1 -1
- package/dist/WidgetContainer-BPeSl0Dj.mjs +180 -0
- package/dist/WidgetContainerV2-C--dno2k.mjs +137 -0
- package/dist/accounts/index.es.js +218 -219
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +408 -409
- package/dist/cashflow/index.es.js +227 -228
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +4 -2
- package/dist/common/components/WidgetContainerV2.d.ts +4 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +167 -164
- package/dist/dashboard/index.es.js +5 -5
- package/dist/debts/index.es.js +585 -586
- package/dist/{exportTransactionsToCSV-CdTF_RqL.mjs → exportTransactionsToCSV-CamFllci.mjs} +1 -1
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/index.es.js +641 -652
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/index.es.js +498 -499
- package/dist/help/index.es.js +8 -8
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-DOWEalfb.mjs} +2 -2
- package/dist/insights/index.es.js +3 -3
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/index.es.js +448 -449
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +182 -196
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +240 -242
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/index.es.js +246 -248
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-DQc7zGqk.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DojdZhOg.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-DmYEMfRw.mjs} +1 -1
- package/package.json +1 -1
- package/dist/WidgetContainer-B7xDq2bM.mjs +0 -441
|
@@ -10,7 +10,7 @@ import { useTheme as A } from "@mui/material/styles";
|
|
|
10
10
|
import { CategoryIcon as G, CategoryIconVariants as O, Text as y, P as $ } from "@mxenabled/mxui";
|
|
11
11
|
import { D as j } from "./Donut-CpxJlVvJ.mjs";
|
|
12
12
|
import { u as R } from "./useAriaLive-MkYebyUR.mjs";
|
|
13
|
-
import { u as v } from "./hooks-
|
|
13
|
+
import { u as v } from "./hooks-DOWEalfb.mjs";
|
|
14
14
|
import { u as V } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
15
15
|
import { f as b } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
16
16
|
const D = 5, B = (i, l, g, c) => c.reduce((o, n) => {
|
|
@@ -5,13 +5,13 @@ import { useVirtualizer as H } from "@tanstack/react-virtual";
|
|
|
5
5
|
import y from "@mui/material/Box";
|
|
6
6
|
import W from "@mui/material/Divider";
|
|
7
7
|
import B from "@mui/material/List";
|
|
8
|
-
import { G as K, h as E, u as R,
|
|
8
|
+
import { G as K, h as E, u as R, f as P } from "./hooks-DOWEalfb.mjs";
|
|
9
9
|
import { MerchantLogo as Y, Icon as v, Text as l, P as Z, H2 as F } from "@mxenabled/mxui";
|
|
10
10
|
import q from "@mui/material/ListItemAvatar";
|
|
11
11
|
import J from "@mui/material/ListItemText";
|
|
12
12
|
import s from "@mui/material/Stack";
|
|
13
13
|
import { useTheme as Q } from "@mui/material/styles";
|
|
14
|
-
import { T as X, L as ee, O as te } from "./Transaction-
|
|
14
|
+
import { T as X, L as ee, O as te } from "./Transaction-Bd0myZzA.mjs";
|
|
15
15
|
import { f as re } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
16
16
|
import { Receipt as oe } from "@mxenabled/mx-icons";
|
|
17
17
|
import { fromUnixTime as w } from "date-fns/fromUnixTime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import A from "@mui/material/ListItem";
|
|
3
3
|
import o from "@mui/material/ListItemButton";
|
|
4
|
-
import {
|
|
4
|
+
import { f as O } from "./hooks-DOWEalfb.mjs";
|
|
5
5
|
const S = ({
|
|
6
6
|
children: T,
|
|
7
7
|
clickEventName: _,
|
|
@@ -8,14 +8,14 @@ import ce from "@mui/material/Paper";
|
|
|
8
8
|
import v from "@mui/material/Stack";
|
|
9
9
|
import { useTheme as U, alpha as Ce } from "@mui/material/styles";
|
|
10
10
|
import { P as j, Text as x, H2 as Ge, MerchantLogo as Se, Toast as Be, CategoryIcon as Ne, CategoryIconVariants as De, TextField as Ie, Icon as le } from "@mxenabled/mxui";
|
|
11
|
-
import { g as $e, C as Ke, a as Fe, b as He, i as Ue } from "./BudgetUtil-
|
|
11
|
+
import { g as $e, C as Ke, a as Fe, b as He, i as Ue } from "./BudgetUtil-BCSxP3M3.mjs";
|
|
12
12
|
import oe from "@mui/material/Button";
|
|
13
13
|
import Ve from "@mui/material/FormGroup";
|
|
14
14
|
import ae from "@mui/material/IconButton";
|
|
15
15
|
import Oe from "@mui/material/TextField";
|
|
16
16
|
import { u as pe } from "./useAriaLive-MkYebyUR.mjs";
|
|
17
|
-
import { O as y } from "./Transaction-
|
|
18
|
-
import { u as S, h as O, m as Ye, d as ze, l as Le,
|
|
17
|
+
import { O as y } from "./Transaction-Bd0myZzA.mjs";
|
|
18
|
+
import { u as S, h as O, m as Ye, d as ze, l as Le, f as w, b as We, o as je } from "./hooks-DOWEalfb.mjs";
|
|
19
19
|
import { A as H } from "./Analytics-BYItVAe-.mjs";
|
|
20
20
|
import qe from "@mui/material/ToggleButton";
|
|
21
21
|
import { ChevronRight as we, Icon as D, Delete as _e, Cancel as me, Search as Xe, Edit as Je, Flag as Qe } from "@mxenabled/mx-icons";
|
|
@@ -27,8 +27,8 @@ import $ from "@mui/material/ListItemText";
|
|
|
27
27
|
import { f as Re, D as Me } from "./DateFormats-BMpMrZpW.mjs";
|
|
28
28
|
import z from "@mui/material/ListItemButton";
|
|
29
29
|
import W from "@mui/material/ListItemIcon";
|
|
30
|
-
import { a as ke } from "./CategorySelectorDrawer-
|
|
31
|
-
import { b as Ze, T as et, u as J } from "./StatusIndicator-
|
|
30
|
+
import { a as ke } from "./CategorySelectorDrawer-tvJUjmwZ.mjs";
|
|
31
|
+
import { b as Ze, T as et, u as J } from "./StatusIndicator-CnDblSmc.mjs";
|
|
32
32
|
import { D as X } from "./Dialog-Ck34yr-d.mjs";
|
|
33
33
|
import { b as I } from "./Localization-CPkpIwIx.mjs";
|
|
34
34
|
import { getUnixTime as tt } from "date-fns/getUnixTime";
|
|
@@ -41,7 +41,7 @@ import { startOfMonth as at } from "date-fns/startOfMonth";
|
|
|
41
41
|
import { endOfMonth as ot } from "date-fns/endOfMonth";
|
|
42
42
|
import { i as it } from "./DateUtil-wcYTmDRD.mjs";
|
|
43
43
|
import xe from "@mui/material/Grid";
|
|
44
|
-
import { C as st } from "./CurrencyInput-
|
|
44
|
+
import { C as st } from "./CurrencyInput-xu9UcYZR.mjs";
|
|
45
45
|
import ct from "@mui/material/Switch";
|
|
46
46
|
import { L as lt } from "./Loader-D3rjKx72.mjs";
|
|
47
47
|
var ne = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(ne || {}), Z = /* @__PURE__ */ ((t) => (t[t.MerchantBudget = 0] = "MerchantBudget", t[t.SplitTransaction = 1] = "SplitTransaction", t[t.HideTransaction = 2] = "HideTransaction", t[t.MerchantLogo = 3] = "MerchantLogo", t))(Z || {});
|
|
@@ -12,10 +12,10 @@ import { isBefore as V } from "date-fns/isBefore";
|
|
|
12
12
|
import { startOfMonth as h } from "date-fns/startOfMonth";
|
|
13
13
|
import { startOfToday as m } from "date-fns/startOfToday";
|
|
14
14
|
import { subDays as v } from "date-fns/subDays";
|
|
15
|
-
import { O as n, a as y, T as b } from "./Transaction-
|
|
15
|
+
import { O as n, a as y, T as b } from "./Transaction-Bd0myZzA.mjs";
|
|
16
16
|
import { T as D } from "./TransactionApi-Ck5Ua-7F.mjs";
|
|
17
17
|
import { b as Y } from "./Category-CevNQ03n.mjs";
|
|
18
|
-
import { f as F } from "./exportTransactionsToCSV-
|
|
18
|
+
import { f as F } from "./exportTransactionsToCSV-CamFllci.mjs";
|
|
19
19
|
import { format as W } from "date-fns/format";
|
|
20
20
|
import { fromUnixTime as $ } from "date-fns/fromUnixTime";
|
|
21
21
|
import { f as C, D as I, O as k } from "./DateFormats-BMpMrZpW.mjs";
|
|
@@ -17,7 +17,7 @@ import Ze from "@mui/material/CircularProgress";
|
|
|
17
17
|
import { makeAutoObservable as le, runInAction as We } from "mobx";
|
|
18
18
|
import { G as he, b as Qe, u as qe, a as Je } from "./useCombineEvents-Bqojlv8q.mjs";
|
|
19
19
|
import { B as ge } from "./BeatApi-EFHXULDx.mjs";
|
|
20
|
-
import { u as et } from "./useWidgetLoadTimer-
|
|
20
|
+
import { u as et } from "./useWidgetLoadTimer-DmYEMfRw.mjs";
|
|
21
21
|
import tt from "@mui/material/Card";
|
|
22
22
|
import ot from "@mui/material/CardActionArea";
|
|
23
23
|
import nt from "@mui/material/Avatar";
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import P from "react";
|
|
3
|
+
import { observer as Y } from "mobx-react-lite";
|
|
4
|
+
import K from "@mui/material/Box";
|
|
5
|
+
import D from "@mui/material/Button";
|
|
6
|
+
import U from "@mui/material/Card";
|
|
7
|
+
import V from "@mui/material/CardContent";
|
|
8
|
+
import q from "@mui/material/CardHeader";
|
|
9
|
+
import S from "@mui/material/Divider";
|
|
10
|
+
import f from "@mui/material/IconButton";
|
|
11
|
+
import h from "@mui/material/Stack";
|
|
12
|
+
import { ChevronLeft as J } from "@mxenabled/mx-icons";
|
|
13
|
+
import { Icon as m, H2 as O, H3 as Q } from "@mxenabled/mxui";
|
|
14
|
+
import { u as X } from "./useDimensions-CeDR9V8N.mjs";
|
|
15
|
+
import { G as Z } from "./GlobalAccountFilter-BkUeAltd.mjs";
|
|
16
|
+
import { L as $ } from "./Loader-D3rjKx72.mjs";
|
|
17
|
+
import { f as ee, b as re, u as te, a as ae, W as oe } from "./hooks-DOWEalfb.mjs";
|
|
18
|
+
import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
19
|
+
import { D as I } from "./DateRangeSelector-DE4UR77m.mjs";
|
|
20
|
+
import { A as ne } from "./Analytics-BYItVAe-.mjs";
|
|
21
|
+
const Ie = Y(
|
|
22
|
+
({
|
|
23
|
+
allowedAccountTypes: w,
|
|
24
|
+
actions: u = [],
|
|
25
|
+
calendarActions: n,
|
|
26
|
+
children: L,
|
|
27
|
+
dateRange: s,
|
|
28
|
+
dateRangeVariant: x = "outlined",
|
|
29
|
+
className: T = "mx-cmn-widget",
|
|
30
|
+
hasDivider: A = !1,
|
|
31
|
+
onAccountsFilterClick: E,
|
|
32
|
+
onBackClick: p,
|
|
33
|
+
showAccountFilter: G = !0,
|
|
34
|
+
showDividerAboveDateSelector: z = !0,
|
|
35
|
+
sx: H = {},
|
|
36
|
+
title: _ = ""
|
|
37
|
+
}) => {
|
|
38
|
+
const [M, { height: W, width: y }] = X(), { onEvent: N } = ee(), { isDesktop: a, isMobile: o, isTablet: i } = ie(y), { displayedDateRange: C, isCopyLoaded: j } = re(), { common: r } = te(), { config: k } = ae(), B = () => {
|
|
39
|
+
p && (p(), N(ne.WIDGET_BACK_CLICK));
|
|
40
|
+
};
|
|
41
|
+
if (!j)
|
|
42
|
+
return /* @__PURE__ */ e($, {});
|
|
43
|
+
const R = {
|
|
44
|
+
dateRangePickerCopy: {
|
|
45
|
+
dateRangeFrom: r.date_range_picker.from,
|
|
46
|
+
dateRangeTo: r.date_range_picker.to,
|
|
47
|
+
dateRangeCustom: r.date_range_picker.custom,
|
|
48
|
+
dateRangeSelectARange: r.date_range_picker.select_range,
|
|
49
|
+
dateRangeThisMonth: r.date_range_picker.this_month,
|
|
50
|
+
dateRangeLastMonth: r.date_range_picker.last_month,
|
|
51
|
+
dateRangeLast30Days: r.date_range_picker.last_30_days,
|
|
52
|
+
dateRangeLast90Days: r.date_range_picker.last_90_days,
|
|
53
|
+
dateRangeYTD: r.date_range_picker.ytd,
|
|
54
|
+
dateRangeLastYear: r.date_range_picker.last_year,
|
|
55
|
+
dateRangeSelect: r.date_range_picker.select
|
|
56
|
+
},
|
|
57
|
+
dateRangeEditApply: r.date_range_picker.edit_apply,
|
|
58
|
+
dateRangeEditTitle: r.date_range_picker.edit_title,
|
|
59
|
+
dateRangeNextAria: r.date_range_picker.next_aria,
|
|
60
|
+
dateRangePreviousAria: r.date_range_picker.previous_aria
|
|
61
|
+
}, b = s ? s.start : C.start, v = s ? s.end : C.end, F = u?.length > 1;
|
|
62
|
+
return /* @__PURE__ */ c(
|
|
63
|
+
U,
|
|
64
|
+
{
|
|
65
|
+
className: T,
|
|
66
|
+
sx: {
|
|
67
|
+
...o && { px: 4 },
|
|
68
|
+
"& .mx-cmn-date-range-selector": {
|
|
69
|
+
...(o || i) && { textAlign: "center" }
|
|
70
|
+
},
|
|
71
|
+
...H
|
|
72
|
+
},
|
|
73
|
+
children: [
|
|
74
|
+
_ && /* @__PURE__ */ e(
|
|
75
|
+
q,
|
|
76
|
+
{
|
|
77
|
+
action: /* @__PURE__ */ c(h, { alignItems: "center", flexDirection: "row", children: [
|
|
78
|
+
a && n && /* @__PURE__ */ e(K, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
|
|
79
|
+
I,
|
|
80
|
+
{
|
|
81
|
+
calendarActions: n,
|
|
82
|
+
copy: R,
|
|
83
|
+
range: [b, v],
|
|
84
|
+
shouldShrinkToIcon: !1,
|
|
85
|
+
variant: x
|
|
86
|
+
}
|
|
87
|
+
) }),
|
|
88
|
+
G && /* @__PURE__ */ e(
|
|
89
|
+
Z,
|
|
90
|
+
{
|
|
91
|
+
allowedAccountTypes: w,
|
|
92
|
+
onAccountFilterClick: E
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
u?.map((g) => {
|
|
96
|
+
if (P.isValidElement(g)) return g;
|
|
97
|
+
const { iconName: t, onClick: d, label: l } = g;
|
|
98
|
+
return F ? a || i ? /* @__PURE__ */ e(
|
|
99
|
+
D,
|
|
100
|
+
{
|
|
101
|
+
onClick: d,
|
|
102
|
+
startIcon: /* @__PURE__ */ e(m, { name: t, size: 24 }),
|
|
103
|
+
sx: { my: 4 },
|
|
104
|
+
children: l
|
|
105
|
+
},
|
|
106
|
+
t
|
|
107
|
+
) : /* @__PURE__ */ e(
|
|
108
|
+
f,
|
|
109
|
+
{
|
|
110
|
+
"aria-label": l,
|
|
111
|
+
color: "primary",
|
|
112
|
+
onClick: d,
|
|
113
|
+
children: /* @__PURE__ */ e(m, { name: t, size: 24 })
|
|
114
|
+
},
|
|
115
|
+
t
|
|
116
|
+
) : a || i ? /* @__PURE__ */ e(
|
|
117
|
+
D,
|
|
118
|
+
{
|
|
119
|
+
onClick: d,
|
|
120
|
+
startIcon: /* @__PURE__ */ e(m, { name: t, size: 24 }),
|
|
121
|
+
sx: { my: 4 },
|
|
122
|
+
children: l
|
|
123
|
+
},
|
|
124
|
+
t
|
|
125
|
+
) : /* @__PURE__ */ e(f, { "aria-label": l, color: "primary", onClick: d, children: /* @__PURE__ */ e(m, { name: t, size: 24 }) }, t);
|
|
126
|
+
})
|
|
127
|
+
] }),
|
|
128
|
+
sx: {
|
|
129
|
+
p: a ? 48 : 24,
|
|
130
|
+
pb: 0,
|
|
131
|
+
"& .MuiCardHeader-action": {
|
|
132
|
+
mr: 0,
|
|
133
|
+
...n && a && { flexGrow: 1 },
|
|
134
|
+
...(o || i) && { alignSelf: "center" }
|
|
135
|
+
},
|
|
136
|
+
"& .MuiCardHeader-content": {
|
|
137
|
+
overflow: "hidden"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
title: (
|
|
141
|
+
// eslint-disable-next-line no-nested-ternary
|
|
142
|
+
a || i ? k.display_widget_headings ? /* @__PURE__ */ e(O, { variant: "h1", children: _ }) : null : /* @__PURE__ */ c(h, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
|
|
143
|
+
o && p && /* @__PURE__ */ e(
|
|
144
|
+
f,
|
|
145
|
+
{
|
|
146
|
+
"aria-label": r.back_to_dashboard,
|
|
147
|
+
color: "primary",
|
|
148
|
+
onClick: B,
|
|
149
|
+
sx: { p: 12, mr: 4 },
|
|
150
|
+
children: /* @__PURE__ */ e(J, { size: 24 })
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
k.display_widget_headings ? /* @__PURE__ */ e(Q, { children: _ }) : null
|
|
154
|
+
] })
|
|
155
|
+
)
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
A && /* @__PURE__ */ e(S, { sx: { mt: a ? 48 : 24 } }),
|
|
159
|
+
n && (o || i) && /* @__PURE__ */ c(h, { gap: 24, justifyContent: "center", sx: { mt: o ? 0 : 16 }, children: [
|
|
160
|
+
z && /* @__PURE__ */ e(S, {}),
|
|
161
|
+
/* @__PURE__ */ e(
|
|
162
|
+
I,
|
|
163
|
+
{
|
|
164
|
+
calendarActions: n,
|
|
165
|
+
copy: R,
|
|
166
|
+
range: [b, v],
|
|
167
|
+
shouldShrinkToIcon: !1,
|
|
168
|
+
variant: x
|
|
169
|
+
}
|
|
170
|
+
)
|
|
171
|
+
] }),
|
|
172
|
+
/* @__PURE__ */ e(V, { ref: M, sx: { p: 0 }, children: /* @__PURE__ */ e(oe, { availableHeight: W, availableWidth: y, children: L }) })
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
export {
|
|
179
|
+
Ie as W
|
|
180
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import N from "react";
|
|
3
|
+
import Y from "@mui/material/Button";
|
|
4
|
+
import C from "@mui/material/IconButton";
|
|
5
|
+
import r from "@mui/material/Stack";
|
|
6
|
+
import { Text as q } from "@mxenabled/mxui";
|
|
7
|
+
import { u as H } from "./useDimensions-CeDR9V8N.mjs";
|
|
8
|
+
import { G as U } from "./GlobalAccountFilter-BkUeAltd.mjs";
|
|
9
|
+
import { observer as V } from "mobx-react-lite";
|
|
10
|
+
import { Icon as _ } from "@mxenabled/mx-icons";
|
|
11
|
+
import X from "@mui/material/Paper";
|
|
12
|
+
import { L as J } from "./Loader-D3rjKx72.mjs";
|
|
13
|
+
import { u as K } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
|
+
import { b as O, u as Q, a as Z, W as $ } from "./hooks-DOWEalfb.mjs";
|
|
15
|
+
import { D as v } from "./DateRangeSelector-DE4UR77m.mjs";
|
|
16
|
+
const fe = V(
|
|
17
|
+
({
|
|
18
|
+
actions: T,
|
|
19
|
+
allowedAccountTypes: D,
|
|
20
|
+
calendarActions: i,
|
|
21
|
+
children: I,
|
|
22
|
+
className: w = "mx-cmn-widget",
|
|
23
|
+
dateRange: n,
|
|
24
|
+
elevation: L = 0,
|
|
25
|
+
dateRangeVariant: f,
|
|
26
|
+
onAccountsFilterClick: W,
|
|
27
|
+
showAccountFilter: z = !0,
|
|
28
|
+
sx: j = {},
|
|
29
|
+
title: A = ""
|
|
30
|
+
}) => {
|
|
31
|
+
const [G, { height: P, width: B }] = H(), { isDesktop: o, isMobile: l, isSmallTablet: a, isTablet: d } = K(), { displayedDateRange: h, isCopyLoaded: E, isInitialized: F } = O(), { common: e } = Q(), {
|
|
32
|
+
config: { display_widget_headings: M }
|
|
33
|
+
} = Z();
|
|
34
|
+
let c = 48, u = 32, k = 0, p = "h1";
|
|
35
|
+
if (d && !a ? (c = 24, u = 24, p = "h2") : (l || a) && (c = 8, k = 10, p = "h3"), !E)
|
|
36
|
+
return /* @__PURE__ */ t(J, {});
|
|
37
|
+
const x = {
|
|
38
|
+
dateRangePickerCopy: {
|
|
39
|
+
dateRangeFrom: e.date_range_picker.from,
|
|
40
|
+
dateRangeTo: e.date_range_picker.to,
|
|
41
|
+
dateRangeCustom: e.date_range_picker.custom,
|
|
42
|
+
dateRangeSelectARange: e.date_range_picker.select_range,
|
|
43
|
+
dateRangeThisMonth: e.date_range_picker.this_month,
|
|
44
|
+
dateRangeLastMonth: e.date_range_picker.last_month,
|
|
45
|
+
dateRangeLast30Days: e.date_range_picker.last_30_days,
|
|
46
|
+
dateRangeLast90Days: e.date_range_picker.last_90_days,
|
|
47
|
+
dateRangeYTD: e.date_range_picker.ytd,
|
|
48
|
+
dateRangeLastYear: e.date_range_picker.last_year,
|
|
49
|
+
dateRangeSelect: e.date_range_picker.select
|
|
50
|
+
},
|
|
51
|
+
dateRangeEditApply: e.date_range_picker.edit_apply,
|
|
52
|
+
dateRangeEditTitle: e.date_range_picker.edit_title,
|
|
53
|
+
dateRangeNextAria: e.date_range_picker.next_aria,
|
|
54
|
+
dateRangePreviousAria: e.date_range_picker.previous_aria
|
|
55
|
+
}, y = n ? n.start : h.start, R = n ? n.end : h.end;
|
|
56
|
+
return F ? /* @__PURE__ */ g(
|
|
57
|
+
X,
|
|
58
|
+
{
|
|
59
|
+
className: w,
|
|
60
|
+
elevation: L,
|
|
61
|
+
square: !0,
|
|
62
|
+
sx: { height: "100vh", ...j },
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ g(
|
|
65
|
+
r,
|
|
66
|
+
{
|
|
67
|
+
alignItems: "center",
|
|
68
|
+
alignSelf: "stretch",
|
|
69
|
+
direction: "row",
|
|
70
|
+
justifyContent: "space-between",
|
|
71
|
+
sx: { pb: k, pt: u, px: c },
|
|
72
|
+
children: [
|
|
73
|
+
(l || a) && /* @__PURE__ */ t(C, { color: "primary", sx: { p: 10 }, children: /* @__PURE__ */ t(_, { name: "menu_open", size: 24, sx: { transform: "rotate(180deg)" } }) }),
|
|
74
|
+
/* @__PURE__ */ t(r, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: M && /* @__PURE__ */ t(q, { sx: { width: "100%" }, truncate: !0, variant: p, children: A }) }),
|
|
75
|
+
(o || d && !a) && i && /* @__PURE__ */ t(r, { alignItems: "center", sx: { flex: 1, flexShrink: 0 }, children: /* @__PURE__ */ t(
|
|
76
|
+
v,
|
|
77
|
+
{
|
|
78
|
+
calendarActions: i,
|
|
79
|
+
copy: x,
|
|
80
|
+
range: [y, R],
|
|
81
|
+
shouldShrinkToIcon: !1,
|
|
82
|
+
variant: f
|
|
83
|
+
}
|
|
84
|
+
) }),
|
|
85
|
+
/* @__PURE__ */ g(
|
|
86
|
+
r,
|
|
87
|
+
{
|
|
88
|
+
alignItems: "center",
|
|
89
|
+
direction: "row",
|
|
90
|
+
justifyContent: "flex-end",
|
|
91
|
+
sx: { flex: o || d && !a ? 1 : 0, flexShrink: 0 },
|
|
92
|
+
children: [
|
|
93
|
+
z && /* @__PURE__ */ t(
|
|
94
|
+
U,
|
|
95
|
+
{
|
|
96
|
+
allowedAccountTypes: D,
|
|
97
|
+
onAccountFilterClick: W
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
T?.map((m) => {
|
|
101
|
+
if (N.isValidElement(m)) return m;
|
|
102
|
+
const { iconName: s, onClick: S, label: b } = m;
|
|
103
|
+
return o ? /* @__PURE__ */ t(
|
|
104
|
+
Y,
|
|
105
|
+
{
|
|
106
|
+
onClick: S,
|
|
107
|
+
startIcon: /* @__PURE__ */ t(_, { name: s, size: 24 }),
|
|
108
|
+
children: b
|
|
109
|
+
},
|
|
110
|
+
s
|
|
111
|
+
) : /* @__PURE__ */ t(C, { "aria-label": b, color: "primary", onClick: S, children: /* @__PURE__ */ t(_, { name: s, size: 24 }) }, s);
|
|
112
|
+
})
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
(l || a) && i && /* @__PURE__ */ t(
|
|
120
|
+
v,
|
|
121
|
+
{
|
|
122
|
+
calendarActions: i,
|
|
123
|
+
copy: x,
|
|
124
|
+
range: [y, R],
|
|
125
|
+
shouldShrinkToIcon: !1,
|
|
126
|
+
variant: f
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ t(r, { ref: G, sx: { p: o ? 48 : 24 }, children: /* @__PURE__ */ t($, { availableHeight: P, availableWidth: B, children: I }) })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
) : null;
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
export {
|
|
136
|
+
fe as W
|
|
137
|
+
};
|