@cgi-learning-hub/ui 1.3.3-dev.1732123246 → 1.3.3-dev.1732550407

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 (151) hide show
  1. package/dist/{Backdrop-DorR8O-b.js → Backdrop-DcJf9G30.js} +20 -20
  2. package/dist/{Box-BTNw-FYi.js → Box-D9cHa8GX.js} +7 -7
  3. package/dist/{Button--paERYBc.js → Button-Cx05eP88.js} +14 -14
  4. package/dist/{ButtonBase-B0gJT_ti.js → ButtonBase-z74SMnd9.js} +17 -17
  5. package/dist/{Card-BVJgnURR.js → Card-mAtxoJ0p.js} +3 -3
  6. package/dist/{Checkbox-aBoDjdQG.js → Checkbox-Bmz9nh6k.js} +12 -12
  7. package/dist/{CircularProgress-CIqTwP6H.js → CircularProgress-B5osG37N.js} +16 -16
  8. package/dist/{DatePicker-DXgVCuAd.js → DatePicker-Ds7y4pei.js} +198 -197
  9. package/dist/{DatePicker-DGRD-CdO.cjs → DatePicker-MSoGmJoG.cjs} +10 -10
  10. package/dist/{DefaultPropsProvider-StV_SUuk.js → DefaultPropsProvider-BYFwNPLt.js} +12 -12
  11. package/dist/Delete-Bb_PhA6v.cjs +1 -0
  12. package/dist/Delete-Dip-1l7n.js +8 -0
  13. package/dist/{DialogContent-CP2NOfUr.js → DialogContent-B_NH_if8.js} +21 -21
  14. package/dist/{DialogTitle-Couh2TzJ.js → DialogTitle-Bx7712Li.js} +4 -4
  15. package/dist/Divider-CMuvurmv.js +296 -0
  16. package/dist/Divider-DlN3YfOR.cjs +1 -0
  17. package/dist/FormControlLabel-BDXTL5Eo.js +261 -0
  18. package/dist/FormControlLabel-D8GTkxJD.cjs +1 -0
  19. package/dist/FormGroup-CFDapyxc.cjs +1 -0
  20. package/dist/FormGroup-DO8m1X6w.js +95 -0
  21. package/dist/{FormLabel-wDh-AEMQ.js → FormLabel-B11aqT37.js} +34 -33
  22. package/dist/FormLabel-DcUS1c1d.cjs +2 -0
  23. package/dist/{Grow-4QU1bnXQ.js → Grow-BKrOFfC1.js} +4 -4
  24. package/dist/{IconButton-CsqR1453.js → IconButton-DLcGpM1F.js} +4 -4
  25. package/dist/{InputAdornment-bXTpzNQ2.js → InputAdornment-BrvfHlzv.js} +4 -4
  26. package/dist/{InputBase-VKt_ajuq.js → InputBase-CHytwRH8.js} +47 -49
  27. package/dist/InputBase-qhWgXXNd.cjs +3 -0
  28. package/dist/{Link-CPyeYGpa.js → Link-D_0FIsgB.js} +19 -19
  29. package/dist/Menu-0Hr9Yx9l.cjs +7 -0
  30. package/dist/Menu-ysG9uY3e.js +965 -0
  31. package/dist/MenuItem-BP7OsPVc.cjs +1 -0
  32. package/dist/{MenuItem-BFkBwBkN.js → MenuItem-DYrKaYOk.js} +69 -74
  33. package/dist/{Modal-BDx2_UzP.js → Modal-DT240BJZ.js} +42 -42
  34. package/dist/{Paper-CMUbp6SX.js → Paper-vlsh8Nca.js} +6 -6
  35. package/dist/{Popper-D_UryU8v.js → Popper-BSaTZXvX.js} +5 -5
  36. package/dist/{Portal-DVy9JFBN.js → Portal-meM40OhI.js} +3 -3
  37. package/dist/Radio-CW4v1BS4.js +312 -0
  38. package/dist/Radio-D-wbZ6M-.cjs +1 -0
  39. package/dist/{Select-CcnCBhBN.js → Select-CKsf044t.js} +630 -1583
  40. package/dist/Select-DAHsfas2.cjs +3 -0
  41. package/dist/{Stack-CKjrTRJB.js → Stack-DbWQHN5i.js} +22 -22
  42. package/dist/{SwitchBase-DYa1wGSu.js → SwitchBase-DBnju71w.js} +10 -10
  43. package/dist/{TableSortLabel-Czgy_sW5.js → TableSortLabel-ByZJO-zF.js} +1097 -1382
  44. package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
  45. package/dist/{Tabs-RxcUgknI.js → Tabs-BqJSX1la.js} +10 -10
  46. package/dist/{TextField-DvGLmvG1.cjs → TextField-C23FnJYk.cjs} +1 -1
  47. package/dist/{TextField-DorMAtUh.js → TextField-DVUnQAd7.js} +24 -24
  48. package/dist/{Tooltip-B4e9QdHI.js → Tooltip-41rGxwva.js} +44 -44
  49. package/dist/{Typography-B29dnCv3.js → Typography-CizHc1nM.js} +4 -4
  50. package/dist/components/Button/Button.es.js +11 -11
  51. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  52. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  53. package/dist/components/DatePicker/index.cjs.js +1 -1
  54. package/dist/components/DatePicker/index.es.js +1 -1
  55. package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
  56. package/dist/components/Dropzone/Dropzone.es.js +24 -2162
  57. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  58. package/dist/components/FileList/FileList.es.js +1 -1
  59. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  60. package/dist/components/FileList/FileListItem.es.js +21 -22
  61. package/dist/components/Heading/Heading.es.js +2 -2
  62. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
  63. package/dist/components/ImagePicker/ImagePicker.d.ts +9 -0
  64. package/dist/components/ImagePicker/ImagePicker.es.js +148 -0
  65. package/dist/components/ImagePicker/index.cjs.js +1 -0
  66. package/dist/components/ImagePicker/index.d.ts +2 -0
  67. package/dist/components/ImagePicker/index.es.js +4 -0
  68. package/dist/components/Loader/Loader.es.js +1 -1
  69. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  70. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  71. package/dist/components/PasswordInput/PasswordInput.es.js +7 -6
  72. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  73. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  74. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  75. package/dist/components/TextInput/TextInput.es.js +1 -1
  76. package/dist/components/index.cjs.js +1 -1
  77. package/dist/components/index.d.ts +1 -0
  78. package/dist/components/index.es.js +266 -260
  79. package/dist/components/stories/Button.stories.es.js +1 -1
  80. package/dist/components/stories/Card.stories.es.js +8 -8
  81. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  82. package/dist/components/stories/Checkbox.stories.es.js +41 -12
  83. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  84. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  85. package/dist/components/stories/Dialog.stories.es.js +2 -2
  86. package/dist/components/stories/Divider.stories.cjs.js +1 -0
  87. package/dist/components/stories/Divider.stories.d.ts +6 -0
  88. package/dist/components/stories/Divider.stories.es.js +41 -0
  89. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
  90. package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
  91. package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
  92. package/dist/components/stories/Heading.stories.es.js +2 -2
  93. package/dist/components/stories/IconButton.stories.es.js +2 -2
  94. package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
  95. package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
  96. package/dist/components/stories/ImagePicker.stories.es.js +16 -0
  97. package/dist/components/stories/Link.stories.es.js +1 -1
  98. package/dist/components/stories/Menu.stories.cjs.js +1 -0
  99. package/dist/components/stories/Menu.stories.d.ts +7 -0
  100. package/dist/components/stories/Menu.stories.es.js +51 -0
  101. package/dist/components/stories/Paper.stories.es.js +1 -1
  102. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  103. package/dist/components/stories/RadioGroup.stories.es.js +70 -372
  104. package/dist/components/stories/Select.stories.cjs.js +1 -1
  105. package/dist/components/stories/Select.stories.es.js +3 -3
  106. package/dist/components/stories/TabList.stories.es.js +10 -10
  107. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  108. package/dist/components/stories/TextField.stories.es.js +1 -1
  109. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  110. package/dist/components/stories/Typography.stories.cjs.js +1 -0
  111. package/dist/components/stories/Typography.stories.d.ts +6 -0
  112. package/dist/components/stories/Typography.stories.es.js +65 -0
  113. package/dist/{createSvgIcon-VByplk-r.js → createSvgIcon-BS0Qe85N.js} +3 -3
  114. package/dist/dividerClasses-Bp7otbbC.js +9 -0
  115. package/dist/dividerClasses-O0vIU6On.cjs +1 -0
  116. package/dist/{elementTypeAcceptingRef-BPhL72td.js → elementTypeAcceptingRef-DOFWAguJ.js} +1 -1
  117. package/dist/{extendSxProp-BYB-kybW.js → extendSxProp-BpXLpaGL.js} +1 -1
  118. package/dist/formControlState-CuX6WjAX.cjs +1 -0
  119. package/dist/formControlState-vgaj2ksH.js +10 -0
  120. package/dist/{fr-B4aeA9th.js → fr-Djc-bU-B.js} +1 -1
  121. package/dist/{identifier-BewKgEhI.js → identifier-B7MO0PvI.js} +6 -6
  122. package/dist/index-BtGBke8y.js +2141 -0
  123. package/dist/index-CEgiY5tJ.cjs +5 -0
  124. package/dist/{index-_oi9ph20.js → index-CKZgd5LP.js} +4 -4
  125. package/dist/{index-BAjSgP8k.js → index-yb8koCDz.js} +2 -2
  126. package/dist/index.cjs.js +1 -1
  127. package/dist/index.es.js +266 -260
  128. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  129. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  130. package/dist/{memoTheme-B9kDhX1-.js → memoTheme-CqfvfBST.js} +1 -1
  131. package/dist/{refType-3o3c-kYx.js → refType-BqQbA6de.js} +1 -1
  132. package/dist/{resolveComponentProps-BQQ-uUKZ.js → resolveComponentProps-CYk57pLv.js} +1 -1
  133. package/dist/{useSlot-B2hCpx8C.js → useSlot-BSVkAc2J.js} +1 -1
  134. package/dist/{useTheme-0u9_WhjM.js → useTheme-CzzAEESs.js} +3 -3
  135. package/dist/{useTheme-BrFhq4dW.js → useTheme-DrsmidxY.js} +1 -1
  136. package/dist/{useThemeProps-cERu5xHk.js → useThemeProps-B9UyPpzT.js} +3 -3
  137. package/dist/{useThemeProps-CwWORfXn.js → useThemeProps-BFeVem33.js} +2 -2
  138. package/dist/{useTimeout-Br8oWWYt.js → useTimeout-Znm_nF2D.js} +1 -1
  139. package/dist/utils-BWx1W_q1.cjs +1 -0
  140. package/dist/utils-DWqc1kRF.js +13 -0
  141. package/dist/{utils-CH0HZgJe.js → utils-jA5a7WHN.js} +1 -1
  142. package/package.json +1 -1
  143. package/dist/FormGroup-CcM69JIS.js +0 -348
  144. package/dist/FormGroup-KOLND6rE.cjs +0 -1
  145. package/dist/FormLabel-C506NT5o.cjs +0 -2
  146. package/dist/InputBase-Cpx39cny.cjs +0 -3
  147. package/dist/MenuItem-BxXCEc8h.cjs +0 -1
  148. package/dist/Select-CnFa2_je.cjs +0 -9
  149. package/dist/TableSortLabel-Ppl9Q-SZ.cjs +0 -98
  150. package/dist/formControlState-DCkDUdfO.cjs +0 -1
  151. package/dist/formControlState-DdQP43Uo.js +0 -21
@@ -1,60 +1,52 @@
1
- import * as a from "react";
2
- import { I as Z, J as Q, W as Ve, P as e, L as ne, K as de, Z as Fo } from "./identifier-BewKgEhI.js";
3
- import { f as _e, i as Lo } from "./formControlState-DdQP43Uo.js";
4
- import { u as Ke } from "./useFormControl-CatNKXAi.js";
5
- import { s as x, r as ee, u as re, c as oe, e as qe, f as jo } from "./DefaultPropsProvider-StV_SUuk.js";
6
- import { m as se } from "./memoTheme-B9kDhX1-.js";
7
- import { jsx as w, jsxs as ke } from "react/jsx-runtime";
8
- import { a as $o, b as Do } from "./FormLabel-wDh-AEMQ.js";
9
- import { u as Wo, a as lo } from "./index-BAjSgP8k.js";
10
- import { i as He, a as Xe, r as Ge, b as Ye, c as Je, I as Ze, d as Ao } from "./InputBase-VKt_ajuq.js";
11
- import { u as po } from "./useSlot-B2hCpx8C.js";
12
- import { g as Bo, M as Uo } from "./Modal-BDx2_UzP.js";
13
- import { P as zo, i as Vo } from "./Paper-CMUbp6SX.js";
14
- import { o as xe } from "./ownerDocument-CUrv0DIK.js";
15
- import { o as Ue } from "./ownerWindow-niciwP7I.js";
16
- import { d as _o } from "./debounce-46wSf_lW.js";
17
- import { u as Fe } from "./useForkRef-C_4o__cU.js";
18
- import { r as ce, u as Ko } from "./refType-3o3c-kYx.js";
19
- import { c as qo } from "./chainPropTypes-D9lkm76m.js";
20
- import { H as ze } from "./Portal-DVy9JFBN.js";
21
- import { e as Ho } from "./elementTypeAcceptingRef-BPhL72td.js";
22
- import { G as Xo } from "./Grow-4QU1bnXQ.js";
23
- import { u as co } from "./useControlled-BYdyS7Pn.js";
24
- import { u as Go } from "./useId-CK6Kn3Tn.js";
25
- import { c as Yo } from "./createSvgIcon-VByplk-r.js";
26
- import { c as Qe } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
27
- import { g as Jo } from "./utils-CH0HZgJe.js";
28
- function Zo(o) {
29
- return Z("MuiInput", o);
1
+ import * as u from "react";
2
+ import { H as U, I as D, W as Oe, P as e, G as fe, L as z, Z as fo } from "./identifier-B7MO0PvI.js";
3
+ import { f as Ce } from "./formControlState-vgaj2ksH.js";
4
+ import { u as Ie } from "./useFormControl-CatNKXAi.js";
5
+ import { s as h, r as k, u as H, c as V, f as bo, e as mo } from "./DefaultPropsProvider-BYFwNPLt.js";
6
+ import { m as E } from "./memoTheme-CqfvfBST.js";
7
+ import { jsx as v, jsxs as Se } from "react/jsx-runtime";
8
+ import { a as go, b as vo } from "./FormLabel-B11aqT37.js";
9
+ import { M as yo } from "./Menu-ysG9uY3e.js";
10
+ import { r as G } from "./refType-BqQbA6de.js";
11
+ import { i as ho } from "./utils-DWqc1kRF.js";
12
+ import { u as Ve } from "./useControlled-BYdyS7Pn.js";
13
+ import { u as Xe } from "./useForkRef-C_4o__cU.js";
14
+ import { o as Oo } from "./ownerDocument-CUrv0DIK.js";
15
+ import { u as Co } from "./useId-CK6Kn3Tn.js";
16
+ import { c as Io } from "./createSvgIcon-BS0Qe85N.js";
17
+ import { c as Re } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
18
+ import { i as xe, a as we, r as Te, b as Ne, c as Pe, I as $e } from "./InputBase-CHytwRH8.js";
19
+ import { g as So } from "./utils-jA5a7WHN.js";
20
+ function Ro(o) {
21
+ return U("MuiInput", o);
30
22
  }
31
- const ue = {
32
- ...He,
33
- ...Q("MuiInput", ["root", "underline", "input"])
34
- }, Qo = (o) => {
23
+ const K = {
24
+ ...xe,
25
+ ...D("MuiInput", ["root", "underline", "input"])
26
+ }, xo = (o) => {
35
27
  const {
36
28
  classes: t,
37
29
  disableUnderline: n
38
- } = o, p = oe({
30
+ } = o, i = V({
39
31
  root: ["root", !n && "underline"],
40
32
  input: ["input"]
41
- }, Zo, t);
33
+ }, Ro, t);
42
34
  return {
43
35
  ...t,
44
36
  // forward classes to the InputBase
45
- ...p
37
+ ...i
46
38
  };
47
- }, et = x(Xe, {
48
- shouldForwardProp: (o) => ee(o) || o === "classes",
39
+ }, wo = h(we, {
40
+ shouldForwardProp: (o) => k(o) || o === "classes",
49
41
  name: "MuiInput",
50
42
  slot: "Root",
51
43
  overridesResolver: (o, t) => {
52
44
  const {
53
45
  ownerState: n
54
46
  } = o;
55
- return [...Ge(o, t), !n.disableUnderline && t.underline];
47
+ return [...Te(o, t), !n.disableUnderline && t.underline];
56
48
  }
57
- })(se(({
49
+ })(E(({
58
50
  theme: o
59
51
  }) => {
60
52
  let n = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
@@ -88,12 +80,12 @@ const ue = {
88
80
  pointerEvents: "none"
89
81
  // Transparent to the hover style.
90
82
  },
91
- [`&.${ue.focused}:after`]: {
83
+ [`&.${K.focused}:after`]: {
92
84
  // translateX(0) is a workaround for Safari transform scale bug
93
85
  // See https://github.com/mui/material-ui/issues/31766
94
86
  transform: "scaleX(1) translateX(0)"
95
87
  },
96
- [`&.${ue.error}`]: {
88
+ [`&.${K.error}`]: {
97
89
  "&::before, &::after": {
98
90
  borderBottomColor: (o.vars || o).palette.error.main
99
91
  }
@@ -111,18 +103,18 @@ const ue = {
111
103
  pointerEvents: "none"
112
104
  // Transparent to the hover style.
113
105
  },
114
- [`&:hover:not(.${ue.disabled}, .${ue.error}):before`]: {
106
+ [`&:hover:not(.${K.disabled}, .${K.error}):before`]: {
115
107
  borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
116
108
  // Reset on touch devices, it doesn't add specificity
117
109
  "@media (hover: none)": {
118
110
  borderBottom: `1px solid ${n}`
119
111
  }
120
112
  },
121
- [`&.${ue.disabled}:before`]: {
113
+ [`&.${K.disabled}:before`]: {
122
114
  borderBottomStyle: "dotted"
123
115
  }
124
116
  }
125
- }, ...Object.entries(o.palette).filter(Qe()).map(([r]) => ({
117
+ }, ...Object.entries(o.palette).filter(Re()).map(([r]) => ({
126
118
  props: {
127
119
  color: r,
128
120
  disableUnderline: !1
@@ -134,48 +126,48 @@ const ue = {
134
126
  }
135
127
  }))]
136
128
  };
137
- })), ot = x(Ye, {
129
+ })), To = h(Ne, {
138
130
  name: "MuiInput",
139
131
  slot: "Input",
140
- overridesResolver: Je
141
- })({}), Ee = /* @__PURE__ */ a.forwardRef(function(t, n) {
142
- const r = re({
132
+ overridesResolver: Pe
133
+ })({}), de = /* @__PURE__ */ u.forwardRef(function(t, n) {
134
+ const r = H({
143
135
  props: t,
144
136
  name: "MuiInput"
145
137
  }), {
146
- disableUnderline: p = !1,
147
- components: d = {},
148
- componentsProps: s,
149
- fullWidth: i = !1,
150
- inputComponent: u = "input",
151
- multiline: h = !1,
152
- slotProps: b,
153
- slots: g = {},
154
- type: C = "text",
155
- ...f
156
- } = r, R = Qo(r), S = {
138
+ disableUnderline: i = !1,
139
+ components: p = {},
140
+ componentsProps: a,
141
+ fullWidth: d = !1,
142
+ inputComponent: m = "input",
143
+ multiline: g = !1,
144
+ slotProps: f,
145
+ slots: c = {},
146
+ type: O = "text",
147
+ ...R
148
+ } = r, w = xo(r), y = {
157
149
  root: {
158
150
  ownerState: {
159
- disableUnderline: p
151
+ disableUnderline: i
160
152
  }
161
153
  }
162
- }, m = b ?? s ? Ve(b ?? s, S) : S, I = g.root ?? d.Root ?? et, c = g.input ?? d.Input ?? ot;
163
- return /* @__PURE__ */ w(Ze, {
154
+ }, x = f ?? a ? Oe(f ?? a, y) : y, C = c.root ?? p.Root ?? wo, I = c.input ?? p.Input ?? To;
155
+ return /* @__PURE__ */ v($e, {
164
156
  slots: {
165
- root: I,
166
- input: c
157
+ root: C,
158
+ input: I
167
159
  },
168
- slotProps: m,
169
- fullWidth: i,
170
- inputComponent: u,
171
- multiline: h,
160
+ slotProps: x,
161
+ fullWidth: d,
162
+ inputComponent: m,
163
+ multiline: g,
172
164
  ref: n,
173
- type: C,
174
- ...f,
175
- classes: R
165
+ type: O,
166
+ ...R,
167
+ classes: w
176
168
  });
177
169
  });
178
- process.env.NODE_ENV !== "production" && (Ee.propTypes = {
170
+ process.env.NODE_ENV !== "production" && (de.propTypes = {
179
171
  // ┌────────────────────────────── Warning ──────────────────────────────┐
180
172
  // │ These PropTypes are generated from the TypeScript type definitions. │
181
173
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -270,7 +262,7 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
270
262
  /**
271
263
  * Pass a ref to the `input` element.
272
264
  */
273
- inputRef: ce,
265
+ inputRef: G,
274
266
  /**
275
267
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
276
268
  * FormControl.
@@ -360,30 +352,30 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
360
352
  */
361
353
  value: e.any
362
354
  });
363
- Ee && (Ee.muiName = "Input");
364
- function tt(o) {
365
- return Z("MuiInputLabel", o);
355
+ de && (de.muiName = "Input");
356
+ function No(o) {
357
+ return U("MuiInputLabel", o);
366
358
  }
367
- const vn = Q("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]), nt = (o) => {
359
+ const It = D("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]), Po = (o) => {
368
360
  const {
369
361
  classes: t,
370
362
  formControl: n,
371
363
  size: r,
372
- shrink: p,
373
- disableAnimation: d,
374
- variant: s,
375
- required: i
376
- } = o, u = {
377
- root: ["root", n && "formControl", !d && "animated", p && "shrink", r && r !== "normal" && `size${de(r)}`, s],
378
- asterisk: [i && "asterisk"]
379
- }, h = oe(u, tt, t);
364
+ shrink: i,
365
+ disableAnimation: p,
366
+ variant: a,
367
+ required: d
368
+ } = o, m = {
369
+ root: ["root", n && "formControl", !p && "animated", i && "shrink", r && r !== "normal" && `size${z(r)}`, a],
370
+ asterisk: [d && "asterisk"]
371
+ }, g = V(m, No, t);
380
372
  return {
381
373
  ...t,
382
374
  // forward the focused, disabled, etc. classes to the FormLabel
383
- ...h
375
+ ...g
384
376
  };
385
- }, rt = x($o, {
386
- shouldForwardProp: (o) => ee(o) || o === "classes",
377
+ }, $o = h(go, {
378
+ shouldForwardProp: (o) => k(o) || o === "classes",
387
379
  name: "MuiInputLabel",
388
380
  slot: "Root",
389
381
  overridesResolver: (o, t) => {
@@ -391,10 +383,10 @@ const vn = Q("MuiInputLabel", ["root", "focused", "disabled", "error", "required
391
383
  ownerState: n
392
384
  } = o;
393
385
  return [{
394
- [`& .${Do.asterisk}`]: t.asterisk
386
+ [`& .${vo.asterisk}`]: t.asterisk
395
387
  }, t.root, n.formControl && t.formControl, n.size === "small" && t.sizeSmall, n.shrink && t.shrink, !n.disableAnimation && t.animated, n.focused && t.focused, t[n.variant]];
396
388
  }
397
- })(se(({
389
+ })(E(({
398
390
  theme: o
399
391
  }) => ({
400
392
  display: "block",
@@ -516,44 +508,44 @@ const vn = Q("MuiInputLabel", ["root", "focused", "disabled", "error", "required
516
508
  transform: "translate(14px, -9px) scale(0.75)"
517
509
  }
518
510
  }]
519
- }))), st = /* @__PURE__ */ a.forwardRef(function(t, n) {
520
- const r = re({
511
+ }))), ko = /* @__PURE__ */ u.forwardRef(function(t, n) {
512
+ const r = H({
521
513
  name: "MuiInputLabel",
522
514
  props: t
523
515
  }), {
524
- disableAnimation: p = !1,
525
- margin: d,
526
- shrink: s,
527
- variant: i,
528
- className: u,
529
- ...h
530
- } = r, b = Ke();
531
- let g = s;
532
- typeof g > "u" && b && (g = b.filled || b.focused || b.adornedStart);
533
- const C = _e({
516
+ disableAnimation: i = !1,
517
+ margin: p,
518
+ shrink: a,
519
+ variant: d,
520
+ className: m,
521
+ ...g
522
+ } = r, f = Ie();
523
+ let c = a;
524
+ typeof c > "u" && f && (c = f.filled || f.focused || f.adornedStart);
525
+ const O = Ce({
534
526
  props: r,
535
- muiFormControl: b,
527
+ muiFormControl: f,
536
528
  states: ["size", "variant", "required", "focused"]
537
- }), f = {
529
+ }), R = {
538
530
  ...r,
539
- disableAnimation: p,
540
- formControl: b,
541
- shrink: g,
542
- size: C.size,
543
- variant: C.variant,
544
- required: C.required,
545
- focused: C.focused
546
- }, R = nt(f);
547
- return /* @__PURE__ */ w(rt, {
548
- "data-shrink": g,
531
+ disableAnimation: i,
532
+ formControl: f,
533
+ shrink: c,
534
+ size: O.size,
535
+ variant: O.variant,
536
+ required: O.required,
537
+ focused: O.focused
538
+ }, w = Po(R);
539
+ return /* @__PURE__ */ v($o, {
540
+ "data-shrink": c,
549
541
  ref: n,
550
- className: ne(R.root, u),
551
- ...h,
552
- ownerState: f,
553
- classes: R
542
+ className: fe(w.root, m),
543
+ ...g,
544
+ ownerState: R,
545
+ classes: w
554
546
  });
555
547
  });
556
- process.env.NODE_ENV !== "production" && (st.propTypes = {
548
+ process.env.NODE_ENV !== "production" && (ko.propTypes = {
557
549
  // ┌────────────────────────────── Warning ──────────────────────────────┐
558
550
  // │ These PropTypes are generated from the TypeScript type definitions. │
559
551
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -620,961 +612,23 @@ process.env.NODE_ENV !== "production" && (st.propTypes = {
620
612
  */
621
613
  variant: e.oneOf(["filled", "outlined", "standard"])
622
614
  });
623
- const yo = /* @__PURE__ */ a.createContext({});
624
- process.env.NODE_ENV !== "production" && (yo.displayName = "ListContext");
625
- function it(o) {
626
- return Z("MuiList", o);
615
+ function Eo(o) {
616
+ return U("MuiNativeSelect", o);
627
617
  }
628
- const yn = Q("MuiList", ["root", "padding", "dense", "subheader"]), at = (o) => {
629
- const {
630
- classes: t,
631
- disablePadding: n,
632
- dense: r,
633
- subheader: p
634
- } = o;
635
- return oe({
636
- root: ["root", !n && "padding", r && "dense", p && "subheader"]
637
- }, it, t);
638
- }, lt = x("ul", {
639
- name: "MuiList",
640
- slot: "Root",
641
- overridesResolver: (o, t) => {
642
- const {
643
- ownerState: n
644
- } = o;
645
- return [t.root, !n.disablePadding && t.padding, n.dense && t.dense, n.subheader && t.subheader];
646
- }
647
- })({
648
- listStyle: "none",
649
- margin: 0,
650
- padding: 0,
651
- position: "relative",
652
- variants: [{
653
- props: ({
654
- ownerState: o
655
- }) => !o.disablePadding,
656
- style: {
657
- paddingTop: 8,
658
- paddingBottom: 8
659
- }
660
- }, {
661
- props: ({
662
- ownerState: o
663
- }) => o.subheader,
664
- style: {
665
- paddingTop: 0
666
- }
667
- }]
668
- }), Oo = /* @__PURE__ */ a.forwardRef(function(t, n) {
669
- const r = re({
670
- props: t,
671
- name: "MuiList"
672
- }), {
673
- children: p,
674
- className: d,
675
- component: s = "ul",
676
- dense: i = !1,
677
- disablePadding: u = !1,
678
- subheader: h,
679
- ...b
680
- } = r, g = a.useMemo(() => ({
681
- dense: i
682
- }), [i]), C = {
683
- ...r,
684
- component: s,
685
- dense: i,
686
- disablePadding: u
687
- }, f = at(C);
688
- return /* @__PURE__ */ w(yo.Provider, {
689
- value: g,
690
- children: /* @__PURE__ */ ke(lt, {
691
- as: s,
692
- className: ne(f.root, d),
693
- ref: n,
694
- ownerState: C,
695
- ...b,
696
- children: [h, p]
697
- })
698
- });
699
- });
700
- process.env.NODE_ENV !== "production" && (Oo.propTypes = {
701
- // ┌────────────────────────────── Warning ──────────────────────────────┐
702
- // │ These PropTypes are generated from the TypeScript type definitions. │
703
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
704
- // └─────────────────────────────────────────────────────────────────────┘
705
- /**
706
- * The content of the component.
707
- */
708
- children: e.node,
709
- /**
710
- * Override or extend the styles applied to the component.
711
- */
712
- classes: e.object,
713
- /**
714
- * @ignore
715
- */
716
- className: e.string,
717
- /**
718
- * The component used for the root node.
719
- * Either a string to use a HTML element or a component.
720
- */
721
- component: e.elementType,
722
- /**
723
- * If `true`, compact vertical padding designed for keyboard and mouse input is used for
724
- * the list and list items.
725
- * The prop is available to descendant components as the `dense` context.
726
- * @default false
727
- */
728
- dense: e.bool,
729
- /**
730
- * If `true`, vertical padding is removed from the list.
731
- * @default false
732
- */
733
- disablePadding: e.bool,
734
- /**
735
- * The content of the subheader, normally `ListSubheader`.
736
- */
737
- subheader: e.node,
738
- /**
739
- * The system prop that allows defining system overrides as well as additional CSS styles.
740
- */
741
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
742
- });
743
- function Be(o, t, n) {
744
- return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : o.firstChild;
745
- }
746
- function uo(o, t, n) {
747
- return o === t ? n ? o.firstChild : o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : o.lastChild;
748
- }
749
- function Co(o, t) {
750
- if (t === void 0)
751
- return !0;
752
- let n = o.innerText;
753
- return n === void 0 && (n = o.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
754
- }
755
- function fe(o, t, n, r, p, d) {
756
- let s = !1, i = p(o, t, t ? n : !1);
757
- for (; i; ) {
758
- if (i === o.firstChild) {
759
- if (s)
760
- return !1;
761
- s = !0;
762
- }
763
- const u = r ? !1 : i.disabled || i.getAttribute("aria-disabled") === "true";
764
- if (!i.hasAttribute("tabindex") || !Co(i, d) || u)
765
- i = p(o, i, n);
766
- else
767
- return i.focus(), !0;
768
- }
769
- return !1;
770
- }
771
- const Ro = /* @__PURE__ */ a.forwardRef(function(t, n) {
772
- const {
773
- // private
774
- // eslint-disable-next-line react/prop-types
775
- actions: r,
776
- autoFocus: p = !1,
777
- autoFocusItem: d = !1,
778
- children: s,
779
- className: i,
780
- disabledItemsFocusable: u = !1,
781
- disableListWrap: h = !1,
782
- onKeyDown: b,
783
- variant: g = "selectedMenu",
784
- ...C
785
- } = t, f = a.useRef(null), R = a.useRef({
786
- keys: [],
787
- repeating: !0,
788
- previousKeyMatched: !0,
789
- lastTime: null
790
- });
791
- Ko(() => {
792
- p && f.current.focus();
793
- }, [p]), a.useImperativeHandle(r, () => ({
794
- adjustStyleForScrollbar: (c, {
795
- direction: v
796
- }) => {
797
- const P = !f.current.style.width;
798
- if (c.clientHeight < f.current.clientHeight && P) {
799
- const D = `${Bo(Ue(c))}px`;
800
- f.current.style[v === "rtl" ? "paddingLeft" : "paddingRight"] = D, f.current.style.width = `calc(100% + ${D})`;
801
- }
802
- return f.current;
803
- }
804
- }), []);
805
- const F = (c) => {
806
- const v = f.current, P = c.key;
807
- if (c.ctrlKey || c.metaKey || c.altKey) {
808
- b && b(c);
809
- return;
810
- }
811
- const W = xe(v).activeElement;
812
- if (P === "ArrowDown")
813
- c.preventDefault(), fe(v, W, h, u, Be);
814
- else if (P === "ArrowUp")
815
- c.preventDefault(), fe(v, W, h, u, uo);
816
- else if (P === "Home")
817
- c.preventDefault(), fe(v, null, h, u, Be);
818
- else if (P === "End")
819
- c.preventDefault(), fe(v, null, h, u, uo);
820
- else if (P.length === 1) {
821
- const T = R.current, L = P.toLowerCase(), B = performance.now();
822
- T.keys.length > 0 && (B - T.lastTime > 500 ? (T.keys = [], T.repeating = !0, T.previousKeyMatched = !0) : T.repeating && L !== T.keys[0] && (T.repeating = !1)), T.lastTime = B, T.keys.push(L);
823
- const A = W && !T.repeating && Co(W, T);
824
- T.previousKeyMatched && (A || fe(v, W, !1, u, Be, T)) ? c.preventDefault() : T.previousKeyMatched = !1;
825
- }
826
- b && b(c);
827
- }, S = Fe(f, n);
828
- let m = -1;
829
- a.Children.forEach(s, (c, v) => {
830
- if (!/* @__PURE__ */ a.isValidElement(c)) {
831
- m === v && (m += 1, m >= s.length && (m = -1));
832
- return;
833
- }
834
- process.env.NODE_ENV !== "production" && qe.isFragment(c) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
835
- `)), c.props.disabled || (g === "selectedMenu" && c.props.selected || m === -1) && (m = v), m === v && (c.props.disabled || c.props.muiSkipListHighlight || c.type.muiSkipListHighlight) && (m += 1, m >= s.length && (m = -1));
836
- });
837
- const I = a.Children.map(s, (c, v) => {
838
- if (v === m) {
839
- const P = {};
840
- return d && (P.autoFocus = !0), c.props.tabIndex === void 0 && g === "selectedMenu" && (P.tabIndex = 0), /* @__PURE__ */ a.cloneElement(c, P);
841
- }
842
- return c;
843
- });
844
- return /* @__PURE__ */ w(Oo, {
845
- role: "menu",
846
- ref: S,
847
- className: i,
848
- onKeyDown: F,
849
- tabIndex: p ? 0 : -1,
850
- ...C,
851
- children: I
852
- });
853
- });
854
- process.env.NODE_ENV !== "production" && (Ro.propTypes = {
855
- // ┌────────────────────────────── Warning ──────────────────────────────┐
856
- // │ These PropTypes are generated from the TypeScript type definitions. │
857
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
858
- // └─────────────────────────────────────────────────────────────────────┘
859
- /**
860
- * If `true`, will focus the `[role="menu"]` container and move into tab order.
861
- * @default false
862
- */
863
- autoFocus: e.bool,
864
- /**
865
- * If `true`, will focus the first menuitem if `variant="menu"` or selected item
866
- * if `variant="selectedMenu"`.
867
- * @default false
868
- */
869
- autoFocusItem: e.bool,
870
- /**
871
- * MenuList contents, normally `MenuItem`s.
872
- */
873
- children: e.node,
874
- /**
875
- * @ignore
876
- */
877
- className: e.string,
878
- /**
879
- * If `true`, will allow focus on disabled items.
880
- * @default false
881
- */
882
- disabledItemsFocusable: e.bool,
883
- /**
884
- * If `true`, the menu items will not wrap focus.
885
- * @default false
886
- */
887
- disableListWrap: e.bool,
888
- /**
889
- * @ignore
890
- */
891
- onKeyDown: e.func,
892
- /**
893
- * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
894
- * and the vertical alignment relative to the anchor element.
895
- * @default 'selectedMenu'
896
- */
897
- variant: e.oneOf(["menu", "selectedMenu"])
898
- });
899
- function pt(o) {
900
- return Z("MuiPopover", o);
901
- }
902
- Q("MuiPopover", ["root", "paper"]);
903
- function fo(o, t) {
904
- let n = 0;
905
- return typeof t == "number" ? n = t : t === "center" ? n = o.height / 2 : t === "bottom" && (n = o.height), n;
906
- }
907
- function mo(o, t) {
908
- let n = 0;
909
- return typeof t == "number" ? n = t : t === "center" ? n = o.width / 2 : t === "right" && (n = o.width), n;
910
- }
911
- function bo(o) {
912
- return [o.horizontal, o.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" ");
913
- }
914
- function Te(o) {
915
- return typeof o == "function" ? o() : o;
916
- }
917
- const dt = (o) => {
918
- const {
919
- classes: t
920
- } = o;
921
- return oe({
922
- root: ["root"],
923
- paper: ["paper"]
924
- }, pt, t);
925
- }, ct = x(Uo, {
926
- name: "MuiPopover",
927
- slot: "Root",
928
- overridesResolver: (o, t) => t.root
929
- })({}), So = x(zo, {
930
- name: "MuiPopover",
931
- slot: "Paper",
932
- overridesResolver: (o, t) => t.paper
933
- })({
934
- position: "absolute",
935
- overflowY: "auto",
936
- overflowX: "hidden",
937
- // So we see the popover when it's empty.
938
- // It's most likely on issue on userland.
939
- minWidth: 16,
940
- minHeight: 16,
941
- maxWidth: "calc(100% - 32px)",
942
- maxHeight: "calc(100% - 32px)",
943
- // We disable the focus ring for mouse, touch and keyboard users.
944
- outline: 0
945
- }), Io = /* @__PURE__ */ a.forwardRef(function(t, n) {
946
- const r = re({
947
- props: t,
948
- name: "MuiPopover"
949
- }), {
950
- action: p,
951
- anchorEl: d,
952
- anchorOrigin: s = {
953
- vertical: "top",
954
- horizontal: "left"
955
- },
956
- anchorPosition: i,
957
- anchorReference: u = "anchorEl",
958
- children: h,
959
- className: b,
960
- container: g,
961
- elevation: C = 8,
962
- marginThreshold: f = 16,
963
- open: R,
964
- PaperProps: F = {},
965
- slots: S = {},
966
- slotProps: m = {},
967
- transformOrigin: I = {
968
- vertical: "top",
969
- horizontal: "left"
970
- },
971
- TransitionComponent: c = Xo,
972
- transitionDuration: v = "auto",
973
- TransitionProps: {
974
- onEntering: P,
975
- ...D
976
- } = {},
977
- disableScrollLock: W = !1,
978
- ...T
979
- } = r, L = (m == null ? void 0 : m.paper) ?? F, B = a.useRef(), A = {
980
- ...r,
981
- anchorOrigin: s,
982
- anchorReference: u,
983
- elevation: C,
984
- marginThreshold: f,
985
- externalPaperSlotProps: L,
986
- transformOrigin: I,
987
- TransitionComponent: c,
988
- transitionDuration: v,
989
- TransitionProps: D
990
- }, V = dt(A), U = a.useCallback(() => {
991
- if (u === "anchorPosition")
992
- return process.env.NODE_ENV !== "production" && (i || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), i;
993
- const M = Te(d), E = M && M.nodeType === 1 ? M : xe(B.current).body, N = E.getBoundingClientRect();
994
- if (process.env.NODE_ENV !== "production") {
995
- const J = E.getBoundingClientRect();
996
- process.env.NODE_ENV !== "test" && J.top === 0 && J.left === 0 && J.right === 0 && J.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(`
997
- `));
998
- }
999
- return {
1000
- top: N.top + fo(N, s.vertical),
1001
- left: N.left + mo(N, s.horizontal)
1002
- };
1003
- }, [d, s.horizontal, s.vertical, i, u]), K = a.useCallback((M) => ({
1004
- vertical: fo(M, I.vertical),
1005
- horizontal: mo(M, I.horizontal)
1006
- }), [I.horizontal, I.vertical]), G = a.useCallback((M) => {
1007
- const E = {
1008
- width: M.offsetWidth,
1009
- height: M.offsetHeight
1010
- }, N = K(E);
1011
- if (u === "none")
1012
- return {
1013
- top: null,
1014
- left: null,
1015
- transformOrigin: bo(N)
1016
- };
1017
- const J = U();
1018
- let te = J.top - N.vertical, _ = J.left - N.horizontal;
1019
- const Oe = te + E.height, Ce = _ + E.width, Re = Ue(Te(d)), H = Re.innerHeight - f, Se = Re.innerWidth - f;
1020
- if (f !== null && te < f) {
1021
- const k = te - f;
1022
- te -= k, N.vertical += k;
1023
- } else if (f !== null && Oe > H) {
1024
- const k = Oe - H;
1025
- te -= k, N.vertical += k;
1026
- }
1027
- if (process.env.NODE_ENV !== "production" && E.height > H && E.height && H && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${E.height - H}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
1028
- `)), f !== null && _ < f) {
1029
- const k = _ - f;
1030
- _ -= k, N.horizontal += k;
1031
- } else if (Ce > Se) {
1032
- const k = Ce - Se;
1033
- _ -= k, N.horizontal += k;
1034
- }
1035
- return {
1036
- top: `${Math.round(te)}px`,
1037
- left: `${Math.round(_)}px`,
1038
- transformOrigin: bo(N)
1039
- };
1040
- }, [d, u, U, K, f]), [$, z] = a.useState(R), y = a.useCallback(() => {
1041
- const M = B.current;
1042
- if (!M)
1043
- return;
1044
- const E = G(M);
1045
- E.top !== null && M.style.setProperty("top", E.top), E.left !== null && (M.style.left = E.left), M.style.transformOrigin = E.transformOrigin, z(!0);
1046
- }, [G]);
1047
- a.useEffect(() => (W && window.addEventListener("scroll", y), () => window.removeEventListener("scroll", y)), [d, W, y]);
1048
- const ae = (M, E) => {
1049
- P && P(M, E), y();
1050
- }, be = () => {
1051
- z(!1);
1052
- };
1053
- a.useEffect(() => {
1054
- R && y();
1055
- }), a.useImperativeHandle(p, () => R ? {
1056
- updatePosition: () => {
1057
- y();
1058
- }
1059
- } : null, [R, y]), a.useEffect(() => {
1060
- if (!R)
1061
- return;
1062
- const M = _o(() => {
1063
- y();
1064
- }), E = Ue(d);
1065
- return E.addEventListener("resize", M), () => {
1066
- M.clear(), E.removeEventListener("resize", M);
1067
- };
1068
- }, [d, R, y]);
1069
- let he = v;
1070
- v === "auto" && !c.muiSupportAuto && (he = void 0);
1071
- const ge = g || (d ? xe(Te(d)).body : void 0), q = {
1072
- slots: S,
1073
- slotProps: {
1074
- ...m,
1075
- paper: L
1076
- }
1077
- }, [Y, ve] = po("paper", {
1078
- elementType: So,
1079
- externalForwardedProps: q,
1080
- additionalProps: {
1081
- elevation: C,
1082
- className: ne(V.paper, L == null ? void 0 : L.className),
1083
- style: $ ? L.style : {
1084
- ...L.style,
1085
- opacity: 0
1086
- }
1087
- },
1088
- ownerState: A
1089
- }), [le, {
1090
- slotProps: Le,
1091
- ...ye
1092
- }] = po("root", {
1093
- elementType: ct,
1094
- externalForwardedProps: q,
1095
- additionalProps: {
1096
- slotProps: {
1097
- backdrop: {
1098
- invisible: !0
1099
- }
1100
- },
1101
- container: ge,
1102
- open: R
1103
- },
1104
- ownerState: A,
1105
- className: ne(V.root, b)
1106
- }), je = Fe(B, ve.ref);
1107
- return /* @__PURE__ */ w(le, {
1108
- ...ye,
1109
- ...!Ao(le) && {
1110
- slotProps: Le,
1111
- disableScrollLock: W
1112
- },
1113
- ...T,
1114
- ref: n,
1115
- children: /* @__PURE__ */ w(c, {
1116
- appear: !0,
1117
- in: R,
1118
- onEntering: ae,
1119
- onExited: be,
1120
- timeout: he,
1121
- ...D,
1122
- children: /* @__PURE__ */ w(Y, {
1123
- ...ve,
1124
- ref: je,
1125
- children: h
1126
- })
1127
- })
1128
- });
1129
- });
1130
- process.env.NODE_ENV !== "production" && (Io.propTypes = {
1131
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1132
- // │ These PropTypes are generated from the TypeScript type definitions. │
1133
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1134
- // └─────────────────────────────────────────────────────────────────────┘
1135
- /**
1136
- * A ref for imperative actions.
1137
- * It currently only supports updatePosition() action.
1138
- */
1139
- action: ce,
1140
- /**
1141
- * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
1142
- * or a function that returns either.
1143
- * It's used to set the position of the popover.
1144
- */
1145
- anchorEl: qo(e.oneOfType([ze, e.func]), (o) => {
1146
- if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
1147
- const t = Te(o.anchorEl);
1148
- if (t && t.nodeType === 1) {
1149
- const n = t.getBoundingClientRect();
1150
- if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
1151
- 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(`
1152
- `));
1153
- } else
1154
- return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
1155
- `));
1156
- }
1157
- return null;
1158
- }),
1159
- /**
1160
- * This is the point on the anchor where the popover's
1161
- * `anchorEl` will attach to. This is not used when the
1162
- * anchorReference is 'anchorPosition'.
1163
- *
1164
- * Options:
1165
- * vertical: [top, center, bottom];
1166
- * horizontal: [left, center, right].
1167
- * @default {
1168
- * vertical: 'top',
1169
- * horizontal: 'left',
1170
- * }
1171
- */
1172
- anchorOrigin: e.shape({
1173
- horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
1174
- vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
1175
- }),
1176
- /**
1177
- * This is the position that may be used to set the position of the popover.
1178
- * The coordinates are relative to the application's client area.
1179
- */
1180
- anchorPosition: e.shape({
1181
- left: e.number.isRequired,
1182
- top: e.number.isRequired
1183
- }),
1184
- /**
1185
- * This determines which anchor prop to refer to when setting
1186
- * the position of the popover.
1187
- * @default 'anchorEl'
1188
- */
1189
- anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
1190
- /**
1191
- * A backdrop component. This prop enables custom backdrop rendering.
1192
- * @deprecated Use `slotProps.root.slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
1193
- * Use the `slotProps.root.slots.backdrop` prop to make your application ready for the next version of Material UI.
1194
- * @default styled(Backdrop, {
1195
- * name: 'MuiModal',
1196
- * slot: 'Backdrop',
1197
- * overridesResolver: (props, styles) => {
1198
- * return styles.backdrop;
1199
- * },
1200
- * })({
1201
- * zIndex: -1,
1202
- * })
1203
- */
1204
- BackdropComponent: e.elementType,
1205
- /**
1206
- * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
1207
- * @deprecated Use `slotProps.root.slotProps.backdrop` instead.
1208
- */
1209
- BackdropProps: e.object,
1210
- /**
1211
- * The content of the component.
1212
- */
1213
- children: e.node,
1214
- /**
1215
- * Override or extend the styles applied to the component.
1216
- */
1217
- classes: e.object,
1218
- /**
1219
- * @ignore
1220
- */
1221
- className: e.string,
1222
- /**
1223
- * An HTML element, component instance, or function that returns either.
1224
- * The `container` will passed to the Modal component.
1225
- *
1226
- * By default, it uses the body of the anchorEl's top-level document object,
1227
- * so it's simply `document.body` most of the time.
1228
- */
1229
- container: e.oneOfType([ze, e.func]),
1230
- /**
1231
- * Disable the scroll lock behavior.
1232
- * @default false
1233
- */
1234
- disableScrollLock: e.bool,
1235
- /**
1236
- * The elevation of the popover.
1237
- * @default 8
1238
- */
1239
- elevation: Vo,
1240
- /**
1241
- * Specifies how close to the edge of the window the popover can appear.
1242
- * If null, the popover will not be constrained by the window.
1243
- * @default 16
1244
- */
1245
- marginThreshold: e.number,
1246
- /**
1247
- * Callback fired when the component requests to be closed.
1248
- * The `reason` parameter can optionally be used to control the response to `onClose`.
1249
- */
1250
- onClose: e.func,
1251
- /**
1252
- * If `true`, the component is shown.
1253
- */
1254
- open: e.bool.isRequired,
1255
- /**
1256
- * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
1257
- *
1258
- * This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.
1259
- * @deprecated Use `slotProps.paper` instead.
1260
- *
1261
- * @default {}
1262
- */
1263
- PaperProps: e.shape({
1264
- component: Ho
1265
- }),
1266
- /**
1267
- * The props used for each slot inside.
1268
- * @default {}
1269
- */
1270
- slotProps: e.shape({
1271
- paper: e.oneOfType([e.func, e.object]),
1272
- root: e.oneOfType([e.func, e.object])
1273
- }),
1274
- /**
1275
- * The components used for each slot inside.
1276
- * @default {}
1277
- */
1278
- slots: e.shape({
1279
- paper: e.elementType,
1280
- root: e.elementType
1281
- }),
1282
- /**
1283
- * The system prop that allows defining system overrides as well as additional CSS styles.
1284
- */
1285
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1286
- /**
1287
- * This is the point on the popover which
1288
- * will attach to the anchor's origin.
1289
- *
1290
- * Options:
1291
- * vertical: [top, center, bottom, x(px)];
1292
- * horizontal: [left, center, right, x(px)].
1293
- * @default {
1294
- * vertical: 'top',
1295
- * horizontal: 'left',
1296
- * }
1297
- */
1298
- transformOrigin: e.shape({
1299
- horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
1300
- vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
1301
- }),
1302
- /**
1303
- * The component used for the transition.
1304
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
1305
- * @default Grow
1306
- */
1307
- TransitionComponent: e.elementType,
1308
- /**
1309
- * Set to 'auto' to automatically calculate transition time based on height.
1310
- * @default 'auto'
1311
- */
1312
- transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
1313
- appear: e.number,
1314
- enter: e.number,
1315
- exit: e.number
1316
- })]),
1317
- /**
1318
- * Props applied to the transition element.
1319
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
1320
- * @default {}
1321
- */
1322
- TransitionProps: e.object
1323
- });
1324
- function ut(o) {
1325
- return Z("MuiMenu", o);
1326
- }
1327
- const On = Q("MuiMenu", ["root", "paper", "list"]), ft = {
1328
- vertical: "top",
1329
- horizontal: "right"
1330
- }, mt = {
1331
- vertical: "top",
1332
- horizontal: "left"
1333
- }, bt = (o) => {
1334
- const {
1335
- classes: t
1336
- } = o;
1337
- return oe({
1338
- root: ["root"],
1339
- paper: ["paper"],
1340
- list: ["list"]
1341
- }, ut, t);
1342
- }, ht = x(Io, {
1343
- shouldForwardProp: (o) => ee(o) || o === "classes",
1344
- name: "MuiMenu",
1345
- slot: "Root",
1346
- overridesResolver: (o, t) => t.root
1347
- })({}), gt = x(So, {
1348
- name: "MuiMenu",
1349
- slot: "Paper",
1350
- overridesResolver: (o, t) => t.paper
1351
- })({
1352
- // specZ: The maximum height of a simple menu should be one or more rows less than the view
1353
- // height. This ensures a tappable area outside of the simple menu with which to dismiss
1354
- // the menu.
1355
- maxHeight: "calc(100% - 96px)",
1356
- // Add iOS momentum scrolling for iOS < 13.0
1357
- WebkitOverflowScrolling: "touch"
1358
- }), vt = x(Ro, {
1359
- name: "MuiMenu",
1360
- slot: "List",
1361
- overridesResolver: (o, t) => t.list
1362
- })({
1363
- // We disable the focus ring for mouse, touch and keyboard users.
1364
- outline: 0
1365
- }), wo = /* @__PURE__ */ a.forwardRef(function(t, n) {
1366
- const r = re({
1367
- props: t,
1368
- name: "MuiMenu"
1369
- }), {
1370
- autoFocus: p = !0,
1371
- children: d,
1372
- className: s,
1373
- disableAutoFocusItem: i = !1,
1374
- MenuListProps: u = {},
1375
- onClose: h,
1376
- open: b,
1377
- PaperProps: g = {},
1378
- PopoverClasses: C,
1379
- transitionDuration: f = "auto",
1380
- TransitionProps: {
1381
- onEntering: R,
1382
- ...F
1383
- } = {},
1384
- variant: S = "selectedMenu",
1385
- slots: m = {},
1386
- slotProps: I = {},
1387
- ...c
1388
- } = r, v = Wo(), P = {
1389
- ...r,
1390
- autoFocus: p,
1391
- disableAutoFocusItem: i,
1392
- MenuListProps: u,
1393
- onEntering: R,
1394
- PaperProps: g,
1395
- transitionDuration: f,
1396
- TransitionProps: F,
1397
- variant: S
1398
- }, D = bt(P), W = p && !i && b, T = a.useRef(null), L = ($, z) => {
1399
- T.current && T.current.adjustStyleForScrollbar($, {
1400
- direction: v ? "rtl" : "ltr"
1401
- }), R && R($, z);
1402
- }, B = ($) => {
1403
- $.key === "Tab" && ($.preventDefault(), h && h($, "tabKeyDown"));
1404
- };
1405
- let A = -1;
1406
- a.Children.map(d, ($, z) => {
1407
- /* @__PURE__ */ a.isValidElement($) && (process.env.NODE_ENV !== "production" && qe.isFragment($) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
1408
- `)), $.props.disabled || (S === "selectedMenu" && $.props.selected || A === -1) && (A = z));
1409
- });
1410
- const V = m.paper ?? gt, U = I.paper ?? g, K = lo({
1411
- elementType: m.root,
1412
- externalSlotProps: I.root,
1413
- ownerState: P,
1414
- className: [D.root, s]
1415
- }), G = lo({
1416
- elementType: V,
1417
- externalSlotProps: U,
1418
- ownerState: P,
1419
- className: D.paper
1420
- });
1421
- return /* @__PURE__ */ w(ht, {
1422
- onClose: h,
1423
- anchorOrigin: {
1424
- vertical: "bottom",
1425
- horizontal: v ? "right" : "left"
1426
- },
1427
- transformOrigin: v ? ft : mt,
1428
- slots: {
1429
- paper: V,
1430
- root: m.root
1431
- },
1432
- slotProps: {
1433
- root: K,
1434
- paper: G
1435
- },
1436
- open: b,
1437
- ref: n,
1438
- transitionDuration: f,
1439
- TransitionProps: {
1440
- onEntering: L,
1441
- ...F
1442
- },
1443
- ownerState: P,
1444
- ...c,
1445
- classes: C,
1446
- children: /* @__PURE__ */ w(vt, {
1447
- onKeyDown: B,
1448
- actions: T,
1449
- autoFocus: p && (A === -1 || i),
1450
- autoFocusItem: W,
1451
- variant: S,
1452
- ...u,
1453
- className: ne(D.list, u.className),
1454
- children: d
1455
- })
1456
- });
1457
- });
1458
- process.env.NODE_ENV !== "production" && (wo.propTypes = {
1459
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1460
- // │ These PropTypes are generated from the TypeScript type definitions. │
1461
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1462
- // └─────────────────────────────────────────────────────────────────────┘
1463
- /**
1464
- * An HTML element, or a function that returns one.
1465
- * It's used to set the position of the menu.
1466
- */
1467
- anchorEl: e.oneOfType([ze, e.func]),
1468
- /**
1469
- * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
1470
- * children are not focusable. If you set this prop to `false` focus will be placed
1471
- * on the parent modal container. This has severe accessibility implications
1472
- * and should only be considered if you manage focus otherwise.
1473
- * @default true
1474
- */
1475
- autoFocus: e.bool,
1476
- /**
1477
- * Menu contents, normally `MenuItem`s.
1478
- */
1479
- children: e.node,
1480
- /**
1481
- * Override or extend the styles applied to the component.
1482
- */
1483
- classes: e.object,
1484
- /**
1485
- * @ignore
1486
- */
1487
- className: e.string,
1488
- /**
1489
- * When opening the menu will not focus the active item but the `[role="menu"]`
1490
- * unless `autoFocus` is also set to `false`. Not using the default means not
1491
- * following WAI-ARIA authoring practices. Please be considerate about possible
1492
- * accessibility implications.
1493
- * @default false
1494
- */
1495
- disableAutoFocusItem: e.bool,
1496
- /**
1497
- * Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
1498
- * @default {}
1499
- */
1500
- MenuListProps: e.object,
1501
- /**
1502
- * Callback fired when the component requests to be closed.
1503
- *
1504
- * @param {object} event The event source of the callback.
1505
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
1506
- */
1507
- onClose: e.func,
1508
- /**
1509
- * If `true`, the component is shown.
1510
- */
1511
- open: e.bool.isRequired,
1512
- /**
1513
- * @ignore
1514
- */
1515
- PaperProps: e.object,
1516
- /**
1517
- * `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.
1518
- */
1519
- PopoverClasses: e.object,
1520
- /**
1521
- * The props used for each slot inside.
1522
- * @default {}
1523
- */
1524
- slotProps: e.shape({
1525
- paper: e.oneOfType([e.func, e.object]),
1526
- root: e.oneOfType([e.func, e.object])
1527
- }),
1528
- /**
1529
- * The components used for each slot inside.
1530
- * @default {}
1531
- */
1532
- slots: e.shape({
1533
- paper: e.elementType,
1534
- root: e.elementType
1535
- }),
1536
- /**
1537
- * The system prop that allows defining system overrides as well as additional CSS styles.
1538
- */
1539
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1540
- /**
1541
- * The length of the transition in `ms`, or 'auto'
1542
- * @default 'auto'
1543
- */
1544
- transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
1545
- appear: e.number,
1546
- enter: e.number,
1547
- exit: e.number
1548
- })]),
1549
- /**
1550
- * Props applied to the transition element.
1551
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
1552
- * @default {}
1553
- */
1554
- TransitionProps: e.object,
1555
- /**
1556
- * The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
1557
- * @default 'selectedMenu'
1558
- */
1559
- variant: e.oneOf(["menu", "selectedMenu"])
1560
- });
1561
- function yt(o) {
1562
- return Z("MuiNativeSelect", o);
1563
- }
1564
- const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Ot = (o) => {
618
+ const ke = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Fo = (o) => {
1565
619
  const {
1566
620
  classes: t,
1567
621
  variant: n,
1568
622
  disabled: r,
1569
- multiple: p,
1570
- open: d,
1571
- error: s
1572
- } = o, i = {
1573
- select: ["select", n, r && "disabled", p && "multiple", s && "error"],
1574
- icon: ["icon", `icon${de(n)}`, d && "iconOpen", r && "disabled"]
623
+ multiple: i,
624
+ open: p,
625
+ error: a
626
+ } = o, d = {
627
+ select: ["select", n, r && "disabled", i && "multiple", a && "error"],
628
+ icon: ["icon", `icon${z(n)}`, p && "iconOpen", r && "disabled"]
1575
629
  };
1576
- return oe(i, yt, t);
1577
- }, Po = x("select")(({
630
+ return V(d, Eo, t);
631
+ }, He = h("select")(({
1578
632
  theme: o
1579
633
  }) => ({
1580
634
  // Reset
@@ -1591,7 +645,7 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
1591
645
  // Reset Chrome style
1592
646
  borderRadius: 0
1593
647
  },
1594
- [`&.${eo.disabled}`]: {
648
+ [`&.${ke.disabled}`]: {
1595
649
  cursor: "default"
1596
650
  },
1597
651
  "&[multiple]": {
@@ -1636,19 +690,19 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
1636
690
  }
1637
691
  }
1638
692
  }]
1639
- })), Ct = x(Po, {
693
+ })), Mo = h(He, {
1640
694
  name: "MuiNativeSelect",
1641
695
  slot: "Select",
1642
- shouldForwardProp: ee,
696
+ shouldForwardProp: k,
1643
697
  overridesResolver: (o, t) => {
1644
698
  const {
1645
699
  ownerState: n
1646
700
  } = o;
1647
701
  return [t.select, t[n.variant], n.error && t.error, {
1648
- [`&.${eo.multiple}`]: t.multiple
702
+ [`&.${ke.multiple}`]: t.multiple
1649
703
  }];
1650
704
  }
1651
- })({}), To = x("svg")(({
705
+ })({}), Ge = h("svg")(({
1652
706
  theme: o
1653
707
  }) => ({
1654
708
  // We use a position absolute over a flexbox in order to forward the pointer events
@@ -1660,7 +714,7 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
1660
714
  // Don't block pointer events on the select under the icon.
1661
715
  pointerEvents: "none",
1662
716
  color: (o.vars || o).palette.action.active,
1663
- [`&.${eo.disabled}`]: {
717
+ [`&.${ke.disabled}`]: {
1664
718
  color: (o.vars || o).palette.action.disabled
1665
719
  },
1666
720
  variants: [{
@@ -1685,45 +739,45 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
1685
739
  right: 7
1686
740
  }
1687
741
  }]
1688
- })), Rt = x(To, {
742
+ })), jo = h(Ge, {
1689
743
  name: "MuiNativeSelect",
1690
744
  slot: "Icon",
1691
745
  overridesResolver: (o, t) => {
1692
746
  const {
1693
747
  ownerState: n
1694
748
  } = o;
1695
- return [t.icon, n.variant && t[`icon${de(n.variant)}`], n.open && t.iconOpen];
749
+ return [t.icon, n.variant && t[`icon${z(n.variant)}`], n.open && t.iconOpen];
1696
750
  }
1697
- })({}), xo = /* @__PURE__ */ a.forwardRef(function(t, n) {
751
+ })({}), Ye = /* @__PURE__ */ u.forwardRef(function(t, n) {
1698
752
  const {
1699
753
  className: r,
1700
- disabled: p,
1701
- error: d,
1702
- IconComponent: s,
1703
- inputRef: i,
1704
- variant: u = "standard",
1705
- ...h
1706
- } = t, b = {
754
+ disabled: i,
755
+ error: p,
756
+ IconComponent: a,
757
+ inputRef: d,
758
+ variant: m = "standard",
759
+ ...g
760
+ } = t, f = {
1707
761
  ...t,
1708
- disabled: p,
1709
- variant: u,
1710
- error: d
1711
- }, g = Ot(b);
1712
- return /* @__PURE__ */ ke(a.Fragment, {
1713
- children: [/* @__PURE__ */ w(Ct, {
1714
- ownerState: b,
1715
- className: ne(g.select, r),
1716
- disabled: p,
1717
- ref: i || n,
1718
- ...h
1719
- }), t.multiple ? null : /* @__PURE__ */ w(Rt, {
1720
- as: s,
1721
- ownerState: b,
1722
- className: g.icon
762
+ disabled: i,
763
+ variant: m,
764
+ error: p
765
+ }, c = Fo(f);
766
+ return /* @__PURE__ */ Se(u.Fragment, {
767
+ children: [/* @__PURE__ */ v(Mo, {
768
+ ownerState: f,
769
+ className: fe(c.select, r),
770
+ disabled: i,
771
+ ref: d || n,
772
+ ...g
773
+ }), t.multiple ? null : /* @__PURE__ */ v(jo, {
774
+ as: a,
775
+ ownerState: f,
776
+ className: c.icon
1723
777
  })]
1724
778
  });
1725
779
  });
1726
- process.env.NODE_ENV !== "production" && (xo.propTypes = {
780
+ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
1727
781
  /**
1728
782
  * The option elements to populate the select with.
1729
783
  * Can be some `<option>` elements.
@@ -1753,7 +807,7 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = {
1753
807
  * Use that prop to pass a ref to the native select element.
1754
808
  * @deprecated
1755
809
  */
1756
- inputRef: ce,
810
+ inputRef: G,
1757
811
  /**
1758
812
  * @ignore
1759
813
  */
@@ -1778,12 +832,12 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = {
1778
832
  */
1779
833
  variant: e.oneOf(["standard", "outlined", "filled"])
1780
834
  });
1781
- function St(o) {
1782
- return Z("MuiSelect", o);
835
+ function Lo(o) {
836
+ return U("MuiSelect", o);
1783
837
  }
1784
- const me = Q("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
1785
- var ho;
1786
- const It = x(Po, {
838
+ const X = D("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
839
+ var qe;
840
+ const Bo = h(He, {
1787
841
  name: "MuiSelect",
1788
842
  slot: "Select",
1789
843
  overridesResolver: (o, t) => {
@@ -1793,22 +847,22 @@ const It = x(Po, {
1793
847
  return [
1794
848
  // Win specificity over the input base
1795
849
  {
1796
- [`&.${me.select}`]: t.select
850
+ [`&.${X.select}`]: t.select
1797
851
  },
1798
852
  {
1799
- [`&.${me.select}`]: t[n.variant]
853
+ [`&.${X.select}`]: t[n.variant]
1800
854
  },
1801
855
  {
1802
- [`&.${me.error}`]: t.error
856
+ [`&.${X.error}`]: t.error
1803
857
  },
1804
858
  {
1805
- [`&.${me.multiple}`]: t.multiple
859
+ [`&.${X.multiple}`]: t.multiple
1806
860
  }
1807
861
  ];
1808
862
  }
1809
863
  })({
1810
864
  // Win specificity over the input base
1811
- [`&.${me.select}`]: {
865
+ [`&.${X.select}`]: {
1812
866
  height: "auto",
1813
867
  // Resets for multiple select with chips
1814
868
  minHeight: "1.4375em",
@@ -1817,17 +871,17 @@ const It = x(Po, {
1817
871
  whiteSpace: "nowrap",
1818
872
  overflow: "hidden"
1819
873
  }
1820
- }), wt = x(To, {
874
+ }), Wo = h(Ge, {
1821
875
  name: "MuiSelect",
1822
876
  slot: "Icon",
1823
877
  overridesResolver: (o, t) => {
1824
878
  const {
1825
879
  ownerState: n
1826
880
  } = o;
1827
- return [t.icon, n.variant && t[`icon${de(n.variant)}`], n.open && t.iconOpen];
881
+ return [t.icon, n.variant && t[`icon${z(n.variant)}`], n.open && t.iconOpen];
1828
882
  }
1829
- })({}), Pt = x("input", {
1830
- shouldForwardProp: (o) => jo(o) && o !== "classes",
883
+ })({}), Ao = h("input", {
884
+ shouldForwardProp: (o) => bo(o) && o !== "classes",
1831
885
  name: "MuiSelect",
1832
886
  slot: "NativeInput",
1833
887
  overridesResolver: (o, t) => t.nativeInput
@@ -1840,249 +894,249 @@ const It = x(Po, {
1840
894
  width: "100%",
1841
895
  boxSizing: "border-box"
1842
896
  });
1843
- function go(o, t) {
897
+ function _e(o, t) {
1844
898
  return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
1845
899
  }
1846
- function Tt(o) {
900
+ function Uo(o) {
1847
901
  return o == null || typeof o == "string" && !o.trim();
1848
902
  }
1849
- const xt = (o) => {
903
+ const Do = (o) => {
1850
904
  const {
1851
905
  classes: t,
1852
906
  variant: n,
1853
907
  disabled: r,
1854
- multiple: p,
1855
- open: d,
1856
- error: s
1857
- } = o, i = {
1858
- select: ["select", n, r && "disabled", p && "multiple", s && "error"],
1859
- icon: ["icon", `icon${de(n)}`, d && "iconOpen", r && "disabled"],
908
+ multiple: i,
909
+ open: p,
910
+ error: a
911
+ } = o, d = {
912
+ select: ["select", n, r && "disabled", i && "multiple", a && "error"],
913
+ icon: ["icon", `icon${z(n)}`, p && "iconOpen", r && "disabled"],
1860
914
  nativeInput: ["nativeInput"]
1861
915
  };
1862
- return oe(i, St, t);
1863
- }, Eo = /* @__PURE__ */ a.forwardRef(function(t, n) {
1864
- var io;
916
+ return V(d, Lo, t);
917
+ }, Ze = /* @__PURE__ */ u.forwardRef(function(t, n) {
918
+ var De;
1865
919
  const {
1866
920
  "aria-describedby": r,
1867
- "aria-label": p,
1868
- autoFocus: d,
1869
- autoWidth: s,
1870
- children: i,
1871
- className: u,
1872
- defaultOpen: h,
1873
- defaultValue: b,
1874
- disabled: g,
1875
- displayEmpty: C,
1876
- error: f = !1,
1877
- IconComponent: R,
1878
- inputRef: F,
1879
- labelId: S,
1880
- MenuProps: m = {},
1881
- multiple: I,
1882
- name: c,
1883
- onBlur: v,
1884
- onChange: P,
1885
- onClose: D,
1886
- onFocus: W,
1887
- onOpen: T,
1888
- open: L,
1889
- readOnly: B,
1890
- renderValue: A,
1891
- SelectDisplayProps: V = {},
1892
- tabIndex: U,
921
+ "aria-label": i,
922
+ autoFocus: p,
923
+ autoWidth: a,
924
+ children: d,
925
+ className: m,
926
+ defaultOpen: g,
927
+ defaultValue: f,
928
+ disabled: c,
929
+ displayEmpty: O,
930
+ error: R = !1,
931
+ IconComponent: w,
932
+ inputRef: T,
933
+ labelId: y,
934
+ MenuProps: x = {},
935
+ multiple: C,
936
+ name: I,
937
+ onBlur: N,
938
+ onChange: L,
939
+ onClose: Y,
940
+ onFocus: be,
941
+ onOpen: Z,
942
+ open: J,
943
+ readOnly: Q,
944
+ renderValue: ee,
945
+ SelectDisplayProps: B = {},
946
+ tabIndex: $,
1893
947
  // catching `type` from Input which makes no sense for SelectInput
1894
- type: K,
1895
- value: G,
1896
- variant: $ = "standard",
1897
- ...z
1898
- } = t, [y, ae] = co({
1899
- controlled: G,
1900
- default: b,
948
+ type: q,
949
+ value: oe,
950
+ variant: Fe = "standard",
951
+ ..._
952
+ } = t, [b, te] = Ve({
953
+ controlled: oe,
954
+ default: f,
1901
955
  name: "Select"
1902
- }), [be, he] = co({
1903
- controlled: L,
1904
- default: h,
956
+ }), [Me, eo] = Ve({
957
+ controlled: J,
958
+ default: g,
1905
959
  name: "Select"
1906
- }), ge = a.useRef(null), q = a.useRef(null), [Y, ve] = a.useState(null), {
1907
- current: le
1908
- } = a.useRef(L != null), [Le, ye] = a.useState(), je = Fe(n, F), M = a.useCallback((l) => {
1909
- q.current = l, l && ve(l);
1910
- }, []), E = Y == null ? void 0 : Y.parentNode;
1911
- a.useImperativeHandle(je, () => ({
960
+ }), je = u.useRef(null), F = u.useRef(null), [M, oo] = u.useState(null), {
961
+ current: me
962
+ } = u.useRef(J != null), [to, Le] = u.useState(), no = Xe(n, T), ro = u.useCallback((s) => {
963
+ F.current = s, s && oo(s);
964
+ }, []), ne = M == null ? void 0 : M.parentNode;
965
+ u.useImperativeHandle(no, () => ({
1912
966
  focus: () => {
1913
- q.current.focus();
967
+ F.current.focus();
1914
968
  },
1915
- node: ge.current,
1916
- value: y
1917
- }), [y]), a.useEffect(() => {
1918
- h && be && Y && !le && (ye(s ? null : E.clientWidth), q.current.focus());
1919
- }, [Y, s]), a.useEffect(() => {
1920
- d && q.current.focus();
1921
- }, [d]), a.useEffect(() => {
1922
- if (!S)
969
+ node: je.current,
970
+ value: b
971
+ }), [b]), u.useEffect(() => {
972
+ g && Me && M && !me && (Le(a ? null : ne.clientWidth), F.current.focus());
973
+ }, [M, a]), u.useEffect(() => {
974
+ p && F.current.focus();
975
+ }, [p]), u.useEffect(() => {
976
+ if (!y)
1923
977
  return;
1924
- const l = xe(q.current).getElementById(S);
1925
- if (l) {
1926
- const O = () => {
1927
- getSelection().isCollapsed && q.current.focus();
978
+ const s = Oo(F.current).getElementById(y);
979
+ if (s) {
980
+ const l = () => {
981
+ getSelection().isCollapsed && F.current.focus();
1928
982
  };
1929
- return l.addEventListener("click", O), () => {
1930
- l.removeEventListener("click", O);
983
+ return s.addEventListener("click", l), () => {
984
+ s.removeEventListener("click", l);
1931
985
  };
1932
986
  }
1933
- }, [S]);
1934
- const N = (l, O) => {
1935
- l ? T && T(O) : D && D(O), le || (ye(s ? null : E.clientWidth), he(l));
1936
- }, J = (l) => {
1937
- l.button === 0 && (l.preventDefault(), q.current.focus(), N(!0, l));
1938
- }, te = (l) => {
1939
- N(!1, l);
1940
- }, _ = a.Children.toArray(i), Oe = (l) => {
1941
- const O = _.find((j) => j.props.value === l.target.value);
1942
- O !== void 0 && (ae(O.props.value), P && P(l, O));
1943
- }, Ce = (l) => (O) => {
1944
- let j;
1945
- if (O.currentTarget.hasAttribute("tabindex")) {
1946
- if (I) {
1947
- j = Array.isArray(y) ? y.slice() : [];
1948
- const pe = y.indexOf(l.props.value);
1949
- pe === -1 ? j.push(l.props.value) : j.splice(pe, 1);
987
+ }, [y]);
988
+ const re = (s, l) => {
989
+ s ? Z && Z(l) : Y && Y(l), me || (Le(a ? null : ne.clientWidth), eo(s));
990
+ }, so = (s) => {
991
+ s.button === 0 && (s.preventDefault(), F.current.focus(), re(!0, s));
992
+ }, ao = (s) => {
993
+ re(!1, s);
994
+ }, se = u.Children.toArray(d), io = (s) => {
995
+ const l = se.find((S) => S.props.value === s.target.value);
996
+ l !== void 0 && (te(l.props.value), L && L(s, l));
997
+ }, lo = (s) => (l) => {
998
+ let S;
999
+ if (l.currentTarget.hasAttribute("tabindex")) {
1000
+ if (C) {
1001
+ S = Array.isArray(b) ? b.slice() : [];
1002
+ const A = b.indexOf(s.props.value);
1003
+ A === -1 ? S.push(s.props.value) : S.splice(A, 1);
1950
1004
  } else
1951
- j = l.props.value;
1952
- if (l.props.onClick && l.props.onClick(O), y !== j && (ae(j), P)) {
1953
- const pe = O.nativeEvent || O, ao = new pe.constructor(pe.type, pe);
1954
- Object.defineProperty(ao, "target", {
1005
+ S = s.props.value;
1006
+ if (s.props.onClick && s.props.onClick(l), b !== S && (te(S), L)) {
1007
+ const A = l.nativeEvent || l, ze = new A.constructor(A.type, A);
1008
+ Object.defineProperty(ze, "target", {
1955
1009
  writable: !0,
1956
1010
  value: {
1957
- value: j,
1958
- name: c
1011
+ value: S,
1012
+ name: I
1959
1013
  }
1960
- }), P(ao, l);
1014
+ }), L(ze, s);
1961
1015
  }
1962
- I || N(!1, O);
1016
+ C || re(!1, l);
1963
1017
  }
1964
- }, Re = (l) => {
1965
- B || [
1018
+ }, po = (s) => {
1019
+ Q || [
1966
1020
  " ",
1967
1021
  "ArrowUp",
1968
1022
  "ArrowDown",
1969
1023
  // The native select doesn't respond to enter on macOS, but it's recommended by
1970
1024
  // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
1971
1025
  "Enter"
1972
- ].includes(l.key) && (l.preventDefault(), N(!0, l));
1973
- }, H = Y !== null && be, Se = (l) => {
1974
- !H && v && (Object.defineProperty(l, "target", {
1026
+ ].includes(s.key) && (s.preventDefault(), re(!0, s));
1027
+ }, ae = M !== null && Me, uo = (s) => {
1028
+ !ae && N && (Object.defineProperty(s, "target", {
1975
1029
  writable: !0,
1976
1030
  value: {
1977
- value: y,
1978
- name: c
1031
+ value: b,
1032
+ name: I
1979
1033
  }
1980
- }), v(l));
1034
+ }), N(s));
1981
1035
  };
1982
- delete z["aria-invalid"];
1983
- let k, to;
1984
- const Ie = [];
1985
- let we = !1, $e = !1;
1986
- (Lo({
1987
- value: y
1988
- }) || C) && (A ? k = A(y) : we = !0);
1989
- const ko = _.map((l) => {
1990
- if (!/* @__PURE__ */ a.isValidElement(l))
1036
+ delete _["aria-invalid"];
1037
+ let W, Be;
1038
+ const ie = [];
1039
+ let le = !1, ge = !1;
1040
+ (ho({
1041
+ value: b
1042
+ }) || O) && (ee ? W = ee(b) : le = !0);
1043
+ const co = se.map((s) => {
1044
+ if (!/* @__PURE__ */ u.isValidElement(s))
1991
1045
  return null;
1992
- process.env.NODE_ENV !== "production" && qe.isFragment(l) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
1046
+ process.env.NODE_ENV !== "production" && mo.isFragment(s) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
1993
1047
  `));
1994
- let O;
1995
- if (I) {
1996
- if (!Array.isArray(y))
1997
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Fo(2));
1998
- O = y.some((j) => go(j, l.props.value)), O && we && Ie.push(l.props.children);
1048
+ let l;
1049
+ if (C) {
1050
+ if (!Array.isArray(b))
1051
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : fo(2));
1052
+ l = b.some((S) => _e(S, s.props.value)), l && le && ie.push(s.props.children);
1999
1053
  } else
2000
- O = go(y, l.props.value), O && we && (to = l.props.children);
2001
- return O && ($e = !0), /* @__PURE__ */ a.cloneElement(l, {
2002
- "aria-selected": O ? "true" : "false",
2003
- onClick: Ce(l),
2004
- onKeyUp: (j) => {
2005
- j.key === " " && j.preventDefault(), l.props.onKeyUp && l.props.onKeyUp(j);
1054
+ l = _e(b, s.props.value), l && le && (Be = s.props.children);
1055
+ return l && (ge = !0), /* @__PURE__ */ u.cloneElement(s, {
1056
+ "aria-selected": l ? "true" : "false",
1057
+ onClick: lo(s),
1058
+ onKeyUp: (S) => {
1059
+ S.key === " " && S.preventDefault(), s.props.onKeyUp && s.props.onKeyUp(S);
2006
1060
  },
2007
1061
  role: "option",
2008
- selected: O,
1062
+ selected: l,
2009
1063
  value: void 0,
2010
1064
  // The value is most likely not a valid HTML attribute.
2011
- "data-value": l.props.value
1065
+ "data-value": s.props.value
2012
1066
  // Instead, we provide it as a data attribute.
2013
1067
  });
2014
1068
  });
2015
- process.env.NODE_ENV !== "production" && a.useEffect(() => {
2016
- if (!$e && !I && y !== "") {
2017
- const l = _.map((O) => O.props.value);
2018
- console.warn([`MUI: You have provided an out-of-range value \`${y}\` for the select ${c ? `(name="${c}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${l.filter((O) => O != null).map((O) => `\`${O}\``).join(", ") || '""'}.`].join(`
1069
+ process.env.NODE_ENV !== "production" && u.useEffect(() => {
1070
+ if (!ge && !C && b !== "") {
1071
+ const s = se.map((l) => l.props.value);
1072
+ console.warn([`MUI: You have provided an out-of-range value \`${b}\` for the select ${I ? `(name="${I}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${s.filter((l) => l != null).map((l) => `\`${l}\``).join(", ") || '""'}.`].join(`
2019
1073
  `));
2020
1074
  }
2021
- }, [$e, _, I, c, y]), we && (I ? Ie.length === 0 ? k = null : k = Ie.reduce((l, O, j) => (l.push(O), j < Ie.length - 1 && l.push(", "), l), []) : k = to);
2022
- let no = Le;
2023
- !s && le && Y && (no = E.clientWidth);
2024
- let De;
2025
- typeof U < "u" ? De = U : De = g ? null : 0;
2026
- const ro = V.id || (c ? `mui-component-select-${c}` : void 0), Pe = {
1075
+ }, [ge, se, C, I, b]), le && (C ? ie.length === 0 ? W = null : W = ie.reduce((s, l, S) => (s.push(l), S < ie.length - 1 && s.push(", "), s), []) : W = Be);
1076
+ let We = to;
1077
+ !a && me && M && (We = ne.clientWidth);
1078
+ let ve;
1079
+ typeof $ < "u" ? ve = $ : ve = c ? null : 0;
1080
+ const Ae = B.id || (I ? `mui-component-select-${I}` : void 0), pe = {
2027
1081
  ...t,
2028
- variant: $,
2029
- value: y,
2030
- open: H,
2031
- error: f
2032
- }, We = xt(Pe), Ae = {
2033
- ...m.PaperProps,
2034
- ...(io = m.slotProps) == null ? void 0 : io.paper
2035
- }, so = Go();
2036
- return /* @__PURE__ */ ke(a.Fragment, {
2037
- children: [/* @__PURE__ */ w(It, {
1082
+ variant: Fe,
1083
+ value: b,
1084
+ open: ae,
1085
+ error: R
1086
+ }, ye = Do(pe), he = {
1087
+ ...x.PaperProps,
1088
+ ...(De = x.slotProps) == null ? void 0 : De.paper
1089
+ }, Ue = Co();
1090
+ return /* @__PURE__ */ Se(u.Fragment, {
1091
+ children: [/* @__PURE__ */ v(Bo, {
2038
1092
  as: "div",
2039
- ref: M,
2040
- tabIndex: De,
1093
+ ref: ro,
1094
+ tabIndex: ve,
2041
1095
  role: "combobox",
2042
- "aria-controls": so,
2043
- "aria-disabled": g ? "true" : void 0,
2044
- "aria-expanded": H ? "true" : "false",
1096
+ "aria-controls": Ue,
1097
+ "aria-disabled": c ? "true" : void 0,
1098
+ "aria-expanded": ae ? "true" : "false",
2045
1099
  "aria-haspopup": "listbox",
2046
- "aria-label": p,
2047
- "aria-labelledby": [S, ro].filter(Boolean).join(" ") || void 0,
1100
+ "aria-label": i,
1101
+ "aria-labelledby": [y, Ae].filter(Boolean).join(" ") || void 0,
2048
1102
  "aria-describedby": r,
2049
- onKeyDown: Re,
2050
- onMouseDown: g || B ? null : J,
2051
- onBlur: Se,
2052
- onFocus: W,
2053
- ...V,
2054
- ownerState: Pe,
2055
- className: ne(V.className, We.select, u),
2056
- id: ro,
2057
- children: Tt(k) ? (
1103
+ onKeyDown: po,
1104
+ onMouseDown: c || Q ? null : so,
1105
+ onBlur: uo,
1106
+ onFocus: be,
1107
+ ...B,
1108
+ ownerState: pe,
1109
+ className: fe(B.className, ye.select, m),
1110
+ id: Ae,
1111
+ children: Uo(W) ? (
2058
1112
  // notranslate needed while Google Translate will not fix zero-width space issue
2059
- ho || (ho = /* @__PURE__ */ w("span", {
1113
+ qe || (qe = /* @__PURE__ */ v("span", {
2060
1114
  className: "notranslate",
2061
1115
  children: "​"
2062
1116
  }))
2063
- ) : k
2064
- }), /* @__PURE__ */ w(Pt, {
2065
- "aria-invalid": f,
2066
- value: Array.isArray(y) ? y.join(",") : y,
2067
- name: c,
2068
- ref: ge,
1117
+ ) : W
1118
+ }), /* @__PURE__ */ v(Ao, {
1119
+ "aria-invalid": R,
1120
+ value: Array.isArray(b) ? b.join(",") : b,
1121
+ name: I,
1122
+ ref: je,
2069
1123
  "aria-hidden": !0,
2070
- onChange: Oe,
1124
+ onChange: io,
2071
1125
  tabIndex: -1,
2072
- disabled: g,
2073
- className: We.nativeInput,
2074
- autoFocus: d,
2075
- ...z,
2076
- ownerState: Pe
2077
- }), /* @__PURE__ */ w(wt, {
2078
- as: R,
2079
- className: We.icon,
2080
- ownerState: Pe
2081
- }), /* @__PURE__ */ w(wo, {
2082
- id: `menu-${c || ""}`,
2083
- anchorEl: E,
2084
- open: H,
2085
- onClose: te,
1126
+ disabled: c,
1127
+ className: ye.nativeInput,
1128
+ autoFocus: p,
1129
+ ..._,
1130
+ ownerState: pe
1131
+ }), /* @__PURE__ */ v(Wo, {
1132
+ as: w,
1133
+ className: ye.icon,
1134
+ ownerState: pe
1135
+ }), /* @__PURE__ */ v(yo, {
1136
+ id: `menu-${I || ""}`,
1137
+ anchorEl: ne,
1138
+ open: ae,
1139
+ onClose: ao,
2086
1140
  anchorOrigin: {
2087
1141
  vertical: "bottom",
2088
1142
  horizontal: "center"
@@ -2091,30 +1145,30 @@ const xt = (o) => {
2091
1145
  vertical: "top",
2092
1146
  horizontal: "center"
2093
1147
  },
2094
- ...m,
1148
+ ...x,
2095
1149
  MenuListProps: {
2096
- "aria-labelledby": S,
1150
+ "aria-labelledby": y,
2097
1151
  role: "listbox",
2098
- "aria-multiselectable": I ? "true" : void 0,
1152
+ "aria-multiselectable": C ? "true" : void 0,
2099
1153
  disableListWrap: !0,
2100
- id: so,
2101
- ...m.MenuListProps
1154
+ id: Ue,
1155
+ ...x.MenuListProps
2102
1156
  },
2103
1157
  slotProps: {
2104
- ...m.slotProps,
1158
+ ...x.slotProps,
2105
1159
  paper: {
2106
- ...Ae,
1160
+ ...he,
2107
1161
  style: {
2108
- minWidth: no,
2109
- ...Ae != null ? Ae.style : null
1162
+ minWidth: We,
1163
+ ...he != null ? he.style : null
2110
1164
  }
2111
1165
  }
2112
1166
  },
2113
- children: ko
1167
+ children: co
2114
1168
  })]
2115
1169
  });
2116
1170
  });
2117
- process.env.NODE_ENV !== "production" && (Eo.propTypes = {
1171
+ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
2118
1172
  /**
2119
1173
  * @ignore
2120
1174
  */
@@ -2174,7 +1228,7 @@ process.env.NODE_ENV !== "production" && (Eo.propTypes = {
2174
1228
  * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
2175
1229
  * Equivalent to `ref`
2176
1230
  */
2177
- inputRef: ce,
1231
+ inputRef: G,
2178
1232
  /**
2179
1233
  * The ID of an element that acts as an additional label. The Select will
2180
1234
  * be labelled by the additional label and the selected value.
@@ -2258,47 +1312,47 @@ process.env.NODE_ENV !== "production" && (Eo.propTypes = {
2258
1312
  */
2259
1313
  variant: e.oneOf(["standard", "outlined", "filled"])
2260
1314
  });
2261
- const Et = Yo(/* @__PURE__ */ w("path", {
1315
+ const zo = Io(/* @__PURE__ */ v("path", {
2262
1316
  d: "M7 10l5 5 5-5z"
2263
1317
  }), "ArrowDropDown");
2264
- function Mt(o) {
2265
- return Z("MuiFilledInput", o);
1318
+ function Vo(o) {
1319
+ return U("MuiFilledInput", o);
2266
1320
  }
2267
- const ie = {
2268
- ...He,
2269
- ...Q("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
2270
- }, Nt = (o) => {
1321
+ const j = {
1322
+ ...xe,
1323
+ ...D("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
1324
+ }, qo = (o) => {
2271
1325
  const {
2272
1326
  classes: t,
2273
1327
  disableUnderline: n,
2274
1328
  startAdornment: r,
2275
- endAdornment: p,
2276
- size: d,
2277
- hiddenLabel: s,
2278
- multiline: i
2279
- } = o, u = {
2280
- root: ["root", !n && "underline", r && "adornedStart", p && "adornedEnd", d === "small" && `size${de(d)}`, s && "hiddenLabel", i && "multiline"],
1329
+ endAdornment: i,
1330
+ size: p,
1331
+ hiddenLabel: a,
1332
+ multiline: d
1333
+ } = o, m = {
1334
+ root: ["root", !n && "underline", r && "adornedStart", i && "adornedEnd", p === "small" && `size${z(p)}`, a && "hiddenLabel", d && "multiline"],
2281
1335
  input: ["input"]
2282
- }, h = oe(u, Mt, t);
1336
+ }, g = V(m, Vo, t);
2283
1337
  return {
2284
1338
  ...t,
2285
1339
  // forward classes to the InputBase
2286
- ...h
1340
+ ...g
2287
1341
  };
2288
- }, kt = x(Xe, {
2289
- shouldForwardProp: (o) => ee(o) || o === "classes",
1342
+ }, _o = h(we, {
1343
+ shouldForwardProp: (o) => k(o) || o === "classes",
2290
1344
  name: "MuiFilledInput",
2291
1345
  slot: "Root",
2292
1346
  overridesResolver: (o, t) => {
2293
1347
  const {
2294
1348
  ownerState: n
2295
1349
  } = o;
2296
- return [...Ge(o, t), !n.disableUnderline && t.underline];
1350
+ return [...Te(o, t), !n.disableUnderline && t.underline];
2297
1351
  }
2298
- })(se(({
1352
+ })(E(({
2299
1353
  theme: o
2300
1354
  }) => {
2301
- const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", p = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", d = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
1355
+ const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", p = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
2302
1356
  return {
2303
1357
  position: "relative",
2304
1358
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r,
@@ -2309,22 +1363,22 @@ const ie = {
2309
1363
  easing: o.transitions.easing.easeOut
2310
1364
  }),
2311
1365
  "&:hover": {
2312
- backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : p,
1366
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : i,
2313
1367
  // Reset on touch devices, it doesn't add specificity
2314
1368
  "@media (hover: none)": {
2315
1369
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
2316
1370
  }
2317
1371
  },
2318
- [`&.${ie.focused}`]: {
1372
+ [`&.${j.focused}`]: {
2319
1373
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
2320
1374
  },
2321
- [`&.${ie.disabled}`]: {
2322
- backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : d
1375
+ [`&.${j.disabled}`]: {
1376
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : p
2323
1377
  },
2324
1378
  variants: [{
2325
1379
  props: ({
2326
- ownerState: s
2327
- }) => !s.disableUnderline,
1380
+ ownerState: a
1381
+ }) => !a.disableUnderline,
2328
1382
  style: {
2329
1383
  "&::after": {
2330
1384
  left: 0,
@@ -2340,12 +1394,12 @@ const ie = {
2340
1394
  pointerEvents: "none"
2341
1395
  // Transparent to the hover style.
2342
1396
  },
2343
- [`&.${ie.focused}:after`]: {
1397
+ [`&.${j.focused}:after`]: {
2344
1398
  // translateX(0) is a workaround for Safari transform scale bug
2345
1399
  // See https://github.com/mui/material-ui/issues/31766
2346
1400
  transform: "scaleX(1) translateX(0)"
2347
1401
  },
2348
- [`&.${ie.error}`]: {
1402
+ [`&.${j.error}`]: {
2349
1403
  "&::before, &::after": {
2350
1404
  borderBottomColor: (o.vars || o).palette.error.main
2351
1405
  }
@@ -2363,79 +1417,79 @@ const ie = {
2363
1417
  pointerEvents: "none"
2364
1418
  // Transparent to the hover style.
2365
1419
  },
2366
- [`&:hover:not(.${ie.disabled}, .${ie.error}):before`]: {
1420
+ [`&:hover:not(.${j.disabled}, .${j.error}):before`]: {
2367
1421
  borderBottom: `1px solid ${(o.vars || o).palette.text.primary}`
2368
1422
  },
2369
- [`&.${ie.disabled}:before`]: {
1423
+ [`&.${j.disabled}:before`]: {
2370
1424
  borderBottomStyle: "dotted"
2371
1425
  }
2372
1426
  }
2373
- }, ...Object.entries(o.palette).filter(Qe()).map(([s]) => {
2374
- var i;
1427
+ }, ...Object.entries(o.palette).filter(Re()).map(([a]) => {
1428
+ var d;
2375
1429
  return {
2376
1430
  props: {
2377
1431
  disableUnderline: !1,
2378
- color: s
1432
+ color: a
2379
1433
  },
2380
1434
  style: {
2381
1435
  "&::after": {
2382
- borderBottom: `2px solid ${(i = (o.vars || o).palette[s]) == null ? void 0 : i.main}`
1436
+ borderBottom: `2px solid ${(d = (o.vars || o).palette[a]) == null ? void 0 : d.main}`
2383
1437
  }
2384
1438
  }
2385
1439
  };
2386
1440
  }), {
2387
1441
  props: ({
2388
- ownerState: s
2389
- }) => s.startAdornment,
1442
+ ownerState: a
1443
+ }) => a.startAdornment,
2390
1444
  style: {
2391
1445
  paddingLeft: 12
2392
1446
  }
2393
1447
  }, {
2394
1448
  props: ({
2395
- ownerState: s
2396
- }) => s.endAdornment,
1449
+ ownerState: a
1450
+ }) => a.endAdornment,
2397
1451
  style: {
2398
1452
  paddingRight: 12
2399
1453
  }
2400
1454
  }, {
2401
1455
  props: ({
2402
- ownerState: s
2403
- }) => s.multiline,
1456
+ ownerState: a
1457
+ }) => a.multiline,
2404
1458
  style: {
2405
1459
  padding: "25px 12px 8px"
2406
1460
  }
2407
1461
  }, {
2408
1462
  props: ({
2409
- ownerState: s,
2410
- size: i
2411
- }) => s.multiline && i === "small",
1463
+ ownerState: a,
1464
+ size: d
1465
+ }) => a.multiline && d === "small",
2412
1466
  style: {
2413
1467
  paddingTop: 21,
2414
1468
  paddingBottom: 4
2415
1469
  }
2416
1470
  }, {
2417
1471
  props: ({
2418
- ownerState: s
2419
- }) => s.multiline && s.hiddenLabel,
1472
+ ownerState: a
1473
+ }) => a.multiline && a.hiddenLabel,
2420
1474
  style: {
2421
1475
  paddingTop: 16,
2422
1476
  paddingBottom: 17
2423
1477
  }
2424
1478
  }, {
2425
1479
  props: ({
2426
- ownerState: s
2427
- }) => s.multiline && s.hiddenLabel && s.size === "small",
1480
+ ownerState: a
1481
+ }) => a.multiline && a.hiddenLabel && a.size === "small",
2428
1482
  style: {
2429
1483
  paddingTop: 8,
2430
1484
  paddingBottom: 9
2431
1485
  }
2432
1486
  }]
2433
1487
  };
2434
- })), Ft = x(Ye, {
1488
+ })), Ko = h(Ne, {
2435
1489
  name: "MuiFilledInput",
2436
1490
  slot: "Input",
2437
- overridesResolver: Je
2438
- })(se(({
1491
+ overridesResolver: Pe
1492
+ })(E(({
2439
1493
  theme: o
2440
1494
  }) => ({
2441
1495
  paddingTop: 25,
@@ -2513,54 +1567,54 @@ const ie = {
2513
1567
  paddingRight: 0
2514
1568
  }
2515
1569
  }]
2516
- }))), Me = /* @__PURE__ */ a.forwardRef(function(t, n) {
2517
- const r = re({
1570
+ }))), ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
1571
+ const r = H({
2518
1572
  props: t,
2519
1573
  name: "MuiFilledInput"
2520
1574
  }), {
2521
- disableUnderline: p = !1,
2522
- components: d = {},
2523
- componentsProps: s,
2524
- fullWidth: i = !1,
2525
- hiddenLabel: u,
1575
+ disableUnderline: i = !1,
1576
+ components: p = {},
1577
+ componentsProps: a,
1578
+ fullWidth: d = !1,
1579
+ hiddenLabel: m,
2526
1580
  // declare here to prevent spreading to DOM
2527
- inputComponent: h = "input",
2528
- multiline: b = !1,
2529
- slotProps: g,
2530
- slots: C = {},
2531
- type: f = "text",
2532
- ...R
2533
- } = r, F = {
1581
+ inputComponent: g = "input",
1582
+ multiline: f = !1,
1583
+ slotProps: c,
1584
+ slots: O = {},
1585
+ type: R = "text",
1586
+ ...w
1587
+ } = r, T = {
2534
1588
  ...r,
2535
- disableUnderline: p,
2536
- fullWidth: i,
2537
- inputComponent: h,
2538
- multiline: b,
2539
- type: f
2540
- }, S = Nt(r), m = {
1589
+ disableUnderline: i,
1590
+ fullWidth: d,
1591
+ inputComponent: g,
1592
+ multiline: f,
1593
+ type: R
1594
+ }, y = qo(r), x = {
2541
1595
  root: {
2542
- ownerState: F
1596
+ ownerState: T
2543
1597
  },
2544
1598
  input: {
2545
- ownerState: F
1599
+ ownerState: T
2546
1600
  }
2547
- }, I = g ?? s ? Ve(m, g ?? s) : m, c = C.root ?? d.Root ?? kt, v = C.input ?? d.Input ?? Ft;
2548
- return /* @__PURE__ */ w(Ze, {
1601
+ }, C = c ?? a ? Oe(x, c ?? a) : x, I = O.root ?? p.Root ?? _o, N = O.input ?? p.Input ?? Ko;
1602
+ return /* @__PURE__ */ v($e, {
2549
1603
  slots: {
2550
- root: c,
2551
- input: v
1604
+ root: I,
1605
+ input: N
2552
1606
  },
2553
- componentsProps: I,
2554
- fullWidth: i,
2555
- inputComponent: h,
2556
- multiline: b,
1607
+ componentsProps: C,
1608
+ fullWidth: d,
1609
+ inputComponent: g,
1610
+ multiline: f,
2557
1611
  ref: n,
2558
- type: f,
2559
- ...R,
2560
- classes: S
1612
+ type: R,
1613
+ ...w,
1614
+ classes: y
2561
1615
  });
2562
1616
  });
2563
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
1617
+ process.env.NODE_ENV !== "production" && (ue.propTypes = {
2564
1618
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2565
1619
  // │ These PropTypes are generated from the TypeScript type definitions. │
2566
1620
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2662,7 +1716,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
2662
1716
  /**
2663
1717
  * Pass a ref to the `input` element.
2664
1718
  */
2665
- inputRef: ce,
1719
+ inputRef: G,
2666
1720
  /**
2667
1721
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
2668
1722
  * FormControl.
@@ -2752,10 +1806,10 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
2752
1806
  */
2753
1807
  value: e.any
2754
1808
  });
2755
- Me && (Me.muiName = "Input");
2756
- var vo;
2757
- const Lt = x("fieldset", {
2758
- shouldForwardProp: ee
1809
+ ue && (ue.muiName = "Input");
1810
+ var Ke;
1811
+ const Xo = h("fieldset", {
1812
+ shouldForwardProp: k
2759
1813
  })({
2760
1814
  textAlign: "left",
2761
1815
  position: "absolute",
@@ -2771,9 +1825,9 @@ const Lt = x("fieldset", {
2771
1825
  borderWidth: 1,
2772
1826
  overflow: "hidden",
2773
1827
  minWidth: "0%"
2774
- }), jt = x("legend", {
2775
- shouldForwardProp: ee
2776
- })(se(({
1828
+ }), Ho = h("legend", {
1829
+ shouldForwardProp: k
1830
+ })(E(({
2777
1831
  theme: o
2778
1832
  }) => ({
2779
1833
  float: "unset",
@@ -2835,31 +1889,31 @@ const Lt = x("fieldset", {
2835
1889
  }
2836
1890
  }]
2837
1891
  })));
2838
- function Mo(o) {
1892
+ function Je(o) {
2839
1893
  const {
2840
1894
  children: t,
2841
1895
  classes: n,
2842
1896
  className: r,
2843
- label: p,
2844
- notched: d,
2845
- ...s
2846
- } = o, i = p != null && p !== "", u = {
1897
+ label: i,
1898
+ notched: p,
1899
+ ...a
1900
+ } = o, d = i != null && i !== "", m = {
2847
1901
  ...o,
2848
- notched: d,
2849
- withLabel: i
1902
+ notched: p,
1903
+ withLabel: d
2850
1904
  };
2851
- return /* @__PURE__ */ w(Lt, {
1905
+ return /* @__PURE__ */ v(Xo, {
2852
1906
  "aria-hidden": !0,
2853
1907
  className: r,
2854
- ownerState: u,
2855
- ...s,
2856
- children: /* @__PURE__ */ w(jt, {
2857
- ownerState: u,
2858
- children: i ? /* @__PURE__ */ w("span", {
2859
- children: p
1908
+ ownerState: m,
1909
+ ...a,
1910
+ children: /* @__PURE__ */ v(Ho, {
1911
+ ownerState: m,
1912
+ children: d ? /* @__PURE__ */ v("span", {
1913
+ children: i
2860
1914
  }) : (
2861
1915
  // notranslate needed while Google Translate will not fix zero-width space issue
2862
- vo || (vo = /* @__PURE__ */ w("span", {
1916
+ Ke || (Ke = /* @__PURE__ */ v("span", {
2863
1917
  className: "notranslate",
2864
1918
  children: "​"
2865
1919
  }))
@@ -2867,7 +1921,7 @@ function Mo(o) {
2867
1921
  })
2868
1922
  });
2869
1923
  }
2870
- process.env.NODE_ENV !== "production" && (Mo.propTypes = {
1924
+ process.env.NODE_ENV !== "production" && (Je.propTypes = {
2871
1925
  /**
2872
1926
  * The content of the component.
2873
1927
  */
@@ -2893,55 +1947,55 @@ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
2893
1947
  */
2894
1948
  style: e.object
2895
1949
  });
2896
- function $t(o) {
2897
- return Z("MuiOutlinedInput", o);
1950
+ function Go(o) {
1951
+ return U("MuiOutlinedInput", o);
2898
1952
  }
2899
- const X = {
2900
- ...He,
2901
- ...Q("MuiOutlinedInput", ["root", "notchedOutline", "input"])
2902
- }, Dt = (o) => {
1953
+ const P = {
1954
+ ...xe,
1955
+ ...D("MuiOutlinedInput", ["root", "notchedOutline", "input"])
1956
+ }, Yo = (o) => {
2903
1957
  const {
2904
1958
  classes: t
2905
- } = o, r = oe({
1959
+ } = o, r = V({
2906
1960
  root: ["root"],
2907
1961
  notchedOutline: ["notchedOutline"],
2908
1962
  input: ["input"]
2909
- }, $t, t);
1963
+ }, Go, t);
2910
1964
  return {
2911
1965
  ...t,
2912
1966
  // forward classes to the InputBase
2913
1967
  ...r
2914
1968
  };
2915
- }, Wt = x(Xe, {
2916
- shouldForwardProp: (o) => ee(o) || o === "classes",
1969
+ }, Zo = h(we, {
1970
+ shouldForwardProp: (o) => k(o) || o === "classes",
2917
1971
  name: "MuiOutlinedInput",
2918
1972
  slot: "Root",
2919
- overridesResolver: Ge
2920
- })(se(({
1973
+ overridesResolver: Te
1974
+ })(E(({
2921
1975
  theme: o
2922
1976
  }) => {
2923
1977
  const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
2924
1978
  return {
2925
1979
  position: "relative",
2926
1980
  borderRadius: (o.vars || o).shape.borderRadius,
2927
- [`&:hover .${X.notchedOutline}`]: {
1981
+ [`&:hover .${P.notchedOutline}`]: {
2928
1982
  borderColor: (o.vars || o).palette.text.primary
2929
1983
  },
2930
1984
  // Reset on touch devices, it doesn't add specificity
2931
1985
  "@media (hover: none)": {
2932
- [`&:hover .${X.notchedOutline}`]: {
1986
+ [`&:hover .${P.notchedOutline}`]: {
2933
1987
  borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
2934
1988
  }
2935
1989
  },
2936
- [`&.${X.focused} .${X.notchedOutline}`]: {
1990
+ [`&.${P.focused} .${P.notchedOutline}`]: {
2937
1991
  borderWidth: 2
2938
1992
  },
2939
- variants: [...Object.entries(o.palette).filter(Qe()).map(([n]) => ({
1993
+ variants: [...Object.entries(o.palette).filter(Re()).map(([n]) => ({
2940
1994
  props: {
2941
1995
  color: n
2942
1996
  },
2943
1997
  style: {
2944
- [`&.${X.focused} .${X.notchedOutline}`]: {
1998
+ [`&.${P.focused} .${P.notchedOutline}`]: {
2945
1999
  borderColor: (o.vars || o).palette[n].main
2946
2000
  }
2947
2001
  }
@@ -2949,10 +2003,10 @@ const X = {
2949
2003
  props: {},
2950
2004
  // to overide the above style
2951
2005
  style: {
2952
- [`&.${X.error} .${X.notchedOutline}`]: {
2006
+ [`&.${P.error} .${P.notchedOutline}`]: {
2953
2007
  borderColor: (o.vars || o).palette.error.main
2954
2008
  },
2955
- [`&.${X.disabled} .${X.notchedOutline}`]: {
2009
+ [`&.${P.disabled} .${P.notchedOutline}`]: {
2956
2010
  borderColor: (o.vars || o).palette.action.disabled
2957
2011
  }
2958
2012
  }
@@ -2987,22 +2041,22 @@ const X = {
2987
2041
  }
2988
2042
  }]
2989
2043
  };
2990
- })), At = x(Mo, {
2044
+ })), Jo = h(Je, {
2991
2045
  name: "MuiOutlinedInput",
2992
2046
  slot: "NotchedOutline",
2993
2047
  overridesResolver: (o, t) => t.notchedOutline
2994
- })(se(({
2048
+ })(E(({
2995
2049
  theme: o
2996
2050
  }) => {
2997
2051
  const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
2998
2052
  return {
2999
2053
  borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
3000
2054
  };
3001
- })), Bt = x(Ye, {
2055
+ })), Qo = h(Ne, {
3002
2056
  name: "MuiOutlinedInput",
3003
2057
  slot: "Input",
3004
- overridesResolver: Je
3005
- })(se(({
2058
+ overridesResolver: Pe
2059
+ })(E(({
3006
2060
  theme: o
3007
2061
  }) => ({
3008
2062
  padding: "16.5px 14px",
@@ -3055,64 +2109,64 @@ const X = {
3055
2109
  paddingRight: 0
3056
2110
  }
3057
2111
  }]
3058
- }))), Ne = /* @__PURE__ */ a.forwardRef(function(t, n) {
2112
+ }))), ce = /* @__PURE__ */ u.forwardRef(function(t, n) {
3059
2113
  var r;
3060
- const p = re({
2114
+ const i = H({
3061
2115
  props: t,
3062
2116
  name: "MuiOutlinedInput"
3063
2117
  }), {
3064
- components: d = {},
3065
- fullWidth: s = !1,
3066
- inputComponent: i = "input",
3067
- label: u,
3068
- multiline: h = !1,
3069
- notched: b,
3070
- slots: g = {},
3071
- type: C = "text",
3072
- ...f
3073
- } = p, R = Dt(p), F = Ke(), S = _e({
3074
- props: p,
3075
- muiFormControl: F,
2118
+ components: p = {},
2119
+ fullWidth: a = !1,
2120
+ inputComponent: d = "input",
2121
+ label: m,
2122
+ multiline: g = !1,
2123
+ notched: f,
2124
+ slots: c = {},
2125
+ type: O = "text",
2126
+ ...R
2127
+ } = i, w = Yo(i), T = Ie(), y = Ce({
2128
+ props: i,
2129
+ muiFormControl: T,
3076
2130
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
3077
- }), m = {
3078
- ...p,
3079
- color: S.color || "primary",
3080
- disabled: S.disabled,
3081
- error: S.error,
3082
- focused: S.focused,
3083
- formControl: F,
3084
- fullWidth: s,
3085
- hiddenLabel: S.hiddenLabel,
3086
- multiline: h,
3087
- size: S.size,
3088
- type: C
3089
- }, I = g.root ?? d.Root ?? Wt, c = g.input ?? d.Input ?? Bt;
3090
- return /* @__PURE__ */ w(Ze, {
2131
+ }), x = {
2132
+ ...i,
2133
+ color: y.color || "primary",
2134
+ disabled: y.disabled,
2135
+ error: y.error,
2136
+ focused: y.focused,
2137
+ formControl: T,
2138
+ fullWidth: a,
2139
+ hiddenLabel: y.hiddenLabel,
2140
+ multiline: g,
2141
+ size: y.size,
2142
+ type: O
2143
+ }, C = c.root ?? p.Root ?? Zo, I = c.input ?? p.Input ?? Qo;
2144
+ return /* @__PURE__ */ v($e, {
3091
2145
  slots: {
3092
- root: I,
3093
- input: c
2146
+ root: C,
2147
+ input: I
3094
2148
  },
3095
- renderSuffix: (v) => /* @__PURE__ */ w(At, {
3096
- ownerState: m,
3097
- className: R.notchedOutline,
3098
- label: u != null && u !== "" && S.required ? r || (r = /* @__PURE__ */ ke(a.Fragment, {
3099
- children: [u, " ", "*"]
3100
- })) : u,
3101
- notched: typeof b < "u" ? b : !!(v.startAdornment || v.filled || v.focused)
2149
+ renderSuffix: (N) => /* @__PURE__ */ v(Jo, {
2150
+ ownerState: x,
2151
+ className: w.notchedOutline,
2152
+ label: m != null && m !== "" && y.required ? r || (r = /* @__PURE__ */ Se(u.Fragment, {
2153
+ children: [m, " ", "*"]
2154
+ })) : m,
2155
+ notched: typeof f < "u" ? f : !!(N.startAdornment || N.filled || N.focused)
3102
2156
  }),
3103
- fullWidth: s,
3104
- inputComponent: i,
3105
- multiline: h,
2157
+ fullWidth: a,
2158
+ inputComponent: d,
2159
+ multiline: g,
3106
2160
  ref: n,
3107
- type: C,
3108
- ...f,
2161
+ type: O,
2162
+ ...R,
3109
2163
  classes: {
3110
- ...R,
2164
+ ...w,
3111
2165
  notchedOutline: null
3112
2166
  }
3113
2167
  });
3114
2168
  });
3115
- process.env.NODE_ENV !== "production" && (Ne.propTypes = {
2169
+ process.env.NODE_ENV !== "production" && (ce.propTypes = {
3116
2170
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3117
2171
  // │ These PropTypes are generated from the TypeScript type definitions. │
3118
2172
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3190,7 +2244,7 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
3190
2244
  /**
3191
2245
  * Pass a ref to the `input` element.
3192
2246
  */
3193
- inputRef: ce,
2247
+ inputRef: G,
3194
2248
  /**
3195
2249
  * The label of the `input`. It is only used for layout. The actual labelling
3196
2250
  * is handled by `InputLabel`.
@@ -3277,115 +2331,115 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
3277
2331
  */
3278
2332
  value: e.any
3279
2333
  });
3280
- Ne && (Ne.muiName = "Input");
3281
- const Ut = (o) => {
2334
+ ce && (ce.muiName = "Input");
2335
+ const et = (o) => {
3282
2336
  const {
3283
2337
  classes: t
3284
2338
  } = o;
3285
2339
  return t;
3286
- }, oo = {
2340
+ }, Ee = {
3287
2341
  name: "MuiSelect",
3288
2342
  overridesResolver: (o, t) => t.root,
3289
- shouldForwardProp: (o) => ee(o) && o !== "variant",
2343
+ shouldForwardProp: (o) => k(o) && o !== "variant",
3290
2344
  slot: "Root"
3291
- }, zt = x(Ee, oo)(""), Vt = x(Ne, oo)(""), _t = x(Me, oo)(""), No = /* @__PURE__ */ a.forwardRef(function(t, n) {
3292
- const r = re({
2345
+ }, ot = h(de, Ee)(""), tt = h(ce, Ee)(""), nt = h(ue, Ee)(""), Qe = /* @__PURE__ */ u.forwardRef(function(t, n) {
2346
+ const r = H({
3293
2347
  name: "MuiSelect",
3294
2348
  props: t
3295
2349
  }), {
3296
- autoWidth: p = !1,
3297
- children: d,
3298
- classes: s = {},
3299
- className: i,
3300
- defaultOpen: u = !1,
3301
- displayEmpty: h = !1,
3302
- IconComponent: b = Et,
3303
- id: g,
3304
- input: C,
3305
- inputProps: f,
3306
- label: R,
3307
- labelId: F,
3308
- MenuProps: S,
3309
- multiple: m = !1,
3310
- native: I = !1,
3311
- onClose: c,
3312
- onOpen: v,
3313
- open: P,
3314
- renderValue: D,
3315
- SelectDisplayProps: W,
3316
- variant: T = "outlined",
3317
- ...L
3318
- } = r, B = I ? xo : Eo, A = Ke(), V = _e({
2350
+ autoWidth: i = !1,
2351
+ children: p,
2352
+ classes: a = {},
2353
+ className: d,
2354
+ defaultOpen: m = !1,
2355
+ displayEmpty: g = !1,
2356
+ IconComponent: f = zo,
2357
+ id: c,
2358
+ input: O,
2359
+ inputProps: R,
2360
+ label: w,
2361
+ labelId: T,
2362
+ MenuProps: y,
2363
+ multiple: x = !1,
2364
+ native: C = !1,
2365
+ onClose: I,
2366
+ onOpen: N,
2367
+ open: L,
2368
+ renderValue: Y,
2369
+ SelectDisplayProps: be,
2370
+ variant: Z = "outlined",
2371
+ ...J
2372
+ } = r, Q = C ? Ye : Ze, ee = Ie(), B = Ce({
3319
2373
  props: r,
3320
- muiFormControl: A,
2374
+ muiFormControl: ee,
3321
2375
  states: ["variant", "error"]
3322
- }), U = V.variant || T, K = {
2376
+ }), $ = B.variant || Z, q = {
3323
2377
  ...r,
3324
- variant: U,
3325
- classes: s
3326
- }, G = Ut(K), {
3327
- root: $,
3328
- ...z
3329
- } = G, y = C || {
3330
- standard: /* @__PURE__ */ w(zt, {
3331
- ownerState: K
2378
+ variant: $,
2379
+ classes: a
2380
+ }, oe = et(q), {
2381
+ root: Fe,
2382
+ ..._
2383
+ } = oe, b = O || {
2384
+ standard: /* @__PURE__ */ v(ot, {
2385
+ ownerState: q
3332
2386
  }),
3333
- outlined: /* @__PURE__ */ w(Vt, {
3334
- label: R,
3335
- ownerState: K
2387
+ outlined: /* @__PURE__ */ v(tt, {
2388
+ label: w,
2389
+ ownerState: q
3336
2390
  }),
3337
- filled: /* @__PURE__ */ w(_t, {
3338
- ownerState: K
2391
+ filled: /* @__PURE__ */ v(nt, {
2392
+ ownerState: q
3339
2393
  })
3340
- }[U], ae = Fe(n, Jo(y));
3341
- return /* @__PURE__ */ w(a.Fragment, {
3342
- children: /* @__PURE__ */ a.cloneElement(y, {
2394
+ }[$], te = Xe(n, So(b));
2395
+ return /* @__PURE__ */ v(u.Fragment, {
2396
+ children: /* @__PURE__ */ u.cloneElement(b, {
3343
2397
  // Most of the logic is implemented in `SelectInput`.
3344
2398
  // The `Select` component is a simple API wrapper to expose something better to play with.
3345
- inputComponent: B,
2399
+ inputComponent: Q,
3346
2400
  inputProps: {
3347
- children: d,
3348
- error: V.error,
3349
- IconComponent: b,
3350
- variant: U,
2401
+ children: p,
2402
+ error: B.error,
2403
+ IconComponent: f,
2404
+ variant: $,
3351
2405
  type: void 0,
3352
2406
  // We render a select. We can ignore the type provided by the `Input`.
3353
- multiple: m,
3354
- ...I ? {
3355
- id: g
2407
+ multiple: x,
2408
+ ...C ? {
2409
+ id: c
3356
2410
  } : {
3357
- autoWidth: p,
3358
- defaultOpen: u,
3359
- displayEmpty: h,
3360
- labelId: F,
3361
- MenuProps: S,
3362
- onClose: c,
3363
- onOpen: v,
3364
- open: P,
3365
- renderValue: D,
2411
+ autoWidth: i,
2412
+ defaultOpen: m,
2413
+ displayEmpty: g,
2414
+ labelId: T,
2415
+ MenuProps: y,
2416
+ onClose: I,
2417
+ onOpen: N,
2418
+ open: L,
2419
+ renderValue: Y,
3366
2420
  SelectDisplayProps: {
3367
- id: g,
3368
- ...W
2421
+ id: c,
2422
+ ...be
3369
2423
  }
3370
2424
  },
3371
- ...f,
3372
- classes: f ? Ve(z, f.classes) : z,
3373
- ...C ? C.props.inputProps : {}
2425
+ ...R,
2426
+ classes: R ? Oe(_, R.classes) : _,
2427
+ ...O ? O.props.inputProps : {}
3374
2428
  },
3375
- ...(m && I || h) && U === "outlined" ? {
2429
+ ...(x && C || g) && $ === "outlined" ? {
3376
2430
  notched: !0
3377
2431
  } : {},
3378
- ref: ae,
3379
- className: ne(y.props.className, i, G.root),
2432
+ ref: te,
2433
+ className: fe(b.props.className, d, oe.root),
3380
2434
  // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
3381
- ...!C && {
3382
- variant: U
2435
+ ...!O && {
2436
+ variant: $
3383
2437
  },
3384
- ...L
2438
+ ...J
3385
2439
  })
3386
2440
  });
3387
2441
  });
3388
- process.env.NODE_ENV !== "production" && (No.propTypes = {
2442
+ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
3389
2443
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3390
2444
  // │ These PropTypes are generated from the TypeScript type definitions. │
3391
2445
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3532,24 +2586,17 @@ process.env.NODE_ENV !== "production" && (No.propTypes = {
3532
2586
  */
3533
2587
  variant: e.oneOf(["filled", "outlined", "standard"])
3534
2588
  });
3535
- No.muiName = "Select";
2589
+ Qe.muiName = "Select";
3536
2590
  export {
3537
- Me as F,
3538
- Ee as I,
3539
- Oo as L,
3540
- wo as M,
3541
- Ne as O,
3542
- No as S,
3543
- st as a,
3544
- vn as b,
3545
- tt as c,
3546
- it as d,
3547
- ut as e,
3548
- St as f,
3549
- Zo as g,
3550
- yo as h,
3551
- ue as i,
3552
- yn as l,
3553
- On as m,
3554
- me as s
2591
+ ue as F,
2592
+ de as I,
2593
+ ce as O,
2594
+ Qe as S,
2595
+ ko as a,
2596
+ It as b,
2597
+ No as c,
2598
+ Lo as d,
2599
+ Ro as g,
2600
+ K as i,
2601
+ X as s
3555
2602
  };