@notificationapi/react 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,26 @@
1
- import { jsxs as q, jsx as g } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import { useContext as at, useState as ye, useCallback as Io, useEffect as Ro } from "react";
1
+ import { jsxs as q, jsx as y } from "react/jsx-runtime";
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 He } from "../../assets/Box.js";
6
- import { P as e, g as G, e as J, h as H, s as E, m as _, u as ee, c as Z, b as Q, N as Uo, K as ne, w as mo, a as qe, O as lt } from "../../assets/DefaultPropsProvider.js";
7
- import { c as Be } from "../../assets/createSimplePaletteValueFilter.js";
5
+ import { B as 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 je, e as ct, r as Re, c as dt, B as ut } from "../../assets/ButtonBase.js";
10
- import { A as ko, B as xe } from "../../assets/Button.js";
11
- import { u as ze, f as We, F as qo, S as io } from "../../assets/Stack.js";
12
- import { g as pt, T as _e } from "../../assets/Typography.js";
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 ke } 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 Ke(o) {
23
+ function Xe(o) {
24
24
  return parseInt(o, 10) || 0;
25
25
  }
26
26
  const Ot = {
@@ -41,81 +41,81 @@ 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
- maxRows: a,
47
+ maxRows: i,
48
48
  minRows: u = 1,
49
- style: s,
49
+ style: a,
50
50
  value: d,
51
- ...c
51
+ ...m
52
52
  } = t, {
53
- current: m
54
- } = l.useRef(d != null), y = l.useRef(null), b = ke(n, y), w = l.useRef(null), h = l.useRef(null), I = l.useCallback(() => {
55
- const p = y.current, i = uo(p).getComputedStyle(p);
56
- if (i.width === "0px")
53
+ current: 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
+ if (s.width === "0px")
57
57
  return {
58
58
  outerHeightStyle: 0,
59
59
  overflowing: !1
60
60
  };
61
- const f = h.current;
62
- f.style.width = i.width, f.value = p.value || t.placeholder || "x", f.value.slice(-1) === `
61
+ const f = g.current;
62
+ f.style.width = s.width, f.value = p.value || t.placeholder || "x", f.value.slice(-1) === `
63
63
  ` && (f.value += " ");
64
- const R = i.boxSizing, $ = Ke(i.paddingBottom) + Ke(i.paddingTop), D = Ke(i.borderBottomWidth) + Ke(i.borderTopWidth), k = f.scrollHeight;
64
+ const R = s.boxSizing, T = Xe(s.paddingBottom) + Xe(s.paddingTop), $ = Xe(s.borderBottomWidth) + Xe(s.borderTopWidth), k = f.scrollHeight;
65
65
  f.value = "x";
66
- const z = f.scrollHeight;
66
+ const j = f.scrollHeight;
67
67
  let N = k;
68
- u && (N = Math.max(Number(u) * z, N)), a && (N = Math.min(Number(a) * z, N)), N = Math.max(N, z);
69
- const B = N + (R === "border-box" ? $ + D : 0), W = Math.abs(N - k) <= 1;
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
- overflowing: W
72
+ overflowing: z
73
73
  };
74
- }, [a, u, t.placeholder]), O = l.useCallback(() => {
74
+ }, [i, u, t.placeholder]), S = c.useCallback(() => {
75
75
  const p = I();
76
76
  if (xt(p))
77
77
  return;
78
- const v = p.outerHeightStyle, i = y.current;
79
- w.current !== v && (w.current = v, i.style.height = `${v}px`), i.style.overflow = p.overflowing ? "hidden" : "";
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
80
  }, [I]);
81
- je(() => {
81
+ We(() => {
82
82
  const p = () => {
83
- O();
83
+ S();
84
84
  };
85
- let v;
86
- const i = () => {
87
- cancelAnimationFrame(v), v = requestAnimationFrame(() => {
85
+ let O;
86
+ const s = () => {
87
+ cancelAnimationFrame(O), O = requestAnimationFrame(() => {
88
88
  p();
89
89
  });
90
- }, f = bt(p), R = y.current, $ = uo(R);
91
- $.addEventListener("resize", f);
92
- let D;
93
- return typeof ResizeObserver < "u" && (D = new ResizeObserver(process.env.NODE_ENV === "test" ? i : p), D.observe(R)), () => {
94
- f.clear(), cancelAnimationFrame(v), $.removeEventListener("resize", f), D && D.disconnect();
90
+ }, 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
- }, [I, O]), je(() => {
97
- O();
96
+ }, [I, S]), We(() => {
97
+ S();
98
98
  });
99
- const S = (p) => {
100
- m || O(), r && r(p);
99
+ const w = (p) => {
100
+ v || S(), r && r(p);
101
101
  };
102
- return /* @__PURE__ */ q(l.Fragment, {
103
- children: [/* @__PURE__ */ g("textarea", {
102
+ return /* @__PURE__ */ q(c.Fragment, {
103
+ children: [/* @__PURE__ */ y("textarea", {
104
104
  value: d,
105
- onChange: S,
106
- ref: b,
105
+ onChange: w,
106
+ ref: h,
107
107
  rows: u,
108
- style: s,
109
- ...c
110
- }), /* @__PURE__ */ g("textarea", {
108
+ style: a,
109
+ ...m
110
+ }), /* @__PURE__ */ y("textarea", {
111
111
  "aria-hidden": !0,
112
112
  className: t.className,
113
113
  readOnly: !0,
114
- ref: h,
114
+ ref: g,
115
115
  tabIndex: -1,
116
116
  style: {
117
117
  ...Ot.shadow,
118
- ...s,
118
+ ...a,
119
119
  paddingTop: 0,
120
120
  paddingBottom: 0
121
121
  }
@@ -160,7 +160,7 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
160
160
  function Fo(o) {
161
161
  return o != null && !(Array.isArray(o) && o.length === 0);
162
162
  }
163
- function Xe(o, t = !1) {
163
+ function Ye(o, t = !1) {
164
164
  return o && (Fo(o.value) && o.value !== "" || t && Fo(o.defaultValue) && o.defaultValue !== "");
165
165
  }
166
166
  function It(o) {
@@ -169,14 +169,14 @@ function It(o) {
169
169
  function Rt(o) {
170
170
  return J("MuiInputBase", o);
171
171
  }
172
- const Ie = G("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
172
+ const 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
- const Ye = (o, t) => {
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];
179
- }, Ze = (o, t) => {
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
+ }, Je = (o, t) => {
180
180
  const {
181
181
  ownerState: n
182
182
  } = o;
@@ -186,27 +186,27 @@ const Ye = (o, t) => {
186
186
  classes: t,
187
187
  color: n,
188
188
  disabled: r,
189
- error: a,
189
+ error: i,
190
190
  endAdornment: u,
191
- focused: s,
191
+ focused: a,
192
192
  formControl: d,
193
- fullWidth: c,
194
- hiddenLabel: m,
195
- multiline: y,
196
- readOnly: b,
197
- size: w,
198
- startAdornment: h,
193
+ fullWidth: m,
194
+ hiddenLabel: v,
195
+ multiline: l,
196
+ readOnly: h,
197
+ size: x,
198
+ startAdornment: g,
199
199
  type: I
200
- } = o, O = {
201
- root: ["root", `color${H(n)}`, r && "disabled", a && "error", c && "fullWidth", s && "focused", d && "formControl", w && w !== "medium" && `size${H(w)}`, y && "multiline", h && "adornedStart", u && "adornedEnd", m && "hiddenLabel", b && "readOnly"],
202
- input: ["input", r && "disabled", I === "search" && "inputTypeSearch", y && "inputMultiline", w === "small" && "inputSizeSmall", m && "inputHiddenLabel", h && "inputAdornedStart", u && "inputAdornedEnd", b && "readOnly"]
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 Q(O, Rt, t);
205
- }, Je = E("div", {
204
+ return Q(S, Rt, t);
205
+ }, Qe = E("div", {
206
206
  name: "MuiInputBase",
207
207
  slot: "Root",
208
- overridesResolver: Ye
209
- })(_(({
208
+ overridesResolver: Ze
209
+ })(K(({
210
210
  theme: o
211
211
  }) => ({
212
212
  ...o.typography.body1,
@@ -219,7 +219,7 @@ const Ye = (o, t) => {
219
219
  cursor: "text",
220
220
  display: "inline-flex",
221
221
  alignItems: "center",
222
- [`&.${Ie.disabled}`]: {
222
+ [`&.${Te.disabled}`]: {
223
223
  color: (o.vars || o).palette.text.disabled,
224
224
  cursor: "default"
225
225
  },
@@ -246,11 +246,11 @@ const Ye = (o, t) => {
246
246
  width: "100%"
247
247
  }
248
248
  }]
249
- }))), Qe = E("input", {
249
+ }))), eo = E("input", {
250
250
  name: "MuiInputBase",
251
251
  slot: "Input",
252
- overridesResolver: Ze
253
- })(_(({
252
+ overridesResolver: Je
253
+ })(K(({
254
254
  theme: o
255
255
  }) => {
256
256
  const t = o.palette.mode === "light", n = {
@@ -265,7 +265,7 @@ const Ye = (o, t) => {
265
265
  })
266
266
  }, r = {
267
267
  opacity: "0 !important"
268
- }, a = o.vars ? {
268
+ }, i = o.vars ? {
269
269
  opacity: o.vars.opacity.inputPlaceholder
270
270
  } : {
271
271
  opacity: t ? 0.42 : 0.5
@@ -304,19 +304,19 @@ const Ye = (o, t) => {
304
304
  WebkitAppearance: "none"
305
305
  },
306
306
  // Show and hide the placeholder logic
307
- [`label[data-shrink=false] + .${Ie.formControl} &`]: {
307
+ [`label[data-shrink=false] + .${Te.formControl} &`]: {
308
308
  "&::-webkit-input-placeholder": r,
309
309
  "&::-moz-placeholder": r,
310
310
  // Firefox 19+
311
311
  "&::-ms-input-placeholder": r,
312
312
  // Edge
313
- "&:focus::-webkit-input-placeholder": a,
314
- "&:focus::-moz-placeholder": a,
313
+ "&:focus::-webkit-input-placeholder": i,
314
+ "&:focus::-moz-placeholder": i,
315
315
  // Firefox 19+
316
- "&:focus::-ms-input-placeholder": a
316
+ "&:focus::-ms-input-placeholder": i
317
317
  // Edge
318
318
  },
319
- [`&.${Ie.disabled}`]: {
319
+ [`&.${Te.disabled}`]: {
320
320
  opacity: 1,
321
321
  // Reset iOS opacity
322
322
  WebkitTextFillColor: (o.vars || o).palette.text.disabled
@@ -372,192 +372,192 @@ const Ye = (o, t) => {
372
372
  display: "block"
373
373
  }
374
374
  }
375
- }), eo = /* @__PURE__ */ l.forwardRef(function(t, n) {
375
+ }), oo = /* @__PURE__ */ c.forwardRef(function(t, n) {
376
376
  const r = ee({
377
377
  props: t,
378
378
  name: "MuiInputBase"
379
379
  }), {
380
- "aria-describedby": a,
380
+ "aria-describedby": i,
381
381
  autoComplete: u,
382
- autoFocus: s,
382
+ autoFocus: a,
383
383
  className: d,
384
- color: c,
385
- components: m = {},
386
- componentsProps: y = {},
387
- defaultValue: b,
388
- disabled: w,
389
- disableInjectingGlobalStyles: h,
384
+ color: m,
385
+ components: v = {},
386
+ componentsProps: l = {},
387
+ defaultValue: h,
388
+ disabled: x,
389
+ disableInjectingGlobalStyles: g,
390
390
  endAdornment: I,
391
- error: O,
392
- fullWidth: S = !1,
391
+ error: S,
392
+ fullWidth: w = !1,
393
393
  id: p,
394
- inputComponent: v = "input",
395
- inputProps: i = {},
394
+ inputComponent: O = "input",
395
+ inputProps: s = {},
396
396
  inputRef: f,
397
397
  margin: R,
398
- maxRows: $,
399
- minRows: D,
398
+ maxRows: T,
399
+ minRows: $,
400
400
  multiline: k = !1,
401
- name: z,
401
+ name: j,
402
402
  onBlur: N,
403
403
  onChange: B,
404
- onClick: W,
405
- onFocus: U,
406
- onKeyDown: x,
407
- onKeyUp: T,
408
- placeholder: A,
409
- readOnly: P,
410
- renderSuffix: Y,
411
- rows: F,
412
- size: oo,
413
- slotProps: Te = {},
414
- slots: Ue = {},
415
- startAdornment: ae,
404
+ onClick: z,
405
+ onFocus: W,
406
+ onKeyDown: U,
407
+ onKeyUp: V,
408
+ placeholder: b,
409
+ readOnly: F,
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 = i.value != null ? i.value : re, {
420
- current: Me
421
- } = l.useRef(ie != null), se = l.useRef(), no = l.useCallback((L) => {
422
- process.env.NODE_ENV !== "production" && L && L.nodeName !== "INPUT" && !L.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
419
+ } = r, le = s.value != null ? s.value : re, {
420
+ current: Ne
421
+ } = c.useRef(le != null), se = c.useRef(), no = c.useCallback((D) => {
422
+ process.env.NODE_ENV !== "production" && D && D.nodeName !== "INPUT" && !D.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
423
423
  `));
424
- }, []), ro = ke(se, f, i.ref, no), [le, ce] = l.useState(!1), j = ze();
425
- process.env.NODE_ENV !== "production" && l.useEffect(() => {
426
- if (j)
427
- return j.registerEffect();
428
- }, [j]);
429
- const X = We({
424
+ }, []), ro = Ee(se, f, s.ref, no), [ce, de] = c.useState(!1), A = Ve();
425
+ process.env.NODE_ENV !== "production" && c.useEffect(() => {
426
+ if (A)
427
+ return A.registerEffect();
428
+ }, [A]);
429
+ const Y = He({
430
430
  props: r,
431
- muiFormControl: j,
431
+ muiFormControl: A,
432
432
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
433
433
  });
434
- X.focused = j ? j.focused : le, l.useEffect(() => {
435
- !j && w && le && (ce(!1), N && N());
436
- }, [j, w, le, N]);
437
- const de = j && j.onFilled, Ee = j && j.onEmpty, fe = l.useCallback((L) => {
438
- Xe(L) ? de && de() : Ee && Ee();
439
- }, [de, Ee]);
440
- je(() => {
441
- Me && fe({
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, Me]);
445
- const so = (L) => {
446
- U && U(L), i.onFocus && i.onFocus(L), j && j.onFocus ? j.onFocus(L) : ce(!0);
447
- }, he = (L) => {
448
- N && N(L), i.onBlur && i.onBlur(L), j && j.onBlur ? j.onBlur(L) : ce(!1);
449
- }, ao = (L, ...Se) => {
450
- if (!Me) {
451
- const we = L.target || se.current;
452
- if (we == null)
444
+ }, [le, me, Ne]);
445
+ const so = (D) => {
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: we.value
454
+ me({
455
+ value: xe.value
456
456
  });
457
457
  }
458
- i.onChange && i.onChange(L, ...Se), B && B(L, ...Se);
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 = (L) => {
464
- se.current && L.currentTarget === L.target && se.current.focus(), W && W(L);
463
+ const pe = (D) => {
464
+ se.current && D.currentTarget === D.target && se.current.focus(), z && z(D);
465
465
  };
466
- let ve = v, K = i;
467
- k && ve === "input" && (F ? (process.env.NODE_ENV !== "production" && (D || $) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), K = {
466
+ let 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: F,
470
- maxRows: F,
471
- ...K
472
- }) : K = {
469
+ minRows: P,
470
+ maxRows: P,
471
+ ...G
472
+ }) : G = {
473
473
  type: void 0,
474
- maxRows: $,
475
- minRows: D,
476
- ...K
477
- }, ve = Ko);
478
- const Ce = (L) => {
479
- fe(L.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
- j && j.setAdornedStart(!!ae);
485
- }, [j, 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,
488
+ color: Y.color || "primary",
489
+ disabled: Y.disabled,
490
490
  endAdornment: I,
491
- error: X.error,
492
- focused: X.focused,
493
- formControl: j,
494
- fullWidth: S,
495
- hiddenLabel: X.hiddenLabel,
491
+ error: Y.error,
492
+ focused: Y.focused,
493
+ formControl: A,
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
- }, Ve = kt(me), Ne = Ue.root || m.Root || Je, be = Te.root || y.root || {}, Pe = Ue.input || m.Input || Qe;
501
- return K = {
502
- ...K,
503
- ...Te.input ?? y.input
504
- }, /* @__PURE__ */ q(l.Fragment, {
505
- children: [!h && 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__ */ g(Lo, {}))), /* @__PURE__ */ q(Ne, {
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(Ne) && {
512
+ ...!To(Fe) && {
513
513
  ownerState: {
514
- ...me,
515
- ...be.ownerState
514
+ ...be,
515
+ ...ye.ownerState
516
516
  }
517
517
  },
518
- className: Z(Ve.root, be.className, d, P && "MuiInputBase-readOnly"),
519
- children: [ae, /* @__PURE__ */ g(qo.Provider, {
518
+ className: Z(_e.root, ye.className, d, F && "MuiInputBase-readOnly"),
519
+ children: [ie, /* @__PURE__ */ y(qo.Provider, {
520
520
  value: null,
521
- children: /* @__PURE__ */ g(Pe, {
522
- "aria-invalid": X.error,
523
- "aria-describedby": a,
521
+ children: /* @__PURE__ */ y($e, {
522
+ "aria-invalid": Y.error,
523
+ "aria-describedby": i,
524
524
  autoComplete: u,
525
- autoFocus: s,
526
- defaultValue: b,
527
- disabled: X.disabled,
525
+ autoFocus: a,
526
+ defaultValue: h,
527
+ disabled: Y.disabled,
528
528
  id: p,
529
- onAnimationStart: Ce,
530
- name: z,
531
- placeholder: A,
532
- readOnly: P,
533
- required: X.required,
534
- rows: F,
535
- value: ie,
536
- onKeyDown: x,
537
- onKeyUp: T,
529
+ onAnimationStart: we,
530
+ name: j,
531
+ placeholder: b,
532
+ readOnly: F,
533
+ required: Y.required,
534
+ rows: P,
535
+ value: le,
536
+ onKeyDown: U,
537
+ onKeyUp: V,
538
538
  type: oe,
539
- ...K,
540
- ...!To(Pe) && {
541
- as: ve,
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: Z(Ve.input, K.className, P && "MuiInputBase-readOnly"),
549
- onBlur: he,
548
+ className: Z(_e.input, G.className, F && "MuiInputBase-readOnly"),
549
+ onBlur: Ce,
550
550
  onChange: ao,
551
551
  onFocus: so
552
552
  })
553
- }), I, Y ? Y({
554
- ...X,
555
- startAdornment: ae
553
+ }), I, L ? L({
554
+ ...Y,
555
+ startAdornment: ie
556
556
  }) : null]
557
557
  })]
558
558
  });
559
559
  });
560
- process.env.NODE_ENV !== "production" && (eo.propTypes = {
560
+ process.env.NODE_ENV !== "production" && (oo.propTypes = {
561
561
  // ┌────────────────────────────── Warning ──────────────────────────────┐
562
562
  // │ These PropTypes are generated from the TypeScript type definitions. │
563
563
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -661,7 +661,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
661
661
  /**
662
662
  * Pass a ref to the `input` element.
663
663
  */
664
- inputRef: Re,
664
+ inputRef: Me,
665
665
  /**
666
666
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
667
667
  * FormControl.
@@ -788,31 +788,31 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
788
788
  function Tt(o) {
789
789
  return J("MuiInput", o);
790
790
  }
791
- const Fe = {
792
- ...Ie,
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
796
  return J("MuiOutlinedInput", o);
797
797
  }
798
798
  const te = {
799
- ...Ie,
800
- ...G("MuiOutlinedInput", ["root", "notchedOutline", "input"])
799
+ ...Te,
800
+ ...X("MuiOutlinedInput", ["root", "notchedOutline", "input"])
801
801
  };
802
802
  function Et(o) {
803
803
  return J("MuiFilledInput", o);
804
804
  }
805
- const ge = {
806
- ...Ie,
807
- ...G("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
808
- }, Nt = wt(/* @__PURE__ */ g("path", {
805
+ const he = {
806
+ ...Te,
807
+ ...X("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
808
+ }, Nt = wt(/* @__PURE__ */ y("path", {
809
809
  d: "M7 10l5 5 5-5z"
810
810
  }), "ArrowDropDown");
811
811
  function Pt(o) {
812
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,20 +835,20 @@ 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
- disableShrink: a
847
+ disableShrink: i
848
848
  } = o, u = {
849
- root: ["root", n, `color${H(r)}`],
849
+ root: ["root", n, `color${_(r)}`],
850
850
  svg: ["svg"],
851
- circle: ["circle", `circle${H(n)}`, a && "circleDisableShrink"]
851
+ circle: ["circle", `circle${_(n)}`, i && "circleDisableShrink"]
852
852
  };
853
853
  return Q(u, Pt, t);
854
854
  }, Dt = E("span", {
@@ -858,9 +858,9 @@ const pe = 44, po = Vo`
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(Be()).map(([t]) => ({
881
+ }, ...Object.entries(o.palette).filter(Ue()).map(([t]) => ({
882
882
  props: {
883
883
  color: t
884
884
  },
@@ -900,9 +900,9 @@ const pe = 44, po = Vo`
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
- }))), Ge = /* @__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
- className: a,
940
+ className: i,
941
941
  color: u = "primary",
942
- disableShrink: s = !1,
942
+ disableShrink: a = !1,
943
943
  size: d = 40,
944
- style: c,
945
- thickness: m = 3.6,
946
- value: y = 0,
947
- variant: b = "indeterminate",
948
- ...w
949
- } = r, h = {
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
951
  color: u,
952
- disableShrink: s,
952
+ disableShrink: a,
953
953
  size: d,
954
- thickness: m,
955
- value: y,
956
- variant: b
957
- }, I = Lt(h), O = {}, S = {}, p = {};
958
- if (b === "determinate") {
959
- const v = 2 * Math.PI * ((pe - m) / 2);
960
- O.strokeDasharray = v.toFixed(3), p["aria-valuenow"] = Math.round(y), O.strokeDashoffset = `${((100 - y) / 100 * v).toFixed(3)}px`, S.transform = "rotate(-90deg)";
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
- return /* @__PURE__ */ g(Dt, {
963
- className: Z(I.root, a),
962
+ return /* @__PURE__ */ y(Dt, {
963
+ className: Z(I.root, i),
964
964
  style: {
965
965
  width: d,
966
966
  height: d,
967
- ...S,
968
- ...c
967
+ ...w,
968
+ ...m
969
969
  },
970
- ownerState: h,
970
+ ownerState: g,
971
971
  ref: n,
972
972
  role: "progressbar",
973
973
  ...p,
974
- ...w,
975
- children: /* @__PURE__ */ g(At, {
974
+ ...x,
975
+ children: /* @__PURE__ */ y(At, {
976
976
  className: I.svg,
977
- ownerState: h,
978
- viewBox: `${pe / 2} ${pe / 2} ${pe} ${pe}`,
979
- children: /* @__PURE__ */ g(jt, {
977
+ ownerState: g,
978
+ viewBox: `${fe / 2} ${fe / 2} ${fe} ${fe}`,
979
+ children: /* @__PURE__ */ y(jt, {
980
980
  className: I.circle,
981
- style: O,
982
- ownerState: h,
983
- cx: pe,
984
- cy: pe,
985
- r: (pe - m) / 2,
981
+ style: S,
982
+ ownerState: g,
983
+ cx: fe,
984
+ cy: fe,
985
+ r: (fe - v) / 2,
986
986
  fill: "none",
987
- strokeWidth: m
987
+ strokeWidth: v
988
988
  })
989
989
  })
990
990
  });
991
991
  });
992
- process.env.NODE_ENV !== "production" && (Ge.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`. │
@@ -1053,20 +1053,20 @@ const Bt = (o) => {
1053
1053
  classes: t,
1054
1054
  disableUnderline: n,
1055
1055
  startAdornment: r,
1056
- endAdornment: a,
1056
+ endAdornment: i,
1057
1057
  size: u,
1058
- hiddenLabel: s,
1058
+ hiddenLabel: a,
1059
1059
  multiline: d
1060
- } = o, c = {
1061
- root: ["root", !n && "underline", r && "adornedStart", a && "adornedEnd", u === "small" && `size${H(u)}`, s && "hiddenLabel", d && "multiline"],
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
- }, m = Q(c, Et, t);
1063
+ }, v = Q(m, Et, t);
1064
1064
  return {
1065
1065
  ...t,
1066
1066
  // forward classes to the InputBase
1067
- ...m
1067
+ ...v
1068
1068
  };
1069
- }, zt = E(Je, {
1069
+ }, zt = E(Qe, {
1070
1070
  shouldForwardProp: (o) => ne(o) || o === "classes",
1071
1071
  name: "MuiFilledInput",
1072
1072
  slot: "Root",
@@ -1074,12 +1074,12 @@ const Bt = (o) => {
1074
1074
  const {
1075
1075
  ownerState: n
1076
1076
  } = o;
1077
- return [...Ye(o, t), !n.disableUnderline && t.underline];
1077
+ return [...Ze(o, t), !n.disableUnderline && t.underline];
1078
1078
  }
1079
- })(_(({
1079
+ })(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)", a = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", u = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
1082
+ const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", 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,
@@ -1090,22 +1090,22 @@ const Bt = (o) => {
1090
1090
  easing: o.transitions.easing.easeOut
1091
1091
  }),
1092
1092
  "&:hover": {
1093
- backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : a,
1093
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : i,
1094
1094
  // Reset on touch devices, it doesn't add specificity
1095
1095
  "@media (hover: none)": {
1096
1096
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
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}`]: {
1102
+ [`&.${he.disabled}`]: {
1103
1103
  backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : u
1104
1104
  },
1105
1105
  variants: [{
1106
1106
  props: ({
1107
- ownerState: s
1108
- }) => !s.disableUnderline,
1107
+ ownerState: a
1108
+ }) => !a.disableUnderline,
1109
1109
  style: {
1110
1110
  "&::after": {
1111
1111
  left: 0,
@@ -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,79 +1144,79 @@ 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(Be()).map(([s]) => {
1154
+ }, ...Object.entries(o.palette).filter(Ue()).map(([a]) => {
1155
1155
  var d;
1156
1156
  return {
1157
1157
  props: {
1158
1158
  disableUnderline: !1,
1159
- color: s
1159
+ color: a
1160
1160
  },
1161
1161
  style: {
1162
1162
  "&::after": {
1163
- borderBottom: `2px solid ${(d = (o.vars || o).palette[s]) == null ? void 0 : d.main}`
1163
+ borderBottom: `2px solid ${(d = (o.vars || o).palette[a]) == null ? void 0 : d.main}`
1164
1164
  }
1165
1165
  }
1166
1166
  };
1167
1167
  }), {
1168
1168
  props: ({
1169
- ownerState: s
1170
- }) => s.startAdornment,
1169
+ ownerState: a
1170
+ }) => a.startAdornment,
1171
1171
  style: {
1172
1172
  paddingLeft: 12
1173
1173
  }
1174
1174
  }, {
1175
1175
  props: ({
1176
- ownerState: s
1177
- }) => s.endAdornment,
1176
+ ownerState: a
1177
+ }) => a.endAdornment,
1178
1178
  style: {
1179
1179
  paddingRight: 12
1180
1180
  }
1181
1181
  }, {
1182
1182
  props: ({
1183
- ownerState: s
1184
- }) => s.multiline,
1183
+ ownerState: a
1184
+ }) => a.multiline,
1185
1185
  style: {
1186
1186
  padding: "25px 12px 8px"
1187
1187
  }
1188
1188
  }, {
1189
1189
  props: ({
1190
- ownerState: s,
1190
+ ownerState: a,
1191
1191
  size: d
1192
- }) => s.multiline && d === "small",
1192
+ }) => a.multiline && d === "small",
1193
1193
  style: {
1194
1194
  paddingTop: 21,
1195
1195
  paddingBottom: 4
1196
1196
  }
1197
1197
  }, {
1198
1198
  props: ({
1199
- ownerState: s
1200
- }) => s.multiline && s.hiddenLabel,
1199
+ ownerState: a
1200
+ }) => a.multiline && a.hiddenLabel,
1201
1201
  style: {
1202
1202
  paddingTop: 16,
1203
1203
  paddingBottom: 17
1204
1204
  }
1205
1205
  }, {
1206
1206
  props: ({
1207
- ownerState: s
1208
- }) => s.multiline && s.hiddenLabel && s.size === "small",
1207
+ ownerState: a
1208
+ }) => a.multiline && a.hiddenLabel && a.size === "small",
1209
1209
  style: {
1210
1210
  paddingTop: 8,
1211
1211
  paddingBottom: 9
1212
1212
  }
1213
1213
  }]
1214
1214
  };
1215
- })), Wt = E(Qe, {
1215
+ })), Wt = E(eo, {
1216
1216
  name: "MuiFilledInput",
1217
1217
  slot: "Input",
1218
- overridesResolver: Ze
1219
- })(_(({
1218
+ overridesResolver: Je
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
- disableUnderline: a = !1,
1302
+ disableUnderline: i = !1,
1303
1303
  components: u = {},
1304
- componentsProps: s,
1304
+ componentsProps: a,
1305
1305
  fullWidth: d = !1,
1306
- hiddenLabel: c,
1306
+ hiddenLabel: m,
1307
1307
  // declare here to prevent spreading to DOM
1308
- inputComponent: m = "input",
1309
- multiline: y = !1,
1310
- slotProps: b,
1311
- slots: w = {},
1312
- type: h = "text",
1308
+ inputComponent: v = "input",
1309
+ multiline: l = !1,
1310
+ slotProps: h,
1311
+ slots: x = {},
1312
+ type: g = "text",
1313
1313
  ...I
1314
- } = r, O = {
1314
+ } = r, S = {
1315
1315
  ...r,
1316
- disableUnderline: a,
1316
+ disableUnderline: i,
1317
1317
  fullWidth: d,
1318
- inputComponent: m,
1319
- multiline: y,
1320
- type: h
1321
- }, S = Bt(r), p = {
1318
+ inputComponent: v,
1319
+ multiline: l,
1320
+ type: g
1321
+ }, w = Bt(r), p = {
1322
1322
  root: {
1323
- ownerState: O
1323
+ ownerState: S
1324
1324
  },
1325
1325
  input: {
1326
- ownerState: O
1326
+ ownerState: S
1327
1327
  }
1328
- }, v = b ?? s ? mo(p, b ?? s) : p, i = w.root ?? u.Root ?? zt, f = w.input ?? u.Input ?? Wt;
1329
- return /* @__PURE__ */ g(eo, {
1328
+ }, O = h ?? a ? bo(p, h ?? a) : p, s = x.root ?? u.Root ?? zt, f = x.input ?? u.Input ?? Wt;
1329
+ return /* @__PURE__ */ y(oo, {
1330
1330
  slots: {
1331
- root: i,
1331
+ root: s,
1332
1332
  input: f
1333
1333
  },
1334
- slotProps: v,
1334
+ slotProps: O,
1335
1335
  fullWidth: d,
1336
- inputComponent: m,
1337
- multiline: y,
1336
+ inputComponent: v,
1337
+ multiline: l,
1338
1338
  ref: n,
1339
- type: h,
1339
+ type: g,
1340
1340
  ...I,
1341
- classes: S
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: Re,
1446
+ inputRef: Me,
1447
1447
  /**
1448
1448
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1449
1449
  * FormControl.
@@ -1533,20 +1533,20 @@ 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
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
- } = o, a = {
1547
- root: ["root", n !== "none" && `margin${H(n)}`, r && "fullWidth"]
1546
+ } = o, i = {
1547
+ root: ["root", n !== "none" && `margin${_(n)}`, r && "fullWidth"]
1548
1548
  };
1549
- return Q(a, Ut, t);
1549
+ return Q(i, Ut, t);
1550
1550
  }, Ht = E("div", {
1551
1551
  name: "MuiFormControl",
1552
1552
  slot: "Root",
@@ -1554,7 +1554,7 @@ const Vt = (o) => {
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,95 +1591,95 @@ 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
- children: a,
1599
+ children: i,
1600
1600
  className: u,
1601
- color: s = "primary",
1601
+ color: a = "primary",
1602
1602
  component: d = "div",
1603
- disabled: c = !1,
1604
- error: m = !1,
1605
- focused: y,
1606
- fullWidth: b = !1,
1607
- hiddenLabel: w = !1,
1608
- margin: h = "none",
1603
+ disabled: m = !1,
1604
+ error: v = !1,
1605
+ focused: l,
1606
+ fullWidth: h = !1,
1607
+ hiddenLabel: x = !1,
1608
+ margin: g = "none",
1609
1609
  required: I = !1,
1610
- size: O = "medium",
1611
- variant: S = "outlined",
1610
+ size: S = "medium",
1611
+ variant: w = "outlined",
1612
1612
  ...p
1613
- } = r, v = {
1613
+ } = r, O = {
1614
1614
  ...r,
1615
- color: s,
1615
+ color: a,
1616
1616
  component: d,
1617
- disabled: c,
1618
- error: m,
1619
- fullWidth: b,
1620
- hiddenLabel: w,
1621
- margin: h,
1617
+ disabled: m,
1618
+ error: v,
1619
+ fullWidth: h,
1620
+ hiddenLabel: x,
1621
+ margin: g,
1622
1622
  required: I,
1623
- size: O,
1624
- variant: S
1625
- }, i = Vt(v), [f, R] = l.useState(() => {
1626
- let x = !1;
1627
- return a && l.Children.forEach(a, (T) => {
1628
- if (!lo(T, ["Input", "Select"]))
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 A = lo(T, ["Select"]) ? T.props.input : T;
1631
- A && It(A.props) && (x = !0);
1632
- }), x;
1633
- }), [$, D] = l.useState(() => {
1634
- let x = !1;
1635
- return a && l.Children.forEach(a, (T) => {
1636
- lo(T, ["Input", "Select"]) && (Xe(T.props, !0) || Xe(T.props.inputProps, !0)) && (x = !0);
1637
- }), x;
1638
- }), [k, z] = l.useState(!1);
1639
- c && k && z(!1);
1640
- const N = y !== void 0 && !c ? y : k;
1630
+ const 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 W = l.useRef(!1);
1643
- process.env.NODE_ENV !== "production" && (B = () => (W.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1644
- `)), W.current = !0, () => {
1645
- W.current = !1;
1642
+ const z = c.useRef(!1);
1643
+ process.env.NODE_ENV !== "production" && (B = () => (z.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1644
+ `)), z.current = !0, () => {
1645
+ z.current = !1;
1646
1646
  }));
1647
- const U = l.useMemo(() => ({
1647
+ const W = c.useMemo(() => ({
1648
1648
  adornedStart: f,
1649
1649
  setAdornedStart: R,
1650
- color: s,
1651
- disabled: c,
1652
- error: m,
1653
- filled: $,
1650
+ color: a,
1651
+ disabled: m,
1652
+ error: v,
1653
+ filled: T,
1654
1654
  focused: N,
1655
- fullWidth: b,
1656
- hiddenLabel: w,
1657
- size: O,
1655
+ fullWidth: h,
1656
+ hiddenLabel: x,
1657
+ size: S,
1658
1658
  onBlur: () => {
1659
- z(!1);
1659
+ j(!1);
1660
1660
  },
1661
1661
  onEmpty: () => {
1662
- D(!1);
1662
+ $(!1);
1663
1663
  },
1664
1664
  onFilled: () => {
1665
- D(!0);
1665
+ $(!0);
1666
1666
  },
1667
1667
  onFocus: () => {
1668
- z(!0);
1668
+ j(!0);
1669
1669
  },
1670
1670
  registerEffect: B,
1671
1671
  required: I,
1672
- variant: S
1673
- }), [f, s, c, m, $, N, b, w, B, I, O, S]);
1674
- return /* @__PURE__ */ g(qo.Provider, {
1675
- value: U,
1676
- children: /* @__PURE__ */ g(Ht, {
1672
+ variant: w
1673
+ }), [f, a, m, v, T, N, h, x, B, I, S, w]);
1674
+ return /* @__PURE__ */ y(qo.Provider, {
1675
+ value: W,
1676
+ children: /* @__PURE__ */ y(Ht, {
1677
1677
  as: d,
1678
- ownerState: v,
1679
- className: Z(i.root, u),
1678
+ ownerState: O,
1679
+ className: Z(s.root, u),
1680
1680
  ref: n,
1681
1681
  ...p,
1682
- children: a
1682
+ children: i
1683
1683
  })
1684
1684
  });
1685
1685
  });
@@ -1766,20 +1766,20 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
1766
1766
  function qt(o) {
1767
1767
  return J("MuiFormLabel", o);
1768
1768
  }
1769
- const Ae = 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
- disabled: a,
1774
+ disabled: i,
1775
1775
  error: u,
1776
- filled: s,
1776
+ filled: a,
1777
1777
  required: d
1778
- } = o, c = {
1779
- root: ["root", `color${H(n)}`, a && "disabled", u && "error", s && "filled", r && "focused", d && "required"],
1778
+ } = o, m = {
1779
+ root: ["root", `color${_(n)}`, i && "disabled", u && "error", a && "filled", r && "focused", d && "required"],
1780
1780
  asterisk: ["asterisk", u && "error"]
1781
1781
  };
1782
- return Q(c, qt, t);
1782
+ return Q(m, qt, t);
1783
1783
  }, Kt = E("label", {
1784
1784
  name: "MuiFormLabel",
1785
1785
  slot: "Root",
@@ -1789,7 +1789,7 @@ const Ae = 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,22 +1797,22 @@ const Ae = G("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
1797
1797
  lineHeight: "1.4375em",
1798
1798
  padding: 0,
1799
1799
  position: "relative",
1800
- variants: [...Object.entries(o.palette).filter(Be()).map(([t]) => ({
1800
+ variants: [...Object.entries(o.palette).filter(Ue()).map(([t]) => ({
1801
1801
  props: {
1802
1802
  color: t
1803
1803
  },
1804
1804
  style: {
1805
- [`&.${Ae.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
- [`&.${Ae.disabled}`]: {
1812
+ [`&.${ze.disabled}`]: {
1813
1813
  color: (o.vars || o).palette.text.disabled
1814
1814
  },
1815
- [`&.${Ae.error}`]: {
1815
+ [`&.${ze.error}`]: {
1816
1816
  color: (o.vars || o).palette.error.main
1817
1817
  }
1818
1818
  }
@@ -1821,49 +1821,49 @@ const Ae = G("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
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
- [`&.${Ae.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
- children: a,
1835
+ children: i,
1836
1836
  className: u,
1837
- color: s,
1837
+ color: a,
1838
1838
  component: d = "label",
1839
- disabled: c,
1840
- error: m,
1841
- filled: y,
1842
- focused: b,
1843
- required: w,
1844
- ...h
1845
- } = r, I = ze(), O = We({
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
1847
  muiFormControl: I,
1848
1848
  states: ["color", "required", "focused", "disabled", "error", "filled"]
1849
- }), S = {
1849
+ }), w = {
1850
1850
  ...r,
1851
- color: O.color || "primary",
1851
+ color: S.color || "primary",
1852
1852
  component: d,
1853
- disabled: O.disabled,
1854
- error: O.error,
1855
- filled: O.filled,
1856
- focused: O.focused,
1857
- required: O.required
1858
- }, p = _t(S);
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
1860
  as: d,
1861
- ownerState: S,
1861
+ ownerState: w,
1862
1862
  className: Z(p.root, u),
1863
1863
  ref: n,
1864
- ...h,
1865
- children: [a, O.required && /* @__PURE__ */ q(Gt, {
1866
- ownerState: S,
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,16 +1927,16 @@ const Xt = (o) => {
1927
1927
  const {
1928
1928
  classes: t,
1929
1929
  disableUnderline: n
1930
- } = o, a = Q({
1930
+ } = o, i = Q({
1931
1931
  root: ["root", !n && "underline"],
1932
1932
  input: ["input"]
1933
1933
  }, Tt, t);
1934
1934
  return {
1935
1935
  ...t,
1936
1936
  // forward classes to the InputBase
1937
- ...a
1937
+ ...i
1938
1938
  };
1939
- }, Yt = E(Je, {
1939
+ }, Yt = E(Qe, {
1940
1940
  shouldForwardProp: (o) => ne(o) || o === "classes",
1941
1941
  name: "MuiInput",
1942
1942
  slot: "Root",
@@ -1944,9 +1944,9 @@ const Xt = (o) => {
1944
1944
  const {
1945
1945
  ownerState: n
1946
1946
  } = o;
1947
- return [...Ye(o, t), !n.disableUnderline && t.underline];
1947
+ return [...Ze(o, t), !n.disableUnderline && t.underline];
1948
1948
  }
1949
- })(_(({
1949
+ })(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
- [`&.${Fe.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
- [`&.${Fe.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(.${Fe.disabled}, .${Fe.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
- [`&.${Fe.disabled}:before`]: {
2013
+ [`&.${Le.disabled}:before`]: {
2014
2014
  borderBottomStyle: "dotted"
2015
2015
  }
2016
2016
  }
2017
- }, ...Object.entries(o.palette).filter(Be()).map(([r]) => ({
2017
+ }, ...Object.entries(o.palette).filter(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 = E(Qe, {
2029
+ })), Zt = E(eo, {
2030
2030
  name: "MuiInput",
2031
2031
  slot: "Input",
2032
- overridesResolver: Ze
2033
- })({}), go = /* @__PURE__ */ l.forwardRef(function(t, n) {
2032
+ overridesResolver: Je
2033
+ })({}), ho = /* @__PURE__ */ c.forwardRef(function(t, n) {
2034
2034
  const r = ee({
2035
2035
  props: t,
2036
2036
  name: "MuiInput"
2037
2037
  }), {
2038
- disableUnderline: a = !1,
2038
+ disableUnderline: i = !1,
2039
2039
  components: u = {},
2040
- componentsProps: s,
2040
+ componentsProps: a,
2041
2041
  fullWidth: d = !1,
2042
- inputComponent: c = "input",
2043
- multiline: m = !1,
2044
- slotProps: y,
2045
- slots: b = {},
2046
- type: w = "text",
2047
- ...h
2048
- } = r, I = Xt(r), S = {
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
- disableUnderline: a
2051
+ disableUnderline: i
2052
2052
  }
2053
2053
  }
2054
- }, p = y ?? s ? mo(y ?? s, S) : S, v = b.root ?? u.Root ?? Yt, i = b.input ?? u.Input ?? Zt;
2055
- return /* @__PURE__ */ g(eo, {
2054
+ }, p = l ?? a ? bo(l ?? a, w) : w, O = h.root ?? u.Root ?? Yt, s = h.input ?? u.Input ?? Zt;
2055
+ return /* @__PURE__ */ y(oo, {
2056
2056
  slots: {
2057
- root: v,
2058
- input: i
2057
+ root: O,
2058
+ input: s
2059
2059
  },
2060
2060
  slotProps: p,
2061
2061
  fullWidth: d,
2062
- inputComponent: c,
2063
- multiline: m,
2062
+ inputComponent: m,
2063
+ multiline: v,
2064
2064
  ref: n,
2065
- type: w,
2066
- ...h,
2065
+ type: x,
2066
+ ...g,
2067
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: Re,
2165
+ inputRef: Me,
2166
2166
  /**
2167
2167
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
2168
2168
  * FormControl.
@@ -2252,28 +2252,28 @@ 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
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
- shrink: a,
2265
+ shrink: i,
2266
2266
  disableAnimation: u,
2267
- variant: s,
2267
+ variant: a,
2268
2268
  required: d
2269
- } = o, c = {
2270
- root: ["root", n && "formControl", !u && "animated", a && "shrink", r && r !== "normal" && `size${H(r)}`, s],
2269
+ } = o, m = {
2270
+ root: ["root", n && "formControl", !u && "animated", i && "shrink", r && r !== "normal" && `size${_(r)}`, a],
2271
2271
  asterisk: [d && "asterisk"]
2272
- }, m = Q(c, Jt, t);
2272
+ }, v = Q(m, Jt, t);
2273
2273
  return {
2274
2274
  ...t,
2275
2275
  // forward the focused, disabled, etc. classes to the FormLabel
2276
- ...m
2276
+ ...v
2277
2277
  };
2278
2278
  }, en = E(Xo, {
2279
2279
  shouldForwardProp: (o) => ne(o) || o === "classes",
@@ -2284,10 +2284,10 @@ const Qt = (o) => {
2284
2284
  ownerState: n
2285
2285
  } = o;
2286
2286
  return [{
2287
- [`& .${Ae.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,40 +2409,40 @@ 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
- disableAnimation: a = !1,
2417
+ disableAnimation: i = !1,
2418
2418
  margin: u,
2419
- shrink: s,
2419
+ shrink: a,
2420
2420
  variant: d,
2421
- className: c,
2422
- ...m
2423
- } = r, y = ze();
2424
- let b = s;
2425
- typeof b > "u" && y && (b = y.filled || y.focused || y.adornedStart);
2426
- const w = We({
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: y,
2428
+ muiFormControl: l,
2429
2429
  states: ["size", "variant", "required", "focused"]
2430
- }), h = {
2430
+ }), g = {
2431
2431
  ...r,
2432
- disableAnimation: a,
2433
- formControl: y,
2434
- shrink: b,
2435
- size: w.size,
2436
- variant: w.variant,
2437
- required: w.required,
2438
- focused: w.focused
2439
- }, I = Qt(h);
2440
- return /* @__PURE__ */ g(en, {
2441
- "data-shrink": b,
2432
+ disableAnimation: i,
2433
+ formControl: 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
+ return /* @__PURE__ */ y(en, {
2441
+ "data-shrink": h,
2442
2442
  ref: n,
2443
- className: Z(I.root, c),
2444
- ...m,
2445
- ownerState: h,
2443
+ className: Z(I.root, m),
2444
+ ...v,
2445
+ ownerState: g,
2446
2446
  classes: I
2447
2447
  });
2448
2448
  });
@@ -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 $e(o, t, n, r, a, u) {
2530
- let s = !1, d = a(o, t, t ? n : !1);
2529
+ function De(o, t, n, r, i, u) {
2530
+ let a = !1, d = i(o, t, t ? n : !1);
2531
2531
  for (; d; ) {
2532
2532
  if (d === o.firstChild) {
2533
- if (s)
2533
+ if (a)
2534
2534
  return !1;
2535
- s = !0;
2535
+ a = !0;
2536
2536
  }
2537
- const c = r ? !1 : d.disabled || d.getAttribute("aria-disabled") === "true";
2538
- if (!d.hasAttribute("tabindex") || !Zo(d, u) || c)
2539
- d = a(o, d, n);
2537
+ const 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
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
- autoFocus: a = !1,
2550
+ autoFocus: i = !1,
2551
2551
  autoFocusItem: u = !1,
2552
- children: s,
2552
+ children: a,
2553
2553
  className: d,
2554
- disabledItemsFocusable: c = !1,
2555
- disableListWrap: m = !1,
2556
- onKeyDown: y,
2557
- variant: b = "selectedMenu",
2558
- ...w
2559
- } = t, h = l.useRef(null), I = l.useRef({
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
- je(() => {
2566
- a && h.current.focus();
2567
- }, [a]), l.useImperativeHandle(r, () => ({
2568
- adjustStyleForScrollbar: (i, {
2565
+ We(() => {
2566
+ i && g.current.focus();
2567
+ }, [i]), c.useImperativeHandle(r, () => ({
2568
+ adjustStyleForScrollbar: (s, {
2569
2569
  direction: f
2570
2570
  }) => {
2571
- const R = !h.current.style.width;
2572
- if (i.clientHeight < h.current.clientHeight && R) {
2573
- const $ = `${ht(uo(i))}px`;
2574
- h.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = $, h.current.style.width = `calc(100% + ${$})`;
2571
+ const R = !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 h.current;
2576
+ return g.current;
2577
2577
  }
2578
2578
  }), []);
2579
- const O = (i) => {
2580
- const f = h.current, R = i.key;
2581
- if (i.ctrlKey || i.metaKey || i.altKey) {
2582
- y && y(i);
2579
+ const S = (s) => {
2580
+ const f = g.current, R = s.key;
2581
+ if (s.ctrlKey || s.metaKey || s.altKey) {
2582
+ l && l(s);
2583
2583
  return;
2584
2584
  }
2585
- const D = _o(f).activeElement;
2585
+ const $ = _o(f).activeElement;
2586
2586
  if (R === "ArrowDown")
2587
- i.preventDefault(), $e(f, D, m, c, co);
2587
+ s.preventDefault(), De(f, $, v, m, uo);
2588
2588
  else if (R === "ArrowUp")
2589
- i.preventDefault(), $e(f, D, m, c, jo);
2589
+ s.preventDefault(), De(f, $, v, m, jo);
2590
2590
  else if (R === "Home")
2591
- i.preventDefault(), $e(f, null, m, c, co);
2591
+ s.preventDefault(), De(f, null, v, m, uo);
2592
2592
  else if (R === "End")
2593
- i.preventDefault(), $e(f, null, m, c, jo);
2593
+ s.preventDefault(), De(f, null, v, m, jo);
2594
2594
  else if (R.length === 1) {
2595
- const k = I.current, z = R.toLowerCase(), N = performance.now();
2596
- k.keys.length > 0 && (N - k.lastTime > 500 ? (k.keys = [], k.repeating = !0, k.previousKeyMatched = !0) : k.repeating && z !== k.keys[0] && (k.repeating = !1)), k.lastTime = N, k.keys.push(z);
2597
- const B = D && !k.repeating && Zo(D, k);
2598
- k.previousKeyMatched && (B || $e(f, D, !1, c, co, k)) ? i.preventDefault() : k.previousKeyMatched = !1;
2595
+ const k = 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
- y && y(i);
2601
- }, S = ke(h, n);
2600
+ l && l(s);
2601
+ }, w = Ee(g, n);
2602
2602
  let p = -1;
2603
- l.Children.forEach(s, (i, f) => {
2604
- if (!/* @__PURE__ */ l.isValidElement(i)) {
2605
- p === f && (p += 1, p >= s.length && (p = -1));
2603
+ 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(i) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2609
- `)), i.props.disabled || (b === "selectedMenu" && i.props.selected || p === -1) && (p = f), p === f && (i.props.disabled || i.props.muiSkipListHighlight || i.type.muiSkipListHighlight) && (p += 1, p >= s.length && (p = -1));
2608
+ process.env.NODE_ENV !== "production" && 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 v = l.Children.map(s, (i, f) => {
2611
+ const O = c.Children.map(a, (s, f) => {
2612
2612
  if (f === p) {
2613
2613
  const R = {};
2614
- return u && (R.autoFocus = !0), i.props.tabIndex === void 0 && b === "selectedMenu" && (R.tabIndex = 0), /* @__PURE__ */ l.cloneElement(i, R);
2614
+ return u && (R.autoFocus = !0), s.props.tabIndex === void 0 && h === "selectedMenu" && (R.tabIndex = 0), /* @__PURE__ */ c.cloneElement(s, R);
2615
2615
  }
2616
- return i;
2616
+ return s;
2617
2617
  });
2618
- return /* @__PURE__ */ g(ft, {
2618
+ return /* @__PURE__ */ y(ft, {
2619
2619
  role: "menu",
2620
- ref: S,
2620
+ ref: w,
2621
2621
  className: d,
2622
- onKeyDown: O,
2623
- tabIndex: a ? 0 : -1,
2624
- ...w,
2625
- children: v
2622
+ onKeyDown: S,
2623
+ tabIndex: i ? 0 : -1,
2624
+ ...x,
2625
+ children: O
2626
2626
  });
2627
2627
  });
2628
2628
  process.env.NODE_ENV !== "production" && (Jo.propTypes = {
@@ -2673,7 +2673,7 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
2673
2673
  function on(o) {
2674
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"
@@ -2712,95 +2712,95 @@ const tn = {
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
- autoFocus: a = !0,
2720
+ autoFocus: i = !0,
2721
2721
  children: u,
2722
- className: s,
2722
+ className: a,
2723
2723
  disableAutoFocusItem: d = !1,
2724
- MenuListProps: c = {},
2725
- onClose: m,
2726
- open: y,
2727
- PaperProps: b = {},
2728
- PopoverClasses: w,
2729
- transitionDuration: h = "auto",
2724
+ MenuListProps: m = {},
2725
+ onClose: v,
2726
+ open: l,
2727
+ PaperProps: h = {},
2728
+ PopoverClasses: x,
2729
+ transitionDuration: g = "auto",
2730
2730
  TransitionProps: {
2731
2731
  onEntering: I,
2732
- ...O
2732
+ ...S
2733
2733
  } = {},
2734
- variant: S = "selectedMenu",
2734
+ variant: w = "selectedMenu",
2735
2735
  slots: p = {},
2736
- slotProps: v = {},
2737
- ...i
2736
+ slotProps: O = {},
2737
+ ...s
2738
2738
  } = r, f = mt(), R = {
2739
2739
  ...r,
2740
- autoFocus: a,
2740
+ autoFocus: i,
2741
2741
  disableAutoFocusItem: d,
2742
- MenuListProps: c,
2742
+ MenuListProps: m,
2743
2743
  onEntering: I,
2744
- PaperProps: b,
2745
- transitionDuration: h,
2746
- TransitionProps: O,
2747
- variant: S
2748
- }, $ = rn(R), D = a && !d && y, k = l.useRef(null), z = (A, P) => {
2749
- k.current && k.current.adjustStyleForScrollbar(A, {
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
2750
  direction: f ? "rtl" : "ltr"
2751
- }), I && I(A, P);
2752
- }, N = (A) => {
2753
- A.key === "Tab" && (A.preventDefault(), m && m(A, "tabKeyDown"));
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(u, (A, P) => {
2757
- /* @__PURE__ */ l.isValidElement(A) && (process.env.NODE_ENV !== "production" && bo.isFragment(A) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2758
- `)), A.props.disabled || (S === "selectedMenu" && A.props.selected || B === -1) && (B = P));
2756
+ 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 W = p.paper ?? an, U = v.paper ?? b, x = Eo({
2760
+ const z = p.paper ?? an, W = O.paper ?? h, U = Eo({
2761
2761
  elementType: p.root,
2762
- externalSlotProps: v.root,
2762
+ externalSlotProps: O.root,
2763
2763
  ownerState: R,
2764
- className: [$.root, s]
2765
- }), T = Eo({
2766
- elementType: W,
2767
- externalSlotProps: U,
2764
+ className: [T.root, a]
2765
+ }), V = Eo({
2766
+ elementType: z,
2767
+ externalSlotProps: W,
2768
2768
  ownerState: R,
2769
- className: $.paper
2769
+ className: T.paper
2770
2770
  });
2771
- return /* @__PURE__ */ g(sn, {
2772
- onClose: m,
2771
+ return /* @__PURE__ */ y(sn, {
2772
+ onClose: v,
2773
2773
  anchorOrigin: {
2774
2774
  vertical: "bottom",
2775
2775
  horizontal: f ? "right" : "left"
2776
2776
  },
2777
2777
  transformOrigin: f ? tn : nn,
2778
2778
  slots: {
2779
- paper: W,
2779
+ paper: z,
2780
2780
  root: p.root
2781
2781
  },
2782
2782
  slotProps: {
2783
- root: x,
2784
- paper: T
2783
+ root: U,
2784
+ paper: V
2785
2785
  },
2786
- open: y,
2786
+ open: l,
2787
2787
  ref: n,
2788
- transitionDuration: h,
2788
+ transitionDuration: g,
2789
2789
  TransitionProps: {
2790
- onEntering: z,
2791
- ...O
2790
+ onEntering: j,
2791
+ ...S
2792
2792
  },
2793
2793
  ownerState: R,
2794
- ...i,
2795
- classes: w,
2796
- children: /* @__PURE__ */ g(ln, {
2794
+ ...s,
2795
+ classes: x,
2796
+ children: /* @__PURE__ */ y(ln, {
2797
2797
  onKeyDown: N,
2798
2798
  actions: k,
2799
- autoFocus: a && (B === -1 || d),
2800
- autoFocusItem: D,
2801
- variant: S,
2802
- ...c,
2803
- className: Z($.list, c.className),
2799
+ autoFocus: i && (B === -1 || d),
2800
+ autoFocusItem: $,
2801
+ variant: w,
2802
+ ...m,
2803
+ className: Z(T.list, m.className),
2804
2804
  children: u
2805
2805
  })
2806
2806
  });
@@ -2911,7 +2911,7 @@ process.env.NODE_ENV !== "production" && (Qo.propTypes = {
2911
2911
  function cn(o) {
2912
2912
  return J("MuiMenuItem", o);
2913
2913
  }
2914
- const Le = 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;
@@ -2921,22 +2921,22 @@ const Le = G("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divid
2921
2921
  disabled: t,
2922
2922
  dense: n,
2923
2923
  divider: r,
2924
- disableGutters: a,
2924
+ disableGutters: i,
2925
2925
  selected: u,
2926
- classes: s
2927
- } = o, c = Q({
2928
- root: ["root", n && "dense", t && "disabled", !a && "gutters", r && "divider", u && "selected"]
2929
- }, cn, s);
2926
+ classes: a
2927
+ } = o, m = Q({
2928
+ root: ["root", n && "dense", t && "disabled", !i && "gutters", r && "divider", u && "selected"]
2929
+ }, cn, a);
2930
2930
  return {
2931
- ...s,
2932
- ...c
2931
+ ...a,
2932
+ ...m
2933
2933
  };
2934
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 Le = G("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divid
2958
2958
  backgroundColor: "transparent"
2959
2959
  }
2960
2960
  },
2961
- [`&.${Le.selected}`]: {
2962
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})` : qe(o.palette.primary.main, o.palette.action.selectedOpacity),
2963
- [`&.${Le.focusVisible}`]: {
2964
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))` : qe(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.focusOpacity)
2961
+ [`&.${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
- [`&.${Le.selected}:hover`]: {
2968
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))` : qe(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.hoverOpacity),
2967
+ [`&.${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})` : qe(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
- [`&.${Le.focusVisible}`]: {
2974
+ [`&.${Ae.focusVisible}`]: {
2975
2975
  backgroundColor: (o.vars || o).palette.action.focus
2976
2976
  },
2977
- [`&.${Le.disabled}`]: {
2977
+ [`&.${Ae.disabled}`]: {
2978
2978
  opacity: (o.vars || o).palette.action.disabledOpacity
2979
2979
  },
2980
2980
  [`& + .${No.root}`]: {
@@ -3034,47 +3034,47 @@ const Le = 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
- autoFocus: a = !1,
3042
+ autoFocus: i = !1,
3043
3043
  component: u = "li",
3044
- dense: s = !1,
3044
+ dense: a = !1,
3045
3045
  divider: d = !1,
3046
- disableGutters: c = !1,
3047
- focusVisibleClassName: m,
3048
- role: y = "menuitem",
3049
- tabIndex: b,
3050
- className: w,
3051
- ...h
3052
- } = r, I = l.useContext(Mo), O = l.useMemo(() => ({
3053
- dense: s || I.dense || !1,
3054
- disableGutters: c
3055
- }), [I.dense, s, c]), S = l.useRef(null);
3056
- je(() => {
3057
- a && (S.current ? S.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
3058
- }, [a]);
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
+ }, [i]);
3059
3059
  const p = {
3060
3060
  ...r,
3061
- dense: O.dense,
3061
+ dense: S.dense,
3062
3062
  divider: d,
3063
- disableGutters: c
3064
- }, v = un(r), i = ke(S, n);
3063
+ disableGutters: m
3064
+ }, O = un(r), s = Ee(w, n);
3065
3065
  let f;
3066
- return r.disabled || (f = b !== void 0 ? b : -1), /* @__PURE__ */ g(Mo.Provider, {
3067
- value: O,
3068
- children: /* @__PURE__ */ g(pn, {
3069
- ref: i,
3070
- role: y,
3066
+ return r.disabled || (f = h !== void 0 ? h : -1), /* @__PURE__ */ y(Mo.Provider, {
3067
+ value: S,
3068
+ children: /* @__PURE__ */ y(pn, {
3069
+ ref: s,
3070
+ role: l,
3071
3071
  tabIndex: f,
3072
3072
  component: u,
3073
- focusVisibleClassName: Z(v.focusVisible, m),
3074
- className: Z(v.root, w),
3075
- ...h,
3073
+ focusVisibleClassName: Z(O.focusVisible, v),
3074
+ className: Z(O.root, x),
3075
+ ...g,
3076
3076
  ownerState: p,
3077
- classes: v
3077
+ classes: O
3078
3078
  })
3079
3079
  });
3080
3080
  });
@@ -3156,17 +3156,17 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
3156
3156
  function fn(o) {
3157
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
- multiple: a,
3164
+ multiple: i,
3165
3165
  open: u,
3166
- error: s
3166
+ error: a
3167
3167
  } = o, d = {
3168
- select: ["select", n, r && "disabled", a && "multiple", s && "error"],
3169
- icon: ["icon", `icon${H(n)}`, u && "iconOpen", r && "disabled"]
3168
+ select: ["select", n, r && "disabled", i && "multiple", a && "error"],
3169
+ icon: ["icon", `icon${_(n)}`, u && "iconOpen", r && "disabled"]
3170
3170
  };
3171
3171
  return Q(d, fn, t);
3172
3172
  }, ot = E("select")(({
@@ -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]": {
@@ -3240,7 +3240,7 @@ 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
3246
  })({}), tt = E("svg")(({
@@ -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: [{
@@ -3287,34 +3287,34 @@ const ho = G("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
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
- disabled: a,
3295
+ disabled: i,
3296
3296
  error: u,
3297
- IconComponent: s,
3297
+ IconComponent: a,
3298
3298
  inputRef: d,
3299
- variant: c = "standard",
3300
- ...m
3301
- } = t, y = {
3299
+ variant: m = "standard",
3300
+ ...v
3301
+ } = t, l = {
3302
3302
  ...t,
3303
- disabled: a,
3304
- variant: c,
3303
+ disabled: i,
3304
+ variant: m,
3305
3305
  error: u
3306
- }, b = mn(y);
3307
- return /* @__PURE__ */ q(l.Fragment, {
3308
- children: [/* @__PURE__ */ g(bn, {
3309
- ownerState: y,
3310
- className: Z(b.select, r),
3311
- disabled: a,
3306
+ }, h = mn(l);
3307
+ return /* @__PURE__ */ q(c.Fragment, {
3308
+ children: [/* @__PURE__ */ y(bn, {
3309
+ ownerState: l,
3310
+ className: Z(h.select, r),
3311
+ disabled: i,
3312
3312
  ref: d || n,
3313
- ...m
3314
- }), t.multiple ? null : /* @__PURE__ */ g(yn, {
3315
- as: s,
3316
- ownerState: y,
3317
- className: b.icon
3313
+ ...v
3314
+ }), t.multiple ? null : /* @__PURE__ */ y(yn, {
3315
+ as: a,
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: Re,
3351
+ inputRef: Me,
3352
3352
  /**
3353
3353
  * @ignore
3354
3354
  */
@@ -3393,7 +3393,7 @@ const gn = E("fieldset", {
3393
3393
  minWidth: "0%"
3394
3394
  }), hn = E("legend", {
3395
3395
  shouldForwardProp: ne
3396
- })(_(({
3396
+ })(K(({
3397
3397
  theme: o
3398
3398
  }) => ({
3399
3399
  float: "unset",
@@ -3460,26 +3460,26 @@ function rt(o) {
3460
3460
  children: t,
3461
3461
  classes: n,
3462
3462
  className: r,
3463
- label: a,
3463
+ label: i,
3464
3464
  notched: u,
3465
- ...s
3466
- } = o, d = a != null && a !== "", c = {
3465
+ ...a
3466
+ } = o, d = i != null && i !== "", m = {
3467
3467
  ...o,
3468
3468
  notched: u,
3469
3469
  withLabel: d
3470
3470
  };
3471
- return /* @__PURE__ */ g(gn, {
3471
+ return /* @__PURE__ */ y(gn, {
3472
3472
  "aria-hidden": !0,
3473
3473
  className: r,
3474
- ownerState: c,
3475
- ...s,
3476
- children: /* @__PURE__ */ g(hn, {
3477
- ownerState: c,
3478
- children: d ? /* @__PURE__ */ g("span", {
3479
- children: a
3474
+ ownerState: m,
3475
+ ...a,
3476
+ children: /* @__PURE__ */ y(hn, {
3477
+ ownerState: m,
3478
+ children: d ? /* @__PURE__ */ y("span", {
3479
+ children: i
3480
3480
  }) : (
3481
3481
  // notranslate needed while Google Translate will not fix zero-width space issue
3482
- Bo || (Bo = /* @__PURE__ */ g("span", {
3482
+ Bo || (Bo = /* @__PURE__ */ y("span", {
3483
3483
  className: "notranslate",
3484
3484
  "aria-hidden": !0,
3485
3485
  children: "​"
@@ -3527,12 +3527,12 @@ const vn = (o) => {
3527
3527
  // forward classes to the InputBase
3528
3528
  ...r
3529
3529
  };
3530
- }, Cn = E(Je, {
3530
+ }, Cn = E(Qe, {
3531
3531
  shouldForwardProp: (o) => ne(o) || o === "classes",
3532
3532
  name: "MuiOutlinedInput",
3533
3533
  slot: "Root",
3534
- overridesResolver: Ye
3535
- })(_(({
3534
+ overridesResolver: Ze
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(Be()).map(([n]) => ({
3554
+ variants: [...Object.entries(o.palette).filter(Ue()).map(([n]) => ({
3555
3555
  props: {
3556
3556
  color: n
3557
3557
  },
@@ -3606,18 +3606,18 @@ const vn = (o) => {
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 = E(Qe, {
3616
+ })), wn = E(eo, {
3617
3617
  name: "MuiOutlinedInput",
3618
3618
  slot: "Input",
3619
- overridesResolver: Ze
3620
- })(_(({
3619
+ overridesResolver: Je
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
- const a = ee({
3675
+ const i = ee({
3676
3676
  props: t,
3677
3677
  name: "MuiOutlinedInput"
3678
3678
  }), {
3679
3679
  components: u = {},
3680
- fullWidth: s = !1,
3680
+ fullWidth: a = !1,
3681
3681
  inputComponent: d = "input",
3682
- label: c,
3683
- multiline: m = !1,
3684
- notched: y,
3685
- slots: b = {},
3686
- type: w = "text",
3687
- ...h
3688
- } = a, I = vn(a), O = ze(), S = We({
3689
- props: a,
3690
- muiFormControl: O,
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
+ props: i,
3690
+ muiFormControl: S,
3691
3691
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
3692
3692
  }), p = {
3693
- ...a,
3694
- color: S.color || "primary",
3695
- disabled: S.disabled,
3696
- error: S.error,
3697
- focused: S.focused,
3698
- formControl: O,
3699
- fullWidth: s,
3700
- hiddenLabel: S.hiddenLabel,
3701
- multiline: m,
3702
- size: S.size,
3703
- type: w
3704
- }, v = b.root ?? u.Root ?? Cn, i = b.input ?? u.Input ?? wn;
3705
- return /* @__PURE__ */ g(eo, {
3693
+ ...i,
3694
+ color: w.color || "primary",
3695
+ disabled: w.disabled,
3696
+ error: w.error,
3697
+ focused: w.focused,
3698
+ formControl: S,
3699
+ fullWidth: a,
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
+ return /* @__PURE__ */ y(oo, {
3706
3706
  slots: {
3707
- root: v,
3708
- input: i
3707
+ root: O,
3708
+ input: s
3709
3709
  },
3710
- renderSuffix: (f) => /* @__PURE__ */ g(Sn, {
3710
+ renderSuffix: (f) => /* @__PURE__ */ y(Sn, {
3711
3711
  ownerState: p,
3712
3712
  className: I.notchedOutline,
3713
- label: c != null && c !== "" && S.required ? r || (r = /* @__PURE__ */ q(l.Fragment, {
3714
- children: [c, " ", "*"]
3715
- })) : c,
3716
- notched: typeof y < "u" ? y : !!(f.startAdornment || f.filled || f.focused)
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
- fullWidth: s,
3718
+ fullWidth: a,
3719
3719
  inputComponent: d,
3720
- multiline: m,
3720
+ multiline: v,
3721
3721
  ref: n,
3722
- type: w,
3723
- ...h,
3722
+ type: x,
3723
+ ...g,
3724
3724
  classes: {
3725
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: Re,
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,11 +3892,11 @@ 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
3897
  return J("MuiSelect", o);
3898
3898
  }
3899
- const De = G("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
3899
+ const je = X("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
3900
3900
  var zo;
3901
3901
  const xn = E(ot, {
3902
3902
  name: "MuiSelect",
@@ -3908,22 +3908,22 @@ const xn = E(ot, {
3908
3908
  return [
3909
3909
  // Win specificity over the input base
3910
3910
  {
3911
- [`&.${De.select}`]: t.select
3911
+ [`&.${je.select}`]: t.select
3912
3912
  },
3913
3913
  {
3914
- [`&.${De.select}`]: t[n.variant]
3914
+ [`&.${je.select}`]: t[n.variant]
3915
3915
  },
3916
3916
  {
3917
- [`&.${De.error}`]: t.error
3917
+ [`&.${je.error}`]: t.error
3918
3918
  },
3919
3919
  {
3920
- [`&.${De.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
- [`&.${De.select}`]: {
3926
+ [`&.${je.select}`]: {
3927
3927
  height: "auto",
3928
3928
  // Resets for multiple select with chips
3929
3929
  minHeight: "1.4375em",
@@ -3939,7 +3939,7 @@ const xn = E(ot, {
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
3944
  })({}), Rn = E("input", {
3945
3945
  shouldForwardProp: (o) => lt(o) && o !== "classes",
@@ -3966,78 +3966,78 @@ const Tn = (o) => {
3966
3966
  classes: t,
3967
3967
  variant: n,
3968
3968
  disabled: r,
3969
- multiple: a,
3969
+ multiple: i,
3970
3970
  open: u,
3971
- error: s
3971
+ error: a
3972
3972
  } = o, d = {
3973
- select: ["select", n, r && "disabled", a && "multiple", s && "error"],
3974
- icon: ["icon", `icon${H(n)}`, u && "iconOpen", r && "disabled"],
3973
+ select: ["select", n, r && "disabled", i && "multiple", a && "error"],
3974
+ icon: ["icon", `icon${_(n)}`, u && "iconOpen", r && "disabled"],
3975
3975
  nativeInput: ["nativeInput"]
3976
3976
  };
3977
3977
  return Q(d, On, t);
3978
- }, st = /* @__PURE__ */ l.forwardRef(function(t, n) {
3979
- var Oo;
3978
+ }, st = /* @__PURE__ */ c.forwardRef(function(t, n) {
3979
+ var xo;
3980
3980
  const {
3981
3981
  "aria-describedby": r,
3982
- "aria-label": a,
3982
+ "aria-label": i,
3983
3983
  autoFocus: u,
3984
- autoWidth: s,
3984
+ autoWidth: a,
3985
3985
  children: d,
3986
- className: c,
3987
- defaultOpen: m,
3988
- defaultValue: y,
3989
- disabled: b,
3990
- displayEmpty: w,
3991
- error: h = !1,
3986
+ className: m,
3987
+ defaultOpen: v,
3988
+ defaultValue: l,
3989
+ disabled: h,
3990
+ displayEmpty: x,
3991
+ error: g = !1,
3992
3992
  IconComponent: I,
3993
- inputRef: O,
3994
- labelId: S,
3993
+ inputRef: S,
3994
+ labelId: w,
3995
3995
  MenuProps: p = {},
3996
- multiple: v,
3997
- name: i,
3996
+ multiple: O,
3997
+ name: s,
3998
3998
  onBlur: f,
3999
3999
  onChange: R,
4000
- onClose: $,
4001
- onFocus: D,
4000
+ onClose: T,
4001
+ onFocus: $,
4002
4002
  onOpen: k,
4003
- open: z,
4003
+ open: j,
4004
4004
  readOnly: N,
4005
4005
  renderValue: B,
4006
- required: W,
4007
- SelectDisplayProps: U = {},
4008
- tabIndex: x,
4006
+ required: z,
4007
+ SelectDisplayProps: W = {},
4008
+ tabIndex: U,
4009
4009
  // catching `type` from Input which makes no sense for SelectInput
4010
- type: T,
4011
- value: A,
4012
- variant: P = "standard",
4013
- ...Y
4014
- } = t, [F, oo] = Po({
4015
- controlled: A,
4016
- default: y,
4010
+ type: V,
4011
+ value: b,
4012
+ variant: F = "standard",
4013
+ ...L
4014
+ } = t, [P, ve] = Po({
4015
+ controlled: b,
4016
+ default: l,
4017
4017
  name: "Select"
4018
- }), [Te, Ue] = Po({
4019
- controlled: z,
4020
- default: m,
4018
+ }), [ae, qe] = Po({
4019
+ controlled: j,
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(z != null), [Me, se] = l.useState(), no = ke(n, O), ro = l.useCallback((C) => {
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
4025
  oe.current = C, C && to(C);
4026
- }, []), le = re == null ? void 0 : re.parentNode;
4027
- l.useImperativeHandle(no, () => ({
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: F
4033
- }), [F]), l.useEffect(() => {
4034
- m && Te && re && !ie && (se(s ? null : le.clientWidth), oe.current.focus());
4035
- }, [re, s]), l.useEffect(() => {
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
4036
  u && oe.current.focus();
4037
- }, [u]), l.useEffect(() => {
4038
- if (!S)
4037
+ }, [u]), c.useEffect(() => {
4038
+ if (!w)
4039
4039
  return;
4040
- const C = _o(oe.current).getElementById(S);
4040
+ const C = _o(oe.current).getElementById(w);
4041
4041
  if (C) {
4042
4042
  const M = () => {
4043
4043
  getSelection().isCollapsed && oe.current.focus();
@@ -4046,36 +4046,36 @@ const Tn = (o) => {
4046
4046
  C.removeEventListener("click", M);
4047
4047
  };
4048
4048
  }
4049
- }, [S]);
4050
- const ce = (C, M) => {
4051
- C ? k && k(M) : $ && $(M), ie || (se(s ? null : le.clientWidth), Ue(C));
4052
- }, j = (C) => {
4053
- C.button === 0 && (C.preventDefault(), oe.current.focus(), ce(!0, C));
4054
- }, X = (C) => {
4055
- ce(!1, C);
4056
- }, de = l.Children.toArray(d), Ee = (C) => {
4057
- const M = de.find((V) => V.props.value === C.target.value);
4058
- M !== void 0 && (oo(M.props.value), R && R(C, M));
4059
- }, fe = (C) => (M) => {
4060
- let V;
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
4061
  if (M.currentTarget.hasAttribute("tabindex")) {
4062
- if (v) {
4063
- V = Array.isArray(F) ? F.slice() : [];
4064
- const Oe = F.indexOf(C.props.value);
4065
- Oe === -1 ? V.push(C.props.value) : V.splice(Oe, 1);
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 = C.props.value;
4068
- if (C.props.onClick && C.props.onClick(M), F !== V && (oo(V), R)) {
4069
- const Oe = M.nativeEvent || M, xo = new Oe.constructor(Oe.type, Oe);
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,
4074
- name: i
4073
+ value: H,
4074
+ name: s
4075
4075
  }
4076
- }), R(xo, C);
4076
+ }), R(Io, C);
4077
4077
  }
4078
- v || ce(!1, M);
4078
+ O || de(!1, M);
4079
4079
  }
4080
4080
  }, so = (C) => {
4081
4081
  N || [
@@ -4085,40 +4085,40 @@ const Tn = (o) => {
4085
4085
  // The native select doesn't respond to enter on macOS, but it's recommended by
4086
4086
  // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
4087
4087
  "Enter"
4088
- ].includes(C.key) && (C.preventDefault(), ce(!0, C));
4089
- }, he = re !== null && Te, ao = (C) => {
4090
- !he && f && (Object.defineProperty(C, "target", {
4088
+ ].includes(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: F,
4094
- name: i
4093
+ value: P,
4094
+ name: s
4095
4095
  }
4096
4096
  }), f(C));
4097
4097
  };
4098
- delete Y["aria-invalid"];
4099
- let ue, ve;
4100
- const K = [];
4101
- let Ce = !1, me = !1;
4102
- (Xe({
4103
- value: F
4104
- }) || w) && (B ? ue = B(F) : Ce = !0);
4105
- const Ve = de.map((C) => {
4106
- if (!/* @__PURE__ */ l.isValidElement(C))
4098
+ delete L["aria-invalid"];
4099
+ let pe, Se;
4100
+ const G = [];
4101
+ let we = !1, be = !1;
4102
+ (Ye({
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(C) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4108
+ process.env.NODE_ENV !== "production" && 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
4110
  let M;
4111
- if (v) {
4112
- if (!Array.isArray(F))
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
- M = F.some((V) => Wo(V, C.props.value)), M && Ce && K.push(C.props.children);
4114
+ M = P.some((H) => Wo(H, C.props.value)), M && we && G.push(C.props.children);
4115
4115
  } else
4116
- M = Wo(F, C.props.value), M && Ce && (ve = C.props.children);
4117
- return M && (me = !0), /* @__PURE__ */ l.cloneElement(C, {
4116
+ M = Wo(P, C.props.value), M && we && (Se = C.props.children);
4117
+ return M && (be = !0), /* @__PURE__ */ c.cloneElement(C, {
4118
4118
  "aria-selected": M ? "true" : "false",
4119
- onClick: fe(C),
4120
- onKeyUp: (V) => {
4121
- V.key === " " && V.preventDefault(), C.props.onKeyUp && C.props.onKeyUp(V);
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
4124
  selected: M,
@@ -4128,81 +4128,81 @@ const Tn = (o) => {
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 && !v && F !== "") {
4133
- const C = de.map((M) => M.props.value);
4134
- console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${i ? `(name="${i}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${C.filter((M) => M != null).map((M) => `\`${M}\``).join(", ") || '""'}.`].join(`
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, v, i, F]), Ce && (v ? K.length === 0 ? ue = null : ue = K.reduce((C, M, V) => (C.push(M), V < K.length - 1 && C.push(", "), C), []) : ue = ve);
4138
- let Ne = Me;
4139
- !s && ie && re && (Ne = le.clientWidth);
4140
- let be;
4141
- typeof x < "u" ? be = x : be = b ? null : 0;
4142
- const Pe = U.id || (i ? `mui-component-select-${i}` : void 0), L = {
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
- variant: P,
4145
- value: F,
4146
- open: he,
4147
- error: h
4148
- }, Se = Tn(L), we = {
4144
+ variant: F,
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, {
4153
- children: [/* @__PURE__ */ g(xn, {
4150
+ ...(xo = p.slotProps) == null ? void 0 : xo.paper
4151
+ }, Oo = St();
4152
+ return /* @__PURE__ */ q(c.Fragment, {
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": b ? "true" : void 0,
4160
- "aria-expanded": he ? "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
- "aria-label": a,
4163
- "aria-labelledby": [S, Pe].filter(Boolean).join(" ") || void 0,
4162
+ "aria-label": i,
4163
+ "aria-labelledby": [w, $e].filter(Boolean).join(" ") || void 0,
4164
4164
  "aria-describedby": r,
4165
- "aria-required": W ? "true" : void 0,
4166
- "aria-invalid": h ? "true" : void 0,
4165
+ "aria-required": z ? "true" : void 0,
4166
+ "aria-invalid": g ? "true" : void 0,
4167
4167
  onKeyDown: so,
4168
- onMouseDown: b || N ? null : j,
4168
+ onMouseDown: h || N ? null : A,
4169
4169
  onBlur: ao,
4170
- onFocus: D,
4171
- ...U,
4172
- ownerState: L,
4173
- className: Z(U.className, Se.select, c),
4174
- id: Pe,
4175
- children: kn(ue) ? (
4170
+ onFocus: $,
4171
+ ...W,
4172
+ ownerState: D,
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
- zo || (zo = /* @__PURE__ */ g("span", {
4177
+ zo || (zo = /* @__PURE__ */ y("span", {
4178
4178
  className: "notranslate",
4179
4179
  "aria-hidden": !0,
4180
4180
  children: "​"
4181
4181
  }))
4182
- ) : ue
4183
- }), /* @__PURE__ */ g(Rn, {
4184
- "aria-invalid": h,
4185
- value: Array.isArray(F) ? F.join(",") : F,
4186
- name: i,
4187
- ref: ae,
4182
+ ) : pe
4183
+ }), /* @__PURE__ */ y(Rn, {
4184
+ "aria-invalid": g,
4185
+ value: Array.isArray(P) ? P.join(",") : P,
4186
+ name: s,
4187
+ ref: ie,
4188
4188
  "aria-hidden": !0,
4189
- onChange: Ee,
4189
+ onChange: Pe,
4190
4190
  tabIndex: -1,
4191
- disabled: b,
4192
- className: Se.nativeInput,
4191
+ disabled: h,
4192
+ className: Oe.nativeInput,
4193
4193
  autoFocus: u,
4194
- required: W,
4195
- ...Y,
4196
- ownerState: L
4197
- }), /* @__PURE__ */ g(In, {
4194
+ required: z,
4195
+ ...L,
4196
+ ownerState: D
4197
+ }), /* @__PURE__ */ y(In, {
4198
4198
  as: I,
4199
- className: Se.icon,
4200
- ownerState: L
4201
- }), /* @__PURE__ */ g(Qo, {
4202
- id: `menu-${i || ""}`,
4203
- anchorEl: le,
4204
- open: he,
4205
- onClose: X,
4199
+ className: Oe.icon,
4200
+ ownerState: D
4201
+ }), /* @__PURE__ */ y(Qo, {
4202
+ id: `menu-${s || ""}`,
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": S,
4216
+ "aria-labelledby": w,
4217
4217
  role: "listbox",
4218
- "aria-multiselectable": v ? "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
- ...we,
4226
+ ...xe,
4227
4227
  style: {
4228
- minWidth: Ne,
4229
- ...we != null ? we.style : null
4228
+ minWidth: Fe,
4229
+ ...xe != null ? xe.style : null
4230
4230
  }
4231
4231
  }
4232
4232
  },
4233
- children: Ve
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: Re,
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 = E(go, Co)(""), Nn = E(vo, Co)(""), Pn = E(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
- autoWidth: a = !1,
4400
+ autoWidth: i = !1,
4401
4401
  children: u,
4402
- classes: s = {},
4402
+ classes: a = {},
4403
4403
  className: d,
4404
- defaultOpen: c = !1,
4405
- displayEmpty: m = !1,
4406
- IconComponent: y = Nt,
4407
- id: b,
4408
- input: w,
4409
- inputProps: h,
4404
+ defaultOpen: m = !1,
4405
+ displayEmpty: v = !1,
4406
+ IconComponent: l = Nt,
4407
+ id: h,
4408
+ input: x,
4409
+ inputProps: g,
4410
4410
  label: I,
4411
- labelId: O,
4412
- MenuProps: S,
4411
+ labelId: S,
4412
+ MenuProps: w,
4413
4413
  multiple: p = !1,
4414
- native: v = !1,
4415
- onClose: i,
4414
+ native: O = !1,
4415
+ onClose: s,
4416
4416
  onOpen: f,
4417
4417
  open: R,
4418
- renderValue: $,
4419
- SelectDisplayProps: D,
4418
+ renderValue: T,
4419
+ SelectDisplayProps: $,
4420
4420
  variant: k = "outlined",
4421
- ...z
4422
- } = r, N = v ? nt : st, B = ze(), W = We({
4421
+ ...j
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 = W.variant || k, x = {
4426
+ }), W = z.variant || k, U = {
4427
4427
  ...r,
4428
- variant: U,
4429
- classes: s
4430
- }, T = Mn(x), {
4431
- root: A,
4432
- ...P
4433
- } = T, Y = w || {
4434
- standard: /* @__PURE__ */ g(En, {
4435
- ownerState: x
4428
+ variant: W,
4429
+ classes: a
4430
+ }, V = Mn(U), {
4431
+ root: b,
4432
+ ...F
4433
+ } = V, L = x || {
4434
+ standard: /* @__PURE__ */ y(En, {
4435
+ ownerState: U
4436
4436
  }),
4437
- outlined: /* @__PURE__ */ g(Nn, {
4437
+ outlined: /* @__PURE__ */ y(Nn, {
4438
4438
  label: I,
4439
- ownerState: x
4439
+ ownerState: U
4440
4440
  }),
4441
- filled: /* @__PURE__ */ g(Pn, {
4442
- ownerState: x
4441
+ filled: /* @__PURE__ */ y(Pn, {
4442
+ ownerState: U
4443
4443
  })
4444
- }[U], F = ke(n, Ct(Y));
4445
- return /* @__PURE__ */ g(l.Fragment, {
4446
- children: /* @__PURE__ */ l.cloneElement(Y, {
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
4449
  inputComponent: N,
4450
4450
  inputProps: {
4451
4451
  children: u,
4452
- error: W.error,
4453
- IconComponent: y,
4454
- variant: U,
4452
+ error: z.error,
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
- ...v ? {
4459
- id: b
4458
+ ...O ? {
4459
+ id: h
4460
4460
  } : {
4461
- autoWidth: a,
4462
- defaultOpen: c,
4463
- displayEmpty: m,
4464
- labelId: O,
4465
- MenuProps: S,
4466
- onClose: i,
4461
+ autoWidth: i,
4462
+ defaultOpen: m,
4463
+ displayEmpty: v,
4464
+ labelId: S,
4465
+ MenuProps: w,
4466
+ onClose: s,
4467
4467
  onOpen: f,
4468
4468
  open: R,
4469
- renderValue: $,
4469
+ renderValue: T,
4470
4470
  SelectDisplayProps: {
4471
- id: b,
4472
- ...D
4471
+ id: h,
4472
+ ...$
4473
4473
  }
4474
4474
  },
4475
- ...h,
4476
- classes: h ? mo(P, h.classes) : P,
4477
- ...w ? w.props.inputProps : {}
4475
+ ...g,
4476
+ classes: g ? bo(F, g.classes) : F,
4477
+ ...x ? x.props.inputProps : {}
4478
4478
  },
4479
- ...(p && v || m) && U === "outlined" ? {
4479
+ ...(p && O || v) && W === "outlined" ? {
4480
4480
  notched: !0
4481
4481
  } : {},
4482
- ref: F,
4483
- className: Z(Y.props.className, d, T.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
- ...!w && {
4486
- variant: U
4485
+ ...!x && {
4486
+ variant: W
4487
4487
  },
4488
- ...z
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
- saveButtonText: a = "Save",
4645
+ saveButtonText: i = "Save",
4646
4646
  cancelButtonText: u = "Cancel",
4647
- connectedText: s = "Slack notifications will be sent to:",
4648
- selectChannelText: d = "Choose a channel or user to receive notifications:"
4647
+ connectedText: a = "Slack notifications will be sent to:",
4648
+ selectChannelText: d = "Choose a channel or user to receive notifications:",
4649
+ destinationType: m = "any"
4649
4650
  } = {}) {
4650
- const c = at(it), [m, y] = ye(), [b, w] = ye(), [h, I] = ye([]), [O, S] = ye(""), [p, v] = ye(!1), [i, f] = ye(null), [R, $] = ye(!1), D = Io(async () => {
4651
- if (c)
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
- v(!0);
4654
- const T = await c.getClient().user.get();
4655
- T.slackToken && y(T.slackToken), T.slackChannel && w(T.slackChannel);
4656
- } catch (x) {
4657
- console.error("Error fetching Slack status:", x);
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
- v(!1);
4660
+ f(!1);
4660
4661
  }
4661
- }, [c]), k = Io(async () => {
4662
- if (!c || !m) return [];
4662
+ }, [l]), N = Ro(async () => {
4663
+ if (!l || !h) return [];
4663
4664
  try {
4664
- v(!0), f(null);
4665
- const T = await c.getClient().slack.getChannels(), A = [
4666
- ...(T.channels || []).filter((P) => P.id && P.name).map((P) => ({
4667
- id: P.id,
4668
- name: P.name,
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
- ...(T.users || []).filter((P) => P.id && P.name).map((P) => ({
4672
- id: P.id,
4673
- name: P.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(A), A;
4678
- } catch (x) {
4679
- return console.error("Error loading channels and users:", x), f("Failed to load Slack channels and users. Please try again."), [];
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
- v(!1);
4682
+ f(!1);
4682
4683
  }
4683
- }, [c, m]);
4684
- Ro(() => {
4685
- D();
4686
- }, [D]), Ro(() => {
4687
- m && !b && !R && k();
4688
- }, [m, b, R, k]);
4689
- const z = async () => {
4690
- if (c)
4684
+ }, [l, h]);
4685
+ ko(() => {
4686
+ j();
4687
+ }, [j]), ko(() => {
4688
+ h && !g && !$ && (m === "me" ? (async () => {
4691
4689
  try {
4692
- v(!0), f(null);
4693
- const T = await c.getClient().slack.getOAuthUrl();
4694
- window.location.href = T;
4695
- } catch (x) {
4696
- console.error("Error connecting to Slack:", x), f("Failed to connect to Slack. Please try again.");
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.");
4697
4701
  } finally {
4698
- v(!1);
4702
+ f(!1);
4699
4703
  }
4700
- }, N = async () => {
4701
- if (!(!c || !O))
4704
+ })() : N());
4705
+ }, [
4706
+ h,
4707
+ g,
4708
+ $,
4709
+ N,
4710
+ m,
4711
+ l
4712
+ ]);
4713
+ const B = async () => {
4714
+ if (l)
4702
4715
  try {
4703
- v(!0), f(null);
4704
- const x = c.getClient(), T = h.find((P) => P.id === O);
4705
- if (!T) {
4706
- f("Channel not found. Please try again.");
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.");
4721
+ } finally {
4722
+ f(!1);
4723
+ }
4724
+ }, z = async () => {
4725
+ if (!(!l || !p))
4726
+ try {
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 A = `${T.type === "channel" ? "#" : "@"}${T.name}`;
4710
- await x.slack.setChannel(A), w(A), $(!1), f(null);
4711
- } catch (x) {
4712
- console.error("Error saving channel:", x), f("Failed to save channel. Please try again.");
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
- v(!1);
4738
+ f(!1);
4715
4739
  }
4716
- }, B = async () => {
4717
- if (c)
4740
+ }, W = async () => {
4741
+ if (l)
4718
4742
  try {
4719
- v(!0), f(null), await c.getClient().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
- }), y(void 0), w(void 0), S(""), I([]), $(!1);
4725
- } catch (x) {
4726
- console.error("Error disconnecting Slack:", x), f("Failed to disconnect Slack. Please try again.");
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
- v(!1);
4752
+ f(!1);
4729
4753
  }
4730
- }, W = async () => {
4731
- $(!0);
4732
- let x = h;
4733
- if (h.length === 0 && (x = await k()), b) {
4734
- const T = b.startsWith("#"), A = b.substring(1), P = T ? "channel" : "user", Y = x.find(
4735
- (F) => F.name === A && F.type === P
4754
+ }, U = async () => {
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
- Y && S(Y.id);
4761
+ ve && O(ve.id);
4738
4762
  }
4739
- }, U = () => {
4740
- $(!1), S("");
4763
+ }, V = () => {
4764
+ k(!1), O("");
4741
4765
  };
4742
- return c ? p && !m && !h.length ? /* @__PURE__ */ g(He, { display: "flex", justifyContent: "center", alignItems: "center", p: 3, children: /* @__PURE__ */ g(Ge, {}) }) : m ? !b || R ? /* @__PURE__ */ q(He, { children: [
4743
- i && /* @__PURE__ */ g(ko, { severity: "error", sx: { mb: 2 }, children: i }),
4744
- p ? /* @__PURE__ */ g(He, { display: "flex", justifyContent: "center", p: 2, children: /* @__PURE__ */ g(Ge, {}) }) : /* @__PURE__ */ q(io, { direction: "row", spacing: 2, alignItems: "center", children: [
4745
- /* @__PURE__ */ g(_e, { variant: "body2", color: "text.secondary", children: d }),
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
- /* @__PURE__ */ g(Yo, { id: "slack-channel-label", children: "Channel or User" }),
4748
- /* @__PURE__ */ g(
4749
- So,
4774
+ /* @__PURE__ */ y(Yo, { id: "slack-channel-label", children: "Channel or User" }),
4775
+ /* @__PURE__ */ y(
4776
+ wo,
4750
4777
  {
4751
4778
  labelId: "slack-channel-label",
4752
- value: O,
4779
+ value: p,
4753
4780
  label: "Channel or User",
4754
- onChange: (x) => S(x.target.value),
4755
- children: h.sort((x, T) => x.type === T.type ? x.name.localeCompare(T.name) : x.type === "channel" ? -1 : 1).map((x) => /* @__PURE__ */ q(et, { value: x.id, children: [
4756
- x.type === "channel" ? "#" : "@",
4757
- x.name
4758
- ] }, x.id))
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
- /* @__PURE__ */ g(
4763
- xe,
4789
+ /* @__PURE__ */ y(
4790
+ ke,
4764
4791
  {
4765
4792
  variant: "contained",
4766
4793
  color: "primary",
4767
- onClick: N,
4768
- disabled: !O || p,
4769
- children: a
4794
+ onClick: z,
4795
+ disabled: !p || s,
4796
+ children: i
4770
4797
  }
4771
4798
  ),
4772
- R && /* @__PURE__ */ g(
4773
- xe,
4799
+ $ && /* @__PURE__ */ y(
4800
+ ke,
4774
4801
  {
4775
4802
  variant: "outlined",
4776
- onClick: U,
4777
- disabled: p,
4803
+ onClick: V,
4804
+ disabled: s,
4778
4805
  children: u
4779
4806
  }
4780
4807
  ),
4781
- /* @__PURE__ */ g(
4782
- xe,
4808
+ /* @__PURE__ */ y(
4809
+ ke,
4783
4810
  {
4784
4811
  variant: "text",
4785
4812
  color: "error",
4786
- onClick: B,
4787
- disabled: p,
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__ */ g(_e, { variant: "body2", color: "text.secondary", children: s }),
4795
- /* @__PURE__ */ g(_e, { variant: "body1", fontWeight: "medium", children: b }),
4796
- /* @__PURE__ */ g(xe, { variant: "outlined", onClick: W, disabled: p, children: n }),
4797
- /* @__PURE__ */ g(
4798
- xe,
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 }),
4824
+ /* @__PURE__ */ y(
4825
+ ke,
4799
4826
  {
4800
4827
  variant: "text",
4801
4828
  color: "error",
4802
- onClick: B,
4803
- disabled: p,
4829
+ onClick: W,
4830
+ disabled: s,
4804
4831
  children: r
4805
4832
  }
4806
4833
  )
4807
- ] }) : /* @__PURE__ */ q(He, { children: [
4808
- i && /* @__PURE__ */ g(ko, { severity: "error", sx: { mb: 2 }, children: i }),
4809
- /* @__PURE__ */ q(io, { direction: "row", spacing: 2, alignItems: "center", children: [
4810
- /* @__PURE__ */ g(_e, { variant: "body2", color: "text.secondary", children: o }),
4811
- /* @__PURE__ */ g(
4812
- xe,
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 }),
4838
+ /* @__PURE__ */ y(
4839
+ ke,
4813
4840
  {
4814
4841
  variant: "contained",
4815
4842
  color: "primary",
4816
- onClick: z,
4817
- disabled: p,
4818
- children: p ? /* @__PURE__ */ g(Ge, { size: 24 }) : t
4843
+ onClick: B,
4844
+ disabled: s,
4845
+ children: s ? /* @__PURE__ */ y(Be, { size: 24 }) : t
4819
4846
  }
4820
4847
  )
4821
4848
  ] })