jcicl 1.2.7 → 1.2.8
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/LabeledDropdown/LabeledDropdown.js +649 -639
- package/LabeledTextArea/LabeledTextArea.js +13 -10
- package/TimeSlotPicker/TimeSlotPicker.d.ts +42 -0
- package/TimeSlotPicker/TimeSlotPicker.js +78 -0
- package/TimeSlotPicker/index.d.ts +1 -0
- package/TimeSlotPicker/index.js +5 -0
- package/assets/style.css +1 -1
- package/assets/tailwind.css +1 -1
- package/index.d.ts +2 -0
- package/index.js +49 -47
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as P, jsxs as Ne } from "react/jsx-runtime";
|
|
2
2
|
import { cn as Ho } from "../cn.js";
|
|
3
3
|
import io from "../theme.js";
|
|
4
4
|
import { useThemeColors as Jo } from "../ThemeContext.js";
|
|
5
5
|
import * as m from "react";
|
|
6
|
-
import { g as co, a as uo, s as
|
|
7
|
-
import { c as
|
|
8
|
-
import { i as Oo, a as
|
|
6
|
+
import { g as co, a as uo, s as j, c as d, u as fo, P as o, b as go, d as F } from "../.chunks/DefaultPropsProvider.js";
|
|
7
|
+
import { c as ee } from "../.chunks/clsx.js";
|
|
8
|
+
import { i as Oo, a as xe, b as Do, f as Be, A as Xo, T as No } from "../.chunks/TextField.js";
|
|
9
9
|
import { c as Uo } from "../.chunks/createSvgIcon.js";
|
|
10
|
-
import { m as
|
|
10
|
+
import { m as re } from "../.chunks/memoTheme.js";
|
|
11
11
|
import { u as wo } from "../.chunks/useSlot.js";
|
|
12
|
-
import { c as
|
|
12
|
+
import { c as De } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
13
13
|
import { B as Po } from "../.chunks/ButtonBase.js";
|
|
14
14
|
import { c as To } from "../.chunks/chainPropTypes.js";
|
|
15
15
|
import { P as Wo } from "../.chunks/Popper.js";
|
|
16
|
-
import { P as
|
|
16
|
+
import { P as qo } from "../.chunks/Paper.js";
|
|
17
17
|
import { a as Qo } from "../.chunks/Portal.js";
|
|
18
18
|
import { u as So } from "../.chunks/useControlled.js";
|
|
19
19
|
import { b as so, s as Zo, u as et } from "../.chunks/TransitionGroupContext.js";
|
|
@@ -21,8 +21,8 @@ import { i as ot } from "../.chunks/integerPropType.js";
|
|
|
21
21
|
function tt(e, n, a, i, g) {
|
|
22
22
|
if (process.env.NODE_ENV === "production")
|
|
23
23
|
return null;
|
|
24
|
-
const
|
|
25
|
-
return typeof e[n] < "u" ? new Error(`The prop \`${
|
|
24
|
+
const y = g || n;
|
|
25
|
+
return typeof e[n] < "u" ? new Error(`The prop \`${y}\` is not supported. Please remove it.`) : null;
|
|
26
26
|
}
|
|
27
27
|
const nt = (e) => {
|
|
28
28
|
const n = m.useRef({});
|
|
@@ -39,20 +39,20 @@ function rt(e = {}) {
|
|
|
39
39
|
ignoreCase: a = !0,
|
|
40
40
|
limit: i,
|
|
41
41
|
matchFrom: g = "any",
|
|
42
|
-
stringify:
|
|
43
|
-
trim:
|
|
42
|
+
stringify: y,
|
|
43
|
+
trim: I = !1
|
|
44
44
|
} = e;
|
|
45
|
-
return (
|
|
46
|
-
inputValue:
|
|
45
|
+
return (h, {
|
|
46
|
+
inputValue: S,
|
|
47
47
|
getOptionLabel: b
|
|
48
48
|
}) => {
|
|
49
|
-
let
|
|
50
|
-
a && (
|
|
51
|
-
const
|
|
52
|
-
let L = (
|
|
53
|
-
return a && (L = L.toLowerCase()), n && (L = Eo(L)), g === "start" ? L.startsWith(
|
|
54
|
-
}) :
|
|
55
|
-
return typeof i == "number" ?
|
|
49
|
+
let T = I ? S.trim() : S;
|
|
50
|
+
a && (T = T.toLowerCase()), n && (T = Eo(T));
|
|
51
|
+
const M = T ? h.filter((q) => {
|
|
52
|
+
let L = (y || b)(q);
|
|
53
|
+
return a && (L = L.toLowerCase()), n && (L = Eo(L)), g === "start" ? L.startsWith(T) : L.includes(T);
|
|
54
|
+
}) : h;
|
|
55
|
+
return typeof i == "number" ? M.slice(0, i) : M;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
const at = rt(), zo = 5, lt = (e) => {
|
|
@@ -67,45 +67,45 @@ function st(e) {
|
|
|
67
67
|
unstable_classNamePrefix: a = "Mui",
|
|
68
68
|
autoComplete: i = !1,
|
|
69
69
|
autoHighlight: g = !1,
|
|
70
|
-
autoSelect:
|
|
71
|
-
blurOnSelect:
|
|
72
|
-
clearOnBlur:
|
|
73
|
-
clearOnEscape:
|
|
70
|
+
autoSelect: y = !1,
|
|
71
|
+
blurOnSelect: I = !1,
|
|
72
|
+
clearOnBlur: h = !e.freeSolo,
|
|
73
|
+
clearOnEscape: S = !1,
|
|
74
74
|
componentName: b = "useAutocomplete",
|
|
75
|
-
defaultValue:
|
|
76
|
-
disableClearable:
|
|
77
|
-
disableCloseOnSelect:
|
|
75
|
+
defaultValue: T = e.multiple ? it : null,
|
|
76
|
+
disableClearable: M = !1,
|
|
77
|
+
disableCloseOnSelect: q = !1,
|
|
78
78
|
disabled: L,
|
|
79
|
-
disabledItemsFocusable:
|
|
80
|
-
disableListWrap:
|
|
81
|
-
filterOptions:
|
|
82
|
-
filterSelectedOptions:
|
|
83
|
-
freeSolo:
|
|
84
|
-
getOptionDisabled:
|
|
85
|
-
getOptionKey:
|
|
86
|
-
getOptionLabel:
|
|
87
|
-
groupBy:
|
|
88
|
-
handleHomeEndKeys:
|
|
79
|
+
disabledItemsFocusable: B = !1,
|
|
80
|
+
disableListWrap: oe = !1,
|
|
81
|
+
filterOptions: me = at,
|
|
82
|
+
filterSelectedOptions: ue = !1,
|
|
83
|
+
freeSolo: J = !1,
|
|
84
|
+
getOptionDisabled: z,
|
|
85
|
+
getOptionKey: ae,
|
|
86
|
+
getOptionLabel: v = (r) => r.label ?? r,
|
|
87
|
+
groupBy: R,
|
|
88
|
+
handleHomeEndKeys: le = !e.freeSolo,
|
|
89
89
|
id: Ee,
|
|
90
|
-
includeInputInList:
|
|
91
|
-
inputValue:
|
|
90
|
+
includeInputInList: he = !1,
|
|
91
|
+
inputValue: Ie,
|
|
92
92
|
isOptionEqualToValue: K = (r, t) => r === t,
|
|
93
|
-
multiple:
|
|
94
|
-
onChange:
|
|
95
|
-
onClose:
|
|
96
|
-
onHighlightChange:
|
|
97
|
-
onInputChange:
|
|
98
|
-
onOpen:
|
|
99
|
-
open:
|
|
100
|
-
openOnFocus:
|
|
93
|
+
multiple: C = !1,
|
|
94
|
+
onChange: ye,
|
|
95
|
+
onClose: X,
|
|
96
|
+
onHighlightChange: Ce,
|
|
97
|
+
onInputChange: Q,
|
|
98
|
+
onOpen: de,
|
|
99
|
+
open: $e,
|
|
100
|
+
openOnFocus: D = !1,
|
|
101
101
|
options: Ro,
|
|
102
|
-
readOnly:
|
|
102
|
+
readOnly: Oe = !1,
|
|
103
103
|
selectOnFocus: ze = !e.freeSolo,
|
|
104
104
|
value: bo
|
|
105
|
-
} = e,
|
|
106
|
-
let
|
|
107
|
-
|
|
108
|
-
const t =
|
|
105
|
+
} = e, W = Qo(Ee);
|
|
106
|
+
let N = v;
|
|
107
|
+
N = (r) => {
|
|
108
|
+
const t = v(r);
|
|
109
109
|
if (typeof t != "string") {
|
|
110
110
|
if (process.env.NODE_ENV !== "production") {
|
|
111
111
|
const l = t === void 0 ? "undefined" : `${typeof t} (${t})`;
|
|
@@ -115,166 +115,166 @@ function st(e) {
|
|
|
115
115
|
}
|
|
116
116
|
return t;
|
|
117
117
|
};
|
|
118
|
-
const Ve = m.useRef(!1), Fe = m.useRef(!0),
|
|
118
|
+
const Ve = m.useRef(!1), Fe = m.useRef(!0), A = m.useRef(null), G = m.useRef(null), [je, Ao] = m.useState(null), [Y, Xe] = m.useState(-1), mo = g ? 0 : -1, V = m.useRef(mo), [s, Lo] = So({
|
|
119
119
|
controlled: bo,
|
|
120
|
-
default:
|
|
120
|
+
default: T,
|
|
121
121
|
name: b
|
|
122
|
-
}), [
|
|
123
|
-
controlled:
|
|
122
|
+
}), [w, we] = So({
|
|
123
|
+
controlled: Ie,
|
|
124
124
|
default: "",
|
|
125
125
|
name: b,
|
|
126
126
|
state: "inputValue"
|
|
127
|
-
}), [
|
|
128
|
-
if (!(
|
|
127
|
+
}), [Se, He] = m.useState(!1), Pe = m.useCallback((r, t, l) => {
|
|
128
|
+
if (!(C ? s.length < t.length : t !== null) && !h)
|
|
129
129
|
return;
|
|
130
130
|
let c;
|
|
131
|
-
if (
|
|
131
|
+
if (C)
|
|
132
132
|
c = "";
|
|
133
133
|
else if (t == null)
|
|
134
134
|
c = "";
|
|
135
135
|
else {
|
|
136
|
-
const
|
|
137
|
-
c = typeof
|
|
136
|
+
const O = N(t);
|
|
137
|
+
c = typeof O == "string" ? O : "";
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
}, [
|
|
141
|
-
controlled:
|
|
139
|
+
w !== c && (we(c), Q && Q(r, c, l));
|
|
140
|
+
}, [N, w, C, Q, we, h, s]), [fe, Qe] = So({
|
|
141
|
+
controlled: $e,
|
|
142
142
|
default: !1,
|
|
143
143
|
name: b,
|
|
144
144
|
state: "open"
|
|
145
|
-
}), [Ze, ho] = m.useState(!0),
|
|
146
|
-
Ro.filter((r) => !(
|
|
145
|
+
}), [Ze, ho] = m.useState(!0), Te = !C && s != null && w === N(s), H = fe && !Oe, k = H ? me(
|
|
146
|
+
Ro.filter((r) => !(ue && (C ? s : [s]).some((t) => t !== null && K(r, t)))),
|
|
147
147
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
148
148
|
// i.e. the filter predicate always returns true
|
|
149
149
|
{
|
|
150
|
-
inputValue:
|
|
151
|
-
getOptionLabel:
|
|
150
|
+
inputValue: Te && Ze ? "" : w,
|
|
151
|
+
getOptionLabel: N
|
|
152
152
|
}
|
|
153
|
-
) : [],
|
|
153
|
+
) : [], te = nt({
|
|
154
154
|
filteredOptions: k,
|
|
155
155
|
value: s,
|
|
156
|
-
inputValue:
|
|
156
|
+
inputValue: w
|
|
157
157
|
});
|
|
158
158
|
m.useEffect(() => {
|
|
159
|
-
const r = s !==
|
|
160
|
-
|
|
161
|
-
}, [s,
|
|
162
|
-
const Ue =
|
|
163
|
-
r === -1 ?
|
|
159
|
+
const r = s !== te.value;
|
|
160
|
+
Se && !r || J && !r || Pe(null, s, "reset");
|
|
161
|
+
}, [s, Pe, Se, te.value, J]);
|
|
162
|
+
const Ue = fe && k.length > 0 && !Oe, ke = so((r) => {
|
|
163
|
+
r === -1 ? A.current.focus() : je.querySelector(`[data-tag-index="${r}"]`).focus();
|
|
164
164
|
});
|
|
165
165
|
m.useEffect(() => {
|
|
166
|
-
|
|
167
|
-
}, [s,
|
|
166
|
+
C && Y > s.length - 1 && (Xe(-1), ke(-1));
|
|
167
|
+
}, [s, C, Y, ke]);
|
|
168
168
|
function eo(r, t) {
|
|
169
|
-
if (!
|
|
169
|
+
if (!G.current || r < 0 || r >= k.length)
|
|
170
170
|
return -1;
|
|
171
171
|
let l = r;
|
|
172
172
|
for (; ; ) {
|
|
173
|
-
const p =
|
|
173
|
+
const p = G.current.querySelector(`[data-option-index="${l}"]`), c = B ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
|
|
174
174
|
if (p && p.hasAttribute("tabindex") && !c)
|
|
175
175
|
return l;
|
|
176
176
|
if (t === "next" ? l = (l + 1) % k.length : l = (l - 1 + k.length) % k.length, l === r)
|
|
177
177
|
return -1;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const ie = so(({
|
|
181
181
|
event: r,
|
|
182
182
|
index: t,
|
|
183
183
|
reason: l = "auto"
|
|
184
184
|
}) => {
|
|
185
|
-
if (
|
|
185
|
+
if (V.current = t, t === -1 ? A.current.removeAttribute("aria-activedescendant") : A.current.setAttribute("aria-activedescendant", `${W}-option-${t}`), Ce && Ce(r, t === -1 ? null : k[t], l), !G.current)
|
|
186
186
|
return;
|
|
187
|
-
const p =
|
|
187
|
+
const p = G.current.querySelector(`[role="option"].${a}-focused`);
|
|
188
188
|
p && (p.classList.remove(`${a}-focused`), p.classList.remove(`${a}-focusVisible`));
|
|
189
|
-
let c =
|
|
190
|
-
if (
|
|
189
|
+
let c = G.current;
|
|
190
|
+
if (G.current.getAttribute("role") !== "listbox" && (c = G.current.parentElement.querySelector('[role="listbox"]')), !c)
|
|
191
191
|
return;
|
|
192
192
|
if (t === -1) {
|
|
193
193
|
c.scrollTop = 0;
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
|
|
196
|
+
const O = G.current.querySelector(`[data-option-index="${t}"]`);
|
|
197
|
+
if (O && (O.classList.add(`${a}-focused`), l === "keyboard" && O.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
|
|
198
|
+
const $ = O, U = c.clientHeight + c.scrollTop, _e = $.offsetTop + $.offsetHeight;
|
|
199
|
+
_e > U ? c.scrollTop = _e - c.clientHeight : $.offsetTop - $.offsetHeight * (R ? 1.3 : 0) < c.scrollTop && (c.scrollTop = $.offsetTop - $.offsetHeight * (R ? 1.3 : 0));
|
|
200
200
|
}
|
|
201
|
-
}),
|
|
201
|
+
}), Z = so(({
|
|
202
202
|
event: r,
|
|
203
203
|
diff: t,
|
|
204
204
|
direction: l = "next",
|
|
205
205
|
reason: p = "auto"
|
|
206
206
|
}) => {
|
|
207
|
-
if (!
|
|
207
|
+
if (!H)
|
|
208
208
|
return;
|
|
209
|
-
const
|
|
210
|
-
const
|
|
209
|
+
const O = eo((() => {
|
|
210
|
+
const $ = k.length - 1;
|
|
211
211
|
if (t === "reset")
|
|
212
212
|
return mo;
|
|
213
213
|
if (t === "start")
|
|
214
214
|
return 0;
|
|
215
215
|
if (t === "end")
|
|
216
|
-
return
|
|
217
|
-
const
|
|
218
|
-
return
|
|
216
|
+
return $;
|
|
217
|
+
const U = V.current + t;
|
|
218
|
+
return U < 0 ? U === -1 && he ? -1 : oe && V.current !== -1 || Math.abs(t) > 1 ? 0 : $ : U > $ ? U === $ + 1 && he ? -1 : oe || Math.abs(t) > 1 ? $ : 0 : U;
|
|
219
219
|
})(), l);
|
|
220
|
-
if (
|
|
221
|
-
index:
|
|
220
|
+
if (ie({
|
|
221
|
+
index: O,
|
|
222
222
|
reason: p,
|
|
223
223
|
event: r
|
|
224
224
|
}), i && t !== "reset")
|
|
225
|
-
if (
|
|
226
|
-
|
|
225
|
+
if (O === -1)
|
|
226
|
+
A.current.value = w;
|
|
227
227
|
else {
|
|
228
|
-
const
|
|
229
|
-
|
|
228
|
+
const $ = N(k[O]);
|
|
229
|
+
A.current.value = $, $.toLowerCase().indexOf(w.toLowerCase()) === 0 && w.length > 0 && A.current.setSelectionRange(w.length, $.length);
|
|
230
230
|
}
|
|
231
231
|
}), yo = () => {
|
|
232
232
|
const r = (t, l) => {
|
|
233
|
-
const p = t ?
|
|
233
|
+
const p = t ? N(t) : "", c = l ? N(l) : "";
|
|
234
234
|
return p === c;
|
|
235
235
|
};
|
|
236
|
-
if (
|
|
237
|
-
const t =
|
|
236
|
+
if (V.current !== -1 && te.filteredOptions && te.filteredOptions.length !== k.length && te.inputValue === w && (C ? s.length === te.value.length && te.value.every((t, l) => N(s[l]) === N(t)) : r(te.value, s))) {
|
|
237
|
+
const t = te.filteredOptions[V.current];
|
|
238
238
|
if (t)
|
|
239
|
-
return k.findIndex((l) =>
|
|
239
|
+
return k.findIndex((l) => N(l) === N(t));
|
|
240
240
|
}
|
|
241
241
|
return -1;
|
|
242
242
|
}, We = m.useCallback(() => {
|
|
243
|
-
if (!
|
|
243
|
+
if (!H)
|
|
244
244
|
return;
|
|
245
245
|
const r = yo();
|
|
246
246
|
if (r !== -1) {
|
|
247
|
-
|
|
247
|
+
V.current = r;
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
const t =
|
|
250
|
+
const t = C ? s[0] : s;
|
|
251
251
|
if (k.length === 0 || t == null) {
|
|
252
|
-
|
|
252
|
+
Z({
|
|
253
253
|
diff: "reset"
|
|
254
254
|
});
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
if (
|
|
257
|
+
if (G.current) {
|
|
258
258
|
if (t != null) {
|
|
259
|
-
const l = k[
|
|
260
|
-
if (
|
|
259
|
+
const l = k[V.current];
|
|
260
|
+
if (C && l && s.findIndex((c) => K(l, c)) !== -1)
|
|
261
261
|
return;
|
|
262
262
|
const p = k.findIndex((c) => K(c, t));
|
|
263
|
-
p === -1 ?
|
|
263
|
+
p === -1 ? Z({
|
|
264
264
|
diff: "reset"
|
|
265
|
-
}) :
|
|
265
|
+
}) : ie({
|
|
266
266
|
index: p
|
|
267
267
|
});
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
if (
|
|
271
|
-
|
|
270
|
+
if (V.current >= k.length - 1) {
|
|
271
|
+
ie({
|
|
272
272
|
index: k.length - 1
|
|
273
273
|
});
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
|
-
|
|
277
|
-
index:
|
|
276
|
+
ie({
|
|
277
|
+
index: V.current
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
}, [
|
|
@@ -282,50 +282,50 @@ function st(e) {
|
|
|
282
282
|
k.length,
|
|
283
283
|
// Don't sync the highlighted index with the value when multiple
|
|
284
284
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
285
|
+
C ? !1 : s,
|
|
286
|
+
ue,
|
|
287
|
+
Z,
|
|
288
|
+
ie,
|
|
289
|
+
H,
|
|
290
|
+
w,
|
|
291
|
+
C
|
|
292
292
|
]), vo = so((r) => {
|
|
293
|
-
Zo(
|
|
293
|
+
Zo(G, r), r && We();
|
|
294
294
|
});
|
|
295
295
|
process.env.NODE_ENV !== "production" && m.useEffect(() => {
|
|
296
|
-
(!
|
|
297
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
296
|
+
(!A.current || A.current.nodeName !== "INPUT") && (A.current && A.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${b} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
297
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${A.current} while an HTMLInputElement was expected.`, `Instead, ${b} expects an input element.`, "", b === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
298
298
|
`)));
|
|
299
299
|
}, [b]), m.useEffect(() => {
|
|
300
300
|
We();
|
|
301
301
|
}, [We]);
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
if (
|
|
308
|
-
if (s.length === t.length && s.every((c,
|
|
302
|
+
const se = (r) => {
|
|
303
|
+
fe || (Qe(!0), ho(!0), de && de(r));
|
|
304
|
+
}, pe = (r, t) => {
|
|
305
|
+
fe && (Qe(!1), X && X(r, t));
|
|
306
|
+
}, ge = (r, t, l, p) => {
|
|
307
|
+
if (C) {
|
|
308
|
+
if (s.length === t.length && s.every((c, O) => c === t[O]))
|
|
309
309
|
return;
|
|
310
310
|
} else if (s === t)
|
|
311
311
|
return;
|
|
312
|
-
|
|
313
|
-
},
|
|
314
|
-
let c = l,
|
|
315
|
-
if (
|
|
316
|
-
if (
|
|
317
|
-
const
|
|
318
|
-
|
|
312
|
+
ye && ye(r, t, l, p), Lo(t);
|
|
313
|
+
}, Me = m.useRef(!1), ve = (r, t, l = "selectOption", p = "options") => {
|
|
314
|
+
let c = l, O = t;
|
|
315
|
+
if (C) {
|
|
316
|
+
if (O = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
317
|
+
const U = O.filter((_e) => K(t, _e));
|
|
318
|
+
U.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${b} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${U.length} matches.`].join(`
|
|
319
319
|
`));
|
|
320
320
|
}
|
|
321
|
-
const
|
|
322
|
-
|
|
321
|
+
const $ = O.findIndex((U) => K(t, U));
|
|
322
|
+
$ === -1 ? O.push(t) : p !== "freeSolo" && (O.splice($, 1), c = "removeOption");
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
Pe(r, O, c), ge(r, O, c, {
|
|
325
325
|
option: t
|
|
326
|
-
}), !
|
|
326
|
+
}), !q && (!r || !r.ctrlKey && !r.metaKey) && pe(r, c), (I === !0 || I === "touch" && Me.current || I === "mouse" && !Me.current) && A.current.blur();
|
|
327
327
|
};
|
|
328
|
-
function
|
|
328
|
+
function Re(r, t) {
|
|
329
329
|
if (r === -1)
|
|
330
330
|
return -1;
|
|
331
331
|
let l = r;
|
|
@@ -339,19 +339,19 @@ function st(e) {
|
|
|
339
339
|
return l;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
const
|
|
343
|
-
if (!
|
|
342
|
+
const qe = (r, t) => {
|
|
343
|
+
if (!C)
|
|
344
344
|
return;
|
|
345
|
-
|
|
346
|
-
let l =
|
|
347
|
-
|
|
345
|
+
w === "" && pe(r, "toggleInput");
|
|
346
|
+
let l = Y;
|
|
347
|
+
Y === -1 ? w === "" && t === "previous" && (l = s.length - 1) : (l += t === "next" ? 1 : -1, l < 0 && (l = 0), l === s.length && (l = -1)), l = Re(l, t), Xe(l), ke(l);
|
|
348
348
|
}, oo = (r) => {
|
|
349
|
-
Ve.current = !0,
|
|
350
|
-
},
|
|
351
|
-
if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (
|
|
349
|
+
Ve.current = !0, we(""), Q && Q(r, "", "clear"), ge(r, C ? [] : null, "clear");
|
|
350
|
+
}, Ae = (r) => (t) => {
|
|
351
|
+
if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (Y !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1), ke(-1)), t.which !== 229))
|
|
352
352
|
switch (t.key) {
|
|
353
353
|
case "Home":
|
|
354
|
-
|
|
354
|
+
H && le && (t.preventDefault(), Z({
|
|
355
355
|
diff: "start",
|
|
356
356
|
direction: "next",
|
|
357
357
|
reason: "keyboard",
|
|
@@ -359,7 +359,7 @@ function st(e) {
|
|
|
359
359
|
}));
|
|
360
360
|
break;
|
|
361
361
|
case "End":
|
|
362
|
-
|
|
362
|
+
H && le && (t.preventDefault(), Z({
|
|
363
363
|
diff: "end",
|
|
364
364
|
direction: "previous",
|
|
365
365
|
reason: "keyboard",
|
|
@@ -367,157 +367,157 @@ function st(e) {
|
|
|
367
367
|
}));
|
|
368
368
|
break;
|
|
369
369
|
case "PageUp":
|
|
370
|
-
t.preventDefault(),
|
|
370
|
+
t.preventDefault(), Z({
|
|
371
371
|
diff: -zo,
|
|
372
372
|
direction: "previous",
|
|
373
373
|
reason: "keyboard",
|
|
374
374
|
event: t
|
|
375
|
-
}),
|
|
375
|
+
}), se(t);
|
|
376
376
|
break;
|
|
377
377
|
case "PageDown":
|
|
378
|
-
t.preventDefault(),
|
|
378
|
+
t.preventDefault(), Z({
|
|
379
379
|
diff: zo,
|
|
380
380
|
direction: "next",
|
|
381
381
|
reason: "keyboard",
|
|
382
382
|
event: t
|
|
383
|
-
}),
|
|
383
|
+
}), se(t);
|
|
384
384
|
break;
|
|
385
385
|
case "ArrowDown":
|
|
386
|
-
t.preventDefault(),
|
|
386
|
+
t.preventDefault(), Z({
|
|
387
387
|
diff: 1,
|
|
388
388
|
direction: "next",
|
|
389
389
|
reason: "keyboard",
|
|
390
390
|
event: t
|
|
391
|
-
}),
|
|
391
|
+
}), se(t);
|
|
392
392
|
break;
|
|
393
393
|
case "ArrowUp":
|
|
394
|
-
t.preventDefault(),
|
|
394
|
+
t.preventDefault(), Z({
|
|
395
395
|
diff: -1,
|
|
396
396
|
direction: "previous",
|
|
397
397
|
reason: "keyboard",
|
|
398
398
|
event: t
|
|
399
|
-
}),
|
|
399
|
+
}), se(t);
|
|
400
400
|
break;
|
|
401
401
|
case "ArrowLeft":
|
|
402
|
-
|
|
402
|
+
qe(t, "previous");
|
|
403
403
|
break;
|
|
404
404
|
case "ArrowRight":
|
|
405
|
-
|
|
405
|
+
qe(t, "next");
|
|
406
406
|
break;
|
|
407
407
|
case "Enter":
|
|
408
|
-
if (
|
|
409
|
-
const l = k[
|
|
408
|
+
if (V.current !== -1 && H) {
|
|
409
|
+
const l = k[V.current], p = z ? z(l) : !1;
|
|
410
410
|
if (t.preventDefault(), p)
|
|
411
411
|
return;
|
|
412
|
-
|
|
413
|
-
} else
|
|
412
|
+
ve(t, l, "selectOption"), i && A.current.setSelectionRange(A.current.value.length, A.current.value.length);
|
|
413
|
+
} else J && w !== "" && Te === !1 && (C && t.preventDefault(), ve(t, w, "createOption", "freeSolo"));
|
|
414
414
|
break;
|
|
415
415
|
case "Escape":
|
|
416
|
-
|
|
416
|
+
H ? (t.preventDefault(), t.stopPropagation(), pe(t, "escape")) : S && (w !== "" || C && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
|
|
417
417
|
break;
|
|
418
418
|
case "Backspace":
|
|
419
|
-
if (
|
|
420
|
-
const l =
|
|
421
|
-
p.splice(l, 1),
|
|
419
|
+
if (C && !Oe && w === "" && s.length > 0) {
|
|
420
|
+
const l = Y === -1 ? s.length - 1 : Y, p = s.slice();
|
|
421
|
+
p.splice(l, 1), ge(t, p, "removeOption", {
|
|
422
422
|
option: s[l]
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
break;
|
|
426
426
|
case "Delete":
|
|
427
|
-
if (
|
|
428
|
-
const l =
|
|
429
|
-
p.splice(l, 1),
|
|
427
|
+
if (C && !Oe && w === "" && s.length > 0 && Y !== -1) {
|
|
428
|
+
const l = Y, p = s.slice();
|
|
429
|
+
p.splice(l, 1), ge(t, p, "removeOption", {
|
|
430
430
|
option: s[l]
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
break;
|
|
434
434
|
}
|
|
435
435
|
}, xo = (r) => {
|
|
436
|
-
He(!0),
|
|
436
|
+
He(!0), D && !Ve.current && se(r);
|
|
437
437
|
}, to = (r) => {
|
|
438
|
-
if (n(
|
|
439
|
-
|
|
438
|
+
if (n(G)) {
|
|
439
|
+
A.current.focus();
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
|
-
He(!1), Fe.current = !0, Ve.current = !1,
|
|
443
|
-
},
|
|
442
|
+
He(!1), Fe.current = !0, Ve.current = !1, y && V.current !== -1 && H ? ve(r, k[V.current], "blur") : y && J && w !== "" ? ve(r, w, "blur", "freeSolo") : h && Pe(r, s, "blur"), pe(r, "blur");
|
|
443
|
+
}, Le = (r) => {
|
|
444
444
|
const t = r.target.value;
|
|
445
|
-
|
|
446
|
-
},
|
|
445
|
+
w !== t && (we(t), ho(!1), Q && Q(r, t, "input")), t === "" ? !M && !C && ge(r, null, "clear") : se(r);
|
|
446
|
+
}, Ke = (r) => {
|
|
447
447
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
448
|
-
|
|
448
|
+
V.current !== t && ie({
|
|
449
449
|
event: r,
|
|
450
450
|
index: t,
|
|
451
451
|
reason: "mouse"
|
|
452
452
|
});
|
|
453
453
|
}, Ge = (r) => {
|
|
454
|
-
|
|
454
|
+
ie({
|
|
455
455
|
event: r,
|
|
456
456
|
index: Number(r.currentTarget.getAttribute("data-option-index")),
|
|
457
457
|
reason: "touch"
|
|
458
|
-
}),
|
|
458
|
+
}), Me.current = !0;
|
|
459
459
|
}, Io = (r) => {
|
|
460
460
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
461
|
-
|
|
461
|
+
ve(r, k[t], "selectOption"), Me.current = !1;
|
|
462
462
|
}, Co = (r) => (t) => {
|
|
463
463
|
const l = s.slice();
|
|
464
|
-
l.splice(r, 1),
|
|
464
|
+
l.splice(r, 1), ge(t, l, "removeOption", {
|
|
465
465
|
option: s[r]
|
|
466
466
|
});
|
|
467
467
|
}, no = (r) => {
|
|
468
|
-
|
|
468
|
+
fe ? pe(r, "toggleInput") : se(r);
|
|
469
469
|
}, _o = (r) => {
|
|
470
|
-
r.currentTarget.contains(r.target) && r.target.getAttribute("id") !==
|
|
470
|
+
r.currentTarget.contains(r.target) && r.target.getAttribute("id") !== W && r.preventDefault();
|
|
471
471
|
}, Ye = (r) => {
|
|
472
|
-
r.currentTarget.contains(r.target) && (
|
|
473
|
-
},
|
|
474
|
-
!L && (
|
|
472
|
+
r.currentTarget.contains(r.target) && (A.current.focus(), ze && Fe.current && A.current.selectionEnd - A.current.selectionStart === 0 && A.current.select(), Fe.current = !1);
|
|
473
|
+
}, E = (r) => {
|
|
474
|
+
!L && (w === "" || !fe) && (no(r), r.stopPropagation());
|
|
475
475
|
};
|
|
476
|
-
let
|
|
477
|
-
|
|
478
|
-
let
|
|
479
|
-
if (
|
|
476
|
+
let _ = J && w.length > 0;
|
|
477
|
+
_ = _ || (C ? s.length > 0 : s !== null);
|
|
478
|
+
let ce = k;
|
|
479
|
+
if (R) {
|
|
480
480
|
const r = /* @__PURE__ */ new Map();
|
|
481
481
|
let t = !1;
|
|
482
|
-
|
|
483
|
-
const
|
|
484
|
-
return l.length > 0 && l[l.length - 1].group ===
|
|
482
|
+
ce = k.reduce((l, p, c) => {
|
|
483
|
+
const O = R(p);
|
|
484
|
+
return l.length > 0 && l[l.length - 1].group === O ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get(O) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${b} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set(O, !0)), l.push({
|
|
485
485
|
key: c,
|
|
486
486
|
index: c,
|
|
487
|
-
group:
|
|
487
|
+
group: O,
|
|
488
488
|
options: [p]
|
|
489
489
|
})), l;
|
|
490
490
|
}, []);
|
|
491
491
|
}
|
|
492
|
-
return L &&
|
|
492
|
+
return L && Se && to(), {
|
|
493
493
|
getRootProps: (r = {}) => ({
|
|
494
|
-
"aria-owns": Ue ? `${
|
|
494
|
+
"aria-owns": Ue ? `${W}-listbox` : null,
|
|
495
495
|
...r,
|
|
496
|
-
onKeyDown:
|
|
496
|
+
onKeyDown: Ae(r),
|
|
497
497
|
onMouseDown: _o,
|
|
498
498
|
onClick: Ye
|
|
499
499
|
}),
|
|
500
500
|
getInputLabelProps: () => ({
|
|
501
|
-
id: `${
|
|
502
|
-
htmlFor:
|
|
501
|
+
id: `${W}-label`,
|
|
502
|
+
htmlFor: W
|
|
503
503
|
}),
|
|
504
504
|
getInputProps: () => ({
|
|
505
|
-
id:
|
|
506
|
-
value:
|
|
505
|
+
id: W,
|
|
506
|
+
value: w,
|
|
507
507
|
onBlur: to,
|
|
508
508
|
onFocus: xo,
|
|
509
|
-
onChange:
|
|
510
|
-
onMouseDown:
|
|
509
|
+
onChange: Le,
|
|
510
|
+
onMouseDown: E,
|
|
511
511
|
// if open then this is handled imperatively so don't let react override
|
|
512
512
|
// only have an opinion about this when closed
|
|
513
|
-
"aria-activedescendant":
|
|
513
|
+
"aria-activedescendant": H ? "" : null,
|
|
514
514
|
"aria-autocomplete": i ? "both" : "list",
|
|
515
|
-
"aria-controls": Ue ? `${
|
|
515
|
+
"aria-controls": Ue ? `${W}-listbox` : void 0,
|
|
516
516
|
"aria-expanded": Ue,
|
|
517
517
|
// Disable browser's suggestion that might overlap with the popup.
|
|
518
518
|
// Handle autocomplete but not autofill.
|
|
519
519
|
autoComplete: "off",
|
|
520
|
-
ref:
|
|
520
|
+
ref: A,
|
|
521
521
|
autoCapitalize: "none",
|
|
522
522
|
spellCheck: "false",
|
|
523
523
|
role: "combobox",
|
|
@@ -540,14 +540,14 @@ function st(e) {
|
|
|
540
540
|
key: r,
|
|
541
541
|
"data-tag-index": r,
|
|
542
542
|
tabIndex: -1,
|
|
543
|
-
...!
|
|
543
|
+
...!Oe && {
|
|
544
544
|
onDelete: Co(r)
|
|
545
545
|
}
|
|
546
546
|
}),
|
|
547
547
|
getListboxProps: () => ({
|
|
548
548
|
role: "listbox",
|
|
549
|
-
id: `${
|
|
550
|
-
"aria-labelledby": `${
|
|
549
|
+
id: `${W}-listbox`,
|
|
550
|
+
"aria-labelledby": `${W}-label`,
|
|
551
551
|
ref: vo,
|
|
552
552
|
onMouseDown: (r) => {
|
|
553
553
|
r.preventDefault();
|
|
@@ -557,13 +557,13 @@ function st(e) {
|
|
|
557
557
|
index: r,
|
|
558
558
|
option: t
|
|
559
559
|
}) => {
|
|
560
|
-
const l = (
|
|
560
|
+
const l = (C ? s : [s]).some((c) => c != null && K(t, c)), p = z ? z(t) : !1;
|
|
561
561
|
return {
|
|
562
|
-
key: (
|
|
562
|
+
key: (ae == null ? void 0 : ae(t)) ?? N(t),
|
|
563
563
|
tabIndex: -1,
|
|
564
564
|
role: "option",
|
|
565
|
-
id: `${
|
|
566
|
-
onMouseMove:
|
|
565
|
+
id: `${W}-option-${r}`,
|
|
566
|
+
onMouseMove: Ke,
|
|
567
567
|
onClick: Io,
|
|
568
568
|
onTouchStart: Ge,
|
|
569
569
|
"data-option-index": r,
|
|
@@ -571,17 +571,17 @@ function st(e) {
|
|
|
571
571
|
"aria-selected": l
|
|
572
572
|
};
|
|
573
573
|
},
|
|
574
|
-
id:
|
|
575
|
-
inputValue:
|
|
574
|
+
id: W,
|
|
575
|
+
inputValue: w,
|
|
576
576
|
value: s,
|
|
577
|
-
dirty:
|
|
578
|
-
expanded:
|
|
579
|
-
popupOpen:
|
|
580
|
-
focused:
|
|
577
|
+
dirty: _,
|
|
578
|
+
expanded: H && je,
|
|
579
|
+
popupOpen: H,
|
|
580
|
+
focused: Se || Y !== -1,
|
|
581
581
|
anchorEl: je,
|
|
582
|
-
setAnchorEl:
|
|
583
|
-
focusedTag:
|
|
584
|
-
groupedOptions:
|
|
582
|
+
setAnchorEl: Ao,
|
|
583
|
+
focusedTag: Y,
|
|
584
|
+
groupedOptions: ce
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
587
|
function pt(e) {
|
|
@@ -594,12 +594,12 @@ const ct = (e) => {
|
|
|
594
594
|
color: a,
|
|
595
595
|
disableGutters: i,
|
|
596
596
|
inset: g,
|
|
597
|
-
disableSticky:
|
|
598
|
-
} = e,
|
|
599
|
-
root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !
|
|
597
|
+
disableSticky: y
|
|
598
|
+
} = e, I = {
|
|
599
|
+
root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !y && "sticky"]
|
|
600
600
|
};
|
|
601
|
-
return go(
|
|
602
|
-
}, ut =
|
|
601
|
+
return go(I, pt, n);
|
|
602
|
+
}, ut = j("li", {
|
|
603
603
|
name: "MuiListSubheader",
|
|
604
604
|
slot: "Root",
|
|
605
605
|
overridesResolver: (e, n) => {
|
|
@@ -608,7 +608,7 @@ const ct = (e) => {
|
|
|
608
608
|
} = e;
|
|
609
609
|
return [n.root, a.color !== "default" && n[`color${d(a.color)}`], !a.disableGutters && n.gutters, a.inset && n.inset, !a.disableSticky && n.sticky];
|
|
610
610
|
}
|
|
611
|
-
})(
|
|
611
|
+
})(re(({
|
|
612
612
|
theme: e
|
|
613
613
|
}) => ({
|
|
614
614
|
boxSizing: "border-box",
|
|
@@ -664,26 +664,26 @@ const ct = (e) => {
|
|
|
664
664
|
name: "MuiListSubheader"
|
|
665
665
|
}), {
|
|
666
666
|
className: g,
|
|
667
|
-
color:
|
|
668
|
-
component:
|
|
669
|
-
disableGutters:
|
|
670
|
-
disableSticky:
|
|
667
|
+
color: y = "default",
|
|
668
|
+
component: I = "li",
|
|
669
|
+
disableGutters: h = !1,
|
|
670
|
+
disableSticky: S = !1,
|
|
671
671
|
inset: b = !1,
|
|
672
|
-
...
|
|
673
|
-
} = i,
|
|
672
|
+
...T
|
|
673
|
+
} = i, M = {
|
|
674
674
|
...i,
|
|
675
|
-
color:
|
|
676
|
-
component:
|
|
677
|
-
disableGutters:
|
|
678
|
-
disableSticky:
|
|
675
|
+
color: y,
|
|
676
|
+
component: I,
|
|
677
|
+
disableGutters: h,
|
|
678
|
+
disableSticky: S,
|
|
679
679
|
inset: b
|
|
680
|
-
},
|
|
681
|
-
return /* @__PURE__ */
|
|
682
|
-
as:
|
|
683
|
-
className:
|
|
680
|
+
}, q = ct(M);
|
|
681
|
+
return /* @__PURE__ */ P(ut, {
|
|
682
|
+
as: I,
|
|
683
|
+
className: ee(q.root, g),
|
|
684
684
|
ref: a,
|
|
685
|
-
ownerState:
|
|
686
|
-
...
|
|
685
|
+
ownerState: M,
|
|
686
|
+
...T
|
|
687
687
|
});
|
|
688
688
|
});
|
|
689
689
|
po && (po.muiSkipListHighlight = !0);
|
|
@@ -743,12 +743,12 @@ const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
743
743
|
disabled: a,
|
|
744
744
|
color: i,
|
|
745
745
|
edge: g,
|
|
746
|
-
size:
|
|
747
|
-
} = e,
|
|
748
|
-
root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(
|
|
746
|
+
size: y
|
|
747
|
+
} = e, I = {
|
|
748
|
+
root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(y)}`]
|
|
749
749
|
};
|
|
750
|
-
return go(
|
|
751
|
-
}, bt =
|
|
750
|
+
return go(I, dt, n);
|
|
751
|
+
}, bt = j(Po, {
|
|
752
752
|
name: "MuiIconButton",
|
|
753
753
|
slot: "Root",
|
|
754
754
|
overridesResolver: (e, n) => {
|
|
@@ -757,7 +757,7 @@ const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
757
757
|
} = e;
|
|
758
758
|
return [n.root, a.color !== "default" && n[`color${d(a.color)}`], a.edge && n[`edge${d(a.edge)}`], n[`size${d(a.size)}`]];
|
|
759
759
|
}
|
|
760
|
-
})(
|
|
760
|
+
})(re(({
|
|
761
761
|
theme: e
|
|
762
762
|
}) => ({
|
|
763
763
|
textAlign: "center",
|
|
@@ -775,7 +775,7 @@ const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
775
775
|
},
|
|
776
776
|
style: {
|
|
777
777
|
"&:hover": {
|
|
778
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
778
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : F(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
779
779
|
// Reset on touch devices, it doesn't add specificity
|
|
780
780
|
"@media (hover: none)": {
|
|
781
781
|
backgroundColor: "transparent"
|
|
@@ -813,7 +813,7 @@ const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
813
813
|
marginRight: -3
|
|
814
814
|
}
|
|
815
815
|
}]
|
|
816
|
-
})),
|
|
816
|
+
})), re(({
|
|
817
817
|
theme: e
|
|
818
818
|
}) => ({
|
|
819
819
|
variants: [{
|
|
@@ -823,21 +823,21 @@ const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
823
823
|
style: {
|
|
824
824
|
color: "inherit"
|
|
825
825
|
}
|
|
826
|
-
}, ...Object.entries(e.palette).filter(
|
|
826
|
+
}, ...Object.entries(e.palette).filter(De()).map(([n]) => ({
|
|
827
827
|
props: {
|
|
828
828
|
color: n
|
|
829
829
|
},
|
|
830
830
|
style: {
|
|
831
831
|
color: (e.vars || e).palette[n].main
|
|
832
832
|
}
|
|
833
|
-
})), ...Object.entries(e.palette).filter(
|
|
833
|
+
})), ...Object.entries(e.palette).filter(De()).map(([n]) => ({
|
|
834
834
|
props: {
|
|
835
835
|
color: n,
|
|
836
836
|
disableRipple: !1
|
|
837
837
|
},
|
|
838
838
|
style: {
|
|
839
839
|
"&:hover": {
|
|
840
|
-
backgroundColor: e.vars ? `rgba(${(e.vars || e).palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
840
|
+
backgroundColor: e.vars ? `rgba(${(e.vars || e).palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : F((e.vars || e).palette[n].main, e.palette.action.hoverOpacity),
|
|
841
841
|
// Reset on touch devices, it doesn't add specificity
|
|
842
842
|
"@media (hover: none)": {
|
|
843
843
|
backgroundColor: "transparent"
|
|
@@ -871,33 +871,33 @@ const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
871
871
|
name: "MuiIconButton"
|
|
872
872
|
}), {
|
|
873
873
|
edge: g = !1,
|
|
874
|
-
children:
|
|
875
|
-
className:
|
|
876
|
-
color:
|
|
877
|
-
disabled:
|
|
874
|
+
children: y,
|
|
875
|
+
className: I,
|
|
876
|
+
color: h = "default",
|
|
877
|
+
disabled: S = !1,
|
|
878
878
|
disableFocusRipple: b = !1,
|
|
879
|
-
disableRipple:
|
|
880
|
-
size:
|
|
881
|
-
...
|
|
879
|
+
disableRipple: T = !1,
|
|
880
|
+
size: M = "medium",
|
|
881
|
+
...q
|
|
882
882
|
} = i, L = {
|
|
883
883
|
...i,
|
|
884
884
|
edge: g,
|
|
885
|
-
color:
|
|
886
|
-
disabled:
|
|
885
|
+
color: h,
|
|
886
|
+
disabled: S,
|
|
887
887
|
disableFocusRipple: b,
|
|
888
|
-
disableRipple:
|
|
889
|
-
size:
|
|
890
|
-
},
|
|
891
|
-
return /* @__PURE__ */
|
|
892
|
-
className:
|
|
888
|
+
disableRipple: T,
|
|
889
|
+
size: M
|
|
890
|
+
}, B = gt(L);
|
|
891
|
+
return /* @__PURE__ */ P(bt, {
|
|
892
|
+
className: ee(B.root, I),
|
|
893
893
|
centerRipple: !0,
|
|
894
894
|
focusRipple: !b,
|
|
895
|
-
disabled:
|
|
896
|
-
disableRipple:
|
|
895
|
+
disabled: S,
|
|
896
|
+
disableRipple: T,
|
|
897
897
|
ref: a,
|
|
898
|
-
...
|
|
898
|
+
...q,
|
|
899
899
|
ownerState: L,
|
|
900
|
-
children:
|
|
900
|
+
children: y
|
|
901
901
|
});
|
|
902
902
|
});
|
|
903
903
|
process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
@@ -962,7 +962,7 @@ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
|
962
962
|
*/
|
|
963
963
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
964
964
|
});
|
|
965
|
-
const mt = Uo(/* @__PURE__ */
|
|
965
|
+
const mt = Uo(/* @__PURE__ */ P("path", {
|
|
966
966
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
967
967
|
}), "Cancel");
|
|
968
968
|
function ht(e) {
|
|
@@ -974,19 +974,19 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
974
974
|
disabled: a,
|
|
975
975
|
size: i,
|
|
976
976
|
color: g,
|
|
977
|
-
iconColor:
|
|
978
|
-
onDelete:
|
|
979
|
-
clickable:
|
|
980
|
-
variant:
|
|
977
|
+
iconColor: y,
|
|
978
|
+
onDelete: I,
|
|
979
|
+
clickable: h,
|
|
980
|
+
variant: S
|
|
981
981
|
} = e, b = {
|
|
982
|
-
root: ["root",
|
|
982
|
+
root: ["root", S, a && "disabled", `size${d(i)}`, `color${d(g)}`, h && "clickable", h && `clickableColor${d(g)}`, I && "deletable", I && `deletableColor${d(g)}`, `${S}${d(g)}`],
|
|
983
983
|
label: ["label", `label${d(i)}`],
|
|
984
984
|
avatar: ["avatar", `avatar${d(i)}`, `avatarColor${d(g)}`],
|
|
985
|
-
icon: ["icon", `icon${d(i)}`, `iconColor${d(
|
|
986
|
-
deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(
|
|
985
|
+
icon: ["icon", `icon${d(i)}`, `iconColor${d(y)}`],
|
|
986
|
+
deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(S)}Color${d(g)}`]
|
|
987
987
|
};
|
|
988
988
|
return go(b, ht, n);
|
|
989
|
-
}, vt =
|
|
989
|
+
}, vt = j("div", {
|
|
990
990
|
name: "MuiChip",
|
|
991
991
|
slot: "Root",
|
|
992
992
|
overridesResolver: (e, n) => {
|
|
@@ -995,34 +995,34 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
995
995
|
} = e, {
|
|
996
996
|
color: i,
|
|
997
997
|
iconColor: g,
|
|
998
|
-
clickable:
|
|
999
|
-
onDelete:
|
|
1000
|
-
size:
|
|
1001
|
-
variant:
|
|
998
|
+
clickable: y,
|
|
999
|
+
onDelete: I,
|
|
1000
|
+
size: h,
|
|
1001
|
+
variant: S
|
|
1002
1002
|
} = a;
|
|
1003
1003
|
return [{
|
|
1004
1004
|
[`& .${f.avatar}`]: n.avatar
|
|
1005
1005
|
}, {
|
|
1006
|
-
[`& .${f.avatar}`]: n[`avatar${d(
|
|
1006
|
+
[`& .${f.avatar}`]: n[`avatar${d(h)}`]
|
|
1007
1007
|
}, {
|
|
1008
1008
|
[`& .${f.avatar}`]: n[`avatarColor${d(i)}`]
|
|
1009
1009
|
}, {
|
|
1010
1010
|
[`& .${f.icon}`]: n.icon
|
|
1011
1011
|
}, {
|
|
1012
|
-
[`& .${f.icon}`]: n[`icon${d(
|
|
1012
|
+
[`& .${f.icon}`]: n[`icon${d(h)}`]
|
|
1013
1013
|
}, {
|
|
1014
1014
|
[`& .${f.icon}`]: n[`iconColor${d(g)}`]
|
|
1015
1015
|
}, {
|
|
1016
1016
|
[`& .${f.deleteIcon}`]: n.deleteIcon
|
|
1017
1017
|
}, {
|
|
1018
|
-
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(
|
|
1018
|
+
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(h)}`]
|
|
1019
1019
|
}, {
|
|
1020
1020
|
[`& .${f.deleteIcon}`]: n[`deleteIconColor${d(i)}`]
|
|
1021
1021
|
}, {
|
|
1022
|
-
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(
|
|
1023
|
-
}, n.root, n[`size${d(
|
|
1022
|
+
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(S)}Color${d(i)}`]
|
|
1023
|
+
}, n.root, n[`size${d(h)}`], n[`color${d(i)}`], y && n.clickable, y && i !== "default" && n[`clickableColor${d(i)})`], I && n.deletable, I && i !== "default" && n[`deletableColor${d(i)}`], n[S], n[`${S}${d(i)}`]];
|
|
1024
1024
|
}
|
|
1025
|
-
})(
|
|
1025
|
+
})(re(({
|
|
1026
1026
|
theme: e
|
|
1027
1027
|
}) => {
|
|
1028
1028
|
const n = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
|
|
@@ -1083,12 +1083,12 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1083
1083
|
},
|
|
1084
1084
|
[`& .${f.deleteIcon}`]: {
|
|
1085
1085
|
WebkitTapHighlightColor: "transparent",
|
|
1086
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` :
|
|
1086
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : F(e.palette.text.primary, 0.26),
|
|
1087
1087
|
fontSize: 22,
|
|
1088
1088
|
cursor: "pointer",
|
|
1089
1089
|
margin: "0 5px 0 -6px",
|
|
1090
1090
|
"&:hover": {
|
|
1091
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` :
|
|
1091
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : F(e.palette.text.primary, 0.4)
|
|
1092
1092
|
}
|
|
1093
1093
|
},
|
|
1094
1094
|
variants: [{
|
|
@@ -1108,7 +1108,7 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1108
1108
|
marginLeft: -4
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
}, ...Object.entries(e.palette).filter(
|
|
1111
|
+
}, ...Object.entries(e.palette).filter(De(["contrastText"])).map(([a]) => ({
|
|
1112
1112
|
props: {
|
|
1113
1113
|
color: a
|
|
1114
1114
|
},
|
|
@@ -1116,7 +1116,7 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1116
1116
|
backgroundColor: (e.vars || e).palette[a].main,
|
|
1117
1117
|
color: (e.vars || e).palette[a].contrastText,
|
|
1118
1118
|
[`& .${f.deleteIcon}`]: {
|
|
1119
|
-
color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` :
|
|
1119
|
+
color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : F(e.palette[a].contrastText, 0.7),
|
|
1120
1120
|
"&:hover, &:active": {
|
|
1121
1121
|
color: (e.vars || e).palette[a].contrastText
|
|
1122
1122
|
}
|
|
@@ -1142,10 +1142,10 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1142
1142
|
},
|
|
1143
1143
|
style: {
|
|
1144
1144
|
[`&.${f.focusVisible}`]: {
|
|
1145
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1145
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : F(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
}, ...Object.entries(e.palette).filter(
|
|
1148
|
+
}, ...Object.entries(e.palette).filter(De(["dark"])).map(([a]) => ({
|
|
1149
1149
|
props: {
|
|
1150
1150
|
color: a,
|
|
1151
1151
|
onDelete: !0
|
|
@@ -1164,16 +1164,16 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1164
1164
|
WebkitTapHighlightColor: "transparent",
|
|
1165
1165
|
cursor: "pointer",
|
|
1166
1166
|
"&:hover": {
|
|
1167
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
1167
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : F(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
|
|
1168
1168
|
},
|
|
1169
1169
|
[`&.${f.focusVisible}`]: {
|
|
1170
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1170
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : F(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1171
1171
|
},
|
|
1172
1172
|
"&:active": {
|
|
1173
1173
|
boxShadow: (e.vars || e).shadows[1]
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
}, ...Object.entries(e.palette).filter(
|
|
1176
|
+
}, ...Object.entries(e.palette).filter(De(["dark"])).map(([a]) => ({
|
|
1177
1177
|
props: {
|
|
1178
1178
|
color: a,
|
|
1179
1179
|
clickable: !0
|
|
@@ -1215,22 +1215,22 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1215
1215
|
marginRight: 3
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
}, ...Object.entries(e.palette).filter(
|
|
1218
|
+
}, ...Object.entries(e.palette).filter(De()).map(([a]) => ({
|
|
1219
1219
|
props: {
|
|
1220
1220
|
variant: "outlined",
|
|
1221
1221
|
color: a
|
|
1222
1222
|
},
|
|
1223
1223
|
style: {
|
|
1224
1224
|
color: (e.vars || e).palette[a].main,
|
|
1225
|
-
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` :
|
|
1225
|
+
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : F(e.palette[a].main, 0.7)}`,
|
|
1226
1226
|
[`&.${f.clickable}:hover`]: {
|
|
1227
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
1227
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : F(e.palette[a].main, e.palette.action.hoverOpacity)
|
|
1228
1228
|
},
|
|
1229
1229
|
[`&.${f.focusVisible}`]: {
|
|
1230
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` :
|
|
1230
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : F(e.palette[a].main, e.palette.action.focusOpacity)
|
|
1231
1231
|
},
|
|
1232
1232
|
[`& .${f.deleteIcon}`]: {
|
|
1233
|
-
color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` :
|
|
1233
|
+
color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : F(e.palette[a].main, 0.7),
|
|
1234
1234
|
"&:hover, &:active": {
|
|
1235
1235
|
color: (e.vars || e).palette[a].main
|
|
1236
1236
|
}
|
|
@@ -1238,7 +1238,7 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1238
1238
|
}
|
|
1239
1239
|
}))]
|
|
1240
1240
|
};
|
|
1241
|
-
})), xt =
|
|
1241
|
+
})), xt = j("span", {
|
|
1242
1242
|
name: "MuiChip",
|
|
1243
1243
|
slot: "Label",
|
|
1244
1244
|
overridesResolver: (e, n) => {
|
|
@@ -1285,88 +1285,88 @@ const f = uo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1285
1285
|
function Vo(e) {
|
|
1286
1286
|
return e.key === "Backspace" || e.key === "Delete";
|
|
1287
1287
|
}
|
|
1288
|
-
const
|
|
1288
|
+
const Ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
1289
1289
|
const i = fo({
|
|
1290
1290
|
props: n,
|
|
1291
1291
|
name: "MuiChip"
|
|
1292
1292
|
}), {
|
|
1293
1293
|
avatar: g,
|
|
1294
|
-
className:
|
|
1295
|
-
clickable:
|
|
1296
|
-
color:
|
|
1297
|
-
component:
|
|
1294
|
+
className: y,
|
|
1295
|
+
clickable: I,
|
|
1296
|
+
color: h = "default",
|
|
1297
|
+
component: S,
|
|
1298
1298
|
deleteIcon: b,
|
|
1299
|
-
disabled:
|
|
1300
|
-
icon:
|
|
1301
|
-
label:
|
|
1299
|
+
disabled: T = !1,
|
|
1300
|
+
icon: M,
|
|
1301
|
+
label: q,
|
|
1302
1302
|
onClick: L,
|
|
1303
|
-
onDelete:
|
|
1304
|
-
onKeyDown:
|
|
1305
|
-
onKeyUp:
|
|
1306
|
-
size:
|
|
1307
|
-
variant:
|
|
1308
|
-
tabIndex:
|
|
1309
|
-
skipFocusWhenDisabled:
|
|
1303
|
+
onDelete: B,
|
|
1304
|
+
onKeyDown: oe,
|
|
1305
|
+
onKeyUp: me,
|
|
1306
|
+
size: ue = "medium",
|
|
1307
|
+
variant: J = "filled",
|
|
1308
|
+
tabIndex: z,
|
|
1309
|
+
skipFocusWhenDisabled: ae = !1,
|
|
1310
1310
|
// TODO v6: Rename to `focusableWhenDisabled`.
|
|
1311
|
-
...
|
|
1312
|
-
} = i,
|
|
1313
|
-
|
|
1314
|
-
},
|
|
1315
|
-
|
|
1316
|
-
},
|
|
1317
|
-
|
|
1318
|
-
}, K =
|
|
1311
|
+
...v
|
|
1312
|
+
} = i, R = m.useRef(null), le = et(R, a), Ee = (D) => {
|
|
1313
|
+
D.stopPropagation(), B && B(D);
|
|
1314
|
+
}, he = (D) => {
|
|
1315
|
+
D.currentTarget === D.target && Vo(D) && D.preventDefault(), oe && oe(D);
|
|
1316
|
+
}, Ie = (D) => {
|
|
1317
|
+
D.currentTarget === D.target && B && Vo(D) && B(D), me && me(D);
|
|
1318
|
+
}, K = I !== !1 && L ? !0 : I, C = K || B ? Po : S || "div", ye = {
|
|
1319
1319
|
...i,
|
|
1320
|
-
component:
|
|
1321
|
-
disabled:
|
|
1322
|
-
size:
|
|
1323
|
-
color:
|
|
1324
|
-
iconColor: /* @__PURE__ */ m.isValidElement(
|
|
1325
|
-
onDelete: !!
|
|
1320
|
+
component: C,
|
|
1321
|
+
disabled: T,
|
|
1322
|
+
size: ue,
|
|
1323
|
+
color: h,
|
|
1324
|
+
iconColor: /* @__PURE__ */ m.isValidElement(M) && M.props.color || h,
|
|
1325
|
+
onDelete: !!B,
|
|
1326
1326
|
clickable: K,
|
|
1327
|
-
variant:
|
|
1328
|
-
},
|
|
1329
|
-
component:
|
|
1330
|
-
focusVisibleClassName:
|
|
1331
|
-
...
|
|
1327
|
+
variant: J
|
|
1328
|
+
}, X = yt(ye), Ce = C === Po ? {
|
|
1329
|
+
component: S || "div",
|
|
1330
|
+
focusVisibleClassName: X.focusVisible,
|
|
1331
|
+
...B && {
|
|
1332
1332
|
disableRipple: !0
|
|
1333
1333
|
}
|
|
1334
1334
|
} : {};
|
|
1335
|
-
let
|
|
1336
|
-
|
|
1337
|
-
className:
|
|
1335
|
+
let Q = null;
|
|
1336
|
+
B && (Q = b && /* @__PURE__ */ m.isValidElement(b) ? /* @__PURE__ */ m.cloneElement(b, {
|
|
1337
|
+
className: ee(b.props.className, X.deleteIcon),
|
|
1338
1338
|
onClick: Ee
|
|
1339
|
-
}) : /* @__PURE__ */
|
|
1340
|
-
className:
|
|
1339
|
+
}) : /* @__PURE__ */ P(mt, {
|
|
1340
|
+
className: ee(X.deleteIcon),
|
|
1341
1341
|
onClick: Ee
|
|
1342
1342
|
}));
|
|
1343
|
-
let
|
|
1344
|
-
g && /* @__PURE__ */ m.isValidElement(g) && (
|
|
1345
|
-
className:
|
|
1343
|
+
let de = null;
|
|
1344
|
+
g && /* @__PURE__ */ m.isValidElement(g) && (de = /* @__PURE__ */ m.cloneElement(g, {
|
|
1345
|
+
className: ee(X.avatar, g.props.className)
|
|
1346
1346
|
}));
|
|
1347
|
-
let
|
|
1348
|
-
return
|
|
1349
|
-
className:
|
|
1350
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1351
|
-
as:
|
|
1352
|
-
className:
|
|
1353
|
-
disabled: K &&
|
|
1347
|
+
let $e = null;
|
|
1348
|
+
return M && /* @__PURE__ */ m.isValidElement(M) && ($e = /* @__PURE__ */ m.cloneElement(M, {
|
|
1349
|
+
className: ee(X.icon, M.props.className)
|
|
1350
|
+
})), process.env.NODE_ENV !== "production" && de && $e && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ Ne(vt, {
|
|
1351
|
+
as: C,
|
|
1352
|
+
className: ee(X.root, y),
|
|
1353
|
+
disabled: K && T ? !0 : void 0,
|
|
1354
1354
|
onClick: L,
|
|
1355
|
-
onKeyDown:
|
|
1356
|
-
onKeyUp:
|
|
1357
|
-
ref:
|
|
1358
|
-
tabIndex:
|
|
1359
|
-
ownerState:
|
|
1360
|
-
...
|
|
1361
|
-
...
|
|
1362
|
-
children: [
|
|
1363
|
-
className:
|
|
1364
|
-
ownerState:
|
|
1365
|
-
children:
|
|
1366
|
-
}),
|
|
1355
|
+
onKeyDown: he,
|
|
1356
|
+
onKeyUp: Ie,
|
|
1357
|
+
ref: le,
|
|
1358
|
+
tabIndex: ae && T ? -1 : z,
|
|
1359
|
+
ownerState: ye,
|
|
1360
|
+
...Ce,
|
|
1361
|
+
...v,
|
|
1362
|
+
children: [de || $e, /* @__PURE__ */ P(xt, {
|
|
1363
|
+
className: ee(X.label),
|
|
1364
|
+
ownerState: ye,
|
|
1365
|
+
children: q
|
|
1366
|
+
}), Q]
|
|
1367
1367
|
});
|
|
1368
1368
|
});
|
|
1369
|
-
process.env.NODE_ENV !== "production" && (
|
|
1369
|
+
process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
1370
1370
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1371
1371
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1372
1372
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1468,7 +1468,7 @@ process.env.NODE_ENV !== "production" && (qo.propTypes = {
|
|
|
1468
1468
|
*/
|
|
1469
1469
|
variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
|
|
1470
1470
|
});
|
|
1471
|
-
const It = Uo(/* @__PURE__ */
|
|
1471
|
+
const It = Uo(/* @__PURE__ */ P("path", {
|
|
1472
1472
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1473
1473
|
}), "Close");
|
|
1474
1474
|
function Ct(e) {
|
|
@@ -1482,17 +1482,17 @@ const $t = (e) => {
|
|
|
1482
1482
|
disablePortal: a,
|
|
1483
1483
|
expanded: i,
|
|
1484
1484
|
focused: g,
|
|
1485
|
-
fullWidth:
|
|
1486
|
-
hasClearIcon:
|
|
1487
|
-
hasPopupIcon:
|
|
1488
|
-
inputFocused:
|
|
1485
|
+
fullWidth: y,
|
|
1486
|
+
hasClearIcon: I,
|
|
1487
|
+
hasPopupIcon: h,
|
|
1488
|
+
inputFocused: S,
|
|
1489
1489
|
popupOpen: b,
|
|
1490
|
-
size:
|
|
1491
|
-
} = e,
|
|
1492
|
-
root: ["root", i && "expanded", g && "focused",
|
|
1490
|
+
size: T
|
|
1491
|
+
} = e, M = {
|
|
1492
|
+
root: ["root", i && "expanded", g && "focused", y && "fullWidth", I && "hasClearIcon", h && "hasPopupIcon"],
|
|
1493
1493
|
inputRoot: ["inputRoot"],
|
|
1494
|
-
input: ["input",
|
|
1495
|
-
tag: ["tag", `tagSize${d(
|
|
1494
|
+
input: ["input", S && "inputFocused"],
|
|
1495
|
+
tag: ["tag", `tagSize${d(T)}`],
|
|
1496
1496
|
endAdornment: ["endAdornment"],
|
|
1497
1497
|
clearIndicator: ["clearIndicator"],
|
|
1498
1498
|
popupIndicator: ["popupIndicator", b && "popupIndicatorOpen"],
|
|
@@ -1505,8 +1505,8 @@ const $t = (e) => {
|
|
|
1505
1505
|
groupLabel: ["groupLabel"],
|
|
1506
1506
|
groupUl: ["groupUl"]
|
|
1507
1507
|
};
|
|
1508
|
-
return go(
|
|
1509
|
-
}, Ot =
|
|
1508
|
+
return go(M, Ct, n);
|
|
1509
|
+
}, Ot = j("div", {
|
|
1510
1510
|
name: "MuiAutocomplete",
|
|
1511
1511
|
slot: "Root",
|
|
1512
1512
|
overridesResolver: (e, n) => {
|
|
@@ -1515,21 +1515,21 @@ const $t = (e) => {
|
|
|
1515
1515
|
} = e, {
|
|
1516
1516
|
fullWidth: i,
|
|
1517
1517
|
hasClearIcon: g,
|
|
1518
|
-
hasPopupIcon:
|
|
1519
|
-
inputFocused:
|
|
1520
|
-
size:
|
|
1518
|
+
hasPopupIcon: y,
|
|
1519
|
+
inputFocused: I,
|
|
1520
|
+
size: h
|
|
1521
1521
|
} = a;
|
|
1522
1522
|
return [{
|
|
1523
1523
|
[`& .${u.tag}`]: n.tag
|
|
1524
1524
|
}, {
|
|
1525
|
-
[`& .${u.tag}`]: n[`tagSize${d(
|
|
1525
|
+
[`& .${u.tag}`]: n[`tagSize${d(h)}`]
|
|
1526
1526
|
}, {
|
|
1527
1527
|
[`& .${u.inputRoot}`]: n.inputRoot
|
|
1528
1528
|
}, {
|
|
1529
1529
|
[`& .${u.input}`]: n.input
|
|
1530
1530
|
}, {
|
|
1531
|
-
[`& .${u.input}`]:
|
|
1532
|
-
}, n.root, i && n.fullWidth,
|
|
1531
|
+
[`& .${u.input}`]: I && n.inputFocused
|
|
1532
|
+
}, n.root, i && n.fullWidth, y && n.hasPopupIcon, g && n.hasClearIcon];
|
|
1533
1533
|
}
|
|
1534
1534
|
})({
|
|
1535
1535
|
[`&.${u.focused} .${u.clearIndicator}`]: {
|
|
@@ -1563,7 +1563,7 @@ const $t = (e) => {
|
|
|
1563
1563
|
padding: "4px 4px 4px 0px"
|
|
1564
1564
|
}
|
|
1565
1565
|
},
|
|
1566
|
-
[`& .${Oo.root}.${
|
|
1566
|
+
[`& .${Oo.root}.${xe.sizeSmall}`]: {
|
|
1567
1567
|
[`& .${Oo.input}`]: {
|
|
1568
1568
|
padding: "2px 4px 3px 0"
|
|
1569
1569
|
}
|
|
@@ -1583,7 +1583,7 @@ const $t = (e) => {
|
|
|
1583
1583
|
right: 9
|
|
1584
1584
|
}
|
|
1585
1585
|
},
|
|
1586
|
-
[`& .${Do.root}.${
|
|
1586
|
+
[`& .${Do.root}.${xe.sizeSmall}`]: {
|
|
1587
1587
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
1588
1588
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
1589
1589
|
paddingTop: 6,
|
|
@@ -1593,7 +1593,7 @@ const $t = (e) => {
|
|
|
1593
1593
|
padding: "2.5px 4px 2.5px 8px"
|
|
1594
1594
|
}
|
|
1595
1595
|
},
|
|
1596
|
-
[`& .${
|
|
1596
|
+
[`& .${Be.root}`]: {
|
|
1597
1597
|
paddingTop: 19,
|
|
1598
1598
|
paddingLeft: 8,
|
|
1599
1599
|
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
@@ -1602,23 +1602,23 @@ const $t = (e) => {
|
|
|
1602
1602
|
[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
|
|
1603
1603
|
paddingRight: 65
|
|
1604
1604
|
},
|
|
1605
|
-
[`& .${
|
|
1605
|
+
[`& .${Be.input}`]: {
|
|
1606
1606
|
padding: "7px 4px"
|
|
1607
1607
|
},
|
|
1608
1608
|
[`& .${u.endAdornment}`]: {
|
|
1609
1609
|
right: 9
|
|
1610
1610
|
}
|
|
1611
1611
|
},
|
|
1612
|
-
[`& .${
|
|
1612
|
+
[`& .${Be.root}.${xe.sizeSmall}`]: {
|
|
1613
1613
|
paddingBottom: 1,
|
|
1614
|
-
[`& .${
|
|
1614
|
+
[`& .${Be.input}`]: {
|
|
1615
1615
|
padding: "2.5px 4px"
|
|
1616
1616
|
}
|
|
1617
1617
|
},
|
|
1618
|
-
[`& .${
|
|
1618
|
+
[`& .${xe.hiddenLabel}`]: {
|
|
1619
1619
|
paddingTop: 8
|
|
1620
1620
|
},
|
|
1621
|
-
[`& .${
|
|
1621
|
+
[`& .${Be.root}.${xe.hiddenLabel}`]: {
|
|
1622
1622
|
paddingTop: 0,
|
|
1623
1623
|
paddingBottom: 0,
|
|
1624
1624
|
[`& .${u.input}`]: {
|
|
@@ -1626,7 +1626,7 @@ const $t = (e) => {
|
|
|
1626
1626
|
paddingBottom: 17
|
|
1627
1627
|
}
|
|
1628
1628
|
},
|
|
1629
|
-
[`& .${
|
|
1629
|
+
[`& .${Be.root}.${xe.hiddenLabel}.${xe.sizeSmall}`]: {
|
|
1630
1630
|
[`& .${u.input}`]: {
|
|
1631
1631
|
paddingTop: 8,
|
|
1632
1632
|
paddingBottom: 9
|
|
@@ -1673,7 +1673,7 @@ const $t = (e) => {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
1675
|
}]
|
|
1676
|
-
}), wt =
|
|
1676
|
+
}), wt = j("div", {
|
|
1677
1677
|
name: "MuiAutocomplete",
|
|
1678
1678
|
slot: "EndAdornment",
|
|
1679
1679
|
overridesResolver: (e, n) => n.endAdornment
|
|
@@ -1683,7 +1683,7 @@ const $t = (e) => {
|
|
|
1683
1683
|
right: 0,
|
|
1684
1684
|
top: "50%",
|
|
1685
1685
|
transform: "translate(0, -50%)"
|
|
1686
|
-
}), St =
|
|
1686
|
+
}), St = j(Mo, {
|
|
1687
1687
|
name: "MuiAutocomplete",
|
|
1688
1688
|
slot: "ClearIndicator",
|
|
1689
1689
|
overridesResolver: (e, n) => n.clearIndicator
|
|
@@ -1691,7 +1691,7 @@ const $t = (e) => {
|
|
|
1691
1691
|
marginRight: -2,
|
|
1692
1692
|
padding: 4,
|
|
1693
1693
|
visibility: "hidden"
|
|
1694
|
-
}), Pt =
|
|
1694
|
+
}), Pt = j(Mo, {
|
|
1695
1695
|
name: "MuiAutocomplete",
|
|
1696
1696
|
slot: "PopupIndicator",
|
|
1697
1697
|
overridesResolver: ({
|
|
@@ -1711,7 +1711,7 @@ const $t = (e) => {
|
|
|
1711
1711
|
transform: "rotate(180deg)"
|
|
1712
1712
|
}
|
|
1713
1713
|
}]
|
|
1714
|
-
}), Tt =
|
|
1714
|
+
}), Tt = j(Wo, {
|
|
1715
1715
|
name: "MuiAutocomplete",
|
|
1716
1716
|
slot: "Popper",
|
|
1717
1717
|
overridesResolver: (e, n) => {
|
|
@@ -1722,7 +1722,7 @@ const $t = (e) => {
|
|
|
1722
1722
|
[`& .${u.option}`]: n.option
|
|
1723
1723
|
}, n.popper, a.disablePortal && n.popperDisablePortal];
|
|
1724
1724
|
}
|
|
1725
|
-
})(
|
|
1725
|
+
})(re(({
|
|
1726
1726
|
theme: e
|
|
1727
1727
|
}) => ({
|
|
1728
1728
|
zIndex: (e.vars || e).zIndex.modal,
|
|
@@ -1734,38 +1734,38 @@ const $t = (e) => {
|
|
|
1734
1734
|
position: "absolute"
|
|
1735
1735
|
}
|
|
1736
1736
|
}]
|
|
1737
|
-
}))), kt =
|
|
1737
|
+
}))), kt = j(qo, {
|
|
1738
1738
|
name: "MuiAutocomplete",
|
|
1739
1739
|
slot: "Paper",
|
|
1740
1740
|
overridesResolver: (e, n) => n.paper
|
|
1741
|
-
})(
|
|
1741
|
+
})(re(({
|
|
1742
1742
|
theme: e
|
|
1743
1743
|
}) => ({
|
|
1744
1744
|
...e.typography.body1,
|
|
1745
1745
|
overflow: "auto"
|
|
1746
|
-
}))), Mt =
|
|
1746
|
+
}))), Mt = j("div", {
|
|
1747
1747
|
name: "MuiAutocomplete",
|
|
1748
1748
|
slot: "Loading",
|
|
1749
1749
|
overridesResolver: (e, n) => n.loading
|
|
1750
|
-
})(
|
|
1750
|
+
})(re(({
|
|
1751
1751
|
theme: e
|
|
1752
1752
|
}) => ({
|
|
1753
1753
|
color: (e.vars || e).palette.text.secondary,
|
|
1754
1754
|
padding: "14px 16px"
|
|
1755
|
-
}))), Rt =
|
|
1755
|
+
}))), Rt = j("div", {
|
|
1756
1756
|
name: "MuiAutocomplete",
|
|
1757
1757
|
slot: "NoOptions",
|
|
1758
1758
|
overridesResolver: (e, n) => n.noOptions
|
|
1759
|
-
})(
|
|
1759
|
+
})(re(({
|
|
1760
1760
|
theme: e
|
|
1761
1761
|
}) => ({
|
|
1762
1762
|
color: (e.vars || e).palette.text.secondary,
|
|
1763
1763
|
padding: "14px 16px"
|
|
1764
|
-
}))),
|
|
1764
|
+
}))), At = j("div", {
|
|
1765
1765
|
name: "MuiAutocomplete",
|
|
1766
1766
|
slot: "Listbox",
|
|
1767
1767
|
overridesResolver: (e, n) => n.listbox
|
|
1768
|
-
})(
|
|
1768
|
+
})(re(({
|
|
1769
1769
|
theme: e
|
|
1770
1770
|
}) => ({
|
|
1771
1771
|
listStyle: "none",
|
|
@@ -1806,29 +1806,29 @@ const $t = (e) => {
|
|
|
1806
1806
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
1807
1807
|
},
|
|
1808
1808
|
'&[aria-selected="true"]': {
|
|
1809
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
1809
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : F(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1810
1810
|
[`&.${u.focused}`]: {
|
|
1811
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
1811
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : F(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1812
1812
|
// Reset on touch devices, it doesn't add specificity
|
|
1813
1813
|
"@media (hover: none)": {
|
|
1814
1814
|
backgroundColor: (e.vars || e).palette.action.selected
|
|
1815
1815
|
}
|
|
1816
1816
|
},
|
|
1817
1817
|
[`&.${u.focusVisible}`]: {
|
|
1818
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1818
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : F(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
}))),
|
|
1822
|
+
}))), Lt = j(po, {
|
|
1823
1823
|
name: "MuiAutocomplete",
|
|
1824
1824
|
slot: "GroupLabel",
|
|
1825
1825
|
overridesResolver: (e, n) => n.groupLabel
|
|
1826
|
-
})(
|
|
1826
|
+
})(re(({
|
|
1827
1827
|
theme: e
|
|
1828
1828
|
}) => ({
|
|
1829
1829
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
1830
1830
|
top: -8
|
|
1831
|
-
}))), _t =
|
|
1831
|
+
}))), _t = j("ul", {
|
|
1832
1832
|
name: "MuiAutocomplete",
|
|
1833
1833
|
slot: "GroupUl",
|
|
1834
1834
|
overridesResolver: (e, n) => n.groupUl
|
|
@@ -1843,293 +1843,293 @@ const $t = (e) => {
|
|
|
1843
1843
|
name: "MuiAutocomplete"
|
|
1844
1844
|
}), {
|
|
1845
1845
|
autoComplete: g = !1,
|
|
1846
|
-
autoHighlight:
|
|
1847
|
-
autoSelect:
|
|
1848
|
-
blurOnSelect:
|
|
1849
|
-
ChipProps:
|
|
1846
|
+
autoHighlight: y = !1,
|
|
1847
|
+
autoSelect: I = !1,
|
|
1848
|
+
blurOnSelect: h = !1,
|
|
1849
|
+
ChipProps: S,
|
|
1850
1850
|
className: b,
|
|
1851
|
-
clearIcon:
|
|
1851
|
+
clearIcon: T = Fo || (Fo = /* @__PURE__ */ P(It, {
|
|
1852
1852
|
fontSize: "small"
|
|
1853
1853
|
})),
|
|
1854
|
-
clearOnBlur:
|
|
1855
|
-
clearOnEscape:
|
|
1854
|
+
clearOnBlur: M = !i.freeSolo,
|
|
1855
|
+
clearOnEscape: q = !1,
|
|
1856
1856
|
clearText: L = "Clear",
|
|
1857
|
-
closeText:
|
|
1858
|
-
componentsProps:
|
|
1859
|
-
defaultValue:
|
|
1860
|
-
disableClearable:
|
|
1861
|
-
disableCloseOnSelect:
|
|
1862
|
-
disabled:
|
|
1863
|
-
disabledItemsFocusable:
|
|
1864
|
-
disableListWrap:
|
|
1865
|
-
disablePortal:
|
|
1866
|
-
filterOptions:
|
|
1857
|
+
closeText: B = "Close",
|
|
1858
|
+
componentsProps: oe,
|
|
1859
|
+
defaultValue: me = i.multiple ? [] : null,
|
|
1860
|
+
disableClearable: ue = !1,
|
|
1861
|
+
disableCloseOnSelect: J = !1,
|
|
1862
|
+
disabled: z = !1,
|
|
1863
|
+
disabledItemsFocusable: ae = !1,
|
|
1864
|
+
disableListWrap: v = !1,
|
|
1865
|
+
disablePortal: R = !1,
|
|
1866
|
+
filterOptions: le,
|
|
1867
1867
|
filterSelectedOptions: Ee = !1,
|
|
1868
|
-
forcePopupIcon:
|
|
1869
|
-
freeSolo:
|
|
1868
|
+
forcePopupIcon: he = "auto",
|
|
1869
|
+
freeSolo: Ie = !1,
|
|
1870
1870
|
fullWidth: K = !1,
|
|
1871
|
-
getLimitTagsText:
|
|
1872
|
-
getOptionDisabled:
|
|
1873
|
-
getOptionKey:
|
|
1874
|
-
getOptionLabel:
|
|
1875
|
-
isOptionEqualToValue:
|
|
1876
|
-
groupBy:
|
|
1877
|
-
handleHomeEndKeys:
|
|
1878
|
-
id:
|
|
1871
|
+
getLimitTagsText: C = (x) => `+${x}`,
|
|
1872
|
+
getOptionDisabled: ye,
|
|
1873
|
+
getOptionKey: X,
|
|
1874
|
+
getOptionLabel: Ce,
|
|
1875
|
+
isOptionEqualToValue: Q,
|
|
1876
|
+
groupBy: de,
|
|
1877
|
+
handleHomeEndKeys: $e = !i.freeSolo,
|
|
1878
|
+
id: D,
|
|
1879
1879
|
includeInputInList: Ro = !1,
|
|
1880
|
-
inputValue:
|
|
1880
|
+
inputValue: Oe,
|
|
1881
1881
|
limitTags: ze = -1,
|
|
1882
1882
|
ListboxComponent: bo,
|
|
1883
|
-
ListboxProps:
|
|
1884
|
-
loading:
|
|
1883
|
+
ListboxProps: W,
|
|
1884
|
+
loading: N = !1,
|
|
1885
1885
|
loadingText: Ve = "Loading…",
|
|
1886
1886
|
multiple: Fe = !1,
|
|
1887
|
-
noOptionsText:
|
|
1888
|
-
onChange:
|
|
1887
|
+
noOptionsText: A = "No options",
|
|
1888
|
+
onChange: G,
|
|
1889
1889
|
onClose: je,
|
|
1890
|
-
onHighlightChange:
|
|
1891
|
-
onInputChange:
|
|
1890
|
+
onHighlightChange: Ao,
|
|
1891
|
+
onInputChange: Y,
|
|
1892
1892
|
onOpen: Xe,
|
|
1893
1893
|
open: mo,
|
|
1894
|
-
openOnFocus:
|
|
1894
|
+
openOnFocus: V = !1,
|
|
1895
1895
|
openText: s = "Open",
|
|
1896
|
-
options:
|
|
1897
|
-
PaperComponent:
|
|
1898
|
-
PopperComponent:
|
|
1899
|
-
popupIcon:
|
|
1896
|
+
options: Lo,
|
|
1897
|
+
PaperComponent: w,
|
|
1898
|
+
PopperComponent: we,
|
|
1899
|
+
popupIcon: Se = jo || (jo = /* @__PURE__ */ P(Xo, {})),
|
|
1900
1900
|
readOnly: He = !1,
|
|
1901
|
-
renderGroup:
|
|
1902
|
-
renderInput:
|
|
1901
|
+
renderGroup: Pe,
|
|
1902
|
+
renderInput: fe,
|
|
1903
1903
|
renderOption: Qe,
|
|
1904
1904
|
renderTags: Ze,
|
|
1905
1905
|
selectOnFocus: ho = !i.freeSolo,
|
|
1906
|
-
size:
|
|
1907
|
-
slots:
|
|
1906
|
+
size: Te = "medium",
|
|
1907
|
+
slots: H = {},
|
|
1908
1908
|
slotProps: k = {},
|
|
1909
|
-
value:
|
|
1909
|
+
value: te,
|
|
1910
1910
|
...Ue
|
|
1911
1911
|
} = i, {
|
|
1912
|
-
getRootProps:
|
|
1912
|
+
getRootProps: ke,
|
|
1913
1913
|
getInputProps: eo,
|
|
1914
|
-
getInputLabelProps:
|
|
1915
|
-
getPopupIndicatorProps:
|
|
1914
|
+
getInputLabelProps: ie,
|
|
1915
|
+
getPopupIndicatorProps: Z,
|
|
1916
1916
|
getClearProps: yo,
|
|
1917
1917
|
getTagProps: We,
|
|
1918
1918
|
getListboxProps: vo,
|
|
1919
|
-
getOptionProps:
|
|
1920
|
-
value:
|
|
1921
|
-
dirty:
|
|
1922
|
-
expanded:
|
|
1923
|
-
id:
|
|
1924
|
-
popupOpen:
|
|
1925
|
-
focused:
|
|
1919
|
+
getOptionProps: se,
|
|
1920
|
+
value: pe,
|
|
1921
|
+
dirty: ge,
|
|
1922
|
+
expanded: Me,
|
|
1923
|
+
id: ve,
|
|
1924
|
+
popupOpen: Re,
|
|
1925
|
+
focused: qe,
|
|
1926
1926
|
focusedTag: oo,
|
|
1927
|
-
anchorEl:
|
|
1927
|
+
anchorEl: Ae,
|
|
1928
1928
|
setAnchorEl: xo,
|
|
1929
1929
|
inputValue: to,
|
|
1930
|
-
groupedOptions:
|
|
1930
|
+
groupedOptions: Le
|
|
1931
1931
|
} = st({
|
|
1932
1932
|
...i,
|
|
1933
1933
|
componentName: "Autocomplete"
|
|
1934
|
-
}),
|
|
1934
|
+
}), Ke = !ue && !z && ge && !He, Ge = (!Ie || he === !0) && he !== !1, {
|
|
1935
1935
|
onMouseDown: Io
|
|
1936
1936
|
} = eo(), {
|
|
1937
1937
|
ref: Co,
|
|
1938
1938
|
...no
|
|
1939
|
-
} = vo(), Ye =
|
|
1939
|
+
} = vo(), Ye = Ce || ((x) => x.label ?? x), E = {
|
|
1940
1940
|
...i,
|
|
1941
|
-
disablePortal:
|
|
1942
|
-
expanded:
|
|
1943
|
-
focused:
|
|
1941
|
+
disablePortal: R,
|
|
1942
|
+
expanded: Me,
|
|
1943
|
+
focused: qe,
|
|
1944
1944
|
fullWidth: K,
|
|
1945
1945
|
getOptionLabel: Ye,
|
|
1946
|
-
hasClearIcon:
|
|
1946
|
+
hasClearIcon: Ke,
|
|
1947
1947
|
hasPopupIcon: Ge,
|
|
1948
1948
|
inputFocused: oo === -1,
|
|
1949
|
-
popupOpen:
|
|
1950
|
-
size:
|
|
1951
|
-
},
|
|
1949
|
+
popupOpen: Re,
|
|
1950
|
+
size: Te
|
|
1951
|
+
}, _ = $t(E), ce = {
|
|
1952
1952
|
slots: {
|
|
1953
1953
|
listbox: bo,
|
|
1954
|
-
paper:
|
|
1955
|
-
popper:
|
|
1956
|
-
...
|
|
1954
|
+
paper: w,
|
|
1955
|
+
popper: we,
|
|
1956
|
+
...H
|
|
1957
1957
|
},
|
|
1958
1958
|
slotProps: {
|
|
1959
|
-
chip:
|
|
1960
|
-
listbox:
|
|
1961
|
-
...
|
|
1959
|
+
chip: S,
|
|
1960
|
+
listbox: W,
|
|
1961
|
+
...oe,
|
|
1962
1962
|
...k
|
|
1963
1963
|
}
|
|
1964
1964
|
}, [r, t] = wo("listbox", {
|
|
1965
1965
|
elementType: "ul",
|
|
1966
|
-
externalForwardedProps:
|
|
1967
|
-
ownerState:
|
|
1968
|
-
className:
|
|
1966
|
+
externalForwardedProps: ce,
|
|
1967
|
+
ownerState: E,
|
|
1968
|
+
className: _.listbox,
|
|
1969
1969
|
additionalProps: no,
|
|
1970
1970
|
ref: Co
|
|
1971
1971
|
}), [l, p] = wo("paper", {
|
|
1972
|
-
elementType:
|
|
1973
|
-
externalForwardedProps:
|
|
1974
|
-
ownerState:
|
|
1975
|
-
className:
|
|
1976
|
-
}), [c,
|
|
1972
|
+
elementType: qo,
|
|
1973
|
+
externalForwardedProps: ce,
|
|
1974
|
+
ownerState: E,
|
|
1975
|
+
className: _.paper
|
|
1976
|
+
}), [c, O] = wo("popper", {
|
|
1977
1977
|
elementType: Wo,
|
|
1978
|
-
externalForwardedProps:
|
|
1979
|
-
ownerState:
|
|
1980
|
-
className:
|
|
1978
|
+
externalForwardedProps: ce,
|
|
1979
|
+
ownerState: E,
|
|
1980
|
+
className: _.popper,
|
|
1981
1981
|
additionalProps: {
|
|
1982
|
-
disablePortal:
|
|
1982
|
+
disablePortal: R,
|
|
1983
1983
|
style: {
|
|
1984
|
-
width:
|
|
1984
|
+
width: Ae ? Ae.clientWidth : null
|
|
1985
1985
|
},
|
|
1986
1986
|
role: "presentation",
|
|
1987
|
-
anchorEl:
|
|
1988
|
-
open:
|
|
1987
|
+
anchorEl: Ae,
|
|
1988
|
+
open: Re
|
|
1989
1989
|
}
|
|
1990
1990
|
});
|
|
1991
|
-
let
|
|
1992
|
-
if (Fe &&
|
|
1993
|
-
const
|
|
1994
|
-
className:
|
|
1995
|
-
disabled:
|
|
1996
|
-
...We(
|
|
1991
|
+
let $;
|
|
1992
|
+
if (Fe && pe.length > 0) {
|
|
1993
|
+
const x = (ne) => ({
|
|
1994
|
+
className: _.tag,
|
|
1995
|
+
disabled: z,
|
|
1996
|
+
...We(ne)
|
|
1997
1997
|
});
|
|
1998
|
-
Ze ?
|
|
1998
|
+
Ze ? $ = Ze(pe, x, E) : $ = pe.map((ne, be) => {
|
|
1999
1999
|
const {
|
|
2000
2000
|
key: Je,
|
|
2001
2001
|
...Yo
|
|
2002
|
-
} =
|
|
2003
|
-
index:
|
|
2002
|
+
} = x({
|
|
2003
|
+
index: be
|
|
2004
2004
|
});
|
|
2005
|
-
return /* @__PURE__ */
|
|
2006
|
-
label: Ye(
|
|
2007
|
-
size:
|
|
2005
|
+
return /* @__PURE__ */ P(Ko, {
|
|
2006
|
+
label: Ye(ne),
|
|
2007
|
+
size: Te,
|
|
2008
2008
|
...Yo,
|
|
2009
|
-
...
|
|
2009
|
+
...ce.slotProps.chip
|
|
2010
2010
|
}, Je);
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
|
-
if (ze > -1 && Array.isArray(
|
|
2014
|
-
const
|
|
2015
|
-
!
|
|
2016
|
-
className:
|
|
2017
|
-
children:
|
|
2018
|
-
},
|
|
2013
|
+
if (ze > -1 && Array.isArray($)) {
|
|
2014
|
+
const x = $.length - ze;
|
|
2015
|
+
!qe && x > 0 && ($ = $.splice(0, ze), $.push(/* @__PURE__ */ P("span", {
|
|
2016
|
+
className: _.tag,
|
|
2017
|
+
children: C(x)
|
|
2018
|
+
}, $.length)));
|
|
2019
2019
|
}
|
|
2020
|
-
const
|
|
2021
|
-
children: [/* @__PURE__ */
|
|
2022
|
-
className:
|
|
2023
|
-
ownerState:
|
|
2020
|
+
const _e = Pe || ((x) => /* @__PURE__ */ Ne("li", {
|
|
2021
|
+
children: [/* @__PURE__ */ P(Lt, {
|
|
2022
|
+
className: _.groupLabel,
|
|
2023
|
+
ownerState: E,
|
|
2024
2024
|
component: "div",
|
|
2025
|
-
children:
|
|
2026
|
-
}), /* @__PURE__ */
|
|
2027
|
-
className:
|
|
2028
|
-
ownerState:
|
|
2029
|
-
children:
|
|
2025
|
+
children: x.group
|
|
2026
|
+
}), /* @__PURE__ */ P(_t, {
|
|
2027
|
+
className: _.groupUl,
|
|
2028
|
+
ownerState: E,
|
|
2029
|
+
children: x.children
|
|
2030
2030
|
})]
|
|
2031
|
-
},
|
|
2031
|
+
}, x.key)), Go = Qe || ((x, ne) => {
|
|
2032
2032
|
const {
|
|
2033
|
-
key:
|
|
2033
|
+
key: be,
|
|
2034
2034
|
...Je
|
|
2035
|
-
} =
|
|
2036
|
-
return /* @__PURE__ */
|
|
2035
|
+
} = x;
|
|
2036
|
+
return /* @__PURE__ */ P("li", {
|
|
2037
2037
|
...Je,
|
|
2038
|
-
children: Ye(
|
|
2039
|
-
},
|
|
2040
|
-
}), Bo = (
|
|
2041
|
-
const
|
|
2042
|
-
option:
|
|
2043
|
-
index:
|
|
2038
|
+
children: Ye(ne)
|
|
2039
|
+
}, be);
|
|
2040
|
+
}), Bo = (x, ne) => {
|
|
2041
|
+
const be = se({
|
|
2042
|
+
option: x,
|
|
2043
|
+
index: ne
|
|
2044
2044
|
});
|
|
2045
2045
|
return Go({
|
|
2046
|
-
...
|
|
2047
|
-
className:
|
|
2048
|
-
},
|
|
2049
|
-
selected:
|
|
2050
|
-
index:
|
|
2046
|
+
...be,
|
|
2047
|
+
className: _.option
|
|
2048
|
+
}, x, {
|
|
2049
|
+
selected: be["aria-selected"],
|
|
2050
|
+
index: ne,
|
|
2051
2051
|
inputValue: to
|
|
2052
|
-
},
|
|
2053
|
-
}, ro =
|
|
2052
|
+
}, E);
|
|
2053
|
+
}, ro = ce.slotProps.clearIndicator, ao = ce.slotProps.popupIndicator, $o = (x) => /* @__PURE__ */ P(Tt, {
|
|
2054
2054
|
as: c,
|
|
2055
|
-
|
|
2056
|
-
children: /* @__PURE__ */
|
|
2055
|
+
...O,
|
|
2056
|
+
children: /* @__PURE__ */ P(kt, {
|
|
2057
2057
|
as: l,
|
|
2058
2058
|
...p,
|
|
2059
|
-
children:
|
|
2059
|
+
children: x
|
|
2060
2060
|
})
|
|
2061
2061
|
});
|
|
2062
2062
|
let lo = null;
|
|
2063
|
-
return
|
|
2063
|
+
return Le.length > 0 ? lo = $o(/* @__PURE__ */ P(At, {
|
|
2064
2064
|
as: r,
|
|
2065
2065
|
...t,
|
|
2066
|
-
children:
|
|
2067
|
-
key:
|
|
2068
|
-
group:
|
|
2069
|
-
children:
|
|
2070
|
-
}) : Bo(
|
|
2071
|
-
})) :
|
|
2072
|
-
className:
|
|
2073
|
-
ownerState:
|
|
2066
|
+
children: Le.map((x, ne) => de ? _e({
|
|
2067
|
+
key: x.key,
|
|
2068
|
+
group: x.group,
|
|
2069
|
+
children: x.options.map((be, Je) => Bo(be, x.index + Je))
|
|
2070
|
+
}) : Bo(x, ne))
|
|
2071
|
+
})) : N && Le.length === 0 ? lo = $o(/* @__PURE__ */ P(Mt, {
|
|
2072
|
+
className: _.loading,
|
|
2073
|
+
ownerState: E,
|
|
2074
2074
|
children: Ve
|
|
2075
|
-
})) :
|
|
2076
|
-
className:
|
|
2077
|
-
ownerState:
|
|
2075
|
+
})) : Le.length === 0 && !Ie && !N && (lo = $o(/* @__PURE__ */ P(Rt, {
|
|
2076
|
+
className: _.noOptions,
|
|
2077
|
+
ownerState: E,
|
|
2078
2078
|
role: "presentation",
|
|
2079
|
-
onMouseDown: (
|
|
2080
|
-
|
|
2079
|
+
onMouseDown: (x) => {
|
|
2080
|
+
x.preventDefault();
|
|
2081
2081
|
},
|
|
2082
|
-
children:
|
|
2083
|
-
}))), /* @__PURE__ */
|
|
2084
|
-
children: [/* @__PURE__ */
|
|
2082
|
+
children: A
|
|
2083
|
+
}))), /* @__PURE__ */ Ne(m.Fragment, {
|
|
2084
|
+
children: [/* @__PURE__ */ P(Ot, {
|
|
2085
2085
|
ref: a,
|
|
2086
|
-
className:
|
|
2087
|
-
ownerState:
|
|
2088
|
-
...
|
|
2089
|
-
children:
|
|
2090
|
-
id:
|
|
2091
|
-
disabled:
|
|
2086
|
+
className: ee(_.root, b),
|
|
2087
|
+
ownerState: E,
|
|
2088
|
+
...ke(Ue),
|
|
2089
|
+
children: fe({
|
|
2090
|
+
id: ve,
|
|
2091
|
+
disabled: z,
|
|
2092
2092
|
fullWidth: !0,
|
|
2093
|
-
size:
|
|
2094
|
-
InputLabelProps:
|
|
2093
|
+
size: Te === "small" ? "small" : void 0,
|
|
2094
|
+
InputLabelProps: ie(),
|
|
2095
2095
|
InputProps: {
|
|
2096
2096
|
ref: xo,
|
|
2097
|
-
className:
|
|
2098
|
-
startAdornment:
|
|
2099
|
-
onMouseDown: (
|
|
2100
|
-
...(
|
|
2101
|
-
endAdornment: /* @__PURE__ */
|
|
2102
|
-
className:
|
|
2103
|
-
ownerState:
|
|
2104
|
-
children: [
|
|
2097
|
+
className: _.inputRoot,
|
|
2098
|
+
startAdornment: $,
|
|
2099
|
+
onMouseDown: (x) => Io(x),
|
|
2100
|
+
...(Ke || Ge) && {
|
|
2101
|
+
endAdornment: /* @__PURE__ */ Ne(wt, {
|
|
2102
|
+
className: _.endAdornment,
|
|
2103
|
+
ownerState: E,
|
|
2104
|
+
children: [Ke ? /* @__PURE__ */ P(St, {
|
|
2105
2105
|
...yo(),
|
|
2106
2106
|
"aria-label": L,
|
|
2107
2107
|
title: L,
|
|
2108
|
-
ownerState:
|
|
2108
|
+
ownerState: E,
|
|
2109
2109
|
...ro,
|
|
2110
|
-
className:
|
|
2111
|
-
children:
|
|
2112
|
-
}) : null, Ge ? /* @__PURE__ */
|
|
2113
|
-
...
|
|
2114
|
-
disabled:
|
|
2115
|
-
"aria-label":
|
|
2116
|
-
title:
|
|
2117
|
-
ownerState:
|
|
2110
|
+
className: ee(_.clearIndicator, ro == null ? void 0 : ro.className),
|
|
2111
|
+
children: T
|
|
2112
|
+
}) : null, Ge ? /* @__PURE__ */ P(Pt, {
|
|
2113
|
+
...Z(),
|
|
2114
|
+
disabled: z,
|
|
2115
|
+
"aria-label": Re ? B : s,
|
|
2116
|
+
title: Re ? B : s,
|
|
2117
|
+
ownerState: E,
|
|
2118
2118
|
...ao,
|
|
2119
|
-
className:
|
|
2120
|
-
children:
|
|
2119
|
+
className: ee(_.popupIndicator, ao == null ? void 0 : ao.className),
|
|
2120
|
+
children: Se
|
|
2121
2121
|
}) : null]
|
|
2122
2122
|
})
|
|
2123
2123
|
}
|
|
2124
2124
|
},
|
|
2125
2125
|
inputProps: {
|
|
2126
|
-
className:
|
|
2127
|
-
disabled:
|
|
2126
|
+
className: _.input,
|
|
2127
|
+
disabled: z,
|
|
2128
2128
|
readOnly: He,
|
|
2129
2129
|
...eo()
|
|
2130
2130
|
}
|
|
2131
2131
|
})
|
|
2132
|
-
}),
|
|
2132
|
+
}), Ae ? lo : null]
|
|
2133
2133
|
});
|
|
2134
2134
|
});
|
|
2135
2135
|
process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
@@ -2562,7 +2562,7 @@ process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
|
2562
2562
|
value: To(o.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
|
|
2563
2563
|
`)) : null)
|
|
2564
2564
|
});
|
|
2565
|
-
const Bt = "flex flex-nowrap items-center gap-[9px] font-['Roboto',sans-serif] min-w-[var(--dropdown-min-width)] [&_fieldset]:!border-none [&_.Mui-select]:!border-none [&_svg]:h-[19px] [&_svg]:w-[19px]", Dt = "[&_.jcDropdownLabel]:whitespace-nowrap [&_.jcDropdownLabel]:font-bold [&_.jcDropdownLabel]:self-start", Nt = "[&_.required]:mx-[2px] [&_.required]:text-[var(--dropdown-required-color)]", Et = "[&_.MuiAutocomplete-root]:w-full [&_.MuiAutocomplete-root]:grow [&_.MuiAutocomplete-root]:self-start [&_.MuiAutocomplete-endAdornment]:!-right-[7px] [&_.MuiAutocomplete-clearIndicator]:text-[13px] [&_.MuiAutocomplete-clearIndicator]:h-[19px] [&_.MuiAutocomplete-clearIndicator]:w-[19px] [&_.MuiAutocomplete-clearIndicator_svg]:h-[15px] [&_.MuiAutocomplete-clearIndicator_svg]:w-[15px]", zt = "[&_.MuiInputBase-input]:!p-0 [&_.MuiInputBase-input]:!pr-0 [&_.MuiInputBase-input]:min-h-0", Vt = "[&_.MuiInputBase-root]:!p-0 [&_.MuiInputBase-root]:transition-all [&_.MuiInputBase-root]:duration-[313ms] [&_.MuiInputBase-root]:ease-out [&_.MuiInputBase-root]:!rounded-none [&_.MuiInputBase-root]:border-b [&_.MuiInputBase-root]:border-b-[var(--dropdown-border-color)] [&_.MuiInputBase-root]:w-full [&_.MuiInputBase-root]:!shadow-[var(--dropdown-default-shadow)] [&_.MuiInputBase-root:hover]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root:focus-visible]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root.Mui-focused]:!shadow-[var(--dropdown-active-shadow)]", Ft = "[&_.MuiInputBase-root_input]:h-[15px] [&_.MuiInputBase-root_input]:w-full [&_.MuiInputBase-root_input]:!py-[2px] [&_.MuiInputBase-root_input]:!px-0", jt = "[&_.MuiInputBase-root_.MuiChip-label]:text-[13px] [&_.MuiInputBase-root_.MuiChip-label]:px-[6px]", Ht = "[&_.MuiInputBase-root_.MuiSvgIcon-root]:m-0 [&_.MuiInputBase-root_.MuiSvgIcon-root]:text-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:h-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:w-[13px]", Ut = "[&_.MuiButtonBase-root]:p-[2px] [&_.MuiButtonBase-root]:max-h-5 [&_.MuiButtonBase-root]:px-[2px] [&_.MuiButtonBase-root]:py-px [&_.MuiButtonBase-root]:mx-[2px] [&_.MuiButtonBase-root]:mt-px [&_.MuiButtonBase-root]:mb-[2px]", Wt = "[&_.MuiFormHelperText-root]:!mt-px [&_.MuiFormHelperText-root]:!mr-0 [&_.MuiFormHelperText-root]:text-right",
|
|
2565
|
+
const Bt = "flex flex-nowrap items-center gap-[9px] font-['Roboto',sans-serif] min-w-[var(--dropdown-min-width)] [&_fieldset]:!border-none [&_.Mui-select]:!border-none [&_svg]:h-[19px] [&_svg]:w-[19px]", Dt = "[&_.jcDropdownLabel]:whitespace-nowrap [&_.jcDropdownLabel]:font-bold [&_.jcDropdownLabel]:self-start", Nt = "[&_.required]:mx-[2px] [&_.required]:text-[var(--dropdown-required-color)]", Et = "[&_.MuiAutocomplete-root]:w-full [&_.MuiAutocomplete-root]:grow [&_.MuiAutocomplete-root]:self-start [&_.MuiAutocomplete-endAdornment]:!-right-[7px] [&_.MuiAutocomplete-clearIndicator]:text-[13px] [&_.MuiAutocomplete-clearIndicator]:h-[19px] [&_.MuiAutocomplete-clearIndicator]:w-[19px] [&_.MuiAutocomplete-clearIndicator_svg]:h-[15px] [&_.MuiAutocomplete-clearIndicator_svg]:w-[15px]", zt = "[&_.MuiInputBase-input]:!p-0 [&_.MuiInputBase-input]:!pr-0 [&_.MuiInputBase-input]:min-h-0", Vt = "[&_.MuiInputBase-root]:!p-0 [&_.MuiInputBase-root]:transition-all [&_.MuiInputBase-root]:duration-[313ms] [&_.MuiInputBase-root]:ease-out [&_.MuiInputBase-root]:!rounded-none [&_.MuiInputBase-root]:border-b [&_.MuiInputBase-root]:border-b-[var(--dropdown-border-color)] [&_.MuiInputBase-root]:w-full [&_.MuiInputBase-root]:!shadow-[var(--dropdown-default-shadow)] [&_.MuiInputBase-root:hover]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root:focus-visible]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root.Mui-focused]:!shadow-[var(--dropdown-active-shadow)]", Ft = "[&_.MuiInputBase-root_input]:h-[15px] [&_.MuiInputBase-root_input]:w-full [&_.MuiInputBase-root_input]:!py-[2px] [&_.MuiInputBase-root_input]:!px-0", jt = "[&_.MuiInputBase-root_.MuiChip-label]:text-[13px] [&_.MuiInputBase-root_.MuiChip-label]:px-[6px]", Ht = "[&_.MuiInputBase-root_.MuiSvgIcon-root]:m-0 [&_.MuiInputBase-root_.MuiSvgIcon-root]:text-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:h-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:w-[13px]", Ut = "[&_.MuiButtonBase-root]:p-[2px] [&_.MuiButtonBase-root]:max-h-5 [&_.MuiButtonBase-root]:px-[2px] [&_.MuiButtonBase-root]:py-px [&_.MuiButtonBase-root]:mx-[2px] [&_.MuiButtonBase-root]:mt-px [&_.MuiButtonBase-root]:mb-[2px]", Wt = "[&_.MuiFormHelperText-root]:!mt-px [&_.MuiFormHelperText-root]:!mr-0 [&_.MuiFormHelperText-root]:text-right", qt = Ho(
|
|
2566
2566
|
Bt,
|
|
2567
2567
|
Dt,
|
|
2568
2568
|
Nt,
|
|
@@ -2574,71 +2574,81 @@ const Bt = "flex flex-nowrap items-center gap-[9px] font-['Roboto',sans-serif] m
|
|
|
2574
2574
|
Ht,
|
|
2575
2575
|
Ut,
|
|
2576
2576
|
Wt
|
|
2577
|
-
),
|
|
2577
|
+
), Kt = "[&_.MuiInputBase-root]:!flex [&_.MuiInputBase-root]:!items-start", bn = ({
|
|
2578
2578
|
label: e,
|
|
2579
2579
|
colon: n = !0,
|
|
2580
2580
|
options: a = [],
|
|
2581
2581
|
noLabel: i = !1,
|
|
2582
2582
|
borderFocusColor: g,
|
|
2583
2583
|
// borderPrimary
|
|
2584
|
-
onChange:
|
|
2585
|
-
minWidth:
|
|
2586
|
-
multiple:
|
|
2587
|
-
required:
|
|
2584
|
+
onChange: y,
|
|
2585
|
+
minWidth: I,
|
|
2586
|
+
multiple: h,
|
|
2587
|
+
required: S,
|
|
2588
2588
|
error: b,
|
|
2589
|
-
helperText:
|
|
2590
|
-
...
|
|
2589
|
+
helperText: T,
|
|
2590
|
+
...M
|
|
2591
2591
|
}) => {
|
|
2592
|
-
const
|
|
2593
|
-
"--dropdown-min-width":
|
|
2592
|
+
const q = Jo(), L = {
|
|
2593
|
+
"--dropdown-min-width": I ?? "180px",
|
|
2594
2594
|
"--dropdown-required-color": io.colors.gray,
|
|
2595
2595
|
"--dropdown-border-color": io.colors.gray,
|
|
2596
2596
|
"--dropdown-default-shadow": b ? `inset 0 -5px 4px -4px ${io.colors.error}` : "none",
|
|
2597
|
-
"--dropdown-active-shadow": `inset 0 -5px 4px -4px ${b ? io.colors.error : g ||
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2597
|
+
"--dropdown-active-shadow": `inset 0 -5px 4px -4px ${b ? io.colors.error : g || q.themeColor}`
|
|
2598
|
+
}, B = (v) => v == null || v === "" || Array.isArray(v) ? null : typeof v == "object" ? v : a.find((R) => R.value === v) ?? {
|
|
2599
|
+
label: String(v),
|
|
2600
|
+
value: v
|
|
2601
|
+
}, oe = (v) => h ? (Array.isArray(v) ? v : []).map(B).filter((R) => R !== null) : B(v), { value: me, defaultValue: ue, ...J } = M, z = {
|
|
2602
|
+
..."value" in M ? { value: oe(me) } : {},
|
|
2603
|
+
..."defaultValue" in M ? { defaultValue: oe(ue) } : {}
|
|
2604
|
+
}, ae = (v, R) => v.value === R.value;
|
|
2605
|
+
return /* @__PURE__ */ Ne(
|
|
2600
2606
|
"div",
|
|
2601
2607
|
{
|
|
2602
|
-
className: Ho("jcLabeledDropdown",
|
|
2608
|
+
className: Ho("jcLabeledDropdown", qt, h && Kt),
|
|
2603
2609
|
style: L,
|
|
2604
2610
|
children: [
|
|
2605
|
-
!i && /* @__PURE__ */
|
|
2611
|
+
!i && /* @__PURE__ */ Ne("span", { className: "jcDropdownLabel", children: [
|
|
2606
2612
|
e,
|
|
2607
|
-
|
|
2613
|
+
S && /* @__PURE__ */ P("span", { className: "required", children: "*" }),
|
|
2608
2614
|
n && ":"
|
|
2609
2615
|
] }),
|
|
2610
|
-
!
|
|
2616
|
+
!h && /* @__PURE__ */ P(
|
|
2611
2617
|
ko,
|
|
2612
2618
|
{
|
|
2613
|
-
...
|
|
2619
|
+
...J,
|
|
2620
|
+
...z,
|
|
2621
|
+
isOptionEqualToValue: ae,
|
|
2614
2622
|
options: a,
|
|
2615
|
-
onChange: (
|
|
2616
|
-
if (!
|
|
2617
|
-
const
|
|
2618
|
-
...
|
|
2619
|
-
target: { ...
|
|
2623
|
+
onChange: (v, R) => {
|
|
2624
|
+
if (!y || Array.isArray(R)) return;
|
|
2625
|
+
const le = {
|
|
2626
|
+
...v,
|
|
2627
|
+
target: { ...v.target, value: (R == null ? void 0 : R.value) ?? "" }
|
|
2620
2628
|
};
|
|
2621
|
-
|
|
2629
|
+
y(le);
|
|
2622
2630
|
},
|
|
2623
|
-
renderInput: (
|
|
2631
|
+
renderInput: (v) => /* @__PURE__ */ P(No, { ...v, error: b, helperText: T })
|
|
2624
2632
|
}
|
|
2625
2633
|
),
|
|
2626
|
-
|
|
2634
|
+
h && /* @__PURE__ */ P(
|
|
2627
2635
|
ko,
|
|
2628
2636
|
{
|
|
2629
|
-
...
|
|
2637
|
+
...J,
|
|
2638
|
+
...z,
|
|
2639
|
+
isOptionEqualToValue: ae,
|
|
2630
2640
|
multiple: !0,
|
|
2631
2641
|
disableCloseOnSelect: !0,
|
|
2632
2642
|
options: a,
|
|
2633
|
-
onChange: (
|
|
2634
|
-
if (!
|
|
2635
|
-
const
|
|
2636
|
-
...
|
|
2637
|
-
target: { ...
|
|
2643
|
+
onChange: (v, R) => {
|
|
2644
|
+
if (!y || !Array.isArray(R)) return;
|
|
2645
|
+
const le = {
|
|
2646
|
+
...v,
|
|
2647
|
+
target: { ...v.target, value: R }
|
|
2638
2648
|
};
|
|
2639
|
-
|
|
2649
|
+
y(le);
|
|
2640
2650
|
},
|
|
2641
|
-
renderInput: (
|
|
2651
|
+
renderInput: (v) => /* @__PURE__ */ P(No, { ...v, error: b, helperText: T })
|
|
2642
2652
|
}
|
|
2643
2653
|
)
|
|
2644
2654
|
]
|