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