@evolver-fi/evolver-basics-admin-components 0.0.19-beta.1 → 0.0.20
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/EnumSelectFilter-DiJhYa2m.js +40 -0
- package/dist/EnumSelectFilter-DiJhYa2m.js.map +1 -0
- package/dist/{ExpandMore-CFLBmfHS.js → ExpandMore-D6gf2UVG.js} +2 -2
- package/dist/{ExpandMore-CFLBmfHS.js.map → ExpandMore-D6gf2UVG.js.map} +1 -1
- package/dist/FilterLink-CHw7-m82.js +43 -0
- package/dist/FilterLink-CHw7-m82.js.map +1 -0
- package/dist/{JwtTokensRoute-CavNQu9F.js → JwtTokensRoute-B3SgLM0q.js} +8 -7
- package/dist/{JwtTokensRoute-CavNQu9F.js.map → JwtTokensRoute-B3SgLM0q.js.map} +1 -1
- package/dist/ScheduledTasksRoute-CNhOAAKd.js +1152 -0
- package/dist/ScheduledTasksRoute-CNhOAAKd.js.map +1 -0
- package/dist/SingleLogMessageRoute-C9CL51r-.js +274 -0
- package/dist/SingleLogMessageRoute-C9CL51r-.js.map +1 -0
- package/dist/SingleMessageRoute-DaaWvgfS.js +293 -0
- package/dist/SingleMessageRoute-DaaWvgfS.js.map +1 -0
- package/dist/Table-DgRqEB1x.js +154 -0
- package/dist/Table-DgRqEB1x.js.map +1 -0
- package/dist/TableMetadataDisplay-C7RP2ZrM.js +122 -0
- package/dist/TableMetadataDisplay-C7RP2ZrM.js.map +1 -0
- package/dist/TextFilter-BKUfkFQe.js +70 -0
- package/dist/TextFilter-BKUfkFQe.js.map +1 -0
- package/dist/{TriggerablesRoute-BY72XS5U.js → TriggerablesRoute-opCAjNCv.js} +1075 -1055
- package/dist/TriggerablesRoute-opCAjNCv.js.map +1 -0
- package/dist/createSvgIcon-Cf1cru4R.js +3945 -0
- package/dist/createSvgIcon-Cf1cru4R.js.map +1 -0
- package/dist/evolverClient-B_TZXnpV.js +1602 -0
- package/dist/evolverClient-B_TZXnpV.js.map +1 -0
- package/dist/filter/index.js +11 -0
- package/dist/filter/index.js.map +1 -0
- package/dist/jwt-tokens/index.js +1 -1
- package/dist/main/index.js +48 -31
- package/dist/main/index.js.map +1 -1
- package/dist/message-log/index.js +1 -1
- package/dist/message-sending/index.js +1 -1
- package/dist/{parser-CI353PAC.js → parser-Bj3mcA83.js} +2 -2
- package/dist/{parser-CI353PAC.js.map → parser-Bj3mcA83.js.map} +1 -1
- package/dist/scheduled-tasks/index.js +9 -5
- package/dist/table/index.js +6 -0
- package/dist/table/index.js.map +1 -0
- package/dist/triggerables/index.js +5 -3
- package/dist/types/admin-components/src/components/filter/index.d.ts +5 -0
- package/dist/types/admin-components/src/components/table/index.d.ts +3 -0
- package/dist/types/admin-components/src/index.d.ts +3 -1
- package/dist/types/admin-components/src/routes/jwt-tokens/JwtTokensRoute.d.ts +1 -1
- package/dist/types/admin-components/src/routes/scheduled-tasks/action.d.ts +20 -0
- package/dist/types/admin-components/src/routes/scheduled-tasks/index.d.ts +3 -2
- package/dist/types/admin-components/src/routes/triggerables/action.d.ts +10 -0
- package/dist/types/admin-components/src/routes/triggerables/index.d.ts +2 -1
- package/dist/types/filter.d.ts +2 -0
- package/dist/types/table.d.ts +2 -0
- package/dist/{validation-BRENvwZ0.js → validation-DStiilqx.js} +2 -2
- package/dist/{validation-BRENvwZ0.js.map → validation-DStiilqx.js.map} +1 -1
- package/package.json +9 -1
- package/dist/ScheduledTaskFormRoute-CnVsqh-c.js +0 -1039
- package/dist/ScheduledTaskFormRoute-CnVsqh-c.js.map +0 -1
- package/dist/SingleLogMessageRoute-B6hkr7rG.js +0 -305
- package/dist/SingleLogMessageRoute-B6hkr7rG.js.map +0 -1
- package/dist/SingleMessageRoute-Bxix2rv7.js +0 -320
- package/dist/SingleMessageRoute-Bxix2rv7.js.map +0 -1
- package/dist/TableMetadataDisplay-DTDUH1KY.js +0 -330
- package/dist/TableMetadataDisplay-DTDUH1KY.js.map +0 -1
- package/dist/TriggerablesRoute-BY72XS5U.js.map +0 -1
- package/dist/createSvgIcon-DCKQGUI3.js +0 -5543
- package/dist/createSvgIcon-DCKQGUI3.js.map +0 -1
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { j as p } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import * as
|
|
3
|
-
import Z, { Children as an, isValidElement as Se, cloneElement as Re, useState as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import Z, { Children as an, isValidElement as Se, cloneElement as Re, useState as Fe } from "react";
|
|
4
|
+
import { g as we, c as $e, a as Nt } from "./evolverClient-B_TZXnpV.js";
|
|
5
|
+
import { Card as ln, CardHeader as cn, CircularProgress as un, CardContent as ct, Typography as ce, CardActions as pn, Tooltip as ut, IconButton as pt, Collapse as dn, Box as fn, TextField as gn, Button as mn } from "@mui/material";
|
|
6
|
+
import { P as n, _ as f, b as $, d as hn, e as V, u as Ne, T as bn, f as vn, h as X, j as J, s as P, k as Oe, l as Y, m as Q, n as Ot, o as xn, p as Te, q as K, c as be, t as dt, v as ft, w as jt, x as yn, y as Me, z as Ye, r as Tn, i as En, A as Cn, B as Sn, C as Rn } from "./createSvgIcon-Cf1cru4R.js";
|
|
6
7
|
import { ThemeContext as Nn, keyframes as Ze } from "@emotion/react";
|
|
7
|
-
import { d as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
8
|
+
import { d as wt } from "./ExpandMore-D6gf2UVG.js";
|
|
9
|
+
import Ee from "react-dom";
|
|
10
|
+
import "axios";
|
|
11
|
+
import { useNavigate as On, useSubmit as jn, useLoaderData as wn, useActionData as $n } from "react-router";
|
|
12
|
+
function ke(e, t) {
|
|
11
13
|
return process.env.NODE_ENV === "production" ? () => null : function(...r) {
|
|
12
|
-
return e(...r) ||
|
|
14
|
+
return e(...r) || t(...r);
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
|
-
function
|
|
17
|
+
function Mn(e) {
|
|
16
18
|
const {
|
|
17
|
-
prototype:
|
|
19
|
+
prototype: t = {}
|
|
18
20
|
} = e;
|
|
19
|
-
return !!
|
|
21
|
+
return !!t.isReactComponent;
|
|
20
22
|
}
|
|
21
|
-
function
|
|
22
|
-
const s = e[
|
|
23
|
+
function kn(e, t, o, r, i) {
|
|
24
|
+
const s = e[t], a = i || t;
|
|
23
25
|
if (s == null || // When server-side rendering React doesn't warn either.
|
|
24
26
|
// This is not an accurate check for SSR.
|
|
25
27
|
// This is only in place for emotion compat.
|
|
@@ -27,193 +29,171 @@ function Mn(e, n, o, r, i) {
|
|
|
27
29
|
typeof window > "u")
|
|
28
30
|
return null;
|
|
29
31
|
let l;
|
|
30
|
-
return typeof s == "function" && !
|
|
32
|
+
return typeof s == "function" && !Mn(s) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
31
33
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
switch (
|
|
34
|
+
const $t = ke(n.elementType, kn), Pn = n.oneOfType([n.func, n.object]);
|
|
35
|
+
function In(e) {
|
|
36
|
+
const t = typeof e;
|
|
37
|
+
switch (t) {
|
|
36
38
|
case "number":
|
|
37
39
|
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
38
40
|
case "object":
|
|
39
41
|
return e === null ? "null" : e.constructor.name;
|
|
40
42
|
default:
|
|
41
|
-
return
|
|
43
|
+
return t;
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
|
-
function
|
|
46
|
+
function An(e) {
|
|
45
47
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
|
|
46
48
|
}
|
|
47
|
-
const Vn = Number.isInteger ||
|
|
48
|
-
function Mt(e,
|
|
49
|
-
const i = e[
|
|
49
|
+
const Vn = Number.isInteger || An;
|
|
50
|
+
function Mt(e, t, o, r) {
|
|
51
|
+
const i = e[t];
|
|
50
52
|
if (i == null || !Vn(i)) {
|
|
51
|
-
const s =
|
|
52
|
-
return new RangeError(`Invalid ${r} \`${
|
|
53
|
+
const s = In(i);
|
|
54
|
+
return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${o}\`, expected \`integer\`.`);
|
|
53
55
|
}
|
|
54
56
|
return null;
|
|
55
57
|
}
|
|
56
|
-
function kt(e,
|
|
57
|
-
return e[
|
|
58
|
+
function kt(e, t, ...o) {
|
|
59
|
+
return e[t] === void 0 ? null : Mt(e, t, ...o);
|
|
58
60
|
}
|
|
59
61
|
function Ue() {
|
|
60
62
|
return null;
|
|
61
63
|
}
|
|
62
64
|
kt.isRequired = Mt;
|
|
63
65
|
Ue.isRequired = Ue;
|
|
64
|
-
const
|
|
65
|
-
function
|
|
66
|
+
const Dn = process.env.NODE_ENV === "production" ? Ue : kt;
|
|
67
|
+
function Bn(e) {
|
|
66
68
|
return typeof e == "string";
|
|
67
69
|
}
|
|
68
|
-
function
|
|
69
|
-
return e === void 0 ||
|
|
70
|
-
ownerState: f({},
|
|
70
|
+
function zn(e, t, o) {
|
|
71
|
+
return e === void 0 || Bn(e) ? t : f({}, t, {
|
|
72
|
+
ownerState: f({}, t.ownerState, o)
|
|
71
73
|
});
|
|
72
74
|
}
|
|
73
|
-
function
|
|
75
|
+
function _n(e, t = []) {
|
|
74
76
|
if (e === void 0)
|
|
75
77
|
return {};
|
|
76
78
|
const o = {};
|
|
77
|
-
return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !
|
|
79
|
+
return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !t.includes(r)).forEach((r) => {
|
|
78
80
|
o[r] = e[r];
|
|
79
81
|
}), o;
|
|
80
82
|
}
|
|
81
83
|
function gt(e) {
|
|
82
84
|
if (e === void 0)
|
|
83
85
|
return {};
|
|
84
|
-
const
|
|
86
|
+
const t = {};
|
|
85
87
|
return Object.keys(e).filter((o) => !(o.match(/^on[A-Z]/) && typeof e[o] == "function")).forEach((o) => {
|
|
86
|
-
|
|
87
|
-
}),
|
|
88
|
+
t[o] = e[o];
|
|
89
|
+
}), t;
|
|
88
90
|
}
|
|
89
91
|
function Ln(e) {
|
|
90
92
|
const {
|
|
91
|
-
getSlotProps:
|
|
93
|
+
getSlotProps: t,
|
|
92
94
|
additionalProps: o,
|
|
93
95
|
externalSlotProps: r,
|
|
94
96
|
externalForwardedProps: i,
|
|
95
97
|
className: s
|
|
96
98
|
} = e;
|
|
97
|
-
if (!
|
|
98
|
-
const x =
|
|
99
|
-
return x.length > 0 && (
|
|
100
|
-
props:
|
|
99
|
+
if (!t) {
|
|
100
|
+
const x = $(o == null ? void 0 : o.className, s, i == null ? void 0 : i.className, r == null ? void 0 : r.className), y = f({}, o == null ? void 0 : o.style, i == null ? void 0 : i.style, r == null ? void 0 : r.style), T = f({}, o, i, r);
|
|
101
|
+
return x.length > 0 && (T.className = x), Object.keys(y).length > 0 && (T.style = y), {
|
|
102
|
+
props: T,
|
|
101
103
|
internalRef: void 0
|
|
102
104
|
};
|
|
103
105
|
}
|
|
104
|
-
const a =
|
|
105
|
-
return
|
|
106
|
-
props:
|
|
106
|
+
const a = _n(f({}, i, r)), l = gt(r), u = gt(i), c = t(a), d = $(c == null ? void 0 : c.className, o == null ? void 0 : o.className, s, i == null ? void 0 : i.className, r == null ? void 0 : r.className), g = f({}, c == null ? void 0 : c.style, o == null ? void 0 : o.style, i == null ? void 0 : i.style, r == null ? void 0 : r.style), m = f({}, c, o, u, l);
|
|
107
|
+
return d.length > 0 && (m.className = d), Object.keys(g).length > 0 && (m.style = g), {
|
|
108
|
+
props: m,
|
|
107
109
|
internalRef: c.ref
|
|
108
110
|
};
|
|
109
111
|
}
|
|
110
|
-
function
|
|
111
|
-
return typeof e == "function" ? e(
|
|
112
|
+
function Wn(e, t, o) {
|
|
113
|
+
return typeof e == "function" ? e(t, o) : e;
|
|
112
114
|
}
|
|
113
|
-
const Pt = (e) => (e || we()).get("
|
|
115
|
+
const Pt = (e) => (e || we()).get("trigger"), Fn = (e) => new URLSearchParams(e), It = (e, t, o) => {
|
|
116
|
+
const r = o || we(), i = Fn(t), s = i.toString() ? `?${i.toString()}` : "";
|
|
117
|
+
return r.post(`trigger/${e}/async${s}`);
|
|
118
|
+
}, _e = $e("triggerables/fetchTriggerables", async (e, t) => {
|
|
114
119
|
const o = await Pt();
|
|
115
|
-
return o.status !== 200 ?
|
|
116
|
-
message: "Failed to fetch
|
|
117
|
-
}) : o.data;
|
|
118
|
-
}), Fn = Me("task/fetchTaskStatus", async (e, n) => {
|
|
119
|
-
const o = await Wn(e);
|
|
120
|
-
return o.status !== 200 ? n.rejectWithValue({
|
|
121
|
-
message: `Failed to fetch task status for ${e}`
|
|
120
|
+
return o.status !== 200 ? t.rejectWithValue({
|
|
121
|
+
message: "Failed to fetch triggerables"
|
|
122
122
|
}) : o.data;
|
|
123
|
+
}), Le = $e("triggerables/trigger", async ({ triggerName: e, triggerParams: t }, o) => {
|
|
124
|
+
const r = await It(e, t);
|
|
125
|
+
return r.status !== 200 ? o.rejectWithValue({
|
|
126
|
+
message: "Failed to fetch triggerables"
|
|
127
|
+
}) : r.data;
|
|
123
128
|
}), Un = {
|
|
129
|
+
triggerables: {},
|
|
124
130
|
fetchStatus: "loading"
|
|
125
131
|
};
|
|
126
132
|
Nt({
|
|
127
|
-
name: "
|
|
133
|
+
name: "triggerable",
|
|
128
134
|
initialState: Un,
|
|
129
135
|
reducers: {},
|
|
130
136
|
extraReducers: (e) => {
|
|
131
|
-
e.addCase(_e.pending, (
|
|
132
|
-
|
|
133
|
-
}), e.addCase(_e.fulfilled, (
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
e.addCase(_e.pending, (t) => {
|
|
138
|
+
t.fetchStatus = "loading", t.fetchError = "undefined";
|
|
139
|
+
}), e.addCase(_e.fulfilled, (t, { payload: o }) => {
|
|
140
|
+
t.triggerables = o, t.fetchStatus = "succeeded";
|
|
141
|
+
}), e.addCase(_e.rejected, (t, { payload: o }) => {
|
|
142
|
+
o && (t.fetchError = o.message), t.fetchStatus = "failed";
|
|
143
|
+
}), e.addCase(Le.pending, (t) => {
|
|
144
|
+
t.triggerStatus = "loading";
|
|
145
|
+
}), e.addCase(Le.fulfilled, (t, { payload: o }) => {
|
|
146
|
+
t.triggerResponse = o, t.triggerStatus = "succeeded";
|
|
147
|
+
}), e.addCase(Le.rejected, (t, { payload: o }) => {
|
|
148
|
+
o && (t.triggerError = o.message), t.triggerStatus = "failed";
|
|
142
149
|
});
|
|
143
150
|
}
|
|
144
151
|
});
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
var It = Je.default = void 0, qn = Gn(mn()), Hn = p;
|
|
150
|
-
It = Je.default = (0, qn.default)(/* @__PURE__ */ (0, Hn.jsx)("path", {
|
|
151
|
-
d: "M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"
|
|
152
|
-
}), "EventNote");
|
|
153
|
-
const Kn = ({ taskStatus: e, openMessageChain: n }) => {
|
|
154
|
-
const [o, r] = Z.useState(!1), i = () => {
|
|
155
|
-
r(!o);
|
|
156
|
-
};
|
|
157
|
-
return p.jsxs(ln, { children: [p.jsx(cn, { title: `#${e.id} ${e.group}`, subheader: e.description, avatar: e.state === "RUNNING" || e.state === "CANCELLING" ? p.jsx(un, {}) : void 0 }), p.jsxs(ct, { children: [p.jsx(ce, { variant: "body2", color: "textSecondary", component: "p", children: `Task state is ${e.state}. ${e.durationMs ? `Run took ${e.durationMs / 1e3} seconds.` : ""}` }), p.jsx(ce, { variant: "body2", color: "textSecondary", component: "p", children: e.message })] }), p.jsxs(dn, { disableSpacing: !0, children: [p.jsx(ut, { title: "Show message chain", children: p.jsx(dt, { "aria-label": "show message chain", onClick: () => {
|
|
158
|
-
const s = e.metadata.find((a) => a.key === "MessageChainId");
|
|
159
|
-
s && n(Number(s.value));
|
|
160
|
-
}, children: p.jsx(It, {}) }) }), p.jsx(ut, { title: o ? "Hide metadata" : "Show metadata", children: p.jsx(dt, { sx: {
|
|
161
|
-
transform: o ? "rotate(180deg)" : "rotate(0deg)",
|
|
162
|
-
marginLeft: "auto",
|
|
163
|
-
transition: "transform duration.shortest",
|
|
164
|
-
// TODO: create a story and test this
|
|
165
|
-
display: e.metadata.length ? "flex" : "none"
|
|
166
|
-
}, onClick: i, "aria-expanded": o, "aria-label": "show metadata", children: p.jsx(jt, {}) }) })] }), p.jsx(pn, { in: o, timeout: "auto", unmountOnExit: !0, children: p.jsxs(ct, { children: [p.jsx(ce, { paragraph: !0, children: "Metadata:" }), e.metadata.map((s) => p.jsxs(ce, { children: [s.key, ": ", s.value] }, `task-status-md-${e.id}-${s.key}`))] }) })] });
|
|
167
|
-
}, Vt = (e) => (e || we()).get("trigger"), Xn = (e) => new URLSearchParams(e), At = (e, n, o) => {
|
|
168
|
-
const r = we(), i = Xn(n), s = i.toString() ? `?${i.toString()}` : "";
|
|
169
|
-
return r.post(`trigger/${e}/async${s}`);
|
|
170
|
-
}, We = Me("triggerables/fetchTriggerables", async (e, n) => {
|
|
171
|
-
const o = await Vt();
|
|
172
|
-
return o.status !== 200 ? n.rejectWithValue({
|
|
173
|
-
message: "Failed to fetch triggerables"
|
|
152
|
+
const At = (e) => (e || we()).get("task/list/active"), Gn = (e, t) => we().get(`task/${e}`), We = $e("task/fetchActiveTasks", async (e, t) => {
|
|
153
|
+
const o = await At();
|
|
154
|
+
return o.status !== 200 ? t.rejectWithValue({
|
|
155
|
+
message: "Failed to fetch task statuses"
|
|
174
156
|
}) : o.data;
|
|
175
|
-
}),
|
|
176
|
-
const
|
|
177
|
-
return
|
|
178
|
-
message:
|
|
179
|
-
}) :
|
|
180
|
-
}),
|
|
181
|
-
triggerables: {},
|
|
157
|
+
}), qn = $e("task/fetchTaskStatus", async (e, t) => {
|
|
158
|
+
const o = await Gn(e);
|
|
159
|
+
return o.status !== 200 ? t.rejectWithValue({
|
|
160
|
+
message: `Failed to fetch task status for ${e}`
|
|
161
|
+
}) : o.data;
|
|
162
|
+
}), Hn = {
|
|
182
163
|
fetchStatus: "loading"
|
|
183
164
|
};
|
|
184
165
|
Nt({
|
|
185
|
-
name: "
|
|
186
|
-
initialState:
|
|
166
|
+
name: "taskStatus",
|
|
167
|
+
initialState: Hn,
|
|
187
168
|
reducers: {},
|
|
188
169
|
extraReducers: (e) => {
|
|
189
|
-
e.addCase(We.pending, (
|
|
190
|
-
|
|
191
|
-
}), e.addCase(We.fulfilled, (
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
o && (n.triggerError = o.message), n.triggerStatus = "failed";
|
|
170
|
+
e.addCase(We.pending, (t) => {
|
|
171
|
+
t.fetchStatus = "loading", t.fetchError = "undefined";
|
|
172
|
+
}), e.addCase(We.fulfilled, (t, { payload: o }) => {
|
|
173
|
+
let r = {};
|
|
174
|
+
t.triggeredTaskStatuses && (r = { ...t.triggeredTaskStatuses }), o.forEach((i) => {
|
|
175
|
+
r[i.id] = i;
|
|
176
|
+
}), t.activeTaskStatuses = r, t.fetchStatus = "succeeded";
|
|
177
|
+
}), e.addCase(We.rejected, (t, { payload: o }) => {
|
|
178
|
+
o && (t.fetchError = o.message), t.fetchStatus = "failed", t.activeTaskStatuses = void 0;
|
|
179
|
+
}), e.addCase(qn.fulfilled, (t, { payload: o }) => {
|
|
180
|
+
t.triggeredTaskStatuses ? t.triggeredTaskStatuses[o.id] = o : t.triggeredTaskStatuses = { [o.id]: o }, t.activeTaskStatuses ? t.activeTaskStatuses[o.id] = o : t.activeTaskStatuses = { [o.id]: o };
|
|
201
181
|
});
|
|
202
182
|
}
|
|
203
183
|
});
|
|
204
|
-
function
|
|
184
|
+
function Kn(e) {
|
|
205
185
|
return Object.keys(e).length === 0;
|
|
206
186
|
}
|
|
207
|
-
function
|
|
208
|
-
const
|
|
209
|
-
return !
|
|
187
|
+
function Xn(e = null) {
|
|
188
|
+
const t = h.useContext(Nn);
|
|
189
|
+
return !t || Kn(t) ? e : t;
|
|
210
190
|
}
|
|
211
|
-
const
|
|
212
|
-
function
|
|
213
|
-
return
|
|
191
|
+
const Yn = hn();
|
|
192
|
+
function Zn(e = Yn) {
|
|
193
|
+
return Xn(e);
|
|
214
194
|
}
|
|
215
|
-
const
|
|
216
|
-
function Ge(e,
|
|
195
|
+
const Jn = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], Qn = ["component", "slots", "slotProps"], eo = ["component"];
|
|
196
|
+
function Ge(e, t) {
|
|
217
197
|
const {
|
|
218
198
|
className: o,
|
|
219
199
|
elementType: r,
|
|
@@ -221,109 +201,109 @@ function Ge(e, n) {
|
|
|
221
201
|
externalForwardedProps: s,
|
|
222
202
|
getSlotOwnerState: a,
|
|
223
203
|
internalForwardedProps: l
|
|
224
|
-
} =
|
|
204
|
+
} = t, u = V(t, Jn), {
|
|
225
205
|
component: c,
|
|
226
|
-
slots:
|
|
206
|
+
slots: d = {
|
|
227
207
|
[e]: void 0
|
|
228
208
|
},
|
|
229
209
|
slotProps: g = {
|
|
230
210
|
[e]: void 0
|
|
231
211
|
}
|
|
232
|
-
} = s,
|
|
212
|
+
} = s, m = V(s, Qn), x = d[e] || r, y = Wn(g[e], i), T = Ln(f({
|
|
233
213
|
className: o
|
|
234
|
-
},
|
|
235
|
-
externalForwardedProps: e === "root" ?
|
|
214
|
+
}, u, {
|
|
215
|
+
externalForwardedProps: e === "root" ? m : void 0,
|
|
236
216
|
externalSlotProps: y
|
|
237
217
|
})), {
|
|
238
218
|
props: {
|
|
239
|
-
component:
|
|
219
|
+
component: j
|
|
240
220
|
},
|
|
241
221
|
internalRef: C
|
|
242
|
-
} =
|
|
222
|
+
} = T, M = V(T.props, eo), w = Ne(C, y == null ? void 0 : y.ref, t.ref), b = a ? a(M) : {}, N = f({}, i, b), R = e === "root" ? j || c : j, O = zn(x, f({}, e === "root" && !c && !d[e] && l, e !== "root" && !d[e] && l, M, R && {
|
|
243
223
|
as: R
|
|
244
224
|
}, {
|
|
245
|
-
ref:
|
|
225
|
+
ref: w
|
|
246
226
|
}), N);
|
|
247
|
-
return Object.keys(
|
|
227
|
+
return Object.keys(b).forEach((k) => {
|
|
248
228
|
delete O[k];
|
|
249
229
|
}), [x, O];
|
|
250
230
|
}
|
|
251
|
-
const
|
|
252
|
-
let
|
|
253
|
-
return e < 1 ?
|
|
231
|
+
const mt = (e) => {
|
|
232
|
+
let t;
|
|
233
|
+
return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, (t / 100).toFixed(2);
|
|
254
234
|
};
|
|
255
|
-
function
|
|
256
|
-
const e =
|
|
257
|
-
return process.env.NODE_ENV !== "production" &&
|
|
235
|
+
function Je() {
|
|
236
|
+
const e = Zn(vn);
|
|
237
|
+
return process.env.NODE_ENV !== "production" && h.useDebugValue(e), e[bn] || e;
|
|
258
238
|
}
|
|
259
|
-
function
|
|
239
|
+
function to(e) {
|
|
260
240
|
return J("MuiPaper", e);
|
|
261
241
|
}
|
|
262
242
|
X("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
263
|
-
const
|
|
243
|
+
const no = ["className", "component", "elevation", "square", "variant"], oo = (e) => {
|
|
264
244
|
const {
|
|
265
|
-
square:
|
|
245
|
+
square: t,
|
|
266
246
|
elevation: o,
|
|
267
247
|
variant: r,
|
|
268
248
|
classes: i
|
|
269
249
|
} = e, s = {
|
|
270
|
-
root: ["root", r, !
|
|
250
|
+
root: ["root", r, !t && "rounded", r === "elevation" && `elevation${o}`]
|
|
271
251
|
};
|
|
272
|
-
return Q(s,
|
|
273
|
-
},
|
|
252
|
+
return Q(s, to, i);
|
|
253
|
+
}, ro = P("div", {
|
|
274
254
|
name: "MuiPaper",
|
|
275
255
|
slot: "Root",
|
|
276
|
-
overridesResolver: (e,
|
|
256
|
+
overridesResolver: (e, t) => {
|
|
277
257
|
const {
|
|
278
258
|
ownerState: o
|
|
279
259
|
} = e;
|
|
280
|
-
return [
|
|
260
|
+
return [t.root, t[o.variant], !o.square && t.rounded, o.variant === "elevation" && t[`elevation${o.elevation}`]];
|
|
281
261
|
}
|
|
282
262
|
})(({
|
|
283
263
|
theme: e,
|
|
284
|
-
ownerState:
|
|
264
|
+
ownerState: t
|
|
285
265
|
}) => {
|
|
286
266
|
var o;
|
|
287
267
|
return f({
|
|
288
268
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
289
269
|
color: (e.vars || e).palette.text.primary,
|
|
290
270
|
transition: e.transitions.create("box-shadow")
|
|
291
|
-
}, !
|
|
271
|
+
}, !t.square && {
|
|
292
272
|
borderRadius: e.shape.borderRadius
|
|
293
|
-
},
|
|
273
|
+
}, t.variant === "outlined" && {
|
|
294
274
|
border: `1px solid ${(e.vars || e).palette.divider}`
|
|
295
|
-
},
|
|
296
|
-
boxShadow: (e.vars || e).shadows[
|
|
275
|
+
}, t.variant === "elevation" && f({
|
|
276
|
+
boxShadow: (e.vars || e).shadows[t.elevation]
|
|
297
277
|
}, !e.vars && e.palette.mode === "dark" && {
|
|
298
|
-
backgroundImage: `linear-gradient(${
|
|
278
|
+
backgroundImage: `linear-gradient(${Oe("#fff", mt(t.elevation))}, ${Oe("#fff", mt(t.elevation))})`
|
|
299
279
|
}, e.vars && {
|
|
300
|
-
backgroundImage: (o = e.vars.overlays) == null ? void 0 : o[
|
|
280
|
+
backgroundImage: (o = e.vars.overlays) == null ? void 0 : o[t.elevation]
|
|
301
281
|
}));
|
|
302
|
-
}),
|
|
282
|
+
}), Qe = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
303
283
|
const r = Y({
|
|
304
|
-
props:
|
|
284
|
+
props: t,
|
|
305
285
|
name: "MuiPaper"
|
|
306
286
|
}), {
|
|
307
287
|
className: i,
|
|
308
288
|
component: s = "div",
|
|
309
289
|
elevation: a = 1,
|
|
310
290
|
square: l = !1,
|
|
311
|
-
variant:
|
|
312
|
-
} = r, c =
|
|
291
|
+
variant: u = "elevation"
|
|
292
|
+
} = r, c = V(r, no), d = f({}, r, {
|
|
313
293
|
component: s,
|
|
314
294
|
elevation: a,
|
|
315
295
|
square: l,
|
|
316
|
-
variant:
|
|
317
|
-
}), g =
|
|
318
|
-
return process.env.NODE_ENV !== "production" &&
|
|
319
|
-
`)), /* @__PURE__ */ p.jsx(
|
|
296
|
+
variant: u
|
|
297
|
+
}), g = oo(d);
|
|
298
|
+
return process.env.NODE_ENV !== "production" && Je().shadows[a] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
299
|
+
`)), /* @__PURE__ */ p.jsx(ro, f({
|
|
320
300
|
as: s,
|
|
321
|
-
ownerState:
|
|
322
|
-
className:
|
|
301
|
+
ownerState: d,
|
|
302
|
+
className: $(g.root, i),
|
|
323
303
|
ref: o
|
|
324
304
|
}, c));
|
|
325
305
|
});
|
|
326
|
-
process.env.NODE_ENV !== "production" && (
|
|
306
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
327
307
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
328
308
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
329
309
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -331,99 +311,99 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
331
311
|
/**
|
|
332
312
|
* The content of the component.
|
|
333
313
|
*/
|
|
334
|
-
children:
|
|
314
|
+
children: n.node,
|
|
335
315
|
/**
|
|
336
316
|
* Override or extend the styles applied to the component.
|
|
337
317
|
*/
|
|
338
|
-
classes:
|
|
318
|
+
classes: n.object,
|
|
339
319
|
/**
|
|
340
320
|
* @ignore
|
|
341
321
|
*/
|
|
342
|
-
className:
|
|
322
|
+
className: n.string,
|
|
343
323
|
/**
|
|
344
324
|
* The component used for the root node.
|
|
345
325
|
* Either a string to use a HTML element or a component.
|
|
346
326
|
*/
|
|
347
|
-
component:
|
|
327
|
+
component: n.elementType,
|
|
348
328
|
/**
|
|
349
329
|
* Shadow depth, corresponds to `dp` in the spec.
|
|
350
330
|
* It accepts values between 0 and 24 inclusive.
|
|
351
331
|
* @default 1
|
|
352
332
|
*/
|
|
353
|
-
elevation:
|
|
333
|
+
elevation: ke(Dn, (e) => {
|
|
354
334
|
const {
|
|
355
|
-
elevation:
|
|
335
|
+
elevation: t,
|
|
356
336
|
variant: o
|
|
357
337
|
} = e;
|
|
358
|
-
return
|
|
338
|
+
return t > 0 && o === "outlined" ? new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
359
339
|
}),
|
|
360
340
|
/**
|
|
361
341
|
* If `true`, rounded corners are disabled.
|
|
362
342
|
* @default false
|
|
363
343
|
*/
|
|
364
|
-
square:
|
|
344
|
+
square: n.bool,
|
|
365
345
|
/**
|
|
366
346
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
367
347
|
*/
|
|
368
|
-
sx:
|
|
348
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
369
349
|
/**
|
|
370
350
|
* The variant to use.
|
|
371
351
|
* @default 'elevation'
|
|
372
352
|
*/
|
|
373
|
-
variant:
|
|
353
|
+
variant: n.oneOfType([n.oneOf(["elevation", "outlined"]), n.string])
|
|
374
354
|
});
|
|
375
|
-
function
|
|
355
|
+
function so(e) {
|
|
376
356
|
return J("MuiAlert", e);
|
|
377
357
|
}
|
|
378
|
-
const
|
|
379
|
-
function qe(e,
|
|
358
|
+
const ht = X("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]);
|
|
359
|
+
function qe(e, t) {
|
|
380
360
|
return qe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, r) {
|
|
381
361
|
return o.__proto__ = r, o;
|
|
382
|
-
}, qe(e,
|
|
362
|
+
}, qe(e, t);
|
|
383
363
|
}
|
|
384
|
-
function
|
|
385
|
-
e.prototype = Object.create(
|
|
364
|
+
function Vt(e, t) {
|
|
365
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, qe(e, t);
|
|
386
366
|
}
|
|
387
|
-
const
|
|
367
|
+
const bt = {
|
|
388
368
|
disabled: !1
|
|
389
369
|
};
|
|
390
|
-
var
|
|
391
|
-
enter:
|
|
392
|
-
exit:
|
|
393
|
-
appear:
|
|
370
|
+
var io = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
371
|
+
enter: n.number,
|
|
372
|
+
exit: n.number,
|
|
373
|
+
appear: n.number
|
|
394
374
|
}).isRequired]) : null;
|
|
395
|
-
process.env.NODE_ENV !== "production" &&
|
|
396
|
-
enter:
|
|
397
|
-
exit:
|
|
398
|
-
active:
|
|
399
|
-
}),
|
|
400
|
-
enter:
|
|
401
|
-
enterDone:
|
|
402
|
-
enterActive:
|
|
403
|
-
exit:
|
|
404
|
-
exitDone:
|
|
405
|
-
exitActive:
|
|
375
|
+
process.env.NODE_ENV !== "production" && n.oneOfType([n.string, n.shape({
|
|
376
|
+
enter: n.string,
|
|
377
|
+
exit: n.string,
|
|
378
|
+
active: n.string
|
|
379
|
+
}), n.shape({
|
|
380
|
+
enter: n.string,
|
|
381
|
+
enterDone: n.string,
|
|
382
|
+
enterActive: n.string,
|
|
383
|
+
exit: n.string,
|
|
384
|
+
exitDone: n.string,
|
|
385
|
+
exitActive: n.string
|
|
406
386
|
})]);
|
|
407
387
|
const je = Z.createContext(null);
|
|
408
|
-
var
|
|
409
|
-
return
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
function
|
|
388
|
+
var ao = function(t) {
|
|
389
|
+
return t.scrollTop;
|
|
390
|
+
}, me = "unmounted", ne = "exited", oe = "entering", le = "entered", He = "exiting", te = /* @__PURE__ */ function(e) {
|
|
391
|
+
Vt(t, e);
|
|
392
|
+
function t(r, i) {
|
|
413
393
|
var s;
|
|
414
394
|
s = e.call(this, r, i) || this;
|
|
415
|
-
var a = i, l = a && !a.isMounting ? r.enter : r.appear,
|
|
416
|
-
return s.appearStatus = null, r.in ? l ? (
|
|
417
|
-
status:
|
|
395
|
+
var a = i, l = a && !a.isMounting ? r.enter : r.appear, u;
|
|
396
|
+
return s.appearStatus = null, r.in ? l ? (u = ne, s.appearStatus = oe) : u = le : r.unmountOnExit || r.mountOnEnter ? u = me : u = ne, s.state = {
|
|
397
|
+
status: u
|
|
418
398
|
}, s.nextCallback = null, s;
|
|
419
399
|
}
|
|
420
|
-
|
|
400
|
+
t.getDerivedStateFromProps = function(i, s) {
|
|
421
401
|
var a = i.in;
|
|
422
|
-
return a && s.status ===
|
|
402
|
+
return a && s.status === me ? {
|
|
423
403
|
status: ne
|
|
424
404
|
} : null;
|
|
425
405
|
};
|
|
426
|
-
var o =
|
|
406
|
+
var o = t.prototype;
|
|
427
407
|
return o.componentDidMount = function() {
|
|
428
408
|
this.updateStatus(!0, this.appearStatus);
|
|
429
409
|
}, o.componentDidUpdate = function(i) {
|
|
@@ -446,18 +426,18 @@ var uo = function(n) {
|
|
|
446
426
|
if (i === void 0 && (i = !1), s !== null)
|
|
447
427
|
if (this.cancelNextCallback(), s === oe) {
|
|
448
428
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
449
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
450
|
-
a &&
|
|
429
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Ee.findDOMNode(this);
|
|
430
|
+
a && ao(a);
|
|
451
431
|
}
|
|
452
432
|
this.performEnter(i);
|
|
453
433
|
} else
|
|
454
434
|
this.performExit();
|
|
455
435
|
else this.props.unmountOnExit && this.state.status === ne && this.setState({
|
|
456
|
-
status:
|
|
436
|
+
status: me
|
|
457
437
|
});
|
|
458
438
|
}, o.performEnter = function(i) {
|
|
459
|
-
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i,
|
|
460
|
-
if (!i && !a ||
|
|
439
|
+
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, u = this.props.nodeRef ? [l] : [Ee.findDOMNode(this), l], c = u[0], d = u[1], g = this.getTimeouts(), m = l ? g.appear : g.enter;
|
|
440
|
+
if (!i && !a || bt.disabled) {
|
|
461
441
|
this.safeSetState({
|
|
462
442
|
status: le
|
|
463
443
|
}, function() {
|
|
@@ -465,20 +445,20 @@ var uo = function(n) {
|
|
|
465
445
|
});
|
|
466
446
|
return;
|
|
467
447
|
}
|
|
468
|
-
this.props.onEnter(c,
|
|
448
|
+
this.props.onEnter(c, d), this.safeSetState({
|
|
469
449
|
status: oe
|
|
470
450
|
}, function() {
|
|
471
|
-
s.props.onEntering(c,
|
|
451
|
+
s.props.onEntering(c, d), s.onTransitionEnd(m, function() {
|
|
472
452
|
s.safeSetState({
|
|
473
453
|
status: le
|
|
474
454
|
}, function() {
|
|
475
|
-
s.props.onEntered(c,
|
|
455
|
+
s.props.onEntered(c, d);
|
|
476
456
|
});
|
|
477
457
|
});
|
|
478
458
|
});
|
|
479
459
|
}, o.performExit = function() {
|
|
480
|
-
var i = this, s = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 :
|
|
481
|
-
if (!s ||
|
|
460
|
+
var i = this, s = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Ee.findDOMNode(this);
|
|
461
|
+
if (!s || bt.disabled) {
|
|
482
462
|
this.safeSetState({
|
|
483
463
|
status: ne
|
|
484
464
|
}, function() {
|
|
@@ -510,30 +490,30 @@ var uo = function(n) {
|
|
|
510
490
|
}, this.nextCallback;
|
|
511
491
|
}, o.onTransitionEnd = function(i, s) {
|
|
512
492
|
this.setNextCallback(s);
|
|
513
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
493
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Ee.findDOMNode(this), l = i == null && !this.props.addEndListener;
|
|
514
494
|
if (!a || l) {
|
|
515
495
|
setTimeout(this.nextCallback, 0);
|
|
516
496
|
return;
|
|
517
497
|
}
|
|
518
498
|
if (this.props.addEndListener) {
|
|
519
|
-
var
|
|
520
|
-
this.props.addEndListener(c,
|
|
499
|
+
var u = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], c = u[0], d = u[1];
|
|
500
|
+
this.props.addEndListener(c, d);
|
|
521
501
|
}
|
|
522
502
|
i != null && setTimeout(this.nextCallback, i);
|
|
523
503
|
}, o.render = function() {
|
|
524
504
|
var i = this.state.status;
|
|
525
|
-
if (i ===
|
|
505
|
+
if (i === me)
|
|
526
506
|
return null;
|
|
527
507
|
var s = this.props, a = s.children;
|
|
528
508
|
s.in, s.mountOnEnter, s.unmountOnExit, s.appear, s.enter, s.exit, s.timeout, s.addEndListener, s.onEnter, s.onEntering, s.onEntered, s.onExit, s.onExiting, s.onExited, s.nodeRef;
|
|
529
|
-
var l =
|
|
509
|
+
var l = V(s, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
530
510
|
return (
|
|
531
511
|
// allows for nested Transitions
|
|
532
512
|
/* @__PURE__ */ Z.createElement(je.Provider, {
|
|
533
513
|
value: null
|
|
534
514
|
}, typeof a == "function" ? a(i, l) : Z.cloneElement(Z.Children.only(a), l))
|
|
535
515
|
);
|
|
536
|
-
},
|
|
516
|
+
}, t;
|
|
537
517
|
}(Z.Component);
|
|
538
518
|
te.contextType = je;
|
|
539
519
|
te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -548,10 +528,10 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
548
528
|
* (see
|
|
549
529
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
550
530
|
*/
|
|
551
|
-
nodeRef:
|
|
552
|
-
current: typeof Element > "u" ?
|
|
553
|
-
var a = e[
|
|
554
|
-
return
|
|
531
|
+
nodeRef: n.shape({
|
|
532
|
+
current: typeof Element > "u" ? n.any : function(e, t, o, r, i, s) {
|
|
533
|
+
var a = e[t];
|
|
534
|
+
return n.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(e, t, o, r, i, s);
|
|
555
535
|
}
|
|
556
536
|
}),
|
|
557
537
|
/**
|
|
@@ -568,23 +548,23 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
568
548
|
* </Transition>
|
|
569
549
|
* ```
|
|
570
550
|
*/
|
|
571
|
-
children:
|
|
551
|
+
children: n.oneOfType([n.func.isRequired, n.element.isRequired]).isRequired,
|
|
572
552
|
/**
|
|
573
553
|
* Show the component; triggers the enter or exit states
|
|
574
554
|
*/
|
|
575
|
-
in:
|
|
555
|
+
in: n.bool,
|
|
576
556
|
/**
|
|
577
557
|
* By default the child component is mounted immediately along with
|
|
578
558
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
579
559
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
580
560
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
581
561
|
*/
|
|
582
|
-
mountOnEnter:
|
|
562
|
+
mountOnEnter: n.bool,
|
|
583
563
|
/**
|
|
584
564
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
585
565
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
586
566
|
*/
|
|
587
|
-
unmountOnExit:
|
|
567
|
+
unmountOnExit: n.bool,
|
|
588
568
|
/**
|
|
589
569
|
* By default the child component does not perform the enter transition when
|
|
590
570
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -596,15 +576,15 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
596
576
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
597
577
|
* > differently.
|
|
598
578
|
*/
|
|
599
|
-
appear:
|
|
579
|
+
appear: n.bool,
|
|
600
580
|
/**
|
|
601
581
|
* Enable or disable enter transitions.
|
|
602
582
|
*/
|
|
603
|
-
enter:
|
|
583
|
+
enter: n.bool,
|
|
604
584
|
/**
|
|
605
585
|
* Enable or disable exit transitions.
|
|
606
586
|
*/
|
|
607
|
-
exit:
|
|
587
|
+
exit: n.bool,
|
|
608
588
|
/**
|
|
609
589
|
* The duration of the transition, in milliseconds.
|
|
610
590
|
* Required unless `addEndListener` is provided.
|
|
@@ -631,12 +611,12 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
631
611
|
*
|
|
632
612
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
633
613
|
*/
|
|
634
|
-
timeout: function(
|
|
635
|
-
var o =
|
|
636
|
-
|
|
614
|
+
timeout: function(t) {
|
|
615
|
+
var o = io;
|
|
616
|
+
t.addEndListener || (o = o.isRequired);
|
|
637
617
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
638
618
|
i[s - 1] = arguments[s];
|
|
639
|
-
return o.apply(void 0, [
|
|
619
|
+
return o.apply(void 0, [t].concat(i));
|
|
640
620
|
},
|
|
641
621
|
/**
|
|
642
622
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -652,7 +632,7 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
652
632
|
* }}
|
|
653
633
|
* ```
|
|
654
634
|
*/
|
|
655
|
-
addEndListener:
|
|
635
|
+
addEndListener: n.func,
|
|
656
636
|
/**
|
|
657
637
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
658
638
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -661,7 +641,7 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
661
641
|
*
|
|
662
642
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
663
643
|
*/
|
|
664
|
-
onEnter:
|
|
644
|
+
onEnter: n.func,
|
|
665
645
|
/**
|
|
666
646
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
667
647
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -670,7 +650,7 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
670
650
|
*
|
|
671
651
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
672
652
|
*/
|
|
673
|
-
onEntering:
|
|
653
|
+
onEntering: n.func,
|
|
674
654
|
/**
|
|
675
655
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
676
656
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -679,7 +659,7 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
679
659
|
*
|
|
680
660
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
681
661
|
*/
|
|
682
|
-
onEntered:
|
|
662
|
+
onEntered: n.func,
|
|
683
663
|
/**
|
|
684
664
|
* Callback fired before the "exiting" status is applied.
|
|
685
665
|
*
|
|
@@ -687,7 +667,7 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
687
667
|
*
|
|
688
668
|
* @type Function(node: HtmlElement) -> void
|
|
689
669
|
*/
|
|
690
|
-
onExit:
|
|
670
|
+
onExit: n.func,
|
|
691
671
|
/**
|
|
692
672
|
* Callback fired after the "exiting" status is applied.
|
|
693
673
|
*
|
|
@@ -695,7 +675,7 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
695
675
|
*
|
|
696
676
|
* @type Function(node: HtmlElement) -> void
|
|
697
677
|
*/
|
|
698
|
-
onExiting:
|
|
678
|
+
onExiting: n.func,
|
|
699
679
|
/**
|
|
700
680
|
* Callback fired after the "exited" status is applied.
|
|
701
681
|
*
|
|
@@ -703,7 +683,7 @@ te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
703
683
|
*
|
|
704
684
|
* @type Function(node: HtmlElement) -> void
|
|
705
685
|
*/
|
|
706
|
-
onExited:
|
|
686
|
+
onExited: n.func
|
|
707
687
|
} : {};
|
|
708
688
|
function ae() {
|
|
709
689
|
}
|
|
@@ -721,18 +701,18 @@ te.defaultProps = {
|
|
|
721
701
|
onExiting: ae,
|
|
722
702
|
onExited: ae
|
|
723
703
|
};
|
|
724
|
-
te.UNMOUNTED =
|
|
704
|
+
te.UNMOUNTED = me;
|
|
725
705
|
te.EXITED = ne;
|
|
726
706
|
te.ENTERING = oe;
|
|
727
707
|
te.ENTERED = le;
|
|
728
708
|
te.EXITING = He;
|
|
729
|
-
function
|
|
709
|
+
function lo(e) {
|
|
730
710
|
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
731
711
|
return e;
|
|
732
712
|
}
|
|
733
|
-
function
|
|
713
|
+
function et(e, t) {
|
|
734
714
|
var o = function(s) {
|
|
735
|
-
return
|
|
715
|
+
return t && Se(s) ? t(s) : s;
|
|
736
716
|
}, r = /* @__PURE__ */ Object.create(null);
|
|
737
717
|
return e && an.map(e, function(i) {
|
|
738
718
|
return i;
|
|
@@ -740,34 +720,34 @@ function tt(e, n) {
|
|
|
740
720
|
r[i.key] = o(i);
|
|
741
721
|
}), r;
|
|
742
722
|
}
|
|
743
|
-
function
|
|
744
|
-
e = e || {},
|
|
745
|
-
function o(
|
|
746
|
-
return
|
|
723
|
+
function co(e, t) {
|
|
724
|
+
e = e || {}, t = t || {};
|
|
725
|
+
function o(d) {
|
|
726
|
+
return d in t ? t[d] : e[d];
|
|
747
727
|
}
|
|
748
728
|
var r = /* @__PURE__ */ Object.create(null), i = [];
|
|
749
729
|
for (var s in e)
|
|
750
|
-
s in
|
|
730
|
+
s in t ? i.length && (r[s] = i, i = []) : i.push(s);
|
|
751
731
|
var a, l = {};
|
|
752
|
-
for (var
|
|
753
|
-
if (r[
|
|
754
|
-
for (a = 0; a < r[
|
|
755
|
-
var c = r[
|
|
756
|
-
l[r[
|
|
732
|
+
for (var u in t) {
|
|
733
|
+
if (r[u])
|
|
734
|
+
for (a = 0; a < r[u].length; a++) {
|
|
735
|
+
var c = r[u][a];
|
|
736
|
+
l[r[u][a]] = o(c);
|
|
757
737
|
}
|
|
758
|
-
l[
|
|
738
|
+
l[u] = o(u);
|
|
759
739
|
}
|
|
760
740
|
for (a = 0; a < i.length; a++)
|
|
761
741
|
l[i[a]] = o(i[a]);
|
|
762
742
|
return l;
|
|
763
743
|
}
|
|
764
|
-
function re(e,
|
|
765
|
-
return o[
|
|
744
|
+
function re(e, t, o) {
|
|
745
|
+
return o[t] != null ? o[t] : e.props[t];
|
|
766
746
|
}
|
|
767
|
-
function
|
|
768
|
-
return
|
|
747
|
+
function uo(e, t) {
|
|
748
|
+
return et(e.children, function(o) {
|
|
769
749
|
return Re(o, {
|
|
770
|
-
onExited:
|
|
750
|
+
onExited: t.bind(null, o),
|
|
771
751
|
in: !0,
|
|
772
752
|
appear: re(o, "appear", e),
|
|
773
753
|
enter: re(o, "enter", e),
|
|
@@ -775,20 +755,20 @@ function go(e, n) {
|
|
|
775
755
|
});
|
|
776
756
|
});
|
|
777
757
|
}
|
|
778
|
-
function
|
|
779
|
-
var r =
|
|
758
|
+
function po(e, t, o) {
|
|
759
|
+
var r = et(e.children), i = co(t, r);
|
|
780
760
|
return Object.keys(i).forEach(function(s) {
|
|
781
761
|
var a = i[s];
|
|
782
762
|
if (Se(a)) {
|
|
783
|
-
var l = s in
|
|
784
|
-
|
|
763
|
+
var l = s in t, u = s in r, c = t[s], d = Se(c) && !c.props.in;
|
|
764
|
+
u && (!l || d) ? i[s] = Re(a, {
|
|
785
765
|
onExited: o.bind(null, a),
|
|
786
766
|
in: !0,
|
|
787
767
|
exit: re(a, "exit", e),
|
|
788
768
|
enter: re(a, "enter", e)
|
|
789
|
-
}) : !
|
|
769
|
+
}) : !u && l && !d ? i[s] = Re(a, {
|
|
790
770
|
in: !1
|
|
791
|
-
}) :
|
|
771
|
+
}) : u && l && Se(c) && (i[s] = Re(a, {
|
|
792
772
|
onExited: o.bind(null, a),
|
|
793
773
|
in: c.props.in,
|
|
794
774
|
exit: re(a, "exit", e),
|
|
@@ -797,21 +777,21 @@ function ho(e, n, o) {
|
|
|
797
777
|
}
|
|
798
778
|
}), i;
|
|
799
779
|
}
|
|
800
|
-
var
|
|
801
|
-
return Object.keys(e).map(function(
|
|
802
|
-
return e[
|
|
780
|
+
var fo = Object.values || function(e) {
|
|
781
|
+
return Object.keys(e).map(function(t) {
|
|
782
|
+
return e[t];
|
|
803
783
|
});
|
|
804
|
-
},
|
|
784
|
+
}, go = {
|
|
805
785
|
component: "div",
|
|
806
|
-
childFactory: function(
|
|
807
|
-
return
|
|
786
|
+
childFactory: function(t) {
|
|
787
|
+
return t;
|
|
808
788
|
}
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
function
|
|
789
|
+
}, tt = /* @__PURE__ */ function(e) {
|
|
790
|
+
Vt(t, e);
|
|
791
|
+
function t(r, i) {
|
|
812
792
|
var s;
|
|
813
793
|
s = e.call(this, r, i) || this;
|
|
814
|
-
var a = s.handleExited.bind(
|
|
794
|
+
var a = s.handleExited.bind(lo(s));
|
|
815
795
|
return s.state = {
|
|
816
796
|
contextValue: {
|
|
817
797
|
isMounting: !0
|
|
@@ -820,7 +800,7 @@ var mo = Object.values || function(e) {
|
|
|
820
800
|
firstRender: !0
|
|
821
801
|
}, s;
|
|
822
802
|
}
|
|
823
|
-
var o =
|
|
803
|
+
var o = t.prototype;
|
|
824
804
|
return o.componentDidMount = function() {
|
|
825
805
|
this.mounted = !0, this.setState({
|
|
826
806
|
contextValue: {
|
|
@@ -829,30 +809,30 @@ var mo = Object.values || function(e) {
|
|
|
829
809
|
});
|
|
830
810
|
}, o.componentWillUnmount = function() {
|
|
831
811
|
this.mounted = !1;
|
|
832
|
-
},
|
|
833
|
-
var a = s.children, l = s.handleExited,
|
|
812
|
+
}, t.getDerivedStateFromProps = function(i, s) {
|
|
813
|
+
var a = s.children, l = s.handleExited, u = s.firstRender;
|
|
834
814
|
return {
|
|
835
|
-
children:
|
|
815
|
+
children: u ? uo(i, l) : po(i, a, l),
|
|
836
816
|
firstRender: !1
|
|
837
817
|
};
|
|
838
818
|
}, o.handleExited = function(i, s) {
|
|
839
|
-
var a =
|
|
819
|
+
var a = et(this.props.children);
|
|
840
820
|
i.key in a || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(l) {
|
|
841
|
-
var
|
|
842
|
-
return delete
|
|
843
|
-
children:
|
|
821
|
+
var u = f({}, l.children);
|
|
822
|
+
return delete u[i.key], {
|
|
823
|
+
children: u
|
|
844
824
|
};
|
|
845
825
|
}));
|
|
846
826
|
}, o.render = function() {
|
|
847
|
-
var i = this.props, s = i.component, a = i.childFactory, l =
|
|
827
|
+
var i = this.props, s = i.component, a = i.childFactory, l = V(i, ["component", "childFactory"]), u = this.state.contextValue, c = fo(this.state.children).map(a);
|
|
848
828
|
return delete l.appear, delete l.enter, delete l.exit, s === null ? /* @__PURE__ */ Z.createElement(je.Provider, {
|
|
849
|
-
value:
|
|
829
|
+
value: u
|
|
850
830
|
}, c) : /* @__PURE__ */ Z.createElement(je.Provider, {
|
|
851
|
-
value:
|
|
831
|
+
value: u
|
|
852
832
|
}, /* @__PURE__ */ Z.createElement(s, l, c));
|
|
853
|
-
},
|
|
833
|
+
}, t;
|
|
854
834
|
}(Z.Component);
|
|
855
|
-
|
|
835
|
+
tt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
856
836
|
/**
|
|
857
837
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
858
838
|
* behavior by providing a `component` prop.
|
|
@@ -860,7 +840,7 @@ nt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
860
840
|
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
861
841
|
* borks your css styles.
|
|
862
842
|
*/
|
|
863
|
-
component:
|
|
843
|
+
component: n.any,
|
|
864
844
|
/**
|
|
865
845
|
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
866
846
|
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
@@ -874,25 +854,25 @@ nt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
874
854
|
* the transition child as you change its content, this will cause
|
|
875
855
|
* `TransitionGroup` to transition the child out and back in.
|
|
876
856
|
*/
|
|
877
|
-
children:
|
|
857
|
+
children: n.node,
|
|
878
858
|
/**
|
|
879
859
|
* A convenience prop that enables or disables appear animations
|
|
880
860
|
* for all children. Note that specifying this will override any defaults set
|
|
881
861
|
* on individual children Transitions.
|
|
882
862
|
*/
|
|
883
|
-
appear:
|
|
863
|
+
appear: n.bool,
|
|
884
864
|
/**
|
|
885
865
|
* A convenience prop that enables or disables enter animations
|
|
886
866
|
* for all children. Note that specifying this will override any defaults set
|
|
887
867
|
* on individual children Transitions.
|
|
888
868
|
*/
|
|
889
|
-
enter:
|
|
869
|
+
enter: n.bool,
|
|
890
870
|
/**
|
|
891
871
|
* A convenience prop that enables or disables exit animations
|
|
892
872
|
* for all children. Note that specifying this will override any defaults set
|
|
893
873
|
* on individual children Transitions.
|
|
894
874
|
*/
|
|
895
|
-
exit:
|
|
875
|
+
exit: n.bool,
|
|
896
876
|
/**
|
|
897
877
|
* You may need to apply reactive updates to a child as it is exiting.
|
|
898
878
|
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
@@ -903,79 +883,79 @@ nt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
903
883
|
*
|
|
904
884
|
* @type Function(child: ReactElement) -> ReactElement
|
|
905
885
|
*/
|
|
906
|
-
childFactory:
|
|
886
|
+
childFactory: n.func
|
|
907
887
|
} : {};
|
|
908
|
-
|
|
909
|
-
function
|
|
888
|
+
tt.defaultProps = go;
|
|
889
|
+
function Dt(e) {
|
|
910
890
|
const {
|
|
911
|
-
className:
|
|
891
|
+
className: t,
|
|
912
892
|
classes: o,
|
|
913
893
|
pulsate: r = !1,
|
|
914
894
|
rippleX: i,
|
|
915
895
|
rippleY: s,
|
|
916
896
|
rippleSize: a,
|
|
917
897
|
in: l,
|
|
918
|
-
onExited:
|
|
898
|
+
onExited: u,
|
|
919
899
|
timeout: c
|
|
920
|
-
} = e, [
|
|
900
|
+
} = e, [d, g] = h.useState(!1), m = $(t, o.ripple, o.rippleVisible, r && o.ripplePulsate), x = {
|
|
921
901
|
width: a,
|
|
922
902
|
height: a,
|
|
923
903
|
top: -(a / 2) + s,
|
|
924
904
|
left: -(a / 2) + i
|
|
925
|
-
}, y =
|
|
926
|
-
return !l && !
|
|
927
|
-
if (!l &&
|
|
928
|
-
const
|
|
905
|
+
}, y = $(o.child, d && o.childLeaving, r && o.childPulsate);
|
|
906
|
+
return !l && !d && g(!0), h.useEffect(() => {
|
|
907
|
+
if (!l && u != null) {
|
|
908
|
+
const T = setTimeout(u, c);
|
|
929
909
|
return () => {
|
|
930
|
-
clearTimeout(
|
|
910
|
+
clearTimeout(T);
|
|
931
911
|
};
|
|
932
912
|
}
|
|
933
|
-
}, [
|
|
934
|
-
className:
|
|
913
|
+
}, [u, l, c]), /* @__PURE__ */ p.jsx("span", {
|
|
914
|
+
className: m,
|
|
935
915
|
style: x,
|
|
936
916
|
children: /* @__PURE__ */ p.jsx("span", {
|
|
937
917
|
className: y
|
|
938
918
|
})
|
|
939
919
|
});
|
|
940
920
|
}
|
|
941
|
-
process.env.NODE_ENV !== "production" && (
|
|
921
|
+
process.env.NODE_ENV !== "production" && (Dt.propTypes = {
|
|
942
922
|
/**
|
|
943
923
|
* Override or extend the styles applied to the component.
|
|
944
924
|
*/
|
|
945
|
-
classes:
|
|
946
|
-
className:
|
|
925
|
+
classes: n.object.isRequired,
|
|
926
|
+
className: n.string,
|
|
947
927
|
/**
|
|
948
928
|
* @ignore - injected from TransitionGroup
|
|
949
929
|
*/
|
|
950
|
-
in:
|
|
930
|
+
in: n.bool,
|
|
951
931
|
/**
|
|
952
932
|
* @ignore - injected from TransitionGroup
|
|
953
933
|
*/
|
|
954
|
-
onExited:
|
|
934
|
+
onExited: n.func,
|
|
955
935
|
/**
|
|
956
936
|
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
957
937
|
*/
|
|
958
|
-
pulsate:
|
|
938
|
+
pulsate: n.bool,
|
|
959
939
|
/**
|
|
960
940
|
* Diameter of the ripple.
|
|
961
941
|
*/
|
|
962
|
-
rippleSize:
|
|
942
|
+
rippleSize: n.number,
|
|
963
943
|
/**
|
|
964
944
|
* Horizontal position of the ripple center.
|
|
965
945
|
*/
|
|
966
|
-
rippleX:
|
|
946
|
+
rippleX: n.number,
|
|
967
947
|
/**
|
|
968
948
|
* Vertical position of the ripple center.
|
|
969
949
|
*/
|
|
970
|
-
rippleY:
|
|
950
|
+
rippleY: n.number,
|
|
971
951
|
/**
|
|
972
952
|
* exit delay
|
|
973
953
|
*/
|
|
974
|
-
timeout:
|
|
954
|
+
timeout: n.number.isRequired
|
|
975
955
|
});
|
|
976
|
-
const q = X("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]),
|
|
977
|
-
let
|
|
978
|
-
const Ke = 550,
|
|
956
|
+
const q = X("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), mo = ["center", "classes", "className"];
|
|
957
|
+
let Pe = (e) => e, vt, xt, yt, Tt;
|
|
958
|
+
const Ke = 550, ho = 80, bo = Ze(vt || (vt = Pe`
|
|
979
959
|
0% {
|
|
980
960
|
transform: scale(0);
|
|
981
961
|
opacity: 0.1;
|
|
@@ -985,7 +965,7 @@ const Ke = 550, xo = 80, yo = Ze(bt || (bt = Ie`
|
|
|
985
965
|
transform: scale(1);
|
|
986
966
|
opacity: 0.3;
|
|
987
967
|
}
|
|
988
|
-
`)),
|
|
968
|
+
`)), vo = Ze(xt || (xt = Pe`
|
|
989
969
|
0% {
|
|
990
970
|
opacity: 1;
|
|
991
971
|
}
|
|
@@ -993,7 +973,7 @@ const Ke = 550, xo = 80, yo = Ze(bt || (bt = Ie`
|
|
|
993
973
|
100% {
|
|
994
974
|
opacity: 0;
|
|
995
975
|
}
|
|
996
|
-
`)),
|
|
976
|
+
`)), xo = Ze(yt || (yt = Pe`
|
|
997
977
|
0% {
|
|
998
978
|
transform: scale(1);
|
|
999
979
|
}
|
|
@@ -1005,7 +985,7 @@ const Ke = 550, xo = 80, yo = Ze(bt || (bt = Ie`
|
|
|
1005
985
|
100% {
|
|
1006
986
|
transform: scale(1);
|
|
1007
987
|
}
|
|
1008
|
-
`)),
|
|
988
|
+
`)), yo = P("span", {
|
|
1009
989
|
name: "MuiTouchRipple",
|
|
1010
990
|
slot: "Root"
|
|
1011
991
|
})({
|
|
@@ -1018,10 +998,10 @@ const Ke = 550, xo = 80, yo = Ze(bt || (bt = Ie`
|
|
|
1018
998
|
bottom: 0,
|
|
1019
999
|
left: 0,
|
|
1020
1000
|
borderRadius: "inherit"
|
|
1021
|
-
}),
|
|
1001
|
+
}), To = P(Dt, {
|
|
1022
1002
|
name: "MuiTouchRipple",
|
|
1023
1003
|
slot: "Ripple"
|
|
1024
|
-
})(
|
|
1004
|
+
})(Tt || (Tt = Pe`
|
|
1025
1005
|
opacity: 0;
|
|
1026
1006
|
position: absolute;
|
|
1027
1007
|
|
|
@@ -1064,50 +1044,50 @@ const Ke = 550, xo = 80, yo = Ze(bt || (bt = Ie`
|
|
|
1064
1044
|
animation-iteration-count: infinite;
|
|
1065
1045
|
animation-delay: 200ms;
|
|
1066
1046
|
}
|
|
1067
|
-
`), q.rippleVisible,
|
|
1047
|
+
`), q.rippleVisible, bo, Ke, ({
|
|
1068
1048
|
theme: e
|
|
1069
1049
|
}) => e.transitions.easing.easeInOut, q.ripplePulsate, ({
|
|
1070
1050
|
theme: e
|
|
1071
|
-
}) => e.transitions.duration.shorter, q.child, q.childLeaving,
|
|
1051
|
+
}) => e.transitions.duration.shorter, q.child, q.childLeaving, vo, Ke, ({
|
|
1072
1052
|
theme: e
|
|
1073
|
-
}) => e.transitions.easing.easeInOut, q.childPulsate,
|
|
1053
|
+
}) => e.transitions.easing.easeInOut, q.childPulsate, xo, ({
|
|
1074
1054
|
theme: e
|
|
1075
|
-
}) => e.transitions.easing.easeInOut),
|
|
1055
|
+
}) => e.transitions.easing.easeInOut), Bt = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
1076
1056
|
const r = Y({
|
|
1077
|
-
props:
|
|
1057
|
+
props: t,
|
|
1078
1058
|
name: "MuiTouchRipple"
|
|
1079
1059
|
}), {
|
|
1080
1060
|
center: i = !1,
|
|
1081
1061
|
classes: s = {},
|
|
1082
1062
|
className: a
|
|
1083
|
-
} = r, l =
|
|
1084
|
-
|
|
1063
|
+
} = r, l = V(r, mo), [u, c] = h.useState([]), d = h.useRef(0), g = h.useRef(null);
|
|
1064
|
+
h.useEffect(() => {
|
|
1085
1065
|
g.current && (g.current(), g.current = null);
|
|
1086
|
-
}, [
|
|
1087
|
-
const
|
|
1066
|
+
}, [u]);
|
|
1067
|
+
const m = h.useRef(!1), x = Ot(), y = h.useRef(null), T = h.useRef(null), j = h.useCallback((b) => {
|
|
1088
1068
|
const {
|
|
1089
1069
|
pulsate: N,
|
|
1090
1070
|
rippleX: R,
|
|
1091
1071
|
rippleY: O,
|
|
1092
1072
|
rippleSize: k,
|
|
1093
1073
|
cb: W
|
|
1094
|
-
} =
|
|
1095
|
-
c((S) => [...S, /* @__PURE__ */ p.jsx(
|
|
1074
|
+
} = b;
|
|
1075
|
+
c((S) => [...S, /* @__PURE__ */ p.jsx(To, {
|
|
1096
1076
|
classes: {
|
|
1097
|
-
ripple:
|
|
1098
|
-
rippleVisible:
|
|
1099
|
-
ripplePulsate:
|
|
1100
|
-
child:
|
|
1101
|
-
childLeaving:
|
|
1102
|
-
childPulsate:
|
|
1077
|
+
ripple: $(s.ripple, q.ripple),
|
|
1078
|
+
rippleVisible: $(s.rippleVisible, q.rippleVisible),
|
|
1079
|
+
ripplePulsate: $(s.ripplePulsate, q.ripplePulsate),
|
|
1080
|
+
child: $(s.child, q.child),
|
|
1081
|
+
childLeaving: $(s.childLeaving, q.childLeaving),
|
|
1082
|
+
childPulsate: $(s.childPulsate, q.childPulsate)
|
|
1103
1083
|
},
|
|
1104
1084
|
timeout: Ke,
|
|
1105
1085
|
pulsate: N,
|
|
1106
1086
|
rippleX: R,
|
|
1107
1087
|
rippleY: O,
|
|
1108
1088
|
rippleSize: k
|
|
1109
|
-
},
|
|
1110
|
-
}, [s]), C =
|
|
1089
|
+
}, d.current)]), d.current += 1, g.current = W;
|
|
1090
|
+
}, [s]), C = h.useCallback((b = {}, N = {}, R = () => {
|
|
1111
1091
|
}) => {
|
|
1112
1092
|
const {
|
|
1113
1093
|
pulsate: O = !1,
|
|
@@ -1115,110 +1095,110 @@ const Ke = 550, xo = 80, yo = Ze(bt || (bt = Ie`
|
|
|
1115
1095
|
fakeElement: W = !1
|
|
1116
1096
|
// For test purposes
|
|
1117
1097
|
} = N;
|
|
1118
|
-
if ((
|
|
1119
|
-
|
|
1098
|
+
if ((b == null ? void 0 : b.type) === "mousedown" && m.current) {
|
|
1099
|
+
m.current = !1;
|
|
1120
1100
|
return;
|
|
1121
1101
|
}
|
|
1122
|
-
(
|
|
1123
|
-
const S = W ? null :
|
|
1102
|
+
(b == null ? void 0 : b.type) === "touchstart" && (m.current = !0);
|
|
1103
|
+
const S = W ? null : T.current, z = S ? S.getBoundingClientRect() : {
|
|
1124
1104
|
width: 0,
|
|
1125
1105
|
height: 0,
|
|
1126
1106
|
left: 0,
|
|
1127
1107
|
top: 0
|
|
1128
1108
|
};
|
|
1129
|
-
let I,
|
|
1130
|
-
if (k ||
|
|
1131
|
-
I = Math.round(z.width / 2),
|
|
1109
|
+
let I, A, _;
|
|
1110
|
+
if (k || b === void 0 || b.clientX === 0 && b.clientY === 0 || !b.clientX && !b.touches)
|
|
1111
|
+
I = Math.round(z.width / 2), A = Math.round(z.height / 2);
|
|
1132
1112
|
else {
|
|
1133
1113
|
const {
|
|
1134
1114
|
clientX: U,
|
|
1135
1115
|
clientY: H
|
|
1136
|
-
} =
|
|
1137
|
-
I = Math.round(U - z.left),
|
|
1116
|
+
} = b.touches && b.touches.length > 0 ? b.touches[0] : b;
|
|
1117
|
+
I = Math.round(U - z.left), A = Math.round(H - z.top);
|
|
1138
1118
|
}
|
|
1139
1119
|
if (k)
|
|
1140
|
-
|
|
1120
|
+
_ = Math.sqrt((2 * z.width ** 2 + z.height ** 2) / 3), _ % 2 === 0 && (_ += 1);
|
|
1141
1121
|
else {
|
|
1142
|
-
const U = Math.max(Math.abs((S ? S.clientWidth : 0) - I), I) * 2 + 2, H = Math.max(Math.abs((S ? S.clientHeight : 0) -
|
|
1143
|
-
|
|
1122
|
+
const U = Math.max(Math.abs((S ? S.clientWidth : 0) - I), I) * 2 + 2, H = Math.max(Math.abs((S ? S.clientHeight : 0) - A), A) * 2 + 2;
|
|
1123
|
+
_ = Math.sqrt(U ** 2 + H ** 2);
|
|
1144
1124
|
}
|
|
1145
|
-
|
|
1146
|
-
|
|
1125
|
+
b != null && b.touches ? y.current === null && (y.current = () => {
|
|
1126
|
+
j({
|
|
1147
1127
|
pulsate: O,
|
|
1148
1128
|
rippleX: I,
|
|
1149
|
-
rippleY:
|
|
1150
|
-
rippleSize:
|
|
1129
|
+
rippleY: A,
|
|
1130
|
+
rippleSize: _,
|
|
1151
1131
|
cb: R
|
|
1152
1132
|
});
|
|
1153
|
-
}, x.start(
|
|
1133
|
+
}, x.start(ho, () => {
|
|
1154
1134
|
y.current && (y.current(), y.current = null);
|
|
1155
|
-
})) :
|
|
1135
|
+
})) : j({
|
|
1156
1136
|
pulsate: O,
|
|
1157
1137
|
rippleX: I,
|
|
1158
|
-
rippleY:
|
|
1159
|
-
rippleSize:
|
|
1138
|
+
rippleY: A,
|
|
1139
|
+
rippleSize: _,
|
|
1160
1140
|
cb: R
|
|
1161
1141
|
});
|
|
1162
|
-
}, [i,
|
|
1142
|
+
}, [i, j, x]), M = h.useCallback(() => {
|
|
1163
1143
|
C({}, {
|
|
1164
1144
|
pulsate: !0
|
|
1165
1145
|
});
|
|
1166
|
-
}, [C]),
|
|
1167
|
-
if (x.clear(), (
|
|
1146
|
+
}, [C]), w = h.useCallback((b, N) => {
|
|
1147
|
+
if (x.clear(), (b == null ? void 0 : b.type) === "touchend" && y.current) {
|
|
1168
1148
|
y.current(), y.current = null, x.start(0, () => {
|
|
1169
|
-
|
|
1149
|
+
w(b, N);
|
|
1170
1150
|
});
|
|
1171
1151
|
return;
|
|
1172
1152
|
}
|
|
1173
1153
|
y.current = null, c((R) => R.length > 0 ? R.slice(1) : R), g.current = N;
|
|
1174
1154
|
}, [x]);
|
|
1175
|
-
return
|
|
1155
|
+
return h.useImperativeHandle(o, () => ({
|
|
1176
1156
|
pulsate: M,
|
|
1177
1157
|
start: C,
|
|
1178
|
-
stop:
|
|
1179
|
-
}), [M, C,
|
|
1180
|
-
className:
|
|
1181
|
-
ref:
|
|
1158
|
+
stop: w
|
|
1159
|
+
}), [M, C, w]), /* @__PURE__ */ p.jsx(yo, f({
|
|
1160
|
+
className: $(q.root, s.root, a),
|
|
1161
|
+
ref: T
|
|
1182
1162
|
}, l, {
|
|
1183
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1163
|
+
children: /* @__PURE__ */ p.jsx(tt, {
|
|
1184
1164
|
component: null,
|
|
1185
1165
|
exit: !0,
|
|
1186
|
-
children:
|
|
1166
|
+
children: u
|
|
1187
1167
|
})
|
|
1188
1168
|
}));
|
|
1189
1169
|
});
|
|
1190
|
-
process.env.NODE_ENV !== "production" && (
|
|
1170
|
+
process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
1191
1171
|
/**
|
|
1192
1172
|
* If `true`, the ripple starts at the center of the component
|
|
1193
1173
|
* rather than at the point of interaction.
|
|
1194
1174
|
*/
|
|
1195
|
-
center:
|
|
1175
|
+
center: n.bool,
|
|
1196
1176
|
/**
|
|
1197
1177
|
* Override or extend the styles applied to the component.
|
|
1198
1178
|
*/
|
|
1199
|
-
classes:
|
|
1179
|
+
classes: n.object,
|
|
1200
1180
|
/**
|
|
1201
1181
|
* @ignore
|
|
1202
1182
|
*/
|
|
1203
|
-
className:
|
|
1183
|
+
className: n.string
|
|
1204
1184
|
});
|
|
1205
|
-
function
|
|
1185
|
+
function Eo(e) {
|
|
1206
1186
|
return J("MuiButtonBase", e);
|
|
1207
1187
|
}
|
|
1208
|
-
const
|
|
1188
|
+
const Co = X("MuiButtonBase", ["root", "disabled", "focusVisible"]), So = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], Ro = (e) => {
|
|
1209
1189
|
const {
|
|
1210
|
-
disabled:
|
|
1190
|
+
disabled: t,
|
|
1211
1191
|
focusVisible: o,
|
|
1212
1192
|
focusVisibleClassName: r,
|
|
1213
1193
|
classes: i
|
|
1214
1194
|
} = e, a = Q({
|
|
1215
|
-
root: ["root",
|
|
1216
|
-
},
|
|
1195
|
+
root: ["root", t && "disabled", o && "focusVisible"]
|
|
1196
|
+
}, Eo, i);
|
|
1217
1197
|
return o && r && (a.root += ` ${r}`), a;
|
|
1218
|
-
},
|
|
1198
|
+
}, No = P("button", {
|
|
1219
1199
|
name: "MuiButtonBase",
|
|
1220
1200
|
slot: "Root",
|
|
1221
|
-
overridesResolver: (e,
|
|
1201
|
+
overridesResolver: (e, t) => t.root
|
|
1222
1202
|
})({
|
|
1223
1203
|
display: "inline-flex",
|
|
1224
1204
|
alignItems: "center",
|
|
@@ -1250,7 +1230,7 @@ const No = X("MuiButtonBase", ["root", "disabled", "focusVisible"]), Oo = ["acti
|
|
|
1250
1230
|
borderStyle: "none"
|
|
1251
1231
|
// Remove Firefox dotted outline.
|
|
1252
1232
|
},
|
|
1253
|
-
[`&.${
|
|
1233
|
+
[`&.${Co.disabled}`]: {
|
|
1254
1234
|
pointerEvents: "none",
|
|
1255
1235
|
// Disable link interactions
|
|
1256
1236
|
cursor: "default"
|
|
@@ -1258,28 +1238,28 @@ const No = X("MuiButtonBase", ["root", "disabled", "focusVisible"]), Oo = ["acti
|
|
|
1258
1238
|
"@media print": {
|
|
1259
1239
|
colorAdjust: "exact"
|
|
1260
1240
|
}
|
|
1261
|
-
}),
|
|
1241
|
+
}), nt = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
1262
1242
|
const r = Y({
|
|
1263
|
-
props:
|
|
1243
|
+
props: t,
|
|
1264
1244
|
name: "MuiButtonBase"
|
|
1265
1245
|
}), {
|
|
1266
1246
|
action: i,
|
|
1267
1247
|
centerRipple: s = !1,
|
|
1268
1248
|
children: a,
|
|
1269
1249
|
className: l,
|
|
1270
|
-
component:
|
|
1250
|
+
component: u = "button",
|
|
1271
1251
|
disabled: c = !1,
|
|
1272
|
-
disableRipple:
|
|
1252
|
+
disableRipple: d = !1,
|
|
1273
1253
|
disableTouchRipple: g = !1,
|
|
1274
|
-
focusRipple:
|
|
1254
|
+
focusRipple: m = !1,
|
|
1275
1255
|
LinkComponent: x = "a",
|
|
1276
1256
|
onBlur: y,
|
|
1277
|
-
onClick:
|
|
1278
|
-
onContextMenu:
|
|
1257
|
+
onClick: T,
|
|
1258
|
+
onContextMenu: j,
|
|
1279
1259
|
onDragLeave: C,
|
|
1280
1260
|
onFocus: M,
|
|
1281
|
-
onFocusVisible:
|
|
1282
|
-
onKeyDown:
|
|
1261
|
+
onFocusVisible: w,
|
|
1262
|
+
onKeyDown: b,
|
|
1283
1263
|
onKeyUp: N,
|
|
1284
1264
|
onMouseDown: R,
|
|
1285
1265
|
onMouseLeave: O,
|
|
@@ -1288,74 +1268,74 @@ const No = X("MuiButtonBase", ["root", "disabled", "focusVisible"]), Oo = ["acti
|
|
|
1288
1268
|
onTouchMove: S,
|
|
1289
1269
|
onTouchStart: z,
|
|
1290
1270
|
tabIndex: I = 0,
|
|
1291
|
-
TouchRippleProps:
|
|
1292
|
-
touchRippleRef:
|
|
1271
|
+
TouchRippleProps: A,
|
|
1272
|
+
touchRippleRef: _,
|
|
1293
1273
|
type: U
|
|
1294
|
-
} = r, H =
|
|
1295
|
-
isFocusVisibleRef:
|
|
1274
|
+
} = r, H = V(r, So), G = h.useRef(null), D = h.useRef(null), Ie = Ne(D, _), {
|
|
1275
|
+
isFocusVisibleRef: ve,
|
|
1296
1276
|
onFocus: Ae,
|
|
1297
|
-
onBlur:
|
|
1298
|
-
ref:
|
|
1299
|
-
} =
|
|
1300
|
-
c && ee && se(!1),
|
|
1277
|
+
onBlur: Ve,
|
|
1278
|
+
ref: De
|
|
1279
|
+
} = xn(), [ee, se] = h.useState(!1);
|
|
1280
|
+
c && ee && se(!1), h.useImperativeHandle(i, () => ({
|
|
1301
1281
|
focusVisible: () => {
|
|
1302
1282
|
se(!0), G.current.focus();
|
|
1303
1283
|
}
|
|
1304
1284
|
}), []);
|
|
1305
|
-
const [
|
|
1306
|
-
|
|
1307
|
-
|
|
1285
|
+
const [E, L] = h.useState(!1);
|
|
1286
|
+
h.useEffect(() => {
|
|
1287
|
+
L(!0);
|
|
1308
1288
|
}, []);
|
|
1309
|
-
const F =
|
|
1310
|
-
|
|
1311
|
-
ee &&
|
|
1312
|
-
}, [
|
|
1313
|
-
function B(
|
|
1314
|
-
return
|
|
1289
|
+
const F = E && !d && !c;
|
|
1290
|
+
h.useEffect(() => {
|
|
1291
|
+
ee && m && !d && E && D.current.pulsate();
|
|
1292
|
+
}, [d, m, ee, E]);
|
|
1293
|
+
function B(v, at, sn = g) {
|
|
1294
|
+
return Te((lt) => (at && at(lt), !sn && D.current && D.current[v](lt), !0));
|
|
1315
1295
|
}
|
|
1316
|
-
const ie = B("start", R), xe = B("stop",
|
|
1317
|
-
ee &&
|
|
1318
|
-
}), Yt = B("start", z), Zt = B("stop", W), Jt = B("stop", S), Qt = B("stop", (
|
|
1319
|
-
|
|
1320
|
-
}, !1), en =
|
|
1321
|
-
G.current || (G.current =
|
|
1322
|
-
}),
|
|
1323
|
-
const
|
|
1324
|
-
return
|
|
1325
|
-
},
|
|
1326
|
-
|
|
1327
|
-
D.current.start(
|
|
1328
|
-
})),
|
|
1329
|
-
}), nn =
|
|
1330
|
-
|
|
1331
|
-
D.current.pulsate(
|
|
1332
|
-
})), N && N(
|
|
1296
|
+
const ie = B("start", R), xe = B("stop", j), Ht = B("stop", C), Kt = B("stop", k), Xt = B("stop", (v) => {
|
|
1297
|
+
ee && v.preventDefault(), O && O(v);
|
|
1298
|
+
}), Yt = B("start", z), Zt = B("stop", W), Jt = B("stop", S), Qt = B("stop", (v) => {
|
|
1299
|
+
Ve(v), ve.current === !1 && se(!1), y && y(v);
|
|
1300
|
+
}, !1), en = Te((v) => {
|
|
1301
|
+
G.current || (G.current = v.currentTarget), Ae(v), ve.current === !0 && (se(!0), w && w(v)), M && M(v);
|
|
1302
|
+
}), Be = () => {
|
|
1303
|
+
const v = G.current;
|
|
1304
|
+
return u && u !== "button" && !(v.tagName === "A" && v.href);
|
|
1305
|
+
}, ze = h.useRef(!1), tn = Te((v) => {
|
|
1306
|
+
m && !ze.current && ee && D.current && v.key === " " && (ze.current = !0, D.current.stop(v, () => {
|
|
1307
|
+
D.current.start(v);
|
|
1308
|
+
})), v.target === v.currentTarget && Be() && v.key === " " && v.preventDefault(), b && b(v), v.target === v.currentTarget && Be() && v.key === "Enter" && !c && (v.preventDefault(), T && T(v));
|
|
1309
|
+
}), nn = Te((v) => {
|
|
1310
|
+
m && v.key === " " && D.current && ee && !v.defaultPrevented && (ze.current = !1, D.current.stop(v, () => {
|
|
1311
|
+
D.current.pulsate(v);
|
|
1312
|
+
})), N && N(v), T && v.target === v.currentTarget && Be() && v.key === " " && !v.defaultPrevented && T(v);
|
|
1333
1313
|
});
|
|
1334
|
-
let ye =
|
|
1314
|
+
let ye = u;
|
|
1335
1315
|
ye === "button" && (H.href || H.to) && (ye = x);
|
|
1336
1316
|
const fe = {};
|
|
1337
1317
|
ye === "button" ? (fe.type = U === void 0 ? "button" : U, fe.disabled = c) : (!H.href && !H.to && (fe.role = "button"), c && (fe["aria-disabled"] = c));
|
|
1338
|
-
const on =
|
|
1339
|
-
process.env.NODE_ENV !== "production" &&
|
|
1318
|
+
const on = Ne(o, De, G);
|
|
1319
|
+
process.env.NODE_ENV !== "production" && h.useEffect(() => {
|
|
1340
1320
|
F && !D.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
|
|
1341
1321
|
`));
|
|
1342
1322
|
}, [F]);
|
|
1343
1323
|
const it = f({}, r, {
|
|
1344
1324
|
centerRipple: s,
|
|
1345
|
-
component:
|
|
1325
|
+
component: u,
|
|
1346
1326
|
disabled: c,
|
|
1347
|
-
disableRipple:
|
|
1327
|
+
disableRipple: d,
|
|
1348
1328
|
disableTouchRipple: g,
|
|
1349
|
-
focusRipple:
|
|
1329
|
+
focusRipple: m,
|
|
1350
1330
|
tabIndex: I,
|
|
1351
1331
|
focusVisible: ee
|
|
1352
|
-
}), rn =
|
|
1353
|
-
return /* @__PURE__ */ p.jsxs(
|
|
1332
|
+
}), rn = Ro(it);
|
|
1333
|
+
return /* @__PURE__ */ p.jsxs(No, f({
|
|
1354
1334
|
as: ye,
|
|
1355
|
-
className:
|
|
1335
|
+
className: $(rn.root, l),
|
|
1356
1336
|
ownerState: it,
|
|
1357
1337
|
onBlur: Qt,
|
|
1358
|
-
onClick:
|
|
1338
|
+
onClick: T,
|
|
1359
1339
|
onContextMenu: xe,
|
|
1360
1340
|
onFocus: en,
|
|
1361
1341
|
onKeyDown: tn,
|
|
@@ -1373,14 +1353,14 @@ const No = X("MuiButtonBase", ["root", "disabled", "focusVisible"]), Oo = ["acti
|
|
|
1373
1353
|
}, fe, H, {
|
|
1374
1354
|
children: [a, F ? (
|
|
1375
1355
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
1376
|
-
/* @__PURE__ */ p.jsx(
|
|
1377
|
-
ref:
|
|
1356
|
+
/* @__PURE__ */ p.jsx(Bt, f({
|
|
1357
|
+
ref: Ie,
|
|
1378
1358
|
center: s
|
|
1379
|
-
},
|
|
1359
|
+
}, A))
|
|
1380
1360
|
) : null]
|
|
1381
1361
|
}));
|
|
1382
1362
|
});
|
|
1383
|
-
process.env.NODE_ENV !== "production" && (
|
|
1363
|
+
process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
1384
1364
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1385
1365
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1386
1366
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1389,35 +1369,35 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
|
1389
1369
|
* A ref for imperative actions.
|
|
1390
1370
|
* It currently only supports `focusVisible()` action.
|
|
1391
1371
|
*/
|
|
1392
|
-
action:
|
|
1372
|
+
action: Pn,
|
|
1393
1373
|
/**
|
|
1394
1374
|
* If `true`, the ripples are centered.
|
|
1395
1375
|
* They won't start at the cursor interaction position.
|
|
1396
1376
|
* @default false
|
|
1397
1377
|
*/
|
|
1398
|
-
centerRipple:
|
|
1378
|
+
centerRipple: n.bool,
|
|
1399
1379
|
/**
|
|
1400
1380
|
* The content of the component.
|
|
1401
1381
|
*/
|
|
1402
|
-
children:
|
|
1382
|
+
children: n.node,
|
|
1403
1383
|
/**
|
|
1404
1384
|
* Override or extend the styles applied to the component.
|
|
1405
1385
|
*/
|
|
1406
|
-
classes:
|
|
1386
|
+
classes: n.object,
|
|
1407
1387
|
/**
|
|
1408
1388
|
* @ignore
|
|
1409
1389
|
*/
|
|
1410
|
-
className:
|
|
1390
|
+
className: n.string,
|
|
1411
1391
|
/**
|
|
1412
1392
|
* The component used for the root node.
|
|
1413
1393
|
* Either a string to use a HTML element or a component.
|
|
1414
1394
|
*/
|
|
1415
|
-
component:
|
|
1395
|
+
component: $t,
|
|
1416
1396
|
/**
|
|
1417
1397
|
* If `true`, the component is disabled.
|
|
1418
1398
|
* @default false
|
|
1419
1399
|
*/
|
|
1420
|
-
disabled:
|
|
1400
|
+
disabled: n.bool,
|
|
1421
1401
|
/**
|
|
1422
1402
|
* If `true`, the ripple effect is disabled.
|
|
1423
1403
|
*
|
|
@@ -1425,17 +1405,17 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
|
1425
1405
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
1426
1406
|
* @default false
|
|
1427
1407
|
*/
|
|
1428
|
-
disableRipple:
|
|
1408
|
+
disableRipple: n.bool,
|
|
1429
1409
|
/**
|
|
1430
1410
|
* If `true`, the touch ripple effect is disabled.
|
|
1431
1411
|
* @default false
|
|
1432
1412
|
*/
|
|
1433
|
-
disableTouchRipple:
|
|
1413
|
+
disableTouchRipple: n.bool,
|
|
1434
1414
|
/**
|
|
1435
1415
|
* If `true`, the base button will have a keyboard focus ripple.
|
|
1436
1416
|
* @default false
|
|
1437
1417
|
*/
|
|
1438
|
-
focusRipple:
|
|
1418
|
+
focusRipple: n.bool,
|
|
1439
1419
|
/**
|
|
1440
1420
|
* This prop can help identify which element has keyboard focus.
|
|
1441
1421
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -1444,106 +1424,106 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
|
1444
1424
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
1445
1425
|
* if needed.
|
|
1446
1426
|
*/
|
|
1447
|
-
focusVisibleClassName:
|
|
1427
|
+
focusVisibleClassName: n.string,
|
|
1448
1428
|
/**
|
|
1449
1429
|
* @ignore
|
|
1450
1430
|
*/
|
|
1451
|
-
href:
|
|
1431
|
+
href: n.any,
|
|
1452
1432
|
/**
|
|
1453
1433
|
* The component used to render a link when the `href` prop is provided.
|
|
1454
1434
|
* @default 'a'
|
|
1455
1435
|
*/
|
|
1456
|
-
LinkComponent:
|
|
1436
|
+
LinkComponent: n.elementType,
|
|
1457
1437
|
/**
|
|
1458
1438
|
* @ignore
|
|
1459
1439
|
*/
|
|
1460
|
-
onBlur:
|
|
1440
|
+
onBlur: n.func,
|
|
1461
1441
|
/**
|
|
1462
1442
|
* @ignore
|
|
1463
1443
|
*/
|
|
1464
|
-
onClick:
|
|
1444
|
+
onClick: n.func,
|
|
1465
1445
|
/**
|
|
1466
1446
|
* @ignore
|
|
1467
1447
|
*/
|
|
1468
|
-
onContextMenu:
|
|
1448
|
+
onContextMenu: n.func,
|
|
1469
1449
|
/**
|
|
1470
1450
|
* @ignore
|
|
1471
1451
|
*/
|
|
1472
|
-
onDragLeave:
|
|
1452
|
+
onDragLeave: n.func,
|
|
1473
1453
|
/**
|
|
1474
1454
|
* @ignore
|
|
1475
1455
|
*/
|
|
1476
|
-
onFocus:
|
|
1456
|
+
onFocus: n.func,
|
|
1477
1457
|
/**
|
|
1478
1458
|
* Callback fired when the component is focused with a keyboard.
|
|
1479
1459
|
* We trigger a `onFocus` callback too.
|
|
1480
1460
|
*/
|
|
1481
|
-
onFocusVisible:
|
|
1461
|
+
onFocusVisible: n.func,
|
|
1482
1462
|
/**
|
|
1483
1463
|
* @ignore
|
|
1484
1464
|
*/
|
|
1485
|
-
onKeyDown:
|
|
1465
|
+
onKeyDown: n.func,
|
|
1486
1466
|
/**
|
|
1487
1467
|
* @ignore
|
|
1488
1468
|
*/
|
|
1489
|
-
onKeyUp:
|
|
1469
|
+
onKeyUp: n.func,
|
|
1490
1470
|
/**
|
|
1491
1471
|
* @ignore
|
|
1492
1472
|
*/
|
|
1493
|
-
onMouseDown:
|
|
1473
|
+
onMouseDown: n.func,
|
|
1494
1474
|
/**
|
|
1495
1475
|
* @ignore
|
|
1496
1476
|
*/
|
|
1497
|
-
onMouseLeave:
|
|
1477
|
+
onMouseLeave: n.func,
|
|
1498
1478
|
/**
|
|
1499
1479
|
* @ignore
|
|
1500
1480
|
*/
|
|
1501
|
-
onMouseUp:
|
|
1481
|
+
onMouseUp: n.func,
|
|
1502
1482
|
/**
|
|
1503
1483
|
* @ignore
|
|
1504
1484
|
*/
|
|
1505
|
-
onTouchEnd:
|
|
1485
|
+
onTouchEnd: n.func,
|
|
1506
1486
|
/**
|
|
1507
1487
|
* @ignore
|
|
1508
1488
|
*/
|
|
1509
|
-
onTouchMove:
|
|
1489
|
+
onTouchMove: n.func,
|
|
1510
1490
|
/**
|
|
1511
1491
|
* @ignore
|
|
1512
1492
|
*/
|
|
1513
|
-
onTouchStart:
|
|
1493
|
+
onTouchStart: n.func,
|
|
1514
1494
|
/**
|
|
1515
1495
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1516
1496
|
*/
|
|
1517
|
-
sx:
|
|
1497
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
1518
1498
|
/**
|
|
1519
1499
|
* @default 0
|
|
1520
1500
|
*/
|
|
1521
|
-
tabIndex:
|
|
1501
|
+
tabIndex: n.number,
|
|
1522
1502
|
/**
|
|
1523
1503
|
* Props applied to the `TouchRipple` element.
|
|
1524
1504
|
*/
|
|
1525
|
-
TouchRippleProps:
|
|
1505
|
+
TouchRippleProps: n.object,
|
|
1526
1506
|
/**
|
|
1527
1507
|
* A ref that points to the `TouchRipple` element.
|
|
1528
1508
|
*/
|
|
1529
|
-
touchRippleRef:
|
|
1530
|
-
current:
|
|
1531
|
-
pulsate:
|
|
1532
|
-
start:
|
|
1533
|
-
stop:
|
|
1509
|
+
touchRippleRef: n.oneOfType([n.func, n.shape({
|
|
1510
|
+
current: n.shape({
|
|
1511
|
+
pulsate: n.func.isRequired,
|
|
1512
|
+
start: n.func.isRequired,
|
|
1513
|
+
stop: n.func.isRequired
|
|
1534
1514
|
})
|
|
1535
1515
|
})]),
|
|
1536
1516
|
/**
|
|
1537
1517
|
* @ignore
|
|
1538
1518
|
*/
|
|
1539
|
-
type:
|
|
1519
|
+
type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string])
|
|
1540
1520
|
});
|
|
1541
|
-
function
|
|
1521
|
+
function Oo(e) {
|
|
1542
1522
|
return J("MuiIconButton", e);
|
|
1543
1523
|
}
|
|
1544
|
-
const
|
|
1524
|
+
const jo = X("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), wo = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], $o = (e) => {
|
|
1545
1525
|
const {
|
|
1546
|
-
classes:
|
|
1526
|
+
classes: t,
|
|
1547
1527
|
disabled: o,
|
|
1548
1528
|
color: r,
|
|
1549
1529
|
edge: i,
|
|
@@ -1551,19 +1531,19 @@ const Mo = X("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary
|
|
|
1551
1531
|
} = e, a = {
|
|
1552
1532
|
root: ["root", o && "disabled", r !== "default" && `color${K(r)}`, i && `edge${K(i)}`, `size${K(s)}`]
|
|
1553
1533
|
};
|
|
1554
|
-
return Q(a,
|
|
1555
|
-
},
|
|
1534
|
+
return Q(a, Oo, t);
|
|
1535
|
+
}, Mo = P(nt, {
|
|
1556
1536
|
name: "MuiIconButton",
|
|
1557
1537
|
slot: "Root",
|
|
1558
|
-
overridesResolver: (e,
|
|
1538
|
+
overridesResolver: (e, t) => {
|
|
1559
1539
|
const {
|
|
1560
1540
|
ownerState: o
|
|
1561
1541
|
} = e;
|
|
1562
|
-
return [
|
|
1542
|
+
return [t.root, o.color !== "default" && t[`color${K(o.color)}`], o.edge && t[`edge${K(o.edge)}`], t[`size${K(o.size)}`]];
|
|
1563
1543
|
}
|
|
1564
1544
|
})(({
|
|
1565
1545
|
theme: e,
|
|
1566
|
-
ownerState:
|
|
1546
|
+
ownerState: t
|
|
1567
1547
|
}) => f({
|
|
1568
1548
|
textAlign: "center",
|
|
1569
1549
|
flex: "0 0 auto",
|
|
@@ -1576,80 +1556,80 @@ const Mo = X("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary
|
|
|
1576
1556
|
transition: e.transitions.create("background-color", {
|
|
1577
1557
|
duration: e.transitions.duration.shortest
|
|
1578
1558
|
})
|
|
1579
|
-
}, !
|
|
1559
|
+
}, !t.disableRipple && {
|
|
1580
1560
|
"&:hover": {
|
|
1581
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
1561
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : Oe(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
1582
1562
|
// Reset on touch devices, it doesn't add specificity
|
|
1583
1563
|
"@media (hover: none)": {
|
|
1584
1564
|
backgroundColor: "transparent"
|
|
1585
1565
|
}
|
|
1586
1566
|
}
|
|
1587
|
-
},
|
|
1588
|
-
marginLeft:
|
|
1589
|
-
},
|
|
1590
|
-
marginRight:
|
|
1567
|
+
}, t.edge === "start" && {
|
|
1568
|
+
marginLeft: t.size === "small" ? -3 : -12
|
|
1569
|
+
}, t.edge === "end" && {
|
|
1570
|
+
marginRight: t.size === "small" ? -3 : -12
|
|
1591
1571
|
}), ({
|
|
1592
1572
|
theme: e,
|
|
1593
|
-
ownerState:
|
|
1573
|
+
ownerState: t
|
|
1594
1574
|
}) => {
|
|
1595
1575
|
var o;
|
|
1596
|
-
const r = (o = (e.vars || e).palette) == null ? void 0 : o[
|
|
1597
|
-
return f({},
|
|
1576
|
+
const r = (o = (e.vars || e).palette) == null ? void 0 : o[t.color];
|
|
1577
|
+
return f({}, t.color === "inherit" && {
|
|
1598
1578
|
color: "inherit"
|
|
1599
|
-
},
|
|
1579
|
+
}, t.color !== "inherit" && t.color !== "default" && f({
|
|
1600
1580
|
color: r == null ? void 0 : r.main
|
|
1601
|
-
}, !
|
|
1581
|
+
}, !t.disableRipple && {
|
|
1602
1582
|
"&:hover": f({}, r && {
|
|
1603
|
-
backgroundColor: e.vars ? `rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
1583
|
+
backgroundColor: e.vars ? `rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : Oe(r.main, e.palette.action.hoverOpacity)
|
|
1604
1584
|
}, {
|
|
1605
1585
|
// Reset on touch devices, it doesn't add specificity
|
|
1606
1586
|
"@media (hover: none)": {
|
|
1607
1587
|
backgroundColor: "transparent"
|
|
1608
1588
|
}
|
|
1609
1589
|
})
|
|
1610
|
-
}),
|
|
1590
|
+
}), t.size === "small" && {
|
|
1611
1591
|
padding: 5,
|
|
1612
1592
|
fontSize: e.typography.pxToRem(18)
|
|
1613
|
-
},
|
|
1593
|
+
}, t.size === "large" && {
|
|
1614
1594
|
padding: 12,
|
|
1615
1595
|
fontSize: e.typography.pxToRem(28)
|
|
1616
1596
|
}, {
|
|
1617
|
-
[`&.${
|
|
1597
|
+
[`&.${jo.disabled}`]: {
|
|
1618
1598
|
backgroundColor: "transparent",
|
|
1619
1599
|
color: (e.vars || e).palette.action.disabled
|
|
1620
1600
|
}
|
|
1621
1601
|
});
|
|
1622
|
-
}),
|
|
1602
|
+
}), zt = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
1623
1603
|
const r = Y({
|
|
1624
|
-
props:
|
|
1604
|
+
props: t,
|
|
1625
1605
|
name: "MuiIconButton"
|
|
1626
1606
|
}), {
|
|
1627
1607
|
edge: i = !1,
|
|
1628
1608
|
children: s,
|
|
1629
1609
|
className: a,
|
|
1630
1610
|
color: l = "default",
|
|
1631
|
-
disabled:
|
|
1611
|
+
disabled: u = !1,
|
|
1632
1612
|
disableFocusRipple: c = !1,
|
|
1633
|
-
size:
|
|
1634
|
-
} = r, g =
|
|
1613
|
+
size: d = "medium"
|
|
1614
|
+
} = r, g = V(r, wo), m = f({}, r, {
|
|
1635
1615
|
edge: i,
|
|
1636
1616
|
color: l,
|
|
1637
|
-
disabled:
|
|
1617
|
+
disabled: u,
|
|
1638
1618
|
disableFocusRipple: c,
|
|
1639
|
-
size:
|
|
1640
|
-
}), x =
|
|
1641
|
-
return /* @__PURE__ */ p.jsx(
|
|
1642
|
-
className:
|
|
1619
|
+
size: d
|
|
1620
|
+
}), x = $o(m);
|
|
1621
|
+
return /* @__PURE__ */ p.jsx(Mo, f({
|
|
1622
|
+
className: $(x.root, a),
|
|
1643
1623
|
centerRipple: !0,
|
|
1644
1624
|
focusRipple: !c,
|
|
1645
|
-
disabled:
|
|
1625
|
+
disabled: u,
|
|
1646
1626
|
ref: o
|
|
1647
1627
|
}, g, {
|
|
1648
|
-
ownerState:
|
|
1628
|
+
ownerState: m,
|
|
1649
1629
|
children: s
|
|
1650
1630
|
}));
|
|
1651
1631
|
});
|
|
1652
|
-
process.env.NODE_ENV !== "production" && (
|
|
1632
|
+
process.env.NODE_ENV !== "production" && (zt.propTypes = {
|
|
1653
1633
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1654
1634
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1655
1635
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1657,33 +1637,33 @@ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
|
|
|
1657
1637
|
/**
|
|
1658
1638
|
* The icon to display.
|
|
1659
1639
|
*/
|
|
1660
|
-
children:
|
|
1640
|
+
children: ke(n.node, (e) => h.Children.toArray(e.children).some((o) => /* @__PURE__ */ h.isValidElement(o) && o.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
1661
1641
|
`)) : null),
|
|
1662
1642
|
/**
|
|
1663
1643
|
* Override or extend the styles applied to the component.
|
|
1664
1644
|
*/
|
|
1665
|
-
classes:
|
|
1645
|
+
classes: n.object,
|
|
1666
1646
|
/**
|
|
1667
1647
|
* @ignore
|
|
1668
1648
|
*/
|
|
1669
|
-
className:
|
|
1649
|
+
className: n.string,
|
|
1670
1650
|
/**
|
|
1671
1651
|
* The color of the component.
|
|
1672
1652
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1673
1653
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
1674
1654
|
* @default 'default'
|
|
1675
1655
|
*/
|
|
1676
|
-
color:
|
|
1656
|
+
color: n.oneOfType([n.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
|
|
1677
1657
|
/**
|
|
1678
1658
|
* If `true`, the component is disabled.
|
|
1679
1659
|
* @default false
|
|
1680
1660
|
*/
|
|
1681
|
-
disabled:
|
|
1661
|
+
disabled: n.bool,
|
|
1682
1662
|
/**
|
|
1683
1663
|
* If `true`, the keyboard focus ripple is disabled.
|
|
1684
1664
|
* @default false
|
|
1685
1665
|
*/
|
|
1686
|
-
disableFocusRipple:
|
|
1666
|
+
disableFocusRipple: n.bool,
|
|
1687
1667
|
/**
|
|
1688
1668
|
* If `true`, the ripple effect is disabled.
|
|
1689
1669
|
*
|
|
@@ -1691,7 +1671,7 @@ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
|
|
|
1691
1671
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
1692
1672
|
* @default false
|
|
1693
1673
|
*/
|
|
1694
|
-
disableRipple:
|
|
1674
|
+
disableRipple: n.bool,
|
|
1695
1675
|
/**
|
|
1696
1676
|
* If given, uses a negative margin to counteract the padding on one
|
|
1697
1677
|
* side (this is often helpful for aligning the left or right
|
|
@@ -1699,54 +1679,54 @@ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
|
|
|
1699
1679
|
* size and shape).
|
|
1700
1680
|
* @default false
|
|
1701
1681
|
*/
|
|
1702
|
-
edge:
|
|
1682
|
+
edge: n.oneOf(["end", "start", !1]),
|
|
1703
1683
|
/**
|
|
1704
1684
|
* The size of the component.
|
|
1705
1685
|
* `small` is equivalent to the dense button styling.
|
|
1706
1686
|
* @default 'medium'
|
|
1707
1687
|
*/
|
|
1708
|
-
size:
|
|
1688
|
+
size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
|
|
1709
1689
|
/**
|
|
1710
1690
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1711
1691
|
*/
|
|
1712
|
-
sx:
|
|
1692
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
1713
1693
|
});
|
|
1714
|
-
const
|
|
1694
|
+
const ko = be(/* @__PURE__ */ p.jsx("path", {
|
|
1715
1695
|
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
1716
|
-
}), "SuccessOutlined"),
|
|
1696
|
+
}), "SuccessOutlined"), Po = be(/* @__PURE__ */ p.jsx("path", {
|
|
1717
1697
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
1718
|
-
}), "ReportProblemOutlined"),
|
|
1698
|
+
}), "ReportProblemOutlined"), Io = be(/* @__PURE__ */ p.jsx("path", {
|
|
1719
1699
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
1720
|
-
}), "ErrorOutline"),
|
|
1700
|
+
}), "ErrorOutline"), Ao = be(/* @__PURE__ */ p.jsx("path", {
|
|
1721
1701
|
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
1722
|
-
}), "InfoOutlined"),
|
|
1702
|
+
}), "InfoOutlined"), Vo = be(/* @__PURE__ */ p.jsx("path", {
|
|
1723
1703
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1724
|
-
}), "Close"),
|
|
1704
|
+
}), "Close"), Do = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"], Bo = (e) => {
|
|
1725
1705
|
const {
|
|
1726
|
-
variant:
|
|
1706
|
+
variant: t,
|
|
1727
1707
|
color: o,
|
|
1728
1708
|
severity: r,
|
|
1729
1709
|
classes: i
|
|
1730
1710
|
} = e, s = {
|
|
1731
|
-
root: ["root", `color${K(o || r)}`, `${
|
|
1711
|
+
root: ["root", `color${K(o || r)}`, `${t}${K(o || r)}`, `${t}`],
|
|
1732
1712
|
icon: ["icon"],
|
|
1733
1713
|
message: ["message"],
|
|
1734
1714
|
action: ["action"]
|
|
1735
1715
|
};
|
|
1736
|
-
return Q(s,
|
|
1737
|
-
},
|
|
1716
|
+
return Q(s, so, i);
|
|
1717
|
+
}, zo = P(Qe, {
|
|
1738
1718
|
name: "MuiAlert",
|
|
1739
1719
|
slot: "Root",
|
|
1740
|
-
overridesResolver: (e,
|
|
1720
|
+
overridesResolver: (e, t) => {
|
|
1741
1721
|
const {
|
|
1742
1722
|
ownerState: o
|
|
1743
1723
|
} = e;
|
|
1744
|
-
return [
|
|
1724
|
+
return [t.root, t[o.variant], t[`${o.variant}${K(o.color || o.severity)}`]];
|
|
1745
1725
|
}
|
|
1746
1726
|
})(({
|
|
1747
1727
|
theme: e
|
|
1748
1728
|
}) => {
|
|
1749
|
-
const
|
|
1729
|
+
const t = e.palette.mode === "light" ? dt : ft, o = e.palette.mode === "light" ? ft : dt;
|
|
1750
1730
|
return f({}, e.typography.body2, {
|
|
1751
1731
|
backgroundColor: "transparent",
|
|
1752
1732
|
display: "flex",
|
|
@@ -1757,9 +1737,9 @@ const Vo = ve(/* @__PURE__ */ p.jsx("path", {
|
|
|
1757
1737
|
variant: "standard"
|
|
1758
1738
|
},
|
|
1759
1739
|
style: {
|
|
1760
|
-
color: e.vars ? e.vars.palette.Alert[`${r}Color`] :
|
|
1740
|
+
color: e.vars ? e.vars.palette.Alert[`${r}Color`] : t(e.palette[r].light, 0.6),
|
|
1761
1741
|
backgroundColor: e.vars ? e.vars.palette.Alert[`${r}StandardBg`] : o(e.palette[r].light, 0.9),
|
|
1762
|
-
[`& .${
|
|
1742
|
+
[`& .${ht.icon}`]: e.vars ? {
|
|
1763
1743
|
color: e.vars.palette.Alert[`${r}IconColor`]
|
|
1764
1744
|
} : {
|
|
1765
1745
|
color: e.palette[r].main
|
|
@@ -1771,9 +1751,9 @@ const Vo = ve(/* @__PURE__ */ p.jsx("path", {
|
|
|
1771
1751
|
variant: "outlined"
|
|
1772
1752
|
},
|
|
1773
1753
|
style: {
|
|
1774
|
-
color: e.vars ? e.vars.palette.Alert[`${r}Color`] :
|
|
1754
|
+
color: e.vars ? e.vars.palette.Alert[`${r}Color`] : t(e.palette[r].light, 0.6),
|
|
1775
1755
|
border: `1px solid ${(e.vars || e).palette[r].light}`,
|
|
1776
|
-
[`& .${
|
|
1756
|
+
[`& .${ht.icon}`]: e.vars ? {
|
|
1777
1757
|
color: e.vars.palette.Alert[`${r}IconColor`]
|
|
1778
1758
|
} : {
|
|
1779
1759
|
color: e.palette[r].main
|
|
@@ -1795,28 +1775,28 @@ const Vo = ve(/* @__PURE__ */ p.jsx("path", {
|
|
|
1795
1775
|
})
|
|
1796
1776
|
}))]
|
|
1797
1777
|
});
|
|
1798
|
-
}),
|
|
1778
|
+
}), _o = P("div", {
|
|
1799
1779
|
name: "MuiAlert",
|
|
1800
1780
|
slot: "Icon",
|
|
1801
|
-
overridesResolver: (e,
|
|
1781
|
+
overridesResolver: (e, t) => t.icon
|
|
1802
1782
|
})({
|
|
1803
1783
|
marginRight: 12,
|
|
1804
1784
|
padding: "7px 0",
|
|
1805
1785
|
display: "flex",
|
|
1806
1786
|
fontSize: 22,
|
|
1807
1787
|
opacity: 0.9
|
|
1808
|
-
}),
|
|
1788
|
+
}), Lo = P("div", {
|
|
1809
1789
|
name: "MuiAlert",
|
|
1810
1790
|
slot: "Message",
|
|
1811
|
-
overridesResolver: (e,
|
|
1791
|
+
overridesResolver: (e, t) => t.message
|
|
1812
1792
|
})({
|
|
1813
1793
|
padding: "8px 0",
|
|
1814
1794
|
minWidth: 0,
|
|
1815
1795
|
overflow: "auto"
|
|
1816
|
-
}),
|
|
1796
|
+
}), Et = P("div", {
|
|
1817
1797
|
name: "MuiAlert",
|
|
1818
1798
|
slot: "Action",
|
|
1819
|
-
overridesResolver: (e,
|
|
1799
|
+
overridesResolver: (e, t) => t.action
|
|
1820
1800
|
})({
|
|
1821
1801
|
display: "flex",
|
|
1822
1802
|
alignItems: "flex-start",
|
|
@@ -1824,79 +1804,79 @@ const Vo = ve(/* @__PURE__ */ p.jsx("path", {
|
|
|
1824
1804
|
marginLeft: "auto",
|
|
1825
1805
|
marginRight: -8
|
|
1826
1806
|
}), Ct = {
|
|
1827
|
-
success: /* @__PURE__ */ p.jsx(
|
|
1807
|
+
success: /* @__PURE__ */ p.jsx(ko, {
|
|
1828
1808
|
fontSize: "inherit"
|
|
1829
1809
|
}),
|
|
1830
|
-
warning: /* @__PURE__ */ p.jsx(
|
|
1810
|
+
warning: /* @__PURE__ */ p.jsx(Po, {
|
|
1831
1811
|
fontSize: "inherit"
|
|
1832
1812
|
}),
|
|
1833
|
-
error: /* @__PURE__ */ p.jsx(
|
|
1813
|
+
error: /* @__PURE__ */ p.jsx(Io, {
|
|
1834
1814
|
fontSize: "inherit"
|
|
1835
1815
|
}),
|
|
1836
|
-
info: /* @__PURE__ */ p.jsx(
|
|
1816
|
+
info: /* @__PURE__ */ p.jsx(Ao, {
|
|
1837
1817
|
fontSize: "inherit"
|
|
1838
1818
|
})
|
|
1839
|
-
}, _t = /* @__PURE__ */
|
|
1819
|
+
}, _t = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
1840
1820
|
const r = Y({
|
|
1841
|
-
props:
|
|
1821
|
+
props: t,
|
|
1842
1822
|
name: "MuiAlert"
|
|
1843
1823
|
}), {
|
|
1844
1824
|
action: i,
|
|
1845
1825
|
children: s,
|
|
1846
1826
|
className: a,
|
|
1847
1827
|
closeText: l = "Close",
|
|
1848
|
-
color:
|
|
1828
|
+
color: u,
|
|
1849
1829
|
components: c = {},
|
|
1850
|
-
componentsProps:
|
|
1830
|
+
componentsProps: d = {},
|
|
1851
1831
|
icon: g,
|
|
1852
|
-
iconMapping:
|
|
1832
|
+
iconMapping: m = Ct,
|
|
1853
1833
|
onClose: x,
|
|
1854
1834
|
role: y = "alert",
|
|
1855
|
-
severity:
|
|
1856
|
-
slotProps:
|
|
1835
|
+
severity: T = "success",
|
|
1836
|
+
slotProps: j = {},
|
|
1857
1837
|
slots: C = {},
|
|
1858
1838
|
variant: M = "standard"
|
|
1859
|
-
} = r,
|
|
1860
|
-
color:
|
|
1861
|
-
severity:
|
|
1839
|
+
} = r, w = V(r, Do), b = f({}, r, {
|
|
1840
|
+
color: u,
|
|
1841
|
+
severity: T,
|
|
1862
1842
|
variant: M,
|
|
1863
|
-
colorSeverity:
|
|
1864
|
-
}), N =
|
|
1843
|
+
colorSeverity: u || T
|
|
1844
|
+
}), N = Bo(b), R = {
|
|
1865
1845
|
slots: f({
|
|
1866
1846
|
closeButton: c.CloseButton,
|
|
1867
1847
|
closeIcon: c.CloseIcon
|
|
1868
1848
|
}, C),
|
|
1869
|
-
slotProps: f({},
|
|
1849
|
+
slotProps: f({}, d, j)
|
|
1870
1850
|
}, [O, k] = Ge("closeButton", {
|
|
1871
|
-
elementType:
|
|
1851
|
+
elementType: zt,
|
|
1872
1852
|
externalForwardedProps: R,
|
|
1873
|
-
ownerState:
|
|
1853
|
+
ownerState: b
|
|
1874
1854
|
}), [W, S] = Ge("closeIcon", {
|
|
1875
|
-
elementType:
|
|
1855
|
+
elementType: Vo,
|
|
1876
1856
|
externalForwardedProps: R,
|
|
1877
|
-
ownerState:
|
|
1857
|
+
ownerState: b
|
|
1878
1858
|
});
|
|
1879
|
-
return /* @__PURE__ */ p.jsxs(
|
|
1859
|
+
return /* @__PURE__ */ p.jsxs(zo, f({
|
|
1880
1860
|
role: y,
|
|
1881
1861
|
elevation: 0,
|
|
1882
|
-
ownerState:
|
|
1883
|
-
className:
|
|
1862
|
+
ownerState: b,
|
|
1863
|
+
className: $(N.root, a),
|
|
1884
1864
|
ref: o
|
|
1885
|
-
},
|
|
1886
|
-
children: [g !== !1 ? /* @__PURE__ */ p.jsx(
|
|
1887
|
-
ownerState:
|
|
1865
|
+
}, w, {
|
|
1866
|
+
children: [g !== !1 ? /* @__PURE__ */ p.jsx(_o, {
|
|
1867
|
+
ownerState: b,
|
|
1888
1868
|
className: N.icon,
|
|
1889
|
-
children: g ||
|
|
1890
|
-
}) : null, /* @__PURE__ */ p.jsx(
|
|
1891
|
-
ownerState:
|
|
1869
|
+
children: g || m[T] || Ct[T]
|
|
1870
|
+
}) : null, /* @__PURE__ */ p.jsx(Lo, {
|
|
1871
|
+
ownerState: b,
|
|
1892
1872
|
className: N.message,
|
|
1893
1873
|
children: s
|
|
1894
|
-
}), i != null ? /* @__PURE__ */ p.jsx(
|
|
1895
|
-
ownerState:
|
|
1874
|
+
}), i != null ? /* @__PURE__ */ p.jsx(Et, {
|
|
1875
|
+
ownerState: b,
|
|
1896
1876
|
className: N.action,
|
|
1897
1877
|
children: i
|
|
1898
|
-
}) : null, i == null && x ? /* @__PURE__ */ p.jsx(
|
|
1899
|
-
ownerState:
|
|
1878
|
+
}) : null, i == null && x ? /* @__PURE__ */ p.jsx(Et, {
|
|
1879
|
+
ownerState: b,
|
|
1900
1880
|
className: N.action,
|
|
1901
1881
|
children: /* @__PURE__ */ p.jsx(O, f({
|
|
1902
1882
|
size: "small",
|
|
@@ -1920,32 +1900,32 @@ process.env.NODE_ENV !== "production" && (_t.propTypes = {
|
|
|
1920
1900
|
/**
|
|
1921
1901
|
* The action to display. It renders after the message, at the end of the alert.
|
|
1922
1902
|
*/
|
|
1923
|
-
action:
|
|
1903
|
+
action: n.node,
|
|
1924
1904
|
/**
|
|
1925
1905
|
* The content of the component.
|
|
1926
1906
|
*/
|
|
1927
|
-
children:
|
|
1907
|
+
children: n.node,
|
|
1928
1908
|
/**
|
|
1929
1909
|
* Override or extend the styles applied to the component.
|
|
1930
1910
|
*/
|
|
1931
|
-
classes:
|
|
1911
|
+
classes: n.object,
|
|
1932
1912
|
/**
|
|
1933
1913
|
* @ignore
|
|
1934
1914
|
*/
|
|
1935
|
-
className:
|
|
1915
|
+
className: n.string,
|
|
1936
1916
|
/**
|
|
1937
1917
|
* Override the default label for the *close popup* icon button.
|
|
1938
1918
|
*
|
|
1939
1919
|
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
1940
1920
|
* @default 'Close'
|
|
1941
1921
|
*/
|
|
1942
|
-
closeText:
|
|
1922
|
+
closeText: n.string,
|
|
1943
1923
|
/**
|
|
1944
1924
|
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
1945
1925
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1946
1926
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
1947
1927
|
*/
|
|
1948
|
-
color:
|
|
1928
|
+
color: n.oneOfType([n.oneOf(["error", "info", "success", "warning"]), n.string]),
|
|
1949
1929
|
/**
|
|
1950
1930
|
* The components used for each slot inside.
|
|
1951
1931
|
*
|
|
@@ -1953,9 +1933,9 @@ process.env.NODE_ENV !== "production" && (_t.propTypes = {
|
|
|
1953
1933
|
*
|
|
1954
1934
|
* @default {}
|
|
1955
1935
|
*/
|
|
1956
|
-
components:
|
|
1957
|
-
CloseButton:
|
|
1958
|
-
CloseIcon:
|
|
1936
|
+
components: n.shape({
|
|
1937
|
+
CloseButton: n.elementType,
|
|
1938
|
+
CloseIcon: n.elementType
|
|
1959
1939
|
}),
|
|
1960
1940
|
/**
|
|
1961
1941
|
* The extra props for the slot components.
|
|
@@ -1965,105 +1945,105 @@ process.env.NODE_ENV !== "production" && (_t.propTypes = {
|
|
|
1965
1945
|
*
|
|
1966
1946
|
* @default {}
|
|
1967
1947
|
*/
|
|
1968
|
-
componentsProps:
|
|
1969
|
-
closeButton:
|
|
1970
|
-
closeIcon:
|
|
1948
|
+
componentsProps: n.shape({
|
|
1949
|
+
closeButton: n.object,
|
|
1950
|
+
closeIcon: n.object
|
|
1971
1951
|
}),
|
|
1972
1952
|
/**
|
|
1973
1953
|
* Override the icon displayed before the children.
|
|
1974
1954
|
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
|
1975
1955
|
* Set to `false` to remove the `icon`.
|
|
1976
1956
|
*/
|
|
1977
|
-
icon:
|
|
1957
|
+
icon: n.node,
|
|
1978
1958
|
/**
|
|
1979
1959
|
* The component maps the `severity` prop to a range of different icons,
|
|
1980
1960
|
* for instance success to `<SuccessOutlined>`.
|
|
1981
1961
|
* If you wish to change this mapping, you can provide your own.
|
|
1982
1962
|
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
|
1983
1963
|
*/
|
|
1984
|
-
iconMapping:
|
|
1985
|
-
error:
|
|
1986
|
-
info:
|
|
1987
|
-
success:
|
|
1988
|
-
warning:
|
|
1964
|
+
iconMapping: n.shape({
|
|
1965
|
+
error: n.node,
|
|
1966
|
+
info: n.node,
|
|
1967
|
+
success: n.node,
|
|
1968
|
+
warning: n.node
|
|
1989
1969
|
}),
|
|
1990
1970
|
/**
|
|
1991
1971
|
* Callback fired when the component requests to be closed.
|
|
1992
1972
|
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
|
1993
1973
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1994
1974
|
*/
|
|
1995
|
-
onClose:
|
|
1975
|
+
onClose: n.func,
|
|
1996
1976
|
/**
|
|
1997
1977
|
* The ARIA role attribute of the element.
|
|
1998
1978
|
* @default 'alert'
|
|
1999
1979
|
*/
|
|
2000
|
-
role:
|
|
1980
|
+
role: n.string,
|
|
2001
1981
|
/**
|
|
2002
1982
|
* The severity of the alert. This defines the color and icon used.
|
|
2003
1983
|
* @default 'success'
|
|
2004
1984
|
*/
|
|
2005
|
-
severity:
|
|
1985
|
+
severity: n.oneOfType([n.oneOf(["error", "info", "success", "warning"]), n.string]),
|
|
2006
1986
|
/**
|
|
2007
1987
|
* The props used for each slot inside.
|
|
2008
1988
|
* @default {}
|
|
2009
1989
|
*/
|
|
2010
|
-
slotProps:
|
|
2011
|
-
closeButton:
|
|
2012
|
-
closeIcon:
|
|
1990
|
+
slotProps: n.shape({
|
|
1991
|
+
closeButton: n.oneOfType([n.func, n.object]),
|
|
1992
|
+
closeIcon: n.oneOfType([n.func, n.object])
|
|
2013
1993
|
}),
|
|
2014
1994
|
/**
|
|
2015
1995
|
* The components used for each slot inside.
|
|
2016
1996
|
* @default {}
|
|
2017
1997
|
*/
|
|
2018
|
-
slots:
|
|
2019
|
-
closeButton:
|
|
2020
|
-
closeIcon:
|
|
1998
|
+
slots: n.shape({
|
|
1999
|
+
closeButton: n.elementType,
|
|
2000
|
+
closeIcon: n.elementType
|
|
2021
2001
|
}),
|
|
2022
2002
|
/**
|
|
2023
2003
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2024
2004
|
*/
|
|
2025
|
-
sx:
|
|
2005
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
2026
2006
|
/**
|
|
2027
2007
|
* The variant to use.
|
|
2028
2008
|
* @default 'standard'
|
|
2029
2009
|
*/
|
|
2030
|
-
variant:
|
|
2010
|
+
variant: n.oneOfType([n.oneOf(["filled", "outlined", "standard"]), n.string])
|
|
2031
2011
|
});
|
|
2032
|
-
const
|
|
2012
|
+
const Wo = ({ triggerResponse: e, showNotification: t, onClose: o }) => e && t ? p.jsxs(_t, { onClose: o, sx: { marginBottom: 20 }, elevation: 6, severity: "success", variant: "filled", children: ["Backend response: ", e] }) : null, Xe = /* @__PURE__ */ h.createContext();
|
|
2033
2013
|
process.env.NODE_ENV !== "production" && (Xe.displayName = "GridContext");
|
|
2034
|
-
function
|
|
2014
|
+
function Fo(e) {
|
|
2035
2015
|
return J("MuiGrid", e);
|
|
2036
2016
|
}
|
|
2037
|
-
const
|
|
2017
|
+
const Uo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Go = ["column-reverse", "column", "row-reverse", "row"], qo = ["nowrap", "wrap-reverse", "wrap"], ge = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], he = X("MuiGrid", [
|
|
2038
2018
|
"root",
|
|
2039
2019
|
"container",
|
|
2040
2020
|
"item",
|
|
2041
2021
|
"zeroMinWidth",
|
|
2042
2022
|
// spacings
|
|
2043
|
-
...
|
|
2023
|
+
...Uo.map((e) => `spacing-xs-${e}`),
|
|
2044
2024
|
// direction values
|
|
2045
|
-
...
|
|
2025
|
+
...Go.map((e) => `direction-xs-${e}`),
|
|
2046
2026
|
// wrap values
|
|
2047
|
-
...
|
|
2027
|
+
...qo.map((e) => `wrap-xs-${e}`),
|
|
2048
2028
|
// grid sizes for all breakpoints
|
|
2049
2029
|
...ge.map((e) => `grid-xs-${e}`),
|
|
2050
2030
|
...ge.map((e) => `grid-sm-${e}`),
|
|
2051
2031
|
...ge.map((e) => `grid-md-${e}`),
|
|
2052
2032
|
...ge.map((e) => `grid-lg-${e}`),
|
|
2053
2033
|
...ge.map((e) => `grid-xl-${e}`)
|
|
2054
|
-
]),
|
|
2055
|
-
function
|
|
2056
|
-
const
|
|
2057
|
-
return `${
|
|
2034
|
+
]), Ho = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
2035
|
+
function pe(e) {
|
|
2036
|
+
const t = parseFloat(e);
|
|
2037
|
+
return `${t}${String(e).replace(String(t), "") || "px"}`;
|
|
2058
2038
|
}
|
|
2059
|
-
function
|
|
2039
|
+
function Ko({
|
|
2060
2040
|
theme: e,
|
|
2061
|
-
ownerState:
|
|
2041
|
+
ownerState: t
|
|
2062
2042
|
}) {
|
|
2063
2043
|
let o;
|
|
2064
2044
|
return e.breakpoints.keys.reduce((r, i) => {
|
|
2065
2045
|
let s = {};
|
|
2066
|
-
if (
|
|
2046
|
+
if (t[i] && (o = t[i]), !o)
|
|
2067
2047
|
return r;
|
|
2068
2048
|
if (o === !0)
|
|
2069
2049
|
s = {
|
|
@@ -2080,18 +2060,18 @@ function Zo({
|
|
|
2080
2060
|
width: "auto"
|
|
2081
2061
|
};
|
|
2082
2062
|
else {
|
|
2083
|
-
const a =
|
|
2084
|
-
values:
|
|
2063
|
+
const a = Me({
|
|
2064
|
+
values: t.columns,
|
|
2085
2065
|
breakpoints: e.breakpoints.values
|
|
2086
2066
|
}), l = typeof a == "object" ? a[i] : a;
|
|
2087
2067
|
if (l == null)
|
|
2088
2068
|
return r;
|
|
2089
|
-
const
|
|
2069
|
+
const u = `${Math.round(o / l * 1e8) / 1e6}%`;
|
|
2090
2070
|
let c = {};
|
|
2091
|
-
if (
|
|
2092
|
-
const
|
|
2093
|
-
if (
|
|
2094
|
-
const g = `calc(${
|
|
2071
|
+
if (t.container && t.item && t.columnSpacing !== 0) {
|
|
2072
|
+
const d = e.spacing(t.columnSpacing);
|
|
2073
|
+
if (d !== "0px") {
|
|
2074
|
+
const g = `calc(${u} + ${pe(d)})`;
|
|
2095
2075
|
c = {
|
|
2096
2076
|
flexBasis: g,
|
|
2097
2077
|
maxWidth: g
|
|
@@ -2099,20 +2079,20 @@ function Zo({
|
|
|
2099
2079
|
}
|
|
2100
2080
|
}
|
|
2101
2081
|
s = f({
|
|
2102
|
-
flexBasis:
|
|
2082
|
+
flexBasis: u,
|
|
2103
2083
|
flexGrow: 0,
|
|
2104
|
-
maxWidth:
|
|
2084
|
+
maxWidth: u
|
|
2105
2085
|
}, c);
|
|
2106
2086
|
}
|
|
2107
2087
|
return e.breakpoints.values[i] === 0 ? Object.assign(r, s) : r[e.breakpoints.up(i)] = s, r;
|
|
2108
2088
|
}, {});
|
|
2109
2089
|
}
|
|
2110
|
-
function
|
|
2090
|
+
function Xo({
|
|
2111
2091
|
theme: e,
|
|
2112
|
-
ownerState:
|
|
2092
|
+
ownerState: t
|
|
2113
2093
|
}) {
|
|
2114
|
-
const o =
|
|
2115
|
-
values:
|
|
2094
|
+
const o = Me({
|
|
2095
|
+
values: t.direction,
|
|
2116
2096
|
breakpoints: e.breakpoints.values
|
|
2117
2097
|
});
|
|
2118
2098
|
return Ye({
|
|
@@ -2121,53 +2101,53 @@ function Jo({
|
|
|
2121
2101
|
const i = {
|
|
2122
2102
|
flexDirection: r
|
|
2123
2103
|
};
|
|
2124
|
-
return r.indexOf("column") === 0 && (i[`& > .${
|
|
2104
|
+
return r.indexOf("column") === 0 && (i[`& > .${he.item}`] = {
|
|
2125
2105
|
maxWidth: "none"
|
|
2126
2106
|
}), i;
|
|
2127
2107
|
});
|
|
2128
2108
|
}
|
|
2129
|
-
function
|
|
2109
|
+
function Lt({
|
|
2130
2110
|
breakpoints: e,
|
|
2131
|
-
values:
|
|
2111
|
+
values: t
|
|
2132
2112
|
}) {
|
|
2133
2113
|
let o = "";
|
|
2134
|
-
Object.keys(
|
|
2135
|
-
o === "" &&
|
|
2114
|
+
Object.keys(t).forEach((i) => {
|
|
2115
|
+
o === "" && t[i] !== 0 && (o = i);
|
|
2136
2116
|
});
|
|
2137
2117
|
const r = Object.keys(e).sort((i, s) => e[i] - e[s]);
|
|
2138
2118
|
return r.slice(0, r.indexOf(o));
|
|
2139
2119
|
}
|
|
2140
|
-
function
|
|
2120
|
+
function Yo({
|
|
2141
2121
|
theme: e,
|
|
2142
|
-
ownerState:
|
|
2122
|
+
ownerState: t
|
|
2143
2123
|
}) {
|
|
2144
2124
|
const {
|
|
2145
2125
|
container: o,
|
|
2146
2126
|
rowSpacing: r
|
|
2147
|
-
} =
|
|
2127
|
+
} = t;
|
|
2148
2128
|
let i = {};
|
|
2149
2129
|
if (o && r !== 0) {
|
|
2150
|
-
const s =
|
|
2130
|
+
const s = Me({
|
|
2151
2131
|
values: r,
|
|
2152
2132
|
breakpoints: e.breakpoints.values
|
|
2153
2133
|
});
|
|
2154
2134
|
let a;
|
|
2155
|
-
typeof s == "object" && (a =
|
|
2135
|
+
typeof s == "object" && (a = Lt({
|
|
2156
2136
|
breakpoints: e.breakpoints.values,
|
|
2157
2137
|
values: s
|
|
2158
2138
|
})), i = Ye({
|
|
2159
2139
|
theme: e
|
|
2160
|
-
}, s, (l,
|
|
2140
|
+
}, s, (l, u) => {
|
|
2161
2141
|
var c;
|
|
2162
|
-
const
|
|
2163
|
-
return
|
|
2164
|
-
marginTop: `-${
|
|
2165
|
-
[`& > .${
|
|
2166
|
-
paddingTop:
|
|
2142
|
+
const d = e.spacing(l);
|
|
2143
|
+
return d !== "0px" ? {
|
|
2144
|
+
marginTop: `-${pe(d)}`,
|
|
2145
|
+
[`& > .${he.item}`]: {
|
|
2146
|
+
paddingTop: pe(d)
|
|
2167
2147
|
}
|
|
2168
|
-
} : (c = a) != null && c.includes(
|
|
2148
|
+
} : (c = a) != null && c.includes(u) ? {} : {
|
|
2169
2149
|
marginTop: 0,
|
|
2170
|
-
[`& > .${
|
|
2150
|
+
[`& > .${he.item}`]: {
|
|
2171
2151
|
paddingTop: 0
|
|
2172
2152
|
}
|
|
2173
2153
|
};
|
|
@@ -2175,39 +2155,39 @@ function Qo({
|
|
|
2175
2155
|
}
|
|
2176
2156
|
return i;
|
|
2177
2157
|
}
|
|
2178
|
-
function
|
|
2158
|
+
function Zo({
|
|
2179
2159
|
theme: e,
|
|
2180
|
-
ownerState:
|
|
2160
|
+
ownerState: t
|
|
2181
2161
|
}) {
|
|
2182
2162
|
const {
|
|
2183
2163
|
container: o,
|
|
2184
2164
|
columnSpacing: r
|
|
2185
|
-
} =
|
|
2165
|
+
} = t;
|
|
2186
2166
|
let i = {};
|
|
2187
2167
|
if (o && r !== 0) {
|
|
2188
|
-
const s =
|
|
2168
|
+
const s = Me({
|
|
2189
2169
|
values: r,
|
|
2190
2170
|
breakpoints: e.breakpoints.values
|
|
2191
2171
|
});
|
|
2192
2172
|
let a;
|
|
2193
|
-
typeof s == "object" && (a =
|
|
2173
|
+
typeof s == "object" && (a = Lt({
|
|
2194
2174
|
breakpoints: e.breakpoints.values,
|
|
2195
2175
|
values: s
|
|
2196
2176
|
})), i = Ye({
|
|
2197
2177
|
theme: e
|
|
2198
|
-
}, s, (l,
|
|
2178
|
+
}, s, (l, u) => {
|
|
2199
2179
|
var c;
|
|
2200
|
-
const
|
|
2201
|
-
return
|
|
2202
|
-
width: `calc(100% + ${
|
|
2203
|
-
marginLeft: `-${
|
|
2204
|
-
[`& > .${
|
|
2205
|
-
paddingLeft:
|
|
2180
|
+
const d = e.spacing(l);
|
|
2181
|
+
return d !== "0px" ? {
|
|
2182
|
+
width: `calc(100% + ${pe(d)})`,
|
|
2183
|
+
marginLeft: `-${pe(d)}`,
|
|
2184
|
+
[`& > .${he.item}`]: {
|
|
2185
|
+
paddingLeft: pe(d)
|
|
2206
2186
|
}
|
|
2207
|
-
} : (c = a) != null && c.includes(
|
|
2187
|
+
} : (c = a) != null && c.includes(u) ? {} : {
|
|
2208
2188
|
width: "100%",
|
|
2209
2189
|
marginLeft: 0,
|
|
2210
|
-
[`& > .${
|
|
2190
|
+
[`& > .${he.item}`]: {
|
|
2211
2191
|
paddingLeft: 0
|
|
2212
2192
|
}
|
|
2213
2193
|
};
|
|
@@ -2215,21 +2195,21 @@ function er({
|
|
|
2215
2195
|
}
|
|
2216
2196
|
return i;
|
|
2217
2197
|
}
|
|
2218
|
-
function
|
|
2198
|
+
function Jo(e, t, o = {}) {
|
|
2219
2199
|
if (!e || e <= 0)
|
|
2220
2200
|
return [];
|
|
2221
2201
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
2222
2202
|
return [o[`spacing-xs-${String(e)}`]];
|
|
2223
2203
|
const r = [];
|
|
2224
|
-
return
|
|
2204
|
+
return t.forEach((i) => {
|
|
2225
2205
|
const s = e[i];
|
|
2226
2206
|
Number(s) > 0 && r.push(o[`spacing-${i}-${String(s)}`]);
|
|
2227
2207
|
}), r;
|
|
2228
2208
|
}
|
|
2229
|
-
const
|
|
2209
|
+
const Qo = P("div", {
|
|
2230
2210
|
name: "MuiGrid",
|
|
2231
2211
|
slot: "Root",
|
|
2232
|
-
overridesResolver: (e,
|
|
2212
|
+
overridesResolver: (e, t) => {
|
|
2233
2213
|
const {
|
|
2234
2214
|
ownerState: o
|
|
2235
2215
|
} = e, {
|
|
@@ -2238,16 +2218,16 @@ const nr = P("div", {
|
|
|
2238
2218
|
item: s,
|
|
2239
2219
|
spacing: a,
|
|
2240
2220
|
wrap: l,
|
|
2241
|
-
zeroMinWidth:
|
|
2221
|
+
zeroMinWidth: u,
|
|
2242
2222
|
breakpoints: c
|
|
2243
2223
|
} = o;
|
|
2244
|
-
let
|
|
2245
|
-
r && (
|
|
2224
|
+
let d = [];
|
|
2225
|
+
r && (d = Jo(a, c, t));
|
|
2246
2226
|
const g = [];
|
|
2247
|
-
return c.forEach((
|
|
2248
|
-
const x = o[
|
|
2249
|
-
x && g.push(
|
|
2250
|
-
}), [
|
|
2227
|
+
return c.forEach((m) => {
|
|
2228
|
+
const x = o[m];
|
|
2229
|
+
x && g.push(t[`grid-${m}-${String(x)}`]);
|
|
2230
|
+
}), [t.root, r && t.container, s && t.item, u && t.zeroMinWidth, ...d, i !== "row" && t[`direction-xs-${String(i)}`], l !== "wrap" && t[`wrap-xs-${String(l)}`], ...g];
|
|
2251
2231
|
}
|
|
2252
2232
|
})(({
|
|
2253
2233
|
ownerState: e
|
|
@@ -2264,14 +2244,14 @@ const nr = P("div", {
|
|
|
2264
2244
|
minWidth: 0
|
|
2265
2245
|
}, e.wrap !== "wrap" && {
|
|
2266
2246
|
flexWrap: e.wrap
|
|
2267
|
-
}),
|
|
2268
|
-
function
|
|
2247
|
+
}), Xo, Yo, Zo, Ko);
|
|
2248
|
+
function er(e, t) {
|
|
2269
2249
|
if (!e || e <= 0)
|
|
2270
2250
|
return [];
|
|
2271
2251
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
2272
2252
|
return [`spacing-xs-${String(e)}`];
|
|
2273
2253
|
const o = [];
|
|
2274
|
-
return
|
|
2254
|
+
return t.forEach((r) => {
|
|
2275
2255
|
const i = e[r];
|
|
2276
2256
|
if (Number(i) > 0) {
|
|
2277
2257
|
const s = `spacing-${r}-${String(i)}`;
|
|
@@ -2279,74 +2259,74 @@ function or(e, n) {
|
|
|
2279
2259
|
}
|
|
2280
2260
|
}), o;
|
|
2281
2261
|
}
|
|
2282
|
-
const
|
|
2262
|
+
const tr = (e) => {
|
|
2283
2263
|
const {
|
|
2284
|
-
classes:
|
|
2264
|
+
classes: t,
|
|
2285
2265
|
container: o,
|
|
2286
2266
|
direction: r,
|
|
2287
2267
|
item: i,
|
|
2288
2268
|
spacing: s,
|
|
2289
2269
|
wrap: a,
|
|
2290
2270
|
zeroMinWidth: l,
|
|
2291
|
-
breakpoints:
|
|
2271
|
+
breakpoints: u
|
|
2292
2272
|
} = e;
|
|
2293
2273
|
let c = [];
|
|
2294
|
-
o && (c =
|
|
2295
|
-
const
|
|
2296
|
-
|
|
2297
|
-
const x = e[
|
|
2298
|
-
x &&
|
|
2274
|
+
o && (c = er(s, u));
|
|
2275
|
+
const d = [];
|
|
2276
|
+
u.forEach((m) => {
|
|
2277
|
+
const x = e[m];
|
|
2278
|
+
x && d.push(`grid-${m}-${String(x)}`);
|
|
2299
2279
|
});
|
|
2300
2280
|
const g = {
|
|
2301
|
-
root: ["root", o && "container", i && "item", l && "zeroMinWidth", ...c, r !== "row" && `direction-xs-${String(r)}`, a !== "wrap" && `wrap-xs-${String(a)}`, ...
|
|
2281
|
+
root: ["root", o && "container", i && "item", l && "zeroMinWidth", ...c, r !== "row" && `direction-xs-${String(r)}`, a !== "wrap" && `wrap-xs-${String(a)}`, ...d]
|
|
2302
2282
|
};
|
|
2303
|
-
return Q(g,
|
|
2304
|
-
},
|
|
2283
|
+
return Q(g, Fo, t);
|
|
2284
|
+
}, de = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
2305
2285
|
const r = Y({
|
|
2306
|
-
props:
|
|
2286
|
+
props: t,
|
|
2307
2287
|
name: "MuiGrid"
|
|
2308
2288
|
}), {
|
|
2309
2289
|
breakpoints: i
|
|
2310
|
-
} =
|
|
2290
|
+
} = Je(), s = jt(r), {
|
|
2311
2291
|
className: a,
|
|
2312
2292
|
columns: l,
|
|
2313
|
-
columnSpacing:
|
|
2293
|
+
columnSpacing: u,
|
|
2314
2294
|
component: c = "div",
|
|
2315
|
-
container:
|
|
2295
|
+
container: d = !1,
|
|
2316
2296
|
direction: g = "row",
|
|
2317
|
-
item:
|
|
2297
|
+
item: m = !1,
|
|
2318
2298
|
rowSpacing: x,
|
|
2319
2299
|
spacing: y = 0,
|
|
2320
|
-
wrap:
|
|
2321
|
-
zeroMinWidth:
|
|
2322
|
-
} = s, C =
|
|
2300
|
+
wrap: T = "wrap",
|
|
2301
|
+
zeroMinWidth: j = !1
|
|
2302
|
+
} = s, C = V(s, Ho), M = x || y, w = u || y, b = h.useContext(Xe), N = d ? l || 12 : b, R = {}, O = f({}, C);
|
|
2323
2303
|
i.keys.forEach((S) => {
|
|
2324
2304
|
C[S] != null && (R[S] = C[S], delete O[S]);
|
|
2325
2305
|
});
|
|
2326
2306
|
const k = f({}, s, {
|
|
2327
2307
|
columns: N,
|
|
2328
|
-
container:
|
|
2308
|
+
container: d,
|
|
2329
2309
|
direction: g,
|
|
2330
|
-
item:
|
|
2310
|
+
item: m,
|
|
2331
2311
|
rowSpacing: M,
|
|
2332
|
-
columnSpacing:
|
|
2333
|
-
wrap:
|
|
2334
|
-
zeroMinWidth:
|
|
2312
|
+
columnSpacing: w,
|
|
2313
|
+
wrap: T,
|
|
2314
|
+
zeroMinWidth: j,
|
|
2335
2315
|
spacing: y
|
|
2336
2316
|
}, R, {
|
|
2337
2317
|
breakpoints: i.keys
|
|
2338
|
-
}), W =
|
|
2318
|
+
}), W = tr(k);
|
|
2339
2319
|
return /* @__PURE__ */ p.jsx(Xe.Provider, {
|
|
2340
2320
|
value: N,
|
|
2341
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2321
|
+
children: /* @__PURE__ */ p.jsx(Qo, f({
|
|
2342
2322
|
ownerState: k,
|
|
2343
|
-
className:
|
|
2323
|
+
className: $(W.root, a),
|
|
2344
2324
|
as: c,
|
|
2345
2325
|
ref: o
|
|
2346
2326
|
}, O))
|
|
2347
2327
|
});
|
|
2348
2328
|
});
|
|
2349
|
-
process.env.NODE_ENV !== "production" && (
|
|
2329
|
+
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
2350
2330
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2351
2331
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2352
2332
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2354,48 +2334,48 @@ process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
|
2354
2334
|
/**
|
|
2355
2335
|
* The content of the component.
|
|
2356
2336
|
*/
|
|
2357
|
-
children:
|
|
2337
|
+
children: n.node,
|
|
2358
2338
|
/**
|
|
2359
2339
|
* Override or extend the styles applied to the component.
|
|
2360
2340
|
*/
|
|
2361
|
-
classes:
|
|
2341
|
+
classes: n.object,
|
|
2362
2342
|
/**
|
|
2363
2343
|
* @ignore
|
|
2364
2344
|
*/
|
|
2365
|
-
className:
|
|
2345
|
+
className: n.string,
|
|
2366
2346
|
/**
|
|
2367
2347
|
* The number of columns.
|
|
2368
2348
|
* @default 12
|
|
2369
2349
|
*/
|
|
2370
|
-
columns:
|
|
2350
|
+
columns: n.oneOfType([n.arrayOf(n.number), n.number, n.object]),
|
|
2371
2351
|
/**
|
|
2372
2352
|
* Defines the horizontal space between the type `item` components.
|
|
2373
2353
|
* It overrides the value of the `spacing` prop.
|
|
2374
2354
|
*/
|
|
2375
|
-
columnSpacing:
|
|
2355
|
+
columnSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
2376
2356
|
/**
|
|
2377
2357
|
* The component used for the root node.
|
|
2378
2358
|
* Either a string to use a HTML element or a component.
|
|
2379
2359
|
*/
|
|
2380
|
-
component:
|
|
2360
|
+
component: n.elementType,
|
|
2381
2361
|
/**
|
|
2382
2362
|
* If `true`, the component will have the flex *container* behavior.
|
|
2383
2363
|
* You should be wrapping *items* with a *container*.
|
|
2384
2364
|
* @default false
|
|
2385
2365
|
*/
|
|
2386
|
-
container:
|
|
2366
|
+
container: n.bool,
|
|
2387
2367
|
/**
|
|
2388
2368
|
* Defines the `flex-direction` style property.
|
|
2389
2369
|
* It is applied for all screen sizes.
|
|
2390
2370
|
* @default 'row'
|
|
2391
2371
|
*/
|
|
2392
|
-
direction:
|
|
2372
|
+
direction: n.oneOfType([n.oneOf(["column-reverse", "column", "row-reverse", "row"]), n.arrayOf(n.oneOf(["column-reverse", "column", "row-reverse", "row"])), n.object]),
|
|
2393
2373
|
/**
|
|
2394
2374
|
* If `true`, the component will have the flex *item* behavior.
|
|
2395
2375
|
* You should be wrapping *items* with a *container*.
|
|
2396
2376
|
* @default false
|
|
2397
2377
|
*/
|
|
2398
|
-
item:
|
|
2378
|
+
item: n.bool,
|
|
2399
2379
|
/**
|
|
2400
2380
|
* If a number, it sets the number of columns the grid item uses.
|
|
2401
2381
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -2405,7 +2385,7 @@ process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
|
2405
2385
|
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
|
2406
2386
|
* @default false
|
|
2407
2387
|
*/
|
|
2408
|
-
lg:
|
|
2388
|
+
lg: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
2409
2389
|
/**
|
|
2410
2390
|
* If a number, it sets the number of columns the grid item uses.
|
|
2411
2391
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -2415,12 +2395,12 @@ process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
|
2415
2395
|
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
|
2416
2396
|
* @default false
|
|
2417
2397
|
*/
|
|
2418
|
-
md:
|
|
2398
|
+
md: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
2419
2399
|
/**
|
|
2420
2400
|
* Defines the vertical space between the type `item` components.
|
|
2421
2401
|
* It overrides the value of the `spacing` prop.
|
|
2422
2402
|
*/
|
|
2423
|
-
rowSpacing:
|
|
2403
|
+
rowSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
2424
2404
|
/**
|
|
2425
2405
|
* If a number, it sets the number of columns the grid item uses.
|
|
2426
2406
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -2430,23 +2410,23 @@ process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
|
2430
2410
|
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
|
2431
2411
|
* @default false
|
|
2432
2412
|
*/
|
|
2433
|
-
sm:
|
|
2413
|
+
sm: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
2434
2414
|
/**
|
|
2435
2415
|
* Defines the space between the type `item` components.
|
|
2436
2416
|
* It can only be used on a type `container` component.
|
|
2437
2417
|
* @default 0
|
|
2438
2418
|
*/
|
|
2439
|
-
spacing:
|
|
2419
|
+
spacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
2440
2420
|
/**
|
|
2441
2421
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2442
2422
|
*/
|
|
2443
|
-
sx:
|
|
2423
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
2444
2424
|
/**
|
|
2445
2425
|
* Defines the `flex-wrap` style property.
|
|
2446
2426
|
* It's applied for all screen sizes.
|
|
2447
2427
|
* @default 'wrap'
|
|
2448
2428
|
*/
|
|
2449
|
-
wrap:
|
|
2429
|
+
wrap: n.oneOf(["nowrap", "wrap-reverse", "wrap"]),
|
|
2450
2430
|
/**
|
|
2451
2431
|
* If a number, it sets the number of columns the grid item uses.
|
|
2452
2432
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -2456,7 +2436,7 @@ process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
|
2456
2436
|
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
|
2457
2437
|
* @default false
|
|
2458
2438
|
*/
|
|
2459
|
-
xl:
|
|
2439
|
+
xl: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
2460
2440
|
/**
|
|
2461
2441
|
* If a number, it sets the number of columns the grid item uses.
|
|
2462
2442
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -2466,17 +2446,17 @@ process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
|
2466
2446
|
* The value is applied for all the screen sizes with the lowest priority.
|
|
2467
2447
|
* @default false
|
|
2468
2448
|
*/
|
|
2469
|
-
xs:
|
|
2449
|
+
xs: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
2470
2450
|
/**
|
|
2471
2451
|
* If `true`, it sets `min-width: 0` on the item.
|
|
2472
2452
|
* Refer to the limitations section of the documentation to better understand the use case.
|
|
2473
2453
|
* @default false
|
|
2474
2454
|
*/
|
|
2475
|
-
zeroMinWidth:
|
|
2455
|
+
zeroMinWidth: n.bool
|
|
2476
2456
|
});
|
|
2477
2457
|
if (process.env.NODE_ENV !== "production") {
|
|
2478
|
-
const e =
|
|
2479
|
-
|
|
2458
|
+
const e = yn("Grid", de);
|
|
2459
|
+
de.propTypes = f({}, de.propTypes, {
|
|
2480
2460
|
direction: e("container"),
|
|
2481
2461
|
lg: e("item"),
|
|
2482
2462
|
md: e("item"),
|
|
@@ -2487,10 +2467,32 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2487
2467
|
zeroMinWidth: e("item")
|
|
2488
2468
|
});
|
|
2489
2469
|
}
|
|
2490
|
-
|
|
2470
|
+
var ot = {}, nr = En;
|
|
2471
|
+
Object.defineProperty(ot, "__esModule", {
|
|
2472
|
+
value: !0
|
|
2473
|
+
});
|
|
2474
|
+
var Wt = ot.default = void 0, or = nr(Tn()), rr = p;
|
|
2475
|
+
Wt = ot.default = (0, or.default)(/* @__PURE__ */ (0, rr.jsx)("path", {
|
|
2476
|
+
d: "M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"
|
|
2477
|
+
}), "EventNote");
|
|
2478
|
+
const sr = ({ taskStatus: e, openMessageChain: t }) => {
|
|
2479
|
+
const [o, r] = Z.useState(!1), i = () => {
|
|
2480
|
+
r(!o);
|
|
2481
|
+
};
|
|
2482
|
+
return p.jsxs(ln, { children: [p.jsx(cn, { title: `#${e.id} ${e.group}`, subheader: e.description, avatar: e.state === "RUNNING" || e.state === "CANCELLING" ? p.jsx(un, {}) : void 0 }), p.jsxs(ct, { children: [p.jsx(ce, { variant: "body2", color: "textSecondary", component: "p", children: `Task state is ${e.state}. ${e.durationMs ? `Run took ${e.durationMs / 1e3} seconds.` : ""}` }), p.jsx(ce, { variant: "body2", color: "textSecondary", component: "p", children: e.message })] }), p.jsxs(pn, { disableSpacing: !0, children: [p.jsx(ut, { title: "Show message chain", children: p.jsx(pt, { "aria-label": "show message chain", onClick: () => {
|
|
2483
|
+
const s = e.metadata.find((a) => a.key === "MessageChainId");
|
|
2484
|
+
s && t(Number(s.value));
|
|
2485
|
+
}, children: p.jsx(Wt, {}) }) }), p.jsx(ut, { title: o ? "Hide metadata" : "Show metadata", children: p.jsx(pt, { sx: {
|
|
2486
|
+
transform: o ? "rotate(180deg)" : "rotate(0deg)",
|
|
2487
|
+
marginLeft: "auto",
|
|
2488
|
+
transition: "transform duration.shortest",
|
|
2489
|
+
// TODO: create a story and test this
|
|
2490
|
+
display: e.metadata.length ? "flex" : "none"
|
|
2491
|
+
}, onClick: i, "aria-expanded": o, "aria-label": "show metadata", children: p.jsx(wt, {}) }) })] }), p.jsx(dn, { in: o, timeout: "auto", unmountOnExit: !0, children: p.jsxs(ct, { children: [p.jsx(ce, { paragraph: !0, children: "Metadata:" }), e.metadata.map((s) => p.jsxs(ce, { children: [s.key, ": ", s.value] }, `task-status-md-${e.id}-${s.key}`))] }) })] });
|
|
2492
|
+
}, ir = ({ activeTaskStatuses: e, openMessageChain: t }) => e ? p.jsx(de, { container: !0, spacing: 2, sx: {
|
|
2491
2493
|
marginBottom: 20
|
|
2492
|
-
}, children: Object.values(e).map((o) => p.jsx(
|
|
2493
|
-
function St(e,
|
|
2494
|
+
}, children: Object.values(e).map((o) => p.jsx(de, { item: !0, xs: 6, children: p.jsx(sr, { taskStatus: o, openMessageChain: t }) }, `task-status-grid-item-${o.id}`)) }) : null;
|
|
2495
|
+
function St(e, t) {
|
|
2494
2496
|
var o, r;
|
|
2495
2497
|
const {
|
|
2496
2498
|
timeout: i,
|
|
@@ -2498,58 +2500,58 @@ function St(e, n) {
|
|
|
2498
2500
|
style: a = {}
|
|
2499
2501
|
} = e;
|
|
2500
2502
|
return {
|
|
2501
|
-
duration: (o = a.transitionDuration) != null ? o : typeof i == "number" ? i : i[
|
|
2502
|
-
easing: (r = a.transitionTimingFunction) != null ? r : typeof s == "object" ? s[
|
|
2503
|
+
duration: (o = a.transitionDuration) != null ? o : typeof i == "number" ? i : i[t.mode] || 0,
|
|
2504
|
+
easing: (r = a.transitionTimingFunction) != null ? r : typeof s == "object" ? s[t.mode] : s,
|
|
2503
2505
|
delay: a.transitionDelay
|
|
2504
2506
|
};
|
|
2505
2507
|
}
|
|
2506
|
-
function
|
|
2508
|
+
function ar(e) {
|
|
2507
2509
|
return J("MuiCollapse", e);
|
|
2508
2510
|
}
|
|
2509
2511
|
X("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
2510
|
-
const
|
|
2512
|
+
const lr = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], cr = (e) => {
|
|
2511
2513
|
const {
|
|
2512
|
-
orientation:
|
|
2514
|
+
orientation: t,
|
|
2513
2515
|
classes: o
|
|
2514
2516
|
} = e, r = {
|
|
2515
|
-
root: ["root", `${
|
|
2517
|
+
root: ["root", `${t}`],
|
|
2516
2518
|
entered: ["entered"],
|
|
2517
2519
|
hidden: ["hidden"],
|
|
2518
|
-
wrapper: ["wrapper", `${
|
|
2519
|
-
wrapperInner: ["wrapperInner", `${
|
|
2520
|
+
wrapper: ["wrapper", `${t}`],
|
|
2521
|
+
wrapperInner: ["wrapperInner", `${t}`]
|
|
2520
2522
|
};
|
|
2521
|
-
return Q(r,
|
|
2522
|
-
},
|
|
2523
|
+
return Q(r, ar, o);
|
|
2524
|
+
}, ur = P("div", {
|
|
2523
2525
|
name: "MuiCollapse",
|
|
2524
2526
|
slot: "Root",
|
|
2525
|
-
overridesResolver: (e,
|
|
2527
|
+
overridesResolver: (e, t) => {
|
|
2526
2528
|
const {
|
|
2527
2529
|
ownerState: o
|
|
2528
2530
|
} = e;
|
|
2529
|
-
return [
|
|
2531
|
+
return [t.root, t[o.orientation], o.state === "entered" && t.entered, o.state === "exited" && !o.in && o.collapsedSize === "0px" && t.hidden];
|
|
2530
2532
|
}
|
|
2531
2533
|
})(({
|
|
2532
2534
|
theme: e,
|
|
2533
|
-
ownerState:
|
|
2535
|
+
ownerState: t
|
|
2534
2536
|
}) => f({
|
|
2535
2537
|
height: 0,
|
|
2536
2538
|
overflow: "hidden",
|
|
2537
2539
|
transition: e.transitions.create("height")
|
|
2538
|
-
},
|
|
2540
|
+
}, t.orientation === "horizontal" && {
|
|
2539
2541
|
height: "auto",
|
|
2540
2542
|
width: 0,
|
|
2541
2543
|
transition: e.transitions.create("width")
|
|
2542
|
-
},
|
|
2544
|
+
}, t.state === "entered" && f({
|
|
2543
2545
|
height: "auto",
|
|
2544
2546
|
overflow: "visible"
|
|
2545
|
-
},
|
|
2547
|
+
}, t.orientation === "horizontal" && {
|
|
2546
2548
|
width: "auto"
|
|
2547
|
-
}),
|
|
2549
|
+
}), t.state === "exited" && !t.in && t.collapsedSize === "0px" && {
|
|
2548
2550
|
visibility: "hidden"
|
|
2549
|
-
})),
|
|
2551
|
+
})), pr = P("div", {
|
|
2550
2552
|
name: "MuiCollapse",
|
|
2551
2553
|
slot: "Wrapper",
|
|
2552
|
-
overridesResolver: (e,
|
|
2554
|
+
overridesResolver: (e, t) => t.wrapper
|
|
2553
2555
|
})(({
|
|
2554
2556
|
ownerState: e
|
|
2555
2557
|
}) => f({
|
|
@@ -2562,7 +2564,7 @@ const ar = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
2562
2564
|
})), dr = P("div", {
|
|
2563
2565
|
name: "MuiCollapse",
|
|
2564
2566
|
slot: "WrapperInner",
|
|
2565
|
-
overridesResolver: (e,
|
|
2567
|
+
overridesResolver: (e, t) => t.wrapperInner
|
|
2566
2568
|
})(({
|
|
2567
2569
|
ownerState: e
|
|
2568
2570
|
}) => f({
|
|
@@ -2570,119 +2572,119 @@ const ar = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
2570
2572
|
}, e.orientation === "horizontal" && {
|
|
2571
2573
|
width: "auto",
|
|
2572
2574
|
height: "100%"
|
|
2573
|
-
})), rt = /* @__PURE__ */
|
|
2575
|
+
})), rt = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
2574
2576
|
const r = Y({
|
|
2575
|
-
props:
|
|
2577
|
+
props: t,
|
|
2576
2578
|
name: "MuiCollapse"
|
|
2577
2579
|
}), {
|
|
2578
2580
|
addEndListener: i,
|
|
2579
2581
|
children: s,
|
|
2580
2582
|
className: a,
|
|
2581
2583
|
collapsedSize: l = "0px",
|
|
2582
|
-
component:
|
|
2584
|
+
component: u,
|
|
2583
2585
|
easing: c,
|
|
2584
|
-
in:
|
|
2586
|
+
in: d,
|
|
2585
2587
|
onEnter: g,
|
|
2586
|
-
onEntered:
|
|
2588
|
+
onEntered: m,
|
|
2587
2589
|
onEntering: x,
|
|
2588
2590
|
onExit: y,
|
|
2589
|
-
onExited:
|
|
2590
|
-
onExiting:
|
|
2591
|
+
onExited: T,
|
|
2592
|
+
onExiting: j,
|
|
2591
2593
|
orientation: C = "vertical",
|
|
2592
2594
|
style: M,
|
|
2593
|
-
timeout:
|
|
2595
|
+
timeout: w = Cn.standard,
|
|
2594
2596
|
// eslint-disable-next-line react/prop-types
|
|
2595
|
-
TransitionComponent:
|
|
2596
|
-
} = r, N =
|
|
2597
|
+
TransitionComponent: b = te
|
|
2598
|
+
} = r, N = V(r, lr), R = f({}, r, {
|
|
2597
2599
|
orientation: C,
|
|
2598
2600
|
collapsedSize: l
|
|
2599
|
-
}), O =
|
|
2600
|
-
if (
|
|
2601
|
+
}), O = cr(R), k = Je(), W = Ot(), S = h.useRef(null), z = h.useRef(), I = typeof l == "number" ? `${l}px` : l, A = C === "horizontal", _ = A ? "width" : "height", U = h.useRef(null), H = Ne(o, U), G = (E) => (L) => {
|
|
2602
|
+
if (E) {
|
|
2601
2603
|
const F = U.current;
|
|
2602
|
-
|
|
2604
|
+
L === void 0 ? E(F) : E(F, L);
|
|
2603
2605
|
}
|
|
2604
|
-
}, D = () => S.current ? S.current[
|
|
2605
|
-
S.current &&
|
|
2606
|
-
}),
|
|
2606
|
+
}, D = () => S.current ? S.current[A ? "clientWidth" : "clientHeight"] : 0, Ie = G((E, L) => {
|
|
2607
|
+
S.current && A && (S.current.style.position = "absolute"), E.style[_] = I, g && g(E, L);
|
|
2608
|
+
}), ve = G((E, L) => {
|
|
2607
2609
|
const F = D();
|
|
2608
|
-
S.current &&
|
|
2610
|
+
S.current && A && (S.current.style.position = "");
|
|
2609
2611
|
const {
|
|
2610
2612
|
duration: B,
|
|
2611
2613
|
easing: ie
|
|
2612
2614
|
} = St({
|
|
2613
2615
|
style: M,
|
|
2614
|
-
timeout:
|
|
2616
|
+
timeout: w,
|
|
2615
2617
|
easing: c
|
|
2616
2618
|
}, {
|
|
2617
2619
|
mode: "enter"
|
|
2618
2620
|
});
|
|
2619
|
-
if (
|
|
2621
|
+
if (w === "auto") {
|
|
2620
2622
|
const xe = k.transitions.getAutoHeightDuration(F);
|
|
2621
|
-
|
|
2623
|
+
E.style.transitionDuration = `${xe}ms`, z.current = xe;
|
|
2622
2624
|
} else
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
}), Ae = G((
|
|
2626
|
-
|
|
2627
|
-
}),
|
|
2628
|
-
|
|
2629
|
-
}),
|
|
2630
|
-
const
|
|
2625
|
+
E.style.transitionDuration = typeof B == "string" ? B : `${B}ms`;
|
|
2626
|
+
E.style[_] = `${F}px`, E.style.transitionTimingFunction = ie, x && x(E, L);
|
|
2627
|
+
}), Ae = G((E, L) => {
|
|
2628
|
+
E.style[_] = "auto", m && m(E, L);
|
|
2629
|
+
}), Ve = G((E) => {
|
|
2630
|
+
E.style[_] = `${D()}px`, y && y(E);
|
|
2631
|
+
}), De = G(T), ee = G((E) => {
|
|
2632
|
+
const L = D(), {
|
|
2631
2633
|
duration: F,
|
|
2632
2634
|
easing: B
|
|
2633
2635
|
} = St({
|
|
2634
2636
|
style: M,
|
|
2635
|
-
timeout:
|
|
2637
|
+
timeout: w,
|
|
2636
2638
|
easing: c
|
|
2637
2639
|
}, {
|
|
2638
2640
|
mode: "exit"
|
|
2639
2641
|
});
|
|
2640
|
-
if (
|
|
2641
|
-
const ie = k.transitions.getAutoHeightDuration(
|
|
2642
|
-
|
|
2642
|
+
if (w === "auto") {
|
|
2643
|
+
const ie = k.transitions.getAutoHeightDuration(L);
|
|
2644
|
+
E.style.transitionDuration = `${ie}ms`, z.current = ie;
|
|
2643
2645
|
} else
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
}), se = (
|
|
2647
|
-
|
|
2646
|
+
E.style.transitionDuration = typeof F == "string" ? F : `${F}ms`;
|
|
2647
|
+
E.style[_] = I, E.style.transitionTimingFunction = B, j && j(E);
|
|
2648
|
+
}), se = (E) => {
|
|
2649
|
+
w === "auto" && W.start(z.current || 0, E), i && i(U.current, E);
|
|
2648
2650
|
};
|
|
2649
|
-
return /* @__PURE__ */ p.jsx(
|
|
2650
|
-
in:
|
|
2651
|
-
onEnter:
|
|
2651
|
+
return /* @__PURE__ */ p.jsx(b, f({
|
|
2652
|
+
in: d,
|
|
2653
|
+
onEnter: Ie,
|
|
2652
2654
|
onEntered: Ae,
|
|
2653
|
-
onEntering:
|
|
2654
|
-
onExit:
|
|
2655
|
-
onExited:
|
|
2655
|
+
onEntering: ve,
|
|
2656
|
+
onExit: Ve,
|
|
2657
|
+
onExited: De,
|
|
2656
2658
|
onExiting: ee,
|
|
2657
2659
|
addEndListener: se,
|
|
2658
2660
|
nodeRef: U,
|
|
2659
|
-
timeout:
|
|
2661
|
+
timeout: w === "auto" ? null : w
|
|
2660
2662
|
}, N, {
|
|
2661
|
-
children: (
|
|
2662
|
-
as:
|
|
2663
|
-
className:
|
|
2663
|
+
children: (E, L) => /* @__PURE__ */ p.jsx(ur, f({
|
|
2664
|
+
as: u,
|
|
2665
|
+
className: $(O.root, a, {
|
|
2664
2666
|
entered: O.entered,
|
|
2665
|
-
exited: !
|
|
2666
|
-
}[
|
|
2667
|
+
exited: !d && I === "0px" && O.hidden
|
|
2668
|
+
}[E]),
|
|
2667
2669
|
style: f({
|
|
2668
|
-
[
|
|
2670
|
+
[A ? "minWidth" : "minHeight"]: I
|
|
2669
2671
|
}, M),
|
|
2670
2672
|
ref: H
|
|
2671
|
-
},
|
|
2673
|
+
}, L, {
|
|
2672
2674
|
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
2673
2675
|
// that might have been forwarded from the Transition component.
|
|
2674
2676
|
ownerState: f({}, R, {
|
|
2675
|
-
state:
|
|
2677
|
+
state: E
|
|
2676
2678
|
}),
|
|
2677
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2679
|
+
children: /* @__PURE__ */ p.jsx(pr, {
|
|
2678
2680
|
ownerState: f({}, R, {
|
|
2679
|
-
state:
|
|
2681
|
+
state: E
|
|
2680
2682
|
}),
|
|
2681
2683
|
className: O.wrapper,
|
|
2682
2684
|
ref: S,
|
|
2683
2685
|
children: /* @__PURE__ */ p.jsx(dr, {
|
|
2684
2686
|
ownerState: f({}, R, {
|
|
2685
|
-
state:
|
|
2687
|
+
state: E
|
|
2686
2688
|
}),
|
|
2687
2689
|
className: O.wrapperInner,
|
|
2688
2690
|
children: s
|
|
@@ -2701,78 +2703,78 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
2701
2703
|
* node and a done callback. Allows for more fine grained transition end
|
|
2702
2704
|
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
2703
2705
|
*/
|
|
2704
|
-
addEndListener:
|
|
2706
|
+
addEndListener: n.func,
|
|
2705
2707
|
/**
|
|
2706
2708
|
* The content node to be collapsed.
|
|
2707
2709
|
*/
|
|
2708
|
-
children:
|
|
2710
|
+
children: n.node,
|
|
2709
2711
|
/**
|
|
2710
2712
|
* Override or extend the styles applied to the component.
|
|
2711
2713
|
*/
|
|
2712
|
-
classes:
|
|
2714
|
+
classes: n.object,
|
|
2713
2715
|
/**
|
|
2714
2716
|
* @ignore
|
|
2715
2717
|
*/
|
|
2716
|
-
className:
|
|
2718
|
+
className: n.string,
|
|
2717
2719
|
/**
|
|
2718
2720
|
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
2719
2721
|
* @default '0px'
|
|
2720
2722
|
*/
|
|
2721
|
-
collapsedSize:
|
|
2723
|
+
collapsedSize: n.oneOfType([n.number, n.string]),
|
|
2722
2724
|
/**
|
|
2723
2725
|
* The component used for the root node.
|
|
2724
2726
|
* Either a string to use a HTML element or a component.
|
|
2725
2727
|
*/
|
|
2726
|
-
component:
|
|
2728
|
+
component: $t,
|
|
2727
2729
|
/**
|
|
2728
2730
|
* The transition timing function.
|
|
2729
2731
|
* You may specify a single easing or a object containing enter and exit values.
|
|
2730
2732
|
*/
|
|
2731
|
-
easing:
|
|
2732
|
-
enter:
|
|
2733
|
-
exit:
|
|
2734
|
-
}),
|
|
2733
|
+
easing: n.oneOfType([n.shape({
|
|
2734
|
+
enter: n.string,
|
|
2735
|
+
exit: n.string
|
|
2736
|
+
}), n.string]),
|
|
2735
2737
|
/**
|
|
2736
2738
|
* If `true`, the component will transition in.
|
|
2737
2739
|
*/
|
|
2738
|
-
in:
|
|
2740
|
+
in: n.bool,
|
|
2739
2741
|
/**
|
|
2740
2742
|
* @ignore
|
|
2741
2743
|
*/
|
|
2742
|
-
onEnter:
|
|
2744
|
+
onEnter: n.func,
|
|
2743
2745
|
/**
|
|
2744
2746
|
* @ignore
|
|
2745
2747
|
*/
|
|
2746
|
-
onEntered:
|
|
2748
|
+
onEntered: n.func,
|
|
2747
2749
|
/**
|
|
2748
2750
|
* @ignore
|
|
2749
2751
|
*/
|
|
2750
|
-
onEntering:
|
|
2752
|
+
onEntering: n.func,
|
|
2751
2753
|
/**
|
|
2752
2754
|
* @ignore
|
|
2753
2755
|
*/
|
|
2754
|
-
onExit:
|
|
2756
|
+
onExit: n.func,
|
|
2755
2757
|
/**
|
|
2756
2758
|
* @ignore
|
|
2757
2759
|
*/
|
|
2758
|
-
onExited:
|
|
2760
|
+
onExited: n.func,
|
|
2759
2761
|
/**
|
|
2760
2762
|
* @ignore
|
|
2761
2763
|
*/
|
|
2762
|
-
onExiting:
|
|
2764
|
+
onExiting: n.func,
|
|
2763
2765
|
/**
|
|
2764
2766
|
* The transition orientation.
|
|
2765
2767
|
* @default 'vertical'
|
|
2766
2768
|
*/
|
|
2767
|
-
orientation:
|
|
2769
|
+
orientation: n.oneOf(["horizontal", "vertical"]),
|
|
2768
2770
|
/**
|
|
2769
2771
|
* @ignore
|
|
2770
2772
|
*/
|
|
2771
|
-
style:
|
|
2773
|
+
style: n.object,
|
|
2772
2774
|
/**
|
|
2773
2775
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2774
2776
|
*/
|
|
2775
|
-
sx:
|
|
2777
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
2776
2778
|
/**
|
|
2777
2779
|
* The duration for the transition, in milliseconds.
|
|
2778
2780
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -2780,21 +2782,21 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
2780
2782
|
* Set to 'auto' to automatically calculate transition time based on height.
|
|
2781
2783
|
* @default duration.standard
|
|
2782
2784
|
*/
|
|
2783
|
-
timeout:
|
|
2784
|
-
appear:
|
|
2785
|
-
enter:
|
|
2786
|
-
exit:
|
|
2785
|
+
timeout: n.oneOfType([n.oneOf(["auto"]), n.number, n.shape({
|
|
2786
|
+
appear: n.number,
|
|
2787
|
+
enter: n.number,
|
|
2788
|
+
exit: n.number
|
|
2787
2789
|
})])
|
|
2788
2790
|
});
|
|
2789
2791
|
rt.muiSupportAuto = !0;
|
|
2790
|
-
const st = /* @__PURE__ */
|
|
2792
|
+
const st = /* @__PURE__ */ h.createContext({});
|
|
2791
2793
|
process.env.NODE_ENV !== "production" && (st.displayName = "AccordionContext");
|
|
2792
|
-
function
|
|
2794
|
+
function fr(e) {
|
|
2793
2795
|
return J("MuiAccordion", e);
|
|
2794
2796
|
}
|
|
2795
|
-
const Ce = X("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]),
|
|
2797
|
+
const Ce = X("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), gr = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"], mr = (e) => {
|
|
2796
2798
|
const {
|
|
2797
|
-
classes:
|
|
2799
|
+
classes: t,
|
|
2798
2800
|
square: o,
|
|
2799
2801
|
expanded: r,
|
|
2800
2802
|
disabled: i,
|
|
@@ -2803,27 +2805,27 @@ const Ce = X("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutter
|
|
|
2803
2805
|
return Q({
|
|
2804
2806
|
root: ["root", !o && "rounded", r && "expanded", i && "disabled", !s && "gutters"],
|
|
2805
2807
|
region: ["region"]
|
|
2806
|
-
},
|
|
2807
|
-
}, hr = P(
|
|
2808
|
+
}, fr, t);
|
|
2809
|
+
}, hr = P(Qe, {
|
|
2808
2810
|
name: "MuiAccordion",
|
|
2809
2811
|
slot: "Root",
|
|
2810
|
-
overridesResolver: (e,
|
|
2812
|
+
overridesResolver: (e, t) => {
|
|
2811
2813
|
const {
|
|
2812
2814
|
ownerState: o
|
|
2813
2815
|
} = e;
|
|
2814
2816
|
return [{
|
|
2815
|
-
[`& .${Ce.region}`]:
|
|
2816
|
-
},
|
|
2817
|
+
[`& .${Ce.region}`]: t.region
|
|
2818
|
+
}, t.root, !o.square && t.rounded, !o.disableGutters && t.gutters];
|
|
2817
2819
|
}
|
|
2818
2820
|
})(({
|
|
2819
2821
|
theme: e
|
|
2820
2822
|
}) => {
|
|
2821
|
-
const
|
|
2823
|
+
const t = {
|
|
2822
2824
|
duration: e.transitions.duration.shortest
|
|
2823
2825
|
};
|
|
2824
2826
|
return {
|
|
2825
2827
|
position: "relative",
|
|
2826
|
-
transition: e.transitions.create(["margin"],
|
|
2828
|
+
transition: e.transitions.create(["margin"], t),
|
|
2827
2829
|
overflowAnchor: "none",
|
|
2828
2830
|
// Keep the same scrolling position
|
|
2829
2831
|
"&::before": {
|
|
@@ -2835,7 +2837,7 @@ const Ce = X("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutter
|
|
|
2835
2837
|
content: '""',
|
|
2836
2838
|
opacity: 1,
|
|
2837
2839
|
backgroundColor: (e.vars || e).palette.divider,
|
|
2838
|
-
transition: e.transitions.create(["opacity", "background-color"],
|
|
2840
|
+
transition: e.transitions.create(["opacity", "background-color"], t)
|
|
2839
2841
|
},
|
|
2840
2842
|
"&:first-of-type": {
|
|
2841
2843
|
"&::before": {
|
|
@@ -2866,7 +2868,7 @@ const Ce = X("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutter
|
|
|
2866
2868
|
theme: e
|
|
2867
2869
|
}) => ({
|
|
2868
2870
|
variants: [{
|
|
2869
|
-
props: (
|
|
2871
|
+
props: (t) => !t.square,
|
|
2870
2872
|
style: {
|
|
2871
2873
|
borderRadius: 0,
|
|
2872
2874
|
"&:first-of-type": {
|
|
@@ -2884,51 +2886,51 @@ const Ce = X("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutter
|
|
|
2884
2886
|
}
|
|
2885
2887
|
}
|
|
2886
2888
|
}, {
|
|
2887
|
-
props: (
|
|
2889
|
+
props: (t) => !t.disableGutters,
|
|
2888
2890
|
style: {
|
|
2889
2891
|
[`&.${Ce.expanded}`]: {
|
|
2890
2892
|
margin: "16px 0"
|
|
2891
2893
|
}
|
|
2892
2894
|
}
|
|
2893
2895
|
}]
|
|
2894
|
-
})), Ft = /* @__PURE__ */
|
|
2896
|
+
})), Ft = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
2895
2897
|
const r = Y({
|
|
2896
|
-
props:
|
|
2898
|
+
props: t,
|
|
2897
2899
|
name: "MuiAccordion"
|
|
2898
2900
|
}), {
|
|
2899
2901
|
children: i,
|
|
2900
2902
|
className: s,
|
|
2901
2903
|
defaultExpanded: a = !1,
|
|
2902
2904
|
disabled: l = !1,
|
|
2903
|
-
disableGutters:
|
|
2905
|
+
disableGutters: u = !1,
|
|
2904
2906
|
expanded: c,
|
|
2905
|
-
onChange:
|
|
2907
|
+
onChange: d,
|
|
2906
2908
|
square: g = !1,
|
|
2907
|
-
slots:
|
|
2909
|
+
slots: m = {},
|
|
2908
2910
|
slotProps: x = {},
|
|
2909
2911
|
TransitionComponent: y,
|
|
2910
|
-
TransitionProps:
|
|
2911
|
-
} = r,
|
|
2912
|
+
TransitionProps: T
|
|
2913
|
+
} = r, j = V(r, gr), [C, M] = Sn({
|
|
2912
2914
|
controlled: c,
|
|
2913
2915
|
default: a,
|
|
2914
2916
|
name: "Accordion",
|
|
2915
2917
|
state: "expanded"
|
|
2916
|
-
}),
|
|
2917
|
-
M(!C),
|
|
2918
|
-
}, [C,
|
|
2918
|
+
}), w = h.useCallback((A) => {
|
|
2919
|
+
M(!C), d && d(A, !C);
|
|
2920
|
+
}, [C, d, M]), [b, ...N] = h.Children.toArray(i), R = h.useMemo(() => ({
|
|
2919
2921
|
expanded: C,
|
|
2920
2922
|
disabled: l,
|
|
2921
|
-
disableGutters:
|
|
2922
|
-
toggle:
|
|
2923
|
-
}), [C, l,
|
|
2923
|
+
disableGutters: u,
|
|
2924
|
+
toggle: w
|
|
2925
|
+
}), [C, l, u, w]), O = f({}, r, {
|
|
2924
2926
|
square: g,
|
|
2925
2927
|
disabled: l,
|
|
2926
|
-
disableGutters:
|
|
2928
|
+
disableGutters: u,
|
|
2927
2929
|
expanded: C
|
|
2928
|
-
}), k =
|
|
2930
|
+
}), k = mr(O), W = f({
|
|
2929
2931
|
transition: y
|
|
2930
|
-
},
|
|
2931
|
-
transition:
|
|
2932
|
+
}, m), S = f({
|
|
2933
|
+
transition: T
|
|
2932
2934
|
}, x), [z, I] = Ge("transition", {
|
|
2933
2935
|
elementType: rt,
|
|
2934
2936
|
externalForwardedProps: {
|
|
@@ -2938,21 +2940,21 @@ const Ce = X("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutter
|
|
|
2938
2940
|
ownerState: O
|
|
2939
2941
|
});
|
|
2940
2942
|
return /* @__PURE__ */ p.jsxs(hr, f({
|
|
2941
|
-
className:
|
|
2943
|
+
className: $(k.root, s),
|
|
2942
2944
|
ref: o,
|
|
2943
2945
|
ownerState: O,
|
|
2944
2946
|
square: g
|
|
2945
|
-
},
|
|
2947
|
+
}, j, {
|
|
2946
2948
|
children: [/* @__PURE__ */ p.jsx(st.Provider, {
|
|
2947
2949
|
value: R,
|
|
2948
|
-
children:
|
|
2950
|
+
children: b
|
|
2949
2951
|
}), /* @__PURE__ */ p.jsx(z, f({
|
|
2950
2952
|
in: C,
|
|
2951
2953
|
timeout: "auto"
|
|
2952
2954
|
}, I, {
|
|
2953
2955
|
children: /* @__PURE__ */ p.jsx("div", {
|
|
2954
|
-
"aria-labelledby":
|
|
2955
|
-
id:
|
|
2956
|
+
"aria-labelledby": b.props.id,
|
|
2957
|
+
id: b.props["aria-controls"],
|
|
2956
2958
|
role: "region",
|
|
2957
2959
|
className: k.region,
|
|
2958
2960
|
children: N
|
|
@@ -2968,109 +2970,109 @@ process.env.NODE_ENV !== "production" && (Ft.propTypes = {
|
|
|
2968
2970
|
/**
|
|
2969
2971
|
* The content of the component.
|
|
2970
2972
|
*/
|
|
2971
|
-
children:
|
|
2972
|
-
const
|
|
2973
|
-
return Rn.isFragment(
|
|
2973
|
+
children: ke(n.node.isRequired, (e) => {
|
|
2974
|
+
const t = h.Children.toArray(e.children)[0];
|
|
2975
|
+
return Rn.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ h.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
2974
2976
|
}),
|
|
2975
2977
|
/**
|
|
2976
2978
|
* Override or extend the styles applied to the component.
|
|
2977
2979
|
*/
|
|
2978
|
-
classes:
|
|
2980
|
+
classes: n.object,
|
|
2979
2981
|
/**
|
|
2980
2982
|
* @ignore
|
|
2981
2983
|
*/
|
|
2982
|
-
className:
|
|
2984
|
+
className: n.string,
|
|
2983
2985
|
/**
|
|
2984
2986
|
* If `true`, expands the accordion by default.
|
|
2985
2987
|
* @default false
|
|
2986
2988
|
*/
|
|
2987
|
-
defaultExpanded:
|
|
2989
|
+
defaultExpanded: n.bool,
|
|
2988
2990
|
/**
|
|
2989
2991
|
* If `true`, the component is disabled.
|
|
2990
2992
|
* @default false
|
|
2991
2993
|
*/
|
|
2992
|
-
disabled:
|
|
2994
|
+
disabled: n.bool,
|
|
2993
2995
|
/**
|
|
2994
2996
|
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
|
|
2995
2997
|
* @default false
|
|
2996
2998
|
*/
|
|
2997
|
-
disableGutters:
|
|
2999
|
+
disableGutters: n.bool,
|
|
2998
3000
|
/**
|
|
2999
3001
|
* If `true`, expands the accordion, otherwise collapse it.
|
|
3000
3002
|
* Setting this prop enables control over the accordion.
|
|
3001
3003
|
*/
|
|
3002
|
-
expanded:
|
|
3004
|
+
expanded: n.bool,
|
|
3003
3005
|
/**
|
|
3004
3006
|
* Callback fired when the expand/collapse state is changed.
|
|
3005
3007
|
*
|
|
3006
3008
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
3007
3009
|
* @param {boolean} expanded The `expanded` state of the accordion.
|
|
3008
3010
|
*/
|
|
3009
|
-
onChange:
|
|
3011
|
+
onChange: n.func,
|
|
3010
3012
|
/**
|
|
3011
3013
|
* The props used for each slot inside.
|
|
3012
3014
|
* @default {}
|
|
3013
3015
|
*/
|
|
3014
|
-
slotProps:
|
|
3015
|
-
transition:
|
|
3016
|
+
slotProps: n.shape({
|
|
3017
|
+
transition: n.oneOfType([n.func, n.object])
|
|
3016
3018
|
}),
|
|
3017
3019
|
/**
|
|
3018
3020
|
* The components used for each slot inside.
|
|
3019
3021
|
* @default {}
|
|
3020
3022
|
*/
|
|
3021
|
-
slots:
|
|
3022
|
-
transition:
|
|
3023
|
+
slots: n.shape({
|
|
3024
|
+
transition: n.elementType
|
|
3023
3025
|
}),
|
|
3024
3026
|
/**
|
|
3025
3027
|
* If `true`, rounded corners are disabled.
|
|
3026
3028
|
* @default false
|
|
3027
3029
|
*/
|
|
3028
|
-
square:
|
|
3030
|
+
square: n.bool,
|
|
3029
3031
|
/**
|
|
3030
3032
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3031
3033
|
*/
|
|
3032
|
-
sx:
|
|
3034
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
3033
3035
|
/**
|
|
3034
3036
|
* The component used for the transition.
|
|
3035
3037
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
3036
3038
|
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
3037
3039
|
*/
|
|
3038
|
-
TransitionComponent:
|
|
3040
|
+
TransitionComponent: n.elementType,
|
|
3039
3041
|
/**
|
|
3040
3042
|
* Props applied to the transition element.
|
|
3041
3043
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
3042
3044
|
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
3043
3045
|
*/
|
|
3044
|
-
TransitionProps:
|
|
3046
|
+
TransitionProps: n.object
|
|
3045
3047
|
});
|
|
3046
|
-
function
|
|
3048
|
+
function br(e) {
|
|
3047
3049
|
return J("MuiAccordionDetails", e);
|
|
3048
3050
|
}
|
|
3049
3051
|
X("MuiAccordionDetails", ["root"]);
|
|
3050
|
-
const vr = ["className"],
|
|
3052
|
+
const vr = ["className"], xr = (e) => {
|
|
3051
3053
|
const {
|
|
3052
|
-
classes:
|
|
3054
|
+
classes: t
|
|
3053
3055
|
} = e;
|
|
3054
3056
|
return Q({
|
|
3055
3057
|
root: ["root"]
|
|
3056
|
-
},
|
|
3057
|
-
},
|
|
3058
|
+
}, br, t);
|
|
3059
|
+
}, yr = P("div", {
|
|
3058
3060
|
name: "MuiAccordionDetails",
|
|
3059
3061
|
slot: "Root",
|
|
3060
|
-
overridesResolver: (e,
|
|
3062
|
+
overridesResolver: (e, t) => t.root
|
|
3061
3063
|
})(({
|
|
3062
3064
|
theme: e
|
|
3063
3065
|
}) => ({
|
|
3064
3066
|
padding: e.spacing(1, 2, 2)
|
|
3065
|
-
})), Ut = /* @__PURE__ */
|
|
3067
|
+
})), Ut = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
3066
3068
|
const r = Y({
|
|
3067
|
-
props:
|
|
3069
|
+
props: t,
|
|
3068
3070
|
name: "MuiAccordionDetails"
|
|
3069
3071
|
}), {
|
|
3070
3072
|
className: i
|
|
3071
|
-
} = r, s =
|
|
3072
|
-
return /* @__PURE__ */ p.jsx(
|
|
3073
|
-
className:
|
|
3073
|
+
} = r, s = V(r, vr), a = r, l = xr(a);
|
|
3074
|
+
return /* @__PURE__ */ p.jsx(yr, f({
|
|
3075
|
+
className: $(l.root, i),
|
|
3074
3076
|
ref: o,
|
|
3075
3077
|
ownerState: a
|
|
3076
3078
|
}, s));
|
|
@@ -3083,26 +3085,26 @@ process.env.NODE_ENV !== "production" && (Ut.propTypes = {
|
|
|
3083
3085
|
/**
|
|
3084
3086
|
* The content of the component.
|
|
3085
3087
|
*/
|
|
3086
|
-
children:
|
|
3088
|
+
children: n.node,
|
|
3087
3089
|
/**
|
|
3088
3090
|
* Override or extend the styles applied to the component.
|
|
3089
3091
|
*/
|
|
3090
|
-
classes:
|
|
3092
|
+
classes: n.object,
|
|
3091
3093
|
/**
|
|
3092
3094
|
* @ignore
|
|
3093
3095
|
*/
|
|
3094
|
-
className:
|
|
3096
|
+
className: n.string,
|
|
3095
3097
|
/**
|
|
3096
3098
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3097
3099
|
*/
|
|
3098
|
-
sx:
|
|
3100
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
3099
3101
|
});
|
|
3100
|
-
function
|
|
3102
|
+
function Tr(e) {
|
|
3101
3103
|
return J("MuiAccordionSummary", e);
|
|
3102
3104
|
}
|
|
3103
|
-
const ue = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Er = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"],
|
|
3105
|
+
const ue = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Er = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], Cr = (e) => {
|
|
3104
3106
|
const {
|
|
3105
|
-
classes:
|
|
3107
|
+
classes: t,
|
|
3106
3108
|
expanded: o,
|
|
3107
3109
|
disabled: r,
|
|
3108
3110
|
disableGutters: i
|
|
@@ -3112,22 +3114,22 @@ const ue = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabl
|
|
|
3112
3114
|
focusVisible: ["focusVisible"],
|
|
3113
3115
|
content: ["content", o && "expanded", !i && "contentGutters"],
|
|
3114
3116
|
expandIconWrapper: ["expandIconWrapper", o && "expanded"]
|
|
3115
|
-
},
|
|
3116
|
-
},
|
|
3117
|
+
}, Tr, t);
|
|
3118
|
+
}, Sr = P(nt, {
|
|
3117
3119
|
name: "MuiAccordionSummary",
|
|
3118
3120
|
slot: "Root",
|
|
3119
|
-
overridesResolver: (e,
|
|
3121
|
+
overridesResolver: (e, t) => t.root
|
|
3120
3122
|
})(({
|
|
3121
3123
|
theme: e
|
|
3122
3124
|
}) => {
|
|
3123
|
-
const
|
|
3125
|
+
const t = {
|
|
3124
3126
|
duration: e.transitions.duration.shortest
|
|
3125
3127
|
};
|
|
3126
3128
|
return {
|
|
3127
3129
|
display: "flex",
|
|
3128
3130
|
minHeight: 48,
|
|
3129
3131
|
padding: e.spacing(0, 2),
|
|
3130
|
-
transition: e.transitions.create(["min-height", "background-color"],
|
|
3132
|
+
transition: e.transitions.create(["min-height", "background-color"], t),
|
|
3131
3133
|
[`&.${ue.focusVisible}`]: {
|
|
3132
3134
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
3133
3135
|
},
|
|
@@ -3146,10 +3148,10 @@ const ue = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabl
|
|
|
3146
3148
|
}
|
|
3147
3149
|
}]
|
|
3148
3150
|
};
|
|
3149
|
-
}),
|
|
3151
|
+
}), Rr = P("div", {
|
|
3150
3152
|
name: "MuiAccordionSummary",
|
|
3151
3153
|
slot: "Content",
|
|
3152
|
-
overridesResolver: (e,
|
|
3154
|
+
overridesResolver: (e, t) => t.content
|
|
3153
3155
|
})(({
|
|
3154
3156
|
theme: e
|
|
3155
3157
|
}) => ({
|
|
@@ -3157,7 +3159,7 @@ const ue = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabl
|
|
|
3157
3159
|
flexGrow: 1,
|
|
3158
3160
|
margin: "12px 0",
|
|
3159
3161
|
variants: [{
|
|
3160
|
-
props: (
|
|
3162
|
+
props: (t) => !t.disableGutters,
|
|
3161
3163
|
style: {
|
|
3162
3164
|
transition: e.transitions.create(["margin"], {
|
|
3163
3165
|
duration: e.transitions.duration.shortest
|
|
@@ -3167,10 +3169,10 @@ const ue = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabl
|
|
|
3167
3169
|
}
|
|
3168
3170
|
}
|
|
3169
3171
|
}]
|
|
3170
|
-
})),
|
|
3172
|
+
})), Nr = P("div", {
|
|
3171
3173
|
name: "MuiAccordionSummary",
|
|
3172
3174
|
slot: "ExpandIconWrapper",
|
|
3173
|
-
overridesResolver: (e,
|
|
3175
|
+
overridesResolver: (e, t) => t.expandIconWrapper
|
|
3174
3176
|
})(({
|
|
3175
3177
|
theme: e
|
|
3176
3178
|
}) => ({
|
|
@@ -3183,47 +3185,47 @@ const ue = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabl
|
|
|
3183
3185
|
[`&.${ue.expanded}`]: {
|
|
3184
3186
|
transform: "rotate(180deg)"
|
|
3185
3187
|
}
|
|
3186
|
-
})), Gt = /* @__PURE__ */
|
|
3188
|
+
})), Gt = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
3187
3189
|
const r = Y({
|
|
3188
|
-
props:
|
|
3190
|
+
props: t,
|
|
3189
3191
|
name: "MuiAccordionSummary"
|
|
3190
3192
|
}), {
|
|
3191
3193
|
children: i,
|
|
3192
3194
|
className: s,
|
|
3193
3195
|
expandIcon: a,
|
|
3194
3196
|
focusVisibleClassName: l,
|
|
3195
|
-
onClick:
|
|
3196
|
-
} = r, c =
|
|
3197
|
-
disabled:
|
|
3197
|
+
onClick: u
|
|
3198
|
+
} = r, c = V(r, Er), {
|
|
3199
|
+
disabled: d = !1,
|
|
3198
3200
|
disableGutters: g,
|
|
3199
|
-
expanded:
|
|
3201
|
+
expanded: m,
|
|
3200
3202
|
toggle: x
|
|
3201
|
-
} =
|
|
3202
|
-
x && x(C),
|
|
3203
|
-
},
|
|
3204
|
-
expanded:
|
|
3205
|
-
disabled:
|
|
3203
|
+
} = h.useContext(st), y = (C) => {
|
|
3204
|
+
x && x(C), u && u(C);
|
|
3205
|
+
}, T = f({}, r, {
|
|
3206
|
+
expanded: m,
|
|
3207
|
+
disabled: d,
|
|
3206
3208
|
disableGutters: g
|
|
3207
|
-
}),
|
|
3208
|
-
return /* @__PURE__ */ p.jsxs(
|
|
3209
|
+
}), j = Cr(T);
|
|
3210
|
+
return /* @__PURE__ */ p.jsxs(Sr, f({
|
|
3209
3211
|
focusRipple: !1,
|
|
3210
3212
|
disableRipple: !0,
|
|
3211
|
-
disabled:
|
|
3213
|
+
disabled: d,
|
|
3212
3214
|
component: "div",
|
|
3213
|
-
"aria-expanded":
|
|
3214
|
-
className:
|
|
3215
|
-
focusVisibleClassName:
|
|
3215
|
+
"aria-expanded": m,
|
|
3216
|
+
className: $(j.root, s),
|
|
3217
|
+
focusVisibleClassName: $(j.focusVisible, l),
|
|
3216
3218
|
onClick: y,
|
|
3217
3219
|
ref: o,
|
|
3218
|
-
ownerState:
|
|
3220
|
+
ownerState: T
|
|
3219
3221
|
}, c, {
|
|
3220
|
-
children: [/* @__PURE__ */ p.jsx(
|
|
3221
|
-
className:
|
|
3222
|
-
ownerState:
|
|
3222
|
+
children: [/* @__PURE__ */ p.jsx(Rr, {
|
|
3223
|
+
className: j.content,
|
|
3224
|
+
ownerState: T,
|
|
3223
3225
|
children: i
|
|
3224
|
-
}), a && /* @__PURE__ */ p.jsx(
|
|
3225
|
-
className:
|
|
3226
|
-
ownerState:
|
|
3226
|
+
}), a && /* @__PURE__ */ p.jsx(Nr, {
|
|
3227
|
+
className: j.expandIconWrapper,
|
|
3228
|
+
ownerState: T,
|
|
3227
3229
|
children: a
|
|
3228
3230
|
})]
|
|
3229
3231
|
}));
|
|
@@ -3236,19 +3238,19 @@ process.env.NODE_ENV !== "production" && (Gt.propTypes = {
|
|
|
3236
3238
|
/**
|
|
3237
3239
|
* The content of the component.
|
|
3238
3240
|
*/
|
|
3239
|
-
children:
|
|
3241
|
+
children: n.node,
|
|
3240
3242
|
/**
|
|
3241
3243
|
* Override or extend the styles applied to the component.
|
|
3242
3244
|
*/
|
|
3243
|
-
classes:
|
|
3245
|
+
classes: n.object,
|
|
3244
3246
|
/**
|
|
3245
3247
|
* @ignore
|
|
3246
3248
|
*/
|
|
3247
|
-
className:
|
|
3249
|
+
className: n.string,
|
|
3248
3250
|
/**
|
|
3249
3251
|
* The icon to display as the expand indicator.
|
|
3250
3252
|
*/
|
|
3251
|
-
expandIcon:
|
|
3253
|
+
expandIcon: n.node,
|
|
3252
3254
|
/**
|
|
3253
3255
|
* This prop can help identify which element has keyboard focus.
|
|
3254
3256
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -3257,58 +3259,58 @@ process.env.NODE_ENV !== "production" && (Gt.propTypes = {
|
|
|
3257
3259
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
3258
3260
|
* if needed.
|
|
3259
3261
|
*/
|
|
3260
|
-
focusVisibleClassName:
|
|
3262
|
+
focusVisibleClassName: n.string,
|
|
3261
3263
|
/**
|
|
3262
3264
|
* @ignore
|
|
3263
3265
|
*/
|
|
3264
|
-
onClick:
|
|
3266
|
+
onClick: n.func,
|
|
3265
3267
|
/**
|
|
3266
3268
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3267
3269
|
*/
|
|
3268
|
-
sx:
|
|
3270
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
3269
3271
|
});
|
|
3270
|
-
function
|
|
3272
|
+
function Or(e) {
|
|
3271
3273
|
return J("MuiTypography", e);
|
|
3272
3274
|
}
|
|
3273
3275
|
X("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
3274
|
-
const
|
|
3276
|
+
const jr = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], wr = (e) => {
|
|
3275
3277
|
const {
|
|
3276
|
-
align:
|
|
3278
|
+
align: t,
|
|
3277
3279
|
gutterBottom: o,
|
|
3278
3280
|
noWrap: r,
|
|
3279
3281
|
paragraph: i,
|
|
3280
3282
|
variant: s,
|
|
3281
3283
|
classes: a
|
|
3282
3284
|
} = e, l = {
|
|
3283
|
-
root: ["root", s, e.align !== "inherit" && `align${K(
|
|
3285
|
+
root: ["root", s, e.align !== "inherit" && `align${K(t)}`, o && "gutterBottom", r && "noWrap", i && "paragraph"]
|
|
3284
3286
|
};
|
|
3285
|
-
return Q(l,
|
|
3286
|
-
},
|
|
3287
|
+
return Q(l, Or, a);
|
|
3288
|
+
}, $r = P("span", {
|
|
3287
3289
|
name: "MuiTypography",
|
|
3288
3290
|
slot: "Root",
|
|
3289
|
-
overridesResolver: (e,
|
|
3291
|
+
overridesResolver: (e, t) => {
|
|
3290
3292
|
const {
|
|
3291
3293
|
ownerState: o
|
|
3292
3294
|
} = e;
|
|
3293
|
-
return [
|
|
3295
|
+
return [t.root, o.variant && t[o.variant], o.align !== "inherit" && t[`align${K(o.align)}`], o.noWrap && t.noWrap, o.gutterBottom && t.gutterBottom, o.paragraph && t.paragraph];
|
|
3294
3296
|
}
|
|
3295
3297
|
})(({
|
|
3296
3298
|
theme: e,
|
|
3297
|
-
ownerState:
|
|
3299
|
+
ownerState: t
|
|
3298
3300
|
}) => f({
|
|
3299
3301
|
margin: 0
|
|
3300
|
-
},
|
|
3302
|
+
}, t.variant === "inherit" && {
|
|
3301
3303
|
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
3302
3304
|
font: "inherit"
|
|
3303
|
-
},
|
|
3304
|
-
textAlign:
|
|
3305
|
-
},
|
|
3305
|
+
}, t.variant !== "inherit" && e.typography[t.variant], t.align !== "inherit" && {
|
|
3306
|
+
textAlign: t.align
|
|
3307
|
+
}, t.noWrap && {
|
|
3306
3308
|
overflow: "hidden",
|
|
3307
3309
|
textOverflow: "ellipsis",
|
|
3308
3310
|
whiteSpace: "nowrap"
|
|
3309
|
-
},
|
|
3311
|
+
}, t.gutterBottom && {
|
|
3310
3312
|
marginBottom: "0.35em"
|
|
3311
|
-
},
|
|
3313
|
+
}, t.paragraph && {
|
|
3312
3314
|
marginBottom: 16
|
|
3313
3315
|
})), Rt = {
|
|
3314
3316
|
h1: "h1",
|
|
@@ -3322,43 +3324,43 @@ const Or = ["align", "className", "component", "gutterBottom", "noWrap", "paragr
|
|
|
3322
3324
|
body1: "p",
|
|
3323
3325
|
body2: "p",
|
|
3324
3326
|
inherit: "p"
|
|
3325
|
-
},
|
|
3327
|
+
}, Mr = {
|
|
3326
3328
|
primary: "primary.main",
|
|
3327
3329
|
textPrimary: "text.primary",
|
|
3328
3330
|
secondary: "secondary.main",
|
|
3329
3331
|
textSecondary: "text.secondary",
|
|
3330
3332
|
error: "error.main"
|
|
3331
|
-
},
|
|
3333
|
+
}, kr = (e) => Mr[e] || e, qt = /* @__PURE__ */ h.forwardRef(function(t, o) {
|
|
3332
3334
|
const r = Y({
|
|
3333
|
-
props:
|
|
3335
|
+
props: t,
|
|
3334
3336
|
name: "MuiTypography"
|
|
3335
|
-
}), i =
|
|
3337
|
+
}), i = kr(r.color), s = jt(f({}, r, {
|
|
3336
3338
|
color: i
|
|
3337
3339
|
})), {
|
|
3338
3340
|
align: a = "inherit",
|
|
3339
3341
|
className: l,
|
|
3340
|
-
component:
|
|
3342
|
+
component: u,
|
|
3341
3343
|
gutterBottom: c = !1,
|
|
3342
|
-
noWrap:
|
|
3344
|
+
noWrap: d = !1,
|
|
3343
3345
|
paragraph: g = !1,
|
|
3344
|
-
variant:
|
|
3346
|
+
variant: m = "body1",
|
|
3345
3347
|
variantMapping: x = Rt
|
|
3346
|
-
} = s, y =
|
|
3348
|
+
} = s, y = V(s, jr), T = f({}, s, {
|
|
3347
3349
|
align: a,
|
|
3348
3350
|
color: i,
|
|
3349
3351
|
className: l,
|
|
3350
|
-
component:
|
|
3352
|
+
component: u,
|
|
3351
3353
|
gutterBottom: c,
|
|
3352
|
-
noWrap:
|
|
3354
|
+
noWrap: d,
|
|
3353
3355
|
paragraph: g,
|
|
3354
|
-
variant:
|
|
3356
|
+
variant: m,
|
|
3355
3357
|
variantMapping: x
|
|
3356
|
-
}),
|
|
3357
|
-
return /* @__PURE__ */ p.jsx(
|
|
3358
|
-
as:
|
|
3358
|
+
}), j = u || (g ? "p" : x[m] || Rt[m]) || "span", C = wr(T);
|
|
3359
|
+
return /* @__PURE__ */ p.jsx($r, f({
|
|
3360
|
+
as: j,
|
|
3359
3361
|
ref: o,
|
|
3360
|
-
ownerState:
|
|
3361
|
-
className:
|
|
3362
|
+
ownerState: T,
|
|
3363
|
+
className: $(C.root, l)
|
|
3362
3364
|
}, y));
|
|
3363
3365
|
});
|
|
3364
3366
|
process.env.NODE_ENV !== "production" && (qt.propTypes = {
|
|
@@ -3370,29 +3372,29 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
|
|
|
3370
3372
|
* Set the text-align on the component.
|
|
3371
3373
|
* @default 'inherit'
|
|
3372
3374
|
*/
|
|
3373
|
-
align:
|
|
3375
|
+
align: n.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
3374
3376
|
/**
|
|
3375
3377
|
* The content of the component.
|
|
3376
3378
|
*/
|
|
3377
|
-
children:
|
|
3379
|
+
children: n.node,
|
|
3378
3380
|
/**
|
|
3379
3381
|
* Override or extend the styles applied to the component.
|
|
3380
3382
|
*/
|
|
3381
|
-
classes:
|
|
3383
|
+
classes: n.object,
|
|
3382
3384
|
/**
|
|
3383
3385
|
* @ignore
|
|
3384
3386
|
*/
|
|
3385
|
-
className:
|
|
3387
|
+
className: n.string,
|
|
3386
3388
|
/**
|
|
3387
3389
|
* The component used for the root node.
|
|
3388
3390
|
* Either a string to use a HTML element or a component.
|
|
3389
3391
|
*/
|
|
3390
|
-
component:
|
|
3392
|
+
component: n.elementType,
|
|
3391
3393
|
/**
|
|
3392
3394
|
* If `true`, the text will have a bottom margin.
|
|
3393
3395
|
* @default false
|
|
3394
3396
|
*/
|
|
3395
|
-
gutterBottom:
|
|
3397
|
+
gutterBottom: n.bool,
|
|
3396
3398
|
/**
|
|
3397
3399
|
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
3398
3400
|
*
|
|
@@ -3400,21 +3402,21 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
|
|
|
3400
3402
|
* (the element needs to have a width in order to overflow).
|
|
3401
3403
|
* @default false
|
|
3402
3404
|
*/
|
|
3403
|
-
noWrap:
|
|
3405
|
+
noWrap: n.bool,
|
|
3404
3406
|
/**
|
|
3405
3407
|
* If `true`, the element will be a paragraph element.
|
|
3406
3408
|
* @default false
|
|
3407
3409
|
*/
|
|
3408
|
-
paragraph:
|
|
3410
|
+
paragraph: n.bool,
|
|
3409
3411
|
/**
|
|
3410
3412
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3411
3413
|
*/
|
|
3412
|
-
sx:
|
|
3414
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
3413
3415
|
/**
|
|
3414
3416
|
* Applies the theme typography styles.
|
|
3415
3417
|
* @default 'body1'
|
|
3416
3418
|
*/
|
|
3417
|
-
variant:
|
|
3419
|
+
variant: n.oneOfType([n.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), n.string]),
|
|
3418
3420
|
/**
|
|
3419
3421
|
* The component maps the variant prop to a range of different HTML element types.
|
|
3420
3422
|
* For instance, subtitle1 to `<h6>`.
|
|
@@ -3434,103 +3436,121 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
|
|
|
3434
3436
|
* inherit: 'p',
|
|
3435
3437
|
* }
|
|
3436
3438
|
*/
|
|
3437
|
-
variantMapping:
|
|
3439
|
+
variantMapping: n.object
|
|
3438
3440
|
});
|
|
3439
|
-
const
|
|
3441
|
+
const Pr = (e) => !isNaN(parseFloat(e)) && !isNaN(Number(e) - 0), Ir = {
|
|
3440
3442
|
"java.lang.Integer": !0,
|
|
3441
3443
|
"java.lang.Long": !0,
|
|
3442
3444
|
"java.lang.Double": !0,
|
|
3443
3445
|
"java.lang.Float": !0
|
|
3444
|
-
},
|
|
3445
|
-
if (!
|
|
3446
|
+
}, Ar = (e, t) => {
|
|
3447
|
+
if (!t.required && !e)
|
|
3446
3448
|
return;
|
|
3447
|
-
if (
|
|
3448
|
-
return `${
|
|
3449
|
-
if (
|
|
3450
|
-
if (!
|
|
3449
|
+
if (t.required && (!e || e.trim().length === 0))
|
|
3450
|
+
return `${t.name} is mandatory!`;
|
|
3451
|
+
if (Ir[t.type]) {
|
|
3452
|
+
if (!Pr(e))
|
|
3451
3453
|
return "Value must be numeric!";
|
|
3452
3454
|
const i = Number(e);
|
|
3453
|
-
if (
|
|
3455
|
+
if (t.type === "java.lang.Integer" && !Number.isInteger(i))
|
|
3454
3456
|
return "Value must be an Integer!";
|
|
3455
|
-
const s =
|
|
3457
|
+
const s = t.minValue || Number.MIN_VALUE, a = t.maxValue || Number.MAX_VALUE;
|
|
3456
3458
|
if (i < s)
|
|
3457
3459
|
return `Value too small, must be >= ${s}`;
|
|
3458
3460
|
if (i > a)
|
|
3459
3461
|
return `Value too large, must be <= ${a}`;
|
|
3460
3462
|
}
|
|
3461
|
-
const o =
|
|
3463
|
+
const o = t.minLength || 0, r = t.maxLength;
|
|
3462
3464
|
if (e.length < o)
|
|
3463
3465
|
return `Value too short, must at least ${o} characters`;
|
|
3464
3466
|
if (r && e.length > r)
|
|
3465
3467
|
return `Value too long, must be at most ${r} characters`;
|
|
3466
3468
|
}, Vr = (e) => {
|
|
3467
|
-
const
|
|
3469
|
+
const t = {};
|
|
3468
3470
|
return e.forEach((o) => {
|
|
3469
|
-
o.required && (
|
|
3470
|
-
}),
|
|
3471
|
-
},
|
|
3472
|
-
const [r, i] =
|
|
3473
|
-
const
|
|
3474
|
-
delete
|
|
3475
|
-
},
|
|
3471
|
+
o.required && (t[o.name] = "");
|
|
3472
|
+
}), t;
|
|
3473
|
+
}, Dr = ({ triggerName: e, triggerParams: t, triggerAction: o }) => {
|
|
3474
|
+
const [r, i] = Fe({}), [s, a] = Fe(Vr(t)), l = (c) => {
|
|
3475
|
+
const d = { ...s };
|
|
3476
|
+
delete d[c], a(d);
|
|
3477
|
+
}, u = (c, d) => {
|
|
3476
3478
|
const { name: g } = c;
|
|
3477
3479
|
i({
|
|
3478
3480
|
...r,
|
|
3479
|
-
[g]:
|
|
3481
|
+
[g]: d.target.value
|
|
3480
3482
|
});
|
|
3481
|
-
const
|
|
3482
|
-
|
|
3483
|
+
const m = Ar(d.target.value, c);
|
|
3484
|
+
m ? a({
|
|
3483
3485
|
...s,
|
|
3484
|
-
[g]:
|
|
3486
|
+
[g]: m
|
|
3485
3487
|
}) : l(g);
|
|
3486
3488
|
};
|
|
3487
3489
|
return p.jsx("form", { onSubmit: (c) => {
|
|
3488
3490
|
c.preventDefault(), o(e, r);
|
|
3489
|
-
}, children: p.jsxs(fn, { display: "flex", flexWrap: "wrap", gap: 4, rowGap: 4, children: [
|
|
3490
|
-
const { name:
|
|
3491
|
-
return p.jsx(gn, { sx: { marginBottom: 10 }, error: !!g, id: `${e}-${
|
|
3492
|
-
})] }), p.jsx(
|
|
3493
|
-
},
|
|
3494
|
-
const [s, a] =
|
|
3495
|
-
return p.jsxs(p.Fragment, { children: [p.jsx(
|
|
3496
|
-
},
|
|
3491
|
+
}, children: p.jsxs(fn, { display: "flex", flexWrap: "wrap", gap: 4, rowGap: 4, children: [t.length === 0 ? p.jsx(ce, { children: "Trigger does not support additional parameters" }) : p.jsxs(p.Fragment, { children: [p.jsx(ce, { minWidth: "100%", children: "Trigger parameters" }), t.map((c) => {
|
|
3492
|
+
const { name: d } = c, g = s ? s[d] : void 0;
|
|
3493
|
+
return p.jsx(gn, { sx: { marginBottom: 10 }, error: !!g, id: `${e}-${d}-input`, helperText: g || "", required: c.required, label: d, onChange: (m) => u(c, m) }, `${e}-${d}-input`);
|
|
3494
|
+
})] }), p.jsx(mn, { id: `${e}-submit-btn`, variant: "contained", type: "submit", disabled: s ? Object.keys(s).length > 0 : !1, sx: { marginTop: 10, float: "right", marginLeft: "auto", height: "fit-content" }, children: "Trigger" })] }) });
|
|
3495
|
+
}, Br = ({ triggerables: e, triggerAction: t }) => p.jsx(p.Fragment, { children: Object.entries(e).map(([o, r]) => p.jsxs(Ft, { sx: { width: "100%", marginBottom: "5px" }, children: [p.jsx(Gt, { expandIcon: p.jsx(wt, {}), "aria-controls": `${o}-content`, id: `${o}-header`, children: p.jsx(qt, { sx: { fontSize: 18, flexBasis: "33.33%", flexShrink: 0 }, children: o }) }), p.jsx(Ut, { sx: { flexDirection: "column" }, children: p.jsx(Dr, { triggerName: o, triggerParams: r, triggerAction: t }) })] }, `${o}-container`)) }), zr = ({ activeTaskStatuses: e, triggerables: t, triggerResponse: o, openMessageChain: r, handleTriggerAction: i }) => {
|
|
3496
|
+
const [s, a] = Fe(!0);
|
|
3497
|
+
return p.jsxs(p.Fragment, { children: [p.jsx(Wo, { triggerResponse: o, showNotification: s, onClose: () => a(!1) }), p.jsx(ir, { activeTaskStatuses: e, openMessageChain: r }), p.jsx(Br, { triggerables: t, triggerAction: i })] });
|
|
3498
|
+
}, _r = (e) => async ({
|
|
3499
|
+
request: t
|
|
3500
|
+
}) => {
|
|
3497
3501
|
try {
|
|
3498
|
-
const
|
|
3502
|
+
const { triggerName: o, params: r } = await t.json(), i = await It(
|
|
3503
|
+
o,
|
|
3504
|
+
r,
|
|
3499
3505
|
e
|
|
3500
|
-
)
|
|
3506
|
+
);
|
|
3507
|
+
return {
|
|
3508
|
+
status: i.status,
|
|
3509
|
+
data: i.data
|
|
3510
|
+
};
|
|
3511
|
+
} catch (o) {
|
|
3512
|
+
return console.error(o), {
|
|
3513
|
+
status: 500,
|
|
3514
|
+
data: "Failed to trigger"
|
|
3515
|
+
};
|
|
3516
|
+
}
|
|
3517
|
+
}, Qr = _r(), Lr = (e) => async () => {
|
|
3518
|
+
try {
|
|
3519
|
+
const t = await Pt(e), o = await At(
|
|
3520
|
+
e
|
|
3521
|
+
), { data: r } = t, { data: i } = o;
|
|
3501
3522
|
return { triggerables: r, activeTaskStatuses: i };
|
|
3502
|
-
} catch (
|
|
3503
|
-
throw console.error(
|
|
3523
|
+
} catch (t) {
|
|
3524
|
+
throw console.error(t), new Error("Failed to fetch triggerables");
|
|
3504
3525
|
}
|
|
3505
|
-
},
|
|
3506
|
-
const e = On(),
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
});
|
|
3515
|
-
}
|
|
3516
|
-
n.revalidate();
|
|
3526
|
+
}, es = Lr(), ts = () => {
|
|
3527
|
+
const e = On(), t = jn(), o = wn(), { activeTaskStatuses: r, triggerables: i } = o, s = r.reduce((u, c) => (u[c.id] = c, u), {}), { data: a } = $n() || {}, l = (u, c) => {
|
|
3528
|
+
t(
|
|
3529
|
+
{ triggerName: u, params: c },
|
|
3530
|
+
{
|
|
3531
|
+
method: "POST",
|
|
3532
|
+
encType: "application/json"
|
|
3533
|
+
}
|
|
3534
|
+
);
|
|
3517
3535
|
};
|
|
3518
3536
|
return /* @__PURE__ */ p.jsx(
|
|
3519
|
-
|
|
3537
|
+
zr,
|
|
3520
3538
|
{
|
|
3521
|
-
triggerResponse:
|
|
3522
|
-
activeTaskStatuses:
|
|
3523
|
-
triggerables:
|
|
3524
|
-
openMessageChain: (
|
|
3525
|
-
e(`/message-log/${
|
|
3539
|
+
triggerResponse: a,
|
|
3540
|
+
activeTaskStatuses: s,
|
|
3541
|
+
triggerables: i,
|
|
3542
|
+
openMessageChain: (u) => {
|
|
3543
|
+
e(`/message-log/${u}`);
|
|
3526
3544
|
},
|
|
3527
|
-
handleTriggerAction:
|
|
3545
|
+
handleTriggerAction: l
|
|
3528
3546
|
}
|
|
3529
3547
|
);
|
|
3530
3548
|
};
|
|
3531
3549
|
export {
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3550
|
+
ts as T,
|
|
3551
|
+
Lr as a,
|
|
3552
|
+
_r as g,
|
|
3553
|
+
es as l,
|
|
3554
|
+
Qr as t
|
|
3535
3555
|
};
|
|
3536
|
-
//# sourceMappingURL=TriggerablesRoute-
|
|
3556
|
+
//# sourceMappingURL=TriggerablesRoute-opCAjNCv.js.map
|