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