jcicl 1.0.5 → 1.0.7

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.
@@ -1,83 +1,84 @@
1
- import { jsx as w, jsxs as De } from "react/jsx-runtime";
2
- import { n as Jo } from "../.chunks/emotion-styled.browser.esm.js";
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
3
  import { c as No } from "../.chunks/emotion-react.browser.esm.js";
4
- import Ho from "../theme.js";
5
- import * as m from "react";
6
- import { g as po, a as co, s as F, c as f, u as uo, b as J, P as o, d as fo, e as V } from "../.chunks/DefaultPropsProvider.js";
7
- import { i as Io, a as be, b as Eo, f as Ae, A as Xo, T as zo } from "../.chunks/TextField.js";
8
- import { c as Wo } from "../.chunks/createSvgIcon.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, c as d, u as uo, b 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";
9
10
  import { m as ee } from "../.chunks/memoTheme.js";
10
11
  import { u as Oo } from "../.chunks/useSlot.js";
11
12
  import { c as Me } from "../.chunks/createSimplePaletteValueFilter.js";
12
13
  import { B as So } from "../.chunks/ButtonBase.js";
13
14
  import { c as wo } from "../.chunks/chainPropTypes.js";
14
- import { P as Ko } from "../.chunks/Popper.js";
15
- import { P as Go } from "../.chunks/Paper.js";
16
- import { u as Qo } from "../.chunks/Portal.js";
15
+ import { P as Wo } from "../.chunks/Popper.js";
16
+ import { P as Ko } from "../.chunks/Paper.js";
17
+ import { u as Zo } from "../.chunks/Portal.js";
17
18
  import { u as Po } from "../.chunks/useControlled.js";
18
- import { c as io, s as Zo, a as et } from "../.chunks/TransitionGroupContext.js";
19
- import { i as ot } from "../.chunks/integerPropType.js";
20
- function tt(e, n, a, i, b) {
19
+ import { c as io, s as et, a as ot } from "../.chunks/TransitionGroupContext.js";
20
+ import { i as tt } from "../.chunks/integerPropType.js";
21
+ function nt(e, n, a, i, g) {
21
22
  if (process.env.NODE_ENV === "production")
22
23
  return null;
23
- const h = b || n;
24
+ const h = g || n;
24
25
  return typeof e[n] < "u" ? new Error(`The prop \`${h}\` is not supported. Please remove it.`) : null;
25
26
  }
26
- const nt = (e) => {
27
- const n = m.useRef({});
28
- return m.useEffect(() => {
27
+ const rt = (e) => {
28
+ const n = b.useRef({});
29
+ return b.useEffect(() => {
29
30
  n.current = e;
30
31
  }), n.current;
31
32
  };
32
33
  function Vo(e) {
33
34
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
34
35
  }
35
- function rt(e = {}) {
36
+ function at(e = {}) {
36
37
  const {
37
38
  ignoreAccents: n = !0,
38
39
  ignoreCase: a = !0,
39
40
  limit: i,
40
- matchFrom: b = "any",
41
+ matchFrom: g = "any",
41
42
  stringify: h,
42
43
  trim: x = !1
43
44
  } = e;
44
45
  return (y, {
45
46
  inputValue: P,
46
- getOptionLabel: d
47
+ getOptionLabel: C
47
48
  }) => {
48
- let I = x ? P.trim() : P;
49
- a && (I = I.toLowerCase()), n && (I = Vo(I));
50
- const L = I ? y.filter((X) => {
51
- let A = (h || d)(X);
52
- return a && (A = A.toLowerCase()), n && (A = Vo(A)), b === "start" ? A.startsWith(I) : A.includes(I);
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);
53
54
  }) : y;
54
- return typeof i == "number" ? L.slice(0, i) : L;
55
+ return typeof i == "number" ? w.slice(0, i) : w;
55
56
  };
56
57
  }
57
- const at = rt(), Fo = 5, lt = (e) => {
58
+ const lt = at(), Fo = 5, it = (e) => {
58
59
  var n;
59
60
  return e.current !== null && ((n = e.current.parentElement) == null ? void 0 : n.contains(document.activeElement));
60
- }, it = [];
61
- function st(e) {
61
+ }, st = [];
62
+ function pt(e) {
62
63
  const {
63
64
  // eslint-disable-next-line @typescript-eslint/naming-convention
64
- unstable_isActiveElementInListbox: n = lt,
65
+ unstable_isActiveElementInListbox: n = it,
65
66
  // eslint-disable-next-line @typescript-eslint/naming-convention
66
67
  unstable_classNamePrefix: a = "Mui",
67
68
  autoComplete: i = !1,
68
- autoHighlight: b = !1,
69
+ autoHighlight: g = !1,
69
70
  autoSelect: h = !1,
70
71
  blurOnSelect: x = !1,
71
72
  clearOnBlur: y = !e.freeSolo,
72
73
  clearOnEscape: P = !1,
73
- componentName: d = "useAutocomplete",
74
- defaultValue: I = e.multiple ? it : null,
75
- disableClearable: L = !1,
74
+ componentName: C = "useAutocomplete",
75
+ defaultValue: m = e.multiple ? st : null,
76
+ disableClearable: w = !1,
76
77
  disableCloseOnSelect: X = !1,
77
78
  disabled: A,
78
79
  disabledItemsFocusable: E = !1,
79
80
  disableListWrap: ue = !1,
80
- filterOptions: Ne = at,
81
+ filterOptions: Ne = lt,
81
82
  filterSelectedOptions: me = !1,
82
83
  freeSolo: le = !1,
83
84
  getOptionDisabled: H,
@@ -89,7 +90,7 @@ function st(e) {
89
90
  includeInputInList: de = !1,
90
91
  inputValue: ye,
91
92
  isOptionEqualToValue: W = (r, t) => r === t,
92
- multiple: C = !1,
93
+ multiple: $ = !1,
93
94
  onChange: fe,
94
95
  onClose: _,
95
96
  onHighlightChange: ve,
@@ -101,33 +102,33 @@ function st(e) {
101
102
  readOnly: Ce = !1,
102
103
  selectOnFocus: Fe = !e.freeSolo,
103
104
  value: go
104
- } = e, U = Qo(Ve);
105
+ } = e, U = Zo(Ve);
105
106
  let D = Ee;
106
107
  D = (r) => {
107
108
  const t = Ee(r);
108
109
  if (typeof t != "string") {
109
110
  if (process.env.NODE_ENV !== "production") {
110
111
  const l = t === void 0 ? "undefined" : `${typeof t} (${t})`;
111
- console.error(`MUI: The \`getOptionLabel\` method of ${d} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
112
+ console.error(`MUI: The \`getOptionLabel\` method of ${C} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
112
113
  }
113
114
  return String(t);
114
115
  }
115
116
  return t;
116
117
  };
117
- const je = m.useRef(!1), Be = m.useRef(!0), k = m.useRef(null), K = m.useRef(null), [Ue, Lo] = m.useState(null), [G, Xe] = m.useState(-1), bo = b ? 0 : -1, z = m.useRef(bo), [s, Ao] = Po({
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({
118
119
  controlled: go,
119
- default: I,
120
- name: d
120
+ default: m,
121
+ name: C
121
122
  }), [S, $e] = Po({
122
123
  controlled: ye,
123
124
  default: "",
124
- name: d,
125
+ name: C,
125
126
  state: "inputValue"
126
- }), [Ie, He] = m.useState(!1), Oe = m.useCallback((r, t, l) => {
127
- if (!(C ? s.length < t.length : t !== null) && !y)
127
+ }), [Ie, He] = b.useState(!1), Oe = b.useCallback((r, t, l) => {
128
+ if (!($ ? s.length < t.length : t !== null) && !y)
128
129
  return;
129
130
  let c;
130
- if (C)
131
+ if ($)
131
132
  c = "";
132
133
  else if (t == null)
133
134
  c = "";
@@ -136,43 +137,43 @@ function st(e) {
136
137
  c = typeof O == "string" ? O : "";
137
138
  }
138
139
  S !== c && ($e(c), q && q(r, c, l));
139
- }, [D, S, C, q, $e, y, s]), [se, Qe] = Po({
140
+ }, [D, S, $, q, $e, y, s]), [se, Qe] = Po({
140
141
  controlled: xe,
141
142
  default: !1,
142
- name: d,
143
+ name: C,
143
144
  state: "open"
144
- }), [Ze, mo] = m.useState(!0), Pe = !C && s != null && S === D(s), j = se && !Ce, T = j ? Ne(
145
- Ro.filter((r) => !(me && (C ? s : [s]).some((t) => t !== null && W(r, t)))),
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)))),
146
147
  // we use the empty string to manipulate `filterOptions` to not filter any options
147
148
  // i.e. the filter predicate always returns true
148
149
  {
149
150
  inputValue: Pe && Ze ? "" : S,
150
151
  getOptionLabel: D
151
152
  }
152
- ) : [], Q = nt({
153
- filteredOptions: T,
153
+ ) : [], Q = rt({
154
+ filteredOptions: k,
154
155
  value: s,
155
156
  inputValue: S
156
157
  });
157
- m.useEffect(() => {
158
+ b.useEffect(() => {
158
159
  const r = s !== Q.value;
159
160
  Ie && !r || le && !r || Oe(null, s, "reset");
160
161
  }, [s, Oe, Ie, Q.value, le]);
161
- const We = se && T.length > 0 && !Ce, Se = io((r) => {
162
- r === -1 ? k.current.focus() : Ue.querySelector(`[data-tag-index="${r}"]`).focus();
162
+ const We = se && k.length > 0 && !Ce, Se = io((r) => {
163
+ r === -1 ? R.current.focus() : Ue.querySelector(`[data-tag-index="${r}"]`).focus();
163
164
  });
164
- m.useEffect(() => {
165
- C && G > s.length - 1 && (Xe(-1), Se(-1));
166
- }, [s, C, G, Se]);
165
+ b.useEffect(() => {
166
+ $ && G > s.length - 1 && (Xe(-1), Se(-1));
167
+ }, [s, $, G, Se]);
167
168
  function eo(r, t) {
168
- if (!K.current || r < 0 || r >= T.length)
169
+ if (!K.current || r < 0 || r >= k.length)
169
170
  return -1;
170
171
  let l = r;
171
172
  for (; ; ) {
172
173
  const p = K.current.querySelector(`[data-option-index="${l}"]`), c = E ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
173
174
  if (p && p.hasAttribute("tabindex") && !c)
174
175
  return l;
175
- if (t === "next" ? l = (l + 1) % T.length : l = (l - 1 + T.length) % T.length, l === r)
176
+ if (t === "next" ? l = (l + 1) % k.length : l = (l - 1 + k.length) % k.length, l === r)
176
177
  return -1;
177
178
  }
178
179
  }
@@ -181,7 +182,7 @@ function st(e) {
181
182
  index: t,
182
183
  reason: l = "auto"
183
184
  }) => {
184
- if (z.current = t, t === -1 ? k.current.removeAttribute("aria-activedescendant") : k.current.setAttribute("aria-activedescendant", `${U}-option-${t}`), ve && ve(r, t === -1 ? null : T[t], l), !K.current)
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
186
  return;
186
187
  const p = K.current.querySelector(`[role="option"].${a}-focused`);
187
188
  p && (p.classList.remove(`${a}-focused`), p.classList.remove(`${a}-focusVisible`));
@@ -194,8 +195,8 @@ function st(e) {
194
195
  }
195
196
  const O = K.current.querySelector(`[data-option-index="${t}"]`);
196
197
  if (O && (O.classList.add(`${a}-focused`), l === "keyboard" && O.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
197
- const $ = O, B = c.clientHeight + c.scrollTop, Le = $.offsetTop + $.offsetHeight;
198
- Le > B ? c.scrollTop = Le - c.clientHeight : $.offsetTop - $.offsetHeight * (oe ? 1.3 : 0) < c.scrollTop && (c.scrollTop = $.offsetTop - $.offsetHeight * (oe ? 1.3 : 0));
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));
199
200
  }
200
201
  }), Y = io(({
201
202
  event: r,
@@ -206,15 +207,15 @@ function st(e) {
206
207
  if (!j)
207
208
  return;
208
209
  const O = eo((() => {
209
- const $ = T.length - 1;
210
+ const I = k.length - 1;
210
211
  if (t === "reset")
211
212
  return bo;
212
213
  if (t === "start")
213
214
  return 0;
214
215
  if (t === "end")
215
- return $;
216
+ return I;
216
217
  const B = z.current + t;
217
- return B < 0 ? B === -1 && de ? -1 : ue && z.current !== -1 || Math.abs(t) > 1 ? 0 : $ : B > $ ? B === $ + 1 && de ? -1 : ue || Math.abs(t) > 1 ? $ : 0 : B;
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;
218
219
  })(), l);
219
220
  if (te({
220
221
  index: O,
@@ -222,23 +223,23 @@ function st(e) {
222
223
  event: r
223
224
  }), i && t !== "reset")
224
225
  if (O === -1)
225
- k.current.value = S;
226
+ R.current.value = S;
226
227
  else {
227
- const $ = D(T[O]);
228
- k.current.value = $, $.toLowerCase().indexOf(S.toLowerCase()) === 0 && S.length > 0 && k.current.setSelectionRange(S.length, $.length);
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);
229
230
  }
230
231
  }), ho = () => {
231
232
  const r = (t, l) => {
232
233
  const p = t ? D(t) : "", c = l ? D(l) : "";
233
234
  return p === c;
234
235
  };
235
- if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== T.length && Q.inputValue === S && (C ? s.length === Q.value.length && Q.value.every((t, l) => D(s[l]) === D(t)) : r(Q.value, s))) {
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))) {
236
237
  const t = Q.filteredOptions[z.current];
237
238
  if (t)
238
- return T.findIndex((l) => D(l) === D(t));
239
+ return k.findIndex((l) => D(l) === D(t));
239
240
  }
240
241
  return -1;
241
- }, Ke = m.useCallback(() => {
242
+ }, Ke = b.useCallback(() => {
242
243
  if (!j)
243
244
  return;
244
245
  const r = ho();
@@ -246,8 +247,8 @@ function st(e) {
246
247
  z.current = r;
247
248
  return;
248
249
  }
249
- const t = C ? s[0] : s;
250
- if (T.length === 0 || t == null) {
250
+ const t = $ ? s[0] : s;
251
+ if (k.length === 0 || t == null) {
251
252
  Y({
252
253
  diff: "reset"
253
254
  });
@@ -255,10 +256,10 @@ function st(e) {
255
256
  }
256
257
  if (K.current) {
257
258
  if (t != null) {
258
- const l = T[z.current];
259
- if (C && l && s.findIndex((c) => W(l, c)) !== -1)
259
+ const l = k[z.current];
260
+ if ($ && l && s.findIndex((c) => W(l, c)) !== -1)
260
261
  return;
261
- const p = T.findIndex((c) => W(c, t));
262
+ const p = k.findIndex((c) => W(c, t));
262
263
  p === -1 ? Y({
263
264
  diff: "reset"
264
265
  }) : te({
@@ -266,9 +267,9 @@ function st(e) {
266
267
  });
267
268
  return;
268
269
  }
269
- if (z.current >= T.length - 1) {
270
+ if (z.current >= k.length - 1) {
270
271
  te({
271
- index: T.length - 1
272
+ index: k.length - 1
272
273
  });
273
274
  return;
274
275
  }
@@ -278,24 +279,24 @@ function st(e) {
278
279
  }
279
280
  }, [
280
281
  // Only sync the highlighted index when the option switch between empty and not
281
- T.length,
282
+ k.length,
282
283
  // Don't sync the highlighted index with the value when multiple
283
284
  // eslint-disable-next-line react-hooks/exhaustive-deps
284
- C ? !1 : s,
285
+ $ ? !1 : s,
285
286
  me,
286
287
  Y,
287
288
  te,
288
289
  j,
289
290
  S,
290
- C
291
+ $
291
292
  ]), yo = io((r) => {
292
- Zo(K, r), r && Ke();
293
+ et(K, r), r && Ke();
293
294
  });
294
- process.env.NODE_ENV !== "production" && m.useEffect(() => {
295
- (!k.current || k.current.nodeName !== "INPUT") && (k.current && k.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${d} 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(`
296
- `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${k.current} while an HTMLInputElement was expected.`, `Instead, ${d} expects an input element.`, "", d === "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" && 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(`
297
298
  `)));
298
- }, [d]), m.useEffect(() => {
299
+ }, [C]), b.useEffect(() => {
299
300
  Ke();
300
301
  }, [Ke]);
301
302
  const ne = (r) => {
@@ -303,26 +304,26 @@ function st(e) {
303
304
  }, re = (r, t) => {
304
305
  se && (Qe(!1), _ && _(r, t));
305
306
  }, pe = (r, t, l, p) => {
306
- if (C) {
307
+ if ($) {
307
308
  if (s.length === t.length && s.every((c, O) => c === t[O]))
308
309
  return;
309
310
  } else if (s === t)
310
311
  return;
311
312
  fe && fe(r, t, l, p), Ao(t);
312
- }, we = m.useRef(!1), ge = (r, t, l = "selectOption", p = "options") => {
313
+ }, we = b.useRef(!1), ge = (r, t, l = "selectOption", p = "options") => {
313
314
  let c = l, O = t;
314
- if (C) {
315
+ if ($) {
315
316
  if (O = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
316
317
  const B = O.filter((Le) => W(t, Le));
317
- B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${d} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${B.length} matches.`].join(`
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(`
318
319
  `));
319
320
  }
320
- const $ = O.findIndex((B) => W(t, B));
321
- $ === -1 ? O.push(t) : p !== "freeSolo" && (O.splice($, 1), c = "removeOption");
321
+ const I = O.findIndex((B) => W(t, B));
322
+ I === -1 ? O.push(t) : p !== "freeSolo" && (O.splice(I, 1), c = "removeOption");
322
323
  }
323
324
  Oe(r, O, c), pe(r, O, c, {
324
325
  option: t
325
- }), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (x === !0 || x === "touch" && we.current || x === "mouse" && !we.current) && k.current.blur();
326
+ }), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (x === !0 || x === "touch" && we.current || x === "mouse" && !we.current) && R.current.blur();
326
327
  };
327
328
  function Te(r, t) {
328
329
  if (r === -1)
@@ -339,13 +340,13 @@ function st(e) {
339
340
  }
340
341
  }
341
342
  const Ge = (r, t) => {
342
- if (!C)
343
+ if (!$)
343
344
  return;
344
345
  S === "" && re(r, "toggleInput");
345
346
  let l = G;
346
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
348
  }, oo = (r) => {
348
- je.current = !0, $e(""), q && q(r, "", "clear"), pe(r, C ? [] : null, "clear");
349
+ je.current = !0, $e(""), q && q(r, "", "clear"), pe(r, $ ? [] : null, "clear");
349
350
  }, ke = (r) => (t) => {
350
351
  if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1), Se(-1)), t.which !== 229))
351
352
  switch (t.key) {
@@ -405,17 +406,17 @@ function st(e) {
405
406
  break;
406
407
  case "Enter":
407
408
  if (z.current !== -1 && j) {
408
- const l = T[z.current], p = H ? H(l) : !1;
409
+ const l = k[z.current], p = H ? H(l) : !1;
409
410
  if (t.preventDefault(), p)
410
411
  return;
411
- ge(t, l, "selectOption"), i && k.current.setSelectionRange(k.current.value.length, k.current.value.length);
412
- } else le && S !== "" && Pe === !1 && (C && t.preventDefault(), ge(t, S, "createOption", "freeSolo"));
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"));
413
414
  break;
414
415
  case "Escape":
415
- j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : P && (S !== "" || C && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
416
+ j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : P && (S !== "" || $ && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
416
417
  break;
417
418
  case "Backspace":
418
- if (C && !Ce && S === "" && s.length > 0) {
419
+ if ($ && !Ce && S === "" && s.length > 0) {
419
420
  const l = G === -1 ? s.length - 1 : G, p = s.slice();
420
421
  p.splice(l, 1), pe(t, p, "removeOption", {
421
422
  option: s[l]
@@ -423,7 +424,7 @@ function st(e) {
423
424
  }
424
425
  break;
425
426
  case "Delete":
426
- if (C && !Ce && S === "" && s.length > 0 && G !== -1) {
427
+ if ($ && !Ce && S === "" && s.length > 0 && G !== -1) {
427
428
  const l = G, p = s.slice();
428
429
  p.splice(l, 1), pe(t, p, "removeOption", {
429
430
  option: s[l]
@@ -435,13 +436,13 @@ function st(e) {
435
436
  He(!0), M && !je.current && ne(r);
436
437
  }, to = (r) => {
437
438
  if (n(K)) {
438
- k.current.focus();
439
+ R.current.focus();
439
440
  return;
440
441
  }
441
- He(!1), Be.current = !0, je.current = !1, h && z.current !== -1 && j ? ge(r, T[z.current], "blur") : h && le && S !== "" ? ge(r, S, "blur", "freeSolo") : y && Oe(r, s, "blur"), re(r, "blur");
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
443
  }, Re = (r) => {
443
444
  const t = r.target.value;
444
- S !== t && ($e(t), mo(!1), q && q(r, t, "input")), t === "" ? !L && !C && pe(r, null, "clear") : ne(r);
445
+ S !== t && ($e(t), mo(!1), q && q(r, t, "input")), t === "" ? !w && !$ && pe(r, null, "clear") : ne(r);
445
446
  }, _e = (r) => {
446
447
  const t = Number(r.currentTarget.getAttribute("data-option-index"));
447
448
  z.current !== t && te({
@@ -457,7 +458,7 @@ function st(e) {
457
458
  }), we.current = !0;
458
459
  }, xo = (r) => {
459
460
  const t = Number(r.currentTarget.getAttribute("data-option-index"));
460
- ge(r, T[t], "selectOption"), we.current = !1;
461
+ ge(r, k[t], "selectOption"), we.current = !1;
461
462
  }, Co = (r) => (t) => {
462
463
  const l = s.slice();
463
464
  l.splice(r, 1), pe(t, l, "removeOption", {
@@ -468,19 +469,19 @@ function st(e) {
468
469
  }, Mo = (r) => {
469
470
  r.currentTarget.contains(r.target) && r.target.getAttribute("id") !== U && r.preventDefault();
470
471
  }, Ye = (r) => {
471
- r.currentTarget.contains(r.target) && (k.current.focus(), Fe && Be.current && k.current.selectionEnd - k.current.selectionStart === 0 && k.current.select(), Be.current = !1);
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);
472
473
  }, N = (r) => {
473
474
  !A && (S === "" || !se) && (no(r), r.stopPropagation());
474
475
  };
475
- let R = le && S.length > 0;
476
- R = R || (C ? s.length > 0 : s !== null);
477
- let ae = T;
476
+ let L = le && S.length > 0;
477
+ L = L || ($ ? s.length > 0 : s !== null);
478
+ let ae = k;
478
479
  if (oe) {
479
480
  const r = /* @__PURE__ */ new Map();
480
481
  let t = !1;
481
- ae = T.reduce((l, p, c) => {
482
+ ae = k.reduce((l, p, c) => {
482
483
  const O = oe(p);
483
- 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 ${d} 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({
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({
484
485
  key: c,
485
486
  index: c,
486
487
  group: O,
@@ -516,7 +517,7 @@ function st(e) {
516
517
  // Disable browser's suggestion that might overlap with the popup.
517
518
  // Handle autocomplete but not autofill.
518
519
  autoComplete: "off",
519
- ref: k,
520
+ ref: R,
520
521
  autoCapitalize: "none",
521
522
  spellCheck: "false",
522
523
  role: "combobox",
@@ -556,7 +557,7 @@ function st(e) {
556
557
  index: r,
557
558
  option: t
558
559
  }) => {
559
- const l = (C ? s : [s]).some((c) => c != null && W(t, c)), p = H ? H(t) : !1;
560
+ const l = ($ ? s : [s]).some((c) => c != null && W(t, c)), p = H ? H(t) : !1;
560
561
  return {
561
562
  key: (he == null ? void 0 : he(t)) ?? D(t),
562
563
  tabIndex: -1,
@@ -573,7 +574,7 @@ function st(e) {
573
574
  id: U,
574
575
  inputValue: S,
575
576
  value: s,
576
- dirty: R,
577
+ dirty: L,
577
578
  expanded: j && Ue,
578
579
  popupOpen: j,
579
580
  focused: Ie || G !== -1,
@@ -583,29 +584,29 @@ function st(e) {
583
584
  groupedOptions: ae
584
585
  };
585
586
  }
586
- function pt(e) {
587
+ function ct(e) {
587
588
  return po("MuiListSubheader", e);
588
589
  }
589
590
  co("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
590
- const ct = (e) => {
591
+ const ut = (e) => {
591
592
  const {
592
593
  classes: n,
593
594
  color: a,
594
595
  disableGutters: i,
595
- inset: b,
596
+ inset: g,
596
597
  disableSticky: h
597
598
  } = e, x = {
598
- root: ["root", a !== "default" && `color${f(a)}`, !i && "gutters", b && "inset", !h && "sticky"]
599
+ root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !h && "sticky"]
599
600
  };
600
- return fo(x, pt, n);
601
- }, ut = F("li", {
601
+ return fo(x, ct, n);
602
+ }, dt = F("li", {
602
603
  name: "MuiListSubheader",
603
604
  slot: "Root",
604
605
  overridesResolver: (e, n) => {
605
606
  const {
606
607
  ownerState: a
607
608
  } = e;
608
- return [n.root, a.color !== "default" && n[`color${f(a.color)}`], !a.disableGutters && n.gutters, a.inset && n.inset, !a.disableSticky && n.sticky];
609
+ return [n.root, a.color !== "default" && n[`color${d(a.color)}`], !a.disableGutters && n.gutters, a.inset && n.inset, !a.disableSticky && n.sticky];
609
610
  }
610
611
  })(ee(({
611
612
  theme: e
@@ -657,32 +658,32 @@ const ct = (e) => {
657
658
  backgroundColor: (e.vars || e).palette.background.paper
658
659
  }
659
660
  }]
660
- }))), so = /* @__PURE__ */ m.forwardRef(function(n, a) {
661
+ }))), so = /* @__PURE__ */ b.forwardRef(function(n, a) {
661
662
  const i = uo({
662
663
  props: n,
663
664
  name: "MuiListSubheader"
664
665
  }), {
665
- className: b,
666
+ className: g,
666
667
  color: h = "default",
667
668
  component: x = "li",
668
669
  disableGutters: y = !1,
669
670
  disableSticky: P = !1,
670
- inset: d = !1,
671
- ...I
672
- } = i, L = {
671
+ inset: C = !1,
672
+ ...m
673
+ } = i, w = {
673
674
  ...i,
674
675
  color: h,
675
676
  component: x,
676
677
  disableGutters: y,
677
678
  disableSticky: P,
678
- inset: d
679
- }, X = ct(L);
680
- return /* @__PURE__ */ w(ut, {
679
+ inset: C
680
+ }, X = ut(w);
681
+ return /* @__PURE__ */ T(dt, {
681
682
  as: x,
682
- className: J(X.root, b),
683
+ className: J(X.root, g),
683
684
  ref: a,
684
- ownerState: L,
685
- ...I
685
+ ownerState: w,
686
+ ...m
686
687
  });
687
688
  });
688
689
  so && (so.muiSkipListHighlight = !0);
@@ -733,28 +734,28 @@ process.env.NODE_ENV !== "production" && (so.propTypes = {
733
734
  */
734
735
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
735
736
  });
736
- function dt(e) {
737
+ function ft(e) {
737
738
  return po("MuiIconButton", e);
738
739
  }
739
- const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), gt = (e) => {
740
+ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), bt = (e) => {
740
741
  const {
741
742
  classes: n,
742
743
  disabled: a,
743
744
  color: i,
744
- edge: b,
745
+ edge: g,
745
746
  size: h
746
747
  } = e, x = {
747
- root: ["root", a && "disabled", i !== "default" && `color${f(i)}`, b && `edge${f(b)}`, `size${f(h)}`]
748
+ root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(h)}`]
748
749
  };
749
- return fo(x, dt, n);
750
- }, bt = F(So, {
750
+ return fo(x, ft, n);
751
+ }, mt = F(So, {
751
752
  name: "MuiIconButton",
752
753
  slot: "Root",
753
754
  overridesResolver: (e, n) => {
754
755
  const {
755
756
  ownerState: a
756
757
  } = e;
757
- return [n.root, a.color !== "default" && n[`color${f(a.color)}`], a.edge && n[`edge${f(a.edge)}`], n[`size${f(a.size)}`]];
758
+ return [n.root, a.color !== "default" && n[`color${d(a.color)}`], a.edge && n[`edge${d(a.edge)}`], n[`size${d(a.size)}`]];
758
759
  }
759
760
  })(ee(({
760
761
  theme: e
@@ -860,39 +861,39 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
860
861
  fontSize: e.typography.pxToRem(28)
861
862
  }
862
863
  }],
863
- [`&.${ft.disabled}`]: {
864
+ [`&.${gt.disabled}`]: {
864
865
  backgroundColor: "transparent",
865
866
  color: (e.vars || e).palette.action.disabled
866
867
  }
867
- }))), ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
868
+ }))), ko = /* @__PURE__ */ b.forwardRef(function(n, a) {
868
869
  const i = uo({
869
870
  props: n,
870
871
  name: "MuiIconButton"
871
872
  }), {
872
- edge: b = !1,
873
+ edge: g = !1,
873
874
  children: h,
874
875
  className: x,
875
876
  color: y = "default",
876
877
  disabled: P = !1,
877
- disableFocusRipple: d = !1,
878
- disableRipple: I = !1,
879
- size: L = "medium",
878
+ disableFocusRipple: C = !1,
879
+ disableRipple: m = !1,
880
+ size: w = "medium",
880
881
  ...X
881
882
  } = i, A = {
882
883
  ...i,
883
- edge: b,
884
+ edge: g,
884
885
  color: y,
885
886
  disabled: P,
886
- disableFocusRipple: d,
887
- disableRipple: I,
888
- size: L
889
- }, E = gt(A);
890
- return /* @__PURE__ */ w(bt, {
887
+ disableFocusRipple: C,
888
+ disableRipple: m,
889
+ size: w
890
+ }, E = bt(A);
891
+ return /* @__PURE__ */ T(mt, {
891
892
  className: J(E.root, x),
892
893
  centerRipple: !0,
893
- focusRipple: !d,
894
+ focusRipple: !C,
894
895
  disabled: P,
895
- disableRipple: I,
896
+ disableRipple: m,
896
897
  ref: a,
897
898
  ...X,
898
899
  ownerState: A,
@@ -907,7 +908,7 @@ process.env.NODE_ENV !== "production" && (ko.propTypes = {
907
908
  /**
908
909
  * The icon to display.
909
910
  */
910
- children: wo(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(`
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
912
  `)) : null),
912
913
  /**
913
914
  * Override or extend the styles applied to the component.
@@ -961,31 +962,31 @@ process.env.NODE_ENV !== "production" && (ko.propTypes = {
961
962
  */
962
963
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
963
964
  });
964
- const mt = Wo(/* @__PURE__ */ w("path", {
965
+ const ht = Ho(/* @__PURE__ */ T("path", {
965
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"
966
967
  }), "Cancel");
967
- function ht(e) {
968
+ function yt(e) {
968
969
  return po("MuiChip", e);
969
970
  }
970
- const g = 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"]), yt = (e) => {
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
972
  const {
972
973
  classes: n,
973
974
  disabled: a,
974
975
  size: i,
975
- color: b,
976
+ color: g,
976
977
  iconColor: h,
977
978
  onDelete: x,
978
979
  clickable: y,
979
980
  variant: P
980
- } = e, d = {
981
- root: ["root", P, a && "disabled", `size${f(i)}`, `color${f(b)}`, y && "clickable", y && `clickableColor${f(b)}`, x && "deletable", x && `deletableColor${f(b)}`, `${P}${f(b)}`],
982
- label: ["label", `label${f(i)}`],
983
- avatar: ["avatar", `avatar${f(i)}`, `avatarColor${f(b)}`],
984
- icon: ["icon", `icon${f(i)}`, `iconColor${f(h)}`],
985
- deleteIcon: ["deleteIcon", `deleteIcon${f(i)}`, `deleteIconColor${f(b)}`, `deleteIcon${f(P)}Color${f(b)}`]
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)}`],
983
+ label: ["label", `label${d(i)}`],
984
+ avatar: ["avatar", `avatar${d(i)}`, `avatarColor${d(g)}`],
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
987
  };
987
- return fo(d, ht, n);
988
- }, vt = F("div", {
988
+ return fo(C, yt, n);
989
+ }, xt = F("div", {
989
990
  name: "MuiChip",
990
991
  slot: "Root",
991
992
  overridesResolver: (e, n) => {
@@ -993,33 +994,33 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
993
994
  ownerState: a
994
995
  } = e, {
995
996
  color: i,
996
- iconColor: b,
997
+ iconColor: g,
997
998
  clickable: h,
998
999
  onDelete: x,
999
1000
  size: y,
1000
1001
  variant: P
1001
1002
  } = a;
1002
1003
  return [{
1003
- [`& .${g.avatar}`]: n.avatar
1004
+ [`& .${f.avatar}`]: n.avatar
1004
1005
  }, {
1005
- [`& .${g.avatar}`]: n[`avatar${f(y)}`]
1006
+ [`& .${f.avatar}`]: n[`avatar${d(y)}`]
1006
1007
  }, {
1007
- [`& .${g.avatar}`]: n[`avatarColor${f(i)}`]
1008
+ [`& .${f.avatar}`]: n[`avatarColor${d(i)}`]
1008
1009
  }, {
1009
- [`& .${g.icon}`]: n.icon
1010
+ [`& .${f.icon}`]: n.icon
1010
1011
  }, {
1011
- [`& .${g.icon}`]: n[`icon${f(y)}`]
1012
+ [`& .${f.icon}`]: n[`icon${d(y)}`]
1012
1013
  }, {
1013
- [`& .${g.icon}`]: n[`iconColor${f(b)}`]
1014
+ [`& .${f.icon}`]: n[`iconColor${d(g)}`]
1014
1015
  }, {
1015
- [`& .${g.deleteIcon}`]: n.deleteIcon
1016
+ [`& .${f.deleteIcon}`]: n.deleteIcon
1016
1017
  }, {
1017
- [`& .${g.deleteIcon}`]: n[`deleteIcon${f(y)}`]
1018
+ [`& .${f.deleteIcon}`]: n[`deleteIcon${d(y)}`]
1018
1019
  }, {
1019
- [`& .${g.deleteIcon}`]: n[`deleteIconColor${f(i)}`]
1020
+ [`& .${f.deleteIcon}`]: n[`deleteIconColor${d(i)}`]
1020
1021
  }, {
1021
- [`& .${g.deleteIcon}`]: n[`deleteIcon${f(P)}Color${f(i)}`]
1022
- }, n.root, n[`size${f(y)}`], n[`color${f(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${f(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${f(i)}`], n[P], n[`${P}${f(i)}`]];
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)}`]];
1023
1024
  }
1024
1025
  })(ee(({
1025
1026
  theme: e
@@ -1049,11 +1050,11 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1049
1050
  // Remove `button` padding
1050
1051
  verticalAlign: "middle",
1051
1052
  boxSizing: "border-box",
1052
- [`&.${g.disabled}`]: {
1053
+ [`&.${f.disabled}`]: {
1053
1054
  opacity: (e.vars || e).palette.action.disabledOpacity,
1054
1055
  pointerEvents: "none"
1055
1056
  },
1056
- [`& .${g.avatar}`]: {
1057
+ [`& .${f.avatar}`]: {
1057
1058
  marginLeft: 5,
1058
1059
  marginRight: -6,
1059
1060
  width: 24,
@@ -1061,26 +1062,26 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1061
1062
  color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : n,
1062
1063
  fontSize: e.typography.pxToRem(12)
1063
1064
  },
1064
- [`& .${g.avatarColorPrimary}`]: {
1065
+ [`& .${f.avatarColorPrimary}`]: {
1065
1066
  color: (e.vars || e).palette.primary.contrastText,
1066
1067
  backgroundColor: (e.vars || e).palette.primary.dark
1067
1068
  },
1068
- [`& .${g.avatarColorSecondary}`]: {
1069
+ [`& .${f.avatarColorSecondary}`]: {
1069
1070
  color: (e.vars || e).palette.secondary.contrastText,
1070
1071
  backgroundColor: (e.vars || e).palette.secondary.dark
1071
1072
  },
1072
- [`& .${g.avatarSmall}`]: {
1073
+ [`& .${f.avatarSmall}`]: {
1073
1074
  marginLeft: 4,
1074
1075
  marginRight: -4,
1075
1076
  width: 18,
1076
1077
  height: 18,
1077
1078
  fontSize: e.typography.pxToRem(10)
1078
1079
  },
1079
- [`& .${g.icon}`]: {
1080
+ [`& .${f.icon}`]: {
1080
1081
  marginLeft: 5,
1081
1082
  marginRight: -6
1082
1083
  },
1083
- [`& .${g.deleteIcon}`]: {
1084
+ [`& .${f.deleteIcon}`]: {
1084
1085
  WebkitTapHighlightColor: "transparent",
1085
1086
  color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : V(e.palette.text.primary, 0.26),
1086
1087
  fontSize: 22,
@@ -1096,12 +1097,12 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1096
1097
  },
1097
1098
  style: {
1098
1099
  height: 24,
1099
- [`& .${g.icon}`]: {
1100
+ [`& .${f.icon}`]: {
1100
1101
  fontSize: 18,
1101
1102
  marginLeft: 4,
1102
1103
  marginRight: -4
1103
1104
  },
1104
- [`& .${g.deleteIcon}`]: {
1105
+ [`& .${f.deleteIcon}`]: {
1105
1106
  fontSize: 16,
1106
1107
  marginRight: 4,
1107
1108
  marginLeft: -4
@@ -1114,7 +1115,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1114
1115
  style: {
1115
1116
  backgroundColor: (e.vars || e).palette[a].main,
1116
1117
  color: (e.vars || e).palette[a].contrastText,
1117
- [`& .${g.deleteIcon}`]: {
1118
+ [`& .${f.deleteIcon}`]: {
1118
1119
  color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : V(e.palette[a].contrastText, 0.7),
1119
1120
  "&:hover, &:active": {
1120
1121
  color: (e.vars || e).palette[a].contrastText
@@ -1124,14 +1125,14 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1124
1125
  })), {
1125
1126
  props: (a) => a.iconColor === a.color,
1126
1127
  style: {
1127
- [`& .${g.icon}`]: {
1128
+ [`& .${f.icon}`]: {
1128
1129
  color: e.vars ? e.vars.palette.Chip.defaultIconColor : n
1129
1130
  }
1130
1131
  }
1131
1132
  }, {
1132
1133
  props: (a) => a.iconColor === a.color && a.color !== "default",
1133
1134
  style: {
1134
- [`& .${g.icon}`]: {
1135
+ [`& .${f.icon}`]: {
1135
1136
  color: "inherit"
1136
1137
  }
1137
1138
  }
@@ -1140,7 +1141,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1140
1141
  onDelete: !0
1141
1142
  },
1142
1143
  style: {
1143
- [`&.${g.focusVisible}`]: {
1144
+ [`&.${f.focusVisible}`]: {
1144
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
1146
  }
1146
1147
  }
@@ -1150,7 +1151,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1150
1151
  onDelete: !0
1151
1152
  },
1152
1153
  style: {
1153
- [`&.${g.focusVisible}`]: {
1154
+ [`&.${f.focusVisible}`]: {
1154
1155
  background: (e.vars || e).palette[a].dark
1155
1156
  }
1156
1157
  }
@@ -1165,7 +1166,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1165
1166
  "&:hover": {
1166
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
1168
  },
1168
- [`&.${g.focusVisible}`]: {
1169
+ [`&.${f.focusVisible}`]: {
1169
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
1171
  },
1171
1172
  "&:active": {
@@ -1178,7 +1179,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1178
1179
  clickable: !0
1179
1180
  },
1180
1181
  style: {
1181
- [`&:hover, &.${g.focusVisible}`]: {
1182
+ [`&:hover, &.${f.focusVisible}`]: {
1182
1183
  backgroundColor: (e.vars || e).palette[a].dark
1183
1184
  }
1184
1185
  }
@@ -1189,28 +1190,28 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1189
1190
  style: {
1190
1191
  backgroundColor: "transparent",
1191
1192
  border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
1192
- [`&.${g.clickable}:hover`]: {
1193
+ [`&.${f.clickable}:hover`]: {
1193
1194
  backgroundColor: (e.vars || e).palette.action.hover
1194
1195
  },
1195
- [`&.${g.focusVisible}`]: {
1196
+ [`&.${f.focusVisible}`]: {
1196
1197
  backgroundColor: (e.vars || e).palette.action.focus
1197
1198
  },
1198
- [`& .${g.avatar}`]: {
1199
+ [`& .${f.avatar}`]: {
1199
1200
  marginLeft: 4
1200
1201
  },
1201
- [`& .${g.avatarSmall}`]: {
1202
+ [`& .${f.avatarSmall}`]: {
1202
1203
  marginLeft: 2
1203
1204
  },
1204
- [`& .${g.icon}`]: {
1205
+ [`& .${f.icon}`]: {
1205
1206
  marginLeft: 4
1206
1207
  },
1207
- [`& .${g.iconSmall}`]: {
1208
+ [`& .${f.iconSmall}`]: {
1208
1209
  marginLeft: 2
1209
1210
  },
1210
- [`& .${g.deleteIcon}`]: {
1211
+ [`& .${f.deleteIcon}`]: {
1211
1212
  marginRight: 5
1212
1213
  },
1213
- [`& .${g.deleteIconSmall}`]: {
1214
+ [`& .${f.deleteIconSmall}`]: {
1214
1215
  marginRight: 3
1215
1216
  }
1216
1217
  }
@@ -1222,13 +1223,13 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1222
1223
  style: {
1223
1224
  color: (e.vars || e).palette[a].main,
1224
1225
  border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7)}`,
1225
- [`&.${g.clickable}:hover`]: {
1226
+ [`&.${f.clickable}:hover`]: {
1226
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
1228
  },
1228
- [`&.${g.focusVisible}`]: {
1229
+ [`&.${f.focusVisible}`]: {
1229
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
1231
  },
1231
- [`& .${g.deleteIcon}`]: {
1232
+ [`& .${f.deleteIcon}`]: {
1232
1233
  color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7),
1233
1234
  "&:hover, &:active": {
1234
1235
  color: (e.vars || e).palette[a].main
@@ -1237,7 +1238,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1237
1238
  }
1238
1239
  }))]
1239
1240
  };
1240
- })), xt = F("span", {
1241
+ })), Ct = F("span", {
1241
1242
  name: "MuiChip",
1242
1243
  slot: "Label",
1243
1244
  overridesResolver: (e, n) => {
@@ -1246,7 +1247,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1246
1247
  } = e, {
1247
1248
  size: i
1248
1249
  } = a;
1249
- return [n.label, n[`label${f(i)}`]];
1250
+ return [n.label, n[`label${d(i)}`]];
1250
1251
  }
1251
1252
  })({
1252
1253
  overflow: "hidden",
@@ -1284,19 +1285,19 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1284
1285
  function jo(e) {
1285
1286
  return e.key === "Backspace" || e.key === "Delete";
1286
1287
  }
1287
- const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
1288
+ const Go = /* @__PURE__ */ b.forwardRef(function(n, a) {
1288
1289
  const i = uo({
1289
1290
  props: n,
1290
1291
  name: "MuiChip"
1291
1292
  }), {
1292
- avatar: b,
1293
+ avatar: g,
1293
1294
  className: h,
1294
1295
  clickable: x,
1295
1296
  color: y = "default",
1296
1297
  component: P,
1297
- deleteIcon: d,
1298
- disabled: I = !1,
1299
- icon: L,
1298
+ deleteIcon: C,
1299
+ disabled: m = !1,
1300
+ icon: w,
1300
1301
  label: X,
1301
1302
  onClick: A,
1302
1303
  onDelete: E,
@@ -1308,23 +1309,23 @@ const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
1308
1309
  skipFocusWhenDisabled: he = !1,
1309
1310
  // TODO v6: Rename to `focusableWhenDisabled`.
1310
1311
  ...Ee
1311
- } = i, oe = m.useRef(null), ze = et(oe, a), Ve = (M) => {
1312
+ } = i, oe = b.useRef(null), ze = ot(oe, a), Ve = (M) => {
1312
1313
  M.stopPropagation(), E && E(M);
1313
1314
  }, de = (M) => {
1314
1315
  M.currentTarget === M.target && jo(M) && M.preventDefault(), ue && ue(M);
1315
1316
  }, ye = (M) => {
1316
1317
  M.currentTarget === M.target && E && jo(M) && E(M), Ne && Ne(M);
1317
- }, W = x !== !1 && A ? !0 : x, C = W || E ? So : P || "div", fe = {
1318
+ }, W = x !== !1 && A ? !0 : x, $ = W || E ? So : P || "div", fe = {
1318
1319
  ...i,
1319
- component: C,
1320
- disabled: I,
1320
+ component: $,
1321
+ disabled: m,
1321
1322
  size: me,
1322
1323
  color: y,
1323
- iconColor: /* @__PURE__ */ m.isValidElement(L) && L.props.color || y,
1324
+ iconColor: /* @__PURE__ */ b.isValidElement(w) && w.props.color || y,
1324
1325
  onDelete: !!E,
1325
1326
  clickable: W,
1326
1327
  variant: le
1327
- }, _ = yt(fe), ve = C === So ? {
1328
+ }, _ = vt(fe), ve = $ === So ? {
1328
1329
  component: P || "div",
1329
1330
  focusVisibleClassName: _.focusVisible,
1330
1331
  ...E && {
@@ -1332,40 +1333,40 @@ const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
1332
1333
  }
1333
1334
  } : {};
1334
1335
  let q = null;
1335
- E && (q = d && /* @__PURE__ */ m.isValidElement(d) ? /* @__PURE__ */ m.cloneElement(d, {
1336
- className: J(d.props.className, _.deleteIcon),
1336
+ E && (q = C && /* @__PURE__ */ b.isValidElement(C) ? /* @__PURE__ */ b.cloneElement(C, {
1337
+ className: J(C.props.className, _.deleteIcon),
1337
1338
  onClick: Ve
1338
- }) : /* @__PURE__ */ w(mt, {
1339
+ }) : /* @__PURE__ */ T(ht, {
1339
1340
  className: J(_.deleteIcon),
1340
1341
  onClick: Ve
1341
1342
  }));
1342
1343
  let ie = null;
1343
- b && /* @__PURE__ */ m.isValidElement(b) && (ie = /* @__PURE__ */ m.cloneElement(b, {
1344
- className: J(_.avatar, b.props.className)
1344
+ g && /* @__PURE__ */ b.isValidElement(g) && (ie = /* @__PURE__ */ b.cloneElement(g, {
1345
+ className: J(_.avatar, g.props.className)
1345
1346
  }));
1346
1347
  let xe = null;
1347
- return L && /* @__PURE__ */ m.isValidElement(L) && (xe = /* @__PURE__ */ m.cloneElement(L, {
1348
- className: J(_.icon, L.props.className)
1349
- })), 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(vt, {
1350
- as: C,
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: $,
1351
1352
  className: J(_.root, h),
1352
- disabled: W && I ? !0 : void 0,
1353
+ disabled: W && m ? !0 : void 0,
1353
1354
  onClick: A,
1354
1355
  onKeyDown: de,
1355
1356
  onKeyUp: ye,
1356
1357
  ref: ze,
1357
- tabIndex: he && I ? -1 : H,
1358
+ tabIndex: he && m ? -1 : H,
1358
1359
  ownerState: fe,
1359
1360
  ...ve,
1360
1361
  ...Ee,
1361
- children: [ie || xe, /* @__PURE__ */ w(xt, {
1362
+ children: [ie || xe, /* @__PURE__ */ T(Ct, {
1362
1363
  className: J(_.label),
1363
1364
  ownerState: fe,
1364
1365
  children: X
1365
1366
  }), q]
1366
1367
  });
1367
1368
  });
1368
- process.env.NODE_ENV !== "production" && (_o.propTypes = {
1369
+ process.env.NODE_ENV !== "production" && (Go.propTypes = {
1369
1370
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1370
1371
  // │ These PropTypes are generated from the TypeScript type definitions. │
1371
1372
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1378,7 +1379,7 @@ process.env.NODE_ENV !== "production" && (_o.propTypes = {
1378
1379
  * This prop isn't supported.
1379
1380
  * Use the `component` prop if you need to change the children structure.
1380
1381
  */
1381
- children: tt,
1382
+ children: nt,
1382
1383
  /**
1383
1384
  * Override or extend the styles applied to the component.
1384
1385
  */
@@ -1467,34 +1468,34 @@ process.env.NODE_ENV !== "production" && (_o.propTypes = {
1467
1468
  */
1468
1469
  variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
1469
1470
  });
1470
- const Ct = Wo(/* @__PURE__ */ w("path", {
1471
+ const $t = Ho(/* @__PURE__ */ T("path", {
1471
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"
1472
1473
  }), "Close");
1473
- function $t(e) {
1474
+ function It(e) {
1474
1475
  return po("MuiAutocomplete", e);
1475
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"]);
1477
1478
  var Bo, Uo;
1478
- const It = (e) => {
1479
+ const Ot = (e) => {
1479
1480
  const {
1480
1481
  classes: n,
1481
1482
  disablePortal: a,
1482
1483
  expanded: i,
1483
- focused: b,
1484
+ focused: g,
1484
1485
  fullWidth: h,
1485
1486
  hasClearIcon: x,
1486
1487
  hasPopupIcon: y,
1487
1488
  inputFocused: P,
1488
- popupOpen: d,
1489
- size: I
1490
- } = e, L = {
1491
- root: ["root", i && "expanded", b && "focused", h && "fullWidth", x && "hasClearIcon", y && "hasPopupIcon"],
1489
+ popupOpen: C,
1490
+ size: m
1491
+ } = e, w = {
1492
+ root: ["root", i && "expanded", g && "focused", h && "fullWidth", x && "hasClearIcon", y && "hasPopupIcon"],
1492
1493
  inputRoot: ["inputRoot"],
1493
1494
  input: ["input", P && "inputFocused"],
1494
- tag: ["tag", `tagSize${f(I)}`],
1495
+ tag: ["tag", `tagSize${d(m)}`],
1495
1496
  endAdornment: ["endAdornment"],
1496
1497
  clearIndicator: ["clearIndicator"],
1497
- popupIndicator: ["popupIndicator", d && "popupIndicatorOpen"],
1498
+ popupIndicator: ["popupIndicator", C && "popupIndicatorOpen"],
1498
1499
  popper: ["popper", a && "popperDisablePortal"],
1499
1500
  paper: ["paper"],
1500
1501
  listbox: ["listbox"],
@@ -1504,8 +1505,8 @@ const It = (e) => {
1504
1505
  groupLabel: ["groupLabel"],
1505
1506
  groupUl: ["groupUl"]
1506
1507
  };
1507
- return fo(L, $t, n);
1508
- }, Ot = F("div", {
1508
+ return fo(w, It, n);
1509
+ }, Pt = F("div", {
1509
1510
  name: "MuiAutocomplete",
1510
1511
  slot: "Root",
1511
1512
  overridesResolver: (e, n) => {
@@ -1513,7 +1514,7 @@ const It = (e) => {
1513
1514
  ownerState: a
1514
1515
  } = e, {
1515
1516
  fullWidth: i,
1516
- hasClearIcon: b,
1517
+ hasClearIcon: g,
1517
1518
  hasPopupIcon: h,
1518
1519
  inputFocused: x,
1519
1520
  size: y
@@ -1521,14 +1522,14 @@ const It = (e) => {
1521
1522
  return [{
1522
1523
  [`& .${u.tag}`]: n.tag
1523
1524
  }, {
1524
- [`& .${u.tag}`]: n[`tagSize${f(y)}`]
1525
+ [`& .${u.tag}`]: n[`tagSize${d(y)}`]
1525
1526
  }, {
1526
1527
  [`& .${u.inputRoot}`]: n.inputRoot
1527
1528
  }, {
1528
1529
  [`& .${u.input}`]: n.input
1529
1530
  }, {
1530
1531
  [`& .${u.input}`]: x && n.inputFocused
1531
- }, n.root, i && n.fullWidth, h && n.hasPopupIcon, b && n.hasClearIcon];
1532
+ }, n.root, i && n.fullWidth, h && n.hasPopupIcon, g && n.hasClearIcon];
1532
1533
  }
1533
1534
  })({
1534
1535
  [`&.${u.focused} .${u.clearIndicator}`]: {
@@ -1672,7 +1673,7 @@ const It = (e) => {
1672
1673
  }
1673
1674
  }
1674
1675
  }]
1675
- }), Pt = F("div", {
1676
+ }), St = F("div", {
1676
1677
  name: "MuiAutocomplete",
1677
1678
  slot: "EndAdornment",
1678
1679
  overridesResolver: (e, n) => n.endAdornment
@@ -1682,7 +1683,7 @@ const It = (e) => {
1682
1683
  right: 0,
1683
1684
  top: "50%",
1684
1685
  transform: "translate(0, -50%)"
1685
- }), St = F(ko, {
1686
+ }), wt = F(ko, {
1686
1687
  name: "MuiAutocomplete",
1687
1688
  slot: "ClearIndicator",
1688
1689
  overridesResolver: (e, n) => n.clearIndicator
@@ -1690,7 +1691,7 @@ const It = (e) => {
1690
1691
  marginRight: -2,
1691
1692
  padding: 4,
1692
1693
  visibility: "hidden"
1693
- }), wt = F(ko, {
1694
+ }), Tt = F(ko, {
1694
1695
  name: "MuiAutocomplete",
1695
1696
  slot: "PopupIndicator",
1696
1697
  overridesResolver: ({
@@ -1710,7 +1711,7 @@ const It = (e) => {
1710
1711
  transform: "rotate(180deg)"
1711
1712
  }
1712
1713
  }]
1713
- }), Tt = F(Ko, {
1714
+ }), kt = F(Wo, {
1714
1715
  name: "MuiAutocomplete",
1715
1716
  slot: "Popper",
1716
1717
  overridesResolver: (e, n) => {
@@ -1733,7 +1734,7 @@ const It = (e) => {
1733
1734
  position: "absolute"
1734
1735
  }
1735
1736
  }]
1736
- }))), kt = F(Go, {
1737
+ }))), Rt = F(Ko, {
1737
1738
  name: "MuiAutocomplete",
1738
1739
  slot: "Paper",
1739
1740
  overridesResolver: (e, n) => n.paper
@@ -1742,7 +1743,7 @@ const It = (e) => {
1742
1743
  }) => ({
1743
1744
  ...e.typography.body1,
1744
1745
  overflow: "auto"
1745
- }))), Rt = F("div", {
1746
+ }))), Lt = F("div", {
1746
1747
  name: "MuiAutocomplete",
1747
1748
  slot: "Loading",
1748
1749
  overridesResolver: (e, n) => n.loading
@@ -1751,7 +1752,7 @@ const It = (e) => {
1751
1752
  }) => ({
1752
1753
  color: (e.vars || e).palette.text.secondary,
1753
1754
  padding: "14px 16px"
1754
- }))), Lt = F("div", {
1755
+ }))), At = F("div", {
1755
1756
  name: "MuiAutocomplete",
1756
1757
  slot: "NoOptions",
1757
1758
  overridesResolver: (e, n) => n.noOptions
@@ -1760,7 +1761,7 @@ const It = (e) => {
1760
1761
  }) => ({
1761
1762
  color: (e.vars || e).palette.text.secondary,
1762
1763
  padding: "14px 16px"
1763
- }))), At = F("div", {
1764
+ }))), Mt = F("div", {
1764
1765
  name: "MuiAutocomplete",
1765
1766
  slot: "Listbox",
1766
1767
  overridesResolver: (e, n) => n.listbox
@@ -1818,7 +1819,7 @@ const It = (e) => {
1818
1819
  }
1819
1820
  }
1820
1821
  }
1821
- }))), Mt = F(so, {
1822
+ }))), Dt = F(so, {
1822
1823
  name: "MuiAutocomplete",
1823
1824
  slot: "GroupLabel",
1824
1825
  overridesResolver: (e, n) => n.groupLabel
@@ -1827,7 +1828,7 @@ const It = (e) => {
1827
1828
  }) => ({
1828
1829
  backgroundColor: (e.vars || e).palette.background.paper,
1829
1830
  top: -8
1830
- }))), Dt = F("ul", {
1831
+ }))), Nt = F("ul", {
1831
1832
  name: "MuiAutocomplete",
1832
1833
  slot: "GroupUl",
1833
1834
  overridesResolver: (e, n) => n.groupUl
@@ -1836,21 +1837,21 @@ const It = (e) => {
1836
1837
  [`& .${u.option}`]: {
1837
1838
  paddingLeft: 24
1838
1839
  }
1839
- }), To = /* @__PURE__ */ m.forwardRef(function(n, a) {
1840
+ }), To = /* @__PURE__ */ b.forwardRef(function(n, a) {
1840
1841
  const i = uo({
1841
1842
  props: n,
1842
1843
  name: "MuiAutocomplete"
1843
1844
  }), {
1844
- autoComplete: b = !1,
1845
+ autoComplete: g = !1,
1845
1846
  autoHighlight: h = !1,
1846
1847
  autoSelect: x = !1,
1847
1848
  blurOnSelect: y = !1,
1848
1849
  ChipProps: P,
1849
- className: d,
1850
- clearIcon: I = Bo || (Bo = /* @__PURE__ */ w(Ct, {
1850
+ className: C,
1851
+ clearIcon: m = Bo || (Bo = /* @__PURE__ */ T($t, {
1851
1852
  fontSize: "small"
1852
1853
  })),
1853
- clearOnBlur: L = !i.freeSolo,
1854
+ clearOnBlur: w = !i.freeSolo,
1854
1855
  clearOnEscape: X = !1,
1855
1856
  clearText: A = "Clear",
1856
1857
  closeText: E = "Close",
@@ -1867,7 +1868,7 @@ const It = (e) => {
1867
1868
  forcePopupIcon: de = "auto",
1868
1869
  freeSolo: ye = !1,
1869
1870
  fullWidth: W = !1,
1870
- getLimitTagsText: C = (v) => `+${v}`,
1871
+ getLimitTagsText: $ = (v) => `+${v}`,
1871
1872
  getOptionDisabled: fe,
1872
1873
  getOptionKey: _,
1873
1874
  getOptionLabel: ve,
@@ -1883,7 +1884,7 @@ const It = (e) => {
1883
1884
  loading: D = !1,
1884
1885
  loadingText: je = "Loading…",
1885
1886
  multiple: Be = !1,
1886
- noOptionsText: k = "No options",
1887
+ noOptionsText: R = "No options",
1887
1888
  onChange: K,
1888
1889
  onClose: Ue,
1889
1890
  onHighlightChange: Lo,
@@ -1895,7 +1896,7 @@ const It = (e) => {
1895
1896
  options: Ao,
1896
1897
  PaperComponent: S,
1897
1898
  PopperComponent: $e,
1898
- popupIcon: Ie = Uo || (Uo = /* @__PURE__ */ w(Xo, {})),
1899
+ popupIcon: Ie = Uo || (Uo = /* @__PURE__ */ T(Qo, {})),
1899
1900
  readOnly: He = !1,
1900
1901
  renderGroup: Oe,
1901
1902
  renderInput: se,
@@ -1904,7 +1905,7 @@ const It = (e) => {
1904
1905
  selectOnFocus: mo = !i.freeSolo,
1905
1906
  size: Pe = "medium",
1906
1907
  slots: j = {},
1907
- slotProps: T = {},
1908
+ slotProps: k = {},
1908
1909
  value: Q,
1909
1910
  ...We
1910
1911
  } = i, {
@@ -1927,7 +1928,7 @@ const It = (e) => {
1927
1928
  setAnchorEl: vo,
1928
1929
  inputValue: to,
1929
1930
  groupedOptions: Re
1930
- } = st({
1931
+ } = pt({
1931
1932
  ...i,
1932
1933
  componentName: "Autocomplete"
1933
1934
  }), _e = !me && !H && pe && !He, qe = (!ye || de === !0) && de !== !1, {
@@ -1947,7 +1948,7 @@ const It = (e) => {
1947
1948
  inputFocused: oo === -1,
1948
1949
  popupOpen: Te,
1949
1950
  size: Pe
1950
- }, R = It(N), ae = {
1951
+ }, L = Ot(N), ae = {
1951
1952
  slots: {
1952
1953
  listbox: go,
1953
1954
  paper: S,
@@ -1958,25 +1959,25 @@ const It = (e) => {
1958
1959
  chip: P,
1959
1960
  listbox: U,
1960
1961
  ...ue,
1961
- ...T
1962
+ ...k
1962
1963
  }
1963
1964
  }, [r, t] = Oo("listbox", {
1964
1965
  elementType: "ul",
1965
1966
  externalForwardedProps: ae,
1966
1967
  ownerState: N,
1967
- className: R.listbox,
1968
+ className: L.listbox,
1968
1969
  additionalProps: no,
1969
1970
  ref: Co
1970
1971
  }), [l, p] = Oo("paper", {
1971
- elementType: Go,
1972
+ elementType: Ko,
1972
1973
  externalForwardedProps: ae,
1973
1974
  ownerState: N,
1974
- className: R.paper
1975
+ className: L.paper
1975
1976
  }), [c, O] = Oo("popper", {
1976
- elementType: Ko,
1977
+ elementType: Wo,
1977
1978
  externalForwardedProps: ae,
1978
1979
  ownerState: N,
1979
- className: R.popper,
1980
+ className: L.popper,
1980
1981
  additionalProps: {
1981
1982
  disablePortal: oe,
1982
1983
  style: {
@@ -1987,52 +1988,52 @@ const It = (e) => {
1987
1988
  open: Te
1988
1989
  }
1989
1990
  });
1990
- let $;
1991
+ let I;
1991
1992
  if (Be && re.length > 0) {
1992
1993
  const v = (Z) => ({
1993
- className: R.tag,
1994
+ className: L.tag,
1994
1995
  disabled: H,
1995
1996
  ...Ke(Z)
1996
1997
  });
1997
- Ze ? $ = Ze(re, v, N) : $ = re.map((Z, ce) => {
1998
+ Ze ? I = Ze(re, v, N) : I = re.map((Z, ce) => {
1998
1999
  const {
1999
2000
  key: Je,
2000
- ...Yo
2001
+ ...qo
2001
2002
  } = v({
2002
2003
  index: ce
2003
2004
  });
2004
- return /* @__PURE__ */ w(_o, {
2005
+ return /* @__PURE__ */ T(Go, {
2005
2006
  label: Ye(Z),
2006
2007
  size: Pe,
2007
- ...Yo,
2008
+ ...qo,
2008
2009
  ...ae.slotProps.chip
2009
2010
  }, Je);
2010
2011
  });
2011
2012
  }
2012
- if (Fe > -1 && Array.isArray($)) {
2013
- const v = $.length - Fe;
2014
- !Ge && v > 0 && ($ = $.splice(0, Fe), $.push(/* @__PURE__ */ w("span", {
2015
- className: R.tag,
2016
- children: C(v)
2017
- }, $.length)));
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)));
2018
2019
  }
2019
2020
  const Le = Oe || ((v) => /* @__PURE__ */ De("li", {
2020
- children: [/* @__PURE__ */ w(Mt, {
2021
- className: R.groupLabel,
2021
+ children: [/* @__PURE__ */ T(Dt, {
2022
+ className: L.groupLabel,
2022
2023
  ownerState: N,
2023
2024
  component: "div",
2024
2025
  children: v.group
2025
- }), /* @__PURE__ */ w(Dt, {
2026
- className: R.groupUl,
2026
+ }), /* @__PURE__ */ T(Nt, {
2027
+ className: L.groupUl,
2027
2028
  ownerState: N,
2028
2029
  children: v.children
2029
2030
  })]
2030
- }, v.key)), qo = Qe || ((v, Z) => {
2031
+ }, v.key)), _o = Qe || ((v, Z) => {
2031
2032
  const {
2032
2033
  key: ce,
2033
2034
  ...Je
2034
2035
  } = v;
2035
- return /* @__PURE__ */ w("li", {
2036
+ return /* @__PURE__ */ T("li", {
2036
2037
  ...Je,
2037
2038
  children: Ye(Z)
2038
2039
  }, ce);
@@ -2041,25 +2042,25 @@ const It = (e) => {
2041
2042
  option: v,
2042
2043
  index: Z
2043
2044
  });
2044
- return qo({
2045
+ return _o({
2045
2046
  ...ce,
2046
- className: R.option
2047
+ className: L.option
2047
2048
  }, v, {
2048
2049
  selected: ce["aria-selected"],
2049
2050
  index: Z,
2050
2051
  inputValue: to
2051
2052
  }, N);
2052
- }, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, $o = (v) => /* @__PURE__ */ w(Tt, {
2053
+ }, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, $o = (v) => /* @__PURE__ */ T(kt, {
2053
2054
  as: c,
2054
2055
  ...O,
2055
- children: /* @__PURE__ */ w(kt, {
2056
+ children: /* @__PURE__ */ T(Rt, {
2056
2057
  as: l,
2057
2058
  ...p,
2058
2059
  children: v
2059
2060
  })
2060
2061
  });
2061
2062
  let lo = null;
2062
- return Re.length > 0 ? lo = $o(/* @__PURE__ */ w(At, {
2063
+ return Re.length > 0 ? lo = $o(/* @__PURE__ */ T(Mt, {
2063
2064
  as: r,
2064
2065
  ...t,
2065
2066
  children: Re.map((v, Z) => ie ? Le({
@@ -2067,22 +2068,22 @@ const It = (e) => {
2067
2068
  group: v.group,
2068
2069
  children: v.options.map((ce, Je) => Do(ce, v.index + Je))
2069
2070
  }) : Do(v, Z))
2070
- })) : D && Re.length === 0 ? lo = $o(/* @__PURE__ */ w(Rt, {
2071
- className: R.loading,
2071
+ })) : D && Re.length === 0 ? lo = $o(/* @__PURE__ */ T(Lt, {
2072
+ className: L.loading,
2072
2073
  ownerState: N,
2073
2074
  children: je
2074
- })) : Re.length === 0 && !ye && !D && (lo = $o(/* @__PURE__ */ w(Lt, {
2075
- className: R.noOptions,
2075
+ })) : Re.length === 0 && !ye && !D && (lo = $o(/* @__PURE__ */ T(At, {
2076
+ className: L.noOptions,
2076
2077
  ownerState: N,
2077
2078
  role: "presentation",
2078
2079
  onMouseDown: (v) => {
2079
2080
  v.preventDefault();
2080
2081
  },
2081
- children: k
2082
- }))), /* @__PURE__ */ De(m.Fragment, {
2083
- children: [/* @__PURE__ */ w(Ot, {
2082
+ children: R
2083
+ }))), /* @__PURE__ */ De(b.Fragment, {
2084
+ children: [/* @__PURE__ */ T(Pt, {
2084
2085
  ref: a,
2085
- className: J(R.root, d),
2086
+ className: J(L.root, C),
2086
2087
  ownerState: N,
2087
2088
  ...Se(We),
2088
2089
  children: se({
@@ -2093,36 +2094,36 @@ const It = (e) => {
2093
2094
  InputLabelProps: te(),
2094
2095
  InputProps: {
2095
2096
  ref: vo,
2096
- className: R.inputRoot,
2097
- startAdornment: $,
2097
+ className: L.inputRoot,
2098
+ startAdornment: I,
2098
2099
  onMouseDown: (v) => xo(v),
2099
2100
  ...(_e || qe) && {
2100
- endAdornment: /* @__PURE__ */ De(Pt, {
2101
- className: R.endAdornment,
2101
+ endAdornment: /* @__PURE__ */ De(St, {
2102
+ className: L.endAdornment,
2102
2103
  ownerState: N,
2103
- children: [_e ? /* @__PURE__ */ w(St, {
2104
+ children: [_e ? /* @__PURE__ */ T(wt, {
2104
2105
  ...ho(),
2105
2106
  "aria-label": A,
2106
2107
  title: A,
2107
2108
  ownerState: N,
2108
2109
  ...ro,
2109
- className: J(R.clearIndicator, ro == null ? void 0 : ro.className),
2110
- children: I
2111
- }) : null, qe ? /* @__PURE__ */ w(wt, {
2110
+ className: J(L.clearIndicator, ro == null ? void 0 : ro.className),
2111
+ children: m
2112
+ }) : null, qe ? /* @__PURE__ */ T(Tt, {
2112
2113
  ...Y(),
2113
2114
  disabled: H,
2114
2115
  "aria-label": Te ? E : s,
2115
2116
  title: Te ? E : s,
2116
2117
  ownerState: N,
2117
2118
  ...ao,
2118
- className: J(R.popupIndicator, ao == null ? void 0 : ao.className),
2119
+ className: J(L.popupIndicator, ao == null ? void 0 : ao.className),
2119
2120
  children: Ie
2120
2121
  }) : null]
2121
2122
  })
2122
2123
  }
2123
2124
  },
2124
2125
  inputProps: {
2125
- className: R.input,
2126
+ className: L.input,
2126
2127
  disabled: H,
2127
2128
  readOnly: He,
2128
2129
  ...eo()
@@ -2364,7 +2365,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
2364
2365
  * Set `-1` to disable the limit.
2365
2366
  * @default -1
2366
2367
  */
2367
- limitTags: ot,
2368
+ limitTags: tt,
2368
2369
  /**
2369
2370
  * The component used to render the listbox.
2370
2371
  * @default 'ul'
@@ -2561,7 +2562,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
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
2563
  `)) : null)
2563
2564
  });
2564
- const Nt = ["colon", "borderFocusColor", "minWidth", "noLabel"], Et = Jo("div", { shouldForwardProp: (e) => !Nt.includes(e) })(({ borderFocusColor: e, minWidth: n = "180px", multiple: a }) => ({
2565
+ const Et = ["colon", "borderFocusColor", "minWidth", "noLabel"], zt = Yo("div", { shouldForwardProp: (e) => !Et.includes(e) })(({ borderFocusColor: e, minWidth: n = "180px", multiple: a }) => ({
2565
2566
  ...No`
2566
2567
  display: flex;
2567
2568
  flex-wrap: nowrap;
@@ -2606,7 +2607,7 @@ const Nt = ["colon", "borderFocusColor", "minWidth", "noLabel"], Et = Jo("div",
2606
2607
 
2607
2608
  transition: 313ms all ease-out;
2608
2609
  border-radius: 0;
2609
- border-bottom: 1px solid ${Ho.colors.gray};
2610
+ border-bottom: 1px solid ${Jo.colors.gray};
2610
2611
  width: 100%;
2611
2612
 
2612
2613
  .Mui-select {
@@ -2662,61 +2663,64 @@ const Nt = ["colon", "borderFocusColor", "minWidth", "noLabel"], Et = Jo("div",
2662
2663
  width: 19px;
2663
2664
  }
2664
2665
  `
2665
- })), tn = ({
2666
+ })), rn = ({
2666
2667
  label: e,
2667
2668
  colon: n = !0,
2668
2669
  options: a = [],
2669
2670
  noLabel: i = !1,
2670
- borderFocusColor: b = Ho.colors.green,
2671
- // border primary
2671
+ borderFocusColor: g,
2672
+ // borderPrimary
2672
2673
  onChange: h,
2673
2674
  minWidth: x,
2674
2675
  multiple: y,
2675
2676
  ...P
2676
- }) => /* @__PURE__ */ De(
2677
- Et,
2678
- {
2679
- className: "jcLabeledDropdown",
2680
- borderFocusColor: b,
2681
- minWidth: x,
2682
- multiple: y,
2683
- children: [
2684
- !i && /* @__PURE__ */ De("span", { className: "jcDropdownLabel", children: [
2685
- e,
2686
- n && ":"
2687
- ] }),
2688
- !y && // @ts-ignore
2689
- /* @__PURE__ */ w(
2690
- To,
2691
- {
2692
- options: a,
2693
- onChange: (d, I) => (
2694
- // @ts-ignore
2695
- h && h({ ...d, target: { ...d.target, value: `${I == null ? void 0 : I.value}` || "" } })
2696
- ),
2697
- ...P,
2698
- renderInput: (d) => /* @__PURE__ */ w(zo, { ...d })
2699
- }
2700
- ),
2701
- y && // @ts-ignore
2702
- /* @__PURE__ */ w(
2703
- To,
2704
- {
2705
- multiple: !0,
2706
- disableCloseOnSelect: !0,
2707
- options: a,
2708
- onChange: (d, I) => (
2709
- // @ts-ignore
2710
- h && h({ ...d, target: { ...d.target, value: I } })
2711
- ),
2712
- ...P,
2713
- renderInput: (d) => /* @__PURE__ */ w(zo, { ...d })
2714
- }
2715
- )
2716
- ]
2717
- }
2718
- );
2677
+ }) => {
2678
+ const C = Xo();
2679
+ return /* @__PURE__ */ De(
2680
+ zt,
2681
+ {
2682
+ className: "jcLabeledDropdown",
2683
+ borderFocusColor: g || C.themeColor,
2684
+ minWidth: x,
2685
+ multiple: y,
2686
+ children: [
2687
+ !i && /* @__PURE__ */ De("span", { className: "jcDropdownLabel", children: [
2688
+ e,
2689
+ n && ":"
2690
+ ] }),
2691
+ !y && // @ts-ignore
2692
+ /* @__PURE__ */ T(
2693
+ To,
2694
+ {
2695
+ options: a,
2696
+ onChange: (m, w) => (
2697
+ // @ts-ignore
2698
+ h && h({ ...m, target: { ...m.target, value: `${w == null ? void 0 : w.value}` || "" } })
2699
+ ),
2700
+ ...P,
2701
+ renderInput: (m) => /* @__PURE__ */ T(zo, { ...m })
2702
+ }
2703
+ ),
2704
+ y && // @ts-ignore
2705
+ /* @__PURE__ */ T(
2706
+ To,
2707
+ {
2708
+ multiple: !0,
2709
+ disableCloseOnSelect: !0,
2710
+ 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 })
2717
+ }
2718
+ )
2719
+ ]
2720
+ }
2721
+ );
2722
+ };
2719
2723
  export {
2720
- tn as LabeledDropdown,
2721
- tn as default
2724
+ rn as LabeledDropdown,
2725
+ rn as default
2722
2726
  };