@cgi-learning-hub/ui 1.4.0-dev.1742579430 → 1.4.0-dev.1742811842

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.
@@ -0,0 +1,1829 @@
1
+ import * as y from "react";
2
+ import { G as wt, H as Lt, I as qe, P as t, n as ct } from "./generateUtilityClasses-CqzQXpT_.js";
3
+ import { A as Ft, f as ge, o as vt, i as dt } from "./Select-Vnsr3NSv.js";
4
+ import { i as ae } from "./InputBase-YOnatBxw.js";
5
+ import { C as Ht } from "./Close-r-ZUhk0-.js";
6
+ import { m as se } from "./memoTheme-B0xVysYu.js";
7
+ import { u as ft } from "./useSlot-CqjfyGd9.js";
8
+ import { jsx as A, jsxs as We } from "react/jsx-runtime";
9
+ import { u as kt, s as V, c as Rt } from "./DefaultPropsProvider-CXfMJdg8.js";
10
+ import { u as zt } from "./useId-CK6Kn3Tn.js";
11
+ import { u as gt } from "./useControlled-BYdyS7Pn.js";
12
+ import { u as Ge } from "./useEventCallback-BAQJJ3ye.js";
13
+ import { s as jt } from "./useForkRef-C_4o__cU.js";
14
+ import { P as Dt, i as Ut } from "./Paper-DeL_n4k9.js";
15
+ import { P as Nt } from "./Popper-BKxRTMsO.js";
16
+ import { C as Bt } from "./Chip-BsErraqe.js";
17
+ import { c as Ke } from "./capitalize-Bs7Xs33U.js";
18
+ import { I as Et } from "./IconButton-BQW0xjdH.js";
19
+ import { c as Ct } from "./chainPropTypes-D9lkm76m.js";
20
+ const Wt = (n) => {
21
+ const a = y.useRef({});
22
+ return y.useEffect(() => {
23
+ a.current = n;
24
+ }), a.current;
25
+ };
26
+ function $t(n) {
27
+ return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
28
+ }
29
+ function Gt(n = {}) {
30
+ const {
31
+ ignoreAccents: a = !0,
32
+ ignoreCase: c = !0,
33
+ limit: g,
34
+ matchFrom: D = "any",
35
+ stringify: L,
36
+ trim: $ = !1
37
+ } = n;
38
+ return (k, {
39
+ inputValue: j,
40
+ getOptionLabel: I
41
+ }) => {
42
+ let v = $ ? j.trim() : j;
43
+ c && (v = v.toLowerCase()), a && (v = $t(v));
44
+ const U = v ? k.filter((ie) => {
45
+ let R = (L || I)(ie);
46
+ return c && (R = R.toLowerCase()), a && (R = $t(R)), D === "start" ? R.startsWith(v) : R.includes(v);
47
+ }) : k;
48
+ return typeof g == "number" ? U.slice(0, g) : U;
49
+ };
50
+ }
51
+ const qt = Gt(), _t = 5, Kt = (n) => {
52
+ var a;
53
+ return n.current !== null && ((a = n.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
54
+ }, Jt = [];
55
+ function Tt(n, a, c) {
56
+ if (a || n == null)
57
+ return "";
58
+ const g = c(n);
59
+ return typeof g == "string" ? g : "";
60
+ }
61
+ function Xt(n) {
62
+ const {
63
+ // eslint-disable-next-line @typescript-eslint/naming-convention
64
+ unstable_isActiveElementInListbox: a = Kt,
65
+ // eslint-disable-next-line @typescript-eslint/naming-convention
66
+ unstable_classNamePrefix: c = "Mui",
67
+ autoComplete: g = !1,
68
+ autoHighlight: D = !1,
69
+ autoSelect: L = !1,
70
+ blurOnSelect: $ = !1,
71
+ clearOnBlur: k = !n.freeSolo,
72
+ clearOnEscape: j = !1,
73
+ componentName: I = "useAutocomplete",
74
+ defaultValue: v = n.multiple ? Jt : null,
75
+ disableClearable: U = !1,
76
+ disableCloseOnSelect: ie = !1,
77
+ disabled: R,
78
+ disabledItemsFocusable: Se = !1,
79
+ disableListWrap: Ae = !1,
80
+ filterOptions: bt = qt,
81
+ filterSelectedOptions: we = !1,
82
+ freeSolo: le = !1,
83
+ getOptionDisabled: B,
84
+ getOptionKey: Le,
85
+ getOptionLabel: Je = (o) => o.label ?? o,
86
+ groupBy: Z,
87
+ handleHomeEndKeys: Xe = !n.freeSolo,
88
+ id: mt,
89
+ includeInputInList: be = !1,
90
+ inputValue: ke,
91
+ isOptionEqualToValue: K = (o, e) => o === e,
92
+ multiple: b = !1,
93
+ onChange: Ye,
94
+ onClose: Qe,
95
+ onHighlightChange: Re,
96
+ onInputChange: J,
97
+ onOpen: De,
98
+ open: ht,
99
+ openOnFocus: yt = !1,
100
+ options: xt,
101
+ readOnly: pe = !1,
102
+ selectOnFocus: me = !n.freeSolo,
103
+ value: Ze
104
+ } = n, N = zt(mt);
105
+ let P = Je;
106
+ P = (o) => {
107
+ const e = Je(o);
108
+ if (typeof e != "string") {
109
+ if (process.env.NODE_ENV !== "production") {
110
+ const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
111
+ console.error(`MUI: The \`getOptionLabel\` method of ${I} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
112
+ }
113
+ return String(e);
114
+ }
115
+ return e;
116
+ };
117
+ const he = y.useRef(!1), ye = y.useRef(!0), m = y.useRef(null), E = y.useRef(null), [xe, It] = y.useState(null), [M, Ne] = y.useState(-1), et = D ? 0 : -1, T = y.useRef(et), Ee = y.useRef(Tt(v, b, P)).current, [s, tt] = gt({
118
+ controlled: Ze,
119
+ default: v,
120
+ name: I
121
+ }), [f, ue] = gt({
122
+ controlled: ke,
123
+ default: Ee,
124
+ name: I,
125
+ state: "inputValue"
126
+ }), [ee, Me] = y.useState(!1), ce = y.useCallback((o, e, r) => {
127
+ if (!(b ? s.length < e.length : e !== null) && !k)
128
+ return;
129
+ const p = Tt(e, b, P);
130
+ f !== p && (ue(p), J && J(o, p, r));
131
+ }, [P, f, b, J, ue, k, s]), [X, Ie] = gt({
132
+ controlled: ht,
133
+ default: !1,
134
+ name: I,
135
+ state: "open"
136
+ }), [Ot, de] = y.useState(!0), Ve = !b && s != null && f === P(s), w = X && !pe, h = w ? bt(
137
+ xt.filter((o) => !(we && (b ? s : [s]).some((e) => e !== null && K(o, e)))),
138
+ // we use the empty string to manipulate `filterOptions` to not filter any options
139
+ // i.e. the filter predicate always returns true
140
+ {
141
+ inputValue: Ve && Ot ? "" : f,
142
+ getOptionLabel: P
143
+ }
144
+ ) : [], F = Wt({
145
+ filteredOptions: h,
146
+ value: s,
147
+ inputValue: f
148
+ });
149
+ y.useEffect(() => {
150
+ const o = s !== F.value;
151
+ ee && !o || le && !o || ce(null, s, "reset");
152
+ }, [s, ce, ee, F.value, le]);
153
+ const Fe = X && h.length > 0 && !pe, te = Ge((o) => {
154
+ o === -1 ? m.current.focus() : xe.querySelector(`[data-tag-index="${o}"]`).focus();
155
+ });
156
+ y.useEffect(() => {
157
+ b && M > s.length - 1 && (Ne(-1), te(-1));
158
+ }, [s, b, M, te]);
159
+ function ot(o, e) {
160
+ if (!E.current || o < 0 || o >= h.length)
161
+ return -1;
162
+ let r = o;
163
+ for (; ; ) {
164
+ const i = E.current.querySelector(`[data-option-index="${r}"]`), p = Se ? !1 : !i || i.disabled || i.getAttribute("aria-disabled") === "true";
165
+ if (i && i.hasAttribute("tabindex") && !p)
166
+ return r;
167
+ if (e === "next" ? r = (r + 1) % h.length : r = (r - 1 + h.length) % h.length, r === o)
168
+ return -1;
169
+ }
170
+ }
171
+ const _ = Ge(({
172
+ event: o,
173
+ index: e,
174
+ reason: r = "auto"
175
+ }) => {
176
+ if (T.current = e, e === -1 ? m.current.removeAttribute("aria-activedescendant") : m.current.setAttribute("aria-activedescendant", `${N}-option-${e}`), Re && Re(o, e === -1 ? null : h[e], r), !E.current)
177
+ return;
178
+ const i = E.current.querySelector(`[role="option"].${c}-focused`);
179
+ i && (i.classList.remove(`${c}-focused`), i.classList.remove(`${c}-focusVisible`));
180
+ let p = E.current;
181
+ if (E.current.getAttribute("role") !== "listbox" && (p = E.current.parentElement.querySelector('[role="listbox"]')), !p)
182
+ return;
183
+ if (e === -1) {
184
+ p.scrollTop = 0;
185
+ return;
186
+ }
187
+ const u = E.current.querySelector(`[data-option-index="${e}"]`);
188
+ if (u && (u.classList.add(`${c}-focused`), r === "keyboard" && u.classList.add(`${c}-focusVisible`), p.scrollHeight > p.clientHeight && r !== "mouse" && r !== "touch")) {
189
+ const x = u, S = p.clientHeight + p.scrollTop, $e = x.offsetTop + x.offsetHeight;
190
+ $e > S ? p.scrollTop = $e - p.clientHeight : x.offsetTop - x.offsetHeight * (Z ? 1.3 : 0) < p.scrollTop && (p.scrollTop = x.offsetTop - x.offsetHeight * (Z ? 1.3 : 0));
191
+ }
192
+ }), H = Ge(({
193
+ event: o,
194
+ diff: e,
195
+ direction: r = "next",
196
+ reason: i = "auto"
197
+ }) => {
198
+ if (!w)
199
+ return;
200
+ const u = ot((() => {
201
+ const x = h.length - 1;
202
+ if (e === "reset")
203
+ return et;
204
+ if (e === "start")
205
+ return 0;
206
+ if (e === "end")
207
+ return x;
208
+ const S = T.current + e;
209
+ return S < 0 ? S === -1 && be ? -1 : Ae && T.current !== -1 || Math.abs(e) > 1 ? 0 : x : S > x ? S === x + 1 && be ? -1 : Ae || Math.abs(e) > 1 ? x : 0 : S;
210
+ })(), r);
211
+ if (_({
212
+ index: u,
213
+ reason: i,
214
+ event: o
215
+ }), g && e !== "reset")
216
+ if (u === -1)
217
+ m.current.value = f;
218
+ else {
219
+ const x = P(h[u]);
220
+ m.current.value = x, x.toLowerCase().indexOf(f.toLowerCase()) === 0 && f.length > 0 && m.current.setSelectionRange(f.length, x.length);
221
+ }
222
+ }), nt = () => {
223
+ const o = (e, r) => {
224
+ const i = e ? P(e) : "", p = r ? P(r) : "";
225
+ return i === p;
226
+ };
227
+ if (T.current !== -1 && F.filteredOptions && F.filteredOptions.length !== h.length && F.inputValue === f && (b ? s.length === F.value.length && F.value.every((e, r) => P(s[r]) === P(e)) : o(F.value, s))) {
228
+ const e = F.filteredOptions[T.current];
229
+ if (e)
230
+ return h.findIndex((r) => P(r) === P(e));
231
+ }
232
+ return -1;
233
+ }, Oe = y.useCallback(() => {
234
+ if (!w)
235
+ return;
236
+ const o = nt();
237
+ if (o !== -1) {
238
+ T.current = o;
239
+ return;
240
+ }
241
+ const e = b ? s[0] : s;
242
+ if (h.length === 0 || e == null) {
243
+ H({
244
+ diff: "reset"
245
+ });
246
+ return;
247
+ }
248
+ if (E.current) {
249
+ if (e != null) {
250
+ const r = h[T.current];
251
+ if (b && r && s.findIndex((p) => K(r, p)) !== -1)
252
+ return;
253
+ const i = h.findIndex((p) => K(p, e));
254
+ i === -1 ? H({
255
+ diff: "reset"
256
+ }) : _({
257
+ index: i
258
+ });
259
+ return;
260
+ }
261
+ if (T.current >= h.length - 1) {
262
+ _({
263
+ index: h.length - 1
264
+ });
265
+ return;
266
+ }
267
+ _({
268
+ index: T.current
269
+ });
270
+ }
271
+ }, [
272
+ // Only sync the highlighted index when the option switch between empty and not
273
+ h.length,
274
+ // Don't sync the highlighted index with the value when multiple
275
+ // eslint-disable-next-line react-hooks/exhaustive-deps
276
+ b ? !1 : s,
277
+ we,
278
+ H,
279
+ _,
280
+ w,
281
+ f,
282
+ b
283
+ ]), rt = Ge((o) => {
284
+ jt(E, o), o && Oe();
285
+ });
286
+ process.env.NODE_ENV !== "production" && y.useEffect(() => {
287
+ (!m.current || m.current.nodeName !== "INPUT") && (m.current && m.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${I} 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(`
288
+ `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${m.current} while an HTMLInputElement was expected.`, `Instead, ${I} expects an input element.`, "", I === "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(`
289
+ `)));
290
+ }, [I]), y.useEffect(() => {
291
+ Oe();
292
+ }, [Oe]);
293
+ const z = (o) => {
294
+ X || (Ie(!0), de(!0), De && De(o));
295
+ }, oe = (o, e) => {
296
+ X && (Ie(!1), Qe && Qe(o, e));
297
+ }, Y = (o, e, r, i) => {
298
+ if (b) {
299
+ if (s.length === e.length && s.every((p, u) => p === e[u]))
300
+ return;
301
+ } else if (s === e)
302
+ return;
303
+ Ye && Ye(o, e, r, i), tt(e);
304
+ }, fe = y.useRef(!1), W = (o, e, r = "selectOption", i = "options") => {
305
+ let p = r, u = e;
306
+ if (b) {
307
+ if (u = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
308
+ const S = u.filter(($e) => K(e, $e));
309
+ S.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${I} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${S.length} matches.`].join(`
310
+ `));
311
+ }
312
+ const x = u.findIndex((S) => K(e, S));
313
+ x === -1 ? u.push(e) : i !== "freeSolo" && (u.splice(x, 1), p = "removeOption");
314
+ }
315
+ ce(o, u, p), Y(o, u, p, {
316
+ option: e
317
+ }), !ie && (!o || !o.ctrlKey && !o.metaKey) && oe(o, p), ($ === !0 || $ === "touch" && fe.current || $ === "mouse" && !fe.current) && m.current.blur();
318
+ };
319
+ function He(o, e) {
320
+ if (o === -1)
321
+ return -1;
322
+ let r = o;
323
+ for (; ; ) {
324
+ if (e === "next" && r === s.length || e === "previous" && r === -1)
325
+ return -1;
326
+ const i = xe.querySelector(`[data-tag-index="${r}"]`);
327
+ if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
328
+ r += e === "next" ? 1 : -1;
329
+ else
330
+ return r;
331
+ }
332
+ }
333
+ const ze = (o, e) => {
334
+ if (!b)
335
+ return;
336
+ f === "" && oe(o, "toggleInput");
337
+ let r = M;
338
+ M === -1 ? f === "" && e === "previous" && (r = s.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === s.length && (r = -1)), r = He(r, e), Ne(r), te(r);
339
+ }, ne = (o) => {
340
+ he.current = !0, ue(""), J && J(o, "", "clear"), Y(o, b ? [] : null, "clear");
341
+ }, at = (o) => (e) => {
342
+ if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (M !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ne(-1), te(-1)), e.which !== 229))
343
+ switch (e.key) {
344
+ case "Home":
345
+ w && Xe && (e.preventDefault(), H({
346
+ diff: "start",
347
+ direction: "next",
348
+ reason: "keyboard",
349
+ event: e
350
+ }));
351
+ break;
352
+ case "End":
353
+ w && Xe && (e.preventDefault(), H({
354
+ diff: "end",
355
+ direction: "previous",
356
+ reason: "keyboard",
357
+ event: e
358
+ }));
359
+ break;
360
+ case "PageUp":
361
+ e.preventDefault(), H({
362
+ diff: -5,
363
+ direction: "previous",
364
+ reason: "keyboard",
365
+ event: e
366
+ }), z(e);
367
+ break;
368
+ case "PageDown":
369
+ e.preventDefault(), H({
370
+ diff: _t,
371
+ direction: "next",
372
+ reason: "keyboard",
373
+ event: e
374
+ }), z(e);
375
+ break;
376
+ case "ArrowDown":
377
+ e.preventDefault(), H({
378
+ diff: 1,
379
+ direction: "next",
380
+ reason: "keyboard",
381
+ event: e
382
+ }), z(e);
383
+ break;
384
+ case "ArrowUp":
385
+ e.preventDefault(), H({
386
+ diff: -1,
387
+ direction: "previous",
388
+ reason: "keyboard",
389
+ event: e
390
+ }), z(e);
391
+ break;
392
+ case "ArrowLeft":
393
+ ze(e, "previous");
394
+ break;
395
+ case "ArrowRight":
396
+ ze(e, "next");
397
+ break;
398
+ case "Enter":
399
+ if (T.current !== -1 && w) {
400
+ const r = h[T.current], i = B ? B(r) : !1;
401
+ if (e.preventDefault(), i)
402
+ return;
403
+ W(e, r, "selectOption"), g && m.current.setSelectionRange(m.current.value.length, m.current.value.length);
404
+ } else le && f !== "" && Ve === !1 && (b && e.preventDefault(), W(e, f, "createOption", "freeSolo"));
405
+ break;
406
+ case "Escape":
407
+ w ? (e.preventDefault(), e.stopPropagation(), oe(e, "escape")) : j && (f !== "" || b && s.length > 0) && (e.preventDefault(), e.stopPropagation(), ne(e));
408
+ break;
409
+ case "Backspace":
410
+ if (b && !pe && f === "" && s.length > 0) {
411
+ const r = M === -1 ? s.length - 1 : M, i = s.slice();
412
+ i.splice(r, 1), Y(e, i, "removeOption", {
413
+ option: s[r]
414
+ });
415
+ }
416
+ break;
417
+ case "Delete":
418
+ if (b && !pe && f === "" && s.length > 0 && M !== -1) {
419
+ const r = M, i = s.slice();
420
+ i.splice(r, 1), Y(e, i, "removeOption", {
421
+ option: s[r]
422
+ });
423
+ }
424
+ break;
425
+ }
426
+ }, st = (o) => {
427
+ Me(!0), yt && !he.current && z(o);
428
+ }, re = (o) => {
429
+ if (a(E)) {
430
+ m.current.focus();
431
+ return;
432
+ }
433
+ Me(!1), ye.current = !0, he.current = !1, L && T.current !== -1 && w ? W(o, h[T.current], "blur") : L && le && f !== "" ? W(o, f, "blur", "freeSolo") : k && ce(o, s, "blur"), oe(o, "blur");
434
+ }, Pe = (o) => {
435
+ const e = o.target.value;
436
+ f !== e && (ue(e), de(!1), J && J(o, e, "input")), e === "" ? !U && !b && Y(o, null, "clear") : z(o);
437
+ }, ve = (o) => {
438
+ const e = Number(o.currentTarget.getAttribute("data-option-index"));
439
+ T.current !== e && _({
440
+ event: o,
441
+ index: e,
442
+ reason: "mouse"
443
+ });
444
+ }, it = (o) => {
445
+ _({
446
+ event: o,
447
+ index: Number(o.currentTarget.getAttribute("data-option-index")),
448
+ reason: "touch"
449
+ }), fe.current = !0;
450
+ }, lt = (o) => {
451
+ const e = Number(o.currentTarget.getAttribute("data-option-index"));
452
+ W(o, h[e], "selectOption"), fe.current = !1;
453
+ }, pt = (o) => (e) => {
454
+ const r = s.slice();
455
+ r.splice(o, 1), Y(e, r, "removeOption", {
456
+ option: s[o]
457
+ });
458
+ }, ut = (o) => {
459
+ X ? oe(o, "toggleInput") : z(o);
460
+ }, Ce = (o) => {
461
+ o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== N && o.preventDefault();
462
+ }, C = (o) => {
463
+ o.currentTarget.contains(o.target) && (m.current.focus(), me && ye.current && m.current.selectionEnd - m.current.selectionStart === 0 && m.current.select(), ye.current = !1);
464
+ }, O = (o) => {
465
+ !R && (f === "" || !X) && ut(o);
466
+ };
467
+ let G = le && f.length > 0;
468
+ G = G || (b ? s.length > 0 : s !== null);
469
+ let je = h;
470
+ if (Z) {
471
+ const o = /* @__PURE__ */ new Map();
472
+ let e = !1;
473
+ je = h.reduce((r, i, p) => {
474
+ const u = Z(i);
475
+ return r.length > 0 && r[r.length - 1].group === u ? r[r.length - 1].options.push(i) : (process.env.NODE_ENV !== "production" && (o.get(u) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${I} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(u, !0)), r.push({
476
+ key: p,
477
+ index: p,
478
+ group: u,
479
+ options: [i]
480
+ })), r;
481
+ }, []);
482
+ }
483
+ return R && ee && re(), {
484
+ getRootProps: (o = {}) => ({
485
+ ...o,
486
+ onKeyDown: at(o),
487
+ onMouseDown: Ce,
488
+ onClick: C
489
+ }),
490
+ getInputLabelProps: () => ({
491
+ id: `${N}-label`,
492
+ htmlFor: N
493
+ }),
494
+ getInputProps: () => ({
495
+ id: N,
496
+ value: f,
497
+ onBlur: re,
498
+ onFocus: st,
499
+ onChange: Pe,
500
+ onMouseDown: O,
501
+ // if open then this is handled imperatively so don't let react override
502
+ // only have an opinion about this when closed
503
+ "aria-activedescendant": w ? "" : null,
504
+ "aria-autocomplete": g ? "both" : "list",
505
+ "aria-controls": Fe ? `${N}-listbox` : void 0,
506
+ "aria-expanded": Fe,
507
+ // Disable browser's suggestion that might overlap with the popup.
508
+ // Handle autocomplete but not autofill.
509
+ autoComplete: "off",
510
+ ref: m,
511
+ autoCapitalize: "none",
512
+ spellCheck: "false",
513
+ role: "combobox",
514
+ disabled: R
515
+ }),
516
+ getClearProps: () => ({
517
+ tabIndex: -1,
518
+ type: "button",
519
+ onClick: ne
520
+ }),
521
+ getPopupIndicatorProps: () => ({
522
+ tabIndex: -1,
523
+ type: "button",
524
+ onClick: ut
525
+ }),
526
+ getTagProps: ({
527
+ index: o
528
+ }) => ({
529
+ key: o,
530
+ "data-tag-index": o,
531
+ tabIndex: -1,
532
+ ...!pe && {
533
+ onDelete: pt(o)
534
+ }
535
+ }),
536
+ getListboxProps: () => ({
537
+ role: "listbox",
538
+ id: `${N}-listbox`,
539
+ "aria-labelledby": `${N}-label`,
540
+ ref: rt,
541
+ onMouseDown: (o) => {
542
+ o.preventDefault();
543
+ }
544
+ }),
545
+ getOptionProps: ({
546
+ index: o,
547
+ option: e
548
+ }) => {
549
+ const r = (b ? s : [s]).some((p) => p != null && K(e, p)), i = B ? B(e) : !1;
550
+ return {
551
+ key: (Le == null ? void 0 : Le(e)) ?? P(e),
552
+ tabIndex: -1,
553
+ role: "option",
554
+ id: `${N}-option-${o}`,
555
+ onMouseMove: ve,
556
+ onClick: lt,
557
+ onTouchStart: it,
558
+ "data-option-index": o,
559
+ "aria-disabled": i,
560
+ "aria-selected": r
561
+ };
562
+ },
563
+ id: N,
564
+ inputValue: f,
565
+ value: s,
566
+ dirty: G,
567
+ expanded: w && xe,
568
+ popupOpen: w,
569
+ focused: ee || M !== -1,
570
+ anchorEl: xe,
571
+ setAnchorEl: It,
572
+ focusedTag: M,
573
+ groupedOptions: je
574
+ };
575
+ }
576
+ function Yt(n) {
577
+ return Lt("MuiListSubheader", n);
578
+ }
579
+ const Do = wt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Qt = (n) => {
580
+ const {
581
+ classes: a,
582
+ color: c,
583
+ disableGutters: g,
584
+ inset: D,
585
+ disableSticky: L
586
+ } = n, $ = {
587
+ root: ["root", c !== "default" && `color${Ke(c)}`, !g && "gutters", D && "inset", !L && "sticky"]
588
+ };
589
+ return Rt($, Yt, a);
590
+ }, Zt = V("li", {
591
+ name: "MuiListSubheader",
592
+ slot: "Root",
593
+ overridesResolver: (n, a) => {
594
+ const {
595
+ ownerState: c
596
+ } = n;
597
+ return [a.root, c.color !== "default" && a[`color${Ke(c.color)}`], !c.disableGutters && a.gutters, c.inset && a.inset, !c.disableSticky && a.sticky];
598
+ }
599
+ })(se(({
600
+ theme: n
601
+ }) => ({
602
+ boxSizing: "border-box",
603
+ lineHeight: "48px",
604
+ listStyle: "none",
605
+ color: (n.vars || n).palette.text.secondary,
606
+ fontFamily: n.typography.fontFamily,
607
+ fontWeight: n.typography.fontWeightMedium,
608
+ fontSize: n.typography.pxToRem(14),
609
+ variants: [{
610
+ props: {
611
+ color: "primary"
612
+ },
613
+ style: {
614
+ color: (n.vars || n).palette.primary.main
615
+ }
616
+ }, {
617
+ props: {
618
+ color: "inherit"
619
+ },
620
+ style: {
621
+ color: "inherit"
622
+ }
623
+ }, {
624
+ props: ({
625
+ ownerState: a
626
+ }) => !a.disableGutters,
627
+ style: {
628
+ paddingLeft: 16,
629
+ paddingRight: 16
630
+ }
631
+ }, {
632
+ props: ({
633
+ ownerState: a
634
+ }) => a.inset,
635
+ style: {
636
+ paddingLeft: 72
637
+ }
638
+ }, {
639
+ props: ({
640
+ ownerState: a
641
+ }) => !a.disableSticky,
642
+ style: {
643
+ position: "sticky",
644
+ top: 0,
645
+ zIndex: 1,
646
+ backgroundColor: (n.vars || n).palette.background.paper
647
+ }
648
+ }]
649
+ }))), _e = /* @__PURE__ */ y.forwardRef(function(a, c) {
650
+ const g = kt({
651
+ props: a,
652
+ name: "MuiListSubheader"
653
+ }), {
654
+ className: D,
655
+ color: L = "default",
656
+ component: $ = "li",
657
+ disableGutters: k = !1,
658
+ disableSticky: j = !1,
659
+ inset: I = !1,
660
+ ...v
661
+ } = g, U = {
662
+ ...g,
663
+ color: L,
664
+ component: $,
665
+ disableGutters: k,
666
+ disableSticky: j,
667
+ inset: I
668
+ }, ie = Qt(U);
669
+ return /* @__PURE__ */ A(Zt, {
670
+ as: $,
671
+ className: qe(ie.root, D),
672
+ ref: c,
673
+ ownerState: U,
674
+ ...v
675
+ });
676
+ });
677
+ _e && (_e.muiSkipListHighlight = !0);
678
+ process.env.NODE_ENV !== "production" && (_e.propTypes = {
679
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
680
+ // │ These PropTypes are generated from the TypeScript type definitions. │
681
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
682
+ // └─────────────────────────────────────────────────────────────────────┘
683
+ /**
684
+ * The content of the component.
685
+ */
686
+ children: t.node,
687
+ /**
688
+ * Override or extend the styles applied to the component.
689
+ */
690
+ classes: t.object,
691
+ /**
692
+ * @ignore
693
+ */
694
+ className: t.string,
695
+ /**
696
+ * The color of the component. It supports those theme colors that make sense for this component.
697
+ * @default 'default'
698
+ */
699
+ color: t.oneOf(["default", "inherit", "primary"]),
700
+ /**
701
+ * The component used for the root node.
702
+ * Either a string to use a HTML element or a component.
703
+ */
704
+ component: t.elementType,
705
+ /**
706
+ * If `true`, the List Subheader will not have gutters.
707
+ * @default false
708
+ */
709
+ disableGutters: t.bool,
710
+ /**
711
+ * If `true`, the List Subheader will not stick to the top during scroll.
712
+ * @default false
713
+ */
714
+ disableSticky: t.bool,
715
+ /**
716
+ * If `true`, the List Subheader is indented.
717
+ * @default false
718
+ */
719
+ inset: t.bool,
720
+ /**
721
+ * The system prop that allows defining system overrides as well as additional CSS styles.
722
+ */
723
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
724
+ });
725
+ function eo(n) {
726
+ return Lt("MuiAutocomplete", n);
727
+ }
728
+ const l = wt("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"]);
729
+ var St, At;
730
+ const to = (n) => {
731
+ const {
732
+ classes: a,
733
+ disablePortal: c,
734
+ expanded: g,
735
+ focused: D,
736
+ fullWidth: L,
737
+ hasClearIcon: $,
738
+ hasPopupIcon: k,
739
+ inputFocused: j,
740
+ popupOpen: I,
741
+ size: v
742
+ } = n, U = {
743
+ root: ["root", g && "expanded", D && "focused", L && "fullWidth", $ && "hasClearIcon", k && "hasPopupIcon"],
744
+ inputRoot: ["inputRoot"],
745
+ input: ["input", j && "inputFocused"],
746
+ tag: ["tag", `tagSize${Ke(v)}`],
747
+ endAdornment: ["endAdornment"],
748
+ clearIndicator: ["clearIndicator"],
749
+ popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
750
+ popper: ["popper", c && "popperDisablePortal"],
751
+ paper: ["paper"],
752
+ listbox: ["listbox"],
753
+ loading: ["loading"],
754
+ noOptions: ["noOptions"],
755
+ option: ["option"],
756
+ groupLabel: ["groupLabel"],
757
+ groupUl: ["groupUl"]
758
+ };
759
+ return Rt(U, eo, a);
760
+ }, oo = V("div", {
761
+ name: "MuiAutocomplete",
762
+ slot: "Root",
763
+ overridesResolver: (n, a) => {
764
+ const {
765
+ ownerState: c
766
+ } = n, {
767
+ fullWidth: g,
768
+ hasClearIcon: D,
769
+ hasPopupIcon: L,
770
+ inputFocused: $,
771
+ size: k
772
+ } = c;
773
+ return [{
774
+ [`& .${l.tag}`]: a.tag
775
+ }, {
776
+ [`& .${l.tag}`]: a[`tagSize${Ke(k)}`]
777
+ }, {
778
+ [`& .${l.inputRoot}`]: a.inputRoot
779
+ }, {
780
+ [`& .${l.input}`]: a.input
781
+ }, {
782
+ [`& .${l.input}`]: $ && a.inputFocused
783
+ }, a.root, g && a.fullWidth, L && a.hasPopupIcon, D && a.hasClearIcon];
784
+ }
785
+ })({
786
+ [`&.${l.focused} .${l.clearIndicator}`]: {
787
+ visibility: "visible"
788
+ },
789
+ /* Avoid double tap issue on iOS */
790
+ "@media (pointer: fine)": {
791
+ [`&:hover .${l.clearIndicator}`]: {
792
+ visibility: "visible"
793
+ }
794
+ },
795
+ [`& .${l.tag}`]: {
796
+ margin: 3,
797
+ maxWidth: "calc(100% - 6px)"
798
+ },
799
+ [`& .${l.inputRoot}`]: {
800
+ [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
801
+ paddingRight: 30
802
+ },
803
+ [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
804
+ paddingRight: 56
805
+ },
806
+ [`& .${l.input}`]: {
807
+ width: 0,
808
+ minWidth: 30
809
+ }
810
+ },
811
+ [`& .${dt.root}`]: {
812
+ paddingBottom: 1,
813
+ "& .MuiInput-input": {
814
+ padding: "4px 4px 4px 0px"
815
+ }
816
+ },
817
+ [`& .${dt.root}.${ae.sizeSmall}`]: {
818
+ [`& .${dt.input}`]: {
819
+ padding: "2px 4px 3px 0"
820
+ }
821
+ },
822
+ [`& .${vt.root}`]: {
823
+ padding: 9,
824
+ [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
825
+ paddingRight: 39
826
+ },
827
+ [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
828
+ paddingRight: 65
829
+ },
830
+ [`& .${l.input}`]: {
831
+ padding: "7.5px 4px 7.5px 5px"
832
+ },
833
+ [`& .${l.endAdornment}`]: {
834
+ right: 9
835
+ }
836
+ },
837
+ [`& .${vt.root}.${ae.sizeSmall}`]: {
838
+ // Don't specify paddingRight, as it overrides the default value set when there is only
839
+ // one of the popup or clear icon as the specificity is equal so the latter one wins
840
+ paddingTop: 6,
841
+ paddingBottom: 6,
842
+ paddingLeft: 6,
843
+ [`& .${l.input}`]: {
844
+ padding: "2.5px 4px 2.5px 8px"
845
+ }
846
+ },
847
+ [`& .${ge.root}`]: {
848
+ paddingTop: 19,
849
+ paddingLeft: 8,
850
+ [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
851
+ paddingRight: 39
852
+ },
853
+ [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
854
+ paddingRight: 65
855
+ },
856
+ [`& .${ge.input}`]: {
857
+ padding: "7px 4px"
858
+ },
859
+ [`& .${l.endAdornment}`]: {
860
+ right: 9
861
+ }
862
+ },
863
+ [`& .${ge.root}.${ae.sizeSmall}`]: {
864
+ paddingBottom: 1,
865
+ [`& .${ge.input}`]: {
866
+ padding: "2.5px 4px"
867
+ }
868
+ },
869
+ [`& .${ae.hiddenLabel}`]: {
870
+ paddingTop: 8
871
+ },
872
+ [`& .${ge.root}.${ae.hiddenLabel}`]: {
873
+ paddingTop: 0,
874
+ paddingBottom: 0,
875
+ [`& .${l.input}`]: {
876
+ paddingTop: 16,
877
+ paddingBottom: 17
878
+ }
879
+ },
880
+ [`& .${ge.root}.${ae.hiddenLabel}.${ae.sizeSmall}`]: {
881
+ [`& .${l.input}`]: {
882
+ paddingTop: 8,
883
+ paddingBottom: 9
884
+ }
885
+ },
886
+ [`& .${l.input}`]: {
887
+ flexGrow: 1,
888
+ textOverflow: "ellipsis",
889
+ opacity: 0
890
+ },
891
+ variants: [{
892
+ props: {
893
+ fullWidth: !0
894
+ },
895
+ style: {
896
+ width: "100%"
897
+ }
898
+ }, {
899
+ props: {
900
+ size: "small"
901
+ },
902
+ style: {
903
+ [`& .${l.tag}`]: {
904
+ margin: 2,
905
+ maxWidth: "calc(100% - 4px)"
906
+ }
907
+ }
908
+ }, {
909
+ props: {
910
+ inputFocused: !0
911
+ },
912
+ style: {
913
+ [`& .${l.input}`]: {
914
+ opacity: 1
915
+ }
916
+ }
917
+ }, {
918
+ props: {
919
+ multiple: !0
920
+ },
921
+ style: {
922
+ [`& .${l.inputRoot}`]: {
923
+ flexWrap: "wrap"
924
+ }
925
+ }
926
+ }]
927
+ }), no = V("div", {
928
+ name: "MuiAutocomplete",
929
+ slot: "EndAdornment",
930
+ overridesResolver: (n, a) => a.endAdornment
931
+ })({
932
+ // We use a position absolute to support wrapping tags.
933
+ position: "absolute",
934
+ right: 0,
935
+ top: "50%",
936
+ transform: "translate(0, -50%)"
937
+ }), ro = V(Et, {
938
+ name: "MuiAutocomplete",
939
+ slot: "ClearIndicator",
940
+ overridesResolver: (n, a) => a.clearIndicator
941
+ })({
942
+ marginRight: -2,
943
+ padding: 4,
944
+ visibility: "hidden"
945
+ }), ao = V(Et, {
946
+ name: "MuiAutocomplete",
947
+ slot: "PopupIndicator",
948
+ overridesResolver: (n, a) => {
949
+ const {
950
+ ownerState: c
951
+ } = n;
952
+ return [a.popupIndicator, c.popupOpen && a.popupIndicatorOpen];
953
+ }
954
+ })({
955
+ padding: 2,
956
+ marginRight: -2,
957
+ variants: [{
958
+ props: {
959
+ popupOpen: !0
960
+ },
961
+ style: {
962
+ transform: "rotate(180deg)"
963
+ }
964
+ }]
965
+ }), so = V(Nt, {
966
+ name: "MuiAutocomplete",
967
+ slot: "Popper",
968
+ overridesResolver: (n, a) => {
969
+ const {
970
+ ownerState: c
971
+ } = n;
972
+ return [{
973
+ [`& .${l.option}`]: a.option
974
+ }, a.popper, c.disablePortal && a.popperDisablePortal];
975
+ }
976
+ })(se(({
977
+ theme: n
978
+ }) => ({
979
+ zIndex: (n.vars || n).zIndex.modal,
980
+ variants: [{
981
+ props: {
982
+ disablePortal: !0
983
+ },
984
+ style: {
985
+ position: "absolute"
986
+ }
987
+ }]
988
+ }))), io = V(Dt, {
989
+ name: "MuiAutocomplete",
990
+ slot: "Paper",
991
+ overridesResolver: (n, a) => a.paper
992
+ })(se(({
993
+ theme: n
994
+ }) => ({
995
+ ...n.typography.body1,
996
+ overflow: "auto"
997
+ }))), lo = V("div", {
998
+ name: "MuiAutocomplete",
999
+ slot: "Loading",
1000
+ overridesResolver: (n, a) => a.loading
1001
+ })(se(({
1002
+ theme: n
1003
+ }) => ({
1004
+ color: (n.vars || n).palette.text.secondary,
1005
+ padding: "14px 16px"
1006
+ }))), po = V("div", {
1007
+ name: "MuiAutocomplete",
1008
+ slot: "NoOptions",
1009
+ overridesResolver: (n, a) => a.noOptions
1010
+ })(se(({
1011
+ theme: n
1012
+ }) => ({
1013
+ color: (n.vars || n).palette.text.secondary,
1014
+ padding: "14px 16px"
1015
+ }))), uo = V("ul", {
1016
+ name: "MuiAutocomplete",
1017
+ slot: "Listbox",
1018
+ overridesResolver: (n, a) => a.listbox
1019
+ })(se(({
1020
+ theme: n
1021
+ }) => ({
1022
+ listStyle: "none",
1023
+ margin: 0,
1024
+ padding: "8px 0",
1025
+ maxHeight: "40vh",
1026
+ overflow: "auto",
1027
+ position: "relative",
1028
+ [`& .${l.option}`]: {
1029
+ minHeight: 48,
1030
+ display: "flex",
1031
+ overflow: "hidden",
1032
+ justifyContent: "flex-start",
1033
+ alignItems: "center",
1034
+ cursor: "pointer",
1035
+ paddingTop: 6,
1036
+ boxSizing: "border-box",
1037
+ outline: "0",
1038
+ WebkitTapHighlightColor: "transparent",
1039
+ paddingBottom: 6,
1040
+ paddingLeft: 16,
1041
+ paddingRight: 16,
1042
+ [n.breakpoints.up("sm")]: {
1043
+ minHeight: "auto"
1044
+ },
1045
+ [`&.${l.focused}`]: {
1046
+ backgroundColor: (n.vars || n).palette.action.hover,
1047
+ // Reset on touch devices, it doesn't add specificity
1048
+ "@media (hover: none)": {
1049
+ backgroundColor: "transparent"
1050
+ }
1051
+ },
1052
+ '&[aria-disabled="true"]': {
1053
+ opacity: (n.vars || n).palette.action.disabledOpacity,
1054
+ pointerEvents: "none"
1055
+ },
1056
+ [`&.${l.focusVisible}`]: {
1057
+ backgroundColor: (n.vars || n).palette.action.focus
1058
+ },
1059
+ '&[aria-selected="true"]': {
1060
+ backgroundColor: n.vars ? `rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})` : ct(n.palette.primary.main, n.palette.action.selectedOpacity),
1061
+ [`&.${l.focused}`]: {
1062
+ backgroundColor: n.vars ? `rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))` : ct(n.palette.primary.main, n.palette.action.selectedOpacity + n.palette.action.hoverOpacity),
1063
+ // Reset on touch devices, it doesn't add specificity
1064
+ "@media (hover: none)": {
1065
+ backgroundColor: (n.vars || n).palette.action.selected
1066
+ }
1067
+ },
1068
+ [`&.${l.focusVisible}`]: {
1069
+ backgroundColor: n.vars ? `rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))` : ct(n.palette.primary.main, n.palette.action.selectedOpacity + n.palette.action.focusOpacity)
1070
+ }
1071
+ }
1072
+ }
1073
+ }))), co = V(_e, {
1074
+ name: "MuiAutocomplete",
1075
+ slot: "GroupLabel",
1076
+ overridesResolver: (n, a) => a.groupLabel
1077
+ })(se(({
1078
+ theme: n
1079
+ }) => ({
1080
+ backgroundColor: (n.vars || n).palette.background.paper,
1081
+ top: -8
1082
+ }))), fo = V("ul", {
1083
+ name: "MuiAutocomplete",
1084
+ slot: "GroupUl",
1085
+ overridesResolver: (n, a) => a.groupUl
1086
+ })({
1087
+ padding: 0,
1088
+ [`& .${l.option}`]: {
1089
+ paddingLeft: 24
1090
+ }
1091
+ }), go = /* @__PURE__ */ y.forwardRef(function(a, c) {
1092
+ const g = kt({
1093
+ props: a,
1094
+ name: "MuiAutocomplete"
1095
+ }), {
1096
+ autoComplete: D = !1,
1097
+ autoHighlight: L = !1,
1098
+ autoSelect: $ = !1,
1099
+ blurOnSelect: k = !1,
1100
+ ChipProps: j,
1101
+ className: I,
1102
+ clearIcon: v = St || (St = /* @__PURE__ */ A(Ht, {
1103
+ fontSize: "small"
1104
+ })),
1105
+ clearOnBlur: U = !g.freeSolo,
1106
+ clearOnEscape: ie = !1,
1107
+ clearText: R = "Clear",
1108
+ closeText: Se = "Close",
1109
+ componentsProps: Ae,
1110
+ defaultValue: bt = g.multiple ? [] : null,
1111
+ disableClearable: we = !1,
1112
+ disableCloseOnSelect: le = !1,
1113
+ disabled: B = !1,
1114
+ disabledItemsFocusable: Le = !1,
1115
+ disableListWrap: Je = !1,
1116
+ disablePortal: Z = !1,
1117
+ filterOptions: Xe,
1118
+ filterSelectedOptions: mt = !1,
1119
+ forcePopupIcon: be = "auto",
1120
+ freeSolo: ke = !1,
1121
+ fullWidth: K = !1,
1122
+ getLimitTagsText: b = (d) => `+${d}`,
1123
+ getOptionDisabled: Ye,
1124
+ getOptionKey: Qe,
1125
+ getOptionLabel: Re,
1126
+ isOptionEqualToValue: J,
1127
+ groupBy: De,
1128
+ handleHomeEndKeys: ht = !g.freeSolo,
1129
+ id: yt,
1130
+ includeInputInList: xt = !1,
1131
+ inputValue: pe,
1132
+ limitTags: me = -1,
1133
+ ListboxComponent: Ze,
1134
+ ListboxProps: N,
1135
+ loading: P = !1,
1136
+ loadingText: he = "Loading…",
1137
+ multiple: ye = !1,
1138
+ noOptionsText: m = "No options",
1139
+ onChange: E,
1140
+ onClose: xe,
1141
+ onHighlightChange: It,
1142
+ onInputChange: M,
1143
+ onOpen: Ne,
1144
+ open: et,
1145
+ openOnFocus: T = !1,
1146
+ openText: Ee = "Open",
1147
+ options: s,
1148
+ PaperComponent: tt,
1149
+ PopperComponent: f,
1150
+ popupIcon: ue = At || (At = /* @__PURE__ */ A(Ft, {})),
1151
+ readOnly: ee = !1,
1152
+ renderGroup: Me,
1153
+ renderInput: ce,
1154
+ renderOption: X,
1155
+ renderTags: Ie,
1156
+ selectOnFocus: Ot = !g.freeSolo,
1157
+ size: de = "medium",
1158
+ slots: Ve = {},
1159
+ slotProps: w = {},
1160
+ value: h,
1161
+ ...F
1162
+ } = g, {
1163
+ getRootProps: Fe,
1164
+ getInputProps: te,
1165
+ getInputLabelProps: ot,
1166
+ getPopupIndicatorProps: _,
1167
+ getClearProps: H,
1168
+ getTagProps: nt,
1169
+ getListboxProps: Oe,
1170
+ getOptionProps: rt,
1171
+ value: z,
1172
+ dirty: oe,
1173
+ expanded: Y,
1174
+ id: fe,
1175
+ popupOpen: W,
1176
+ focused: He,
1177
+ focusedTag: ze,
1178
+ anchorEl: ne,
1179
+ setAnchorEl: at,
1180
+ inputValue: st,
1181
+ groupedOptions: re
1182
+ } = Xt({
1183
+ ...g,
1184
+ componentName: "Autocomplete"
1185
+ }), Pe = !we && !B && oe && !ee, ve = (!ke || be === !0) && be !== !1, {
1186
+ onMouseDown: it
1187
+ } = te(), {
1188
+ ref: lt,
1189
+ ...pt
1190
+ } = Oe(), Ce = Re || ((d) => d.label ?? d), C = {
1191
+ ...g,
1192
+ disablePortal: Z,
1193
+ expanded: Y,
1194
+ focused: He,
1195
+ fullWidth: K,
1196
+ getOptionLabel: Ce,
1197
+ hasClearIcon: Pe,
1198
+ hasPopupIcon: ve,
1199
+ inputFocused: ze === -1,
1200
+ popupOpen: W,
1201
+ size: de
1202
+ }, O = to(C), G = {
1203
+ slots: {
1204
+ paper: tt,
1205
+ popper: f,
1206
+ ...Ve
1207
+ },
1208
+ slotProps: {
1209
+ chip: j,
1210
+ listbox: N,
1211
+ ...Ae,
1212
+ ...w
1213
+ }
1214
+ }, [je, o] = ft("listbox", {
1215
+ elementType: uo,
1216
+ externalForwardedProps: G,
1217
+ ownerState: C,
1218
+ className: O.listbox,
1219
+ additionalProps: pt,
1220
+ ref: lt
1221
+ }), [e, r] = ft("paper", {
1222
+ elementType: Dt,
1223
+ externalForwardedProps: G,
1224
+ ownerState: C,
1225
+ className: O.paper
1226
+ }), [i, p] = ft("popper", {
1227
+ elementType: Nt,
1228
+ externalForwardedProps: G,
1229
+ ownerState: C,
1230
+ className: O.popper,
1231
+ additionalProps: {
1232
+ disablePortal: Z,
1233
+ style: {
1234
+ width: ne ? ne.clientWidth : null
1235
+ },
1236
+ role: "presentation",
1237
+ anchorEl: ne,
1238
+ open: W
1239
+ }
1240
+ });
1241
+ let u;
1242
+ if (ye && z.length > 0) {
1243
+ const d = (q) => ({
1244
+ className: O.tag,
1245
+ disabled: B,
1246
+ ...nt(q)
1247
+ });
1248
+ Ie ? u = Ie(z, d, C) : u = z.map((q, Q) => {
1249
+ const {
1250
+ key: Te,
1251
+ ...Vt
1252
+ } = d({
1253
+ index: Q
1254
+ });
1255
+ return /* @__PURE__ */ A(Bt, {
1256
+ label: Ce(q),
1257
+ size: de,
1258
+ ...Vt,
1259
+ ...G.slotProps.chip
1260
+ }, Te);
1261
+ });
1262
+ }
1263
+ if (me > -1 && Array.isArray(u)) {
1264
+ const d = u.length - me;
1265
+ !He && d > 0 && (u = u.splice(0, me), u.push(/* @__PURE__ */ A("span", {
1266
+ className: O.tag,
1267
+ children: b(d)
1268
+ }, u.length)));
1269
+ }
1270
+ const S = Me || ((d) => /* @__PURE__ */ We("li", {
1271
+ children: [/* @__PURE__ */ A(co, {
1272
+ className: O.groupLabel,
1273
+ ownerState: C,
1274
+ component: "div",
1275
+ children: d.group
1276
+ }), /* @__PURE__ */ A(fo, {
1277
+ className: O.groupUl,
1278
+ ownerState: C,
1279
+ children: d.children
1280
+ })]
1281
+ }, d.key)), Mt = X || ((d, q) => {
1282
+ const {
1283
+ key: Q,
1284
+ ...Te
1285
+ } = d;
1286
+ return /* @__PURE__ */ A("li", {
1287
+ ...Te,
1288
+ children: Ce(q)
1289
+ }, Q);
1290
+ }), Pt = (d, q) => {
1291
+ const Q = rt({
1292
+ option: d,
1293
+ index: q
1294
+ });
1295
+ return Mt({
1296
+ ...Q,
1297
+ className: O.option
1298
+ }, d, {
1299
+ selected: Q["aria-selected"],
1300
+ index: q,
1301
+ inputValue: st
1302
+ }, C);
1303
+ }, Ue = G.slotProps.clearIndicator, Be = G.slotProps.popupIndicator;
1304
+ return /* @__PURE__ */ We(y.Fragment, {
1305
+ children: [/* @__PURE__ */ A(oo, {
1306
+ ref: c,
1307
+ className: qe(O.root, I),
1308
+ ownerState: C,
1309
+ ...Fe(F),
1310
+ children: ce({
1311
+ id: fe,
1312
+ disabled: B,
1313
+ fullWidth: !0,
1314
+ size: de === "small" ? "small" : void 0,
1315
+ InputLabelProps: ot(),
1316
+ InputProps: {
1317
+ ref: at,
1318
+ className: O.inputRoot,
1319
+ startAdornment: u,
1320
+ onMouseDown: (d) => {
1321
+ d.target === d.currentTarget && it(d);
1322
+ },
1323
+ ...(Pe || ve) && {
1324
+ endAdornment: /* @__PURE__ */ We(no, {
1325
+ className: O.endAdornment,
1326
+ ownerState: C,
1327
+ children: [Pe ? /* @__PURE__ */ A(ro, {
1328
+ ...H(),
1329
+ "aria-label": R,
1330
+ title: R,
1331
+ ownerState: C,
1332
+ ...Ue,
1333
+ className: qe(O.clearIndicator, Ue == null ? void 0 : Ue.className),
1334
+ children: v
1335
+ }) : null, ve ? /* @__PURE__ */ A(ao, {
1336
+ ..._(),
1337
+ disabled: B,
1338
+ "aria-label": W ? Se : Ee,
1339
+ title: W ? Se : Ee,
1340
+ ownerState: C,
1341
+ ...Be,
1342
+ className: qe(O.popupIndicator, Be == null ? void 0 : Be.className),
1343
+ children: ue
1344
+ }) : null]
1345
+ })
1346
+ }
1347
+ },
1348
+ inputProps: {
1349
+ className: O.input,
1350
+ disabled: B,
1351
+ readOnly: ee,
1352
+ ...te()
1353
+ }
1354
+ })
1355
+ }), ne ? /* @__PURE__ */ A(so, {
1356
+ as: i,
1357
+ ...p,
1358
+ children: /* @__PURE__ */ We(io, {
1359
+ as: e,
1360
+ ...r,
1361
+ children: [P && re.length === 0 ? /* @__PURE__ */ A(lo, {
1362
+ className: O.loading,
1363
+ ownerState: C,
1364
+ children: he
1365
+ }) : null, re.length === 0 && !ke && !P ? /* @__PURE__ */ A(po, {
1366
+ className: O.noOptions,
1367
+ ownerState: C,
1368
+ role: "presentation",
1369
+ onMouseDown: (d) => {
1370
+ d.preventDefault();
1371
+ },
1372
+ children: m
1373
+ }) : null, re.length > 0 ? /* @__PURE__ */ A(je, {
1374
+ as: Ze,
1375
+ ...o,
1376
+ children: re.map((d, q) => De ? S({
1377
+ key: d.key,
1378
+ group: d.group,
1379
+ children: d.options.map((Q, Te) => Pt(Q, d.index + Te))
1380
+ }) : Pt(d, q))
1381
+ }) : null]
1382
+ })
1383
+ }) : null]
1384
+ });
1385
+ });
1386
+ process.env.NODE_ENV !== "production" && (go.propTypes = {
1387
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1388
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1389
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1390
+ // └─────────────────────────────────────────────────────────────────────┘
1391
+ /**
1392
+ * If `true`, the portion of the selected suggestion that the user hasn't typed,
1393
+ * known as the completion string, appears inline after the input cursor in the textbox.
1394
+ * The inline completion string is visually highlighted and has a selected state.
1395
+ * @default false
1396
+ */
1397
+ autoComplete: t.bool,
1398
+ /**
1399
+ * If `true`, the first option is automatically highlighted.
1400
+ * @default false
1401
+ */
1402
+ autoHighlight: t.bool,
1403
+ /**
1404
+ * If `true`, the selected option becomes the value of the input
1405
+ * when the Autocomplete loses focus unless the user chooses
1406
+ * a different option or changes the character string in the input.
1407
+ *
1408
+ * When using the `freeSolo` mode, the typed value will be the input value
1409
+ * if the Autocomplete loses focus without highlighting an option.
1410
+ * @default false
1411
+ */
1412
+ autoSelect: t.bool,
1413
+ /**
1414
+ * Control if the input should be blurred when an option is selected:
1415
+ *
1416
+ * - `false` the input is not blurred.
1417
+ * - `true` the input is always blurred.
1418
+ * - `touch` the input is blurred after a touch event.
1419
+ * - `mouse` the input is blurred after a mouse event.
1420
+ * @default false
1421
+ */
1422
+ blurOnSelect: t.oneOfType([t.oneOf(["mouse", "touch"]), t.bool]),
1423
+ /**
1424
+ * Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
1425
+ * @deprecated Use `slotProps.chip` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1426
+ */
1427
+ ChipProps: t.object,
1428
+ /**
1429
+ * Override or extend the styles applied to the component.
1430
+ */
1431
+ classes: t.object,
1432
+ /**
1433
+ * @ignore
1434
+ */
1435
+ className: t.string,
1436
+ /**
1437
+ * The icon to display in place of the default clear icon.
1438
+ * @default <ClearIcon fontSize="small" />
1439
+ */
1440
+ clearIcon: t.node,
1441
+ /**
1442
+ * If `true`, the input's text is cleared on blur if no value is selected.
1443
+ *
1444
+ * Set it to `true` if you want to help the user enter a new value.
1445
+ * Set it to `false` if you want to help the user resume their search.
1446
+ * @default !props.freeSolo
1447
+ */
1448
+ clearOnBlur: t.bool,
1449
+ /**
1450
+ * If `true`, clear all values when the user presses escape and the popup is closed.
1451
+ * @default false
1452
+ */
1453
+ clearOnEscape: t.bool,
1454
+ /**
1455
+ * Override the default text for the *clear* icon button.
1456
+ *
1457
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1458
+ * @default 'Clear'
1459
+ */
1460
+ clearText: t.string,
1461
+ /**
1462
+ * Override the default text for the *close popup* icon button.
1463
+ *
1464
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1465
+ * @default 'Close'
1466
+ */
1467
+ closeText: t.string,
1468
+ /**
1469
+ * The props used for each slot inside.
1470
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1471
+ */
1472
+ componentsProps: t.shape({
1473
+ clearIndicator: t.object,
1474
+ paper: t.object,
1475
+ popper: t.object,
1476
+ popupIndicator: t.object
1477
+ }),
1478
+ /**
1479
+ * The default value. Use when the component is not controlled.
1480
+ * @default props.multiple ? [] : null
1481
+ */
1482
+ defaultValue: Ct(t.any, (n) => n.multiple && n.defaultValue !== void 0 && !Array.isArray(n.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${n.defaultValue} was provided.`].join(`
1483
+ `)) : null),
1484
+ /**
1485
+ * If `true`, the input can't be cleared.
1486
+ * @default false
1487
+ */
1488
+ disableClearable: t.bool,
1489
+ /**
1490
+ * If `true`, the popup won't close when a value is selected.
1491
+ * @default false
1492
+ */
1493
+ disableCloseOnSelect: t.bool,
1494
+ /**
1495
+ * If `true`, the component is disabled.
1496
+ * @default false
1497
+ */
1498
+ disabled: t.bool,
1499
+ /**
1500
+ * If `true`, will allow focus on disabled items.
1501
+ * @default false
1502
+ */
1503
+ disabledItemsFocusable: t.bool,
1504
+ /**
1505
+ * If `true`, the list box in the popup will not wrap focus.
1506
+ * @default false
1507
+ */
1508
+ disableListWrap: t.bool,
1509
+ /**
1510
+ * If `true`, the `Popper` content will be under the DOM hierarchy of the parent component.
1511
+ * @default false
1512
+ */
1513
+ disablePortal: t.bool,
1514
+ /**
1515
+ * A function that determines the filtered options to be rendered on search.
1516
+ *
1517
+ * @default createFilterOptions()
1518
+ * @param {Value[]} options The options to render.
1519
+ * @param {object} state The state of the component.
1520
+ * @returns {Value[]}
1521
+ */
1522
+ filterOptions: t.func,
1523
+ /**
1524
+ * If `true`, hide the selected options from the list box.
1525
+ * @default false
1526
+ */
1527
+ filterSelectedOptions: t.bool,
1528
+ /**
1529
+ * Force the visibility display of the popup icon.
1530
+ * @default 'auto'
1531
+ */
1532
+ forcePopupIcon: t.oneOfType([t.oneOf(["auto"]), t.bool]),
1533
+ /**
1534
+ * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
1535
+ * @default false
1536
+ */
1537
+ freeSolo: t.bool,
1538
+ /**
1539
+ * If `true`, the input will take up the full width of its container.
1540
+ * @default false
1541
+ */
1542
+ fullWidth: t.bool,
1543
+ /**
1544
+ * The label to display when the tags are truncated (`limitTags`).
1545
+ *
1546
+ * @param {number} more The number of truncated tags.
1547
+ * @returns {ReactNode}
1548
+ * @default (more) => `+${more}`
1549
+ */
1550
+ getLimitTagsText: t.func,
1551
+ /**
1552
+ * Used to determine the disabled state for a given option.
1553
+ *
1554
+ * @param {Value} option The option to test.
1555
+ * @returns {boolean}
1556
+ */
1557
+ getOptionDisabled: t.func,
1558
+ /**
1559
+ * Used to determine the key for a given option.
1560
+ * This can be useful when the labels of options are not unique (since labels are used as keys by default).
1561
+ *
1562
+ * @param {Value} option The option to get the key for.
1563
+ * @returns {string | number}
1564
+ */
1565
+ getOptionKey: t.func,
1566
+ /**
1567
+ * Used to determine the string value for a given option.
1568
+ * It's used to fill the input (and the list box options if `renderOption` is not provided).
1569
+ *
1570
+ * If used in free solo mode, it must accept both the type of the options and a string.
1571
+ *
1572
+ * @param {Value} option
1573
+ * @returns {string}
1574
+ * @default (option) => option.label ?? option
1575
+ */
1576
+ getOptionLabel: t.func,
1577
+ /**
1578
+ * If provided, the options will be grouped under the returned string.
1579
+ * The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
1580
+ *
1581
+ * @param {Value} option The Autocomplete option.
1582
+ * @returns {string}
1583
+ */
1584
+ groupBy: t.func,
1585
+ /**
1586
+ * If `true`, the component handles the "Home" and "End" keys when the popup is open.
1587
+ * It should move focus to the first option and last option, respectively.
1588
+ * @default !props.freeSolo
1589
+ */
1590
+ handleHomeEndKeys: t.bool,
1591
+ /**
1592
+ * This prop is used to help implement the accessibility logic.
1593
+ * If you don't provide an id it will fall back to a randomly generated one.
1594
+ */
1595
+ id: t.string,
1596
+ /**
1597
+ * If `true`, the highlight can move to the input.
1598
+ * @default false
1599
+ */
1600
+ includeInputInList: t.bool,
1601
+ /**
1602
+ * The input value.
1603
+ */
1604
+ inputValue: t.string,
1605
+ /**
1606
+ * Used to determine if the option represents the given value.
1607
+ * Uses strict equality by default.
1608
+ * ⚠️ Both arguments need to be handled, an option can only match with one value.
1609
+ *
1610
+ * @param {Value} option The option to test.
1611
+ * @param {Value} value The value to test against.
1612
+ * @returns {boolean}
1613
+ */
1614
+ isOptionEqualToValue: t.func,
1615
+ /**
1616
+ * The maximum number of tags that will be visible when not focused.
1617
+ * Set `-1` to disable the limit.
1618
+ * @default -1
1619
+ */
1620
+ limitTags: Ut,
1621
+ /**
1622
+ * The component used to render the listbox.
1623
+ * @default 'ul'
1624
+ * @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1625
+ */
1626
+ ListboxComponent: t.elementType,
1627
+ /**
1628
+ * Props applied to the Listbox element.
1629
+ * @deprecated Use `slotProps.listbox` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1630
+ */
1631
+ ListboxProps: t.object,
1632
+ /**
1633
+ * If `true`, the component is in a loading state.
1634
+ * This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, for example `options` are empty).
1635
+ * @default false
1636
+ */
1637
+ loading: t.bool,
1638
+ /**
1639
+ * Text to display when in a loading state.
1640
+ *
1641
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1642
+ * @default 'Loading…'
1643
+ */
1644
+ loadingText: t.node,
1645
+ /**
1646
+ * If `true`, `value` must be an array and the menu will support multiple selections.
1647
+ * @default false
1648
+ */
1649
+ multiple: t.bool,
1650
+ /**
1651
+ * Text to display when there are no options.
1652
+ *
1653
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1654
+ * @default 'No options'
1655
+ */
1656
+ noOptionsText: t.node,
1657
+ /**
1658
+ * Callback fired when the value changes.
1659
+ *
1660
+ * @param {React.SyntheticEvent} event The event source of the callback.
1661
+ * @param {Value|Value[]} value The new value of the component.
1662
+ * @param {string} reason One of "createOption", "selectOption", "removeOption", "blur" or "clear".
1663
+ * @param {string} [details]
1664
+ */
1665
+ onChange: t.func,
1666
+ /**
1667
+ * Callback fired when the popup requests to be closed.
1668
+ * Use in controlled mode (see open).
1669
+ *
1670
+ * @param {React.SyntheticEvent} event The event source of the callback.
1671
+ * @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"selectOption"`, `"removeOption"`, `"blur"`.
1672
+ */
1673
+ onClose: t.func,
1674
+ /**
1675
+ * Callback fired when the highlight option changes.
1676
+ *
1677
+ * @param {React.SyntheticEvent} event The event source of the callback.
1678
+ * @param {Value} option The highlighted option.
1679
+ * @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`, `"touch"`.
1680
+ */
1681
+ onHighlightChange: t.func,
1682
+ /**
1683
+ * Callback fired when the input value changes.
1684
+ *
1685
+ * @param {React.SyntheticEvent} event The event source of the callback.
1686
+ * @param {string} value The new value of the text input.
1687
+ * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`, `"blur"`, `"selectOption"`, `"removeOption"`
1688
+ */
1689
+ onInputChange: t.func,
1690
+ /**
1691
+ * @ignore
1692
+ */
1693
+ onKeyDown: t.func,
1694
+ /**
1695
+ * Callback fired when the popup requests to be opened.
1696
+ * Use in controlled mode (see open).
1697
+ *
1698
+ * @param {React.SyntheticEvent} event The event source of the callback.
1699
+ */
1700
+ onOpen: t.func,
1701
+ /**
1702
+ * If `true`, the component is shown.
1703
+ */
1704
+ open: t.bool,
1705
+ /**
1706
+ * If `true`, the popup will open on input focus.
1707
+ * @default false
1708
+ */
1709
+ openOnFocus: t.bool,
1710
+ /**
1711
+ * Override the default text for the *open popup* icon button.
1712
+ *
1713
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1714
+ * @default 'Open'
1715
+ */
1716
+ openText: t.string,
1717
+ /**
1718
+ * A list of options that will be shown in the Autocomplete.
1719
+ */
1720
+ options: t.array.isRequired,
1721
+ /**
1722
+ * The component used to render the body of the popup.
1723
+ * @default Paper
1724
+ * @deprecated Use `slots.paper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1725
+ */
1726
+ PaperComponent: t.elementType,
1727
+ /**
1728
+ * The component used to position the popup.
1729
+ * @default Popper
1730
+ * @deprecated Use `slots.popper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1731
+ */
1732
+ PopperComponent: t.elementType,
1733
+ /**
1734
+ * The icon to display in place of the default popup icon.
1735
+ * @default <ArrowDropDownIcon />
1736
+ */
1737
+ popupIcon: t.node,
1738
+ /**
1739
+ * If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
1740
+ * @default false
1741
+ */
1742
+ readOnly: t.bool,
1743
+ /**
1744
+ * Render the group.
1745
+ *
1746
+ * @param {AutocompleteRenderGroupParams} params The group to render.
1747
+ * @returns {ReactNode}
1748
+ */
1749
+ renderGroup: t.func,
1750
+ /**
1751
+ * Render the input.
1752
+ *
1753
+ * @param {object} params
1754
+ * @returns {ReactNode}
1755
+ */
1756
+ renderInput: t.func.isRequired,
1757
+ /**
1758
+ * Render the option, use `getOptionLabel` by default.
1759
+ *
1760
+ * @param {object} props The props to apply on the li element.
1761
+ * @param {Value} option The option to render.
1762
+ * @param {object} state The state of each option.
1763
+ * @param {object} ownerState The state of the Autocomplete component.
1764
+ * @returns {ReactNode}
1765
+ */
1766
+ renderOption: t.func,
1767
+ /**
1768
+ * Render the selected value.
1769
+ *
1770
+ * @param {Value[]} value The `value` provided to the component.
1771
+ * @param {function} getTagProps A tag props getter.
1772
+ * @param {object} ownerState The state of the Autocomplete component.
1773
+ * @returns {ReactNode}
1774
+ */
1775
+ renderTags: t.func,
1776
+ /**
1777
+ * If `true`, the input's text is selected on focus.
1778
+ * It helps the user clear the selected value.
1779
+ * @default !props.freeSolo
1780
+ */
1781
+ selectOnFocus: t.bool,
1782
+ /**
1783
+ * The size of the component.
1784
+ * @default 'medium'
1785
+ */
1786
+ size: t.oneOfType([t.oneOf(["small", "medium"]), t.string]),
1787
+ /**
1788
+ * The props used for each slot inside.
1789
+ * @default {}
1790
+ */
1791
+ slotProps: t.shape({
1792
+ chip: t.oneOfType([t.func, t.object]),
1793
+ clearIndicator: t.oneOfType([t.func, t.object]),
1794
+ listbox: t.oneOfType([t.func, t.object]),
1795
+ paper: t.oneOfType([t.func, t.object]),
1796
+ popper: t.oneOfType([t.func, t.object]),
1797
+ popupIndicator: t.oneOfType([t.func, t.object])
1798
+ }),
1799
+ /**
1800
+ * The components used for each slot inside.
1801
+ * @default {}
1802
+ */
1803
+ slots: t.shape({
1804
+ listbox: t.elementType,
1805
+ paper: t.elementType,
1806
+ popper: t.elementType
1807
+ }),
1808
+ /**
1809
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1810
+ */
1811
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
1812
+ /**
1813
+ * The value of the autocomplete.
1814
+ *
1815
+ * The value must have reference equality with the option in order to be selected.
1816
+ * You can customize the equality behavior with the `isOptionEqualToValue` prop.
1817
+ */
1818
+ value: Ct(t.any, (n) => n.multiple && n.value !== void 0 && !Array.isArray(n.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${n.value} was provided.`].join(`
1819
+ `)) : null)
1820
+ });
1821
+ export {
1822
+ go as A,
1823
+ _e as L,
1824
+ l as a,
1825
+ Yt as b,
1826
+ Gt as c,
1827
+ eo as g,
1828
+ Do as l
1829
+ };