@mx-cartographer/experiences 9.0.0 → 9.0.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 +8 -0
- package/dist/{CategorySelectorDrawer-CmaDLhnf.mjs → CategorySelectorDrawer-8soGrhB8.mjs} +1 -1
- package/dist/Dialog-Bvd2n8hz.mjs +66 -0
- package/dist/{ListItemAction-CwspSmQi.mjs → ListItemAction-CzZ8s39Z.mjs} +1 -1
- package/dist/{ManageIncome-B1JfqslT.mjs → ManageIncome-D1yBODQi.mjs} +2 -2
- package/dist/{NotificationSettings-6p-h5phZ.mjs → NotificationSettings-B4JA5IKE.mjs} +1 -1
- package/dist/{OriginalBalanceAction-CkJPnp2c.mjs → OriginalBalanceAction-BybTXDtO.mjs} +1 -1
- package/dist/{RecurringSettings-cm6MK_aS.mjs → RecurringSettings-D2xbNb67.mjs} +1 -1
- package/dist/{TransactionDetails-C3dlAzYf.mjs → TransactionDetails-DctXr07p.mjs} +2 -2
- package/dist/{WidgetContainer-DNuz_s7W.mjs → WidgetContainer-CmbU4CBH.mjs} +204 -201
- package/dist/accounts/index.es.js +3 -3
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +3 -3
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +3 -3
- package/dist/debts/index.es.js +3 -3
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +4 -4
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/settings/index.es.js +5 -5
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +5 -5
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
- package/dist/Dialog-CwWc0AbH.mjs +0 -63
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { observer as ie } from "mobx-react-lite";
|
|
4
|
+
import z from "@mui/material/Button";
|
|
5
|
+
import pe from "@mui/material/Card";
|
|
6
|
+
import he from "@mui/material/CardContent";
|
|
7
|
+
import ge from "@mui/material/Divider";
|
|
8
8
|
import $ from "@mui/material/IconButton";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { ChevronLeft as
|
|
12
|
-
import { Icon as
|
|
13
|
-
import { u as
|
|
14
|
-
import { G as
|
|
15
|
-
import { b as
|
|
16
|
-
import { addMonths as
|
|
17
|
-
import { addDays as
|
|
18
|
-
import { addYears as
|
|
19
|
-
import { differenceInCalendarDays as
|
|
20
|
-
import { endOfDay as
|
|
21
|
-
import { endOfMonth as
|
|
22
|
-
import { endOfToday as
|
|
23
|
-
import { endOfYear as
|
|
24
|
-
import { startOfMonth as
|
|
25
|
-
import { startOfToday as
|
|
26
|
-
import { startOfYear as
|
|
9
|
+
import fe from "@mui/material/Paper";
|
|
10
|
+
import Y from "@mui/material/Stack";
|
|
11
|
+
import { ChevronLeft as be } from "@mxenabled/mx-icons";
|
|
12
|
+
import { Icon as x, Text as F, DateRangePicker as Z } from "@mxenabled/mxui";
|
|
13
|
+
import { u as J } from "./useDimensions-CeDR9V8N.mjs";
|
|
14
|
+
import { G as _e } from "./GlobalAccountFilter-7Cg2-9A5.mjs";
|
|
15
|
+
import { b as se, u as le, g as Re, a as Ce, W as xe } from "./hooks-BaO_gOI6.mjs";
|
|
16
|
+
import { addMonths as ee } from "date-fns/addMonths";
|
|
17
|
+
import { addDays as De } from "date-fns/addDays";
|
|
18
|
+
import { addYears as te } from "date-fns/addYears";
|
|
19
|
+
import { differenceInCalendarDays as ye } from "date-fns/differenceInCalendarDays";
|
|
20
|
+
import { endOfDay as ke } from "date-fns/endOfDay";
|
|
21
|
+
import { endOfMonth as W } from "date-fns/endOfMonth";
|
|
22
|
+
import { endOfToday as ae } from "date-fns/endOfToday";
|
|
23
|
+
import { endOfYear as Te } from "date-fns/endOfYear";
|
|
24
|
+
import { startOfMonth as ve } from "date-fns/startOfMonth";
|
|
25
|
+
import { startOfToday as Me } from "date-fns/startOfToday";
|
|
26
|
+
import { startOfYear as Pe } from "date-fns/startOfYear";
|
|
27
27
|
import { subMonths as K } from "date-fns/subMonths";
|
|
28
|
-
import { subDays as
|
|
29
|
-
import { subYears as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { useTheme as
|
|
37
|
-
import { u as
|
|
38
|
-
import { D as
|
|
39
|
-
import { D as
|
|
40
|
-
import { u as
|
|
41
|
-
import { f as
|
|
42
|
-
import { L as
|
|
43
|
-
import
|
|
44
|
-
import { A as
|
|
45
|
-
const
|
|
46
|
-
const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } =
|
|
47
|
-
let
|
|
28
|
+
import { subDays as Se } from "date-fns/subDays";
|
|
29
|
+
import { subYears as re } from "date-fns/subYears";
|
|
30
|
+
import oe from "@mui/material/Box";
|
|
31
|
+
import Ee from "@mui/material/ButtonGroup";
|
|
32
|
+
import Ye from "@mui/material/Tab";
|
|
33
|
+
import Le from "@mui/material/Tabs";
|
|
34
|
+
import Ae from "@mui/material/ToggleButton";
|
|
35
|
+
import we from "@mui/material/ToggleButtonGroup";
|
|
36
|
+
import { useTheme as Be } from "@mui/material/styles";
|
|
37
|
+
import { u as Ne } from "./useAriaLive-MkYebyUR.mjs";
|
|
38
|
+
import { D as Oe } from "./Dialog-Bvd2n8hz.mjs";
|
|
39
|
+
import { D as Ie } from "./Drawer-BXqqBMxg.mjs";
|
|
40
|
+
import { u as de } from "./useScreenSize-mWpmnh5w.mjs";
|
|
41
|
+
import { f as M, D as P } from "./DateFormats-HudZ3Bjs.mjs";
|
|
42
|
+
import { L as Ge } from "./Loader-CxeBwuPG.mjs";
|
|
43
|
+
import He from "@mui/material/useMediaQuery";
|
|
44
|
+
import { A as ne } from "./Analytics-CzGzz_sE.mjs";
|
|
45
|
+
const We = (n) => {
|
|
46
|
+
const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = de(n), s = He("(min-width:900px)"), _ = 24;
|
|
47
|
+
let l = 48, D = 32, g = 0, c = "h1", R = !1;
|
|
48
48
|
const o = a || m;
|
|
49
|
-
r && !m ? (
|
|
50
|
-
const
|
|
49
|
+
r && !m ? (l = 24, D = 24, c = "h2") : o && (l = 8, D = 10, g = 10, c = "h3", R = !0);
|
|
50
|
+
const S = {
|
|
51
51
|
pb: o ? 12 : 0,
|
|
52
52
|
...o && {
|
|
53
|
-
px:
|
|
53
|
+
px: l,
|
|
54
54
|
"& .mx-cmn-date-range-selector": { m: 0, width: "100%" },
|
|
55
55
|
"& .mx-cmn-date-range-selector > .MuiBox-root": { display: "flex", justifyContent: "center" },
|
|
56
56
|
"& .MuiButtonGroup-root": { width: "100%" },
|
|
@@ -62,24 +62,24 @@ const Ie = (n) => {
|
|
|
62
62
|
actionsFlex: o ? 0 : 1,
|
|
63
63
|
containerSquareCorners: R,
|
|
64
64
|
headerHeadingLevel: c,
|
|
65
|
-
headerPaddingBottom:
|
|
66
|
-
headerPaddingTop:
|
|
67
|
-
headerPaddingX:
|
|
65
|
+
headerPaddingBottom: g,
|
|
66
|
+
headerPaddingTop: D,
|
|
67
|
+
headerPaddingX: l,
|
|
68
68
|
iconSize: _,
|
|
69
69
|
isCompact: o,
|
|
70
70
|
isDesktop: d,
|
|
71
|
-
isViewportAbove900:
|
|
72
|
-
slotSx:
|
|
71
|
+
isViewportAbove900: s,
|
|
72
|
+
slotSx: S
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, ze = ({
|
|
75
75
|
calendarActions: n,
|
|
76
76
|
color: d = "primary",
|
|
77
77
|
copy: a,
|
|
78
|
-
range: m = [
|
|
78
|
+
range: m = [ve(Me()), W(ae())],
|
|
79
79
|
shouldShrinkToIcon: r = !0,
|
|
80
|
-
variant:
|
|
80
|
+
variant: s = "outlined"
|
|
81
81
|
}) => {
|
|
82
|
-
const _ =
|
|
82
|
+
const _ = Be(), { isMobile: l } = de(), { announce: D, ariaLive: g } = Ne(), [c, R] = p.useState(m), [o, S] = p.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, L] = p.useState(c), [E, y] = p.useState(!1), [j, A] = p.useState(!0), [k, w] = p.useState(6), B = {
|
|
83
83
|
buttons: [
|
|
84
84
|
{ ariaLabel: "3 Months", label: "3M", value: 3 },
|
|
85
85
|
{ ariaLabel: "6 Months", label: "6M", value: 6 },
|
|
@@ -93,47 +93,47 @@ const Ie = (n) => {
|
|
|
93
93
|
{ label: "1 Year", value: 12 }
|
|
94
94
|
]
|
|
95
95
|
};
|
|
96
|
-
|
|
97
|
-
R(m),
|
|
98
|
-
}, [m]),
|
|
99
|
-
(
|
|
100
|
-
}, [
|
|
96
|
+
p.useEffect(() => {
|
|
97
|
+
R(m), L(m);
|
|
98
|
+
}, [m]), p.useEffect(() => {
|
|
99
|
+
(s === "timeframebuttons" || s === "timeframetabs") && n.onRangeChanged(V());
|
|
100
|
+
}, [k]);
|
|
101
101
|
const V = () => {
|
|
102
|
-
const t =
|
|
103
|
-
return [
|
|
104
|
-
},
|
|
105
|
-
const [
|
|
102
|
+
const t = W(ae());
|
|
103
|
+
return [W(K(t, k)), t];
|
|
104
|
+
}, N = (t) => {
|
|
105
|
+
const [i, u] = c, f = t === "previous";
|
|
106
106
|
let b;
|
|
107
107
|
if (o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth)
|
|
108
108
|
b = [
|
|
109
|
-
f ? K(
|
|
110
|
-
|
|
109
|
+
f ? K(i, 1) : ee(i, 1),
|
|
110
|
+
W(f ? K(u, 1) : ee(u, 1))
|
|
111
111
|
];
|
|
112
112
|
else if (o === a.dateRangePickerCopy.dateRangeYTD || o === a.dateRangePickerCopy.dateRangeLastYear) {
|
|
113
|
-
const
|
|
113
|
+
const T = Pe(i), v = Te(i);
|
|
114
114
|
b = [
|
|
115
|
-
f ?
|
|
116
|
-
f ?
|
|
115
|
+
f ? re(T, 1) : te(T, 1),
|
|
116
|
+
f ? re(v, 1) : te(v, 1)
|
|
117
117
|
];
|
|
118
118
|
} else {
|
|
119
|
-
const
|
|
120
|
-
b = [
|
|
119
|
+
const T = ye(u, i), v = f ? Se : De;
|
|
120
|
+
b = [v(i, T), v(u, T)];
|
|
121
121
|
}
|
|
122
122
|
R(b), n.onRangeChanged(b);
|
|
123
|
-
},
|
|
124
|
-
R(C),
|
|
123
|
+
}, O = () => {
|
|
124
|
+
R(C), A(
|
|
125
125
|
o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
|
|
126
126
|
), n.onRangeChanged(C);
|
|
127
|
-
},
|
|
127
|
+
}, I = (t, i) => {
|
|
128
128
|
t[1] = t[1] ?? t[0];
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
129
|
+
const u = [t[0], t[1] ? ke(t[1]) : t[1]], f = M(u[0], P.MONTH_DAY_YEAR), b = M(u[1], P.MONTH_DAY_YEAR);
|
|
130
|
+
L(u), S(i), D(`${a.dateRangePickerCopy}: ${f} - ${b}`);
|
|
131
|
+
}, G = (t) => {
|
|
132
|
+
w(t);
|
|
133
133
|
};
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
|
|
134
|
+
return /* @__PURE__ */ h(oe, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
135
|
+
/* @__PURE__ */ h(
|
|
136
|
+
oe,
|
|
137
137
|
{
|
|
138
138
|
sx: {
|
|
139
139
|
[_.breakpoints.down("sm")]: {
|
|
@@ -143,81 +143,81 @@ const Ie = (n) => {
|
|
|
143
143
|
[_.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
144
144
|
},
|
|
145
145
|
children: [
|
|
146
|
-
|
|
147
|
-
/* @__PURE__ */ e(
|
|
148
|
-
/* @__PURE__ */ e(
|
|
149
|
-
/* @__PURE__ */ e(
|
|
150
|
-
/* @__PURE__ */ e(
|
|
146
|
+
s === "readonly" && /* @__PURE__ */ h(Y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
147
|
+
/* @__PURE__ */ e(x, { name: "calendar_month", size: 24 }),
|
|
148
|
+
/* @__PURE__ */ e(F, { bold: !0, children: M(C[0], P.MONTH_DAY) }),
|
|
149
|
+
/* @__PURE__ */ e(x, { name: "remove" }),
|
|
150
|
+
/* @__PURE__ */ e(F, { bold: !0, children: M(C[1], P.MONTH_DAY_YEAR) })
|
|
151
151
|
] }),
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
s !== "readonly" && s !== "timeframebuttons" && s !== "timeframetabs" && /* @__PURE__ */ h(
|
|
153
|
+
Ee,
|
|
154
154
|
{
|
|
155
155
|
color: d,
|
|
156
156
|
sx: {
|
|
157
157
|
"& .MuiButtonGroup-grouped": {
|
|
158
|
-
padding:
|
|
158
|
+
padding: l ? 0 : 12
|
|
159
159
|
},
|
|
160
160
|
"& .MuiButtonGroup-middleButton": {
|
|
161
161
|
px: 24
|
|
162
162
|
},
|
|
163
163
|
height: 44
|
|
164
164
|
},
|
|
165
|
-
variant:
|
|
165
|
+
variant: s,
|
|
166
166
|
children: [
|
|
167
167
|
/* @__PURE__ */ e(
|
|
168
|
-
|
|
168
|
+
z,
|
|
169
169
|
{
|
|
170
170
|
"aria-disabled": n.shouldDisablePrevious,
|
|
171
171
|
"aria-label": a.dateRangePreviousAria,
|
|
172
172
|
color: n.shouldDisablePrevious ? "secondary" : "primary",
|
|
173
|
-
onClick: () => n.shouldDisablePrevious ? null :
|
|
174
|
-
children: /* @__PURE__ */ e(
|
|
173
|
+
onClick: () => n.shouldDisablePrevious ? null : N("previous"),
|
|
174
|
+
children: /* @__PURE__ */ e(x, { name: "chevron_left", size: 20 })
|
|
175
175
|
}
|
|
176
176
|
),
|
|
177
177
|
/* @__PURE__ */ e(
|
|
178
|
-
|
|
178
|
+
z,
|
|
179
179
|
{
|
|
180
180
|
"aria-disabled": n.shouldDisablePicker,
|
|
181
181
|
color: d,
|
|
182
|
-
onClick: () => n.shouldDisablePicker ? null :
|
|
183
|
-
startIcon: /* @__PURE__ */ e(
|
|
182
|
+
onClick: () => n.shouldDisablePicker ? null : y(!0),
|
|
183
|
+
startIcon: /* @__PURE__ */ e(x, { name: "calendar_month", size: 20 }),
|
|
184
184
|
sx: {
|
|
185
|
-
p:
|
|
185
|
+
p: l ? 0 : 8
|
|
186
186
|
},
|
|
187
|
-
children:
|
|
188
|
-
|
|
187
|
+
children: j ? M(c[0], P.MONTH_YEAR) : /* @__PURE__ */ h("span", { children: [
|
|
188
|
+
M(c[0], P.MONTH_DAY_YEAR),
|
|
189
189
|
" -",
|
|
190
190
|
" ",
|
|
191
|
-
|
|
191
|
+
M(c[1], P.MONTH_DAY_YEAR)
|
|
192
192
|
] })
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
195
|
/* @__PURE__ */ e(
|
|
196
|
-
|
|
196
|
+
z,
|
|
197
197
|
{
|
|
198
198
|
"aria-disabled": n.shouldDisableNext,
|
|
199
199
|
"aria-label": a.dateRangeNextAria,
|
|
200
200
|
color: n.shouldDisableNext ? "secondary" : "primary",
|
|
201
|
-
onClick: () => n.shouldDisableNext ? null :
|
|
202
|
-
children: /* @__PURE__ */ e(
|
|
201
|
+
onClick: () => n.shouldDisableNext ? null : N("next"),
|
|
202
|
+
children: /* @__PURE__ */ e(x, { name: "chevron_right", size: 20 })
|
|
203
203
|
}
|
|
204
204
|
)
|
|
205
205
|
]
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
s === "timeframebuttons" && /* @__PURE__ */ e(
|
|
209
|
+
we,
|
|
210
210
|
{
|
|
211
211
|
"aria-label": a.dateRangeEditTitle,
|
|
212
212
|
color: d,
|
|
213
213
|
exclusive: !0,
|
|
214
214
|
orientation: "horizontal",
|
|
215
|
-
value:
|
|
216
|
-
children:
|
|
217
|
-
|
|
215
|
+
value: k,
|
|
216
|
+
children: B.buttons.map((t) => /* @__PURE__ */ e(
|
|
217
|
+
Ae,
|
|
218
218
|
{
|
|
219
219
|
"aria-label": t.ariaLabel,
|
|
220
|
-
onClick: () =>
|
|
220
|
+
onClick: () => G(t.value),
|
|
221
221
|
sx: { width: 56 },
|
|
222
222
|
value: t.value,
|
|
223
223
|
children: t.label
|
|
@@ -226,18 +226,18 @@ const Ie = (n) => {
|
|
|
226
226
|
))
|
|
227
227
|
}
|
|
228
228
|
),
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
s === "timeframetabs" && /* @__PURE__ */ e(
|
|
230
|
+
Le,
|
|
231
231
|
{
|
|
232
232
|
indicatorColor: "primary",
|
|
233
|
-
onChange: (t,
|
|
233
|
+
onChange: (t, i) => G(i),
|
|
234
234
|
textColor: "primary",
|
|
235
|
-
value:
|
|
235
|
+
value: k,
|
|
236
236
|
variant: "fullWidth",
|
|
237
|
-
children:
|
|
238
|
-
|
|
237
|
+
children: B.tabs.map((t) => /* @__PURE__ */ e(
|
|
238
|
+
Ye,
|
|
239
239
|
{
|
|
240
|
-
label: /* @__PURE__ */ e(
|
|
240
|
+
label: /* @__PURE__ */ e(F, { bold: !0, variant: "body1", children: t.label }),
|
|
241
241
|
sx: { minWidth: 80 },
|
|
242
242
|
value: t.value
|
|
243
243
|
},
|
|
@@ -248,25 +248,25 @@ const Ie = (n) => {
|
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
E && l && /* @__PURE__ */ h(
|
|
252
|
+
Ie,
|
|
253
253
|
{
|
|
254
254
|
ariaLabelClose: a.dateRangeCloseAria,
|
|
255
|
-
isOpen:
|
|
256
|
-
onClose: () =>
|
|
255
|
+
isOpen: E,
|
|
256
|
+
onClose: () => y(!1),
|
|
257
257
|
onPrimaryAction: () => {
|
|
258
|
-
|
|
258
|
+
O(), y(!1);
|
|
259
259
|
},
|
|
260
260
|
primaryText: a.dateRangeEditApply,
|
|
261
261
|
title: a.dateRangeEditTitle,
|
|
262
262
|
children: [
|
|
263
|
-
|
|
263
|
+
g,
|
|
264
264
|
/* @__PURE__ */ e(
|
|
265
265
|
Z,
|
|
266
266
|
{
|
|
267
267
|
copy: a.dateRangePickerCopy,
|
|
268
268
|
dateRange: C,
|
|
269
|
-
onRangeChanged:
|
|
269
|
+
onRangeChanged: I,
|
|
270
270
|
selectedShortcut: o,
|
|
271
271
|
sx: { p: 0 }
|
|
272
272
|
}
|
|
@@ -274,13 +274,13 @@ const Ie = (n) => {
|
|
|
274
274
|
]
|
|
275
275
|
}
|
|
276
276
|
),
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
E && !l && /* @__PURE__ */ h(
|
|
278
|
+
Oe,
|
|
279
279
|
{
|
|
280
280
|
copy: { title: a.dateRangeEditTitle },
|
|
281
281
|
isOpen: !0,
|
|
282
|
-
onClose: () =>
|
|
283
|
-
onPrimaryAction: () =>
|
|
282
|
+
onClose: () => y(!1),
|
|
283
|
+
onPrimaryAction: () => O(),
|
|
284
284
|
primaryText: a.dateRangeEditApply,
|
|
285
285
|
sx: {
|
|
286
286
|
"& .MuiDialogContent-root": {
|
|
@@ -288,13 +288,13 @@ const Ie = (n) => {
|
|
|
288
288
|
}
|
|
289
289
|
},
|
|
290
290
|
children: [
|
|
291
|
-
|
|
291
|
+
g,
|
|
292
292
|
/* @__PURE__ */ e(
|
|
293
293
|
Z,
|
|
294
294
|
{
|
|
295
295
|
copy: a.dateRangePickerCopy,
|
|
296
296
|
dateRange: C,
|
|
297
|
-
onRangeChanged:
|
|
297
|
+
onRangeChanged: I,
|
|
298
298
|
selectedShortcut: o,
|
|
299
299
|
sx: {
|
|
300
300
|
pt: 0,
|
|
@@ -308,9 +308,9 @@ const Ie = (n) => {
|
|
|
308
308
|
}
|
|
309
309
|
)
|
|
310
310
|
] });
|
|
311
|
-
},
|
|
311
|
+
}, Fe = ie(
|
|
312
312
|
({ calendarActions: n, dateRange: d, dateRangeVariant: a }) => {
|
|
313
|
-
const { displayedDateRange: m } =
|
|
313
|
+
const { displayedDateRange: m } = se(), { common: r } = le(), s = {
|
|
314
314
|
dateRangePickerCopy: {
|
|
315
315
|
dateRangeFrom: r.date_range_picker.from,
|
|
316
316
|
dateRangeTo: r.date_range_picker.to,
|
|
@@ -328,92 +328,95 @@ const Ie = (n) => {
|
|
|
328
328
|
dateRangeEditTitle: r.date_range_picker.edit_title,
|
|
329
329
|
dateRangeNextAria: r.date_range_picker.next_aria,
|
|
330
330
|
dateRangePreviousAria: r.date_range_picker.previous_aria
|
|
331
|
-
}, _ = d ? d.start : m.start,
|
|
331
|
+
}, _ = d ? d.start : m.start, l = d ? d.end : m.end;
|
|
332
332
|
return /* @__PURE__ */ e(
|
|
333
|
-
|
|
333
|
+
ze,
|
|
334
334
|
{
|
|
335
335
|
calendarActions: n,
|
|
336
|
-
copy:
|
|
337
|
-
range: [_,
|
|
336
|
+
copy: s,
|
|
337
|
+
range: [_, l],
|
|
338
338
|
shouldShrinkToIcon: !1,
|
|
339
339
|
variant: a
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
-
),
|
|
343
|
+
), wt = ie(
|
|
344
344
|
({
|
|
345
345
|
actions: n,
|
|
346
346
|
allowedAccountTypes: d,
|
|
347
347
|
calendarActions: a,
|
|
348
348
|
children: m,
|
|
349
349
|
className: r = "mx-cmn-widget",
|
|
350
|
-
dateRange:
|
|
350
|
+
dateRange: s,
|
|
351
351
|
dateRangeVariant: _,
|
|
352
|
-
hasDivider:
|
|
353
|
-
onAccountsFilterClick:
|
|
354
|
-
onBackClick:
|
|
352
|
+
hasDivider: l = !1,
|
|
353
|
+
onAccountsFilterClick: D,
|
|
354
|
+
onBackClick: g,
|
|
355
355
|
onMenuClick: c,
|
|
356
356
|
showAccountFilter: R = !0,
|
|
357
357
|
slotComponent: o,
|
|
358
|
-
sx:
|
|
358
|
+
sx: S = {},
|
|
359
359
|
title: C = ""
|
|
360
360
|
}) => {
|
|
361
|
-
const [
|
|
362
|
-
actionsFlex:
|
|
363
|
-
containerSquareCorners:
|
|
364
|
-
headerHeadingLevel:
|
|
361
|
+
const [L, { height: E, width: y }] = J(), [j, { height: A, width: k }] = J(), { onEvent: w } = Re(), {
|
|
362
|
+
actionsFlex: B,
|
|
363
|
+
containerSquareCorners: V,
|
|
364
|
+
headerHeadingLevel: N,
|
|
365
365
|
headerPaddingBottom: O,
|
|
366
|
-
headerPaddingTop:
|
|
367
|
-
headerPaddingX:
|
|
368
|
-
iconSize:
|
|
369
|
-
isCompact:
|
|
370
|
-
isDesktop:
|
|
371
|
-
isViewportAbove900:
|
|
372
|
-
slotSx:
|
|
373
|
-
} =
|
|
374
|
-
config: { display_widget_headings:
|
|
375
|
-
} =
|
|
376
|
-
|
|
366
|
+
headerPaddingTop: I,
|
|
367
|
+
headerPaddingX: G,
|
|
368
|
+
iconSize: t,
|
|
369
|
+
isCompact: i,
|
|
370
|
+
isDesktop: u,
|
|
371
|
+
isViewportAbove900: f,
|
|
372
|
+
slotSx: b
|
|
373
|
+
} = We(y), { isCopyLoaded: T } = se(), { common: v } = le(), {
|
|
374
|
+
config: { display_widget_headings: me }
|
|
375
|
+
} = Ce(), ce = () => {
|
|
376
|
+
g && (g(), w(ne.WIDGET_BACK_CLICK));
|
|
377
377
|
};
|
|
378
|
-
if (
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
if (p.useEffect(() => {
|
|
379
|
+
w(ne.WIDGET_SIZE_CHANGED, {
|
|
380
|
+
height: A,
|
|
381
|
+
width: k
|
|
382
|
+
});
|
|
383
|
+
}, [A, k]), !T)
|
|
384
|
+
return /* @__PURE__ */ e(Ge, {});
|
|
385
|
+
const ue = () => c && i && !f ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(x, { name: "menu_open", size: t, sx: { transform: "rotate(180deg)" } }) }) : g ? /* @__PURE__ */ e(
|
|
383
386
|
$,
|
|
384
387
|
{
|
|
385
|
-
"aria-label":
|
|
388
|
+
"aria-label": v.back_to_dashboard,
|
|
386
389
|
color: "primary",
|
|
387
|
-
onClick:
|
|
390
|
+
onClick: ce,
|
|
388
391
|
sx: { p: 10 },
|
|
389
|
-
children: /* @__PURE__ */ e(
|
|
392
|
+
children: /* @__PURE__ */ e(be, { size: 24 })
|
|
390
393
|
}
|
|
391
|
-
) : null, X = a && /* @__PURE__ */ e(
|
|
392
|
-
|
|
394
|
+
) : null, X = a && /* @__PURE__ */ e(Y, { alignItems: "center", sx: b, children: /* @__PURE__ */ e(
|
|
395
|
+
Fe,
|
|
393
396
|
{
|
|
394
397
|
calendarActions: a,
|
|
395
|
-
dateRange:
|
|
398
|
+
dateRange: s,
|
|
396
399
|
dateRangeVariant: _
|
|
397
400
|
}
|
|
398
401
|
) });
|
|
399
402
|
return /* @__PURE__ */ e(
|
|
400
|
-
|
|
403
|
+
fe,
|
|
401
404
|
{
|
|
402
405
|
className: r,
|
|
403
406
|
elevation: 1,
|
|
404
|
-
ref:
|
|
405
|
-
square:
|
|
407
|
+
ref: L,
|
|
408
|
+
square: V,
|
|
406
409
|
sx: {
|
|
407
410
|
borderBottomLeftRadius: 0,
|
|
408
411
|
borderBottomRightRadius: 0,
|
|
409
412
|
margin: 0,
|
|
410
413
|
overflowY: "auto",
|
|
411
414
|
height: "100%",
|
|
412
|
-
...
|
|
415
|
+
...S
|
|
413
416
|
},
|
|
414
|
-
children: /* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
-
|
|
417
|
+
children: /* @__PURE__ */ h(pe, { children: [
|
|
418
|
+
/* @__PURE__ */ h(
|
|
419
|
+
Y,
|
|
417
420
|
{
|
|
418
421
|
alignItems: "center",
|
|
419
422
|
alignSelf: "stretch",
|
|
@@ -421,42 +424,42 @@ const Ie = (n) => {
|
|
|
421
424
|
justifyContent: "space-between",
|
|
422
425
|
sx: {
|
|
423
426
|
pb: O,
|
|
424
|
-
pt:
|
|
425
|
-
px:
|
|
427
|
+
pt: I,
|
|
428
|
+
px: G
|
|
426
429
|
},
|
|
427
430
|
children: [
|
|
428
|
-
|
|
429
|
-
/* @__PURE__ */ e(
|
|
430
|
-
!
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
-
|
|
431
|
+
ue(),
|
|
432
|
+
/* @__PURE__ */ e(Y, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: me && /* @__PURE__ */ e(F, { sx: { width: "100%" }, truncate: !0, variant: N, children: C }) }),
|
|
433
|
+
!i && (o || X),
|
|
434
|
+
/* @__PURE__ */ h(
|
|
435
|
+
Y,
|
|
433
436
|
{
|
|
434
437
|
alignItems: "center",
|
|
435
438
|
direction: "row",
|
|
436
439
|
justifyContent: "flex-end",
|
|
437
|
-
sx: { flex:
|
|
440
|
+
sx: { flex: B, flexShrink: 0 },
|
|
438
441
|
children: [
|
|
439
442
|
R && /* @__PURE__ */ e(
|
|
440
|
-
|
|
443
|
+
_e,
|
|
441
444
|
{
|
|
442
445
|
allowedAccountTypes: d,
|
|
443
|
-
isDesktop:
|
|
444
|
-
onAccountFilterClick:
|
|
446
|
+
isDesktop: u,
|
|
447
|
+
onAccountFilterClick: D
|
|
445
448
|
}
|
|
446
449
|
),
|
|
447
450
|
n?.map((q) => {
|
|
448
|
-
if (
|
|
449
|
-
return
|
|
450
|
-
const { iconName:
|
|
451
|
-
return
|
|
452
|
-
|
|
451
|
+
if (p.isValidElement(q))
|
|
452
|
+
return p.cloneElement(q, { isDesktop: u });
|
|
453
|
+
const { iconName: H, onClick: Q, label: U } = q;
|
|
454
|
+
return u ? /* @__PURE__ */ e(
|
|
455
|
+
z,
|
|
453
456
|
{
|
|
454
457
|
onClick: Q,
|
|
455
|
-
startIcon: /* @__PURE__ */ e(
|
|
458
|
+
startIcon: /* @__PURE__ */ e(x, { name: H, size: t }),
|
|
456
459
|
children: U
|
|
457
460
|
},
|
|
458
|
-
|
|
459
|
-
) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(
|
|
461
|
+
H
|
|
462
|
+
) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(x, { name: H, size: t }) }, H);
|
|
460
463
|
})
|
|
461
464
|
]
|
|
462
465
|
}
|
|
@@ -464,16 +467,16 @@ const Ie = (n) => {
|
|
|
464
467
|
]
|
|
465
468
|
}
|
|
466
469
|
),
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
/* @__PURE__ */ e(
|
|
470
|
+
i && (o || X),
|
|
471
|
+
i && l && /* @__PURE__ */ e(ge, {}),
|
|
472
|
+
/* @__PURE__ */ e(he, { ref: j, sx: { p: 0 }, children: /* @__PURE__ */ e(xe, { availableHeight: E, availableWidth: y, children: m }) })
|
|
470
473
|
] })
|
|
471
474
|
}
|
|
472
475
|
);
|
|
473
476
|
}
|
|
474
477
|
);
|
|
475
478
|
export {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
+
ze as D,
|
|
480
|
+
wt as W,
|
|
481
|
+
We as u
|
|
479
482
|
};
|