jcicl 0.0.207 → 0.0.211
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.
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
1
|
+
import { jsx as k, jsxs as Me } from "react/jsx-runtime";
|
|
2
|
+
import { n as Yo } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as Mo } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import Bo from "../theme.js";
|
|
5
|
+
import * as m from "react";
|
|
6
6
|
import { g as po, a as co, s as F, c as d, u as uo, b as J, P as o, d as fo, e as V } from "../.chunks/DefaultPropsProvider.js";
|
|
7
|
-
import { i as Io, a as be, b as No, f as Ae, P as
|
|
8
|
-
import { c as
|
|
7
|
+
import { i as Io, a as be, b as No, f as Ae, P as Uo, A as Jo, T as Xo } from "../.chunks/TextField.js";
|
|
8
|
+
import { c as Ho } from "../.chunks/createSvgIcon.js";
|
|
9
9
|
import { m as ee } from "../.chunks/memoTheme.js";
|
|
10
10
|
import { u as Oo, i as Qo } from "../.chunks/useSlot.js";
|
|
11
11
|
import { c as De } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
12
12
|
import { B as So } from "../.chunks/ButtonBase.js";
|
|
13
13
|
import { c as wo } from "../.chunks/chainPropTypes.js";
|
|
14
|
-
import { P as
|
|
14
|
+
import { P as Wo } from "../.chunks/Popper.js";
|
|
15
15
|
import { a as Zo } from "../.chunks/Portal.js";
|
|
16
16
|
import { u as Po } from "../.chunks/useControlled.js";
|
|
17
17
|
import { b as io, s as et, u as ot } from "../.chunks/TransitionGroupContext.js";
|
|
18
18
|
function tt(e, n, a, i, g) {
|
|
19
19
|
if (process.env.NODE_ENV === "production")
|
|
20
20
|
return null;
|
|
21
|
-
const
|
|
22
|
-
return typeof e[n] < "u" ? new Error(`The prop \`${
|
|
21
|
+
const x = g || n;
|
|
22
|
+
return typeof e[n] < "u" ? new Error(`The prop \`${x}\` is not supported. Please remove it.`) : null;
|
|
23
23
|
}
|
|
24
24
|
const nt = (e) => {
|
|
25
|
-
const n =
|
|
26
|
-
return
|
|
25
|
+
const n = m.useRef({});
|
|
26
|
+
return m.useEffect(() => {
|
|
27
27
|
n.current = e;
|
|
28
28
|
}), n.current;
|
|
29
29
|
};
|
|
30
|
-
function
|
|
30
|
+
function Eo(e) {
|
|
31
31
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
32
32
|
}
|
|
33
33
|
function rt(e = {}) {
|
|
@@ -36,23 +36,23 @@ function rt(e = {}) {
|
|
|
36
36
|
ignoreCase: a = !0,
|
|
37
37
|
limit: i,
|
|
38
38
|
matchFrom: g = "any",
|
|
39
|
-
stringify:
|
|
39
|
+
stringify: x,
|
|
40
40
|
trim: y = !1
|
|
41
41
|
} = e;
|
|
42
|
-
return (
|
|
43
|
-
inputValue:
|
|
44
|
-
getOptionLabel:
|
|
42
|
+
return (v, {
|
|
43
|
+
inputValue: P,
|
|
44
|
+
getOptionLabel: b
|
|
45
45
|
}) => {
|
|
46
|
-
let
|
|
47
|
-
a && (
|
|
48
|
-
const L =
|
|
49
|
-
let A = (
|
|
50
|
-
return a && (A = A.toLowerCase()), n && (A =
|
|
51
|
-
}) :
|
|
46
|
+
let S = y ? P.trim() : P;
|
|
47
|
+
a && (S = S.toLowerCase()), n && (S = Eo(S));
|
|
48
|
+
const L = S ? v.filter((X) => {
|
|
49
|
+
let A = (x || b)(X);
|
|
50
|
+
return a && (A = A.toLowerCase()), n && (A = Eo(A)), g === "start" ? A.startsWith(S) : A.includes(S);
|
|
51
|
+
}) : v;
|
|
52
52
|
return typeof i == "number" ? L.slice(0, i) : L;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
const at = rt(),
|
|
55
|
+
const at = rt(), zo = 5, lt = (e) => {
|
|
56
56
|
var n;
|
|
57
57
|
return e.current !== null && ((n = e.current.parentElement) == null ? void 0 : n.contains(document.activeElement));
|
|
58
58
|
}, it = [];
|
|
@@ -64,18 +64,18 @@ function st(e) {
|
|
|
64
64
|
unstable_classNamePrefix: a = "Mui",
|
|
65
65
|
autoComplete: i = !1,
|
|
66
66
|
autoHighlight: g = !1,
|
|
67
|
-
autoSelect:
|
|
67
|
+
autoSelect: x = !1,
|
|
68
68
|
blurOnSelect: y = !1,
|
|
69
|
-
clearOnBlur:
|
|
70
|
-
clearOnEscape:
|
|
71
|
-
componentName:
|
|
72
|
-
defaultValue:
|
|
69
|
+
clearOnBlur: v = !e.freeSolo,
|
|
70
|
+
clearOnEscape: P = !1,
|
|
71
|
+
componentName: b = "useAutocomplete",
|
|
72
|
+
defaultValue: S = e.multiple ? it : null,
|
|
73
73
|
disableClearable: L = !1,
|
|
74
74
|
disableCloseOnSelect: X = !1,
|
|
75
75
|
disabled: A,
|
|
76
76
|
disabledItemsFocusable: E = !1,
|
|
77
77
|
disableListWrap: ue = !1,
|
|
78
|
-
filterOptions:
|
|
78
|
+
filterOptions: Ne = at,
|
|
79
79
|
filterSelectedOptions: me = !1,
|
|
80
80
|
freeSolo: le = !1,
|
|
81
81
|
getOptionDisabled: H,
|
|
@@ -87,7 +87,7 @@ function st(e) {
|
|
|
87
87
|
includeInputInList: de = !1,
|
|
88
88
|
inputValue: ye,
|
|
89
89
|
isOptionEqualToValue: W = (r, t) => r === t,
|
|
90
|
-
multiple:
|
|
90
|
+
multiple: $ = !1,
|
|
91
91
|
onChange: fe,
|
|
92
92
|
onClose: _,
|
|
93
93
|
onHighlightChange: ve,
|
|
@@ -100,77 +100,77 @@ function st(e) {
|
|
|
100
100
|
selectOnFocus: Fe = !e.freeSolo,
|
|
101
101
|
value: go
|
|
102
102
|
} = e, U = Zo(Ve);
|
|
103
|
-
let
|
|
104
|
-
|
|
103
|
+
let M = Ee;
|
|
104
|
+
M = (r) => {
|
|
105
105
|
const t = Ee(r);
|
|
106
106
|
if (typeof t != "string") {
|
|
107
107
|
if (process.env.NODE_ENV !== "production") {
|
|
108
108
|
const l = t === void 0 ? "undefined" : `${typeof t} (${t})`;
|
|
109
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${
|
|
109
|
+
console.error(`MUI: The \`getOptionLabel\` method of ${b} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
|
|
110
110
|
}
|
|
111
111
|
return String(t);
|
|
112
112
|
}
|
|
113
113
|
return t;
|
|
114
114
|
};
|
|
115
|
-
const je =
|
|
115
|
+
const je = m.useRef(!1), Be = m.useRef(!0), T = m.useRef(null), K = m.useRef(null), [Ue, Ro] = m.useState(null), [G, Xe] = m.useState(-1), bo = g ? 0 : -1, z = m.useRef(bo), [s, Lo] = Po({
|
|
116
116
|
controlled: go,
|
|
117
|
-
default:
|
|
118
|
-
name:
|
|
119
|
-
}), [
|
|
117
|
+
default: S,
|
|
118
|
+
name: b
|
|
119
|
+
}), [O, Ce] = Po({
|
|
120
120
|
controlled: ye,
|
|
121
121
|
default: "",
|
|
122
|
-
name:
|
|
122
|
+
name: b,
|
|
123
123
|
state: "inputValue"
|
|
124
|
-
}), [Ie, He] =
|
|
125
|
-
if (!(
|
|
124
|
+
}), [Ie, He] = m.useState(!1), Oe = m.useCallback((r, t, l) => {
|
|
125
|
+
if (!($ ? s.length < t.length : t !== null) && !v)
|
|
126
126
|
return;
|
|
127
127
|
let c;
|
|
128
|
-
if (
|
|
128
|
+
if ($)
|
|
129
129
|
c = "";
|
|
130
130
|
else if (t == null)
|
|
131
131
|
c = "";
|
|
132
132
|
else {
|
|
133
|
-
const
|
|
134
|
-
c = typeof
|
|
133
|
+
const I = M(t);
|
|
134
|
+
c = typeof I == "string" ? I : "";
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
}, [
|
|
136
|
+
O !== c && (Ce(c), q && q(r, c, l));
|
|
137
|
+
}, [M, O, $, q, Ce, v, s]), [se, Qe] = Po({
|
|
138
138
|
controlled: xe,
|
|
139
139
|
default: !1,
|
|
140
|
-
name:
|
|
140
|
+
name: b,
|
|
141
141
|
state: "open"
|
|
142
|
-
}), [Ze, mo] =
|
|
143
|
-
ko.filter((r) => !(me && (
|
|
142
|
+
}), [Ze, mo] = m.useState(!0), Pe = !$ && s != null && O === M(s), j = se && !$e, w = j ? Ne(
|
|
143
|
+
ko.filter((r) => !(me && ($ ? s : [s]).some((t) => t !== null && W(r, t)))),
|
|
144
144
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
145
145
|
// i.e. the filter predicate always returns true
|
|
146
146
|
{
|
|
147
|
-
inputValue: Pe && Ze ? "" :
|
|
148
|
-
getOptionLabel:
|
|
147
|
+
inputValue: Pe && Ze ? "" : O,
|
|
148
|
+
getOptionLabel: M
|
|
149
149
|
}
|
|
150
150
|
) : [], Q = nt({
|
|
151
|
-
filteredOptions:
|
|
151
|
+
filteredOptions: w,
|
|
152
152
|
value: s,
|
|
153
|
-
inputValue:
|
|
153
|
+
inputValue: O
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
m.useEffect(() => {
|
|
156
156
|
const r = s !== Q.value;
|
|
157
157
|
Ie && !r || le && !r || Oe(null, s, "reset");
|
|
158
158
|
}, [s, Oe, Ie, Q.value, le]);
|
|
159
|
-
const We = se &&
|
|
160
|
-
r === -1 ?
|
|
159
|
+
const We = se && w.length > 0 && !$e, Se = io((r) => {
|
|
160
|
+
r === -1 ? T.current.focus() : Ue.querySelector(`[data-tag-index="${r}"]`).focus();
|
|
161
161
|
});
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}, [s,
|
|
162
|
+
m.useEffect(() => {
|
|
163
|
+
$ && G > s.length - 1 && (Xe(-1), Se(-1));
|
|
164
|
+
}, [s, $, G, Se]);
|
|
165
165
|
function eo(r, t) {
|
|
166
|
-
if (!K.current || r < 0 || r >=
|
|
166
|
+
if (!K.current || r < 0 || r >= w.length)
|
|
167
167
|
return -1;
|
|
168
168
|
let l = r;
|
|
169
169
|
for (; ; ) {
|
|
170
170
|
const p = K.current.querySelector(`[data-option-index="${l}"]`), c = E ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
|
|
171
171
|
if (p && p.hasAttribute("tabindex") && !c)
|
|
172
172
|
return l;
|
|
173
|
-
if (t === "next" ? l = (l + 1) %
|
|
173
|
+
if (t === "next" ? l = (l + 1) % w.length : l = (l - 1 + w.length) % w.length, l === r)
|
|
174
174
|
return -1;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -179,7 +179,7 @@ function st(e) {
|
|
|
179
179
|
index: t,
|
|
180
180
|
reason: l = "auto"
|
|
181
181
|
}) => {
|
|
182
|
-
if (z.current = t, t === -1 ?
|
|
182
|
+
if (z.current = t, t === -1 ? T.current.removeAttribute("aria-activedescendant") : T.current.setAttribute("aria-activedescendant", `${U}-option-${t}`), ve && ve(r, t === -1 ? null : w[t], l), !K.current)
|
|
183
183
|
return;
|
|
184
184
|
const p = K.current.querySelector(`[role="option"].${a}-focused`);
|
|
185
185
|
p && (p.classList.remove(`${a}-focused`), p.classList.remove(`${a}-focusVisible`));
|
|
@@ -190,10 +190,10 @@ function st(e) {
|
|
|
190
190
|
c.scrollTop = 0;
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
195
|
-
const
|
|
196
|
-
Le > B ? c.scrollTop = Le - c.clientHeight :
|
|
193
|
+
const I = K.current.querySelector(`[data-option-index="${t}"]`);
|
|
194
|
+
if (I && (I.classList.add(`${a}-focused`), l === "keyboard" && I.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
|
|
195
|
+
const C = I, B = c.clientHeight + c.scrollTop, Le = C.offsetTop + C.offsetHeight;
|
|
196
|
+
Le > B ? c.scrollTop = Le - c.clientHeight : C.offsetTop - C.offsetHeight * (oe ? 1.3 : 0) < c.scrollTop && (c.scrollTop = C.offsetTop - C.offsetHeight * (oe ? 1.3 : 0));
|
|
197
197
|
}
|
|
198
198
|
}), Y = io(({
|
|
199
199
|
event: r,
|
|
@@ -203,40 +203,40 @@ function st(e) {
|
|
|
203
203
|
}) => {
|
|
204
204
|
if (!j)
|
|
205
205
|
return;
|
|
206
|
-
const
|
|
207
|
-
const
|
|
206
|
+
const I = eo((() => {
|
|
207
|
+
const C = w.length - 1;
|
|
208
208
|
if (t === "reset")
|
|
209
209
|
return bo;
|
|
210
210
|
if (t === "start")
|
|
211
211
|
return 0;
|
|
212
212
|
if (t === "end")
|
|
213
|
-
return
|
|
213
|
+
return C;
|
|
214
214
|
const B = z.current + t;
|
|
215
|
-
return B < 0 ? B === -1 && de ? -1 : ue && z.current !== -1 || Math.abs(t) > 1 ? 0 :
|
|
215
|
+
return B < 0 ? B === -1 && de ? -1 : ue && z.current !== -1 || Math.abs(t) > 1 ? 0 : C : B > C ? B === C + 1 && de ? -1 : ue || Math.abs(t) > 1 ? C : 0 : B;
|
|
216
216
|
})(), l);
|
|
217
217
|
if (te({
|
|
218
|
-
index:
|
|
218
|
+
index: I,
|
|
219
219
|
reason: p,
|
|
220
220
|
event: r
|
|
221
221
|
}), i && t !== "reset")
|
|
222
|
-
if (
|
|
223
|
-
|
|
222
|
+
if (I === -1)
|
|
223
|
+
T.current.value = O;
|
|
224
224
|
else {
|
|
225
|
-
const
|
|
226
|
-
|
|
225
|
+
const C = M(w[I]);
|
|
226
|
+
T.current.value = C, C.toLowerCase().indexOf(O.toLowerCase()) === 0 && O.length > 0 && T.current.setSelectionRange(O.length, C.length);
|
|
227
227
|
}
|
|
228
228
|
}), ho = () => {
|
|
229
229
|
const r = (t, l) => {
|
|
230
|
-
const p = t ?
|
|
230
|
+
const p = t ? M(t) : "", c = l ? M(l) : "";
|
|
231
231
|
return p === c;
|
|
232
232
|
};
|
|
233
|
-
if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !==
|
|
233
|
+
if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== w.length && Q.inputValue === O && ($ ? s.length === Q.value.length && Q.value.every((t, l) => M(s[l]) === M(t)) : r(Q.value, s))) {
|
|
234
234
|
const t = Q.filteredOptions[z.current];
|
|
235
235
|
if (t)
|
|
236
|
-
return
|
|
236
|
+
return w.findIndex((l) => M(l) === M(t));
|
|
237
237
|
}
|
|
238
238
|
return -1;
|
|
239
|
-
}, Ke =
|
|
239
|
+
}, Ke = m.useCallback(() => {
|
|
240
240
|
if (!j)
|
|
241
241
|
return;
|
|
242
242
|
const r = ho();
|
|
@@ -244,8 +244,8 @@ function st(e) {
|
|
|
244
244
|
z.current = r;
|
|
245
245
|
return;
|
|
246
246
|
}
|
|
247
|
-
const t =
|
|
248
|
-
if (
|
|
247
|
+
const t = $ ? s[0] : s;
|
|
248
|
+
if (w.length === 0 || t == null) {
|
|
249
249
|
Y({
|
|
250
250
|
diff: "reset"
|
|
251
251
|
});
|
|
@@ -253,10 +253,10 @@ function st(e) {
|
|
|
253
253
|
}
|
|
254
254
|
if (K.current) {
|
|
255
255
|
if (t != null) {
|
|
256
|
-
const l =
|
|
257
|
-
if (
|
|
256
|
+
const l = w[z.current];
|
|
257
|
+
if ($ && l && s.findIndex((c) => W(l, c)) !== -1)
|
|
258
258
|
return;
|
|
259
|
-
const p =
|
|
259
|
+
const p = w.findIndex((c) => W(c, t));
|
|
260
260
|
p === -1 ? Y({
|
|
261
261
|
diff: "reset"
|
|
262
262
|
}) : te({
|
|
@@ -264,9 +264,9 @@ function st(e) {
|
|
|
264
264
|
});
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
if (z.current >=
|
|
267
|
+
if (z.current >= w.length - 1) {
|
|
268
268
|
te({
|
|
269
|
-
index:
|
|
269
|
+
index: w.length - 1
|
|
270
270
|
});
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
@@ -276,24 +276,24 @@ function st(e) {
|
|
|
276
276
|
}
|
|
277
277
|
}, [
|
|
278
278
|
// Only sync the highlighted index when the option switch between empty and not
|
|
279
|
-
|
|
279
|
+
w.length,
|
|
280
280
|
// Don't sync the highlighted index with the value when multiple
|
|
281
281
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
282
|
-
|
|
282
|
+
$ ? !1 : s,
|
|
283
283
|
me,
|
|
284
284
|
Y,
|
|
285
285
|
te,
|
|
286
286
|
j,
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
O,
|
|
288
|
+
$
|
|
289
289
|
]), yo = io((r) => {
|
|
290
290
|
et(K, r), r && Ke();
|
|
291
291
|
});
|
|
292
|
-
process.env.NODE_ENV !== "production" &&
|
|
293
|
-
(!
|
|
294
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
292
|
+
process.env.NODE_ENV !== "production" && m.useEffect(() => {
|
|
293
|
+
(!T.current || T.current.nodeName !== "INPUT") && (T.current && T.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${b} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
294
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${T.current} while an HTMLInputElement was expected.`, `Instead, ${b} expects an input element.`, "", b === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
295
295
|
`)));
|
|
296
|
-
}, [
|
|
296
|
+
}, [b]), m.useEffect(() => {
|
|
297
297
|
Ke();
|
|
298
298
|
}, [Ke]);
|
|
299
299
|
const ne = (r) => {
|
|
@@ -301,26 +301,26 @@ function st(e) {
|
|
|
301
301
|
}, re = (r, t) => {
|
|
302
302
|
se && (Qe(!1), _ && _(r, t));
|
|
303
303
|
}, pe = (r, t, l, p) => {
|
|
304
|
-
if (
|
|
305
|
-
if (s.length === t.length && s.every((c,
|
|
304
|
+
if ($) {
|
|
305
|
+
if (s.length === t.length && s.every((c, I) => c === t[I]))
|
|
306
306
|
return;
|
|
307
307
|
} else if (s === t)
|
|
308
308
|
return;
|
|
309
309
|
fe && fe(r, t, l, p), Lo(t);
|
|
310
|
-
}, we =
|
|
311
|
-
let c = l,
|
|
312
|
-
if (
|
|
313
|
-
if (
|
|
314
|
-
const B =
|
|
315
|
-
B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${
|
|
310
|
+
}, we = m.useRef(!1), ge = (r, t, l = "selectOption", p = "options") => {
|
|
311
|
+
let c = l, I = t;
|
|
312
|
+
if ($) {
|
|
313
|
+
if (I = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
314
|
+
const B = I.filter((Le) => W(t, Le));
|
|
315
|
+
B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${b} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${B.length} matches.`].join(`
|
|
316
316
|
`));
|
|
317
317
|
}
|
|
318
|
-
const
|
|
319
|
-
|
|
318
|
+
const C = I.findIndex((B) => W(t, B));
|
|
319
|
+
C === -1 ? I.push(t) : p !== "freeSolo" && (I.splice(C, 1), c = "removeOption");
|
|
320
320
|
}
|
|
321
|
-
Oe(r,
|
|
321
|
+
Oe(r, I, c), pe(r, I, c, {
|
|
322
322
|
option: t
|
|
323
|
-
}), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (y === !0 || y === "touch" && we.current || y === "mouse" && !we.current) &&
|
|
323
|
+
}), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (y === !0 || y === "touch" && we.current || y === "mouse" && !we.current) && T.current.blur();
|
|
324
324
|
};
|
|
325
325
|
function Te(r, t) {
|
|
326
326
|
if (r === -1)
|
|
@@ -337,13 +337,13 @@ function st(e) {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
const Ge = (r, t) => {
|
|
340
|
-
if (
|
|
340
|
+
if (!$)
|
|
341
341
|
return;
|
|
342
|
-
|
|
342
|
+
O === "" && re(r, "toggleInput");
|
|
343
343
|
let l = G;
|
|
344
|
-
G === -1 ?
|
|
344
|
+
G === -1 ? O === "" && t === "previous" && (l = s.length - 1) : (l += t === "next" ? 1 : -1, l < 0 && (l = 0), l === s.length && (l = -1)), l = Te(l, t), Xe(l), Se(l);
|
|
345
345
|
}, oo = (r) => {
|
|
346
|
-
je.current = !0, Ce(""), q && q(r, "", "clear"), pe(r,
|
|
346
|
+
je.current = !0, Ce(""), q && q(r, "", "clear"), pe(r, $ ? [] : null, "clear");
|
|
347
347
|
}, ke = (r) => (t) => {
|
|
348
348
|
if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1), Se(-1)), t.which !== 229))
|
|
349
349
|
switch (t.key) {
|
|
@@ -365,7 +365,7 @@ function st(e) {
|
|
|
365
365
|
break;
|
|
366
366
|
case "PageUp":
|
|
367
367
|
t.preventDefault(), Y({
|
|
368
|
-
diff: -
|
|
368
|
+
diff: -zo,
|
|
369
369
|
direction: "previous",
|
|
370
370
|
reason: "keyboard",
|
|
371
371
|
event: t
|
|
@@ -373,7 +373,7 @@ function st(e) {
|
|
|
373
373
|
break;
|
|
374
374
|
case "PageDown":
|
|
375
375
|
t.preventDefault(), Y({
|
|
376
|
-
diff:
|
|
376
|
+
diff: zo,
|
|
377
377
|
direction: "next",
|
|
378
378
|
reason: "keyboard",
|
|
379
379
|
event: t
|
|
@@ -403,17 +403,17 @@ function st(e) {
|
|
|
403
403
|
break;
|
|
404
404
|
case "Enter":
|
|
405
405
|
if (z.current !== -1 && j) {
|
|
406
|
-
const l =
|
|
406
|
+
const l = w[z.current], p = H ? H(l) : !1;
|
|
407
407
|
if (t.preventDefault(), p)
|
|
408
408
|
return;
|
|
409
|
-
ge(t, l, "selectOption"), i &&
|
|
410
|
-
} else le &&
|
|
409
|
+
ge(t, l, "selectOption"), i && T.current.setSelectionRange(T.current.value.length, T.current.value.length);
|
|
410
|
+
} else le && O !== "" && Pe === !1 && ($ && t.preventDefault(), ge(t, O, "createOption", "freeSolo"));
|
|
411
411
|
break;
|
|
412
412
|
case "Escape":
|
|
413
|
-
j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) :
|
|
413
|
+
j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : P && (O !== "" || $ && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
|
|
414
414
|
break;
|
|
415
415
|
case "Backspace":
|
|
416
|
-
if (
|
|
416
|
+
if ($ && !$e && O === "" && s.length > 0) {
|
|
417
417
|
const l = G === -1 ? s.length - 1 : G, p = s.slice();
|
|
418
418
|
p.splice(l, 1), pe(t, p, "removeOption", {
|
|
419
419
|
option: s[l]
|
|
@@ -421,7 +421,7 @@ function st(e) {
|
|
|
421
421
|
}
|
|
422
422
|
break;
|
|
423
423
|
case "Delete":
|
|
424
|
-
if (
|
|
424
|
+
if ($ && !$e && O === "" && s.length > 0 && G !== -1) {
|
|
425
425
|
const l = G, p = s.slice();
|
|
426
426
|
p.splice(l, 1), pe(t, p, "removeOption", {
|
|
427
427
|
option: s[l]
|
|
@@ -433,13 +433,13 @@ function st(e) {
|
|
|
433
433
|
He(!0), D && !je.current && ne(r);
|
|
434
434
|
}, to = (r) => {
|
|
435
435
|
if (n(K)) {
|
|
436
|
-
|
|
436
|
+
T.current.focus();
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
|
-
He(!1), Be.current = !0, je.current = !1,
|
|
439
|
+
He(!1), Be.current = !0, je.current = !1, x && z.current !== -1 && j ? ge(r, w[z.current], "blur") : x && le && O !== "" ? ge(r, O, "blur", "freeSolo") : v && Oe(r, s, "blur"), re(r, "blur");
|
|
440
440
|
}, Re = (r) => {
|
|
441
441
|
const t = r.target.value;
|
|
442
|
-
|
|
442
|
+
O !== t && (Ce(t), mo(!1), q && q(r, t, "input")), t === "" ? !L && !$ && pe(r, null, "clear") : ne(r);
|
|
443
443
|
}, _e = (r) => {
|
|
444
444
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
445
445
|
z.current !== t && te({
|
|
@@ -455,7 +455,7 @@ function st(e) {
|
|
|
455
455
|
}), we.current = !0;
|
|
456
456
|
}, xo = (r) => {
|
|
457
457
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
458
|
-
ge(r,
|
|
458
|
+
ge(r, w[t], "selectOption"), we.current = !1;
|
|
459
459
|
}, $o = (r) => (t) => {
|
|
460
460
|
const l = s.slice();
|
|
461
461
|
l.splice(r, 1), pe(t, l, "removeOption", {
|
|
@@ -466,22 +466,22 @@ function st(e) {
|
|
|
466
466
|
}, Ao = (r) => {
|
|
467
467
|
r.currentTarget.contains(r.target) && r.target.getAttribute("id") !== U && r.preventDefault();
|
|
468
468
|
}, Ye = (r) => {
|
|
469
|
-
r.currentTarget.contains(r.target) && (
|
|
470
|
-
},
|
|
471
|
-
!A && (
|
|
469
|
+
r.currentTarget.contains(r.target) && (T.current.focus(), Fe && Be.current && T.current.selectionEnd - T.current.selectionStart === 0 && T.current.select(), Be.current = !1);
|
|
470
|
+
}, N = (r) => {
|
|
471
|
+
!A && (O === "" || !se) && (no(r), r.stopPropagation());
|
|
472
472
|
};
|
|
473
|
-
let R = le &&
|
|
474
|
-
R = R || (
|
|
475
|
-
let ae =
|
|
473
|
+
let R = le && O.length > 0;
|
|
474
|
+
R = R || ($ ? s.length > 0 : s !== null);
|
|
475
|
+
let ae = w;
|
|
476
476
|
if (oe) {
|
|
477
477
|
const r = /* @__PURE__ */ new Map();
|
|
478
478
|
let t = !1;
|
|
479
|
-
ae =
|
|
480
|
-
const
|
|
481
|
-
return l.length > 0 && l[l.length - 1].group ===
|
|
479
|
+
ae = w.reduce((l, p, c) => {
|
|
480
|
+
const I = oe(p);
|
|
481
|
+
return l.length > 0 && l[l.length - 1].group === I ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get(I) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${b} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set(I, !0)), l.push({
|
|
482
482
|
key: c,
|
|
483
483
|
index: c,
|
|
484
|
-
group:
|
|
484
|
+
group: I,
|
|
485
485
|
options: [p]
|
|
486
486
|
})), l;
|
|
487
487
|
}, []);
|
|
@@ -500,11 +500,11 @@ function st(e) {
|
|
|
500
500
|
}),
|
|
501
501
|
getInputProps: () => ({
|
|
502
502
|
id: U,
|
|
503
|
-
value:
|
|
503
|
+
value: O,
|
|
504
504
|
onBlur: to,
|
|
505
505
|
onFocus: vo,
|
|
506
506
|
onChange: Re,
|
|
507
|
-
onMouseDown:
|
|
507
|
+
onMouseDown: N,
|
|
508
508
|
// if open then this is handled imperatively so don't let react override
|
|
509
509
|
// only have an opinion about this when closed
|
|
510
510
|
"aria-activedescendant": j ? "" : null,
|
|
@@ -514,7 +514,7 @@ function st(e) {
|
|
|
514
514
|
// Disable browser's suggestion that might overlap with the popup.
|
|
515
515
|
// Handle autocomplete but not autofill.
|
|
516
516
|
autoComplete: "off",
|
|
517
|
-
ref:
|
|
517
|
+
ref: T,
|
|
518
518
|
autoCapitalize: "none",
|
|
519
519
|
spellCheck: "false",
|
|
520
520
|
role: "combobox",
|
|
@@ -554,9 +554,9 @@ function st(e) {
|
|
|
554
554
|
index: r,
|
|
555
555
|
option: t
|
|
556
556
|
}) => {
|
|
557
|
-
const l = (
|
|
557
|
+
const l = ($ ? s : [s]).some((c) => c != null && W(t, c)), p = H ? H(t) : !1;
|
|
558
558
|
return {
|
|
559
|
-
key: (he == null ? void 0 : he(t)) ??
|
|
559
|
+
key: (he == null ? void 0 : he(t)) ?? M(t),
|
|
560
560
|
tabIndex: -1,
|
|
561
561
|
role: "option",
|
|
562
562
|
id: `${U}-option-${r}`,
|
|
@@ -569,7 +569,7 @@ function st(e) {
|
|
|
569
569
|
};
|
|
570
570
|
},
|
|
571
571
|
id: U,
|
|
572
|
-
inputValue:
|
|
572
|
+
inputValue: O,
|
|
573
573
|
value: s,
|
|
574
574
|
dirty: R,
|
|
575
575
|
expanded: j && Ue,
|
|
@@ -591,9 +591,9 @@ const ct = (e) => {
|
|
|
591
591
|
color: a,
|
|
592
592
|
disableGutters: i,
|
|
593
593
|
inset: g,
|
|
594
|
-
disableSticky:
|
|
594
|
+
disableSticky: x
|
|
595
595
|
} = e, y = {
|
|
596
|
-
root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !
|
|
596
|
+
root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !x && "sticky"]
|
|
597
597
|
};
|
|
598
598
|
return fo(y, pt, n);
|
|
599
599
|
}, ut = F("li", {
|
|
@@ -655,32 +655,32 @@ const ct = (e) => {
|
|
|
655
655
|
backgroundColor: (e.vars || e).palette.background.paper
|
|
656
656
|
}
|
|
657
657
|
}]
|
|
658
|
-
}))), so = /* @__PURE__ */
|
|
658
|
+
}))), so = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
659
659
|
const i = uo({
|
|
660
660
|
props: n,
|
|
661
661
|
name: "MuiListSubheader"
|
|
662
662
|
}), {
|
|
663
663
|
className: g,
|
|
664
|
-
color:
|
|
664
|
+
color: x = "default",
|
|
665
665
|
component: y = "li",
|
|
666
|
-
disableGutters:
|
|
667
|
-
disableSticky:
|
|
668
|
-
inset:
|
|
669
|
-
...
|
|
666
|
+
disableGutters: v = !1,
|
|
667
|
+
disableSticky: P = !1,
|
|
668
|
+
inset: b = !1,
|
|
669
|
+
...S
|
|
670
670
|
} = i, L = {
|
|
671
671
|
...i,
|
|
672
|
-
color:
|
|
672
|
+
color: x,
|
|
673
673
|
component: y,
|
|
674
|
-
disableGutters:
|
|
675
|
-
disableSticky:
|
|
676
|
-
inset:
|
|
674
|
+
disableGutters: v,
|
|
675
|
+
disableSticky: P,
|
|
676
|
+
inset: b
|
|
677
677
|
}, X = ct(L);
|
|
678
|
-
return /* @__PURE__ */
|
|
678
|
+
return /* @__PURE__ */ k(ut, {
|
|
679
679
|
as: y,
|
|
680
680
|
className: J(X.root, g),
|
|
681
681
|
ref: a,
|
|
682
682
|
ownerState: L,
|
|
683
|
-
...
|
|
683
|
+
...S
|
|
684
684
|
});
|
|
685
685
|
});
|
|
686
686
|
so && (so.muiSkipListHighlight = !0);
|
|
@@ -740,9 +740,9 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
740
740
|
disabled: a,
|
|
741
741
|
color: i,
|
|
742
742
|
edge: g,
|
|
743
|
-
size:
|
|
743
|
+
size: x
|
|
744
744
|
} = e, y = {
|
|
745
|
-
root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(
|
|
745
|
+
root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(x)}`]
|
|
746
746
|
};
|
|
747
747
|
return fo(y, dt, n);
|
|
748
748
|
}, bt = F(So, {
|
|
@@ -862,39 +862,39 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
862
862
|
backgroundColor: "transparent",
|
|
863
863
|
color: (e.vars || e).palette.action.disabled
|
|
864
864
|
}
|
|
865
|
-
}))), To = /* @__PURE__ */
|
|
865
|
+
}))), To = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
866
866
|
const i = uo({
|
|
867
867
|
props: n,
|
|
868
868
|
name: "MuiIconButton"
|
|
869
869
|
}), {
|
|
870
870
|
edge: g = !1,
|
|
871
|
-
children:
|
|
871
|
+
children: x,
|
|
872
872
|
className: y,
|
|
873
|
-
color:
|
|
874
|
-
disabled:
|
|
875
|
-
disableFocusRipple:
|
|
876
|
-
disableRipple:
|
|
873
|
+
color: v = "default",
|
|
874
|
+
disabled: P = !1,
|
|
875
|
+
disableFocusRipple: b = !1,
|
|
876
|
+
disableRipple: S = !1,
|
|
877
877
|
size: L = "medium",
|
|
878
878
|
...X
|
|
879
879
|
} = i, A = {
|
|
880
880
|
...i,
|
|
881
881
|
edge: g,
|
|
882
|
-
color:
|
|
883
|
-
disabled:
|
|
884
|
-
disableFocusRipple:
|
|
885
|
-
disableRipple:
|
|
882
|
+
color: v,
|
|
883
|
+
disabled: P,
|
|
884
|
+
disableFocusRipple: b,
|
|
885
|
+
disableRipple: S,
|
|
886
886
|
size: L
|
|
887
887
|
}, E = gt(A);
|
|
888
|
-
return /* @__PURE__ */
|
|
888
|
+
return /* @__PURE__ */ k(bt, {
|
|
889
889
|
className: J(E.root, y),
|
|
890
890
|
centerRipple: !0,
|
|
891
|
-
focusRipple: !
|
|
892
|
-
disabled:
|
|
893
|
-
disableRipple:
|
|
891
|
+
focusRipple: !b,
|
|
892
|
+
disabled: P,
|
|
893
|
+
disableRipple: S,
|
|
894
894
|
ref: a,
|
|
895
895
|
...X,
|
|
896
896
|
ownerState: A,
|
|
897
|
-
children:
|
|
897
|
+
children: x
|
|
898
898
|
});
|
|
899
899
|
});
|
|
900
900
|
process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
@@ -905,7 +905,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
905
905
|
/**
|
|
906
906
|
* The icon to display.
|
|
907
907
|
*/
|
|
908
|
-
children: wo(o.node, (e) =>
|
|
908
|
+
children: wo(o.node, (e) => m.Children.toArray(e.children).some((a) => /* @__PURE__ */ m.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
909
909
|
`)) : null),
|
|
910
910
|
/**
|
|
911
911
|
* Override or extend the styles applied to the component.
|
|
@@ -959,7 +959,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
959
959
|
*/
|
|
960
960
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
961
961
|
});
|
|
962
|
-
const mt =
|
|
962
|
+
const mt = Ho(/* @__PURE__ */ k("path", {
|
|
963
963
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
964
964
|
}), "Cancel");
|
|
965
965
|
function ht(e) {
|
|
@@ -971,18 +971,18 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
971
971
|
disabled: a,
|
|
972
972
|
size: i,
|
|
973
973
|
color: g,
|
|
974
|
-
iconColor:
|
|
974
|
+
iconColor: x,
|
|
975
975
|
onDelete: y,
|
|
976
|
-
clickable:
|
|
977
|
-
variant:
|
|
978
|
-
} = e,
|
|
979
|
-
root: ["root",
|
|
976
|
+
clickable: v,
|
|
977
|
+
variant: P
|
|
978
|
+
} = e, b = {
|
|
979
|
+
root: ["root", P, a && "disabled", `size${d(i)}`, `color${d(g)}`, v && "clickable", v && `clickableColor${d(g)}`, y && "deletable", y && `deletableColor${d(g)}`, `${P}${d(g)}`],
|
|
980
980
|
label: ["label", `label${d(i)}`],
|
|
981
981
|
avatar: ["avatar", `avatar${d(i)}`, `avatarColor${d(g)}`],
|
|
982
|
-
icon: ["icon", `icon${d(i)}`, `iconColor${d(
|
|
983
|
-
deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(
|
|
982
|
+
icon: ["icon", `icon${d(i)}`, `iconColor${d(x)}`],
|
|
983
|
+
deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(P)}Color${d(g)}`]
|
|
984
984
|
};
|
|
985
|
-
return fo(
|
|
985
|
+
return fo(b, ht, n);
|
|
986
986
|
}, vt = F("div", {
|
|
987
987
|
name: "MuiChip",
|
|
988
988
|
slot: "Root",
|
|
@@ -992,32 +992,32 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
992
992
|
} = e, {
|
|
993
993
|
color: i,
|
|
994
994
|
iconColor: g,
|
|
995
|
-
clickable:
|
|
995
|
+
clickable: x,
|
|
996
996
|
onDelete: y,
|
|
997
|
-
size:
|
|
998
|
-
variant:
|
|
997
|
+
size: v,
|
|
998
|
+
variant: P
|
|
999
999
|
} = a;
|
|
1000
1000
|
return [{
|
|
1001
1001
|
[`& .${f.avatar}`]: n.avatar
|
|
1002
1002
|
}, {
|
|
1003
|
-
[`& .${f.avatar}`]: n[`avatar${d(
|
|
1003
|
+
[`& .${f.avatar}`]: n[`avatar${d(v)}`]
|
|
1004
1004
|
}, {
|
|
1005
1005
|
[`& .${f.avatar}`]: n[`avatarColor${d(i)}`]
|
|
1006
1006
|
}, {
|
|
1007
1007
|
[`& .${f.icon}`]: n.icon
|
|
1008
1008
|
}, {
|
|
1009
|
-
[`& .${f.icon}`]: n[`icon${d(
|
|
1009
|
+
[`& .${f.icon}`]: n[`icon${d(v)}`]
|
|
1010
1010
|
}, {
|
|
1011
1011
|
[`& .${f.icon}`]: n[`iconColor${d(g)}`]
|
|
1012
1012
|
}, {
|
|
1013
1013
|
[`& .${f.deleteIcon}`]: n.deleteIcon
|
|
1014
1014
|
}, {
|
|
1015
|
-
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(
|
|
1015
|
+
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(v)}`]
|
|
1016
1016
|
}, {
|
|
1017
1017
|
[`& .${f.deleteIcon}`]: n[`deleteIconColor${d(i)}`]
|
|
1018
1018
|
}, {
|
|
1019
|
-
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(
|
|
1020
|
-
}, n.root, n[`size${d(
|
|
1019
|
+
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(P)}Color${d(i)}`]
|
|
1020
|
+
}, n.root, n[`size${d(v)}`], n[`color${d(i)}`], x && n.clickable, x && i !== "default" && n[`clickableColor${d(i)})`], y && n.deletable, y && i !== "default" && n[`deletableColor${d(i)}`], n[P], n[`${P}${d(i)}`]];
|
|
1021
1021
|
}
|
|
1022
1022
|
})(ee(({
|
|
1023
1023
|
theme: e
|
|
@@ -1279,91 +1279,91 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1279
1279
|
}
|
|
1280
1280
|
}]
|
|
1281
1281
|
});
|
|
1282
|
-
function
|
|
1282
|
+
function Vo(e) {
|
|
1283
1283
|
return e.key === "Backspace" || e.key === "Delete";
|
|
1284
1284
|
}
|
|
1285
|
-
const
|
|
1285
|
+
const Ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
1286
1286
|
const i = uo({
|
|
1287
1287
|
props: n,
|
|
1288
1288
|
name: "MuiChip"
|
|
1289
1289
|
}), {
|
|
1290
1290
|
avatar: g,
|
|
1291
|
-
className:
|
|
1291
|
+
className: x,
|
|
1292
1292
|
clickable: y,
|
|
1293
|
-
color:
|
|
1294
|
-
component:
|
|
1295
|
-
deleteIcon:
|
|
1296
|
-
disabled:
|
|
1293
|
+
color: v = "default",
|
|
1294
|
+
component: P,
|
|
1295
|
+
deleteIcon: b,
|
|
1296
|
+
disabled: S = !1,
|
|
1297
1297
|
icon: L,
|
|
1298
1298
|
label: X,
|
|
1299
1299
|
onClick: A,
|
|
1300
1300
|
onDelete: E,
|
|
1301
1301
|
onKeyDown: ue,
|
|
1302
|
-
onKeyUp:
|
|
1302
|
+
onKeyUp: Ne,
|
|
1303
1303
|
size: me = "medium",
|
|
1304
1304
|
variant: le = "filled",
|
|
1305
1305
|
tabIndex: H,
|
|
1306
1306
|
skipFocusWhenDisabled: he = !1,
|
|
1307
1307
|
// TODO v6: Rename to `focusableWhenDisabled`.
|
|
1308
1308
|
...Ee
|
|
1309
|
-
} = i, oe =
|
|
1309
|
+
} = i, oe = m.useRef(null), ze = ot(oe, a), Ve = (D) => {
|
|
1310
1310
|
D.stopPropagation(), E && E(D);
|
|
1311
1311
|
}, de = (D) => {
|
|
1312
|
-
D.currentTarget === D.target &&
|
|
1312
|
+
D.currentTarget === D.target && Vo(D) && D.preventDefault(), ue && ue(D);
|
|
1313
1313
|
}, ye = (D) => {
|
|
1314
|
-
D.currentTarget === D.target && E &&
|
|
1315
|
-
}, W = y !== !1 && A ? !0 : y,
|
|
1314
|
+
D.currentTarget === D.target && E && Vo(D) && E(D), Ne && Ne(D);
|
|
1315
|
+
}, W = y !== !1 && A ? !0 : y, $ = W || E ? So : P || "div", fe = {
|
|
1316
1316
|
...i,
|
|
1317
|
-
component:
|
|
1318
|
-
disabled:
|
|
1317
|
+
component: $,
|
|
1318
|
+
disabled: S,
|
|
1319
1319
|
size: me,
|
|
1320
|
-
color:
|
|
1321
|
-
iconColor: /* @__PURE__ */
|
|
1320
|
+
color: v,
|
|
1321
|
+
iconColor: /* @__PURE__ */ m.isValidElement(L) && L.props.color || v,
|
|
1322
1322
|
onDelete: !!E,
|
|
1323
1323
|
clickable: W,
|
|
1324
1324
|
variant: le
|
|
1325
|
-
}, _ = yt(fe), ve =
|
|
1326
|
-
component:
|
|
1325
|
+
}, _ = yt(fe), ve = $ === So ? {
|
|
1326
|
+
component: P || "div",
|
|
1327
1327
|
focusVisibleClassName: _.focusVisible,
|
|
1328
1328
|
...E && {
|
|
1329
1329
|
disableRipple: !0
|
|
1330
1330
|
}
|
|
1331
1331
|
} : {};
|
|
1332
1332
|
let q = null;
|
|
1333
|
-
E && (q =
|
|
1334
|
-
className: J(
|
|
1333
|
+
E && (q = b && /* @__PURE__ */ m.isValidElement(b) ? /* @__PURE__ */ m.cloneElement(b, {
|
|
1334
|
+
className: J(b.props.className, _.deleteIcon),
|
|
1335
1335
|
onClick: Ve
|
|
1336
|
-
}) : /* @__PURE__ */
|
|
1336
|
+
}) : /* @__PURE__ */ k(mt, {
|
|
1337
1337
|
className: J(_.deleteIcon),
|
|
1338
1338
|
onClick: Ve
|
|
1339
1339
|
}));
|
|
1340
1340
|
let ie = null;
|
|
1341
|
-
g && /* @__PURE__ */
|
|
1341
|
+
g && /* @__PURE__ */ m.isValidElement(g) && (ie = /* @__PURE__ */ m.cloneElement(g, {
|
|
1342
1342
|
className: J(_.avatar, g.props.className)
|
|
1343
1343
|
}));
|
|
1344
1344
|
let xe = null;
|
|
1345
|
-
return L && /* @__PURE__ */
|
|
1345
|
+
return L && /* @__PURE__ */ m.isValidElement(L) && (xe = /* @__PURE__ */ m.cloneElement(L, {
|
|
1346
1346
|
className: J(_.icon, L.props.className)
|
|
1347
|
-
})), process.env.NODE_ENV !== "production" && ie && xe && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */
|
|
1348
|
-
as:
|
|
1349
|
-
className: J(_.root,
|
|
1350
|
-
disabled: W &&
|
|
1347
|
+
})), process.env.NODE_ENV !== "production" && ie && xe && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ Me(vt, {
|
|
1348
|
+
as: $,
|
|
1349
|
+
className: J(_.root, x),
|
|
1350
|
+
disabled: W && S ? !0 : void 0,
|
|
1351
1351
|
onClick: A,
|
|
1352
1352
|
onKeyDown: de,
|
|
1353
1353
|
onKeyUp: ye,
|
|
1354
1354
|
ref: ze,
|
|
1355
|
-
tabIndex: he &&
|
|
1355
|
+
tabIndex: he && S ? -1 : H,
|
|
1356
1356
|
ownerState: fe,
|
|
1357
1357
|
...ve,
|
|
1358
1358
|
...Ee,
|
|
1359
|
-
children: [ie || xe, /* @__PURE__ */
|
|
1359
|
+
children: [ie || xe, /* @__PURE__ */ k(xt, {
|
|
1360
1360
|
className: J(_.label),
|
|
1361
1361
|
ownerState: fe,
|
|
1362
1362
|
children: X
|
|
1363
1363
|
}), q]
|
|
1364
1364
|
});
|
|
1365
1365
|
});
|
|
1366
|
-
process.env.NODE_ENV !== "production" && (
|
|
1366
|
+
process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
1367
1367
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1368
1368
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1369
1369
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1465,34 +1465,34 @@ process.env.NODE_ENV !== "production" && (Wo.propTypes = {
|
|
|
1465
1465
|
*/
|
|
1466
1466
|
variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
|
|
1467
1467
|
});
|
|
1468
|
-
const $t =
|
|
1468
|
+
const $t = Ho(/* @__PURE__ */ k("path", {
|
|
1469
1469
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1470
1470
|
}), "Close");
|
|
1471
1471
|
function Ct(e) {
|
|
1472
1472
|
return po("MuiAutocomplete", e);
|
|
1473
1473
|
}
|
|
1474
1474
|
const u = co("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
1475
|
-
var
|
|
1475
|
+
var Fo, jo;
|
|
1476
1476
|
const It = (e) => {
|
|
1477
1477
|
const {
|
|
1478
1478
|
classes: n,
|
|
1479
1479
|
disablePortal: a,
|
|
1480
1480
|
expanded: i,
|
|
1481
1481
|
focused: g,
|
|
1482
|
-
fullWidth:
|
|
1482
|
+
fullWidth: x,
|
|
1483
1483
|
hasClearIcon: y,
|
|
1484
|
-
hasPopupIcon:
|
|
1485
|
-
inputFocused:
|
|
1486
|
-
popupOpen:
|
|
1487
|
-
size:
|
|
1484
|
+
hasPopupIcon: v,
|
|
1485
|
+
inputFocused: P,
|
|
1486
|
+
popupOpen: b,
|
|
1487
|
+
size: S
|
|
1488
1488
|
} = e, L = {
|
|
1489
|
-
root: ["root", i && "expanded", g && "focused",
|
|
1489
|
+
root: ["root", i && "expanded", g && "focused", x && "fullWidth", y && "hasClearIcon", v && "hasPopupIcon"],
|
|
1490
1490
|
inputRoot: ["inputRoot"],
|
|
1491
|
-
input: ["input",
|
|
1492
|
-
tag: ["tag", `tagSize${d(
|
|
1491
|
+
input: ["input", P && "inputFocused"],
|
|
1492
|
+
tag: ["tag", `tagSize${d(S)}`],
|
|
1493
1493
|
endAdornment: ["endAdornment"],
|
|
1494
1494
|
clearIndicator: ["clearIndicator"],
|
|
1495
|
-
popupIndicator: ["popupIndicator",
|
|
1495
|
+
popupIndicator: ["popupIndicator", b && "popupIndicatorOpen"],
|
|
1496
1496
|
popper: ["popper", a && "popperDisablePortal"],
|
|
1497
1497
|
paper: ["paper"],
|
|
1498
1498
|
listbox: ["listbox"],
|
|
@@ -1512,21 +1512,21 @@ const It = (e) => {
|
|
|
1512
1512
|
} = e, {
|
|
1513
1513
|
fullWidth: i,
|
|
1514
1514
|
hasClearIcon: g,
|
|
1515
|
-
hasPopupIcon:
|
|
1515
|
+
hasPopupIcon: x,
|
|
1516
1516
|
inputFocused: y,
|
|
1517
|
-
size:
|
|
1517
|
+
size: v
|
|
1518
1518
|
} = a;
|
|
1519
1519
|
return [{
|
|
1520
1520
|
[`& .${u.tag}`]: n.tag
|
|
1521
1521
|
}, {
|
|
1522
|
-
[`& .${u.tag}`]: n[`tagSize${d(
|
|
1522
|
+
[`& .${u.tag}`]: n[`tagSize${d(v)}`]
|
|
1523
1523
|
}, {
|
|
1524
1524
|
[`& .${u.inputRoot}`]: n.inputRoot
|
|
1525
1525
|
}, {
|
|
1526
1526
|
[`& .${u.input}`]: n.input
|
|
1527
1527
|
}, {
|
|
1528
1528
|
[`& .${u.input}`]: y && n.inputFocused
|
|
1529
|
-
}, n.root, i && n.fullWidth,
|
|
1529
|
+
}, n.root, i && n.fullWidth, x && n.hasPopupIcon, g && n.hasClearIcon];
|
|
1530
1530
|
}
|
|
1531
1531
|
})({
|
|
1532
1532
|
[`&.${u.focused} .${u.clearIndicator}`]: {
|
|
@@ -1708,7 +1708,7 @@ const It = (e) => {
|
|
|
1708
1708
|
transform: "rotate(180deg)"
|
|
1709
1709
|
}
|
|
1710
1710
|
}]
|
|
1711
|
-
}), Tt = F(
|
|
1711
|
+
}), Tt = F(Wo, {
|
|
1712
1712
|
name: "MuiAutocomplete",
|
|
1713
1713
|
slot: "Popper",
|
|
1714
1714
|
overridesResolver: (e, n) => {
|
|
@@ -1731,7 +1731,7 @@ const It = (e) => {
|
|
|
1731
1731
|
position: "absolute"
|
|
1732
1732
|
}
|
|
1733
1733
|
}]
|
|
1734
|
-
}))), kt = F(
|
|
1734
|
+
}))), kt = F(Uo, {
|
|
1735
1735
|
name: "MuiAutocomplete",
|
|
1736
1736
|
slot: "Paper",
|
|
1737
1737
|
overridesResolver: (e, n) => n.paper
|
|
@@ -1825,7 +1825,7 @@ const It = (e) => {
|
|
|
1825
1825
|
}) => ({
|
|
1826
1826
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
1827
1827
|
top: -8
|
|
1828
|
-
}))),
|
|
1828
|
+
}))), Mt = F("ul", {
|
|
1829
1829
|
name: "MuiAutocomplete",
|
|
1830
1830
|
slot: "GroupUl",
|
|
1831
1831
|
overridesResolver: (e, n) => n.groupUl
|
|
@@ -1834,18 +1834,18 @@ const It = (e) => {
|
|
|
1834
1834
|
[`& .${u.option}`]: {
|
|
1835
1835
|
paddingLeft: 24
|
|
1836
1836
|
}
|
|
1837
|
-
}),
|
|
1837
|
+
}), Go = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
1838
1838
|
const i = uo({
|
|
1839
1839
|
props: n,
|
|
1840
1840
|
name: "MuiAutocomplete"
|
|
1841
1841
|
}), {
|
|
1842
1842
|
autoComplete: g = !1,
|
|
1843
|
-
autoHighlight:
|
|
1843
|
+
autoHighlight: x = !1,
|
|
1844
1844
|
autoSelect: y = !1,
|
|
1845
|
-
blurOnSelect:
|
|
1846
|
-
ChipProps:
|
|
1847
|
-
className:
|
|
1848
|
-
clearIcon:
|
|
1845
|
+
blurOnSelect: v = !1,
|
|
1846
|
+
ChipProps: P,
|
|
1847
|
+
className: b,
|
|
1848
|
+
clearIcon: S = Fo || (Fo = /* @__PURE__ */ k($t, {
|
|
1849
1849
|
fontSize: "small"
|
|
1850
1850
|
})),
|
|
1851
1851
|
clearOnBlur: L = !i.freeSolo,
|
|
@@ -1853,7 +1853,7 @@ const It = (e) => {
|
|
|
1853
1853
|
clearText: A = "Clear",
|
|
1854
1854
|
closeText: E = "Close",
|
|
1855
1855
|
componentsProps: ue,
|
|
1856
|
-
defaultValue:
|
|
1856
|
+
defaultValue: Ne = i.multiple ? [] : null,
|
|
1857
1857
|
disableClearable: me = !1,
|
|
1858
1858
|
disableCloseOnSelect: le = !1,
|
|
1859
1859
|
disabled: H = !1,
|
|
@@ -1865,7 +1865,7 @@ const It = (e) => {
|
|
|
1865
1865
|
forcePopupIcon: de = "auto",
|
|
1866
1866
|
freeSolo: ye = !1,
|
|
1867
1867
|
fullWidth: W = !1,
|
|
1868
|
-
getLimitTagsText:
|
|
1868
|
+
getLimitTagsText: $ = (h) => `+${h}`,
|
|
1869
1869
|
getOptionDisabled: fe,
|
|
1870
1870
|
getOptionKey: _,
|
|
1871
1871
|
getOptionLabel: ve,
|
|
@@ -1878,10 +1878,10 @@ const It = (e) => {
|
|
|
1878
1878
|
limitTags: Fe = -1,
|
|
1879
1879
|
ListboxComponent: go,
|
|
1880
1880
|
ListboxProps: U,
|
|
1881
|
-
loading:
|
|
1881
|
+
loading: M = !1,
|
|
1882
1882
|
loadingText: je = "Loading…",
|
|
1883
1883
|
multiple: Be = !1,
|
|
1884
|
-
noOptionsText:
|
|
1884
|
+
noOptionsText: T = "No options",
|
|
1885
1885
|
onChange: K,
|
|
1886
1886
|
onClose: Ue,
|
|
1887
1887
|
onHighlightChange: Ro,
|
|
@@ -1891,9 +1891,9 @@ const It = (e) => {
|
|
|
1891
1891
|
openOnFocus: z = !1,
|
|
1892
1892
|
openText: s = "Open",
|
|
1893
1893
|
options: Lo,
|
|
1894
|
-
PaperComponent:
|
|
1894
|
+
PaperComponent: O,
|
|
1895
1895
|
PopperComponent: Ce,
|
|
1896
|
-
popupIcon: Ie =
|
|
1896
|
+
popupIcon: Ie = jo || (jo = /* @__PURE__ */ k(Jo, {})),
|
|
1897
1897
|
readOnly: He = !1,
|
|
1898
1898
|
renderGroup: Oe,
|
|
1899
1899
|
renderInput: se,
|
|
@@ -1902,7 +1902,7 @@ const It = (e) => {
|
|
|
1902
1902
|
selectOnFocus: mo = !i.freeSolo,
|
|
1903
1903
|
size: Pe = "medium",
|
|
1904
1904
|
slots: j = {},
|
|
1905
|
-
slotProps:
|
|
1905
|
+
slotProps: w = {},
|
|
1906
1906
|
value: Q,
|
|
1907
1907
|
...We
|
|
1908
1908
|
} = i, {
|
|
@@ -1933,7 +1933,7 @@ const It = (e) => {
|
|
|
1933
1933
|
} = eo(), {
|
|
1934
1934
|
ref: $o,
|
|
1935
1935
|
...no
|
|
1936
|
-
} = yo(), Ye = ve || ((h) => h.label ?? h),
|
|
1936
|
+
} = yo(), Ye = ve || ((h) => h.label ?? h), N = {
|
|
1937
1937
|
...i,
|
|
1938
1938
|
disablePortal: oe,
|
|
1939
1939
|
expanded: we,
|
|
@@ -1945,35 +1945,35 @@ const It = (e) => {
|
|
|
1945
1945
|
inputFocused: oo === -1,
|
|
1946
1946
|
popupOpen: Te,
|
|
1947
1947
|
size: Pe
|
|
1948
|
-
}, R = It(
|
|
1948
|
+
}, R = It(N), ae = {
|
|
1949
1949
|
slots: {
|
|
1950
1950
|
listbox: go,
|
|
1951
|
-
paper:
|
|
1951
|
+
paper: O,
|
|
1952
1952
|
popper: Ce,
|
|
1953
1953
|
...j
|
|
1954
1954
|
},
|
|
1955
1955
|
slotProps: {
|
|
1956
|
-
chip:
|
|
1956
|
+
chip: P,
|
|
1957
1957
|
listbox: U,
|
|
1958
1958
|
...ue,
|
|
1959
|
-
...
|
|
1959
|
+
...w
|
|
1960
1960
|
}
|
|
1961
1961
|
}, [r, t] = Oo("listbox", {
|
|
1962
1962
|
elementType: "ul",
|
|
1963
1963
|
externalForwardedProps: ae,
|
|
1964
|
-
ownerState:
|
|
1964
|
+
ownerState: N,
|
|
1965
1965
|
className: R.listbox,
|
|
1966
1966
|
additionalProps: no,
|
|
1967
1967
|
ref: $o
|
|
1968
1968
|
}), [l, p] = Oo("paper", {
|
|
1969
|
-
elementType:
|
|
1969
|
+
elementType: Uo,
|
|
1970
1970
|
externalForwardedProps: ae,
|
|
1971
|
-
ownerState:
|
|
1971
|
+
ownerState: N,
|
|
1972
1972
|
className: R.paper
|
|
1973
|
-
}), [c,
|
|
1974
|
-
elementType:
|
|
1973
|
+
}), [c, I] = Oo("popper", {
|
|
1974
|
+
elementType: Wo,
|
|
1975
1975
|
externalForwardedProps: ae,
|
|
1976
|
-
ownerState:
|
|
1976
|
+
ownerState: N,
|
|
1977
1977
|
className: R.popper,
|
|
1978
1978
|
additionalProps: {
|
|
1979
1979
|
disablePortal: oe,
|
|
@@ -1985,52 +1985,52 @@ const It = (e) => {
|
|
|
1985
1985
|
open: Te
|
|
1986
1986
|
}
|
|
1987
1987
|
});
|
|
1988
|
-
let
|
|
1988
|
+
let C;
|
|
1989
1989
|
if (Be && re.length > 0) {
|
|
1990
1990
|
const h = (Z) => ({
|
|
1991
1991
|
className: R.tag,
|
|
1992
1992
|
disabled: H,
|
|
1993
1993
|
...Ke(Z)
|
|
1994
1994
|
});
|
|
1995
|
-
Ze ?
|
|
1995
|
+
Ze ? C = Ze(re, h, N) : C = re.map((Z, ce) => {
|
|
1996
1996
|
const {
|
|
1997
1997
|
key: Je,
|
|
1998
|
-
...
|
|
1998
|
+
...qo
|
|
1999
1999
|
} = h({
|
|
2000
2000
|
index: ce
|
|
2001
2001
|
});
|
|
2002
|
-
return /* @__PURE__ */
|
|
2002
|
+
return /* @__PURE__ */ k(Ko, {
|
|
2003
2003
|
label: Ye(Z),
|
|
2004
2004
|
size: Pe,
|
|
2005
|
-
...
|
|
2005
|
+
...qo,
|
|
2006
2006
|
...ae.slotProps.chip
|
|
2007
2007
|
}, Je);
|
|
2008
2008
|
});
|
|
2009
2009
|
}
|
|
2010
|
-
if (Fe > -1 && Array.isArray(
|
|
2011
|
-
const h =
|
|
2012
|
-
!Ge && h > 0 && (
|
|
2010
|
+
if (Fe > -1 && Array.isArray(C)) {
|
|
2011
|
+
const h = C.length - Fe;
|
|
2012
|
+
!Ge && h > 0 && (C = C.splice(0, Fe), C.push(/* @__PURE__ */ k("span", {
|
|
2013
2013
|
className: R.tag,
|
|
2014
|
-
children:
|
|
2015
|
-
},
|
|
2014
|
+
children: $(h)
|
|
2015
|
+
}, C.length)));
|
|
2016
2016
|
}
|
|
2017
|
-
const Le = Oe || ((h) => /* @__PURE__ */
|
|
2018
|
-
children: [/* @__PURE__ */
|
|
2017
|
+
const Le = Oe || ((h) => /* @__PURE__ */ Me("li", {
|
|
2018
|
+
children: [/* @__PURE__ */ k(Dt, {
|
|
2019
2019
|
className: R.groupLabel,
|
|
2020
|
-
ownerState:
|
|
2020
|
+
ownerState: N,
|
|
2021
2021
|
component: "div",
|
|
2022
2022
|
children: h.group
|
|
2023
|
-
}), /* @__PURE__ */
|
|
2023
|
+
}), /* @__PURE__ */ k(Mt, {
|
|
2024
2024
|
className: R.groupUl,
|
|
2025
|
-
ownerState:
|
|
2025
|
+
ownerState: N,
|
|
2026
2026
|
children: h.children
|
|
2027
2027
|
})]
|
|
2028
|
-
}, h.key)),
|
|
2028
|
+
}, h.key)), _o = Qe || ((h, Z) => {
|
|
2029
2029
|
const {
|
|
2030
2030
|
key: ce,
|
|
2031
2031
|
...Je
|
|
2032
2032
|
} = h;
|
|
2033
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ k("li", {
|
|
2034
2034
|
...Je,
|
|
2035
2035
|
children: Ye(Z)
|
|
2036
2036
|
}, ce);
|
|
@@ -2039,25 +2039,25 @@ const It = (e) => {
|
|
|
2039
2039
|
option: h,
|
|
2040
2040
|
index: Z
|
|
2041
2041
|
});
|
|
2042
|
-
return
|
|
2042
|
+
return _o({
|
|
2043
2043
|
...ce,
|
|
2044
2044
|
className: R.option
|
|
2045
2045
|
}, h, {
|
|
2046
2046
|
selected: ce["aria-selected"],
|
|
2047
2047
|
index: Z,
|
|
2048
2048
|
inputValue: to
|
|
2049
|
-
},
|
|
2050
|
-
}, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, Co = (h) => /* @__PURE__ */
|
|
2049
|
+
}, N);
|
|
2050
|
+
}, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, Co = (h) => /* @__PURE__ */ k(Tt, {
|
|
2051
2051
|
as: c,
|
|
2052
|
-
...
|
|
2053
|
-
children: /* @__PURE__ */
|
|
2052
|
+
...I,
|
|
2053
|
+
children: /* @__PURE__ */ k(kt, {
|
|
2054
2054
|
as: l,
|
|
2055
2055
|
...p,
|
|
2056
2056
|
children: h
|
|
2057
2057
|
})
|
|
2058
2058
|
});
|
|
2059
2059
|
let lo = null;
|
|
2060
|
-
return Re.length > 0 ? lo = Co(/* @__PURE__ */
|
|
2060
|
+
return Re.length > 0 ? lo = Co(/* @__PURE__ */ k(At, {
|
|
2061
2061
|
as: r,
|
|
2062
2062
|
...t,
|
|
2063
2063
|
children: Re.map((h, Z) => ie ? Le({
|
|
@@ -2065,23 +2065,23 @@ const It = (e) => {
|
|
|
2065
2065
|
group: h.group,
|
|
2066
2066
|
children: h.options.map((ce, Je) => Do(ce, h.index + Je))
|
|
2067
2067
|
}) : Do(h, Z))
|
|
2068
|
-
})) :
|
|
2068
|
+
})) : M && Re.length === 0 ? lo = Co(/* @__PURE__ */ k(Rt, {
|
|
2069
2069
|
className: R.loading,
|
|
2070
|
-
ownerState:
|
|
2070
|
+
ownerState: N,
|
|
2071
2071
|
children: je
|
|
2072
|
-
})) : Re.length === 0 && !ye && !
|
|
2072
|
+
})) : Re.length === 0 && !ye && !M && (lo = Co(/* @__PURE__ */ k(Lt, {
|
|
2073
2073
|
className: R.noOptions,
|
|
2074
|
-
ownerState:
|
|
2074
|
+
ownerState: N,
|
|
2075
2075
|
role: "presentation",
|
|
2076
2076
|
onMouseDown: (h) => {
|
|
2077
2077
|
h.preventDefault();
|
|
2078
2078
|
},
|
|
2079
|
-
children:
|
|
2080
|
-
}))), /* @__PURE__ */
|
|
2081
|
-
children: [/* @__PURE__ */
|
|
2079
|
+
children: T
|
|
2080
|
+
}))), /* @__PURE__ */ Me(m.Fragment, {
|
|
2081
|
+
children: [/* @__PURE__ */ k(Ot, {
|
|
2082
2082
|
ref: a,
|
|
2083
|
-
className: J(R.root,
|
|
2084
|
-
ownerState:
|
|
2083
|
+
className: J(R.root, b),
|
|
2084
|
+
ownerState: N,
|
|
2085
2085
|
...Se(We),
|
|
2086
2086
|
children: se({
|
|
2087
2087
|
id: ge,
|
|
@@ -2092,26 +2092,26 @@ const It = (e) => {
|
|
|
2092
2092
|
InputProps: {
|
|
2093
2093
|
ref: vo,
|
|
2094
2094
|
className: R.inputRoot,
|
|
2095
|
-
startAdornment:
|
|
2095
|
+
startAdornment: C,
|
|
2096
2096
|
onMouseDown: (h) => xo(h),
|
|
2097
2097
|
...(_e || qe) && {
|
|
2098
|
-
endAdornment: /* @__PURE__ */
|
|
2098
|
+
endAdornment: /* @__PURE__ */ Me(Pt, {
|
|
2099
2099
|
className: R.endAdornment,
|
|
2100
|
-
ownerState:
|
|
2101
|
-
children: [_e ? /* @__PURE__ */
|
|
2100
|
+
ownerState: N,
|
|
2101
|
+
children: [_e ? /* @__PURE__ */ k(St, {
|
|
2102
2102
|
...ho(),
|
|
2103
2103
|
"aria-label": A,
|
|
2104
2104
|
title: A,
|
|
2105
|
-
ownerState:
|
|
2105
|
+
ownerState: N,
|
|
2106
2106
|
...ro,
|
|
2107
2107
|
className: J(R.clearIndicator, ro == null ? void 0 : ro.className),
|
|
2108
|
-
children:
|
|
2109
|
-
}) : null, qe ? /* @__PURE__ */
|
|
2108
|
+
children: S
|
|
2109
|
+
}) : null, qe ? /* @__PURE__ */ k(wt, {
|
|
2110
2110
|
...Y(),
|
|
2111
2111
|
disabled: H,
|
|
2112
2112
|
"aria-label": Te ? E : s,
|
|
2113
2113
|
title: Te ? E : s,
|
|
2114
|
-
ownerState:
|
|
2114
|
+
ownerState: N,
|
|
2115
2115
|
...ao,
|
|
2116
2116
|
className: J(R.popupIndicator, ao == null ? void 0 : ao.className),
|
|
2117
2117
|
children: Ie
|
|
@@ -2129,7 +2129,7 @@ const It = (e) => {
|
|
|
2129
2129
|
}), ke ? lo : null]
|
|
2130
2130
|
});
|
|
2131
2131
|
});
|
|
2132
|
-
process.env.NODE_ENV !== "production" && (
|
|
2132
|
+
process.env.NODE_ENV !== "production" && (Go.propTypes = {
|
|
2133
2133
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2134
2134
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2135
2135
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2559,8 +2559,8 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
|
2559
2559
|
value: wo(o.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
|
|
2560
2560
|
`)) : null)
|
|
2561
2561
|
});
|
|
2562
|
-
const
|
|
2563
|
-
...
|
|
2562
|
+
const Nt = ["colon"], Et = Yo("div", { shouldForwardProp: (e) => !Nt.includes(e) })(({ borderFocusColor: e, minWidth: n = "180px", multiple: a }) => ({
|
|
2563
|
+
...Mo`
|
|
2564
2564
|
display: flex;
|
|
2565
2565
|
flex-wrap: nowrap;
|
|
2566
2566
|
align-items: center;
|
|
@@ -2592,6 +2592,11 @@ const Mt = ["colon"], Et = qo("div", { shouldForwardProp: (e) => !Mt.includes(e)
|
|
|
2592
2592
|
height: 18px;
|
|
2593
2593
|
padding: 0 !important;
|
|
2594
2594
|
|
|
2595
|
+
${a && Mo`
|
|
2596
|
+
display: flex;
|
|
2597
|
+
align-items: start;
|
|
2598
|
+
`};
|
|
2599
|
+
|
|
2595
2600
|
input {
|
|
2596
2601
|
padding: 0 !important;
|
|
2597
2602
|
width: 100%;
|
|
@@ -2599,7 +2604,7 @@ const Mt = ["colon"], Et = qo("div", { shouldForwardProp: (e) => !Mt.includes(e)
|
|
|
2599
2604
|
|
|
2600
2605
|
transition: 313ms all ease-out;
|
|
2601
2606
|
border-radius: 0;
|
|
2602
|
-
border-bottom: 1px solid ${
|
|
2607
|
+
border-bottom: 1px solid ${Bo.colors.gray};
|
|
2603
2608
|
width: 100%;
|
|
2604
2609
|
|
|
2605
2610
|
.Mui-select {
|
|
@@ -2611,6 +2616,24 @@ const Mt = ["colon"], Et = qo("div", { shouldForwardProp: (e) => !Mt.includes(e)
|
|
|
2611
2616
|
&.Mui-focused {
|
|
2612
2617
|
box-shadow: 0 -5px 4px -4px ${e} inset;
|
|
2613
2618
|
}
|
|
2619
|
+
|
|
2620
|
+
.MuiButtonBase-root {
|
|
2621
|
+
max-height: calc(100% - 0px);
|
|
2622
|
+
padding: 0 2px;
|
|
2623
|
+
margin: 0;
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
.MuiChip-label {
|
|
2627
|
+
font-size: 13px;
|
|
2628
|
+
padding: 0 6px;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
.MuiSvgIcon-root {
|
|
2632
|
+
margin: 0;
|
|
2633
|
+
font-size: 13px;
|
|
2634
|
+
height: 13px;
|
|
2635
|
+
width: 13px;
|
|
2636
|
+
}
|
|
2614
2637
|
}
|
|
2615
2638
|
|
|
2616
2639
|
.MuiAutocomplete-endAdornment {
|
|
@@ -2642,29 +2665,40 @@ const Mt = ["colon"], Et = qo("div", { shouldForwardProp: (e) => !Mt.includes(e)
|
|
|
2642
2665
|
colon: n = !0,
|
|
2643
2666
|
options: a = [],
|
|
2644
2667
|
noLabel: i = !1,
|
|
2645
|
-
borderFocusColor: g =
|
|
2668
|
+
borderFocusColor: g = Bo.colors.green,
|
|
2646
2669
|
// border primary
|
|
2647
|
-
onChange:
|
|
2670
|
+
onChange: x,
|
|
2648
2671
|
minWidth: y,
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
),
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2672
|
+
multiple: v,
|
|
2673
|
+
...P
|
|
2674
|
+
}) => /* @__PURE__ */ Me(
|
|
2675
|
+
Et,
|
|
2676
|
+
{
|
|
2677
|
+
className: "jcLabeledDropdown",
|
|
2678
|
+
borderFocusColor: g,
|
|
2679
|
+
minWidth: y,
|
|
2680
|
+
multiple: v,
|
|
2681
|
+
children: [
|
|
2682
|
+
!i && /* @__PURE__ */ Me("span", { className: "jcDropdownLabel", children: [
|
|
2683
|
+
e,
|
|
2684
|
+
n && ":"
|
|
2685
|
+
] }),
|
|
2686
|
+
/* @__PURE__ */ k(
|
|
2687
|
+
Go,
|
|
2688
|
+
{
|
|
2689
|
+
multiple: v,
|
|
2690
|
+
options: a,
|
|
2691
|
+
onChange: (b, S) => (
|
|
2692
|
+
// @ts-ignore
|
|
2693
|
+
x && x({ ...b, target: { ...b.target, value: `${S == null ? void 0 : S.value}` || "" } })
|
|
2694
|
+
),
|
|
2695
|
+
...P,
|
|
2696
|
+
renderInput: (b) => /* @__PURE__ */ k(Xo, { ...b })
|
|
2697
|
+
}
|
|
2698
|
+
)
|
|
2699
|
+
]
|
|
2700
|
+
}
|
|
2701
|
+
);
|
|
2668
2702
|
export {
|
|
2669
2703
|
en as LabeledDropdown,
|
|
2670
2704
|
en as default
|