@solostylist/ui-kit 1.0.87 → 1.0.89
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/{Box-Cf99MewL.js → Box-CJmG1mTu.js} +3 -3
- package/dist/ButtonBase-C0g54hXq.js +910 -0
- package/dist/ChevronRight-CtkI4XwH.js +11 -0
- package/dist/{Close-CKpTrk7X.js → Close--Sf9yZGB.js} +1 -1
- package/dist/{Menu-D2LDo0yd.js → Menu-BuktPpzX.js} +914 -1453
- package/dist/{MenuItem-JkMrBIMD.js → MenuItem-sL2AcofB.js} +8 -8
- package/dist/Paper-CH6cuu9i.js +553 -0
- package/dist/{Select-4BjFewNI.js → Select-D2lV25sl.js} +16 -15
- package/dist/{Stack-UjxgGQu9.js → Stack-CIrlOUXL.js} +4 -4
- package/dist/{TransitionGroup-DzGaAPUk.js → TransitionGroup-SToIdl-5.js} +3 -3
- package/dist/{Typography-CGoVq27h.js → Typography-D-VP4V1G.js} +3 -3
- package/dist/{createSvgIcon-vJH0FaMW.js → createSvgIcon-DpVs_nKR.js} +5 -5
- package/dist/{createTheme-DjqDAiZm.js → createTheme-DbdaZ0Ku.js} +3 -2
- package/dist/{defaultTheme-CaAxts6z.js → defaultTheme-CFAmbghg.js} +1 -1
- package/dist/{extendSxProp-BnfiUPQK.js → extendSxProp-CQnEn3aw.js} +1 -1
- package/dist/{index-DcImsw9J.js → index-CjPqjRDL.js} +4 -4
- package/dist/main.d.ts +6 -0
- package/dist/main.js +117 -111
- package/dist/mergeSlotProps-N47mO9C9.js +62 -0
- package/dist/s-accordion/index.d.ts +2 -0
- package/dist/s-accordion/index.js +4 -0
- package/dist/s-accordion/package.json +5 -0
- package/dist/s-accordion/s-accordion.d.ts +9 -0
- package/dist/s-accordion/s-accordion.js +924 -0
- package/dist/s-avatar/index.d.ts +2 -0
- package/dist/s-avatar/index.js +4 -0
- package/dist/s-avatar/package.json +5 -0
- package/dist/s-avatar/s-avatar.d.ts +10 -0
- package/dist/s-avatar/s-avatar.js +9 -0
- package/dist/s-chat-input/s-chat-input.js +6 -6
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +12 -10
- package/dist/s-date-picker/s-date-picker.js +24 -24
- package/dist/s-datetime-picker/s-datetime-picker.js +13 -12
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.js +8 -8
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-image-comparison/index.d.ts +2 -0
- package/dist/s-image-comparison/index.js +4 -0
- package/dist/s-image-comparison/package.json +5 -0
- package/dist/s-image-comparison/s-image-comparison.d.ts +11 -0
- package/dist/s-image-comparison/s-image-comparison.js +155 -0
- package/dist/s-image-modal/s-image-modal.js +94 -98
- package/dist/s-interactive-gallery/s-interactive-gallery.js +69 -69
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +5 -5
- package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +8 -8
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +13 -4
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/theme/components/avatar.js +3 -3
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/components.d.ts +2 -2
- package/dist/theme/customizations/inputs.js +1 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/{useMobilePicker-DmFQ075P.js → useMobilePicker-CRxlxUeh.js} +100 -98
- package/dist/{useTheme-DPtt6ExE.js → useTheme-CjYoxoob.js} +1 -1
- package/dist/{useThemeProps-DQiCrjPQ.js → useThemeProps-DdCEfRBE.js} +2 -2
- package/dist/{warning-UxpRUL3s.js → warning-CiVr8tE6.js} +3 -3
- package/package.json +1 -1
- package/dist/useFormControl-B3RPiDsz.js +0 -38
- package/dist/useSlot-DFSsVuMw.js +0 -969
|
@@ -1,588 +1,199 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { g as ue, a as ze } from "./colorManipulator-ep5lERxB.js";
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { P as e, l as He } from "./createTheme-DbdaZ0Ku.js";
|
|
3
|
+
import { u as ce, c as ne, s as G, a as le, m as it, r as at } from "./createSvgIcon-DpVs_nKR.js";
|
|
4
|
+
import { j as A } from "./jsx-runtime-DywqP_6a.js";
|
|
5
|
+
import { g as ue } from "./colorManipulator-ep5lERxB.js";
|
|
7
6
|
import { g as pe } from "./generateUtilityClasses-BtVDwGrk.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { u as Le } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
17
|
-
function Ge(...t) {
|
|
18
|
-
return t.reduce((n, o) => o == null ? n : function(...s) {
|
|
19
|
-
n.apply(this, s), o.apply(this, s);
|
|
7
|
+
import { c as Me, b as ct, u as Z, d as W, f as Fe, g as lt, r as ut, e as pt, a as dt, m as ft, h as mt } from "./ButtonBase-C0g54hXq.js";
|
|
8
|
+
import { T as ze, u as qe, g as he, r as We, P as ht, i as bt } from "./Paper-CH6cuu9i.js";
|
|
9
|
+
import { m as gt } from "./mergeSlotProps-N47mO9C9.js";
|
|
10
|
+
import * as yt from "react-dom";
|
|
11
|
+
import { u as Ne } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
12
|
+
function De(...t) {
|
|
13
|
+
return t.reduce((n, o) => o == null ? n : function(...a) {
|
|
14
|
+
n.apply(this, a), o.apply(this, a);
|
|
20
15
|
}, () => {
|
|
21
16
|
});
|
|
22
17
|
}
|
|
23
|
-
const
|
|
24
|
-
function
|
|
18
|
+
const Et = "exact-prop: ";
|
|
19
|
+
function Ge(t) {
|
|
25
20
|
return process.env.NODE_ENV === "production" ? t : {
|
|
26
21
|
...t,
|
|
27
|
-
[
|
|
28
|
-
const o = Object.keys(n).filter((
|
|
29
|
-
return o.length > 0 ? new Error(`The following props are not supported: ${o.map((
|
|
22
|
+
[Et]: (n) => {
|
|
23
|
+
const o = Object.keys(n).filter((r) => !t.hasOwnProperty(r));
|
|
24
|
+
return o.length > 0 ? new Error(`The following props are not supported: ${o.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
|
-
const
|
|
28
|
+
const Tt = /* @__PURE__ */ u.createContext();
|
|
34
29
|
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
const t = Ft(It);
|
|
38
|
-
return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[jt] || t;
|
|
39
|
-
}
|
|
40
|
-
function qt(t, n = 166) {
|
|
30
|
+
const Pt = () => u.useContext(Tt) ?? !1;
|
|
31
|
+
function xt(t, n = 166) {
|
|
41
32
|
let o;
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
t.apply(this,
|
|
33
|
+
function r(...a) {
|
|
34
|
+
const s = () => {
|
|
35
|
+
t.apply(this, a);
|
|
45
36
|
};
|
|
46
|
-
clearTimeout(o), o = setTimeout(
|
|
37
|
+
clearTimeout(o), o = setTimeout(s, n);
|
|
47
38
|
}
|
|
48
|
-
return
|
|
39
|
+
return r.clear = () => {
|
|
49
40
|
clearTimeout(o);
|
|
50
|
-
},
|
|
41
|
+
}, r;
|
|
51
42
|
}
|
|
52
|
-
function
|
|
43
|
+
function q(t) {
|
|
53
44
|
return t && t.ownerDocument || document;
|
|
54
45
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
46
|
+
function Q(t) {
|
|
47
|
+
return q(t).defaultView || window;
|
|
57
48
|
}
|
|
58
|
-
function
|
|
49
|
+
function Le(t, n) {
|
|
59
50
|
typeof t == "function" ? t(n) : t && (t.current = n);
|
|
60
51
|
}
|
|
61
|
-
|
|
62
|
-
disabled: !1
|
|
63
|
-
};
|
|
64
|
-
var Kt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
65
|
-
enter: e.number,
|
|
66
|
-
exit: e.number,
|
|
67
|
-
appear: e.number
|
|
68
|
-
}).isRequired]) : null, Jn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
|
|
69
|
-
enter: e.string,
|
|
70
|
-
exit: e.string,
|
|
71
|
-
active: e.string
|
|
72
|
-
}), e.shape({
|
|
73
|
-
enter: e.string,
|
|
74
|
-
enterDone: e.string,
|
|
75
|
-
enterActive: e.string,
|
|
76
|
-
exit: e.string,
|
|
77
|
-
exitDone: e.string,
|
|
78
|
-
exitActive: e.string
|
|
79
|
-
})]) : null, Bt = function(n) {
|
|
80
|
-
return n.scrollTop;
|
|
81
|
-
}, me = "unmounted", Z = "exited", ee = "entering", ae = "entered", Ae = "exiting", G = /* @__PURE__ */ function(t) {
|
|
82
|
-
At(n, t);
|
|
83
|
-
function n(i, s) {
|
|
84
|
-
var r;
|
|
85
|
-
r = t.call(this, i, s) || this;
|
|
86
|
-
var a = s, l = a && !a.isMounting ? i.enter : i.appear, c;
|
|
87
|
-
return r.appearStatus = null, i.in ? l ? (c = Z, r.appearStatus = ee) : c = ae : i.unmountOnExit || i.mountOnEnter ? c = me : c = Z, r.state = {
|
|
88
|
-
status: c
|
|
89
|
-
}, r.nextCallback = null, r;
|
|
90
|
-
}
|
|
91
|
-
n.getDerivedStateFromProps = function(s, r) {
|
|
92
|
-
var a = s.in;
|
|
93
|
-
return a && r.status === me ? {
|
|
94
|
-
status: Z
|
|
95
|
-
} : null;
|
|
96
|
-
};
|
|
97
|
-
var o = n.prototype;
|
|
98
|
-
return o.componentDidMount = function() {
|
|
99
|
-
this.updateStatus(!0, this.appearStatus);
|
|
100
|
-
}, o.componentDidUpdate = function(s) {
|
|
101
|
-
var r = null;
|
|
102
|
-
if (s !== this.props) {
|
|
103
|
-
var a = this.state.status;
|
|
104
|
-
this.props.in ? a !== ee && a !== ae && (r = ee) : (a === ee || a === ae) && (r = Ae);
|
|
105
|
-
}
|
|
106
|
-
this.updateStatus(!1, r);
|
|
107
|
-
}, o.componentWillUnmount = function() {
|
|
108
|
-
this.cancelNextCallback();
|
|
109
|
-
}, o.getTimeouts = function() {
|
|
110
|
-
var s = this.props.timeout, r, a, l;
|
|
111
|
-
return r = a = l = s, s != null && typeof s != "number" && (r = s.exit, a = s.enter, l = s.appear !== void 0 ? s.appear : a), {
|
|
112
|
-
exit: r,
|
|
113
|
-
enter: a,
|
|
114
|
-
appear: l
|
|
115
|
-
};
|
|
116
|
-
}, o.updateStatus = function(s, r) {
|
|
117
|
-
if (s === void 0 && (s = !1), r !== null)
|
|
118
|
-
if (this.cancelNextCallback(), r === ee) {
|
|
119
|
-
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
120
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current : Te.findDOMNode(this);
|
|
121
|
-
a && Bt(a);
|
|
122
|
-
}
|
|
123
|
-
this.performEnter(s);
|
|
124
|
-
} else
|
|
125
|
-
this.performExit();
|
|
126
|
-
else this.props.unmountOnExit && this.state.status === Z && this.setState({
|
|
127
|
-
status: me
|
|
128
|
-
});
|
|
129
|
-
}, o.performEnter = function(s) {
|
|
130
|
-
var r = this, a = this.props.enter, l = this.context ? this.context.isMounting : s, c = this.props.nodeRef ? [l] : [Te.findDOMNode(this), l], b = c[0], T = c[1], v = this.getTimeouts(), N = l ? v.appear : v.enter;
|
|
131
|
-
if (!s && !a || Ye.disabled) {
|
|
132
|
-
this.safeSetState({
|
|
133
|
-
status: ae
|
|
134
|
-
}, function() {
|
|
135
|
-
r.props.onEntered(b);
|
|
136
|
-
});
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
this.props.onEnter(b, T), this.safeSetState({
|
|
140
|
-
status: ee
|
|
141
|
-
}, function() {
|
|
142
|
-
r.props.onEntering(b, T), r.onTransitionEnd(N, function() {
|
|
143
|
-
r.safeSetState({
|
|
144
|
-
status: ae
|
|
145
|
-
}, function() {
|
|
146
|
-
r.props.onEntered(b, T);
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
}, o.performExit = function() {
|
|
151
|
-
var s = this, r = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Te.findDOMNode(this);
|
|
152
|
-
if (!r || Ye.disabled) {
|
|
153
|
-
this.safeSetState({
|
|
154
|
-
status: Z
|
|
155
|
-
}, function() {
|
|
156
|
-
s.props.onExited(l);
|
|
157
|
-
});
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
this.props.onExit(l), this.safeSetState({
|
|
161
|
-
status: Ae
|
|
162
|
-
}, function() {
|
|
163
|
-
s.props.onExiting(l), s.onTransitionEnd(a.exit, function() {
|
|
164
|
-
s.safeSetState({
|
|
165
|
-
status: Z
|
|
166
|
-
}, function() {
|
|
167
|
-
s.props.onExited(l);
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
}, o.cancelNextCallback = function() {
|
|
172
|
-
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
173
|
-
}, o.safeSetState = function(s, r) {
|
|
174
|
-
r = this.setNextCallback(r), this.setState(s, r);
|
|
175
|
-
}, o.setNextCallback = function(s) {
|
|
176
|
-
var r = this, a = !0;
|
|
177
|
-
return this.nextCallback = function(l) {
|
|
178
|
-
a && (a = !1, r.nextCallback = null, s(l));
|
|
179
|
-
}, this.nextCallback.cancel = function() {
|
|
180
|
-
a = !1;
|
|
181
|
-
}, this.nextCallback;
|
|
182
|
-
}, o.onTransitionEnd = function(s, r) {
|
|
183
|
-
this.setNextCallback(r);
|
|
184
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current : Te.findDOMNode(this), l = s == null && !this.props.addEndListener;
|
|
185
|
-
if (!a || l) {
|
|
186
|
-
setTimeout(this.nextCallback, 0);
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
if (this.props.addEndListener) {
|
|
190
|
-
var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], b = c[0], T = c[1];
|
|
191
|
-
this.props.addEndListener(b, T);
|
|
192
|
-
}
|
|
193
|
-
s != null && setTimeout(this.nextCallback, s);
|
|
194
|
-
}, o.render = function() {
|
|
195
|
-
var s = this.state.status;
|
|
196
|
-
if (s === me)
|
|
197
|
-
return null;
|
|
198
|
-
var r = this.props, a = r.children;
|
|
199
|
-
r.in, r.mountOnEnter, r.unmountOnExit, r.appear, r.enter, r.exit, r.timeout, r.addEndListener, r.onEnter, r.onEntering, r.onEntered, r.onExit, r.onExiting, r.onExited, r.nodeRef;
|
|
200
|
-
var l = Lt(r, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
201
|
-
return (
|
|
202
|
-
// allows for nested Transitions
|
|
203
|
-
/* @__PURE__ */ ve.createElement(st.Provider, {
|
|
204
|
-
value: null
|
|
205
|
-
}, typeof a == "function" ? a(s, l) : ve.cloneElement(ve.Children.only(a), l))
|
|
206
|
-
);
|
|
207
|
-
}, n;
|
|
208
|
-
}(ve.Component);
|
|
209
|
-
G.contextType = st;
|
|
210
|
-
G.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
211
|
-
/**
|
|
212
|
-
* A React reference to DOM element that need to transition:
|
|
213
|
-
* https://stackoverflow.com/a/51127130/4671932
|
|
214
|
-
*
|
|
215
|
-
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
216
|
-
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
217
|
-
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
218
|
-
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
219
|
-
* (see
|
|
220
|
-
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
221
|
-
*/
|
|
222
|
-
nodeRef: e.shape({
|
|
223
|
-
current: typeof Element > "u" ? e.any : function(t, n, o, i, s, r) {
|
|
224
|
-
var a = t[n];
|
|
225
|
-
return e.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(t, n, o, i, s, r);
|
|
226
|
-
}
|
|
227
|
-
}),
|
|
228
|
-
/**
|
|
229
|
-
* A `function` child can be used instead of a React element. This function is
|
|
230
|
-
* called with the current transition status (`'entering'`, `'entered'`,
|
|
231
|
-
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
232
|
-
* specific props to a component.
|
|
233
|
-
*
|
|
234
|
-
* ```jsx
|
|
235
|
-
* <Transition in={this.state.in} timeout={150}>
|
|
236
|
-
* {state => (
|
|
237
|
-
* <MyComponent className={`fade fade-${state}`} />
|
|
238
|
-
* )}
|
|
239
|
-
* </Transition>
|
|
240
|
-
* ```
|
|
241
|
-
*/
|
|
242
|
-
children: e.oneOfType([e.func.isRequired, e.element.isRequired]).isRequired,
|
|
243
|
-
/**
|
|
244
|
-
* Show the component; triggers the enter or exit states
|
|
245
|
-
*/
|
|
246
|
-
in: e.bool,
|
|
247
|
-
/**
|
|
248
|
-
* By default the child component is mounted immediately along with
|
|
249
|
-
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
250
|
-
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
251
|
-
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
252
|
-
*/
|
|
253
|
-
mountOnEnter: e.bool,
|
|
254
|
-
/**
|
|
255
|
-
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
256
|
-
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
257
|
-
*/
|
|
258
|
-
unmountOnExit: e.bool,
|
|
259
|
-
/**
|
|
260
|
-
* By default the child component does not perform the enter transition when
|
|
261
|
-
* it first mounts, regardless of the value of `in`. If you want this
|
|
262
|
-
* behavior, set both `appear` and `in` to `true`.
|
|
263
|
-
*
|
|
264
|
-
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
265
|
-
* > only adds an additional enter transition. However, in the
|
|
266
|
-
* > `<CSSTransition>` component that first enter transition does result in
|
|
267
|
-
* > additional `.appear-*` classes, that way you can choose to style it
|
|
268
|
-
* > differently.
|
|
269
|
-
*/
|
|
270
|
-
appear: e.bool,
|
|
271
|
-
/**
|
|
272
|
-
* Enable or disable enter transitions.
|
|
273
|
-
*/
|
|
274
|
-
enter: e.bool,
|
|
275
|
-
/**
|
|
276
|
-
* Enable or disable exit transitions.
|
|
277
|
-
*/
|
|
278
|
-
exit: e.bool,
|
|
279
|
-
/**
|
|
280
|
-
* The duration of the transition, in milliseconds.
|
|
281
|
-
* Required unless `addEndListener` is provided.
|
|
282
|
-
*
|
|
283
|
-
* You may specify a single timeout for all transitions:
|
|
284
|
-
*
|
|
285
|
-
* ```jsx
|
|
286
|
-
* timeout={500}
|
|
287
|
-
* ```
|
|
288
|
-
*
|
|
289
|
-
* or individually:
|
|
290
|
-
*
|
|
291
|
-
* ```jsx
|
|
292
|
-
* timeout={{
|
|
293
|
-
* appear: 500,
|
|
294
|
-
* enter: 300,
|
|
295
|
-
* exit: 500,
|
|
296
|
-
* }}
|
|
297
|
-
* ```
|
|
298
|
-
*
|
|
299
|
-
* - `appear` defaults to the value of `enter`
|
|
300
|
-
* - `enter` defaults to `0`
|
|
301
|
-
* - `exit` defaults to `0`
|
|
302
|
-
*
|
|
303
|
-
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
304
|
-
*/
|
|
305
|
-
timeout: function(n) {
|
|
306
|
-
var o = Kt;
|
|
307
|
-
n.addEndListener || (o = o.isRequired);
|
|
308
|
-
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
309
|
-
s[r - 1] = arguments[r];
|
|
310
|
-
return o.apply(void 0, [n].concat(s));
|
|
311
|
-
},
|
|
312
|
-
/**
|
|
313
|
-
* Add a custom transition end trigger. Called with the transitioning
|
|
314
|
-
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
315
|
-
* logic. Timeouts are still used as a fallback if provided.
|
|
316
|
-
*
|
|
317
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
318
|
-
*
|
|
319
|
-
* ```jsx
|
|
320
|
-
* addEndListener={(node, done) => {
|
|
321
|
-
* // use the css transitionend event to mark the finish of a transition
|
|
322
|
-
* node.addEventListener('transitionend', done, false);
|
|
323
|
-
* }}
|
|
324
|
-
* ```
|
|
325
|
-
*/
|
|
326
|
-
addEndListener: e.func,
|
|
327
|
-
/**
|
|
328
|
-
* Callback fired before the "entering" status is applied. An extra parameter
|
|
329
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
330
|
-
*
|
|
331
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
332
|
-
*
|
|
333
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
334
|
-
*/
|
|
335
|
-
onEnter: e.func,
|
|
336
|
-
/**
|
|
337
|
-
* Callback fired after the "entering" status is applied. An extra parameter
|
|
338
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
339
|
-
*
|
|
340
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
341
|
-
*
|
|
342
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
343
|
-
*/
|
|
344
|
-
onEntering: e.func,
|
|
345
|
-
/**
|
|
346
|
-
* Callback fired after the "entered" status is applied. An extra parameter
|
|
347
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
348
|
-
*
|
|
349
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
350
|
-
*
|
|
351
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
352
|
-
*/
|
|
353
|
-
onEntered: e.func,
|
|
354
|
-
/**
|
|
355
|
-
* Callback fired before the "exiting" status is applied.
|
|
356
|
-
*
|
|
357
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
358
|
-
*
|
|
359
|
-
* @type Function(node: HtmlElement) -> void
|
|
360
|
-
*/
|
|
361
|
-
onExit: e.func,
|
|
362
|
-
/**
|
|
363
|
-
* Callback fired after the "exiting" status is applied.
|
|
364
|
-
*
|
|
365
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
366
|
-
*
|
|
367
|
-
* @type Function(node: HtmlElement) -> void
|
|
368
|
-
*/
|
|
369
|
-
onExiting: e.func,
|
|
370
|
-
/**
|
|
371
|
-
* Callback fired after the "exited" status is applied.
|
|
372
|
-
*
|
|
373
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
374
|
-
*
|
|
375
|
-
* @type Function(node: HtmlElement) -> void
|
|
376
|
-
*/
|
|
377
|
-
onExited: e.func
|
|
378
|
-
} : {};
|
|
379
|
-
function se() {
|
|
380
|
-
}
|
|
381
|
-
G.defaultProps = {
|
|
382
|
-
in: !1,
|
|
383
|
-
mountOnEnter: !1,
|
|
384
|
-
unmountOnExit: !1,
|
|
385
|
-
appear: !1,
|
|
386
|
-
enter: !0,
|
|
387
|
-
exit: !0,
|
|
388
|
-
onEnter: se,
|
|
389
|
-
onEntering: se,
|
|
390
|
-
onEntered: se,
|
|
391
|
-
onExit: se,
|
|
392
|
-
onExiting: se,
|
|
393
|
-
onExited: se
|
|
394
|
-
};
|
|
395
|
-
G.UNMOUNTED = me;
|
|
396
|
-
G.EXITED = Z;
|
|
397
|
-
G.ENTERING = ee;
|
|
398
|
-
G.ENTERED = ae;
|
|
399
|
-
G.EXITING = Ae;
|
|
400
|
-
function Ee(t, n, o, i, s) {
|
|
52
|
+
function ae(t, n, o, r, a) {
|
|
401
53
|
if (process.env.NODE_ENV === "production")
|
|
402
54
|
return null;
|
|
403
|
-
const
|
|
404
|
-
return
|
|
405
|
-
}
|
|
406
|
-
function Ht(t) {
|
|
407
|
-
const n = typeof t;
|
|
408
|
-
switch (n) {
|
|
409
|
-
case "number":
|
|
410
|
-
return Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? t !== Math.floor(t) ? "float" : "number" : "Infinity";
|
|
411
|
-
case "object":
|
|
412
|
-
return t === null ? "null" : t.constructor.name;
|
|
413
|
-
default:
|
|
414
|
-
return n;
|
|
415
|
-
}
|
|
55
|
+
const s = t[n], i = a || n;
|
|
56
|
+
return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
416
57
|
}
|
|
417
|
-
function
|
|
418
|
-
const s = t[n];
|
|
419
|
-
if (s == null || !Number.isInteger(s)) {
|
|
420
|
-
const r = Ht(s);
|
|
421
|
-
return new RangeError(`Invalid ${i} \`${n}\` of type \`${r}\` supplied to \`${o}\`, expected \`integer\`.`);
|
|
422
|
-
}
|
|
423
|
-
return null;
|
|
424
|
-
}
|
|
425
|
-
function ct(t, n, o, i) {
|
|
426
|
-
return t[n] === void 0 ? null : lt(t, n, o, i);
|
|
427
|
-
}
|
|
428
|
-
function $e() {
|
|
429
|
-
return null;
|
|
430
|
-
}
|
|
431
|
-
ct.isRequired = lt;
|
|
432
|
-
$e.isRequired = $e;
|
|
433
|
-
const ut = process.env.NODE_ENV === "production" ? $e : ct;
|
|
434
|
-
function zt(t) {
|
|
58
|
+
function vt(t) {
|
|
435
59
|
return typeof t == "string";
|
|
436
60
|
}
|
|
437
|
-
function
|
|
61
|
+
function Rt(t) {
|
|
438
62
|
const {
|
|
439
63
|
prototype: n = {}
|
|
440
64
|
} = t;
|
|
441
65
|
return !!n.isReactComponent;
|
|
442
66
|
}
|
|
443
|
-
function
|
|
444
|
-
const
|
|
445
|
-
if (
|
|
67
|
+
function Ye(t, n, o, r, a) {
|
|
68
|
+
const s = t[n], i = a || n;
|
|
69
|
+
if (s == null || // When server-side rendering React doesn't warn either.
|
|
446
70
|
// This is not an accurate check for SSR.
|
|
447
71
|
// This is only in place for Emotion compat.
|
|
448
72
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
449
73
|
typeof window > "u")
|
|
450
74
|
return null;
|
|
451
|
-
let
|
|
452
|
-
const
|
|
453
|
-
return typeof
|
|
75
|
+
let c;
|
|
76
|
+
const d = s.type;
|
|
77
|
+
return typeof d == "function" && !Rt(d) && (c = "Did you accidentally use a plain function component for an element instead?"), c !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
454
78
|
}
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
function
|
|
79
|
+
const de = Me(e.element, Ye);
|
|
80
|
+
de.isRequired = Me(e.element.isRequired, Ye);
|
|
81
|
+
function Ee(t) {
|
|
458
82
|
var n;
|
|
459
|
-
return parseInt(
|
|
83
|
+
return parseInt(u.version, 10) >= 19 ? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.ref) || null : (t == null ? void 0 : t.ref) || null;
|
|
460
84
|
}
|
|
461
|
-
|
|
462
|
-
function Pe(t, n) {
|
|
463
|
-
const {
|
|
464
|
-
timeout: o,
|
|
465
|
-
easing: i,
|
|
466
|
-
style: s = {}
|
|
467
|
-
} = t;
|
|
468
|
-
return {
|
|
469
|
-
duration: s.transitionDuration ?? (typeof o == "number" ? o : o[n.mode] || 0),
|
|
470
|
-
easing: s.transitionTimingFunction ?? (typeof i == "object" ? i[n.mode] : i),
|
|
471
|
-
delay: s.transitionDelay
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
function Ve(t) {
|
|
85
|
+
function Ce(t) {
|
|
475
86
|
return `scale(${t}, ${t ** 2})`;
|
|
476
87
|
}
|
|
477
|
-
const
|
|
88
|
+
const Ot = {
|
|
478
89
|
entering: {
|
|
479
90
|
opacity: 1,
|
|
480
|
-
transform:
|
|
91
|
+
transform: Ce(1)
|
|
481
92
|
},
|
|
482
93
|
entered: {
|
|
483
94
|
opacity: 1,
|
|
484
95
|
transform: "none"
|
|
485
96
|
}
|
|
486
|
-
},
|
|
97
|
+
}, Re = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), be = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
487
98
|
const {
|
|
488
|
-
addEndListener:
|
|
489
|
-
appear:
|
|
490
|
-
children:
|
|
491
|
-
easing:
|
|
492
|
-
in:
|
|
493
|
-
onEnter:
|
|
494
|
-
onEntered:
|
|
495
|
-
onEntering:
|
|
496
|
-
onExit:
|
|
497
|
-
onExited:
|
|
498
|
-
onExiting:
|
|
499
|
-
style:
|
|
99
|
+
addEndListener: r,
|
|
100
|
+
appear: a = !0,
|
|
101
|
+
children: s,
|
|
102
|
+
easing: i,
|
|
103
|
+
in: c,
|
|
104
|
+
onEnter: d,
|
|
105
|
+
onEntered: T,
|
|
106
|
+
onEntering: w,
|
|
107
|
+
onExit: x,
|
|
108
|
+
onExited: C,
|
|
109
|
+
onExiting: h,
|
|
110
|
+
style: b,
|
|
500
111
|
timeout: I = "auto",
|
|
501
112
|
// eslint-disable-next-line react/prop-types
|
|
502
|
-
TransitionComponent:
|
|
113
|
+
TransitionComponent: M = ze,
|
|
503
114
|
...g
|
|
504
|
-
} = n,
|
|
505
|
-
if (
|
|
506
|
-
const
|
|
507
|
-
|
|
115
|
+
} = n, O = ct(), l = u.useRef(), f = qe(), y = u.useRef(null), N = Z(y, Ee(s), o), R = (p) => (m) => {
|
|
116
|
+
if (p) {
|
|
117
|
+
const F = y.current;
|
|
118
|
+
m === void 0 ? p(F) : p(F, m);
|
|
508
119
|
}
|
|
509
|
-
},
|
|
510
|
-
|
|
120
|
+
}, E = R(w), S = R((p, m) => {
|
|
121
|
+
We(p);
|
|
511
122
|
const {
|
|
512
|
-
duration:
|
|
513
|
-
delay:
|
|
514
|
-
easing:
|
|
515
|
-
} =
|
|
516
|
-
style:
|
|
123
|
+
duration: F,
|
|
124
|
+
delay: B,
|
|
125
|
+
easing: v
|
|
126
|
+
} = he({
|
|
127
|
+
style: b,
|
|
517
128
|
timeout: I,
|
|
518
|
-
easing:
|
|
129
|
+
easing: i
|
|
519
130
|
}, {
|
|
520
131
|
mode: "enter"
|
|
521
132
|
});
|
|
522
|
-
let
|
|
523
|
-
I === "auto" ? (
|
|
524
|
-
duration:
|
|
525
|
-
delay:
|
|
133
|
+
let D;
|
|
134
|
+
I === "auto" ? (D = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = D) : D = F, p.style.transition = [f.transitions.create("opacity", {
|
|
135
|
+
duration: D,
|
|
136
|
+
delay: B
|
|
526
137
|
}), f.transitions.create("transform", {
|
|
527
|
-
duration:
|
|
528
|
-
delay:
|
|
529
|
-
easing:
|
|
530
|
-
})].join(","),
|
|
531
|
-
}),
|
|
138
|
+
duration: Re ? D : D * 0.666,
|
|
139
|
+
delay: B,
|
|
140
|
+
easing: v
|
|
141
|
+
})].join(","), d && d(p, m);
|
|
142
|
+
}), V = R(T), L = R(h), $ = R((p) => {
|
|
532
143
|
const {
|
|
533
|
-
duration:
|
|
534
|
-
delay:
|
|
535
|
-
easing:
|
|
536
|
-
} =
|
|
537
|
-
style:
|
|
144
|
+
duration: m,
|
|
145
|
+
delay: F,
|
|
146
|
+
easing: B
|
|
147
|
+
} = he({
|
|
148
|
+
style: b,
|
|
538
149
|
timeout: I,
|
|
539
|
-
easing:
|
|
150
|
+
easing: i
|
|
540
151
|
}, {
|
|
541
152
|
mode: "exit"
|
|
542
153
|
});
|
|
543
|
-
let
|
|
544
|
-
I === "auto" ? (
|
|
545
|
-
duration:
|
|
546
|
-
delay:
|
|
154
|
+
let v;
|
|
155
|
+
I === "auto" ? (v = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = v) : v = m, p.style.transition = [f.transitions.create("opacity", {
|
|
156
|
+
duration: v,
|
|
157
|
+
delay: F
|
|
547
158
|
}), f.transitions.create("transform", {
|
|
548
|
-
duration:
|
|
549
|
-
delay:
|
|
550
|
-
easing:
|
|
551
|
-
})].join(","),
|
|
552
|
-
}),
|
|
553
|
-
I === "auto" &&
|
|
159
|
+
duration: Re ? v : v * 0.666,
|
|
160
|
+
delay: Re ? F : F || v * 0.333,
|
|
161
|
+
easing: B
|
|
162
|
+
})].join(","), p.style.opacity = 0, p.style.transform = Ce(0.75), x && x(p);
|
|
163
|
+
}), U = R(C), k = (p) => {
|
|
164
|
+
I === "auto" && O.start(l.current || 0, p), r && r(y.current, p);
|
|
554
165
|
};
|
|
555
|
-
return /* @__PURE__ */
|
|
556
|
-
appear:
|
|
557
|
-
in:
|
|
166
|
+
return /* @__PURE__ */ A.jsx(M, {
|
|
167
|
+
appear: a,
|
|
168
|
+
in: c,
|
|
558
169
|
nodeRef: y,
|
|
559
|
-
onEnter:
|
|
560
|
-
onEntered:
|
|
561
|
-
onEntering:
|
|
562
|
-
onExit:
|
|
563
|
-
onExited:
|
|
564
|
-
onExiting:
|
|
170
|
+
onEnter: S,
|
|
171
|
+
onEntered: V,
|
|
172
|
+
onEntering: E,
|
|
173
|
+
onExit: $,
|
|
174
|
+
onExited: U,
|
|
175
|
+
onExiting: L,
|
|
565
176
|
addEndListener: k,
|
|
566
177
|
timeout: I === "auto" ? null : I,
|
|
567
178
|
...g,
|
|
568
|
-
children: (
|
|
569
|
-
ownerState:
|
|
570
|
-
...
|
|
571
|
-
}) => /* @__PURE__ */
|
|
179
|
+
children: (p, {
|
|
180
|
+
ownerState: m,
|
|
181
|
+
...F
|
|
182
|
+
}) => /* @__PURE__ */ u.cloneElement(s, {
|
|
572
183
|
style: {
|
|
573
184
|
opacity: 0,
|
|
574
|
-
transform:
|
|
575
|
-
visibility:
|
|
576
|
-
...
|
|
577
|
-
...
|
|
578
|
-
...
|
|
185
|
+
transform: Ce(0.75),
|
|
186
|
+
visibility: p === "exited" && !c ? "hidden" : void 0,
|
|
187
|
+
...Ot[p],
|
|
188
|
+
...b,
|
|
189
|
+
...s.props.style
|
|
579
190
|
},
|
|
580
|
-
ref:
|
|
581
|
-
...
|
|
191
|
+
ref: N,
|
|
192
|
+
...F
|
|
582
193
|
})
|
|
583
194
|
});
|
|
584
195
|
});
|
|
585
|
-
process.env.NODE_ENV !== "production" && (
|
|
196
|
+
process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
586
197
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
587
198
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
588
199
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -602,7 +213,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
602
213
|
/**
|
|
603
214
|
* A single child content element.
|
|
604
215
|
*/
|
|
605
|
-
children:
|
|
216
|
+
children: de.isRequired,
|
|
606
217
|
/**
|
|
607
218
|
* The transition timing function.
|
|
608
219
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -656,243 +267,243 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
656
267
|
exit: e.number
|
|
657
268
|
})])
|
|
658
269
|
});
|
|
659
|
-
|
|
660
|
-
function
|
|
270
|
+
be && (be.muiSupportAuto = !0);
|
|
271
|
+
function Xe(t = window) {
|
|
661
272
|
const n = t.document.documentElement.clientWidth;
|
|
662
273
|
return t.innerWidth - n;
|
|
663
274
|
}
|
|
664
|
-
function
|
|
665
|
-
const n =
|
|
666
|
-
return n.body === t ?
|
|
275
|
+
function wt(t) {
|
|
276
|
+
const n = q(t);
|
|
277
|
+
return n.body === t ? Q(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
667
278
|
}
|
|
668
|
-
function
|
|
279
|
+
function ie(t, n) {
|
|
669
280
|
n ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
|
|
670
281
|
}
|
|
671
|
-
function
|
|
672
|
-
return parseInt(
|
|
282
|
+
function Ae(t) {
|
|
283
|
+
return parseInt(Q(t).getComputedStyle(t).paddingRight, 10) || 0;
|
|
673
284
|
}
|
|
674
|
-
function
|
|
675
|
-
const o = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName),
|
|
676
|
-
return o ||
|
|
285
|
+
function Nt(t) {
|
|
286
|
+
const o = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), r = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
|
|
287
|
+
return o || r;
|
|
677
288
|
}
|
|
678
|
-
function
|
|
679
|
-
const
|
|
680
|
-
[].forEach.call(t.children, (
|
|
681
|
-
const
|
|
682
|
-
|
|
289
|
+
function Ve(t, n, o, r, a) {
|
|
290
|
+
const s = [n, o, ...r];
|
|
291
|
+
[].forEach.call(t.children, (i) => {
|
|
292
|
+
const c = !s.includes(i), d = !Nt(i);
|
|
293
|
+
c && d && ie(i, a);
|
|
683
294
|
});
|
|
684
295
|
}
|
|
685
|
-
function
|
|
296
|
+
function Oe(t, n) {
|
|
686
297
|
let o = -1;
|
|
687
|
-
return t.some((
|
|
298
|
+
return t.some((r, a) => n(r) ? (o = a, !0) : !1), o;
|
|
688
299
|
}
|
|
689
|
-
function
|
|
690
|
-
const o = [],
|
|
300
|
+
function Ct(t, n) {
|
|
301
|
+
const o = [], r = t.container;
|
|
691
302
|
if (!n.disableScrollLock) {
|
|
692
|
-
if (
|
|
693
|
-
const
|
|
303
|
+
if (wt(r)) {
|
|
304
|
+
const i = Xe(Q(r));
|
|
694
305
|
o.push({
|
|
695
|
-
value:
|
|
306
|
+
value: r.style.paddingRight,
|
|
696
307
|
property: "padding-right",
|
|
697
|
-
el:
|
|
698
|
-
}),
|
|
699
|
-
const
|
|
700
|
-
[].forEach.call(
|
|
308
|
+
el: r
|
|
309
|
+
}), r.style.paddingRight = `${Ae(r) + i}px`;
|
|
310
|
+
const c = q(r).querySelectorAll(".mui-fixed");
|
|
311
|
+
[].forEach.call(c, (d) => {
|
|
701
312
|
o.push({
|
|
702
|
-
value:
|
|
313
|
+
value: d.style.paddingRight,
|
|
703
314
|
property: "padding-right",
|
|
704
|
-
el:
|
|
705
|
-
}),
|
|
315
|
+
el: d
|
|
316
|
+
}), d.style.paddingRight = `${Ae(d) + i}px`;
|
|
706
317
|
});
|
|
707
318
|
}
|
|
708
|
-
let
|
|
709
|
-
if (
|
|
710
|
-
|
|
319
|
+
let s;
|
|
320
|
+
if (r.parentNode instanceof DocumentFragment)
|
|
321
|
+
s = q(r).body;
|
|
711
322
|
else {
|
|
712
|
-
const
|
|
713
|
-
|
|
323
|
+
const i = r.parentElement, c = Q(r);
|
|
324
|
+
s = (i == null ? void 0 : i.nodeName) === "HTML" && c.getComputedStyle(i).overflowY === "scroll" ? i : r;
|
|
714
325
|
}
|
|
715
326
|
o.push({
|
|
716
|
-
value:
|
|
327
|
+
value: s.style.overflow,
|
|
717
328
|
property: "overflow",
|
|
718
|
-
el:
|
|
329
|
+
el: s
|
|
719
330
|
}, {
|
|
720
|
-
value:
|
|
331
|
+
value: s.style.overflowX,
|
|
721
332
|
property: "overflow-x",
|
|
722
|
-
el:
|
|
333
|
+
el: s
|
|
723
334
|
}, {
|
|
724
|
-
value:
|
|
335
|
+
value: s.style.overflowY,
|
|
725
336
|
property: "overflow-y",
|
|
726
|
-
el:
|
|
727
|
-
}),
|
|
337
|
+
el: s
|
|
338
|
+
}), s.style.overflow = "hidden";
|
|
728
339
|
}
|
|
729
340
|
return () => {
|
|
730
341
|
o.forEach(({
|
|
731
|
-
value:
|
|
732
|
-
el:
|
|
733
|
-
property:
|
|
342
|
+
value: s,
|
|
343
|
+
el: i,
|
|
344
|
+
property: c
|
|
734
345
|
}) => {
|
|
735
|
-
|
|
346
|
+
s ? i.style.setProperty(c, s) : i.style.removeProperty(c);
|
|
736
347
|
});
|
|
737
348
|
};
|
|
738
349
|
}
|
|
739
|
-
function
|
|
350
|
+
function Mt(t) {
|
|
740
351
|
const n = [];
|
|
741
352
|
return [].forEach.call(t.children, (o) => {
|
|
742
353
|
o.getAttribute("aria-hidden") === "true" && n.push(o);
|
|
743
354
|
}), n;
|
|
744
355
|
}
|
|
745
|
-
class
|
|
356
|
+
class kt {
|
|
746
357
|
constructor() {
|
|
747
358
|
this.modals = [], this.containers = [];
|
|
748
359
|
}
|
|
749
360
|
add(n, o) {
|
|
750
|
-
let
|
|
751
|
-
if (
|
|
752
|
-
return
|
|
753
|
-
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
return
|
|
361
|
+
let r = this.modals.indexOf(n);
|
|
362
|
+
if (r !== -1)
|
|
363
|
+
return r;
|
|
364
|
+
r = this.modals.length, this.modals.push(n), n.modalRef && ie(n.modalRef, !1);
|
|
365
|
+
const a = Mt(o);
|
|
366
|
+
Ve(o, n.mount, n.modalRef, a, !0);
|
|
367
|
+
const s = Oe(this.containers, (i) => i.container === o);
|
|
368
|
+
return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
|
|
758
369
|
modals: [n],
|
|
759
370
|
container: o,
|
|
760
371
|
restore: null,
|
|
761
|
-
hiddenSiblings:
|
|
762
|
-
}),
|
|
372
|
+
hiddenSiblings: a
|
|
373
|
+
}), r);
|
|
763
374
|
}
|
|
764
375
|
mount(n, o) {
|
|
765
|
-
const
|
|
766
|
-
|
|
376
|
+
const r = Oe(this.containers, (s) => s.modals.includes(n)), a = this.containers[r];
|
|
377
|
+
a.restore || (a.restore = Ct(a, o));
|
|
767
378
|
}
|
|
768
379
|
remove(n, o = !0) {
|
|
769
|
-
const
|
|
770
|
-
if (
|
|
771
|
-
return
|
|
772
|
-
const
|
|
773
|
-
if (
|
|
774
|
-
|
|
380
|
+
const r = this.modals.indexOf(n);
|
|
381
|
+
if (r === -1)
|
|
382
|
+
return r;
|
|
383
|
+
const a = Oe(this.containers, (i) => i.modals.includes(n)), s = this.containers[a];
|
|
384
|
+
if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(r, 1), s.modals.length === 0)
|
|
385
|
+
s.restore && s.restore(), n.modalRef && ie(n.modalRef, o), Ve(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(a, 1);
|
|
775
386
|
else {
|
|
776
|
-
const
|
|
777
|
-
|
|
387
|
+
const i = s.modals[s.modals.length - 1];
|
|
388
|
+
i.modalRef && ie(i.modalRef, !1);
|
|
778
389
|
}
|
|
779
|
-
return
|
|
390
|
+
return r;
|
|
780
391
|
}
|
|
781
392
|
isTopModal(n) {
|
|
782
393
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
783
394
|
}
|
|
784
395
|
}
|
|
785
|
-
const
|
|
786
|
-
function
|
|
396
|
+
const St = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
397
|
+
function jt(t) {
|
|
787
398
|
const n = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
788
399
|
return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
|
|
789
400
|
}
|
|
790
|
-
function
|
|
401
|
+
function It(t) {
|
|
791
402
|
if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
|
|
792
403
|
return !1;
|
|
793
|
-
const n = (
|
|
404
|
+
const n = (r) => t.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
794
405
|
let o = n(`[name="${t.name}"]:checked`);
|
|
795
406
|
return o || (o = n(`[name="${t.name}"]`)), o !== t;
|
|
796
407
|
}
|
|
797
|
-
function
|
|
798
|
-
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" ||
|
|
408
|
+
function Ft(t) {
|
|
409
|
+
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || It(t));
|
|
799
410
|
}
|
|
800
|
-
function
|
|
411
|
+
function Dt(t) {
|
|
801
412
|
const n = [], o = [];
|
|
802
|
-
return Array.from(t.querySelectorAll(
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
documentOrder:
|
|
806
|
-
tabIndex:
|
|
807
|
-
node:
|
|
413
|
+
return Array.from(t.querySelectorAll(St)).forEach((r, a) => {
|
|
414
|
+
const s = jt(r);
|
|
415
|
+
s === -1 || !Ft(r) || (s === 0 ? n.push(r) : o.push({
|
|
416
|
+
documentOrder: a,
|
|
417
|
+
tabIndex: s,
|
|
418
|
+
node: r
|
|
808
419
|
}));
|
|
809
|
-
}), o.sort((
|
|
420
|
+
}), o.sort((r, a) => r.tabIndex === a.tabIndex ? r.documentOrder - a.documentOrder : r.tabIndex - a.tabIndex).map((r) => r.node).concat(n);
|
|
810
421
|
}
|
|
811
|
-
function
|
|
422
|
+
function Lt() {
|
|
812
423
|
return !0;
|
|
813
424
|
}
|
|
814
|
-
function
|
|
425
|
+
function ge(t) {
|
|
815
426
|
const {
|
|
816
427
|
children: n,
|
|
817
428
|
disableAutoFocus: o = !1,
|
|
818
|
-
disableEnforceFocus:
|
|
819
|
-
disableRestoreFocus:
|
|
820
|
-
getTabbable:
|
|
821
|
-
isEnabled:
|
|
822
|
-
open:
|
|
823
|
-
} = t,
|
|
824
|
-
|
|
825
|
-
!
|
|
826
|
-
}, [o,
|
|
827
|
-
if (!
|
|
429
|
+
disableEnforceFocus: r = !1,
|
|
430
|
+
disableRestoreFocus: a = !1,
|
|
431
|
+
getTabbable: s = Dt,
|
|
432
|
+
isEnabled: i = Lt,
|
|
433
|
+
open: c
|
|
434
|
+
} = t, d = u.useRef(!1), T = u.useRef(null), w = u.useRef(null), x = u.useRef(null), C = u.useRef(null), h = u.useRef(!1), b = u.useRef(null), I = Z(Ee(n), b), M = u.useRef(null);
|
|
435
|
+
u.useEffect(() => {
|
|
436
|
+
!c || !b.current || (h.current = !o);
|
|
437
|
+
}, [o, c]), u.useEffect(() => {
|
|
438
|
+
if (!c || !b.current)
|
|
828
439
|
return;
|
|
829
|
-
const
|
|
830
|
-
return
|
|
831
|
-
`)),
|
|
832
|
-
|
|
440
|
+
const l = q(b.current);
|
|
441
|
+
return b.current.contains(l.activeElement) || (b.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
442
|
+
`)), b.current.setAttribute("tabIndex", "-1")), h.current && b.current.focus()), () => {
|
|
443
|
+
a || (x.current && x.current.focus && (d.current = !0, x.current.focus()), x.current = null);
|
|
833
444
|
};
|
|
834
|
-
}, [
|
|
835
|
-
if (!
|
|
445
|
+
}, [c]), u.useEffect(() => {
|
|
446
|
+
if (!c || !b.current)
|
|
836
447
|
return;
|
|
837
|
-
const
|
|
838
|
-
|
|
448
|
+
const l = q(b.current), f = (R) => {
|
|
449
|
+
M.current = R, !(r || !i() || R.key !== "Tab") && l.activeElement === b.current && R.shiftKey && (d.current = !0, w.current && w.current.focus());
|
|
839
450
|
}, y = () => {
|
|
840
|
-
var
|
|
841
|
-
const
|
|
842
|
-
if (
|
|
451
|
+
var S, V;
|
|
452
|
+
const R = b.current;
|
|
453
|
+
if (R === null)
|
|
843
454
|
return;
|
|
844
|
-
if (!
|
|
845
|
-
|
|
455
|
+
if (!l.hasFocus() || !i() || d.current) {
|
|
456
|
+
d.current = !1;
|
|
846
457
|
return;
|
|
847
458
|
}
|
|
848
|
-
if (
|
|
459
|
+
if (R.contains(l.activeElement) || r && l.activeElement !== T.current && l.activeElement !== w.current)
|
|
849
460
|
return;
|
|
850
|
-
if (
|
|
851
|
-
|
|
852
|
-
else if (
|
|
461
|
+
if (l.activeElement !== C.current)
|
|
462
|
+
C.current = null;
|
|
463
|
+
else if (C.current !== null)
|
|
853
464
|
return;
|
|
854
|
-
if (!
|
|
465
|
+
if (!h.current)
|
|
855
466
|
return;
|
|
856
|
-
let
|
|
857
|
-
if ((
|
|
858
|
-
const
|
|
859
|
-
typeof
|
|
467
|
+
let E = [];
|
|
468
|
+
if ((l.activeElement === T.current || l.activeElement === w.current) && (E = s(b.current)), E.length > 0) {
|
|
469
|
+
const L = !!((S = M.current) != null && S.shiftKey && ((V = M.current) == null ? void 0 : V.key) === "Tab"), $ = E[0], U = E[E.length - 1];
|
|
470
|
+
typeof $ != "string" && typeof U != "string" && (L ? U.focus() : $.focus());
|
|
860
471
|
} else
|
|
861
|
-
|
|
472
|
+
R.focus();
|
|
862
473
|
};
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
|
|
474
|
+
l.addEventListener("focusin", y), l.addEventListener("keydown", f, !0);
|
|
475
|
+
const N = setInterval(() => {
|
|
476
|
+
l.activeElement && l.activeElement.tagName === "BODY" && y();
|
|
866
477
|
}, 50);
|
|
867
478
|
return () => {
|
|
868
|
-
clearInterval(
|
|
479
|
+
clearInterval(N), l.removeEventListener("focusin", y), l.removeEventListener("keydown", f, !0);
|
|
869
480
|
};
|
|
870
|
-
}, [o,
|
|
871
|
-
const g = (
|
|
872
|
-
|
|
481
|
+
}, [o, r, a, i, c, s]);
|
|
482
|
+
const g = (l) => {
|
|
483
|
+
x.current === null && (x.current = l.relatedTarget), h.current = !0, C.current = l.target;
|
|
873
484
|
const f = n.props.onFocus;
|
|
874
|
-
f && f(
|
|
875
|
-
},
|
|
876
|
-
|
|
485
|
+
f && f(l);
|
|
486
|
+
}, O = (l) => {
|
|
487
|
+
x.current === null && (x.current = l.relatedTarget), h.current = !0;
|
|
877
488
|
};
|
|
878
|
-
return /* @__PURE__ */
|
|
879
|
-
children: [/* @__PURE__ */
|
|
880
|
-
tabIndex:
|
|
881
|
-
onFocus:
|
|
882
|
-
ref:
|
|
489
|
+
return /* @__PURE__ */ A.jsxs(u.Fragment, {
|
|
490
|
+
children: [/* @__PURE__ */ A.jsx("div", {
|
|
491
|
+
tabIndex: c ? 0 : -1,
|
|
492
|
+
onFocus: O,
|
|
493
|
+
ref: T,
|
|
883
494
|
"data-testid": "sentinelStart"
|
|
884
|
-
}), /* @__PURE__ */
|
|
495
|
+
}), /* @__PURE__ */ u.cloneElement(n, {
|
|
885
496
|
ref: I,
|
|
886
497
|
onFocus: g
|
|
887
|
-
}), /* @__PURE__ */
|
|
888
|
-
tabIndex:
|
|
889
|
-
onFocus:
|
|
890
|
-
ref:
|
|
498
|
+
}), /* @__PURE__ */ A.jsx("div", {
|
|
499
|
+
tabIndex: c ? 0 : -1,
|
|
500
|
+
onFocus: O,
|
|
501
|
+
ref: w,
|
|
891
502
|
"data-testid": "sentinelEnd"
|
|
892
503
|
})]
|
|
893
504
|
});
|
|
894
505
|
}
|
|
895
|
-
process.env.NODE_ENV !== "production" && (
|
|
506
|
+
process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
896
507
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
897
508
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
898
509
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -900,7 +511,7 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
|
900
511
|
/**
|
|
901
512
|
* A single child content element.
|
|
902
513
|
*/
|
|
903
|
-
children:
|
|
514
|
+
children: de,
|
|
904
515
|
/**
|
|
905
516
|
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
906
517
|
* replace it to the last focused element when it closes.
|
|
@@ -946,35 +557,35 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
|
946
557
|
*/
|
|
947
558
|
open: e.bool.isRequired
|
|
948
559
|
});
|
|
949
|
-
process.env.NODE_ENV !== "production" && (
|
|
950
|
-
function
|
|
560
|
+
process.env.NODE_ENV !== "production" && (ge.propTypes = Ge(ge.propTypes));
|
|
561
|
+
function At(t) {
|
|
951
562
|
return typeof t == "function" ? t() : t;
|
|
952
563
|
}
|
|
953
|
-
const
|
|
564
|
+
const ye = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
954
565
|
const {
|
|
955
|
-
children:
|
|
956
|
-
container:
|
|
957
|
-
disablePortal:
|
|
958
|
-
} = n, [
|
|
959
|
-
if (
|
|
960
|
-
|
|
961
|
-
}, [
|
|
962
|
-
if (
|
|
963
|
-
return
|
|
964
|
-
|
|
566
|
+
children: r,
|
|
567
|
+
container: a,
|
|
568
|
+
disablePortal: s = !1
|
|
569
|
+
} = n, [i, c] = u.useState(null), d = Z(/* @__PURE__ */ u.isValidElement(r) ? Ee(r) : null, o);
|
|
570
|
+
if (Ne(() => {
|
|
571
|
+
s || c(At(a) || document.body);
|
|
572
|
+
}, [a, s]), Ne(() => {
|
|
573
|
+
if (i && !s)
|
|
574
|
+
return Le(o, i), () => {
|
|
575
|
+
Le(o, null);
|
|
965
576
|
};
|
|
966
|
-
}, [o,
|
|
967
|
-
if (/* @__PURE__ */
|
|
968
|
-
const
|
|
969
|
-
ref:
|
|
577
|
+
}, [o, i, s]), s) {
|
|
578
|
+
if (/* @__PURE__ */ u.isValidElement(r)) {
|
|
579
|
+
const T = {
|
|
580
|
+
ref: d
|
|
970
581
|
};
|
|
971
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ u.cloneElement(r, T);
|
|
972
583
|
}
|
|
973
|
-
return
|
|
584
|
+
return r;
|
|
974
585
|
}
|
|
975
|
-
return
|
|
586
|
+
return i && /* @__PURE__ */ yt.createPortal(r, i);
|
|
976
587
|
});
|
|
977
|
-
process.env.NODE_ENV !== "production" && (
|
|
588
|
+
process.env.NODE_ENV !== "production" && (ye.propTypes = {
|
|
978
589
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
979
590
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
980
591
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -993,99 +604,99 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
|
993
604
|
* By default, it uses the body of the top-level document object,
|
|
994
605
|
* so it's simply `document.body` most of the time.
|
|
995
606
|
*/
|
|
996
|
-
container: e.oneOfType([
|
|
607
|
+
container: e.oneOfType([ae, e.func]),
|
|
997
608
|
/**
|
|
998
609
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
999
610
|
* @default false
|
|
1000
611
|
*/
|
|
1001
612
|
disablePortal: e.bool
|
|
1002
613
|
});
|
|
1003
|
-
process.env.NODE_ENV !== "production" && (
|
|
1004
|
-
const
|
|
614
|
+
process.env.NODE_ENV !== "production" && (ye.propTypes = Ge(ye.propTypes));
|
|
615
|
+
const Vt = {
|
|
1005
616
|
entering: {
|
|
1006
617
|
opacity: 1
|
|
1007
618
|
},
|
|
1008
619
|
entered: {
|
|
1009
620
|
opacity: 1
|
|
1010
621
|
}
|
|
1011
|
-
},
|
|
1012
|
-
const
|
|
1013
|
-
enter:
|
|
1014
|
-
exit:
|
|
622
|
+
}, Je = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
623
|
+
const r = qe(), a = {
|
|
624
|
+
enter: r.transitions.duration.enteringScreen,
|
|
625
|
+
exit: r.transitions.duration.leavingScreen
|
|
1015
626
|
}, {
|
|
1016
|
-
addEndListener:
|
|
1017
|
-
appear:
|
|
1018
|
-
children:
|
|
1019
|
-
easing:
|
|
1020
|
-
in:
|
|
1021
|
-
onEnter:
|
|
1022
|
-
onEntered:
|
|
1023
|
-
onEntering:
|
|
1024
|
-
onExit:
|
|
1025
|
-
onExited:
|
|
627
|
+
addEndListener: s,
|
|
628
|
+
appear: i = !0,
|
|
629
|
+
children: c,
|
|
630
|
+
easing: d,
|
|
631
|
+
in: T,
|
|
632
|
+
onEnter: w,
|
|
633
|
+
onEntered: x,
|
|
634
|
+
onEntering: C,
|
|
635
|
+
onExit: h,
|
|
636
|
+
onExited: b,
|
|
1026
637
|
onExiting: I,
|
|
1027
|
-
style:
|
|
1028
|
-
timeout: g =
|
|
638
|
+
style: M,
|
|
639
|
+
timeout: g = a,
|
|
1029
640
|
// eslint-disable-next-line react/prop-types
|
|
1030
|
-
TransitionComponent:
|
|
1031
|
-
...
|
|
1032
|
-
} = n, f =
|
|
641
|
+
TransitionComponent: O = ze,
|
|
642
|
+
...l
|
|
643
|
+
} = n, f = u.useRef(null), y = Z(f, Ee(c), o), N = (k) => (p) => {
|
|
1033
644
|
if (k) {
|
|
1034
|
-
const
|
|
1035
|
-
|
|
645
|
+
const m = f.current;
|
|
646
|
+
p === void 0 ? k(m) : k(m, p);
|
|
1036
647
|
}
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
const
|
|
1040
|
-
style:
|
|
648
|
+
}, R = N(C), E = N((k, p) => {
|
|
649
|
+
We(k);
|
|
650
|
+
const m = he({
|
|
651
|
+
style: M,
|
|
1041
652
|
timeout: g,
|
|
1042
|
-
easing:
|
|
653
|
+
easing: d
|
|
1043
654
|
}, {
|
|
1044
655
|
mode: "enter"
|
|
1045
656
|
});
|
|
1046
|
-
k.style.webkitTransition =
|
|
1047
|
-
}),
|
|
1048
|
-
const
|
|
1049
|
-
style:
|
|
657
|
+
k.style.webkitTransition = r.transitions.create("opacity", m), k.style.transition = r.transitions.create("opacity", m), w && w(k, p);
|
|
658
|
+
}), S = N(x), V = N(I), L = N((k) => {
|
|
659
|
+
const p = he({
|
|
660
|
+
style: M,
|
|
1050
661
|
timeout: g,
|
|
1051
|
-
easing:
|
|
662
|
+
easing: d
|
|
1052
663
|
}, {
|
|
1053
664
|
mode: "exit"
|
|
1054
665
|
});
|
|
1055
|
-
k.style.webkitTransition =
|
|
1056
|
-
}),
|
|
1057
|
-
|
|
666
|
+
k.style.webkitTransition = r.transitions.create("opacity", p), k.style.transition = r.transitions.create("opacity", p), h && h(k);
|
|
667
|
+
}), $ = N(b), U = (k) => {
|
|
668
|
+
s && s(f.current, k);
|
|
1058
669
|
};
|
|
1059
|
-
return /* @__PURE__ */
|
|
1060
|
-
appear:
|
|
1061
|
-
in:
|
|
670
|
+
return /* @__PURE__ */ A.jsx(O, {
|
|
671
|
+
appear: i,
|
|
672
|
+
in: T,
|
|
1062
673
|
nodeRef: f,
|
|
1063
|
-
onEnter:
|
|
1064
|
-
onEntered:
|
|
1065
|
-
onEntering:
|
|
1066
|
-
onExit:
|
|
1067
|
-
onExited:
|
|
1068
|
-
onExiting:
|
|
1069
|
-
addEndListener:
|
|
674
|
+
onEnter: E,
|
|
675
|
+
onEntered: S,
|
|
676
|
+
onEntering: R,
|
|
677
|
+
onExit: L,
|
|
678
|
+
onExited: $,
|
|
679
|
+
onExiting: V,
|
|
680
|
+
addEndListener: U,
|
|
1070
681
|
timeout: g,
|
|
1071
|
-
...
|
|
682
|
+
...l,
|
|
1072
683
|
children: (k, {
|
|
1073
|
-
ownerState:
|
|
1074
|
-
...
|
|
1075
|
-
}) => /* @__PURE__ */
|
|
684
|
+
ownerState: p,
|
|
685
|
+
...m
|
|
686
|
+
}) => /* @__PURE__ */ u.cloneElement(c, {
|
|
1076
687
|
style: {
|
|
1077
688
|
opacity: 0,
|
|
1078
|
-
visibility: k === "exited" && !
|
|
1079
|
-
...
|
|
1080
|
-
...
|
|
1081
|
-
...
|
|
689
|
+
visibility: k === "exited" && !T ? "hidden" : void 0,
|
|
690
|
+
...Vt[k],
|
|
691
|
+
...M,
|
|
692
|
+
...c.props.style
|
|
1082
693
|
},
|
|
1083
694
|
ref: y,
|
|
1084
|
-
...
|
|
695
|
+
...m
|
|
1085
696
|
})
|
|
1086
697
|
});
|
|
1087
698
|
});
|
|
1088
|
-
process.env.NODE_ENV !== "production" && (
|
|
699
|
+
process.env.NODE_ENV !== "production" && (Je.propTypes = {
|
|
1089
700
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1090
701
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1091
702
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1105,7 +716,7 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
|
1105
716
|
/**
|
|
1106
717
|
* A single child content element.
|
|
1107
718
|
*/
|
|
1108
|
-
children:
|
|
719
|
+
children: de.isRequired,
|
|
1109
720
|
/**
|
|
1110
721
|
* The transition timing function.
|
|
1111
722
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -1160,19 +771,19 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
|
1160
771
|
exit: e.number
|
|
1161
772
|
})])
|
|
1162
773
|
});
|
|
1163
|
-
function
|
|
774
|
+
function Kt(t) {
|
|
1164
775
|
return ue("MuiBackdrop", t);
|
|
1165
776
|
}
|
|
1166
777
|
pe("MuiBackdrop", ["root", "invisible"]);
|
|
1167
|
-
const
|
|
778
|
+
const $t = (t) => {
|
|
1168
779
|
const {
|
|
1169
780
|
classes: n,
|
|
1170
781
|
invisible: o
|
|
1171
782
|
} = t;
|
|
1172
|
-
return
|
|
783
|
+
return le({
|
|
1173
784
|
root: ["root", o && "invisible"]
|
|
1174
|
-
},
|
|
1175
|
-
},
|
|
785
|
+
}, Kt, n);
|
|
786
|
+
}, Bt = G("div", {
|
|
1176
787
|
name: "MuiBackdrop",
|
|
1177
788
|
slot: "Root",
|
|
1178
789
|
overridesResolver: (t, n) => {
|
|
@@ -1200,63 +811,63 @@ const un = (t) => {
|
|
|
1200
811
|
backgroundColor: "transparent"
|
|
1201
812
|
}
|
|
1202
813
|
}]
|
|
1203
|
-
}),
|
|
1204
|
-
const
|
|
814
|
+
}), Qe = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
815
|
+
const r = ce({
|
|
1205
816
|
props: n,
|
|
1206
817
|
name: "MuiBackdrop"
|
|
1207
818
|
}), {
|
|
1208
|
-
children:
|
|
1209
|
-
className:
|
|
1210
|
-
component:
|
|
1211
|
-
invisible:
|
|
1212
|
-
open:
|
|
1213
|
-
components:
|
|
1214
|
-
componentsProps:
|
|
1215
|
-
slotProps:
|
|
1216
|
-
slots:
|
|
1217
|
-
TransitionComponent:
|
|
1218
|
-
transitionDuration:
|
|
819
|
+
children: a,
|
|
820
|
+
className: s,
|
|
821
|
+
component: i = "div",
|
|
822
|
+
invisible: c = !1,
|
|
823
|
+
open: d,
|
|
824
|
+
components: T = {},
|
|
825
|
+
componentsProps: w = {},
|
|
826
|
+
slotProps: x = {},
|
|
827
|
+
slots: C = {},
|
|
828
|
+
TransitionComponent: h,
|
|
829
|
+
transitionDuration: b,
|
|
1219
830
|
...I
|
|
1220
|
-
} =
|
|
1221
|
-
...
|
|
1222
|
-
component:
|
|
1223
|
-
invisible:
|
|
1224
|
-
}, g =
|
|
1225
|
-
transition:
|
|
1226
|
-
root:
|
|
1227
|
-
...
|
|
1228
|
-
},
|
|
1229
|
-
...
|
|
1230
|
-
...
|
|
831
|
+
} = r, M = {
|
|
832
|
+
...r,
|
|
833
|
+
component: i,
|
|
834
|
+
invisible: c
|
|
835
|
+
}, g = $t(M), O = {
|
|
836
|
+
transition: h,
|
|
837
|
+
root: T.Root,
|
|
838
|
+
...C
|
|
839
|
+
}, l = {
|
|
840
|
+
...w,
|
|
841
|
+
...x
|
|
1231
842
|
}, f = {
|
|
1232
|
-
component:
|
|
1233
|
-
slots:
|
|
1234
|
-
slotProps:
|
|
1235
|
-
}, [y,
|
|
1236
|
-
elementType:
|
|
843
|
+
component: i,
|
|
844
|
+
slots: O,
|
|
845
|
+
slotProps: l
|
|
846
|
+
}, [y, N] = W("root", {
|
|
847
|
+
elementType: Bt,
|
|
1237
848
|
externalForwardedProps: f,
|
|
1238
|
-
className:
|
|
1239
|
-
ownerState:
|
|
1240
|
-
}), [
|
|
1241
|
-
elementType:
|
|
849
|
+
className: ne(g.root, s),
|
|
850
|
+
ownerState: M
|
|
851
|
+
}), [R, E] = W("transition", {
|
|
852
|
+
elementType: Je,
|
|
1242
853
|
externalForwardedProps: f,
|
|
1243
|
-
ownerState:
|
|
854
|
+
ownerState: M
|
|
1244
855
|
});
|
|
1245
|
-
return /* @__PURE__ */
|
|
1246
|
-
in:
|
|
1247
|
-
timeout:
|
|
856
|
+
return /* @__PURE__ */ A.jsx(R, {
|
|
857
|
+
in: d,
|
|
858
|
+
timeout: b,
|
|
1248
859
|
...I,
|
|
1249
|
-
...
|
|
1250
|
-
children: /* @__PURE__ */
|
|
860
|
+
...E,
|
|
861
|
+
children: /* @__PURE__ */ A.jsx(y, {
|
|
1251
862
|
"aria-hidden": !0,
|
|
1252
|
-
...
|
|
863
|
+
...N,
|
|
1253
864
|
classes: g,
|
|
1254
865
|
ref: o,
|
|
1255
|
-
children:
|
|
866
|
+
children: a
|
|
1256
867
|
})
|
|
1257
868
|
});
|
|
1258
869
|
});
|
|
1259
|
-
process.env.NODE_ENV !== "production" && (
|
|
870
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
1260
871
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1261
872
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1262
873
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1346,61 +957,61 @@ process.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
|
1346
957
|
exit: e.number
|
|
1347
958
|
})])
|
|
1348
959
|
});
|
|
1349
|
-
function
|
|
960
|
+
function Ut(t) {
|
|
1350
961
|
return typeof t == "function" ? t() : t;
|
|
1351
962
|
}
|
|
1352
|
-
function
|
|
963
|
+
function _t(t) {
|
|
1353
964
|
return t ? t.props.hasOwnProperty("in") : !1;
|
|
1354
965
|
}
|
|
1355
|
-
const
|
|
1356
|
-
},
|
|
1357
|
-
function
|
|
966
|
+
const Ke = () => {
|
|
967
|
+
}, me = new kt();
|
|
968
|
+
function Ht(t) {
|
|
1358
969
|
const {
|
|
1359
970
|
container: n,
|
|
1360
971
|
disableEscapeKeyDown: o = !1,
|
|
1361
|
-
disableScrollLock:
|
|
1362
|
-
closeAfterTransition:
|
|
1363
|
-
onTransitionEnter:
|
|
1364
|
-
onTransitionExited:
|
|
1365
|
-
children:
|
|
1366
|
-
onClose:
|
|
1367
|
-
open:
|
|
1368
|
-
rootRef:
|
|
1369
|
-
} = t,
|
|
1370
|
-
let
|
|
1371
|
-
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (
|
|
1372
|
-
const
|
|
1373
|
-
|
|
1374
|
-
disableScrollLock:
|
|
1375
|
-
}),
|
|
1376
|
-
},
|
|
1377
|
-
const
|
|
1378
|
-
|
|
1379
|
-
}),
|
|
1380
|
-
|
|
1381
|
-
}),
|
|
1382
|
-
|
|
1383
|
-
}, [
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
}, [
|
|
1387
|
-
|
|
1388
|
-
}, [
|
|
1389
|
-
const
|
|
1390
|
-
var
|
|
1391
|
-
(
|
|
1392
|
-
!
|
|
1393
|
-
},
|
|
1394
|
-
var
|
|
1395
|
-
(
|
|
972
|
+
disableScrollLock: r = !1,
|
|
973
|
+
closeAfterTransition: a = !1,
|
|
974
|
+
onTransitionEnter: s,
|
|
975
|
+
onTransitionExited: i,
|
|
976
|
+
children: c,
|
|
977
|
+
onClose: d,
|
|
978
|
+
open: T,
|
|
979
|
+
rootRef: w
|
|
980
|
+
} = t, x = u.useRef({}), C = u.useRef(null), h = u.useRef(null), b = Z(h, w), [I, M] = u.useState(!T), g = _t(c);
|
|
981
|
+
let O = !0;
|
|
982
|
+
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (O = !1);
|
|
983
|
+
const l = () => q(C.current), f = () => (x.current.modalRef = h.current, x.current.mount = C.current, x.current), y = () => {
|
|
984
|
+
me.mount(f(), {
|
|
985
|
+
disableScrollLock: r
|
|
986
|
+
}), h.current && (h.current.scrollTop = 0);
|
|
987
|
+
}, N = Fe(() => {
|
|
988
|
+
const p = Ut(n) || l().body;
|
|
989
|
+
me.add(f(), p), h.current && y();
|
|
990
|
+
}), R = () => me.isTopModal(f()), E = Fe((p) => {
|
|
991
|
+
C.current = p, p && (T && R() ? y() : h.current && ie(h.current, O));
|
|
992
|
+
}), S = u.useCallback(() => {
|
|
993
|
+
me.remove(f(), O);
|
|
994
|
+
}, [O]);
|
|
995
|
+
u.useEffect(() => () => {
|
|
996
|
+
S();
|
|
997
|
+
}, [S]), u.useEffect(() => {
|
|
998
|
+
T ? N() : (!g || !a) && S();
|
|
999
|
+
}, [T, S, g, a, N]);
|
|
1000
|
+
const V = (p) => (m) => {
|
|
1001
|
+
var F;
|
|
1002
|
+
(F = p.onKeyDown) == null || F.call(p, m), !(m.key !== "Escape" || m.which === 229 || // Wait until IME is settled.
|
|
1003
|
+
!R()) && (o || (m.stopPropagation(), d && d(m, "escapeKeyDown")));
|
|
1004
|
+
}, L = (p) => (m) => {
|
|
1005
|
+
var F;
|
|
1006
|
+
(F = p.onClick) == null || F.call(p, m), m.target === m.currentTarget && d && d(m, "backdropClick");
|
|
1396
1007
|
};
|
|
1397
1008
|
return {
|
|
1398
|
-
getRootProps: (
|
|
1399
|
-
const
|
|
1400
|
-
delete
|
|
1401
|
-
const
|
|
1402
|
-
...
|
|
1403
|
-
...
|
|
1009
|
+
getRootProps: (p = {}) => {
|
|
1010
|
+
const m = lt(t);
|
|
1011
|
+
delete m.onTransitionEnter, delete m.onTransitionExited;
|
|
1012
|
+
const F = {
|
|
1013
|
+
...m,
|
|
1014
|
+
...p
|
|
1404
1015
|
};
|
|
1405
1016
|
return {
|
|
1406
1017
|
/*
|
|
@@ -1410,53 +1021,53 @@ function mn(t) {
|
|
|
1410
1021
|
* https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
|
|
1411
1022
|
*/
|
|
1412
1023
|
role: "presentation",
|
|
1413
|
-
...
|
|
1414
|
-
onKeyDown:
|
|
1415
|
-
ref:
|
|
1024
|
+
...F,
|
|
1025
|
+
onKeyDown: V(F),
|
|
1026
|
+
ref: b
|
|
1416
1027
|
};
|
|
1417
1028
|
},
|
|
1418
|
-
getBackdropProps: (
|
|
1419
|
-
const
|
|
1029
|
+
getBackdropProps: (p = {}) => {
|
|
1030
|
+
const m = p;
|
|
1420
1031
|
return {
|
|
1421
1032
|
"aria-hidden": !0,
|
|
1422
|
-
...
|
|
1423
|
-
onClick:
|
|
1424
|
-
open:
|
|
1033
|
+
...m,
|
|
1034
|
+
onClick: L(m),
|
|
1035
|
+
open: T
|
|
1425
1036
|
};
|
|
1426
1037
|
},
|
|
1427
1038
|
getTransitionProps: () => {
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
},
|
|
1431
|
-
|
|
1039
|
+
const p = () => {
|
|
1040
|
+
M(!1), s && s();
|
|
1041
|
+
}, m = () => {
|
|
1042
|
+
M(!0), i && i(), a && S();
|
|
1432
1043
|
};
|
|
1433
1044
|
return {
|
|
1434
|
-
onEnter:
|
|
1435
|
-
onExited:
|
|
1045
|
+
onEnter: De(p, (c == null ? void 0 : c.props.onEnter) ?? Ke),
|
|
1046
|
+
onExited: De(m, (c == null ? void 0 : c.props.onExited) ?? Ke)
|
|
1436
1047
|
};
|
|
1437
1048
|
},
|
|
1438
|
-
rootRef:
|
|
1439
|
-
portalRef:
|
|
1440
|
-
isTopModal:
|
|
1049
|
+
rootRef: b,
|
|
1050
|
+
portalRef: E,
|
|
1051
|
+
isTopModal: R,
|
|
1441
1052
|
exited: I,
|
|
1442
1053
|
hasTransition: g
|
|
1443
1054
|
};
|
|
1444
1055
|
}
|
|
1445
|
-
function
|
|
1056
|
+
function zt(t) {
|
|
1446
1057
|
return ue("MuiModal", t);
|
|
1447
1058
|
}
|
|
1448
1059
|
pe("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1449
|
-
const
|
|
1060
|
+
const qt = (t) => {
|
|
1450
1061
|
const {
|
|
1451
1062
|
open: n,
|
|
1452
1063
|
exited: o,
|
|
1453
|
-
classes:
|
|
1064
|
+
classes: r
|
|
1454
1065
|
} = t;
|
|
1455
|
-
return
|
|
1066
|
+
return le({
|
|
1456
1067
|
root: ["root", !n && o && "hidden"],
|
|
1457
1068
|
backdrop: ["backdrop"]
|
|
1458
|
-
},
|
|
1459
|
-
},
|
|
1069
|
+
}, zt, r);
|
|
1070
|
+
}, Wt = G("div", {
|
|
1460
1071
|
name: "MuiModal",
|
|
1461
1072
|
slot: "Root",
|
|
1462
1073
|
overridesResolver: (t, n) => {
|
|
@@ -1482,132 +1093,132 @@ const bn = (t) => {
|
|
|
1482
1093
|
visibility: "hidden"
|
|
1483
1094
|
}
|
|
1484
1095
|
}]
|
|
1485
|
-
}))),
|
|
1096
|
+
}))), Gt = G(Qe, {
|
|
1486
1097
|
name: "MuiModal",
|
|
1487
1098
|
slot: "Backdrop"
|
|
1488
1099
|
})({
|
|
1489
1100
|
zIndex: -1
|
|
1490
|
-
}),
|
|
1491
|
-
const
|
|
1101
|
+
}), Ze = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
1102
|
+
const r = ce({
|
|
1492
1103
|
name: "MuiModal",
|
|
1493
1104
|
props: n
|
|
1494
1105
|
}), {
|
|
1495
|
-
BackdropComponent:
|
|
1496
|
-
BackdropProps:
|
|
1497
|
-
classes:
|
|
1498
|
-
className:
|
|
1499
|
-
closeAfterTransition:
|
|
1500
|
-
children:
|
|
1501
|
-
container:
|
|
1502
|
-
component:
|
|
1503
|
-
components:
|
|
1504
|
-
componentsProps:
|
|
1505
|
-
disableAutoFocus:
|
|
1106
|
+
BackdropComponent: a = Gt,
|
|
1107
|
+
BackdropProps: s,
|
|
1108
|
+
classes: i,
|
|
1109
|
+
className: c,
|
|
1110
|
+
closeAfterTransition: d = !1,
|
|
1111
|
+
children: T,
|
|
1112
|
+
container: w,
|
|
1113
|
+
component: x,
|
|
1114
|
+
components: C = {},
|
|
1115
|
+
componentsProps: h = {},
|
|
1116
|
+
disableAutoFocus: b = !1,
|
|
1506
1117
|
disableEnforceFocus: I = !1,
|
|
1507
|
-
disableEscapeKeyDown:
|
|
1118
|
+
disableEscapeKeyDown: M = !1,
|
|
1508
1119
|
disablePortal: g = !1,
|
|
1509
|
-
disableRestoreFocus:
|
|
1510
|
-
disableScrollLock:
|
|
1120
|
+
disableRestoreFocus: O = !1,
|
|
1121
|
+
disableScrollLock: l = !1,
|
|
1511
1122
|
hideBackdrop: f = !1,
|
|
1512
1123
|
keepMounted: y = !1,
|
|
1513
|
-
onClose:
|
|
1514
|
-
onTransitionEnter:
|
|
1515
|
-
onTransitionExited:
|
|
1516
|
-
open:
|
|
1517
|
-
slotProps:
|
|
1518
|
-
slots:
|
|
1124
|
+
onClose: N,
|
|
1125
|
+
onTransitionEnter: R,
|
|
1126
|
+
onTransitionExited: E,
|
|
1127
|
+
open: S,
|
|
1128
|
+
slotProps: V = {},
|
|
1129
|
+
slots: L = {},
|
|
1519
1130
|
// eslint-disable-next-line react/prop-types
|
|
1520
|
-
theme:
|
|
1521
|
-
...
|
|
1522
|
-
} =
|
|
1523
|
-
...
|
|
1524
|
-
closeAfterTransition:
|
|
1525
|
-
disableAutoFocus:
|
|
1131
|
+
theme: $,
|
|
1132
|
+
...U
|
|
1133
|
+
} = r, k = {
|
|
1134
|
+
...r,
|
|
1135
|
+
closeAfterTransition: d,
|
|
1136
|
+
disableAutoFocus: b,
|
|
1526
1137
|
disableEnforceFocus: I,
|
|
1527
|
-
disableEscapeKeyDown:
|
|
1138
|
+
disableEscapeKeyDown: M,
|
|
1528
1139
|
disablePortal: g,
|
|
1529
|
-
disableRestoreFocus:
|
|
1530
|
-
disableScrollLock:
|
|
1140
|
+
disableRestoreFocus: O,
|
|
1141
|
+
disableScrollLock: l,
|
|
1531
1142
|
hideBackdrop: f,
|
|
1532
1143
|
keepMounted: y
|
|
1533
1144
|
}, {
|
|
1534
|
-
getRootProps:
|
|
1535
|
-
getBackdropProps:
|
|
1536
|
-
getTransitionProps:
|
|
1537
|
-
portalRef:
|
|
1538
|
-
isTopModal:
|
|
1539
|
-
exited:
|
|
1145
|
+
getRootProps: p,
|
|
1146
|
+
getBackdropProps: m,
|
|
1147
|
+
getTransitionProps: F,
|
|
1148
|
+
portalRef: B,
|
|
1149
|
+
isTopModal: v,
|
|
1150
|
+
exited: D,
|
|
1540
1151
|
hasTransition: Y
|
|
1541
|
-
} =
|
|
1152
|
+
} = Ht({
|
|
1542
1153
|
...k,
|
|
1543
1154
|
rootRef: o
|
|
1544
|
-
}),
|
|
1155
|
+
}), X = {
|
|
1545
1156
|
...k,
|
|
1546
|
-
exited:
|
|
1547
|
-
},
|
|
1548
|
-
if (
|
|
1157
|
+
exited: D
|
|
1158
|
+
}, _ = qt(X), J = {};
|
|
1159
|
+
if (T.props.tabIndex === void 0 && (J.tabIndex = "-1"), Y) {
|
|
1549
1160
|
const {
|
|
1550
1161
|
onEnter: P,
|
|
1551
|
-
onExited:
|
|
1552
|
-
} =
|
|
1553
|
-
|
|
1162
|
+
onExited: j
|
|
1163
|
+
} = F();
|
|
1164
|
+
J.onEnter = P, J.onExited = j;
|
|
1554
1165
|
}
|
|
1555
|
-
const
|
|
1166
|
+
const fe = {
|
|
1556
1167
|
slots: {
|
|
1557
|
-
root:
|
|
1558
|
-
backdrop:
|
|
1559
|
-
...
|
|
1168
|
+
root: C.Root,
|
|
1169
|
+
backdrop: C.Backdrop,
|
|
1170
|
+
...L
|
|
1560
1171
|
},
|
|
1561
1172
|
slotProps: {
|
|
1562
|
-
...
|
|
1563
|
-
|
|
1173
|
+
...h,
|
|
1174
|
+
...V
|
|
1564
1175
|
}
|
|
1565
|
-
}, [
|
|
1176
|
+
}, [Te, Pe] = W("root", {
|
|
1566
1177
|
ref: o,
|
|
1567
|
-
elementType:
|
|
1178
|
+
elementType: Wt,
|
|
1568
1179
|
externalForwardedProps: {
|
|
1569
|
-
...
|
|
1570
|
-
...
|
|
1571
|
-
component:
|
|
1180
|
+
...fe,
|
|
1181
|
+
...U,
|
|
1182
|
+
component: x
|
|
1572
1183
|
},
|
|
1573
|
-
getSlotProps:
|
|
1574
|
-
ownerState:
|
|
1575
|
-
className:
|
|
1576
|
-
}), [
|
|
1577
|
-
ref:
|
|
1578
|
-
elementType:
|
|
1579
|
-
externalForwardedProps:
|
|
1184
|
+
getSlotProps: p,
|
|
1185
|
+
ownerState: X,
|
|
1186
|
+
className: ne(c, _ == null ? void 0 : _.root, !X.open && X.exited && (_ == null ? void 0 : _.hidden))
|
|
1187
|
+
}), [xe, ve] = W("backdrop", {
|
|
1188
|
+
ref: s == null ? void 0 : s.ref,
|
|
1189
|
+
elementType: a,
|
|
1190
|
+
externalForwardedProps: fe,
|
|
1580
1191
|
shouldForwardComponentProp: !0,
|
|
1581
|
-
additionalProps:
|
|
1582
|
-
getSlotProps: (P) =>
|
|
1192
|
+
additionalProps: s,
|
|
1193
|
+
getSlotProps: (P) => m({
|
|
1583
1194
|
...P,
|
|
1584
|
-
onClick: (
|
|
1585
|
-
P != null && P.onClick && P.onClick(
|
|
1195
|
+
onClick: (j) => {
|
|
1196
|
+
P != null && P.onClick && P.onClick(j);
|
|
1586
1197
|
}
|
|
1587
1198
|
}),
|
|
1588
|
-
className:
|
|
1589
|
-
ownerState:
|
|
1199
|
+
className: ne(s == null ? void 0 : s.className, _ == null ? void 0 : _.backdrop),
|
|
1200
|
+
ownerState: X
|
|
1590
1201
|
});
|
|
1591
|
-
return !y && !
|
|
1592
|
-
ref:
|
|
1593
|
-
container:
|
|
1202
|
+
return !y && !S && (!Y || D) ? null : /* @__PURE__ */ A.jsx(ye, {
|
|
1203
|
+
ref: B,
|
|
1204
|
+
container: w,
|
|
1594
1205
|
disablePortal: g,
|
|
1595
|
-
children: /* @__PURE__ */
|
|
1596
|
-
...
|
|
1597
|
-
children: [!f &&
|
|
1598
|
-
...
|
|
1599
|
-
}) : null, /* @__PURE__ */
|
|
1206
|
+
children: /* @__PURE__ */ A.jsxs(Te, {
|
|
1207
|
+
...Pe,
|
|
1208
|
+
children: [!f && a ? /* @__PURE__ */ A.jsx(xe, {
|
|
1209
|
+
...ve
|
|
1210
|
+
}) : null, /* @__PURE__ */ A.jsx(ge, {
|
|
1600
1211
|
disableEnforceFocus: I,
|
|
1601
|
-
disableAutoFocus:
|
|
1602
|
-
disableRestoreFocus:
|
|
1603
|
-
isEnabled:
|
|
1604
|
-
open:
|
|
1605
|
-
children: /* @__PURE__ */
|
|
1212
|
+
disableAutoFocus: b,
|
|
1213
|
+
disableRestoreFocus: O,
|
|
1214
|
+
isEnabled: v,
|
|
1215
|
+
open: S,
|
|
1216
|
+
children: /* @__PURE__ */ u.cloneElement(T, J)
|
|
1606
1217
|
})]
|
|
1607
1218
|
})
|
|
1608
1219
|
});
|
|
1609
1220
|
});
|
|
1610
|
-
process.env.NODE_ENV !== "production" && (
|
|
1221
|
+
process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
1611
1222
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1612
1223
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1613
1224
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1632,7 +1243,7 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
|
1632
1243
|
/**
|
|
1633
1244
|
* A single child content element.
|
|
1634
1245
|
*/
|
|
1635
|
-
children:
|
|
1246
|
+
children: de.isRequired,
|
|
1636
1247
|
/**
|
|
1637
1248
|
* Override or extend the styles applied to the component.
|
|
1638
1249
|
*/
|
|
@@ -1684,7 +1295,7 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
|
1684
1295
|
* By default, it uses the body of the top-level document object,
|
|
1685
1296
|
* so it's simply `document.body` most of the time.
|
|
1686
1297
|
*/
|
|
1687
|
-
container: e.oneOfType([
|
|
1298
|
+
container: e.oneOfType([ae, e.func]),
|
|
1688
1299
|
/**
|
|
1689
1300
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
1690
1301
|
* replace it to the last focused element when it closes.
|
|
@@ -1778,181 +1389,36 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
|
1778
1389
|
*/
|
|
1779
1390
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1780
1391
|
});
|
|
1781
|
-
function
|
|
1782
|
-
return ue("MuiPaper", t);
|
|
1783
|
-
}
|
|
1784
|
-
pe("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"]);
|
|
1785
|
-
const vn = (t) => {
|
|
1786
|
-
const {
|
|
1787
|
-
square: n,
|
|
1788
|
-
elevation: o,
|
|
1789
|
-
variant: i,
|
|
1790
|
-
classes: s
|
|
1791
|
-
} = t, r = {
|
|
1792
|
-
root: ["root", i, !n && "rounded", i === "elevation" && `elevation${o}`]
|
|
1793
|
-
};
|
|
1794
|
-
return ce(r, yn, s);
|
|
1795
|
-
}, Tn = W("div", {
|
|
1796
|
-
name: "MuiPaper",
|
|
1797
|
-
slot: "Root",
|
|
1798
|
-
overridesResolver: (t, n) => {
|
|
1799
|
-
const {
|
|
1800
|
-
ownerState: o
|
|
1801
|
-
} = t;
|
|
1802
|
-
return [n.root, n[o.variant], !o.square && n.rounded, o.variant === "elevation" && n[`elevation${o.elevation}`]];
|
|
1803
|
-
}
|
|
1804
|
-
})(it(({
|
|
1805
|
-
theme: t
|
|
1806
|
-
}) => ({
|
|
1807
|
-
backgroundColor: (t.vars || t).palette.background.paper,
|
|
1808
|
-
color: (t.vars || t).palette.text.primary,
|
|
1809
|
-
transition: t.transitions.create("box-shadow"),
|
|
1810
|
-
variants: [{
|
|
1811
|
-
props: ({
|
|
1812
|
-
ownerState: n
|
|
1813
|
-
}) => !n.square,
|
|
1814
|
-
style: {
|
|
1815
|
-
borderRadius: t.shape.borderRadius
|
|
1816
|
-
}
|
|
1817
|
-
}, {
|
|
1818
|
-
props: {
|
|
1819
|
-
variant: "outlined"
|
|
1820
|
-
},
|
|
1821
|
-
style: {
|
|
1822
|
-
border: `1px solid ${(t.vars || t).palette.divider}`
|
|
1823
|
-
}
|
|
1824
|
-
}, {
|
|
1825
|
-
props: {
|
|
1826
|
-
variant: "elevation"
|
|
1827
|
-
},
|
|
1828
|
-
style: {
|
|
1829
|
-
boxShadow: "var(--Paper-shadow)",
|
|
1830
|
-
backgroundImage: "var(--Paper-overlay)"
|
|
1831
|
-
}
|
|
1832
|
-
}]
|
|
1833
|
-
}))), Et = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
1834
|
-
var m;
|
|
1835
|
-
const i = le({
|
|
1836
|
-
props: n,
|
|
1837
|
-
name: "MuiPaper"
|
|
1838
|
-
}), s = _e(), {
|
|
1839
|
-
className: r,
|
|
1840
|
-
component: a = "div",
|
|
1841
|
-
elevation: l = 1,
|
|
1842
|
-
square: c = !1,
|
|
1843
|
-
variant: b = "elevation",
|
|
1844
|
-
...T
|
|
1845
|
-
} = i, v = {
|
|
1846
|
-
...i,
|
|
1847
|
-
component: a,
|
|
1848
|
-
elevation: l,
|
|
1849
|
-
square: c,
|
|
1850
|
-
variant: b
|
|
1851
|
-
}, N = vn(v);
|
|
1852
|
-
return process.env.NODE_ENV !== "production" && s.shadows[l] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
1853
|
-
`)), /* @__PURE__ */ L.jsx(Tn, {
|
|
1854
|
-
as: a,
|
|
1855
|
-
ownerState: v,
|
|
1856
|
-
className: te(N.root, r),
|
|
1857
|
-
ref: o,
|
|
1858
|
-
...T,
|
|
1859
|
-
style: {
|
|
1860
|
-
...b === "elevation" && {
|
|
1861
|
-
"--Paper-shadow": (s.vars || s).shadows[l],
|
|
1862
|
-
...s.vars && {
|
|
1863
|
-
"--Paper-overlay": (m = s.vars.overlays) == null ? void 0 : m[l]
|
|
1864
|
-
},
|
|
1865
|
-
...!s.vars && s.palette.mode === "dark" && {
|
|
1866
|
-
"--Paper-overlay": `linear-gradient(${ze("#fff", He(l))}, ${ze("#fff", He(l))})`
|
|
1867
|
-
}
|
|
1868
|
-
},
|
|
1869
|
-
...T.style
|
|
1870
|
-
}
|
|
1871
|
-
});
|
|
1872
|
-
});
|
|
1873
|
-
process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
1874
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1875
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1876
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1877
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1878
|
-
/**
|
|
1879
|
-
* The content of the component.
|
|
1880
|
-
*/
|
|
1881
|
-
children: e.node,
|
|
1882
|
-
/**
|
|
1883
|
-
* Override or extend the styles applied to the component.
|
|
1884
|
-
*/
|
|
1885
|
-
classes: e.object,
|
|
1886
|
-
/**
|
|
1887
|
-
* @ignore
|
|
1888
|
-
*/
|
|
1889
|
-
className: e.string,
|
|
1890
|
-
/**
|
|
1891
|
-
* The component used for the root node.
|
|
1892
|
-
* Either a string to use a HTML element or a component.
|
|
1893
|
-
*/
|
|
1894
|
-
component: e.elementType,
|
|
1895
|
-
/**
|
|
1896
|
-
* Shadow depth, corresponds to `dp` in the spec.
|
|
1897
|
-
* It accepts values between 0 and 24 inclusive.
|
|
1898
|
-
* @default 1
|
|
1899
|
-
*/
|
|
1900
|
-
elevation: we(ut, (t) => {
|
|
1901
|
-
const {
|
|
1902
|
-
elevation: n,
|
|
1903
|
-
variant: o
|
|
1904
|
-
} = t;
|
|
1905
|
-
return n > 0 && o === "outlined" ? new Error(`MUI: Combining \`elevation={${n}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
1906
|
-
}),
|
|
1907
|
-
/**
|
|
1908
|
-
* If `true`, rounded corners are disabled.
|
|
1909
|
-
* @default false
|
|
1910
|
-
*/
|
|
1911
|
-
square: e.bool,
|
|
1912
|
-
/**
|
|
1913
|
-
* @ignore
|
|
1914
|
-
*/
|
|
1915
|
-
style: e.object,
|
|
1916
|
-
/**
|
|
1917
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1918
|
-
*/
|
|
1919
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1920
|
-
/**
|
|
1921
|
-
* The variant to use.
|
|
1922
|
-
* @default 'elevation'
|
|
1923
|
-
*/
|
|
1924
|
-
variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
|
|
1925
|
-
});
|
|
1926
|
-
function xn(t) {
|
|
1392
|
+
function Yt(t) {
|
|
1927
1393
|
return ue("MuiPopover", t);
|
|
1928
1394
|
}
|
|
1929
1395
|
pe("MuiPopover", ["root", "paper"]);
|
|
1930
|
-
function
|
|
1396
|
+
function $e(t, n) {
|
|
1931
1397
|
let o = 0;
|
|
1932
1398
|
return typeof n == "number" ? o = n : n === "center" ? o = t.height / 2 : n === "bottom" && (o = t.height), o;
|
|
1933
1399
|
}
|
|
1934
|
-
function
|
|
1400
|
+
function Be(t, n) {
|
|
1935
1401
|
let o = 0;
|
|
1936
1402
|
return typeof n == "number" ? o = n : n === "center" ? o = t.width / 2 : n === "right" && (o = t.width), o;
|
|
1937
1403
|
}
|
|
1938
|
-
function
|
|
1404
|
+
function Ue(t) {
|
|
1939
1405
|
return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
1940
1406
|
}
|
|
1941
|
-
function
|
|
1407
|
+
function se(t) {
|
|
1942
1408
|
return typeof t == "function" ? t() : t;
|
|
1943
1409
|
}
|
|
1944
|
-
const
|
|
1410
|
+
const Xt = (t) => {
|
|
1945
1411
|
const {
|
|
1946
1412
|
classes: n
|
|
1947
1413
|
} = t;
|
|
1948
|
-
return
|
|
1414
|
+
return le({
|
|
1949
1415
|
root: ["root"],
|
|
1950
1416
|
paper: ["paper"]
|
|
1951
|
-
},
|
|
1952
|
-
},
|
|
1417
|
+
}, Yt, n);
|
|
1418
|
+
}, Jt = G(Ze, {
|
|
1953
1419
|
name: "MuiPopover",
|
|
1954
1420
|
slot: "Root"
|
|
1955
|
-
})({}),
|
|
1421
|
+
})({}), et = G(ht, {
|
|
1956
1422
|
name: "MuiPopover",
|
|
1957
1423
|
slot: "Paper"
|
|
1958
1424
|
})({
|
|
@@ -1967,219 +1433,219 @@ const Pn = (t) => {
|
|
|
1967
1433
|
maxHeight: "calc(100% - 32px)",
|
|
1968
1434
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1969
1435
|
outline: 0
|
|
1970
|
-
}),
|
|
1971
|
-
const
|
|
1436
|
+
}), tt = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
1437
|
+
const r = ce({
|
|
1972
1438
|
props: n,
|
|
1973
1439
|
name: "MuiPopover"
|
|
1974
1440
|
}), {
|
|
1975
|
-
action:
|
|
1976
|
-
anchorEl:
|
|
1977
|
-
anchorOrigin:
|
|
1441
|
+
action: a,
|
|
1442
|
+
anchorEl: s,
|
|
1443
|
+
anchorOrigin: i = {
|
|
1978
1444
|
vertical: "top",
|
|
1979
1445
|
horizontal: "left"
|
|
1980
1446
|
},
|
|
1981
|
-
anchorPosition:
|
|
1982
|
-
anchorReference:
|
|
1983
|
-
children:
|
|
1984
|
-
className:
|
|
1985
|
-
container:
|
|
1986
|
-
elevation:
|
|
1987
|
-
marginThreshold:
|
|
1988
|
-
open:
|
|
1447
|
+
anchorPosition: c,
|
|
1448
|
+
anchorReference: d = "anchorEl",
|
|
1449
|
+
children: T,
|
|
1450
|
+
className: w,
|
|
1451
|
+
container: x,
|
|
1452
|
+
elevation: C = 8,
|
|
1453
|
+
marginThreshold: h = 16,
|
|
1454
|
+
open: b,
|
|
1989
1455
|
PaperProps: I = {},
|
|
1990
1456
|
// TODO: remove in v7
|
|
1991
|
-
slots:
|
|
1457
|
+
slots: M = {},
|
|
1992
1458
|
slotProps: g = {},
|
|
1993
|
-
transformOrigin:
|
|
1459
|
+
transformOrigin: O = {
|
|
1994
1460
|
vertical: "top",
|
|
1995
1461
|
horizontal: "left"
|
|
1996
1462
|
},
|
|
1997
|
-
TransitionComponent:
|
|
1463
|
+
TransitionComponent: l,
|
|
1998
1464
|
// TODO: remove in v7
|
|
1999
1465
|
transitionDuration: f = "auto",
|
|
2000
1466
|
TransitionProps: y = {},
|
|
2001
1467
|
// TODO: remove in v7
|
|
2002
|
-
disableScrollLock:
|
|
2003
|
-
...
|
|
2004
|
-
} =
|
|
2005
|
-
...
|
|
2006
|
-
anchorOrigin:
|
|
2007
|
-
anchorReference:
|
|
2008
|
-
elevation:
|
|
2009
|
-
marginThreshold:
|
|
2010
|
-
transformOrigin:
|
|
2011
|
-
TransitionComponent:
|
|
1468
|
+
disableScrollLock: N = !1,
|
|
1469
|
+
...R
|
|
1470
|
+
} = r, E = u.useRef(), S = {
|
|
1471
|
+
...r,
|
|
1472
|
+
anchorOrigin: i,
|
|
1473
|
+
anchorReference: d,
|
|
1474
|
+
elevation: C,
|
|
1475
|
+
marginThreshold: h,
|
|
1476
|
+
transformOrigin: O,
|
|
1477
|
+
TransitionComponent: l,
|
|
2012
1478
|
transitionDuration: f,
|
|
2013
1479
|
TransitionProps: y
|
|
2014
|
-
},
|
|
2015
|
-
if (
|
|
2016
|
-
return process.env.NODE_ENV !== "production" && (
|
|
2017
|
-
const P =
|
|
1480
|
+
}, V = Xt(S), L = u.useCallback(() => {
|
|
1481
|
+
if (d === "anchorPosition")
|
|
1482
|
+
return process.env.NODE_ENV !== "production" && (c || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), c;
|
|
1483
|
+
const P = se(s), j = P && P.nodeType === 1 ? P : q(E.current).body, K = j.getBoundingClientRect();
|
|
2018
1484
|
if (process.env.NODE_ENV !== "production") {
|
|
2019
|
-
const
|
|
2020
|
-
process.env.NODE_ENV !== "test" &&
|
|
1485
|
+
const z = j.getBoundingClientRect();
|
|
1486
|
+
process.env.NODE_ENV !== "test" && z.top === 0 && z.left === 0 && z.right === 0 && z.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
2021
1487
|
`));
|
|
2022
1488
|
}
|
|
2023
1489
|
return {
|
|
2024
|
-
top:
|
|
2025
|
-
left:
|
|
1490
|
+
top: K.top + $e(K, i.vertical),
|
|
1491
|
+
left: K.left + Be(K, i.horizontal)
|
|
2026
1492
|
};
|
|
2027
|
-
}, [
|
|
2028
|
-
vertical:
|
|
2029
|
-
horizontal:
|
|
2030
|
-
}), [
|
|
2031
|
-
const
|
|
1493
|
+
}, [s, i.horizontal, i.vertical, c, d]), $ = u.useCallback((P) => ({
|
|
1494
|
+
vertical: $e(P, O.vertical),
|
|
1495
|
+
horizontal: Be(P, O.horizontal)
|
|
1496
|
+
}), [O.horizontal, O.vertical]), U = u.useCallback((P) => {
|
|
1497
|
+
const j = {
|
|
2032
1498
|
width: P.offsetWidth,
|
|
2033
1499
|
height: P.offsetHeight
|
|
2034
|
-
},
|
|
2035
|
-
if (
|
|
1500
|
+
}, K = $(j);
|
|
1501
|
+
if (d === "none")
|
|
2036
1502
|
return {
|
|
2037
1503
|
top: null,
|
|
2038
1504
|
left: null,
|
|
2039
|
-
transformOrigin:
|
|
1505
|
+
transformOrigin: Ue(K)
|
|
2040
1506
|
};
|
|
2041
|
-
const
|
|
2042
|
-
let
|
|
2043
|
-
const
|
|
2044
|
-
if (
|
|
2045
|
-
const
|
|
2046
|
-
|
|
2047
|
-
} else if (
|
|
2048
|
-
const
|
|
2049
|
-
|
|
1507
|
+
const z = L();
|
|
1508
|
+
let ee = z.top - K.vertical, te = z.left - K.horizontal;
|
|
1509
|
+
const ke = ee + j.height, Se = te + j.width, je = Q(se(s)), oe = je.innerHeight - h, Ie = je.innerWidth - h;
|
|
1510
|
+
if (h !== null && ee < h) {
|
|
1511
|
+
const H = ee - h;
|
|
1512
|
+
ee -= H, K.vertical += H;
|
|
1513
|
+
} else if (h !== null && ke > oe) {
|
|
1514
|
+
const H = ke - oe;
|
|
1515
|
+
ee -= H, K.vertical += H;
|
|
2050
1516
|
}
|
|
2051
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2052
|
-
`)),
|
|
2053
|
-
const
|
|
2054
|
-
|
|
2055
|
-
} else if (
|
|
2056
|
-
const
|
|
2057
|
-
|
|
1517
|
+
if (process.env.NODE_ENV !== "production" && j.height > oe && j.height && oe && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${j.height - oe}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
1518
|
+
`)), h !== null && te < h) {
|
|
1519
|
+
const H = te - h;
|
|
1520
|
+
te -= H, K.horizontal += H;
|
|
1521
|
+
} else if (Se > Ie) {
|
|
1522
|
+
const H = Se - Ie;
|
|
1523
|
+
te -= H, K.horizontal += H;
|
|
2058
1524
|
}
|
|
2059
1525
|
return {
|
|
2060
|
-
top: `${Math.round(
|
|
2061
|
-
left: `${Math.round(
|
|
2062
|
-
transformOrigin:
|
|
1526
|
+
top: `${Math.round(ee)}px`,
|
|
1527
|
+
left: `${Math.round(te)}px`,
|
|
1528
|
+
transformOrigin: Ue(K)
|
|
2063
1529
|
};
|
|
2064
|
-
}, [
|
|
2065
|
-
const P =
|
|
1530
|
+
}, [s, d, L, $, h]), [k, p] = u.useState(b), m = u.useCallback(() => {
|
|
1531
|
+
const P = E.current;
|
|
2066
1532
|
if (!P)
|
|
2067
1533
|
return;
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2070
|
-
}, [
|
|
2071
|
-
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
},
|
|
2075
|
-
|
|
1534
|
+
const j = U(P);
|
|
1535
|
+
j.top !== null && P.style.setProperty("top", j.top), j.left !== null && (P.style.left = j.left), P.style.transformOrigin = j.transformOrigin, p(!0);
|
|
1536
|
+
}, [U]);
|
|
1537
|
+
u.useEffect(() => (N && window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), [s, N, m]);
|
|
1538
|
+
const F = () => {
|
|
1539
|
+
m();
|
|
1540
|
+
}, B = () => {
|
|
1541
|
+
p(!1);
|
|
2076
1542
|
};
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
}),
|
|
1543
|
+
u.useEffect(() => {
|
|
1544
|
+
b && m();
|
|
1545
|
+
}), u.useImperativeHandle(a, () => b ? {
|
|
2080
1546
|
updatePosition: () => {
|
|
2081
|
-
|
|
1547
|
+
m();
|
|
2082
1548
|
}
|
|
2083
|
-
} : null, [
|
|
2084
|
-
if (!
|
|
1549
|
+
} : null, [b, m]), u.useEffect(() => {
|
|
1550
|
+
if (!b)
|
|
2085
1551
|
return;
|
|
2086
|
-
const P =
|
|
2087
|
-
|
|
2088
|
-
}),
|
|
2089
|
-
return
|
|
2090
|
-
P.clear(),
|
|
1552
|
+
const P = xt(() => {
|
|
1553
|
+
m();
|
|
1554
|
+
}), j = Q(se(s));
|
|
1555
|
+
return j.addEventListener("resize", P), () => {
|
|
1556
|
+
P.clear(), j.removeEventListener("resize", P);
|
|
2091
1557
|
};
|
|
2092
|
-
}, [
|
|
2093
|
-
let
|
|
2094
|
-
const
|
|
1558
|
+
}, [s, b, m]);
|
|
1559
|
+
let v = f;
|
|
1560
|
+
const D = {
|
|
2095
1561
|
slots: {
|
|
2096
|
-
transition:
|
|
2097
|
-
...
|
|
1562
|
+
transition: l,
|
|
1563
|
+
...M
|
|
2098
1564
|
},
|
|
2099
1565
|
slotProps: {
|
|
2100
1566
|
transition: y,
|
|
2101
1567
|
paper: I,
|
|
2102
1568
|
...g
|
|
2103
1569
|
}
|
|
2104
|
-
}, [Y,
|
|
2105
|
-
elementType:
|
|
2106
|
-
externalForwardedProps:
|
|
2107
|
-
ownerState:
|
|
1570
|
+
}, [Y, X] = W("transition", {
|
|
1571
|
+
elementType: be,
|
|
1572
|
+
externalForwardedProps: D,
|
|
1573
|
+
ownerState: S,
|
|
2108
1574
|
getSlotProps: (P) => ({
|
|
2109
1575
|
...P,
|
|
2110
|
-
onEntering: (
|
|
2111
|
-
var
|
|
2112
|
-
(
|
|
1576
|
+
onEntering: (j, K) => {
|
|
1577
|
+
var z;
|
|
1578
|
+
(z = P.onEntering) == null || z.call(P, j, K), F();
|
|
2113
1579
|
},
|
|
2114
|
-
onExited: (
|
|
2115
|
-
var
|
|
2116
|
-
(
|
|
1580
|
+
onExited: (j) => {
|
|
1581
|
+
var K;
|
|
1582
|
+
(K = P.onExited) == null || K.call(P, j), B();
|
|
2117
1583
|
}
|
|
2118
1584
|
}),
|
|
2119
1585
|
additionalProps: {
|
|
2120
1586
|
appear: !0,
|
|
2121
|
-
in:
|
|
1587
|
+
in: b
|
|
2122
1588
|
}
|
|
2123
1589
|
});
|
|
2124
|
-
f === "auto" && !Y.muiSupportAuto && (
|
|
2125
|
-
const
|
|
2126
|
-
slots:
|
|
2127
|
-
slotProps:
|
|
2128
|
-
...
|
|
2129
|
-
}] =
|
|
1590
|
+
f === "auto" && !Y.muiSupportAuto && (v = void 0);
|
|
1591
|
+
const _ = x || (s ? q(se(s)).body : void 0), [J, {
|
|
1592
|
+
slots: fe,
|
|
1593
|
+
slotProps: Te,
|
|
1594
|
+
...Pe
|
|
1595
|
+
}] = W("root", {
|
|
2130
1596
|
ref: o,
|
|
2131
|
-
elementType:
|
|
1597
|
+
elementType: Jt,
|
|
2132
1598
|
externalForwardedProps: {
|
|
2133
|
-
...
|
|
2134
|
-
...
|
|
1599
|
+
...D,
|
|
1600
|
+
...R
|
|
2135
1601
|
},
|
|
2136
1602
|
shouldForwardComponentProp: !0,
|
|
2137
1603
|
additionalProps: {
|
|
2138
1604
|
slots: {
|
|
2139
|
-
backdrop:
|
|
1605
|
+
backdrop: M.backdrop
|
|
2140
1606
|
},
|
|
2141
1607
|
slotProps: {
|
|
2142
|
-
backdrop:
|
|
1608
|
+
backdrop: gt(typeof g.backdrop == "function" ? g.backdrop(S) : g.backdrop, {
|
|
2143
1609
|
invisible: !0
|
|
2144
1610
|
})
|
|
2145
1611
|
},
|
|
2146
|
-
container:
|
|
2147
|
-
open:
|
|
1612
|
+
container: _,
|
|
1613
|
+
open: b
|
|
2148
1614
|
},
|
|
2149
|
-
ownerState:
|
|
2150
|
-
className:
|
|
2151
|
-
}), [
|
|
2152
|
-
ref:
|
|
2153
|
-
className:
|
|
2154
|
-
elementType:
|
|
2155
|
-
externalForwardedProps:
|
|
1615
|
+
ownerState: S,
|
|
1616
|
+
className: ne(V.root, w)
|
|
1617
|
+
}), [xe, ve] = W("paper", {
|
|
1618
|
+
ref: E,
|
|
1619
|
+
className: V.paper,
|
|
1620
|
+
elementType: et,
|
|
1621
|
+
externalForwardedProps: D,
|
|
2156
1622
|
shouldForwardComponentProp: !0,
|
|
2157
1623
|
additionalProps: {
|
|
2158
|
-
elevation:
|
|
1624
|
+
elevation: C,
|
|
2159
1625
|
style: k ? void 0 : {
|
|
2160
1626
|
opacity: 0
|
|
2161
1627
|
}
|
|
2162
1628
|
},
|
|
2163
|
-
ownerState:
|
|
1629
|
+
ownerState: S
|
|
2164
1630
|
});
|
|
2165
|
-
return /* @__PURE__ */
|
|
2166
|
-
...
|
|
2167
|
-
...!
|
|
2168
|
-
slots:
|
|
2169
|
-
slotProps:
|
|
2170
|
-
disableScrollLock:
|
|
1631
|
+
return /* @__PURE__ */ A.jsx(J, {
|
|
1632
|
+
...Pe,
|
|
1633
|
+
...!vt(J) && {
|
|
1634
|
+
slots: fe,
|
|
1635
|
+
slotProps: Te,
|
|
1636
|
+
disableScrollLock: N
|
|
2171
1637
|
},
|
|
2172
|
-
children: /* @__PURE__ */
|
|
2173
|
-
...
|
|
2174
|
-
timeout:
|
|
2175
|
-
children: /* @__PURE__ */
|
|
2176
|
-
...
|
|
2177
|
-
children:
|
|
1638
|
+
children: /* @__PURE__ */ A.jsx(Y, {
|
|
1639
|
+
...X,
|
|
1640
|
+
timeout: v,
|
|
1641
|
+
children: /* @__PURE__ */ A.jsx(xe, {
|
|
1642
|
+
...ve,
|
|
1643
|
+
children: T
|
|
2178
1644
|
})
|
|
2179
1645
|
})
|
|
2180
1646
|
});
|
|
2181
1647
|
});
|
|
2182
|
-
process.env.NODE_ENV !== "production" && (
|
|
1648
|
+
process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
2183
1649
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2184
1650
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2185
1651
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2188,15 +1654,15 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
2188
1654
|
* A ref for imperative actions.
|
|
2189
1655
|
* It currently only supports updatePosition() action.
|
|
2190
1656
|
*/
|
|
2191
|
-
action:
|
|
1657
|
+
action: ut,
|
|
2192
1658
|
/**
|
|
2193
1659
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
2194
1660
|
* or a function that returns either.
|
|
2195
1661
|
* It's used to set the position of the popover.
|
|
2196
1662
|
*/
|
|
2197
|
-
anchorEl:
|
|
1663
|
+
anchorEl: Me(e.oneOfType([ae, e.func]), (t) => {
|
|
2198
1664
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
2199
|
-
const n =
|
|
1665
|
+
const n = se(t.anchorEl);
|
|
2200
1666
|
if (n && n.nodeType === 1) {
|
|
2201
1667
|
const o = n.getBoundingClientRect();
|
|
2202
1668
|
if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
|
|
@@ -2277,7 +1743,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
2277
1743
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
2278
1744
|
* so it's simply `document.body` most of the time.
|
|
2279
1745
|
*/
|
|
2280
|
-
container: e.oneOfType([
|
|
1746
|
+
container: e.oneOfType([ae, e.func]),
|
|
2281
1747
|
/**
|
|
2282
1748
|
* Disable the scroll lock behavior.
|
|
2283
1749
|
* @default false
|
|
@@ -2287,7 +1753,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
2287
1753
|
* The elevation of the popover.
|
|
2288
1754
|
* @default 8
|
|
2289
1755
|
*/
|
|
2290
|
-
elevation:
|
|
1756
|
+
elevation: bt,
|
|
2291
1757
|
/**
|
|
2292
1758
|
* Specifies how close to the edge of the window the popover can appear.
|
|
2293
1759
|
* If null, the popover will not be constrained by the window.
|
|
@@ -2312,7 +1778,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
2312
1778
|
* @default {}
|
|
2313
1779
|
*/
|
|
2314
1780
|
PaperProps: e.shape({
|
|
2315
|
-
component:
|
|
1781
|
+
component: pt
|
|
2316
1782
|
}),
|
|
2317
1783
|
/**
|
|
2318
1784
|
* The props used for each slot inside.
|
|
@@ -2378,43 +1844,43 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
2378
1844
|
*/
|
|
2379
1845
|
TransitionProps: e.object
|
|
2380
1846
|
});
|
|
2381
|
-
function
|
|
2382
|
-
var
|
|
1847
|
+
function Qt(t) {
|
|
1848
|
+
var x;
|
|
2383
1849
|
const {
|
|
2384
1850
|
elementType: n,
|
|
2385
1851
|
externalSlotProps: o,
|
|
2386
|
-
ownerState:
|
|
2387
|
-
skipResolvingSlotProps:
|
|
2388
|
-
...
|
|
2389
|
-
} = t,
|
|
2390
|
-
props:
|
|
2391
|
-
internalRef:
|
|
2392
|
-
} =
|
|
2393
|
-
...
|
|
2394
|
-
externalSlotProps:
|
|
2395
|
-
}),
|
|
2396
|
-
return
|
|
2397
|
-
...
|
|
2398
|
-
ref:
|
|
2399
|
-
},
|
|
1852
|
+
ownerState: r,
|
|
1853
|
+
skipResolvingSlotProps: a = !1,
|
|
1854
|
+
...s
|
|
1855
|
+
} = t, i = a ? {} : dt(o, r), {
|
|
1856
|
+
props: c,
|
|
1857
|
+
internalRef: d
|
|
1858
|
+
} = ft({
|
|
1859
|
+
...s,
|
|
1860
|
+
externalSlotProps: i
|
|
1861
|
+
}), T = Z(d, i == null ? void 0 : i.ref, (x = t.additionalProps) == null ? void 0 : x.ref);
|
|
1862
|
+
return mt(n, {
|
|
1863
|
+
...c,
|
|
1864
|
+
ref: T
|
|
1865
|
+
}, r);
|
|
2400
1866
|
}
|
|
2401
|
-
const
|
|
2402
|
-
process.env.NODE_ENV !== "production" && (
|
|
2403
|
-
function
|
|
1867
|
+
const nt = /* @__PURE__ */ u.createContext({});
|
|
1868
|
+
process.env.NODE_ENV !== "production" && (nt.displayName = "ListContext");
|
|
1869
|
+
function Zt(t) {
|
|
2404
1870
|
return ue("MuiList", t);
|
|
2405
1871
|
}
|
|
2406
1872
|
pe("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
2407
|
-
const
|
|
1873
|
+
const en = (t) => {
|
|
2408
1874
|
const {
|
|
2409
1875
|
classes: n,
|
|
2410
1876
|
disablePadding: o,
|
|
2411
|
-
dense:
|
|
2412
|
-
subheader:
|
|
1877
|
+
dense: r,
|
|
1878
|
+
subheader: a
|
|
2413
1879
|
} = t;
|
|
2414
|
-
return
|
|
2415
|
-
root: ["root", !o && "padding",
|
|
2416
|
-
},
|
|
2417
|
-
},
|
|
1880
|
+
return le({
|
|
1881
|
+
root: ["root", !o && "padding", r && "dense", a && "subheader"]
|
|
1882
|
+
}, Zt, n);
|
|
1883
|
+
}, tn = G("ul", {
|
|
2418
1884
|
name: "MuiList",
|
|
2419
1885
|
slot: "Root",
|
|
2420
1886
|
overridesResolver: (t, n) => {
|
|
@@ -2444,39 +1910,39 @@ const wn = (t) => {
|
|
|
2444
1910
|
paddingTop: 0
|
|
2445
1911
|
}
|
|
2446
1912
|
}]
|
|
2447
|
-
}),
|
|
2448
|
-
const
|
|
1913
|
+
}), ot = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
1914
|
+
const r = ce({
|
|
2449
1915
|
props: n,
|
|
2450
1916
|
name: "MuiList"
|
|
2451
1917
|
}), {
|
|
2452
|
-
children:
|
|
2453
|
-
className:
|
|
2454
|
-
component:
|
|
2455
|
-
dense:
|
|
2456
|
-
disablePadding:
|
|
2457
|
-
subheader:
|
|
2458
|
-
...
|
|
2459
|
-
} =
|
|
2460
|
-
dense:
|
|
2461
|
-
}), [
|
|
2462
|
-
...
|
|
2463
|
-
component:
|
|
2464
|
-
dense:
|
|
2465
|
-
disablePadding:
|
|
2466
|
-
},
|
|
2467
|
-
return /* @__PURE__ */
|
|
2468
|
-
value:
|
|
2469
|
-
children: /* @__PURE__ */
|
|
2470
|
-
as:
|
|
2471
|
-
className:
|
|
1918
|
+
children: a,
|
|
1919
|
+
className: s,
|
|
1920
|
+
component: i = "ul",
|
|
1921
|
+
dense: c = !1,
|
|
1922
|
+
disablePadding: d = !1,
|
|
1923
|
+
subheader: T,
|
|
1924
|
+
...w
|
|
1925
|
+
} = r, x = u.useMemo(() => ({
|
|
1926
|
+
dense: c
|
|
1927
|
+
}), [c]), C = {
|
|
1928
|
+
...r,
|
|
1929
|
+
component: i,
|
|
1930
|
+
dense: c,
|
|
1931
|
+
disablePadding: d
|
|
1932
|
+
}, h = en(C);
|
|
1933
|
+
return /* @__PURE__ */ A.jsx(nt.Provider, {
|
|
1934
|
+
value: x,
|
|
1935
|
+
children: /* @__PURE__ */ A.jsxs(tn, {
|
|
1936
|
+
as: i,
|
|
1937
|
+
className: ne(h.root, s),
|
|
2472
1938
|
ref: o,
|
|
2473
|
-
ownerState:
|
|
2474
|
-
...
|
|
2475
|
-
children: [
|
|
1939
|
+
ownerState: C,
|
|
1940
|
+
...w,
|
|
1941
|
+
children: [T, a]
|
|
2476
1942
|
})
|
|
2477
1943
|
});
|
|
2478
1944
|
});
|
|
2479
|
-
process.env.NODE_ENV !== "production" && (
|
|
1945
|
+
process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
2480
1946
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2481
1947
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2482
1948
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2519,118 +1985,118 @@ process.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
|
2519
1985
|
*/
|
|
2520
1986
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
2521
1987
|
});
|
|
2522
|
-
function
|
|
1988
|
+
function we(t, n, o) {
|
|
2523
1989
|
return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o ? null : t.firstChild;
|
|
2524
1990
|
}
|
|
2525
|
-
function
|
|
1991
|
+
function _e(t, n, o) {
|
|
2526
1992
|
return t === n ? o ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o ? null : t.lastChild;
|
|
2527
1993
|
}
|
|
2528
|
-
function
|
|
1994
|
+
function rt(t, n) {
|
|
2529
1995
|
if (n === void 0)
|
|
2530
1996
|
return !0;
|
|
2531
1997
|
let o = t.innerText;
|
|
2532
1998
|
return o === void 0 && (o = t.textContent), o = o.trim().toLowerCase(), o.length === 0 ? !1 : n.repeating ? o[0] === n.keys[0] : o.startsWith(n.keys.join(""));
|
|
2533
1999
|
}
|
|
2534
|
-
function
|
|
2535
|
-
let
|
|
2536
|
-
for (;
|
|
2537
|
-
if (
|
|
2538
|
-
if (
|
|
2000
|
+
function re(t, n, o, r, a, s) {
|
|
2001
|
+
let i = !1, c = a(t, n, n ? o : !1);
|
|
2002
|
+
for (; c; ) {
|
|
2003
|
+
if (c === t.firstChild) {
|
|
2004
|
+
if (i)
|
|
2539
2005
|
return !1;
|
|
2540
|
-
|
|
2006
|
+
i = !0;
|
|
2541
2007
|
}
|
|
2542
|
-
const
|
|
2543
|
-
if (!
|
|
2544
|
-
|
|
2008
|
+
const d = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
|
|
2009
|
+
if (!c.hasAttribute("tabindex") || !rt(c, s) || d)
|
|
2010
|
+
c = a(t, c, o);
|
|
2545
2011
|
else
|
|
2546
|
-
return
|
|
2012
|
+
return c.focus(), !0;
|
|
2547
2013
|
}
|
|
2548
2014
|
return !1;
|
|
2549
2015
|
}
|
|
2550
|
-
const
|
|
2016
|
+
const st = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
2551
2017
|
const {
|
|
2552
2018
|
// private
|
|
2553
2019
|
// eslint-disable-next-line react/prop-types
|
|
2554
|
-
actions:
|
|
2555
|
-
autoFocus:
|
|
2556
|
-
autoFocusItem:
|
|
2557
|
-
children:
|
|
2558
|
-
className:
|
|
2559
|
-
disabledItemsFocusable:
|
|
2560
|
-
disableListWrap:
|
|
2561
|
-
onKeyDown:
|
|
2562
|
-
variant:
|
|
2563
|
-
...
|
|
2564
|
-
} = n,
|
|
2020
|
+
actions: r,
|
|
2021
|
+
autoFocus: a = !1,
|
|
2022
|
+
autoFocusItem: s = !1,
|
|
2023
|
+
children: i,
|
|
2024
|
+
className: c,
|
|
2025
|
+
disabledItemsFocusable: d = !1,
|
|
2026
|
+
disableListWrap: T = !1,
|
|
2027
|
+
onKeyDown: w,
|
|
2028
|
+
variant: x = "selectedMenu",
|
|
2029
|
+
...C
|
|
2030
|
+
} = n, h = u.useRef(null), b = u.useRef({
|
|
2565
2031
|
keys: [],
|
|
2566
2032
|
repeating: !0,
|
|
2567
2033
|
previousKeyMatched: !0,
|
|
2568
2034
|
lastTime: null
|
|
2569
2035
|
});
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
}, [
|
|
2573
|
-
adjustStyleForScrollbar: (
|
|
2036
|
+
Ne(() => {
|
|
2037
|
+
a && h.current.focus();
|
|
2038
|
+
}, [a]), u.useImperativeHandle(r, () => ({
|
|
2039
|
+
adjustStyleForScrollbar: (l, {
|
|
2574
2040
|
direction: f
|
|
2575
2041
|
}) => {
|
|
2576
|
-
const y = !
|
|
2577
|
-
if (
|
|
2578
|
-
const
|
|
2579
|
-
|
|
2042
|
+
const y = !h.current.style.width;
|
|
2043
|
+
if (l.clientHeight < h.current.clientHeight && y) {
|
|
2044
|
+
const N = `${Xe(Q(l))}px`;
|
|
2045
|
+
h.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = N, h.current.style.width = `calc(100% + ${N})`;
|
|
2580
2046
|
}
|
|
2581
|
-
return
|
|
2047
|
+
return h.current;
|
|
2582
2048
|
}
|
|
2583
2049
|
}), []);
|
|
2584
|
-
const I = (
|
|
2585
|
-
const f =
|
|
2586
|
-
if (
|
|
2587
|
-
|
|
2050
|
+
const I = (l) => {
|
|
2051
|
+
const f = h.current, y = l.key;
|
|
2052
|
+
if (l.ctrlKey || l.metaKey || l.altKey) {
|
|
2053
|
+
w && w(l);
|
|
2588
2054
|
return;
|
|
2589
2055
|
}
|
|
2590
|
-
const
|
|
2056
|
+
const R = q(f).activeElement;
|
|
2591
2057
|
if (y === "ArrowDown")
|
|
2592
|
-
|
|
2058
|
+
l.preventDefault(), re(f, R, T, d, we);
|
|
2593
2059
|
else if (y === "ArrowUp")
|
|
2594
|
-
|
|
2060
|
+
l.preventDefault(), re(f, R, T, d, _e);
|
|
2595
2061
|
else if (y === "Home")
|
|
2596
|
-
|
|
2062
|
+
l.preventDefault(), re(f, null, T, d, we);
|
|
2597
2063
|
else if (y === "End")
|
|
2598
|
-
|
|
2064
|
+
l.preventDefault(), re(f, null, T, d, _e);
|
|
2599
2065
|
else if (y.length === 1) {
|
|
2600
|
-
const
|
|
2601
|
-
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2066
|
+
const E = b.current, S = y.toLowerCase(), V = performance.now();
|
|
2067
|
+
E.keys.length > 0 && (V - E.lastTime > 500 ? (E.keys = [], E.repeating = !0, E.previousKeyMatched = !0) : E.repeating && S !== E.keys[0] && (E.repeating = !1)), E.lastTime = V, E.keys.push(S);
|
|
2068
|
+
const L = R && !E.repeating && rt(R, E);
|
|
2069
|
+
E.previousKeyMatched && (L || re(f, R, !1, d, we, E)) ? l.preventDefault() : E.previousKeyMatched = !1;
|
|
2604
2070
|
}
|
|
2605
|
-
|
|
2606
|
-
},
|
|
2071
|
+
w && w(l);
|
|
2072
|
+
}, M = Z(h, o);
|
|
2607
2073
|
let g = -1;
|
|
2608
|
-
|
|
2609
|
-
if (!/* @__PURE__ */
|
|
2610
|
-
g === f && (g += 1, g >=
|
|
2074
|
+
u.Children.forEach(i, (l, f) => {
|
|
2075
|
+
if (!/* @__PURE__ */ u.isValidElement(l)) {
|
|
2076
|
+
g === f && (g += 1, g >= i.length && (g = -1));
|
|
2611
2077
|
return;
|
|
2612
2078
|
}
|
|
2613
|
-
process.env.NODE_ENV !== "production" &&
|
|
2614
|
-
`)),
|
|
2079
|
+
process.env.NODE_ENV !== "production" && He.isFragment(l) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2080
|
+
`)), l.props.disabled || (x === "selectedMenu" && l.props.selected || g === -1) && (g = f), g === f && (l.props.disabled || l.props.muiSkipListHighlight || l.type.muiSkipListHighlight) && (g += 1, g >= i.length && (g = -1));
|
|
2615
2081
|
});
|
|
2616
|
-
const
|
|
2082
|
+
const O = u.Children.map(i, (l, f) => {
|
|
2617
2083
|
if (f === g) {
|
|
2618
2084
|
const y = {};
|
|
2619
|
-
return
|
|
2085
|
+
return s && (y.autoFocus = !0), l.props.tabIndex === void 0 && x === "selectedMenu" && (y.tabIndex = 0), /* @__PURE__ */ u.cloneElement(l, y);
|
|
2620
2086
|
}
|
|
2621
|
-
return
|
|
2087
|
+
return l;
|
|
2622
2088
|
});
|
|
2623
|
-
return /* @__PURE__ */
|
|
2089
|
+
return /* @__PURE__ */ A.jsx(ot, {
|
|
2624
2090
|
role: "menu",
|
|
2625
|
-
ref:
|
|
2626
|
-
className:
|
|
2091
|
+
ref: M,
|
|
2092
|
+
className: c,
|
|
2627
2093
|
onKeyDown: I,
|
|
2628
|
-
tabIndex:
|
|
2629
|
-
...
|
|
2630
|
-
children:
|
|
2094
|
+
tabIndex: a ? 0 : -1,
|
|
2095
|
+
...C,
|
|
2096
|
+
children: O
|
|
2631
2097
|
});
|
|
2632
2098
|
});
|
|
2633
|
-
process.env.NODE_ENV !== "production" && (
|
|
2099
|
+
process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
2634
2100
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2635
2101
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2636
2102
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2675,30 +2141,30 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
|
|
|
2675
2141
|
*/
|
|
2676
2142
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2677
2143
|
});
|
|
2678
|
-
function
|
|
2144
|
+
function nn(t) {
|
|
2679
2145
|
return ue("MuiMenu", t);
|
|
2680
2146
|
}
|
|
2681
2147
|
pe("MuiMenu", ["root", "paper", "list"]);
|
|
2682
|
-
const
|
|
2148
|
+
const on = {
|
|
2683
2149
|
vertical: "top",
|
|
2684
2150
|
horizontal: "right"
|
|
2685
|
-
},
|
|
2151
|
+
}, rn = {
|
|
2686
2152
|
vertical: "top",
|
|
2687
2153
|
horizontal: "left"
|
|
2688
|
-
},
|
|
2154
|
+
}, sn = (t) => {
|
|
2689
2155
|
const {
|
|
2690
2156
|
classes: n
|
|
2691
2157
|
} = t;
|
|
2692
|
-
return
|
|
2158
|
+
return le({
|
|
2693
2159
|
root: ["root"],
|
|
2694
2160
|
paper: ["paper"],
|
|
2695
2161
|
list: ["list"]
|
|
2696
|
-
},
|
|
2697
|
-
},
|
|
2698
|
-
shouldForwardProp: (t) =>
|
|
2162
|
+
}, nn, n);
|
|
2163
|
+
}, an = G(tt, {
|
|
2164
|
+
shouldForwardProp: (t) => at(t) || t === "classes",
|
|
2699
2165
|
name: "MuiMenu",
|
|
2700
2166
|
slot: "Root"
|
|
2701
|
-
})({}),
|
|
2167
|
+
})({}), cn = G(et, {
|
|
2702
2168
|
name: "MuiMenu",
|
|
2703
2169
|
slot: "Paper"
|
|
2704
2170
|
})({
|
|
@@ -2708,97 +2174,97 @@ const kn = {
|
|
|
2708
2174
|
maxHeight: "calc(100% - 96px)",
|
|
2709
2175
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
2710
2176
|
WebkitOverflowScrolling: "touch"
|
|
2711
|
-
}),
|
|
2177
|
+
}), ln = G(st, {
|
|
2712
2178
|
name: "MuiMenu",
|
|
2713
2179
|
slot: "List"
|
|
2714
2180
|
})({
|
|
2715
2181
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2716
2182
|
outline: 0
|
|
2717
|
-
}),
|
|
2718
|
-
const
|
|
2183
|
+
}), un = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
2184
|
+
const r = ce({
|
|
2719
2185
|
props: n,
|
|
2720
2186
|
name: "MuiMenu"
|
|
2721
2187
|
}), {
|
|
2722
|
-
autoFocus:
|
|
2723
|
-
children:
|
|
2724
|
-
className:
|
|
2725
|
-
disableAutoFocusItem:
|
|
2726
|
-
MenuListProps:
|
|
2727
|
-
onClose:
|
|
2728
|
-
open:
|
|
2729
|
-
PaperProps:
|
|
2730
|
-
PopoverClasses:
|
|
2731
|
-
transitionDuration:
|
|
2188
|
+
autoFocus: a = !0,
|
|
2189
|
+
children: s,
|
|
2190
|
+
className: i,
|
|
2191
|
+
disableAutoFocusItem: c = !1,
|
|
2192
|
+
MenuListProps: d = {},
|
|
2193
|
+
onClose: T,
|
|
2194
|
+
open: w,
|
|
2195
|
+
PaperProps: x = {},
|
|
2196
|
+
PopoverClasses: C,
|
|
2197
|
+
transitionDuration: h = "auto",
|
|
2732
2198
|
TransitionProps: {
|
|
2733
|
-
onEntering:
|
|
2199
|
+
onEntering: b,
|
|
2734
2200
|
...I
|
|
2735
2201
|
} = {},
|
|
2736
|
-
variant:
|
|
2202
|
+
variant: M = "selectedMenu",
|
|
2737
2203
|
slots: g = {},
|
|
2738
|
-
slotProps:
|
|
2739
|
-
...
|
|
2740
|
-
} =
|
|
2741
|
-
...
|
|
2742
|
-
autoFocus:
|
|
2743
|
-
disableAutoFocusItem:
|
|
2744
|
-
MenuListProps:
|
|
2745
|
-
onEntering:
|
|
2746
|
-
PaperProps:
|
|
2747
|
-
transitionDuration:
|
|
2204
|
+
slotProps: O = {},
|
|
2205
|
+
...l
|
|
2206
|
+
} = r, f = Pt(), y = {
|
|
2207
|
+
...r,
|
|
2208
|
+
autoFocus: a,
|
|
2209
|
+
disableAutoFocusItem: c,
|
|
2210
|
+
MenuListProps: d,
|
|
2211
|
+
onEntering: b,
|
|
2212
|
+
PaperProps: x,
|
|
2213
|
+
transitionDuration: h,
|
|
2748
2214
|
TransitionProps: I,
|
|
2749
|
-
variant:
|
|
2750
|
-
},
|
|
2751
|
-
|
|
2215
|
+
variant: M
|
|
2216
|
+
}, N = sn(y), R = a && !c && w, E = u.useRef(null), S = (v, D) => {
|
|
2217
|
+
E.current && E.current.adjustStyleForScrollbar(v, {
|
|
2752
2218
|
direction: f ? "rtl" : "ltr"
|
|
2753
|
-
}),
|
|
2754
|
-
},
|
|
2755
|
-
|
|
2219
|
+
}), b && b(v, D);
|
|
2220
|
+
}, V = (v) => {
|
|
2221
|
+
v.key === "Tab" && (v.preventDefault(), T && T(v, "tabKeyDown"));
|
|
2756
2222
|
};
|
|
2757
|
-
let
|
|
2758
|
-
|
|
2759
|
-
/* @__PURE__ */
|
|
2760
|
-
`)),
|
|
2223
|
+
let L = -1;
|
|
2224
|
+
u.Children.map(s, (v, D) => {
|
|
2225
|
+
/* @__PURE__ */ u.isValidElement(v) && (process.env.NODE_ENV !== "production" && He.isFragment(v) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2226
|
+
`)), v.props.disabled || (M === "selectedMenu" && v.props.selected || L === -1) && (L = D));
|
|
2761
2227
|
});
|
|
2762
|
-
const
|
|
2228
|
+
const $ = {
|
|
2763
2229
|
slots: g,
|
|
2764
2230
|
slotProps: {
|
|
2765
|
-
list:
|
|
2231
|
+
list: d,
|
|
2766
2232
|
transition: I,
|
|
2767
|
-
paper:
|
|
2768
|
-
...
|
|
2233
|
+
paper: x,
|
|
2234
|
+
...O
|
|
2769
2235
|
}
|
|
2770
|
-
},
|
|
2236
|
+
}, U = Qt({
|
|
2771
2237
|
elementType: g.root,
|
|
2772
|
-
externalSlotProps:
|
|
2238
|
+
externalSlotProps: O.root,
|
|
2773
2239
|
ownerState: y,
|
|
2774
|
-
className: [
|
|
2775
|
-
}), [k,
|
|
2776
|
-
className:
|
|
2777
|
-
elementType:
|
|
2778
|
-
externalForwardedProps:
|
|
2240
|
+
className: [N.root, i]
|
|
2241
|
+
}), [k, p] = W("paper", {
|
|
2242
|
+
className: N.paper,
|
|
2243
|
+
elementType: cn,
|
|
2244
|
+
externalForwardedProps: $,
|
|
2779
2245
|
shouldForwardComponentProp: !0,
|
|
2780
2246
|
ownerState: y
|
|
2781
|
-
}), [
|
|
2782
|
-
className:
|
|
2783
|
-
elementType:
|
|
2247
|
+
}), [m, F] = W("list", {
|
|
2248
|
+
className: ne(N.list, d.className),
|
|
2249
|
+
elementType: ln,
|
|
2784
2250
|
shouldForwardComponentProp: !0,
|
|
2785
|
-
externalForwardedProps:
|
|
2786
|
-
getSlotProps: (
|
|
2787
|
-
...
|
|
2788
|
-
onKeyDown: (
|
|
2251
|
+
externalForwardedProps: $,
|
|
2252
|
+
getSlotProps: (v) => ({
|
|
2253
|
+
...v,
|
|
2254
|
+
onKeyDown: (D) => {
|
|
2789
2255
|
var Y;
|
|
2790
|
-
|
|
2256
|
+
V(D), (Y = v.onKeyDown) == null || Y.call(v, D);
|
|
2791
2257
|
}
|
|
2792
2258
|
}),
|
|
2793
2259
|
ownerState: y
|
|
2794
|
-
}),
|
|
2795
|
-
return /* @__PURE__ */
|
|
2796
|
-
onClose:
|
|
2260
|
+
}), B = typeof $.slotProps.transition == "function" ? $.slotProps.transition(y) : $.slotProps.transition;
|
|
2261
|
+
return /* @__PURE__ */ A.jsx(an, {
|
|
2262
|
+
onClose: T,
|
|
2797
2263
|
anchorOrigin: {
|
|
2798
2264
|
vertical: "bottom",
|
|
2799
2265
|
horizontal: f ? "right" : "left"
|
|
2800
2266
|
},
|
|
2801
|
-
transformOrigin: f ?
|
|
2267
|
+
transformOrigin: f ? on : rn,
|
|
2802
2268
|
slots: {
|
|
2803
2269
|
root: g.root,
|
|
2804
2270
|
paper: k,
|
|
@@ -2809,34 +2275,34 @@ const kn = {
|
|
|
2809
2275
|
}
|
|
2810
2276
|
},
|
|
2811
2277
|
slotProps: {
|
|
2812
|
-
root:
|
|
2813
|
-
paper:
|
|
2814
|
-
backdrop: typeof
|
|
2278
|
+
root: U,
|
|
2279
|
+
paper: p,
|
|
2280
|
+
backdrop: typeof O.backdrop == "function" ? O.backdrop(y) : O.backdrop,
|
|
2815
2281
|
transition: {
|
|
2816
|
-
...
|
|
2817
|
-
onEntering: (...
|
|
2818
|
-
var
|
|
2819
|
-
|
|
2282
|
+
...B,
|
|
2283
|
+
onEntering: (...v) => {
|
|
2284
|
+
var D;
|
|
2285
|
+
S(...v), (D = B == null ? void 0 : B.onEntering) == null || D.call(B, ...v);
|
|
2820
2286
|
}
|
|
2821
2287
|
}
|
|
2822
2288
|
},
|
|
2823
|
-
open:
|
|
2289
|
+
open: w,
|
|
2824
2290
|
ref: o,
|
|
2825
|
-
transitionDuration:
|
|
2291
|
+
transitionDuration: h,
|
|
2826
2292
|
ownerState: y,
|
|
2827
|
-
...
|
|
2828
|
-
classes:
|
|
2829
|
-
children: /* @__PURE__ */
|
|
2830
|
-
actions:
|
|
2831
|
-
autoFocus:
|
|
2832
|
-
autoFocusItem:
|
|
2833
|
-
variant:
|
|
2834
|
-
...
|
|
2835
|
-
children:
|
|
2293
|
+
...l,
|
|
2294
|
+
classes: C,
|
|
2295
|
+
children: /* @__PURE__ */ A.jsx(m, {
|
|
2296
|
+
actions: E,
|
|
2297
|
+
autoFocus: a && (L === -1 || c),
|
|
2298
|
+
autoFocusItem: R,
|
|
2299
|
+
variant: M,
|
|
2300
|
+
...F,
|
|
2301
|
+
children: s
|
|
2836
2302
|
})
|
|
2837
2303
|
});
|
|
2838
2304
|
});
|
|
2839
|
-
process.env.NODE_ENV !== "production" && (
|
|
2305
|
+
process.env.NODE_ENV !== "production" && (un.propTypes = {
|
|
2840
2306
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2841
2307
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2842
2308
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2845,7 +2311,7 @@ process.env.NODE_ENV !== "production" && (Ln.propTypes = {
|
|
|
2845
2311
|
* An HTML element, or a function that returns one.
|
|
2846
2312
|
* It's used to set the position of the menu.
|
|
2847
2313
|
*/
|
|
2848
|
-
anchorEl: e.oneOfType([
|
|
2314
|
+
anchorEl: e.oneOfType([ae, e.func]),
|
|
2849
2315
|
/**
|
|
2850
2316
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
2851
2317
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -2948,28 +2414,23 @@ process.env.NODE_ENV !== "production" && (Ln.propTypes = {
|
|
|
2948
2414
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2949
2415
|
});
|
|
2950
2416
|
export {
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
Et as l,
|
|
2971
|
-
Tt as m,
|
|
2972
|
-
bt as n,
|
|
2973
|
-
z as o,
|
|
2974
|
-
Ut as u
|
|
2417
|
+
Qe as B,
|
|
2418
|
+
Je as F,
|
|
2419
|
+
be as G,
|
|
2420
|
+
ae as H,
|
|
2421
|
+
nt as L,
|
|
2422
|
+
un as M,
|
|
2423
|
+
tt as P,
|
|
2424
|
+
Q as a,
|
|
2425
|
+
Qt as b,
|
|
2426
|
+
st as c,
|
|
2427
|
+
xt as d,
|
|
2428
|
+
ye as e,
|
|
2429
|
+
ge as f,
|
|
2430
|
+
Ee as g,
|
|
2431
|
+
ot as h,
|
|
2432
|
+
vt as i,
|
|
2433
|
+
Ze as j,
|
|
2434
|
+
q as o,
|
|
2435
|
+
Pt as u
|
|
2975
2436
|
};
|