@hybridcore/ui 1.6.13 → 1.6.16

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