jcicl 1.0.76 → 1.0.78

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 (76) hide show
  1. package/.chunks/Button.js +7 -6
  2. package/.chunks/ButtonBase.js +2 -1
  3. package/.chunks/CircularProgress.js +9 -8
  4. package/.chunks/DefaultPropsProvider.js +322 -336
  5. package/.chunks/Paper.js +6 -5
  6. package/.chunks/Popper.js +1 -1
  7. package/.chunks/Portal.js +13 -13
  8. package/.chunks/SwitchBase.js +14 -13
  9. package/.chunks/TextField.js +2 -1
  10. package/.chunks/clsx.js +16 -0
  11. package/.chunks/createSvgIcon.js +14 -13
  12. package/.chunks/eye.js +45 -0
  13. package/.chunks/index.js +19 -18
  14. package/AppContainer/AppContainer.js +323 -319
  15. package/Button/Button.js +80 -82
  16. package/Divider/Divider.js +13 -12
  17. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +3 -2
  18. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +39 -39
  19. package/EditableInfoCard/EditableInfoCard.d.ts +1 -1
  20. package/EditableInfoCard/EditableInfoCard.js +25 -25
  21. package/ErrorBoundary/ErrorBoundary.d.ts +5 -5
  22. package/ErrorBoundary/ErrorBoundary.js +21 -19
  23. package/FormComponents/FormComponents.d.ts +1 -2
  24. package/FormContext/createFormContext.js +70 -62
  25. package/FormFields/FormFields.d.ts +1 -1
  26. package/FormFields/FormFields.js +31 -31
  27. package/FormInput/FormInput.d.ts +5 -3
  28. package/FormInput/FormInput.js +10 -8
  29. package/Input/Input.d.ts +6 -1
  30. package/Input/Input.js +35 -100
  31. package/LabeledCheckbox/LabeledCheckbox.js +7 -6
  32. package/LabeledDropdown/LabeledDropdown.d.ts +3 -0
  33. package/LabeledDropdown/LabeledDropdown.js +720 -795
  34. package/LabeledFormattedInput/LabeledFormattedInput.d.ts +23 -0
  35. package/LabeledFormattedInput/LabeledFormattedInput.js +95 -0
  36. package/LabeledFormattedInput/index.d.ts +1 -0
  37. package/LabeledFormattedInput/index.js +4 -0
  38. package/LabeledInput/LabeledInput.js +39 -51
  39. package/LabeledRadio/LabeledRadio.js +7 -6
  40. package/Memo/Memo.js +6 -5
  41. package/Nav/Nav.d.ts +1 -1
  42. package/Pagination/Pagination.d.ts +1 -2
  43. package/Pagination/Pagination.js +25 -24
  44. package/README.md +11 -6
  45. package/Stepper/Stepper.js +4 -3
  46. package/Table/Table.d.ts +7 -5
  47. package/Table/Table.js +5575 -5633
  48. package/Timer/Timer.js +26 -26
  49. package/Toast/Toaster.js +9 -9
  50. package/Tooltip/Tooltip.js +5 -4
  51. package/WelcomeCard/WelcomeCard.d.ts +1 -5
  52. package/WelcomeCard/WelcomeCard.js +45 -101
  53. package/assets/style.css +1 -1
  54. package/assets/tailwind.css +2 -2
  55. package/cn.d.ts +2 -0
  56. package/cn.js +2990 -0
  57. package/constants.d.ts +6 -0
  58. package/constants.js +55 -0
  59. package/cursorPositioning.d.ts +7 -0
  60. package/cursorPositioning.js +13 -0
  61. package/formatters.d.ts +17 -0
  62. package/formatters.js +83 -0
  63. package/inputTypes.d.ts +1 -0
  64. package/inputTypes.js +1 -0
  65. package/logger.d.ts +13 -0
  66. package/logger.js +9 -0
  67. package/maskers.d.ts +6 -0
  68. package/maskers.js +15 -0
  69. package/package.json +2 -1
  70. package/theme.d.ts +1 -0
  71. package/theme.js +9 -8
  72. package/themeUtils.js +58 -79
  73. package/utils.d.ts +8 -18
  74. package/utils.js +39 -89
  75. package/validators.d.ts +5 -0
  76. package/validators.js +12 -0
@@ -1,39 +1,39 @@
1
- import { jsx as T, jsxs as De } from "react/jsx-runtime";
2
- import { n as Yo } from "../.chunks/emotion-styled.browser.esm.js";
3
- import { c as No } from "../.chunks/emotion-react.browser.esm.js";
4
- import Jo from "../theme.js";
5
- import { useThemeColors as Xo } from "../ThemeContext.js";
6
- import * as b from "react";
7
- import { g as po, a as co, s as F, b as d, u as uo, c as J, P as o, d as fo, e as V } from "../.chunks/DefaultPropsProvider.js";
8
- import { i as Io, a as be, b as Eo, f as Ae, A as Qo, T as zo } from "../.chunks/TextField.js";
9
- import { c as Ho } from "../.chunks/createSvgIcon.js";
10
- import { m as ee } from "../.chunks/memoTheme.js";
11
- import { u as Oo } from "../.chunks/useSlot.js";
12
- import { c as Me } from "../.chunks/createSimplePaletteValueFilter.js";
13
- import { B as So } from "../.chunks/ButtonBase.js";
14
- import { c as wo } from "../.chunks/chainPropTypes.js";
1
+ import { jsx as S, jsxs as Be } from "react/jsx-runtime";
2
+ import { cn as Ho } from "../cn.js";
3
+ import io from "../theme.js";
4
+ import { useThemeColors as Jo } from "../ThemeContext.js";
5
+ import * as m from "react";
6
+ import { g as co, a as uo, s as V, c as d, u as fo, P as o, b as go, d as z } from "../.chunks/DefaultPropsProvider.js";
7
+ import { c as Q } from "../.chunks/clsx.js";
8
+ import { i as Oo, a as me, b as Do, f as Ae, A as Xo, T as No } from "../.chunks/TextField.js";
9
+ import { c as Uo } from "../.chunks/createSvgIcon.js";
10
+ import { m as oe } from "../.chunks/memoTheme.js";
11
+ import { u as wo } from "../.chunks/useSlot.js";
12
+ import { c as _e } from "../.chunks/createSimplePaletteValueFilter.js";
13
+ import { B as Po } from "../.chunks/ButtonBase.js";
14
+ import { c as To } from "../.chunks/chainPropTypes.js";
15
15
  import { P as Wo } from "../.chunks/Popper.js";
16
16
  import { P as Ko } from "../.chunks/Paper.js";
17
- import { a as Zo } from "../.chunks/Portal.js";
18
- import { u as Po } from "../.chunks/useControlled.js";
19
- import { b as io, s as et, u as ot } from "../.chunks/TransitionGroupContext.js";
20
- import { i as tt } from "../.chunks/integerPropType.js";
21
- function nt(e, n, a, i, g) {
17
+ import { a as Qo } from "../.chunks/Portal.js";
18
+ import { u as So } from "../.chunks/useControlled.js";
19
+ import { b as so, s as Zo, u as et } from "../.chunks/TransitionGroupContext.js";
20
+ import { i as ot } from "../.chunks/integerPropType.js";
21
+ function tt(e, n, a, i, g) {
22
22
  if (process.env.NODE_ENV === "production")
23
23
  return null;
24
24
  const h = g || n;
25
25
  return typeof e[n] < "u" ? new Error(`The prop \`${h}\` is not supported. Please remove it.`) : null;
26
26
  }
27
- const rt = (e) => {
28
- const n = b.useRef({});
29
- return b.useEffect(() => {
27
+ const nt = (e) => {
28
+ const n = m.useRef({});
29
+ return m.useEffect(() => {
30
30
  n.current = e;
31
31
  }), n.current;
32
32
  };
33
- function Vo(e) {
33
+ function Eo(e) {
34
34
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
35
35
  }
36
- function at(e = {}) {
36
+ function rt(e = {}) {
37
37
  const {
38
38
  ignoreAccents: n = !0,
39
39
  ignoreCase: a = !0,
@@ -43,26 +43,26 @@ function at(e = {}) {
43
43
  trim: x = !1
44
44
  } = e;
45
45
  return (y, {
46
- inputValue: P,
47
- getOptionLabel: C
46
+ inputValue: w,
47
+ getOptionLabel: b
48
48
  }) => {
49
- let m = x ? P.trim() : P;
50
- a && (m = m.toLowerCase()), n && (m = Vo(m));
51
- const w = m ? y.filter((X) => {
52
- let A = (h || C)(X);
53
- return a && (A = A.toLowerCase()), n && (A = Vo(A)), g === "start" ? A.startsWith(m) : A.includes(m);
49
+ let P = x ? w.trim() : w;
50
+ a && (P = P.toLowerCase()), n && (P = Eo(P));
51
+ const R = P ? y.filter((U) => {
52
+ let L = (h || b)(U);
53
+ return a && (L = L.toLowerCase()), n && (L = Eo(L)), g === "start" ? L.startsWith(P) : L.includes(P);
54
54
  }) : y;
55
- return typeof i == "number" ? w.slice(0, i) : w;
55
+ return typeof i == "number" ? R.slice(0, i) : R;
56
56
  };
57
57
  }
58
- const lt = at(), Fo = 5, it = (e) => {
58
+ const at = rt(), zo = 5, lt = (e) => {
59
59
  var n;
60
60
  return e.current !== null && ((n = e.current.parentElement) == null ? void 0 : n.contains(document.activeElement));
61
- }, st = [];
62
- function pt(e) {
61
+ }, it = [];
62
+ function st(e) {
63
63
  const {
64
64
  // eslint-disable-next-line @typescript-eslint/naming-convention
65
- unstable_isActiveElementInListbox: n = it,
65
+ unstable_isActiveElementInListbox: n = lt,
66
66
  // eslint-disable-next-line @typescript-eslint/naming-convention
67
67
  unstable_classNamePrefix: a = "Mui",
68
68
  autoComplete: i = !1,
@@ -70,211 +70,211 @@ function pt(e) {
70
70
  autoSelect: h = !1,
71
71
  blurOnSelect: x = !1,
72
72
  clearOnBlur: y = !e.freeSolo,
73
- clearOnEscape: P = !1,
74
- componentName: C = "useAutocomplete",
75
- defaultValue: m = e.multiple ? st : null,
76
- disableClearable: w = !1,
77
- disableCloseOnSelect: X = !1,
78
- disabled: A,
79
- disabledItemsFocusable: E = !1,
80
- disableListWrap: ue = !1,
81
- filterOptions: Ne = lt,
82
- filterSelectedOptions: me = !1,
83
- freeSolo: le = !1,
84
- getOptionDisabled: H,
85
- getOptionKey: he,
86
- getOptionLabel: Ee = (r) => r.label ?? r,
87
- groupBy: oe,
88
- handleHomeEndKeys: ze = !e.freeSolo,
89
- id: Ve,
90
- includeInputInList: de = !1,
91
- inputValue: ye,
92
- isOptionEqualToValue: W = (r, t) => r === t,
93
- multiple: $ = !1,
94
- onChange: fe,
95
- onClose: _,
96
- onHighlightChange: ve,
97
- onInputChange: q,
98
- onOpen: ie,
99
- open: xe,
100
- openOnFocus: M = !1,
73
+ clearOnEscape: w = !1,
74
+ componentName: b = "useAutocomplete",
75
+ defaultValue: P = e.multiple ? it : null,
76
+ disableClearable: R = !1,
77
+ disableCloseOnSelect: U = !1,
78
+ disabled: L,
79
+ disabledItemsFocusable: T = !1,
80
+ disableListWrap: N = !1,
81
+ filterOptions: te = at,
82
+ filterSelectedOptions: he = !1,
83
+ freeSolo: se = !1,
84
+ getOptionDisabled: W,
85
+ getOptionKey: ye,
86
+ getOptionLabel: De = (r) => r.label ?? r,
87
+ groupBy: ne,
88
+ handleHomeEndKeys: Ne = !e.freeSolo,
89
+ id: Ee,
90
+ includeInputInList: fe = !1,
91
+ inputValue: ve,
92
+ isOptionEqualToValue: K = (r, t) => r === t,
93
+ multiple: I = !1,
94
+ onChange: ge,
95
+ onClose: Y,
96
+ onHighlightChange: xe,
97
+ onInputChange: J,
98
+ onOpen: pe,
99
+ open: Ie,
100
+ openOnFocus: _ = !1,
101
101
  options: Ro,
102
102
  readOnly: Ce = !1,
103
- selectOnFocus: Fe = !e.freeSolo,
104
- value: go
105
- } = e, U = Zo(Ve);
106
- let D = Ee;
107
- D = (r) => {
108
- const t = Ee(r);
103
+ selectOnFocus: ze = !e.freeSolo,
104
+ value: bo
105
+ } = e, H = Qo(Ee);
106
+ let B = De;
107
+ B = (r) => {
108
+ const t = De(r);
109
109
  if (typeof t != "string") {
110
110
  if (process.env.NODE_ENV !== "production") {
111
111
  const l = t === void 0 ? "undefined" : `${typeof t} (${t})`;
112
- console.error(`MUI: The \`getOptionLabel\` method of ${C} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
112
+ console.error(`MUI: The \`getOptionLabel\` method of ${b} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
113
113
  }
114
114
  return String(t);
115
115
  }
116
116
  return t;
117
117
  };
118
- const je = b.useRef(!1), Be = b.useRef(!0), R = b.useRef(null), K = b.useRef(null), [Ue, Lo] = b.useState(null), [G, Xe] = b.useState(-1), bo = g ? 0 : -1, z = b.useRef(bo), [s, Ao] = Po({
119
- controlled: go,
120
- default: m,
121
- name: C
122
- }), [S, $e] = Po({
123
- controlled: ye,
118
+ const Ve = m.useRef(!1), Fe = m.useRef(!0), M = m.useRef(null), q = m.useRef(null), [je, Lo] = m.useState(null), [G, Xe] = m.useState(-1), mo = g ? 0 : -1, E = m.useRef(mo), [s, Ao] = So({
119
+ controlled: bo,
120
+ default: P,
121
+ name: b
122
+ }), [O, $e] = So({
123
+ controlled: ve,
124
124
  default: "",
125
- name: C,
125
+ name: b,
126
126
  state: "inputValue"
127
- }), [Ie, He] = b.useState(!1), Oe = b.useCallback((r, t, l) => {
128
- if (!($ ? s.length < t.length : t !== null) && !y)
127
+ }), [Oe, He] = m.useState(!1), we = m.useCallback((r, t, l) => {
128
+ if (!(I ? s.length < t.length : t !== null) && !y)
129
129
  return;
130
130
  let c;
131
- if ($)
131
+ if (I)
132
132
  c = "";
133
133
  else if (t == null)
134
134
  c = "";
135
135
  else {
136
- const O = D(t);
137
- c = typeof O == "string" ? O : "";
136
+ const $ = B(t);
137
+ c = typeof $ == "string" ? $ : "";
138
138
  }
139
- S !== c && ($e(c), q && q(r, c, l));
140
- }, [D, S, $, q, $e, y, s]), [se, Qe] = Po({
141
- controlled: xe,
139
+ O !== c && ($e(c), J && J(r, c, l));
140
+ }, [B, O, I, J, $e, y, s]), [ce, Qe] = So({
141
+ controlled: Ie,
142
142
  default: !1,
143
- name: C,
143
+ name: b,
144
144
  state: "open"
145
- }), [Ze, mo] = b.useState(!0), Pe = !$ && s != null && S === D(s), j = se && !Ce, k = j ? Ne(
146
- Ro.filter((r) => !(me && ($ ? s : [s]).some((t) => t !== null && W(r, t)))),
145
+ }), [Ze, ho] = m.useState(!0), Se = !I && s != null && O === B(s), F = ce && !Ce, k = F ? te(
146
+ Ro.filter((r) => !(he && (I ? s : [s]).some((t) => t !== null && K(r, t)))),
147
147
  // we use the empty string to manipulate `filterOptions` to not filter any options
148
148
  // i.e. the filter predicate always returns true
149
149
  {
150
- inputValue: Pe && Ze ? "" : S,
151
- getOptionLabel: D
150
+ inputValue: Se && Ze ? "" : O,
151
+ getOptionLabel: B
152
152
  }
153
- ) : [], Q = rt({
153
+ ) : [], Z = nt({
154
154
  filteredOptions: k,
155
155
  value: s,
156
- inputValue: S
156
+ inputValue: O
157
157
  });
158
- b.useEffect(() => {
159
- const r = s !== Q.value;
160
- Ie && !r || le && !r || Oe(null, s, "reset");
161
- }, [s, Oe, Ie, Q.value, le]);
162
- const We = se && k.length > 0 && !Ce, Se = io((r) => {
163
- r === -1 ? R.current.focus() : Ue.querySelector(`[data-tag-index="${r}"]`).focus();
158
+ m.useEffect(() => {
159
+ const r = s !== Z.value;
160
+ Oe && !r || se && !r || we(null, s, "reset");
161
+ }, [s, we, Oe, Z.value, se]);
162
+ const Ue = ce && k.length > 0 && !Ce, Pe = so((r) => {
163
+ r === -1 ? M.current.focus() : je.querySelector(`[data-tag-index="${r}"]`).focus();
164
164
  });
165
- b.useEffect(() => {
166
- $ && G > s.length - 1 && (Xe(-1), Se(-1));
167
- }, [s, $, G, Se]);
165
+ m.useEffect(() => {
166
+ I && G > s.length - 1 && (Xe(-1), Pe(-1));
167
+ }, [s, I, G, Pe]);
168
168
  function eo(r, t) {
169
- if (!K.current || r < 0 || r >= k.length)
169
+ if (!q.current || r < 0 || r >= k.length)
170
170
  return -1;
171
171
  let l = r;
172
172
  for (; ; ) {
173
- const p = K.current.querySelector(`[data-option-index="${l}"]`), c = E ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
173
+ const p = q.current.querySelector(`[data-option-index="${l}"]`), c = T ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
174
174
  if (p && p.hasAttribute("tabindex") && !c)
175
175
  return l;
176
176
  if (t === "next" ? l = (l + 1) % k.length : l = (l - 1 + k.length) % k.length, l === r)
177
177
  return -1;
178
178
  }
179
179
  }
180
- const te = io(({
180
+ const re = so(({
181
181
  event: r,
182
182
  index: t,
183
183
  reason: l = "auto"
184
184
  }) => {
185
- if (z.current = t, t === -1 ? R.current.removeAttribute("aria-activedescendant") : R.current.setAttribute("aria-activedescendant", `${U}-option-${t}`), ve && ve(r, t === -1 ? null : k[t], l), !K.current)
185
+ if (E.current = t, t === -1 ? M.current.removeAttribute("aria-activedescendant") : M.current.setAttribute("aria-activedescendant", `${H}-option-${t}`), xe && xe(r, t === -1 ? null : k[t], l), !q.current)
186
186
  return;
187
- const p = K.current.querySelector(`[role="option"].${a}-focused`);
187
+ const p = q.current.querySelector(`[role="option"].${a}-focused`);
188
188
  p && (p.classList.remove(`${a}-focused`), p.classList.remove(`${a}-focusVisible`));
189
- let c = K.current;
190
- if (K.current.getAttribute("role") !== "listbox" && (c = K.current.parentElement.querySelector('[role="listbox"]')), !c)
189
+ let c = q.current;
190
+ if (q.current.getAttribute("role") !== "listbox" && (c = q.current.parentElement.querySelector('[role="listbox"]')), !c)
191
191
  return;
192
192
  if (t === -1) {
193
193
  c.scrollTop = 0;
194
194
  return;
195
195
  }
196
- const O = K.current.querySelector(`[data-option-index="${t}"]`);
197
- if (O && (O.classList.add(`${a}-focused`), l === "keyboard" && O.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
198
- const I = O, B = c.clientHeight + c.scrollTop, Le = I.offsetTop + I.offsetHeight;
199
- Le > B ? c.scrollTop = Le - c.clientHeight : I.offsetTop - I.offsetHeight * (oe ? 1.3 : 0) < c.scrollTop && (c.scrollTop = I.offsetTop - I.offsetHeight * (oe ? 1.3 : 0));
196
+ const $ = q.current.querySelector(`[data-option-index="${t}"]`);
197
+ if ($ && ($.classList.add(`${a}-focused`), l === "keyboard" && $.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
198
+ const C = $, j = c.clientHeight + c.scrollTop, Le = C.offsetTop + C.offsetHeight;
199
+ Le > j ? c.scrollTop = Le - c.clientHeight : C.offsetTop - C.offsetHeight * (ne ? 1.3 : 0) < c.scrollTop && (c.scrollTop = C.offsetTop - C.offsetHeight * (ne ? 1.3 : 0));
200
200
  }
201
- }), Y = io(({
201
+ }), X = so(({
202
202
  event: r,
203
203
  diff: t,
204
204
  direction: l = "next",
205
205
  reason: p = "auto"
206
206
  }) => {
207
- if (!j)
207
+ if (!F)
208
208
  return;
209
- const O = eo((() => {
210
- const I = k.length - 1;
209
+ const $ = eo((() => {
210
+ const C = k.length - 1;
211
211
  if (t === "reset")
212
- return bo;
212
+ return mo;
213
213
  if (t === "start")
214
214
  return 0;
215
215
  if (t === "end")
216
- return I;
217
- const B = z.current + t;
218
- return B < 0 ? B === -1 && de ? -1 : ue && z.current !== -1 || Math.abs(t) > 1 ? 0 : I : B > I ? B === I + 1 && de ? -1 : ue || Math.abs(t) > 1 ? I : 0 : B;
216
+ return C;
217
+ const j = E.current + t;
218
+ return j < 0 ? j === -1 && fe ? -1 : N && E.current !== -1 || Math.abs(t) > 1 ? 0 : C : j > C ? j === C + 1 && fe ? -1 : N || Math.abs(t) > 1 ? C : 0 : j;
219
219
  })(), l);
220
- if (te({
221
- index: O,
220
+ if (re({
221
+ index: $,
222
222
  reason: p,
223
223
  event: r
224
224
  }), i && t !== "reset")
225
- if (O === -1)
226
- R.current.value = S;
225
+ if ($ === -1)
226
+ M.current.value = O;
227
227
  else {
228
- const I = D(k[O]);
229
- R.current.value = I, I.toLowerCase().indexOf(S.toLowerCase()) === 0 && S.length > 0 && R.current.setSelectionRange(S.length, I.length);
228
+ const C = B(k[$]);
229
+ M.current.value = C, C.toLowerCase().indexOf(O.toLowerCase()) === 0 && O.length > 0 && M.current.setSelectionRange(O.length, C.length);
230
230
  }
231
- }), ho = () => {
231
+ }), yo = () => {
232
232
  const r = (t, l) => {
233
- const p = t ? D(t) : "", c = l ? D(l) : "";
233
+ const p = t ? B(t) : "", c = l ? B(l) : "";
234
234
  return p === c;
235
235
  };
236
- if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== k.length && Q.inputValue === S && ($ ? s.length === Q.value.length && Q.value.every((t, l) => D(s[l]) === D(t)) : r(Q.value, s))) {
237
- const t = Q.filteredOptions[z.current];
236
+ if (E.current !== -1 && Z.filteredOptions && Z.filteredOptions.length !== k.length && Z.inputValue === O && (I ? s.length === Z.value.length && Z.value.every((t, l) => B(s[l]) === B(t)) : r(Z.value, s))) {
237
+ const t = Z.filteredOptions[E.current];
238
238
  if (t)
239
- return k.findIndex((l) => D(l) === D(t));
239
+ return k.findIndex((l) => B(l) === B(t));
240
240
  }
241
241
  return -1;
242
- }, Ke = b.useCallback(() => {
243
- if (!j)
242
+ }, We = m.useCallback(() => {
243
+ if (!F)
244
244
  return;
245
- const r = ho();
245
+ const r = yo();
246
246
  if (r !== -1) {
247
- z.current = r;
247
+ E.current = r;
248
248
  return;
249
249
  }
250
- const t = $ ? s[0] : s;
250
+ const t = I ? s[0] : s;
251
251
  if (k.length === 0 || t == null) {
252
- Y({
252
+ X({
253
253
  diff: "reset"
254
254
  });
255
255
  return;
256
256
  }
257
- if (K.current) {
257
+ if (q.current) {
258
258
  if (t != null) {
259
- const l = k[z.current];
260
- if ($ && l && s.findIndex((c) => W(l, c)) !== -1)
259
+ const l = k[E.current];
260
+ if (I && l && s.findIndex((c) => K(l, c)) !== -1)
261
261
  return;
262
- const p = k.findIndex((c) => W(c, t));
263
- p === -1 ? Y({
262
+ const p = k.findIndex((c) => K(c, t));
263
+ p === -1 ? X({
264
264
  diff: "reset"
265
- }) : te({
265
+ }) : re({
266
266
  index: p
267
267
  });
268
268
  return;
269
269
  }
270
- if (z.current >= k.length - 1) {
271
- te({
270
+ if (E.current >= k.length - 1) {
271
+ re({
272
272
  index: k.length - 1
273
273
  });
274
274
  return;
275
275
  }
276
- te({
277
- index: z.current
276
+ re({
277
+ index: E.current
278
278
  });
279
279
  }
280
280
  }, [
@@ -282,76 +282,76 @@ function pt(e) {
282
282
  k.length,
283
283
  // Don't sync the highlighted index with the value when multiple
284
284
  // eslint-disable-next-line react-hooks/exhaustive-deps
285
- $ ? !1 : s,
286
- me,
287
- Y,
288
- te,
289
- j,
290
- S,
291
- $
292
- ]), yo = io((r) => {
293
- et(K, r), r && Ke();
285
+ I ? !1 : s,
286
+ he,
287
+ X,
288
+ re,
289
+ F,
290
+ O,
291
+ I
292
+ ]), vo = so((r) => {
293
+ Zo(q, r), r && We();
294
294
  });
295
- process.env.NODE_ENV !== "production" && b.useEffect(() => {
296
- (!R.current || R.current.nodeName !== "INPUT") && (R.current && R.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${C} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
297
- `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${R.current} while an HTMLInputElement was expected.`, `Instead, ${C} expects an input element.`, "", C === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
295
+ process.env.NODE_ENV !== "production" && m.useEffect(() => {
296
+ (!M.current || M.current.nodeName !== "INPUT") && (M.current && M.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${b} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
297
+ `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${M.current} while an HTMLInputElement was expected.`, `Instead, ${b} expects an input element.`, "", b === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
298
298
  `)));
299
- }, [C]), b.useEffect(() => {
300
- Ke();
301
- }, [Ke]);
302
- const ne = (r) => {
303
- se || (Qe(!0), mo(!0), ie && ie(r));
304
- }, re = (r, t) => {
305
- se && (Qe(!1), _ && _(r, t));
306
- }, pe = (r, t, l, p) => {
307
- if ($) {
308
- if (s.length === t.length && s.every((c, O) => c === t[O]))
299
+ }, [b]), m.useEffect(() => {
300
+ We();
301
+ }, [We]);
302
+ const ae = (r) => {
303
+ ce || (Qe(!0), ho(!0), pe && pe(r));
304
+ }, le = (r, t) => {
305
+ ce && (Qe(!1), Y && Y(r, t));
306
+ }, ue = (r, t, l, p) => {
307
+ if (I) {
308
+ if (s.length === t.length && s.every((c, $) => c === t[$]))
309
309
  return;
310
310
  } else if (s === t)
311
311
  return;
312
- fe && fe(r, t, l, p), Ao(t);
313
- }, we = b.useRef(!1), ge = (r, t, l = "selectOption", p = "options") => {
314
- let c = l, O = t;
315
- if ($) {
316
- if (O = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
317
- const B = O.filter((Le) => W(t, Le));
318
- B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${C} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${B.length} matches.`].join(`
312
+ ge && ge(r, t, l, p), Ao(t);
313
+ }, Te = m.useRef(!1), be = (r, t, l = "selectOption", p = "options") => {
314
+ let c = l, $ = t;
315
+ if (I) {
316
+ if ($ = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
317
+ const j = $.filter((Le) => K(t, Le));
318
+ j.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${b} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${j.length} matches.`].join(`
319
319
  `));
320
320
  }
321
- const I = O.findIndex((B) => W(t, B));
322
- I === -1 ? O.push(t) : p !== "freeSolo" && (O.splice(I, 1), c = "removeOption");
321
+ const C = $.findIndex((j) => K(t, j));
322
+ C === -1 ? $.push(t) : p !== "freeSolo" && ($.splice(C, 1), c = "removeOption");
323
323
  }
324
- Oe(r, O, c), pe(r, O, c, {
324
+ we(r, $, c), ue(r, $, c, {
325
325
  option: t
326
- }), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (x === !0 || x === "touch" && we.current || x === "mouse" && !we.current) && R.current.blur();
326
+ }), !U && (!r || !r.ctrlKey && !r.metaKey) && le(r, c), (x === !0 || x === "touch" && Te.current || x === "mouse" && !Te.current) && M.current.blur();
327
327
  };
328
- function Te(r, t) {
328
+ function ke(r, t) {
329
329
  if (r === -1)
330
330
  return -1;
331
331
  let l = r;
332
332
  for (; ; ) {
333
333
  if (t === "next" && l === s.length || t === "previous" && l === -1)
334
334
  return -1;
335
- const p = Ue.querySelector(`[data-tag-index="${l}"]`);
335
+ const p = je.querySelector(`[data-tag-index="${l}"]`);
336
336
  if (!p || !p.hasAttribute("tabindex") || p.disabled || p.getAttribute("aria-disabled") === "true")
337
337
  l += t === "next" ? 1 : -1;
338
338
  else
339
339
  return l;
340
340
  }
341
341
  }
342
- const Ge = (r, t) => {
343
- if (!$)
342
+ const Ke = (r, t) => {
343
+ if (!I)
344
344
  return;
345
- S === "" && re(r, "toggleInput");
345
+ O === "" && le(r, "toggleInput");
346
346
  let l = G;
347
- G === -1 ? S === "" && t === "previous" && (l = s.length - 1) : (l += t === "next" ? 1 : -1, l < 0 && (l = 0), l === s.length && (l = -1)), l = Te(l, t), Xe(l), Se(l);
347
+ G === -1 ? O === "" && t === "previous" && (l = s.length - 1) : (l += t === "next" ? 1 : -1, l < 0 && (l = 0), l === s.length && (l = -1)), l = ke(l, t), Xe(l), Pe(l);
348
348
  }, oo = (r) => {
349
- je.current = !0, $e(""), q && q(r, "", "clear"), pe(r, $ ? [] : null, "clear");
350
- }, ke = (r) => (t) => {
351
- if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1), Se(-1)), t.which !== 229))
349
+ Ve.current = !0, $e(""), J && J(r, "", "clear"), ue(r, I ? [] : null, "clear");
350
+ }, Me = (r) => (t) => {
351
+ if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1), Pe(-1)), t.which !== 229))
352
352
  switch (t.key) {
353
353
  case "Home":
354
- j && ze && (t.preventDefault(), Y({
354
+ F && Ne && (t.preventDefault(), X({
355
355
  diff: "start",
356
356
  direction: "next",
357
357
  reason: "keyboard",
@@ -359,7 +359,7 @@ function pt(e) {
359
359
  }));
360
360
  break;
361
361
  case "End":
362
- j && ze && (t.preventDefault(), Y({
362
+ F && Ne && (t.preventDefault(), X({
363
363
  diff: "end",
364
364
  direction: "previous",
365
365
  reason: "keyboard",
@@ -367,161 +367,161 @@ function pt(e) {
367
367
  }));
368
368
  break;
369
369
  case "PageUp":
370
- t.preventDefault(), Y({
371
- diff: -Fo,
370
+ t.preventDefault(), X({
371
+ diff: -zo,
372
372
  direction: "previous",
373
373
  reason: "keyboard",
374
374
  event: t
375
- }), ne(t);
375
+ }), ae(t);
376
376
  break;
377
377
  case "PageDown":
378
- t.preventDefault(), Y({
379
- diff: Fo,
378
+ t.preventDefault(), X({
379
+ diff: zo,
380
380
  direction: "next",
381
381
  reason: "keyboard",
382
382
  event: t
383
- }), ne(t);
383
+ }), ae(t);
384
384
  break;
385
385
  case "ArrowDown":
386
- t.preventDefault(), Y({
386
+ t.preventDefault(), X({
387
387
  diff: 1,
388
388
  direction: "next",
389
389
  reason: "keyboard",
390
390
  event: t
391
- }), ne(t);
391
+ }), ae(t);
392
392
  break;
393
393
  case "ArrowUp":
394
- t.preventDefault(), Y({
394
+ t.preventDefault(), X({
395
395
  diff: -1,
396
396
  direction: "previous",
397
397
  reason: "keyboard",
398
398
  event: t
399
- }), ne(t);
399
+ }), ae(t);
400
400
  break;
401
401
  case "ArrowLeft":
402
- Ge(t, "previous");
402
+ Ke(t, "previous");
403
403
  break;
404
404
  case "ArrowRight":
405
- Ge(t, "next");
405
+ Ke(t, "next");
406
406
  break;
407
407
  case "Enter":
408
- if (z.current !== -1 && j) {
409
- const l = k[z.current], p = H ? H(l) : !1;
408
+ if (E.current !== -1 && F) {
409
+ const l = k[E.current], p = W ? W(l) : !1;
410
410
  if (t.preventDefault(), p)
411
411
  return;
412
- ge(t, l, "selectOption"), i && R.current.setSelectionRange(R.current.value.length, R.current.value.length);
413
- } else le && S !== "" && Pe === !1 && ($ && t.preventDefault(), ge(t, S, "createOption", "freeSolo"));
412
+ be(t, l, "selectOption"), i && M.current.setSelectionRange(M.current.value.length, M.current.value.length);
413
+ } else se && O !== "" && Se === !1 && (I && t.preventDefault(), be(t, O, "createOption", "freeSolo"));
414
414
  break;
415
415
  case "Escape":
416
- j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : P && (S !== "" || $ && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
416
+ F ? (t.preventDefault(), t.stopPropagation(), le(t, "escape")) : w && (O !== "" || I && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
417
417
  break;
418
418
  case "Backspace":
419
- if ($ && !Ce && S === "" && s.length > 0) {
419
+ if (I && !Ce && O === "" && s.length > 0) {
420
420
  const l = G === -1 ? s.length - 1 : G, p = s.slice();
421
- p.splice(l, 1), pe(t, p, "removeOption", {
421
+ p.splice(l, 1), ue(t, p, "removeOption", {
422
422
  option: s[l]
423
423
  });
424
424
  }
425
425
  break;
426
426
  case "Delete":
427
- if ($ && !Ce && S === "" && s.length > 0 && G !== -1) {
427
+ if (I && !Ce && O === "" && s.length > 0 && G !== -1) {
428
428
  const l = G, p = s.slice();
429
- p.splice(l, 1), pe(t, p, "removeOption", {
429
+ p.splice(l, 1), ue(t, p, "removeOption", {
430
430
  option: s[l]
431
431
  });
432
432
  }
433
433
  break;
434
434
  }
435
- }, vo = (r) => {
436
- He(!0), M && !je.current && ne(r);
435
+ }, xo = (r) => {
436
+ He(!0), _ && !Ve.current && ae(r);
437
437
  }, to = (r) => {
438
- if (n(K)) {
439
- R.current.focus();
438
+ if (n(q)) {
439
+ M.current.focus();
440
440
  return;
441
441
  }
442
- He(!1), Be.current = !0, je.current = !1, h && z.current !== -1 && j ? ge(r, k[z.current], "blur") : h && le && S !== "" ? ge(r, S, "blur", "freeSolo") : y && Oe(r, s, "blur"), re(r, "blur");
442
+ He(!1), Fe.current = !0, Ve.current = !1, h && E.current !== -1 && F ? be(r, k[E.current], "blur") : h && se && O !== "" ? be(r, O, "blur", "freeSolo") : y && we(r, s, "blur"), le(r, "blur");
443
443
  }, Re = (r) => {
444
444
  const t = r.target.value;
445
- S !== t && ($e(t), mo(!1), q && q(r, t, "input")), t === "" ? !w && !$ && pe(r, null, "clear") : ne(r);
446
- }, _e = (r) => {
445
+ O !== t && ($e(t), ho(!1), J && J(r, t, "input")), t === "" ? !R && !I && ue(r, null, "clear") : ae(r);
446
+ }, qe = (r) => {
447
447
  const t = Number(r.currentTarget.getAttribute("data-option-index"));
448
- z.current !== t && te({
448
+ E.current !== t && re({
449
449
  event: r,
450
450
  index: t,
451
451
  reason: "mouse"
452
452
  });
453
- }, qe = (r) => {
454
- te({
453
+ }, Ge = (r) => {
454
+ re({
455
455
  event: r,
456
456
  index: Number(r.currentTarget.getAttribute("data-option-index")),
457
457
  reason: "touch"
458
- }), we.current = !0;
459
- }, xo = (r) => {
458
+ }), Te.current = !0;
459
+ }, Io = (r) => {
460
460
  const t = Number(r.currentTarget.getAttribute("data-option-index"));
461
- ge(r, k[t], "selectOption"), we.current = !1;
461
+ be(r, k[t], "selectOption"), Te.current = !1;
462
462
  }, Co = (r) => (t) => {
463
463
  const l = s.slice();
464
- l.splice(r, 1), pe(t, l, "removeOption", {
464
+ l.splice(r, 1), ue(t, l, "removeOption", {
465
465
  option: s[r]
466
466
  });
467
467
  }, no = (r) => {
468
- se ? re(r, "toggleInput") : ne(r);
469
- }, Mo = (r) => {
470
- r.currentTarget.contains(r.target) && r.target.getAttribute("id") !== U && r.preventDefault();
468
+ ce ? le(r, "toggleInput") : ae(r);
469
+ }, _o = (r) => {
470
+ r.currentTarget.contains(r.target) && r.target.getAttribute("id") !== H && r.preventDefault();
471
471
  }, Ye = (r) => {
472
- r.currentTarget.contains(r.target) && (R.current.focus(), Fe && Be.current && R.current.selectionEnd - R.current.selectionStart === 0 && R.current.select(), Be.current = !1);
473
- }, N = (r) => {
474
- !A && (S === "" || !se) && (no(r), r.stopPropagation());
472
+ r.currentTarget.contains(r.target) && (M.current.focus(), ze && Fe.current && M.current.selectionEnd - M.current.selectionStart === 0 && M.current.select(), Fe.current = !1);
473
+ }, D = (r) => {
474
+ !L && (O === "" || !ce) && (no(r), r.stopPropagation());
475
475
  };
476
- let L = le && S.length > 0;
477
- L = L || ($ ? s.length > 0 : s !== null);
478
- let ae = k;
479
- if (oe) {
476
+ let A = se && O.length > 0;
477
+ A = A || (I ? s.length > 0 : s !== null);
478
+ let ie = k;
479
+ if (ne) {
480
480
  const r = /* @__PURE__ */ new Map();
481
481
  let t = !1;
482
- ae = k.reduce((l, p, c) => {
483
- const O = oe(p);
484
- return l.length > 0 && l[l.length - 1].group === O ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get(O) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${C} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set(O, !0)), l.push({
482
+ ie = k.reduce((l, p, c) => {
483
+ const $ = ne(p);
484
+ return l.length > 0 && l[l.length - 1].group === $ ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get($) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${b} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set($, !0)), l.push({
485
485
  key: c,
486
486
  index: c,
487
- group: O,
487
+ group: $,
488
488
  options: [p]
489
489
  })), l;
490
490
  }, []);
491
491
  }
492
- return A && Ie && to(), {
492
+ return L && Oe && to(), {
493
493
  getRootProps: (r = {}) => ({
494
- "aria-owns": We ? `${U}-listbox` : null,
494
+ "aria-owns": Ue ? `${H}-listbox` : null,
495
495
  ...r,
496
- onKeyDown: ke(r),
497
- onMouseDown: Mo,
496
+ onKeyDown: Me(r),
497
+ onMouseDown: _o,
498
498
  onClick: Ye
499
499
  }),
500
500
  getInputLabelProps: () => ({
501
- id: `${U}-label`,
502
- htmlFor: U
501
+ id: `${H}-label`,
502
+ htmlFor: H
503
503
  }),
504
504
  getInputProps: () => ({
505
- id: U,
506
- value: S,
505
+ id: H,
506
+ value: O,
507
507
  onBlur: to,
508
- onFocus: vo,
508
+ onFocus: xo,
509
509
  onChange: Re,
510
- onMouseDown: N,
510
+ onMouseDown: D,
511
511
  // if open then this is handled imperatively so don't let react override
512
512
  // only have an opinion about this when closed
513
- "aria-activedescendant": j ? "" : null,
513
+ "aria-activedescendant": F ? "" : null,
514
514
  "aria-autocomplete": i ? "both" : "list",
515
- "aria-controls": We ? `${U}-listbox` : void 0,
516
- "aria-expanded": We,
515
+ "aria-controls": Ue ? `${H}-listbox` : void 0,
516
+ "aria-expanded": Ue,
517
517
  // Disable browser's suggestion that might overlap with the popup.
518
518
  // Handle autocomplete but not autofill.
519
519
  autoComplete: "off",
520
- ref: R,
520
+ ref: M,
521
521
  autoCapitalize: "none",
522
522
  spellCheck: "false",
523
523
  role: "combobox",
524
- disabled: A
524
+ disabled: L
525
525
  }),
526
526
  getClearProps: () => ({
527
527
  tabIndex: -1,
@@ -546,9 +546,9 @@ function pt(e) {
546
546
  }),
547
547
  getListboxProps: () => ({
548
548
  role: "listbox",
549
- id: `${U}-listbox`,
550
- "aria-labelledby": `${U}-label`,
551
- ref: yo,
549
+ id: `${H}-listbox`,
550
+ "aria-labelledby": `${H}-label`,
551
+ ref: vo,
552
552
  onMouseDown: (r) => {
553
553
  r.preventDefault();
554
554
  }
@@ -557,38 +557,38 @@ function pt(e) {
557
557
  index: r,
558
558
  option: t
559
559
  }) => {
560
- const l = ($ ? s : [s]).some((c) => c != null && W(t, c)), p = H ? H(t) : !1;
560
+ const l = (I ? s : [s]).some((c) => c != null && K(t, c)), p = W ? W(t) : !1;
561
561
  return {
562
- key: (he == null ? void 0 : he(t)) ?? D(t),
562
+ key: (ye == null ? void 0 : ye(t)) ?? B(t),
563
563
  tabIndex: -1,
564
564
  role: "option",
565
- id: `${U}-option-${r}`,
566
- onMouseMove: _e,
567
- onClick: xo,
568
- onTouchStart: qe,
565
+ id: `${H}-option-${r}`,
566
+ onMouseMove: qe,
567
+ onClick: Io,
568
+ onTouchStart: Ge,
569
569
  "data-option-index": r,
570
570
  "aria-disabled": p,
571
571
  "aria-selected": l
572
572
  };
573
573
  },
574
- id: U,
575
- inputValue: S,
574
+ id: H,
575
+ inputValue: O,
576
576
  value: s,
577
- dirty: L,
578
- expanded: j && Ue,
579
- popupOpen: j,
580
- focused: Ie || G !== -1,
581
- anchorEl: Ue,
577
+ dirty: A,
578
+ expanded: F && je,
579
+ popupOpen: F,
580
+ focused: Oe || G !== -1,
581
+ anchorEl: je,
582
582
  setAnchorEl: Lo,
583
583
  focusedTag: G,
584
- groupedOptions: ae
584
+ groupedOptions: ie
585
585
  };
586
586
  }
587
- function ct(e) {
588
- return po("MuiListSubheader", e);
587
+ function pt(e) {
588
+ return co("MuiListSubheader", e);
589
589
  }
590
- co("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
591
- const ut = (e) => {
590
+ uo("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
591
+ const ct = (e) => {
592
592
  const {
593
593
  classes: n,
594
594
  color: a,
@@ -598,8 +598,8 @@ const ut = (e) => {
598
598
  } = e, x = {
599
599
  root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !h && "sticky"]
600
600
  };
601
- return fo(x, ct, n);
602
- }, dt = F("li", {
601
+ return go(x, pt, n);
602
+ }, ut = V("li", {
603
603
  name: "MuiListSubheader",
604
604
  slot: "Root",
605
605
  overridesResolver: (e, n) => {
@@ -608,7 +608,7 @@ const ut = (e) => {
608
608
  } = e;
609
609
  return [n.root, a.color !== "default" && n[`color${d(a.color)}`], !a.disableGutters && n.gutters, a.inset && n.inset, !a.disableSticky && n.sticky];
610
610
  }
611
- })(ee(({
611
+ })(oe(({
612
612
  theme: e
613
613
  }) => ({
614
614
  boxSizing: "border-box",
@@ -658,8 +658,8 @@ const ut = (e) => {
658
658
  backgroundColor: (e.vars || e).palette.background.paper
659
659
  }
660
660
  }]
661
- }))), so = /* @__PURE__ */ b.forwardRef(function(n, a) {
662
- const i = uo({
661
+ }))), po = /* @__PURE__ */ m.forwardRef(function(n, a) {
662
+ const i = fo({
663
663
  props: n,
664
664
  name: "MuiListSubheader"
665
665
  }), {
@@ -667,27 +667,27 @@ const ut = (e) => {
667
667
  color: h = "default",
668
668
  component: x = "li",
669
669
  disableGutters: y = !1,
670
- disableSticky: P = !1,
671
- inset: C = !1,
672
- ...m
673
- } = i, w = {
670
+ disableSticky: w = !1,
671
+ inset: b = !1,
672
+ ...P
673
+ } = i, R = {
674
674
  ...i,
675
675
  color: h,
676
676
  component: x,
677
677
  disableGutters: y,
678
- disableSticky: P,
679
- inset: C
680
- }, X = ut(w);
681
- return /* @__PURE__ */ T(dt, {
678
+ disableSticky: w,
679
+ inset: b
680
+ }, U = ct(R);
681
+ return /* @__PURE__ */ S(ut, {
682
682
  as: x,
683
- className: J(X.root, g),
683
+ className: Q(U.root, g),
684
684
  ref: a,
685
- ownerState: w,
686
- ...m
685
+ ownerState: R,
686
+ ...P
687
687
  });
688
688
  });
689
- so && (so.muiSkipListHighlight = !0);
690
- process.env.NODE_ENV !== "production" && (so.propTypes = {
689
+ po && (po.muiSkipListHighlight = !0);
690
+ process.env.NODE_ENV !== "production" && (po.propTypes = {
691
691
  // ┌────────────────────────────── Warning ──────────────────────────────┐
692
692
  // │ These PropTypes are generated from the TypeScript type definitions. │
693
693
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -734,10 +734,10 @@ process.env.NODE_ENV !== "production" && (so.propTypes = {
734
734
  */
735
735
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
736
736
  });
737
- function ft(e) {
738
- return po("MuiIconButton", e);
737
+ function dt(e) {
738
+ return co("MuiIconButton", e);
739
739
  }
740
- const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), bt = (e) => {
740
+ const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), gt = (e) => {
741
741
  const {
742
742
  classes: n,
743
743
  disabled: a,
@@ -747,8 +747,8 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
747
747
  } = e, x = {
748
748
  root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(h)}`]
749
749
  };
750
- return fo(x, ft, n);
751
- }, mt = F(So, {
750
+ return go(x, dt, n);
751
+ }, bt = V(Po, {
752
752
  name: "MuiIconButton",
753
753
  slot: "Root",
754
754
  overridesResolver: (e, n) => {
@@ -757,7 +757,7 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
757
757
  } = e;
758
758
  return [n.root, a.color !== "default" && n[`color${d(a.color)}`], a.edge && n[`edge${d(a.edge)}`], n[`size${d(a.size)}`]];
759
759
  }
760
- })(ee(({
760
+ })(oe(({
761
761
  theme: e
762
762
  }) => ({
763
763
  textAlign: "center",
@@ -775,7 +775,7 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
775
775
  },
776
776
  style: {
777
777
  "&:hover": {
778
- backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : V(e.palette.action.active, e.palette.action.hoverOpacity),
778
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : z(e.palette.action.active, e.palette.action.hoverOpacity),
779
779
  // Reset on touch devices, it doesn't add specificity
780
780
  "@media (hover: none)": {
781
781
  backgroundColor: "transparent"
@@ -813,7 +813,7 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
813
813
  marginRight: -3
814
814
  }
815
815
  }]
816
- })), ee(({
816
+ })), oe(({
817
817
  theme: e
818
818
  }) => ({
819
819
  variants: [{
@@ -823,21 +823,21 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
823
823
  style: {
824
824
  color: "inherit"
825
825
  }
826
- }, ...Object.entries(e.palette).filter(Me()).map(([n]) => ({
826
+ }, ...Object.entries(e.palette).filter(_e()).map(([n]) => ({
827
827
  props: {
828
828
  color: n
829
829
  },
830
830
  style: {
831
831
  color: (e.vars || e).palette[n].main
832
832
  }
833
- })), ...Object.entries(e.palette).filter(Me()).map(([n]) => ({
833
+ })), ...Object.entries(e.palette).filter(_e()).map(([n]) => ({
834
834
  props: {
835
835
  color: n,
836
836
  disableRipple: !1
837
837
  },
838
838
  style: {
839
839
  "&:hover": {
840
- backgroundColor: e.vars ? `rgba(${(e.vars || e).palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : V((e.vars || e).palette[n].main, e.palette.action.hoverOpacity),
840
+ backgroundColor: e.vars ? `rgba(${(e.vars || e).palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : z((e.vars || e).palette[n].main, e.palette.action.hoverOpacity),
841
841
  // Reset on touch devices, it doesn't add specificity
842
842
  "@media (hover: none)": {
843
843
  backgroundColor: "transparent"
@@ -861,12 +861,12 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
861
861
  fontSize: e.typography.pxToRem(28)
862
862
  }
863
863
  }],
864
- [`&.${gt.disabled}`]: {
864
+ [`&.${ft.disabled}`]: {
865
865
  backgroundColor: "transparent",
866
866
  color: (e.vars || e).palette.action.disabled
867
867
  }
868
- }))), ko = /* @__PURE__ */ b.forwardRef(function(n, a) {
869
- const i = uo({
868
+ }))), Mo = /* @__PURE__ */ m.forwardRef(function(n, a) {
869
+ const i = fo({
870
870
  props: n,
871
871
  name: "MuiIconButton"
872
872
  }), {
@@ -874,33 +874,33 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
874
874
  children: h,
875
875
  className: x,
876
876
  color: y = "default",
877
- disabled: P = !1,
878
- disableFocusRipple: C = !1,
879
- disableRipple: m = !1,
880
- size: w = "medium",
881
- ...X
882
- } = i, A = {
877
+ disabled: w = !1,
878
+ disableFocusRipple: b = !1,
879
+ disableRipple: P = !1,
880
+ size: R = "medium",
881
+ ...U
882
+ } = i, L = {
883
883
  ...i,
884
884
  edge: g,
885
885
  color: y,
886
- disabled: P,
887
- disableFocusRipple: C,
888
- disableRipple: m,
889
- size: w
890
- }, E = bt(A);
891
- return /* @__PURE__ */ T(mt, {
892
- className: J(E.root, x),
886
+ disabled: w,
887
+ disableFocusRipple: b,
888
+ disableRipple: P,
889
+ size: R
890
+ }, T = gt(L);
891
+ return /* @__PURE__ */ S(bt, {
892
+ className: Q(T.root, x),
893
893
  centerRipple: !0,
894
- focusRipple: !C,
895
- disabled: P,
896
- disableRipple: m,
894
+ focusRipple: !b,
895
+ disabled: w,
896
+ disableRipple: P,
897
897
  ref: a,
898
- ...X,
899
- ownerState: A,
898
+ ...U,
899
+ ownerState: L,
900
900
  children: h
901
901
  });
902
902
  });
903
- process.env.NODE_ENV !== "production" && (ko.propTypes = {
903
+ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
904
904
  // ┌────────────────────────────── Warning ──────────────────────────────┐
905
905
  // │ These PropTypes are generated from the TypeScript type definitions. │
906
906
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -908,7 +908,7 @@ process.env.NODE_ENV !== "production" && (ko.propTypes = {
908
908
  /**
909
909
  * The icon to display.
910
910
  */
911
- children: wo(o.node, (e) => b.Children.toArray(e.children).some((a) => /* @__PURE__ */ b.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
911
+ children: To(o.node, (e) => m.Children.toArray(e.children).some((a) => /* @__PURE__ */ m.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
912
912
  `)) : null),
913
913
  /**
914
914
  * Override or extend the styles applied to the component.
@@ -962,13 +962,13 @@ process.env.NODE_ENV !== "production" && (ko.propTypes = {
962
962
  */
963
963
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
964
964
  });
965
- const ht = Ho(/* @__PURE__ */ T("path", {
965
+ const mt = Uo(/* @__PURE__ */ S("path", {
966
966
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
967
967
  }), "Cancel");
968
- function yt(e) {
969
- return po("MuiChip", e);
968
+ function ht(e) {
969
+ return co("MuiChip", e);
970
970
  }
971
- const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), vt = (e) => {
971
+ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), yt = (e) => {
972
972
  const {
973
973
  classes: n,
974
974
  disabled: a,
@@ -977,16 +977,16 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
977
977
  iconColor: h,
978
978
  onDelete: x,
979
979
  clickable: y,
980
- variant: P
981
- } = e, C = {
982
- root: ["root", P, a && "disabled", `size${d(i)}`, `color${d(g)}`, y && "clickable", y && `clickableColor${d(g)}`, x && "deletable", x && `deletableColor${d(g)}`, `${P}${d(g)}`],
980
+ variant: w
981
+ } = e, b = {
982
+ root: ["root", w, a && "disabled", `size${d(i)}`, `color${d(g)}`, y && "clickable", y && `clickableColor${d(g)}`, x && "deletable", x && `deletableColor${d(g)}`, `${w}${d(g)}`],
983
983
  label: ["label", `label${d(i)}`],
984
984
  avatar: ["avatar", `avatar${d(i)}`, `avatarColor${d(g)}`],
985
985
  icon: ["icon", `icon${d(i)}`, `iconColor${d(h)}`],
986
- deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(P)}Color${d(g)}`]
986
+ deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(w)}Color${d(g)}`]
987
987
  };
988
- return fo(C, yt, n);
989
- }, xt = F("div", {
988
+ return go(b, ht, n);
989
+ }, vt = V("div", {
990
990
  name: "MuiChip",
991
991
  slot: "Root",
992
992
  overridesResolver: (e, n) => {
@@ -998,7 +998,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
998
998
  clickable: h,
999
999
  onDelete: x,
1000
1000
  size: y,
1001
- variant: P
1001
+ variant: w
1002
1002
  } = a;
1003
1003
  return [{
1004
1004
  [`& .${f.avatar}`]: n.avatar
@@ -1019,10 +1019,10 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1019
1019
  }, {
1020
1020
  [`& .${f.deleteIcon}`]: n[`deleteIconColor${d(i)}`]
1021
1021
  }, {
1022
- [`& .${f.deleteIcon}`]: n[`deleteIcon${d(P)}Color${d(i)}`]
1023
- }, n.root, n[`size${d(y)}`], n[`color${d(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${d(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${d(i)}`], n[P], n[`${P}${d(i)}`]];
1022
+ [`& .${f.deleteIcon}`]: n[`deleteIcon${d(w)}Color${d(i)}`]
1023
+ }, n.root, n[`size${d(y)}`], n[`color${d(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${d(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${d(i)}`], n[w], n[`${w}${d(i)}`]];
1024
1024
  }
1025
- })(ee(({
1025
+ })(oe(({
1026
1026
  theme: e
1027
1027
  }) => {
1028
1028
  const n = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
@@ -1083,12 +1083,12 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1083
1083
  },
1084
1084
  [`& .${f.deleteIcon}`]: {
1085
1085
  WebkitTapHighlightColor: "transparent",
1086
- color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : V(e.palette.text.primary, 0.26),
1086
+ color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : z(e.palette.text.primary, 0.26),
1087
1087
  fontSize: 22,
1088
1088
  cursor: "pointer",
1089
1089
  margin: "0 5px 0 -6px",
1090
1090
  "&:hover": {
1091
- color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : V(e.palette.text.primary, 0.4)
1091
+ color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : z(e.palette.text.primary, 0.4)
1092
1092
  }
1093
1093
  },
1094
1094
  variants: [{
@@ -1108,7 +1108,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1108
1108
  marginLeft: -4
1109
1109
  }
1110
1110
  }
1111
- }, ...Object.entries(e.palette).filter(Me(["contrastText"])).map(([a]) => ({
1111
+ }, ...Object.entries(e.palette).filter(_e(["contrastText"])).map(([a]) => ({
1112
1112
  props: {
1113
1113
  color: a
1114
1114
  },
@@ -1116,7 +1116,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1116
1116
  backgroundColor: (e.vars || e).palette[a].main,
1117
1117
  color: (e.vars || e).palette[a].contrastText,
1118
1118
  [`& .${f.deleteIcon}`]: {
1119
- color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : V(e.palette[a].contrastText, 0.7),
1119
+ color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : z(e.palette[a].contrastText, 0.7),
1120
1120
  "&:hover, &:active": {
1121
1121
  color: (e.vars || e).palette[a].contrastText
1122
1122
  }
@@ -1142,10 +1142,10 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1142
1142
  },
1143
1143
  style: {
1144
1144
  [`&.${f.focusVisible}`]: {
1145
- backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : V(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1145
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : z(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1146
1146
  }
1147
1147
  }
1148
- }, ...Object.entries(e.palette).filter(Me(["dark"])).map(([a]) => ({
1148
+ }, ...Object.entries(e.palette).filter(_e(["dark"])).map(([a]) => ({
1149
1149
  props: {
1150
1150
  color: a,
1151
1151
  onDelete: !0
@@ -1164,16 +1164,16 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1164
1164
  WebkitTapHighlightColor: "transparent",
1165
1165
  cursor: "pointer",
1166
1166
  "&:hover": {
1167
- backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : V(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
1167
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : z(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
1168
1168
  },
1169
1169
  [`&.${f.focusVisible}`]: {
1170
- backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : V(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1170
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : z(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1171
1171
  },
1172
1172
  "&:active": {
1173
1173
  boxShadow: (e.vars || e).shadows[1]
1174
1174
  }
1175
1175
  }
1176
- }, ...Object.entries(e.palette).filter(Me(["dark"])).map(([a]) => ({
1176
+ }, ...Object.entries(e.palette).filter(_e(["dark"])).map(([a]) => ({
1177
1177
  props: {
1178
1178
  color: a,
1179
1179
  clickable: !0
@@ -1215,22 +1215,22 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1215
1215
  marginRight: 3
1216
1216
  }
1217
1217
  }
1218
- }, ...Object.entries(e.palette).filter(Me()).map(([a]) => ({
1218
+ }, ...Object.entries(e.palette).filter(_e()).map(([a]) => ({
1219
1219
  props: {
1220
1220
  variant: "outlined",
1221
1221
  color: a
1222
1222
  },
1223
1223
  style: {
1224
1224
  color: (e.vars || e).palette[a].main,
1225
- border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7)}`,
1225
+ border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : z(e.palette[a].main, 0.7)}`,
1226
1226
  [`&.${f.clickable}:hover`]: {
1227
- backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : V(e.palette[a].main, e.palette.action.hoverOpacity)
1227
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : z(e.palette[a].main, e.palette.action.hoverOpacity)
1228
1228
  },
1229
1229
  [`&.${f.focusVisible}`]: {
1230
- backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : V(e.palette[a].main, e.palette.action.focusOpacity)
1230
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : z(e.palette[a].main, e.palette.action.focusOpacity)
1231
1231
  },
1232
1232
  [`& .${f.deleteIcon}`]: {
1233
- color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7),
1233
+ color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : z(e.palette[a].main, 0.7),
1234
1234
  "&:hover, &:active": {
1235
1235
  color: (e.vars || e).palette[a].main
1236
1236
  }
@@ -1238,7 +1238,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1238
1238
  }
1239
1239
  }))]
1240
1240
  };
1241
- })), Ct = F("span", {
1241
+ })), xt = V("span", {
1242
1242
  name: "MuiChip",
1243
1243
  slot: "Label",
1244
1244
  overridesResolver: (e, n) => {
@@ -1282,11 +1282,11 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1282
1282
  }
1283
1283
  }]
1284
1284
  });
1285
- function jo(e) {
1285
+ function Vo(e) {
1286
1286
  return e.key === "Backspace" || e.key === "Delete";
1287
1287
  }
1288
- const Go = /* @__PURE__ */ b.forwardRef(function(n, a) {
1289
- const i = uo({
1288
+ const qo = /* @__PURE__ */ m.forwardRef(function(n, a) {
1289
+ const i = fo({
1290
1290
  props: n,
1291
1291
  name: "MuiChip"
1292
1292
  }), {
@@ -1294,79 +1294,79 @@ const Go = /* @__PURE__ */ b.forwardRef(function(n, a) {
1294
1294
  className: h,
1295
1295
  clickable: x,
1296
1296
  color: y = "default",
1297
- component: P,
1298
- deleteIcon: C,
1299
- disabled: m = !1,
1300
- icon: w,
1301
- label: X,
1302
- onClick: A,
1303
- onDelete: E,
1304
- onKeyDown: ue,
1305
- onKeyUp: Ne,
1306
- size: me = "medium",
1307
- variant: le = "filled",
1308
- tabIndex: H,
1309
- skipFocusWhenDisabled: he = !1,
1297
+ component: w,
1298
+ deleteIcon: b,
1299
+ disabled: P = !1,
1300
+ icon: R,
1301
+ label: U,
1302
+ onClick: L,
1303
+ onDelete: T,
1304
+ onKeyDown: N,
1305
+ onKeyUp: te,
1306
+ size: he = "medium",
1307
+ variant: se = "filled",
1308
+ tabIndex: W,
1309
+ skipFocusWhenDisabled: ye = !1,
1310
1310
  // TODO v6: Rename to `focusableWhenDisabled`.
1311
- ...Ee
1312
- } = i, oe = b.useRef(null), ze = ot(oe, a), Ve = (M) => {
1313
- M.stopPropagation(), E && E(M);
1314
- }, de = (M) => {
1315
- M.currentTarget === M.target && jo(M) && M.preventDefault(), ue && ue(M);
1316
- }, ye = (M) => {
1317
- M.currentTarget === M.target && E && jo(M) && E(M), Ne && Ne(M);
1318
- }, W = x !== !1 && A ? !0 : x, $ = W || E ? So : P || "div", fe = {
1311
+ ...De
1312
+ } = i, ne = m.useRef(null), Ne = et(ne, a), Ee = (_) => {
1313
+ _.stopPropagation(), T && T(_);
1314
+ }, fe = (_) => {
1315
+ _.currentTarget === _.target && Vo(_) && _.preventDefault(), N && N(_);
1316
+ }, ve = (_) => {
1317
+ _.currentTarget === _.target && T && Vo(_) && T(_), te && te(_);
1318
+ }, K = x !== !1 && L ? !0 : x, I = K || T ? Po : w || "div", ge = {
1319
1319
  ...i,
1320
- component: $,
1321
- disabled: m,
1322
- size: me,
1320
+ component: I,
1321
+ disabled: P,
1322
+ size: he,
1323
1323
  color: y,
1324
- iconColor: /* @__PURE__ */ b.isValidElement(w) && w.props.color || y,
1325
- onDelete: !!E,
1326
- clickable: W,
1327
- variant: le
1328
- }, _ = vt(fe), ve = $ === So ? {
1329
- component: P || "div",
1330
- focusVisibleClassName: _.focusVisible,
1331
- ...E && {
1324
+ iconColor: /* @__PURE__ */ m.isValidElement(R) && R.props.color || y,
1325
+ onDelete: !!T,
1326
+ clickable: K,
1327
+ variant: se
1328
+ }, Y = yt(ge), xe = I === Po ? {
1329
+ component: w || "div",
1330
+ focusVisibleClassName: Y.focusVisible,
1331
+ ...T && {
1332
1332
  disableRipple: !0
1333
1333
  }
1334
1334
  } : {};
1335
- let q = null;
1336
- E && (q = C && /* @__PURE__ */ b.isValidElement(C) ? /* @__PURE__ */ b.cloneElement(C, {
1337
- className: J(C.props.className, _.deleteIcon),
1338
- onClick: Ve
1339
- }) : /* @__PURE__ */ T(ht, {
1340
- className: J(_.deleteIcon),
1341
- onClick: Ve
1335
+ let J = null;
1336
+ T && (J = b && /* @__PURE__ */ m.isValidElement(b) ? /* @__PURE__ */ m.cloneElement(b, {
1337
+ className: Q(b.props.className, Y.deleteIcon),
1338
+ onClick: Ee
1339
+ }) : /* @__PURE__ */ S(mt, {
1340
+ className: Q(Y.deleteIcon),
1341
+ onClick: Ee
1342
1342
  }));
1343
- let ie = null;
1344
- g && /* @__PURE__ */ b.isValidElement(g) && (ie = /* @__PURE__ */ b.cloneElement(g, {
1345
- className: J(_.avatar, g.props.className)
1343
+ let pe = null;
1344
+ g && /* @__PURE__ */ m.isValidElement(g) && (pe = /* @__PURE__ */ m.cloneElement(g, {
1345
+ className: Q(Y.avatar, g.props.className)
1346
1346
  }));
1347
- let xe = null;
1348
- return w && /* @__PURE__ */ b.isValidElement(w) && (xe = /* @__PURE__ */ b.cloneElement(w, {
1349
- className: J(_.icon, w.props.className)
1350
- })), process.env.NODE_ENV !== "production" && ie && xe && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ De(xt, {
1351
- as: $,
1352
- className: J(_.root, h),
1353
- disabled: W && m ? !0 : void 0,
1354
- onClick: A,
1355
- onKeyDown: de,
1356
- onKeyUp: ye,
1357
- ref: ze,
1358
- tabIndex: he && m ? -1 : H,
1359
- ownerState: fe,
1360
- ...ve,
1361
- ...Ee,
1362
- children: [ie || xe, /* @__PURE__ */ T(Ct, {
1363
- className: J(_.label),
1364
- ownerState: fe,
1365
- children: X
1366
- }), q]
1347
+ let Ie = null;
1348
+ return R && /* @__PURE__ */ m.isValidElement(R) && (Ie = /* @__PURE__ */ m.cloneElement(R, {
1349
+ className: Q(Y.icon, R.props.className)
1350
+ })), process.env.NODE_ENV !== "production" && pe && Ie && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ Be(vt, {
1351
+ as: I,
1352
+ className: Q(Y.root, h),
1353
+ disabled: K && P ? !0 : void 0,
1354
+ onClick: L,
1355
+ onKeyDown: fe,
1356
+ onKeyUp: ve,
1357
+ ref: Ne,
1358
+ tabIndex: ye && P ? -1 : W,
1359
+ ownerState: ge,
1360
+ ...xe,
1361
+ ...De,
1362
+ children: [pe || Ie, /* @__PURE__ */ S(xt, {
1363
+ className: Q(Y.label),
1364
+ ownerState: ge,
1365
+ children: U
1366
+ }), J]
1367
1367
  });
1368
1368
  });
1369
- process.env.NODE_ENV !== "production" && (Go.propTypes = {
1369
+ process.env.NODE_ENV !== "production" && (qo.propTypes = {
1370
1370
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1371
1371
  // │ These PropTypes are generated from the TypeScript type definitions. │
1372
1372
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1379,7 +1379,7 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
1379
1379
  * This prop isn't supported.
1380
1380
  * Use the `component` prop if you need to change the children structure.
1381
1381
  */
1382
- children: nt,
1382
+ children: tt,
1383
1383
  /**
1384
1384
  * Override or extend the styles applied to the component.
1385
1385
  */
@@ -1468,15 +1468,15 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
1468
1468
  */
1469
1469
  variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
1470
1470
  });
1471
- const $t = Ho(/* @__PURE__ */ T("path", {
1471
+ const It = Uo(/* @__PURE__ */ S("path", {
1472
1472
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
1473
1473
  }), "Close");
1474
- function It(e) {
1475
- return po("MuiAutocomplete", e);
1474
+ function Ct(e) {
1475
+ return co("MuiAutocomplete", e);
1476
1476
  }
1477
- const u = co("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
1478
- var Bo, Uo;
1479
- const Ot = (e) => {
1477
+ const u = uo("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
1478
+ var Fo, jo;
1479
+ const $t = (e) => {
1480
1480
  const {
1481
1481
  classes: n,
1482
1482
  disablePortal: a,
@@ -1485,17 +1485,17 @@ const Ot = (e) => {
1485
1485
  fullWidth: h,
1486
1486
  hasClearIcon: x,
1487
1487
  hasPopupIcon: y,
1488
- inputFocused: P,
1489
- popupOpen: C,
1490
- size: m
1491
- } = e, w = {
1488
+ inputFocused: w,
1489
+ popupOpen: b,
1490
+ size: P
1491
+ } = e, R = {
1492
1492
  root: ["root", i && "expanded", g && "focused", h && "fullWidth", x && "hasClearIcon", y && "hasPopupIcon"],
1493
1493
  inputRoot: ["inputRoot"],
1494
- input: ["input", P && "inputFocused"],
1495
- tag: ["tag", `tagSize${d(m)}`],
1494
+ input: ["input", w && "inputFocused"],
1495
+ tag: ["tag", `tagSize${d(P)}`],
1496
1496
  endAdornment: ["endAdornment"],
1497
1497
  clearIndicator: ["clearIndicator"],
1498
- popupIndicator: ["popupIndicator", C && "popupIndicatorOpen"],
1498
+ popupIndicator: ["popupIndicator", b && "popupIndicatorOpen"],
1499
1499
  popper: ["popper", a && "popperDisablePortal"],
1500
1500
  paper: ["paper"],
1501
1501
  listbox: ["listbox"],
@@ -1505,8 +1505,8 @@ const Ot = (e) => {
1505
1505
  groupLabel: ["groupLabel"],
1506
1506
  groupUl: ["groupUl"]
1507
1507
  };
1508
- return fo(w, It, n);
1509
- }, Pt = F("div", {
1508
+ return go(R, Ct, n);
1509
+ }, Ot = V("div", {
1510
1510
  name: "MuiAutocomplete",
1511
1511
  slot: "Root",
1512
1512
  overridesResolver: (e, n) => {
@@ -1557,18 +1557,18 @@ const Ot = (e) => {
1557
1557
  minWidth: 30
1558
1558
  }
1559
1559
  },
1560
- [`& .${Io.root}`]: {
1560
+ [`& .${Oo.root}`]: {
1561
1561
  paddingBottom: 1,
1562
1562
  "& .MuiInput-input": {
1563
1563
  padding: "4px 4px 4px 0px"
1564
1564
  }
1565
1565
  },
1566
- [`& .${Io.root}.${be.sizeSmall}`]: {
1567
- [`& .${Io.input}`]: {
1566
+ [`& .${Oo.root}.${me.sizeSmall}`]: {
1567
+ [`& .${Oo.input}`]: {
1568
1568
  padding: "2px 4px 3px 0"
1569
1569
  }
1570
1570
  },
1571
- [`& .${Eo.root}`]: {
1571
+ [`& .${Do.root}`]: {
1572
1572
  padding: 9,
1573
1573
  [`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
1574
1574
  paddingRight: 39
@@ -1583,7 +1583,7 @@ const Ot = (e) => {
1583
1583
  right: 9
1584
1584
  }
1585
1585
  },
1586
- [`& .${Eo.root}.${be.sizeSmall}`]: {
1586
+ [`& .${Do.root}.${me.sizeSmall}`]: {
1587
1587
  // Don't specify paddingRight, as it overrides the default value set when there is only
1588
1588
  // one of the popup or clear icon as the specificity is equal so the latter one wins
1589
1589
  paddingTop: 6,
@@ -1609,16 +1609,16 @@ const Ot = (e) => {
1609
1609
  right: 9
1610
1610
  }
1611
1611
  },
1612
- [`& .${Ae.root}.${be.sizeSmall}`]: {
1612
+ [`& .${Ae.root}.${me.sizeSmall}`]: {
1613
1613
  paddingBottom: 1,
1614
1614
  [`& .${Ae.input}`]: {
1615
1615
  padding: "2.5px 4px"
1616
1616
  }
1617
1617
  },
1618
- [`& .${be.hiddenLabel}`]: {
1618
+ [`& .${me.hiddenLabel}`]: {
1619
1619
  paddingTop: 8
1620
1620
  },
1621
- [`& .${Ae.root}.${be.hiddenLabel}`]: {
1621
+ [`& .${Ae.root}.${me.hiddenLabel}`]: {
1622
1622
  paddingTop: 0,
1623
1623
  paddingBottom: 0,
1624
1624
  [`& .${u.input}`]: {
@@ -1626,7 +1626,7 @@ const Ot = (e) => {
1626
1626
  paddingBottom: 17
1627
1627
  }
1628
1628
  },
1629
- [`& .${Ae.root}.${be.hiddenLabel}.${be.sizeSmall}`]: {
1629
+ [`& .${Ae.root}.${me.hiddenLabel}.${me.sizeSmall}`]: {
1630
1630
  [`& .${u.input}`]: {
1631
1631
  paddingTop: 8,
1632
1632
  paddingBottom: 9
@@ -1673,7 +1673,7 @@ const Ot = (e) => {
1673
1673
  }
1674
1674
  }
1675
1675
  }]
1676
- }), St = F("div", {
1676
+ }), wt = V("div", {
1677
1677
  name: "MuiAutocomplete",
1678
1678
  slot: "EndAdornment",
1679
1679
  overridesResolver: (e, n) => n.endAdornment
@@ -1683,7 +1683,7 @@ const Ot = (e) => {
1683
1683
  right: 0,
1684
1684
  top: "50%",
1685
1685
  transform: "translate(0, -50%)"
1686
- }), wt = F(ko, {
1686
+ }), St = V(Mo, {
1687
1687
  name: "MuiAutocomplete",
1688
1688
  slot: "ClearIndicator",
1689
1689
  overridesResolver: (e, n) => n.clearIndicator
@@ -1691,7 +1691,7 @@ const Ot = (e) => {
1691
1691
  marginRight: -2,
1692
1692
  padding: 4,
1693
1693
  visibility: "hidden"
1694
- }), Tt = F(ko, {
1694
+ }), Pt = V(Mo, {
1695
1695
  name: "MuiAutocomplete",
1696
1696
  slot: "PopupIndicator",
1697
1697
  overridesResolver: ({
@@ -1711,7 +1711,7 @@ const Ot = (e) => {
1711
1711
  transform: "rotate(180deg)"
1712
1712
  }
1713
1713
  }]
1714
- }), kt = F(Wo, {
1714
+ }), Tt = V(Wo, {
1715
1715
  name: "MuiAutocomplete",
1716
1716
  slot: "Popper",
1717
1717
  overridesResolver: (e, n) => {
@@ -1722,7 +1722,7 @@ const Ot = (e) => {
1722
1722
  [`& .${u.option}`]: n.option
1723
1723
  }, n.popper, a.disablePortal && n.popperDisablePortal];
1724
1724
  }
1725
- })(ee(({
1725
+ })(oe(({
1726
1726
  theme: e
1727
1727
  }) => ({
1728
1728
  zIndex: (e.vars || e).zIndex.modal,
@@ -1734,38 +1734,38 @@ const Ot = (e) => {
1734
1734
  position: "absolute"
1735
1735
  }
1736
1736
  }]
1737
- }))), Rt = F(Ko, {
1737
+ }))), kt = V(Ko, {
1738
1738
  name: "MuiAutocomplete",
1739
1739
  slot: "Paper",
1740
1740
  overridesResolver: (e, n) => n.paper
1741
- })(ee(({
1741
+ })(oe(({
1742
1742
  theme: e
1743
1743
  }) => ({
1744
1744
  ...e.typography.body1,
1745
1745
  overflow: "auto"
1746
- }))), Lt = F("div", {
1746
+ }))), Mt = V("div", {
1747
1747
  name: "MuiAutocomplete",
1748
1748
  slot: "Loading",
1749
1749
  overridesResolver: (e, n) => n.loading
1750
- })(ee(({
1750
+ })(oe(({
1751
1751
  theme: e
1752
1752
  }) => ({
1753
1753
  color: (e.vars || e).palette.text.secondary,
1754
1754
  padding: "14px 16px"
1755
- }))), At = F("div", {
1755
+ }))), Rt = V("div", {
1756
1756
  name: "MuiAutocomplete",
1757
1757
  slot: "NoOptions",
1758
1758
  overridesResolver: (e, n) => n.noOptions
1759
- })(ee(({
1759
+ })(oe(({
1760
1760
  theme: e
1761
1761
  }) => ({
1762
1762
  color: (e.vars || e).palette.text.secondary,
1763
1763
  padding: "14px 16px"
1764
- }))), Mt = F("div", {
1764
+ }))), Lt = V("div", {
1765
1765
  name: "MuiAutocomplete",
1766
1766
  slot: "Listbox",
1767
1767
  overridesResolver: (e, n) => n.listbox
1768
- })(ee(({
1768
+ })(oe(({
1769
1769
  theme: e
1770
1770
  }) => ({
1771
1771
  listStyle: "none",
@@ -1806,29 +1806,29 @@ const Ot = (e) => {
1806
1806
  backgroundColor: (e.vars || e).palette.action.focus
1807
1807
  },
1808
1808
  '&[aria-selected="true"]': {
1809
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : V(e.palette.primary.main, e.palette.action.selectedOpacity),
1809
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : z(e.palette.primary.main, e.palette.action.selectedOpacity),
1810
1810
  [`&.${u.focused}`]: {
1811
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : V(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1811
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : z(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1812
1812
  // Reset on touch devices, it doesn't add specificity
1813
1813
  "@media (hover: none)": {
1814
1814
  backgroundColor: (e.vars || e).palette.action.selected
1815
1815
  }
1816
1816
  },
1817
1817
  [`&.${u.focusVisible}`]: {
1818
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : V(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1818
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : z(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1819
1819
  }
1820
1820
  }
1821
1821
  }
1822
- }))), Dt = F(so, {
1822
+ }))), At = V(po, {
1823
1823
  name: "MuiAutocomplete",
1824
1824
  slot: "GroupLabel",
1825
1825
  overridesResolver: (e, n) => n.groupLabel
1826
- })(ee(({
1826
+ })(oe(({
1827
1827
  theme: e
1828
1828
  }) => ({
1829
1829
  backgroundColor: (e.vars || e).palette.background.paper,
1830
1830
  top: -8
1831
- }))), Nt = F("ul", {
1831
+ }))), _t = V("ul", {
1832
1832
  name: "MuiAutocomplete",
1833
1833
  slot: "GroupUl",
1834
1834
  overridesResolver: (e, n) => n.groupUl
@@ -1837,8 +1837,8 @@ const Ot = (e) => {
1837
1837
  [`& .${u.option}`]: {
1838
1838
  paddingLeft: 24
1839
1839
  }
1840
- }), To = /* @__PURE__ */ b.forwardRef(function(n, a) {
1841
- const i = uo({
1840
+ }), ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
1841
+ const i = fo({
1842
1842
  props: n,
1843
1843
  name: "MuiAutocomplete"
1844
1844
  }), {
@@ -1846,293 +1846,293 @@ const Ot = (e) => {
1846
1846
  autoHighlight: h = !1,
1847
1847
  autoSelect: x = !1,
1848
1848
  blurOnSelect: y = !1,
1849
- ChipProps: P,
1850
- className: C,
1851
- clearIcon: m = Bo || (Bo = /* @__PURE__ */ T($t, {
1849
+ ChipProps: w,
1850
+ className: b,
1851
+ clearIcon: P = Fo || (Fo = /* @__PURE__ */ S(It, {
1852
1852
  fontSize: "small"
1853
1853
  })),
1854
- clearOnBlur: w = !i.freeSolo,
1855
- clearOnEscape: X = !1,
1856
- clearText: A = "Clear",
1857
- closeText: E = "Close",
1858
- componentsProps: ue,
1859
- defaultValue: Ne = i.multiple ? [] : null,
1860
- disableClearable: me = !1,
1861
- disableCloseOnSelect: le = !1,
1862
- disabled: H = !1,
1863
- disabledItemsFocusable: he = !1,
1864
- disableListWrap: Ee = !1,
1865
- disablePortal: oe = !1,
1866
- filterOptions: ze,
1867
- filterSelectedOptions: Ve = !1,
1868
- forcePopupIcon: de = "auto",
1869
- freeSolo: ye = !1,
1870
- fullWidth: W = !1,
1871
- getLimitTagsText: $ = (v) => `+${v}`,
1872
- getOptionDisabled: fe,
1873
- getOptionKey: _,
1874
- getOptionLabel: ve,
1875
- isOptionEqualToValue: q,
1876
- groupBy: ie,
1877
- handleHomeEndKeys: xe = !i.freeSolo,
1878
- id: M,
1854
+ clearOnBlur: R = !i.freeSolo,
1855
+ clearOnEscape: U = !1,
1856
+ clearText: L = "Clear",
1857
+ closeText: T = "Close",
1858
+ componentsProps: N,
1859
+ defaultValue: te = i.multiple ? [] : null,
1860
+ disableClearable: he = !1,
1861
+ disableCloseOnSelect: se = !1,
1862
+ disabled: W = !1,
1863
+ disabledItemsFocusable: ye = !1,
1864
+ disableListWrap: De = !1,
1865
+ disablePortal: ne = !1,
1866
+ filterOptions: Ne,
1867
+ filterSelectedOptions: Ee = !1,
1868
+ forcePopupIcon: fe = "auto",
1869
+ freeSolo: ve = !1,
1870
+ fullWidth: K = !1,
1871
+ getLimitTagsText: I = (v) => `+${v}`,
1872
+ getOptionDisabled: ge,
1873
+ getOptionKey: Y,
1874
+ getOptionLabel: xe,
1875
+ isOptionEqualToValue: J,
1876
+ groupBy: pe,
1877
+ handleHomeEndKeys: Ie = !i.freeSolo,
1878
+ id: _,
1879
1879
  includeInputInList: Ro = !1,
1880
1880
  inputValue: Ce,
1881
- limitTags: Fe = -1,
1882
- ListboxComponent: go,
1883
- ListboxProps: U,
1884
- loading: D = !1,
1885
- loadingText: je = "Loading…",
1886
- multiple: Be = !1,
1887
- noOptionsText: R = "No options",
1888
- onChange: K,
1889
- onClose: Ue,
1881
+ limitTags: ze = -1,
1882
+ ListboxComponent: bo,
1883
+ ListboxProps: H,
1884
+ loading: B = !1,
1885
+ loadingText: Ve = "Loading…",
1886
+ multiple: Fe = !1,
1887
+ noOptionsText: M = "No options",
1888
+ onChange: q,
1889
+ onClose: je,
1890
1890
  onHighlightChange: Lo,
1891
1891
  onInputChange: G,
1892
1892
  onOpen: Xe,
1893
- open: bo,
1894
- openOnFocus: z = !1,
1893
+ open: mo,
1894
+ openOnFocus: E = !1,
1895
1895
  openText: s = "Open",
1896
1896
  options: Ao,
1897
- PaperComponent: S,
1897
+ PaperComponent: O,
1898
1898
  PopperComponent: $e,
1899
- popupIcon: Ie = Uo || (Uo = /* @__PURE__ */ T(Qo, {})),
1899
+ popupIcon: Oe = jo || (jo = /* @__PURE__ */ S(Xo, {})),
1900
1900
  readOnly: He = !1,
1901
- renderGroup: Oe,
1902
- renderInput: se,
1901
+ renderGroup: we,
1902
+ renderInput: ce,
1903
1903
  renderOption: Qe,
1904
1904
  renderTags: Ze,
1905
- selectOnFocus: mo = !i.freeSolo,
1906
- size: Pe = "medium",
1907
- slots: j = {},
1905
+ selectOnFocus: ho = !i.freeSolo,
1906
+ size: Se = "medium",
1907
+ slots: F = {},
1908
1908
  slotProps: k = {},
1909
- value: Q,
1910
- ...We
1909
+ value: Z,
1910
+ ...Ue
1911
1911
  } = i, {
1912
- getRootProps: Se,
1912
+ getRootProps: Pe,
1913
1913
  getInputProps: eo,
1914
- getInputLabelProps: te,
1915
- getPopupIndicatorProps: Y,
1916
- getClearProps: ho,
1917
- getTagProps: Ke,
1918
- getListboxProps: yo,
1919
- getOptionProps: ne,
1920
- value: re,
1921
- dirty: pe,
1922
- expanded: we,
1923
- id: ge,
1924
- popupOpen: Te,
1925
- focused: Ge,
1914
+ getInputLabelProps: re,
1915
+ getPopupIndicatorProps: X,
1916
+ getClearProps: yo,
1917
+ getTagProps: We,
1918
+ getListboxProps: vo,
1919
+ getOptionProps: ae,
1920
+ value: le,
1921
+ dirty: ue,
1922
+ expanded: Te,
1923
+ id: be,
1924
+ popupOpen: ke,
1925
+ focused: Ke,
1926
1926
  focusedTag: oo,
1927
- anchorEl: ke,
1928
- setAnchorEl: vo,
1927
+ anchorEl: Me,
1928
+ setAnchorEl: xo,
1929
1929
  inputValue: to,
1930
1930
  groupedOptions: Re
1931
- } = pt({
1931
+ } = st({
1932
1932
  ...i,
1933
1933
  componentName: "Autocomplete"
1934
- }), _e = !me && !H && pe && !He, qe = (!ye || de === !0) && de !== !1, {
1935
- onMouseDown: xo
1934
+ }), qe = !he && !W && ue && !He, Ge = (!ve || fe === !0) && fe !== !1, {
1935
+ onMouseDown: Io
1936
1936
  } = eo(), {
1937
1937
  ref: Co,
1938
1938
  ...no
1939
- } = yo(), Ye = ve || ((v) => v.label ?? v), N = {
1939
+ } = vo(), Ye = xe || ((v) => v.label ?? v), D = {
1940
1940
  ...i,
1941
- disablePortal: oe,
1942
- expanded: we,
1943
- focused: Ge,
1944
- fullWidth: W,
1941
+ disablePortal: ne,
1942
+ expanded: Te,
1943
+ focused: Ke,
1944
+ fullWidth: K,
1945
1945
  getOptionLabel: Ye,
1946
- hasClearIcon: _e,
1947
- hasPopupIcon: qe,
1946
+ hasClearIcon: qe,
1947
+ hasPopupIcon: Ge,
1948
1948
  inputFocused: oo === -1,
1949
- popupOpen: Te,
1950
- size: Pe
1951
- }, L = Ot(N), ae = {
1949
+ popupOpen: ke,
1950
+ size: Se
1951
+ }, A = $t(D), ie = {
1952
1952
  slots: {
1953
- listbox: go,
1954
- paper: S,
1953
+ listbox: bo,
1954
+ paper: O,
1955
1955
  popper: $e,
1956
- ...j
1956
+ ...F
1957
1957
  },
1958
1958
  slotProps: {
1959
- chip: P,
1960
- listbox: U,
1961
- ...ue,
1959
+ chip: w,
1960
+ listbox: H,
1961
+ ...N,
1962
1962
  ...k
1963
1963
  }
1964
- }, [r, t] = Oo("listbox", {
1964
+ }, [r, t] = wo("listbox", {
1965
1965
  elementType: "ul",
1966
- externalForwardedProps: ae,
1967
- ownerState: N,
1968
- className: L.listbox,
1966
+ externalForwardedProps: ie,
1967
+ ownerState: D,
1968
+ className: A.listbox,
1969
1969
  additionalProps: no,
1970
1970
  ref: Co
1971
- }), [l, p] = Oo("paper", {
1971
+ }), [l, p] = wo("paper", {
1972
1972
  elementType: Ko,
1973
- externalForwardedProps: ae,
1974
- ownerState: N,
1975
- className: L.paper
1976
- }), [c, O] = Oo("popper", {
1973
+ externalForwardedProps: ie,
1974
+ ownerState: D,
1975
+ className: A.paper
1976
+ }), [c, $] = wo("popper", {
1977
1977
  elementType: Wo,
1978
- externalForwardedProps: ae,
1979
- ownerState: N,
1980
- className: L.popper,
1978
+ externalForwardedProps: ie,
1979
+ ownerState: D,
1980
+ className: A.popper,
1981
1981
  additionalProps: {
1982
- disablePortal: oe,
1982
+ disablePortal: ne,
1983
1983
  style: {
1984
- width: ke ? ke.clientWidth : null
1984
+ width: Me ? Me.clientWidth : null
1985
1985
  },
1986
1986
  role: "presentation",
1987
- anchorEl: ke,
1988
- open: Te
1987
+ anchorEl: Me,
1988
+ open: ke
1989
1989
  }
1990
1990
  });
1991
- let I;
1992
- if (Be && re.length > 0) {
1993
- const v = (Z) => ({
1994
- className: L.tag,
1995
- disabled: H,
1996
- ...Ke(Z)
1991
+ let C;
1992
+ if (Fe && le.length > 0) {
1993
+ const v = (ee) => ({
1994
+ className: A.tag,
1995
+ disabled: W,
1996
+ ...We(ee)
1997
1997
  });
1998
- Ze ? I = Ze(re, v, N) : I = re.map((Z, ce) => {
1998
+ Ze ? C = Ze(le, v, D) : C = le.map((ee, de) => {
1999
1999
  const {
2000
2000
  key: Je,
2001
- ...qo
2001
+ ...Yo
2002
2002
  } = v({
2003
- index: ce
2003
+ index: de
2004
2004
  });
2005
- return /* @__PURE__ */ T(Go, {
2006
- label: Ye(Z),
2007
- size: Pe,
2008
- ...qo,
2009
- ...ae.slotProps.chip
2005
+ return /* @__PURE__ */ S(qo, {
2006
+ label: Ye(ee),
2007
+ size: Se,
2008
+ ...Yo,
2009
+ ...ie.slotProps.chip
2010
2010
  }, Je);
2011
2011
  });
2012
2012
  }
2013
- if (Fe > -1 && Array.isArray(I)) {
2014
- const v = I.length - Fe;
2015
- !Ge && v > 0 && (I = I.splice(0, Fe), I.push(/* @__PURE__ */ T("span", {
2016
- className: L.tag,
2017
- children: $(v)
2018
- }, I.length)));
2013
+ if (ze > -1 && Array.isArray(C)) {
2014
+ const v = C.length - ze;
2015
+ !Ke && v > 0 && (C = C.splice(0, ze), C.push(/* @__PURE__ */ S("span", {
2016
+ className: A.tag,
2017
+ children: I(v)
2018
+ }, C.length)));
2019
2019
  }
2020
- const Le = Oe || ((v) => /* @__PURE__ */ De("li", {
2021
- children: [/* @__PURE__ */ T(Dt, {
2022
- className: L.groupLabel,
2023
- ownerState: N,
2020
+ const Le = we || ((v) => /* @__PURE__ */ Be("li", {
2021
+ children: [/* @__PURE__ */ S(At, {
2022
+ className: A.groupLabel,
2023
+ ownerState: D,
2024
2024
  component: "div",
2025
2025
  children: v.group
2026
- }), /* @__PURE__ */ T(Nt, {
2027
- className: L.groupUl,
2028
- ownerState: N,
2026
+ }), /* @__PURE__ */ S(_t, {
2027
+ className: A.groupUl,
2028
+ ownerState: D,
2029
2029
  children: v.children
2030
2030
  })]
2031
- }, v.key)), _o = Qe || ((v, Z) => {
2031
+ }, v.key)), Go = Qe || ((v, ee) => {
2032
2032
  const {
2033
- key: ce,
2033
+ key: de,
2034
2034
  ...Je
2035
2035
  } = v;
2036
- return /* @__PURE__ */ T("li", {
2036
+ return /* @__PURE__ */ S("li", {
2037
2037
  ...Je,
2038
- children: Ye(Z)
2039
- }, ce);
2040
- }), Do = (v, Z) => {
2041
- const ce = ne({
2038
+ children: Ye(ee)
2039
+ }, de);
2040
+ }), Bo = (v, ee) => {
2041
+ const de = ae({
2042
2042
  option: v,
2043
- index: Z
2043
+ index: ee
2044
2044
  });
2045
- return _o({
2046
- ...ce,
2047
- className: L.option
2045
+ return Go({
2046
+ ...de,
2047
+ className: A.option
2048
2048
  }, v, {
2049
- selected: ce["aria-selected"],
2050
- index: Z,
2049
+ selected: de["aria-selected"],
2050
+ index: ee,
2051
2051
  inputValue: to
2052
- }, N);
2053
- }, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, $o = (v) => /* @__PURE__ */ T(kt, {
2052
+ }, D);
2053
+ }, ro = ie.slotProps.clearIndicator, ao = ie.slotProps.popupIndicator, $o = (v) => /* @__PURE__ */ S(Tt, {
2054
2054
  as: c,
2055
- ...O,
2056
- children: /* @__PURE__ */ T(Rt, {
2055
+ ...$,
2056
+ children: /* @__PURE__ */ S(kt, {
2057
2057
  as: l,
2058
2058
  ...p,
2059
2059
  children: v
2060
2060
  })
2061
2061
  });
2062
2062
  let lo = null;
2063
- return Re.length > 0 ? lo = $o(/* @__PURE__ */ T(Mt, {
2063
+ return Re.length > 0 ? lo = $o(/* @__PURE__ */ S(Lt, {
2064
2064
  as: r,
2065
2065
  ...t,
2066
- children: Re.map((v, Z) => ie ? Le({
2066
+ children: Re.map((v, ee) => pe ? Le({
2067
2067
  key: v.key,
2068
2068
  group: v.group,
2069
- children: v.options.map((ce, Je) => Do(ce, v.index + Je))
2070
- }) : Do(v, Z))
2071
- })) : D && Re.length === 0 ? lo = $o(/* @__PURE__ */ T(Lt, {
2072
- className: L.loading,
2073
- ownerState: N,
2074
- children: je
2075
- })) : Re.length === 0 && !ye && !D && (lo = $o(/* @__PURE__ */ T(At, {
2076
- className: L.noOptions,
2077
- ownerState: N,
2069
+ children: v.options.map((de, Je) => Bo(de, v.index + Je))
2070
+ }) : Bo(v, ee))
2071
+ })) : B && Re.length === 0 ? lo = $o(/* @__PURE__ */ S(Mt, {
2072
+ className: A.loading,
2073
+ ownerState: D,
2074
+ children: Ve
2075
+ })) : Re.length === 0 && !ve && !B && (lo = $o(/* @__PURE__ */ S(Rt, {
2076
+ className: A.noOptions,
2077
+ ownerState: D,
2078
2078
  role: "presentation",
2079
2079
  onMouseDown: (v) => {
2080
2080
  v.preventDefault();
2081
2081
  },
2082
- children: R
2083
- }))), /* @__PURE__ */ De(b.Fragment, {
2084
- children: [/* @__PURE__ */ T(Pt, {
2082
+ children: M
2083
+ }))), /* @__PURE__ */ Be(m.Fragment, {
2084
+ children: [/* @__PURE__ */ S(Ot, {
2085
2085
  ref: a,
2086
- className: J(L.root, C),
2087
- ownerState: N,
2088
- ...Se(We),
2089
- children: se({
2090
- id: ge,
2091
- disabled: H,
2086
+ className: Q(A.root, b),
2087
+ ownerState: D,
2088
+ ...Pe(Ue),
2089
+ children: ce({
2090
+ id: be,
2091
+ disabled: W,
2092
2092
  fullWidth: !0,
2093
- size: Pe === "small" ? "small" : void 0,
2094
- InputLabelProps: te(),
2093
+ size: Se === "small" ? "small" : void 0,
2094
+ InputLabelProps: re(),
2095
2095
  InputProps: {
2096
- ref: vo,
2097
- className: L.inputRoot,
2098
- startAdornment: I,
2099
- onMouseDown: (v) => xo(v),
2100
- ...(_e || qe) && {
2101
- endAdornment: /* @__PURE__ */ De(St, {
2102
- className: L.endAdornment,
2103
- ownerState: N,
2104
- children: [_e ? /* @__PURE__ */ T(wt, {
2105
- ...ho(),
2106
- "aria-label": A,
2107
- title: A,
2108
- ownerState: N,
2096
+ ref: xo,
2097
+ className: A.inputRoot,
2098
+ startAdornment: C,
2099
+ onMouseDown: (v) => Io(v),
2100
+ ...(qe || Ge) && {
2101
+ endAdornment: /* @__PURE__ */ Be(wt, {
2102
+ className: A.endAdornment,
2103
+ ownerState: D,
2104
+ children: [qe ? /* @__PURE__ */ S(St, {
2105
+ ...yo(),
2106
+ "aria-label": L,
2107
+ title: L,
2108
+ ownerState: D,
2109
2109
  ...ro,
2110
- className: J(L.clearIndicator, ro == null ? void 0 : ro.className),
2111
- children: m
2112
- }) : null, qe ? /* @__PURE__ */ T(Tt, {
2113
- ...Y(),
2114
- disabled: H,
2115
- "aria-label": Te ? E : s,
2116
- title: Te ? E : s,
2117
- ownerState: N,
2110
+ className: Q(A.clearIndicator, ro == null ? void 0 : ro.className),
2111
+ children: P
2112
+ }) : null, Ge ? /* @__PURE__ */ S(Pt, {
2113
+ ...X(),
2114
+ disabled: W,
2115
+ "aria-label": ke ? T : s,
2116
+ title: ke ? T : s,
2117
+ ownerState: D,
2118
2118
  ...ao,
2119
- className: J(L.popupIndicator, ao == null ? void 0 : ao.className),
2120
- children: Ie
2119
+ className: Q(A.popupIndicator, ao == null ? void 0 : ao.className),
2120
+ children: Oe
2121
2121
  }) : null]
2122
2122
  })
2123
2123
  }
2124
2124
  },
2125
2125
  inputProps: {
2126
- className: L.input,
2127
- disabled: H,
2126
+ className: A.input,
2127
+ disabled: W,
2128
2128
  readOnly: He,
2129
2129
  ...eo()
2130
2130
  }
2131
2131
  })
2132
- }), ke ? lo : null]
2132
+ }), Me ? lo : null]
2133
2133
  });
2134
2134
  });
2135
- process.env.NODE_ENV !== "production" && (To.propTypes = {
2135
+ process.env.NODE_ENV !== "production" && (ko.propTypes = {
2136
2136
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2137
2137
  // │ These PropTypes are generated from the TypeScript type definitions. │
2138
2138
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2227,7 +2227,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
2227
2227
  * The default value. Use when the component is not controlled.
2228
2228
  * @default props.multiple ? [] : null
2229
2229
  */
2230
- defaultValue: wo(o.any, (e) => e.multiple && e.defaultValue !== void 0 && !Array.isArray(e.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${e.defaultValue} was provided.`].join(`
2230
+ defaultValue: To(o.any, (e) => e.multiple && e.defaultValue !== void 0 && !Array.isArray(e.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${e.defaultValue} was provided.`].join(`
2231
2231
  `)) : null),
2232
2232
  /**
2233
2233
  * If `true`, the input can't be cleared.
@@ -2365,7 +2365,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
2365
2365
  * Set `-1` to disable the limit.
2366
2366
  * @default -1
2367
2367
  */
2368
- limitTags: tt,
2368
+ limitTags: ot,
2369
2369
  /**
2370
2370
  * The component used to render the listbox.
2371
2371
  * @default 'ul'
@@ -2559,111 +2559,22 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
2559
2559
  * The value must have reference equality with the option in order to be selected.
2560
2560
  * You can customize the equality behavior with the `isOptionEqualToValue` prop.
2561
2561
  */
2562
- value: wo(o.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
2562
+ value: To(o.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
2563
2563
  `)) : null)
2564
2564
  });
2565
- const Et = ["colon", "borderFocusColor", "minWidth", "noLabel"], zt = Yo("div", { shouldForwardProp: (e) => !Et.includes(e) })(({ borderFocusColor: e, minWidth: n = "180px", multiple: a }) => ({
2566
- ...No`
2567
- display: flex;
2568
- flex-wrap: nowrap;
2569
- align-items: center;
2570
- gap: 9px;
2571
- font-family: 'Roboto', sans-serif;
2572
- min-width: ${n};
2573
-
2574
- fieldset {
2575
- border: none !important;
2576
- }
2577
-
2578
- .jcDropdownLabel {
2579
- white-space: nowrap;
2580
- font-weight: bold;
2581
- }
2582
-
2583
- .MuiAutocomplete-root {
2584
- width: 100%;
2585
- flex-grow: 1;
2586
- }
2587
-
2588
- .MuiInputBase-input {
2589
- padding: 0;
2590
- padding-right: 0px !important;
2591
- min-height: 0;
2592
- }
2593
-
2594
- .MuiInputBase-root {
2595
- padding: 0 !important;
2596
-
2597
- ${a && No`
2598
- display: flex;
2599
- align-items: start;
2600
- `};
2601
-
2602
- input {
2603
- height: 15px;
2604
- padding: 2px 0px 2px 0px !important;
2605
- width: 100%;
2606
- }
2607
-
2608
- transition: 313ms all ease-out;
2609
- border-radius: 0;
2610
- border-bottom: 1px solid ${Jo.colors.gray};
2611
- width: 100%;
2612
-
2613
- .Mui-select {
2614
- border: none !important;
2615
- }
2616
-
2617
- :hover,
2618
- :focus-visible,
2619
- &.Mui-focused {
2620
- box-shadow: 0 -5px 4px -4px ${e} inset;
2621
- }
2622
-
2623
- .MuiButtonBase-root {
2624
- max-height: 20px;
2625
- padding: 1px 2px;
2626
- margin: 1px 2px 2px 2px;
2627
- }
2628
-
2629
- .MuiChip-label {
2630
- font-size: 13px;
2631
- padding: 0 6px;
2632
- }
2633
-
2634
- .MuiSvgIcon-root {
2635
- margin: 0;
2636
- font-size: 13px;
2637
- height: 13px;
2638
- width: 13px;
2639
- }
2640
- }
2641
-
2642
- .MuiAutocomplete-endAdornment {
2643
- right: -7px !important;
2644
- }
2645
-
2646
- .MuiAutocomplete-clearIndicator {
2647
- font-size: 13px;
2648
- height: 19px;
2649
- width: 19px;
2650
-
2651
- svg {
2652
- height: 15px;
2653
- width: 15px;
2654
- }
2655
- }
2656
-
2657
- .MuiButtonBase-root {
2658
- padding: 2px;
2659
- }
2660
-
2661
- svg {
2662
- height: 19px;
2663
- width: 19px;
2664
- }
2665
- `
2666
- })), rn = ({
2565
+ const Bt = "flex flex-nowrap items-center gap-[9px] font-['Roboto',sans-serif] min-w-[var(--dropdown-min-width)] [&_fieldset]:!border-none [&_.Mui-select]:!border-none [&_svg]:h-[19px] [&_svg]:w-[19px]", Dt = "[&_.jcDropdownLabel]:whitespace-nowrap [&_.jcDropdownLabel]:font-bold [&_.jcDropdownLabel]:self-start", Nt = "[&_.required]:mx-[2px] [&_.required]:text-[var(--dropdown-required-color)]", Et = "[&_.MuiAutocomplete-root]:w-full [&_.MuiAutocomplete-root]:grow [&_.MuiAutocomplete-root]:self-start [&_.MuiAutocomplete-endAdornment]:!-right-[7px] [&_.MuiAutocomplete-clearIndicator]:text-[13px] [&_.MuiAutocomplete-clearIndicator]:h-[19px] [&_.MuiAutocomplete-clearIndicator]:w-[19px] [&_.MuiAutocomplete-clearIndicator_svg]:h-[15px] [&_.MuiAutocomplete-clearIndicator_svg]:w-[15px]", zt = "[&_.MuiInputBase-input]:!p-0 [&_.MuiInputBase-input]:!pr-0 [&_.MuiInputBase-input]:min-h-0", Vt = "[&_.MuiInputBase-root]:!p-0 [&_.MuiInputBase-root]:transition-all [&_.MuiInputBase-root]:duration-[313ms] [&_.MuiInputBase-root]:ease-out [&_.MuiInputBase-root]:!rounded-none [&_.MuiInputBase-root]:border-b [&_.MuiInputBase-root]:border-b-[var(--dropdown-border-color)] [&_.MuiInputBase-root]:w-full [&_.MuiInputBase-root]:!shadow-[var(--dropdown-default-shadow)] [&_.MuiInputBase-root:hover]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root:focus-visible]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root.Mui-focused]:!shadow-[var(--dropdown-active-shadow)]", Ft = "[&_.MuiInputBase-root_input]:h-[15px] [&_.MuiInputBase-root_input]:w-full [&_.MuiInputBase-root_input]:!py-[2px] [&_.MuiInputBase-root_input]:!px-0", jt = "[&_.MuiInputBase-root_.MuiChip-label]:text-[13px] [&_.MuiInputBase-root_.MuiChip-label]:px-[6px]", Ht = "[&_.MuiInputBase-root_.MuiSvgIcon-root]:m-0 [&_.MuiInputBase-root_.MuiSvgIcon-root]:text-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:h-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:w-[13px]", Ut = "[&_.MuiButtonBase-root]:p-[2px] [&_.MuiButtonBase-root]:max-h-5 [&_.MuiButtonBase-root]:px-[2px] [&_.MuiButtonBase-root]:py-px [&_.MuiButtonBase-root]:mx-[2px] [&_.MuiButtonBase-root]:mt-px [&_.MuiButtonBase-root]:mb-[2px]", Wt = "[&_.MuiFormHelperText-root]:!mt-px [&_.MuiFormHelperText-root]:!mr-0 [&_.MuiFormHelperText-root]:text-right", Kt = Ho(
2566
+ Bt,
2567
+ Dt,
2568
+ Nt,
2569
+ Et,
2570
+ zt,
2571
+ Vt,
2572
+ Ft,
2573
+ jt,
2574
+ Ht,
2575
+ Ut,
2576
+ Wt
2577
+ ), qt = "[&_.MuiInputBase-root]:!flex [&_.MuiInputBase-root]:!items-start", bn = ({
2667
2578
  label: e,
2668
2579
  colon: n = !0,
2669
2580
  options: a = [],
@@ -2673,47 +2584,61 @@ const Et = ["colon", "borderFocusColor", "minWidth", "noLabel"], zt = Yo("div",
2673
2584
  onChange: h,
2674
2585
  minWidth: x,
2675
2586
  multiple: y,
2676
- ...P
2587
+ required: w,
2588
+ error: b,
2589
+ helperText: P,
2590
+ ...R
2677
2591
  }) => {
2678
- const C = Xo();
2679
- return /* @__PURE__ */ De(
2680
- zt,
2592
+ const U = Jo(), L = {
2593
+ "--dropdown-min-width": x ?? "180px",
2594
+ "--dropdown-required-color": io.colors.gray,
2595
+ "--dropdown-border-color": io.colors.gray,
2596
+ "--dropdown-default-shadow": b ? `inset 0 -5px 4px -4px ${io.colors.error}` : "none",
2597
+ "--dropdown-active-shadow": `inset 0 -5px 4px -4px ${b ? io.colors.error : g || U.themeColor}`
2598
+ };
2599
+ return /* @__PURE__ */ Be(
2600
+ "div",
2681
2601
  {
2682
- className: "jcLabeledDropdown",
2683
- borderFocusColor: g || C.themeColor,
2684
- minWidth: x,
2685
- multiple: y,
2602
+ className: Ho("jcLabeledDropdown", Kt, y && qt),
2603
+ style: L,
2686
2604
  children: [
2687
- !i && /* @__PURE__ */ De("span", { className: "jcDropdownLabel", children: [
2605
+ !i && /* @__PURE__ */ Be("span", { className: "jcDropdownLabel", children: [
2688
2606
  e,
2607
+ w && /* @__PURE__ */ S("span", { className: "required", children: "*" }),
2689
2608
  n && ":"
2690
2609
  ] }),
2691
- !y && // @ts-ignore
2692
- /* @__PURE__ */ T(
2693
- To,
2610
+ !y && /* @__PURE__ */ S(
2611
+ ko,
2694
2612
  {
2613
+ ...R,
2695
2614
  options: a,
2696
- onChange: (m, w) => (
2697
- // @ts-ignore - Fix: Use nullish coalescing to avoid "undefined" string
2698
- h && h({ ...m, target: { ...m.target, value: (w == null ? void 0 : w.value) ?? "" } })
2699
- ),
2700
- ...P,
2701
- renderInput: (m) => /* @__PURE__ */ T(zo, { ...m })
2615
+ onChange: (T, N) => {
2616
+ if (!h || Array.isArray(N)) return;
2617
+ const te = {
2618
+ ...T,
2619
+ target: { ...T.target, value: (N == null ? void 0 : N.value) ?? "" }
2620
+ };
2621
+ h(te);
2622
+ },
2623
+ renderInput: (T) => /* @__PURE__ */ S(No, { ...T, error: b, helperText: P })
2702
2624
  }
2703
2625
  ),
2704
- y && // @ts-ignore
2705
- /* @__PURE__ */ T(
2706
- To,
2626
+ y && /* @__PURE__ */ S(
2627
+ ko,
2707
2628
  {
2629
+ ...R,
2708
2630
  multiple: !0,
2709
2631
  disableCloseOnSelect: !0,
2710
2632
  options: a,
2711
- onChange: (m, w) => (
2712
- // @ts-ignore
2713
- h && h({ ...m, target: { ...m.target, value: w } })
2714
- ),
2715
- ...P,
2716
- renderInput: (m) => /* @__PURE__ */ T(zo, { ...m })
2633
+ onChange: (T, N) => {
2634
+ if (!h || !Array.isArray(N)) return;
2635
+ const te = {
2636
+ ...T,
2637
+ target: { ...T.target, value: N }
2638
+ };
2639
+ h(te);
2640
+ },
2641
+ renderInput: (T) => /* @__PURE__ */ S(No, { ...T, error: b, helperText: P })
2717
2642
  }
2718
2643
  )
2719
2644
  ]
@@ -2721,6 +2646,6 @@ const Et = ["colon", "borderFocusColor", "minWidth", "noLabel"], zt = Yo("div",
2721
2646
  );
2722
2647
  };
2723
2648
  export {
2724
- rn as LabeledDropdown,
2725
- rn as default
2649
+ bn as LabeledDropdown,
2650
+ bn as default
2726
2651
  };