@solostylist/ui-kit 1.0.57 → 1.0.59

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.
Files changed (40) hide show
  1. package/dist/{Box-MoP3r0T2.js → Box-DuNveqKq.js} +1 -1
  2. package/dist/{Close-DLG48sGB.js → Close-Dc2lVwnr.js} +1 -1
  3. package/dist/{HelpOutlineOutlined-CBZQGWGK.js → HelpOutlineOutlined-BAjVLccf.js} +1 -1
  4. package/dist/{Menu-Y8dE9GrA.js → Menu-CFtdt9_b.js} +22 -8
  5. package/dist/MenuItem-Bqce0qet.js +261 -0
  6. package/dist/Select-D539S2ky.js +3917 -0
  7. package/dist/{Stack-DT2aopM5.js → Stack-CG6wicnq.js} +69 -91
  8. package/dist/{Typography-BXwj4yQZ.js → Typography-Bj_bEcQU.js} +2 -2
  9. package/dist/chipClasses-DKfDKFnh.js +10 -0
  10. package/dist/{createSvgIcon-YtxTUNwI.js → createSvgIcon-ChpOI-a_.js} +217 -213
  11. package/dist/{index-GaV7LHxy.js → index-Cuc5JxMf.js} +4 -4
  12. package/dist/main.d.ts +4 -0
  13. package/dist/main.js +35 -32
  14. package/dist/s-data-table/s-data-table.js +2 -2
  15. package/dist/s-datetime-picker/index.d.ts +4 -0
  16. package/dist/s-datetime-picker/index.js +5 -0
  17. package/dist/s-datetime-picker/package.json +5 -0
  18. package/dist/s-datetime-picker/s-datetime-picker.d.ts +15 -0
  19. package/dist/s-datetime-picker/s-datetime-picker.js +18763 -0
  20. package/dist/s-dialog/s-dialog.js +1 -1
  21. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  22. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  23. package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
  24. package/dist/s-file-icon/s-file-icon.js +1 -1
  25. package/dist/s-form/s-form.js +1 -1
  26. package/dist/s-label/s-label.js +1 -1
  27. package/dist/s-multi-select/s-multi-select.js +50 -298
  28. package/dist/s-text-editor/s-text-editor-toolbar.js +100 -4001
  29. package/dist/s-text-editor/s-text-editor.js +1 -1
  30. package/dist/s-tip/s-tip.js +3 -3
  31. package/dist/tabClasses-BM7nwRzw.js +10 -0
  32. package/dist/theme/components/avatar.js +1 -1
  33. package/dist/theme/customizations/data-display.js +36 -36
  34. package/dist/theme/customizations/inputs.js +1 -1
  35. package/dist/theme/customizations/navigation.js +52 -50
  36. package/dist/{useSlot-GW4ou7g5.js → useSlot-Dje0rInB.js} +1 -1
  37. package/dist/{useTheme-vk3BYrgD.js → useTheme-BM5dU4pp.js} +3 -2
  38. package/dist/useThemeProps-kZjTQ980.js +27 -0
  39. package/dist/utils/dayjs.js +14 -14
  40. package/package.json +4 -3
@@ -0,0 +1,3917 @@
1
+ import * as i from "react";
2
+ import { g as Se, c as $, P as e, a as co, l as zo, p as wo, j as Je } from "./createTheme-CozHbEju.js";
3
+ import { g as xe, c as ie } from "./identifier-9JFYVRsR.js";
4
+ import { F as Io, u as uo, a as Qe } from "./useFormControl-B3RPiDsz.js";
5
+ import { j as m } from "./jsx-runtime-C5mzlN2N.js";
6
+ import { u as ae, a as N, b as Y, m as V, f as me, g as Do, c as Lo } from "./createSvgIcon-ChpOI-a_.js";
7
+ import { c as Ce } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
8
+ import { g as Uo, i as po } from "./iconButtonClasses-Ba5VdL62.js";
9
+ import { c as Ro, B as Vo, r as Oe, u as Me, b as Ho, e as _o, a as qo } from "./useSlot-Dje0rInB.js";
10
+ import { css as To, keyframes as No } from "@emotion/react";
11
+ import { o as Ko, M as Go, a as fo, d as Xo, i as mo, g as Yo } from "./Menu-CFtdt9_b.js";
12
+ import { i as ke, g as Zo, a as Jo, o as X } from "./outlinedInputClasses-MXXlnR_X.js";
13
+ import { g as Qo } from "./index-Cuc5JxMf.js";
14
+ import { u as Xe } from "./useEnhancedEffect-CJGo-L3B.js";
15
+ function Ge(o, t) {
16
+ var n, r, s;
17
+ return /* @__PURE__ */ i.isValidElement(o) && t.indexOf(
18
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
19
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
20
+ // eslint-disable-next-line no-underscore-dangle
21
+ o.type.muiName ?? ((s = (r = (n = o.type) == null ? void 0 : n._payload) == null ? void 0 : r.value) == null ? void 0 : s.muiName)
22
+ ) !== -1;
23
+ }
24
+ let bo = 0;
25
+ function et(o) {
26
+ const [t, n] = i.useState(o), r = o || t;
27
+ return i.useEffect(() => {
28
+ t == null && (bo += 1, n(`mui-${bo}`));
29
+ }, [t]), r;
30
+ }
31
+ const ot = {
32
+ ...i
33
+ }, go = ot.useId;
34
+ function jo(o) {
35
+ if (go !== void 0) {
36
+ const t = go();
37
+ return o ?? t;
38
+ }
39
+ return et(o);
40
+ }
41
+ function yo(o) {
42
+ return o != null && !(Array.isArray(o) && o.length === 0);
43
+ }
44
+ function Be(o, t = !1) {
45
+ return o && (yo(o.value) && o.value !== "" || t && yo(o.defaultValue) && o.defaultValue !== "");
46
+ }
47
+ function tt(o) {
48
+ return o.startAdornment;
49
+ }
50
+ function nt(o) {
51
+ return Se("MuiFormControl", o);
52
+ }
53
+ xe("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
54
+ const rt = (o) => {
55
+ const {
56
+ classes: t,
57
+ margin: n,
58
+ fullWidth: r
59
+ } = o, s = {
60
+ root: ["root", n !== "none" && `margin${$(n)}`, r && "fullWidth"]
61
+ };
62
+ return Y(s, nt, t);
63
+ }, st = N("div", {
64
+ name: "MuiFormControl",
65
+ slot: "Root",
66
+ overridesResolver: (o, t) => {
67
+ const {
68
+ ownerState: n
69
+ } = o;
70
+ return [t.root, t[`margin${$(n.margin)}`], n.fullWidth && t.fullWidth];
71
+ }
72
+ })({
73
+ display: "inline-flex",
74
+ flexDirection: "column",
75
+ position: "relative",
76
+ // Reset fieldset default style.
77
+ minWidth: 0,
78
+ padding: 0,
79
+ margin: 0,
80
+ border: 0,
81
+ verticalAlign: "top",
82
+ // Fix alignment issue on Safari.
83
+ variants: [{
84
+ props: {
85
+ margin: "normal"
86
+ },
87
+ style: {
88
+ marginTop: 16,
89
+ marginBottom: 8
90
+ }
91
+ }, {
92
+ props: {
93
+ margin: "dense"
94
+ },
95
+ style: {
96
+ marginTop: 8,
97
+ marginBottom: 4
98
+ }
99
+ }, {
100
+ props: {
101
+ fullWidth: !0
102
+ },
103
+ style: {
104
+ width: "100%"
105
+ }
106
+ }]
107
+ }), it = /* @__PURE__ */ i.forwardRef(function(t, n) {
108
+ const r = ae({
109
+ props: t,
110
+ name: "MuiFormControl"
111
+ }), {
112
+ children: s,
113
+ className: l,
114
+ color: a = "primary",
115
+ component: u = "div",
116
+ disabled: v = !1,
117
+ error: y = !1,
118
+ focused: f,
119
+ fullWidth: h = !1,
120
+ hiddenLabel: b = !1,
121
+ margin: S = "none",
122
+ required: w = !1,
123
+ size: T = "medium",
124
+ variant: g = "outlined",
125
+ ...I
126
+ } = r, x = {
127
+ ...r,
128
+ color: a,
129
+ component: u,
130
+ disabled: v,
131
+ error: y,
132
+ fullWidth: h,
133
+ hiddenLabel: b,
134
+ margin: S,
135
+ required: w,
136
+ size: T,
137
+ variant: g
138
+ }, c = rt(x), [p, E] = i.useState(() => {
139
+ let K = !1;
140
+ return s && i.Children.forEach(s, (B) => {
141
+ if (!Ge(B, ["Input", "Select"]))
142
+ return;
143
+ const q = Ge(B, ["Select"]) ? B.props.input : B;
144
+ q && tt(q.props) && (K = !0);
145
+ }), K;
146
+ }), [O, L] = i.useState(() => {
147
+ let K = !1;
148
+ return s && i.Children.forEach(s, (B) => {
149
+ Ge(B, ["Input", "Select"]) && (Be(B.props, !0) || Be(B.props.inputProps, !0)) && (K = !0);
150
+ }), K;
151
+ }), [H, _] = i.useState(!1);
152
+ v && H && _(!1);
153
+ const A = f !== void 0 && !v ? f : H;
154
+ let W;
155
+ const P = i.useRef(!1);
156
+ process.env.NODE_ENV !== "production" && (W = () => (P.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
157
+ `)), P.current = !0, () => {
158
+ P.current = !1;
159
+ }));
160
+ const F = i.useCallback(() => {
161
+ L(!0);
162
+ }, []), z = i.useCallback(() => {
163
+ L(!1);
164
+ }, []), le = i.useMemo(() => ({
165
+ adornedStart: p,
166
+ setAdornedStart: E,
167
+ color: a,
168
+ disabled: v,
169
+ error: y,
170
+ filled: O,
171
+ focused: A,
172
+ fullWidth: h,
173
+ hiddenLabel: b,
174
+ size: T,
175
+ onBlur: () => {
176
+ _(!1);
177
+ },
178
+ onFocus: () => {
179
+ _(!0);
180
+ },
181
+ onEmpty: z,
182
+ onFilled: F,
183
+ registerEffect: W,
184
+ required: w,
185
+ variant: g
186
+ }), [p, a, v, y, O, A, h, b, W, z, F, w, T, g]);
187
+ return /* @__PURE__ */ m.jsx(Io.Provider, {
188
+ value: le,
189
+ children: /* @__PURE__ */ m.jsx(st, {
190
+ as: u,
191
+ ownerState: x,
192
+ className: ie(c.root, l),
193
+ ref: n,
194
+ ...I,
195
+ children: s
196
+ })
197
+ });
198
+ });
199
+ process.env.NODE_ENV !== "production" && (it.propTypes = {
200
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
201
+ // │ These PropTypes are generated from the TypeScript type definitions. │
202
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
203
+ // └─────────────────────────────────────────────────────────────────────┘
204
+ /**
205
+ * The content of the component.
206
+ */
207
+ children: e.node,
208
+ /**
209
+ * Override or extend the styles applied to the component.
210
+ */
211
+ classes: e.object,
212
+ /**
213
+ * @ignore
214
+ */
215
+ className: e.string,
216
+ /**
217
+ * The color of the component.
218
+ * It supports both default and custom theme colors, which can be added as shown in the
219
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
220
+ * @default 'primary'
221
+ */
222
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
223
+ /**
224
+ * The component used for the root node.
225
+ * Either a string to use a HTML element or a component.
226
+ */
227
+ component: e.elementType,
228
+ /**
229
+ * If `true`, the label, input and helper text should be displayed in a disabled state.
230
+ * @default false
231
+ */
232
+ disabled: e.bool,
233
+ /**
234
+ * If `true`, the label is displayed in an error state.
235
+ * @default false
236
+ */
237
+ error: e.bool,
238
+ /**
239
+ * If `true`, the component is displayed in focused state.
240
+ */
241
+ focused: e.bool,
242
+ /**
243
+ * If `true`, the component will take up the full width of its container.
244
+ * @default false
245
+ */
246
+ fullWidth: e.bool,
247
+ /**
248
+ * If `true`, the label is hidden.
249
+ * This is used to increase density for a `FilledInput`.
250
+ * Be sure to add `aria-label` to the `input` element.
251
+ * @default false
252
+ */
253
+ hiddenLabel: e.bool,
254
+ /**
255
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
256
+ * @default 'none'
257
+ */
258
+ margin: e.oneOf(["dense", "none", "normal"]),
259
+ /**
260
+ * If `true`, the label will indicate that the `input` is required.
261
+ * @default false
262
+ */
263
+ required: e.bool,
264
+ /**
265
+ * The size of the component.
266
+ * @default 'medium'
267
+ */
268
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
269
+ /**
270
+ * The system prop that allows defining system overrides as well as additional CSS styles.
271
+ */
272
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
273
+ /**
274
+ * The variant to use.
275
+ * @default 'outlined'
276
+ */
277
+ variant: e.oneOf(["filled", "outlined", "standard"])
278
+ });
279
+ function at(o) {
280
+ return Se("MuiCircularProgress", o);
281
+ }
282
+ xe("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
283
+ const se = 44, Ye = No`
284
+ 0% {
285
+ transform: rotate(0deg);
286
+ }
287
+
288
+ 100% {
289
+ transform: rotate(360deg);
290
+ }
291
+ `, Ze = No`
292
+ 0% {
293
+ stroke-dasharray: 1px, 200px;
294
+ stroke-dashoffset: 0;
295
+ }
296
+
297
+ 50% {
298
+ stroke-dasharray: 100px, 200px;
299
+ stroke-dashoffset: -15px;
300
+ }
301
+
302
+ 100% {
303
+ stroke-dasharray: 1px, 200px;
304
+ stroke-dashoffset: -126px;
305
+ }
306
+ `, lt = typeof Ye != "string" ? To`
307
+ animation: ${Ye} 1.4s linear infinite;
308
+ ` : null, dt = typeof Ze != "string" ? To`
309
+ animation: ${Ze} 1.4s ease-in-out infinite;
310
+ ` : null, ct = (o) => {
311
+ const {
312
+ classes: t,
313
+ variant: n,
314
+ color: r,
315
+ disableShrink: s
316
+ } = o, l = {
317
+ root: ["root", n, `color${$(r)}`],
318
+ svg: ["svg"],
319
+ circle: ["circle", `circle${$(n)}`, s && "circleDisableShrink"]
320
+ };
321
+ return Y(l, at, t);
322
+ }, ut = N("span", {
323
+ name: "MuiCircularProgress",
324
+ slot: "Root",
325
+ overridesResolver: (o, t) => {
326
+ const {
327
+ ownerState: n
328
+ } = o;
329
+ return [t.root, t[n.variant], t[`color${$(n.color)}`]];
330
+ }
331
+ })(V(({
332
+ theme: o
333
+ }) => ({
334
+ display: "inline-block",
335
+ variants: [{
336
+ props: {
337
+ variant: "determinate"
338
+ },
339
+ style: {
340
+ transition: o.transitions.create("transform")
341
+ }
342
+ }, {
343
+ props: {
344
+ variant: "indeterminate"
345
+ },
346
+ style: lt || {
347
+ animation: `${Ye} 1.4s linear infinite`
348
+ }
349
+ }, ...Object.entries(o.palette).filter(Ce()).map(([t]) => ({
350
+ props: {
351
+ color: t
352
+ },
353
+ style: {
354
+ color: (o.vars || o).palette[t].main
355
+ }
356
+ }))]
357
+ }))), pt = N("svg", {
358
+ name: "MuiCircularProgress",
359
+ slot: "Svg"
360
+ })({
361
+ display: "block"
362
+ // Keeps the progress centered
363
+ }), ft = N("circle", {
364
+ name: "MuiCircularProgress",
365
+ slot: "Circle",
366
+ overridesResolver: (o, t) => {
367
+ const {
368
+ ownerState: n
369
+ } = o;
370
+ return [t.circle, t[`circle${$(n.variant)}`], n.disableShrink && t.circleDisableShrink];
371
+ }
372
+ })(V(({
373
+ theme: o
374
+ }) => ({
375
+ stroke: "currentColor",
376
+ variants: [{
377
+ props: {
378
+ variant: "determinate"
379
+ },
380
+ style: {
381
+ transition: o.transitions.create("stroke-dashoffset")
382
+ }
383
+ }, {
384
+ props: {
385
+ variant: "indeterminate"
386
+ },
387
+ style: {
388
+ // Some default value that looks fine waiting for the animation to kicks in.
389
+ strokeDasharray: "80px, 200px",
390
+ strokeDashoffset: 0
391
+ // Add the unit to fix a Edge 16 and below bug.
392
+ }
393
+ }, {
394
+ props: ({
395
+ ownerState: t
396
+ }) => t.variant === "indeterminate" && !t.disableShrink,
397
+ style: dt || {
398
+ // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
399
+ animation: `${Ze} 1.4s ease-in-out infinite`
400
+ }
401
+ }]
402
+ }))), Eo = /* @__PURE__ */ i.forwardRef(function(t, n) {
403
+ const r = ae({
404
+ props: t,
405
+ name: "MuiCircularProgress"
406
+ }), {
407
+ className: s,
408
+ color: l = "primary",
409
+ disableShrink: a = !1,
410
+ size: u = 40,
411
+ style: v,
412
+ thickness: y = 3.6,
413
+ value: f = 0,
414
+ variant: h = "indeterminate",
415
+ ...b
416
+ } = r, S = {
417
+ ...r,
418
+ color: l,
419
+ disableShrink: a,
420
+ size: u,
421
+ thickness: y,
422
+ value: f,
423
+ variant: h
424
+ }, w = ct(S), T = {}, g = {}, I = {};
425
+ if (h === "determinate") {
426
+ const x = 2 * Math.PI * ((se - y) / 2);
427
+ T.strokeDasharray = x.toFixed(3), I["aria-valuenow"] = Math.round(f), T.strokeDashoffset = `${((100 - f) / 100 * x).toFixed(3)}px`, g.transform = "rotate(-90deg)";
428
+ }
429
+ return /* @__PURE__ */ m.jsx(ut, {
430
+ className: ie(w.root, s),
431
+ style: {
432
+ width: u,
433
+ height: u,
434
+ ...g,
435
+ ...v
436
+ },
437
+ ownerState: S,
438
+ ref: n,
439
+ role: "progressbar",
440
+ ...I,
441
+ ...b,
442
+ children: /* @__PURE__ */ m.jsx(pt, {
443
+ className: w.svg,
444
+ ownerState: S,
445
+ viewBox: `${se / 2} ${se / 2} ${se} ${se}`,
446
+ children: /* @__PURE__ */ m.jsx(ft, {
447
+ className: w.circle,
448
+ style: T,
449
+ ownerState: S,
450
+ cx: se,
451
+ cy: se,
452
+ r: (se - y) / 2,
453
+ fill: "none",
454
+ strokeWidth: y
455
+ })
456
+ })
457
+ });
458
+ });
459
+ process.env.NODE_ENV !== "production" && (Eo.propTypes = {
460
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
461
+ // │ These PropTypes are generated from the TypeScript type definitions. │
462
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
463
+ // └─────────────────────────────────────────────────────────────────────┘
464
+ /**
465
+ * Override or extend the styles applied to the component.
466
+ */
467
+ classes: e.object,
468
+ /**
469
+ * @ignore
470
+ */
471
+ className: e.string,
472
+ /**
473
+ * The color of the component.
474
+ * It supports both default and custom theme colors, which can be added as shown in the
475
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
476
+ * @default 'primary'
477
+ */
478
+ color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
479
+ /**
480
+ * If `true`, the shrink animation is disabled.
481
+ * This only works if variant is `indeterminate`.
482
+ * @default false
483
+ */
484
+ disableShrink: Ro(e.bool, (o) => o.disableShrink && o.variant && o.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
485
+ /**
486
+ * The size of the component.
487
+ * If using a number, the pixel unit is assumed.
488
+ * If using a string, you need to provide the CSS unit, for example '3rem'.
489
+ * @default 40
490
+ */
491
+ size: e.oneOfType([e.number, e.string]),
492
+ /**
493
+ * @ignore
494
+ */
495
+ style: e.object,
496
+ /**
497
+ * The system prop that allows defining system overrides as well as additional CSS styles.
498
+ */
499
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
500
+ /**
501
+ * The thickness of the circle.
502
+ * @default 3.6
503
+ */
504
+ thickness: e.number,
505
+ /**
506
+ * The value of the progress indicator for the determinate variant.
507
+ * Value between 0 and 100.
508
+ * @default 0
509
+ */
510
+ value: e.number,
511
+ /**
512
+ * The variant to use.
513
+ * Use indeterminate when there is no progress value.
514
+ * @default 'indeterminate'
515
+ */
516
+ variant: e.oneOf(["determinate", "indeterminate"])
517
+ });
518
+ const mt = (o) => {
519
+ const {
520
+ classes: t,
521
+ disabled: n,
522
+ color: r,
523
+ edge: s,
524
+ size: l,
525
+ loading: a
526
+ } = o, u = {
527
+ root: ["root", a && "loading", n && "disabled", r !== "default" && `color${$(r)}`, s && `edge${$(s)}`, `size${$(l)}`],
528
+ loadingIndicator: ["loadingIndicator"],
529
+ loadingWrapper: ["loadingWrapper"]
530
+ };
531
+ return Y(u, Uo, t);
532
+ }, bt = N(Vo, {
533
+ name: "MuiIconButton",
534
+ slot: "Root",
535
+ overridesResolver: (o, t) => {
536
+ const {
537
+ ownerState: n
538
+ } = o;
539
+ return [t.root, n.loading && t.loading, n.color !== "default" && t[`color${$(n.color)}`], n.edge && t[`edge${$(n.edge)}`], t[`size${$(n.size)}`]];
540
+ }
541
+ })(V(({
542
+ theme: o
543
+ }) => ({
544
+ textAlign: "center",
545
+ flex: "0 0 auto",
546
+ fontSize: o.typography.pxToRem(24),
547
+ padding: 8,
548
+ borderRadius: "50%",
549
+ color: (o.vars || o).palette.action.active,
550
+ transition: o.transitions.create("background-color", {
551
+ duration: o.transitions.duration.shortest
552
+ }),
553
+ variants: [{
554
+ props: (t) => !t.disableRipple,
555
+ style: {
556
+ "--IconButton-hoverBg": o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : co(o.palette.action.active, o.palette.action.hoverOpacity),
557
+ "&:hover": {
558
+ backgroundColor: "var(--IconButton-hoverBg)",
559
+ // Reset on touch devices, it doesn't add specificity
560
+ "@media (hover: none)": {
561
+ backgroundColor: "transparent"
562
+ }
563
+ }
564
+ }
565
+ }, {
566
+ props: {
567
+ edge: "start"
568
+ },
569
+ style: {
570
+ marginLeft: -12
571
+ }
572
+ }, {
573
+ props: {
574
+ edge: "start",
575
+ size: "small"
576
+ },
577
+ style: {
578
+ marginLeft: -3
579
+ }
580
+ }, {
581
+ props: {
582
+ edge: "end"
583
+ },
584
+ style: {
585
+ marginRight: -12
586
+ }
587
+ }, {
588
+ props: {
589
+ edge: "end",
590
+ size: "small"
591
+ },
592
+ style: {
593
+ marginRight: -3
594
+ }
595
+ }]
596
+ })), V(({
597
+ theme: o
598
+ }) => ({
599
+ variants: [{
600
+ props: {
601
+ color: "inherit"
602
+ },
603
+ style: {
604
+ color: "inherit"
605
+ }
606
+ }, ...Object.entries(o.palette).filter(Ce()).map(([t]) => ({
607
+ props: {
608
+ color: t
609
+ },
610
+ style: {
611
+ color: (o.vars || o).palette[t].main
612
+ }
613
+ })), ...Object.entries(o.palette).filter(Ce()).map(([t]) => ({
614
+ props: {
615
+ color: t
616
+ },
617
+ style: {
618
+ "--IconButton-hoverBg": o.vars ? `rgba(${(o.vars || o).palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : co((o.vars || o).palette[t].main, o.palette.action.hoverOpacity)
619
+ }
620
+ })), {
621
+ props: {
622
+ size: "small"
623
+ },
624
+ style: {
625
+ padding: 5,
626
+ fontSize: o.typography.pxToRem(18)
627
+ }
628
+ }, {
629
+ props: {
630
+ size: "large"
631
+ },
632
+ style: {
633
+ padding: 12,
634
+ fontSize: o.typography.pxToRem(28)
635
+ }
636
+ }],
637
+ [`&.${po.disabled}`]: {
638
+ backgroundColor: "transparent",
639
+ color: (o.vars || o).palette.action.disabled
640
+ },
641
+ [`&.${po.loading}`]: {
642
+ color: "transparent"
643
+ }
644
+ }))), gt = N("span", {
645
+ name: "MuiIconButton",
646
+ slot: "LoadingIndicator"
647
+ })(({
648
+ theme: o
649
+ }) => ({
650
+ display: "none",
651
+ position: "absolute",
652
+ visibility: "visible",
653
+ top: "50%",
654
+ left: "50%",
655
+ transform: "translate(-50%, -50%)",
656
+ color: (o.vars || o).palette.action.disabled,
657
+ variants: [{
658
+ props: {
659
+ loading: !0
660
+ },
661
+ style: {
662
+ display: "flex"
663
+ }
664
+ }]
665
+ })), yt = /* @__PURE__ */ i.forwardRef(function(t, n) {
666
+ const r = ae({
667
+ props: t,
668
+ name: "MuiIconButton"
669
+ }), {
670
+ edge: s = !1,
671
+ children: l,
672
+ className: a,
673
+ color: u = "default",
674
+ disabled: v = !1,
675
+ disableFocusRipple: y = !1,
676
+ size: f = "medium",
677
+ id: h,
678
+ loading: b = null,
679
+ loadingIndicator: S,
680
+ ...w
681
+ } = r, T = jo(h), g = S ?? /* @__PURE__ */ m.jsx(Eo, {
682
+ "aria-labelledby": T,
683
+ color: "inherit",
684
+ size: 16
685
+ }), I = {
686
+ ...r,
687
+ edge: s,
688
+ color: u,
689
+ disabled: v,
690
+ disableFocusRipple: y,
691
+ loading: b,
692
+ loadingIndicator: g,
693
+ size: f
694
+ }, x = mt(I);
695
+ return /* @__PURE__ */ m.jsxs(bt, {
696
+ id: b ? T : h,
697
+ className: ie(x.root, a),
698
+ centerRipple: !0,
699
+ focusRipple: !y,
700
+ disabled: v || b,
701
+ ref: n,
702
+ ...w,
703
+ ownerState: I,
704
+ children: [typeof b == "boolean" && // use plain HTML span to minimize the runtime overhead
705
+ /* @__PURE__ */ m.jsx("span", {
706
+ className: x.loadingWrapper,
707
+ style: {
708
+ display: "contents"
709
+ },
710
+ children: /* @__PURE__ */ m.jsx(gt, {
711
+ className: x.loadingIndicator,
712
+ ownerState: I,
713
+ children: b && g
714
+ })
715
+ }), l]
716
+ });
717
+ });
718
+ process.env.NODE_ENV !== "production" && (yt.propTypes = {
719
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
720
+ // │ These PropTypes are generated from the TypeScript type definitions. │
721
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
722
+ // └─────────────────────────────────────────────────────────────────────┘
723
+ /**
724
+ * The icon to display.
725
+ */
726
+ children: Ro(e.node, (o) => i.Children.toArray(o.children).some((n) => /* @__PURE__ */ i.isValidElement(n) && n.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(`
727
+ `)) : null),
728
+ /**
729
+ * Override or extend the styles applied to the component.
730
+ */
731
+ classes: e.object,
732
+ /**
733
+ * @ignore
734
+ */
735
+ className: e.string,
736
+ /**
737
+ * The color of the component.
738
+ * It supports both default and custom theme colors, which can be added as shown in the
739
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
740
+ * @default 'default'
741
+ */
742
+ color: e.oneOfType([e.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
743
+ /**
744
+ * If `true`, the component is disabled.
745
+ * @default false
746
+ */
747
+ disabled: e.bool,
748
+ /**
749
+ * If `true`, the keyboard focus ripple is disabled.
750
+ * @default false
751
+ */
752
+ disableFocusRipple: e.bool,
753
+ /**
754
+ * If `true`, the ripple effect is disabled.
755
+ *
756
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
757
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
758
+ * @default false
759
+ */
760
+ disableRipple: e.bool,
761
+ /**
762
+ * If given, uses a negative margin to counteract the padding on one
763
+ * side (this is often helpful for aligning the left or right
764
+ * side of the icon with content above or below, without ruining the border
765
+ * size and shape).
766
+ * @default false
767
+ */
768
+ edge: e.oneOf(["end", "start", !1]),
769
+ /**
770
+ * @ignore
771
+ */
772
+ id: e.string,
773
+ /**
774
+ * If `true`, the loading indicator is visible and the button is disabled.
775
+ * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
776
+ * @default null
777
+ */
778
+ loading: e.bool,
779
+ /**
780
+ * Element placed before the children if the button is in loading state.
781
+ * The node should contain an element with `role="progressbar"` with an accessible name.
782
+ * By default, it renders a `CircularProgress` that is labeled by the button itself.
783
+ * @default <CircularProgress color="inherit" size={16} />
784
+ */
785
+ loadingIndicator: e.node,
786
+ /**
787
+ * The size of the component.
788
+ * `small` is equivalent to the dense button styling.
789
+ * @default 'medium'
790
+ */
791
+ size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
792
+ /**
793
+ * The system prop that allows defining system overrides as well as additional CSS styles.
794
+ */
795
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
796
+ });
797
+ function ht(o) {
798
+ return Se("MuiNativeSelect", o);
799
+ }
800
+ const eo = xe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), vt = (o) => {
801
+ const {
802
+ classes: t,
803
+ variant: n,
804
+ disabled: r,
805
+ multiple: s,
806
+ open: l,
807
+ error: a
808
+ } = o, u = {
809
+ select: ["select", n, r && "disabled", s && "multiple", a && "error"],
810
+ icon: ["icon", `icon${$(n)}`, l && "iconOpen", r && "disabled"]
811
+ };
812
+ return Y(u, ht, t);
813
+ }, ko = N("select")(({
814
+ theme: o
815
+ }) => ({
816
+ // Reset
817
+ MozAppearance: "none",
818
+ // Reset
819
+ WebkitAppearance: "none",
820
+ // When interacting quickly, the text can end up selected.
821
+ // Native select can't be selected either.
822
+ userSelect: "none",
823
+ // Reset
824
+ borderRadius: 0,
825
+ cursor: "pointer",
826
+ "&:focus": {
827
+ // Reset Chrome style
828
+ borderRadius: 0
829
+ },
830
+ [`&.${eo.disabled}`]: {
831
+ cursor: "default"
832
+ },
833
+ "&[multiple]": {
834
+ height: "auto"
835
+ },
836
+ "&:not([multiple]) option, &:not([multiple]) optgroup": {
837
+ backgroundColor: (o.vars || o).palette.background.paper
838
+ },
839
+ variants: [{
840
+ props: ({
841
+ ownerState: t
842
+ }) => t.variant !== "filled" && t.variant !== "outlined",
843
+ style: {
844
+ // Bump specificity to allow extending custom inputs
845
+ "&&&": {
846
+ paddingRight: 24,
847
+ minWidth: 16
848
+ // So it doesn't collapse.
849
+ }
850
+ }
851
+ }, {
852
+ props: {
853
+ variant: "filled"
854
+ },
855
+ style: {
856
+ "&&&": {
857
+ paddingRight: 32
858
+ }
859
+ }
860
+ }, {
861
+ props: {
862
+ variant: "outlined"
863
+ },
864
+ style: {
865
+ borderRadius: (o.vars || o).shape.borderRadius,
866
+ "&:focus": {
867
+ borderRadius: (o.vars || o).shape.borderRadius
868
+ // Reset the reset for Chrome style
869
+ },
870
+ "&&&": {
871
+ paddingRight: 32
872
+ }
873
+ }
874
+ }]
875
+ })), Ct = N(ko, {
876
+ name: "MuiNativeSelect",
877
+ slot: "Select",
878
+ shouldForwardProp: me,
879
+ overridesResolver: (o, t) => {
880
+ const {
881
+ ownerState: n
882
+ } = o;
883
+ return [t.select, t[n.variant], n.error && t.error, {
884
+ [`&.${eo.multiple}`]: t.multiple
885
+ }];
886
+ }
887
+ })({}), Po = N("svg")(({
888
+ theme: o
889
+ }) => ({
890
+ // We use a position absolute over a flexbox in order to forward the pointer events
891
+ // to the input and to support wrapping tags..
892
+ position: "absolute",
893
+ right: 0,
894
+ // Center vertically, height is 1em
895
+ top: "calc(50% - .5em)",
896
+ // Don't block pointer events on the select under the icon.
897
+ pointerEvents: "none",
898
+ color: (o.vars || o).palette.action.active,
899
+ [`&.${eo.disabled}`]: {
900
+ color: (o.vars || o).palette.action.disabled
901
+ },
902
+ variants: [{
903
+ props: ({
904
+ ownerState: t
905
+ }) => t.open,
906
+ style: {
907
+ transform: "rotate(180deg)"
908
+ }
909
+ }, {
910
+ props: {
911
+ variant: "filled"
912
+ },
913
+ style: {
914
+ right: 7
915
+ }
916
+ }, {
917
+ props: {
918
+ variant: "outlined"
919
+ },
920
+ style: {
921
+ right: 7
922
+ }
923
+ }]
924
+ })), St = N(Po, {
925
+ name: "MuiNativeSelect",
926
+ slot: "Icon",
927
+ overridesResolver: (o, t) => {
928
+ const {
929
+ ownerState: n
930
+ } = o;
931
+ return [t.icon, n.variant && t[`icon${$(n.variant)}`], n.open && t.iconOpen];
932
+ }
933
+ })({}), $o = /* @__PURE__ */ i.forwardRef(function(t, n) {
934
+ const {
935
+ className: r,
936
+ disabled: s,
937
+ error: l,
938
+ IconComponent: a,
939
+ inputRef: u,
940
+ variant: v = "standard",
941
+ ...y
942
+ } = t, f = {
943
+ ...t,
944
+ disabled: s,
945
+ variant: v,
946
+ error: l
947
+ }, h = vt(f);
948
+ return /* @__PURE__ */ m.jsxs(i.Fragment, {
949
+ children: [/* @__PURE__ */ m.jsx(Ct, {
950
+ ownerState: f,
951
+ className: ie(h.select, r),
952
+ disabled: s,
953
+ ref: u || n,
954
+ ...y
955
+ }), t.multiple ? null : /* @__PURE__ */ m.jsx(St, {
956
+ as: a,
957
+ ownerState: f,
958
+ className: h.icon
959
+ })]
960
+ });
961
+ });
962
+ process.env.NODE_ENV !== "production" && ($o.propTypes = {
963
+ /**
964
+ * The option elements to populate the select with.
965
+ * Can be some `<option>` elements.
966
+ */
967
+ children: e.node,
968
+ /**
969
+ * Override or extend the styles applied to the component.
970
+ */
971
+ classes: e.object,
972
+ /**
973
+ * The CSS class name of the select element.
974
+ */
975
+ className: e.string,
976
+ /**
977
+ * If `true`, the select is disabled.
978
+ */
979
+ disabled: e.bool,
980
+ /**
981
+ * If `true`, the `select input` will indicate an error.
982
+ */
983
+ error: e.bool,
984
+ /**
985
+ * The icon that displays the arrow.
986
+ */
987
+ IconComponent: e.elementType.isRequired,
988
+ /**
989
+ * Use that prop to pass a ref to the native select element.
990
+ * @deprecated
991
+ */
992
+ inputRef: Oe,
993
+ /**
994
+ * @ignore
995
+ */
996
+ multiple: e.bool,
997
+ /**
998
+ * Name attribute of the `select` or hidden `input` element.
999
+ */
1000
+ name: e.string,
1001
+ /**
1002
+ * Callback fired when a menu item is selected.
1003
+ *
1004
+ * @param {object} event The event source of the callback.
1005
+ * You can pull out the new value by accessing `event.target.value` (string).
1006
+ */
1007
+ onChange: e.func,
1008
+ /**
1009
+ * The input value.
1010
+ */
1011
+ value: e.any,
1012
+ /**
1013
+ * The variant to use.
1014
+ */
1015
+ variant: e.oneOf(["standard", "outlined", "filled"])
1016
+ });
1017
+ function Fo(o) {
1018
+ return Se("MuiSelect", o);
1019
+ }
1020
+ const je = xe("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
1021
+ var ho;
1022
+ const xt = N(ko, {
1023
+ name: "MuiSelect",
1024
+ slot: "Select",
1025
+ overridesResolver: (o, t) => {
1026
+ const {
1027
+ ownerState: n
1028
+ } = o;
1029
+ return [
1030
+ // Win specificity over the input base
1031
+ {
1032
+ [`&.${je.select}`]: t.select
1033
+ },
1034
+ {
1035
+ [`&.${je.select}`]: t[n.variant]
1036
+ },
1037
+ {
1038
+ [`&.${je.error}`]: t.error
1039
+ },
1040
+ {
1041
+ [`&.${je.multiple}`]: t.multiple
1042
+ }
1043
+ ];
1044
+ }
1045
+ })({
1046
+ // Win specificity over the input base
1047
+ [`&.${je.select}`]: {
1048
+ height: "auto",
1049
+ // Resets for multiple select with chips
1050
+ minHeight: "1.4375em",
1051
+ // Required for select\text-field height consistency
1052
+ textOverflow: "ellipsis",
1053
+ whiteSpace: "nowrap",
1054
+ overflow: "hidden"
1055
+ }
1056
+ }), Ot = N(Po, {
1057
+ name: "MuiSelect",
1058
+ slot: "Icon",
1059
+ overridesResolver: (o, t) => {
1060
+ const {
1061
+ ownerState: n
1062
+ } = o;
1063
+ return [t.icon, n.variant && t[`icon${$(n.variant)}`], n.open && t.iconOpen];
1064
+ }
1065
+ })({}), wt = N("input", {
1066
+ shouldForwardProp: (o) => Do(o) && o !== "classes",
1067
+ name: "MuiSelect",
1068
+ slot: "NativeInput"
1069
+ })({
1070
+ bottom: 0,
1071
+ left: 0,
1072
+ position: "absolute",
1073
+ opacity: 0,
1074
+ pointerEvents: "none",
1075
+ width: "100%",
1076
+ boxSizing: "border-box"
1077
+ });
1078
+ function vo(o, t) {
1079
+ return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
1080
+ }
1081
+ function It(o) {
1082
+ return o == null || typeof o == "string" && !o.trim();
1083
+ }
1084
+ const Rt = (o) => {
1085
+ const {
1086
+ classes: t,
1087
+ variant: n,
1088
+ disabled: r,
1089
+ multiple: s,
1090
+ open: l,
1091
+ error: a
1092
+ } = o, u = {
1093
+ select: ["select", n, r && "disabled", s && "multiple", a && "error"],
1094
+ icon: ["icon", `icon${$(n)}`, l && "iconOpen", r && "disabled"],
1095
+ nativeInput: ["nativeInput"]
1096
+ };
1097
+ return Y(u, Fo, t);
1098
+ }, Bo = /* @__PURE__ */ i.forwardRef(function(t, n) {
1099
+ var ao;
1100
+ const {
1101
+ "aria-describedby": r,
1102
+ "aria-label": s,
1103
+ autoFocus: l,
1104
+ autoWidth: a,
1105
+ children: u,
1106
+ className: v,
1107
+ defaultOpen: y,
1108
+ defaultValue: f,
1109
+ disabled: h,
1110
+ displayEmpty: b,
1111
+ error: S = !1,
1112
+ IconComponent: w,
1113
+ inputRef: T,
1114
+ labelId: g,
1115
+ MenuProps: I = {},
1116
+ multiple: x,
1117
+ name: c,
1118
+ onBlur: p,
1119
+ onChange: E,
1120
+ onClose: O,
1121
+ onFocus: L,
1122
+ onOpen: H,
1123
+ open: _,
1124
+ readOnly: A,
1125
+ renderValue: W,
1126
+ required: P,
1127
+ SelectDisplayProps: F = {},
1128
+ tabIndex: z,
1129
+ // catching `type` from Input which makes no sense for SelectInput
1130
+ type: le,
1131
+ value: K,
1132
+ variant: B = "standard",
1133
+ ...q
1134
+ } = t, [j, Ue] = uo({
1135
+ controlled: K,
1136
+ default: f,
1137
+ name: "Select"
1138
+ }), [we, Pe] = uo({
1139
+ controlled: _,
1140
+ default: y,
1141
+ name: "Select"
1142
+ }), Q = i.useRef(null), G = i.useRef(null), [Z, Ve] = i.useState(null), {
1143
+ current: ee
1144
+ } = i.useRef(_ != null), [Ie, J] = i.useState(), He = Me(n, T), _e = i.useCallback((d) => {
1145
+ G.current = d, d && Ve(d);
1146
+ }, []), oe = Z == null ? void 0 : Z.parentNode;
1147
+ i.useImperativeHandle(He, () => ({
1148
+ focus: () => {
1149
+ G.current.focus();
1150
+ },
1151
+ node: Q.current,
1152
+ value: j
1153
+ }), [j]), i.useEffect(() => {
1154
+ y && we && Z && !ee && (J(a ? null : oe.clientWidth), G.current.focus());
1155
+ }, [Z, a]), i.useEffect(() => {
1156
+ l && G.current.focus();
1157
+ }, [l]), i.useEffect(() => {
1158
+ if (!g)
1159
+ return;
1160
+ const d = Ko(G.current).getElementById(g);
1161
+ if (d) {
1162
+ const C = () => {
1163
+ getSelection().isCollapsed && G.current.focus();
1164
+ };
1165
+ return d.addEventListener("click", C), () => {
1166
+ d.removeEventListener("click", C);
1167
+ };
1168
+ }
1169
+ }, [g]);
1170
+ const te = (d, C) => {
1171
+ d ? H && H(C) : O && O(C), ee || (J(a ? null : oe.clientWidth), Pe(d));
1172
+ }, k = (d) => {
1173
+ d.button === 0 && (d.preventDefault(), G.current.focus(), te(!0, d));
1174
+ }, U = (d) => {
1175
+ te(!1, d);
1176
+ }, ne = i.Children.toArray(u), Re = (d) => {
1177
+ const C = ne.find((M) => M.props.value === d.target.value);
1178
+ C !== void 0 && (Ue(C.props.value), E && E(d, C));
1179
+ }, de = (d) => (C) => {
1180
+ let M;
1181
+ if (C.currentTarget.hasAttribute("tabindex")) {
1182
+ if (x) {
1183
+ M = Array.isArray(j) ? j.slice() : [];
1184
+ const ve = j.indexOf(d.props.value);
1185
+ ve === -1 ? M.push(d.props.value) : M.splice(ve, 1);
1186
+ } else
1187
+ M = d.props.value;
1188
+ if (d.props.onClick && d.props.onClick(C), j !== M && (Ue(M), E)) {
1189
+ const ve = C.nativeEvent || C, lo = new ve.constructor(ve.type, ve);
1190
+ Object.defineProperty(lo, "target", {
1191
+ writable: !0,
1192
+ value: {
1193
+ value: M,
1194
+ name: c
1195
+ }
1196
+ }), E(lo, d);
1197
+ }
1198
+ x || te(!1, C);
1199
+ }
1200
+ }, qe = (d) => {
1201
+ A || [
1202
+ " ",
1203
+ "ArrowUp",
1204
+ "ArrowDown",
1205
+ // The native select doesn't respond to enter on macOS, but it's recommended by
1206
+ // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
1207
+ "Enter"
1208
+ ].includes(d.key) && (d.preventDefault(), te(!0, d));
1209
+ }, ce = Z !== null && we, Ke = (d) => {
1210
+ !ce && p && (Object.defineProperty(d, "target", {
1211
+ writable: !0,
1212
+ value: {
1213
+ value: j,
1214
+ name: c
1215
+ }
1216
+ }), p(d));
1217
+ };
1218
+ delete q["aria-invalid"];
1219
+ let re, be;
1220
+ const D = [];
1221
+ let ge = !1, ue = !1;
1222
+ (Be({
1223
+ value: j
1224
+ }) || b) && (W ? re = W(j) : ge = !0);
1225
+ const $e = ne.map((d) => {
1226
+ if (!/* @__PURE__ */ i.isValidElement(d))
1227
+ return null;
1228
+ process.env.NODE_ENV !== "production" && zo.isFragment(d) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
1229
+ `));
1230
+ let C;
1231
+ if (x) {
1232
+ if (!Array.isArray(j))
1233
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : wo(2));
1234
+ C = j.some((M) => vo(M, d.props.value)), C && ge && D.push(d.props.children);
1235
+ } else
1236
+ C = vo(j, d.props.value), C && ge && (be = d.props.children);
1237
+ return C && (ue = !0), /* @__PURE__ */ i.cloneElement(d, {
1238
+ "aria-selected": C ? "true" : "false",
1239
+ onClick: de(d),
1240
+ onKeyUp: (M) => {
1241
+ M.key === " " && M.preventDefault(), d.props.onKeyUp && d.props.onKeyUp(M);
1242
+ },
1243
+ role: "option",
1244
+ selected: C,
1245
+ value: void 0,
1246
+ // The value is most likely not a valid HTML attribute.
1247
+ "data-value": d.props.value
1248
+ // Instead, we provide it as a data attribute.
1249
+ });
1250
+ });
1251
+ process.env.NODE_ENV !== "production" && i.useEffect(() => {
1252
+ if (!ue && !x && j !== "") {
1253
+ const d = ne.map((C) => C.props.value);
1254
+ console.warn([`MUI: You have provided an out-of-range value \`${j}\` for the select ${c ? `(name="${c}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${d.filter((C) => C != null).map((C) => `\`${C}\``).join(", ") || '""'}.`].join(`
1255
+ `));
1256
+ }
1257
+ }, [ue, ne, x, c, j]), ge && (x ? D.length === 0 ? re = null : re = D.reduce((d, C, M) => (d.push(C), M < D.length - 1 && d.push(", "), d), []) : re = be);
1258
+ let Te = Ie;
1259
+ !a && ee && Z && (Te = oe.clientWidth);
1260
+ let pe;
1261
+ typeof z < "u" ? pe = z : pe = h ? null : 0;
1262
+ const Ne = F.id || (c ? `mui-component-select-${c}` : void 0), R = {
1263
+ ...t,
1264
+ variant: B,
1265
+ value: j,
1266
+ open: ce,
1267
+ error: S
1268
+ }, ye = Rt(R), he = {
1269
+ ...I.PaperProps,
1270
+ ...(ao = I.slotProps) == null ? void 0 : ao.paper
1271
+ }, io = jo();
1272
+ return /* @__PURE__ */ m.jsxs(i.Fragment, {
1273
+ children: [/* @__PURE__ */ m.jsx(xt, {
1274
+ as: "div",
1275
+ ref: _e,
1276
+ tabIndex: pe,
1277
+ role: "combobox",
1278
+ "aria-controls": ce ? io : void 0,
1279
+ "aria-disabled": h ? "true" : void 0,
1280
+ "aria-expanded": ce ? "true" : "false",
1281
+ "aria-haspopup": "listbox",
1282
+ "aria-label": s,
1283
+ "aria-labelledby": [g, Ne].filter(Boolean).join(" ") || void 0,
1284
+ "aria-describedby": r,
1285
+ "aria-required": P ? "true" : void 0,
1286
+ "aria-invalid": S ? "true" : void 0,
1287
+ onKeyDown: qe,
1288
+ onMouseDown: h || A ? null : k,
1289
+ onBlur: Ke,
1290
+ onFocus: L,
1291
+ ...F,
1292
+ ownerState: R,
1293
+ className: ie(F.className, ye.select, v),
1294
+ id: Ne,
1295
+ children: It(re) ? (
1296
+ // notranslate needed while Google Translate will not fix zero-width space issue
1297
+ ho || (ho = /* @__PURE__ */ m.jsx("span", {
1298
+ className: "notranslate",
1299
+ "aria-hidden": !0,
1300
+ children: "​"
1301
+ }))
1302
+ ) : re
1303
+ }), /* @__PURE__ */ m.jsx(wt, {
1304
+ "aria-invalid": S,
1305
+ value: Array.isArray(j) ? j.join(",") : j,
1306
+ name: c,
1307
+ ref: Q,
1308
+ "aria-hidden": !0,
1309
+ onChange: Re,
1310
+ tabIndex: -1,
1311
+ disabled: h,
1312
+ className: ye.nativeInput,
1313
+ autoFocus: l,
1314
+ required: P,
1315
+ ...q,
1316
+ ownerState: R
1317
+ }), /* @__PURE__ */ m.jsx(Ot, {
1318
+ as: w,
1319
+ className: ye.icon,
1320
+ ownerState: R
1321
+ }), /* @__PURE__ */ m.jsx(Go, {
1322
+ id: `menu-${c || ""}`,
1323
+ anchorEl: oe,
1324
+ open: ce,
1325
+ onClose: U,
1326
+ anchorOrigin: {
1327
+ vertical: "bottom",
1328
+ horizontal: "center"
1329
+ },
1330
+ transformOrigin: {
1331
+ vertical: "top",
1332
+ horizontal: "center"
1333
+ },
1334
+ ...I,
1335
+ slotProps: {
1336
+ ...I.slotProps,
1337
+ list: {
1338
+ "aria-labelledby": g,
1339
+ role: "listbox",
1340
+ "aria-multiselectable": x ? "true" : void 0,
1341
+ disableListWrap: !0,
1342
+ id: io,
1343
+ ...I.MenuListProps
1344
+ },
1345
+ paper: {
1346
+ ...he,
1347
+ style: {
1348
+ minWidth: Te,
1349
+ ...he != null ? he.style : null
1350
+ }
1351
+ }
1352
+ },
1353
+ children: $e
1354
+ })]
1355
+ });
1356
+ });
1357
+ process.env.NODE_ENV !== "production" && (Bo.propTypes = {
1358
+ /**
1359
+ * @ignore
1360
+ */
1361
+ "aria-describedby": e.string,
1362
+ /**
1363
+ * @ignore
1364
+ */
1365
+ "aria-label": e.string,
1366
+ /**
1367
+ * @ignore
1368
+ */
1369
+ autoFocus: e.bool,
1370
+ /**
1371
+ * If `true`, the width of the popover will automatically be set according to the items inside the
1372
+ * menu, otherwise it will be at least the width of the select input.
1373
+ */
1374
+ autoWidth: e.bool,
1375
+ /**
1376
+ * The option elements to populate the select with.
1377
+ * Can be some `<MenuItem>` elements.
1378
+ */
1379
+ children: e.node,
1380
+ /**
1381
+ * Override or extend the styles applied to the component.
1382
+ */
1383
+ classes: e.object,
1384
+ /**
1385
+ * The CSS class name of the select element.
1386
+ */
1387
+ className: e.string,
1388
+ /**
1389
+ * If `true`, the component is toggled on mount. Use when the component open state is not controlled.
1390
+ * You can only use it when the `native` prop is `false` (default).
1391
+ */
1392
+ defaultOpen: e.bool,
1393
+ /**
1394
+ * The default value. Use when the component is not controlled.
1395
+ */
1396
+ defaultValue: e.any,
1397
+ /**
1398
+ * If `true`, the select is disabled.
1399
+ */
1400
+ disabled: e.bool,
1401
+ /**
1402
+ * If `true`, the selected item is displayed even if its value is empty.
1403
+ */
1404
+ displayEmpty: e.bool,
1405
+ /**
1406
+ * If `true`, the `select input` will indicate an error.
1407
+ */
1408
+ error: e.bool,
1409
+ /**
1410
+ * The icon that displays the arrow.
1411
+ */
1412
+ IconComponent: e.elementType.isRequired,
1413
+ /**
1414
+ * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
1415
+ * Equivalent to `ref`
1416
+ */
1417
+ inputRef: Oe,
1418
+ /**
1419
+ * The ID of an element that acts as an additional label. The Select will
1420
+ * be labelled by the additional label and the selected value.
1421
+ */
1422
+ labelId: e.string,
1423
+ /**
1424
+ * Props applied to the [`Menu`](/material-ui/api/menu/) element.
1425
+ */
1426
+ MenuProps: e.object,
1427
+ /**
1428
+ * If `true`, `value` must be an array and the menu will support multiple selections.
1429
+ */
1430
+ multiple: e.bool,
1431
+ /**
1432
+ * Name attribute of the `select` or hidden `input` element.
1433
+ */
1434
+ name: e.string,
1435
+ /**
1436
+ * @ignore
1437
+ */
1438
+ onBlur: e.func,
1439
+ /**
1440
+ * Callback fired when a menu item is selected.
1441
+ *
1442
+ * @param {object} event The event source of the callback.
1443
+ * You can pull out the new value by accessing `event.target.value` (any).
1444
+ * @param {object} [child] The react element that was selected.
1445
+ */
1446
+ onChange: e.func,
1447
+ /**
1448
+ * Callback fired when the component requests to be closed.
1449
+ * Use in controlled mode (see open).
1450
+ *
1451
+ * @param {object} event The event source of the callback.
1452
+ */
1453
+ onClose: e.func,
1454
+ /**
1455
+ * @ignore
1456
+ */
1457
+ onFocus: e.func,
1458
+ /**
1459
+ * Callback fired when the component requests to be opened.
1460
+ * Use in controlled mode (see open).
1461
+ *
1462
+ * @param {object} event The event source of the callback.
1463
+ */
1464
+ onOpen: e.func,
1465
+ /**
1466
+ * If `true`, the component is shown.
1467
+ */
1468
+ open: e.bool,
1469
+ /**
1470
+ * @ignore
1471
+ */
1472
+ readOnly: e.bool,
1473
+ /**
1474
+ * Render the selected value.
1475
+ *
1476
+ * @param {any} value The `value` provided to the component.
1477
+ * @returns {ReactNode}
1478
+ */
1479
+ renderValue: e.func,
1480
+ /**
1481
+ * If `true`, the component is required.
1482
+ */
1483
+ required: e.bool,
1484
+ /**
1485
+ * Props applied to the clickable div element.
1486
+ */
1487
+ SelectDisplayProps: e.object,
1488
+ /**
1489
+ * @ignore
1490
+ */
1491
+ tabIndex: e.oneOfType([e.number, e.string]),
1492
+ /**
1493
+ * @ignore
1494
+ */
1495
+ type: e.any,
1496
+ /**
1497
+ * The input value.
1498
+ */
1499
+ value: e.any,
1500
+ /**
1501
+ * The variant to use.
1502
+ */
1503
+ variant: e.oneOf(["standard", "outlined", "filled"])
1504
+ });
1505
+ function oo({
1506
+ props: o,
1507
+ states: t,
1508
+ muiFormControl: n
1509
+ }) {
1510
+ return t.reduce((r, s) => (r[s] = o[s], n && typeof o[s] > "u" && (r[s] = n[s]), r), {});
1511
+ }
1512
+ const Tt = Lo(/* @__PURE__ */ m.jsx("path", {
1513
+ d: "M7 10l5 5 5-5z"
1514
+ }), "ArrowDropDown");
1515
+ function Fe(o) {
1516
+ return parseInt(o, 10) || 0;
1517
+ }
1518
+ const Nt = {
1519
+ shadow: {
1520
+ // Visibility needed to hide the extra text area on iPads
1521
+ visibility: "hidden",
1522
+ // Remove from the content flow
1523
+ position: "absolute",
1524
+ // Ignore the scrollbar width
1525
+ overflow: "hidden",
1526
+ height: 0,
1527
+ top: 0,
1528
+ left: 0,
1529
+ // Create a new layer, increase the isolation of the computed values
1530
+ transform: "translateZ(0)"
1531
+ }
1532
+ };
1533
+ function jt(o) {
1534
+ for (const t in o)
1535
+ return !1;
1536
+ return !0;
1537
+ }
1538
+ function Co(o) {
1539
+ return jt(o) || o.outerHeightStyle === 0 && !o.overflowing;
1540
+ }
1541
+ const Mo = /* @__PURE__ */ i.forwardRef(function(t, n) {
1542
+ const {
1543
+ onChange: r,
1544
+ maxRows: s,
1545
+ minRows: l = 1,
1546
+ style: a,
1547
+ value: u,
1548
+ ...v
1549
+ } = t, {
1550
+ current: y
1551
+ } = i.useRef(u != null), f = i.useRef(null), h = Me(n, f), b = i.useRef(null), S = i.useRef(null), w = i.useCallback(() => {
1552
+ const c = f.current, p = S.current;
1553
+ if (!c || !p)
1554
+ return;
1555
+ const O = fo(c).getComputedStyle(c);
1556
+ if (O.width === "0px")
1557
+ return {
1558
+ outerHeightStyle: 0,
1559
+ overflowing: !1
1560
+ };
1561
+ p.style.width = O.width, p.value = c.value || t.placeholder || "x", p.value.slice(-1) === `
1562
+ ` && (p.value += " ");
1563
+ const L = O.boxSizing, H = Fe(O.paddingBottom) + Fe(O.paddingTop), _ = Fe(O.borderBottomWidth) + Fe(O.borderTopWidth), A = p.scrollHeight;
1564
+ p.value = "x";
1565
+ const W = p.scrollHeight;
1566
+ let P = A;
1567
+ l && (P = Math.max(Number(l) * W, P)), s && (P = Math.min(Number(s) * W, P)), P = Math.max(P, W);
1568
+ const F = P + (L === "border-box" ? H + _ : 0), z = Math.abs(P - A) <= 1;
1569
+ return {
1570
+ outerHeightStyle: F,
1571
+ overflowing: z
1572
+ };
1573
+ }, [s, l, t.placeholder]), T = Ho(() => {
1574
+ const c = f.current, p = w();
1575
+ if (!c || !p || Co(p))
1576
+ return !1;
1577
+ const E = p.outerHeightStyle;
1578
+ return b.current != null && b.current !== E;
1579
+ }), g = i.useCallback(() => {
1580
+ const c = f.current, p = w();
1581
+ if (!c || !p || Co(p))
1582
+ return;
1583
+ const E = p.outerHeightStyle;
1584
+ b.current !== E && (b.current = E, c.style.height = `${E}px`), c.style.overflow = p.overflowing ? "hidden" : "";
1585
+ }, [w]), I = i.useRef(-1);
1586
+ Xe(() => {
1587
+ const c = Xo(g), p = f == null ? void 0 : f.current;
1588
+ if (!p)
1589
+ return;
1590
+ const E = fo(p);
1591
+ E.addEventListener("resize", c);
1592
+ let O;
1593
+ return typeof ResizeObserver < "u" && (O = new ResizeObserver(() => {
1594
+ T() && (O.unobserve(p), cancelAnimationFrame(I.current), g(), I.current = requestAnimationFrame(() => {
1595
+ O.observe(p);
1596
+ }));
1597
+ }), O.observe(p)), () => {
1598
+ c.clear(), cancelAnimationFrame(I.current), E.removeEventListener("resize", c), O && O.disconnect();
1599
+ };
1600
+ }, [w, g, T]), Xe(() => {
1601
+ g();
1602
+ });
1603
+ const x = (c) => {
1604
+ y || g();
1605
+ const p = c.target, E = p.value.length, O = p.value.endsWith(`
1606
+ `), L = p.selectionStart === E;
1607
+ O && L && p.setSelectionRange(E, E), r && r(c);
1608
+ };
1609
+ return /* @__PURE__ */ m.jsxs(i.Fragment, {
1610
+ children: [/* @__PURE__ */ m.jsx("textarea", {
1611
+ value: u,
1612
+ onChange: x,
1613
+ ref: h,
1614
+ rows: l,
1615
+ style: a,
1616
+ ...v
1617
+ }), /* @__PURE__ */ m.jsx("textarea", {
1618
+ "aria-hidden": !0,
1619
+ className: t.className,
1620
+ readOnly: !0,
1621
+ ref: S,
1622
+ tabIndex: -1,
1623
+ style: {
1624
+ ...Nt.shadow,
1625
+ ...a,
1626
+ paddingTop: 0,
1627
+ paddingBottom: 0
1628
+ }
1629
+ })]
1630
+ });
1631
+ });
1632
+ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
1633
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1634
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1635
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1636
+ // └─────────────────────────────────────────────────────────────────────┘
1637
+ /**
1638
+ * @ignore
1639
+ */
1640
+ className: e.string,
1641
+ /**
1642
+ * Maximum number of rows to display.
1643
+ */
1644
+ maxRows: e.oneOfType([e.number, e.string]),
1645
+ /**
1646
+ * Minimum number of rows to display.
1647
+ * @default 1
1648
+ */
1649
+ minRows: e.oneOfType([e.number, e.string]),
1650
+ /**
1651
+ * @ignore
1652
+ */
1653
+ onChange: e.func,
1654
+ /**
1655
+ * @ignore
1656
+ */
1657
+ placeholder: e.string,
1658
+ /**
1659
+ * @ignore
1660
+ */
1661
+ style: e.object,
1662
+ /**
1663
+ * @ignore
1664
+ */
1665
+ value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
1666
+ });
1667
+ var So;
1668
+ const Ae = (o, t) => {
1669
+ const {
1670
+ ownerState: n
1671
+ } = o;
1672
+ return [t.root, n.formControl && t.formControl, n.startAdornment && t.adornedStart, n.endAdornment && t.adornedEnd, n.error && t.error, n.size === "small" && t.sizeSmall, n.multiline && t.multiline, n.color && t[`color${$(n.color)}`], n.fullWidth && t.fullWidth, n.hiddenLabel && t.hiddenLabel];
1673
+ }, We = (o, t) => {
1674
+ const {
1675
+ ownerState: n
1676
+ } = o;
1677
+ return [t.input, n.size === "small" && t.inputSizeSmall, n.multiline && t.inputMultiline, n.type === "search" && t.inputTypeSearch, n.startAdornment && t.inputAdornedStart, n.endAdornment && t.inputAdornedEnd, n.hiddenLabel && t.inputHiddenLabel];
1678
+ }, Et = (o) => {
1679
+ const {
1680
+ classes: t,
1681
+ color: n,
1682
+ disabled: r,
1683
+ error: s,
1684
+ endAdornment: l,
1685
+ focused: a,
1686
+ formControl: u,
1687
+ fullWidth: v,
1688
+ hiddenLabel: y,
1689
+ multiline: f,
1690
+ readOnly: h,
1691
+ size: b,
1692
+ startAdornment: S,
1693
+ type: w
1694
+ } = o, T = {
1695
+ root: ["root", `color${$(n)}`, r && "disabled", s && "error", v && "fullWidth", a && "focused", u && "formControl", b && b !== "medium" && `size${$(b)}`, f && "multiline", S && "adornedStart", l && "adornedEnd", y && "hiddenLabel", h && "readOnly"],
1696
+ input: ["input", r && "disabled", w === "search" && "inputTypeSearch", f && "inputMultiline", b === "small" && "inputSizeSmall", y && "inputHiddenLabel", S && "inputAdornedStart", l && "inputAdornedEnd", h && "readOnly"]
1697
+ };
1698
+ return Y(T, Zo, t);
1699
+ }, ze = N("div", {
1700
+ name: "MuiInputBase",
1701
+ slot: "Root",
1702
+ overridesResolver: Ae
1703
+ })(V(({
1704
+ theme: o
1705
+ }) => ({
1706
+ ...o.typography.body1,
1707
+ color: (o.vars || o).palette.text.primary,
1708
+ lineHeight: "1.4375em",
1709
+ // 23px
1710
+ boxSizing: "border-box",
1711
+ // Prevent padding issue with fullWidth.
1712
+ position: "relative",
1713
+ cursor: "text",
1714
+ display: "inline-flex",
1715
+ alignItems: "center",
1716
+ [`&.${ke.disabled}`]: {
1717
+ color: (o.vars || o).palette.text.disabled,
1718
+ cursor: "default"
1719
+ },
1720
+ variants: [{
1721
+ props: ({
1722
+ ownerState: t
1723
+ }) => t.multiline,
1724
+ style: {
1725
+ padding: "4px 0 5px"
1726
+ }
1727
+ }, {
1728
+ props: ({
1729
+ ownerState: t,
1730
+ size: n
1731
+ }) => t.multiline && n === "small",
1732
+ style: {
1733
+ paddingTop: 1
1734
+ }
1735
+ }, {
1736
+ props: ({
1737
+ ownerState: t
1738
+ }) => t.fullWidth,
1739
+ style: {
1740
+ width: "100%"
1741
+ }
1742
+ }]
1743
+ }))), De = N("input", {
1744
+ name: "MuiInputBase",
1745
+ slot: "Input",
1746
+ overridesResolver: We
1747
+ })(V(({
1748
+ theme: o
1749
+ }) => {
1750
+ const t = o.palette.mode === "light", n = {
1751
+ color: "currentColor",
1752
+ ...o.vars ? {
1753
+ opacity: o.vars.opacity.inputPlaceholder
1754
+ } : {
1755
+ opacity: t ? 0.42 : 0.5
1756
+ },
1757
+ transition: o.transitions.create("opacity", {
1758
+ duration: o.transitions.duration.shorter
1759
+ })
1760
+ }, r = {
1761
+ opacity: "0 !important"
1762
+ }, s = o.vars ? {
1763
+ opacity: o.vars.opacity.inputPlaceholder
1764
+ } : {
1765
+ opacity: t ? 0.42 : 0.5
1766
+ };
1767
+ return {
1768
+ font: "inherit",
1769
+ letterSpacing: "inherit",
1770
+ color: "currentColor",
1771
+ padding: "4px 0 5px",
1772
+ border: 0,
1773
+ boxSizing: "content-box",
1774
+ background: "none",
1775
+ height: "1.4375em",
1776
+ // Reset 23pxthe native input line-height
1777
+ margin: 0,
1778
+ // Reset for Safari
1779
+ WebkitTapHighlightColor: "transparent",
1780
+ display: "block",
1781
+ // Make the flex item shrink with Firefox
1782
+ minWidth: 0,
1783
+ width: "100%",
1784
+ "&::-webkit-input-placeholder": n,
1785
+ "&::-moz-placeholder": n,
1786
+ // Firefox 19+
1787
+ "&::-ms-input-placeholder": n,
1788
+ // Edge
1789
+ "&:focus": {
1790
+ outline: 0
1791
+ },
1792
+ // Reset Firefox invalid required input style
1793
+ "&:invalid": {
1794
+ boxShadow: "none"
1795
+ },
1796
+ "&::-webkit-search-decoration": {
1797
+ // Remove the padding when type=search.
1798
+ WebkitAppearance: "none"
1799
+ },
1800
+ // Show and hide the placeholder logic
1801
+ [`label[data-shrink=false] + .${ke.formControl} &`]: {
1802
+ "&::-webkit-input-placeholder": r,
1803
+ "&::-moz-placeholder": r,
1804
+ // Firefox 19+
1805
+ "&::-ms-input-placeholder": r,
1806
+ // Edge
1807
+ "&:focus::-webkit-input-placeholder": s,
1808
+ "&:focus::-moz-placeholder": s,
1809
+ // Firefox 19+
1810
+ "&:focus::-ms-input-placeholder": s
1811
+ // Edge
1812
+ },
1813
+ [`&.${ke.disabled}`]: {
1814
+ opacity: 1,
1815
+ // Reset iOS opacity
1816
+ WebkitTextFillColor: (o.vars || o).palette.text.disabled
1817
+ // Fix opacity Safari bug
1818
+ },
1819
+ variants: [{
1820
+ props: ({
1821
+ ownerState: l
1822
+ }) => !l.disableInjectingGlobalStyles,
1823
+ style: {
1824
+ animationName: "mui-auto-fill-cancel",
1825
+ animationDuration: "10ms",
1826
+ "&:-webkit-autofill": {
1827
+ animationDuration: "5000s",
1828
+ animationName: "mui-auto-fill"
1829
+ }
1830
+ }
1831
+ }, {
1832
+ props: {
1833
+ size: "small"
1834
+ },
1835
+ style: {
1836
+ paddingTop: 1
1837
+ }
1838
+ }, {
1839
+ props: ({
1840
+ ownerState: l
1841
+ }) => l.multiline,
1842
+ style: {
1843
+ height: "auto",
1844
+ resize: "none",
1845
+ padding: 0,
1846
+ paddingTop: 0
1847
+ }
1848
+ }, {
1849
+ props: {
1850
+ type: "search"
1851
+ },
1852
+ style: {
1853
+ MozAppearance: "textfield"
1854
+ // Improve type search style.
1855
+ }
1856
+ }]
1857
+ };
1858
+ })), xo = Qo({
1859
+ "@keyframes mui-auto-fill": {
1860
+ from: {
1861
+ display: "block"
1862
+ }
1863
+ },
1864
+ "@keyframes mui-auto-fill-cancel": {
1865
+ from: {
1866
+ display: "block"
1867
+ }
1868
+ }
1869
+ }), Le = /* @__PURE__ */ i.forwardRef(function(t, n) {
1870
+ const r = ae({
1871
+ props: t,
1872
+ name: "MuiInputBase"
1873
+ }), {
1874
+ "aria-describedby": s,
1875
+ autoComplete: l,
1876
+ autoFocus: a,
1877
+ className: u,
1878
+ color: v,
1879
+ components: y = {},
1880
+ componentsProps: f = {},
1881
+ defaultValue: h,
1882
+ disabled: b,
1883
+ disableInjectingGlobalStyles: S,
1884
+ endAdornment: w,
1885
+ error: T,
1886
+ fullWidth: g = !1,
1887
+ id: I,
1888
+ inputComponent: x = "input",
1889
+ inputProps: c = {},
1890
+ inputRef: p,
1891
+ margin: E,
1892
+ maxRows: O,
1893
+ minRows: L,
1894
+ multiline: H = !1,
1895
+ name: _,
1896
+ onBlur: A,
1897
+ onChange: W,
1898
+ onClick: P,
1899
+ onFocus: F,
1900
+ onKeyDown: z,
1901
+ onKeyUp: le,
1902
+ placeholder: K,
1903
+ readOnly: B,
1904
+ renderSuffix: q,
1905
+ rows: j,
1906
+ size: Ue,
1907
+ slotProps: we = {},
1908
+ slots: Pe = {},
1909
+ startAdornment: Q,
1910
+ type: G = "text",
1911
+ value: Z,
1912
+ ...Ve
1913
+ } = r, ee = c.value != null ? c.value : Z, {
1914
+ current: Ie
1915
+ } = i.useRef(ee != null), J = i.useRef(), He = i.useCallback((R) => {
1916
+ process.env.NODE_ENV !== "production" && R && R.nodeName !== "INPUT" && !R.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
1917
+ `));
1918
+ }, []), _e = Me(J, p, c.ref, He), [oe, te] = i.useState(!1), k = Qe();
1919
+ process.env.NODE_ENV !== "production" && i.useEffect(() => {
1920
+ if (k)
1921
+ return k.registerEffect();
1922
+ }, [k]);
1923
+ const U = oo({
1924
+ props: r,
1925
+ muiFormControl: k,
1926
+ states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
1927
+ });
1928
+ U.focused = k ? k.focused : oe, i.useEffect(() => {
1929
+ !k && b && oe && (te(!1), A && A());
1930
+ }, [k, b, oe, A]);
1931
+ const ne = k && k.onFilled, Re = k && k.onEmpty, de = i.useCallback((R) => {
1932
+ Be(R) ? ne && ne() : Re && Re();
1933
+ }, [ne, Re]);
1934
+ Xe(() => {
1935
+ Ie && de({
1936
+ value: ee
1937
+ });
1938
+ }, [ee, de, Ie]);
1939
+ const qe = (R) => {
1940
+ F && F(R), c.onFocus && c.onFocus(R), k && k.onFocus ? k.onFocus(R) : te(!0);
1941
+ }, ce = (R) => {
1942
+ A && A(R), c.onBlur && c.onBlur(R), k && k.onBlur ? k.onBlur(R) : te(!1);
1943
+ }, Ke = (R, ...ye) => {
1944
+ if (!Ie) {
1945
+ const he = R.target || J.current;
1946
+ if (he == null)
1947
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : wo(1));
1948
+ de({
1949
+ value: he.value
1950
+ });
1951
+ }
1952
+ c.onChange && c.onChange(R, ...ye), W && W(R, ...ye);
1953
+ };
1954
+ i.useEffect(() => {
1955
+ de(J.current);
1956
+ }, []);
1957
+ const re = (R) => {
1958
+ J.current && R.currentTarget === R.target && J.current.focus(), P && P(R);
1959
+ };
1960
+ let be = x, D = c;
1961
+ H && be === "input" && (j ? (process.env.NODE_ENV !== "production" && (L || O) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), D = {
1962
+ type: void 0,
1963
+ minRows: j,
1964
+ maxRows: j,
1965
+ ...D
1966
+ }) : D = {
1967
+ type: void 0,
1968
+ maxRows: O,
1969
+ minRows: L,
1970
+ ...D
1971
+ }, be = Mo);
1972
+ const ge = (R) => {
1973
+ de(R.animationName === "mui-auto-fill-cancel" ? J.current : {
1974
+ value: "x"
1975
+ });
1976
+ };
1977
+ i.useEffect(() => {
1978
+ k && k.setAdornedStart(!!Q);
1979
+ }, [k, Q]);
1980
+ const ue = {
1981
+ ...r,
1982
+ color: U.color || "primary",
1983
+ disabled: U.disabled,
1984
+ endAdornment: w,
1985
+ error: U.error,
1986
+ focused: U.focused,
1987
+ formControl: k,
1988
+ fullWidth: g,
1989
+ hiddenLabel: U.hiddenLabel,
1990
+ multiline: H,
1991
+ size: U.size,
1992
+ startAdornment: Q,
1993
+ type: G
1994
+ }, $e = Et(ue), Te = Pe.root || y.Root || ze, pe = we.root || f.root || {}, Ne = Pe.input || y.Input || De;
1995
+ return D = {
1996
+ ...D,
1997
+ ...we.input ?? f.input
1998
+ }, /* @__PURE__ */ m.jsxs(i.Fragment, {
1999
+ children: [!S && typeof xo == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
2000
+ // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
2001
+ (So || (So = /* @__PURE__ */ m.jsx(xo, {}))), /* @__PURE__ */ m.jsxs(Te, {
2002
+ ...pe,
2003
+ ref: n,
2004
+ onClick: re,
2005
+ ...Ve,
2006
+ ...!mo(Te) && {
2007
+ ownerState: {
2008
+ ...ue,
2009
+ ...pe.ownerState
2010
+ }
2011
+ },
2012
+ className: ie($e.root, pe.className, u, B && "MuiInputBase-readOnly"),
2013
+ children: [Q, /* @__PURE__ */ m.jsx(Io.Provider, {
2014
+ value: null,
2015
+ children: /* @__PURE__ */ m.jsx(Ne, {
2016
+ "aria-invalid": U.error,
2017
+ "aria-describedby": s,
2018
+ autoComplete: l,
2019
+ autoFocus: a,
2020
+ defaultValue: h,
2021
+ disabled: U.disabled,
2022
+ id: I,
2023
+ onAnimationStart: ge,
2024
+ name: _,
2025
+ placeholder: K,
2026
+ readOnly: B,
2027
+ required: U.required,
2028
+ rows: j,
2029
+ value: ee,
2030
+ onKeyDown: z,
2031
+ onKeyUp: le,
2032
+ type: G,
2033
+ ...D,
2034
+ ...!mo(Ne) && {
2035
+ as: be,
2036
+ ownerState: {
2037
+ ...ue,
2038
+ ...D.ownerState
2039
+ }
2040
+ },
2041
+ ref: _e,
2042
+ className: ie($e.input, D.className, B && "MuiInputBase-readOnly"),
2043
+ onBlur: ce,
2044
+ onChange: Ke,
2045
+ onFocus: qe
2046
+ })
2047
+ }), w, q ? q({
2048
+ ...U,
2049
+ startAdornment: Q
2050
+ }) : null]
2051
+ })]
2052
+ });
2053
+ });
2054
+ process.env.NODE_ENV !== "production" && (Le.propTypes = {
2055
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2056
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2057
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2058
+ // └─────────────────────────────────────────────────────────────────────┘
2059
+ /**
2060
+ * @ignore
2061
+ */
2062
+ "aria-describedby": e.string,
2063
+ /**
2064
+ * This prop helps users to fill forms faster, especially on mobile devices.
2065
+ * The name can be confusing, as it's more like an autofill.
2066
+ * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
2067
+ */
2068
+ autoComplete: e.string,
2069
+ /**
2070
+ * If `true`, the `input` element is focused during the first mount.
2071
+ */
2072
+ autoFocus: e.bool,
2073
+ /**
2074
+ * Override or extend the styles applied to the component.
2075
+ */
2076
+ classes: e.object,
2077
+ /**
2078
+ * @ignore
2079
+ */
2080
+ className: e.string,
2081
+ /**
2082
+ * The color of the component.
2083
+ * It supports both default and custom theme colors, which can be added as shown in the
2084
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
2085
+ * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
2086
+ */
2087
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
2088
+ /**
2089
+ * The components used for each slot inside.
2090
+ *
2091
+ * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2092
+ *
2093
+ * @default {}
2094
+ */
2095
+ components: e.shape({
2096
+ Input: e.elementType,
2097
+ Root: e.elementType
2098
+ }),
2099
+ /**
2100
+ * The extra props for the slot components.
2101
+ * You can override the existing props or add new ones.
2102
+ *
2103
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2104
+ *
2105
+ * @default {}
2106
+ */
2107
+ componentsProps: e.shape({
2108
+ input: e.object,
2109
+ root: e.object
2110
+ }),
2111
+ /**
2112
+ * The default value. Use when the component is not controlled.
2113
+ */
2114
+ defaultValue: e.any,
2115
+ /**
2116
+ * If `true`, the component is disabled.
2117
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2118
+ */
2119
+ disabled: e.bool,
2120
+ /**
2121
+ * If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
2122
+ * This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
2123
+ * @default false
2124
+ */
2125
+ disableInjectingGlobalStyles: e.bool,
2126
+ /**
2127
+ * End `InputAdornment` for this component.
2128
+ */
2129
+ endAdornment: e.node,
2130
+ /**
2131
+ * If `true`, the `input` will indicate an error.
2132
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2133
+ */
2134
+ error: e.bool,
2135
+ /**
2136
+ * If `true`, the `input` will take up the full width of its container.
2137
+ * @default false
2138
+ */
2139
+ fullWidth: e.bool,
2140
+ /**
2141
+ * The id of the `input` element.
2142
+ */
2143
+ id: e.string,
2144
+ /**
2145
+ * The component used for the `input` element.
2146
+ * Either a string to use a HTML element or a component.
2147
+ * @default 'input'
2148
+ */
2149
+ inputComponent: _o,
2150
+ /**
2151
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
2152
+ * @default {}
2153
+ */
2154
+ inputProps: e.object,
2155
+ /**
2156
+ * Pass a ref to the `input` element.
2157
+ */
2158
+ inputRef: Oe,
2159
+ /**
2160
+ * If `dense`, will adjust vertical spacing. This is normally obtained via context from
2161
+ * FormControl.
2162
+ * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
2163
+ */
2164
+ margin: e.oneOf(["dense", "none"]),
2165
+ /**
2166
+ * Maximum number of rows to display when multiline option is set to true.
2167
+ */
2168
+ maxRows: e.oneOfType([e.number, e.string]),
2169
+ /**
2170
+ * Minimum number of rows to display when multiline option is set to true.
2171
+ */
2172
+ minRows: e.oneOfType([e.number, e.string]),
2173
+ /**
2174
+ * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
2175
+ * @default false
2176
+ */
2177
+ multiline: e.bool,
2178
+ /**
2179
+ * Name attribute of the `input` element.
2180
+ */
2181
+ name: e.string,
2182
+ /**
2183
+ * Callback fired when the `input` is blurred.
2184
+ *
2185
+ * Notice that the first argument (event) might be undefined.
2186
+ */
2187
+ onBlur: e.func,
2188
+ /**
2189
+ * Callback fired when the value is changed.
2190
+ *
2191
+ * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
2192
+ * You can pull out the new value by accessing `event.target.value` (string).
2193
+ */
2194
+ onChange: e.func,
2195
+ /**
2196
+ * @ignore
2197
+ */
2198
+ onClick: e.func,
2199
+ /**
2200
+ * @ignore
2201
+ */
2202
+ onFocus: e.func,
2203
+ /**
2204
+ * Callback fired when the `input` doesn't satisfy its constraints.
2205
+ */
2206
+ onInvalid: e.func,
2207
+ /**
2208
+ * @ignore
2209
+ */
2210
+ onKeyDown: e.func,
2211
+ /**
2212
+ * @ignore
2213
+ */
2214
+ onKeyUp: e.func,
2215
+ /**
2216
+ * The short hint displayed in the `input` before the user enters a value.
2217
+ */
2218
+ placeholder: e.string,
2219
+ /**
2220
+ * It prevents the user from changing the value of the field
2221
+ * (not from interacting with the field).
2222
+ */
2223
+ readOnly: e.bool,
2224
+ /**
2225
+ * @ignore
2226
+ */
2227
+ renderSuffix: e.func,
2228
+ /**
2229
+ * If `true`, the `input` element is required.
2230
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2231
+ */
2232
+ required: e.bool,
2233
+ /**
2234
+ * Number of rows to display when multiline option is set to true.
2235
+ */
2236
+ rows: e.oneOfType([e.number, e.string]),
2237
+ /**
2238
+ * The size of the component.
2239
+ */
2240
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
2241
+ /**
2242
+ * The extra props for the slot components.
2243
+ * You can override the existing props or add new ones.
2244
+ *
2245
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
2246
+ *
2247
+ * @default {}
2248
+ */
2249
+ slotProps: e.shape({
2250
+ input: e.object,
2251
+ root: e.object
2252
+ }),
2253
+ /**
2254
+ * The components used for each slot inside.
2255
+ *
2256
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
2257
+ *
2258
+ * @default {}
2259
+ */
2260
+ slots: e.shape({
2261
+ input: e.elementType,
2262
+ root: e.elementType
2263
+ }),
2264
+ /**
2265
+ * Start `InputAdornment` for this component.
2266
+ */
2267
+ startAdornment: e.node,
2268
+ /**
2269
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2270
+ */
2271
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2272
+ /**
2273
+ * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
2274
+ * @default 'text'
2275
+ */
2276
+ type: e.string,
2277
+ /**
2278
+ * The value of the `input` element, required for a controlled component.
2279
+ */
2280
+ value: e.any
2281
+ });
2282
+ function kt(o) {
2283
+ return Se("MuiInput", o);
2284
+ }
2285
+ const Ee = {
2286
+ ...ke,
2287
+ ...xe("MuiInput", ["root", "underline", "input"])
2288
+ }, Pt = (o) => {
2289
+ const {
2290
+ classes: t,
2291
+ disableUnderline: n
2292
+ } = o, s = Y({
2293
+ root: ["root", !n && "underline"],
2294
+ input: ["input"]
2295
+ }, kt, t);
2296
+ return {
2297
+ ...t,
2298
+ // forward classes to the InputBase
2299
+ ...s
2300
+ };
2301
+ }, $t = N(ze, {
2302
+ shouldForwardProp: (o) => me(o) || o === "classes",
2303
+ name: "MuiInput",
2304
+ slot: "Root",
2305
+ overridesResolver: (o, t) => {
2306
+ const {
2307
+ ownerState: n
2308
+ } = o;
2309
+ return [...Ae(o, t), !n.disableUnderline && t.underline];
2310
+ }
2311
+ })(V(({
2312
+ theme: o
2313
+ }) => {
2314
+ let n = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
2315
+ return o.vars && (n = `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`), {
2316
+ position: "relative",
2317
+ variants: [{
2318
+ props: ({
2319
+ ownerState: r
2320
+ }) => r.formControl,
2321
+ style: {
2322
+ "label + &": {
2323
+ marginTop: 16
2324
+ }
2325
+ }
2326
+ }, {
2327
+ props: ({
2328
+ ownerState: r
2329
+ }) => !r.disableUnderline,
2330
+ style: {
2331
+ "&::after": {
2332
+ left: 0,
2333
+ bottom: 0,
2334
+ content: '""',
2335
+ position: "absolute",
2336
+ right: 0,
2337
+ transform: "scaleX(0)",
2338
+ transition: o.transitions.create("transform", {
2339
+ duration: o.transitions.duration.shorter,
2340
+ easing: o.transitions.easing.easeOut
2341
+ }),
2342
+ pointerEvents: "none"
2343
+ // Transparent to the hover style.
2344
+ },
2345
+ [`&.${Ee.focused}:after`]: {
2346
+ // translateX(0) is a workaround for Safari transform scale bug
2347
+ // See https://github.com/mui/material-ui/issues/31766
2348
+ transform: "scaleX(1) translateX(0)"
2349
+ },
2350
+ [`&.${Ee.error}`]: {
2351
+ "&::before, &::after": {
2352
+ borderBottomColor: (o.vars || o).palette.error.main
2353
+ }
2354
+ },
2355
+ "&::before": {
2356
+ borderBottom: `1px solid ${n}`,
2357
+ left: 0,
2358
+ bottom: 0,
2359
+ content: '"\\00a0"',
2360
+ position: "absolute",
2361
+ right: 0,
2362
+ transition: o.transitions.create("border-bottom-color", {
2363
+ duration: o.transitions.duration.shorter
2364
+ }),
2365
+ pointerEvents: "none"
2366
+ // Transparent to the hover style.
2367
+ },
2368
+ [`&:hover:not(.${Ee.disabled}, .${Ee.error}):before`]: {
2369
+ borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
2370
+ // Reset on touch devices, it doesn't add specificity
2371
+ "@media (hover: none)": {
2372
+ borderBottom: `1px solid ${n}`
2373
+ }
2374
+ },
2375
+ [`&.${Ee.disabled}:before`]: {
2376
+ borderBottomStyle: "dotted"
2377
+ }
2378
+ }
2379
+ }, ...Object.entries(o.palette).filter(Ce()).map(([r]) => ({
2380
+ props: {
2381
+ color: r,
2382
+ disableUnderline: !1
2383
+ },
2384
+ style: {
2385
+ "&::after": {
2386
+ borderBottom: `2px solid ${(o.vars || o).palette[r].main}`
2387
+ }
2388
+ }
2389
+ }))]
2390
+ };
2391
+ })), Ft = N(De, {
2392
+ name: "MuiInput",
2393
+ slot: "Input",
2394
+ overridesResolver: We
2395
+ })({}), to = /* @__PURE__ */ i.forwardRef(function(t, n) {
2396
+ const r = ae({
2397
+ props: t,
2398
+ name: "MuiInput"
2399
+ }), {
2400
+ disableUnderline: s = !1,
2401
+ components: l = {},
2402
+ componentsProps: a,
2403
+ fullWidth: u = !1,
2404
+ inputComponent: v = "input",
2405
+ multiline: y = !1,
2406
+ slotProps: f,
2407
+ slots: h = {},
2408
+ type: b = "text",
2409
+ ...S
2410
+ } = r, w = Pt(r), g = {
2411
+ root: {
2412
+ ownerState: {
2413
+ disableUnderline: s
2414
+ }
2415
+ }
2416
+ }, I = f ?? a ? Je(f ?? a, g) : g, x = h.root ?? l.Root ?? $t, c = h.input ?? l.Input ?? Ft;
2417
+ return /* @__PURE__ */ m.jsx(Le, {
2418
+ slots: {
2419
+ root: x,
2420
+ input: c
2421
+ },
2422
+ slotProps: I,
2423
+ fullWidth: u,
2424
+ inputComponent: v,
2425
+ multiline: y,
2426
+ ref: n,
2427
+ type: b,
2428
+ ...S,
2429
+ classes: w
2430
+ });
2431
+ });
2432
+ process.env.NODE_ENV !== "production" && (to.propTypes = {
2433
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2434
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2435
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2436
+ // └─────────────────────────────────────────────────────────────────────┘
2437
+ /**
2438
+ * This prop helps users to fill forms faster, especially on mobile devices.
2439
+ * The name can be confusing, as it's more like an autofill.
2440
+ * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
2441
+ */
2442
+ autoComplete: e.string,
2443
+ /**
2444
+ * If `true`, the `input` element is focused during the first mount.
2445
+ */
2446
+ autoFocus: e.bool,
2447
+ /**
2448
+ * Override or extend the styles applied to the component.
2449
+ */
2450
+ classes: e.object,
2451
+ /**
2452
+ * The color of the component.
2453
+ * It supports both default and custom theme colors, which can be added as shown in the
2454
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
2455
+ * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
2456
+ */
2457
+ color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
2458
+ /**
2459
+ * The components used for each slot inside.
2460
+ *
2461
+ * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2462
+ *
2463
+ * @default {}
2464
+ */
2465
+ components: e.shape({
2466
+ Input: e.elementType,
2467
+ Root: e.elementType
2468
+ }),
2469
+ /**
2470
+ * The extra props for the slot components.
2471
+ * You can override the existing props or add new ones.
2472
+ *
2473
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2474
+ *
2475
+ * @default {}
2476
+ */
2477
+ componentsProps: e.shape({
2478
+ input: e.object,
2479
+ root: e.object
2480
+ }),
2481
+ /**
2482
+ * The default value. Use when the component is not controlled.
2483
+ */
2484
+ defaultValue: e.any,
2485
+ /**
2486
+ * If `true`, the component is disabled.
2487
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2488
+ */
2489
+ disabled: e.bool,
2490
+ /**
2491
+ * If `true`, the `input` will not have an underline.
2492
+ * @default false
2493
+ */
2494
+ disableUnderline: e.bool,
2495
+ /**
2496
+ * End `InputAdornment` for this component.
2497
+ */
2498
+ endAdornment: e.node,
2499
+ /**
2500
+ * If `true`, the `input` will indicate an error.
2501
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2502
+ */
2503
+ error: e.bool,
2504
+ /**
2505
+ * If `true`, the `input` will take up the full width of its container.
2506
+ * @default false
2507
+ */
2508
+ fullWidth: e.bool,
2509
+ /**
2510
+ * The id of the `input` element.
2511
+ */
2512
+ id: e.string,
2513
+ /**
2514
+ * The component used for the `input` element.
2515
+ * Either a string to use a HTML element or a component.
2516
+ * @default 'input'
2517
+ */
2518
+ inputComponent: e.elementType,
2519
+ /**
2520
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
2521
+ * @default {}
2522
+ */
2523
+ inputProps: e.object,
2524
+ /**
2525
+ * Pass a ref to the `input` element.
2526
+ */
2527
+ inputRef: Oe,
2528
+ /**
2529
+ * If `dense`, will adjust vertical spacing. This is normally obtained via context from
2530
+ * FormControl.
2531
+ * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
2532
+ */
2533
+ margin: e.oneOf(["dense", "none"]),
2534
+ /**
2535
+ * Maximum number of rows to display when multiline option is set to true.
2536
+ */
2537
+ maxRows: e.oneOfType([e.number, e.string]),
2538
+ /**
2539
+ * Minimum number of rows to display when multiline option is set to true.
2540
+ */
2541
+ minRows: e.oneOfType([e.number, e.string]),
2542
+ /**
2543
+ * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
2544
+ * @default false
2545
+ */
2546
+ multiline: e.bool,
2547
+ /**
2548
+ * Name attribute of the `input` element.
2549
+ */
2550
+ name: e.string,
2551
+ /**
2552
+ * Callback fired when the value is changed.
2553
+ *
2554
+ * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
2555
+ * You can pull out the new value by accessing `event.target.value` (string).
2556
+ */
2557
+ onChange: e.func,
2558
+ /**
2559
+ * The short hint displayed in the `input` before the user enters a value.
2560
+ */
2561
+ placeholder: e.string,
2562
+ /**
2563
+ * It prevents the user from changing the value of the field
2564
+ * (not from interacting with the field).
2565
+ */
2566
+ readOnly: e.bool,
2567
+ /**
2568
+ * If `true`, the `input` element is required.
2569
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2570
+ */
2571
+ required: e.bool,
2572
+ /**
2573
+ * Number of rows to display when multiline option is set to true.
2574
+ */
2575
+ rows: e.oneOfType([e.number, e.string]),
2576
+ /**
2577
+ * The extra props for the slot components.
2578
+ * You can override the existing props or add new ones.
2579
+ *
2580
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
2581
+ *
2582
+ * @default {}
2583
+ */
2584
+ slotProps: e.shape({
2585
+ input: e.object,
2586
+ root: e.object
2587
+ }),
2588
+ /**
2589
+ * The components used for each slot inside.
2590
+ *
2591
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
2592
+ *
2593
+ * @default {}
2594
+ */
2595
+ slots: e.shape({
2596
+ input: e.elementType,
2597
+ root: e.elementType
2598
+ }),
2599
+ /**
2600
+ * Start `InputAdornment` for this component.
2601
+ */
2602
+ startAdornment: e.node,
2603
+ /**
2604
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2605
+ */
2606
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2607
+ /**
2608
+ * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
2609
+ * @default 'text'
2610
+ */
2611
+ type: e.string,
2612
+ /**
2613
+ * The value of the `input` element, required for a controlled component.
2614
+ */
2615
+ value: e.any
2616
+ });
2617
+ to.muiName = "Input";
2618
+ function Bt(o) {
2619
+ return Se("MuiFilledInput", o);
2620
+ }
2621
+ const fe = {
2622
+ ...ke,
2623
+ ...xe("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
2624
+ }, Mt = (o) => {
2625
+ const {
2626
+ classes: t,
2627
+ disableUnderline: n,
2628
+ startAdornment: r,
2629
+ endAdornment: s,
2630
+ size: l,
2631
+ hiddenLabel: a,
2632
+ multiline: u
2633
+ } = o, v = {
2634
+ root: ["root", !n && "underline", r && "adornedStart", s && "adornedEnd", l === "small" && `size${$(l)}`, a && "hiddenLabel", u && "multiline"],
2635
+ input: ["input"]
2636
+ }, y = Y(v, Bt, t);
2637
+ return {
2638
+ ...t,
2639
+ // forward classes to the InputBase
2640
+ ...y
2641
+ };
2642
+ }, At = N(ze, {
2643
+ shouldForwardProp: (o) => me(o) || o === "classes",
2644
+ name: "MuiFilledInput",
2645
+ slot: "Root",
2646
+ overridesResolver: (o, t) => {
2647
+ const {
2648
+ ownerState: n
2649
+ } = o;
2650
+ return [...Ae(o, t), !n.disableUnderline && t.underline];
2651
+ }
2652
+ })(V(({
2653
+ theme: o
2654
+ }) => {
2655
+ const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", s = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", l = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
2656
+ return {
2657
+ position: "relative",
2658
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r,
2659
+ borderTopLeftRadius: (o.vars || o).shape.borderRadius,
2660
+ borderTopRightRadius: (o.vars || o).shape.borderRadius,
2661
+ transition: o.transitions.create("background-color", {
2662
+ duration: o.transitions.duration.shorter,
2663
+ easing: o.transitions.easing.easeOut
2664
+ }),
2665
+ "&:hover": {
2666
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : s,
2667
+ // Reset on touch devices, it doesn't add specificity
2668
+ "@media (hover: none)": {
2669
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
2670
+ }
2671
+ },
2672
+ [`&.${fe.focused}`]: {
2673
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
2674
+ },
2675
+ [`&.${fe.disabled}`]: {
2676
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : l
2677
+ },
2678
+ variants: [{
2679
+ props: ({
2680
+ ownerState: a
2681
+ }) => !a.disableUnderline,
2682
+ style: {
2683
+ "&::after": {
2684
+ left: 0,
2685
+ bottom: 0,
2686
+ content: '""',
2687
+ position: "absolute",
2688
+ right: 0,
2689
+ transform: "scaleX(0)",
2690
+ transition: o.transitions.create("transform", {
2691
+ duration: o.transitions.duration.shorter,
2692
+ easing: o.transitions.easing.easeOut
2693
+ }),
2694
+ pointerEvents: "none"
2695
+ // Transparent to the hover style.
2696
+ },
2697
+ [`&.${fe.focused}:after`]: {
2698
+ // translateX(0) is a workaround for Safari transform scale bug
2699
+ // See https://github.com/mui/material-ui/issues/31766
2700
+ transform: "scaleX(1) translateX(0)"
2701
+ },
2702
+ [`&.${fe.error}`]: {
2703
+ "&::before, &::after": {
2704
+ borderBottomColor: (o.vars || o).palette.error.main
2705
+ }
2706
+ },
2707
+ "&::before": {
2708
+ borderBottom: `1px solid ${o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})` : n}`,
2709
+ left: 0,
2710
+ bottom: 0,
2711
+ content: '"\\00a0"',
2712
+ position: "absolute",
2713
+ right: 0,
2714
+ transition: o.transitions.create("border-bottom-color", {
2715
+ duration: o.transitions.duration.shorter
2716
+ }),
2717
+ pointerEvents: "none"
2718
+ // Transparent to the hover style.
2719
+ },
2720
+ [`&:hover:not(.${fe.disabled}, .${fe.error}):before`]: {
2721
+ borderBottom: `1px solid ${(o.vars || o).palette.text.primary}`
2722
+ },
2723
+ [`&.${fe.disabled}:before`]: {
2724
+ borderBottomStyle: "dotted"
2725
+ }
2726
+ }
2727
+ }, ...Object.entries(o.palette).filter(Ce()).map(([a]) => {
2728
+ var u;
2729
+ return {
2730
+ props: {
2731
+ disableUnderline: !1,
2732
+ color: a
2733
+ },
2734
+ style: {
2735
+ "&::after": {
2736
+ borderBottom: `2px solid ${(u = (o.vars || o).palette[a]) == null ? void 0 : u.main}`
2737
+ }
2738
+ }
2739
+ };
2740
+ }), {
2741
+ props: ({
2742
+ ownerState: a
2743
+ }) => a.startAdornment,
2744
+ style: {
2745
+ paddingLeft: 12
2746
+ }
2747
+ }, {
2748
+ props: ({
2749
+ ownerState: a
2750
+ }) => a.endAdornment,
2751
+ style: {
2752
+ paddingRight: 12
2753
+ }
2754
+ }, {
2755
+ props: ({
2756
+ ownerState: a
2757
+ }) => a.multiline,
2758
+ style: {
2759
+ padding: "25px 12px 8px"
2760
+ }
2761
+ }, {
2762
+ props: ({
2763
+ ownerState: a,
2764
+ size: u
2765
+ }) => a.multiline && u === "small",
2766
+ style: {
2767
+ paddingTop: 21,
2768
+ paddingBottom: 4
2769
+ }
2770
+ }, {
2771
+ props: ({
2772
+ ownerState: a
2773
+ }) => a.multiline && a.hiddenLabel,
2774
+ style: {
2775
+ paddingTop: 16,
2776
+ paddingBottom: 17
2777
+ }
2778
+ }, {
2779
+ props: ({
2780
+ ownerState: a
2781
+ }) => a.multiline && a.hiddenLabel && a.size === "small",
2782
+ style: {
2783
+ paddingTop: 8,
2784
+ paddingBottom: 9
2785
+ }
2786
+ }]
2787
+ };
2788
+ })), Wt = N(De, {
2789
+ name: "MuiFilledInput",
2790
+ slot: "Input",
2791
+ overridesResolver: We
2792
+ })(V(({
2793
+ theme: o
2794
+ }) => ({
2795
+ paddingTop: 25,
2796
+ paddingRight: 12,
2797
+ paddingBottom: 8,
2798
+ paddingLeft: 12,
2799
+ ...!o.vars && {
2800
+ "&:-webkit-autofill": {
2801
+ WebkitBoxShadow: o.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
2802
+ WebkitTextFillColor: o.palette.mode === "light" ? null : "#fff",
2803
+ caretColor: o.palette.mode === "light" ? null : "#fff",
2804
+ borderTopLeftRadius: "inherit",
2805
+ borderTopRightRadius: "inherit"
2806
+ }
2807
+ },
2808
+ ...o.vars && {
2809
+ "&:-webkit-autofill": {
2810
+ borderTopLeftRadius: "inherit",
2811
+ borderTopRightRadius: "inherit"
2812
+ },
2813
+ [o.getColorSchemeSelector("dark")]: {
2814
+ "&:-webkit-autofill": {
2815
+ WebkitBoxShadow: "0 0 0 100px #266798 inset",
2816
+ WebkitTextFillColor: "#fff",
2817
+ caretColor: "#fff"
2818
+ }
2819
+ }
2820
+ },
2821
+ variants: [{
2822
+ props: {
2823
+ size: "small"
2824
+ },
2825
+ style: {
2826
+ paddingTop: 21,
2827
+ paddingBottom: 4
2828
+ }
2829
+ }, {
2830
+ props: ({
2831
+ ownerState: t
2832
+ }) => t.hiddenLabel,
2833
+ style: {
2834
+ paddingTop: 16,
2835
+ paddingBottom: 17
2836
+ }
2837
+ }, {
2838
+ props: ({
2839
+ ownerState: t
2840
+ }) => t.startAdornment,
2841
+ style: {
2842
+ paddingLeft: 0
2843
+ }
2844
+ }, {
2845
+ props: ({
2846
+ ownerState: t
2847
+ }) => t.endAdornment,
2848
+ style: {
2849
+ paddingRight: 0
2850
+ }
2851
+ }, {
2852
+ props: ({
2853
+ ownerState: t
2854
+ }) => t.hiddenLabel && t.size === "small",
2855
+ style: {
2856
+ paddingTop: 8,
2857
+ paddingBottom: 9
2858
+ }
2859
+ }, {
2860
+ props: ({
2861
+ ownerState: t
2862
+ }) => t.multiline,
2863
+ style: {
2864
+ paddingTop: 0,
2865
+ paddingBottom: 0,
2866
+ paddingLeft: 0,
2867
+ paddingRight: 0
2868
+ }
2869
+ }]
2870
+ }))), no = /* @__PURE__ */ i.forwardRef(function(t, n) {
2871
+ const r = ae({
2872
+ props: t,
2873
+ name: "MuiFilledInput"
2874
+ }), {
2875
+ disableUnderline: s = !1,
2876
+ components: l = {},
2877
+ componentsProps: a,
2878
+ fullWidth: u = !1,
2879
+ hiddenLabel: v,
2880
+ // declare here to prevent spreading to DOM
2881
+ inputComponent: y = "input",
2882
+ multiline: f = !1,
2883
+ slotProps: h,
2884
+ slots: b = {},
2885
+ type: S = "text",
2886
+ ...w
2887
+ } = r, T = {
2888
+ ...r,
2889
+ disableUnderline: s,
2890
+ fullWidth: u,
2891
+ inputComponent: y,
2892
+ multiline: f,
2893
+ type: S
2894
+ }, g = Mt(r), I = {
2895
+ root: {
2896
+ ownerState: T
2897
+ },
2898
+ input: {
2899
+ ownerState: T
2900
+ }
2901
+ }, x = h ?? a ? Je(I, h ?? a) : I, c = b.root ?? l.Root ?? At, p = b.input ?? l.Input ?? Wt;
2902
+ return /* @__PURE__ */ m.jsx(Le, {
2903
+ slots: {
2904
+ root: c,
2905
+ input: p
2906
+ },
2907
+ slotProps: x,
2908
+ fullWidth: u,
2909
+ inputComponent: y,
2910
+ multiline: f,
2911
+ ref: n,
2912
+ type: S,
2913
+ ...w,
2914
+ classes: g
2915
+ });
2916
+ });
2917
+ process.env.NODE_ENV !== "production" && (no.propTypes = {
2918
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2919
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2920
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2921
+ // └─────────────────────────────────────────────────────────────────────┘
2922
+ /**
2923
+ * This prop helps users to fill forms faster, especially on mobile devices.
2924
+ * The name can be confusing, as it's more like an autofill.
2925
+ * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
2926
+ */
2927
+ autoComplete: e.string,
2928
+ /**
2929
+ * If `true`, the `input` element is focused during the first mount.
2930
+ */
2931
+ autoFocus: e.bool,
2932
+ /**
2933
+ * Override or extend the styles applied to the component.
2934
+ */
2935
+ classes: e.object,
2936
+ /**
2937
+ * The color of the component.
2938
+ * It supports both default and custom theme colors, which can be added as shown in the
2939
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
2940
+ * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
2941
+ */
2942
+ color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
2943
+ /**
2944
+ * The components used for each slot inside.
2945
+ *
2946
+ * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2947
+ *
2948
+ * @default {}
2949
+ */
2950
+ components: e.shape({
2951
+ Input: e.elementType,
2952
+ Root: e.elementType
2953
+ }),
2954
+ /**
2955
+ * The extra props for the slot components.
2956
+ * You can override the existing props or add new ones.
2957
+ *
2958
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2959
+ *
2960
+ * @default {}
2961
+ */
2962
+ componentsProps: e.shape({
2963
+ input: e.object,
2964
+ root: e.object
2965
+ }),
2966
+ /**
2967
+ * The default value. Use when the component is not controlled.
2968
+ */
2969
+ defaultValue: e.any,
2970
+ /**
2971
+ * If `true`, the component is disabled.
2972
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2973
+ */
2974
+ disabled: e.bool,
2975
+ /**
2976
+ * If `true`, the input will not have an underline.
2977
+ * @default false
2978
+ */
2979
+ disableUnderline: e.bool,
2980
+ /**
2981
+ * End `InputAdornment` for this component.
2982
+ */
2983
+ endAdornment: e.node,
2984
+ /**
2985
+ * If `true`, the `input` will indicate an error.
2986
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
2987
+ */
2988
+ error: e.bool,
2989
+ /**
2990
+ * If `true`, the `input` will take up the full width of its container.
2991
+ * @default false
2992
+ */
2993
+ fullWidth: e.bool,
2994
+ /**
2995
+ * If `true`, the label is hidden.
2996
+ * This is used to increase density for a `FilledInput`.
2997
+ * Be sure to add `aria-label` to the `input` element.
2998
+ * @default false
2999
+ */
3000
+ hiddenLabel: e.bool,
3001
+ /**
3002
+ * The id of the `input` element.
3003
+ */
3004
+ id: e.string,
3005
+ /**
3006
+ * The component used for the `input` element.
3007
+ * Either a string to use a HTML element or a component.
3008
+ * @default 'input'
3009
+ */
3010
+ inputComponent: e.elementType,
3011
+ /**
3012
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
3013
+ * @default {}
3014
+ */
3015
+ inputProps: e.object,
3016
+ /**
3017
+ * Pass a ref to the `input` element.
3018
+ */
3019
+ inputRef: Oe,
3020
+ /**
3021
+ * If `dense`, will adjust vertical spacing. This is normally obtained via context from
3022
+ * FormControl.
3023
+ * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
3024
+ */
3025
+ margin: e.oneOf(["dense", "none"]),
3026
+ /**
3027
+ * Maximum number of rows to display when multiline option is set to true.
3028
+ */
3029
+ maxRows: e.oneOfType([e.number, e.string]),
3030
+ /**
3031
+ * Minimum number of rows to display when multiline option is set to true.
3032
+ */
3033
+ minRows: e.oneOfType([e.number, e.string]),
3034
+ /**
3035
+ * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
3036
+ * @default false
3037
+ */
3038
+ multiline: e.bool,
3039
+ /**
3040
+ * Name attribute of the `input` element.
3041
+ */
3042
+ name: e.string,
3043
+ /**
3044
+ * Callback fired when the value is changed.
3045
+ *
3046
+ * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
3047
+ * You can pull out the new value by accessing `event.target.value` (string).
3048
+ */
3049
+ onChange: e.func,
3050
+ /**
3051
+ * The short hint displayed in the `input` before the user enters a value.
3052
+ */
3053
+ placeholder: e.string,
3054
+ /**
3055
+ * It prevents the user from changing the value of the field
3056
+ * (not from interacting with the field).
3057
+ */
3058
+ readOnly: e.bool,
3059
+ /**
3060
+ * If `true`, the `input` element is required.
3061
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
3062
+ */
3063
+ required: e.bool,
3064
+ /**
3065
+ * Number of rows to display when multiline option is set to true.
3066
+ */
3067
+ rows: e.oneOfType([e.number, e.string]),
3068
+ /**
3069
+ * The extra props for the slot components.
3070
+ * You can override the existing props or add new ones.
3071
+ *
3072
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
3073
+ *
3074
+ * @default {}
3075
+ */
3076
+ slotProps: e.shape({
3077
+ input: e.object,
3078
+ root: e.object
3079
+ }),
3080
+ /**
3081
+ * The components used for each slot inside.
3082
+ *
3083
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
3084
+ *
3085
+ * @default {}
3086
+ */
3087
+ slots: e.shape({
3088
+ input: e.elementType,
3089
+ root: e.elementType
3090
+ }),
3091
+ /**
3092
+ * Start `InputAdornment` for this component.
3093
+ */
3094
+ startAdornment: e.node,
3095
+ /**
3096
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3097
+ */
3098
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
3099
+ /**
3100
+ * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
3101
+ * @default 'text'
3102
+ */
3103
+ type: e.string,
3104
+ /**
3105
+ * The value of the `input` element, required for a controlled component.
3106
+ */
3107
+ value: e.any
3108
+ });
3109
+ no.muiName = "Input";
3110
+ var Oo;
3111
+ const zt = N("fieldset", {
3112
+ shouldForwardProp: me
3113
+ })({
3114
+ textAlign: "left",
3115
+ position: "absolute",
3116
+ bottom: 0,
3117
+ right: 0,
3118
+ top: -5,
3119
+ left: 0,
3120
+ margin: 0,
3121
+ padding: "0 8px",
3122
+ pointerEvents: "none",
3123
+ borderRadius: "inherit",
3124
+ borderStyle: "solid",
3125
+ borderWidth: 1,
3126
+ overflow: "hidden",
3127
+ minWidth: "0%"
3128
+ }), Dt = N("legend", {
3129
+ shouldForwardProp: me
3130
+ })(V(({
3131
+ theme: o
3132
+ }) => ({
3133
+ float: "unset",
3134
+ // Fix conflict with bootstrap
3135
+ width: "auto",
3136
+ // Fix conflict with bootstrap
3137
+ overflow: "hidden",
3138
+ // Fix Horizontal scroll when label too long
3139
+ variants: [{
3140
+ props: ({
3141
+ ownerState: t
3142
+ }) => !t.withLabel,
3143
+ style: {
3144
+ padding: 0,
3145
+ lineHeight: "11px",
3146
+ // sync with `height` in `legend` styles
3147
+ transition: o.transitions.create("width", {
3148
+ duration: 150,
3149
+ easing: o.transitions.easing.easeOut
3150
+ })
3151
+ }
3152
+ }, {
3153
+ props: ({
3154
+ ownerState: t
3155
+ }) => t.withLabel,
3156
+ style: {
3157
+ display: "block",
3158
+ // Fix conflict with normalize.css and sanitize.css
3159
+ padding: 0,
3160
+ height: 11,
3161
+ // sync with `lineHeight` in `legend` styles
3162
+ fontSize: "0.75em",
3163
+ visibility: "hidden",
3164
+ maxWidth: 0.01,
3165
+ transition: o.transitions.create("max-width", {
3166
+ duration: 50,
3167
+ easing: o.transitions.easing.easeOut
3168
+ }),
3169
+ whiteSpace: "nowrap",
3170
+ "& > span": {
3171
+ paddingLeft: 5,
3172
+ paddingRight: 5,
3173
+ display: "inline-block",
3174
+ opacity: 0,
3175
+ visibility: "visible"
3176
+ }
3177
+ }
3178
+ }, {
3179
+ props: ({
3180
+ ownerState: t
3181
+ }) => t.withLabel && t.notched,
3182
+ style: {
3183
+ maxWidth: "100%",
3184
+ transition: o.transitions.create("max-width", {
3185
+ duration: 100,
3186
+ easing: o.transitions.easing.easeOut,
3187
+ delay: 50
3188
+ })
3189
+ }
3190
+ }]
3191
+ })));
3192
+ function Ao(o) {
3193
+ const {
3194
+ children: t,
3195
+ classes: n,
3196
+ className: r,
3197
+ label: s,
3198
+ notched: l,
3199
+ ...a
3200
+ } = o, u = s != null && s !== "", v = {
3201
+ ...o,
3202
+ notched: l,
3203
+ withLabel: u
3204
+ };
3205
+ return /* @__PURE__ */ m.jsx(zt, {
3206
+ "aria-hidden": !0,
3207
+ className: r,
3208
+ ownerState: v,
3209
+ ...a,
3210
+ children: /* @__PURE__ */ m.jsx(Dt, {
3211
+ ownerState: v,
3212
+ children: u ? /* @__PURE__ */ m.jsx("span", {
3213
+ children: s
3214
+ }) : (
3215
+ // notranslate needed while Google Translate will not fix zero-width space issue
3216
+ Oo || (Oo = /* @__PURE__ */ m.jsx("span", {
3217
+ className: "notranslate",
3218
+ "aria-hidden": !0,
3219
+ children: "​"
3220
+ }))
3221
+ )
3222
+ })
3223
+ });
3224
+ }
3225
+ process.env.NODE_ENV !== "production" && (Ao.propTypes = {
3226
+ /**
3227
+ * The content of the component.
3228
+ */
3229
+ children: e.node,
3230
+ /**
3231
+ * Override or extend the styles applied to the component.
3232
+ */
3233
+ classes: e.object,
3234
+ /**
3235
+ * @ignore
3236
+ */
3237
+ className: e.string,
3238
+ /**
3239
+ * The label.
3240
+ */
3241
+ label: e.node,
3242
+ /**
3243
+ * If `true`, the outline is notched to accommodate the label.
3244
+ */
3245
+ notched: e.bool.isRequired,
3246
+ /**
3247
+ * @ignore
3248
+ */
3249
+ style: e.object
3250
+ });
3251
+ const Lt = (o) => {
3252
+ const {
3253
+ classes: t
3254
+ } = o, r = Y({
3255
+ root: ["root"],
3256
+ notchedOutline: ["notchedOutline"],
3257
+ input: ["input"]
3258
+ }, Jo, t);
3259
+ return {
3260
+ ...t,
3261
+ // forward classes to the InputBase
3262
+ ...r
3263
+ };
3264
+ }, Ut = N(ze, {
3265
+ shouldForwardProp: (o) => me(o) || o === "classes",
3266
+ name: "MuiOutlinedInput",
3267
+ slot: "Root",
3268
+ overridesResolver: Ae
3269
+ })(V(({
3270
+ theme: o
3271
+ }) => {
3272
+ const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
3273
+ return {
3274
+ position: "relative",
3275
+ borderRadius: (o.vars || o).shape.borderRadius,
3276
+ [`&:hover .${X.notchedOutline}`]: {
3277
+ borderColor: (o.vars || o).palette.text.primary
3278
+ },
3279
+ // Reset on touch devices, it doesn't add specificity
3280
+ "@media (hover: none)": {
3281
+ [`&:hover .${X.notchedOutline}`]: {
3282
+ borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
3283
+ }
3284
+ },
3285
+ [`&.${X.focused} .${X.notchedOutline}`]: {
3286
+ borderWidth: 2
3287
+ },
3288
+ variants: [...Object.entries(o.palette).filter(Ce()).map(([n]) => ({
3289
+ props: {
3290
+ color: n
3291
+ },
3292
+ style: {
3293
+ [`&.${X.focused} .${X.notchedOutline}`]: {
3294
+ borderColor: (o.vars || o).palette[n].main
3295
+ }
3296
+ }
3297
+ })), {
3298
+ props: {},
3299
+ // to overide the above style
3300
+ style: {
3301
+ [`&.${X.error} .${X.notchedOutline}`]: {
3302
+ borderColor: (o.vars || o).palette.error.main
3303
+ },
3304
+ [`&.${X.disabled} .${X.notchedOutline}`]: {
3305
+ borderColor: (o.vars || o).palette.action.disabled
3306
+ }
3307
+ }
3308
+ }, {
3309
+ props: ({
3310
+ ownerState: n
3311
+ }) => n.startAdornment,
3312
+ style: {
3313
+ paddingLeft: 14
3314
+ }
3315
+ }, {
3316
+ props: ({
3317
+ ownerState: n
3318
+ }) => n.endAdornment,
3319
+ style: {
3320
+ paddingRight: 14
3321
+ }
3322
+ }, {
3323
+ props: ({
3324
+ ownerState: n
3325
+ }) => n.multiline,
3326
+ style: {
3327
+ padding: "16.5px 14px"
3328
+ }
3329
+ }, {
3330
+ props: ({
3331
+ ownerState: n,
3332
+ size: r
3333
+ }) => n.multiline && r === "small",
3334
+ style: {
3335
+ padding: "8.5px 14px"
3336
+ }
3337
+ }]
3338
+ };
3339
+ })), Vt = N(Ao, {
3340
+ name: "MuiOutlinedInput",
3341
+ slot: "NotchedOutline"
3342
+ })(V(({
3343
+ theme: o
3344
+ }) => {
3345
+ const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
3346
+ return {
3347
+ borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
3348
+ };
3349
+ })), Ht = N(De, {
3350
+ name: "MuiOutlinedInput",
3351
+ slot: "Input",
3352
+ overridesResolver: We
3353
+ })(V(({
3354
+ theme: o
3355
+ }) => ({
3356
+ padding: "16.5px 14px",
3357
+ ...!o.vars && {
3358
+ "&:-webkit-autofill": {
3359
+ WebkitBoxShadow: o.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
3360
+ WebkitTextFillColor: o.palette.mode === "light" ? null : "#fff",
3361
+ caretColor: o.palette.mode === "light" ? null : "#fff",
3362
+ borderRadius: "inherit"
3363
+ }
3364
+ },
3365
+ ...o.vars && {
3366
+ "&:-webkit-autofill": {
3367
+ borderRadius: "inherit"
3368
+ },
3369
+ [o.getColorSchemeSelector("dark")]: {
3370
+ "&:-webkit-autofill": {
3371
+ WebkitBoxShadow: "0 0 0 100px #266798 inset",
3372
+ WebkitTextFillColor: "#fff",
3373
+ caretColor: "#fff"
3374
+ }
3375
+ }
3376
+ },
3377
+ variants: [{
3378
+ props: {
3379
+ size: "small"
3380
+ },
3381
+ style: {
3382
+ padding: "8.5px 14px"
3383
+ }
3384
+ }, {
3385
+ props: ({
3386
+ ownerState: t
3387
+ }) => t.multiline,
3388
+ style: {
3389
+ padding: 0
3390
+ }
3391
+ }, {
3392
+ props: ({
3393
+ ownerState: t
3394
+ }) => t.startAdornment,
3395
+ style: {
3396
+ paddingLeft: 0
3397
+ }
3398
+ }, {
3399
+ props: ({
3400
+ ownerState: t
3401
+ }) => t.endAdornment,
3402
+ style: {
3403
+ paddingRight: 0
3404
+ }
3405
+ }]
3406
+ }))), ro = /* @__PURE__ */ i.forwardRef(function(t, n) {
3407
+ const r = ae({
3408
+ props: t,
3409
+ name: "MuiOutlinedInput"
3410
+ }), {
3411
+ components: s = {},
3412
+ fullWidth: l = !1,
3413
+ inputComponent: a = "input",
3414
+ label: u,
3415
+ multiline: v = !1,
3416
+ notched: y,
3417
+ slots: f = {},
3418
+ slotProps: h = {},
3419
+ type: b = "text",
3420
+ ...S
3421
+ } = r, w = Lt(r), T = Qe(), g = oo({
3422
+ props: r,
3423
+ muiFormControl: T,
3424
+ states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
3425
+ }), I = {
3426
+ ...r,
3427
+ color: g.color || "primary",
3428
+ disabled: g.disabled,
3429
+ error: g.error,
3430
+ focused: g.focused,
3431
+ formControl: T,
3432
+ fullWidth: l,
3433
+ hiddenLabel: g.hiddenLabel,
3434
+ multiline: v,
3435
+ size: g.size,
3436
+ type: b
3437
+ }, x = f.root ?? s.Root ?? Ut, c = f.input ?? s.Input ?? Ht, [p, E] = qo("notchedOutline", {
3438
+ elementType: Vt,
3439
+ className: w.notchedOutline,
3440
+ shouldForwardComponentProp: !0,
3441
+ ownerState: I,
3442
+ externalForwardedProps: {
3443
+ slots: f,
3444
+ slotProps: h
3445
+ },
3446
+ additionalProps: {
3447
+ label: u != null && u !== "" && g.required ? /* @__PURE__ */ m.jsxs(i.Fragment, {
3448
+ children: [u, " ", "*"]
3449
+ }) : u
3450
+ }
3451
+ });
3452
+ return /* @__PURE__ */ m.jsx(Le, {
3453
+ slots: {
3454
+ root: x,
3455
+ input: c
3456
+ },
3457
+ slotProps: h,
3458
+ renderSuffix: (O) => /* @__PURE__ */ m.jsx(p, {
3459
+ ...E,
3460
+ notched: typeof y < "u" ? y : !!(O.startAdornment || O.filled || O.focused)
3461
+ }),
3462
+ fullWidth: l,
3463
+ inputComponent: a,
3464
+ multiline: v,
3465
+ ref: n,
3466
+ type: b,
3467
+ ...S,
3468
+ classes: {
3469
+ ...w,
3470
+ notchedOutline: null
3471
+ }
3472
+ });
3473
+ });
3474
+ process.env.NODE_ENV !== "production" && (ro.propTypes = {
3475
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
3476
+ // │ These PropTypes are generated from the TypeScript type definitions. │
3477
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3478
+ // └─────────────────────────────────────────────────────────────────────┘
3479
+ /**
3480
+ * This prop helps users to fill forms faster, especially on mobile devices.
3481
+ * The name can be confusing, as it's more like an autofill.
3482
+ * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
3483
+ */
3484
+ autoComplete: e.string,
3485
+ /**
3486
+ * If `true`, the `input` element is focused during the first mount.
3487
+ */
3488
+ autoFocus: e.bool,
3489
+ /**
3490
+ * Override or extend the styles applied to the component.
3491
+ */
3492
+ classes: e.object,
3493
+ /**
3494
+ * The color of the component.
3495
+ * It supports both default and custom theme colors, which can be added as shown in the
3496
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
3497
+ * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
3498
+ */
3499
+ color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
3500
+ /**
3501
+ * The components used for each slot inside.
3502
+ *
3503
+ * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
3504
+ *
3505
+ * @default {}
3506
+ */
3507
+ components: e.shape({
3508
+ Input: e.elementType,
3509
+ Root: e.elementType
3510
+ }),
3511
+ /**
3512
+ * The default value. Use when the component is not controlled.
3513
+ */
3514
+ defaultValue: e.any,
3515
+ /**
3516
+ * If `true`, the component is disabled.
3517
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
3518
+ */
3519
+ disabled: e.bool,
3520
+ /**
3521
+ * End `InputAdornment` for this component.
3522
+ */
3523
+ endAdornment: e.node,
3524
+ /**
3525
+ * If `true`, the `input` will indicate an error.
3526
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
3527
+ */
3528
+ error: e.bool,
3529
+ /**
3530
+ * If `true`, the `input` will take up the full width of its container.
3531
+ * @default false
3532
+ */
3533
+ fullWidth: e.bool,
3534
+ /**
3535
+ * The id of the `input` element.
3536
+ */
3537
+ id: e.string,
3538
+ /**
3539
+ * The component used for the `input` element.
3540
+ * Either a string to use a HTML element or a component.
3541
+ * @default 'input'
3542
+ */
3543
+ inputComponent: e.elementType,
3544
+ /**
3545
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
3546
+ * @default {}
3547
+ */
3548
+ inputProps: e.object,
3549
+ /**
3550
+ * Pass a ref to the `input` element.
3551
+ */
3552
+ inputRef: Oe,
3553
+ /**
3554
+ * The label of the `input`. It is only used for layout. The actual labelling
3555
+ * is handled by `InputLabel`.
3556
+ */
3557
+ label: e.node,
3558
+ /**
3559
+ * If `dense`, will adjust vertical spacing. This is normally obtained via context from
3560
+ * FormControl.
3561
+ * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
3562
+ */
3563
+ margin: e.oneOf(["dense", "none"]),
3564
+ /**
3565
+ * Maximum number of rows to display when multiline option is set to true.
3566
+ */
3567
+ maxRows: e.oneOfType([e.number, e.string]),
3568
+ /**
3569
+ * Minimum number of rows to display when multiline option is set to true.
3570
+ */
3571
+ minRows: e.oneOfType([e.number, e.string]),
3572
+ /**
3573
+ * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
3574
+ * @default false
3575
+ */
3576
+ multiline: e.bool,
3577
+ /**
3578
+ * Name attribute of the `input` element.
3579
+ */
3580
+ name: e.string,
3581
+ /**
3582
+ * If `true`, the outline is notched to accommodate the label.
3583
+ */
3584
+ notched: e.bool,
3585
+ /**
3586
+ * Callback fired when the value is changed.
3587
+ *
3588
+ * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
3589
+ * You can pull out the new value by accessing `event.target.value` (string).
3590
+ */
3591
+ onChange: e.func,
3592
+ /**
3593
+ * The short hint displayed in the `input` before the user enters a value.
3594
+ */
3595
+ placeholder: e.string,
3596
+ /**
3597
+ * It prevents the user from changing the value of the field
3598
+ * (not from interacting with the field).
3599
+ */
3600
+ readOnly: e.bool,
3601
+ /**
3602
+ * If `true`, the `input` element is required.
3603
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
3604
+ */
3605
+ required: e.bool,
3606
+ /**
3607
+ * Number of rows to display when multiline option is set to true.
3608
+ */
3609
+ rows: e.oneOfType([e.number, e.string]),
3610
+ /**
3611
+ * The props used for each slot inside.
3612
+ * @default {}
3613
+ */
3614
+ slotProps: e.shape({
3615
+ input: e.object,
3616
+ notchedOutline: e.oneOfType([e.func, e.object]),
3617
+ root: e.object
3618
+ }),
3619
+ /**
3620
+ * The components used for each slot inside.
3621
+ * @default {}
3622
+ */
3623
+ slots: e.shape({
3624
+ input: e.elementType,
3625
+ notchedOutline: e.elementType,
3626
+ root: e.elementType
3627
+ }),
3628
+ /**
3629
+ * Start `InputAdornment` for this component.
3630
+ */
3631
+ startAdornment: e.node,
3632
+ /**
3633
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3634
+ */
3635
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
3636
+ /**
3637
+ * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
3638
+ * @default 'text'
3639
+ */
3640
+ type: e.string,
3641
+ /**
3642
+ * The value of the `input` element, required for a controlled component.
3643
+ */
3644
+ value: e.any
3645
+ });
3646
+ ro.muiName = "Input";
3647
+ const _t = (o) => {
3648
+ const {
3649
+ classes: t
3650
+ } = o, r = Y({
3651
+ root: ["root"]
3652
+ }, Fo, t);
3653
+ return {
3654
+ ...t,
3655
+ ...r
3656
+ };
3657
+ }, so = {
3658
+ name: "MuiSelect",
3659
+ slot: "Root",
3660
+ shouldForwardProp: (o) => me(o) && o !== "variant"
3661
+ }, qt = N(to, so)(""), Kt = N(ro, so)(""), Gt = N(no, so)(""), Wo = /* @__PURE__ */ i.forwardRef(function(t, n) {
3662
+ const r = ae({
3663
+ name: "MuiSelect",
3664
+ props: t
3665
+ }), {
3666
+ autoWidth: s = !1,
3667
+ children: l,
3668
+ classes: a = {},
3669
+ className: u,
3670
+ defaultOpen: v = !1,
3671
+ displayEmpty: y = !1,
3672
+ IconComponent: f = Tt,
3673
+ id: h,
3674
+ input: b,
3675
+ inputProps: S,
3676
+ label: w,
3677
+ labelId: T,
3678
+ MenuProps: g,
3679
+ multiple: I = !1,
3680
+ native: x = !1,
3681
+ onClose: c,
3682
+ onOpen: p,
3683
+ open: E,
3684
+ renderValue: O,
3685
+ SelectDisplayProps: L,
3686
+ variant: H = "outlined",
3687
+ ..._
3688
+ } = r, A = x ? $o : Bo, W = Qe(), P = oo({
3689
+ props: r,
3690
+ muiFormControl: W,
3691
+ states: ["variant", "error"]
3692
+ }), F = P.variant || H, z = {
3693
+ ...r,
3694
+ variant: F,
3695
+ classes: a
3696
+ }, le = _t(z), {
3697
+ root: K,
3698
+ ...B
3699
+ } = le, q = b || {
3700
+ standard: /* @__PURE__ */ m.jsx(qt, {
3701
+ ownerState: z
3702
+ }),
3703
+ outlined: /* @__PURE__ */ m.jsx(Kt, {
3704
+ label: w,
3705
+ ownerState: z
3706
+ }),
3707
+ filled: /* @__PURE__ */ m.jsx(Gt, {
3708
+ ownerState: z
3709
+ })
3710
+ }[F], j = Me(n, Yo(q));
3711
+ return /* @__PURE__ */ m.jsx(i.Fragment, {
3712
+ children: /* @__PURE__ */ i.cloneElement(q, {
3713
+ // Most of the logic is implemented in `SelectInput`.
3714
+ // The `Select` component is a simple API wrapper to expose something better to play with.
3715
+ inputComponent: A,
3716
+ inputProps: {
3717
+ children: l,
3718
+ error: P.error,
3719
+ IconComponent: f,
3720
+ variant: F,
3721
+ type: void 0,
3722
+ // We render a select. We can ignore the type provided by the `Input`.
3723
+ multiple: I,
3724
+ ...x ? {
3725
+ id: h
3726
+ } : {
3727
+ autoWidth: s,
3728
+ defaultOpen: v,
3729
+ displayEmpty: y,
3730
+ labelId: T,
3731
+ MenuProps: g,
3732
+ onClose: c,
3733
+ onOpen: p,
3734
+ open: E,
3735
+ renderValue: O,
3736
+ SelectDisplayProps: {
3737
+ id: h,
3738
+ ...L
3739
+ }
3740
+ },
3741
+ ...S,
3742
+ classes: S ? Je(B, S.classes) : B,
3743
+ ...b ? b.props.inputProps : {}
3744
+ },
3745
+ ...(I && x || y) && F === "outlined" ? {
3746
+ notched: !0
3747
+ } : {},
3748
+ ref: j,
3749
+ className: ie(q.props.className, u, le.root),
3750
+ // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
3751
+ ...!b && {
3752
+ variant: F
3753
+ },
3754
+ ..._
3755
+ })
3756
+ });
3757
+ });
3758
+ process.env.NODE_ENV !== "production" && (Wo.propTypes = {
3759
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
3760
+ // │ These PropTypes are generated from the TypeScript type definitions. │
3761
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3762
+ // └─────────────────────────────────────────────────────────────────────┘
3763
+ /**
3764
+ * If `true`, the width of the popover will automatically be set according to the items inside the
3765
+ * menu, otherwise it will be at least the width of the select input.
3766
+ * @default false
3767
+ */
3768
+ autoWidth: e.bool,
3769
+ /**
3770
+ * The option elements to populate the select with.
3771
+ * Can be some `MenuItem` when `native` is false and `option` when `native` is true.
3772
+ *
3773
+ * ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false.
3774
+ */
3775
+ children: e.node,
3776
+ /**
3777
+ * Override or extend the styles applied to the component.
3778
+ * @default {}
3779
+ */
3780
+ classes: e.object,
3781
+ /**
3782
+ * @ignore
3783
+ */
3784
+ className: e.string,
3785
+ /**
3786
+ * If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).
3787
+ * You can only use it when the `native` prop is `false` (default).
3788
+ * @default false
3789
+ */
3790
+ defaultOpen: e.bool,
3791
+ /**
3792
+ * The default value. Use when the component is not controlled.
3793
+ */
3794
+ defaultValue: e.any,
3795
+ /**
3796
+ * If `true`, a value is displayed even if no items are selected.
3797
+ *
3798
+ * In order to display a meaningful value, a function can be passed to the `renderValue` prop which
3799
+ * returns the value to be displayed when no items are selected.
3800
+ *
3801
+ * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
3802
+ * The label should either be hidden or forced to a shrunk state.
3803
+ * @default false
3804
+ */
3805
+ displayEmpty: e.bool,
3806
+ /**
3807
+ * The icon that displays the arrow.
3808
+ * @default ArrowDropDownIcon
3809
+ */
3810
+ IconComponent: e.elementType,
3811
+ /**
3812
+ * The `id` of the wrapper element or the `select` element when `native`.
3813
+ */
3814
+ id: e.string,
3815
+ /**
3816
+ * An `Input` element; does not have to be a material-ui specific `Input`.
3817
+ */
3818
+ input: e.element,
3819
+ /**
3820
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
3821
+ * When `native` is `true`, the attributes are applied on the `select` element.
3822
+ */
3823
+ inputProps: e.object,
3824
+ /**
3825
+ * See [OutlinedInput#label](https://mui.com/material-ui/api/outlined-input/#props)
3826
+ */
3827
+ label: e.node,
3828
+ /**
3829
+ * The ID of an element that acts as an additional label. The Select will
3830
+ * be labelled by the additional label and the selected value.
3831
+ */
3832
+ labelId: e.string,
3833
+ /**
3834
+ * Props applied to the [`Menu`](https://mui.com/material-ui/api/menu/) element.
3835
+ */
3836
+ MenuProps: e.object,
3837
+ /**
3838
+ * If `true`, `value` must be an array and the menu will support multiple selections.
3839
+ * @default false
3840
+ */
3841
+ multiple: e.bool,
3842
+ /**
3843
+ * If `true`, the component uses a native `select` element.
3844
+ * @default false
3845
+ */
3846
+ native: e.bool,
3847
+ /**
3848
+ * Callback fired when a menu item is selected.
3849
+ *
3850
+ * @param {SelectChangeEvent<Value>} event The event source of the callback.
3851
+ * You can pull out the new value by accessing `event.target.value` (any).
3852
+ * **Warning**: This is a generic event, not a change event, unless the change event is caused by browser autofill.
3853
+ * @param {object} [child] The react element that was selected when `native` is `false` (default).
3854
+ */
3855
+ onChange: e.func,
3856
+ /**
3857
+ * Callback fired when the component requests to be closed.
3858
+ * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select collapses).
3859
+ *
3860
+ * @param {object} event The event source of the callback.
3861
+ */
3862
+ onClose: e.func,
3863
+ /**
3864
+ * Callback fired when the component requests to be opened.
3865
+ * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select expands).
3866
+ *
3867
+ * @param {object} event The event source of the callback.
3868
+ */
3869
+ onOpen: e.func,
3870
+ /**
3871
+ * If `true`, the component is shown.
3872
+ * You can only use it when the `native` prop is `false` (default).
3873
+ */
3874
+ open: e.bool,
3875
+ /**
3876
+ * Render the selected value.
3877
+ * You can only use it when the `native` prop is `false` (default).
3878
+ *
3879
+ * @param {any} value The `value` provided to the component.
3880
+ * @returns {ReactNode}
3881
+ */
3882
+ renderValue: e.func,
3883
+ /**
3884
+ * Props applied to the clickable div element.
3885
+ */
3886
+ SelectDisplayProps: e.object,
3887
+ /**
3888
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3889
+ */
3890
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
3891
+ /**
3892
+ * The `input` value. Providing an empty string will select no options.
3893
+ * Set to an empty string `''` if you don't want any of the available options to be selected.
3894
+ *
3895
+ * If the value is an object it must have reference equality with the option in order to be selected.
3896
+ * If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
3897
+ */
3898
+ value: e.oneOfType([e.oneOf([""]), e.any]),
3899
+ /**
3900
+ * The variant to use.
3901
+ * @default 'outlined'
3902
+ */
3903
+ variant: e.oneOf(["filled", "outlined", "standard"])
3904
+ });
3905
+ Wo.muiName = "Select";
3906
+ export {
3907
+ Eo as C,
3908
+ it as F,
3909
+ yt as I,
3910
+ ro as O,
3911
+ Wo as S,
3912
+ no as a,
3913
+ to as b,
3914
+ oo as f,
3915
+ Ge as i,
3916
+ jo as u
3917
+ };