jcicl 0.0.195 → 0.0.199

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.
@@ -15,11 +15,11 @@ import { P as Ho } from "../.chunks/Popper.js";
15
15
  import { a as Zo } from "../.chunks/Portal.js";
16
16
  import { u as Po } from "../.chunks/useControlled.js";
17
17
  import { b as io, s as et, u as ot } from "../.chunks/TransitionGroupContext.js";
18
- function tt(e, n, a, i, g) {
18
+ function tt(e, n, a, i, f) {
19
19
  if (process.env.NODE_ENV === "production")
20
20
  return null;
21
- const x = g || n;
22
- return typeof e[n] < "u" ? new Error(`The prop \`${x}\` is not supported. Please remove it.`) : null;
21
+ const $ = f || n;
22
+ return typeof e[n] < "u" ? new Error(`The prop \`${$}\` is not supported. Please remove it.`) : null;
23
23
  }
24
24
  const nt = (e) => {
25
25
  const n = b.useRef({});
@@ -35,20 +35,20 @@ function rt(e = {}) {
35
35
  ignoreAccents: n = !0,
36
36
  ignoreCase: a = !0,
37
37
  limit: i,
38
- matchFrom: g = "any",
39
- stringify: x,
40
- trim: h = !1
38
+ matchFrom: f = "any",
39
+ stringify: $,
40
+ trim: y = !1
41
41
  } = e;
42
- return (I, {
43
- inputValue: P,
44
- getOptionLabel: C
42
+ return (m, {
43
+ inputValue: C,
44
+ getOptionLabel: I
45
45
  }) => {
46
- let k = h ? P.trim() : P;
46
+ let k = y ? C.trim() : C;
47
47
  a && (k = k.toLowerCase()), n && (k = Mo(k));
48
- const L = k ? I.filter((X) => {
49
- let A = (x || C)(X);
50
- return a && (A = A.toLowerCase()), n && (A = Mo(A)), g === "start" ? A.startsWith(k) : A.includes(k);
51
- }) : I;
48
+ const L = k ? m.filter((X) => {
49
+ let A = ($ || I)(X);
50
+ return a && (A = A.toLowerCase()), n && (A = Mo(A)), f === "start" ? A.startsWith(k) : A.includes(k);
51
+ }) : m;
52
52
  return typeof i == "number" ? L.slice(0, i) : L;
53
53
  };
54
54
  }
@@ -63,12 +63,12 @@ function st(e) {
63
63
  // eslint-disable-next-line @typescript-eslint/naming-convention
64
64
  unstable_classNamePrefix: a = "Mui",
65
65
  autoComplete: i = !1,
66
- autoHighlight: g = !1,
67
- autoSelect: x = !1,
68
- blurOnSelect: h = !1,
69
- clearOnBlur: I = !e.freeSolo,
70
- clearOnEscape: P = !1,
71
- componentName: C = "useAutocomplete",
66
+ autoHighlight: f = !1,
67
+ autoSelect: $ = !1,
68
+ blurOnSelect: y = !1,
69
+ clearOnBlur: m = !e.freeSolo,
70
+ clearOnEscape: C = !1,
71
+ componentName: I = "useAutocomplete",
72
72
  defaultValue: k = e.multiple ? it : null,
73
73
  disableClearable: L = !1,
74
74
  disableCloseOnSelect: X = !1,
@@ -87,7 +87,7 @@ function st(e) {
87
87
  includeInputInList: de = !1,
88
88
  inputValue: ye,
89
89
  isOptionEqualToValue: W = (r, t) => r === t,
90
- multiple: y = !1,
90
+ multiple: v = !1,
91
91
  onChange: fe,
92
92
  onClose: _,
93
93
  onHighlightChange: ve,
@@ -96,7 +96,7 @@ function st(e) {
96
96
  open: xe,
97
97
  openOnFocus: D = !1,
98
98
  options: ko,
99
- readOnly: Ce = !1,
99
+ readOnly: $e = !1,
100
100
  selectOnFocus: Fe = !e.freeSolo,
101
101
  value: go
102
102
  } = e, U = Zo(Ve);
@@ -106,62 +106,62 @@ function st(e) {
106
106
  if (typeof t != "string") {
107
107
  if (process.env.NODE_ENV !== "production") {
108
108
  const l = t === void 0 ? "undefined" : `${typeof t} (${t})`;
109
- console.error(`MUI: The \`getOptionLabel\` method of ${C} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
109
+ console.error(`MUI: The \`getOptionLabel\` method of ${I} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
110
110
  }
111
111
  return String(t);
112
112
  }
113
113
  return t;
114
114
  };
115
- const je = b.useRef(!1), Be = b.useRef(!0), w = b.useRef(null), K = b.useRef(null), [Ue, Ro] = b.useState(null), [G, Xe] = b.useState(-1), bo = g ? 0 : -1, z = b.useRef(bo), [s, Lo] = Po({
115
+ const je = b.useRef(!1), Be = b.useRef(!0), w = b.useRef(null), K = b.useRef(null), [Ue, Ro] = b.useState(null), [G, Xe] = b.useState(-1), bo = f ? 0 : -1, z = b.useRef(bo), [s, Lo] = Po({
116
116
  controlled: go,
117
117
  default: k,
118
- name: C
119
- }), [O, $e] = Po({
118
+ name: I
119
+ }), [P, Ce] = Po({
120
120
  controlled: ye,
121
121
  default: "",
122
- name: C,
122
+ name: I,
123
123
  state: "inputValue"
124
124
  }), [Ie, He] = b.useState(!1), Oe = b.useCallback((r, t, l) => {
125
- if (!(y ? s.length < t.length : t !== null) && !I)
125
+ if (!(v ? s.length < t.length : t !== null) && !m)
126
126
  return;
127
127
  let c;
128
- if (y)
128
+ if (v)
129
129
  c = "";
130
130
  else if (t == null)
131
131
  c = "";
132
132
  else {
133
- const $ = N(t);
134
- c = typeof $ == "string" ? $ : "";
133
+ const O = N(t);
134
+ c = typeof O == "string" ? O : "";
135
135
  }
136
- O !== c && ($e(c), q && q(r, c, l));
137
- }, [N, O, y, q, $e, I, s]), [se, Qe] = Po({
136
+ P !== c && (Ce(c), q && q(r, c, l));
137
+ }, [N, P, v, q, Ce, m, s]), [se, Qe] = Po({
138
138
  controlled: xe,
139
139
  default: !1,
140
- name: C,
140
+ name: I,
141
141
  state: "open"
142
- }), [Ze, mo] = b.useState(!0), Pe = !y && s != null && O === N(s), j = se && !Ce, S = j ? Me(
143
- ko.filter((r) => !(me && (y ? s : [s]).some((t) => t !== null && W(r, t)))),
142
+ }), [Ze, mo] = b.useState(!0), Pe = !v && s != null && P === N(s), j = se && !$e, S = j ? Me(
143
+ ko.filter((r) => !(me && (v ? s : [s]).some((t) => t !== null && W(r, t)))),
144
144
  // we use the empty string to manipulate `filterOptions` to not filter any options
145
145
  // i.e. the filter predicate always returns true
146
146
  {
147
- inputValue: Pe && Ze ? "" : O,
147
+ inputValue: Pe && Ze ? "" : P,
148
148
  getOptionLabel: N
149
149
  }
150
150
  ) : [], Q = nt({
151
151
  filteredOptions: S,
152
152
  value: s,
153
- inputValue: O
153
+ inputValue: P
154
154
  });
155
155
  b.useEffect(() => {
156
156
  const r = s !== Q.value;
157
157
  Ie && !r || le && !r || Oe(null, s, "reset");
158
158
  }, [s, Oe, Ie, Q.value, le]);
159
- const We = se && S.length > 0 && !Ce, Se = io((r) => {
159
+ const We = se && S.length > 0 && !$e, Se = io((r) => {
160
160
  r === -1 ? w.current.focus() : Ue.querySelector(`[data-tag-index="${r}"]`).focus();
161
161
  });
162
162
  b.useEffect(() => {
163
- y && G > s.length - 1 && (Xe(-1), Se(-1));
164
- }, [s, y, G, Se]);
163
+ v && G > s.length - 1 && (Xe(-1), Se(-1));
164
+ }, [s, v, G, Se]);
165
165
  function eo(r, t) {
166
166
  if (!K.current || r < 0 || r >= S.length)
167
167
  return -1;
@@ -190,10 +190,10 @@ function st(e) {
190
190
  c.scrollTop = 0;
191
191
  return;
192
192
  }
193
- const $ = K.current.querySelector(`[data-option-index="${t}"]`);
194
- if ($ && ($.classList.add(`${a}-focused`), l === "keyboard" && $.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
195
- const v = $, B = c.clientHeight + c.scrollTop, Le = v.offsetTop + v.offsetHeight;
196
- Le > B ? c.scrollTop = Le - c.clientHeight : v.offsetTop - v.offsetHeight * (oe ? 1.3 : 0) < c.scrollTop && (c.scrollTop = v.offsetTop - v.offsetHeight * (oe ? 1.3 : 0));
193
+ const O = K.current.querySelector(`[data-option-index="${t}"]`);
194
+ if (O && (O.classList.add(`${a}-focused`), l === "keyboard" && O.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
195
+ const x = O, B = c.clientHeight + c.scrollTop, Le = x.offsetTop + x.offsetHeight;
196
+ Le > B ? c.scrollTop = Le - c.clientHeight : x.offsetTop - x.offsetHeight * (oe ? 1.3 : 0) < c.scrollTop && (c.scrollTop = x.offsetTop - x.offsetHeight * (oe ? 1.3 : 0));
197
197
  }
198
198
  }), Y = io(({
199
199
  event: r,
@@ -203,34 +203,34 @@ function st(e) {
203
203
  }) => {
204
204
  if (!j)
205
205
  return;
206
- const $ = eo((() => {
207
- const v = S.length - 1;
206
+ const O = eo((() => {
207
+ const x = S.length - 1;
208
208
  if (t === "reset")
209
209
  return bo;
210
210
  if (t === "start")
211
211
  return 0;
212
212
  if (t === "end")
213
- return v;
213
+ return x;
214
214
  const B = z.current + t;
215
- return B < 0 ? B === -1 && de ? -1 : ue && z.current !== -1 || Math.abs(t) > 1 ? 0 : v : B > v ? B === v + 1 && de ? -1 : ue || Math.abs(t) > 1 ? v : 0 : B;
215
+ return B < 0 ? B === -1 && de ? -1 : ue && z.current !== -1 || Math.abs(t) > 1 ? 0 : x : B > x ? B === x + 1 && de ? -1 : ue || Math.abs(t) > 1 ? x : 0 : B;
216
216
  })(), l);
217
217
  if (te({
218
- index: $,
218
+ index: O,
219
219
  reason: p,
220
220
  event: r
221
221
  }), i && t !== "reset")
222
- if ($ === -1)
223
- w.current.value = O;
222
+ if (O === -1)
223
+ w.current.value = P;
224
224
  else {
225
- const v = N(S[$]);
226
- w.current.value = v, v.toLowerCase().indexOf(O.toLowerCase()) === 0 && O.length > 0 && w.current.setSelectionRange(O.length, v.length);
225
+ const x = N(S[O]);
226
+ w.current.value = x, x.toLowerCase().indexOf(P.toLowerCase()) === 0 && P.length > 0 && w.current.setSelectionRange(P.length, x.length);
227
227
  }
228
228
  }), ho = () => {
229
229
  const r = (t, l) => {
230
230
  const p = t ? N(t) : "", c = l ? N(l) : "";
231
231
  return p === c;
232
232
  };
233
- if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== S.length && Q.inputValue === O && (y ? s.length === Q.value.length && Q.value.every((t, l) => N(s[l]) === N(t)) : r(Q.value, s))) {
233
+ if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== S.length && Q.inputValue === P && (v ? s.length === Q.value.length && Q.value.every((t, l) => N(s[l]) === N(t)) : r(Q.value, s))) {
234
234
  const t = Q.filteredOptions[z.current];
235
235
  if (t)
236
236
  return S.findIndex((l) => N(l) === N(t));
@@ -244,7 +244,7 @@ function st(e) {
244
244
  z.current = r;
245
245
  return;
246
246
  }
247
- const t = y ? s[0] : s;
247
+ const t = v ? s[0] : s;
248
248
  if (S.length === 0 || t == null) {
249
249
  Y({
250
250
  diff: "reset"
@@ -254,7 +254,7 @@ function st(e) {
254
254
  if (K.current) {
255
255
  if (t != null) {
256
256
  const l = S[z.current];
257
- if (y && l && s.findIndex((c) => W(l, c)) !== -1)
257
+ if (v && l && s.findIndex((c) => W(l, c)) !== -1)
258
258
  return;
259
259
  const p = S.findIndex((c) => W(c, t));
260
260
  p === -1 ? Y({
@@ -279,21 +279,21 @@ function st(e) {
279
279
  S.length,
280
280
  // Don't sync the highlighted index with the value when multiple
281
281
  // eslint-disable-next-line react-hooks/exhaustive-deps
282
- y ? !1 : s,
282
+ v ? !1 : s,
283
283
  me,
284
284
  Y,
285
285
  te,
286
286
  j,
287
- O,
288
- y
287
+ P,
288
+ v
289
289
  ]), yo = io((r) => {
290
290
  et(K, r), r && Ke();
291
291
  });
292
292
  process.env.NODE_ENV !== "production" && b.useEffect(() => {
293
- (!w.current || w.current.nodeName !== "INPUT") && (w.current && w.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(`
294
- `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${w.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(`
293
+ (!w.current || w.current.nodeName !== "INPUT") && (w.current && w.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${I} 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(`
294
+ `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${w.current} while an HTMLInputElement was expected.`, `Instead, ${I} expects an input element.`, "", I === "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
295
  `)));
296
- }, [C]), b.useEffect(() => {
296
+ }, [I]), b.useEffect(() => {
297
297
  Ke();
298
298
  }, [Ke]);
299
299
  const ne = (r) => {
@@ -301,26 +301,26 @@ function st(e) {
301
301
  }, re = (r, t) => {
302
302
  se && (Qe(!1), _ && _(r, t));
303
303
  }, pe = (r, t, l, p) => {
304
- if (y) {
305
- if (s.length === t.length && s.every((c, $) => c === t[$]))
304
+ if (v) {
305
+ if (s.length === t.length && s.every((c, O) => c === t[O]))
306
306
  return;
307
307
  } else if (s === t)
308
308
  return;
309
309
  fe && fe(r, t, l, p), Lo(t);
310
310
  }, we = b.useRef(!1), ge = (r, t, l = "selectOption", p = "options") => {
311
- let c = l, $ = t;
312
- if (y) {
313
- if ($ = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
314
- const B = $.filter((Le) => W(t, Le));
315
- 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(`
311
+ let c = l, O = t;
312
+ if (v) {
313
+ if (O = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
314
+ const B = O.filter((Le) => W(t, Le));
315
+ B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${I} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${B.length} matches.`].join(`
316
316
  `));
317
317
  }
318
- const v = $.findIndex((B) => W(t, B));
319
- v === -1 ? $.push(t) : p !== "freeSolo" && ($.splice(v, 1), c = "removeOption");
318
+ const x = O.findIndex((B) => W(t, B));
319
+ x === -1 ? O.push(t) : p !== "freeSolo" && (O.splice(x, 1), c = "removeOption");
320
320
  }
321
- Oe(r, $, c), pe(r, $, c, {
321
+ Oe(r, O, c), pe(r, O, c, {
322
322
  option: t
323
- }), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (h === !0 || h === "touch" && we.current || h === "mouse" && !we.current) && w.current.blur();
323
+ }), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (y === !0 || y === "touch" && we.current || y === "mouse" && !we.current) && w.current.blur();
324
324
  };
325
325
  function Te(r, t) {
326
326
  if (r === -1)
@@ -337,13 +337,13 @@ function st(e) {
337
337
  }
338
338
  }
339
339
  const Ge = (r, t) => {
340
- if (!y)
340
+ if (!v)
341
341
  return;
342
- O === "" && re(r, "toggleInput");
342
+ P === "" && re(r, "toggleInput");
343
343
  let l = G;
344
- G === -1 ? O === "" && 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);
344
+ G === -1 ? P === "" && 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);
345
345
  }, oo = (r) => {
346
- je.current = !0, $e(""), q && q(r, "", "clear"), pe(r, y ? [] : null, "clear");
346
+ je.current = !0, Ce(""), q && q(r, "", "clear"), pe(r, v ? [] : null, "clear");
347
347
  }, ke = (r) => (t) => {
348
348
  if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1), Se(-1)), t.which !== 229))
349
349
  switch (t.key) {
@@ -407,13 +407,13 @@ function st(e) {
407
407
  if (t.preventDefault(), p)
408
408
  return;
409
409
  ge(t, l, "selectOption"), i && w.current.setSelectionRange(w.current.value.length, w.current.value.length);
410
- } else le && O !== "" && Pe === !1 && (y && t.preventDefault(), ge(t, O, "createOption", "freeSolo"));
410
+ } else le && P !== "" && Pe === !1 && (v && t.preventDefault(), ge(t, P, "createOption", "freeSolo"));
411
411
  break;
412
412
  case "Escape":
413
- j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : P && (O !== "" || y && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
413
+ j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : C && (P !== "" || v && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
414
414
  break;
415
415
  case "Backspace":
416
- if (y && !Ce && O === "" && s.length > 0) {
416
+ if (v && !$e && P === "" && s.length > 0) {
417
417
  const l = G === -1 ? s.length - 1 : G, p = s.slice();
418
418
  p.splice(l, 1), pe(t, p, "removeOption", {
419
419
  option: s[l]
@@ -421,7 +421,7 @@ function st(e) {
421
421
  }
422
422
  break;
423
423
  case "Delete":
424
- if (y && !Ce && O === "" && s.length > 0 && G !== -1) {
424
+ if (v && !$e && P === "" && s.length > 0 && G !== -1) {
425
425
  const l = G, p = s.slice();
426
426
  p.splice(l, 1), pe(t, p, "removeOption", {
427
427
  option: s[l]
@@ -436,10 +436,10 @@ function st(e) {
436
436
  w.current.focus();
437
437
  return;
438
438
  }
439
- He(!1), Be.current = !0, je.current = !1, x && z.current !== -1 && j ? ge(r, S[z.current], "blur") : x && le && O !== "" ? ge(r, O, "blur", "freeSolo") : I && Oe(r, s, "blur"), re(r, "blur");
439
+ He(!1), Be.current = !0, je.current = !1, $ && z.current !== -1 && j ? ge(r, S[z.current], "blur") : $ && le && P !== "" ? ge(r, P, "blur", "freeSolo") : m && Oe(r, s, "blur"), re(r, "blur");
440
440
  }, Re = (r) => {
441
441
  const t = r.target.value;
442
- O !== t && ($e(t), mo(!1), q && q(r, t, "input")), t === "" ? !L && !y && pe(r, null, "clear") : ne(r);
442
+ P !== t && (Ce(t), mo(!1), q && q(r, t, "input")), t === "" ? !L && !v && pe(r, null, "clear") : ne(r);
443
443
  }, _e = (r) => {
444
444
  const t = Number(r.currentTarget.getAttribute("data-option-index"));
445
445
  z.current !== t && te({
@@ -456,7 +456,7 @@ function st(e) {
456
456
  }, xo = (r) => {
457
457
  const t = Number(r.currentTarget.getAttribute("data-option-index"));
458
458
  ge(r, S[t], "selectOption"), we.current = !1;
459
- }, Co = (r) => (t) => {
459
+ }, $o = (r) => (t) => {
460
460
  const l = s.slice();
461
461
  l.splice(r, 1), pe(t, l, "removeOption", {
462
462
  option: s[r]
@@ -468,20 +468,20 @@ function st(e) {
468
468
  }, Ye = (r) => {
469
469
  r.currentTarget.contains(r.target) && (w.current.focus(), Fe && Be.current && w.current.selectionEnd - w.current.selectionStart === 0 && w.current.select(), Be.current = !1);
470
470
  }, M = (r) => {
471
- !A && (O === "" || !se) && (no(r), r.stopPropagation());
471
+ !A && (P === "" || !se) && (no(r), r.stopPropagation());
472
472
  };
473
- let R = le && O.length > 0;
474
- R = R || (y ? s.length > 0 : s !== null);
473
+ let R = le && P.length > 0;
474
+ R = R || (v ? s.length > 0 : s !== null);
475
475
  let ae = S;
476
476
  if (oe) {
477
477
  const r = /* @__PURE__ */ new Map();
478
478
  let t = !1;
479
479
  ae = S.reduce((l, p, c) => {
480
- const $ = oe(p);
481
- 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 ${C} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set($, !0)), l.push({
480
+ const O = oe(p);
481
+ 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 ${I} 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
482
  key: c,
483
483
  index: c,
484
- group: $,
484
+ group: O,
485
485
  options: [p]
486
486
  })), l;
487
487
  }, []);
@@ -500,7 +500,7 @@ function st(e) {
500
500
  }),
501
501
  getInputProps: () => ({
502
502
  id: U,
503
- value: O,
503
+ value: P,
504
504
  onBlur: to,
505
505
  onFocus: vo,
506
506
  onChange: Re,
@@ -537,8 +537,8 @@ function st(e) {
537
537
  key: r,
538
538
  "data-tag-index": r,
539
539
  tabIndex: -1,
540
- ...!Ce && {
541
- onDelete: Co(r)
540
+ ...!$e && {
541
+ onDelete: $o(r)
542
542
  }
543
543
  }),
544
544
  getListboxProps: () => ({
@@ -554,7 +554,7 @@ function st(e) {
554
554
  index: r,
555
555
  option: t
556
556
  }) => {
557
- const l = (y ? s : [s]).some((c) => c != null && W(t, c)), p = H ? H(t) : !1;
557
+ const l = (v ? s : [s]).some((c) => c != null && W(t, c)), p = H ? H(t) : !1;
558
558
  return {
559
559
  key: (he == null ? void 0 : he(t)) ?? N(t),
560
560
  tabIndex: -1,
@@ -569,7 +569,7 @@ function st(e) {
569
569
  };
570
570
  },
571
571
  id: U,
572
- inputValue: O,
572
+ inputValue: P,
573
573
  value: s,
574
574
  dirty: R,
575
575
  expanded: j && Ue,
@@ -590,12 +590,12 @@ const ct = (e) => {
590
590
  classes: n,
591
591
  color: a,
592
592
  disableGutters: i,
593
- inset: g,
594
- disableSticky: x
595
- } = e, h = {
596
- root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !x && "sticky"]
593
+ inset: f,
594
+ disableSticky: $
595
+ } = e, y = {
596
+ root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", f && "inset", !$ && "sticky"]
597
597
  };
598
- return fo(h, pt, n);
598
+ return fo(y, pt, n);
599
599
  }, ut = F("li", {
600
600
  name: "MuiListSubheader",
601
601
  slot: "Root",
@@ -660,24 +660,24 @@ const ct = (e) => {
660
660
  props: n,
661
661
  name: "MuiListSubheader"
662
662
  }), {
663
- className: g,
664
- color: x = "default",
665
- component: h = "li",
666
- disableGutters: I = !1,
667
- disableSticky: P = !1,
668
- inset: C = !1,
663
+ className: f,
664
+ color: $ = "default",
665
+ component: y = "li",
666
+ disableGutters: m = !1,
667
+ disableSticky: C = !1,
668
+ inset: I = !1,
669
669
  ...k
670
670
  } = i, L = {
671
671
  ...i,
672
- color: x,
673
- component: h,
674
- disableGutters: I,
675
- disableSticky: P,
676
- inset: C
672
+ color: $,
673
+ component: y,
674
+ disableGutters: m,
675
+ disableSticky: C,
676
+ inset: I
677
677
  }, X = ct(L);
678
678
  return /* @__PURE__ */ T(ut, {
679
- as: h,
680
- className: J(X.root, g),
679
+ as: y,
680
+ className: J(X.root, f),
681
681
  ref: a,
682
682
  ownerState: L,
683
683
  ...k
@@ -739,12 +739,12 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
739
739
  classes: n,
740
740
  disabled: a,
741
741
  color: i,
742
- edge: g,
743
- size: x
744
- } = e, h = {
745
- root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(x)}`]
742
+ edge: f,
743
+ size: $
744
+ } = e, y = {
745
+ root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, f && `edge${d(f)}`, `size${d($)}`]
746
746
  };
747
- return fo(h, dt, n);
747
+ return fo(y, dt, n);
748
748
  }, bt = F(So, {
749
749
  name: "MuiIconButton",
750
750
  slot: "Root",
@@ -867,34 +867,34 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
867
867
  props: n,
868
868
  name: "MuiIconButton"
869
869
  }), {
870
- edge: g = !1,
871
- children: x,
872
- className: h,
873
- color: I = "default",
874
- disabled: P = !1,
875
- disableFocusRipple: C = !1,
870
+ edge: f = !1,
871
+ children: $,
872
+ className: y,
873
+ color: m = "default",
874
+ disabled: C = !1,
875
+ disableFocusRipple: I = !1,
876
876
  disableRipple: k = !1,
877
877
  size: L = "medium",
878
878
  ...X
879
879
  } = i, A = {
880
880
  ...i,
881
- edge: g,
882
- color: I,
883
- disabled: P,
884
- disableFocusRipple: C,
881
+ edge: f,
882
+ color: m,
883
+ disabled: C,
884
+ disableFocusRipple: I,
885
885
  disableRipple: k,
886
886
  size: L
887
887
  }, E = gt(A);
888
888
  return /* @__PURE__ */ T(bt, {
889
- className: J(E.root, h),
889
+ className: J(E.root, y),
890
890
  centerRipple: !0,
891
- focusRipple: !C,
892
- disabled: P,
891
+ focusRipple: !I,
892
+ disabled: C,
893
893
  disableRipple: k,
894
894
  ref: a,
895
895
  ...X,
896
896
  ownerState: A,
897
- children: x
897
+ children: $
898
898
  });
899
899
  });
900
900
  process.env.NODE_ENV !== "production" && (To.propTypes = {
@@ -965,24 +965,24 @@ const mt = Uo(/* @__PURE__ */ T("path", {
965
965
  function ht(e) {
966
966
  return po("MuiChip", e);
967
967
  }
968
- 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"]), yt = (e) => {
968
+ 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) => {
969
969
  const {
970
970
  classes: n,
971
971
  disabled: a,
972
972
  size: i,
973
- color: g,
974
- iconColor: x,
975
- onDelete: h,
976
- clickable: I,
977
- variant: P
978
- } = e, C = {
979
- root: ["root", P, a && "disabled", `size${d(i)}`, `color${d(g)}`, I && "clickable", I && `clickableColor${d(g)}`, h && "deletable", h && `deletableColor${d(g)}`, `${P}${d(g)}`],
973
+ color: f,
974
+ iconColor: $,
975
+ onDelete: y,
976
+ clickable: m,
977
+ variant: C
978
+ } = e, I = {
979
+ root: ["root", C, a && "disabled", `size${d(i)}`, `color${d(f)}`, m && "clickable", m && `clickableColor${d(f)}`, y && "deletable", y && `deletableColor${d(f)}`, `${C}${d(f)}`],
980
980
  label: ["label", `label${d(i)}`],
981
- avatar: ["avatar", `avatar${d(i)}`, `avatarColor${d(g)}`],
982
- icon: ["icon", `icon${d(i)}`, `iconColor${d(x)}`],
983
- deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(P)}Color${d(g)}`]
981
+ avatar: ["avatar", `avatar${d(i)}`, `avatarColor${d(f)}`],
982
+ icon: ["icon", `icon${d(i)}`, `iconColor${d($)}`],
983
+ deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(f)}`, `deleteIcon${d(C)}Color${d(f)}`]
984
984
  };
985
- return fo(C, ht, n);
985
+ return fo(I, ht, n);
986
986
  }, vt = F("div", {
987
987
  name: "MuiChip",
988
988
  slot: "Root",
@@ -991,33 +991,33 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
991
991
  ownerState: a
992
992
  } = e, {
993
993
  color: i,
994
- iconColor: g,
995
- clickable: x,
996
- onDelete: h,
997
- size: I,
998
- variant: P
994
+ iconColor: f,
995
+ clickable: $,
996
+ onDelete: y,
997
+ size: m,
998
+ variant: C
999
999
  } = a;
1000
1000
  return [{
1001
- [`& .${f.avatar}`]: n.avatar
1001
+ [`& .${g.avatar}`]: n.avatar
1002
1002
  }, {
1003
- [`& .${f.avatar}`]: n[`avatar${d(I)}`]
1003
+ [`& .${g.avatar}`]: n[`avatar${d(m)}`]
1004
1004
  }, {
1005
- [`& .${f.avatar}`]: n[`avatarColor${d(i)}`]
1005
+ [`& .${g.avatar}`]: n[`avatarColor${d(i)}`]
1006
1006
  }, {
1007
- [`& .${f.icon}`]: n.icon
1007
+ [`& .${g.icon}`]: n.icon
1008
1008
  }, {
1009
- [`& .${f.icon}`]: n[`icon${d(I)}`]
1009
+ [`& .${g.icon}`]: n[`icon${d(m)}`]
1010
1010
  }, {
1011
- [`& .${f.icon}`]: n[`iconColor${d(g)}`]
1011
+ [`& .${g.icon}`]: n[`iconColor${d(f)}`]
1012
1012
  }, {
1013
- [`& .${f.deleteIcon}`]: n.deleteIcon
1013
+ [`& .${g.deleteIcon}`]: n.deleteIcon
1014
1014
  }, {
1015
- [`& .${f.deleteIcon}`]: n[`deleteIcon${d(I)}`]
1015
+ [`& .${g.deleteIcon}`]: n[`deleteIcon${d(m)}`]
1016
1016
  }, {
1017
- [`& .${f.deleteIcon}`]: n[`deleteIconColor${d(i)}`]
1017
+ [`& .${g.deleteIcon}`]: n[`deleteIconColor${d(i)}`]
1018
1018
  }, {
1019
- [`& .${f.deleteIcon}`]: n[`deleteIcon${d(P)}Color${d(i)}`]
1020
- }, n.root, n[`size${d(I)}`], n[`color${d(i)}`], x && n.clickable, x && i !== "default" && n[`clickableColor${d(i)})`], h && n.deletable, h && i !== "default" && n[`deletableColor${d(i)}`], n[P], n[`${P}${d(i)}`]];
1019
+ [`& .${g.deleteIcon}`]: n[`deleteIcon${d(C)}Color${d(i)}`]
1020
+ }, n.root, n[`size${d(m)}`], n[`color${d(i)}`], $ && n.clickable, $ && i !== "default" && n[`clickableColor${d(i)})`], y && n.deletable, y && i !== "default" && n[`deletableColor${d(i)}`], n[C], n[`${C}${d(i)}`]];
1021
1021
  }
1022
1022
  })(ee(({
1023
1023
  theme: e
@@ -1047,11 +1047,11 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1047
1047
  // Remove `button` padding
1048
1048
  verticalAlign: "middle",
1049
1049
  boxSizing: "border-box",
1050
- [`&.${f.disabled}`]: {
1050
+ [`&.${g.disabled}`]: {
1051
1051
  opacity: (e.vars || e).palette.action.disabledOpacity,
1052
1052
  pointerEvents: "none"
1053
1053
  },
1054
- [`& .${f.avatar}`]: {
1054
+ [`& .${g.avatar}`]: {
1055
1055
  marginLeft: 5,
1056
1056
  marginRight: -6,
1057
1057
  width: 24,
@@ -1059,26 +1059,26 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1059
1059
  color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : n,
1060
1060
  fontSize: e.typography.pxToRem(12)
1061
1061
  },
1062
- [`& .${f.avatarColorPrimary}`]: {
1062
+ [`& .${g.avatarColorPrimary}`]: {
1063
1063
  color: (e.vars || e).palette.primary.contrastText,
1064
1064
  backgroundColor: (e.vars || e).palette.primary.dark
1065
1065
  },
1066
- [`& .${f.avatarColorSecondary}`]: {
1066
+ [`& .${g.avatarColorSecondary}`]: {
1067
1067
  color: (e.vars || e).palette.secondary.contrastText,
1068
1068
  backgroundColor: (e.vars || e).palette.secondary.dark
1069
1069
  },
1070
- [`& .${f.avatarSmall}`]: {
1070
+ [`& .${g.avatarSmall}`]: {
1071
1071
  marginLeft: 4,
1072
1072
  marginRight: -4,
1073
1073
  width: 18,
1074
1074
  height: 18,
1075
1075
  fontSize: e.typography.pxToRem(10)
1076
1076
  },
1077
- [`& .${f.icon}`]: {
1077
+ [`& .${g.icon}`]: {
1078
1078
  marginLeft: 5,
1079
1079
  marginRight: -6
1080
1080
  },
1081
- [`& .${f.deleteIcon}`]: {
1081
+ [`& .${g.deleteIcon}`]: {
1082
1082
  WebkitTapHighlightColor: "transparent",
1083
1083
  color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : V(e.palette.text.primary, 0.26),
1084
1084
  fontSize: 22,
@@ -1094,12 +1094,12 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1094
1094
  },
1095
1095
  style: {
1096
1096
  height: 24,
1097
- [`& .${f.icon}`]: {
1097
+ [`& .${g.icon}`]: {
1098
1098
  fontSize: 18,
1099
1099
  marginLeft: 4,
1100
1100
  marginRight: -4
1101
1101
  },
1102
- [`& .${f.deleteIcon}`]: {
1102
+ [`& .${g.deleteIcon}`]: {
1103
1103
  fontSize: 16,
1104
1104
  marginRight: 4,
1105
1105
  marginLeft: -4
@@ -1112,7 +1112,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1112
1112
  style: {
1113
1113
  backgroundColor: (e.vars || e).palette[a].main,
1114
1114
  color: (e.vars || e).palette[a].contrastText,
1115
- [`& .${f.deleteIcon}`]: {
1115
+ [`& .${g.deleteIcon}`]: {
1116
1116
  color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : V(e.palette[a].contrastText, 0.7),
1117
1117
  "&:hover, &:active": {
1118
1118
  color: (e.vars || e).palette[a].contrastText
@@ -1122,14 +1122,14 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1122
1122
  })), {
1123
1123
  props: (a) => a.iconColor === a.color,
1124
1124
  style: {
1125
- [`& .${f.icon}`]: {
1125
+ [`& .${g.icon}`]: {
1126
1126
  color: e.vars ? e.vars.palette.Chip.defaultIconColor : n
1127
1127
  }
1128
1128
  }
1129
1129
  }, {
1130
1130
  props: (a) => a.iconColor === a.color && a.color !== "default",
1131
1131
  style: {
1132
- [`& .${f.icon}`]: {
1132
+ [`& .${g.icon}`]: {
1133
1133
  color: "inherit"
1134
1134
  }
1135
1135
  }
@@ -1138,7 +1138,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1138
1138
  onDelete: !0
1139
1139
  },
1140
1140
  style: {
1141
- [`&.${f.focusVisible}`]: {
1141
+ [`&.${g.focusVisible}`]: {
1142
1142
  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)
1143
1143
  }
1144
1144
  }
@@ -1148,7 +1148,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1148
1148
  onDelete: !0
1149
1149
  },
1150
1150
  style: {
1151
- [`&.${f.focusVisible}`]: {
1151
+ [`&.${g.focusVisible}`]: {
1152
1152
  background: (e.vars || e).palette[a].dark
1153
1153
  }
1154
1154
  }
@@ -1163,7 +1163,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1163
1163
  "&:hover": {
1164
1164
  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)
1165
1165
  },
1166
- [`&.${f.focusVisible}`]: {
1166
+ [`&.${g.focusVisible}`]: {
1167
1167
  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)
1168
1168
  },
1169
1169
  "&:active": {
@@ -1176,7 +1176,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1176
1176
  clickable: !0
1177
1177
  },
1178
1178
  style: {
1179
- [`&:hover, &.${f.focusVisible}`]: {
1179
+ [`&:hover, &.${g.focusVisible}`]: {
1180
1180
  backgroundColor: (e.vars || e).palette[a].dark
1181
1181
  }
1182
1182
  }
@@ -1187,28 +1187,28 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1187
1187
  style: {
1188
1188
  backgroundColor: "transparent",
1189
1189
  border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
1190
- [`&.${f.clickable}:hover`]: {
1190
+ [`&.${g.clickable}:hover`]: {
1191
1191
  backgroundColor: (e.vars || e).palette.action.hover
1192
1192
  },
1193
- [`&.${f.focusVisible}`]: {
1193
+ [`&.${g.focusVisible}`]: {
1194
1194
  backgroundColor: (e.vars || e).palette.action.focus
1195
1195
  },
1196
- [`& .${f.avatar}`]: {
1196
+ [`& .${g.avatar}`]: {
1197
1197
  marginLeft: 4
1198
1198
  },
1199
- [`& .${f.avatarSmall}`]: {
1199
+ [`& .${g.avatarSmall}`]: {
1200
1200
  marginLeft: 2
1201
1201
  },
1202
- [`& .${f.icon}`]: {
1202
+ [`& .${g.icon}`]: {
1203
1203
  marginLeft: 4
1204
1204
  },
1205
- [`& .${f.iconSmall}`]: {
1205
+ [`& .${g.iconSmall}`]: {
1206
1206
  marginLeft: 2
1207
1207
  },
1208
- [`& .${f.deleteIcon}`]: {
1208
+ [`& .${g.deleteIcon}`]: {
1209
1209
  marginRight: 5
1210
1210
  },
1211
- [`& .${f.deleteIconSmall}`]: {
1211
+ [`& .${g.deleteIconSmall}`]: {
1212
1212
  marginRight: 3
1213
1213
  }
1214
1214
  }
@@ -1220,13 +1220,13 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1220
1220
  style: {
1221
1221
  color: (e.vars || e).palette[a].main,
1222
1222
  border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7)}`,
1223
- [`&.${f.clickable}:hover`]: {
1223
+ [`&.${g.clickable}:hover`]: {
1224
1224
  backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : V(e.palette[a].main, e.palette.action.hoverOpacity)
1225
1225
  },
1226
- [`&.${f.focusVisible}`]: {
1226
+ [`&.${g.focusVisible}`]: {
1227
1227
  backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : V(e.palette[a].main, e.palette.action.focusOpacity)
1228
1228
  },
1229
- [`& .${f.deleteIcon}`]: {
1229
+ [`& .${g.deleteIcon}`]: {
1230
1230
  color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7),
1231
1231
  "&:hover, &:active": {
1232
1232
  color: (e.vars || e).palette[a].main
@@ -1287,12 +1287,12 @@ const Wo = /* @__PURE__ */ b.forwardRef(function(n, a) {
1287
1287
  props: n,
1288
1288
  name: "MuiChip"
1289
1289
  }), {
1290
- avatar: g,
1291
- className: x,
1292
- clickable: h,
1293
- color: I = "default",
1294
- component: P,
1295
- deleteIcon: C,
1290
+ avatar: f,
1291
+ className: $,
1292
+ clickable: y,
1293
+ color: m = "default",
1294
+ component: C,
1295
+ deleteIcon: I,
1296
1296
  disabled: k = !1,
1297
1297
  icon: L,
1298
1298
  label: X,
@@ -1312,41 +1312,41 @@ const Wo = /* @__PURE__ */ b.forwardRef(function(n, a) {
1312
1312
  D.currentTarget === D.target && zo(D) && D.preventDefault(), ue && ue(D);
1313
1313
  }, ye = (D) => {
1314
1314
  D.currentTarget === D.target && E && zo(D) && E(D), Me && Me(D);
1315
- }, W = h !== !1 && A ? !0 : h, y = W || E ? So : P || "div", fe = {
1315
+ }, W = y !== !1 && A ? !0 : y, v = W || E ? So : C || "div", fe = {
1316
1316
  ...i,
1317
- component: y,
1317
+ component: v,
1318
1318
  disabled: k,
1319
1319
  size: me,
1320
- color: I,
1321
- iconColor: /* @__PURE__ */ b.isValidElement(L) && L.props.color || I,
1320
+ color: m,
1321
+ iconColor: /* @__PURE__ */ b.isValidElement(L) && L.props.color || m,
1322
1322
  onDelete: !!E,
1323
1323
  clickable: W,
1324
1324
  variant: le
1325
- }, _ = yt(fe), ve = y === So ? {
1326
- component: P || "div",
1325
+ }, _ = yt(fe), ve = v === So ? {
1326
+ component: C || "div",
1327
1327
  focusVisibleClassName: _.focusVisible,
1328
1328
  ...E && {
1329
1329
  disableRipple: !0
1330
1330
  }
1331
1331
  } : {};
1332
1332
  let q = null;
1333
- E && (q = C && /* @__PURE__ */ b.isValidElement(C) ? /* @__PURE__ */ b.cloneElement(C, {
1334
- className: J(C.props.className, _.deleteIcon),
1333
+ E && (q = I && /* @__PURE__ */ b.isValidElement(I) ? /* @__PURE__ */ b.cloneElement(I, {
1334
+ className: J(I.props.className, _.deleteIcon),
1335
1335
  onClick: Ve
1336
1336
  }) : /* @__PURE__ */ T(mt, {
1337
1337
  className: J(_.deleteIcon),
1338
1338
  onClick: Ve
1339
1339
  }));
1340
1340
  let ie = null;
1341
- g && /* @__PURE__ */ b.isValidElement(g) && (ie = /* @__PURE__ */ b.cloneElement(g, {
1342
- className: J(_.avatar, g.props.className)
1341
+ f && /* @__PURE__ */ b.isValidElement(f) && (ie = /* @__PURE__ */ b.cloneElement(f, {
1342
+ className: J(_.avatar, f.props.className)
1343
1343
  }));
1344
1344
  let xe = null;
1345
1345
  return L && /* @__PURE__ */ b.isValidElement(L) && (xe = /* @__PURE__ */ b.cloneElement(L, {
1346
1346
  className: J(_.icon, L.props.className)
1347
1347
  })), 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__ */ Ne(vt, {
1348
- as: y,
1349
- className: J(_.root, x),
1348
+ as: v,
1349
+ className: J(_.root, $),
1350
1350
  disabled: W && k ? !0 : void 0,
1351
1351
  onClick: A,
1352
1352
  onKeyDown: de,
@@ -1465,10 +1465,10 @@ process.env.NODE_ENV !== "production" && (Wo.propTypes = {
1465
1465
  */
1466
1466
  variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
1467
1467
  });
1468
- const Ct = Uo(/* @__PURE__ */ T("path", {
1468
+ const $t = Uo(/* @__PURE__ */ T("path", {
1469
1469
  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"
1470
1470
  }), "Close");
1471
- function $t(e) {
1471
+ function Ct(e) {
1472
1472
  return po("MuiAutocomplete", e);
1473
1473
  }
1474
1474
  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,21 +1478,21 @@ const It = (e) => {
1478
1478
  classes: n,
1479
1479
  disablePortal: a,
1480
1480
  expanded: i,
1481
- focused: g,
1482
- fullWidth: x,
1483
- hasClearIcon: h,
1484
- hasPopupIcon: I,
1485
- inputFocused: P,
1486
- popupOpen: C,
1481
+ focused: f,
1482
+ fullWidth: $,
1483
+ hasClearIcon: y,
1484
+ hasPopupIcon: m,
1485
+ inputFocused: C,
1486
+ popupOpen: I,
1487
1487
  size: k
1488
1488
  } = e, L = {
1489
- root: ["root", i && "expanded", g && "focused", x && "fullWidth", h && "hasClearIcon", I && "hasPopupIcon"],
1489
+ root: ["root", i && "expanded", f && "focused", $ && "fullWidth", y && "hasClearIcon", m && "hasPopupIcon"],
1490
1490
  inputRoot: ["inputRoot"],
1491
- input: ["input", P && "inputFocused"],
1491
+ input: ["input", C && "inputFocused"],
1492
1492
  tag: ["tag", `tagSize${d(k)}`],
1493
1493
  endAdornment: ["endAdornment"],
1494
1494
  clearIndicator: ["clearIndicator"],
1495
- popupIndicator: ["popupIndicator", C && "popupIndicatorOpen"],
1495
+ popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
1496
1496
  popper: ["popper", a && "popperDisablePortal"],
1497
1497
  paper: ["paper"],
1498
1498
  listbox: ["listbox"],
@@ -1502,7 +1502,7 @@ const It = (e) => {
1502
1502
  groupLabel: ["groupLabel"],
1503
1503
  groupUl: ["groupUl"]
1504
1504
  };
1505
- return fo(L, $t, n);
1505
+ return fo(L, Ct, n);
1506
1506
  }, Ot = F("div", {
1507
1507
  name: "MuiAutocomplete",
1508
1508
  slot: "Root",
@@ -1511,22 +1511,22 @@ const It = (e) => {
1511
1511
  ownerState: a
1512
1512
  } = e, {
1513
1513
  fullWidth: i,
1514
- hasClearIcon: g,
1515
- hasPopupIcon: x,
1516
- inputFocused: h,
1517
- size: I
1514
+ hasClearIcon: f,
1515
+ hasPopupIcon: $,
1516
+ inputFocused: y,
1517
+ size: m
1518
1518
  } = a;
1519
1519
  return [{
1520
1520
  [`& .${u.tag}`]: n.tag
1521
1521
  }, {
1522
- [`& .${u.tag}`]: n[`tagSize${d(I)}`]
1522
+ [`& .${u.tag}`]: n[`tagSize${d(m)}`]
1523
1523
  }, {
1524
1524
  [`& .${u.inputRoot}`]: n.inputRoot
1525
1525
  }, {
1526
1526
  [`& .${u.input}`]: n.input
1527
1527
  }, {
1528
- [`& .${u.input}`]: h && n.inputFocused
1529
- }, n.root, i && n.fullWidth, x && n.hasPopupIcon, g && n.hasClearIcon];
1528
+ [`& .${u.input}`]: y && n.inputFocused
1529
+ }, n.root, i && n.fullWidth, $ && n.hasPopupIcon, f && n.hasClearIcon];
1530
1530
  }
1531
1531
  })({
1532
1532
  [`&.${u.focused} .${u.clearIndicator}`]: {
@@ -1839,13 +1839,13 @@ const It = (e) => {
1839
1839
  props: n,
1840
1840
  name: "MuiAutocomplete"
1841
1841
  }), {
1842
- autoComplete: g = !1,
1843
- autoHighlight: x = !1,
1844
- autoSelect: h = !1,
1845
- blurOnSelect: I = !1,
1846
- ChipProps: P,
1847
- className: C,
1848
- clearIcon: k = Vo || (Vo = /* @__PURE__ */ T(Ct, {
1842
+ autoComplete: f = !1,
1843
+ autoHighlight: $ = !1,
1844
+ autoSelect: y = !1,
1845
+ blurOnSelect: m = !1,
1846
+ ChipProps: C,
1847
+ className: I,
1848
+ clearIcon: k = Vo || (Vo = /* @__PURE__ */ T($t, {
1849
1849
  fontSize: "small"
1850
1850
  })),
1851
1851
  clearOnBlur: L = !i.freeSolo,
@@ -1865,7 +1865,7 @@ const It = (e) => {
1865
1865
  forcePopupIcon: de = "auto",
1866
1866
  freeSolo: ye = !1,
1867
1867
  fullWidth: W = !1,
1868
- getLimitTagsText: y = (m) => `+${m}`,
1868
+ getLimitTagsText: v = (h) => `+${h}`,
1869
1869
  getOptionDisabled: fe,
1870
1870
  getOptionKey: _,
1871
1871
  getOptionLabel: ve,
@@ -1874,7 +1874,7 @@ const It = (e) => {
1874
1874
  handleHomeEndKeys: xe = !i.freeSolo,
1875
1875
  id: D,
1876
1876
  includeInputInList: ko = !1,
1877
- inputValue: Ce,
1877
+ inputValue: $e,
1878
1878
  limitTags: Fe = -1,
1879
1879
  ListboxComponent: go,
1880
1880
  ListboxProps: U,
@@ -1891,8 +1891,8 @@ const It = (e) => {
1891
1891
  openOnFocus: z = !1,
1892
1892
  openText: s = "Open",
1893
1893
  options: Lo,
1894
- PaperComponent: O,
1895
- PopperComponent: $e,
1894
+ PaperComponent: P,
1895
+ PopperComponent: Ce,
1896
1896
  popupIcon: Ie = Fo || (Fo = /* @__PURE__ */ T(Jo, {})),
1897
1897
  readOnly: He = !1,
1898
1898
  renderGroup: Oe,
@@ -1931,9 +1931,9 @@ const It = (e) => {
1931
1931
  }), _e = !me && !H && pe && !He, qe = (!ye || de === !0) && de !== !1, {
1932
1932
  onMouseDown: xo
1933
1933
  } = eo(), {
1934
- ref: Co,
1934
+ ref: $o,
1935
1935
  ...no
1936
- } = yo(), Ye = ve || ((m) => m.label ?? m), M = {
1936
+ } = yo(), Ye = ve || ((h) => h.label ?? h), M = {
1937
1937
  ...i,
1938
1938
  disablePortal: oe,
1939
1939
  expanded: we,
@@ -1948,12 +1948,12 @@ const It = (e) => {
1948
1948
  }, R = It(M), ae = {
1949
1949
  slots: {
1950
1950
  listbox: go,
1951
- paper: O,
1952
- popper: $e,
1951
+ paper: P,
1952
+ popper: Ce,
1953
1953
  ...j
1954
1954
  },
1955
1955
  slotProps: {
1956
- chip: P,
1956
+ chip: C,
1957
1957
  listbox: U,
1958
1958
  ...ue,
1959
1959
  ...S
@@ -1964,13 +1964,13 @@ const It = (e) => {
1964
1964
  ownerState: M,
1965
1965
  className: R.listbox,
1966
1966
  additionalProps: no,
1967
- ref: Co
1967
+ ref: $o
1968
1968
  }), [l, p] = Oo("paper", {
1969
1969
  elementType: Bo,
1970
1970
  externalForwardedProps: ae,
1971
1971
  ownerState: M,
1972
1972
  className: R.paper
1973
- }), [c, $] = Oo("popper", {
1973
+ }), [c, O] = Oo("popper", {
1974
1974
  elementType: Ho,
1975
1975
  externalForwardedProps: ae,
1976
1976
  ownerState: M,
@@ -1985,18 +1985,18 @@ const It = (e) => {
1985
1985
  open: Te
1986
1986
  }
1987
1987
  });
1988
- let v;
1988
+ let x;
1989
1989
  if (Be && re.length > 0) {
1990
- const m = (Z) => ({
1990
+ const h = (Z) => ({
1991
1991
  className: R.tag,
1992
1992
  disabled: H,
1993
1993
  ...Ke(Z)
1994
1994
  });
1995
- Ze ? v = Ze(re, m, M) : v = re.map((Z, ce) => {
1995
+ Ze ? x = Ze(re, h, M) : x = re.map((Z, ce) => {
1996
1996
  const {
1997
1997
  key: Je,
1998
1998
  ..._o
1999
- } = m({
1999
+ } = h({
2000
2000
  index: ce
2001
2001
  });
2002
2002
  return /* @__PURE__ */ T(Wo, {
@@ -2007,80 +2007,80 @@ const It = (e) => {
2007
2007
  }, Je);
2008
2008
  });
2009
2009
  }
2010
- if (Fe > -1 && Array.isArray(v)) {
2011
- const m = v.length - Fe;
2012
- !Ge && m > 0 && (v = v.splice(0, Fe), v.push(/* @__PURE__ */ T("span", {
2010
+ if (Fe > -1 && Array.isArray(x)) {
2011
+ const h = x.length - Fe;
2012
+ !Ge && h > 0 && (x = x.splice(0, Fe), x.push(/* @__PURE__ */ T("span", {
2013
2013
  className: R.tag,
2014
- children: y(m)
2015
- }, v.length)));
2014
+ children: v(h)
2015
+ }, x.length)));
2016
2016
  }
2017
- const Le = Oe || ((m) => /* @__PURE__ */ Ne("li", {
2017
+ const Le = Oe || ((h) => /* @__PURE__ */ Ne("li", {
2018
2018
  children: [/* @__PURE__ */ T(Dt, {
2019
2019
  className: R.groupLabel,
2020
2020
  ownerState: M,
2021
2021
  component: "div",
2022
- children: m.group
2022
+ children: h.group
2023
2023
  }), /* @__PURE__ */ T(Nt, {
2024
2024
  className: R.groupUl,
2025
2025
  ownerState: M,
2026
- children: m.children
2026
+ children: h.children
2027
2027
  })]
2028
- }, m.key)), Go = Qe || ((m, Z) => {
2028
+ }, h.key)), Go = Qe || ((h, Z) => {
2029
2029
  const {
2030
2030
  key: ce,
2031
2031
  ...Je
2032
- } = m;
2032
+ } = h;
2033
2033
  return /* @__PURE__ */ T("li", {
2034
2034
  ...Je,
2035
2035
  children: Ye(Z)
2036
2036
  }, ce);
2037
- }), Do = (m, Z) => {
2037
+ }), Do = (h, Z) => {
2038
2038
  const ce = ne({
2039
- option: m,
2039
+ option: h,
2040
2040
  index: Z
2041
2041
  });
2042
2042
  return Go({
2043
2043
  ...ce,
2044
2044
  className: R.option
2045
- }, m, {
2045
+ }, h, {
2046
2046
  selected: ce["aria-selected"],
2047
2047
  index: Z,
2048
2048
  inputValue: to
2049
2049
  }, M);
2050
- }, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, $o = (m) => /* @__PURE__ */ T(Tt, {
2050
+ }, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, Co = (h) => /* @__PURE__ */ T(Tt, {
2051
2051
  as: c,
2052
- ...$,
2052
+ ...O,
2053
2053
  children: /* @__PURE__ */ T(kt, {
2054
2054
  as: l,
2055
2055
  ...p,
2056
- children: m
2056
+ children: h
2057
2057
  })
2058
2058
  });
2059
2059
  let lo = null;
2060
- return Re.length > 0 ? lo = $o(/* @__PURE__ */ T(At, {
2060
+ return Re.length > 0 ? lo = Co(/* @__PURE__ */ T(At, {
2061
2061
  as: r,
2062
2062
  ...t,
2063
- children: Re.map((m, Z) => ie ? Le({
2064
- key: m.key,
2065
- group: m.group,
2066
- children: m.options.map((ce, Je) => Do(ce, m.index + Je))
2067
- }) : Do(m, Z))
2068
- })) : N && Re.length === 0 ? lo = $o(/* @__PURE__ */ T(Rt, {
2063
+ children: Re.map((h, Z) => ie ? Le({
2064
+ key: h.key,
2065
+ group: h.group,
2066
+ children: h.options.map((ce, Je) => Do(ce, h.index + Je))
2067
+ }) : Do(h, Z))
2068
+ })) : N && Re.length === 0 ? lo = Co(/* @__PURE__ */ T(Rt, {
2069
2069
  className: R.loading,
2070
2070
  ownerState: M,
2071
2071
  children: je
2072
- })) : Re.length === 0 && !ye && !N && (lo = $o(/* @__PURE__ */ T(Lt, {
2072
+ })) : Re.length === 0 && !ye && !N && (lo = Co(/* @__PURE__ */ T(Lt, {
2073
2073
  className: R.noOptions,
2074
2074
  ownerState: M,
2075
2075
  role: "presentation",
2076
- onMouseDown: (m) => {
2077
- m.preventDefault();
2076
+ onMouseDown: (h) => {
2077
+ h.preventDefault();
2078
2078
  },
2079
2079
  children: w
2080
2080
  }))), /* @__PURE__ */ Ne(b.Fragment, {
2081
2081
  children: [/* @__PURE__ */ T(Ot, {
2082
2082
  ref: a,
2083
- className: J(R.root, C),
2083
+ className: J(R.root, I),
2084
2084
  ownerState: M,
2085
2085
  ...Se(We),
2086
2086
  children: se({
@@ -2092,8 +2092,8 @@ const It = (e) => {
2092
2092
  InputProps: {
2093
2093
  ref: vo,
2094
2094
  className: R.inputRoot,
2095
- startAdornment: v,
2096
- onMouseDown: (m) => xo(m),
2095
+ startAdornment: x,
2096
+ onMouseDown: (h) => xo(h),
2097
2097
  ...(_e || qe) && {
2098
2098
  endAdornment: /* @__PURE__ */ Ne(Pt, {
2099
2099
  className: R.endAdornment,
@@ -2576,7 +2576,6 @@ const Mt = qo("div")(
2576
2576
  .jcDropdownLabel {
2577
2577
  white-space: nowrap;
2578
2578
  font-weight: bold;
2579
- text-transform: capitalize;
2580
2579
  }
2581
2580
 
2582
2581
  .MuiAutocomplete-root {
@@ -2646,9 +2645,10 @@ const Mt = qo("div")(
2646
2645
  options: a = [],
2647
2646
  borderFocusColor: i = jo.colors.green,
2648
2647
  // border primary
2649
- minWidth: g,
2650
- ...x
2651
- }) => /* @__PURE__ */ Ne(Mt, { className: "jcLabeledDropdown", borderFocusColor: i, minWidth: g, children: [
2648
+ onChange: f,
2649
+ minWidth: $,
2650
+ ...y
2651
+ }) => /* @__PURE__ */ Ne(Mt, { className: "jcLabeledDropdown", borderFocusColor: i, minWidth: $, children: [
2652
2652
  /* @__PURE__ */ Ne("span", { className: "jcDropdownLabel", children: [
2653
2653
  e,
2654
2654
  n && ":"
@@ -2657,8 +2657,12 @@ const Mt = qo("div")(
2657
2657
  Ko,
2658
2658
  {
2659
2659
  options: a,
2660
- ...x,
2661
- renderInput: (h) => /* @__PURE__ */ T(Xo, { ...h })
2660
+ onChange: (m, C) => (
2661
+ // @ts-ignore
2662
+ f && f({ ...m, target: { ...m.target, value: `${C == null ? void 0 : C.value}` || "" } })
2663
+ ),
2664
+ ...y,
2665
+ renderInput: (m) => /* @__PURE__ */ T(Xo, { ...m })
2662
2666
  }
2663
2667
  )
2664
2668
  ] });