@notificationapi/react 1.5.0 → 1.5.1

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,26 +1,26 @@
1
- import { jsxs as q, jsx as g } from "react/jsx-runtime";
1
+ import { jsxs as q, jsx as y } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import { useContext as at, useState as ye, useCallback as Io, useEffect as Ro } from "react";
4
4
  import { NotificationAPIContext as it } from "../Provider/context.js";
5
- import { B as He } from "../../assets/Box.js";
6
- import { P as e, g as G, e as J, h as H, s as E, m as _, u as ee, c as Z, b as Q, N as Uo, K as ne, w as mo, a as qe, O as lt } from "../../assets/DefaultPropsProvider.js";
7
- import { c as Be } from "../../assets/createSimplePaletteValueFilter.js";
5
+ import { B as qe } from "../../assets/Box.js";
6
+ import { P as e, g as G, e as Z, h as H, s as M, m as _, u as ee, c as Y, b as J, N as Uo, K as ne, w as mo, a as _e, O as lt } from "../../assets/DefaultPropsProvider.js";
7
+ import { c as ze } from "../../assets/createSimplePaletteValueFilter.js";
8
8
  import { k as Vo, c as Ho } from "../../assets/useTheme2.js";
9
- import { b as je, e as ct, r as Re, c as dt, B as ut } from "../../assets/ButtonBase.js";
10
- import { A as ko, B as xe } from "../../assets/Button.js";
11
- import { u as ze, f as We, F as qo, S as io } from "../../assets/Stack.js";
12
- import { g as pt, T as _e } from "../../assets/Typography.js";
9
+ import { b as Be, e as ct, r as ke, c as dt, B as ut } from "../../assets/ButtonBase.js";
10
+ import { A as ko, B as Ie } from "../../assets/Button.js";
11
+ import { u as We, f as Ue, F as qo, S as io } from "../../assets/Stack.js";
12
+ import { g as pt, T as Ke } from "../../assets/Typography.js";
13
13
  import { i as To, a as lo, L as ft, b as Mo } from "../../assets/List.js";
14
14
  import { r as bo } from "../../assets/index.js";
15
15
  import { u as mt } from "../../assets/Grow.js";
16
16
  import { d as bt, P as yt, a as gt } from "../../assets/Popover.js";
17
17
  import { o as uo, g as ht } from "../../assets/Modal.js";
18
- import { u as ke } from "../../assets/resolveComponentProps.js";
18
+ import { u as Te } from "../../assets/resolveComponentProps.js";
19
19
  import { o as _o, H as vt, g as Ct } from "../../assets/Portal.js";
20
20
  import { u as Eo } from "../../assets/useSlotProps.js";
21
21
  import { d as No, a as Po, u as St } from "../../assets/dividerClasses.js";
22
22
  import { c as wt } from "../../assets/createSvgIcon.js";
23
- function Ke(o) {
23
+ function Ge(o) {
24
24
  return parseInt(o, 10) || 0;
25
25
  }
26
26
  const Ot = {
@@ -44,78 +44,78 @@ function xt(o) {
44
44
  const Ko = /* @__PURE__ */ l.forwardRef(function(t, n) {
45
45
  const {
46
46
  onChange: r,
47
- maxRows: a,
48
- minRows: u = 1,
49
- style: s,
50
- value: d,
51
- ...c
47
+ maxRows: i,
48
+ minRows: d = 1,
49
+ style: a,
50
+ value: c,
51
+ ...f
52
52
  } = t, {
53
- current: m
54
- } = l.useRef(d != null), y = l.useRef(null), b = ke(n, y), w = l.useRef(null), h = l.useRef(null), I = l.useCallback(() => {
55
- const p = y.current, i = uo(p).getComputedStyle(p);
56
- if (i.width === "0px")
53
+ current: u
54
+ } = l.useRef(c != null), m = l.useRef(null), C = Te(n, m), S = l.useRef(null), v = l.useRef(null), x = l.useCallback(() => {
55
+ const p = m.current, s = uo(p).getComputedStyle(p);
56
+ if (s.width === "0px")
57
57
  return {
58
58
  outerHeightStyle: 0,
59
59
  overflowing: !1
60
60
  };
61
- const f = h.current;
62
- f.style.width = i.width, f.value = p.value || t.placeholder || "x", f.value.slice(-1) === `
63
- ` && (f.value += " ");
64
- const R = i.boxSizing, $ = Ke(i.paddingBottom) + Ke(i.paddingTop), D = Ke(i.borderBottomWidth) + Ke(i.borderTopWidth), k = f.scrollHeight;
65
- f.value = "x";
66
- const z = f.scrollHeight;
67
- let N = k;
68
- u && (N = Math.max(Number(u) * z, N)), a && (N = Math.min(Number(a) * z, N)), N = Math.max(N, z);
69
- const B = N + (R === "border-box" ? $ + D : 0), W = Math.abs(N - k) <= 1;
61
+ const b = v.current;
62
+ b.style.width = s.width, b.value = p.value || t.placeholder || "x", b.value.slice(-1) === `
63
+ ` && (b.value += " ");
64
+ const R = s.boxSizing, L = Ge(s.paddingBottom) + Ge(s.paddingTop), N = Ge(s.borderBottomWidth) + Ge(s.borderTopWidth), k = b.scrollHeight;
65
+ b.value = "x";
66
+ const j = b.scrollHeight;
67
+ let P = k;
68
+ d && (P = Math.max(Number(d) * j, P)), i && (P = Math.min(Number(i) * j, P)), P = Math.max(P, j);
69
+ const B = P + (R === "border-box" ? L + N : 0), z = Math.abs(P - k) <= 1;
70
70
  return {
71
71
  outerHeightStyle: B,
72
- overflowing: W
72
+ overflowing: z
73
73
  };
74
- }, [a, u, t.placeholder]), O = l.useCallback(() => {
75
- const p = I();
74
+ }, [i, d, t.placeholder]), I = l.useCallback(() => {
75
+ const p = x();
76
76
  if (xt(p))
77
77
  return;
78
- const v = p.outerHeightStyle, i = y.current;
79
- w.current !== v && (w.current = v, i.style.height = `${v}px`), i.style.overflow = p.overflowing ? "hidden" : "";
80
- }, [I]);
81
- je(() => {
78
+ const h = p.outerHeightStyle, s = m.current;
79
+ S.current !== h && (S.current = h, s.style.height = `${h}px`), s.style.overflow = p.overflowing ? "hidden" : "";
80
+ }, [x]);
81
+ Be(() => {
82
82
  const p = () => {
83
- O();
83
+ I();
84
84
  };
85
- let v;
86
- const i = () => {
87
- cancelAnimationFrame(v), v = requestAnimationFrame(() => {
85
+ let h;
86
+ const s = () => {
87
+ cancelAnimationFrame(h), h = requestAnimationFrame(() => {
88
88
  p();
89
89
  });
90
- }, f = bt(p), R = y.current, $ = uo(R);
91
- $.addEventListener("resize", f);
92
- let D;
93
- return typeof ResizeObserver < "u" && (D = new ResizeObserver(process.env.NODE_ENV === "test" ? i : p), D.observe(R)), () => {
94
- f.clear(), cancelAnimationFrame(v), $.removeEventListener("resize", f), D && D.disconnect();
90
+ }, b = bt(p), R = m.current, L = uo(R);
91
+ L.addEventListener("resize", b);
92
+ let N;
93
+ return typeof ResizeObserver < "u" && (N = new ResizeObserver(process.env.NODE_ENV === "test" ? s : p), N.observe(R)), () => {
94
+ b.clear(), cancelAnimationFrame(h), L.removeEventListener("resize", b), N && N.disconnect();
95
95
  };
96
- }, [I, O]), je(() => {
97
- O();
96
+ }, [x, I]), Be(() => {
97
+ I();
98
98
  });
99
- const S = (p) => {
100
- m || O(), r && r(p);
99
+ const O = (p) => {
100
+ u || I(), r && r(p);
101
101
  };
102
102
  return /* @__PURE__ */ q(l.Fragment, {
103
- children: [/* @__PURE__ */ g("textarea", {
104
- value: d,
105
- onChange: S,
106
- ref: b,
107
- rows: u,
108
- style: s,
109
- ...c
110
- }), /* @__PURE__ */ g("textarea", {
103
+ children: [/* @__PURE__ */ y("textarea", {
104
+ value: c,
105
+ onChange: O,
106
+ ref: C,
107
+ rows: d,
108
+ style: a,
109
+ ...f
110
+ }), /* @__PURE__ */ y("textarea", {
111
111
  "aria-hidden": !0,
112
112
  className: t.className,
113
113
  readOnly: !0,
114
- ref: h,
114
+ ref: v,
115
115
  tabIndex: -1,
116
116
  style: {
117
117
  ...Ot.shadow,
118
- ...s,
118
+ ...a,
119
119
  paddingTop: 0,
120
120
  paddingBottom: 0
121
121
  }
@@ -160,23 +160,23 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
160
160
  function Fo(o) {
161
161
  return o != null && !(Array.isArray(o) && o.length === 0);
162
162
  }
163
- function Xe(o, t = !1) {
163
+ function Ye(o, t = !1) {
164
164
  return o && (Fo(o.value) && o.value !== "" || t && Fo(o.defaultValue) && o.defaultValue !== "");
165
165
  }
166
166
  function It(o) {
167
167
  return o.startAdornment;
168
168
  }
169
169
  function Rt(o) {
170
- return J("MuiInputBase", o);
170
+ return Z("MuiInputBase", o);
171
171
  }
172
- const Ie = G("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
172
+ const Re = G("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
173
173
  var $o;
174
- const Ye = (o, t) => {
174
+ const Ze = (o, t) => {
175
175
  const {
176
176
  ownerState: n
177
177
  } = o;
178
178
  return [t.root, n.formControl && t.formControl, n.startAdornment && t.adornedStart, n.endAdornment && t.adornedEnd, n.error && t.error, n.size === "small" && t.sizeSmall, n.multiline && t.multiline, n.color && t[`color${H(n.color)}`], n.fullWidth && t.fullWidth, n.hiddenLabel && t.hiddenLabel];
179
- }, Ze = (o, t) => {
179
+ }, Je = (o, t) => {
180
180
  const {
181
181
  ownerState: n
182
182
  } = o;
@@ -186,26 +186,26 @@ const Ye = (o, t) => {
186
186
  classes: t,
187
187
  color: n,
188
188
  disabled: r,
189
- error: a,
190
- endAdornment: u,
191
- focused: s,
192
- formControl: d,
193
- fullWidth: c,
194
- hiddenLabel: m,
195
- multiline: y,
196
- readOnly: b,
197
- size: w,
198
- startAdornment: h,
199
- type: I
200
- } = o, O = {
201
- root: ["root", `color${H(n)}`, r && "disabled", a && "error", c && "fullWidth", s && "focused", d && "formControl", w && w !== "medium" && `size${H(w)}`, y && "multiline", h && "adornedStart", u && "adornedEnd", m && "hiddenLabel", b && "readOnly"],
202
- input: ["input", r && "disabled", I === "search" && "inputTypeSearch", y && "inputMultiline", w === "small" && "inputSizeSmall", m && "inputHiddenLabel", h && "inputAdornedStart", u && "inputAdornedEnd", b && "readOnly"]
189
+ error: i,
190
+ endAdornment: d,
191
+ focused: a,
192
+ formControl: c,
193
+ fullWidth: f,
194
+ hiddenLabel: u,
195
+ multiline: m,
196
+ readOnly: C,
197
+ size: S,
198
+ startAdornment: v,
199
+ type: x
200
+ } = o, I = {
201
+ root: ["root", `color${H(n)}`, r && "disabled", i && "error", f && "fullWidth", a && "focused", c && "formControl", S && S !== "medium" && `size${H(S)}`, m && "multiline", v && "adornedStart", d && "adornedEnd", u && "hiddenLabel", C && "readOnly"],
202
+ input: ["input", r && "disabled", x === "search" && "inputTypeSearch", m && "inputMultiline", S === "small" && "inputSizeSmall", u && "inputHiddenLabel", v && "inputAdornedStart", d && "inputAdornedEnd", C && "readOnly"]
203
203
  };
204
- return Q(O, Rt, t);
205
- }, Je = E("div", {
204
+ return J(I, Rt, t);
205
+ }, Qe = M("div", {
206
206
  name: "MuiInputBase",
207
207
  slot: "Root",
208
- overridesResolver: Ye
208
+ overridesResolver: Ze
209
209
  })(_(({
210
210
  theme: o
211
211
  }) => ({
@@ -219,7 +219,7 @@ const Ye = (o, t) => {
219
219
  cursor: "text",
220
220
  display: "inline-flex",
221
221
  alignItems: "center",
222
- [`&.${Ie.disabled}`]: {
222
+ [`&.${Re.disabled}`]: {
223
223
  color: (o.vars || o).palette.text.disabled,
224
224
  cursor: "default"
225
225
  },
@@ -246,10 +246,10 @@ const Ye = (o, t) => {
246
246
  width: "100%"
247
247
  }
248
248
  }]
249
- }))), Qe = E("input", {
249
+ }))), eo = M("input", {
250
250
  name: "MuiInputBase",
251
251
  slot: "Input",
252
- overridesResolver: Ze
252
+ overridesResolver: Je
253
253
  })(_(({
254
254
  theme: o
255
255
  }) => {
@@ -265,7 +265,7 @@ const Ye = (o, t) => {
265
265
  })
266
266
  }, r = {
267
267
  opacity: "0 !important"
268
- }, a = o.vars ? {
268
+ }, i = o.vars ? {
269
269
  opacity: o.vars.opacity.inputPlaceholder
270
270
  } : {
271
271
  opacity: t ? 0.42 : 0.5
@@ -304,19 +304,19 @@ const Ye = (o, t) => {
304
304
  WebkitAppearance: "none"
305
305
  },
306
306
  // Show and hide the placeholder logic
307
- [`label[data-shrink=false] + .${Ie.formControl} &`]: {
307
+ [`label[data-shrink=false] + .${Re.formControl} &`]: {
308
308
  "&::-webkit-input-placeholder": r,
309
309
  "&::-moz-placeholder": r,
310
310
  // Firefox 19+
311
311
  "&::-ms-input-placeholder": r,
312
312
  // Edge
313
- "&:focus::-webkit-input-placeholder": a,
314
- "&:focus::-moz-placeholder": a,
313
+ "&:focus::-webkit-input-placeholder": i,
314
+ "&:focus::-moz-placeholder": i,
315
315
  // Firefox 19+
316
- "&:focus::-ms-input-placeholder": a
316
+ "&:focus::-ms-input-placeholder": i
317
317
  // Edge
318
318
  },
319
- [`&.${Ie.disabled}`]: {
319
+ [`&.${Re.disabled}`]: {
320
320
  opacity: 1,
321
321
  // Reset iOS opacity
322
322
  WebkitTextFillColor: (o.vars || o).palette.text.disabled
@@ -324,8 +324,8 @@ const Ye = (o, t) => {
324
324
  },
325
325
  variants: [{
326
326
  props: ({
327
- ownerState: u
328
- }) => !u.disableInjectingGlobalStyles,
327
+ ownerState: d
328
+ }) => !d.disableInjectingGlobalStyles,
329
329
  style: {
330
330
  animationName: "mui-auto-fill-cancel",
331
331
  animationDuration: "10ms",
@@ -343,8 +343,8 @@ const Ye = (o, t) => {
343
343
  }
344
344
  }, {
345
345
  props: ({
346
- ownerState: u
347
- }) => u.multiline,
346
+ ownerState: d
347
+ }) => d.multiline,
348
348
  style: {
349
349
  height: "auto",
350
350
  resize: "none",
@@ -372,192 +372,192 @@ const Ye = (o, t) => {
372
372
  display: "block"
373
373
  }
374
374
  }
375
- }), eo = /* @__PURE__ */ l.forwardRef(function(t, n) {
375
+ }), oo = /* @__PURE__ */ l.forwardRef(function(t, n) {
376
376
  const r = ee({
377
377
  props: t,
378
378
  name: "MuiInputBase"
379
379
  }), {
380
- "aria-describedby": a,
381
- autoComplete: u,
382
- autoFocus: s,
383
- className: d,
384
- color: c,
385
- components: m = {},
386
- componentsProps: y = {},
387
- defaultValue: b,
388
- disabled: w,
389
- disableInjectingGlobalStyles: h,
390
- endAdornment: I,
391
- error: O,
392
- fullWidth: S = !1,
380
+ "aria-describedby": i,
381
+ autoComplete: d,
382
+ autoFocus: a,
383
+ className: c,
384
+ color: f,
385
+ components: u = {},
386
+ componentsProps: m = {},
387
+ defaultValue: C,
388
+ disabled: S,
389
+ disableInjectingGlobalStyles: v,
390
+ endAdornment: x,
391
+ error: I,
392
+ fullWidth: O = !1,
393
393
  id: p,
394
- inputComponent: v = "input",
395
- inputProps: i = {},
396
- inputRef: f,
394
+ inputComponent: h = "input",
395
+ inputProps: s = {},
396
+ inputRef: b,
397
397
  margin: R,
398
- maxRows: $,
399
- minRows: D,
398
+ maxRows: L,
399
+ minRows: N,
400
400
  multiline: k = !1,
401
- name: z,
402
- onBlur: N,
401
+ name: j,
402
+ onBlur: P,
403
403
  onChange: B,
404
- onClick: W,
404
+ onClick: z,
405
405
  onFocus: U,
406
- onKeyDown: x,
407
- onKeyUp: T,
408
- placeholder: A,
409
- readOnly: P,
410
- renderSuffix: Y,
411
- rows: F,
412
- size: oo,
413
- slotProps: Te = {},
414
- slots: Ue = {},
406
+ onKeyDown: W,
407
+ onKeyUp: g,
408
+ placeholder: E,
409
+ readOnly: F,
410
+ renderSuffix: Q,
411
+ rows: $,
412
+ size: he,
413
+ slotProps: Me = {},
414
+ slots: Ve = {},
415
415
  startAdornment: ae,
416
416
  type: oe = "text",
417
417
  value: re,
418
418
  ...to
419
- } = r, ie = i.value != null ? i.value : re, {
420
- current: Me
421
- } = l.useRef(ie != null), se = l.useRef(), no = l.useCallback((L) => {
422
- process.env.NODE_ENV !== "production" && L && L.nodeName !== "INPUT" && !L.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
419
+ } = r, ie = s.value != null ? s.value : re, {
420
+ current: Ee
421
+ } = l.useRef(ie != null), se = l.useRef(), no = l.useCallback((D) => {
422
+ process.env.NODE_ENV !== "production" && D && D.nodeName !== "INPUT" && !D.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
423
423
  `));
424
- }, []), ro = ke(se, f, i.ref, no), [le, ce] = l.useState(!1), j = ze();
424
+ }, []), ro = Te(se, b, s.ref, no), [le, ce] = l.useState(!1), A = We();
425
425
  process.env.NODE_ENV !== "production" && l.useEffect(() => {
426
- if (j)
427
- return j.registerEffect();
428
- }, [j]);
429
- const X = We({
426
+ if (A)
427
+ return A.registerEffect();
428
+ }, [A]);
429
+ const X = Ue({
430
430
  props: r,
431
- muiFormControl: j,
431
+ muiFormControl: A,
432
432
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
433
433
  });
434
- X.focused = j ? j.focused : le, l.useEffect(() => {
435
- !j && w && le && (ce(!1), N && N());
436
- }, [j, w, le, N]);
437
- const de = j && j.onFilled, Ee = j && j.onEmpty, fe = l.useCallback((L) => {
438
- Xe(L) ? de && de() : Ee && Ee();
439
- }, [de, Ee]);
440
- je(() => {
441
- Me && fe({
434
+ X.focused = A ? A.focused : le, l.useEffect(() => {
435
+ !A && S && le && (ce(!1), P && P());
436
+ }, [A, S, le, P]);
437
+ const de = A && A.onFilled, Ne = A && A.onEmpty, fe = l.useCallback((D) => {
438
+ Ye(D) ? de && de() : Ne && Ne();
439
+ }, [de, Ne]);
440
+ Be(() => {
441
+ Ee && fe({
442
442
  value: ie
443
443
  });
444
- }, [ie, fe, Me]);
445
- const so = (L) => {
446
- U && U(L), i.onFocus && i.onFocus(L), j && j.onFocus ? j.onFocus(L) : ce(!0);
447
- }, he = (L) => {
448
- N && N(L), i.onBlur && i.onBlur(L), j && j.onBlur ? j.onBlur(L) : ce(!1);
449
- }, ao = (L, ...Se) => {
450
- if (!Me) {
451
- const we = L.target || se.current;
452
- if (we == null)
444
+ }, [ie, fe, Ee]);
445
+ const so = (D) => {
446
+ U && U(D), s.onFocus && s.onFocus(D), A && A.onFocus ? A.onFocus(D) : ce(!0);
447
+ }, ve = (D) => {
448
+ P && P(D), s.onBlur && s.onBlur(D), A && A.onBlur ? A.onBlur(D) : ce(!1);
449
+ }, ao = (D, ...we) => {
450
+ if (!Ee) {
451
+ const Oe = D.target || se.current;
452
+ if (Oe == null)
453
453
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Uo(1));
454
454
  fe({
455
- value: we.value
455
+ value: Oe.value
456
456
  });
457
457
  }
458
- i.onChange && i.onChange(L, ...Se), B && B(L, ...Se);
458
+ s.onChange && s.onChange(D, ...we), B && B(D, ...we);
459
459
  };
460
460
  l.useEffect(() => {
461
461
  fe(se.current);
462
462
  }, []);
463
- const ue = (L) => {
464
- se.current && L.currentTarget === L.target && se.current.focus(), W && W(L);
463
+ const ue = (D) => {
464
+ se.current && D.currentTarget === D.target && se.current.focus(), z && z(D);
465
465
  };
466
- let ve = v, K = i;
467
- k && ve === "input" && (F ? (process.env.NODE_ENV !== "production" && (D || $) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), K = {
466
+ let Ce = h, K = s;
467
+ k && Ce === "input" && ($ ? (process.env.NODE_ENV !== "production" && (N || L) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), K = {
468
468
  type: void 0,
469
- minRows: F,
470
- maxRows: F,
469
+ minRows: $,
470
+ maxRows: $,
471
471
  ...K
472
472
  }) : K = {
473
473
  type: void 0,
474
- maxRows: $,
475
- minRows: D,
474
+ maxRows: L,
475
+ minRows: N,
476
476
  ...K
477
- }, ve = Ko);
478
- const Ce = (L) => {
479
- fe(L.animationName === "mui-auto-fill-cancel" ? se.current : {
477
+ }, Ce = Ko);
478
+ const Se = (D) => {
479
+ fe(D.animationName === "mui-auto-fill-cancel" ? se.current : {
480
480
  value: "x"
481
481
  });
482
482
  };
483
483
  l.useEffect(() => {
484
- j && j.setAdornedStart(!!ae);
485
- }, [j, ae]);
484
+ A && A.setAdornedStart(!!ae);
485
+ }, [A, ae]);
486
486
  const me = {
487
487
  ...r,
488
488
  color: X.color || "primary",
489
489
  disabled: X.disabled,
490
- endAdornment: I,
490
+ endAdornment: x,
491
491
  error: X.error,
492
492
  focused: X.focused,
493
- formControl: j,
494
- fullWidth: S,
493
+ formControl: A,
494
+ fullWidth: O,
495
495
  hiddenLabel: X.hiddenLabel,
496
496
  multiline: k,
497
497
  size: X.size,
498
498
  startAdornment: ae,
499
499
  type: oe
500
- }, Ve = kt(me), Ne = Ue.root || m.Root || Je, be = Te.root || y.root || {}, Pe = Ue.input || m.Input || Qe;
500
+ }, He = kt(me), Pe = Ve.root || u.Root || Qe, be = Me.root || m.root || {}, Fe = Ve.input || u.Input || eo;
501
501
  return K = {
502
502
  ...K,
503
- ...Te.input ?? y.input
503
+ ...Me.input ?? m.input
504
504
  }, /* @__PURE__ */ q(l.Fragment, {
505
- children: [!h && typeof Lo == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
505
+ children: [!v && typeof Lo == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
506
506
  // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
507
- ($o || ($o = /* @__PURE__ */ g(Lo, {}))), /* @__PURE__ */ q(Ne, {
507
+ ($o || ($o = /* @__PURE__ */ y(Lo, {}))), /* @__PURE__ */ q(Pe, {
508
508
  ...be,
509
509
  ref: n,
510
510
  onClick: ue,
511
511
  ...to,
512
- ...!To(Ne) && {
512
+ ...!To(Pe) && {
513
513
  ownerState: {
514
514
  ...me,
515
515
  ...be.ownerState
516
516
  }
517
517
  },
518
- className: Z(Ve.root, be.className, d, P && "MuiInputBase-readOnly"),
519
- children: [ae, /* @__PURE__ */ g(qo.Provider, {
518
+ className: Y(He.root, be.className, c, F && "MuiInputBase-readOnly"),
519
+ children: [ae, /* @__PURE__ */ y(qo.Provider, {
520
520
  value: null,
521
- children: /* @__PURE__ */ g(Pe, {
521
+ children: /* @__PURE__ */ y(Fe, {
522
522
  "aria-invalid": X.error,
523
- "aria-describedby": a,
524
- autoComplete: u,
525
- autoFocus: s,
526
- defaultValue: b,
523
+ "aria-describedby": i,
524
+ autoComplete: d,
525
+ autoFocus: a,
526
+ defaultValue: C,
527
527
  disabled: X.disabled,
528
528
  id: p,
529
- onAnimationStart: Ce,
530
- name: z,
531
- placeholder: A,
532
- readOnly: P,
529
+ onAnimationStart: Se,
530
+ name: j,
531
+ placeholder: E,
532
+ readOnly: F,
533
533
  required: X.required,
534
- rows: F,
534
+ rows: $,
535
535
  value: ie,
536
- onKeyDown: x,
537
- onKeyUp: T,
536
+ onKeyDown: W,
537
+ onKeyUp: g,
538
538
  type: oe,
539
539
  ...K,
540
- ...!To(Pe) && {
541
- as: ve,
540
+ ...!To(Fe) && {
541
+ as: Ce,
542
542
  ownerState: {
543
543
  ...me,
544
544
  ...K.ownerState
545
545
  }
546
546
  },
547
547
  ref: ro,
548
- className: Z(Ve.input, K.className, P && "MuiInputBase-readOnly"),
549
- onBlur: he,
548
+ className: Y(He.input, K.className, F && "MuiInputBase-readOnly"),
549
+ onBlur: ve,
550
550
  onChange: ao,
551
551
  onFocus: so
552
552
  })
553
- }), I, Y ? Y({
553
+ }), x, Q ? Q({
554
554
  ...X,
555
555
  startAdornment: ae
556
556
  }) : null]
557
557
  })]
558
558
  });
559
559
  });
560
- process.env.NODE_ENV !== "production" && (eo.propTypes = {
560
+ process.env.NODE_ENV !== "production" && (oo.propTypes = {
561
561
  // ┌────────────────────────────── Warning ──────────────────────────────┐
562
562
  // │ These PropTypes are generated from the TypeScript type definitions. │
563
563
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -661,7 +661,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
661
661
  /**
662
662
  * Pass a ref to the `input` element.
663
663
  */
664
- inputRef: Re,
664
+ inputRef: ke,
665
665
  /**
666
666
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
667
667
  * FormControl.
@@ -786,30 +786,30 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
786
786
  value: e.any
787
787
  });
788
788
  function Tt(o) {
789
- return J("MuiInput", o);
789
+ return Z("MuiInput", o);
790
790
  }
791
- const Fe = {
792
- ...Ie,
791
+ const $e = {
792
+ ...Re,
793
793
  ...G("MuiInput", ["root", "underline", "input"])
794
794
  };
795
795
  function Mt(o) {
796
- return J("MuiOutlinedInput", o);
796
+ return Z("MuiOutlinedInput", o);
797
797
  }
798
798
  const te = {
799
- ...Ie,
799
+ ...Re,
800
800
  ...G("MuiOutlinedInput", ["root", "notchedOutline", "input"])
801
801
  };
802
802
  function Et(o) {
803
- return J("MuiFilledInput", o);
803
+ return Z("MuiFilledInput", o);
804
804
  }
805
805
  const ge = {
806
- ...Ie,
806
+ ...Re,
807
807
  ...G("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
808
- }, Nt = wt(/* @__PURE__ */ g("path", {
808
+ }, Nt = wt(/* @__PURE__ */ y("path", {
809
809
  d: "M7 10l5 5 5-5z"
810
810
  }), "ArrowDropDown");
811
811
  function Pt(o) {
812
- return J("MuiCircularProgress", o);
812
+ return Z("MuiCircularProgress", o);
813
813
  }
814
814
  G("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
815
815
  const pe = 44, po = Vo`
@@ -844,14 +844,14 @@ const pe = 44, po = Vo`
844
844
  classes: t,
845
845
  variant: n,
846
846
  color: r,
847
- disableShrink: a
848
- } = o, u = {
847
+ disableShrink: i
848
+ } = o, d = {
849
849
  root: ["root", n, `color${H(r)}`],
850
850
  svg: ["svg"],
851
- circle: ["circle", `circle${H(n)}`, a && "circleDisableShrink"]
851
+ circle: ["circle", `circle${H(n)}`, i && "circleDisableShrink"]
852
852
  };
853
- return Q(u, Pt, t);
854
- }, Dt = E("span", {
853
+ return J(d, Pt, t);
854
+ }, Dt = M("span", {
855
855
  name: "MuiCircularProgress",
856
856
  slot: "Root",
857
857
  overridesResolver: (o, t) => {
@@ -878,7 +878,7 @@ const pe = 44, po = Vo`
878
878
  style: Ft || {
879
879
  animation: `${po} 1.4s linear infinite`
880
880
  }
881
- }, ...Object.entries(o.palette).filter(Be()).map(([t]) => ({
881
+ }, ...Object.entries(o.palette).filter(ze()).map(([t]) => ({
882
882
  props: {
883
883
  color: t
884
884
  },
@@ -886,14 +886,14 @@ const pe = 44, po = Vo`
886
886
  color: (o.vars || o).palette[t].main
887
887
  }
888
888
  }))]
889
- }))), At = E("svg", {
889
+ }))), At = M("svg", {
890
890
  name: "MuiCircularProgress",
891
891
  slot: "Svg",
892
892
  overridesResolver: (o, t) => t.svg
893
893
  })({
894
894
  display: "block"
895
895
  // Keeps the progress centered
896
- }), jt = E("circle", {
896
+ }), jt = M("circle", {
897
897
  name: "MuiCircularProgress",
898
898
  slot: "Circle",
899
899
  overridesResolver: (o, t) => {
@@ -932,64 +932,64 @@ const pe = 44, po = Vo`
932
932
  animation: `${fo} 1.4s ease-in-out infinite`
933
933
  }
934
934
  }]
935
- }))), Ge = /* @__PURE__ */ l.forwardRef(function(t, n) {
935
+ }))), Xe = /* @__PURE__ */ l.forwardRef(function(t, n) {
936
936
  const r = ee({
937
937
  props: t,
938
938
  name: "MuiCircularProgress"
939
939
  }), {
940
- className: a,
941
- color: u = "primary",
942
- disableShrink: s = !1,
943
- size: d = 40,
944
- style: c,
945
- thickness: m = 3.6,
946
- value: y = 0,
947
- variant: b = "indeterminate",
948
- ...w
949
- } = r, h = {
940
+ className: i,
941
+ color: d = "primary",
942
+ disableShrink: a = !1,
943
+ size: c = 40,
944
+ style: f,
945
+ thickness: u = 3.6,
946
+ value: m = 0,
947
+ variant: C = "indeterminate",
948
+ ...S
949
+ } = r, v = {
950
950
  ...r,
951
- color: u,
952
- disableShrink: s,
953
- size: d,
954
- thickness: m,
955
- value: y,
956
- variant: b
957
- }, I = Lt(h), O = {}, S = {}, p = {};
958
- if (b === "determinate") {
959
- const v = 2 * Math.PI * ((pe - m) / 2);
960
- O.strokeDasharray = v.toFixed(3), p["aria-valuenow"] = Math.round(y), O.strokeDashoffset = `${((100 - y) / 100 * v).toFixed(3)}px`, S.transform = "rotate(-90deg)";
951
+ color: d,
952
+ disableShrink: a,
953
+ size: c,
954
+ thickness: u,
955
+ value: m,
956
+ variant: C
957
+ }, x = Lt(v), I = {}, O = {}, p = {};
958
+ if (C === "determinate") {
959
+ const h = 2 * Math.PI * ((pe - u) / 2);
960
+ I.strokeDasharray = h.toFixed(3), p["aria-valuenow"] = Math.round(m), I.strokeDashoffset = `${((100 - m) / 100 * h).toFixed(3)}px`, O.transform = "rotate(-90deg)";
961
961
  }
962
- return /* @__PURE__ */ g(Dt, {
963
- className: Z(I.root, a),
962
+ return /* @__PURE__ */ y(Dt, {
963
+ className: Y(x.root, i),
964
964
  style: {
965
- width: d,
966
- height: d,
967
- ...S,
968
- ...c
965
+ width: c,
966
+ height: c,
967
+ ...O,
968
+ ...f
969
969
  },
970
- ownerState: h,
970
+ ownerState: v,
971
971
  ref: n,
972
972
  role: "progressbar",
973
973
  ...p,
974
- ...w,
975
- children: /* @__PURE__ */ g(At, {
976
- className: I.svg,
977
- ownerState: h,
974
+ ...S,
975
+ children: /* @__PURE__ */ y(At, {
976
+ className: x.svg,
977
+ ownerState: v,
978
978
  viewBox: `${pe / 2} ${pe / 2} ${pe} ${pe}`,
979
- children: /* @__PURE__ */ g(jt, {
980
- className: I.circle,
981
- style: O,
982
- ownerState: h,
979
+ children: /* @__PURE__ */ y(jt, {
980
+ className: x.circle,
981
+ style: I,
982
+ ownerState: v,
983
983
  cx: pe,
984
984
  cy: pe,
985
- r: (pe - m) / 2,
985
+ r: (pe - u) / 2,
986
986
  fill: "none",
987
- strokeWidth: m
987
+ strokeWidth: u
988
988
  })
989
989
  })
990
990
  });
991
991
  });
992
- process.env.NODE_ENV !== "production" && (Ge.propTypes = {
992
+ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
993
993
  // ┌────────────────────────────── Warning ──────────────────────────────┐
994
994
  // │ These PropTypes are generated from the TypeScript type definitions. │
995
995
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1053,20 +1053,20 @@ const Bt = (o) => {
1053
1053
  classes: t,
1054
1054
  disableUnderline: n,
1055
1055
  startAdornment: r,
1056
- endAdornment: a,
1057
- size: u,
1058
- hiddenLabel: s,
1059
- multiline: d
1060
- } = o, c = {
1061
- root: ["root", !n && "underline", r && "adornedStart", a && "adornedEnd", u === "small" && `size${H(u)}`, s && "hiddenLabel", d && "multiline"],
1056
+ endAdornment: i,
1057
+ size: d,
1058
+ hiddenLabel: a,
1059
+ multiline: c
1060
+ } = o, f = {
1061
+ root: ["root", !n && "underline", r && "adornedStart", i && "adornedEnd", d === "small" && `size${H(d)}`, a && "hiddenLabel", c && "multiline"],
1062
1062
  input: ["input"]
1063
- }, m = Q(c, Et, t);
1063
+ }, u = J(f, Et, t);
1064
1064
  return {
1065
1065
  ...t,
1066
1066
  // forward classes to the InputBase
1067
- ...m
1067
+ ...u
1068
1068
  };
1069
- }, zt = E(Je, {
1069
+ }, zt = M(Qe, {
1070
1070
  shouldForwardProp: (o) => ne(o) || o === "classes",
1071
1071
  name: "MuiFilledInput",
1072
1072
  slot: "Root",
@@ -1074,12 +1074,12 @@ const Bt = (o) => {
1074
1074
  const {
1075
1075
  ownerState: n
1076
1076
  } = o;
1077
- return [...Ye(o, t), !n.disableUnderline && t.underline];
1077
+ return [...Ze(o, t), !n.disableUnderline && t.underline];
1078
1078
  }
1079
1079
  })(_(({
1080
1080
  theme: o
1081
1081
  }) => {
1082
- const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", a = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", u = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
1082
+ const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", d = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
1083
1083
  return {
1084
1084
  position: "relative",
1085
1085
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r,
@@ -1090,7 +1090,7 @@ const Bt = (o) => {
1090
1090
  easing: o.transitions.easing.easeOut
1091
1091
  }),
1092
1092
  "&:hover": {
1093
- backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : a,
1093
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : i,
1094
1094
  // Reset on touch devices, it doesn't add specificity
1095
1095
  "@media (hover: none)": {
1096
1096
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
@@ -1100,12 +1100,12 @@ const Bt = (o) => {
1100
1100
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
1101
1101
  },
1102
1102
  [`&.${ge.disabled}`]: {
1103
- backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : u
1103
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : d
1104
1104
  },
1105
1105
  variants: [{
1106
1106
  props: ({
1107
- ownerState: s
1108
- }) => !s.disableUnderline,
1107
+ ownerState: a
1108
+ }) => !a.disableUnderline,
1109
1109
  style: {
1110
1110
  "&::after": {
1111
1111
  left: 0,
@@ -1151,71 +1151,71 @@ const Bt = (o) => {
1151
1151
  borderBottomStyle: "dotted"
1152
1152
  }
1153
1153
  }
1154
- }, ...Object.entries(o.palette).filter(Be()).map(([s]) => {
1155
- var d;
1154
+ }, ...Object.entries(o.palette).filter(ze()).map(([a]) => {
1155
+ var c;
1156
1156
  return {
1157
1157
  props: {
1158
1158
  disableUnderline: !1,
1159
- color: s
1159
+ color: a
1160
1160
  },
1161
1161
  style: {
1162
1162
  "&::after": {
1163
- borderBottom: `2px solid ${(d = (o.vars || o).palette[s]) == null ? void 0 : d.main}`
1163
+ borderBottom: `2px solid ${(c = (o.vars || o).palette[a]) == null ? void 0 : c.main}`
1164
1164
  }
1165
1165
  }
1166
1166
  };
1167
1167
  }), {
1168
1168
  props: ({
1169
- ownerState: s
1170
- }) => s.startAdornment,
1169
+ ownerState: a
1170
+ }) => a.startAdornment,
1171
1171
  style: {
1172
1172
  paddingLeft: 12
1173
1173
  }
1174
1174
  }, {
1175
1175
  props: ({
1176
- ownerState: s
1177
- }) => s.endAdornment,
1176
+ ownerState: a
1177
+ }) => a.endAdornment,
1178
1178
  style: {
1179
1179
  paddingRight: 12
1180
1180
  }
1181
1181
  }, {
1182
1182
  props: ({
1183
- ownerState: s
1184
- }) => s.multiline,
1183
+ ownerState: a
1184
+ }) => a.multiline,
1185
1185
  style: {
1186
1186
  padding: "25px 12px 8px"
1187
1187
  }
1188
1188
  }, {
1189
1189
  props: ({
1190
- ownerState: s,
1191
- size: d
1192
- }) => s.multiline && d === "small",
1190
+ ownerState: a,
1191
+ size: c
1192
+ }) => a.multiline && c === "small",
1193
1193
  style: {
1194
1194
  paddingTop: 21,
1195
1195
  paddingBottom: 4
1196
1196
  }
1197
1197
  }, {
1198
1198
  props: ({
1199
- ownerState: s
1200
- }) => s.multiline && s.hiddenLabel,
1199
+ ownerState: a
1200
+ }) => a.multiline && a.hiddenLabel,
1201
1201
  style: {
1202
1202
  paddingTop: 16,
1203
1203
  paddingBottom: 17
1204
1204
  }
1205
1205
  }, {
1206
1206
  props: ({
1207
- ownerState: s
1208
- }) => s.multiline && s.hiddenLabel && s.size === "small",
1207
+ ownerState: a
1208
+ }) => a.multiline && a.hiddenLabel && a.size === "small",
1209
1209
  style: {
1210
1210
  paddingTop: 8,
1211
1211
  paddingBottom: 9
1212
1212
  }
1213
1213
  }]
1214
1214
  };
1215
- })), Wt = E(Qe, {
1215
+ })), Wt = M(eo, {
1216
1216
  name: "MuiFilledInput",
1217
1217
  slot: "Input",
1218
- overridesResolver: Ze
1218
+ overridesResolver: Je
1219
1219
  })(_(({
1220
1220
  theme: o
1221
1221
  }) => ({
@@ -1299,46 +1299,46 @@ const Bt = (o) => {
1299
1299
  props: t,
1300
1300
  name: "MuiFilledInput"
1301
1301
  }), {
1302
- disableUnderline: a = !1,
1303
- components: u = {},
1304
- componentsProps: s,
1305
- fullWidth: d = !1,
1306
- hiddenLabel: c,
1302
+ disableUnderline: i = !1,
1303
+ components: d = {},
1304
+ componentsProps: a,
1305
+ fullWidth: c = !1,
1306
+ hiddenLabel: f,
1307
1307
  // declare here to prevent spreading to DOM
1308
- inputComponent: m = "input",
1309
- multiline: y = !1,
1310
- slotProps: b,
1311
- slots: w = {},
1312
- type: h = "text",
1313
- ...I
1314
- } = r, O = {
1308
+ inputComponent: u = "input",
1309
+ multiline: m = !1,
1310
+ slotProps: C,
1311
+ slots: S = {},
1312
+ type: v = "text",
1313
+ ...x
1314
+ } = r, I = {
1315
1315
  ...r,
1316
- disableUnderline: a,
1317
- fullWidth: d,
1318
- inputComponent: m,
1319
- multiline: y,
1320
- type: h
1321
- }, S = Bt(r), p = {
1316
+ disableUnderline: i,
1317
+ fullWidth: c,
1318
+ inputComponent: u,
1319
+ multiline: m,
1320
+ type: v
1321
+ }, O = Bt(r), p = {
1322
1322
  root: {
1323
- ownerState: O
1323
+ ownerState: I
1324
1324
  },
1325
1325
  input: {
1326
- ownerState: O
1326
+ ownerState: I
1327
1327
  }
1328
- }, v = b ?? s ? mo(p, b ?? s) : p, i = w.root ?? u.Root ?? zt, f = w.input ?? u.Input ?? Wt;
1329
- return /* @__PURE__ */ g(eo, {
1328
+ }, h = C ?? a ? mo(p, C ?? a) : p, s = S.root ?? d.Root ?? zt, b = S.input ?? d.Input ?? Wt;
1329
+ return /* @__PURE__ */ y(oo, {
1330
1330
  slots: {
1331
- root: i,
1332
- input: f
1331
+ root: s,
1332
+ input: b
1333
1333
  },
1334
- slotProps: v,
1335
- fullWidth: d,
1336
- inputComponent: m,
1337
- multiline: y,
1334
+ slotProps: h,
1335
+ fullWidth: c,
1336
+ inputComponent: u,
1337
+ multiline: m,
1338
1338
  ref: n,
1339
- type: h,
1340
- ...I,
1341
- classes: S
1339
+ type: v,
1340
+ ...x,
1341
+ classes: O
1342
1342
  });
1343
1343
  });
1344
1344
  process.env.NODE_ENV !== "production" && (yo.propTypes = {
@@ -1443,7 +1443,7 @@ process.env.NODE_ENV !== "production" && (yo.propTypes = {
1443
1443
  /**
1444
1444
  * Pass a ref to the `input` element.
1445
1445
  */
1446
- inputRef: Re,
1446
+ inputRef: ke,
1447
1447
  /**
1448
1448
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1449
1449
  * FormControl.
@@ -1535,7 +1535,7 @@ process.env.NODE_ENV !== "production" && (yo.propTypes = {
1535
1535
  });
1536
1536
  yo.muiName = "Input";
1537
1537
  function Ut(o) {
1538
- return J("MuiFormControl", o);
1538
+ return Z("MuiFormControl", o);
1539
1539
  }
1540
1540
  G("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
1541
1541
  const Vt = (o) => {
@@ -1543,11 +1543,11 @@ const Vt = (o) => {
1543
1543
  classes: t,
1544
1544
  margin: n,
1545
1545
  fullWidth: r
1546
- } = o, a = {
1546
+ } = o, i = {
1547
1547
  root: ["root", n !== "none" && `margin${H(n)}`, r && "fullWidth"]
1548
1548
  };
1549
- return Q(a, Ut, t);
1550
- }, Ht = E("div", {
1549
+ return J(i, Ut, t);
1550
+ }, Ht = M("div", {
1551
1551
  name: "MuiFormControl",
1552
1552
  slot: "Root",
1553
1553
  overridesResolver: (o, t) => {
@@ -1596,90 +1596,90 @@ const Vt = (o) => {
1596
1596
  props: t,
1597
1597
  name: "MuiFormControl"
1598
1598
  }), {
1599
- children: a,
1600
- className: u,
1601
- color: s = "primary",
1602
- component: d = "div",
1603
- disabled: c = !1,
1604
- error: m = !1,
1605
- focused: y,
1606
- fullWidth: b = !1,
1607
- hiddenLabel: w = !1,
1608
- margin: h = "none",
1609
- required: I = !1,
1610
- size: O = "medium",
1611
- variant: S = "outlined",
1599
+ children: i,
1600
+ className: d,
1601
+ color: a = "primary",
1602
+ component: c = "div",
1603
+ disabled: f = !1,
1604
+ error: u = !1,
1605
+ focused: m,
1606
+ fullWidth: C = !1,
1607
+ hiddenLabel: S = !1,
1608
+ margin: v = "none",
1609
+ required: x = !1,
1610
+ size: I = "medium",
1611
+ variant: O = "outlined",
1612
1612
  ...p
1613
- } = r, v = {
1613
+ } = r, h = {
1614
1614
  ...r,
1615
- color: s,
1616
- component: d,
1617
- disabled: c,
1618
- error: m,
1619
- fullWidth: b,
1620
- hiddenLabel: w,
1621
- margin: h,
1622
- required: I,
1623
- size: O,
1624
- variant: S
1625
- }, i = Vt(v), [f, R] = l.useState(() => {
1626
- let x = !1;
1627
- return a && l.Children.forEach(a, (T) => {
1628
- if (!lo(T, ["Input", "Select"]))
1615
+ color: a,
1616
+ component: c,
1617
+ disabled: f,
1618
+ error: u,
1619
+ fullWidth: C,
1620
+ hiddenLabel: S,
1621
+ margin: v,
1622
+ required: x,
1623
+ size: I,
1624
+ variant: O
1625
+ }, s = Vt(h), [b, R] = l.useState(() => {
1626
+ let W = !1;
1627
+ return i && l.Children.forEach(i, (g) => {
1628
+ if (!lo(g, ["Input", "Select"]))
1629
1629
  return;
1630
- const A = lo(T, ["Select"]) ? T.props.input : T;
1631
- A && It(A.props) && (x = !0);
1632
- }), x;
1633
- }), [$, D] = l.useState(() => {
1634
- let x = !1;
1635
- return a && l.Children.forEach(a, (T) => {
1636
- lo(T, ["Input", "Select"]) && (Xe(T.props, !0) || Xe(T.props.inputProps, !0)) && (x = !0);
1637
- }), x;
1638
- }), [k, z] = l.useState(!1);
1639
- c && k && z(!1);
1640
- const N = y !== void 0 && !c ? y : k;
1630
+ const E = lo(g, ["Select"]) ? g.props.input : g;
1631
+ E && It(E.props) && (W = !0);
1632
+ }), W;
1633
+ }), [L, N] = l.useState(() => {
1634
+ let W = !1;
1635
+ return i && l.Children.forEach(i, (g) => {
1636
+ lo(g, ["Input", "Select"]) && (Ye(g.props, !0) || Ye(g.props.inputProps, !0)) && (W = !0);
1637
+ }), W;
1638
+ }), [k, j] = l.useState(!1);
1639
+ f && k && j(!1);
1640
+ const P = m !== void 0 && !f ? m : k;
1641
1641
  let B;
1642
- const W = l.useRef(!1);
1643
- process.env.NODE_ENV !== "production" && (B = () => (W.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1644
- `)), W.current = !0, () => {
1645
- W.current = !1;
1642
+ const z = l.useRef(!1);
1643
+ process.env.NODE_ENV !== "production" && (B = () => (z.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1644
+ `)), z.current = !0, () => {
1645
+ z.current = !1;
1646
1646
  }));
1647
1647
  const U = l.useMemo(() => ({
1648
- adornedStart: f,
1648
+ adornedStart: b,
1649
1649
  setAdornedStart: R,
1650
- color: s,
1651
- disabled: c,
1652
- error: m,
1653
- filled: $,
1654
- focused: N,
1655
- fullWidth: b,
1656
- hiddenLabel: w,
1657
- size: O,
1650
+ color: a,
1651
+ disabled: f,
1652
+ error: u,
1653
+ filled: L,
1654
+ focused: P,
1655
+ fullWidth: C,
1656
+ hiddenLabel: S,
1657
+ size: I,
1658
1658
  onBlur: () => {
1659
- z(!1);
1659
+ j(!1);
1660
1660
  },
1661
1661
  onEmpty: () => {
1662
- D(!1);
1662
+ N(!1);
1663
1663
  },
1664
1664
  onFilled: () => {
1665
- D(!0);
1665
+ N(!0);
1666
1666
  },
1667
1667
  onFocus: () => {
1668
- z(!0);
1668
+ j(!0);
1669
1669
  },
1670
1670
  registerEffect: B,
1671
- required: I,
1672
- variant: S
1673
- }), [f, s, c, m, $, N, b, w, B, I, O, S]);
1674
- return /* @__PURE__ */ g(qo.Provider, {
1671
+ required: x,
1672
+ variant: O
1673
+ }), [b, a, f, u, L, P, C, S, B, x, I, O]);
1674
+ return /* @__PURE__ */ y(qo.Provider, {
1675
1675
  value: U,
1676
- children: /* @__PURE__ */ g(Ht, {
1677
- as: d,
1678
- ownerState: v,
1679
- className: Z(i.root, u),
1676
+ children: /* @__PURE__ */ y(Ht, {
1677
+ as: c,
1678
+ ownerState: h,
1679
+ className: Y(s.root, d),
1680
1680
  ref: n,
1681
1681
  ...p,
1682
- children: a
1682
+ children: i
1683
1683
  })
1684
1684
  });
1685
1685
  });
@@ -1764,23 +1764,23 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
1764
1764
  variant: e.oneOf(["filled", "outlined", "standard"])
1765
1765
  });
1766
1766
  function qt(o) {
1767
- return J("MuiFormLabel", o);
1767
+ return Z("MuiFormLabel", o);
1768
1768
  }
1769
- const Ae = G("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), _t = (o) => {
1769
+ const je = G("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), _t = (o) => {
1770
1770
  const {
1771
1771
  classes: t,
1772
1772
  color: n,
1773
1773
  focused: r,
1774
- disabled: a,
1775
- error: u,
1776
- filled: s,
1777
- required: d
1778
- } = o, c = {
1779
- root: ["root", `color${H(n)}`, a && "disabled", u && "error", s && "filled", r && "focused", d && "required"],
1780
- asterisk: ["asterisk", u && "error"]
1774
+ disabled: i,
1775
+ error: d,
1776
+ filled: a,
1777
+ required: c
1778
+ } = o, f = {
1779
+ root: ["root", `color${H(n)}`, i && "disabled", d && "error", a && "filled", r && "focused", c && "required"],
1780
+ asterisk: ["asterisk", d && "error"]
1781
1781
  };
1782
- return Q(c, qt, t);
1783
- }, Kt = E("label", {
1782
+ return J(f, qt, t);
1783
+ }, Kt = M("label", {
1784
1784
  name: "MuiFormLabel",
1785
1785
  slot: "Root",
1786
1786
  overridesResolver: (o, t) => {
@@ -1797,34 +1797,34 @@ const Ae = G("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
1797
1797
  lineHeight: "1.4375em",
1798
1798
  padding: 0,
1799
1799
  position: "relative",
1800
- variants: [...Object.entries(o.palette).filter(Be()).map(([t]) => ({
1800
+ variants: [...Object.entries(o.palette).filter(ze()).map(([t]) => ({
1801
1801
  props: {
1802
1802
  color: t
1803
1803
  },
1804
1804
  style: {
1805
- [`&.${Ae.focused}`]: {
1805
+ [`&.${je.focused}`]: {
1806
1806
  color: (o.vars || o).palette[t].main
1807
1807
  }
1808
1808
  }
1809
1809
  })), {
1810
1810
  props: {},
1811
1811
  style: {
1812
- [`&.${Ae.disabled}`]: {
1812
+ [`&.${je.disabled}`]: {
1813
1813
  color: (o.vars || o).palette.text.disabled
1814
1814
  },
1815
- [`&.${Ae.error}`]: {
1815
+ [`&.${je.error}`]: {
1816
1816
  color: (o.vars || o).palette.error.main
1817
1817
  }
1818
1818
  }
1819
1819
  }]
1820
- }))), Gt = E("span", {
1820
+ }))), Gt = M("span", {
1821
1821
  name: "MuiFormLabel",
1822
1822
  slot: "Asterisk",
1823
1823
  overridesResolver: (o, t) => t.asterisk
1824
1824
  })(_(({
1825
1825
  theme: o
1826
1826
  }) => ({
1827
- [`&.${Ae.error}`]: {
1827
+ [`&.${je.error}`]: {
1828
1828
  color: (o.vars || o).palette.error.main
1829
1829
  }
1830
1830
  }))), Xo = /* @__PURE__ */ l.forwardRef(function(t, n) {
@@ -1832,38 +1832,38 @@ const Ae = G("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
1832
1832
  props: t,
1833
1833
  name: "MuiFormLabel"
1834
1834
  }), {
1835
- children: a,
1836
- className: u,
1837
- color: s,
1838
- component: d = "label",
1839
- disabled: c,
1840
- error: m,
1841
- filled: y,
1842
- focused: b,
1843
- required: w,
1844
- ...h
1845
- } = r, I = ze(), O = We({
1835
+ children: i,
1836
+ className: d,
1837
+ color: a,
1838
+ component: c = "label",
1839
+ disabled: f,
1840
+ error: u,
1841
+ filled: m,
1842
+ focused: C,
1843
+ required: S,
1844
+ ...v
1845
+ } = r, x = We(), I = Ue({
1846
1846
  props: r,
1847
- muiFormControl: I,
1847
+ muiFormControl: x,
1848
1848
  states: ["color", "required", "focused", "disabled", "error", "filled"]
1849
- }), S = {
1849
+ }), O = {
1850
1850
  ...r,
1851
- color: O.color || "primary",
1852
- component: d,
1853
- disabled: O.disabled,
1854
- error: O.error,
1855
- filled: O.filled,
1856
- focused: O.focused,
1857
- required: O.required
1858
- }, p = _t(S);
1851
+ color: I.color || "primary",
1852
+ component: c,
1853
+ disabled: I.disabled,
1854
+ error: I.error,
1855
+ filled: I.filled,
1856
+ focused: I.focused,
1857
+ required: I.required
1858
+ }, p = _t(O);
1859
1859
  return /* @__PURE__ */ q(Kt, {
1860
- as: d,
1861
- ownerState: S,
1862
- className: Z(p.root, u),
1860
+ as: c,
1861
+ ownerState: O,
1862
+ className: Y(p.root, d),
1863
1863
  ref: n,
1864
- ...h,
1865
- children: [a, O.required && /* @__PURE__ */ q(Gt, {
1866
- ownerState: S,
1864
+ ...v,
1865
+ children: [i, I.required && /* @__PURE__ */ q(Gt, {
1866
+ ownerState: O,
1867
1867
  "aria-hidden": !0,
1868
1868
  className: p.asterisk,
1869
1869
  children: [" ", "*"]
@@ -1927,16 +1927,16 @@ const Xt = (o) => {
1927
1927
  const {
1928
1928
  classes: t,
1929
1929
  disableUnderline: n
1930
- } = o, a = Q({
1930
+ } = o, i = J({
1931
1931
  root: ["root", !n && "underline"],
1932
1932
  input: ["input"]
1933
1933
  }, Tt, t);
1934
1934
  return {
1935
1935
  ...t,
1936
1936
  // forward classes to the InputBase
1937
- ...a
1937
+ ...i
1938
1938
  };
1939
- }, Yt = E(Je, {
1939
+ }, Yt = M(Qe, {
1940
1940
  shouldForwardProp: (o) => ne(o) || o === "classes",
1941
1941
  name: "MuiInput",
1942
1942
  slot: "Root",
@@ -1944,7 +1944,7 @@ const Xt = (o) => {
1944
1944
  const {
1945
1945
  ownerState: n
1946
1946
  } = o;
1947
- return [...Ye(o, t), !n.disableUnderline && t.underline];
1947
+ return [...Ze(o, t), !n.disableUnderline && t.underline];
1948
1948
  }
1949
1949
  })(_(({
1950
1950
  theme: o
@@ -1980,12 +1980,12 @@ const Xt = (o) => {
1980
1980
  pointerEvents: "none"
1981
1981
  // Transparent to the hover style.
1982
1982
  },
1983
- [`&.${Fe.focused}:after`]: {
1983
+ [`&.${$e.focused}:after`]: {
1984
1984
  // translateX(0) is a workaround for Safari transform scale bug
1985
1985
  // See https://github.com/mui/material-ui/issues/31766
1986
1986
  transform: "scaleX(1) translateX(0)"
1987
1987
  },
1988
- [`&.${Fe.error}`]: {
1988
+ [`&.${$e.error}`]: {
1989
1989
  "&::before, &::after": {
1990
1990
  borderBottomColor: (o.vars || o).palette.error.main
1991
1991
  }
@@ -2003,18 +2003,18 @@ const Xt = (o) => {
2003
2003
  pointerEvents: "none"
2004
2004
  // Transparent to the hover style.
2005
2005
  },
2006
- [`&:hover:not(.${Fe.disabled}, .${Fe.error}):before`]: {
2006
+ [`&:hover:not(.${$e.disabled}, .${$e.error}):before`]: {
2007
2007
  borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
2008
2008
  // Reset on touch devices, it doesn't add specificity
2009
2009
  "@media (hover: none)": {
2010
2010
  borderBottom: `1px solid ${n}`
2011
2011
  }
2012
2012
  },
2013
- [`&.${Fe.disabled}:before`]: {
2013
+ [`&.${$e.disabled}:before`]: {
2014
2014
  borderBottomStyle: "dotted"
2015
2015
  }
2016
2016
  }
2017
- }, ...Object.entries(o.palette).filter(Be()).map(([r]) => ({
2017
+ }, ...Object.entries(o.palette).filter(ze()).map(([r]) => ({
2018
2018
  props: {
2019
2019
  color: r,
2020
2020
  disableUnderline: !1
@@ -2026,45 +2026,45 @@ const Xt = (o) => {
2026
2026
  }
2027
2027
  }))]
2028
2028
  };
2029
- })), Zt = E(Qe, {
2029
+ })), Zt = M(eo, {
2030
2030
  name: "MuiInput",
2031
2031
  slot: "Input",
2032
- overridesResolver: Ze
2032
+ overridesResolver: Je
2033
2033
  })({}), go = /* @__PURE__ */ l.forwardRef(function(t, n) {
2034
2034
  const r = ee({
2035
2035
  props: t,
2036
2036
  name: "MuiInput"
2037
2037
  }), {
2038
- disableUnderline: a = !1,
2039
- components: u = {},
2040
- componentsProps: s,
2041
- fullWidth: d = !1,
2042
- inputComponent: c = "input",
2043
- multiline: m = !1,
2044
- slotProps: y,
2045
- slots: b = {},
2046
- type: w = "text",
2047
- ...h
2048
- } = r, I = Xt(r), S = {
2038
+ disableUnderline: i = !1,
2039
+ components: d = {},
2040
+ componentsProps: a,
2041
+ fullWidth: c = !1,
2042
+ inputComponent: f = "input",
2043
+ multiline: u = !1,
2044
+ slotProps: m,
2045
+ slots: C = {},
2046
+ type: S = "text",
2047
+ ...v
2048
+ } = r, x = Xt(r), O = {
2049
2049
  root: {
2050
2050
  ownerState: {
2051
- disableUnderline: a
2051
+ disableUnderline: i
2052
2052
  }
2053
2053
  }
2054
- }, p = y ?? s ? mo(y ?? s, S) : S, v = b.root ?? u.Root ?? Yt, i = b.input ?? u.Input ?? Zt;
2055
- return /* @__PURE__ */ g(eo, {
2054
+ }, p = m ?? a ? mo(m ?? a, O) : O, h = C.root ?? d.Root ?? Yt, s = C.input ?? d.Input ?? Zt;
2055
+ return /* @__PURE__ */ y(oo, {
2056
2056
  slots: {
2057
- root: v,
2058
- input: i
2057
+ root: h,
2058
+ input: s
2059
2059
  },
2060
2060
  slotProps: p,
2061
- fullWidth: d,
2062
- inputComponent: c,
2063
- multiline: m,
2061
+ fullWidth: c,
2062
+ inputComponent: f,
2063
+ multiline: u,
2064
2064
  ref: n,
2065
- type: w,
2066
- ...h,
2067
- classes: I
2065
+ type: S,
2066
+ ...v,
2067
+ classes: x
2068
2068
  });
2069
2069
  });
2070
2070
  process.env.NODE_ENV !== "production" && (go.propTypes = {
@@ -2162,7 +2162,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
2162
2162
  /**
2163
2163
  * Pass a ref to the `input` element.
2164
2164
  */
2165
- inputRef: Re,
2165
+ inputRef: ke,
2166
2166
  /**
2167
2167
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
2168
2168
  * FormControl.
@@ -2254,7 +2254,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
2254
2254
  });
2255
2255
  go.muiName = "Input";
2256
2256
  function Jt(o) {
2257
- return J("MuiInputLabel", o);
2257
+ return Z("MuiInputLabel", o);
2258
2258
  }
2259
2259
  G("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
2260
2260
  const Qt = (o) => {
@@ -2262,20 +2262,20 @@ const Qt = (o) => {
2262
2262
  classes: t,
2263
2263
  formControl: n,
2264
2264
  size: r,
2265
- shrink: a,
2266
- disableAnimation: u,
2267
- variant: s,
2268
- required: d
2269
- } = o, c = {
2270
- root: ["root", n && "formControl", !u && "animated", a && "shrink", r && r !== "normal" && `size${H(r)}`, s],
2271
- asterisk: [d && "asterisk"]
2272
- }, m = Q(c, Jt, t);
2265
+ shrink: i,
2266
+ disableAnimation: d,
2267
+ variant: a,
2268
+ required: c
2269
+ } = o, f = {
2270
+ root: ["root", n && "formControl", !d && "animated", i && "shrink", r && r !== "normal" && `size${H(r)}`, a],
2271
+ asterisk: [c && "asterisk"]
2272
+ }, u = J(f, Jt, t);
2273
2273
  return {
2274
2274
  ...t,
2275
2275
  // forward the focused, disabled, etc. classes to the FormLabel
2276
- ...m
2276
+ ...u
2277
2277
  };
2278
- }, en = E(Xo, {
2278
+ }, en = M(Xo, {
2279
2279
  shouldForwardProp: (o) => ne(o) || o === "classes",
2280
2280
  name: "MuiInputLabel",
2281
2281
  slot: "Root",
@@ -2284,7 +2284,7 @@ const Qt = (o) => {
2284
2284
  ownerState: n
2285
2285
  } = o;
2286
2286
  return [{
2287
- [`& .${Ae.asterisk}`]: t.asterisk
2287
+ [`& .${je.asterisk}`]: t.asterisk
2288
2288
  }, t.root, n.formControl && t.formControl, n.size === "small" && t.sizeSmall, n.shrink && t.shrink, !n.disableAnimation && t.animated, n.focused && t.focused, t[n.variant]];
2289
2289
  }
2290
2290
  })(_(({
@@ -2414,36 +2414,36 @@ const Qt = (o) => {
2414
2414
  name: "MuiInputLabel",
2415
2415
  props: t
2416
2416
  }), {
2417
- disableAnimation: a = !1,
2418
- margin: u,
2419
- shrink: s,
2420
- variant: d,
2421
- className: c,
2422
- ...m
2423
- } = r, y = ze();
2424
- let b = s;
2425
- typeof b > "u" && y && (b = y.filled || y.focused || y.adornedStart);
2426
- const w = We({
2417
+ disableAnimation: i = !1,
2418
+ margin: d,
2419
+ shrink: a,
2420
+ variant: c,
2421
+ className: f,
2422
+ ...u
2423
+ } = r, m = We();
2424
+ let C = a;
2425
+ typeof C > "u" && m && (C = m.filled || m.focused || m.adornedStart);
2426
+ const S = Ue({
2427
2427
  props: r,
2428
- muiFormControl: y,
2428
+ muiFormControl: m,
2429
2429
  states: ["size", "variant", "required", "focused"]
2430
- }), h = {
2430
+ }), v = {
2431
2431
  ...r,
2432
- disableAnimation: a,
2433
- formControl: y,
2434
- shrink: b,
2435
- size: w.size,
2436
- variant: w.variant,
2437
- required: w.required,
2438
- focused: w.focused
2439
- }, I = Qt(h);
2440
- return /* @__PURE__ */ g(en, {
2441
- "data-shrink": b,
2432
+ disableAnimation: i,
2433
+ formControl: m,
2434
+ shrink: C,
2435
+ size: S.size,
2436
+ variant: S.variant,
2437
+ required: S.required,
2438
+ focused: S.focused
2439
+ }, x = Qt(v);
2440
+ return /* @__PURE__ */ y(en, {
2441
+ "data-shrink": C,
2442
2442
  ref: n,
2443
- className: Z(I.root, c),
2444
- ...m,
2445
- ownerState: h,
2446
- classes: I
2443
+ className: Y(x.root, f),
2444
+ ...u,
2445
+ ownerState: v,
2446
+ classes: x
2447
2447
  });
2448
2448
  });
2449
2449
  process.env.NODE_ENV !== "production" && (Yo.propTypes = {
@@ -2526,19 +2526,19 @@ function Zo(o, t) {
2526
2526
  let n = o.innerText;
2527
2527
  return n === void 0 && (n = o.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
2528
2528
  }
2529
- function $e(o, t, n, r, a, u) {
2530
- let s = !1, d = a(o, t, t ? n : !1);
2531
- for (; d; ) {
2532
- if (d === o.firstChild) {
2533
- if (s)
2529
+ function Le(o, t, n, r, i, d) {
2530
+ let a = !1, c = i(o, t, t ? n : !1);
2531
+ for (; c; ) {
2532
+ if (c === o.firstChild) {
2533
+ if (a)
2534
2534
  return !1;
2535
- s = !0;
2535
+ a = !0;
2536
2536
  }
2537
- const c = r ? !1 : d.disabled || d.getAttribute("aria-disabled") === "true";
2538
- if (!d.hasAttribute("tabindex") || !Zo(d, u) || c)
2539
- d = a(o, d, n);
2537
+ const f = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
2538
+ if (!c.hasAttribute("tabindex") || !Zo(c, d) || f)
2539
+ c = i(o, c, n);
2540
2540
  else
2541
- return d.focus(), !0;
2541
+ return c.focus(), !0;
2542
2542
  }
2543
2543
  return !1;
2544
2544
  }
@@ -2547,82 +2547,82 @@ const Jo = /* @__PURE__ */ l.forwardRef(function(t, n) {
2547
2547
  // private
2548
2548
  // eslint-disable-next-line react/prop-types
2549
2549
  actions: r,
2550
- autoFocus: a = !1,
2551
- autoFocusItem: u = !1,
2552
- children: s,
2553
- className: d,
2554
- disabledItemsFocusable: c = !1,
2555
- disableListWrap: m = !1,
2556
- onKeyDown: y,
2557
- variant: b = "selectedMenu",
2558
- ...w
2559
- } = t, h = l.useRef(null), I = l.useRef({
2550
+ autoFocus: i = !1,
2551
+ autoFocusItem: d = !1,
2552
+ children: a,
2553
+ className: c,
2554
+ disabledItemsFocusable: f = !1,
2555
+ disableListWrap: u = !1,
2556
+ onKeyDown: m,
2557
+ variant: C = "selectedMenu",
2558
+ ...S
2559
+ } = t, v = l.useRef(null), x = l.useRef({
2560
2560
  keys: [],
2561
2561
  repeating: !0,
2562
2562
  previousKeyMatched: !0,
2563
2563
  lastTime: null
2564
2564
  });
2565
- je(() => {
2566
- a && h.current.focus();
2567
- }, [a]), l.useImperativeHandle(r, () => ({
2568
- adjustStyleForScrollbar: (i, {
2569
- direction: f
2565
+ Be(() => {
2566
+ i && v.current.focus();
2567
+ }, [i]), l.useImperativeHandle(r, () => ({
2568
+ adjustStyleForScrollbar: (s, {
2569
+ direction: b
2570
2570
  }) => {
2571
- const R = !h.current.style.width;
2572
- if (i.clientHeight < h.current.clientHeight && R) {
2573
- const $ = `${ht(uo(i))}px`;
2574
- h.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = $, h.current.style.width = `calc(100% + ${$})`;
2571
+ const R = !v.current.style.width;
2572
+ if (s.clientHeight < v.current.clientHeight && R) {
2573
+ const L = `${ht(uo(s))}px`;
2574
+ v.current.style[b === "rtl" ? "paddingLeft" : "paddingRight"] = L, v.current.style.width = `calc(100% + ${L})`;
2575
2575
  }
2576
- return h.current;
2576
+ return v.current;
2577
2577
  }
2578
2578
  }), []);
2579
- const O = (i) => {
2580
- const f = h.current, R = i.key;
2581
- if (i.ctrlKey || i.metaKey || i.altKey) {
2582
- y && y(i);
2579
+ const I = (s) => {
2580
+ const b = v.current, R = s.key;
2581
+ if (s.ctrlKey || s.metaKey || s.altKey) {
2582
+ m && m(s);
2583
2583
  return;
2584
2584
  }
2585
- const D = _o(f).activeElement;
2585
+ const N = _o(b).activeElement;
2586
2586
  if (R === "ArrowDown")
2587
- i.preventDefault(), $e(f, D, m, c, co);
2587
+ s.preventDefault(), Le(b, N, u, f, co);
2588
2588
  else if (R === "ArrowUp")
2589
- i.preventDefault(), $e(f, D, m, c, jo);
2589
+ s.preventDefault(), Le(b, N, u, f, jo);
2590
2590
  else if (R === "Home")
2591
- i.preventDefault(), $e(f, null, m, c, co);
2591
+ s.preventDefault(), Le(b, null, u, f, co);
2592
2592
  else if (R === "End")
2593
- i.preventDefault(), $e(f, null, m, c, jo);
2593
+ s.preventDefault(), Le(b, null, u, f, jo);
2594
2594
  else if (R.length === 1) {
2595
- const k = I.current, z = R.toLowerCase(), N = performance.now();
2596
- k.keys.length > 0 && (N - k.lastTime > 500 ? (k.keys = [], k.repeating = !0, k.previousKeyMatched = !0) : k.repeating && z !== k.keys[0] && (k.repeating = !1)), k.lastTime = N, k.keys.push(z);
2597
- const B = D && !k.repeating && Zo(D, k);
2598
- k.previousKeyMatched && (B || $e(f, D, !1, c, co, k)) ? i.preventDefault() : k.previousKeyMatched = !1;
2595
+ const k = x.current, j = R.toLowerCase(), P = performance.now();
2596
+ k.keys.length > 0 && (P - k.lastTime > 500 ? (k.keys = [], k.repeating = !0, k.previousKeyMatched = !0) : k.repeating && j !== k.keys[0] && (k.repeating = !1)), k.lastTime = P, k.keys.push(j);
2597
+ const B = N && !k.repeating && Zo(N, k);
2598
+ k.previousKeyMatched && (B || Le(b, N, !1, f, co, k)) ? s.preventDefault() : k.previousKeyMatched = !1;
2599
2599
  }
2600
- y && y(i);
2601
- }, S = ke(h, n);
2600
+ m && m(s);
2601
+ }, O = Te(v, n);
2602
2602
  let p = -1;
2603
- l.Children.forEach(s, (i, f) => {
2604
- if (!/* @__PURE__ */ l.isValidElement(i)) {
2605
- p === f && (p += 1, p >= s.length && (p = -1));
2603
+ l.Children.forEach(a, (s, b) => {
2604
+ if (!/* @__PURE__ */ l.isValidElement(s)) {
2605
+ p === b && (p += 1, p >= a.length && (p = -1));
2606
2606
  return;
2607
2607
  }
2608
- process.env.NODE_ENV !== "production" && bo.isFragment(i) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2609
- `)), i.props.disabled || (b === "selectedMenu" && i.props.selected || p === -1) && (p = f), p === f && (i.props.disabled || i.props.muiSkipListHighlight || i.type.muiSkipListHighlight) && (p += 1, p >= s.length && (p = -1));
2608
+ process.env.NODE_ENV !== "production" && bo.isFragment(s) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2609
+ `)), s.props.disabled || (C === "selectedMenu" && s.props.selected || p === -1) && (p = b), p === b && (s.props.disabled || s.props.muiSkipListHighlight || s.type.muiSkipListHighlight) && (p += 1, p >= a.length && (p = -1));
2610
2610
  });
2611
- const v = l.Children.map(s, (i, f) => {
2612
- if (f === p) {
2611
+ const h = l.Children.map(a, (s, b) => {
2612
+ if (b === p) {
2613
2613
  const R = {};
2614
- return u && (R.autoFocus = !0), i.props.tabIndex === void 0 && b === "selectedMenu" && (R.tabIndex = 0), /* @__PURE__ */ l.cloneElement(i, R);
2614
+ return d && (R.autoFocus = !0), s.props.tabIndex === void 0 && C === "selectedMenu" && (R.tabIndex = 0), /* @__PURE__ */ l.cloneElement(s, R);
2615
2615
  }
2616
- return i;
2616
+ return s;
2617
2617
  });
2618
- return /* @__PURE__ */ g(ft, {
2618
+ return /* @__PURE__ */ y(ft, {
2619
2619
  role: "menu",
2620
- ref: S,
2621
- className: d,
2622
- onKeyDown: O,
2623
- tabIndex: a ? 0 : -1,
2624
- ...w,
2625
- children: v
2620
+ ref: O,
2621
+ className: c,
2622
+ onKeyDown: I,
2623
+ tabIndex: i ? 0 : -1,
2624
+ ...S,
2625
+ children: h
2626
2626
  });
2627
2627
  });
2628
2628
  process.env.NODE_ENV !== "production" && (Jo.propTypes = {
@@ -2671,7 +2671,7 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
2671
2671
  variant: e.oneOf(["menu", "selectedMenu"])
2672
2672
  });
2673
2673
  function on(o) {
2674
- return J("MuiMenu", o);
2674
+ return Z("MuiMenu", o);
2675
2675
  }
2676
2676
  G("MuiMenu", ["root", "paper", "list"]);
2677
2677
  const tn = {
@@ -2684,17 +2684,17 @@ const tn = {
2684
2684
  const {
2685
2685
  classes: t
2686
2686
  } = o;
2687
- return Q({
2687
+ return J({
2688
2688
  root: ["root"],
2689
2689
  paper: ["paper"],
2690
2690
  list: ["list"]
2691
2691
  }, on, t);
2692
- }, sn = E(yt, {
2692
+ }, sn = M(yt, {
2693
2693
  shouldForwardProp: (o) => ne(o) || o === "classes",
2694
2694
  name: "MuiMenu",
2695
2695
  slot: "Root",
2696
2696
  overridesResolver: (o, t) => t.root
2697
- })({}), an = E(gt, {
2697
+ })({}), an = M(gt, {
2698
2698
  name: "MuiMenu",
2699
2699
  slot: "Paper",
2700
2700
  overridesResolver: (o, t) => t.paper
@@ -2705,7 +2705,7 @@ const tn = {
2705
2705
  maxHeight: "calc(100% - 96px)",
2706
2706
  // Add iOS momentum scrolling for iOS < 13.0
2707
2707
  WebkitOverflowScrolling: "touch"
2708
- }), ln = E(Jo, {
2708
+ }), ln = M(Jo, {
2709
2709
  name: "MuiMenu",
2710
2710
  slot: "List",
2711
2711
  overridesResolver: (o, t) => t.list
@@ -2717,91 +2717,91 @@ const tn = {
2717
2717
  props: t,
2718
2718
  name: "MuiMenu"
2719
2719
  }), {
2720
- autoFocus: a = !0,
2721
- children: u,
2722
- className: s,
2723
- disableAutoFocusItem: d = !1,
2724
- MenuListProps: c = {},
2725
- onClose: m,
2726
- open: y,
2727
- PaperProps: b = {},
2728
- PopoverClasses: w,
2729
- transitionDuration: h = "auto",
2720
+ autoFocus: i = !0,
2721
+ children: d,
2722
+ className: a,
2723
+ disableAutoFocusItem: c = !1,
2724
+ MenuListProps: f = {},
2725
+ onClose: u,
2726
+ open: m,
2727
+ PaperProps: C = {},
2728
+ PopoverClasses: S,
2729
+ transitionDuration: v = "auto",
2730
2730
  TransitionProps: {
2731
- onEntering: I,
2732
- ...O
2731
+ onEntering: x,
2732
+ ...I
2733
2733
  } = {},
2734
- variant: S = "selectedMenu",
2734
+ variant: O = "selectedMenu",
2735
2735
  slots: p = {},
2736
- slotProps: v = {},
2737
- ...i
2738
- } = r, f = mt(), R = {
2736
+ slotProps: h = {},
2737
+ ...s
2738
+ } = r, b = mt(), R = {
2739
2739
  ...r,
2740
- autoFocus: a,
2741
- disableAutoFocusItem: d,
2742
- MenuListProps: c,
2743
- onEntering: I,
2744
- PaperProps: b,
2745
- transitionDuration: h,
2746
- TransitionProps: O,
2747
- variant: S
2748
- }, $ = rn(R), D = a && !d && y, k = l.useRef(null), z = (A, P) => {
2749
- k.current && k.current.adjustStyleForScrollbar(A, {
2750
- direction: f ? "rtl" : "ltr"
2751
- }), I && I(A, P);
2752
- }, N = (A) => {
2753
- A.key === "Tab" && (A.preventDefault(), m && m(A, "tabKeyDown"));
2740
+ autoFocus: i,
2741
+ disableAutoFocusItem: c,
2742
+ MenuListProps: f,
2743
+ onEntering: x,
2744
+ PaperProps: C,
2745
+ transitionDuration: v,
2746
+ TransitionProps: I,
2747
+ variant: O
2748
+ }, L = rn(R), N = i && !c && m, k = l.useRef(null), j = (E, F) => {
2749
+ k.current && k.current.adjustStyleForScrollbar(E, {
2750
+ direction: b ? "rtl" : "ltr"
2751
+ }), x && x(E, F);
2752
+ }, P = (E) => {
2753
+ E.key === "Tab" && (E.preventDefault(), u && u(E, "tabKeyDown"));
2754
2754
  };
2755
2755
  let B = -1;
2756
- l.Children.map(u, (A, P) => {
2757
- /* @__PURE__ */ l.isValidElement(A) && (process.env.NODE_ENV !== "production" && bo.isFragment(A) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2758
- `)), A.props.disabled || (S === "selectedMenu" && A.props.selected || B === -1) && (B = P));
2756
+ l.Children.map(d, (E, F) => {
2757
+ /* @__PURE__ */ l.isValidElement(E) && (process.env.NODE_ENV !== "production" && bo.isFragment(E) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2758
+ `)), E.props.disabled || (O === "selectedMenu" && E.props.selected || B === -1) && (B = F));
2759
2759
  });
2760
- const W = p.paper ?? an, U = v.paper ?? b, x = Eo({
2760
+ const z = p.paper ?? an, U = h.paper ?? C, W = Eo({
2761
2761
  elementType: p.root,
2762
- externalSlotProps: v.root,
2762
+ externalSlotProps: h.root,
2763
2763
  ownerState: R,
2764
- className: [$.root, s]
2765
- }), T = Eo({
2766
- elementType: W,
2764
+ className: [L.root, a]
2765
+ }), g = Eo({
2766
+ elementType: z,
2767
2767
  externalSlotProps: U,
2768
2768
  ownerState: R,
2769
- className: $.paper
2769
+ className: L.paper
2770
2770
  });
2771
- return /* @__PURE__ */ g(sn, {
2772
- onClose: m,
2771
+ return /* @__PURE__ */ y(sn, {
2772
+ onClose: u,
2773
2773
  anchorOrigin: {
2774
2774
  vertical: "bottom",
2775
- horizontal: f ? "right" : "left"
2775
+ horizontal: b ? "right" : "left"
2776
2776
  },
2777
- transformOrigin: f ? tn : nn,
2777
+ transformOrigin: b ? tn : nn,
2778
2778
  slots: {
2779
- paper: W,
2779
+ paper: z,
2780
2780
  root: p.root
2781
2781
  },
2782
2782
  slotProps: {
2783
- root: x,
2784
- paper: T
2783
+ root: W,
2784
+ paper: g
2785
2785
  },
2786
- open: y,
2786
+ open: m,
2787
2787
  ref: n,
2788
- transitionDuration: h,
2788
+ transitionDuration: v,
2789
2789
  TransitionProps: {
2790
- onEntering: z,
2791
- ...O
2790
+ onEntering: j,
2791
+ ...I
2792
2792
  },
2793
2793
  ownerState: R,
2794
- ...i,
2795
- classes: w,
2796
- children: /* @__PURE__ */ g(ln, {
2797
- onKeyDown: N,
2794
+ ...s,
2795
+ classes: S,
2796
+ children: /* @__PURE__ */ y(ln, {
2797
+ onKeyDown: P,
2798
2798
  actions: k,
2799
- autoFocus: a && (B === -1 || d),
2800
- autoFocusItem: D,
2801
- variant: S,
2802
- ...c,
2803
- className: Z($.list, c.className),
2804
- children: u
2799
+ autoFocus: i && (B === -1 || c),
2800
+ autoFocusItem: N,
2801
+ variant: O,
2802
+ ...f,
2803
+ className: Y(L.list, f.className),
2804
+ children: d
2805
2805
  })
2806
2806
  });
2807
2807
  });
@@ -2909,9 +2909,9 @@ process.env.NODE_ENV !== "production" && (Qo.propTypes = {
2909
2909
  variant: e.oneOf(["menu", "selectedMenu"])
2910
2910
  });
2911
2911
  function cn(o) {
2912
- return J("MuiMenuItem", o);
2912
+ return Z("MuiMenuItem", o);
2913
2913
  }
2914
- const Le = G("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), dn = (o, t) => {
2914
+ const De = G("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), dn = (o, t) => {
2915
2915
  const {
2916
2916
  ownerState: n
2917
2917
  } = o;
@@ -2921,17 +2921,17 @@ const Le = G("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divid
2921
2921
  disabled: t,
2922
2922
  dense: n,
2923
2923
  divider: r,
2924
- disableGutters: a,
2925
- selected: u,
2926
- classes: s
2927
- } = o, c = Q({
2928
- root: ["root", n && "dense", t && "disabled", !a && "gutters", r && "divider", u && "selected"]
2929
- }, cn, s);
2924
+ disableGutters: i,
2925
+ selected: d,
2926
+ classes: a
2927
+ } = o, f = J({
2928
+ root: ["root", n && "dense", t && "disabled", !i && "gutters", r && "divider", d && "selected"]
2929
+ }, cn, a);
2930
2930
  return {
2931
- ...s,
2932
- ...c
2931
+ ...a,
2932
+ ...f
2933
2933
  };
2934
- }, pn = E(ut, {
2934
+ }, pn = M(ut, {
2935
2935
  shouldForwardProp: (o) => ne(o) || o === "classes",
2936
2936
  name: "MuiMenuItem",
2937
2937
  slot: "Root",
@@ -2958,23 +2958,23 @@ const Le = G("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divid
2958
2958
  backgroundColor: "transparent"
2959
2959
  }
2960
2960
  },
2961
- [`&.${Le.selected}`]: {
2962
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})` : qe(o.palette.primary.main, o.palette.action.selectedOpacity),
2963
- [`&.${Le.focusVisible}`]: {
2964
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))` : qe(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.focusOpacity)
2961
+ [`&.${De.selected}`]: {
2962
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})` : _e(o.palette.primary.main, o.palette.action.selectedOpacity),
2963
+ [`&.${De.focusVisible}`]: {
2964
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))` : _e(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.focusOpacity)
2965
2965
  }
2966
2966
  },
2967
- [`&.${Le.selected}:hover`]: {
2968
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))` : qe(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.hoverOpacity),
2967
+ [`&.${De.selected}:hover`]: {
2968
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))` : _e(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.hoverOpacity),
2969
2969
  // Reset on touch devices, it doesn't add specificity
2970
2970
  "@media (hover: none)": {
2971
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})` : qe(o.palette.primary.main, o.palette.action.selectedOpacity)
2971
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})` : _e(o.palette.primary.main, o.palette.action.selectedOpacity)
2972
2972
  }
2973
2973
  },
2974
- [`&.${Le.focusVisible}`]: {
2974
+ [`&.${De.focusVisible}`]: {
2975
2975
  backgroundColor: (o.vars || o).palette.action.focus
2976
2976
  },
2977
- [`&.${Le.disabled}`]: {
2977
+ [`&.${De.disabled}`]: {
2978
2978
  opacity: (o.vars || o).palette.action.disabledOpacity
2979
2979
  },
2980
2980
  [`& + .${No.root}`]: {
@@ -3039,42 +3039,42 @@ const Le = G("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divid
3039
3039
  props: t,
3040
3040
  name: "MuiMenuItem"
3041
3041
  }), {
3042
- autoFocus: a = !1,
3043
- component: u = "li",
3044
- dense: s = !1,
3045
- divider: d = !1,
3046
- disableGutters: c = !1,
3047
- focusVisibleClassName: m,
3048
- role: y = "menuitem",
3049
- tabIndex: b,
3050
- className: w,
3051
- ...h
3052
- } = r, I = l.useContext(Mo), O = l.useMemo(() => ({
3053
- dense: s || I.dense || !1,
3054
- disableGutters: c
3055
- }), [I.dense, s, c]), S = l.useRef(null);
3056
- je(() => {
3057
- a && (S.current ? S.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
3058
- }, [a]);
3042
+ autoFocus: i = !1,
3043
+ component: d = "li",
3044
+ dense: a = !1,
3045
+ divider: c = !1,
3046
+ disableGutters: f = !1,
3047
+ focusVisibleClassName: u,
3048
+ role: m = "menuitem",
3049
+ tabIndex: C,
3050
+ className: S,
3051
+ ...v
3052
+ } = r, x = l.useContext(Mo), I = l.useMemo(() => ({
3053
+ dense: a || x.dense || !1,
3054
+ disableGutters: f
3055
+ }), [x.dense, a, f]), O = l.useRef(null);
3056
+ Be(() => {
3057
+ i && (O.current ? O.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
3058
+ }, [i]);
3059
3059
  const p = {
3060
3060
  ...r,
3061
- dense: O.dense,
3062
- divider: d,
3063
- disableGutters: c
3064
- }, v = un(r), i = ke(S, n);
3065
- let f;
3066
- return r.disabled || (f = b !== void 0 ? b : -1), /* @__PURE__ */ g(Mo.Provider, {
3067
- value: O,
3068
- children: /* @__PURE__ */ g(pn, {
3069
- ref: i,
3070
- role: y,
3071
- tabIndex: f,
3072
- component: u,
3073
- focusVisibleClassName: Z(v.focusVisible, m),
3074
- className: Z(v.root, w),
3075
- ...h,
3061
+ dense: I.dense,
3062
+ divider: c,
3063
+ disableGutters: f
3064
+ }, h = un(r), s = Te(O, n);
3065
+ let b;
3066
+ return r.disabled || (b = C !== void 0 ? C : -1), /* @__PURE__ */ y(Mo.Provider, {
3067
+ value: I,
3068
+ children: /* @__PURE__ */ y(pn, {
3069
+ ref: s,
3070
+ role: m,
3071
+ tabIndex: b,
3072
+ component: d,
3073
+ focusVisibleClassName: Y(h.focusVisible, u),
3074
+ className: Y(h.root, S),
3075
+ ...v,
3076
3076
  ownerState: p,
3077
- classes: v
3077
+ classes: h
3078
3078
  })
3079
3079
  });
3080
3080
  });
@@ -3154,22 +3154,22 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
3154
3154
  tabIndex: e.number
3155
3155
  });
3156
3156
  function fn(o) {
3157
- return J("MuiNativeSelect", o);
3157
+ return Z("MuiNativeSelect", o);
3158
3158
  }
3159
3159
  const ho = G("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), mn = (o) => {
3160
3160
  const {
3161
3161
  classes: t,
3162
3162
  variant: n,
3163
3163
  disabled: r,
3164
- multiple: a,
3165
- open: u,
3166
- error: s
3167
- } = o, d = {
3168
- select: ["select", n, r && "disabled", a && "multiple", s && "error"],
3169
- icon: ["icon", `icon${H(n)}`, u && "iconOpen", r && "disabled"]
3164
+ multiple: i,
3165
+ open: d,
3166
+ error: a
3167
+ } = o, c = {
3168
+ select: ["select", n, r && "disabled", i && "multiple", a && "error"],
3169
+ icon: ["icon", `icon${H(n)}`, d && "iconOpen", r && "disabled"]
3170
3170
  };
3171
- return Q(d, fn, t);
3172
- }, ot = E("select")(({
3171
+ return J(c, fn, t);
3172
+ }, ot = M("select")(({
3173
3173
  theme: o
3174
3174
  }) => ({
3175
3175
  // Reset
@@ -3231,7 +3231,7 @@ const ho = G("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
3231
3231
  }
3232
3232
  }
3233
3233
  }]
3234
- })), bn = E(ot, {
3234
+ })), bn = M(ot, {
3235
3235
  name: "MuiNativeSelect",
3236
3236
  slot: "Select",
3237
3237
  shouldForwardProp: ne,
@@ -3243,7 +3243,7 @@ const ho = G("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
3243
3243
  [`&.${ho.multiple}`]: t.multiple
3244
3244
  }];
3245
3245
  }
3246
- })({}), tt = E("svg")(({
3246
+ })({}), tt = M("svg")(({
3247
3247
  theme: o
3248
3248
  }) => ({
3249
3249
  // We use a position absolute over a flexbox in order to forward the pointer events
@@ -3280,7 +3280,7 @@ const ho = G("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
3280
3280
  right: 7
3281
3281
  }
3282
3282
  }]
3283
- })), yn = E(tt, {
3283
+ })), yn = M(tt, {
3284
3284
  name: "MuiNativeSelect",
3285
3285
  slot: "Icon",
3286
3286
  overridesResolver: (o, t) => {
@@ -3292,29 +3292,29 @@ const ho = G("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
3292
3292
  })({}), nt = /* @__PURE__ */ l.forwardRef(function(t, n) {
3293
3293
  const {
3294
3294
  className: r,
3295
- disabled: a,
3296
- error: u,
3297
- IconComponent: s,
3298
- inputRef: d,
3299
- variant: c = "standard",
3300
- ...m
3301
- } = t, y = {
3295
+ disabled: i,
3296
+ error: d,
3297
+ IconComponent: a,
3298
+ inputRef: c,
3299
+ variant: f = "standard",
3300
+ ...u
3301
+ } = t, m = {
3302
3302
  ...t,
3303
- disabled: a,
3304
- variant: c,
3305
- error: u
3306
- }, b = mn(y);
3303
+ disabled: i,
3304
+ variant: f,
3305
+ error: d
3306
+ }, C = mn(m);
3307
3307
  return /* @__PURE__ */ q(l.Fragment, {
3308
- children: [/* @__PURE__ */ g(bn, {
3309
- ownerState: y,
3310
- className: Z(b.select, r),
3311
- disabled: a,
3312
- ref: d || n,
3313
- ...m
3314
- }), t.multiple ? null : /* @__PURE__ */ g(yn, {
3315
- as: s,
3316
- ownerState: y,
3317
- className: b.icon
3308
+ children: [/* @__PURE__ */ y(bn, {
3309
+ ownerState: m,
3310
+ className: Y(C.select, r),
3311
+ disabled: i,
3312
+ ref: c || n,
3313
+ ...u
3314
+ }), t.multiple ? null : /* @__PURE__ */ y(yn, {
3315
+ as: a,
3316
+ ownerState: m,
3317
+ className: C.icon
3318
3318
  })]
3319
3319
  });
3320
3320
  });
@@ -3348,7 +3348,7 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
3348
3348
  * Use that prop to pass a ref to the native select element.
3349
3349
  * @deprecated
3350
3350
  */
3351
- inputRef: Re,
3351
+ inputRef: ke,
3352
3352
  /**
3353
3353
  * @ignore
3354
3354
  */
@@ -3374,7 +3374,7 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
3374
3374
  variant: e.oneOf(["standard", "outlined", "filled"])
3375
3375
  });
3376
3376
  var Bo;
3377
- const gn = E("fieldset", {
3377
+ const gn = M("fieldset", {
3378
3378
  shouldForwardProp: ne
3379
3379
  })({
3380
3380
  textAlign: "left",
@@ -3391,7 +3391,7 @@ const gn = E("fieldset", {
3391
3391
  borderWidth: 1,
3392
3392
  overflow: "hidden",
3393
3393
  minWidth: "0%"
3394
- }), hn = E("legend", {
3394
+ }), hn = M("legend", {
3395
3395
  shouldForwardProp: ne
3396
3396
  })(_(({
3397
3397
  theme: o
@@ -3460,26 +3460,26 @@ function rt(o) {
3460
3460
  children: t,
3461
3461
  classes: n,
3462
3462
  className: r,
3463
- label: a,
3464
- notched: u,
3465
- ...s
3466
- } = o, d = a != null && a !== "", c = {
3463
+ label: i,
3464
+ notched: d,
3465
+ ...a
3466
+ } = o, c = i != null && i !== "", f = {
3467
3467
  ...o,
3468
- notched: u,
3469
- withLabel: d
3468
+ notched: d,
3469
+ withLabel: c
3470
3470
  };
3471
- return /* @__PURE__ */ g(gn, {
3471
+ return /* @__PURE__ */ y(gn, {
3472
3472
  "aria-hidden": !0,
3473
3473
  className: r,
3474
- ownerState: c,
3475
- ...s,
3476
- children: /* @__PURE__ */ g(hn, {
3477
- ownerState: c,
3478
- children: d ? /* @__PURE__ */ g("span", {
3479
- children: a
3474
+ ownerState: f,
3475
+ ...a,
3476
+ children: /* @__PURE__ */ y(hn, {
3477
+ ownerState: f,
3478
+ children: c ? /* @__PURE__ */ y("span", {
3479
+ children: i
3480
3480
  }) : (
3481
3481
  // notranslate needed while Google Translate will not fix zero-width space issue
3482
- Bo || (Bo = /* @__PURE__ */ g("span", {
3482
+ Bo || (Bo = /* @__PURE__ */ y("span", {
3483
3483
  className: "notranslate",
3484
3484
  "aria-hidden": !0,
3485
3485
  children: "​"
@@ -3517,7 +3517,7 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
3517
3517
  const vn = (o) => {
3518
3518
  const {
3519
3519
  classes: t
3520
- } = o, r = Q({
3520
+ } = o, r = J({
3521
3521
  root: ["root"],
3522
3522
  notchedOutline: ["notchedOutline"],
3523
3523
  input: ["input"]
@@ -3527,11 +3527,11 @@ const vn = (o) => {
3527
3527
  // forward classes to the InputBase
3528
3528
  ...r
3529
3529
  };
3530
- }, Cn = E(Je, {
3530
+ }, Cn = M(Qe, {
3531
3531
  shouldForwardProp: (o) => ne(o) || o === "classes",
3532
3532
  name: "MuiOutlinedInput",
3533
3533
  slot: "Root",
3534
- overridesResolver: Ye
3534
+ overridesResolver: Ze
3535
3535
  })(_(({
3536
3536
  theme: o
3537
3537
  }) => {
@@ -3551,7 +3551,7 @@ const vn = (o) => {
3551
3551
  [`&.${te.focused} .${te.notchedOutline}`]: {
3552
3552
  borderWidth: 2
3553
3553
  },
3554
- variants: [...Object.entries(o.palette).filter(Be()).map(([n]) => ({
3554
+ variants: [...Object.entries(o.palette).filter(ze()).map(([n]) => ({
3555
3555
  props: {
3556
3556
  color: n
3557
3557
  },
@@ -3602,7 +3602,7 @@ const vn = (o) => {
3602
3602
  }
3603
3603
  }]
3604
3604
  };
3605
- })), Sn = E(rt, {
3605
+ })), Sn = M(rt, {
3606
3606
  name: "MuiOutlinedInput",
3607
3607
  slot: "NotchedOutline",
3608
3608
  overridesResolver: (o, t) => t.notchedOutline
@@ -3613,10 +3613,10 @@ const vn = (o) => {
3613
3613
  return {
3614
3614
  borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
3615
3615
  };
3616
- })), wn = E(Qe, {
3616
+ })), wn = M(eo, {
3617
3617
  name: "MuiOutlinedInput",
3618
3618
  slot: "Input",
3619
- overridesResolver: Ze
3619
+ overridesResolver: Je
3620
3620
  })(_(({
3621
3621
  theme: o
3622
3622
  }) => ({
@@ -3672,57 +3672,57 @@ const vn = (o) => {
3672
3672
  }]
3673
3673
  }))), vo = /* @__PURE__ */ l.forwardRef(function(t, n) {
3674
3674
  var r;
3675
- const a = ee({
3675
+ const i = ee({
3676
3676
  props: t,
3677
3677
  name: "MuiOutlinedInput"
3678
3678
  }), {
3679
- components: u = {},
3680
- fullWidth: s = !1,
3681
- inputComponent: d = "input",
3682
- label: c,
3683
- multiline: m = !1,
3684
- notched: y,
3685
- slots: b = {},
3686
- type: w = "text",
3687
- ...h
3688
- } = a, I = vn(a), O = ze(), S = We({
3689
- props: a,
3690
- muiFormControl: O,
3679
+ components: d = {},
3680
+ fullWidth: a = !1,
3681
+ inputComponent: c = "input",
3682
+ label: f,
3683
+ multiline: u = !1,
3684
+ notched: m,
3685
+ slots: C = {},
3686
+ type: S = "text",
3687
+ ...v
3688
+ } = i, x = vn(i), I = We(), O = Ue({
3689
+ props: i,
3690
+ muiFormControl: I,
3691
3691
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
3692
3692
  }), p = {
3693
- ...a,
3694
- color: S.color || "primary",
3695
- disabled: S.disabled,
3696
- error: S.error,
3697
- focused: S.focused,
3698
- formControl: O,
3699
- fullWidth: s,
3700
- hiddenLabel: S.hiddenLabel,
3701
- multiline: m,
3702
- size: S.size,
3703
- type: w
3704
- }, v = b.root ?? u.Root ?? Cn, i = b.input ?? u.Input ?? wn;
3705
- return /* @__PURE__ */ g(eo, {
3693
+ ...i,
3694
+ color: O.color || "primary",
3695
+ disabled: O.disabled,
3696
+ error: O.error,
3697
+ focused: O.focused,
3698
+ formControl: I,
3699
+ fullWidth: a,
3700
+ hiddenLabel: O.hiddenLabel,
3701
+ multiline: u,
3702
+ size: O.size,
3703
+ type: S
3704
+ }, h = C.root ?? d.Root ?? Cn, s = C.input ?? d.Input ?? wn;
3705
+ return /* @__PURE__ */ y(oo, {
3706
3706
  slots: {
3707
- root: v,
3708
- input: i
3707
+ root: h,
3708
+ input: s
3709
3709
  },
3710
- renderSuffix: (f) => /* @__PURE__ */ g(Sn, {
3710
+ renderSuffix: (b) => /* @__PURE__ */ y(Sn, {
3711
3711
  ownerState: p,
3712
- className: I.notchedOutline,
3713
- label: c != null && c !== "" && S.required ? r || (r = /* @__PURE__ */ q(l.Fragment, {
3714
- children: [c, " ", "*"]
3715
- })) : c,
3716
- notched: typeof y < "u" ? y : !!(f.startAdornment || f.filled || f.focused)
3712
+ className: x.notchedOutline,
3713
+ label: f != null && f !== "" && O.required ? r || (r = /* @__PURE__ */ q(l.Fragment, {
3714
+ children: [f, " ", "*"]
3715
+ })) : f,
3716
+ notched: typeof m < "u" ? m : !!(b.startAdornment || b.filled || b.focused)
3717
3717
  }),
3718
- fullWidth: s,
3719
- inputComponent: d,
3720
- multiline: m,
3718
+ fullWidth: a,
3719
+ inputComponent: c,
3720
+ multiline: u,
3721
3721
  ref: n,
3722
- type: w,
3723
- ...h,
3722
+ type: S,
3723
+ ...v,
3724
3724
  classes: {
3725
- ...I,
3725
+ ...x,
3726
3726
  notchedOutline: null
3727
3727
  }
3728
3728
  });
@@ -3805,7 +3805,7 @@ process.env.NODE_ENV !== "production" && (vo.propTypes = {
3805
3805
  /**
3806
3806
  * Pass a ref to the `input` element.
3807
3807
  */
3808
- inputRef: Re,
3808
+ inputRef: ke,
3809
3809
  /**
3810
3810
  * The label of the `input`. It is only used for layout. The actual labelling
3811
3811
  * is handled by `InputLabel`.
@@ -3894,11 +3894,11 @@ process.env.NODE_ENV !== "production" && (vo.propTypes = {
3894
3894
  });
3895
3895
  vo.muiName = "Input";
3896
3896
  function On(o) {
3897
- return J("MuiSelect", o);
3897
+ return Z("MuiSelect", o);
3898
3898
  }
3899
- const De = G("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
3899
+ const Ae = G("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
3900
3900
  var zo;
3901
- const xn = E(ot, {
3901
+ const xn = M(ot, {
3902
3902
  name: "MuiSelect",
3903
3903
  slot: "Select",
3904
3904
  overridesResolver: (o, t) => {
@@ -3908,22 +3908,22 @@ const xn = E(ot, {
3908
3908
  return [
3909
3909
  // Win specificity over the input base
3910
3910
  {
3911
- [`&.${De.select}`]: t.select
3911
+ [`&.${Ae.select}`]: t.select
3912
3912
  },
3913
3913
  {
3914
- [`&.${De.select}`]: t[n.variant]
3914
+ [`&.${Ae.select}`]: t[n.variant]
3915
3915
  },
3916
3916
  {
3917
- [`&.${De.error}`]: t.error
3917
+ [`&.${Ae.error}`]: t.error
3918
3918
  },
3919
3919
  {
3920
- [`&.${De.multiple}`]: t.multiple
3920
+ [`&.${Ae.multiple}`]: t.multiple
3921
3921
  }
3922
3922
  ];
3923
3923
  }
3924
3924
  })({
3925
3925
  // Win specificity over the input base
3926
- [`&.${De.select}`]: {
3926
+ [`&.${Ae.select}`]: {
3927
3927
  height: "auto",
3928
3928
  // Resets for multiple select with chips
3929
3929
  minHeight: "1.4375em",
@@ -3932,7 +3932,7 @@ const xn = E(ot, {
3932
3932
  whiteSpace: "nowrap",
3933
3933
  overflow: "hidden"
3934
3934
  }
3935
- }), In = E(tt, {
3935
+ }), In = M(tt, {
3936
3936
  name: "MuiSelect",
3937
3937
  slot: "Icon",
3938
3938
  overridesResolver: (o, t) => {
@@ -3941,7 +3941,7 @@ const xn = E(ot, {
3941
3941
  } = o;
3942
3942
  return [t.icon, n.variant && t[`icon${H(n.variant)}`], n.open && t.iconOpen];
3943
3943
  }
3944
- })({}), Rn = E("input", {
3944
+ })({}), Rn = M("input", {
3945
3945
  shouldForwardProp: (o) => lt(o) && o !== "classes",
3946
3946
  name: "MuiSelect",
3947
3947
  slot: "NativeInput",
@@ -3966,242 +3966,242 @@ const Tn = (o) => {
3966
3966
  classes: t,
3967
3967
  variant: n,
3968
3968
  disabled: r,
3969
- multiple: a,
3970
- open: u,
3971
- error: s
3972
- } = o, d = {
3973
- select: ["select", n, r && "disabled", a && "multiple", s && "error"],
3974
- icon: ["icon", `icon${H(n)}`, u && "iconOpen", r && "disabled"],
3969
+ multiple: i,
3970
+ open: d,
3971
+ error: a
3972
+ } = o, c = {
3973
+ select: ["select", n, r && "disabled", i && "multiple", a && "error"],
3974
+ icon: ["icon", `icon${H(n)}`, d && "iconOpen", r && "disabled"],
3975
3975
  nativeInput: ["nativeInput"]
3976
3976
  };
3977
- return Q(d, On, t);
3977
+ return J(c, On, t);
3978
3978
  }, st = /* @__PURE__ */ l.forwardRef(function(t, n) {
3979
3979
  var Oo;
3980
3980
  const {
3981
3981
  "aria-describedby": r,
3982
- "aria-label": a,
3983
- autoFocus: u,
3984
- autoWidth: s,
3985
- children: d,
3986
- className: c,
3987
- defaultOpen: m,
3988
- defaultValue: y,
3989
- disabled: b,
3990
- displayEmpty: w,
3991
- error: h = !1,
3992
- IconComponent: I,
3993
- inputRef: O,
3994
- labelId: S,
3982
+ "aria-label": i,
3983
+ autoFocus: d,
3984
+ autoWidth: a,
3985
+ children: c,
3986
+ className: f,
3987
+ defaultOpen: u,
3988
+ defaultValue: m,
3989
+ disabled: C,
3990
+ displayEmpty: S,
3991
+ error: v = !1,
3992
+ IconComponent: x,
3993
+ inputRef: I,
3994
+ labelId: O,
3995
3995
  MenuProps: p = {},
3996
- multiple: v,
3997
- name: i,
3998
- onBlur: f,
3996
+ multiple: h,
3997
+ name: s,
3998
+ onBlur: b,
3999
3999
  onChange: R,
4000
- onClose: $,
4001
- onFocus: D,
4000
+ onClose: L,
4001
+ onFocus: N,
4002
4002
  onOpen: k,
4003
- open: z,
4004
- readOnly: N,
4003
+ open: j,
4004
+ readOnly: P,
4005
4005
  renderValue: B,
4006
- required: W,
4006
+ required: z,
4007
4007
  SelectDisplayProps: U = {},
4008
- tabIndex: x,
4008
+ tabIndex: W,
4009
4009
  // catching `type` from Input which makes no sense for SelectInput
4010
- type: T,
4011
- value: A,
4012
- variant: P = "standard",
4013
- ...Y
4014
- } = t, [F, oo] = Po({
4015
- controlled: A,
4016
- default: y,
4017
- name: "Select"
4018
- }), [Te, Ue] = Po({
4019
- controlled: z,
4010
+ type: g,
4011
+ value: E,
4012
+ variant: F = "standard",
4013
+ ...Q
4014
+ } = t, [$, he] = Po({
4015
+ controlled: E,
4020
4016
  default: m,
4021
4017
  name: "Select"
4018
+ }), [Me, Ve] = Po({
4019
+ controlled: j,
4020
+ default: u,
4021
+ name: "Select"
4022
4022
  }), ae = l.useRef(null), oe = l.useRef(null), [re, to] = l.useState(null), {
4023
4023
  current: ie
4024
- } = l.useRef(z != null), [Me, se] = l.useState(), no = ke(n, O), ro = l.useCallback((C) => {
4025
- oe.current = C, C && to(C);
4024
+ } = l.useRef(j != null), [Ee, se] = l.useState(), no = Te(n, I), ro = l.useCallback((w) => {
4025
+ oe.current = w, w && to(w);
4026
4026
  }, []), le = re == null ? void 0 : re.parentNode;
4027
4027
  l.useImperativeHandle(no, () => ({
4028
4028
  focus: () => {
4029
4029
  oe.current.focus();
4030
4030
  },
4031
4031
  node: ae.current,
4032
- value: F
4033
- }), [F]), l.useEffect(() => {
4034
- m && Te && re && !ie && (se(s ? null : le.clientWidth), oe.current.focus());
4035
- }, [re, s]), l.useEffect(() => {
4036
- u && oe.current.focus();
4037
- }, [u]), l.useEffect(() => {
4038
- if (!S)
4032
+ value: $
4033
+ }), [$]), l.useEffect(() => {
4034
+ u && Me && re && !ie && (se(a ? null : le.clientWidth), oe.current.focus());
4035
+ }, [re, a]), l.useEffect(() => {
4036
+ d && oe.current.focus();
4037
+ }, [d]), l.useEffect(() => {
4038
+ if (!O)
4039
4039
  return;
4040
- const C = _o(oe.current).getElementById(S);
4041
- if (C) {
4042
- const M = () => {
4040
+ const w = _o(oe.current).getElementById(O);
4041
+ if (w) {
4042
+ const T = () => {
4043
4043
  getSelection().isCollapsed && oe.current.focus();
4044
4044
  };
4045
- return C.addEventListener("click", M), () => {
4046
- C.removeEventListener("click", M);
4045
+ return w.addEventListener("click", T), () => {
4046
+ w.removeEventListener("click", T);
4047
4047
  };
4048
4048
  }
4049
- }, [S]);
4050
- const ce = (C, M) => {
4051
- C ? k && k(M) : $ && $(M), ie || (se(s ? null : le.clientWidth), Ue(C));
4052
- }, j = (C) => {
4053
- C.button === 0 && (C.preventDefault(), oe.current.focus(), ce(!0, C));
4054
- }, X = (C) => {
4055
- ce(!1, C);
4056
- }, de = l.Children.toArray(d), Ee = (C) => {
4057
- const M = de.find((V) => V.props.value === C.target.value);
4058
- M !== void 0 && (oo(M.props.value), R && R(C, M));
4059
- }, fe = (C) => (M) => {
4049
+ }, [O]);
4050
+ const ce = (w, T) => {
4051
+ w ? k && k(T) : L && L(T), ie || (se(a ? null : le.clientWidth), Ve(w));
4052
+ }, A = (w) => {
4053
+ w.button === 0 && (w.preventDefault(), oe.current.focus(), ce(!0, w));
4054
+ }, X = (w) => {
4055
+ ce(!1, w);
4056
+ }, de = l.Children.toArray(c), Ne = (w) => {
4057
+ const T = de.find((V) => V.props.value === w.target.value);
4058
+ T !== void 0 && (he(T.props.value), R && R(w, T));
4059
+ }, fe = (w) => (T) => {
4060
4060
  let V;
4061
- if (M.currentTarget.hasAttribute("tabindex")) {
4062
- if (v) {
4063
- V = Array.isArray(F) ? F.slice() : [];
4064
- const Oe = F.indexOf(C.props.value);
4065
- Oe === -1 ? V.push(C.props.value) : V.splice(Oe, 1);
4061
+ if (T.currentTarget.hasAttribute("tabindex")) {
4062
+ if (h) {
4063
+ V = Array.isArray($) ? $.slice() : [];
4064
+ const xe = $.indexOf(w.props.value);
4065
+ xe === -1 ? V.push(w.props.value) : V.splice(xe, 1);
4066
4066
  } else
4067
- V = C.props.value;
4068
- if (C.props.onClick && C.props.onClick(M), F !== V && (oo(V), R)) {
4069
- const Oe = M.nativeEvent || M, xo = new Oe.constructor(Oe.type, Oe);
4067
+ V = w.props.value;
4068
+ if (w.props.onClick && w.props.onClick(T), $ !== V && (he(V), R)) {
4069
+ const xe = T.nativeEvent || T, xo = new xe.constructor(xe.type, xe);
4070
4070
  Object.defineProperty(xo, "target", {
4071
4071
  writable: !0,
4072
4072
  value: {
4073
4073
  value: V,
4074
- name: i
4074
+ name: s
4075
4075
  }
4076
- }), R(xo, C);
4076
+ }), R(xo, w);
4077
4077
  }
4078
- v || ce(!1, M);
4078
+ h || ce(!1, T);
4079
4079
  }
4080
- }, so = (C) => {
4081
- N || [
4080
+ }, so = (w) => {
4081
+ P || [
4082
4082
  " ",
4083
4083
  "ArrowUp",
4084
4084
  "ArrowDown",
4085
4085
  // The native select doesn't respond to enter on macOS, but it's recommended by
4086
4086
  // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
4087
4087
  "Enter"
4088
- ].includes(C.key) && (C.preventDefault(), ce(!0, C));
4089
- }, he = re !== null && Te, ao = (C) => {
4090
- !he && f && (Object.defineProperty(C, "target", {
4088
+ ].includes(w.key) && (w.preventDefault(), ce(!0, w));
4089
+ }, ve = re !== null && Me, ao = (w) => {
4090
+ !ve && b && (Object.defineProperty(w, "target", {
4091
4091
  writable: !0,
4092
4092
  value: {
4093
- value: F,
4094
- name: i
4093
+ value: $,
4094
+ name: s
4095
4095
  }
4096
- }), f(C));
4096
+ }), b(w));
4097
4097
  };
4098
- delete Y["aria-invalid"];
4099
- let ue, ve;
4098
+ delete Q["aria-invalid"];
4099
+ let ue, Ce;
4100
4100
  const K = [];
4101
- let Ce = !1, me = !1;
4102
- (Xe({
4103
- value: F
4104
- }) || w) && (B ? ue = B(F) : Ce = !0);
4105
- const Ve = de.map((C) => {
4106
- if (!/* @__PURE__ */ l.isValidElement(C))
4101
+ let Se = !1, me = !1;
4102
+ (Ye({
4103
+ value: $
4104
+ }) || S) && (B ? ue = B($) : Se = !0);
4105
+ const He = de.map((w) => {
4106
+ if (!/* @__PURE__ */ l.isValidElement(w))
4107
4107
  return null;
4108
- process.env.NODE_ENV !== "production" && bo.isFragment(C) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4108
+ process.env.NODE_ENV !== "production" && bo.isFragment(w) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4109
4109
  `));
4110
- let M;
4111
- if (v) {
4112
- if (!Array.isArray(F))
4110
+ let T;
4111
+ if (h) {
4112
+ if (!Array.isArray($))
4113
4113
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Uo(2));
4114
- M = F.some((V) => Wo(V, C.props.value)), M && Ce && K.push(C.props.children);
4114
+ T = $.some((V) => Wo(V, w.props.value)), T && Se && K.push(w.props.children);
4115
4115
  } else
4116
- M = Wo(F, C.props.value), M && Ce && (ve = C.props.children);
4117
- return M && (me = !0), /* @__PURE__ */ l.cloneElement(C, {
4118
- "aria-selected": M ? "true" : "false",
4119
- onClick: fe(C),
4116
+ T = Wo($, w.props.value), T && Se && (Ce = w.props.children);
4117
+ return T && (me = !0), /* @__PURE__ */ l.cloneElement(w, {
4118
+ "aria-selected": T ? "true" : "false",
4119
+ onClick: fe(w),
4120
4120
  onKeyUp: (V) => {
4121
- V.key === " " && V.preventDefault(), C.props.onKeyUp && C.props.onKeyUp(V);
4121
+ V.key === " " && V.preventDefault(), w.props.onKeyUp && w.props.onKeyUp(V);
4122
4122
  },
4123
4123
  role: "option",
4124
- selected: M,
4124
+ selected: T,
4125
4125
  value: void 0,
4126
4126
  // The value is most likely not a valid HTML attribute.
4127
- "data-value": C.props.value
4127
+ "data-value": w.props.value
4128
4128
  // Instead, we provide it as a data attribute.
4129
4129
  });
4130
4130
  });
4131
4131
  process.env.NODE_ENV !== "production" && l.useEffect(() => {
4132
- if (!me && !v && F !== "") {
4133
- const C = de.map((M) => M.props.value);
4134
- console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${i ? `(name="${i}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${C.filter((M) => M != null).map((M) => `\`${M}\``).join(", ") || '""'}.`].join(`
4132
+ if (!me && !h && $ !== "") {
4133
+ const w = de.map((T) => T.props.value);
4134
+ console.warn([`MUI: You have provided an out-of-range value \`${$}\` for the select ${s ? `(name="${s}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${w.filter((T) => T != null).map((T) => `\`${T}\``).join(", ") || '""'}.`].join(`
4135
4135
  `));
4136
4136
  }
4137
- }, [me, de, v, i, F]), Ce && (v ? K.length === 0 ? ue = null : ue = K.reduce((C, M, V) => (C.push(M), V < K.length - 1 && C.push(", "), C), []) : ue = ve);
4138
- let Ne = Me;
4139
- !s && ie && re && (Ne = le.clientWidth);
4137
+ }, [me, de, h, s, $]), Se && (h ? K.length === 0 ? ue = null : ue = K.reduce((w, T, V) => (w.push(T), V < K.length - 1 && w.push(", "), w), []) : ue = Ce);
4138
+ let Pe = Ee;
4139
+ !a && ie && re && (Pe = le.clientWidth);
4140
4140
  let be;
4141
- typeof x < "u" ? be = x : be = b ? null : 0;
4142
- const Pe = U.id || (i ? `mui-component-select-${i}` : void 0), L = {
4141
+ typeof W < "u" ? be = W : be = C ? null : 0;
4142
+ const Fe = U.id || (s ? `mui-component-select-${s}` : void 0), D = {
4143
4143
  ...t,
4144
- variant: P,
4145
- value: F,
4146
- open: he,
4147
- error: h
4148
- }, Se = Tn(L), we = {
4144
+ variant: F,
4145
+ value: $,
4146
+ open: ve,
4147
+ error: v
4148
+ }, we = Tn(D), Oe = {
4149
4149
  ...p.PaperProps,
4150
4150
  ...(Oo = p.slotProps) == null ? void 0 : Oo.paper
4151
4151
  }, wo = St();
4152
4152
  return /* @__PURE__ */ q(l.Fragment, {
4153
- children: [/* @__PURE__ */ g(xn, {
4153
+ children: [/* @__PURE__ */ y(xn, {
4154
4154
  as: "div",
4155
4155
  ref: ro,
4156
4156
  tabIndex: be,
4157
4157
  role: "combobox",
4158
4158
  "aria-controls": wo,
4159
- "aria-disabled": b ? "true" : void 0,
4160
- "aria-expanded": he ? "true" : "false",
4159
+ "aria-disabled": C ? "true" : void 0,
4160
+ "aria-expanded": ve ? "true" : "false",
4161
4161
  "aria-haspopup": "listbox",
4162
- "aria-label": a,
4163
- "aria-labelledby": [S, Pe].filter(Boolean).join(" ") || void 0,
4162
+ "aria-label": i,
4163
+ "aria-labelledby": [O, Fe].filter(Boolean).join(" ") || void 0,
4164
4164
  "aria-describedby": r,
4165
- "aria-required": W ? "true" : void 0,
4166
- "aria-invalid": h ? "true" : void 0,
4165
+ "aria-required": z ? "true" : void 0,
4166
+ "aria-invalid": v ? "true" : void 0,
4167
4167
  onKeyDown: so,
4168
- onMouseDown: b || N ? null : j,
4168
+ onMouseDown: C || P ? null : A,
4169
4169
  onBlur: ao,
4170
- onFocus: D,
4170
+ onFocus: N,
4171
4171
  ...U,
4172
- ownerState: L,
4173
- className: Z(U.className, Se.select, c),
4174
- id: Pe,
4172
+ ownerState: D,
4173
+ className: Y(U.className, we.select, f),
4174
+ id: Fe,
4175
4175
  children: kn(ue) ? (
4176
4176
  // notranslate needed while Google Translate will not fix zero-width space issue
4177
- zo || (zo = /* @__PURE__ */ g("span", {
4177
+ zo || (zo = /* @__PURE__ */ y("span", {
4178
4178
  className: "notranslate",
4179
4179
  "aria-hidden": !0,
4180
4180
  children: "​"
4181
4181
  }))
4182
4182
  ) : ue
4183
- }), /* @__PURE__ */ g(Rn, {
4184
- "aria-invalid": h,
4185
- value: Array.isArray(F) ? F.join(",") : F,
4186
- name: i,
4183
+ }), /* @__PURE__ */ y(Rn, {
4184
+ "aria-invalid": v,
4185
+ value: Array.isArray($) ? $.join(",") : $,
4186
+ name: s,
4187
4187
  ref: ae,
4188
4188
  "aria-hidden": !0,
4189
- onChange: Ee,
4189
+ onChange: Ne,
4190
4190
  tabIndex: -1,
4191
- disabled: b,
4192
- className: Se.nativeInput,
4193
- autoFocus: u,
4194
- required: W,
4195
- ...Y,
4196
- ownerState: L
4197
- }), /* @__PURE__ */ g(In, {
4198
- as: I,
4199
- className: Se.icon,
4200
- ownerState: L
4201
- }), /* @__PURE__ */ g(Qo, {
4202
- id: `menu-${i || ""}`,
4191
+ disabled: C,
4192
+ className: we.nativeInput,
4193
+ autoFocus: d,
4194
+ required: z,
4195
+ ...Q,
4196
+ ownerState: D
4197
+ }), /* @__PURE__ */ y(In, {
4198
+ as: x,
4199
+ className: we.icon,
4200
+ ownerState: D
4201
+ }), /* @__PURE__ */ y(Qo, {
4202
+ id: `menu-${s || ""}`,
4203
4203
  anchorEl: le,
4204
- open: he,
4204
+ open: ve,
4205
4205
  onClose: X,
4206
4206
  anchorOrigin: {
4207
4207
  vertical: "bottom",
@@ -4213,9 +4213,9 @@ const Tn = (o) => {
4213
4213
  },
4214
4214
  ...p,
4215
4215
  MenuListProps: {
4216
- "aria-labelledby": S,
4216
+ "aria-labelledby": O,
4217
4217
  role: "listbox",
4218
- "aria-multiselectable": v ? "true" : void 0,
4218
+ "aria-multiselectable": h ? "true" : void 0,
4219
4219
  disableListWrap: !0,
4220
4220
  id: wo,
4221
4221
  ...p.MenuListProps
@@ -4223,14 +4223,14 @@ const Tn = (o) => {
4223
4223
  slotProps: {
4224
4224
  ...p.slotProps,
4225
4225
  paper: {
4226
- ...we,
4226
+ ...Oe,
4227
4227
  style: {
4228
- minWidth: Ne,
4229
- ...we != null ? we.style : null
4228
+ minWidth: Pe,
4229
+ ...Oe != null ? Oe.style : null
4230
4230
  }
4231
4231
  }
4232
4232
  },
4233
- children: Ve
4233
+ children: He
4234
4234
  })]
4235
4235
  });
4236
4236
  });
@@ -4294,7 +4294,7 @@ process.env.NODE_ENV !== "production" && (st.propTypes = {
4294
4294
  * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
4295
4295
  * Equivalent to `ref`
4296
4296
  */
4297
- inputRef: Re,
4297
+ inputRef: ke,
4298
4298
  /**
4299
4299
  * The ID of an element that acts as an additional label. The Select will
4300
4300
  * be labelled by the additional label and the selected value.
@@ -4392,100 +4392,100 @@ const Mn = (o) => {
4392
4392
  overridesResolver: (o, t) => t.root,
4393
4393
  shouldForwardProp: (o) => ne(o) && o !== "variant",
4394
4394
  slot: "Root"
4395
- }, En = E(go, Co)(""), Nn = E(vo, Co)(""), Pn = E(yo, Co)(""), So = /* @__PURE__ */ l.forwardRef(function(t, n) {
4395
+ }, En = M(go, Co)(""), Nn = M(vo, Co)(""), Pn = M(yo, Co)(""), So = /* @__PURE__ */ l.forwardRef(function(t, n) {
4396
4396
  const r = ee({
4397
4397
  name: "MuiSelect",
4398
4398
  props: t
4399
4399
  }), {
4400
- autoWidth: a = !1,
4401
- children: u,
4402
- classes: s = {},
4403
- className: d,
4404
- defaultOpen: c = !1,
4405
- displayEmpty: m = !1,
4406
- IconComponent: y = Nt,
4407
- id: b,
4408
- input: w,
4409
- inputProps: h,
4410
- label: I,
4411
- labelId: O,
4412
- MenuProps: S,
4400
+ autoWidth: i = !1,
4401
+ children: d,
4402
+ classes: a = {},
4403
+ className: c,
4404
+ defaultOpen: f = !1,
4405
+ displayEmpty: u = !1,
4406
+ IconComponent: m = Nt,
4407
+ id: C,
4408
+ input: S,
4409
+ inputProps: v,
4410
+ label: x,
4411
+ labelId: I,
4412
+ MenuProps: O,
4413
4413
  multiple: p = !1,
4414
- native: v = !1,
4415
- onClose: i,
4416
- onOpen: f,
4414
+ native: h = !1,
4415
+ onClose: s,
4416
+ onOpen: b,
4417
4417
  open: R,
4418
- renderValue: $,
4419
- SelectDisplayProps: D,
4418
+ renderValue: L,
4419
+ SelectDisplayProps: N,
4420
4420
  variant: k = "outlined",
4421
- ...z
4422
- } = r, N = v ? nt : st, B = ze(), W = We({
4421
+ ...j
4422
+ } = r, P = h ? nt : st, B = We(), z = Ue({
4423
4423
  props: r,
4424
4424
  muiFormControl: B,
4425
4425
  states: ["variant", "error"]
4426
- }), U = W.variant || k, x = {
4426
+ }), U = z.variant || k, W = {
4427
4427
  ...r,
4428
4428
  variant: U,
4429
- classes: s
4430
- }, T = Mn(x), {
4431
- root: A,
4432
- ...P
4433
- } = T, Y = w || {
4434
- standard: /* @__PURE__ */ g(En, {
4435
- ownerState: x
4429
+ classes: a
4430
+ }, g = Mn(W), {
4431
+ root: E,
4432
+ ...F
4433
+ } = g, Q = S || {
4434
+ standard: /* @__PURE__ */ y(En, {
4435
+ ownerState: W
4436
4436
  }),
4437
- outlined: /* @__PURE__ */ g(Nn, {
4438
- label: I,
4439
- ownerState: x
4437
+ outlined: /* @__PURE__ */ y(Nn, {
4438
+ label: x,
4439
+ ownerState: W
4440
4440
  }),
4441
- filled: /* @__PURE__ */ g(Pn, {
4442
- ownerState: x
4441
+ filled: /* @__PURE__ */ y(Pn, {
4442
+ ownerState: W
4443
4443
  })
4444
- }[U], F = ke(n, Ct(Y));
4445
- return /* @__PURE__ */ g(l.Fragment, {
4446
- children: /* @__PURE__ */ l.cloneElement(Y, {
4444
+ }[U], $ = Te(n, Ct(Q));
4445
+ return /* @__PURE__ */ y(l.Fragment, {
4446
+ children: /* @__PURE__ */ l.cloneElement(Q, {
4447
4447
  // Most of the logic is implemented in `SelectInput`.
4448
4448
  // The `Select` component is a simple API wrapper to expose something better to play with.
4449
- inputComponent: N,
4449
+ inputComponent: P,
4450
4450
  inputProps: {
4451
- children: u,
4452
- error: W.error,
4453
- IconComponent: y,
4451
+ children: d,
4452
+ error: z.error,
4453
+ IconComponent: m,
4454
4454
  variant: U,
4455
4455
  type: void 0,
4456
4456
  // We render a select. We can ignore the type provided by the `Input`.
4457
4457
  multiple: p,
4458
- ...v ? {
4459
- id: b
4458
+ ...h ? {
4459
+ id: C
4460
4460
  } : {
4461
- autoWidth: a,
4462
- defaultOpen: c,
4463
- displayEmpty: m,
4464
- labelId: O,
4465
- MenuProps: S,
4466
- onClose: i,
4467
- onOpen: f,
4461
+ autoWidth: i,
4462
+ defaultOpen: f,
4463
+ displayEmpty: u,
4464
+ labelId: I,
4465
+ MenuProps: O,
4466
+ onClose: s,
4467
+ onOpen: b,
4468
4468
  open: R,
4469
- renderValue: $,
4469
+ renderValue: L,
4470
4470
  SelectDisplayProps: {
4471
- id: b,
4472
- ...D
4471
+ id: C,
4472
+ ...N
4473
4473
  }
4474
4474
  },
4475
- ...h,
4476
- classes: h ? mo(P, h.classes) : P,
4477
- ...w ? w.props.inputProps : {}
4475
+ ...v,
4476
+ classes: v ? mo(F, v.classes) : F,
4477
+ ...S ? S.props.inputProps : {}
4478
4478
  },
4479
- ...(p && v || m) && U === "outlined" ? {
4479
+ ...(p && h || u) && U === "outlined" ? {
4480
4480
  notched: !0
4481
4481
  } : {},
4482
- ref: F,
4483
- className: Z(Y.props.className, d, T.root),
4482
+ ref: $,
4483
+ className: Y(Q.props.className, c, g.root),
4484
4484
  // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
4485
- ...!w && {
4485
+ ...!S && {
4486
4486
  variant: U
4487
4487
  },
4488
- ...z
4488
+ ...j
4489
4489
  })
4490
4490
  });
4491
4491
  });
@@ -4642,180 +4642,180 @@ function er({
4642
4642
  connectButtonText: t = "Connect Slack",
4643
4643
  editButtonText: n = "Edit Channel",
4644
4644
  disconnectButtonText: r = "Disconnect",
4645
- saveButtonText: a = "Save",
4646
- cancelButtonText: u = "Cancel",
4647
- connectedText: s = "Slack notifications will be sent to:",
4648
- selectChannelText: d = "Choose a channel or user to receive notifications:"
4645
+ saveButtonText: i = "Save",
4646
+ cancelButtonText: d = "Cancel",
4647
+ connectedText: a = "Slack notifications will be sent to:",
4648
+ selectChannelText: c = "Choose a channel or user to receive notifications:"
4649
4649
  } = {}) {
4650
- const c = at(it), [m, y] = ye(), [b, w] = ye(), [h, I] = ye([]), [O, S] = ye(""), [p, v] = ye(!1), [i, f] = ye(null), [R, $] = ye(!1), D = Io(async () => {
4651
- if (c)
4650
+ const f = at(it), u = f == null ? void 0 : f.getClient(), [m, C] = ye(), [S, v] = ye(), [x, I] = ye([]), [O, p] = ye(""), [h, s] = ye(!1), [b, R] = ye(null), [L, N] = ye(!1), k = Io(async () => {
4651
+ if (u)
4652
4652
  try {
4653
- v(!0);
4654
- const T = await c.getClient().user.get();
4655
- T.slackToken && y(T.slackToken), T.slackChannel && w(T.slackChannel);
4656
- } catch (x) {
4657
- console.error("Error fetching Slack status:", x);
4653
+ s(!0);
4654
+ const g = await u.user.get();
4655
+ g.slackToken && C(g.slackToken), g.slackChannel && v(g.slackChannel);
4656
+ } catch (g) {
4657
+ console.error("Error fetching Slack status:", g);
4658
4658
  } finally {
4659
- v(!1);
4659
+ s(!1);
4660
4660
  }
4661
- }, [c]), k = Io(async () => {
4662
- if (!c || !m) return [];
4661
+ }, [u]), j = Io(async () => {
4662
+ if (!u || !m) return [];
4663
4663
  try {
4664
- v(!0), f(null);
4665
- const T = await c.getClient().slack.getChannels(), A = [
4666
- ...(T.channels || []).filter((P) => P.id && P.name).map((P) => ({
4667
- id: P.id,
4668
- name: P.name,
4664
+ s(!0), R(null);
4665
+ const g = await u.slack.getChannels(), E = [
4666
+ ...(g.channels || []).filter((F) => F.id && F.name).map((F) => ({
4667
+ id: F.id,
4668
+ name: F.name,
4669
4669
  type: "channel"
4670
4670
  })),
4671
- ...(T.users || []).filter((P) => P.id && P.name).map((P) => ({
4672
- id: P.id,
4673
- name: P.name,
4671
+ ...(g.users || []).filter((F) => F.id && F.name).map((F) => ({
4672
+ id: F.id,
4673
+ name: F.name,
4674
4674
  type: "user"
4675
4675
  }))
4676
4676
  ];
4677
- return I(A), A;
4678
- } catch (x) {
4679
- return console.error("Error loading channels and users:", x), f("Failed to load Slack channels and users. Please try again."), [];
4677
+ return I(E), E;
4678
+ } catch (g) {
4679
+ return console.error("Error loading channels and users:", g), R("Failed to load Slack channels and users. Please try again."), [];
4680
4680
  } finally {
4681
- v(!1);
4681
+ s(!1);
4682
4682
  }
4683
- }, [c, m]);
4683
+ }, [u, m]);
4684
4684
  Ro(() => {
4685
- D();
4686
- }, [D]), Ro(() => {
4687
- m && !b && !R && k();
4688
- }, [m, b, R, k]);
4689
- const z = async () => {
4690
- if (c)
4685
+ k();
4686
+ }, [k]), Ro(() => {
4687
+ m && !S && !L && j();
4688
+ }, [m, S, L, j]);
4689
+ const P = async () => {
4690
+ if (u)
4691
4691
  try {
4692
- v(!0), f(null);
4693
- const T = await c.getClient().slack.getOAuthUrl();
4694
- window.location.href = T;
4695
- } catch (x) {
4696
- console.error("Error connecting to Slack:", x), f("Failed to connect to Slack. Please try again.");
4692
+ s(!0), R(null);
4693
+ const g = await u.slack.getOAuthUrl();
4694
+ window.location.href = g;
4695
+ } catch (g) {
4696
+ console.error("Error connecting to Slack:", g), R("Failed to connect to Slack. Please try again.");
4697
4697
  } finally {
4698
- v(!1);
4698
+ s(!1);
4699
4699
  }
4700
- }, N = async () => {
4701
- if (!(!c || !O))
4700
+ }, B = async () => {
4701
+ if (!(!u || !O))
4702
4702
  try {
4703
- v(!0), f(null);
4704
- const x = c.getClient(), T = h.find((P) => P.id === O);
4705
- if (!T) {
4706
- f("Channel not found. Please try again.");
4703
+ s(!0), R(null);
4704
+ const g = x.find((F) => F.id === O);
4705
+ if (!g) {
4706
+ R("Channel not found. Please try again.");
4707
4707
  return;
4708
4708
  }
4709
- const A = `${T.type === "channel" ? "#" : "@"}${T.name}`;
4710
- await x.slack.setChannel(A), w(A), $(!1), f(null);
4711
- } catch (x) {
4712
- console.error("Error saving channel:", x), f("Failed to save channel. Please try again.");
4709
+ const E = `${g.type === "channel" ? "#" : "@"}${g.name}`;
4710
+ await u.slack.setChannel(E), v(E), N(!1), R(null);
4711
+ } catch (g) {
4712
+ console.error("Error saving channel:", g), R("Failed to save channel. Please try again.");
4713
4713
  } finally {
4714
- v(!1);
4714
+ s(!1);
4715
4715
  }
4716
- }, B = async () => {
4717
- if (c)
4716
+ }, z = async () => {
4717
+ if (u)
4718
4718
  try {
4719
- v(!0), f(null), await c.getClient().identify({
4719
+ s(!0), R(null), await u.identify({
4720
4720
  // @ts-expect-error - null is not assignable to type string
4721
4721
  slackToken: null,
4722
4722
  // @ts-expect-error - null is not assignable to type string
4723
4723
  slackChannel: null
4724
- }), y(void 0), w(void 0), S(""), I([]), $(!1);
4725
- } catch (x) {
4726
- console.error("Error disconnecting Slack:", x), f("Failed to disconnect Slack. Please try again.");
4724
+ }), C(void 0), v(void 0), p(""), I([]), N(!1);
4725
+ } catch (g) {
4726
+ console.error("Error disconnecting Slack:", g), R("Failed to disconnect Slack. Please try again.");
4727
4727
  } finally {
4728
- v(!1);
4728
+ s(!1);
4729
4729
  }
4730
- }, W = async () => {
4731
- $(!0);
4732
- let x = h;
4733
- if (h.length === 0 && (x = await k()), b) {
4734
- const T = b.startsWith("#"), A = b.substring(1), P = T ? "channel" : "user", Y = x.find(
4735
- (F) => F.name === A && F.type === P
4730
+ }, U = async () => {
4731
+ N(!0);
4732
+ let g = x;
4733
+ if (x.length === 0 && (g = await j()), S) {
4734
+ const E = S.startsWith("#"), F = S.substring(1), Q = E ? "channel" : "user", $ = g.find(
4735
+ (he) => he.name === F && he.type === Q
4736
4736
  );
4737
- Y && S(Y.id);
4737
+ $ && p($.id);
4738
4738
  }
4739
- }, U = () => {
4740
- $(!1), S("");
4739
+ }, W = () => {
4740
+ N(!1), p("");
4741
4741
  };
4742
- return c ? p && !m && !h.length ? /* @__PURE__ */ g(He, { display: "flex", justifyContent: "center", alignItems: "center", p: 3, children: /* @__PURE__ */ g(Ge, {}) }) : m ? !b || R ? /* @__PURE__ */ q(He, { children: [
4743
- i && /* @__PURE__ */ g(ko, { severity: "error", sx: { mb: 2 }, children: i }),
4744
- p ? /* @__PURE__ */ g(He, { display: "flex", justifyContent: "center", p: 2, children: /* @__PURE__ */ g(Ge, {}) }) : /* @__PURE__ */ q(io, { direction: "row", spacing: 2, alignItems: "center", children: [
4745
- /* @__PURE__ */ g(_e, { variant: "body2", color: "text.secondary", children: d }),
4742
+ return u ? h && !m && !x.length ? /* @__PURE__ */ y(qe, { display: "flex", justifyContent: "center", alignItems: "center", p: 3, children: /* @__PURE__ */ y(Xe, {}) }) : m ? !S || L ? /* @__PURE__ */ q(qe, { children: [
4743
+ b && /* @__PURE__ */ y(ko, { severity: "error", sx: { mb: 2 }, children: b }),
4744
+ h ? /* @__PURE__ */ y(qe, { display: "flex", justifyContent: "center", p: 2, children: /* @__PURE__ */ y(Xe, {}) }) : /* @__PURE__ */ q(io, { direction: "row", spacing: 2, alignItems: "center", children: [
4745
+ /* @__PURE__ */ y(Ke, { variant: "body2", color: "text.secondary", children: c }),
4746
4746
  /* @__PURE__ */ q(Go, { sx: { minWidth: 200 }, size: "small", children: [
4747
- /* @__PURE__ */ g(Yo, { id: "slack-channel-label", children: "Channel or User" }),
4748
- /* @__PURE__ */ g(
4747
+ /* @__PURE__ */ y(Yo, { id: "slack-channel-label", children: "Channel or User" }),
4748
+ /* @__PURE__ */ y(
4749
4749
  So,
4750
4750
  {
4751
4751
  labelId: "slack-channel-label",
4752
4752
  value: O,
4753
4753
  label: "Channel or User",
4754
- onChange: (x) => S(x.target.value),
4755
- children: h.sort((x, T) => x.type === T.type ? x.name.localeCompare(T.name) : x.type === "channel" ? -1 : 1).map((x) => /* @__PURE__ */ q(et, { value: x.id, children: [
4756
- x.type === "channel" ? "#" : "@",
4757
- x.name
4758
- ] }, x.id))
4754
+ onChange: (g) => p(g.target.value),
4755
+ children: x.sort((g, E) => g.type === E.type ? g.name.localeCompare(E.name) : g.type === "channel" ? -1 : 1).map((g) => /* @__PURE__ */ q(et, { value: g.id, children: [
4756
+ g.type === "channel" ? "#" : "@",
4757
+ g.name
4758
+ ] }, g.id))
4759
4759
  }
4760
4760
  )
4761
4761
  ] }),
4762
- /* @__PURE__ */ g(
4763
- xe,
4762
+ /* @__PURE__ */ y(
4763
+ Ie,
4764
4764
  {
4765
4765
  variant: "contained",
4766
4766
  color: "primary",
4767
- onClick: N,
4768
- disabled: !O || p,
4769
- children: a
4767
+ onClick: B,
4768
+ disabled: !O || h,
4769
+ children: i
4770
4770
  }
4771
4771
  ),
4772
- R && /* @__PURE__ */ g(
4773
- xe,
4772
+ L && /* @__PURE__ */ y(
4773
+ Ie,
4774
4774
  {
4775
4775
  variant: "outlined",
4776
- onClick: U,
4777
- disabled: p,
4778
- children: u
4776
+ onClick: W,
4777
+ disabled: h,
4778
+ children: d
4779
4779
  }
4780
4780
  ),
4781
- /* @__PURE__ */ g(
4782
- xe,
4781
+ /* @__PURE__ */ y(
4782
+ Ie,
4783
4783
  {
4784
4784
  variant: "text",
4785
4785
  color: "error",
4786
- onClick: B,
4787
- disabled: p,
4786
+ onClick: z,
4787
+ disabled: h,
4788
4788
  size: "small",
4789
4789
  children: r
4790
4790
  }
4791
4791
  )
4792
4792
  ] })
4793
4793
  ] }) : /* @__PURE__ */ q(io, { direction: "row", spacing: 2, alignItems: "center", children: [
4794
- /* @__PURE__ */ g(_e, { variant: "body2", color: "text.secondary", children: s }),
4795
- /* @__PURE__ */ g(_e, { variant: "body1", fontWeight: "medium", children: b }),
4796
- /* @__PURE__ */ g(xe, { variant: "outlined", onClick: W, disabled: p, children: n }),
4797
- /* @__PURE__ */ g(
4798
- xe,
4794
+ /* @__PURE__ */ y(Ke, { variant: "body2", color: "text.secondary", children: a }),
4795
+ /* @__PURE__ */ y(Ke, { variant: "body1", fontWeight: "medium", children: S }),
4796
+ /* @__PURE__ */ y(Ie, { variant: "outlined", onClick: U, disabled: h, children: n }),
4797
+ /* @__PURE__ */ y(
4798
+ Ie,
4799
4799
  {
4800
4800
  variant: "text",
4801
4801
  color: "error",
4802
- onClick: B,
4803
- disabled: p,
4802
+ onClick: z,
4803
+ disabled: h,
4804
4804
  children: r
4805
4805
  }
4806
4806
  )
4807
- ] }) : /* @__PURE__ */ q(He, { children: [
4808
- i && /* @__PURE__ */ g(ko, { severity: "error", sx: { mb: 2 }, children: i }),
4807
+ ] }) : /* @__PURE__ */ q(qe, { children: [
4808
+ b && /* @__PURE__ */ y(ko, { severity: "error", sx: { mb: 2 }, children: b }),
4809
4809
  /* @__PURE__ */ q(io, { direction: "row", spacing: 2, alignItems: "center", children: [
4810
- /* @__PURE__ */ g(_e, { variant: "body2", color: "text.secondary", children: o }),
4811
- /* @__PURE__ */ g(
4812
- xe,
4810
+ /* @__PURE__ */ y(Ke, { variant: "body2", color: "text.secondary", children: o }),
4811
+ /* @__PURE__ */ y(
4812
+ Ie,
4813
4813
  {
4814
4814
  variant: "contained",
4815
4815
  color: "primary",
4816
- onClick: z,
4817
- disabled: p,
4818
- children: p ? /* @__PURE__ */ g(Ge, { size: 24 }) : t
4816
+ onClick: P,
4817
+ disabled: h,
4818
+ children: h ? /* @__PURE__ */ y(Xe, { size: 24 }) : t
4819
4819
  }
4820
4820
  )
4821
4821
  ] })